vivus-agent 1.1.39 → 1.1.40

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.
Files changed (2) hide show
  1. package/dist/main.js +110 -90
  2. 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-08-06T20:06:33.927Z
3
+ // Built from source at 2026-08-06T21:07:27.446Z
4
4
  import { createRequire } from "node:module";
5
5
  var __create = Object.create;
6
6
  var __getProtoOf = Object.getPrototypeOf;
@@ -108228,7 +108228,7 @@ var init_auth = __esm(() => {
108228
108228
 
108229
108229
  // src/utils/userAgent.ts
108230
108230
  function getVivusCodeUserAgent() {
108231
- return `vivus/${"1.1.39+5fcd249"}`;
108231
+ return `vivus/${"1.1.40+7a4108d"}`;
108232
108232
  }
108233
108233
 
108234
108234
  // src/utils/workloadContext.ts
@@ -108250,7 +108250,7 @@ function getUserAgent() {
108250
108250
  const clientApp = process.env.VIVUS_AGENT_SDK_CLIENT_APP ? `, client-app/${process.env.VIVUS_AGENT_SDK_CLIENT_APP}` : "";
108251
108251
  const workload = getWorkload();
108252
108252
  const workloadSuffix = workload ? `, workload/${workload}` : "";
108253
- return `vivus-cli/${"1.1.39+5fcd249"} (${process.env.USER_TYPE}, ${process.env.VIVUS_CODE_ENTRYPOINT ?? "cli"}${agentSdkVersion}${clientApp}${workloadSuffix})`;
108253
+ return `vivus-cli/${"1.1.40+7a4108d"} (${process.env.USER_TYPE}, ${process.env.VIVUS_CODE_ENTRYPOINT ?? "cli"}${agentSdkVersion}${clientApp}${workloadSuffix})`;
108254
108254
  }
108255
108255
  function getMCPUserAgent() {
108256
108256
  const parts = [];
@@ -108264,7 +108264,7 @@ function getMCPUserAgent() {
108264
108264
  parts.push(`client-app/${process.env.VIVUS_AGENT_SDK_CLIENT_APP}`);
108265
108265
  }
108266
108266
  const suffix = parts.length > 0 ? ` (${parts.join(", ")})` : "";
108267
- return `vivus/${"1.1.39+5fcd249"}${suffix}`;
108267
+ return `vivus/${"1.1.40+7a4108d"}${suffix}`;
108268
108268
  }
108269
108269
  function getWebFetchUserAgent() {
108270
108270
  return `Vivus-User (${getVivusCodeUserAgent()}; +https://support.anthropic.com/)`;
@@ -108402,7 +108402,7 @@ var init_user = __esm(() => {
108402
108402
  deviceId,
108403
108403
  sessionId: getSessionId(),
108404
108404
  email: getEmail(),
108405
- appVersion: "1.1.39+5fcd249",
108405
+ appVersion: "1.1.40+7a4108d",
108406
108406
  platform: getHostPlatformForAnalytics(),
108407
108407
  organizationUuid,
108408
108408
  accountUuid,
@@ -119713,7 +119713,7 @@ var init_metadata = __esm(() => {
119713
119713
  COMPOUND_OPERATOR_REGEX = /\s*(?:&&|\|\||[;|])\s*/;
119714
119714
  WHITESPACE_REGEX = /\s+/;
119715
119715
  getVersionBase = memoize_default(() => {
119716
- const match = "1.1.39+5fcd249".match(/^\d+\.\d+\.\d+(?:-[a-z]+)?/);
119716
+ const match = "1.1.40+7a4108d".match(/^\d+\.\d+\.\d+(?:-[a-z]+)?/);
119717
119717
  return match ? match[0] : undefined;
119718
119718
  });
119719
119719
  buildEnvContext = memoize_default(async () => {
@@ -119753,9 +119753,9 @@ var init_metadata = __esm(() => {
119753
119753
  isGithubAction: isEnvTruthy(process.env.GITHUB_ACTIONS),
119754
119754
  isVivusCodeAction: isEnvTruthy(process.env.VIVUS_CODE_ACTION),
119755
119755
  isVivusAiAuth: isVivusAISubscriber(),
119756
- version: "1.1.39+5fcd249",
119756
+ version: "1.1.40+7a4108d",
119757
119757
  versionBase: getVersionBase(),
119758
- buildTime: "2026-08-06T20:06:33.603Z",
119758
+ buildTime: "2026-08-06T21:07:26.990Z",
119759
119759
  deploymentEnvironment: env3.detectDeploymentEnvironment(),
119760
119760
  ...isEnvTruthy(process.env.GITHUB_ACTIONS) && {
119761
119761
  githubEventName: process.env.GITHUB_EVENT_NAME,
@@ -120423,7 +120423,7 @@ function initialize1PEventLogging() {
120423
120423
  const platform2 = getPlatform();
120424
120424
  const attributes = {
120425
120425
  [import_semantic_conventions.ATTR_SERVICE_NAME]: "vivus",
120426
- [import_semantic_conventions.ATTR_SERVICE_VERSION]: "1.1.39+5fcd249"
120426
+ [import_semantic_conventions.ATTR_SERVICE_VERSION]: "1.1.40+7a4108d"
120427
120427
  };
120428
120428
  if (platform2 === "wsl") {
120429
120429
  const wslVersion = getWslVersion();
@@ -120450,7 +120450,7 @@ function initialize1PEventLogging() {
120450
120450
  })
120451
120451
  ]
120452
120452
  });
120453
- firstPartyEventLogger = firstPartyEventLoggerProvider.getLogger("com.anthropic.vivus_code.events", "1.1.39+5fcd249");
120453
+ firstPartyEventLogger = firstPartyEventLoggerProvider.getLogger("com.anthropic.vivus_code.events", "1.1.40+7a4108d");
120454
120454
  }
120455
120455
  async function reinitialize1PEventLoggingIfConfigChanged() {
120456
120456
  if (!is1PEventLoggingEnabled() || !firstPartyEventLoggerProvider) {
@@ -162670,7 +162670,7 @@ function getAttributionHeader(fingerprint) {
162670
162670
  if (!isAttributionHeaderEnabled()) {
162671
162671
  return "";
162672
162672
  }
162673
- const version2 = `${"1.1.39+5fcd249"}.${fingerprint}`;
162673
+ const version2 = `${"1.1.40+7a4108d"}.${fingerprint}`;
162674
162674
  const entrypoint = process.env.VIVUS_CODE_ENTRYPOINT ?? "unknown";
162675
162675
  const cch = "";
162676
162676
  const workload = getWorkload();
@@ -175833,7 +175833,7 @@ function getTelemetryAttributes() {
175833
175833
  attributes["session.id"] = sessionId;
175834
175834
  }
175835
175835
  if (shouldIncludeAttribute("OTEL_METRICS_INCLUDE_VERSION")) {
175836
- attributes["app.version"] = "1.1.39+5fcd249";
175836
+ attributes["app.version"] = "1.1.40+7a4108d";
175837
175837
  }
175838
175838
  const oauthAccount = getOauthAccountInfo();
175839
175839
  if (oauthAccount) {
@@ -242403,7 +242403,7 @@ function computeFingerprint(messageText, version2) {
242403
242403
  }
242404
242404
  function computeFingerprintFromMessages(messages) {
242405
242405
  const firstMessageText = extractFirstMessageText(messages);
242406
- return computeFingerprint(firstMessageText, "1.1.39+5fcd249");
242406
+ return computeFingerprint(firstMessageText, "1.1.40+7a4108d");
242407
242407
  }
242408
242408
  var FINGERPRINT_SALT = "59cf53e54c78";
242409
242409
  var init_fingerprint = () => {};
@@ -242445,7 +242445,7 @@ async function sideQuery(opts) {
242445
242445
  betas.push(STRUCTURED_OUTPUTS_BETA_HEADER);
242446
242446
  }
242447
242447
  const messageText = extractFirstUserMessageText(messages);
242448
- const fingerprint = computeFingerprint(messageText, "1.1.39+5fcd249");
242448
+ const fingerprint = computeFingerprint(messageText, "1.1.40+7a4108d");
242449
242449
  const attributionHeader = getAttributionHeader(fingerprint);
242450
242450
  const systemBlocks = [
242451
242451
  attributionHeader ? { type: "text", text: attributionHeader } : null,
@@ -243597,7 +243597,7 @@ async function setupSdkMcpClients(sdkMcpConfigs, sendMcpMessage) {
243597
243597
  const client2 = new Client({
243598
243598
  name: "vivus",
243599
243599
  title: "Vivus",
243600
- version: "1.1.39+5fcd249",
243600
+ version: "1.1.40+7a4108d",
243601
243601
  description: "Anthropic's agentic coding tool",
243602
243602
  websiteUrl: PRODUCT_URL
243603
243603
  }, {
@@ -243951,7 +243951,7 @@ var init_client6 = __esm(() => {
243951
243951
  const client2 = new Client({
243952
243952
  name: "vivus",
243953
243953
  title: "Vivus",
243954
- version: "1.1.39+5fcd249",
243954
+ version: "1.1.40+7a4108d",
243955
243955
  description: "Anthropic's agentic coding tool",
243956
243956
  websiteUrl: PRODUCT_URL
243957
243957
  }, {
@@ -246012,7 +246012,7 @@ function getInstallationEnv() {
246012
246012
  return;
246013
246013
  }
246014
246014
  function getVivusCodeVersion() {
246015
- return "1.1.39+5fcd249";
246015
+ return "1.1.40+7a4108d";
246016
246016
  }
246017
246017
  async function getInstalledVSCodeExtensionVersion(command) {
246018
246018
  const { stdout } = await execFileNoThrow(command, ["--list-extensions", "--show-versions"], {
@@ -302099,7 +302099,7 @@ async function initializeBetaTracing(resource) {
302099
302099
  });
302100
302100
  import_api_logs.logs.setGlobalLoggerProvider(loggerProvider);
302101
302101
  setLoggerProvider(loggerProvider);
302102
- const eventLogger = import_api_logs.logs.getLogger("com.anthropic.vivus_code.events", "1.1.39+5fcd249");
302102
+ const eventLogger = import_api_logs.logs.getLogger("com.anthropic.vivus_code.events", "1.1.40+7a4108d");
302103
302103
  setEventLogger(eventLogger);
302104
302104
  process.on("beforeExit", async () => {
302105
302105
  await loggerProvider?.forceFlush();
@@ -302139,7 +302139,7 @@ async function initializeTelemetry() {
302139
302139
  const platform5 = getPlatform();
302140
302140
  const baseAttributes = {
302141
302141
  [import_semantic_conventions2.ATTR_SERVICE_NAME]: "vivus",
302142
- [import_semantic_conventions2.ATTR_SERVICE_VERSION]: "1.1.39+5fcd249"
302142
+ [import_semantic_conventions2.ATTR_SERVICE_VERSION]: "1.1.40+7a4108d"
302143
302143
  };
302144
302144
  if (platform5 === "wsl") {
302145
302145
  const wslVersion = getWslVersion();
@@ -302184,7 +302184,7 @@ async function initializeTelemetry() {
302184
302184
  } catch {}
302185
302185
  };
302186
302186
  registerCleanup(shutdownTelemetry2);
302187
- return meterProvider2.getMeter("com.anthropic.vivus_code", "1.1.39+5fcd249");
302187
+ return meterProvider2.getMeter("com.anthropic.vivus_code", "1.1.40+7a4108d");
302188
302188
  }
302189
302189
  const meterProvider = new import_sdk_metrics2.MeterProvider({
302190
302190
  resource,
@@ -302204,7 +302204,7 @@ async function initializeTelemetry() {
302204
302204
  });
302205
302205
  import_api_logs.logs.setGlobalLoggerProvider(loggerProvider);
302206
302206
  setLoggerProvider(loggerProvider);
302207
- const eventLogger = import_api_logs.logs.getLogger("com.anthropic.vivus_code.events", "1.1.39+5fcd249");
302207
+ const eventLogger = import_api_logs.logs.getLogger("com.anthropic.vivus_code.events", "1.1.40+7a4108d");
302208
302208
  setEventLogger(eventLogger);
302209
302209
  logForDebugging("[3P telemetry] Event logger set successfully");
302210
302210
  process.on("beforeExit", async () => {
@@ -302266,7 +302266,7 @@ Current timeout: ${timeoutMs}ms
302266
302266
  }
302267
302267
  };
302268
302268
  registerCleanup(shutdownTelemetry);
302269
- return meterProvider.getMeter("com.anthropic.vivus_code", "1.1.39+5fcd249");
302269
+ return meterProvider.getMeter("com.anthropic.vivus_code", "1.1.40+7a4108d");
302270
302270
  }
302271
302271
  async function flushTelemetry() {
302272
302272
  const meterProvider = getMeterProvider();
@@ -302952,9 +302952,9 @@ async function assertMinVersion() {
302952
302952
  if (false) {}
302953
302953
  try {
302954
302954
  const versionConfig = await getDynamicConfig_BLOCKS_ON_INIT("tengu_version_config", { minVersion: "0.0.0" });
302955
- if (versionConfig.minVersion && lt("1.1.39+5fcd249", versionConfig.minVersion)) {
302955
+ if (versionConfig.minVersion && lt("1.1.40+7a4108d", versionConfig.minVersion)) {
302956
302956
  console.error(`
302957
- It looks like your version of Vivus (${"1.1.39+5fcd249"}) needs an update.
302957
+ It looks like your version of Vivus (${"1.1.40+7a4108d"}) needs an update.
302958
302958
  A newer version (${versionConfig.minVersion} or higher) is required to continue.
302959
302959
 
302960
302960
  To update, please run:
@@ -303170,7 +303170,7 @@ async function installGlobalPackage(specificVersion) {
303170
303170
  logError2(new AutoUpdaterError("Another process is currently installing an update"));
303171
303171
  logEvent("tengu_auto_updater_lock_contention", {
303172
303172
  pid: process.pid,
303173
- currentVersion: "1.1.39+5fcd249"
303173
+ currentVersion: "1.1.40+7a4108d"
303174
303174
  });
303175
303175
  return "in_progress";
303176
303176
  }
@@ -303179,7 +303179,7 @@ async function installGlobalPackage(specificVersion) {
303179
303179
  if (!env3.isRunningWithBun() && env3.isNpmFromWindowsPath()) {
303180
303180
  logError2(new Error("Windows NPM detected in WSL environment"));
303181
303181
  logEvent("tengu_auto_updater_windows_npm_in_wsl", {
303182
- currentVersion: "1.1.39+5fcd249"
303182
+ currentVersion: "1.1.40+7a4108d"
303183
303183
  });
303184
303184
  console.error(`
303185
303185
  Error: Windows NPM detected in WSL
@@ -303712,7 +303712,7 @@ function detectLinuxGlobPatternWarnings() {
303712
303712
  }
303713
303713
  async function getDoctorDiagnostic() {
303714
303714
  const installationType = await getCurrentInstallationType();
303715
- const version2 = typeof MACRO !== "undefined" ? "1.1.39+5fcd249" : "unknown";
303715
+ const version2 = typeof MACRO !== "undefined" ? "1.1.40+7a4108d" : "unknown";
303716
303716
  const installationPath = await getInstallationPath();
303717
303717
  const invokedBinary = getInvokedBinary();
303718
303718
  const multipleInstallations = await detectMultipleInstallations();
@@ -304645,8 +304645,8 @@ async function updateLatest(channelOrVersion, forceReinstall = false) {
304645
304645
  const maxVersion = await getMaxVersion();
304646
304646
  if (maxVersion && gt(version2, maxVersion)) {
304647
304647
  logForDebugging(`Native installer: maxVersion ${maxVersion} is set, capping update from ${version2} to ${maxVersion}`);
304648
- if (gte("1.1.39+5fcd249", maxVersion)) {
304649
- logForDebugging(`Native installer: current version ${"1.1.39+5fcd249"} is already at or above maxVersion ${maxVersion}, skipping update`);
304648
+ if (gte("1.1.40+7a4108d", maxVersion)) {
304649
+ logForDebugging(`Native installer: current version ${"1.1.40+7a4108d"} is already at or above maxVersion ${maxVersion}, skipping update`);
304650
304650
  logEvent("tengu_native_update_skipped_max_version", {
304651
304651
  latency_ms: Date.now() - startTime,
304652
304652
  max_version: maxVersion,
@@ -304657,7 +304657,7 @@ async function updateLatest(channelOrVersion, forceReinstall = false) {
304657
304657
  version2 = maxVersion;
304658
304658
  }
304659
304659
  }
304660
- if (!forceReinstall && version2 === "1.1.39+5fcd249" && await versionIsAvailable(version2) && await isPossibleVivusBinary(executablePath)) {
304660
+ if (!forceReinstall && version2 === "1.1.40+7a4108d" && await versionIsAvailable(version2) && await isPossibleVivusBinary(executablePath)) {
304661
304661
  logForDebugging(`Found ${version2} at ${executablePath}, skipping install`);
304662
304662
  logEvent("tengu_native_update_complete", {
304663
304663
  latency_ms: Date.now() - startTime,
@@ -356257,10 +356257,10 @@ function roughTokenCountEstimationForBlock(block2) {
356257
356257
  return 2000;
356258
356258
  }
356259
356259
  if (block2.type === "tool_result") {
356260
- return roughTokenCountEstimationForContent(block2.content);
356260
+ return roughTokenCountEstimationForToolContent(block2.content);
356261
356261
  }
356262
356262
  if (block2.type === "tool_use") {
356263
- return roughTokenCountEstimation(block2.name + jsonStringify(block2.input ?? {}));
356263
+ return roughTokenCountEstimation(block2.name + jsonStringify(block2.input ?? {}), bytesPerTokenForFileType("json"));
356264
356264
  }
356265
356265
  if (block2.type === "thinking") {
356266
356266
  return roughTokenCountEstimation(block2.thinking);
@@ -356268,7 +356268,27 @@ function roughTokenCountEstimationForBlock(block2) {
356268
356268
  if (block2.type === "redacted_thinking") {
356269
356269
  return roughTokenCountEstimation(block2.data);
356270
356270
  }
356271
- return roughTokenCountEstimation(jsonStringify(block2));
356271
+ return roughTokenCountEstimation(jsonStringify(block2), bytesPerTokenForFileType("json"));
356272
+ }
356273
+ function roughTokenCountEstimationForToolContent(content) {
356274
+ if (!content) {
356275
+ return 0;
356276
+ }
356277
+ const ratio = bytesPerTokenForFileType("json");
356278
+ if (typeof content === "string") {
356279
+ return roughTokenCountEstimation(content, ratio);
356280
+ }
356281
+ let totalTokens = 0;
356282
+ for (const block2 of content) {
356283
+ if (typeof block2 === "string") {
356284
+ totalTokens += roughTokenCountEstimation(block2, ratio);
356285
+ } else if (block2.type === "text") {
356286
+ totalTokens += roughTokenCountEstimation(block2.text, ratio);
356287
+ } else {
356288
+ totalTokens += roughTokenCountEstimationForBlock(block2);
356289
+ }
356290
+ }
356291
+ return totalTokens;
356272
356292
  }
356273
356293
  async function countTokensWithBedrock({
356274
356294
  model,
@@ -361924,7 +361944,7 @@ function getAnthropicEnvMetadata() {
361924
361944
  function getBuildAgeMinutes() {
361925
361945
  if (false)
361926
361946
  ;
361927
- const buildTime = new Date("2026-08-06T20:06:33.603Z").getTime();
361947
+ const buildTime = new Date("2026-08-06T21:07:26.990Z").getTime();
361928
361948
  if (isNaN(buildTime))
361929
361949
  return;
361930
361950
  return Math.floor((Date.now() - buildTime) / 60000);
@@ -410076,7 +410096,7 @@ var init_filesystem = __esm(() => {
410076
410096
  });
410077
410097
  getBundledSkillsRoot = memoize_default(function getBundledSkillsRoot2() {
410078
410098
  const nonce = randomBytes17(16).toString("hex");
410079
- return join108(getVivusTempDir(), "bundled-skills", "1.1.39+5fcd249", nonce);
410099
+ return join108(getVivusTempDir(), "bundled-skills", "1.1.40+7a4108d", nonce);
410080
410100
  });
410081
410101
  getResolvedWorkingDirPaths = memoize_default(getPathsForPermissionCheck);
410082
410102
  });
@@ -411836,7 +411856,7 @@ function Feedback({
411836
411856
  platform: env3.platform,
411837
411857
  gitRepo: envInfo.isGit,
411838
411858
  terminal: env3.terminal,
411839
- version: "1.1.39+5fcd249",
411859
+ version: "1.1.40+7a4108d",
411840
411860
  transcript: normalizeMessagesForAPI(messages),
411841
411861
  errors: sanitizedErrors,
411842
411862
  lastApiRequest: getLastAPIRequest(),
@@ -412028,7 +412048,7 @@ function Feedback({
412028
412048
  ", ",
412029
412049
  env3.terminal,
412030
412050
  ", v",
412031
- "1.1.39+5fcd249"
412051
+ "1.1.40+7a4108d"
412032
412052
  ]
412033
412053
  }, undefined, true, undefined, this)
412034
412054
  ]
@@ -412134,7 +412154,7 @@ ${sanitizedDescription}
412134
412154
  ` + `**Environment Info**
412135
412155
  ` + `- Platform: ${env3.platform}
412136
412156
  ` + `- Terminal: ${env3.terminal}
412137
- ` + `- Version: ${"1.1.39+5fcd249"}
412157
+ ` + `- Version: ${"1.1.40+7a4108d"}
412138
412158
  ` + `- Feedback ID: ${feedbackId}
412139
412159
  ` + `
412140
412160
  **Errors**
@@ -415266,7 +415286,7 @@ function buildPrimarySection() {
415266
415286
  }, undefined, false, undefined, this);
415267
415287
  return [{
415268
415288
  label: "Version",
415269
- value: "1.1.39+5fcd249"
415289
+ value: "1.1.40+7a4108d"
415270
415290
  }, {
415271
415291
  label: "Session name",
415272
415292
  value: nameValue
@@ -419048,7 +419068,7 @@ function Config({
419048
419068
  }
419049
419069
  }, undefined, false, undefined, this)
419050
419070
  }, undefined, false, undefined, this) : showSubmenu === "ChannelDowngrade" ? /* @__PURE__ */ jsx_dev_runtime179.jsxDEV(ChannelDowngradeDialog, {
419051
- currentVersion: "1.1.39+5fcd249",
419071
+ currentVersion: "1.1.40+7a4108d",
419052
419072
  onChoice: (choice) => {
419053
419073
  setShowSubmenu(null);
419054
419074
  setTabsHidden(false);
@@ -419060,7 +419080,7 @@ function Config({
419060
419080
  autoUpdatesChannel: "stable"
419061
419081
  };
419062
419082
  if (choice === "stay") {
419063
- newSettings.minimumVersion = "1.1.39+5fcd249";
419083
+ newSettings.minimumVersion = "1.1.40+7a4108d";
419064
419084
  }
419065
419085
  updateSettingsForSource("userSettings", newSettings);
419066
419086
  setSettingsData((prev_27) => ({
@@ -427255,7 +427275,7 @@ function HelpV2(t0) {
427255
427275
  let t6;
427256
427276
  if ($2[31] !== tabs) {
427257
427277
  t6 = /* @__PURE__ */ jsx_dev_runtime206.jsxDEV(Tabs, {
427258
- title: `Vivus v${"1.1.39+5fcd249"}`,
427278
+ title: `Vivus v${"1.1.40+7a4108d"}`,
427259
427279
  color: "professionalBlue",
427260
427280
  defaultTab: "general",
427261
427281
  children: tabs
@@ -451481,7 +451501,7 @@ function getAllReleaseNotes(changelogContent = getStoredChangelogFromMemory()) {
451481
451501
  return [];
451482
451502
  }
451483
451503
  }
451484
- async function checkForReleaseNotes(lastSeenVersion, currentVersion = "1.1.39+5fcd249") {
451504
+ async function checkForReleaseNotes(lastSeenVersion, currentVersion = "1.1.40+7a4108d") {
451485
451505
  if (process.env.USER_TYPE === "ant") {
451486
451506
  const changelog = "";
451487
451507
  if (changelog) {
@@ -451508,7 +451528,7 @@ async function checkForReleaseNotes(lastSeenVersion, currentVersion = "1.1.39+5f
451508
451528
  releaseNotes
451509
451529
  };
451510
451530
  }
451511
- function checkForReleaseNotesSync(lastSeenVersion, currentVersion = "1.1.39+5fcd249") {
451531
+ function checkForReleaseNotesSync(lastSeenVersion, currentVersion = "1.1.40+7a4108d") {
451512
451532
  if (process.env.USER_TYPE === "ant") {
451513
451533
  const changelog = "";
451514
451534
  if (changelog) {
@@ -452678,7 +452698,7 @@ function getRecentActivitySync() {
452678
452698
  return cachedActivity;
452679
452699
  }
452680
452700
  function getLogoDisplayData() {
452681
- const version2 = process.env.DEMO_VERSION ?? "1.1.39+5fcd249";
452701
+ const version2 = process.env.DEMO_VERSION ?? "1.1.40+7a4108d";
452682
452702
  const serverUrl = getDirectConnectServerUrl();
452683
452703
  const displayPath = process.env.DEMO_VERSION ? "/code/vivus" : getDisplayPath(getCwd());
452684
452704
  const cwd2 = serverUrl ? `${displayPath} in ${serverUrl.replace(/^https?:\/\//, "")}` : displayPath;
@@ -454205,7 +454225,7 @@ function LogoV2() {
454205
454225
  if ($2[2] === Symbol.for("react.memo_cache_sentinel")) {
454206
454226
  t2 = () => {
454207
454227
  const currentConfig = getGlobalConfig();
454208
- if (currentConfig.lastReleaseNotesSeen === "1.1.39+5fcd249") {
454228
+ if (currentConfig.lastReleaseNotesSeen === "1.1.40+7a4108d") {
454209
454229
  return;
454210
454230
  }
454211
454231
  saveGlobalConfig(_temp329);
@@ -454881,12 +454901,12 @@ function LogoV2() {
454881
454901
  return t41;
454882
454902
  }
454883
454903
  function _temp329(current) {
454884
- if (current.lastReleaseNotesSeen === "1.1.39+5fcd249") {
454904
+ if (current.lastReleaseNotesSeen === "1.1.40+7a4108d") {
454885
454905
  return current;
454886
454906
  }
454887
454907
  return {
454888
454908
  ...current,
454889
- lastReleaseNotesSeen: "1.1.39+5fcd249"
454909
+ lastReleaseNotesSeen: "1.1.40+7a4108d"
454890
454910
  };
454891
454911
  }
454892
454912
  function _temp245(s_0) {
@@ -481188,7 +481208,7 @@ async function captureMemoryDiagnostics(trigger, dumpNumber = 0) {
481188
481208
  smapsRollup,
481189
481209
  platform: process.platform,
481190
481210
  nodeVersion: process.version,
481191
- ccVersion: "1.1.39+5fcd249"
481211
+ ccVersion: "1.1.40+7a4108d"
481192
481212
  };
481193
481213
  }
481194
481214
  async function performHeapDump(trigger = "manual", dumpNumber = 0) {
@@ -481774,7 +481794,7 @@ var init_bridge_kick = __esm(() => {
481774
481794
  var call56 = async () => {
481775
481795
  return {
481776
481796
  type: "text",
481777
- value: `${"1.1.39+5fcd249"} (built ${"2026-08-06T20:06:33.603Z"})`
481797
+ value: `${"1.1.40+7a4108d"} (built ${"2026-08-06T21:07:26.990Z"})`
481778
481798
  };
481779
481799
  }, version2, version_default;
481780
481800
  var init_version = __esm(() => {
@@ -491094,7 +491114,7 @@ function generateHtmlReport(data, insights) {
491094
491114
  </html>`;
491095
491115
  }
491096
491116
  function buildExportData(data, insights, facets, remoteStats) {
491097
- const version3 = typeof MACRO !== "undefined" ? "1.1.39+5fcd249" : "unknown";
491117
+ const version3 = typeof MACRO !== "undefined" ? "1.1.40+7a4108d" : "unknown";
491098
491118
  const remote_hosts_collected = remoteStats?.hosts.filter((h2) => h2.sessionCount > 0).map((h2) => h2.name);
491099
491119
  const facets_summary = {
491100
491120
  total: facets.size,
@@ -495206,7 +495226,7 @@ var init_sessionStorage = __esm(() => {
495206
495226
  init_settings2();
495207
495227
  init_slowOperations();
495208
495228
  init_uuid();
495209
- VERSION5 = typeof MACRO !== "undefined" ? "1.1.39+5fcd249" : "unknown";
495229
+ VERSION5 = typeof MACRO !== "undefined" ? "1.1.40+7a4108d" : "unknown";
495210
495230
  MAX_TOMBSTONE_REWRITE_BYTES = 50 * 1024 * 1024;
495211
495231
  SKIP_FIRST_PROMPT_PATTERN = /^(?:\s*<[a-z][\w-]*[\s>]|\[Request interrupted by user[^\]]*\])/;
495212
495232
  EPHEMERAL_PROGRESS_TYPES = new Set([
@@ -498078,7 +498098,7 @@ function buildSystemInitMessage(inputs) {
498078
498098
  slash_commands: inputs.commands.filter((c4) => c4.userInvocable !== false).map((c4) => c4.name),
498079
498099
  apiKeySource: getAnthropicApiKeyWithSource().source,
498080
498100
  betas: getSdkBetas(),
498081
- vivus_code_version: "1.1.39+5fcd249",
498101
+ vivus_code_version: "1.1.40+7a4108d",
498082
498102
  output_style: outputStyle2,
498083
498103
  agents: inputs.agents.map((agent) => agent.agentType),
498084
498104
  skills: inputs.skills.filter((s) => s.userInvocable !== false).map((skill) => skill.name),
@@ -512790,7 +512810,7 @@ var init_useVoiceEnabled = __esm(() => {
512790
512810
  function getSemverPart(version3) {
512791
512811
  return `${import_semver12.major(version3, { loose: true })}.${import_semver12.minor(version3, { loose: true })}.${import_semver12.patch(version3, { loose: true })}`;
512792
512812
  }
512793
- function useUpdateNotification(updatedVersion, initialVersion = "1.1.39+5fcd249") {
512813
+ function useUpdateNotification(updatedVersion, initialVersion = "1.1.40+7a4108d") {
512794
512814
  const [lastNotifiedSemver, setLastNotifiedSemver] = import_react228.useState(() => getSemverPart(initialVersion));
512795
512815
  if (!updatedVersion) {
512796
512816
  return null;
@@ -512830,7 +512850,7 @@ function AutoUpdater({
512830
512850
  return;
512831
512851
  }
512832
512852
  if (false) {}
512833
- const currentVersion = "1.1.39+5fcd249";
512853
+ const currentVersion = "1.1.40+7a4108d";
512834
512854
  const channel = getInitialSettings()?.autoUpdatesChannel ?? "latest";
512835
512855
  let latestVersion = await getLatestVersion(channel);
512836
512856
  const isDisabled = isAutoUpdaterDisabled();
@@ -513043,12 +513063,12 @@ function NativeAutoUpdater({
513043
513063
  logEvent("tengu_native_auto_updater_start", {});
513044
513064
  try {
513045
513065
  const maxVersion = await getMaxVersion();
513046
- if (maxVersion && gt("1.1.39+5fcd249", maxVersion)) {
513066
+ if (maxVersion && gt("1.1.40+7a4108d", maxVersion)) {
513047
513067
  const msg = await getMaxVersionMessage();
513048
513068
  setMaxVersionIssue(msg ?? "affects your version");
513049
513069
  }
513050
513070
  const result = await installLatest(channel);
513051
- const currentVersion = "1.1.39+5fcd249";
513071
+ const currentVersion = "1.1.40+7a4108d";
513052
513072
  const latencyMs = Date.now() - startTime;
513053
513073
  if (result.lockFailed) {
513054
513074
  logEvent("tengu_native_auto_updater_lock_contention", {
@@ -513185,17 +513205,17 @@ function PackageManagerAutoUpdater(t0) {
513185
513205
  const maxVersion = await getMaxVersion();
513186
513206
  if (maxVersion && latest && gt(latest, maxVersion)) {
513187
513207
  logForDebugging(`PackageManagerAutoUpdater: maxVersion ${maxVersion} is set, capping update from ${latest} to ${maxVersion}`);
513188
- if (gte("1.1.39+5fcd249", maxVersion)) {
513189
- logForDebugging(`PackageManagerAutoUpdater: current version ${"1.1.39+5fcd249"} is already at or above maxVersion ${maxVersion}, skipping update`);
513208
+ if (gte("1.1.40+7a4108d", maxVersion)) {
513209
+ logForDebugging(`PackageManagerAutoUpdater: current version ${"1.1.40+7a4108d"} is already at or above maxVersion ${maxVersion}, skipping update`);
513190
513210
  setUpdateAvailable(false);
513191
513211
  return;
513192
513212
  }
513193
513213
  latest = maxVersion;
513194
513214
  }
513195
- const hasUpdate = latest && !gte("1.1.39+5fcd249", latest) && !shouldSkipVersion(latest);
513215
+ const hasUpdate = latest && !gte("1.1.40+7a4108d", latest) && !shouldSkipVersion(latest);
513196
513216
  setUpdateAvailable(!!hasUpdate);
513197
513217
  if (hasUpdate) {
513198
- logForDebugging(`PackageManagerAutoUpdater: Update available ${"1.1.39+5fcd249"} -> ${latest}`);
513218
+ logForDebugging(`PackageManagerAutoUpdater: Update available ${"1.1.40+7a4108d"} -> ${latest}`);
513199
513219
  }
513200
513220
  };
513201
513221
  $2[0] = t1;
@@ -513229,7 +513249,7 @@ function PackageManagerAutoUpdater(t0) {
513229
513249
  wrap: "truncate",
513230
513250
  children: [
513231
513251
  "currentVersion: ",
513232
- "1.1.39+5fcd249"
513252
+ "1.1.40+7a4108d"
513233
513253
  ]
513234
513254
  }, undefined, true, undefined, this);
513235
513255
  $2[3] = verbose;
@@ -521413,7 +521433,7 @@ function buildStatusLineCommandInput(permissionMode, exceeds200kTokens, settings
521413
521433
  project_dir: getOriginalCwd(),
521414
521434
  added_dirs: addedDirs
521415
521435
  },
521416
- version: "1.1.39+5fcd249",
521436
+ version: "1.1.40+7a4108d",
521417
521437
  output_style: {
521418
521438
  name: outputStyleName
521419
521439
  },
@@ -533065,7 +533085,7 @@ async function submitTranscriptShare(messages, trigger, appearanceId) {
533065
533085
  } catch {}
533066
533086
  const data = {
533067
533087
  trigger,
533068
- version: "1.1.39+5fcd249",
533088
+ version: "1.1.40+7a4108d",
533069
533089
  platform: process.platform,
533070
533090
  transcript,
533071
533091
  subagentTranscripts: Object.keys(subagentTranscripts).length > 0 ? subagentTranscripts : undefined,
@@ -544536,7 +544556,7 @@ function WelcomeV2() {
544536
544556
  dimColor: true,
544537
544557
  children: [
544538
544558
  "v",
544539
- "1.1.39+5fcd249",
544559
+ "1.1.40+7a4108d",
544540
544560
  " "
544541
544561
  ]
544542
544562
  }, undefined, true, undefined, this)
@@ -544736,7 +544756,7 @@ function WelcomeV2() {
544736
544756
  dimColor: true,
544737
544757
  children: [
544738
544758
  "v",
544739
- "1.1.39+5fcd249",
544759
+ "1.1.40+7a4108d",
544740
544760
  " "
544741
544761
  ]
544742
544762
  }, undefined, true, undefined, this)
@@ -544962,7 +544982,7 @@ function AppleTerminalWelcomeV2(t0) {
544962
544982
  dimColor: true,
544963
544983
  children: [
544964
544984
  "v",
544965
- "1.1.39+5fcd249",
544985
+ "1.1.40+7a4108d",
544966
544986
  " "
544967
544987
  ]
544968
544988
  }, undefined, true, undefined, this);
@@ -545216,7 +545236,7 @@ function AppleTerminalWelcomeV2(t0) {
545216
545236
  dimColor: true,
545217
545237
  children: [
545218
545238
  "v",
545219
- "1.1.39+5fcd249",
545239
+ "1.1.40+7a4108d",
545220
545240
  " "
545221
545241
  ]
545222
545242
  }, undefined, true, undefined, this);
@@ -548289,7 +548309,7 @@ function appendToLog(path25, message) {
548289
548309
  cwd: getFsImplementation().cwd(),
548290
548310
  userType: process.env.USER_TYPE,
548291
548311
  sessionId: getSessionId(),
548292
- version: "1.1.39+5fcd249"
548312
+ version: "1.1.40+7a4108d"
548293
548313
  };
548294
548314
  getLogWriter(path25).write(messageWithTimestamp);
548295
548315
  }
@@ -552284,8 +552304,8 @@ async function getEnvLessBridgeConfig() {
552284
552304
  }
552285
552305
  async function checkEnvLessBridgeMinVersion() {
552286
552306
  const cfg = await getEnvLessBridgeConfig();
552287
- if (cfg.min_version && lt("1.1.39+5fcd249", cfg.min_version)) {
552288
- return `Your version of Vivus (${"1.1.39+5fcd249"}) is too old for Remote Control.
552307
+ if (cfg.min_version && lt("1.1.40+7a4108d", cfg.min_version)) {
552308
+ return `Your version of Vivus (${"1.1.40+7a4108d"}) is too old for Remote Control.
552289
552309
  Version ${cfg.min_version} or higher is required. Run \`vivus update\` to update.`;
552290
552310
  }
552291
552311
  return null;
@@ -552759,7 +552779,7 @@ async function initBridgeCore(params) {
552759
552779
  const rawApi = createBridgeApiClient({
552760
552780
  baseUrl,
552761
552781
  getAccessToken,
552762
- runnerVersion: "1.1.39+5fcd249",
552782
+ runnerVersion: "1.1.40+7a4108d",
552763
552783
  onDebug: logForDebugging,
552764
552784
  onAuth401,
552765
552785
  getTrustedDeviceToken
@@ -558438,7 +558458,7 @@ async function startMCPServer(cwd3, debug2, verbose) {
558438
558458
  setCwd(cwd3);
558439
558459
  const server = new Server({
558440
558460
  name: "vivus/tengu",
558441
- version: "1.1.39+5fcd249"
558461
+ version: "1.1.40+7a4108d"
558442
558462
  }, {
558443
558463
  capabilities: {
558444
558464
  tools: {}
@@ -560171,7 +560191,7 @@ __export(exports_update, {
560171
560191
  });
560172
560192
  async function update() {
560173
560193
  logEvent("tengu_update_check", {});
560174
- writeToStdout(`Current version: ${"1.1.39+5fcd249"}
560194
+ writeToStdout(`Current version: ${"1.1.40+7a4108d"}
560175
560195
  `);
560176
560196
  const channel = getInitialSettings()?.autoUpdatesChannel ?? "latest";
560177
560197
  writeToStdout(`Checking for updates to ${channel} version...
@@ -560246,8 +560266,8 @@ async function update() {
560246
560266
  writeToStdout(`Vivus is managed by Homebrew.
560247
560267
  `);
560248
560268
  const latest = await getLatestVersion(channel);
560249
- if (latest && !gte("1.1.39+5fcd249", latest)) {
560250
- writeToStdout(`Update available: ${"1.1.39+5fcd249"} → ${latest}
560269
+ if (latest && !gte("1.1.40+7a4108d", latest)) {
560270
+ writeToStdout(`Update available: ${"1.1.40+7a4108d"} → ${latest}
560251
560271
  `);
560252
560272
  writeToStdout(`
560253
560273
  `);
@@ -560263,8 +560283,8 @@ async function update() {
560263
560283
  writeToStdout(`Vivus is managed by winget.
560264
560284
  `);
560265
560285
  const latest = await getLatestVersion(channel);
560266
- if (latest && !gte("1.1.39+5fcd249", latest)) {
560267
- writeToStdout(`Update available: ${"1.1.39+5fcd249"} → ${latest}
560286
+ if (latest && !gte("1.1.40+7a4108d", latest)) {
560287
+ writeToStdout(`Update available: ${"1.1.40+7a4108d"} → ${latest}
560268
560288
  `);
560269
560289
  writeToStdout(`
560270
560290
  `);
@@ -560280,8 +560300,8 @@ async function update() {
560280
560300
  writeToStdout(`Vivus is managed by apk.
560281
560301
  `);
560282
560302
  const latest = await getLatestVersion(channel);
560283
- if (latest && !gte("1.1.39+5fcd249", latest)) {
560284
- writeToStdout(`Update available: ${"1.1.39+5fcd249"} → ${latest}
560303
+ if (latest && !gte("1.1.40+7a4108d", latest)) {
560304
+ writeToStdout(`Update available: ${"1.1.40+7a4108d"} → ${latest}
560285
560305
  `);
560286
560306
  writeToStdout(`
560287
560307
  `);
@@ -560346,11 +560366,11 @@ async function update() {
560346
560366
  `);
560347
560367
  await gracefulShutdown(1);
560348
560368
  }
560349
- if (result.latestVersion === "1.1.39+5fcd249") {
560350
- writeToStdout(source_default.green(`Vivus is up to date (${"1.1.39+5fcd249"})`) + `
560369
+ if (result.latestVersion === "1.1.40+7a4108d") {
560370
+ writeToStdout(source_default.green(`Vivus is up to date (${"1.1.40+7a4108d"})`) + `
560351
560371
  `);
560352
560372
  } else {
560353
- writeToStdout(source_default.green(`Successfully updated from ${"1.1.39+5fcd249"} to version ${result.latestVersion}`) + `
560373
+ writeToStdout(source_default.green(`Successfully updated from ${"1.1.40+7a4108d"} to version ${result.latestVersion}`) + `
560354
560374
  `);
560355
560375
  await regenerateCompletionCache();
560356
560376
  }
@@ -560407,12 +560427,12 @@ async function update() {
560407
560427
  `);
560408
560428
  await gracefulShutdown(1);
560409
560429
  }
560410
- if (latestVersion === "1.1.39+5fcd249") {
560411
- writeToStdout(source_default.green(`Vivus is up to date (${"1.1.39+5fcd249"})`) + `
560430
+ if (latestVersion === "1.1.40+7a4108d") {
560431
+ writeToStdout(source_default.green(`Vivus is up to date (${"1.1.40+7a4108d"})`) + `
560412
560432
  `);
560413
560433
  await gracefulShutdown(0);
560414
560434
  }
560415
- writeToStdout(`New version available: ${latestVersion} (current: ${"1.1.39+5fcd249"})
560435
+ writeToStdout(`New version available: ${latestVersion} (current: ${"1.1.40+7a4108d"})
560416
560436
  `);
560417
560437
  writeToStdout(`Installing update...
560418
560438
  `);
@@ -560457,7 +560477,7 @@ async function update() {
560457
560477
  logForDebugging(`update: Installation status: ${status2}`);
560458
560478
  switch (status2) {
560459
560479
  case "success":
560460
- writeToStdout(source_default.green(`Successfully updated from ${"1.1.39+5fcd249"} to version ${latestVersion}`) + `
560480
+ writeToStdout(source_default.green(`Successfully updated from ${"1.1.40+7a4108d"} to version ${latestVersion}`) + `
560461
560481
  `);
560462
560482
  await regenerateCompletionCache();
560463
560483
  break;
@@ -561431,7 +561451,7 @@ function completeOnboarding() {
561431
561451
  saveGlobalConfig((current) => ({
561432
561452
  ...current,
561433
561453
  hasCompletedOnboarding: true,
561434
- lastOnboardingVersion: "1.1.39+5fcd249"
561454
+ lastOnboardingVersion: "1.1.40+7a4108d"
561435
561455
  }));
561436
561456
  }
561437
561457
  function showDialog(root2, renderer) {
@@ -565650,7 +565670,7 @@ ${customInstructions}` : customInstructions;
565650
565670
  }
565651
565671
  }
565652
565672
  logForDiagnosticsNoPII("info", "started", {
565653
- version: "1.1.39+5fcd249",
565673
+ version: "1.1.40+7a4108d",
565654
565674
  is_native_binary: isInBundledMode()
565655
565675
  });
565656
565676
  registerCleanup(async () => {
@@ -566448,7 +566468,7 @@ Usage: vivus --remote "your task description"`, () => gracefulShutdown(1));
566448
566468
  pendingHookMessages
566449
566469
  }, renderAndRun);
566450
566470
  }
566451
- }).version("1.1.39+5fcd249 (Vivus)", "-v, --version", "Output the version number");
566471
+ }).version("1.1.40+7a4108d (Vivus)", "-v, --version", "Output the version number");
566452
566472
  program2.option("-w, --worktree [name]", "Create a new git worktree for this session (optionally specify a name)");
566453
566473
  program2.option("--tmux", "Create a tmux session for the worktree (requires --worktree). Uses iTerm2 native panes when available; use --tmux=classic for traditional tmux.");
566454
566474
  if (canUserConfigureAdvisor()) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vivus-agent",
3
- "version": "1.1.39",
3
+ "version": "1.1.40",
4
4
  "description": "Vivus — local AI coding agent",
5
5
  "type": "module",
6
6
  "main": "dist/main.js",