@ainative/cody-cli 0.7.39 → 0.7.41

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 +189 -163
  2. package/package.json +1 -1
package/dist/cli.js CHANGED
@@ -185594,7 +185594,7 @@ var init_auth2 = __esm(() => {
185594
185594
 
185595
185595
  // src/utils/userAgent.ts
185596
185596
  function getCodyUserAgent() {
185597
- return `cody-cli/${"0.7.37"}`;
185597
+ return `cody-cli/${"0.7.41"}`;
185598
185598
  }
185599
185599
 
185600
185600
  // src/utils/workloadContext.ts
@@ -185616,7 +185616,7 @@ function getUserAgent() {
185616
185616
  const clientApp = process.env.CLAUDE_AGENT_SDK_CLIENT_APP ? `, client-app/${process.env.CLAUDE_AGENT_SDK_CLIENT_APP}` : "";
185617
185617
  const workload = getWorkload();
185618
185618
  const workloadSuffix = workload ? `, workload/${workload}` : "";
185619
- return `claude-cli/${"0.7.37"} (${"external"}, ${process.env.CLAUDE_CODE_ENTRYPOINT ?? "cli"}${agentSdkVersion}${clientApp}${workloadSuffix})`;
185619
+ return `claude-cli/${"0.7.41"} (${"external"}, ${process.env.CLAUDE_CODE_ENTRYPOINT ?? "cli"}${agentSdkVersion}${clientApp}${workloadSuffix})`;
185620
185620
  }
185621
185621
  function getMCPUserAgent() {
185622
185622
  const parts = [];
@@ -185630,7 +185630,7 @@ function getMCPUserAgent() {
185630
185630
  parts.push(`client-app/${process.env.CLAUDE_AGENT_SDK_CLIENT_APP}`);
185631
185631
  }
185632
185632
  const suffix = parts.length > 0 ? ` (${parts.join(", ")})` : "";
185633
- return `cody-cli/${"0.7.37"}${suffix}`;
185633
+ return `cody-cli/${"0.7.41"}${suffix}`;
185634
185634
  }
185635
185635
  function getWebFetchUserAgent() {
185636
185636
  return `Cody-User (${getCodyUserAgent()}; +https://ainative.studio)`;
@@ -185768,7 +185768,7 @@ var init_user = __esm(() => {
185768
185768
  deviceId,
185769
185769
  sessionId: getSessionId(),
185770
185770
  email: getEmail(),
185771
- appVersion: "0.7.37",
185771
+ appVersion: "0.7.41",
185772
185772
  platform: getHostPlatformForAnalytics(),
185773
185773
  organizationUuid,
185774
185774
  accountUuid,
@@ -193460,7 +193460,7 @@ var init_metadata = __esm(() => {
193460
193460
  COMPOUND_OPERATOR_REGEX = /\s*(?:&&|\|\||[;|])\s*/;
193461
193461
  WHITESPACE_REGEX = /\s+/;
193462
193462
  getVersionBase = memoize_default(() => {
193463
- const match = "0.7.37".match(/^\d+\.\d+\.\d+(?:-[a-z]+)?/);
193463
+ const match = "0.7.41".match(/^\d+\.\d+\.\d+(?:-[a-z]+)?/);
193464
193464
  return match ? match[0] : undefined;
193465
193465
  });
193466
193466
  buildEnvContext = memoize_default(async () => {
@@ -193500,9 +193500,9 @@ var init_metadata = __esm(() => {
193500
193500
  isGithubAction: isEnvTruthy(process.env.GITHUB_ACTIONS),
193501
193501
  isClaudeCodeAction: isEnvTruthy(process.env.CLAUDE_CODE_ACTION),
193502
193502
  isClaudeAiAuth: isClaudeAISubscriber(),
193503
- version: "0.7.37",
193503
+ version: "0.7.41",
193504
193504
  versionBase: getVersionBase(),
193505
- buildTime: "1779062838",
193505
+ buildTime: "1779065790",
193506
193506
  deploymentEnvironment: env4.detectDeploymentEnvironment(),
193507
193507
  ...isEnvTruthy(process.env.GITHUB_ACTIONS) && {
193508
193508
  githubEventName: process.env.GITHUB_EVENT_NAME,
@@ -194120,7 +194120,7 @@ function initialize1PEventLogging() {
194120
194120
  const platform3 = getPlatform();
194121
194121
  const attributes = {
194122
194122
  [import_semantic_conventions.ATTR_SERVICE_NAME]: "cody-cli",
194123
- [import_semantic_conventions.ATTR_SERVICE_VERSION]: "0.7.37"
194123
+ [import_semantic_conventions.ATTR_SERVICE_VERSION]: "0.7.41"
194124
194124
  };
194125
194125
  if (platform3 === "wsl") {
194126
194126
  const wslVersion = getWslVersion();
@@ -194147,7 +194147,7 @@ function initialize1PEventLogging() {
194147
194147
  })
194148
194148
  ]
194149
194149
  });
194150
- firstPartyEventLogger = firstPartyEventLoggerProvider.getLogger("com.ainative.cody_cli.events", "0.7.37");
194150
+ firstPartyEventLogger = firstPartyEventLoggerProvider.getLogger("com.ainative.cody_cli.events", "0.7.41");
194151
194151
  }
194152
194152
  async function reinitialize1PEventLoggingIfConfigChanged() {
194153
194153
  if (!is1PEventLoggingEnabled() || !firstPartyEventLoggerProvider) {
@@ -195840,7 +195840,7 @@ function getAttributionHeader(fingerprint) {
195840
195840
  if (!isAttributionHeaderEnabled()) {
195841
195841
  return "";
195842
195842
  }
195843
- const version7 = `${"0.7.37"}.${fingerprint}`;
195843
+ const version7 = `${"0.7.41"}.${fingerprint}`;
195844
195844
  const entrypoint = process.env.CLAUDE_CODE_ENTRYPOINT ?? "unknown";
195845
195845
  const cch = "";
195846
195846
  const workload = getWorkload();
@@ -259985,7 +259985,7 @@ function getTelemetryAttributes() {
259985
259985
  attributes["session.id"] = sessionId;
259986
259986
  }
259987
259987
  if (shouldIncludeAttribute("OTEL_METRICS_INCLUDE_VERSION")) {
259988
- attributes["app.version"] = "0.7.37";
259988
+ attributes["app.version"] = "0.7.41";
259989
259989
  }
259990
259990
  const oauthAccount = getOauthAccountInfo();
259991
259991
  if (oauthAccount) {
@@ -291175,7 +291175,7 @@ function getInstallationEnv() {
291175
291175
  return;
291176
291176
  }
291177
291177
  function getClaudeCodeVersion() {
291178
- return "0.7.37";
291178
+ return "0.7.41";
291179
291179
  }
291180
291180
  async function getInstalledVSCodeExtensionVersion(command) {
291181
291181
  const { stdout } = await execFileNoThrow(command, ["--list-extensions", "--show-versions"], {
@@ -296711,7 +296711,7 @@ async function setupSdkMcpClients(sdkMcpConfigs, sendMcpMessage) {
296711
296711
  const client4 = new Client({
296712
296712
  name: "claude-code",
296713
296713
  title: "Cody CLI",
296714
- version: "0.7.37",
296714
+ version: "0.7.41",
296715
296715
  description: "Anthropic's agentic coding tool",
296716
296716
  websiteUrl: PRODUCT_URL
296717
296717
  }, {
@@ -297065,7 +297065,7 @@ var init_client8 = __esm(() => {
297065
297065
  const client4 = new Client({
297066
297066
  name: "claude-code",
297067
297067
  title: "Cody CLI",
297068
- version: "0.7.37",
297068
+ version: "0.7.41",
297069
297069
  description: "Anthropic's agentic coding tool",
297070
297070
  websiteUrl: PRODUCT_URL
297071
297071
  }, {
@@ -345197,7 +345197,7 @@ async function initializeBetaTracing(resource) {
345197
345197
  });
345198
345198
  import_api_logs.logs.setGlobalLoggerProvider(loggerProvider);
345199
345199
  setLoggerProvider(loggerProvider);
345200
- const eventLogger = import_api_logs.logs.getLogger("com.anthropic.claude_code.events", "0.7.37");
345200
+ const eventLogger = import_api_logs.logs.getLogger("com.anthropic.claude_code.events", "0.7.41");
345201
345201
  setEventLogger(eventLogger);
345202
345202
  process.on("beforeExit", async () => {
345203
345203
  await loggerProvider?.forceFlush();
@@ -345237,7 +345237,7 @@ async function initializeTelemetry() {
345237
345237
  const platform5 = getPlatform();
345238
345238
  const baseAttributes = {
345239
345239
  [import_semantic_conventions2.ATTR_SERVICE_NAME]: "claude-code",
345240
- [import_semantic_conventions2.ATTR_SERVICE_VERSION]: "0.7.37"
345240
+ [import_semantic_conventions2.ATTR_SERVICE_VERSION]: "0.7.41"
345241
345241
  };
345242
345242
  if (platform5 === "wsl") {
345243
345243
  const wslVersion = getWslVersion();
@@ -345282,7 +345282,7 @@ async function initializeTelemetry() {
345282
345282
  } catch {}
345283
345283
  };
345284
345284
  registerCleanup(shutdownTelemetry2);
345285
- return meterProvider2.getMeter("com.anthropic.claude_code", "0.7.37");
345285
+ return meterProvider2.getMeter("com.anthropic.claude_code", "0.7.41");
345286
345286
  }
345287
345287
  const meterProvider = new import_sdk_metrics2.MeterProvider({
345288
345288
  resource,
@@ -345302,7 +345302,7 @@ async function initializeTelemetry() {
345302
345302
  });
345303
345303
  import_api_logs.logs.setGlobalLoggerProvider(loggerProvider);
345304
345304
  setLoggerProvider(loggerProvider);
345305
- const eventLogger = import_api_logs.logs.getLogger("com.anthropic.claude_code.events", "0.7.37");
345305
+ const eventLogger = import_api_logs.logs.getLogger("com.anthropic.claude_code.events", "0.7.41");
345306
345306
  setEventLogger(eventLogger);
345307
345307
  logForDebugging("[3P telemetry] Event logger set successfully");
345308
345308
  process.on("beforeExit", async () => {
@@ -345364,7 +345364,7 @@ Current timeout: ${timeoutMs}ms
345364
345364
  }
345365
345365
  };
345366
345366
  registerCleanup(shutdownTelemetry);
345367
- return meterProvider.getMeter("com.anthropic.claude_code", "0.7.37");
345367
+ return meterProvider.getMeter("com.anthropic.claude_code", "0.7.41");
345368
345368
  }
345369
345369
  async function flushTelemetry() {
345370
345370
  const meterProvider = getMeterProvider();
@@ -346053,9 +346053,9 @@ async function assertMinVersion() {
346053
346053
  }
346054
346054
  try {
346055
346055
  const versionConfig = await getDynamicConfig_BLOCKS_ON_INIT("tengu_version_config", { minVersion: "0.0.0" });
346056
- if (versionConfig.minVersion && lt("0.7.37", versionConfig.minVersion)) {
346056
+ if (versionConfig.minVersion && lt("0.7.41", versionConfig.minVersion)) {
346057
346057
  console.error(`
346058
- It looks like your version of Cody CLI (${"0.7.37"}) needs an update.
346058
+ It looks like your version of Cody CLI (${"0.7.41"}) needs an update.
346059
346059
  A newer version (${versionConfig.minVersion} or higher) is required to continue.
346060
346060
 
346061
346061
  To update, please run:
@@ -346292,7 +346292,7 @@ async function installGlobalPackage(specificVersion) {
346292
346292
  logError2(new AutoUpdaterError("Another process is currently installing an update"));
346293
346293
  logEvent("tengu_auto_updater_lock_contention", {
346294
346294
  pid: process.pid,
346295
- currentVersion: "0.7.37"
346295
+ currentVersion: "0.7.41"
346296
346296
  });
346297
346297
  return "in_progress";
346298
346298
  }
@@ -346301,7 +346301,7 @@ async function installGlobalPackage(specificVersion) {
346301
346301
  if (!env4.isRunningWithBun() && env4.isNpmFromWindowsPath()) {
346302
346302
  logError2(new Error("Windows NPM detected in WSL environment"));
346303
346303
  logEvent("tengu_auto_updater_windows_npm_in_wsl", {
346304
- currentVersion: "0.7.37"
346304
+ currentVersion: "0.7.41"
346305
346305
  });
346306
346306
  console.error(`
346307
346307
  Error: Windows NPM detected in WSL
@@ -346836,7 +346836,7 @@ function detectLinuxGlobPatternWarnings() {
346836
346836
  }
346837
346837
  async function getDoctorDiagnostic() {
346838
346838
  const installationType = await getCurrentInstallationType();
346839
- const version7 = typeof MACRO !== "undefined" ? "0.7.37" : "unknown";
346839
+ const version7 = typeof MACRO !== "undefined" ? "0.7.41" : "unknown";
346840
346840
  const installationPath = await getInstallationPath();
346841
346841
  const invokedBinary = getInvokedBinary();
346842
346842
  const multipleInstallations = await detectMultipleInstallations();
@@ -347671,8 +347671,8 @@ async function updateLatest(channelOrVersion, forceReinstall = false) {
347671
347671
  const maxVersion = await getMaxVersion();
347672
347672
  if (maxVersion && gt(version7, maxVersion)) {
347673
347673
  logForDebugging(`Native installer: maxVersion ${maxVersion} is set, capping update from ${version7} to ${maxVersion}`);
347674
- if (gte("0.7.37", maxVersion)) {
347675
- logForDebugging(`Native installer: current version ${"0.7.37"} is already at or above maxVersion ${maxVersion}, skipping update`);
347674
+ if (gte("0.7.41", maxVersion)) {
347675
+ logForDebugging(`Native installer: current version ${"0.7.41"} is already at or above maxVersion ${maxVersion}, skipping update`);
347676
347676
  logEvent("tengu_native_update_skipped_max_version", {
347677
347677
  latency_ms: Date.now() - startTime,
347678
347678
  max_version: maxVersion,
@@ -347683,7 +347683,7 @@ async function updateLatest(channelOrVersion, forceReinstall = false) {
347683
347683
  version7 = maxVersion;
347684
347684
  }
347685
347685
  }
347686
- if (!forceReinstall && version7 === "0.7.37" && await versionIsAvailable(version7) && await isPossibleClaudeBinary(executablePath)) {
347686
+ if (!forceReinstall && version7 === "0.7.41" && await versionIsAvailable(version7) && await isPossibleClaudeBinary(executablePath)) {
347687
347687
  logForDebugging(`Found ${version7} at ${executablePath}, skipping install`);
347688
347688
  logEvent("tengu_native_update_complete", {
347689
347689
  latency_ms: Date.now() - startTime,
@@ -431532,7 +431532,7 @@ function getAnthropicEnvMetadata() {
431532
431532
  function getBuildAgeMinutes() {
431533
431533
  if (false)
431534
431534
  ;
431535
- const buildTime = new Date("1779062838").getTime();
431535
+ const buildTime = new Date("1779065790").getTime();
431536
431536
  if (isNaN(buildTime))
431537
431537
  return;
431538
431538
  return Math.floor((Date.now() - buildTime) / 60000);
@@ -455047,7 +455047,7 @@ function Feedback({
455047
455047
  platform: env4.platform,
455048
455048
  gitRepo: envInfo.isGit,
455049
455049
  terminal: env4.terminal,
455050
- version: "0.7.37",
455050
+ version: "0.7.41",
455051
455051
  transcript: normalizeMessagesForAPI(messages),
455052
455052
  errors: sanitizedErrors,
455053
455053
  lastApiRequest: getLastAPIRequest(),
@@ -455239,7 +455239,7 @@ function Feedback({
455239
455239
  ", ",
455240
455240
  env4.terminal,
455241
455241
  ", v",
455242
- "0.7.37"
455242
+ "0.7.41"
455243
455243
  ]
455244
455244
  }, undefined, true, undefined, this)
455245
455245
  ]
@@ -455345,7 +455345,7 @@ ${sanitizedDescription}
455345
455345
  ` + `**Environment Info**
455346
455346
  ` + `- Platform: ${env4.platform}
455347
455347
  ` + `- Terminal: ${env4.terminal}
455348
- ` + `- Version: ${"0.7.37"}
455348
+ ` + `- Version: ${"0.7.41"}
455349
455349
  ` + `- Feedback ID: ${feedbackId}
455350
455350
  ` + `
455351
455351
  **Errors**
@@ -458445,7 +458445,7 @@ function buildPrimarySection() {
458445
458445
  }, undefined, false, undefined, this);
458446
458446
  return [{
458447
458447
  label: "Version",
458448
- value: "0.7.37"
458448
+ value: "0.7.41"
458449
458449
  }, {
458450
458450
  label: "Session name",
458451
458451
  value: nameValue
@@ -462196,7 +462196,7 @@ function Config({
462196
462196
  }
462197
462197
  }, undefined, false, undefined, this)
462198
462198
  }, undefined, false, undefined, this) : showSubmenu === "ChannelDowngrade" ? /* @__PURE__ */ jsx_dev_runtime178.jsxDEV(ChannelDowngradeDialog, {
462199
- currentVersion: "0.7.37",
462199
+ currentVersion: "0.7.41",
462200
462200
  onChoice: (choice) => {
462201
462201
  setShowSubmenu(null);
462202
462202
  setTabsHidden(false);
@@ -462208,7 +462208,7 @@ function Config({
462208
462208
  autoUpdatesChannel: "stable"
462209
462209
  };
462210
462210
  if (choice === "stay") {
462211
- newSettings.minimumVersion = "0.7.37";
462211
+ newSettings.minimumVersion = "0.7.41";
462212
462212
  }
462213
462213
  updateSettingsForSource("userSettings", newSettings);
462214
462214
  setSettingsData((prev_27) => ({
@@ -470250,7 +470250,7 @@ function HelpV2(t0) {
470250
470250
  let t6;
470251
470251
  if ($3[31] !== tabs) {
470252
470252
  t6 = /* @__PURE__ */ jsx_dev_runtime205.jsxDEV(Tabs, {
470253
- title: `Cody CLI v${"0.7.37"}`,
470253
+ title: `Cody CLI v${"0.7.41"}`,
470254
470254
  color: "professionalBlue",
470255
470255
  defaultTab: "general",
470256
470256
  children: tabs
@@ -494440,7 +494440,7 @@ function getAllReleaseNotes(changelogContent = getStoredChangelogFromMemory()) {
494440
494440
  return [];
494441
494441
  }
494442
494442
  }
494443
- async function checkForReleaseNotes(lastSeenVersion, currentVersion = "0.7.37") {
494443
+ async function checkForReleaseNotes(lastSeenVersion, currentVersion = "0.7.41") {
494444
494444
  if (false) {}
494445
494445
  const cachedChangelog = await getStoredChangelog();
494446
494446
  if (lastSeenVersion !== currentVersion || !cachedChangelog) {
@@ -494453,7 +494453,7 @@ async function checkForReleaseNotes(lastSeenVersion, currentVersion = "0.7.37")
494453
494453
  releaseNotes
494454
494454
  };
494455
494455
  }
494456
- function checkForReleaseNotesSync(lastSeenVersion, currentVersion = "0.7.37") {
494456
+ function checkForReleaseNotesSync(lastSeenVersion, currentVersion = "0.7.41") {
494457
494457
  if (false) {}
494458
494458
  const releaseNotes = getRecentReleaseNotes(currentVersion, lastSeenVersion);
494459
494459
  return {
@@ -495609,7 +495609,7 @@ function getRecentActivitySync() {
495609
495609
  return cachedActivity;
495610
495610
  }
495611
495611
  function getLogoDisplayData() {
495612
- const version7 = process.env.DEMO_VERSION ?? "0.7.37";
495612
+ const version7 = process.env.DEMO_VERSION ?? "0.7.41";
495613
495613
  const serverUrl = getDirectConnectServerUrl();
495614
495614
  const displayPath = process.env.DEMO_VERSION ? "/code/claude" : getDisplayPath(getCwd());
495615
495615
  const cwd2 = serverUrl ? `${displayPath} in ${serverUrl.replace(/^https?:\/\//, "")}` : displayPath;
@@ -497029,7 +497029,7 @@ function LogoV2() {
497029
497029
  if ($3[2] === Symbol.for("react.memo_cache_sentinel")) {
497030
497030
  t2 = () => {
497031
497031
  const currentConfig = getGlobalConfig();
497032
- if (currentConfig.lastReleaseNotesSeen === "0.7.37") {
497032
+ if (currentConfig.lastReleaseNotesSeen === "0.7.41") {
497033
497033
  return;
497034
497034
  }
497035
497035
  saveGlobalConfig(_temp329);
@@ -497705,12 +497705,12 @@ function LogoV2() {
497705
497705
  return t41;
497706
497706
  }
497707
497707
  function _temp329(current) {
497708
- if (current.lastReleaseNotesSeen === "0.7.37") {
497708
+ if (current.lastReleaseNotesSeen === "0.7.41") {
497709
497709
  return current;
497710
497710
  }
497711
497711
  return {
497712
497712
  ...current,
497713
- lastReleaseNotesSeen: "0.7.37"
497713
+ lastReleaseNotesSeen: "0.7.41"
497714
497714
  };
497715
497715
  }
497716
497716
  function _temp245(s_0) {
@@ -521413,6 +521413,11 @@ var init_DescriptionStep = __esm(() => {
521413
521413
  });
521414
521414
 
521415
521415
  // src/components/agents/generateAgent.ts
521416
+ function isGatewayUnavailableError(err2) {
521417
+ if (!(err2 instanceof Error))
521418
+ return false;
521419
+ return err2.message.includes("backend provider unreachable") || err2.message.includes("0.0.0.0") || err2.message.includes("AINative") && /5\d\d/.test(err2.message);
521420
+ }
521416
521421
  async function generateAgent(userPrompt, model, existingIdentifiers, abortSignal) {
521417
521422
  const systemPromptText = isAutoMemoryEnabled() ? AGENT_CREATION_SYSTEM_PROMPT + AGENT_MEMORY_INSTRUCTIONS : AGENT_CREATION_SYSTEM_PROMPT;
521418
521423
  const existingList = existingIdentifiers.length > 0 ? `
@@ -521423,87 +521428,106 @@ IMPORTANT: The following identifiers already exist and must NOT be used: ${exist
521423
521428
  const userMessage = createUserMessage({ content: prompt });
521424
521429
  const userContext = await getUserContext();
521425
521430
  const messagesWithContext = prependUserContext([userMessage], userContext);
521426
- const response = await queryModelWithoutStreaming({
521427
- messages: normalizeMessagesForAPI(messagesWithContext),
521428
- systemPrompt: asSystemPrompt([systemPromptText]),
521429
- thinkingConfig: { type: "disabled" },
521430
- tools: [],
521431
- signal: abortSignal,
521432
- options: {
521433
- getToolPermissionContext: async () => getEmptyToolPermissionContext(),
521434
- model,
521435
- toolChoice: undefined,
521436
- agents: [],
521437
- isNonInteractiveSession: false,
521438
- hasAppendSystemPrompt: false,
521439
- querySource: "agent_creation",
521440
- mcpTools: []
521441
- }
521442
- });
521443
- const textBlocks = response.message.content.filter((block) => block.type === "text");
521444
- const responseText = textBlocks.map((block) => block.text).join(`
521445
- `);
521446
- let parsed;
521447
- try {
521448
- parsed = jsonParse(responseText.trim());
521449
- } catch {
521450
- const jsonMatch = responseText.match(/\{[\s\S]*\}/);
521451
- if (!jsonMatch) {
521452
- throw new Error("No JSON object found in response");
521431
+ const modelsToTry = [model];
521432
+ if (isAINativeProvider()) {
521433
+ for (const fb of AINATIVE_FALLBACK_MODELS) {
521434
+ if (fb !== model)
521435
+ modelsToTry.push(fb);
521453
521436
  }
521454
- parsed = jsonParse(jsonMatch[0]);
521455
521437
  }
521456
- if (!parsed.identifier || !parsed.whenToUse || !parsed.systemPrompt) {
521457
- const raw = parsed;
521458
- if (!parsed.identifier) {
521459
- const source = raw.name ?? raw.title ?? raw.role ?? "";
521460
- parsed.identifier = source.toLowerCase().replace(/[^a-z0-9]+/g, "-").replace(/^-+|-+$/g, "").slice(0, 50);
521461
- }
521462
- if (!parsed.whenToUse) {
521463
- const mandate = raw.mandate;
521464
- if (Array.isArray(mandate) && mandate.length > 0) {
521465
- parsed.whenToUse = `Use this agent when you need to: ${mandate.join("; ")}`;
521466
- } else {
521467
- const source = raw.purpose ?? raw.description ?? raw.role ?? "";
521468
- parsed.whenToUse = source ? `Use this agent when: ${source}` : "";
521469
- }
521470
- }
521471
- if (!parsed.systemPrompt) {
521472
- const parts = [];
521473
- if (raw.name)
521474
- parts.push(`You are a ${raw.name}.`);
521475
- if (raw.role)
521476
- parts.push(`Role: ${raw.role}.`);
521477
- if (raw.style)
521478
- parts.push(`Communication style: ${raw.style}.`);
521479
- if (Array.isArray(raw.mandate) && raw.mandate.length > 0) {
521480
- parts.push(`Your mandate:
521438
+ let lastError;
521439
+ for (const tryModel of modelsToTry) {
521440
+ if (abortSignal.aborted)
521441
+ break;
521442
+ try {
521443
+ const response = await queryModelWithoutStreaming({
521444
+ messages: normalizeMessagesForAPI(messagesWithContext),
521445
+ systemPrompt: asSystemPrompt([systemPromptText]),
521446
+ thinkingConfig: { type: "disabled" },
521447
+ tools: [],
521448
+ signal: abortSignal,
521449
+ options: {
521450
+ getToolPermissionContext: async () => getEmptyToolPermissionContext(),
521451
+ model: tryModel,
521452
+ toolChoice: undefined,
521453
+ agents: [],
521454
+ isNonInteractiveSession: false,
521455
+ hasAppendSystemPrompt: false,
521456
+ querySource: "agent_creation",
521457
+ mcpTools: []
521458
+ }
521459
+ });
521460
+ const textBlocks = response.message.content.filter((block) => block.type === "text");
521461
+ const responseText = textBlocks.map((block) => block.text).join(`
521462
+ `);
521463
+ let parsed;
521464
+ try {
521465
+ parsed = jsonParse(responseText.trim());
521466
+ } catch {
521467
+ const jsonMatch = responseText.match(/\{[\s\S]*\}/);
521468
+ if (!jsonMatch) {
521469
+ throw new Error("No JSON object found in response");
521470
+ }
521471
+ parsed = jsonParse(jsonMatch[0]);
521472
+ }
521473
+ if (!parsed.identifier || !parsed.whenToUse || !parsed.systemPrompt) {
521474
+ const raw = parsed;
521475
+ if (!parsed.identifier) {
521476
+ const source = raw.name ?? raw.title ?? raw.role ?? "";
521477
+ parsed.identifier = source.toLowerCase().replace(/[^a-z0-9]+/g, "-").replace(/^-+|-+$/g, "").slice(0, 50);
521478
+ }
521479
+ if (!parsed.whenToUse) {
521480
+ const mandate = raw.mandate;
521481
+ if (Array.isArray(mandate) && mandate.length > 0) {
521482
+ parsed.whenToUse = `Use this agent when you need to: ${mandate.join("; ")}`;
521483
+ } else {
521484
+ const source = raw.purpose ?? raw.description ?? raw.role ?? "";
521485
+ parsed.whenToUse = source ? `Use this agent when: ${source}` : "";
521486
+ }
521487
+ }
521488
+ if (!parsed.systemPrompt) {
521489
+ const parts = [];
521490
+ if (raw.name)
521491
+ parts.push(`You are a ${raw.name}.`);
521492
+ if (raw.role)
521493
+ parts.push(`Role: ${raw.role}.`);
521494
+ if (raw.style)
521495
+ parts.push(`Communication style: ${raw.style}.`);
521496
+ if (Array.isArray(raw.mandate) && raw.mandate.length > 0) {
521497
+ parts.push(`Your mandate:
521481
521498
  ${raw.mandate.map((m2) => `- ${m2}`).join(`
521482
521499
  `)}`);
521483
- }
521484
- if (Array.isArray(raw.skills) && raw.skills.length > 0) {
521485
- parts.push(`Apply these skills: ${raw.skills.join(", ")}.`);
521486
- }
521487
- parsed.systemPrompt = parts.join(`
521500
+ }
521501
+ if (Array.isArray(raw.skills) && raw.skills.length > 0) {
521502
+ parts.push(`Apply these skills: ${raw.skills.join(", ")}.`);
521503
+ }
521504
+ parsed.systemPrompt = parts.join(`
521488
521505
 
521489
521506
  `);
521507
+ }
521508
+ }
521509
+ if (!parsed.identifier || !parsed.whenToUse || !parsed.systemPrompt) {
521510
+ throw new Error(`Invalid agent configuration generated. Missing fields: ${[
521511
+ !parsed.identifier && "identifier",
521512
+ !parsed.whenToUse && "whenToUse",
521513
+ !parsed.systemPrompt && "systemPrompt"
521514
+ ].filter(Boolean).join(", ")}. Response: ${responseText.slice(0, 500)}`);
521515
+ }
521516
+ logEvent("tengu_agent_definition_generated", {
521517
+ agent_identifier: parsed.identifier
521518
+ });
521519
+ return {
521520
+ identifier: parsed.identifier,
521521
+ whenToUse: parsed.whenToUse,
521522
+ systemPrompt: parsed.systemPrompt
521523
+ };
521524
+ } catch (err2) {
521525
+ lastError = err2 instanceof Error ? err2 : new Error(String(err2));
521526
+ if (!isGatewayUnavailableError(err2))
521527
+ throw err2;
521490
521528
  }
521491
521529
  }
521492
- if (!parsed.identifier || !parsed.whenToUse || !parsed.systemPrompt) {
521493
- throw new Error(`Invalid agent configuration generated. Missing fields: ${[
521494
- !parsed.identifier && "identifier",
521495
- !parsed.whenToUse && "whenToUse",
521496
- !parsed.systemPrompt && "systemPrompt"
521497
- ].filter(Boolean).join(", ")}. Response: ${responseText.slice(0, 500)}`);
521498
- }
521499
- logEvent("tengu_agent_definition_generated", {
521500
- agent_identifier: parsed.identifier
521501
- });
521502
- return {
521503
- identifier: parsed.identifier,
521504
- whenToUse: parsed.whenToUse,
521505
- systemPrompt: parsed.systemPrompt
521506
- };
521530
+ throw lastError ?? new Error("Failed to generate agent: all models unavailable");
521507
521531
  }
521508
521532
  var AGENT_CREATION_SYSTEM_PROMPT, AGENT_MEMORY_INSTRUCTIONS = `
521509
521533
 
@@ -521525,7 +521549,7 @@ var AGENT_CREATION_SYSTEM_PROMPT, AGENT_MEMORY_INSTRUCTIONS = `
521525
521549
  - For a documentation writer: "Update your agent memory as you discover documentation patterns, API structures, and terminology conventions."
521526
521550
 
521527
521551
  The memory instructions should be specific to what the agent would naturally learn while performing its core tasks.
521528
- `;
521552
+ `, AINATIVE_FALLBACK_MODELS;
521529
521553
  var init_generateAgent = __esm(() => {
521530
521554
  init_context2();
521531
521555
  init_claude();
@@ -521533,6 +521557,7 @@ var init_generateAgent = __esm(() => {
521533
521557
  init_constants3();
521534
521558
  init_api3();
521535
521559
  init_messages3();
521560
+ init_model();
521536
521561
  init_paths();
521537
521562
  init_analytics();
521538
521563
  init_slowOperations();
@@ -521585,7 +521610,7 @@ When a user describes what they want an agent to do, you will:
521585
521610
  user: "Hello"
521586
521611
  assistant: "I'm going to use the ${AGENT_TOOL_NAME} tool to launch the greeting-responder agent to respond with a friendly joke"
521587
521612
  <commentary>
521588
- Since the user is greeting, use the greeting-responder agent to respond with a friendly joke.
521613
+ Since the user is greeting, use the greeting-responder agent to respond with a friendly joke.
521589
521614
  </commentary>
521590
521615
  </example>
521591
521616
  - If the user mentioned or implied that the agent should be used proactively, you should include examples of this.
@@ -521608,6 +521633,7 @@ Key principles for your system prompts:
521608
521633
 
521609
521634
  Remember: The agents you create should be autonomous experts capable of handling their designated tasks with minimal additional guidance. Your system prompts are their complete operational manual.
521610
521635
  `;
521636
+ AINATIVE_FALLBACK_MODELS = ["llama-3.3-70b", "devstral", "deepseek-v3"];
521611
521637
  });
521612
521638
 
521613
521639
  // src/components/agents/new-agent-creation/wizard-steps/GenerateStep.tsx
@@ -524039,7 +524065,7 @@ async function captureMemoryDiagnostics(trigger, dumpNumber = 0) {
524039
524065
  smapsRollup,
524040
524066
  platform: process.platform,
524041
524067
  nodeVersion: process.version,
524042
- ccVersion: "0.7.37"
524068
+ ccVersion: "0.7.41"
524043
524069
  };
524044
524070
  }
524045
524071
  async function performHeapDump(trigger = "manual", dumpNumber = 0) {
@@ -524567,7 +524593,7 @@ var init_bridge_kick = __esm(() => {
524567
524593
  var call56 = async () => {
524568
524594
  return {
524569
524595
  type: "text",
524570
- value: `${"0.7.37"} (built ${"1779062838"})`
524596
+ value: `${"0.7.41"} (built ${"1779065790"})`
524571
524597
  };
524572
524598
  }, version7, version_default;
524573
524599
  var init_version = __esm(() => {
@@ -533515,7 +533541,7 @@ function generateHtmlReport(data, insights) {
533515
533541
  </html>`;
533516
533542
  }
533517
533543
  function buildExportData(data, insights, facets, remoteStats) {
533518
- const version8 = typeof MACRO !== "undefined" ? "0.7.37" : "unknown";
533544
+ const version8 = typeof MACRO !== "undefined" ? "0.7.41" : "unknown";
533519
533545
  const remote_hosts_collected = remoteStats?.hosts.filter((h2) => h2.sessionCount > 0).map((h2) => h2.name);
533520
533546
  const facets_summary = {
533521
533547
  total: facets.size,
@@ -537462,7 +537488,7 @@ var init_sessionStorage = __esm(() => {
537462
537488
  init_settings2();
537463
537489
  init_slowOperations();
537464
537490
  init_uuid();
537465
- VERSION5 = typeof MACRO !== "undefined" ? "0.7.37" : "unknown";
537491
+ VERSION5 = typeof MACRO !== "undefined" ? "0.7.41" : "unknown";
537466
537492
  MAX_TOMBSTONE_REWRITE_BYTES = 50 * 1024 * 1024;
537467
537493
  SKIP_FIRST_PROMPT_PATTERN = /^(?:\s*<[a-z][\w-]*[\s>]|\[Request interrupted by user[^\]]*\])/;
537468
537494
  EPHEMERAL_PROGRESS_TYPES = new Set([
@@ -538667,7 +538693,7 @@ var init_filesystem = __esm(() => {
538667
538693
  });
538668
538694
  getBundledSkillsRoot = memoize_default(function getBundledSkillsRoot2() {
538669
538695
  const nonce = randomBytes19(16).toString("hex");
538670
- return join132(getClaudeTempDir(), "bundled-skills", "0.7.37", nonce);
538696
+ return join132(getClaudeTempDir(), "bundled-skills", "0.7.41", nonce);
538671
538697
  });
538672
538698
  getResolvedWorkingDirPaths = memoize_default(getPathsForPermissionCheck);
538673
538699
  });
@@ -544639,7 +544665,7 @@ function computeFingerprint(messageText, version8) {
544639
544665
  }
544640
544666
  function computeFingerprintFromMessages(messages) {
544641
544667
  const firstMessageText = extractFirstMessageText(messages);
544642
- return computeFingerprint(firstMessageText, "0.7.37");
544668
+ return computeFingerprint(firstMessageText, "0.7.41");
544643
544669
  }
544644
544670
  var FINGERPRINT_SALT = "59cf53e54c78";
544645
544671
  var init_fingerprint = () => {};
@@ -545249,8 +545275,8 @@ async function* ainativeBypass(messages, systemPrompt, model, toolSchemas, signa
545249
545275
  });
545250
545276
  if (!resp.ok) {
545251
545277
  const errText = await resp.text().catch(() => "unknown error");
545252
- if (resp.status === 401 && errText.includes("0.0.0.0")) {
545253
- throw new Error(`AINative gateway error: the upstream LLM provider rejected the request. ` + `This is a backend configuration issue (model: ${model}). ` + `Try a different model with /model, or contact AINative support.`);
545278
+ if (errText.includes("0.0.0.0")) {
545279
+ throw new Error(`AINative gateway error: the model "${model}" is currently unavailable ` + `(backend provider unreachable). Switch to a working model with /model ` + `(try: nous-coder, llama-3.3-70b, devstral, deepseek-v3).`);
545254
545280
  }
545255
545281
  throw new Error(`AINative API error: ${resp.status} ${errText}`);
545256
545282
  }
@@ -546702,7 +546728,7 @@ async function sideQuery(opts) {
546702
546728
  betas.push(STRUCTURED_OUTPUTS_BETA_HEADER);
546703
546729
  }
546704
546730
  const messageText = extractFirstUserMessageText(messages);
546705
- const fingerprint = computeFingerprint(messageText, "0.7.37");
546731
+ const fingerprint = computeFingerprint(messageText, "0.7.41");
546706
546732
  const attributionHeader = getAttributionHeader(fingerprint);
546707
546733
  const systemBlocks = [
546708
546734
  attributionHeader ? { type: "text", text: attributionHeader } : null,
@@ -551284,7 +551310,7 @@ function buildSystemInitMessage(inputs) {
551284
551310
  slash_commands: inputs.commands.filter((c6) => c6.userInvocable !== false).map((c6) => c6.name),
551285
551311
  apiKeySource: getAnthropicApiKeyWithSource().source,
551286
551312
  betas: getSdkBetas(),
551287
- claude_code_version: "0.7.37",
551313
+ claude_code_version: "0.7.41",
551288
551314
  output_style: outputStyle2,
551289
551315
  agents: inputs.agents.map((agent) => agent.agentType),
551290
551316
  skills: inputs.skills.filter((s) => s.userInvocable !== false).map((skill) => skill.name),
@@ -565836,7 +565862,7 @@ var init_useVoiceEnabled = __esm(() => {
565836
565862
  function getSemverPart(version8) {
565837
565863
  return `${import_semver13.major(version8, { loose: true })}.${import_semver13.minor(version8, { loose: true })}.${import_semver13.patch(version8, { loose: true })}`;
565838
565864
  }
565839
- function useUpdateNotification(updatedVersion, initialVersion = "0.7.37") {
565865
+ function useUpdateNotification(updatedVersion, initialVersion = "0.7.41") {
565840
565866
  const [lastNotifiedSemver, setLastNotifiedSemver] = import_react226.useState(() => getSemverPart(initialVersion));
565841
565867
  if (!updatedVersion) {
565842
565868
  return null;
@@ -565876,7 +565902,7 @@ function AutoUpdater({
565876
565902
  return;
565877
565903
  }
565878
565904
  if (false) {}
565879
- const currentVersion = "0.7.37";
565905
+ const currentVersion = "0.7.41";
565880
565906
  const channel = getInitialSettings()?.autoUpdatesChannel ?? "latest";
565881
565907
  let latestVersion = await getLatestVersion(channel);
565882
565908
  const isDisabled = isAutoUpdaterDisabled();
@@ -566089,12 +566115,12 @@ function NativeAutoUpdater({
566089
566115
  logEvent("tengu_native_auto_updater_start", {});
566090
566116
  try {
566091
566117
  const maxVersion = await getMaxVersion();
566092
- if (maxVersion && gt("0.7.37", maxVersion)) {
566118
+ if (maxVersion && gt("0.7.41", maxVersion)) {
566093
566119
  const msg = await getMaxVersionMessage();
566094
566120
  setMaxVersionIssue(msg ?? "affects your version");
566095
566121
  }
566096
566122
  const result = await installLatest(channel);
566097
- const currentVersion = "0.7.37";
566123
+ const currentVersion = "0.7.41";
566098
566124
  const latencyMs = Date.now() - startTime;
566099
566125
  if (result.lockFailed) {
566100
566126
  logEvent("tengu_native_auto_updater_lock_contention", {
@@ -566231,17 +566257,17 @@ function PackageManagerAutoUpdater(t0) {
566231
566257
  const maxVersion = await getMaxVersion();
566232
566258
  if (maxVersion && latest && gt(latest, maxVersion)) {
566233
566259
  logForDebugging(`PackageManagerAutoUpdater: maxVersion ${maxVersion} is set, capping update from ${latest} to ${maxVersion}`);
566234
- if (gte("0.7.37", maxVersion)) {
566235
- logForDebugging(`PackageManagerAutoUpdater: current version ${"0.7.37"} is already at or above maxVersion ${maxVersion}, skipping update`);
566260
+ if (gte("0.7.41", maxVersion)) {
566261
+ logForDebugging(`PackageManagerAutoUpdater: current version ${"0.7.41"} is already at or above maxVersion ${maxVersion}, skipping update`);
566236
566262
  setUpdateAvailable(false);
566237
566263
  return;
566238
566264
  }
566239
566265
  latest = maxVersion;
566240
566266
  }
566241
- const hasUpdate = latest && !gte("0.7.37", latest) && !shouldSkipVersion(latest);
566267
+ const hasUpdate = latest && !gte("0.7.41", latest) && !shouldSkipVersion(latest);
566242
566268
  setUpdateAvailable(!!hasUpdate);
566243
566269
  if (hasUpdate) {
566244
- logForDebugging(`PackageManagerAutoUpdater: Update available ${"0.7.37"} -> ${latest}`);
566270
+ logForDebugging(`PackageManagerAutoUpdater: Update available ${"0.7.41"} -> ${latest}`);
566245
566271
  }
566246
566272
  };
566247
566273
  $3[0] = t1;
@@ -566275,7 +566301,7 @@ function PackageManagerAutoUpdater(t0) {
566275
566301
  wrap: "truncate",
566276
566302
  children: [
566277
566303
  "currentVersion: ",
566278
- "0.7.37"
566304
+ "0.7.41"
566279
566305
  ]
566280
566306
  }, undefined, true, undefined, this);
566281
566307
  $3[3] = verbose;
@@ -574385,7 +574411,7 @@ function buildStatusLineCommandInput(permissionMode, exceeds200kTokens, settings
574385
574411
  project_dir: getOriginalCwd(),
574386
574412
  added_dirs: addedDirs
574387
574413
  },
574388
- version: "0.7.37",
574414
+ version: "0.7.41",
574389
574415
  output_style: {
574390
574416
  name: outputStyleName
574391
574417
  },
@@ -585773,7 +585799,7 @@ async function submitTranscriptShare(messages, trigger, appearanceId) {
585773
585799
  } catch {}
585774
585800
  const data = {
585775
585801
  trigger,
585776
- version: "0.7.37",
585802
+ version: "0.7.41",
585777
585803
  platform: process.platform,
585778
585804
  transcript,
585779
585805
  subagentTranscripts: Object.keys(subagentTranscripts).length > 0 ? subagentTranscripts : undefined,
@@ -597790,7 +597816,7 @@ function WelcomeV2() {
597790
597816
  dimColor: true,
597791
597817
  children: [
597792
597818
  "v",
597793
- "0.7.37",
597819
+ "0.7.41",
597794
597820
  " "
597795
597821
  ]
597796
597822
  }, undefined, true, undefined, this)
@@ -599091,7 +599117,7 @@ function completeOnboarding() {
599091
599117
  saveGlobalConfig((current) => ({
599092
599118
  ...current,
599093
599119
  hasCompletedOnboarding: true,
599094
- lastOnboardingVersion: "0.7.37"
599120
+ lastOnboardingVersion: "0.7.41"
599095
599121
  }));
599096
599122
  }
599097
599123
  function showDialog(root2, renderer) {
@@ -603570,7 +603596,7 @@ function appendToLog(path28, message) {
603570
603596
  cwd: getFsImplementation().cwd(),
603571
603597
  userType: "external",
603572
603598
  sessionId: getSessionId(),
603573
- version: "0.7.37"
603599
+ version: "0.7.41"
603574
603600
  };
603575
603601
  getLogWriter(path28).write(messageWithTimestamp);
603576
603602
  }
@@ -607529,8 +607555,8 @@ async function getEnvLessBridgeConfig() {
607529
607555
  }
607530
607556
  async function checkEnvLessBridgeMinVersion() {
607531
607557
  const cfg = await getEnvLessBridgeConfig();
607532
- if (cfg.min_version && lt("0.7.37", cfg.min_version)) {
607533
- return `Your version of Cody CLI (${"0.7.37"}) is too old for Remote Control.
607558
+ if (cfg.min_version && lt("0.7.41", cfg.min_version)) {
607559
+ return `Your version of Cody CLI (${"0.7.41"}) is too old for Remote Control.
607534
607560
  Version ${cfg.min_version} or higher is required. Run \`claude update\` to update.`;
607535
607561
  }
607536
607562
  return null;
@@ -608004,7 +608030,7 @@ async function initBridgeCore(params) {
608004
608030
  const rawApi = createBridgeApiClient({
608005
608031
  baseUrl,
608006
608032
  getAccessToken,
608007
- runnerVersion: "0.7.37",
608033
+ runnerVersion: "0.7.41",
608008
608034
  onDebug: logForDebugging,
608009
608035
  onAuth401,
608010
608036
  getTrustedDeviceToken
@@ -613641,7 +613667,7 @@ async function startMCPServer(cwd3, debug2, verbose) {
613641
613667
  setCwd(cwd3);
613642
613668
  const server = new Server2({
613643
613669
  name: "claude/tengu",
613644
- version: "0.7.37"
613670
+ version: "0.7.41"
613645
613671
  }, {
613646
613672
  capabilities: {
613647
613673
  tools: {}
@@ -615252,7 +615278,7 @@ __export(exports_update, {
615252
615278
  });
615253
615279
  async function update() {
615254
615280
  logEvent("tengu_update_check", {});
615255
- writeToStdout(`Current version: ${"0.7.37"}
615281
+ writeToStdout(`Current version: ${"0.7.41"}
615256
615282
  `);
615257
615283
  const channel = getInitialSettings()?.autoUpdatesChannel ?? "latest";
615258
615284
  writeToStdout(`Checking for updates to ${channel} version...
@@ -615327,8 +615353,8 @@ async function update() {
615327
615353
  writeToStdout(`Cody CLI is managed by Homebrew.
615328
615354
  `);
615329
615355
  const latest = await getLatestVersion(channel);
615330
- if (latest && !gte("0.7.37", latest)) {
615331
- writeToStdout(`Update available: ${"0.7.37"} → ${latest}
615356
+ if (latest && !gte("0.7.41", latest)) {
615357
+ writeToStdout(`Update available: ${"0.7.41"} → ${latest}
615332
615358
  `);
615333
615359
  writeToStdout(`
615334
615360
  `);
@@ -615344,8 +615370,8 @@ async function update() {
615344
615370
  writeToStdout(`Cody CLI is managed by winget.
615345
615371
  `);
615346
615372
  const latest = await getLatestVersion(channel);
615347
- if (latest && !gte("0.7.37", latest)) {
615348
- writeToStdout(`Update available: ${"0.7.37"} → ${latest}
615373
+ if (latest && !gte("0.7.41", latest)) {
615374
+ writeToStdout(`Update available: ${"0.7.41"} → ${latest}
615349
615375
  `);
615350
615376
  writeToStdout(`
615351
615377
  `);
@@ -615361,8 +615387,8 @@ async function update() {
615361
615387
  writeToStdout(`Cody CLI is managed by apk.
615362
615388
  `);
615363
615389
  const latest = await getLatestVersion(channel);
615364
- if (latest && !gte("0.7.37", latest)) {
615365
- writeToStdout(`Update available: ${"0.7.37"} → ${latest}
615390
+ if (latest && !gte("0.7.41", latest)) {
615391
+ writeToStdout(`Update available: ${"0.7.41"} → ${latest}
615366
615392
  `);
615367
615393
  writeToStdout(`
615368
615394
  `);
@@ -615427,11 +615453,11 @@ async function update() {
615427
615453
  `);
615428
615454
  await gracefulShutdown(1);
615429
615455
  }
615430
- if (result.latestVersion === "0.7.37") {
615431
- writeToStdout(source_default.green(`Cody CLI is up to date (${"0.7.37"})`) + `
615456
+ if (result.latestVersion === "0.7.41") {
615457
+ writeToStdout(source_default.green(`Cody CLI is up to date (${"0.7.41"})`) + `
615432
615458
  `);
615433
615459
  } else {
615434
- writeToStdout(source_default.green(`Successfully updated from ${"0.7.37"} to version ${result.latestVersion}`) + `
615460
+ writeToStdout(source_default.green(`Successfully updated from ${"0.7.41"} to version ${result.latestVersion}`) + `
615435
615461
  `);
615436
615462
  await regenerateCompletionCache();
615437
615463
  }
@@ -615491,12 +615517,12 @@ async function update() {
615491
615517
  `);
615492
615518
  await gracefulShutdown(1);
615493
615519
  }
615494
- if (latestVersion === "0.7.37") {
615495
- writeToStdout(source_default.green(`Cody CLI is up to date (${"0.7.37"})`) + `
615520
+ if (latestVersion === "0.7.41") {
615521
+ writeToStdout(source_default.green(`Cody CLI is up to date (${"0.7.41"})`) + `
615496
615522
  `);
615497
615523
  await gracefulShutdown(0);
615498
615524
  }
615499
- writeToStdout(`New version available: ${latestVersion} (current: ${"0.7.37"})
615525
+ writeToStdout(`New version available: ${latestVersion} (current: ${"0.7.41"})
615500
615526
  `);
615501
615527
  writeToStdout(`Installing update...
615502
615528
  `);
@@ -615541,7 +615567,7 @@ async function update() {
615541
615567
  logForDebugging(`update: Installation status: ${status2}`);
615542
615568
  switch (status2) {
615543
615569
  case "success":
615544
- writeToStdout(source_default.green(`Successfully updated from ${"0.7.37"} to version ${latestVersion}`) + `
615570
+ writeToStdout(source_default.green(`Successfully updated from ${"0.7.41"} to version ${latestVersion}`) + `
615545
615571
  `);
615546
615572
  await regenerateCompletionCache();
615547
615573
  break;
@@ -616786,7 +616812,7 @@ ${customInstructions}` : customInstructions;
616786
616812
  }
616787
616813
  }
616788
616814
  logForDiagnosticsNoPII("info", "started", {
616789
- version: "0.7.37",
616815
+ version: "0.7.41",
616790
616816
  is_native_binary: isInBundledMode()
616791
616817
  });
616792
616818
  registerCleanup(async () => {
@@ -617563,7 +617589,7 @@ Usage: cody --remote "your task description"`, () => gracefulShutdown(1));
617563
617589
  } else {
617564
617590
  const pendingHookMessages = hooksPromise && hookMessages.length === 0 ? hooksPromise : undefined;
617565
617591
  profileCheckpoint("action_after_hooks");
617566
- console.log(getWelcomeMessage("0.7.37"));
617592
+ console.log(getWelcomeMessage("0.7.41"));
617567
617593
  maybeActivateProactive(options);
617568
617594
  maybeActivateBrief(options);
617569
617595
  if (false) {}
@@ -617580,10 +617606,10 @@ Usage: cody --remote "your task description"`, () => gracefulShutdown(1));
617580
617606
  pendingHookMessages
617581
617607
  }, renderAndRun);
617582
617608
  }
617583
- }).version("0.7.37 (Cody CLI)", "-v, --version", "Output the version number");
617609
+ }).version("0.7.41 (Cody CLI)", "-v, --version", "Output the version number");
617584
617610
  program2.configureOutput({
617585
617611
  writeOut: (str2) => {
617586
- if (str2.includes("0.7.37")) {
617612
+ if (str2.includes("0.7.41")) {
617587
617613
  process.stdout.write(getCodyLogo() + `
617588
617614
  ` + str2);
617589
617615
  } else {
@@ -618141,7 +618167,7 @@ async function main2() {
618141
618167
  if (args.length === 1 && (args[0] === "--version" || args[0] === "-v" || args[0] === "-V")) {
618142
618168
  const { getCodyLogo: getCodyLogo2 } = await Promise.resolve().then(() => (init_branding(), exports_branding));
618143
618169
  console.log(getCodyLogo2() + `
618144
- 0.7.37 (Cody CLI)`);
618170
+ 0.7.41 (Cody CLI)`);
618145
618171
  return;
618146
618172
  }
618147
618173
  const {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ainative/cody-cli",
3
- "version": "0.7.39",
3
+ "version": "0.7.41",
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",