theus-cli 0.2.78 → 0.2.80

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.
package/cli.js CHANGED
@@ -44338,13 +44338,27 @@ function findExecutable(executable) {
44338
44338
  }
44339
44339
  }
44340
44340
  function setShellIfWindows() {
44341
- if (getPlatform() === "windows") {
44342
- const gitBashPath = findGitBashPath();
44343
- process.env.SHELL = gitBashPath;
44344
- logForDebugging(`Using bash path: "${gitBashPath}"`);
44341
+ if (getPlatform() !== "windows") {
44342
+ return;
44345
44343
  }
44344
+ const gitBashPath = tryFindGitBashPath();
44345
+ if (!gitBashPath) {
44346
+ logForDebugging("bash.exe no encontrado; SHELL queda sin fijar.");
44347
+ return;
44348
+ }
44349
+ process.env.SHELL = gitBashPath;
44350
+ logForDebugging(`Using bash path: "${gitBashPath}"`);
44346
44351
  }
44347
- var findGitBashPath, windowsPathToPosixPath, posixPathToWindowsPath;
44352
+ var AVISO_SIN_BASH, tryFindGitBashPath, findGitBashPath = () => {
44353
+ const bashPath = tryFindGitBashPath();
44354
+ if (bashPath) {
44355
+ return bashPath;
44356
+ }
44357
+ if (process.env.THEUS_CODE_GIT_BASH_PATH) {
44358
+ throw new Error(`La ruta de THEUS_CODE_GIT_BASH_PATH no existe: "${process.env.THEUS_CODE_GIT_BASH_PATH}"`);
44359
+ }
44360
+ throw new Error(AVISO_SIN_BASH);
44361
+ }, windowsPathToPosixPath, posixPathToWindowsPath;
44348
44362
  var init_windowsPaths = __esm(() => {
44349
44363
  init_memoize();
44350
44364
  init_cwd2();
@@ -44352,13 +44366,15 @@ var init_windowsPaths = __esm(() => {
44352
44366
  init_execSyncWrapper();
44353
44367
  init_memoize2();
44354
44368
  init_platform2();
44355
- findGitBashPath = memoize_default(() => {
44369
+ AVISO_SIN_BASH = `Theus no encontro bash.exe en este Windows. Las herramientas y hooks que ejecutan sintaxis de bash no estaran disponibles; el resto de Theus funciona igual.
44370
+ ` + `Para habilitarlos instala Git para Windows (https://git-scm.com/downloads/win), o apunta la ruta a mano:
44371
+ ` + " THEUS_CODE_GIT_BASH_PATH=C:\\Program Files\\Git\\bin\\bash.exe";
44372
+ tryFindGitBashPath = memoize_default(() => {
44356
44373
  if (process.env.THEUS_CODE_GIT_BASH_PATH) {
44357
44374
  if (checkPathExists(process.env.THEUS_CODE_GIT_BASH_PATH)) {
44358
44375
  return process.env.THEUS_CODE_GIT_BASH_PATH;
44359
44376
  }
44360
- console.error(`Theus was unable to find THEUS_CODE_GIT_BASH_PATH path "${process.env.THEUS_CODE_GIT_BASH_PATH}"`);
44361
- process.exit(1);
44377
+ return null;
44362
44378
  }
44363
44379
  const gitPath = findExecutable("git");
44364
44380
  if (gitPath) {
@@ -44367,8 +44383,7 @@ var init_windowsPaths = __esm(() => {
44367
44383
  return bashPath;
44368
44384
  }
44369
44385
  }
44370
- console.error("Theus on Windows requires git-bash (https://git-scm.com/downloads/win). If installed but not in PATH, set environment variable pointing to your bash.exe, similar to: THEUS_CODE_GIT_BASH_PATH=C:\\Program Files\\Git\\bin\\bash.exe");
44371
- process.exit(1);
44386
+ return null;
44372
44387
  });
44373
44388
  windowsPathToPosixPath = memoizeWithLRU((windowsPath) => {
44374
44389
  if (windowsPath.startsWith("\\\\")) {
@@ -57765,7 +57780,7 @@ async function _executeApiKeyHelper(isNonInteractiveSession) {
57765
57780
  if (isApiKeyHelperFromProjectOrLocalSettings()) {
57766
57781
  const hasTrust = checkHasTrustDialogAccepted();
57767
57782
  if (!hasTrust && !isNonInteractiveSession) {
57768
- const error40 = new Error(`Security: apiKeyHelper executed before workspace trust is confirmed. If you see this message, post in ${{ VERSION: "0.2.78", BUILD_TIME: "1970-01-01T00:00:00.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}.`);
57783
+ const error40 = new Error(`Security: apiKeyHelper executed before workspace trust is confirmed. If you see this message, post in ${{ VERSION: "0.2.80", BUILD_TIME: "1970-01-01T00:00:00.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}.`);
57769
57784
  logAntError("apiKeyHelper invoked before trust check", error40);
57770
57785
  logEvent("theus_apiKeyHelper_missing_trust11", {});
57771
57786
  return null;
@@ -57809,7 +57824,7 @@ async function runAwsAuthRefresh() {
57809
57824
  if (isAwsAuthRefreshFromProjectSettings()) {
57810
57825
  const hasTrust = checkHasTrustDialogAccepted();
57811
57826
  if (!hasTrust && !getIsNonInteractiveSession()) {
57812
- const error40 = new Error(`Security: awsAuthRefresh executed before workspace trust is confirmed. If you see this message, post in ${{ VERSION: "0.2.78", BUILD_TIME: "1970-01-01T00:00:00.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}.`);
57827
+ const error40 = new Error(`Security: awsAuthRefresh executed before workspace trust is confirmed. If you see this message, post in ${{ VERSION: "0.2.80", BUILD_TIME: "1970-01-01T00:00:00.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}.`);
57813
57828
  logAntError("awsAuthRefresh invoked before trust check", error40);
57814
57829
  logEvent("theus_awsAuthRefresh_missing_trust", {});
57815
57830
  return false;
@@ -57869,7 +57884,7 @@ async function getAwsCredsFromCredentialExport() {
57869
57884
  if (isAwsCredentialExportFromProjectSettings()) {
57870
57885
  const hasTrust = checkHasTrustDialogAccepted();
57871
57886
  if (!hasTrust && !getIsNonInteractiveSession()) {
57872
- const error40 = new Error(`Security: awsCredentialExport executed before workspace trust is confirmed. If you see this message, post in ${{ VERSION: "0.2.78", BUILD_TIME: "1970-01-01T00:00:00.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}.`);
57887
+ const error40 = new Error(`Security: awsCredentialExport executed before workspace trust is confirmed. If you see this message, post in ${{ VERSION: "0.2.80", BUILD_TIME: "1970-01-01T00:00:00.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}.`);
57873
57888
  logAntError("awsCredentialExport invoked before trust check", error40);
57874
57889
  logEvent("theus_awsCredentialExport_missing_trust", {});
57875
57890
  return null;
@@ -57954,7 +57969,7 @@ async function runGcpAuthRefresh() {
57954
57969
  if (isGcpAuthRefreshFromProjectSettings()) {
57955
57970
  const hasTrust = checkHasTrustDialogAccepted();
57956
57971
  if (!hasTrust && !getIsNonInteractiveSession()) {
57957
- const error40 = new Error(`Security: gcpAuthRefresh executed before workspace trust is confirmed. If you see this message, post in ${{ VERSION: "0.2.78", BUILD_TIME: "1970-01-01T00:00:00.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}.`);
57972
+ const error40 = new Error(`Security: gcpAuthRefresh executed before workspace trust is confirmed. If you see this message, post in ${{ VERSION: "0.2.80", BUILD_TIME: "1970-01-01T00:00:00.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}.`);
57958
57973
  logAntError("gcpAuthRefresh invoked before trust check", error40);
57959
57974
  logEvent("theus_gcpAuthRefresh_missing_trust", {});
57960
57975
  return false;
@@ -58673,7 +58688,7 @@ var init_auth = __esm(() => {
58673
58688
 
58674
58689
  // utils/userAgent.ts
58675
58690
  function getTheusCodeUserAgent() {
58676
- return `theus-code/${{ VERSION: "0.2.78", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION}`;
58691
+ return `theus-code/${{ VERSION: "0.2.80", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION}`;
58677
58692
  }
58678
58693
 
58679
58694
  // utils/workloadContext.ts
@@ -58695,7 +58710,7 @@ function getUserAgent() {
58695
58710
  const clientApp = process.env.THEUS_AGENT_SDK_CLIENT_APP ? `, client-app/${process.env.THEUS_AGENT_SDK_CLIENT_APP}` : "";
58696
58711
  const workload = getWorkload();
58697
58712
  const workloadSuffix = workload ? `, workload/${workload}` : "";
58698
- return `theus-cli/${{ VERSION: "0.2.78", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION} (${"external"}, ${process.env.THEUS_CODE_ENTRYPOINT ?? "cli"}${agentSdkVersion}${clientApp}${workloadSuffix})`;
58713
+ return `theus-cli/${{ VERSION: "0.2.80", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION} (${"external"}, ${process.env.THEUS_CODE_ENTRYPOINT ?? "cli"}${agentSdkVersion}${clientApp}${workloadSuffix})`;
58699
58714
  }
58700
58715
  function getMCPUserAgent() {
58701
58716
  const parts = [];
@@ -58709,7 +58724,7 @@ function getMCPUserAgent() {
58709
58724
  parts.push(`client-app/${process.env.THEUS_AGENT_SDK_CLIENT_APP}`);
58710
58725
  }
58711
58726
  const suffix = parts.length > 0 ? ` (${parts.join(", ")})` : "";
58712
- return `theus-code/${{ VERSION: "0.2.78", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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}`;
58727
+ return `theus-code/${{ VERSION: "0.2.80", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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}`;
58713
58728
  }
58714
58729
  function getWebFetchUserAgent() {
58715
58730
  return `Theus-User (${getTheusCodeUserAgent()}; +https://support.theus.pe/)`;
@@ -58847,7 +58862,7 @@ var init_user = __esm(() => {
58847
58862
  deviceId,
58848
58863
  sessionId: getSessionId(),
58849
58864
  email: getEmail(),
58850
- appVersion: { VERSION: "0.2.78", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
58865
+ appVersion: { VERSION: "0.2.80", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
58851
58866
  platform: getHostPlatformForAnalytics(),
58852
58867
  organizationUuid,
58853
58868
  accountUuid,
@@ -60557,7 +60572,7 @@ var init_metadata = __esm(() => {
60557
60572
  COMPOUND_OPERATOR_REGEX = /\s*(?:&&|\|\||[;|])\s*/;
60558
60573
  WHITESPACE_REGEX = /\s+/;
60559
60574
  getVersionBase = memoize_default(() => {
60560
- const match = { VERSION: "0.2.78", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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]+)?/);
60575
+ const match = { VERSION: "0.2.80", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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]+)?/);
60561
60576
  return match ? match[0] : undefined;
60562
60577
  });
60563
60578
  buildEnvContext = memoize_default(async () => {
@@ -60597,9 +60612,9 @@ var init_metadata = __esm(() => {
60597
60612
  isGithubAction: isEnvTruthy(process.env.GITHUB_ACTIONS),
60598
60613
  isTheusCodeAction: isEnvTruthy(process.env.THEUS_CODE_ACTION),
60599
60614
  isTheusAiAuth: isTheusAISubscriber(),
60600
- version: { VERSION: "0.2.78", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
60615
+ version: { VERSION: "0.2.80", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
60601
60616
  versionBase: getVersionBase(),
60602
- buildTime: { VERSION: "0.2.78", BUILD_TIME: "1970-01-01T00:00:00.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,
60617
+ buildTime: { VERSION: "0.2.80", BUILD_TIME: "1970-01-01T00:00:00.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,
60603
60618
  deploymentEnvironment: env3.detectDeploymentEnvironment(),
60604
60619
  ...isEnvTruthy(process.env.GITHUB_ACTIONS) && {
60605
60620
  githubEventName: process.env.GITHUB_EVENT_NAME,
@@ -61215,7 +61230,7 @@ function initialize1PEventLogging() {
61215
61230
  const platform2 = getPlatform();
61216
61231
  const attributes = {
61217
61232
  [ATTR_SERVICE_NAME]: "theus-code",
61218
- [ATTR_SERVICE_VERSION]: { VERSION: "0.2.78", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
61233
+ [ATTR_SERVICE_VERSION]: { VERSION: "0.2.80", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
61219
61234
  };
61220
61235
  if (platform2 === "wsl") {
61221
61236
  const wslVersion = getWslVersion();
@@ -61242,7 +61257,7 @@ function initialize1PEventLogging() {
61242
61257
  })
61243
61258
  ]
61244
61259
  });
61245
- firstPartyEventLogger = firstPartyEventLoggerProvider.getLogger("com.theus.theus_code.events", { VERSION: "0.2.78", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION);
61260
+ firstPartyEventLogger = firstPartyEventLoggerProvider.getLogger("com.theus.theus_code.events", { VERSION: "0.2.80", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION);
61246
61261
  }
61247
61262
  async function reinitialize1PEventLoggingIfConfigChanged() {
61248
61263
  if (!is1PEventLoggingEnabled() || !firstPartyEventLoggerProvider) {
@@ -91081,7 +91096,7 @@ function getAttributionHeader(fingerprint) {
91081
91096
  if (!isAttributionHeaderEnabled()) {
91082
91097
  return "";
91083
91098
  }
91084
- const version2 = `${{ VERSION: "0.2.78", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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}`;
91099
+ const version2 = `${{ VERSION: "0.2.80", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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}`;
91085
91100
  const entrypoint = process.env.THEUS_CODE_ENTRYPOINT ?? "unknown";
91086
91101
  const cch = "";
91087
91102
  const workload = getWorkload();
@@ -104117,7 +104132,7 @@ Complete the user's request by providing accurate, documentation-based guidance.
104117
104132
  }
104118
104133
  function getFeedbackGuideline() {
104119
104134
  if (isUsing3PServices()) {
104120
- return `- When you cannot find an answer or the feature doesn't exist, direct the user to ${{ VERSION: "0.2.78", BUILD_TIME: "1970-01-01T00:00:00.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}`;
104135
+ return `- When you cannot find an answer or the feature doesn't exist, direct the user to ${{ VERSION: "0.2.80", BUILD_TIME: "1970-01-01T00:00:00.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}`;
104121
104136
  }
104122
104137
  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";
104123
104138
  }
@@ -144301,7 +144316,7 @@ function getTelemetryAttributes() {
144301
144316
  attributes["session.id"] = sessionId;
144302
144317
  }
144303
144318
  if (shouldIncludeAttribute("OTEL_METRICS_INCLUDE_VERSION")) {
144304
- attributes["app.version"] = { VERSION: "0.2.78", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION;
144319
+ attributes["app.version"] = { VERSION: "0.2.80", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION;
144305
144320
  }
144306
144321
  const oauthAccount = getOauthAccountInfo();
144307
144322
  if (oauthAccount) {
@@ -220580,7 +220595,7 @@ async function getMcpHeadersFromHelper(serverName, config2) {
220580
220595
  if ("scope" in config2 && isMcpServerFromProjectOrLocalSettings(config2) && !getIsNonInteractiveSession()) {
220581
220596
  const hasTrust = checkHasTrustDialogAccepted();
220582
220597
  if (!hasTrust) {
220583
- 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.78", BUILD_TIME: "1970-01-01T00:00:00.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}.`);
220598
+ 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.80", BUILD_TIME: "1970-01-01T00:00:00.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}.`);
220584
220599
  logAntError("MCP headersHelper invoked before trust check", error40);
220585
220600
  logEvent("theus_mcp_headersHelper_missing_trust", {});
220586
220601
  return null;
@@ -221272,7 +221287,7 @@ function computeFingerprint(messageText, version2) {
221272
221287
  }
221273
221288
  function computeFingerprintFromMessages(messages) {
221274
221289
  const firstMessageText = extractFirstMessageText(messages);
221275
- return computeFingerprint(firstMessageText, { VERSION: "0.2.78", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION);
221290
+ return computeFingerprint(firstMessageText, { VERSION: "0.2.80", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION);
221276
221291
  }
221277
221292
  var FINGERPRINT_SALT = "59cf53e54c78";
221278
221293
  var init_fingerprint = () => {};
@@ -221314,7 +221329,7 @@ async function sideQuery(opts) {
221314
221329
  betas.push(STRUCTURED_OUTPUTS_BETA_HEADER);
221315
221330
  }
221316
221331
  const messageText = extractFirstUserMessageText(messages);
221317
- const fingerprint = computeFingerprint(messageText, { VERSION: "0.2.78", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION);
221332
+ const fingerprint = computeFingerprint(messageText, { VERSION: "0.2.80", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION);
221318
221333
  const attributionHeader = getAttributionHeader(fingerprint);
221319
221334
  const systemBlocks = [
221320
221335
  attributionHeader ? { type: "text", text: attributionHeader } : null,
@@ -222438,7 +222453,7 @@ async function setupSdkMcpClients(sdkMcpConfigs, sendMcpMessage) {
222438
222453
  const client2 = new Client({
222439
222454
  name: "theus-code",
222440
222455
  title: "Theus",
222441
- version: { VERSION: "0.2.78", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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",
222456
+ version: { VERSION: "0.2.80", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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",
222442
222457
  description: "Theus's agentic coding tool",
222443
222458
  websiteUrl: PRODUCT_URL
222444
222459
  }, {
@@ -222792,7 +222807,7 @@ var init_client5 = __esm(() => {
222792
222807
  const client2 = new Client({
222793
222808
  name: "theus-code",
222794
222809
  title: "Theus",
222795
- version: { VERSION: "0.2.78", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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",
222810
+ version: { VERSION: "0.2.80", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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",
222796
222811
  description: "Theus's agentic coding tool",
222797
222812
  websiteUrl: PRODUCT_URL
222798
222813
  }, {
@@ -242640,7 +242655,7 @@ async function initializeBetaTracing(resource) {
242640
242655
  });
242641
242656
  logs.setGlobalLoggerProvider(loggerProvider);
242642
242657
  setLoggerProvider(loggerProvider);
242643
- const eventLogger = logs.getLogger("com.theus.theus_code.events", { VERSION: "0.2.78", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION);
242658
+ const eventLogger = logs.getLogger("com.theus.theus_code.events", { VERSION: "0.2.80", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION);
242644
242659
  setEventLogger(eventLogger);
242645
242660
  process.on("beforeExit", async () => {
242646
242661
  await loggerProvider?.forceFlush();
@@ -242680,7 +242695,7 @@ async function initializeTelemetry() {
242680
242695
  const platform4 = getPlatform();
242681
242696
  const baseAttributes = {
242682
242697
  [ATTR_SERVICE_NAME]: "theus-code",
242683
- [ATTR_SERVICE_VERSION]: { VERSION: "0.2.78", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
242698
+ [ATTR_SERVICE_VERSION]: { VERSION: "0.2.80", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
242684
242699
  };
242685
242700
  if (platform4 === "wsl") {
242686
242701
  const wslVersion = getWslVersion();
@@ -242725,7 +242740,7 @@ async function initializeTelemetry() {
242725
242740
  } catch {}
242726
242741
  };
242727
242742
  registerCleanup(shutdownTelemetry2);
242728
- return meterProvider2.getMeter("com.theus.theus_code", { VERSION: "0.2.78", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION);
242743
+ return meterProvider2.getMeter("com.theus.theus_code", { VERSION: "0.2.80", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION);
242729
242744
  }
242730
242745
  const meterProvider = new MeterProvider({
242731
242746
  resource,
@@ -242745,7 +242760,7 @@ async function initializeTelemetry() {
242745
242760
  });
242746
242761
  logs.setGlobalLoggerProvider(loggerProvider);
242747
242762
  setLoggerProvider(loggerProvider);
242748
- const eventLogger = logs.getLogger("com.theus.theus_code.events", { VERSION: "0.2.78", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION);
242763
+ const eventLogger = logs.getLogger("com.theus.theus_code.events", { VERSION: "0.2.80", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION);
242749
242764
  setEventLogger(eventLogger);
242750
242765
  logForDebugging("[3P telemetry] Event logger set successfully");
242751
242766
  process.on("beforeExit", async () => {
@@ -242807,7 +242822,7 @@ Current timeout: ${timeoutMs}ms
242807
242822
  }
242808
242823
  };
242809
242824
  registerCleanup(shutdownTelemetry);
242810
- return meterProvider.getMeter("com.theus.theus_code", { VERSION: "0.2.78", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION);
242825
+ return meterProvider.getMeter("com.theus.theus_code", { VERSION: "0.2.80", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION);
242811
242826
  }
242812
242827
  async function flushTelemetry() {
242813
242828
  const meterProvider = getMeterProvider();
@@ -243349,7 +243364,7 @@ async function installOrUpdateTheusPackage(channel2, specificVersion) {
243349
243364
  return "install_failed";
243350
243365
  }
243351
243366
  const versionSpec = specificVersion ? specificVersion : channel2 === "stable" ? "stable" : "latest";
243352
- const result = await execFileNoThrowWithCwd("npm", ["install", `${{ VERSION: "0.2.78", BUILD_TIME: "1970-01-01T00:00:00.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 });
243367
+ const result = await execFileNoThrowWithCwd("npm", ["install", `${{ VERSION: "0.2.80", BUILD_TIME: "1970-01-01T00:00:00.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 });
243353
243368
  if (result.code !== 0) {
243354
243369
  const error40 = new Error(`Failed to install Theus CLI package: ${result.stderr}`);
243355
243370
  logError2(error40);
@@ -243495,9 +243510,9 @@ async function assertMinVersion() {
243495
243510
  if (false) {}
243496
243511
  try {
243497
243512
  const versionConfig = await getDynamicConfig_BLOCKS_ON_INIT("theus_version_config", { minVersion: "0.0.0" });
243498
- if (versionConfig.minVersion && lt({ VERSION: "0.2.78", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
243513
+ if (versionConfig.minVersion && lt({ VERSION: "0.2.80", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
243499
243514
  console.error(`
243500
- It looks like your version of Theus (${{ VERSION: "0.2.78", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.
243515
+ It looks like your version of Theus (${{ VERSION: "0.2.80", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.
243501
243516
  A newer version (${versionConfig.minVersion} or higher) is required to continue.
243502
243517
 
243503
243518
  To update, please run:
@@ -243634,7 +243649,7 @@ async function getInstallationPrefix() {
243634
243649
  return prefixResult.stdout.trim();
243635
243650
  }
243636
243651
  function getGlobalInstallPackageManager() {
243637
- if ({ VERSION: "0.2.78", BUILD_TIME: "1970-01-01T00:00:00.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") {
243652
+ if ({ VERSION: "0.2.80", BUILD_TIME: "1970-01-01T00:00:00.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") {
243638
243653
  return "npm";
243639
243654
  }
243640
243655
  return env3.isRunningWithBun() ? "bun" : "npm";
@@ -243659,7 +243674,7 @@ async function checkGlobalInstallPermissions() {
243659
243674
  }
243660
243675
  async function getLatestVersion(channel2) {
243661
243676
  const npmTag = channel2 === "stable" ? "stable" : "latest";
243662
- const result = await execFileNoThrowWithCwd("npm", ["view", `${{ VERSION: "0.2.78", BUILD_TIME: "1970-01-01T00:00:00.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: homedir20() });
243677
+ const result = await execFileNoThrowWithCwd("npm", ["view", `${{ VERSION: "0.2.80", BUILD_TIME: "1970-01-01T00:00:00.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: homedir20() });
243663
243678
  if (result.code !== 0) {
243664
243679
  logForDebugging(`npm view failed with code ${result.code}`);
243665
243680
  if (result.stderr) {
@@ -243675,7 +243690,7 @@ async function getLatestVersion(channel2) {
243675
243690
  return result.stdout.trim();
243676
243691
  }
243677
243692
  async function getNpmDistTags() {
243678
- const result = await execFileNoThrowWithCwd("npm", ["view", { VERSION: "0.2.78", BUILD_TIME: "1970-01-01T00:00:00.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: homedir20() });
243693
+ const result = await execFileNoThrowWithCwd("npm", ["view", { VERSION: "0.2.80", BUILD_TIME: "1970-01-01T00:00:00.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: homedir20() });
243679
243694
  if (result.code !== 0) {
243680
243695
  logForDebugging(`npm view dist-tags failed with code ${result.code}`);
243681
243696
  return { latest: null, stable: null };
@@ -243692,14 +243707,18 @@ async function getNpmDistTags() {
243692
243707
  }
243693
243708
  }
243694
243709
  async function getLatestVersionFromGcs(channel2) {
243710
+ if (!BINARY_REPO_URL) {
243711
+ logForDebugging("Actualizacion nativa desactivada: no hay repositorio de binarios configurado (THEUS_BINARY_REPO_URL).");
243712
+ return null;
243713
+ }
243695
243714
  try {
243696
- const response = await axios_default.get(`${GCS_BUCKET_URL}/${channel2}`, {
243715
+ const response = await axios_default.get(`${BINARY_REPO_URL}/${channel2}`, {
243697
243716
  timeout: 5000,
243698
243717
  responseType: "text"
243699
243718
  });
243700
243719
  return response.data.trim();
243701
243720
  } catch (error40) {
243702
- logForDebugging(`Failed to fetch ${channel2} from GCS: ${error40}`);
243721
+ logForDebugging(`No pude consultar el canal ${channel2} en el repositorio de binarios: ${error40}`);
243703
243722
  return null;
243704
243723
  }
243705
243724
  }
@@ -243715,7 +243734,7 @@ async function installGlobalPackage(specificVersion) {
243715
243734
  logError2(new AutoUpdaterError("Another process is currently installing an update"));
243716
243735
  logEvent("theus_auto_updater_lock_contention", {
243717
243736
  pid: process.pid,
243718
- currentVersion: { VERSION: "0.2.78", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
243737
+ currentVersion: { VERSION: "0.2.80", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
243719
243738
  });
243720
243739
  return "in_progress";
243721
243740
  }
@@ -243724,7 +243743,7 @@ async function installGlobalPackage(specificVersion) {
243724
243743
  if (!env3.isRunningWithBun() && env3.isNpmFromWindowsPath()) {
243725
243744
  logError2(new Error("Windows NPM detected in WSL environment"));
243726
243745
  logEvent("theus_auto_updater_windows_npm_in_wsl", {
243727
- currentVersion: { VERSION: "0.2.78", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
243746
+ currentVersion: { VERSION: "0.2.80", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
243728
243747
  });
243729
243748
  console.error(`
243730
243749
  Error: Windows NPM detected in WSL
@@ -243743,7 +243762,7 @@ To fix this issue:
243743
243762
  if (!hasPermissions) {
243744
243763
  return "no_permissions";
243745
243764
  }
243746
- const packageSpec = specificVersion ? `${{ VERSION: "0.2.78", BUILD_TIME: "1970-01-01T00:00:00.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.78", BUILD_TIME: "1970-01-01T00:00:00.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;
243765
+ const packageSpec = specificVersion ? `${{ VERSION: "0.2.80", BUILD_TIME: "1970-01-01T00:00:00.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.80", BUILD_TIME: "1970-01-01T00:00:00.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;
243747
243766
  const packageManager = getGlobalInstallPackageManager();
243748
243767
  const installResult = await execFileNoThrowWithCwd(packageManager, ["install", "-g", packageSpec], { cwd: homedir20() });
243749
243768
  if (installResult.code !== 0) {
@@ -243779,7 +243798,7 @@ async function removeTheusAliasesFromShellConfigs() {
243779
243798
  }
243780
243799
  }
243781
243800
  }
243782
- var GCS_BUCKET_URL = "https://storage.googleapis.com/theus-code-dist-86c565f3-f756-42ad-8dfa-d59b1c096819/theus-code-releases", AutoUpdaterError, LOCK_TIMEOUT_MS;
243801
+ var BINARY_REPO_URL, AutoUpdaterError, LOCK_TIMEOUT_MS;
243783
243802
  var init_autoUpdater = __esm(() => {
243784
243803
  init_axios2();
243785
243804
  init_growthbook2();
@@ -243796,6 +243815,7 @@ var init_autoUpdater = __esm(() => {
243796
243815
  init_settings2();
243797
243816
  init_shellConfig();
243798
243817
  init_slowOperations();
243818
+ BINARY_REPO_URL = process.env.THEUS_BINARY_REPO_URL?.trim() || null;
243799
243819
  AutoUpdaterError = class AutoUpdaterError extends TheusError {
243800
243820
  };
243801
243821
  LOCK_TIMEOUT_MS = 5 * 60 * 1000;
@@ -244071,8 +244091,8 @@ async function detectMultipleInstallations() {
244071
244091
  installations.push({ type: "npm-local", path: localPath });
244072
244092
  }
244073
244093
  const packagesToCheck = ["@theus-ai/theus-code"];
244074
- if ({ VERSION: "0.2.78", BUILD_TIME: "1970-01-01T00:00:00.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.78", BUILD_TIME: "1970-01-01T00:00:00.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") {
244075
- packagesToCheck.push({ VERSION: "0.2.78", BUILD_TIME: "1970-01-01T00:00:00.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);
244094
+ if ({ VERSION: "0.2.80", BUILD_TIME: "1970-01-01T00:00:00.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.80", BUILD_TIME: "1970-01-01T00:00:00.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") {
244095
+ packagesToCheck.push({ VERSION: "0.2.80", BUILD_TIME: "1970-01-01T00:00:00.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);
244076
244096
  }
244077
244097
  const npmResult = await execFileNoThrow("npm", [
244078
244098
  "-g",
@@ -244255,7 +244275,7 @@ function detectLinuxGlobPatternWarnings() {
244255
244275
  }
244256
244276
  async function getDoctorDiagnostic() {
244257
244277
  const installationType = await getCurrentInstallationType();
244258
- const version2 = { VERSION: "0.2.78", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.78", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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";
244278
+ const version2 = { VERSION: "0.2.80", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.80", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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";
244259
244279
  const installationPath = await getInstallationPath();
244260
244280
  const invokedBinary = getInvokedBinary();
244261
244281
  const multipleInstallations = await detectMultipleInstallations();
@@ -244267,8 +244287,8 @@ async function getDoctorDiagnostic() {
244267
244287
  for (const install of npmInstalls) {
244268
244288
  if (install.type === "npm-global") {
244269
244289
  let uninstallCmd = "npm -g uninstall @theus-ai/theus-code";
244270
- if ({ VERSION: "0.2.78", BUILD_TIME: "1970-01-01T00:00:00.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.78", BUILD_TIME: "1970-01-01T00:00:00.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") {
244271
- uninstallCmd += ` && npm -g uninstall ${{ VERSION: "0.2.78", BUILD_TIME: "1970-01-01T00:00:00.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}`;
244290
+ if ({ VERSION: "0.2.80", BUILD_TIME: "1970-01-01T00:00:00.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.80", BUILD_TIME: "1970-01-01T00:00:00.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") {
244291
+ uninstallCmd += ` && npm -g uninstall ${{ VERSION: "0.2.80", BUILD_TIME: "1970-01-01T00:00:00.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}`;
244272
244292
  }
244273
244293
  warnings.push({
244274
244294
  issue: `Leftover npm global installation at ${install.path}`,
@@ -244419,7 +244439,10 @@ async function getLatestVersion2(channelOrVersion) {
244419
244439
  throw new Error(`Invalid channel: ${channelOrVersion}. Use 'stable' or 'latest'`);
244420
244440
  }
244421
244441
  if (false) {}
244422
- return getLatestVersionFromBinaryRepo(channel2, GCS_BUCKET_URL2);
244442
+ if (!BINARY_REPO_URL2) {
244443
+ throw new Error("No hay repositorio de binarios configurado: la actualizacion nativa esta desactivada. Actualiza con el instalador oficial de https://theus.pe");
244444
+ }
244445
+ return getLatestVersionFromBinaryRepo(channel2, BINARY_REPO_URL2);
244423
244446
  }
244424
244447
  function getStallTimeoutMs() {
244425
244448
  return Number(process.env.THEUS_CODE_STALL_TIMEOUT_MS_FOR_TESTING) || DEFAULT_STALL_TIMEOUT_MS;
@@ -244543,10 +244566,13 @@ async function downloadVersionFromBinaryRepo(version2, stagingPath, baseUrl, aut
244543
244566
  async function downloadVersion(version2, stagingPath) {
244544
244567
  if (false) {}
244545
244568
  if (false) {}
244546
- await downloadVersionFromBinaryRepo(version2, stagingPath, GCS_BUCKET_URL2);
244569
+ if (!BINARY_REPO_URL2) {
244570
+ throw new Error("No hay repositorio de binarios configurado: la actualizacion nativa esta desactivada. Actualiza con el instalador oficial de https://theus.pe");
244571
+ }
244572
+ await downloadVersionFromBinaryRepo(version2, stagingPath, BINARY_REPO_URL2);
244547
244573
  return "binary";
244548
244574
  }
244549
- var GCS_BUCKET_URL2 = "https://storage.googleapis.com/theus-code-dist-86c565f3-f756-42ad-8dfa-d59b1c096819/theus-code-releases", DEFAULT_STALL_TIMEOUT_MS = 60000, MAX_DOWNLOAD_RETRIES = 3, StallTimeoutError;
244575
+ var BINARY_REPO_URL2, DEFAULT_STALL_TIMEOUT_MS = 60000, MAX_DOWNLOAD_RETRIES = 3, StallTimeoutError;
244550
244576
  var init_download = __esm(() => {
244551
244577
  init_axios2();
244552
244578
  init_analytics();
@@ -244557,6 +244583,7 @@ var init_download = __esm(() => {
244557
244583
  init_log2();
244558
244584
  init_slowOperations();
244559
244585
  init_installer();
244586
+ BINARY_REPO_URL2 = process.env.THEUS_BINARY_REPO_URL?.trim() || null;
244560
244587
  StallTimeoutError = class StallTimeoutError extends Error {
244561
244588
  constructor() {
244562
244589
  super("Download stalled: no data received for 60 seconds");
@@ -245079,8 +245106,8 @@ async function updateLatest(channelOrVersion, forceReinstall = false) {
245079
245106
  const maxVersion = await getMaxVersion();
245080
245107
  if (maxVersion && gt(version2, maxVersion)) {
245081
245108
  logForDebugging(`Native installer: maxVersion ${maxVersion} is set, capping update from ${version2} to ${maxVersion}`);
245082
- if (gte({ VERSION: "0.2.78", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
245083
- logForDebugging(`Native installer: current version ${{ VERSION: "0.2.78", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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`);
245109
+ if (gte({ VERSION: "0.2.80", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
245110
+ logForDebugging(`Native installer: current version ${{ VERSION: "0.2.80", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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`);
245084
245111
  logEvent("theus_native_update_skipped_max_version", {
245085
245112
  latency_ms: Date.now() - startTime2,
245086
245113
  max_version: maxVersion,
@@ -245091,7 +245118,7 @@ async function updateLatest(channelOrVersion, forceReinstall = false) {
245091
245118
  version2 = maxVersion;
245092
245119
  }
245093
245120
  }
245094
- if (!forceReinstall && version2 === { VERSION: "0.2.78", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
245121
+ if (!forceReinstall && version2 === { VERSION: "0.2.80", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
245095
245122
  logForDebugging(`Found ${version2} at ${executablePath}, skipping install`);
245096
245123
  logEvent("theus_native_update_complete", {
245097
245124
  latency_ms: Date.now() - startTime2,
@@ -245841,8 +245868,8 @@ async function cleanupNpmInstallations() {
245841
245868
  } else if (codePackageResult.error) {
245842
245869
  errors4.push(codePackageResult.error);
245843
245870
  }
245844
- if ({ VERSION: "0.2.78", BUILD_TIME: "1970-01-01T00:00:00.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.78", BUILD_TIME: "1970-01-01T00:00:00.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") {
245845
- const macroPackageResult = await attemptNpmUninstall({ VERSION: "0.2.78", BUILD_TIME: "1970-01-01T00:00:00.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);
245871
+ if ({ VERSION: "0.2.80", BUILD_TIME: "1970-01-01T00:00:00.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.80", BUILD_TIME: "1970-01-01T00:00:00.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") {
245872
+ const macroPackageResult = await attemptNpmUninstall({ VERSION: "0.2.80", BUILD_TIME: "1970-01-01T00:00:00.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);
245846
245873
  if (macroPackageResult.success) {
245847
245874
  removed++;
245848
245875
  if (macroPackageResult.warning) {
@@ -256259,6 +256286,29 @@ var init_ConsoleOAuthFlow = __esm(() => {
256259
256286
  var NOVEDADES;
256260
256287
  var init_data = __esm(() => {
256261
256288
  NOVEDADES = [
256289
+ {
256290
+ version: "v0.2.80",
256291
+ fecha: "2026-08-14",
256292
+ titulo: "Theus se instala como un programa, no como un montaje",
256293
+ puntos: [
256294
+ "El instalador ya te entrega el programa terminado en vez de un paquete que necesitaba un motor aparte. Antes hab\xEDa que descargar ese motor de otro proyecto durante la instalaci\xF3n; ahora no se descarga nada m\xE1s.",
256295
+ "En macOS, Theus va firmado y notarizado por Apple, y el instalador comprueba esa firma antes de dejarlo en tu equipo: si el archivo no es exactamente el que publicamos, aborta. El checksum de siempre solo demostraba que la descarga no se hab\xEDa corrompido; la firma demuestra qui\xE9n lo hizo.",
256296
+ "Windows tiene por fin su propio programa. Se compila en el modo compatible, as\xED que los equipos con procesadores sin instrucciones modernas \u2014los de gama de entrada\u2014 dejan de quedarse fuera.",
256297
+ "Quien instala desde theus.pe recibe ya las habilidades del Arsenal. Hasta ahora solo llegaban por el canal de paquetes, y la pantalla de bienvenida promet\xEDa algo que esa copia no tra\xEDa."
256298
+ ]
256299
+ },
256300
+ {
256301
+ version: "v0.2.79",
256302
+ fecha: "2026-08-14",
256303
+ titulo: "Instalar Theus en Windows deja de fallar en silencio",
256304
+ puntos: [
256305
+ "En un Windows sin Git, Theus se cerraba al instante despu\xE9s de instalarse bien: el arranque exig\xEDa una consola de tipo Unix y terminaba el proceso si no la encontraba. Ahora arranca con normalidad y solo avisa cuando de verdad hace falta esa consola.",
256306
+ "Si tu cuenta de Windows lleva tilde o e\xF1e \u2014Jos\xE9, Mu\xF1oz, Garc\xEDa, Bego\xF1a\u2014, el lanzador que dejaba el instalador apuntaba a una ruta con un signo de interrogaci\xF3n en medio: el comando exist\xEDa y no ejecutaba nada. Corregido.",
256307
+ "En equipos x64 sin AVX2 \u2014los Celeron y Pentium de gama baja, los Atom y cualquier cosa anterior a Haswell\u2014 el motor reci\xE9n instalado reventaba con una instrucci\xF3n ilegal. El instalador ahora prueba y, si no arranca, cambia a la variante compatible.",
256308
+ "Seguir la gu\xEDa de theus.pe/empezar en orden ya no empeora \xD1aupa: el paso 4 sobrescrib\xEDa con la versi\xF3n sin mapa 3D la que hab\xEDa instalado el paso 1. Los dos instaladores eligen ya lo mismo.",
256309
+ "Los binarios de macOS pasan a publicarse firmados y notarizados, y el paquete de npm sale del CI con su prueba de procedencia en lugar de compilarse a mano."
256310
+ ]
256311
+ },
256262
256312
  {
256263
256313
  version: "v0.2.78",
256264
256314
  fecha: "2026-08-14",
@@ -300177,9 +300227,9 @@ function getTheusEnvMetadata() {
300177
300227
  };
300178
300228
  }
300179
300229
  function getBuildAgeMinutes() {
300180
- if (!{ VERSION: "0.2.78", BUILD_TIME: "1970-01-01T00:00:00.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)
300230
+ if (!{ VERSION: "0.2.80", BUILD_TIME: "1970-01-01T00:00:00.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)
300181
300231
  return;
300182
- const buildTime = new Date({ VERSION: "0.2.78", BUILD_TIME: "1970-01-01T00:00:00.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();
300232
+ const buildTime = new Date({ VERSION: "0.2.80", BUILD_TIME: "1970-01-01T00:00:00.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();
300183
300233
  if (isNaN(buildTime))
300184
300234
  return;
300185
300235
  return Math.floor((Date.now() - buildTime) / 60000);
@@ -318484,7 +318534,7 @@ function getSimpleDoingTasksSection() {
318484
318534
  ];
318485
318535
  const userHelpSubitems = [
318486
318536
  `/help: Get help with using Theus`,
318487
- `To give feedback, users should ${{ VERSION: "0.2.78", BUILD_TIME: "1970-01-01T00:00:00.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}`
318537
+ `To give feedback, users should ${{ VERSION: "0.2.80", BUILD_TIME: "1970-01-01T00:00:00.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}`
318488
318538
  ];
318489
318539
  const items = [
318490
318540
  `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.`,
@@ -329620,7 +329670,7 @@ async function submitTranscriptShare(messages, trigger, appearanceId) {
329620
329670
  } catch {}
329621
329671
  const data = {
329622
329672
  trigger,
329623
- version: { VERSION: "0.2.78", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
329673
+ version: { VERSION: "0.2.80", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
329624
329674
  platform: process.platform,
329625
329675
  transcript,
329626
329676
  subagentTranscripts: Object.keys(subagentTranscripts).length > 0 ? subagentTranscripts : undefined,
@@ -329825,10 +329875,10 @@ Si el usuario indic\xF3 una duraci\xF3n, p\xE1sala en el par\xE1metro \`duration
329825
329875
 
329826
329876
  // commands/issue/index.ts
329827
329877
  function getCliVersion() {
329828
- return { VERSION: "0.2.78", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.78", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION : "desconocida";
329878
+ return { VERSION: "0.2.80", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.80", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION : "desconocida";
329829
329879
  }
329830
329880
  function getIssuesExplainer() {
329831
- return { VERSION: "0.2.78", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.ISSUES_EXPLAINER ? { VERSION: "0.2.78", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.ISSUES_EXPLAINER : "report issues to the Theus maintainers";
329881
+ return { VERSION: "0.2.80", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.ISSUES_EXPLAINER ? { VERSION: "0.2.80", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.ISSUES_EXPLAINER : "report issues to the Theus maintainers";
329832
329882
  }
329833
329883
  function getActiveModelLabel() {
329834
329884
  try {
@@ -332614,7 +332664,7 @@ function buildPrimarySection() {
332614
332664
  });
332615
332665
  return [{
332616
332666
  label: "Version",
332617
- value: { VERSION: "0.2.78", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
332667
+ value: { VERSION: "0.2.80", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
332618
332668
  }, {
332619
332669
  label: "Session name",
332620
332670
  value: nameValue
@@ -336430,7 +336480,7 @@ function Config({
336430
336480
  }
336431
336481
  })
336432
336482
  }) : showSubmenu === "ChannelDowngrade" ? /* @__PURE__ */ jsx_runtime189.jsx(ChannelDowngradeDialog, {
336433
- currentVersion: { VERSION: "0.2.78", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
336483
+ currentVersion: { VERSION: "0.2.80", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
336434
336484
  onChoice: (choice) => {
336435
336485
  setShowSubmenu(null);
336436
336486
  setTabsHidden(false);
@@ -336442,7 +336492,7 @@ function Config({
336442
336492
  autoUpdatesChannel: "stable"
336443
336493
  };
336444
336494
  if (choice === "stay") {
336445
- newSettings.minimumVersion = { VERSION: "0.2.78", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION;
336495
+ newSettings.minimumVersion = { VERSION: "0.2.80", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION;
336446
336496
  }
336447
336497
  updateSettingsForSource("userSettings", newSettings);
336448
336498
  setSettingsData((prev_27) => ({
@@ -343801,7 +343851,7 @@ function HelpV2(t0) {
343801
343851
  let t6;
343802
343852
  if ($2[31] !== tabs) {
343803
343853
  t6 = /* @__PURE__ */ jsx_runtime215.jsx(Tabs, {
343804
- title: `Theus v${{ VERSION: "0.2.78", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION}`,
343854
+ title: `Theus v${{ VERSION: "0.2.80", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION}`,
343805
343855
  color: "professionalBlue",
343806
343856
  defaultTab: "general",
343807
343857
  children: tabs
@@ -362622,7 +362672,7 @@ function Onboarding({
362622
362672
  flexDirection: "column",
362623
362673
  children: [
362624
362674
  /* @__PURE__ */ jsx_runtime251.jsx(TheusBanner, {
362625
- version: { VERSION: "0.2.78", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
362675
+ version: { VERSION: "0.2.80", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
362626
362676
  }),
362627
362677
  /* @__PURE__ */ jsx_runtime251.jsxs(ThemedBox_default, {
362628
362678
  flexDirection: "column",
@@ -368009,7 +368059,7 @@ var init_Messages = __esm(() => {
368009
368059
  let t1;
368010
368060
  if ($2[0] === Symbol.for("react.memo_cache_sentinel")) {
368011
368061
  t1 = /* @__PURE__ */ jsx_runtime264.jsx(TheusSessionHeader, {
368012
- version: { VERSION: "0.2.78", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
368062
+ version: { VERSION: "0.2.80", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
368013
368063
  });
368014
368064
  $2[0] = t1;
368015
368065
  } else {
@@ -399878,7 +399928,7 @@ async function captureMemoryDiagnostics(trigger, dumpNumber = 0) {
399878
399928
  smapsRollup,
399879
399929
  platform: process.platform,
399880
399930
  nodeVersion: process.version,
399881
- ccVersion: { VERSION: "0.2.78", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
399931
+ ccVersion: { VERSION: "0.2.80", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
399882
399932
  };
399883
399933
  }
399884
399934
  async function performHeapDump(trigger = "manual", dumpNumber = 0) {
@@ -400639,7 +400689,7 @@ var init_bridge_kick = __esm(() => {
400639
400689
  var call69 = async () => {
400640
400690
  return {
400641
400691
  type: "text",
400642
- value: { VERSION: "0.2.78", BUILD_TIME: "1970-01-01T00:00:00.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.78", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.78", BUILD_TIME: "1970-01-01T00:00:00.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.78", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
400692
+ value: { VERSION: "0.2.80", BUILD_TIME: "1970-01-01T00:00:00.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.80", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.80", BUILD_TIME: "1970-01-01T00:00:00.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.80", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
400643
400693
  };
400644
400694
  }, version2, version_default;
400645
400695
  var init_version = __esm(() => {
@@ -403240,7 +403290,7 @@ var SECRET_NAME_PATTERN, EXTRA_ENV_ALLOWLIST, REDACTED2 = "\u2039oculto\u203A",
403240
403290
  const lines = [];
403241
403291
  lines.push("## Entorno de ejecuci\xF3n");
403242
403292
  lines.push("");
403243
- const version3 = { VERSION: "0.2.78", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.78", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION : "desconocida";
403293
+ const version3 = { VERSION: "0.2.80", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.80", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION : "desconocida";
403244
403294
  lines.push(`- Versi\xF3n de Theus: ${version3}`);
403245
403295
  lines.push(`- Directorio de trabajo: ${getCwd()}`);
403246
403296
  lines.push(`- \xBFRepositorio git?: ${isGit ? "s\xED" : "no"}`);
@@ -405781,13 +405831,13 @@ async function updateReleaseBundle() {
405781
405831
  await gracefulShutdown(1);
405782
405832
  return;
405783
405833
  }
405784
- if (gte({ VERSION: "0.2.78", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
405785
- writeToStdout(source_default.green(`Theus ya est\xE1 al d\xEDa (${{ VERSION: "0.2.78", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION})`) + `
405834
+ if (gte({ VERSION: "0.2.80", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
405835
+ writeToStdout(source_default.green(`Theus ya est\xE1 al d\xEDa (${{ VERSION: "0.2.80", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION})`) + `
405786
405836
  `);
405787
405837
  await gracefulShutdown(0);
405788
405838
  return;
405789
405839
  }
405790
- writeToStdout(`Nueva versi\xF3n disponible: ${latest} (actual: ${{ VERSION: "0.2.78", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION})
405840
+ writeToStdout(`Nueva versi\xF3n disponible: ${latest} (actual: ${{ VERSION: "0.2.80", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION})
405791
405841
  `);
405792
405842
  writeToStdout(`Instalando la actualizaci\xF3n desde theus.pe/dl...
405793
405843
  `);
@@ -405821,7 +405871,7 @@ async function updateReleaseBundle() {
405821
405871
  return;
405822
405872
  }
405823
405873
  cpSync(staged, bundleDir, { recursive: true, force: true });
405824
- writeToStdout(source_default.green(`Actualizado correctamente de ${{ VERSION: "0.2.78", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION} a la versi\xF3n ${latest}`) + `
405874
+ writeToStdout(source_default.green(`Actualizado correctamente de ${{ VERSION: "0.2.80", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION} a la versi\xF3n ${latest}`) + `
405825
405875
  `);
405826
405876
  await regenerateCompletionCache();
405827
405877
  } finally {
@@ -405834,7 +405884,7 @@ async function updateReleaseBundle() {
405834
405884
  async function update() {
405835
405885
  logEvent("theus_update_check", {});
405836
405886
  await updateNaupa();
405837
- writeToStdout(`Versi\xF3n actual: ${{ VERSION: "0.2.78", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION}
405887
+ writeToStdout(`Versi\xF3n actual: ${{ VERSION: "0.2.80", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION}
405838
405888
  `);
405839
405889
  const channel2 = getInitialSettings()?.autoUpdatesChannel ?? "latest";
405840
405890
  writeToStdout(`Buscando actualizaciones en el canal ${channel2}...
@@ -405913,8 +405963,8 @@ async function update() {
405913
405963
  writeToStdout(`Theus est\xE1 gestionado por Homebrew.
405914
405964
  `);
405915
405965
  const latest = await getLatestVersion(channel2);
405916
- if (latest && !gte({ VERSION: "0.2.78", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
405917
- writeToStdout(`Actualizaci\xF3n disponible: ${{ VERSION: "0.2.78", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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}
405966
+ if (latest && !gte({ VERSION: "0.2.80", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
405967
+ writeToStdout(`Actualizaci\xF3n disponible: ${{ VERSION: "0.2.80", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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}
405918
405968
  `);
405919
405969
  writeToStdout(`
405920
405970
  `);
@@ -405930,8 +405980,8 @@ async function update() {
405930
405980
  writeToStdout(`Theus est\xE1 gestionado por winget.
405931
405981
  `);
405932
405982
  const latest = await getLatestVersion(channel2);
405933
- if (latest && !gte({ VERSION: "0.2.78", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
405934
- writeToStdout(`Actualizaci\xF3n disponible: ${{ VERSION: "0.2.78", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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}
405983
+ if (latest && !gte({ VERSION: "0.2.80", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
405984
+ writeToStdout(`Actualizaci\xF3n disponible: ${{ VERSION: "0.2.80", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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}
405935
405985
  `);
405936
405986
  writeToStdout(`
405937
405987
  `);
@@ -405947,8 +405997,8 @@ async function update() {
405947
405997
  writeToStdout(`Theus est\xE1 gestionado por apk.
405948
405998
  `);
405949
405999
  const latest = await getLatestVersion(channel2);
405950
- if (latest && !gte({ VERSION: "0.2.78", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
405951
- writeToStdout(`Actualizaci\xF3n disponible: ${{ VERSION: "0.2.78", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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}
406000
+ if (latest && !gte({ VERSION: "0.2.80", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
406001
+ writeToStdout(`Actualizaci\xF3n disponible: ${{ VERSION: "0.2.80", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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}
405952
406002
  `);
405953
406003
  writeToStdout(`
405954
406004
  `);
@@ -406013,11 +406063,11 @@ async function update() {
406013
406063
  `);
406014
406064
  await gracefulShutdown(1);
406015
406065
  }
406016
- if (result.latestVersion === { VERSION: "0.2.78", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION) {
406017
- writeToStdout(source_default.green(`Theus ya est\xE1 al d\xEDa (${{ VERSION: "0.2.78", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION})`) + `
406066
+ if (result.latestVersion === { VERSION: "0.2.80", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION) {
406067
+ writeToStdout(source_default.green(`Theus ya est\xE1 al d\xEDa (${{ VERSION: "0.2.80", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION})`) + `
406018
406068
  `);
406019
406069
  } else {
406020
- writeToStdout(source_default.green(`Actualizado correctamente de ${{ VERSION: "0.2.78", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION} a la versi\xF3n ${result.latestVersion}`) + `
406070
+ writeToStdout(source_default.green(`Actualizado correctamente de ${{ VERSION: "0.2.80", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION} a la versi\xF3n ${result.latestVersion}`) + `
406021
406071
  `);
406022
406072
  await regenerateCompletionCache();
406023
406073
  }
@@ -406036,9 +406086,9 @@ async function update() {
406036
406086
  await removeInstalledSymlink();
406037
406087
  }
406038
406088
  logForDebugging("update: Checking npm registry for latest version");
406039
- logForDebugging(`update: Package URL: ${{ VERSION: "0.2.78", BUILD_TIME: "1970-01-01T00:00:00.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}`);
406089
+ logForDebugging(`update: Package URL: ${{ VERSION: "0.2.80", BUILD_TIME: "1970-01-01T00:00:00.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}`);
406040
406090
  const npmTag = channel2 === "stable" ? "stable" : "latest";
406041
- const npmCommand = `npm view ${{ VERSION: "0.2.78", BUILD_TIME: "1970-01-01T00:00:00.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`;
406091
+ const npmCommand = `npm view ${{ VERSION: "0.2.80", BUILD_TIME: "1970-01-01T00:00:00.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`;
406042
406092
  logForDebugging(`update: Running: ${npmCommand}`);
406043
406093
  const latestVersion = await getLatestVersion(channel2);
406044
406094
  logForDebugging(`update: Latest version from npm: ${latestVersion || "FAILED"}`);
@@ -406058,7 +406108,7 @@ async function update() {
406058
406108
  `);
406059
406109
  process.stderr.write(` \u2022 Un proxy o firewall corporativo bloquea npm
406060
406110
  `);
406061
- if ({ VERSION: "0.2.78", BUILD_TIME: "1970-01-01T00:00:00.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.78", BUILD_TIME: "1970-01-01T00:00:00.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")) {
406111
+ if ({ VERSION: "0.2.80", BUILD_TIME: "1970-01-01T00:00:00.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.80", BUILD_TIME: "1970-01-01T00:00:00.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")) {
406062
406112
  process.stderr.write(` \u2022 Compilaci\xF3n interna/de desarrollo no publicada en npm
406063
406113
  `);
406064
406114
  }
@@ -406070,19 +406120,19 @@ async function update() {
406070
406120
  `);
406071
406121
  process.stderr.write(` \u2022 Ejecuta con el flag --debug para m\xE1s detalle
406072
406122
  `);
406073
- const packageName = { VERSION: "0.2.78", BUILD_TIME: "1970-01-01T00:00:00.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";
406123
+ const packageName = { VERSION: "0.2.80", BUILD_TIME: "1970-01-01T00:00:00.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";
406074
406124
  process.stderr.write(` \u2022 Comprueba a mano: npm view ${packageName} version
406075
406125
  `);
406076
406126
  process.stderr.write(` \u2022 Comprueba si te falta iniciar sesi\xF3n: npm whoami
406077
406127
  `);
406078
406128
  await gracefulShutdown(1);
406079
406129
  }
406080
- if (gte({ VERSION: "0.2.78", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
406081
- writeToStdout(source_default.green(`Theus ya est\xE1 al d\xEDa (${{ VERSION: "0.2.78", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION})`) + `
406130
+ if (gte({ VERSION: "0.2.80", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
406131
+ writeToStdout(source_default.green(`Theus ya est\xE1 al d\xEDa (${{ VERSION: "0.2.80", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION})`) + `
406082
406132
  `);
406083
406133
  await gracefulShutdown(0);
406084
406134
  }
406085
- writeToStdout(`Nueva versi\xF3n disponible: ${latestVersion} (actual: ${{ VERSION: "0.2.78", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION})
406135
+ writeToStdout(`Nueva versi\xF3n disponible: ${latestVersion} (actual: ${{ VERSION: "0.2.80", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION})
406086
406136
  `);
406087
406137
  writeToStdout(`Instalando la actualizaci\xF3n...
406088
406138
  `);
@@ -406127,7 +406177,7 @@ async function update() {
406127
406177
  logForDebugging(`update: Installation status: ${status2}`);
406128
406178
  switch (status2) {
406129
406179
  case "success":
406130
- writeToStdout(source_default.green(`Actualizado correctamente de ${{ VERSION: "0.2.78", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION} a la versi\xF3n ${latestVersion}`) + `
406180
+ writeToStdout(source_default.green(`Actualizado correctamente de ${{ VERSION: "0.2.80", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION} a la versi\xF3n ${latestVersion}`) + `
406131
406181
  `);
406132
406182
  await regenerateCompletionCache();
406133
406183
  break;
@@ -406137,7 +406187,7 @@ async function update() {
406137
406187
  if (useLocalUpdate) {
406138
406188
  process.stderr.write(`Prueba a actualizar a mano con:
406139
406189
  `);
406140
- process.stderr.write(` cd ~/.theus/local && npm update ${{ VERSION: "0.2.78", BUILD_TIME: "1970-01-01T00:00:00.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}
406190
+ process.stderr.write(` cd ~/.theus/local && npm update ${{ VERSION: "0.2.80", BUILD_TIME: "1970-01-01T00:00:00.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}
406141
406191
  `);
406142
406192
  } else {
406143
406193
  process.stderr.write(`Prueba con sudo o corrige los permisos de npm
@@ -406153,7 +406203,7 @@ async function update() {
406153
406203
  if (useLocalUpdate) {
406154
406204
  process.stderr.write(`Prueba a actualizar a mano con:
406155
406205
  `);
406156
- process.stderr.write(` cd ~/.theus/local && npm update ${{ VERSION: "0.2.78", BUILD_TIME: "1970-01-01T00:00:00.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}
406206
+ process.stderr.write(` cd ~/.theus/local && npm update ${{ VERSION: "0.2.80", BUILD_TIME: "1970-01-01T00:00:00.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}
406157
406207
  `);
406158
406208
  } else {
406159
406209
  process.stderr.write(`O p\xE1sate a la instalaci\xF3n nativa con: theus install
@@ -415578,7 +415628,7 @@ var init_sessionStorage = __esm(() => {
415578
415628
  init_settings2();
415579
415629
  init_slowOperations();
415580
415630
  init_uuid();
415581
- VERSION4 = { VERSION: "0.2.78", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION;
415631
+ VERSION4 = { VERSION: "0.2.80", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION;
415582
415632
  MAX_TOMBSTONE_REWRITE_BYTES = 50 * 1024 * 1024;
415583
415633
  SKIP_FIRST_PROMPT_PATTERN2 = /^(?:\s*<[a-z][\w-]*[\s>]|\[Request interrupted by user[^\]]*\])/;
415584
415634
  EPHEMERAL_PROGRESS_TYPES = new Set([
@@ -416783,7 +416833,7 @@ var init_filesystem = __esm(() => {
416783
416833
  });
416784
416834
  getBundledSkillsRoot = memoize_default(function getBundledSkillsRoot2() {
416785
416835
  const nonce = randomBytes21(16).toString("hex");
416786
- return join154(getTheusTempDir(), "bundled-skills", { VERSION: "0.2.78", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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);
416836
+ return join154(getTheusTempDir(), "bundled-skills", { VERSION: "0.2.80", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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);
416787
416837
  });
416788
416838
  getResolvedWorkingDirPaths = memoize_default(getPathsForPermissionCheck);
416789
416839
  });
@@ -428960,7 +429010,7 @@ async function handleMemories(state2) {
428960
429010
  async function runProjectContextMcpServer() {
428961
429011
  const projectRoot = process.env.THEUS_PROJECT_ROOT || process.cwd();
428962
429012
  const state2 = new ProjectContextState(projectRoot);
428963
- const server2 = new Server({ name: SERVER_NAME, version: { VERSION: "0.2.78", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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: {} } });
429013
+ const server2 = new Server({ name: SERVER_NAME, version: { VERSION: "0.2.80", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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: {} } });
428964
429014
  server2.setRequestHandler(ListToolsRequestSchema, async () => ({
428965
429015
  tools: TOOL_DEFINITIONS.map((t) => ({
428966
429016
  name: t.name,
@@ -431637,7 +431687,7 @@ async function runTitanFleetWorker(args) {
431637
431687
  max_concurrency: maxConcurrency,
431638
431688
  runtime: {
431639
431689
  name: "theus-cli",
431640
- version: { VERSION: "0.2.78", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
431690
+ version: { VERSION: "0.2.80", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
431641
431691
  }
431642
431692
  });
431643
431693
  const client2 = new TitanFleetClient({
@@ -433528,7 +433578,7 @@ function createBridgeLogger(options2) {
433528
433578
  connectUrl = buildBridgeConnectUrl(environmentId, cachedIngressUrl);
433529
433579
  regenerateQr(connectUrl);
433530
433580
  if (verbose) {
433531
- write(source_default.dim(`Remote Control`) + ` v${{ VERSION: "0.2.78", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION}
433581
+ write(source_default.dim(`Remote Control`) + ` v${{ VERSION: "0.2.80", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION}
433532
433582
  `);
433533
433583
  }
433534
433584
  if (verbose) {
@@ -434501,7 +434551,7 @@ function appendToLog(path19, message) {
434501
434551
  cwd: getFsImplementation().cwd(),
434502
434552
  userType: "external",
434503
434553
  sessionId: getSessionId(),
434504
- version: { VERSION: "0.2.78", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
434554
+ version: { VERSION: "0.2.80", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
434505
434555
  };
434506
434556
  getLogWriter(path19).write(messageWithTimestamp);
434507
434557
  }
@@ -435762,7 +435812,7 @@ Spawn mode for this project:
435762
435812
  const api2 = createBridgeApiClient({
435763
435813
  baseUrl,
435764
435814
  getAccessToken: getBridgeAccessToken2,
435765
- runnerVersion: { VERSION: "0.2.78", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
435815
+ runnerVersion: { VERSION: "0.2.80", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
435766
435816
  onDebug: logForDebugging,
435767
435817
  onAuth401: handleOAuth401Error2,
435768
435818
  getTrustedDeviceToken
@@ -436000,7 +436050,7 @@ async function runBridgeHeadless(opts, signal) {
436000
436050
  const api2 = createBridgeApiClient({
436001
436051
  baseUrl,
436002
436052
  getAccessToken: opts.getAccessToken,
436003
- runnerVersion: { VERSION: "0.2.78", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
436053
+ runnerVersion: { VERSION: "0.2.80", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
436004
436054
  onDebug: log2,
436005
436055
  onAuth401: opts.onAuth401,
436006
436056
  getTrustedDeviceToken
@@ -436126,7 +436176,7 @@ var init_bridgeMain = __esm(() => {
436126
436176
  };
436127
436177
  });
436128
436178
 
436129
- // node_modules/@commander-js/extra-typings/node_modules/commander/lib/error.js
436179
+ // node_modules/commander/lib/error.js
436130
436180
  var require_error = __commonJS((exports) => {
436131
436181
  class CommanderError extends Error {
436132
436182
  constructor(exitCode, code, message) {
@@ -436150,7 +436200,7 @@ var require_error = __commonJS((exports) => {
436150
436200
  exports.InvalidArgumentError = InvalidArgumentError;
436151
436201
  });
436152
436202
 
436153
- // node_modules/@commander-js/extra-typings/node_modules/commander/lib/argument.js
436203
+ // node_modules/commander/lib/argument.js
436154
436204
  var require_argument = __commonJS((exports) => {
436155
436205
  var { InvalidArgumentError } = require_error();
436156
436206
 
@@ -436229,17 +436279,21 @@ var require_argument = __commonJS((exports) => {
436229
436279
  exports.humanReadableArgName = humanReadableArgName;
436230
436280
  });
436231
436281
 
436232
- // node_modules/@commander-js/extra-typings/node_modules/commander/lib/help.js
436282
+ // node_modules/commander/lib/help.js
436233
436283
  var require_help = __commonJS((exports) => {
436234
436284
  var { humanReadableArgName } = require_argument();
436235
436285
 
436236
436286
  class Help {
436237
436287
  constructor() {
436238
436288
  this.helpWidth = undefined;
436289
+ this.minWidthToWrap = 40;
436239
436290
  this.sortSubcommands = false;
436240
436291
  this.sortOptions = false;
436241
436292
  this.showGlobalOptions = false;
436242
436293
  }
436294
+ prepareContext(contextOptions) {
436295
+ this.helpWidth = this.helpWidth ?? contextOptions.helpWidth ?? 80;
436296
+ }
436243
436297
  visibleCommands(cmd) {
436244
436298
  const visibleCommands = cmd.commands.filter((cmd2) => !cmd2._hidden);
436245
436299
  const helpCommand = cmd._getHelpCommand();
@@ -436314,22 +436368,22 @@ var require_help = __commonJS((exports) => {
436314
436368
  }
436315
436369
  longestSubcommandTermLength(cmd, helper) {
436316
436370
  return helper.visibleCommands(cmd).reduce((max2, command9) => {
436317
- return Math.max(max2, helper.subcommandTerm(command9).length);
436371
+ return Math.max(max2, this.displayWidth(helper.styleSubcommandTerm(helper.subcommandTerm(command9))));
436318
436372
  }, 0);
436319
436373
  }
436320
436374
  longestOptionTermLength(cmd, helper) {
436321
436375
  return helper.visibleOptions(cmd).reduce((max2, option) => {
436322
- return Math.max(max2, helper.optionTerm(option).length);
436376
+ return Math.max(max2, this.displayWidth(helper.styleOptionTerm(helper.optionTerm(option))));
436323
436377
  }, 0);
436324
436378
  }
436325
436379
  longestGlobalOptionTermLength(cmd, helper) {
436326
436380
  return helper.visibleGlobalOptions(cmd).reduce((max2, option) => {
436327
- return Math.max(max2, helper.optionTerm(option).length);
436381
+ return Math.max(max2, this.displayWidth(helper.styleOptionTerm(helper.optionTerm(option))));
436328
436382
  }, 0);
436329
436383
  }
436330
436384
  longestArgumentTermLength(cmd, helper) {
436331
436385
  return helper.visibleArguments(cmd).reduce((max2, argument) => {
436332
- return Math.max(max2, helper.argumentTerm(argument).length);
436386
+ return Math.max(max2, this.displayWidth(helper.styleArgumentTerm(helper.argumentTerm(argument))));
436333
436387
  }, 0);
436334
436388
  }
436335
436389
  commandUsage(cmd) {
@@ -436380,105 +436434,202 @@ var require_help = __commonJS((exports) => {
436380
436434
  extraInfo.push(`default: ${argument.defaultValueDescription || JSON.stringify(argument.defaultValue)}`);
436381
436435
  }
436382
436436
  if (extraInfo.length > 0) {
436383
- const extraDescripton = `(${extraInfo.join(", ")})`;
436437
+ const extraDescription = `(${extraInfo.join(", ")})`;
436384
436438
  if (argument.description) {
436385
- return `${argument.description} ${extraDescripton}`;
436439
+ return `${argument.description} ${extraDescription}`;
436386
436440
  }
436387
- return extraDescripton;
436441
+ return extraDescription;
436388
436442
  }
436389
436443
  return argument.description;
436390
436444
  }
436391
436445
  formatHelp(cmd, helper) {
436392
436446
  const termWidth = helper.padWidth(cmd, helper);
436393
- const helpWidth = helper.helpWidth || 80;
436394
- const itemIndentWidth = 2;
436395
- const itemSeparatorWidth = 2;
436396
- function formatItem(term, description) {
436397
- if (description) {
436398
- const fullText = `${term.padEnd(termWidth + itemSeparatorWidth)}${description}`;
436399
- return helper.wrap(fullText, helpWidth - itemIndentWidth, termWidth + itemSeparatorWidth);
436400
- }
436401
- return term;
436447
+ const helpWidth = helper.helpWidth ?? 80;
436448
+ function callFormatItem(term, description) {
436449
+ return helper.formatItem(term, termWidth, description, helper);
436402
436450
  }
436403
- function formatList(textArray) {
436404
- return textArray.join(`
436405
- `).replace(/^/gm, " ".repeat(itemIndentWidth));
436406
- }
436407
- let output = [`Usage: ${helper.commandUsage(cmd)}`, ""];
436451
+ let output = [
436452
+ `${helper.styleTitle("Usage:")} ${helper.styleUsage(helper.commandUsage(cmd))}`,
436453
+ ""
436454
+ ];
436408
436455
  const commandDescription = helper.commandDescription(cmd);
436409
436456
  if (commandDescription.length > 0) {
436410
436457
  output = output.concat([
436411
- helper.wrap(commandDescription, helpWidth, 0),
436458
+ helper.boxWrap(helper.styleCommandDescription(commandDescription), helpWidth),
436412
436459
  ""
436413
436460
  ]);
436414
436461
  }
436415
436462
  const argumentList = helper.visibleArguments(cmd).map((argument) => {
436416
- return formatItem(helper.argumentTerm(argument), helper.argumentDescription(argument));
436463
+ return callFormatItem(helper.styleArgumentTerm(helper.argumentTerm(argument)), helper.styleArgumentDescription(helper.argumentDescription(argument)));
436417
436464
  });
436418
436465
  if (argumentList.length > 0) {
436419
- output = output.concat(["Arguments:", formatList(argumentList), ""]);
436466
+ output = output.concat([
436467
+ helper.styleTitle("Arguments:"),
436468
+ ...argumentList,
436469
+ ""
436470
+ ]);
436420
436471
  }
436421
436472
  const optionList = helper.visibleOptions(cmd).map((option) => {
436422
- return formatItem(helper.optionTerm(option), helper.optionDescription(option));
436473
+ return callFormatItem(helper.styleOptionTerm(helper.optionTerm(option)), helper.styleOptionDescription(helper.optionDescription(option)));
436423
436474
  });
436424
436475
  if (optionList.length > 0) {
436425
- output = output.concat(["Options:", formatList(optionList), ""]);
436476
+ output = output.concat([
436477
+ helper.styleTitle("Options:"),
436478
+ ...optionList,
436479
+ ""
436480
+ ]);
436426
436481
  }
436427
- if (this.showGlobalOptions) {
436482
+ if (helper.showGlobalOptions) {
436428
436483
  const globalOptionList = helper.visibleGlobalOptions(cmd).map((option) => {
436429
- return formatItem(helper.optionTerm(option), helper.optionDescription(option));
436484
+ return callFormatItem(helper.styleOptionTerm(helper.optionTerm(option)), helper.styleOptionDescription(helper.optionDescription(option)));
436430
436485
  });
436431
436486
  if (globalOptionList.length > 0) {
436432
436487
  output = output.concat([
436433
- "Global Options:",
436434
- formatList(globalOptionList),
436488
+ helper.styleTitle("Global Options:"),
436489
+ ...globalOptionList,
436435
436490
  ""
436436
436491
  ]);
436437
436492
  }
436438
436493
  }
436439
436494
  const commandList = helper.visibleCommands(cmd).map((cmd2) => {
436440
- return formatItem(helper.subcommandTerm(cmd2), helper.subcommandDescription(cmd2));
436495
+ return callFormatItem(helper.styleSubcommandTerm(helper.subcommandTerm(cmd2)), helper.styleSubcommandDescription(helper.subcommandDescription(cmd2)));
436441
436496
  });
436442
436497
  if (commandList.length > 0) {
436443
- output = output.concat(["Commands:", formatList(commandList), ""]);
436498
+ output = output.concat([
436499
+ helper.styleTitle("Commands:"),
436500
+ ...commandList,
436501
+ ""
436502
+ ]);
436444
436503
  }
436445
436504
  return output.join(`
436446
436505
  `);
436447
436506
  }
436507
+ displayWidth(str2) {
436508
+ return stripColor(str2).length;
436509
+ }
436510
+ styleTitle(str2) {
436511
+ return str2;
436512
+ }
436513
+ styleUsage(str2) {
436514
+ return str2.split(" ").map((word) => {
436515
+ if (word === "[options]")
436516
+ return this.styleOptionText(word);
436517
+ if (word === "[command]")
436518
+ return this.styleSubcommandText(word);
436519
+ if (word[0] === "[" || word[0] === "<")
436520
+ return this.styleArgumentText(word);
436521
+ return this.styleCommandText(word);
436522
+ }).join(" ");
436523
+ }
436524
+ styleCommandDescription(str2) {
436525
+ return this.styleDescriptionText(str2);
436526
+ }
436527
+ styleOptionDescription(str2) {
436528
+ return this.styleDescriptionText(str2);
436529
+ }
436530
+ styleSubcommandDescription(str2) {
436531
+ return this.styleDescriptionText(str2);
436532
+ }
436533
+ styleArgumentDescription(str2) {
436534
+ return this.styleDescriptionText(str2);
436535
+ }
436536
+ styleDescriptionText(str2) {
436537
+ return str2;
436538
+ }
436539
+ styleOptionTerm(str2) {
436540
+ return this.styleOptionText(str2);
436541
+ }
436542
+ styleSubcommandTerm(str2) {
436543
+ return str2.split(" ").map((word) => {
436544
+ if (word === "[options]")
436545
+ return this.styleOptionText(word);
436546
+ if (word[0] === "[" || word[0] === "<")
436547
+ return this.styleArgumentText(word);
436548
+ return this.styleSubcommandText(word);
436549
+ }).join(" ");
436550
+ }
436551
+ styleArgumentTerm(str2) {
436552
+ return this.styleArgumentText(str2);
436553
+ }
436554
+ styleOptionText(str2) {
436555
+ return str2;
436556
+ }
436557
+ styleArgumentText(str2) {
436558
+ return str2;
436559
+ }
436560
+ styleSubcommandText(str2) {
436561
+ return str2;
436562
+ }
436563
+ styleCommandText(str2) {
436564
+ return str2;
436565
+ }
436448
436566
  padWidth(cmd, helper) {
436449
436567
  return Math.max(helper.longestOptionTermLength(cmd, helper), helper.longestGlobalOptionTermLength(cmd, helper), helper.longestSubcommandTermLength(cmd, helper), helper.longestArgumentTermLength(cmd, helper));
436450
436568
  }
436451
- wrap(str2, width, indent, minColumnWidth = 40) {
436452
- const indents = " \\f\\t\\v\xA0\u1680\u2000-\u200A\u202F\u205F\u3000\uFEFF";
436453
- const manualIndent = new RegExp(`[\\n][${indents}]+`);
436454
- if (str2.match(manualIndent))
436455
- return str2;
436456
- const columnWidth = width - indent;
436457
- if (columnWidth < minColumnWidth)
436569
+ preformatted(str2) {
436570
+ return /\n[^\S\r\n]/.test(str2);
436571
+ }
436572
+ formatItem(term, termWidth, description, helper) {
436573
+ const itemIndent = 2;
436574
+ const itemIndentStr = " ".repeat(itemIndent);
436575
+ if (!description)
436576
+ return itemIndentStr + term;
436577
+ const paddedTerm = term.padEnd(termWidth + term.length - helper.displayWidth(term));
436578
+ const spacerWidth = 2;
436579
+ const helpWidth = this.helpWidth ?? 80;
436580
+ const remainingWidth = helpWidth - termWidth - spacerWidth - itemIndent;
436581
+ let formattedDescription;
436582
+ if (remainingWidth < this.minWidthToWrap || helper.preformatted(description)) {
436583
+ formattedDescription = description;
436584
+ } else {
436585
+ const wrappedDescription = helper.boxWrap(description, remainingWidth);
436586
+ formattedDescription = wrappedDescription.replace(/\n/g, `
436587
+ ` + " ".repeat(termWidth + spacerWidth));
436588
+ }
436589
+ return itemIndentStr + paddedTerm + " ".repeat(spacerWidth) + formattedDescription.replace(/\n/g, `
436590
+ ${itemIndentStr}`);
436591
+ }
436592
+ boxWrap(str2, width) {
436593
+ if (width < this.minWidthToWrap)
436458
436594
  return str2;
436459
- const leadingStr = str2.slice(0, indent);
436460
- const columnText = str2.slice(indent).replace(`\r
436461
- `, `
436462
- `);
436463
- const indentString2 = " ".repeat(indent);
436464
- const zeroWidthSpace = "\u200B";
436465
- const breaks = `\\s${zeroWidthSpace}`;
436466
- const regex2 = new RegExp(`
436467
- |.{1,${columnWidth - 1}}([${breaks}]|$)|[^${breaks}]+?([${breaks}]|$)`, "g");
436468
- const lines = columnText.match(regex2) || [];
436469
- return leadingStr + lines.map((line, i3) => {
436470
- if (line === `
436471
- `)
436472
- return "";
436473
- return (i3 > 0 ? indentString2 : "") + line.trimEnd();
436474
- }).join(`
436595
+ const rawLines = str2.split(/\r\n|\n/);
436596
+ const chunkPattern = /[\s]*[^\s]+/g;
436597
+ const wrappedLines = [];
436598
+ rawLines.forEach((line) => {
436599
+ const chunks = line.match(chunkPattern);
436600
+ if (chunks === null) {
436601
+ wrappedLines.push("");
436602
+ return;
436603
+ }
436604
+ let sumChunks = [chunks.shift()];
436605
+ let sumWidth = this.displayWidth(sumChunks[0]);
436606
+ chunks.forEach((chunk2) => {
436607
+ const visibleWidth = this.displayWidth(chunk2);
436608
+ if (sumWidth + visibleWidth <= width) {
436609
+ sumChunks.push(chunk2);
436610
+ sumWidth += visibleWidth;
436611
+ return;
436612
+ }
436613
+ wrappedLines.push(sumChunks.join(""));
436614
+ const nextChunk = chunk2.trimStart();
436615
+ sumChunks = [nextChunk];
436616
+ sumWidth = this.displayWidth(nextChunk);
436617
+ });
436618
+ wrappedLines.push(sumChunks.join(""));
436619
+ });
436620
+ return wrappedLines.join(`
436475
436621
  `);
436476
436622
  }
436477
436623
  }
436624
+ function stripColor(str2) {
436625
+ const sgrPattern = /\x1b\[\d*(;\d*)*m/g;
436626
+ return str2.replace(sgrPattern, "");
436627
+ }
436478
436628
  exports.Help = Help;
436629
+ exports.stripColor = stripColor;
436479
436630
  });
436480
436631
 
436481
- // node_modules/@commander-js/extra-typings/node_modules/commander/lib/option.js
436632
+ // node_modules/commander/lib/option.js
436482
436633
  var require_option = __commonJS((exports) => {
436483
436634
  var { InvalidArgumentError } = require_error();
436484
436635
 
@@ -436570,7 +436721,10 @@ var require_option = __commonJS((exports) => {
436570
436721
  return this.short.replace(/^-/, "");
436571
436722
  }
436572
436723
  attributeName() {
436573
- return camelcase(this.name().replace(/^no-/, ""));
436724
+ if (this.negate) {
436725
+ return camelcase(this.name().replace(/^no-/, ""));
436726
+ }
436727
+ return camelcase(this.name());
436574
436728
  }
436575
436729
  is(arg) {
436576
436730
  return this.short === arg || this.long === arg;
@@ -436615,21 +436769,45 @@ var require_option = __commonJS((exports) => {
436615
436769
  function splitOptionFlags(flags) {
436616
436770
  let shortFlag;
436617
436771
  let longFlag;
436618
- const flagParts = flags.split(/[ |,]+/);
436619
- if (flagParts.length > 1 && !/^[[<]/.test(flagParts[1]))
436772
+ const shortFlagExp = /^-[^-]$/;
436773
+ const longFlagExp = /^--[^-]/;
436774
+ const flagParts = flags.split(/[ |,]+/).concat("guard");
436775
+ if (shortFlagExp.test(flagParts[0]))
436776
+ shortFlag = flagParts.shift();
436777
+ if (longFlagExp.test(flagParts[0]))
436778
+ longFlag = flagParts.shift();
436779
+ if (!shortFlag && shortFlagExp.test(flagParts[0]))
436620
436780
  shortFlag = flagParts.shift();
436621
- longFlag = flagParts.shift();
436622
- if (!shortFlag && /^-[^-]$/.test(longFlag)) {
436781
+ if (!shortFlag && longFlagExp.test(flagParts[0])) {
436623
436782
  shortFlag = longFlag;
436624
- longFlag = undefined;
436625
- }
436783
+ longFlag = flagParts.shift();
436784
+ }
436785
+ if (flagParts[0].startsWith("-")) {
436786
+ const unsupportedFlag = flagParts[0];
436787
+ const baseError = `option creation failed due to '${unsupportedFlag}' in option flags '${flags}'`;
436788
+ if (/^-[^-][^-]/.test(unsupportedFlag))
436789
+ throw new Error(`${baseError}
436790
+ - a short flag is a single dash and a single character
436791
+ - either use a single dash and a single character (for a short flag)
436792
+ - or use a double dash for a long option (and can have two, like '--ws, --workspace')`);
436793
+ if (shortFlagExp.test(unsupportedFlag))
436794
+ throw new Error(`${baseError}
436795
+ - too many short flags`);
436796
+ if (longFlagExp.test(unsupportedFlag))
436797
+ throw new Error(`${baseError}
436798
+ - too many long flags`);
436799
+ throw new Error(`${baseError}
436800
+ - unrecognised flag format`);
436801
+ }
436802
+ if (shortFlag === undefined && longFlag === undefined)
436803
+ throw new Error(`option creation failed due to no flags found in '${flags}'.`);
436626
436804
  return { shortFlag, longFlag };
436627
436805
  }
436628
436806
  exports.Option = Option;
436629
436807
  exports.DualOptions = DualOptions;
436630
436808
  });
436631
436809
 
436632
- // node_modules/@commander-js/extra-typings/node_modules/commander/lib/suggestSimilar.js
436810
+ // node_modules/commander/lib/suggestSimilar.js
436633
436811
  var require_suggestSimilar = __commonJS((exports) => {
436634
436812
  var maxDistance = 3;
436635
436813
  function editDistance(a2, b) {
@@ -436702,7 +436880,7 @@ var require_suggestSimilar = __commonJS((exports) => {
436702
436880
  exports.suggestSimilar = suggestSimilar;
436703
436881
  });
436704
436882
 
436705
- // node_modules/@commander-js/extra-typings/node_modules/commander/lib/command.js
436883
+ // node_modules/commander/lib/command.js
436706
436884
  var require_command = __commonJS((exports) => {
436707
436885
  var EventEmitter5 = __require("events").EventEmitter;
436708
436886
  var childProcess = __require("child_process");
@@ -436711,7 +436889,7 @@ var require_command = __commonJS((exports) => {
436711
436889
  var process15 = __require("process");
436712
436890
  var { Argument, humanReadableArgName } = require_argument();
436713
436891
  var { CommanderError } = require_error();
436714
- var { Help } = require_help();
436892
+ var { Help, stripColor } = require_help();
436715
436893
  var { Option, DualOptions } = require_option();
436716
436894
  var { suggestSimilar } = require_suggestSimilar();
436717
436895
 
@@ -436722,7 +436900,7 @@ var require_command = __commonJS((exports) => {
436722
436900
  this.options = [];
436723
436901
  this.parent = null;
436724
436902
  this._allowUnknownOption = false;
436725
- this._allowExcessArguments = true;
436903
+ this._allowExcessArguments = false;
436726
436904
  this.registeredArguments = [];
436727
436905
  this._args = this.registeredArguments;
436728
436906
  this.args = [];
@@ -436749,12 +436927,16 @@ var require_command = __commonJS((exports) => {
436749
436927
  this._lifeCycleHooks = {};
436750
436928
  this._showHelpAfterError = false;
436751
436929
  this._showSuggestionAfterError = true;
436930
+ this._savedState = null;
436752
436931
  this._outputConfiguration = {
436753
436932
  writeOut: (str2) => process15.stdout.write(str2),
436754
436933
  writeErr: (str2) => process15.stderr.write(str2),
436934
+ outputError: (str2, write) => write(str2),
436755
436935
  getOutHelpWidth: () => process15.stdout.isTTY ? process15.stdout.columns : undefined,
436756
436936
  getErrHelpWidth: () => process15.stderr.isTTY ? process15.stderr.columns : undefined,
436757
- outputError: (str2, write) => write(str2)
436937
+ getOutHasColors: () => useColor() ?? (process15.stdout.isTTY && process15.stdout.hasColors?.()),
436938
+ getErrHasColors: () => useColor() ?? (process15.stderr.isTTY && process15.stderr.hasColors?.()),
436939
+ stripColor: (str2) => stripColor(str2)
436758
436940
  };
436759
436941
  this._hidden = false;
436760
436942
  this._helpOption = undefined;
@@ -437186,15 +437368,53 @@ Expecting one of '${allowedValues.join("', '")}'`);
437186
437368
  return userArgs;
437187
437369
  }
437188
437370
  parse(argv, parseOptions) {
437371
+ this._prepareForParse();
437189
437372
  const userArgs = this._prepareUserArgs(argv, parseOptions);
437190
437373
  this._parseCommand([], userArgs);
437191
437374
  return this;
437192
437375
  }
437193
437376
  async parseAsync(argv, parseOptions) {
437377
+ this._prepareForParse();
437194
437378
  const userArgs = this._prepareUserArgs(argv, parseOptions);
437195
437379
  await this._parseCommand([], userArgs);
437196
437380
  return this;
437197
437381
  }
437382
+ _prepareForParse() {
437383
+ if (this._savedState === null) {
437384
+ this.saveStateBeforeParse();
437385
+ } else {
437386
+ this.restoreStateBeforeParse();
437387
+ }
437388
+ }
437389
+ saveStateBeforeParse() {
437390
+ this._savedState = {
437391
+ _name: this._name,
437392
+ _optionValues: { ...this._optionValues },
437393
+ _optionValueSources: { ...this._optionValueSources }
437394
+ };
437395
+ }
437396
+ restoreStateBeforeParse() {
437397
+ if (this._storeOptionsAsProperties)
437398
+ throw new Error(`Can not call parse again when storeOptionsAsProperties is true.
437399
+ - either make a new Command for each call to parse, or stop storing options as properties`);
437400
+ this._name = this._savedState._name;
437401
+ this._scriptPath = null;
437402
+ this.rawArgs = [];
437403
+ this._optionValues = { ...this._savedState._optionValues };
437404
+ this._optionValueSources = { ...this._savedState._optionValueSources };
437405
+ this.args = [];
437406
+ this.processedArgs = [];
437407
+ }
437408
+ _checkForMissingExecutable(executableFile, executableDir, subcommandName) {
437409
+ if (fs5.existsSync(executableFile))
437410
+ return;
437411
+ const executableDirMessage = executableDir ? `searched for local subcommand relative to directory '${executableDir}'` : "no directory for search for local subcommand, use .executableDir() to supply a custom directory";
437412
+ const executableMissing = `'${executableFile}' does not exist
437413
+ - if '${subcommandName}' is not meant to be an executable command, remove description parameter from '.command()' and use '.description()' instead
437414
+ - if the default executable name is not suitable, use the executableFile option to supply a custom name or path
437415
+ - ${executableDirMessage}`;
437416
+ throw new Error(executableMissing);
437417
+ }
437198
437418
  _executeSubCommand(subcommand, args) {
437199
437419
  args = args.slice();
437200
437420
  let launchWithNode = false;
@@ -437218,7 +437438,7 @@ Expecting one of '${allowedValues.join("', '")}'`);
437218
437438
  let resolvedScriptPath;
437219
437439
  try {
437220
437440
  resolvedScriptPath = fs5.realpathSync(this._scriptPath);
437221
- } catch (err2) {
437441
+ } catch {
437222
437442
  resolvedScriptPath = this._scriptPath;
437223
437443
  }
437224
437444
  executableDir = path19.resolve(path19.dirname(resolvedScriptPath), executableDir);
@@ -437244,6 +437464,7 @@ Expecting one of '${allowedValues.join("', '")}'`);
437244
437464
  proc = childProcess.spawn(executableFile, args, { stdio: "inherit" });
437245
437465
  }
437246
437466
  } else {
437467
+ this._checkForMissingExecutable(executableFile, executableDir, subcommand._name);
437247
437468
  args.unshift(executableFile);
437248
437469
  args = incrementNodeInspectorPort(process15.execArgv).concat(args);
437249
437470
  proc = childProcess.spawn(process15.execPath, args, { stdio: "inherit" });
@@ -437269,12 +437490,7 @@ Expecting one of '${allowedValues.join("', '")}'`);
437269
437490
  });
437270
437491
  proc.on("error", (err2) => {
437271
437492
  if (err2.code === "ENOENT") {
437272
- const executableDirMessage = executableDir ? `searched for local subcommand relative to directory '${executableDir}'` : "no directory for search for local subcommand, use .executableDir() to supply a custom directory";
437273
- const executableMissing = `'${executableFile}' does not exist
437274
- - if '${subcommand._name}' is not meant to be an executable command, remove description parameter from '.command()' and use '.description()' instead
437275
- - if the default executable name is not suitable, use the executableFile option to supply a custom name or path
437276
- - ${executableDirMessage}`;
437277
- throw new Error(executableMissing);
437493
+ this._checkForMissingExecutable(executableFile, executableDir, subcommand._name);
437278
437494
  } else if (err2.code === "EACCES") {
437279
437495
  throw new Error(`'${executableFile}' not executable`);
437280
437496
  }
@@ -437292,6 +437508,7 @@ Expecting one of '${allowedValues.join("', '")}'`);
437292
437508
  const subCommand = this._findCommand(commandName);
437293
437509
  if (!subCommand)
437294
437510
  this.help({ error: true });
437511
+ subCommand._prepareForParse();
437295
437512
  let promiseChain;
437296
437513
  promiseChain = this._chainOrCallSubCommandHook(promiseChain, subCommand, "preSubcommand");
437297
437514
  promiseChain = this._chainOrCall(promiseChain, () => {
@@ -437810,23 +438027,38 @@ Expecting one of '${allowedValues.join("', '")}'`);
437810
438027
  }
437811
438028
  helpInformation(contextOptions) {
437812
438029
  const helper = this.createHelp();
437813
- if (helper.helpWidth === undefined) {
437814
- helper.helpWidth = contextOptions && contextOptions.error ? this._outputConfiguration.getErrHelpWidth() : this._outputConfiguration.getOutHelpWidth();
437815
- }
437816
- return helper.formatHelp(this, helper);
437817
- }
437818
- _getHelpContext(contextOptions) {
438030
+ const context3 = this._getOutputContext(contextOptions);
438031
+ helper.prepareContext({
438032
+ error: context3.error,
438033
+ helpWidth: context3.helpWidth,
438034
+ outputHasColors: context3.hasColors
438035
+ });
438036
+ const text2 = helper.formatHelp(this, helper);
438037
+ if (context3.hasColors)
438038
+ return text2;
438039
+ return this._outputConfiguration.stripColor(text2);
438040
+ }
438041
+ _getOutputContext(contextOptions) {
437819
438042
  contextOptions = contextOptions || {};
437820
- const context3 = { error: !!contextOptions.error };
437821
- let write;
437822
- if (context3.error) {
437823
- write = (arg) => this._outputConfiguration.writeErr(arg);
438043
+ const error40 = !!contextOptions.error;
438044
+ let baseWrite;
438045
+ let hasColors2;
438046
+ let helpWidth;
438047
+ if (error40) {
438048
+ baseWrite = (str2) => this._outputConfiguration.writeErr(str2);
438049
+ hasColors2 = this._outputConfiguration.getErrHasColors();
438050
+ helpWidth = this._outputConfiguration.getErrHelpWidth();
437824
438051
  } else {
437825
- write = (arg) => this._outputConfiguration.writeOut(arg);
438052
+ baseWrite = (str2) => this._outputConfiguration.writeOut(str2);
438053
+ hasColors2 = this._outputConfiguration.getOutHasColors();
438054
+ helpWidth = this._outputConfiguration.getOutHelpWidth();
437826
438055
  }
437827
- context3.write = contextOptions.write || write;
437828
- context3.command = this;
437829
- return context3;
438056
+ const write = (str2) => {
438057
+ if (!hasColors2)
438058
+ str2 = this._outputConfiguration.stripColor(str2);
438059
+ return baseWrite(str2);
438060
+ };
438061
+ return { error: error40, write, hasColors: hasColors2, helpWidth };
437830
438062
  }
437831
438063
  outputHelp(contextOptions) {
437832
438064
  let deprecatedCallback;
@@ -437834,22 +438066,27 @@ Expecting one of '${allowedValues.join("', '")}'`);
437834
438066
  deprecatedCallback = contextOptions;
437835
438067
  contextOptions = undefined;
437836
438068
  }
437837
- const context3 = this._getHelpContext(contextOptions);
437838
- this._getCommandAndAncestors().reverse().forEach((command9) => command9.emit("beforeAllHelp", context3));
437839
- this.emit("beforeHelp", context3);
437840
- let helpInformation = this.helpInformation(context3);
438069
+ const outputContext = this._getOutputContext(contextOptions);
438070
+ const eventContext = {
438071
+ error: outputContext.error,
438072
+ write: outputContext.write,
438073
+ command: this
438074
+ };
438075
+ this._getCommandAndAncestors().reverse().forEach((command9) => command9.emit("beforeAllHelp", eventContext));
438076
+ this.emit("beforeHelp", eventContext);
438077
+ let helpInformation = this.helpInformation({ error: outputContext.error });
437841
438078
  if (deprecatedCallback) {
437842
438079
  helpInformation = deprecatedCallback(helpInformation);
437843
438080
  if (typeof helpInformation !== "string" && !Buffer.isBuffer(helpInformation)) {
437844
438081
  throw new Error("outputHelp callback must return a string or a Buffer");
437845
438082
  }
437846
438083
  }
437847
- context3.write(helpInformation);
438084
+ outputContext.write(helpInformation);
437848
438085
  if (this._getHelpOption()?.long) {
437849
438086
  this.emit(this._getHelpOption().long);
437850
438087
  }
437851
- this.emit("afterHelp", context3);
437852
- this._getCommandAndAncestors().forEach((command9) => command9.emit("afterAllHelp", context3));
438088
+ this.emit("afterHelp", eventContext);
438089
+ this._getCommandAndAncestors().forEach((command9) => command9.emit("afterAllHelp", eventContext));
437853
438090
  }
437854
438091
  helpOption(flags, description) {
437855
438092
  if (typeof flags === "boolean") {
@@ -437877,7 +438114,7 @@ Expecting one of '${allowedValues.join("', '")}'`);
437877
438114
  }
437878
438115
  help(contextOptions) {
437879
438116
  this.outputHelp(contextOptions);
437880
- let exitCode = process15.exitCode || 0;
438117
+ let exitCode = Number(process15.exitCode ?? 0);
437881
438118
  if (exitCode === 0 && contextOptions && typeof contextOptions !== "function" && contextOptions.error) {
437882
438119
  exitCode = 1;
437883
438120
  }
@@ -437942,10 +438179,18 @@ Expecting one of '${allowedValues.join("', '")}'`);
437942
438179
  return arg;
437943
438180
  });
437944
438181
  }
438182
+ function useColor() {
438183
+ if (process15.env.NO_COLOR || process15.env.FORCE_COLOR === "0" || process15.env.FORCE_COLOR === "false")
438184
+ return false;
438185
+ if (process15.env.FORCE_COLOR || process15.env.CLICOLOR_FORCE !== undefined)
438186
+ return true;
438187
+ return;
438188
+ }
437945
438189
  exports.Command = Command;
438190
+ exports.useColor = useColor;
437946
438191
  });
437947
438192
 
437948
- // node_modules/@commander-js/extra-typings/node_modules/commander/index.js
438193
+ // node_modules/commander/index.js
437949
438194
  var require_commander = __commonJS((exports) => {
437950
438195
  var { Argument } = require_argument();
437951
438196
  var { Command } = require_command();
@@ -439097,7 +439342,7 @@ function buildSystemInitMessage(inputs) {
439097
439342
  slash_commands: inputs.commands.filter((c5) => c5.userInvocable !== false).map((c5) => c5.name),
439098
439343
  apiKeySource: getTheusApiKeyWithSource().source,
439099
439344
  betas: getSdkBetas(),
439100
- theus_code_version: { VERSION: "0.2.78", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
439345
+ theus_code_version: { VERSION: "0.2.80", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
439101
439346
  output_style: outputStyle2,
439102
439347
  agents: inputs.agents.map((agent) => agent.agentType),
439103
439348
  skills: inputs.skills.filter((s) => s.userInvocable !== false).map((skill) => skill.name),
@@ -439137,8 +439382,8 @@ async function getEnvLessBridgeConfig() {
439137
439382
  }
439138
439383
  async function checkEnvLessBridgeMinVersion() {
439139
439384
  const cfg = await getEnvLessBridgeConfig();
439140
- if (cfg.min_version && lt({ VERSION: "0.2.78", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
439141
- return `Your version of Theus (${{ VERSION: "0.2.78", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.
439385
+ if (cfg.min_version && lt({ VERSION: "0.2.80", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
439386
+ return `Your version of Theus (${{ VERSION: "0.2.80", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.
439142
439387
  Version ${cfg.min_version} or higher is required. Run \`theus update\` to update.`;
439143
439388
  }
439144
439389
  return null;
@@ -441462,7 +441707,7 @@ async function initBridgeCore(params) {
441462
441707
  const rawApi = createBridgeApiClient({
441463
441708
  baseUrl,
441464
441709
  getAccessToken,
441465
- runnerVersion: { VERSION: "0.2.78", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
441710
+ runnerVersion: { VERSION: "0.2.80", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
441466
441711
  onDebug: logForDebugging,
441467
441712
  onAuth401,
441468
441713
  getTrustedDeviceToken
@@ -458103,7 +458348,7 @@ var init_useVoiceEnabled = __esm(() => {
458103
458348
  function getSemverPart(version3) {
458104
458349
  return `${import_semver11.major(version3, { loose: true })}.${import_semver11.minor(version3, { loose: true })}.${import_semver11.patch(version3, { loose: true })}`;
458105
458350
  }
458106
- function useUpdateNotification(updatedVersion, initialVersion = { VERSION: "0.2.78", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION) {
458351
+ function useUpdateNotification(updatedVersion, initialVersion = { VERSION: "0.2.80", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION) {
458107
458352
  const [lastNotifiedSemver, setLastNotifiedSemver] = import_react235.useState(() => getSemverPart(initialVersion));
458108
458353
  if (!updatedVersion) {
458109
458354
  return null;
@@ -458143,7 +458388,7 @@ function AutoUpdater({
458143
458388
  return;
458144
458389
  }
458145
458390
  if (false) {}
458146
- const currentVersion = { VERSION: "0.2.78", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION;
458391
+ const currentVersion = { VERSION: "0.2.80", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION;
458147
458392
  const channel2 = getInitialSettings()?.autoUpdatesChannel ?? "latest";
458148
458393
  let latestVersion = await getLatestVersion(channel2);
458149
458394
  const isDisabled2 = isAutoUpdaterDisabled();
@@ -458278,7 +458523,7 @@ function AutoUpdater({
458278
458523
  " ",
458279
458524
  /* @__PURE__ */ jsx_runtime415.jsx(ThemedText, {
458280
458525
  bold: true,
458281
- children: hasLocalInstall ? `cd ~/.theus/local && npm update ${{ VERSION: "0.2.78", BUILD_TIME: "1970-01-01T00:00:00.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.78", BUILD_TIME: "1970-01-01T00:00:00.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}`
458526
+ children: hasLocalInstall ? `cd ~/.theus/local && npm update ${{ VERSION: "0.2.80", BUILD_TIME: "1970-01-01T00:00:00.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.80", BUILD_TIME: "1970-01-01T00:00:00.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}`
458282
458527
  })
458283
458528
  ]
458284
458529
  })
@@ -458355,12 +458600,12 @@ function NativeAutoUpdater({
458355
458600
  logEvent("theus_native_auto_updater_start", {});
458356
458601
  try {
458357
458602
  const maxVersion = await getMaxVersion();
458358
- if (maxVersion && gt({ VERSION: "0.2.78", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
458603
+ if (maxVersion && gt({ VERSION: "0.2.80", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
458359
458604
  const msg = await getMaxVersionMessage();
458360
458605
  setMaxVersionIssue(msg ?? "affects your version");
458361
458606
  }
458362
458607
  const result = await installLatest(channel2);
458363
- const currentVersion = { VERSION: "0.2.78", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION;
458608
+ const currentVersion = { VERSION: "0.2.80", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION;
458364
458609
  const latencyMs = Date.now() - startTime2;
458365
458610
  if (result.lockFailed) {
458366
458611
  logEvent("theus_native_auto_updater_lock_contention", {
@@ -458497,17 +458742,17 @@ function PackageManagerAutoUpdater(t0) {
458497
458742
  const maxVersion = await getMaxVersion();
458498
458743
  if (maxVersion && latest && gt(latest, maxVersion)) {
458499
458744
  logForDebugging(`PackageManagerAutoUpdater: maxVersion ${maxVersion} is set, capping update from ${latest} to ${maxVersion}`);
458500
- if (gte({ VERSION: "0.2.78", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
458501
- logForDebugging(`PackageManagerAutoUpdater: current version ${{ VERSION: "0.2.78", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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`);
458745
+ if (gte({ VERSION: "0.2.80", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
458746
+ logForDebugging(`PackageManagerAutoUpdater: current version ${{ VERSION: "0.2.80", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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`);
458502
458747
  setUpdateAvailable(false);
458503
458748
  return;
458504
458749
  }
458505
458750
  latest = maxVersion;
458506
458751
  }
458507
- const hasUpdate = latest && !gte({ VERSION: "0.2.78", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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);
458752
+ const hasUpdate = latest && !gte({ VERSION: "0.2.80", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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);
458508
458753
  setUpdateAvailable(!!hasUpdate);
458509
458754
  if (hasUpdate) {
458510
- logForDebugging(`PackageManagerAutoUpdater: Update available ${{ VERSION: "0.2.78", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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}`);
458755
+ logForDebugging(`PackageManagerAutoUpdater: Update available ${{ VERSION: "0.2.80", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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}`);
458511
458756
  }
458512
458757
  };
458513
458758
  $2[0] = t1;
@@ -458541,7 +458786,7 @@ function PackageManagerAutoUpdater(t0) {
458541
458786
  wrap: "truncate",
458542
458787
  children: [
458543
458788
  "versi\xF3n actual: ",
458544
- { VERSION: "0.2.78", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
458789
+ { VERSION: "0.2.80", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
458545
458790
  ]
458546
458791
  });
458547
458792
  $2[3] = verbose;
@@ -466404,7 +466649,7 @@ function buildStatusLineCommandInput(permissionMode2, exceeds200kTokens, setting
466404
466649
  project_dir: getOriginalCwd(),
466405
466650
  added_dirs: addedDirs
466406
466651
  },
466407
- version: { VERSION: "0.2.78", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
466652
+ version: { VERSION: "0.2.80", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
466408
466653
  output_style: {
466409
466654
  name: outputStyleName
466410
466655
  },
@@ -490727,7 +490972,7 @@ function completeOnboarding() {
490727
490972
  saveGlobalConfig((current) => ({
490728
490973
  ...current,
490729
490974
  hasCompletedOnboarding: true,
490730
- lastOnboardingVersion: { VERSION: "0.2.78", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
490975
+ lastOnboardingVersion: { VERSION: "0.2.80", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
490731
490976
  }));
490732
490977
  }
490733
490978
  function showDialog(root2, renderer) {
@@ -497423,7 +497668,7 @@ function getRecentReleaseNotes(currentVersion, previousVersion, changelogContent
497423
497668
  }
497424
497669
  return [];
497425
497670
  }
497426
- async function checkForReleaseNotes(lastSeenVersion, currentVersion = { VERSION: "0.2.78", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION) {
497671
+ async function checkForReleaseNotes(lastSeenVersion, currentVersion = { VERSION: "0.2.80", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION) {
497427
497672
  if (false) {}
497428
497673
  const cachedChangelog = await getStoredChangelog();
497429
497674
  if (lastSeenVersion !== currentVersion || !cachedChangelog) {
@@ -502956,7 +503201,7 @@ async function startMCPServer(cwd3, debug3, verbose) {
502956
503201
  setCwd(cwd3);
502957
503202
  const server2 = new Server({
502958
503203
  name: "theus/tengu",
502959
- version: { VERSION: "0.2.78", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
503204
+ version: { VERSION: "0.2.80", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
502960
503205
  }, {
502961
503206
  capabilities: {
502962
503207
  tools: {}
@@ -504398,7 +504643,7 @@ async function setupTokenHandler(root2) {
504398
504643
  gap: 1,
504399
504644
  children: [
504400
504645
  /* @__PURE__ */ jsx_runtime503.jsx(TheusBanner, {
504401
- version: { VERSION: "0.2.78", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
504646
+ version: { VERSION: "0.2.80", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
504402
504647
  }),
504403
504648
  showAuthWarning && /* @__PURE__ */ jsx_runtime503.jsxs(ThemedBox_default, {
504404
504649
  flexDirection: "column",
@@ -505983,7 +506228,7 @@ ${assistantAddendum}` : assistantAddendum;
505983
506228
  }
505984
506229
  }
505985
506230
  logForDiagnosticsNoPII("info", "started", {
505986
- version: { VERSION: "0.2.78", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
506231
+ version: { VERSION: "0.2.80", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
505987
506232
  is_native_binary: isInBundledMode()
505988
506233
  });
505989
506234
  registerCleanup(async () => {
@@ -506851,7 +507096,7 @@ Usage: theus --remote "your task description"`, () => gracefulShutdown(1));
506851
507096
  pendingHookMessages
506852
507097
  }, renderAndRun);
506853
507098
  }
506854
- }).version(`${{ VERSION: "0.2.78", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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");
507099
+ }).version(`${{ VERSION: "0.2.80", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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");
506855
507100
  program2.option("-w, --worktree [name]", "Crea un nuevo worktree de git para esta sesi\xF3n (opcionalmente indica un nombre)");
506856
507101
  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.");
506857
507102
  if (canUserConfigureAdvisor()) {
@@ -507452,7 +507697,7 @@ if (false) {}
507452
507697
  async function main2() {
507453
507698
  const args = process.argv.slice(2);
507454
507699
  if (args.length === 1 && (args[0] === "--version" || args[0] === "-v" || args[0] === "-V")) {
507455
- console.log(`${{ VERSION: "0.2.78", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)`);
507700
+ console.log(`${{ VERSION: "0.2.80", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)`);
507456
507701
  return;
507457
507702
  }
507458
507703
  if (args[0] === "login" || args[0] === "signin" || args[0] === "entrar" || args[0] === "iniciar-sesion") {