@costrict/csc 4.2.30 → 4.2.31

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/cli.js CHANGED
@@ -30848,8 +30848,8 @@ function getClientVersion() {
30848
30848
  if (cached)
30849
30849
  return cached;
30850
30850
  try {
30851
- if ("4.2.30") {
30852
- cached = "4.2.30";
30851
+ if ("4.2.31") {
30852
+ cached = "4.2.31";
30853
30853
  return cached;
30854
30854
  }
30855
30855
  } catch {}
@@ -223380,7 +223380,7 @@ async function fetchCoStrictModels(baseUrl, accessToken) {
223380
223380
  headers: {
223381
223381
  Authorization: `Bearer ${accessToken}`,
223382
223382
  Accept: "application/json",
223383
- "User-Agent": `csc/${"4.2.30"}`
223383
+ "User-Agent": `csc/${"4.2.31"}`
223384
223384
  },
223385
223385
  signal: controller.signal
223386
223386
  });
@@ -225420,7 +225420,7 @@ var init_auth7 = __esm(() => {
225420
225420
 
225421
225421
  // src/utils/userAgent.ts
225422
225422
  function getClaudeCodeUserAgent() {
225423
- return `costrict/${"4.2.30"}`;
225423
+ return `costrict/${"4.2.31"}`;
225424
225424
  }
225425
225425
 
225426
225426
  // src/utils/workloadContext.ts
@@ -225442,7 +225442,7 @@ function getUserAgent() {
225442
225442
  const clientApp = process.env.CLAUDE_AGENT_SDK_CLIENT_APP ? `, client-app/${process.env.CLAUDE_AGENT_SDK_CLIENT_APP}` : "";
225443
225443
  const workload = getWorkload();
225444
225444
  const workloadSuffix = workload ? `, workload/${workload}` : "";
225445
- return `csc/${"4.2.30"}`;
225445
+ return `csc/${"4.2.31"}`;
225446
225446
  }
225447
225447
  function getMCPUserAgent() {
225448
225448
  const parts = [];
@@ -225456,7 +225456,7 @@ function getMCPUserAgent() {
225456
225456
  parts.push(`client-app/${process.env.CLAUDE_AGENT_SDK_CLIENT_APP}`);
225457
225457
  }
225458
225458
  const suffix = parts.length > 0 ? ` (${parts.join(", ")})` : "";
225459
- return `csc/${"4.2.30"}${suffix}`;
225459
+ return `csc/${"4.2.31"}${suffix}`;
225460
225460
  }
225461
225461
  function getWebFetchUserAgent() {
225462
225462
  return `Claude-User (${getClaudeCodeUserAgent()}; +https://support.anthropic.com/)`;
@@ -225576,7 +225576,7 @@ var init_user = __esm(() => {
225576
225576
  deviceId,
225577
225577
  sessionId: getSessionId(),
225578
225578
  email: getEmail(),
225579
- appVersion: "4.2.30",
225579
+ appVersion: "4.2.31",
225580
225580
  platform: getHostPlatformForAnalytics(),
225581
225581
  organizationUuid,
225582
225582
  accountUuid,
@@ -236624,7 +236624,7 @@ var init_metadata = __esm(() => {
236624
236624
  COMPOUND_OPERATOR_REGEX = /\s*(?:&&|\|\||[;|])\s*/;
236625
236625
  WHITESPACE_REGEX = /\s+/;
236626
236626
  getVersionBase = memoize_default(() => {
236627
- const match = "4.2.30".match(/^\d+\.\d+\.\d+(?:-[a-z]+)?/);
236627
+ const match = "4.2.31".match(/^\d+\.\d+\.\d+(?:-[a-z]+)?/);
236628
236628
  return match ? match[0] : undefined;
236629
236629
  });
236630
236630
  buildEnvContext = memoize_default(async () => {
@@ -236664,9 +236664,9 @@ var init_metadata = __esm(() => {
236664
236664
  isGithubAction: isEnvTruthy(process.env.GITHUB_ACTIONS),
236665
236665
  isClaudeCodeAction: isEnvTruthy(process.env.CLAUDE_CODE_ACTION),
236666
236666
  isClaudeAiAuth: isClaudeAISubscriber(),
236667
- version: "4.2.30",
236667
+ version: "4.2.31",
236668
236668
  versionBase: getVersionBase(),
236669
- buildTime: "2026-08-25T08:44:38.191Z",
236669
+ buildTime: "2026-08-27T19:17:40.735Z",
236670
236670
  deploymentEnvironment: env4.detectDeploymentEnvironment(),
236671
236671
  ...isEnvTruthy(process.env.GITHUB_ACTIONS) && {
236672
236672
  githubEventName: process.env.GITHUB_EVENT_NAME,
@@ -237337,7 +237337,7 @@ function initialize1PEventLogging() {
237337
237337
  const platform3 = getPlatform();
237338
237338
  const attributes = {
237339
237339
  [import_semantic_conventions2.ATTR_SERVICE_NAME]: "claude-code",
237340
- [import_semantic_conventions2.ATTR_SERVICE_VERSION]: "4.2.30"
237340
+ [import_semantic_conventions2.ATTR_SERVICE_VERSION]: "4.2.31"
237341
237341
  };
237342
237342
  if (platform3 === "wsl") {
237343
237343
  const wslVersion = getWslVersion();
@@ -237364,7 +237364,7 @@ function initialize1PEventLogging() {
237364
237364
  })
237365
237365
  ]
237366
237366
  });
237367
- firstPartyEventLogger = firstPartyEventLoggerProvider.getLogger("com.anthropic.claude_code.events", "4.2.30");
237367
+ firstPartyEventLogger = firstPartyEventLoggerProvider.getLogger("com.anthropic.claude_code.events", "4.2.31");
237368
237368
  }
237369
237369
  async function reinitialize1PEventLoggingIfConfigChanged() {
237370
237370
  if (!is1PEventLoggingEnabled() || !firstPartyEventLoggerProvider) {
@@ -354531,7 +354531,7 @@ function getTelemetryAttributes() {
354531
354531
  attributes["session.id"] = sessionId;
354532
354532
  }
354533
354533
  if (shouldIncludeAttribute("OTEL_METRICS_INCLUDE_VERSION")) {
354534
- attributes["app.version"] = "4.2.30";
354534
+ attributes["app.version"] = "4.2.31";
354535
354535
  }
354536
354536
  const oauthAccount = getOauthAccountInfo();
354537
354537
  if (oauthAccount) {
@@ -469657,7 +469657,7 @@ function getInstallationEnv() {
469657
469657
  return;
469658
469658
  }
469659
469659
  function getClaudeCodeVersion() {
469660
- return "4.2.30";
469660
+ return "4.2.31";
469661
469661
  }
469662
469662
  async function getInstalledVSCodeExtensionVersion(command4) {
469663
469663
  const { stdout } = await execFileNoThrow(command4, ["--list-extensions", "--show-versions"], {
@@ -523297,7 +523297,7 @@ function initLangfuse() {
523297
523297
  flushInterval: parseInt(process.env.LANGFUSE_FLUSH_INTERVAL ?? "10", 10),
523298
523298
  mask: maskFn,
523299
523299
  environment: process.env.LANGFUSE_TRACING_ENVIRONMENT ?? "development",
523300
- release: "4.2.30",
523300
+ release: "4.2.31",
523301
523301
  exportMode: process.env.LANGFUSE_EXPORT_MODE ?? "batched",
523302
523302
  timeout: parseInt(process.env.LANGFUSE_TIMEOUT ?? "5", 10)
523303
523303
  });
@@ -523856,7 +523856,7 @@ function computeFingerprint(messageText2, version10) {
523856
523856
  }
523857
523857
  function computeFingerprintFromMessages(messages) {
523858
523858
  const firstMessageText = extractFirstMessageText(messages);
523859
- return computeFingerprint(firstMessageText, "4.2.30");
523859
+ return computeFingerprint(firstMessageText, "4.2.31");
523860
523860
  }
523861
523861
  var FINGERPRINT_SALT = "59cf53e54c78";
523862
523862
  var init_fingerprint = () => {};
@@ -524406,7 +524406,7 @@ async function sideQuery(opts) {
524406
524406
  betas.push(STRUCTURED_OUTPUTS_BETA_HEADER);
524407
524407
  }
524408
524408
  const messageText2 = extractFirstUserMessageText(messages);
524409
- const fingerprint = computeFingerprint(messageText2, "4.2.30");
524409
+ const fingerprint = computeFingerprint(messageText2, "4.2.31");
524410
524410
  const attributionHeader = getAttributionHeader(fingerprint);
524411
524411
  const systemBlocks = [
524412
524412
  attributionHeader ? { type: "text", text: attributionHeader } : null,
@@ -525832,7 +525832,7 @@ async function setupSdkMcpClients(sdkMcpConfigs, sendMcpMessage) {
525832
525832
  const client10 = new Client({
525833
525833
  name: "claude-code",
525834
525834
  title: "CoStrict",
525835
- version: "4.2.30",
525835
+ version: "4.2.31",
525836
525836
  description: "CoStrict agentic coding tool",
525837
525837
  websiteUrl: PRODUCT_URL
525838
525838
  }, {
@@ -526203,7 +526203,7 @@ var init_client17 = __esm(() => {
526203
526203
  const client10 = new Client({
526204
526204
  name: "claude-code",
526205
526205
  title: "CoStrict",
526206
- version: "4.2.30",
526206
+ version: "4.2.31",
526207
526207
  description: "CoStrict agentic coding tool",
526208
526208
  websiteUrl: PRODUCT_URL
526209
526209
  }, {
@@ -575350,7 +575350,7 @@ function initSentry() {
575350
575350
  }
575351
575351
  init3({
575352
575352
  dsn,
575353
- release: typeof MACRO !== "undefined" ? "4.2.30" : undefined,
575353
+ release: typeof MACRO !== "undefined" ? "4.2.31" : undefined,
575354
575354
  environment: typeof BUILD_ENV !== "undefined" ? BUILD_ENV : "production",
575355
575355
  maxBreadcrumbs: 20,
575356
575356
  sampleRate: 1,
@@ -602999,7 +602999,7 @@ async function initializeBetaTracing(resource) {
602999
602999
  });
603000
603000
  logs.setGlobalLoggerProvider(loggerProvider);
603001
603001
  setLoggerProvider(loggerProvider);
603002
- const eventLogger = logs.getLogger("com.anthropic.claude_code.events", "4.2.30");
603002
+ const eventLogger = logs.getLogger("com.anthropic.claude_code.events", "4.2.31");
603003
603003
  setEventLogger(eventLogger);
603004
603004
  process.on("beforeExit", async () => {
603005
603005
  await loggerProvider?.forceFlush();
@@ -603039,7 +603039,7 @@ async function initializeTelemetry() {
603039
603039
  const platform10 = getPlatform();
603040
603040
  const baseAttributes = {
603041
603041
  [import_semantic_conventions29.ATTR_SERVICE_NAME]: "claude-code",
603042
- [import_semantic_conventions29.ATTR_SERVICE_VERSION]: "4.2.30"
603042
+ [import_semantic_conventions29.ATTR_SERVICE_VERSION]: "4.2.31"
603043
603043
  };
603044
603044
  if (platform10 === "wsl") {
603045
603045
  const wslVersion = getWslVersion();
@@ -603084,7 +603084,7 @@ async function initializeTelemetry() {
603084
603084
  } catch {}
603085
603085
  };
603086
603086
  registerCleanup(shutdownTelemetry2);
603087
- return meterProvider2.getMeter("com.anthropic.claude_code", "4.2.30");
603087
+ return meterProvider2.getMeter("com.anthropic.claude_code", "4.2.31");
603088
603088
  }
603089
603089
  const meterProvider = new import_sdk_metrics2.MeterProvider({
603090
603090
  resource,
@@ -603104,7 +603104,7 @@ async function initializeTelemetry() {
603104
603104
  });
603105
603105
  logs.setGlobalLoggerProvider(loggerProvider);
603106
603106
  setLoggerProvider(loggerProvider);
603107
- const eventLogger = logs.getLogger("com.anthropic.claude_code.events", "4.2.30");
603107
+ const eventLogger = logs.getLogger("com.anthropic.claude_code.events", "4.2.31");
603108
603108
  setEventLogger(eventLogger);
603109
603109
  logForDebugging("[3P telemetry] Event logger set successfully");
603110
603110
  process.on("beforeExit", async () => {
@@ -603166,7 +603166,7 @@ Current timeout: ${timeoutMs}ms
603166
603166
  }
603167
603167
  };
603168
603168
  registerCleanup(shutdownTelemetry);
603169
- return meterProvider.getMeter("com.anthropic.claude_code", "4.2.30");
603169
+ return meterProvider.getMeter("com.anthropic.claude_code", "4.2.31");
603170
603170
  }
603171
603171
  async function flushTelemetry() {
603172
603172
  const meterProvider = getMeterProvider();
@@ -604136,7 +604136,7 @@ async function installGlobalPackage(specificVersion) {
604136
604136
  logError2(new AutoUpdaterError("Another process is currently installing an update"));
604137
604137
  logEvent("tengu_auto_updater_lock_contention", {
604138
604138
  pid: process.pid,
604139
- currentVersion: "4.2.30"
604139
+ currentVersion: "4.2.31"
604140
604140
  });
604141
604141
  return { status: "in_progress" };
604142
604142
  }
@@ -604145,7 +604145,7 @@ async function installGlobalPackage(specificVersion) {
604145
604145
  if (!env4.isRunningWithBun() && env4.isNpmFromWindowsPath()) {
604146
604146
  logError2(new Error("Windows NPM detected in WSL environment"));
604147
604147
  logEvent("tengu_auto_updater_windows_npm_in_wsl", {
604148
- currentVersion: "4.2.30"
604148
+ currentVersion: "4.2.31"
604149
604149
  });
604150
604150
  return {
604151
604151
  status: "install_failed",
@@ -604691,7 +604691,7 @@ function detectLinuxGlobPatternWarnings() {
604691
604691
  }
604692
604692
  async function getDoctorDiagnostic() {
604693
604693
  const installationType = await getCurrentInstallationType();
604694
- const version10 = typeof MACRO !== "undefined" ? "4.2.30" : "unknown";
604694
+ const version10 = typeof MACRO !== "undefined" ? "4.2.31" : "unknown";
604695
604695
  const installationPath = await getInstallationPath();
604696
604696
  const invokedBinary = getInvokedBinary();
604697
604697
  const multipleInstallations = await detectMultipleInstallations();
@@ -605633,8 +605633,8 @@ async function updateLatest(channelOrVersion, forceReinstall = false) {
605633
605633
  const maxVersion = await getMaxVersion();
605634
605634
  if (maxVersion && gt(version10, maxVersion)) {
605635
605635
  logForDebugging(`Native installer: maxVersion ${maxVersion} is set, capping update from ${version10} to ${maxVersion}`);
605636
- if (gte2("4.2.30", maxVersion)) {
605637
- logForDebugging(`Native installer: current version ${"4.2.30"} is already at or above maxVersion ${maxVersion}, skipping update`);
605636
+ if (gte2("4.2.31", maxVersion)) {
605637
+ logForDebugging(`Native installer: current version ${"4.2.31"} is already at or above maxVersion ${maxVersion}, skipping update`);
605638
605638
  logEvent("tengu_native_update_skipped_max_version", {
605639
605639
  latency_ms: Date.now() - startTime2,
605640
605640
  max_version: maxVersion,
@@ -605645,7 +605645,7 @@ async function updateLatest(channelOrVersion, forceReinstall = false) {
605645
605645
  version10 = maxVersion;
605646
605646
  }
605647
605647
  }
605648
- if (!forceReinstall && version10 === "4.2.30" && await versionIsAvailable(version10) && await isPossibleClaudeBinary(executablePath)) {
605648
+ if (!forceReinstall && version10 === "4.2.31" && await versionIsAvailable(version10) && await isPossibleClaudeBinary(executablePath)) {
605649
605649
  logForDebugging(`Found ${version10} at ${executablePath}, skipping install`);
605650
605650
  logEvent("tengu_native_update_complete", {
605651
605651
  latency_ms: Date.now() - startTime2,
@@ -644222,7 +644222,7 @@ var init_prompt17 = __esm(() => {
644222
644222
  // packages/builtin-tools/src/tools/AgentTool/AgentTool.tsx
644223
644223
  function getAutoBackgroundMs() {
644224
644224
  if (isEnvTruthy(process.env.CLAUDE_AUTO_BACKGROUND_TASKS) || getFeatureValue_CACHED_MAY_BE_STALE("tengu_auto_background_agents", false)) {
644225
- return 120000;
644225
+ return 1800000;
644226
644226
  }
644227
644227
  return 0;
644228
644228
  }
@@ -714700,7 +714700,7 @@ function getAnthropicEnvMetadata() {
714700
714700
  function getBuildAgeMinutes() {
714701
714701
  if (false)
714702
714702
  ;
714703
- const buildTime = new Date("2026-08-25T08:44:38.191Z").getTime();
714703
+ const buildTime = new Date("2026-08-27T19:17:40.735Z").getTime();
714704
714704
  if (isNaN(buildTime))
714705
714705
  return;
714706
714706
  return Math.floor((Date.now() - buildTime) / 60000);
@@ -728805,7 +728805,7 @@ function Feedback({
728805
728805
  platform: env4.platform,
728806
728806
  gitRepo: envInfo.isGit,
728807
728807
  terminal: env4.terminal,
728808
- version: "4.2.30",
728808
+ version: "4.2.31",
728809
728809
  transcript: normalizeMessagesForAPI(messages),
728810
728810
  errors: sanitizedErrors,
728811
728811
  lastApiRequest: getLastAPIRequest(),
@@ -728988,7 +728988,7 @@ function Feedback({
728988
728988
  ", ",
728989
728989
  env4.terminal,
728990
728990
  ", v",
728991
- "4.2.30"
728991
+ "4.2.31"
728992
728992
  ]
728993
728993
  })
728994
728994
  ]
@@ -729085,7 +729085,7 @@ ${sanitizedDescription}
729085
729085
  ` + `**Environment Info**
729086
729086
  ` + `- Platform: ${env4.platform}
729087
729087
  ` + `- Terminal: ${env4.terminal}
729088
- ` + `- Version: ${"4.2.30"}
729088
+ ` + `- Version: ${"4.2.31"}
729089
729089
  ` + `- Feedback ID: ${feedbackId}
729090
729090
  ` + `
729091
729091
  **Errors**
@@ -731324,7 +731324,7 @@ function buildPrimarySection() {
731324
731324
  children: t("settings.status.renameHint")
731325
731325
  });
731326
731326
  return [
731327
- { label: t("settings.status.version"), value: "4.2.30" },
731327
+ { label: t("settings.status.version"), value: "4.2.31" },
731328
731328
  { label: t("settings.status.sessionName"), value: nameValue },
731329
731329
  { label: t("settings.status.sessionId"), value: sessionId },
731330
731330
  { label: t("settings.status.cwd"), value: getCwd() },
@@ -734202,7 +734202,7 @@ function Config({
734202
734202
  }
734203
734203
  })
734204
734204
  }) : showSubmenu === "ChannelDowngrade" ? /* @__PURE__ */ jsx_runtime192.jsx(ChannelDowngradeDialog, {
734205
- currentVersion: "4.2.30",
734205
+ currentVersion: "4.2.31",
734206
734206
  onChoice: (choice) => {
734207
734207
  setShowSubmenu(null);
734208
734208
  setTabsHidden(false);
@@ -734214,7 +734214,7 @@ function Config({
734214
734214
  autoUpdatesChannel: "stable"
734215
734215
  };
734216
734216
  if (choice === "stay") {
734217
- newSettings.minimumVersion = "4.2.30";
734217
+ newSettings.minimumVersion = "4.2.31";
734218
734218
  }
734219
734219
  updateSettingsForSource("userSettings", newSettings);
734220
734220
  setSettingsData((prev) => ({
@@ -739683,7 +739683,7 @@ function HelpV2({ onClose, commands: commands11 }) {
739683
739683
  color: "professionalBlue",
739684
739684
  children: [
739685
739685
  /* @__PURE__ */ jsx_runtime219.jsx(Tabs, {
739686
- title: process.env.USER_TYPE === "sf" ? "/help" : `CoStrict v${"4.2.30"}`,
739686
+ title: process.env.USER_TYPE === "sf" ? "/help" : `CoStrict v${"4.2.31"}`,
739687
739687
  color: "professionalBlue",
739688
739688
  defaultTab: "general",
739689
739689
  children: tabs
@@ -762398,7 +762398,7 @@ function getAllReleaseNotes(changelogContent = getStoredChangelogFromMemory()) {
762398
762398
  return [];
762399
762399
  }
762400
762400
  }
762401
- async function checkForReleaseNotes(lastSeenVersion, currentVersion = "4.2.30") {
762401
+ async function checkForReleaseNotes(lastSeenVersion, currentVersion = "4.2.31") {
762402
762402
  if (process.env.USER_TYPE === "sf") {
762403
762403
  const changelog = "";
762404
762404
  if (changelog) {
@@ -762425,7 +762425,7 @@ async function checkForReleaseNotes(lastSeenVersion, currentVersion = "4.2.30")
762425
762425
  releaseNotes
762426
762426
  };
762427
762427
  }
762428
- function checkForReleaseNotesSync(lastSeenVersion, currentVersion = "4.2.30") {
762428
+ function checkForReleaseNotesSync(lastSeenVersion, currentVersion = "4.2.31") {
762429
762429
  if (process.env.USER_TYPE === "sf") {
762430
762430
  const changelog = "";
762431
762431
  if (changelog) {
@@ -764938,7 +764938,7 @@ function isNotLoggedIn() {
764938
764938
  return true;
764939
764939
  }
764940
764940
  function getLogoDisplayData() {
764941
- const version10 = process.env.DEMO_VERSION ?? "4.2.30";
764941
+ const version10 = process.env.DEMO_VERSION ?? "4.2.31";
764942
764942
  const serverUrl = getDirectConnectServerUrl();
764943
764943
  const displayPath2 = process.env.DEMO_VERSION ? "/code/claude" : getDisplayPath(getCwd());
764944
764944
  const cwd2 = serverUrl ? `${displayPath2} in ${serverUrl.replace(/^https?:\/\//, "")}` : displayPath2;
@@ -765516,7 +765516,7 @@ var init_MatrixMessageLine = __esm(() => {
765516
765516
  // src/components/matrix-tactical/MatrixWelcome.tsx
765517
765517
  import { basename as basename48 } from "path";
765518
765518
  function MatrixWelcome({
765519
- version: version10 = "4.2.30",
765519
+ version: version10 = "4.2.31",
765520
765520
  projectName,
765521
765521
  cwd: cwd2,
765522
765522
  modelDisplayName,
@@ -766151,13 +766151,13 @@ function LogoV2() {
766151
766151
  const { hasReleaseNotes } = checkForReleaseNotesSync(config13.lastReleaseNotesSeen);
766152
766152
  import_react167.useEffect(() => {
766153
766153
  const currentConfig = getGlobalConfig();
766154
- if (currentConfig.lastReleaseNotesSeen === "4.2.30") {
766154
+ if (currentConfig.lastReleaseNotesSeen === "4.2.31") {
766155
766155
  return;
766156
766156
  }
766157
766157
  saveGlobalConfig((current2) => {
766158
- if (current2.lastReleaseNotesSeen === "4.2.30")
766158
+ if (current2.lastReleaseNotesSeen === "4.2.31")
766159
766159
  return current2;
766160
- return { ...current2, lastReleaseNotesSeen: "4.2.30" };
766160
+ return { ...current2, lastReleaseNotesSeen: "4.2.31" };
766161
766161
  });
766162
766162
  if (showOnboarding) {
766163
766163
  incrementProjectOnboardingSeenCount();
@@ -789722,7 +789722,7 @@ async function captureMemoryDiagnostics(trigger, dumpNumber = 0) {
789722
789722
  smapsRollup,
789723
789723
  platform: process.platform,
789724
789724
  nodeVersion: process.version,
789725
- ccVersion: "4.2.30"
789725
+ ccVersion: "4.2.31"
789726
789726
  };
789727
789727
  }
789728
789728
  async function performHeapDump(trigger = "manual", dumpNumber = 0) {
@@ -789838,7 +789838,7 @@ var init_mock_limits = __esm(() => {
789838
789838
  var call56 = async () => {
789839
789839
  return {
789840
789840
  type: "text",
789841
- value: `${"4.2.30"} (built ${"2026-08-25T08:44:38.191Z"})`
789841
+ value: `${"4.2.31"} (built ${"2026-08-27T19:17:40.735Z"})`
789842
789842
  };
789843
789843
  }, version10, version_default;
789844
789844
  var init_version2 = __esm(() => {
@@ -809717,7 +809717,7 @@ function generateHtmlReport(data, insights) {
809717
809717
  </html>`;
809718
809718
  }
809719
809719
  function buildExportData(data, insights, facets, remoteStats) {
809720
- const version11 = typeof MACRO !== "undefined" ? "4.2.30" : "unknown";
809720
+ const version11 = typeof MACRO !== "undefined" ? "4.2.31" : "unknown";
809721
809721
  const remote_hosts_collected = remoteStats?.hosts.filter((h8) => h8.sessionCount > 0).map((h8) => h8.name);
809722
809722
  const facets_summary = {
809723
809723
  total: facets.size,
@@ -814209,7 +814209,7 @@ var init_sessionStorage = __esm(() => {
814209
814209
  init_settings2();
814210
814210
  init_slowOperations();
814211
814211
  init_uuid();
814212
- VERSION11 = typeof MACRO !== "undefined" ? "4.2.30" : "unknown";
814212
+ VERSION11 = typeof MACRO !== "undefined" ? "4.2.31" : "unknown";
814213
814213
  MAX_TOMBSTONE_REWRITE_BYTES = 50 * 1024 * 1024;
814214
814214
  SKIP_FIRST_PROMPT_PATTERN2 = /^(?:\s*<[a-z][\w-]*[\s>]|\[Request interrupted by user[^\]]*\])/;
814215
814215
  EPHEMERAL_PROGRESS_TYPES = new Set([
@@ -815550,7 +815550,7 @@ var init_filesystem = __esm(() => {
815550
815550
  });
815551
815551
  getBundledSkillsRoot = memoize_default(function getBundledSkillsRoot2() {
815552
815552
  const nonce = randomBytes24(16).toString("hex");
815553
- return join219(getCostrictTempDir(), "bundled-skills", "4.2.30", nonce);
815553
+ return join219(getCostrictTempDir(), "bundled-skills", "4.2.31", nonce);
815554
815554
  });
815555
815555
  getResolvedWorkingDirPaths = memoize_default(getPathsForPermissionCheck);
815556
815556
  });
@@ -827048,7 +827048,7 @@ function buildSystemInitMessage(inputs) {
827048
827048
  slash_commands: inputs.commands.filter((c10) => c10.userInvocable !== false).map((c10) => c10.name),
827049
827049
  apiKeySource: getAnthropicApiKeyWithSource().source,
827050
827050
  betas: getSdkBetas(),
827051
- claude_code_version: "4.2.30",
827051
+ claude_code_version: "4.2.31",
827052
827052
  output_style: outputStyle2,
827053
827053
  agents: inputs.agents.map((agent) => agent.agentType),
827054
827054
  skills: inputs.skills.filter((s) => s.userInvocable !== false).map((skill) => skill.name),
@@ -830592,7 +830592,7 @@ function appendToLog(path62, message2) {
830592
830592
  cwd: getFsImplementation().cwd(),
830593
830593
  userType: process.env.USER_TYPE,
830594
830594
  sessionId: getSessionId(),
830595
- version: "4.2.30"
830595
+ version: "4.2.31"
830596
830596
  };
830597
830597
  getLogWriter(path62).write(messageWithTimestamp);
830598
830598
  }
@@ -851653,7 +851653,7 @@ function buildStatusLineCommandInput(permissionMode, exceeds200kTokens, settings
851653
851653
  project_dir: getOriginalCwd(),
851654
851654
  added_dirs: addedDirs
851655
851655
  },
851656
- version: "4.2.30",
851656
+ version: "4.2.31",
851657
851657
  output_style: {
851658
851658
  name: outputStyleName
851659
851659
  },
@@ -870269,7 +870269,7 @@ async function submitTranscriptShare(messages, trigger, appearanceId) {
870269
870269
  } catch {}
870270
870270
  const data = {
870271
870271
  trigger,
870272
- version: "4.2.30",
870272
+ version: "4.2.31",
870273
870273
  platform: process.platform,
870274
870274
  transcript,
870275
870275
  subagentTranscripts: Object.keys(subagentTranscripts).length > 0 ? subagentTranscripts : undefined,
@@ -871524,7 +871524,7 @@ function getReleaseType(current2, latest) {
871524
871524
  return "patch";
871525
871525
  }
871526
871526
  async function checkNewAutoUpdate(callbacks) {
871527
- const currentVersion = "4.2.30";
871527
+ const currentVersion = "4.2.31";
871528
871528
  logForDebugging(`[newAutoUpdater] checking, current: ${currentVersion}`);
871529
871529
  if (isNewAutoUpdaterDisabled()) {
871530
871530
  return { action: "skip", currentVersion, latestVersion: null };
@@ -883781,7 +883781,7 @@ function WelcomeV2() {
883781
883781
  dimColor: true,
883782
883782
  children: [
883783
883783
  "v",
883784
- "4.2.30",
883784
+ "4.2.31",
883785
883785
  " "
883786
883786
  ]
883787
883787
  })
@@ -883847,7 +883847,7 @@ function WelcomeV2() {
883847
883847
  dimColor: true,
883848
883848
  children: [
883849
883849
  "v",
883850
- "4.2.30",
883850
+ "4.2.31",
883851
883851
  " "
883852
883852
  ]
883853
883853
  })
@@ -883949,7 +883949,7 @@ function AppleTerminalWelcomeV2({ theme: theme2, welcomeMessage }) {
883949
883949
  dimColor: true,
883950
883950
  children: [
883951
883951
  "v",
883952
- "4.2.30",
883952
+ "4.2.31",
883953
883953
  " "
883954
883954
  ]
883955
883955
  })
@@ -884015,7 +884015,7 @@ function AppleTerminalWelcomeV2({ theme: theme2, welcomeMessage }) {
884015
884015
  dimColor: true,
884016
884016
  children: [
884017
884017
  "v",
884018
- "4.2.30",
884018
+ "4.2.31",
884019
884019
  " "
884020
884020
  ]
884021
884021
  })
@@ -884955,7 +884955,7 @@ function completeOnboarding() {
884955
884955
  saveGlobalConfig((current2) => ({
884956
884956
  ...current2,
884957
884957
  hasCompletedOnboarding: true,
884958
- lastOnboardingVersion: "4.2.30"
884958
+ lastOnboardingVersion: "4.2.31"
884959
884959
  }));
884960
884960
  }
884961
884961
  function showDialog(root9, renderer) {
@@ -901377,7 +901377,7 @@ async function startMCPServer(cwd3, debug5, verbose) {
901377
901377
  setCwd(cwd3);
901378
901378
  const server2 = new Server({
901379
901379
  name: "claude/tengu",
901380
- version: "4.2.30"
901380
+ version: "4.2.31"
901381
901381
  }, {
901382
901382
  capabilities: {
901383
901383
  tools: {}
@@ -903662,7 +903662,7 @@ function createHealthRoutes(sessionManager) {
903662
903662
  const uptime2 = process.uptime() * 1000;
903663
903663
  return c10.json({
903664
903664
  status: "ok",
903665
- version: "4.2.30",
903665
+ version: "4.2.31",
903666
903666
  uptime_ms: Math.round(uptime2),
903667
903667
  active_sessions: sessionManager.getActiveCount()
903668
903668
  });
@@ -903934,7 +903934,7 @@ function getMacroDefines() {
903934
903934
  commit = execSync3("git rev-parse --short HEAD", { encoding: "utf-8", cwd: __dirname }).trim();
903935
903935
  } catch {}
903936
903936
  return {
903937
- "MACRO.VERSION": JSON.stringify("4.2.30"),
903937
+ "MACRO.VERSION": JSON.stringify("4.2.31"),
903938
903938
  "MACRO.BUILD_TIME": JSON.stringify(new Date().toISOString()),
903939
903939
  "MACRO.COMMIT": JSON.stringify(commit),
903940
903940
  "MACRO.FEEDBACK_CHANNEL": JSON.stringify(""),
@@ -911003,7 +911003,7 @@ __export(exports_update, {
911003
911003
  });
911004
911004
  async function update() {
911005
911005
  logEvent("tengu_update_check", {});
911006
- writeToStdout(`${t("cli.update.currentVersion", "Current version")}: ${"4.2.30"}
911006
+ writeToStdout(`${t("cli.update.currentVersion", "Current version")}: ${"4.2.31"}
911007
911007
  `);
911008
911008
  const channel5 = getInitialSettings()?.autoUpdatesChannel ?? "latest";
911009
911009
  writeToStdout(`${t("cli.update.checkingUpdates", { channel: channel5 }, "Checking for updates to {channel} version...")}
@@ -911078,8 +911078,8 @@ async function update() {
911078
911078
  writeToStdout(`${t("cli.update.managedByHomebrew", "CoStrict is managed by Homebrew.")}
911079
911079
  `);
911080
911080
  const latest = await getLatestVersion(channel5);
911081
- if (latest && !gte2("4.2.30", latest)) {
911082
- writeToStdout(`${t("cli.update.updateAvailable", { current: "4.2.30", latest }, "Update available: {current} \u2192 {latest}")}
911081
+ if (latest && !gte2("4.2.31", latest)) {
911082
+ writeToStdout(`${t("cli.update.updateAvailable", { current: "4.2.31", latest }, "Update available: {current} \u2192 {latest}")}
911083
911083
  `);
911084
911084
  writeToStdout(`
911085
911085
  `);
@@ -911095,8 +911095,8 @@ async function update() {
911095
911095
  writeToStdout(`${t("cli.update.managedByWinget", "CoStrict is managed by winget.")}
911096
911096
  `);
911097
911097
  const latest = await getLatestVersion(channel5);
911098
- if (latest && !gte2("4.2.30", latest)) {
911099
- writeToStdout(`${t("cli.update.updateAvailable", { current: "4.2.30", latest }, "Update available: {current} \u2192 {latest}")}
911098
+ if (latest && !gte2("4.2.31", latest)) {
911099
+ writeToStdout(`${t("cli.update.updateAvailable", { current: "4.2.31", latest }, "Update available: {current} \u2192 {latest}")}
911100
911100
  `);
911101
911101
  writeToStdout(`
911102
911102
  `);
@@ -911112,8 +911112,8 @@ async function update() {
911112
911112
  writeToStdout(`${t("cli.update.managedByApk", "CoStrict is managed by apk.")}
911113
911113
  `);
911114
911114
  const latest = await getLatestVersion(channel5);
911115
- if (latest && !gte2("4.2.30", latest)) {
911116
- writeToStdout(`${t("cli.update.updateAvailable", { current: "4.2.30", latest }, "Update available: {current} \u2192 {latest}")}
911115
+ if (latest && !gte2("4.2.31", latest)) {
911116
+ writeToStdout(`${t("cli.update.updateAvailable", { current: "4.2.31", latest }, "Update available: {current} \u2192 {latest}")}
911117
911117
  `);
911118
911118
  writeToStdout(`
911119
911119
  `);
@@ -911178,11 +911178,11 @@ async function update() {
911178
911178
  `);
911179
911179
  await gracefulShutdown(1);
911180
911180
  }
911181
- if (result2.latestVersion === "4.2.30") {
911182
- writeToStdout(source_default.green(t("cli.update.upToDateVersion", { version: "4.2.30" }, "CoStrict is up to date ({version})")) + `
911181
+ if (result2.latestVersion === "4.2.31") {
911182
+ writeToStdout(source_default.green(t("cli.update.upToDateVersion", { version: "4.2.31" }, "CoStrict is up to date ({version})")) + `
911183
911183
  `);
911184
911184
  } else {
911185
- writeToStdout(source_default.green(t("cli.update.successfullyUpdated", { from: "4.2.30", to: String(result2.latestVersion) }, "Successfully updated from {from} to version {to}")) + `
911185
+ writeToStdout(source_default.green(t("cli.update.successfullyUpdated", { from: "4.2.31", to: String(result2.latestVersion) }, "Successfully updated from {from} to version {to}")) + `
911186
911186
  `);
911187
911187
  regenerateCompletionCache();
911188
911188
  }
@@ -911242,12 +911242,12 @@ async function update() {
911242
911242
  `);
911243
911243
  await gracefulShutdown(1);
911244
911244
  }
911245
- if (latestVersion === "4.2.30") {
911246
- writeToStdout(source_default.green(t("cli.update.upToDateVersion", { version: "4.2.30" }, "CoStrict is up to date ({version})")) + `
911245
+ if (latestVersion === "4.2.31") {
911246
+ writeToStdout(source_default.green(t("cli.update.upToDateVersion", { version: "4.2.31" }, "CoStrict is up to date ({version})")) + `
911247
911247
  `);
911248
911248
  await gracefulShutdown(0);
911249
911249
  }
911250
- writeToStdout(`${t("cli.update.newVersionAvailable", { latest: String(latestVersion), current: "4.2.30" }, "New version available: {latest} (current: {current})")}
911250
+ writeToStdout(`${t("cli.update.newVersionAvailable", { latest: String(latestVersion), current: "4.2.31" }, "New version available: {latest} (current: {current})")}
911251
911251
  `);
911252
911252
  writeToStdout(`${t("cli.update.installing", "Installing update...")}
911253
911253
  `);
@@ -911292,7 +911292,7 @@ async function update() {
911292
911292
  logForDebugging(`update: Installation status: ${result.status}`);
911293
911293
  switch (result.status) {
911294
911294
  case "success":
911295
- writeToStdout(source_default.green(t("cli.update.successfullyUpdated", { from: "4.2.30", to: String(latestVersion) }, "Successfully updated from {from} to version {to}")) + `
911295
+ writeToStdout(source_default.green(t("cli.update.successfullyUpdated", { from: "4.2.31", to: String(latestVersion) }, "Successfully updated from {from} to version {to}")) + `
911296
911296
  `);
911297
911297
  regenerateCompletionCache();
911298
911298
  break;
@@ -913503,7 +913503,7 @@ ${assistantAddendum}` : assistantAddendum;
913503
913503
  }
913504
913504
  }
913505
913505
  logForDiagnosticsNoPII("info", "started", {
913506
- version: "4.2.30",
913506
+ version: "4.2.31",
913507
913507
  is_native_binary: isInBundledMode()
913508
913508
  });
913509
913509
  registerCleanup(async () => {
@@ -913994,7 +913994,7 @@ Session: ${directConnectConfig.sessionId}`, "info");
913994
913994
  sshSession = await createSSHSession2({
913995
913995
  host: _pendingSSH.host,
913996
913996
  cwd: _pendingSSH.cwd,
913997
- localVersion: "4.2.30",
913997
+ localVersion: "4.2.31",
913998
913998
  permissionMode: _pendingSSH.permissionMode,
913999
913999
  dangerouslySkipPermissions: _pendingSSH.dangerouslySkipPermissions,
914000
914000
  extraCliArgs: _pendingSSH.extraCliArgs,
@@ -914463,7 +914463,7 @@ Usage: csc --remote "your task description"`, () => gracefulShutdown(1));
914463
914463
  pendingHookMessages
914464
914464
  }, renderAndRun);
914465
914465
  }
914466
- }).version("4.2.30 (CoStrict)", "-v, --version", cliDesc("cli.option.version", "Output the version number"));
914466
+ }).version("4.2.31 (CoStrict)", "-v, --version", cliDesc("cli.option.version", "Output the version number"));
914467
914467
  program2.addOption(new Option("-w, --worktree [name]", cliDesc("cli.option.worktree", "Create a new git worktree for this session (optionally specify a name)")).hideHelp());
914468
914468
  program2.addOption(new Option("--tmux", cliDesc("cli.option.tmux", "Create a tmux session for the worktree (requires --worktree). Uses iTerm2 native panes when available; use --tmux=classic for traditional tmux.")).hideHelp());
914469
914469
  if (canUserConfigureAdvisor()) {
@@ -915231,10 +915231,10 @@ function getCouncilArgs(args) {
915231
915231
  async function main2() {
915232
915232
  const args = process.argv.slice(2);
915233
915233
  if (args.length === 1 && (args[0] === "--version" || args[0] === "-v" || args[0] === "-V")) {
915234
- const d7 = new Date("2026-08-25T08:44:38.191Z");
915234
+ const d7 = new Date("2026-08-27T19:17:40.735Z");
915235
915235
  const p2 = (n3) => String(n3).padStart(2, "0");
915236
915236
  const buildTime = `${d7.getFullYear()}/${p2(d7.getMonth() + 1)}/${p2(d7.getDate())} ${p2(d7.getHours())}:${p2(d7.getMinutes())}:${p2(d7.getSeconds())}`;
915237
- console.log(`${"4.2.30"} (commit: ${"866684c65"}, built: ${buildTime})`);
915237
+ console.log(`${"4.2.31"} (commit: ${"a9974678a"}, built: ${buildTime})`);
915238
915238
  return;
915239
915239
  }
915240
915240
  if (true) {
@@ -915433,5 +915433,5 @@ async function main2() {
915433
915433
  }
915434
915434
  main2();
915435
915435
 
915436
- //# debugId=2ACDA1C94FAFB0D964756E2164756E21
915436
+ //# debugId=78448F0D7CCE3C1264756E2164756E21
915437
915437
 
@@ -736,8 +736,8 @@ function getClientVersion() {
736
736
  if (cached)
737
737
  return cached;
738
738
  try {
739
- if ("4.2.30") {
740
- cached = "4.2.30";
739
+ if ("4.2.31") {
740
+ cached = "4.2.31";
741
741
  return cached;
742
742
  }
743
743
  } catch {}
@@ -138860,7 +138860,7 @@ var init_user = __esm(() => {
138860
138860
  deviceId,
138861
138861
  sessionId: getSessionId(),
138862
138862
  email: getEmail(),
138863
- appVersion: "4.2.30",
138863
+ appVersion: "4.2.31",
138864
138864
  platform: getHostPlatformForAnalytics(),
138865
138865
  organizationUuid,
138866
138866
  accountUuid,
@@ -139147,7 +139147,7 @@ var init_metadata = __esm(() => {
139147
139147
  "sed"
139148
139148
  ]);
139149
139149
  getVersionBase = memoize_default(() => {
139150
- const match = "4.2.30".match(/^\d+\.\d+\.\d+(?:-[a-z]+)?/);
139150
+ const match = "4.2.31".match(/^\d+\.\d+\.\d+(?:-[a-z]+)?/);
139151
139151
  return match ? match[0] : undefined;
139152
139152
  });
139153
139153
  buildEnvContext = memoize_default(async () => {
@@ -139187,9 +139187,9 @@ var init_metadata = __esm(() => {
139187
139187
  isGithubAction: isEnvTruthy(process.env.GITHUB_ACTIONS),
139188
139188
  isClaudeCodeAction: isEnvTruthy(process.env.CLAUDE_CODE_ACTION),
139189
139189
  isClaudeAiAuth: isClaudeAISubscriber(),
139190
- version: "4.2.30",
139190
+ version: "4.2.31",
139191
139191
  versionBase: getVersionBase(),
139192
- buildTime: "2026-08-25T08:44:40.218Z",
139192
+ buildTime: "2026-08-27T19:17:42.137Z",
139193
139193
  deploymentEnvironment: env4.detectDeploymentEnvironment(),
139194
139194
  ...isEnvTruthy(process.env.GITHUB_ACTIONS) && {
139195
139195
  githubEventName: process.env.GITHUB_EVENT_NAME,
@@ -143533,5 +143533,5 @@ export {
143533
143533
  isParentHeartbeatValid
143534
143534
  };
143535
143535
 
143536
- //# debugId=4E456CB3F498210D64756E2164756E21
143536
+ //# debugId=D2840F4EF538DA7864756E2164756E21
143537
143537
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@costrict/csc",
3
- "version": "4.2.30",
3
+ "version": "4.2.31",
4
4
  "description": "costrict",
5
5
  "type": "module",
6
6
  "author": "costrict",