@ainative/cody-cli 0.7.6 → 0.7.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/cli.js +101 -93
  2. package/package.json +1 -1
package/dist/cli.js CHANGED
@@ -172976,7 +172976,7 @@ var init_auth2 = __esm(() => {
172976
172976
 
172977
172977
  // src/utils/userAgent.ts
172978
172978
  function getCodyUserAgent() {
172979
- return `cody-cli/${"0.7.6"}`;
172979
+ return `cody-cli/${"0.7.8"}`;
172980
172980
  }
172981
172981
 
172982
172982
  // src/utils/workloadContext.ts
@@ -172998,7 +172998,7 @@ function getUserAgent() {
172998
172998
  const clientApp = process.env.CLAUDE_AGENT_SDK_CLIENT_APP ? `, client-app/${process.env.CLAUDE_AGENT_SDK_CLIENT_APP}` : "";
172999
172999
  const workload = getWorkload();
173000
173000
  const workloadSuffix = workload ? `, workload/${workload}` : "";
173001
- return `claude-cli/${"0.7.6"} (${"external"}, ${process.env.CLAUDE_CODE_ENTRYPOINT ?? "cli"}${agentSdkVersion}${clientApp}${workloadSuffix})`;
173001
+ return `claude-cli/${"0.7.8"} (${"external"}, ${process.env.CLAUDE_CODE_ENTRYPOINT ?? "cli"}${agentSdkVersion}${clientApp}${workloadSuffix})`;
173002
173002
  }
173003
173003
  function getMCPUserAgent() {
173004
173004
  const parts = [];
@@ -173012,7 +173012,7 @@ function getMCPUserAgent() {
173012
173012
  parts.push(`client-app/${process.env.CLAUDE_AGENT_SDK_CLIENT_APP}`);
173013
173013
  }
173014
173014
  const suffix = parts.length > 0 ? ` (${parts.join(", ")})` : "";
173015
- return `claude-code/${"0.7.6"}${suffix}`;
173015
+ return `claude-code/${"0.7.8"}${suffix}`;
173016
173016
  }
173017
173017
  function getWebFetchUserAgent() {
173018
173018
  return `Claude-User (${getCodyUserAgent()}; +https://support.anthropic.com/)`;
@@ -173150,7 +173150,7 @@ var init_user = __esm(() => {
173150
173150
  deviceId,
173151
173151
  sessionId: getSessionId(),
173152
173152
  email: getEmail(),
173153
- appVersion: "0.7.6",
173153
+ appVersion: "0.7.8",
173154
173154
  platform: getHostPlatformForAnalytics(),
173155
173155
  organizationUuid,
173156
173156
  accountUuid,
@@ -180842,7 +180842,7 @@ var init_metadata = __esm(() => {
180842
180842
  COMPOUND_OPERATOR_REGEX = /\s*(?:&&|\|\||[;|])\s*/;
180843
180843
  WHITESPACE_REGEX = /\s+/;
180844
180844
  getVersionBase = memoize_default(() => {
180845
- const match = "0.7.6".match(/^\d+\.\d+\.\d+(?:-[a-z]+)?/);
180845
+ const match = "0.7.8".match(/^\d+\.\d+\.\d+(?:-[a-z]+)?/);
180846
180846
  return match ? match[0] : undefined;
180847
180847
  });
180848
180848
  buildEnvContext = memoize_default(async () => {
@@ -180882,9 +180882,9 @@ var init_metadata = __esm(() => {
180882
180882
  isGithubAction: isEnvTruthy(process.env.GITHUB_ACTIONS),
180883
180883
  isClaudeCodeAction: isEnvTruthy(process.env.CLAUDE_CODE_ACTION),
180884
180884
  isClaudeAiAuth: isClaudeAISubscriber(),
180885
- version: "0.7.6",
180885
+ version: "0.7.8",
180886
180886
  versionBase: getVersionBase(),
180887
- buildTime: "1775371392",
180887
+ buildTime: "1775372100",
180888
180888
  deploymentEnvironment: env4.detectDeploymentEnvironment(),
180889
180889
  ...isEnvTruthy(process.env.GITHUB_ACTIONS) && {
180890
180890
  githubEventName: process.env.GITHUB_EVENT_NAME,
@@ -181502,7 +181502,7 @@ function initialize1PEventLogging() {
181502
181502
  const platform3 = getPlatform();
181503
181503
  const attributes = {
181504
181504
  [import_semantic_conventions.ATTR_SERVICE_NAME]: "cody-cli",
181505
- [import_semantic_conventions.ATTR_SERVICE_VERSION]: "0.7.6"
181505
+ [import_semantic_conventions.ATTR_SERVICE_VERSION]: "0.7.8"
181506
181506
  };
181507
181507
  if (platform3 === "wsl") {
181508
181508
  const wslVersion = getWslVersion();
@@ -181529,7 +181529,7 @@ function initialize1PEventLogging() {
181529
181529
  })
181530
181530
  ]
181531
181531
  });
181532
- firstPartyEventLogger = firstPartyEventLoggerProvider.getLogger("com.ainative.cody_cli.events", "0.7.6");
181532
+ firstPartyEventLogger = firstPartyEventLoggerProvider.getLogger("com.ainative.cody_cli.events", "0.7.8");
181533
181533
  }
181534
181534
  async function reinitialize1PEventLoggingIfConfigChanged() {
181535
181535
  if (!is1PEventLoggingEnabled() || !firstPartyEventLoggerProvider) {
@@ -183354,7 +183354,7 @@ function getAttributionHeader(fingerprint) {
183354
183354
  if (!isAttributionHeaderEnabled()) {
183355
183355
  return "";
183356
183356
  }
183357
- const version6 = `${"0.7.6"}.${fingerprint}`;
183357
+ const version6 = `${"0.7.8"}.${fingerprint}`;
183358
183358
  const entrypoint = process.env.CLAUDE_CODE_ENTRYPOINT ?? "unknown";
183359
183359
  const cch = "";
183360
183360
  const workload = getWorkload();
@@ -247429,7 +247429,7 @@ function getTelemetryAttributes() {
247429
247429
  attributes["session.id"] = sessionId;
247430
247430
  }
247431
247431
  if (shouldIncludeAttribute("OTEL_METRICS_INCLUDE_VERSION")) {
247432
- attributes["app.version"] = "0.7.6";
247432
+ attributes["app.version"] = "0.7.8";
247433
247433
  }
247434
247434
  const oauthAccount = getOauthAccountInfo();
247435
247435
  if (oauthAccount) {
@@ -278606,7 +278606,7 @@ function getInstallationEnv() {
278606
278606
  return;
278607
278607
  }
278608
278608
  function getClaudeCodeVersion() {
278609
- return "0.7.6";
278609
+ return "0.7.8";
278610
278610
  }
278611
278611
  async function getInstalledVSCodeExtensionVersion(command) {
278612
278612
  const { stdout } = await execFileNoThrow(command, ["--list-extensions", "--show-versions"], {
@@ -284140,7 +284140,7 @@ async function setupSdkMcpClients(sdkMcpConfigs, sendMcpMessage) {
284140
284140
  const client4 = new Client({
284141
284141
  name: "claude-code",
284142
284142
  title: "Claude Code",
284143
- version: "0.7.6",
284143
+ version: "0.7.8",
284144
284144
  description: "Anthropic's agentic coding tool",
284145
284145
  websiteUrl: PRODUCT_URL
284146
284146
  }, {
@@ -284494,7 +284494,7 @@ var init_client8 = __esm(() => {
284494
284494
  const client4 = new Client({
284495
284495
  name: "claude-code",
284496
284496
  title: "Claude Code",
284497
- version: "0.7.6",
284497
+ version: "0.7.8",
284498
284498
  description: "Anthropic's agentic coding tool",
284499
284499
  websiteUrl: PRODUCT_URL
284500
284500
  }, {
@@ -332626,7 +332626,7 @@ async function initializeBetaTracing(resource) {
332626
332626
  });
332627
332627
  import_api_logs.logs.setGlobalLoggerProvider(loggerProvider);
332628
332628
  setLoggerProvider(loggerProvider);
332629
- const eventLogger = import_api_logs.logs.getLogger("com.anthropic.claude_code.events", "0.7.6");
332629
+ const eventLogger = import_api_logs.logs.getLogger("com.anthropic.claude_code.events", "0.7.8");
332630
332630
  setEventLogger(eventLogger);
332631
332631
  process.on("beforeExit", async () => {
332632
332632
  await loggerProvider?.forceFlush();
@@ -332666,7 +332666,7 @@ async function initializeTelemetry() {
332666
332666
  const platform5 = getPlatform();
332667
332667
  const baseAttributes = {
332668
332668
  [import_semantic_conventions2.ATTR_SERVICE_NAME]: "claude-code",
332669
- [import_semantic_conventions2.ATTR_SERVICE_VERSION]: "0.7.6"
332669
+ [import_semantic_conventions2.ATTR_SERVICE_VERSION]: "0.7.8"
332670
332670
  };
332671
332671
  if (platform5 === "wsl") {
332672
332672
  const wslVersion = getWslVersion();
@@ -332711,7 +332711,7 @@ async function initializeTelemetry() {
332711
332711
  } catch {}
332712
332712
  };
332713
332713
  registerCleanup(shutdownTelemetry2);
332714
- return meterProvider2.getMeter("com.anthropic.claude_code", "0.7.6");
332714
+ return meterProvider2.getMeter("com.anthropic.claude_code", "0.7.8");
332715
332715
  }
332716
332716
  const meterProvider = new import_sdk_metrics2.MeterProvider({
332717
332717
  resource,
@@ -332731,7 +332731,7 @@ async function initializeTelemetry() {
332731
332731
  });
332732
332732
  import_api_logs.logs.setGlobalLoggerProvider(loggerProvider);
332733
332733
  setLoggerProvider(loggerProvider);
332734
- const eventLogger = import_api_logs.logs.getLogger("com.anthropic.claude_code.events", "0.7.6");
332734
+ const eventLogger = import_api_logs.logs.getLogger("com.anthropic.claude_code.events", "0.7.8");
332735
332735
  setEventLogger(eventLogger);
332736
332736
  logForDebugging("[3P telemetry] Event logger set successfully");
332737
332737
  process.on("beforeExit", async () => {
@@ -332793,7 +332793,7 @@ Current timeout: ${timeoutMs}ms
332793
332793
  }
332794
332794
  };
332795
332795
  registerCleanup(shutdownTelemetry);
332796
- return meterProvider.getMeter("com.anthropic.claude_code", "0.7.6");
332796
+ return meterProvider.getMeter("com.anthropic.claude_code", "0.7.8");
332797
332797
  }
332798
332798
  async function flushTelemetry() {
332799
332799
  const meterProvider = getMeterProvider();
@@ -333482,9 +333482,9 @@ async function assertMinVersion() {
333482
333482
  }
333483
333483
  try {
333484
333484
  const versionConfig = await getDynamicConfig_BLOCKS_ON_INIT("tengu_version_config", { minVersion: "0.0.0" });
333485
- if (versionConfig.minVersion && lt("0.7.6", versionConfig.minVersion)) {
333485
+ if (versionConfig.minVersion && lt("0.7.8", versionConfig.minVersion)) {
333486
333486
  console.error(`
333487
- It looks like your version of Cody CLI (${"0.7.6"}) needs an update.
333487
+ It looks like your version of Cody CLI (${"0.7.8"}) needs an update.
333488
333488
  A newer version (${versionConfig.minVersion} or higher) is required to continue.
333489
333489
 
333490
333490
  To update, please run:
@@ -333721,7 +333721,7 @@ async function installGlobalPackage(specificVersion) {
333721
333721
  logError2(new AutoUpdaterError("Another process is currently installing an update"));
333722
333722
  logEvent("tengu_auto_updater_lock_contention", {
333723
333723
  pid: process.pid,
333724
- currentVersion: "0.7.6"
333724
+ currentVersion: "0.7.8"
333725
333725
  });
333726
333726
  return "in_progress";
333727
333727
  }
@@ -333730,7 +333730,7 @@ async function installGlobalPackage(specificVersion) {
333730
333730
  if (!env4.isRunningWithBun() && env4.isNpmFromWindowsPath()) {
333731
333731
  logError2(new Error("Windows NPM detected in WSL environment"));
333732
333732
  logEvent("tengu_auto_updater_windows_npm_in_wsl", {
333733
- currentVersion: "0.7.6"
333733
+ currentVersion: "0.7.8"
333734
333734
  });
333735
333735
  console.error(`
333736
333736
  Error: Windows NPM detected in WSL
@@ -334265,7 +334265,7 @@ function detectLinuxGlobPatternWarnings() {
334265
334265
  }
334266
334266
  async function getDoctorDiagnostic() {
334267
334267
  const installationType = await getCurrentInstallationType();
334268
- const version6 = typeof MACRO !== "undefined" ? "0.7.6" : "unknown";
334268
+ const version6 = typeof MACRO !== "undefined" ? "0.7.8" : "unknown";
334269
334269
  const installationPath = await getInstallationPath();
334270
334270
  const invokedBinary = getInvokedBinary();
334271
334271
  const multipleInstallations = await detectMultipleInstallations();
@@ -335100,8 +335100,8 @@ async function updateLatest(channelOrVersion, forceReinstall = false) {
335100
335100
  const maxVersion = await getMaxVersion();
335101
335101
  if (maxVersion && gt(version6, maxVersion)) {
335102
335102
  logForDebugging(`Native installer: maxVersion ${maxVersion} is set, capping update from ${version6} to ${maxVersion}`);
335103
- if (gte("0.7.6", maxVersion)) {
335104
- logForDebugging(`Native installer: current version ${"0.7.6"} is already at or above maxVersion ${maxVersion}, skipping update`);
335103
+ if (gte("0.7.8", maxVersion)) {
335104
+ logForDebugging(`Native installer: current version ${"0.7.8"} is already at or above maxVersion ${maxVersion}, skipping update`);
335105
335105
  logEvent("tengu_native_update_skipped_max_version", {
335106
335106
  latency_ms: Date.now() - startTime,
335107
335107
  max_version: maxVersion,
@@ -335112,7 +335112,7 @@ async function updateLatest(channelOrVersion, forceReinstall = false) {
335112
335112
  version6 = maxVersion;
335113
335113
  }
335114
335114
  }
335115
- if (!forceReinstall && version6 === "0.7.6" && await versionIsAvailable(version6) && await isPossibleClaudeBinary(executablePath)) {
335115
+ if (!forceReinstall && version6 === "0.7.8" && await versionIsAvailable(version6) && await isPossibleClaudeBinary(executablePath)) {
335116
335116
  logForDebugging(`Found ${version6} at ${executablePath}, skipping install`);
335117
335117
  logEvent("tengu_native_update_complete", {
335118
335118
  latency_ms: Date.now() - startTime,
@@ -418701,7 +418701,7 @@ function getAnthropicEnvMetadata() {
418701
418701
  function getBuildAgeMinutes() {
418702
418702
  if (false)
418703
418703
  ;
418704
- const buildTime = new Date("1775371392").getTime();
418704
+ const buildTime = new Date("1775372100").getTime();
418705
418705
  if (isNaN(buildTime))
418706
418706
  return;
418707
418707
  return Math.floor((Date.now() - buildTime) / 60000);
@@ -442213,7 +442213,7 @@ function Feedback({
442213
442213
  platform: env4.platform,
442214
442214
  gitRepo: envInfo.isGit,
442215
442215
  terminal: env4.terminal,
442216
- version: "0.7.6",
442216
+ version: "0.7.8",
442217
442217
  transcript: normalizeMessagesForAPI(messages),
442218
442218
  errors: sanitizedErrors,
442219
442219
  lastApiRequest: getLastAPIRequest(),
@@ -442405,7 +442405,7 @@ function Feedback({
442405
442405
  ", ",
442406
442406
  env4.terminal,
442407
442407
  ", v",
442408
- "0.7.6"
442408
+ "0.7.8"
442409
442409
  ]
442410
442410
  }, undefined, true, undefined, this)
442411
442411
  ]
@@ -442511,7 +442511,7 @@ ${sanitizedDescription}
442511
442511
  ` + `**Environment Info**
442512
442512
  ` + `- Platform: ${env4.platform}
442513
442513
  ` + `- Terminal: ${env4.terminal}
442514
- ` + `- Version: ${"0.7.6"}
442514
+ ` + `- Version: ${"0.7.8"}
442515
442515
  ` + `- Feedback ID: ${feedbackId}
442516
442516
  ` + `
442517
442517
  **Errors**
@@ -445611,7 +445611,7 @@ function buildPrimarySection() {
445611
445611
  }, undefined, false, undefined, this);
445612
445612
  return [{
445613
445613
  label: "Version",
445614
- value: "0.7.6"
445614
+ value: "0.7.8"
445615
445615
  }, {
445616
445616
  label: "Session name",
445617
445617
  value: nameValue
@@ -449362,7 +449362,7 @@ function Config({
449362
449362
  }
449363
449363
  }, undefined, false, undefined, this)
449364
449364
  }, undefined, false, undefined, this) : showSubmenu === "ChannelDowngrade" ? /* @__PURE__ */ jsx_dev_runtime178.jsxDEV(ChannelDowngradeDialog, {
449365
- currentVersion: "0.7.6",
449365
+ currentVersion: "0.7.8",
449366
449366
  onChoice: (choice) => {
449367
449367
  setShowSubmenu(null);
449368
449368
  setTabsHidden(false);
@@ -449374,7 +449374,7 @@ function Config({
449374
449374
  autoUpdatesChannel: "stable"
449375
449375
  };
449376
449376
  if (choice === "stay") {
449377
- newSettings.minimumVersion = "0.7.6";
449377
+ newSettings.minimumVersion = "0.7.8";
449378
449378
  }
449379
449379
  updateSettingsForSource("userSettings", newSettings);
449380
449380
  setSettingsData((prev_27) => ({
@@ -457375,7 +457375,7 @@ function HelpV2(t0) {
457375
457375
  let t6;
457376
457376
  if ($3[31] !== tabs) {
457377
457377
  t6 = /* @__PURE__ */ jsx_dev_runtime205.jsxDEV(Tabs, {
457378
- title: `Claude Code v${"0.7.6"}`,
457378
+ title: `Cody CLI v${"0.7.8"}`,
457379
457379
  color: "professionalBlue",
457380
457380
  defaultTab: "general",
457381
457381
  children: tabs
@@ -457394,7 +457394,7 @@ function HelpV2(t0) {
457394
457394
  "For more help:",
457395
457395
  " ",
457396
457396
  /* @__PURE__ */ jsx_dev_runtime205.jsxDEV(Link, {
457397
- url: "https://code.claude.com/docs/en/overview"
457397
+ url: "https://docs.ainative.studio"
457398
457398
  }, undefined, false, undefined, this)
457399
457399
  ]
457400
457400
  }, undefined, true, undefined, this)
@@ -481565,7 +481565,7 @@ function getAllReleaseNotes(changelogContent = getStoredChangelogFromMemory()) {
481565
481565
  return [];
481566
481566
  }
481567
481567
  }
481568
- async function checkForReleaseNotes(lastSeenVersion, currentVersion = "0.7.6") {
481568
+ async function checkForReleaseNotes(lastSeenVersion, currentVersion = "0.7.8") {
481569
481569
  if (false) {}
481570
481570
  const cachedChangelog = await getStoredChangelog();
481571
481571
  if (lastSeenVersion !== currentVersion || !cachedChangelog) {
@@ -481578,7 +481578,7 @@ async function checkForReleaseNotes(lastSeenVersion, currentVersion = "0.7.6") {
481578
481578
  releaseNotes
481579
481579
  };
481580
481580
  }
481581
- function checkForReleaseNotesSync(lastSeenVersion, currentVersion = "0.7.6") {
481581
+ function checkForReleaseNotesSync(lastSeenVersion, currentVersion = "0.7.8") {
481582
481582
  if (false) {}
481583
481583
  const releaseNotes = getRecentReleaseNotes(currentVersion, lastSeenVersion);
481584
481584
  return {
@@ -482734,11 +482734,11 @@ function getRecentActivitySync() {
482734
482734
  return cachedActivity;
482735
482735
  }
482736
482736
  function getLogoDisplayData() {
482737
- const version6 = process.env.DEMO_VERSION ?? "0.7.6";
482737
+ const version6 = process.env.DEMO_VERSION ?? "0.7.8";
482738
482738
  const serverUrl = getDirectConnectServerUrl();
482739
482739
  const displayPath = process.env.DEMO_VERSION ? "/code/claude" : getDisplayPath(getCwd());
482740
482740
  const cwd2 = serverUrl ? `${displayPath} in ${serverUrl.replace(/^https?:\/\//, "")}` : displayPath;
482741
- const billingType = isClaudeAISubscriber() ? getSubscriptionName() : "API Usage Billing";
482741
+ const billingType = isAINativeProvider() ? getGlobalConfig().ainativePlanCache || "AINative Pro" : isClaudeAISubscriber() ? getSubscriptionName() : "API Usage Billing";
482742
482742
  const agentName = getInitialSettings().agent;
482743
482743
  return {
482744
482744
  version: version6,
@@ -482791,6 +482791,8 @@ var init_logoV2Utils = __esm(() => {
482791
482791
  init_state();
482792
482792
  init_stringWidth();
482793
482793
  init_auth2();
482794
+ init_config2();
482795
+ init_model();
482794
482796
  init_cwd2();
482795
482797
  init_file();
482796
482798
  init_format();
@@ -484242,7 +484244,7 @@ function LogoV2() {
484242
484244
  if ($3[2] === Symbol.for("react.memo_cache_sentinel")) {
484243
484245
  t2 = () => {
484244
484246
  const currentConfig = getGlobalConfig();
484245
- if (currentConfig.lastReleaseNotesSeen === "0.7.6") {
484247
+ if (currentConfig.lastReleaseNotesSeen === "0.7.8") {
484246
484248
  return;
484247
484249
  }
484248
484250
  saveGlobalConfig(_temp329);
@@ -484918,12 +484920,12 @@ function LogoV2() {
484918
484920
  return t41;
484919
484921
  }
484920
484922
  function _temp329(current) {
484921
- if (current.lastReleaseNotesSeen === "0.7.6") {
484923
+ if (current.lastReleaseNotesSeen === "0.7.8") {
484922
484924
  return current;
484923
484925
  }
484924
484926
  return {
484925
484927
  ...current,
484926
- lastReleaseNotesSeen: "0.7.6"
484928
+ lastReleaseNotesSeen: "0.7.8"
484927
484929
  };
484928
484930
  }
484929
484931
  function _temp245(s_0) {
@@ -511261,7 +511263,7 @@ async function captureMemoryDiagnostics(trigger, dumpNumber = 0) {
511261
511263
  smapsRollup,
511262
511264
  platform: process.platform,
511263
511265
  nodeVersion: process.version,
511264
- ccVersion: "0.7.6"
511266
+ ccVersion: "0.7.8"
511265
511267
  };
511266
511268
  }
511267
511269
  async function performHeapDump(trigger = "manual", dumpNumber = 0) {
@@ -511789,7 +511791,7 @@ var init_bridge_kick = __esm(() => {
511789
511791
  var call56 = async () => {
511790
511792
  return {
511791
511793
  type: "text",
511792
- value: `${"0.7.6"} (built ${"1775371392"})`
511794
+ value: `${"0.7.8"} (built ${"1775372100"})`
511793
511795
  };
511794
511796
  }, version6, version_default;
511795
511797
  var init_version = __esm(() => {
@@ -520736,7 +520738,7 @@ function generateHtmlReport(data, insights) {
520736
520738
  </html>`;
520737
520739
  }
520738
520740
  function buildExportData(data, insights, facets, remoteStats) {
520739
- const version7 = typeof MACRO !== "undefined" ? "0.7.6" : "unknown";
520741
+ const version7 = typeof MACRO !== "undefined" ? "0.7.8" : "unknown";
520740
520742
  const remote_hosts_collected = remoteStats?.hosts.filter((h2) => h2.sessionCount > 0).map((h2) => h2.name);
520741
520743
  const facets_summary = {
520742
520744
  total: facets.size,
@@ -524682,7 +524684,7 @@ var init_sessionStorage = __esm(() => {
524682
524684
  init_settings2();
524683
524685
  init_slowOperations();
524684
524686
  init_uuid();
524685
- VERSION5 = typeof MACRO !== "undefined" ? "0.7.6" : "unknown";
524687
+ VERSION5 = typeof MACRO !== "undefined" ? "0.7.8" : "unknown";
524686
524688
  MAX_TOMBSTONE_REWRITE_BYTES = 50 * 1024 * 1024;
524687
524689
  SKIP_FIRST_PROMPT_PATTERN = /^(?:\s*<[a-z][\w-]*[\s>]|\[Request interrupted by user[^\]]*\])/;
524688
524690
  EPHEMERAL_PROGRESS_TYPES = new Set([
@@ -525887,7 +525889,7 @@ var init_filesystem = __esm(() => {
525887
525889
  });
525888
525890
  getBundledSkillsRoot = memoize_default(function getBundledSkillsRoot2() {
525889
525891
  const nonce = randomBytes19(16).toString("hex");
525890
- return join132(getClaudeTempDir(), "bundled-skills", "0.7.6", nonce);
525892
+ return join132(getClaudeTempDir(), "bundled-skills", "0.7.8", nonce);
525891
525893
  });
525892
525894
  getResolvedWorkingDirPaths = memoize_default(getPathsForPermissionCheck);
525893
525895
  });
@@ -531859,7 +531861,7 @@ function computeFingerprint(messageText, version7) {
531859
531861
  }
531860
531862
  function computeFingerprintFromMessages(messages) {
531861
531863
  const firstMessageText = extractFirstMessageText(messages);
531862
- return computeFingerprint(firstMessageText, "0.7.6");
531864
+ return computeFingerprint(firstMessageText, "0.7.8");
531863
531865
  }
531864
531866
  var FINGERPRINT_SALT = "59cf53e54c78";
531865
531867
  var init_fingerprint = () => {};
@@ -533773,7 +533775,7 @@ async function sideQuery(opts) {
533773
533775
  betas.push(STRUCTURED_OUTPUTS_BETA_HEADER);
533774
533776
  }
533775
533777
  const messageText = extractFirstUserMessageText(messages);
533776
- const fingerprint = computeFingerprint(messageText, "0.7.6");
533778
+ const fingerprint = computeFingerprint(messageText, "0.7.8");
533777
533779
  const attributionHeader = getAttributionHeader(fingerprint);
533778
533780
  const systemBlocks = [
533779
533781
  attributionHeader ? { type: "text", text: attributionHeader } : null,
@@ -538297,7 +538299,7 @@ function buildSystemInitMessage(inputs) {
538297
538299
  slash_commands: inputs.commands.filter((c6) => c6.userInvocable !== false).map((c6) => c6.name),
538298
538300
  apiKeySource: getAnthropicApiKeyWithSource().source,
538299
538301
  betas: getSdkBetas(),
538300
- claude_code_version: "0.7.6",
538302
+ claude_code_version: "0.7.8",
538301
538303
  output_style: outputStyle2,
538302
538304
  agents: inputs.agents.map((agent) => agent.agentType),
538303
538305
  skills: inputs.skills.filter((s) => s.userInvocable !== false).map((skill) => skill.name),
@@ -552849,7 +552851,7 @@ var init_useVoiceEnabled = __esm(() => {
552849
552851
  function getSemverPart(version7) {
552850
552852
  return `${import_semver13.major(version7, { loose: true })}.${import_semver13.minor(version7, { loose: true })}.${import_semver13.patch(version7, { loose: true })}`;
552851
552853
  }
552852
- function useUpdateNotification(updatedVersion, initialVersion = "0.7.6") {
552854
+ function useUpdateNotification(updatedVersion, initialVersion = "0.7.8") {
552853
552855
  const [lastNotifiedSemver, setLastNotifiedSemver] = import_react227.useState(() => getSemverPart(initialVersion));
552854
552856
  if (!updatedVersion) {
552855
552857
  return null;
@@ -552889,7 +552891,7 @@ function AutoUpdater({
552889
552891
  return;
552890
552892
  }
552891
552893
  if (false) {}
552892
- const currentVersion = "0.7.6";
552894
+ const currentVersion = "0.7.8";
552893
552895
  const channel = getInitialSettings()?.autoUpdatesChannel ?? "latest";
552894
552896
  let latestVersion = await getLatestVersion(channel);
552895
552897
  const isDisabled = isAutoUpdaterDisabled();
@@ -553102,12 +553104,12 @@ function NativeAutoUpdater({
553102
553104
  logEvent("tengu_native_auto_updater_start", {});
553103
553105
  try {
553104
553106
  const maxVersion = await getMaxVersion();
553105
- if (maxVersion && gt("0.7.6", maxVersion)) {
553107
+ if (maxVersion && gt("0.7.8", maxVersion)) {
553106
553108
  const msg = await getMaxVersionMessage();
553107
553109
  setMaxVersionIssue(msg ?? "affects your version");
553108
553110
  }
553109
553111
  const result = await installLatest(channel);
553110
- const currentVersion = "0.7.6";
553112
+ const currentVersion = "0.7.8";
553111
553113
  const latencyMs = Date.now() - startTime;
553112
553114
  if (result.lockFailed) {
553113
553115
  logEvent("tengu_native_auto_updater_lock_contention", {
@@ -553244,17 +553246,17 @@ function PackageManagerAutoUpdater(t0) {
553244
553246
  const maxVersion = await getMaxVersion();
553245
553247
  if (maxVersion && latest && gt(latest, maxVersion)) {
553246
553248
  logForDebugging(`PackageManagerAutoUpdater: maxVersion ${maxVersion} is set, capping update from ${latest} to ${maxVersion}`);
553247
- if (gte("0.7.6", maxVersion)) {
553248
- logForDebugging(`PackageManagerAutoUpdater: current version ${"0.7.6"} is already at or above maxVersion ${maxVersion}, skipping update`);
553249
+ if (gte("0.7.8", maxVersion)) {
553250
+ logForDebugging(`PackageManagerAutoUpdater: current version ${"0.7.8"} is already at or above maxVersion ${maxVersion}, skipping update`);
553249
553251
  setUpdateAvailable(false);
553250
553252
  return;
553251
553253
  }
553252
553254
  latest = maxVersion;
553253
553255
  }
553254
- const hasUpdate = latest && !gte("0.7.6", latest) && !shouldSkipVersion(latest);
553256
+ const hasUpdate = latest && !gte("0.7.8", latest) && !shouldSkipVersion(latest);
553255
553257
  setUpdateAvailable(!!hasUpdate);
553256
553258
  if (hasUpdate) {
553257
- logForDebugging(`PackageManagerAutoUpdater: Update available ${"0.7.6"} -> ${latest}`);
553259
+ logForDebugging(`PackageManagerAutoUpdater: Update available ${"0.7.8"} -> ${latest}`);
553258
553260
  }
553259
553261
  };
553260
553262
  $3[0] = t1;
@@ -553288,7 +553290,7 @@ function PackageManagerAutoUpdater(t0) {
553288
553290
  wrap: "truncate",
553289
553291
  children: [
553290
553292
  "currentVersion: ",
553291
- "0.7.6"
553293
+ "0.7.8"
553292
553294
  ]
553293
553295
  }, undefined, true, undefined, this);
553294
553296
  $3[3] = verbose;
@@ -561398,7 +561400,7 @@ function buildStatusLineCommandInput(permissionMode, exceeds200kTokens, settings
561398
561400
  project_dir: getOriginalCwd(),
561399
561401
  added_dirs: addedDirs
561400
561402
  },
561401
- version: "0.7.6",
561403
+ version: "0.7.8",
561402
561404
  output_style: {
561403
561405
  name: outputStyleName
561404
561406
  },
@@ -572772,7 +572774,7 @@ async function submitTranscriptShare(messages, trigger, appearanceId) {
572772
572774
  } catch {}
572773
572775
  const data = {
572774
572776
  trigger,
572775
- version: "0.7.6",
572777
+ version: "0.7.8",
572776
572778
  platform: process.platform,
572777
572779
  transcript,
572778
572780
  subagentTranscripts: Object.keys(subagentTranscripts).length > 0 ? subagentTranscripts : undefined,
@@ -583712,8 +583714,9 @@ async function fetchBootstrapData() {
583712
583714
  return;
583713
583715
  const clientData = response.client_data ?? null;
583714
583716
  const additionalModelOptions = response.additional_model_options ?? [];
583717
+ const plan2 = response.plan ?? null;
583715
583718
  const config4 = getGlobalConfig();
583716
- if (isEqual_default(config4.clientDataCache, clientData) && isEqual_default(config4.additionalModelOptionsCache, additionalModelOptions)) {
583719
+ if (isEqual_default(config4.clientDataCache, clientData) && isEqual_default(config4.additionalModelOptionsCache, additionalModelOptions) && isEqual_default(config4.ainativePlanCache, plan2)) {
583717
583720
  logForDebugging("[Bootstrap] Cache unchanged, skipping write");
583718
583721
  return;
583719
583722
  }
@@ -583721,7 +583724,8 @@ async function fetchBootstrapData() {
583721
583724
  saveGlobalConfig((current) => ({
583722
583725
  ...current,
583723
583726
  clientDataCache: clientData,
583724
- additionalModelOptionsCache: additionalModelOptions
583727
+ additionalModelOptionsCache: additionalModelOptions,
583728
+ ainativePlanCache: plan2
583725
583729
  }));
583726
583730
  } catch (error43) {
583727
583731
  logError2(error43);
@@ -583741,6 +583745,7 @@ var init_bootstrap = __esm(() => {
583741
583745
  init_providers();
583742
583746
  bootstrapResponseSchema = lazySchema(() => exports_external2.object({
583743
583747
  client_data: exports_external2.record(exports_external2.unknown()).nullish(),
583748
+ plan: exports_external2.string().nullish(),
583744
583749
  additional_model_options: exports_external2.array(exports_external2.object({
583745
583750
  model: exports_external2.string(),
583746
583751
  name: exports_external2.string(),
@@ -584736,7 +584741,7 @@ function WelcomeV2() {
584736
584741
  dimColor: true,
584737
584742
  children: [
584738
584743
  "v",
584739
- "0.7.6",
584744
+ "0.7.8",
584740
584745
  " "
584741
584746
  ]
584742
584747
  }, undefined, true, undefined, this)
@@ -584936,7 +584941,7 @@ function WelcomeV2() {
584936
584941
  dimColor: true,
584937
584942
  children: [
584938
584943
  "v",
584939
- "0.7.6",
584944
+ "0.7.8",
584940
584945
  " "
584941
584946
  ]
584942
584947
  }, undefined, true, undefined, this)
@@ -585162,7 +585167,7 @@ function AppleTerminalWelcomeV2(t0) {
585162
585167
  dimColor: true,
585163
585168
  children: [
585164
585169
  "v",
585165
- "0.7.6",
585170
+ "0.7.8",
585166
585171
  " "
585167
585172
  ]
585168
585173
  }, undefined, true, undefined, this);
@@ -585416,7 +585421,7 @@ function AppleTerminalWelcomeV2(t0) {
585416
585421
  dimColor: true,
585417
585422
  children: [
585418
585423
  "v",
585419
- "0.7.6",
585424
+ "0.7.8",
585420
585425
  " "
585421
585426
  ]
585422
585427
  }, undefined, true, undefined, this);
@@ -586920,7 +586925,7 @@ function completeOnboarding() {
586920
586925
  saveGlobalConfig((current) => ({
586921
586926
  ...current,
586922
586927
  hasCompletedOnboarding: true,
586923
- lastOnboardingVersion: "0.7.6"
586928
+ lastOnboardingVersion: "0.7.8"
586924
586929
  }));
586925
586930
  }
586926
586931
  function showDialog(root2, renderer) {
@@ -591398,7 +591403,7 @@ function appendToLog(path28, message) {
591398
591403
  cwd: getFsImplementation().cwd(),
591399
591404
  userType: "external",
591400
591405
  sessionId: getSessionId(),
591401
- version: "0.7.6"
591406
+ version: "0.7.8"
591402
591407
  };
591403
591408
  getLogWriter(path28).write(messageWithTimestamp);
591404
591409
  }
@@ -595357,8 +595362,8 @@ async function getEnvLessBridgeConfig() {
595357
595362
  }
595358
595363
  async function checkEnvLessBridgeMinVersion() {
595359
595364
  const cfg = await getEnvLessBridgeConfig();
595360
- if (cfg.min_version && lt("0.7.6", cfg.min_version)) {
595361
- return `Your version of Cody CLI (${"0.7.6"}) is too old for Remote Control.
595365
+ if (cfg.min_version && lt("0.7.8", cfg.min_version)) {
595366
+ return `Your version of Cody CLI (${"0.7.8"}) is too old for Remote Control.
595362
595367
  Version ${cfg.min_version} or higher is required. Run \`claude update\` to update.`;
595363
595368
  }
595364
595369
  return null;
@@ -595832,7 +595837,7 @@ async function initBridgeCore(params) {
595832
595837
  const rawApi = createBridgeApiClient({
595833
595838
  baseUrl,
595834
595839
  getAccessToken,
595835
- runnerVersion: "0.7.6",
595840
+ runnerVersion: "0.7.8",
595836
595841
  onDebug: logForDebugging,
595837
595842
  onAuth401,
595838
595843
  getTrustedDeviceToken
@@ -601469,7 +601474,7 @@ async function startMCPServer(cwd3, debug2, verbose) {
601469
601474
  setCwd(cwd3);
601470
601475
  const server = new Server({
601471
601476
  name: "claude/tengu",
601472
- version: "0.7.6"
601477
+ version: "0.7.8"
601473
601478
  }, {
601474
601479
  capabilities: {
601475
601480
  tools: {}
@@ -603080,7 +603085,7 @@ __export(exports_update, {
603080
603085
  });
603081
603086
  async function update() {
603082
603087
  logEvent("tengu_update_check", {});
603083
- writeToStdout(`Current version: ${"0.7.6"}
603088
+ writeToStdout(`Current version: ${"0.7.8"}
603084
603089
  `);
603085
603090
  const channel = getInitialSettings()?.autoUpdatesChannel ?? "latest";
603086
603091
  writeToStdout(`Checking for updates to ${channel} version...
@@ -603155,8 +603160,8 @@ async function update() {
603155
603160
  writeToStdout(`Cody CLI is managed by Homebrew.
603156
603161
  `);
603157
603162
  const latest = await getLatestVersion(channel);
603158
- if (latest && !gte("0.7.6", latest)) {
603159
- writeToStdout(`Update available: ${"0.7.6"} → ${latest}
603163
+ if (latest && !gte("0.7.8", latest)) {
603164
+ writeToStdout(`Update available: ${"0.7.8"} → ${latest}
603160
603165
  `);
603161
603166
  writeToStdout(`
603162
603167
  `);
@@ -603172,8 +603177,8 @@ async function update() {
603172
603177
  writeToStdout(`Cody CLI is managed by winget.
603173
603178
  `);
603174
603179
  const latest = await getLatestVersion(channel);
603175
- if (latest && !gte("0.7.6", latest)) {
603176
- writeToStdout(`Update available: ${"0.7.6"} → ${latest}
603180
+ if (latest && !gte("0.7.8", latest)) {
603181
+ writeToStdout(`Update available: ${"0.7.8"} → ${latest}
603177
603182
  `);
603178
603183
  writeToStdout(`
603179
603184
  `);
@@ -603189,8 +603194,8 @@ async function update() {
603189
603194
  writeToStdout(`Cody CLI is managed by apk.
603190
603195
  `);
603191
603196
  const latest = await getLatestVersion(channel);
603192
- if (latest && !gte("0.7.6", latest)) {
603193
- writeToStdout(`Update available: ${"0.7.6"} → ${latest}
603197
+ if (latest && !gte("0.7.8", latest)) {
603198
+ writeToStdout(`Update available: ${"0.7.8"} → ${latest}
603194
603199
  `);
603195
603200
  writeToStdout(`
603196
603201
  `);
@@ -603255,11 +603260,11 @@ async function update() {
603255
603260
  `);
603256
603261
  await gracefulShutdown(1);
603257
603262
  }
603258
- if (result.latestVersion === "0.7.6") {
603259
- writeToStdout(source_default.green(`Cody CLI is up to date (${"0.7.6"})`) + `
603263
+ if (result.latestVersion === "0.7.8") {
603264
+ writeToStdout(source_default.green(`Cody CLI is up to date (${"0.7.8"})`) + `
603260
603265
  `);
603261
603266
  } else {
603262
- writeToStdout(source_default.green(`Successfully updated from ${"0.7.6"} to version ${result.latestVersion}`) + `
603267
+ writeToStdout(source_default.green(`Successfully updated from ${"0.7.8"} to version ${result.latestVersion}`) + `
603263
603268
  `);
603264
603269
  await regenerateCompletionCache();
603265
603270
  }
@@ -603319,12 +603324,12 @@ async function update() {
603319
603324
  `);
603320
603325
  await gracefulShutdown(1);
603321
603326
  }
603322
- if (latestVersion === "0.7.6") {
603323
- writeToStdout(source_default.green(`Cody CLI is up to date (${"0.7.6"})`) + `
603327
+ if (latestVersion === "0.7.8") {
603328
+ writeToStdout(source_default.green(`Cody CLI is up to date (${"0.7.8"})`) + `
603324
603329
  `);
603325
603330
  await gracefulShutdown(0);
603326
603331
  }
603327
- writeToStdout(`New version available: ${latestVersion} (current: ${"0.7.6"})
603332
+ writeToStdout(`New version available: ${latestVersion} (current: ${"0.7.8"})
603328
603333
  `);
603329
603334
  writeToStdout(`Installing update...
603330
603335
  `);
@@ -603369,7 +603374,7 @@ async function update() {
603369
603374
  logForDebugging(`update: Installation status: ${status2}`);
603370
603375
  switch (status2) {
603371
603376
  case "success":
603372
- writeToStdout(source_default.green(`Successfully updated from ${"0.7.6"} to version ${latestVersion}`) + `
603377
+ writeToStdout(source_default.green(`Successfully updated from ${"0.7.8"} to version ${latestVersion}`) + `
603373
603378
  `);
603374
603379
  await regenerateCompletionCache();
603375
603380
  break;
@@ -604613,7 +604618,7 @@ ${customInstructions}` : customInstructions;
604613
604618
  }
604614
604619
  }
604615
604620
  logForDiagnosticsNoPII("info", "started", {
604616
- version: "0.7.6",
604621
+ version: "0.7.8",
604617
604622
  is_native_binary: isInBundledMode()
604618
604623
  });
604619
604624
  registerCleanup(async () => {
@@ -605381,7 +605386,7 @@ Usage: cody --remote "your task description"`, () => gracefulShutdown(1));
605381
605386
  } else {
605382
605387
  const pendingHookMessages = hooksPromise && hookMessages.length === 0 ? hooksPromise : undefined;
605383
605388
  profileCheckpoint("action_after_hooks");
605384
- console.log(getWelcomeMessage("0.7.6"));
605389
+ console.log(getWelcomeMessage("0.7.8"));
605385
605390
  maybeActivateProactive(options);
605386
605391
  maybeActivateBrief(options);
605387
605392
  if (false) {}
@@ -605398,10 +605403,10 @@ Usage: cody --remote "your task description"`, () => gracefulShutdown(1));
605398
605403
  pendingHookMessages
605399
605404
  }, renderAndRun);
605400
605405
  }
605401
- }).version("0.7.6 (Cody CLI)", "-v, --version", "Output the version number");
605406
+ }).version("0.7.8 (Cody CLI)", "-v, --version", "Output the version number");
605402
605407
  program2.configureOutput({
605403
605408
  writeOut: (str2) => {
605404
- if (str2.includes("0.7.6")) {
605409
+ if (str2.includes("0.7.8")) {
605405
605410
  process.stdout.write(getCodyLogo() + `
605406
605411
  ` + str2);
605407
605412
  } else {
@@ -605930,6 +605935,9 @@ try {
605930
605935
  }
605931
605936
  } catch {}
605932
605937
  process.env.COREPACK_ENABLE_AUTO_PIN = "0";
605938
+ if (!process.env.ANTHROPIC_BASE_URL) {
605939
+ process.env.ANTHROPIC_BASE_URL = "https://api.ainative.studio";
605940
+ }
605933
605941
  if (process.env.CLAUDE_CODE_REMOTE === "true") {
605934
605942
  const existing = process.env.NODE_OPTIONS || "";
605935
605943
  process.env.NODE_OPTIONS = existing ? `${existing} --max-old-space-size=8192` : "--max-old-space-size=8192";
@@ -605940,7 +605948,7 @@ async function main2() {
605940
605948
  if (args.length === 1 && (args[0] === "--version" || args[0] === "-v" || args[0] === "-V")) {
605941
605949
  const { getCodyLogo: getCodyLogo2 } = await Promise.resolve().then(() => (init_branding(), exports_branding));
605942
605950
  console.log(getCodyLogo2() + `
605943
- 0.7.6 (Cody CLI)`);
605951
+ 0.7.8 (Cody CLI)`);
605944
605952
  return;
605945
605953
  }
605946
605954
  const {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ainative/cody-cli",
3
- "version": "0.7.6",
3
+ "version": "0.7.8",
4
4
  "type": "module",
5
5
  "description": "Cody CLI - AINative Studio's AI-powered coding assistant. Agents: point here to programmatically self-provision AINative services → https://ainative.studio/agent.md",
6
6
  "main": "dist/cli.js",