theus-cli 0.2.66 → 0.2.67

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 +169 -117
  2. package/package.json +1 -1
package/cli.js CHANGED
@@ -58714,7 +58714,7 @@ async function _executeApiKeyHelper(isNonInteractiveSession) {
58714
58714
  if (isApiKeyHelperFromProjectOrLocalSettings()) {
58715
58715
  const hasTrust = checkHasTrustDialogAccepted();
58716
58716
  if (!hasTrust && !isNonInteractiveSession) {
58717
- const error40 = new Error(`Security: apiKeyHelper executed before workspace trust is confirmed. If you see this message, post in ${{ VERSION: "0.2.66", BUILD_TIME: "1970-01-01T00:00:00.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}.`);
58717
+ const error40 = new Error(`Security: apiKeyHelper executed before workspace trust is confirmed. If you see this message, post in ${{ VERSION: "0.2.67", BUILD_TIME: "1970-01-01T00:00:00.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}.`);
58718
58718
  logAntError("apiKeyHelper invoked before trust check", error40);
58719
58719
  logEvent("theus_apiKeyHelper_missing_trust11", {});
58720
58720
  return null;
@@ -58758,7 +58758,7 @@ async function runAwsAuthRefresh() {
58758
58758
  if (isAwsAuthRefreshFromProjectSettings()) {
58759
58759
  const hasTrust = checkHasTrustDialogAccepted();
58760
58760
  if (!hasTrust && !getIsNonInteractiveSession()) {
58761
- const error40 = new Error(`Security: awsAuthRefresh executed before workspace trust is confirmed. If you see this message, post in ${{ VERSION: "0.2.66", BUILD_TIME: "1970-01-01T00:00:00.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}.`);
58761
+ const error40 = new Error(`Security: awsAuthRefresh executed before workspace trust is confirmed. If you see this message, post in ${{ VERSION: "0.2.67", BUILD_TIME: "1970-01-01T00:00:00.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}.`);
58762
58762
  logAntError("awsAuthRefresh invoked before trust check", error40);
58763
58763
  logEvent("theus_awsAuthRefresh_missing_trust", {});
58764
58764
  return false;
@@ -58818,7 +58818,7 @@ async function getAwsCredsFromCredentialExport() {
58818
58818
  if (isAwsCredentialExportFromProjectSettings()) {
58819
58819
  const hasTrust = checkHasTrustDialogAccepted();
58820
58820
  if (!hasTrust && !getIsNonInteractiveSession()) {
58821
- const error40 = new Error(`Security: awsCredentialExport executed before workspace trust is confirmed. If you see this message, post in ${{ VERSION: "0.2.66", BUILD_TIME: "1970-01-01T00:00:00.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}.`);
58821
+ const error40 = new Error(`Security: awsCredentialExport executed before workspace trust is confirmed. If you see this message, post in ${{ VERSION: "0.2.67", BUILD_TIME: "1970-01-01T00:00:00.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}.`);
58822
58822
  logAntError("awsCredentialExport invoked before trust check", error40);
58823
58823
  logEvent("theus_awsCredentialExport_missing_trust", {});
58824
58824
  return null;
@@ -58903,7 +58903,7 @@ async function runGcpAuthRefresh() {
58903
58903
  if (isGcpAuthRefreshFromProjectSettings()) {
58904
58904
  const hasTrust = checkHasTrustDialogAccepted();
58905
58905
  if (!hasTrust && !getIsNonInteractiveSession()) {
58906
- const error40 = new Error(`Security: gcpAuthRefresh executed before workspace trust is confirmed. If you see this message, post in ${{ VERSION: "0.2.66", BUILD_TIME: "1970-01-01T00:00:00.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}.`);
58906
+ const error40 = new Error(`Security: gcpAuthRefresh executed before workspace trust is confirmed. If you see this message, post in ${{ VERSION: "0.2.67", BUILD_TIME: "1970-01-01T00:00:00.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}.`);
58907
58907
  logAntError("gcpAuthRefresh invoked before trust check", error40);
58908
58908
  logEvent("theus_gcpAuthRefresh_missing_trust", {});
58909
58909
  return false;
@@ -59622,7 +59622,7 @@ var init_auth = __esm(() => {
59622
59622
 
59623
59623
  // utils/userAgent.ts
59624
59624
  function getTheusCodeUserAgent() {
59625
- return `theus-code/${{ VERSION: "0.2.66", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION}`;
59625
+ return `theus-code/${{ VERSION: "0.2.67", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION}`;
59626
59626
  }
59627
59627
 
59628
59628
  // utils/workloadContext.ts
@@ -59644,7 +59644,7 @@ function getUserAgent() {
59644
59644
  const clientApp = process.env.THEUS_AGENT_SDK_CLIENT_APP ? `, client-app/${process.env.THEUS_AGENT_SDK_CLIENT_APP}` : "";
59645
59645
  const workload = getWorkload();
59646
59646
  const workloadSuffix = workload ? `, workload/${workload}` : "";
59647
- return `theus-cli/${{ VERSION: "0.2.66", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION} (${"external"}, ${process.env.THEUS_CODE_ENTRYPOINT ?? "cli"}${agentSdkVersion}${clientApp}${workloadSuffix})`;
59647
+ return `theus-cli/${{ VERSION: "0.2.67", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION} (${"external"}, ${process.env.THEUS_CODE_ENTRYPOINT ?? "cli"}${agentSdkVersion}${clientApp}${workloadSuffix})`;
59648
59648
  }
59649
59649
  function getMCPUserAgent() {
59650
59650
  const parts = [];
@@ -59658,7 +59658,7 @@ function getMCPUserAgent() {
59658
59658
  parts.push(`client-app/${process.env.THEUS_AGENT_SDK_CLIENT_APP}`);
59659
59659
  }
59660
59660
  const suffix = parts.length > 0 ? ` (${parts.join(", ")})` : "";
59661
- return `theus-code/${{ VERSION: "0.2.66", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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}`;
59661
+ return `theus-code/${{ VERSION: "0.2.67", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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}`;
59662
59662
  }
59663
59663
  function getWebFetchUserAgent() {
59664
59664
  return `Theus-User (${getTheusCodeUserAgent()}; +https://support.theus.pe/)`;
@@ -59796,7 +59796,7 @@ var init_user = __esm(() => {
59796
59796
  deviceId,
59797
59797
  sessionId: getSessionId(),
59798
59798
  email: getEmail(),
59799
- appVersion: { VERSION: "0.2.66", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
59799
+ appVersion: { VERSION: "0.2.67", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
59800
59800
  platform: getHostPlatformForAnalytics(),
59801
59801
  organizationUuid,
59802
59802
  accountUuid,
@@ -61506,7 +61506,7 @@ var init_metadata = __esm(() => {
61506
61506
  COMPOUND_OPERATOR_REGEX = /\s*(?:&&|\|\||[;|])\s*/;
61507
61507
  WHITESPACE_REGEX = /\s+/;
61508
61508
  getVersionBase = memoize_default(() => {
61509
- const match = { VERSION: "0.2.66", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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]+)?/);
61509
+ const match = { VERSION: "0.2.67", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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]+)?/);
61510
61510
  return match ? match[0] : undefined;
61511
61511
  });
61512
61512
  buildEnvContext = memoize_default(async () => {
@@ -61546,9 +61546,9 @@ var init_metadata = __esm(() => {
61546
61546
  isGithubAction: isEnvTruthy(process.env.GITHUB_ACTIONS),
61547
61547
  isTheusCodeAction: isEnvTruthy(process.env.THEUS_CODE_ACTION),
61548
61548
  isTheusAiAuth: isTheusAISubscriber(),
61549
- version: { VERSION: "0.2.66", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
61549
+ version: { VERSION: "0.2.67", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
61550
61550
  versionBase: getVersionBase(),
61551
- buildTime: { VERSION: "0.2.66", BUILD_TIME: "1970-01-01T00:00:00.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,
61551
+ buildTime: { VERSION: "0.2.67", BUILD_TIME: "1970-01-01T00:00:00.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,
61552
61552
  deploymentEnvironment: env3.detectDeploymentEnvironment(),
61553
61553
  ...isEnvTruthy(process.env.GITHUB_ACTIONS) && {
61554
61554
  githubEventName: process.env.GITHUB_EVENT_NAME,
@@ -62164,7 +62164,7 @@ function initialize1PEventLogging() {
62164
62164
  const platform2 = getPlatform();
62165
62165
  const attributes = {
62166
62166
  [ATTR_SERVICE_NAME]: "theus-code",
62167
- [ATTR_SERVICE_VERSION]: { VERSION: "0.2.66", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
62167
+ [ATTR_SERVICE_VERSION]: { VERSION: "0.2.67", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
62168
62168
  };
62169
62169
  if (platform2 === "wsl") {
62170
62170
  const wslVersion = getWslVersion();
@@ -62191,7 +62191,7 @@ function initialize1PEventLogging() {
62191
62191
  })
62192
62192
  ]
62193
62193
  });
62194
- firstPartyEventLogger = firstPartyEventLoggerProvider.getLogger("com.theus.theus_code.events", { VERSION: "0.2.66", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION);
62194
+ firstPartyEventLogger = firstPartyEventLoggerProvider.getLogger("com.theus.theus_code.events", { VERSION: "0.2.67", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION);
62195
62195
  }
62196
62196
  async function reinitialize1PEventLoggingIfConfigChanged() {
62197
62197
  if (!is1PEventLoggingEnabled() || !firstPartyEventLoggerProvider) {
@@ -64058,7 +64058,7 @@ function getAttributionHeader(fingerprint) {
64058
64058
  if (!isAttributionHeaderEnabled()) {
64059
64059
  return "";
64060
64060
  }
64061
- const version2 = `${{ VERSION: "0.2.66", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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}`;
64061
+ const version2 = `${{ VERSION: "0.2.67", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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}`;
64062
64062
  const entrypoint = process.env.THEUS_CODE_ENTRYPOINT ?? "unknown";
64063
64063
  const cch = "";
64064
64064
  const workload = getWorkload();
@@ -107013,7 +107013,7 @@ Complete the user's request by providing accurate, documentation-based guidance.
107013
107013
  }
107014
107014
  function getFeedbackGuideline() {
107015
107015
  if (isUsing3PServices()) {
107016
- return `- When you cannot find an answer or the feature doesn't exist, direct the user to ${{ VERSION: "0.2.66", BUILD_TIME: "1970-01-01T00:00:00.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}`;
107016
+ return `- When you cannot find an answer or the feature doesn't exist, direct the user to ${{ VERSION: "0.2.67", BUILD_TIME: "1970-01-01T00:00:00.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}`;
107017
107017
  }
107018
107018
  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";
107019
107019
  }
@@ -115496,6 +115496,21 @@ function asNonEmptyString(value) {
115496
115496
  function isGatewayQuotaExceededMessage(text) {
115497
115497
  return text.startsWith(GATEWAY_QUOTA_EXCEEDED_MESSAGE_PREFIX);
115498
115498
  }
115499
+ function parseGatewayUpstreamDetail(raw) {
115500
+ if (!raw)
115501
+ return;
115502
+ let body;
115503
+ try {
115504
+ body = JSON.parse(raw);
115505
+ } catch {
115506
+ return;
115507
+ }
115508
+ const err2 = body?.error;
115509
+ if (!err2 || err2.code !== "upstream_error")
115510
+ return;
115511
+ const msg = typeof err2.message === "string" ? err2.message.trim() : "";
115512
+ return msg || "El proveedor del modelo no respondi\xF3.";
115513
+ }
115499
115514
  function creditsFromBody(creditos, tt) {
115500
115515
  const direct = asNonEmptyString(creditos);
115501
115516
  if (direct)
@@ -115531,7 +115546,7 @@ function getGatewayQuotaExceededMessage(body) {
115531
115546
  }
115532
115547
  return `${base2} ${recargaHint} \xB7 o revisa tus opciones en ${url3} (anual = 2 meses gratis).`;
115533
115548
  }
115534
- var RATE_LIMIT_ERROR_PREFIXES, THEUS_PRICING_URL = "https://theus.pe/precios", GATEWAY_QUOTA_EXCEEDED_MESSAGE_PREFIX = "Llegaste al l\xEDmite de tu plan", GatewayQuotaExceededError;
115549
+ var RATE_LIMIT_ERROR_PREFIXES, THEUS_PRICING_URL = "https://theus.pe/precios", GATEWAY_QUOTA_EXCEEDED_MESSAGE_PREFIX = "Llegaste al l\xEDmite de tu plan", GatewayQuotaExceededError, GatewayUpstreamError;
115535
115550
  var init_rateLimitMessages = __esm(() => {
115536
115551
  init_auth();
115537
115552
  init_billing();
@@ -115553,6 +115568,16 @@ var init_rateLimitMessages = __esm(() => {
115553
115568
  this.body = body;
115554
115569
  }
115555
115570
  };
115571
+ GatewayUpstreamError = class GatewayUpstreamError extends Error {
115572
+ status;
115573
+ detail;
115574
+ constructor(detail, status) {
115575
+ super(detail);
115576
+ this.name = "GatewayUpstreamError";
115577
+ this.status = status;
115578
+ this.detail = detail;
115579
+ }
115580
+ };
115556
115581
  });
115557
115582
 
115558
115583
  // tools/FileReadTool/imageProcessor.ts
@@ -165880,7 +165905,7 @@ function getTelemetryAttributes() {
165880
165905
  attributes["session.id"] = sessionId;
165881
165906
  }
165882
165907
  if (shouldIncludeAttribute("OTEL_METRICS_INCLUDE_VERSION")) {
165883
- attributes["app.version"] = { VERSION: "0.2.66", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION;
165908
+ attributes["app.version"] = { VERSION: "0.2.67", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION;
165884
165909
  }
165885
165910
  const oauthAccount = getOauthAccountInfo();
165886
165911
  if (oauthAccount) {
@@ -201564,7 +201589,7 @@ function getInstallationEnv() {
201564
201589
  return;
201565
201590
  }
201566
201591
  function getTheusCodeVersion() {
201567
- return { VERSION: "0.2.66", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION;
201592
+ return { VERSION: "0.2.67", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION;
201568
201593
  }
201569
201594
  async function getInstalledVSCodeExtensionVersion(command) {
201570
201595
  const { stdout } = await execFileNoThrow(command, ["--list-extensions", "--show-versions"], {
@@ -203010,7 +203035,7 @@ async function getMcpHeadersFromHelper(serverName, config2) {
203010
203035
  if ("scope" in config2 && isMcpServerFromProjectOrLocalSettings(config2) && !getIsNonInteractiveSession()) {
203011
203036
  const hasTrust = checkHasTrustDialogAccepted();
203012
203037
  if (!hasTrust) {
203013
- 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.66", BUILD_TIME: "1970-01-01T00:00:00.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}.`);
203038
+ 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.67", BUILD_TIME: "1970-01-01T00:00:00.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}.`);
203014
203039
  logAntError("MCP headersHelper invoked before trust check", error40);
203015
203040
  logEvent("theus_mcp_headersHelper_missing_trust", {});
203016
203041
  return null;
@@ -204220,7 +204245,7 @@ async function setupSdkMcpClients(sdkMcpConfigs, sendMcpMessage) {
204220
204245
  const client2 = new Client({
204221
204246
  name: "theus-code",
204222
204247
  title: "Theus",
204223
- version: { VERSION: "0.2.66", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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",
204248
+ version: { VERSION: "0.2.67", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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",
204224
204249
  description: "Theus's agentic coding tool",
204225
204250
  websiteUrl: PRODUCT_URL
204226
204251
  }, {
@@ -204574,7 +204599,7 @@ var init_client5 = __esm(() => {
204574
204599
  const client2 = new Client({
204575
204600
  name: "theus-code",
204576
204601
  title: "Theus",
204577
- version: { VERSION: "0.2.66", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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",
204602
+ version: { VERSION: "0.2.67", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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",
204578
204603
  description: "Theus's agentic coding tool",
204579
204604
  websiteUrl: PRODUCT_URL
204580
204605
  }, {
@@ -215909,7 +215934,7 @@ async function initializeBetaTracing(resource) {
215909
215934
  });
215910
215935
  logs.setGlobalLoggerProvider(loggerProvider);
215911
215936
  setLoggerProvider(loggerProvider);
215912
- const eventLogger = logs.getLogger("com.theus.theus_code.events", { VERSION: "0.2.66", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION);
215937
+ const eventLogger = logs.getLogger("com.theus.theus_code.events", { VERSION: "0.2.67", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION);
215913
215938
  setEventLogger(eventLogger);
215914
215939
  process.on("beforeExit", async () => {
215915
215940
  await loggerProvider?.forceFlush();
@@ -215949,7 +215974,7 @@ async function initializeTelemetry() {
215949
215974
  const platform4 = getPlatform();
215950
215975
  const baseAttributes = {
215951
215976
  [ATTR_SERVICE_NAME]: "theus-code",
215952
- [ATTR_SERVICE_VERSION]: { VERSION: "0.2.66", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
215977
+ [ATTR_SERVICE_VERSION]: { VERSION: "0.2.67", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
215953
215978
  };
215954
215979
  if (platform4 === "wsl") {
215955
215980
  const wslVersion = getWslVersion();
@@ -215994,7 +216019,7 @@ async function initializeTelemetry() {
215994
216019
  } catch {}
215995
216020
  };
215996
216021
  registerCleanup(shutdownTelemetry2);
215997
- return meterProvider2.getMeter("com.theus.theus_code", { VERSION: "0.2.66", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION);
216022
+ return meterProvider2.getMeter("com.theus.theus_code", { VERSION: "0.2.67", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION);
215998
216023
  }
215999
216024
  const meterProvider = new MeterProvider({
216000
216025
  resource,
@@ -216014,7 +216039,7 @@ async function initializeTelemetry() {
216014
216039
  });
216015
216040
  logs.setGlobalLoggerProvider(loggerProvider);
216016
216041
  setLoggerProvider(loggerProvider);
216017
- const eventLogger = logs.getLogger("com.theus.theus_code.events", { VERSION: "0.2.66", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION);
216042
+ const eventLogger = logs.getLogger("com.theus.theus_code.events", { VERSION: "0.2.67", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION);
216018
216043
  setEventLogger(eventLogger);
216019
216044
  logForDebugging("[3P telemetry] Event logger set successfully");
216020
216045
  process.on("beforeExit", async () => {
@@ -216076,7 +216101,7 @@ Current timeout: ${timeoutMs}ms
216076
216101
  }
216077
216102
  };
216078
216103
  registerCleanup(shutdownTelemetry);
216079
- return meterProvider.getMeter("com.theus.theus_code", { VERSION: "0.2.66", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION);
216104
+ return meterProvider.getMeter("com.theus.theus_code", { VERSION: "0.2.67", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION);
216080
216105
  }
216081
216106
  async function flushTelemetry() {
216082
216107
  const meterProvider = getMeterProvider();
@@ -216618,7 +216643,7 @@ async function installOrUpdateTheusPackage(channel2, specificVersion) {
216618
216643
  return "install_failed";
216619
216644
  }
216620
216645
  const versionSpec = specificVersion ? specificVersion : channel2 === "stable" ? "stable" : "latest";
216621
- const result = await execFileNoThrowWithCwd("npm", ["install", `${{ VERSION: "0.2.66", BUILD_TIME: "1970-01-01T00:00:00.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 });
216646
+ const result = await execFileNoThrowWithCwd("npm", ["install", `${{ VERSION: "0.2.67", BUILD_TIME: "1970-01-01T00:00:00.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 });
216622
216647
  if (result.code !== 0) {
216623
216648
  const error40 = new Error(`Failed to install Theus CLI package: ${result.stderr}`);
216624
216649
  logError2(error40);
@@ -216764,9 +216789,9 @@ async function assertMinVersion() {
216764
216789
  if (false) {}
216765
216790
  try {
216766
216791
  const versionConfig = await getDynamicConfig_BLOCKS_ON_INIT("theus_version_config", { minVersion: "0.0.0" });
216767
- if (versionConfig.minVersion && lt({ VERSION: "0.2.66", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
216792
+ if (versionConfig.minVersion && lt({ VERSION: "0.2.67", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
216768
216793
  console.error(`
216769
- It looks like your version of Theus (${{ VERSION: "0.2.66", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.
216794
+ It looks like your version of Theus (${{ VERSION: "0.2.67", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.
216770
216795
  A newer version (${versionConfig.minVersion} or higher) is required to continue.
216771
216796
 
216772
216797
  To update, please run:
@@ -216903,7 +216928,7 @@ async function getInstallationPrefix() {
216903
216928
  return prefixResult.stdout.trim();
216904
216929
  }
216905
216930
  function getGlobalInstallPackageManager() {
216906
- if ({ VERSION: "0.2.66", BUILD_TIME: "1970-01-01T00:00:00.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") {
216931
+ if ({ VERSION: "0.2.67", BUILD_TIME: "1970-01-01T00:00:00.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") {
216907
216932
  return "npm";
216908
216933
  }
216909
216934
  return env3.isRunningWithBun() ? "bun" : "npm";
@@ -216928,7 +216953,7 @@ async function checkGlobalInstallPermissions() {
216928
216953
  }
216929
216954
  async function getLatestVersion(channel2) {
216930
216955
  const npmTag = channel2 === "stable" ? "stable" : "latest";
216931
- const result = await execFileNoThrowWithCwd("npm", ["view", `${{ VERSION: "0.2.66", BUILD_TIME: "1970-01-01T00:00:00.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: homedir17() });
216956
+ const result = await execFileNoThrowWithCwd("npm", ["view", `${{ VERSION: "0.2.67", BUILD_TIME: "1970-01-01T00:00:00.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: homedir17() });
216932
216957
  if (result.code !== 0) {
216933
216958
  logForDebugging(`npm view failed with code ${result.code}`);
216934
216959
  if (result.stderr) {
@@ -216944,7 +216969,7 @@ async function getLatestVersion(channel2) {
216944
216969
  return result.stdout.trim();
216945
216970
  }
216946
216971
  async function getNpmDistTags() {
216947
- const result = await execFileNoThrowWithCwd("npm", ["view", { VERSION: "0.2.66", BUILD_TIME: "1970-01-01T00:00:00.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: homedir17() });
216972
+ const result = await execFileNoThrowWithCwd("npm", ["view", { VERSION: "0.2.67", BUILD_TIME: "1970-01-01T00:00:00.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: homedir17() });
216948
216973
  if (result.code !== 0) {
216949
216974
  logForDebugging(`npm view dist-tags failed with code ${result.code}`);
216950
216975
  return { latest: null, stable: null };
@@ -216984,7 +217009,7 @@ async function installGlobalPackage(specificVersion) {
216984
217009
  logError2(new AutoUpdaterError("Another process is currently installing an update"));
216985
217010
  logEvent("theus_auto_updater_lock_contention", {
216986
217011
  pid: process.pid,
216987
- currentVersion: { VERSION: "0.2.66", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
217012
+ currentVersion: { VERSION: "0.2.67", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
216988
217013
  });
216989
217014
  return "in_progress";
216990
217015
  }
@@ -216993,7 +217018,7 @@ async function installGlobalPackage(specificVersion) {
216993
217018
  if (!env3.isRunningWithBun() && env3.isNpmFromWindowsPath()) {
216994
217019
  logError2(new Error("Windows NPM detected in WSL environment"));
216995
217020
  logEvent("theus_auto_updater_windows_npm_in_wsl", {
216996
- currentVersion: { VERSION: "0.2.66", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
217021
+ currentVersion: { VERSION: "0.2.67", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
216997
217022
  });
216998
217023
  console.error(`
216999
217024
  Error: Windows NPM detected in WSL
@@ -217012,7 +217037,7 @@ To fix this issue:
217012
217037
  if (!hasPermissions) {
217013
217038
  return "no_permissions";
217014
217039
  }
217015
- const packageSpec = specificVersion ? `${{ VERSION: "0.2.66", BUILD_TIME: "1970-01-01T00:00:00.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.66", BUILD_TIME: "1970-01-01T00:00:00.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;
217040
+ const packageSpec = specificVersion ? `${{ VERSION: "0.2.67", BUILD_TIME: "1970-01-01T00:00:00.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.67", BUILD_TIME: "1970-01-01T00:00:00.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;
217016
217041
  const packageManager = getGlobalInstallPackageManager();
217017
217042
  const installResult = await execFileNoThrowWithCwd(packageManager, ["install", "-g", packageSpec], { cwd: homedir17() });
217018
217043
  if (installResult.code !== 0) {
@@ -217340,8 +217365,8 @@ async function detectMultipleInstallations() {
217340
217365
  installations.push({ type: "npm-local", path: localPath });
217341
217366
  }
217342
217367
  const packagesToCheck = ["@theus-ai/theus-code"];
217343
- if ({ VERSION: "0.2.66", BUILD_TIME: "1970-01-01T00:00:00.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.66", BUILD_TIME: "1970-01-01T00:00:00.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") {
217344
- packagesToCheck.push({ VERSION: "0.2.66", BUILD_TIME: "1970-01-01T00:00:00.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);
217368
+ if ({ VERSION: "0.2.67", BUILD_TIME: "1970-01-01T00:00:00.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.67", BUILD_TIME: "1970-01-01T00:00:00.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") {
217369
+ packagesToCheck.push({ VERSION: "0.2.67", BUILD_TIME: "1970-01-01T00:00:00.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);
217345
217370
  }
217346
217371
  const npmResult = await execFileNoThrow("npm", [
217347
217372
  "-g",
@@ -217524,7 +217549,7 @@ function detectLinuxGlobPatternWarnings() {
217524
217549
  }
217525
217550
  async function getDoctorDiagnostic() {
217526
217551
  const installationType = await getCurrentInstallationType();
217527
- const version2 = { VERSION: "0.2.66", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.66", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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";
217552
+ const version2 = { VERSION: "0.2.67", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.67", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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";
217528
217553
  const installationPath = await getInstallationPath();
217529
217554
  const invokedBinary = getInvokedBinary();
217530
217555
  const multipleInstallations = await detectMultipleInstallations();
@@ -217536,8 +217561,8 @@ async function getDoctorDiagnostic() {
217536
217561
  for (const install of npmInstalls) {
217537
217562
  if (install.type === "npm-global") {
217538
217563
  let uninstallCmd = "npm -g uninstall @theus-ai/theus-code";
217539
- if ({ VERSION: "0.2.66", BUILD_TIME: "1970-01-01T00:00:00.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.66", BUILD_TIME: "1970-01-01T00:00:00.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") {
217540
- uninstallCmd += ` && npm -g uninstall ${{ VERSION: "0.2.66", BUILD_TIME: "1970-01-01T00:00:00.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}`;
217564
+ if ({ VERSION: "0.2.67", BUILD_TIME: "1970-01-01T00:00:00.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.67", BUILD_TIME: "1970-01-01T00:00:00.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") {
217565
+ uninstallCmd += ` && npm -g uninstall ${{ VERSION: "0.2.67", BUILD_TIME: "1970-01-01T00:00:00.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}`;
217541
217566
  }
217542
217567
  warnings.push({
217543
217568
  issue: `Leftover npm global installation at ${install.path}`,
@@ -218348,8 +218373,8 @@ async function updateLatest(channelOrVersion, forceReinstall = false) {
218348
218373
  const maxVersion = await getMaxVersion();
218349
218374
  if (maxVersion && gt(version2, maxVersion)) {
218350
218375
  logForDebugging(`Native installer: maxVersion ${maxVersion} is set, capping update from ${version2} to ${maxVersion}`);
218351
- if (gte({ VERSION: "0.2.66", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
218352
- logForDebugging(`Native installer: current version ${{ VERSION: "0.2.66", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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`);
218376
+ if (gte({ VERSION: "0.2.67", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
218377
+ logForDebugging(`Native installer: current version ${{ VERSION: "0.2.67", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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`);
218353
218378
  logEvent("theus_native_update_skipped_max_version", {
218354
218379
  latency_ms: Date.now() - startTime2,
218355
218380
  max_version: maxVersion,
@@ -218360,7 +218385,7 @@ async function updateLatest(channelOrVersion, forceReinstall = false) {
218360
218385
  version2 = maxVersion;
218361
218386
  }
218362
218387
  }
218363
- if (!forceReinstall && version2 === { VERSION: "0.2.66", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
218388
+ if (!forceReinstall && version2 === { VERSION: "0.2.67", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
218364
218389
  logForDebugging(`Found ${version2} at ${executablePath}, skipping install`);
218365
218390
  logEvent("theus_native_update_complete", {
218366
218391
  latency_ms: Date.now() - startTime2,
@@ -219110,8 +219135,8 @@ async function cleanupNpmInstallations() {
219110
219135
  } else if (codePackageResult.error) {
219111
219136
  errors4.push(codePackageResult.error);
219112
219137
  }
219113
- if ({ VERSION: "0.2.66", BUILD_TIME: "1970-01-01T00:00:00.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.66", BUILD_TIME: "1970-01-01T00:00:00.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") {
219114
- const macroPackageResult = await attemptNpmUninstall({ VERSION: "0.2.66", BUILD_TIME: "1970-01-01T00:00:00.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);
219138
+ if ({ VERSION: "0.2.67", BUILD_TIME: "1970-01-01T00:00:00.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.67", BUILD_TIME: "1970-01-01T00:00:00.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") {
219139
+ const macroPackageResult = await attemptNpmUninstall({ VERSION: "0.2.67", BUILD_TIME: "1970-01-01T00:00:00.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);
219115
219140
  if (macroPackageResult.success) {
219116
219141
  removed++;
219117
219142
  if (macroPackageResult.warning) {
@@ -229591,6 +229616,16 @@ var init_ConsoleOAuthFlow = __esm(() => {
229591
229616
  var NOVEDADES;
229592
229617
  var init_data = __esm(() => {
229593
229618
  NOVEDADES = [
229619
+ {
229620
+ version: "v0.2.67",
229621
+ fecha: "2026-08-13",
229622
+ titulo: "Si un proveedor falla, te decimos cu\xE1l y por qu\xE9",
229623
+ puntos: [
229624
+ "Cuando el proveedor de un modelo fallaba, el CLI segu\xEDa probando alternativas hasta rendirse por tiempo y mostraba \xABRequest timed out\xBB \u2014 un mensaje que no explicaba nada. Ahora, si el servidor ya agot\xF3 sus alternativas, el turno corta al instante y te muestra el motivo real: qu\xE9 modelo, qu\xE9 fall\xF3 y qu\xE9 puedes hacer.",
229625
+ "El servidor acompa\xF1a: cada fallo de proveedor queda registrado con nombre y causa, y los errores de par\xE1metros (por ejemplo un max_tokens imposible) llegan como lo que son \u2014 algo corregible \u2014 en vez de disfrazarse de error del gateway.",
229626
+ "El comando /upgrade abr\xEDa una p\xE1gina que ya no existe; ahora te lleva a la p\xE1gina real de planes en theus.pe/precios."
229627
+ ]
229628
+ },
229594
229629
  {
229595
229630
  version: "v0.2.62",
229596
229631
  fecha: "2026-07-29",
@@ -306251,9 +306286,9 @@ function getTheusEnvMetadata() {
306251
306286
  };
306252
306287
  }
306253
306288
  function getBuildAgeMinutes() {
306254
- if (!{ VERSION: "0.2.66", BUILD_TIME: "1970-01-01T00:00:00.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)
306289
+ if (!{ VERSION: "0.2.67", BUILD_TIME: "1970-01-01T00:00:00.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)
306255
306290
  return;
306256
- const buildTime = new Date({ VERSION: "0.2.66", BUILD_TIME: "1970-01-01T00:00:00.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();
306291
+ const buildTime = new Date({ VERSION: "0.2.67", BUILD_TIME: "1970-01-01T00:00:00.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();
306257
306292
  if (isNaN(buildTime))
306258
306293
  return;
306259
306294
  return Math.floor((Date.now() - buildTime) / 60000);
@@ -322732,6 +322767,12 @@ function getAssistantMessageFromError(error40, model, options2) {
322732
322767
  error: "rate_limit"
322733
322768
  });
322734
322769
  }
322770
+ if (error40 instanceof GatewayUpstreamError) {
322771
+ return createAssistantAPIErrorMessage({
322772
+ content: error40.detail,
322773
+ error: "unknown"
322774
+ });
322775
+ }
322735
322776
  if (error40 instanceof import_sdk10.APIConnectionTimeoutError || error40 instanceof import_sdk10.APIConnectionError && error40.message.toLowerCase().includes("timeout")) {
322736
322777
  return createAssistantAPIErrorMessage({
322737
322778
  content: API_TIMEOUT_ERROR_MESSAGE,
@@ -330730,7 +330771,7 @@ async function submitTranscriptShare(messages, trigger, appearanceId) {
330730
330771
  } catch {}
330731
330772
  const data = {
330732
330773
  trigger,
330733
- version: { VERSION: "0.2.66", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
330774
+ version: { VERSION: "0.2.67", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
330734
330775
  platform: process.platform,
330735
330776
  transcript,
330736
330777
  subagentTranscripts: Object.keys(subagentTranscripts).length > 0 ? subagentTranscripts : undefined,
@@ -330935,10 +330976,10 @@ Si el usuario indic\xF3 una duraci\xF3n, p\xE1sala en el par\xE1metro \`duration
330935
330976
 
330936
330977
  // commands/issue/index.ts
330937
330978
  function getCliVersion() {
330938
- return { VERSION: "0.2.66", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.66", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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";
330979
+ return { VERSION: "0.2.67", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.67", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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";
330939
330980
  }
330940
330981
  function getIssuesExplainer() {
330941
- return { VERSION: "0.2.66", BUILD_TIME: "1970-01-01T00:00:00.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.66", BUILD_TIME: "1970-01-01T00:00:00.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";
330982
+ return { VERSION: "0.2.67", BUILD_TIME: "1970-01-01T00:00:00.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.67", BUILD_TIME: "1970-01-01T00:00:00.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";
330942
330983
  }
330943
330984
  function getActiveModelLabel() {
330944
330985
  try {
@@ -333735,7 +333776,7 @@ function buildPrimarySection() {
333735
333776
  });
333736
333777
  return [{
333737
333778
  label: "Version",
333738
- value: { VERSION: "0.2.66", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
333779
+ value: { VERSION: "0.2.67", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
333739
333780
  }, {
333740
333781
  label: "Session name",
333741
333782
  value: nameValue
@@ -337551,7 +337592,7 @@ function Config({
337551
337592
  }
337552
337593
  })
337553
337594
  }) : showSubmenu === "ChannelDowngrade" ? /* @__PURE__ */ jsx_runtime189.jsx(ChannelDowngradeDialog, {
337554
- currentVersion: { VERSION: "0.2.66", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
337595
+ currentVersion: { VERSION: "0.2.67", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
337555
337596
  onChoice: (choice) => {
337556
337597
  setShowSubmenu(null);
337557
337598
  setTabsHidden(false);
@@ -337563,7 +337604,7 @@ function Config({
337563
337604
  autoUpdatesChannel: "stable"
337564
337605
  };
337565
337606
  if (choice === "stay") {
337566
- newSettings.minimumVersion = { VERSION: "0.2.66", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION;
337607
+ newSettings.minimumVersion = { VERSION: "0.2.67", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION;
337567
337608
  }
337568
337609
  updateSettingsForSource("userSettings", newSettings);
337569
337610
  setSettingsData((prev_27) => ({
@@ -345383,7 +345424,7 @@ function HelpV2(t0) {
345383
345424
  let t6;
345384
345425
  if ($2[31] !== tabs) {
345385
345426
  t6 = /* @__PURE__ */ jsx_runtime217.jsx(Tabs, {
345386
- title: `Theus v${{ VERSION: "0.2.66", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION}`,
345427
+ title: `Theus v${{ VERSION: "0.2.67", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION}`,
345387
345428
  color: "professionalBlue",
345388
345429
  defaultTab: "general",
345389
345430
  children: tabs
@@ -363635,7 +363676,7 @@ function Onboarding({
363635
363676
  flexDirection: "column",
363636
363677
  children: [
363637
363678
  /* @__PURE__ */ jsx_runtime250.jsx(TheusBanner, {
363638
- version: { VERSION: "0.2.66", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
363679
+ version: { VERSION: "0.2.67", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
363639
363680
  }),
363640
363681
  /* @__PURE__ */ jsx_runtime250.jsxs(ThemedBox_default, {
363641
363682
  flexDirection: "column",
@@ -365039,7 +365080,7 @@ function getAllReleaseNotes(changelogContent = getStoredChangelogFromMemory()) {
365039
365080
  return [];
365040
365081
  }
365041
365082
  }
365042
- async function checkForReleaseNotes(lastSeenVersion, currentVersion = { VERSION: "0.2.66", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION) {
365083
+ async function checkForReleaseNotes(lastSeenVersion, currentVersion = { VERSION: "0.2.67", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION) {
365043
365084
  if (false) {}
365044
365085
  const cachedChangelog = await getStoredChangelog();
365045
365086
  if (lastSeenVersion !== currentVersion || !cachedChangelog) {
@@ -369229,7 +369270,7 @@ var init_Messages = __esm(() => {
369229
369270
  let t1;
369230
369271
  if ($2[0] === Symbol.for("react.memo_cache_sentinel")) {
369231
369272
  t1 = /* @__PURE__ */ jsx_runtime263.jsx(TheusSessionHeader, {
369232
- version: { VERSION: "0.2.66", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
369273
+ version: { VERSION: "0.2.67", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
369233
369274
  });
369234
369275
  $2[0] = t1;
369235
369276
  } else {
@@ -399767,7 +399808,7 @@ async function captureMemoryDiagnostics(trigger, dumpNumber = 0) {
399767
399808
  smapsRollup,
399768
399809
  platform: process.platform,
399769
399810
  nodeVersion: process.version,
399770
- ccVersion: { VERSION: "0.2.66", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
399811
+ ccVersion: { VERSION: "0.2.67", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
399771
399812
  };
399772
399813
  }
399773
399814
  async function performHeapDump(trigger = "manual", dumpNumber = 0) {
@@ -400528,7 +400569,7 @@ var init_bridge_kick = __esm(() => {
400528
400569
  var call67 = async () => {
400529
400570
  return {
400530
400571
  type: "text",
400531
- value: { VERSION: "0.2.66", BUILD_TIME: "1970-01-01T00:00:00.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.66", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.66", BUILD_TIME: "1970-01-01T00:00:00.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.66", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
400572
+ value: { VERSION: "0.2.67", BUILD_TIME: "1970-01-01T00:00:00.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.67", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.67", BUILD_TIME: "1970-01-01T00:00:00.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.67", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
400532
400573
  };
400533
400574
  }, version2, version_default;
400534
400575
  var init_version = __esm(() => {
@@ -403129,7 +403170,7 @@ var SECRET_NAME_PATTERN, EXTRA_ENV_ALLOWLIST, REDACTED2 = "\u2039oculto\u203A",
403129
403170
  const lines = [];
403130
403171
  lines.push("## Entorno de ejecuci\xF3n");
403131
403172
  lines.push("");
403132
- const version3 = { VERSION: "0.2.66", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.66", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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";
403173
+ const version3 = { VERSION: "0.2.67", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.67", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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";
403133
403174
  lines.push(`- Versi\xF3n de Theus: ${version3}`);
403134
403175
  lines.push(`- Directorio de trabajo: ${getCwd()}`);
403135
403176
  lines.push(`- \xBFRepositorio git?: ${isGit ? "s\xED" : "no"}`);
@@ -405670,13 +405711,13 @@ async function updateReleaseBundle() {
405670
405711
  await gracefulShutdown(1);
405671
405712
  return;
405672
405713
  }
405673
- if (gte({ VERSION: "0.2.66", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
405674
- writeToStdout(source_default.green(`Theus is up to date (${{ VERSION: "0.2.66", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION})`) + `
405714
+ if (gte({ VERSION: "0.2.67", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
405715
+ writeToStdout(source_default.green(`Theus is up to date (${{ VERSION: "0.2.67", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION})`) + `
405675
405716
  `);
405676
405717
  await gracefulShutdown(0);
405677
405718
  return;
405678
405719
  }
405679
- writeToStdout(`New version available: ${latest} (current: ${{ VERSION: "0.2.66", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION})
405720
+ writeToStdout(`New version available: ${latest} (current: ${{ VERSION: "0.2.67", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION})
405680
405721
  `);
405681
405722
  writeToStdout(`Installing update from theus.pe/dl...
405682
405723
  `);
@@ -405710,7 +405751,7 @@ async function updateReleaseBundle() {
405710
405751
  return;
405711
405752
  }
405712
405753
  cpSync(staged, bundleDir, { recursive: true, force: true });
405713
- writeToStdout(source_default.green(`Successfully updated from ${{ VERSION: "0.2.66", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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}`) + `
405754
+ writeToStdout(source_default.green(`Successfully updated from ${{ VERSION: "0.2.67", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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}`) + `
405714
405755
  `);
405715
405756
  await regenerateCompletionCache();
405716
405757
  } finally {
@@ -405723,7 +405764,7 @@ async function updateReleaseBundle() {
405723
405764
  async function update() {
405724
405765
  logEvent("theus_update_check", {});
405725
405766
  await updateNaupa();
405726
- writeToStdout(`Current version: ${{ VERSION: "0.2.66", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION}
405767
+ writeToStdout(`Current version: ${{ VERSION: "0.2.67", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION}
405727
405768
  `);
405728
405769
  const channel2 = getInitialSettings()?.autoUpdatesChannel ?? "latest";
405729
405770
  writeToStdout(`Checking for updates to ${channel2} version...
@@ -405802,8 +405843,8 @@ async function update() {
405802
405843
  writeToStdout(`Theus is managed by Homebrew.
405803
405844
  `);
405804
405845
  const latest = await getLatestVersion(channel2);
405805
- if (latest && !gte({ VERSION: "0.2.66", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
405806
- writeToStdout(`Update available: ${{ VERSION: "0.2.66", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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}
405846
+ if (latest && !gte({ VERSION: "0.2.67", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
405847
+ writeToStdout(`Update available: ${{ VERSION: "0.2.67", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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}
405807
405848
  `);
405808
405849
  writeToStdout(`
405809
405850
  `);
@@ -405819,8 +405860,8 @@ async function update() {
405819
405860
  writeToStdout(`Theus is managed by winget.
405820
405861
  `);
405821
405862
  const latest = await getLatestVersion(channel2);
405822
- if (latest && !gte({ VERSION: "0.2.66", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
405823
- writeToStdout(`Update available: ${{ VERSION: "0.2.66", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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}
405863
+ if (latest && !gte({ VERSION: "0.2.67", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
405864
+ writeToStdout(`Update available: ${{ VERSION: "0.2.67", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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}
405824
405865
  `);
405825
405866
  writeToStdout(`
405826
405867
  `);
@@ -405836,8 +405877,8 @@ async function update() {
405836
405877
  writeToStdout(`Theus is managed by apk.
405837
405878
  `);
405838
405879
  const latest = await getLatestVersion(channel2);
405839
- if (latest && !gte({ VERSION: "0.2.66", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
405840
- writeToStdout(`Update available: ${{ VERSION: "0.2.66", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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}
405880
+ if (latest && !gte({ VERSION: "0.2.67", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
405881
+ writeToStdout(`Update available: ${{ VERSION: "0.2.67", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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}
405841
405882
  `);
405842
405883
  writeToStdout(`
405843
405884
  `);
@@ -405902,11 +405943,11 @@ async function update() {
405902
405943
  `);
405903
405944
  await gracefulShutdown(1);
405904
405945
  }
405905
- if (result.latestVersion === { VERSION: "0.2.66", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION) {
405906
- writeToStdout(source_default.green(`Theus is up to date (${{ VERSION: "0.2.66", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION})`) + `
405946
+ if (result.latestVersion === { VERSION: "0.2.67", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION) {
405947
+ writeToStdout(source_default.green(`Theus is up to date (${{ VERSION: "0.2.67", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION})`) + `
405907
405948
  `);
405908
405949
  } else {
405909
- writeToStdout(source_default.green(`Successfully updated from ${{ VERSION: "0.2.66", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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}`) + `
405950
+ writeToStdout(source_default.green(`Successfully updated from ${{ VERSION: "0.2.67", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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}`) + `
405910
405951
  `);
405911
405952
  await regenerateCompletionCache();
405912
405953
  }
@@ -405925,9 +405966,9 @@ async function update() {
405925
405966
  await removeInstalledSymlink();
405926
405967
  }
405927
405968
  logForDebugging("update: Checking npm registry for latest version");
405928
- logForDebugging(`update: Package URL: ${{ VERSION: "0.2.66", BUILD_TIME: "1970-01-01T00:00:00.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}`);
405969
+ logForDebugging(`update: Package URL: ${{ VERSION: "0.2.67", BUILD_TIME: "1970-01-01T00:00:00.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}`);
405929
405970
  const npmTag = channel2 === "stable" ? "stable" : "latest";
405930
- const npmCommand = `npm view ${{ VERSION: "0.2.66", BUILD_TIME: "1970-01-01T00:00:00.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`;
405971
+ const npmCommand = `npm view ${{ VERSION: "0.2.67", BUILD_TIME: "1970-01-01T00:00:00.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`;
405931
405972
  logForDebugging(`update: Running: ${npmCommand}`);
405932
405973
  const latestVersion = await getLatestVersion(channel2);
405933
405974
  logForDebugging(`update: Latest version from npm: ${latestVersion || "FAILED"}`);
@@ -405947,7 +405988,7 @@ async function update() {
405947
405988
  `);
405948
405989
  process.stderr.write(` \u2022 Corporate proxy/firewall blocking npm
405949
405990
  `);
405950
- if ({ VERSION: "0.2.66", BUILD_TIME: "1970-01-01T00:00:00.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.66", BUILD_TIME: "1970-01-01T00:00:00.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")) {
405991
+ if ({ VERSION: "0.2.67", BUILD_TIME: "1970-01-01T00:00:00.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.67", BUILD_TIME: "1970-01-01T00:00:00.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")) {
405951
405992
  process.stderr.write(` \u2022 Internal/development build not published to npm
405952
405993
  `);
405953
405994
  }
@@ -405959,19 +406000,19 @@ async function update() {
405959
406000
  `);
405960
406001
  process.stderr.write(` \u2022 Run with --debug flag for more details
405961
406002
  `);
405962
- const packageName = { VERSION: "0.2.66", BUILD_TIME: "1970-01-01T00:00:00.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";
406003
+ const packageName = { VERSION: "0.2.67", BUILD_TIME: "1970-01-01T00:00:00.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";
405963
406004
  process.stderr.write(` \u2022 Manually check: npm view ${packageName} version
405964
406005
  `);
405965
406006
  process.stderr.write(` \u2022 Check if you need to login: npm whoami
405966
406007
  `);
405967
406008
  await gracefulShutdown(1);
405968
406009
  }
405969
- if (gte({ VERSION: "0.2.66", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
405970
- writeToStdout(source_default.green(`Theus is up to date (${{ VERSION: "0.2.66", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION})`) + `
406010
+ if (gte({ VERSION: "0.2.67", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
406011
+ writeToStdout(source_default.green(`Theus is up to date (${{ VERSION: "0.2.67", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION})`) + `
405971
406012
  `);
405972
406013
  await gracefulShutdown(0);
405973
406014
  }
405974
- writeToStdout(`New version available: ${latestVersion} (current: ${{ VERSION: "0.2.66", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION})
406015
+ writeToStdout(`New version available: ${latestVersion} (current: ${{ VERSION: "0.2.67", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION})
405975
406016
  `);
405976
406017
  writeToStdout(`Installing update...
405977
406018
  `);
@@ -406016,7 +406057,7 @@ async function update() {
406016
406057
  logForDebugging(`update: Installation status: ${status2}`);
406017
406058
  switch (status2) {
406018
406059
  case "success":
406019
- writeToStdout(source_default.green(`Successfully updated from ${{ VERSION: "0.2.66", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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}`) + `
406060
+ writeToStdout(source_default.green(`Successfully updated from ${{ VERSION: "0.2.67", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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}`) + `
406020
406061
  `);
406021
406062
  await regenerateCompletionCache();
406022
406063
  break;
@@ -406026,7 +406067,7 @@ async function update() {
406026
406067
  if (useLocalUpdate) {
406027
406068
  process.stderr.write(`Try manually updating with:
406028
406069
  `);
406029
- process.stderr.write(` cd ~/.theus/local && npm update ${{ VERSION: "0.2.66", BUILD_TIME: "1970-01-01T00:00:00.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}
406070
+ process.stderr.write(` cd ~/.theus/local && npm update ${{ VERSION: "0.2.67", BUILD_TIME: "1970-01-01T00:00:00.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}
406030
406071
  `);
406031
406072
  } else {
406032
406073
  process.stderr.write(`Try running with sudo or fix npm permissions
@@ -406042,7 +406083,7 @@ async function update() {
406042
406083
  if (useLocalUpdate) {
406043
406084
  process.stderr.write(`Try manually updating with:
406044
406085
  `);
406045
- process.stderr.write(` cd ~/.theus/local && npm update ${{ VERSION: "0.2.66", BUILD_TIME: "1970-01-01T00:00:00.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}
406086
+ process.stderr.write(` cd ~/.theus/local && npm update ${{ VERSION: "0.2.67", BUILD_TIME: "1970-01-01T00:00:00.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}
406046
406087
  `);
406047
406088
  } else {
406048
406089
  process.stderr.write(`Or consider using native installation with: theus install
@@ -406126,7 +406167,7 @@ async function call85(onDone, context3) {
406126
406167
  return null;
406127
406168
  }
406128
406169
  }
406129
- const url3 = "https://theus.pe/upgrade/max";
406170
+ const url3 = "https://theus.pe/precios/";
406130
406171
  await openBrowser(url3);
406131
406172
  return /* @__PURE__ */ jsx_runtime360.jsx(Login, {
406132
406173
  startingMessage: "Starting new login following /upgrade. Exit with Ctrl-C to use existing account.",
@@ -415597,7 +415638,7 @@ var init_sessionStorage = __esm(() => {
415597
415638
  init_settings2();
415598
415639
  init_slowOperations();
415599
415640
  init_uuid();
415600
- VERSION4 = { VERSION: "0.2.66", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION;
415641
+ VERSION4 = { VERSION: "0.2.67", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION;
415601
415642
  MAX_TOMBSTONE_REWRITE_BYTES = 50 * 1024 * 1024;
415602
415643
  SKIP_FIRST_PROMPT_PATTERN2 = /^(?:\s*<[a-z][\w-]*[\s>]|\[Request interrupted by user[^\]]*\])/;
415603
415644
  EPHEMERAL_PROGRESS_TYPES = new Set([
@@ -416802,7 +416843,7 @@ var init_filesystem = __esm(() => {
416802
416843
  });
416803
416844
  getBundledSkillsRoot = memoize_default(function getBundledSkillsRoot2() {
416804
416845
  const nonce = randomBytes21(16).toString("hex");
416805
- return join150(getTheusTempDir(), "bundled-skills", { VERSION: "0.2.66", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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);
416846
+ return join150(getTheusTempDir(), "bundled-skills", { VERSION: "0.2.67", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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);
416806
416847
  });
416807
416848
  getResolvedWorkingDirPaths = memoize_default(getPathsForPermissionCheck);
416808
416849
  });
@@ -421978,7 +422019,7 @@ function getSimpleDoingTasksSection() {
421978
422019
  ];
421979
422020
  const userHelpSubitems = [
421980
422021
  `/help: Get help with using Theus`,
421981
- `To give feedback, users should ${{ VERSION: "0.2.66", BUILD_TIME: "1970-01-01T00:00:00.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}`
422022
+ `To give feedback, users should ${{ VERSION: "0.2.67", BUILD_TIME: "1970-01-01T00:00:00.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}`
421982
422023
  ];
421983
422024
  const items = [
421984
422025
  `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.`,
@@ -422859,7 +422900,7 @@ function computeFingerprint(messageText, version3) {
422859
422900
  }
422860
422901
  function computeFingerprintFromMessages(messages) {
422861
422902
  const firstMessageText = extractFirstMessageText(messages);
422862
- return computeFingerprint(firstMessageText, { VERSION: "0.2.66", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION);
422903
+ return computeFingerprint(firstMessageText, { VERSION: "0.2.67", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION);
422863
422904
  }
422864
422905
  var FINGERPRINT_SALT = "59cf53e54c78";
422865
422906
  var init_fingerprint = () => {};
@@ -425116,6 +425157,10 @@ async function* callOpenAICompatible({
425116
425157
  if (quotaBody !== undefined) {
425117
425158
  throw new GatewayQuotaExceededError(quotaBody, response.status);
425118
425159
  }
425160
+ const upstreamDetail = parseGatewayUpstreamDetail(streamDetail);
425161
+ if (upstreamDetail !== undefined) {
425162
+ throw new GatewayUpstreamError(upstreamDetail, response.status);
425163
+ }
425119
425164
  logError2(`[Theus router] El provider '${provider.id}' rechaz\xF3 el streaming (${response.status}); reintentando sin stream.`);
425120
425165
  response = await fetch(url3, {
425121
425166
  method: "POST",
@@ -425129,6 +425174,10 @@ async function* callOpenAICompatible({
425129
425174
  if (retryQuota !== undefined) {
425130
425175
  throw new GatewayQuotaExceededError(retryQuota, response.status);
425131
425176
  }
425177
+ const retryUpstream = parseGatewayUpstreamDetail(detail);
425178
+ if (retryUpstream !== undefined) {
425179
+ throw new GatewayUpstreamError(retryUpstream, response.status);
425180
+ }
425132
425181
  throw new Error(`${provider.id} ${response.status} ${response.statusText}${detail ? `: ${detail.slice(0, 500)}` : ""}`);
425133
425182
  }
425134
425183
  }
@@ -425394,6 +425443,9 @@ async function* queryModelWithTheusProviders({
425394
425443
  if (error40 instanceof GatewayQuotaExceededError) {
425395
425444
  throw error40;
425396
425445
  }
425446
+ if (error40 instanceof GatewayUpstreamError) {
425447
+ throw error40;
425448
+ }
425397
425449
  if (streamStarted && !streamEnded) {
425398
425450
  for (const index of openBlocks) {
425399
425451
  yield {
@@ -425485,7 +425537,7 @@ async function sideQuery(opts) {
425485
425537
  betas.push(STRUCTURED_OUTPUTS_BETA_HEADER);
425486
425538
  }
425487
425539
  const messageText = extractFirstUserMessageText(messages);
425488
- const fingerprint = computeFingerprint(messageText, { VERSION: "0.2.66", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION);
425540
+ const fingerprint = computeFingerprint(messageText, { VERSION: "0.2.67", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION);
425489
425541
  const attributionHeader = getAttributionHeader(fingerprint);
425490
425542
  const systemBlocks = [
425491
425543
  attributionHeader ? { type: "text", text: attributionHeader } : null,
@@ -426759,7 +426811,7 @@ async function handleMemories(state) {
426759
426811
  async function runProjectContextMcpServer() {
426760
426812
  const projectRoot = process.env.THEUS_PROJECT_ROOT || process.cwd();
426761
426813
  const state = new ProjectContextState(projectRoot);
426762
- const server2 = new Server({ name: SERVER_NAME, version: { VERSION: "0.2.66", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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: {} } });
426814
+ const server2 = new Server({ name: SERVER_NAME, version: { VERSION: "0.2.67", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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: {} } });
426763
426815
  server2.setRequestHandler(ListToolsRequestSchema, async () => ({
426764
426816
  tools: TOOL_DEFINITIONS.map((t) => ({
426765
426817
  name: t.name,
@@ -429436,7 +429488,7 @@ async function runTitanFleetWorker(args) {
429436
429488
  max_concurrency: maxConcurrency,
429437
429489
  runtime: {
429438
429490
  name: "theus-cli",
429439
- version: { VERSION: "0.2.66", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
429491
+ version: { VERSION: "0.2.67", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
429440
429492
  }
429441
429493
  });
429442
429494
  const client2 = new TitanFleetClient({
@@ -431327,7 +431379,7 @@ function createBridgeLogger(options2) {
431327
431379
  connectUrl = buildBridgeConnectUrl(environmentId, cachedIngressUrl);
431328
431380
  regenerateQr(connectUrl);
431329
431381
  if (verbose) {
431330
- write(source_default.dim(`Remote Control`) + ` v${{ VERSION: "0.2.66", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION}
431382
+ write(source_default.dim(`Remote Control`) + ` v${{ VERSION: "0.2.67", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION}
431331
431383
  `);
431332
431384
  }
431333
431385
  if (verbose) {
@@ -432300,7 +432352,7 @@ function appendToLog(path19, message) {
432300
432352
  cwd: getFsImplementation().cwd(),
432301
432353
  userType: "external",
432302
432354
  sessionId: getSessionId(),
432303
- version: { VERSION: "0.2.66", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
432355
+ version: { VERSION: "0.2.67", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
432304
432356
  };
432305
432357
  getLogWriter(path19).write(messageWithTimestamp);
432306
432358
  }
@@ -433561,7 +433613,7 @@ Spawn mode for this project:
433561
433613
  const api2 = createBridgeApiClient({
433562
433614
  baseUrl,
433563
433615
  getAccessToken: getBridgeAccessToken2,
433564
- runnerVersion: { VERSION: "0.2.66", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
433616
+ runnerVersion: { VERSION: "0.2.67", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
433565
433617
  onDebug: logForDebugging,
433566
433618
  onAuth401: handleOAuth401Error2,
433567
433619
  getTrustedDeviceToken
@@ -433799,7 +433851,7 @@ async function runBridgeHeadless(opts, signal) {
433799
433851
  const api2 = createBridgeApiClient({
433800
433852
  baseUrl,
433801
433853
  getAccessToken: opts.getAccessToken,
433802
- runnerVersion: { VERSION: "0.2.66", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
433854
+ runnerVersion: { VERSION: "0.2.67", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
433803
433855
  onDebug: log2,
433804
433856
  onAuth401: opts.onAuth401,
433805
433857
  getTrustedDeviceToken
@@ -437860,7 +437912,7 @@ function buildSystemInitMessage(inputs) {
437860
437912
  slash_commands: inputs.commands.filter((c5) => c5.userInvocable !== false).map((c5) => c5.name),
437861
437913
  apiKeySource: getTheusApiKeyWithSource().source,
437862
437914
  betas: getSdkBetas(),
437863
- theus_code_version: { VERSION: "0.2.66", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
437915
+ theus_code_version: { VERSION: "0.2.67", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
437864
437916
  output_style: outputStyle2,
437865
437917
  agents: inputs.agents.map((agent) => agent.agentType),
437866
437918
  skills: inputs.skills.filter((s) => s.userInvocable !== false).map((skill) => skill.name),
@@ -437900,8 +437952,8 @@ async function getEnvLessBridgeConfig() {
437900
437952
  }
437901
437953
  async function checkEnvLessBridgeMinVersion() {
437902
437954
  const cfg = await getEnvLessBridgeConfig();
437903
- if (cfg.min_version && lt({ VERSION: "0.2.66", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
437904
- return `Your version of Theus (${{ VERSION: "0.2.66", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.
437955
+ if (cfg.min_version && lt({ VERSION: "0.2.67", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
437956
+ return `Your version of Theus (${{ VERSION: "0.2.67", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.
437905
437957
  Version ${cfg.min_version} or higher is required. Run \`theus update\` to update.`;
437906
437958
  }
437907
437959
  return null;
@@ -440225,7 +440277,7 @@ async function initBridgeCore(params) {
440225
440277
  const rawApi = createBridgeApiClient({
440226
440278
  baseUrl,
440227
440279
  getAccessToken,
440228
- runnerVersion: { VERSION: "0.2.66", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
440280
+ runnerVersion: { VERSION: "0.2.67", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
440229
440281
  onDebug: logForDebugging,
440230
440282
  onAuth401,
440231
440283
  getTrustedDeviceToken
@@ -456866,7 +456918,7 @@ var init_useVoiceEnabled = __esm(() => {
456866
456918
  function getSemverPart(version3) {
456867
456919
  return `${import_semver14.major(version3, { loose: true })}.${import_semver14.minor(version3, { loose: true })}.${import_semver14.patch(version3, { loose: true })}`;
456868
456920
  }
456869
- function useUpdateNotification(updatedVersion, initialVersion = { VERSION: "0.2.66", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION) {
456921
+ function useUpdateNotification(updatedVersion, initialVersion = { VERSION: "0.2.67", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION) {
456870
456922
  const [lastNotifiedSemver, setLastNotifiedSemver] = import_react236.useState(() => getSemverPart(initialVersion));
456871
456923
  if (!updatedVersion) {
456872
456924
  return null;
@@ -456906,7 +456958,7 @@ function AutoUpdater({
456906
456958
  return;
456907
456959
  }
456908
456960
  if (false) {}
456909
- const currentVersion = { VERSION: "0.2.66", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION;
456961
+ const currentVersion = { VERSION: "0.2.67", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION;
456910
456962
  const channel2 = getInitialSettings()?.autoUpdatesChannel ?? "latest";
456911
456963
  let latestVersion = await getLatestVersion(channel2);
456912
456964
  const isDisabled2 = isAutoUpdaterDisabled();
@@ -457042,7 +457094,7 @@ function AutoUpdater({
457042
457094
  " ",
457043
457095
  /* @__PURE__ */ jsx_runtime414.jsx(ThemedText, {
457044
457096
  bold: true,
457045
- children: hasLocalInstall ? `cd ~/.theus/local && npm update ${{ VERSION: "0.2.66", BUILD_TIME: "1970-01-01T00:00:00.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.66", BUILD_TIME: "1970-01-01T00:00:00.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}`
457097
+ children: hasLocalInstall ? `cd ~/.theus/local && npm update ${{ VERSION: "0.2.67", BUILD_TIME: "1970-01-01T00:00:00.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.67", BUILD_TIME: "1970-01-01T00:00:00.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}`
457046
457098
  })
457047
457099
  ]
457048
457100
  })
@@ -457119,12 +457171,12 @@ function NativeAutoUpdater({
457119
457171
  logEvent("theus_native_auto_updater_start", {});
457120
457172
  try {
457121
457173
  const maxVersion = await getMaxVersion();
457122
- if (maxVersion && gt({ VERSION: "0.2.66", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
457174
+ if (maxVersion && gt({ VERSION: "0.2.67", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
457123
457175
  const msg = await getMaxVersionMessage();
457124
457176
  setMaxVersionIssue(msg ?? "affects your version");
457125
457177
  }
457126
457178
  const result = await installLatest(channel2);
457127
- const currentVersion = { VERSION: "0.2.66", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION;
457179
+ const currentVersion = { VERSION: "0.2.67", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION;
457128
457180
  const latencyMs = Date.now() - startTime2;
457129
457181
  if (result.lockFailed) {
457130
457182
  logEvent("theus_native_auto_updater_lock_contention", {
@@ -457261,17 +457313,17 @@ function PackageManagerAutoUpdater(t0) {
457261
457313
  const maxVersion = await getMaxVersion();
457262
457314
  if (maxVersion && latest && gt(latest, maxVersion)) {
457263
457315
  logForDebugging(`PackageManagerAutoUpdater: maxVersion ${maxVersion} is set, capping update from ${latest} to ${maxVersion}`);
457264
- if (gte({ VERSION: "0.2.66", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
457265
- logForDebugging(`PackageManagerAutoUpdater: current version ${{ VERSION: "0.2.66", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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`);
457316
+ if (gte({ VERSION: "0.2.67", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
457317
+ logForDebugging(`PackageManagerAutoUpdater: current version ${{ VERSION: "0.2.67", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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`);
457266
457318
  setUpdateAvailable(false);
457267
457319
  return;
457268
457320
  }
457269
457321
  latest = maxVersion;
457270
457322
  }
457271
- const hasUpdate = latest && !gte({ VERSION: "0.2.66", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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);
457323
+ const hasUpdate = latest && !gte({ VERSION: "0.2.67", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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);
457272
457324
  setUpdateAvailable(!!hasUpdate);
457273
457325
  if (hasUpdate) {
457274
- logForDebugging(`PackageManagerAutoUpdater: Update available ${{ VERSION: "0.2.66", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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}`);
457326
+ logForDebugging(`PackageManagerAutoUpdater: Update available ${{ VERSION: "0.2.67", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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}`);
457275
457327
  }
457276
457328
  };
457277
457329
  $2[0] = t1;
@@ -457305,7 +457357,7 @@ function PackageManagerAutoUpdater(t0) {
457305
457357
  wrap: "truncate",
457306
457358
  children: [
457307
457359
  "currentVersion: ",
457308
- { VERSION: "0.2.66", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
457360
+ { VERSION: "0.2.67", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
457309
457361
  ]
457310
457362
  });
457311
457363
  $2[3] = verbose;
@@ -465168,7 +465220,7 @@ function buildStatusLineCommandInput(permissionMode2, exceeds200kTokens, setting
465168
465220
  project_dir: getOriginalCwd(),
465169
465221
  added_dirs: addedDirs
465170
465222
  },
465171
- version: { VERSION: "0.2.66", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
465223
+ version: { VERSION: "0.2.67", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
465172
465224
  output_style: {
465173
465225
  name: outputStyleName
465174
465226
  },
@@ -489467,7 +489519,7 @@ function completeOnboarding() {
489467
489519
  saveGlobalConfig((current) => ({
489468
489520
  ...current,
489469
489521
  hasCompletedOnboarding: true,
489470
- lastOnboardingVersion: { VERSION: "0.2.66", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
489522
+ lastOnboardingVersion: { VERSION: "0.2.67", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
489471
489523
  }));
489472
489524
  }
489473
489525
  function showDialog(root2, renderer) {
@@ -501571,7 +501623,7 @@ async function startMCPServer(cwd3, debug3, verbose) {
501571
501623
  setCwd(cwd3);
501572
501624
  const server2 = new Server({
501573
501625
  name: "theus/tengu",
501574
- version: { VERSION: "0.2.66", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
501626
+ version: { VERSION: "0.2.67", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
501575
501627
  }, {
501576
501628
  capabilities: {
501577
501629
  tools: {}
@@ -503013,7 +503065,7 @@ async function setupTokenHandler(root2) {
503013
503065
  gap: 1,
503014
503066
  children: [
503015
503067
  /* @__PURE__ */ jsx_runtime502.jsx(TheusBanner, {
503016
- version: { VERSION: "0.2.66", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
503068
+ version: { VERSION: "0.2.67", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
503017
503069
  }),
503018
503070
  showAuthWarning && /* @__PURE__ */ jsx_runtime502.jsxs(ThemedBox_default, {
503019
503071
  flexDirection: "column",
@@ -504598,7 +504650,7 @@ ${assistantAddendum}` : assistantAddendum;
504598
504650
  }
504599
504651
  }
504600
504652
  logForDiagnosticsNoPII("info", "started", {
504601
- version: { VERSION: "0.2.66", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
504653
+ version: { VERSION: "0.2.67", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
504602
504654
  is_native_binary: isInBundledMode()
504603
504655
  });
504604
504656
  registerCleanup(async () => {
@@ -505466,7 +505518,7 @@ Usage: theus --remote "your task description"`, () => gracefulShutdown(1));
505466
505518
  pendingHookMessages
505467
505519
  }, renderAndRun);
505468
505520
  }
505469
- }).version(`${{ VERSION: "0.2.66", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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");
505521
+ }).version(`${{ VERSION: "0.2.67", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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");
505470
505522
  program2.option("-w, --worktree [name]", "Crea un nuevo worktree de git para esta sesi\xF3n (opcionalmente indica un nombre)");
505471
505523
  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.");
505472
505524
  if (canUserConfigureAdvisor()) {
@@ -506063,7 +506115,7 @@ if (false) {}
506063
506115
  async function main2() {
506064
506116
  const args = process.argv.slice(2);
506065
506117
  if (args.length === 1 && (args[0] === "--version" || args[0] === "-v" || args[0] === "-V")) {
506066
- console.log(`${{ VERSION: "0.2.66", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)`);
506118
+ console.log(`${{ VERSION: "0.2.67", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)`);
506067
506119
  return;
506068
506120
  }
506069
506121
  const {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "theus-cli",
3
- "version": "0.2.66",
3
+ "version": "0.2.67",
4
4
  "description": "Theus — agente local-first multimodelo con memoria, grafo y decisiones verificables",
5
5
  "author": "Mariano Suquilanda Gallo <contacto.tonyjaxx@gmail.com>",
6
6
  "license": "SEE LICENSE IN LICENSE",