theus-cli 0.2.54 → 0.2.55

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 -124
  2. package/package.json +1 -1
package/cli.js CHANGED
@@ -58896,7 +58896,7 @@ async function _executeApiKeyHelper(isNonInteractiveSession) {
58896
58896
  if (isApiKeyHelperFromProjectOrLocalSettings()) {
58897
58897
  const hasTrust = checkHasTrustDialogAccepted();
58898
58898
  if (!hasTrust && !isNonInteractiveSession) {
58899
- const error40 = new Error(`Security: apiKeyHelper executed before workspace trust is confirmed. If you see this message, post in ${{ VERSION: "0.2.54", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.FEEDBACK_CHANNEL}.`);
58899
+ const error40 = new Error(`Security: apiKeyHelper executed before workspace trust is confirmed. If you see this message, post in ${{ VERSION: "0.2.55", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.FEEDBACK_CHANNEL}.`);
58900
58900
  logAntError("apiKeyHelper invoked before trust check", error40);
58901
58901
  logEvent("tengu_apiKeyHelper_missing_trust11", {});
58902
58902
  return null;
@@ -58940,7 +58940,7 @@ async function runAwsAuthRefresh() {
58940
58940
  if (isAwsAuthRefreshFromProjectSettings()) {
58941
58941
  const hasTrust = checkHasTrustDialogAccepted();
58942
58942
  if (!hasTrust && !getIsNonInteractiveSession()) {
58943
- const error40 = new Error(`Security: awsAuthRefresh executed before workspace trust is confirmed. If you see this message, post in ${{ VERSION: "0.2.54", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.FEEDBACK_CHANNEL}.`);
58943
+ const error40 = new Error(`Security: awsAuthRefresh executed before workspace trust is confirmed. If you see this message, post in ${{ VERSION: "0.2.55", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.FEEDBACK_CHANNEL}.`);
58944
58944
  logAntError("awsAuthRefresh invoked before trust check", error40);
58945
58945
  logEvent("tengu_awsAuthRefresh_missing_trust", {});
58946
58946
  return false;
@@ -59000,7 +59000,7 @@ async function getAwsCredsFromCredentialExport() {
59000
59000
  if (isAwsCredentialExportFromProjectSettings()) {
59001
59001
  const hasTrust = checkHasTrustDialogAccepted();
59002
59002
  if (!hasTrust && !getIsNonInteractiveSession()) {
59003
- const error40 = new Error(`Security: awsCredentialExport executed before workspace trust is confirmed. If you see this message, post in ${{ VERSION: "0.2.54", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.FEEDBACK_CHANNEL}.`);
59003
+ const error40 = new Error(`Security: awsCredentialExport executed before workspace trust is confirmed. If you see this message, post in ${{ VERSION: "0.2.55", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.FEEDBACK_CHANNEL}.`);
59004
59004
  logAntError("awsCredentialExport invoked before trust check", error40);
59005
59005
  logEvent("tengu_awsCredentialExport_missing_trust", {});
59006
59006
  return null;
@@ -59085,7 +59085,7 @@ async function runGcpAuthRefresh() {
59085
59085
  if (isGcpAuthRefreshFromProjectSettings()) {
59086
59086
  const hasTrust = checkHasTrustDialogAccepted();
59087
59087
  if (!hasTrust && !getIsNonInteractiveSession()) {
59088
- const error40 = new Error(`Security: gcpAuthRefresh executed before workspace trust is confirmed. If you see this message, post in ${{ VERSION: "0.2.54", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.FEEDBACK_CHANNEL}.`);
59088
+ const error40 = new Error(`Security: gcpAuthRefresh executed before workspace trust is confirmed. If you see this message, post in ${{ VERSION: "0.2.55", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.FEEDBACK_CHANNEL}.`);
59089
59089
  logAntError("gcpAuthRefresh invoked before trust check", error40);
59090
59090
  logEvent("tengu_gcpAuthRefresh_missing_trust", {});
59091
59091
  return false;
@@ -59780,7 +59780,7 @@ var init_auth = __esm(() => {
59780
59780
 
59781
59781
  // utils/userAgent.ts
59782
59782
  function getTheusCodeUserAgent() {
59783
- return `theus-code/${{ VERSION: "0.2.54", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION}`;
59783
+ return `theus-code/${{ VERSION: "0.2.55", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION}`;
59784
59784
  }
59785
59785
 
59786
59786
  // utils/workloadContext.ts
@@ -59802,7 +59802,7 @@ function getUserAgent() {
59802
59802
  const clientApp = process.env.THEUS_AGENT_SDK_CLIENT_APP ? `, client-app/${process.env.THEUS_AGENT_SDK_CLIENT_APP}` : "";
59803
59803
  const workload = getWorkload();
59804
59804
  const workloadSuffix = workload ? `, workload/${workload}` : "";
59805
- return `theus-cli/${{ VERSION: "0.2.54", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION} (${process.env.USER_TYPE}, ${process.env.THEUS_CODE_ENTRYPOINT ?? "cli"}${agentSdkVersion}${clientApp}${workloadSuffix})`;
59805
+ return `theus-cli/${{ VERSION: "0.2.55", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION} (${process.env.USER_TYPE}, ${process.env.THEUS_CODE_ENTRYPOINT ?? "cli"}${agentSdkVersion}${clientApp}${workloadSuffix})`;
59806
59806
  }
59807
59807
  function getMCPUserAgent() {
59808
59808
  const parts = [];
@@ -59816,7 +59816,7 @@ function getMCPUserAgent() {
59816
59816
  parts.push(`client-app/${process.env.THEUS_AGENT_SDK_CLIENT_APP}`);
59817
59817
  }
59818
59818
  const suffix = parts.length > 0 ? ` (${parts.join(", ")})` : "";
59819
- return `theus-code/${{ VERSION: "0.2.54", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION}${suffix}`;
59819
+ return `theus-code/${{ VERSION: "0.2.55", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION}${suffix}`;
59820
59820
  }
59821
59821
  function getWebFetchUserAgent() {
59822
59822
  return `Theus-User (${getTheusCodeUserAgent()}; +https://support.theus.pe/)`;
@@ -59954,7 +59954,7 @@ var init_user = __esm(() => {
59954
59954
  deviceId,
59955
59955
  sessionId: getSessionId(),
59956
59956
  email: getEmail(),
59957
- appVersion: { VERSION: "0.2.54", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
59957
+ appVersion: { VERSION: "0.2.55", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
59958
59958
  platform: getHostPlatformForAnalytics(),
59959
59959
  organizationUuid,
59960
59960
  accountUuid,
@@ -61669,7 +61669,7 @@ var init_metadata = __esm(() => {
61669
61669
  COMPOUND_OPERATOR_REGEX = /\s*(?:&&|\|\||[;|])\s*/;
61670
61670
  WHITESPACE_REGEX = /\s+/;
61671
61671
  getVersionBase = memoize_default(() => {
61672
- const match = { VERSION: "0.2.54", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION.match(/^\d+\.\d+\.\d+(?:-[a-z]+)?/);
61672
+ const match = { VERSION: "0.2.55", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION.match(/^\d+\.\d+\.\d+(?:-[a-z]+)?/);
61673
61673
  return match ? match[0] : undefined;
61674
61674
  });
61675
61675
  buildEnvContext = memoize_default(async () => {
@@ -61709,9 +61709,9 @@ var init_metadata = __esm(() => {
61709
61709
  isGithubAction: isEnvTruthy(process.env.GITHUB_ACTIONS),
61710
61710
  isTheusCodeAction: isEnvTruthy(process.env.THEUS_CODE_ACTION),
61711
61711
  isTheusAiAuth: isTheusAISubscriber(),
61712
- version: { VERSION: "0.2.54", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
61712
+ version: { VERSION: "0.2.55", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
61713
61713
  versionBase: getVersionBase(),
61714
- buildTime: { VERSION: "0.2.54", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.BUILD_TIME,
61714
+ buildTime: { VERSION: "0.2.55", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.BUILD_TIME,
61715
61715
  deploymentEnvironment: env3.detectDeploymentEnvironment(),
61716
61716
  ...isEnvTruthy(process.env.GITHUB_ACTIONS) && {
61717
61717
  githubEventName: process.env.GITHUB_EVENT_NAME,
@@ -62377,7 +62377,7 @@ function initialize1PEventLogging() {
62377
62377
  const platform2 = getPlatform();
62378
62378
  const attributes = {
62379
62379
  [ATTR_SERVICE_NAME]: "theus-code",
62380
- [ATTR_SERVICE_VERSION]: { VERSION: "0.2.54", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
62380
+ [ATTR_SERVICE_VERSION]: { VERSION: "0.2.55", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
62381
62381
  };
62382
62382
  if (platform2 === "wsl") {
62383
62383
  const wslVersion = getWslVersion();
@@ -62404,7 +62404,7 @@ function initialize1PEventLogging() {
62404
62404
  })
62405
62405
  ]
62406
62406
  });
62407
- firstPartyEventLogger = firstPartyEventLoggerProvider.getLogger("com.theus.theus_code.events", { VERSION: "0.2.54", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION);
62407
+ firstPartyEventLogger = firstPartyEventLoggerProvider.getLogger("com.theus.theus_code.events", { VERSION: "0.2.55", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION);
62408
62408
  }
62409
62409
  async function reinitialize1PEventLoggingIfConfigChanged() {
62410
62410
  if (!is1PEventLoggingEnabled() || !firstPartyEventLoggerProvider) {
@@ -64275,7 +64275,7 @@ function getAttributionHeader(fingerprint) {
64275
64275
  if (!isAttributionHeaderEnabled()) {
64276
64276
  return "";
64277
64277
  }
64278
- const version2 = `${{ VERSION: "0.2.54", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION}.${fingerprint}`;
64278
+ const version2 = `${{ VERSION: "0.2.55", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION}.${fingerprint}`;
64279
64279
  const entrypoint = process.env.THEUS_CODE_ENTRYPOINT ?? "unknown";
64280
64280
  const cch = "";
64281
64281
  const workload = getWorkload();
@@ -108362,7 +108362,7 @@ Complete the user's request by providing accurate, documentation-based guidance.
108362
108362
  }
108363
108363
  function getFeedbackGuideline() {
108364
108364
  if (isUsing3PServices()) {
108365
- return `- When you cannot find an answer or the feature doesn't exist, direct the user to ${{ VERSION: "0.2.54", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.ISSUES_EXPLAINER}`;
108365
+ return `- When you cannot find an answer or the feature doesn't exist, direct the user to ${{ VERSION: "0.2.55", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.ISSUES_EXPLAINER}`;
108366
108366
  }
108367
108367
  return "- When you cannot find an answer or the feature doesn't exist, direct the user to use /feedback to report a feature request or bug";
108368
108368
  }
@@ -167334,7 +167334,7 @@ function getTelemetryAttributes() {
167334
167334
  attributes["session.id"] = sessionId;
167335
167335
  }
167336
167336
  if (shouldIncludeAttribute("OTEL_METRICS_INCLUDE_VERSION")) {
167337
- attributes["app.version"] = { VERSION: "0.2.54", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION;
167337
+ attributes["app.version"] = { VERSION: "0.2.55", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION;
167338
167338
  }
167339
167339
  const oauthAccount = getOauthAccountInfo();
167340
167340
  if (oauthAccount) {
@@ -203218,7 +203218,7 @@ function getInstallationEnv() {
203218
203218
  return;
203219
203219
  }
203220
203220
  function getTheusCodeVersion() {
203221
- return { VERSION: "0.2.54", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION;
203221
+ return { VERSION: "0.2.55", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION;
203222
203222
  }
203223
203223
  async function getInstalledVSCodeExtensionVersion(command) {
203224
203224
  const { stdout } = await execFileNoThrow(command, ["--list-extensions", "--show-versions"], {
@@ -204736,7 +204736,7 @@ async function getMcpHeadersFromHelper(serverName, config2) {
204736
204736
  if ("scope" in config2 && isMcpServerFromProjectOrLocalSettings(config2) && !getIsNonInteractiveSession()) {
204737
204737
  const hasTrust = checkHasTrustDialogAccepted();
204738
204738
  if (!hasTrust) {
204739
- 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.54", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.FEEDBACK_CHANNEL}.`);
204739
+ 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.55", BUILD_TIME: "1970-01-01T00:00:00.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}.`);
204740
204740
  logAntError("MCP headersHelper invoked before trust check", error40);
204741
204741
  logEvent("tengu_mcp_headersHelper_missing_trust", {});
204742
204742
  return null;
@@ -205946,7 +205946,7 @@ async function setupSdkMcpClients(sdkMcpConfigs, sendMcpMessage) {
205946
205946
  const client2 = new Client({
205947
205947
  name: "theus-code",
205948
205948
  title: "Theus",
205949
- version: { VERSION: "0.2.54", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION ?? "unknown",
205949
+ version: { VERSION: "0.2.55", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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",
205950
205950
  description: "Theus's agentic coding tool",
205951
205951
  websiteUrl: PRODUCT_URL
205952
205952
  }, {
@@ -206300,7 +206300,7 @@ var init_client5 = __esm(() => {
206300
206300
  const client2 = new Client({
206301
206301
  name: "theus-code",
206302
206302
  title: "Theus",
206303
- version: { VERSION: "0.2.54", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION ?? "unknown",
206303
+ version: { VERSION: "0.2.55", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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",
206304
206304
  description: "Theus's agentic coding tool",
206305
206305
  websiteUrl: PRODUCT_URL
206306
206306
  }, {
@@ -216879,7 +216879,7 @@ async function initializeBetaTracing(resource) {
216879
216879
  });
216880
216880
  logs.setGlobalLoggerProvider(loggerProvider);
216881
216881
  setLoggerProvider(loggerProvider);
216882
- const eventLogger = logs.getLogger("com.theus.theus_code.events", { VERSION: "0.2.54", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION);
216882
+ const eventLogger = logs.getLogger("com.theus.theus_code.events", { VERSION: "0.2.55", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION);
216883
216883
  setEventLogger(eventLogger);
216884
216884
  process.on("beforeExit", async () => {
216885
216885
  await loggerProvider?.forceFlush();
@@ -216919,7 +216919,7 @@ async function initializeTelemetry() {
216919
216919
  const platform4 = getPlatform();
216920
216920
  const baseAttributes = {
216921
216921
  [ATTR_SERVICE_NAME]: "theus-code",
216922
- [ATTR_SERVICE_VERSION]: { VERSION: "0.2.54", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
216922
+ [ATTR_SERVICE_VERSION]: { VERSION: "0.2.55", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
216923
216923
  };
216924
216924
  if (platform4 === "wsl") {
216925
216925
  const wslVersion = getWslVersion();
@@ -216964,7 +216964,7 @@ async function initializeTelemetry() {
216964
216964
  } catch {}
216965
216965
  };
216966
216966
  registerCleanup(shutdownTelemetry2);
216967
- return meterProvider2.getMeter("com.theus.theus_code", { VERSION: "0.2.54", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION);
216967
+ return meterProvider2.getMeter("com.theus.theus_code", { VERSION: "0.2.55", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION);
216968
216968
  }
216969
216969
  const meterProvider = new MeterProvider({
216970
216970
  resource,
@@ -216984,7 +216984,7 @@ async function initializeTelemetry() {
216984
216984
  });
216985
216985
  logs.setGlobalLoggerProvider(loggerProvider);
216986
216986
  setLoggerProvider(loggerProvider);
216987
- const eventLogger = logs.getLogger("com.theus.theus_code.events", { VERSION: "0.2.54", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION);
216987
+ const eventLogger = logs.getLogger("com.theus.theus_code.events", { VERSION: "0.2.55", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION);
216988
216988
  setEventLogger(eventLogger);
216989
216989
  logForDebugging("[3P telemetry] Event logger set successfully");
216990
216990
  process.on("beforeExit", async () => {
@@ -217046,7 +217046,7 @@ Current timeout: ${timeoutMs}ms
217046
217046
  }
217047
217047
  };
217048
217048
  registerCleanup(shutdownTelemetry);
217049
- return meterProvider.getMeter("com.theus.theus_code", { VERSION: "0.2.54", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION);
217049
+ return meterProvider.getMeter("com.theus.theus_code", { VERSION: "0.2.55", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION);
217050
217050
  }
217051
217051
  async function flushTelemetry() {
217052
217052
  const meterProvider = getMeterProvider();
@@ -217586,7 +217586,7 @@ async function installOrUpdateTheusPackage(channel2, specificVersion) {
217586
217586
  return "install_failed";
217587
217587
  }
217588
217588
  const versionSpec = specificVersion ? specificVersion : channel2 === "stable" ? "stable" : "latest";
217589
- const result = await execFileNoThrowWithCwd("npm", ["install", `${{ VERSION: "0.2.54", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.PACKAGE_URL}@${versionSpec}`], { cwd: getLocalInstallDir(), maxBuffer: 1e6 });
217589
+ const result = await execFileNoThrowWithCwd("npm", ["install", `${{ VERSION: "0.2.55", BUILD_TIME: "1970-01-01T00:00:00.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 });
217590
217590
  if (result.code !== 0) {
217591
217591
  const error40 = new Error(`Failed to install Theus CLI package: ${result.stderr}`);
217592
217592
  logError2(error40);
@@ -217732,9 +217732,9 @@ async function assertMinVersion() {
217732
217732
  if (false) {}
217733
217733
  try {
217734
217734
  const versionConfig = await getDynamicConfig_BLOCKS_ON_INIT("tengu_version_config", { minVersion: "0.0.0" });
217735
- if (versionConfig.minVersion && lt({ VERSION: "0.2.54", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION, versionConfig.minVersion)) {
217735
+ if (versionConfig.minVersion && lt({ VERSION: "0.2.55", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
217736
217736
  console.error(`
217737
- It looks like your version of Theus (${{ VERSION: "0.2.54", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION}) needs an update.
217737
+ It looks like your version of Theus (${{ VERSION: "0.2.55", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.
217738
217738
  A newer version (${versionConfig.minVersion} or higher) is required to continue.
217739
217739
 
217740
217740
  To update, please run:
@@ -217875,7 +217875,7 @@ async function getInstallationPrefix() {
217875
217875
  return prefixResult.stdout.trim();
217876
217876
  }
217877
217877
  function getGlobalInstallPackageManager() {
217878
- if ({ VERSION: "0.2.54", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.PACKAGE_URL === "theus-cli") {
217878
+ if ({ VERSION: "0.2.55", BUILD_TIME: "1970-01-01T00:00:00.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") {
217879
217879
  return "npm";
217880
217880
  }
217881
217881
  return env3.isRunningWithBun() ? "bun" : "npm";
@@ -217900,7 +217900,7 @@ async function checkGlobalInstallPermissions() {
217900
217900
  }
217901
217901
  async function getLatestVersion(channel2) {
217902
217902
  const npmTag = channel2 === "stable" ? "stable" : "latest";
217903
- const result = await execFileNoThrowWithCwd("npm", ["view", `${{ VERSION: "0.2.54", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.PACKAGE_URL}@${npmTag}`, "version", "--prefer-online"], { abortSignal: AbortSignal.timeout(5000), cwd: homedir18() });
217903
+ const result = await execFileNoThrowWithCwd("npm", ["view", `${{ VERSION: "0.2.55", BUILD_TIME: "1970-01-01T00:00:00.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() });
217904
217904
  if (result.code !== 0) {
217905
217905
  logForDebugging(`npm view failed with code ${result.code}`);
217906
217906
  if (result.stderr) {
@@ -217916,7 +217916,7 @@ async function getLatestVersion(channel2) {
217916
217916
  return result.stdout.trim();
217917
217917
  }
217918
217918
  async function getNpmDistTags() {
217919
- const result = await execFileNoThrowWithCwd("npm", ["view", { VERSION: "0.2.54", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.PACKAGE_URL, "dist-tags", "--json", "--prefer-online"], { abortSignal: AbortSignal.timeout(5000), cwd: homedir18() });
217919
+ const result = await execFileNoThrowWithCwd("npm", ["view", { VERSION: "0.2.55", BUILD_TIME: "1970-01-01T00:00:00.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() });
217920
217920
  if (result.code !== 0) {
217921
217921
  logForDebugging(`npm view dist-tags failed with code ${result.code}`);
217922
217922
  return { latest: null, stable: null };
@@ -217956,7 +217956,7 @@ async function installGlobalPackage(specificVersion) {
217956
217956
  logError2(new AutoUpdaterError("Another process is currently installing an update"));
217957
217957
  logEvent("tengu_auto_updater_lock_contention", {
217958
217958
  pid: process.pid,
217959
- currentVersion: { VERSION: "0.2.54", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
217959
+ currentVersion: { VERSION: "0.2.55", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
217960
217960
  });
217961
217961
  return "in_progress";
217962
217962
  }
@@ -217965,7 +217965,7 @@ async function installGlobalPackage(specificVersion) {
217965
217965
  if (!env3.isRunningWithBun() && env3.isNpmFromWindowsPath()) {
217966
217966
  logError2(new Error("Windows NPM detected in WSL environment"));
217967
217967
  logEvent("tengu_auto_updater_windows_npm_in_wsl", {
217968
- currentVersion: { VERSION: "0.2.54", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
217968
+ currentVersion: { VERSION: "0.2.55", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
217969
217969
  });
217970
217970
  console.error(`
217971
217971
  Error: Windows NPM detected in WSL
@@ -217984,7 +217984,7 @@ To fix this issue:
217984
217984
  if (!hasPermissions) {
217985
217985
  return "no_permissions";
217986
217986
  }
217987
- const packageSpec = specificVersion ? `${{ VERSION: "0.2.54", BUILD_TIME: "1970-01-01T00:00:00.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.54", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.PACKAGE_URL;
217987
+ const packageSpec = specificVersion ? `${{ VERSION: "0.2.55", BUILD_TIME: "1970-01-01T00:00:00.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.55", BUILD_TIME: "1970-01-01T00:00:00.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;
217988
217988
  const packageManager = getGlobalInstallPackageManager();
217989
217989
  const installResult = await execFileNoThrowWithCwd(packageManager, ["install", "-g", packageSpec], { cwd: homedir18() });
217990
217990
  if (installResult.code !== 0) {
@@ -218312,8 +218312,8 @@ async function detectMultipleInstallations() {
218312
218312
  installations.push({ type: "npm-local", path: localPath });
218313
218313
  }
218314
218314
  const packagesToCheck = ["@theus-ai/theus-code"];
218315
- if ({ VERSION: "0.2.54", BUILD_TIME: "1970-01-01T00:00:00.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.54", BUILD_TIME: "1970-01-01T00:00:00.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") {
218316
- packagesToCheck.push({ VERSION: "0.2.54", BUILD_TIME: "1970-01-01T00:00:00.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);
218315
+ if ({ VERSION: "0.2.55", BUILD_TIME: "1970-01-01T00:00:00.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.55", BUILD_TIME: "1970-01-01T00:00:00.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") {
218316
+ packagesToCheck.push({ VERSION: "0.2.55", BUILD_TIME: "1970-01-01T00:00:00.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);
218317
218317
  }
218318
218318
  const npmResult = await execFileNoThrow("npm", [
218319
218319
  "-g",
@@ -218496,7 +218496,7 @@ function detectLinuxGlobPatternWarnings() {
218496
218496
  }
218497
218497
  async function getDoctorDiagnostic() {
218498
218498
  const installationType = await getCurrentInstallationType();
218499
- const version2 = { VERSION: "0.2.54", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.54", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION : "unknown";
218499
+ const version2 = { VERSION: "0.2.55", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.55", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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";
218500
218500
  const installationPath = await getInstallationPath();
218501
218501
  const invokedBinary = getInvokedBinary();
218502
218502
  const multipleInstallations = await detectMultipleInstallations();
@@ -218508,8 +218508,8 @@ async function getDoctorDiagnostic() {
218508
218508
  for (const install of npmInstalls) {
218509
218509
  if (install.type === "npm-global") {
218510
218510
  let uninstallCmd = "npm -g uninstall @theus-ai/theus-code";
218511
- if ({ VERSION: "0.2.54", BUILD_TIME: "1970-01-01T00:00:00.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.54", BUILD_TIME: "1970-01-01T00:00:00.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") {
218512
- uninstallCmd += ` && npm -g uninstall ${{ VERSION: "0.2.54", BUILD_TIME: "1970-01-01T00:00:00.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}`;
218511
+ if ({ VERSION: "0.2.55", BUILD_TIME: "1970-01-01T00:00:00.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.55", BUILD_TIME: "1970-01-01T00:00:00.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") {
218512
+ uninstallCmd += ` && npm -g uninstall ${{ VERSION: "0.2.55", BUILD_TIME: "1970-01-01T00:00:00.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}`;
218513
218513
  }
218514
218514
  warnings.push({
218515
218515
  issue: `Leftover npm global installation at ${install.path}`,
@@ -218621,7 +218621,7 @@ async function getLatestVersionFromArtifactory(tag2 = "latest") {
218621
218621
  const startTime2 = Date.now();
218622
218622
  const { stdout, code, stderr } = await execFileNoThrowWithCwd("npm", [
218623
218623
  "view",
218624
- `${{ VERSION: "0.2.54", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.NATIVE_PACKAGE_URL}@${tag2}`,
218624
+ `${{ VERSION: "0.2.55", BUILD_TIME: "1970-01-01T00:00:00.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}`,
218625
218625
  "version",
218626
218626
  "--prefer-online",
218627
218627
  "--registry",
@@ -218645,7 +218645,7 @@ async function getLatestVersionFromArtifactory(tag2 = "latest") {
218645
218645
  latency_ms: latencyMs,
218646
218646
  source_npm: true
218647
218647
  });
218648
- logForDebugging(`npm view ${{ VERSION: "0.2.54", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.NATIVE_PACKAGE_URL}@${tag2} version: ${stdout}`);
218648
+ logForDebugging(`npm view ${{ VERSION: "0.2.55", BUILD_TIME: "1970-01-01T00:00:00.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}`);
218649
218649
  const latestVersion = stdout.trim();
218650
218650
  return latestVersion;
218651
218651
  }
@@ -218701,7 +218701,7 @@ async function downloadVersionFromArtifactory(version2, stagingPath) {
218701
218701
  const fs3 = getFsImplementation();
218702
218702
  await fs3.rm(stagingPath, { recursive: true, force: true });
218703
218703
  const platform4 = getPlatform2();
218704
- const platformPackageName = `${{ VERSION: "0.2.54", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.NATIVE_PACKAGE_URL}-${platform4}`;
218704
+ const platformPackageName = `${{ VERSION: "0.2.55", BUILD_TIME: "1970-01-01T00:00:00.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}`;
218705
218705
  logForDebugging(`Fetching integrity hash for ${platformPackageName}@${version2}`);
218706
218706
  const {
218707
218707
  stdout: integrityOutput,
@@ -218730,7 +218730,7 @@ async function downloadVersionFromArtifactory(version2, stagingPath) {
218730
218730
  name: "theus-native-installer",
218731
218731
  version: "0.0.1",
218732
218732
  dependencies: {
218733
- [{ VERSION: "0.2.54", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.NATIVE_PACKAGE_URL]: version2
218733
+ [{ VERSION: "0.2.55", BUILD_TIME: "1970-01-01T00:00:00.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
218734
218734
  }
218735
218735
  };
218736
218736
  const packageLock = {
@@ -218743,10 +218743,10 @@ async function downloadVersionFromArtifactory(version2, stagingPath) {
218743
218743
  name: "theus-native-installer",
218744
218744
  version: "0.0.1",
218745
218745
  dependencies: {
218746
- [{ VERSION: "0.2.54", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.NATIVE_PACKAGE_URL]: version2
218746
+ [{ VERSION: "0.2.55", BUILD_TIME: "1970-01-01T00:00:00.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
218747
218747
  }
218748
218748
  },
218749
- [`node_modules/${{ VERSION: "0.2.54", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.NATIVE_PACKAGE_URL}`]: {
218749
+ [`node_modules/${{ VERSION: "0.2.55", BUILD_TIME: "1970-01-01T00:00:00.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}`]: {
218750
218750
  version: version2,
218751
218751
  optionalDependencies: {
218752
218752
  [platformPackageName]: version2
@@ -218768,7 +218768,7 @@ async function downloadVersionFromArtifactory(version2, stagingPath) {
218768
218768
  if (result.code !== 0) {
218769
218769
  throw new Error(`npm ci failed with code ${result.code}: ${result.stderr}`);
218770
218770
  }
218771
- logForDebugging(`Successfully downloaded and verified ${{ VERSION: "0.2.54", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.NATIVE_PACKAGE_URL}@${version2}`);
218771
+ logForDebugging(`Successfully downloaded and verified ${{ VERSION: "0.2.55", BUILD_TIME: "1970-01-01T00:00:00.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}`);
218772
218772
  }
218773
218773
  function getStallTimeoutMs() {
218774
218774
  return Number(process.env.THEUS_CODE_STALL_TIMEOUT_MS_FOR_TESTING) || DEFAULT_STALL_TIMEOUT_MS;
@@ -219431,8 +219431,8 @@ async function updateLatest(channelOrVersion, forceReinstall = false) {
219431
219431
  const maxVersion = await getMaxVersion();
219432
219432
  if (maxVersion && gt(version2, maxVersion)) {
219433
219433
  logForDebugging(`Native installer: maxVersion ${maxVersion} is set, capping update from ${version2} to ${maxVersion}`);
219434
- if (gte({ VERSION: "0.2.54", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
219435
- logForDebugging(`Native installer: current version ${{ VERSION: "0.2.54", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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`);
219434
+ if (gte({ VERSION: "0.2.55", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
219435
+ logForDebugging(`Native installer: current version ${{ VERSION: "0.2.55", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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`);
219436
219436
  logEvent("tengu_native_update_skipped_max_version", {
219437
219437
  latency_ms: Date.now() - startTime2,
219438
219438
  max_version: maxVersion,
@@ -219443,7 +219443,7 @@ async function updateLatest(channelOrVersion, forceReinstall = false) {
219443
219443
  version2 = maxVersion;
219444
219444
  }
219445
219445
  }
219446
- if (!forceReinstall && version2 === { VERSION: "0.2.54", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION && await versionIsAvailable(version2) && await isPossibleTheusBinary(executablePath)) {
219446
+ if (!forceReinstall && version2 === { VERSION: "0.2.55", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
219447
219447
  logForDebugging(`Found ${version2} at ${executablePath}, skipping install`);
219448
219448
  logEvent("tengu_native_update_complete", {
219449
219449
  latency_ms: Date.now() - startTime2,
@@ -220193,8 +220193,8 @@ async function cleanupNpmInstallations() {
220193
220193
  } else if (codePackageResult.error) {
220194
220194
  errors4.push(codePackageResult.error);
220195
220195
  }
220196
- if ({ VERSION: "0.2.54", BUILD_TIME: "1970-01-01T00:00:00.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.54", BUILD_TIME: "1970-01-01T00:00:00.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") {
220197
- const macroPackageResult = await attemptNpmUninstall({ VERSION: "0.2.54", BUILD_TIME: "1970-01-01T00:00:00.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);
220196
+ if ({ VERSION: "0.2.55", BUILD_TIME: "1970-01-01T00:00:00.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.55", BUILD_TIME: "1970-01-01T00:00:00.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") {
220197
+ const macroPackageResult = await attemptNpmUninstall({ VERSION: "0.2.55", BUILD_TIME: "1970-01-01T00:00:00.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);
220198
220198
  if (macroPackageResult.success) {
220199
220199
  removed++;
220200
220200
  if (macroPackageResult.warning) {
@@ -230683,6 +230683,16 @@ var init_ConsoleOAuthFlow = __esm(() => {
230683
230683
  var NOVEDADES;
230684
230684
  var init_data = __esm(() => {
230685
230685
  NOVEDADES = [
230686
+ {
230687
+ version: "v0.2.55",
230688
+ fecha: "2026-07-26",
230689
+ titulo: "La actualizaci\xF3n del motor de c\xF3digo llega a su sitio",
230690
+ puntos: [
230691
+ "El motor de c\xF3digo (\xD1aupa) se actualiza junto con Theus, pero su actualizador escrib\xEDa siempre en una carpeta fija. Si lo ten\xEDas instalado en otra \u2014en Windows, la del instalador\u2014 la versi\xF3n nueva acababa donde nadie la usaba: dec\xEDa \xABlisto\xBB y segu\xEDas con la vieja.",
230692
+ "Ya est\xE1 corregido en el motor (versi\xF3n 1.2.4), y adem\xE1s Theus lo comprueba despu\xE9s de actualizar: si encuentra la versi\xF3n nueva en la carpeta equivocada, la copia al binario que de verdad usa, con respaldo. As\xED el arreglo tambi\xE9n alcanza a quien todav\xEDa tiene la versi\xF3n antigua.",
230693
+ "Con esto, \xABtheus update\xBB deja Theus y el motor al d\xEDa de una sola vez, en Windows igual que en macOS y Linux. El mapa 3D del proyecto estrena adem\xE1s la identidad Theus."
230694
+ ]
230695
+ },
230686
230696
  {
230687
230697
  version: "v0.2.54",
230688
230698
  fecha: "2026-07-26",
@@ -305672,9 +305682,9 @@ function getTheusEnvMetadata() {
305672
305682
  };
305673
305683
  }
305674
305684
  function getBuildAgeMinutes() {
305675
- if (!{ VERSION: "0.2.54", BUILD_TIME: "1970-01-01T00:00:00.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)
305685
+ if (!{ VERSION: "0.2.55", BUILD_TIME: "1970-01-01T00:00:00.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)
305676
305686
  return;
305677
- const buildTime = new Date({ VERSION: "0.2.54", BUILD_TIME: "1970-01-01T00:00:00.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();
305687
+ const buildTime = new Date({ VERSION: "0.2.55", BUILD_TIME: "1970-01-01T00:00:00.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();
305678
305688
  if (isNaN(buildTime))
305679
305689
  return;
305680
305690
  return Math.floor((Date.now() - buildTime) / 60000);
@@ -322329,7 +322339,7 @@ function getAssistantMessageFromError(error40, model, options2) {
322329
322339
  if (process.env.USER_TYPE === "ant") {
322330
322340
  const baseMessage = `API Error: 400 ${error40.message}
322331
322341
 
322332
- Run /share and post the JSON file to ${{ VERSION: "0.2.54", BUILD_TIME: "1970-01-01T00:00:00.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}.`;
322342
+ Run /share and post the JSON file to ${{ VERSION: "0.2.55", BUILD_TIME: "1970-01-01T00:00:00.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}.`;
322333
322343
  const rewindInstruction = getIsNonInteractiveSession() ? "" : " Then, use /rewind to recover the conversation.";
322334
322344
  return createAssistantAPIErrorMessage({
322335
322345
  content: baseMessage + rewindInstruction,
@@ -322365,7 +322375,7 @@ Run /share and post the JSON file to ${{ VERSION: "0.2.54", BUILD_TIME: "1970-01
322365
322375
  if (process.env.USER_TYPE === "ant" && !process.env.THEUS_MODEL && error40 instanceof Error && error40.message.toLowerCase().includes("invalid model name")) {
322366
322376
  const orgId = getOauthAccountInfo()?.organizationUuid;
322367
322377
  const baseMsg = `[THEUS-INTERNAL] Your org isn't gated into the \`${model}\` model. Either run \`theus\` with \`THEUS_MODEL=${getDefaultMainLoopModelSetting()}\``;
322368
- const msg = orgId ? `${baseMsg} or share your orgId (${orgId}) in ${{ VERSION: "0.2.54", BUILD_TIME: "1970-01-01T00:00:00.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.54", BUILD_TIME: "1970-01-01T00:00:00.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.`;
322378
+ const msg = orgId ? `${baseMsg} or share your orgId (${orgId}) in ${{ VERSION: "0.2.55", BUILD_TIME: "1970-01-01T00:00:00.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.55", BUILD_TIME: "1970-01-01T00:00:00.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.`;
322369
322379
  return createAssistantAPIErrorMessage({
322370
322380
  content: msg,
322371
322381
  error: "invalid_request"
@@ -330289,7 +330299,7 @@ async function submitTranscriptShare(messages, trigger, appearanceId) {
330289
330299
  } catch {}
330290
330300
  const data = {
330291
330301
  trigger,
330292
- version: { VERSION: "0.2.54", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
330302
+ version: { VERSION: "0.2.55", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
330293
330303
  platform: process.platform,
330294
330304
  transcript,
330295
330305
  subagentTranscripts: Object.keys(subagentTranscripts).length > 0 ? subagentTranscripts : undefined,
@@ -330494,10 +330504,10 @@ Si el usuario indic\xF3 una duraci\xF3n, p\xE1sala en el par\xE1metro \`duration
330494
330504
 
330495
330505
  // commands/issue/index.ts
330496
330506
  function getCliVersion() {
330497
- return { VERSION: "0.2.54", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.54", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION : "desconocida";
330507
+ return { VERSION: "0.2.55", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.55", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION : "desconocida";
330498
330508
  }
330499
330509
  function getIssuesExplainer() {
330500
- return { VERSION: "0.2.54", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.ISSUES_EXPLAINER ? { VERSION: "0.2.54", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.ISSUES_EXPLAINER : "report issues to the Theus maintainers";
330510
+ return { VERSION: "0.2.55", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.ISSUES_EXPLAINER ? { VERSION: "0.2.55", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.ISSUES_EXPLAINER : "report issues to the Theus maintainers";
330501
330511
  }
330502
330512
  function getActiveModelLabel() {
330503
330513
  try {
@@ -333330,7 +333340,7 @@ function buildPrimarySection() {
333330
333340
  });
333331
333341
  return [{
333332
333342
  label: "Version",
333333
- value: { VERSION: "0.2.54", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
333343
+ value: { VERSION: "0.2.55", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
333334
333344
  }, {
333335
333345
  label: "Session name",
333336
333346
  value: nameValue
@@ -337146,7 +337156,7 @@ function Config({
337146
337156
  }
337147
337157
  })
337148
337158
  }) : showSubmenu === "ChannelDowngrade" ? /* @__PURE__ */ jsx_runtime189.jsx(ChannelDowngradeDialog, {
337149
- currentVersion: { VERSION: "0.2.54", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
337159
+ currentVersion: { VERSION: "0.2.55", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
337150
337160
  onChoice: (choice) => {
337151
337161
  setShowSubmenu(null);
337152
337162
  setTabsHidden(false);
@@ -337158,7 +337168,7 @@ function Config({
337158
337168
  autoUpdatesChannel: "stable"
337159
337169
  };
337160
337170
  if (choice === "stay") {
337161
- newSettings.minimumVersion = { VERSION: "0.2.54", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION;
337171
+ newSettings.minimumVersion = { VERSION: "0.2.55", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION;
337162
337172
  }
337163
337173
  updateSettingsForSource("userSettings", newSettings);
337164
337174
  setSettingsData((prev_27) => ({
@@ -345403,7 +345413,7 @@ function HelpV2(t0) {
345403
345413
  let t6;
345404
345414
  if ($2[31] !== tabs) {
345405
345415
  t6 = /* @__PURE__ */ jsx_runtime217.jsx(Tabs, {
345406
- title: `Theus v${{ VERSION: "0.2.54", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION}`,
345416
+ title: `Theus v${{ VERSION: "0.2.55", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION}`,
345407
345417
  color: "professionalBlue",
345408
345418
  defaultTab: "general",
345409
345419
  children: tabs
@@ -363655,7 +363665,7 @@ function Onboarding({
363655
363665
  flexDirection: "column",
363656
363666
  children: [
363657
363667
  /* @__PURE__ */ jsx_runtime250.jsx(TheusBanner, {
363658
- version: { VERSION: "0.2.54", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
363668
+ version: { VERSION: "0.2.55", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
363659
363669
  }),
363660
363670
  /* @__PURE__ */ jsx_runtime250.jsxs(ThemedBox_default, {
363661
363671
  flexDirection: "column",
@@ -364884,9 +364894,9 @@ function getAllReleaseNotes(changelogContent = getStoredChangelogFromMemory()) {
364884
364894
  return [];
364885
364895
  }
364886
364896
  }
364887
- async function checkForReleaseNotes(lastSeenVersion, currentVersion = { VERSION: "0.2.54", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION) {
364897
+ async function checkForReleaseNotes(lastSeenVersion, currentVersion = { VERSION: "0.2.55", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION) {
364888
364898
  if (process.env.USER_TYPE === "ant") {
364889
- const changelog = { VERSION: "0.2.54", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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;
364899
+ const changelog = { VERSION: "0.2.55", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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;
364890
364900
  if (changelog) {
364891
364901
  const commits = changelog.trim().split(`
364892
364902
  `).filter(Boolean);
@@ -369088,7 +369098,7 @@ var init_Messages = __esm(() => {
369088
369098
  let t1;
369089
369099
  if ($2[0] === Symbol.for("react.memo_cache_sentinel")) {
369090
369100
  t1 = /* @__PURE__ */ jsx_runtime263.jsx(TheusSessionHeader, {
369091
- version: { VERSION: "0.2.54", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
369101
+ version: { VERSION: "0.2.55", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
369092
369102
  });
369093
369103
  $2[0] = t1;
369094
369104
  } else {
@@ -397912,7 +397922,7 @@ async function captureMemoryDiagnostics(trigger, dumpNumber = 0) {
397912
397922
  smapsRollup,
397913
397923
  platform: process.platform,
397914
397924
  nodeVersion: process.version,
397915
- ccVersion: { VERSION: "0.2.54", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
397925
+ ccVersion: { VERSION: "0.2.55", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
397916
397926
  };
397917
397927
  }
397918
397928
  async function performHeapDump(trigger = "manual", dumpNumber = 0) {
@@ -398731,7 +398741,7 @@ var init_bridge_kick = __esm(() => {
398731
398741
  var call65 = async () => {
398732
398742
  return {
398733
398743
  type: "text",
398734
- value: { VERSION: "0.2.54", BUILD_TIME: "1970-01-01T00:00:00.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.54", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.54", BUILD_TIME: "1970-01-01T00:00:00.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.54", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
398744
+ value: { VERSION: "0.2.55", BUILD_TIME: "1970-01-01T00:00:00.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.55", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.55", BUILD_TIME: "1970-01-01T00:00:00.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.55", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
398735
398745
  };
398736
398746
  }, version2, version_default;
398737
398747
  var init_version = __esm(() => {
@@ -401332,7 +401342,7 @@ var SECRET_NAME_PATTERN, EXTRA_ENV_ALLOWLIST, REDACTED2 = "\u2039oculto\u203A",
401332
401342
  const lines = [];
401333
401343
  lines.push("## Entorno de ejecuci\xF3n");
401334
401344
  lines.push("");
401335
- const version3 = { VERSION: "0.2.54", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.54", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION : "desconocida";
401345
+ const version3 = { VERSION: "0.2.55", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.55", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION : "desconocida";
401336
401346
  lines.push(`- Versi\xF3n de Theus: ${version3}`);
401337
401347
  lines.push(`- Directorio de trabajo: ${getCwd()}`);
401338
401348
  lines.push(`- \xBFRepositorio git?: ${isGit ? "s\xED" : "no"}`);
@@ -403702,6 +403712,47 @@ import {
403702
403712
  } from "fs";
403703
403713
  import { tmpdir as tmpdir10 } from "os";
403704
403714
  import { dirname as dirname59, join as join143 } from "path";
403715
+ function naupaVersionOf(bin) {
403716
+ try {
403717
+ const out = spawnSync8(bin, ["--version"], {
403718
+ encoding: "utf8",
403719
+ timeout: 1e4
403720
+ });
403721
+ const m = /(\d+\.\d+\.\d+)/.exec(`${out.stdout ?? ""}${out.stderr ?? ""}`);
403722
+ return m?.[1] ?? null;
403723
+ } catch {
403724
+ return null;
403725
+ }
403726
+ }
403727
+ function rescatarNaupaMalUbicado(binEnUso) {
403728
+ try {
403729
+ const home = process.env.HOME ?? process.env.USERPROFILE;
403730
+ if (!home)
403731
+ return;
403732
+ const nombre = process.platform === "win32" ? "naupa.exe" : "naupa";
403733
+ const rutaFija = join143(home, ".local", "bin", nombre);
403734
+ if (!existsSync18(rutaFija))
403735
+ return;
403736
+ try {
403737
+ if (realpathSync4(rutaFija) === realpathSync4(binEnUso))
403738
+ return;
403739
+ } catch {}
403740
+ const vUso = naupaVersionOf(binEnUso);
403741
+ const vFija = naupaVersionOf(rutaFija);
403742
+ if (!vUso || !vFija || vUso === vFija)
403743
+ return;
403744
+ if (!gte(vFija, vUso))
403745
+ return;
403746
+ cpSync(binEnUso, `${binEnUso}.bak`, { force: true });
403747
+ cpSync(rutaFija, binEnUso, { force: true });
403748
+ writeToStdout(source_default.green(`\xD1aupa: la actualizaci\xF3n se hab\xEDa instalado en otra ruta (${rutaFija}); ` + `la copi\xE9 al binario que usa Theus (${vUso} \u2192 ${vFija}).`) + `
403749
+ `);
403750
+ logEvent("tengu_naupa_update_rescued", {
403751
+ from: vUso,
403752
+ to: vFija
403753
+ });
403754
+ } catch {}
403755
+ }
403705
403756
  async function updateNaupa() {
403706
403757
  if (process.env.THEUS_NO_NAUPA_UPDATE === "1")
403707
403758
  return;
@@ -403743,6 +403794,7 @@ async function updateNaupa() {
403743
403794
  writeToStdout(source_default.yellow(`Aviso: \xD1aupa update termin\xF3 con c\xF3digo ${code}. ` + "Puedes reintentar a mano: naupa update --ui") + `
403744
403795
  `);
403745
403796
  }
403797
+ rescatarNaupaMalUbicado(bin);
403746
403798
  done();
403747
403799
  });
403748
403800
  });
@@ -403801,13 +403853,13 @@ async function updateReleaseBundle() {
403801
403853
  await gracefulShutdown(1);
403802
403854
  return;
403803
403855
  }
403804
- if (gte({ VERSION: "0.2.54", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
403805
- writeToStdout(source_default.green(`Theus is up to date (${{ VERSION: "0.2.54", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION})`) + `
403856
+ if (gte({ VERSION: "0.2.55", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
403857
+ writeToStdout(source_default.green(`Theus is up to date (${{ VERSION: "0.2.55", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION})`) + `
403806
403858
  `);
403807
403859
  await gracefulShutdown(0);
403808
403860
  return;
403809
403861
  }
403810
- writeToStdout(`New version available: ${latest} (current: ${{ VERSION: "0.2.54", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION})
403862
+ writeToStdout(`New version available: ${latest} (current: ${{ VERSION: "0.2.55", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION})
403811
403863
  `);
403812
403864
  writeToStdout(`Installing update from theus.pe/dl...
403813
403865
  `);
@@ -403841,7 +403893,7 @@ async function updateReleaseBundle() {
403841
403893
  return;
403842
403894
  }
403843
403895
  cpSync(staged, bundleDir, { recursive: true, force: true });
403844
- writeToStdout(source_default.green(`Successfully updated from ${{ VERSION: "0.2.54", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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}`) + `
403896
+ writeToStdout(source_default.green(`Successfully updated from ${{ VERSION: "0.2.55", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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}`) + `
403845
403897
  `);
403846
403898
  await regenerateCompletionCache();
403847
403899
  } finally {
@@ -403854,7 +403906,7 @@ async function updateReleaseBundle() {
403854
403906
  async function update() {
403855
403907
  logEvent("tengu_update_check", {});
403856
403908
  await updateNaupa();
403857
- writeToStdout(`Current version: ${{ VERSION: "0.2.54", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION}
403909
+ writeToStdout(`Current version: ${{ VERSION: "0.2.55", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION}
403858
403910
  `);
403859
403911
  const channel2 = getInitialSettings()?.autoUpdatesChannel ?? "latest";
403860
403912
  writeToStdout(`Checking for updates to ${channel2} version...
@@ -403933,8 +403985,8 @@ async function update() {
403933
403985
  writeToStdout(`Theus is managed by Homebrew.
403934
403986
  `);
403935
403987
  const latest = await getLatestVersion(channel2);
403936
- if (latest && !gte({ VERSION: "0.2.54", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
403937
- writeToStdout(`Update available: ${{ VERSION: "0.2.54", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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}
403988
+ if (latest && !gte({ VERSION: "0.2.55", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
403989
+ writeToStdout(`Update available: ${{ VERSION: "0.2.55", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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}
403938
403990
  `);
403939
403991
  writeToStdout(`
403940
403992
  `);
@@ -403950,8 +404002,8 @@ async function update() {
403950
404002
  writeToStdout(`Theus is managed by winget.
403951
404003
  `);
403952
404004
  const latest = await getLatestVersion(channel2);
403953
- if (latest && !gte({ VERSION: "0.2.54", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
403954
- writeToStdout(`Update available: ${{ VERSION: "0.2.54", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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}
404005
+ if (latest && !gte({ VERSION: "0.2.55", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
404006
+ writeToStdout(`Update available: ${{ VERSION: "0.2.55", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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}
403955
404007
  `);
403956
404008
  writeToStdout(`
403957
404009
  `);
@@ -403967,8 +404019,8 @@ async function update() {
403967
404019
  writeToStdout(`Theus is managed by apk.
403968
404020
  `);
403969
404021
  const latest = await getLatestVersion(channel2);
403970
- if (latest && !gte({ VERSION: "0.2.54", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
403971
- writeToStdout(`Update available: ${{ VERSION: "0.2.54", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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}
404022
+ if (latest && !gte({ VERSION: "0.2.55", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
404023
+ writeToStdout(`Update available: ${{ VERSION: "0.2.55", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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}
403972
404024
  `);
403973
404025
  writeToStdout(`
403974
404026
  `);
@@ -404033,11 +404085,11 @@ async function update() {
404033
404085
  `);
404034
404086
  await gracefulShutdown(1);
404035
404087
  }
404036
- if (result.latestVersion === { VERSION: "0.2.54", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION) {
404037
- writeToStdout(source_default.green(`Theus is up to date (${{ VERSION: "0.2.54", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION})`) + `
404088
+ if (result.latestVersion === { VERSION: "0.2.55", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION) {
404089
+ writeToStdout(source_default.green(`Theus is up to date (${{ VERSION: "0.2.55", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION})`) + `
404038
404090
  `);
404039
404091
  } else {
404040
- writeToStdout(source_default.green(`Successfully updated from ${{ VERSION: "0.2.54", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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}`) + `
404092
+ writeToStdout(source_default.green(`Successfully updated from ${{ VERSION: "0.2.55", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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}`) + `
404041
404093
  `);
404042
404094
  await regenerateCompletionCache();
404043
404095
  }
@@ -404056,9 +404108,9 @@ async function update() {
404056
404108
  await removeInstalledSymlink();
404057
404109
  }
404058
404110
  logForDebugging("update: Checking npm registry for latest version");
404059
- logForDebugging(`update: Package URL: ${{ VERSION: "0.2.54", BUILD_TIME: "1970-01-01T00:00:00.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}`);
404111
+ logForDebugging(`update: Package URL: ${{ VERSION: "0.2.55", BUILD_TIME: "1970-01-01T00:00:00.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}`);
404060
404112
  const npmTag = channel2 === "stable" ? "stable" : "latest";
404061
- const npmCommand = `npm view ${{ VERSION: "0.2.54", BUILD_TIME: "1970-01-01T00:00:00.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`;
404113
+ const npmCommand = `npm view ${{ VERSION: "0.2.55", BUILD_TIME: "1970-01-01T00:00:00.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`;
404062
404114
  logForDebugging(`update: Running: ${npmCommand}`);
404063
404115
  const latestVersion = await getLatestVersion(channel2);
404064
404116
  logForDebugging(`update: Latest version from npm: ${latestVersion || "FAILED"}`);
@@ -404078,7 +404130,7 @@ async function update() {
404078
404130
  `);
404079
404131
  process.stderr.write(` \u2022 Corporate proxy/firewall blocking npm
404080
404132
  `);
404081
- if ({ VERSION: "0.2.54", BUILD_TIME: "1970-01-01T00:00:00.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.54", BUILD_TIME: "1970-01-01T00:00:00.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")) {
404133
+ if ({ VERSION: "0.2.55", BUILD_TIME: "1970-01-01T00:00:00.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.55", BUILD_TIME: "1970-01-01T00:00:00.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")) {
404082
404134
  process.stderr.write(` \u2022 Internal/development build not published to npm
404083
404135
  `);
404084
404136
  }
@@ -404090,19 +404142,19 @@ async function update() {
404090
404142
  `);
404091
404143
  process.stderr.write(` \u2022 Run with --debug flag for more details
404092
404144
  `);
404093
- const packageName = { VERSION: "0.2.54", BUILD_TIME: "1970-01-01T00:00:00.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");
404145
+ const packageName = { VERSION: "0.2.55", BUILD_TIME: "1970-01-01T00:00:00.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");
404094
404146
  process.stderr.write(` \u2022 Manually check: npm view ${packageName} version
404095
404147
  `);
404096
404148
  process.stderr.write(` \u2022 Check if you need to login: npm whoami
404097
404149
  `);
404098
404150
  await gracefulShutdown(1);
404099
404151
  }
404100
- if (gte({ VERSION: "0.2.54", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
404101
- writeToStdout(source_default.green(`Theus is up to date (${{ VERSION: "0.2.54", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION})`) + `
404152
+ if (gte({ VERSION: "0.2.55", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
404153
+ writeToStdout(source_default.green(`Theus is up to date (${{ VERSION: "0.2.55", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION})`) + `
404102
404154
  `);
404103
404155
  await gracefulShutdown(0);
404104
404156
  }
404105
- writeToStdout(`New version available: ${latestVersion} (current: ${{ VERSION: "0.2.54", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION})
404157
+ writeToStdout(`New version available: ${latestVersion} (current: ${{ VERSION: "0.2.55", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION})
404106
404158
  `);
404107
404159
  writeToStdout(`Installing update...
404108
404160
  `);
@@ -404147,7 +404199,7 @@ async function update() {
404147
404199
  logForDebugging(`update: Installation status: ${status2}`);
404148
404200
  switch (status2) {
404149
404201
  case "success":
404150
- writeToStdout(source_default.green(`Successfully updated from ${{ VERSION: "0.2.54", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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}`) + `
404202
+ writeToStdout(source_default.green(`Successfully updated from ${{ VERSION: "0.2.55", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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}`) + `
404151
404203
  `);
404152
404204
  await regenerateCompletionCache();
404153
404205
  break;
@@ -404157,7 +404209,7 @@ async function update() {
404157
404209
  if (useLocalUpdate) {
404158
404210
  process.stderr.write(`Try manually updating with:
404159
404211
  `);
404160
- process.stderr.write(` cd ~/.theus/local && npm update ${{ VERSION: "0.2.54", BUILD_TIME: "1970-01-01T00:00:00.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}
404212
+ process.stderr.write(` cd ~/.theus/local && npm update ${{ VERSION: "0.2.55", BUILD_TIME: "1970-01-01T00:00:00.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}
404161
404213
  `);
404162
404214
  } else {
404163
404215
  process.stderr.write(`Try running with sudo or fix npm permissions
@@ -404173,7 +404225,7 @@ async function update() {
404173
404225
  if (useLocalUpdate) {
404174
404226
  process.stderr.write(`Try manually updating with:
404175
404227
  `);
404176
- process.stderr.write(` cd ~/.theus/local && npm update ${{ VERSION: "0.2.54", BUILD_TIME: "1970-01-01T00:00:00.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}
404228
+ process.stderr.write(` cd ~/.theus/local && npm update ${{ VERSION: "0.2.55", BUILD_TIME: "1970-01-01T00:00:00.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}
404177
404229
  `);
404178
404230
  } else {
404179
404231
  process.stderr.write(`Or consider using native installation with: theus install
@@ -414013,7 +414065,7 @@ var init_sessionStorage = __esm(() => {
414013
414065
  init_settings2();
414014
414066
  init_slowOperations();
414015
414067
  init_uuid();
414016
- VERSION4 = { VERSION: "0.2.54", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION;
414068
+ VERSION4 = { VERSION: "0.2.55", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION;
414017
414069
  MAX_TOMBSTONE_REWRITE_BYTES = 50 * 1024 * 1024;
414018
414070
  SKIP_FIRST_PROMPT_PATTERN2 = /^(?:\s*<[a-z][\w-]*[\s>]|\[Request interrupted by user[^\]]*\])/;
414019
414071
  EPHEMERAL_PROGRESS_TYPES = new Set([
@@ -415218,7 +415270,7 @@ var init_filesystem = __esm(() => {
415218
415270
  });
415219
415271
  getBundledSkillsRoot = memoize_default(function getBundledSkillsRoot2() {
415220
415272
  const nonce = randomBytes21(16).toString("hex");
415221
- return join150(getTheusTempDir(), "bundled-skills", { VERSION: "0.2.54", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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);
415273
+ return join150(getTheusTempDir(), "bundled-skills", { VERSION: "0.2.55", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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);
415222
415274
  });
415223
415275
  getResolvedWorkingDirPaths = memoize_default(getPathsForPermissionCheck);
415224
415276
  });
@@ -420397,7 +420449,7 @@ function getSimpleDoingTasksSection() {
420397
420449
  ];
420398
420450
  const userHelpSubitems = [
420399
420451
  `/help: Get help with using Theus`,
420400
- `To give feedback, users should ${{ VERSION: "0.2.54", BUILD_TIME: "1970-01-01T00:00:00.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}`
420452
+ `To give feedback, users should ${{ VERSION: "0.2.55", BUILD_TIME: "1970-01-01T00:00:00.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}`
420401
420453
  ];
420402
420454
  const items = [
420403
420455
  `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.`,
@@ -421297,7 +421349,7 @@ function computeFingerprint(messageText, version3) {
421297
421349
  }
421298
421350
  function computeFingerprintFromMessages(messages) {
421299
421351
  const firstMessageText = extractFirstMessageText(messages);
421300
- return computeFingerprint(firstMessageText, { VERSION: "0.2.54", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION);
421352
+ return computeFingerprint(firstMessageText, { VERSION: "0.2.55", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION);
421301
421353
  }
421302
421354
  var FINGERPRINT_SALT = "59cf53e54c78";
421303
421355
  var init_fingerprint = () => {};
@@ -423920,7 +423972,7 @@ async function sideQuery(opts) {
423920
423972
  betas.push(STRUCTURED_OUTPUTS_BETA_HEADER);
423921
423973
  }
423922
423974
  const messageText = extractFirstUserMessageText(messages);
423923
- const fingerprint = computeFingerprint(messageText, { VERSION: "0.2.54", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION);
423975
+ const fingerprint = computeFingerprint(messageText, { VERSION: "0.2.55", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION);
423924
423976
  const attributionHeader = getAttributionHeader(fingerprint);
423925
423977
  const systemBlocks = [
423926
423978
  attributionHeader ? { type: "text", text: attributionHeader } : null,
@@ -425223,7 +425275,7 @@ async function handleMemories(state) {
425223
425275
  async function runProjectContextMcpServer() {
425224
425276
  const projectRoot = process.env.THEUS_PROJECT_ROOT || process.cwd();
425225
425277
  const state = new ProjectContextState(projectRoot);
425226
- const server2 = new Server({ name: SERVER_NAME, version: { VERSION: "0.2.54", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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: {} } });
425278
+ const server2 = new Server({ name: SERVER_NAME, version: { VERSION: "0.2.55", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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: {} } });
425227
425279
  server2.setRequestHandler(ListToolsRequestSchema, async () => ({
425228
425280
  tools: TOOL_DEFINITIONS.map((t) => ({
425229
425281
  name: t.name,
@@ -427205,7 +427257,7 @@ function createBridgeLogger(options2) {
427205
427257
  connectUrl = buildBridgeConnectUrl(environmentId, cachedIngressUrl);
427206
427258
  regenerateQr(connectUrl);
427207
427259
  if (verbose) {
427208
- write(source_default.dim(`Remote Control`) + ` v${{ VERSION: "0.2.54", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION}
427260
+ write(source_default.dim(`Remote Control`) + ` v${{ VERSION: "0.2.55", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION}
427209
427261
  `);
427210
427262
  }
427211
427263
  if (verbose) {
@@ -428178,7 +428230,7 @@ function appendToLog(path19, message) {
428178
428230
  cwd: getFsImplementation().cwd(),
428179
428231
  userType: process.env.USER_TYPE,
428180
428232
  sessionId: getSessionId(),
428181
- version: { VERSION: "0.2.54", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
428233
+ version: { VERSION: "0.2.55", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
428182
428234
  };
428183
428235
  getLogWriter(path19).write(messageWithTimestamp);
428184
428236
  }
@@ -429448,7 +429500,7 @@ Spawn mode for this project:
429448
429500
  const api2 = createBridgeApiClient({
429449
429501
  baseUrl,
429450
429502
  getAccessToken: getBridgeAccessToken2,
429451
- runnerVersion: { VERSION: "0.2.54", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
429503
+ runnerVersion: { VERSION: "0.2.55", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
429452
429504
  onDebug: logForDebugging,
429453
429505
  onAuth401: handleOAuth401Error2,
429454
429506
  getTrustedDeviceToken
@@ -429686,7 +429738,7 @@ async function runBridgeHeadless(opts, signal) {
429686
429738
  const api2 = createBridgeApiClient({
429687
429739
  baseUrl,
429688
429740
  getAccessToken: opts.getAccessToken,
429689
- runnerVersion: { VERSION: "0.2.54", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
429741
+ runnerVersion: { VERSION: "0.2.55", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
429690
429742
  onDebug: log2,
429691
429743
  onAuth401: opts.onAuth401,
429692
429744
  getTrustedDeviceToken
@@ -433752,7 +433804,7 @@ function buildSystemInitMessage(inputs) {
433752
433804
  slash_commands: inputs.commands.filter((c5) => c5.userInvocable !== false).map((c5) => c5.name),
433753
433805
  apiKeySource: getTheusApiKeyWithSource().source,
433754
433806
  betas: getSdkBetas(),
433755
- theus_code_version: { VERSION: "0.2.54", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
433807
+ theus_code_version: { VERSION: "0.2.55", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
433756
433808
  output_style: outputStyle2,
433757
433809
  agents: inputs.agents.map((agent) => agent.agentType),
433758
433810
  skills: inputs.skills.filter((s) => s.userInvocable !== false).map((skill) => skill.name),
@@ -433792,8 +433844,8 @@ async function getEnvLessBridgeConfig() {
433792
433844
  }
433793
433845
  async function checkEnvLessBridgeMinVersion() {
433794
433846
  const cfg = await getEnvLessBridgeConfig();
433795
- if (cfg.min_version && lt({ VERSION: "0.2.54", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
433796
- return `Your version of Theus (${{ VERSION: "0.2.54", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.
433847
+ if (cfg.min_version && lt({ VERSION: "0.2.55", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
433848
+ return `Your version of Theus (${{ VERSION: "0.2.55", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.
433797
433849
  Version ${cfg.min_version} or higher is required. Run \`theus update\` to update.`;
433798
433850
  }
433799
433851
  return null;
@@ -436117,7 +436169,7 @@ async function initBridgeCore(params) {
436117
436169
  const rawApi = createBridgeApiClient({
436118
436170
  baseUrl,
436119
436171
  getAccessToken,
436120
- runnerVersion: { VERSION: "0.2.54", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
436172
+ runnerVersion: { VERSION: "0.2.55", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
436121
436173
  onDebug: logForDebugging,
436122
436174
  onAuth401,
436123
436175
  getTrustedDeviceToken
@@ -452860,7 +452912,7 @@ var init_useVoiceEnabled = __esm(() => {
452860
452912
  function getSemverPart(version3) {
452861
452913
  return `${import_semver14.major(version3, { loose: true })}.${import_semver14.minor(version3, { loose: true })}.${import_semver14.patch(version3, { loose: true })}`;
452862
452914
  }
452863
- function useUpdateNotification(updatedVersion, initialVersion = { VERSION: "0.2.54", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION) {
452915
+ function useUpdateNotification(updatedVersion, initialVersion = { VERSION: "0.2.55", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION) {
452864
452916
  const [lastNotifiedSemver, setLastNotifiedSemver] = import_react233.useState(() => getSemverPart(initialVersion));
452865
452917
  if (!updatedVersion) {
452866
452918
  return null;
@@ -452900,7 +452952,7 @@ function AutoUpdater({
452900
452952
  return;
452901
452953
  }
452902
452954
  if (false) {}
452903
- const currentVersion = { VERSION: "0.2.54", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION;
452955
+ const currentVersion = { VERSION: "0.2.55", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION;
452904
452956
  const channel2 = getInitialSettings()?.autoUpdatesChannel ?? "latest";
452905
452957
  let latestVersion = await getLatestVersion(channel2);
452906
452958
  const isDisabled2 = isAutoUpdaterDisabled();
@@ -453036,7 +453088,7 @@ function AutoUpdater({
453036
453088
  " ",
453037
453089
  /* @__PURE__ */ jsx_runtime409.jsx(ThemedText, {
453038
453090
  bold: true,
453039
- children: hasLocalInstall ? `cd ~/.theus/local && npm update ${{ VERSION: "0.2.54", BUILD_TIME: "1970-01-01T00:00:00.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.54", BUILD_TIME: "1970-01-01T00:00:00.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}`
453091
+ children: hasLocalInstall ? `cd ~/.theus/local && npm update ${{ VERSION: "0.2.55", BUILD_TIME: "1970-01-01T00:00:00.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.55", BUILD_TIME: "1970-01-01T00:00:00.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}`
453040
453092
  })
453041
453093
  ]
453042
453094
  })
@@ -453113,12 +453165,12 @@ function NativeAutoUpdater({
453113
453165
  logEvent("tengu_native_auto_updater_start", {});
453114
453166
  try {
453115
453167
  const maxVersion = await getMaxVersion();
453116
- if (maxVersion && gt({ VERSION: "0.2.54", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
453168
+ if (maxVersion && gt({ VERSION: "0.2.55", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
453117
453169
  const msg = await getMaxVersionMessage();
453118
453170
  setMaxVersionIssue(msg ?? "affects your version");
453119
453171
  }
453120
453172
  const result = await installLatest(channel2);
453121
- const currentVersion = { VERSION: "0.2.54", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION;
453173
+ const currentVersion = { VERSION: "0.2.55", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION;
453122
453174
  const latencyMs = Date.now() - startTime2;
453123
453175
  if (result.lockFailed) {
453124
453176
  logEvent("tengu_native_auto_updater_lock_contention", {
@@ -453255,17 +453307,17 @@ function PackageManagerAutoUpdater(t0) {
453255
453307
  const maxVersion = await getMaxVersion();
453256
453308
  if (maxVersion && latest && gt(latest, maxVersion)) {
453257
453309
  logForDebugging(`PackageManagerAutoUpdater: maxVersion ${maxVersion} is set, capping update from ${latest} to ${maxVersion}`);
453258
- if (gte({ VERSION: "0.2.54", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
453259
- logForDebugging(`PackageManagerAutoUpdater: current version ${{ VERSION: "0.2.54", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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`);
453310
+ if (gte({ VERSION: "0.2.55", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
453311
+ logForDebugging(`PackageManagerAutoUpdater: current version ${{ VERSION: "0.2.55", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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`);
453260
453312
  setUpdateAvailable(false);
453261
453313
  return;
453262
453314
  }
453263
453315
  latest = maxVersion;
453264
453316
  }
453265
- const hasUpdate = latest && !gte({ VERSION: "0.2.54", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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);
453317
+ const hasUpdate = latest && !gte({ VERSION: "0.2.55", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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);
453266
453318
  setUpdateAvailable(!!hasUpdate);
453267
453319
  if (hasUpdate) {
453268
- logForDebugging(`PackageManagerAutoUpdater: Update available ${{ VERSION: "0.2.54", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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}`);
453320
+ logForDebugging(`PackageManagerAutoUpdater: Update available ${{ VERSION: "0.2.55", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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}`);
453269
453321
  }
453270
453322
  };
453271
453323
  $2[0] = t1;
@@ -453299,7 +453351,7 @@ function PackageManagerAutoUpdater(t0) {
453299
453351
  wrap: "truncate",
453300
453352
  children: [
453301
453353
  "currentVersion: ",
453302
- { VERSION: "0.2.54", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
453354
+ { VERSION: "0.2.55", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
453303
453355
  ]
453304
453356
  });
453305
453357
  $2[3] = verbose;
@@ -461173,7 +461225,7 @@ function buildStatusLineCommandInput(permissionMode, exceeds200kTokens, settings
461173
461225
  project_dir: getOriginalCwd(),
461174
461226
  added_dirs: addedDirs
461175
461227
  },
461176
- version: { VERSION: "0.2.54", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
461228
+ version: { VERSION: "0.2.55", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
461177
461229
  output_style: {
461178
461230
  name: outputStyleName
461179
461231
  },
@@ -485453,7 +485505,7 @@ function completeOnboarding() {
485453
485505
  saveGlobalConfig((current) => ({
485454
485506
  ...current,
485455
485507
  hasCompletedOnboarding: true,
485456
- lastOnboardingVersion: { VERSION: "0.2.54", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
485508
+ lastOnboardingVersion: { VERSION: "0.2.55", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
485457
485509
  }));
485458
485510
  }
485459
485511
  function showDialog(root2, renderer) {
@@ -496404,7 +496456,7 @@ async function startMCPServer(cwd3, debug3, verbose) {
496404
496456
  setCwd(cwd3);
496405
496457
  const server2 = new Server({
496406
496458
  name: "theus/tengu",
496407
- version: { VERSION: "0.2.54", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
496459
+ version: { VERSION: "0.2.55", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
496408
496460
  }, {
496409
496461
  capabilities: {
496410
496462
  tools: {}
@@ -497846,7 +497898,7 @@ async function setupTokenHandler(root2) {
497846
497898
  gap: 1,
497847
497899
  children: [
497848
497900
  /* @__PURE__ */ jsx_runtime495.jsx(TheusBanner, {
497849
- version: { VERSION: "0.2.54", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
497901
+ version: { VERSION: "0.2.55", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
497850
497902
  }),
497851
497903
  showAuthWarning && /* @__PURE__ */ jsx_runtime495.jsxs(ThemedBox_default, {
497852
497904
  flexDirection: "column",
@@ -499328,7 +499380,7 @@ ${assistantAddendum}` : assistantAddendum;
499328
499380
  }
499329
499381
  }
499330
499382
  logForDiagnosticsNoPII("info", "started", {
499331
- version: { VERSION: "0.2.54", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
499383
+ version: { VERSION: "0.2.55", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
499332
499384
  is_native_binary: isInBundledMode()
499333
499385
  });
499334
499386
  registerCleanup(async () => {
@@ -500196,7 +500248,7 @@ Usage: theus --remote "your task description"`, () => gracefulShutdown(1));
500196
500248
  pendingHookMessages
500197
500249
  }, renderAndRun);
500198
500250
  }
500199
- }).version(`${{ VERSION: "0.2.54", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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");
500251
+ }).version(`${{ VERSION: "0.2.55", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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");
500200
500252
  program2.option("-w, --worktree [name]", "Crea un nuevo worktree de git para esta sesi\xF3n (opcionalmente indica un nombre)");
500201
500253
  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.");
500202
500254
  if (canUserConfigureAdvisor()) {
@@ -500748,7 +500800,7 @@ if (false) {}
500748
500800
  async function main2() {
500749
500801
  const args = process.argv.slice(2);
500750
500802
  if (args.length === 1 && (args[0] === "--version" || args[0] === "-v" || args[0] === "-V")) {
500751
- console.log(`${{ VERSION: "0.2.54", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)`);
500803
+ console.log(`${{ VERSION: "0.2.55", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)`);
500752
500804
  return;
500753
500805
  }
500754
500806
  const {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "theus-cli",
3
- "version": "0.2.54",
3
+ "version": "0.2.55",
4
4
  "description": "Theus — agente local-first multimodelo con memoria, grafo y decisiones verificables",
5
5
  "type": "module",
6
6
  "bin": {