theus-cli 0.2.63 → 0.2.64

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/cli.js +143 -132
  2. package/package.json +1 -1
package/cli.js CHANGED
@@ -58922,7 +58922,7 @@ async function _executeApiKeyHelper(isNonInteractiveSession) {
58922
58922
  if (isApiKeyHelperFromProjectOrLocalSettings()) {
58923
58923
  const hasTrust = checkHasTrustDialogAccepted();
58924
58924
  if (!hasTrust && !isNonInteractiveSession) {
58925
- const error40 = new Error(`Security: apiKeyHelper executed before workspace trust is confirmed. If you see this message, post in ${{ VERSION: "0.2.63", BUILD_TIME: "1970-01-01T00:00:00.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}.`);
58925
+ const error40 = new Error(`Security: apiKeyHelper executed before workspace trust is confirmed. If you see this message, post in ${{ VERSION: "0.2.64", BUILD_TIME: "1970-01-01T00:00:00.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}.`);
58926
58926
  logAntError("apiKeyHelper invoked before trust check", error40);
58927
58927
  logEvent("tengu_apiKeyHelper_missing_trust11", {});
58928
58928
  return null;
@@ -58966,7 +58966,7 @@ async function runAwsAuthRefresh() {
58966
58966
  if (isAwsAuthRefreshFromProjectSettings()) {
58967
58967
  const hasTrust = checkHasTrustDialogAccepted();
58968
58968
  if (!hasTrust && !getIsNonInteractiveSession()) {
58969
- const error40 = new Error(`Security: awsAuthRefresh executed before workspace trust is confirmed. If you see this message, post in ${{ VERSION: "0.2.63", BUILD_TIME: "1970-01-01T00:00:00.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}.`);
58969
+ const error40 = new Error(`Security: awsAuthRefresh executed before workspace trust is confirmed. If you see this message, post in ${{ VERSION: "0.2.64", BUILD_TIME: "1970-01-01T00:00:00.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}.`);
58970
58970
  logAntError("awsAuthRefresh invoked before trust check", error40);
58971
58971
  logEvent("tengu_awsAuthRefresh_missing_trust", {});
58972
58972
  return false;
@@ -59026,7 +59026,7 @@ async function getAwsCredsFromCredentialExport() {
59026
59026
  if (isAwsCredentialExportFromProjectSettings()) {
59027
59027
  const hasTrust = checkHasTrustDialogAccepted();
59028
59028
  if (!hasTrust && !getIsNonInteractiveSession()) {
59029
- const error40 = new Error(`Security: awsCredentialExport executed before workspace trust is confirmed. If you see this message, post in ${{ VERSION: "0.2.63", BUILD_TIME: "1970-01-01T00:00:00.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}.`);
59029
+ const error40 = new Error(`Security: awsCredentialExport executed before workspace trust is confirmed. If you see this message, post in ${{ VERSION: "0.2.64", BUILD_TIME: "1970-01-01T00:00:00.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}.`);
59030
59030
  logAntError("awsCredentialExport invoked before trust check", error40);
59031
59031
  logEvent("tengu_awsCredentialExport_missing_trust", {});
59032
59032
  return null;
@@ -59111,7 +59111,7 @@ async function runGcpAuthRefresh() {
59111
59111
  if (isGcpAuthRefreshFromProjectSettings()) {
59112
59112
  const hasTrust = checkHasTrustDialogAccepted();
59113
59113
  if (!hasTrust && !getIsNonInteractiveSession()) {
59114
- const error40 = new Error(`Security: gcpAuthRefresh executed before workspace trust is confirmed. If you see this message, post in ${{ VERSION: "0.2.63", BUILD_TIME: "1970-01-01T00:00:00.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}.`);
59114
+ const error40 = new Error(`Security: gcpAuthRefresh executed before workspace trust is confirmed. If you see this message, post in ${{ VERSION: "0.2.64", BUILD_TIME: "1970-01-01T00:00:00.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}.`);
59115
59115
  logAntError("gcpAuthRefresh invoked before trust check", error40);
59116
59116
  logEvent("tengu_gcpAuthRefresh_missing_trust", {});
59117
59117
  return false;
@@ -59830,7 +59830,7 @@ var init_auth = __esm(() => {
59830
59830
 
59831
59831
  // utils/userAgent.ts
59832
59832
  function getTheusCodeUserAgent() {
59833
- return `theus-code/${{ VERSION: "0.2.63", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION}`;
59833
+ return `theus-code/${{ VERSION: "0.2.64", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION}`;
59834
59834
  }
59835
59835
 
59836
59836
  // utils/workloadContext.ts
@@ -59852,7 +59852,7 @@ function getUserAgent() {
59852
59852
  const clientApp = process.env.THEUS_AGENT_SDK_CLIENT_APP ? `, client-app/${process.env.THEUS_AGENT_SDK_CLIENT_APP}` : "";
59853
59853
  const workload = getWorkload();
59854
59854
  const workloadSuffix = workload ? `, workload/${workload}` : "";
59855
- return `theus-cli/${{ VERSION: "0.2.63", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION} (${process.env.USER_TYPE}, ${process.env.THEUS_CODE_ENTRYPOINT ?? "cli"}${agentSdkVersion}${clientApp}${workloadSuffix})`;
59855
+ return `theus-cli/${{ VERSION: "0.2.64", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION} (${process.env.USER_TYPE}, ${process.env.THEUS_CODE_ENTRYPOINT ?? "cli"}${agentSdkVersion}${clientApp}${workloadSuffix})`;
59856
59856
  }
59857
59857
  function getMCPUserAgent() {
59858
59858
  const parts = [];
@@ -59866,7 +59866,7 @@ function getMCPUserAgent() {
59866
59866
  parts.push(`client-app/${process.env.THEUS_AGENT_SDK_CLIENT_APP}`);
59867
59867
  }
59868
59868
  const suffix = parts.length > 0 ? ` (${parts.join(", ")})` : "";
59869
- return `theus-code/${{ VERSION: "0.2.63", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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}`;
59869
+ return `theus-code/${{ VERSION: "0.2.64", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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}`;
59870
59870
  }
59871
59871
  function getWebFetchUserAgent() {
59872
59872
  return `Theus-User (${getTheusCodeUserAgent()}; +https://support.theus.pe/)`;
@@ -60004,7 +60004,7 @@ var init_user = __esm(() => {
60004
60004
  deviceId,
60005
60005
  sessionId: getSessionId(),
60006
60006
  email: getEmail(),
60007
- appVersion: { VERSION: "0.2.63", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
60007
+ appVersion: { VERSION: "0.2.64", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
60008
60008
  platform: getHostPlatformForAnalytics(),
60009
60009
  organizationUuid,
60010
60010
  accountUuid,
@@ -61719,7 +61719,7 @@ var init_metadata = __esm(() => {
61719
61719
  COMPOUND_OPERATOR_REGEX = /\s*(?:&&|\|\||[;|])\s*/;
61720
61720
  WHITESPACE_REGEX = /\s+/;
61721
61721
  getVersionBase = memoize_default(() => {
61722
- const match = { VERSION: "0.2.63", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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]+)?/);
61722
+ const match = { VERSION: "0.2.64", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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]+)?/);
61723
61723
  return match ? match[0] : undefined;
61724
61724
  });
61725
61725
  buildEnvContext = memoize_default(async () => {
@@ -61759,9 +61759,9 @@ var init_metadata = __esm(() => {
61759
61759
  isGithubAction: isEnvTruthy(process.env.GITHUB_ACTIONS),
61760
61760
  isTheusCodeAction: isEnvTruthy(process.env.THEUS_CODE_ACTION),
61761
61761
  isTheusAiAuth: isTheusAISubscriber(),
61762
- version: { VERSION: "0.2.63", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
61762
+ version: { VERSION: "0.2.64", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
61763
61763
  versionBase: getVersionBase(),
61764
- buildTime: { VERSION: "0.2.63", BUILD_TIME: "1970-01-01T00:00:00.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,
61764
+ buildTime: { VERSION: "0.2.64", BUILD_TIME: "1970-01-01T00:00:00.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,
61765
61765
  deploymentEnvironment: env3.detectDeploymentEnvironment(),
61766
61766
  ...isEnvTruthy(process.env.GITHUB_ACTIONS) && {
61767
61767
  githubEventName: process.env.GITHUB_EVENT_NAME,
@@ -62427,7 +62427,7 @@ function initialize1PEventLogging() {
62427
62427
  const platform2 = getPlatform();
62428
62428
  const attributes = {
62429
62429
  [ATTR_SERVICE_NAME]: "theus-code",
62430
- [ATTR_SERVICE_VERSION]: { VERSION: "0.2.63", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
62430
+ [ATTR_SERVICE_VERSION]: { VERSION: "0.2.64", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
62431
62431
  };
62432
62432
  if (platform2 === "wsl") {
62433
62433
  const wslVersion = getWslVersion();
@@ -62454,7 +62454,7 @@ function initialize1PEventLogging() {
62454
62454
  })
62455
62455
  ]
62456
62456
  });
62457
- firstPartyEventLogger = firstPartyEventLoggerProvider.getLogger("com.theus.theus_code.events", { VERSION: "0.2.63", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION);
62457
+ firstPartyEventLogger = firstPartyEventLoggerProvider.getLogger("com.theus.theus_code.events", { VERSION: "0.2.64", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION);
62458
62458
  }
62459
62459
  async function reinitialize1PEventLoggingIfConfigChanged() {
62460
62460
  if (!is1PEventLoggingEnabled() || !firstPartyEventLoggerProvider) {
@@ -64325,7 +64325,7 @@ function getAttributionHeader(fingerprint) {
64325
64325
  if (!isAttributionHeaderEnabled()) {
64326
64326
  return "";
64327
64327
  }
64328
- const version2 = `${{ VERSION: "0.2.63", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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}`;
64328
+ const version2 = `${{ VERSION: "0.2.64", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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}`;
64329
64329
  const entrypoint = process.env.THEUS_CODE_ENTRYPOINT ?? "unknown";
64330
64330
  const cch = "";
64331
64331
  const workload = getWorkload();
@@ -107312,7 +107312,7 @@ Complete the user's request by providing accurate, documentation-based guidance.
107312
107312
  }
107313
107313
  function getFeedbackGuideline() {
107314
107314
  if (isUsing3PServices()) {
107315
- return `- When you cannot find an answer or the feature doesn't exist, direct the user to ${{ VERSION: "0.2.63", BUILD_TIME: "1970-01-01T00:00:00.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}`;
107315
+ return `- When you cannot find an answer or the feature doesn't exist, direct the user to ${{ VERSION: "0.2.64", BUILD_TIME: "1970-01-01T00:00:00.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}`;
107316
107316
  }
107317
107317
  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";
107318
107318
  }
@@ -166284,7 +166284,7 @@ function getTelemetryAttributes() {
166284
166284
  attributes["session.id"] = sessionId;
166285
166285
  }
166286
166286
  if (shouldIncludeAttribute("OTEL_METRICS_INCLUDE_VERSION")) {
166287
- attributes["app.version"] = { VERSION: "0.2.63", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION;
166287
+ attributes["app.version"] = { VERSION: "0.2.64", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION;
166288
166288
  }
166289
166289
  const oauthAccount = getOauthAccountInfo();
166290
166290
  if (oauthAccount) {
@@ -202208,7 +202208,7 @@ function getInstallationEnv() {
202208
202208
  return;
202209
202209
  }
202210
202210
  function getTheusCodeVersion() {
202211
- return { VERSION: "0.2.63", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION;
202211
+ return { VERSION: "0.2.64", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION;
202212
202212
  }
202213
202213
  async function getInstalledVSCodeExtensionVersion(command) {
202214
202214
  const { stdout } = await execFileNoThrow(command, ["--list-extensions", "--show-versions"], {
@@ -203726,7 +203726,7 @@ async function getMcpHeadersFromHelper(serverName, config2) {
203726
203726
  if ("scope" in config2 && isMcpServerFromProjectOrLocalSettings(config2) && !getIsNonInteractiveSession()) {
203727
203727
  const hasTrust = checkHasTrustDialogAccepted();
203728
203728
  if (!hasTrust) {
203729
- 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.63", BUILD_TIME: "1970-01-01T00:00:00.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}.`);
203729
+ 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.64", BUILD_TIME: "1970-01-01T00:00:00.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}.`);
203730
203730
  logAntError("MCP headersHelper invoked before trust check", error40);
203731
203731
  logEvent("tengu_mcp_headersHelper_missing_trust", {});
203732
203732
  return null;
@@ -204936,7 +204936,7 @@ async function setupSdkMcpClients(sdkMcpConfigs, sendMcpMessage) {
204936
204936
  const client2 = new Client({
204937
204937
  name: "theus-code",
204938
204938
  title: "Theus",
204939
- version: { VERSION: "0.2.63", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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",
204939
+ version: { VERSION: "0.2.64", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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",
204940
204940
  description: "Theus's agentic coding tool",
204941
204941
  websiteUrl: PRODUCT_URL
204942
204942
  }, {
@@ -205290,7 +205290,7 @@ var init_client5 = __esm(() => {
205290
205290
  const client2 = new Client({
205291
205291
  name: "theus-code",
205292
205292
  title: "Theus",
205293
- version: { VERSION: "0.2.63", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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",
205293
+ version: { VERSION: "0.2.64", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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",
205294
205294
  description: "Theus's agentic coding tool",
205295
205295
  websiteUrl: PRODUCT_URL
205296
205296
  }, {
@@ -216653,7 +216653,7 @@ async function initializeBetaTracing(resource) {
216653
216653
  });
216654
216654
  logs.setGlobalLoggerProvider(loggerProvider);
216655
216655
  setLoggerProvider(loggerProvider);
216656
- const eventLogger = logs.getLogger("com.theus.theus_code.events", { VERSION: "0.2.63", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION);
216656
+ const eventLogger = logs.getLogger("com.theus.theus_code.events", { VERSION: "0.2.64", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION);
216657
216657
  setEventLogger(eventLogger);
216658
216658
  process.on("beforeExit", async () => {
216659
216659
  await loggerProvider?.forceFlush();
@@ -216693,7 +216693,7 @@ async function initializeTelemetry() {
216693
216693
  const platform4 = getPlatform();
216694
216694
  const baseAttributes = {
216695
216695
  [ATTR_SERVICE_NAME]: "theus-code",
216696
- [ATTR_SERVICE_VERSION]: { VERSION: "0.2.63", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
216696
+ [ATTR_SERVICE_VERSION]: { VERSION: "0.2.64", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
216697
216697
  };
216698
216698
  if (platform4 === "wsl") {
216699
216699
  const wslVersion = getWslVersion();
@@ -216738,7 +216738,7 @@ async function initializeTelemetry() {
216738
216738
  } catch {}
216739
216739
  };
216740
216740
  registerCleanup(shutdownTelemetry2);
216741
- return meterProvider2.getMeter("com.theus.theus_code", { VERSION: "0.2.63", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION);
216741
+ return meterProvider2.getMeter("com.theus.theus_code", { VERSION: "0.2.64", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION);
216742
216742
  }
216743
216743
  const meterProvider = new MeterProvider({
216744
216744
  resource,
@@ -216758,7 +216758,7 @@ async function initializeTelemetry() {
216758
216758
  });
216759
216759
  logs.setGlobalLoggerProvider(loggerProvider);
216760
216760
  setLoggerProvider(loggerProvider);
216761
- const eventLogger = logs.getLogger("com.theus.theus_code.events", { VERSION: "0.2.63", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION);
216761
+ const eventLogger = logs.getLogger("com.theus.theus_code.events", { VERSION: "0.2.64", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION);
216762
216762
  setEventLogger(eventLogger);
216763
216763
  logForDebugging("[3P telemetry] Event logger set successfully");
216764
216764
  process.on("beforeExit", async () => {
@@ -216820,7 +216820,7 @@ Current timeout: ${timeoutMs}ms
216820
216820
  }
216821
216821
  };
216822
216822
  registerCleanup(shutdownTelemetry);
216823
- return meterProvider.getMeter("com.theus.theus_code", { VERSION: "0.2.63", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION);
216823
+ return meterProvider.getMeter("com.theus.theus_code", { VERSION: "0.2.64", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION);
216824
216824
  }
216825
216825
  async function flushTelemetry() {
216826
216826
  const meterProvider = getMeterProvider();
@@ -217362,7 +217362,7 @@ async function installOrUpdateTheusPackage(channel2, specificVersion) {
217362
217362
  return "install_failed";
217363
217363
  }
217364
217364
  const versionSpec = specificVersion ? specificVersion : channel2 === "stable" ? "stable" : "latest";
217365
- const result = await execFileNoThrowWithCwd("npm", ["install", `${{ VERSION: "0.2.63", BUILD_TIME: "1970-01-01T00:00:00.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 });
217365
+ const result = await execFileNoThrowWithCwd("npm", ["install", `${{ VERSION: "0.2.64", BUILD_TIME: "1970-01-01T00:00:00.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 });
217366
217366
  if (result.code !== 0) {
217367
217367
  const error40 = new Error(`Failed to install Theus CLI package: ${result.stderr}`);
217368
217368
  logError2(error40);
@@ -217508,9 +217508,9 @@ async function assertMinVersion() {
217508
217508
  if (false) {}
217509
217509
  try {
217510
217510
  const versionConfig = await getDynamicConfig_BLOCKS_ON_INIT("tengu_version_config", { minVersion: "0.0.0" });
217511
- if (versionConfig.minVersion && lt({ VERSION: "0.2.63", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
217511
+ if (versionConfig.minVersion && lt({ VERSION: "0.2.64", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
217512
217512
  console.error(`
217513
- It looks like your version of Theus (${{ VERSION: "0.2.63", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.
217513
+ It looks like your version of Theus (${{ VERSION: "0.2.64", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.
217514
217514
  A newer version (${versionConfig.minVersion} or higher) is required to continue.
217515
217515
 
217516
217516
  To update, please run:
@@ -217651,7 +217651,7 @@ async function getInstallationPrefix() {
217651
217651
  return prefixResult.stdout.trim();
217652
217652
  }
217653
217653
  function getGlobalInstallPackageManager() {
217654
- if ({ VERSION: "0.2.63", BUILD_TIME: "1970-01-01T00:00:00.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") {
217654
+ if ({ VERSION: "0.2.64", BUILD_TIME: "1970-01-01T00:00:00.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") {
217655
217655
  return "npm";
217656
217656
  }
217657
217657
  return env3.isRunningWithBun() ? "bun" : "npm";
@@ -217676,7 +217676,7 @@ async function checkGlobalInstallPermissions() {
217676
217676
  }
217677
217677
  async function getLatestVersion(channel2) {
217678
217678
  const npmTag = channel2 === "stable" ? "stable" : "latest";
217679
- const result = await execFileNoThrowWithCwd("npm", ["view", `${{ VERSION: "0.2.63", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.PACKAGE_URL}@${npmTag}`, "version", "--prefer-online"], { abortSignal: AbortSignal.timeout(5000), cwd: homedir18() });
217679
+ const result = await execFileNoThrowWithCwd("npm", ["view", `${{ VERSION: "0.2.64", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.PACKAGE_URL}@${npmTag}`, "version", "--prefer-online"], { abortSignal: AbortSignal.timeout(5000), cwd: homedir18() });
217680
217680
  if (result.code !== 0) {
217681
217681
  logForDebugging(`npm view failed with code ${result.code}`);
217682
217682
  if (result.stderr) {
@@ -217692,7 +217692,7 @@ async function getLatestVersion(channel2) {
217692
217692
  return result.stdout.trim();
217693
217693
  }
217694
217694
  async function getNpmDistTags() {
217695
- const result = await execFileNoThrowWithCwd("npm", ["view", { VERSION: "0.2.63", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.PACKAGE_URL, "dist-tags", "--json", "--prefer-online"], { abortSignal: AbortSignal.timeout(5000), cwd: homedir18() });
217695
+ const result = await execFileNoThrowWithCwd("npm", ["view", { VERSION: "0.2.64", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.PACKAGE_URL, "dist-tags", "--json", "--prefer-online"], { abortSignal: AbortSignal.timeout(5000), cwd: homedir18() });
217696
217696
  if (result.code !== 0) {
217697
217697
  logForDebugging(`npm view dist-tags failed with code ${result.code}`);
217698
217698
  return { latest: null, stable: null };
@@ -217732,7 +217732,7 @@ async function installGlobalPackage(specificVersion) {
217732
217732
  logError2(new AutoUpdaterError("Another process is currently installing an update"));
217733
217733
  logEvent("tengu_auto_updater_lock_contention", {
217734
217734
  pid: process.pid,
217735
- currentVersion: { VERSION: "0.2.63", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
217735
+ currentVersion: { VERSION: "0.2.64", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
217736
217736
  });
217737
217737
  return "in_progress";
217738
217738
  }
@@ -217741,7 +217741,7 @@ async function installGlobalPackage(specificVersion) {
217741
217741
  if (!env3.isRunningWithBun() && env3.isNpmFromWindowsPath()) {
217742
217742
  logError2(new Error("Windows NPM detected in WSL environment"));
217743
217743
  logEvent("tengu_auto_updater_windows_npm_in_wsl", {
217744
- currentVersion: { VERSION: "0.2.63", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
217744
+ currentVersion: { VERSION: "0.2.64", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
217745
217745
  });
217746
217746
  console.error(`
217747
217747
  Error: Windows NPM detected in WSL
@@ -217760,7 +217760,7 @@ To fix this issue:
217760
217760
  if (!hasPermissions) {
217761
217761
  return "no_permissions";
217762
217762
  }
217763
- const packageSpec = specificVersion ? `${{ VERSION: "0.2.63", BUILD_TIME: "1970-01-01T00:00:00.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.63", BUILD_TIME: "1970-01-01T00:00:00.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;
217763
+ const packageSpec = specificVersion ? `${{ VERSION: "0.2.64", BUILD_TIME: "1970-01-01T00:00:00.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.64", BUILD_TIME: "1970-01-01T00:00:00.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;
217764
217764
  const packageManager = getGlobalInstallPackageManager();
217765
217765
  const installResult = await execFileNoThrowWithCwd(packageManager, ["install", "-g", packageSpec], { cwd: homedir18() });
217766
217766
  if (installResult.code !== 0) {
@@ -218088,8 +218088,8 @@ async function detectMultipleInstallations() {
218088
218088
  installations.push({ type: "npm-local", path: localPath });
218089
218089
  }
218090
218090
  const packagesToCheck = ["@theus-ai/theus-code"];
218091
- if ({ VERSION: "0.2.63", BUILD_TIME: "1970-01-01T00:00:00.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.63", BUILD_TIME: "1970-01-01T00:00:00.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") {
218092
- packagesToCheck.push({ VERSION: "0.2.63", BUILD_TIME: "1970-01-01T00:00:00.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);
218091
+ if ({ VERSION: "0.2.64", BUILD_TIME: "1970-01-01T00:00:00.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.64", BUILD_TIME: "1970-01-01T00:00:00.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") {
218092
+ packagesToCheck.push({ VERSION: "0.2.64", BUILD_TIME: "1970-01-01T00:00:00.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);
218093
218093
  }
218094
218094
  const npmResult = await execFileNoThrow("npm", [
218095
218095
  "-g",
@@ -218272,7 +218272,7 @@ function detectLinuxGlobPatternWarnings() {
218272
218272
  }
218273
218273
  async function getDoctorDiagnostic() {
218274
218274
  const installationType = await getCurrentInstallationType();
218275
- const version2 = { VERSION: "0.2.63", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.63", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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";
218275
+ const version2 = { VERSION: "0.2.64", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.64", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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";
218276
218276
  const installationPath = await getInstallationPath();
218277
218277
  const invokedBinary = getInvokedBinary();
218278
218278
  const multipleInstallations = await detectMultipleInstallations();
@@ -218284,8 +218284,8 @@ async function getDoctorDiagnostic() {
218284
218284
  for (const install of npmInstalls) {
218285
218285
  if (install.type === "npm-global") {
218286
218286
  let uninstallCmd = "npm -g uninstall @theus-ai/theus-code";
218287
- if ({ VERSION: "0.2.63", BUILD_TIME: "1970-01-01T00:00:00.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.63", BUILD_TIME: "1970-01-01T00:00:00.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") {
218288
- uninstallCmd += ` && npm -g uninstall ${{ VERSION: "0.2.63", BUILD_TIME: "1970-01-01T00:00:00.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}`;
218287
+ if ({ VERSION: "0.2.64", BUILD_TIME: "1970-01-01T00:00:00.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.64", BUILD_TIME: "1970-01-01T00:00:00.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") {
218288
+ uninstallCmd += ` && npm -g uninstall ${{ VERSION: "0.2.64", BUILD_TIME: "1970-01-01T00:00:00.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}`;
218289
218289
  }
218290
218290
  warnings.push({
218291
218291
  issue: `Leftover npm global installation at ${install.path}`,
@@ -218397,7 +218397,7 @@ async function getLatestVersionFromArtifactory(tag2 = "latest") {
218397
218397
  const startTime2 = Date.now();
218398
218398
  const { stdout, code, stderr } = await execFileNoThrowWithCwd("npm", [
218399
218399
  "view",
218400
- `${{ VERSION: "0.2.63", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.NATIVE_PACKAGE_URL}@${tag2}`,
218400
+ `${{ VERSION: "0.2.64", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.NATIVE_PACKAGE_URL}@${tag2}`,
218401
218401
  "version",
218402
218402
  "--prefer-online",
218403
218403
  "--registry",
@@ -218421,7 +218421,7 @@ async function getLatestVersionFromArtifactory(tag2 = "latest") {
218421
218421
  latency_ms: latencyMs,
218422
218422
  source_npm: true
218423
218423
  });
218424
- logForDebugging(`npm view ${{ VERSION: "0.2.63", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.NATIVE_PACKAGE_URL}@${tag2} version: ${stdout}`);
218424
+ logForDebugging(`npm view ${{ VERSION: "0.2.64", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.NATIVE_PACKAGE_URL}@${tag2} version: ${stdout}`);
218425
218425
  const latestVersion = stdout.trim();
218426
218426
  return latestVersion;
218427
218427
  }
@@ -218477,7 +218477,7 @@ async function downloadVersionFromArtifactory(version2, stagingPath) {
218477
218477
  const fs3 = getFsImplementation();
218478
218478
  await fs3.rm(stagingPath, { recursive: true, force: true });
218479
218479
  const platform4 = getPlatform2();
218480
- const platformPackageName = `${{ VERSION: "0.2.63", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.NATIVE_PACKAGE_URL}-${platform4}`;
218480
+ const platformPackageName = `${{ VERSION: "0.2.64", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.NATIVE_PACKAGE_URL}-${platform4}`;
218481
218481
  logForDebugging(`Fetching integrity hash for ${platformPackageName}@${version2}`);
218482
218482
  const {
218483
218483
  stdout: integrityOutput,
@@ -218506,7 +218506,7 @@ async function downloadVersionFromArtifactory(version2, stagingPath) {
218506
218506
  name: "theus-native-installer",
218507
218507
  version: "0.0.1",
218508
218508
  dependencies: {
218509
- [{ VERSION: "0.2.63", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.NATIVE_PACKAGE_URL]: version2
218509
+ [{ VERSION: "0.2.64", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.NATIVE_PACKAGE_URL]: version2
218510
218510
  }
218511
218511
  };
218512
218512
  const packageLock = {
@@ -218519,10 +218519,10 @@ async function downloadVersionFromArtifactory(version2, stagingPath) {
218519
218519
  name: "theus-native-installer",
218520
218520
  version: "0.0.1",
218521
218521
  dependencies: {
218522
- [{ VERSION: "0.2.63", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.NATIVE_PACKAGE_URL]: version2
218522
+ [{ VERSION: "0.2.64", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.NATIVE_PACKAGE_URL]: version2
218523
218523
  }
218524
218524
  },
218525
- [`node_modules/${{ VERSION: "0.2.63", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.NATIVE_PACKAGE_URL}`]: {
218525
+ [`node_modules/${{ VERSION: "0.2.64", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.NATIVE_PACKAGE_URL}`]: {
218526
218526
  version: version2,
218527
218527
  optionalDependencies: {
218528
218528
  [platformPackageName]: version2
@@ -218544,7 +218544,7 @@ async function downloadVersionFromArtifactory(version2, stagingPath) {
218544
218544
  if (result.code !== 0) {
218545
218545
  throw new Error(`npm ci failed with code ${result.code}: ${result.stderr}`);
218546
218546
  }
218547
- logForDebugging(`Successfully downloaded and verified ${{ VERSION: "0.2.63", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.NATIVE_PACKAGE_URL}@${version2}`);
218547
+ logForDebugging(`Successfully downloaded and verified ${{ VERSION: "0.2.64", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.NATIVE_PACKAGE_URL}@${version2}`);
218548
218548
  }
218549
218549
  function getStallTimeoutMs() {
218550
218550
  return Number(process.env.THEUS_CODE_STALL_TIMEOUT_MS_FOR_TESTING) || DEFAULT_STALL_TIMEOUT_MS;
@@ -219207,8 +219207,8 @@ async function updateLatest(channelOrVersion, forceReinstall = false) {
219207
219207
  const maxVersion = await getMaxVersion();
219208
219208
  if (maxVersion && gt(version2, maxVersion)) {
219209
219209
  logForDebugging(`Native installer: maxVersion ${maxVersion} is set, capping update from ${version2} to ${maxVersion}`);
219210
- if (gte({ VERSION: "0.2.63", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
219211
- logForDebugging(`Native installer: current version ${{ VERSION: "0.2.63", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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`);
219210
+ if (gte({ VERSION: "0.2.64", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
219211
+ logForDebugging(`Native installer: current version ${{ VERSION: "0.2.64", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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`);
219212
219212
  logEvent("tengu_native_update_skipped_max_version", {
219213
219213
  latency_ms: Date.now() - startTime2,
219214
219214
  max_version: maxVersion,
@@ -219219,7 +219219,7 @@ async function updateLatest(channelOrVersion, forceReinstall = false) {
219219
219219
  version2 = maxVersion;
219220
219220
  }
219221
219221
  }
219222
- if (!forceReinstall && version2 === { VERSION: "0.2.63", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
219222
+ if (!forceReinstall && version2 === { VERSION: "0.2.64", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
219223
219223
  logForDebugging(`Found ${version2} at ${executablePath}, skipping install`);
219224
219224
  logEvent("tengu_native_update_complete", {
219225
219225
  latency_ms: Date.now() - startTime2,
@@ -219969,8 +219969,8 @@ async function cleanupNpmInstallations() {
219969
219969
  } else if (codePackageResult.error) {
219970
219970
  errors4.push(codePackageResult.error);
219971
219971
  }
219972
- if ({ VERSION: "0.2.63", BUILD_TIME: "1970-01-01T00:00:00.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.63", BUILD_TIME: "1970-01-01T00:00:00.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") {
219973
- const macroPackageResult = await attemptNpmUninstall({ VERSION: "0.2.63", BUILD_TIME: "1970-01-01T00:00:00.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);
219972
+ if ({ VERSION: "0.2.64", BUILD_TIME: "1970-01-01T00:00:00.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.64", BUILD_TIME: "1970-01-01T00:00:00.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") {
219973
+ const macroPackageResult = await attemptNpmUninstall({ VERSION: "0.2.64", BUILD_TIME: "1970-01-01T00:00:00.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);
219974
219974
  if (macroPackageResult.success) {
219975
219975
  removed++;
219976
219976
  if (macroPackageResult.warning) {
@@ -307609,9 +307609,9 @@ function getTheusEnvMetadata() {
307609
307609
  };
307610
307610
  }
307611
307611
  function getBuildAgeMinutes() {
307612
- if (!{ VERSION: "0.2.63", BUILD_TIME: "1970-01-01T00:00:00.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)
307612
+ if (!{ VERSION: "0.2.64", BUILD_TIME: "1970-01-01T00:00:00.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)
307613
307613
  return;
307614
- const buildTime = new Date({ VERSION: "0.2.63", BUILD_TIME: "1970-01-01T00:00:00.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();
307614
+ const buildTime = new Date({ VERSION: "0.2.64", BUILD_TIME: "1970-01-01T00:00:00.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();
307615
307615
  if (isNaN(buildTime))
307616
307616
  return;
307617
307617
  return Math.floor((Date.now() - buildTime) / 60000);
@@ -324266,7 +324266,7 @@ function getAssistantMessageFromError(error40, model, options2) {
324266
324266
  if (process.env.USER_TYPE === "ant") {
324267
324267
  const baseMessage = `API Error: 400 ${error40.message}
324268
324268
 
324269
- Run /share and post the JSON file to ${{ VERSION: "0.2.63", BUILD_TIME: "1970-01-01T00:00:00.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}.`;
324269
+ Run /share and post the JSON file to ${{ VERSION: "0.2.64", BUILD_TIME: "1970-01-01T00:00:00.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}.`;
324270
324270
  const rewindInstruction = getIsNonInteractiveSession() ? "" : " Then, use /rewind to recover the conversation.";
324271
324271
  return createAssistantAPIErrorMessage({
324272
324272
  content: baseMessage + rewindInstruction,
@@ -324302,7 +324302,7 @@ Run /share and post the JSON file to ${{ VERSION: "0.2.63", BUILD_TIME: "1970-01
324302
324302
  if (process.env.USER_TYPE === "ant" && !process.env.THEUS_MODEL && error40 instanceof Error && error40.message.toLowerCase().includes("invalid model name")) {
324303
324303
  const orgId = getOauthAccountInfo()?.organizationUuid;
324304
324304
  const baseMsg = `[THEUS-INTERNAL] Your org isn't gated into the \`${model}\` model. Either run \`theus\` with \`THEUS_MODEL=${getDefaultMainLoopModelSetting()}\``;
324305
- const msg = orgId ? `${baseMsg} or share your orgId (${orgId}) in ${{ VERSION: "0.2.63", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.FEEDBACK_CHANNEL} for help getting access.` : `${baseMsg} or reach out in ${{ VERSION: "0.2.63", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.FEEDBACK_CHANNEL} for help getting access.`;
324305
+ const msg = orgId ? `${baseMsg} or share your orgId (${orgId}) in ${{ VERSION: "0.2.64", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.FEEDBACK_CHANNEL} for help getting access.` : `${baseMsg} or reach out in ${{ VERSION: "0.2.64", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.FEEDBACK_CHANNEL} for help getting access.`;
324306
324306
  return createAssistantAPIErrorMessage({
324307
324307
  content: msg,
324308
324308
  error: "invalid_request"
@@ -332226,7 +332226,7 @@ async function submitTranscriptShare(messages, trigger, appearanceId) {
332226
332226
  } catch {}
332227
332227
  const data = {
332228
332228
  trigger,
332229
- version: { VERSION: "0.2.63", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
332229
+ version: { VERSION: "0.2.64", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
332230
332230
  platform: process.platform,
332231
332231
  transcript,
332232
332232
  subagentTranscripts: Object.keys(subagentTranscripts).length > 0 ? subagentTranscripts : undefined,
@@ -332431,10 +332431,10 @@ Si el usuario indic\xF3 una duraci\xF3n, p\xE1sala en el par\xE1metro \`duration
332431
332431
 
332432
332432
  // commands/issue/index.ts
332433
332433
  function getCliVersion() {
332434
- return { VERSION: "0.2.63", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.63", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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";
332434
+ return { VERSION: "0.2.64", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.64", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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";
332435
332435
  }
332436
332436
  function getIssuesExplainer() {
332437
- return { VERSION: "0.2.63", BUILD_TIME: "1970-01-01T00:00:00.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.63", BUILD_TIME: "1970-01-01T00:00:00.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";
332437
+ return { VERSION: "0.2.64", BUILD_TIME: "1970-01-01T00:00:00.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.64", BUILD_TIME: "1970-01-01T00:00:00.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";
332438
332438
  }
332439
332439
  function getActiveModelLabel() {
332440
332440
  try {
@@ -335267,7 +335267,7 @@ function buildPrimarySection() {
335267
335267
  });
335268
335268
  return [{
335269
335269
  label: "Version",
335270
- value: { VERSION: "0.2.63", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
335270
+ value: { VERSION: "0.2.64", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
335271
335271
  }, {
335272
335272
  label: "Session name",
335273
335273
  value: nameValue
@@ -339083,7 +339083,7 @@ function Config({
339083
339083
  }
339084
339084
  })
339085
339085
  }) : showSubmenu === "ChannelDowngrade" ? /* @__PURE__ */ jsx_runtime189.jsx(ChannelDowngradeDialog, {
339086
- currentVersion: { VERSION: "0.2.63", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
339086
+ currentVersion: { VERSION: "0.2.64", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
339087
339087
  onChoice: (choice) => {
339088
339088
  setShowSubmenu(null);
339089
339089
  setTabsHidden(false);
@@ -339095,7 +339095,7 @@ function Config({
339095
339095
  autoUpdatesChannel: "stable"
339096
339096
  };
339097
339097
  if (choice === "stay") {
339098
- newSettings.minimumVersion = { VERSION: "0.2.63", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION;
339098
+ newSettings.minimumVersion = { VERSION: "0.2.64", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION;
339099
339099
  }
339100
339100
  updateSettingsForSource("userSettings", newSettings);
339101
339101
  setSettingsData((prev_27) => ({
@@ -347000,7 +347000,7 @@ function HelpV2(t0) {
347000
347000
  let t6;
347001
347001
  if ($2[31] !== tabs) {
347002
347002
  t6 = /* @__PURE__ */ jsx_runtime217.jsx(Tabs, {
347003
- title: `Theus v${{ VERSION: "0.2.63", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION}`,
347003
+ title: `Theus v${{ VERSION: "0.2.64", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION}`,
347004
347004
  color: "professionalBlue",
347005
347005
  defaultTab: "general",
347006
347006
  children: tabs
@@ -365257,7 +365257,7 @@ function Onboarding({
365257
365257
  flexDirection: "column",
365258
365258
  children: [
365259
365259
  /* @__PURE__ */ jsx_runtime250.jsx(TheusBanner, {
365260
- version: { VERSION: "0.2.63", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
365260
+ version: { VERSION: "0.2.64", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
365261
365261
  }),
365262
365262
  /* @__PURE__ */ jsx_runtime250.jsxs(ThemedBox_default, {
365263
365263
  flexDirection: "column",
@@ -366677,9 +366677,9 @@ function getAllReleaseNotes(changelogContent = getStoredChangelogFromMemory()) {
366677
366677
  return [];
366678
366678
  }
366679
366679
  }
366680
- async function checkForReleaseNotes(lastSeenVersion, currentVersion = { VERSION: "0.2.63", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION) {
366680
+ async function checkForReleaseNotes(lastSeenVersion, currentVersion = { VERSION: "0.2.64", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION) {
366681
366681
  if (process.env.USER_TYPE === "ant") {
366682
- const changelog = { VERSION: "0.2.63", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION_CHANGELOG;
366682
+ const changelog = { VERSION: "0.2.64", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION_CHANGELOG;
366683
366683
  if (changelog) {
366684
366684
  const commits = changelog.trim().split(`
366685
366685
  `).filter(Boolean);
@@ -370881,7 +370881,7 @@ var init_Messages = __esm(() => {
370881
370881
  let t1;
370882
370882
  if ($2[0] === Symbol.for("react.memo_cache_sentinel")) {
370883
370883
  t1 = /* @__PURE__ */ jsx_runtime263.jsx(TheusSessionHeader, {
370884
- version: { VERSION: "0.2.63", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
370884
+ version: { VERSION: "0.2.64", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
370885
370885
  });
370886
370886
  $2[0] = t1;
370887
370887
  } else {
@@ -399705,7 +399705,7 @@ async function captureMemoryDiagnostics(trigger, dumpNumber = 0) {
399705
399705
  smapsRollup,
399706
399706
  platform: process.platform,
399707
399707
  nodeVersion: process.version,
399708
- ccVersion: { VERSION: "0.2.63", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
399708
+ ccVersion: { VERSION: "0.2.64", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
399709
399709
  };
399710
399710
  }
399711
399711
  async function performHeapDump(trigger = "manual", dumpNumber = 0) {
@@ -400524,7 +400524,7 @@ var init_bridge_kick = __esm(() => {
400524
400524
  var call65 = async () => {
400525
400525
  return {
400526
400526
  type: "text",
400527
- value: { VERSION: "0.2.63", BUILD_TIME: "1970-01-01T00:00:00.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.63", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.63", BUILD_TIME: "1970-01-01T00:00:00.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.63", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
400527
+ value: { VERSION: "0.2.64", BUILD_TIME: "1970-01-01T00:00:00.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.64", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.64", BUILD_TIME: "1970-01-01T00:00:00.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.64", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
400528
400528
  };
400529
400529
  }, version2, version_default;
400530
400530
  var init_version = __esm(() => {
@@ -403125,7 +403125,7 @@ var SECRET_NAME_PATTERN, EXTRA_ENV_ALLOWLIST, REDACTED2 = "\u2039oculto\u203A",
403125
403125
  const lines = [];
403126
403126
  lines.push("## Entorno de ejecuci\xF3n");
403127
403127
  lines.push("");
403128
- const version3 = { VERSION: "0.2.63", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.63", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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";
403128
+ const version3 = { VERSION: "0.2.64", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.64", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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";
403129
403129
  lines.push(`- Versi\xF3n de Theus: ${version3}`);
403130
403130
  lines.push(`- Directorio de trabajo: ${getCwd()}`);
403131
403131
  lines.push(`- \xBFRepositorio git?: ${isGit ? "s\xED" : "no"}`);
@@ -405666,13 +405666,13 @@ async function updateReleaseBundle() {
405666
405666
  await gracefulShutdown(1);
405667
405667
  return;
405668
405668
  }
405669
- if (gte({ VERSION: "0.2.63", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
405670
- writeToStdout(source_default.green(`Theus is up to date (${{ VERSION: "0.2.63", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION})`) + `
405669
+ if (gte({ VERSION: "0.2.64", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
405670
+ writeToStdout(source_default.green(`Theus is up to date (${{ VERSION: "0.2.64", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION})`) + `
405671
405671
  `);
405672
405672
  await gracefulShutdown(0);
405673
405673
  return;
405674
405674
  }
405675
- writeToStdout(`New version available: ${latest} (current: ${{ VERSION: "0.2.63", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION})
405675
+ writeToStdout(`New version available: ${latest} (current: ${{ VERSION: "0.2.64", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION})
405676
405676
  `);
405677
405677
  writeToStdout(`Installing update from theus.pe/dl...
405678
405678
  `);
@@ -405706,7 +405706,7 @@ async function updateReleaseBundle() {
405706
405706
  return;
405707
405707
  }
405708
405708
  cpSync(staged, bundleDir, { recursive: true, force: true });
405709
- writeToStdout(source_default.green(`Successfully updated from ${{ VERSION: "0.2.63", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION} to version ${latest}`) + `
405709
+ writeToStdout(source_default.green(`Successfully updated from ${{ VERSION: "0.2.64", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION} to version ${latest}`) + `
405710
405710
  `);
405711
405711
  await regenerateCompletionCache();
405712
405712
  } finally {
@@ -405719,7 +405719,7 @@ async function updateReleaseBundle() {
405719
405719
  async function update() {
405720
405720
  logEvent("tengu_update_check", {});
405721
405721
  await updateNaupa();
405722
- writeToStdout(`Current version: ${{ VERSION: "0.2.63", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION}
405722
+ writeToStdout(`Current version: ${{ VERSION: "0.2.64", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION}
405723
405723
  `);
405724
405724
  const channel2 = getInitialSettings()?.autoUpdatesChannel ?? "latest";
405725
405725
  writeToStdout(`Checking for updates to ${channel2} version...
@@ -405798,8 +405798,8 @@ async function update() {
405798
405798
  writeToStdout(`Theus is managed by Homebrew.
405799
405799
  `);
405800
405800
  const latest = await getLatestVersion(channel2);
405801
- if (latest && !gte({ VERSION: "0.2.63", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
405802
- writeToStdout(`Update available: ${{ VERSION: "0.2.63", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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}
405801
+ if (latest && !gte({ VERSION: "0.2.64", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
405802
+ writeToStdout(`Update available: ${{ VERSION: "0.2.64", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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}
405803
405803
  `);
405804
405804
  writeToStdout(`
405805
405805
  `);
@@ -405815,8 +405815,8 @@ async function update() {
405815
405815
  writeToStdout(`Theus is managed by winget.
405816
405816
  `);
405817
405817
  const latest = await getLatestVersion(channel2);
405818
- if (latest && !gte({ VERSION: "0.2.63", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
405819
- writeToStdout(`Update available: ${{ VERSION: "0.2.63", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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}
405818
+ if (latest && !gte({ VERSION: "0.2.64", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
405819
+ writeToStdout(`Update available: ${{ VERSION: "0.2.64", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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}
405820
405820
  `);
405821
405821
  writeToStdout(`
405822
405822
  `);
@@ -405832,8 +405832,8 @@ async function update() {
405832
405832
  writeToStdout(`Theus is managed by apk.
405833
405833
  `);
405834
405834
  const latest = await getLatestVersion(channel2);
405835
- if (latest && !gte({ VERSION: "0.2.63", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
405836
- writeToStdout(`Update available: ${{ VERSION: "0.2.63", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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}
405835
+ if (latest && !gte({ VERSION: "0.2.64", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
405836
+ writeToStdout(`Update available: ${{ VERSION: "0.2.64", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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}
405837
405837
  `);
405838
405838
  writeToStdout(`
405839
405839
  `);
@@ -405898,11 +405898,11 @@ async function update() {
405898
405898
  `);
405899
405899
  await gracefulShutdown(1);
405900
405900
  }
405901
- if (result.latestVersion === { VERSION: "0.2.63", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION) {
405902
- writeToStdout(source_default.green(`Theus is up to date (${{ VERSION: "0.2.63", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION})`) + `
405901
+ if (result.latestVersion === { VERSION: "0.2.64", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION) {
405902
+ writeToStdout(source_default.green(`Theus is up to date (${{ VERSION: "0.2.64", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION})`) + `
405903
405903
  `);
405904
405904
  } else {
405905
- writeToStdout(source_default.green(`Successfully updated from ${{ VERSION: "0.2.63", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION} to version ${result.latestVersion}`) + `
405905
+ writeToStdout(source_default.green(`Successfully updated from ${{ VERSION: "0.2.64", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION} to version ${result.latestVersion}`) + `
405906
405906
  `);
405907
405907
  await regenerateCompletionCache();
405908
405908
  }
@@ -405921,9 +405921,9 @@ async function update() {
405921
405921
  await removeInstalledSymlink();
405922
405922
  }
405923
405923
  logForDebugging("update: Checking npm registry for latest version");
405924
- logForDebugging(`update: Package URL: ${{ VERSION: "0.2.63", BUILD_TIME: "1970-01-01T00:00:00.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}`);
405924
+ logForDebugging(`update: Package URL: ${{ VERSION: "0.2.64", BUILD_TIME: "1970-01-01T00:00:00.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}`);
405925
405925
  const npmTag = channel2 === "stable" ? "stable" : "latest";
405926
- const npmCommand = `npm view ${{ VERSION: "0.2.63", BUILD_TIME: "1970-01-01T00:00:00.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`;
405926
+ const npmCommand = `npm view ${{ VERSION: "0.2.64", BUILD_TIME: "1970-01-01T00:00:00.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`;
405927
405927
  logForDebugging(`update: Running: ${npmCommand}`);
405928
405928
  const latestVersion = await getLatestVersion(channel2);
405929
405929
  logForDebugging(`update: Latest version from npm: ${latestVersion || "FAILED"}`);
@@ -405943,7 +405943,7 @@ async function update() {
405943
405943
  `);
405944
405944
  process.stderr.write(` \u2022 Corporate proxy/firewall blocking npm
405945
405945
  `);
405946
- if ({ VERSION: "0.2.63", BUILD_TIME: "1970-01-01T00:00:00.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.63", BUILD_TIME: "1970-01-01T00:00:00.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")) {
405946
+ if ({ VERSION: "0.2.64", BUILD_TIME: "1970-01-01T00:00:00.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.64", BUILD_TIME: "1970-01-01T00:00:00.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")) {
405947
405947
  process.stderr.write(` \u2022 Internal/development build not published to npm
405948
405948
  `);
405949
405949
  }
@@ -405955,19 +405955,19 @@ async function update() {
405955
405955
  `);
405956
405956
  process.stderr.write(` \u2022 Run with --debug flag for more details
405957
405957
  `);
405958
- const packageName = { VERSION: "0.2.63", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.PACKAGE_URL || (process.env.USER_TYPE === "ant" ? "@theus-ai/theus-cli" : "@theus-ai/theus-code");
405958
+ const packageName = { VERSION: "0.2.64", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.PACKAGE_URL || (process.env.USER_TYPE === "ant" ? "@theus-ai/theus-cli" : "@theus-ai/theus-code");
405959
405959
  process.stderr.write(` \u2022 Manually check: npm view ${packageName} version
405960
405960
  `);
405961
405961
  process.stderr.write(` \u2022 Check if you need to login: npm whoami
405962
405962
  `);
405963
405963
  await gracefulShutdown(1);
405964
405964
  }
405965
- if (gte({ VERSION: "0.2.63", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
405966
- writeToStdout(source_default.green(`Theus is up to date (${{ VERSION: "0.2.63", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION})`) + `
405965
+ if (gte({ VERSION: "0.2.64", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
405966
+ writeToStdout(source_default.green(`Theus is up to date (${{ VERSION: "0.2.64", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION})`) + `
405967
405967
  `);
405968
405968
  await gracefulShutdown(0);
405969
405969
  }
405970
- writeToStdout(`New version available: ${latestVersion} (current: ${{ VERSION: "0.2.63", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION})
405970
+ writeToStdout(`New version available: ${latestVersion} (current: ${{ VERSION: "0.2.64", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION})
405971
405971
  `);
405972
405972
  writeToStdout(`Installing update...
405973
405973
  `);
@@ -406012,7 +406012,7 @@ async function update() {
406012
406012
  logForDebugging(`update: Installation status: ${status2}`);
406013
406013
  switch (status2) {
406014
406014
  case "success":
406015
- writeToStdout(source_default.green(`Successfully updated from ${{ VERSION: "0.2.63", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION} to version ${latestVersion}`) + `
406015
+ writeToStdout(source_default.green(`Successfully updated from ${{ VERSION: "0.2.64", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION} to version ${latestVersion}`) + `
406016
406016
  `);
406017
406017
  await regenerateCompletionCache();
406018
406018
  break;
@@ -406022,7 +406022,7 @@ async function update() {
406022
406022
  if (useLocalUpdate) {
406023
406023
  process.stderr.write(`Try manually updating with:
406024
406024
  `);
406025
- process.stderr.write(` cd ~/.theus/local && npm update ${{ VERSION: "0.2.63", BUILD_TIME: "1970-01-01T00:00:00.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}
406025
+ process.stderr.write(` cd ~/.theus/local && npm update ${{ VERSION: "0.2.64", BUILD_TIME: "1970-01-01T00:00:00.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}
406026
406026
  `);
406027
406027
  } else {
406028
406028
  process.stderr.write(`Try running with sudo or fix npm permissions
@@ -406038,7 +406038,7 @@ async function update() {
406038
406038
  if (useLocalUpdate) {
406039
406039
  process.stderr.write(`Try manually updating with:
406040
406040
  `);
406041
- process.stderr.write(` cd ~/.theus/local && npm update ${{ VERSION: "0.2.63", BUILD_TIME: "1970-01-01T00:00:00.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}
406041
+ process.stderr.write(` cd ~/.theus/local && npm update ${{ VERSION: "0.2.64", BUILD_TIME: "1970-01-01T00:00:00.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}
406042
406042
  `);
406043
406043
  } else {
406044
406044
  process.stderr.write(`Or consider using native installation with: theus install
@@ -415878,7 +415878,7 @@ var init_sessionStorage = __esm(() => {
415878
415878
  init_settings2();
415879
415879
  init_slowOperations();
415880
415880
  init_uuid();
415881
- VERSION4 = { VERSION: "0.2.63", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION;
415881
+ VERSION4 = { VERSION: "0.2.64", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION;
415882
415882
  MAX_TOMBSTONE_REWRITE_BYTES = 50 * 1024 * 1024;
415883
415883
  SKIP_FIRST_PROMPT_PATTERN2 = /^(?:\s*<[a-z][\w-]*[\s>]|\[Request interrupted by user[^\]]*\])/;
415884
415884
  EPHEMERAL_PROGRESS_TYPES = new Set([
@@ -417083,7 +417083,7 @@ var init_filesystem = __esm(() => {
417083
417083
  });
417084
417084
  getBundledSkillsRoot = memoize_default(function getBundledSkillsRoot2() {
417085
417085
  const nonce = randomBytes21(16).toString("hex");
417086
- return join151(getTheusTempDir(), "bundled-skills", { VERSION: "0.2.63", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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);
417086
+ return join151(getTheusTempDir(), "bundled-skills", { VERSION: "0.2.64", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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);
417087
417087
  });
417088
417088
  getResolvedWorkingDirPaths = memoize_default(getPathsForPermissionCheck);
417089
417089
  });
@@ -422210,8 +422210,10 @@ function getInternalModelOverrideSection() {
422210
422210
  return getInternalModelOverrideConfig()?.defaultSystemPromptSuffix || null;
422211
422211
  }
422212
422212
  function getLanguageSection(languagePreference) {
422213
- if (!languagePreference)
422214
- return null;
422213
+ if (!languagePreference) {
422214
+ return `# Language
422215
+ Always respond in the same language the user writes in. If the user writes in Spanish, or their language is ambiguous or mixed, respond in Spanish \u2014 Theus is a Spanish-first product. Technical terms and code identifiers should remain in their original form.`;
422216
+ }
422215
422217
  return `# Language
422216
422218
  Always respond in ${languagePreference}. Use ${languagePreference} for all explanations, comments, and communications with the user. Technical terms and code identifiers should remain in their original form.`;
422217
422219
  }
@@ -422262,7 +422264,7 @@ function getSimpleDoingTasksSection() {
422262
422264
  ];
422263
422265
  const userHelpSubitems = [
422264
422266
  `/help: Get help with using Theus`,
422265
- `To give feedback, users should ${{ VERSION: "0.2.63", BUILD_TIME: "1970-01-01T00:00:00.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}`
422267
+ `To give feedback, users should ${{ VERSION: "0.2.64", BUILD_TIME: "1970-01-01T00:00:00.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}`
422266
422268
  ];
422267
422269
  const items = [
422268
422270
  `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.`,
@@ -423162,7 +423164,7 @@ function computeFingerprint(messageText, version3) {
423162
423164
  }
423163
423165
  function computeFingerprintFromMessages(messages) {
423164
423166
  const firstMessageText = extractFirstMessageText(messages);
423165
- return computeFingerprint(firstMessageText, { VERSION: "0.2.63", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION);
423167
+ return computeFingerprint(firstMessageText, { VERSION: "0.2.64", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION);
423166
423168
  }
423167
423169
  var FINGERPRINT_SALT = "59cf53e54c78";
423168
423170
  var init_fingerprint = () => {};
@@ -425296,14 +425298,20 @@ async function toOpenAITools(tools, options2) {
425296
425298
  ];
425297
425299
  });
425298
425300
  }
425301
+ function stripTrailingControlTokens(text) {
425302
+ return text.replace(TRAILING_CONTROL_TOKENS_RE, "");
425303
+ }
425299
425304
  function blocksFromOpenAIMessage(message) {
425300
425305
  const blocks = [];
425301
425306
  const content = message.content;
425302
425307
  if (typeof content === "string" && content.trim()) {
425303
- blocks.push({ type: "text", text: content });
425308
+ const clean = stripTrailingControlTokens(content);
425309
+ if (clean.trim()) {
425310
+ blocks.push({ type: "text", text: clean });
425311
+ }
425304
425312
  } else if (Array.isArray(content)) {
425305
- const text = content.map(contentBlockText).filter(Boolean).join(`
425306
- `);
425313
+ const text = stripTrailingControlTokens(content.map(contentBlockText).filter(Boolean).join(`
425314
+ `));
425307
425315
  if (text.trim()) {
425308
425316
  blocks.push({ type: "text", text });
425309
425317
  }
@@ -425609,8 +425617,9 @@ async function* callOpenAICompatible({
425609
425617
  yield { type: "stream_event", event };
425610
425618
  }
425611
425619
  const blocks = [];
425612
- if (text.trim()) {
425613
- blocks.push({ type: "text", text });
425620
+ const cleanText = stripTrailingControlTokens(text);
425621
+ if (cleanText.trim()) {
425622
+ blocks.push({ type: "text", text: cleanText });
425614
425623
  }
425615
425624
  const orderedToolBlocks = [...toolBlocks.values()].sort((a2, b) => a2.blockIndex - b.blockIndex);
425616
425625
  for (const block2 of orderedToolBlocks) {
@@ -425741,6 +425750,7 @@ async function* queryModelWithTheusProviders({
425741
425750
  });
425742
425751
  }
425743
425752
  }
425753
+ var TRAILING_CONTROL_TOKENS_RE;
425744
425754
  var init_theus2 = __esm(() => {
425745
425755
  init_theusEngine();
425746
425756
  init_effort();
@@ -425757,6 +425767,7 @@ var init_theus2 = __esm(() => {
425757
425767
  init_emptyUsage();
425758
425768
  init_rateLimitMessages();
425759
425769
  init_theusEngine();
425770
+ TRAILING_CONTROL_TOKENS_RE = /(?:\s*<\|(?:eom|end|return|call|endoftext|im_end|stop)\|>)+\s*$/;
425760
425771
  });
425761
425772
 
425762
425773
  // utils/sideQuery.ts
@@ -425796,7 +425807,7 @@ async function sideQuery(opts) {
425796
425807
  betas.push(STRUCTURED_OUTPUTS_BETA_HEADER);
425797
425808
  }
425798
425809
  const messageText = extractFirstUserMessageText(messages);
425799
- const fingerprint = computeFingerprint(messageText, { VERSION: "0.2.63", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION);
425810
+ const fingerprint = computeFingerprint(messageText, { VERSION: "0.2.64", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION);
425800
425811
  const attributionHeader = getAttributionHeader(fingerprint);
425801
425812
  const systemBlocks = [
425802
425813
  attributionHeader ? { type: "text", text: attributionHeader } : null,
@@ -427099,7 +427110,7 @@ async function handleMemories(state) {
427099
427110
  async function runProjectContextMcpServer() {
427100
427111
  const projectRoot = process.env.THEUS_PROJECT_ROOT || process.cwd();
427101
427112
  const state = new ProjectContextState(projectRoot);
427102
- const server2 = new Server({ name: SERVER_NAME, version: { VERSION: "0.2.63", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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: {} } });
427113
+ const server2 = new Server({ name: SERVER_NAME, version: { VERSION: "0.2.64", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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: {} } });
427103
427114
  server2.setRequestHandler(ListToolsRequestSchema, async () => ({
427104
427115
  tools: TOOL_DEFINITIONS.map((t) => ({
427105
427116
  name: t.name,
@@ -429776,7 +429787,7 @@ async function runTitanFleetWorker(args) {
429776
429787
  max_concurrency: maxConcurrency,
429777
429788
  runtime: {
429778
429789
  name: "theus-cli",
429779
- version: { VERSION: "0.2.63", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
429790
+ version: { VERSION: "0.2.64", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
429780
429791
  }
429781
429792
  });
429782
429793
  const client2 = new TitanFleetClient({
@@ -431670,7 +431681,7 @@ function createBridgeLogger(options2) {
431670
431681
  connectUrl = buildBridgeConnectUrl(environmentId, cachedIngressUrl);
431671
431682
  regenerateQr(connectUrl);
431672
431683
  if (verbose) {
431673
- write(source_default.dim(`Remote Control`) + ` v${{ VERSION: "0.2.63", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION}
431684
+ write(source_default.dim(`Remote Control`) + ` v${{ VERSION: "0.2.64", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION}
431674
431685
  `);
431675
431686
  }
431676
431687
  if (verbose) {
@@ -432643,7 +432654,7 @@ function appendToLog(path19, message) {
432643
432654
  cwd: getFsImplementation().cwd(),
432644
432655
  userType: process.env.USER_TYPE,
432645
432656
  sessionId: getSessionId(),
432646
- version: { VERSION: "0.2.63", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
432657
+ version: { VERSION: "0.2.64", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
432647
432658
  };
432648
432659
  getLogWriter(path19).write(messageWithTimestamp);
432649
432660
  }
@@ -433913,7 +433924,7 @@ Spawn mode for this project:
433913
433924
  const api2 = createBridgeApiClient({
433914
433925
  baseUrl,
433915
433926
  getAccessToken: getBridgeAccessToken2,
433916
- runnerVersion: { VERSION: "0.2.63", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
433927
+ runnerVersion: { VERSION: "0.2.64", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
433917
433928
  onDebug: logForDebugging,
433918
433929
  onAuth401: handleOAuth401Error2,
433919
433930
  getTrustedDeviceToken
@@ -434151,7 +434162,7 @@ async function runBridgeHeadless(opts, signal) {
434151
434162
  const api2 = createBridgeApiClient({
434152
434163
  baseUrl,
434153
434164
  getAccessToken: opts.getAccessToken,
434154
- runnerVersion: { VERSION: "0.2.63", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
434165
+ runnerVersion: { VERSION: "0.2.64", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
434155
434166
  onDebug: log2,
434156
434167
  onAuth401: opts.onAuth401,
434157
434168
  getTrustedDeviceToken
@@ -438217,7 +438228,7 @@ function buildSystemInitMessage(inputs) {
438217
438228
  slash_commands: inputs.commands.filter((c5) => c5.userInvocable !== false).map((c5) => c5.name),
438218
438229
  apiKeySource: getTheusApiKeyWithSource().source,
438219
438230
  betas: getSdkBetas(),
438220
- theus_code_version: { VERSION: "0.2.63", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
438231
+ theus_code_version: { VERSION: "0.2.64", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
438221
438232
  output_style: outputStyle2,
438222
438233
  agents: inputs.agents.map((agent) => agent.agentType),
438223
438234
  skills: inputs.skills.filter((s) => s.userInvocable !== false).map((skill) => skill.name),
@@ -438257,8 +438268,8 @@ async function getEnvLessBridgeConfig() {
438257
438268
  }
438258
438269
  async function checkEnvLessBridgeMinVersion() {
438259
438270
  const cfg = await getEnvLessBridgeConfig();
438260
- if (cfg.min_version && lt({ VERSION: "0.2.63", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
438261
- return `Your version of Theus (${{ VERSION: "0.2.63", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.
438271
+ if (cfg.min_version && lt({ VERSION: "0.2.64", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
438272
+ return `Your version of Theus (${{ VERSION: "0.2.64", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.
438262
438273
  Version ${cfg.min_version} or higher is required. Run \`theus update\` to update.`;
438263
438274
  }
438264
438275
  return null;
@@ -440582,7 +440593,7 @@ async function initBridgeCore(params) {
440582
440593
  const rawApi = createBridgeApiClient({
440583
440594
  baseUrl,
440584
440595
  getAccessToken,
440585
- runnerVersion: { VERSION: "0.2.63", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
440596
+ runnerVersion: { VERSION: "0.2.64", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
440586
440597
  onDebug: logForDebugging,
440587
440598
  onAuth401,
440588
440599
  getTrustedDeviceToken
@@ -457326,7 +457337,7 @@ var init_useVoiceEnabled = __esm(() => {
457326
457337
  function getSemverPart(version3) {
457327
457338
  return `${import_semver14.major(version3, { loose: true })}.${import_semver14.minor(version3, { loose: true })}.${import_semver14.patch(version3, { loose: true })}`;
457328
457339
  }
457329
- function useUpdateNotification(updatedVersion, initialVersion = { VERSION: "0.2.63", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION) {
457340
+ function useUpdateNotification(updatedVersion, initialVersion = { VERSION: "0.2.64", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION) {
457330
457341
  const [lastNotifiedSemver, setLastNotifiedSemver] = import_react234.useState(() => getSemverPart(initialVersion));
457331
457342
  if (!updatedVersion) {
457332
457343
  return null;
@@ -457366,7 +457377,7 @@ function AutoUpdater({
457366
457377
  return;
457367
457378
  }
457368
457379
  if (false) {}
457369
- const currentVersion = { VERSION: "0.2.63", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION;
457380
+ const currentVersion = { VERSION: "0.2.64", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION;
457370
457381
  const channel2 = getInitialSettings()?.autoUpdatesChannel ?? "latest";
457371
457382
  let latestVersion = await getLatestVersion(channel2);
457372
457383
  const isDisabled2 = isAutoUpdaterDisabled();
@@ -457502,7 +457513,7 @@ function AutoUpdater({
457502
457513
  " ",
457503
457514
  /* @__PURE__ */ jsx_runtime409.jsx(ThemedText, {
457504
457515
  bold: true,
457505
- children: hasLocalInstall ? `cd ~/.theus/local && npm update ${{ VERSION: "0.2.63", BUILD_TIME: "1970-01-01T00:00:00.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.63", BUILD_TIME: "1970-01-01T00:00:00.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}`
457516
+ children: hasLocalInstall ? `cd ~/.theus/local && npm update ${{ VERSION: "0.2.64", BUILD_TIME: "1970-01-01T00:00:00.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.64", BUILD_TIME: "1970-01-01T00:00:00.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}`
457506
457517
  })
457507
457518
  ]
457508
457519
  })
@@ -457579,12 +457590,12 @@ function NativeAutoUpdater({
457579
457590
  logEvent("tengu_native_auto_updater_start", {});
457580
457591
  try {
457581
457592
  const maxVersion = await getMaxVersion();
457582
- if (maxVersion && gt({ VERSION: "0.2.63", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
457593
+ if (maxVersion && gt({ VERSION: "0.2.64", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
457583
457594
  const msg = await getMaxVersionMessage();
457584
457595
  setMaxVersionIssue(msg ?? "affects your version");
457585
457596
  }
457586
457597
  const result = await installLatest(channel2);
457587
- const currentVersion = { VERSION: "0.2.63", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION;
457598
+ const currentVersion = { VERSION: "0.2.64", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION;
457588
457599
  const latencyMs = Date.now() - startTime2;
457589
457600
  if (result.lockFailed) {
457590
457601
  logEvent("tengu_native_auto_updater_lock_contention", {
@@ -457721,17 +457732,17 @@ function PackageManagerAutoUpdater(t0) {
457721
457732
  const maxVersion = await getMaxVersion();
457722
457733
  if (maxVersion && latest && gt(latest, maxVersion)) {
457723
457734
  logForDebugging(`PackageManagerAutoUpdater: maxVersion ${maxVersion} is set, capping update from ${latest} to ${maxVersion}`);
457724
- if (gte({ VERSION: "0.2.63", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
457725
- logForDebugging(`PackageManagerAutoUpdater: current version ${{ VERSION: "0.2.63", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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`);
457735
+ if (gte({ VERSION: "0.2.64", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
457736
+ logForDebugging(`PackageManagerAutoUpdater: current version ${{ VERSION: "0.2.64", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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`);
457726
457737
  setUpdateAvailable(false);
457727
457738
  return;
457728
457739
  }
457729
457740
  latest = maxVersion;
457730
457741
  }
457731
- const hasUpdate = latest && !gte({ VERSION: "0.2.63", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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);
457742
+ const hasUpdate = latest && !gte({ VERSION: "0.2.64", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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);
457732
457743
  setUpdateAvailable(!!hasUpdate);
457733
457744
  if (hasUpdate) {
457734
- logForDebugging(`PackageManagerAutoUpdater: Update available ${{ VERSION: "0.2.63", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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}`);
457745
+ logForDebugging(`PackageManagerAutoUpdater: Update available ${{ VERSION: "0.2.64", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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}`);
457735
457746
  }
457736
457747
  };
457737
457748
  $2[0] = t1;
@@ -457765,7 +457776,7 @@ function PackageManagerAutoUpdater(t0) {
457765
457776
  wrap: "truncate",
457766
457777
  children: [
457767
457778
  "currentVersion: ",
457768
- { VERSION: "0.2.63", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
457779
+ { VERSION: "0.2.64", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
457769
457780
  ]
457770
457781
  });
457771
457782
  $2[3] = verbose;
@@ -465639,7 +465650,7 @@ function buildStatusLineCommandInput(permissionMode2, exceeds200kTokens, setting
465639
465650
  project_dir: getOriginalCwd(),
465640
465651
  added_dirs: addedDirs
465641
465652
  },
465642
- version: { VERSION: "0.2.63", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
465653
+ version: { VERSION: "0.2.64", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
465643
465654
  output_style: {
465644
465655
  name: outputStyleName
465645
465656
  },
@@ -489975,7 +489986,7 @@ function completeOnboarding() {
489975
489986
  saveGlobalConfig((current) => ({
489976
489987
  ...current,
489977
489988
  hasCompletedOnboarding: true,
489978
- lastOnboardingVersion: { VERSION: "0.2.63", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
489989
+ lastOnboardingVersion: { VERSION: "0.2.64", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
489979
489990
  }));
489980
489991
  }
489981
489992
  function showDialog(root2, renderer) {
@@ -500988,7 +500999,7 @@ async function startMCPServer(cwd3, debug3, verbose) {
500988
500999
  setCwd(cwd3);
500989
501000
  const server2 = new Server({
500990
501001
  name: "theus/tengu",
500991
- version: { VERSION: "0.2.63", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
501002
+ version: { VERSION: "0.2.64", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
500992
501003
  }, {
500993
501004
  capabilities: {
500994
501005
  tools: {}
@@ -502430,7 +502441,7 @@ async function setupTokenHandler(root2) {
502430
502441
  gap: 1,
502431
502442
  children: [
502432
502443
  /* @__PURE__ */ jsx_runtime495.jsx(TheusBanner, {
502433
- version: { VERSION: "0.2.63", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
502444
+ version: { VERSION: "0.2.64", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
502434
502445
  }),
502435
502446
  showAuthWarning && /* @__PURE__ */ jsx_runtime495.jsxs(ThemedBox_default, {
502436
502447
  flexDirection: "column",
@@ -503912,7 +503923,7 @@ ${assistantAddendum}` : assistantAddendum;
503912
503923
  }
503913
503924
  }
503914
503925
  logForDiagnosticsNoPII("info", "started", {
503915
- version: { VERSION: "0.2.63", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
503926
+ version: { VERSION: "0.2.64", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
503916
503927
  is_native_binary: isInBundledMode()
503917
503928
  });
503918
503929
  registerCleanup(async () => {
@@ -504780,7 +504791,7 @@ Usage: theus --remote "your task description"`, () => gracefulShutdown(1));
504780
504791
  pendingHookMessages
504781
504792
  }, renderAndRun);
504782
504793
  }
504783
- }).version(`${{ VERSION: "0.2.63", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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");
504794
+ }).version(`${{ VERSION: "0.2.64", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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");
504784
504795
  program2.option("-w, --worktree [name]", "Crea un nuevo worktree de git para esta sesi\xF3n (opcionalmente indica un nombre)");
504785
504796
  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.");
504786
504797
  if (canUserConfigureAdvisor()) {
@@ -505367,7 +505378,7 @@ if (false) {}
505367
505378
  async function main2() {
505368
505379
  const args = process.argv.slice(2);
505369
505380
  if (args.length === 1 && (args[0] === "--version" || args[0] === "-v" || args[0] === "-V")) {
505370
- console.log(`${{ VERSION: "0.2.63", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)`);
505381
+ console.log(`${{ VERSION: "0.2.64", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)`);
505371
505382
  return;
505372
505383
  }
505373
505384
  const {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "theus-cli",
3
- "version": "0.2.63",
3
+ "version": "0.2.64",
4
4
  "description": "Theus — agente local-first multimodelo con memoria, grafo y decisiones verificables",
5
5
  "type": "module",
6
6
  "bin": {