@duheso/zerocli 1.1.0 → 1.1.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.
Files changed (2) hide show
  1. package/dist/cli.mjs +118 -123
  2. 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.0"}${RESET}`);
119229
+ out.push(` ${DIM}${rgb(...DIMCOL)}zero ${RESET}${rgb(...ACCENT)}v${"1.1.1"}${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(input, connectionManager);
389162
+ return handleMouseAction(castInput, connectionManager);
389162
389163
  if (KEYBOARD_ACTIONS.has(action))
389163
- return handleKeyboardAction(input, connectionManager);
389164
+ return handleKeyboardAction(castInput, connectionManager);
389164
389165
  if (WINDOW_ACTIONS.has(action))
389165
- return handleWindowAction(input, connectionManager);
389166
+ return handleWindowAction(castInput, connectionManager);
389166
389167
  if (CAPTURE_ACTIONS.has(action))
389167
- return handleCaptureAction(input, connectionManager);
389168
+ return handleCaptureAction(castInput, connectionManager);
389168
389169
  if (AUTOMATION_ACTIONS.has(action))
389169
- return handleAutomationAction(input, connectionManager);
389170
+ return handleAutomationAction(castInput, connectionManager);
389170
389171
  if (CLIPBOARD_ACTIONS.has(action))
389171
- return handleClipboardAction(input, connectionManager);
389172
+ return handleClipboardAction(castInput, connectionManager);
389172
389173
  if (DESKTOP_ACTIONS.has(action))
389173
- return handleDesktopAction(input, connectionManager);
389174
+ return handleDesktopAction(castInput, connectionManager);
389174
389175
  if (FILE_PROCESS_ACTIONS.has(action))
389175
- return handleFileAction(input, connectionManager);
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,6 +389235,62 @@ 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,
@@ -389240,80 +389298,18 @@ var init_WindowsControlTool = __esm(() => {
389240
389298
  searchHint: SEARCH_HINT,
389241
389299
  prompt: WINDOWS_CONTROL_PROMPT,
389242
389300
  isConcurrencySafe: false,
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"]
389305
- },
389301
+ inputSchema: inputSchema38,
389306
389302
  async call(input) {
389307
389303
  const result = await routeAction(input);
389308
389304
  if (input.action === "screenshot" && result.success && result.data) {
389309
- const screenshotData = result.data;
389305
+ const d = result.data;
389310
389306
  return {
389311
389307
  type: "screenshot",
389312
- imageBase64: screenshotData.imageBase64,
389313
- width: screenshotData.width,
389314
- height: screenshotData.height,
389315
- cursor: screenshotData.cursor,
389316
- message: result.message || `Screenshot ${screenshotData.width}x${screenshotData.height}`
389308
+ imageBase64: d.imageBase64,
389309
+ width: d.width,
389310
+ height: d.height,
389311
+ cursor: d.cursor,
389312
+ message: result.message || `Screenshot ${d.width}x${d.height}`
389317
389313
  };
389318
389314
  }
389319
389315
  return {
@@ -389323,12 +389319,6 @@ var init_WindowsControlTool = __esm(() => {
389323
389319
  },
389324
389320
  mapToolResultToToolResultBlockParam(data, toolUseID) {
389325
389321
  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
389322
  return {
389333
389323
  tool_use_id: toolUseID,
389334
389324
  type: "tool_result",
@@ -389343,7 +389333,12 @@ var init_WindowsControlTool = __esm(() => {
389343
389333
  },
389344
389334
  {
389345
389335
  type: "text",
389346
- text: metaText
389336
+ text: JSON.stringify({
389337
+ width: data.width,
389338
+ height: data.height,
389339
+ cursor: data.cursor,
389340
+ message: data.message
389341
+ })
389347
389342
  }
389348
389343
  ]
389349
389344
  };
@@ -395653,7 +395648,7 @@ async function* runShellCommand({
395653
395648
  }
395654
395649
  }
395655
395650
  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, inputSchema38, COMMON_BACKGROUND_COMMANDS2, outputSchema32, BashTool;
395651
+ `, 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
395652
  var init_BashTool = __esm(() => {
395658
395653
  init_v4();
395659
395654
  init_state();
@@ -395746,7 +395741,7 @@ For commands that are harder to parse at a glance (piped commands, obscure flags
395746
395741
  newContent: exports_external.string()
395747
395742
  }).optional().describe("Internal: pre-computed sed edit result from preview")
395748
395743
  }));
395749
- inputSchema38 = lazySchema(() => isBackgroundTasksDisabled3 ? fullInputSchema3().omit({
395744
+ inputSchema39 = lazySchema(() => isBackgroundTasksDisabled3 ? fullInputSchema3().omit({
395750
395745
  run_in_background: true,
395751
395746
  dangerouslyDisableSandbox: true,
395752
395747
  _dangerouslyDisableSandboxApproved: true,
@@ -395816,7 +395811,7 @@ For commands that are harder to parse at a glance (piped commands, obscure flags
395816
395811
  };
395817
395812
  },
395818
395813
  isSearchOrReadCommand(input) {
395819
- const parsed = inputSchema38().safeParse(input);
395814
+ const parsed = inputSchema39().safeParse(input);
395820
395815
  if (!parsed.success)
395821
395816
  return {
395822
395817
  isSearch: false,
@@ -395826,7 +395821,7 @@ For commands that are harder to parse at a glance (piped commands, obscure flags
395826
395821
  return isSearchOrReadBashCommand(parsed.data.command);
395827
395822
  },
395828
395823
  get inputSchema() {
395829
- return inputSchema38();
395824
+ return inputSchema39();
395830
395825
  },
395831
395826
  get outputSchema() {
395832
395827
  return outputSchema32();
@@ -402279,7 +402274,7 @@ function getAnthropicEnvMetadata() {
402279
402274
  function getBuildAgeMinutes() {
402280
402275
  if (false)
402281
402276
  ;
402282
- const buildTime = new Date("2026-05-23T19:08:41.809Z").getTime();
402277
+ const buildTime = new Date("2026-05-23T19:16:20.881Z").getTime();
402283
402278
  if (isNaN(buildTime))
402284
402279
  return;
402285
402280
  return Math.floor((Date.now() - buildTime) / 60000);
@@ -405725,8 +405720,8 @@ async function calculateDeferredToolDescriptionChars(tools, getToolPermissionCon
405725
405720
  tools,
405726
405721
  agents
405727
405722
  });
405728
- const inputSchema39 = tool.inputJSONSchema ? jsonStringify(tool.inputJSONSchema) : tool.inputSchema ? jsonStringify(zodToJsonSchema3(tool.inputSchema)) : "";
405729
- return tool.name.length + description.length + inputSchema39.length;
405723
+ const inputSchema40 = tool.inputJSONSchema ? jsonStringify(tool.inputJSONSchema) : tool.inputSchema ? jsonStringify(zodToJsonSchema3(tool.inputSchema)) : "";
405724
+ return tool.name.length + description.length + inputSchema40.length;
405730
405725
  }));
405731
405726
  return sizes.reduce((total, size) => total + size, 0);
405732
405727
  }
@@ -407275,7 +407270,7 @@ async function readImageWithTokenBudget(filePath, maxTokens = getDefaultFileRead
407275
407270
  }
407276
407271
  return result;
407277
407272
  }
407278
- var BLOCKED_DEVICE_PATHS, THIN_SPACE, fileReadListeners, MaxFileReadTokenExceededError, IMAGE_EXTENSIONS, inputSchema39, outputSchema33, FileReadTool, CYBER_RISK_MITIGATION_REMINDER = `
407273
+ var BLOCKED_DEVICE_PATHS, THIN_SPACE, fileReadListeners, MaxFileReadTokenExceededError, IMAGE_EXTENSIONS, inputSchema40, outputSchema33, FileReadTool, CYBER_RISK_MITIGATION_REMINDER = `
407279
407274
 
407280
407275
  <system-reminder>
407281
407276
  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 +407337,7 @@ var init_FileReadTool = __esm(() => {
407342
407337
  }
407343
407338
  };
407344
407339
  IMAGE_EXTENSIONS = new Set(["png", "jpg", "jpeg", "gif", "webp"]);
407345
- inputSchema39 = lazySchema(() => exports_external.strictObject({
407340
+ inputSchema40 = lazySchema(() => exports_external.strictObject({
407346
407341
  file_path: exports_external.string().describe("The absolute path to the file to read"),
407347
407342
  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
407343
  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 +407422,7 @@ var init_FileReadTool = __esm(() => {
407427
407422
  return renderPromptTemplate(pickLineFormatInstruction(), maxSizeInstruction, offsetInstruction);
407428
407423
  },
407429
407424
  get inputSchema() {
407430
- return inputSchema39();
407425
+ return inputSchema40();
407431
407426
  },
407432
407427
  get outputSchema() {
407433
407428
  return outputSchema33();
@@ -419005,7 +419000,7 @@ var init_UI25 = __esm(() => {
419005
419000
  });
419006
419001
 
419007
419002
  // src/tools/ListMcpResourcesTool/ListMcpResourcesTool.ts
419008
- var inputSchema40, outputSchema34, ListMcpResourcesTool;
419003
+ var inputSchema41, outputSchema34, ListMcpResourcesTool;
419009
419004
  var init_ListMcpResourcesTool = __esm(() => {
419010
419005
  init_v4();
419011
419006
  init_client7();
@@ -419015,7 +419010,7 @@ var init_ListMcpResourcesTool = __esm(() => {
419015
419010
  init_slowOperations();
419016
419011
  init_terminal2();
419017
419012
  init_UI25();
419018
- inputSchema40 = lazySchema(() => exports_external.object({
419013
+ inputSchema41 = lazySchema(() => exports_external.object({
419019
419014
  server: exports_external.string().optional().describe("Optional server name to filter resources by")
419020
419015
  }));
419021
419016
  outputSchema34 = lazySchema(() => exports_external.array(exports_external.object({
@@ -419046,7 +419041,7 @@ var init_ListMcpResourcesTool = __esm(() => {
419046
419041
  return PROMPT6;
419047
419042
  },
419048
419043
  get inputSchema() {
419049
- return inputSchema40();
419044
+ return inputSchema41();
419050
419045
  },
419051
419046
  get outputSchema() {
419052
419047
  return outputSchema34();
@@ -419541,14 +419536,14 @@ var init_UI26 = __esm(() => {
419541
419536
  });
419542
419537
 
419543
419538
  // src/tools/MCPTool/MCPTool.ts
419544
- var import_ajv3, inputSchema41, outputSchema35, ajv, MCPTool;
419539
+ var import_ajv3, inputSchema42, outputSchema35, ajv, MCPTool;
419545
419540
  var init_MCPTool = __esm(() => {
419546
419541
  init_v4();
419547
419542
  init_Tool();
419548
419543
  init_terminal2();
419549
419544
  init_UI26();
419550
419545
  import_ajv3 = __toESM(require_ajv(), 1);
419551
- inputSchema41 = lazySchema(() => exports_external.object({}).passthrough());
419546
+ inputSchema42 = lazySchema(() => exports_external.object({}).passthrough());
419552
419547
  outputSchema35 = lazySchema(() => exports_external.union([
419553
419548
  exports_external.string().describe("MCP tool execution result as text"),
419554
419549
  exports_external.array(exports_external.object({
@@ -419571,7 +419566,7 @@ var init_MCPTool = __esm(() => {
419571
419566
  return PROMPT7;
419572
419567
  },
419573
419568
  get inputSchema() {
419574
- return inputSchema41();
419569
+ return inputSchema42();
419575
419570
  },
419576
419571
  get outputSchema() {
419577
419572
  return outputSchema35();
@@ -423001,7 +422996,7 @@ function createMcpAuthTool(serverName, config2) {
423001
422996
  return description;
423002
422997
  },
423003
422998
  get inputSchema() {
423004
- return inputSchema42();
422999
+ return inputSchema43();
423005
423000
  },
423006
423001
  async checkPermissions(input) {
423007
423002
  return { behavior: "allow", updatedInput: input };
@@ -423097,7 +423092,7 @@ Once they complete the flow, the server's tools will become available automatica
423097
423092
  }
423098
423093
  };
423099
423094
  }
423100
- var inputSchema42;
423095
+ var inputSchema43;
423101
423096
  var init_McpAuthTool = __esm(() => {
423102
423097
  init_reject2();
423103
423098
  init_v4();
@@ -423106,7 +423101,7 @@ var init_McpAuthTool = __esm(() => {
423106
423101
  init_mcpStringUtils();
423107
423102
  init_errors();
423108
423103
  init_log3();
423109
- inputSchema42 = lazySchema(() => exports_external.object({}));
423104
+ inputSchema43 = lazySchema(() => exports_external.object({}));
423110
423105
  });
423111
423106
 
423112
423107
  // src/utils/mcpWebSocketTransport.ts
@@ -428223,12 +428218,12 @@ class McpServer {
428223
428218
  }
428224
428219
  return registeredPrompt;
428225
428220
  }
428226
- _createRegisteredTool(name, title, description, inputSchema43, outputSchema36, annotations, execution, _meta, handler5) {
428221
+ _createRegisteredTool(name, title, description, inputSchema44, outputSchema36, annotations, execution, _meta, handler5) {
428227
428222
  validateAndWarnToolName(name);
428228
428223
  const registeredTool = {
428229
428224
  title,
428230
428225
  description,
428231
- inputSchema: getZodSchemaObject(inputSchema43),
428226
+ inputSchema: getZodSchemaObject(inputSchema44),
428232
428227
  outputSchema: getZodSchemaObject(outputSchema36),
428233
428228
  annotations,
428234
428229
  execution,
@@ -428276,7 +428271,7 @@ class McpServer {
428276
428271
  throw new Error(`Tool ${name} is already registered`);
428277
428272
  }
428278
428273
  let description;
428279
- let inputSchema43;
428274
+ let inputSchema44;
428280
428275
  let outputSchema36;
428281
428276
  let annotations;
428282
428277
  if (typeof rest[0] === "string") {
@@ -428285,7 +428280,7 @@ class McpServer {
428285
428280
  if (rest.length > 1) {
428286
428281
  const firstArg = rest[0];
428287
428282
  if (isZodRawShapeCompat(firstArg)) {
428288
- inputSchema43 = rest.shift();
428283
+ inputSchema44 = rest.shift();
428289
428284
  if (rest.length > 1 && typeof rest[0] === "object" && rest[0] !== null && !isZodRawShapeCompat(rest[0])) {
428290
428285
  annotations = rest.shift();
428291
428286
  }
@@ -428297,14 +428292,14 @@ class McpServer {
428297
428292
  }
428298
428293
  }
428299
428294
  const callback = rest[0];
428300
- return this._createRegisteredTool(name, undefined, description, inputSchema43, outputSchema36, annotations, { taskSupport: "forbidden" }, undefined, callback);
428295
+ return this._createRegisteredTool(name, undefined, description, inputSchema44, outputSchema36, annotations, { taskSupport: "forbidden" }, undefined, callback);
428301
428296
  }
428302
428297
  registerTool(name, config2, cb) {
428303
428298
  if (this._registeredTools[name]) {
428304
428299
  throw new Error(`Tool ${name} is already registered`);
428305
428300
  }
428306
- const { title, description, inputSchema: inputSchema43, outputSchema: outputSchema36, annotations, _meta } = config2;
428307
- return this._createRegisteredTool(name, title, description, inputSchema43, outputSchema36, annotations, { taskSupport: "forbidden" }, _meta, cb);
428301
+ const { title, description, inputSchema: inputSchema44, outputSchema: outputSchema36, annotations, _meta } = config2;
428302
+ return this._createRegisteredTool(name, title, description, inputSchema44, outputSchema36, annotations, { taskSupport: "forbidden" }, _meta, cb);
428308
428303
  }
428309
428304
  prompt(name, ...rest) {
428310
428305
  if (this._registeredPrompts[name]) {
@@ -444303,7 +444298,7 @@ function buildPrimarySection() {
444303
444298
  });
444304
444299
  return [{
444305
444300
  label: "Version",
444306
- value: "1.1.0"
444301
+ value: "1.1.1"
444307
444302
  }, {
444308
444303
  label: "Session name",
444309
444304
  value: nameValue
@@ -512649,7 +512644,7 @@ var init_bridge_kick = __esm(() => {
512649
512644
  var call60 = async () => {
512650
512645
  return {
512651
512646
  type: "text",
512652
- value: `${"1.1.0"} (built ${"2026-05-23T19:08:41.809Z"})`
512647
+ value: `${"1.1.0"} (built ${"2026-05-23T19:16:20.881Z"})`
512653
512648
  };
512654
512649
  }, version2, version_default;
512655
512650
  var init_version = __esm(() => {
@@ -578712,13 +578707,13 @@ function permissionPromptToolResultToPermissionDecision(result, tool, input, too
578712
578707
  decisionReason
578713
578708
  };
578714
578709
  }
578715
- var inputSchema43, decisionClassificationField, PermissionAllowResultSchema, PermissionDenyResultSchema, outputSchema36;
578710
+ var inputSchema44, decisionClassificationField, PermissionAllowResultSchema, PermissionDenyResultSchema, outputSchema36;
578716
578711
  var init_PermissionPromptToolResultSchema = __esm(() => {
578717
578712
  init_v4();
578718
578713
  init_debug();
578719
578714
  init_PermissionUpdate();
578720
578715
  init_PermissionUpdateSchema();
578721
- inputSchema43 = lazySchema(() => v4_default.object({
578716
+ inputSchema44 = lazySchema(() => v4_default.object({
578722
578717
  tool_name: v4_default.string().describe("The name of the tool requesting permission"),
578723
578718
  input: v4_default.record(v4_default.string(), v4_default.unknown()).describe("The input for the tool"),
578724
578719
  tool_use_id: v4_default.string().optional().describe("The unique tool use request ID")
@@ -588673,7 +588668,7 @@ function WelcomeV2() {
588673
588668
  dimColor: true,
588674
588669
  children: [
588675
588670
  "v",
588676
- "1.1.0",
588671
+ "1.1.1",
588677
588672
  " "
588678
588673
  ]
588679
588674
  })
@@ -588907,7 +588902,7 @@ function WelcomeV2() {
588907
588902
  dimColor: true,
588908
588903
  children: [
588909
588904
  "v",
588910
- "1.1.0",
588905
+ "1.1.1",
588911
588906
  " "
588912
588907
  ]
588913
588908
  })
@@ -589154,7 +589149,7 @@ function AppleTerminalWelcomeV2(t0) {
589154
589149
  dimColor: true,
589155
589150
  children: [
589156
589151
  "v",
589157
- "1.1.0",
589152
+ "1.1.1",
589158
589153
  " "
589159
589154
  ]
589160
589155
  });
@@ -589427,7 +589422,7 @@ function AppleTerminalWelcomeV2(t0) {
589427
589422
  dimColor: true,
589428
589423
  children: [
589429
589424
  "v",
589430
- "1.1.0",
589425
+ "1.1.1",
589431
589426
  " "
589432
589427
  ]
589433
589428
  });
@@ -609672,7 +609667,7 @@ Usage: claude --remote "your task description"`, () => gracefulShutdown(1));
609672
609667
  pendingHookMessages
609673
609668
  }, renderAndRun);
609674
609669
  }
609675
- }).version("1.1.0", "-v, --version", "Output the version number");
609670
+ }).version("1.1.1", "-v, --version", "Output the version number");
609676
609671
  program2.option("-w, --worktree [name]", "Create a new git worktree for this session (optionally specify a name)");
609677
609672
  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
609673
  if (canUserConfigureAdvisor()) {
@@ -610338,7 +610333,7 @@ if (false) {}
610338
610333
  async function main2() {
610339
610334
  const args = process.argv.slice(2);
610340
610335
  if (args.length === 1 && (args[0] === "--version" || args[0] === "-v" || args[0] === "-V")) {
610341
- console.log(`${"1.1.0"} (ZeroCLI)`);
610336
+ console.log(`${"1.1.1"} (ZeroCLI)`);
610342
610337
  return;
610343
610338
  }
610344
610339
  if (args.includes("--provider")) {
@@ -610480,4 +610475,4 @@ async function main2() {
610480
610475
  }
610481
610476
  main2();
610482
610477
 
610483
- //# debugId=D2D180B6E13B56C764756E2164756E21
610478
+ //# debugId=F282308AFD9D507264756E2164756E21
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@duheso/zerocli",
3
- "version": "1.1.0",
4
- "description": "Zero CLI to any LLM OpenAI, Gemini, DeepSeek, Ollama, and 200+ models",
3
+ "version": "1.1.1",
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
+ }