@duheso/zerocli 1.1.7 → 1.1.8
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 +104 -88
- 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.8"}${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.8"}.${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.8"}`;
|
|
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.8"} (${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.8"}${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.8";
|
|
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.8");
|
|
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.8");
|
|
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.8",
|
|
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.8");
|
|
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.8"
|
|
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.8");
|
|
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.8");
|
|
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.8");
|
|
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.8", 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.8"}) 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.8"
|
|
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.8"
|
|
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.8";
|
|
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.8";
|
|
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.8", maxVersion)) {
|
|
271146
|
+
logForDebugging(`Native installer: current version ${"1.1.8"} 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.8" && 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,
|
|
@@ -365596,7 +365596,7 @@ __export(exports_VerifyPlanExecutionTool, {
|
|
|
365596
365596
|
var VerifyPlanExecutionTool_default = null, VerifyPlanExecutionTool = null;
|
|
365597
365597
|
|
|
365598
365598
|
// src/tools/WindowsControlTool/constants.ts
|
|
365599
|
-
var TOOL_NAME = "windows_control",
|
|
365599
|
+
var TOOL_NAME = "windows_control", DEFAULT_WS_PORT = 50052, DEFAULT_REST_PORT = 50051, DEFAULT_QUALITY = 75, DEFAULT_SCALE = 0.5, RECONNECT_INTERVAL_MS = 5000, PING_INTERVAL_MS = 1e4, ENV_WINDOWS_HOST = "WINDOWS_CONTROL_HOST", ENV_WINDOWS_PORT = "WINDOWS_CONTROL_PORT", ENV_WINDOWS_TOKEN = "WINDOWS_CONTROL_TOKEN";
|
|
365600
365600
|
|
|
365601
365601
|
// src/tools/WindowsControlTool/prompt.ts
|
|
365602
365602
|
var WINDOWS_CONTROL_PROMPT = `
|
|
@@ -365718,7 +365718,7 @@ class ConnectionManager {
|
|
|
365718
365718
|
get isConnected() {
|
|
365719
365719
|
return this._state.connected;
|
|
365720
365720
|
}
|
|
365721
|
-
async connect(host, grpcPort, wsPort =
|
|
365721
|
+
async connect(host, grpcPort, wsPort = DEFAULT_WS_PORT, token) {
|
|
365722
365722
|
this._token = token;
|
|
365723
365723
|
this._restClient = new RestApiClient(host, wsPort);
|
|
365724
365724
|
const response = await this._restClient.command({
|
|
@@ -365810,6 +365810,19 @@ class ConnectionManager {
|
|
|
365810
365810
|
}
|
|
365811
365811
|
}
|
|
365812
365812
|
}
|
|
365813
|
+
function snakeToCamel(obj) {
|
|
365814
|
+
if (Array.isArray(obj))
|
|
365815
|
+
return obj.map(snakeToCamel);
|
|
365816
|
+
if (obj !== null && typeof obj === "object") {
|
|
365817
|
+
const out = {};
|
|
365818
|
+
for (const [key, val] of Object.entries(obj)) {
|
|
365819
|
+
const camel = key.replace(/_([a-z])/g, (_, c6) => c6.toUpperCase());
|
|
365820
|
+
out[camel] = snakeToCamel(val);
|
|
365821
|
+
}
|
|
365822
|
+
return out;
|
|
365823
|
+
}
|
|
365824
|
+
return obj;
|
|
365825
|
+
}
|
|
365813
365826
|
|
|
365814
365827
|
class RestApiClient {
|
|
365815
365828
|
baseUrl;
|
|
@@ -365819,6 +365832,7 @@ class RestApiClient {
|
|
|
365819
365832
|
async command(params) {
|
|
365820
365833
|
const url4 = `${this.baseUrl}/api/command`;
|
|
365821
365834
|
const body = JSON.stringify(params);
|
|
365835
|
+
let json2;
|
|
365822
365836
|
if (typeof fetch !== "undefined") {
|
|
365823
365837
|
const res = await fetch(url4, {
|
|
365824
365838
|
method: "POST",
|
|
@@ -365829,9 +365843,11 @@ class RestApiClient {
|
|
|
365829
365843
|
if (!res.ok) {
|
|
365830
365844
|
throw new Error(`HTTP ${res.status}: ${res.statusText}`);
|
|
365831
365845
|
}
|
|
365832
|
-
|
|
365846
|
+
json2 = await res.json();
|
|
365847
|
+
} else {
|
|
365848
|
+
json2 = await this._httpPost(url4, body);
|
|
365833
365849
|
}
|
|
365834
|
-
return
|
|
365850
|
+
return snakeToCamel(json2);
|
|
365835
365851
|
}
|
|
365836
365852
|
_httpPost(url4, body) {
|
|
365837
365853
|
return new Promise((resolve32, reject) => {
|
|
@@ -366157,7 +366173,7 @@ async function handleCaptureAction(input, connection) {
|
|
|
366157
366173
|
if (!response.success) {
|
|
366158
366174
|
return { success: false, error: response.error || "Screenshot failed" };
|
|
366159
366175
|
}
|
|
366160
|
-
const imageBase64 =
|
|
366176
|
+
const imageBase64 = response.imageData;
|
|
366161
366177
|
return {
|
|
366162
366178
|
success: true,
|
|
366163
366179
|
message: `Screenshot captured: ${response.width}x${response.height}`,
|
|
@@ -366165,8 +366181,8 @@ async function handleCaptureAction(input, connection) {
|
|
|
366165
366181
|
imageBase64,
|
|
366166
366182
|
width: response.width,
|
|
366167
366183
|
height: response.height,
|
|
366168
|
-
cursor: response.
|
|
366169
|
-
format: "jpeg"
|
|
366184
|
+
cursor: { x: response.cursorX, y: response.cursorY },
|
|
366185
|
+
format: response.imageFormat || "jpeg"
|
|
366170
366186
|
}
|
|
366171
366187
|
};
|
|
366172
366188
|
}
|
|
@@ -366360,7 +366376,7 @@ async function ensureConnected() {
|
|
|
366360
366376
|
}
|
|
366361
366377
|
const host = process.env[ENV_WINDOWS_HOST];
|
|
366362
366378
|
const token = process.env[ENV_WINDOWS_TOKEN];
|
|
366363
|
-
const wsPort = process.env[ENV_WINDOWS_PORT] ? parseInt(process.env[ENV_WINDOWS_PORT], 10) :
|
|
366379
|
+
const wsPort = process.env[ENV_WINDOWS_PORT] ? parseInt(process.env[ENV_WINDOWS_PORT], 10) : DEFAULT_REST_PORT;
|
|
366364
366380
|
if (!host) {
|
|
366365
366381
|
return {
|
|
366366
366382
|
connected: false,
|
|
@@ -366382,7 +366398,7 @@ async function routeAction(input) {
|
|
|
366382
366398
|
if (action === "connect") {
|
|
366383
366399
|
const host = input.host || process.env[ENV_WINDOWS_HOST];
|
|
366384
366400
|
const token = input.token || process.env[ENV_WINDOWS_TOKEN];
|
|
366385
|
-
const wsPort = input.port || (process.env[ENV_WINDOWS_PORT] ? parseInt(process.env[ENV_WINDOWS_PORT], 10) :
|
|
366401
|
+
const wsPort = input.port || (process.env[ENV_WINDOWS_PORT] ? parseInt(process.env[ENV_WINDOWS_PORT], 10) : DEFAULT_REST_PORT);
|
|
366386
366402
|
if (!host) {
|
|
366387
366403
|
return { success: false, error: "host is required for connect. Set WINDOWS_CONTROL_HOST env var or pass host parameter." };
|
|
366388
366404
|
}
|
|
@@ -379549,7 +379565,7 @@ function getAnthropicEnvMetadata() {
|
|
|
379549
379565
|
function getBuildAgeMinutes() {
|
|
379550
379566
|
if (false)
|
|
379551
379567
|
;
|
|
379552
|
-
const buildTime = new Date("2026-05-
|
|
379568
|
+
const buildTime = new Date("2026-05-23T21:39:04.216Z").getTime();
|
|
379553
379569
|
if (isNaN(buildTime))
|
|
379554
379570
|
return;
|
|
379555
379571
|
return Math.floor((Date.now() - buildTime) / 60000);
|
|
@@ -407032,7 +407048,7 @@ async function setupSdkMcpClients(sdkMcpConfigs, sendMcpMessage) {
|
|
|
407032
407048
|
const client2 = new Client({
|
|
407033
407049
|
name: "claude-code",
|
|
407034
407050
|
title: "ZeroCLI",
|
|
407035
|
-
version: "1.1.
|
|
407051
|
+
version: "1.1.8",
|
|
407036
407052
|
description: "Anthropic's agentic coding tool",
|
|
407037
407053
|
websiteUrl: PRODUCT_URL
|
|
407038
407054
|
}, {
|
|
@@ -407384,7 +407400,7 @@ var init_client7 = __esm(() => {
|
|
|
407384
407400
|
const client2 = new Client({
|
|
407385
407401
|
name: "claude-code",
|
|
407386
407402
|
title: "ZeroCLI",
|
|
407387
|
-
version: "1.1.
|
|
407403
|
+
version: "1.1.8",
|
|
407388
407404
|
description: "Anthropic's agentic coding tool",
|
|
407389
407405
|
websiteUrl: PRODUCT_URL
|
|
407390
407406
|
}, {
|
|
@@ -418119,7 +418135,7 @@ function Feedback({
|
|
|
418119
418135
|
platform: env2.platform,
|
|
418120
418136
|
gitRepo: envInfo.isGit,
|
|
418121
418137
|
terminal: env2.terminal,
|
|
418122
|
-
version: "1.1.
|
|
418138
|
+
version: "1.1.8",
|
|
418123
418139
|
transcript: normalizeMessagesForAPI(messages),
|
|
418124
418140
|
errors: sanitizedErrors,
|
|
418125
418141
|
lastApiRequest: getLastAPIRequest(),
|
|
@@ -418312,7 +418328,7 @@ function Feedback({
|
|
|
418312
418328
|
", ",
|
|
418313
418329
|
env2.terminal,
|
|
418314
418330
|
", v",
|
|
418315
|
-
"1.1.
|
|
418331
|
+
"1.1.8"
|
|
418316
418332
|
]
|
|
418317
418333
|
})
|
|
418318
418334
|
]
|
|
@@ -418420,7 +418436,7 @@ ${sanitizedDescription}
|
|
|
418420
418436
|
` + `**Environment Info**
|
|
418421
418437
|
` + `- Platform: ${env2.platform}
|
|
418422
418438
|
` + `- Terminal: ${env2.terminal}
|
|
418423
|
-
` + `- Version: ${"1.1.
|
|
418439
|
+
` + `- Version: ${"1.1.8"}
|
|
418424
418440
|
` + feedbackIdLine + `
|
|
418425
418441
|
**Errors**
|
|
418426
418442
|
\`\`\`json
|
|
@@ -421573,7 +421589,7 @@ function buildPrimarySection() {
|
|
|
421573
421589
|
});
|
|
421574
421590
|
return [{
|
|
421575
421591
|
label: "Version",
|
|
421576
|
-
value: "1.1.
|
|
421592
|
+
value: "1.1.8"
|
|
421577
421593
|
}, {
|
|
421578
421594
|
label: "Session name",
|
|
421579
421595
|
value: nameValue
|
|
@@ -426343,7 +426359,7 @@ function Config({
|
|
|
426343
426359
|
}
|
|
426344
426360
|
})
|
|
426345
426361
|
}) : showSubmenu === "ChannelDowngrade" ? /* @__PURE__ */ jsx_runtime183.jsx(ChannelDowngradeDialog, {
|
|
426346
|
-
currentVersion: "1.1.
|
|
426362
|
+
currentVersion: "1.1.8",
|
|
426347
426363
|
onChoice: (choice) => {
|
|
426348
426364
|
setShowSubmenu(null);
|
|
426349
426365
|
setTabsHidden(false);
|
|
@@ -426355,7 +426371,7 @@ function Config({
|
|
|
426355
426371
|
autoUpdatesChannel: "stable"
|
|
426356
426372
|
};
|
|
426357
426373
|
if (choice === "stay") {
|
|
426358
|
-
newSettings.minimumVersion = "1.1.
|
|
426374
|
+
newSettings.minimumVersion = "1.1.8";
|
|
426359
426375
|
}
|
|
426360
426376
|
updateSettingsForSource("userSettings", newSettings);
|
|
426361
426377
|
setSettingsData((prev_27) => ({
|
|
@@ -433339,7 +433355,7 @@ function UpdateScreen({ onDone }) {
|
|
|
433339
433355
|
setState({ type: "dev-build" });
|
|
433340
433356
|
return;
|
|
433341
433357
|
}
|
|
433342
|
-
const currentVersion = "1.1.
|
|
433358
|
+
const currentVersion = "1.1.8";
|
|
433343
433359
|
const channel2 = getInitialSettings()?.autoUpdatesChannel ?? "latest";
|
|
433344
433360
|
const latestVersion = await getLatestVersion(channel2);
|
|
433345
433361
|
if (!latestVersion) {
|
|
@@ -435450,7 +435466,7 @@ function HelpV2(t0) {
|
|
|
435450
435466
|
let t6;
|
|
435451
435467
|
if ($2[31] !== tabs) {
|
|
435452
435468
|
t6 = /* @__PURE__ */ jsx_runtime213.jsx(Tabs, {
|
|
435453
|
-
title: `ZeroCLI v${"1.1.
|
|
435469
|
+
title: `ZeroCLI v${"1.1.8"}`,
|
|
435454
435470
|
color: "professionalBlue",
|
|
435455
435471
|
defaultTab: "general",
|
|
435456
435472
|
children: tabs
|
|
@@ -460294,7 +460310,7 @@ function getAllReleaseNotes(changelogContent = getStoredChangelogFromMemory()) {
|
|
|
460294
460310
|
return [];
|
|
460295
460311
|
}
|
|
460296
460312
|
}
|
|
460297
|
-
async function checkForReleaseNotes(lastSeenVersion, currentVersion = "1.1.
|
|
460313
|
+
async function checkForReleaseNotes(lastSeenVersion, currentVersion = "1.1.8") {
|
|
460298
460314
|
if (process.env.USER_TYPE === "ant") {
|
|
460299
460315
|
const changelog = MACRO.VERSION_CHANGELOG;
|
|
460300
460316
|
if (changelog) {
|
|
@@ -489332,7 +489348,7 @@ async function captureMemoryDiagnostics(trigger, dumpNumber = 0) {
|
|
|
489332
489348
|
smapsRollup,
|
|
489333
489349
|
platform: process.platform,
|
|
489334
489350
|
nodeVersion: process.version,
|
|
489335
|
-
ccVersion: "1.1.
|
|
489351
|
+
ccVersion: "1.1.8"
|
|
489336
489352
|
};
|
|
489337
489353
|
}
|
|
489338
489354
|
async function performHeapDump(trigger = "manual", dumpNumber = 0) {
|
|
@@ -489919,7 +489935,7 @@ var init_bridge_kick = __esm(() => {
|
|
|
489919
489935
|
var call60 = async () => {
|
|
489920
489936
|
return {
|
|
489921
489937
|
type: "text",
|
|
489922
|
-
value: `${"1.1.
|
|
489938
|
+
value: `${"1.1.8"} (built ${"2026-05-23T21:39:04.216Z"})`
|
|
489923
489939
|
};
|
|
489924
489940
|
}, version2, version_default;
|
|
489925
489941
|
var init_version = __esm(() => {
|
|
@@ -500233,7 +500249,7 @@ function generateHtmlReport(data, insights) {
|
|
|
500233
500249
|
function buildExportData(data, insights, facets) {
|
|
500234
500250
|
let version3;
|
|
500235
500251
|
try {
|
|
500236
|
-
version3 = "1.1.
|
|
500252
|
+
version3 = "1.1.8";
|
|
500237
500253
|
} catch {
|
|
500238
500254
|
version3 = "unknown";
|
|
500239
500255
|
}
|
|
@@ -504433,7 +504449,7 @@ var init_sessionStorage = __esm(() => {
|
|
|
504433
504449
|
init_slowOperations();
|
|
504434
504450
|
init_uuid();
|
|
504435
504451
|
try {
|
|
504436
|
-
VERSION7 = "1.1.
|
|
504452
|
+
VERSION7 = "1.1.8";
|
|
504437
504453
|
} catch {
|
|
504438
504454
|
VERSION7 = "unknown";
|
|
504439
504455
|
}
|
|
@@ -505754,7 +505770,7 @@ var init_filesystem = __esm(() => {
|
|
|
505754
505770
|
});
|
|
505755
505771
|
getBundledSkillsRoot = memoize_default(function getBundledSkillsRoot2() {
|
|
505756
505772
|
const nonce = randomBytes17(16).toString("hex");
|
|
505757
|
-
return join137(getZeroTempDir(), "bundled-skills", "1.1.
|
|
505773
|
+
return join137(getZeroTempDir(), "bundled-skills", "1.1.8", nonce);
|
|
505758
505774
|
});
|
|
505759
505775
|
getResolvedWorkingDirPaths = memoize_default(getPathsForPermissionCheck);
|
|
505760
505776
|
});
|
|
@@ -516614,7 +516630,7 @@ function buildSystemInitMessage(inputs) {
|
|
|
516614
516630
|
slash_commands: inputs.commands.filter((c6) => c6.userInvocable !== false).map((c6) => c6.name),
|
|
516615
516631
|
apiKeySource: getAnthropicApiKeyWithSource().source,
|
|
516616
516632
|
betas: getSdkBetas(),
|
|
516617
|
-
claude_code_version: "1.1.
|
|
516633
|
+
claude_code_version: "1.1.8",
|
|
516618
516634
|
output_style: outputStyle2,
|
|
516619
516635
|
agents: inputs.agents.map((agent2) => agent2.agentType),
|
|
516620
516636
|
skills: inputs.skills.filter((s) => s.userInvocable !== false).map((skill) => skill.name),
|
|
@@ -531929,7 +531945,7 @@ var init_useVoiceEnabled = __esm(() => {
|
|
|
531929
531945
|
function getSemverPart(version3) {
|
|
531930
531946
|
return `${import_semver12.major(version3, { loose: true })}.${import_semver12.minor(version3, { loose: true })}.${import_semver12.patch(version3, { loose: true })}`;
|
|
531931
531947
|
}
|
|
531932
|
-
function useUpdateNotification(updatedVersion, initialVersion = "1.1.
|
|
531948
|
+
function useUpdateNotification(updatedVersion, initialVersion = "1.1.8") {
|
|
531933
531949
|
const [lastNotifiedSemver, setLastNotifiedSemver] = import_react226.useState(() => getSemverPart(initialVersion));
|
|
531934
531950
|
if (!updatedVersion) {
|
|
531935
531951
|
return null;
|
|
@@ -531972,7 +531988,7 @@ function AutoUpdater({
|
|
|
531972
531988
|
return;
|
|
531973
531989
|
}
|
|
531974
531990
|
if (false) {}
|
|
531975
|
-
const currentVersion = "1.1.
|
|
531991
|
+
const currentVersion = "1.1.8";
|
|
531976
531992
|
const channel2 = getInitialSettings()?.autoUpdatesChannel ?? "latest";
|
|
531977
531993
|
let latestVersion = await getLatestVersion(channel2);
|
|
531978
531994
|
const isDisabled = isAutoUpdaterDisabled();
|
|
@@ -532193,12 +532209,12 @@ function NativeAutoUpdater({
|
|
|
532193
532209
|
logEvent("tengu_native_auto_updater_start", {});
|
|
532194
532210
|
try {
|
|
532195
532211
|
const maxVersion = await getMaxVersion();
|
|
532196
|
-
if (maxVersion && gt("1.1.
|
|
532212
|
+
if (maxVersion && gt("1.1.8", maxVersion)) {
|
|
532197
532213
|
const msg = await getMaxVersionMessage();
|
|
532198
532214
|
setMaxVersionIssue(msg ?? "affects your version");
|
|
532199
532215
|
}
|
|
532200
532216
|
const result = await installLatest(channel2);
|
|
532201
|
-
const currentVersion = "1.1.
|
|
532217
|
+
const currentVersion = "1.1.8";
|
|
532202
532218
|
const latencyMs = Date.now() - startTime2;
|
|
532203
532219
|
if (result.lockFailed) {
|
|
532204
532220
|
logEvent("tengu_native_auto_updater_lock_contention", {
|
|
@@ -532340,17 +532356,17 @@ function PackageManagerAutoUpdater(t0) {
|
|
|
532340
532356
|
const maxVersion = await getMaxVersion();
|
|
532341
532357
|
if (maxVersion && latest && gt(latest, maxVersion)) {
|
|
532342
532358
|
logForDebugging(`PackageManagerAutoUpdater: maxVersion ${maxVersion} is set, capping update from ${latest} to ${maxVersion}`);
|
|
532343
|
-
if (gte("1.1.
|
|
532344
|
-
logForDebugging(`PackageManagerAutoUpdater: current version ${"1.1.
|
|
532359
|
+
if (gte("1.1.8", maxVersion)) {
|
|
532360
|
+
logForDebugging(`PackageManagerAutoUpdater: current version ${"1.1.8"} is already at or above maxVersion ${maxVersion}, skipping update`);
|
|
532345
532361
|
setUpdateAvailable(false);
|
|
532346
532362
|
return;
|
|
532347
532363
|
}
|
|
532348
532364
|
latest = maxVersion;
|
|
532349
532365
|
}
|
|
532350
|
-
const hasUpdate = latest && !gte("1.1.
|
|
532366
|
+
const hasUpdate = latest && !gte("1.1.8", latest) && !shouldSkipVersion(latest);
|
|
532351
532367
|
setUpdateAvailable(!!hasUpdate);
|
|
532352
532368
|
if (hasUpdate) {
|
|
532353
|
-
logForDebugging(`PackageManagerAutoUpdater: Update available ${"1.1.
|
|
532369
|
+
logForDebugging(`PackageManagerAutoUpdater: Update available ${"1.1.8"} -> ${latest}`);
|
|
532354
532370
|
}
|
|
532355
532371
|
};
|
|
532356
532372
|
$2[0] = t1;
|
|
@@ -532384,7 +532400,7 @@ function PackageManagerAutoUpdater(t0) {
|
|
|
532384
532400
|
wrap: "truncate",
|
|
532385
532401
|
children: [
|
|
532386
532402
|
"currentVersion: ",
|
|
532387
|
-
"1.1.
|
|
532403
|
+
"1.1.8"
|
|
532388
532404
|
]
|
|
532389
532405
|
});
|
|
532390
532406
|
$2[3] = verbose;
|
|
@@ -541440,7 +541456,7 @@ function buildStatusLineCommandInput(permissionMode, exceeds200kTokens, settings
|
|
|
541440
541456
|
project_dir: getOriginalCwd(),
|
|
541441
541457
|
added_dirs: addedDirs
|
|
541442
541458
|
},
|
|
541443
|
-
version: "1.1.
|
|
541459
|
+
version: "1.1.8",
|
|
541444
541460
|
output_style: {
|
|
541445
541461
|
name: outputStyleName
|
|
541446
541462
|
},
|
|
@@ -565943,7 +565959,7 @@ function WelcomeV2() {
|
|
|
565943
565959
|
dimColor: true,
|
|
565944
565960
|
children: [
|
|
565945
565961
|
"v",
|
|
565946
|
-
"1.1.
|
|
565962
|
+
"1.1.8",
|
|
565947
565963
|
" "
|
|
565948
565964
|
]
|
|
565949
565965
|
})
|
|
@@ -566177,7 +566193,7 @@ function WelcomeV2() {
|
|
|
566177
566193
|
dimColor: true,
|
|
566178
566194
|
children: [
|
|
566179
566195
|
"v",
|
|
566180
|
-
"1.1.
|
|
566196
|
+
"1.1.8",
|
|
566181
566197
|
" "
|
|
566182
566198
|
]
|
|
566183
566199
|
})
|
|
@@ -566424,7 +566440,7 @@ function AppleTerminalWelcomeV2(t0) {
|
|
|
566424
566440
|
dimColor: true,
|
|
566425
566441
|
children: [
|
|
566426
566442
|
"v",
|
|
566427
|
-
"1.1.
|
|
566443
|
+
"1.1.8",
|
|
566428
566444
|
" "
|
|
566429
566445
|
]
|
|
566430
566446
|
});
|
|
@@ -566697,7 +566713,7 @@ function AppleTerminalWelcomeV2(t0) {
|
|
|
566697
566713
|
dimColor: true,
|
|
566698
566714
|
children: [
|
|
566699
566715
|
"v",
|
|
566700
|
-
"1.1.
|
|
566716
|
+
"1.1.8",
|
|
566701
566717
|
" "
|
|
566702
566718
|
]
|
|
566703
566719
|
});
|
|
@@ -568209,7 +568225,7 @@ function completeOnboarding() {
|
|
|
568209
568225
|
saveGlobalConfig((current) => ({
|
|
568210
568226
|
...current,
|
|
568211
568227
|
hasCompletedOnboarding: true,
|
|
568212
|
-
lastOnboardingVersion: "1.1.
|
|
568228
|
+
lastOnboardingVersion: "1.1.8"
|
|
568213
568229
|
}));
|
|
568214
568230
|
}
|
|
568215
568231
|
function showDialog(root2, renderer) {
|
|
@@ -572460,7 +572476,7 @@ function appendToLog(path24, message) {
|
|
|
572460
572476
|
cwd: getFsImplementation().cwd(),
|
|
572461
572477
|
userType: process.env.USER_TYPE,
|
|
572462
572478
|
sessionId: getSessionId(),
|
|
572463
|
-
version: "1.1.
|
|
572479
|
+
version: "1.1.8"
|
|
572464
572480
|
};
|
|
572465
572481
|
getLogWriter(path24).write(messageWithTimestamp);
|
|
572466
572482
|
}
|
|
@@ -573066,7 +573082,7 @@ async function startMCPServer(cwd2, debug, verbose) {
|
|
|
573066
573082
|
setCwd(cwd2);
|
|
573067
573083
|
const server = new Server({
|
|
573068
573084
|
name: "claude/tengu",
|
|
573069
|
-
version: "1.1.
|
|
573085
|
+
version: "1.1.8"
|
|
573070
573086
|
}, {
|
|
573071
573087
|
capabilities: {
|
|
573072
573088
|
tools: {}
|
|
@@ -577705,8 +577721,8 @@ async function getEnvLessBridgeConfig() {
|
|
|
577705
577721
|
}
|
|
577706
577722
|
async function checkEnvLessBridgeMinVersion() {
|
|
577707
577723
|
const cfg = await getEnvLessBridgeConfig();
|
|
577708
|
-
if (cfg.min_version && lt("1.1.
|
|
577709
|
-
return `Your version of ZeroCLI (${"1.1.
|
|
577724
|
+
if (cfg.min_version && lt("1.1.8", cfg.min_version)) {
|
|
577725
|
+
return `Your version of ZeroCLI (${"1.1.8"}) is too old for Remote Control.
|
|
577710
577726
|
Version ${cfg.min_version} or higher is required. Run \`zero update\` to update.`;
|
|
577711
577727
|
}
|
|
577712
577728
|
return null;
|
|
@@ -578181,7 +578197,7 @@ async function initBridgeCore(params) {
|
|
|
578181
578197
|
const rawApi = createBridgeApiClient({
|
|
578182
578198
|
baseUrl,
|
|
578183
578199
|
getAccessToken,
|
|
578184
|
-
runnerVersion: "1.1.
|
|
578200
|
+
runnerVersion: "1.1.8",
|
|
578185
578201
|
onDebug: logForDebugging,
|
|
578186
578202
|
onAuth401,
|
|
578187
578203
|
getTrustedDeviceToken
|
|
@@ -584469,7 +584485,7 @@ __export(exports_update2, {
|
|
|
584469
584485
|
});
|
|
584470
584486
|
async function update2() {
|
|
584471
584487
|
logEvent("tengu_update_check", {});
|
|
584472
|
-
writeToStdout(`Current version: ${"1.1.
|
|
584488
|
+
writeToStdout(`Current version: ${"1.1.8"}
|
|
584473
584489
|
`);
|
|
584474
584490
|
const channel2 = getInitialSettings()?.autoUpdatesChannel ?? "latest";
|
|
584475
584491
|
writeToStdout(`Checking for updates to ${channel2} version...
|
|
@@ -584544,8 +584560,8 @@ async function update2() {
|
|
|
584544
584560
|
writeToStdout(`Zero is managed by Homebrew.
|
|
584545
584561
|
`);
|
|
584546
584562
|
const latest = await getLatestVersion(channel2);
|
|
584547
|
-
if (latest && !gte("1.1.
|
|
584548
|
-
writeToStdout(`Update available: ${"1.1.
|
|
584563
|
+
if (latest && !gte("1.1.8", latest)) {
|
|
584564
|
+
writeToStdout(`Update available: ${"1.1.8"} → ${latest}
|
|
584549
584565
|
`);
|
|
584550
584566
|
writeToStdout(`
|
|
584551
584567
|
`);
|
|
@@ -584561,8 +584577,8 @@ async function update2() {
|
|
|
584561
584577
|
writeToStdout(`Zero is managed by winget.
|
|
584562
584578
|
`);
|
|
584563
584579
|
const latest = await getLatestVersion(channel2);
|
|
584564
|
-
if (latest && !gte("1.1.
|
|
584565
|
-
writeToStdout(`Update available: ${"1.1.
|
|
584580
|
+
if (latest && !gte("1.1.8", latest)) {
|
|
584581
|
+
writeToStdout(`Update available: ${"1.1.8"} → ${latest}
|
|
584566
584582
|
`);
|
|
584567
584583
|
writeToStdout(`
|
|
584568
584584
|
`);
|
|
@@ -584578,8 +584594,8 @@ async function update2() {
|
|
|
584578
584594
|
writeToStdout(`Zero is managed by apk.
|
|
584579
584595
|
`);
|
|
584580
584596
|
const latest = await getLatestVersion(channel2);
|
|
584581
|
-
if (latest && !gte("1.1.
|
|
584582
|
-
writeToStdout(`Update available: ${"1.1.
|
|
584597
|
+
if (latest && !gte("1.1.8", latest)) {
|
|
584598
|
+
writeToStdout(`Update available: ${"1.1.8"} → ${latest}
|
|
584583
584599
|
`);
|
|
584584
584600
|
writeToStdout(`
|
|
584585
584601
|
`);
|
|
@@ -584644,11 +584660,11 @@ async function update2() {
|
|
|
584644
584660
|
`);
|
|
584645
584661
|
await gracefulShutdown(1);
|
|
584646
584662
|
}
|
|
584647
|
-
if (result.latestVersion === "1.1.
|
|
584648
|
-
writeToStdout(source_default.green(`Zero CLI is up to date (${"1.1.
|
|
584663
|
+
if (result.latestVersion === "1.1.8") {
|
|
584664
|
+
writeToStdout(source_default.green(`Zero CLI is up to date (${"1.1.8"})`) + `
|
|
584649
584665
|
`);
|
|
584650
584666
|
} else {
|
|
584651
|
-
writeToStdout(source_default.green(`Successfully updated from ${"1.1.
|
|
584667
|
+
writeToStdout(source_default.green(`Successfully updated from ${"1.1.8"} to version ${result.latestVersion}`) + `
|
|
584652
584668
|
`);
|
|
584653
584669
|
await regenerateCompletionCache();
|
|
584654
584670
|
}
|
|
@@ -584708,12 +584724,12 @@ async function update2() {
|
|
|
584708
584724
|
`);
|
|
584709
584725
|
await gracefulShutdown(1);
|
|
584710
584726
|
}
|
|
584711
|
-
if (latestVersion === "1.1.
|
|
584712
|
-
writeToStdout(source_default.green(`Zero CLI is up to date (${"1.1.
|
|
584727
|
+
if (latestVersion === "1.1.8") {
|
|
584728
|
+
writeToStdout(source_default.green(`Zero CLI is up to date (${"1.1.8"})`) + `
|
|
584713
584729
|
`);
|
|
584714
584730
|
await gracefulShutdown(0);
|
|
584715
584731
|
}
|
|
584716
|
-
writeToStdout(`New version available: ${latestVersion} (current: ${"1.1.
|
|
584732
|
+
writeToStdout(`New version available: ${latestVersion} (current: ${"1.1.8"})
|
|
584717
584733
|
`);
|
|
584718
584734
|
writeToStdout(`Installing update...
|
|
584719
584735
|
`);
|
|
@@ -584758,7 +584774,7 @@ async function update2() {
|
|
|
584758
584774
|
logForDebugging(`update: Installation status: ${status2}`);
|
|
584759
584775
|
switch (status2) {
|
|
584760
584776
|
case "success":
|
|
584761
|
-
writeToStdout(source_default.green(`Successfully updated from ${"1.1.
|
|
584777
|
+
writeToStdout(source_default.green(`Successfully updated from ${"1.1.8"} to version ${latestVersion}`) + `
|
|
584762
584778
|
`);
|
|
584763
584779
|
await regenerateCompletionCache();
|
|
584764
584780
|
break;
|
|
@@ -586059,7 +586075,7 @@ ${customInstructions}` : customInstructions;
|
|
|
586059
586075
|
}
|
|
586060
586076
|
}
|
|
586061
586077
|
logForDiagnosticsNoPII("info", "started", {
|
|
586062
|
-
version: "1.1.
|
|
586078
|
+
version: "1.1.8",
|
|
586063
586079
|
is_native_binary: isInBundledMode()
|
|
586064
586080
|
});
|
|
586065
586081
|
registerCleanup(async () => {
|
|
@@ -586942,7 +586958,7 @@ Usage: claude --remote "your task description"`, () => gracefulShutdown(1));
|
|
|
586942
586958
|
pendingHookMessages
|
|
586943
586959
|
}, renderAndRun);
|
|
586944
586960
|
}
|
|
586945
|
-
}).version("1.1.
|
|
586961
|
+
}).version("1.1.8", "-v, --version", "Output the version number");
|
|
586946
586962
|
program2.option("-w, --worktree [name]", "Create a new git worktree for this session (optionally specify a name)");
|
|
586947
586963
|
program2.option("--tmux", "Create a tmux session for the worktree (requires --worktree). Uses iTerm2 native panes when available; use --tmux=classic for traditional tmux.");
|
|
586948
586964
|
if (canUserConfigureAdvisor()) {
|
|
@@ -587608,7 +587624,7 @@ if (false) {}
|
|
|
587608
587624
|
async function main2() {
|
|
587609
587625
|
const args = process.argv.slice(2);
|
|
587610
587626
|
if (args.length === 1 && (args[0] === "--version" || args[0] === "-v" || args[0] === "-V")) {
|
|
587611
|
-
console.log(`${"1.1.
|
|
587627
|
+
console.log(`${"1.1.8"} (ZeroCLI)`);
|
|
587612
587628
|
return;
|
|
587613
587629
|
}
|
|
587614
587630
|
if (args.includes("--provider")) {
|
|
@@ -587750,4 +587766,4 @@ async function main2() {
|
|
|
587750
587766
|
}
|
|
587751
587767
|
main2();
|
|
587752
587768
|
|
|
587753
|
-
//# debugId=
|
|
587769
|
+
//# debugId=5E2ECDA4E7219CF964756E2164756E21
|