vivus-agent 1.1.14 → 1.1.16
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/main.js +103 -94
- package/package.json +1 -1
package/dist/main.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env -S node --max-old-space-size=8192 --expose-gc
|
|
2
2
|
// Vivus CLI — local AI coding agent
|
|
3
|
-
// Built from source at 2026-06-
|
|
3
|
+
// Built from source at 2026-06-19T16:23:42.976Z
|
|
4
4
|
import { createRequire } from "node:module";
|
|
5
5
|
var __create = Object.create;
|
|
6
6
|
var __getProtoOf = Object.getPrototypeOf;
|
|
@@ -116016,7 +116016,7 @@ var init_auth = __esm(() => {
|
|
|
116016
116016
|
|
|
116017
116017
|
// src/utils/userAgent.ts
|
|
116018
116018
|
function getVivusCodeUserAgent() {
|
|
116019
|
-
return `vivus/${"1.1.
|
|
116019
|
+
return `vivus/${"1.1.16+6d460d2"}`;
|
|
116020
116020
|
}
|
|
116021
116021
|
|
|
116022
116022
|
// src/utils/workloadContext.ts
|
|
@@ -116038,7 +116038,7 @@ function getUserAgent() {
|
|
|
116038
116038
|
const clientApp = process.env.VIVUS_AGENT_SDK_CLIENT_APP ? `, client-app/${process.env.VIVUS_AGENT_SDK_CLIENT_APP}` : "";
|
|
116039
116039
|
const workload = getWorkload();
|
|
116040
116040
|
const workloadSuffix = workload ? `, workload/${workload}` : "";
|
|
116041
|
-
return `vivus-cli/${"1.1.
|
|
116041
|
+
return `vivus-cli/${"1.1.16+6d460d2"} (${process.env.USER_TYPE}, ${process.env.VIVUS_CODE_ENTRYPOINT ?? "cli"}${agentSdkVersion}${clientApp}${workloadSuffix})`;
|
|
116042
116042
|
}
|
|
116043
116043
|
function getMCPUserAgent() {
|
|
116044
116044
|
const parts = [];
|
|
@@ -116052,7 +116052,7 @@ function getMCPUserAgent() {
|
|
|
116052
116052
|
parts.push(`client-app/${process.env.VIVUS_AGENT_SDK_CLIENT_APP}`);
|
|
116053
116053
|
}
|
|
116054
116054
|
const suffix = parts.length > 0 ? ` (${parts.join(", ")})` : "";
|
|
116055
|
-
return `vivus/${"1.1.
|
|
116055
|
+
return `vivus/${"1.1.16+6d460d2"}${suffix}`;
|
|
116056
116056
|
}
|
|
116057
116057
|
function getWebFetchUserAgent() {
|
|
116058
116058
|
return `Vivus-User (${getVivusCodeUserAgent()}; +https://support.anthropic.com/)`;
|
|
@@ -116190,7 +116190,7 @@ var init_user = __esm(() => {
|
|
|
116190
116190
|
deviceId,
|
|
116191
116191
|
sessionId: getSessionId(),
|
|
116192
116192
|
email: getEmail(),
|
|
116193
|
-
appVersion: "1.1.
|
|
116193
|
+
appVersion: "1.1.16+6d460d2",
|
|
116194
116194
|
platform: getHostPlatformForAnalytics(),
|
|
116195
116195
|
organizationUuid,
|
|
116196
116196
|
accountUuid,
|
|
@@ -127856,7 +127856,7 @@ var init_metadata = __esm(() => {
|
|
|
127856
127856
|
COMPOUND_OPERATOR_REGEX = /\s*(?:&&|\|\||[;|])\s*/;
|
|
127857
127857
|
WHITESPACE_REGEX = /\s+/;
|
|
127858
127858
|
getVersionBase = memoize_default(() => {
|
|
127859
|
-
const match = "1.1.
|
|
127859
|
+
const match = "1.1.16+6d460d2".match(/^\d+\.\d+\.\d+(?:-[a-z]+)?/);
|
|
127860
127860
|
return match ? match[0] : undefined;
|
|
127861
127861
|
});
|
|
127862
127862
|
buildEnvContext = memoize_default(async () => {
|
|
@@ -127896,9 +127896,9 @@ var init_metadata = __esm(() => {
|
|
|
127896
127896
|
isGithubAction: isEnvTruthy(process.env.GITHUB_ACTIONS),
|
|
127897
127897
|
isVivusCodeAction: isEnvTruthy(process.env.VIVUS_CODE_ACTION),
|
|
127898
127898
|
isVivusAiAuth: isVivusAISubscriber(),
|
|
127899
|
-
version: "1.1.
|
|
127899
|
+
version: "1.1.16+6d460d2",
|
|
127900
127900
|
versionBase: getVersionBase(),
|
|
127901
|
-
buildTime: "2026-06-
|
|
127901
|
+
buildTime: "2026-06-19T16:23:42.456Z",
|
|
127902
127902
|
deploymentEnvironment: env2.detectDeploymentEnvironment(),
|
|
127903
127903
|
...isEnvTruthy(process.env.GITHUB_ACTIONS) && {
|
|
127904
127904
|
githubEventName: process.env.GITHUB_EVENT_NAME,
|
|
@@ -128566,7 +128566,7 @@ function initialize1PEventLogging() {
|
|
|
128566
128566
|
const platform2 = getPlatform();
|
|
128567
128567
|
const attributes = {
|
|
128568
128568
|
[import_semantic_conventions.ATTR_SERVICE_NAME]: "vivus",
|
|
128569
|
-
[import_semantic_conventions.ATTR_SERVICE_VERSION]: "1.1.
|
|
128569
|
+
[import_semantic_conventions.ATTR_SERVICE_VERSION]: "1.1.16+6d460d2"
|
|
128570
128570
|
};
|
|
128571
128571
|
if (platform2 === "wsl") {
|
|
128572
128572
|
const wslVersion = getWslVersion();
|
|
@@ -128593,7 +128593,7 @@ function initialize1PEventLogging() {
|
|
|
128593
128593
|
})
|
|
128594
128594
|
]
|
|
128595
128595
|
});
|
|
128596
|
-
firstPartyEventLogger = firstPartyEventLoggerProvider.getLogger("com.anthropic.vivus_code.events", "1.1.
|
|
128596
|
+
firstPartyEventLogger = firstPartyEventLoggerProvider.getLogger("com.anthropic.vivus_code.events", "1.1.16+6d460d2");
|
|
128597
128597
|
}
|
|
128598
128598
|
async function reinitialize1PEventLoggingIfConfigChanged() {
|
|
128599
128599
|
if (!is1PEventLoggingEnabled() || !firstPartyEventLoggerProvider) {
|
|
@@ -128713,7 +128713,8 @@ function hasGrowthBookEnvOverride(feature) {
|
|
|
128713
128713
|
return overrides !== null && feature in overrides;
|
|
128714
128714
|
}
|
|
128715
128715
|
function getConfigOverrides() {
|
|
128716
|
-
|
|
128716
|
+
const isVivusFirstParty = process.env.VIVUS_CODE_IS_FIRST_PARTY === "1";
|
|
128717
|
+
if (process.env.USER_TYPE !== "ant" && !isVivusFirstParty)
|
|
128717
128718
|
return;
|
|
128718
128719
|
try {
|
|
128719
128720
|
return getGlobalConfig().growthBookOverrides;
|
|
@@ -162705,7 +162706,7 @@ function getAttributionHeader(fingerprint) {
|
|
|
162705
162706
|
if (!isAttributionHeaderEnabled()) {
|
|
162706
162707
|
return "";
|
|
162707
162708
|
}
|
|
162708
|
-
const version2 = `${"1.1.
|
|
162709
|
+
const version2 = `${"1.1.16+6d460d2"}.${fingerprint}`;
|
|
162709
162710
|
const entrypoint = process.env.VIVUS_CODE_ENTRYPOINT ?? "unknown";
|
|
162710
162711
|
const cch = "";
|
|
162711
162712
|
const workload = getWorkload();
|
|
@@ -175868,7 +175869,7 @@ function getTelemetryAttributes() {
|
|
|
175868
175869
|
attributes["session.id"] = sessionId;
|
|
175869
175870
|
}
|
|
175870
175871
|
if (shouldIncludeAttribute("OTEL_METRICS_INCLUDE_VERSION")) {
|
|
175871
|
-
attributes["app.version"] = "1.1.
|
|
175872
|
+
attributes["app.version"] = "1.1.16+6d460d2";
|
|
175872
175873
|
}
|
|
175873
175874
|
const oauthAccount = getOauthAccountInfo();
|
|
175874
175875
|
if (oauthAccount) {
|
|
@@ -208540,7 +208541,6 @@ var init_exploreAgent = __esm(() => {
|
|
|
208540
208541
|
],
|
|
208541
208542
|
source: "built-in",
|
|
208542
208543
|
baseDir: "built-in",
|
|
208543
|
-
model: process.env.USER_TYPE === "ant" ? "inherit" : "haiku",
|
|
208544
208544
|
omitVivusMd: true,
|
|
208545
208545
|
getSystemPrompt: () => getExploreSystemPrompt()
|
|
208546
208546
|
};
|
|
@@ -242425,7 +242425,7 @@ function computeFingerprint(messageText, version2) {
|
|
|
242425
242425
|
}
|
|
242426
242426
|
function computeFingerprintFromMessages(messages) {
|
|
242427
242427
|
const firstMessageText = extractFirstMessageText(messages);
|
|
242428
|
-
return computeFingerprint(firstMessageText, "1.1.
|
|
242428
|
+
return computeFingerprint(firstMessageText, "1.1.16+6d460d2");
|
|
242429
242429
|
}
|
|
242430
242430
|
var FINGERPRINT_SALT = "59cf53e54c78";
|
|
242431
242431
|
var init_fingerprint = () => {};
|
|
@@ -242467,7 +242467,7 @@ async function sideQuery(opts) {
|
|
|
242467
242467
|
betas.push(STRUCTURED_OUTPUTS_BETA_HEADER);
|
|
242468
242468
|
}
|
|
242469
242469
|
const messageText = extractFirstUserMessageText(messages);
|
|
242470
|
-
const fingerprint = computeFingerprint(messageText, "1.1.
|
|
242470
|
+
const fingerprint = computeFingerprint(messageText, "1.1.16+6d460d2");
|
|
242471
242471
|
const attributionHeader = getAttributionHeader(fingerprint);
|
|
242472
242472
|
const systemBlocks = [
|
|
242473
242473
|
attributionHeader ? { type: "text", text: attributionHeader } : null,
|
|
@@ -243619,7 +243619,7 @@ async function setupSdkMcpClients(sdkMcpConfigs, sendMcpMessage) {
|
|
|
243619
243619
|
const client2 = new Client({
|
|
243620
243620
|
name: "vivus",
|
|
243621
243621
|
title: "Vivus",
|
|
243622
|
-
version: "1.1.
|
|
243622
|
+
version: "1.1.16+6d460d2",
|
|
243623
243623
|
description: "Anthropic's agentic coding tool",
|
|
243624
243624
|
websiteUrl: PRODUCT_URL
|
|
243625
243625
|
}, {
|
|
@@ -243973,7 +243973,7 @@ var init_client6 = __esm(() => {
|
|
|
243973
243973
|
const client2 = new Client({
|
|
243974
243974
|
name: "vivus",
|
|
243975
243975
|
title: "Vivus",
|
|
243976
|
-
version: "1.1.
|
|
243976
|
+
version: "1.1.16+6d460d2",
|
|
243977
243977
|
description: "Anthropic's agentic coding tool",
|
|
243978
243978
|
websiteUrl: PRODUCT_URL
|
|
243979
243979
|
}, {
|
|
@@ -246031,7 +246031,7 @@ function getInstallationEnv() {
|
|
|
246031
246031
|
return;
|
|
246032
246032
|
}
|
|
246033
246033
|
function getVivusCodeVersion() {
|
|
246034
|
-
return "1.1.
|
|
246034
|
+
return "1.1.16+6d460d2";
|
|
246035
246035
|
}
|
|
246036
246036
|
async function getInstalledVSCodeExtensionVersion(command) {
|
|
246037
246037
|
const { stdout } = await execFileNoThrow(command, ["--list-extensions", "--show-versions"], {
|
|
@@ -253333,6 +253333,10 @@ var init_registerFrontmatterHooks = __esm(() => {
|
|
|
253333
253333
|
|
|
253334
253334
|
// src/utils/model/agent.ts
|
|
253335
253335
|
function getDefaultSubagentModel() {
|
|
253336
|
+
const cloudSubagentModel = getFeatureValue_CACHED_MAY_BE_STALE("vivus_cloud_subagent_model", "");
|
|
253337
|
+
if (typeof cloudSubagentModel === "string" && cloudSubagentModel.trim()) {
|
|
253338
|
+
return cloudSubagentModel.trim();
|
|
253339
|
+
}
|
|
253336
253340
|
return "inherit";
|
|
253337
253341
|
}
|
|
253338
253342
|
function getAgentModel(agentModel, parentModel, toolSpecifiedModel, permissionMode) {
|
|
@@ -253418,6 +253422,7 @@ var init_agent = __esm(() => {
|
|
|
253418
253422
|
init_stringUtils();
|
|
253419
253423
|
init_aliases();
|
|
253420
253424
|
init_bedrock();
|
|
253425
|
+
init_growthbook();
|
|
253421
253426
|
init_model();
|
|
253422
253427
|
init_providers();
|
|
253423
253428
|
AGENT_MODEL_OPTIONS = [...MODEL_ALIASES, "inherit"];
|
|
@@ -278521,7 +278526,7 @@ async function initializeBetaTracing(resource) {
|
|
|
278521
278526
|
});
|
|
278522
278527
|
import_api_logs.logs.setGlobalLoggerProvider(loggerProvider);
|
|
278523
278528
|
setLoggerProvider(loggerProvider);
|
|
278524
|
-
const eventLogger = import_api_logs.logs.getLogger("com.anthropic.vivus_code.events", "1.1.
|
|
278529
|
+
const eventLogger = import_api_logs.logs.getLogger("com.anthropic.vivus_code.events", "1.1.16+6d460d2");
|
|
278525
278530
|
setEventLogger(eventLogger);
|
|
278526
278531
|
process.on("beforeExit", async () => {
|
|
278527
278532
|
await loggerProvider?.forceFlush();
|
|
@@ -278561,7 +278566,7 @@ async function initializeTelemetry() {
|
|
|
278561
278566
|
const platform5 = getPlatform();
|
|
278562
278567
|
const baseAttributes = {
|
|
278563
278568
|
[import_semantic_conventions2.ATTR_SERVICE_NAME]: "vivus",
|
|
278564
|
-
[import_semantic_conventions2.ATTR_SERVICE_VERSION]: "1.1.
|
|
278569
|
+
[import_semantic_conventions2.ATTR_SERVICE_VERSION]: "1.1.16+6d460d2"
|
|
278565
278570
|
};
|
|
278566
278571
|
if (platform5 === "wsl") {
|
|
278567
278572
|
const wslVersion = getWslVersion();
|
|
@@ -278606,7 +278611,7 @@ async function initializeTelemetry() {
|
|
|
278606
278611
|
} catch {}
|
|
278607
278612
|
};
|
|
278608
278613
|
registerCleanup(shutdownTelemetry2);
|
|
278609
|
-
return meterProvider2.getMeter("com.anthropic.vivus_code", "1.1.
|
|
278614
|
+
return meterProvider2.getMeter("com.anthropic.vivus_code", "1.1.16+6d460d2");
|
|
278610
278615
|
}
|
|
278611
278616
|
const meterProvider = new import_sdk_metrics2.MeterProvider({
|
|
278612
278617
|
resource,
|
|
@@ -278626,7 +278631,7 @@ async function initializeTelemetry() {
|
|
|
278626
278631
|
});
|
|
278627
278632
|
import_api_logs.logs.setGlobalLoggerProvider(loggerProvider);
|
|
278628
278633
|
setLoggerProvider(loggerProvider);
|
|
278629
|
-
const eventLogger = import_api_logs.logs.getLogger("com.anthropic.vivus_code.events", "1.1.
|
|
278634
|
+
const eventLogger = import_api_logs.logs.getLogger("com.anthropic.vivus_code.events", "1.1.16+6d460d2");
|
|
278630
278635
|
setEventLogger(eventLogger);
|
|
278631
278636
|
logForDebugging("[3P telemetry] Event logger set successfully");
|
|
278632
278637
|
process.on("beforeExit", async () => {
|
|
@@ -278688,7 +278693,7 @@ Current timeout: ${timeoutMs}ms
|
|
|
278688
278693
|
}
|
|
278689
278694
|
};
|
|
278690
278695
|
registerCleanup(shutdownTelemetry);
|
|
278691
|
-
return meterProvider.getMeter("com.anthropic.vivus_code", "1.1.
|
|
278696
|
+
return meterProvider.getMeter("com.anthropic.vivus_code", "1.1.16+6d460d2");
|
|
278692
278697
|
}
|
|
278693
278698
|
async function flushTelemetry() {
|
|
278694
278699
|
const meterProvider = getMeterProvider();
|
|
@@ -279374,9 +279379,9 @@ async function assertMinVersion() {
|
|
|
279374
279379
|
if (false) {}
|
|
279375
279380
|
try {
|
|
279376
279381
|
const versionConfig = await getDynamicConfig_BLOCKS_ON_INIT("tengu_version_config", { minVersion: "0.0.0" });
|
|
279377
|
-
if (versionConfig.minVersion && lt("1.1.
|
|
279382
|
+
if (versionConfig.minVersion && lt("1.1.16+6d460d2", versionConfig.minVersion)) {
|
|
279378
279383
|
console.error(`
|
|
279379
|
-
It looks like your version of Vivus (${"1.1.
|
|
279384
|
+
It looks like your version of Vivus (${"1.1.16+6d460d2"}) needs an update.
|
|
279380
279385
|
A newer version (${versionConfig.minVersion} or higher) is required to continue.
|
|
279381
279386
|
|
|
279382
279387
|
To update, please run:
|
|
@@ -279592,7 +279597,7 @@ async function installGlobalPackage(specificVersion) {
|
|
|
279592
279597
|
logError2(new AutoUpdaterError("Another process is currently installing an update"));
|
|
279593
279598
|
logEvent("tengu_auto_updater_lock_contention", {
|
|
279594
279599
|
pid: process.pid,
|
|
279595
|
-
currentVersion: "1.1.
|
|
279600
|
+
currentVersion: "1.1.16+6d460d2"
|
|
279596
279601
|
});
|
|
279597
279602
|
return "in_progress";
|
|
279598
279603
|
}
|
|
@@ -279601,7 +279606,7 @@ async function installGlobalPackage(specificVersion) {
|
|
|
279601
279606
|
if (!env2.isRunningWithBun() && env2.isNpmFromWindowsPath()) {
|
|
279602
279607
|
logError2(new Error("Windows NPM detected in WSL environment"));
|
|
279603
279608
|
logEvent("tengu_auto_updater_windows_npm_in_wsl", {
|
|
279604
|
-
currentVersion: "1.1.
|
|
279609
|
+
currentVersion: "1.1.16+6d460d2"
|
|
279605
279610
|
});
|
|
279606
279611
|
console.error(`
|
|
279607
279612
|
Error: Windows NPM detected in WSL
|
|
@@ -280134,7 +280139,7 @@ function detectLinuxGlobPatternWarnings() {
|
|
|
280134
280139
|
}
|
|
280135
280140
|
async function getDoctorDiagnostic() {
|
|
280136
280141
|
const installationType = await getCurrentInstallationType();
|
|
280137
|
-
const version2 = typeof MACRO !== "undefined" ? "1.1.
|
|
280142
|
+
const version2 = typeof MACRO !== "undefined" ? "1.1.16+6d460d2" : "unknown";
|
|
280138
280143
|
const installationPath = await getInstallationPath();
|
|
280139
280144
|
const invokedBinary = getInvokedBinary();
|
|
280140
280145
|
const multipleInstallations = await detectMultipleInstallations();
|
|
@@ -281067,8 +281072,8 @@ async function updateLatest(channelOrVersion, forceReinstall = false) {
|
|
|
281067
281072
|
const maxVersion = await getMaxVersion();
|
|
281068
281073
|
if (maxVersion && gt(version2, maxVersion)) {
|
|
281069
281074
|
logForDebugging(`Native installer: maxVersion ${maxVersion} is set, capping update from ${version2} to ${maxVersion}`);
|
|
281070
|
-
if (gte("1.1.
|
|
281071
|
-
logForDebugging(`Native installer: current version ${"1.1.
|
|
281075
|
+
if (gte("1.1.16+6d460d2", maxVersion)) {
|
|
281076
|
+
logForDebugging(`Native installer: current version ${"1.1.16+6d460d2"} is already at or above maxVersion ${maxVersion}, skipping update`);
|
|
281072
281077
|
logEvent("tengu_native_update_skipped_max_version", {
|
|
281073
281078
|
latency_ms: Date.now() - startTime,
|
|
281074
281079
|
max_version: maxVersion,
|
|
@@ -281079,7 +281084,7 @@ async function updateLatest(channelOrVersion, forceReinstall = false) {
|
|
|
281079
281084
|
version2 = maxVersion;
|
|
281080
281085
|
}
|
|
281081
281086
|
}
|
|
281082
|
-
if (!forceReinstall && version2 === "1.1.
|
|
281087
|
+
if (!forceReinstall && version2 === "1.1.16+6d460d2" && await versionIsAvailable(version2) && await isPossibleVivusBinary(executablePath)) {
|
|
281083
281088
|
logForDebugging(`Found ${version2} at ${executablePath}, skipping install`);
|
|
281084
281089
|
logEvent("tengu_native_update_complete", {
|
|
281085
281090
|
latency_ms: Date.now() - startTime,
|
|
@@ -330823,7 +330828,7 @@ async function analyzeContextUsage(messages, model, getToolPermissionContext, to
|
|
|
330823
330828
|
const skillFrontmatterTokens = skillInfo.skillFrontmatter.reduce((sum, skill) => sum + skill.tokens, 0);
|
|
330824
330829
|
const messageTokens = messageBreakdown.totalTokens;
|
|
330825
330830
|
const isAutoCompact = isAutoCompactEnabled();
|
|
330826
|
-
const autoCompactThreshold = isAutoCompact ?
|
|
330831
|
+
const autoCompactThreshold = isAutoCompact ? getAutoCompactThreshold(model) : undefined;
|
|
330827
330832
|
const cats = [];
|
|
330828
330833
|
if (systemPromptTokens > 0) {
|
|
330829
330834
|
cats.push({
|
|
@@ -332696,7 +332701,6 @@ var init_sessionMemoryCompact = __esm(() => {
|
|
|
332696
332701
|
|
|
332697
332702
|
// src/services/compact/autoCompact.ts
|
|
332698
332703
|
function getEffectiveContextWindowSize(model) {
|
|
332699
|
-
const reservedTokensForSummary = Math.min(getMaxOutputTokensForModel(model), MAX_OUTPUT_TOKENS_FOR_SUMMARY);
|
|
332700
332704
|
let contextWindow = getContextWindowForModel(model, getSdkBetas());
|
|
332701
332705
|
const autoCompactWindow = process.env.VIVUS_CODE_AUTO_COMPACT_WINDOW;
|
|
332702
332706
|
if (autoCompactWindow) {
|
|
@@ -332705,11 +332709,13 @@ function getEffectiveContextWindowSize(model) {
|
|
|
332705
332709
|
contextWindow = Math.min(contextWindow, parsed);
|
|
332706
332710
|
}
|
|
332707
332711
|
}
|
|
332712
|
+
const reservedTokensForSummary = Math.min(getMaxOutputTokensForModel(model), MAX_OUTPUT_TOKENS_FOR_SUMMARY, Math.floor(contextWindow * MAX_SUMMARY_RESERVE_RATIO));
|
|
332708
332713
|
return contextWindow - reservedTokensForSummary;
|
|
332709
332714
|
}
|
|
332710
332715
|
function getAutoCompactThreshold(model) {
|
|
332711
332716
|
const effectiveContextWindow = getEffectiveContextWindowSize(model);
|
|
332712
|
-
const
|
|
332717
|
+
const buffer = Math.min(AUTOCOMPACT_BUFFER_TOKENS, Math.floor(effectiveContextWindow * MAX_AUTOCOMPACT_BUFFER_RATIO));
|
|
332718
|
+
const bufferBasedThreshold = effectiveContextWindow - buffer;
|
|
332713
332719
|
let ratio = DEFAULT_AUTOCOMPACT_RATIO;
|
|
332714
332720
|
const ratioOverride = process.env.VIVUS_AUTOCOMPACT_RATIO;
|
|
332715
332721
|
if (ratioOverride) {
|
|
@@ -332831,7 +332837,7 @@ async function autoCompactIfNeeded(messages, toolUseContext, cacheSafeParams, qu
|
|
|
332831
332837
|
return { wasCompacted: false, consecutiveFailures: nextFailures };
|
|
332832
332838
|
}
|
|
332833
332839
|
}
|
|
332834
|
-
var MAX_OUTPUT_TOKENS_FOR_SUMMARY = 20000, AUTOCOMPACT_BUFFER_TOKENS = 13000, WARNING_THRESHOLD_BUFFER_TOKENS = 20000, ERROR_THRESHOLD_BUFFER_TOKENS = 20000, MANUAL_COMPACT_BUFFER_TOKENS = 3000, DEFAULT_AUTOCOMPACT_RATIO = 0.7, MAX_CONSECUTIVE_AUTOCOMPACT_FAILURES = 3;
|
|
332840
|
+
var MAX_OUTPUT_TOKENS_FOR_SUMMARY = 20000, MAX_SUMMARY_RESERVE_RATIO = 0.2, MAX_AUTOCOMPACT_BUFFER_RATIO = 0.08, AUTOCOMPACT_BUFFER_TOKENS = 13000, WARNING_THRESHOLD_BUFFER_TOKENS = 20000, ERROR_THRESHOLD_BUFFER_TOKENS = 20000, MANUAL_COMPACT_BUFFER_TOKENS = 3000, DEFAULT_AUTOCOMPACT_RATIO = 0.7, MAX_CONSECUTIVE_AUTOCOMPACT_FAILURES = 3;
|
|
332835
332841
|
var init_autoCompact = __esm(() => {
|
|
332836
332842
|
init_state();
|
|
332837
332843
|
init_state();
|
|
@@ -336992,7 +336998,7 @@ function getAnthropicEnvMetadata() {
|
|
|
336992
336998
|
function getBuildAgeMinutes() {
|
|
336993
336999
|
if (false)
|
|
336994
337000
|
;
|
|
336995
|
-
const buildTime = new Date("2026-06-
|
|
337001
|
+
const buildTime = new Date("2026-06-19T16:23:42.456Z").getTime();
|
|
336996
337002
|
if (isNaN(buildTime))
|
|
336997
337003
|
return;
|
|
336998
337004
|
return Math.floor((Date.now() - buildTime) / 60000);
|
|
@@ -384211,7 +384217,7 @@ var init_filesystem = __esm(() => {
|
|
|
384211
384217
|
});
|
|
384212
384218
|
getBundledSkillsRoot = memoize_default(function getBundledSkillsRoot2() {
|
|
384213
384219
|
const nonce = randomBytes17(16).toString("hex");
|
|
384214
|
-
return join106(getVivusTempDir(), "bundled-skills", "1.1.
|
|
384220
|
+
return join106(getVivusTempDir(), "bundled-skills", "1.1.16+6d460d2", nonce);
|
|
384215
384221
|
});
|
|
384216
384222
|
getResolvedWorkingDirPaths = memoize_default(getPathsForPermissionCheck);
|
|
384217
384223
|
});
|
|
@@ -385971,7 +385977,7 @@ function Feedback({
|
|
|
385971
385977
|
platform: env2.platform,
|
|
385972
385978
|
gitRepo: envInfo.isGit,
|
|
385973
385979
|
terminal: env2.terminal,
|
|
385974
|
-
version: "1.1.
|
|
385980
|
+
version: "1.1.16+6d460d2",
|
|
385975
385981
|
transcript: normalizeMessagesForAPI(messages),
|
|
385976
385982
|
errors: sanitizedErrors,
|
|
385977
385983
|
lastApiRequest: getLastAPIRequest(),
|
|
@@ -386163,7 +386169,7 @@ function Feedback({
|
|
|
386163
386169
|
", ",
|
|
386164
386170
|
env2.terminal,
|
|
386165
386171
|
", v",
|
|
386166
|
-
"1.1.
|
|
386172
|
+
"1.1.16+6d460d2"
|
|
386167
386173
|
]
|
|
386168
386174
|
}, undefined, true, undefined, this)
|
|
386169
386175
|
]
|
|
@@ -386269,7 +386275,7 @@ ${sanitizedDescription}
|
|
|
386269
386275
|
` + `**Environment Info**
|
|
386270
386276
|
` + `- Platform: ${env2.platform}
|
|
386271
386277
|
` + `- Terminal: ${env2.terminal}
|
|
386272
|
-
` + `- Version: ${"1.1.
|
|
386278
|
+
` + `- Version: ${"1.1.16+6d460d2"}
|
|
386273
386279
|
` + `- Feedback ID: ${feedbackId}
|
|
386274
386280
|
` + `
|
|
386275
386281
|
**Errors**
|
|
@@ -389401,7 +389407,7 @@ function buildPrimarySection() {
|
|
|
389401
389407
|
}, undefined, false, undefined, this);
|
|
389402
389408
|
return [{
|
|
389403
389409
|
label: "Version",
|
|
389404
|
-
value: "1.1.
|
|
389410
|
+
value: "1.1.16+6d460d2"
|
|
389405
389411
|
}, {
|
|
389406
389412
|
label: "Session name",
|
|
389407
389413
|
value: nameValue
|
|
@@ -393152,7 +393158,7 @@ function Config({
|
|
|
393152
393158
|
}
|
|
393153
393159
|
}, undefined, false, undefined, this)
|
|
393154
393160
|
}, undefined, false, undefined, this) : showSubmenu === "ChannelDowngrade" ? /* @__PURE__ */ jsx_dev_runtime178.jsxDEV(ChannelDowngradeDialog, {
|
|
393155
|
-
currentVersion: "1.1.
|
|
393161
|
+
currentVersion: "1.1.16+6d460d2",
|
|
393156
393162
|
onChoice: (choice) => {
|
|
393157
393163
|
setShowSubmenu(null);
|
|
393158
393164
|
setTabsHidden(false);
|
|
@@ -393164,7 +393170,7 @@ function Config({
|
|
|
393164
393170
|
autoUpdatesChannel: "stable"
|
|
393165
393171
|
};
|
|
393166
393172
|
if (choice === "stay") {
|
|
393167
|
-
newSettings.minimumVersion = "1.1.
|
|
393173
|
+
newSettings.minimumVersion = "1.1.16+6d460d2";
|
|
393168
393174
|
}
|
|
393169
393175
|
updateSettingsForSource("userSettings", newSettings);
|
|
393170
393176
|
setSettingsData((prev_27) => ({
|
|
@@ -401250,7 +401256,7 @@ function HelpV2(t0) {
|
|
|
401250
401256
|
let t6;
|
|
401251
401257
|
if ($2[31] !== tabs) {
|
|
401252
401258
|
t6 = /* @__PURE__ */ jsx_dev_runtime205.jsxDEV(Tabs, {
|
|
401253
|
-
title: `Vivus v${"1.1.
|
|
401259
|
+
title: `Vivus v${"1.1.16+6d460d2"}`,
|
|
401254
401260
|
color: "professionalBlue",
|
|
401255
401261
|
defaultTab: "general",
|
|
401256
401262
|
children: tabs
|
|
@@ -425476,7 +425482,7 @@ function getAllReleaseNotes(changelogContent = getStoredChangelogFromMemory()) {
|
|
|
425476
425482
|
return [];
|
|
425477
425483
|
}
|
|
425478
425484
|
}
|
|
425479
|
-
async function checkForReleaseNotes(lastSeenVersion, currentVersion = "1.1.
|
|
425485
|
+
async function checkForReleaseNotes(lastSeenVersion, currentVersion = "1.1.16+6d460d2") {
|
|
425480
425486
|
if (process.env.USER_TYPE === "ant") {
|
|
425481
425487
|
const changelog = "";
|
|
425482
425488
|
if (changelog) {
|
|
@@ -425503,7 +425509,7 @@ async function checkForReleaseNotes(lastSeenVersion, currentVersion = "1.1.14+50
|
|
|
425503
425509
|
releaseNotes
|
|
425504
425510
|
};
|
|
425505
425511
|
}
|
|
425506
|
-
function checkForReleaseNotesSync(lastSeenVersion, currentVersion = "1.1.
|
|
425512
|
+
function checkForReleaseNotesSync(lastSeenVersion, currentVersion = "1.1.16+6d460d2") {
|
|
425507
425513
|
if (process.env.USER_TYPE === "ant") {
|
|
425508
425514
|
const changelog = "";
|
|
425509
425515
|
if (changelog) {
|
|
@@ -426673,7 +426679,7 @@ function getRecentActivitySync() {
|
|
|
426673
426679
|
return cachedActivity;
|
|
426674
426680
|
}
|
|
426675
426681
|
function getLogoDisplayData() {
|
|
426676
|
-
const version2 = process.env.DEMO_VERSION ?? "1.1.
|
|
426682
|
+
const version2 = process.env.DEMO_VERSION ?? "1.1.16+6d460d2";
|
|
426677
426683
|
const serverUrl = getDirectConnectServerUrl();
|
|
426678
426684
|
const displayPath = process.env.DEMO_VERSION ? "/code/vivus" : getDisplayPath(getCwd());
|
|
426679
426685
|
const cwd2 = serverUrl ? `${displayPath} in ${serverUrl.replace(/^https?:\/\//, "")}` : displayPath;
|
|
@@ -428200,7 +428206,7 @@ function LogoV2() {
|
|
|
428200
428206
|
if ($2[2] === Symbol.for("react.memo_cache_sentinel")) {
|
|
428201
428207
|
t2 = () => {
|
|
428202
428208
|
const currentConfig = getGlobalConfig();
|
|
428203
|
-
if (currentConfig.lastReleaseNotesSeen === "1.1.
|
|
428209
|
+
if (currentConfig.lastReleaseNotesSeen === "1.1.16+6d460d2") {
|
|
428204
428210
|
return;
|
|
428205
428211
|
}
|
|
428206
428212
|
saveGlobalConfig(_temp329);
|
|
@@ -428876,12 +428882,12 @@ function LogoV2() {
|
|
|
428876
428882
|
return t41;
|
|
428877
428883
|
}
|
|
428878
428884
|
function _temp329(current) {
|
|
428879
|
-
if (current.lastReleaseNotesSeen === "1.1.
|
|
428885
|
+
if (current.lastReleaseNotesSeen === "1.1.16+6d460d2") {
|
|
428880
428886
|
return current;
|
|
428881
428887
|
}
|
|
428882
428888
|
return {
|
|
428883
428889
|
...current,
|
|
428884
|
-
lastReleaseNotesSeen: "1.1.
|
|
428890
|
+
lastReleaseNotesSeen: "1.1.16+6d460d2"
|
|
428885
428891
|
};
|
|
428886
428892
|
}
|
|
428887
428893
|
function _temp245(s_0) {
|
|
@@ -455178,7 +455184,7 @@ async function captureMemoryDiagnostics(trigger, dumpNumber = 0) {
|
|
|
455178
455184
|
smapsRollup,
|
|
455179
455185
|
platform: process.platform,
|
|
455180
455186
|
nodeVersion: process.version,
|
|
455181
|
-
ccVersion: "1.1.
|
|
455187
|
+
ccVersion: "1.1.16+6d460d2"
|
|
455182
455188
|
};
|
|
455183
455189
|
}
|
|
455184
455190
|
async function performHeapDump(trigger = "manual", dumpNumber = 0) {
|
|
@@ -455764,7 +455770,7 @@ var init_bridge_kick = __esm(() => {
|
|
|
455764
455770
|
var call56 = async () => {
|
|
455765
455771
|
return {
|
|
455766
455772
|
type: "text",
|
|
455767
|
-
value: `${"1.1.
|
|
455773
|
+
value: `${"1.1.16+6d460d2"} (built ${"2026-06-19T16:23:42.456Z"})`
|
|
455768
455774
|
};
|
|
455769
455775
|
}, version2, version_default;
|
|
455770
455776
|
var init_version = __esm(() => {
|
|
@@ -464727,7 +464733,7 @@ function generateHtmlReport(data, insights) {
|
|
|
464727
464733
|
</html>`;
|
|
464728
464734
|
}
|
|
464729
464735
|
function buildExportData(data, insights, facets, remoteStats) {
|
|
464730
|
-
const version3 = typeof MACRO !== "undefined" ? "1.1.
|
|
464736
|
+
const version3 = typeof MACRO !== "undefined" ? "1.1.16+6d460d2" : "unknown";
|
|
464731
464737
|
const remote_hosts_collected = remoteStats?.hosts.filter((h2) => h2.sessionCount > 0).map((h2) => h2.name);
|
|
464732
464738
|
const facets_summary = {
|
|
464733
464739
|
total: facets.size,
|
|
@@ -468836,7 +468842,7 @@ var init_sessionStorage = __esm(() => {
|
|
|
468836
468842
|
init_settings2();
|
|
468837
468843
|
init_slowOperations();
|
|
468838
468844
|
init_uuid();
|
|
468839
|
-
VERSION5 = typeof MACRO !== "undefined" ? "1.1.
|
|
468845
|
+
VERSION5 = typeof MACRO !== "undefined" ? "1.1.16+6d460d2" : "unknown";
|
|
468840
468846
|
MAX_TOMBSTONE_REWRITE_BYTES = 50 * 1024 * 1024;
|
|
468841
468847
|
SKIP_FIRST_PROMPT_PATTERN = /^(?:\s*<[a-z][\w-]*[\s>]|\[Request interrupted by user[^\]]*\])/;
|
|
468842
468848
|
EPHEMERAL_PROGRESS_TYPES = new Set([
|
|
@@ -471707,7 +471713,7 @@ function buildSystemInitMessage(inputs) {
|
|
|
471707
471713
|
slash_commands: inputs.commands.filter((c4) => c4.userInvocable !== false).map((c4) => c4.name),
|
|
471708
471714
|
apiKeySource: getAnthropicApiKeyWithSource().source,
|
|
471709
471715
|
betas: getSdkBetas(),
|
|
471710
|
-
vivus_code_version: "1.1.
|
|
471716
|
+
vivus_code_version: "1.1.16+6d460d2",
|
|
471711
471717
|
output_style: outputStyle2,
|
|
471712
471718
|
agents: inputs.agents.map((agent) => agent.agentType),
|
|
471713
471719
|
skills: inputs.skills.filter((s) => s.userInvocable !== false).map((skill) => skill.name),
|
|
@@ -486335,7 +486341,7 @@ var init_useVoiceEnabled = __esm(() => {
|
|
|
486335
486341
|
function getSemverPart(version3) {
|
|
486336
486342
|
return `${import_semver13.major(version3, { loose: true })}.${import_semver13.minor(version3, { loose: true })}.${import_semver13.patch(version3, { loose: true })}`;
|
|
486337
486343
|
}
|
|
486338
|
-
function useUpdateNotification(updatedVersion, initialVersion = "1.1.
|
|
486344
|
+
function useUpdateNotification(updatedVersion, initialVersion = "1.1.16+6d460d2") {
|
|
486339
486345
|
const [lastNotifiedSemver, setLastNotifiedSemver] = import_react227.useState(() => getSemverPart(initialVersion));
|
|
486340
486346
|
if (!updatedVersion) {
|
|
486341
486347
|
return null;
|
|
@@ -486375,7 +486381,7 @@ function AutoUpdater({
|
|
|
486375
486381
|
return;
|
|
486376
486382
|
}
|
|
486377
486383
|
if (false) {}
|
|
486378
|
-
const currentVersion = "1.1.
|
|
486384
|
+
const currentVersion = "1.1.16+6d460d2";
|
|
486379
486385
|
const channel = getInitialSettings()?.autoUpdatesChannel ?? "latest";
|
|
486380
486386
|
let latestVersion = await getLatestVersion(channel);
|
|
486381
486387
|
const isDisabled = isAutoUpdaterDisabled();
|
|
@@ -486588,12 +486594,12 @@ function NativeAutoUpdater({
|
|
|
486588
486594
|
logEvent("tengu_native_auto_updater_start", {});
|
|
486589
486595
|
try {
|
|
486590
486596
|
const maxVersion = await getMaxVersion();
|
|
486591
|
-
if (maxVersion && gt("1.1.
|
|
486597
|
+
if (maxVersion && gt("1.1.16+6d460d2", maxVersion)) {
|
|
486592
486598
|
const msg = await getMaxVersionMessage();
|
|
486593
486599
|
setMaxVersionIssue(msg ?? "affects your version");
|
|
486594
486600
|
}
|
|
486595
486601
|
const result = await installLatest(channel);
|
|
486596
|
-
const currentVersion = "1.1.
|
|
486602
|
+
const currentVersion = "1.1.16+6d460d2";
|
|
486597
486603
|
const latencyMs = Date.now() - startTime;
|
|
486598
486604
|
if (result.lockFailed) {
|
|
486599
486605
|
logEvent("tengu_native_auto_updater_lock_contention", {
|
|
@@ -486730,17 +486736,17 @@ function PackageManagerAutoUpdater(t0) {
|
|
|
486730
486736
|
const maxVersion = await getMaxVersion();
|
|
486731
486737
|
if (maxVersion && latest && gt(latest, maxVersion)) {
|
|
486732
486738
|
logForDebugging(`PackageManagerAutoUpdater: maxVersion ${maxVersion} is set, capping update from ${latest} to ${maxVersion}`);
|
|
486733
|
-
if (gte("1.1.
|
|
486734
|
-
logForDebugging(`PackageManagerAutoUpdater: current version ${"1.1.
|
|
486739
|
+
if (gte("1.1.16+6d460d2", maxVersion)) {
|
|
486740
|
+
logForDebugging(`PackageManagerAutoUpdater: current version ${"1.1.16+6d460d2"} is already at or above maxVersion ${maxVersion}, skipping update`);
|
|
486735
486741
|
setUpdateAvailable(false);
|
|
486736
486742
|
return;
|
|
486737
486743
|
}
|
|
486738
486744
|
latest = maxVersion;
|
|
486739
486745
|
}
|
|
486740
|
-
const hasUpdate = latest && !gte("1.1.
|
|
486746
|
+
const hasUpdate = latest && !gte("1.1.16+6d460d2", latest) && !shouldSkipVersion(latest);
|
|
486741
486747
|
setUpdateAvailable(!!hasUpdate);
|
|
486742
486748
|
if (hasUpdate) {
|
|
486743
|
-
logForDebugging(`PackageManagerAutoUpdater: Update available ${"1.1.
|
|
486749
|
+
logForDebugging(`PackageManagerAutoUpdater: Update available ${"1.1.16+6d460d2"} -> ${latest}`);
|
|
486744
486750
|
}
|
|
486745
486751
|
};
|
|
486746
486752
|
$2[0] = t1;
|
|
@@ -486774,7 +486780,7 @@ function PackageManagerAutoUpdater(t0) {
|
|
|
486774
486780
|
wrap: "truncate",
|
|
486775
486781
|
children: [
|
|
486776
486782
|
"currentVersion: ",
|
|
486777
|
-
"1.1.
|
|
486783
|
+
"1.1.16+6d460d2"
|
|
486778
486784
|
]
|
|
486779
486785
|
}, undefined, true, undefined, this);
|
|
486780
486786
|
$2[3] = verbose;
|
|
@@ -494942,7 +494948,7 @@ function buildStatusLineCommandInput(permissionMode, exceeds200kTokens, settings
|
|
|
494942
494948
|
project_dir: getOriginalCwd(),
|
|
494943
494949
|
added_dirs: addedDirs
|
|
494944
494950
|
},
|
|
494945
|
-
version: "1.1.
|
|
494951
|
+
version: "1.1.16+6d460d2",
|
|
494946
494952
|
output_style: {
|
|
494947
494953
|
name: outputStyleName
|
|
494948
494954
|
},
|
|
@@ -506426,7 +506432,7 @@ async function submitTranscriptShare(messages, trigger, appearanceId) {
|
|
|
506426
506432
|
} catch {}
|
|
506427
506433
|
const data = {
|
|
506428
506434
|
trigger,
|
|
506429
|
-
version: "1.1.
|
|
506435
|
+
version: "1.1.16+6d460d2",
|
|
506430
506436
|
platform: process.platform,
|
|
506431
506437
|
transcript,
|
|
506432
506438
|
subagentTranscripts: Object.keys(subagentTranscripts).length > 0 ? subagentTranscripts : undefined,
|
|
@@ -517843,7 +517849,7 @@ function WelcomeV2() {
|
|
|
517843
517849
|
dimColor: true,
|
|
517844
517850
|
children: [
|
|
517845
517851
|
"v",
|
|
517846
|
-
"1.1.
|
|
517852
|
+
"1.1.16+6d460d2",
|
|
517847
517853
|
" "
|
|
517848
517854
|
]
|
|
517849
517855
|
}, undefined, true, undefined, this)
|
|
@@ -518043,7 +518049,7 @@ function WelcomeV2() {
|
|
|
518043
518049
|
dimColor: true,
|
|
518044
518050
|
children: [
|
|
518045
518051
|
"v",
|
|
518046
|
-
"1.1.
|
|
518052
|
+
"1.1.16+6d460d2",
|
|
518047
518053
|
" "
|
|
518048
518054
|
]
|
|
518049
518055
|
}, undefined, true, undefined, this)
|
|
@@ -518269,7 +518275,7 @@ function AppleTerminalWelcomeV2(t0) {
|
|
|
518269
518275
|
dimColor: true,
|
|
518270
518276
|
children: [
|
|
518271
518277
|
"v",
|
|
518272
|
-
"1.1.
|
|
518278
|
+
"1.1.16+6d460d2",
|
|
518273
518279
|
" "
|
|
518274
518280
|
]
|
|
518275
518281
|
}, undefined, true, undefined, this);
|
|
@@ -518523,7 +518529,7 @@ function AppleTerminalWelcomeV2(t0) {
|
|
|
518523
518529
|
dimColor: true,
|
|
518524
518530
|
children: [
|
|
518525
518531
|
"v",
|
|
518526
|
-
"1.1.
|
|
518532
|
+
"1.1.16+6d460d2",
|
|
518527
518533
|
" "
|
|
518528
518534
|
]
|
|
518529
518535
|
}, undefined, true, undefined, this);
|
|
@@ -521587,7 +521593,7 @@ function appendToLog(path25, message) {
|
|
|
521587
521593
|
cwd: getFsImplementation().cwd(),
|
|
521588
521594
|
userType: process.env.USER_TYPE,
|
|
521589
521595
|
sessionId: getSessionId(),
|
|
521590
|
-
version: "1.1.
|
|
521596
|
+
version: "1.1.16+6d460d2"
|
|
521591
521597
|
};
|
|
521592
521598
|
getLogWriter(path25).write(messageWithTimestamp);
|
|
521593
521599
|
}
|
|
@@ -525572,8 +525578,8 @@ async function getEnvLessBridgeConfig() {
|
|
|
525572
525578
|
}
|
|
525573
525579
|
async function checkEnvLessBridgeMinVersion() {
|
|
525574
525580
|
const cfg = await getEnvLessBridgeConfig();
|
|
525575
|
-
if (cfg.min_version && lt("1.1.
|
|
525576
|
-
return `Your version of Vivus (${"1.1.
|
|
525581
|
+
if (cfg.min_version && lt("1.1.16+6d460d2", cfg.min_version)) {
|
|
525582
|
+
return `Your version of Vivus (${"1.1.16+6d460d2"}) is too old for Remote Control.
|
|
525577
525583
|
Version ${cfg.min_version} or higher is required. Run \`vivus update\` to update.`;
|
|
525578
525584
|
}
|
|
525579
525585
|
return null;
|
|
@@ -526047,7 +526053,7 @@ async function initBridgeCore(params) {
|
|
|
526047
526053
|
const rawApi = createBridgeApiClient({
|
|
526048
526054
|
baseUrl,
|
|
526049
526055
|
getAccessToken,
|
|
526050
|
-
runnerVersion: "1.1.
|
|
526056
|
+
runnerVersion: "1.1.16+6d460d2",
|
|
526051
526057
|
onDebug: logForDebugging,
|
|
526052
526058
|
onAuth401,
|
|
526053
526059
|
getTrustedDeviceToken
|
|
@@ -531711,7 +531717,7 @@ async function startMCPServer(cwd3, debug2, verbose) {
|
|
|
531711
531717
|
setCwd(cwd3);
|
|
531712
531718
|
const server = new Server({
|
|
531713
531719
|
name: "vivus/tengu",
|
|
531714
|
-
version: "1.1.
|
|
531720
|
+
version: "1.1.16+6d460d2"
|
|
531715
531721
|
}, {
|
|
531716
531722
|
capabilities: {
|
|
531717
531723
|
tools: {}
|
|
@@ -533322,7 +533328,7 @@ __export(exports_update, {
|
|
|
533322
533328
|
});
|
|
533323
533329
|
async function update() {
|
|
533324
533330
|
logEvent("tengu_update_check", {});
|
|
533325
|
-
writeToStdout(`Current version: ${"1.1.
|
|
533331
|
+
writeToStdout(`Current version: ${"1.1.16+6d460d2"}
|
|
533326
533332
|
`);
|
|
533327
533333
|
const channel = getInitialSettings()?.autoUpdatesChannel ?? "latest";
|
|
533328
533334
|
writeToStdout(`Checking for updates to ${channel} version...
|
|
@@ -533397,8 +533403,8 @@ async function update() {
|
|
|
533397
533403
|
writeToStdout(`Vivus is managed by Homebrew.
|
|
533398
533404
|
`);
|
|
533399
533405
|
const latest = await getLatestVersion(channel);
|
|
533400
|
-
if (latest && !gte("1.1.
|
|
533401
|
-
writeToStdout(`Update available: ${"1.1.
|
|
533406
|
+
if (latest && !gte("1.1.16+6d460d2", latest)) {
|
|
533407
|
+
writeToStdout(`Update available: ${"1.1.16+6d460d2"} → ${latest}
|
|
533402
533408
|
`);
|
|
533403
533409
|
writeToStdout(`
|
|
533404
533410
|
`);
|
|
@@ -533414,8 +533420,8 @@ async function update() {
|
|
|
533414
533420
|
writeToStdout(`Vivus is managed by winget.
|
|
533415
533421
|
`);
|
|
533416
533422
|
const latest = await getLatestVersion(channel);
|
|
533417
|
-
if (latest && !gte("1.1.
|
|
533418
|
-
writeToStdout(`Update available: ${"1.1.
|
|
533423
|
+
if (latest && !gte("1.1.16+6d460d2", latest)) {
|
|
533424
|
+
writeToStdout(`Update available: ${"1.1.16+6d460d2"} → ${latest}
|
|
533419
533425
|
`);
|
|
533420
533426
|
writeToStdout(`
|
|
533421
533427
|
`);
|
|
@@ -533431,8 +533437,8 @@ async function update() {
|
|
|
533431
533437
|
writeToStdout(`Vivus is managed by apk.
|
|
533432
533438
|
`);
|
|
533433
533439
|
const latest = await getLatestVersion(channel);
|
|
533434
|
-
if (latest && !gte("1.1.
|
|
533435
|
-
writeToStdout(`Update available: ${"1.1.
|
|
533440
|
+
if (latest && !gte("1.1.16+6d460d2", latest)) {
|
|
533441
|
+
writeToStdout(`Update available: ${"1.1.16+6d460d2"} → ${latest}
|
|
533436
533442
|
`);
|
|
533437
533443
|
writeToStdout(`
|
|
533438
533444
|
`);
|
|
@@ -533497,11 +533503,11 @@ async function update() {
|
|
|
533497
533503
|
`);
|
|
533498
533504
|
await gracefulShutdown(1);
|
|
533499
533505
|
}
|
|
533500
|
-
if (result.latestVersion === "1.1.
|
|
533501
|
-
writeToStdout(source_default.green(`Vivus is up to date (${"1.1.
|
|
533506
|
+
if (result.latestVersion === "1.1.16+6d460d2") {
|
|
533507
|
+
writeToStdout(source_default.green(`Vivus is up to date (${"1.1.16+6d460d2"})`) + `
|
|
533502
533508
|
`);
|
|
533503
533509
|
} else {
|
|
533504
|
-
writeToStdout(source_default.green(`Successfully updated from ${"1.1.
|
|
533510
|
+
writeToStdout(source_default.green(`Successfully updated from ${"1.1.16+6d460d2"} to version ${result.latestVersion}`) + `
|
|
533505
533511
|
`);
|
|
533506
533512
|
await regenerateCompletionCache();
|
|
533507
533513
|
}
|
|
@@ -533558,12 +533564,12 @@ async function update() {
|
|
|
533558
533564
|
`);
|
|
533559
533565
|
await gracefulShutdown(1);
|
|
533560
533566
|
}
|
|
533561
|
-
if (latestVersion === "1.1.
|
|
533562
|
-
writeToStdout(source_default.green(`Vivus is up to date (${"1.1.
|
|
533567
|
+
if (latestVersion === "1.1.16+6d460d2") {
|
|
533568
|
+
writeToStdout(source_default.green(`Vivus is up to date (${"1.1.16+6d460d2"})`) + `
|
|
533563
533569
|
`);
|
|
533564
533570
|
await gracefulShutdown(0);
|
|
533565
533571
|
}
|
|
533566
|
-
writeToStdout(`New version available: ${latestVersion} (current: ${"1.1.
|
|
533572
|
+
writeToStdout(`New version available: ${latestVersion} (current: ${"1.1.16+6d460d2"})
|
|
533567
533573
|
`);
|
|
533568
533574
|
writeToStdout(`Installing update...
|
|
533569
533575
|
`);
|
|
@@ -533608,7 +533614,7 @@ async function update() {
|
|
|
533608
533614
|
logForDebugging(`update: Installation status: ${status2}`);
|
|
533609
533615
|
switch (status2) {
|
|
533610
533616
|
case "success":
|
|
533611
|
-
writeToStdout(source_default.green(`Successfully updated from ${"1.1.
|
|
533617
|
+
writeToStdout(source_default.green(`Successfully updated from ${"1.1.16+6d460d2"} to version ${latestVersion}`) + `
|
|
533612
533618
|
`);
|
|
533613
533619
|
await regenerateCompletionCache();
|
|
533614
533620
|
break;
|
|
@@ -534043,9 +534049,11 @@ async function fetchBootstrapData() {
|
|
|
534043
534049
|
return;
|
|
534044
534050
|
const clientData = response.client_data ?? null;
|
|
534045
534051
|
const additionalModelOptions = response.additional_model_options ?? [];
|
|
534052
|
+
const featureFlags = clientData && typeof clientData === "object" && !Array.isArray(clientData) ? clientData.feature_flags : undefined;
|
|
534053
|
+
const growthBookOverrides = featureFlags && typeof featureFlags === "object" && !Array.isArray(featureFlags) ? featureFlags : {};
|
|
534046
534054
|
const ownsModelOptions = isFirstPartyAnthropicBaseUrl();
|
|
534047
534055
|
const config4 = getGlobalConfig();
|
|
534048
|
-
if (isEqual_default(config4.clientDataCache, clientData) && (!ownsModelOptions || isEqual_default(config4.additionalModelOptionsCache, additionalModelOptions))) {
|
|
534056
|
+
if (isEqual_default(config4.clientDataCache, clientData) && isEqual_default(config4.growthBookOverrides ?? {}, growthBookOverrides) && (!ownsModelOptions || isEqual_default(config4.additionalModelOptionsCache, additionalModelOptions))) {
|
|
534049
534057
|
logForDebugging("[Bootstrap] Cache unchanged, skipping write");
|
|
534050
534058
|
return;
|
|
534051
534059
|
}
|
|
@@ -534053,6 +534061,7 @@ async function fetchBootstrapData() {
|
|
|
534053
534061
|
saveGlobalConfig((current) => ({
|
|
534054
534062
|
...current,
|
|
534055
534063
|
clientDataCache: clientData,
|
|
534064
|
+
growthBookOverrides,
|
|
534056
534065
|
...ownsModelOptions ? { additionalModelOptionsCache: additionalModelOptions } : {}
|
|
534057
534066
|
}));
|
|
534058
534067
|
} catch (error41) {
|
|
@@ -534579,7 +534588,7 @@ function completeOnboarding() {
|
|
|
534579
534588
|
saveGlobalConfig((current) => ({
|
|
534580
534589
|
...current,
|
|
534581
534590
|
hasCompletedOnboarding: true,
|
|
534582
|
-
lastOnboardingVersion: "1.1.
|
|
534591
|
+
lastOnboardingVersion: "1.1.16+6d460d2"
|
|
534583
534592
|
}));
|
|
534584
534593
|
}
|
|
534585
534594
|
function showDialog(root2, renderer) {
|
|
@@ -538753,7 +538762,7 @@ ${customInstructions}` : customInstructions;
|
|
|
538753
538762
|
}
|
|
538754
538763
|
}
|
|
538755
538764
|
logForDiagnosticsNoPII("info", "started", {
|
|
538756
|
-
version: "1.1.
|
|
538765
|
+
version: "1.1.16+6d460d2",
|
|
538757
538766
|
is_native_binary: isInBundledMode()
|
|
538758
538767
|
});
|
|
538759
538768
|
registerCleanup(async () => {
|
|
@@ -539537,7 +539546,7 @@ Usage: vivus --remote "your task description"`, () => gracefulShutdown(1));
|
|
|
539537
539546
|
pendingHookMessages
|
|
539538
539547
|
}, renderAndRun);
|
|
539539
539548
|
}
|
|
539540
|
-
}).version("1.1.
|
|
539549
|
+
}).version("1.1.16+6d460d2 (Vivus)", "-v, --version", "Output the version number");
|
|
539541
539550
|
program2.option("-w, --worktree [name]", "Create a new git worktree for this session (optionally specify a name)");
|
|
539542
539551
|
program2.option("--tmux", "Create a tmux session for the worktree (requires --worktree). Uses iTerm2 native panes when available; use --tmux=classic for traditional tmux.");
|
|
539543
539552
|
if (canUserConfigureAdvisor()) {
|