theus-cli 0.2.55 → 0.2.56

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 +277 -144
  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.55", BUILD_TIME: "1970-01-01T00:00:00.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.56", BUILD_TIME: "1970-01-01T00:00:00.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.55", BUILD_TIME: "1970-01-01T00:00:00.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.56", BUILD_TIME: "1970-01-01T00:00:00.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.55", BUILD_TIME: "1970-01-01T00:00:00.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.56", BUILD_TIME: "1970-01-01T00:00:00.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.55", BUILD_TIME: "1970-01-01T00:00:00.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.56", BUILD_TIME: "1970-01-01T00:00:00.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.55", BUILD_TIME: "1970-01-01T00:00:00.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.56", BUILD_TIME: "1970-01-01T00:00:00.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.55", BUILD_TIME: "1970-01-01T00:00:00.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.56", BUILD_TIME: "1970-01-01T00:00:00.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.55", BUILD_TIME: "1970-01-01T00:00:00.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.56", BUILD_TIME: "1970-01-01T00:00:00.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.55", BUILD_TIME: "1970-01-01T00:00:00.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.56", BUILD_TIME: "1970-01-01T00:00:00.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.55", BUILD_TIME: "1970-01-01T00:00:00.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.56", BUILD_TIME: "1970-01-01T00:00:00.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.55", BUILD_TIME: "1970-01-01T00:00:00.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.56", BUILD_TIME: "1970-01-01T00:00:00.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.55", BUILD_TIME: "1970-01-01T00:00:00.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.56", BUILD_TIME: "1970-01-01T00:00:00.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.55", BUILD_TIME: "1970-01-01T00:00:00.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.56", BUILD_TIME: "1970-01-01T00:00:00.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.55", BUILD_TIME: "1970-01-01T00:00:00.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.56", BUILD_TIME: "1970-01-01T00:00:00.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.55", BUILD_TIME: "1970-01-01T00:00:00.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.56", BUILD_TIME: "1970-01-01T00:00:00.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.55", BUILD_TIME: "1970-01-01T00:00:00.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.56", BUILD_TIME: "1970-01-01T00:00:00.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.55", BUILD_TIME: "1970-01-01T00:00:00.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.56", BUILD_TIME: "1970-01-01T00:00:00.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.55", BUILD_TIME: "1970-01-01T00:00:00.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.56", BUILD_TIME: "1970-01-01T00:00:00.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.55", BUILD_TIME: "1970-01-01T00:00:00.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.56", BUILD_TIME: "1970-01-01T00:00:00.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.55", BUILD_TIME: "1970-01-01T00:00:00.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.56", BUILD_TIME: "1970-01-01T00:00:00.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.55", BUILD_TIME: "1970-01-01T00:00:00.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.56", BUILD_TIME: "1970-01-01T00:00:00.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.55", BUILD_TIME: "1970-01-01T00:00:00.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.56", BUILD_TIME: "1970-01-01T00:00:00.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.55", BUILD_TIME: "1970-01-01T00:00:00.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.56", BUILD_TIME: "1970-01-01T00:00:00.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.55", BUILD_TIME: "1970-01-01T00:00:00.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.56", BUILD_TIME: "1970-01-01T00:00:00.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.55", BUILD_TIME: "1970-01-01T00:00:00.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.56", BUILD_TIME: "1970-01-01T00:00:00.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.55", BUILD_TIME: "1970-01-01T00:00:00.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.56", BUILD_TIME: "1970-01-01T00:00:00.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.55", BUILD_TIME: "1970-01-01T00:00:00.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.56", BUILD_TIME: "1970-01-01T00:00:00.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.55", BUILD_TIME: "1970-01-01T00:00:00.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.56", BUILD_TIME: "1970-01-01T00:00:00.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.55", BUILD_TIME: "1970-01-01T00:00:00.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.56", BUILD_TIME: "1970-01-01T00:00:00.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.55", BUILD_TIME: "1970-01-01T00:00:00.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.56", BUILD_TIME: "1970-01-01T00:00:00.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.55", BUILD_TIME: "1970-01-01T00:00:00.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.56", BUILD_TIME: "1970-01-01T00:00:00.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.55", BUILD_TIME: "1970-01-01T00:00:00.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.56", BUILD_TIME: "1970-01-01T00:00:00.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.55", BUILD_TIME: "1970-01-01T00:00:00.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.56", BUILD_TIME: "1970-01-01T00:00:00.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.55", BUILD_TIME: "1970-01-01T00:00:00.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.56", BUILD_TIME: "1970-01-01T00:00:00.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.55", BUILD_TIME: "1970-01-01T00:00:00.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.55", BUILD_TIME: "1970-01-01T00:00:00.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.56", BUILD_TIME: "1970-01-01T00:00:00.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.56", BUILD_TIME: "1970-01-01T00:00:00.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.55", BUILD_TIME: "1970-01-01T00:00:00.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.55", BUILD_TIME: "1970-01-01T00:00:00.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.55", BUILD_TIME: "1970-01-01T00:00:00.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.56", BUILD_TIME: "1970-01-01T00:00:00.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.56", BUILD_TIME: "1970-01-01T00:00:00.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.56", BUILD_TIME: "1970-01-01T00:00:00.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.55", BUILD_TIME: "1970-01-01T00:00:00.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.55", BUILD_TIME: "1970-01-01T00:00:00.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.56", BUILD_TIME: "1970-01-01T00:00:00.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.56", BUILD_TIME: "1970-01-01T00:00:00.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.55", BUILD_TIME: "1970-01-01T00:00:00.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.55", BUILD_TIME: "1970-01-01T00:00:00.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.55", BUILD_TIME: "1970-01-01T00:00:00.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.56", BUILD_TIME: "1970-01-01T00:00:00.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.56", BUILD_TIME: "1970-01-01T00:00:00.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.56", BUILD_TIME: "1970-01-01T00:00:00.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.55", BUILD_TIME: "1970-01-01T00:00:00.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.56", BUILD_TIME: "1970-01-01T00:00:00.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.55", BUILD_TIME: "1970-01-01T00:00:00.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.56", BUILD_TIME: "1970-01-01T00:00:00.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.55", BUILD_TIME: "1970-01-01T00:00:00.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.56", BUILD_TIME: "1970-01-01T00:00:00.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.55", BUILD_TIME: "1970-01-01T00:00:00.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.56", BUILD_TIME: "1970-01-01T00:00:00.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.55", BUILD_TIME: "1970-01-01T00:00:00.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.56", BUILD_TIME: "1970-01-01T00:00:00.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.55", BUILD_TIME: "1970-01-01T00:00:00.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.56", BUILD_TIME: "1970-01-01T00:00:00.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.55", BUILD_TIME: "1970-01-01T00:00:00.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.56", BUILD_TIME: "1970-01-01T00:00:00.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.55", BUILD_TIME: "1970-01-01T00:00:00.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.55", BUILD_TIME: "1970-01-01T00:00:00.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.56", BUILD_TIME: "1970-01-01T00:00:00.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.56", BUILD_TIME: "1970-01-01T00:00:00.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.55", BUILD_TIME: "1970-01-01T00:00:00.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.56", BUILD_TIME: "1970-01-01T00:00:00.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.55", BUILD_TIME: "1970-01-01T00:00:00.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.55", BUILD_TIME: "1970-01-01T00:00:00.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.55", BUILD_TIME: "1970-01-01T00:00:00.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.56", BUILD_TIME: "1970-01-01T00:00:00.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.56", BUILD_TIME: "1970-01-01T00:00:00.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.56", BUILD_TIME: "1970-01-01T00:00:00.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.56",
230688
+ fecha: "2026-07-26",
230689
+ titulo: "La recarga te dice qu\xE9 pasa cuando algo falla",
230690
+ puntos: [
230691
+ "Si tu sesi\xF3n hab\xEDa caducado, \xAB/recarga\xBB te dejaba elegir el pack, confirmar la compra y reci\xE9n entonces respond\xEDa \xABno pude abrir el checkout, int\xE9ntalo en unos minutos\xBB \u2014 reintentar no lo iba a arreglar nunca.",
230692
+ "Ahora refresca tu sesi\xF3n antes de empezar y, si no puede, te lo dice de entrada: \xABTu sesi\xF3n caduc\xF3, entra con /login\xBB. Y cuando el servidor rechaza la compra por otro motivo (alcanzaste el tope de packs del ciclo, la recarga no est\xE1 disponible), muestra ese motivo en vez de un mensaje gen\xE9rico.",
230693
+ "En todos los casos se sigue diciendo lo importante: no se cobr\xF3 nada."
230694
+ ]
230695
+ },
230686
230696
  {
230687
230697
  version: "v0.2.55",
230688
230698
  fecha: "2026-07-26",
@@ -305682,9 +305692,9 @@ function getTheusEnvMetadata() {
305682
305692
  };
305683
305693
  }
305684
305694
  function getBuildAgeMinutes() {
305685
- if (!{ VERSION: "0.2.55", BUILD_TIME: "1970-01-01T00:00:00.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)
305695
+ if (!{ VERSION: "0.2.56", BUILD_TIME: "1970-01-01T00:00:00.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)
305686
305696
  return;
305687
- const buildTime = new Date({ VERSION: "0.2.55", BUILD_TIME: "1970-01-01T00:00:00.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();
305697
+ const buildTime = new Date({ VERSION: "0.2.56", BUILD_TIME: "1970-01-01T00:00:00.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();
305688
305698
  if (isNaN(buildTime))
305689
305699
  return;
305690
305700
  return Math.floor((Date.now() - buildTime) / 60000);
@@ -322339,7 +322349,7 @@ function getAssistantMessageFromError(error40, model, options2) {
322339
322349
  if (process.env.USER_TYPE === "ant") {
322340
322350
  const baseMessage = `API Error: 400 ${error40.message}
322341
322351
 
322342
- Run /share and post the JSON file to ${{ VERSION: "0.2.55", BUILD_TIME: "1970-01-01T00:00:00.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}.`;
322352
+ Run /share and post the JSON file to ${{ VERSION: "0.2.56", BUILD_TIME: "1970-01-01T00:00:00.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}.`;
322343
322353
  const rewindInstruction = getIsNonInteractiveSession() ? "" : " Then, use /rewind to recover the conversation.";
322344
322354
  return createAssistantAPIErrorMessage({
322345
322355
  content: baseMessage + rewindInstruction,
@@ -322375,7 +322385,7 @@ Run /share and post the JSON file to ${{ VERSION: "0.2.55", BUILD_TIME: "1970-01
322375
322385
  if (process.env.USER_TYPE === "ant" && !process.env.THEUS_MODEL && error40 instanceof Error && error40.message.toLowerCase().includes("invalid model name")) {
322376
322386
  const orgId = getOauthAccountInfo()?.organizationUuid;
322377
322387
  const baseMsg = `[THEUS-INTERNAL] Your org isn't gated into the \`${model}\` model. Either run \`theus\` with \`THEUS_MODEL=${getDefaultMainLoopModelSetting()}\``;
322378
- const msg = orgId ? `${baseMsg} or share your orgId (${orgId}) in ${{ VERSION: "0.2.55", BUILD_TIME: "1970-01-01T00:00:00.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.55", BUILD_TIME: "1970-01-01T00:00:00.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.`;
322388
+ const msg = orgId ? `${baseMsg} or share your orgId (${orgId}) in ${{ VERSION: "0.2.56", BUILD_TIME: "1970-01-01T00:00:00.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.56", BUILD_TIME: "1970-01-01T00:00:00.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.`;
322379
322389
  return createAssistantAPIErrorMessage({
322380
322390
  content: msg,
322381
322391
  error: "invalid_request"
@@ -330299,7 +330309,7 @@ async function submitTranscriptShare(messages, trigger, appearanceId) {
330299
330309
  } catch {}
330300
330310
  const data = {
330301
330311
  trigger,
330302
- version: { VERSION: "0.2.55", BUILD_TIME: "1970-01-01T00:00:00.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,
330312
+ version: { VERSION: "0.2.56", BUILD_TIME: "1970-01-01T00:00:00.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,
330303
330313
  platform: process.platform,
330304
330314
  transcript,
330305
330315
  subagentTranscripts: Object.keys(subagentTranscripts).length > 0 ? subagentTranscripts : undefined,
@@ -330504,10 +330514,10 @@ Si el usuario indic\xF3 una duraci\xF3n, p\xE1sala en el par\xE1metro \`duration
330504
330514
 
330505
330515
  // commands/issue/index.ts
330506
330516
  function getCliVersion() {
330507
- return { VERSION: "0.2.55", BUILD_TIME: "1970-01-01T00:00:00.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.55", BUILD_TIME: "1970-01-01T00:00:00.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";
330517
+ return { VERSION: "0.2.56", BUILD_TIME: "1970-01-01T00:00:00.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.56", BUILD_TIME: "1970-01-01T00:00:00.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";
330508
330518
  }
330509
330519
  function getIssuesExplainer() {
330510
- return { VERSION: "0.2.55", BUILD_TIME: "1970-01-01T00:00:00.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.55", BUILD_TIME: "1970-01-01T00:00:00.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";
330520
+ return { VERSION: "0.2.56", BUILD_TIME: "1970-01-01T00:00:00.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.56", BUILD_TIME: "1970-01-01T00:00:00.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";
330511
330521
  }
330512
330522
  function getActiveModelLabel() {
330513
330523
  try {
@@ -333340,7 +333350,7 @@ function buildPrimarySection() {
333340
333350
  });
333341
333351
  return [{
333342
333352
  label: "Version",
333343
- value: { VERSION: "0.2.55", BUILD_TIME: "1970-01-01T00:00:00.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
333353
+ value: { VERSION: "0.2.56", BUILD_TIME: "1970-01-01T00:00:00.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
333344
333354
  }, {
333345
333355
  label: "Session name",
333346
333356
  value: nameValue
@@ -337156,7 +337166,7 @@ function Config({
337156
337166
  }
337157
337167
  })
337158
337168
  }) : showSubmenu === "ChannelDowngrade" ? /* @__PURE__ */ jsx_runtime189.jsx(ChannelDowngradeDialog, {
337159
- currentVersion: { VERSION: "0.2.55", BUILD_TIME: "1970-01-01T00:00:00.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,
337169
+ currentVersion: { VERSION: "0.2.56", BUILD_TIME: "1970-01-01T00:00:00.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,
337160
337170
  onChoice: (choice) => {
337161
337171
  setShowSubmenu(null);
337162
337172
  setTabsHidden(false);
@@ -337168,7 +337178,7 @@ function Config({
337168
337178
  autoUpdatesChannel: "stable"
337169
337179
  };
337170
337180
  if (choice === "stay") {
337171
- newSettings.minimumVersion = { VERSION: "0.2.55", BUILD_TIME: "1970-01-01T00:00:00.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;
337181
+ newSettings.minimumVersion = { VERSION: "0.2.56", BUILD_TIME: "1970-01-01T00:00:00.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;
337172
337182
  }
337173
337183
  updateSettingsForSource("userSettings", newSettings);
337174
337184
  setSettingsData((prev_27) => ({
@@ -345413,7 +345423,7 @@ function HelpV2(t0) {
345413
345423
  let t6;
345414
345424
  if ($2[31] !== tabs) {
345415
345425
  t6 = /* @__PURE__ */ jsx_runtime217.jsx(Tabs, {
345416
- title: `Theus v${{ VERSION: "0.2.55", BUILD_TIME: "1970-01-01T00:00:00.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}`,
345426
+ title: `Theus v${{ VERSION: "0.2.56", BUILD_TIME: "1970-01-01T00:00:00.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}`,
345417
345427
  color: "professionalBlue",
345418
345428
  defaultTab: "general",
345419
345429
  children: tabs
@@ -363665,7 +363675,7 @@ function Onboarding({
363665
363675
  flexDirection: "column",
363666
363676
  children: [
363667
363677
  /* @__PURE__ */ jsx_runtime250.jsx(TheusBanner, {
363668
- version: { VERSION: "0.2.55", BUILD_TIME: "1970-01-01T00:00:00.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
363678
+ version: { VERSION: "0.2.56", BUILD_TIME: "1970-01-01T00:00:00.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
363669
363679
  }),
363670
363680
  /* @__PURE__ */ jsx_runtime250.jsxs(ThemedBox_default, {
363671
363681
  flexDirection: "column",
@@ -363896,6 +363906,26 @@ function safeAccessToken() {
363896
363906
  return;
363897
363907
  }
363898
363908
  }
363909
+ async function freshAccessToken() {
363910
+ try {
363911
+ await checkAndRefreshOAuthTokenIfNeeded();
363912
+ } catch {}
363913
+ const tokens = (() => {
363914
+ try {
363915
+ return getTheusAIOAuthTokens();
363916
+ } catch {
363917
+ return null;
363918
+ }
363919
+ })();
363920
+ const token = tokens?.accessToken;
363921
+ if (!token)
363922
+ return;
363923
+ const exp = tokens?.expiresAt;
363924
+ if (typeof exp === "number" && Number.isFinite(exp) && exp <= Date.now()) {
363925
+ return;
363926
+ }
363927
+ return token;
363928
+ }
363899
363929
  function safeIsSubscriber() {
363900
363930
  try {
363901
363931
  return isTheusAISubscriber();
@@ -363957,12 +363987,57 @@ async function fetchCheckoutUrl(token, pack) {
363957
363987
  },
363958
363988
  body: JSON.stringify({ pack })
363959
363989
  });
363960
- if (!res.ok)
363961
- return null;
363962
- const data = await res.json().catch(() => null);
363963
- return typeof data?.checkout_url === "string" && data.checkout_url.length > 0 ? data.checkout_url : null;
363990
+ const cuerpo = await res.json().catch(() => null);
363991
+ if (res.ok) {
363992
+ const url3 = cuerpo?.checkout_url;
363993
+ if (typeof url3 === "string" && url3.length > 0)
363994
+ return { ok: true, url: url3 };
363995
+ return {
363996
+ ok: false,
363997
+ motivo: "El servidor no devolvi\xF3 un enlace de pago.",
363998
+ reintentable: true,
363999
+ requiereLogin: false
364000
+ };
364001
+ }
364002
+ const codigo = String(cuerpo?.error ?? "");
364003
+ const detalle = String(cuerpo?.error_description ?? "").trim();
364004
+ if (res.status === 401 || codigo === "login_required") {
364005
+ return {
364006
+ ok: false,
364007
+ motivo: "Tu sesi\xF3n caduc\xF3. Vuelve a iniciar sesi\xF3n con /login y reintenta.",
364008
+ reintentable: false,
364009
+ requiereLogin: true
364010
+ };
364011
+ }
364012
+ if (res.status === 409) {
364013
+ return {
364014
+ ok: false,
364015
+ motivo: detalle || "Alcanzaste el m\xE1ximo de packs de este ciclo.",
364016
+ reintentable: false,
364017
+ requiereLogin: false
364018
+ };
364019
+ }
364020
+ if (res.status === 503) {
364021
+ return {
364022
+ ok: false,
364023
+ motivo: detalle || "La recarga no est\xE1 disponible ahora mismo.",
364024
+ reintentable: false,
364025
+ requiereLogin: false
364026
+ };
364027
+ }
364028
+ return {
364029
+ ok: false,
364030
+ motivo: detalle || `El servidor respondi\xF3 ${res.status}.`,
364031
+ reintentable: res.status >= 500,
364032
+ requiereLogin: false
364033
+ };
363964
364034
  } catch {
363965
- return null;
364035
+ return {
364036
+ ok: false,
364037
+ motivo: "No pude contactar con el servidor. Comprueba tu conexi\xF3n.",
364038
+ reintentable: true,
364039
+ requiereLogin: false
364040
+ };
363966
364041
  }
363967
364042
  }
363968
364043
  function formatCreditos(n2) {
@@ -364165,7 +364240,7 @@ function RecargaUI({
364165
364240
  import_react149.useEffect(() => {
364166
364241
  let vivo = true;
364167
364242
  (async () => {
364168
- const token = safeAccessToken();
364243
+ const token = await freshAccessToken();
364169
364244
  if (!token) {
364170
364245
  if (vivo)
364171
364246
  setFase({ t: "sin-sesion" });
@@ -364201,25 +364276,28 @@ function RecargaUI({
364201
364276
  const pack = estado.packs[index];
364202
364277
  if (!pack)
364203
364278
  return;
364204
- const token = safeAccessToken();
364279
+ const token = await freshAccessToken();
364205
364280
  if (!token) {
364206
364281
  setFase({ t: "sin-sesion" });
364207
364282
  return;
364208
364283
  }
364284
+ if (cancelRef.current)
364285
+ return;
364209
364286
  setFase({ t: "abriendo" });
364210
364287
  try {
364211
364288
  logEvent("tengu_recarga_checkout_abierto", { pack: pack.id });
364212
364289
  } catch {}
364213
- const url3 = await fetchCheckoutUrl(token, pack.id);
364290
+ const res = await fetchCheckoutUrl(token, pack.id);
364214
364291
  if (cancelRef.current)
364215
364292
  return;
364216
- if (!url3) {
364293
+ if (!res.ok) {
364217
364294
  setFase({
364218
364295
  t: "error",
364219
- mensaje: `No pude abrir el checkout de ${pack.nombre} ahora mismo. No se cobr\xF3 nada; int\xE9ntalo en unos minutos.`
364296
+ mensaje: `${res.motivo} No se cobr\xF3 nada.` + (res.reintentable ? " Puedes reintentarlo." : "")
364220
364297
  });
364221
364298
  return;
364222
364299
  }
364300
+ const url3 = res.url;
364223
364301
  const abierto = await openBrowser(url3);
364224
364302
  if (cancelRef.current)
364225
364303
  return;
@@ -364317,17 +364395,58 @@ function RecargaUI({
364317
364395
  });
364318
364396
  }
364319
364397
  if (fase.t === "sin-sesion") {
364398
+ const caducada = safeAccessToken() !== undefined;
364320
364399
  return /* @__PURE__ */ jsx_runtime253.jsxs(ThemedBox_default, {
364321
364400
  flexDirection: "column",
364322
364401
  marginTop: 1,
364323
364402
  paddingLeft: 1,
364324
364403
  children: [
364325
- /* @__PURE__ */ jsx_runtime253.jsx(ThemedText, {
364326
- children: "A\xFAn no has iniciado sesi\xF3n."
364404
+ /* @__PURE__ */ jsx_runtime253.jsxs(ThemedBox_default, {
364405
+ children: [
364406
+ /* @__PURE__ */ jsx_runtime253.jsxs(ThemedText, {
364407
+ color: "warning",
364408
+ bold: true,
364409
+ children: [
364410
+ "\xB7",
364411
+ " "
364412
+ ]
364413
+ }),
364414
+ /* @__PURE__ */ jsx_runtime253.jsx(ThemedText, {
364415
+ bold: true,
364416
+ children: caducada ? "Tu sesi\xF3n caduc\xF3" : "A\xFAn no has iniciado sesi\xF3n"
364417
+ })
364418
+ ]
364327
364419
  }),
364328
- /* @__PURE__ */ jsx_runtime253.jsx(ThemedText, {
364329
- dimColor: true,
364330
- children: "Para recargar cr\xE9ditos: theus auth login"
364420
+ /* @__PURE__ */ jsx_runtime253.jsx(ThemedBox_default, {
364421
+ marginTop: 1,
364422
+ children: /* @__PURE__ */ jsx_runtime253.jsx(ThemedText, {
364423
+ dimColor: true,
364424
+ children: caducada ? "Para comprar cr\xE9ditos hace falta una sesi\xF3n v\xE1lida. No se cobr\xF3 nada." : "Para recargar cr\xE9ditos necesitas una sesi\xF3n de Theus."
364425
+ })
364426
+ }),
364427
+ /* @__PURE__ */ jsx_runtime253.jsx(ThemedBox_default, {
364428
+ marginTop: 1,
364429
+ children: /* @__PURE__ */ jsx_runtime253.jsxs(ThemedText, {
364430
+ children: [
364431
+ " ",
364432
+ /* @__PURE__ */ jsx_runtime253.jsx(ThemedText, {
364433
+ color: VIOLETA,
364434
+ bold: true,
364435
+ children: "/login"
364436
+ }),
364437
+ /* @__PURE__ */ jsx_runtime253.jsx(ThemedText, {
364438
+ dimColor: true,
364439
+ children: " (o: theus auth login)"
364440
+ })
364441
+ ]
364442
+ })
364443
+ }),
364444
+ /* @__PURE__ */ jsx_runtime253.jsx(ThemedBox_default, {
364445
+ marginTop: 1,
364446
+ children: /* @__PURE__ */ jsx_runtime253.jsx(ThemedText, {
364447
+ dimColor: true,
364448
+ children: "Despu\xE9s vuelve a ejecutar /recarga. Esc para cerrar."
364449
+ })
364331
364450
  })
364332
364451
  ]
364333
364452
  });
@@ -364658,11 +364777,18 @@ function parseArgs2(raw) {
364658
364777
  return { packId, confirmar };
364659
364778
  }
364660
364779
  var call33 = async (args) => {
364661
- const token = safeAccessToken();
364780
+ const token = await freshAccessToken();
364662
364781
  if (!token) {
364782
+ const caducada = safeAccessToken() !== undefined;
364663
364783
  return {
364664
364784
  type: "text",
364665
- value: ["A\xFAn no has iniciado sesi\xF3n. Para recargar cr\xE9ditos:", " theus auth login"].join(`
364785
+ value: [
364786
+ caducada ? "Tu sesi\xF3n caduc\xF3. Para comprar cr\xE9ditos hace falta una sesi\xF3n v\xE1lida (no se cobr\xF3 nada)." : "A\xFAn no has iniciado sesi\xF3n.",
364787
+ "",
364788
+ " theus auth login",
364789
+ "",
364790
+ "Despu\xE9s vuelve a ejecutar la recarga."
364791
+ ].join(`
364666
364792
  `)
364667
364793
  };
364668
364794
  }
@@ -364722,13 +364848,20 @@ var call33 = async (args) => {
364722
364848
  `)
364723
364849
  };
364724
364850
  }
364725
- const checkoutUrl = await fetchCheckoutUrl(token, packId);
364726
- if (!checkoutUrl) {
364851
+ const res = await fetchCheckoutUrl(token, packId);
364852
+ if (!res.ok) {
364727
364853
  return {
364728
364854
  type: "text",
364729
- value: `No pude generar el checkout de Stripe para ${pack.nombre} ahora mismo. Intenta de nuevo en unos minutos.`
364855
+ value: [
364856
+ `No pude generar el pago de ${pack.nombre}. No se cobr\xF3 nada.`,
364857
+ "",
364858
+ res.motivo,
364859
+ ...res.requiereLogin ? ["", " theus auth login"] : []
364860
+ ].join(`
364861
+ `)
364730
364862
  };
364731
364863
  }
364864
+ const checkoutUrl = res.url;
364732
364865
  const opened = await openBrowser(checkoutUrl);
364733
364866
  return {
364734
364867
  type: "text",
@@ -364894,9 +365027,9 @@ function getAllReleaseNotes(changelogContent = getStoredChangelogFromMemory()) {
364894
365027
  return [];
364895
365028
  }
364896
365029
  }
364897
- async function checkForReleaseNotes(lastSeenVersion, currentVersion = { VERSION: "0.2.55", BUILD_TIME: "1970-01-01T00:00:00.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) {
365030
+ async function checkForReleaseNotes(lastSeenVersion, currentVersion = { VERSION: "0.2.56", BUILD_TIME: "1970-01-01T00:00:00.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) {
364898
365031
  if (process.env.USER_TYPE === "ant") {
364899
- const changelog = { VERSION: "0.2.55", BUILD_TIME: "1970-01-01T00:00:00.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;
365032
+ const changelog = { VERSION: "0.2.56", BUILD_TIME: "1970-01-01T00:00:00.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;
364900
365033
  if (changelog) {
364901
365034
  const commits = changelog.trim().split(`
364902
365035
  `).filter(Boolean);
@@ -369098,7 +369231,7 @@ var init_Messages = __esm(() => {
369098
369231
  let t1;
369099
369232
  if ($2[0] === Symbol.for("react.memo_cache_sentinel")) {
369100
369233
  t1 = /* @__PURE__ */ jsx_runtime263.jsx(TheusSessionHeader, {
369101
- version: { VERSION: "0.2.55", BUILD_TIME: "1970-01-01T00:00:00.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
369234
+ version: { VERSION: "0.2.56", BUILD_TIME: "1970-01-01T00:00:00.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
369102
369235
  });
369103
369236
  $2[0] = t1;
369104
369237
  } else {
@@ -397922,7 +398055,7 @@ async function captureMemoryDiagnostics(trigger, dumpNumber = 0) {
397922
398055
  smapsRollup,
397923
398056
  platform: process.platform,
397924
398057
  nodeVersion: process.version,
397925
- ccVersion: { VERSION: "0.2.55", BUILD_TIME: "1970-01-01T00:00:00.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
398058
+ ccVersion: { VERSION: "0.2.56", BUILD_TIME: "1970-01-01T00:00:00.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
397926
398059
  };
397927
398060
  }
397928
398061
  async function performHeapDump(trigger = "manual", dumpNumber = 0) {
@@ -398741,7 +398874,7 @@ var init_bridge_kick = __esm(() => {
398741
398874
  var call65 = async () => {
398742
398875
  return {
398743
398876
  type: "text",
398744
- value: { VERSION: "0.2.55", BUILD_TIME: "1970-01-01T00:00:00.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.55", BUILD_TIME: "1970-01-01T00:00:00.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.55", BUILD_TIME: "1970-01-01T00:00:00.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.55", BUILD_TIME: "1970-01-01T00:00:00.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
398877
+ value: { VERSION: "0.2.56", BUILD_TIME: "1970-01-01T00:00:00.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.56", BUILD_TIME: "1970-01-01T00:00:00.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.56", BUILD_TIME: "1970-01-01T00:00:00.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.56", BUILD_TIME: "1970-01-01T00:00:00.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
398745
398878
  };
398746
398879
  }, version2, version_default;
398747
398880
  var init_version = __esm(() => {
@@ -401342,7 +401475,7 @@ var SECRET_NAME_PATTERN, EXTRA_ENV_ALLOWLIST, REDACTED2 = "\u2039oculto\u203A",
401342
401475
  const lines = [];
401343
401476
  lines.push("## Entorno de ejecuci\xF3n");
401344
401477
  lines.push("");
401345
- const version3 = { VERSION: "0.2.55", BUILD_TIME: "1970-01-01T00:00:00.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.55", BUILD_TIME: "1970-01-01T00:00:00.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";
401478
+ const version3 = { VERSION: "0.2.56", BUILD_TIME: "1970-01-01T00:00:00.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.56", BUILD_TIME: "1970-01-01T00:00:00.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";
401346
401479
  lines.push(`- Versi\xF3n de Theus: ${version3}`);
401347
401480
  lines.push(`- Directorio de trabajo: ${getCwd()}`);
401348
401481
  lines.push(`- \xBFRepositorio git?: ${isGit ? "s\xED" : "no"}`);
@@ -403853,13 +403986,13 @@ async function updateReleaseBundle() {
403853
403986
  await gracefulShutdown(1);
403854
403987
  return;
403855
403988
  }
403856
- if (gte({ VERSION: "0.2.55", BUILD_TIME: "1970-01-01T00:00:00.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)) {
403857
- writeToStdout(source_default.green(`Theus is up to date (${{ VERSION: "0.2.55", BUILD_TIME: "1970-01-01T00:00:00.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})`) + `
403989
+ if (gte({ VERSION: "0.2.56", BUILD_TIME: "1970-01-01T00:00:00.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)) {
403990
+ writeToStdout(source_default.green(`Theus is up to date (${{ VERSION: "0.2.56", BUILD_TIME: "1970-01-01T00:00:00.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})`) + `
403858
403991
  `);
403859
403992
  await gracefulShutdown(0);
403860
403993
  return;
403861
403994
  }
403862
- writeToStdout(`New version available: ${latest} (current: ${{ VERSION: "0.2.55", BUILD_TIME: "1970-01-01T00:00:00.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})
403995
+ writeToStdout(`New version available: ${latest} (current: ${{ VERSION: "0.2.56", BUILD_TIME: "1970-01-01T00:00:00.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})
403863
403996
  `);
403864
403997
  writeToStdout(`Installing update from theus.pe/dl...
403865
403998
  `);
@@ -403893,7 +404026,7 @@ async function updateReleaseBundle() {
403893
404026
  return;
403894
404027
  }
403895
404028
  cpSync(staged, bundleDir, { recursive: true, force: true });
403896
- writeToStdout(source_default.green(`Successfully updated from ${{ VERSION: "0.2.55", BUILD_TIME: "1970-01-01T00:00:00.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}`) + `
404029
+ writeToStdout(source_default.green(`Successfully updated from ${{ VERSION: "0.2.56", BUILD_TIME: "1970-01-01T00:00:00.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}`) + `
403897
404030
  `);
403898
404031
  await regenerateCompletionCache();
403899
404032
  } finally {
@@ -403906,7 +404039,7 @@ async function updateReleaseBundle() {
403906
404039
  async function update() {
403907
404040
  logEvent("tengu_update_check", {});
403908
404041
  await updateNaupa();
403909
- writeToStdout(`Current version: ${{ VERSION: "0.2.55", BUILD_TIME: "1970-01-01T00:00:00.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}
404042
+ writeToStdout(`Current version: ${{ VERSION: "0.2.56", BUILD_TIME: "1970-01-01T00:00:00.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}
403910
404043
  `);
403911
404044
  const channel2 = getInitialSettings()?.autoUpdatesChannel ?? "latest";
403912
404045
  writeToStdout(`Checking for updates to ${channel2} version...
@@ -403985,8 +404118,8 @@ async function update() {
403985
404118
  writeToStdout(`Theus is managed by Homebrew.
403986
404119
  `);
403987
404120
  const latest = await getLatestVersion(channel2);
403988
- if (latest && !gte({ VERSION: "0.2.55", BUILD_TIME: "1970-01-01T00:00:00.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)) {
403989
- writeToStdout(`Update available: ${{ VERSION: "0.2.55", BUILD_TIME: "1970-01-01T00:00:00.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}
404121
+ if (latest && !gte({ VERSION: "0.2.56", BUILD_TIME: "1970-01-01T00:00:00.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)) {
404122
+ writeToStdout(`Update available: ${{ VERSION: "0.2.56", BUILD_TIME: "1970-01-01T00:00:00.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}
403990
404123
  `);
403991
404124
  writeToStdout(`
403992
404125
  `);
@@ -404002,8 +404135,8 @@ async function update() {
404002
404135
  writeToStdout(`Theus is managed by winget.
404003
404136
  `);
404004
404137
  const latest = await getLatestVersion(channel2);
404005
- if (latest && !gte({ VERSION: "0.2.55", BUILD_TIME: "1970-01-01T00:00:00.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)) {
404006
- writeToStdout(`Update available: ${{ VERSION: "0.2.55", BUILD_TIME: "1970-01-01T00:00:00.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}
404138
+ if (latest && !gte({ VERSION: "0.2.56", BUILD_TIME: "1970-01-01T00:00:00.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.56", BUILD_TIME: "1970-01-01T00:00:00.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}
404007
404140
  `);
404008
404141
  writeToStdout(`
404009
404142
  `);
@@ -404019,8 +404152,8 @@ async function update() {
404019
404152
  writeToStdout(`Theus is managed by apk.
404020
404153
  `);
404021
404154
  const latest = await getLatestVersion(channel2);
404022
- if (latest && !gte({ VERSION: "0.2.55", BUILD_TIME: "1970-01-01T00:00:00.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)) {
404023
- writeToStdout(`Update available: ${{ VERSION: "0.2.55", BUILD_TIME: "1970-01-01T00:00:00.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}
404155
+ if (latest && !gte({ VERSION: "0.2.56", BUILD_TIME: "1970-01-01T00:00:00.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.56", BUILD_TIME: "1970-01-01T00:00:00.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}
404024
404157
  `);
404025
404158
  writeToStdout(`
404026
404159
  `);
@@ -404085,11 +404218,11 @@ async function update() {
404085
404218
  `);
404086
404219
  await gracefulShutdown(1);
404087
404220
  }
404088
- if (result.latestVersion === { VERSION: "0.2.55", BUILD_TIME: "1970-01-01T00:00:00.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) {
404089
- writeToStdout(source_default.green(`Theus is up to date (${{ VERSION: "0.2.55", BUILD_TIME: "1970-01-01T00:00:00.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})`) + `
404221
+ if (result.latestVersion === { VERSION: "0.2.56", BUILD_TIME: "1970-01-01T00:00:00.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) {
404222
+ writeToStdout(source_default.green(`Theus is up to date (${{ VERSION: "0.2.56", BUILD_TIME: "1970-01-01T00:00:00.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})`) + `
404090
404223
  `);
404091
404224
  } else {
404092
- writeToStdout(source_default.green(`Successfully updated from ${{ VERSION: "0.2.55", BUILD_TIME: "1970-01-01T00:00:00.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}`) + `
404225
+ writeToStdout(source_default.green(`Successfully updated from ${{ VERSION: "0.2.56", BUILD_TIME: "1970-01-01T00:00:00.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}`) + `
404093
404226
  `);
404094
404227
  await regenerateCompletionCache();
404095
404228
  }
@@ -404108,9 +404241,9 @@ async function update() {
404108
404241
  await removeInstalledSymlink();
404109
404242
  }
404110
404243
  logForDebugging("update: Checking npm registry for latest version");
404111
- logForDebugging(`update: Package URL: ${{ VERSION: "0.2.55", BUILD_TIME: "1970-01-01T00:00:00.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}`);
404244
+ logForDebugging(`update: Package URL: ${{ VERSION: "0.2.56", BUILD_TIME: "1970-01-01T00:00:00.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}`);
404112
404245
  const npmTag = channel2 === "stable" ? "stable" : "latest";
404113
- const npmCommand = `npm view ${{ VERSION: "0.2.55", BUILD_TIME: "1970-01-01T00:00:00.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`;
404246
+ const npmCommand = `npm view ${{ VERSION: "0.2.56", BUILD_TIME: "1970-01-01T00:00:00.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`;
404114
404247
  logForDebugging(`update: Running: ${npmCommand}`);
404115
404248
  const latestVersion = await getLatestVersion(channel2);
404116
404249
  logForDebugging(`update: Latest version from npm: ${latestVersion || "FAILED"}`);
@@ -404130,7 +404263,7 @@ async function update() {
404130
404263
  `);
404131
404264
  process.stderr.write(` \u2022 Corporate proxy/firewall blocking npm
404132
404265
  `);
404133
- if ({ VERSION: "0.2.55", BUILD_TIME: "1970-01-01T00:00:00.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.55", BUILD_TIME: "1970-01-01T00:00:00.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")) {
404266
+ if ({ VERSION: "0.2.56", BUILD_TIME: "1970-01-01T00:00:00.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.56", BUILD_TIME: "1970-01-01T00:00:00.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")) {
404134
404267
  process.stderr.write(` \u2022 Internal/development build not published to npm
404135
404268
  `);
404136
404269
  }
@@ -404142,19 +404275,19 @@ async function update() {
404142
404275
  `);
404143
404276
  process.stderr.write(` \u2022 Run with --debug flag for more details
404144
404277
  `);
404145
- const packageName = { VERSION: "0.2.55", BUILD_TIME: "1970-01-01T00:00:00.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");
404278
+ const packageName = { VERSION: "0.2.56", BUILD_TIME: "1970-01-01T00:00:00.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");
404146
404279
  process.stderr.write(` \u2022 Manually check: npm view ${packageName} version
404147
404280
  `);
404148
404281
  process.stderr.write(` \u2022 Check if you need to login: npm whoami
404149
404282
  `);
404150
404283
  await gracefulShutdown(1);
404151
404284
  }
404152
- if (gte({ VERSION: "0.2.55", BUILD_TIME: "1970-01-01T00:00:00.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)) {
404153
- writeToStdout(source_default.green(`Theus is up to date (${{ VERSION: "0.2.55", BUILD_TIME: "1970-01-01T00:00:00.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})`) + `
404285
+ if (gte({ VERSION: "0.2.56", BUILD_TIME: "1970-01-01T00:00:00.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)) {
404286
+ writeToStdout(source_default.green(`Theus is up to date (${{ VERSION: "0.2.56", BUILD_TIME: "1970-01-01T00:00:00.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})`) + `
404154
404287
  `);
404155
404288
  await gracefulShutdown(0);
404156
404289
  }
404157
- writeToStdout(`New version available: ${latestVersion} (current: ${{ VERSION: "0.2.55", BUILD_TIME: "1970-01-01T00:00:00.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})
404290
+ writeToStdout(`New version available: ${latestVersion} (current: ${{ VERSION: "0.2.56", BUILD_TIME: "1970-01-01T00:00:00.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})
404158
404291
  `);
404159
404292
  writeToStdout(`Installing update...
404160
404293
  `);
@@ -404199,7 +404332,7 @@ async function update() {
404199
404332
  logForDebugging(`update: Installation status: ${status2}`);
404200
404333
  switch (status2) {
404201
404334
  case "success":
404202
- writeToStdout(source_default.green(`Successfully updated from ${{ VERSION: "0.2.55", BUILD_TIME: "1970-01-01T00:00:00.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}`) + `
404335
+ writeToStdout(source_default.green(`Successfully updated from ${{ VERSION: "0.2.56", BUILD_TIME: "1970-01-01T00:00:00.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}`) + `
404203
404336
  `);
404204
404337
  await regenerateCompletionCache();
404205
404338
  break;
@@ -404209,7 +404342,7 @@ async function update() {
404209
404342
  if (useLocalUpdate) {
404210
404343
  process.stderr.write(`Try manually updating with:
404211
404344
  `);
404212
- process.stderr.write(` cd ~/.theus/local && npm update ${{ VERSION: "0.2.55", BUILD_TIME: "1970-01-01T00:00:00.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}
404345
+ process.stderr.write(` cd ~/.theus/local && npm update ${{ VERSION: "0.2.56", BUILD_TIME: "1970-01-01T00:00:00.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}
404213
404346
  `);
404214
404347
  } else {
404215
404348
  process.stderr.write(`Try running with sudo or fix npm permissions
@@ -404225,7 +404358,7 @@ async function update() {
404225
404358
  if (useLocalUpdate) {
404226
404359
  process.stderr.write(`Try manually updating with:
404227
404360
  `);
404228
- process.stderr.write(` cd ~/.theus/local && npm update ${{ VERSION: "0.2.55", BUILD_TIME: "1970-01-01T00:00:00.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}
404361
+ process.stderr.write(` cd ~/.theus/local && npm update ${{ VERSION: "0.2.56", BUILD_TIME: "1970-01-01T00:00:00.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}
404229
404362
  `);
404230
404363
  } else {
404231
404364
  process.stderr.write(`Or consider using native installation with: theus install
@@ -414065,7 +414198,7 @@ var init_sessionStorage = __esm(() => {
414065
414198
  init_settings2();
414066
414199
  init_slowOperations();
414067
414200
  init_uuid();
414068
- VERSION4 = { VERSION: "0.2.55", BUILD_TIME: "1970-01-01T00:00:00.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;
414201
+ VERSION4 = { VERSION: "0.2.56", BUILD_TIME: "1970-01-01T00:00:00.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;
414069
414202
  MAX_TOMBSTONE_REWRITE_BYTES = 50 * 1024 * 1024;
414070
414203
  SKIP_FIRST_PROMPT_PATTERN2 = /^(?:\s*<[a-z][\w-]*[\s>]|\[Request interrupted by user[^\]]*\])/;
414071
414204
  EPHEMERAL_PROGRESS_TYPES = new Set([
@@ -415270,7 +415403,7 @@ var init_filesystem = __esm(() => {
415270
415403
  });
415271
415404
  getBundledSkillsRoot = memoize_default(function getBundledSkillsRoot2() {
415272
415405
  const nonce = randomBytes21(16).toString("hex");
415273
- return join150(getTheusTempDir(), "bundled-skills", { VERSION: "0.2.55", BUILD_TIME: "1970-01-01T00:00:00.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);
415406
+ return join150(getTheusTempDir(), "bundled-skills", { VERSION: "0.2.56", BUILD_TIME: "1970-01-01T00:00:00.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);
415274
415407
  });
415275
415408
  getResolvedWorkingDirPaths = memoize_default(getPathsForPermissionCheck);
415276
415409
  });
@@ -420449,7 +420582,7 @@ function getSimpleDoingTasksSection() {
420449
420582
  ];
420450
420583
  const userHelpSubitems = [
420451
420584
  `/help: Get help with using Theus`,
420452
- `To give feedback, users should ${{ VERSION: "0.2.55", BUILD_TIME: "1970-01-01T00:00:00.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}`
420585
+ `To give feedback, users should ${{ VERSION: "0.2.56", BUILD_TIME: "1970-01-01T00:00:00.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}`
420453
420586
  ];
420454
420587
  const items = [
420455
420588
  `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.`,
@@ -421349,7 +421482,7 @@ function computeFingerprint(messageText, version3) {
421349
421482
  }
421350
421483
  function computeFingerprintFromMessages(messages) {
421351
421484
  const firstMessageText = extractFirstMessageText(messages);
421352
- return computeFingerprint(firstMessageText, { VERSION: "0.2.55", BUILD_TIME: "1970-01-01T00:00:00.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);
421485
+ return computeFingerprint(firstMessageText, { VERSION: "0.2.56", BUILD_TIME: "1970-01-01T00:00:00.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);
421353
421486
  }
421354
421487
  var FINGERPRINT_SALT = "59cf53e54c78";
421355
421488
  var init_fingerprint = () => {};
@@ -423972,7 +424105,7 @@ async function sideQuery(opts) {
423972
424105
  betas.push(STRUCTURED_OUTPUTS_BETA_HEADER);
423973
424106
  }
423974
424107
  const messageText = extractFirstUserMessageText(messages);
423975
- const fingerprint = computeFingerprint(messageText, { VERSION: "0.2.55", BUILD_TIME: "1970-01-01T00:00:00.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);
424108
+ const fingerprint = computeFingerprint(messageText, { VERSION: "0.2.56", BUILD_TIME: "1970-01-01T00:00:00.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);
423976
424109
  const attributionHeader = getAttributionHeader(fingerprint);
423977
424110
  const systemBlocks = [
423978
424111
  attributionHeader ? { type: "text", text: attributionHeader } : null,
@@ -425275,7 +425408,7 @@ async function handleMemories(state) {
425275
425408
  async function runProjectContextMcpServer() {
425276
425409
  const projectRoot = process.env.THEUS_PROJECT_ROOT || process.cwd();
425277
425410
  const state = new ProjectContextState(projectRoot);
425278
- const server2 = new Server({ name: SERVER_NAME, version: { VERSION: "0.2.55", BUILD_TIME: "1970-01-01T00:00:00.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: {} } });
425411
+ const server2 = new Server({ name: SERVER_NAME, version: { VERSION: "0.2.56", BUILD_TIME: "1970-01-01T00:00:00.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: {} } });
425279
425412
  server2.setRequestHandler(ListToolsRequestSchema, async () => ({
425280
425413
  tools: TOOL_DEFINITIONS.map((t) => ({
425281
425414
  name: t.name,
@@ -427257,7 +427390,7 @@ function createBridgeLogger(options2) {
427257
427390
  connectUrl = buildBridgeConnectUrl(environmentId, cachedIngressUrl);
427258
427391
  regenerateQr(connectUrl);
427259
427392
  if (verbose) {
427260
- write(source_default.dim(`Remote Control`) + ` v${{ VERSION: "0.2.55", BUILD_TIME: "1970-01-01T00:00:00.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}
427393
+ write(source_default.dim(`Remote Control`) + ` v${{ VERSION: "0.2.56", BUILD_TIME: "1970-01-01T00:00:00.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}
427261
427394
  `);
427262
427395
  }
427263
427396
  if (verbose) {
@@ -428230,7 +428363,7 @@ function appendToLog(path19, message) {
428230
428363
  cwd: getFsImplementation().cwd(),
428231
428364
  userType: process.env.USER_TYPE,
428232
428365
  sessionId: getSessionId(),
428233
- version: { VERSION: "0.2.55", BUILD_TIME: "1970-01-01T00:00:00.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
428366
+ version: { VERSION: "0.2.56", BUILD_TIME: "1970-01-01T00:00:00.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
428234
428367
  };
428235
428368
  getLogWriter(path19).write(messageWithTimestamp);
428236
428369
  }
@@ -429500,7 +429633,7 @@ Spawn mode for this project:
429500
429633
  const api2 = createBridgeApiClient({
429501
429634
  baseUrl,
429502
429635
  getAccessToken: getBridgeAccessToken2,
429503
- runnerVersion: { VERSION: "0.2.55", BUILD_TIME: "1970-01-01T00:00:00.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,
429636
+ runnerVersion: { VERSION: "0.2.56", BUILD_TIME: "1970-01-01T00:00:00.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,
429504
429637
  onDebug: logForDebugging,
429505
429638
  onAuth401: handleOAuth401Error2,
429506
429639
  getTrustedDeviceToken
@@ -429738,7 +429871,7 @@ async function runBridgeHeadless(opts, signal) {
429738
429871
  const api2 = createBridgeApiClient({
429739
429872
  baseUrl,
429740
429873
  getAccessToken: opts.getAccessToken,
429741
- runnerVersion: { VERSION: "0.2.55", BUILD_TIME: "1970-01-01T00:00:00.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,
429874
+ runnerVersion: { VERSION: "0.2.56", BUILD_TIME: "1970-01-01T00:00:00.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,
429742
429875
  onDebug: log2,
429743
429876
  onAuth401: opts.onAuth401,
429744
429877
  getTrustedDeviceToken
@@ -433804,7 +433937,7 @@ function buildSystemInitMessage(inputs) {
433804
433937
  slash_commands: inputs.commands.filter((c5) => c5.userInvocable !== false).map((c5) => c5.name),
433805
433938
  apiKeySource: getTheusApiKeyWithSource().source,
433806
433939
  betas: getSdkBetas(),
433807
- theus_code_version: { VERSION: "0.2.55", BUILD_TIME: "1970-01-01T00:00:00.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,
433940
+ theus_code_version: { VERSION: "0.2.56", BUILD_TIME: "1970-01-01T00:00:00.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,
433808
433941
  output_style: outputStyle2,
433809
433942
  agents: inputs.agents.map((agent) => agent.agentType),
433810
433943
  skills: inputs.skills.filter((s) => s.userInvocable !== false).map((skill) => skill.name),
@@ -433844,8 +433977,8 @@ async function getEnvLessBridgeConfig() {
433844
433977
  }
433845
433978
  async function checkEnvLessBridgeMinVersion() {
433846
433979
  const cfg = await getEnvLessBridgeConfig();
433847
- if (cfg.min_version && lt({ VERSION: "0.2.55", BUILD_TIME: "1970-01-01T00:00:00.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)) {
433848
- return `Your version of Theus (${{ VERSION: "0.2.55", BUILD_TIME: "1970-01-01T00:00:00.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.
433980
+ if (cfg.min_version && lt({ VERSION: "0.2.56", BUILD_TIME: "1970-01-01T00:00:00.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)) {
433981
+ return `Your version of Theus (${{ VERSION: "0.2.56", BUILD_TIME: "1970-01-01T00:00:00.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.
433849
433982
  Version ${cfg.min_version} or higher is required. Run \`theus update\` to update.`;
433850
433983
  }
433851
433984
  return null;
@@ -436169,7 +436302,7 @@ async function initBridgeCore(params) {
436169
436302
  const rawApi = createBridgeApiClient({
436170
436303
  baseUrl,
436171
436304
  getAccessToken,
436172
- runnerVersion: { VERSION: "0.2.55", BUILD_TIME: "1970-01-01T00:00:00.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,
436305
+ runnerVersion: { VERSION: "0.2.56", BUILD_TIME: "1970-01-01T00:00:00.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,
436173
436306
  onDebug: logForDebugging,
436174
436307
  onAuth401,
436175
436308
  getTrustedDeviceToken
@@ -452912,7 +453045,7 @@ var init_useVoiceEnabled = __esm(() => {
452912
453045
  function getSemverPart(version3) {
452913
453046
  return `${import_semver14.major(version3, { loose: true })}.${import_semver14.minor(version3, { loose: true })}.${import_semver14.patch(version3, { loose: true })}`;
452914
453047
  }
452915
- function useUpdateNotification(updatedVersion, initialVersion = { VERSION: "0.2.55", BUILD_TIME: "1970-01-01T00:00:00.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) {
453048
+ function useUpdateNotification(updatedVersion, initialVersion = { VERSION: "0.2.56", BUILD_TIME: "1970-01-01T00:00:00.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) {
452916
453049
  const [lastNotifiedSemver, setLastNotifiedSemver] = import_react233.useState(() => getSemverPart(initialVersion));
452917
453050
  if (!updatedVersion) {
452918
453051
  return null;
@@ -452952,7 +453085,7 @@ function AutoUpdater({
452952
453085
  return;
452953
453086
  }
452954
453087
  if (false) {}
452955
- const currentVersion = { VERSION: "0.2.55", BUILD_TIME: "1970-01-01T00:00:00.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;
453088
+ const currentVersion = { VERSION: "0.2.56", BUILD_TIME: "1970-01-01T00:00:00.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;
452956
453089
  const channel2 = getInitialSettings()?.autoUpdatesChannel ?? "latest";
452957
453090
  let latestVersion = await getLatestVersion(channel2);
452958
453091
  const isDisabled2 = isAutoUpdaterDisabled();
@@ -453088,7 +453221,7 @@ function AutoUpdater({
453088
453221
  " ",
453089
453222
  /* @__PURE__ */ jsx_runtime409.jsx(ThemedText, {
453090
453223
  bold: true,
453091
- children: hasLocalInstall ? `cd ~/.theus/local && npm update ${{ VERSION: "0.2.55", BUILD_TIME: "1970-01-01T00:00:00.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.55", BUILD_TIME: "1970-01-01T00:00:00.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}`
453224
+ children: hasLocalInstall ? `cd ~/.theus/local && npm update ${{ VERSION: "0.2.56", BUILD_TIME: "1970-01-01T00:00:00.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.56", BUILD_TIME: "1970-01-01T00:00:00.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}`
453092
453225
  })
453093
453226
  ]
453094
453227
  })
@@ -453165,12 +453298,12 @@ function NativeAutoUpdater({
453165
453298
  logEvent("tengu_native_auto_updater_start", {});
453166
453299
  try {
453167
453300
  const maxVersion = await getMaxVersion();
453168
- if (maxVersion && gt({ VERSION: "0.2.55", BUILD_TIME: "1970-01-01T00:00:00.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)) {
453301
+ if (maxVersion && gt({ VERSION: "0.2.56", BUILD_TIME: "1970-01-01T00:00:00.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)) {
453169
453302
  const msg = await getMaxVersionMessage();
453170
453303
  setMaxVersionIssue(msg ?? "affects your version");
453171
453304
  }
453172
453305
  const result = await installLatest(channel2);
453173
- const currentVersion = { VERSION: "0.2.55", BUILD_TIME: "1970-01-01T00:00:00.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;
453306
+ const currentVersion = { VERSION: "0.2.56", BUILD_TIME: "1970-01-01T00:00:00.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;
453174
453307
  const latencyMs = Date.now() - startTime2;
453175
453308
  if (result.lockFailed) {
453176
453309
  logEvent("tengu_native_auto_updater_lock_contention", {
@@ -453307,17 +453440,17 @@ function PackageManagerAutoUpdater(t0) {
453307
453440
  const maxVersion = await getMaxVersion();
453308
453441
  if (maxVersion && latest && gt(latest, maxVersion)) {
453309
453442
  logForDebugging(`PackageManagerAutoUpdater: maxVersion ${maxVersion} is set, capping update from ${latest} to ${maxVersion}`);
453310
- if (gte({ VERSION: "0.2.55", BUILD_TIME: "1970-01-01T00:00:00.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)) {
453311
- logForDebugging(`PackageManagerAutoUpdater: current version ${{ VERSION: "0.2.55", BUILD_TIME: "1970-01-01T00:00:00.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`);
453443
+ if (gte({ VERSION: "0.2.56", BUILD_TIME: "1970-01-01T00:00:00.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)) {
453444
+ logForDebugging(`PackageManagerAutoUpdater: current version ${{ VERSION: "0.2.56", BUILD_TIME: "1970-01-01T00:00:00.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`);
453312
453445
  setUpdateAvailable(false);
453313
453446
  return;
453314
453447
  }
453315
453448
  latest = maxVersion;
453316
453449
  }
453317
- const hasUpdate = latest && !gte({ VERSION: "0.2.55", BUILD_TIME: "1970-01-01T00:00:00.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);
453450
+ const hasUpdate = latest && !gte({ VERSION: "0.2.56", BUILD_TIME: "1970-01-01T00:00:00.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);
453318
453451
  setUpdateAvailable(!!hasUpdate);
453319
453452
  if (hasUpdate) {
453320
- logForDebugging(`PackageManagerAutoUpdater: Update available ${{ VERSION: "0.2.55", BUILD_TIME: "1970-01-01T00:00:00.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}`);
453453
+ logForDebugging(`PackageManagerAutoUpdater: Update available ${{ VERSION: "0.2.56", BUILD_TIME: "1970-01-01T00:00:00.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}`);
453321
453454
  }
453322
453455
  };
453323
453456
  $2[0] = t1;
@@ -453351,7 +453484,7 @@ function PackageManagerAutoUpdater(t0) {
453351
453484
  wrap: "truncate",
453352
453485
  children: [
453353
453486
  "currentVersion: ",
453354
- { VERSION: "0.2.55", BUILD_TIME: "1970-01-01T00:00:00.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
453487
+ { VERSION: "0.2.56", BUILD_TIME: "1970-01-01T00:00:00.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
453355
453488
  ]
453356
453489
  });
453357
453490
  $2[3] = verbose;
@@ -461225,7 +461358,7 @@ function buildStatusLineCommandInput(permissionMode, exceeds200kTokens, settings
461225
461358
  project_dir: getOriginalCwd(),
461226
461359
  added_dirs: addedDirs
461227
461360
  },
461228
- version: { VERSION: "0.2.55", BUILD_TIME: "1970-01-01T00:00:00.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,
461361
+ version: { VERSION: "0.2.56", BUILD_TIME: "1970-01-01T00:00:00.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,
461229
461362
  output_style: {
461230
461363
  name: outputStyleName
461231
461364
  },
@@ -485505,7 +485638,7 @@ function completeOnboarding() {
485505
485638
  saveGlobalConfig((current) => ({
485506
485639
  ...current,
485507
485640
  hasCompletedOnboarding: true,
485508
- lastOnboardingVersion: { VERSION: "0.2.55", BUILD_TIME: "1970-01-01T00:00:00.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
485641
+ lastOnboardingVersion: { VERSION: "0.2.56", BUILD_TIME: "1970-01-01T00:00:00.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
485509
485642
  }));
485510
485643
  }
485511
485644
  function showDialog(root2, renderer) {
@@ -496456,7 +496589,7 @@ async function startMCPServer(cwd3, debug3, verbose) {
496456
496589
  setCwd(cwd3);
496457
496590
  const server2 = new Server({
496458
496591
  name: "theus/tengu",
496459
- version: { VERSION: "0.2.55", BUILD_TIME: "1970-01-01T00:00:00.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
496592
+ version: { VERSION: "0.2.56", BUILD_TIME: "1970-01-01T00:00:00.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
496460
496593
  }, {
496461
496594
  capabilities: {
496462
496595
  tools: {}
@@ -497898,7 +498031,7 @@ async function setupTokenHandler(root2) {
497898
498031
  gap: 1,
497899
498032
  children: [
497900
498033
  /* @__PURE__ */ jsx_runtime495.jsx(TheusBanner, {
497901
- version: { VERSION: "0.2.55", BUILD_TIME: "1970-01-01T00:00:00.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
498034
+ version: { VERSION: "0.2.56", BUILD_TIME: "1970-01-01T00:00:00.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
497902
498035
  }),
497903
498036
  showAuthWarning && /* @__PURE__ */ jsx_runtime495.jsxs(ThemedBox_default, {
497904
498037
  flexDirection: "column",
@@ -499380,7 +499513,7 @@ ${assistantAddendum}` : assistantAddendum;
499380
499513
  }
499381
499514
  }
499382
499515
  logForDiagnosticsNoPII("info", "started", {
499383
- version: { VERSION: "0.2.55", BUILD_TIME: "1970-01-01T00:00:00.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,
499516
+ version: { VERSION: "0.2.56", BUILD_TIME: "1970-01-01T00:00:00.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,
499384
499517
  is_native_binary: isInBundledMode()
499385
499518
  });
499386
499519
  registerCleanup(async () => {
@@ -500248,7 +500381,7 @@ Usage: theus --remote "your task description"`, () => gracefulShutdown(1));
500248
500381
  pendingHookMessages
500249
500382
  }, renderAndRun);
500250
500383
  }
500251
- }).version(`${{ VERSION: "0.2.55", BUILD_TIME: "1970-01-01T00:00:00.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");
500384
+ }).version(`${{ VERSION: "0.2.56", BUILD_TIME: "1970-01-01T00:00:00.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");
500252
500385
  program2.option("-w, --worktree [name]", "Crea un nuevo worktree de git para esta sesi\xF3n (opcionalmente indica un nombre)");
500253
500386
  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.");
500254
500387
  if (canUserConfigureAdvisor()) {
@@ -500800,7 +500933,7 @@ if (false) {}
500800
500933
  async function main2() {
500801
500934
  const args = process.argv.slice(2);
500802
500935
  if (args.length === 1 && (args[0] === "--version" || args[0] === "-v" || args[0] === "-V")) {
500803
- console.log(`${{ VERSION: "0.2.55", BUILD_TIME: "1970-01-01T00:00:00.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)`);
500936
+ console.log(`${{ VERSION: "0.2.56", BUILD_TIME: "1970-01-01T00:00:00.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)`);
500804
500937
  return;
500805
500938
  }
500806
500939
  const {