@duheso/zerocli 1.0.4 → 1.0.5
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 +275 -120
- 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.0.
|
|
119229
|
+
out.push(` ${DIM}${rgb(...DIMCOL)}zero ${RESET}${rgb(...ACCENT)}v${"1.0.5"}${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.0.
|
|
147420
|
+
const version2 = `${"1.0.5"}.${fingerprint}`;
|
|
147421
147421
|
const entrypoint = process.env.CLAUDE_CODE_ENTRYPOINT ?? "unknown";
|
|
147422
147422
|
const cch = "";
|
|
147423
147423
|
const workload = getWorkload();
|
|
@@ -190427,7 +190427,7 @@ var init_imageValidation = __esm(() => {
|
|
|
190427
190427
|
|
|
190428
190428
|
// src/utils/userAgent.ts
|
|
190429
190429
|
function getZeroCodeUserAgent() {
|
|
190430
|
-
return `claude-code/${"1.0.
|
|
190430
|
+
return `claude-code/${"1.0.5"}`;
|
|
190431
190431
|
}
|
|
190432
190432
|
|
|
190433
190433
|
// src/utils/http.ts
|
|
@@ -190436,7 +190436,7 @@ function getUserAgent() {
|
|
|
190436
190436
|
const clientApp = process.env.CLAUDE_AGENT_SDK_CLIENT_APP ? `, client-app/${process.env.CLAUDE_AGENT_SDK_CLIENT_APP}` : "";
|
|
190437
190437
|
const workload = getWorkload();
|
|
190438
190438
|
const workloadSuffix = workload ? `, workload/${workload}` : "";
|
|
190439
|
-
return `claude-cli/${"1.0.
|
|
190439
|
+
return `claude-cli/${"1.0.5"} (${process.env.USER_TYPE}, ${process.env.CLAUDE_CODE_ENTRYPOINT ?? "cli"}${agentSdkVersion}${clientApp}${workloadSuffix})`;
|
|
190440
190440
|
}
|
|
190441
190441
|
function getMCPUserAgent() {
|
|
190442
190442
|
const parts = [];
|
|
@@ -190450,7 +190450,7 @@ function getMCPUserAgent() {
|
|
|
190450
190450
|
parts.push(`client-app/${process.env.CLAUDE_AGENT_SDK_CLIENT_APP}`);
|
|
190451
190451
|
}
|
|
190452
190452
|
const suffix = parts.length > 0 ? ` (${parts.join(", ")})` : "";
|
|
190453
|
-
return `claude-code/${"1.0.
|
|
190453
|
+
return `claude-code/${"1.0.5"}${suffix}`;
|
|
190454
190454
|
}
|
|
190455
190455
|
function getWebFetchUserAgent() {
|
|
190456
190456
|
const supportUrl = getAPIProvider() === "firstParty" ? "https://support.anthropic.com/" : "https://github.com/Duheso/ZeroCLI";
|
|
@@ -244936,7 +244936,7 @@ function getTelemetryAttributes() {
|
|
|
244936
244936
|
attributes["session.id"] = sessionId;
|
|
244937
244937
|
}
|
|
244938
244938
|
if (shouldIncludeAttribute("OTEL_METRICS_INCLUDE_VERSION")) {
|
|
244939
|
-
attributes["app.version"] = "1.0.
|
|
244939
|
+
attributes["app.version"] = "1.0.5";
|
|
244940
244940
|
}
|
|
244941
244941
|
const oauthAccount = getOauthAccountInfo();
|
|
244942
244942
|
if (oauthAccount) {
|
|
@@ -257175,7 +257175,7 @@ function computeFingerprint(messageText, version2) {
|
|
|
257175
257175
|
}
|
|
257176
257176
|
function computeFingerprintFromMessages(messages) {
|
|
257177
257177
|
const firstMessageText = extractFirstMessageText(messages);
|
|
257178
|
-
return computeFingerprint(firstMessageText, "1.0.
|
|
257178
|
+
return computeFingerprint(firstMessageText, "1.0.5");
|
|
257179
257179
|
}
|
|
257180
257180
|
var FINGERPRINT_SALT = "59cf53e54c78";
|
|
257181
257181
|
var init_fingerprint = () => {};
|
|
@@ -257217,7 +257217,7 @@ async function sideQuery(opts) {
|
|
|
257217
257217
|
betas.push(STRUCTURED_OUTPUTS_BETA_HEADER);
|
|
257218
257218
|
}
|
|
257219
257219
|
const messageText = extractFirstUserMessageText(messages);
|
|
257220
|
-
const fingerprint = computeFingerprint(messageText, "1.0.
|
|
257220
|
+
const fingerprint = computeFingerprint(messageText, "1.0.5");
|
|
257221
257221
|
const attributionHeader = getAttributionHeader(fingerprint);
|
|
257222
257222
|
const systemBlocks = [
|
|
257223
257223
|
attributionHeader ? { type: "text", text: attributionHeader } : null,
|
|
@@ -266119,7 +266119,7 @@ var init_user = __esm(() => {
|
|
|
266119
266119
|
deviceId,
|
|
266120
266120
|
sessionId: getSessionId(),
|
|
266121
266121
|
email: getEmail(),
|
|
266122
|
-
appVersion: "1.0.
|
|
266122
|
+
appVersion: "1.0.5",
|
|
266123
266123
|
platform: getHostPlatformForAnalytics(),
|
|
266124
266124
|
organizationUuid,
|
|
266125
266125
|
accountUuid,
|
|
@@ -266513,7 +266513,7 @@ async function initializeBetaTracing(resource) {
|
|
|
266513
266513
|
});
|
|
266514
266514
|
logs.setGlobalLoggerProvider(loggerProvider);
|
|
266515
266515
|
setLoggerProvider(loggerProvider);
|
|
266516
|
-
const eventLogger = logs.getLogger("com.anthropic.claude_code.events", "1.0.
|
|
266516
|
+
const eventLogger = logs.getLogger("com.anthropic.claude_code.events", "1.0.5");
|
|
266517
266517
|
setEventLogger(eventLogger);
|
|
266518
266518
|
process.on("beforeExit", async () => {
|
|
266519
266519
|
await loggerProvider?.forceFlush();
|
|
@@ -266553,7 +266553,7 @@ async function initializeTelemetry() {
|
|
|
266553
266553
|
const platform3 = getPlatform();
|
|
266554
266554
|
const baseAttributes = {
|
|
266555
266555
|
[ATTR_SERVICE_NAME3]: "claude-code",
|
|
266556
|
-
[ATTR_SERVICE_VERSION3]: "1.0.
|
|
266556
|
+
[ATTR_SERVICE_VERSION3]: "1.0.5"
|
|
266557
266557
|
};
|
|
266558
266558
|
if (platform3 === "wsl") {
|
|
266559
266559
|
const wslVersion = getWslVersion();
|
|
@@ -266598,7 +266598,7 @@ async function initializeTelemetry() {
|
|
|
266598
266598
|
} catch {}
|
|
266599
266599
|
};
|
|
266600
266600
|
registerCleanup(shutdownTelemetry2);
|
|
266601
|
-
return meterProvider2.getMeter("com.anthropic.claude_code", "1.0.
|
|
266601
|
+
return meterProvider2.getMeter("com.anthropic.claude_code", "1.0.5");
|
|
266602
266602
|
}
|
|
266603
266603
|
const meterProvider = new MeterProvider3({
|
|
266604
266604
|
resource,
|
|
@@ -266618,7 +266618,7 @@ async function initializeTelemetry() {
|
|
|
266618
266618
|
});
|
|
266619
266619
|
logs.setGlobalLoggerProvider(loggerProvider);
|
|
266620
266620
|
setLoggerProvider(loggerProvider);
|
|
266621
|
-
const eventLogger = logs.getLogger("com.anthropic.claude_code.events", "1.0.
|
|
266621
|
+
const eventLogger = logs.getLogger("com.anthropic.claude_code.events", "1.0.5");
|
|
266622
266622
|
setEventLogger(eventLogger);
|
|
266623
266623
|
logForDebugging("[3P telemetry] Event logger set successfully");
|
|
266624
266624
|
process.on("beforeExit", async () => {
|
|
@@ -266680,7 +266680,7 @@ Current timeout: ${timeoutMs}ms
|
|
|
266680
266680
|
}
|
|
266681
266681
|
};
|
|
266682
266682
|
registerCleanup(shutdownTelemetry);
|
|
266683
|
-
return meterProvider.getMeter("com.anthropic.claude_code", "1.0.
|
|
266683
|
+
return meterProvider.getMeter("com.anthropic.claude_code", "1.0.5");
|
|
266684
266684
|
}
|
|
266685
266685
|
async function flushTelemetry() {
|
|
266686
266686
|
const meterProvider = getMeterProvider();
|
|
@@ -267492,9 +267492,9 @@ async function assertMinVersion() {
|
|
|
267492
267492
|
}
|
|
267493
267493
|
try {
|
|
267494
267494
|
const versionConfig = await getDynamicConfig_BLOCKS_ON_INIT("tengu_version_config", { minVersion: "0.0.0" });
|
|
267495
|
-
if (versionConfig.minVersion && lt("1.0.
|
|
267495
|
+
if (versionConfig.minVersion && lt("1.0.5", versionConfig.minVersion)) {
|
|
267496
267496
|
console.error(`
|
|
267497
|
-
It looks like your version of ZeroCLI (${"1.0.
|
|
267497
|
+
It looks like your version of ZeroCLI (${"1.0.5"}) needs an update.
|
|
267498
267498
|
A newer version (${versionConfig.minVersion} or higher) is required to continue.
|
|
267499
267499
|
|
|
267500
267500
|
To update, please run:
|
|
@@ -267710,7 +267710,7 @@ async function installGlobalPackage(specificVersion) {
|
|
|
267710
267710
|
logError2(new AutoUpdaterError("Another process is currently installing an update"));
|
|
267711
267711
|
logEvent("tengu_auto_updater_lock_contention", {
|
|
267712
267712
|
pid: process.pid,
|
|
267713
|
-
currentVersion: "1.0.
|
|
267713
|
+
currentVersion: "1.0.5"
|
|
267714
267714
|
});
|
|
267715
267715
|
return "in_progress";
|
|
267716
267716
|
}
|
|
@@ -267719,7 +267719,7 @@ async function installGlobalPackage(specificVersion) {
|
|
|
267719
267719
|
if (!env2.isRunningWithBun() && env2.isNpmFromWindowsPath()) {
|
|
267720
267720
|
logError2(new Error("Windows NPM detected in WSL environment"));
|
|
267721
267721
|
logEvent("tengu_auto_updater_windows_npm_in_wsl", {
|
|
267722
|
-
currentVersion: "1.0.
|
|
267722
|
+
currentVersion: "1.0.5"
|
|
267723
267723
|
});
|
|
267724
267724
|
console.error(`
|
|
267725
267725
|
Error: Windows NPM detected in WSL
|
|
@@ -268273,7 +268273,7 @@ async function getDoctorDiagnostic() {
|
|
|
268273
268273
|
const installationType = await getCurrentInstallationType();
|
|
268274
268274
|
let version2;
|
|
268275
268275
|
try {
|
|
268276
|
-
version2 = "1.0.
|
|
268276
|
+
version2 = "1.0.5";
|
|
268277
268277
|
} catch {
|
|
268278
268278
|
version2 = "unknown";
|
|
268279
268279
|
}
|
|
@@ -269767,7 +269767,7 @@ function getInstallationEnv() {
|
|
|
269767
269767
|
return;
|
|
269768
269768
|
}
|
|
269769
269769
|
function getZeroCodeVersion() {
|
|
269770
|
-
return "1.0.
|
|
269770
|
+
return "1.0.5";
|
|
269771
269771
|
}
|
|
269772
269772
|
async function getInstalledVSCodeExtensionVersion(command) {
|
|
269773
269773
|
const { stdout } = await execFileNoThrow(command, ["--list-extensions", "--show-versions"], {
|
|
@@ -271134,8 +271134,8 @@ async function updateLatest(channelOrVersion, forceReinstall = false) {
|
|
|
271134
271134
|
const maxVersion = await getMaxVersion();
|
|
271135
271135
|
if (maxVersion && gt(version2, maxVersion)) {
|
|
271136
271136
|
logForDebugging(`Native installer: maxVersion ${maxVersion} is set, capping update from ${version2} to ${maxVersion}`);
|
|
271137
|
-
if (gte("1.0.
|
|
271138
|
-
logForDebugging(`Native installer: current version ${"1.0.
|
|
271137
|
+
if (gte("1.0.5", maxVersion)) {
|
|
271138
|
+
logForDebugging(`Native installer: current version ${"1.0.5"} is already at or above maxVersion ${maxVersion}, skipping update`);
|
|
271139
271139
|
logEvent("tengu_native_update_skipped_max_version", {
|
|
271140
271140
|
latency_ms: Date.now() - startTime2,
|
|
271141
271141
|
max_version: maxVersion,
|
|
@@ -271146,7 +271146,7 @@ async function updateLatest(channelOrVersion, forceReinstall = false) {
|
|
|
271146
271146
|
version2 = maxVersion;
|
|
271147
271147
|
}
|
|
271148
271148
|
}
|
|
271149
|
-
if (!forceReinstall && version2 === "1.0.
|
|
271149
|
+
if (!forceReinstall && version2 === "1.0.5" && await versionIsAvailable(version2) && await isPossibleZeroBinary(executablePath)) {
|
|
271150
271150
|
logForDebugging(`Found ${version2} at ${executablePath}, skipping install`);
|
|
271151
271151
|
logEvent("tengu_native_update_complete", {
|
|
271152
271152
|
latency_ms: Date.now() - startTime2,
|
|
@@ -359260,7 +359260,7 @@ INSTRUCTIONS (ROUND ${currentRound} of max ${totalMaxRounds}):
|
|
|
359260
359260
|
4. Be specific. Reference other advisors BY NAME.
|
|
359261
359261
|
5. Keep your response between 150-1500 words.
|
|
359262
359262
|
6. End with your updated one-sentence position statement.
|
|
359263
|
-
7. If you believe the council is reaching consensus, say
|
|
359263
|
+
7. IMPORTANT: If you believe the council is reaching consensus or your position hasn't materially changed, explicitly say "I believe we are reaching consensus". Note that reaching a consensus will bring the debate to an end at the final of the 3rd round. If you still strongly dissent on key points, make that equally clear with "I disagree" or "Discordo". If you choose to dissent, you may clearly state your disagreement at any moment and invoke up to 2 extra rounds to continue the discussion.`;
|
|
359264
359264
|
}
|
|
359265
359265
|
async function queryAdvisor(member, userPrompt, signal) {
|
|
359266
359266
|
const model = getDefaultMainLoopModel();
|
|
@@ -359293,8 +359293,68 @@ function parseOpinion(member, rawText, roundNumber, allMembers) {
|
|
|
359293
359293
|
if (!sentence.toLowerCase().includes(nameLower))
|
|
359294
359294
|
continue;
|
|
359295
359295
|
const s = sentence.toLowerCase();
|
|
359296
|
-
const agreeSignals = [
|
|
359297
|
-
|
|
359296
|
+
const agreeSignals = [
|
|
359297
|
+
"concordo",
|
|
359298
|
+
"agree",
|
|
359299
|
+
"correto",
|
|
359300
|
+
"correct",
|
|
359301
|
+
"right",
|
|
359302
|
+
"acerto",
|
|
359303
|
+
"apoio",
|
|
359304
|
+
"support",
|
|
359305
|
+
"align",
|
|
359306
|
+
"bem colocado",
|
|
359307
|
+
"well said",
|
|
359308
|
+
"share",
|
|
359309
|
+
"compartilho",
|
|
359310
|
+
"endorse",
|
|
359311
|
+
"válido",
|
|
359312
|
+
"valid",
|
|
359313
|
+
"exactly",
|
|
359314
|
+
"exatamente",
|
|
359315
|
+
"precisely",
|
|
359316
|
+
"precisamente",
|
|
359317
|
+
"echo",
|
|
359318
|
+
"second",
|
|
359319
|
+
"builds on",
|
|
359320
|
+
"complement",
|
|
359321
|
+
"complementa",
|
|
359322
|
+
"reinforce",
|
|
359323
|
+
"reforça"
|
|
359324
|
+
];
|
|
359325
|
+
const disagreeSignals = [
|
|
359326
|
+
"discordo",
|
|
359327
|
+
"disagree",
|
|
359328
|
+
"erro",
|
|
359329
|
+
"wrong",
|
|
359330
|
+
"equivocado",
|
|
359331
|
+
"misguided",
|
|
359332
|
+
"contesto",
|
|
359333
|
+
"challenge",
|
|
359334
|
+
"object",
|
|
359335
|
+
"however",
|
|
359336
|
+
"entretanto",
|
|
359337
|
+
"porém",
|
|
359338
|
+
"but",
|
|
359339
|
+
"mas",
|
|
359340
|
+
"overlooks",
|
|
359341
|
+
"ignora",
|
|
359342
|
+
"neglects",
|
|
359343
|
+
"simplistic",
|
|
359344
|
+
"simplista",
|
|
359345
|
+
"insufficient",
|
|
359346
|
+
"insuficiente",
|
|
359347
|
+
"naive",
|
|
359348
|
+
"ingênuo",
|
|
359349
|
+
"counter",
|
|
359350
|
+
"contraponto",
|
|
359351
|
+
"flawed",
|
|
359352
|
+
"falho",
|
|
359353
|
+
"risky",
|
|
359354
|
+
"arriscado",
|
|
359355
|
+
"dangerous",
|
|
359356
|
+
"perigoso"
|
|
359357
|
+
];
|
|
359298
359358
|
if (agreeSignals.some((sig) => s.includes(sig))) {
|
|
359299
359359
|
agreements.push({ memberId: other2.id, reason: sentence.trim() });
|
|
359300
359360
|
}
|
|
@@ -359318,6 +359378,7 @@ function hasConverged(rounds) {
|
|
|
359318
359378
|
if (rounds.length < MIN_DEBATE_ROUNDS)
|
|
359319
359379
|
return false;
|
|
359320
359380
|
const lastRound = rounds[rounds.length - 1];
|
|
359381
|
+
const prevRound = rounds.length >= 2 ? rounds[rounds.length - 2] : null;
|
|
359321
359382
|
let totalAgreements = 0;
|
|
359322
359383
|
let totalDisagreements = 0;
|
|
359323
359384
|
for (const opinion of lastRound.opinions) {
|
|
@@ -359328,41 +359389,96 @@ function hasConverged(rounds) {
|
|
|
359328
359389
|
return true;
|
|
359329
359390
|
if (totalAgreements > 0 && totalAgreements >= totalDisagreements * 3)
|
|
359330
359391
|
return true;
|
|
359331
|
-
const consensusSignals = [
|
|
359392
|
+
const consensusSignals = [
|
|
359393
|
+
"consensus",
|
|
359394
|
+
"consenso",
|
|
359395
|
+
"we agree",
|
|
359396
|
+
"concordamos",
|
|
359397
|
+
"aligned",
|
|
359398
|
+
"alinhados",
|
|
359399
|
+
"common ground",
|
|
359400
|
+
"ponto em comum",
|
|
359401
|
+
"convergence",
|
|
359402
|
+
"convergência",
|
|
359403
|
+
"shared view",
|
|
359404
|
+
"visão compartilhada",
|
|
359405
|
+
"in agreement",
|
|
359406
|
+
"em acordo",
|
|
359407
|
+
"concur",
|
|
359408
|
+
"all agree",
|
|
359409
|
+
"todos concordam",
|
|
359410
|
+
"unânime",
|
|
359411
|
+
"unanimous",
|
|
359412
|
+
"shared conclusion",
|
|
359413
|
+
"conclusão compartilhada"
|
|
359414
|
+
];
|
|
359332
359415
|
const consensusMentions = lastRound.opinions.filter((op) => consensusSignals.some((sig) => op.opinion.toLowerCase().includes(sig))).length;
|
|
359333
|
-
|
|
359416
|
+
if (consensusMentions >= 3)
|
|
359417
|
+
return true;
|
|
359418
|
+
if (prevRound) {
|
|
359419
|
+
let stablePositions = 0;
|
|
359420
|
+
for (const opinion of lastRound.opinions) {
|
|
359421
|
+
const prevOpinion = prevRound.opinions.find((o2) => o2.memberId === opinion.memberId);
|
|
359422
|
+
if (!prevOpinion)
|
|
359423
|
+
continue;
|
|
359424
|
+
const hadDisagreements = prevOpinion.disagreements.length;
|
|
359425
|
+
const hasDisagreements = opinion.disagreements.length;
|
|
359426
|
+
if (hasDisagreements <= hadDisagreements) {
|
|
359427
|
+
stablePositions++;
|
|
359428
|
+
}
|
|
359429
|
+
}
|
|
359430
|
+
if (stablePositions >= 4)
|
|
359431
|
+
return true;
|
|
359432
|
+
}
|
|
359433
|
+
return false;
|
|
359334
359434
|
}
|
|
359335
359435
|
async function runDebate(clarifiedPrompt, pack, config2, signal, onRoundComplete) {
|
|
359336
359436
|
const rounds = [];
|
|
359337
359437
|
const minRounds = Math.max(MIN_DEBATE_ROUNDS, config2.minRounds);
|
|
359338
359438
|
const maxRounds = Math.min(MAX_DEBATE_ROUNDS, config2.maxRounds);
|
|
359339
359439
|
let convergedAtRound = null;
|
|
359340
|
-
|
|
359341
|
-
|
|
359342
|
-
|
|
359343
|
-
|
|
359344
|
-
|
|
359345
|
-
|
|
359346
|
-
|
|
359440
|
+
let extraRoundsInvoked = false;
|
|
359441
|
+
for (let roundNum = 1;roundNum <= minRounds; roundNum++) {
|
|
359442
|
+
const round2 = await executeRound(roundNum, clarifiedPrompt, pack, rounds, maxRounds, signal);
|
|
359443
|
+
rounds.push(round2);
|
|
359444
|
+
onRoundComplete?.(round2, false);
|
|
359445
|
+
}
|
|
359446
|
+
if (hasConverged(rounds)) {
|
|
359447
|
+
convergedAtRound = minRounds;
|
|
359448
|
+
return { rounds, convergedAtRound, extraRoundsInvoked: false };
|
|
359449
|
+
}
|
|
359450
|
+
if (minRounds < maxRounds) {
|
|
359451
|
+
extraRoundsInvoked = true;
|
|
359452
|
+
for (let roundNum = minRounds + 1;roundNum <= maxRounds; roundNum++) {
|
|
359453
|
+
const round2 = await executeRound(roundNum, clarifiedPrompt, pack, rounds, maxRounds, signal);
|
|
359454
|
+
rounds.push(round2);
|
|
359455
|
+
onRoundComplete?.(round2, true);
|
|
359456
|
+
if (hasConverged(rounds)) {
|
|
359457
|
+
convergedAtRound = roundNum;
|
|
359458
|
+
break;
|
|
359347
359459
|
}
|
|
359460
|
+
}
|
|
359461
|
+
}
|
|
359462
|
+
return { rounds, convergedAtRound, extraRoundsInvoked };
|
|
359463
|
+
}
|
|
359464
|
+
async function executeRound(roundNum, clarifiedPrompt, pack, previousRounds, maxRounds, signal) {
|
|
359465
|
+
const memberPrompts = pack.members.map((member) => {
|
|
359466
|
+
if (roundNum === 1) {
|
|
359348
359467
|
return {
|
|
359349
359468
|
member,
|
|
359350
|
-
prompt:
|
|
359469
|
+
prompt: buildRoundOnePrompt(member, clarifiedPrompt, pack.members)
|
|
359351
359470
|
};
|
|
359352
|
-
});
|
|
359353
|
-
const opinions = await Promise.all(memberPrompts.map(async ({ member, prompt }) => {
|
|
359354
|
-
const rawText = await queryAdvisor(member, prompt, signal);
|
|
359355
|
-
return parseOpinion(member, rawText, roundNum, pack.members);
|
|
359356
|
-
}));
|
|
359357
|
-
const round2 = { roundNumber: roundNum, opinions };
|
|
359358
|
-
rounds.push(round2);
|
|
359359
|
-
onRoundComplete?.(round2);
|
|
359360
|
-
if (roundNum >= minRounds && hasConverged(rounds)) {
|
|
359361
|
-
convergedAtRound = roundNum;
|
|
359362
|
-
break;
|
|
359363
359471
|
}
|
|
359364
|
-
|
|
359365
|
-
|
|
359472
|
+
return {
|
|
359473
|
+
member,
|
|
359474
|
+
prompt: buildSubsequentRoundPrompt(member, clarifiedPrompt, pack.members, previousRounds, roundNum, maxRounds)
|
|
359475
|
+
};
|
|
359476
|
+
});
|
|
359477
|
+
const opinions = await Promise.all(memberPrompts.map(async ({ member, prompt }) => {
|
|
359478
|
+
const rawText = await queryAdvisor(member, prompt, signal);
|
|
359479
|
+
return parseOpinion(member, rawText, roundNum, pack.members);
|
|
359480
|
+
}));
|
|
359481
|
+
return { roundNumber: roundNum, opinions };
|
|
359366
359482
|
}
|
|
359367
359483
|
var init_councilDebate = __esm(() => {
|
|
359368
359484
|
init_claude();
|
|
@@ -359512,7 +359628,7 @@ async function generateClarifyingQuestions(userPrompt, signal) {
|
|
|
359512
359628
|
|
|
359513
359629
|
"${userPrompt}"
|
|
359514
359630
|
|
|
359515
|
-
Generate 3
|
|
359631
|
+
Analyze how much detail the user already provided. Generate between 3 and 13 clarifying questions — fewer if the user was very detailed, more if the prompt is vague or complex. The number must reflect the actual need, never a fixed default.`,
|
|
359516
359632
|
signal,
|
|
359517
359633
|
options: {
|
|
359518
359634
|
model,
|
|
@@ -359538,7 +359654,7 @@ Generate 3 to 13 clarifying questions (no more than 13) to fully understand thei
|
|
|
359538
359654
|
"What outcome would you consider ideal?"
|
|
359539
359655
|
];
|
|
359540
359656
|
}
|
|
359541
|
-
return questions.slice(0,
|
|
359657
|
+
return questions.slice(0, 13);
|
|
359542
359658
|
}
|
|
359543
359659
|
function buildEnrichedPrompt(originalPrompt, clarifications) {
|
|
359544
359660
|
const clarificationText = Object.entries(clarifications).map(([question, answer]) => `Q: ${question}
|
|
@@ -359573,25 +359689,29 @@ async function runCouncilTribunal(input) {
|
|
|
359573
359689
|
}
|
|
359574
359690
|
var MESSENGER_SYSTEM_PROMPT = `You are the Messenger of the Council Tribunal ("Mensageiro do Tribunal do Conselho"). Your sole job is to prepare the user's question for the Council of 5 AI advisors.
|
|
359575
359691
|
|
|
359576
|
-
|
|
359577
|
-
|
|
359692
|
+
CRITICAL — DYNAMIC QUESTION COUNT:
|
|
359693
|
+
Analyze the user's prompt carefully and generate the RIGHT number of clarifying questions (minimum 3, maximum 13):
|
|
359694
|
+
- If the user gave VERY LITTLE detail (vague, short, or abstract prompt) → generate 8-13 questions to fill in all gaps.
|
|
359695
|
+
- If the user gave MODERATE detail → generate 5-7 questions focusing on what's still unclear.
|
|
359696
|
+
- If the user gave EXTENSIVE detail (long, specific, with context) → generate 3-5 questions targeting only remaining blind spots.
|
|
359578
359697
|
|
|
359579
|
-
|
|
359698
|
+
The number of questions MUST reflect the complexity and completeness of what the user already shared. DO NOT default to any fixed number.
|
|
359580
359699
|
|
|
359700
|
+
The questions should be:
|
|
359701
|
+
1. Highly relevant — they should reveal the context, constraints, priorities, or desired outcomes.
|
|
359702
|
+
2. Specific — avoid generic questions. Adapt them to the user's actual request.
|
|
359581
359703
|
3. Actionable — the answers should substantially alter the Board's recommendation.
|
|
359582
|
-
|
|
359583
359704
|
4. Non-redundant — each question must cover a DIFFERENT aspect of the problem.
|
|
359584
359705
|
NOTHING should remain abstract or ambiguous. The Council needs complete context to deliberate effectively.
|
|
359585
359706
|
|
|
359586
359707
|
Detect the language of the user's prompt and write your questions in the SAME language.
|
|
359587
359708
|
|
|
359588
|
-
OUTPUT FORMAT:
|
|
359709
|
+
OUTPUT FORMAT:
|
|
359589
359710
|
Return ONLY the questions, one per line, prefixed with a number:
|
|
359590
359711
|
1. [question]
|
|
359591
359712
|
2. [question]
|
|
359592
359713
|
3. [question]
|
|
359593
|
-
|
|
359594
|
-
5. [question] (if needed)`;
|
|
359714
|
+
...continue as needed (3-13 questions based on complexity)`;
|
|
359595
359715
|
var init_councilOrchestrator = __esm(() => {
|
|
359596
359716
|
init_claude();
|
|
359597
359717
|
init_messages3();
|
|
@@ -359911,6 +360031,25 @@ function renderCouncilProgress(progressMessages) {
|
|
|
359911
360031
|
children: "\uD83D\uDCE8 O Mensageiro está esclarecendo a questão..."
|
|
359912
360032
|
})
|
|
359913
360033
|
}),
|
|
360034
|
+
data.phase === "extra_rounds" && /* @__PURE__ */ jsx_runtime140.jsxs(ThemedBox_default, {
|
|
360035
|
+
flexDirection: "column",
|
|
360036
|
+
marginTop: 1,
|
|
360037
|
+
children: [
|
|
360038
|
+
/* @__PURE__ */ jsx_runtime140.jsx(ThemedText, {
|
|
360039
|
+
bold: true,
|
|
360040
|
+
color: "ansi:red",
|
|
360041
|
+
children: "⚠️ DIVERGÊNCIA NO CONSELHO — Rodadas extras invocadas!"
|
|
360042
|
+
}),
|
|
360043
|
+
/* @__PURE__ */ jsx_runtime140.jsxs(ThemedText, {
|
|
360044
|
+
color: "ansi:yellow",
|
|
360045
|
+
children: [
|
|
360046
|
+
"\uD83D\uDD25 O Tribunal detectou divergências significativas após ",
|
|
360047
|
+
data.currentRound ? data.currentRound - 1 : 3,
|
|
360048
|
+
" rodadas. Invocando 2 rodadas extras finais para buscar consenso..."
|
|
360049
|
+
]
|
|
360050
|
+
})
|
|
360051
|
+
]
|
|
360052
|
+
}),
|
|
359914
360053
|
data.phase === "debating" && data.currentRound && data.maxRounds && /* @__PURE__ */ jsx_runtime140.jsx(ThemedBox_default, {
|
|
359915
360054
|
children: /* @__PURE__ */ jsx_runtime140.jsxs(ThemedText, {
|
|
359916
360055
|
dimColor: true,
|
|
@@ -359919,6 +360058,7 @@ function renderCouncilProgress(progressMessages) {
|
|
|
359919
360058
|
data.currentRound,
|
|
359920
360059
|
"/",
|
|
359921
360060
|
data.maxRounds,
|
|
360061
|
+
data.extraRoundsInvoked ? " (Extra)" : "",
|
|
359922
360062
|
"..."
|
|
359923
360063
|
]
|
|
359924
360064
|
})
|
|
@@ -360065,22 +360205,23 @@ var init_CouncilTool = __esm(() => {
|
|
|
360065
360205
|
}
|
|
360066
360206
|
const enrichedPrompt = buildEnrichedPrompt(input.prompt, input.clarifications);
|
|
360067
360207
|
const maxRounds = input.max_rounds ?? MAX_DEBATE_ROUNDS;
|
|
360208
|
+
const minRounds = input.min_rounds ?? MIN_DEBATE_ROUNDS;
|
|
360068
360209
|
const completedRoundSnapshots = [];
|
|
360069
360210
|
emitProgress({
|
|
360070
360211
|
type: "council_progress",
|
|
360071
360212
|
phase: "debating",
|
|
360072
360213
|
currentRound: 1,
|
|
360073
|
-
maxRounds,
|
|
360214
|
+
maxRounds: minRounds,
|
|
360074
360215
|
completedRounds: []
|
|
360075
360216
|
});
|
|
360076
360217
|
const result = await runCouncilTribunal({
|
|
360077
360218
|
enrichedPrompt,
|
|
360078
360219
|
packId: input.pack ?? "default",
|
|
360079
|
-
minRounds
|
|
360220
|
+
minRounds,
|
|
360080
360221
|
maxRounds,
|
|
360081
360222
|
customPersonas: input.custom_personas,
|
|
360082
360223
|
signal,
|
|
360083
|
-
onRoundComplete: (round2) => {
|
|
360224
|
+
onRoundComplete: (round2, extraRoundsInvoked) => {
|
|
360084
360225
|
completedRoundSnapshots.push({
|
|
360085
360226
|
roundNumber: round2.roundNumber,
|
|
360086
360227
|
opinions: round2.opinions.map((op) => ({
|
|
@@ -360090,13 +360231,26 @@ var init_CouncilTool = __esm(() => {
|
|
|
360090
360231
|
opinion: op.opinion
|
|
360091
360232
|
}))
|
|
360092
360233
|
});
|
|
360234
|
+
if (extraRoundsInvoked && round2.roundNumber === minRounds + 1) {
|
|
360235
|
+
emitProgress({
|
|
360236
|
+
type: "council_progress",
|
|
360237
|
+
phase: "extra_rounds",
|
|
360238
|
+
currentRound: round2.roundNumber,
|
|
360239
|
+
maxRounds,
|
|
360240
|
+
extraRoundsInvoked: true,
|
|
360241
|
+
completedRounds: [...completedRoundSnapshots]
|
|
360242
|
+
});
|
|
360243
|
+
return;
|
|
360244
|
+
}
|
|
360245
|
+
const displayMax = extraRoundsInvoked ? maxRounds : minRounds;
|
|
360093
360246
|
const nextRound = round2.roundNumber + 1;
|
|
360094
|
-
if (nextRound <=
|
|
360247
|
+
if (nextRound <= displayMax) {
|
|
360095
360248
|
emitProgress({
|
|
360096
360249
|
type: "council_progress",
|
|
360097
360250
|
phase: "debating",
|
|
360098
360251
|
currentRound: nextRound,
|
|
360099
|
-
maxRounds,
|
|
360252
|
+
maxRounds: displayMax,
|
|
360253
|
+
extraRoundsInvoked: !!extraRoundsInvoked,
|
|
360100
360254
|
completedRounds: [...completedRoundSnapshots]
|
|
360101
360255
|
});
|
|
360102
360256
|
}
|
|
@@ -360105,7 +360259,8 @@ var init_CouncilTool = __esm(() => {
|
|
|
360105
360259
|
emitProgress({
|
|
360106
360260
|
type: "council_progress",
|
|
360107
360261
|
phase: "synthesizing",
|
|
360108
|
-
maxRounds,
|
|
360262
|
+
maxRounds: result.totalRounds,
|
|
360263
|
+
extraRoundsInvoked: result.rounds.length > minRounds,
|
|
360109
360264
|
completedRounds: completedRoundSnapshots
|
|
360110
360265
|
});
|
|
360111
360266
|
return {
|
|
@@ -378198,7 +378353,7 @@ function getAnthropicEnvMetadata() {
|
|
|
378198
378353
|
function getBuildAgeMinutes() {
|
|
378199
378354
|
if (false)
|
|
378200
378355
|
;
|
|
378201
|
-
const buildTime = new Date("2026-05-
|
|
378356
|
+
const buildTime = new Date("2026-05-22T14:30:48.592Z").getTime();
|
|
378202
378357
|
if (isNaN(buildTime))
|
|
378203
378358
|
return;
|
|
378204
378359
|
return Math.floor((Date.now() - buildTime) / 60000);
|
|
@@ -405681,7 +405836,7 @@ async function setupSdkMcpClients(sdkMcpConfigs, sendMcpMessage) {
|
|
|
405681
405836
|
const client2 = new Client({
|
|
405682
405837
|
name: "claude-code",
|
|
405683
405838
|
title: "ZeroCLI",
|
|
405684
|
-
version: "1.0.
|
|
405839
|
+
version: "1.0.5",
|
|
405685
405840
|
description: "Anthropic's agentic coding tool",
|
|
405686
405841
|
websiteUrl: PRODUCT_URL
|
|
405687
405842
|
}, {
|
|
@@ -406033,7 +406188,7 @@ var init_client7 = __esm(() => {
|
|
|
406033
406188
|
const client2 = new Client({
|
|
406034
406189
|
name: "claude-code",
|
|
406035
406190
|
title: "ZeroCLI",
|
|
406036
|
-
version: "1.0.
|
|
406191
|
+
version: "1.0.5",
|
|
406037
406192
|
description: "Anthropic's agentic coding tool",
|
|
406038
406193
|
websiteUrl: PRODUCT_URL
|
|
406039
406194
|
}, {
|
|
@@ -416768,7 +416923,7 @@ function Feedback({
|
|
|
416768
416923
|
platform: env2.platform,
|
|
416769
416924
|
gitRepo: envInfo.isGit,
|
|
416770
416925
|
terminal: env2.terminal,
|
|
416771
|
-
version: "1.0.
|
|
416926
|
+
version: "1.0.5",
|
|
416772
416927
|
transcript: normalizeMessagesForAPI(messages),
|
|
416773
416928
|
errors: sanitizedErrors,
|
|
416774
416929
|
lastApiRequest: getLastAPIRequest(),
|
|
@@ -416961,7 +417116,7 @@ function Feedback({
|
|
|
416961
417116
|
", ",
|
|
416962
417117
|
env2.terminal,
|
|
416963
417118
|
", v",
|
|
416964
|
-
"1.0.
|
|
417119
|
+
"1.0.5"
|
|
416965
417120
|
]
|
|
416966
417121
|
})
|
|
416967
417122
|
]
|
|
@@ -417069,7 +417224,7 @@ ${sanitizedDescription}
|
|
|
417069
417224
|
` + `**Environment Info**
|
|
417070
417225
|
` + `- Platform: ${env2.platform}
|
|
417071
417226
|
` + `- Terminal: ${env2.terminal}
|
|
417072
|
-
` + `- Version: ${"1.0.
|
|
417227
|
+
` + `- Version: ${"1.0.5"}
|
|
417073
417228
|
` + feedbackIdLine + `
|
|
417074
417229
|
**Errors**
|
|
417075
417230
|
\`\`\`json
|
|
@@ -420222,7 +420377,7 @@ function buildPrimarySection() {
|
|
|
420222
420377
|
});
|
|
420223
420378
|
return [{
|
|
420224
420379
|
label: "Version",
|
|
420225
|
-
value: "1.0.
|
|
420380
|
+
value: "1.0.5"
|
|
420226
420381
|
}, {
|
|
420227
420382
|
label: "Session name",
|
|
420228
420383
|
value: nameValue
|
|
@@ -424992,7 +425147,7 @@ function Config({
|
|
|
424992
425147
|
}
|
|
424993
425148
|
})
|
|
424994
425149
|
}) : showSubmenu === "ChannelDowngrade" ? /* @__PURE__ */ jsx_runtime183.jsx(ChannelDowngradeDialog, {
|
|
424995
|
-
currentVersion: "1.0.
|
|
425150
|
+
currentVersion: "1.0.5",
|
|
424996
425151
|
onChoice: (choice) => {
|
|
424997
425152
|
setShowSubmenu(null);
|
|
424998
425153
|
setTabsHidden(false);
|
|
@@ -425004,7 +425159,7 @@ function Config({
|
|
|
425004
425159
|
autoUpdatesChannel: "stable"
|
|
425005
425160
|
};
|
|
425006
425161
|
if (choice === "stay") {
|
|
425007
|
-
newSettings.minimumVersion = "1.0.
|
|
425162
|
+
newSettings.minimumVersion = "1.0.5";
|
|
425008
425163
|
}
|
|
425009
425164
|
updateSettingsForSource("userSettings", newSettings);
|
|
425010
425165
|
setSettingsData((prev_27) => ({
|
|
@@ -431988,7 +432143,7 @@ function UpdateScreen({ onDone }) {
|
|
|
431988
432143
|
setState({ type: "dev-build" });
|
|
431989
432144
|
return;
|
|
431990
432145
|
}
|
|
431991
|
-
const currentVersion = "1.0.
|
|
432146
|
+
const currentVersion = "1.0.5";
|
|
431992
432147
|
const channel2 = getInitialSettings()?.autoUpdatesChannel ?? "latest";
|
|
431993
432148
|
const latestVersion = await getLatestVersion(channel2);
|
|
431994
432149
|
if (!latestVersion) {
|
|
@@ -434099,7 +434254,7 @@ function HelpV2(t0) {
|
|
|
434099
434254
|
let t6;
|
|
434100
434255
|
if ($2[31] !== tabs) {
|
|
434101
434256
|
t6 = /* @__PURE__ */ jsx_runtime213.jsx(Tabs, {
|
|
434102
|
-
title: `ZeroCLI v${"1.0.
|
|
434257
|
+
title: `ZeroCLI v${"1.0.5"}`,
|
|
434103
434258
|
color: "professionalBlue",
|
|
434104
434259
|
defaultTab: "general",
|
|
434105
434260
|
children: tabs
|
|
@@ -458943,7 +459098,7 @@ function getAllReleaseNotes(changelogContent = getStoredChangelogFromMemory()) {
|
|
|
458943
459098
|
return [];
|
|
458944
459099
|
}
|
|
458945
459100
|
}
|
|
458946
|
-
async function checkForReleaseNotes(lastSeenVersion, currentVersion = "1.0.
|
|
459101
|
+
async function checkForReleaseNotes(lastSeenVersion, currentVersion = "1.0.5") {
|
|
458947
459102
|
if (process.env.USER_TYPE === "ant") {
|
|
458948
459103
|
const changelog = MACRO.VERSION_CHANGELOG;
|
|
458949
459104
|
if (changelog) {
|
|
@@ -487981,7 +488136,7 @@ async function captureMemoryDiagnostics(trigger, dumpNumber = 0) {
|
|
|
487981
488136
|
smapsRollup,
|
|
487982
488137
|
platform: process.platform,
|
|
487983
488138
|
nodeVersion: process.version,
|
|
487984
|
-
ccVersion: "1.0.
|
|
488139
|
+
ccVersion: "1.0.5"
|
|
487985
488140
|
};
|
|
487986
488141
|
}
|
|
487987
488142
|
async function performHeapDump(trigger = "manual", dumpNumber = 0) {
|
|
@@ -488568,7 +488723,7 @@ var init_bridge_kick = __esm(() => {
|
|
|
488568
488723
|
var call60 = async () => {
|
|
488569
488724
|
return {
|
|
488570
488725
|
type: "text",
|
|
488571
|
-
value: `${"1.0.
|
|
488726
|
+
value: `${"1.0.5"} (built ${"2026-05-22T14:30:48.592Z"})`
|
|
488572
488727
|
};
|
|
488573
488728
|
}, version2, version_default;
|
|
488574
488729
|
var init_version = __esm(() => {
|
|
@@ -498725,7 +498880,7 @@ function generateHtmlReport(data, insights) {
|
|
|
498725
498880
|
function buildExportData(data, insights, facets) {
|
|
498726
498881
|
let version3;
|
|
498727
498882
|
try {
|
|
498728
|
-
version3 = "1.0.
|
|
498883
|
+
version3 = "1.0.5";
|
|
498729
498884
|
} catch {
|
|
498730
498885
|
version3 = "unknown";
|
|
498731
498886
|
}
|
|
@@ -502923,7 +503078,7 @@ var init_sessionStorage = __esm(() => {
|
|
|
502923
503078
|
init_slowOperations();
|
|
502924
503079
|
init_uuid();
|
|
502925
503080
|
try {
|
|
502926
|
-
VERSION7 = "1.0.
|
|
503081
|
+
VERSION7 = "1.0.5";
|
|
502927
503082
|
} catch {
|
|
502928
503083
|
VERSION7 = "unknown";
|
|
502929
503084
|
}
|
|
@@ -504244,7 +504399,7 @@ var init_filesystem = __esm(() => {
|
|
|
504244
504399
|
});
|
|
504245
504400
|
getBundledSkillsRoot = memoize_default(function getBundledSkillsRoot2() {
|
|
504246
504401
|
const nonce = randomBytes17(16).toString("hex");
|
|
504247
|
-
return join137(getZeroTempDir(), "bundled-skills", "1.0.
|
|
504402
|
+
return join137(getZeroTempDir(), "bundled-skills", "1.0.5", nonce);
|
|
504248
504403
|
});
|
|
504249
504404
|
getResolvedWorkingDirPaths = memoize_default(getPathsForPermissionCheck);
|
|
504250
504405
|
});
|
|
@@ -515264,7 +515419,7 @@ function buildSystemInitMessage(inputs) {
|
|
|
515264
515419
|
slash_commands: inputs.commands.filter((c6) => c6.userInvocable !== false).map((c6) => c6.name),
|
|
515265
515420
|
apiKeySource: getAnthropicApiKeyWithSource().source,
|
|
515266
515421
|
betas: getSdkBetas(),
|
|
515267
|
-
claude_code_version: "1.0.
|
|
515422
|
+
claude_code_version: "1.0.5",
|
|
515268
515423
|
output_style: outputStyle2,
|
|
515269
515424
|
agents: inputs.agents.map((agent2) => agent2.agentType),
|
|
515270
515425
|
skills: inputs.skills.filter((s) => s.userInvocable !== false).map((skill) => skill.name),
|
|
@@ -530579,7 +530734,7 @@ var init_useVoiceEnabled = __esm(() => {
|
|
|
530579
530734
|
function getSemverPart(version3) {
|
|
530580
530735
|
return `${import_semver12.major(version3, { loose: true })}.${import_semver12.minor(version3, { loose: true })}.${import_semver12.patch(version3, { loose: true })}`;
|
|
530581
530736
|
}
|
|
530582
|
-
function useUpdateNotification(updatedVersion, initialVersion = "1.0.
|
|
530737
|
+
function useUpdateNotification(updatedVersion, initialVersion = "1.0.5") {
|
|
530583
530738
|
const [lastNotifiedSemver, setLastNotifiedSemver] = import_react226.useState(() => getSemverPart(initialVersion));
|
|
530584
530739
|
if (!updatedVersion) {
|
|
530585
530740
|
return null;
|
|
@@ -530622,7 +530777,7 @@ function AutoUpdater({
|
|
|
530622
530777
|
return;
|
|
530623
530778
|
}
|
|
530624
530779
|
if (false) {}
|
|
530625
|
-
const currentVersion = "1.0.
|
|
530780
|
+
const currentVersion = "1.0.5";
|
|
530626
530781
|
const channel2 = getInitialSettings()?.autoUpdatesChannel ?? "latest";
|
|
530627
530782
|
let latestVersion = await getLatestVersion(channel2);
|
|
530628
530783
|
const isDisabled = isAutoUpdaterDisabled();
|
|
@@ -530843,12 +530998,12 @@ function NativeAutoUpdater({
|
|
|
530843
530998
|
logEvent("tengu_native_auto_updater_start", {});
|
|
530844
530999
|
try {
|
|
530845
531000
|
const maxVersion = await getMaxVersion();
|
|
530846
|
-
if (maxVersion && gt("1.0.
|
|
531001
|
+
if (maxVersion && gt("1.0.5", maxVersion)) {
|
|
530847
531002
|
const msg = await getMaxVersionMessage();
|
|
530848
531003
|
setMaxVersionIssue(msg ?? "affects your version");
|
|
530849
531004
|
}
|
|
530850
531005
|
const result = await installLatest(channel2);
|
|
530851
|
-
const currentVersion = "1.0.
|
|
531006
|
+
const currentVersion = "1.0.5";
|
|
530852
531007
|
const latencyMs = Date.now() - startTime2;
|
|
530853
531008
|
if (result.lockFailed) {
|
|
530854
531009
|
logEvent("tengu_native_auto_updater_lock_contention", {
|
|
@@ -530990,17 +531145,17 @@ function PackageManagerAutoUpdater(t0) {
|
|
|
530990
531145
|
const maxVersion = await getMaxVersion();
|
|
530991
531146
|
if (maxVersion && latest && gt(latest, maxVersion)) {
|
|
530992
531147
|
logForDebugging(`PackageManagerAutoUpdater: maxVersion ${maxVersion} is set, capping update from ${latest} to ${maxVersion}`);
|
|
530993
|
-
if (gte("1.0.
|
|
530994
|
-
logForDebugging(`PackageManagerAutoUpdater: current version ${"1.0.
|
|
531148
|
+
if (gte("1.0.5", maxVersion)) {
|
|
531149
|
+
logForDebugging(`PackageManagerAutoUpdater: current version ${"1.0.5"} is already at or above maxVersion ${maxVersion}, skipping update`);
|
|
530995
531150
|
setUpdateAvailable(false);
|
|
530996
531151
|
return;
|
|
530997
531152
|
}
|
|
530998
531153
|
latest = maxVersion;
|
|
530999
531154
|
}
|
|
531000
|
-
const hasUpdate = latest && !gte("1.0.
|
|
531155
|
+
const hasUpdate = latest && !gte("1.0.5", latest) && !shouldSkipVersion(latest);
|
|
531001
531156
|
setUpdateAvailable(!!hasUpdate);
|
|
531002
531157
|
if (hasUpdate) {
|
|
531003
|
-
logForDebugging(`PackageManagerAutoUpdater: Update available ${"1.0.
|
|
531158
|
+
logForDebugging(`PackageManagerAutoUpdater: Update available ${"1.0.5"} -> ${latest}`);
|
|
531004
531159
|
}
|
|
531005
531160
|
};
|
|
531006
531161
|
$2[0] = t1;
|
|
@@ -531034,7 +531189,7 @@ function PackageManagerAutoUpdater(t0) {
|
|
|
531034
531189
|
wrap: "truncate",
|
|
531035
531190
|
children: [
|
|
531036
531191
|
"currentVersion: ",
|
|
531037
|
-
"1.0.
|
|
531192
|
+
"1.0.5"
|
|
531038
531193
|
]
|
|
531039
531194
|
});
|
|
531040
531195
|
$2[3] = verbose;
|
|
@@ -540090,7 +540245,7 @@ function buildStatusLineCommandInput(permissionMode, exceeds200kTokens, settings
|
|
|
540090
540245
|
project_dir: getOriginalCwd(),
|
|
540091
540246
|
added_dirs: addedDirs
|
|
540092
540247
|
},
|
|
540093
|
-
version: "1.0.
|
|
540248
|
+
version: "1.0.5",
|
|
540094
540249
|
output_style: {
|
|
540095
540250
|
name: outputStyleName
|
|
540096
540251
|
},
|
|
@@ -564593,7 +564748,7 @@ function WelcomeV2() {
|
|
|
564593
564748
|
dimColor: true,
|
|
564594
564749
|
children: [
|
|
564595
564750
|
"v",
|
|
564596
|
-
"1.0.
|
|
564751
|
+
"1.0.5",
|
|
564597
564752
|
" "
|
|
564598
564753
|
]
|
|
564599
564754
|
})
|
|
@@ -564827,7 +564982,7 @@ function WelcomeV2() {
|
|
|
564827
564982
|
dimColor: true,
|
|
564828
564983
|
children: [
|
|
564829
564984
|
"v",
|
|
564830
|
-
"1.0.
|
|
564985
|
+
"1.0.5",
|
|
564831
564986
|
" "
|
|
564832
564987
|
]
|
|
564833
564988
|
})
|
|
@@ -565074,7 +565229,7 @@ function AppleTerminalWelcomeV2(t0) {
|
|
|
565074
565229
|
dimColor: true,
|
|
565075
565230
|
children: [
|
|
565076
565231
|
"v",
|
|
565077
|
-
"1.0.
|
|
565232
|
+
"1.0.5",
|
|
565078
565233
|
" "
|
|
565079
565234
|
]
|
|
565080
565235
|
});
|
|
@@ -565347,7 +565502,7 @@ function AppleTerminalWelcomeV2(t0) {
|
|
|
565347
565502
|
dimColor: true,
|
|
565348
565503
|
children: [
|
|
565349
565504
|
"v",
|
|
565350
|
-
"1.0.
|
|
565505
|
+
"1.0.5",
|
|
565351
565506
|
" "
|
|
565352
565507
|
]
|
|
565353
565508
|
});
|
|
@@ -566859,7 +567014,7 @@ function completeOnboarding() {
|
|
|
566859
567014
|
saveGlobalConfig((current) => ({
|
|
566860
567015
|
...current,
|
|
566861
567016
|
hasCompletedOnboarding: true,
|
|
566862
|
-
lastOnboardingVersion: "1.0.
|
|
567017
|
+
lastOnboardingVersion: "1.0.5"
|
|
566863
567018
|
}));
|
|
566864
567019
|
}
|
|
566865
567020
|
function showDialog(root2, renderer) {
|
|
@@ -571110,7 +571265,7 @@ function appendToLog(path24, message) {
|
|
|
571110
571265
|
cwd: getFsImplementation().cwd(),
|
|
571111
571266
|
userType: process.env.USER_TYPE,
|
|
571112
571267
|
sessionId: getSessionId(),
|
|
571113
|
-
version: "1.0.
|
|
571268
|
+
version: "1.0.5"
|
|
571114
571269
|
};
|
|
571115
571270
|
getLogWriter(path24).write(messageWithTimestamp);
|
|
571116
571271
|
}
|
|
@@ -571716,7 +571871,7 @@ async function startMCPServer(cwd2, debug, verbose) {
|
|
|
571716
571871
|
setCwd(cwd2);
|
|
571717
571872
|
const server = new Server({
|
|
571718
571873
|
name: "claude/tengu",
|
|
571719
|
-
version: "1.0.
|
|
571874
|
+
version: "1.0.5"
|
|
571720
571875
|
}, {
|
|
571721
571876
|
capabilities: {
|
|
571722
571877
|
tools: {}
|
|
@@ -576355,8 +576510,8 @@ async function getEnvLessBridgeConfig() {
|
|
|
576355
576510
|
}
|
|
576356
576511
|
async function checkEnvLessBridgeMinVersion() {
|
|
576357
576512
|
const cfg = await getEnvLessBridgeConfig();
|
|
576358
|
-
if (cfg.min_version && lt("1.0.
|
|
576359
|
-
return `Your version of ZeroCLI (${"1.0.
|
|
576513
|
+
if (cfg.min_version && lt("1.0.5", cfg.min_version)) {
|
|
576514
|
+
return `Your version of ZeroCLI (${"1.0.5"}) is too old for Remote Control.
|
|
576360
576515
|
Version ${cfg.min_version} or higher is required. Run \`zero update\` to update.`;
|
|
576361
576516
|
}
|
|
576362
576517
|
return null;
|
|
@@ -576831,7 +576986,7 @@ async function initBridgeCore(params) {
|
|
|
576831
576986
|
const rawApi = createBridgeApiClient({
|
|
576832
576987
|
baseUrl,
|
|
576833
576988
|
getAccessToken,
|
|
576834
|
-
runnerVersion: "1.0.
|
|
576989
|
+
runnerVersion: "1.0.5",
|
|
576835
576990
|
onDebug: logForDebugging,
|
|
576836
576991
|
onAuth401,
|
|
576837
576992
|
getTrustedDeviceToken
|
|
@@ -583119,7 +583274,7 @@ __export(exports_update2, {
|
|
|
583119
583274
|
});
|
|
583120
583275
|
async function update2() {
|
|
583121
583276
|
logEvent("tengu_update_check", {});
|
|
583122
|
-
writeToStdout(`Current version: ${"1.0.
|
|
583277
|
+
writeToStdout(`Current version: ${"1.0.5"}
|
|
583123
583278
|
`);
|
|
583124
583279
|
const channel2 = getInitialSettings()?.autoUpdatesChannel ?? "latest";
|
|
583125
583280
|
writeToStdout(`Checking for updates to ${channel2} version...
|
|
@@ -583194,8 +583349,8 @@ async function update2() {
|
|
|
583194
583349
|
writeToStdout(`Zero is managed by Homebrew.
|
|
583195
583350
|
`);
|
|
583196
583351
|
const latest = await getLatestVersion(channel2);
|
|
583197
|
-
if (latest && !gte("1.0.
|
|
583198
|
-
writeToStdout(`Update available: ${"1.0.
|
|
583352
|
+
if (latest && !gte("1.0.5", latest)) {
|
|
583353
|
+
writeToStdout(`Update available: ${"1.0.5"} → ${latest}
|
|
583199
583354
|
`);
|
|
583200
583355
|
writeToStdout(`
|
|
583201
583356
|
`);
|
|
@@ -583211,8 +583366,8 @@ async function update2() {
|
|
|
583211
583366
|
writeToStdout(`Zero is managed by winget.
|
|
583212
583367
|
`);
|
|
583213
583368
|
const latest = await getLatestVersion(channel2);
|
|
583214
|
-
if (latest && !gte("1.0.
|
|
583215
|
-
writeToStdout(`Update available: ${"1.0.
|
|
583369
|
+
if (latest && !gte("1.0.5", latest)) {
|
|
583370
|
+
writeToStdout(`Update available: ${"1.0.5"} → ${latest}
|
|
583216
583371
|
`);
|
|
583217
583372
|
writeToStdout(`
|
|
583218
583373
|
`);
|
|
@@ -583228,8 +583383,8 @@ async function update2() {
|
|
|
583228
583383
|
writeToStdout(`Zero is managed by apk.
|
|
583229
583384
|
`);
|
|
583230
583385
|
const latest = await getLatestVersion(channel2);
|
|
583231
|
-
if (latest && !gte("1.0.
|
|
583232
|
-
writeToStdout(`Update available: ${"1.0.
|
|
583386
|
+
if (latest && !gte("1.0.5", latest)) {
|
|
583387
|
+
writeToStdout(`Update available: ${"1.0.5"} → ${latest}
|
|
583233
583388
|
`);
|
|
583234
583389
|
writeToStdout(`
|
|
583235
583390
|
`);
|
|
@@ -583294,11 +583449,11 @@ async function update2() {
|
|
|
583294
583449
|
`);
|
|
583295
583450
|
await gracefulShutdown(1);
|
|
583296
583451
|
}
|
|
583297
|
-
if (result.latestVersion === "1.0.
|
|
583298
|
-
writeToStdout(source_default.green(`Zero CLI is up to date (${"1.0.
|
|
583452
|
+
if (result.latestVersion === "1.0.5") {
|
|
583453
|
+
writeToStdout(source_default.green(`Zero CLI is up to date (${"1.0.5"})`) + `
|
|
583299
583454
|
`);
|
|
583300
583455
|
} else {
|
|
583301
|
-
writeToStdout(source_default.green(`Successfully updated from ${"1.0.
|
|
583456
|
+
writeToStdout(source_default.green(`Successfully updated from ${"1.0.5"} to version ${result.latestVersion}`) + `
|
|
583302
583457
|
`);
|
|
583303
583458
|
await regenerateCompletionCache();
|
|
583304
583459
|
}
|
|
@@ -583358,12 +583513,12 @@ async function update2() {
|
|
|
583358
583513
|
`);
|
|
583359
583514
|
await gracefulShutdown(1);
|
|
583360
583515
|
}
|
|
583361
|
-
if (latestVersion === "1.0.
|
|
583362
|
-
writeToStdout(source_default.green(`Zero CLI is up to date (${"1.0.
|
|
583516
|
+
if (latestVersion === "1.0.5") {
|
|
583517
|
+
writeToStdout(source_default.green(`Zero CLI is up to date (${"1.0.5"})`) + `
|
|
583363
583518
|
`);
|
|
583364
583519
|
await gracefulShutdown(0);
|
|
583365
583520
|
}
|
|
583366
|
-
writeToStdout(`New version available: ${latestVersion} (current: ${"1.0.
|
|
583521
|
+
writeToStdout(`New version available: ${latestVersion} (current: ${"1.0.5"})
|
|
583367
583522
|
`);
|
|
583368
583523
|
writeToStdout(`Installing update...
|
|
583369
583524
|
`);
|
|
@@ -583408,7 +583563,7 @@ async function update2() {
|
|
|
583408
583563
|
logForDebugging(`update: Installation status: ${status2}`);
|
|
583409
583564
|
switch (status2) {
|
|
583410
583565
|
case "success":
|
|
583411
|
-
writeToStdout(source_default.green(`Successfully updated from ${"1.0.
|
|
583566
|
+
writeToStdout(source_default.green(`Successfully updated from ${"1.0.5"} to version ${latestVersion}`) + `
|
|
583412
583567
|
`);
|
|
583413
583568
|
await regenerateCompletionCache();
|
|
583414
583569
|
break;
|
|
@@ -584709,7 +584864,7 @@ ${customInstructions}` : customInstructions;
|
|
|
584709
584864
|
}
|
|
584710
584865
|
}
|
|
584711
584866
|
logForDiagnosticsNoPII("info", "started", {
|
|
584712
|
-
version: "1.0.
|
|
584867
|
+
version: "1.0.5",
|
|
584713
584868
|
is_native_binary: isInBundledMode()
|
|
584714
584869
|
});
|
|
584715
584870
|
registerCleanup(async () => {
|
|
@@ -585592,7 +585747,7 @@ Usage: claude --remote "your task description"`, () => gracefulShutdown(1));
|
|
|
585592
585747
|
pendingHookMessages
|
|
585593
585748
|
}, renderAndRun);
|
|
585594
585749
|
}
|
|
585595
|
-
}).version("1.0.
|
|
585750
|
+
}).version("1.0.5", "-v, --version", "Output the version number");
|
|
585596
585751
|
program2.option("-w, --worktree [name]", "Create a new git worktree for this session (optionally specify a name)");
|
|
585597
585752
|
program2.option("--tmux", "Create a tmux session for the worktree (requires --worktree). Uses iTerm2 native panes when available; use --tmux=classic for traditional tmux.");
|
|
585598
585753
|
if (canUserConfigureAdvisor()) {
|
|
@@ -586258,7 +586413,7 @@ if (false) {}
|
|
|
586258
586413
|
async function main2() {
|
|
586259
586414
|
const args = process.argv.slice(2);
|
|
586260
586415
|
if (args.length === 1 && (args[0] === "--version" || args[0] === "-v" || args[0] === "-V")) {
|
|
586261
|
-
console.log(`${"1.0.
|
|
586416
|
+
console.log(`${"1.0.5"} (ZeroCLI)`);
|
|
586262
586417
|
return;
|
|
586263
586418
|
}
|
|
586264
586419
|
if (args.includes("--provider")) {
|
|
@@ -586400,4 +586555,4 @@ async function main2() {
|
|
|
586400
586555
|
}
|
|
586401
586556
|
main2();
|
|
586402
586557
|
|
|
586403
|
-
//# debugId=
|
|
586558
|
+
//# debugId=CADD2DC0575D635264756E2164756E21
|