theus-cli 0.2.39 → 0.2.41

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 +398 -240
  2. package/package.json +1 -1
package/cli.js CHANGED
@@ -58324,7 +58324,7 @@ async function _executeApiKeyHelper(isNonInteractiveSession) {
58324
58324
  if (isApiKeyHelperFromProjectOrLocalSettings()) {
58325
58325
  const hasTrust = checkHasTrustDialogAccepted();
58326
58326
  if (!hasTrust && !isNonInteractiveSession) {
58327
- const error40 = new Error(`Security: apiKeyHelper executed before workspace trust is confirmed. If you see this message, post in ${{ VERSION: "0.2.39", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.FEEDBACK_CHANNEL}.`);
58327
+ const error40 = new Error(`Security: apiKeyHelper executed before workspace trust is confirmed. If you see this message, post in ${{ VERSION: "0.2.41", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.FEEDBACK_CHANNEL}.`);
58328
58328
  logAntError("apiKeyHelper invoked before trust check", error40);
58329
58329
  logEvent("tengu_apiKeyHelper_missing_trust11", {});
58330
58330
  return null;
@@ -58368,7 +58368,7 @@ async function runAwsAuthRefresh() {
58368
58368
  if (isAwsAuthRefreshFromProjectSettings()) {
58369
58369
  const hasTrust = checkHasTrustDialogAccepted();
58370
58370
  if (!hasTrust && !getIsNonInteractiveSession()) {
58371
- const error40 = new Error(`Security: awsAuthRefresh executed before workspace trust is confirmed. If you see this message, post in ${{ VERSION: "0.2.39", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.FEEDBACK_CHANNEL}.`);
58371
+ const error40 = new Error(`Security: awsAuthRefresh executed before workspace trust is confirmed. If you see this message, post in ${{ VERSION: "0.2.41", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.FEEDBACK_CHANNEL}.`);
58372
58372
  logAntError("awsAuthRefresh invoked before trust check", error40);
58373
58373
  logEvent("tengu_awsAuthRefresh_missing_trust", {});
58374
58374
  return false;
@@ -58428,7 +58428,7 @@ async function getAwsCredsFromCredentialExport() {
58428
58428
  if (isAwsCredentialExportFromProjectSettings()) {
58429
58429
  const hasTrust = checkHasTrustDialogAccepted();
58430
58430
  if (!hasTrust && !getIsNonInteractiveSession()) {
58431
- const error40 = new Error(`Security: awsCredentialExport executed before workspace trust is confirmed. If you see this message, post in ${{ VERSION: "0.2.39", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.FEEDBACK_CHANNEL}.`);
58431
+ const error40 = new Error(`Security: awsCredentialExport executed before workspace trust is confirmed. If you see this message, post in ${{ VERSION: "0.2.41", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.FEEDBACK_CHANNEL}.`);
58432
58432
  logAntError("awsCredentialExport invoked before trust check", error40);
58433
58433
  logEvent("tengu_awsCredentialExport_missing_trust", {});
58434
58434
  return null;
@@ -58513,7 +58513,7 @@ async function runGcpAuthRefresh() {
58513
58513
  if (isGcpAuthRefreshFromProjectSettings()) {
58514
58514
  const hasTrust = checkHasTrustDialogAccepted();
58515
58515
  if (!hasTrust && !getIsNonInteractiveSession()) {
58516
- const error40 = new Error(`Security: gcpAuthRefresh executed before workspace trust is confirmed. If you see this message, post in ${{ VERSION: "0.2.39", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.FEEDBACK_CHANNEL}.`);
58516
+ const error40 = new Error(`Security: gcpAuthRefresh executed before workspace trust is confirmed. If you see this message, post in ${{ VERSION: "0.2.41", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.FEEDBACK_CHANNEL}.`);
58517
58517
  logAntError("gcpAuthRefresh invoked before trust check", error40);
58518
58518
  logEvent("tengu_gcpAuthRefresh_missing_trust", {});
58519
58519
  return false;
@@ -59208,7 +59208,7 @@ var init_auth = __esm(() => {
59208
59208
 
59209
59209
  // utils/userAgent.ts
59210
59210
  function getTheusCodeUserAgent() {
59211
- return `theus-code/${{ VERSION: "0.2.39", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION}`;
59211
+ return `theus-code/${{ VERSION: "0.2.41", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION}`;
59212
59212
  }
59213
59213
 
59214
59214
  // utils/workloadContext.ts
@@ -59230,7 +59230,7 @@ function getUserAgent() {
59230
59230
  const clientApp = process.env.THEUS_AGENT_SDK_CLIENT_APP ? `, client-app/${process.env.THEUS_AGENT_SDK_CLIENT_APP}` : "";
59231
59231
  const workload = getWorkload();
59232
59232
  const workloadSuffix = workload ? `, workload/${workload}` : "";
59233
- return `theus-cli/${{ VERSION: "0.2.39", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION} (${process.env.USER_TYPE}, ${process.env.THEUS_CODE_ENTRYPOINT ?? "cli"}${agentSdkVersion}${clientApp}${workloadSuffix})`;
59233
+ return `theus-cli/${{ VERSION: "0.2.41", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION} (${process.env.USER_TYPE}, ${process.env.THEUS_CODE_ENTRYPOINT ?? "cli"}${agentSdkVersion}${clientApp}${workloadSuffix})`;
59234
59234
  }
59235
59235
  function getMCPUserAgent() {
59236
59236
  const parts = [];
@@ -59244,7 +59244,7 @@ function getMCPUserAgent() {
59244
59244
  parts.push(`client-app/${process.env.THEUS_AGENT_SDK_CLIENT_APP}`);
59245
59245
  }
59246
59246
  const suffix = parts.length > 0 ? ` (${parts.join(", ")})` : "";
59247
- return `theus-code/${{ VERSION: "0.2.39", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION}${suffix}`;
59247
+ return `theus-code/${{ VERSION: "0.2.41", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION}${suffix}`;
59248
59248
  }
59249
59249
  function getWebFetchUserAgent() {
59250
59250
  return `Theus-User (${getTheusCodeUserAgent()}; +https://support.theus.pe/)`;
@@ -59382,7 +59382,7 @@ var init_user = __esm(() => {
59382
59382
  deviceId,
59383
59383
  sessionId: getSessionId(),
59384
59384
  email: getEmail(),
59385
- appVersion: { VERSION: "0.2.39", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
59385
+ appVersion: { VERSION: "0.2.41", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
59386
59386
  platform: getHostPlatformForAnalytics(),
59387
59387
  organizationUuid,
59388
59388
  accountUuid,
@@ -61097,7 +61097,7 @@ var init_metadata = __esm(() => {
61097
61097
  COMPOUND_OPERATOR_REGEX = /\s*(?:&&|\|\||[;|])\s*/;
61098
61098
  WHITESPACE_REGEX = /\s+/;
61099
61099
  getVersionBase = memoize_default(() => {
61100
- const match = { VERSION: "0.2.39", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION.match(/^\d+\.\d+\.\d+(?:-[a-z]+)?/);
61100
+ const match = { VERSION: "0.2.41", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION.match(/^\d+\.\d+\.\d+(?:-[a-z]+)?/);
61101
61101
  return match ? match[0] : undefined;
61102
61102
  });
61103
61103
  buildEnvContext = memoize_default(async () => {
@@ -61137,9 +61137,9 @@ var init_metadata = __esm(() => {
61137
61137
  isGithubAction: isEnvTruthy(process.env.GITHUB_ACTIONS),
61138
61138
  isTheusCodeAction: isEnvTruthy(process.env.THEUS_CODE_ACTION),
61139
61139
  isTheusAiAuth: isTheusAISubscriber(),
61140
- version: { VERSION: "0.2.39", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
61140
+ version: { VERSION: "0.2.41", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
61141
61141
  versionBase: getVersionBase(),
61142
- buildTime: { VERSION: "0.2.39", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.BUILD_TIME,
61142
+ buildTime: { VERSION: "0.2.41", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.BUILD_TIME,
61143
61143
  deploymentEnvironment: env3.detectDeploymentEnvironment(),
61144
61144
  ...isEnvTruthy(process.env.GITHUB_ACTIONS) && {
61145
61145
  githubEventName: process.env.GITHUB_EVENT_NAME,
@@ -61805,7 +61805,7 @@ function initialize1PEventLogging() {
61805
61805
  const platform2 = getPlatform();
61806
61806
  const attributes = {
61807
61807
  [ATTR_SERVICE_NAME]: "theus-code",
61808
- [ATTR_SERVICE_VERSION]: { VERSION: "0.2.39", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
61808
+ [ATTR_SERVICE_VERSION]: { VERSION: "0.2.41", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
61809
61809
  };
61810
61810
  if (platform2 === "wsl") {
61811
61811
  const wslVersion = getWslVersion();
@@ -61832,7 +61832,7 @@ function initialize1PEventLogging() {
61832
61832
  })
61833
61833
  ]
61834
61834
  });
61835
- firstPartyEventLogger = firstPartyEventLoggerProvider.getLogger("com.theus.theus_code.events", { VERSION: "0.2.39", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION);
61835
+ firstPartyEventLogger = firstPartyEventLoggerProvider.getLogger("com.theus.theus_code.events", { VERSION: "0.2.41", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION);
61836
61836
  }
61837
61837
  async function reinitialize1PEventLoggingIfConfigChanged() {
61838
61838
  if (!is1PEventLoggingEnabled() || !firstPartyEventLoggerProvider) {
@@ -63703,7 +63703,7 @@ function getAttributionHeader(fingerprint) {
63703
63703
  if (!isAttributionHeaderEnabled()) {
63704
63704
  return "";
63705
63705
  }
63706
- const version2 = `${{ VERSION: "0.2.39", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION}.${fingerprint}`;
63706
+ const version2 = `${{ VERSION: "0.2.41", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION}.${fingerprint}`;
63707
63707
  const entrypoint = process.env.THEUS_CODE_ENTRYPOINT ?? "unknown";
63708
63708
  const cch = "";
63709
63709
  const workload = getWorkload();
@@ -107814,7 +107814,7 @@ Complete the user's request by providing accurate, documentation-based guidance.
107814
107814
  }
107815
107815
  function getFeedbackGuideline() {
107816
107816
  if (isUsing3PServices()) {
107817
- return `- When you cannot find an answer or the feature doesn't exist, direct the user to ${{ VERSION: "0.2.39", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.ISSUES_EXPLAINER}`;
107817
+ return `- When you cannot find an answer or the feature doesn't exist, direct the user to ${{ VERSION: "0.2.41", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.ISSUES_EXPLAINER}`;
107818
107818
  }
107819
107819
  return "- When you cannot find an answer or the feature doesn't exist, direct the user to use /feedback to report a feature request or bug";
107820
107820
  }
@@ -166523,7 +166523,7 @@ function getTelemetryAttributes() {
166523
166523
  attributes["session.id"] = sessionId;
166524
166524
  }
166525
166525
  if (shouldIncludeAttribute("OTEL_METRICS_INCLUDE_VERSION")) {
166526
- attributes["app.version"] = { VERSION: "0.2.39", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION;
166526
+ attributes["app.version"] = { VERSION: "0.2.41", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION;
166527
166527
  }
166528
166528
  const oauthAccount = getOauthAccountInfo();
166529
166529
  if (oauthAccount) {
@@ -202589,7 +202589,7 @@ function getInstallationEnv() {
202589
202589
  return;
202590
202590
  }
202591
202591
  function getTheusCodeVersion() {
202592
- return { VERSION: "0.2.39", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION;
202592
+ return { VERSION: "0.2.41", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION;
202593
202593
  }
202594
202594
  async function getInstalledVSCodeExtensionVersion(command) {
202595
202595
  const { stdout } = await execFileNoThrow(command, ["--list-extensions", "--show-versions"], {
@@ -204107,7 +204107,7 @@ async function getMcpHeadersFromHelper(serverName, config2) {
204107
204107
  if ("scope" in config2 && isMcpServerFromProjectOrLocalSettings(config2) && !getIsNonInteractiveSession()) {
204108
204108
  const hasTrust = checkHasTrustDialogAccepted();
204109
204109
  if (!hasTrust) {
204110
- 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.39", BUILD_TIME: "1970-01-01T00:00:00.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}.`);
204110
+ 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.41", BUILD_TIME: "1970-01-01T00:00:00.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}.`);
204111
204111
  logAntError("MCP headersHelper invoked before trust check", error40);
204112
204112
  logEvent("tengu_mcp_headersHelper_missing_trust", {});
204113
204113
  return null;
@@ -205317,7 +205317,7 @@ async function setupSdkMcpClients(sdkMcpConfigs, sendMcpMessage) {
205317
205317
  const client2 = new Client({
205318
205318
  name: "theus-code",
205319
205319
  title: "Theus",
205320
- version: { VERSION: "0.2.39", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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",
205320
+ version: { VERSION: "0.2.41", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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",
205321
205321
  description: "Theus's agentic coding tool",
205322
205322
  websiteUrl: PRODUCT_URL
205323
205323
  }, {
@@ -205671,7 +205671,7 @@ var init_client5 = __esm(() => {
205671
205671
  const client2 = new Client({
205672
205672
  name: "theus-code",
205673
205673
  title: "Theus",
205674
- version: { VERSION: "0.2.39", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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",
205674
+ version: { VERSION: "0.2.41", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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",
205675
205675
  description: "Theus's agentic coding tool",
205676
205676
  websiteUrl: PRODUCT_URL
205677
205677
  }, {
@@ -216249,7 +216249,7 @@ async function initializeBetaTracing(resource) {
216249
216249
  });
216250
216250
  logs.setGlobalLoggerProvider(loggerProvider);
216251
216251
  setLoggerProvider(loggerProvider);
216252
- const eventLogger = logs.getLogger("com.theus.theus_code.events", { VERSION: "0.2.39", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION);
216252
+ const eventLogger = logs.getLogger("com.theus.theus_code.events", { VERSION: "0.2.41", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION);
216253
216253
  setEventLogger(eventLogger);
216254
216254
  process.on("beforeExit", async () => {
216255
216255
  await loggerProvider?.forceFlush();
@@ -216289,7 +216289,7 @@ async function initializeTelemetry() {
216289
216289
  const platform4 = getPlatform();
216290
216290
  const baseAttributes = {
216291
216291
  [ATTR_SERVICE_NAME]: "theus-code",
216292
- [ATTR_SERVICE_VERSION]: { VERSION: "0.2.39", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
216292
+ [ATTR_SERVICE_VERSION]: { VERSION: "0.2.41", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
216293
216293
  };
216294
216294
  if (platform4 === "wsl") {
216295
216295
  const wslVersion = getWslVersion();
@@ -216334,7 +216334,7 @@ async function initializeTelemetry() {
216334
216334
  } catch {}
216335
216335
  };
216336
216336
  registerCleanup(shutdownTelemetry2);
216337
- return meterProvider2.getMeter("com.theus.theus_code", { VERSION: "0.2.39", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION);
216337
+ return meterProvider2.getMeter("com.theus.theus_code", { VERSION: "0.2.41", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION);
216338
216338
  }
216339
216339
  const meterProvider = new MeterProvider({
216340
216340
  resource,
@@ -216354,7 +216354,7 @@ async function initializeTelemetry() {
216354
216354
  });
216355
216355
  logs.setGlobalLoggerProvider(loggerProvider);
216356
216356
  setLoggerProvider(loggerProvider);
216357
- const eventLogger = logs.getLogger("com.theus.theus_code.events", { VERSION: "0.2.39", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION);
216357
+ const eventLogger = logs.getLogger("com.theus.theus_code.events", { VERSION: "0.2.41", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION);
216358
216358
  setEventLogger(eventLogger);
216359
216359
  logForDebugging("[3P telemetry] Event logger set successfully");
216360
216360
  process.on("beforeExit", async () => {
@@ -216416,7 +216416,7 @@ Current timeout: ${timeoutMs}ms
216416
216416
  }
216417
216417
  };
216418
216418
  registerCleanup(shutdownTelemetry);
216419
- return meterProvider.getMeter("com.theus.theus_code", { VERSION: "0.2.39", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION);
216419
+ return meterProvider.getMeter("com.theus.theus_code", { VERSION: "0.2.41", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION);
216420
216420
  }
216421
216421
  async function flushTelemetry() {
216422
216422
  const meterProvider = getMeterProvider();
@@ -216956,7 +216956,7 @@ async function installOrUpdateTheusPackage(channel2, specificVersion) {
216956
216956
  return "install_failed";
216957
216957
  }
216958
216958
  const versionSpec = specificVersion ? specificVersion : channel2 === "stable" ? "stable" : "latest";
216959
- const result = await execFileNoThrowWithCwd("npm", ["install", `${{ VERSION: "0.2.39", BUILD_TIME: "1970-01-01T00:00:00.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 });
216959
+ const result = await execFileNoThrowWithCwd("npm", ["install", `${{ VERSION: "0.2.41", BUILD_TIME: "1970-01-01T00:00:00.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 });
216960
216960
  if (result.code !== 0) {
216961
216961
  const error40 = new Error(`Failed to install Theus CLI package: ${result.stderr}`);
216962
216962
  logError2(error40);
@@ -217102,9 +217102,9 @@ async function assertMinVersion() {
217102
217102
  if (false) {}
217103
217103
  try {
217104
217104
  const versionConfig = await getDynamicConfig_BLOCKS_ON_INIT("tengu_version_config", { minVersion: "0.0.0" });
217105
- if (versionConfig.minVersion && lt({ VERSION: "0.2.39", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
217105
+ if (versionConfig.minVersion && lt({ VERSION: "0.2.41", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
217106
217106
  console.error(`
217107
- It looks like your version of Theus (${{ VERSION: "0.2.39", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.
217107
+ It looks like your version of Theus (${{ VERSION: "0.2.41", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.
217108
217108
  A newer version (${versionConfig.minVersion} or higher) is required to continue.
217109
217109
 
217110
217110
  To update, please run:
@@ -217245,7 +217245,7 @@ async function getInstallationPrefix() {
217245
217245
  return prefixResult.stdout.trim();
217246
217246
  }
217247
217247
  function getGlobalInstallPackageManager() {
217248
- if ({ VERSION: "0.2.39", BUILD_TIME: "1970-01-01T00:00:00.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") {
217248
+ if ({ VERSION: "0.2.41", BUILD_TIME: "1970-01-01T00:00:00.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") {
217249
217249
  return "npm";
217250
217250
  }
217251
217251
  return env3.isRunningWithBun() ? "bun" : "npm";
@@ -217270,7 +217270,7 @@ async function checkGlobalInstallPermissions() {
217270
217270
  }
217271
217271
  async function getLatestVersion(channel2) {
217272
217272
  const npmTag = channel2 === "stable" ? "stable" : "latest";
217273
- const result = await execFileNoThrowWithCwd("npm", ["view", `${{ VERSION: "0.2.39", BUILD_TIME: "1970-01-01T00:00:00.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() });
217273
+ const result = await execFileNoThrowWithCwd("npm", ["view", `${{ VERSION: "0.2.41", BUILD_TIME: "1970-01-01T00:00:00.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() });
217274
217274
  if (result.code !== 0) {
217275
217275
  logForDebugging(`npm view failed with code ${result.code}`);
217276
217276
  if (result.stderr) {
@@ -217286,7 +217286,7 @@ async function getLatestVersion(channel2) {
217286
217286
  return result.stdout.trim();
217287
217287
  }
217288
217288
  async function getNpmDistTags() {
217289
- const result = await execFileNoThrowWithCwd("npm", ["view", { VERSION: "0.2.39", BUILD_TIME: "1970-01-01T00:00:00.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() });
217289
+ const result = await execFileNoThrowWithCwd("npm", ["view", { VERSION: "0.2.41", BUILD_TIME: "1970-01-01T00:00:00.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() });
217290
217290
  if (result.code !== 0) {
217291
217291
  logForDebugging(`npm view dist-tags failed with code ${result.code}`);
217292
217292
  return { latest: null, stable: null };
@@ -217326,7 +217326,7 @@ async function installGlobalPackage(specificVersion) {
217326
217326
  logError2(new AutoUpdaterError("Another process is currently installing an update"));
217327
217327
  logEvent("tengu_auto_updater_lock_contention", {
217328
217328
  pid: process.pid,
217329
- currentVersion: { VERSION: "0.2.39", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
217329
+ currentVersion: { VERSION: "0.2.41", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
217330
217330
  });
217331
217331
  return "in_progress";
217332
217332
  }
@@ -217335,7 +217335,7 @@ async function installGlobalPackage(specificVersion) {
217335
217335
  if (!env3.isRunningWithBun() && env3.isNpmFromWindowsPath()) {
217336
217336
  logError2(new Error("Windows NPM detected in WSL environment"));
217337
217337
  logEvent("tengu_auto_updater_windows_npm_in_wsl", {
217338
- currentVersion: { VERSION: "0.2.39", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
217338
+ currentVersion: { VERSION: "0.2.41", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
217339
217339
  });
217340
217340
  console.error(`
217341
217341
  Error: Windows NPM detected in WSL
@@ -217354,7 +217354,7 @@ To fix this issue:
217354
217354
  if (!hasPermissions) {
217355
217355
  return "no_permissions";
217356
217356
  }
217357
- const packageSpec = specificVersion ? `${{ VERSION: "0.2.39", BUILD_TIME: "1970-01-01T00:00:00.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.39", BUILD_TIME: "1970-01-01T00:00:00.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;
217357
+ const packageSpec = specificVersion ? `${{ VERSION: "0.2.41", BUILD_TIME: "1970-01-01T00:00:00.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.41", BUILD_TIME: "1970-01-01T00:00:00.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;
217358
217358
  const packageManager = getGlobalInstallPackageManager();
217359
217359
  const installResult = await execFileNoThrowWithCwd(packageManager, ["install", "-g", packageSpec], { cwd: homedir18() });
217360
217360
  if (installResult.code !== 0) {
@@ -217682,8 +217682,8 @@ async function detectMultipleInstallations() {
217682
217682
  installations.push({ type: "npm-local", path: localPath });
217683
217683
  }
217684
217684
  const packagesToCheck = ["@theus-ai/theus-code"];
217685
- if ({ VERSION: "0.2.39", BUILD_TIME: "1970-01-01T00:00:00.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.39", BUILD_TIME: "1970-01-01T00:00:00.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") {
217686
- packagesToCheck.push({ VERSION: "0.2.39", BUILD_TIME: "1970-01-01T00:00:00.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);
217685
+ if ({ VERSION: "0.2.41", BUILD_TIME: "1970-01-01T00:00:00.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.41", BUILD_TIME: "1970-01-01T00:00:00.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") {
217686
+ packagesToCheck.push({ VERSION: "0.2.41", BUILD_TIME: "1970-01-01T00:00:00.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);
217687
217687
  }
217688
217688
  const npmResult = await execFileNoThrow("npm", [
217689
217689
  "-g",
@@ -217866,7 +217866,7 @@ function detectLinuxGlobPatternWarnings() {
217866
217866
  }
217867
217867
  async function getDoctorDiagnostic() {
217868
217868
  const installationType = await getCurrentInstallationType();
217869
- const version2 = { VERSION: "0.2.39", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.39", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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";
217869
+ const version2 = { VERSION: "0.2.41", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.41", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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";
217870
217870
  const installationPath = await getInstallationPath();
217871
217871
  const invokedBinary = getInvokedBinary();
217872
217872
  const multipleInstallations = await detectMultipleInstallations();
@@ -217878,8 +217878,8 @@ async function getDoctorDiagnostic() {
217878
217878
  for (const install of npmInstalls) {
217879
217879
  if (install.type === "npm-global") {
217880
217880
  let uninstallCmd = "npm -g uninstall @theus-ai/theus-code";
217881
- if ({ VERSION: "0.2.39", BUILD_TIME: "1970-01-01T00:00:00.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.39", BUILD_TIME: "1970-01-01T00:00:00.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") {
217882
- uninstallCmd += ` && npm -g uninstall ${{ VERSION: "0.2.39", BUILD_TIME: "1970-01-01T00:00:00.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}`;
217881
+ if ({ VERSION: "0.2.41", BUILD_TIME: "1970-01-01T00:00:00.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.41", BUILD_TIME: "1970-01-01T00:00:00.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") {
217882
+ uninstallCmd += ` && npm -g uninstall ${{ VERSION: "0.2.41", BUILD_TIME: "1970-01-01T00:00:00.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}`;
217883
217883
  }
217884
217884
  warnings.push({
217885
217885
  issue: `Leftover npm global installation at ${install.path}`,
@@ -217991,7 +217991,7 @@ async function getLatestVersionFromArtifactory(tag2 = "latest") {
217991
217991
  const startTime2 = Date.now();
217992
217992
  const { stdout, code, stderr } = await execFileNoThrowWithCwd("npm", [
217993
217993
  "view",
217994
- `${{ VERSION: "0.2.39", BUILD_TIME: "1970-01-01T00:00:00.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}`,
217994
+ `${{ VERSION: "0.2.41", BUILD_TIME: "1970-01-01T00:00:00.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}`,
217995
217995
  "version",
217996
217996
  "--prefer-online",
217997
217997
  "--registry",
@@ -218015,7 +218015,7 @@ async function getLatestVersionFromArtifactory(tag2 = "latest") {
218015
218015
  latency_ms: latencyMs,
218016
218016
  source_npm: true
218017
218017
  });
218018
- logForDebugging(`npm view ${{ VERSION: "0.2.39", BUILD_TIME: "1970-01-01T00:00:00.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}`);
218018
+ logForDebugging(`npm view ${{ VERSION: "0.2.41", BUILD_TIME: "1970-01-01T00:00:00.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}`);
218019
218019
  const latestVersion = stdout.trim();
218020
218020
  return latestVersion;
218021
218021
  }
@@ -218071,7 +218071,7 @@ async function downloadVersionFromArtifactory(version2, stagingPath) {
218071
218071
  const fs3 = getFsImplementation();
218072
218072
  await fs3.rm(stagingPath, { recursive: true, force: true });
218073
218073
  const platform4 = getPlatform2();
218074
- const platformPackageName = `${{ VERSION: "0.2.39", BUILD_TIME: "1970-01-01T00:00:00.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}`;
218074
+ const platformPackageName = `${{ VERSION: "0.2.41", BUILD_TIME: "1970-01-01T00:00:00.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}`;
218075
218075
  logForDebugging(`Fetching integrity hash for ${platformPackageName}@${version2}`);
218076
218076
  const {
218077
218077
  stdout: integrityOutput,
@@ -218100,7 +218100,7 @@ async function downloadVersionFromArtifactory(version2, stagingPath) {
218100
218100
  name: "theus-native-installer",
218101
218101
  version: "0.0.1",
218102
218102
  dependencies: {
218103
- [{ VERSION: "0.2.39", BUILD_TIME: "1970-01-01T00:00:00.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
218103
+ [{ VERSION: "0.2.41", BUILD_TIME: "1970-01-01T00:00:00.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
218104
218104
  }
218105
218105
  };
218106
218106
  const packageLock = {
@@ -218113,10 +218113,10 @@ async function downloadVersionFromArtifactory(version2, stagingPath) {
218113
218113
  name: "theus-native-installer",
218114
218114
  version: "0.0.1",
218115
218115
  dependencies: {
218116
- [{ VERSION: "0.2.39", BUILD_TIME: "1970-01-01T00:00:00.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
218116
+ [{ VERSION: "0.2.41", BUILD_TIME: "1970-01-01T00:00:00.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
218117
218117
  }
218118
218118
  },
218119
- [`node_modules/${{ VERSION: "0.2.39", BUILD_TIME: "1970-01-01T00:00:00.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}`]: {
218119
+ [`node_modules/${{ VERSION: "0.2.41", BUILD_TIME: "1970-01-01T00:00:00.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}`]: {
218120
218120
  version: version2,
218121
218121
  optionalDependencies: {
218122
218122
  [platformPackageName]: version2
@@ -218138,7 +218138,7 @@ async function downloadVersionFromArtifactory(version2, stagingPath) {
218138
218138
  if (result.code !== 0) {
218139
218139
  throw new Error(`npm ci failed with code ${result.code}: ${result.stderr}`);
218140
218140
  }
218141
- logForDebugging(`Successfully downloaded and verified ${{ VERSION: "0.2.39", BUILD_TIME: "1970-01-01T00:00:00.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}`);
218141
+ logForDebugging(`Successfully downloaded and verified ${{ VERSION: "0.2.41", BUILD_TIME: "1970-01-01T00:00:00.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}`);
218142
218142
  }
218143
218143
  function getStallTimeoutMs() {
218144
218144
  return Number(process.env.THEUS_CODE_STALL_TIMEOUT_MS_FOR_TESTING) || DEFAULT_STALL_TIMEOUT_MS;
@@ -218801,8 +218801,8 @@ async function updateLatest(channelOrVersion, forceReinstall = false) {
218801
218801
  const maxVersion = await getMaxVersion();
218802
218802
  if (maxVersion && gt(version2, maxVersion)) {
218803
218803
  logForDebugging(`Native installer: maxVersion ${maxVersion} is set, capping update from ${version2} to ${maxVersion}`);
218804
- if (gte({ VERSION: "0.2.39", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
218805
- logForDebugging(`Native installer: current version ${{ VERSION: "0.2.39", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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`);
218804
+ if (gte({ VERSION: "0.2.41", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
218805
+ logForDebugging(`Native installer: current version ${{ VERSION: "0.2.41", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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`);
218806
218806
  logEvent("tengu_native_update_skipped_max_version", {
218807
218807
  latency_ms: Date.now() - startTime2,
218808
218808
  max_version: maxVersion,
@@ -218813,7 +218813,7 @@ async function updateLatest(channelOrVersion, forceReinstall = false) {
218813
218813
  version2 = maxVersion;
218814
218814
  }
218815
218815
  }
218816
- if (!forceReinstall && version2 === { VERSION: "0.2.39", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
218816
+ if (!forceReinstall && version2 === { VERSION: "0.2.41", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
218817
218817
  logForDebugging(`Found ${version2} at ${executablePath}, skipping install`);
218818
218818
  logEvent("tengu_native_update_complete", {
218819
218819
  latency_ms: Date.now() - startTime2,
@@ -219563,8 +219563,8 @@ async function cleanupNpmInstallations() {
219563
219563
  } else if (codePackageResult.error) {
219564
219564
  errors4.push(codePackageResult.error);
219565
219565
  }
219566
- if ({ VERSION: "0.2.39", BUILD_TIME: "1970-01-01T00:00:00.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.39", BUILD_TIME: "1970-01-01T00:00:00.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") {
219567
- const macroPackageResult = await attemptNpmUninstall({ VERSION: "0.2.39", BUILD_TIME: "1970-01-01T00:00:00.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);
219566
+ if ({ VERSION: "0.2.41", BUILD_TIME: "1970-01-01T00:00:00.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.41", BUILD_TIME: "1970-01-01T00:00:00.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") {
219567
+ const macroPackageResult = await attemptNpmUninstall({ VERSION: "0.2.41", BUILD_TIME: "1970-01-01T00:00:00.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);
219568
219568
  if (macroPackageResult.success) {
219569
219569
  removed++;
219570
219570
  if (macroPackageResult.warning) {
@@ -304841,9 +304841,9 @@ function getTheusEnvMetadata() {
304841
304841
  };
304842
304842
  }
304843
304843
  function getBuildAgeMinutes() {
304844
- if (!{ VERSION: "0.2.39", BUILD_TIME: "1970-01-01T00:00:00.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)
304844
+ if (!{ VERSION: "0.2.41", BUILD_TIME: "1970-01-01T00:00:00.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)
304845
304845
  return;
304846
- const buildTime = new Date({ VERSION: "0.2.39", BUILD_TIME: "1970-01-01T00:00:00.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();
304846
+ const buildTime = new Date({ VERSION: "0.2.41", BUILD_TIME: "1970-01-01T00:00:00.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();
304847
304847
  if (isNaN(buildTime))
304848
304848
  return;
304849
304849
  return Math.floor((Date.now() - buildTime) / 60000);
@@ -321491,7 +321491,7 @@ function getAssistantMessageFromError(error40, model, options2) {
321491
321491
  if (process.env.USER_TYPE === "ant") {
321492
321492
  const baseMessage = `API Error: 400 ${error40.message}
321493
321493
 
321494
- Run /share and post the JSON file to ${{ VERSION: "0.2.39", BUILD_TIME: "1970-01-01T00:00:00.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}.`;
321494
+ Run /share and post the JSON file to ${{ VERSION: "0.2.41", BUILD_TIME: "1970-01-01T00:00:00.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}.`;
321495
321495
  const rewindInstruction = getIsNonInteractiveSession() ? "" : " Then, use /rewind to recover the conversation.";
321496
321496
  return createAssistantAPIErrorMessage({
321497
321497
  content: baseMessage + rewindInstruction,
@@ -321527,7 +321527,7 @@ Run /share and post the JSON file to ${{ VERSION: "0.2.39", BUILD_TIME: "1970-01
321527
321527
  if (process.env.USER_TYPE === "ant" && !process.env.THEUS_MODEL && error40 instanceof Error && error40.message.toLowerCase().includes("invalid model name")) {
321528
321528
  const orgId = getOauthAccountInfo()?.organizationUuid;
321529
321529
  const baseMsg = `[THEUS-INTERNAL] Your org isn't gated into the \`${model}\` model. Either run \`theus\` with \`THEUS_MODEL=${getDefaultMainLoopModelSetting()}\``;
321530
- const msg = orgId ? `${baseMsg} or share your orgId (${orgId}) in ${{ VERSION: "0.2.39", BUILD_TIME: "1970-01-01T00:00:00.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.39", BUILD_TIME: "1970-01-01T00:00:00.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.`;
321530
+ const msg = orgId ? `${baseMsg} or share your orgId (${orgId}) in ${{ VERSION: "0.2.41", BUILD_TIME: "1970-01-01T00:00:00.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.41", BUILD_TIME: "1970-01-01T00:00:00.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.`;
321531
321531
  return createAssistantAPIErrorMessage({
321532
321532
  content: msg,
321533
321533
  error: "invalid_request"
@@ -331632,7 +331632,7 @@ function buildPrimarySection() {
331632
331632
  });
331633
331633
  return [{
331634
331634
  label: "Version",
331635
- value: { VERSION: "0.2.39", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
331635
+ value: { VERSION: "0.2.41", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
331636
331636
  }, {
331637
331637
  label: "Session name",
331638
331638
  value: nameValue
@@ -335448,7 +335448,7 @@ function Config({
335448
335448
  }
335449
335449
  })
335450
335450
  }) : showSubmenu === "ChannelDowngrade" ? /* @__PURE__ */ jsx_runtime189.jsx(ChannelDowngradeDialog, {
335451
- currentVersion: { VERSION: "0.2.39", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
335451
+ currentVersion: { VERSION: "0.2.41", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
335452
335452
  onChoice: (choice) => {
335453
335453
  setShowSubmenu(null);
335454
335454
  setTabsHidden(false);
@@ -335460,7 +335460,7 @@ function Config({
335460
335460
  autoUpdatesChannel: "stable"
335461
335461
  };
335462
335462
  if (choice === "stay") {
335463
- newSettings.minimumVersion = { VERSION: "0.2.39", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION;
335463
+ newSettings.minimumVersion = { VERSION: "0.2.41", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION;
335464
335464
  }
335465
335465
  updateSettingsForSource("userSettings", newSettings);
335466
335466
  setSettingsData((prev_27) => ({
@@ -343494,7 +343494,7 @@ function HelpV2(t0) {
343494
343494
  let t6;
343495
343495
  if ($2[31] !== tabs) {
343496
343496
  t6 = /* @__PURE__ */ jsx_runtime216.jsx(Tabs, {
343497
- title: `Theus v${{ VERSION: "0.2.39", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION}`,
343497
+ title: `Theus v${{ VERSION: "0.2.41", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION}`,
343498
343498
  color: "professionalBlue",
343499
343499
  defaultTab: "general",
343500
343500
  children: tabs
@@ -361605,7 +361605,7 @@ function Onboarding({
361605
361605
  flexDirection: "column",
361606
361606
  children: [
361607
361607
  /* @__PURE__ */ jsx_runtime249.jsx(TheusBanner, {
361608
- version: { VERSION: "0.2.39", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
361608
+ version: { VERSION: "0.2.41", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
361609
361609
  }),
361610
361610
  /* @__PURE__ */ jsx_runtime249.jsxs(ThemedBox_default, {
361611
361611
  flexDirection: "column",
@@ -361828,6 +361828,162 @@ var init_providers3 = __esm(() => {
361828
361828
  providers_default = providers;
361829
361829
  });
361830
361830
 
361831
+ // commands/recarga/index.ts
361832
+ function safeAccessToken() {
361833
+ try {
361834
+ return getTheusAIOAuthTokens()?.accessToken;
361835
+ } catch {
361836
+ return;
361837
+ }
361838
+ }
361839
+ function safeIsSubscriber() {
361840
+ try {
361841
+ return isTheusAISubscriber();
361842
+ } catch {
361843
+ return false;
361844
+ }
361845
+ }
361846
+ function apiBase() {
361847
+ return getOauthConfig().BASE_API_URL.replace(/\/+$/, "");
361848
+ }
361849
+ async function fetchRecargaDisponible(token) {
361850
+ try {
361851
+ const res = await fetch(`${apiBase()}/v1/recarga/status`, {
361852
+ headers: { authorization: `Bearer ${token}`, "theus-version": "2023-06-01" }
361853
+ });
361854
+ if (!res.ok)
361855
+ return false;
361856
+ const data = await res.json().catch(() => null);
361857
+ return data?.disponible === true;
361858
+ } catch {
361859
+ return false;
361860
+ }
361861
+ }
361862
+ async function fetchCheckoutUrl(token, pack) {
361863
+ try {
361864
+ const res = await fetch(`${apiBase()}/v1/recarga/checkout`, {
361865
+ method: "POST",
361866
+ headers: {
361867
+ authorization: `Bearer ${token}`,
361868
+ "content-type": "application/json",
361869
+ "theus-version": "2023-06-01"
361870
+ },
361871
+ body: JSON.stringify({ pack })
361872
+ });
361873
+ if (!res.ok)
361874
+ return null;
361875
+ const data = await res.json().catch(() => null);
361876
+ return typeof data?.checkout_url === "string" && data.checkout_url.length > 0 ? data.checkout_url : null;
361877
+ } catch {
361878
+ return null;
361879
+ }
361880
+ }
361881
+ function formatCreditos(n2) {
361882
+ return n2.toLocaleString("es-PE");
361883
+ }
361884
+ function formatPackLine(pack) {
361885
+ return ` \u2022 ${pack.nombre} \u2014 $${pack.precioUsd} \u2192 ${formatCreditos(pack.creditos)} cr\xE9ditos`;
361886
+ }
361887
+ function parseArgs(raw) {
361888
+ const parts = raw.trim().toLowerCase().split(/\s+/).filter(Boolean);
361889
+ const packId = PACK_IDS.find((id) => parts[0] === id) ?? null;
361890
+ const confirmar = parts.includes("confirmar");
361891
+ return { packId, confirmar };
361892
+ }
361893
+ var PACKS, PACK_IDS, call28 = async (args) => {
361894
+ const token = safeAccessToken();
361895
+ if (!token) {
361896
+ return {
361897
+ type: "text",
361898
+ value: ["A\xFAn no has iniciado sesi\xF3n. Para recargar cr\xE9ditos:", " theus auth login"].join(`
361899
+ `)
361900
+ };
361901
+ }
361902
+ const disponible = await fetchRecargaDisponible(token);
361903
+ if (!disponible) {
361904
+ return { type: "text", value: "La recarga a\xFAn no est\xE1 disponible." };
361905
+ }
361906
+ const { packId, confirmar } = parseArgs(args);
361907
+ if (!packId) {
361908
+ const lines = [];
361909
+ lines.push("\uD83D\uDCB3 Recarga de cr\xE9ditos Theus");
361910
+ lines.push("");
361911
+ lines.push("Los cr\xE9ditos no expiran y no hay cobros sorpresa: la recarga es prepago");
361912
+ lines.push("expl\xEDcito \u2014 t\xFA eliges cu\xE1ndo comprar, nunca se cobra nada autom\xE1ticamente");
361913
+ lines.push("cuando se agota tu cuota del plan.");
361914
+ lines.push("");
361915
+ lines.push("Packs disponibles:");
361916
+ for (const pack2 of PACKS)
361917
+ lines.push(formatPackLine(pack2));
361918
+ lines.push("");
361919
+ lines.push("M\xE1ximo 4 packs por ciclo. Primero se consume la cuota incluida de tu plan;");
361920
+ lines.push("tu saldo de cr\xE9ditos recargado se usa solo despu\xE9s.");
361921
+ lines.push("");
361922
+ lines.push("Para comprar: theus recarga <pack> (por ejemplo: theus recarga turbo)");
361923
+ if (!safeIsSubscriber()) {
361924
+ lines.push("");
361925
+ lines.push("Nota: no detect\xE9 una sesi\xF3n de suscriptor de theus.pe activa.");
361926
+ }
361927
+ return { type: "text", value: lines.join(`
361928
+ `) };
361929
+ }
361930
+ const pack = PACKS.find((p) => p.id === packId);
361931
+ if (!pack) {
361932
+ return { type: "text", value: `Pack desconocido: ${packId}` };
361933
+ }
361934
+ if (!confirmar) {
361935
+ return {
361936
+ type: "text",
361937
+ value: [
361938
+ `Pack ${pack.nombre} \u2014 $${pack.precioUsd} \u2192 ${formatCreditos(pack.creditos)} cr\xE9ditos (no expiran).`,
361939
+ "",
361940
+ "Compra final, sin reembolsos.",
361941
+ "",
361942
+ `Para abrir el checkout seguro de Stripe: theus recarga ${packId} confirmar`,
361943
+ "Nada se cobra ni se abre hasta que confirmes."
361944
+ ].join(`
361945
+ `)
361946
+ };
361947
+ }
361948
+ const checkoutUrl = await fetchCheckoutUrl(token, packId);
361949
+ if (!checkoutUrl) {
361950
+ return {
361951
+ type: "text",
361952
+ value: `No pude generar el checkout de Stripe para ${pack.nombre} ahora mismo. Intenta de nuevo en unos minutos.`
361953
+ };
361954
+ }
361955
+ const opened = await openBrowser(checkoutUrl);
361956
+ return {
361957
+ type: "text",
361958
+ value: [
361959
+ "Compra final, sin reembolsos.",
361960
+ opened ? `Navegador abierto en el checkout de Stripe para ${pack.nombre}. Si no se abri\xF3, visita: ${checkoutUrl}` : `No pude abrir el navegador autom\xE1ticamente. Visita el checkout manualmente: ${checkoutUrl}`
361961
+ ].join(`
361962
+ `)
361963
+ };
361964
+ }, recarga, recarga_default;
361965
+ var init_recarga = __esm(() => {
361966
+ init_oauth();
361967
+ init_auth();
361968
+ init_browser();
361969
+ PACKS = [
361970
+ { id: "impulso", nombre: "Impulso", precioUsd: 10, creditos: 390 },
361971
+ { id: "turbo", nombre: "Turbo", precioUsd: 25, creditos: 1000 },
361972
+ { id: "nitro", nombre: "Nitro", precioUsd: 60, creditos: 2450 }
361973
+ ];
361974
+ PACK_IDS = PACKS.map((p) => p.id);
361975
+ recarga = {
361976
+ type: "local",
361977
+ name: "recarga",
361978
+ description: "Compra packs de cr\xE9ditos prepago (no expiran) para seguir trabajando",
361979
+ argumentHint: "[impulso|turbo|nitro] [confirmar]",
361980
+ isEnabled: () => true,
361981
+ supportsNonInteractive: true,
361982
+ load: () => Promise.resolve({ call: call28 })
361983
+ };
361984
+ recarga_default = recarga;
361985
+ });
361986
+
361831
361987
  // utils/releaseNotes.ts
361832
361988
  import { mkdir as mkdir40, readFile as readFile46, writeFile as writeFile45 } from "fs/promises";
361833
361989
  import { dirname as dirname57, join as join134 } from "path";
@@ -361950,9 +362106,9 @@ function getAllReleaseNotes(changelogContent = getStoredChangelogFromMemory()) {
361950
362106
  return [];
361951
362107
  }
361952
362108
  }
361953
- async function checkForReleaseNotes(lastSeenVersion, currentVersion = { VERSION: "0.2.39", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION) {
362109
+ async function checkForReleaseNotes(lastSeenVersion, currentVersion = { VERSION: "0.2.41", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION) {
361954
362110
  if (process.env.USER_TYPE === "ant") {
361955
- const changelog = { VERSION: "0.2.39", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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;
362111
+ const changelog = { VERSION: "0.2.41", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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;
361956
362112
  if (changelog) {
361957
362113
  const commits = changelog.trim().split(`
361958
362114
  `).filter(Boolean);
@@ -361991,7 +362147,7 @@ var init_releaseNotes = __esm(() => {
361991
362147
  // commands/release-notes/release-notes.ts
361992
362148
  var exports_release_notes = {};
361993
362149
  __export(exports_release_notes, {
361994
- call: () => call28
362150
+ call: () => call29
361995
362151
  });
361996
362152
  function formatReleaseNotes(notes) {
361997
362153
  return notes.map(([version2, notes2]) => {
@@ -362004,7 +362160,7 @@ ${bulletPoints}`;
362004
362160
 
362005
362161
  `);
362006
362162
  }
362007
- async function call28() {
362163
+ async function call29() {
362008
362164
  let freshNotes = [];
362009
362165
  try {
362010
362166
  const timeoutPromise = new Promise((_, reject2) => {
@@ -362532,9 +362688,9 @@ var init_createSession = __esm(() => {
362532
362688
  // commands/rename/rename.ts
362533
362689
  var exports_rename = {};
362534
362690
  __export(exports_rename, {
362535
- call: () => call29
362691
+ call: () => call30
362536
362692
  });
362537
- async function call29(onDone, context3, args) {
362693
+ async function call30(onDone, context3, args) {
362538
362694
  if (isTeammate()) {
362539
362695
  onDone("Cannot rename: This session is a swarm teammate. Teammate names are set by the team leader.", { display: "system" });
362540
362696
  return null;
@@ -366154,7 +366310,7 @@ var init_Messages = __esm(() => {
366154
366310
  let t1;
366155
366311
  if ($2[0] === Symbol.for("react.memo_cache_sentinel")) {
366156
366312
  t1 = /* @__PURE__ */ jsx_runtime261.jsx(TheusSessionHeader, {
366157
- version: { VERSION: "0.2.39", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
366313
+ version: { VERSION: "0.2.41", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
366158
366314
  });
366159
366315
  $2[0] = t1;
366160
366316
  } else {
@@ -368937,7 +369093,7 @@ var init_crossProjectResume = __esm(() => {
368937
369093
  var exports_resume = {};
368938
369094
  __export(exports_resume, {
368939
369095
  filterResumableSessions: () => filterResumableSessions,
368940
- call: () => call30
369096
+ call: () => call31
368941
369097
  });
368942
369098
  function resumeHelpMessage(result) {
368943
369099
  switch (result.resultType) {
@@ -369122,7 +369278,7 @@ function ResumeCommand({
369122
369278
  function filterResumableSessions(logs2, currentSessionId) {
369123
369279
  return logs2.filter((l) => !l.isSidechain && getSessionIdFromLog(l) !== currentSessionId);
369124
369280
  }
369125
- var React91, jsx_runtime266, call30 = async (onDone, context3, args) => {
369281
+ var React91, jsx_runtime266, call31 = async (onDone, context3, args) => {
369126
369282
  const onResume = async (sessionId, log, entrypoint) => {
369127
369283
  try {
369128
369284
  await context3.resume?.(sessionId, log, entrypoint);
@@ -369585,7 +369741,7 @@ var init_UltrareviewOverageDialog = __esm(() => {
369585
369741
  // commands/review/ultrareviewCommand.tsx
369586
369742
  var exports_ultrareviewCommand = {};
369587
369743
  __export(exports_ultrareviewCommand, {
369588
- call: () => call31
369744
+ call: () => call32
369589
369745
  });
369590
369746
  function contentBlocksToString(blocks) {
369591
369747
  return blocks.map((b) => b.type === "text" ? b.text : "").filter(Boolean).join(`
@@ -369605,7 +369761,7 @@ async function launchAndDone(args, context3, onDone, billingNote, signal) {
369605
369761
  });
369606
369762
  }
369607
369763
  }
369608
- var jsx_runtime268, call31 = async (onDone, context3, args) => {
369764
+ var jsx_runtime268, call32 = async (onDone, context3, args) => {
369609
369765
  const gate = await checkOverageGate();
369610
369766
  if (gate.kind === "not-enabled") {
369611
369767
  onDone("Ya usaste tus ultrareviews gratuitos. Activa el uso extra en https://theus.pe/settings/billing para continuar.", {
@@ -373979,7 +374135,7 @@ var require_server = __commonJS((exports) => {
373979
374135
  // commands/session/session.tsx
373980
374136
  var exports_session = {};
373981
374137
  __export(exports_session, {
373982
- call: () => call32
374138
+ call: () => call33
373983
374139
  });
373984
374140
  function SessionInfo(t0) {
373985
374141
  const $2 = c3(19);
@@ -374152,7 +374308,7 @@ function _temp245(e) {
374152
374308
  function _temp114(s) {
374153
374309
  return s.remoteSessionUrl;
374154
374310
  }
374155
- var import_qrcode, import_react158, jsx_runtime269, call32 = async (onDone) => {
374311
+ var import_qrcode, import_react158, jsx_runtime269, call33 = async (onDone) => {
374156
374312
  return /* @__PURE__ */ jsx_runtime269.jsx(SessionInfo, {
374157
374313
  onDone
374158
374314
  });
@@ -374510,9 +374666,9 @@ var init_SkillsMenu = __esm(() => {
374510
374666
  // commands/skills/skills.tsx
374511
374667
  var exports_skills = {};
374512
374668
  __export(exports_skills, {
374513
- call: () => call33
374669
+ call: () => call34
374514
374670
  });
374515
- async function call33(onDone, context3) {
374671
+ async function call34(onDone, context3) {
374516
374672
  return /* @__PURE__ */ jsx_runtime271.jsx(SkillsMenu, {
374517
374673
  onExit: onDone,
374518
374674
  commands: context3.options.commands
@@ -374540,9 +374696,9 @@ var init_skills2 = __esm(() => {
374540
374696
  // commands/status/status.tsx
374541
374697
  var exports_status = {};
374542
374698
  __export(exports_status, {
374543
- call: () => call34
374699
+ call: () => call35
374544
374700
  });
374545
- async function call34(onDone, context3) {
374701
+ async function call35(onDone, context3) {
374546
374702
  return /* @__PURE__ */ jsx_runtime272.jsx(Settings, {
374547
374703
  onClose: onDone,
374548
374704
  context: context3,
@@ -375165,7 +375321,7 @@ ${reasons}`,
375165
375321
  } : prev);
375166
375322
  }
375167
375323
  }
375168
- var ULTRAPLAN_TIMEOUT_MS, CCR_TERMS_URL2 = "https://docs.theus.pe/docs/en/theus-code-on-the-web", _rawPrompt, DEFAULT_INSTRUCTIONS, ULTRAPLAN_INSTRUCTIONS, call35 = async (onDone, context3, args) => {
375324
+ var ULTRAPLAN_TIMEOUT_MS, CCR_TERMS_URL2 = "https://docs.theus.pe/docs/en/theus-code-on-the-web", _rawPrompt, DEFAULT_INSTRUCTIONS, ULTRAPLAN_INSTRUCTIONS, call36 = async (onDone, context3, args) => {
375169
375325
  const blurb = args.trim();
375170
375326
  if (!blurb) {
375171
375327
  const msg = await launchUltraplan2({
@@ -375228,7 +375384,7 @@ var init_ultraplan = __esm(() => {
375228
375384
  argumentHint: "<prompt>",
375229
375385
  isEnabled: () => false,
375230
375386
  load: () => Promise.resolve({
375231
- call: call35
375387
+ call: call36
375232
375388
  })
375233
375389
  };
375234
375390
  });
@@ -380707,9 +380863,9 @@ var init_BackgroundTasksDialog = __esm(() => {
380707
380863
  // commands/tasks/tasks.tsx
380708
380864
  var exports_tasks = {};
380709
380865
  __export(exports_tasks, {
380710
- call: () => call36
380866
+ call: () => call37
380711
380867
  });
380712
- async function call36(onDone, context3) {
380868
+ async function call37(onDone, context3) {
380713
380869
  return /* @__PURE__ */ jsx_runtime284.jsx(BackgroundTasksDialog, {
380714
380870
  toolUseContext: context3,
380715
380871
  onDone
@@ -380745,7 +380901,7 @@ function fmtDate(iso) {
380745
380901
  return "";
380746
380902
  }
380747
380903
  }
380748
- var call37 = async () => {
380904
+ var call38 = async () => {
380749
380905
  let sessions;
380750
380906
  try {
380751
380907
  const { fetchCodeSessionsFromSessionsAPI: fetchCodeSessionsFromSessionsAPI2 } = await Promise.resolve().then(() => (init_api3(), exports_api));
@@ -380786,7 +380942,7 @@ var init_teleport2 = __esm(() => {
380786
380942
  isEnabled: () => true,
380787
380943
  isHidden: false,
380788
380944
  supportsNonInteractive: true,
380789
- load: () => Promise.resolve({ call: call37 })
380945
+ load: () => Promise.resolve({ call: call38 })
380790
380946
  };
380791
380947
  teleport_default = teleport;
380792
380948
  });
@@ -381049,7 +381205,7 @@ var init_terminalSetup2 = __esm(() => {
381049
381205
  });
381050
381206
 
381051
381207
  // commands/usage/index.ts
381052
- function safeAccessToken() {
381208
+ function safeAccessToken2() {
381053
381209
  try {
381054
381210
  return getTheusAIOAuthTokens()?.accessToken;
381055
381211
  } catch {
@@ -381057,7 +381213,7 @@ function safeAccessToken() {
381057
381213
  }
381058
381214
  }
381059
381215
  async function gatewayJson(path19) {
381060
- const token = safeAccessToken();
381216
+ const token = safeAccessToken2();
381061
381217
  if (!token)
381062
381218
  return null;
381063
381219
  const base2 = getOauthConfig().BASE_API_URL.replace(/\/+$/, "");
@@ -381095,8 +381251,8 @@ function fmtDate2(epoch) {
381095
381251
  return "\u2014";
381096
381252
  }
381097
381253
  }
381098
- var call38 = async () => {
381099
- if (!safeAccessToken()) {
381254
+ var call39 = async () => {
381255
+ if (!safeAccessToken2()) {
381100
381256
  return { type: "text", value: `Inicia sesi\xF3n para ver tu consumo:
381101
381257
  theus auth login` };
381102
381258
  }
@@ -381158,7 +381314,7 @@ var init_usage2 = __esm(() => {
381158
381314
  availability: ["theus-ai"],
381159
381315
  isEnabled: () => true,
381160
381316
  supportsNonInteractive: true,
381161
- load: () => Promise.resolve({ call: call38 })
381317
+ load: () => Promise.resolve({ call: call39 })
381162
381318
  };
381163
381319
  usage_default = uso;
381164
381320
  });
@@ -381166,7 +381322,7 @@ var init_usage2 = __esm(() => {
381166
381322
  // commands/theme/theme.tsx
381167
381323
  var exports_theme = {};
381168
381324
  __export(exports_theme, {
381169
- call: () => call39
381325
+ call: () => call40
381170
381326
  });
381171
381327
  function ThemePickerCommand(t0) {
381172
381328
  const $2 = c3(8);
@@ -381216,7 +381372,7 @@ function ThemePickerCommand(t0) {
381216
381372
  }
381217
381373
  return t3;
381218
381374
  }
381219
- var jsx_runtime285, call39 = async (onDone, _context) => {
381375
+ var jsx_runtime285, call40 = async (onDone, _context) => {
381220
381376
  return /* @__PURE__ */ jsx_runtime285.jsx(ThemePickerCommand, {
381221
381377
  onDone
381222
381378
  });
@@ -381245,9 +381401,9 @@ var init_theme3 = __esm(() => {
381245
381401
  // commands/vim/vim.ts
381246
381402
  var exports_vim = {};
381247
381403
  __export(exports_vim, {
381248
- call: () => call40
381404
+ call: () => call41
381249
381405
  });
381250
- var call40 = async () => {
381406
+ var call41 = async () => {
381251
381407
  const config3 = getGlobalConfig();
381252
381408
  let currentMode = config3.editorMode || "normal";
381253
381409
  if (currentMode === "emacs") {
@@ -381320,7 +381476,7 @@ var init_gate = __esm(() => {
381320
381476
  var exports_thinkback = {};
381321
381477
  __export(exports_thinkback, {
381322
381478
  playAnimation: () => playAnimation,
381323
- call: () => call41
381479
+ call: () => call42
381324
381480
  });
381325
381481
  import { readFile as readFile47 } from "fs/promises";
381326
381482
  import { join as join135 } from "path";
@@ -381857,7 +382013,7 @@ function ThinkbackFlow(t0) {
381857
382013
  }
381858
382014
  return t8;
381859
382015
  }
381860
- async function call41(onDone) {
382016
+ async function call42(onDone) {
381861
382017
  return /* @__PURE__ */ jsx_runtime286.jsx(ThinkbackFlow, {
381862
382018
  onDone
381863
382019
  });
@@ -381905,14 +382061,14 @@ var init_thinkback2 = __esm(() => {
381905
382061
  // commands/thinkback-play/thinkback-play.ts
381906
382062
  var exports_thinkback_play = {};
381907
382063
  __export(exports_thinkback_play, {
381908
- call: () => call42
382064
+ call: () => call43
381909
382065
  });
381910
382066
  import { join as join136 } from "path";
381911
382067
  function getPluginId2() {
381912
382068
  const marketplaceName = process.env.USER_TYPE === "ant" ? INTERNAL_MARKETPLACE_NAME : OFFICIAL_MARKETPLACE_NAME;
381913
382069
  return `thinkback@${marketplaceName}`;
381914
382070
  }
381915
- async function call42() {
382071
+ async function call43() {
381916
382072
  const v2Data = loadInstalledPluginsV2();
381917
382073
  const pluginId = getPluginId2();
381918
382074
  const installations = v2Data.plugins[pluginId];
@@ -384407,9 +384563,9 @@ var init_PermissionRuleList = __esm(() => {
384407
384563
  // commands/permissions/permissions.tsx
384408
384564
  var exports_permissions2 = {};
384409
384565
  __export(exports_permissions2, {
384410
- call: () => call43
384566
+ call: () => call44
384411
384567
  });
384412
- var jsx_runtime294, call43 = async (onDone, context3) => {
384568
+ var jsx_runtime294, call44 = async (onDone, context3) => {
384413
384569
  return /* @__PURE__ */ jsx_runtime294.jsx(PermissionRuleList, {
384414
384570
  onExit: onDone,
384415
384571
  onRetryDenials: (commands) => {
@@ -384439,7 +384595,7 @@ var init_permissions4 = __esm(() => {
384439
384595
  // commands/plan/plan.tsx
384440
384596
  var exports_plan = {};
384441
384597
  __export(exports_plan, {
384442
- call: () => call44
384598
+ call: () => call45
384443
384599
  });
384444
384600
  function PlanDisplay(t0) {
384445
384601
  const $2 = c3(11);
@@ -384527,7 +384683,7 @@ function PlanDisplay(t0) {
384527
384683
  }
384528
384684
  return t5;
384529
384685
  }
384530
- async function call44(onDone, context3, args) {
384686
+ async function call45(onDone, context3, args) {
384531
384687
  const {
384532
384688
  getAppState,
384533
384689
  setAppState
@@ -384673,7 +384829,7 @@ var init_FastIcon = __esm(() => {
384673
384829
  // commands/fast/fast.tsx
384674
384830
  var exports_fast = {};
384675
384831
  __export(exports_fast, {
384676
- call: () => call45,
384832
+ call: () => call46,
384677
384833
  FastModePicker: () => FastModePicker
384678
384834
  });
384679
384835
  function applyFastMode(enable, setAppState) {
@@ -384988,7 +385144,7 @@ async function handleFastModeShortcut(enable, getAppState, setAppState) {
384988
385144
  return `Fast mode OFF`;
384989
385145
  }
384990
385146
  }
384991
- async function call45(onDone, context3, args) {
385147
+ async function call46(onDone, context3, args) {
384992
385148
  if (!isFastModeEnabled()) {
384993
385149
  return null;
384994
385150
  }
@@ -385476,9 +385632,9 @@ var init_Passes = __esm(() => {
385476
385632
  // commands/passes/passes.tsx
385477
385633
  var exports_passes = {};
385478
385634
  __export(exports_passes, {
385479
- call: () => call46
385635
+ call: () => call47
385480
385636
  });
385481
- async function call46(onDone) {
385637
+ async function call47(onDone) {
385482
385638
  const config3 = getGlobalConfig();
385483
385639
  const isFirstVisit = !config3.hasVisitedPasses;
385484
385640
  if (isFirstVisit) {
@@ -386250,9 +386406,9 @@ var init_Grove = __esm(() => {
386250
386406
  // commands/privacy-settings/privacy-settings.tsx
386251
386407
  var exports_privacy_settings = {};
386252
386408
  __export(exports_privacy_settings, {
386253
- call: () => call47
386409
+ call: () => call48
386254
386410
  });
386255
- async function call47(onDone) {
386411
+ async function call48(onDone) {
386256
386412
  const qualified = await isQualifiedForGrove();
386257
386413
  if (!qualified) {
386258
386414
  onDone(FALLBACK_MESSAGE);
@@ -388098,9 +388254,9 @@ var init_HooksConfigMenu = __esm(() => {
388098
388254
  // commands/hooks/hooks.tsx
388099
388255
  var exports_hooks = {};
388100
388256
  __export(exports_hooks, {
388101
- call: () => call48
388257
+ call: () => call49
388102
388258
  });
388103
- var jsx_runtime307, call48 = async (onDone, context3) => {
388259
+ var jsx_runtime307, call49 = async (onDone, context3) => {
388104
388260
  logEvent("tengu_hooks_command", {});
388105
388261
  const appState = context3.getAppState();
388106
388262
  const permissionContext = appState.toolPermissionContext;
@@ -388133,10 +388289,10 @@ var init_hooks3 = __esm(() => {
388133
388289
  // commands/files/files.ts
388134
388290
  var exports_files = {};
388135
388291
  __export(exports_files, {
388136
- call: () => call49
388292
+ call: () => call50
388137
388293
  });
388138
388294
  import { relative as relative29 } from "path";
388139
- async function call49(_args, context3) {
388295
+ async function call50(_args, context3) {
388140
388296
  const files = context3.readFileState ? cacheKeys(context3.readFileState) : [];
388141
388297
  if (files.length === 0) {
388142
388298
  return { type: "text", value: "No files in context" };
@@ -388169,7 +388325,7 @@ var init_files3 = __esm(() => {
388169
388325
  var exports_branch = {};
388170
388326
  __export(exports_branch, {
388171
388327
  deriveFirstPrompt: () => deriveFirstPrompt,
388172
- call: () => call50
388328
+ call: () => call51
388173
388329
  });
388174
388330
  import { randomUUID as randomUUID29 } from "crypto";
388175
388331
  import { mkdir as mkdir41, readFile as readFile48, writeFile as writeFile46 } from "fs/promises";
@@ -388275,7 +388431,7 @@ async function getUniqueForkName(baseName) {
388275
388431
  }
388276
388432
  return `${baseName} (Branch ${nextNumber})`;
388277
388433
  }
388278
- async function call50(onDone, context3, args) {
388434
+ async function call51(onDone, context3, args) {
388279
388435
  const customTitle = args?.trim() || undefined;
388280
388436
  const originalSessionId = getSessionId();
388281
388437
  try {
@@ -394259,9 +394415,9 @@ var init_AgentsMenu = __esm(() => {
394259
394415
  // commands/agents/agents.tsx
394260
394416
  var exports_agents = {};
394261
394417
  __export(exports_agents, {
394262
- call: () => call51
394418
+ call: () => call52
394263
394419
  });
394264
- async function call51(onDone, context3) {
394420
+ async function call52(onDone, context3) {
394265
394421
  const appState = context3.getAppState();
394266
394422
  const permissionContext = appState.toolPermissionContext;
394267
394423
  const tools = getTools(permissionContext);
@@ -394292,9 +394448,9 @@ var init_agents2 = __esm(() => {
394292
394448
  // commands/plugin/plugin.tsx
394293
394449
  var exports_plugin = {};
394294
394450
  __export(exports_plugin, {
394295
- call: () => call52
394451
+ call: () => call53
394296
394452
  });
394297
- async function call52(onDone, _context, args) {
394453
+ async function call53(onDone, _context, args) {
394298
394454
  return /* @__PURE__ */ jsx_runtime333.jsx(PluginSettings, {
394299
394455
  onComplete: onDone,
394300
394456
  args
@@ -394461,12 +394617,12 @@ var init_refresh = __esm(() => {
394461
394617
  // commands/reload-plugins/reload-plugins.ts
394462
394618
  var exports_reload_plugins = {};
394463
394619
  __export(exports_reload_plugins, {
394464
- call: () => call53
394620
+ call: () => call54
394465
394621
  });
394466
394622
  function n2(count4, noun) {
394467
394623
  return `${count4} ${plural(count4, noun)}`;
394468
394624
  }
394469
- var call53 = async (_args, context3) => {
394625
+ var call54 = async (_args, context3) => {
394470
394626
  if (false) {}
394471
394627
  const r = await refreshActivePlugins(context3.setAppState);
394472
394628
  const parts = [
@@ -394509,9 +394665,9 @@ var init_reload_plugins2 = __esm(() => {
394509
394665
  // commands/rewind/rewind.ts
394510
394666
  var exports_rewind = {};
394511
394667
  __export(exports_rewind, {
394512
- call: () => call54
394668
+ call: () => call55
394513
394669
  });
394514
- async function call54(_args, context3) {
394670
+ async function call55(_args, context3) {
394515
394671
  if (context3.openMessageSelector) {
394516
394672
  context3.openMessageSelector();
394517
394673
  }
@@ -394626,7 +394782,7 @@ async function captureMemoryDiagnostics(trigger, dumpNumber = 0) {
394626
394782
  smapsRollup,
394627
394783
  platform: process.platform,
394628
394784
  nodeVersion: process.version,
394629
- ccVersion: { VERSION: "0.2.39", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
394785
+ ccVersion: { VERSION: "0.2.41", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
394630
394786
  };
394631
394787
  }
394632
394788
  async function performHeapDump(trigger = "manual", dumpNumber = 0) {
@@ -394697,9 +394853,9 @@ var init_heapDumpService = __esm(() => {
394697
394853
  // commands/heapdump/heapdump.ts
394698
394854
  var exports_heapdump = {};
394699
394855
  __export(exports_heapdump, {
394700
- call: () => call55
394856
+ call: () => call56
394701
394857
  });
394702
- async function call55() {
394858
+ async function call56() {
394703
394859
  const result = await performHeapDump();
394704
394860
  if (!result.success) {
394705
394861
  return {
@@ -395070,7 +395226,7 @@ var USAGE = `/bridge-kick <subcommand>
395070
395226
  reconnect-session fail next POST /bridge/reconnect fails
395071
395227
  heartbeat <status> next heartbeat throws BridgeFatalError(status)
395072
395228
  reconnect call reconnectEnvironmentWithSession directly
395073
- status print bridge state`, call56 = async (args) => {
395229
+ status print bridge state`, call57 = async (args) => {
395074
395230
  const h2 = getBridgeDebugHandle();
395075
395231
  if (!h2) {
395076
395232
  return {
@@ -395203,16 +395359,16 @@ var init_bridge_kick = __esm(() => {
395203
395359
  description: "Inyecta estados de fallo del bridge para pruebas manuales de recuperaci\xF3n",
395204
395360
  isEnabled: () => process.env.USER_TYPE === "ant",
395205
395361
  supportsNonInteractive: false,
395206
- load: () => Promise.resolve({ call: call56 })
395362
+ load: () => Promise.resolve({ call: call57 })
395207
395363
  };
395208
395364
  bridge_kick_default = bridgeKick;
395209
395365
  });
395210
395366
 
395211
395367
  // commands/version.ts
395212
- var call57 = async () => {
395368
+ var call58 = async () => {
395213
395369
  return {
395214
395370
  type: "text",
395215
- value: { VERSION: "0.2.39", BUILD_TIME: "1970-01-01T00:00:00.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.39", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.39", BUILD_TIME: "1970-01-01T00:00:00.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.39", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
395371
+ value: { VERSION: "0.2.41", BUILD_TIME: "1970-01-01T00:00:00.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.41", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.41", BUILD_TIME: "1970-01-01T00:00:00.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.41", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
395216
395372
  };
395217
395373
  }, version2, version_default;
395218
395374
  var init_version = __esm(() => {
@@ -395222,7 +395378,7 @@ var init_version = __esm(() => {
395222
395378
  description: "Muestra la versi\xF3n que ejecuta esta sesi\xF3n (no la que descarg\xF3 el autoupdate)",
395223
395379
  isEnabled: () => true,
395224
395380
  supportsNonInteractive: true,
395225
- load: () => Promise.resolve({ call: call57 })
395381
+ load: () => Promise.resolve({ call: call58 })
395226
395382
  };
395227
395383
  version_default = version2;
395228
395384
  });
@@ -395519,7 +395675,7 @@ function TelegramOnboarding({
395519
395675
  ]
395520
395676
  });
395521
395677
  }
395522
- var import_qrcode2, import_react185, jsx_runtime334, call58 = async (onDone) => {
395678
+ var import_qrcode2, import_react185, jsx_runtime334, call59 = async (onDone) => {
395523
395679
  return /* @__PURE__ */ jsx_runtime334.jsx(TelegramOnboarding, {
395524
395680
  onDone
395525
395681
  });
@@ -395537,20 +395693,20 @@ var init_telegram = __esm(() => {
395537
395693
  name: "telegram",
395538
395694
  description: "Vincula tu Telegram con Theus y configura el control remoto del agente",
395539
395695
  isEnabled: () => true,
395540
- load: () => Promise.resolve({ call: call58 })
395696
+ load: () => Promise.resolve({ call: call59 })
395541
395697
  };
395542
395698
  telegram_default = telegram;
395543
395699
  });
395544
395700
 
395545
395701
  // commands/modelos/index.ts
395546
- function safeAccessToken2() {
395702
+ function safeAccessToken3() {
395547
395703
  try {
395548
395704
  return getTheusAIOAuthTokens()?.accessToken;
395549
395705
  } catch {
395550
395706
  return;
395551
395707
  }
395552
395708
  }
395553
- function safeIsSubscriber() {
395709
+ function safeIsSubscriber2() {
395554
395710
  try {
395555
395711
  return isTheusAISubscriber();
395556
395712
  } catch {
@@ -395558,7 +395714,7 @@ function safeIsSubscriber() {
395558
395714
  }
395559
395715
  }
395560
395716
  async function fetchModels() {
395561
- const token = safeAccessToken2();
395717
+ const token = safeAccessToken3();
395562
395718
  if (!token)
395563
395719
  return null;
395564
395720
  const base2 = getOauthConfig().BASE_API_URL.replace(/\/+$/, "");
@@ -395574,7 +395730,7 @@ async function fetchModels() {
395574
395730
  return null;
395575
395731
  }
395576
395732
  }
395577
- var call59 = async () => {
395733
+ var call60 = async () => {
395578
395734
  const lines = [];
395579
395735
  lines.push("\uD83E\uDDE0 Tus modelos en Theus");
395580
395736
  lines.push("");
@@ -395583,13 +395739,13 @@ var call59 = async () => {
395583
395739
  lines.push("mejor modelo por debajo, y responde con una sola voz. Es lo que hace el CLI");
395584
395740
  lines.push('por defecto (modelo "theus-router-auto").');
395585
395741
  lines.push("");
395586
- if (!safeAccessToken2()) {
395742
+ if (!safeAccessToken3()) {
395587
395743
  lines.push("A\xFAn no has iniciado sesi\xF3n. Para usar tus modelos:");
395588
395744
  lines.push(" theus auth login");
395589
395745
  return { type: "text", value: lines.join(`
395590
395746
  `) };
395591
395747
  }
395592
- const usingGateway = safeIsSubscriber();
395748
+ const usingGateway = safeIsSubscriber2();
395593
395749
  const base2 = getOauthConfig().BASE_API_URL.replace(/\/+$/, "");
395594
395750
  const models = await fetchModels();
395595
395751
  if (models && models.length) {
@@ -395624,7 +395780,7 @@ var init_modelos = __esm(() => {
395624
395780
  description: "Explica c\xF3mo Theus te da acceso a los mejores modelos v\xEDa TITAN y lista el cat\xE1logo",
395625
395781
  isEnabled: () => true,
395626
395782
  supportsNonInteractive: true,
395627
- load: () => Promise.resolve({ call: call59 })
395783
+ load: () => Promise.resolve({ call: call60 })
395628
395784
  };
395629
395785
  modelos_default = modelos;
395630
395786
  });
@@ -395792,7 +395948,7 @@ function IntelligenceBar({ onDone }) {
395792
395948
  ]
395793
395949
  });
395794
395950
  }
395795
- var import_react186, jsx_runtime335, REDUCE_MOTION2, FRAME_MS2 = 90, BAR_W = 34, LEVELS, NEON2 = "#39ff14", NEON_DIM = "#1f7a10", PULSE = "#d6ffc2", MAX_CYCLE, call60 = async (onDone) => {
395951
+ var import_react186, jsx_runtime335, REDUCE_MOTION2, FRAME_MS2 = 90, BAR_W = 34, LEVELS, NEON2 = "#39ff14", NEON_DIM = "#1f7a10", PULSE = "#d6ffc2", MAX_CYCLE, call61 = async (onDone) => {
395796
395952
  return /* @__PURE__ */ jsx_runtime335.jsx(IntelligenceBar, {
395797
395953
  onDone
395798
395954
  });
@@ -395819,7 +395975,7 @@ var init_inteligencia = __esm(() => {
395819
395975
  name: "inteligencia",
395820
395976
  description: "Define el nivel de inteligencia/esfuerzo del modelo con una barra animada",
395821
395977
  isEnabled: () => true,
395822
- load: () => Promise.resolve({ call: call60 })
395978
+ load: () => Promise.resolve({ call: call61 })
395823
395979
  };
395824
395980
  inteligencia_default = inteligencia;
395825
395981
  });
@@ -396973,10 +397129,10 @@ var init_SandboxSettings = __esm(() => {
396973
397129
  // commands/sandbox-toggle/sandbox-toggle.tsx
396974
397130
  var exports_sandbox_toggle = {};
396975
397131
  __export(exports_sandbox_toggle, {
396976
- call: () => call61
397132
+ call: () => call62
396977
397133
  });
396978
397134
  import { relative as relative30 } from "path";
396979
- async function call61(onDone, _context, args) {
397135
+ async function call62(onDone, _context, args) {
396980
397136
  const settings = getSettings_DEPRECATED();
396981
397137
  const themeName = settings.theme || "light";
396982
397138
  const platform6 = getPlatform();
@@ -397081,7 +397237,7 @@ var init_sandbox_toggle2 = __esm(() => {
397081
397237
  });
397082
397238
 
397083
397239
  // commands/advisor.ts
397084
- var call62 = async (args, context3) => {
397240
+ var call63 = async (args, context3) => {
397085
397241
  const arg = args.trim().toLowerCase();
397086
397242
  const baseModel = parseUserSpecifiedModel(context3.getAppState().mainLoopModel ?? getDefaultMainLoopModelSetting());
397087
397243
  if (!arg) {
@@ -397167,7 +397323,7 @@ var init_advisor2 = __esm(() => {
397167
397323
  return !canUserConfigureAdvisor();
397168
397324
  },
397169
397325
  supportsNonInteractive: true,
397170
- load: () => Promise.resolve({ call: call62 })
397326
+ load: () => Promise.resolve({ call: call63 })
397171
397327
  };
397172
397328
  advisor_default = advisor;
397173
397329
  });
@@ -397581,12 +397737,12 @@ var init_ExitFlow = __esm(() => {
397581
397737
  // commands/exit/exit.tsx
397582
397738
  var exports_exit = {};
397583
397739
  __export(exports_exit, {
397584
- call: () => call63
397740
+ call: () => call64
397585
397741
  });
397586
397742
  function getRandomGoodbyeMessage2() {
397587
397743
  return sample_default(GOODBYE_MESSAGES2) ?? "Goodbye!";
397588
397744
  }
397589
- async function call63(onDone) {
397745
+ async function call64(onDone) {
397590
397746
  if (false) {}
397591
397747
  const showWorktree = getCurrentWorktreeSession() !== null;
397592
397748
  if (showWorktree) {
@@ -397880,7 +398036,7 @@ var exports_export = {};
397880
398036
  __export(exports_export, {
397881
398037
  sanitizeFilename: () => sanitizeFilename,
397882
398038
  extractFirstPrompt: () => extractFirstPrompt,
397883
- call: () => call64
398039
+ call: () => call65
397884
398040
  });
397885
398041
  import { join as join141 } from "path";
397886
398042
  function formatTimestamp(date6) {
@@ -397921,7 +398077,7 @@ async function exportWithReactRenderer(context3) {
397921
398077
  const tools = context3.options.tools || [];
397922
398078
  return renderMessagesToPlainText(context3.messages, tools);
397923
398079
  }
397924
- async function call64(onDone, context3, args) {
398080
+ async function call65(onDone, context3, args) {
397925
398081
  const content = await exportWithReactRenderer(context3);
397926
398082
  const filename = args.trim();
397927
398083
  if (filename) {
@@ -398379,7 +398535,7 @@ var init_CatalogModelPicker = __esm(() => {
398379
398535
  // commands/model/model.tsx
398380
398536
  var exports_model2 = {};
398381
398537
  __export(exports_model2, {
398382
- call: () => call65
398538
+ call: () => call66
398383
398539
  });
398384
398540
  function ModelPickerWrapper(t0) {
398385
398541
  const $2 = c3(17);
@@ -398627,7 +398783,7 @@ function renderModelLabel(model) {
398627
398783
  const rendered = renderDefaultModelSetting(model ?? getDefaultMainLoopModelSetting());
398628
398784
  return model === null ? `${rendered} (default)` : rendered;
398629
398785
  }
398630
- var React114, jsx_runtime348, call65 = async (onDone, _context, args) => {
398786
+ var React114, jsx_runtime348, call66 = async (onDone, _context, args) => {
398631
398787
  args = args?.trim() || "";
398632
398788
  if (COMMON_INFO_ARGS.includes(args)) {
398633
398789
  logEvent("tengu_model_command_inline_help", {
@@ -398713,7 +398869,7 @@ var init_model3 = __esm(() => {
398713
398869
  // commands/tag/tag.tsx
398714
398870
  var exports_tag = {};
398715
398871
  __export(exports_tag, {
398716
- call: () => call66
398872
+ call: () => call67
398717
398873
  });
398718
398874
  function ConfirmRemoveTag(t0) {
398719
398875
  const $2 = c3(11);
@@ -398937,7 +399093,7 @@ Examples:
398937
399093
  React115.useEffect(t1, t2);
398938
399094
  return null;
398939
399095
  }
398940
- async function call66(onDone, _context, args) {
399096
+ async function call67(onDone, _context, args) {
398941
399097
  args = args?.trim() || "";
398942
399098
  if (COMMON_INFO_ARGS.includes(args) || COMMON_HELP_ARGS.includes(args)) {
398943
399099
  return /* @__PURE__ */ jsx_runtime349.jsx(ShowHelp, {
@@ -398986,9 +399142,9 @@ var init_tag2 = __esm(() => {
398986
399142
  // commands/output-style/output-style.tsx
398987
399143
  var exports_output_style = {};
398988
399144
  __export(exports_output_style, {
398989
- call: () => call67
399145
+ call: () => call68
398990
399146
  });
398991
- async function call67(onDone) {
399147
+ async function call68(onDone) {
398992
399148
  onDone("/output-style has been deprecated. Use /config to change your output style, or set it in your settings file. Changes take effect on the next session.", {
398993
399149
  display: "system"
398994
399150
  });
@@ -399507,9 +399663,9 @@ var init_RemoteEnvironmentDialog = __esm(() => {
399507
399663
  // commands/remote-env/remote-env.tsx
399508
399664
  var exports_remote_env = {};
399509
399665
  __export(exports_remote_env, {
399510
- call: () => call68
399666
+ call: () => call69
399511
399667
  });
399512
- async function call68(onDone) {
399668
+ async function call69(onDone) {
399513
399669
  return /* @__PURE__ */ jsx_runtime351.jsx(RemoteEnvironmentDialog, {
399514
399670
  onDone
399515
399671
  });
@@ -399654,13 +399810,13 @@ async function updateReleaseBundle() {
399654
399810
  await gracefulShutdown(1);
399655
399811
  return;
399656
399812
  }
399657
- if (gte({ VERSION: "0.2.39", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
399658
- writeToStdout(source_default.green(`Theus is up to date (${{ VERSION: "0.2.39", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION})`) + `
399813
+ if (gte({ VERSION: "0.2.41", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
399814
+ writeToStdout(source_default.green(`Theus is up to date (${{ VERSION: "0.2.41", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION})`) + `
399659
399815
  `);
399660
399816
  await gracefulShutdown(0);
399661
399817
  return;
399662
399818
  }
399663
- writeToStdout(`New version available: ${latest} (current: ${{ VERSION: "0.2.39", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION})
399819
+ writeToStdout(`New version available: ${latest} (current: ${{ VERSION: "0.2.41", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION})
399664
399820
  `);
399665
399821
  writeToStdout(`Installing update from theus.pe/dl...
399666
399822
  `);
@@ -399694,7 +399850,7 @@ async function updateReleaseBundle() {
399694
399850
  return;
399695
399851
  }
399696
399852
  cpSync(staged, bundleDir, { recursive: true, force: true });
399697
- writeToStdout(source_default.green(`Successfully updated from ${{ VERSION: "0.2.39", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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}`) + `
399853
+ writeToStdout(source_default.green(`Successfully updated from ${{ VERSION: "0.2.41", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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}`) + `
399698
399854
  `);
399699
399855
  await regenerateCompletionCache();
399700
399856
  } finally {
@@ -399707,7 +399863,7 @@ async function updateReleaseBundle() {
399707
399863
  async function update() {
399708
399864
  logEvent("tengu_update_check", {});
399709
399865
  await updateNaupa();
399710
- writeToStdout(`Current version: ${{ VERSION: "0.2.39", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION}
399866
+ writeToStdout(`Current version: ${{ VERSION: "0.2.41", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION}
399711
399867
  `);
399712
399868
  const channel2 = getInitialSettings()?.autoUpdatesChannel ?? "latest";
399713
399869
  writeToStdout(`Checking for updates to ${channel2} version...
@@ -399786,8 +399942,8 @@ async function update() {
399786
399942
  writeToStdout(`Theus is managed by Homebrew.
399787
399943
  `);
399788
399944
  const latest = await getLatestVersion(channel2);
399789
- if (latest && !gte({ VERSION: "0.2.39", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
399790
- writeToStdout(`Update available: ${{ VERSION: "0.2.39", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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}
399945
+ if (latest && !gte({ VERSION: "0.2.41", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
399946
+ writeToStdout(`Update available: ${{ VERSION: "0.2.41", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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}
399791
399947
  `);
399792
399948
  writeToStdout(`
399793
399949
  `);
@@ -399803,8 +399959,8 @@ async function update() {
399803
399959
  writeToStdout(`Theus is managed by winget.
399804
399960
  `);
399805
399961
  const latest = await getLatestVersion(channel2);
399806
- if (latest && !gte({ VERSION: "0.2.39", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
399807
- writeToStdout(`Update available: ${{ VERSION: "0.2.39", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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}
399962
+ if (latest && !gte({ VERSION: "0.2.41", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
399963
+ writeToStdout(`Update available: ${{ VERSION: "0.2.41", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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}
399808
399964
  `);
399809
399965
  writeToStdout(`
399810
399966
  `);
@@ -399820,8 +399976,8 @@ async function update() {
399820
399976
  writeToStdout(`Theus is managed by apk.
399821
399977
  `);
399822
399978
  const latest = await getLatestVersion(channel2);
399823
- if (latest && !gte({ VERSION: "0.2.39", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
399824
- writeToStdout(`Update available: ${{ VERSION: "0.2.39", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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}
399979
+ if (latest && !gte({ VERSION: "0.2.41", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
399980
+ writeToStdout(`Update available: ${{ VERSION: "0.2.41", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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}
399825
399981
  `);
399826
399982
  writeToStdout(`
399827
399983
  `);
@@ -399886,11 +400042,11 @@ async function update() {
399886
400042
  `);
399887
400043
  await gracefulShutdown(1);
399888
400044
  }
399889
- if (result.latestVersion === { VERSION: "0.2.39", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION) {
399890
- writeToStdout(source_default.green(`Theus is up to date (${{ VERSION: "0.2.39", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION})`) + `
400045
+ if (result.latestVersion === { VERSION: "0.2.41", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION) {
400046
+ writeToStdout(source_default.green(`Theus is up to date (${{ VERSION: "0.2.41", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION})`) + `
399891
400047
  `);
399892
400048
  } else {
399893
- writeToStdout(source_default.green(`Successfully updated from ${{ VERSION: "0.2.39", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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}`) + `
400049
+ writeToStdout(source_default.green(`Successfully updated from ${{ VERSION: "0.2.41", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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}`) + `
399894
400050
  `);
399895
400051
  await regenerateCompletionCache();
399896
400052
  }
@@ -399909,9 +400065,9 @@ async function update() {
399909
400065
  await removeInstalledSymlink();
399910
400066
  }
399911
400067
  logForDebugging("update: Checking npm registry for latest version");
399912
- logForDebugging(`update: Package URL: ${{ VERSION: "0.2.39", BUILD_TIME: "1970-01-01T00:00:00.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}`);
400068
+ logForDebugging(`update: Package URL: ${{ VERSION: "0.2.41", BUILD_TIME: "1970-01-01T00:00:00.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}`);
399913
400069
  const npmTag = channel2 === "stable" ? "stable" : "latest";
399914
- const npmCommand = `npm view ${{ VERSION: "0.2.39", BUILD_TIME: "1970-01-01T00:00:00.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`;
400070
+ const npmCommand = `npm view ${{ VERSION: "0.2.41", BUILD_TIME: "1970-01-01T00:00:00.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`;
399915
400071
  logForDebugging(`update: Running: ${npmCommand}`);
399916
400072
  const latestVersion = await getLatestVersion(channel2);
399917
400073
  logForDebugging(`update: Latest version from npm: ${latestVersion || "FAILED"}`);
@@ -399931,7 +400087,7 @@ async function update() {
399931
400087
  `);
399932
400088
  process.stderr.write(` \u2022 Corporate proxy/firewall blocking npm
399933
400089
  `);
399934
- if ({ VERSION: "0.2.39", BUILD_TIME: "1970-01-01T00:00:00.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.39", BUILD_TIME: "1970-01-01T00:00:00.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")) {
400090
+ if ({ VERSION: "0.2.41", BUILD_TIME: "1970-01-01T00:00:00.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.41", BUILD_TIME: "1970-01-01T00:00:00.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")) {
399935
400091
  process.stderr.write(` \u2022 Internal/development build not published to npm
399936
400092
  `);
399937
400093
  }
@@ -399943,19 +400099,19 @@ async function update() {
399943
400099
  `);
399944
400100
  process.stderr.write(` \u2022 Run with --debug flag for more details
399945
400101
  `);
399946
- const packageName = { VERSION: "0.2.39", BUILD_TIME: "1970-01-01T00:00:00.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");
400102
+ const packageName = { VERSION: "0.2.41", BUILD_TIME: "1970-01-01T00:00:00.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");
399947
400103
  process.stderr.write(` \u2022 Manually check: npm view ${packageName} version
399948
400104
  `);
399949
400105
  process.stderr.write(` \u2022 Check if you need to login: npm whoami
399950
400106
  `);
399951
400107
  await gracefulShutdown(1);
399952
400108
  }
399953
- if (gte({ VERSION: "0.2.39", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
399954
- writeToStdout(source_default.green(`Theus is up to date (${{ VERSION: "0.2.39", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION})`) + `
400109
+ if (gte({ VERSION: "0.2.41", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
400110
+ writeToStdout(source_default.green(`Theus is up to date (${{ VERSION: "0.2.41", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION})`) + `
399955
400111
  `);
399956
400112
  await gracefulShutdown(0);
399957
400113
  }
399958
- writeToStdout(`New version available: ${latestVersion} (current: ${{ VERSION: "0.2.39", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION})
400114
+ writeToStdout(`New version available: ${latestVersion} (current: ${{ VERSION: "0.2.41", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION})
399959
400115
  `);
399960
400116
  writeToStdout(`Installing update...
399961
400117
  `);
@@ -400000,7 +400156,7 @@ async function update() {
400000
400156
  logForDebugging(`update: Installation status: ${status2}`);
400001
400157
  switch (status2) {
400002
400158
  case "success":
400003
- writeToStdout(source_default.green(`Successfully updated from ${{ VERSION: "0.2.39", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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}`) + `
400159
+ writeToStdout(source_default.green(`Successfully updated from ${{ VERSION: "0.2.41", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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}`) + `
400004
400160
  `);
400005
400161
  await regenerateCompletionCache();
400006
400162
  break;
@@ -400010,7 +400166,7 @@ async function update() {
400010
400166
  if (useLocalUpdate) {
400011
400167
  process.stderr.write(`Try manually updating with:
400012
400168
  `);
400013
- process.stderr.write(` cd ~/.theus/local && npm update ${{ VERSION: "0.2.39", BUILD_TIME: "1970-01-01T00:00:00.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}
400169
+ process.stderr.write(` cd ~/.theus/local && npm update ${{ VERSION: "0.2.41", BUILD_TIME: "1970-01-01T00:00:00.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}
400014
400170
  `);
400015
400171
  } else {
400016
400172
  process.stderr.write(`Try running with sudo or fix npm permissions
@@ -400026,7 +400182,7 @@ async function update() {
400026
400182
  if (useLocalUpdate) {
400027
400183
  process.stderr.write(`Try manually updating with:
400028
400184
  `);
400029
- process.stderr.write(` cd ~/.theus/local && npm update ${{ VERSION: "0.2.39", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.PACKAGE_URL}
400185
+ process.stderr.write(` cd ~/.theus/local && npm update ${{ VERSION: "0.2.41", BUILD_TIME: "1970-01-01T00:00:00.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}
400030
400186
  `);
400031
400187
  } else {
400032
400188
  process.stderr.write(`Or consider using native installation with: theus install
@@ -400065,9 +400221,9 @@ var init_update = __esm(() => {
400065
400221
  // commands/update/update.ts
400066
400222
  var exports_update2 = {};
400067
400223
  __export(exports_update2, {
400068
- call: () => call69
400224
+ call: () => call70
400069
400225
  });
400070
- var call69 = async () => {
400226
+ var call70 = async () => {
400071
400227
  await update();
400072
400228
  return { type: "skip" };
400073
400229
  };
@@ -400092,9 +400248,9 @@ var init_update3 = __esm(() => {
400092
400248
  // commands/upgrade/upgrade.tsx
400093
400249
  var exports_upgrade = {};
400094
400250
  __export(exports_upgrade, {
400095
- call: () => call70
400251
+ call: () => call71
400096
400252
  });
400097
- async function call70(onDone, context3) {
400253
+ async function call71(onDone, context3) {
400098
400254
  try {
400099
400255
  if (isTheusAISubscriber()) {
400100
400256
  const tokens = getTheusAIOAuthTokens();
@@ -400154,7 +400310,7 @@ var init_upgrade2 = __esm(() => {
400154
400310
  // commands/rate-limit-options/rate-limit-options.tsx
400155
400311
  var exports_rate_limit_options = {};
400156
400312
  __export(exports_rate_limit_options, {
400157
- call: () => call71
400313
+ call: () => call72
400158
400314
  });
400159
400315
  function RateLimitOptionsMenu(t0) {
400160
400316
  const $2 = c3(25);
@@ -400288,7 +400444,7 @@ function RateLimitOptionsMenu(t0) {
400288
400444
  t5 = function handleSelect(value) {
400289
400445
  if (value === "upgrade") {
400290
400446
  logEvent("tengu_rate_limit_options_menu_select_upgrade", {});
400291
- call70(onDone, context3).then((jsx350) => {
400447
+ call71(onDone, context3).then((jsx350) => {
400292
400448
  if (jsx350) {
400293
400449
  setSubCommandJSX(jsx350);
400294
400450
  }
@@ -400348,7 +400504,7 @@ function RateLimitOptionsMenu(t0) {
400348
400504
  }
400349
400505
  return t7;
400350
400506
  }
400351
- async function call71(onDone, context3) {
400507
+ async function call72(onDone, context3) {
400352
400508
  return /* @__PURE__ */ jsx_runtime353.jsx(RateLimitOptionsMenu, {
400353
400509
  onDone,
400354
400510
  context: context3
@@ -400422,7 +400578,7 @@ var exports_effort = {};
400422
400578
  __export(exports_effort, {
400423
400579
  showCurrentEffort: () => showCurrentEffort,
400424
400580
  executeEffort: () => executeEffort,
400425
- call: () => call72
400581
+ call: () => call73
400426
400582
  });
400427
400583
  function setEffortValue(effortValue) {
400428
400584
  const persistable = toPersistableEffort(effortValue);
@@ -400573,7 +400729,7 @@ function ApplyEffortAndClose(t0) {
400573
400729
  React117.useEffect(t1, t2);
400574
400730
  return null;
400575
400731
  }
400576
- async function call72(onDone, _context, args) {
400732
+ async function call73(onDone, _context, args) {
400577
400733
  args = args?.trim() || "";
400578
400734
  if (COMMON_HELP_ARGS2.includes(args)) {
400579
400735
  onDone(`Usage: /effort [low|medium|high|max|auto]
@@ -403482,9 +403638,9 @@ var init_Stats = __esm(() => {
403482
403638
  // commands/stats/stats.tsx
403483
403639
  var exports_stats = {};
403484
403640
  __export(exports_stats, {
403485
- call: () => call73
403641
+ call: () => call74
403486
403642
  });
403487
- var jsx_runtime356, call73 = async (onDone) => {
403643
+ var jsx_runtime356, call74 = async (onDone) => {
403488
403644
  return /* @__PURE__ */ jsx_runtime356.jsx(Stats, {
403489
403645
  onClose: onDone
403490
403646
  });
@@ -403590,7 +403746,7 @@ function statusLine() {
403590
403746
  return "Modo proactivo: ACTIVO (en pausa).";
403591
403747
  return "Modo proactivo: ACTIVO.";
403592
403748
  }
403593
- var ON_MESSAGE, call74 = async (args) => {
403749
+ var ON_MESSAGE, call75 = async (args) => {
403594
403750
  const arg = (args ?? "").trim().toLowerCase();
403595
403751
  let value;
403596
403752
  switch (arg) {
@@ -403674,7 +403830,7 @@ var init_proactive2 = __esm(() => {
403674
403830
  userInvocable: true,
403675
403831
  disableModelInvocation: true,
403676
403832
  supportsNonInteractive: true,
403677
- load: () => Promise.resolve({ call: call74 })
403833
+ load: () => Promise.resolve({ call: call75 })
403678
403834
  };
403679
403835
  proactive_default = proactive;
403680
403836
  });
@@ -403863,7 +404019,7 @@ var exports_assistant = {};
403863
404019
  __export(exports_assistant, {
403864
404020
  installAssistant: () => installAssistant,
403865
404021
  computeDefaultInstallDir: () => computeDefaultInstallDir,
403866
- call: () => call75,
404022
+ call: () => call76,
403867
404023
  NewInstallWizard: () => NewInstallWizard
403868
404024
  });
403869
404025
  import { existsSync as existsSync19, mkdirSync as mkdirSync10, readFileSync as readFileSync25, writeFileSync as writeFileSync8 } from "fs";
@@ -404020,7 +404176,7 @@ function AssistantCommandFlow({
404020
404176
  onCancel: () => onDone()
404021
404177
  });
404022
404178
  }
404023
- async function call75(onDone, _context, _args) {
404179
+ async function call76(onDone, _context, _args) {
404024
404180
  return /* @__PURE__ */ jsx_runtime358.jsx(AssistantCommandFlow, {
404025
404181
  onDone
404026
404182
  });
@@ -404207,7 +404363,7 @@ function renderList(cwd2) {
404207
404363
  return L2.join(`
404208
404364
  `);
404209
404365
  }
404210
- function parseArgs(str2) {
404366
+ function parseArgs2(str2) {
404211
404367
  const s = (str2 ?? "").trim();
404212
404368
  if (!s)
404213
404369
  return {};
@@ -404220,7 +404376,7 @@ function parseArgs(str2) {
404220
404376
  }
404221
404377
  return { input: s };
404222
404378
  }
404223
- var WORKFLOW_EXTS, ANCHO = 64, REGLA, HELP, call76 = async (rawArgs, context3) => {
404379
+ var WORKFLOW_EXTS, ANCHO = 64, REGLA, HELP, call77 = async (rawArgs, context3) => {
404224
404380
  const cwd2 = safeCwd2();
404225
404381
  const raw = (rawArgs ?? "").trim();
404226
404382
  const parts = raw.length ? raw.split(/\s+/) : [];
@@ -404255,7 +404411,7 @@ var WORKFLOW_EXTS, ANCHO = 64, REGLA, HELP, call76 = async (rawArgs, context3) =
404255
404411
  ` + renderList(cwd2)
404256
404412
  };
404257
404413
  }
404258
- const args = parseArgs(argStr2);
404414
+ const args = parseArgs2(argStr2);
404259
404415
  const setAppState = context3.setAppStateForTasks ?? context3.setAppState;
404260
404416
  if (typeof setAppState !== "function") {
404261
404417
  return {
@@ -404386,7 +404542,7 @@ var init_workflows = __esm(() => {
404386
404542
  userInvocable: true,
404387
404543
  disableModelInvocation: true,
404388
404544
  supportsNonInteractive: true,
404389
- load: () => Promise.resolve({ call: call76 })
404545
+ load: () => Promise.resolve({ call: call77 })
404390
404546
  };
404391
404547
  workflows_default = workflows;
404392
404548
  });
@@ -404613,7 +404769,7 @@ function PeersPanel({ onDone }) {
404613
404769
  ]
404614
404770
  });
404615
404771
  }
404616
- var import_react195, jsx_runtime359, KIND_LABELS, call77 = async (onDone) => {
404772
+ var import_react195, jsx_runtime359, KIND_LABELS, call78 = async (onDone) => {
404617
404773
  return /* @__PURE__ */ jsx_runtime359.jsx(PeersPanel, {
404618
404774
  onDone
404619
404775
  });
@@ -404635,7 +404791,7 @@ var init_peers = __esm(() => {
404635
404791
  name: "peers",
404636
404792
  description: "Lista otras sesiones de Theus vivas en esta m\xE1quina",
404637
404793
  isEnabled: () => isUdsInboxEnabled(),
404638
- load: () => Promise.resolve({ call: call77 })
404794
+ load: () => Promise.resolve({ call: call78 })
404639
404795
  };
404640
404796
  peers_default = peers;
404641
404797
  });
@@ -405314,7 +405470,7 @@ var init_sprites = __esm(() => {
405314
405470
  // commands/buddy/buddy.tsx
405315
405471
  var exports_buddy = {};
405316
405472
  __export(exports_buddy, {
405317
- call: () => call78
405473
+ call: () => call79
405318
405474
  });
405319
405475
  async function generateSoul(bones, inspirationSeed) {
405320
405476
  const especie = SPECIES_ES[bones.species];
@@ -405591,7 +405747,7 @@ function BuddyPanel({
405591
405747
  ]
405592
405748
  });
405593
405749
  }
405594
- var import_react197, jsx_runtime361, HATCH_TIMEOUT_MS = 15000, TICK_MS2 = 400, call78 = async (onDone, _context, args) => {
405750
+ var import_react197, jsx_runtime361, HATCH_TIMEOUT_MS = 15000, TICK_MS2 = 400, call79 = async (onDone, _context, args) => {
405595
405751
  const arg = (args ?? "").trim().toLowerCase();
405596
405752
  if (arg === "silencio" || arg === "silenciar" || arg === "mute") {
405597
405753
  const config3 = getGlobalConfig();
@@ -405918,6 +406074,7 @@ var init_commands2 = __esm(() => {
405918
406074
  init_onboarding();
405919
406075
  init_pr_comments();
405920
406076
  init_providers3();
406077
+ init_recarga();
405921
406078
  init_release_notes2();
405922
406079
  init_rename2();
405923
406080
  init_resume2();
@@ -406062,6 +406219,7 @@ var init_commands2 = __esm(() => {
406062
406219
  plugin_default,
406063
406220
  pr_comments_default,
406064
406221
  providers_default,
406222
+ recarga_default,
406065
406223
  release_notes_default,
406066
406224
  reload_plugins_default,
406067
406225
  rename_default,
@@ -409103,7 +409261,7 @@ var init_sessionStorage = __esm(() => {
409103
409261
  init_settings2();
409104
409262
  init_slowOperations();
409105
409263
  init_uuid();
409106
- VERSION4 = { VERSION: "0.2.39", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION;
409264
+ VERSION4 = { VERSION: "0.2.41", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION;
409107
409265
  MAX_TOMBSTONE_REWRITE_BYTES = 50 * 1024 * 1024;
409108
409266
  SKIP_FIRST_PROMPT_PATTERN = /^(?:\s*<[a-z][\w-]*[\s>]|\[Request interrupted by user[^\]]*\])/;
409109
409267
  EPHEMERAL_PROGRESS_TYPES = new Set([
@@ -410308,7 +410466,7 @@ var init_filesystem = __esm(() => {
410308
410466
  });
410309
410467
  getBundledSkillsRoot = memoize_default(function getBundledSkillsRoot2() {
410310
410468
  const nonce = randomBytes21(16).toString("hex");
410311
- return join149(getTheusTempDir(), "bundled-skills", { VERSION: "0.2.39", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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);
410469
+ return join149(getTheusTempDir(), "bundled-skills", { VERSION: "0.2.41", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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);
410312
410470
  });
410313
410471
  getResolvedWorkingDirPaths = memoize_default(getPathsForPermissionCheck);
410314
410472
  });
@@ -415487,7 +415645,7 @@ function getSimpleDoingTasksSection() {
415487
415645
  ];
415488
415646
  const userHelpSubitems = [
415489
415647
  `/help: Get help with using Theus`,
415490
- `To give feedback, users should ${{ VERSION: "0.2.39", BUILD_TIME: "1970-01-01T00:00:00.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}`
415648
+ `To give feedback, users should ${{ VERSION: "0.2.41", BUILD_TIME: "1970-01-01T00:00:00.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}`
415491
415649
  ];
415492
415650
  const items = [
415493
415651
  `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.`,
@@ -416387,7 +416545,7 @@ function computeFingerprint(messageText, version3) {
416387
416545
  }
416388
416546
  function computeFingerprintFromMessages(messages) {
416389
416547
  const firstMessageText = extractFirstMessageText(messages);
416390
- return computeFingerprint(firstMessageText, { VERSION: "0.2.39", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION);
416548
+ return computeFingerprint(firstMessageText, { VERSION: "0.2.41", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION);
416391
416549
  }
416392
416550
  var FINGERPRINT_SALT = "59cf53e54c78";
416393
416551
  var init_fingerprint = () => {};
@@ -418496,10 +418654,10 @@ function blocksFromOpenAIMessage(message) {
418496
418654
  }
418497
418655
  }
418498
418656
  if (Array.isArray(message.tool_calls)) {
418499
- for (const call79 of message.tool_calls) {
418500
- if (!call79 || typeof call79 !== "object")
418657
+ for (const call80 of message.tool_calls) {
418658
+ if (!call80 || typeof call80 !== "object")
418501
418659
  continue;
418502
- const typed = call79;
418660
+ const typed = call80;
418503
418661
  const name = typed.function?.name;
418504
418662
  if (!name)
418505
418663
  continue;
@@ -418947,7 +419105,7 @@ async function sideQuery(opts) {
418947
419105
  betas.push(STRUCTURED_OUTPUTS_BETA_HEADER);
418948
419106
  }
418949
419107
  const messageText = extractFirstUserMessageText(messages);
418950
- const fingerprint = computeFingerprint(messageText, { VERSION: "0.2.39", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION);
419108
+ const fingerprint = computeFingerprint(messageText, { VERSION: "0.2.41", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION);
418951
419109
  const attributionHeader = getAttributionHeader(fingerprint);
418952
419110
  const systemBlocks = [
418953
419111
  attributionHeader ? { type: "text", text: attributionHeader } : null,
@@ -420250,7 +420408,7 @@ async function handleMemories(state) {
420250
420408
  async function runProjectContextMcpServer() {
420251
420409
  const projectRoot = process.env.THEUS_PROJECT_ROOT || process.cwd();
420252
420410
  const state = new ProjectContextState(projectRoot);
420253
- const server2 = new Server({ name: SERVER_NAME, version: { VERSION: "0.2.39", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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: {} } });
420411
+ const server2 = new Server({ name: SERVER_NAME, version: { VERSION: "0.2.41", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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: {} } });
420254
420412
  server2.setRequestHandler(ListToolsRequestSchema, async () => ({
420255
420413
  tools: TOOL_DEFINITIONS.map((t) => ({
420256
420414
  name: t.name,
@@ -422230,7 +422388,7 @@ function createBridgeLogger(options2) {
422230
422388
  connectUrl = buildBridgeConnectUrl(environmentId, cachedIngressUrl);
422231
422389
  regenerateQr(connectUrl);
422232
422390
  if (verbose) {
422233
- write(source_default.dim(`Remote Control`) + ` v${{ VERSION: "0.2.39", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION}
422391
+ write(source_default.dim(`Remote Control`) + ` v${{ VERSION: "0.2.41", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION}
422234
422392
  `);
422235
422393
  }
422236
422394
  if (verbose) {
@@ -423203,7 +423361,7 @@ function appendToLog(path19, message) {
423203
423361
  cwd: getFsImplementation().cwd(),
423204
423362
  userType: process.env.USER_TYPE,
423205
423363
  sessionId: getSessionId(),
423206
- version: { VERSION: "0.2.39", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
423364
+ version: { VERSION: "0.2.41", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
423207
423365
  };
423208
423366
  getLogWriter(path19).write(messageWithTimestamp);
423209
423367
  }
@@ -423307,7 +423465,7 @@ var exports_bridgeMain = {};
423307
423465
  __export(exports_bridgeMain, {
423308
423466
  runBridgeLoop: () => runBridgeLoop,
423309
423467
  runBridgeHeadless: () => runBridgeHeadless,
423310
- parseArgs: () => parseArgs2,
423468
+ parseArgs: () => parseArgs3,
423311
423469
  isServerError: () => isServerError,
423312
423470
  isConnectionError: () => isConnectionError,
423313
423471
  bridgeMain: () => bridgeMain,
@@ -424126,7 +424284,7 @@ function parseCapacityValue(raw) {
424126
424284
  }
424127
424285
  return n3;
424128
424286
  }
424129
- function parseArgs2(args) {
424287
+ function parseArgs3(args) {
424130
424288
  let verbose = false;
424131
424289
  let sandbox = false;
424132
424290
  let debugFile;
@@ -424293,7 +424451,7 @@ async function fetchSessionTitle(compatSessionId, baseUrl) {
424293
424451
  return session2?.title || undefined;
424294
424452
  }
424295
424453
  async function bridgeMain(args) {
424296
- const parsed = parseArgs2(args);
424454
+ const parsed = parseArgs3(args);
424297
424455
  if (parsed.help) {
424298
424456
  await printHelp();
424299
424457
  return;
@@ -424473,7 +424631,7 @@ Spawn mode for this project:
424473
424631
  const api2 = createBridgeApiClient({
424474
424632
  baseUrl,
424475
424633
  getAccessToken: getBridgeAccessToken2,
424476
- runnerVersion: { VERSION: "0.2.39", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
424634
+ runnerVersion: { VERSION: "0.2.41", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
424477
424635
  onDebug: logForDebugging,
424478
424636
  onAuth401: handleOAuth401Error2,
424479
424637
  getTrustedDeviceToken
@@ -424711,7 +424869,7 @@ async function runBridgeHeadless(opts, signal) {
424711
424869
  const api2 = createBridgeApiClient({
424712
424870
  baseUrl,
424713
424871
  getAccessToken: opts.getAccessToken,
424714
- runnerVersion: { VERSION: "0.2.39", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
424872
+ runnerVersion: { VERSION: "0.2.41", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
424715
424873
  onDebug: log2,
424716
424874
  onAuth401: opts.onAuth401,
424717
424875
  getTrustedDeviceToken
@@ -428775,7 +428933,7 @@ function buildSystemInitMessage(inputs) {
428775
428933
  slash_commands: inputs.commands.filter((c5) => c5.userInvocable !== false).map((c5) => c5.name),
428776
428934
  apiKeySource: getTheusApiKeyWithSource().source,
428777
428935
  betas: getSdkBetas(),
428778
- theus_code_version: { VERSION: "0.2.39", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
428936
+ theus_code_version: { VERSION: "0.2.41", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
428779
428937
  output_style: outputStyle2,
428780
428938
  agents: inputs.agents.map((agent) => agent.agentType),
428781
428939
  skills: inputs.skills.filter((s) => s.userInvocable !== false).map((skill) => skill.name),
@@ -428815,8 +428973,8 @@ async function getEnvLessBridgeConfig() {
428815
428973
  }
428816
428974
  async function checkEnvLessBridgeMinVersion() {
428817
428975
  const cfg = await getEnvLessBridgeConfig();
428818
- if (cfg.min_version && lt({ VERSION: "0.2.39", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
428819
- return `Your version of Theus (${{ VERSION: "0.2.39", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.
428976
+ if (cfg.min_version && lt({ VERSION: "0.2.41", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
428977
+ return `Your version of Theus (${{ VERSION: "0.2.41", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.
428820
428978
  Version ${cfg.min_version} or higher is required. Run \`theus update\` to update.`;
428821
428979
  }
428822
428980
  return null;
@@ -431139,7 +431297,7 @@ async function initBridgeCore(params) {
431139
431297
  const rawApi = createBridgeApiClient({
431140
431298
  baseUrl,
431141
431299
  getAccessToken,
431142
- runnerVersion: { VERSION: "0.2.39", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
431300
+ runnerVersion: { VERSION: "0.2.41", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
431143
431301
  onDebug: logForDebugging,
431144
431302
  onAuth401,
431145
431303
  getTrustedDeviceToken
@@ -447880,7 +448038,7 @@ var init_useVoiceEnabled = __esm(() => {
447880
448038
  function getSemverPart(version3) {
447881
448039
  return `${import_semver14.major(version3, { loose: true })}.${import_semver14.minor(version3, { loose: true })}.${import_semver14.patch(version3, { loose: true })}`;
447882
448040
  }
447883
- function useUpdateNotification(updatedVersion, initialVersion = { VERSION: "0.2.39", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION) {
448041
+ function useUpdateNotification(updatedVersion, initialVersion = { VERSION: "0.2.41", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION) {
447884
448042
  const [lastNotifiedSemver, setLastNotifiedSemver] = import_react231.useState(() => getSemverPart(initialVersion));
447885
448043
  if (!updatedVersion) {
447886
448044
  return null;
@@ -447920,7 +448078,7 @@ function AutoUpdater({
447920
448078
  return;
447921
448079
  }
447922
448080
  if (false) {}
447923
- const currentVersion = { VERSION: "0.2.39", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION;
448081
+ const currentVersion = { VERSION: "0.2.41", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION;
447924
448082
  const channel2 = getInitialSettings()?.autoUpdatesChannel ?? "latest";
447925
448083
  let latestVersion = await getLatestVersion(channel2);
447926
448084
  const isDisabled2 = isAutoUpdaterDisabled();
@@ -448056,7 +448214,7 @@ function AutoUpdater({
448056
448214
  " ",
448057
448215
  /* @__PURE__ */ jsx_runtime406.jsx(ThemedText, {
448058
448216
  bold: true,
448059
- children: hasLocalInstall ? `cd ~/.theus/local && npm update ${{ VERSION: "0.2.39", BUILD_TIME: "1970-01-01T00:00:00.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.39", BUILD_TIME: "1970-01-01T00:00:00.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}`
448217
+ children: hasLocalInstall ? `cd ~/.theus/local && npm update ${{ VERSION: "0.2.41", BUILD_TIME: "1970-01-01T00:00:00.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.41", BUILD_TIME: "1970-01-01T00:00:00.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}`
448060
448218
  })
448061
448219
  ]
448062
448220
  })
@@ -448133,12 +448291,12 @@ function NativeAutoUpdater({
448133
448291
  logEvent("tengu_native_auto_updater_start", {});
448134
448292
  try {
448135
448293
  const maxVersion = await getMaxVersion();
448136
- if (maxVersion && gt({ VERSION: "0.2.39", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
448294
+ if (maxVersion && gt({ VERSION: "0.2.41", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
448137
448295
  const msg = await getMaxVersionMessage();
448138
448296
  setMaxVersionIssue(msg ?? "affects your version");
448139
448297
  }
448140
448298
  const result = await installLatest(channel2);
448141
- const currentVersion = { VERSION: "0.2.39", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION;
448299
+ const currentVersion = { VERSION: "0.2.41", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION;
448142
448300
  const latencyMs = Date.now() - startTime2;
448143
448301
  if (result.lockFailed) {
448144
448302
  logEvent("tengu_native_auto_updater_lock_contention", {
@@ -448275,17 +448433,17 @@ function PackageManagerAutoUpdater(t0) {
448275
448433
  const maxVersion = await getMaxVersion();
448276
448434
  if (maxVersion && latest && gt(latest, maxVersion)) {
448277
448435
  logForDebugging(`PackageManagerAutoUpdater: maxVersion ${maxVersion} is set, capping update from ${latest} to ${maxVersion}`);
448278
- if (gte({ VERSION: "0.2.39", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
448279
- logForDebugging(`PackageManagerAutoUpdater: current version ${{ VERSION: "0.2.39", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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`);
448436
+ if (gte({ VERSION: "0.2.41", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
448437
+ logForDebugging(`PackageManagerAutoUpdater: current version ${{ VERSION: "0.2.41", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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`);
448280
448438
  setUpdateAvailable(false);
448281
448439
  return;
448282
448440
  }
448283
448441
  latest = maxVersion;
448284
448442
  }
448285
- const hasUpdate = latest && !gte({ VERSION: "0.2.39", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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);
448443
+ const hasUpdate = latest && !gte({ VERSION: "0.2.41", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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);
448286
448444
  setUpdateAvailable(!!hasUpdate);
448287
448445
  if (hasUpdate) {
448288
- logForDebugging(`PackageManagerAutoUpdater: Update available ${{ VERSION: "0.2.39", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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}`);
448446
+ logForDebugging(`PackageManagerAutoUpdater: Update available ${{ VERSION: "0.2.41", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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}`);
448289
448447
  }
448290
448448
  };
448291
448449
  $2[0] = t1;
@@ -448319,7 +448477,7 @@ function PackageManagerAutoUpdater(t0) {
448319
448477
  wrap: "truncate",
448320
448478
  children: [
448321
448479
  "currentVersion: ",
448322
- { VERSION: "0.2.39", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
448480
+ { VERSION: "0.2.41", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
448323
448481
  ]
448324
448482
  });
448325
448483
  $2[3] = verbose;
@@ -456192,7 +456350,7 @@ function buildStatusLineCommandInput(permissionMode, exceeds200kTokens, settings
456192
456350
  project_dir: getOriginalCwd(),
456193
456351
  added_dirs: addedDirs
456194
456352
  },
456195
- version: { VERSION: "0.2.39", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
456353
+ version: { VERSION: "0.2.41", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
456196
456354
  output_style: {
456197
456355
  name: outputStyleName
456198
456356
  },
@@ -467612,7 +467770,7 @@ async function submitTranscriptShare(messages, trigger, appearanceId) {
467612
467770
  } catch {}
467613
467771
  const data = {
467614
467772
  trigger,
467615
- version: { VERSION: "0.2.39", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
467773
+ version: { VERSION: "0.2.41", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
467616
467774
  platform: process.platform,
467617
467775
  transcript,
467618
467776
  subagentTranscripts: Object.keys(subagentTranscripts).length > 0 ? subagentTranscripts : undefined,
@@ -480619,7 +480777,7 @@ function completeOnboarding() {
480619
480777
  saveGlobalConfig((current) => ({
480620
480778
  ...current,
480621
480779
  hasCompletedOnboarding: true,
480622
- lastOnboardingVersion: { VERSION: "0.2.39", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
480780
+ lastOnboardingVersion: { VERSION: "0.2.41", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
480623
480781
  }));
480624
480782
  }
480625
480783
  function showDialog(root2, renderer) {
@@ -491507,7 +491665,7 @@ async function startMCPServer(cwd3, debug3, verbose) {
491507
491665
  setCwd(cwd3);
491508
491666
  const server2 = new Server({
491509
491667
  name: "theus/tengu",
491510
- version: { VERSION: "0.2.39", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
491668
+ version: { VERSION: "0.2.41", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
491511
491669
  }, {
491512
491670
  capabilities: {
491513
491671
  tools: {}
@@ -492949,7 +493107,7 @@ async function setupTokenHandler(root2) {
492949
493107
  gap: 1,
492950
493108
  children: [
492951
493109
  /* @__PURE__ */ jsx_runtime493.jsx(TheusBanner, {
492952
- version: { VERSION: "0.2.39", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
493110
+ version: { VERSION: "0.2.41", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
492953
493111
  }),
492954
493112
  showAuthWarning && /* @__PURE__ */ jsx_runtime493.jsxs(ThemedBox_default, {
492955
493113
  flexDirection: "column",
@@ -494431,7 +494589,7 @@ ${assistantAddendum}` : assistantAddendum;
494431
494589
  }
494432
494590
  }
494433
494591
  logForDiagnosticsNoPII("info", "started", {
494434
- version: { VERSION: "0.2.39", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
494592
+ version: { VERSION: "0.2.41", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
494435
494593
  is_native_binary: isInBundledMode()
494436
494594
  });
494437
494595
  registerCleanup(async () => {
@@ -495299,7 +495457,7 @@ Usage: theus --remote "your task description"`, () => gracefulShutdown(1));
495299
495457
  pendingHookMessages
495300
495458
  }, renderAndRun);
495301
495459
  }
495302
- }).version(`${{ VERSION: "0.2.39", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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");
495460
+ }).version(`${{ VERSION: "0.2.41", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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");
495303
495461
  program2.option("-w, --worktree [name]", "Crea un nuevo worktree de git para esta sesi\xF3n (opcionalmente indica un nombre)");
495304
495462
  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.");
495305
495463
  if (canUserConfigureAdvisor()) {
@@ -495851,7 +496009,7 @@ if (false) {}
495851
496009
  async function main2() {
495852
496010
  const args = process.argv.slice(2);
495853
496011
  if (args.length === 1 && (args[0] === "--version" || args[0] === "-v" || args[0] === "-V")) {
495854
- console.log(`${{ VERSION: "0.2.39", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)`);
496012
+ console.log(`${{ VERSION: "0.2.41", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)`);
495855
496013
  return;
495856
496014
  }
495857
496015
  const {