@duheso/zerocli 1.0.0 → 1.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cli.mjs +85 -111
- package/package.json +1 -1
package/dist/cli.mjs
CHANGED
|
@@ -119224,7 +119224,7 @@ function buildProviderInfoLines() {
|
|
|
119224
119224
|
const sLen = ` ● ${sL} ${sReady}`.length;
|
|
119225
119225
|
out.push(boxRow(sRow, W2, sLen));
|
|
119226
119226
|
out.push(`${rgb(...BORDER)}╚${"═".repeat(W2 - 2)}╝${RESET}`);
|
|
119227
|
-
out.push(` ${DIM}${rgb(...DIMCOL)}zero ${RESET}${rgb(...ACCENT)}v${"1.0.
|
|
119227
|
+
out.push(` ${DIM}${rgb(...DIMCOL)}zero ${RESET}${rgb(...ACCENT)}v${"1.0.2"}${RESET}`);
|
|
119228
119228
|
return out;
|
|
119229
119229
|
}
|
|
119230
119230
|
function printStartupScreen() {}
|
|
@@ -147415,7 +147415,7 @@ function getAttributionHeader(fingerprint) {
|
|
|
147415
147415
|
if (!isAttributionHeaderEnabled()) {
|
|
147416
147416
|
return "";
|
|
147417
147417
|
}
|
|
147418
|
-
const version2 = `${"1.0.
|
|
147418
|
+
const version2 = `${"1.0.2"}.${fingerprint}`;
|
|
147419
147419
|
const entrypoint = process.env.CLAUDE_CODE_ENTRYPOINT ?? "unknown";
|
|
147420
147420
|
const cch = "";
|
|
147421
147421
|
const workload = getWorkload();
|
|
@@ -190425,7 +190425,7 @@ var init_imageValidation = __esm(() => {
|
|
|
190425
190425
|
|
|
190426
190426
|
// src/utils/userAgent.ts
|
|
190427
190427
|
function getZeroCodeUserAgent() {
|
|
190428
|
-
return `claude-code/${"1.0.
|
|
190428
|
+
return `claude-code/${"1.0.2"}`;
|
|
190429
190429
|
}
|
|
190430
190430
|
|
|
190431
190431
|
// src/utils/http.ts
|
|
@@ -190434,7 +190434,7 @@ function getUserAgent() {
|
|
|
190434
190434
|
const clientApp = process.env.CLAUDE_AGENT_SDK_CLIENT_APP ? `, client-app/${process.env.CLAUDE_AGENT_SDK_CLIENT_APP}` : "";
|
|
190435
190435
|
const workload = getWorkload();
|
|
190436
190436
|
const workloadSuffix = workload ? `, workload/${workload}` : "";
|
|
190437
|
-
return `claude-cli/${"1.0.
|
|
190437
|
+
return `claude-cli/${"1.0.2"} (${process.env.USER_TYPE}, ${process.env.CLAUDE_CODE_ENTRYPOINT ?? "cli"}${agentSdkVersion}${clientApp}${workloadSuffix})`;
|
|
190438
190438
|
}
|
|
190439
190439
|
function getMCPUserAgent() {
|
|
190440
190440
|
const parts = [];
|
|
@@ -190448,7 +190448,7 @@ function getMCPUserAgent() {
|
|
|
190448
190448
|
parts.push(`client-app/${process.env.CLAUDE_AGENT_SDK_CLIENT_APP}`);
|
|
190449
190449
|
}
|
|
190450
190450
|
const suffix = parts.length > 0 ? ` (${parts.join(", ")})` : "";
|
|
190451
|
-
return `claude-code/${"1.0.
|
|
190451
|
+
return `claude-code/${"1.0.2"}${suffix}`;
|
|
190452
190452
|
}
|
|
190453
190453
|
function getWebFetchUserAgent() {
|
|
190454
190454
|
const supportUrl = getAPIProvider() === "firstParty" ? "https://support.anthropic.com/" : "https://github.com/Duheso/ZeroCLI";
|
|
@@ -244934,7 +244934,7 @@ function getTelemetryAttributes() {
|
|
|
244934
244934
|
attributes["session.id"] = sessionId;
|
|
244935
244935
|
}
|
|
244936
244936
|
if (shouldIncludeAttribute("OTEL_METRICS_INCLUDE_VERSION")) {
|
|
244937
|
-
attributes["app.version"] = "1.0.
|
|
244937
|
+
attributes["app.version"] = "1.0.2";
|
|
244938
244938
|
}
|
|
244939
244939
|
const oauthAccount = getOauthAccountInfo();
|
|
244940
244940
|
if (oauthAccount) {
|
|
@@ -257173,7 +257173,7 @@ function computeFingerprint(messageText, version2) {
|
|
|
257173
257173
|
}
|
|
257174
257174
|
function computeFingerprintFromMessages(messages) {
|
|
257175
257175
|
const firstMessageText = extractFirstMessageText(messages);
|
|
257176
|
-
return computeFingerprint(firstMessageText, "1.0.
|
|
257176
|
+
return computeFingerprint(firstMessageText, "1.0.2");
|
|
257177
257177
|
}
|
|
257178
257178
|
var FINGERPRINT_SALT = "59cf53e54c78";
|
|
257179
257179
|
var init_fingerprint = () => {};
|
|
@@ -257215,7 +257215,7 @@ async function sideQuery(opts) {
|
|
|
257215
257215
|
betas.push(STRUCTURED_OUTPUTS_BETA_HEADER);
|
|
257216
257216
|
}
|
|
257217
257217
|
const messageText = extractFirstUserMessageText(messages);
|
|
257218
|
-
const fingerprint = computeFingerprint(messageText, "1.0.
|
|
257218
|
+
const fingerprint = computeFingerprint(messageText, "1.0.2");
|
|
257219
257219
|
const attributionHeader = getAttributionHeader(fingerprint);
|
|
257220
257220
|
const systemBlocks = [
|
|
257221
257221
|
attributionHeader ? { type: "text", text: attributionHeader } : null,
|
|
@@ -266117,7 +266117,7 @@ var init_user = __esm(() => {
|
|
|
266117
266117
|
deviceId,
|
|
266118
266118
|
sessionId: getSessionId(),
|
|
266119
266119
|
email: getEmail(),
|
|
266120
|
-
appVersion: "1.0.
|
|
266120
|
+
appVersion: "1.0.2",
|
|
266121
266121
|
platform: getHostPlatformForAnalytics(),
|
|
266122
266122
|
organizationUuid,
|
|
266123
266123
|
accountUuid,
|
|
@@ -266511,7 +266511,7 @@ async function initializeBetaTracing(resource) {
|
|
|
266511
266511
|
});
|
|
266512
266512
|
logs.setGlobalLoggerProvider(loggerProvider);
|
|
266513
266513
|
setLoggerProvider(loggerProvider);
|
|
266514
|
-
const eventLogger = logs.getLogger("com.anthropic.claude_code.events", "1.0.
|
|
266514
|
+
const eventLogger = logs.getLogger("com.anthropic.claude_code.events", "1.0.2");
|
|
266515
266515
|
setEventLogger(eventLogger);
|
|
266516
266516
|
process.on("beforeExit", async () => {
|
|
266517
266517
|
await loggerProvider?.forceFlush();
|
|
@@ -266551,7 +266551,7 @@ async function initializeTelemetry() {
|
|
|
266551
266551
|
const platform3 = getPlatform();
|
|
266552
266552
|
const baseAttributes = {
|
|
266553
266553
|
[ATTR_SERVICE_NAME3]: "claude-code",
|
|
266554
|
-
[ATTR_SERVICE_VERSION3]: "1.0.
|
|
266554
|
+
[ATTR_SERVICE_VERSION3]: "1.0.2"
|
|
266555
266555
|
};
|
|
266556
266556
|
if (platform3 === "wsl") {
|
|
266557
266557
|
const wslVersion = getWslVersion();
|
|
@@ -266596,7 +266596,7 @@ async function initializeTelemetry() {
|
|
|
266596
266596
|
} catch {}
|
|
266597
266597
|
};
|
|
266598
266598
|
registerCleanup(shutdownTelemetry2);
|
|
266599
|
-
return meterProvider2.getMeter("com.anthropic.claude_code", "1.0.
|
|
266599
|
+
return meterProvider2.getMeter("com.anthropic.claude_code", "1.0.2");
|
|
266600
266600
|
}
|
|
266601
266601
|
const meterProvider = new MeterProvider3({
|
|
266602
266602
|
resource,
|
|
@@ -266616,7 +266616,7 @@ async function initializeTelemetry() {
|
|
|
266616
266616
|
});
|
|
266617
266617
|
logs.setGlobalLoggerProvider(loggerProvider);
|
|
266618
266618
|
setLoggerProvider(loggerProvider);
|
|
266619
|
-
const eventLogger = logs.getLogger("com.anthropic.claude_code.events", "1.0.
|
|
266619
|
+
const eventLogger = logs.getLogger("com.anthropic.claude_code.events", "1.0.2");
|
|
266620
266620
|
setEventLogger(eventLogger);
|
|
266621
266621
|
logForDebugging("[3P telemetry] Event logger set successfully");
|
|
266622
266622
|
process.on("beforeExit", async () => {
|
|
@@ -266678,7 +266678,7 @@ Current timeout: ${timeoutMs}ms
|
|
|
266678
266678
|
}
|
|
266679
266679
|
};
|
|
266680
266680
|
registerCleanup(shutdownTelemetry);
|
|
266681
|
-
return meterProvider.getMeter("com.anthropic.claude_code", "1.0.
|
|
266681
|
+
return meterProvider.getMeter("com.anthropic.claude_code", "1.0.2");
|
|
266682
266682
|
}
|
|
266683
266683
|
async function flushTelemetry() {
|
|
266684
266684
|
const meterProvider = getMeterProvider();
|
|
@@ -267490,9 +267490,9 @@ async function assertMinVersion() {
|
|
|
267490
267490
|
}
|
|
267491
267491
|
try {
|
|
267492
267492
|
const versionConfig = await getDynamicConfig_BLOCKS_ON_INIT("tengu_version_config", { minVersion: "0.0.0" });
|
|
267493
|
-
if (versionConfig.minVersion && lt("1.0.
|
|
267493
|
+
if (versionConfig.minVersion && lt("1.0.2", versionConfig.minVersion)) {
|
|
267494
267494
|
console.error(`
|
|
267495
|
-
It looks like your version of ZeroCLI (${"1.0.
|
|
267495
|
+
It looks like your version of ZeroCLI (${"1.0.2"}) needs an update.
|
|
267496
267496
|
A newer version (${versionConfig.minVersion} or higher) is required to continue.
|
|
267497
267497
|
|
|
267498
267498
|
To update, please run:
|
|
@@ -267708,7 +267708,7 @@ async function installGlobalPackage(specificVersion) {
|
|
|
267708
267708
|
logError2(new AutoUpdaterError("Another process is currently installing an update"));
|
|
267709
267709
|
logEvent("tengu_auto_updater_lock_contention", {
|
|
267710
267710
|
pid: process.pid,
|
|
267711
|
-
currentVersion: "1.0.
|
|
267711
|
+
currentVersion: "1.0.2"
|
|
267712
267712
|
});
|
|
267713
267713
|
return "in_progress";
|
|
267714
267714
|
}
|
|
@@ -267717,7 +267717,7 @@ async function installGlobalPackage(specificVersion) {
|
|
|
267717
267717
|
if (!env2.isRunningWithBun() && env2.isNpmFromWindowsPath()) {
|
|
267718
267718
|
logError2(new Error("Windows NPM detected in WSL environment"));
|
|
267719
267719
|
logEvent("tengu_auto_updater_windows_npm_in_wsl", {
|
|
267720
|
-
currentVersion: "1.0.
|
|
267720
|
+
currentVersion: "1.0.2"
|
|
267721
267721
|
});
|
|
267722
267722
|
console.error(`
|
|
267723
267723
|
Error: Windows NPM detected in WSL
|
|
@@ -268271,7 +268271,7 @@ async function getDoctorDiagnostic() {
|
|
|
268271
268271
|
const installationType = await getCurrentInstallationType();
|
|
268272
268272
|
let version2;
|
|
268273
268273
|
try {
|
|
268274
|
-
version2 = "1.0.
|
|
268274
|
+
version2 = "1.0.2";
|
|
268275
268275
|
} catch {
|
|
268276
268276
|
version2 = "unknown";
|
|
268277
268277
|
}
|
|
@@ -269765,7 +269765,7 @@ function getInstallationEnv() {
|
|
|
269765
269765
|
return;
|
|
269766
269766
|
}
|
|
269767
269767
|
function getZeroCodeVersion() {
|
|
269768
|
-
return "1.0.
|
|
269768
|
+
return "1.0.2";
|
|
269769
269769
|
}
|
|
269770
269770
|
async function getInstalledVSCodeExtensionVersion(command) {
|
|
269771
269771
|
const { stdout } = await execFileNoThrow(command, ["--list-extensions", "--show-versions"], {
|
|
@@ -271132,8 +271132,8 @@ async function updateLatest(channelOrVersion, forceReinstall = false) {
|
|
|
271132
271132
|
const maxVersion = await getMaxVersion();
|
|
271133
271133
|
if (maxVersion && gt(version2, maxVersion)) {
|
|
271134
271134
|
logForDebugging(`Native installer: maxVersion ${maxVersion} is set, capping update from ${version2} to ${maxVersion}`);
|
|
271135
|
-
if (gte("1.0.
|
|
271136
|
-
logForDebugging(`Native installer: current version ${"1.0.
|
|
271135
|
+
if (gte("1.0.2", maxVersion)) {
|
|
271136
|
+
logForDebugging(`Native installer: current version ${"1.0.2"} is already at or above maxVersion ${maxVersion}, skipping update`);
|
|
271137
271137
|
logEvent("tengu_native_update_skipped_max_version", {
|
|
271138
271138
|
latency_ms: Date.now() - startTime2,
|
|
271139
271139
|
max_version: maxVersion,
|
|
@@ -271144,7 +271144,7 @@ async function updateLatest(channelOrVersion, forceReinstall = false) {
|
|
|
271144
271144
|
version2 = maxVersion;
|
|
271145
271145
|
}
|
|
271146
271146
|
}
|
|
271147
|
-
if (!forceReinstall && version2 === "1.0.
|
|
271147
|
+
if (!forceReinstall && version2 === "1.0.2" && await versionIsAvailable(version2) && await isPossibleZeroBinary(executablePath)) {
|
|
271148
271148
|
logForDebugging(`Found ${version2} at ${executablePath}, skipping install`);
|
|
271149
271149
|
logEvent("tengu_native_update_complete", {
|
|
271150
271150
|
latency_ms: Date.now() - startTime2,
|
|
@@ -359780,38 +359780,12 @@ function CouncilResultView({ result }) {
|
|
|
359780
359780
|
}
|
|
359781
359781
|
function renderCouncilToolUse(input) {
|
|
359782
359782
|
const promptText = input.prompt ?? "";
|
|
359783
|
-
|
|
359784
|
-
|
|
359785
|
-
|
|
359786
|
-
|
|
359787
|
-
|
|
359788
|
-
|
|
359789
|
-
color: "ansi:yellow",
|
|
359790
|
-
children: "⚖️ Invocando o Tribunal do Conselho..."
|
|
359791
|
-
}),
|
|
359792
|
-
/* @__PURE__ */ jsx_runtime140.jsx(ThemedBox_default, {
|
|
359793
|
-
marginLeft: 2,
|
|
359794
|
-
children: /* @__PURE__ */ jsx_runtime140.jsxs(ThemedText, {
|
|
359795
|
-
dimColor: true,
|
|
359796
|
-
children: [
|
|
359797
|
-
"Questão: ",
|
|
359798
|
-
promptText.substring(0, 100),
|
|
359799
|
-
promptText.length > 100 ? "..." : ""
|
|
359800
|
-
]
|
|
359801
|
-
})
|
|
359802
|
-
}),
|
|
359803
|
-
input.pack && input.pack !== "default" && /* @__PURE__ */ jsx_runtime140.jsx(ThemedBox_default, {
|
|
359804
|
-
marginLeft: 2,
|
|
359805
|
-
children: /* @__PURE__ */ jsx_runtime140.jsxs(ThemedText, {
|
|
359806
|
-
dimColor: true,
|
|
359807
|
-
children: [
|
|
359808
|
-
"Pack: ",
|
|
359809
|
-
input.pack
|
|
359810
|
-
]
|
|
359811
|
-
})
|
|
359812
|
-
})
|
|
359813
|
-
]
|
|
359814
|
-
});
|
|
359783
|
+
const truncated = promptText.substring(0, 80) + (promptText.length > 80 ? "..." : "");
|
|
359784
|
+
const parts = [`"${truncated}"`];
|
|
359785
|
+
if (input.pack && input.pack !== "default") {
|
|
359786
|
+
parts.push(`pack: ${input.pack}`);
|
|
359787
|
+
}
|
|
359788
|
+
return parts.join(", ");
|
|
359815
359789
|
}
|
|
359816
359790
|
function renderCouncilError(error42) {
|
|
359817
359791
|
return /* @__PURE__ */ jsx_runtime140.jsx(ThemedBox_default, {
|
|
@@ -378070,7 +378044,7 @@ function getAnthropicEnvMetadata() {
|
|
|
378070
378044
|
function getBuildAgeMinutes() {
|
|
378071
378045
|
if (false)
|
|
378072
378046
|
;
|
|
378073
|
-
const buildTime = new Date("2026-05-21T19:
|
|
378047
|
+
const buildTime = new Date("2026-05-21T19:37:05.476Z").getTime();
|
|
378074
378048
|
if (isNaN(buildTime))
|
|
378075
378049
|
return;
|
|
378076
378050
|
return Math.floor((Date.now() - buildTime) / 60000);
|
|
@@ -405553,7 +405527,7 @@ async function setupSdkMcpClients(sdkMcpConfigs, sendMcpMessage) {
|
|
|
405553
405527
|
const client2 = new Client({
|
|
405554
405528
|
name: "claude-code",
|
|
405555
405529
|
title: "ZeroCLI",
|
|
405556
|
-
version: "1.0.
|
|
405530
|
+
version: "1.0.2",
|
|
405557
405531
|
description: "Anthropic's agentic coding tool",
|
|
405558
405532
|
websiteUrl: PRODUCT_URL
|
|
405559
405533
|
}, {
|
|
@@ -405905,7 +405879,7 @@ var init_client7 = __esm(() => {
|
|
|
405905
405879
|
const client2 = new Client({
|
|
405906
405880
|
name: "claude-code",
|
|
405907
405881
|
title: "ZeroCLI",
|
|
405908
|
-
version: "1.0.
|
|
405882
|
+
version: "1.0.2",
|
|
405909
405883
|
description: "Anthropic's agentic coding tool",
|
|
405910
405884
|
websiteUrl: PRODUCT_URL
|
|
405911
405885
|
}, {
|
|
@@ -416640,7 +416614,7 @@ function Feedback({
|
|
|
416640
416614
|
platform: env2.platform,
|
|
416641
416615
|
gitRepo: envInfo.isGit,
|
|
416642
416616
|
terminal: env2.terminal,
|
|
416643
|
-
version: "1.0.
|
|
416617
|
+
version: "1.0.2",
|
|
416644
416618
|
transcript: normalizeMessagesForAPI(messages),
|
|
416645
416619
|
errors: sanitizedErrors,
|
|
416646
416620
|
lastApiRequest: getLastAPIRequest(),
|
|
@@ -416833,7 +416807,7 @@ function Feedback({
|
|
|
416833
416807
|
", ",
|
|
416834
416808
|
env2.terminal,
|
|
416835
416809
|
", v",
|
|
416836
|
-
"1.0.
|
|
416810
|
+
"1.0.2"
|
|
416837
416811
|
]
|
|
416838
416812
|
})
|
|
416839
416813
|
]
|
|
@@ -416941,7 +416915,7 @@ ${sanitizedDescription}
|
|
|
416941
416915
|
` + `**Environment Info**
|
|
416942
416916
|
` + `- Platform: ${env2.platform}
|
|
416943
416917
|
` + `- Terminal: ${env2.terminal}
|
|
416944
|
-
` + `- Version: ${"1.0.
|
|
416918
|
+
` + `- Version: ${"1.0.2"}
|
|
416945
416919
|
` + feedbackIdLine + `
|
|
416946
416920
|
**Errors**
|
|
416947
416921
|
\`\`\`json
|
|
@@ -420094,7 +420068,7 @@ function buildPrimarySection() {
|
|
|
420094
420068
|
});
|
|
420095
420069
|
return [{
|
|
420096
420070
|
label: "Version",
|
|
420097
|
-
value: "1.0.
|
|
420071
|
+
value: "1.0.2"
|
|
420098
420072
|
}, {
|
|
420099
420073
|
label: "Session name",
|
|
420100
420074
|
value: nameValue
|
|
@@ -424864,7 +424838,7 @@ function Config({
|
|
|
424864
424838
|
}
|
|
424865
424839
|
})
|
|
424866
424840
|
}) : showSubmenu === "ChannelDowngrade" ? /* @__PURE__ */ jsx_runtime183.jsx(ChannelDowngradeDialog, {
|
|
424867
|
-
currentVersion: "1.0.
|
|
424841
|
+
currentVersion: "1.0.2",
|
|
424868
424842
|
onChoice: (choice) => {
|
|
424869
424843
|
setShowSubmenu(null);
|
|
424870
424844
|
setTabsHidden(false);
|
|
@@ -424876,7 +424850,7 @@ function Config({
|
|
|
424876
424850
|
autoUpdatesChannel: "stable"
|
|
424877
424851
|
};
|
|
424878
424852
|
if (choice === "stay") {
|
|
424879
|
-
newSettings.minimumVersion = "1.0.
|
|
424853
|
+
newSettings.minimumVersion = "1.0.2";
|
|
424880
424854
|
}
|
|
424881
424855
|
updateSettingsForSource("userSettings", newSettings);
|
|
424882
424856
|
setSettingsData((prev_27) => ({
|
|
@@ -431817,7 +431791,7 @@ function UpdateScreen({ onDone }) {
|
|
|
431817
431791
|
setState({ type: "dev-build" });
|
|
431818
431792
|
return;
|
|
431819
431793
|
}
|
|
431820
|
-
const currentVersion = "1.0.
|
|
431794
|
+
const currentVersion = "1.0.2";
|
|
431821
431795
|
const channel2 = getInitialSettings()?.autoUpdatesChannel ?? "latest";
|
|
431822
431796
|
const latestVersion = await getLatestVersion(channel2);
|
|
431823
431797
|
if (!latestVersion) {
|
|
@@ -433928,7 +433902,7 @@ function HelpV2(t0) {
|
|
|
433928
433902
|
let t6;
|
|
433929
433903
|
if ($2[31] !== tabs) {
|
|
433930
433904
|
t6 = /* @__PURE__ */ jsx_runtime213.jsx(Tabs, {
|
|
433931
|
-
title: `ZeroCLI v${"1.0.
|
|
433905
|
+
title: `ZeroCLI v${"1.0.2"}`,
|
|
433932
433906
|
color: "professionalBlue",
|
|
433933
433907
|
defaultTab: "general",
|
|
433934
433908
|
children: tabs
|
|
@@ -458772,7 +458746,7 @@ function getAllReleaseNotes(changelogContent = getStoredChangelogFromMemory()) {
|
|
|
458772
458746
|
return [];
|
|
458773
458747
|
}
|
|
458774
458748
|
}
|
|
458775
|
-
async function checkForReleaseNotes(lastSeenVersion, currentVersion = "1.0.
|
|
458749
|
+
async function checkForReleaseNotes(lastSeenVersion, currentVersion = "1.0.2") {
|
|
458776
458750
|
if (process.env.USER_TYPE === "ant") {
|
|
458777
458751
|
const changelog = MACRO.VERSION_CHANGELOG;
|
|
458778
458752
|
if (changelog) {
|
|
@@ -487810,7 +487784,7 @@ async function captureMemoryDiagnostics(trigger, dumpNumber = 0) {
|
|
|
487810
487784
|
smapsRollup,
|
|
487811
487785
|
platform: process.platform,
|
|
487812
487786
|
nodeVersion: process.version,
|
|
487813
|
-
ccVersion: "1.0.
|
|
487787
|
+
ccVersion: "1.0.2"
|
|
487814
487788
|
};
|
|
487815
487789
|
}
|
|
487816
487790
|
async function performHeapDump(trigger = "manual", dumpNumber = 0) {
|
|
@@ -488397,7 +488371,7 @@ var init_bridge_kick = __esm(() => {
|
|
|
488397
488371
|
var call60 = async () => {
|
|
488398
488372
|
return {
|
|
488399
488373
|
type: "text",
|
|
488400
|
-
value: `${"1.0.
|
|
488374
|
+
value: `${"1.0.2"} (built ${"2026-05-21T19:37:05.476Z"})`
|
|
488401
488375
|
};
|
|
488402
488376
|
}, version2, version_default;
|
|
488403
488377
|
var init_version = __esm(() => {
|
|
@@ -498554,7 +498528,7 @@ function generateHtmlReport(data, insights) {
|
|
|
498554
498528
|
function buildExportData(data, insights, facets) {
|
|
498555
498529
|
let version3;
|
|
498556
498530
|
try {
|
|
498557
|
-
version3 = "1.0.
|
|
498531
|
+
version3 = "1.0.2";
|
|
498558
498532
|
} catch {
|
|
498559
498533
|
version3 = "unknown";
|
|
498560
498534
|
}
|
|
@@ -502750,7 +502724,7 @@ var init_sessionStorage = __esm(() => {
|
|
|
502750
502724
|
init_slowOperations();
|
|
502751
502725
|
init_uuid();
|
|
502752
502726
|
try {
|
|
502753
|
-
VERSION7 = "1.0.
|
|
502727
|
+
VERSION7 = "1.0.2";
|
|
502754
502728
|
} catch {
|
|
502755
502729
|
VERSION7 = "unknown";
|
|
502756
502730
|
}
|
|
@@ -504071,7 +504045,7 @@ var init_filesystem = __esm(() => {
|
|
|
504071
504045
|
});
|
|
504072
504046
|
getBundledSkillsRoot = memoize_default(function getBundledSkillsRoot2() {
|
|
504073
504047
|
const nonce = randomBytes17(16).toString("hex");
|
|
504074
|
-
return join137(getZeroTempDir(), "bundled-skills", "1.0.
|
|
504048
|
+
return join137(getZeroTempDir(), "bundled-skills", "1.0.2", nonce);
|
|
504075
504049
|
});
|
|
504076
504050
|
getResolvedWorkingDirPaths = memoize_default(getPathsForPermissionCheck);
|
|
504077
504051
|
});
|
|
@@ -515091,7 +515065,7 @@ function buildSystemInitMessage(inputs) {
|
|
|
515091
515065
|
slash_commands: inputs.commands.filter((c6) => c6.userInvocable !== false).map((c6) => c6.name),
|
|
515092
515066
|
apiKeySource: getAnthropicApiKeyWithSource().source,
|
|
515093
515067
|
betas: getSdkBetas(),
|
|
515094
|
-
claude_code_version: "1.0.
|
|
515068
|
+
claude_code_version: "1.0.2",
|
|
515095
515069
|
output_style: outputStyle2,
|
|
515096
515070
|
agents: inputs.agents.map((agent2) => agent2.agentType),
|
|
515097
515071
|
skills: inputs.skills.filter((s) => s.userInvocable !== false).map((skill) => skill.name),
|
|
@@ -530406,7 +530380,7 @@ var init_useVoiceEnabled = __esm(() => {
|
|
|
530406
530380
|
function getSemverPart(version3) {
|
|
530407
530381
|
return `${import_semver12.major(version3, { loose: true })}.${import_semver12.minor(version3, { loose: true })}.${import_semver12.patch(version3, { loose: true })}`;
|
|
530408
530382
|
}
|
|
530409
|
-
function useUpdateNotification(updatedVersion, initialVersion = "1.0.
|
|
530383
|
+
function useUpdateNotification(updatedVersion, initialVersion = "1.0.2") {
|
|
530410
530384
|
const [lastNotifiedSemver, setLastNotifiedSemver] = import_react226.useState(() => getSemverPart(initialVersion));
|
|
530411
530385
|
if (!updatedVersion) {
|
|
530412
530386
|
return null;
|
|
@@ -530449,7 +530423,7 @@ function AutoUpdater({
|
|
|
530449
530423
|
return;
|
|
530450
530424
|
}
|
|
530451
530425
|
if (false) {}
|
|
530452
|
-
const currentVersion = "1.0.
|
|
530426
|
+
const currentVersion = "1.0.2";
|
|
530453
530427
|
const channel2 = getInitialSettings()?.autoUpdatesChannel ?? "latest";
|
|
530454
530428
|
let latestVersion = await getLatestVersion(channel2);
|
|
530455
530429
|
const isDisabled = isAutoUpdaterDisabled();
|
|
@@ -530670,12 +530644,12 @@ function NativeAutoUpdater({
|
|
|
530670
530644
|
logEvent("tengu_native_auto_updater_start", {});
|
|
530671
530645
|
try {
|
|
530672
530646
|
const maxVersion = await getMaxVersion();
|
|
530673
|
-
if (maxVersion && gt("1.0.
|
|
530647
|
+
if (maxVersion && gt("1.0.2", maxVersion)) {
|
|
530674
530648
|
const msg = await getMaxVersionMessage();
|
|
530675
530649
|
setMaxVersionIssue(msg ?? "affects your version");
|
|
530676
530650
|
}
|
|
530677
530651
|
const result = await installLatest(channel2);
|
|
530678
|
-
const currentVersion = "1.0.
|
|
530652
|
+
const currentVersion = "1.0.2";
|
|
530679
530653
|
const latencyMs = Date.now() - startTime2;
|
|
530680
530654
|
if (result.lockFailed) {
|
|
530681
530655
|
logEvent("tengu_native_auto_updater_lock_contention", {
|
|
@@ -530817,17 +530791,17 @@ function PackageManagerAutoUpdater(t0) {
|
|
|
530817
530791
|
const maxVersion = await getMaxVersion();
|
|
530818
530792
|
if (maxVersion && latest && gt(latest, maxVersion)) {
|
|
530819
530793
|
logForDebugging(`PackageManagerAutoUpdater: maxVersion ${maxVersion} is set, capping update from ${latest} to ${maxVersion}`);
|
|
530820
|
-
if (gte("1.0.
|
|
530821
|
-
logForDebugging(`PackageManagerAutoUpdater: current version ${"1.0.
|
|
530794
|
+
if (gte("1.0.2", maxVersion)) {
|
|
530795
|
+
logForDebugging(`PackageManagerAutoUpdater: current version ${"1.0.2"} is already at or above maxVersion ${maxVersion}, skipping update`);
|
|
530822
530796
|
setUpdateAvailable(false);
|
|
530823
530797
|
return;
|
|
530824
530798
|
}
|
|
530825
530799
|
latest = maxVersion;
|
|
530826
530800
|
}
|
|
530827
|
-
const hasUpdate = latest && !gte("1.0.
|
|
530801
|
+
const hasUpdate = latest && !gte("1.0.2", latest) && !shouldSkipVersion(latest);
|
|
530828
530802
|
setUpdateAvailable(!!hasUpdate);
|
|
530829
530803
|
if (hasUpdate) {
|
|
530830
|
-
logForDebugging(`PackageManagerAutoUpdater: Update available ${"1.0.
|
|
530804
|
+
logForDebugging(`PackageManagerAutoUpdater: Update available ${"1.0.2"} -> ${latest}`);
|
|
530831
530805
|
}
|
|
530832
530806
|
};
|
|
530833
530807
|
$2[0] = t1;
|
|
@@ -530861,7 +530835,7 @@ function PackageManagerAutoUpdater(t0) {
|
|
|
530861
530835
|
wrap: "truncate",
|
|
530862
530836
|
children: [
|
|
530863
530837
|
"currentVersion: ",
|
|
530864
|
-
"1.0.
|
|
530838
|
+
"1.0.2"
|
|
530865
530839
|
]
|
|
530866
530840
|
});
|
|
530867
530841
|
$2[3] = verbose;
|
|
@@ -539917,7 +539891,7 @@ function buildStatusLineCommandInput(permissionMode, exceeds200kTokens, settings
|
|
|
539917
539891
|
project_dir: getOriginalCwd(),
|
|
539918
539892
|
added_dirs: addedDirs
|
|
539919
539893
|
},
|
|
539920
|
-
version: "1.0.
|
|
539894
|
+
version: "1.0.2",
|
|
539921
539895
|
output_style: {
|
|
539922
539896
|
name: outputStyleName
|
|
539923
539897
|
},
|
|
@@ -564420,7 +564394,7 @@ function WelcomeV2() {
|
|
|
564420
564394
|
dimColor: true,
|
|
564421
564395
|
children: [
|
|
564422
564396
|
"v",
|
|
564423
|
-
"1.0.
|
|
564397
|
+
"1.0.2",
|
|
564424
564398
|
" "
|
|
564425
564399
|
]
|
|
564426
564400
|
})
|
|
@@ -564654,7 +564628,7 @@ function WelcomeV2() {
|
|
|
564654
564628
|
dimColor: true,
|
|
564655
564629
|
children: [
|
|
564656
564630
|
"v",
|
|
564657
|
-
"1.0.
|
|
564631
|
+
"1.0.2",
|
|
564658
564632
|
" "
|
|
564659
564633
|
]
|
|
564660
564634
|
})
|
|
@@ -564901,7 +564875,7 @@ function AppleTerminalWelcomeV2(t0) {
|
|
|
564901
564875
|
dimColor: true,
|
|
564902
564876
|
children: [
|
|
564903
564877
|
"v",
|
|
564904
|
-
"1.0.
|
|
564878
|
+
"1.0.2",
|
|
564905
564879
|
" "
|
|
564906
564880
|
]
|
|
564907
564881
|
});
|
|
@@ -565174,7 +565148,7 @@ function AppleTerminalWelcomeV2(t0) {
|
|
|
565174
565148
|
dimColor: true,
|
|
565175
565149
|
children: [
|
|
565176
565150
|
"v",
|
|
565177
|
-
"1.0.
|
|
565151
|
+
"1.0.2",
|
|
565178
565152
|
" "
|
|
565179
565153
|
]
|
|
565180
565154
|
});
|
|
@@ -566686,7 +566660,7 @@ function completeOnboarding() {
|
|
|
566686
566660
|
saveGlobalConfig((current) => ({
|
|
566687
566661
|
...current,
|
|
566688
566662
|
hasCompletedOnboarding: true,
|
|
566689
|
-
lastOnboardingVersion: "1.0.
|
|
566663
|
+
lastOnboardingVersion: "1.0.2"
|
|
566690
566664
|
}));
|
|
566691
566665
|
}
|
|
566692
566666
|
function showDialog(root2, renderer) {
|
|
@@ -570937,7 +570911,7 @@ function appendToLog(path24, message) {
|
|
|
570937
570911
|
cwd: getFsImplementation().cwd(),
|
|
570938
570912
|
userType: process.env.USER_TYPE,
|
|
570939
570913
|
sessionId: getSessionId(),
|
|
570940
|
-
version: "1.0.
|
|
570914
|
+
version: "1.0.2"
|
|
570941
570915
|
};
|
|
570942
570916
|
getLogWriter(path24).write(messageWithTimestamp);
|
|
570943
570917
|
}
|
|
@@ -571543,7 +571517,7 @@ async function startMCPServer(cwd2, debug, verbose) {
|
|
|
571543
571517
|
setCwd(cwd2);
|
|
571544
571518
|
const server = new Server({
|
|
571545
571519
|
name: "claude/tengu",
|
|
571546
|
-
version: "1.0.
|
|
571520
|
+
version: "1.0.2"
|
|
571547
571521
|
}, {
|
|
571548
571522
|
capabilities: {
|
|
571549
571523
|
tools: {}
|
|
@@ -576182,8 +576156,8 @@ async function getEnvLessBridgeConfig() {
|
|
|
576182
576156
|
}
|
|
576183
576157
|
async function checkEnvLessBridgeMinVersion() {
|
|
576184
576158
|
const cfg = await getEnvLessBridgeConfig();
|
|
576185
|
-
if (cfg.min_version && lt("1.0.
|
|
576186
|
-
return `Your version of ZeroCLI (${"1.0.
|
|
576159
|
+
if (cfg.min_version && lt("1.0.2", cfg.min_version)) {
|
|
576160
|
+
return `Your version of ZeroCLI (${"1.0.2"}) is too old for Remote Control.
|
|
576187
576161
|
Version ${cfg.min_version} or higher is required. Run \`zero update\` to update.`;
|
|
576188
576162
|
}
|
|
576189
576163
|
return null;
|
|
@@ -576658,7 +576632,7 @@ async function initBridgeCore(params) {
|
|
|
576658
576632
|
const rawApi = createBridgeApiClient({
|
|
576659
576633
|
baseUrl,
|
|
576660
576634
|
getAccessToken,
|
|
576661
|
-
runnerVersion: "1.0.
|
|
576635
|
+
runnerVersion: "1.0.2",
|
|
576662
576636
|
onDebug: logForDebugging,
|
|
576663
576637
|
onAuth401,
|
|
576664
576638
|
getTrustedDeviceToken
|
|
@@ -582946,7 +582920,7 @@ __export(exports_update2, {
|
|
|
582946
582920
|
});
|
|
582947
582921
|
async function update2() {
|
|
582948
582922
|
logEvent("tengu_update_check", {});
|
|
582949
|
-
writeToStdout(`Current version: ${"1.0.
|
|
582923
|
+
writeToStdout(`Current version: ${"1.0.2"}
|
|
582950
582924
|
`);
|
|
582951
582925
|
const channel2 = getInitialSettings()?.autoUpdatesChannel ?? "latest";
|
|
582952
582926
|
writeToStdout(`Checking for updates to ${channel2} version...
|
|
@@ -583021,8 +582995,8 @@ async function update2() {
|
|
|
583021
582995
|
writeToStdout(`Zero is managed by Homebrew.
|
|
583022
582996
|
`);
|
|
583023
582997
|
const latest = await getLatestVersion(channel2);
|
|
583024
|
-
if (latest && !gte("1.0.
|
|
583025
|
-
writeToStdout(`Update available: ${"1.0.
|
|
582998
|
+
if (latest && !gte("1.0.2", latest)) {
|
|
582999
|
+
writeToStdout(`Update available: ${"1.0.2"} → ${latest}
|
|
583026
583000
|
`);
|
|
583027
583001
|
writeToStdout(`
|
|
583028
583002
|
`);
|
|
@@ -583038,8 +583012,8 @@ async function update2() {
|
|
|
583038
583012
|
writeToStdout(`Zero is managed by winget.
|
|
583039
583013
|
`);
|
|
583040
583014
|
const latest = await getLatestVersion(channel2);
|
|
583041
|
-
if (latest && !gte("1.0.
|
|
583042
|
-
writeToStdout(`Update available: ${"1.0.
|
|
583015
|
+
if (latest && !gte("1.0.2", latest)) {
|
|
583016
|
+
writeToStdout(`Update available: ${"1.0.2"} → ${latest}
|
|
583043
583017
|
`);
|
|
583044
583018
|
writeToStdout(`
|
|
583045
583019
|
`);
|
|
@@ -583055,8 +583029,8 @@ async function update2() {
|
|
|
583055
583029
|
writeToStdout(`Zero is managed by apk.
|
|
583056
583030
|
`);
|
|
583057
583031
|
const latest = await getLatestVersion(channel2);
|
|
583058
|
-
if (latest && !gte("1.0.
|
|
583059
|
-
writeToStdout(`Update available: ${"1.0.
|
|
583032
|
+
if (latest && !gte("1.0.2", latest)) {
|
|
583033
|
+
writeToStdout(`Update available: ${"1.0.2"} → ${latest}
|
|
583060
583034
|
`);
|
|
583061
583035
|
writeToStdout(`
|
|
583062
583036
|
`);
|
|
@@ -583121,11 +583095,11 @@ async function update2() {
|
|
|
583121
583095
|
`);
|
|
583122
583096
|
await gracefulShutdown(1);
|
|
583123
583097
|
}
|
|
583124
|
-
if (result.latestVersion === "1.0.
|
|
583125
|
-
writeToStdout(source_default.green(`Zero CLI is up to date (${"1.0.
|
|
583098
|
+
if (result.latestVersion === "1.0.2") {
|
|
583099
|
+
writeToStdout(source_default.green(`Zero CLI is up to date (${"1.0.2"})`) + `
|
|
583126
583100
|
`);
|
|
583127
583101
|
} else {
|
|
583128
|
-
writeToStdout(source_default.green(`Successfully updated from ${"1.0.
|
|
583102
|
+
writeToStdout(source_default.green(`Successfully updated from ${"1.0.2"} to version ${result.latestVersion}`) + `
|
|
583129
583103
|
`);
|
|
583130
583104
|
await regenerateCompletionCache();
|
|
583131
583105
|
}
|
|
@@ -583185,12 +583159,12 @@ async function update2() {
|
|
|
583185
583159
|
`);
|
|
583186
583160
|
await gracefulShutdown(1);
|
|
583187
583161
|
}
|
|
583188
|
-
if (latestVersion === "1.0.
|
|
583189
|
-
writeToStdout(source_default.green(`Zero CLI is up to date (${"1.0.
|
|
583162
|
+
if (latestVersion === "1.0.2") {
|
|
583163
|
+
writeToStdout(source_default.green(`Zero CLI is up to date (${"1.0.2"})`) + `
|
|
583190
583164
|
`);
|
|
583191
583165
|
await gracefulShutdown(0);
|
|
583192
583166
|
}
|
|
583193
|
-
writeToStdout(`New version available: ${latestVersion} (current: ${"1.0.
|
|
583167
|
+
writeToStdout(`New version available: ${latestVersion} (current: ${"1.0.2"})
|
|
583194
583168
|
`);
|
|
583195
583169
|
writeToStdout(`Installing update...
|
|
583196
583170
|
`);
|
|
@@ -583235,7 +583209,7 @@ async function update2() {
|
|
|
583235
583209
|
logForDebugging(`update: Installation status: ${status2}`);
|
|
583236
583210
|
switch (status2) {
|
|
583237
583211
|
case "success":
|
|
583238
|
-
writeToStdout(source_default.green(`Successfully updated from ${"1.0.
|
|
583212
|
+
writeToStdout(source_default.green(`Successfully updated from ${"1.0.2"} to version ${latestVersion}`) + `
|
|
583239
583213
|
`);
|
|
583240
583214
|
await regenerateCompletionCache();
|
|
583241
583215
|
break;
|
|
@@ -584536,7 +584510,7 @@ ${customInstructions}` : customInstructions;
|
|
|
584536
584510
|
}
|
|
584537
584511
|
}
|
|
584538
584512
|
logForDiagnosticsNoPII("info", "started", {
|
|
584539
|
-
version: "1.0.
|
|
584513
|
+
version: "1.0.2",
|
|
584540
584514
|
is_native_binary: isInBundledMode()
|
|
584541
584515
|
});
|
|
584542
584516
|
registerCleanup(async () => {
|
|
@@ -585419,7 +585393,7 @@ Usage: claude --remote "your task description"`, () => gracefulShutdown(1));
|
|
|
585419
585393
|
pendingHookMessages
|
|
585420
585394
|
}, renderAndRun);
|
|
585421
585395
|
}
|
|
585422
|
-
}).version("1.0.
|
|
585396
|
+
}).version("1.0.2", "-v, --version", "Output the version number");
|
|
585423
585397
|
program2.option("-w, --worktree [name]", "Create a new git worktree for this session (optionally specify a name)");
|
|
585424
585398
|
program2.option("--tmux", "Create a tmux session for the worktree (requires --worktree). Uses iTerm2 native panes when available; use --tmux=classic for traditional tmux.");
|
|
585425
585399
|
if (canUserConfigureAdvisor()) {
|
|
@@ -586085,7 +586059,7 @@ if (false) {}
|
|
|
586085
586059
|
async function main2() {
|
|
586086
586060
|
const args = process.argv.slice(2);
|
|
586087
586061
|
if (args.length === 1 && (args[0] === "--version" || args[0] === "-v" || args[0] === "-V")) {
|
|
586088
|
-
console.log(`${"1.0.
|
|
586062
|
+
console.log(`${"1.0.2"} (ZeroCLI)`);
|
|
586089
586063
|
return;
|
|
586090
586064
|
}
|
|
586091
586065
|
if (args.includes("--provider")) {
|
|
@@ -586227,4 +586201,4 @@ async function main2() {
|
|
|
586227
586201
|
}
|
|
586228
586202
|
main2();
|
|
586229
586203
|
|
|
586230
|
-
//# debugId=
|
|
586204
|
+
//# debugId=F4C29765E017832B64756E2164756E21
|