theus-cli 0.2.77 → 0.2.79

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.77", BUILD_TIME: "1970-01-01T00:00:00.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.79", BUILD_TIME: "1970-01-01T00:00:00.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.77", BUILD_TIME: "1970-01-01T00:00:00.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.79", BUILD_TIME: "1970-01-01T00:00:00.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.77", BUILD_TIME: "1970-01-01T00:00:00.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.79", BUILD_TIME: "1970-01-01T00:00:00.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.77", BUILD_TIME: "1970-01-01T00:00:00.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.79", BUILD_TIME: "1970-01-01T00:00:00.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.77", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.79", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.77", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.79", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.77", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.79", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.77", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.79", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.77", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.79", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.77", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.79", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.77", BUILD_TIME: "1970-01-01T00:00:00.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.79", BUILD_TIME: "1970-01-01T00:00:00.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.77", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.79", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.77", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.79", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.77", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.79", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.77", BUILD_TIME: "1970-01-01T00:00:00.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.79", BUILD_TIME: "1970-01-01T00:00:00.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.77", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.79", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.77", BUILD_TIME: "1970-01-01T00:00:00.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.79", BUILD_TIME: "1970-01-01T00:00:00.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.77", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.79", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.77", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.79", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.77", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.79", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.77", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.79", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.77", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.79", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.77", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.79", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.77", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.79", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.77", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.79", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.77", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.79", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.77", BUILD_TIME: "1970-01-01T00:00:00.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.79", BUILD_TIME: "1970-01-01T00:00:00.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.77", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.79", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.77", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.79", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.77", BUILD_TIME: "1970-01-01T00:00:00.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.79", BUILD_TIME: "1970-01-01T00:00:00.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.77", BUILD_TIME: "1970-01-01T00:00:00.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.79", BUILD_TIME: "1970-01-01T00:00:00.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.77", BUILD_TIME: "1970-01-01T00:00:00.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.79", BUILD_TIME: "1970-01-01T00:00:00.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.77", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.79", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.77", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.79", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.77", BUILD_TIME: "1970-01-01T00:00:00.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.77", BUILD_TIME: "1970-01-01T00:00:00.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.79", BUILD_TIME: "1970-01-01T00:00:00.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.79", BUILD_TIME: "1970-01-01T00:00:00.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.77", BUILD_TIME: "1970-01-01T00:00:00.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.77", BUILD_TIME: "1970-01-01T00:00:00.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.77", BUILD_TIME: "1970-01-01T00:00:00.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.79", BUILD_TIME: "1970-01-01T00:00:00.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.79", BUILD_TIME: "1970-01-01T00:00:00.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.79", BUILD_TIME: "1970-01-01T00:00:00.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.77", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.77", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.79", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.79", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.77", BUILD_TIME: "1970-01-01T00:00:00.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.77", BUILD_TIME: "1970-01-01T00:00:00.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.77", BUILD_TIME: "1970-01-01T00:00:00.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.79", BUILD_TIME: "1970-01-01T00:00:00.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.79", BUILD_TIME: "1970-01-01T00:00:00.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.79", BUILD_TIME: "1970-01-01T00:00:00.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.77", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.77", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.79", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.79", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.77", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.79", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.77", BUILD_TIME: "1970-01-01T00:00:00.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.77", BUILD_TIME: "1970-01-01T00:00:00.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.77", BUILD_TIME: "1970-01-01T00:00:00.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.79", BUILD_TIME: "1970-01-01T00:00:00.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.79", BUILD_TIME: "1970-01-01T00:00:00.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.79", BUILD_TIME: "1970-01-01T00:00:00.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,27 @@ var init_ConsoleOAuthFlow = __esm(() => {
256259
256286
  var NOVEDADES;
256260
256287
  var init_data = __esm(() => {
256261
256288
  NOVEDADES = [
256289
+ {
256290
+ version: "v0.2.79",
256291
+ fecha: "2026-08-14",
256292
+ titulo: "Instalar Theus en Windows deja de fallar en silencio",
256293
+ puntos: [
256294
+ "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.",
256295
+ "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.",
256296
+ "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.",
256297
+ "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.",
256298
+ "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."
256299
+ ]
256300
+ },
256301
+ {
256302
+ version: "v0.2.78",
256303
+ fecha: "2026-08-14",
256304
+ titulo: "Al revisar la memoria importada, Enter contin\xFAa",
256305
+ puntos: [
256306
+ "Cuando tra\xEDas tu memoria, la pantalla te la mostraba pero el bot\xF3n de guardar estaba al final de la lista: con sesenta notas hab\xEDa que bajar sesenta veces para encontrarlo, y mientras tanto Enter solo activaba y quitaba notas. Ahora la confirmaci\xF3n est\xE1 arriba y Enter contin\xFAa de una; bajar sirve para afinar qu\xE9 guardas.",
256307
+ "Adem\xE1s, cada nota importada vuelve a mostrar su t\xEDtulo en vez del texto entero, que es lo que hac\xEDa ilegible una lista larga."
256308
+ ]
256309
+ },
256262
256310
  {
256263
256311
  version: "v0.2.77",
256264
256312
  fecha: "2026-08-14",
@@ -300168,9 +300216,9 @@ function getTheusEnvMetadata() {
300168
300216
  };
300169
300217
  }
300170
300218
  function getBuildAgeMinutes() {
300171
- if (!{ VERSION: "0.2.77", BUILD_TIME: "1970-01-01T00:00:00.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)
300219
+ if (!{ VERSION: "0.2.79", BUILD_TIME: "1970-01-01T00:00:00.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)
300172
300220
  return;
300173
- const buildTime = new Date({ VERSION: "0.2.77", BUILD_TIME: "1970-01-01T00:00:00.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();
300221
+ const buildTime = new Date({ VERSION: "0.2.79", BUILD_TIME: "1970-01-01T00:00:00.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();
300174
300222
  if (isNaN(buildTime))
300175
300223
  return;
300176
300224
  return Math.floor((Date.now() - buildTime) / 60000);
@@ -318475,7 +318523,7 @@ function getSimpleDoingTasksSection() {
318475
318523
  ];
318476
318524
  const userHelpSubitems = [
318477
318525
  `/help: Get help with using Theus`,
318478
- `To give feedback, users should ${{ VERSION: "0.2.77", BUILD_TIME: "1970-01-01T00:00:00.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}`
318526
+ `To give feedback, users should ${{ VERSION: "0.2.79", BUILD_TIME: "1970-01-01T00:00:00.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}`
318479
318527
  ];
318480
318528
  const items = [
318481
318529
  `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.`,
@@ -329611,7 +329659,7 @@ async function submitTranscriptShare(messages, trigger, appearanceId) {
329611
329659
  } catch {}
329612
329660
  const data = {
329613
329661
  trigger,
329614
- version: { VERSION: "0.2.77", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
329662
+ version: { VERSION: "0.2.79", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
329615
329663
  platform: process.platform,
329616
329664
  transcript,
329617
329665
  subagentTranscripts: Object.keys(subagentTranscripts).length > 0 ? subagentTranscripts : undefined,
@@ -329816,10 +329864,10 @@ Si el usuario indic\xF3 una duraci\xF3n, p\xE1sala en el par\xE1metro \`duration
329816
329864
 
329817
329865
  // commands/issue/index.ts
329818
329866
  function getCliVersion() {
329819
- return { VERSION: "0.2.77", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.77", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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";
329867
+ return { VERSION: "0.2.79", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.79", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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";
329820
329868
  }
329821
329869
  function getIssuesExplainer() {
329822
- return { VERSION: "0.2.77", BUILD_TIME: "1970-01-01T00:00:00.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.77", BUILD_TIME: "1970-01-01T00:00:00.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";
329870
+ return { VERSION: "0.2.79", BUILD_TIME: "1970-01-01T00:00:00.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.79", BUILD_TIME: "1970-01-01T00:00:00.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";
329823
329871
  }
329824
329872
  function getActiveModelLabel() {
329825
329873
  try {
@@ -332605,7 +332653,7 @@ function buildPrimarySection() {
332605
332653
  });
332606
332654
  return [{
332607
332655
  label: "Version",
332608
- value: { VERSION: "0.2.77", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
332656
+ value: { VERSION: "0.2.79", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
332609
332657
  }, {
332610
332658
  label: "Session name",
332611
332659
  value: nameValue
@@ -336421,7 +336469,7 @@ function Config({
336421
336469
  }
336422
336470
  })
336423
336471
  }) : showSubmenu === "ChannelDowngrade" ? /* @__PURE__ */ jsx_runtime189.jsx(ChannelDowngradeDialog, {
336424
- currentVersion: { VERSION: "0.2.77", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
336472
+ currentVersion: { VERSION: "0.2.79", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
336425
336473
  onChoice: (choice) => {
336426
336474
  setShowSubmenu(null);
336427
336475
  setTabsHidden(false);
@@ -336433,7 +336481,7 @@ function Config({
336433
336481
  autoUpdatesChannel: "stable"
336434
336482
  };
336435
336483
  if (choice === "stay") {
336436
- newSettings.minimumVersion = { VERSION: "0.2.77", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION;
336484
+ newSettings.minimumVersion = { VERSION: "0.2.79", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION;
336437
336485
  }
336438
336486
  updateSettingsForSource("userSettings", newSettings);
336439
336487
  setSettingsData((prev_27) => ({
@@ -343792,7 +343840,7 @@ function HelpV2(t0) {
343792
343840
  let t6;
343793
343841
  if ($2[31] !== tabs) {
343794
343842
  t6 = /* @__PURE__ */ jsx_runtime215.jsx(Tabs, {
343795
- title: `Theus v${{ VERSION: "0.2.77", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION}`,
343843
+ title: `Theus v${{ VERSION: "0.2.79", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION}`,
343796
343844
  color: "professionalBlue",
343797
343845
  defaultTab: "general",
343798
343846
  children: tabs
@@ -362613,7 +362661,7 @@ function Onboarding({
362613
362661
  flexDirection: "column",
362614
362662
  children: [
362615
362663
  /* @__PURE__ */ jsx_runtime251.jsx(TheusBanner, {
362616
- version: { VERSION: "0.2.77", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
362664
+ version: { VERSION: "0.2.79", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
362617
362665
  }),
362618
362666
  /* @__PURE__ */ jsx_runtime251.jsxs(ThemedBox_default, {
362619
362667
  flexDirection: "column",
@@ -368000,7 +368048,7 @@ var init_Messages = __esm(() => {
368000
368048
  let t1;
368001
368049
  if ($2[0] === Symbol.for("react.memo_cache_sentinel")) {
368002
368050
  t1 = /* @__PURE__ */ jsx_runtime264.jsx(TheusSessionHeader, {
368003
- version: { VERSION: "0.2.77", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
368051
+ version: { VERSION: "0.2.79", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
368004
368052
  });
368005
368053
  $2[0] = t1;
368006
368054
  } else {
@@ -377361,8 +377409,8 @@ function MemoryReview({
377361
377409
  const borderStyle = ascii ? "classic" : "round";
377362
377410
  const { columns } = useTerminalSize();
377363
377411
  const [facts, setFacts] = React95.useState(initialFacts);
377364
- const [focusValue, setFocusValue] = React95.useState(factValue(0));
377365
- const [defaultFocus, setDefaultFocus] = React95.useState(factValue(0));
377412
+ const [focusValue, setFocusValue] = React95.useState(SAVE);
377413
+ const [defaultFocus, setDefaultFocus] = React95.useState(SAVE);
377366
377414
  const [listKey, setListKey] = React95.useState(0);
377367
377415
  const [editingIdx, setEditingIdx] = React95.useState(null);
377368
377416
  const [draft, setDraft] = React95.useState("");
@@ -377466,7 +377514,7 @@ function MemoryReview({
377466
377514
  description: "Salir sin guardar nada"
377467
377515
  }
377468
377516
  ];
377469
- const footer = editing ? ascii ? "Enter guardar | Esc cancelar" : "Enter guardar \xB7 Esc cancelar" : ascii ? "Enter activar/quitar | e editar | x borrar | ARRIBA/ABAJO mover | Esc salir" : "Enter activar/quitar \xB7 e editar \xB7 x borrar \xB7 \u2191\u2193 mover \xB7 Esc salir";
377517
+ const footer = editing ? ascii ? "Enter guardar | Esc cancelar" : "Enter guardar \xB7 Esc cancelar" : ascii ? "Enter confirmar | ARRIBA/ABAJO revisar | e editar | x borrar | Esc salir" : "Enter confirmar \xB7 \u2191\u2193 revisar \xB7 e editar \xB7 x borrar \xB7 Esc salir";
377470
377518
  return /* @__PURE__ */ jsx_runtime275.jsxs(ThemedBox_default, {
377471
377519
  flexDirection: "column",
377472
377520
  gap: 1,
@@ -377490,7 +377538,7 @@ function MemoryReview({
377490
377538
  }),
377491
377539
  /* @__PURE__ */ jsx_runtime275.jsx(ThemedText, {
377492
377540
  color: gray2,
377493
- children: editing ? "Edita el texto del hecho. Enter guarda, Esc cancela." : "Enter activa o quita un hecho; e edita su texto, x lo borra. Solo lo activo entra a tu memoria."
377541
+ children: editing ? "Edita el texto del hecho. Enter guarda, Esc cancela." : "Enter guarda lo que est\xE1 activo. Baja para revisar hecho a hecho: Enter activa o quita, e edita, x borra."
377494
377542
  }),
377495
377543
  editing ? /* @__PURE__ */ jsx_runtime275.jsxs(ThemedBox_default, {
377496
377544
  flexDirection: "column",
@@ -377528,7 +377576,7 @@ function MemoryReview({
377528
377576
  borderColor: gray2,
377529
377577
  paddingX: 1,
377530
377578
  children: /* @__PURE__ */ jsx_runtime275.jsx(Select, {
377531
- options: [...factOptions, ...actions],
377579
+ options: [...actions, ...factOptions],
377532
377580
  layout: "expanded",
377533
377581
  visibleOptionCount: Math.min(facts.length + 2, 12),
377534
377582
  defaultFocusValue: defaultFocus,
@@ -378715,6 +378763,7 @@ function ImportContext({
378715
378763
  const directos = await leerHechosDirectos(yaDestiladas);
378716
378764
  if (directos.length > 0) {
378717
378765
  setFacts(directos.map((h2) => ({
378766
+ title: h2.titulo,
378718
378767
  text: h2.texto,
378719
378768
  ...h2.categoria ? { category: h2.categoria } : {},
378720
378769
  kept: true
@@ -399868,7 +399917,7 @@ async function captureMemoryDiagnostics(trigger, dumpNumber = 0) {
399868
399917
  smapsRollup,
399869
399918
  platform: process.platform,
399870
399919
  nodeVersion: process.version,
399871
- ccVersion: { VERSION: "0.2.77", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
399920
+ ccVersion: { VERSION: "0.2.79", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
399872
399921
  };
399873
399922
  }
399874
399923
  async function performHeapDump(trigger = "manual", dumpNumber = 0) {
@@ -400629,7 +400678,7 @@ var init_bridge_kick = __esm(() => {
400629
400678
  var call69 = async () => {
400630
400679
  return {
400631
400680
  type: "text",
400632
- value: { VERSION: "0.2.77", BUILD_TIME: "1970-01-01T00:00:00.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.77", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.77", BUILD_TIME: "1970-01-01T00:00:00.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.77", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
400681
+ value: { VERSION: "0.2.79", BUILD_TIME: "1970-01-01T00:00:00.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.79", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.79", BUILD_TIME: "1970-01-01T00:00:00.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.79", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
400633
400682
  };
400634
400683
  }, version2, version_default;
400635
400684
  var init_version = __esm(() => {
@@ -403230,7 +403279,7 @@ var SECRET_NAME_PATTERN, EXTRA_ENV_ALLOWLIST, REDACTED2 = "\u2039oculto\u203A",
403230
403279
  const lines = [];
403231
403280
  lines.push("## Entorno de ejecuci\xF3n");
403232
403281
  lines.push("");
403233
- const version3 = { VERSION: "0.2.77", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.77", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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";
403282
+ const version3 = { VERSION: "0.2.79", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.79", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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";
403234
403283
  lines.push(`- Versi\xF3n de Theus: ${version3}`);
403235
403284
  lines.push(`- Directorio de trabajo: ${getCwd()}`);
403236
403285
  lines.push(`- \xBFRepositorio git?: ${isGit ? "s\xED" : "no"}`);
@@ -405771,13 +405820,13 @@ async function updateReleaseBundle() {
405771
405820
  await gracefulShutdown(1);
405772
405821
  return;
405773
405822
  }
405774
- if (gte({ VERSION: "0.2.77", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
405775
- writeToStdout(source_default.green(`Theus ya est\xE1 al d\xEDa (${{ VERSION: "0.2.77", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION})`) + `
405823
+ if (gte({ VERSION: "0.2.79", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
405824
+ writeToStdout(source_default.green(`Theus ya est\xE1 al d\xEDa (${{ VERSION: "0.2.79", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION})`) + `
405776
405825
  `);
405777
405826
  await gracefulShutdown(0);
405778
405827
  return;
405779
405828
  }
405780
- writeToStdout(`Nueva versi\xF3n disponible: ${latest} (actual: ${{ VERSION: "0.2.77", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION})
405829
+ writeToStdout(`Nueva versi\xF3n disponible: ${latest} (actual: ${{ VERSION: "0.2.79", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION})
405781
405830
  `);
405782
405831
  writeToStdout(`Instalando la actualizaci\xF3n desde theus.pe/dl...
405783
405832
  `);
@@ -405811,7 +405860,7 @@ async function updateReleaseBundle() {
405811
405860
  return;
405812
405861
  }
405813
405862
  cpSync(staged, bundleDir, { recursive: true, force: true });
405814
- writeToStdout(source_default.green(`Actualizado correctamente de ${{ VERSION: "0.2.77", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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}`) + `
405863
+ writeToStdout(source_default.green(`Actualizado correctamente de ${{ VERSION: "0.2.79", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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}`) + `
405815
405864
  `);
405816
405865
  await regenerateCompletionCache();
405817
405866
  } finally {
@@ -405824,7 +405873,7 @@ async function updateReleaseBundle() {
405824
405873
  async function update() {
405825
405874
  logEvent("theus_update_check", {});
405826
405875
  await updateNaupa();
405827
- writeToStdout(`Versi\xF3n actual: ${{ VERSION: "0.2.77", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION}
405876
+ writeToStdout(`Versi\xF3n actual: ${{ VERSION: "0.2.79", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION}
405828
405877
  `);
405829
405878
  const channel2 = getInitialSettings()?.autoUpdatesChannel ?? "latest";
405830
405879
  writeToStdout(`Buscando actualizaciones en el canal ${channel2}...
@@ -405903,8 +405952,8 @@ async function update() {
405903
405952
  writeToStdout(`Theus est\xE1 gestionado por Homebrew.
405904
405953
  `);
405905
405954
  const latest = await getLatestVersion(channel2);
405906
- if (latest && !gte({ VERSION: "0.2.77", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
405907
- writeToStdout(`Actualizaci\xF3n disponible: ${{ VERSION: "0.2.77", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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}
405955
+ if (latest && !gte({ VERSION: "0.2.79", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
405956
+ writeToStdout(`Actualizaci\xF3n disponible: ${{ VERSION: "0.2.79", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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}
405908
405957
  `);
405909
405958
  writeToStdout(`
405910
405959
  `);
@@ -405920,8 +405969,8 @@ async function update() {
405920
405969
  writeToStdout(`Theus est\xE1 gestionado por winget.
405921
405970
  `);
405922
405971
  const latest = await getLatestVersion(channel2);
405923
- if (latest && !gte({ VERSION: "0.2.77", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
405924
- writeToStdout(`Actualizaci\xF3n disponible: ${{ VERSION: "0.2.77", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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}
405972
+ if (latest && !gte({ VERSION: "0.2.79", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
405973
+ writeToStdout(`Actualizaci\xF3n disponible: ${{ VERSION: "0.2.79", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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}
405925
405974
  `);
405926
405975
  writeToStdout(`
405927
405976
  `);
@@ -405937,8 +405986,8 @@ async function update() {
405937
405986
  writeToStdout(`Theus est\xE1 gestionado por apk.
405938
405987
  `);
405939
405988
  const latest = await getLatestVersion(channel2);
405940
- if (latest && !gte({ VERSION: "0.2.77", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
405941
- writeToStdout(`Actualizaci\xF3n disponible: ${{ VERSION: "0.2.77", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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}
405989
+ if (latest && !gte({ VERSION: "0.2.79", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
405990
+ writeToStdout(`Actualizaci\xF3n disponible: ${{ VERSION: "0.2.79", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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}
405942
405991
  `);
405943
405992
  writeToStdout(`
405944
405993
  `);
@@ -406003,11 +406052,11 @@ async function update() {
406003
406052
  `);
406004
406053
  await gracefulShutdown(1);
406005
406054
  }
406006
- if (result.latestVersion === { VERSION: "0.2.77", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION) {
406007
- writeToStdout(source_default.green(`Theus ya est\xE1 al d\xEDa (${{ VERSION: "0.2.77", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION})`) + `
406055
+ if (result.latestVersion === { VERSION: "0.2.79", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION) {
406056
+ writeToStdout(source_default.green(`Theus ya est\xE1 al d\xEDa (${{ VERSION: "0.2.79", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION})`) + `
406008
406057
  `);
406009
406058
  } else {
406010
- writeToStdout(source_default.green(`Actualizado correctamente de ${{ VERSION: "0.2.77", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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}`) + `
406059
+ writeToStdout(source_default.green(`Actualizado correctamente de ${{ VERSION: "0.2.79", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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}`) + `
406011
406060
  `);
406012
406061
  await regenerateCompletionCache();
406013
406062
  }
@@ -406026,9 +406075,9 @@ async function update() {
406026
406075
  await removeInstalledSymlink();
406027
406076
  }
406028
406077
  logForDebugging("update: Checking npm registry for latest version");
406029
- logForDebugging(`update: Package URL: ${{ VERSION: "0.2.77", BUILD_TIME: "1970-01-01T00:00:00.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}`);
406078
+ logForDebugging(`update: Package URL: ${{ VERSION: "0.2.79", BUILD_TIME: "1970-01-01T00:00:00.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}`);
406030
406079
  const npmTag = channel2 === "stable" ? "stable" : "latest";
406031
- const npmCommand = `npm view ${{ VERSION: "0.2.77", BUILD_TIME: "1970-01-01T00:00:00.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`;
406080
+ const npmCommand = `npm view ${{ VERSION: "0.2.79", BUILD_TIME: "1970-01-01T00:00:00.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`;
406032
406081
  logForDebugging(`update: Running: ${npmCommand}`);
406033
406082
  const latestVersion = await getLatestVersion(channel2);
406034
406083
  logForDebugging(`update: Latest version from npm: ${latestVersion || "FAILED"}`);
@@ -406048,7 +406097,7 @@ async function update() {
406048
406097
  `);
406049
406098
  process.stderr.write(` \u2022 Un proxy o firewall corporativo bloquea npm
406050
406099
  `);
406051
- if ({ VERSION: "0.2.77", BUILD_TIME: "1970-01-01T00:00:00.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.77", BUILD_TIME: "1970-01-01T00:00:00.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")) {
406100
+ if ({ VERSION: "0.2.79", BUILD_TIME: "1970-01-01T00:00:00.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.79", BUILD_TIME: "1970-01-01T00:00:00.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")) {
406052
406101
  process.stderr.write(` \u2022 Compilaci\xF3n interna/de desarrollo no publicada en npm
406053
406102
  `);
406054
406103
  }
@@ -406060,19 +406109,19 @@ async function update() {
406060
406109
  `);
406061
406110
  process.stderr.write(` \u2022 Ejecuta con el flag --debug para m\xE1s detalle
406062
406111
  `);
406063
- const packageName = { VERSION: "0.2.77", BUILD_TIME: "1970-01-01T00:00:00.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";
406112
+ const packageName = { VERSION: "0.2.79", BUILD_TIME: "1970-01-01T00:00:00.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";
406064
406113
  process.stderr.write(` \u2022 Comprueba a mano: npm view ${packageName} version
406065
406114
  `);
406066
406115
  process.stderr.write(` \u2022 Comprueba si te falta iniciar sesi\xF3n: npm whoami
406067
406116
  `);
406068
406117
  await gracefulShutdown(1);
406069
406118
  }
406070
- if (gte({ VERSION: "0.2.77", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
406071
- writeToStdout(source_default.green(`Theus ya est\xE1 al d\xEDa (${{ VERSION: "0.2.77", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION})`) + `
406119
+ if (gte({ VERSION: "0.2.79", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
406120
+ writeToStdout(source_default.green(`Theus ya est\xE1 al d\xEDa (${{ VERSION: "0.2.79", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION})`) + `
406072
406121
  `);
406073
406122
  await gracefulShutdown(0);
406074
406123
  }
406075
- writeToStdout(`Nueva versi\xF3n disponible: ${latestVersion} (actual: ${{ VERSION: "0.2.77", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION})
406124
+ writeToStdout(`Nueva versi\xF3n disponible: ${latestVersion} (actual: ${{ VERSION: "0.2.79", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION})
406076
406125
  `);
406077
406126
  writeToStdout(`Instalando la actualizaci\xF3n...
406078
406127
  `);
@@ -406117,7 +406166,7 @@ async function update() {
406117
406166
  logForDebugging(`update: Installation status: ${status2}`);
406118
406167
  switch (status2) {
406119
406168
  case "success":
406120
- writeToStdout(source_default.green(`Actualizado correctamente de ${{ VERSION: "0.2.77", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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}`) + `
406169
+ writeToStdout(source_default.green(`Actualizado correctamente de ${{ VERSION: "0.2.79", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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}`) + `
406121
406170
  `);
406122
406171
  await regenerateCompletionCache();
406123
406172
  break;
@@ -406127,7 +406176,7 @@ async function update() {
406127
406176
  if (useLocalUpdate) {
406128
406177
  process.stderr.write(`Prueba a actualizar a mano con:
406129
406178
  `);
406130
- process.stderr.write(` cd ~/.theus/local && npm update ${{ VERSION: "0.2.77", BUILD_TIME: "1970-01-01T00:00:00.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}
406179
+ process.stderr.write(` cd ~/.theus/local && npm update ${{ VERSION: "0.2.79", BUILD_TIME: "1970-01-01T00:00:00.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}
406131
406180
  `);
406132
406181
  } else {
406133
406182
  process.stderr.write(`Prueba con sudo o corrige los permisos de npm
@@ -406143,7 +406192,7 @@ async function update() {
406143
406192
  if (useLocalUpdate) {
406144
406193
  process.stderr.write(`Prueba a actualizar a mano con:
406145
406194
  `);
406146
- process.stderr.write(` cd ~/.theus/local && npm update ${{ VERSION: "0.2.77", BUILD_TIME: "1970-01-01T00:00:00.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}
406195
+ process.stderr.write(` cd ~/.theus/local && npm update ${{ VERSION: "0.2.79", BUILD_TIME: "1970-01-01T00:00:00.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}
406147
406196
  `);
406148
406197
  } else {
406149
406198
  process.stderr.write(`O p\xE1sate a la instalaci\xF3n nativa con: theus install
@@ -415568,7 +415617,7 @@ var init_sessionStorage = __esm(() => {
415568
415617
  init_settings2();
415569
415618
  init_slowOperations();
415570
415619
  init_uuid();
415571
- VERSION4 = { VERSION: "0.2.77", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION;
415620
+ VERSION4 = { VERSION: "0.2.79", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION;
415572
415621
  MAX_TOMBSTONE_REWRITE_BYTES = 50 * 1024 * 1024;
415573
415622
  SKIP_FIRST_PROMPT_PATTERN2 = /^(?:\s*<[a-z][\w-]*[\s>]|\[Request interrupted by user[^\]]*\])/;
415574
415623
  EPHEMERAL_PROGRESS_TYPES = new Set([
@@ -416773,7 +416822,7 @@ var init_filesystem = __esm(() => {
416773
416822
  });
416774
416823
  getBundledSkillsRoot = memoize_default(function getBundledSkillsRoot2() {
416775
416824
  const nonce = randomBytes21(16).toString("hex");
416776
- return join154(getTheusTempDir(), "bundled-skills", { VERSION: "0.2.77", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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);
416825
+ return join154(getTheusTempDir(), "bundled-skills", { VERSION: "0.2.79", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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);
416777
416826
  });
416778
416827
  getResolvedWorkingDirPaths = memoize_default(getPathsForPermissionCheck);
416779
416828
  });
@@ -428950,7 +428999,7 @@ async function handleMemories(state2) {
428950
428999
  async function runProjectContextMcpServer() {
428951
429000
  const projectRoot = process.env.THEUS_PROJECT_ROOT || process.cwd();
428952
429001
  const state2 = new ProjectContextState(projectRoot);
428953
- const server2 = new Server({ name: SERVER_NAME, version: { VERSION: "0.2.77", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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: {} } });
429002
+ const server2 = new Server({ name: SERVER_NAME, version: { VERSION: "0.2.79", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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: {} } });
428954
429003
  server2.setRequestHandler(ListToolsRequestSchema, async () => ({
428955
429004
  tools: TOOL_DEFINITIONS.map((t) => ({
428956
429005
  name: t.name,
@@ -431627,7 +431676,7 @@ async function runTitanFleetWorker(args) {
431627
431676
  max_concurrency: maxConcurrency,
431628
431677
  runtime: {
431629
431678
  name: "theus-cli",
431630
- version: { VERSION: "0.2.77", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
431679
+ version: { VERSION: "0.2.79", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
431631
431680
  }
431632
431681
  });
431633
431682
  const client2 = new TitanFleetClient({
@@ -433518,7 +433567,7 @@ function createBridgeLogger(options2) {
433518
433567
  connectUrl = buildBridgeConnectUrl(environmentId, cachedIngressUrl);
433519
433568
  regenerateQr(connectUrl);
433520
433569
  if (verbose) {
433521
- write(source_default.dim(`Remote Control`) + ` v${{ VERSION: "0.2.77", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION}
433570
+ write(source_default.dim(`Remote Control`) + ` v${{ VERSION: "0.2.79", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION}
433522
433571
  `);
433523
433572
  }
433524
433573
  if (verbose) {
@@ -434491,7 +434540,7 @@ function appendToLog(path19, message) {
434491
434540
  cwd: getFsImplementation().cwd(),
434492
434541
  userType: "external",
434493
434542
  sessionId: getSessionId(),
434494
- version: { VERSION: "0.2.77", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
434543
+ version: { VERSION: "0.2.79", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
434495
434544
  };
434496
434545
  getLogWriter(path19).write(messageWithTimestamp);
434497
434546
  }
@@ -435752,7 +435801,7 @@ Spawn mode for this project:
435752
435801
  const api2 = createBridgeApiClient({
435753
435802
  baseUrl,
435754
435803
  getAccessToken: getBridgeAccessToken2,
435755
- runnerVersion: { VERSION: "0.2.77", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
435804
+ runnerVersion: { VERSION: "0.2.79", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
435756
435805
  onDebug: logForDebugging,
435757
435806
  onAuth401: handleOAuth401Error2,
435758
435807
  getTrustedDeviceToken
@@ -435990,7 +436039,7 @@ async function runBridgeHeadless(opts, signal) {
435990
436039
  const api2 = createBridgeApiClient({
435991
436040
  baseUrl,
435992
436041
  getAccessToken: opts.getAccessToken,
435993
- runnerVersion: { VERSION: "0.2.77", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
436042
+ runnerVersion: { VERSION: "0.2.79", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
435994
436043
  onDebug: log2,
435995
436044
  onAuth401: opts.onAuth401,
435996
436045
  getTrustedDeviceToken
@@ -436116,7 +436165,7 @@ var init_bridgeMain = __esm(() => {
436116
436165
  };
436117
436166
  });
436118
436167
 
436119
- // node_modules/@commander-js/extra-typings/node_modules/commander/lib/error.js
436168
+ // node_modules/commander/lib/error.js
436120
436169
  var require_error = __commonJS((exports) => {
436121
436170
  class CommanderError extends Error {
436122
436171
  constructor(exitCode, code, message) {
@@ -436140,7 +436189,7 @@ var require_error = __commonJS((exports) => {
436140
436189
  exports.InvalidArgumentError = InvalidArgumentError;
436141
436190
  });
436142
436191
 
436143
- // node_modules/@commander-js/extra-typings/node_modules/commander/lib/argument.js
436192
+ // node_modules/commander/lib/argument.js
436144
436193
  var require_argument = __commonJS((exports) => {
436145
436194
  var { InvalidArgumentError } = require_error();
436146
436195
 
@@ -436219,17 +436268,21 @@ var require_argument = __commonJS((exports) => {
436219
436268
  exports.humanReadableArgName = humanReadableArgName;
436220
436269
  });
436221
436270
 
436222
- // node_modules/@commander-js/extra-typings/node_modules/commander/lib/help.js
436271
+ // node_modules/commander/lib/help.js
436223
436272
  var require_help = __commonJS((exports) => {
436224
436273
  var { humanReadableArgName } = require_argument();
436225
436274
 
436226
436275
  class Help {
436227
436276
  constructor() {
436228
436277
  this.helpWidth = undefined;
436278
+ this.minWidthToWrap = 40;
436229
436279
  this.sortSubcommands = false;
436230
436280
  this.sortOptions = false;
436231
436281
  this.showGlobalOptions = false;
436232
436282
  }
436283
+ prepareContext(contextOptions) {
436284
+ this.helpWidth = this.helpWidth ?? contextOptions.helpWidth ?? 80;
436285
+ }
436233
436286
  visibleCommands(cmd) {
436234
436287
  const visibleCommands = cmd.commands.filter((cmd2) => !cmd2._hidden);
436235
436288
  const helpCommand = cmd._getHelpCommand();
@@ -436304,22 +436357,22 @@ var require_help = __commonJS((exports) => {
436304
436357
  }
436305
436358
  longestSubcommandTermLength(cmd, helper) {
436306
436359
  return helper.visibleCommands(cmd).reduce((max2, command9) => {
436307
- return Math.max(max2, helper.subcommandTerm(command9).length);
436360
+ return Math.max(max2, this.displayWidth(helper.styleSubcommandTerm(helper.subcommandTerm(command9))));
436308
436361
  }, 0);
436309
436362
  }
436310
436363
  longestOptionTermLength(cmd, helper) {
436311
436364
  return helper.visibleOptions(cmd).reduce((max2, option) => {
436312
- return Math.max(max2, helper.optionTerm(option).length);
436365
+ return Math.max(max2, this.displayWidth(helper.styleOptionTerm(helper.optionTerm(option))));
436313
436366
  }, 0);
436314
436367
  }
436315
436368
  longestGlobalOptionTermLength(cmd, helper) {
436316
436369
  return helper.visibleGlobalOptions(cmd).reduce((max2, option) => {
436317
- return Math.max(max2, helper.optionTerm(option).length);
436370
+ return Math.max(max2, this.displayWidth(helper.styleOptionTerm(helper.optionTerm(option))));
436318
436371
  }, 0);
436319
436372
  }
436320
436373
  longestArgumentTermLength(cmd, helper) {
436321
436374
  return helper.visibleArguments(cmd).reduce((max2, argument) => {
436322
- return Math.max(max2, helper.argumentTerm(argument).length);
436375
+ return Math.max(max2, this.displayWidth(helper.styleArgumentTerm(helper.argumentTerm(argument))));
436323
436376
  }, 0);
436324
436377
  }
436325
436378
  commandUsage(cmd) {
@@ -436370,105 +436423,202 @@ var require_help = __commonJS((exports) => {
436370
436423
  extraInfo.push(`default: ${argument.defaultValueDescription || JSON.stringify(argument.defaultValue)}`);
436371
436424
  }
436372
436425
  if (extraInfo.length > 0) {
436373
- const extraDescripton = `(${extraInfo.join(", ")})`;
436426
+ const extraDescription = `(${extraInfo.join(", ")})`;
436374
436427
  if (argument.description) {
436375
- return `${argument.description} ${extraDescripton}`;
436428
+ return `${argument.description} ${extraDescription}`;
436376
436429
  }
436377
- return extraDescripton;
436430
+ return extraDescription;
436378
436431
  }
436379
436432
  return argument.description;
436380
436433
  }
436381
436434
  formatHelp(cmd, helper) {
436382
436435
  const termWidth = helper.padWidth(cmd, helper);
436383
- const helpWidth = helper.helpWidth || 80;
436384
- const itemIndentWidth = 2;
436385
- const itemSeparatorWidth = 2;
436386
- function formatItem(term, description) {
436387
- if (description) {
436388
- const fullText = `${term.padEnd(termWidth + itemSeparatorWidth)}${description}`;
436389
- return helper.wrap(fullText, helpWidth - itemIndentWidth, termWidth + itemSeparatorWidth);
436390
- }
436391
- return term;
436436
+ const helpWidth = helper.helpWidth ?? 80;
436437
+ function callFormatItem(term, description) {
436438
+ return helper.formatItem(term, termWidth, description, helper);
436392
436439
  }
436393
- function formatList(textArray) {
436394
- return textArray.join(`
436395
- `).replace(/^/gm, " ".repeat(itemIndentWidth));
436396
- }
436397
- let output = [`Usage: ${helper.commandUsage(cmd)}`, ""];
436440
+ let output = [
436441
+ `${helper.styleTitle("Usage:")} ${helper.styleUsage(helper.commandUsage(cmd))}`,
436442
+ ""
436443
+ ];
436398
436444
  const commandDescription = helper.commandDescription(cmd);
436399
436445
  if (commandDescription.length > 0) {
436400
436446
  output = output.concat([
436401
- helper.wrap(commandDescription, helpWidth, 0),
436447
+ helper.boxWrap(helper.styleCommandDescription(commandDescription), helpWidth),
436402
436448
  ""
436403
436449
  ]);
436404
436450
  }
436405
436451
  const argumentList = helper.visibleArguments(cmd).map((argument) => {
436406
- return formatItem(helper.argumentTerm(argument), helper.argumentDescription(argument));
436452
+ return callFormatItem(helper.styleArgumentTerm(helper.argumentTerm(argument)), helper.styleArgumentDescription(helper.argumentDescription(argument)));
436407
436453
  });
436408
436454
  if (argumentList.length > 0) {
436409
- output = output.concat(["Arguments:", formatList(argumentList), ""]);
436455
+ output = output.concat([
436456
+ helper.styleTitle("Arguments:"),
436457
+ ...argumentList,
436458
+ ""
436459
+ ]);
436410
436460
  }
436411
436461
  const optionList = helper.visibleOptions(cmd).map((option) => {
436412
- return formatItem(helper.optionTerm(option), helper.optionDescription(option));
436462
+ return callFormatItem(helper.styleOptionTerm(helper.optionTerm(option)), helper.styleOptionDescription(helper.optionDescription(option)));
436413
436463
  });
436414
436464
  if (optionList.length > 0) {
436415
- output = output.concat(["Options:", formatList(optionList), ""]);
436465
+ output = output.concat([
436466
+ helper.styleTitle("Options:"),
436467
+ ...optionList,
436468
+ ""
436469
+ ]);
436416
436470
  }
436417
- if (this.showGlobalOptions) {
436471
+ if (helper.showGlobalOptions) {
436418
436472
  const globalOptionList = helper.visibleGlobalOptions(cmd).map((option) => {
436419
- return formatItem(helper.optionTerm(option), helper.optionDescription(option));
436473
+ return callFormatItem(helper.styleOptionTerm(helper.optionTerm(option)), helper.styleOptionDescription(helper.optionDescription(option)));
436420
436474
  });
436421
436475
  if (globalOptionList.length > 0) {
436422
436476
  output = output.concat([
436423
- "Global Options:",
436424
- formatList(globalOptionList),
436477
+ helper.styleTitle("Global Options:"),
436478
+ ...globalOptionList,
436425
436479
  ""
436426
436480
  ]);
436427
436481
  }
436428
436482
  }
436429
436483
  const commandList = helper.visibleCommands(cmd).map((cmd2) => {
436430
- return formatItem(helper.subcommandTerm(cmd2), helper.subcommandDescription(cmd2));
436484
+ return callFormatItem(helper.styleSubcommandTerm(helper.subcommandTerm(cmd2)), helper.styleSubcommandDescription(helper.subcommandDescription(cmd2)));
436431
436485
  });
436432
436486
  if (commandList.length > 0) {
436433
- output = output.concat(["Commands:", formatList(commandList), ""]);
436487
+ output = output.concat([
436488
+ helper.styleTitle("Commands:"),
436489
+ ...commandList,
436490
+ ""
436491
+ ]);
436434
436492
  }
436435
436493
  return output.join(`
436436
436494
  `);
436437
436495
  }
436496
+ displayWidth(str2) {
436497
+ return stripColor(str2).length;
436498
+ }
436499
+ styleTitle(str2) {
436500
+ return str2;
436501
+ }
436502
+ styleUsage(str2) {
436503
+ return str2.split(" ").map((word) => {
436504
+ if (word === "[options]")
436505
+ return this.styleOptionText(word);
436506
+ if (word === "[command]")
436507
+ return this.styleSubcommandText(word);
436508
+ if (word[0] === "[" || word[0] === "<")
436509
+ return this.styleArgumentText(word);
436510
+ return this.styleCommandText(word);
436511
+ }).join(" ");
436512
+ }
436513
+ styleCommandDescription(str2) {
436514
+ return this.styleDescriptionText(str2);
436515
+ }
436516
+ styleOptionDescription(str2) {
436517
+ return this.styleDescriptionText(str2);
436518
+ }
436519
+ styleSubcommandDescription(str2) {
436520
+ return this.styleDescriptionText(str2);
436521
+ }
436522
+ styleArgumentDescription(str2) {
436523
+ return this.styleDescriptionText(str2);
436524
+ }
436525
+ styleDescriptionText(str2) {
436526
+ return str2;
436527
+ }
436528
+ styleOptionTerm(str2) {
436529
+ return this.styleOptionText(str2);
436530
+ }
436531
+ styleSubcommandTerm(str2) {
436532
+ return str2.split(" ").map((word) => {
436533
+ if (word === "[options]")
436534
+ return this.styleOptionText(word);
436535
+ if (word[0] === "[" || word[0] === "<")
436536
+ return this.styleArgumentText(word);
436537
+ return this.styleSubcommandText(word);
436538
+ }).join(" ");
436539
+ }
436540
+ styleArgumentTerm(str2) {
436541
+ return this.styleArgumentText(str2);
436542
+ }
436543
+ styleOptionText(str2) {
436544
+ return str2;
436545
+ }
436546
+ styleArgumentText(str2) {
436547
+ return str2;
436548
+ }
436549
+ styleSubcommandText(str2) {
436550
+ return str2;
436551
+ }
436552
+ styleCommandText(str2) {
436553
+ return str2;
436554
+ }
436438
436555
  padWidth(cmd, helper) {
436439
436556
  return Math.max(helper.longestOptionTermLength(cmd, helper), helper.longestGlobalOptionTermLength(cmd, helper), helper.longestSubcommandTermLength(cmd, helper), helper.longestArgumentTermLength(cmd, helper));
436440
436557
  }
436441
- wrap(str2, width, indent, minColumnWidth = 40) {
436442
- const indents = " \\f\\t\\v\xA0\u1680\u2000-\u200A\u202F\u205F\u3000\uFEFF";
436443
- const manualIndent = new RegExp(`[\\n][${indents}]+`);
436444
- if (str2.match(manualIndent))
436445
- return str2;
436446
- const columnWidth = width - indent;
436447
- if (columnWidth < minColumnWidth)
436558
+ preformatted(str2) {
436559
+ return /\n[^\S\r\n]/.test(str2);
436560
+ }
436561
+ formatItem(term, termWidth, description, helper) {
436562
+ const itemIndent = 2;
436563
+ const itemIndentStr = " ".repeat(itemIndent);
436564
+ if (!description)
436565
+ return itemIndentStr + term;
436566
+ const paddedTerm = term.padEnd(termWidth + term.length - helper.displayWidth(term));
436567
+ const spacerWidth = 2;
436568
+ const helpWidth = this.helpWidth ?? 80;
436569
+ const remainingWidth = helpWidth - termWidth - spacerWidth - itemIndent;
436570
+ let formattedDescription;
436571
+ if (remainingWidth < this.minWidthToWrap || helper.preformatted(description)) {
436572
+ formattedDescription = description;
436573
+ } else {
436574
+ const wrappedDescription = helper.boxWrap(description, remainingWidth);
436575
+ formattedDescription = wrappedDescription.replace(/\n/g, `
436576
+ ` + " ".repeat(termWidth + spacerWidth));
436577
+ }
436578
+ return itemIndentStr + paddedTerm + " ".repeat(spacerWidth) + formattedDescription.replace(/\n/g, `
436579
+ ${itemIndentStr}`);
436580
+ }
436581
+ boxWrap(str2, width) {
436582
+ if (width < this.minWidthToWrap)
436448
436583
  return str2;
436449
- const leadingStr = str2.slice(0, indent);
436450
- const columnText = str2.slice(indent).replace(`\r
436451
- `, `
436452
- `);
436453
- const indentString2 = " ".repeat(indent);
436454
- const zeroWidthSpace = "\u200B";
436455
- const breaks = `\\s${zeroWidthSpace}`;
436456
- const regex2 = new RegExp(`
436457
- |.{1,${columnWidth - 1}}([${breaks}]|$)|[^${breaks}]+?([${breaks}]|$)`, "g");
436458
- const lines = columnText.match(regex2) || [];
436459
- return leadingStr + lines.map((line, i3) => {
436460
- if (line === `
436461
- `)
436462
- return "";
436463
- return (i3 > 0 ? indentString2 : "") + line.trimEnd();
436464
- }).join(`
436584
+ const rawLines = str2.split(/\r\n|\n/);
436585
+ const chunkPattern = /[\s]*[^\s]+/g;
436586
+ const wrappedLines = [];
436587
+ rawLines.forEach((line) => {
436588
+ const chunks = line.match(chunkPattern);
436589
+ if (chunks === null) {
436590
+ wrappedLines.push("");
436591
+ return;
436592
+ }
436593
+ let sumChunks = [chunks.shift()];
436594
+ let sumWidth = this.displayWidth(sumChunks[0]);
436595
+ chunks.forEach((chunk2) => {
436596
+ const visibleWidth = this.displayWidth(chunk2);
436597
+ if (sumWidth + visibleWidth <= width) {
436598
+ sumChunks.push(chunk2);
436599
+ sumWidth += visibleWidth;
436600
+ return;
436601
+ }
436602
+ wrappedLines.push(sumChunks.join(""));
436603
+ const nextChunk = chunk2.trimStart();
436604
+ sumChunks = [nextChunk];
436605
+ sumWidth = this.displayWidth(nextChunk);
436606
+ });
436607
+ wrappedLines.push(sumChunks.join(""));
436608
+ });
436609
+ return wrappedLines.join(`
436465
436610
  `);
436466
436611
  }
436467
436612
  }
436613
+ function stripColor(str2) {
436614
+ const sgrPattern = /\x1b\[\d*(;\d*)*m/g;
436615
+ return str2.replace(sgrPattern, "");
436616
+ }
436468
436617
  exports.Help = Help;
436618
+ exports.stripColor = stripColor;
436469
436619
  });
436470
436620
 
436471
- // node_modules/@commander-js/extra-typings/node_modules/commander/lib/option.js
436621
+ // node_modules/commander/lib/option.js
436472
436622
  var require_option = __commonJS((exports) => {
436473
436623
  var { InvalidArgumentError } = require_error();
436474
436624
 
@@ -436560,7 +436710,10 @@ var require_option = __commonJS((exports) => {
436560
436710
  return this.short.replace(/^-/, "");
436561
436711
  }
436562
436712
  attributeName() {
436563
- return camelcase(this.name().replace(/^no-/, ""));
436713
+ if (this.negate) {
436714
+ return camelcase(this.name().replace(/^no-/, ""));
436715
+ }
436716
+ return camelcase(this.name());
436564
436717
  }
436565
436718
  is(arg) {
436566
436719
  return this.short === arg || this.long === arg;
@@ -436605,21 +436758,45 @@ var require_option = __commonJS((exports) => {
436605
436758
  function splitOptionFlags(flags) {
436606
436759
  let shortFlag;
436607
436760
  let longFlag;
436608
- const flagParts = flags.split(/[ |,]+/);
436609
- if (flagParts.length > 1 && !/^[[<]/.test(flagParts[1]))
436761
+ const shortFlagExp = /^-[^-]$/;
436762
+ const longFlagExp = /^--[^-]/;
436763
+ const flagParts = flags.split(/[ |,]+/).concat("guard");
436764
+ if (shortFlagExp.test(flagParts[0]))
436765
+ shortFlag = flagParts.shift();
436766
+ if (longFlagExp.test(flagParts[0]))
436767
+ longFlag = flagParts.shift();
436768
+ if (!shortFlag && shortFlagExp.test(flagParts[0]))
436610
436769
  shortFlag = flagParts.shift();
436611
- longFlag = flagParts.shift();
436612
- if (!shortFlag && /^-[^-]$/.test(longFlag)) {
436770
+ if (!shortFlag && longFlagExp.test(flagParts[0])) {
436613
436771
  shortFlag = longFlag;
436614
- longFlag = undefined;
436615
- }
436772
+ longFlag = flagParts.shift();
436773
+ }
436774
+ if (flagParts[0].startsWith("-")) {
436775
+ const unsupportedFlag = flagParts[0];
436776
+ const baseError = `option creation failed due to '${unsupportedFlag}' in option flags '${flags}'`;
436777
+ if (/^-[^-][^-]/.test(unsupportedFlag))
436778
+ throw new Error(`${baseError}
436779
+ - a short flag is a single dash and a single character
436780
+ - either use a single dash and a single character (for a short flag)
436781
+ - or use a double dash for a long option (and can have two, like '--ws, --workspace')`);
436782
+ if (shortFlagExp.test(unsupportedFlag))
436783
+ throw new Error(`${baseError}
436784
+ - too many short flags`);
436785
+ if (longFlagExp.test(unsupportedFlag))
436786
+ throw new Error(`${baseError}
436787
+ - too many long flags`);
436788
+ throw new Error(`${baseError}
436789
+ - unrecognised flag format`);
436790
+ }
436791
+ if (shortFlag === undefined && longFlag === undefined)
436792
+ throw new Error(`option creation failed due to no flags found in '${flags}'.`);
436616
436793
  return { shortFlag, longFlag };
436617
436794
  }
436618
436795
  exports.Option = Option;
436619
436796
  exports.DualOptions = DualOptions;
436620
436797
  });
436621
436798
 
436622
- // node_modules/@commander-js/extra-typings/node_modules/commander/lib/suggestSimilar.js
436799
+ // node_modules/commander/lib/suggestSimilar.js
436623
436800
  var require_suggestSimilar = __commonJS((exports) => {
436624
436801
  var maxDistance = 3;
436625
436802
  function editDistance(a2, b) {
@@ -436692,7 +436869,7 @@ var require_suggestSimilar = __commonJS((exports) => {
436692
436869
  exports.suggestSimilar = suggestSimilar;
436693
436870
  });
436694
436871
 
436695
- // node_modules/@commander-js/extra-typings/node_modules/commander/lib/command.js
436872
+ // node_modules/commander/lib/command.js
436696
436873
  var require_command = __commonJS((exports) => {
436697
436874
  var EventEmitter5 = __require("events").EventEmitter;
436698
436875
  var childProcess = __require("child_process");
@@ -436701,7 +436878,7 @@ var require_command = __commonJS((exports) => {
436701
436878
  var process15 = __require("process");
436702
436879
  var { Argument, humanReadableArgName } = require_argument();
436703
436880
  var { CommanderError } = require_error();
436704
- var { Help } = require_help();
436881
+ var { Help, stripColor } = require_help();
436705
436882
  var { Option, DualOptions } = require_option();
436706
436883
  var { suggestSimilar } = require_suggestSimilar();
436707
436884
 
@@ -436712,7 +436889,7 @@ var require_command = __commonJS((exports) => {
436712
436889
  this.options = [];
436713
436890
  this.parent = null;
436714
436891
  this._allowUnknownOption = false;
436715
- this._allowExcessArguments = true;
436892
+ this._allowExcessArguments = false;
436716
436893
  this.registeredArguments = [];
436717
436894
  this._args = this.registeredArguments;
436718
436895
  this.args = [];
@@ -436739,12 +436916,16 @@ var require_command = __commonJS((exports) => {
436739
436916
  this._lifeCycleHooks = {};
436740
436917
  this._showHelpAfterError = false;
436741
436918
  this._showSuggestionAfterError = true;
436919
+ this._savedState = null;
436742
436920
  this._outputConfiguration = {
436743
436921
  writeOut: (str2) => process15.stdout.write(str2),
436744
436922
  writeErr: (str2) => process15.stderr.write(str2),
436923
+ outputError: (str2, write) => write(str2),
436745
436924
  getOutHelpWidth: () => process15.stdout.isTTY ? process15.stdout.columns : undefined,
436746
436925
  getErrHelpWidth: () => process15.stderr.isTTY ? process15.stderr.columns : undefined,
436747
- outputError: (str2, write) => write(str2)
436926
+ getOutHasColors: () => useColor() ?? (process15.stdout.isTTY && process15.stdout.hasColors?.()),
436927
+ getErrHasColors: () => useColor() ?? (process15.stderr.isTTY && process15.stderr.hasColors?.()),
436928
+ stripColor: (str2) => stripColor(str2)
436748
436929
  };
436749
436930
  this._hidden = false;
436750
436931
  this._helpOption = undefined;
@@ -437176,15 +437357,53 @@ Expecting one of '${allowedValues.join("', '")}'`);
437176
437357
  return userArgs;
437177
437358
  }
437178
437359
  parse(argv, parseOptions) {
437360
+ this._prepareForParse();
437179
437361
  const userArgs = this._prepareUserArgs(argv, parseOptions);
437180
437362
  this._parseCommand([], userArgs);
437181
437363
  return this;
437182
437364
  }
437183
437365
  async parseAsync(argv, parseOptions) {
437366
+ this._prepareForParse();
437184
437367
  const userArgs = this._prepareUserArgs(argv, parseOptions);
437185
437368
  await this._parseCommand([], userArgs);
437186
437369
  return this;
437187
437370
  }
437371
+ _prepareForParse() {
437372
+ if (this._savedState === null) {
437373
+ this.saveStateBeforeParse();
437374
+ } else {
437375
+ this.restoreStateBeforeParse();
437376
+ }
437377
+ }
437378
+ saveStateBeforeParse() {
437379
+ this._savedState = {
437380
+ _name: this._name,
437381
+ _optionValues: { ...this._optionValues },
437382
+ _optionValueSources: { ...this._optionValueSources }
437383
+ };
437384
+ }
437385
+ restoreStateBeforeParse() {
437386
+ if (this._storeOptionsAsProperties)
437387
+ throw new Error(`Can not call parse again when storeOptionsAsProperties is true.
437388
+ - either make a new Command for each call to parse, or stop storing options as properties`);
437389
+ this._name = this._savedState._name;
437390
+ this._scriptPath = null;
437391
+ this.rawArgs = [];
437392
+ this._optionValues = { ...this._savedState._optionValues };
437393
+ this._optionValueSources = { ...this._savedState._optionValueSources };
437394
+ this.args = [];
437395
+ this.processedArgs = [];
437396
+ }
437397
+ _checkForMissingExecutable(executableFile, executableDir, subcommandName) {
437398
+ if (fs5.existsSync(executableFile))
437399
+ return;
437400
+ 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";
437401
+ const executableMissing = `'${executableFile}' does not exist
437402
+ - if '${subcommandName}' is not meant to be an executable command, remove description parameter from '.command()' and use '.description()' instead
437403
+ - if the default executable name is not suitable, use the executableFile option to supply a custom name or path
437404
+ - ${executableDirMessage}`;
437405
+ throw new Error(executableMissing);
437406
+ }
437188
437407
  _executeSubCommand(subcommand, args) {
437189
437408
  args = args.slice();
437190
437409
  let launchWithNode = false;
@@ -437208,7 +437427,7 @@ Expecting one of '${allowedValues.join("', '")}'`);
437208
437427
  let resolvedScriptPath;
437209
437428
  try {
437210
437429
  resolvedScriptPath = fs5.realpathSync(this._scriptPath);
437211
- } catch (err2) {
437430
+ } catch {
437212
437431
  resolvedScriptPath = this._scriptPath;
437213
437432
  }
437214
437433
  executableDir = path19.resolve(path19.dirname(resolvedScriptPath), executableDir);
@@ -437234,6 +437453,7 @@ Expecting one of '${allowedValues.join("', '")}'`);
437234
437453
  proc = childProcess.spawn(executableFile, args, { stdio: "inherit" });
437235
437454
  }
437236
437455
  } else {
437456
+ this._checkForMissingExecutable(executableFile, executableDir, subcommand._name);
437237
437457
  args.unshift(executableFile);
437238
437458
  args = incrementNodeInspectorPort(process15.execArgv).concat(args);
437239
437459
  proc = childProcess.spawn(process15.execPath, args, { stdio: "inherit" });
@@ -437259,12 +437479,7 @@ Expecting one of '${allowedValues.join("', '")}'`);
437259
437479
  });
437260
437480
  proc.on("error", (err2) => {
437261
437481
  if (err2.code === "ENOENT") {
437262
- 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";
437263
- const executableMissing = `'${executableFile}' does not exist
437264
- - if '${subcommand._name}' is not meant to be an executable command, remove description parameter from '.command()' and use '.description()' instead
437265
- - if the default executable name is not suitable, use the executableFile option to supply a custom name or path
437266
- - ${executableDirMessage}`;
437267
- throw new Error(executableMissing);
437482
+ this._checkForMissingExecutable(executableFile, executableDir, subcommand._name);
437268
437483
  } else if (err2.code === "EACCES") {
437269
437484
  throw new Error(`'${executableFile}' not executable`);
437270
437485
  }
@@ -437282,6 +437497,7 @@ Expecting one of '${allowedValues.join("', '")}'`);
437282
437497
  const subCommand = this._findCommand(commandName);
437283
437498
  if (!subCommand)
437284
437499
  this.help({ error: true });
437500
+ subCommand._prepareForParse();
437285
437501
  let promiseChain;
437286
437502
  promiseChain = this._chainOrCallSubCommandHook(promiseChain, subCommand, "preSubcommand");
437287
437503
  promiseChain = this._chainOrCall(promiseChain, () => {
@@ -437800,23 +438016,38 @@ Expecting one of '${allowedValues.join("', '")}'`);
437800
438016
  }
437801
438017
  helpInformation(contextOptions) {
437802
438018
  const helper = this.createHelp();
437803
- if (helper.helpWidth === undefined) {
437804
- helper.helpWidth = contextOptions && contextOptions.error ? this._outputConfiguration.getErrHelpWidth() : this._outputConfiguration.getOutHelpWidth();
437805
- }
437806
- return helper.formatHelp(this, helper);
437807
- }
437808
- _getHelpContext(contextOptions) {
438019
+ const context3 = this._getOutputContext(contextOptions);
438020
+ helper.prepareContext({
438021
+ error: context3.error,
438022
+ helpWidth: context3.helpWidth,
438023
+ outputHasColors: context3.hasColors
438024
+ });
438025
+ const text2 = helper.formatHelp(this, helper);
438026
+ if (context3.hasColors)
438027
+ return text2;
438028
+ return this._outputConfiguration.stripColor(text2);
438029
+ }
438030
+ _getOutputContext(contextOptions) {
437809
438031
  contextOptions = contextOptions || {};
437810
- const context3 = { error: !!contextOptions.error };
437811
- let write;
437812
- if (context3.error) {
437813
- write = (arg) => this._outputConfiguration.writeErr(arg);
438032
+ const error40 = !!contextOptions.error;
438033
+ let baseWrite;
438034
+ let hasColors2;
438035
+ let helpWidth;
438036
+ if (error40) {
438037
+ baseWrite = (str2) => this._outputConfiguration.writeErr(str2);
438038
+ hasColors2 = this._outputConfiguration.getErrHasColors();
438039
+ helpWidth = this._outputConfiguration.getErrHelpWidth();
437814
438040
  } else {
437815
- write = (arg) => this._outputConfiguration.writeOut(arg);
438041
+ baseWrite = (str2) => this._outputConfiguration.writeOut(str2);
438042
+ hasColors2 = this._outputConfiguration.getOutHasColors();
438043
+ helpWidth = this._outputConfiguration.getOutHelpWidth();
437816
438044
  }
437817
- context3.write = contextOptions.write || write;
437818
- context3.command = this;
437819
- return context3;
438045
+ const write = (str2) => {
438046
+ if (!hasColors2)
438047
+ str2 = this._outputConfiguration.stripColor(str2);
438048
+ return baseWrite(str2);
438049
+ };
438050
+ return { error: error40, write, hasColors: hasColors2, helpWidth };
437820
438051
  }
437821
438052
  outputHelp(contextOptions) {
437822
438053
  let deprecatedCallback;
@@ -437824,22 +438055,27 @@ Expecting one of '${allowedValues.join("', '")}'`);
437824
438055
  deprecatedCallback = contextOptions;
437825
438056
  contextOptions = undefined;
437826
438057
  }
437827
- const context3 = this._getHelpContext(contextOptions);
437828
- this._getCommandAndAncestors().reverse().forEach((command9) => command9.emit("beforeAllHelp", context3));
437829
- this.emit("beforeHelp", context3);
437830
- let helpInformation = this.helpInformation(context3);
438058
+ const outputContext = this._getOutputContext(contextOptions);
438059
+ const eventContext = {
438060
+ error: outputContext.error,
438061
+ write: outputContext.write,
438062
+ command: this
438063
+ };
438064
+ this._getCommandAndAncestors().reverse().forEach((command9) => command9.emit("beforeAllHelp", eventContext));
438065
+ this.emit("beforeHelp", eventContext);
438066
+ let helpInformation = this.helpInformation({ error: outputContext.error });
437831
438067
  if (deprecatedCallback) {
437832
438068
  helpInformation = deprecatedCallback(helpInformation);
437833
438069
  if (typeof helpInformation !== "string" && !Buffer.isBuffer(helpInformation)) {
437834
438070
  throw new Error("outputHelp callback must return a string or a Buffer");
437835
438071
  }
437836
438072
  }
437837
- context3.write(helpInformation);
438073
+ outputContext.write(helpInformation);
437838
438074
  if (this._getHelpOption()?.long) {
437839
438075
  this.emit(this._getHelpOption().long);
437840
438076
  }
437841
- this.emit("afterHelp", context3);
437842
- this._getCommandAndAncestors().forEach((command9) => command9.emit("afterAllHelp", context3));
438077
+ this.emit("afterHelp", eventContext);
438078
+ this._getCommandAndAncestors().forEach((command9) => command9.emit("afterAllHelp", eventContext));
437843
438079
  }
437844
438080
  helpOption(flags, description) {
437845
438081
  if (typeof flags === "boolean") {
@@ -437867,7 +438103,7 @@ Expecting one of '${allowedValues.join("', '")}'`);
437867
438103
  }
437868
438104
  help(contextOptions) {
437869
438105
  this.outputHelp(contextOptions);
437870
- let exitCode = process15.exitCode || 0;
438106
+ let exitCode = Number(process15.exitCode ?? 0);
437871
438107
  if (exitCode === 0 && contextOptions && typeof contextOptions !== "function" && contextOptions.error) {
437872
438108
  exitCode = 1;
437873
438109
  }
@@ -437932,10 +438168,18 @@ Expecting one of '${allowedValues.join("', '")}'`);
437932
438168
  return arg;
437933
438169
  });
437934
438170
  }
438171
+ function useColor() {
438172
+ if (process15.env.NO_COLOR || process15.env.FORCE_COLOR === "0" || process15.env.FORCE_COLOR === "false")
438173
+ return false;
438174
+ if (process15.env.FORCE_COLOR || process15.env.CLICOLOR_FORCE !== undefined)
438175
+ return true;
438176
+ return;
438177
+ }
437935
438178
  exports.Command = Command;
438179
+ exports.useColor = useColor;
437936
438180
  });
437937
438181
 
437938
- // node_modules/@commander-js/extra-typings/node_modules/commander/index.js
438182
+ // node_modules/commander/index.js
437939
438183
  var require_commander = __commonJS((exports) => {
437940
438184
  var { Argument } = require_argument();
437941
438185
  var { Command } = require_command();
@@ -439087,7 +439331,7 @@ function buildSystemInitMessage(inputs) {
439087
439331
  slash_commands: inputs.commands.filter((c5) => c5.userInvocable !== false).map((c5) => c5.name),
439088
439332
  apiKeySource: getTheusApiKeyWithSource().source,
439089
439333
  betas: getSdkBetas(),
439090
- theus_code_version: { VERSION: "0.2.77", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
439334
+ theus_code_version: { VERSION: "0.2.79", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
439091
439335
  output_style: outputStyle2,
439092
439336
  agents: inputs.agents.map((agent) => agent.agentType),
439093
439337
  skills: inputs.skills.filter((s) => s.userInvocable !== false).map((skill) => skill.name),
@@ -439127,8 +439371,8 @@ async function getEnvLessBridgeConfig() {
439127
439371
  }
439128
439372
  async function checkEnvLessBridgeMinVersion() {
439129
439373
  const cfg = await getEnvLessBridgeConfig();
439130
- if (cfg.min_version && lt({ VERSION: "0.2.77", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
439131
- return `Your version of Theus (${{ VERSION: "0.2.77", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.
439374
+ if (cfg.min_version && lt({ VERSION: "0.2.79", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
439375
+ return `Your version of Theus (${{ VERSION: "0.2.79", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.
439132
439376
  Version ${cfg.min_version} or higher is required. Run \`theus update\` to update.`;
439133
439377
  }
439134
439378
  return null;
@@ -441452,7 +441696,7 @@ async function initBridgeCore(params) {
441452
441696
  const rawApi = createBridgeApiClient({
441453
441697
  baseUrl,
441454
441698
  getAccessToken,
441455
- runnerVersion: { VERSION: "0.2.77", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
441699
+ runnerVersion: { VERSION: "0.2.79", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
441456
441700
  onDebug: logForDebugging,
441457
441701
  onAuth401,
441458
441702
  getTrustedDeviceToken
@@ -458093,7 +458337,7 @@ var init_useVoiceEnabled = __esm(() => {
458093
458337
  function getSemverPart(version3) {
458094
458338
  return `${import_semver11.major(version3, { loose: true })}.${import_semver11.minor(version3, { loose: true })}.${import_semver11.patch(version3, { loose: true })}`;
458095
458339
  }
458096
- function useUpdateNotification(updatedVersion, initialVersion = { VERSION: "0.2.77", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION) {
458340
+ function useUpdateNotification(updatedVersion, initialVersion = { VERSION: "0.2.79", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION) {
458097
458341
  const [lastNotifiedSemver, setLastNotifiedSemver] = import_react235.useState(() => getSemverPart(initialVersion));
458098
458342
  if (!updatedVersion) {
458099
458343
  return null;
@@ -458133,7 +458377,7 @@ function AutoUpdater({
458133
458377
  return;
458134
458378
  }
458135
458379
  if (false) {}
458136
- const currentVersion = { VERSION: "0.2.77", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION;
458380
+ const currentVersion = { VERSION: "0.2.79", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION;
458137
458381
  const channel2 = getInitialSettings()?.autoUpdatesChannel ?? "latest";
458138
458382
  let latestVersion = await getLatestVersion(channel2);
458139
458383
  const isDisabled2 = isAutoUpdaterDisabled();
@@ -458268,7 +458512,7 @@ function AutoUpdater({
458268
458512
  " ",
458269
458513
  /* @__PURE__ */ jsx_runtime415.jsx(ThemedText, {
458270
458514
  bold: true,
458271
- children: hasLocalInstall ? `cd ~/.theus/local && npm update ${{ VERSION: "0.2.77", BUILD_TIME: "1970-01-01T00:00:00.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.77", BUILD_TIME: "1970-01-01T00:00:00.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}`
458515
+ children: hasLocalInstall ? `cd ~/.theus/local && npm update ${{ VERSION: "0.2.79", BUILD_TIME: "1970-01-01T00:00:00.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.79", BUILD_TIME: "1970-01-01T00:00:00.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}`
458272
458516
  })
458273
458517
  ]
458274
458518
  })
@@ -458345,12 +458589,12 @@ function NativeAutoUpdater({
458345
458589
  logEvent("theus_native_auto_updater_start", {});
458346
458590
  try {
458347
458591
  const maxVersion = await getMaxVersion();
458348
- if (maxVersion && gt({ VERSION: "0.2.77", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
458592
+ if (maxVersion && gt({ VERSION: "0.2.79", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
458349
458593
  const msg = await getMaxVersionMessage();
458350
458594
  setMaxVersionIssue(msg ?? "affects your version");
458351
458595
  }
458352
458596
  const result = await installLatest(channel2);
458353
- const currentVersion = { VERSION: "0.2.77", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION;
458597
+ const currentVersion = { VERSION: "0.2.79", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION;
458354
458598
  const latencyMs = Date.now() - startTime2;
458355
458599
  if (result.lockFailed) {
458356
458600
  logEvent("theus_native_auto_updater_lock_contention", {
@@ -458487,17 +458731,17 @@ function PackageManagerAutoUpdater(t0) {
458487
458731
  const maxVersion = await getMaxVersion();
458488
458732
  if (maxVersion && latest && gt(latest, maxVersion)) {
458489
458733
  logForDebugging(`PackageManagerAutoUpdater: maxVersion ${maxVersion} is set, capping update from ${latest} to ${maxVersion}`);
458490
- if (gte({ VERSION: "0.2.77", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
458491
- logForDebugging(`PackageManagerAutoUpdater: current version ${{ VERSION: "0.2.77", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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`);
458734
+ if (gte({ VERSION: "0.2.79", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
458735
+ logForDebugging(`PackageManagerAutoUpdater: current version ${{ VERSION: "0.2.79", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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`);
458492
458736
  setUpdateAvailable(false);
458493
458737
  return;
458494
458738
  }
458495
458739
  latest = maxVersion;
458496
458740
  }
458497
- const hasUpdate = latest && !gte({ VERSION: "0.2.77", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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);
458741
+ const hasUpdate = latest && !gte({ VERSION: "0.2.79", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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);
458498
458742
  setUpdateAvailable(!!hasUpdate);
458499
458743
  if (hasUpdate) {
458500
- logForDebugging(`PackageManagerAutoUpdater: Update available ${{ VERSION: "0.2.77", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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}`);
458744
+ logForDebugging(`PackageManagerAutoUpdater: Update available ${{ VERSION: "0.2.79", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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}`);
458501
458745
  }
458502
458746
  };
458503
458747
  $2[0] = t1;
@@ -458531,7 +458775,7 @@ function PackageManagerAutoUpdater(t0) {
458531
458775
  wrap: "truncate",
458532
458776
  children: [
458533
458777
  "versi\xF3n actual: ",
458534
- { VERSION: "0.2.77", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
458778
+ { VERSION: "0.2.79", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
458535
458779
  ]
458536
458780
  });
458537
458781
  $2[3] = verbose;
@@ -466394,7 +466638,7 @@ function buildStatusLineCommandInput(permissionMode2, exceeds200kTokens, setting
466394
466638
  project_dir: getOriginalCwd(),
466395
466639
  added_dirs: addedDirs
466396
466640
  },
466397
- version: { VERSION: "0.2.77", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
466641
+ version: { VERSION: "0.2.79", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
466398
466642
  output_style: {
466399
466643
  name: outputStyleName
466400
466644
  },
@@ -490717,7 +490961,7 @@ function completeOnboarding() {
490717
490961
  saveGlobalConfig((current) => ({
490718
490962
  ...current,
490719
490963
  hasCompletedOnboarding: true,
490720
- lastOnboardingVersion: { VERSION: "0.2.77", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
490964
+ lastOnboardingVersion: { VERSION: "0.2.79", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
490721
490965
  }));
490722
490966
  }
490723
490967
  function showDialog(root2, renderer) {
@@ -497413,7 +497657,7 @@ function getRecentReleaseNotes(currentVersion, previousVersion, changelogContent
497413
497657
  }
497414
497658
  return [];
497415
497659
  }
497416
- async function checkForReleaseNotes(lastSeenVersion, currentVersion = { VERSION: "0.2.77", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION) {
497660
+ async function checkForReleaseNotes(lastSeenVersion, currentVersion = { VERSION: "0.2.79", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION) {
497417
497661
  if (false) {}
497418
497662
  const cachedChangelog = await getStoredChangelog();
497419
497663
  if (lastSeenVersion !== currentVersion || !cachedChangelog) {
@@ -502946,7 +503190,7 @@ async function startMCPServer(cwd3, debug3, verbose) {
502946
503190
  setCwd(cwd3);
502947
503191
  const server2 = new Server({
502948
503192
  name: "theus/tengu",
502949
- version: { VERSION: "0.2.77", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
503193
+ version: { VERSION: "0.2.79", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
502950
503194
  }, {
502951
503195
  capabilities: {
502952
503196
  tools: {}
@@ -504388,7 +504632,7 @@ async function setupTokenHandler(root2) {
504388
504632
  gap: 1,
504389
504633
  children: [
504390
504634
  /* @__PURE__ */ jsx_runtime503.jsx(TheusBanner, {
504391
- version: { VERSION: "0.2.77", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
504635
+ version: { VERSION: "0.2.79", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
504392
504636
  }),
504393
504637
  showAuthWarning && /* @__PURE__ */ jsx_runtime503.jsxs(ThemedBox_default, {
504394
504638
  flexDirection: "column",
@@ -505973,7 +506217,7 @@ ${assistantAddendum}` : assistantAddendum;
505973
506217
  }
505974
506218
  }
505975
506219
  logForDiagnosticsNoPII("info", "started", {
505976
- version: { VERSION: "0.2.77", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
506220
+ version: { VERSION: "0.2.79", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
505977
506221
  is_native_binary: isInBundledMode()
505978
506222
  });
505979
506223
  registerCleanup(async () => {
@@ -506841,7 +507085,7 @@ Usage: theus --remote "your task description"`, () => gracefulShutdown(1));
506841
507085
  pendingHookMessages
506842
507086
  }, renderAndRun);
506843
507087
  }
506844
- }).version(`${{ VERSION: "0.2.77", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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");
507088
+ }).version(`${{ VERSION: "0.2.79", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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");
506845
507089
  program2.option("-w, --worktree [name]", "Crea un nuevo worktree de git para esta sesi\xF3n (opcionalmente indica un nombre)");
506846
507090
  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.");
506847
507091
  if (canUserConfigureAdvisor()) {
@@ -507442,7 +507686,7 @@ if (false) {}
507442
507686
  async function main2() {
507443
507687
  const args = process.argv.slice(2);
507444
507688
  if (args.length === 1 && (args[0] === "--version" || args[0] === "-v" || args[0] === "-V")) {
507445
- console.log(`${{ VERSION: "0.2.77", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)`);
507689
+ console.log(`${{ VERSION: "0.2.79", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)`);
507446
507690
  return;
507447
507691
  }
507448
507692
  if (args[0] === "login" || args[0] === "signin" || args[0] === "entrar" || args[0] === "iniciar-sesion") {