theus-cli 0.2.0 → 0.2.2

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 +176 -121
  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.2", BUILD_TIME: "1970-01-01T00:00:00.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.2", BUILD_TIME: "1970-01-01T00:00:00.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.2", BUILD_TIME: "1970-01-01T00:00:00.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.2", BUILD_TIME: "1970-01-01T00:00:00.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.2", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.2", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.2", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.2", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.2", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.2", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.2", BUILD_TIME: "1970-01-01T00:00:00.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.2", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.2", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.2", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.2", BUILD_TIME: "1970-01-01T00:00:00.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.2", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.2", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.2", BUILD_TIME: "1970-01-01T00:00:00.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.2", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.2", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.2", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.2", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.2", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.2", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.2", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.2", BUILD_TIME: "1970-01-01T00:00:00.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.2", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.2", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.2", BUILD_TIME: "1970-01-01T00:00:00.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.2", BUILD_TIME: "1970-01-01T00:00:00.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.2", BUILD_TIME: "1970-01-01T00:00:00.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.2", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.2", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.2", BUILD_TIME: "1970-01-01T00:00:00.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.2", BUILD_TIME: "1970-01-01T00:00:00.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.2", BUILD_TIME: "1970-01-01T00:00:00.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.2", BUILD_TIME: "1970-01-01T00:00:00.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.2", BUILD_TIME: "1970-01-01T00:00:00.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.2", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.2", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.2", BUILD_TIME: "1970-01-01T00:00:00.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.2", BUILD_TIME: "1970-01-01T00:00:00.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.2", BUILD_TIME: "1970-01-01T00:00:00.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.2", BUILD_TIME: "1970-01-01T00:00:00.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.2", BUILD_TIME: "1970-01-01T00:00:00.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.2", BUILD_TIME: "1970-01-01T00:00:00.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.2", BUILD_TIME: "1970-01-01T00:00:00.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.2", BUILD_TIME: "1970-01-01T00:00:00.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.2", BUILD_TIME: "1970-01-01T00:00:00.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.2", BUILD_TIME: "1970-01-01T00:00:00.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.2", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.2", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.2", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.2", BUILD_TIME: "1970-01-01T00:00:00.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.2", BUILD_TIME: "1970-01-01T00:00:00.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.2", BUILD_TIME: "1970-01-01T00:00:00.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) {
@@ -227926,6 +227931,9 @@ function SpinnerWithVerbInner({
227926
227931
  }),
227927
227932
  /* @__PURE__ */ jsx_runtime71.jsx(ThemedBox_default, {
227928
227933
  width: "100%",
227934
+ height: 1,
227935
+ overflow: "hidden",
227936
+ flexShrink: 0,
227929
227937
  children: /* @__PURE__ */ jsx_runtime71.jsx(ForgePhaseRail, {
227930
227938
  mode,
227931
227939
  hasActiveTools,
@@ -241424,7 +241432,8 @@ function createTheusMediaAdapter(options2 = {}) {
241424
241432
  label: `Imagen (${formatBytes(bytes.byteLength)})`,
241425
241433
  ref: rel
241426
241434
  };
241427
- return respond("image", `Imagen generada: ${rel}`, start, imageModel, { gatewayProvider: gateway.providerId, sizeBytes: bytes.byteLength }, [artifact]);
241435
+ return respond("image", `Imagen generada: ${rel}
241436
+ Para verla: \`open ${rel}\` (no la leas al contexto).`, start, imageModel, { gatewayProvider: gateway.providerId, sizeBytes: bytes.byteLength }, [artifact]);
241428
241437
  }
241429
241438
  async function generateVideo(request, gateway, start) {
241430
241439
  const rawDuration = request.params?.durationSec;
@@ -296218,9 +296227,9 @@ function getTheusEnvMetadata() {
296218
296227
  };
296219
296228
  }
296220
296229
  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)
296230
+ if (!{ VERSION: "0.2.2", BUILD_TIME: "1970-01-01T00:00:00.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
296231
  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();
296232
+ const buildTime = new Date({ VERSION: "0.2.2", BUILD_TIME: "1970-01-01T00:00:00.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
296233
  if (isNaN(buildTime))
296225
296234
  return;
296226
296235
  return Math.floor((Date.now() - buildTime) / 60000);
@@ -312450,7 +312459,7 @@ function getAssistantMessageFromError(error40, model, options2) {
312450
312459
  if (process.env.USER_TYPE === "ant") {
312451
312460
  const baseMessage = `API Error: 400 ${error40.message}
312452
312461
 
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}.`;
312462
+ Run /share and post the JSON file to ${{ VERSION: "0.2.2", BUILD_TIME: "1970-01-01T00:00:00.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
312463
  const rewindInstruction = getIsNonInteractiveSession() ? "" : " Then, use /rewind to recover the conversation.";
312455
312464
  return createAssistantAPIErrorMessage({
312456
312465
  content: baseMessage + rewindInstruction,
@@ -312486,7 +312495,7 @@ Run /share and post the JSON file to ${{ VERSION: "0.2.0", BUILD_TIME: "1970-01-
312486
312495
  if (process.env.USER_TYPE === "ant" && !process.env.THEUS_MODEL && error40 instanceof Error && error40.message.toLowerCase().includes("invalid model name")) {
312487
312496
  const orgId = getOauthAccountInfo()?.organizationUuid;
312488
312497
  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.`;
312498
+ const msg = orgId ? `${baseMsg} or share your orgId (${orgId}) in ${{ VERSION: "0.2.2", BUILD_TIME: "1970-01-01T00:00:00.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.2", BUILD_TIME: "1970-01-01T00:00:00.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
312499
  return createAssistantAPIErrorMessage({
312491
312500
  content: msg,
312492
312501
  error: "invalid_request"
@@ -322586,7 +322595,7 @@ function buildPrimarySection() {
322586
322595
  });
322587
322596
  return [{
322588
322597
  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
322598
+ value: { VERSION: "0.2.2", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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
322599
  }, {
322591
322600
  label: "Session name",
322592
322601
  value: nameValue
@@ -326337,7 +326346,7 @@ function Config({
326337
326346
  }
326338
326347
  })
326339
326348
  }) : 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,
326349
+ currentVersion: { VERSION: "0.2.2", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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
326350
  onChoice: (choice) => {
326342
326351
  setShowSubmenu(null);
326343
326352
  setTabsHidden(false);
@@ -326349,7 +326358,7 @@ function Config({
326349
326358
  autoUpdatesChannel: "stable"
326350
326359
  };
326351
326360
  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;
326361
+ newSettings.minimumVersion = { VERSION: "0.2.2", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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
326362
  }
326354
326363
  updateSettingsForSource("userSettings", newSettings);
326355
326364
  setSettingsData((prev_27) => ({
@@ -334383,7 +334392,7 @@ function HelpV2(t0) {
334383
334392
  let t6;
334384
334393
  if ($2[31] !== tabs) {
334385
334394
  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}`,
334395
+ title: `Theus v${{ VERSION: "0.2.2", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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
334396
  color: "professionalBlue",
334388
334397
  defaultTab: "general",
334389
334398
  children: tabs
@@ -336506,6 +336515,30 @@ async function installTheusSession(payload, webUrl) {
336506
336515
  }
336507
336516
  };
336508
336517
  });
336518
+ let models = [];
336519
+ try {
336520
+ const res = await fetch(`${normalizeWebUrl(webUrl)}/v1/models`, {
336521
+ headers: { Authorization: `Bearer ${payload.token}` },
336522
+ signal: AbortSignal.timeout(8000)
336523
+ });
336524
+ if (res.ok) {
336525
+ const data = await res.json();
336526
+ models = (data.data ?? []).filter((m) => typeof m?.id === "string" && m.id !== "theus-embed" && m.id !== "theus-router-auto").map((m) => ({
336527
+ providerId: "theus-official",
336528
+ model: m.id,
336529
+ label: typeof m.name === "string" ? m.name : m.id,
336530
+ taskAffinity: ["code", "chat"],
336531
+ supportsTools: true,
336532
+ supportsVision: m.modality === "multimodal",
336533
+ contextWindow: 200000,
336534
+ maxOutputTokens: 8192,
336535
+ costPer1kInputUsd: 0,
336536
+ costPer1kOutputUsd: 0,
336537
+ qualityTier: 5,
336538
+ latencyClass: "medium"
336539
+ }));
336540
+ }
336541
+ } catch {}
336509
336542
  const officialProvider = saveProviderSetup("custom", {
336510
336543
  id: "theus-official",
336511
336544
  adapter: "openai-compatible",
@@ -336513,7 +336546,8 @@ async function installTheusSession(payload, webUrl) {
336513
336546
  model: "theus-router-auto",
336514
336547
  apiKey: payload.token,
336515
336548
  priority: 250,
336516
- enabled: true
336549
+ enabled: true,
336550
+ ...models.length ? { models } : {}
336517
336551
  });
336518
336552
  await writeFile40(join123(configDir, "session.json"), JSON.stringify({
336519
336553
  product: "Theus",
@@ -351082,6 +351116,26 @@ var init_mcp3 = __esm(() => {
351082
351116
  var NOVEDADES;
351083
351117
  var init_data = __esm(() => {
351084
351118
  NOVEDADES = [
351119
+ {
351120
+ version: "v0.2.2",
351121
+ fecha: "2026-07-11",
351122
+ titulo: "Todos tus modelos en /model y errores que explican",
351123
+ puntos: [
351124
+ "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.",
351125
+ "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.",
351126
+ "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)."
351127
+ ]
351128
+ },
351129
+ {
351130
+ version: "v0.2.1",
351131
+ fecha: "2026-07-10",
351132
+ titulo: "El arranque de forja, pulido",
351133
+ puntos: [
351134
+ "La transici\xF3n del men\xFA a la sesi\xF3n ya no deja restos en pantalla: el REPL arranca sobre una pantalla limpia.",
351135
+ "El rail de fases del turno mantiene altura fija: se acabaron los fragmentos de l\xEDnea sueltos durante el streaming.",
351136
+ "Cabecera de sesi\xF3n con la regla tipogr\xE1fica correcta."
351137
+ ]
351138
+ },
351085
351139
  {
351086
351140
  version: "v0.2.0",
351087
351141
  fecha: "2026-07-10",
@@ -351919,9 +351973,9 @@ function getAllReleaseNotes(changelogContent = getStoredChangelogFromMemory()) {
351919
351973
  return [];
351920
351974
  }
351921
351975
  }
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) {
351976
+ async function checkForReleaseNotes(lastSeenVersion, currentVersion = { VERSION: "0.2.2", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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
351977
  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;
351978
+ const changelog = { VERSION: "0.2.2", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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
351979
  if (changelog) {
351926
351980
  const commits = changelog.trim().split(`
351927
351981
  `).filter(Boolean);
@@ -353041,7 +353095,7 @@ function TheusSessionHeader({ version: version2 }) {
353041
353095
  }),
353042
353096
  /* @__PURE__ */ jsx_runtime237.jsx(ThemedText, {
353043
353097
  color: theme.inactive,
353044
- children: "-".repeat(ruleLength)
353098
+ children: "\u2500".repeat(ruleLength)
353045
353099
  })
353046
353100
  ]
353047
353101
  });
@@ -356143,7 +356197,7 @@ var init_Messages = __esm(() => {
356143
356197
  let t1;
356144
356198
  if ($2[0] === Symbol.for("react.memo_cache_sentinel")) {
356145
356199
  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
356200
+ version: { VERSION: "0.2.2", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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
356201
  });
356148
356202
  $2[0] = t1;
356149
356203
  } else {
@@ -383683,7 +383737,7 @@ async function captureMemoryDiagnostics(trigger, dumpNumber = 0) {
383683
383737
  smapsRollup,
383684
383738
  platform: process.platform,
383685
383739
  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
383740
+ ccVersion: { VERSION: "0.2.2", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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
383741
  };
383688
383742
  }
383689
383743
  async function performHeapDump(trigger = "manual", dumpNumber = 0) {
@@ -384269,7 +384323,7 @@ var init_bridge_kick = __esm(() => {
384269
384323
  var call55 = async () => {
384270
384324
  return {
384271
384325
  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
384326
+ value: { VERSION: "0.2.2", BUILD_TIME: "1970-01-01T00:00:00.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.2", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.2", BUILD_TIME: "1970-01-01T00:00:00.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.2", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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
384327
  };
384274
384328
  }, version2, version_default;
384275
384329
  var init_version = __esm(() => {
@@ -388114,13 +388168,13 @@ async function updateReleaseBundle() {
388114
388168
  await gracefulShutdown(1);
388115
388169
  return;
388116
388170
  }
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})`) + `
388171
+ if (gte({ VERSION: "0.2.2", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
388172
+ writeToStdout(source_default.green(`Theus is up to date (${{ VERSION: "0.2.2", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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
388173
  `);
388120
388174
  await gracefulShutdown(0);
388121
388175
  return;
388122
388176
  }
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})
388177
+ writeToStdout(`New version available: ${latest} (current: ${{ VERSION: "0.2.2", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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
388178
  `);
388125
388179
  writeToStdout(`Installing update from theus.pe/dl...
388126
388180
  `);
@@ -388154,7 +388208,7 @@ async function updateReleaseBundle() {
388154
388208
  return;
388155
388209
  }
388156
388210
  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}`) + `
388211
+ writeToStdout(source_default.green(`Successfully updated from ${{ VERSION: "0.2.2", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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
388212
  `);
388159
388213
  await regenerateCompletionCache();
388160
388214
  } finally {
@@ -388167,7 +388221,7 @@ async function updateReleaseBundle() {
388167
388221
  async function update() {
388168
388222
  logEvent("tengu_update_check", {});
388169
388223
  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}
388224
+ writeToStdout(`Current version: ${{ VERSION: "0.2.2", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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
388225
  `);
388172
388226
  const channel2 = getInitialSettings()?.autoUpdatesChannel ?? "latest";
388173
388227
  writeToStdout(`Checking for updates to ${channel2} version...
@@ -388246,8 +388300,8 @@ async function update() {
388246
388300
  writeToStdout(`Theus is managed by Homebrew.
388247
388301
  `);
388248
388302
  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}
388303
+ if (latest && !gte({ VERSION: "0.2.2", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
388304
+ writeToStdout(`Update available: ${{ VERSION: "0.2.2", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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
388305
  `);
388252
388306
  writeToStdout(`
388253
388307
  `);
@@ -388263,8 +388317,8 @@ async function update() {
388263
388317
  writeToStdout(`Theus is managed by winget.
388264
388318
  `);
388265
388319
  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}
388320
+ if (latest && !gte({ VERSION: "0.2.2", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
388321
+ writeToStdout(`Update available: ${{ VERSION: "0.2.2", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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
388322
  `);
388269
388323
  writeToStdout(`
388270
388324
  `);
@@ -388280,8 +388334,8 @@ async function update() {
388280
388334
  writeToStdout(`Theus is managed by apk.
388281
388335
  `);
388282
388336
  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}
388337
+ if (latest && !gte({ VERSION: "0.2.2", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
388338
+ writeToStdout(`Update available: ${{ VERSION: "0.2.2", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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
388339
  `);
388286
388340
  writeToStdout(`
388287
388341
  `);
@@ -388346,11 +388400,11 @@ async function update() {
388346
388400
  `);
388347
388401
  await gracefulShutdown(1);
388348
388402
  }
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})`) + `
388403
+ if (result.latestVersion === { VERSION: "0.2.2", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION) {
388404
+ writeToStdout(source_default.green(`Theus is up to date (${{ VERSION: "0.2.2", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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
388405
  `);
388352
388406
  } 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}`) + `
388407
+ writeToStdout(source_default.green(`Successfully updated from ${{ VERSION: "0.2.2", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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
388408
  `);
388355
388409
  await regenerateCompletionCache();
388356
388410
  }
@@ -388369,9 +388423,9 @@ async function update() {
388369
388423
  await removeInstalledSymlink();
388370
388424
  }
388371
388425
  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}`);
388426
+ logForDebugging(`update: Package URL: ${{ VERSION: "0.2.2", BUILD_TIME: "1970-01-01T00:00:00.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
388427
  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`;
388428
+ const npmCommand = `npm view ${{ VERSION: "0.2.2", BUILD_TIME: "1970-01-01T00:00:00.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
388429
  logForDebugging(`update: Running: ${npmCommand}`);
388376
388430
  const latestVersion = await getLatestVersion(channel2);
388377
388431
  logForDebugging(`update: Latest version from npm: ${latestVersion || "FAILED"}`);
@@ -388391,7 +388445,7 @@ async function update() {
388391
388445
  `);
388392
388446
  process.stderr.write(` \u2022 Corporate proxy/firewall blocking npm
388393
388447
  `);
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")) {
388448
+ if ({ VERSION: "0.2.2", BUILD_TIME: "1970-01-01T00:00:00.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.2", BUILD_TIME: "1970-01-01T00:00:00.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
388449
  process.stderr.write(` \u2022 Internal/development build not published to npm
388396
388450
  `);
388397
388451
  }
@@ -388403,19 +388457,19 @@ async function update() {
388403
388457
  `);
388404
388458
  process.stderr.write(` \u2022 Run with --debug flag for more details
388405
388459
  `);
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");
388460
+ const packageName = { VERSION: "0.2.2", BUILD_TIME: "1970-01-01T00:00:00.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
388461
  process.stderr.write(` \u2022 Manually check: npm view ${packageName} version
388408
388462
  `);
388409
388463
  process.stderr.write(` \u2022 Check if you need to login: npm whoami
388410
388464
  `);
388411
388465
  await gracefulShutdown(1);
388412
388466
  }
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})`) + `
388467
+ if (gte({ VERSION: "0.2.2", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
388468
+ writeToStdout(source_default.green(`Theus is up to date (${{ VERSION: "0.2.2", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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
388469
  `);
388416
388470
  await gracefulShutdown(0);
388417
388471
  }
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})
388472
+ writeToStdout(`New version available: ${latestVersion} (current: ${{ VERSION: "0.2.2", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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
388473
  `);
388420
388474
  writeToStdout(`Installing update...
388421
388475
  `);
@@ -388460,7 +388514,7 @@ async function update() {
388460
388514
  logForDebugging(`update: Installation status: ${status2}`);
388461
388515
  switch (status2) {
388462
388516
  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}`) + `
388517
+ writeToStdout(source_default.green(`Successfully updated from ${{ VERSION: "0.2.2", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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
388518
  `);
388465
388519
  await regenerateCompletionCache();
388466
388520
  break;
@@ -388470,7 +388524,7 @@ async function update() {
388470
388524
  if (useLocalUpdate) {
388471
388525
  process.stderr.write(`Try manually updating with:
388472
388526
  `);
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}
388527
+ process.stderr.write(` cd ~/.theus/local && npm update ${{ VERSION: "0.2.2", BUILD_TIME: "1970-01-01T00:00:00.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
388528
  `);
388475
388529
  } else {
388476
388530
  process.stderr.write(`Try running with sudo or fix npm permissions
@@ -388486,7 +388540,7 @@ async function update() {
388486
388540
  if (useLocalUpdate) {
388487
388541
  process.stderr.write(`Try manually updating with:
388488
388542
  `);
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}
388543
+ process.stderr.write(` cd ~/.theus/local && npm update ${{ VERSION: "0.2.2", BUILD_TIME: "1970-01-01T00:00:00.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
388544
  `);
388491
388545
  } else {
388492
388546
  process.stderr.write(`Or consider using native installation with: theus install
@@ -395387,7 +395441,7 @@ var init_sessionStorage = __esm(() => {
395387
395441
  init_settings2();
395388
395442
  init_slowOperations();
395389
395443
  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;
395444
+ VERSION4 = { VERSION: "0.2.2", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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
395445
  MAX_TOMBSTONE_REWRITE_BYTES = 50 * 1024 * 1024;
395392
395446
  SKIP_FIRST_PROMPT_PATTERN = /^(?:\s*<[a-z][\w-]*[\s>]|\[Request interrupted by user[^\]]*\])/;
395393
395447
  EPHEMERAL_PROGRESS_TYPES = new Set([
@@ -396592,7 +396646,7 @@ var init_filesystem = __esm(() => {
396592
396646
  });
396593
396647
  getBundledSkillsRoot = memoize_default(function getBundledSkillsRoot2() {
396594
396648
  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);
396649
+ return join144(getTheusTempDir(), "bundled-skills", { VERSION: "0.2.2", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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
396650
  });
396597
396651
  getResolvedWorkingDirPaths = memoize_default(getPathsForPermissionCheck);
396598
396652
  });
@@ -401767,7 +401821,7 @@ function getSimpleDoingTasksSection() {
401767
401821
  ];
401768
401822
  const userHelpSubitems = [
401769
401823
  `/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}`
401824
+ `To give feedback, users should ${{ VERSION: "0.2.2", BUILD_TIME: "1970-01-01T00:00:00.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
401825
  ];
401772
401826
  const items = [
401773
401827
  `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 +402644,7 @@ function computeFingerprint(messageText, version3) {
402590
402644
  }
402591
402645
  function computeFingerprintFromMessages(messages) {
402592
402646
  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);
402647
+ return computeFingerprint(firstMessageText, { VERSION: "0.2.2", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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
402648
  }
402595
402649
  var FINGERPRINT_SALT = "59cf53e54c78";
402596
402650
  var init_fingerprint = () => {};
@@ -405114,7 +405168,7 @@ async function sideQuery(opts) {
405114
405168
  betas.push(STRUCTURED_OUTPUTS_BETA_HEADER);
405115
405169
  }
405116
405170
  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);
405171
+ const fingerprint = computeFingerprint(messageText, { VERSION: "0.2.2", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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
405172
  const attributionHeader = getAttributionHeader(fingerprint);
405119
405173
  const systemBlocks = [
405120
405174
  attributionHeader ? { type: "text", text: attributionHeader } : null,
@@ -406417,7 +406471,7 @@ async function handleMemories(state) {
406417
406471
  async function runProjectContextMcpServer() {
406418
406472
  const projectRoot = process.env.THEUS_PROJECT_ROOT || process.cwd();
406419
406473
  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: {} } });
406474
+ const server = new Server({ name: SERVER_NAME, version: { VERSION: "0.2.2", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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
406475
  server.setRequestHandler(ListToolsRequestSchema, async () => ({
406422
406476
  tools: TOOL_DEFINITIONS.map((t) => ({
406423
406477
  name: t.name,
@@ -412094,7 +412148,7 @@ function buildSystemInitMessage(inputs) {
412094
412148
  slash_commands: inputs.commands.filter((c5) => c5.userInvocable !== false).map((c5) => c5.name),
412095
412149
  apiKeySource: getTheusApiKeyWithSource().source,
412096
412150
  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,
412151
+ theus_code_version: { VERSION: "0.2.2", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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
412152
  output_style: outputStyle2,
412099
412153
  agents: inputs.agents.map((agent) => agent.agentType),
412100
412154
  skills: inputs.skills.filter((s) => s.userInvocable !== false).map((skill) => skill.name),
@@ -426728,7 +426782,7 @@ var init_useVoiceEnabled = __esm(() => {
426728
426782
  function getSemverPart(version3) {
426729
426783
  return `${import_semver13.major(version3, { loose: true })}.${import_semver13.minor(version3, { loose: true })}.${import_semver13.patch(version3, { loose: true })}`;
426730
426784
  }
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) {
426785
+ function useUpdateNotification(updatedVersion, initialVersion = { VERSION: "0.2.2", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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
426786
  const [lastNotifiedSemver, setLastNotifiedSemver] = import_react215.useState(() => getSemverPart(initialVersion));
426733
426787
  if (!updatedVersion) {
426734
426788
  return null;
@@ -426768,7 +426822,7 @@ function AutoUpdater({
426768
426822
  return;
426769
426823
  }
426770
426824
  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;
426825
+ const currentVersion = { VERSION: "0.2.2", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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
426826
  const channel2 = getInitialSettings()?.autoUpdatesChannel ?? "latest";
426773
426827
  let latestVersion = await getLatestVersion(channel2);
426774
426828
  const isDisabled2 = isAutoUpdaterDisabled();
@@ -426904,7 +426958,7 @@ function AutoUpdater({
426904
426958
  " ",
426905
426959
  /* @__PURE__ */ jsx_runtime384.jsx(ThemedText, {
426906
426960
  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}`
426961
+ children: hasLocalInstall ? `cd ~/.theus/local && npm update ${{ VERSION: "0.2.2", BUILD_TIME: "1970-01-01T00:00:00.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.2", BUILD_TIME: "1970-01-01T00:00:00.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
426962
  })
426909
426963
  ]
426910
426964
  })
@@ -426981,12 +427035,12 @@ function NativeAutoUpdater({
426981
427035
  logEvent("tengu_native_auto_updater_start", {});
426982
427036
  try {
426983
427037
  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)) {
427038
+ if (maxVersion && gt({ VERSION: "0.2.2", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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
427039
  const msg = await getMaxVersionMessage();
426986
427040
  setMaxVersionIssue(msg ?? "affects your version");
426987
427041
  }
426988
427042
  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;
427043
+ const currentVersion = { VERSION: "0.2.2", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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
427044
  const latencyMs = Date.now() - startTime2;
426991
427045
  if (result.lockFailed) {
426992
427046
  logEvent("tengu_native_auto_updater_lock_contention", {
@@ -427123,17 +427177,17 @@ function PackageManagerAutoUpdater(t0) {
427123
427177
  const maxVersion = await getMaxVersion();
427124
427178
  if (maxVersion && latest && gt(latest, maxVersion)) {
427125
427179
  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`);
427180
+ if (gte({ VERSION: "0.2.2", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
427181
+ logForDebugging(`PackageManagerAutoUpdater: current version ${{ VERSION: "0.2.2", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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
427182
  setUpdateAvailable(false);
427129
427183
  return;
427130
427184
  }
427131
427185
  latest = maxVersion;
427132
427186
  }
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);
427187
+ const hasUpdate = latest && !gte({ VERSION: "0.2.2", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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
427188
  setUpdateAvailable(!!hasUpdate);
427135
427189
  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}`);
427190
+ logForDebugging(`PackageManagerAutoUpdater: Update available ${{ VERSION: "0.2.2", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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
427191
  }
427138
427192
  };
427139
427193
  $2[0] = t1;
@@ -427167,7 +427221,7 @@ function PackageManagerAutoUpdater(t0) {
427167
427221
  wrap: "truncate",
427168
427222
  children: [
427169
427223
  "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
427224
+ { VERSION: "0.2.2", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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
427225
  ]
427172
427226
  });
427173
427227
  $2[3] = verbose;
@@ -435040,7 +435094,7 @@ function buildStatusLineCommandInput(permissionMode, exceeds200kTokens, settings
435040
435094
  project_dir: getOriginalCwd(),
435041
435095
  added_dirs: addedDirs
435042
435096
  },
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,
435097
+ version: { VERSION: "0.2.2", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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
435098
  output_style: {
435045
435099
  name: outputStyleName
435046
435100
  },
@@ -446603,7 +446657,7 @@ async function submitTranscriptShare(messages, trigger, appearanceId) {
446603
446657
  } catch {}
446604
446658
  const data = {
446605
446659
  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,
446660
+ version: { VERSION: "0.2.2", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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
446661
  platform: process.platform,
446608
446662
  transcript,
446609
446663
  subagentTranscripts: Object.keys(subagentTranscripts).length > 0 ? subagentTranscripts : undefined,
@@ -459548,7 +459602,7 @@ function Onboarding({
459548
459602
  flexDirection: "column",
459549
459603
  children: [
459550
459604
  /* @__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
459605
+ version: { VERSION: "0.2.2", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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
459606
  }),
459553
459607
  /* @__PURE__ */ jsx_runtime459.jsxs(ThemedBox_default, {
459554
459608
  flexDirection: "column",
@@ -460419,7 +460473,7 @@ function completeOnboarding() {
460419
460473
  saveGlobalConfig((current) => ({
460420
460474
  ...current,
460421
460475
  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
460476
+ lastOnboardingVersion: { VERSION: "0.2.2", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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
460477
  }));
460424
460478
  }
460425
460479
  function showDialog(root2, renderer) {
@@ -460909,6 +460963,7 @@ API local: ${project2.apiUrl}
460909
460963
  `);
460910
460964
  }
460911
460965
  }
460966
+ process.stdout.write("\x1B[2J\x1B[3J\x1B[H");
460912
460967
  } catch (err2) {
460913
460968
  logError2(err2);
460914
460969
  }
@@ -465354,7 +465409,7 @@ function appendToLog(path21, message) {
465354
465409
  cwd: getFsImplementation().cwd(),
465355
465410
  userType: process.env.USER_TYPE,
465356
465411
  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
465412
+ version: { VERSION: "0.2.2", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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
465413
  };
465359
465414
  getLogWriter(path21).write(messageWithTimestamp);
465360
465415
  }
@@ -469488,8 +469543,8 @@ async function getEnvLessBridgeConfig() {
469488
469543
  }
469489
469544
  async function checkEnvLessBridgeMinVersion() {
469490
469545
  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.
469546
+ if (cfg.min_version && lt({ VERSION: "0.2.2", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
469547
+ return `Your version of Theus (${{ VERSION: "0.2.2", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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
469548
  Version ${cfg.min_version} or higher is required. Run \`theus update\` to update.`;
469494
469549
  }
469495
469550
  return null;
@@ -469963,7 +470018,7 @@ async function initBridgeCore(params) {
469963
470018
  const rawApi = createBridgeApiClient({
469964
470019
  baseUrl,
469965
470020
  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,
470021
+ runnerVersion: { VERSION: "0.2.2", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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
470022
  onDebug: logForDebugging,
469968
470023
  onAuth401,
469969
470024
  getTrustedDeviceToken
@@ -475229,7 +475284,7 @@ async function startMCPServer(cwd3, debug2, verbose) {
475229
475284
  setCwd(cwd3);
475230
475285
  const server = new Server({
475231
475286
  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
475287
+ version: { VERSION: "0.2.2", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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
475288
  }, {
475234
475289
  capabilities: {
475235
475290
  tools: {}
@@ -476671,7 +476726,7 @@ async function setupTokenHandler(root2) {
476671
476726
  gap: 1,
476672
476727
  children: [
476673
476728
  /* @__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
476729
+ version: { VERSION: "0.2.2", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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
476730
  }),
476676
476731
  showAuthWarning && /* @__PURE__ */ jsx_runtime476.jsxs(ThemedBox_default, {
476677
476732
  flexDirection: "column",
@@ -478076,7 +478131,7 @@ ${customInstructions}` : customInstructions;
478076
478131
  }
478077
478132
  }
478078
478133
  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,
478134
+ version: { VERSION: "0.2.2", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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
478135
  is_native_binary: isInBundledMode()
478081
478136
  });
478082
478137
  registerCleanup(async () => {
@@ -478860,7 +478915,7 @@ Usage: theus --remote "your task description"`, () => gracefulShutdown(1));
478860
478915
  pendingHookMessages
478861
478916
  }, renderAndRun);
478862
478917
  }
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");
478918
+ }).version(`${{ VERSION: "0.2.2", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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
478919
  program2.option("-w, --worktree [name]", "Crea un nuevo worktree de git para esta sesi\xF3n (opcionalmente indica un nombre)");
478865
478920
  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
478921
  if (canUserConfigureAdvisor()) {
@@ -479374,7 +479429,7 @@ if (false) {}
479374
479429
  async function main2() {
479375
479430
  const args = process.argv.slice(2);
479376
479431
  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)`);
479432
+ console.log(`${{ VERSION: "0.2.2", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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
479433
  return;
479379
479434
  }
479380
479435
  const {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "theus-cli",
3
- "version": "0.2.0",
3
+ "version": "0.2.2",
4
4
  "description": "Theus — multi-model agent for vibe coding, persistent memory, indexing graphs and visual databases",
5
5
  "type": "module",
6
6
  "bin": {