theus-cli 0.2.15 → 0.2.17

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 +322 -217
  2. package/package.json +1 -1
package/cli.js CHANGED
@@ -58304,7 +58304,7 @@ async function _executeApiKeyHelper(isNonInteractiveSession) {
58304
58304
  if (isApiKeyHelperFromProjectOrLocalSettings()) {
58305
58305
  const hasTrust = checkHasTrustDialogAccepted();
58306
58306
  if (!hasTrust && !isNonInteractiveSession) {
58307
- const error40 = new Error(`Security: apiKeyHelper executed before workspace trust is confirmed. If you see this message, post in ${{ VERSION: "0.2.15", BUILD_TIME: "1970-01-01T00:00:00.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}.`);
58307
+ const error40 = new Error(`Security: apiKeyHelper executed before workspace trust is confirmed. If you see this message, post in ${{ VERSION: "0.2.17", BUILD_TIME: "1970-01-01T00:00:00.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}.`);
58308
58308
  logAntError("apiKeyHelper invoked before trust check", error40);
58309
58309
  logEvent("tengu_apiKeyHelper_missing_trust11", {});
58310
58310
  return null;
@@ -58348,7 +58348,7 @@ async function runAwsAuthRefresh() {
58348
58348
  if (isAwsAuthRefreshFromProjectSettings()) {
58349
58349
  const hasTrust = checkHasTrustDialogAccepted();
58350
58350
  if (!hasTrust && !getIsNonInteractiveSession()) {
58351
- const error40 = new Error(`Security: awsAuthRefresh executed before workspace trust is confirmed. If you see this message, post in ${{ VERSION: "0.2.15", BUILD_TIME: "1970-01-01T00:00:00.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}.`);
58351
+ const error40 = new Error(`Security: awsAuthRefresh executed before workspace trust is confirmed. If you see this message, post in ${{ VERSION: "0.2.17", BUILD_TIME: "1970-01-01T00:00:00.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}.`);
58352
58352
  logAntError("awsAuthRefresh invoked before trust check", error40);
58353
58353
  logEvent("tengu_awsAuthRefresh_missing_trust", {});
58354
58354
  return false;
@@ -58408,7 +58408,7 @@ async function getAwsCredsFromCredentialExport() {
58408
58408
  if (isAwsCredentialExportFromProjectSettings()) {
58409
58409
  const hasTrust = checkHasTrustDialogAccepted();
58410
58410
  if (!hasTrust && !getIsNonInteractiveSession()) {
58411
- const error40 = new Error(`Security: awsCredentialExport executed before workspace trust is confirmed. If you see this message, post in ${{ VERSION: "0.2.15", BUILD_TIME: "1970-01-01T00:00:00.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}.`);
58411
+ const error40 = new Error(`Security: awsCredentialExport executed before workspace trust is confirmed. If you see this message, post in ${{ VERSION: "0.2.17", BUILD_TIME: "1970-01-01T00:00:00.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}.`);
58412
58412
  logAntError("awsCredentialExport invoked before trust check", error40);
58413
58413
  logEvent("tengu_awsCredentialExport_missing_trust", {});
58414
58414
  return null;
@@ -58493,7 +58493,7 @@ async function runGcpAuthRefresh() {
58493
58493
  if (isGcpAuthRefreshFromProjectSettings()) {
58494
58494
  const hasTrust = checkHasTrustDialogAccepted();
58495
58495
  if (!hasTrust && !getIsNonInteractiveSession()) {
58496
- const error40 = new Error(`Security: gcpAuthRefresh executed before workspace trust is confirmed. If you see this message, post in ${{ VERSION: "0.2.15", BUILD_TIME: "1970-01-01T00:00:00.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}.`);
58496
+ const error40 = new Error(`Security: gcpAuthRefresh executed before workspace trust is confirmed. If you see this message, post in ${{ VERSION: "0.2.17", BUILD_TIME: "1970-01-01T00:00:00.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}.`);
58497
58497
  logAntError("gcpAuthRefresh invoked before trust check", error40);
58498
58498
  logEvent("tengu_gcpAuthRefresh_missing_trust", {});
58499
58499
  return false;
@@ -59188,7 +59188,7 @@ var init_auth = __esm(() => {
59188
59188
 
59189
59189
  // utils/userAgent.ts
59190
59190
  function getTheusCodeUserAgent() {
59191
- return `theus-code/${{ VERSION: "0.2.15", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION}`;
59191
+ return `theus-code/${{ VERSION: "0.2.17", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION}`;
59192
59192
  }
59193
59193
 
59194
59194
  // utils/workloadContext.ts
@@ -59210,7 +59210,7 @@ function getUserAgent() {
59210
59210
  const clientApp = process.env.THEUS_AGENT_SDK_CLIENT_APP ? `, client-app/${process.env.THEUS_AGENT_SDK_CLIENT_APP}` : "";
59211
59211
  const workload = getWorkload();
59212
59212
  const workloadSuffix = workload ? `, workload/${workload}` : "";
59213
- return `theus-cli/${{ VERSION: "0.2.15", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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})`;
59213
+ return `theus-cli/${{ VERSION: "0.2.17", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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})`;
59214
59214
  }
59215
59215
  function getMCPUserAgent() {
59216
59216
  const parts = [];
@@ -59224,7 +59224,7 @@ function getMCPUserAgent() {
59224
59224
  parts.push(`client-app/${process.env.THEUS_AGENT_SDK_CLIENT_APP}`);
59225
59225
  }
59226
59226
  const suffix = parts.length > 0 ? ` (${parts.join(", ")})` : "";
59227
- return `theus-code/${{ VERSION: "0.2.15", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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}`;
59227
+ return `theus-code/${{ VERSION: "0.2.17", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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}`;
59228
59228
  }
59229
59229
  function getWebFetchUserAgent() {
59230
59230
  return `Theus-User (${getTheusCodeUserAgent()}; +https://support.theus.pe/)`;
@@ -59362,7 +59362,7 @@ var init_user = __esm(() => {
59362
59362
  deviceId,
59363
59363
  sessionId: getSessionId(),
59364
59364
  email: getEmail(),
59365
- appVersion: { VERSION: "0.2.15", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
59365
+ appVersion: { VERSION: "0.2.17", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
59366
59366
  platform: getHostPlatformForAnalytics(),
59367
59367
  organizationUuid,
59368
59368
  accountUuid,
@@ -61077,7 +61077,7 @@ var init_metadata = __esm(() => {
61077
61077
  COMPOUND_OPERATOR_REGEX = /\s*(?:&&|\|\||[;|])\s*/;
61078
61078
  WHITESPACE_REGEX = /\s+/;
61079
61079
  getVersionBase = memoize_default(() => {
61080
- const match = { VERSION: "0.2.15", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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]+)?/);
61080
+ const match = { VERSION: "0.2.17", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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]+)?/);
61081
61081
  return match ? match[0] : undefined;
61082
61082
  });
61083
61083
  buildEnvContext = memoize_default(async () => {
@@ -61117,9 +61117,9 @@ var init_metadata = __esm(() => {
61117
61117
  isGithubAction: isEnvTruthy(process.env.GITHUB_ACTIONS),
61118
61118
  isTheusCodeAction: isEnvTruthy(process.env.THEUS_CODE_ACTION),
61119
61119
  isTheusAiAuth: isTheusAISubscriber(),
61120
- version: { VERSION: "0.2.15", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
61120
+ version: { VERSION: "0.2.17", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
61121
61121
  versionBase: getVersionBase(),
61122
- buildTime: { VERSION: "0.2.15", BUILD_TIME: "1970-01-01T00:00:00.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,
61122
+ buildTime: { VERSION: "0.2.17", BUILD_TIME: "1970-01-01T00:00:00.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,
61123
61123
  deploymentEnvironment: env3.detectDeploymentEnvironment(),
61124
61124
  ...isEnvTruthy(process.env.GITHUB_ACTIONS) && {
61125
61125
  githubEventName: process.env.GITHUB_EVENT_NAME,
@@ -61785,7 +61785,7 @@ function initialize1PEventLogging() {
61785
61785
  const platform2 = getPlatform();
61786
61786
  const attributes = {
61787
61787
  [ATTR_SERVICE_NAME]: "theus-code",
61788
- [ATTR_SERVICE_VERSION]: { VERSION: "0.2.15", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
61788
+ [ATTR_SERVICE_VERSION]: { VERSION: "0.2.17", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
61789
61789
  };
61790
61790
  if (platform2 === "wsl") {
61791
61791
  const wslVersion = getWslVersion();
@@ -61812,7 +61812,7 @@ function initialize1PEventLogging() {
61812
61812
  })
61813
61813
  ]
61814
61814
  });
61815
- firstPartyEventLogger = firstPartyEventLoggerProvider.getLogger("com.theus.theus_code.events", { VERSION: "0.2.15", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION);
61815
+ firstPartyEventLogger = firstPartyEventLoggerProvider.getLogger("com.theus.theus_code.events", { VERSION: "0.2.17", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION);
61816
61816
  }
61817
61817
  async function reinitialize1PEventLoggingIfConfigChanged() {
61818
61818
  if (!is1PEventLoggingEnabled() || !firstPartyEventLoggerProvider) {
@@ -63683,7 +63683,7 @@ function getAttributionHeader(fingerprint) {
63683
63683
  if (!isAttributionHeaderEnabled()) {
63684
63684
  return "";
63685
63685
  }
63686
- const version2 = `${{ VERSION: "0.2.15", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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}`;
63686
+ const version2 = `${{ VERSION: "0.2.17", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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}`;
63687
63687
  const entrypoint = process.env.THEUS_CODE_ENTRYPOINT ?? "unknown";
63688
63688
  const cch = "";
63689
63689
  const workload = getWorkload();
@@ -107739,7 +107739,7 @@ Complete the user's request by providing accurate, documentation-based guidance.
107739
107739
  }
107740
107740
  function getFeedbackGuideline() {
107741
107741
  if (isUsing3PServices()) {
107742
- return `- When you cannot find an answer or the feature doesn't exist, direct the user to ${{ VERSION: "0.2.15", BUILD_TIME: "1970-01-01T00:00:00.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}`;
107742
+ return `- When you cannot find an answer or the feature doesn't exist, direct the user to ${{ VERSION: "0.2.17", BUILD_TIME: "1970-01-01T00:00:00.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}`;
107743
107743
  }
107744
107744
  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";
107745
107745
  }
@@ -166444,7 +166444,7 @@ function getTelemetryAttributes() {
166444
166444
  attributes["session.id"] = sessionId;
166445
166445
  }
166446
166446
  if (shouldIncludeAttribute("OTEL_METRICS_INCLUDE_VERSION")) {
166447
- attributes["app.version"] = { VERSION: "0.2.15", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION;
166447
+ attributes["app.version"] = { VERSION: "0.2.17", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION;
166448
166448
  }
166449
166449
  const oauthAccount = getOauthAccountInfo();
166450
166450
  if (oauthAccount) {
@@ -202502,7 +202502,7 @@ function getInstallationEnv() {
202502
202502
  return;
202503
202503
  }
202504
202504
  function getTheusCodeVersion() {
202505
- return { VERSION: "0.2.15", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION;
202505
+ return { VERSION: "0.2.17", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION;
202506
202506
  }
202507
202507
  async function getInstalledVSCodeExtensionVersion(command) {
202508
202508
  const { stdout } = await execFileNoThrow(command, ["--list-extensions", "--show-versions"], {
@@ -204020,7 +204020,7 @@ async function getMcpHeadersFromHelper(serverName, config2) {
204020
204020
  if ("scope" in config2 && isMcpServerFromProjectOrLocalSettings(config2) && !getIsNonInteractiveSession()) {
204021
204021
  const hasTrust = checkHasTrustDialogAccepted();
204022
204022
  if (!hasTrust) {
204023
- 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.15", BUILD_TIME: "1970-01-01T00:00:00.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}.`);
204023
+ 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.17", BUILD_TIME: "1970-01-01T00:00:00.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}.`);
204024
204024
  logAntError("MCP headersHelper invoked before trust check", error40);
204025
204025
  logEvent("tengu_mcp_headersHelper_missing_trust", {});
204026
204026
  return null;
@@ -205230,7 +205230,7 @@ async function setupSdkMcpClients(sdkMcpConfigs, sendMcpMessage) {
205230
205230
  const client2 = new Client({
205231
205231
  name: "theus-code",
205232
205232
  title: "Theus",
205233
- version: { VERSION: "0.2.15", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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",
205233
+ version: { VERSION: "0.2.17", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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",
205234
205234
  description: "Theus's agentic coding tool",
205235
205235
  websiteUrl: PRODUCT_URL
205236
205236
  }, {
@@ -205584,7 +205584,7 @@ var init_client5 = __esm(() => {
205584
205584
  const client2 = new Client({
205585
205585
  name: "theus-code",
205586
205586
  title: "Theus",
205587
- version: { VERSION: "0.2.15", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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",
205587
+ version: { VERSION: "0.2.17", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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",
205588
205588
  description: "Theus's agentic coding tool",
205589
205589
  websiteUrl: PRODUCT_URL
205590
205590
  }, {
@@ -216162,7 +216162,7 @@ async function initializeBetaTracing(resource) {
216162
216162
  });
216163
216163
  logs.setGlobalLoggerProvider(loggerProvider);
216164
216164
  setLoggerProvider(loggerProvider);
216165
- const eventLogger = logs.getLogger("com.theus.theus_code.events", { VERSION: "0.2.15", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION);
216165
+ const eventLogger = logs.getLogger("com.theus.theus_code.events", { VERSION: "0.2.17", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION);
216166
216166
  setEventLogger(eventLogger);
216167
216167
  process.on("beforeExit", async () => {
216168
216168
  await loggerProvider?.forceFlush();
@@ -216202,7 +216202,7 @@ async function initializeTelemetry() {
216202
216202
  const platform4 = getPlatform();
216203
216203
  const baseAttributes = {
216204
216204
  [ATTR_SERVICE_NAME]: "theus-code",
216205
- [ATTR_SERVICE_VERSION]: { VERSION: "0.2.15", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
216205
+ [ATTR_SERVICE_VERSION]: { VERSION: "0.2.17", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
216206
216206
  };
216207
216207
  if (platform4 === "wsl") {
216208
216208
  const wslVersion = getWslVersion();
@@ -216247,7 +216247,7 @@ async function initializeTelemetry() {
216247
216247
  } catch {}
216248
216248
  };
216249
216249
  registerCleanup(shutdownTelemetry2);
216250
- return meterProvider2.getMeter("com.theus.theus_code", { VERSION: "0.2.15", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION);
216250
+ return meterProvider2.getMeter("com.theus.theus_code", { VERSION: "0.2.17", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION);
216251
216251
  }
216252
216252
  const meterProvider = new MeterProvider({
216253
216253
  resource,
@@ -216267,7 +216267,7 @@ async function initializeTelemetry() {
216267
216267
  });
216268
216268
  logs.setGlobalLoggerProvider(loggerProvider);
216269
216269
  setLoggerProvider(loggerProvider);
216270
- const eventLogger = logs.getLogger("com.theus.theus_code.events", { VERSION: "0.2.15", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION);
216270
+ const eventLogger = logs.getLogger("com.theus.theus_code.events", { VERSION: "0.2.17", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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
216271
  setEventLogger(eventLogger);
216272
216272
  logForDebugging("[3P telemetry] Event logger set successfully");
216273
216273
  process.on("beforeExit", async () => {
@@ -216329,7 +216329,7 @@ Current timeout: ${timeoutMs}ms
216329
216329
  }
216330
216330
  };
216331
216331
  registerCleanup(shutdownTelemetry);
216332
- return meterProvider.getMeter("com.theus.theus_code", { VERSION: "0.2.15", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION);
216332
+ return meterProvider.getMeter("com.theus.theus_code", { VERSION: "0.2.17", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION);
216333
216333
  }
216334
216334
  async function flushTelemetry() {
216335
216335
  const meterProvider = getMeterProvider();
@@ -216869,7 +216869,7 @@ async function installOrUpdateTheusPackage(channel2, specificVersion) {
216869
216869
  return "install_failed";
216870
216870
  }
216871
216871
  const versionSpec = specificVersion ? specificVersion : channel2 === "stable" ? "stable" : "latest";
216872
- const result = await execFileNoThrowWithCwd("npm", ["install", `${{ VERSION: "0.2.15", BUILD_TIME: "1970-01-01T00:00:00.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 });
216872
+ const result = await execFileNoThrowWithCwd("npm", ["install", `${{ VERSION: "0.2.17", BUILD_TIME: "1970-01-01T00:00:00.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 });
216873
216873
  if (result.code !== 0) {
216874
216874
  const error40 = new Error(`Failed to install Theus CLI package: ${result.stderr}`);
216875
216875
  logError2(error40);
@@ -217015,9 +217015,9 @@ async function assertMinVersion() {
217015
217015
  if (false) {}
217016
217016
  try {
217017
217017
  const versionConfig = await getDynamicConfig_BLOCKS_ON_INIT("tengu_version_config", { minVersion: "0.0.0" });
217018
- if (versionConfig.minVersion && lt({ VERSION: "0.2.15", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
217018
+ if (versionConfig.minVersion && lt({ VERSION: "0.2.17", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
217019
217019
  console.error(`
217020
- It looks like your version of Theus (${{ VERSION: "0.2.15", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.
217020
+ It looks like your version of Theus (${{ VERSION: "0.2.17", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.
217021
217021
  A newer version (${versionConfig.minVersion} or higher) is required to continue.
217022
217022
 
217023
217023
  To update, please run:
@@ -217158,7 +217158,7 @@ async function getInstallationPrefix() {
217158
217158
  return prefixResult.stdout.trim();
217159
217159
  }
217160
217160
  function getGlobalInstallPackageManager() {
217161
- if ({ VERSION: "0.2.15", BUILD_TIME: "1970-01-01T00:00:00.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") {
217161
+ if ({ VERSION: "0.2.17", BUILD_TIME: "1970-01-01T00:00:00.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") {
217162
217162
  return "npm";
217163
217163
  }
217164
217164
  return env3.isRunningWithBun() ? "bun" : "npm";
@@ -217183,7 +217183,7 @@ async function checkGlobalInstallPermissions() {
217183
217183
  }
217184
217184
  async function getLatestVersion(channel2) {
217185
217185
  const npmTag = channel2 === "stable" ? "stable" : "latest";
217186
- const result = await execFileNoThrowWithCwd("npm", ["view", `${{ VERSION: "0.2.15", BUILD_TIME: "1970-01-01T00:00:00.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() });
217186
+ const result = await execFileNoThrowWithCwd("npm", ["view", `${{ VERSION: "0.2.17", BUILD_TIME: "1970-01-01T00:00:00.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() });
217187
217187
  if (result.code !== 0) {
217188
217188
  logForDebugging(`npm view failed with code ${result.code}`);
217189
217189
  if (result.stderr) {
@@ -217199,7 +217199,7 @@ async function getLatestVersion(channel2) {
217199
217199
  return result.stdout.trim();
217200
217200
  }
217201
217201
  async function getNpmDistTags() {
217202
- const result = await execFileNoThrowWithCwd("npm", ["view", { VERSION: "0.2.15", BUILD_TIME: "1970-01-01T00:00:00.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() });
217202
+ const result = await execFileNoThrowWithCwd("npm", ["view", { VERSION: "0.2.17", BUILD_TIME: "1970-01-01T00:00:00.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() });
217203
217203
  if (result.code !== 0) {
217204
217204
  logForDebugging(`npm view dist-tags failed with code ${result.code}`);
217205
217205
  return { latest: null, stable: null };
@@ -217239,7 +217239,7 @@ async function installGlobalPackage(specificVersion) {
217239
217239
  logError2(new AutoUpdaterError("Another process is currently installing an update"));
217240
217240
  logEvent("tengu_auto_updater_lock_contention", {
217241
217241
  pid: process.pid,
217242
- currentVersion: { VERSION: "0.2.15", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
217242
+ currentVersion: { VERSION: "0.2.17", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
217243
217243
  });
217244
217244
  return "in_progress";
217245
217245
  }
@@ -217248,7 +217248,7 @@ async function installGlobalPackage(specificVersion) {
217248
217248
  if (!env3.isRunningWithBun() && env3.isNpmFromWindowsPath()) {
217249
217249
  logError2(new Error("Windows NPM detected in WSL environment"));
217250
217250
  logEvent("tengu_auto_updater_windows_npm_in_wsl", {
217251
- currentVersion: { VERSION: "0.2.15", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
217251
+ currentVersion: { VERSION: "0.2.17", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
217252
217252
  });
217253
217253
  console.error(`
217254
217254
  Error: Windows NPM detected in WSL
@@ -217267,7 +217267,7 @@ To fix this issue:
217267
217267
  if (!hasPermissions) {
217268
217268
  return "no_permissions";
217269
217269
  }
217270
- const packageSpec = specificVersion ? `${{ VERSION: "0.2.15", BUILD_TIME: "1970-01-01T00:00:00.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.15", BUILD_TIME: "1970-01-01T00:00:00.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;
217270
+ const packageSpec = specificVersion ? `${{ VERSION: "0.2.17", BUILD_TIME: "1970-01-01T00:00:00.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.17", BUILD_TIME: "1970-01-01T00:00:00.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;
217271
217271
  const packageManager = getGlobalInstallPackageManager();
217272
217272
  const installResult = await execFileNoThrowWithCwd(packageManager, ["install", "-g", packageSpec], { cwd: homedir18() });
217273
217273
  if (installResult.code !== 0) {
@@ -217595,8 +217595,8 @@ async function detectMultipleInstallations() {
217595
217595
  installations.push({ type: "npm-local", path: localPath });
217596
217596
  }
217597
217597
  const packagesToCheck = ["@theus-ai/theus-code"];
217598
- if ({ VERSION: "0.2.15", BUILD_TIME: "1970-01-01T00:00:00.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.15", BUILD_TIME: "1970-01-01T00:00:00.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") {
217599
- packagesToCheck.push({ VERSION: "0.2.15", BUILD_TIME: "1970-01-01T00:00:00.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);
217598
+ if ({ VERSION: "0.2.17", BUILD_TIME: "1970-01-01T00:00:00.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.17", BUILD_TIME: "1970-01-01T00:00:00.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") {
217599
+ packagesToCheck.push({ VERSION: "0.2.17", BUILD_TIME: "1970-01-01T00:00:00.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);
217600
217600
  }
217601
217601
  const npmResult = await execFileNoThrow("npm", [
217602
217602
  "-g",
@@ -217779,7 +217779,7 @@ function detectLinuxGlobPatternWarnings() {
217779
217779
  }
217780
217780
  async function getDoctorDiagnostic() {
217781
217781
  const installationType = await getCurrentInstallationType();
217782
- const version2 = { VERSION: "0.2.15", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.15", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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";
217782
+ const version2 = { VERSION: "0.2.17", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.17", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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";
217783
217783
  const installationPath = await getInstallationPath();
217784
217784
  const invokedBinary = getInvokedBinary();
217785
217785
  const multipleInstallations = await detectMultipleInstallations();
@@ -217791,8 +217791,8 @@ async function getDoctorDiagnostic() {
217791
217791
  for (const install of npmInstalls) {
217792
217792
  if (install.type === "npm-global") {
217793
217793
  let uninstallCmd = "npm -g uninstall @theus-ai/theus-code";
217794
- if ({ VERSION: "0.2.15", BUILD_TIME: "1970-01-01T00:00:00.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.15", BUILD_TIME: "1970-01-01T00:00:00.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") {
217795
- uninstallCmd += ` && npm -g uninstall ${{ VERSION: "0.2.15", BUILD_TIME: "1970-01-01T00:00:00.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}`;
217794
+ if ({ VERSION: "0.2.17", BUILD_TIME: "1970-01-01T00:00:00.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.17", BUILD_TIME: "1970-01-01T00:00:00.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") {
217795
+ uninstallCmd += ` && npm -g uninstall ${{ VERSION: "0.2.17", BUILD_TIME: "1970-01-01T00:00:00.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}`;
217796
217796
  }
217797
217797
  warnings.push({
217798
217798
  issue: `Leftover npm global installation at ${install.path}`,
@@ -217904,7 +217904,7 @@ async function getLatestVersionFromArtifactory(tag2 = "latest") {
217904
217904
  const startTime2 = Date.now();
217905
217905
  const { stdout, code, stderr } = await execFileNoThrowWithCwd("npm", [
217906
217906
  "view",
217907
- `${{ VERSION: "0.2.15", BUILD_TIME: "1970-01-01T00:00:00.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}`,
217907
+ `${{ VERSION: "0.2.17", BUILD_TIME: "1970-01-01T00:00:00.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}`,
217908
217908
  "version",
217909
217909
  "--prefer-online",
217910
217910
  "--registry",
@@ -217928,7 +217928,7 @@ async function getLatestVersionFromArtifactory(tag2 = "latest") {
217928
217928
  latency_ms: latencyMs,
217929
217929
  source_npm: true
217930
217930
  });
217931
- logForDebugging(`npm view ${{ VERSION: "0.2.15", BUILD_TIME: "1970-01-01T00:00:00.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}`);
217931
+ logForDebugging(`npm view ${{ VERSION: "0.2.17", BUILD_TIME: "1970-01-01T00:00:00.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}`);
217932
217932
  const latestVersion = stdout.trim();
217933
217933
  return latestVersion;
217934
217934
  }
@@ -217984,7 +217984,7 @@ async function downloadVersionFromArtifactory(version2, stagingPath) {
217984
217984
  const fs3 = getFsImplementation();
217985
217985
  await fs3.rm(stagingPath, { recursive: true, force: true });
217986
217986
  const platform4 = getPlatform2();
217987
- const platformPackageName = `${{ VERSION: "0.2.15", BUILD_TIME: "1970-01-01T00:00:00.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}`;
217987
+ const platformPackageName = `${{ VERSION: "0.2.17", BUILD_TIME: "1970-01-01T00:00:00.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}`;
217988
217988
  logForDebugging(`Fetching integrity hash for ${platformPackageName}@${version2}`);
217989
217989
  const {
217990
217990
  stdout: integrityOutput,
@@ -218013,7 +218013,7 @@ async function downloadVersionFromArtifactory(version2, stagingPath) {
218013
218013
  name: "theus-native-installer",
218014
218014
  version: "0.0.1",
218015
218015
  dependencies: {
218016
- [{ VERSION: "0.2.15", BUILD_TIME: "1970-01-01T00:00:00.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
218016
+ [{ VERSION: "0.2.17", BUILD_TIME: "1970-01-01T00:00:00.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
218017
218017
  }
218018
218018
  };
218019
218019
  const packageLock = {
@@ -218026,10 +218026,10 @@ async function downloadVersionFromArtifactory(version2, stagingPath) {
218026
218026
  name: "theus-native-installer",
218027
218027
  version: "0.0.1",
218028
218028
  dependencies: {
218029
- [{ VERSION: "0.2.15", BUILD_TIME: "1970-01-01T00:00:00.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
218029
+ [{ VERSION: "0.2.17", BUILD_TIME: "1970-01-01T00:00:00.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
218030
218030
  }
218031
218031
  },
218032
- [`node_modules/${{ VERSION: "0.2.15", BUILD_TIME: "1970-01-01T00:00:00.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}`]: {
218032
+ [`node_modules/${{ VERSION: "0.2.17", BUILD_TIME: "1970-01-01T00:00:00.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}`]: {
218033
218033
  version: version2,
218034
218034
  optionalDependencies: {
218035
218035
  [platformPackageName]: version2
@@ -218051,7 +218051,7 @@ async function downloadVersionFromArtifactory(version2, stagingPath) {
218051
218051
  if (result.code !== 0) {
218052
218052
  throw new Error(`npm ci failed with code ${result.code}: ${result.stderr}`);
218053
218053
  }
218054
- logForDebugging(`Successfully downloaded and verified ${{ VERSION: "0.2.15", BUILD_TIME: "1970-01-01T00:00:00.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}`);
218054
+ logForDebugging(`Successfully downloaded and verified ${{ VERSION: "0.2.17", BUILD_TIME: "1970-01-01T00:00:00.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}`);
218055
218055
  }
218056
218056
  function getStallTimeoutMs() {
218057
218057
  return Number(process.env.THEUS_CODE_STALL_TIMEOUT_MS_FOR_TESTING) || DEFAULT_STALL_TIMEOUT_MS;
@@ -218714,8 +218714,8 @@ async function updateLatest(channelOrVersion, forceReinstall = false) {
218714
218714
  const maxVersion = await getMaxVersion();
218715
218715
  if (maxVersion && gt(version2, maxVersion)) {
218716
218716
  logForDebugging(`Native installer: maxVersion ${maxVersion} is set, capping update from ${version2} to ${maxVersion}`);
218717
- if (gte({ VERSION: "0.2.15", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
218718
- logForDebugging(`Native installer: current version ${{ VERSION: "0.2.15", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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`);
218717
+ if (gte({ VERSION: "0.2.17", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
218718
+ logForDebugging(`Native installer: current version ${{ VERSION: "0.2.17", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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`);
218719
218719
  logEvent("tengu_native_update_skipped_max_version", {
218720
218720
  latency_ms: Date.now() - startTime2,
218721
218721
  max_version: maxVersion,
@@ -218726,7 +218726,7 @@ async function updateLatest(channelOrVersion, forceReinstall = false) {
218726
218726
  version2 = maxVersion;
218727
218727
  }
218728
218728
  }
218729
- if (!forceReinstall && version2 === { VERSION: "0.2.15", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
218729
+ if (!forceReinstall && version2 === { VERSION: "0.2.17", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
218730
218730
  logForDebugging(`Found ${version2} at ${executablePath}, skipping install`);
218731
218731
  logEvent("tengu_native_update_complete", {
218732
218732
  latency_ms: Date.now() - startTime2,
@@ -219476,8 +219476,8 @@ async function cleanupNpmInstallations() {
219476
219476
  } else if (codePackageResult.error) {
219477
219477
  errors4.push(codePackageResult.error);
219478
219478
  }
219479
- if ({ VERSION: "0.2.15", BUILD_TIME: "1970-01-01T00:00:00.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.15", BUILD_TIME: "1970-01-01T00:00:00.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") {
219480
- const macroPackageResult = await attemptNpmUninstall({ VERSION: "0.2.15", BUILD_TIME: "1970-01-01T00:00:00.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);
219479
+ if ({ VERSION: "0.2.17", BUILD_TIME: "1970-01-01T00:00:00.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.17", BUILD_TIME: "1970-01-01T00:00:00.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") {
219480
+ const macroPackageResult = await attemptNpmUninstall({ VERSION: "0.2.17", BUILD_TIME: "1970-01-01T00:00:00.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);
219481
219481
  if (macroPackageResult.success) {
219482
219482
  removed++;
219483
219483
  if (macroPackageResult.warning) {
@@ -300409,9 +300409,9 @@ function getTheusEnvMetadata() {
300409
300409
  };
300410
300410
  }
300411
300411
  function getBuildAgeMinutes() {
300412
- if (!{ VERSION: "0.2.15", BUILD_TIME: "1970-01-01T00:00:00.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)
300412
+ if (!{ VERSION: "0.2.17", BUILD_TIME: "1970-01-01T00:00:00.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)
300413
300413
  return;
300414
- const buildTime = new Date({ VERSION: "0.2.15", BUILD_TIME: "1970-01-01T00:00:00.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();
300414
+ const buildTime = new Date({ VERSION: "0.2.17", BUILD_TIME: "1970-01-01T00:00:00.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();
300415
300415
  if (isNaN(buildTime))
300416
300416
  return;
300417
300417
  return Math.floor((Date.now() - buildTime) / 60000);
@@ -316653,7 +316653,7 @@ function getAssistantMessageFromError(error40, model, options2) {
316653
316653
  if (process.env.USER_TYPE === "ant") {
316654
316654
  const baseMessage = `API Error: 400 ${error40.message}
316655
316655
 
316656
- Run /share and post the JSON file to ${{ VERSION: "0.2.15", BUILD_TIME: "1970-01-01T00:00:00.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}.`;
316656
+ Run /share and post the JSON file to ${{ VERSION: "0.2.17", BUILD_TIME: "1970-01-01T00:00:00.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}.`;
316657
316657
  const rewindInstruction = getIsNonInteractiveSession() ? "" : " Then, use /rewind to recover the conversation.";
316658
316658
  return createAssistantAPIErrorMessage({
316659
316659
  content: baseMessage + rewindInstruction,
@@ -316689,7 +316689,7 @@ Run /share and post the JSON file to ${{ VERSION: "0.2.15", BUILD_TIME: "1970-01
316689
316689
  if (process.env.USER_TYPE === "ant" && !process.env.THEUS_MODEL && error40 instanceof Error && error40.message.toLowerCase().includes("invalid model name")) {
316690
316690
  const orgId = getOauthAccountInfo()?.organizationUuid;
316691
316691
  const baseMsg = `[THEUS-INTERNAL] Your org isn't gated into the \`${model}\` model. Either run \`theus\` with \`THEUS_MODEL=${getDefaultMainLoopModelSetting()}\``;
316692
- const msg = orgId ? `${baseMsg} or share your orgId (${orgId}) in ${{ VERSION: "0.2.15", BUILD_TIME: "1970-01-01T00:00:00.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.15", BUILD_TIME: "1970-01-01T00:00:00.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.`;
316692
+ const msg = orgId ? `${baseMsg} or share your orgId (${orgId}) in ${{ VERSION: "0.2.17", BUILD_TIME: "1970-01-01T00:00:00.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.17", BUILD_TIME: "1970-01-01T00:00:00.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.`;
316693
316693
  return createAssistantAPIErrorMessage({
316694
316694
  content: msg,
316695
316695
  error: "invalid_request"
@@ -326789,7 +326789,7 @@ function buildPrimarySection() {
326789
326789
  });
326790
326790
  return [{
326791
326791
  label: "Version",
326792
- value: { VERSION: "0.2.15", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
326792
+ value: { VERSION: "0.2.17", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
326793
326793
  }, {
326794
326794
  label: "Session name",
326795
326795
  value: nameValue
@@ -330605,7 +330605,7 @@ function Config({
330605
330605
  }
330606
330606
  })
330607
330607
  }) : showSubmenu === "ChannelDowngrade" ? /* @__PURE__ */ jsx_runtime185.jsx(ChannelDowngradeDialog, {
330608
- currentVersion: { VERSION: "0.2.15", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
330608
+ currentVersion: { VERSION: "0.2.17", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
330609
330609
  onChoice: (choice) => {
330610
330610
  setShowSubmenu(null);
330611
330611
  setTabsHidden(false);
@@ -330617,7 +330617,7 @@ function Config({
330617
330617
  autoUpdatesChannel: "stable"
330618
330618
  };
330619
330619
  if (choice === "stay") {
330620
- newSettings.minimumVersion = { VERSION: "0.2.15", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION;
330620
+ newSettings.minimumVersion = { VERSION: "0.2.17", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION;
330621
330621
  }
330622
330622
  updateSettingsForSource("userSettings", newSettings);
330623
330623
  setSettingsData((prev_27) => ({
@@ -338651,7 +338651,7 @@ function HelpV2(t0) {
338651
338651
  let t6;
338652
338652
  if ($2[31] !== tabs) {
338653
338653
  t6 = /* @__PURE__ */ jsx_runtime212.jsx(Tabs, {
338654
- title: `Theus v${{ VERSION: "0.2.15", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION}`,
338654
+ title: `Theus v${{ VERSION: "0.2.17", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION}`,
338655
338655
  color: "professionalBlue",
338656
338656
  defaultTab: "general",
338657
338657
  children: tabs
@@ -355375,6 +355375,23 @@ var init_mcp3 = __esm(() => {
355375
355375
  var NOVEDADES;
355376
355376
  var init_data = __esm(() => {
355377
355377
  NOVEDADES = [
355378
+ {
355379
+ version: "v0.2.17",
355380
+ fecha: "2026-07-12",
355381
+ titulo: "Arreglo: /telegram ahora s\xED se ve",
355382
+ puntos: [
355383
+ "El panel de /telegram se cerraba al instante (el mismo Enter que lo abr\xEDa lo cerraba). Ahora persiste hasta que pulses Esc, con el QR y las instrucciones a la vista."
355384
+ ]
355385
+ },
355386
+ {
355387
+ version: "v0.2.16",
355388
+ fecha: "2026-07-12",
355389
+ titulo: "Control Remoto que arranca + QR en /telegram",
355390
+ puntos: [
355391
+ 'Arreglado: "unknown option --rc". Ahora THEUS_BRIDGE=1 theus --rc arranca de verdad la sesi\xF3n con Control Remoto (faltaba registrar la opci\xF3n en el CLI publicado).',
355392
+ "/telegram muestra un c\xF3digo QR del enlace de vinculaci\xF3n: escan\xE9alo con la c\xE1mara del tel\xE9fono y listo, sin copiar URLs."
355393
+ ]
355394
+ },
355378
355395
  {
355379
355396
  version: "v0.2.15",
355380
355397
  fecha: "2026-07-12",
@@ -356358,9 +356375,9 @@ function getAllReleaseNotes(changelogContent = getStoredChangelogFromMemory()) {
356358
356375
  return [];
356359
356376
  }
356360
356377
  }
356361
- async function checkForReleaseNotes(lastSeenVersion, currentVersion = { VERSION: "0.2.15", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION) {
356378
+ async function checkForReleaseNotes(lastSeenVersion, currentVersion = { VERSION: "0.2.17", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION) {
356362
356379
  if (process.env.USER_TYPE === "ant") {
356363
- const changelog = { VERSION: "0.2.15", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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;
356380
+ const changelog = { VERSION: "0.2.17", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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;
356364
356381
  if (changelog) {
356365
356382
  const commits = changelog.trim().split(`
356366
356383
  `).filter(Boolean);
@@ -360762,7 +360779,7 @@ var init_Messages = __esm(() => {
360762
360779
  let t1;
360763
360780
  if ($2[0] === Symbol.for("react.memo_cache_sentinel")) {
360764
360781
  t1 = /* @__PURE__ */ jsx_runtime251.jsx(TheusSessionHeader, {
360765
- version: { VERSION: "0.2.15", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
360782
+ version: { VERSION: "0.2.17", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
360766
360783
  });
360767
360784
  $2[0] = t1;
360768
360785
  } else {
@@ -368466,73 +368483,121 @@ var require_browser2 = __commonJS((exports) => {
368466
368483
  });
368467
368484
 
368468
368485
  // node_modules/qrcode/lib/server.js
368469
- function checkParams(text, opts, cb) {
368470
- if (typeof text === "undefined") {
368471
- throw new Error("String required as first argument");
368486
+ var require_server = __commonJS((exports) => {
368487
+ var canPromise = require_can_promise();
368488
+ var QRCode = require_qrcode();
368489
+ var PngRenderer = require_png2();
368490
+ var Utf8Renderer = require_utf8();
368491
+ var TerminalRenderer = require_terminal2();
368492
+ var SvgRenderer = require_svg();
368493
+ function checkParams(text, opts, cb) {
368494
+ if (typeof text === "undefined") {
368495
+ throw new Error("String required as first argument");
368496
+ }
368497
+ if (typeof cb === "undefined") {
368498
+ cb = opts;
368499
+ opts = {};
368500
+ }
368501
+ if (typeof cb !== "function") {
368502
+ if (!canPromise()) {
368503
+ throw new Error("Callback required as last argument");
368504
+ } else {
368505
+ opts = cb || {};
368506
+ cb = null;
368507
+ }
368508
+ }
368509
+ return {
368510
+ opts,
368511
+ cb
368512
+ };
368472
368513
  }
368473
- if (typeof cb === "undefined") {
368474
- cb = opts;
368475
- opts = {};
368514
+ function getTypeFromFilename(path19) {
368515
+ return path19.slice((path19.lastIndexOf(".") - 1 >>> 0) + 2).toLowerCase();
368476
368516
  }
368477
- if (typeof cb !== "function") {
368478
- if (!canPromise()) {
368479
- throw new Error("Callback required as last argument");
368480
- } else {
368481
- opts = cb || {};
368482
- cb = null;
368517
+ function getRendererFromType(type) {
368518
+ switch (type) {
368519
+ case "svg":
368520
+ return SvgRenderer;
368521
+ case "txt":
368522
+ case "utf8":
368523
+ return Utf8Renderer;
368524
+ case "png":
368525
+ case "image/png":
368526
+ default:
368527
+ return PngRenderer;
368483
368528
  }
368484
368529
  }
368485
- return {
368486
- opts,
368487
- cb
368488
- };
368489
- }
368490
- function getStringRendererFromType(type) {
368491
- switch (type) {
368492
- case "svg":
368493
- return SvgRenderer;
368494
- case "terminal":
368495
- return TerminalRenderer;
368496
- case "utf8":
368497
- default:
368498
- return Utf8Renderer;
368499
- }
368500
- }
368501
- function render2(renderFunc, text, params) {
368502
- if (!params.cb) {
368503
- return new Promise(function(resolve43, reject2) {
368504
- try {
368505
- const data = QRCode.create(text, params.opts);
368506
- return renderFunc(data, params.opts, function(err2, data2) {
368507
- return err2 ? reject2(err2) : resolve43(data2);
368508
- });
368509
- } catch (e) {
368510
- reject2(e);
368511
- }
368512
- });
368530
+ function getStringRendererFromType(type) {
368531
+ switch (type) {
368532
+ case "svg":
368533
+ return SvgRenderer;
368534
+ case "terminal":
368535
+ return TerminalRenderer;
368536
+ case "utf8":
368537
+ default:
368538
+ return Utf8Renderer;
368539
+ }
368513
368540
  }
368514
- try {
368515
- const data = QRCode.create(text, params.opts);
368516
- return renderFunc(data, params.opts, params.cb);
368517
- } catch (e) {
368518
- params.cb(e);
368541
+ function render2(renderFunc, text, params) {
368542
+ if (!params.cb) {
368543
+ return new Promise(function(resolve43, reject2) {
368544
+ try {
368545
+ const data = QRCode.create(text, params.opts);
368546
+ return renderFunc(data, params.opts, function(err2, data2) {
368547
+ return err2 ? reject2(err2) : resolve43(data2);
368548
+ });
368549
+ } catch (e) {
368550
+ reject2(e);
368551
+ }
368552
+ });
368553
+ }
368554
+ try {
368555
+ const data = QRCode.create(text, params.opts);
368556
+ return renderFunc(data, params.opts, params.cb);
368557
+ } catch (e) {
368558
+ params.cb(e);
368559
+ }
368519
368560
  }
368520
- }
368521
- var canPromise, QRCode, PngRenderer, Utf8Renderer, TerminalRenderer, SvgRenderer, $create, $toCanvas, $toString = function toString5(text, opts, cb) {
368522
- const params = checkParams(text, opts, cb);
368523
- const type = params.opts ? params.opts.type : undefined;
368524
- const renderer = getStringRendererFromType(type);
368525
- return render2(renderer.render, text, params);
368526
- };
368527
- var init_server = __esm(() => {
368528
- canPromise = require_can_promise();
368529
- QRCode = require_qrcode();
368530
- PngRenderer = require_png2();
368531
- Utf8Renderer = require_utf8();
368532
- TerminalRenderer = require_terminal2();
368533
- SvgRenderer = require_svg();
368534
- $create = QRCode.create;
368535
- $toCanvas = require_browser2().toCanvas;
368561
+ exports.create = QRCode.create;
368562
+ exports.toCanvas = require_browser2().toCanvas;
368563
+ exports.toString = function toString(text, opts, cb) {
368564
+ const params = checkParams(text, opts, cb);
368565
+ const type = params.opts ? params.opts.type : undefined;
368566
+ const renderer = getStringRendererFromType(type);
368567
+ return render2(renderer.render, text, params);
368568
+ };
368569
+ exports.toDataURL = function toDataURL(text, opts, cb) {
368570
+ const params = checkParams(text, opts, cb);
368571
+ const renderer = getRendererFromType(params.opts.type);
368572
+ return render2(renderer.renderToDataURL, text, params);
368573
+ };
368574
+ exports.toBuffer = function toBuffer(text, opts, cb) {
368575
+ const params = checkParams(text, opts, cb);
368576
+ const renderer = getRendererFromType(params.opts.type);
368577
+ return render2(renderer.renderToBuffer, text, params);
368578
+ };
368579
+ exports.toFile = function toFile(path19, text, opts, cb) {
368580
+ if (typeof path19 !== "string" || !(typeof text === "string" || typeof text === "object")) {
368581
+ throw new Error("Invalid argument");
368582
+ }
368583
+ if (arguments.length < 3 && !canPromise()) {
368584
+ throw new Error("Too few arguments provided");
368585
+ }
368586
+ const params = checkParams(text, opts, cb);
368587
+ const type = params.opts.type || getTypeFromFilename(path19);
368588
+ const renderer = getRendererFromType(type);
368589
+ const renderToFile = renderer.renderToFile.bind(null, path19);
368590
+ return render2(renderToFile, text, params);
368591
+ };
368592
+ exports.toFileStream = function toFileStream(stream4, text, opts) {
368593
+ if (arguments.length < 2) {
368594
+ throw new Error("Too few arguments provided");
368595
+ }
368596
+ const params = checkParams(text, opts, stream4.emit.bind(stream4, "error"));
368597
+ const renderer = getRendererFromType("png");
368598
+ const renderToFileStream = renderer.renderToFileStream.bind(null, stream4);
368599
+ render2(renderToFileStream, text, params);
368600
+ };
368536
368601
  });
368537
368602
 
368538
368603
  // commands/session/session.tsx
@@ -368556,7 +368621,7 @@ function SessionInfo(t0) {
368556
368621
  }
368557
368622
  const url3 = remoteSessionUrl;
368558
368623
  const generateQRCode = async function generateQRCode() {
368559
- const qr = await $toString(url3, {
368624
+ const qr = await import_qrcode.toString(url3, {
368560
368625
  type: "utf8",
368561
368626
  errorCorrectionLevel: "L"
368562
368627
  });
@@ -368711,19 +368776,19 @@ function _temp245(e) {
368711
368776
  function _temp111(s) {
368712
368777
  return s.remoteSessionUrl;
368713
368778
  }
368714
- var import_react151, jsx_runtime259, call31 = async (onDone) => {
368779
+ var import_qrcode, import_react151, jsx_runtime259, call31 = async (onDone) => {
368715
368780
  return /* @__PURE__ */ jsx_runtime259.jsx(SessionInfo, {
368716
368781
  onDone
368717
368782
  });
368718
368783
  };
368719
368784
  var init_session = __esm(() => {
368720
368785
  init_compiler_runtime();
368721
- init_server();
368722
368786
  init_Pane();
368723
368787
  init_ink2();
368724
368788
  init_useKeybinding();
368725
368789
  init_AppState();
368726
368790
  init_debug();
368791
+ import_qrcode = __toESM(require_server(), 1);
368727
368792
  import_react151 = __toESM(require_react(), 1);
368728
368793
  jsx_runtime259 = __toESM(require_jsx_runtime(), 1);
368729
368794
  });
@@ -388309,7 +388374,7 @@ async function captureMemoryDiagnostics(trigger, dumpNumber = 0) {
388309
388374
  smapsRollup,
388310
388375
  platform: process.platform,
388311
388376
  nodeVersion: process.version,
388312
- ccVersion: { VERSION: "0.2.15", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
388377
+ ccVersion: { VERSION: "0.2.17", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
388313
388378
  };
388314
388379
  }
388315
388380
  async function performHeapDump(trigger = "manual", dumpNumber = 0) {
@@ -388895,7 +388960,7 @@ var init_bridge_kick = __esm(() => {
388895
388960
  var call55 = async () => {
388896
388961
  return {
388897
388962
  type: "text",
388898
- value: { VERSION: "0.2.15", BUILD_TIME: "1970-01-01T00:00:00.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.15", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.15", BUILD_TIME: "1970-01-01T00:00:00.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.15", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
388963
+ value: { VERSION: "0.2.17", BUILD_TIME: "1970-01-01T00:00:00.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.17", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.17", BUILD_TIME: "1970-01-01T00:00:00.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.17", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
388899
388964
  };
388900
388965
  }, version2, version_default;
388901
388966
  var init_version = __esm(() => {
@@ -388933,6 +388998,13 @@ async function gatewayJson(path19, method = "GET", body) {
388933
388998
  return { _error: 0 };
388934
388999
  }
388935
389000
  }
389001
+ async function makeQr(text) {
389002
+ try {
389003
+ return await import_qrcode2.default.toString(text, { type: "terminal", small: true });
389004
+ } catch {
389005
+ return;
389006
+ }
389007
+ }
388936
389008
  function RemoteHint() {
388937
389009
  return /* @__PURE__ */ jsx_runtime324.jsxs(ThemedBox_default, {
388938
389010
  flexDirection: "column",
@@ -388978,7 +389050,7 @@ function TelegramOnboarding({
388978
389050
  onDone(msg, { display: "system" });
388979
389051
  };
388980
389052
  use_input_default((input, key) => {
388981
- if (key.escape || key.return || input === "q")
389053
+ if (key.escape || input === "q")
388982
389054
  finish("Onboarding de Telegram cerrado.");
388983
389055
  });
388984
389056
  import_react177.useEffect(() => {
@@ -389013,11 +389085,15 @@ function TelegramOnboarding({
389013
389085
  setView({ phase: "error", message: "No pude generar el enlace de vinculaci\xF3n." });
389014
389086
  return;
389015
389087
  }
389088
+ const qr = await makeQr(link6.deep_link);
389089
+ if (cancelled)
389090
+ return;
389016
389091
  setView({
389017
389092
  phase: "not-linked",
389018
389093
  deepLink: link6.deep_link,
389019
389094
  bot: link6.bot ?? undefined,
389020
- token: link6.token
389095
+ token: link6.token,
389096
+ qr
389021
389097
  });
389022
389098
  let ticks = 0;
389023
389099
  pollRef.current = setInterval(async () => {
@@ -389044,12 +389120,8 @@ function TelegramOnboarding({
389044
389120
  };
389045
389121
  }, []);
389046
389122
  import_react177.useEffect(() => {
389047
- if (view.phase === "linked") {
389048
- const t = setTimeout(() => finish(`Telegram vinculado (chat ${view.chatId}).`), 5000);
389049
- return () => clearTimeout(t);
389050
- }
389051
389123
  if (view.phase === "no-auth" || view.phase === "not-configured" || view.phase === "error") {
389052
- const t = setTimeout(() => finish(view.message || "Listo."), 6000);
389124
+ const t = setTimeout(() => finish(view.message || "Listo."), 8000);
389053
389125
  return () => clearTimeout(t);
389054
389126
  }
389055
389127
  return;
@@ -389109,6 +389181,19 @@ function TelegramOnboarding({
389109
389181
  /* @__PURE__ */ jsx_runtime324.jsx(ThemedText, {
389110
389182
  children: "Vincula tu Telegram con tu cuenta:"
389111
389183
  }),
389184
+ view.qr && /* @__PURE__ */ jsx_runtime324.jsxs(ThemedBox_default, {
389185
+ marginTop: 1,
389186
+ flexDirection: "column",
389187
+ children: [
389188
+ /* @__PURE__ */ jsx_runtime324.jsx(ThemedText, {
389189
+ dimColor: true,
389190
+ children: " Escan\xE9alo con la c\xE1mara de tu tel\xE9fono:"
389191
+ }),
389192
+ /* @__PURE__ */ jsx_runtime324.jsx(ThemedText, {
389193
+ children: view.qr
389194
+ })
389195
+ ]
389196
+ }),
389112
389197
  /* @__PURE__ */ jsx_runtime324.jsxs(ThemedBox_default, {
389113
389198
  marginTop: 1,
389114
389199
  marginLeft: 2,
@@ -389116,7 +389201,7 @@ function TelegramOnboarding({
389116
389201
  children: [
389117
389202
  /* @__PURE__ */ jsx_runtime324.jsxs(ThemedText, {
389118
389203
  children: [
389119
- "1) Abre este enlace y pulsa ",
389204
+ view.qr ? "\u2026o abre este enlace y pulsa " : "1) Abre este enlace y pulsa ",
389120
389205
  /* @__PURE__ */ jsx_runtime324.jsx(ThemedText, {
389121
389206
  bold: true,
389122
389207
  children: "Iniciar"
@@ -389169,13 +389254,20 @@ function TelegramOnboarding({
389169
389254
  bold: true,
389170
389255
  children: `\u2705 Telegram vinculado (chat ${view.chatId}).`
389171
389256
  }),
389172
- /* @__PURE__ */ jsx_runtime324.jsx(RemoteHint, {})
389257
+ /* @__PURE__ */ jsx_runtime324.jsx(RemoteHint, {}),
389258
+ /* @__PURE__ */ jsx_runtime324.jsx(ThemedBox_default, {
389259
+ marginTop: 1,
389260
+ children: /* @__PURE__ */ jsx_runtime324.jsx(ThemedText, {
389261
+ dimColor: true,
389262
+ children: "Esc para cerrar."
389263
+ })
389264
+ })
389173
389265
  ]
389174
389266
  })
389175
389267
  ]
389176
389268
  });
389177
389269
  }
389178
- var import_react177, jsx_runtime324, call56 = async (onDone) => {
389270
+ var import_qrcode2, import_react177, jsx_runtime324, call56 = async (onDone) => {
389179
389271
  return /* @__PURE__ */ jsx_runtime324.jsx(TelegramOnboarding, {
389180
389272
  onDone
389181
389273
  });
@@ -389185,6 +389277,7 @@ var init_telegram = __esm(() => {
389185
389277
  init_oauth();
389186
389278
  init_ink2();
389187
389279
  init_auth();
389280
+ import_qrcode2 = __toESM(require_server(), 1);
389188
389281
  import_react177 = __toESM(require_react(), 1);
389189
389282
  jsx_runtime324 = __toESM(require_jsx_runtime(), 1);
389190
389283
  telegram = {
@@ -393027,13 +393120,13 @@ async function updateReleaseBundle() {
393027
393120
  await gracefulShutdown(1);
393028
393121
  return;
393029
393122
  }
393030
- if (gte({ VERSION: "0.2.15", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
393031
- writeToStdout(source_default.green(`Theus is up to date (${{ VERSION: "0.2.15", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION})`) + `
393123
+ if (gte({ VERSION: "0.2.17", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
393124
+ writeToStdout(source_default.green(`Theus is up to date (${{ VERSION: "0.2.17", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION})`) + `
393032
393125
  `);
393033
393126
  await gracefulShutdown(0);
393034
393127
  return;
393035
393128
  }
393036
- writeToStdout(`New version available: ${latest} (current: ${{ VERSION: "0.2.15", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION})
393129
+ writeToStdout(`New version available: ${latest} (current: ${{ VERSION: "0.2.17", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION})
393037
393130
  `);
393038
393131
  writeToStdout(`Installing update from theus.pe/dl...
393039
393132
  `);
@@ -393067,7 +393160,7 @@ async function updateReleaseBundle() {
393067
393160
  return;
393068
393161
  }
393069
393162
  cpSync(staged, bundleDir, { recursive: true, force: true });
393070
- writeToStdout(source_default.green(`Successfully updated from ${{ VERSION: "0.2.15", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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}`) + `
393163
+ writeToStdout(source_default.green(`Successfully updated from ${{ VERSION: "0.2.17", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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}`) + `
393071
393164
  `);
393072
393165
  await regenerateCompletionCache();
393073
393166
  } finally {
@@ -393080,7 +393173,7 @@ async function updateReleaseBundle() {
393080
393173
  async function update() {
393081
393174
  logEvent("tengu_update_check", {});
393082
393175
  await updateNaupa();
393083
- writeToStdout(`Current version: ${{ VERSION: "0.2.15", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION}
393176
+ writeToStdout(`Current version: ${{ VERSION: "0.2.17", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION}
393084
393177
  `);
393085
393178
  const channel2 = getInitialSettings()?.autoUpdatesChannel ?? "latest";
393086
393179
  writeToStdout(`Checking for updates to ${channel2} version...
@@ -393159,8 +393252,8 @@ async function update() {
393159
393252
  writeToStdout(`Theus is managed by Homebrew.
393160
393253
  `);
393161
393254
  const latest = await getLatestVersion(channel2);
393162
- if (latest && !gte({ VERSION: "0.2.15", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
393163
- writeToStdout(`Update available: ${{ VERSION: "0.2.15", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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}
393255
+ if (latest && !gte({ VERSION: "0.2.17", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
393256
+ writeToStdout(`Update available: ${{ VERSION: "0.2.17", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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}
393164
393257
  `);
393165
393258
  writeToStdout(`
393166
393259
  `);
@@ -393176,8 +393269,8 @@ async function update() {
393176
393269
  writeToStdout(`Theus is managed by winget.
393177
393270
  `);
393178
393271
  const latest = await getLatestVersion(channel2);
393179
- if (latest && !gte({ VERSION: "0.2.15", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
393180
- writeToStdout(`Update available: ${{ VERSION: "0.2.15", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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}
393272
+ if (latest && !gte({ VERSION: "0.2.17", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
393273
+ writeToStdout(`Update available: ${{ VERSION: "0.2.17", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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}
393181
393274
  `);
393182
393275
  writeToStdout(`
393183
393276
  `);
@@ -393193,8 +393286,8 @@ async function update() {
393193
393286
  writeToStdout(`Theus is managed by apk.
393194
393287
  `);
393195
393288
  const latest = await getLatestVersion(channel2);
393196
- if (latest && !gte({ VERSION: "0.2.15", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
393197
- writeToStdout(`Update available: ${{ VERSION: "0.2.15", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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}
393289
+ if (latest && !gte({ VERSION: "0.2.17", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
393290
+ writeToStdout(`Update available: ${{ VERSION: "0.2.17", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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}
393198
393291
  `);
393199
393292
  writeToStdout(`
393200
393293
  `);
@@ -393259,11 +393352,11 @@ async function update() {
393259
393352
  `);
393260
393353
  await gracefulShutdown(1);
393261
393354
  }
393262
- if (result.latestVersion === { VERSION: "0.2.15", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION) {
393263
- writeToStdout(source_default.green(`Theus is up to date (${{ VERSION: "0.2.15", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION})`) + `
393355
+ if (result.latestVersion === { VERSION: "0.2.17", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION) {
393356
+ writeToStdout(source_default.green(`Theus is up to date (${{ VERSION: "0.2.17", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION})`) + `
393264
393357
  `);
393265
393358
  } else {
393266
- writeToStdout(source_default.green(`Successfully updated from ${{ VERSION: "0.2.15", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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}`) + `
393359
+ writeToStdout(source_default.green(`Successfully updated from ${{ VERSION: "0.2.17", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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}`) + `
393267
393360
  `);
393268
393361
  await regenerateCompletionCache();
393269
393362
  }
@@ -393282,9 +393375,9 @@ async function update() {
393282
393375
  await removeInstalledSymlink();
393283
393376
  }
393284
393377
  logForDebugging("update: Checking npm registry for latest version");
393285
- logForDebugging(`update: Package URL: ${{ VERSION: "0.2.15", BUILD_TIME: "1970-01-01T00:00:00.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}`);
393378
+ logForDebugging(`update: Package URL: ${{ VERSION: "0.2.17", BUILD_TIME: "1970-01-01T00:00:00.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}`);
393286
393379
  const npmTag = channel2 === "stable" ? "stable" : "latest";
393287
- const npmCommand = `npm view ${{ VERSION: "0.2.15", BUILD_TIME: "1970-01-01T00:00:00.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`;
393380
+ const npmCommand = `npm view ${{ VERSION: "0.2.17", BUILD_TIME: "1970-01-01T00:00:00.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`;
393288
393381
  logForDebugging(`update: Running: ${npmCommand}`);
393289
393382
  const latestVersion = await getLatestVersion(channel2);
393290
393383
  logForDebugging(`update: Latest version from npm: ${latestVersion || "FAILED"}`);
@@ -393304,7 +393397,7 @@ async function update() {
393304
393397
  `);
393305
393398
  process.stderr.write(` \u2022 Corporate proxy/firewall blocking npm
393306
393399
  `);
393307
- if ({ VERSION: "0.2.15", BUILD_TIME: "1970-01-01T00:00:00.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.15", BUILD_TIME: "1970-01-01T00:00:00.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")) {
393400
+ if ({ VERSION: "0.2.17", BUILD_TIME: "1970-01-01T00:00:00.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.17", BUILD_TIME: "1970-01-01T00:00:00.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")) {
393308
393401
  process.stderr.write(` \u2022 Internal/development build not published to npm
393309
393402
  `);
393310
393403
  }
@@ -393316,19 +393409,19 @@ async function update() {
393316
393409
  `);
393317
393410
  process.stderr.write(` \u2022 Run with --debug flag for more details
393318
393411
  `);
393319
- const packageName = { VERSION: "0.2.15", BUILD_TIME: "1970-01-01T00:00:00.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");
393412
+ const packageName = { VERSION: "0.2.17", BUILD_TIME: "1970-01-01T00:00:00.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");
393320
393413
  process.stderr.write(` \u2022 Manually check: npm view ${packageName} version
393321
393414
  `);
393322
393415
  process.stderr.write(` \u2022 Check if you need to login: npm whoami
393323
393416
  `);
393324
393417
  await gracefulShutdown(1);
393325
393418
  }
393326
- if (gte({ VERSION: "0.2.15", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
393327
- writeToStdout(source_default.green(`Theus is up to date (${{ VERSION: "0.2.15", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION})`) + `
393419
+ if (gte({ VERSION: "0.2.17", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
393420
+ writeToStdout(source_default.green(`Theus is up to date (${{ VERSION: "0.2.17", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION})`) + `
393328
393421
  `);
393329
393422
  await gracefulShutdown(0);
393330
393423
  }
393331
- writeToStdout(`New version available: ${latestVersion} (current: ${{ VERSION: "0.2.15", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION})
393424
+ writeToStdout(`New version available: ${latestVersion} (current: ${{ VERSION: "0.2.17", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION})
393332
393425
  `);
393333
393426
  writeToStdout(`Installing update...
393334
393427
  `);
@@ -393373,7 +393466,7 @@ async function update() {
393373
393466
  logForDebugging(`update: Installation status: ${status2}`);
393374
393467
  switch (status2) {
393375
393468
  case "success":
393376
- writeToStdout(source_default.green(`Successfully updated from ${{ VERSION: "0.2.15", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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}`) + `
393469
+ writeToStdout(source_default.green(`Successfully updated from ${{ VERSION: "0.2.17", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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}`) + `
393377
393470
  `);
393378
393471
  await regenerateCompletionCache();
393379
393472
  break;
@@ -393383,7 +393476,7 @@ async function update() {
393383
393476
  if (useLocalUpdate) {
393384
393477
  process.stderr.write(`Try manually updating with:
393385
393478
  `);
393386
- process.stderr.write(` cd ~/.theus/local && npm update ${{ VERSION: "0.2.15", BUILD_TIME: "1970-01-01T00:00:00.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}
393479
+ process.stderr.write(` cd ~/.theus/local && npm update ${{ VERSION: "0.2.17", BUILD_TIME: "1970-01-01T00:00:00.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}
393387
393480
  `);
393388
393481
  } else {
393389
393482
  process.stderr.write(`Try running with sudo or fix npm permissions
@@ -393399,7 +393492,7 @@ async function update() {
393399
393492
  if (useLocalUpdate) {
393400
393493
  process.stderr.write(`Try manually updating with:
393401
393494
  `);
393402
- process.stderr.write(` cd ~/.theus/local && npm update ${{ VERSION: "0.2.15", BUILD_TIME: "1970-01-01T00:00:00.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}
393495
+ process.stderr.write(` cd ~/.theus/local && npm update ${{ VERSION: "0.2.17", BUILD_TIME: "1970-01-01T00:00:00.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}
393403
393496
  `);
393404
393497
  } else {
393405
393498
  process.stderr.write(`Or consider using native installation with: theus install
@@ -400301,7 +400394,7 @@ var init_sessionStorage = __esm(() => {
400301
400394
  init_settings2();
400302
400395
  init_slowOperations();
400303
400396
  init_uuid();
400304
- VERSION4 = { VERSION: "0.2.15", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION;
400397
+ VERSION4 = { VERSION: "0.2.17", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION;
400305
400398
  MAX_TOMBSTONE_REWRITE_BYTES = 50 * 1024 * 1024;
400306
400399
  SKIP_FIRST_PROMPT_PATTERN = /^(?:\s*<[a-z][\w-]*[\s>]|\[Request interrupted by user[^\]]*\])/;
400307
400400
  EPHEMERAL_PROGRESS_TYPES = new Set([
@@ -401506,7 +401599,7 @@ var init_filesystem = __esm(() => {
401506
401599
  });
401507
401600
  getBundledSkillsRoot = memoize_default(function getBundledSkillsRoot2() {
401508
401601
  const nonce = randomBytes21(16).toString("hex");
401509
- return join147(getTheusTempDir(), "bundled-skills", { VERSION: "0.2.15", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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);
401602
+ return join147(getTheusTempDir(), "bundled-skills", { VERSION: "0.2.17", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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);
401510
401603
  });
401511
401604
  getResolvedWorkingDirPaths = memoize_default(getPathsForPermissionCheck);
401512
401605
  });
@@ -406681,7 +406774,7 @@ function getSimpleDoingTasksSection() {
406681
406774
  ];
406682
406775
  const userHelpSubitems = [
406683
406776
  `/help: Get help with using Theus`,
406684
- `To give feedback, users should ${{ VERSION: "0.2.15", BUILD_TIME: "1970-01-01T00:00:00.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}`
406777
+ `To give feedback, users should ${{ VERSION: "0.2.17", BUILD_TIME: "1970-01-01T00:00:00.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}`
406685
406778
  ];
406686
406779
  const items = [
406687
406780
  `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.`,
@@ -407504,7 +407597,7 @@ function computeFingerprint(messageText, version3) {
407504
407597
  }
407505
407598
  function computeFingerprintFromMessages(messages) {
407506
407599
  const firstMessageText = extractFirstMessageText(messages);
407507
- return computeFingerprint(firstMessageText, { VERSION: "0.2.15", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION);
407600
+ return computeFingerprint(firstMessageText, { VERSION: "0.2.17", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION);
407508
407601
  }
407509
407602
  var FINGERPRINT_SALT = "59cf53e54c78";
407510
407603
  var init_fingerprint = () => {};
@@ -410028,7 +410121,7 @@ async function sideQuery(opts) {
410028
410121
  betas.push(STRUCTURED_OUTPUTS_BETA_HEADER);
410029
410122
  }
410030
410123
  const messageText = extractFirstUserMessageText(messages);
410031
- const fingerprint = computeFingerprint(messageText, { VERSION: "0.2.15", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION);
410124
+ const fingerprint = computeFingerprint(messageText, { VERSION: "0.2.17", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION);
410032
410125
  const attributionHeader = getAttributionHeader(fingerprint);
410033
410126
  const systemBlocks = [
410034
410127
  attributionHeader ? { type: "text", text: attributionHeader } : null,
@@ -410735,18 +410828,18 @@ class ExperimentalServerTasks {
410735
410828
  return this._server.cancelTask({ taskId }, options2);
410736
410829
  }
410737
410830
  }
410738
- var init_server2 = __esm(() => {
410831
+ var init_server = __esm(() => {
410739
410832
  init_types();
410740
410833
  });
410741
410834
 
410742
410835
  // node_modules/@modelcontextprotocol/sdk/dist/esm/server/index.js
410743
410836
  var Server;
410744
- var init_server3 = __esm(() => {
410837
+ var init_server2 = __esm(() => {
410745
410838
  init_protocol();
410746
410839
  init_types();
410747
410840
  init_ajv_provider();
410748
410841
  init_zod_compat();
410749
- init_server2();
410842
+ init_server();
410750
410843
  Server = class Server extends Protocol {
410751
410844
  constructor(_serverInfo, options2) {
410752
410845
  super(options2);
@@ -411331,7 +411424,7 @@ async function handleMemories(state) {
411331
411424
  async function runProjectContextMcpServer() {
411332
411425
  const projectRoot = process.env.THEUS_PROJECT_ROOT || process.cwd();
411333
411426
  const state = new ProjectContextState(projectRoot);
411334
- const server2 = new Server({ name: SERVER_NAME, version: { VERSION: "0.2.15", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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: {} } });
411427
+ const server2 = new Server({ name: SERVER_NAME, version: { VERSION: "0.2.17", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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: {} } });
411335
411428
  server2.setRequestHandler(ListToolsRequestSchema, async () => ({
411336
411429
  tools: TOOL_DEFINITIONS.map((t) => ({
411337
411430
  name: t.name,
@@ -411388,8 +411481,8 @@ async function runProjectContextMcpServer() {
411388
411481
  logToStderr("servidor MCP listo");
411389
411482
  }
411390
411483
  var SERVER_NAME = "theus-project-context", TOOL_DEFINITIONS;
411391
- var init_server4 = __esm(() => {
411392
- init_server3();
411484
+ var init_server3 = __esm(() => {
411485
+ init_server2();
411393
411486
  init_stdio2();
411394
411487
  init_types();
411395
411488
  init_indexer();
@@ -411928,8 +412021,8 @@ var num = (v, fallback = NaN) => {
411928
412021
  const n3 = typeof v === "number" ? v : Number.parseFloat(String(v));
411929
412022
  return Number.isFinite(n3) ? n3 : fallback;
411930
412023
  }, clamp3 = (v, lo, hi) => Math.min(Math.max(v, lo), hi), COORD, TOOLS;
411931
- var init_server5 = __esm(() => {
411932
- init_server3();
412024
+ var init_server4 = __esm(() => {
412025
+ init_server2();
411933
412026
  init_stdio2();
411934
412027
  init_types();
411935
412028
  init_macos();
@@ -413142,7 +413235,7 @@ var init_main3 = __esm(() => {
413142
413235
 
413143
413236
  // bridge/bridgeUI.ts
413144
413237
  async function generateQr(url3) {
413145
- const qr = await $toString(url3, QR_OPTIONS);
413238
+ const qr = await import_qrcode3.toString(url3, QR_OPTIONS);
413146
413239
  return qr.split(`
413147
413240
  `).filter((line) => line.length > 0);
413148
413241
  }
@@ -413311,7 +413404,7 @@ function createBridgeLogger(options2) {
413311
413404
  connectUrl = buildBridgeConnectUrl(environmentId, cachedIngressUrl);
413312
413405
  regenerateQr(connectUrl);
413313
413406
  if (verbose) {
413314
- write(source_default.dim(`Remote Control`) + ` v${{ VERSION: "0.2.15", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION}
413407
+ write(source_default.dim(`Remote Control`) + ` v${{ VERSION: "0.2.17", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION}
413315
413408
  `);
413316
413409
  }
413317
413410
  if (verbose) {
@@ -413490,14 +413583,14 @@ function createBridgeLogger(options2) {
413490
413583
  }
413491
413584
  };
413492
413585
  }
413493
- var QR_OPTIONS;
413586
+ var import_qrcode3, QR_OPTIONS;
413494
413587
  var init_bridgeUI = __esm(() => {
413495
413588
  init_source();
413496
- init_server();
413497
413589
  init_figures2();
413498
413590
  init_stringWidth();
413499
413591
  init_debug();
413500
413592
  init_bridgeStatusUtil();
413593
+ import_qrcode3 = __toESM(require_server(), 1);
413501
413594
  QR_OPTIONS = {
413502
413595
  type: "utf8",
413503
413596
  errorCorrectionLevel: "L",
@@ -414284,7 +414377,7 @@ function appendToLog(path19, message) {
414284
414377
  cwd: getFsImplementation().cwd(),
414285
414378
  userType: process.env.USER_TYPE,
414286
414379
  sessionId: getSessionId(),
414287
- version: { VERSION: "0.2.15", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
414380
+ version: { VERSION: "0.2.17", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
414288
414381
  };
414289
414382
  getLogWriter(path19).write(messageWithTimestamp);
414290
414383
  }
@@ -415554,7 +415647,7 @@ Spawn mode for this project:
415554
415647
  const api2 = createBridgeApiClient({
415555
415648
  baseUrl,
415556
415649
  getAccessToken: getBridgeAccessToken2,
415557
- runnerVersion: { VERSION: "0.2.15", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
415650
+ runnerVersion: { VERSION: "0.2.17", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
415558
415651
  onDebug: logForDebugging,
415559
415652
  onAuth401: handleOAuth401Error2,
415560
415653
  getTrustedDeviceToken
@@ -415792,7 +415885,7 @@ async function runBridgeHeadless(opts, signal) {
415792
415885
  const api2 = createBridgeApiClient({
415793
415886
  baseUrl,
415794
415887
  getAccessToken: opts.getAccessToken,
415795
- runnerVersion: { VERSION: "0.2.15", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
415888
+ runnerVersion: { VERSION: "0.2.17", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
415796
415889
  onDebug: log2,
415797
415890
  onAuth401: opts.onAuth401,
415798
415891
  getTrustedDeviceToken
@@ -419856,7 +419949,7 @@ function buildSystemInitMessage(inputs) {
419856
419949
  slash_commands: inputs.commands.filter((c5) => c5.userInvocable !== false).map((c5) => c5.name),
419857
419950
  apiKeySource: getTheusApiKeyWithSource().source,
419858
419951
  betas: getSdkBetas(),
419859
- theus_code_version: { VERSION: "0.2.15", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
419952
+ theus_code_version: { VERSION: "0.2.17", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
419860
419953
  output_style: outputStyle2,
419861
419954
  agents: inputs.agents.map((agent) => agent.agentType),
419862
419955
  skills: inputs.skills.filter((s) => s.userInvocable !== false).map((skill) => skill.name),
@@ -419896,8 +419989,8 @@ async function getEnvLessBridgeConfig() {
419896
419989
  }
419897
419990
  async function checkEnvLessBridgeMinVersion() {
419898
419991
  const cfg = await getEnvLessBridgeConfig();
419899
- if (cfg.min_version && lt({ VERSION: "0.2.15", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
419900
- return `Your version of Theus (${{ VERSION: "0.2.15", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.
419992
+ if (cfg.min_version && lt({ VERSION: "0.2.17", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
419993
+ return `Your version of Theus (${{ VERSION: "0.2.17", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.
419901
419994
  Version ${cfg.min_version} or higher is required. Run \`theus update\` to update.`;
419902
419995
  }
419903
419996
  return null;
@@ -422220,7 +422313,7 @@ async function initBridgeCore(params) {
422220
422313
  const rawApi = createBridgeApiClient({
422221
422314
  baseUrl,
422222
422315
  getAccessToken,
422223
- runnerVersion: { VERSION: "0.2.15", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
422316
+ runnerVersion: { VERSION: "0.2.17", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
422224
422317
  onDebug: logForDebugging,
422225
422318
  onAuth401,
422226
422319
  getTrustedDeviceToken
@@ -439309,7 +439402,7 @@ var init_useVoiceEnabled = __esm(() => {
439309
439402
  function getSemverPart(version3) {
439310
439403
  return `${import_semver14.major(version3, { loose: true })}.${import_semver14.minor(version3, { loose: true })}.${import_semver14.patch(version3, { loose: true })}`;
439311
439404
  }
439312
- function useUpdateNotification(updatedVersion, initialVersion = { VERSION: "0.2.15", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION) {
439405
+ function useUpdateNotification(updatedVersion, initialVersion = { VERSION: "0.2.17", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION) {
439313
439406
  const [lastNotifiedSemver, setLastNotifiedSemver] = import_react218.useState(() => getSemverPart(initialVersion));
439314
439407
  if (!updatedVersion) {
439315
439408
  return null;
@@ -439349,7 +439442,7 @@ function AutoUpdater({
439349
439442
  return;
439350
439443
  }
439351
439444
  if (false) {}
439352
- const currentVersion = { VERSION: "0.2.15", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION;
439445
+ const currentVersion = { VERSION: "0.2.17", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION;
439353
439446
  const channel2 = getInitialSettings()?.autoUpdatesChannel ?? "latest";
439354
439447
  let latestVersion = await getLatestVersion(channel2);
439355
439448
  const isDisabled2 = isAutoUpdaterDisabled();
@@ -439485,7 +439578,7 @@ function AutoUpdater({
439485
439578
  " ",
439486
439579
  /* @__PURE__ */ jsx_runtime390.jsx(ThemedText, {
439487
439580
  bold: true,
439488
- children: hasLocalInstall ? `cd ~/.theus/local && npm update ${{ VERSION: "0.2.15", BUILD_TIME: "1970-01-01T00:00:00.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.15", BUILD_TIME: "1970-01-01T00:00:00.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}`
439581
+ children: hasLocalInstall ? `cd ~/.theus/local && npm update ${{ VERSION: "0.2.17", BUILD_TIME: "1970-01-01T00:00:00.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.17", BUILD_TIME: "1970-01-01T00:00:00.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}`
439489
439582
  })
439490
439583
  ]
439491
439584
  })
@@ -439562,12 +439655,12 @@ function NativeAutoUpdater({
439562
439655
  logEvent("tengu_native_auto_updater_start", {});
439563
439656
  try {
439564
439657
  const maxVersion = await getMaxVersion();
439565
- if (maxVersion && gt({ VERSION: "0.2.15", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
439658
+ if (maxVersion && gt({ VERSION: "0.2.17", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
439566
439659
  const msg = await getMaxVersionMessage();
439567
439660
  setMaxVersionIssue(msg ?? "affects your version");
439568
439661
  }
439569
439662
  const result = await installLatest(channel2);
439570
- const currentVersion = { VERSION: "0.2.15", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION;
439663
+ const currentVersion = { VERSION: "0.2.17", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION;
439571
439664
  const latencyMs = Date.now() - startTime2;
439572
439665
  if (result.lockFailed) {
439573
439666
  logEvent("tengu_native_auto_updater_lock_contention", {
@@ -439704,17 +439797,17 @@ function PackageManagerAutoUpdater(t0) {
439704
439797
  const maxVersion = await getMaxVersion();
439705
439798
  if (maxVersion && latest && gt(latest, maxVersion)) {
439706
439799
  logForDebugging(`PackageManagerAutoUpdater: maxVersion ${maxVersion} is set, capping update from ${latest} to ${maxVersion}`);
439707
- if (gte({ VERSION: "0.2.15", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
439708
- logForDebugging(`PackageManagerAutoUpdater: current version ${{ VERSION: "0.2.15", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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`);
439800
+ if (gte({ VERSION: "0.2.17", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
439801
+ logForDebugging(`PackageManagerAutoUpdater: current version ${{ VERSION: "0.2.17", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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`);
439709
439802
  setUpdateAvailable(false);
439710
439803
  return;
439711
439804
  }
439712
439805
  latest = maxVersion;
439713
439806
  }
439714
- const hasUpdate = latest && !gte({ VERSION: "0.2.15", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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);
439807
+ const hasUpdate = latest && !gte({ VERSION: "0.2.17", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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);
439715
439808
  setUpdateAvailable(!!hasUpdate);
439716
439809
  if (hasUpdate) {
439717
- logForDebugging(`PackageManagerAutoUpdater: Update available ${{ VERSION: "0.2.15", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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}`);
439810
+ logForDebugging(`PackageManagerAutoUpdater: Update available ${{ VERSION: "0.2.17", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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}`);
439718
439811
  }
439719
439812
  };
439720
439813
  $2[0] = t1;
@@ -439748,7 +439841,7 @@ function PackageManagerAutoUpdater(t0) {
439748
439841
  wrap: "truncate",
439749
439842
  children: [
439750
439843
  "currentVersion: ",
439751
- { VERSION: "0.2.15", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
439844
+ { VERSION: "0.2.17", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
439752
439845
  ]
439753
439846
  });
439754
439847
  $2[3] = verbose;
@@ -441309,7 +441402,7 @@ function baseToString2(value) {
441309
441402
  const result = value + "";
441310
441403
  return result == "0" && 1 / value == -Infinity ? "-0" : result;
441311
441404
  }
441312
- function toString6(value) {
441405
+ function toString5(value) {
441313
441406
  return value == null ? "" : baseToString2(value);
441314
441407
  }
441315
441408
  function isString2(value) {
@@ -441391,9 +441484,9 @@ function get2(obj, path20) {
441391
441484
  return;
441392
441485
  if (index === path21.length - 1 && (isString2(value) || isNumber2(value) || isBoolean2(value) || typeof value === "bigint"))
441393
441486
  list2.push(arrayIndex !== undefined ? {
441394
- v: toString6(value),
441487
+ v: toString5(value),
441395
441488
  i: arrayIndex
441396
- } : toString6(value));
441489
+ } : toString5(value));
441397
441490
  else if (isArray3(value)) {
441398
441491
  arr = true;
441399
441492
  for (let i3 = 0, len = value.length;i3 < len; i3 += 1)
@@ -442051,7 +442144,7 @@ var INCORRECT_INDEX_TYPE = "Incorrect 'index' type", INVALID_DOC_INDEX = "Invali
442051
442144
  subRecords.push(subRecord);
442052
442145
  }
442053
442146
  } else if (isDefined2(item.v)) {
442054
- const text2 = isString2(item.v) ? item.v : toString6(item.v);
442147
+ const text2 = isString2(item.v) ? item.v : toString5(item.v);
442055
442148
  if (!isBlank(text2)) {
442056
442149
  const subRecord = {
442057
442150
  v: text2,
@@ -444797,7 +444890,7 @@ function BridgeDialog(t0) {
444797
444890
  setQrText("");
444798
444891
  return;
444799
444892
  }
444800
- $toString(displayUrl, {
444893
+ import_qrcode4.toString(displayUrl, {
444801
444894
  type: "utf8",
444802
444895
  errorCorrectionLevel: "L",
444803
444896
  small: true
@@ -445191,10 +445284,9 @@ function _temp274(s_0) {
445191
445284
  function _temp178(s) {
445192
445285
  return s.replBridgeConnected;
445193
445286
  }
445194
- var import_react233, jsx_runtime402;
445287
+ var import_qrcode4, import_react233, jsx_runtime402;
445195
445288
  var init_BridgeDialog = __esm(() => {
445196
445289
  init_compiler_runtime();
445197
- init_server();
445198
445290
  init_state();
445199
445291
  init_bridgeStatusUtil();
445200
445292
  init_figures2();
@@ -445205,6 +445297,7 @@ var init_BridgeDialog = __esm(() => {
445205
445297
  init_config2();
445206
445298
  init_git();
445207
445299
  init_Dialog();
445300
+ import_qrcode4 = __toESM(require_server(), 1);
445208
445301
  import_react233 = __toESM(require_react(), 1);
445209
445302
  jsx_runtime402 = __toESM(require_jsx_runtime(), 1);
445210
445303
  });
@@ -447621,7 +447714,7 @@ function buildStatusLineCommandInput(permissionMode, exceeds200kTokens, settings
447621
447714
  project_dir: getOriginalCwd(),
447622
447715
  added_dirs: addedDirs
447623
447716
  },
447624
- version: { VERSION: "0.2.15", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
447717
+ version: { VERSION: "0.2.17", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
447625
447718
  output_style: {
447626
447719
  name: outputStyleName
447627
447720
  },
@@ -458967,7 +459060,7 @@ async function submitTranscriptShare(messages, trigger, appearanceId) {
458967
459060
  } catch {}
458968
459061
  const data = {
458969
459062
  trigger,
458970
- version: { VERSION: "0.2.15", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
459063
+ version: { VERSION: "0.2.17", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
458971
459064
  platform: process.platform,
458972
459065
  transcript,
458973
459066
  subagentTranscripts: Object.keys(subagentTranscripts).length > 0 ? subagentTranscripts : undefined,
@@ -471918,7 +472011,7 @@ function Onboarding({
471918
472011
  flexDirection: "column",
471919
472012
  children: [
471920
472013
  /* @__PURE__ */ jsx_runtime465.jsx(TheusBanner, {
471921
- version: { VERSION: "0.2.15", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
472014
+ version: { VERSION: "0.2.17", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
471922
472015
  }),
471923
472016
  /* @__PURE__ */ jsx_runtime465.jsxs(ThemedBox_default, {
471924
472017
  flexDirection: "column",
@@ -472789,7 +472882,7 @@ function completeOnboarding() {
472789
472882
  saveGlobalConfig((current) => ({
472790
472883
  ...current,
472791
472884
  hasCompletedOnboarding: true,
472792
- lastOnboardingVersion: { VERSION: "0.2.15", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
472885
+ lastOnboardingVersion: { VERSION: "0.2.17", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
472793
472886
  }));
472794
472887
  }
472795
472888
  function showDialog(root2, renderer) {
@@ -483517,7 +483610,7 @@ async function startMCPServer(cwd3, debug2, verbose) {
483517
483610
  setCwd(cwd3);
483518
483611
  const server2 = new Server({
483519
483612
  name: "theus/tengu",
483520
- version: { VERSION: "0.2.15", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
483613
+ version: { VERSION: "0.2.17", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
483521
483614
  }, {
483522
483615
  capabilities: {
483523
483616
  tools: {}
@@ -483621,7 +483714,7 @@ async function startMCPServer(cwd3, debug2, verbose) {
483621
483714
  }
483622
483715
  var MCP_COMMANDS;
483623
483716
  var init_mcp4 = __esm(() => {
483624
- init_server3();
483717
+ init_server2();
483625
483718
  init_stdio2();
483626
483719
  init_types();
483627
483720
  init_AppStateStore();
@@ -484959,7 +485052,7 @@ async function setupTokenHandler(root2) {
484959
485052
  gap: 1,
484960
485053
  children: [
484961
485054
  /* @__PURE__ */ jsx_runtime482.jsx(TheusBanner, {
484962
- version: { VERSION: "0.2.15", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
485055
+ version: { VERSION: "0.2.17", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
484963
485056
  }),
484964
485057
  showAuthWarning && /* @__PURE__ */ jsx_runtime482.jsxs(ThemedBox_default, {
484965
485058
  flexDirection: "column",
@@ -486382,7 +486475,7 @@ ${customInstructions}` : customInstructions;
486382
486475
  }
486383
486476
  }
486384
486477
  logForDiagnosticsNoPII("info", "started", {
486385
- version: { VERSION: "0.2.15", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
486478
+ version: { VERSION: "0.2.17", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
486386
486479
  is_native_binary: isInBundledMode()
486387
486480
  });
486388
486481
  registerCleanup(async () => {
@@ -487166,7 +487259,7 @@ Usage: theus --remote "your task description"`, () => gracefulShutdown(1));
487166
487259
  pendingHookMessages
487167
487260
  }, renderAndRun);
487168
487261
  }
487169
- }).version(`${{ VERSION: "0.2.15", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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");
487262
+ }).version(`${{ VERSION: "0.2.17", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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");
487170
487263
  program2.option("-w, --worktree [name]", "Crea un nuevo worktree de git para esta sesi\xF3n (opcionalmente indica un nombre)");
487171
487264
  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.");
487172
487265
  if (canUserConfigureAdvisor()) {
@@ -487190,7 +487283,10 @@ Usage: theus --remote "your task description"`, () => gracefulShutdown(1));
487190
487283
  program2.addOption(new Option("--sdk-url <url>", "Use remote WebSocket endpoint for SDK I/O streaming (only with -p and stream-json format)").hideHelp());
487191
487284
  program2.addOption(new Option("--teleport [session]", "Resume a teleport session, optionally specify session ID").hideHelp());
487192
487285
  program2.addOption(new Option("--remote [description]", "Create a remote session with the given description").hideHelp());
487193
- if (false) {}
487286
+ if (process.env.THEUS_BRIDGE === "1") {
487287
+ program2.addOption(new Option("--remote-control [name]", "Start an interactive session with Remote Control enabled (optionally named)").argParser((value) => value || true).hideHelp());
487288
+ program2.addOption(new Option("--rc [name]", "Alias for --remote-control").argParser((value) => value || true).hideHelp());
487289
+ }
487194
487290
  if (false) {}
487195
487291
  profileCheckpoint("run_main_options_built");
487196
487292
  const isPrintMode = process.argv.includes("-p") || process.argv.includes("--print");
@@ -487373,7 +487469,16 @@ Usage: theus --remote "your task description"`, () => gracefulShutdown(1));
487373
487469
  process.exit(0);
487374
487470
  });
487375
487471
  if (false) {}
487376
- if (false) {}
487472
+ if (process.env.THEUS_BRIDGE === "1") {
487473
+ program2.command("remote-control", {
487474
+ hidden: true
487475
+ }).alias("rc").description("Connect your local environment for remote-control sessions via theus.pe/code").action(async () => {
487476
+ const {
487477
+ bridgeMain: bridgeMain2
487478
+ } = await Promise.resolve().then(() => (init_bridgeMain(), exports_bridgeMain));
487479
+ await bridgeMain2(process.argv.slice(3));
487480
+ });
487481
+ }
487377
487482
  if (false) {}
487378
487483
  program2.command("doctor").description("Comprueba el estado del actualizador autom\xE1tico de Theus. Nota: se omite el di\xE1logo de confianza del espacio de trabajo y se inician los servidores stdio de .mcp.json para las comprobaciones. Usa este comando solo en directorios de confianza.").action(async () => {
487379
487484
  const [{
@@ -487680,7 +487785,7 @@ if (false) {}
487680
487785
  async function main2() {
487681
487786
  const args = process.argv.slice(2);
487682
487787
  if (args.length === 1 && (args[0] === "--version" || args[0] === "-v" || args[0] === "-V")) {
487683
- console.log(`${{ VERSION: "0.2.15", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)`);
487788
+ console.log(`${{ VERSION: "0.2.17", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)`);
487684
487789
  return;
487685
487790
  }
487686
487791
  const {
@@ -487706,14 +487811,14 @@ async function main2() {
487706
487811
  profileCheckpoint2("cli_project_context_mcp_path");
487707
487812
  const {
487708
487813
  runProjectContextMcpServer: runProjectContextMcpServer2
487709
- } = await Promise.resolve().then(() => (init_server4(), exports_server));
487814
+ } = await Promise.resolve().then(() => (init_server3(), exports_server));
487710
487815
  await runProjectContextMcpServer2();
487711
487816
  return;
487712
487817
  } else if (process.argv[2] === "--theus-computer-use-mcp") {
487713
487818
  profileCheckpoint2("cli_theus_computer_use_mcp_path");
487714
487819
  const {
487715
487820
  runComputerUseMcpServer: runComputerUseMcpServer2
487716
- } = await Promise.resolve().then(() => (init_server5(), exports_server2));
487821
+ } = await Promise.resolve().then(() => (init_server4(), exports_server2));
487717
487822
  await runComputerUseMcpServer2();
487718
487823
  return;
487719
487824
  } else if (process.argv[2] === "--theus-computer-use-selftest") {