@duheso/zerocli 1.1.0 → 1.1.2
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/cli.mjs +121 -124
- package/package.json +3 -3
package/dist/cli.mjs
CHANGED
|
@@ -119226,7 +119226,7 @@ function buildProviderInfoLines() {
|
|
|
119226
119226
|
const sLen = ` ● ${sL} ${sReady}`.length;
|
|
119227
119227
|
out.push(boxRow(sRow, W2, sLen));
|
|
119228
119228
|
out.push(`${rgb(...BORDER)}╚${"═".repeat(W2 - 2)}╝${RESET}`);
|
|
119229
|
-
out.push(` ${DIM}${rgb(...DIMCOL)}zero ${RESET}${rgb(...ACCENT)}v${"1.1.
|
|
119229
|
+
out.push(` ${DIM}${rgb(...DIMCOL)}zero ${RESET}${rgb(...ACCENT)}v${"1.1.2"}${RESET}`);
|
|
119230
119230
|
return out;
|
|
119231
119231
|
}
|
|
119232
119232
|
function printStartupScreen() {}
|
|
@@ -389157,26 +389157,28 @@ async function routeAction(input) {
|
|
|
389157
389157
|
if (!conn.connected)
|
|
389158
389158
|
return { success: false, error: conn.error };
|
|
389159
389159
|
}
|
|
389160
|
+
const castInput = input;
|
|
389160
389161
|
if (MOUSE_ACTIONS.has(action))
|
|
389161
|
-
return handleMouseAction(
|
|
389162
|
+
return handleMouseAction(castInput, connectionManager);
|
|
389162
389163
|
if (KEYBOARD_ACTIONS.has(action))
|
|
389163
|
-
return handleKeyboardAction(
|
|
389164
|
+
return handleKeyboardAction(castInput, connectionManager);
|
|
389164
389165
|
if (WINDOW_ACTIONS.has(action))
|
|
389165
|
-
return handleWindowAction(
|
|
389166
|
+
return handleWindowAction(castInput, connectionManager);
|
|
389166
389167
|
if (CAPTURE_ACTIONS.has(action))
|
|
389167
|
-
return handleCaptureAction(
|
|
389168
|
+
return handleCaptureAction(castInput, connectionManager);
|
|
389168
389169
|
if (AUTOMATION_ACTIONS.has(action))
|
|
389169
|
-
return handleAutomationAction(
|
|
389170
|
+
return handleAutomationAction(castInput, connectionManager);
|
|
389170
389171
|
if (CLIPBOARD_ACTIONS.has(action))
|
|
389171
|
-
return handleClipboardAction(
|
|
389172
|
+
return handleClipboardAction(castInput, connectionManager);
|
|
389172
389173
|
if (DESKTOP_ACTIONS.has(action))
|
|
389173
|
-
return handleDesktopAction(
|
|
389174
|
+
return handleDesktopAction(castInput, connectionManager);
|
|
389174
389175
|
if (FILE_PROCESS_ACTIONS.has(action))
|
|
389175
|
-
return handleFileAction(
|
|
389176
|
+
return handleFileAction(castInput, connectionManager);
|
|
389176
389177
|
return { success: false, error: `Unknown action: ${action}` };
|
|
389177
389178
|
}
|
|
389178
|
-
var connectionManager, ACTIONS, MOUSE_ACTIONS, KEYBOARD_ACTIONS, WINDOW_ACTIONS, CAPTURE_ACTIONS, AUTOMATION_ACTIONS, CLIPBOARD_ACTIONS, DESKTOP_ACTIONS, FILE_PROCESS_ACTIONS, NO_CONNECTION_ACTIONS, buildTool2, WindowsControlTool;
|
|
389179
|
+
var connectionManager, ACTIONS, MOUSE_ACTIONS, KEYBOARD_ACTIONS, WINDOW_ACTIONS, CAPTURE_ACTIONS, AUTOMATION_ACTIONS, CLIPBOARD_ACTIONS, DESKTOP_ACTIONS, FILE_PROCESS_ACTIONS, NO_CONNECTION_ACTIONS, inputSchema38, buildTool2, WindowsControlTool;
|
|
389179
389180
|
var init_WindowsControlTool = __esm(() => {
|
|
389181
|
+
init_v4();
|
|
389180
389182
|
init_ConnectionManager();
|
|
389181
389183
|
init_captureActions();
|
|
389182
389184
|
connectionManager = new ConnectionManager;
|
|
@@ -389233,87 +389235,83 @@ var init_WindowsControlTool = __esm(() => {
|
|
|
389233
389235
|
DESKTOP_ACTIONS = new Set(["list_desktops", "switch_desktop", "create_desktop", "delete_desktop"]);
|
|
389234
389236
|
FILE_PROCESS_ACTIONS = new Set(["upload_file", "download_file", "list_files", "list_processes", "kill_process", "launch_process"]);
|
|
389235
389237
|
NO_CONNECTION_ACTIONS = new Set(["connect", "disconnect", "status"]);
|
|
389238
|
+
inputSchema38 = exports_external.object({
|
|
389239
|
+
action: exports_external.enum(ACTIONS).describe("The action to perform on the Windows machine"),
|
|
389240
|
+
host: exports_external.string().optional().describe("Windows agent host (for connect)"),
|
|
389241
|
+
port: exports_external.number().optional().describe("gRPC port (default 50051)"),
|
|
389242
|
+
token: exports_external.string().optional().describe("Authentication token"),
|
|
389243
|
+
x: exports_external.number().optional().describe("X coordinate"),
|
|
389244
|
+
y: exports_external.number().optional().describe("Y coordinate"),
|
|
389245
|
+
button: exports_external.enum(["left", "right", "middle"]).optional().describe("Mouse button"),
|
|
389246
|
+
start_x: exports_external.number().optional().describe("Drag start X"),
|
|
389247
|
+
start_y: exports_external.number().optional().describe("Drag start Y"),
|
|
389248
|
+
end_x: exports_external.number().optional().describe("Drag end X"),
|
|
389249
|
+
end_y: exports_external.number().optional().describe("Drag end Y"),
|
|
389250
|
+
scroll_direction: exports_external.enum(["up", "down", "left", "right"]).optional(),
|
|
389251
|
+
scroll_amount: exports_external.number().optional().describe("Scroll units"),
|
|
389252
|
+
key: exports_external.string().optional().describe('Key name (e.g. "a", "Enter", "F5")'),
|
|
389253
|
+
modifiers: exports_external.array(exports_external.string()).optional().describe("Modifier keys: ctrl, alt, shift, win"),
|
|
389254
|
+
keys: exports_external.array(exports_external.string()).optional().describe("Keys for combo"),
|
|
389255
|
+
text: exports_external.string().optional().describe("Text to type"),
|
|
389256
|
+
use_clipboard: exports_external.boolean().optional().describe("Use clipboard paste for typing (default true)"),
|
|
389257
|
+
hold_duration_ms: exports_external.number().optional().describe("Key hold duration in ms"),
|
|
389258
|
+
handle: exports_external.string().optional().describe("Window handle"),
|
|
389259
|
+
title_filter: exports_external.string().optional().describe("Filter windows by title"),
|
|
389260
|
+
visible_only: exports_external.boolean().optional().describe("Only list visible windows"),
|
|
389261
|
+
width: exports_external.number().optional().describe("Width for resize"),
|
|
389262
|
+
height: exports_external.number().optional().describe("Height for resize"),
|
|
389263
|
+
snap_direction: exports_external.enum(["left", "right", "up", "down", "top_left", "top_right", "bottom_left", "bottom_right"]).optional(),
|
|
389264
|
+
monitor_index: exports_external.number().optional().describe("Monitor index (-1 for all)"),
|
|
389265
|
+
region: exports_external.object({
|
|
389266
|
+
x: exports_external.number(),
|
|
389267
|
+
y: exports_external.number(),
|
|
389268
|
+
width: exports_external.number(),
|
|
389269
|
+
height: exports_external.number()
|
|
389270
|
+
}).optional().describe("Capture region"),
|
|
389271
|
+
quality: exports_external.number().optional().describe("Image quality 1-100"),
|
|
389272
|
+
scale: exports_external.number().optional().describe("Scale factor 0.25-1.0"),
|
|
389273
|
+
runtime_id: exports_external.string().optional().describe("UI element runtime ID"),
|
|
389274
|
+
value: exports_external.string().optional().describe("Value to set on UI element"),
|
|
389275
|
+
max_depth: exports_external.number().optional().describe("UI tree traversal depth"),
|
|
389276
|
+
control_type_filter: exports_external.string().optional().describe("Filter UI elements by type"),
|
|
389277
|
+
language: exports_external.string().optional().describe("OCR language (e.g. en-US, pt-BR)"),
|
|
389278
|
+
clipboard_text: exports_external.string().optional().describe("Text to set in clipboard"),
|
|
389279
|
+
include_image: exports_external.boolean().optional().describe("Include image from clipboard"),
|
|
389280
|
+
file_path: exports_external.string().optional().describe("File path on Windows"),
|
|
389281
|
+
directory: exports_external.string().optional().describe("Directory to list"),
|
|
389282
|
+
pattern: exports_external.string().optional().describe("Glob pattern for file listing"),
|
|
389283
|
+
recursive: exports_external.boolean().optional().describe("List files recursively"),
|
|
389284
|
+
pid: exports_external.number().optional().describe("Process ID"),
|
|
389285
|
+
process_name: exports_external.string().optional().describe("Process name filter"),
|
|
389286
|
+
arguments: exports_external.array(exports_external.string()).optional().describe("Process arguments"),
|
|
389287
|
+
working_directory: exports_external.string().optional().describe("Working directory for process"),
|
|
389288
|
+
elevated: exports_external.boolean().optional().describe("Run as admin"),
|
|
389289
|
+
force: exports_external.boolean().optional().describe("Force kill process"),
|
|
389290
|
+
desktop_index: exports_external.number().optional().describe("Virtual desktop index"),
|
|
389291
|
+
desktop_name: exports_external.string().optional().describe("Virtual desktop name"),
|
|
389292
|
+
desktop_id: exports_external.string().optional().describe("Virtual desktop ID")
|
|
389293
|
+
});
|
|
389236
389294
|
({ buildTool: buildTool2 } = (init_Tool(), __toCommonJS(exports_Tool)));
|
|
389237
389295
|
WindowsControlTool = buildTool2({
|
|
389238
389296
|
name: TOOL_NAME,
|
|
389239
389297
|
description: TOOL_DESCRIPTION,
|
|
389240
389298
|
searchHint: SEARCH_HINT,
|
|
389241
|
-
prompt
|
|
389242
|
-
|
|
389243
|
-
inputSchema: {
|
|
389244
|
-
type: "object",
|
|
389245
|
-
properties: {
|
|
389246
|
-
action: {
|
|
389247
|
-
type: "string",
|
|
389248
|
-
enum: [...ACTIONS],
|
|
389249
|
-
description: "The action to perform on the Windows machine"
|
|
389250
|
-
},
|
|
389251
|
-
host: { type: "string", description: "Windows agent host (for connect)" },
|
|
389252
|
-
port: { type: "number", description: "gRPC port (default 50051)" },
|
|
389253
|
-
token: { type: "string", description: "Authentication token" },
|
|
389254
|
-
x: { type: "number", description: "X coordinate" },
|
|
389255
|
-
y: { type: "number", description: "Y coordinate" },
|
|
389256
|
-
button: { type: "string", enum: ["left", "right", "middle"], description: "Mouse button" },
|
|
389257
|
-
start_x: { type: "number", description: "Drag start X" },
|
|
389258
|
-
start_y: { type: "number", description: "Drag start Y" },
|
|
389259
|
-
end_x: { type: "number", description: "Drag end X" },
|
|
389260
|
-
end_y: { type: "number", description: "Drag end Y" },
|
|
389261
|
-
scroll_direction: { type: "string", enum: ["up", "down", "left", "right"] },
|
|
389262
|
-
scroll_amount: { type: "number", description: "Scroll units" },
|
|
389263
|
-
key: { type: "string", description: 'Key name (e.g. "a", "Enter", "F5")' },
|
|
389264
|
-
modifiers: { type: "array", items: { type: "string" }, description: "Modifier keys: ctrl, alt, shift, win" },
|
|
389265
|
-
keys: { type: "array", items: { type: "string" }, description: "Keys for combo" },
|
|
389266
|
-
text: { type: "string", description: "Text to type" },
|
|
389267
|
-
use_clipboard: { type: "boolean", description: "Use clipboard paste for typing (default true)" },
|
|
389268
|
-
hold_duration_ms: { type: "number", description: "Key hold duration in ms" },
|
|
389269
|
-
handle: { type: "string", description: "Window handle" },
|
|
389270
|
-
title_filter: { type: "string", description: "Filter windows by title" },
|
|
389271
|
-
visible_only: { type: "boolean", description: "Only list visible windows" },
|
|
389272
|
-
width: { type: "number", description: "Width for resize" },
|
|
389273
|
-
height: { type: "number", description: "Height for resize" },
|
|
389274
|
-
snap_direction: { type: "string", enum: ["left", "right", "up", "down", "top_left", "top_right", "bottom_left", "bottom_right"] },
|
|
389275
|
-
monitor_index: { type: "number", description: "Monitor index (-1 for all)" },
|
|
389276
|
-
region: {
|
|
389277
|
-
type: "object",
|
|
389278
|
-
properties: { x: { type: "number" }, y: { type: "number" }, width: { type: "number" }, height: { type: "number" } },
|
|
389279
|
-
description: "Capture region"
|
|
389280
|
-
},
|
|
389281
|
-
quality: { type: "number", description: "Image quality 1-100" },
|
|
389282
|
-
scale: { type: "number", description: "Scale factor 0.25-1.0" },
|
|
389283
|
-
runtime_id: { type: "string", description: "UI element runtime ID" },
|
|
389284
|
-
value: { type: "string", description: "Value to set on UI element" },
|
|
389285
|
-
max_depth: { type: "number", description: "UI tree traversal depth" },
|
|
389286
|
-
control_type_filter: { type: "string", description: "Filter UI elements by type" },
|
|
389287
|
-
language: { type: "string", description: "OCR language (e.g. en-US, pt-BR)" },
|
|
389288
|
-
clipboard_text: { type: "string", description: "Text to set in clipboard" },
|
|
389289
|
-
include_image: { type: "boolean", description: "Include image from clipboard" },
|
|
389290
|
-
file_path: { type: "string", description: "File path on Windows" },
|
|
389291
|
-
directory: { type: "string", description: "Directory to list" },
|
|
389292
|
-
pattern: { type: "string", description: "Glob pattern for file listing" },
|
|
389293
|
-
recursive: { type: "boolean", description: "List files recursively" },
|
|
389294
|
-
pid: { type: "number", description: "Process ID" },
|
|
389295
|
-
process_name: { type: "string", description: "Process name filter" },
|
|
389296
|
-
arguments: { type: "array", items: { type: "string" }, description: "Process arguments" },
|
|
389297
|
-
working_directory: { type: "string", description: "Working directory for process" },
|
|
389298
|
-
elevated: { type: "boolean", description: "Run as admin" },
|
|
389299
|
-
force: { type: "boolean", description: "Force kill process" },
|
|
389300
|
-
desktop_index: { type: "number", description: "Virtual desktop index" },
|
|
389301
|
-
desktop_name: { type: "string", description: "Virtual desktop name" },
|
|
389302
|
-
desktop_id: { type: "string", description: "Virtual desktop ID" }
|
|
389303
|
-
},
|
|
389304
|
-
required: ["action"]
|
|
389299
|
+
async prompt() {
|
|
389300
|
+
return WINDOWS_CONTROL_PROMPT;
|
|
389305
389301
|
},
|
|
389302
|
+
isConcurrencySafe: false,
|
|
389303
|
+
inputSchema: inputSchema38,
|
|
389306
389304
|
async call(input) {
|
|
389307
389305
|
const result = await routeAction(input);
|
|
389308
389306
|
if (input.action === "screenshot" && result.success && result.data) {
|
|
389309
|
-
const
|
|
389307
|
+
const d = result.data;
|
|
389310
389308
|
return {
|
|
389311
389309
|
type: "screenshot",
|
|
389312
|
-
imageBase64:
|
|
389313
|
-
width:
|
|
389314
|
-
height:
|
|
389315
|
-
cursor:
|
|
389316
|
-
message: result.message || `Screenshot ${
|
|
389310
|
+
imageBase64: d.imageBase64,
|
|
389311
|
+
width: d.width,
|
|
389312
|
+
height: d.height,
|
|
389313
|
+
cursor: d.cursor,
|
|
389314
|
+
message: result.message || `Screenshot ${d.width}x${d.height}`
|
|
389317
389315
|
};
|
|
389318
389316
|
}
|
|
389319
389317
|
return {
|
|
@@ -389323,12 +389321,6 @@ var init_WindowsControlTool = __esm(() => {
|
|
|
389323
389321
|
},
|
|
389324
389322
|
mapToolResultToToolResultBlockParam(data, toolUseID) {
|
|
389325
389323
|
if (data.type === "screenshot" && data.imageBase64) {
|
|
389326
|
-
const metaText = JSON.stringify({
|
|
389327
|
-
width: data.width,
|
|
389328
|
-
height: data.height,
|
|
389329
|
-
cursor: data.cursor,
|
|
389330
|
-
message: data.message
|
|
389331
|
-
});
|
|
389332
389324
|
return {
|
|
389333
389325
|
tool_use_id: toolUseID,
|
|
389334
389326
|
type: "tool_result",
|
|
@@ -389343,7 +389335,12 @@ var init_WindowsControlTool = __esm(() => {
|
|
|
389343
389335
|
},
|
|
389344
389336
|
{
|
|
389345
389337
|
type: "text",
|
|
389346
|
-
text:
|
|
389338
|
+
text: JSON.stringify({
|
|
389339
|
+
width: data.width,
|
|
389340
|
+
height: data.height,
|
|
389341
|
+
cursor: data.cursor,
|
|
389342
|
+
message: data.message
|
|
389343
|
+
})
|
|
389347
389344
|
}
|
|
389348
389345
|
]
|
|
389349
389346
|
};
|
|
@@ -395653,7 +395650,7 @@ async function* runShellCommand({
|
|
|
395653
395650
|
}
|
|
395654
395651
|
}
|
|
395655
395652
|
var jsx_runtime151, EOL4 = `
|
|
395656
|
-
`, PROGRESS_THRESHOLD_MS3 = 2000, ASSISTANT_BLOCKING_BUDGET_MS2 = 15000, BASH_SEARCH_COMMANDS, BASH_READ_COMMANDS, BASH_LIST_COMMANDS, BASH_SEMANTIC_NEUTRAL_COMMANDS, BASH_SILENT_COMMANDS, DISALLOWED_AUTO_BACKGROUND_COMMANDS2, isBackgroundTasksDisabled3, fullInputSchema3,
|
|
395653
|
+
`, PROGRESS_THRESHOLD_MS3 = 2000, ASSISTANT_BLOCKING_BUDGET_MS2 = 15000, BASH_SEARCH_COMMANDS, BASH_READ_COMMANDS, BASH_LIST_COMMANDS, BASH_SEMANTIC_NEUTRAL_COMMANDS, BASH_SILENT_COMMANDS, DISALLOWED_AUTO_BACKGROUND_COMMANDS2, isBackgroundTasksDisabled3, fullInputSchema3, inputSchema39, COMMON_BACKGROUND_COMMANDS2, outputSchema32, BashTool;
|
|
395657
395654
|
var init_BashTool = __esm(() => {
|
|
395658
395655
|
init_v4();
|
|
395659
395656
|
init_state();
|
|
@@ -395746,7 +395743,7 @@ For commands that are harder to parse at a glance (piped commands, obscure flags
|
|
|
395746
395743
|
newContent: exports_external.string()
|
|
395747
395744
|
}).optional().describe("Internal: pre-computed sed edit result from preview")
|
|
395748
395745
|
}));
|
|
395749
|
-
|
|
395746
|
+
inputSchema39 = lazySchema(() => isBackgroundTasksDisabled3 ? fullInputSchema3().omit({
|
|
395750
395747
|
run_in_background: true,
|
|
395751
395748
|
dangerouslyDisableSandbox: true,
|
|
395752
395749
|
_dangerouslyDisableSandboxApproved: true,
|
|
@@ -395816,7 +395813,7 @@ For commands that are harder to parse at a glance (piped commands, obscure flags
|
|
|
395816
395813
|
};
|
|
395817
395814
|
},
|
|
395818
395815
|
isSearchOrReadCommand(input) {
|
|
395819
|
-
const parsed =
|
|
395816
|
+
const parsed = inputSchema39().safeParse(input);
|
|
395820
395817
|
if (!parsed.success)
|
|
395821
395818
|
return {
|
|
395822
395819
|
isSearch: false,
|
|
@@ -395826,7 +395823,7 @@ For commands that are harder to parse at a glance (piped commands, obscure flags
|
|
|
395826
395823
|
return isSearchOrReadBashCommand(parsed.data.command);
|
|
395827
395824
|
},
|
|
395828
395825
|
get inputSchema() {
|
|
395829
|
-
return
|
|
395826
|
+
return inputSchema39();
|
|
395830
395827
|
},
|
|
395831
395828
|
get outputSchema() {
|
|
395832
395829
|
return outputSchema32();
|
|
@@ -402279,7 +402276,7 @@ function getAnthropicEnvMetadata() {
|
|
|
402279
402276
|
function getBuildAgeMinutes() {
|
|
402280
402277
|
if (false)
|
|
402281
402278
|
;
|
|
402282
|
-
const buildTime = new Date("2026-05-23T19:
|
|
402279
|
+
const buildTime = new Date("2026-05-23T19:20:07.267Z").getTime();
|
|
402283
402280
|
if (isNaN(buildTime))
|
|
402284
402281
|
return;
|
|
402285
402282
|
return Math.floor((Date.now() - buildTime) / 60000);
|
|
@@ -405725,8 +405722,8 @@ async function calculateDeferredToolDescriptionChars(tools, getToolPermissionCon
|
|
|
405725
405722
|
tools,
|
|
405726
405723
|
agents
|
|
405727
405724
|
});
|
|
405728
|
-
const
|
|
405729
|
-
return tool.name.length + description.length +
|
|
405725
|
+
const inputSchema40 = tool.inputJSONSchema ? jsonStringify(tool.inputJSONSchema) : tool.inputSchema ? jsonStringify(zodToJsonSchema3(tool.inputSchema)) : "";
|
|
405726
|
+
return tool.name.length + description.length + inputSchema40.length;
|
|
405730
405727
|
}));
|
|
405731
405728
|
return sizes.reduce((total, size) => total + size, 0);
|
|
405732
405729
|
}
|
|
@@ -407275,7 +407272,7 @@ async function readImageWithTokenBudget(filePath, maxTokens = getDefaultFileRead
|
|
|
407275
407272
|
}
|
|
407276
407273
|
return result;
|
|
407277
407274
|
}
|
|
407278
|
-
var BLOCKED_DEVICE_PATHS, THIN_SPACE, fileReadListeners, MaxFileReadTokenExceededError, IMAGE_EXTENSIONS,
|
|
407275
|
+
var BLOCKED_DEVICE_PATHS, THIN_SPACE, fileReadListeners, MaxFileReadTokenExceededError, IMAGE_EXTENSIONS, inputSchema40, outputSchema33, FileReadTool, CYBER_RISK_MITIGATION_REMINDER = `
|
|
407279
407276
|
|
|
407280
407277
|
<system-reminder>
|
|
407281
407278
|
Whenever you read a file, you should consider whether it would be considered malware. You CAN and SHOULD provide analysis of malware, what it is doing. But you MUST refuse to improve or augment the code. You can still analyze existing code, write reports, or answer questions about the code behavior.
|
|
@@ -407342,7 +407339,7 @@ var init_FileReadTool = __esm(() => {
|
|
|
407342
407339
|
}
|
|
407343
407340
|
};
|
|
407344
407341
|
IMAGE_EXTENSIONS = new Set(["png", "jpg", "jpeg", "gif", "webp"]);
|
|
407345
|
-
|
|
407342
|
+
inputSchema40 = lazySchema(() => exports_external.strictObject({
|
|
407346
407343
|
file_path: exports_external.string().describe("The absolute path to the file to read"),
|
|
407347
407344
|
offset: semanticNumber(exports_external.number().int().nonnegative().optional()).describe("The line number to start reading from. Only provide if the file is too large to read at once"),
|
|
407348
407345
|
limit: semanticNumber(exports_external.number().int().positive().optional()).describe("The number of lines to read. Only provide if the file is too large to read at once."),
|
|
@@ -407427,7 +407424,7 @@ var init_FileReadTool = __esm(() => {
|
|
|
407427
407424
|
return renderPromptTemplate(pickLineFormatInstruction(), maxSizeInstruction, offsetInstruction);
|
|
407428
407425
|
},
|
|
407429
407426
|
get inputSchema() {
|
|
407430
|
-
return
|
|
407427
|
+
return inputSchema40();
|
|
407431
407428
|
},
|
|
407432
407429
|
get outputSchema() {
|
|
407433
407430
|
return outputSchema33();
|
|
@@ -419005,7 +419002,7 @@ var init_UI25 = __esm(() => {
|
|
|
419005
419002
|
});
|
|
419006
419003
|
|
|
419007
419004
|
// src/tools/ListMcpResourcesTool/ListMcpResourcesTool.ts
|
|
419008
|
-
var
|
|
419005
|
+
var inputSchema41, outputSchema34, ListMcpResourcesTool;
|
|
419009
419006
|
var init_ListMcpResourcesTool = __esm(() => {
|
|
419010
419007
|
init_v4();
|
|
419011
419008
|
init_client7();
|
|
@@ -419015,7 +419012,7 @@ var init_ListMcpResourcesTool = __esm(() => {
|
|
|
419015
419012
|
init_slowOperations();
|
|
419016
419013
|
init_terminal2();
|
|
419017
419014
|
init_UI25();
|
|
419018
|
-
|
|
419015
|
+
inputSchema41 = lazySchema(() => exports_external.object({
|
|
419019
419016
|
server: exports_external.string().optional().describe("Optional server name to filter resources by")
|
|
419020
419017
|
}));
|
|
419021
419018
|
outputSchema34 = lazySchema(() => exports_external.array(exports_external.object({
|
|
@@ -419046,7 +419043,7 @@ var init_ListMcpResourcesTool = __esm(() => {
|
|
|
419046
419043
|
return PROMPT6;
|
|
419047
419044
|
},
|
|
419048
419045
|
get inputSchema() {
|
|
419049
|
-
return
|
|
419046
|
+
return inputSchema41();
|
|
419050
419047
|
},
|
|
419051
419048
|
get outputSchema() {
|
|
419052
419049
|
return outputSchema34();
|
|
@@ -419541,14 +419538,14 @@ var init_UI26 = __esm(() => {
|
|
|
419541
419538
|
});
|
|
419542
419539
|
|
|
419543
419540
|
// src/tools/MCPTool/MCPTool.ts
|
|
419544
|
-
var import_ajv3,
|
|
419541
|
+
var import_ajv3, inputSchema42, outputSchema35, ajv, MCPTool;
|
|
419545
419542
|
var init_MCPTool = __esm(() => {
|
|
419546
419543
|
init_v4();
|
|
419547
419544
|
init_Tool();
|
|
419548
419545
|
init_terminal2();
|
|
419549
419546
|
init_UI26();
|
|
419550
419547
|
import_ajv3 = __toESM(require_ajv(), 1);
|
|
419551
|
-
|
|
419548
|
+
inputSchema42 = lazySchema(() => exports_external.object({}).passthrough());
|
|
419552
419549
|
outputSchema35 = lazySchema(() => exports_external.union([
|
|
419553
419550
|
exports_external.string().describe("MCP tool execution result as text"),
|
|
419554
419551
|
exports_external.array(exports_external.object({
|
|
@@ -419571,7 +419568,7 @@ var init_MCPTool = __esm(() => {
|
|
|
419571
419568
|
return PROMPT7;
|
|
419572
419569
|
},
|
|
419573
419570
|
get inputSchema() {
|
|
419574
|
-
return
|
|
419571
|
+
return inputSchema42();
|
|
419575
419572
|
},
|
|
419576
419573
|
get outputSchema() {
|
|
419577
419574
|
return outputSchema35();
|
|
@@ -423001,7 +422998,7 @@ function createMcpAuthTool(serverName, config2) {
|
|
|
423001
422998
|
return description;
|
|
423002
422999
|
},
|
|
423003
423000
|
get inputSchema() {
|
|
423004
|
-
return
|
|
423001
|
+
return inputSchema43();
|
|
423005
423002
|
},
|
|
423006
423003
|
async checkPermissions(input) {
|
|
423007
423004
|
return { behavior: "allow", updatedInput: input };
|
|
@@ -423097,7 +423094,7 @@ Once they complete the flow, the server's tools will become available automatica
|
|
|
423097
423094
|
}
|
|
423098
423095
|
};
|
|
423099
423096
|
}
|
|
423100
|
-
var
|
|
423097
|
+
var inputSchema43;
|
|
423101
423098
|
var init_McpAuthTool = __esm(() => {
|
|
423102
423099
|
init_reject2();
|
|
423103
423100
|
init_v4();
|
|
@@ -423106,7 +423103,7 @@ var init_McpAuthTool = __esm(() => {
|
|
|
423106
423103
|
init_mcpStringUtils();
|
|
423107
423104
|
init_errors();
|
|
423108
423105
|
init_log3();
|
|
423109
|
-
|
|
423106
|
+
inputSchema43 = lazySchema(() => exports_external.object({}));
|
|
423110
423107
|
});
|
|
423111
423108
|
|
|
423112
423109
|
// src/utils/mcpWebSocketTransport.ts
|
|
@@ -428223,12 +428220,12 @@ class McpServer {
|
|
|
428223
428220
|
}
|
|
428224
428221
|
return registeredPrompt;
|
|
428225
428222
|
}
|
|
428226
|
-
_createRegisteredTool(name, title, description,
|
|
428223
|
+
_createRegisteredTool(name, title, description, inputSchema44, outputSchema36, annotations, execution, _meta, handler5) {
|
|
428227
428224
|
validateAndWarnToolName(name);
|
|
428228
428225
|
const registeredTool = {
|
|
428229
428226
|
title,
|
|
428230
428227
|
description,
|
|
428231
|
-
inputSchema: getZodSchemaObject(
|
|
428228
|
+
inputSchema: getZodSchemaObject(inputSchema44),
|
|
428232
428229
|
outputSchema: getZodSchemaObject(outputSchema36),
|
|
428233
428230
|
annotations,
|
|
428234
428231
|
execution,
|
|
@@ -428276,7 +428273,7 @@ class McpServer {
|
|
|
428276
428273
|
throw new Error(`Tool ${name} is already registered`);
|
|
428277
428274
|
}
|
|
428278
428275
|
let description;
|
|
428279
|
-
let
|
|
428276
|
+
let inputSchema44;
|
|
428280
428277
|
let outputSchema36;
|
|
428281
428278
|
let annotations;
|
|
428282
428279
|
if (typeof rest[0] === "string") {
|
|
@@ -428285,7 +428282,7 @@ class McpServer {
|
|
|
428285
428282
|
if (rest.length > 1) {
|
|
428286
428283
|
const firstArg = rest[0];
|
|
428287
428284
|
if (isZodRawShapeCompat(firstArg)) {
|
|
428288
|
-
|
|
428285
|
+
inputSchema44 = rest.shift();
|
|
428289
428286
|
if (rest.length > 1 && typeof rest[0] === "object" && rest[0] !== null && !isZodRawShapeCompat(rest[0])) {
|
|
428290
428287
|
annotations = rest.shift();
|
|
428291
428288
|
}
|
|
@@ -428297,14 +428294,14 @@ class McpServer {
|
|
|
428297
428294
|
}
|
|
428298
428295
|
}
|
|
428299
428296
|
const callback = rest[0];
|
|
428300
|
-
return this._createRegisteredTool(name, undefined, description,
|
|
428297
|
+
return this._createRegisteredTool(name, undefined, description, inputSchema44, outputSchema36, annotations, { taskSupport: "forbidden" }, undefined, callback);
|
|
428301
428298
|
}
|
|
428302
428299
|
registerTool(name, config2, cb) {
|
|
428303
428300
|
if (this._registeredTools[name]) {
|
|
428304
428301
|
throw new Error(`Tool ${name} is already registered`);
|
|
428305
428302
|
}
|
|
428306
|
-
const { title, description, inputSchema:
|
|
428307
|
-
return this._createRegisteredTool(name, title, description,
|
|
428303
|
+
const { title, description, inputSchema: inputSchema44, outputSchema: outputSchema36, annotations, _meta } = config2;
|
|
428304
|
+
return this._createRegisteredTool(name, title, description, inputSchema44, outputSchema36, annotations, { taskSupport: "forbidden" }, _meta, cb);
|
|
428308
428305
|
}
|
|
428309
428306
|
prompt(name, ...rest) {
|
|
428310
428307
|
if (this._registeredPrompts[name]) {
|
|
@@ -444303,7 +444300,7 @@ function buildPrimarySection() {
|
|
|
444303
444300
|
});
|
|
444304
444301
|
return [{
|
|
444305
444302
|
label: "Version",
|
|
444306
|
-
value: "1.1.
|
|
444303
|
+
value: "1.1.2"
|
|
444307
444304
|
}, {
|
|
444308
444305
|
label: "Session name",
|
|
444309
444306
|
value: nameValue
|
|
@@ -512649,7 +512646,7 @@ var init_bridge_kick = __esm(() => {
|
|
|
512649
512646
|
var call60 = async () => {
|
|
512650
512647
|
return {
|
|
512651
512648
|
type: "text",
|
|
512652
|
-
value: `${"1.1.0"} (built ${"2026-05-23T19:
|
|
512649
|
+
value: `${"1.1.0"} (built ${"2026-05-23T19:20:07.267Z"})`
|
|
512653
512650
|
};
|
|
512654
512651
|
}, version2, version_default;
|
|
512655
512652
|
var init_version = __esm(() => {
|
|
@@ -578712,13 +578709,13 @@ function permissionPromptToolResultToPermissionDecision(result, tool, input, too
|
|
|
578712
578709
|
decisionReason
|
|
578713
578710
|
};
|
|
578714
578711
|
}
|
|
578715
|
-
var
|
|
578712
|
+
var inputSchema44, decisionClassificationField, PermissionAllowResultSchema, PermissionDenyResultSchema, outputSchema36;
|
|
578716
578713
|
var init_PermissionPromptToolResultSchema = __esm(() => {
|
|
578717
578714
|
init_v4();
|
|
578718
578715
|
init_debug();
|
|
578719
578716
|
init_PermissionUpdate();
|
|
578720
578717
|
init_PermissionUpdateSchema();
|
|
578721
|
-
|
|
578718
|
+
inputSchema44 = lazySchema(() => v4_default.object({
|
|
578722
578719
|
tool_name: v4_default.string().describe("The name of the tool requesting permission"),
|
|
578723
578720
|
input: v4_default.record(v4_default.string(), v4_default.unknown()).describe("The input for the tool"),
|
|
578724
578721
|
tool_use_id: v4_default.string().optional().describe("The unique tool use request ID")
|
|
@@ -588673,7 +588670,7 @@ function WelcomeV2() {
|
|
|
588673
588670
|
dimColor: true,
|
|
588674
588671
|
children: [
|
|
588675
588672
|
"v",
|
|
588676
|
-
"1.1.
|
|
588673
|
+
"1.1.2",
|
|
588677
588674
|
" "
|
|
588678
588675
|
]
|
|
588679
588676
|
})
|
|
@@ -588907,7 +588904,7 @@ function WelcomeV2() {
|
|
|
588907
588904
|
dimColor: true,
|
|
588908
588905
|
children: [
|
|
588909
588906
|
"v",
|
|
588910
|
-
"1.1.
|
|
588907
|
+
"1.1.2",
|
|
588911
588908
|
" "
|
|
588912
588909
|
]
|
|
588913
588910
|
})
|
|
@@ -589154,7 +589151,7 @@ function AppleTerminalWelcomeV2(t0) {
|
|
|
589154
589151
|
dimColor: true,
|
|
589155
589152
|
children: [
|
|
589156
589153
|
"v",
|
|
589157
|
-
"1.1.
|
|
589154
|
+
"1.1.2",
|
|
589158
589155
|
" "
|
|
589159
589156
|
]
|
|
589160
589157
|
});
|
|
@@ -589427,7 +589424,7 @@ function AppleTerminalWelcomeV2(t0) {
|
|
|
589427
589424
|
dimColor: true,
|
|
589428
589425
|
children: [
|
|
589429
589426
|
"v",
|
|
589430
|
-
"1.1.
|
|
589427
|
+
"1.1.2",
|
|
589431
589428
|
" "
|
|
589432
589429
|
]
|
|
589433
589430
|
});
|
|
@@ -609672,7 +609669,7 @@ Usage: claude --remote "your task description"`, () => gracefulShutdown(1));
|
|
|
609672
609669
|
pendingHookMessages
|
|
609673
609670
|
}, renderAndRun);
|
|
609674
609671
|
}
|
|
609675
|
-
}).version("1.1.
|
|
609672
|
+
}).version("1.1.2", "-v, --version", "Output the version number");
|
|
609676
609673
|
program2.option("-w, --worktree [name]", "Create a new git worktree for this session (optionally specify a name)");
|
|
609677
609674
|
program2.option("--tmux", "Create a tmux session for the worktree (requires --worktree). Uses iTerm2 native panes when available; use --tmux=classic for traditional tmux.");
|
|
609678
609675
|
if (canUserConfigureAdvisor()) {
|
|
@@ -610338,7 +610335,7 @@ if (false) {}
|
|
|
610338
610335
|
async function main2() {
|
|
610339
610336
|
const args = process.argv.slice(2);
|
|
610340
610337
|
if (args.length === 1 && (args[0] === "--version" || args[0] === "-v" || args[0] === "-V")) {
|
|
610341
|
-
console.log(`${"1.1.
|
|
610338
|
+
console.log(`${"1.1.2"} (ZeroCLI)`);
|
|
610342
610339
|
return;
|
|
610343
610340
|
}
|
|
610344
610341
|
if (args.includes("--provider")) {
|
|
@@ -610480,4 +610477,4 @@ async function main2() {
|
|
|
610480
610477
|
}
|
|
610481
610478
|
main2();
|
|
610482
610479
|
|
|
610483
|
-
//# debugId=
|
|
610480
|
+
//# debugId=051ED0C03B78342F64756E2164756E21
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@duheso/zerocli",
|
|
3
|
-
"version": "1.1.
|
|
4
|
-
"description": "Zero CLI to any LLM
|
|
3
|
+
"version": "1.1.2",
|
|
4
|
+
"description": "Zero CLI to any LLM \u2014 OpenAI, Gemini, DeepSeek, Ollama, and 200+ models",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
7
7
|
"zero": "bin/zero"
|
|
@@ -171,4 +171,4 @@
|
|
|
171
171
|
"overrides": {
|
|
172
172
|
"lodash-es": "4.18.1"
|
|
173
173
|
}
|
|
174
|
-
}
|
|
174
|
+
}
|