theus-cli 0.2.52 → 0.2.53

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 +211 -147
  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.52", BUILD_TIME: "1970-01-01T00:00:00.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.53", BUILD_TIME: "1970-01-01T00:00:00.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.52", BUILD_TIME: "1970-01-01T00:00:00.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.53", BUILD_TIME: "1970-01-01T00:00:00.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.52", BUILD_TIME: "1970-01-01T00:00:00.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.53", BUILD_TIME: "1970-01-01T00:00:00.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.52", BUILD_TIME: "1970-01-01T00:00:00.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.53", BUILD_TIME: "1970-01-01T00:00:00.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.52", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.53", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.52", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.53", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.52", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.53", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.52", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.53", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.52", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.53", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.52", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.53", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.52", BUILD_TIME: "1970-01-01T00:00:00.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.53", BUILD_TIME: "1970-01-01T00:00:00.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.52", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.53", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.52", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.53", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.52", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.53", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.52", BUILD_TIME: "1970-01-01T00:00:00.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.53", BUILD_TIME: "1970-01-01T00:00:00.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
  }
@@ -167333,7 +167333,7 @@ function getTelemetryAttributes() {
167333
167333
  attributes["session.id"] = sessionId;
167334
167334
  }
167335
167335
  if (shouldIncludeAttribute("OTEL_METRICS_INCLUDE_VERSION")) {
167336
- attributes["app.version"] = { VERSION: "0.2.52", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION;
167336
+ attributes["app.version"] = { VERSION: "0.2.53", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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
167337
  }
167338
167338
  const oauthAccount = getOauthAccountInfo();
167339
167339
  if (oauthAccount) {
@@ -203217,7 +203217,7 @@ function getInstallationEnv() {
203217
203217
  return;
203218
203218
  }
203219
203219
  function getTheusCodeVersion() {
203220
- return { VERSION: "0.2.52", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION;
203220
+ return { VERSION: "0.2.53", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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
203221
  }
203222
203222
  async function getInstalledVSCodeExtensionVersion(command) {
203223
203223
  const { stdout } = await execFileNoThrow(command, ["--list-extensions", "--show-versions"], {
@@ -204735,7 +204735,7 @@ async function getMcpHeadersFromHelper(serverName, config2) {
204735
204735
  if ("scope" in config2 && isMcpServerFromProjectOrLocalSettings(config2) && !getIsNonInteractiveSession()) {
204736
204736
  const hasTrust = checkHasTrustDialogAccepted();
204737
204737
  if (!hasTrust) {
204738
- 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.52", BUILD_TIME: "1970-01-01T00:00:00.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}.`);
204738
+ 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.53", BUILD_TIME: "1970-01-01T00:00:00.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
204739
  logAntError("MCP headersHelper invoked before trust check", error40);
204740
204740
  logEvent("tengu_mcp_headersHelper_missing_trust", {});
204741
204741
  return null;
@@ -205945,7 +205945,7 @@ async function setupSdkMcpClients(sdkMcpConfigs, sendMcpMessage) {
205945
205945
  const client2 = new Client({
205946
205946
  name: "theus-code",
205947
205947
  title: "Theus",
205948
- version: { VERSION: "0.2.52", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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",
205948
+ version: { VERSION: "0.2.53", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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
205949
  description: "Theus's agentic coding tool",
205950
205950
  websiteUrl: PRODUCT_URL
205951
205951
  }, {
@@ -206299,7 +206299,7 @@ var init_client5 = __esm(() => {
206299
206299
  const client2 = new Client({
206300
206300
  name: "theus-code",
206301
206301
  title: "Theus",
206302
- version: { VERSION: "0.2.52", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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",
206302
+ version: { VERSION: "0.2.53", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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
206303
  description: "Theus's agentic coding tool",
206304
206304
  websiteUrl: PRODUCT_URL
206305
206305
  }, {
@@ -216878,7 +216878,7 @@ async function initializeBetaTracing(resource) {
216878
216878
  });
216879
216879
  logs.setGlobalLoggerProvider(loggerProvider);
216880
216880
  setLoggerProvider(loggerProvider);
216881
- const eventLogger = logs.getLogger("com.theus.theus_code.events", { VERSION: "0.2.52", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION);
216881
+ const eventLogger = logs.getLogger("com.theus.theus_code.events", { VERSION: "0.2.53", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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
216882
  setEventLogger(eventLogger);
216883
216883
  process.on("beforeExit", async () => {
216884
216884
  await loggerProvider?.forceFlush();
@@ -216918,7 +216918,7 @@ async function initializeTelemetry() {
216918
216918
  const platform4 = getPlatform();
216919
216919
  const baseAttributes = {
216920
216920
  [ATTR_SERVICE_NAME]: "theus-code",
216921
- [ATTR_SERVICE_VERSION]: { VERSION: "0.2.52", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
216921
+ [ATTR_SERVICE_VERSION]: { VERSION: "0.2.53", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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
216922
  };
216923
216923
  if (platform4 === "wsl") {
216924
216924
  const wslVersion = getWslVersion();
@@ -216963,7 +216963,7 @@ async function initializeTelemetry() {
216963
216963
  } catch {}
216964
216964
  };
216965
216965
  registerCleanup(shutdownTelemetry2);
216966
- return meterProvider2.getMeter("com.theus.theus_code", { VERSION: "0.2.52", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION);
216966
+ return meterProvider2.getMeter("com.theus.theus_code", { VERSION: "0.2.53", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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
216967
  }
216968
216968
  const meterProvider = new MeterProvider({
216969
216969
  resource,
@@ -216983,7 +216983,7 @@ async function initializeTelemetry() {
216983
216983
  });
216984
216984
  logs.setGlobalLoggerProvider(loggerProvider);
216985
216985
  setLoggerProvider(loggerProvider);
216986
- const eventLogger = logs.getLogger("com.theus.theus_code.events", { VERSION: "0.2.52", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION);
216986
+ const eventLogger = logs.getLogger("com.theus.theus_code.events", { VERSION: "0.2.53", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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
216987
  setEventLogger(eventLogger);
216988
216988
  logForDebugging("[3P telemetry] Event logger set successfully");
216989
216989
  process.on("beforeExit", async () => {
@@ -217045,7 +217045,7 @@ Current timeout: ${timeoutMs}ms
217045
217045
  }
217046
217046
  };
217047
217047
  registerCleanup(shutdownTelemetry);
217048
- return meterProvider.getMeter("com.theus.theus_code", { VERSION: "0.2.52", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION);
217048
+ return meterProvider.getMeter("com.theus.theus_code", { VERSION: "0.2.53", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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
217049
  }
217050
217050
  async function flushTelemetry() {
217051
217051
  const meterProvider = getMeterProvider();
@@ -217585,7 +217585,7 @@ async function installOrUpdateTheusPackage(channel2, specificVersion) {
217585
217585
  return "install_failed";
217586
217586
  }
217587
217587
  const versionSpec = specificVersion ? specificVersion : channel2 === "stable" ? "stable" : "latest";
217588
- const result = await execFileNoThrowWithCwd("npm", ["install", `${{ VERSION: "0.2.52", BUILD_TIME: "1970-01-01T00:00:00.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 });
217588
+ const result = await execFileNoThrowWithCwd("npm", ["install", `${{ VERSION: "0.2.53", BUILD_TIME: "1970-01-01T00:00:00.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
217589
  if (result.code !== 0) {
217590
217590
  const error40 = new Error(`Failed to install Theus CLI package: ${result.stderr}`);
217591
217591
  logError2(error40);
@@ -217731,9 +217731,9 @@ async function assertMinVersion() {
217731
217731
  if (false) {}
217732
217732
  try {
217733
217733
  const versionConfig = await getDynamicConfig_BLOCKS_ON_INIT("tengu_version_config", { minVersion: "0.0.0" });
217734
- if (versionConfig.minVersion && lt({ VERSION: "0.2.52", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
217734
+ if (versionConfig.minVersion && lt({ VERSION: "0.2.53", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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
217735
  console.error(`
217736
- It looks like your version of Theus (${{ VERSION: "0.2.52", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.
217736
+ It looks like your version of Theus (${{ VERSION: "0.2.53", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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
217737
  A newer version (${versionConfig.minVersion} or higher) is required to continue.
217738
217738
 
217739
217739
  To update, please run:
@@ -217874,7 +217874,7 @@ async function getInstallationPrefix() {
217874
217874
  return prefixResult.stdout.trim();
217875
217875
  }
217876
217876
  function getGlobalInstallPackageManager() {
217877
- if ({ VERSION: "0.2.52", BUILD_TIME: "1970-01-01T00:00:00.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") {
217877
+ if ({ VERSION: "0.2.53", BUILD_TIME: "1970-01-01T00:00:00.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
217878
  return "npm";
217879
217879
  }
217880
217880
  return env3.isRunningWithBun() ? "bun" : "npm";
@@ -217899,7 +217899,7 @@ async function checkGlobalInstallPermissions() {
217899
217899
  }
217900
217900
  async function getLatestVersion(channel2) {
217901
217901
  const npmTag = channel2 === "stable" ? "stable" : "latest";
217902
- const result = await execFileNoThrowWithCwd("npm", ["view", `${{ VERSION: "0.2.52", BUILD_TIME: "1970-01-01T00:00:00.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() });
217902
+ const result = await execFileNoThrowWithCwd("npm", ["view", `${{ VERSION: "0.2.53", BUILD_TIME: "1970-01-01T00:00:00.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
217903
  if (result.code !== 0) {
217904
217904
  logForDebugging(`npm view failed with code ${result.code}`);
217905
217905
  if (result.stderr) {
@@ -217915,7 +217915,7 @@ async function getLatestVersion(channel2) {
217915
217915
  return result.stdout.trim();
217916
217916
  }
217917
217917
  async function getNpmDistTags() {
217918
- const result = await execFileNoThrowWithCwd("npm", ["view", { VERSION: "0.2.52", BUILD_TIME: "1970-01-01T00:00:00.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() });
217918
+ const result = await execFileNoThrowWithCwd("npm", ["view", { VERSION: "0.2.53", BUILD_TIME: "1970-01-01T00:00:00.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
217919
  if (result.code !== 0) {
217920
217920
  logForDebugging(`npm view dist-tags failed with code ${result.code}`);
217921
217921
  return { latest: null, stable: null };
@@ -217955,7 +217955,7 @@ async function installGlobalPackage(specificVersion) {
217955
217955
  logError2(new AutoUpdaterError("Another process is currently installing an update"));
217956
217956
  logEvent("tengu_auto_updater_lock_contention", {
217957
217957
  pid: process.pid,
217958
- currentVersion: { VERSION: "0.2.52", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
217958
+ currentVersion: { VERSION: "0.2.53", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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
217959
  });
217960
217960
  return "in_progress";
217961
217961
  }
@@ -217964,7 +217964,7 @@ async function installGlobalPackage(specificVersion) {
217964
217964
  if (!env3.isRunningWithBun() && env3.isNpmFromWindowsPath()) {
217965
217965
  logError2(new Error("Windows NPM detected in WSL environment"));
217966
217966
  logEvent("tengu_auto_updater_windows_npm_in_wsl", {
217967
- currentVersion: { VERSION: "0.2.52", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
217967
+ currentVersion: { VERSION: "0.2.53", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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
217968
  });
217969
217969
  console.error(`
217970
217970
  Error: Windows NPM detected in WSL
@@ -217983,7 +217983,7 @@ To fix this issue:
217983
217983
  if (!hasPermissions) {
217984
217984
  return "no_permissions";
217985
217985
  }
217986
- const packageSpec = specificVersion ? `${{ VERSION: "0.2.52", BUILD_TIME: "1970-01-01T00:00:00.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.52", BUILD_TIME: "1970-01-01T00:00:00.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;
217986
+ const packageSpec = specificVersion ? `${{ VERSION: "0.2.53", BUILD_TIME: "1970-01-01T00:00:00.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.53", BUILD_TIME: "1970-01-01T00:00:00.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
217987
  const packageManager = getGlobalInstallPackageManager();
217988
217988
  const installResult = await execFileNoThrowWithCwd(packageManager, ["install", "-g", packageSpec], { cwd: homedir18() });
217989
217989
  if (installResult.code !== 0) {
@@ -218311,8 +218311,8 @@ async function detectMultipleInstallations() {
218311
218311
  installations.push({ type: "npm-local", path: localPath });
218312
218312
  }
218313
218313
  const packagesToCheck = ["@theus-ai/theus-code"];
218314
- if ({ VERSION: "0.2.52", BUILD_TIME: "1970-01-01T00:00:00.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.52", BUILD_TIME: "1970-01-01T00:00:00.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") {
218315
- packagesToCheck.push({ VERSION: "0.2.52", BUILD_TIME: "1970-01-01T00:00:00.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);
218314
+ if ({ VERSION: "0.2.53", BUILD_TIME: "1970-01-01T00:00:00.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.53", BUILD_TIME: "1970-01-01T00:00:00.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") {
218315
+ packagesToCheck.push({ VERSION: "0.2.53", BUILD_TIME: "1970-01-01T00:00:00.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);
218316
218316
  }
218317
218317
  const npmResult = await execFileNoThrow("npm", [
218318
218318
  "-g",
@@ -218495,7 +218495,7 @@ function detectLinuxGlobPatternWarnings() {
218495
218495
  }
218496
218496
  async function getDoctorDiagnostic() {
218497
218497
  const installationType = await getCurrentInstallationType();
218498
- const version2 = { VERSION: "0.2.52", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.52", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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";
218498
+ const version2 = { VERSION: "0.2.53", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.53", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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
218499
  const installationPath = await getInstallationPath();
218500
218500
  const invokedBinary = getInvokedBinary();
218501
218501
  const multipleInstallations = await detectMultipleInstallations();
@@ -218507,8 +218507,8 @@ async function getDoctorDiagnostic() {
218507
218507
  for (const install of npmInstalls) {
218508
218508
  if (install.type === "npm-global") {
218509
218509
  let uninstallCmd = "npm -g uninstall @theus-ai/theus-code";
218510
- if ({ VERSION: "0.2.52", BUILD_TIME: "1970-01-01T00:00:00.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.52", BUILD_TIME: "1970-01-01T00:00:00.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") {
218511
- uninstallCmd += ` && npm -g uninstall ${{ VERSION: "0.2.52", BUILD_TIME: "1970-01-01T00:00:00.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}`;
218510
+ if ({ VERSION: "0.2.53", BUILD_TIME: "1970-01-01T00:00:00.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.53", BUILD_TIME: "1970-01-01T00:00:00.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") {
218511
+ uninstallCmd += ` && npm -g uninstall ${{ VERSION: "0.2.53", BUILD_TIME: "1970-01-01T00:00:00.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}`;
218512
218512
  }
218513
218513
  warnings.push({
218514
218514
  issue: `Leftover npm global installation at ${install.path}`,
@@ -218620,7 +218620,7 @@ async function getLatestVersionFromArtifactory(tag2 = "latest") {
218620
218620
  const startTime2 = Date.now();
218621
218621
  const { stdout, code, stderr } = await execFileNoThrowWithCwd("npm", [
218622
218622
  "view",
218623
- `${{ VERSION: "0.2.52", BUILD_TIME: "1970-01-01T00:00:00.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}`,
218623
+ `${{ VERSION: "0.2.53", BUILD_TIME: "1970-01-01T00:00:00.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
218624
  "version",
218625
218625
  "--prefer-online",
218626
218626
  "--registry",
@@ -218644,7 +218644,7 @@ async function getLatestVersionFromArtifactory(tag2 = "latest") {
218644
218644
  latency_ms: latencyMs,
218645
218645
  source_npm: true
218646
218646
  });
218647
- logForDebugging(`npm view ${{ VERSION: "0.2.52", BUILD_TIME: "1970-01-01T00:00:00.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}`);
218647
+ logForDebugging(`npm view ${{ VERSION: "0.2.53", BUILD_TIME: "1970-01-01T00:00:00.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
218648
  const latestVersion = stdout.trim();
218649
218649
  return latestVersion;
218650
218650
  }
@@ -218700,7 +218700,7 @@ async function downloadVersionFromArtifactory(version2, stagingPath) {
218700
218700
  const fs3 = getFsImplementation();
218701
218701
  await fs3.rm(stagingPath, { recursive: true, force: true });
218702
218702
  const platform4 = getPlatform2();
218703
- const platformPackageName = `${{ VERSION: "0.2.52", BUILD_TIME: "1970-01-01T00:00:00.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}`;
218703
+ const platformPackageName = `${{ VERSION: "0.2.53", BUILD_TIME: "1970-01-01T00:00:00.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
218704
  logForDebugging(`Fetching integrity hash for ${platformPackageName}@${version2}`);
218705
218705
  const {
218706
218706
  stdout: integrityOutput,
@@ -218729,7 +218729,7 @@ async function downloadVersionFromArtifactory(version2, stagingPath) {
218729
218729
  name: "theus-native-installer",
218730
218730
  version: "0.0.1",
218731
218731
  dependencies: {
218732
- [{ VERSION: "0.2.52", BUILD_TIME: "1970-01-01T00:00:00.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
218732
+ [{ VERSION: "0.2.53", BUILD_TIME: "1970-01-01T00:00:00.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
218733
  }
218734
218734
  };
218735
218735
  const packageLock = {
@@ -218742,10 +218742,10 @@ async function downloadVersionFromArtifactory(version2, stagingPath) {
218742
218742
  name: "theus-native-installer",
218743
218743
  version: "0.0.1",
218744
218744
  dependencies: {
218745
- [{ VERSION: "0.2.52", BUILD_TIME: "1970-01-01T00:00:00.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
218745
+ [{ VERSION: "0.2.53", BUILD_TIME: "1970-01-01T00:00:00.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
218746
  }
218747
218747
  },
218748
- [`node_modules/${{ VERSION: "0.2.52", BUILD_TIME: "1970-01-01T00:00:00.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}`]: {
218748
+ [`node_modules/${{ VERSION: "0.2.53", BUILD_TIME: "1970-01-01T00:00:00.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
218749
  version: version2,
218750
218750
  optionalDependencies: {
218751
218751
  [platformPackageName]: version2
@@ -218767,7 +218767,7 @@ async function downloadVersionFromArtifactory(version2, stagingPath) {
218767
218767
  if (result.code !== 0) {
218768
218768
  throw new Error(`npm ci failed with code ${result.code}: ${result.stderr}`);
218769
218769
  }
218770
- logForDebugging(`Successfully downloaded and verified ${{ VERSION: "0.2.52", BUILD_TIME: "1970-01-01T00:00:00.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}`);
218770
+ logForDebugging(`Successfully downloaded and verified ${{ VERSION: "0.2.53", BUILD_TIME: "1970-01-01T00:00:00.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
218771
  }
218772
218772
  function getStallTimeoutMs() {
218773
218773
  return Number(process.env.THEUS_CODE_STALL_TIMEOUT_MS_FOR_TESTING) || DEFAULT_STALL_TIMEOUT_MS;
@@ -219430,8 +219430,8 @@ async function updateLatest(channelOrVersion, forceReinstall = false) {
219430
219430
  const maxVersion = await getMaxVersion();
219431
219431
  if (maxVersion && gt(version2, maxVersion)) {
219432
219432
  logForDebugging(`Native installer: maxVersion ${maxVersion} is set, capping update from ${version2} to ${maxVersion}`);
219433
- if (gte({ VERSION: "0.2.52", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
219434
- logForDebugging(`Native installer: current version ${{ VERSION: "0.2.52", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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`);
219433
+ if (gte({ VERSION: "0.2.53", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
219434
+ logForDebugging(`Native installer: current version ${{ VERSION: "0.2.53", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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`);
219435
219435
  logEvent("tengu_native_update_skipped_max_version", {
219436
219436
  latency_ms: Date.now() - startTime2,
219437
219437
  max_version: maxVersion,
@@ -219442,7 +219442,7 @@ async function updateLatest(channelOrVersion, forceReinstall = false) {
219442
219442
  version2 = maxVersion;
219443
219443
  }
219444
219444
  }
219445
- if (!forceReinstall && version2 === { VERSION: "0.2.52", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
219445
+ if (!forceReinstall && version2 === { VERSION: "0.2.53", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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
219446
  logForDebugging(`Found ${version2} at ${executablePath}, skipping install`);
219447
219447
  logEvent("tengu_native_update_complete", {
219448
219448
  latency_ms: Date.now() - startTime2,
@@ -220192,8 +220192,8 @@ async function cleanupNpmInstallations() {
220192
220192
  } else if (codePackageResult.error) {
220193
220193
  errors4.push(codePackageResult.error);
220194
220194
  }
220195
- if ({ VERSION: "0.2.52", BUILD_TIME: "1970-01-01T00:00:00.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.52", BUILD_TIME: "1970-01-01T00:00:00.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") {
220196
- const macroPackageResult = await attemptNpmUninstall({ VERSION: "0.2.52", BUILD_TIME: "1970-01-01T00:00:00.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);
220195
+ if ({ VERSION: "0.2.53", BUILD_TIME: "1970-01-01T00:00:00.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.53", BUILD_TIME: "1970-01-01T00:00:00.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") {
220196
+ const macroPackageResult = await attemptNpmUninstall({ VERSION: "0.2.53", BUILD_TIME: "1970-01-01T00:00:00.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);
220197
220197
  if (macroPackageResult.success) {
220198
220198
  removed++;
220199
220199
  if (macroPackageResult.warning) {
@@ -230682,6 +230682,17 @@ var init_ConsoleOAuthFlow = __esm(() => {
230682
230682
  var NOVEDADES;
230683
230683
  var init_data = __esm(() => {
230684
230684
  NOVEDADES = [
230685
+ {
230686
+ version: "v0.2.53",
230687
+ fecha: "2026-07-26",
230688
+ titulo: "Windows: el mapa 3D del proyecto por fin aparece",
230689
+ puntos: [
230690
+ "En Windows, Theus abr\xEDa el mapa del proyecto cl\xE1sico en vez del grafo 3D, y no explicaba por qu\xE9. Eran dos cosas: el instalador saltaba \xD1aupa en todas las instalaciones de Windows (le faltaba la huella de verificaci\xF3n del paquete en el canal de descargas), y aunque lo hubieras instalado a mano, Theus solo lo buscaba en rutas de macOS y Linux.",
230691
+ "Ya est\xE1 corregido en los dos sitios: reinstala con \xABirm https://theus.pe/install.ps1 | iex\xBB y abre una terminal nueva. El motor de c\xF3digo y su mapa 3D quedan disponibles como en macOS y Linux.",
230692
+ "Si aun as\xED no aparece, el registro de depuraci\xF3n ahora dice cu\xE1l de las dos cosas falla: que no encuentra el motor, o que su mapa no respondi\xF3 a tiempo. Antes se ca\xEDa al mapa cl\xE1sico en silencio.",
230693
+ "Y en \xAB/recarga\xBB: los cr\xE9ditos de cada pack se leen del servidor, no de una copia en el CLI que se hab\xEDa quedado desfasada anunciando menos de lo que se entrega. Tambi\xE9n ves tu saldo actual y cu\xE1ntos packs te quedan en el ciclo."
230694
+ ]
230695
+ },
230685
230696
  {
230686
230697
  version: "v0.2.52",
230687
230698
  fecha: "2026-07-26",
@@ -247619,12 +247630,25 @@ import { existsSync as existsSync8 } from "fs";
247619
247630
  import { homedir as homedir24 } from "os";
247620
247631
  import { join as join74 } from "path";
247621
247632
  function resolveNaupaBinary() {
247633
+ const isWindows2 = process.platform === "win32";
247634
+ const exe = isWindows2 ? "naupa.exe" : "naupa";
247622
247635
  const fromEnv = (process.env.THEUS_NAUPA_BIN ?? "").trim();
247623
247636
  if (fromEnv) {
247624
- return existsSync8(fromEnv) ? fromEnv : null;
247637
+ if (existsSync8(fromEnv))
247638
+ return fromEnv;
247639
+ if (isWindows2 && !/\.exe$/i.test(fromEnv) && existsSync8(`${fromEnv}.exe`)) {
247640
+ return `${fromEnv}.exe`;
247641
+ }
247642
+ return null;
247625
247643
  }
247626
- const candidates = [
247627
- join74(homedir24(), ".local", "bin", "naupa"),
247644
+ const candidates = isWindows2 ? [
247645
+ ...process.env.LOCALAPPDATA ? [join74(process.env.LOCALAPPDATA, "Theus", "bin", exe)] : [],
247646
+ ...process.env.APPDATA ? [join74(process.env.APPDATA, "Theus", "bin", exe)] : [],
247647
+ join74(homedir24(), "AppData", "Local", "Theus", "bin", exe),
247648
+ join74(homedir24(), ".local", "bin", exe),
247649
+ join74(homedir24(), ".theus", "bin", exe)
247650
+ ] : [
247651
+ join74(homedir24(), ".local", "bin", exe),
247628
247652
  "/opt/homebrew/bin/naupa",
247629
247653
  "/usr/local/bin/naupa"
247630
247654
  ];
@@ -247633,9 +247657,11 @@ function resolveNaupaBinary() {
247633
247657
  return candidate;
247634
247658
  }
247635
247659
  if (typeof Bun !== "undefined" && typeof Bun.which === "function") {
247636
- const fromPath = Bun.which("naupa");
247637
- if (fromPath)
247638
- return fromPath;
247660
+ for (const name of isWindows2 ? [exe, "naupa"] : [exe]) {
247661
+ const fromPath = Bun.which(name);
247662
+ if (fromPath)
247663
+ return fromPath;
247664
+ }
247639
247665
  }
247640
247666
  return null;
247641
247667
  }
@@ -247928,9 +247954,11 @@ async function openProjectDashboard(handle) {
247928
247954
  if (process.env.THEUS_DASHBOARD !== "neural") {
247929
247955
  try {
247930
247956
  const { isNaupaEnabled: isNaupaEnabled2 } = await Promise.resolve().then(() => (init_common3(), exports_common));
247931
- if (isNaupaEnabled2() && await waitForNaupaUi(15000)) {
247957
+ const naupaListo = isNaupaEnabled2();
247958
+ if (naupaListo && await waitForNaupaUi(15000)) {
247932
247959
  return openLocalUrl(NAUPA_UI_URL);
247933
247960
  }
247961
+ logForDebugging(naupaListo ? `[dashboard] \xD1aupa est\xE1 instalado pero su UI 3D no respondi\xF3 en ${NAUPA_UI_URL} a tiempo; abriendo el dashboard neural.` : "[dashboard] \xD1aupa no est\xE1 instalado (o no se resolvi\xF3 su binario); abriendo el dashboard neural. Inst\xE1lalo con el instalador oficial, o apunta THEUS_NAUPA_BIN a su ruta.");
247934
247962
  } catch {}
247935
247963
  }
247936
247964
  return openLocalUrl(handle.status.dashboardUrl);
@@ -248058,6 +248086,7 @@ var init_projectIntelligence = __esm(() => {
248058
248086
  init_paths2();
248059
248087
  init_dbSchema();
248060
248088
  init_dashboardHtml();
248089
+ init_debug();
248061
248090
  running = new Map;
248062
248091
  openedDashboards = new Set;
248063
248092
  FONT_ROUTES = [
@@ -305631,9 +305660,9 @@ function getTheusEnvMetadata() {
305631
305660
  };
305632
305661
  }
305633
305662
  function getBuildAgeMinutes() {
305634
- if (!{ VERSION: "0.2.52", BUILD_TIME: "1970-01-01T00:00:00.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)
305663
+ if (!{ VERSION: "0.2.53", BUILD_TIME: "1970-01-01T00:00:00.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)
305635
305664
  return;
305636
- const buildTime = new Date({ VERSION: "0.2.52", BUILD_TIME: "1970-01-01T00:00:00.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();
305665
+ const buildTime = new Date({ VERSION: "0.2.53", BUILD_TIME: "1970-01-01T00:00:00.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();
305637
305666
  if (isNaN(buildTime))
305638
305667
  return;
305639
305668
  return Math.floor((Date.now() - buildTime) / 60000);
@@ -322288,7 +322317,7 @@ function getAssistantMessageFromError(error40, model, options2) {
322288
322317
  if (process.env.USER_TYPE === "ant") {
322289
322318
  const baseMessage = `API Error: 400 ${error40.message}
322290
322319
 
322291
- Run /share and post the JSON file to ${{ VERSION: "0.2.52", BUILD_TIME: "1970-01-01T00:00:00.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}.`;
322320
+ Run /share and post the JSON file to ${{ VERSION: "0.2.53", BUILD_TIME: "1970-01-01T00:00:00.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}.`;
322292
322321
  const rewindInstruction = getIsNonInteractiveSession() ? "" : " Then, use /rewind to recover the conversation.";
322293
322322
  return createAssistantAPIErrorMessage({
322294
322323
  content: baseMessage + rewindInstruction,
@@ -322324,7 +322353,7 @@ Run /share and post the JSON file to ${{ VERSION: "0.2.52", BUILD_TIME: "1970-01
322324
322353
  if (process.env.USER_TYPE === "ant" && !process.env.THEUS_MODEL && error40 instanceof Error && error40.message.toLowerCase().includes("invalid model name")) {
322325
322354
  const orgId = getOauthAccountInfo()?.organizationUuid;
322326
322355
  const baseMsg = `[THEUS-INTERNAL] Your org isn't gated into the \`${model}\` model. Either run \`theus\` with \`THEUS_MODEL=${getDefaultMainLoopModelSetting()}\``;
322327
- const msg = orgId ? `${baseMsg} or share your orgId (${orgId}) in ${{ VERSION: "0.2.52", BUILD_TIME: "1970-01-01T00:00:00.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.52", BUILD_TIME: "1970-01-01T00:00:00.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.`;
322356
+ const msg = orgId ? `${baseMsg} or share your orgId (${orgId}) in ${{ VERSION: "0.2.53", BUILD_TIME: "1970-01-01T00:00:00.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.53", BUILD_TIME: "1970-01-01T00:00:00.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.`;
322328
322357
  return createAssistantAPIErrorMessage({
322329
322358
  content: msg,
322330
322359
  error: "invalid_request"
@@ -330248,7 +330277,7 @@ async function submitTranscriptShare(messages, trigger, appearanceId) {
330248
330277
  } catch {}
330249
330278
  const data = {
330250
330279
  trigger,
330251
- version: { VERSION: "0.2.52", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
330280
+ version: { VERSION: "0.2.53", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
330252
330281
  platform: process.platform,
330253
330282
  transcript,
330254
330283
  subagentTranscripts: Object.keys(subagentTranscripts).length > 0 ? subagentTranscripts : undefined,
@@ -330453,10 +330482,10 @@ Si el usuario indic\xF3 una duraci\xF3n, p\xE1sala en el par\xE1metro \`duration
330453
330482
 
330454
330483
  // commands/issue/index.ts
330455
330484
  function getCliVersion() {
330456
- return { VERSION: "0.2.52", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.52", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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";
330485
+ return { VERSION: "0.2.53", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.53", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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";
330457
330486
  }
330458
330487
  function getIssuesExplainer() {
330459
- return { VERSION: "0.2.52", BUILD_TIME: "1970-01-01T00:00:00.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.52", BUILD_TIME: "1970-01-01T00:00:00.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";
330488
+ return { VERSION: "0.2.53", BUILD_TIME: "1970-01-01T00:00:00.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.53", BUILD_TIME: "1970-01-01T00:00:00.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";
330460
330489
  }
330461
330490
  function getActiveModelLabel() {
330462
330491
  try {
@@ -333289,7 +333318,7 @@ function buildPrimarySection() {
333289
333318
  });
333290
333319
  return [{
333291
333320
  label: "Version",
333292
- value: { VERSION: "0.2.52", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
333321
+ value: { VERSION: "0.2.53", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
333293
333322
  }, {
333294
333323
  label: "Session name",
333295
333324
  value: nameValue
@@ -337105,7 +337134,7 @@ function Config({
337105
337134
  }
337106
337135
  })
337107
337136
  }) : showSubmenu === "ChannelDowngrade" ? /* @__PURE__ */ jsx_runtime189.jsx(ChannelDowngradeDialog, {
337108
- currentVersion: { VERSION: "0.2.52", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
337137
+ currentVersion: { VERSION: "0.2.53", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
337109
337138
  onChoice: (choice) => {
337110
337139
  setShowSubmenu(null);
337111
337140
  setTabsHidden(false);
@@ -337117,7 +337146,7 @@ function Config({
337117
337146
  autoUpdatesChannel: "stable"
337118
337147
  };
337119
337148
  if (choice === "stay") {
337120
- newSettings.minimumVersion = { VERSION: "0.2.52", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION;
337149
+ newSettings.minimumVersion = { VERSION: "0.2.53", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION;
337121
337150
  }
337122
337151
  updateSettingsForSource("userSettings", newSettings);
337123
337152
  setSettingsData((prev_27) => ({
@@ -345362,7 +345391,7 @@ function HelpV2(t0) {
345362
345391
  let t6;
345363
345392
  if ($2[31] !== tabs) {
345364
345393
  t6 = /* @__PURE__ */ jsx_runtime217.jsx(Tabs, {
345365
- title: `Theus v${{ VERSION: "0.2.52", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION}`,
345394
+ title: `Theus v${{ VERSION: "0.2.53", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION}`,
345366
345395
  color: "professionalBlue",
345367
345396
  defaultTab: "general",
345368
345397
  children: tabs
@@ -363614,7 +363643,7 @@ function Onboarding({
363614
363643
  flexDirection: "column",
363615
363644
  children: [
363616
363645
  /* @__PURE__ */ jsx_runtime250.jsx(TheusBanner, {
363617
- version: { VERSION: "0.2.52", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
363646
+ version: { VERSION: "0.2.53", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
363618
363647
  }),
363619
363648
  /* @__PURE__ */ jsx_runtime250.jsxs(ThemedBox_default, {
363620
363649
  flexDirection: "column",
@@ -363855,17 +363884,42 @@ function safeIsSubscriber() {
363855
363884
  function apiBase() {
363856
363885
  return getOauthConfig().BASE_API_URL.replace(/\/+$/, "");
363857
363886
  }
363858
- async function fetchRecargaDisponible(token) {
363887
+ async function fetchRecargaStatus(token) {
363888
+ const apagado = {
363889
+ disponible: false,
363890
+ packs: PACKS_FALLBACK,
363891
+ saldoCreditos: null,
363892
+ packsRestantes: null
363893
+ };
363859
363894
  try {
363860
363895
  const res = await fetch(`${apiBase()}/v1/recarga/status`, {
363861
363896
  headers: { authorization: `Bearer ${token}`, "theus-version": "2023-06-01" }
363862
363897
  });
363863
363898
  if (!res.ok)
363864
- return false;
363899
+ return apagado;
363865
363900
  const data = await res.json().catch(() => null);
363866
- return data?.disponible === true;
363901
+ if (data?.disponible !== true)
363902
+ return apagado;
363903
+ const remotos = (data.packs ?? []).map((p) => {
363904
+ const id = String(p?.slug ?? "");
363905
+ if (!PACK_IDS.includes(id))
363906
+ return null;
363907
+ const creditos = Number(p?.creditos);
363908
+ const precioUsd = Number(p?.precio_usd);
363909
+ if (!Number.isFinite(creditos) || creditos <= 0)
363910
+ return null;
363911
+ if (!Number.isFinite(precioUsd) || precioUsd <= 0)
363912
+ return null;
363913
+ return { id, nombre: String(p?.nombre || id), precioUsd, creditos };
363914
+ }).filter((p) => p !== null);
363915
+ return {
363916
+ disponible: true,
363917
+ packs: remotos.length > 0 ? remotos : PACKS_FALLBACK,
363918
+ saldoCreditos: typeof data.saldo_creditos === "number" ? data.saldo_creditos : null,
363919
+ packsRestantes: typeof data.packs_restantes === "number" ? data.packs_restantes : null
363920
+ };
363867
363921
  } catch {
363868
- return false;
363922
+ return apagado;
363869
363923
  }
363870
363924
  }
363871
363925
  async function fetchCheckoutUrl(token, pack) {
@@ -363899,7 +363953,7 @@ function parseArgs2(raw) {
363899
363953
  const confirmar = parts.includes("confirmar");
363900
363954
  return { packId, confirmar };
363901
363955
  }
363902
- var PACKS, PACK_IDS, call32 = async (args) => {
363956
+ var PACKS_FALLBACK, PACK_IDS, call32 = async (args) => {
363903
363957
  const token = safeAccessToken();
363904
363958
  if (!token) {
363905
363959
  return {
@@ -363908,10 +363962,11 @@ var PACKS, PACK_IDS, call32 = async (args) => {
363908
363962
  `)
363909
363963
  };
363910
363964
  }
363911
- const disponible = await fetchRecargaDisponible(token);
363912
- if (!disponible) {
363965
+ const estado = await fetchRecargaStatus(token);
363966
+ if (!estado.disponible) {
363913
363967
  return { type: "text", value: "La recarga a\xFAn no est\xE1 disponible." };
363914
363968
  }
363969
+ const packs = estado.packs;
363915
363970
  const { packId, confirmar } = parseArgs2(args);
363916
363971
  if (!packId) {
363917
363972
  const lines = [];
@@ -363921,12 +363976,21 @@ var PACKS, PACK_IDS, call32 = async (args) => {
363921
363976
  lines.push("expl\xEDcito \u2014 t\xFA eliges cu\xE1ndo comprar, nunca se cobra nada autom\xE1ticamente");
363922
363977
  lines.push("cuando se agota tu cuota del plan.");
363923
363978
  lines.push("");
363979
+ if (estado.saldoCreditos != null && estado.saldoCreditos > 0) {
363980
+ lines.push(`Ya tienes ${formatCreditos(estado.saldoCreditos)} cr\xE9ditos de saldo (no expiran).`);
363981
+ lines.push("");
363982
+ }
363924
363983
  lines.push("Packs disponibles:");
363925
- for (const pack2 of PACKS)
363984
+ for (const pack2 of packs)
363926
363985
  lines.push(formatPackLine(pack2));
363927
363986
  lines.push("");
363928
- lines.push("M\xE1ximo 4 packs por ciclo. Primero se consume la cuota incluida de tu plan;");
363929
- lines.push("tu saldo de cr\xE9ditos recargado se usa solo despu\xE9s.");
363987
+ if (estado.packsRestantes != null) {
363988
+ lines.push(`Te quedan ${estado.packsRestantes} packs comprables en este ciclo. Primero se consume`);
363989
+ lines.push("la cuota incluida de tu plan; tu saldo recargado se usa solo despu\xE9s.");
363990
+ } else {
363991
+ lines.push("Primero se consume la cuota incluida de tu plan; tu saldo de cr\xE9ditos");
363992
+ lines.push("recargado se usa solo despu\xE9s.");
363993
+ }
363930
363994
  lines.push("");
363931
363995
  lines.push("Para comprar: theus recarga <pack> (por ejemplo: theus recarga turbo)");
363932
363996
  if (!safeIsSubscriber()) {
@@ -363936,7 +364000,7 @@ var PACKS, PACK_IDS, call32 = async (args) => {
363936
364000
  return { type: "text", value: lines.join(`
363937
364001
  `) };
363938
364002
  }
363939
- const pack = PACKS.find((p) => p.id === packId);
364003
+ const pack = packs.find((p) => p.id === packId);
363940
364004
  if (!pack) {
363941
364005
  return { type: "text", value: `Pack desconocido: ${packId}` };
363942
364006
  }
@@ -363975,12 +364039,12 @@ var init_recarga = __esm(() => {
363975
364039
  init_oauth();
363976
364040
  init_auth();
363977
364041
  init_browser();
363978
- PACKS = [
363979
- { id: "impulso", nombre: "Impulso", precioUsd: 10, creditos: 390 },
363980
- { id: "turbo", nombre: "Turbo", precioUsd: 25, creditos: 1000 },
363981
- { id: "nitro", nombre: "Nitro", precioUsd: 60, creditos: 2450 }
364042
+ PACKS_FALLBACK = [
364043
+ { id: "impulso", nombre: "Impulso", precioUsd: 10, creditos: 440 },
364044
+ { id: "turbo", nombre: "Turbo", precioUsd: 25, creditos: 1120 },
364045
+ { id: "nitro", nombre: "Nitro", precioUsd: 60, creditos: 2750 }
363982
364046
  ];
363983
- PACK_IDS = PACKS.map((p) => p.id);
364047
+ PACK_IDS = PACKS_FALLBACK.map((p) => p.id);
363984
364048
  recarga = {
363985
364049
  type: "local",
363986
364050
  name: "recarga",
@@ -364115,9 +364179,9 @@ function getAllReleaseNotes(changelogContent = getStoredChangelogFromMemory()) {
364115
364179
  return [];
364116
364180
  }
364117
364181
  }
364118
- async function checkForReleaseNotes(lastSeenVersion, currentVersion = { VERSION: "0.2.52", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION) {
364182
+ async function checkForReleaseNotes(lastSeenVersion, currentVersion = { VERSION: "0.2.53", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION) {
364119
364183
  if (process.env.USER_TYPE === "ant") {
364120
- const changelog = { VERSION: "0.2.52", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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;
364184
+ const changelog = { VERSION: "0.2.53", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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;
364121
364185
  if (changelog) {
364122
364186
  const commits = changelog.trim().split(`
364123
364187
  `).filter(Boolean);
@@ -368319,7 +368383,7 @@ var init_Messages = __esm(() => {
368319
368383
  let t1;
368320
368384
  if ($2[0] === Symbol.for("react.memo_cache_sentinel")) {
368321
368385
  t1 = /* @__PURE__ */ jsx_runtime262.jsx(TheusSessionHeader, {
368322
- version: { VERSION: "0.2.52", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
368386
+ version: { VERSION: "0.2.53", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
368323
368387
  });
368324
368388
  $2[0] = t1;
368325
368389
  } else {
@@ -397143,7 +397207,7 @@ async function captureMemoryDiagnostics(trigger, dumpNumber = 0) {
397143
397207
  smapsRollup,
397144
397208
  platform: process.platform,
397145
397209
  nodeVersion: process.version,
397146
- ccVersion: { VERSION: "0.2.52", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
397210
+ ccVersion: { VERSION: "0.2.53", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
397147
397211
  };
397148
397212
  }
397149
397213
  async function performHeapDump(trigger = "manual", dumpNumber = 0) {
@@ -397962,7 +398026,7 @@ var init_bridge_kick = __esm(() => {
397962
398026
  var call64 = async () => {
397963
398027
  return {
397964
398028
  type: "text",
397965
- value: { VERSION: "0.2.52", BUILD_TIME: "1970-01-01T00:00:00.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.52", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.52", BUILD_TIME: "1970-01-01T00:00:00.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.52", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
398029
+ value: { VERSION: "0.2.53", BUILD_TIME: "1970-01-01T00:00:00.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.53", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.53", BUILD_TIME: "1970-01-01T00:00:00.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.53", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
397966
398030
  };
397967
398031
  }, version2, version_default;
397968
398032
  var init_version = __esm(() => {
@@ -400563,7 +400627,7 @@ var SECRET_NAME_PATTERN, EXTRA_ENV_ALLOWLIST, REDACTED2 = "\u2039oculto\u203A",
400563
400627
  const lines = [];
400564
400628
  lines.push("## Entorno de ejecuci\xF3n");
400565
400629
  lines.push("");
400566
- const version3 = { VERSION: "0.2.52", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.52", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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";
400630
+ const version3 = { VERSION: "0.2.53", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.53", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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";
400567
400631
  lines.push(`- Versi\xF3n de Theus: ${version3}`);
400568
400632
  lines.push(`- Directorio de trabajo: ${getCwd()}`);
400569
400633
  lines.push(`- \xBFRepositorio git?: ${isGit ? "s\xED" : "no"}`);
@@ -403032,13 +403096,13 @@ async function updateReleaseBundle() {
403032
403096
  await gracefulShutdown(1);
403033
403097
  return;
403034
403098
  }
403035
- if (gte({ VERSION: "0.2.52", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
403036
- writeToStdout(source_default.green(`Theus is up to date (${{ VERSION: "0.2.52", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION})`) + `
403099
+ if (gte({ VERSION: "0.2.53", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
403100
+ writeToStdout(source_default.green(`Theus is up to date (${{ VERSION: "0.2.53", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION})`) + `
403037
403101
  `);
403038
403102
  await gracefulShutdown(0);
403039
403103
  return;
403040
403104
  }
403041
- writeToStdout(`New version available: ${latest} (current: ${{ VERSION: "0.2.52", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION})
403105
+ writeToStdout(`New version available: ${latest} (current: ${{ VERSION: "0.2.53", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION})
403042
403106
  `);
403043
403107
  writeToStdout(`Installing update from theus.pe/dl...
403044
403108
  `);
@@ -403072,7 +403136,7 @@ async function updateReleaseBundle() {
403072
403136
  return;
403073
403137
  }
403074
403138
  cpSync(staged, bundleDir, { recursive: true, force: true });
403075
- writeToStdout(source_default.green(`Successfully updated from ${{ VERSION: "0.2.52", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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}`) + `
403139
+ writeToStdout(source_default.green(`Successfully updated from ${{ VERSION: "0.2.53", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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}`) + `
403076
403140
  `);
403077
403141
  await regenerateCompletionCache();
403078
403142
  } finally {
@@ -403085,7 +403149,7 @@ async function updateReleaseBundle() {
403085
403149
  async function update() {
403086
403150
  logEvent("tengu_update_check", {});
403087
403151
  await updateNaupa();
403088
- writeToStdout(`Current version: ${{ VERSION: "0.2.52", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION}
403152
+ writeToStdout(`Current version: ${{ VERSION: "0.2.53", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION}
403089
403153
  `);
403090
403154
  const channel2 = getInitialSettings()?.autoUpdatesChannel ?? "latest";
403091
403155
  writeToStdout(`Checking for updates to ${channel2} version...
@@ -403164,8 +403228,8 @@ async function update() {
403164
403228
  writeToStdout(`Theus is managed by Homebrew.
403165
403229
  `);
403166
403230
  const latest = await getLatestVersion(channel2);
403167
- if (latest && !gte({ VERSION: "0.2.52", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
403168
- writeToStdout(`Update available: ${{ VERSION: "0.2.52", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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}
403231
+ if (latest && !gte({ VERSION: "0.2.53", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
403232
+ writeToStdout(`Update available: ${{ VERSION: "0.2.53", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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}
403169
403233
  `);
403170
403234
  writeToStdout(`
403171
403235
  `);
@@ -403181,8 +403245,8 @@ async function update() {
403181
403245
  writeToStdout(`Theus is managed by winget.
403182
403246
  `);
403183
403247
  const latest = await getLatestVersion(channel2);
403184
- if (latest && !gte({ VERSION: "0.2.52", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
403185
- writeToStdout(`Update available: ${{ VERSION: "0.2.52", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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}
403248
+ if (latest && !gte({ VERSION: "0.2.53", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
403249
+ writeToStdout(`Update available: ${{ VERSION: "0.2.53", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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}
403186
403250
  `);
403187
403251
  writeToStdout(`
403188
403252
  `);
@@ -403198,8 +403262,8 @@ async function update() {
403198
403262
  writeToStdout(`Theus is managed by apk.
403199
403263
  `);
403200
403264
  const latest = await getLatestVersion(channel2);
403201
- if (latest && !gte({ VERSION: "0.2.52", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
403202
- writeToStdout(`Update available: ${{ VERSION: "0.2.52", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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}
403265
+ if (latest && !gte({ VERSION: "0.2.53", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
403266
+ writeToStdout(`Update available: ${{ VERSION: "0.2.53", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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}
403203
403267
  `);
403204
403268
  writeToStdout(`
403205
403269
  `);
@@ -403264,11 +403328,11 @@ async function update() {
403264
403328
  `);
403265
403329
  await gracefulShutdown(1);
403266
403330
  }
403267
- if (result.latestVersion === { VERSION: "0.2.52", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION) {
403268
- writeToStdout(source_default.green(`Theus is up to date (${{ VERSION: "0.2.52", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION})`) + `
403331
+ if (result.latestVersion === { VERSION: "0.2.53", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION) {
403332
+ writeToStdout(source_default.green(`Theus is up to date (${{ VERSION: "0.2.53", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION})`) + `
403269
403333
  `);
403270
403334
  } else {
403271
- writeToStdout(source_default.green(`Successfully updated from ${{ VERSION: "0.2.52", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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}`) + `
403335
+ writeToStdout(source_default.green(`Successfully updated from ${{ VERSION: "0.2.53", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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}`) + `
403272
403336
  `);
403273
403337
  await regenerateCompletionCache();
403274
403338
  }
@@ -403287,9 +403351,9 @@ async function update() {
403287
403351
  await removeInstalledSymlink();
403288
403352
  }
403289
403353
  logForDebugging("update: Checking npm registry for latest version");
403290
- logForDebugging(`update: Package URL: ${{ VERSION: "0.2.52", BUILD_TIME: "1970-01-01T00:00:00.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}`);
403354
+ logForDebugging(`update: Package URL: ${{ VERSION: "0.2.53", BUILD_TIME: "1970-01-01T00:00:00.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}`);
403291
403355
  const npmTag = channel2 === "stable" ? "stable" : "latest";
403292
- const npmCommand = `npm view ${{ VERSION: "0.2.52", BUILD_TIME: "1970-01-01T00:00:00.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`;
403356
+ const npmCommand = `npm view ${{ VERSION: "0.2.53", BUILD_TIME: "1970-01-01T00:00:00.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`;
403293
403357
  logForDebugging(`update: Running: ${npmCommand}`);
403294
403358
  const latestVersion = await getLatestVersion(channel2);
403295
403359
  logForDebugging(`update: Latest version from npm: ${latestVersion || "FAILED"}`);
@@ -403309,7 +403373,7 @@ async function update() {
403309
403373
  `);
403310
403374
  process.stderr.write(` \u2022 Corporate proxy/firewall blocking npm
403311
403375
  `);
403312
- if ({ VERSION: "0.2.52", BUILD_TIME: "1970-01-01T00:00:00.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.52", BUILD_TIME: "1970-01-01T00:00:00.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")) {
403376
+ if ({ VERSION: "0.2.53", BUILD_TIME: "1970-01-01T00:00:00.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.53", BUILD_TIME: "1970-01-01T00:00:00.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")) {
403313
403377
  process.stderr.write(` \u2022 Internal/development build not published to npm
403314
403378
  `);
403315
403379
  }
@@ -403321,19 +403385,19 @@ async function update() {
403321
403385
  `);
403322
403386
  process.stderr.write(` \u2022 Run with --debug flag for more details
403323
403387
  `);
403324
- const packageName = { VERSION: "0.2.52", BUILD_TIME: "1970-01-01T00:00:00.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");
403388
+ const packageName = { VERSION: "0.2.53", BUILD_TIME: "1970-01-01T00:00:00.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");
403325
403389
  process.stderr.write(` \u2022 Manually check: npm view ${packageName} version
403326
403390
  `);
403327
403391
  process.stderr.write(` \u2022 Check if you need to login: npm whoami
403328
403392
  `);
403329
403393
  await gracefulShutdown(1);
403330
403394
  }
403331
- if (gte({ VERSION: "0.2.52", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
403332
- writeToStdout(source_default.green(`Theus is up to date (${{ VERSION: "0.2.52", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION})`) + `
403395
+ if (gte({ VERSION: "0.2.53", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
403396
+ writeToStdout(source_default.green(`Theus is up to date (${{ VERSION: "0.2.53", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION})`) + `
403333
403397
  `);
403334
403398
  await gracefulShutdown(0);
403335
403399
  }
403336
- writeToStdout(`New version available: ${latestVersion} (current: ${{ VERSION: "0.2.52", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION})
403400
+ writeToStdout(`New version available: ${latestVersion} (current: ${{ VERSION: "0.2.53", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION})
403337
403401
  `);
403338
403402
  writeToStdout(`Installing update...
403339
403403
  `);
@@ -403378,7 +403442,7 @@ async function update() {
403378
403442
  logForDebugging(`update: Installation status: ${status2}`);
403379
403443
  switch (status2) {
403380
403444
  case "success":
403381
- writeToStdout(source_default.green(`Successfully updated from ${{ VERSION: "0.2.52", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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}`) + `
403445
+ writeToStdout(source_default.green(`Successfully updated from ${{ VERSION: "0.2.53", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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}`) + `
403382
403446
  `);
403383
403447
  await regenerateCompletionCache();
403384
403448
  break;
@@ -403388,7 +403452,7 @@ async function update() {
403388
403452
  if (useLocalUpdate) {
403389
403453
  process.stderr.write(`Try manually updating with:
403390
403454
  `);
403391
- process.stderr.write(` cd ~/.theus/local && npm update ${{ VERSION: "0.2.52", BUILD_TIME: "1970-01-01T00:00:00.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}
403455
+ process.stderr.write(` cd ~/.theus/local && npm update ${{ VERSION: "0.2.53", BUILD_TIME: "1970-01-01T00:00:00.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}
403392
403456
  `);
403393
403457
  } else {
403394
403458
  process.stderr.write(`Try running with sudo or fix npm permissions
@@ -403404,7 +403468,7 @@ async function update() {
403404
403468
  if (useLocalUpdate) {
403405
403469
  process.stderr.write(`Try manually updating with:
403406
403470
  `);
403407
- process.stderr.write(` cd ~/.theus/local && npm update ${{ VERSION: "0.2.52", BUILD_TIME: "1970-01-01T00:00:00.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}
403471
+ process.stderr.write(` cd ~/.theus/local && npm update ${{ VERSION: "0.2.53", BUILD_TIME: "1970-01-01T00:00:00.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}
403408
403472
  `);
403409
403473
  } else {
403410
403474
  process.stderr.write(`Or consider using native installation with: theus install
@@ -413243,7 +413307,7 @@ var init_sessionStorage = __esm(() => {
413243
413307
  init_settings2();
413244
413308
  init_slowOperations();
413245
413309
  init_uuid();
413246
- VERSION4 = { VERSION: "0.2.52", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION;
413310
+ VERSION4 = { VERSION: "0.2.53", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION;
413247
413311
  MAX_TOMBSTONE_REWRITE_BYTES = 50 * 1024 * 1024;
413248
413312
  SKIP_FIRST_PROMPT_PATTERN2 = /^(?:\s*<[a-z][\w-]*[\s>]|\[Request interrupted by user[^\]]*\])/;
413249
413313
  EPHEMERAL_PROGRESS_TYPES = new Set([
@@ -414448,7 +414512,7 @@ var init_filesystem = __esm(() => {
414448
414512
  });
414449
414513
  getBundledSkillsRoot = memoize_default(function getBundledSkillsRoot2() {
414450
414514
  const nonce = randomBytes21(16).toString("hex");
414451
- return join150(getTheusTempDir(), "bundled-skills", { VERSION: "0.2.52", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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);
414515
+ return join150(getTheusTempDir(), "bundled-skills", { VERSION: "0.2.53", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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);
414452
414516
  });
414453
414517
  getResolvedWorkingDirPaths = memoize_default(getPathsForPermissionCheck);
414454
414518
  });
@@ -419627,7 +419691,7 @@ function getSimpleDoingTasksSection() {
419627
419691
  ];
419628
419692
  const userHelpSubitems = [
419629
419693
  `/help: Get help with using Theus`,
419630
- `To give feedback, users should ${{ VERSION: "0.2.52", BUILD_TIME: "1970-01-01T00:00:00.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}`
419694
+ `To give feedback, users should ${{ VERSION: "0.2.53", BUILD_TIME: "1970-01-01T00:00:00.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}`
419631
419695
  ];
419632
419696
  const items = [
419633
419697
  `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.`,
@@ -420527,7 +420591,7 @@ function computeFingerprint(messageText, version3) {
420527
420591
  }
420528
420592
  function computeFingerprintFromMessages(messages) {
420529
420593
  const firstMessageText = extractFirstMessageText(messages);
420530
- return computeFingerprint(firstMessageText, { VERSION: "0.2.52", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION);
420594
+ return computeFingerprint(firstMessageText, { VERSION: "0.2.53", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION);
420531
420595
  }
420532
420596
  var FINGERPRINT_SALT = "59cf53e54c78";
420533
420597
  var init_fingerprint = () => {};
@@ -423150,7 +423214,7 @@ async function sideQuery(opts) {
423150
423214
  betas.push(STRUCTURED_OUTPUTS_BETA_HEADER);
423151
423215
  }
423152
423216
  const messageText = extractFirstUserMessageText(messages);
423153
- const fingerprint = computeFingerprint(messageText, { VERSION: "0.2.52", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION);
423217
+ const fingerprint = computeFingerprint(messageText, { VERSION: "0.2.53", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION);
423154
423218
  const attributionHeader = getAttributionHeader(fingerprint);
423155
423219
  const systemBlocks = [
423156
423220
  attributionHeader ? { type: "text", text: attributionHeader } : null,
@@ -424453,7 +424517,7 @@ async function handleMemories(state) {
424453
424517
  async function runProjectContextMcpServer() {
424454
424518
  const projectRoot = process.env.THEUS_PROJECT_ROOT || process.cwd();
424455
424519
  const state = new ProjectContextState(projectRoot);
424456
- const server2 = new Server({ name: SERVER_NAME, version: { VERSION: "0.2.52", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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: {} } });
424520
+ const server2 = new Server({ name: SERVER_NAME, version: { VERSION: "0.2.53", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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: {} } });
424457
424521
  server2.setRequestHandler(ListToolsRequestSchema, async () => ({
424458
424522
  tools: TOOL_DEFINITIONS.map((t) => ({
424459
424523
  name: t.name,
@@ -426435,7 +426499,7 @@ function createBridgeLogger(options2) {
426435
426499
  connectUrl = buildBridgeConnectUrl(environmentId, cachedIngressUrl);
426436
426500
  regenerateQr(connectUrl);
426437
426501
  if (verbose) {
426438
- write(source_default.dim(`Remote Control`) + ` v${{ VERSION: "0.2.52", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION}
426502
+ write(source_default.dim(`Remote Control`) + ` v${{ VERSION: "0.2.53", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION}
426439
426503
  `);
426440
426504
  }
426441
426505
  if (verbose) {
@@ -427408,7 +427472,7 @@ function appendToLog(path19, message) {
427408
427472
  cwd: getFsImplementation().cwd(),
427409
427473
  userType: process.env.USER_TYPE,
427410
427474
  sessionId: getSessionId(),
427411
- version: { VERSION: "0.2.52", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
427475
+ version: { VERSION: "0.2.53", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
427412
427476
  };
427413
427477
  getLogWriter(path19).write(messageWithTimestamp);
427414
427478
  }
@@ -428678,7 +428742,7 @@ Spawn mode for this project:
428678
428742
  const api2 = createBridgeApiClient({
428679
428743
  baseUrl,
428680
428744
  getAccessToken: getBridgeAccessToken2,
428681
- runnerVersion: { VERSION: "0.2.52", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
428745
+ runnerVersion: { VERSION: "0.2.53", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
428682
428746
  onDebug: logForDebugging,
428683
428747
  onAuth401: handleOAuth401Error2,
428684
428748
  getTrustedDeviceToken
@@ -428916,7 +428980,7 @@ async function runBridgeHeadless(opts, signal) {
428916
428980
  const api2 = createBridgeApiClient({
428917
428981
  baseUrl,
428918
428982
  getAccessToken: opts.getAccessToken,
428919
- runnerVersion: { VERSION: "0.2.52", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
428983
+ runnerVersion: { VERSION: "0.2.53", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
428920
428984
  onDebug: log2,
428921
428985
  onAuth401: opts.onAuth401,
428922
428986
  getTrustedDeviceToken
@@ -432982,7 +433046,7 @@ function buildSystemInitMessage(inputs) {
432982
433046
  slash_commands: inputs.commands.filter((c5) => c5.userInvocable !== false).map((c5) => c5.name),
432983
433047
  apiKeySource: getTheusApiKeyWithSource().source,
432984
433048
  betas: getSdkBetas(),
432985
- theus_code_version: { VERSION: "0.2.52", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
433049
+ theus_code_version: { VERSION: "0.2.53", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
432986
433050
  output_style: outputStyle2,
432987
433051
  agents: inputs.agents.map((agent) => agent.agentType),
432988
433052
  skills: inputs.skills.filter((s) => s.userInvocable !== false).map((skill) => skill.name),
@@ -433022,8 +433086,8 @@ async function getEnvLessBridgeConfig() {
433022
433086
  }
433023
433087
  async function checkEnvLessBridgeMinVersion() {
433024
433088
  const cfg = await getEnvLessBridgeConfig();
433025
- if (cfg.min_version && lt({ VERSION: "0.2.52", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
433026
- return `Your version of Theus (${{ VERSION: "0.2.52", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.
433089
+ if (cfg.min_version && lt({ VERSION: "0.2.53", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
433090
+ return `Your version of Theus (${{ VERSION: "0.2.53", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.
433027
433091
  Version ${cfg.min_version} or higher is required. Run \`theus update\` to update.`;
433028
433092
  }
433029
433093
  return null;
@@ -435347,7 +435411,7 @@ async function initBridgeCore(params) {
435347
435411
  const rawApi = createBridgeApiClient({
435348
435412
  baseUrl,
435349
435413
  getAccessToken,
435350
- runnerVersion: { VERSION: "0.2.52", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
435414
+ runnerVersion: { VERSION: "0.2.53", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
435351
435415
  onDebug: logForDebugging,
435352
435416
  onAuth401,
435353
435417
  getTrustedDeviceToken
@@ -452090,7 +452154,7 @@ var init_useVoiceEnabled = __esm(() => {
452090
452154
  function getSemverPart(version3) {
452091
452155
  return `${import_semver14.major(version3, { loose: true })}.${import_semver14.minor(version3, { loose: true })}.${import_semver14.patch(version3, { loose: true })}`;
452092
452156
  }
452093
- function useUpdateNotification(updatedVersion, initialVersion = { VERSION: "0.2.52", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION) {
452157
+ function useUpdateNotification(updatedVersion, initialVersion = { VERSION: "0.2.53", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION) {
452094
452158
  const [lastNotifiedSemver, setLastNotifiedSemver] = import_react232.useState(() => getSemverPart(initialVersion));
452095
452159
  if (!updatedVersion) {
452096
452160
  return null;
@@ -452130,7 +452194,7 @@ function AutoUpdater({
452130
452194
  return;
452131
452195
  }
452132
452196
  if (false) {}
452133
- const currentVersion = { VERSION: "0.2.52", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION;
452197
+ const currentVersion = { VERSION: "0.2.53", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION;
452134
452198
  const channel2 = getInitialSettings()?.autoUpdatesChannel ?? "latest";
452135
452199
  let latestVersion = await getLatestVersion(channel2);
452136
452200
  const isDisabled2 = isAutoUpdaterDisabled();
@@ -452266,7 +452330,7 @@ function AutoUpdater({
452266
452330
  " ",
452267
452331
  /* @__PURE__ */ jsx_runtime408.jsx(ThemedText, {
452268
452332
  bold: true,
452269
- children: hasLocalInstall ? `cd ~/.theus/local && npm update ${{ VERSION: "0.2.52", BUILD_TIME: "1970-01-01T00:00:00.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.52", BUILD_TIME: "1970-01-01T00:00:00.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}`
452333
+ children: hasLocalInstall ? `cd ~/.theus/local && npm update ${{ VERSION: "0.2.53", BUILD_TIME: "1970-01-01T00:00:00.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.53", BUILD_TIME: "1970-01-01T00:00:00.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}`
452270
452334
  })
452271
452335
  ]
452272
452336
  })
@@ -452343,12 +452407,12 @@ function NativeAutoUpdater({
452343
452407
  logEvent("tengu_native_auto_updater_start", {});
452344
452408
  try {
452345
452409
  const maxVersion = await getMaxVersion();
452346
- if (maxVersion && gt({ VERSION: "0.2.52", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
452410
+ if (maxVersion && gt({ VERSION: "0.2.53", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
452347
452411
  const msg = await getMaxVersionMessage();
452348
452412
  setMaxVersionIssue(msg ?? "affects your version");
452349
452413
  }
452350
452414
  const result = await installLatest(channel2);
452351
- const currentVersion = { VERSION: "0.2.52", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION;
452415
+ const currentVersion = { VERSION: "0.2.53", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION;
452352
452416
  const latencyMs = Date.now() - startTime2;
452353
452417
  if (result.lockFailed) {
452354
452418
  logEvent("tengu_native_auto_updater_lock_contention", {
@@ -452485,17 +452549,17 @@ function PackageManagerAutoUpdater(t0) {
452485
452549
  const maxVersion = await getMaxVersion();
452486
452550
  if (maxVersion && latest && gt(latest, maxVersion)) {
452487
452551
  logForDebugging(`PackageManagerAutoUpdater: maxVersion ${maxVersion} is set, capping update from ${latest} to ${maxVersion}`);
452488
- if (gte({ VERSION: "0.2.52", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
452489
- logForDebugging(`PackageManagerAutoUpdater: current version ${{ VERSION: "0.2.52", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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`);
452552
+ if (gte({ VERSION: "0.2.53", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
452553
+ logForDebugging(`PackageManagerAutoUpdater: current version ${{ VERSION: "0.2.53", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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`);
452490
452554
  setUpdateAvailable(false);
452491
452555
  return;
452492
452556
  }
452493
452557
  latest = maxVersion;
452494
452558
  }
452495
- const hasUpdate = latest && !gte({ VERSION: "0.2.52", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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);
452559
+ const hasUpdate = latest && !gte({ VERSION: "0.2.53", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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);
452496
452560
  setUpdateAvailable(!!hasUpdate);
452497
452561
  if (hasUpdate) {
452498
- logForDebugging(`PackageManagerAutoUpdater: Update available ${{ VERSION: "0.2.52", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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}`);
452562
+ logForDebugging(`PackageManagerAutoUpdater: Update available ${{ VERSION: "0.2.53", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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}`);
452499
452563
  }
452500
452564
  };
452501
452565
  $2[0] = t1;
@@ -452529,7 +452593,7 @@ function PackageManagerAutoUpdater(t0) {
452529
452593
  wrap: "truncate",
452530
452594
  children: [
452531
452595
  "currentVersion: ",
452532
- { VERSION: "0.2.52", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
452596
+ { VERSION: "0.2.53", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
452533
452597
  ]
452534
452598
  });
452535
452599
  $2[3] = verbose;
@@ -460403,7 +460467,7 @@ function buildStatusLineCommandInput(permissionMode, exceeds200kTokens, settings
460403
460467
  project_dir: getOriginalCwd(),
460404
460468
  added_dirs: addedDirs
460405
460469
  },
460406
- version: { VERSION: "0.2.52", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
460470
+ version: { VERSION: "0.2.53", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
460407
460471
  output_style: {
460408
460472
  name: outputStyleName
460409
460473
  },
@@ -484683,7 +484747,7 @@ function completeOnboarding() {
484683
484747
  saveGlobalConfig((current) => ({
484684
484748
  ...current,
484685
484749
  hasCompletedOnboarding: true,
484686
- lastOnboardingVersion: { VERSION: "0.2.52", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
484750
+ lastOnboardingVersion: { VERSION: "0.2.53", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
484687
484751
  }));
484688
484752
  }
484689
484753
  function showDialog(root2, renderer) {
@@ -495634,7 +495698,7 @@ async function startMCPServer(cwd3, debug3, verbose) {
495634
495698
  setCwd(cwd3);
495635
495699
  const server2 = new Server({
495636
495700
  name: "theus/tengu",
495637
- version: { VERSION: "0.2.52", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
495701
+ version: { VERSION: "0.2.53", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
495638
495702
  }, {
495639
495703
  capabilities: {
495640
495704
  tools: {}
@@ -497076,7 +497140,7 @@ async function setupTokenHandler(root2) {
497076
497140
  gap: 1,
497077
497141
  children: [
497078
497142
  /* @__PURE__ */ jsx_runtime494.jsx(TheusBanner, {
497079
- version: { VERSION: "0.2.52", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
497143
+ version: { VERSION: "0.2.53", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
497080
497144
  }),
497081
497145
  showAuthWarning && /* @__PURE__ */ jsx_runtime494.jsxs(ThemedBox_default, {
497082
497146
  flexDirection: "column",
@@ -498558,7 +498622,7 @@ ${assistantAddendum}` : assistantAddendum;
498558
498622
  }
498559
498623
  }
498560
498624
  logForDiagnosticsNoPII("info", "started", {
498561
- version: { VERSION: "0.2.52", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
498625
+ version: { VERSION: "0.2.53", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
498562
498626
  is_native_binary: isInBundledMode()
498563
498627
  });
498564
498628
  registerCleanup(async () => {
@@ -499426,7 +499490,7 @@ Usage: theus --remote "your task description"`, () => gracefulShutdown(1));
499426
499490
  pendingHookMessages
499427
499491
  }, renderAndRun);
499428
499492
  }
499429
- }).version(`${{ VERSION: "0.2.52", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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");
499493
+ }).version(`${{ VERSION: "0.2.53", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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");
499430
499494
  program2.option("-w, --worktree [name]", "Crea un nuevo worktree de git para esta sesi\xF3n (opcionalmente indica un nombre)");
499431
499495
  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.");
499432
499496
  if (canUserConfigureAdvisor()) {
@@ -499978,7 +500042,7 @@ if (false) {}
499978
500042
  async function main2() {
499979
500043
  const args = process.argv.slice(2);
499980
500044
  if (args.length === 1 && (args[0] === "--version" || args[0] === "-v" || args[0] === "-V")) {
499981
- console.log(`${{ VERSION: "0.2.52", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)`);
500045
+ console.log(`${{ VERSION: "0.2.53", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)`);
499982
500046
  return;
499983
500047
  }
499984
500048
  const {