theus-cli 0.2.0 → 0.2.3

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 +218 -210
  2. package/package.json +1 -1
package/cli.js CHANGED
@@ -58283,7 +58283,7 @@ async function _executeApiKeyHelper(isNonInteractiveSession) {
58283
58283
  if (isApiKeyHelperFromProjectOrLocalSettings()) {
58284
58284
  const hasTrust = checkHasTrustDialogAccepted();
58285
58285
  if (!hasTrust && !isNonInteractiveSession) {
58286
- const error40 = new Error(`Security: apiKeyHelper executed before workspace trust is confirmed. If you see this message, post in ${{ VERSION: "0.2.0", BUILD_TIME: "1970-01-01T00:00:00.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}.`);
58286
+ const error40 = new Error(`Security: apiKeyHelper executed before workspace trust is confirmed. If you see this message, post in ${{ VERSION: "0.2.3", BUILD_TIME: "1970-01-01T00:00:00.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}.`);
58287
58287
  logAntError("apiKeyHelper invoked before trust check", error40);
58288
58288
  logEvent("tengu_apiKeyHelper_missing_trust11", {});
58289
58289
  return null;
@@ -58327,7 +58327,7 @@ async function runAwsAuthRefresh() {
58327
58327
  if (isAwsAuthRefreshFromProjectSettings()) {
58328
58328
  const hasTrust = checkHasTrustDialogAccepted();
58329
58329
  if (!hasTrust && !getIsNonInteractiveSession()) {
58330
- const error40 = new Error(`Security: awsAuthRefresh executed before workspace trust is confirmed. If you see this message, post in ${{ VERSION: "0.2.0", BUILD_TIME: "1970-01-01T00:00:00.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}.`);
58330
+ const error40 = new Error(`Security: awsAuthRefresh executed before workspace trust is confirmed. If you see this message, post in ${{ VERSION: "0.2.3", BUILD_TIME: "1970-01-01T00:00:00.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}.`);
58331
58331
  logAntError("awsAuthRefresh invoked before trust check", error40);
58332
58332
  logEvent("tengu_awsAuthRefresh_missing_trust", {});
58333
58333
  return false;
@@ -58387,7 +58387,7 @@ async function getAwsCredsFromCredentialExport() {
58387
58387
  if (isAwsCredentialExportFromProjectSettings()) {
58388
58388
  const hasTrust = checkHasTrustDialogAccepted();
58389
58389
  if (!hasTrust && !getIsNonInteractiveSession()) {
58390
- const error40 = new Error(`Security: awsCredentialExport executed before workspace trust is confirmed. If you see this message, post in ${{ VERSION: "0.2.0", BUILD_TIME: "1970-01-01T00:00:00.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}.`);
58390
+ const error40 = new Error(`Security: awsCredentialExport executed before workspace trust is confirmed. If you see this message, post in ${{ VERSION: "0.2.3", BUILD_TIME: "1970-01-01T00:00:00.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}.`);
58391
58391
  logAntError("awsCredentialExport invoked before trust check", error40);
58392
58392
  logEvent("tengu_awsCredentialExport_missing_trust", {});
58393
58393
  return null;
@@ -58472,7 +58472,7 @@ async function runGcpAuthRefresh() {
58472
58472
  if (isGcpAuthRefreshFromProjectSettings()) {
58473
58473
  const hasTrust = checkHasTrustDialogAccepted();
58474
58474
  if (!hasTrust && !getIsNonInteractiveSession()) {
58475
- const error40 = new Error(`Security: gcpAuthRefresh executed before workspace trust is confirmed. If you see this message, post in ${{ VERSION: "0.2.0", BUILD_TIME: "1970-01-01T00:00:00.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}.`);
58475
+ const error40 = new Error(`Security: gcpAuthRefresh executed before workspace trust is confirmed. If you see this message, post in ${{ VERSION: "0.2.3", BUILD_TIME: "1970-01-01T00:00:00.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}.`);
58476
58476
  logAntError("gcpAuthRefresh invoked before trust check", error40);
58477
58477
  logEvent("tengu_gcpAuthRefresh_missing_trust", {});
58478
58478
  return false;
@@ -59167,7 +59167,7 @@ var init_auth = __esm(() => {
59167
59167
 
59168
59168
  // utils/userAgent.ts
59169
59169
  function getTheusCodeUserAgent() {
59170
- return `theus-code/${{ VERSION: "0.2.0", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION}`;
59170
+ return `theus-code/${{ VERSION: "0.2.3", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION}`;
59171
59171
  }
59172
59172
 
59173
59173
  // utils/workloadContext.ts
@@ -59189,7 +59189,7 @@ function getUserAgent() {
59189
59189
  const clientApp = process.env.THEUS_AGENT_SDK_CLIENT_APP ? `, client-app/${process.env.THEUS_AGENT_SDK_CLIENT_APP}` : "";
59190
59190
  const workload = getWorkload();
59191
59191
  const workloadSuffix = workload ? `, workload/${workload}` : "";
59192
- return `theus-cli/${{ VERSION: "0.2.0", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION} (${process.env.USER_TYPE}, ${process.env.THEUS_CODE_ENTRYPOINT ?? "cli"}${agentSdkVersion}${clientApp}${workloadSuffix})`;
59192
+ return `theus-cli/${{ VERSION: "0.2.3", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION} (${process.env.USER_TYPE}, ${process.env.THEUS_CODE_ENTRYPOINT ?? "cli"}${agentSdkVersion}${clientApp}${workloadSuffix})`;
59193
59193
  }
59194
59194
  function getMCPUserAgent() {
59195
59195
  const parts = [];
@@ -59203,7 +59203,7 @@ function getMCPUserAgent() {
59203
59203
  parts.push(`client-app/${process.env.THEUS_AGENT_SDK_CLIENT_APP}`);
59204
59204
  }
59205
59205
  const suffix = parts.length > 0 ? ` (${parts.join(", ")})` : "";
59206
- return `theus-code/${{ VERSION: "0.2.0", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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}`;
59206
+ return `theus-code/${{ VERSION: "0.2.3", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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}`;
59207
59207
  }
59208
59208
  function getWebFetchUserAgent() {
59209
59209
  return `Theus-User (${getTheusCodeUserAgent()}; +https://support.theus.pe/)`;
@@ -59341,7 +59341,7 @@ var init_user = __esm(() => {
59341
59341
  deviceId,
59342
59342
  sessionId: getSessionId(),
59343
59343
  email: getEmail(),
59344
- appVersion: { VERSION: "0.2.0", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
59344
+ appVersion: { VERSION: "0.2.3", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
59345
59345
  platform: getHostPlatformForAnalytics(),
59346
59346
  organizationUuid,
59347
59347
  accountUuid,
@@ -61056,7 +61056,7 @@ var init_metadata = __esm(() => {
61056
61056
  COMPOUND_OPERATOR_REGEX = /\s*(?:&&|\|\||[;|])\s*/;
61057
61057
  WHITESPACE_REGEX = /\s+/;
61058
61058
  getVersionBase = memoize_default(() => {
61059
- const match = { VERSION: "0.2.0", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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]+)?/);
61059
+ const match = { VERSION: "0.2.3", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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]+)?/);
61060
61060
  return match ? match[0] : undefined;
61061
61061
  });
61062
61062
  buildEnvContext = memoize_default(async () => {
@@ -61096,9 +61096,9 @@ var init_metadata = __esm(() => {
61096
61096
  isGithubAction: isEnvTruthy(process.env.GITHUB_ACTIONS),
61097
61097
  isTheusCodeAction: isEnvTruthy(process.env.THEUS_CODE_ACTION),
61098
61098
  isTheusAiAuth: isTheusAISubscriber(),
61099
- version: { VERSION: "0.2.0", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
61099
+ version: { VERSION: "0.2.3", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
61100
61100
  versionBase: getVersionBase(),
61101
- buildTime: { VERSION: "0.2.0", BUILD_TIME: "1970-01-01T00:00:00.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,
61101
+ buildTime: { VERSION: "0.2.3", BUILD_TIME: "1970-01-01T00:00:00.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,
61102
61102
  deploymentEnvironment: env3.detectDeploymentEnvironment(),
61103
61103
  ...isEnvTruthy(process.env.GITHUB_ACTIONS) && {
61104
61104
  githubEventName: process.env.GITHUB_EVENT_NAME,
@@ -61764,7 +61764,7 @@ function initialize1PEventLogging() {
61764
61764
  const platform2 = getPlatform();
61765
61765
  const attributes = {
61766
61766
  [ATTR_SERVICE_NAME]: "theus-code",
61767
- [ATTR_SERVICE_VERSION]: { VERSION: "0.2.0", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
61767
+ [ATTR_SERVICE_VERSION]: { VERSION: "0.2.3", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
61768
61768
  };
61769
61769
  if (platform2 === "wsl") {
61770
61770
  const wslVersion = getWslVersion();
@@ -61791,7 +61791,7 @@ function initialize1PEventLogging() {
61791
61791
  })
61792
61792
  ]
61793
61793
  });
61794
- firstPartyEventLogger = firstPartyEventLoggerProvider.getLogger("com.theus.theus_code.events", { VERSION: "0.2.0", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION);
61794
+ firstPartyEventLogger = firstPartyEventLoggerProvider.getLogger("com.theus.theus_code.events", { VERSION: "0.2.3", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION);
61795
61795
  }
61796
61796
  async function reinitialize1PEventLoggingIfConfigChanged() {
61797
61797
  if (!is1PEventLoggingEnabled() || !firstPartyEventLoggerProvider) {
@@ -63662,7 +63662,7 @@ function getAttributionHeader(fingerprint) {
63662
63662
  if (!isAttributionHeaderEnabled()) {
63663
63663
  return "";
63664
63664
  }
63665
- const version2 = `${{ VERSION: "0.2.0", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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}`;
63665
+ const version2 = `${{ VERSION: "0.2.3", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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}`;
63666
63666
  const entrypoint = process.env.THEUS_CODE_ENTRYPOINT ?? "unknown";
63667
63667
  const cch = "";
63668
63668
  const workload = getWorkload();
@@ -107180,7 +107180,7 @@ Complete the user's request by providing accurate, documentation-based guidance.
107180
107180
  }
107181
107181
  function getFeedbackGuideline() {
107182
107182
  if (isUsing3PServices()) {
107183
- return `- When you cannot find an answer or the feature doesn't exist, direct the user to ${{ VERSION: "0.2.0", BUILD_TIME: "1970-01-01T00:00:00.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}`;
107183
+ return `- When you cannot find an answer or the feature doesn't exist, direct the user to ${{ VERSION: "0.2.3", BUILD_TIME: "1970-01-01T00:00:00.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}`;
107184
107184
  }
107185
107185
  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";
107186
107186
  }
@@ -114958,6 +114958,11 @@ function extractNestedErrorMessage(error40) {
114958
114958
  return null;
114959
114959
  }
114960
114960
  function formatAPIError(error40) {
114961
+ const httpStatus = error40.status;
114962
+ const rawMessage = String(error40.message ?? "");
114963
+ if (httpStatus === 413 || rawMessage.includes("Entity Too Large")) {
114964
+ return "La petici\xF3n es demasiado grande para el servidor (HTTP 413). " + "Suele pasar cuando la conversaci\xF3n arrastra una imagen o salidas muy " + "largas: usa /compact para reducir el contexto, o abre archivos de " + "imagen con `open <ruta>` en vez de leerlos al contexto.";
114965
+ }
114961
114966
  const connectionDetails = extractConnectionErrorDetails(error40);
114962
114967
  if (connectionDetails) {
114963
114968
  const { code, isSSLError } = connectionDetails;
@@ -165877,7 +165882,7 @@ function getTelemetryAttributes() {
165877
165882
  attributes["session.id"] = sessionId;
165878
165883
  }
165879
165884
  if (shouldIncludeAttribute("OTEL_METRICS_INCLUDE_VERSION")) {
165880
- attributes["app.version"] = { VERSION: "0.2.0", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION;
165885
+ attributes["app.version"] = { VERSION: "0.2.3", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION;
165881
165886
  }
165882
165887
  const oauthAccount = getOauthAccountInfo();
165883
165888
  if (oauthAccount) {
@@ -201923,7 +201928,7 @@ function getInstallationEnv() {
201923
201928
  return;
201924
201929
  }
201925
201930
  function getTheusCodeVersion() {
201926
- return { VERSION: "0.2.0", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION;
201931
+ return { VERSION: "0.2.3", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION;
201927
201932
  }
201928
201933
  async function getInstalledVSCodeExtensionVersion(command) {
201929
201934
  const { stdout } = await execFileNoThrow(command, ["--list-extensions", "--show-versions"], {
@@ -203441,7 +203446,7 @@ async function getMcpHeadersFromHelper(serverName, config2) {
203441
203446
  if ("scope" in config2 && isMcpServerFromProjectOrLocalSettings(config2) && !getIsNonInteractiveSession()) {
203442
203447
  const hasTrust = checkHasTrustDialogAccepted();
203443
203448
  if (!hasTrust) {
203444
- 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.0", BUILD_TIME: "1970-01-01T00:00:00.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}.`);
203449
+ 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.3", BUILD_TIME: "1970-01-01T00:00:00.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}.`);
203445
203450
  logAntError("MCP headersHelper invoked before trust check", error40);
203446
203451
  logEvent("tengu_mcp_headersHelper_missing_trust", {});
203447
203452
  return null;
@@ -204651,7 +204656,7 @@ async function setupSdkMcpClients(sdkMcpConfigs, sendMcpMessage) {
204651
204656
  const client2 = new Client({
204652
204657
  name: "theus-code",
204653
204658
  title: "Theus",
204654
- version: { VERSION: "0.2.0", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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",
204659
+ version: { VERSION: "0.2.3", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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",
204655
204660
  description: "Theus's agentic coding tool",
204656
204661
  websiteUrl: PRODUCT_URL
204657
204662
  }, {
@@ -205005,7 +205010,7 @@ var init_client5 = __esm(() => {
205005
205010
  const client2 = new Client({
205006
205011
  name: "theus-code",
205007
205012
  title: "Theus",
205008
- version: { VERSION: "0.2.0", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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",
205013
+ version: { VERSION: "0.2.3", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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",
205009
205014
  description: "Theus's agentic coding tool",
205010
205015
  websiteUrl: PRODUCT_URL
205011
205016
  }, {
@@ -215564,7 +215569,7 @@ async function initializeBetaTracing(resource) {
215564
215569
  });
215565
215570
  logs.setGlobalLoggerProvider(loggerProvider);
215566
215571
  setLoggerProvider(loggerProvider);
215567
- const eventLogger = logs.getLogger("com.theus.theus_code.events", { VERSION: "0.2.0", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION);
215572
+ const eventLogger = logs.getLogger("com.theus.theus_code.events", { VERSION: "0.2.3", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION);
215568
215573
  setEventLogger(eventLogger);
215569
215574
  process.on("beforeExit", async () => {
215570
215575
  await loggerProvider?.forceFlush();
@@ -215604,7 +215609,7 @@ async function initializeTelemetry() {
215604
215609
  const platform4 = getPlatform();
215605
215610
  const baseAttributes = {
215606
215611
  [ATTR_SERVICE_NAME]: "theus-code",
215607
- [ATTR_SERVICE_VERSION]: { VERSION: "0.2.0", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
215612
+ [ATTR_SERVICE_VERSION]: { VERSION: "0.2.3", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
215608
215613
  };
215609
215614
  if (platform4 === "wsl") {
215610
215615
  const wslVersion = getWslVersion();
@@ -215649,7 +215654,7 @@ async function initializeTelemetry() {
215649
215654
  } catch {}
215650
215655
  };
215651
215656
  registerCleanup(shutdownTelemetry2);
215652
- return meterProvider2.getMeter("com.theus.theus_code", { VERSION: "0.2.0", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION);
215657
+ return meterProvider2.getMeter("com.theus.theus_code", { VERSION: "0.2.3", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION);
215653
215658
  }
215654
215659
  const meterProvider = new MeterProvider({
215655
215660
  resource,
@@ -215669,7 +215674,7 @@ async function initializeTelemetry() {
215669
215674
  });
215670
215675
  logs.setGlobalLoggerProvider(loggerProvider);
215671
215676
  setLoggerProvider(loggerProvider);
215672
- const eventLogger = logs.getLogger("com.theus.theus_code.events", { VERSION: "0.2.0", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION);
215677
+ const eventLogger = logs.getLogger("com.theus.theus_code.events", { VERSION: "0.2.3", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION);
215673
215678
  setEventLogger(eventLogger);
215674
215679
  logForDebugging("[3P telemetry] Event logger set successfully");
215675
215680
  process.on("beforeExit", async () => {
@@ -215731,7 +215736,7 @@ Current timeout: ${timeoutMs}ms
215731
215736
  }
215732
215737
  };
215733
215738
  registerCleanup(shutdownTelemetry);
215734
- return meterProvider.getMeter("com.theus.theus_code", { VERSION: "0.2.0", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION);
215739
+ return meterProvider.getMeter("com.theus.theus_code", { VERSION: "0.2.3", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION);
215735
215740
  }
215736
215741
  async function flushTelemetry() {
215737
215742
  const meterProvider = getMeterProvider();
@@ -216271,7 +216276,7 @@ async function installOrUpdateTheusPackage(channel2, specificVersion) {
216271
216276
  return "install_failed";
216272
216277
  }
216273
216278
  const versionSpec = specificVersion ? specificVersion : channel2 === "stable" ? "stable" : "latest";
216274
- const result = await execFileNoThrowWithCwd("npm", ["install", `${{ VERSION: "0.2.0", BUILD_TIME: "1970-01-01T00:00:00.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 });
216279
+ const result = await execFileNoThrowWithCwd("npm", ["install", `${{ VERSION: "0.2.3", BUILD_TIME: "1970-01-01T00:00:00.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 });
216275
216280
  if (result.code !== 0) {
216276
216281
  const error40 = new Error(`Failed to install Theus CLI package: ${result.stderr}`);
216277
216282
  logError2(error40);
@@ -216417,9 +216422,9 @@ async function assertMinVersion() {
216417
216422
  if (false) {}
216418
216423
  try {
216419
216424
  const versionConfig = await getDynamicConfig_BLOCKS_ON_INIT("tengu_version_config", { minVersion: "0.0.0" });
216420
- if (versionConfig.minVersion && lt({ VERSION: "0.2.0", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
216425
+ if (versionConfig.minVersion && lt({ VERSION: "0.2.3", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
216421
216426
  console.error(`
216422
- It looks like your version of Theus (${{ VERSION: "0.2.0", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.
216427
+ It looks like your version of Theus (${{ VERSION: "0.2.3", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.
216423
216428
  A newer version (${versionConfig.minVersion} or higher) is required to continue.
216424
216429
 
216425
216430
  To update, please run:
@@ -216560,7 +216565,7 @@ async function getInstallationPrefix() {
216560
216565
  return prefixResult.stdout.trim();
216561
216566
  }
216562
216567
  function getGlobalInstallPackageManager() {
216563
- if ({ VERSION: "0.2.0", BUILD_TIME: "1970-01-01T00:00:00.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") {
216568
+ if ({ VERSION: "0.2.3", BUILD_TIME: "1970-01-01T00:00:00.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") {
216564
216569
  return "npm";
216565
216570
  }
216566
216571
  return env3.isRunningWithBun() ? "bun" : "npm";
@@ -216585,7 +216590,7 @@ async function checkGlobalInstallPermissions() {
216585
216590
  }
216586
216591
  async function getLatestVersion(channel2) {
216587
216592
  const npmTag = channel2 === "stable" ? "stable" : "latest";
216588
- const result = await execFileNoThrowWithCwd("npm", ["view", `${{ VERSION: "0.2.0", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.PACKAGE_URL}@${npmTag}`, "version", "--prefer-online"], { abortSignal: AbortSignal.timeout(5000), cwd: homedir18() });
216593
+ const result = await execFileNoThrowWithCwd("npm", ["view", `${{ VERSION: "0.2.3", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.PACKAGE_URL}@${npmTag}`, "version", "--prefer-online"], { abortSignal: AbortSignal.timeout(5000), cwd: homedir18() });
216589
216594
  if (result.code !== 0) {
216590
216595
  logForDebugging(`npm view failed with code ${result.code}`);
216591
216596
  if (result.stderr) {
@@ -216601,7 +216606,7 @@ async function getLatestVersion(channel2) {
216601
216606
  return result.stdout.trim();
216602
216607
  }
216603
216608
  async function getNpmDistTags() {
216604
- const result = await execFileNoThrowWithCwd("npm", ["view", { VERSION: "0.2.0", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.PACKAGE_URL, "dist-tags", "--json", "--prefer-online"], { abortSignal: AbortSignal.timeout(5000), cwd: homedir18() });
216609
+ const result = await execFileNoThrowWithCwd("npm", ["view", { VERSION: "0.2.3", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.PACKAGE_URL, "dist-tags", "--json", "--prefer-online"], { abortSignal: AbortSignal.timeout(5000), cwd: homedir18() });
216605
216610
  if (result.code !== 0) {
216606
216611
  logForDebugging(`npm view dist-tags failed with code ${result.code}`);
216607
216612
  return { latest: null, stable: null };
@@ -216641,7 +216646,7 @@ async function installGlobalPackage(specificVersion) {
216641
216646
  logError2(new AutoUpdaterError("Another process is currently installing an update"));
216642
216647
  logEvent("tengu_auto_updater_lock_contention", {
216643
216648
  pid: process.pid,
216644
- currentVersion: { VERSION: "0.2.0", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
216649
+ currentVersion: { VERSION: "0.2.3", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
216645
216650
  });
216646
216651
  return "in_progress";
216647
216652
  }
@@ -216650,7 +216655,7 @@ async function installGlobalPackage(specificVersion) {
216650
216655
  if (!env3.isRunningWithBun() && env3.isNpmFromWindowsPath()) {
216651
216656
  logError2(new Error("Windows NPM detected in WSL environment"));
216652
216657
  logEvent("tengu_auto_updater_windows_npm_in_wsl", {
216653
- currentVersion: { VERSION: "0.2.0", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
216658
+ currentVersion: { VERSION: "0.2.3", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
216654
216659
  });
216655
216660
  console.error(`
216656
216661
  Error: Windows NPM detected in WSL
@@ -216669,7 +216674,7 @@ To fix this issue:
216669
216674
  if (!hasPermissions) {
216670
216675
  return "no_permissions";
216671
216676
  }
216672
- const packageSpec = specificVersion ? `${{ VERSION: "0.2.0", BUILD_TIME: "1970-01-01T00:00:00.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.0", BUILD_TIME: "1970-01-01T00:00:00.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;
216677
+ const packageSpec = specificVersion ? `${{ VERSION: "0.2.3", BUILD_TIME: "1970-01-01T00:00:00.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.3", BUILD_TIME: "1970-01-01T00:00:00.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;
216673
216678
  const packageManager = getGlobalInstallPackageManager();
216674
216679
  const installResult = await execFileNoThrowWithCwd(packageManager, ["install", "-g", packageSpec], { cwd: homedir18() });
216675
216680
  if (installResult.code !== 0) {
@@ -216997,8 +217002,8 @@ async function detectMultipleInstallations() {
216997
217002
  installations.push({ type: "npm-local", path: localPath });
216998
217003
  }
216999
217004
  const packagesToCheck = ["@theus-ai/theus-code"];
217000
- if ({ VERSION: "0.2.0", BUILD_TIME: "1970-01-01T00:00:00.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.0", BUILD_TIME: "1970-01-01T00:00:00.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") {
217001
- packagesToCheck.push({ VERSION: "0.2.0", BUILD_TIME: "1970-01-01T00:00:00.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);
217005
+ if ({ VERSION: "0.2.3", BUILD_TIME: "1970-01-01T00:00:00.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.3", BUILD_TIME: "1970-01-01T00:00:00.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") {
217006
+ packagesToCheck.push({ VERSION: "0.2.3", BUILD_TIME: "1970-01-01T00:00:00.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);
217002
217007
  }
217003
217008
  const npmResult = await execFileNoThrow("npm", [
217004
217009
  "-g",
@@ -217181,7 +217186,7 @@ function detectLinuxGlobPatternWarnings() {
217181
217186
  }
217182
217187
  async function getDoctorDiagnostic() {
217183
217188
  const installationType = await getCurrentInstallationType();
217184
- const version2 = { VERSION: "0.2.0", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.0", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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";
217189
+ const version2 = { VERSION: "0.2.3", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.3", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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";
217185
217190
  const installationPath = await getInstallationPath();
217186
217191
  const invokedBinary = getInvokedBinary();
217187
217192
  const multipleInstallations = await detectMultipleInstallations();
@@ -217193,8 +217198,8 @@ async function getDoctorDiagnostic() {
217193
217198
  for (const install of npmInstalls) {
217194
217199
  if (install.type === "npm-global") {
217195
217200
  let uninstallCmd = "npm -g uninstall @theus-ai/theus-code";
217196
- if ({ VERSION: "0.2.0", BUILD_TIME: "1970-01-01T00:00:00.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.0", BUILD_TIME: "1970-01-01T00:00:00.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") {
217197
- uninstallCmd += ` && npm -g uninstall ${{ VERSION: "0.2.0", BUILD_TIME: "1970-01-01T00:00:00.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}`;
217201
+ if ({ VERSION: "0.2.3", BUILD_TIME: "1970-01-01T00:00:00.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.3", BUILD_TIME: "1970-01-01T00:00:00.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") {
217202
+ uninstallCmd += ` && npm -g uninstall ${{ VERSION: "0.2.3", BUILD_TIME: "1970-01-01T00:00:00.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}`;
217198
217203
  }
217199
217204
  warnings.push({
217200
217205
  issue: `Leftover npm global installation at ${install.path}`,
@@ -217306,7 +217311,7 @@ async function getLatestVersionFromArtifactory(tag2 = "latest") {
217306
217311
  const startTime2 = Date.now();
217307
217312
  const { stdout, code, stderr } = await execFileNoThrowWithCwd("npm", [
217308
217313
  "view",
217309
- `${{ VERSION: "0.2.0", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.NATIVE_PACKAGE_URL}@${tag2}`,
217314
+ `${{ VERSION: "0.2.3", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.NATIVE_PACKAGE_URL}@${tag2}`,
217310
217315
  "version",
217311
217316
  "--prefer-online",
217312
217317
  "--registry",
@@ -217330,7 +217335,7 @@ async function getLatestVersionFromArtifactory(tag2 = "latest") {
217330
217335
  latency_ms: latencyMs,
217331
217336
  source_npm: true
217332
217337
  });
217333
- logForDebugging(`npm view ${{ VERSION: "0.2.0", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.NATIVE_PACKAGE_URL}@${tag2} version: ${stdout}`);
217338
+ logForDebugging(`npm view ${{ VERSION: "0.2.3", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.NATIVE_PACKAGE_URL}@${tag2} version: ${stdout}`);
217334
217339
  const latestVersion = stdout.trim();
217335
217340
  return latestVersion;
217336
217341
  }
@@ -217386,7 +217391,7 @@ async function downloadVersionFromArtifactory(version2, stagingPath) {
217386
217391
  const fs3 = getFsImplementation();
217387
217392
  await fs3.rm(stagingPath, { recursive: true, force: true });
217388
217393
  const platform4 = getPlatform2();
217389
- const platformPackageName = `${{ VERSION: "0.2.0", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.NATIVE_PACKAGE_URL}-${platform4}`;
217394
+ const platformPackageName = `${{ VERSION: "0.2.3", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.NATIVE_PACKAGE_URL}-${platform4}`;
217390
217395
  logForDebugging(`Fetching integrity hash for ${platformPackageName}@${version2}`);
217391
217396
  const {
217392
217397
  stdout: integrityOutput,
@@ -217415,7 +217420,7 @@ async function downloadVersionFromArtifactory(version2, stagingPath) {
217415
217420
  name: "theus-native-installer",
217416
217421
  version: "0.0.1",
217417
217422
  dependencies: {
217418
- [{ VERSION: "0.2.0", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.NATIVE_PACKAGE_URL]: version2
217423
+ [{ VERSION: "0.2.3", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.NATIVE_PACKAGE_URL]: version2
217419
217424
  }
217420
217425
  };
217421
217426
  const packageLock = {
@@ -217428,10 +217433,10 @@ async function downloadVersionFromArtifactory(version2, stagingPath) {
217428
217433
  name: "theus-native-installer",
217429
217434
  version: "0.0.1",
217430
217435
  dependencies: {
217431
- [{ VERSION: "0.2.0", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.NATIVE_PACKAGE_URL]: version2
217436
+ [{ VERSION: "0.2.3", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.NATIVE_PACKAGE_URL]: version2
217432
217437
  }
217433
217438
  },
217434
- [`node_modules/${{ VERSION: "0.2.0", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.NATIVE_PACKAGE_URL}`]: {
217439
+ [`node_modules/${{ VERSION: "0.2.3", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.NATIVE_PACKAGE_URL}`]: {
217435
217440
  version: version2,
217436
217441
  optionalDependencies: {
217437
217442
  [platformPackageName]: version2
@@ -217453,7 +217458,7 @@ async function downloadVersionFromArtifactory(version2, stagingPath) {
217453
217458
  if (result.code !== 0) {
217454
217459
  throw new Error(`npm ci failed with code ${result.code}: ${result.stderr}`);
217455
217460
  }
217456
- logForDebugging(`Successfully downloaded and verified ${{ VERSION: "0.2.0", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.NATIVE_PACKAGE_URL}@${version2}`);
217461
+ logForDebugging(`Successfully downloaded and verified ${{ VERSION: "0.2.3", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.NATIVE_PACKAGE_URL}@${version2}`);
217457
217462
  }
217458
217463
  function getStallTimeoutMs() {
217459
217464
  return Number(process.env.THEUS_CODE_STALL_TIMEOUT_MS_FOR_TESTING) || DEFAULT_STALL_TIMEOUT_MS;
@@ -218116,8 +218121,8 @@ async function updateLatest(channelOrVersion, forceReinstall = false) {
218116
218121
  const maxVersion = await getMaxVersion();
218117
218122
  if (maxVersion && gt(version2, maxVersion)) {
218118
218123
  logForDebugging(`Native installer: maxVersion ${maxVersion} is set, capping update from ${version2} to ${maxVersion}`);
218119
- if (gte({ VERSION: "0.2.0", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
218120
- logForDebugging(`Native installer: current version ${{ VERSION: "0.2.0", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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`);
218124
+ if (gte({ VERSION: "0.2.3", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
218125
+ logForDebugging(`Native installer: current version ${{ VERSION: "0.2.3", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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`);
218121
218126
  logEvent("tengu_native_update_skipped_max_version", {
218122
218127
  latency_ms: Date.now() - startTime2,
218123
218128
  max_version: maxVersion,
@@ -218128,7 +218133,7 @@ async function updateLatest(channelOrVersion, forceReinstall = false) {
218128
218133
  version2 = maxVersion;
218129
218134
  }
218130
218135
  }
218131
- if (!forceReinstall && version2 === { VERSION: "0.2.0", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
218136
+ if (!forceReinstall && version2 === { VERSION: "0.2.3", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
218132
218137
  logForDebugging(`Found ${version2} at ${executablePath}, skipping install`);
218133
218138
  logEvent("tengu_native_update_complete", {
218134
218139
  latency_ms: Date.now() - startTime2,
@@ -218878,8 +218883,8 @@ async function cleanupNpmInstallations() {
218878
218883
  } else if (codePackageResult.error) {
218879
218884
  errors4.push(codePackageResult.error);
218880
218885
  }
218881
- if ({ VERSION: "0.2.0", BUILD_TIME: "1970-01-01T00:00:00.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.0", BUILD_TIME: "1970-01-01T00:00:00.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") {
218882
- const macroPackageResult = await attemptNpmUninstall({ VERSION: "0.2.0", BUILD_TIME: "1970-01-01T00:00:00.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);
218886
+ if ({ VERSION: "0.2.3", BUILD_TIME: "1970-01-01T00:00:00.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.3", BUILD_TIME: "1970-01-01T00:00:00.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") {
218887
+ const macroPackageResult = await attemptNpmUninstall({ VERSION: "0.2.3", BUILD_TIME: "1970-01-01T00:00:00.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);
218883
218888
  if (macroPackageResult.success) {
218884
218889
  removed++;
218885
218890
  if (macroPackageResult.warning) {
@@ -219812,84 +219817,30 @@ var SPINNER_VERBS;
219812
219817
  var init_spinnerVerbs = __esm(() => {
219813
219818
  init_settings2();
219814
219819
  SPINNER_VERBS = [
219815
- "Analizando",
219816
- "Afinando",
219817
- "Armando",
219818
- "Arquitecturando",
219819
- "Articulando",
219820
- "Calculando",
219821
- "Calibrando",
219822
- "Cavilando",
219823
- "Cocinando",
219824
- "Compilando",
219825
- "Componiendo",
219826
- "Conectando",
219827
- "Construyendo",
219828
- "Contemplando",
219829
- "Craneando",
219830
- "Creando",
219831
- "Cristalizando",
219832
- "Curando",
219833
- "Descifrando",
219834
- "Desenredando",
219835
- "Destilando",
219836
- "Devanando",
219837
- "Diagramando",
219838
- "Dibujando",
219839
- "Dise\xF1ando",
219840
- "Elaborando",
219841
- "Elucubrando",
219842
- "Enhebrando",
219843
- "Ensamblando",
219844
- "Esbozando",
219845
- "Escribiendo",
219846
- "Estructurando",
219847
- "Evaluando",
219848
- "Explorando",
219849
219820
  "Forjando",
219850
- "Formulando",
219851
- "Germinando",
219852
- "Hilando",
219853
- "Horneando",
219854
- "Ideando",
219855
- "Iluminando",
219856
- "Imaginando",
219857
- "Indagando",
219858
- "Infiriendo",
219859
- "Integrando",
219860
- "Investigando",
219861
- "Iterando",
219862
- "Maquinando",
219863
- "Meditando",
219864
- "Modelando",
219865
- "Moldeando",
219866
- "Navegando",
219867
- "Orquestando",
219868
- "Organizando",
219869
- "Pensando",
219870
- "Perfilando",
219871
- "Planificando",
219872
- "Ponderando",
219873
- "Preparando",
219874
- "Procesando",
219875
- "Programando",
219821
+ "Templando",
219822
+ "Fundiendo",
219823
+ "Martillando",
219876
219824
  "Puliendo",
219877
- "Razonando",
219878
- "Recopilando",
219879
- "Refinando",
219880
- "Reflexionando",
219881
- "Resolviendo",
219882
- "Revisando",
219883
- "Rumiando",
219884
- "Sintetizando",
219885
- "Sopesando",
219886
- "Tejiendo",
219887
- "Trabajando",
219888
- "Tramando",
219825
+ "Encendiendo",
219826
+ "Avivando",
219827
+ "Soplando brasas",
219828
+ "Moldeando",
219829
+ "Cincelando",
219830
+ "Grabando",
219889
219831
  "Trazando",
219832
+ "Hilando",
219833
+ "Tejiendo",
219890
219834
  "Urdiendo",
219891
- "Validando",
219892
- "Verificando"
219835
+ "Destilando",
219836
+ "Decantando",
219837
+ "Afilando",
219838
+ "Ensamblando",
219839
+ "Remachando",
219840
+ "Bru\xF1endo",
219841
+ "Calibrando",
219842
+ "Aleando",
219843
+ "Vetando escoria"
219893
219844
  ];
219894
219845
  });
219895
219846
 
@@ -220920,10 +220871,7 @@ var init_useTasksV2 = __esm(() => {
220920
220871
 
220921
220872
  // components/Spinner/utils.ts
220922
220873
  function getDefaultCharacters() {
220923
- if (process.env.TERM === "xterm-ghostty") {
220924
- return ["\xB7", "\u2722", "\u2733", "\u2736", "\u273B", "*"];
220925
- }
220926
- return process.platform === "darwin" ? ["\xB7", "\u2722", "\u2733", "\u2736", "\u273B", "\u273D"] : ["\xB7", "\u2722", "*", "\u2736", "\u273B", "\u273D"];
220874
+ return ["\u2190", "\u2196", "\u2191", "\u2197", "\u2192", "\u2198", "\u2193", "\u2199"];
220927
220875
  }
220928
220876
  function interpolateColor(color1, color2, t) {
220929
220877
  return {
@@ -221903,14 +221851,14 @@ function isBackgroundTask(task) {
221903
221851
  var TURN_COMPLETION_VERBS;
221904
221852
  var init_turnCompletionVerbs = __esm(() => {
221905
221853
  TURN_COMPLETION_VERBS = [
221906
- "Baked",
221907
- "Brewed",
221908
- "Churned",
221909
- "Cogitated",
221910
- "Cooked",
221911
- "Crunched",
221912
- "Saut\xE9ed",
221913
- "Worked"
221854
+ "Forjado",
221855
+ "Templado",
221856
+ "Fundido",
221857
+ "Martillado",
221858
+ "Pulido",
221859
+ "Cincelado",
221860
+ "Destilado",
221861
+ "Bru\xF1ido"
221914
221862
  ];
221915
221863
  });
221916
221864
 
@@ -226990,7 +226938,7 @@ function TeammateSpinnerLine({
226990
226938
  dimColor: true,
226991
226939
  children: [
226992
226940
  pastTenseVerb,
226993
- " for ",
226941
+ " en ",
226994
226942
  displayTime
226995
226943
  ]
226996
226944
  });
@@ -227926,6 +227874,9 @@ function SpinnerWithVerbInner({
227926
227874
  }),
227927
227875
  /* @__PURE__ */ jsx_runtime71.jsx(ThemedBox_default, {
227928
227876
  width: "100%",
227877
+ height: 1,
227878
+ overflow: "hidden",
227879
+ flexShrink: 0,
227929
227880
  children: /* @__PURE__ */ jsx_runtime71.jsx(ForgePhaseRail, {
227930
227881
  mode,
227931
227882
  hasActiveTools,
@@ -237122,7 +237073,7 @@ function TurnDurationMessage(t0) {
237122
237073
  } else {
237123
237074
  t6 = $2[8];
237124
237075
  }
237125
- const t7 = showTurnDuration && `${verb} for ${duration3}`;
237076
+ const t7 = showTurnDuration && `${verb} en ${duration3}`;
237126
237077
  const t8 = backgroundTaskSummary && ` \xB7 ${backgroundTaskSummary} still running`;
237127
237078
  let t9;
237128
237079
  if ($2[9] !== budgetSuffix || $2[10] !== t7 || $2[11] !== t8) {
@@ -237163,7 +237114,7 @@ function TurnDurationMessage(t0) {
237163
237114
  return t10;
237164
237115
  }
237165
237116
  function _temp43() {
237166
- return sample_default(TURN_COMPLETION_VERBS) ?? "Worked";
237117
+ return sample_default(TURN_COMPLETION_VERBS) ?? "Forjado";
237167
237118
  }
237168
237119
  function MemorySavedMessage(t0) {
237169
237120
  const $2 = c3(16);
@@ -241424,7 +241375,8 @@ function createTheusMediaAdapter(options2 = {}) {
241424
241375
  label: `Imagen (${formatBytes(bytes.byteLength)})`,
241425
241376
  ref: rel
241426
241377
  };
241427
- return respond("image", `Imagen generada: ${rel}`, start, imageModel, { gatewayProvider: gateway.providerId, sizeBytes: bytes.byteLength }, [artifact]);
241378
+ return respond("image", `Imagen generada: ${rel}
241379
+ Para verla: \`open ${rel}\` (no la leas al contexto).`, start, imageModel, { gatewayProvider: gateway.providerId, sizeBytes: bytes.byteLength }, [artifact]);
241428
241380
  }
241429
241381
  async function generateVideo(request, gateway, start) {
241430
241382
  const rawDuration = request.params?.durationSec;
@@ -296218,9 +296170,9 @@ function getTheusEnvMetadata() {
296218
296170
  };
296219
296171
  }
296220
296172
  function getBuildAgeMinutes() {
296221
- if (!{ VERSION: "0.2.0", BUILD_TIME: "1970-01-01T00:00:00.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)
296173
+ if (!{ VERSION: "0.2.3", BUILD_TIME: "1970-01-01T00:00:00.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)
296222
296174
  return;
296223
- const buildTime = new Date({ VERSION: "0.2.0", BUILD_TIME: "1970-01-01T00:00:00.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();
296175
+ const buildTime = new Date({ VERSION: "0.2.3", BUILD_TIME: "1970-01-01T00:00:00.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();
296224
296176
  if (isNaN(buildTime))
296225
296177
  return;
296226
296178
  return Math.floor((Date.now() - buildTime) / 60000);
@@ -312450,7 +312402,7 @@ function getAssistantMessageFromError(error40, model, options2) {
312450
312402
  if (process.env.USER_TYPE === "ant") {
312451
312403
  const baseMessage = `API Error: 400 ${error40.message}
312452
312404
 
312453
- Run /share and post the JSON file to ${{ VERSION: "0.2.0", BUILD_TIME: "1970-01-01T00:00:00.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}.`;
312405
+ Run /share and post the JSON file to ${{ VERSION: "0.2.3", BUILD_TIME: "1970-01-01T00:00:00.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}.`;
312454
312406
  const rewindInstruction = getIsNonInteractiveSession() ? "" : " Then, use /rewind to recover the conversation.";
312455
312407
  return createAssistantAPIErrorMessage({
312456
312408
  content: baseMessage + rewindInstruction,
@@ -312486,7 +312438,7 @@ Run /share and post the JSON file to ${{ VERSION: "0.2.0", BUILD_TIME: "1970-01-
312486
312438
  if (process.env.USER_TYPE === "ant" && !process.env.THEUS_MODEL && error40 instanceof Error && error40.message.toLowerCase().includes("invalid model name")) {
312487
312439
  const orgId = getOauthAccountInfo()?.organizationUuid;
312488
312440
  const baseMsg = `[THEUS-INTERNAL] Your org isn't gated into the \`${model}\` model. Either run \`theus\` with \`THEUS_MODEL=${getDefaultMainLoopModelSetting()}\``;
312489
- const msg = orgId ? `${baseMsg} or share your orgId (${orgId}) in ${{ VERSION: "0.2.0", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.FEEDBACK_CHANNEL} for help getting access.` : `${baseMsg} or reach out in ${{ VERSION: "0.2.0", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.FEEDBACK_CHANNEL} for help getting access.`;
312441
+ const msg = orgId ? `${baseMsg} or share your orgId (${orgId}) in ${{ VERSION: "0.2.3", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.FEEDBACK_CHANNEL} for help getting access.` : `${baseMsg} or reach out in ${{ VERSION: "0.2.3", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.FEEDBACK_CHANNEL} for help getting access.`;
312490
312442
  return createAssistantAPIErrorMessage({
312491
312443
  content: msg,
312492
312444
  error: "invalid_request"
@@ -322586,7 +322538,7 @@ function buildPrimarySection() {
322586
322538
  });
322587
322539
  return [{
322588
322540
  label: "Version",
322589
- value: { VERSION: "0.2.0", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
322541
+ value: { VERSION: "0.2.3", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
322590
322542
  }, {
322591
322543
  label: "Session name",
322592
322544
  value: nameValue
@@ -326337,7 +326289,7 @@ function Config({
326337
326289
  }
326338
326290
  })
326339
326291
  }) : showSubmenu === "ChannelDowngrade" ? /* @__PURE__ */ jsx_runtime181.jsx(ChannelDowngradeDialog, {
326340
- currentVersion: { VERSION: "0.2.0", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
326292
+ currentVersion: { VERSION: "0.2.3", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
326341
326293
  onChoice: (choice) => {
326342
326294
  setShowSubmenu(null);
326343
326295
  setTabsHidden(false);
@@ -326349,7 +326301,7 @@ function Config({
326349
326301
  autoUpdatesChannel: "stable"
326350
326302
  };
326351
326303
  if (choice === "stay") {
326352
- newSettings.minimumVersion = { VERSION: "0.2.0", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION;
326304
+ newSettings.minimumVersion = { VERSION: "0.2.3", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION;
326353
326305
  }
326354
326306
  updateSettingsForSource("userSettings", newSettings);
326355
326307
  setSettingsData((prev_27) => ({
@@ -334383,7 +334335,7 @@ function HelpV2(t0) {
334383
334335
  let t6;
334384
334336
  if ($2[31] !== tabs) {
334385
334337
  t6 = /* @__PURE__ */ jsx_runtime208.jsx(Tabs, {
334386
- title: `Theus v${{ VERSION: "0.2.0", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION}`,
334338
+ title: `Theus v${{ VERSION: "0.2.3", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION}`,
334387
334339
  color: "professionalBlue",
334388
334340
  defaultTab: "general",
334389
334341
  children: tabs
@@ -336506,6 +336458,30 @@ async function installTheusSession(payload, webUrl) {
336506
336458
  }
336507
336459
  };
336508
336460
  });
336461
+ let models = [];
336462
+ try {
336463
+ const res = await fetch(`${normalizeWebUrl(webUrl)}/v1/models`, {
336464
+ headers: { Authorization: `Bearer ${payload.token}` },
336465
+ signal: AbortSignal.timeout(8000)
336466
+ });
336467
+ if (res.ok) {
336468
+ const data = await res.json();
336469
+ models = (data.data ?? []).filter((m) => typeof m?.id === "string" && m.id !== "theus-embed" && m.id !== "theus-router-auto").map((m) => ({
336470
+ providerId: "theus-official",
336471
+ model: m.id,
336472
+ label: typeof m.name === "string" ? m.name : m.id,
336473
+ taskAffinity: ["code", "chat"],
336474
+ supportsTools: true,
336475
+ supportsVision: m.modality === "multimodal",
336476
+ contextWindow: 200000,
336477
+ maxOutputTokens: 8192,
336478
+ costPer1kInputUsd: 0,
336479
+ costPer1kOutputUsd: 0,
336480
+ qualityTier: 5,
336481
+ latencyClass: "medium"
336482
+ }));
336483
+ }
336484
+ } catch {}
336509
336485
  const officialProvider = saveProviderSetup("custom", {
336510
336486
  id: "theus-official",
336511
336487
  adapter: "openai-compatible",
@@ -336513,7 +336489,8 @@ async function installTheusSession(payload, webUrl) {
336513
336489
  model: "theus-router-auto",
336514
336490
  apiKey: payload.token,
336515
336491
  priority: 250,
336516
- enabled: true
336492
+ enabled: true,
336493
+ ...models.length ? { models } : {}
336517
336494
  });
336518
336495
  await writeFile40(join123(configDir, "session.json"), JSON.stringify({
336519
336496
  product: "Theus",
@@ -351082,6 +351059,36 @@ var init_mcp3 = __esm(() => {
351082
351059
  var NOVEDADES;
351083
351060
  var init_data = __esm(() => {
351084
351061
  NOVEDADES = [
351062
+ {
351063
+ version: "v0.2.3",
351064
+ fecha: "2026-07-11",
351065
+ titulo: "La voz de la forja en cada turno",
351066
+ puntos: [
351067
+ "Wording nuevo de punta a punta: el spinner ahora forja, templa, funde y pule (\xABForjando\u2026\xBB, \xABTemplando\u2026\xBB), y cada turno cierra en espa\xF1ol: \xABForjado en 57s\xBB en vez de \xABCogitated for 57s\xBB.",
351068
+ "Nueva animaci\xF3n de carga: una flecha giratoria \u2014 limpia, estable en cualquier terminal.",
351069
+ "Tus propios verbos siguen soportados v\xEDa settings (spinnerVerbs, modo replace o append)."
351070
+ ]
351071
+ },
351072
+ {
351073
+ version: "v0.2.2",
351074
+ fecha: "2026-07-11",
351075
+ titulo: "Todos tus modelos en /model y errores que explican",
351076
+ puntos: [
351077
+ "Al iniciar sesi\xF3n, el CLI descarga el cat\xE1logo real de tu suscripci\xF3n: /model ahora ofrece todos los modelos de tu plan, no solo el router.",
351078
+ "Si el servidor rechaza una petici\xF3n por tama\xF1o (HTTP 413), el CLI te lo dice en cristiano y te sugiere /compact \u2014 antes aparec\xEDa como un timeout gen\xE9rico.",
351079
+ "Tras generar una imagen, el agente te sugiere abrirla con `open` en vez de leerla al contexto (leer un PNG grande inflaba la conversaci\xF3n y provocaba errores)."
351080
+ ]
351081
+ },
351082
+ {
351083
+ version: "v0.2.1",
351084
+ fecha: "2026-07-10",
351085
+ titulo: "El arranque de forja, pulido",
351086
+ puntos: [
351087
+ "La transici\xF3n del men\xFA a la sesi\xF3n ya no deja restos en pantalla: el REPL arranca sobre una pantalla limpia.",
351088
+ "El rail de fases del turno mantiene altura fija: se acabaron los fragmentos de l\xEDnea sueltos durante el streaming.",
351089
+ "Cabecera de sesi\xF3n con la regla tipogr\xE1fica correcta."
351090
+ ]
351091
+ },
351085
351092
  {
351086
351093
  version: "v0.2.0",
351087
351094
  fecha: "2026-07-10",
@@ -351919,9 +351926,9 @@ function getAllReleaseNotes(changelogContent = getStoredChangelogFromMemory()) {
351919
351926
  return [];
351920
351927
  }
351921
351928
  }
351922
- async function checkForReleaseNotes(lastSeenVersion, currentVersion = { VERSION: "0.2.0", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION) {
351929
+ async function checkForReleaseNotes(lastSeenVersion, currentVersion = { VERSION: "0.2.3", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION) {
351923
351930
  if (process.env.USER_TYPE === "ant") {
351924
- const changelog = { VERSION: "0.2.0", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION_CHANGELOG;
351931
+ const changelog = { VERSION: "0.2.3", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION_CHANGELOG;
351925
351932
  if (changelog) {
351926
351933
  const commits = changelog.trim().split(`
351927
351934
  `).filter(Boolean);
@@ -353041,7 +353048,7 @@ function TheusSessionHeader({ version: version2 }) {
353041
353048
  }),
353042
353049
  /* @__PURE__ */ jsx_runtime237.jsx(ThemedText, {
353043
353050
  color: theme.inactive,
353044
- children: "-".repeat(ruleLength)
353051
+ children: "\u2500".repeat(ruleLength)
353045
353052
  })
353046
353053
  ]
353047
353054
  });
@@ -356143,7 +356150,7 @@ var init_Messages = __esm(() => {
356143
356150
  let t1;
356144
356151
  if ($2[0] === Symbol.for("react.memo_cache_sentinel")) {
356145
356152
  t1 = /* @__PURE__ */ jsx_runtime246.jsx(TheusSessionHeader, {
356146
- version: { VERSION: "0.2.0", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
356153
+ version: { VERSION: "0.2.3", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
356147
356154
  });
356148
356155
  $2[0] = t1;
356149
356156
  } else {
@@ -383683,7 +383690,7 @@ async function captureMemoryDiagnostics(trigger, dumpNumber = 0) {
383683
383690
  smapsRollup,
383684
383691
  platform: process.platform,
383685
383692
  nodeVersion: process.version,
383686
- ccVersion: { VERSION: "0.2.0", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
383693
+ ccVersion: { VERSION: "0.2.3", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
383687
383694
  };
383688
383695
  }
383689
383696
  async function performHeapDump(trigger = "manual", dumpNumber = 0) {
@@ -384269,7 +384276,7 @@ var init_bridge_kick = __esm(() => {
384269
384276
  var call55 = async () => {
384270
384277
  return {
384271
384278
  type: "text",
384272
- value: { VERSION: "0.2.0", BUILD_TIME: "1970-01-01T00:00:00.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.0", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.0", BUILD_TIME: "1970-01-01T00:00:00.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.0", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
384279
+ value: { VERSION: "0.2.3", BUILD_TIME: "1970-01-01T00:00:00.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.3", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.3", BUILD_TIME: "1970-01-01T00:00:00.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.3", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
384273
384280
  };
384274
384281
  }, version2, version_default;
384275
384282
  var init_version = __esm(() => {
@@ -388114,13 +388121,13 @@ async function updateReleaseBundle() {
388114
388121
  await gracefulShutdown(1);
388115
388122
  return;
388116
388123
  }
388117
- if (gte({ VERSION: "0.2.0", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
388118
- writeToStdout(source_default.green(`Theus is up to date (${{ VERSION: "0.2.0", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION})`) + `
388124
+ if (gte({ VERSION: "0.2.3", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
388125
+ writeToStdout(source_default.green(`Theus is up to date (${{ VERSION: "0.2.3", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION})`) + `
388119
388126
  `);
388120
388127
  await gracefulShutdown(0);
388121
388128
  return;
388122
388129
  }
388123
- writeToStdout(`New version available: ${latest} (current: ${{ VERSION: "0.2.0", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION})
388130
+ writeToStdout(`New version available: ${latest} (current: ${{ VERSION: "0.2.3", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION})
388124
388131
  `);
388125
388132
  writeToStdout(`Installing update from theus.pe/dl...
388126
388133
  `);
@@ -388154,7 +388161,7 @@ async function updateReleaseBundle() {
388154
388161
  return;
388155
388162
  }
388156
388163
  cpSync(staged, bundleDir, { recursive: true, force: true });
388157
- writeToStdout(source_default.green(`Successfully updated from ${{ VERSION: "0.2.0", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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}`) + `
388164
+ writeToStdout(source_default.green(`Successfully updated from ${{ VERSION: "0.2.3", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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}`) + `
388158
388165
  `);
388159
388166
  await regenerateCompletionCache();
388160
388167
  } finally {
@@ -388167,7 +388174,7 @@ async function updateReleaseBundle() {
388167
388174
  async function update() {
388168
388175
  logEvent("tengu_update_check", {});
388169
388176
  await updateNaupa();
388170
- writeToStdout(`Current version: ${{ VERSION: "0.2.0", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION}
388177
+ writeToStdout(`Current version: ${{ VERSION: "0.2.3", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION}
388171
388178
  `);
388172
388179
  const channel2 = getInitialSettings()?.autoUpdatesChannel ?? "latest";
388173
388180
  writeToStdout(`Checking for updates to ${channel2} version...
@@ -388246,8 +388253,8 @@ async function update() {
388246
388253
  writeToStdout(`Theus is managed by Homebrew.
388247
388254
  `);
388248
388255
  const latest = await getLatestVersion(channel2);
388249
- if (latest && !gte({ VERSION: "0.2.0", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
388250
- writeToStdout(`Update available: ${{ VERSION: "0.2.0", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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}
388256
+ if (latest && !gte({ VERSION: "0.2.3", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
388257
+ writeToStdout(`Update available: ${{ VERSION: "0.2.3", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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}
388251
388258
  `);
388252
388259
  writeToStdout(`
388253
388260
  `);
@@ -388263,8 +388270,8 @@ async function update() {
388263
388270
  writeToStdout(`Theus is managed by winget.
388264
388271
  `);
388265
388272
  const latest = await getLatestVersion(channel2);
388266
- if (latest && !gte({ VERSION: "0.2.0", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
388267
- writeToStdout(`Update available: ${{ VERSION: "0.2.0", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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}
388273
+ if (latest && !gte({ VERSION: "0.2.3", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
388274
+ writeToStdout(`Update available: ${{ VERSION: "0.2.3", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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}
388268
388275
  `);
388269
388276
  writeToStdout(`
388270
388277
  `);
@@ -388280,8 +388287,8 @@ async function update() {
388280
388287
  writeToStdout(`Theus is managed by apk.
388281
388288
  `);
388282
388289
  const latest = await getLatestVersion(channel2);
388283
- if (latest && !gte({ VERSION: "0.2.0", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
388284
- writeToStdout(`Update available: ${{ VERSION: "0.2.0", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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}
388290
+ if (latest && !gte({ VERSION: "0.2.3", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
388291
+ writeToStdout(`Update available: ${{ VERSION: "0.2.3", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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}
388285
388292
  `);
388286
388293
  writeToStdout(`
388287
388294
  `);
@@ -388346,11 +388353,11 @@ async function update() {
388346
388353
  `);
388347
388354
  await gracefulShutdown(1);
388348
388355
  }
388349
- if (result.latestVersion === { VERSION: "0.2.0", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION) {
388350
- writeToStdout(source_default.green(`Theus is up to date (${{ VERSION: "0.2.0", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION})`) + `
388356
+ if (result.latestVersion === { VERSION: "0.2.3", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION) {
388357
+ writeToStdout(source_default.green(`Theus is up to date (${{ VERSION: "0.2.3", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION})`) + `
388351
388358
  `);
388352
388359
  } else {
388353
- writeToStdout(source_default.green(`Successfully updated from ${{ VERSION: "0.2.0", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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}`) + `
388360
+ writeToStdout(source_default.green(`Successfully updated from ${{ VERSION: "0.2.3", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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}`) + `
388354
388361
  `);
388355
388362
  await regenerateCompletionCache();
388356
388363
  }
@@ -388369,9 +388376,9 @@ async function update() {
388369
388376
  await removeInstalledSymlink();
388370
388377
  }
388371
388378
  logForDebugging("update: Checking npm registry for latest version");
388372
- logForDebugging(`update: Package URL: ${{ VERSION: "0.2.0", BUILD_TIME: "1970-01-01T00:00:00.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}`);
388379
+ logForDebugging(`update: Package URL: ${{ VERSION: "0.2.3", BUILD_TIME: "1970-01-01T00:00:00.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}`);
388373
388380
  const npmTag = channel2 === "stable" ? "stable" : "latest";
388374
- const npmCommand = `npm view ${{ VERSION: "0.2.0", BUILD_TIME: "1970-01-01T00:00:00.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`;
388381
+ const npmCommand = `npm view ${{ VERSION: "0.2.3", BUILD_TIME: "1970-01-01T00:00:00.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`;
388375
388382
  logForDebugging(`update: Running: ${npmCommand}`);
388376
388383
  const latestVersion = await getLatestVersion(channel2);
388377
388384
  logForDebugging(`update: Latest version from npm: ${latestVersion || "FAILED"}`);
@@ -388391,7 +388398,7 @@ async function update() {
388391
388398
  `);
388392
388399
  process.stderr.write(` \u2022 Corporate proxy/firewall blocking npm
388393
388400
  `);
388394
- if ({ VERSION: "0.2.0", BUILD_TIME: "1970-01-01T00:00:00.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.0", BUILD_TIME: "1970-01-01T00:00:00.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")) {
388401
+ if ({ VERSION: "0.2.3", BUILD_TIME: "1970-01-01T00:00:00.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.3", BUILD_TIME: "1970-01-01T00:00:00.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")) {
388395
388402
  process.stderr.write(` \u2022 Internal/development build not published to npm
388396
388403
  `);
388397
388404
  }
@@ -388403,19 +388410,19 @@ async function update() {
388403
388410
  `);
388404
388411
  process.stderr.write(` \u2022 Run with --debug flag for more details
388405
388412
  `);
388406
- const packageName = { VERSION: "0.2.0", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.PACKAGE_URL || (process.env.USER_TYPE === "ant" ? "@theus-ai/theus-cli" : "@theus-ai/theus-code");
388413
+ const packageName = { VERSION: "0.2.3", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.PACKAGE_URL || (process.env.USER_TYPE === "ant" ? "@theus-ai/theus-cli" : "@theus-ai/theus-code");
388407
388414
  process.stderr.write(` \u2022 Manually check: npm view ${packageName} version
388408
388415
  `);
388409
388416
  process.stderr.write(` \u2022 Check if you need to login: npm whoami
388410
388417
  `);
388411
388418
  await gracefulShutdown(1);
388412
388419
  }
388413
- if (gte({ VERSION: "0.2.0", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
388414
- writeToStdout(source_default.green(`Theus is up to date (${{ VERSION: "0.2.0", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION})`) + `
388420
+ if (gte({ VERSION: "0.2.3", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
388421
+ writeToStdout(source_default.green(`Theus is up to date (${{ VERSION: "0.2.3", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION})`) + `
388415
388422
  `);
388416
388423
  await gracefulShutdown(0);
388417
388424
  }
388418
- writeToStdout(`New version available: ${latestVersion} (current: ${{ VERSION: "0.2.0", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION})
388425
+ writeToStdout(`New version available: ${latestVersion} (current: ${{ VERSION: "0.2.3", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION})
388419
388426
  `);
388420
388427
  writeToStdout(`Installing update...
388421
388428
  `);
@@ -388460,7 +388467,7 @@ async function update() {
388460
388467
  logForDebugging(`update: Installation status: ${status2}`);
388461
388468
  switch (status2) {
388462
388469
  case "success":
388463
- writeToStdout(source_default.green(`Successfully updated from ${{ VERSION: "0.2.0", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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}`) + `
388470
+ writeToStdout(source_default.green(`Successfully updated from ${{ VERSION: "0.2.3", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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}`) + `
388464
388471
  `);
388465
388472
  await regenerateCompletionCache();
388466
388473
  break;
@@ -388470,7 +388477,7 @@ async function update() {
388470
388477
  if (useLocalUpdate) {
388471
388478
  process.stderr.write(`Try manually updating with:
388472
388479
  `);
388473
- process.stderr.write(` cd ~/.theus/local && npm update ${{ VERSION: "0.2.0", BUILD_TIME: "1970-01-01T00:00:00.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}
388480
+ process.stderr.write(` cd ~/.theus/local && npm update ${{ VERSION: "0.2.3", BUILD_TIME: "1970-01-01T00:00:00.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}
388474
388481
  `);
388475
388482
  } else {
388476
388483
  process.stderr.write(`Try running with sudo or fix npm permissions
@@ -388486,7 +388493,7 @@ async function update() {
388486
388493
  if (useLocalUpdate) {
388487
388494
  process.stderr.write(`Try manually updating with:
388488
388495
  `);
388489
- process.stderr.write(` cd ~/.theus/local && npm update ${{ VERSION: "0.2.0", BUILD_TIME: "1970-01-01T00:00:00.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}
388496
+ process.stderr.write(` cd ~/.theus/local && npm update ${{ VERSION: "0.2.3", BUILD_TIME: "1970-01-01T00:00:00.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}
388490
388497
  `);
388491
388498
  } else {
388492
388499
  process.stderr.write(`Or consider using native installation with: theus install
@@ -395387,7 +395394,7 @@ var init_sessionStorage = __esm(() => {
395387
395394
  init_settings2();
395388
395395
  init_slowOperations();
395389
395396
  init_uuid();
395390
- VERSION4 = { VERSION: "0.2.0", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION;
395397
+ VERSION4 = { VERSION: "0.2.3", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION;
395391
395398
  MAX_TOMBSTONE_REWRITE_BYTES = 50 * 1024 * 1024;
395392
395399
  SKIP_FIRST_PROMPT_PATTERN = /^(?:\s*<[a-z][\w-]*[\s>]|\[Request interrupted by user[^\]]*\])/;
395393
395400
  EPHEMERAL_PROGRESS_TYPES = new Set([
@@ -396592,7 +396599,7 @@ var init_filesystem = __esm(() => {
396592
396599
  });
396593
396600
  getBundledSkillsRoot = memoize_default(function getBundledSkillsRoot2() {
396594
396601
  const nonce = randomBytes21(16).toString("hex");
396595
- return join144(getTheusTempDir(), "bundled-skills", { VERSION: "0.2.0", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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);
396602
+ return join144(getTheusTempDir(), "bundled-skills", { VERSION: "0.2.3", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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);
396596
396603
  });
396597
396604
  getResolvedWorkingDirPaths = memoize_default(getPathsForPermissionCheck);
396598
396605
  });
@@ -401767,7 +401774,7 @@ function getSimpleDoingTasksSection() {
401767
401774
  ];
401768
401775
  const userHelpSubitems = [
401769
401776
  `/help: Get help with using Theus`,
401770
- `To give feedback, users should ${{ VERSION: "0.2.0", BUILD_TIME: "1970-01-01T00:00:00.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}`
401777
+ `To give feedback, users should ${{ VERSION: "0.2.3", BUILD_TIME: "1970-01-01T00:00:00.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}`
401771
401778
  ];
401772
401779
  const items = [
401773
401780
  `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.`,
@@ -402590,7 +402597,7 @@ function computeFingerprint(messageText, version3) {
402590
402597
  }
402591
402598
  function computeFingerprintFromMessages(messages) {
402592
402599
  const firstMessageText = extractFirstMessageText(messages);
402593
- return computeFingerprint(firstMessageText, { VERSION: "0.2.0", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION);
402600
+ return computeFingerprint(firstMessageText, { VERSION: "0.2.3", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION);
402594
402601
  }
402595
402602
  var FINGERPRINT_SALT = "59cf53e54c78";
402596
402603
  var init_fingerprint = () => {};
@@ -405114,7 +405121,7 @@ async function sideQuery(opts) {
405114
405121
  betas.push(STRUCTURED_OUTPUTS_BETA_HEADER);
405115
405122
  }
405116
405123
  const messageText = extractFirstUserMessageText(messages);
405117
- const fingerprint = computeFingerprint(messageText, { VERSION: "0.2.0", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION);
405124
+ const fingerprint = computeFingerprint(messageText, { VERSION: "0.2.3", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION);
405118
405125
  const attributionHeader = getAttributionHeader(fingerprint);
405119
405126
  const systemBlocks = [
405120
405127
  attributionHeader ? { type: "text", text: attributionHeader } : null,
@@ -406417,7 +406424,7 @@ async function handleMemories(state) {
406417
406424
  async function runProjectContextMcpServer() {
406418
406425
  const projectRoot = process.env.THEUS_PROJECT_ROOT || process.cwd();
406419
406426
  const state = new ProjectContextState(projectRoot);
406420
- const server = new Server({ name: SERVER_NAME, version: { VERSION: "0.2.0", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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: {} } });
406427
+ const server = new Server({ name: SERVER_NAME, version: { VERSION: "0.2.3", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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: {} } });
406421
406428
  server.setRequestHandler(ListToolsRequestSchema, async () => ({
406422
406429
  tools: TOOL_DEFINITIONS.map((t) => ({
406423
406430
  name: t.name,
@@ -412094,7 +412101,7 @@ function buildSystemInitMessage(inputs) {
412094
412101
  slash_commands: inputs.commands.filter((c5) => c5.userInvocable !== false).map((c5) => c5.name),
412095
412102
  apiKeySource: getTheusApiKeyWithSource().source,
412096
412103
  betas: getSdkBetas(),
412097
- theus_code_version: { VERSION: "0.2.0", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
412104
+ theus_code_version: { VERSION: "0.2.3", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
412098
412105
  output_style: outputStyle2,
412099
412106
  agents: inputs.agents.map((agent) => agent.agentType),
412100
412107
  skills: inputs.skills.filter((s) => s.userInvocable !== false).map((skill) => skill.name),
@@ -426728,7 +426735,7 @@ var init_useVoiceEnabled = __esm(() => {
426728
426735
  function getSemverPart(version3) {
426729
426736
  return `${import_semver13.major(version3, { loose: true })}.${import_semver13.minor(version3, { loose: true })}.${import_semver13.patch(version3, { loose: true })}`;
426730
426737
  }
426731
- function useUpdateNotification(updatedVersion, initialVersion = { VERSION: "0.2.0", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION) {
426738
+ function useUpdateNotification(updatedVersion, initialVersion = { VERSION: "0.2.3", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION) {
426732
426739
  const [lastNotifiedSemver, setLastNotifiedSemver] = import_react215.useState(() => getSemverPart(initialVersion));
426733
426740
  if (!updatedVersion) {
426734
426741
  return null;
@@ -426768,7 +426775,7 @@ function AutoUpdater({
426768
426775
  return;
426769
426776
  }
426770
426777
  if (false) {}
426771
- const currentVersion = { VERSION: "0.2.0", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION;
426778
+ const currentVersion = { VERSION: "0.2.3", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION;
426772
426779
  const channel2 = getInitialSettings()?.autoUpdatesChannel ?? "latest";
426773
426780
  let latestVersion = await getLatestVersion(channel2);
426774
426781
  const isDisabled2 = isAutoUpdaterDisabled();
@@ -426904,7 +426911,7 @@ function AutoUpdater({
426904
426911
  " ",
426905
426912
  /* @__PURE__ */ jsx_runtime384.jsx(ThemedText, {
426906
426913
  bold: true,
426907
- children: hasLocalInstall ? `cd ~/.theus/local && npm update ${{ VERSION: "0.2.0", BUILD_TIME: "1970-01-01T00:00:00.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.0", BUILD_TIME: "1970-01-01T00:00:00.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}`
426914
+ children: hasLocalInstall ? `cd ~/.theus/local && npm update ${{ VERSION: "0.2.3", BUILD_TIME: "1970-01-01T00:00:00.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.3", BUILD_TIME: "1970-01-01T00:00:00.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}`
426908
426915
  })
426909
426916
  ]
426910
426917
  })
@@ -426981,12 +426988,12 @@ function NativeAutoUpdater({
426981
426988
  logEvent("tengu_native_auto_updater_start", {});
426982
426989
  try {
426983
426990
  const maxVersion = await getMaxVersion();
426984
- if (maxVersion && gt({ VERSION: "0.2.0", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
426991
+ if (maxVersion && gt({ VERSION: "0.2.3", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
426985
426992
  const msg = await getMaxVersionMessage();
426986
426993
  setMaxVersionIssue(msg ?? "affects your version");
426987
426994
  }
426988
426995
  const result = await installLatest(channel2);
426989
- const currentVersion = { VERSION: "0.2.0", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION;
426996
+ const currentVersion = { VERSION: "0.2.3", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION;
426990
426997
  const latencyMs = Date.now() - startTime2;
426991
426998
  if (result.lockFailed) {
426992
426999
  logEvent("tengu_native_auto_updater_lock_contention", {
@@ -427123,17 +427130,17 @@ function PackageManagerAutoUpdater(t0) {
427123
427130
  const maxVersion = await getMaxVersion();
427124
427131
  if (maxVersion && latest && gt(latest, maxVersion)) {
427125
427132
  logForDebugging(`PackageManagerAutoUpdater: maxVersion ${maxVersion} is set, capping update from ${latest} to ${maxVersion}`);
427126
- if (gte({ VERSION: "0.2.0", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
427127
- logForDebugging(`PackageManagerAutoUpdater: current version ${{ VERSION: "0.2.0", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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`);
427133
+ if (gte({ VERSION: "0.2.3", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
427134
+ logForDebugging(`PackageManagerAutoUpdater: current version ${{ VERSION: "0.2.3", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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`);
427128
427135
  setUpdateAvailable(false);
427129
427136
  return;
427130
427137
  }
427131
427138
  latest = maxVersion;
427132
427139
  }
427133
- const hasUpdate = latest && !gte({ VERSION: "0.2.0", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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);
427140
+ const hasUpdate = latest && !gte({ VERSION: "0.2.3", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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);
427134
427141
  setUpdateAvailable(!!hasUpdate);
427135
427142
  if (hasUpdate) {
427136
- logForDebugging(`PackageManagerAutoUpdater: Update available ${{ VERSION: "0.2.0", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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}`);
427143
+ logForDebugging(`PackageManagerAutoUpdater: Update available ${{ VERSION: "0.2.3", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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}`);
427137
427144
  }
427138
427145
  };
427139
427146
  $2[0] = t1;
@@ -427167,7 +427174,7 @@ function PackageManagerAutoUpdater(t0) {
427167
427174
  wrap: "truncate",
427168
427175
  children: [
427169
427176
  "currentVersion: ",
427170
- { VERSION: "0.2.0", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
427177
+ { VERSION: "0.2.3", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
427171
427178
  ]
427172
427179
  });
427173
427180
  $2[3] = verbose;
@@ -435040,7 +435047,7 @@ function buildStatusLineCommandInput(permissionMode, exceeds200kTokens, settings
435040
435047
  project_dir: getOriginalCwd(),
435041
435048
  added_dirs: addedDirs
435042
435049
  },
435043
- version: { VERSION: "0.2.0", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
435050
+ version: { VERSION: "0.2.3", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
435044
435051
  output_style: {
435045
435052
  name: outputStyleName
435046
435053
  },
@@ -446603,7 +446610,7 @@ async function submitTranscriptShare(messages, trigger, appearanceId) {
446603
446610
  } catch {}
446604
446611
  const data = {
446605
446612
  trigger,
446606
- version: { VERSION: "0.2.0", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
446613
+ version: { VERSION: "0.2.3", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
446607
446614
  platform: process.platform,
446608
446615
  transcript,
446609
446616
  subagentTranscripts: Object.keys(subagentTranscripts).length > 0 ? subagentTranscripts : undefined,
@@ -459548,7 +459555,7 @@ function Onboarding({
459548
459555
  flexDirection: "column",
459549
459556
  children: [
459550
459557
  /* @__PURE__ */ jsx_runtime459.jsx(TheusBanner, {
459551
- version: { VERSION: "0.2.0", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
459558
+ version: { VERSION: "0.2.3", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
459552
459559
  }),
459553
459560
  /* @__PURE__ */ jsx_runtime459.jsxs(ThemedBox_default, {
459554
459561
  flexDirection: "column",
@@ -460419,7 +460426,7 @@ function completeOnboarding() {
460419
460426
  saveGlobalConfig((current) => ({
460420
460427
  ...current,
460421
460428
  hasCompletedOnboarding: true,
460422
- lastOnboardingVersion: { VERSION: "0.2.0", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
460429
+ lastOnboardingVersion: { VERSION: "0.2.3", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
460423
460430
  }));
460424
460431
  }
460425
460432
  function showDialog(root2, renderer) {
@@ -460909,6 +460916,7 @@ API local: ${project2.apiUrl}
460909
460916
  `);
460910
460917
  }
460911
460918
  }
460919
+ process.stdout.write("\x1B[2J\x1B[3J\x1B[H");
460912
460920
  } catch (err2) {
460913
460921
  logError2(err2);
460914
460922
  }
@@ -465354,7 +465362,7 @@ function appendToLog(path21, message) {
465354
465362
  cwd: getFsImplementation().cwd(),
465355
465363
  userType: process.env.USER_TYPE,
465356
465364
  sessionId: getSessionId(),
465357
- version: { VERSION: "0.2.0", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
465365
+ version: { VERSION: "0.2.3", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
465358
465366
  };
465359
465367
  getLogWriter(path21).write(messageWithTimestamp);
465360
465368
  }
@@ -469488,8 +469496,8 @@ async function getEnvLessBridgeConfig() {
469488
469496
  }
469489
469497
  async function checkEnvLessBridgeMinVersion() {
469490
469498
  const cfg = await getEnvLessBridgeConfig();
469491
- if (cfg.min_version && lt({ VERSION: "0.2.0", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
469492
- return `Your version of Theus (${{ VERSION: "0.2.0", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.
469499
+ if (cfg.min_version && lt({ VERSION: "0.2.3", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
469500
+ return `Your version of Theus (${{ VERSION: "0.2.3", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.
469493
469501
  Version ${cfg.min_version} or higher is required. Run \`theus update\` to update.`;
469494
469502
  }
469495
469503
  return null;
@@ -469963,7 +469971,7 @@ async function initBridgeCore(params) {
469963
469971
  const rawApi = createBridgeApiClient({
469964
469972
  baseUrl,
469965
469973
  getAccessToken,
469966
- runnerVersion: { VERSION: "0.2.0", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
469974
+ runnerVersion: { VERSION: "0.2.3", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
469967
469975
  onDebug: logForDebugging,
469968
469976
  onAuth401,
469969
469977
  getTrustedDeviceToken
@@ -475229,7 +475237,7 @@ async function startMCPServer(cwd3, debug2, verbose) {
475229
475237
  setCwd(cwd3);
475230
475238
  const server = new Server({
475231
475239
  name: "theus/tengu",
475232
- version: { VERSION: "0.2.0", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
475240
+ version: { VERSION: "0.2.3", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
475233
475241
  }, {
475234
475242
  capabilities: {
475235
475243
  tools: {}
@@ -476671,7 +476679,7 @@ async function setupTokenHandler(root2) {
476671
476679
  gap: 1,
476672
476680
  children: [
476673
476681
  /* @__PURE__ */ jsx_runtime476.jsx(TheusBanner, {
476674
- version: { VERSION: "0.2.0", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
476682
+ version: { VERSION: "0.2.3", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
476675
476683
  }),
476676
476684
  showAuthWarning && /* @__PURE__ */ jsx_runtime476.jsxs(ThemedBox_default, {
476677
476685
  flexDirection: "column",
@@ -478076,7 +478084,7 @@ ${customInstructions}` : customInstructions;
478076
478084
  }
478077
478085
  }
478078
478086
  logForDiagnosticsNoPII("info", "started", {
478079
- version: { VERSION: "0.2.0", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
478087
+ version: { VERSION: "0.2.3", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
478080
478088
  is_native_binary: isInBundledMode()
478081
478089
  });
478082
478090
  registerCleanup(async () => {
@@ -478860,7 +478868,7 @@ Usage: theus --remote "your task description"`, () => gracefulShutdown(1));
478860
478868
  pendingHookMessages
478861
478869
  }, renderAndRun);
478862
478870
  }
478863
- }).version(`${{ VERSION: "0.2.0", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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");
478871
+ }).version(`${{ VERSION: "0.2.3", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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");
478864
478872
  program2.option("-w, --worktree [name]", "Crea un nuevo worktree de git para esta sesi\xF3n (opcionalmente indica un nombre)");
478865
478873
  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.");
478866
478874
  if (canUserConfigureAdvisor()) {
@@ -479374,7 +479382,7 @@ if (false) {}
479374
479382
  async function main2() {
479375
479383
  const args = process.argv.slice(2);
479376
479384
  if (args.length === 1 && (args[0] === "--version" || args[0] === "-v" || args[0] === "-V")) {
479377
- console.log(`${{ VERSION: "0.2.0", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)`);
479385
+ console.log(`${{ VERSION: "0.2.3", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)`);
479378
479386
  return;
479379
479387
  }
479380
479388
  const {