@duheso/zerocli 1.1.4 → 1.1.6
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 +204 -82
- package/package.json +1 -1
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.6"}${RESET}`);
|
|
119230
119230
|
return out;
|
|
119231
119231
|
}
|
|
119232
119232
|
function printStartupScreen() {}
|
|
@@ -147417,7 +147417,7 @@ function getAttributionHeader(fingerprint) {
|
|
|
147417
147417
|
if (!isAttributionHeaderEnabled()) {
|
|
147418
147418
|
return "";
|
|
147419
147419
|
}
|
|
147420
|
-
const version2 = `${"1.1.
|
|
147420
|
+
const version2 = `${"1.1.6"}.${fingerprint}`;
|
|
147421
147421
|
const entrypoint = process.env.CLAUDE_CODE_ENTRYPOINT ?? "unknown";
|
|
147422
147422
|
const cch = "";
|
|
147423
147423
|
const workload = getWorkload();
|
|
@@ -190435,7 +190435,7 @@ var init_imageValidation = __esm(() => {
|
|
|
190435
190435
|
|
|
190436
190436
|
// src/utils/userAgent.ts
|
|
190437
190437
|
function getZeroCodeUserAgent() {
|
|
190438
|
-
return `claude-code/${"1.1.
|
|
190438
|
+
return `claude-code/${"1.1.6"}`;
|
|
190439
190439
|
}
|
|
190440
190440
|
|
|
190441
190441
|
// src/utils/http.ts
|
|
@@ -190444,7 +190444,7 @@ function getUserAgent() {
|
|
|
190444
190444
|
const clientApp = process.env.CLAUDE_AGENT_SDK_CLIENT_APP ? `, client-app/${process.env.CLAUDE_AGENT_SDK_CLIENT_APP}` : "";
|
|
190445
190445
|
const workload = getWorkload();
|
|
190446
190446
|
const workloadSuffix = workload ? `, workload/${workload}` : "";
|
|
190447
|
-
return `claude-cli/${"1.1.
|
|
190447
|
+
return `claude-cli/${"1.1.6"} (${process.env.USER_TYPE}, ${process.env.CLAUDE_CODE_ENTRYPOINT ?? "cli"}${agentSdkVersion}${clientApp}${workloadSuffix})`;
|
|
190448
190448
|
}
|
|
190449
190449
|
function getMCPUserAgent() {
|
|
190450
190450
|
const parts = [];
|
|
@@ -190458,7 +190458,7 @@ function getMCPUserAgent() {
|
|
|
190458
190458
|
parts.push(`client-app/${process.env.CLAUDE_AGENT_SDK_CLIENT_APP}`);
|
|
190459
190459
|
}
|
|
190460
190460
|
const suffix = parts.length > 0 ? ` (${parts.join(", ")})` : "";
|
|
190461
|
-
return `claude-code/${"1.1.
|
|
190461
|
+
return `claude-code/${"1.1.6"}${suffix}`;
|
|
190462
190462
|
}
|
|
190463
190463
|
function getWebFetchUserAgent() {
|
|
190464
190464
|
const supportUrl = getAPIProvider() === "firstParty" ? "https://support.anthropic.com/" : "https://github.com/Duheso/ZeroCLI";
|
|
@@ -244944,7 +244944,7 @@ function getTelemetryAttributes() {
|
|
|
244944
244944
|
attributes["session.id"] = sessionId;
|
|
244945
244945
|
}
|
|
244946
244946
|
if (shouldIncludeAttribute("OTEL_METRICS_INCLUDE_VERSION")) {
|
|
244947
|
-
attributes["app.version"] = "1.1.
|
|
244947
|
+
attributes["app.version"] = "1.1.6";
|
|
244948
244948
|
}
|
|
244949
244949
|
const oauthAccount = getOauthAccountInfo();
|
|
244950
244950
|
if (oauthAccount) {
|
|
@@ -257183,7 +257183,7 @@ function computeFingerprint(messageText, version2) {
|
|
|
257183
257183
|
}
|
|
257184
257184
|
function computeFingerprintFromMessages(messages) {
|
|
257185
257185
|
const firstMessageText = extractFirstMessageText(messages);
|
|
257186
|
-
return computeFingerprint(firstMessageText, "1.1.
|
|
257186
|
+
return computeFingerprint(firstMessageText, "1.1.6");
|
|
257187
257187
|
}
|
|
257188
257188
|
var FINGERPRINT_SALT = "59cf53e54c78";
|
|
257189
257189
|
var init_fingerprint = () => {};
|
|
@@ -257225,7 +257225,7 @@ async function sideQuery(opts) {
|
|
|
257225
257225
|
betas.push(STRUCTURED_OUTPUTS_BETA_HEADER);
|
|
257226
257226
|
}
|
|
257227
257227
|
const messageText = extractFirstUserMessageText(messages);
|
|
257228
|
-
const fingerprint = computeFingerprint(messageText, "1.1.
|
|
257228
|
+
const fingerprint = computeFingerprint(messageText, "1.1.6");
|
|
257229
257229
|
const attributionHeader = getAttributionHeader(fingerprint);
|
|
257230
257230
|
const systemBlocks = [
|
|
257231
257231
|
attributionHeader ? { type: "text", text: attributionHeader } : null,
|
|
@@ -266127,7 +266127,7 @@ var init_user = __esm(() => {
|
|
|
266127
266127
|
deviceId,
|
|
266128
266128
|
sessionId: getSessionId(),
|
|
266129
266129
|
email: getEmail(),
|
|
266130
|
-
appVersion: "1.1.
|
|
266130
|
+
appVersion: "1.1.6",
|
|
266131
266131
|
platform: getHostPlatformForAnalytics(),
|
|
266132
266132
|
organizationUuid,
|
|
266133
266133
|
accountUuid,
|
|
@@ -266521,7 +266521,7 @@ async function initializeBetaTracing(resource) {
|
|
|
266521
266521
|
});
|
|
266522
266522
|
logs.setGlobalLoggerProvider(loggerProvider);
|
|
266523
266523
|
setLoggerProvider(loggerProvider);
|
|
266524
|
-
const eventLogger = logs.getLogger("com.anthropic.claude_code.events", "1.1.
|
|
266524
|
+
const eventLogger = logs.getLogger("com.anthropic.claude_code.events", "1.1.6");
|
|
266525
266525
|
setEventLogger(eventLogger);
|
|
266526
266526
|
process.on("beforeExit", async () => {
|
|
266527
266527
|
await loggerProvider?.forceFlush();
|
|
@@ -266561,7 +266561,7 @@ async function initializeTelemetry() {
|
|
|
266561
266561
|
const platform3 = getPlatform();
|
|
266562
266562
|
const baseAttributes = {
|
|
266563
266563
|
[ATTR_SERVICE_NAME3]: "claude-code",
|
|
266564
|
-
[ATTR_SERVICE_VERSION3]: "1.1.
|
|
266564
|
+
[ATTR_SERVICE_VERSION3]: "1.1.6"
|
|
266565
266565
|
};
|
|
266566
266566
|
if (platform3 === "wsl") {
|
|
266567
266567
|
const wslVersion = getWslVersion();
|
|
@@ -266606,7 +266606,7 @@ async function initializeTelemetry() {
|
|
|
266606
266606
|
} catch {}
|
|
266607
266607
|
};
|
|
266608
266608
|
registerCleanup(shutdownTelemetry2);
|
|
266609
|
-
return meterProvider2.getMeter("com.anthropic.claude_code", "1.1.
|
|
266609
|
+
return meterProvider2.getMeter("com.anthropic.claude_code", "1.1.6");
|
|
266610
266610
|
}
|
|
266611
266611
|
const meterProvider = new MeterProvider3({
|
|
266612
266612
|
resource,
|
|
@@ -266626,7 +266626,7 @@ async function initializeTelemetry() {
|
|
|
266626
266626
|
});
|
|
266627
266627
|
logs.setGlobalLoggerProvider(loggerProvider);
|
|
266628
266628
|
setLoggerProvider(loggerProvider);
|
|
266629
|
-
const eventLogger = logs.getLogger("com.anthropic.claude_code.events", "1.1.
|
|
266629
|
+
const eventLogger = logs.getLogger("com.anthropic.claude_code.events", "1.1.6");
|
|
266630
266630
|
setEventLogger(eventLogger);
|
|
266631
266631
|
logForDebugging("[3P telemetry] Event logger set successfully");
|
|
266632
266632
|
process.on("beforeExit", async () => {
|
|
@@ -266688,7 +266688,7 @@ Current timeout: ${timeoutMs}ms
|
|
|
266688
266688
|
}
|
|
266689
266689
|
};
|
|
266690
266690
|
registerCleanup(shutdownTelemetry);
|
|
266691
|
-
return meterProvider.getMeter("com.anthropic.claude_code", "1.1.
|
|
266691
|
+
return meterProvider.getMeter("com.anthropic.claude_code", "1.1.6");
|
|
266692
266692
|
}
|
|
266693
266693
|
async function flushTelemetry() {
|
|
266694
266694
|
const meterProvider = getMeterProvider();
|
|
@@ -267500,9 +267500,9 @@ async function assertMinVersion() {
|
|
|
267500
267500
|
}
|
|
267501
267501
|
try {
|
|
267502
267502
|
const versionConfig = await getDynamicConfig_BLOCKS_ON_INIT("tengu_version_config", { minVersion: "0.0.0" });
|
|
267503
|
-
if (versionConfig.minVersion && lt("1.1.
|
|
267503
|
+
if (versionConfig.minVersion && lt("1.1.6", versionConfig.minVersion)) {
|
|
267504
267504
|
console.error(`
|
|
267505
|
-
It looks like your version of ZeroCLI (${"1.1.
|
|
267505
|
+
It looks like your version of ZeroCLI (${"1.1.6"}) needs an update.
|
|
267506
267506
|
A newer version (${versionConfig.minVersion} or higher) is required to continue.
|
|
267507
267507
|
|
|
267508
267508
|
To update, please run:
|
|
@@ -267718,7 +267718,7 @@ async function installGlobalPackage(specificVersion) {
|
|
|
267718
267718
|
logError2(new AutoUpdaterError("Another process is currently installing an update"));
|
|
267719
267719
|
logEvent("tengu_auto_updater_lock_contention", {
|
|
267720
267720
|
pid: process.pid,
|
|
267721
|
-
currentVersion: "1.1.
|
|
267721
|
+
currentVersion: "1.1.6"
|
|
267722
267722
|
});
|
|
267723
267723
|
return "in_progress";
|
|
267724
267724
|
}
|
|
@@ -267727,7 +267727,7 @@ async function installGlobalPackage(specificVersion) {
|
|
|
267727
267727
|
if (!env2.isRunningWithBun() && env2.isNpmFromWindowsPath()) {
|
|
267728
267728
|
logError2(new Error("Windows NPM detected in WSL environment"));
|
|
267729
267729
|
logEvent("tengu_auto_updater_windows_npm_in_wsl", {
|
|
267730
|
-
currentVersion: "1.1.
|
|
267730
|
+
currentVersion: "1.1.6"
|
|
267731
267731
|
});
|
|
267732
267732
|
console.error(`
|
|
267733
267733
|
Error: Windows NPM detected in WSL
|
|
@@ -268281,7 +268281,7 @@ async function getDoctorDiagnostic() {
|
|
|
268281
268281
|
const installationType = await getCurrentInstallationType();
|
|
268282
268282
|
let version2;
|
|
268283
268283
|
try {
|
|
268284
|
-
version2 = "1.1.
|
|
268284
|
+
version2 = "1.1.6";
|
|
268285
268285
|
} catch {
|
|
268286
268286
|
version2 = "unknown";
|
|
268287
268287
|
}
|
|
@@ -269775,7 +269775,7 @@ function getInstallationEnv() {
|
|
|
269775
269775
|
return;
|
|
269776
269776
|
}
|
|
269777
269777
|
function getZeroCodeVersion() {
|
|
269778
|
-
return "1.1.
|
|
269778
|
+
return "1.1.6";
|
|
269779
269779
|
}
|
|
269780
269780
|
async function getInstalledVSCodeExtensionVersion(command) {
|
|
269781
269781
|
const { stdout } = await execFileNoThrow(command, ["--list-extensions", "--show-versions"], {
|
|
@@ -271142,8 +271142,8 @@ async function updateLatest(channelOrVersion, forceReinstall = false) {
|
|
|
271142
271142
|
const maxVersion = await getMaxVersion();
|
|
271143
271143
|
if (maxVersion && gt(version2, maxVersion)) {
|
|
271144
271144
|
logForDebugging(`Native installer: maxVersion ${maxVersion} is set, capping update from ${version2} to ${maxVersion}`);
|
|
271145
|
-
if (gte("1.1.
|
|
271146
|
-
logForDebugging(`Native installer: current version ${"1.1.
|
|
271145
|
+
if (gte("1.1.6", maxVersion)) {
|
|
271146
|
+
logForDebugging(`Native installer: current version ${"1.1.6"} is already at or above maxVersion ${maxVersion}, skipping update`);
|
|
271147
271147
|
logEvent("tengu_native_update_skipped_max_version", {
|
|
271148
271148
|
latency_ms: Date.now() - startTime2,
|
|
271149
271149
|
max_version: maxVersion,
|
|
@@ -271154,7 +271154,7 @@ async function updateLatest(channelOrVersion, forceReinstall = false) {
|
|
|
271154
271154
|
version2 = maxVersion;
|
|
271155
271155
|
}
|
|
271156
271156
|
}
|
|
271157
|
-
if (!forceReinstall && version2 === "1.1.
|
|
271157
|
+
if (!forceReinstall && version2 === "1.1.6" && await versionIsAvailable(version2) && await isPossibleZeroBinary(executablePath)) {
|
|
271158
271158
|
logForDebugging(`Found ${version2} at ${executablePath}, skipping install`);
|
|
271159
271159
|
logEvent("tengu_native_update_complete", {
|
|
271160
271160
|
latency_ms: Date.now() - startTime2,
|
|
@@ -388614,9 +388614,12 @@ class GrpcClientWrapper {
|
|
|
388614
388614
|
constructor(host, port2) {
|
|
388615
388615
|
const grpc = require_src4();
|
|
388616
388616
|
const protoLoader = require_src3();
|
|
388617
|
+
const os5 = __require("os");
|
|
388618
|
+
const fs3 = __require("fs");
|
|
388617
388619
|
const path16 = __require("path");
|
|
388618
|
-
const
|
|
388619
|
-
|
|
388620
|
+
const tmpProto = path16.join(os5.tmpdir(), "zero-windows-control.proto");
|
|
388621
|
+
fs3.writeFileSync(tmpProto, WINDOWS_CONTROL_PROTO, "utf8");
|
|
388622
|
+
const packageDef = protoLoader.loadSync(tmpProto, {
|
|
388620
388623
|
keepCase: false,
|
|
388621
388624
|
longs: String,
|
|
388622
388625
|
enums: String,
|
|
@@ -388646,7 +388649,126 @@ class GrpcClientWrapper {
|
|
|
388646
388649
|
} catch {}
|
|
388647
388650
|
}
|
|
388648
388651
|
}
|
|
388649
|
-
var
|
|
388652
|
+
var WINDOWS_CONTROL_PROTO = `
|
|
388653
|
+
syntax = "proto3";
|
|
388654
|
+
package zerocli.windows;
|
|
388655
|
+
service WindowsControlService {
|
|
388656
|
+
rpc Connect(ConnectRequest) returns (ConnectResponse);
|
|
388657
|
+
rpc Disconnect(DisconnectRequest) returns (DisconnectResponse);
|
|
388658
|
+
rpc GetStatus(StatusRequest) returns (StatusResponse);
|
|
388659
|
+
rpc Ping(PingRequest) returns (PingResponse);
|
|
388660
|
+
rpc Screenshot(ScreenshotRequest) returns (ScreenshotResponse);
|
|
388661
|
+
rpc StartStream(StreamRequest) returns (stream ScreenFrame);
|
|
388662
|
+
rpc StopStream(StopStreamRequest) returns (StopStreamResponse);
|
|
388663
|
+
rpc MouseMove(MouseMoveRequest) returns (ActionResponse);
|
|
388664
|
+
rpc MouseClick(MouseClickRequest) returns (ActionResponse);
|
|
388665
|
+
rpc MouseDoubleClick(MouseDoubleClickRequest) returns (ActionResponse);
|
|
388666
|
+
rpc MouseDrag(MouseDragRequest) returns (ActionResponse);
|
|
388667
|
+
rpc MouseScroll(MouseScrollRequest) returns (ActionResponse);
|
|
388668
|
+
rpc KeyPress(KeyPressRequest) returns (ActionResponse);
|
|
388669
|
+
rpc KeyCombo(KeyComboRequest) returns (ActionResponse);
|
|
388670
|
+
rpc KeyHold(KeyHoldRequest) returns (ActionResponse);
|
|
388671
|
+
rpc TypeText(TypeTextRequest) returns (ActionResponse);
|
|
388672
|
+
rpc ListWindows(ListWindowsRequest) returns (ListWindowsResponse);
|
|
388673
|
+
rpc FocusWindow(FocusWindowRequest) returns (ActionResponse);
|
|
388674
|
+
rpc MoveWindow(MoveWindowRequest) returns (ActionResponse);
|
|
388675
|
+
rpc ResizeWindow(ResizeWindowRequest) returns (ActionResponse);
|
|
388676
|
+
rpc MinimizeWindow(WindowActionRequest) returns (ActionResponse);
|
|
388677
|
+
rpc MaximizeWindow(WindowActionRequest) returns (ActionResponse);
|
|
388678
|
+
rpc RestoreWindow(WindowActionRequest) returns (ActionResponse);
|
|
388679
|
+
rpc CloseWindow(WindowActionRequest) returns (ActionResponse);
|
|
388680
|
+
rpc SnapWindow(SnapWindowRequest) returns (ActionResponse);
|
|
388681
|
+
rpc ListDesktops(ListDesktopsRequest) returns (ListDesktopsResponse);
|
|
388682
|
+
rpc SwitchDesktop(SwitchDesktopRequest) returns (ActionResponse);
|
|
388683
|
+
rpc CreateDesktop(CreateDesktopRequest) returns (ActionResponse);
|
|
388684
|
+
rpc DeleteDesktop(DeleteDesktopRequest) returns (ActionResponse);
|
|
388685
|
+
rpc GetUIElements(GetUIElementsRequest) returns (GetUIElementsResponse);
|
|
388686
|
+
rpc ClickUIElement(ClickUIElementRequest) returns (ActionResponse);
|
|
388687
|
+
rpc SetUIElementValue(SetUIElementValueRequest) returns (ActionResponse);
|
|
388688
|
+
rpc ExtractText(ExtractTextRequest) returns (ExtractTextResponse);
|
|
388689
|
+
rpc GetClipboard(GetClipboardRequest) returns (GetClipboardResponse);
|
|
388690
|
+
rpc SetClipboard(SetClipboardRequest) returns (ActionResponse);
|
|
388691
|
+
rpc UploadFile(stream FileChunk) returns (FileTransferResponse);
|
|
388692
|
+
rpc DownloadFile(DownloadFileRequest) returns (stream FileChunk);
|
|
388693
|
+
rpc ListFiles(ListFilesRequest) returns (ListFilesResponse);
|
|
388694
|
+
rpc ListMonitors(ListMonitorsRequest) returns (ListMonitorsResponse);
|
|
388695
|
+
rpc ListProcesses(ListProcessesRequest) returns (ListProcessesResponse);
|
|
388696
|
+
rpc KillProcess(KillProcessRequest) returns (ActionResponse);
|
|
388697
|
+
rpc LaunchProcess(LaunchProcessRequest) returns (LaunchProcessResponse);
|
|
388698
|
+
}
|
|
388699
|
+
message ActionResponse { bool success = 1; string message = 2; string error = 3; int64 timestamp_ms = 4; }
|
|
388700
|
+
message Point { int32 x = 1; int32 y = 2; }
|
|
388701
|
+
message Rect { int32 x = 1; int32 y = 2; int32 width = 3; int32 height = 4; }
|
|
388702
|
+
enum MouseButton { MOUSE_BUTTON_LEFT = 0; MOUSE_BUTTON_RIGHT = 1; MOUSE_BUTTON_MIDDLE = 2; }
|
|
388703
|
+
enum SnapDirection { SNAP_LEFT = 0; SNAP_RIGHT = 1; SNAP_UP = 2; SNAP_DOWN = 3; SNAP_TOP_LEFT = 4; SNAP_TOP_RIGHT = 5; SNAP_BOTTOM_LEFT = 6; SNAP_BOTTOM_RIGHT = 7; }
|
|
388704
|
+
enum ScrollDirection { SCROLL_UP = 0; SCROLL_DOWN = 1; SCROLL_LEFT = 2; SCROLL_RIGHT = 3; }
|
|
388705
|
+
enum ImageFormat { IMAGE_FORMAT_JPEG = 0; IMAGE_FORMAT_PNG = 1; IMAGE_FORMAT_WEBP = 2; }
|
|
388706
|
+
message ConnectRequest { string token = 1; string client_name = 2; string client_version = 3; }
|
|
388707
|
+
message ConnectResponse { bool success = 1; string session_id = 2; string hostname = 3; string os_version = 4; int32 screen_count = 5; repeated MonitorInfo monitors = 6; string error = 7; }
|
|
388708
|
+
message DisconnectRequest { string session_id = 1; }
|
|
388709
|
+
message DisconnectResponse { bool success = 1; }
|
|
388710
|
+
message StatusRequest {}
|
|
388711
|
+
message StatusResponse { bool connected = 1; string session_id = 2; string hostname = 3; int64 uptime_ms = 4; int32 active_streams = 5; CursorPosition cursor = 6; string active_window_title = 7; int32 latency_ms = 8; }
|
|
388712
|
+
message PingRequest { int64 timestamp_ms = 1; }
|
|
388713
|
+
message PingResponse { int64 client_timestamp_ms = 1; int64 server_timestamp_ms = 2; }
|
|
388714
|
+
message ScreenshotRequest { int32 monitor_index = 1; Rect region = 2; string window_handle = 3; ImageFormat format = 4; int32 quality = 5; float scale = 6; }
|
|
388715
|
+
message ScreenshotResponse { bool success = 1; bytes image_data = 2; int32 width = 3; int32 height = 4; ImageFormat format = 5; CursorPosition cursor = 6; string error = 7; }
|
|
388716
|
+
message StreamRequest { int32 monitor_index = 1; int32 fps = 2; ImageFormat format = 3; int32 quality = 4; float scale = 5; bool delta_only = 6; }
|
|
388717
|
+
message ScreenFrame { int64 frame_number = 1; int64 timestamp_ms = 2; bytes image_data = 3; int32 width = 4; int32 height = 5; ImageFormat format = 6; CursorPosition cursor = 7; repeated Rect dirty_rects = 8; bool is_keyframe = 9; }
|
|
388718
|
+
message StopStreamRequest { string stream_id = 1; }
|
|
388719
|
+
message StopStreamResponse { bool success = 1; int64 total_frames = 2; }
|
|
388720
|
+
message CursorPosition { int32 x = 1; int32 y = 2; string cursor_type = 3; }
|
|
388721
|
+
message MouseMoveRequest { int32 x = 1; int32 y = 2; bool show_zero_cursor = 3; }
|
|
388722
|
+
message MouseClickRequest { int32 x = 1; int32 y = 2; MouseButton button = 3; }
|
|
388723
|
+
message MouseDoubleClickRequest { int32 x = 1; int32 y = 2; MouseButton button = 3; }
|
|
388724
|
+
message MouseDragRequest { int32 start_x = 1; int32 start_y = 2; int32 end_x = 3; int32 end_y = 4; MouseButton button = 5; int32 duration_ms = 6; }
|
|
388725
|
+
message MouseScrollRequest { int32 x = 1; int32 y = 2; ScrollDirection direction = 3; int32 amount = 4; }
|
|
388726
|
+
message KeyPressRequest { string key = 1; repeated string modifiers = 2; }
|
|
388727
|
+
message KeyComboRequest { repeated string keys = 1; }
|
|
388728
|
+
message KeyHoldRequest { string key = 1; repeated string modifiers = 2; int32 duration_ms = 3; }
|
|
388729
|
+
message TypeTextRequest { string text = 1; bool use_clipboard = 2; int32 delay_between_keys_ms = 3; }
|
|
388730
|
+
message WindowInfo { string handle = 1; string title = 2; string class_name = 3; int32 pid = 4; string process_name = 5; Rect bounds = 6; bool is_visible = 7; bool is_minimized = 8; bool is_maximized = 9; bool is_focused = 10; int32 monitor_index = 11; }
|
|
388731
|
+
message ListWindowsRequest { bool visible_only = 1; string title_filter = 2; }
|
|
388732
|
+
message ListWindowsResponse { repeated WindowInfo windows = 1; string focused_handle = 2; }
|
|
388733
|
+
message FocusWindowRequest { string handle = 1; }
|
|
388734
|
+
message MoveWindowRequest { string handle = 1; int32 x = 2; int32 y = 3; }
|
|
388735
|
+
message ResizeWindowRequest { string handle = 1; int32 width = 2; int32 height = 3; }
|
|
388736
|
+
message WindowActionRequest { string handle = 1; }
|
|
388737
|
+
message SnapWindowRequest { string handle = 1; SnapDirection direction = 2; }
|
|
388738
|
+
message DesktopInfo { string id = 1; string name = 2; int32 index = 3; bool is_current = 4; }
|
|
388739
|
+
message ListDesktopsRequest {}
|
|
388740
|
+
message ListDesktopsResponse { repeated DesktopInfo desktops = 1; int32 current_index = 2; }
|
|
388741
|
+
message SwitchDesktopRequest { int32 index = 1; }
|
|
388742
|
+
message CreateDesktopRequest { string name = 1; }
|
|
388743
|
+
message DeleteDesktopRequest { string id = 1; }
|
|
388744
|
+
message UIElement { string automation_id = 1; string name = 2; string control_type = 3; string class_name = 4; Rect bounds = 5; bool is_enabled = 6; bool is_offscreen = 7; string value = 8; repeated string supported_patterns = 9; repeated UIElement children = 10; string runtime_id = 11; }
|
|
388745
|
+
message GetUIElementsRequest { string window_handle = 1; Rect region = 2; int32 max_depth = 3; string control_type_filter = 4; }
|
|
388746
|
+
message GetUIElementsResponse { repeated UIElement elements = 1; int32 total_count = 2; }
|
|
388747
|
+
message ClickUIElementRequest { string runtime_id = 1; }
|
|
388748
|
+
message SetUIElementValueRequest { string runtime_id = 1; string value = 2; }
|
|
388749
|
+
message OcrWord { string text = 1; Rect bounds = 2; float confidence = 3; }
|
|
388750
|
+
message OcrLine { string text = 1; Rect bounds = 2; repeated OcrWord words = 3; }
|
|
388751
|
+
message ExtractTextRequest { bytes image_data = 1; Rect region = 2; int32 monitor_index = 3; string language = 4; }
|
|
388752
|
+
message ExtractTextResponse { string full_text = 1; repeated OcrLine lines = 2; string language_detected = 3; }
|
|
388753
|
+
message GetClipboardRequest { bool include_image = 1; }
|
|
388754
|
+
message GetClipboardResponse { string text = 1; bytes image_data = 2; repeated string file_paths = 3; string content_type = 4; }
|
|
388755
|
+
message SetClipboardRequest { string text = 1; bytes image_data = 2; }
|
|
388756
|
+
message FileChunk { string file_path = 1; bytes data = 2; int64 offset = 3; int64 total_size = 4; bool is_last = 5; string checksum = 6; }
|
|
388757
|
+
message FileTransferResponse { bool success = 1; string file_path = 2; int64 total_bytes = 3; string error = 4; }
|
|
388758
|
+
message DownloadFileRequest { string file_path = 1; }
|
|
388759
|
+
message FileInfo { string name = 1; string path = 2; int64 size = 3; bool is_directory = 4; int64 modified_ms = 5; }
|
|
388760
|
+
message ListFilesRequest { string directory = 1; bool recursive = 2; string pattern = 3; }
|
|
388761
|
+
message ListFilesResponse { repeated FileInfo files = 1; string directory = 2; }
|
|
388762
|
+
message MonitorInfo { int32 index = 1; string name = 2; int32 width = 3; int32 height = 4; int32 x = 5; int32 y = 6; bool is_primary = 7; float scale_factor = 8; int32 refresh_rate = 9; }
|
|
388763
|
+
message ListMonitorsRequest {}
|
|
388764
|
+
message ListMonitorsResponse { repeated MonitorInfo monitors = 1; int32 primary_index = 2; }
|
|
388765
|
+
message ProcessInfo { int32 pid = 1; string name = 2; string window_title = 3; int64 memory_bytes = 4; float cpu_percent = 5; string path = 6; }
|
|
388766
|
+
message ListProcessesRequest { string name_filter = 1; bool with_windows_only = 2; }
|
|
388767
|
+
message ListProcessesResponse { repeated ProcessInfo processes = 1; }
|
|
388768
|
+
message KillProcessRequest { int32 pid = 1; bool force = 2; }
|
|
388769
|
+
message LaunchProcessRequest { string path = 1; repeated string arguments = 2; string working_directory = 3; bool elevated = 4; bool hidden = 5; }
|
|
388770
|
+
message LaunchProcessResponse { bool success = 1; int32 pid = 2; string error = 3; }
|
|
388771
|
+
`;
|
|
388650
388772
|
var init_ConnectionManager = () => {};
|
|
388651
388773
|
|
|
388652
388774
|
// src/tools/WindowsControlTool/actions/mouseActions.ts
|
|
@@ -402280,7 +402402,7 @@ function getAnthropicEnvMetadata() {
|
|
|
402280
402402
|
function getBuildAgeMinutes() {
|
|
402281
402403
|
if (false)
|
|
402282
402404
|
;
|
|
402283
|
-
const buildTime = new Date("2026-05-23T19:
|
|
402405
|
+
const buildTime = new Date("2026-05-23T19:46:08.978Z").getTime();
|
|
402284
402406
|
if (isNaN(buildTime))
|
|
402285
402407
|
return;
|
|
402286
402408
|
return Math.floor((Date.now() - buildTime) / 60000);
|
|
@@ -429763,7 +429885,7 @@ async function setupSdkMcpClients(sdkMcpConfigs, sendMcpMessage) {
|
|
|
429763
429885
|
const client2 = new Client({
|
|
429764
429886
|
name: "claude-code",
|
|
429765
429887
|
title: "ZeroCLI",
|
|
429766
|
-
version: "1.1.
|
|
429888
|
+
version: "1.1.6",
|
|
429767
429889
|
description: "Anthropic's agentic coding tool",
|
|
429768
429890
|
websiteUrl: PRODUCT_URL
|
|
429769
429891
|
}, {
|
|
@@ -430115,7 +430237,7 @@ var init_client7 = __esm(() => {
|
|
|
430115
430237
|
const client2 = new Client({
|
|
430116
430238
|
name: "claude-code",
|
|
430117
430239
|
title: "ZeroCLI",
|
|
430118
|
-
version: "1.1.
|
|
430240
|
+
version: "1.1.6",
|
|
430119
430241
|
description: "Anthropic's agentic coding tool",
|
|
430120
430242
|
websiteUrl: PRODUCT_URL
|
|
430121
430243
|
}, {
|
|
@@ -440850,7 +440972,7 @@ function Feedback({
|
|
|
440850
440972
|
platform: env2.platform,
|
|
440851
440973
|
gitRepo: envInfo.isGit,
|
|
440852
440974
|
terminal: env2.terminal,
|
|
440853
|
-
version: "1.1.
|
|
440975
|
+
version: "1.1.6",
|
|
440854
440976
|
transcript: normalizeMessagesForAPI(messages),
|
|
440855
440977
|
errors: sanitizedErrors,
|
|
440856
440978
|
lastApiRequest: getLastAPIRequest(),
|
|
@@ -441043,7 +441165,7 @@ function Feedback({
|
|
|
441043
441165
|
", ",
|
|
441044
441166
|
env2.terminal,
|
|
441045
441167
|
", v",
|
|
441046
|
-
"1.1.
|
|
441168
|
+
"1.1.6"
|
|
441047
441169
|
]
|
|
441048
441170
|
})
|
|
441049
441171
|
]
|
|
@@ -441151,7 +441273,7 @@ ${sanitizedDescription}
|
|
|
441151
441273
|
` + `**Environment Info**
|
|
441152
441274
|
` + `- Platform: ${env2.platform}
|
|
441153
441275
|
` + `- Terminal: ${env2.terminal}
|
|
441154
|
-
` + `- Version: ${"1.1.
|
|
441276
|
+
` + `- Version: ${"1.1.6"}
|
|
441155
441277
|
` + feedbackIdLine + `
|
|
441156
441278
|
**Errors**
|
|
441157
441279
|
\`\`\`json
|
|
@@ -444304,7 +444426,7 @@ function buildPrimarySection() {
|
|
|
444304
444426
|
});
|
|
444305
444427
|
return [{
|
|
444306
444428
|
label: "Version",
|
|
444307
|
-
value: "1.1.
|
|
444429
|
+
value: "1.1.6"
|
|
444308
444430
|
}, {
|
|
444309
444431
|
label: "Session name",
|
|
444310
444432
|
value: nameValue
|
|
@@ -449074,7 +449196,7 @@ function Config({
|
|
|
449074
449196
|
}
|
|
449075
449197
|
})
|
|
449076
449198
|
}) : showSubmenu === "ChannelDowngrade" ? /* @__PURE__ */ jsx_runtime183.jsx(ChannelDowngradeDialog, {
|
|
449077
|
-
currentVersion: "1.1.
|
|
449199
|
+
currentVersion: "1.1.6",
|
|
449078
449200
|
onChoice: (choice) => {
|
|
449079
449201
|
setShowSubmenu(null);
|
|
449080
449202
|
setTabsHidden(false);
|
|
@@ -449086,7 +449208,7 @@ function Config({
|
|
|
449086
449208
|
autoUpdatesChannel: "stable"
|
|
449087
449209
|
};
|
|
449088
449210
|
if (choice === "stay") {
|
|
449089
|
-
newSettings.minimumVersion = "1.1.
|
|
449211
|
+
newSettings.minimumVersion = "1.1.6";
|
|
449090
449212
|
}
|
|
449091
449213
|
updateSettingsForSource("userSettings", newSettings);
|
|
449092
449214
|
setSettingsData((prev_27) => ({
|
|
@@ -456070,7 +456192,7 @@ function UpdateScreen({ onDone }) {
|
|
|
456070
456192
|
setState({ type: "dev-build" });
|
|
456071
456193
|
return;
|
|
456072
456194
|
}
|
|
456073
|
-
const currentVersion = "1.1.
|
|
456195
|
+
const currentVersion = "1.1.6";
|
|
456074
456196
|
const channel2 = getInitialSettings()?.autoUpdatesChannel ?? "latest";
|
|
456075
456197
|
const latestVersion = await getLatestVersion(channel2);
|
|
456076
456198
|
if (!latestVersion) {
|
|
@@ -458181,7 +458303,7 @@ function HelpV2(t0) {
|
|
|
458181
458303
|
let t6;
|
|
458182
458304
|
if ($2[31] !== tabs) {
|
|
458183
458305
|
t6 = /* @__PURE__ */ jsx_runtime213.jsx(Tabs, {
|
|
458184
|
-
title: `ZeroCLI v${"1.1.
|
|
458306
|
+
title: `ZeroCLI v${"1.1.6"}`,
|
|
458185
458307
|
color: "professionalBlue",
|
|
458186
458308
|
defaultTab: "general",
|
|
458187
458309
|
children: tabs
|
|
@@ -483025,7 +483147,7 @@ function getAllReleaseNotes(changelogContent = getStoredChangelogFromMemory()) {
|
|
|
483025
483147
|
return [];
|
|
483026
483148
|
}
|
|
483027
483149
|
}
|
|
483028
|
-
async function checkForReleaseNotes(lastSeenVersion, currentVersion = "1.1.
|
|
483150
|
+
async function checkForReleaseNotes(lastSeenVersion, currentVersion = "1.1.6") {
|
|
483029
483151
|
if (process.env.USER_TYPE === "ant") {
|
|
483030
483152
|
const changelog = MACRO.VERSION_CHANGELOG;
|
|
483031
483153
|
if (changelog) {
|
|
@@ -512063,7 +512185,7 @@ async function captureMemoryDiagnostics(trigger, dumpNumber = 0) {
|
|
|
512063
512185
|
smapsRollup,
|
|
512064
512186
|
platform: process.platform,
|
|
512065
512187
|
nodeVersion: process.version,
|
|
512066
|
-
ccVersion: "1.1.
|
|
512188
|
+
ccVersion: "1.1.6"
|
|
512067
512189
|
};
|
|
512068
512190
|
}
|
|
512069
512191
|
async function performHeapDump(trigger = "manual", dumpNumber = 0) {
|
|
@@ -512650,7 +512772,7 @@ var init_bridge_kick = __esm(() => {
|
|
|
512650
512772
|
var call60 = async () => {
|
|
512651
512773
|
return {
|
|
512652
512774
|
type: "text",
|
|
512653
|
-
value: `${"1.1.
|
|
512775
|
+
value: `${"1.1.6"} (built ${"2026-05-23T19:46:08.978Z"})`
|
|
512654
512776
|
};
|
|
512655
512777
|
}, version2, version_default;
|
|
512656
512778
|
var init_version = __esm(() => {
|
|
@@ -522964,7 +523086,7 @@ function generateHtmlReport(data, insights) {
|
|
|
522964
523086
|
function buildExportData(data, insights, facets) {
|
|
522965
523087
|
let version3;
|
|
522966
523088
|
try {
|
|
522967
|
-
version3 = "1.1.
|
|
523089
|
+
version3 = "1.1.6";
|
|
522968
523090
|
} catch {
|
|
522969
523091
|
version3 = "unknown";
|
|
522970
523092
|
}
|
|
@@ -527164,7 +527286,7 @@ var init_sessionStorage = __esm(() => {
|
|
|
527164
527286
|
init_slowOperations();
|
|
527165
527287
|
init_uuid();
|
|
527166
527288
|
try {
|
|
527167
|
-
VERSION7 = "1.1.
|
|
527289
|
+
VERSION7 = "1.1.6";
|
|
527168
527290
|
} catch {
|
|
527169
527291
|
VERSION7 = "unknown";
|
|
527170
527292
|
}
|
|
@@ -528485,7 +528607,7 @@ var init_filesystem = __esm(() => {
|
|
|
528485
528607
|
});
|
|
528486
528608
|
getBundledSkillsRoot = memoize_default(function getBundledSkillsRoot2() {
|
|
528487
528609
|
const nonce = randomBytes17(16).toString("hex");
|
|
528488
|
-
return join137(getZeroTempDir(), "bundled-skills", "1.1.
|
|
528610
|
+
return join137(getZeroTempDir(), "bundled-skills", "1.1.6", nonce);
|
|
528489
528611
|
});
|
|
528490
528612
|
getResolvedWorkingDirPaths = memoize_default(getPathsForPermissionCheck);
|
|
528491
528613
|
});
|
|
@@ -539345,7 +539467,7 @@ function buildSystemInitMessage(inputs) {
|
|
|
539345
539467
|
slash_commands: inputs.commands.filter((c6) => c6.userInvocable !== false).map((c6) => c6.name),
|
|
539346
539468
|
apiKeySource: getAnthropicApiKeyWithSource().source,
|
|
539347
539469
|
betas: getSdkBetas(),
|
|
539348
|
-
claude_code_version: "1.1.
|
|
539470
|
+
claude_code_version: "1.1.6",
|
|
539349
539471
|
output_style: outputStyle2,
|
|
539350
539472
|
agents: inputs.agents.map((agent2) => agent2.agentType),
|
|
539351
539473
|
skills: inputs.skills.filter((s) => s.userInvocable !== false).map((skill) => skill.name),
|
|
@@ -554660,7 +554782,7 @@ var init_useVoiceEnabled = __esm(() => {
|
|
|
554660
554782
|
function getSemverPart(version3) {
|
|
554661
554783
|
return `${import_semver12.major(version3, { loose: true })}.${import_semver12.minor(version3, { loose: true })}.${import_semver12.patch(version3, { loose: true })}`;
|
|
554662
554784
|
}
|
|
554663
|
-
function useUpdateNotification(updatedVersion, initialVersion = "1.1.
|
|
554785
|
+
function useUpdateNotification(updatedVersion, initialVersion = "1.1.6") {
|
|
554664
554786
|
const [lastNotifiedSemver, setLastNotifiedSemver] = import_react226.useState(() => getSemverPart(initialVersion));
|
|
554665
554787
|
if (!updatedVersion) {
|
|
554666
554788
|
return null;
|
|
@@ -554703,7 +554825,7 @@ function AutoUpdater({
|
|
|
554703
554825
|
return;
|
|
554704
554826
|
}
|
|
554705
554827
|
if (false) {}
|
|
554706
|
-
const currentVersion = "1.1.
|
|
554828
|
+
const currentVersion = "1.1.6";
|
|
554707
554829
|
const channel2 = getInitialSettings()?.autoUpdatesChannel ?? "latest";
|
|
554708
554830
|
let latestVersion = await getLatestVersion(channel2);
|
|
554709
554831
|
const isDisabled = isAutoUpdaterDisabled();
|
|
@@ -554924,12 +555046,12 @@ function NativeAutoUpdater({
|
|
|
554924
555046
|
logEvent("tengu_native_auto_updater_start", {});
|
|
554925
555047
|
try {
|
|
554926
555048
|
const maxVersion = await getMaxVersion();
|
|
554927
|
-
if (maxVersion && gt("1.1.
|
|
555049
|
+
if (maxVersion && gt("1.1.6", maxVersion)) {
|
|
554928
555050
|
const msg = await getMaxVersionMessage();
|
|
554929
555051
|
setMaxVersionIssue(msg ?? "affects your version");
|
|
554930
555052
|
}
|
|
554931
555053
|
const result = await installLatest(channel2);
|
|
554932
|
-
const currentVersion = "1.1.
|
|
555054
|
+
const currentVersion = "1.1.6";
|
|
554933
555055
|
const latencyMs = Date.now() - startTime2;
|
|
554934
555056
|
if (result.lockFailed) {
|
|
554935
555057
|
logEvent("tengu_native_auto_updater_lock_contention", {
|
|
@@ -555071,17 +555193,17 @@ function PackageManagerAutoUpdater(t0) {
|
|
|
555071
555193
|
const maxVersion = await getMaxVersion();
|
|
555072
555194
|
if (maxVersion && latest && gt(latest, maxVersion)) {
|
|
555073
555195
|
logForDebugging(`PackageManagerAutoUpdater: maxVersion ${maxVersion} is set, capping update from ${latest} to ${maxVersion}`);
|
|
555074
|
-
if (gte("1.1.
|
|
555075
|
-
logForDebugging(`PackageManagerAutoUpdater: current version ${"1.1.
|
|
555196
|
+
if (gte("1.1.6", maxVersion)) {
|
|
555197
|
+
logForDebugging(`PackageManagerAutoUpdater: current version ${"1.1.6"} is already at or above maxVersion ${maxVersion}, skipping update`);
|
|
555076
555198
|
setUpdateAvailable(false);
|
|
555077
555199
|
return;
|
|
555078
555200
|
}
|
|
555079
555201
|
latest = maxVersion;
|
|
555080
555202
|
}
|
|
555081
|
-
const hasUpdate = latest && !gte("1.1.
|
|
555203
|
+
const hasUpdate = latest && !gte("1.1.6", latest) && !shouldSkipVersion(latest);
|
|
555082
555204
|
setUpdateAvailable(!!hasUpdate);
|
|
555083
555205
|
if (hasUpdate) {
|
|
555084
|
-
logForDebugging(`PackageManagerAutoUpdater: Update available ${"1.1.
|
|
555206
|
+
logForDebugging(`PackageManagerAutoUpdater: Update available ${"1.1.6"} -> ${latest}`);
|
|
555085
555207
|
}
|
|
555086
555208
|
};
|
|
555087
555209
|
$2[0] = t1;
|
|
@@ -555115,7 +555237,7 @@ function PackageManagerAutoUpdater(t0) {
|
|
|
555115
555237
|
wrap: "truncate",
|
|
555116
555238
|
children: [
|
|
555117
555239
|
"currentVersion: ",
|
|
555118
|
-
"1.1.
|
|
555240
|
+
"1.1.6"
|
|
555119
555241
|
]
|
|
555120
555242
|
});
|
|
555121
555243
|
$2[3] = verbose;
|
|
@@ -564171,7 +564293,7 @@ function buildStatusLineCommandInput(permissionMode, exceeds200kTokens, settings
|
|
|
564171
564293
|
project_dir: getOriginalCwd(),
|
|
564172
564294
|
added_dirs: addedDirs
|
|
564173
564295
|
},
|
|
564174
|
-
version: "1.1.
|
|
564296
|
+
version: "1.1.6",
|
|
564175
564297
|
output_style: {
|
|
564176
564298
|
name: outputStyleName
|
|
564177
564299
|
},
|
|
@@ -588674,7 +588796,7 @@ function WelcomeV2() {
|
|
|
588674
588796
|
dimColor: true,
|
|
588675
588797
|
children: [
|
|
588676
588798
|
"v",
|
|
588677
|
-
"1.1.
|
|
588799
|
+
"1.1.6",
|
|
588678
588800
|
" "
|
|
588679
588801
|
]
|
|
588680
588802
|
})
|
|
@@ -588908,7 +589030,7 @@ function WelcomeV2() {
|
|
|
588908
589030
|
dimColor: true,
|
|
588909
589031
|
children: [
|
|
588910
589032
|
"v",
|
|
588911
|
-
"1.1.
|
|
589033
|
+
"1.1.6",
|
|
588912
589034
|
" "
|
|
588913
589035
|
]
|
|
588914
589036
|
})
|
|
@@ -589155,7 +589277,7 @@ function AppleTerminalWelcomeV2(t0) {
|
|
|
589155
589277
|
dimColor: true,
|
|
589156
589278
|
children: [
|
|
589157
589279
|
"v",
|
|
589158
|
-
"1.1.
|
|
589280
|
+
"1.1.6",
|
|
589159
589281
|
" "
|
|
589160
589282
|
]
|
|
589161
589283
|
});
|
|
@@ -589428,7 +589550,7 @@ function AppleTerminalWelcomeV2(t0) {
|
|
|
589428
589550
|
dimColor: true,
|
|
589429
589551
|
children: [
|
|
589430
589552
|
"v",
|
|
589431
|
-
"1.1.
|
|
589553
|
+
"1.1.6",
|
|
589432
589554
|
" "
|
|
589433
589555
|
]
|
|
589434
589556
|
});
|
|
@@ -590940,7 +591062,7 @@ function completeOnboarding() {
|
|
|
590940
591062
|
saveGlobalConfig((current) => ({
|
|
590941
591063
|
...current,
|
|
590942
591064
|
hasCompletedOnboarding: true,
|
|
590943
|
-
lastOnboardingVersion: "1.1.
|
|
591065
|
+
lastOnboardingVersion: "1.1.6"
|
|
590944
591066
|
}));
|
|
590945
591067
|
}
|
|
590946
591068
|
function showDialog(root2, renderer) {
|
|
@@ -595191,7 +595313,7 @@ function appendToLog(path24, message) {
|
|
|
595191
595313
|
cwd: getFsImplementation().cwd(),
|
|
595192
595314
|
userType: process.env.USER_TYPE,
|
|
595193
595315
|
sessionId: getSessionId(),
|
|
595194
|
-
version: "1.1.
|
|
595316
|
+
version: "1.1.6"
|
|
595195
595317
|
};
|
|
595196
595318
|
getLogWriter(path24).write(messageWithTimestamp);
|
|
595197
595319
|
}
|
|
@@ -595797,7 +595919,7 @@ async function startMCPServer(cwd2, debug, verbose) {
|
|
|
595797
595919
|
setCwd(cwd2);
|
|
595798
595920
|
const server = new Server({
|
|
595799
595921
|
name: "claude/tengu",
|
|
595800
|
-
version: "1.1.
|
|
595922
|
+
version: "1.1.6"
|
|
595801
595923
|
}, {
|
|
595802
595924
|
capabilities: {
|
|
595803
595925
|
tools: {}
|
|
@@ -600436,8 +600558,8 @@ async function getEnvLessBridgeConfig() {
|
|
|
600436
600558
|
}
|
|
600437
600559
|
async function checkEnvLessBridgeMinVersion() {
|
|
600438
600560
|
const cfg = await getEnvLessBridgeConfig();
|
|
600439
|
-
if (cfg.min_version && lt("1.1.
|
|
600440
|
-
return `Your version of ZeroCLI (${"1.1.
|
|
600561
|
+
if (cfg.min_version && lt("1.1.6", cfg.min_version)) {
|
|
600562
|
+
return `Your version of ZeroCLI (${"1.1.6"}) is too old for Remote Control.
|
|
600441
600563
|
Version ${cfg.min_version} or higher is required. Run \`zero update\` to update.`;
|
|
600442
600564
|
}
|
|
600443
600565
|
return null;
|
|
@@ -600912,7 +601034,7 @@ async function initBridgeCore(params) {
|
|
|
600912
601034
|
const rawApi = createBridgeApiClient({
|
|
600913
601035
|
baseUrl,
|
|
600914
601036
|
getAccessToken,
|
|
600915
|
-
runnerVersion: "1.1.
|
|
601037
|
+
runnerVersion: "1.1.6",
|
|
600916
601038
|
onDebug: logForDebugging,
|
|
600917
601039
|
onAuth401,
|
|
600918
601040
|
getTrustedDeviceToken
|
|
@@ -607200,7 +607322,7 @@ __export(exports_update2, {
|
|
|
607200
607322
|
});
|
|
607201
607323
|
async function update2() {
|
|
607202
607324
|
logEvent("tengu_update_check", {});
|
|
607203
|
-
writeToStdout(`Current version: ${"1.1.
|
|
607325
|
+
writeToStdout(`Current version: ${"1.1.6"}
|
|
607204
607326
|
`);
|
|
607205
607327
|
const channel2 = getInitialSettings()?.autoUpdatesChannel ?? "latest";
|
|
607206
607328
|
writeToStdout(`Checking for updates to ${channel2} version...
|
|
@@ -607275,8 +607397,8 @@ async function update2() {
|
|
|
607275
607397
|
writeToStdout(`Zero is managed by Homebrew.
|
|
607276
607398
|
`);
|
|
607277
607399
|
const latest = await getLatestVersion(channel2);
|
|
607278
|
-
if (latest && !gte("1.1.
|
|
607279
|
-
writeToStdout(`Update available: ${"1.1.
|
|
607400
|
+
if (latest && !gte("1.1.6", latest)) {
|
|
607401
|
+
writeToStdout(`Update available: ${"1.1.6"} → ${latest}
|
|
607280
607402
|
`);
|
|
607281
607403
|
writeToStdout(`
|
|
607282
607404
|
`);
|
|
@@ -607292,8 +607414,8 @@ async function update2() {
|
|
|
607292
607414
|
writeToStdout(`Zero is managed by winget.
|
|
607293
607415
|
`);
|
|
607294
607416
|
const latest = await getLatestVersion(channel2);
|
|
607295
|
-
if (latest && !gte("1.1.
|
|
607296
|
-
writeToStdout(`Update available: ${"1.1.
|
|
607417
|
+
if (latest && !gte("1.1.6", latest)) {
|
|
607418
|
+
writeToStdout(`Update available: ${"1.1.6"} → ${latest}
|
|
607297
607419
|
`);
|
|
607298
607420
|
writeToStdout(`
|
|
607299
607421
|
`);
|
|
@@ -607309,8 +607431,8 @@ async function update2() {
|
|
|
607309
607431
|
writeToStdout(`Zero is managed by apk.
|
|
607310
607432
|
`);
|
|
607311
607433
|
const latest = await getLatestVersion(channel2);
|
|
607312
|
-
if (latest && !gte("1.1.
|
|
607313
|
-
writeToStdout(`Update available: ${"1.1.
|
|
607434
|
+
if (latest && !gte("1.1.6", latest)) {
|
|
607435
|
+
writeToStdout(`Update available: ${"1.1.6"} → ${latest}
|
|
607314
607436
|
`);
|
|
607315
607437
|
writeToStdout(`
|
|
607316
607438
|
`);
|
|
@@ -607375,11 +607497,11 @@ async function update2() {
|
|
|
607375
607497
|
`);
|
|
607376
607498
|
await gracefulShutdown(1);
|
|
607377
607499
|
}
|
|
607378
|
-
if (result.latestVersion === "1.1.
|
|
607379
|
-
writeToStdout(source_default.green(`Zero CLI is up to date (${"1.1.
|
|
607500
|
+
if (result.latestVersion === "1.1.6") {
|
|
607501
|
+
writeToStdout(source_default.green(`Zero CLI is up to date (${"1.1.6"})`) + `
|
|
607380
607502
|
`);
|
|
607381
607503
|
} else {
|
|
607382
|
-
writeToStdout(source_default.green(`Successfully updated from ${"1.1.
|
|
607504
|
+
writeToStdout(source_default.green(`Successfully updated from ${"1.1.6"} to version ${result.latestVersion}`) + `
|
|
607383
607505
|
`);
|
|
607384
607506
|
await regenerateCompletionCache();
|
|
607385
607507
|
}
|
|
@@ -607439,12 +607561,12 @@ async function update2() {
|
|
|
607439
607561
|
`);
|
|
607440
607562
|
await gracefulShutdown(1);
|
|
607441
607563
|
}
|
|
607442
|
-
if (latestVersion === "1.1.
|
|
607443
|
-
writeToStdout(source_default.green(`Zero CLI is up to date (${"1.1.
|
|
607564
|
+
if (latestVersion === "1.1.6") {
|
|
607565
|
+
writeToStdout(source_default.green(`Zero CLI is up to date (${"1.1.6"})`) + `
|
|
607444
607566
|
`);
|
|
607445
607567
|
await gracefulShutdown(0);
|
|
607446
607568
|
}
|
|
607447
|
-
writeToStdout(`New version available: ${latestVersion} (current: ${"1.1.
|
|
607569
|
+
writeToStdout(`New version available: ${latestVersion} (current: ${"1.1.6"})
|
|
607448
607570
|
`);
|
|
607449
607571
|
writeToStdout(`Installing update...
|
|
607450
607572
|
`);
|
|
@@ -607489,7 +607611,7 @@ async function update2() {
|
|
|
607489
607611
|
logForDebugging(`update: Installation status: ${status2}`);
|
|
607490
607612
|
switch (status2) {
|
|
607491
607613
|
case "success":
|
|
607492
|
-
writeToStdout(source_default.green(`Successfully updated from ${"1.1.
|
|
607614
|
+
writeToStdout(source_default.green(`Successfully updated from ${"1.1.6"} to version ${latestVersion}`) + `
|
|
607493
607615
|
`);
|
|
607494
607616
|
await regenerateCompletionCache();
|
|
607495
607617
|
break;
|
|
@@ -608790,7 +608912,7 @@ ${customInstructions}` : customInstructions;
|
|
|
608790
608912
|
}
|
|
608791
608913
|
}
|
|
608792
608914
|
logForDiagnosticsNoPII("info", "started", {
|
|
608793
|
-
version: "1.1.
|
|
608915
|
+
version: "1.1.6",
|
|
608794
608916
|
is_native_binary: isInBundledMode()
|
|
608795
608917
|
});
|
|
608796
608918
|
registerCleanup(async () => {
|
|
@@ -609673,7 +609795,7 @@ Usage: claude --remote "your task description"`, () => gracefulShutdown(1));
|
|
|
609673
609795
|
pendingHookMessages
|
|
609674
609796
|
}, renderAndRun);
|
|
609675
609797
|
}
|
|
609676
|
-
}).version("1.1.
|
|
609798
|
+
}).version("1.1.6", "-v, --version", "Output the version number");
|
|
609677
609799
|
program2.option("-w, --worktree [name]", "Create a new git worktree for this session (optionally specify a name)");
|
|
609678
609800
|
program2.option("--tmux", "Create a tmux session for the worktree (requires --worktree). Uses iTerm2 native panes when available; use --tmux=classic for traditional tmux.");
|
|
609679
609801
|
if (canUserConfigureAdvisor()) {
|
|
@@ -610339,7 +610461,7 @@ if (false) {}
|
|
|
610339
610461
|
async function main2() {
|
|
610340
610462
|
const args = process.argv.slice(2);
|
|
610341
610463
|
if (args.length === 1 && (args[0] === "--version" || args[0] === "-v" || args[0] === "-V")) {
|
|
610342
|
-
console.log(`${"1.1.
|
|
610464
|
+
console.log(`${"1.1.6"} (ZeroCLI)`);
|
|
610343
610465
|
return;
|
|
610344
610466
|
}
|
|
610345
610467
|
if (args.includes("--provider")) {
|
|
@@ -610481,4 +610603,4 @@ async function main2() {
|
|
|
610481
610603
|
}
|
|
610482
610604
|
main2();
|
|
610483
610605
|
|
|
610484
|
-
//# debugId=
|
|
610606
|
+
//# debugId=52FEA348E6B6587264756E2164756E21
|