theus-cli 0.2.66 → 0.2.68

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 +250 -118
  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.68", BUILD_TIME: "1970-01-01T00:00:00.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.68", BUILD_TIME: "1970-01-01T00:00:00.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.68", BUILD_TIME: "1970-01-01T00:00:00.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.68", BUILD_TIME: "1970-01-01T00:00:00.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.68", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.68", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.68", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.68", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.68", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.68", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.68", BUILD_TIME: "1970-01-01T00:00:00.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.68", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.68", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.68", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.68", BUILD_TIME: "1970-01-01T00:00:00.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.68", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.68", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.68", BUILD_TIME: "1970-01-01T00:00:00.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.68", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.68", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.68", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.68", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.68", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.68", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.68", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.68", BUILD_TIME: "1970-01-01T00:00:00.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.68", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.68", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.68", BUILD_TIME: "1970-01-01T00:00:00.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.68", BUILD_TIME: "1970-01-01T00:00:00.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.68", BUILD_TIME: "1970-01-01T00:00:00.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.68", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.68", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.68", BUILD_TIME: "1970-01-01T00:00:00.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.68", BUILD_TIME: "1970-01-01T00:00:00.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.68", BUILD_TIME: "1970-01-01T00:00:00.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.68", BUILD_TIME: "1970-01-01T00:00:00.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.68", BUILD_TIME: "1970-01-01T00:00:00.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.68", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.68", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.68", BUILD_TIME: "1970-01-01T00:00:00.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.68", BUILD_TIME: "1970-01-01T00:00:00.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.68", BUILD_TIME: "1970-01-01T00:00:00.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.68", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.68", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.68", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.68", BUILD_TIME: "1970-01-01T00:00:00.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.68", BUILD_TIME: "1970-01-01T00:00:00.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.68", BUILD_TIME: "1970-01-01T00:00:00.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,25 @@ var init_ConsoleOAuthFlow = __esm(() => {
229591
229616
  var NOVEDADES;
229592
229617
  var init_data = __esm(() => {
229593
229618
  NOVEDADES = [
229619
+ {
229620
+ version: "v0.2.68",
229621
+ fecha: "2026-08-13",
229622
+ titulo: "Un conector ya no puede dejarte sin respuesta",
229623
+ puntos: [
229624
+ "Algunas herramientas de conectores MCP (por ejemplo, el an\xE1lisis de video de Higgsfield) declaran su formato de argumentos de una manera que ciertos proveedores rechazan de plano \u2014 y ese rechazo tumbaba el turno COMPLETO: daba igual qu\xE9 preguntaras, el modelo no respond\xEDa nada. Ahora el CLI adapta esos formatos autom\xE1ticamente antes de enviarlos y la conversaci\xF3n fluye con todos tus conectores montados.",
229625
+ "El mismo saneo se aplic\xF3 en el servidor, as\xED que las versiones anteriores del CLI y el chat web quedan protegidos sin actualizar. Actualizar al 0.2.68 sigue siendo lo recomendado: el arreglo local cubre tambi\xE9n proveedores propios y modelos locales."
229626
+ ]
229627
+ },
229628
+ {
229629
+ version: "v0.2.67",
229630
+ fecha: "2026-08-13",
229631
+ titulo: "Si un proveedor falla, te decimos cu\xE1l y por qu\xE9",
229632
+ puntos: [
229633
+ "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.",
229634
+ "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.",
229635
+ "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."
229636
+ ]
229637
+ },
229594
229638
  {
229595
229639
  version: "v0.2.62",
229596
229640
  fecha: "2026-07-29",
@@ -306251,9 +306295,9 @@ function getTheusEnvMetadata() {
306251
306295
  };
306252
306296
  }
306253
306297
  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)
306298
+ if (!{ VERSION: "0.2.68", BUILD_TIME: "1970-01-01T00:00:00.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
306299
  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();
306300
+ const buildTime = new Date({ VERSION: "0.2.68", BUILD_TIME: "1970-01-01T00:00:00.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
306301
  if (isNaN(buildTime))
306258
306302
  return;
306259
306303
  return Math.floor((Date.now() - buildTime) / 60000);
@@ -322732,6 +322776,12 @@ function getAssistantMessageFromError(error40, model, options2) {
322732
322776
  error: "rate_limit"
322733
322777
  });
322734
322778
  }
322779
+ if (error40 instanceof GatewayUpstreamError) {
322780
+ return createAssistantAPIErrorMessage({
322781
+ content: error40.detail,
322782
+ error: "unknown"
322783
+ });
322784
+ }
322735
322785
  if (error40 instanceof import_sdk10.APIConnectionTimeoutError || error40 instanceof import_sdk10.APIConnectionError && error40.message.toLowerCase().includes("timeout")) {
322736
322786
  return createAssistantAPIErrorMessage({
322737
322787
  content: API_TIMEOUT_ERROR_MESSAGE,
@@ -330730,7 +330780,7 @@ async function submitTranscriptShare(messages, trigger, appearanceId) {
330730
330780
  } catch {}
330731
330781
  const data = {
330732
330782
  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,
330783
+ version: { VERSION: "0.2.68", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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
330784
  platform: process.platform,
330735
330785
  transcript,
330736
330786
  subagentTranscripts: Object.keys(subagentTranscripts).length > 0 ? subagentTranscripts : undefined,
@@ -330935,10 +330985,10 @@ Si el usuario indic\xF3 una duraci\xF3n, p\xE1sala en el par\xE1metro \`duration
330935
330985
 
330936
330986
  // commands/issue/index.ts
330937
330987
  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";
330988
+ return { VERSION: "0.2.68", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.68", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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
330989
  }
330940
330990
  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";
330991
+ return { VERSION: "0.2.68", BUILD_TIME: "1970-01-01T00:00:00.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.68", BUILD_TIME: "1970-01-01T00:00:00.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
330992
  }
330943
330993
  function getActiveModelLabel() {
330944
330994
  try {
@@ -333735,7 +333785,7 @@ function buildPrimarySection() {
333735
333785
  });
333736
333786
  return [{
333737
333787
  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
333788
+ value: { VERSION: "0.2.68", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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
333789
  }, {
333740
333790
  label: "Session name",
333741
333791
  value: nameValue
@@ -337551,7 +337601,7 @@ function Config({
337551
337601
  }
337552
337602
  })
337553
337603
  }) : 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,
337604
+ currentVersion: { VERSION: "0.2.68", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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
337605
  onChoice: (choice) => {
337556
337606
  setShowSubmenu(null);
337557
337607
  setTabsHidden(false);
@@ -337563,7 +337613,7 @@ function Config({
337563
337613
  autoUpdatesChannel: "stable"
337564
337614
  };
337565
337615
  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;
337616
+ newSettings.minimumVersion = { VERSION: "0.2.68", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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
337617
  }
337568
337618
  updateSettingsForSource("userSettings", newSettings);
337569
337619
  setSettingsData((prev_27) => ({
@@ -345383,7 +345433,7 @@ function HelpV2(t0) {
345383
345433
  let t6;
345384
345434
  if ($2[31] !== tabs) {
345385
345435
  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}`,
345436
+ title: `Theus v${{ VERSION: "0.2.68", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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
345437
  color: "professionalBlue",
345388
345438
  defaultTab: "general",
345389
345439
  children: tabs
@@ -363635,7 +363685,7 @@ function Onboarding({
363635
363685
  flexDirection: "column",
363636
363686
  children: [
363637
363687
  /* @__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
363688
+ version: { VERSION: "0.2.68", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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
363689
  }),
363640
363690
  /* @__PURE__ */ jsx_runtime250.jsxs(ThemedBox_default, {
363641
363691
  flexDirection: "column",
@@ -365039,7 +365089,7 @@ function getAllReleaseNotes(changelogContent = getStoredChangelogFromMemory()) {
365039
365089
  return [];
365040
365090
  }
365041
365091
  }
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) {
365092
+ async function checkForReleaseNotes(lastSeenVersion, currentVersion = { VERSION: "0.2.68", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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
365093
  if (false) {}
365044
365094
  const cachedChangelog = await getStoredChangelog();
365045
365095
  if (lastSeenVersion !== currentVersion || !cachedChangelog) {
@@ -369229,7 +369279,7 @@ var init_Messages = __esm(() => {
369229
369279
  let t1;
369230
369280
  if ($2[0] === Symbol.for("react.memo_cache_sentinel")) {
369231
369281
  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
369282
+ version: { VERSION: "0.2.68", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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
369283
  });
369234
369284
  $2[0] = t1;
369235
369285
  } else {
@@ -399767,7 +399817,7 @@ async function captureMemoryDiagnostics(trigger, dumpNumber = 0) {
399767
399817
  smapsRollup,
399768
399818
  platform: process.platform,
399769
399819
  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
399820
+ ccVersion: { VERSION: "0.2.68", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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
399821
  };
399772
399822
  }
399773
399823
  async function performHeapDump(trigger = "manual", dumpNumber = 0) {
@@ -400528,7 +400578,7 @@ var init_bridge_kick = __esm(() => {
400528
400578
  var call67 = async () => {
400529
400579
  return {
400530
400580
  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
400581
+ value: { VERSION: "0.2.68", BUILD_TIME: "1970-01-01T00:00:00.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.68", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.68", BUILD_TIME: "1970-01-01T00:00:00.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.68", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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
400582
  };
400533
400583
  }, version2, version_default;
400534
400584
  var init_version = __esm(() => {
@@ -403129,7 +403179,7 @@ var SECRET_NAME_PATTERN, EXTRA_ENV_ALLOWLIST, REDACTED2 = "\u2039oculto\u203A",
403129
403179
  const lines = [];
403130
403180
  lines.push("## Entorno de ejecuci\xF3n");
403131
403181
  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";
403182
+ const version3 = { VERSION: "0.2.68", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.68", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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
403183
  lines.push(`- Versi\xF3n de Theus: ${version3}`);
403134
403184
  lines.push(`- Directorio de trabajo: ${getCwd()}`);
403135
403185
  lines.push(`- \xBFRepositorio git?: ${isGit ? "s\xED" : "no"}`);
@@ -405670,13 +405720,13 @@ async function updateReleaseBundle() {
405670
405720
  await gracefulShutdown(1);
405671
405721
  return;
405672
405722
  }
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})`) + `
405723
+ if (gte({ VERSION: "0.2.68", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
405724
+ writeToStdout(source_default.green(`Theus is up to date (${{ VERSION: "0.2.68", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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
405725
  `);
405676
405726
  await gracefulShutdown(0);
405677
405727
  return;
405678
405728
  }
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})
405729
+ writeToStdout(`New version available: ${latest} (current: ${{ VERSION: "0.2.68", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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
405730
  `);
405681
405731
  writeToStdout(`Installing update from theus.pe/dl...
405682
405732
  `);
@@ -405710,7 +405760,7 @@ async function updateReleaseBundle() {
405710
405760
  return;
405711
405761
  }
405712
405762
  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}`) + `
405763
+ writeToStdout(source_default.green(`Successfully updated from ${{ VERSION: "0.2.68", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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
405764
  `);
405715
405765
  await regenerateCompletionCache();
405716
405766
  } finally {
@@ -405723,7 +405773,7 @@ async function updateReleaseBundle() {
405723
405773
  async function update() {
405724
405774
  logEvent("theus_update_check", {});
405725
405775
  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}
405776
+ writeToStdout(`Current version: ${{ VERSION: "0.2.68", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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
405777
  `);
405728
405778
  const channel2 = getInitialSettings()?.autoUpdatesChannel ?? "latest";
405729
405779
  writeToStdout(`Checking for updates to ${channel2} version...
@@ -405802,8 +405852,8 @@ async function update() {
405802
405852
  writeToStdout(`Theus is managed by Homebrew.
405803
405853
  `);
405804
405854
  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}
405855
+ if (latest && !gte({ VERSION: "0.2.68", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
405856
+ writeToStdout(`Update available: ${{ VERSION: "0.2.68", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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
405857
  `);
405808
405858
  writeToStdout(`
405809
405859
  `);
@@ -405819,8 +405869,8 @@ async function update() {
405819
405869
  writeToStdout(`Theus is managed by winget.
405820
405870
  `);
405821
405871
  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}
405872
+ if (latest && !gte({ VERSION: "0.2.68", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
405873
+ writeToStdout(`Update available: ${{ VERSION: "0.2.68", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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
405874
  `);
405825
405875
  writeToStdout(`
405826
405876
  `);
@@ -405836,8 +405886,8 @@ async function update() {
405836
405886
  writeToStdout(`Theus is managed by apk.
405837
405887
  `);
405838
405888
  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}
405889
+ if (latest && !gte({ VERSION: "0.2.68", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
405890
+ writeToStdout(`Update available: ${{ VERSION: "0.2.68", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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
405891
  `);
405842
405892
  writeToStdout(`
405843
405893
  `);
@@ -405902,11 +405952,11 @@ async function update() {
405902
405952
  `);
405903
405953
  await gracefulShutdown(1);
405904
405954
  }
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})`) + `
405955
+ if (result.latestVersion === { VERSION: "0.2.68", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION) {
405956
+ writeToStdout(source_default.green(`Theus is up to date (${{ VERSION: "0.2.68", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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
405957
  `);
405908
405958
  } 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}`) + `
405959
+ writeToStdout(source_default.green(`Successfully updated from ${{ VERSION: "0.2.68", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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
405960
  `);
405911
405961
  await regenerateCompletionCache();
405912
405962
  }
@@ -405925,9 +405975,9 @@ async function update() {
405925
405975
  await removeInstalledSymlink();
405926
405976
  }
405927
405977
  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}`);
405978
+ logForDebugging(`update: Package URL: ${{ VERSION: "0.2.68", BUILD_TIME: "1970-01-01T00:00:00.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
405979
  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`;
405980
+ const npmCommand = `npm view ${{ VERSION: "0.2.68", BUILD_TIME: "1970-01-01T00:00:00.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
405981
  logForDebugging(`update: Running: ${npmCommand}`);
405932
405982
  const latestVersion = await getLatestVersion(channel2);
405933
405983
  logForDebugging(`update: Latest version from npm: ${latestVersion || "FAILED"}`);
@@ -405947,7 +405997,7 @@ async function update() {
405947
405997
  `);
405948
405998
  process.stderr.write(` \u2022 Corporate proxy/firewall blocking npm
405949
405999
  `);
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")) {
406000
+ if ({ VERSION: "0.2.68", BUILD_TIME: "1970-01-01T00:00:00.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.68", BUILD_TIME: "1970-01-01T00:00:00.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
406001
  process.stderr.write(` \u2022 Internal/development build not published to npm
405952
406002
  `);
405953
406003
  }
@@ -405959,19 +406009,19 @@ async function update() {
405959
406009
  `);
405960
406010
  process.stderr.write(` \u2022 Run with --debug flag for more details
405961
406011
  `);
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";
406012
+ const packageName = { VERSION: "0.2.68", BUILD_TIME: "1970-01-01T00:00:00.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
406013
  process.stderr.write(` \u2022 Manually check: npm view ${packageName} version
405964
406014
  `);
405965
406015
  process.stderr.write(` \u2022 Check if you need to login: npm whoami
405966
406016
  `);
405967
406017
  await gracefulShutdown(1);
405968
406018
  }
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})`) + `
406019
+ if (gte({ VERSION: "0.2.68", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
406020
+ writeToStdout(source_default.green(`Theus is up to date (${{ VERSION: "0.2.68", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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
406021
  `);
405972
406022
  await gracefulShutdown(0);
405973
406023
  }
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})
406024
+ writeToStdout(`New version available: ${latestVersion} (current: ${{ VERSION: "0.2.68", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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
406025
  `);
405976
406026
  writeToStdout(`Installing update...
405977
406027
  `);
@@ -406016,7 +406066,7 @@ async function update() {
406016
406066
  logForDebugging(`update: Installation status: ${status2}`);
406017
406067
  switch (status2) {
406018
406068
  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}`) + `
406069
+ writeToStdout(source_default.green(`Successfully updated from ${{ VERSION: "0.2.68", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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
406070
  `);
406021
406071
  await regenerateCompletionCache();
406022
406072
  break;
@@ -406026,7 +406076,7 @@ async function update() {
406026
406076
  if (useLocalUpdate) {
406027
406077
  process.stderr.write(`Try manually updating with:
406028
406078
  `);
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}
406079
+ process.stderr.write(` cd ~/.theus/local && npm update ${{ VERSION: "0.2.68", BUILD_TIME: "1970-01-01T00:00:00.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
406080
  `);
406031
406081
  } else {
406032
406082
  process.stderr.write(`Try running with sudo or fix npm permissions
@@ -406042,7 +406092,7 @@ async function update() {
406042
406092
  if (useLocalUpdate) {
406043
406093
  process.stderr.write(`Try manually updating with:
406044
406094
  `);
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}
406095
+ process.stderr.write(` cd ~/.theus/local && npm update ${{ VERSION: "0.2.68", BUILD_TIME: "1970-01-01T00:00:00.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
406096
  `);
406047
406097
  } else {
406048
406098
  process.stderr.write(`Or consider using native installation with: theus install
@@ -406126,7 +406176,7 @@ async function call85(onDone, context3) {
406126
406176
  return null;
406127
406177
  }
406128
406178
  }
406129
- const url3 = "https://theus.pe/upgrade/max";
406179
+ const url3 = "https://theus.pe/precios/";
406130
406180
  await openBrowser(url3);
406131
406181
  return /* @__PURE__ */ jsx_runtime360.jsx(Login, {
406132
406182
  startingMessage: "Starting new login following /upgrade. Exit with Ctrl-C to use existing account.",
@@ -415597,7 +415647,7 @@ var init_sessionStorage = __esm(() => {
415597
415647
  init_settings2();
415598
415648
  init_slowOperations();
415599
415649
  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;
415650
+ VERSION4 = { VERSION: "0.2.68", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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
415651
  MAX_TOMBSTONE_REWRITE_BYTES = 50 * 1024 * 1024;
415602
415652
  SKIP_FIRST_PROMPT_PATTERN2 = /^(?:\s*<[a-z][\w-]*[\s>]|\[Request interrupted by user[^\]]*\])/;
415603
415653
  EPHEMERAL_PROGRESS_TYPES = new Set([
@@ -416802,7 +416852,7 @@ var init_filesystem = __esm(() => {
416802
416852
  });
416803
416853
  getBundledSkillsRoot = memoize_default(function getBundledSkillsRoot2() {
416804
416854
  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);
416855
+ return join150(getTheusTempDir(), "bundled-skills", { VERSION: "0.2.68", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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
416856
  });
416807
416857
  getResolvedWorkingDirPaths = memoize_default(getPathsForPermissionCheck);
416808
416858
  });
@@ -421978,7 +422028,7 @@ function getSimpleDoingTasksSection() {
421978
422028
  ];
421979
422029
  const userHelpSubitems = [
421980
422030
  `/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}`
422031
+ `To give feedback, users should ${{ VERSION: "0.2.68", BUILD_TIME: "1970-01-01T00:00:00.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
422032
  ];
421983
422033
  const items = [
421984
422034
  `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 +422909,7 @@ function computeFingerprint(messageText, version3) {
422859
422909
  }
422860
422910
  function computeFingerprintFromMessages(messages) {
422861
422911
  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);
422912
+ return computeFingerprint(firstMessageText, { VERSION: "0.2.68", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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
422913
  }
422864
422914
  var FINGERPRINT_SALT = "59cf53e54c78";
422865
422915
  var init_fingerprint = () => {};
@@ -424679,6 +424729,76 @@ var init_theusEngine = __esm(() => {
424679
424729
  init_withRetry();
424680
424730
  });
424681
424731
 
424732
+ // services/api/toolSchemaSanitizer.ts
424733
+ function isSchemaObject(value) {
424734
+ return Boolean(value) && typeof value === "object" && !Array.isArray(value);
424735
+ }
424736
+ function stringArray(value) {
424737
+ return Array.isArray(value) ? value.filter((item) => typeof item === "string") : [];
424738
+ }
424739
+ function combinatorBranches(schema, key) {
424740
+ const raw = schema[key];
424741
+ if (!Array.isArray(raw))
424742
+ return [];
424743
+ return raw.filter(isSchemaObject).map((branch2) => sanitizeToolInputSchema(branch2));
424744
+ }
424745
+ function intersect(sets) {
424746
+ if (sets.length === 0)
424747
+ return [];
424748
+ return sets.reduce((acc, cur) => acc.filter((item) => cur.includes(item)));
424749
+ }
424750
+ function sanitizeToolInputSchema(schema) {
424751
+ if (!isSchemaObject(schema))
424752
+ return schema;
424753
+ const present = TOP_LEVEL_COMBINATORS.filter((key) => Array.isArray(schema[key]));
424754
+ if (present.length === 0)
424755
+ return schema;
424756
+ const merged = {};
424757
+ const requiredAllOf = [];
424758
+ const requiredAlternatives = [];
424759
+ for (const key of present) {
424760
+ for (const branch2 of combinatorBranches(schema, key)) {
424761
+ const branchProps = isSchemaObject(branch2.properties) ? branch2.properties : {};
424762
+ for (const [name, propSchema] of Object.entries(branchProps)) {
424763
+ if (!(name in merged))
424764
+ merged[name] = propSchema;
424765
+ }
424766
+ if (key === "allOf")
424767
+ requiredAllOf.push(...stringArray(branch2.required));
424768
+ else
424769
+ requiredAlternatives.push(stringArray(branch2.required));
424770
+ }
424771
+ }
424772
+ const topProps = isSchemaObject(schema.properties) ? schema.properties : {};
424773
+ Object.assign(merged, topProps);
424774
+ const required2 = [
424775
+ ...new Set([
424776
+ ...stringArray(schema.required),
424777
+ ...requiredAllOf,
424778
+ ...intersect(requiredAlternatives)
424779
+ ])
424780
+ ].filter((name) => (name in merged));
424781
+ const {
424782
+ allOf: _allOf,
424783
+ anyOf: _anyOf,
424784
+ oneOf: _oneOf,
424785
+ $schema: _meta,
424786
+ required: _required,
424787
+ properties: _properties,
424788
+ ...rest
424789
+ } = schema;
424790
+ return {
424791
+ ...rest,
424792
+ type: "object",
424793
+ properties: merged,
424794
+ ...required2.length > 0 ? { required: required2 } : {}
424795
+ };
424796
+ }
424797
+ var TOP_LEVEL_COMBINATORS;
424798
+ var init_toolSchemaSanitizer = __esm(() => {
424799
+ TOP_LEVEL_COMBINATORS = ["allOf", "anyOf", "oneOf"];
424800
+ });
424801
+
424682
424802
  // services/api/theus.ts
424683
424803
  import { existsSync as existsSync23, readFileSync as readFileSync28 } from "fs";
424684
424804
  import { randomUUID as randomUUID37 } from "crypto";
@@ -424970,7 +425090,7 @@ async function toOpenAITools(tools, options2) {
424970
425090
  function: {
424971
425091
  name: maybeTool.name,
424972
425092
  description: maybeTool.description,
424973
- parameters: maybeTool.input_schema
425093
+ parameters: sanitizeToolInputSchema(maybeTool.input_schema)
424974
425094
  }
424975
425095
  }
424976
425096
  ];
@@ -425116,6 +425236,10 @@ async function* callOpenAICompatible({
425116
425236
  if (quotaBody !== undefined) {
425117
425237
  throw new GatewayQuotaExceededError(quotaBody, response.status);
425118
425238
  }
425239
+ const upstreamDetail = parseGatewayUpstreamDetail(streamDetail);
425240
+ if (upstreamDetail !== undefined) {
425241
+ throw new GatewayUpstreamError(upstreamDetail, response.status);
425242
+ }
425119
425243
  logError2(`[Theus router] El provider '${provider.id}' rechaz\xF3 el streaming (${response.status}); reintentando sin stream.`);
425120
425244
  response = await fetch(url3, {
425121
425245
  method: "POST",
@@ -425129,6 +425253,10 @@ async function* callOpenAICompatible({
425129
425253
  if (retryQuota !== undefined) {
425130
425254
  throw new GatewayQuotaExceededError(retryQuota, response.status);
425131
425255
  }
425256
+ const retryUpstream = parseGatewayUpstreamDetail(detail);
425257
+ if (retryUpstream !== undefined) {
425258
+ throw new GatewayUpstreamError(retryUpstream, response.status);
425259
+ }
425132
425260
  throw new Error(`${provider.id} ${response.status} ${response.statusText}${detail ? `: ${detail.slice(0, 500)}` : ""}`);
425133
425261
  }
425134
425262
  }
@@ -425394,6 +425522,9 @@ async function* queryModelWithTheusProviders({
425394
425522
  if (error40 instanceof GatewayQuotaExceededError) {
425395
425523
  throw error40;
425396
425524
  }
425525
+ if (error40 instanceof GatewayUpstreamError) {
425526
+ throw error40;
425527
+ }
425397
425528
  if (streamStarted && !streamEnded) {
425398
425529
  for (const index of openBlocks) {
425399
425530
  yield {
@@ -425433,6 +425564,7 @@ var init_theus2 = __esm(() => {
425433
425564
  init_theusEngine();
425434
425565
  init_effort();
425435
425566
  init_api5();
425567
+ init_toolSchemaSanitizer();
425436
425568
  init_envUtils();
425437
425569
  init_log2();
425438
425570
  init_messages();
@@ -425485,7 +425617,7 @@ async function sideQuery(opts) {
425485
425617
  betas.push(STRUCTURED_OUTPUTS_BETA_HEADER);
425486
425618
  }
425487
425619
  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);
425620
+ const fingerprint = computeFingerprint(messageText, { VERSION: "0.2.68", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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
425621
  const attributionHeader = getAttributionHeader(fingerprint);
425490
425622
  const systemBlocks = [
425491
425623
  attributionHeader ? { type: "text", text: attributionHeader } : null,
@@ -426759,7 +426891,7 @@ async function handleMemories(state) {
426759
426891
  async function runProjectContextMcpServer() {
426760
426892
  const projectRoot = process.env.THEUS_PROJECT_ROOT || process.cwd();
426761
426893
  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: {} } });
426894
+ const server2 = new Server({ name: SERVER_NAME, version: { VERSION: "0.2.68", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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
426895
  server2.setRequestHandler(ListToolsRequestSchema, async () => ({
426764
426896
  tools: TOOL_DEFINITIONS.map((t) => ({
426765
426897
  name: t.name,
@@ -429436,7 +429568,7 @@ async function runTitanFleetWorker(args) {
429436
429568
  max_concurrency: maxConcurrency,
429437
429569
  runtime: {
429438
429570
  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
429571
+ version: { VERSION: "0.2.68", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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
429572
  }
429441
429573
  });
429442
429574
  const client2 = new TitanFleetClient({
@@ -431327,7 +431459,7 @@ function createBridgeLogger(options2) {
431327
431459
  connectUrl = buildBridgeConnectUrl(environmentId, cachedIngressUrl);
431328
431460
  regenerateQr(connectUrl);
431329
431461
  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}
431462
+ write(source_default.dim(`Remote Control`) + ` v${{ VERSION: "0.2.68", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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
431463
  `);
431332
431464
  }
431333
431465
  if (verbose) {
@@ -432300,7 +432432,7 @@ function appendToLog(path19, message) {
432300
432432
  cwd: getFsImplementation().cwd(),
432301
432433
  userType: "external",
432302
432434
  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
432435
+ version: { VERSION: "0.2.68", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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
432436
  };
432305
432437
  getLogWriter(path19).write(messageWithTimestamp);
432306
432438
  }
@@ -433561,7 +433693,7 @@ Spawn mode for this project:
433561
433693
  const api2 = createBridgeApiClient({
433562
433694
  baseUrl,
433563
433695
  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,
433696
+ runnerVersion: { VERSION: "0.2.68", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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
433697
  onDebug: logForDebugging,
433566
433698
  onAuth401: handleOAuth401Error2,
433567
433699
  getTrustedDeviceToken
@@ -433799,7 +433931,7 @@ async function runBridgeHeadless(opts, signal) {
433799
433931
  const api2 = createBridgeApiClient({
433800
433932
  baseUrl,
433801
433933
  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,
433934
+ runnerVersion: { VERSION: "0.2.68", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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
433935
  onDebug: log2,
433804
433936
  onAuth401: opts.onAuth401,
433805
433937
  getTrustedDeviceToken
@@ -437860,7 +437992,7 @@ function buildSystemInitMessage(inputs) {
437860
437992
  slash_commands: inputs.commands.filter((c5) => c5.userInvocable !== false).map((c5) => c5.name),
437861
437993
  apiKeySource: getTheusApiKeyWithSource().source,
437862
437994
  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,
437995
+ theus_code_version: { VERSION: "0.2.68", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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
437996
  output_style: outputStyle2,
437865
437997
  agents: inputs.agents.map((agent) => agent.agentType),
437866
437998
  skills: inputs.skills.filter((s) => s.userInvocable !== false).map((skill) => skill.name),
@@ -437900,8 +438032,8 @@ async function getEnvLessBridgeConfig() {
437900
438032
  }
437901
438033
  async function checkEnvLessBridgeMinVersion() {
437902
438034
  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.
438035
+ if (cfg.min_version && lt({ VERSION: "0.2.68", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
438036
+ return `Your version of Theus (${{ VERSION: "0.2.68", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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
438037
  Version ${cfg.min_version} or higher is required. Run \`theus update\` to update.`;
437906
438038
  }
437907
438039
  return null;
@@ -440225,7 +440357,7 @@ async function initBridgeCore(params) {
440225
440357
  const rawApi = createBridgeApiClient({
440226
440358
  baseUrl,
440227
440359
  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,
440360
+ runnerVersion: { VERSION: "0.2.68", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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
440361
  onDebug: logForDebugging,
440230
440362
  onAuth401,
440231
440363
  getTrustedDeviceToken
@@ -456866,7 +456998,7 @@ var init_useVoiceEnabled = __esm(() => {
456866
456998
  function getSemverPart(version3) {
456867
456999
  return `${import_semver14.major(version3, { loose: true })}.${import_semver14.minor(version3, { loose: true })}.${import_semver14.patch(version3, { loose: true })}`;
456868
457000
  }
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) {
457001
+ function useUpdateNotification(updatedVersion, initialVersion = { VERSION: "0.2.68", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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
457002
  const [lastNotifiedSemver, setLastNotifiedSemver] = import_react236.useState(() => getSemverPart(initialVersion));
456871
457003
  if (!updatedVersion) {
456872
457004
  return null;
@@ -456906,7 +457038,7 @@ function AutoUpdater({
456906
457038
  return;
456907
457039
  }
456908
457040
  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;
457041
+ const currentVersion = { VERSION: "0.2.68", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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
457042
  const channel2 = getInitialSettings()?.autoUpdatesChannel ?? "latest";
456911
457043
  let latestVersion = await getLatestVersion(channel2);
456912
457044
  const isDisabled2 = isAutoUpdaterDisabled();
@@ -457042,7 +457174,7 @@ function AutoUpdater({
457042
457174
  " ",
457043
457175
  /* @__PURE__ */ jsx_runtime414.jsx(ThemedText, {
457044
457176
  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}`
457177
+ children: hasLocalInstall ? `cd ~/.theus/local && npm update ${{ VERSION: "0.2.68", BUILD_TIME: "1970-01-01T00:00:00.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.68", BUILD_TIME: "1970-01-01T00:00:00.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
457178
  })
457047
457179
  ]
457048
457180
  })
@@ -457119,12 +457251,12 @@ function NativeAutoUpdater({
457119
457251
  logEvent("theus_native_auto_updater_start", {});
457120
457252
  try {
457121
457253
  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)) {
457254
+ if (maxVersion && gt({ VERSION: "0.2.68", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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
457255
  const msg = await getMaxVersionMessage();
457124
457256
  setMaxVersionIssue(msg ?? "affects your version");
457125
457257
  }
457126
457258
  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;
457259
+ const currentVersion = { VERSION: "0.2.68", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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
457260
  const latencyMs = Date.now() - startTime2;
457129
457261
  if (result.lockFailed) {
457130
457262
  logEvent("theus_native_auto_updater_lock_contention", {
@@ -457261,17 +457393,17 @@ function PackageManagerAutoUpdater(t0) {
457261
457393
  const maxVersion = await getMaxVersion();
457262
457394
  if (maxVersion && latest && gt(latest, maxVersion)) {
457263
457395
  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`);
457396
+ if (gte({ VERSION: "0.2.68", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
457397
+ logForDebugging(`PackageManagerAutoUpdater: current version ${{ VERSION: "0.2.68", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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
457398
  setUpdateAvailable(false);
457267
457399
  return;
457268
457400
  }
457269
457401
  latest = maxVersion;
457270
457402
  }
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);
457403
+ const hasUpdate = latest && !gte({ VERSION: "0.2.68", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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
457404
  setUpdateAvailable(!!hasUpdate);
457273
457405
  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}`);
457406
+ logForDebugging(`PackageManagerAutoUpdater: Update available ${{ VERSION: "0.2.68", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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
457407
  }
457276
457408
  };
457277
457409
  $2[0] = t1;
@@ -457305,7 +457437,7 @@ function PackageManagerAutoUpdater(t0) {
457305
457437
  wrap: "truncate",
457306
457438
  children: [
457307
457439
  "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
457440
+ { VERSION: "0.2.68", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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
457441
  ]
457310
457442
  });
457311
457443
  $2[3] = verbose;
@@ -465168,7 +465300,7 @@ function buildStatusLineCommandInput(permissionMode2, exceeds200kTokens, setting
465168
465300
  project_dir: getOriginalCwd(),
465169
465301
  added_dirs: addedDirs
465170
465302
  },
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,
465303
+ version: { VERSION: "0.2.68", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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
465304
  output_style: {
465173
465305
  name: outputStyleName
465174
465306
  },
@@ -489467,7 +489599,7 @@ function completeOnboarding() {
489467
489599
  saveGlobalConfig((current) => ({
489468
489600
  ...current,
489469
489601
  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
489602
+ lastOnboardingVersion: { VERSION: "0.2.68", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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
489603
  }));
489472
489604
  }
489473
489605
  function showDialog(root2, renderer) {
@@ -501571,7 +501703,7 @@ async function startMCPServer(cwd3, debug3, verbose) {
501571
501703
  setCwd(cwd3);
501572
501704
  const server2 = new Server({
501573
501705
  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
501706
+ version: { VERSION: "0.2.68", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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
501707
  }, {
501576
501708
  capabilities: {
501577
501709
  tools: {}
@@ -503013,7 +503145,7 @@ async function setupTokenHandler(root2) {
503013
503145
  gap: 1,
503014
503146
  children: [
503015
503147
  /* @__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
503148
+ version: { VERSION: "0.2.68", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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
503149
  }),
503018
503150
  showAuthWarning && /* @__PURE__ */ jsx_runtime502.jsxs(ThemedBox_default, {
503019
503151
  flexDirection: "column",
@@ -504598,7 +504730,7 @@ ${assistantAddendum}` : assistantAddendum;
504598
504730
  }
504599
504731
  }
504600
504732
  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,
504733
+ version: { VERSION: "0.2.68", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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
504734
  is_native_binary: isInBundledMode()
504603
504735
  });
504604
504736
  registerCleanup(async () => {
@@ -505466,7 +505598,7 @@ Usage: theus --remote "your task description"`, () => gracefulShutdown(1));
505466
505598
  pendingHookMessages
505467
505599
  }, renderAndRun);
505468
505600
  }
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");
505601
+ }).version(`${{ VERSION: "0.2.68", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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
505602
  program2.option("-w, --worktree [name]", "Crea un nuevo worktree de git para esta sesi\xF3n (opcionalmente indica un nombre)");
505471
505603
  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
505604
  if (canUserConfigureAdvisor()) {
@@ -506063,7 +506195,7 @@ if (false) {}
506063
506195
  async function main2() {
506064
506196
  const args = process.argv.slice(2);
506065
506197
  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)`);
506198
+ console.log(`${{ VERSION: "0.2.68", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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
506199
  return;
506068
506200
  }
506069
506201
  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.68",
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",