theus-cli 0.2.46 → 0.2.48

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 +175 -137
  2. package/package.json +1 -1
package/cli.js CHANGED
@@ -58324,7 +58324,7 @@ async function _executeApiKeyHelper(isNonInteractiveSession) {
58324
58324
  if (isApiKeyHelperFromProjectOrLocalSettings()) {
58325
58325
  const hasTrust = checkHasTrustDialogAccepted();
58326
58326
  if (!hasTrust && !isNonInteractiveSession) {
58327
- const error40 = new Error(`Security: apiKeyHelper executed before workspace trust is confirmed. If you see this message, post in ${{ VERSION: "0.2.46", BUILD_TIME: "1970-01-01T00:00:00.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}.`);
58327
+ const error40 = new Error(`Security: apiKeyHelper executed before workspace trust is confirmed. If you see this message, post in ${{ VERSION: "0.2.48", BUILD_TIME: "1970-01-01T00:00:00.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}.`);
58328
58328
  logAntError("apiKeyHelper invoked before trust check", error40);
58329
58329
  logEvent("tengu_apiKeyHelper_missing_trust11", {});
58330
58330
  return null;
@@ -58368,7 +58368,7 @@ async function runAwsAuthRefresh() {
58368
58368
  if (isAwsAuthRefreshFromProjectSettings()) {
58369
58369
  const hasTrust = checkHasTrustDialogAccepted();
58370
58370
  if (!hasTrust && !getIsNonInteractiveSession()) {
58371
- const error40 = new Error(`Security: awsAuthRefresh executed before workspace trust is confirmed. If you see this message, post in ${{ VERSION: "0.2.46", BUILD_TIME: "1970-01-01T00:00:00.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}.`);
58371
+ const error40 = new Error(`Security: awsAuthRefresh executed before workspace trust is confirmed. If you see this message, post in ${{ VERSION: "0.2.48", BUILD_TIME: "1970-01-01T00:00:00.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}.`);
58372
58372
  logAntError("awsAuthRefresh invoked before trust check", error40);
58373
58373
  logEvent("tengu_awsAuthRefresh_missing_trust", {});
58374
58374
  return false;
@@ -58428,7 +58428,7 @@ async function getAwsCredsFromCredentialExport() {
58428
58428
  if (isAwsCredentialExportFromProjectSettings()) {
58429
58429
  const hasTrust = checkHasTrustDialogAccepted();
58430
58430
  if (!hasTrust && !getIsNonInteractiveSession()) {
58431
- const error40 = new Error(`Security: awsCredentialExport executed before workspace trust is confirmed. If you see this message, post in ${{ VERSION: "0.2.46", BUILD_TIME: "1970-01-01T00:00:00.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}.`);
58431
+ const error40 = new Error(`Security: awsCredentialExport executed before workspace trust is confirmed. If you see this message, post in ${{ VERSION: "0.2.48", BUILD_TIME: "1970-01-01T00:00:00.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}.`);
58432
58432
  logAntError("awsCredentialExport invoked before trust check", error40);
58433
58433
  logEvent("tengu_awsCredentialExport_missing_trust", {});
58434
58434
  return null;
@@ -58513,7 +58513,7 @@ async function runGcpAuthRefresh() {
58513
58513
  if (isGcpAuthRefreshFromProjectSettings()) {
58514
58514
  const hasTrust = checkHasTrustDialogAccepted();
58515
58515
  if (!hasTrust && !getIsNonInteractiveSession()) {
58516
- const error40 = new Error(`Security: gcpAuthRefresh executed before workspace trust is confirmed. If you see this message, post in ${{ VERSION: "0.2.46", BUILD_TIME: "1970-01-01T00:00:00.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}.`);
58516
+ const error40 = new Error(`Security: gcpAuthRefresh executed before workspace trust is confirmed. If you see this message, post in ${{ VERSION: "0.2.48", BUILD_TIME: "1970-01-01T00:00:00.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}.`);
58517
58517
  logAntError("gcpAuthRefresh invoked before trust check", error40);
58518
58518
  logEvent("tengu_gcpAuthRefresh_missing_trust", {});
58519
58519
  return false;
@@ -59208,7 +59208,7 @@ var init_auth = __esm(() => {
59208
59208
 
59209
59209
  // utils/userAgent.ts
59210
59210
  function getTheusCodeUserAgent() {
59211
- return `theus-code/${{ VERSION: "0.2.46", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION}`;
59211
+ return `theus-code/${{ VERSION: "0.2.48", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION}`;
59212
59212
  }
59213
59213
 
59214
59214
  // utils/workloadContext.ts
@@ -59230,7 +59230,7 @@ function getUserAgent() {
59230
59230
  const clientApp = process.env.THEUS_AGENT_SDK_CLIENT_APP ? `, client-app/${process.env.THEUS_AGENT_SDK_CLIENT_APP}` : "";
59231
59231
  const workload = getWorkload();
59232
59232
  const workloadSuffix = workload ? `, workload/${workload}` : "";
59233
- return `theus-cli/${{ VERSION: "0.2.46", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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})`;
59233
+ return `theus-cli/${{ VERSION: "0.2.48", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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})`;
59234
59234
  }
59235
59235
  function getMCPUserAgent() {
59236
59236
  const parts = [];
@@ -59244,7 +59244,7 @@ function getMCPUserAgent() {
59244
59244
  parts.push(`client-app/${process.env.THEUS_AGENT_SDK_CLIENT_APP}`);
59245
59245
  }
59246
59246
  const suffix = parts.length > 0 ? ` (${parts.join(", ")})` : "";
59247
- return `theus-code/${{ VERSION: "0.2.46", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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}`;
59247
+ return `theus-code/${{ VERSION: "0.2.48", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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}`;
59248
59248
  }
59249
59249
  function getWebFetchUserAgent() {
59250
59250
  return `Theus-User (${getTheusCodeUserAgent()}; +https://support.theus.pe/)`;
@@ -59382,7 +59382,7 @@ var init_user = __esm(() => {
59382
59382
  deviceId,
59383
59383
  sessionId: getSessionId(),
59384
59384
  email: getEmail(),
59385
- appVersion: { VERSION: "0.2.46", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
59385
+ appVersion: { VERSION: "0.2.48", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
59386
59386
  platform: getHostPlatformForAnalytics(),
59387
59387
  organizationUuid,
59388
59388
  accountUuid,
@@ -61097,7 +61097,7 @@ var init_metadata = __esm(() => {
61097
61097
  COMPOUND_OPERATOR_REGEX = /\s*(?:&&|\|\||[;|])\s*/;
61098
61098
  WHITESPACE_REGEX = /\s+/;
61099
61099
  getVersionBase = memoize_default(() => {
61100
- const match = { VERSION: "0.2.46", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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]+)?/);
61100
+ const match = { VERSION: "0.2.48", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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]+)?/);
61101
61101
  return match ? match[0] : undefined;
61102
61102
  });
61103
61103
  buildEnvContext = memoize_default(async () => {
@@ -61137,9 +61137,9 @@ var init_metadata = __esm(() => {
61137
61137
  isGithubAction: isEnvTruthy(process.env.GITHUB_ACTIONS),
61138
61138
  isTheusCodeAction: isEnvTruthy(process.env.THEUS_CODE_ACTION),
61139
61139
  isTheusAiAuth: isTheusAISubscriber(),
61140
- version: { VERSION: "0.2.46", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
61140
+ version: { VERSION: "0.2.48", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
61141
61141
  versionBase: getVersionBase(),
61142
- buildTime: { VERSION: "0.2.46", BUILD_TIME: "1970-01-01T00:00:00.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,
61142
+ buildTime: { VERSION: "0.2.48", BUILD_TIME: "1970-01-01T00:00:00.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,
61143
61143
  deploymentEnvironment: env3.detectDeploymentEnvironment(),
61144
61144
  ...isEnvTruthy(process.env.GITHUB_ACTIONS) && {
61145
61145
  githubEventName: process.env.GITHUB_EVENT_NAME,
@@ -61805,7 +61805,7 @@ function initialize1PEventLogging() {
61805
61805
  const platform2 = getPlatform();
61806
61806
  const attributes = {
61807
61807
  [ATTR_SERVICE_NAME]: "theus-code",
61808
- [ATTR_SERVICE_VERSION]: { VERSION: "0.2.46", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
61808
+ [ATTR_SERVICE_VERSION]: { VERSION: "0.2.48", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
61809
61809
  };
61810
61810
  if (platform2 === "wsl") {
61811
61811
  const wslVersion = getWslVersion();
@@ -61832,7 +61832,7 @@ function initialize1PEventLogging() {
61832
61832
  })
61833
61833
  ]
61834
61834
  });
61835
- firstPartyEventLogger = firstPartyEventLoggerProvider.getLogger("com.theus.theus_code.events", { VERSION: "0.2.46", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION);
61835
+ firstPartyEventLogger = firstPartyEventLoggerProvider.getLogger("com.theus.theus_code.events", { VERSION: "0.2.48", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION);
61836
61836
  }
61837
61837
  async function reinitialize1PEventLoggingIfConfigChanged() {
61838
61838
  if (!is1PEventLoggingEnabled() || !firstPartyEventLoggerProvider) {
@@ -63703,7 +63703,7 @@ function getAttributionHeader(fingerprint) {
63703
63703
  if (!isAttributionHeaderEnabled()) {
63704
63704
  return "";
63705
63705
  }
63706
- const version2 = `${{ VERSION: "0.2.46", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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}`;
63706
+ const version2 = `${{ VERSION: "0.2.48", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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}`;
63707
63707
  const entrypoint = process.env.THEUS_CODE_ENTRYPOINT ?? "unknown";
63708
63708
  const cch = "";
63709
63709
  const workload = getWorkload();
@@ -107814,7 +107814,7 @@ Complete the user's request by providing accurate, documentation-based guidance.
107814
107814
  }
107815
107815
  function getFeedbackGuideline() {
107816
107816
  if (isUsing3PServices()) {
107817
- return `- When you cannot find an answer or the feature doesn't exist, direct the user to ${{ VERSION: "0.2.46", BUILD_TIME: "1970-01-01T00:00:00.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}`;
107817
+ return `- When you cannot find an answer or the feature doesn't exist, direct the user to ${{ VERSION: "0.2.48", BUILD_TIME: "1970-01-01T00:00:00.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}`;
107818
107818
  }
107819
107819
  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";
107820
107820
  }
@@ -166523,7 +166523,7 @@ function getTelemetryAttributes() {
166523
166523
  attributes["session.id"] = sessionId;
166524
166524
  }
166525
166525
  if (shouldIncludeAttribute("OTEL_METRICS_INCLUDE_VERSION")) {
166526
- attributes["app.version"] = { VERSION: "0.2.46", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION;
166526
+ attributes["app.version"] = { VERSION: "0.2.48", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION;
166527
166527
  }
166528
166528
  const oauthAccount = getOauthAccountInfo();
166529
166529
  if (oauthAccount) {
@@ -202608,7 +202608,7 @@ function getInstallationEnv() {
202608
202608
  return;
202609
202609
  }
202610
202610
  function getTheusCodeVersion() {
202611
- return { VERSION: "0.2.46", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION;
202611
+ return { VERSION: "0.2.48", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION;
202612
202612
  }
202613
202613
  async function getInstalledVSCodeExtensionVersion(command) {
202614
202614
  const { stdout } = await execFileNoThrow(command, ["--list-extensions", "--show-versions"], {
@@ -204126,7 +204126,7 @@ async function getMcpHeadersFromHelper(serverName, config2) {
204126
204126
  if ("scope" in config2 && isMcpServerFromProjectOrLocalSettings(config2) && !getIsNonInteractiveSession()) {
204127
204127
  const hasTrust = checkHasTrustDialogAccepted();
204128
204128
  if (!hasTrust) {
204129
- 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.46", BUILD_TIME: "1970-01-01T00:00:00.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}.`);
204129
+ 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.48", BUILD_TIME: "1970-01-01T00:00:00.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}.`);
204130
204130
  logAntError("MCP headersHelper invoked before trust check", error40);
204131
204131
  logEvent("tengu_mcp_headersHelper_missing_trust", {});
204132
204132
  return null;
@@ -205336,7 +205336,7 @@ async function setupSdkMcpClients(sdkMcpConfigs, sendMcpMessage) {
205336
205336
  const client2 = new Client({
205337
205337
  name: "theus-code",
205338
205338
  title: "Theus",
205339
- version: { VERSION: "0.2.46", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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",
205339
+ version: { VERSION: "0.2.48", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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",
205340
205340
  description: "Theus's agentic coding tool",
205341
205341
  websiteUrl: PRODUCT_URL
205342
205342
  }, {
@@ -205690,7 +205690,7 @@ var init_client5 = __esm(() => {
205690
205690
  const client2 = new Client({
205691
205691
  name: "theus-code",
205692
205692
  title: "Theus",
205693
- version: { VERSION: "0.2.46", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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",
205693
+ version: { VERSION: "0.2.48", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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",
205694
205694
  description: "Theus's agentic coding tool",
205695
205695
  websiteUrl: PRODUCT_URL
205696
205696
  }, {
@@ -216268,7 +216268,7 @@ async function initializeBetaTracing(resource) {
216268
216268
  });
216269
216269
  logs.setGlobalLoggerProvider(loggerProvider);
216270
216270
  setLoggerProvider(loggerProvider);
216271
- const eventLogger = logs.getLogger("com.theus.theus_code.events", { VERSION: "0.2.46", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION);
216271
+ const eventLogger = logs.getLogger("com.theus.theus_code.events", { VERSION: "0.2.48", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION);
216272
216272
  setEventLogger(eventLogger);
216273
216273
  process.on("beforeExit", async () => {
216274
216274
  await loggerProvider?.forceFlush();
@@ -216308,7 +216308,7 @@ async function initializeTelemetry() {
216308
216308
  const platform4 = getPlatform();
216309
216309
  const baseAttributes = {
216310
216310
  [ATTR_SERVICE_NAME]: "theus-code",
216311
- [ATTR_SERVICE_VERSION]: { VERSION: "0.2.46", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
216311
+ [ATTR_SERVICE_VERSION]: { VERSION: "0.2.48", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
216312
216312
  };
216313
216313
  if (platform4 === "wsl") {
216314
216314
  const wslVersion = getWslVersion();
@@ -216353,7 +216353,7 @@ async function initializeTelemetry() {
216353
216353
  } catch {}
216354
216354
  };
216355
216355
  registerCleanup(shutdownTelemetry2);
216356
- return meterProvider2.getMeter("com.theus.theus_code", { VERSION: "0.2.46", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION);
216356
+ return meterProvider2.getMeter("com.theus.theus_code", { VERSION: "0.2.48", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION);
216357
216357
  }
216358
216358
  const meterProvider = new MeterProvider({
216359
216359
  resource,
@@ -216373,7 +216373,7 @@ async function initializeTelemetry() {
216373
216373
  });
216374
216374
  logs.setGlobalLoggerProvider(loggerProvider);
216375
216375
  setLoggerProvider(loggerProvider);
216376
- const eventLogger = logs.getLogger("com.theus.theus_code.events", { VERSION: "0.2.46", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION);
216376
+ const eventLogger = logs.getLogger("com.theus.theus_code.events", { VERSION: "0.2.48", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION);
216377
216377
  setEventLogger(eventLogger);
216378
216378
  logForDebugging("[3P telemetry] Event logger set successfully");
216379
216379
  process.on("beforeExit", async () => {
@@ -216435,7 +216435,7 @@ Current timeout: ${timeoutMs}ms
216435
216435
  }
216436
216436
  };
216437
216437
  registerCleanup(shutdownTelemetry);
216438
- return meterProvider.getMeter("com.theus.theus_code", { VERSION: "0.2.46", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION);
216438
+ return meterProvider.getMeter("com.theus.theus_code", { VERSION: "0.2.48", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION);
216439
216439
  }
216440
216440
  async function flushTelemetry() {
216441
216441
  const meterProvider = getMeterProvider();
@@ -216975,7 +216975,7 @@ async function installOrUpdateTheusPackage(channel2, specificVersion) {
216975
216975
  return "install_failed";
216976
216976
  }
216977
216977
  const versionSpec = specificVersion ? specificVersion : channel2 === "stable" ? "stable" : "latest";
216978
- const result = await execFileNoThrowWithCwd("npm", ["install", `${{ VERSION: "0.2.46", BUILD_TIME: "1970-01-01T00:00:00.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 });
216978
+ const result = await execFileNoThrowWithCwd("npm", ["install", `${{ VERSION: "0.2.48", BUILD_TIME: "1970-01-01T00:00:00.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 });
216979
216979
  if (result.code !== 0) {
216980
216980
  const error40 = new Error(`Failed to install Theus CLI package: ${result.stderr}`);
216981
216981
  logError2(error40);
@@ -217121,9 +217121,9 @@ async function assertMinVersion() {
217121
217121
  if (false) {}
217122
217122
  try {
217123
217123
  const versionConfig = await getDynamicConfig_BLOCKS_ON_INIT("tengu_version_config", { minVersion: "0.0.0" });
217124
- if (versionConfig.minVersion && lt({ VERSION: "0.2.46", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
217124
+ if (versionConfig.minVersion && lt({ VERSION: "0.2.48", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
217125
217125
  console.error(`
217126
- It looks like your version of Theus (${{ VERSION: "0.2.46", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.
217126
+ It looks like your version of Theus (${{ VERSION: "0.2.48", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.
217127
217127
  A newer version (${versionConfig.minVersion} or higher) is required to continue.
217128
217128
 
217129
217129
  To update, please run:
@@ -217264,7 +217264,7 @@ async function getInstallationPrefix() {
217264
217264
  return prefixResult.stdout.trim();
217265
217265
  }
217266
217266
  function getGlobalInstallPackageManager() {
217267
- if ({ VERSION: "0.2.46", BUILD_TIME: "1970-01-01T00:00:00.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") {
217267
+ if ({ VERSION: "0.2.48", BUILD_TIME: "1970-01-01T00:00:00.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") {
217268
217268
  return "npm";
217269
217269
  }
217270
217270
  return env3.isRunningWithBun() ? "bun" : "npm";
@@ -217289,7 +217289,7 @@ async function checkGlobalInstallPermissions() {
217289
217289
  }
217290
217290
  async function getLatestVersion(channel2) {
217291
217291
  const npmTag = channel2 === "stable" ? "stable" : "latest";
217292
- const result = await execFileNoThrowWithCwd("npm", ["view", `${{ VERSION: "0.2.46", BUILD_TIME: "1970-01-01T00:00:00.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() });
217292
+ const result = await execFileNoThrowWithCwd("npm", ["view", `${{ VERSION: "0.2.48", BUILD_TIME: "1970-01-01T00:00:00.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() });
217293
217293
  if (result.code !== 0) {
217294
217294
  logForDebugging(`npm view failed with code ${result.code}`);
217295
217295
  if (result.stderr) {
@@ -217305,7 +217305,7 @@ async function getLatestVersion(channel2) {
217305
217305
  return result.stdout.trim();
217306
217306
  }
217307
217307
  async function getNpmDistTags() {
217308
- const result = await execFileNoThrowWithCwd("npm", ["view", { VERSION: "0.2.46", BUILD_TIME: "1970-01-01T00:00:00.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() });
217308
+ const result = await execFileNoThrowWithCwd("npm", ["view", { VERSION: "0.2.48", BUILD_TIME: "1970-01-01T00:00:00.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() });
217309
217309
  if (result.code !== 0) {
217310
217310
  logForDebugging(`npm view dist-tags failed with code ${result.code}`);
217311
217311
  return { latest: null, stable: null };
@@ -217345,7 +217345,7 @@ async function installGlobalPackage(specificVersion) {
217345
217345
  logError2(new AutoUpdaterError("Another process is currently installing an update"));
217346
217346
  logEvent("tengu_auto_updater_lock_contention", {
217347
217347
  pid: process.pid,
217348
- currentVersion: { VERSION: "0.2.46", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
217348
+ currentVersion: { VERSION: "0.2.48", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
217349
217349
  });
217350
217350
  return "in_progress";
217351
217351
  }
@@ -217354,7 +217354,7 @@ async function installGlobalPackage(specificVersion) {
217354
217354
  if (!env3.isRunningWithBun() && env3.isNpmFromWindowsPath()) {
217355
217355
  logError2(new Error("Windows NPM detected in WSL environment"));
217356
217356
  logEvent("tengu_auto_updater_windows_npm_in_wsl", {
217357
- currentVersion: { VERSION: "0.2.46", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
217357
+ currentVersion: { VERSION: "0.2.48", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
217358
217358
  });
217359
217359
  console.error(`
217360
217360
  Error: Windows NPM detected in WSL
@@ -217373,7 +217373,7 @@ To fix this issue:
217373
217373
  if (!hasPermissions) {
217374
217374
  return "no_permissions";
217375
217375
  }
217376
- const packageSpec = specificVersion ? `${{ VERSION: "0.2.46", BUILD_TIME: "1970-01-01T00:00:00.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.46", BUILD_TIME: "1970-01-01T00:00:00.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;
217376
+ const packageSpec = specificVersion ? `${{ VERSION: "0.2.48", BUILD_TIME: "1970-01-01T00:00:00.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.48", BUILD_TIME: "1970-01-01T00:00:00.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;
217377
217377
  const packageManager = getGlobalInstallPackageManager();
217378
217378
  const installResult = await execFileNoThrowWithCwd(packageManager, ["install", "-g", packageSpec], { cwd: homedir18() });
217379
217379
  if (installResult.code !== 0) {
@@ -217701,8 +217701,8 @@ async function detectMultipleInstallations() {
217701
217701
  installations.push({ type: "npm-local", path: localPath });
217702
217702
  }
217703
217703
  const packagesToCheck = ["@theus-ai/theus-code"];
217704
- if ({ VERSION: "0.2.46", BUILD_TIME: "1970-01-01T00:00:00.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.46", BUILD_TIME: "1970-01-01T00:00:00.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") {
217705
- packagesToCheck.push({ VERSION: "0.2.46", BUILD_TIME: "1970-01-01T00:00:00.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);
217704
+ if ({ VERSION: "0.2.48", BUILD_TIME: "1970-01-01T00:00:00.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.48", BUILD_TIME: "1970-01-01T00:00:00.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") {
217705
+ packagesToCheck.push({ VERSION: "0.2.48", BUILD_TIME: "1970-01-01T00:00:00.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);
217706
217706
  }
217707
217707
  const npmResult = await execFileNoThrow("npm", [
217708
217708
  "-g",
@@ -217885,7 +217885,7 @@ function detectLinuxGlobPatternWarnings() {
217885
217885
  }
217886
217886
  async function getDoctorDiagnostic() {
217887
217887
  const installationType = await getCurrentInstallationType();
217888
- const version2 = { VERSION: "0.2.46", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.46", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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";
217888
+ const version2 = { VERSION: "0.2.48", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.48", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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";
217889
217889
  const installationPath = await getInstallationPath();
217890
217890
  const invokedBinary = getInvokedBinary();
217891
217891
  const multipleInstallations = await detectMultipleInstallations();
@@ -217897,8 +217897,8 @@ async function getDoctorDiagnostic() {
217897
217897
  for (const install of npmInstalls) {
217898
217898
  if (install.type === "npm-global") {
217899
217899
  let uninstallCmd = "npm -g uninstall @theus-ai/theus-code";
217900
- if ({ VERSION: "0.2.46", BUILD_TIME: "1970-01-01T00:00:00.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.46", BUILD_TIME: "1970-01-01T00:00:00.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") {
217901
- uninstallCmd += ` && npm -g uninstall ${{ VERSION: "0.2.46", BUILD_TIME: "1970-01-01T00:00:00.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}`;
217900
+ if ({ VERSION: "0.2.48", BUILD_TIME: "1970-01-01T00:00:00.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.48", BUILD_TIME: "1970-01-01T00:00:00.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") {
217901
+ uninstallCmd += ` && npm -g uninstall ${{ VERSION: "0.2.48", BUILD_TIME: "1970-01-01T00:00:00.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}`;
217902
217902
  }
217903
217903
  warnings.push({
217904
217904
  issue: `Leftover npm global installation at ${install.path}`,
@@ -218010,7 +218010,7 @@ async function getLatestVersionFromArtifactory(tag2 = "latest") {
218010
218010
  const startTime2 = Date.now();
218011
218011
  const { stdout, code, stderr } = await execFileNoThrowWithCwd("npm", [
218012
218012
  "view",
218013
- `${{ VERSION: "0.2.46", BUILD_TIME: "1970-01-01T00:00:00.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}`,
218013
+ `${{ VERSION: "0.2.48", BUILD_TIME: "1970-01-01T00:00:00.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}`,
218014
218014
  "version",
218015
218015
  "--prefer-online",
218016
218016
  "--registry",
@@ -218034,7 +218034,7 @@ async function getLatestVersionFromArtifactory(tag2 = "latest") {
218034
218034
  latency_ms: latencyMs,
218035
218035
  source_npm: true
218036
218036
  });
218037
- logForDebugging(`npm view ${{ VERSION: "0.2.46", BUILD_TIME: "1970-01-01T00:00:00.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}`);
218037
+ logForDebugging(`npm view ${{ VERSION: "0.2.48", BUILD_TIME: "1970-01-01T00:00:00.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}`);
218038
218038
  const latestVersion = stdout.trim();
218039
218039
  return latestVersion;
218040
218040
  }
@@ -218090,7 +218090,7 @@ async function downloadVersionFromArtifactory(version2, stagingPath) {
218090
218090
  const fs3 = getFsImplementation();
218091
218091
  await fs3.rm(stagingPath, { recursive: true, force: true });
218092
218092
  const platform4 = getPlatform2();
218093
- const platformPackageName = `${{ VERSION: "0.2.46", BUILD_TIME: "1970-01-01T00:00:00.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}`;
218093
+ const platformPackageName = `${{ VERSION: "0.2.48", BUILD_TIME: "1970-01-01T00:00:00.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}`;
218094
218094
  logForDebugging(`Fetching integrity hash for ${platformPackageName}@${version2}`);
218095
218095
  const {
218096
218096
  stdout: integrityOutput,
@@ -218119,7 +218119,7 @@ async function downloadVersionFromArtifactory(version2, stagingPath) {
218119
218119
  name: "theus-native-installer",
218120
218120
  version: "0.0.1",
218121
218121
  dependencies: {
218122
- [{ VERSION: "0.2.46", BUILD_TIME: "1970-01-01T00:00:00.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
218122
+ [{ VERSION: "0.2.48", BUILD_TIME: "1970-01-01T00:00:00.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
218123
218123
  }
218124
218124
  };
218125
218125
  const packageLock = {
@@ -218132,10 +218132,10 @@ async function downloadVersionFromArtifactory(version2, stagingPath) {
218132
218132
  name: "theus-native-installer",
218133
218133
  version: "0.0.1",
218134
218134
  dependencies: {
218135
- [{ VERSION: "0.2.46", BUILD_TIME: "1970-01-01T00:00:00.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
218135
+ [{ VERSION: "0.2.48", BUILD_TIME: "1970-01-01T00:00:00.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
218136
218136
  }
218137
218137
  },
218138
- [`node_modules/${{ VERSION: "0.2.46", BUILD_TIME: "1970-01-01T00:00:00.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}`]: {
218138
+ [`node_modules/${{ VERSION: "0.2.48", BUILD_TIME: "1970-01-01T00:00:00.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}`]: {
218139
218139
  version: version2,
218140
218140
  optionalDependencies: {
218141
218141
  [platformPackageName]: version2
@@ -218157,7 +218157,7 @@ async function downloadVersionFromArtifactory(version2, stagingPath) {
218157
218157
  if (result.code !== 0) {
218158
218158
  throw new Error(`npm ci failed with code ${result.code}: ${result.stderr}`);
218159
218159
  }
218160
- logForDebugging(`Successfully downloaded and verified ${{ VERSION: "0.2.46", BUILD_TIME: "1970-01-01T00:00:00.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}`);
218160
+ logForDebugging(`Successfully downloaded and verified ${{ VERSION: "0.2.48", BUILD_TIME: "1970-01-01T00:00:00.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}`);
218161
218161
  }
218162
218162
  function getStallTimeoutMs() {
218163
218163
  return Number(process.env.THEUS_CODE_STALL_TIMEOUT_MS_FOR_TESTING) || DEFAULT_STALL_TIMEOUT_MS;
@@ -218820,8 +218820,8 @@ async function updateLatest(channelOrVersion, forceReinstall = false) {
218820
218820
  const maxVersion = await getMaxVersion();
218821
218821
  if (maxVersion && gt(version2, maxVersion)) {
218822
218822
  logForDebugging(`Native installer: maxVersion ${maxVersion} is set, capping update from ${version2} to ${maxVersion}`);
218823
- if (gte({ VERSION: "0.2.46", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
218824
- logForDebugging(`Native installer: current version ${{ VERSION: "0.2.46", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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`);
218823
+ if (gte({ VERSION: "0.2.48", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
218824
+ logForDebugging(`Native installer: current version ${{ VERSION: "0.2.48", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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`);
218825
218825
  logEvent("tengu_native_update_skipped_max_version", {
218826
218826
  latency_ms: Date.now() - startTime2,
218827
218827
  max_version: maxVersion,
@@ -218832,7 +218832,7 @@ async function updateLatest(channelOrVersion, forceReinstall = false) {
218832
218832
  version2 = maxVersion;
218833
218833
  }
218834
218834
  }
218835
- if (!forceReinstall && version2 === { VERSION: "0.2.46", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
218835
+ if (!forceReinstall && version2 === { VERSION: "0.2.48", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
218836
218836
  logForDebugging(`Found ${version2} at ${executablePath}, skipping install`);
218837
218837
  logEvent("tengu_native_update_complete", {
218838
218838
  latency_ms: Date.now() - startTime2,
@@ -219582,8 +219582,8 @@ async function cleanupNpmInstallations() {
219582
219582
  } else if (codePackageResult.error) {
219583
219583
  errors4.push(codePackageResult.error);
219584
219584
  }
219585
- if ({ VERSION: "0.2.46", BUILD_TIME: "1970-01-01T00:00:00.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.46", BUILD_TIME: "1970-01-01T00:00:00.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") {
219586
- const macroPackageResult = await attemptNpmUninstall({ VERSION: "0.2.46", BUILD_TIME: "1970-01-01T00:00:00.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);
219585
+ if ({ VERSION: "0.2.48", BUILD_TIME: "1970-01-01T00:00:00.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.48", BUILD_TIME: "1970-01-01T00:00:00.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") {
219586
+ const macroPackageResult = await attemptNpmUninstall({ VERSION: "0.2.48", BUILD_TIME: "1970-01-01T00:00:00.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);
219587
219587
  if (macroPackageResult.success) {
219588
219588
  removed++;
219589
219589
  if (macroPackageResult.warning) {
@@ -230069,6 +230069,26 @@ var init_ConsoleOAuthFlow = __esm(() => {
230069
230069
  var NOVEDADES;
230070
230070
  var init_data = __esm(() => {
230071
230071
  NOVEDADES = [
230072
+ {
230073
+ version: "v0.2.48",
230074
+ fecha: "2026-07-24",
230075
+ titulo: "El Teletransportador funciona, y la caja de texto va abajo",
230076
+ puntos: [
230077
+ "El Teletransportador ya lee tus sesiones: antes fallaba siempre y te ped\xEDa iniciar sesi\xF3n aunque acabaras de hacerlo, porque exig\xEDa un tipo de credencial que Theus no usa. Ahora usa la misma con la que ya entraste.",
230078
+ "Puedes escribir \xAB/teletransportador\xBB, que es como se llama en el producto; antes solo respond\xEDa a \xAB/teleport\xBB.",
230079
+ "Si algo falla, te dice el motivo real en vez de un mensaje gen\xE9rico que no ayudaba.",
230080
+ "La caja de texto es ahora el elemento m\xE1s bajo de la ventana y las novedades quedan encima, as\xED el orden se mantiene al redimensionar la terminal."
230081
+ ]
230082
+ },
230083
+ {
230084
+ version: "v0.2.47",
230085
+ fecha: "2026-07-24",
230086
+ titulo: "Tu plan real al iniciar sesi\xF3n",
230087
+ puntos: [
230088
+ "Al iniciar sesi\xF3n, Theus te muestra el plan que de verdad tienes contratado: Free, Pro Code, Studio AI, Max Agent u Omnipresente.",
230089
+ "Antes agrupaba todos los planes de pago bajo la etiqueta \xABpro\xBB, as\xED que quien estaba en Omnipresente ve\xEDa anunciado un plan intermedio. El dato correcto siempre lleg\xF3 del servidor; el problema era que no se le\xEDa."
230090
+ ]
230091
+ },
230072
230092
  {
230073
230093
  version: "v0.2.46",
230074
230094
  fecha: "2026-07-24",
@@ -231147,13 +231167,13 @@ async function axiosGetWithRetry(url3, config2) {
231147
231167
  throw lastError;
231148
231168
  }
231149
231169
  async function prepareApiRequest() {
231150
- const accessToken = getTheusAIOAuthTokens()?.accessToken;
231151
- if (accessToken === undefined) {
231152
- throw new Error("Theus web sessions require authentication with a Theus.pe account. API key authentication is not sufficient. Please run /login to authenticate, or check your authentication status with /status.");
231170
+ const accessToken = getTheusAIOAuthTokens()?.accessToken ?? getApiKeyFromConfigOrMacOSKeychain()?.key;
231171
+ if (!accessToken) {
231172
+ throw new Error("No encuentro credenciales de Theus. Inicia sesi\xF3n con `theus login`.");
231153
231173
  }
231154
231174
  const orgUUID = await getOrganizationUUID();
231155
231175
  if (!orgUUID) {
231156
- throw new Error("Unable to get organization UUID");
231176
+ throw new Error("No pude determinar tu organizaci\xF3n. Vuelve a iniciar sesi\xF3n con `theus login`.");
231157
231177
  }
231158
231178
  return { accessToken, orgUUID };
231159
231179
  }
@@ -231173,7 +231193,8 @@ async function fetchCodeSessionsFromSessionsAPI() {
231173
231193
  throw new Error(`Failed to fetch code sessions: ${response.statusText}`);
231174
231194
  }
231175
231195
  const sessions = response.data.data.map((session) => {
231176
- const gitSource = session.session_context.sources.find((source) => source.type === "git_repository");
231196
+ const sources = session.session_context?.sources;
231197
+ const gitSource = Array.isArray(sources) ? sources.find((source) => source.type === "git_repository") : undefined;
231177
231198
  let repo = null;
231178
231199
  if (gitSource?.url) {
231179
231200
  const repoPath = parseGitHubRepository(gitSource.url);
@@ -304852,9 +304873,9 @@ function getTheusEnvMetadata() {
304852
304873
  };
304853
304874
  }
304854
304875
  function getBuildAgeMinutes() {
304855
- if (!{ VERSION: "0.2.46", BUILD_TIME: "1970-01-01T00:00:00.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)
304876
+ if (!{ VERSION: "0.2.48", BUILD_TIME: "1970-01-01T00:00:00.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)
304856
304877
  return;
304857
- const buildTime = new Date({ VERSION: "0.2.46", BUILD_TIME: "1970-01-01T00:00:00.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();
304878
+ const buildTime = new Date({ VERSION: "0.2.48", BUILD_TIME: "1970-01-01T00:00:00.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();
304858
304879
  if (isNaN(buildTime))
304859
304880
  return;
304860
304881
  return Math.floor((Date.now() - buildTime) / 60000);
@@ -321502,7 +321523,7 @@ function getAssistantMessageFromError(error40, model, options2) {
321502
321523
  if (process.env.USER_TYPE === "ant") {
321503
321524
  const baseMessage = `API Error: 400 ${error40.message}
321504
321525
 
321505
- Run /share and post the JSON file to ${{ VERSION: "0.2.46", BUILD_TIME: "1970-01-01T00:00:00.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}.`;
321526
+ Run /share and post the JSON file to ${{ VERSION: "0.2.48", BUILD_TIME: "1970-01-01T00:00:00.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}.`;
321506
321527
  const rewindInstruction = getIsNonInteractiveSession() ? "" : " Then, use /rewind to recover the conversation.";
321507
321528
  return createAssistantAPIErrorMessage({
321508
321529
  content: baseMessage + rewindInstruction,
@@ -321538,7 +321559,7 @@ Run /share and post the JSON file to ${{ VERSION: "0.2.46", BUILD_TIME: "1970-01
321538
321559
  if (process.env.USER_TYPE === "ant" && !process.env.THEUS_MODEL && error40 instanceof Error && error40.message.toLowerCase().includes("invalid model name")) {
321539
321560
  const orgId = getOauthAccountInfo()?.organizationUuid;
321540
321561
  const baseMsg = `[THEUS-INTERNAL] Your org isn't gated into the \`${model}\` model. Either run \`theus\` with \`THEUS_MODEL=${getDefaultMainLoopModelSetting()}\``;
321541
- const msg = orgId ? `${baseMsg} or share your orgId (${orgId}) in ${{ VERSION: "0.2.46", BUILD_TIME: "1970-01-01T00:00:00.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.46", BUILD_TIME: "1970-01-01T00:00:00.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.`;
321562
+ const msg = orgId ? `${baseMsg} or share your orgId (${orgId}) in ${{ VERSION: "0.2.48", BUILD_TIME: "1970-01-01T00:00:00.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.48", BUILD_TIME: "1970-01-01T00:00:00.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.`;
321542
321563
  return createAssistantAPIErrorMessage({
321543
321564
  content: msg,
321544
321565
  error: "invalid_request"
@@ -331711,7 +331732,7 @@ function buildPrimarySection() {
331711
331732
  });
331712
331733
  return [{
331713
331734
  label: "Version",
331714
- value: { VERSION: "0.2.46", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
331735
+ value: { VERSION: "0.2.48", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
331715
331736
  }, {
331716
331737
  label: "Session name",
331717
331738
  value: nameValue
@@ -335527,7 +335548,7 @@ function Config({
335527
335548
  }
335528
335549
  })
335529
335550
  }) : showSubmenu === "ChannelDowngrade" ? /* @__PURE__ */ jsx_runtime188.jsx(ChannelDowngradeDialog, {
335530
- currentVersion: { VERSION: "0.2.46", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
335551
+ currentVersion: { VERSION: "0.2.48", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
335531
335552
  onChoice: (choice) => {
335532
335553
  setShowSubmenu(null);
335533
335554
  setTabsHidden(false);
@@ -335539,7 +335560,7 @@ function Config({
335539
335560
  autoUpdatesChannel: "stable"
335540
335561
  };
335541
335562
  if (choice === "stay") {
335542
- newSettings.minimumVersion = { VERSION: "0.2.46", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION;
335563
+ newSettings.minimumVersion = { VERSION: "0.2.48", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION;
335543
335564
  }
335544
335565
  updateSettingsForSource("userSettings", newSettings);
335545
335566
  setSettingsData((prev_27) => ({
@@ -343573,7 +343594,7 @@ function HelpV2(t0) {
343573
343594
  let t6;
343574
343595
  if ($2[31] !== tabs) {
343575
343596
  t6 = /* @__PURE__ */ jsx_runtime215.jsx(Tabs, {
343576
- title: `Theus v${{ VERSION: "0.2.46", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION}`,
343597
+ title: `Theus v${{ VERSION: "0.2.48", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION}`,
343577
343598
  color: "professionalBlue",
343578
343599
  defaultTab: "general",
343579
343600
  children: tabs
@@ -345455,6 +345476,9 @@ async function exchangeCodeForTheusSession({
345455
345476
  const billingType = stringField(organization, "billing_type");
345456
345477
  if (billingType)
345457
345478
  profileInfo.billingType = billingType;
345479
+ const plan = stringField(organization, "plan");
345480
+ if (plan)
345481
+ profileInfo.plan = plan;
345458
345482
  const accountCreatedAt = stringField(account, "created_at");
345459
345483
  if (accountCreatedAt)
345460
345484
  profileInfo.accountCreatedAt = accountCreatedAt;
@@ -345471,6 +345495,9 @@ async function exchangeCodeForTheusSession({
345471
345495
  };
345472
345496
  }
345473
345497
  function planLabelFromProfile(profile) {
345498
+ const real = (profile?.plan ?? "").trim();
345499
+ if (real)
345500
+ return NOMBRE_DE_PLAN[real] ?? real;
345474
345501
  switch (profile?.organizationType) {
345475
345502
  case "theus_max":
345476
345503
  return "max";
@@ -345777,7 +345804,7 @@ function escapeHtml2(value) {
345777
345804
  }
345778
345805
  });
345779
345806
  }
345780
- var DEFAULT_WEB_URL = "https://theus.pe", CLIENT_ID = "9d1c250a-e61b-44d9-88ed-5944d1962f5e", OAUTH_SCOPE;
345807
+ var DEFAULT_WEB_URL = "https://theus.pe", CLIENT_ID = "9d1c250a-e61b-44d9-88ed-5944d1962f5e", OAUTH_SCOPE, NOMBRE_DE_PLAN;
345781
345808
  var init_theusWebLogin = __esm(() => {
345782
345809
  init_browser();
345783
345810
  init_envUtils();
@@ -345792,6 +345819,13 @@ var init_theusWebLogin = __esm(() => {
345792
345819
  "user:mcp_servers",
345793
345820
  "user:file_upload"
345794
345821
  ].join(" ");
345822
+ NOMBRE_DE_PLAN = {
345823
+ free: "Free",
345824
+ "pro-code": "Pro Code",
345825
+ "studio-ai": "Studio AI",
345826
+ "max-agent": "Max Agent",
345827
+ omnipresente: "Omnipresente"
345828
+ };
345795
345829
  });
345796
345830
 
345797
345831
  // commands/login/theus-login.ts
@@ -361684,7 +361718,7 @@ function Onboarding({
361684
361718
  flexDirection: "column",
361685
361719
  children: [
361686
361720
  /* @__PURE__ */ jsx_runtime248.jsx(TheusBanner, {
361687
- version: { VERSION: "0.2.46", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
361721
+ version: { VERSION: "0.2.48", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
361688
361722
  }),
361689
361723
  /* @__PURE__ */ jsx_runtime248.jsxs(ThemedBox_default, {
361690
361724
  flexDirection: "column",
@@ -362185,9 +362219,9 @@ function getAllReleaseNotes(changelogContent = getStoredChangelogFromMemory()) {
362185
362219
  return [];
362186
362220
  }
362187
362221
  }
362188
- async function checkForReleaseNotes(lastSeenVersion, currentVersion = { VERSION: "0.2.46", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION) {
362222
+ async function checkForReleaseNotes(lastSeenVersion, currentVersion = { VERSION: "0.2.48", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION) {
362189
362223
  if (process.env.USER_TYPE === "ant") {
362190
- const changelog = { VERSION: "0.2.46", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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;
362224
+ const changelog = { VERSION: "0.2.48", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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;
362191
362225
  if (changelog) {
362192
362226
  const commits = changelog.trim().split(`
362193
362227
  `).filter(Boolean);
@@ -366389,7 +366423,7 @@ var init_Messages = __esm(() => {
366389
366423
  let t1;
366390
366424
  if ($2[0] === Symbol.for("react.memo_cache_sentinel")) {
366391
366425
  t1 = /* @__PURE__ */ jsx_runtime260.jsx(TheusSessionHeader, {
366392
- version: { VERSION: "0.2.46", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
366426
+ version: { VERSION: "0.2.48", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
366393
366427
  });
366394
366428
  $2[0] = t1;
366395
366429
  } else {
@@ -380985,10 +381019,13 @@ var call38 = async () => {
380985
381019
  try {
380986
381020
  const { fetchCodeSessionsFromSessionsAPI: fetchCodeSessionsFromSessionsAPI2 } = await Promise.resolve().then(() => (init_api3(), exports_api));
380987
381021
  sessions = await fetchCodeSessionsFromSessionsAPI2();
380988
- } catch {
381022
+ } catch (err2) {
381023
+ const detalle = err2 instanceof Error ? err2.message : String(err2);
380989
381024
  return {
380990
381025
  type: "text",
380991
- value: "No pude leer tus sesiones remotas. Inicia sesi\xF3n (theus login) e int\xE9ntalo de nuevo."
381026
+ value: `No pude leer tus sesiones remotas.
381027
+
381028
+ ${detalle}`
380992
381029
  };
380993
381030
  }
380994
381031
  if (!sessions.length) {
@@ -381017,6 +381054,7 @@ var init_teleport2 = __esm(() => {
381017
381054
  teleport = {
381018
381055
  type: "local",
381019
381056
  name: "teleport",
381057
+ aliases: ["teletransportador"],
381020
381058
  description: "Lista tus sesiones remotas de c\xF3digo y c\xF3mo reanudarlas",
381021
381059
  isEnabled: () => true,
381022
381060
  isHidden: false,
@@ -394861,7 +394899,7 @@ async function captureMemoryDiagnostics(trigger, dumpNumber = 0) {
394861
394899
  smapsRollup,
394862
394900
  platform: process.platform,
394863
394901
  nodeVersion: process.version,
394864
- ccVersion: { VERSION: "0.2.46", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
394902
+ ccVersion: { VERSION: "0.2.48", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
394865
394903
  };
394866
394904
  }
394867
394905
  async function performHeapDump(trigger = "manual", dumpNumber = 0) {
@@ -395447,7 +395485,7 @@ var init_bridge_kick = __esm(() => {
395447
395485
  var call58 = async () => {
395448
395486
  return {
395449
395487
  type: "text",
395450
- value: { VERSION: "0.2.46", BUILD_TIME: "1970-01-01T00:00:00.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.46", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.46", BUILD_TIME: "1970-01-01T00:00:00.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.46", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
395488
+ value: { VERSION: "0.2.48", BUILD_TIME: "1970-01-01T00:00:00.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.48", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.48", BUILD_TIME: "1970-01-01T00:00:00.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.48", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
395451
395489
  };
395452
395490
  }, version2, version_default;
395453
395491
  var init_version = __esm(() => {
@@ -399889,13 +399927,13 @@ async function updateReleaseBundle() {
399889
399927
  await gracefulShutdown(1);
399890
399928
  return;
399891
399929
  }
399892
- if (gte({ VERSION: "0.2.46", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
399893
- writeToStdout(source_default.green(`Theus is up to date (${{ VERSION: "0.2.46", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION})`) + `
399930
+ if (gte({ VERSION: "0.2.48", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
399931
+ writeToStdout(source_default.green(`Theus is up to date (${{ VERSION: "0.2.48", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION})`) + `
399894
399932
  `);
399895
399933
  await gracefulShutdown(0);
399896
399934
  return;
399897
399935
  }
399898
- writeToStdout(`New version available: ${latest} (current: ${{ VERSION: "0.2.46", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION})
399936
+ writeToStdout(`New version available: ${latest} (current: ${{ VERSION: "0.2.48", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION})
399899
399937
  `);
399900
399938
  writeToStdout(`Installing update from theus.pe/dl...
399901
399939
  `);
@@ -399929,7 +399967,7 @@ async function updateReleaseBundle() {
399929
399967
  return;
399930
399968
  }
399931
399969
  cpSync(staged, bundleDir, { recursive: true, force: true });
399932
- writeToStdout(source_default.green(`Successfully updated from ${{ VERSION: "0.2.46", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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}`) + `
399970
+ writeToStdout(source_default.green(`Successfully updated from ${{ VERSION: "0.2.48", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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}`) + `
399933
399971
  `);
399934
399972
  await regenerateCompletionCache();
399935
399973
  } finally {
@@ -399942,7 +399980,7 @@ async function updateReleaseBundle() {
399942
399980
  async function update() {
399943
399981
  logEvent("tengu_update_check", {});
399944
399982
  await updateNaupa();
399945
- writeToStdout(`Current version: ${{ VERSION: "0.2.46", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION}
399983
+ writeToStdout(`Current version: ${{ VERSION: "0.2.48", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION}
399946
399984
  `);
399947
399985
  const channel2 = getInitialSettings()?.autoUpdatesChannel ?? "latest";
399948
399986
  writeToStdout(`Checking for updates to ${channel2} version...
@@ -400021,8 +400059,8 @@ async function update() {
400021
400059
  writeToStdout(`Theus is managed by Homebrew.
400022
400060
  `);
400023
400061
  const latest = await getLatestVersion(channel2);
400024
- if (latest && !gte({ VERSION: "0.2.46", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
400025
- writeToStdout(`Update available: ${{ VERSION: "0.2.46", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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}
400062
+ if (latest && !gte({ VERSION: "0.2.48", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
400063
+ writeToStdout(`Update available: ${{ VERSION: "0.2.48", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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}
400026
400064
  `);
400027
400065
  writeToStdout(`
400028
400066
  `);
@@ -400038,8 +400076,8 @@ async function update() {
400038
400076
  writeToStdout(`Theus is managed by winget.
400039
400077
  `);
400040
400078
  const latest = await getLatestVersion(channel2);
400041
- if (latest && !gte({ VERSION: "0.2.46", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
400042
- writeToStdout(`Update available: ${{ VERSION: "0.2.46", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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}
400079
+ if (latest && !gte({ VERSION: "0.2.48", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
400080
+ writeToStdout(`Update available: ${{ VERSION: "0.2.48", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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}
400043
400081
  `);
400044
400082
  writeToStdout(`
400045
400083
  `);
@@ -400055,8 +400093,8 @@ async function update() {
400055
400093
  writeToStdout(`Theus is managed by apk.
400056
400094
  `);
400057
400095
  const latest = await getLatestVersion(channel2);
400058
- if (latest && !gte({ VERSION: "0.2.46", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
400059
- writeToStdout(`Update available: ${{ VERSION: "0.2.46", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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}
400096
+ if (latest && !gte({ VERSION: "0.2.48", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
400097
+ writeToStdout(`Update available: ${{ VERSION: "0.2.48", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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}
400060
400098
  `);
400061
400099
  writeToStdout(`
400062
400100
  `);
@@ -400121,11 +400159,11 @@ async function update() {
400121
400159
  `);
400122
400160
  await gracefulShutdown(1);
400123
400161
  }
400124
- if (result.latestVersion === { VERSION: "0.2.46", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION) {
400125
- writeToStdout(source_default.green(`Theus is up to date (${{ VERSION: "0.2.46", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION})`) + `
400162
+ if (result.latestVersion === { VERSION: "0.2.48", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION) {
400163
+ writeToStdout(source_default.green(`Theus is up to date (${{ VERSION: "0.2.48", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION})`) + `
400126
400164
  `);
400127
400165
  } else {
400128
- writeToStdout(source_default.green(`Successfully updated from ${{ VERSION: "0.2.46", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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}`) + `
400166
+ writeToStdout(source_default.green(`Successfully updated from ${{ VERSION: "0.2.48", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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}`) + `
400129
400167
  `);
400130
400168
  await regenerateCompletionCache();
400131
400169
  }
@@ -400144,9 +400182,9 @@ async function update() {
400144
400182
  await removeInstalledSymlink();
400145
400183
  }
400146
400184
  logForDebugging("update: Checking npm registry for latest version");
400147
- logForDebugging(`update: Package URL: ${{ VERSION: "0.2.46", BUILD_TIME: "1970-01-01T00:00:00.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}`);
400185
+ logForDebugging(`update: Package URL: ${{ VERSION: "0.2.48", BUILD_TIME: "1970-01-01T00:00:00.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}`);
400148
400186
  const npmTag = channel2 === "stable" ? "stable" : "latest";
400149
- const npmCommand = `npm view ${{ VERSION: "0.2.46", BUILD_TIME: "1970-01-01T00:00:00.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`;
400187
+ const npmCommand = `npm view ${{ VERSION: "0.2.48", BUILD_TIME: "1970-01-01T00:00:00.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`;
400150
400188
  logForDebugging(`update: Running: ${npmCommand}`);
400151
400189
  const latestVersion = await getLatestVersion(channel2);
400152
400190
  logForDebugging(`update: Latest version from npm: ${latestVersion || "FAILED"}`);
@@ -400166,7 +400204,7 @@ async function update() {
400166
400204
  `);
400167
400205
  process.stderr.write(` \u2022 Corporate proxy/firewall blocking npm
400168
400206
  `);
400169
- if ({ VERSION: "0.2.46", BUILD_TIME: "1970-01-01T00:00:00.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.46", BUILD_TIME: "1970-01-01T00:00:00.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")) {
400207
+ if ({ VERSION: "0.2.48", BUILD_TIME: "1970-01-01T00:00:00.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.48", BUILD_TIME: "1970-01-01T00:00:00.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")) {
400170
400208
  process.stderr.write(` \u2022 Internal/development build not published to npm
400171
400209
  `);
400172
400210
  }
@@ -400178,19 +400216,19 @@ async function update() {
400178
400216
  `);
400179
400217
  process.stderr.write(` \u2022 Run with --debug flag for more details
400180
400218
  `);
400181
- const packageName = { VERSION: "0.2.46", BUILD_TIME: "1970-01-01T00:00:00.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");
400219
+ const packageName = { VERSION: "0.2.48", BUILD_TIME: "1970-01-01T00:00:00.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");
400182
400220
  process.stderr.write(` \u2022 Manually check: npm view ${packageName} version
400183
400221
  `);
400184
400222
  process.stderr.write(` \u2022 Check if you need to login: npm whoami
400185
400223
  `);
400186
400224
  await gracefulShutdown(1);
400187
400225
  }
400188
- if (gte({ VERSION: "0.2.46", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
400189
- writeToStdout(source_default.green(`Theus is up to date (${{ VERSION: "0.2.46", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION})`) + `
400226
+ if (gte({ VERSION: "0.2.48", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
400227
+ writeToStdout(source_default.green(`Theus is up to date (${{ VERSION: "0.2.48", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION})`) + `
400190
400228
  `);
400191
400229
  await gracefulShutdown(0);
400192
400230
  }
400193
- writeToStdout(`New version available: ${latestVersion} (current: ${{ VERSION: "0.2.46", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION})
400231
+ writeToStdout(`New version available: ${latestVersion} (current: ${{ VERSION: "0.2.48", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION})
400194
400232
  `);
400195
400233
  writeToStdout(`Installing update...
400196
400234
  `);
@@ -400235,7 +400273,7 @@ async function update() {
400235
400273
  logForDebugging(`update: Installation status: ${status2}`);
400236
400274
  switch (status2) {
400237
400275
  case "success":
400238
- writeToStdout(source_default.green(`Successfully updated from ${{ VERSION: "0.2.46", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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}`) + `
400276
+ writeToStdout(source_default.green(`Successfully updated from ${{ VERSION: "0.2.48", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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}`) + `
400239
400277
  `);
400240
400278
  await regenerateCompletionCache();
400241
400279
  break;
@@ -400245,7 +400283,7 @@ async function update() {
400245
400283
  if (useLocalUpdate) {
400246
400284
  process.stderr.write(`Try manually updating with:
400247
400285
  `);
400248
- process.stderr.write(` cd ~/.theus/local && npm update ${{ VERSION: "0.2.46", BUILD_TIME: "1970-01-01T00:00:00.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}
400286
+ process.stderr.write(` cd ~/.theus/local && npm update ${{ VERSION: "0.2.48", BUILD_TIME: "1970-01-01T00:00:00.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}
400249
400287
  `);
400250
400288
  } else {
400251
400289
  process.stderr.write(`Try running with sudo or fix npm permissions
@@ -400261,7 +400299,7 @@ async function update() {
400261
400299
  if (useLocalUpdate) {
400262
400300
  process.stderr.write(`Try manually updating with:
400263
400301
  `);
400264
- process.stderr.write(` cd ~/.theus/local && npm update ${{ VERSION: "0.2.46", BUILD_TIME: "1970-01-01T00:00:00.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}
400302
+ process.stderr.write(` cd ~/.theus/local && npm update ${{ VERSION: "0.2.48", BUILD_TIME: "1970-01-01T00:00:00.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}
400265
400303
  `);
400266
400304
  } else {
400267
400305
  process.stderr.write(`Or consider using native installation with: theus install
@@ -409344,7 +409382,7 @@ var init_sessionStorage = __esm(() => {
409344
409382
  init_settings2();
409345
409383
  init_slowOperations();
409346
409384
  init_uuid();
409347
- VERSION4 = { VERSION: "0.2.46", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION;
409385
+ VERSION4 = { VERSION: "0.2.48", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION;
409348
409386
  MAX_TOMBSTONE_REWRITE_BYTES = 50 * 1024 * 1024;
409349
409387
  SKIP_FIRST_PROMPT_PATTERN = /^(?:\s*<[a-z][\w-]*[\s>]|\[Request interrupted by user[^\]]*\])/;
409350
409388
  EPHEMERAL_PROGRESS_TYPES = new Set([
@@ -410549,7 +410587,7 @@ var init_filesystem = __esm(() => {
410549
410587
  });
410550
410588
  getBundledSkillsRoot = memoize_default(function getBundledSkillsRoot2() {
410551
410589
  const nonce = randomBytes21(16).toString("hex");
410552
- return join149(getTheusTempDir(), "bundled-skills", { VERSION: "0.2.46", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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);
410590
+ return join149(getTheusTempDir(), "bundled-skills", { VERSION: "0.2.48", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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);
410553
410591
  });
410554
410592
  getResolvedWorkingDirPaths = memoize_default(getPathsForPermissionCheck);
410555
410593
  });
@@ -415728,7 +415766,7 @@ function getSimpleDoingTasksSection() {
415728
415766
  ];
415729
415767
  const userHelpSubitems = [
415730
415768
  `/help: Get help with using Theus`,
415731
- `To give feedback, users should ${{ VERSION: "0.2.46", BUILD_TIME: "1970-01-01T00:00:00.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}`
415769
+ `To give feedback, users should ${{ VERSION: "0.2.48", BUILD_TIME: "1970-01-01T00:00:00.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}`
415732
415770
  ];
415733
415771
  const items = [
415734
415772
  `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.`,
@@ -416628,7 +416666,7 @@ function computeFingerprint(messageText, version3) {
416628
416666
  }
416629
416667
  function computeFingerprintFromMessages(messages) {
416630
416668
  const firstMessageText = extractFirstMessageText(messages);
416631
- return computeFingerprint(firstMessageText, { VERSION: "0.2.46", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION);
416669
+ return computeFingerprint(firstMessageText, { VERSION: "0.2.48", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION);
416632
416670
  }
416633
416671
  var FINGERPRINT_SALT = "59cf53e54c78";
416634
416672
  var init_fingerprint = () => {};
@@ -419188,7 +419226,7 @@ async function sideQuery(opts) {
419188
419226
  betas.push(STRUCTURED_OUTPUTS_BETA_HEADER);
419189
419227
  }
419190
419228
  const messageText = extractFirstUserMessageText(messages);
419191
- const fingerprint = computeFingerprint(messageText, { VERSION: "0.2.46", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION);
419229
+ const fingerprint = computeFingerprint(messageText, { VERSION: "0.2.48", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION);
419192
419230
  const attributionHeader = getAttributionHeader(fingerprint);
419193
419231
  const systemBlocks = [
419194
419232
  attributionHeader ? { type: "text", text: attributionHeader } : null,
@@ -420491,7 +420529,7 @@ async function handleMemories(state) {
420491
420529
  async function runProjectContextMcpServer() {
420492
420530
  const projectRoot = process.env.THEUS_PROJECT_ROOT || process.cwd();
420493
420531
  const state = new ProjectContextState(projectRoot);
420494
- const server2 = new Server({ name: SERVER_NAME, version: { VERSION: "0.2.46", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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: {} } });
420532
+ const server2 = new Server({ name: SERVER_NAME, version: { VERSION: "0.2.48", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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: {} } });
420495
420533
  server2.setRequestHandler(ListToolsRequestSchema, async () => ({
420496
420534
  tools: TOOL_DEFINITIONS.map((t) => ({
420497
420535
  name: t.name,
@@ -422471,7 +422509,7 @@ function createBridgeLogger(options2) {
422471
422509
  connectUrl = buildBridgeConnectUrl(environmentId, cachedIngressUrl);
422472
422510
  regenerateQr(connectUrl);
422473
422511
  if (verbose) {
422474
- write(source_default.dim(`Remote Control`) + ` v${{ VERSION: "0.2.46", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION}
422512
+ write(source_default.dim(`Remote Control`) + ` v${{ VERSION: "0.2.48", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION}
422475
422513
  `);
422476
422514
  }
422477
422515
  if (verbose) {
@@ -423444,7 +423482,7 @@ function appendToLog(path19, message) {
423444
423482
  cwd: getFsImplementation().cwd(),
423445
423483
  userType: process.env.USER_TYPE,
423446
423484
  sessionId: getSessionId(),
423447
- version: { VERSION: "0.2.46", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
423485
+ version: { VERSION: "0.2.48", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
423448
423486
  };
423449
423487
  getLogWriter(path19).write(messageWithTimestamp);
423450
423488
  }
@@ -424714,7 +424752,7 @@ Spawn mode for this project:
424714
424752
  const api2 = createBridgeApiClient({
424715
424753
  baseUrl,
424716
424754
  getAccessToken: getBridgeAccessToken2,
424717
- runnerVersion: { VERSION: "0.2.46", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
424755
+ runnerVersion: { VERSION: "0.2.48", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
424718
424756
  onDebug: logForDebugging,
424719
424757
  onAuth401: handleOAuth401Error2,
424720
424758
  getTrustedDeviceToken
@@ -424952,7 +424990,7 @@ async function runBridgeHeadless(opts, signal) {
424952
424990
  const api2 = createBridgeApiClient({
424953
424991
  baseUrl,
424954
424992
  getAccessToken: opts.getAccessToken,
424955
- runnerVersion: { VERSION: "0.2.46", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
424993
+ runnerVersion: { VERSION: "0.2.48", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
424956
424994
  onDebug: log2,
424957
424995
  onAuth401: opts.onAuth401,
424958
424996
  getTrustedDeviceToken
@@ -429016,7 +429054,7 @@ function buildSystemInitMessage(inputs) {
429016
429054
  slash_commands: inputs.commands.filter((c5) => c5.userInvocable !== false).map((c5) => c5.name),
429017
429055
  apiKeySource: getTheusApiKeyWithSource().source,
429018
429056
  betas: getSdkBetas(),
429019
- theus_code_version: { VERSION: "0.2.46", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
429057
+ theus_code_version: { VERSION: "0.2.48", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
429020
429058
  output_style: outputStyle2,
429021
429059
  agents: inputs.agents.map((agent) => agent.agentType),
429022
429060
  skills: inputs.skills.filter((s) => s.userInvocable !== false).map((skill) => skill.name),
@@ -429056,8 +429094,8 @@ async function getEnvLessBridgeConfig() {
429056
429094
  }
429057
429095
  async function checkEnvLessBridgeMinVersion() {
429058
429096
  const cfg = await getEnvLessBridgeConfig();
429059
- if (cfg.min_version && lt({ VERSION: "0.2.46", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
429060
- return `Your version of Theus (${{ VERSION: "0.2.46", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.
429097
+ if (cfg.min_version && lt({ VERSION: "0.2.48", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
429098
+ return `Your version of Theus (${{ VERSION: "0.2.48", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.
429061
429099
  Version ${cfg.min_version} or higher is required. Run \`theus update\` to update.`;
429062
429100
  }
429063
429101
  return null;
@@ -431380,7 +431418,7 @@ async function initBridgeCore(params) {
431380
431418
  const rawApi = createBridgeApiClient({
431381
431419
  baseUrl,
431382
431420
  getAccessToken,
431383
- runnerVersion: { VERSION: "0.2.46", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
431421
+ runnerVersion: { VERSION: "0.2.48", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
431384
431422
  onDebug: logForDebugging,
431385
431423
  onAuth401,
431386
431424
  getTrustedDeviceToken
@@ -448121,7 +448159,7 @@ var init_useVoiceEnabled = __esm(() => {
448121
448159
  function getSemverPart(version3) {
448122
448160
  return `${import_semver14.major(version3, { loose: true })}.${import_semver14.minor(version3, { loose: true })}.${import_semver14.patch(version3, { loose: true })}`;
448123
448161
  }
448124
- function useUpdateNotification(updatedVersion, initialVersion = { VERSION: "0.2.46", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION) {
448162
+ function useUpdateNotification(updatedVersion, initialVersion = { VERSION: "0.2.48", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION) {
448125
448163
  const [lastNotifiedSemver, setLastNotifiedSemver] = import_react231.useState(() => getSemverPart(initialVersion));
448126
448164
  if (!updatedVersion) {
448127
448165
  return null;
@@ -448161,7 +448199,7 @@ function AutoUpdater({
448161
448199
  return;
448162
448200
  }
448163
448201
  if (false) {}
448164
- const currentVersion = { VERSION: "0.2.46", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION;
448202
+ const currentVersion = { VERSION: "0.2.48", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION;
448165
448203
  const channel2 = getInitialSettings()?.autoUpdatesChannel ?? "latest";
448166
448204
  let latestVersion = await getLatestVersion(channel2);
448167
448205
  const isDisabled2 = isAutoUpdaterDisabled();
@@ -448297,7 +448335,7 @@ function AutoUpdater({
448297
448335
  " ",
448298
448336
  /* @__PURE__ */ jsx_runtime405.jsx(ThemedText, {
448299
448337
  bold: true,
448300
- children: hasLocalInstall ? `cd ~/.theus/local && npm update ${{ VERSION: "0.2.46", BUILD_TIME: "1970-01-01T00:00:00.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.46", BUILD_TIME: "1970-01-01T00:00:00.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}`
448338
+ children: hasLocalInstall ? `cd ~/.theus/local && npm update ${{ VERSION: "0.2.48", BUILD_TIME: "1970-01-01T00:00:00.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.48", BUILD_TIME: "1970-01-01T00:00:00.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}`
448301
448339
  })
448302
448340
  ]
448303
448341
  })
@@ -448374,12 +448412,12 @@ function NativeAutoUpdater({
448374
448412
  logEvent("tengu_native_auto_updater_start", {});
448375
448413
  try {
448376
448414
  const maxVersion = await getMaxVersion();
448377
- if (maxVersion && gt({ VERSION: "0.2.46", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
448415
+ if (maxVersion && gt({ VERSION: "0.2.48", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
448378
448416
  const msg = await getMaxVersionMessage();
448379
448417
  setMaxVersionIssue(msg ?? "affects your version");
448380
448418
  }
448381
448419
  const result = await installLatest(channel2);
448382
- const currentVersion = { VERSION: "0.2.46", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION;
448420
+ const currentVersion = { VERSION: "0.2.48", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION;
448383
448421
  const latencyMs = Date.now() - startTime2;
448384
448422
  if (result.lockFailed) {
448385
448423
  logEvent("tengu_native_auto_updater_lock_contention", {
@@ -448516,17 +448554,17 @@ function PackageManagerAutoUpdater(t0) {
448516
448554
  const maxVersion = await getMaxVersion();
448517
448555
  if (maxVersion && latest && gt(latest, maxVersion)) {
448518
448556
  logForDebugging(`PackageManagerAutoUpdater: maxVersion ${maxVersion} is set, capping update from ${latest} to ${maxVersion}`);
448519
- if (gte({ VERSION: "0.2.46", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
448520
- logForDebugging(`PackageManagerAutoUpdater: current version ${{ VERSION: "0.2.46", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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`);
448557
+ if (gte({ VERSION: "0.2.48", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
448558
+ logForDebugging(`PackageManagerAutoUpdater: current version ${{ VERSION: "0.2.48", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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`);
448521
448559
  setUpdateAvailable(false);
448522
448560
  return;
448523
448561
  }
448524
448562
  latest = maxVersion;
448525
448563
  }
448526
- const hasUpdate = latest && !gte({ VERSION: "0.2.46", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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);
448564
+ const hasUpdate = latest && !gte({ VERSION: "0.2.48", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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);
448527
448565
  setUpdateAvailable(!!hasUpdate);
448528
448566
  if (hasUpdate) {
448529
- logForDebugging(`PackageManagerAutoUpdater: Update available ${{ VERSION: "0.2.46", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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}`);
448567
+ logForDebugging(`PackageManagerAutoUpdater: Update available ${{ VERSION: "0.2.48", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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}`);
448530
448568
  }
448531
448569
  };
448532
448570
  $2[0] = t1;
@@ -448560,7 +448598,7 @@ function PackageManagerAutoUpdater(t0) {
448560
448598
  wrap: "truncate",
448561
448599
  children: [
448562
448600
  "currentVersion: ",
448563
- { VERSION: "0.2.46", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
448601
+ { VERSION: "0.2.48", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
448564
448602
  ]
448565
448603
  });
448566
448604
  $2[3] = verbose;
@@ -456433,7 +456471,7 @@ function buildStatusLineCommandInput(permissionMode, exceeds200kTokens, settings
456433
456471
  project_dir: getOriginalCwd(),
456434
456472
  added_dirs: addedDirs
456435
456473
  },
456436
- version: { VERSION: "0.2.46", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
456474
+ version: { VERSION: "0.2.48", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
456437
456475
  output_style: {
456438
456476
  name: outputStyleName
456439
456477
  },
@@ -458209,13 +458247,6 @@ function PromptInputFooter({
458209
458247
  })
458210
458248
  ]
458211
458249
  }),
458212
- mode === "prompt" && !isShort && !isSearching && /* @__PURE__ */ jsx_runtime433.jsx(ThemedBox_default, {
458213
- marginTop: 1,
458214
- width: "100%",
458215
- children: /* @__PURE__ */ jsx_runtime433.jsx(TheusEditorialRail, {
458216
- compact: columns < 118
458217
- })
458218
- }),
458219
458250
  false
458220
458251
  ]
458221
458252
  });
@@ -458271,7 +458302,6 @@ var init_PromptInputFooter = __esm(() => {
458271
458302
  init_PromptInputFooterLeftSide();
458272
458303
  init_PromptInputFooterSuggestions();
458273
458304
  init_PromptInputHelpMenu();
458274
- init_TheusEditorialRail();
458275
458305
  import_react259 = __toESM(require_react(), 1);
458276
458306
  jsx_runtime433 = __toESM(require_jsx_runtime(), 1);
458277
458307
  PromptInputFooter_default = import_react259.memo(PromptInputFooter);
@@ -460526,6 +460556,13 @@ function PromptInput({
460526
460556
  marginTop: briefOwnsGap ? 0 : 1,
460527
460557
  children: [
460528
460558
  !isFullscreenEnvEnabled() && /* @__PURE__ */ jsx_runtime437.jsx(PromptInputQueuedCommands, {}),
460559
+ mode === "prompt" && !isSearchingHistory && /* @__PURE__ */ jsx_runtime437.jsx(ThemedBox_default, {
460560
+ marginBottom: 1,
460561
+ width: "100%",
460562
+ children: /* @__PURE__ */ jsx_runtime437.jsx(TheusEditorialRail, {
460563
+ compact: columns < 118
460564
+ })
460565
+ }),
460529
460566
  hasSuppressedDialogs && /* @__PURE__ */ jsx_runtime437.jsx(ThemedBox_default, {
460530
460567
  marginTop: 1,
460531
460568
  marginLeft: 2,
@@ -460789,6 +460826,7 @@ var init_PromptInput = __esm(() => {
460789
460826
  init_TeamsDialog();
460790
460827
  init_VimTextInput();
460791
460828
  init_Notifications();
460829
+ init_TheusEditorialRail();
460792
460830
  init_PromptInputFooter();
460793
460831
  init_PromptInputModeIndicator();
460794
460832
  init_PromptInputQueuedCommands();
@@ -467853,7 +467891,7 @@ async function submitTranscriptShare(messages, trigger, appearanceId) {
467853
467891
  } catch {}
467854
467892
  const data = {
467855
467893
  trigger,
467856
- version: { VERSION: "0.2.46", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
467894
+ version: { VERSION: "0.2.48", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
467857
467895
  platform: process.platform,
467858
467896
  transcript,
467859
467897
  subagentTranscripts: Object.keys(subagentTranscripts).length > 0 ? subagentTranscripts : undefined,
@@ -480860,7 +480898,7 @@ function completeOnboarding() {
480860
480898
  saveGlobalConfig((current) => ({
480861
480899
  ...current,
480862
480900
  hasCompletedOnboarding: true,
480863
- lastOnboardingVersion: { VERSION: "0.2.46", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
480901
+ lastOnboardingVersion: { VERSION: "0.2.48", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
480864
480902
  }));
480865
480903
  }
480866
480904
  function showDialog(root2, renderer) {
@@ -491858,7 +491896,7 @@ async function startMCPServer(cwd3, debug3, verbose) {
491858
491896
  setCwd(cwd3);
491859
491897
  const server2 = new Server({
491860
491898
  name: "theus/tengu",
491861
- version: { VERSION: "0.2.46", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
491899
+ version: { VERSION: "0.2.48", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
491862
491900
  }, {
491863
491901
  capabilities: {
491864
491902
  tools: {}
@@ -493300,7 +493338,7 @@ async function setupTokenHandler(root2) {
493300
493338
  gap: 1,
493301
493339
  children: [
493302
493340
  /* @__PURE__ */ jsx_runtime492.jsx(TheusBanner, {
493303
- version: { VERSION: "0.2.46", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
493341
+ version: { VERSION: "0.2.48", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
493304
493342
  }),
493305
493343
  showAuthWarning && /* @__PURE__ */ jsx_runtime492.jsxs(ThemedBox_default, {
493306
493344
  flexDirection: "column",
@@ -494782,7 +494820,7 @@ ${assistantAddendum}` : assistantAddendum;
494782
494820
  }
494783
494821
  }
494784
494822
  logForDiagnosticsNoPII("info", "started", {
494785
- version: { VERSION: "0.2.46", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
494823
+ version: { VERSION: "0.2.48", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
494786
494824
  is_native_binary: isInBundledMode()
494787
494825
  });
494788
494826
  registerCleanup(async () => {
@@ -495650,7 +495688,7 @@ Usage: theus --remote "your task description"`, () => gracefulShutdown(1));
495650
495688
  pendingHookMessages
495651
495689
  }, renderAndRun);
495652
495690
  }
495653
- }).version(`${{ VERSION: "0.2.46", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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");
495691
+ }).version(`${{ VERSION: "0.2.48", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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");
495654
495692
  program2.option("-w, --worktree [name]", "Crea un nuevo worktree de git para esta sesi\xF3n (opcionalmente indica un nombre)");
495655
495693
  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.");
495656
495694
  if (canUserConfigureAdvisor()) {
@@ -496202,7 +496240,7 @@ if (false) {}
496202
496240
  async function main2() {
496203
496241
  const args = process.argv.slice(2);
496204
496242
  if (args.length === 1 && (args[0] === "--version" || args[0] === "-v" || args[0] === "-V")) {
496205
- console.log(`${{ VERSION: "0.2.46", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)`);
496243
+ console.log(`${{ VERSION: "0.2.48", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)`);
496206
496244
  return;
496207
496245
  }
496208
496246
  const {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "theus-cli",
3
- "version": "0.2.46",
3
+ "version": "0.2.48",
4
4
  "description": "Theus — agente local-first multimodelo con memoria, grafo y decisiones verificables",
5
5
  "type": "module",
6
6
  "bin": {