theus-cli 0.2.57 → 0.2.58

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/cli.js +150 -124
  2. package/package.json +1 -1
package/cli.js CHANGED
@@ -58896,7 +58896,7 @@ async function _executeApiKeyHelper(isNonInteractiveSession) {
58896
58896
  if (isApiKeyHelperFromProjectOrLocalSettings()) {
58897
58897
  const hasTrust = checkHasTrustDialogAccepted();
58898
58898
  if (!hasTrust && !isNonInteractiveSession) {
58899
- const error40 = new Error(`Security: apiKeyHelper executed before workspace trust is confirmed. If you see this message, post in ${{ VERSION: "0.2.57", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.FEEDBACK_CHANNEL}.`);
58899
+ const error40 = new Error(`Security: apiKeyHelper executed before workspace trust is confirmed. If you see this message, post in ${{ VERSION: "0.2.58", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.FEEDBACK_CHANNEL}.`);
58900
58900
  logAntError("apiKeyHelper invoked before trust check", error40);
58901
58901
  logEvent("tengu_apiKeyHelper_missing_trust11", {});
58902
58902
  return null;
@@ -58940,7 +58940,7 @@ async function runAwsAuthRefresh() {
58940
58940
  if (isAwsAuthRefreshFromProjectSettings()) {
58941
58941
  const hasTrust = checkHasTrustDialogAccepted();
58942
58942
  if (!hasTrust && !getIsNonInteractiveSession()) {
58943
- const error40 = new Error(`Security: awsAuthRefresh executed before workspace trust is confirmed. If you see this message, post in ${{ VERSION: "0.2.57", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.FEEDBACK_CHANNEL}.`);
58943
+ const error40 = new Error(`Security: awsAuthRefresh executed before workspace trust is confirmed. If you see this message, post in ${{ VERSION: "0.2.58", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.FEEDBACK_CHANNEL}.`);
58944
58944
  logAntError("awsAuthRefresh invoked before trust check", error40);
58945
58945
  logEvent("tengu_awsAuthRefresh_missing_trust", {});
58946
58946
  return false;
@@ -59000,7 +59000,7 @@ async function getAwsCredsFromCredentialExport() {
59000
59000
  if (isAwsCredentialExportFromProjectSettings()) {
59001
59001
  const hasTrust = checkHasTrustDialogAccepted();
59002
59002
  if (!hasTrust && !getIsNonInteractiveSession()) {
59003
- const error40 = new Error(`Security: awsCredentialExport executed before workspace trust is confirmed. If you see this message, post in ${{ VERSION: "0.2.57", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.FEEDBACK_CHANNEL}.`);
59003
+ const error40 = new Error(`Security: awsCredentialExport executed before workspace trust is confirmed. If you see this message, post in ${{ VERSION: "0.2.58", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.FEEDBACK_CHANNEL}.`);
59004
59004
  logAntError("awsCredentialExport invoked before trust check", error40);
59005
59005
  logEvent("tengu_awsCredentialExport_missing_trust", {});
59006
59006
  return null;
@@ -59085,7 +59085,7 @@ async function runGcpAuthRefresh() {
59085
59085
  if (isGcpAuthRefreshFromProjectSettings()) {
59086
59086
  const hasTrust = checkHasTrustDialogAccepted();
59087
59087
  if (!hasTrust && !getIsNonInteractiveSession()) {
59088
- const error40 = new Error(`Security: gcpAuthRefresh executed before workspace trust is confirmed. If you see this message, post in ${{ VERSION: "0.2.57", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.FEEDBACK_CHANNEL}.`);
59088
+ const error40 = new Error(`Security: gcpAuthRefresh executed before workspace trust is confirmed. If you see this message, post in ${{ VERSION: "0.2.58", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.FEEDBACK_CHANNEL}.`);
59089
59089
  logAntError("gcpAuthRefresh invoked before trust check", error40);
59090
59090
  logEvent("tengu_gcpAuthRefresh_missing_trust", {});
59091
59091
  return false;
@@ -59780,7 +59780,7 @@ var init_auth = __esm(() => {
59780
59780
 
59781
59781
  // utils/userAgent.ts
59782
59782
  function getTheusCodeUserAgent() {
59783
- return `theus-code/${{ VERSION: "0.2.57", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION}`;
59783
+ return `theus-code/${{ VERSION: "0.2.58", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION}`;
59784
59784
  }
59785
59785
 
59786
59786
  // utils/workloadContext.ts
@@ -59802,7 +59802,7 @@ function getUserAgent() {
59802
59802
  const clientApp = process.env.THEUS_AGENT_SDK_CLIENT_APP ? `, client-app/${process.env.THEUS_AGENT_SDK_CLIENT_APP}` : "";
59803
59803
  const workload = getWorkload();
59804
59804
  const workloadSuffix = workload ? `, workload/${workload}` : "";
59805
- return `theus-cli/${{ VERSION: "0.2.57", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION} (${process.env.USER_TYPE}, ${process.env.THEUS_CODE_ENTRYPOINT ?? "cli"}${agentSdkVersion}${clientApp}${workloadSuffix})`;
59805
+ return `theus-cli/${{ VERSION: "0.2.58", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION} (${process.env.USER_TYPE}, ${process.env.THEUS_CODE_ENTRYPOINT ?? "cli"}${agentSdkVersion}${clientApp}${workloadSuffix})`;
59806
59806
  }
59807
59807
  function getMCPUserAgent() {
59808
59808
  const parts = [];
@@ -59816,7 +59816,7 @@ function getMCPUserAgent() {
59816
59816
  parts.push(`client-app/${process.env.THEUS_AGENT_SDK_CLIENT_APP}`);
59817
59817
  }
59818
59818
  const suffix = parts.length > 0 ? ` (${parts.join(", ")})` : "";
59819
- return `theus-code/${{ VERSION: "0.2.57", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION}${suffix}`;
59819
+ return `theus-code/${{ VERSION: "0.2.58", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION}${suffix}`;
59820
59820
  }
59821
59821
  function getWebFetchUserAgent() {
59822
59822
  return `Theus-User (${getTheusCodeUserAgent()}; +https://support.theus.pe/)`;
@@ -59954,7 +59954,7 @@ var init_user = __esm(() => {
59954
59954
  deviceId,
59955
59955
  sessionId: getSessionId(),
59956
59956
  email: getEmail(),
59957
- appVersion: { VERSION: "0.2.57", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
59957
+ appVersion: { VERSION: "0.2.58", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
59958
59958
  platform: getHostPlatformForAnalytics(),
59959
59959
  organizationUuid,
59960
59960
  accountUuid,
@@ -61669,7 +61669,7 @@ var init_metadata = __esm(() => {
61669
61669
  COMPOUND_OPERATOR_REGEX = /\s*(?:&&|\|\||[;|])\s*/;
61670
61670
  WHITESPACE_REGEX = /\s+/;
61671
61671
  getVersionBase = memoize_default(() => {
61672
- const match = { VERSION: "0.2.57", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION.match(/^\d+\.\d+\.\d+(?:-[a-z]+)?/);
61672
+ const match = { VERSION: "0.2.58", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION.match(/^\d+\.\d+\.\d+(?:-[a-z]+)?/);
61673
61673
  return match ? match[0] : undefined;
61674
61674
  });
61675
61675
  buildEnvContext = memoize_default(async () => {
@@ -61709,9 +61709,9 @@ var init_metadata = __esm(() => {
61709
61709
  isGithubAction: isEnvTruthy(process.env.GITHUB_ACTIONS),
61710
61710
  isTheusCodeAction: isEnvTruthy(process.env.THEUS_CODE_ACTION),
61711
61711
  isTheusAiAuth: isTheusAISubscriber(),
61712
- version: { VERSION: "0.2.57", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
61712
+ version: { VERSION: "0.2.58", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
61713
61713
  versionBase: getVersionBase(),
61714
- buildTime: { VERSION: "0.2.57", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.BUILD_TIME,
61714
+ buildTime: { VERSION: "0.2.58", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.BUILD_TIME,
61715
61715
  deploymentEnvironment: env3.detectDeploymentEnvironment(),
61716
61716
  ...isEnvTruthy(process.env.GITHUB_ACTIONS) && {
61717
61717
  githubEventName: process.env.GITHUB_EVENT_NAME,
@@ -62377,7 +62377,7 @@ function initialize1PEventLogging() {
62377
62377
  const platform2 = getPlatform();
62378
62378
  const attributes = {
62379
62379
  [ATTR_SERVICE_NAME]: "theus-code",
62380
- [ATTR_SERVICE_VERSION]: { VERSION: "0.2.57", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
62380
+ [ATTR_SERVICE_VERSION]: { VERSION: "0.2.58", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
62381
62381
  };
62382
62382
  if (platform2 === "wsl") {
62383
62383
  const wslVersion = getWslVersion();
@@ -62404,7 +62404,7 @@ function initialize1PEventLogging() {
62404
62404
  })
62405
62405
  ]
62406
62406
  });
62407
- firstPartyEventLogger = firstPartyEventLoggerProvider.getLogger("com.theus.theus_code.events", { VERSION: "0.2.57", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION);
62407
+ firstPartyEventLogger = firstPartyEventLoggerProvider.getLogger("com.theus.theus_code.events", { VERSION: "0.2.58", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION);
62408
62408
  }
62409
62409
  async function reinitialize1PEventLoggingIfConfigChanged() {
62410
62410
  if (!is1PEventLoggingEnabled() || !firstPartyEventLoggerProvider) {
@@ -64275,7 +64275,7 @@ function getAttributionHeader(fingerprint) {
64275
64275
  if (!isAttributionHeaderEnabled()) {
64276
64276
  return "";
64277
64277
  }
64278
- const version2 = `${{ VERSION: "0.2.57", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION}.${fingerprint}`;
64278
+ const version2 = `${{ VERSION: "0.2.58", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION}.${fingerprint}`;
64279
64279
  const entrypoint = process.env.THEUS_CODE_ENTRYPOINT ?? "unknown";
64280
64280
  const cch = "";
64281
64281
  const workload = getWorkload();
@@ -108362,7 +108362,7 @@ Complete the user's request by providing accurate, documentation-based guidance.
108362
108362
  }
108363
108363
  function getFeedbackGuideline() {
108364
108364
  if (isUsing3PServices()) {
108365
- return `- When you cannot find an answer or the feature doesn't exist, direct the user to ${{ VERSION: "0.2.57", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.ISSUES_EXPLAINER}`;
108365
+ return `- When you cannot find an answer or the feature doesn't exist, direct the user to ${{ VERSION: "0.2.58", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.ISSUES_EXPLAINER}`;
108366
108366
  }
108367
108367
  return "- When you cannot find an answer or the feature doesn't exist, direct the user to use /feedback to report a feature request or bug";
108368
108368
  }
@@ -167334,7 +167334,7 @@ function getTelemetryAttributes() {
167334
167334
  attributes["session.id"] = sessionId;
167335
167335
  }
167336
167336
  if (shouldIncludeAttribute("OTEL_METRICS_INCLUDE_VERSION")) {
167337
- attributes["app.version"] = { VERSION: "0.2.57", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION;
167337
+ attributes["app.version"] = { VERSION: "0.2.58", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION;
167338
167338
  }
167339
167339
  const oauthAccount = getOauthAccountInfo();
167340
167340
  if (oauthAccount) {
@@ -203218,7 +203218,7 @@ function getInstallationEnv() {
203218
203218
  return;
203219
203219
  }
203220
203220
  function getTheusCodeVersion() {
203221
- return { VERSION: "0.2.57", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION;
203221
+ return { VERSION: "0.2.58", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION;
203222
203222
  }
203223
203223
  async function getInstalledVSCodeExtensionVersion(command) {
203224
203224
  const { stdout } = await execFileNoThrow(command, ["--list-extensions", "--show-versions"], {
@@ -204736,7 +204736,7 @@ async function getMcpHeadersFromHelper(serverName, config2) {
204736
204736
  if ("scope" in config2 && isMcpServerFromProjectOrLocalSettings(config2) && !getIsNonInteractiveSession()) {
204737
204737
  const hasTrust = checkHasTrustDialogAccepted();
204738
204738
  if (!hasTrust) {
204739
- const error40 = new Error(`Security: headersHelper for MCP server '${serverName}' executed before workspace trust is confirmed. If you see this message, post in ${{ VERSION: "0.2.57", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.FEEDBACK_CHANNEL}.`);
204739
+ const error40 = new Error(`Security: headersHelper for MCP server '${serverName}' executed before workspace trust is confirmed. If you see this message, post in ${{ VERSION: "0.2.58", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.FEEDBACK_CHANNEL}.`);
204740
204740
  logAntError("MCP headersHelper invoked before trust check", error40);
204741
204741
  logEvent("tengu_mcp_headersHelper_missing_trust", {});
204742
204742
  return null;
@@ -205946,7 +205946,7 @@ async function setupSdkMcpClients(sdkMcpConfigs, sendMcpMessage) {
205946
205946
  const client2 = new Client({
205947
205947
  name: "theus-code",
205948
205948
  title: "Theus",
205949
- version: { VERSION: "0.2.57", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION ?? "unknown",
205949
+ version: { VERSION: "0.2.58", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION ?? "unknown",
205950
205950
  description: "Theus's agentic coding tool",
205951
205951
  websiteUrl: PRODUCT_URL
205952
205952
  }, {
@@ -206300,7 +206300,7 @@ var init_client5 = __esm(() => {
206300
206300
  const client2 = new Client({
206301
206301
  name: "theus-code",
206302
206302
  title: "Theus",
206303
- version: { VERSION: "0.2.57", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION ?? "unknown",
206303
+ version: { VERSION: "0.2.58", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION ?? "unknown",
206304
206304
  description: "Theus's agentic coding tool",
206305
206305
  websiteUrl: PRODUCT_URL
206306
206306
  }, {
@@ -216879,7 +216879,7 @@ async function initializeBetaTracing(resource) {
216879
216879
  });
216880
216880
  logs.setGlobalLoggerProvider(loggerProvider);
216881
216881
  setLoggerProvider(loggerProvider);
216882
- const eventLogger = logs.getLogger("com.theus.theus_code.events", { VERSION: "0.2.57", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION);
216882
+ const eventLogger = logs.getLogger("com.theus.theus_code.events", { VERSION: "0.2.58", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION);
216883
216883
  setEventLogger(eventLogger);
216884
216884
  process.on("beforeExit", async () => {
216885
216885
  await loggerProvider?.forceFlush();
@@ -216919,7 +216919,7 @@ async function initializeTelemetry() {
216919
216919
  const platform4 = getPlatform();
216920
216920
  const baseAttributes = {
216921
216921
  [ATTR_SERVICE_NAME]: "theus-code",
216922
- [ATTR_SERVICE_VERSION]: { VERSION: "0.2.57", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
216922
+ [ATTR_SERVICE_VERSION]: { VERSION: "0.2.58", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
216923
216923
  };
216924
216924
  if (platform4 === "wsl") {
216925
216925
  const wslVersion = getWslVersion();
@@ -216964,7 +216964,7 @@ async function initializeTelemetry() {
216964
216964
  } catch {}
216965
216965
  };
216966
216966
  registerCleanup(shutdownTelemetry2);
216967
- return meterProvider2.getMeter("com.theus.theus_code", { VERSION: "0.2.57", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION);
216967
+ return meterProvider2.getMeter("com.theus.theus_code", { VERSION: "0.2.58", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION);
216968
216968
  }
216969
216969
  const meterProvider = new MeterProvider({
216970
216970
  resource,
@@ -216984,7 +216984,7 @@ async function initializeTelemetry() {
216984
216984
  });
216985
216985
  logs.setGlobalLoggerProvider(loggerProvider);
216986
216986
  setLoggerProvider(loggerProvider);
216987
- const eventLogger = logs.getLogger("com.theus.theus_code.events", { VERSION: "0.2.57", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION);
216987
+ const eventLogger = logs.getLogger("com.theus.theus_code.events", { VERSION: "0.2.58", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION);
216988
216988
  setEventLogger(eventLogger);
216989
216989
  logForDebugging("[3P telemetry] Event logger set successfully");
216990
216990
  process.on("beforeExit", async () => {
@@ -217046,7 +217046,7 @@ Current timeout: ${timeoutMs}ms
217046
217046
  }
217047
217047
  };
217048
217048
  registerCleanup(shutdownTelemetry);
217049
- return meterProvider.getMeter("com.theus.theus_code", { VERSION: "0.2.57", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION);
217049
+ return meterProvider.getMeter("com.theus.theus_code", { VERSION: "0.2.58", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION);
217050
217050
  }
217051
217051
  async function flushTelemetry() {
217052
217052
  const meterProvider = getMeterProvider();
@@ -217586,7 +217586,7 @@ async function installOrUpdateTheusPackage(channel2, specificVersion) {
217586
217586
  return "install_failed";
217587
217587
  }
217588
217588
  const versionSpec = specificVersion ? specificVersion : channel2 === "stable" ? "stable" : "latest";
217589
- const result = await execFileNoThrowWithCwd("npm", ["install", `${{ VERSION: "0.2.57", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.PACKAGE_URL}@${versionSpec}`], { cwd: getLocalInstallDir(), maxBuffer: 1e6 });
217589
+ const result = await execFileNoThrowWithCwd("npm", ["install", `${{ VERSION: "0.2.58", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.PACKAGE_URL}@${versionSpec}`], { cwd: getLocalInstallDir(), maxBuffer: 1e6 });
217590
217590
  if (result.code !== 0) {
217591
217591
  const error40 = new Error(`Failed to install Theus CLI package: ${result.stderr}`);
217592
217592
  logError2(error40);
@@ -217732,9 +217732,9 @@ async function assertMinVersion() {
217732
217732
  if (false) {}
217733
217733
  try {
217734
217734
  const versionConfig = await getDynamicConfig_BLOCKS_ON_INIT("tengu_version_config", { minVersion: "0.0.0" });
217735
- if (versionConfig.minVersion && lt({ VERSION: "0.2.57", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION, versionConfig.minVersion)) {
217735
+ if (versionConfig.minVersion && lt({ VERSION: "0.2.58", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION, versionConfig.minVersion)) {
217736
217736
  console.error(`
217737
- It looks like your version of Theus (${{ VERSION: "0.2.57", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION}) needs an update.
217737
+ It looks like your version of Theus (${{ VERSION: "0.2.58", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION}) needs an update.
217738
217738
  A newer version (${versionConfig.minVersion} or higher) is required to continue.
217739
217739
 
217740
217740
  To update, please run:
@@ -217875,7 +217875,7 @@ async function getInstallationPrefix() {
217875
217875
  return prefixResult.stdout.trim();
217876
217876
  }
217877
217877
  function getGlobalInstallPackageManager() {
217878
- if ({ VERSION: "0.2.57", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.PACKAGE_URL === "theus-cli") {
217878
+ if ({ VERSION: "0.2.58", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.PACKAGE_URL === "theus-cli") {
217879
217879
  return "npm";
217880
217880
  }
217881
217881
  return env3.isRunningWithBun() ? "bun" : "npm";
@@ -217900,7 +217900,7 @@ async function checkGlobalInstallPermissions() {
217900
217900
  }
217901
217901
  async function getLatestVersion(channel2) {
217902
217902
  const npmTag = channel2 === "stable" ? "stable" : "latest";
217903
- const result = await execFileNoThrowWithCwd("npm", ["view", `${{ VERSION: "0.2.57", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.PACKAGE_URL}@${npmTag}`, "version", "--prefer-online"], { abortSignal: AbortSignal.timeout(5000), cwd: homedir18() });
217903
+ const result = await execFileNoThrowWithCwd("npm", ["view", `${{ VERSION: "0.2.58", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.PACKAGE_URL}@${npmTag}`, "version", "--prefer-online"], { abortSignal: AbortSignal.timeout(5000), cwd: homedir18() });
217904
217904
  if (result.code !== 0) {
217905
217905
  logForDebugging(`npm view failed with code ${result.code}`);
217906
217906
  if (result.stderr) {
@@ -217916,7 +217916,7 @@ async function getLatestVersion(channel2) {
217916
217916
  return result.stdout.trim();
217917
217917
  }
217918
217918
  async function getNpmDistTags() {
217919
- const result = await execFileNoThrowWithCwd("npm", ["view", { VERSION: "0.2.57", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.PACKAGE_URL, "dist-tags", "--json", "--prefer-online"], { abortSignal: AbortSignal.timeout(5000), cwd: homedir18() });
217919
+ const result = await execFileNoThrowWithCwd("npm", ["view", { VERSION: "0.2.58", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.PACKAGE_URL, "dist-tags", "--json", "--prefer-online"], { abortSignal: AbortSignal.timeout(5000), cwd: homedir18() });
217920
217920
  if (result.code !== 0) {
217921
217921
  logForDebugging(`npm view dist-tags failed with code ${result.code}`);
217922
217922
  return { latest: null, stable: null };
@@ -217956,7 +217956,7 @@ async function installGlobalPackage(specificVersion) {
217956
217956
  logError2(new AutoUpdaterError("Another process is currently installing an update"));
217957
217957
  logEvent("tengu_auto_updater_lock_contention", {
217958
217958
  pid: process.pid,
217959
- currentVersion: { VERSION: "0.2.57", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
217959
+ currentVersion: { VERSION: "0.2.58", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
217960
217960
  });
217961
217961
  return "in_progress";
217962
217962
  }
@@ -217965,7 +217965,7 @@ async function installGlobalPackage(specificVersion) {
217965
217965
  if (!env3.isRunningWithBun() && env3.isNpmFromWindowsPath()) {
217966
217966
  logError2(new Error("Windows NPM detected in WSL environment"));
217967
217967
  logEvent("tengu_auto_updater_windows_npm_in_wsl", {
217968
- currentVersion: { VERSION: "0.2.57", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
217968
+ currentVersion: { VERSION: "0.2.58", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
217969
217969
  });
217970
217970
  console.error(`
217971
217971
  Error: Windows NPM detected in WSL
@@ -217984,7 +217984,7 @@ To fix this issue:
217984
217984
  if (!hasPermissions) {
217985
217985
  return "no_permissions";
217986
217986
  }
217987
- const packageSpec = specificVersion ? `${{ VERSION: "0.2.57", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.PACKAGE_URL}@${specificVersion}` : { VERSION: "0.2.57", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.PACKAGE_URL;
217987
+ const packageSpec = specificVersion ? `${{ VERSION: "0.2.58", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.PACKAGE_URL}@${specificVersion}` : { VERSION: "0.2.58", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.PACKAGE_URL;
217988
217988
  const packageManager = getGlobalInstallPackageManager();
217989
217989
  const installResult = await execFileNoThrowWithCwd(packageManager, ["install", "-g", packageSpec], { cwd: homedir18() });
217990
217990
  if (installResult.code !== 0) {
@@ -218312,8 +218312,8 @@ async function detectMultipleInstallations() {
218312
218312
  installations.push({ type: "npm-local", path: localPath });
218313
218313
  }
218314
218314
  const packagesToCheck = ["@theus-ai/theus-code"];
218315
- if ({ VERSION: "0.2.57", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.PACKAGE_URL && { VERSION: "0.2.57", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.PACKAGE_URL !== "@theus-ai/theus-code") {
218316
- packagesToCheck.push({ VERSION: "0.2.57", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.PACKAGE_URL);
218315
+ if ({ VERSION: "0.2.58", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.PACKAGE_URL && { VERSION: "0.2.58", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.PACKAGE_URL !== "@theus-ai/theus-code") {
218316
+ packagesToCheck.push({ VERSION: "0.2.58", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.PACKAGE_URL);
218317
218317
  }
218318
218318
  const npmResult = await execFileNoThrow("npm", [
218319
218319
  "-g",
@@ -218496,7 +218496,7 @@ function detectLinuxGlobPatternWarnings() {
218496
218496
  }
218497
218497
  async function getDoctorDiagnostic() {
218498
218498
  const installationType = await getCurrentInstallationType();
218499
- const version2 = { VERSION: "0.2.57", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION ? { VERSION: "0.2.57", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION : "unknown";
218499
+ const version2 = { VERSION: "0.2.58", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION ? { VERSION: "0.2.58", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION : "unknown";
218500
218500
  const installationPath = await getInstallationPath();
218501
218501
  const invokedBinary = getInvokedBinary();
218502
218502
  const multipleInstallations = await detectMultipleInstallations();
@@ -218508,8 +218508,8 @@ async function getDoctorDiagnostic() {
218508
218508
  for (const install of npmInstalls) {
218509
218509
  if (install.type === "npm-global") {
218510
218510
  let uninstallCmd = "npm -g uninstall @theus-ai/theus-code";
218511
- if ({ VERSION: "0.2.57", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.PACKAGE_URL && { VERSION: "0.2.57", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.PACKAGE_URL !== "@theus-ai/theus-code") {
218512
- uninstallCmd += ` && npm -g uninstall ${{ VERSION: "0.2.57", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.PACKAGE_URL}`;
218511
+ if ({ VERSION: "0.2.58", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.PACKAGE_URL && { VERSION: "0.2.58", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.PACKAGE_URL !== "@theus-ai/theus-code") {
218512
+ uninstallCmd += ` && npm -g uninstall ${{ VERSION: "0.2.58", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.PACKAGE_URL}`;
218513
218513
  }
218514
218514
  warnings.push({
218515
218515
  issue: `Leftover npm global installation at ${install.path}`,
@@ -218621,7 +218621,7 @@ async function getLatestVersionFromArtifactory(tag2 = "latest") {
218621
218621
  const startTime2 = Date.now();
218622
218622
  const { stdout, code, stderr } = await execFileNoThrowWithCwd("npm", [
218623
218623
  "view",
218624
- `${{ VERSION: "0.2.57", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.NATIVE_PACKAGE_URL}@${tag2}`,
218624
+ `${{ VERSION: "0.2.58", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.NATIVE_PACKAGE_URL}@${tag2}`,
218625
218625
  "version",
218626
218626
  "--prefer-online",
218627
218627
  "--registry",
@@ -218645,7 +218645,7 @@ async function getLatestVersionFromArtifactory(tag2 = "latest") {
218645
218645
  latency_ms: latencyMs,
218646
218646
  source_npm: true
218647
218647
  });
218648
- logForDebugging(`npm view ${{ VERSION: "0.2.57", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.NATIVE_PACKAGE_URL}@${tag2} version: ${stdout}`);
218648
+ logForDebugging(`npm view ${{ VERSION: "0.2.58", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.NATIVE_PACKAGE_URL}@${tag2} version: ${stdout}`);
218649
218649
  const latestVersion = stdout.trim();
218650
218650
  return latestVersion;
218651
218651
  }
@@ -218701,7 +218701,7 @@ async function downloadVersionFromArtifactory(version2, stagingPath) {
218701
218701
  const fs3 = getFsImplementation();
218702
218702
  await fs3.rm(stagingPath, { recursive: true, force: true });
218703
218703
  const platform4 = getPlatform2();
218704
- const platformPackageName = `${{ VERSION: "0.2.57", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.NATIVE_PACKAGE_URL}-${platform4}`;
218704
+ const platformPackageName = `${{ VERSION: "0.2.58", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.NATIVE_PACKAGE_URL}-${platform4}`;
218705
218705
  logForDebugging(`Fetching integrity hash for ${platformPackageName}@${version2}`);
218706
218706
  const {
218707
218707
  stdout: integrityOutput,
@@ -218730,7 +218730,7 @@ async function downloadVersionFromArtifactory(version2, stagingPath) {
218730
218730
  name: "theus-native-installer",
218731
218731
  version: "0.0.1",
218732
218732
  dependencies: {
218733
- [{ VERSION: "0.2.57", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.NATIVE_PACKAGE_URL]: version2
218733
+ [{ VERSION: "0.2.58", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.NATIVE_PACKAGE_URL]: version2
218734
218734
  }
218735
218735
  };
218736
218736
  const packageLock = {
@@ -218743,10 +218743,10 @@ async function downloadVersionFromArtifactory(version2, stagingPath) {
218743
218743
  name: "theus-native-installer",
218744
218744
  version: "0.0.1",
218745
218745
  dependencies: {
218746
- [{ VERSION: "0.2.57", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.NATIVE_PACKAGE_URL]: version2
218746
+ [{ VERSION: "0.2.58", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.NATIVE_PACKAGE_URL]: version2
218747
218747
  }
218748
218748
  },
218749
- [`node_modules/${{ VERSION: "0.2.57", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.NATIVE_PACKAGE_URL}`]: {
218749
+ [`node_modules/${{ VERSION: "0.2.58", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.NATIVE_PACKAGE_URL}`]: {
218750
218750
  version: version2,
218751
218751
  optionalDependencies: {
218752
218752
  [platformPackageName]: version2
@@ -218768,7 +218768,7 @@ async function downloadVersionFromArtifactory(version2, stagingPath) {
218768
218768
  if (result.code !== 0) {
218769
218769
  throw new Error(`npm ci failed with code ${result.code}: ${result.stderr}`);
218770
218770
  }
218771
- logForDebugging(`Successfully downloaded and verified ${{ VERSION: "0.2.57", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.NATIVE_PACKAGE_URL}@${version2}`);
218771
+ logForDebugging(`Successfully downloaded and verified ${{ VERSION: "0.2.58", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.NATIVE_PACKAGE_URL}@${version2}`);
218772
218772
  }
218773
218773
  function getStallTimeoutMs() {
218774
218774
  return Number(process.env.THEUS_CODE_STALL_TIMEOUT_MS_FOR_TESTING) || DEFAULT_STALL_TIMEOUT_MS;
@@ -219431,8 +219431,8 @@ async function updateLatest(channelOrVersion, forceReinstall = false) {
219431
219431
  const maxVersion = await getMaxVersion();
219432
219432
  if (maxVersion && gt(version2, maxVersion)) {
219433
219433
  logForDebugging(`Native installer: maxVersion ${maxVersion} is set, capping update from ${version2} to ${maxVersion}`);
219434
- if (gte({ VERSION: "0.2.57", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION, maxVersion)) {
219435
- logForDebugging(`Native installer: current version ${{ VERSION: "0.2.57", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION} is already at or above maxVersion ${maxVersion}, skipping update`);
219434
+ if (gte({ VERSION: "0.2.58", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION, maxVersion)) {
219435
+ logForDebugging(`Native installer: current version ${{ VERSION: "0.2.58", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION} is already at or above maxVersion ${maxVersion}, skipping update`);
219436
219436
  logEvent("tengu_native_update_skipped_max_version", {
219437
219437
  latency_ms: Date.now() - startTime2,
219438
219438
  max_version: maxVersion,
@@ -219443,7 +219443,7 @@ async function updateLatest(channelOrVersion, forceReinstall = false) {
219443
219443
  version2 = maxVersion;
219444
219444
  }
219445
219445
  }
219446
- if (!forceReinstall && version2 === { VERSION: "0.2.57", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION && await versionIsAvailable(version2) && await isPossibleTheusBinary(executablePath)) {
219446
+ if (!forceReinstall && version2 === { VERSION: "0.2.58", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION && await versionIsAvailable(version2) && await isPossibleTheusBinary(executablePath)) {
219447
219447
  logForDebugging(`Found ${version2} at ${executablePath}, skipping install`);
219448
219448
  logEvent("tengu_native_update_complete", {
219449
219449
  latency_ms: Date.now() - startTime2,
@@ -220193,8 +220193,8 @@ async function cleanupNpmInstallations() {
220193
220193
  } else if (codePackageResult.error) {
220194
220194
  errors4.push(codePackageResult.error);
220195
220195
  }
220196
- if ({ VERSION: "0.2.57", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.PACKAGE_URL && { VERSION: "0.2.57", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.PACKAGE_URL !== "@theus-ai/theus-code") {
220197
- const macroPackageResult = await attemptNpmUninstall({ VERSION: "0.2.57", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.PACKAGE_URL);
220196
+ if ({ VERSION: "0.2.58", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.PACKAGE_URL && { VERSION: "0.2.58", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.PACKAGE_URL !== "@theus-ai/theus-code") {
220197
+ const macroPackageResult = await attemptNpmUninstall({ VERSION: "0.2.58", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.PACKAGE_URL);
220198
220198
  if (macroPackageResult.success) {
220199
220199
  removed++;
220200
220200
  if (macroPackageResult.warning) {
@@ -230683,6 +230683,16 @@ var init_ConsoleOAuthFlow = __esm(() => {
230683
230683
  var NOVEDADES;
230684
230684
  var init_data = __esm(() => {
230685
230685
  NOVEDADES = [
230686
+ {
230687
+ version: "v0.2.58",
230688
+ fecha: "2026-07-26",
230689
+ titulo: "Si una actualizaci\xF3n del motor se corta, Theus lo repara",
230690
+ puntos: [
230691
+ "El motor de c\xF3digo apartaba su binario anterior antes de escribir el nuevo. Si la escritura se interrump\xEDa \u2014un antivirus bloqueando un ejecutable reci\xE9n creado, el disco lleno, la sesi\xF3n cortada\u2014 te quedabas sin motor y sin forma de reintentar: hab\xEDa que reinstalar a mano.",
230692
+ "Ahora, al actualizar, Theus comprueba que el motor siga ah\xED y, si la actualizaci\xF3n se interrumpi\xF3, restaura la versi\xF3n anterior desde la copia de seguridad y te lo dice. Sigues trabajando y lo reintentas cuando quieras.",
230693
+ "El motor tambi\xE9n se corrigi\xF3 de ra\xEDz (escribe el binario nuevo aparte y solo lo pone en su sitio cuando est\xE1 completo en disco), pero eso viaja en su pr\xF3xima versi\xF3n: esta comprobaci\xF3n protege a quien todav\xEDa no la tenga."
230694
+ ]
230695
+ },
230686
230696
  {
230687
230697
  version: "v0.2.57",
230688
230698
  fecha: "2026-07-26",
@@ -305702,9 +305712,9 @@ function getTheusEnvMetadata() {
305702
305712
  };
305703
305713
  }
305704
305714
  function getBuildAgeMinutes() {
305705
- if (!{ VERSION: "0.2.57", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.BUILD_TIME)
305715
+ if (!{ VERSION: "0.2.58", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.BUILD_TIME)
305706
305716
  return;
305707
- const buildTime = new Date({ VERSION: "0.2.57", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.BUILD_TIME).getTime();
305717
+ const buildTime = new Date({ VERSION: "0.2.58", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.BUILD_TIME).getTime();
305708
305718
  if (isNaN(buildTime))
305709
305719
  return;
305710
305720
  return Math.floor((Date.now() - buildTime) / 60000);
@@ -322359,7 +322369,7 @@ function getAssistantMessageFromError(error40, model, options2) {
322359
322369
  if (process.env.USER_TYPE === "ant") {
322360
322370
  const baseMessage = `API Error: 400 ${error40.message}
322361
322371
 
322362
- Run /share and post the JSON file to ${{ VERSION: "0.2.57", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.FEEDBACK_CHANNEL}.`;
322372
+ Run /share and post the JSON file to ${{ VERSION: "0.2.58", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.FEEDBACK_CHANNEL}.`;
322363
322373
  const rewindInstruction = getIsNonInteractiveSession() ? "" : " Then, use /rewind to recover the conversation.";
322364
322374
  return createAssistantAPIErrorMessage({
322365
322375
  content: baseMessage + rewindInstruction,
@@ -322395,7 +322405,7 @@ Run /share and post the JSON file to ${{ VERSION: "0.2.57", BUILD_TIME: "1970-01
322395
322405
  if (process.env.USER_TYPE === "ant" && !process.env.THEUS_MODEL && error40 instanceof Error && error40.message.toLowerCase().includes("invalid model name")) {
322396
322406
  const orgId = getOauthAccountInfo()?.organizationUuid;
322397
322407
  const baseMsg = `[THEUS-INTERNAL] Your org isn't gated into the \`${model}\` model. Either run \`theus\` with \`THEUS_MODEL=${getDefaultMainLoopModelSetting()}\``;
322398
- const msg = orgId ? `${baseMsg} or share your orgId (${orgId}) in ${{ VERSION: "0.2.57", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.FEEDBACK_CHANNEL} for help getting access.` : `${baseMsg} or reach out in ${{ VERSION: "0.2.57", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.FEEDBACK_CHANNEL} for help getting access.`;
322408
+ const msg = orgId ? `${baseMsg} or share your orgId (${orgId}) in ${{ VERSION: "0.2.58", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.FEEDBACK_CHANNEL} for help getting access.` : `${baseMsg} or reach out in ${{ VERSION: "0.2.58", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.FEEDBACK_CHANNEL} for help getting access.`;
322399
322409
  return createAssistantAPIErrorMessage({
322400
322410
  content: msg,
322401
322411
  error: "invalid_request"
@@ -330319,7 +330329,7 @@ async function submitTranscriptShare(messages, trigger, appearanceId) {
330319
330329
  } catch {}
330320
330330
  const data = {
330321
330331
  trigger,
330322
- version: { VERSION: "0.2.57", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
330332
+ version: { VERSION: "0.2.58", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
330323
330333
  platform: process.platform,
330324
330334
  transcript,
330325
330335
  subagentTranscripts: Object.keys(subagentTranscripts).length > 0 ? subagentTranscripts : undefined,
@@ -330524,10 +330534,10 @@ Si el usuario indic\xF3 una duraci\xF3n, p\xE1sala en el par\xE1metro \`duration
330524
330534
 
330525
330535
  // commands/issue/index.ts
330526
330536
  function getCliVersion() {
330527
- return { VERSION: "0.2.57", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION ? { VERSION: "0.2.57", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION : "desconocida";
330537
+ return { VERSION: "0.2.58", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION ? { VERSION: "0.2.58", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION : "desconocida";
330528
330538
  }
330529
330539
  function getIssuesExplainer() {
330530
- return { VERSION: "0.2.57", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.ISSUES_EXPLAINER ? { VERSION: "0.2.57", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.ISSUES_EXPLAINER : "report issues to the Theus maintainers";
330540
+ return { VERSION: "0.2.58", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.ISSUES_EXPLAINER ? { VERSION: "0.2.58", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.ISSUES_EXPLAINER : "report issues to the Theus maintainers";
330531
330541
  }
330532
330542
  function getActiveModelLabel() {
330533
330543
  try {
@@ -333360,7 +333370,7 @@ function buildPrimarySection() {
333360
333370
  });
333361
333371
  return [{
333362
333372
  label: "Version",
333363
- value: { VERSION: "0.2.57", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
333373
+ value: { VERSION: "0.2.58", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
333364
333374
  }, {
333365
333375
  label: "Session name",
333366
333376
  value: nameValue
@@ -337176,7 +337186,7 @@ function Config({
337176
337186
  }
337177
337187
  })
337178
337188
  }) : showSubmenu === "ChannelDowngrade" ? /* @__PURE__ */ jsx_runtime189.jsx(ChannelDowngradeDialog, {
337179
- currentVersion: { VERSION: "0.2.57", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
337189
+ currentVersion: { VERSION: "0.2.58", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
337180
337190
  onChoice: (choice) => {
337181
337191
  setShowSubmenu(null);
337182
337192
  setTabsHidden(false);
@@ -337188,7 +337198,7 @@ function Config({
337188
337198
  autoUpdatesChannel: "stable"
337189
337199
  };
337190
337200
  if (choice === "stay") {
337191
- newSettings.minimumVersion = { VERSION: "0.2.57", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION;
337201
+ newSettings.minimumVersion = { VERSION: "0.2.58", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION;
337192
337202
  }
337193
337203
  updateSettingsForSource("userSettings", newSettings);
337194
337204
  setSettingsData((prev_27) => ({
@@ -345433,7 +345443,7 @@ function HelpV2(t0) {
345433
345443
  let t6;
345434
345444
  if ($2[31] !== tabs) {
345435
345445
  t6 = /* @__PURE__ */ jsx_runtime217.jsx(Tabs, {
345436
- title: `Theus v${{ VERSION: "0.2.57", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION}`,
345446
+ title: `Theus v${{ VERSION: "0.2.58", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION}`,
345437
345447
  color: "professionalBlue",
345438
345448
  defaultTab: "general",
345439
345449
  children: tabs
@@ -363685,7 +363695,7 @@ function Onboarding({
363685
363695
  flexDirection: "column",
363686
363696
  children: [
363687
363697
  /* @__PURE__ */ jsx_runtime250.jsx(TheusBanner, {
363688
- version: { VERSION: "0.2.57", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
363698
+ version: { VERSION: "0.2.58", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
363689
363699
  }),
363690
363700
  /* @__PURE__ */ jsx_runtime250.jsxs(ThemedBox_default, {
363691
363701
  flexDirection: "column",
@@ -365044,9 +365054,9 @@ function getAllReleaseNotes(changelogContent = getStoredChangelogFromMemory()) {
365044
365054
  return [];
365045
365055
  }
365046
365056
  }
365047
- async function checkForReleaseNotes(lastSeenVersion, currentVersion = { VERSION: "0.2.57", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION) {
365057
+ async function checkForReleaseNotes(lastSeenVersion, currentVersion = { VERSION: "0.2.58", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION) {
365048
365058
  if (process.env.USER_TYPE === "ant") {
365049
- const changelog = { VERSION: "0.2.57", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION_CHANGELOG;
365059
+ const changelog = { VERSION: "0.2.58", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION_CHANGELOG;
365050
365060
  if (changelog) {
365051
365061
  const commits = changelog.trim().split(`
365052
365062
  `).filter(Boolean);
@@ -369248,7 +369258,7 @@ var init_Messages = __esm(() => {
369248
369258
  let t1;
369249
369259
  if ($2[0] === Symbol.for("react.memo_cache_sentinel")) {
369250
369260
  t1 = /* @__PURE__ */ jsx_runtime263.jsx(TheusSessionHeader, {
369251
- version: { VERSION: "0.2.57", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
369261
+ version: { VERSION: "0.2.58", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
369252
369262
  });
369253
369263
  $2[0] = t1;
369254
369264
  } else {
@@ -398072,7 +398082,7 @@ async function captureMemoryDiagnostics(trigger, dumpNumber = 0) {
398072
398082
  smapsRollup,
398073
398083
  platform: process.platform,
398074
398084
  nodeVersion: process.version,
398075
- ccVersion: { VERSION: "0.2.57", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
398085
+ ccVersion: { VERSION: "0.2.58", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
398076
398086
  };
398077
398087
  }
398078
398088
  async function performHeapDump(trigger = "manual", dumpNumber = 0) {
@@ -398891,7 +398901,7 @@ var init_bridge_kick = __esm(() => {
398891
398901
  var call65 = async () => {
398892
398902
  return {
398893
398903
  type: "text",
398894
- value: { VERSION: "0.2.57", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.BUILD_TIME ? `${{ VERSION: "0.2.57", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION} (built ${{ VERSION: "0.2.57", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.BUILD_TIME})` : { VERSION: "0.2.57", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
398904
+ value: { VERSION: "0.2.58", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.BUILD_TIME ? `${{ VERSION: "0.2.58", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION} (built ${{ VERSION: "0.2.58", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.BUILD_TIME})` : { VERSION: "0.2.58", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
398895
398905
  };
398896
398906
  }, version2, version_default;
398897
398907
  var init_version = __esm(() => {
@@ -401492,7 +401502,7 @@ var SECRET_NAME_PATTERN, EXTRA_ENV_ALLOWLIST, REDACTED2 = "\u2039oculto\u203A",
401492
401502
  const lines = [];
401493
401503
  lines.push("## Entorno de ejecuci\xF3n");
401494
401504
  lines.push("");
401495
- const version3 = { VERSION: "0.2.57", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION ? { VERSION: "0.2.57", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION : "desconocida";
401505
+ const version3 = { VERSION: "0.2.58", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION ? { VERSION: "0.2.58", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION : "desconocida";
401496
401506
  lines.push(`- Versi\xF3n de Theus: ${version3}`);
401497
401507
  lines.push(`- Directorio de trabajo: ${getCwd()}`);
401498
401508
  lines.push(`- \xBFRepositorio git?: ${isGit ? "s\xED" : "no"}`);
@@ -403874,6 +403884,21 @@ function naupaVersionOf(bin) {
403874
403884
  return null;
403875
403885
  }
403876
403886
  }
403887
+ function rescatarNaupaBorrado(binEnUso) {
403888
+ try {
403889
+ if (existsSync18(binEnUso))
403890
+ return;
403891
+ const apartado = `${binEnUso}.old`;
403892
+ if (!existsSync18(apartado))
403893
+ return;
403894
+ cpSync(apartado, binEnUso, { force: true });
403895
+ if (!existsSync18(binEnUso))
403896
+ return;
403897
+ writeToStdout(source_default.yellow("\xD1aupa: la actualizaci\xF3n se interrumpi\xF3 y dej\xF3 el motor sin binario. " + "Restaur\xE9 la versi\xF3n anterior desde la copia de seguridad, as\xED que " + "sigue funcionando. Vuelve a intentar \xABtheus update\xBB m\xE1s tarde.") + `
403898
+ `);
403899
+ logEvent("tengu_naupa_binario_restaurado", { ruta: "old" });
403900
+ } catch {}
403901
+ }
403877
403902
  function rescatarNaupaMalUbicado(binEnUso) {
403878
403903
  try {
403879
403904
  const home = process.env.HOME ?? process.env.USERPROFILE;
@@ -403944,6 +403969,7 @@ async function updateNaupa() {
403944
403969
  writeToStdout(source_default.yellow(`Aviso: \xD1aupa update termin\xF3 con c\xF3digo ${code}. ` + "Puedes reintentar a mano: naupa update --ui") + `
403945
403970
  `);
403946
403971
  }
403972
+ rescatarNaupaBorrado(bin);
403947
403973
  rescatarNaupaMalUbicado(bin);
403948
403974
  done();
403949
403975
  });
@@ -404003,13 +404029,13 @@ async function updateReleaseBundle() {
404003
404029
  await gracefulShutdown(1);
404004
404030
  return;
404005
404031
  }
404006
- if (gte({ VERSION: "0.2.57", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION, latest)) {
404007
- writeToStdout(source_default.green(`Theus is up to date (${{ VERSION: "0.2.57", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION})`) + `
404032
+ if (gte({ VERSION: "0.2.58", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION, latest)) {
404033
+ writeToStdout(source_default.green(`Theus is up to date (${{ VERSION: "0.2.58", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION})`) + `
404008
404034
  `);
404009
404035
  await gracefulShutdown(0);
404010
404036
  return;
404011
404037
  }
404012
- writeToStdout(`New version available: ${latest} (current: ${{ VERSION: "0.2.57", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION})
404038
+ writeToStdout(`New version available: ${latest} (current: ${{ VERSION: "0.2.58", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION})
404013
404039
  `);
404014
404040
  writeToStdout(`Installing update from theus.pe/dl...
404015
404041
  `);
@@ -404043,7 +404069,7 @@ async function updateReleaseBundle() {
404043
404069
  return;
404044
404070
  }
404045
404071
  cpSync(staged, bundleDir, { recursive: true, force: true });
404046
- writeToStdout(source_default.green(`Successfully updated from ${{ VERSION: "0.2.57", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION} to version ${latest}`) + `
404072
+ writeToStdout(source_default.green(`Successfully updated from ${{ VERSION: "0.2.58", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION} to version ${latest}`) + `
404047
404073
  `);
404048
404074
  await regenerateCompletionCache();
404049
404075
  } finally {
@@ -404056,7 +404082,7 @@ async function updateReleaseBundle() {
404056
404082
  async function update() {
404057
404083
  logEvent("tengu_update_check", {});
404058
404084
  await updateNaupa();
404059
- writeToStdout(`Current version: ${{ VERSION: "0.2.57", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION}
404085
+ writeToStdout(`Current version: ${{ VERSION: "0.2.58", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION}
404060
404086
  `);
404061
404087
  const channel2 = getInitialSettings()?.autoUpdatesChannel ?? "latest";
404062
404088
  writeToStdout(`Checking for updates to ${channel2} version...
@@ -404135,8 +404161,8 @@ async function update() {
404135
404161
  writeToStdout(`Theus is managed by Homebrew.
404136
404162
  `);
404137
404163
  const latest = await getLatestVersion(channel2);
404138
- if (latest && !gte({ VERSION: "0.2.57", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION, latest)) {
404139
- writeToStdout(`Update available: ${{ VERSION: "0.2.57", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION} \u2192 ${latest}
404164
+ if (latest && !gte({ VERSION: "0.2.58", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION, latest)) {
404165
+ writeToStdout(`Update available: ${{ VERSION: "0.2.58", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION} \u2192 ${latest}
404140
404166
  `);
404141
404167
  writeToStdout(`
404142
404168
  `);
@@ -404152,8 +404178,8 @@ async function update() {
404152
404178
  writeToStdout(`Theus is managed by winget.
404153
404179
  `);
404154
404180
  const latest = await getLatestVersion(channel2);
404155
- if (latest && !gte({ VERSION: "0.2.57", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION, latest)) {
404156
- writeToStdout(`Update available: ${{ VERSION: "0.2.57", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION} \u2192 ${latest}
404181
+ if (latest && !gte({ VERSION: "0.2.58", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION, latest)) {
404182
+ writeToStdout(`Update available: ${{ VERSION: "0.2.58", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION} \u2192 ${latest}
404157
404183
  `);
404158
404184
  writeToStdout(`
404159
404185
  `);
@@ -404169,8 +404195,8 @@ async function update() {
404169
404195
  writeToStdout(`Theus is managed by apk.
404170
404196
  `);
404171
404197
  const latest = await getLatestVersion(channel2);
404172
- if (latest && !gte({ VERSION: "0.2.57", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION, latest)) {
404173
- writeToStdout(`Update available: ${{ VERSION: "0.2.57", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION} \u2192 ${latest}
404198
+ if (latest && !gte({ VERSION: "0.2.58", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION, latest)) {
404199
+ writeToStdout(`Update available: ${{ VERSION: "0.2.58", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION} \u2192 ${latest}
404174
404200
  `);
404175
404201
  writeToStdout(`
404176
404202
  `);
@@ -404235,11 +404261,11 @@ async function update() {
404235
404261
  `);
404236
404262
  await gracefulShutdown(1);
404237
404263
  }
404238
- if (result.latestVersion === { VERSION: "0.2.57", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION) {
404239
- writeToStdout(source_default.green(`Theus is up to date (${{ VERSION: "0.2.57", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION})`) + `
404264
+ if (result.latestVersion === { VERSION: "0.2.58", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION) {
404265
+ writeToStdout(source_default.green(`Theus is up to date (${{ VERSION: "0.2.58", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION})`) + `
404240
404266
  `);
404241
404267
  } else {
404242
- writeToStdout(source_default.green(`Successfully updated from ${{ VERSION: "0.2.57", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION} to version ${result.latestVersion}`) + `
404268
+ writeToStdout(source_default.green(`Successfully updated from ${{ VERSION: "0.2.58", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION} to version ${result.latestVersion}`) + `
404243
404269
  `);
404244
404270
  await regenerateCompletionCache();
404245
404271
  }
@@ -404258,9 +404284,9 @@ async function update() {
404258
404284
  await removeInstalledSymlink();
404259
404285
  }
404260
404286
  logForDebugging("update: Checking npm registry for latest version");
404261
- logForDebugging(`update: Package URL: ${{ VERSION: "0.2.57", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.PACKAGE_URL}`);
404287
+ logForDebugging(`update: Package URL: ${{ VERSION: "0.2.58", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.PACKAGE_URL}`);
404262
404288
  const npmTag = channel2 === "stable" ? "stable" : "latest";
404263
- const npmCommand = `npm view ${{ VERSION: "0.2.57", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.PACKAGE_URL}@${npmTag} version`;
404289
+ const npmCommand = `npm view ${{ VERSION: "0.2.58", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.PACKAGE_URL}@${npmTag} version`;
404264
404290
  logForDebugging(`update: Running: ${npmCommand}`);
404265
404291
  const latestVersion = await getLatestVersion(channel2);
404266
404292
  logForDebugging(`update: Latest version from npm: ${latestVersion || "FAILED"}`);
@@ -404280,7 +404306,7 @@ async function update() {
404280
404306
  `);
404281
404307
  process.stderr.write(` \u2022 Corporate proxy/firewall blocking npm
404282
404308
  `);
404283
- if ({ VERSION: "0.2.57", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.PACKAGE_URL && !{ VERSION: "0.2.57", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.PACKAGE_URL.startsWith("@theus")) {
404309
+ if ({ VERSION: "0.2.58", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.PACKAGE_URL && !{ VERSION: "0.2.58", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.PACKAGE_URL.startsWith("@theus")) {
404284
404310
  process.stderr.write(` \u2022 Internal/development build not published to npm
404285
404311
  `);
404286
404312
  }
@@ -404292,19 +404318,19 @@ async function update() {
404292
404318
  `);
404293
404319
  process.stderr.write(` \u2022 Run with --debug flag for more details
404294
404320
  `);
404295
- const packageName = { VERSION: "0.2.57", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.PACKAGE_URL || (process.env.USER_TYPE === "ant" ? "@theus-ai/theus-cli" : "@theus-ai/theus-code");
404321
+ const packageName = { VERSION: "0.2.58", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.PACKAGE_URL || (process.env.USER_TYPE === "ant" ? "@theus-ai/theus-cli" : "@theus-ai/theus-code");
404296
404322
  process.stderr.write(` \u2022 Manually check: npm view ${packageName} version
404297
404323
  `);
404298
404324
  process.stderr.write(` \u2022 Check if you need to login: npm whoami
404299
404325
  `);
404300
404326
  await gracefulShutdown(1);
404301
404327
  }
404302
- if (gte({ VERSION: "0.2.57", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION, latestVersion)) {
404303
- writeToStdout(source_default.green(`Theus is up to date (${{ VERSION: "0.2.57", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION})`) + `
404328
+ if (gte({ VERSION: "0.2.58", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION, latestVersion)) {
404329
+ writeToStdout(source_default.green(`Theus is up to date (${{ VERSION: "0.2.58", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION})`) + `
404304
404330
  `);
404305
404331
  await gracefulShutdown(0);
404306
404332
  }
404307
- writeToStdout(`New version available: ${latestVersion} (current: ${{ VERSION: "0.2.57", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION})
404333
+ writeToStdout(`New version available: ${latestVersion} (current: ${{ VERSION: "0.2.58", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION})
404308
404334
  `);
404309
404335
  writeToStdout(`Installing update...
404310
404336
  `);
@@ -404349,7 +404375,7 @@ async function update() {
404349
404375
  logForDebugging(`update: Installation status: ${status2}`);
404350
404376
  switch (status2) {
404351
404377
  case "success":
404352
- writeToStdout(source_default.green(`Successfully updated from ${{ VERSION: "0.2.57", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION} to version ${latestVersion}`) + `
404378
+ writeToStdout(source_default.green(`Successfully updated from ${{ VERSION: "0.2.58", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION} to version ${latestVersion}`) + `
404353
404379
  `);
404354
404380
  await regenerateCompletionCache();
404355
404381
  break;
@@ -404359,7 +404385,7 @@ async function update() {
404359
404385
  if (useLocalUpdate) {
404360
404386
  process.stderr.write(`Try manually updating with:
404361
404387
  `);
404362
- process.stderr.write(` cd ~/.theus/local && npm update ${{ VERSION: "0.2.57", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.PACKAGE_URL}
404388
+ process.stderr.write(` cd ~/.theus/local && npm update ${{ VERSION: "0.2.58", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.PACKAGE_URL}
404363
404389
  `);
404364
404390
  } else {
404365
404391
  process.stderr.write(`Try running with sudo or fix npm permissions
@@ -404375,7 +404401,7 @@ async function update() {
404375
404401
  if (useLocalUpdate) {
404376
404402
  process.stderr.write(`Try manually updating with:
404377
404403
  `);
404378
- process.stderr.write(` cd ~/.theus/local && npm update ${{ VERSION: "0.2.57", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.PACKAGE_URL}
404404
+ process.stderr.write(` cd ~/.theus/local && npm update ${{ VERSION: "0.2.58", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.PACKAGE_URL}
404379
404405
  `);
404380
404406
  } else {
404381
404407
  process.stderr.write(`Or consider using native installation with: theus install
@@ -414215,7 +414241,7 @@ var init_sessionStorage = __esm(() => {
414215
414241
  init_settings2();
414216
414242
  init_slowOperations();
414217
414243
  init_uuid();
414218
- VERSION4 = { VERSION: "0.2.57", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION;
414244
+ VERSION4 = { VERSION: "0.2.58", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION;
414219
414245
  MAX_TOMBSTONE_REWRITE_BYTES = 50 * 1024 * 1024;
414220
414246
  SKIP_FIRST_PROMPT_PATTERN2 = /^(?:\s*<[a-z][\w-]*[\s>]|\[Request interrupted by user[^\]]*\])/;
414221
414247
  EPHEMERAL_PROGRESS_TYPES = new Set([
@@ -415420,7 +415446,7 @@ var init_filesystem = __esm(() => {
415420
415446
  });
415421
415447
  getBundledSkillsRoot = memoize_default(function getBundledSkillsRoot2() {
415422
415448
  const nonce = randomBytes21(16).toString("hex");
415423
- return join150(getTheusTempDir(), "bundled-skills", { VERSION: "0.2.57", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION, nonce);
415449
+ return join150(getTheusTempDir(), "bundled-skills", { VERSION: "0.2.58", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION, nonce);
415424
415450
  });
415425
415451
  getResolvedWorkingDirPaths = memoize_default(getPathsForPermissionCheck);
415426
415452
  });
@@ -420599,7 +420625,7 @@ function getSimpleDoingTasksSection() {
420599
420625
  ];
420600
420626
  const userHelpSubitems = [
420601
420627
  `/help: Get help with using Theus`,
420602
- `To give feedback, users should ${{ VERSION: "0.2.57", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.ISSUES_EXPLAINER}`
420628
+ `To give feedback, users should ${{ VERSION: "0.2.58", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.ISSUES_EXPLAINER}`
420603
420629
  ];
420604
420630
  const items = [
420605
420631
  `The user will primarily request you to perform software engineering tasks. These may include solving bugs, adding new functionality, refactoring code, explaining code, and more. When given an unclear or generic instruction, consider it in the context of these software engineering tasks and the current working directory. For example, if the user asks you to change "methodName" to snake case, do not reply with just "method_name", instead find the method in the code and modify the code.`,
@@ -421499,7 +421525,7 @@ function computeFingerprint(messageText, version3) {
421499
421525
  }
421500
421526
  function computeFingerprintFromMessages(messages) {
421501
421527
  const firstMessageText = extractFirstMessageText(messages);
421502
- return computeFingerprint(firstMessageText, { VERSION: "0.2.57", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION);
421528
+ return computeFingerprint(firstMessageText, { VERSION: "0.2.58", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION);
421503
421529
  }
421504
421530
  var FINGERPRINT_SALT = "59cf53e54c78";
421505
421531
  var init_fingerprint = () => {};
@@ -424122,7 +424148,7 @@ async function sideQuery(opts) {
424122
424148
  betas.push(STRUCTURED_OUTPUTS_BETA_HEADER);
424123
424149
  }
424124
424150
  const messageText = extractFirstUserMessageText(messages);
424125
- const fingerprint = computeFingerprint(messageText, { VERSION: "0.2.57", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION);
424151
+ const fingerprint = computeFingerprint(messageText, { VERSION: "0.2.58", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION);
424126
424152
  const attributionHeader = getAttributionHeader(fingerprint);
424127
424153
  const systemBlocks = [
424128
424154
  attributionHeader ? { type: "text", text: attributionHeader } : null,
@@ -425425,7 +425451,7 @@ async function handleMemories(state) {
425425
425451
  async function runProjectContextMcpServer() {
425426
425452
  const projectRoot = process.env.THEUS_PROJECT_ROOT || process.cwd();
425427
425453
  const state = new ProjectContextState(projectRoot);
425428
- const server2 = new Server({ name: SERVER_NAME, version: { VERSION: "0.2.57", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION }, { capabilities: { tools: {} } });
425454
+ const server2 = new Server({ name: SERVER_NAME, version: { VERSION: "0.2.58", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION }, { capabilities: { tools: {} } });
425429
425455
  server2.setRequestHandler(ListToolsRequestSchema, async () => ({
425430
425456
  tools: TOOL_DEFINITIONS.map((t) => ({
425431
425457
  name: t.name,
@@ -427407,7 +427433,7 @@ function createBridgeLogger(options2) {
427407
427433
  connectUrl = buildBridgeConnectUrl(environmentId, cachedIngressUrl);
427408
427434
  regenerateQr(connectUrl);
427409
427435
  if (verbose) {
427410
- write(source_default.dim(`Remote Control`) + ` v${{ VERSION: "0.2.57", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION}
427436
+ write(source_default.dim(`Remote Control`) + ` v${{ VERSION: "0.2.58", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION}
427411
427437
  `);
427412
427438
  }
427413
427439
  if (verbose) {
@@ -428380,7 +428406,7 @@ function appendToLog(path19, message) {
428380
428406
  cwd: getFsImplementation().cwd(),
428381
428407
  userType: process.env.USER_TYPE,
428382
428408
  sessionId: getSessionId(),
428383
- version: { VERSION: "0.2.57", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
428409
+ version: { VERSION: "0.2.58", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
428384
428410
  };
428385
428411
  getLogWriter(path19).write(messageWithTimestamp);
428386
428412
  }
@@ -429650,7 +429676,7 @@ Spawn mode for this project:
429650
429676
  const api2 = createBridgeApiClient({
429651
429677
  baseUrl,
429652
429678
  getAccessToken: getBridgeAccessToken2,
429653
- runnerVersion: { VERSION: "0.2.57", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
429679
+ runnerVersion: { VERSION: "0.2.58", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
429654
429680
  onDebug: logForDebugging,
429655
429681
  onAuth401: handleOAuth401Error2,
429656
429682
  getTrustedDeviceToken
@@ -429888,7 +429914,7 @@ async function runBridgeHeadless(opts, signal) {
429888
429914
  const api2 = createBridgeApiClient({
429889
429915
  baseUrl,
429890
429916
  getAccessToken: opts.getAccessToken,
429891
- runnerVersion: { VERSION: "0.2.57", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
429917
+ runnerVersion: { VERSION: "0.2.58", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
429892
429918
  onDebug: log2,
429893
429919
  onAuth401: opts.onAuth401,
429894
429920
  getTrustedDeviceToken
@@ -433954,7 +433980,7 @@ function buildSystemInitMessage(inputs) {
433954
433980
  slash_commands: inputs.commands.filter((c5) => c5.userInvocable !== false).map((c5) => c5.name),
433955
433981
  apiKeySource: getTheusApiKeyWithSource().source,
433956
433982
  betas: getSdkBetas(),
433957
- theus_code_version: { VERSION: "0.2.57", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
433983
+ theus_code_version: { VERSION: "0.2.58", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
433958
433984
  output_style: outputStyle2,
433959
433985
  agents: inputs.agents.map((agent) => agent.agentType),
433960
433986
  skills: inputs.skills.filter((s) => s.userInvocable !== false).map((skill) => skill.name),
@@ -433994,8 +434020,8 @@ async function getEnvLessBridgeConfig() {
433994
434020
  }
433995
434021
  async function checkEnvLessBridgeMinVersion() {
433996
434022
  const cfg = await getEnvLessBridgeConfig();
433997
- if (cfg.min_version && lt({ VERSION: "0.2.57", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION, cfg.min_version)) {
433998
- return `Your version of Theus (${{ VERSION: "0.2.57", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION}) is too old for Remote Control.
434023
+ if (cfg.min_version && lt({ VERSION: "0.2.58", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION, cfg.min_version)) {
434024
+ return `Your version of Theus (${{ VERSION: "0.2.58", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION}) is too old for Remote Control.
433999
434025
  Version ${cfg.min_version} or higher is required. Run \`theus update\` to update.`;
434000
434026
  }
434001
434027
  return null;
@@ -436319,7 +436345,7 @@ async function initBridgeCore(params) {
436319
436345
  const rawApi = createBridgeApiClient({
436320
436346
  baseUrl,
436321
436347
  getAccessToken,
436322
- runnerVersion: { VERSION: "0.2.57", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
436348
+ runnerVersion: { VERSION: "0.2.58", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
436323
436349
  onDebug: logForDebugging,
436324
436350
  onAuth401,
436325
436351
  getTrustedDeviceToken
@@ -453062,7 +453088,7 @@ var init_useVoiceEnabled = __esm(() => {
453062
453088
  function getSemverPart(version3) {
453063
453089
  return `${import_semver14.major(version3, { loose: true })}.${import_semver14.minor(version3, { loose: true })}.${import_semver14.patch(version3, { loose: true })}`;
453064
453090
  }
453065
- function useUpdateNotification(updatedVersion, initialVersion = { VERSION: "0.2.57", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION) {
453091
+ function useUpdateNotification(updatedVersion, initialVersion = { VERSION: "0.2.58", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION) {
453066
453092
  const [lastNotifiedSemver, setLastNotifiedSemver] = import_react233.useState(() => getSemverPart(initialVersion));
453067
453093
  if (!updatedVersion) {
453068
453094
  return null;
@@ -453102,7 +453128,7 @@ function AutoUpdater({
453102
453128
  return;
453103
453129
  }
453104
453130
  if (false) {}
453105
- const currentVersion = { VERSION: "0.2.57", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION;
453131
+ const currentVersion = { VERSION: "0.2.58", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION;
453106
453132
  const channel2 = getInitialSettings()?.autoUpdatesChannel ?? "latest";
453107
453133
  let latestVersion = await getLatestVersion(channel2);
453108
453134
  const isDisabled2 = isAutoUpdaterDisabled();
@@ -453238,7 +453264,7 @@ function AutoUpdater({
453238
453264
  " ",
453239
453265
  /* @__PURE__ */ jsx_runtime409.jsx(ThemedText, {
453240
453266
  bold: true,
453241
- children: hasLocalInstall ? `cd ~/.theus/local && npm update ${{ VERSION: "0.2.57", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.PACKAGE_URL}` : `npm i -g ${{ VERSION: "0.2.57", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.PACKAGE_URL}`
453267
+ children: hasLocalInstall ? `cd ~/.theus/local && npm update ${{ VERSION: "0.2.58", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.PACKAGE_URL}` : `npm i -g ${{ VERSION: "0.2.58", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.PACKAGE_URL}`
453242
453268
  })
453243
453269
  ]
453244
453270
  })
@@ -453315,12 +453341,12 @@ function NativeAutoUpdater({
453315
453341
  logEvent("tengu_native_auto_updater_start", {});
453316
453342
  try {
453317
453343
  const maxVersion = await getMaxVersion();
453318
- if (maxVersion && gt({ VERSION: "0.2.57", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION, maxVersion)) {
453344
+ if (maxVersion && gt({ VERSION: "0.2.58", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION, maxVersion)) {
453319
453345
  const msg = await getMaxVersionMessage();
453320
453346
  setMaxVersionIssue(msg ?? "affects your version");
453321
453347
  }
453322
453348
  const result = await installLatest(channel2);
453323
- const currentVersion = { VERSION: "0.2.57", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION;
453349
+ const currentVersion = { VERSION: "0.2.58", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION;
453324
453350
  const latencyMs = Date.now() - startTime2;
453325
453351
  if (result.lockFailed) {
453326
453352
  logEvent("tengu_native_auto_updater_lock_contention", {
@@ -453457,17 +453483,17 @@ function PackageManagerAutoUpdater(t0) {
453457
453483
  const maxVersion = await getMaxVersion();
453458
453484
  if (maxVersion && latest && gt(latest, maxVersion)) {
453459
453485
  logForDebugging(`PackageManagerAutoUpdater: maxVersion ${maxVersion} is set, capping update from ${latest} to ${maxVersion}`);
453460
- if (gte({ VERSION: "0.2.57", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION, maxVersion)) {
453461
- logForDebugging(`PackageManagerAutoUpdater: current version ${{ VERSION: "0.2.57", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION} is already at or above maxVersion ${maxVersion}, skipping update`);
453486
+ if (gte({ VERSION: "0.2.58", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION, maxVersion)) {
453487
+ logForDebugging(`PackageManagerAutoUpdater: current version ${{ VERSION: "0.2.58", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION} is already at or above maxVersion ${maxVersion}, skipping update`);
453462
453488
  setUpdateAvailable(false);
453463
453489
  return;
453464
453490
  }
453465
453491
  latest = maxVersion;
453466
453492
  }
453467
- const hasUpdate = latest && !gte({ VERSION: "0.2.57", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION, latest) && !shouldSkipVersion(latest);
453493
+ const hasUpdate = latest && !gte({ VERSION: "0.2.58", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION, latest) && !shouldSkipVersion(latest);
453468
453494
  setUpdateAvailable(!!hasUpdate);
453469
453495
  if (hasUpdate) {
453470
- logForDebugging(`PackageManagerAutoUpdater: Update available ${{ VERSION: "0.2.57", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION} -> ${latest}`);
453496
+ logForDebugging(`PackageManagerAutoUpdater: Update available ${{ VERSION: "0.2.58", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION} -> ${latest}`);
453471
453497
  }
453472
453498
  };
453473
453499
  $2[0] = t1;
@@ -453501,7 +453527,7 @@ function PackageManagerAutoUpdater(t0) {
453501
453527
  wrap: "truncate",
453502
453528
  children: [
453503
453529
  "currentVersion: ",
453504
- { VERSION: "0.2.57", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
453530
+ { VERSION: "0.2.58", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
453505
453531
  ]
453506
453532
  });
453507
453533
  $2[3] = verbose;
@@ -461375,7 +461401,7 @@ function buildStatusLineCommandInput(permissionMode, exceeds200kTokens, settings
461375
461401
  project_dir: getOriginalCwd(),
461376
461402
  added_dirs: addedDirs
461377
461403
  },
461378
- version: { VERSION: "0.2.57", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
461404
+ version: { VERSION: "0.2.58", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
461379
461405
  output_style: {
461380
461406
  name: outputStyleName
461381
461407
  },
@@ -485655,7 +485681,7 @@ function completeOnboarding() {
485655
485681
  saveGlobalConfig((current) => ({
485656
485682
  ...current,
485657
485683
  hasCompletedOnboarding: true,
485658
- lastOnboardingVersion: { VERSION: "0.2.57", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
485684
+ lastOnboardingVersion: { VERSION: "0.2.58", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
485659
485685
  }));
485660
485686
  }
485661
485687
  function showDialog(root2, renderer) {
@@ -496606,7 +496632,7 @@ async function startMCPServer(cwd3, debug3, verbose) {
496606
496632
  setCwd(cwd3);
496607
496633
  const server2 = new Server({
496608
496634
  name: "theus/tengu",
496609
- version: { VERSION: "0.2.57", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
496635
+ version: { VERSION: "0.2.58", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
496610
496636
  }, {
496611
496637
  capabilities: {
496612
496638
  tools: {}
@@ -498048,7 +498074,7 @@ async function setupTokenHandler(root2) {
498048
498074
  gap: 1,
498049
498075
  children: [
498050
498076
  /* @__PURE__ */ jsx_runtime495.jsx(TheusBanner, {
498051
- version: { VERSION: "0.2.57", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
498077
+ version: { VERSION: "0.2.58", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
498052
498078
  }),
498053
498079
  showAuthWarning && /* @__PURE__ */ jsx_runtime495.jsxs(ThemedBox_default, {
498054
498080
  flexDirection: "column",
@@ -499530,7 +499556,7 @@ ${assistantAddendum}` : assistantAddendum;
499530
499556
  }
499531
499557
  }
499532
499558
  logForDiagnosticsNoPII("info", "started", {
499533
- version: { VERSION: "0.2.57", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
499559
+ version: { VERSION: "0.2.58", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
499534
499560
  is_native_binary: isInBundledMode()
499535
499561
  });
499536
499562
  registerCleanup(async () => {
@@ -500398,7 +500424,7 @@ Usage: theus --remote "your task description"`, () => gracefulShutdown(1));
500398
500424
  pendingHookMessages
500399
500425
  }, renderAndRun);
500400
500426
  }
500401
- }).version(`${{ VERSION: "0.2.57", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION} (Theus)`, "-v, --version", "Muestra el n\xFAmero de versi\xF3n");
500427
+ }).version(`${{ VERSION: "0.2.58", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION} (Theus)`, "-v, --version", "Muestra el n\xFAmero de versi\xF3n");
500402
500428
  program2.option("-w, --worktree [name]", "Crea un nuevo worktree de git para esta sesi\xF3n (opcionalmente indica un nombre)");
500403
500429
  program2.option("--tmux", "Crea una sesi\xF3n de tmux para el worktree (requiere --worktree). Usa paneles nativos de iTerm2 cuando est\xE1n disponibles; usa --tmux=classic para tmux tradicional.");
500404
500430
  if (canUserConfigureAdvisor()) {
@@ -500950,7 +500976,7 @@ if (false) {}
500950
500976
  async function main2() {
500951
500977
  const args = process.argv.slice(2);
500952
500978
  if (args.length === 1 && (args[0] === "--version" || args[0] === "-v" || args[0] === "-V")) {
500953
- console.log(`${{ VERSION: "0.2.57", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION} (Theus)`);
500979
+ console.log(`${{ VERSION: "0.2.58", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION} (Theus)`);
500954
500980
  return;
500955
500981
  }
500956
500982
  const {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "theus-cli",
3
- "version": "0.2.57",
3
+ "version": "0.2.58",
4
4
  "description": "Theus — agente local-first multimodelo con memoria, grafo y decisiones verificables",
5
5
  "type": "module",
6
6
  "bin": {