theus-cli 0.2.6 → 0.2.7

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 +151 -119
  2. package/package.json +1 -1
package/cli.js CHANGED
@@ -58285,7 +58285,7 @@ async function _executeApiKeyHelper(isNonInteractiveSession) {
58285
58285
  if (isApiKeyHelperFromProjectOrLocalSettings()) {
58286
58286
  const hasTrust = checkHasTrustDialogAccepted();
58287
58287
  if (!hasTrust && !isNonInteractiveSession) {
58288
- const error40 = new Error(`Security: apiKeyHelper executed before workspace trust is confirmed. If you see this message, post in ${{ VERSION: "0.2.6", BUILD_TIME: "1970-01-01T00:00:00.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}.`);
58288
+ const error40 = new Error(`Security: apiKeyHelper executed before workspace trust is confirmed. If you see this message, post in ${{ VERSION: "0.2.7", BUILD_TIME: "1970-01-01T00:00:00.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}.`);
58289
58289
  logAntError("apiKeyHelper invoked before trust check", error40);
58290
58290
  logEvent("tengu_apiKeyHelper_missing_trust11", {});
58291
58291
  return null;
@@ -58329,7 +58329,7 @@ async function runAwsAuthRefresh() {
58329
58329
  if (isAwsAuthRefreshFromProjectSettings()) {
58330
58330
  const hasTrust = checkHasTrustDialogAccepted();
58331
58331
  if (!hasTrust && !getIsNonInteractiveSession()) {
58332
- const error40 = new Error(`Security: awsAuthRefresh executed before workspace trust is confirmed. If you see this message, post in ${{ VERSION: "0.2.6", BUILD_TIME: "1970-01-01T00:00:00.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}.`);
58332
+ const error40 = new Error(`Security: awsAuthRefresh executed before workspace trust is confirmed. If you see this message, post in ${{ VERSION: "0.2.7", BUILD_TIME: "1970-01-01T00:00:00.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}.`);
58333
58333
  logAntError("awsAuthRefresh invoked before trust check", error40);
58334
58334
  logEvent("tengu_awsAuthRefresh_missing_trust", {});
58335
58335
  return false;
@@ -58389,7 +58389,7 @@ async function getAwsCredsFromCredentialExport() {
58389
58389
  if (isAwsCredentialExportFromProjectSettings()) {
58390
58390
  const hasTrust = checkHasTrustDialogAccepted();
58391
58391
  if (!hasTrust && !getIsNonInteractiveSession()) {
58392
- const error40 = new Error(`Security: awsCredentialExport executed before workspace trust is confirmed. If you see this message, post in ${{ VERSION: "0.2.6", BUILD_TIME: "1970-01-01T00:00:00.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}.`);
58392
+ const error40 = new Error(`Security: awsCredentialExport executed before workspace trust is confirmed. If you see this message, post in ${{ VERSION: "0.2.7", BUILD_TIME: "1970-01-01T00:00:00.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}.`);
58393
58393
  logAntError("awsCredentialExport invoked before trust check", error40);
58394
58394
  logEvent("tengu_awsCredentialExport_missing_trust", {});
58395
58395
  return null;
@@ -58474,7 +58474,7 @@ async function runGcpAuthRefresh() {
58474
58474
  if (isGcpAuthRefreshFromProjectSettings()) {
58475
58475
  const hasTrust = checkHasTrustDialogAccepted();
58476
58476
  if (!hasTrust && !getIsNonInteractiveSession()) {
58477
- const error40 = new Error(`Security: gcpAuthRefresh executed before workspace trust is confirmed. If you see this message, post in ${{ VERSION: "0.2.6", BUILD_TIME: "1970-01-01T00:00:00.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}.`);
58477
+ const error40 = new Error(`Security: gcpAuthRefresh executed before workspace trust is confirmed. If you see this message, post in ${{ VERSION: "0.2.7", BUILD_TIME: "1970-01-01T00:00:00.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}.`);
58478
58478
  logAntError("gcpAuthRefresh invoked before trust check", error40);
58479
58479
  logEvent("tengu_gcpAuthRefresh_missing_trust", {});
58480
58480
  return false;
@@ -59169,7 +59169,7 @@ var init_auth = __esm(() => {
59169
59169
 
59170
59170
  // utils/userAgent.ts
59171
59171
  function getTheusCodeUserAgent() {
59172
- return `theus-code/${{ VERSION: "0.2.6", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION}`;
59172
+ return `theus-code/${{ VERSION: "0.2.7", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION}`;
59173
59173
  }
59174
59174
 
59175
59175
  // utils/workloadContext.ts
@@ -59191,7 +59191,7 @@ function getUserAgent() {
59191
59191
  const clientApp = process.env.THEUS_AGENT_SDK_CLIENT_APP ? `, client-app/${process.env.THEUS_AGENT_SDK_CLIENT_APP}` : "";
59192
59192
  const workload = getWorkload();
59193
59193
  const workloadSuffix = workload ? `, workload/${workload}` : "";
59194
- return `theus-cli/${{ VERSION: "0.2.6", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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})`;
59194
+ return `theus-cli/${{ VERSION: "0.2.7", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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})`;
59195
59195
  }
59196
59196
  function getMCPUserAgent() {
59197
59197
  const parts = [];
@@ -59205,7 +59205,7 @@ function getMCPUserAgent() {
59205
59205
  parts.push(`client-app/${process.env.THEUS_AGENT_SDK_CLIENT_APP}`);
59206
59206
  }
59207
59207
  const suffix = parts.length > 0 ? ` (${parts.join(", ")})` : "";
59208
- return `theus-code/${{ VERSION: "0.2.6", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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}`;
59208
+ return `theus-code/${{ VERSION: "0.2.7", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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}`;
59209
59209
  }
59210
59210
  function getWebFetchUserAgent() {
59211
59211
  return `Theus-User (${getTheusCodeUserAgent()}; +https://support.theus.pe/)`;
@@ -59343,7 +59343,7 @@ var init_user = __esm(() => {
59343
59343
  deviceId,
59344
59344
  sessionId: getSessionId(),
59345
59345
  email: getEmail(),
59346
- appVersion: { VERSION: "0.2.6", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
59346
+ appVersion: { VERSION: "0.2.7", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
59347
59347
  platform: getHostPlatformForAnalytics(),
59348
59348
  organizationUuid,
59349
59349
  accountUuid,
@@ -61058,7 +61058,7 @@ var init_metadata = __esm(() => {
61058
61058
  COMPOUND_OPERATOR_REGEX = /\s*(?:&&|\|\||[;|])\s*/;
61059
61059
  WHITESPACE_REGEX = /\s+/;
61060
61060
  getVersionBase = memoize_default(() => {
61061
- const match = { VERSION: "0.2.6", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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]+)?/);
61061
+ const match = { VERSION: "0.2.7", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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]+)?/);
61062
61062
  return match ? match[0] : undefined;
61063
61063
  });
61064
61064
  buildEnvContext = memoize_default(async () => {
@@ -61098,9 +61098,9 @@ var init_metadata = __esm(() => {
61098
61098
  isGithubAction: isEnvTruthy(process.env.GITHUB_ACTIONS),
61099
61099
  isTheusCodeAction: isEnvTruthy(process.env.THEUS_CODE_ACTION),
61100
61100
  isTheusAiAuth: isTheusAISubscriber(),
61101
- version: { VERSION: "0.2.6", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
61101
+ version: { VERSION: "0.2.7", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
61102
61102
  versionBase: getVersionBase(),
61103
- buildTime: { VERSION: "0.2.6", BUILD_TIME: "1970-01-01T00:00:00.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,
61103
+ buildTime: { VERSION: "0.2.7", BUILD_TIME: "1970-01-01T00:00:00.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,
61104
61104
  deploymentEnvironment: env3.detectDeploymentEnvironment(),
61105
61105
  ...isEnvTruthy(process.env.GITHUB_ACTIONS) && {
61106
61106
  githubEventName: process.env.GITHUB_EVENT_NAME,
@@ -61766,7 +61766,7 @@ function initialize1PEventLogging() {
61766
61766
  const platform2 = getPlatform();
61767
61767
  const attributes = {
61768
61768
  [ATTR_SERVICE_NAME]: "theus-code",
61769
- [ATTR_SERVICE_VERSION]: { VERSION: "0.2.6", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
61769
+ [ATTR_SERVICE_VERSION]: { VERSION: "0.2.7", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
61770
61770
  };
61771
61771
  if (platform2 === "wsl") {
61772
61772
  const wslVersion = getWslVersion();
@@ -61793,7 +61793,7 @@ function initialize1PEventLogging() {
61793
61793
  })
61794
61794
  ]
61795
61795
  });
61796
- firstPartyEventLogger = firstPartyEventLoggerProvider.getLogger("com.theus.theus_code.events", { VERSION: "0.2.6", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION);
61796
+ firstPartyEventLogger = firstPartyEventLoggerProvider.getLogger("com.theus.theus_code.events", { VERSION: "0.2.7", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION);
61797
61797
  }
61798
61798
  async function reinitialize1PEventLoggingIfConfigChanged() {
61799
61799
  if (!is1PEventLoggingEnabled() || !firstPartyEventLoggerProvider) {
@@ -63664,7 +63664,7 @@ function getAttributionHeader(fingerprint) {
63664
63664
  if (!isAttributionHeaderEnabled()) {
63665
63665
  return "";
63666
63666
  }
63667
- const version2 = `${{ VERSION: "0.2.6", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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}`;
63667
+ const version2 = `${{ VERSION: "0.2.7", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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}`;
63668
63668
  const entrypoint = process.env.THEUS_CODE_ENTRYPOINT ?? "unknown";
63669
63669
  const cch = "";
63670
63670
  const workload = getWorkload();
@@ -107720,7 +107720,7 @@ Complete the user's request by providing accurate, documentation-based guidance.
107720
107720
  }
107721
107721
  function getFeedbackGuideline() {
107722
107722
  if (isUsing3PServices()) {
107723
- return `- When you cannot find an answer or the feature doesn't exist, direct the user to ${{ VERSION: "0.2.6", BUILD_TIME: "1970-01-01T00:00:00.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}`;
107723
+ return `- When you cannot find an answer or the feature doesn't exist, direct the user to ${{ VERSION: "0.2.7", BUILD_TIME: "1970-01-01T00:00:00.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}`;
107724
107724
  }
107725
107725
  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";
107726
107726
  }
@@ -166422,7 +166422,7 @@ function getTelemetryAttributes() {
166422
166422
  attributes["session.id"] = sessionId;
166423
166423
  }
166424
166424
  if (shouldIncludeAttribute("OTEL_METRICS_INCLUDE_VERSION")) {
166425
- attributes["app.version"] = { VERSION: "0.2.6", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION;
166425
+ attributes["app.version"] = { VERSION: "0.2.7", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION;
166426
166426
  }
166427
166427
  const oauthAccount = getOauthAccountInfo();
166428
166428
  if (oauthAccount) {
@@ -202469,7 +202469,7 @@ function getInstallationEnv() {
202469
202469
  return;
202470
202470
  }
202471
202471
  function getTheusCodeVersion() {
202472
- return { VERSION: "0.2.6", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION;
202472
+ return { VERSION: "0.2.7", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION;
202473
202473
  }
202474
202474
  async function getInstalledVSCodeExtensionVersion(command) {
202475
202475
  const { stdout } = await execFileNoThrow(command, ["--list-extensions", "--show-versions"], {
@@ -203987,7 +203987,7 @@ async function getMcpHeadersFromHelper(serverName, config2) {
203987
203987
  if ("scope" in config2 && isMcpServerFromProjectOrLocalSettings(config2) && !getIsNonInteractiveSession()) {
203988
203988
  const hasTrust = checkHasTrustDialogAccepted();
203989
203989
  if (!hasTrust) {
203990
- 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.6", BUILD_TIME: "1970-01-01T00:00:00.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}.`);
203990
+ 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.7", BUILD_TIME: "1970-01-01T00:00:00.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}.`);
203991
203991
  logAntError("MCP headersHelper invoked before trust check", error40);
203992
203992
  logEvent("tengu_mcp_headersHelper_missing_trust", {});
203993
203993
  return null;
@@ -205197,7 +205197,7 @@ async function setupSdkMcpClients(sdkMcpConfigs, sendMcpMessage) {
205197
205197
  const client2 = new Client({
205198
205198
  name: "theus-code",
205199
205199
  title: "Theus",
205200
- version: { VERSION: "0.2.6", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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",
205200
+ version: { VERSION: "0.2.7", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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",
205201
205201
  description: "Theus's agentic coding tool",
205202
205202
  websiteUrl: PRODUCT_URL
205203
205203
  }, {
@@ -205551,7 +205551,7 @@ var init_client5 = __esm(() => {
205551
205551
  const client2 = new Client({
205552
205552
  name: "theus-code",
205553
205553
  title: "Theus",
205554
- version: { VERSION: "0.2.6", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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",
205554
+ version: { VERSION: "0.2.7", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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",
205555
205555
  description: "Theus's agentic coding tool",
205556
205556
  websiteUrl: PRODUCT_URL
205557
205557
  }, {
@@ -216110,7 +216110,7 @@ async function initializeBetaTracing(resource) {
216110
216110
  });
216111
216111
  logs.setGlobalLoggerProvider(loggerProvider);
216112
216112
  setLoggerProvider(loggerProvider);
216113
- const eventLogger = logs.getLogger("com.theus.theus_code.events", { VERSION: "0.2.6", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION);
216113
+ const eventLogger = logs.getLogger("com.theus.theus_code.events", { VERSION: "0.2.7", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION);
216114
216114
  setEventLogger(eventLogger);
216115
216115
  process.on("beforeExit", async () => {
216116
216116
  await loggerProvider?.forceFlush();
@@ -216150,7 +216150,7 @@ async function initializeTelemetry() {
216150
216150
  const platform4 = getPlatform();
216151
216151
  const baseAttributes = {
216152
216152
  [ATTR_SERVICE_NAME]: "theus-code",
216153
- [ATTR_SERVICE_VERSION]: { VERSION: "0.2.6", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
216153
+ [ATTR_SERVICE_VERSION]: { VERSION: "0.2.7", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
216154
216154
  };
216155
216155
  if (platform4 === "wsl") {
216156
216156
  const wslVersion = getWslVersion();
@@ -216195,7 +216195,7 @@ async function initializeTelemetry() {
216195
216195
  } catch {}
216196
216196
  };
216197
216197
  registerCleanup(shutdownTelemetry2);
216198
- return meterProvider2.getMeter("com.theus.theus_code", { VERSION: "0.2.6", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION);
216198
+ return meterProvider2.getMeter("com.theus.theus_code", { VERSION: "0.2.7", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION);
216199
216199
  }
216200
216200
  const meterProvider = new MeterProvider({
216201
216201
  resource,
@@ -216215,7 +216215,7 @@ async function initializeTelemetry() {
216215
216215
  });
216216
216216
  logs.setGlobalLoggerProvider(loggerProvider);
216217
216217
  setLoggerProvider(loggerProvider);
216218
- const eventLogger = logs.getLogger("com.theus.theus_code.events", { VERSION: "0.2.6", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION);
216218
+ const eventLogger = logs.getLogger("com.theus.theus_code.events", { VERSION: "0.2.7", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION);
216219
216219
  setEventLogger(eventLogger);
216220
216220
  logForDebugging("[3P telemetry] Event logger set successfully");
216221
216221
  process.on("beforeExit", async () => {
@@ -216277,7 +216277,7 @@ Current timeout: ${timeoutMs}ms
216277
216277
  }
216278
216278
  };
216279
216279
  registerCleanup(shutdownTelemetry);
216280
- return meterProvider.getMeter("com.theus.theus_code", { VERSION: "0.2.6", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION);
216280
+ return meterProvider.getMeter("com.theus.theus_code", { VERSION: "0.2.7", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION);
216281
216281
  }
216282
216282
  async function flushTelemetry() {
216283
216283
  const meterProvider = getMeterProvider();
@@ -216817,7 +216817,7 @@ async function installOrUpdateTheusPackage(channel2, specificVersion) {
216817
216817
  return "install_failed";
216818
216818
  }
216819
216819
  const versionSpec = specificVersion ? specificVersion : channel2 === "stable" ? "stable" : "latest";
216820
- const result = await execFileNoThrowWithCwd("npm", ["install", `${{ VERSION: "0.2.6", BUILD_TIME: "1970-01-01T00:00:00.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 });
216820
+ const result = await execFileNoThrowWithCwd("npm", ["install", `${{ VERSION: "0.2.7", BUILD_TIME: "1970-01-01T00:00:00.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 });
216821
216821
  if (result.code !== 0) {
216822
216822
  const error40 = new Error(`Failed to install Theus CLI package: ${result.stderr}`);
216823
216823
  logError2(error40);
@@ -216963,9 +216963,9 @@ async function assertMinVersion() {
216963
216963
  if (false) {}
216964
216964
  try {
216965
216965
  const versionConfig = await getDynamicConfig_BLOCKS_ON_INIT("tengu_version_config", { minVersion: "0.0.0" });
216966
- if (versionConfig.minVersion && lt({ VERSION: "0.2.6", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
216966
+ if (versionConfig.minVersion && lt({ VERSION: "0.2.7", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
216967
216967
  console.error(`
216968
- It looks like your version of Theus (${{ VERSION: "0.2.6", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.
216968
+ It looks like your version of Theus (${{ VERSION: "0.2.7", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.
216969
216969
  A newer version (${versionConfig.minVersion} or higher) is required to continue.
216970
216970
 
216971
216971
  To update, please run:
@@ -217106,7 +217106,7 @@ async function getInstallationPrefix() {
217106
217106
  return prefixResult.stdout.trim();
217107
217107
  }
217108
217108
  function getGlobalInstallPackageManager() {
217109
- if ({ VERSION: "0.2.6", BUILD_TIME: "1970-01-01T00:00:00.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") {
217109
+ if ({ VERSION: "0.2.7", BUILD_TIME: "1970-01-01T00:00:00.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") {
217110
217110
  return "npm";
217111
217111
  }
217112
217112
  return env3.isRunningWithBun() ? "bun" : "npm";
@@ -217131,7 +217131,7 @@ async function checkGlobalInstallPermissions() {
217131
217131
  }
217132
217132
  async function getLatestVersion(channel2) {
217133
217133
  const npmTag = channel2 === "stable" ? "stable" : "latest";
217134
- const result = await execFileNoThrowWithCwd("npm", ["view", `${{ VERSION: "0.2.6", BUILD_TIME: "1970-01-01T00:00:00.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() });
217134
+ const result = await execFileNoThrowWithCwd("npm", ["view", `${{ VERSION: "0.2.7", BUILD_TIME: "1970-01-01T00:00:00.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() });
217135
217135
  if (result.code !== 0) {
217136
217136
  logForDebugging(`npm view failed with code ${result.code}`);
217137
217137
  if (result.stderr) {
@@ -217147,7 +217147,7 @@ async function getLatestVersion(channel2) {
217147
217147
  return result.stdout.trim();
217148
217148
  }
217149
217149
  async function getNpmDistTags() {
217150
- const result = await execFileNoThrowWithCwd("npm", ["view", { VERSION: "0.2.6", BUILD_TIME: "1970-01-01T00:00:00.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() });
217150
+ const result = await execFileNoThrowWithCwd("npm", ["view", { VERSION: "0.2.7", BUILD_TIME: "1970-01-01T00:00:00.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() });
217151
217151
  if (result.code !== 0) {
217152
217152
  logForDebugging(`npm view dist-tags failed with code ${result.code}`);
217153
217153
  return { latest: null, stable: null };
@@ -217187,7 +217187,7 @@ async function installGlobalPackage(specificVersion) {
217187
217187
  logError2(new AutoUpdaterError("Another process is currently installing an update"));
217188
217188
  logEvent("tengu_auto_updater_lock_contention", {
217189
217189
  pid: process.pid,
217190
- currentVersion: { VERSION: "0.2.6", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
217190
+ currentVersion: { VERSION: "0.2.7", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
217191
217191
  });
217192
217192
  return "in_progress";
217193
217193
  }
@@ -217196,7 +217196,7 @@ async function installGlobalPackage(specificVersion) {
217196
217196
  if (!env3.isRunningWithBun() && env3.isNpmFromWindowsPath()) {
217197
217197
  logError2(new Error("Windows NPM detected in WSL environment"));
217198
217198
  logEvent("tengu_auto_updater_windows_npm_in_wsl", {
217199
- currentVersion: { VERSION: "0.2.6", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
217199
+ currentVersion: { VERSION: "0.2.7", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
217200
217200
  });
217201
217201
  console.error(`
217202
217202
  Error: Windows NPM detected in WSL
@@ -217215,7 +217215,7 @@ To fix this issue:
217215
217215
  if (!hasPermissions) {
217216
217216
  return "no_permissions";
217217
217217
  }
217218
- const packageSpec = specificVersion ? `${{ VERSION: "0.2.6", BUILD_TIME: "1970-01-01T00:00:00.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.6", BUILD_TIME: "1970-01-01T00:00:00.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;
217218
+ const packageSpec = specificVersion ? `${{ VERSION: "0.2.7", BUILD_TIME: "1970-01-01T00:00:00.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.7", BUILD_TIME: "1970-01-01T00:00:00.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;
217219
217219
  const packageManager = getGlobalInstallPackageManager();
217220
217220
  const installResult = await execFileNoThrowWithCwd(packageManager, ["install", "-g", packageSpec], { cwd: homedir18() });
217221
217221
  if (installResult.code !== 0) {
@@ -217543,8 +217543,8 @@ async function detectMultipleInstallations() {
217543
217543
  installations.push({ type: "npm-local", path: localPath });
217544
217544
  }
217545
217545
  const packagesToCheck = ["@theus-ai/theus-code"];
217546
- if ({ VERSION: "0.2.6", BUILD_TIME: "1970-01-01T00:00:00.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.6", BUILD_TIME: "1970-01-01T00:00:00.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") {
217547
- packagesToCheck.push({ VERSION: "0.2.6", BUILD_TIME: "1970-01-01T00:00:00.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);
217546
+ if ({ VERSION: "0.2.7", BUILD_TIME: "1970-01-01T00:00:00.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.7", BUILD_TIME: "1970-01-01T00:00:00.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") {
217547
+ packagesToCheck.push({ VERSION: "0.2.7", BUILD_TIME: "1970-01-01T00:00:00.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);
217548
217548
  }
217549
217549
  const npmResult = await execFileNoThrow("npm", [
217550
217550
  "-g",
@@ -217727,7 +217727,7 @@ function detectLinuxGlobPatternWarnings() {
217727
217727
  }
217728
217728
  async function getDoctorDiagnostic() {
217729
217729
  const installationType = await getCurrentInstallationType();
217730
- const version2 = { VERSION: "0.2.6", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.6", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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";
217730
+ const version2 = { VERSION: "0.2.7", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.7", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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";
217731
217731
  const installationPath = await getInstallationPath();
217732
217732
  const invokedBinary = getInvokedBinary();
217733
217733
  const multipleInstallations = await detectMultipleInstallations();
@@ -217739,8 +217739,8 @@ async function getDoctorDiagnostic() {
217739
217739
  for (const install of npmInstalls) {
217740
217740
  if (install.type === "npm-global") {
217741
217741
  let uninstallCmd = "npm -g uninstall @theus-ai/theus-code";
217742
- if ({ VERSION: "0.2.6", BUILD_TIME: "1970-01-01T00:00:00.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.6", BUILD_TIME: "1970-01-01T00:00:00.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") {
217743
- uninstallCmd += ` && npm -g uninstall ${{ VERSION: "0.2.6", BUILD_TIME: "1970-01-01T00:00:00.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}`;
217742
+ if ({ VERSION: "0.2.7", BUILD_TIME: "1970-01-01T00:00:00.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.7", BUILD_TIME: "1970-01-01T00:00:00.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") {
217743
+ uninstallCmd += ` && npm -g uninstall ${{ VERSION: "0.2.7", BUILD_TIME: "1970-01-01T00:00:00.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}`;
217744
217744
  }
217745
217745
  warnings.push({
217746
217746
  issue: `Leftover npm global installation at ${install.path}`,
@@ -217852,7 +217852,7 @@ async function getLatestVersionFromArtifactory(tag2 = "latest") {
217852
217852
  const startTime2 = Date.now();
217853
217853
  const { stdout, code, stderr } = await execFileNoThrowWithCwd("npm", [
217854
217854
  "view",
217855
- `${{ VERSION: "0.2.6", BUILD_TIME: "1970-01-01T00:00:00.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}`,
217855
+ `${{ VERSION: "0.2.7", BUILD_TIME: "1970-01-01T00:00:00.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}`,
217856
217856
  "version",
217857
217857
  "--prefer-online",
217858
217858
  "--registry",
@@ -217876,7 +217876,7 @@ async function getLatestVersionFromArtifactory(tag2 = "latest") {
217876
217876
  latency_ms: latencyMs,
217877
217877
  source_npm: true
217878
217878
  });
217879
- logForDebugging(`npm view ${{ VERSION: "0.2.6", BUILD_TIME: "1970-01-01T00:00:00.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}`);
217879
+ logForDebugging(`npm view ${{ VERSION: "0.2.7", BUILD_TIME: "1970-01-01T00:00:00.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}`);
217880
217880
  const latestVersion = stdout.trim();
217881
217881
  return latestVersion;
217882
217882
  }
@@ -217932,7 +217932,7 @@ async function downloadVersionFromArtifactory(version2, stagingPath) {
217932
217932
  const fs3 = getFsImplementation();
217933
217933
  await fs3.rm(stagingPath, { recursive: true, force: true });
217934
217934
  const platform4 = getPlatform2();
217935
- const platformPackageName = `${{ VERSION: "0.2.6", BUILD_TIME: "1970-01-01T00:00:00.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}`;
217935
+ const platformPackageName = `${{ VERSION: "0.2.7", BUILD_TIME: "1970-01-01T00:00:00.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}`;
217936
217936
  logForDebugging(`Fetching integrity hash for ${platformPackageName}@${version2}`);
217937
217937
  const {
217938
217938
  stdout: integrityOutput,
@@ -217961,7 +217961,7 @@ async function downloadVersionFromArtifactory(version2, stagingPath) {
217961
217961
  name: "theus-native-installer",
217962
217962
  version: "0.0.1",
217963
217963
  dependencies: {
217964
- [{ VERSION: "0.2.6", BUILD_TIME: "1970-01-01T00:00:00.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
217964
+ [{ VERSION: "0.2.7", BUILD_TIME: "1970-01-01T00:00:00.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
217965
217965
  }
217966
217966
  };
217967
217967
  const packageLock = {
@@ -217974,10 +217974,10 @@ async function downloadVersionFromArtifactory(version2, stagingPath) {
217974
217974
  name: "theus-native-installer",
217975
217975
  version: "0.0.1",
217976
217976
  dependencies: {
217977
- [{ VERSION: "0.2.6", BUILD_TIME: "1970-01-01T00:00:00.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
217977
+ [{ VERSION: "0.2.7", BUILD_TIME: "1970-01-01T00:00:00.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
217978
217978
  }
217979
217979
  },
217980
- [`node_modules/${{ VERSION: "0.2.6", BUILD_TIME: "1970-01-01T00:00:00.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}`]: {
217980
+ [`node_modules/${{ VERSION: "0.2.7", BUILD_TIME: "1970-01-01T00:00:00.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}`]: {
217981
217981
  version: version2,
217982
217982
  optionalDependencies: {
217983
217983
  [platformPackageName]: version2
@@ -217999,7 +217999,7 @@ async function downloadVersionFromArtifactory(version2, stagingPath) {
217999
217999
  if (result.code !== 0) {
218000
218000
  throw new Error(`npm ci failed with code ${result.code}: ${result.stderr}`);
218001
218001
  }
218002
- logForDebugging(`Successfully downloaded and verified ${{ VERSION: "0.2.6", BUILD_TIME: "1970-01-01T00:00:00.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}`);
218002
+ logForDebugging(`Successfully downloaded and verified ${{ VERSION: "0.2.7", BUILD_TIME: "1970-01-01T00:00:00.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}`);
218003
218003
  }
218004
218004
  function getStallTimeoutMs() {
218005
218005
  return Number(process.env.THEUS_CODE_STALL_TIMEOUT_MS_FOR_TESTING) || DEFAULT_STALL_TIMEOUT_MS;
@@ -218662,8 +218662,8 @@ async function updateLatest(channelOrVersion, forceReinstall = false) {
218662
218662
  const maxVersion = await getMaxVersion();
218663
218663
  if (maxVersion && gt(version2, maxVersion)) {
218664
218664
  logForDebugging(`Native installer: maxVersion ${maxVersion} is set, capping update from ${version2} to ${maxVersion}`);
218665
- if (gte({ VERSION: "0.2.6", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
218666
- logForDebugging(`Native installer: current version ${{ VERSION: "0.2.6", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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`);
218665
+ if (gte({ VERSION: "0.2.7", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
218666
+ logForDebugging(`Native installer: current version ${{ VERSION: "0.2.7", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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`);
218667
218667
  logEvent("tengu_native_update_skipped_max_version", {
218668
218668
  latency_ms: Date.now() - startTime2,
218669
218669
  max_version: maxVersion,
@@ -218674,7 +218674,7 @@ async function updateLatest(channelOrVersion, forceReinstall = false) {
218674
218674
  version2 = maxVersion;
218675
218675
  }
218676
218676
  }
218677
- if (!forceReinstall && version2 === { VERSION: "0.2.6", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
218677
+ if (!forceReinstall && version2 === { VERSION: "0.2.7", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
218678
218678
  logForDebugging(`Found ${version2} at ${executablePath}, skipping install`);
218679
218679
  logEvent("tengu_native_update_complete", {
218680
218680
  latency_ms: Date.now() - startTime2,
@@ -219424,8 +219424,8 @@ async function cleanupNpmInstallations() {
219424
219424
  } else if (codePackageResult.error) {
219425
219425
  errors4.push(codePackageResult.error);
219426
219426
  }
219427
- if ({ VERSION: "0.2.6", BUILD_TIME: "1970-01-01T00:00:00.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.6", BUILD_TIME: "1970-01-01T00:00:00.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") {
219428
- const macroPackageResult = await attemptNpmUninstall({ VERSION: "0.2.6", BUILD_TIME: "1970-01-01T00:00:00.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);
219427
+ if ({ VERSION: "0.2.7", BUILD_TIME: "1970-01-01T00:00:00.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.7", BUILD_TIME: "1970-01-01T00:00:00.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") {
219428
+ const macroPackageResult = await attemptNpmUninstall({ VERSION: "0.2.7", BUILD_TIME: "1970-01-01T00:00:00.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);
219429
219429
  if (macroPackageResult.success) {
219430
219430
  removed++;
219431
219431
  if (macroPackageResult.warning) {
@@ -297025,9 +297025,9 @@ function getTheusEnvMetadata() {
297025
297025
  };
297026
297026
  }
297027
297027
  function getBuildAgeMinutes() {
297028
- if (!{ VERSION: "0.2.6", BUILD_TIME: "1970-01-01T00:00:00.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)
297028
+ if (!{ VERSION: "0.2.7", BUILD_TIME: "1970-01-01T00:00:00.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)
297029
297029
  return;
297030
- const buildTime = new Date({ VERSION: "0.2.6", BUILD_TIME: "1970-01-01T00:00:00.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();
297030
+ const buildTime = new Date({ VERSION: "0.2.7", BUILD_TIME: "1970-01-01T00:00:00.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();
297031
297031
  if (isNaN(buildTime))
297032
297032
  return;
297033
297033
  return Math.floor((Date.now() - buildTime) / 60000);
@@ -313257,7 +313257,7 @@ function getAssistantMessageFromError(error40, model, options2) {
313257
313257
  if (process.env.USER_TYPE === "ant") {
313258
313258
  const baseMessage = `API Error: 400 ${error40.message}
313259
313259
 
313260
- Run /share and post the JSON file to ${{ VERSION: "0.2.6", BUILD_TIME: "1970-01-01T00:00:00.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}.`;
313260
+ Run /share and post the JSON file to ${{ VERSION: "0.2.7", BUILD_TIME: "1970-01-01T00:00:00.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}.`;
313261
313261
  const rewindInstruction = getIsNonInteractiveSession() ? "" : " Then, use /rewind to recover the conversation.";
313262
313262
  return createAssistantAPIErrorMessage({
313263
313263
  content: baseMessage + rewindInstruction,
@@ -313293,7 +313293,7 @@ Run /share and post the JSON file to ${{ VERSION: "0.2.6", BUILD_TIME: "1970-01-
313293
313293
  if (process.env.USER_TYPE === "ant" && !process.env.THEUS_MODEL && error40 instanceof Error && error40.message.toLowerCase().includes("invalid model name")) {
313294
313294
  const orgId = getOauthAccountInfo()?.organizationUuid;
313295
313295
  const baseMsg = `[THEUS-INTERNAL] Your org isn't gated into the \`${model}\` model. Either run \`theus\` with \`THEUS_MODEL=${getDefaultMainLoopModelSetting()}\``;
313296
- const msg = orgId ? `${baseMsg} or share your orgId (${orgId}) in ${{ VERSION: "0.2.6", BUILD_TIME: "1970-01-01T00:00:00.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.6", BUILD_TIME: "1970-01-01T00:00:00.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.`;
313296
+ const msg = orgId ? `${baseMsg} or share your orgId (${orgId}) in ${{ VERSION: "0.2.7", BUILD_TIME: "1970-01-01T00:00:00.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.7", BUILD_TIME: "1970-01-01T00:00:00.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.`;
313297
313297
  return createAssistantAPIErrorMessage({
313298
313298
  content: msg,
313299
313299
  error: "invalid_request"
@@ -323393,7 +323393,7 @@ function buildPrimarySection() {
323393
323393
  });
323394
323394
  return [{
323395
323395
  label: "Version",
323396
- value: { VERSION: "0.2.6", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
323396
+ value: { VERSION: "0.2.7", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
323397
323397
  }, {
323398
323398
  label: "Session name",
323399
323399
  value: nameValue
@@ -327144,7 +327144,7 @@ function Config({
327144
327144
  }
327145
327145
  })
327146
327146
  }) : showSubmenu === "ChannelDowngrade" ? /* @__PURE__ */ jsx_runtime181.jsx(ChannelDowngradeDialog, {
327147
- currentVersion: { VERSION: "0.2.6", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
327147
+ currentVersion: { VERSION: "0.2.7", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
327148
327148
  onChoice: (choice) => {
327149
327149
  setShowSubmenu(null);
327150
327150
  setTabsHidden(false);
@@ -327156,7 +327156,7 @@ function Config({
327156
327156
  autoUpdatesChannel: "stable"
327157
327157
  };
327158
327158
  if (choice === "stay") {
327159
- newSettings.minimumVersion = { VERSION: "0.2.6", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION;
327159
+ newSettings.minimumVersion = { VERSION: "0.2.7", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION;
327160
327160
  }
327161
327161
  updateSettingsForSource("userSettings", newSettings);
327162
327162
  setSettingsData((prev_27) => ({
@@ -335190,7 +335190,7 @@ function HelpV2(t0) {
335190
335190
  let t6;
335191
335191
  if ($2[31] !== tabs) {
335192
335192
  t6 = /* @__PURE__ */ jsx_runtime208.jsx(Tabs, {
335193
- title: `Theus v${{ VERSION: "0.2.6", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION}`,
335193
+ title: `Theus v${{ VERSION: "0.2.7", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION}`,
335194
335194
  color: "professionalBlue",
335195
335195
  defaultTab: "general",
335196
335196
  children: tabs
@@ -351914,6 +351914,15 @@ var init_mcp3 = __esm(() => {
351914
351914
  var NOVEDADES;
351915
351915
  var init_data = __esm(() => {
351916
351916
  NOVEDADES = [
351917
+ {
351918
+ version: "v0.2.7",
351919
+ fecha: "2026-07-11",
351920
+ titulo: "El arte de la forja abre cada sesi\xF3n",
351921
+ puntos: [
351922
+ "Cada nueva misi\xF3n imprime el arte de Prometeo al tope de la sesi\xF3n, con degradado de la llama violeta ne\xF3n a la brasa \xE1mbar \u2014 se acab\xF3 abrir en una pantalla vac\xEDa. Queda impreso en el scrollback, no se borra.",
351923
+ "En terminales angostas el arte se omite solo; THEUS_CODE_NO_SESSION_ART=1 fuerza el arranque compacto sin arte."
351924
+ ]
351925
+ },
351917
351926
  {
351918
351927
  version: "v0.2.6",
351919
351928
  fecha: "2026-07-11",
@@ -352812,9 +352821,9 @@ function getAllReleaseNotes(changelogContent = getStoredChangelogFromMemory()) {
352812
352821
  return [];
352813
352822
  }
352814
352823
  }
352815
- async function checkForReleaseNotes(lastSeenVersion, currentVersion = { VERSION: "0.2.6", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION) {
352824
+ async function checkForReleaseNotes(lastSeenVersion, currentVersion = { VERSION: "0.2.7", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION) {
352816
352825
  if (process.env.USER_TYPE === "ant") {
352817
- const changelog = { VERSION: "0.2.6", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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;
352826
+ const changelog = { VERSION: "0.2.7", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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;
352818
352827
  if (changelog) {
352819
352828
  const commits = changelog.trim().split(`
352820
352829
  `).filter(Boolean);
@@ -353887,6 +353896,10 @@ function compactModelName(model, maxLength) {
353887
353896
  return model.slice(0, maxLength);
353888
353897
  return `${model.slice(0, maxLength - 3)}...`;
353889
353898
  }
353899
+ function forgeRowColor(row, total) {
353900
+ const band = Math.floor(row / Math.max(1, total) * FORGE_GRADIENT.length);
353901
+ return FORGE_GRADIENT[Math.min(FORGE_GRADIENT.length - 1, band)] ?? "#a855f7";
353902
+ }
353890
353903
  function TheusSessionHeader({ version: version2 }) {
353891
353904
  const [themeName] = useTheme();
353892
353905
  const theme = getTheme(themeName);
@@ -353894,10 +353907,20 @@ function TheusSessionHeader({ version: version2 }) {
353894
353907
  const project = basename41(getCwd()) || "proyecto";
353895
353908
  const model = compactModelName(String(getMainLoopModel()), columns < 72 ? 22 : 36);
353896
353909
  const ruleLength = Math.max(8, Math.min(columns - 2, 72));
353910
+ const showArt = process.env.THEUS_CODE_NO_SESSION_ART !== "1";
353911
+ const logo = showArt ? pickTheusLogo(columns) : [];
353897
353912
  return /* @__PURE__ */ jsx_runtime237.jsxs(ThemedBox_default, {
353898
353913
  flexDirection: "column",
353899
353914
  width: "100%",
353900
353915
  children: [
353916
+ logo.length > 0 ? /* @__PURE__ */ jsx_runtime237.jsx(ThemedBox_default, {
353917
+ flexDirection: "column",
353918
+ marginBottom: 1,
353919
+ children: logo.map((line, i3) => /* @__PURE__ */ jsx_runtime237.jsx(ThemedText, {
353920
+ color: forgeRowColor(i3, logo.length),
353921
+ children: line
353922
+ }, i3))
353923
+ }) : null,
353901
353924
  /* @__PURE__ */ jsx_runtime237.jsxs(ThemedBox_default, {
353902
353925
  flexWrap: "wrap",
353903
353926
  children: [
@@ -353939,14 +353962,23 @@ function TheusSessionHeader({ version: version2 }) {
353939
353962
  ]
353940
353963
  });
353941
353964
  }
353942
- var jsx_runtime237;
353965
+ var jsx_runtime237, FORGE_GRADIENT;
353943
353966
  var init_TheusSessionHeader = __esm(() => {
353944
353967
  init_ink2();
353945
353968
  init_useTerminalSize();
353946
353969
  init_cwd2();
353947
353970
  init_model();
353948
353971
  init_theme();
353972
+ init_asciiLogo();
353949
353973
  jsx_runtime237 = __toESM(require_jsx_runtime(), 1);
353974
+ FORGE_GRADIENT = [
353975
+ "#c9a9ff",
353976
+ "#c084fc",
353977
+ "#a855f7",
353978
+ "#8b5cf6",
353979
+ "#f0843e",
353980
+ "#e0602c"
353981
+ ];
353950
353982
  });
353951
353983
 
353952
353984
  // components/MessageModel.tsx
@@ -357036,7 +357068,7 @@ var init_Messages = __esm(() => {
357036
357068
  let t1;
357037
357069
  if ($2[0] === Symbol.for("react.memo_cache_sentinel")) {
357038
357070
  t1 = /* @__PURE__ */ jsx_runtime246.jsx(TheusSessionHeader, {
357039
- version: { VERSION: "0.2.6", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
357071
+ version: { VERSION: "0.2.7", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
357040
357072
  });
357041
357073
  $2[0] = t1;
357042
357074
  } else {
@@ -384576,7 +384608,7 @@ async function captureMemoryDiagnostics(trigger, dumpNumber = 0) {
384576
384608
  smapsRollup,
384577
384609
  platform: process.platform,
384578
384610
  nodeVersion: process.version,
384579
- ccVersion: { VERSION: "0.2.6", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
384611
+ ccVersion: { VERSION: "0.2.7", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
384580
384612
  };
384581
384613
  }
384582
384614
  async function performHeapDump(trigger = "manual", dumpNumber = 0) {
@@ -385162,7 +385194,7 @@ var init_bridge_kick = __esm(() => {
385162
385194
  var call55 = async () => {
385163
385195
  return {
385164
385196
  type: "text",
385165
- value: { VERSION: "0.2.6", BUILD_TIME: "1970-01-01T00:00:00.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.6", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.6", BUILD_TIME: "1970-01-01T00:00:00.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.6", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
385197
+ value: { VERSION: "0.2.7", BUILD_TIME: "1970-01-01T00:00:00.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.7", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.7", BUILD_TIME: "1970-01-01T00:00:00.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.7", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
385166
385198
  };
385167
385199
  }, version2, version_default;
385168
385200
  var init_version = __esm(() => {
@@ -389007,13 +389039,13 @@ async function updateReleaseBundle() {
389007
389039
  await gracefulShutdown(1);
389008
389040
  return;
389009
389041
  }
389010
- if (gte({ VERSION: "0.2.6", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
389011
- writeToStdout(source_default.green(`Theus is up to date (${{ VERSION: "0.2.6", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION})`) + `
389042
+ if (gte({ VERSION: "0.2.7", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
389043
+ writeToStdout(source_default.green(`Theus is up to date (${{ VERSION: "0.2.7", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION})`) + `
389012
389044
  `);
389013
389045
  await gracefulShutdown(0);
389014
389046
  return;
389015
389047
  }
389016
- writeToStdout(`New version available: ${latest} (current: ${{ VERSION: "0.2.6", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION})
389048
+ writeToStdout(`New version available: ${latest} (current: ${{ VERSION: "0.2.7", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION})
389017
389049
  `);
389018
389050
  writeToStdout(`Installing update from theus.pe/dl...
389019
389051
  `);
@@ -389047,7 +389079,7 @@ async function updateReleaseBundle() {
389047
389079
  return;
389048
389080
  }
389049
389081
  cpSync(staged, bundleDir, { recursive: true, force: true });
389050
- writeToStdout(source_default.green(`Successfully updated from ${{ VERSION: "0.2.6", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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}`) + `
389082
+ writeToStdout(source_default.green(`Successfully updated from ${{ VERSION: "0.2.7", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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}`) + `
389051
389083
  `);
389052
389084
  await regenerateCompletionCache();
389053
389085
  } finally {
@@ -389060,7 +389092,7 @@ async function updateReleaseBundle() {
389060
389092
  async function update() {
389061
389093
  logEvent("tengu_update_check", {});
389062
389094
  await updateNaupa();
389063
- writeToStdout(`Current version: ${{ VERSION: "0.2.6", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION}
389095
+ writeToStdout(`Current version: ${{ VERSION: "0.2.7", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION}
389064
389096
  `);
389065
389097
  const channel2 = getInitialSettings()?.autoUpdatesChannel ?? "latest";
389066
389098
  writeToStdout(`Checking for updates to ${channel2} version...
@@ -389139,8 +389171,8 @@ async function update() {
389139
389171
  writeToStdout(`Theus is managed by Homebrew.
389140
389172
  `);
389141
389173
  const latest = await getLatestVersion(channel2);
389142
- if (latest && !gte({ VERSION: "0.2.6", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
389143
- writeToStdout(`Update available: ${{ VERSION: "0.2.6", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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}
389174
+ if (latest && !gte({ VERSION: "0.2.7", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
389175
+ writeToStdout(`Update available: ${{ VERSION: "0.2.7", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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}
389144
389176
  `);
389145
389177
  writeToStdout(`
389146
389178
  `);
@@ -389156,8 +389188,8 @@ async function update() {
389156
389188
  writeToStdout(`Theus is managed by winget.
389157
389189
  `);
389158
389190
  const latest = await getLatestVersion(channel2);
389159
- if (latest && !gte({ VERSION: "0.2.6", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
389160
- writeToStdout(`Update available: ${{ VERSION: "0.2.6", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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}
389191
+ if (latest && !gte({ VERSION: "0.2.7", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
389192
+ writeToStdout(`Update available: ${{ VERSION: "0.2.7", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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}
389161
389193
  `);
389162
389194
  writeToStdout(`
389163
389195
  `);
@@ -389173,8 +389205,8 @@ async function update() {
389173
389205
  writeToStdout(`Theus is managed by apk.
389174
389206
  `);
389175
389207
  const latest = await getLatestVersion(channel2);
389176
- if (latest && !gte({ VERSION: "0.2.6", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
389177
- writeToStdout(`Update available: ${{ VERSION: "0.2.6", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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}
389208
+ if (latest && !gte({ VERSION: "0.2.7", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
389209
+ writeToStdout(`Update available: ${{ VERSION: "0.2.7", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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}
389178
389210
  `);
389179
389211
  writeToStdout(`
389180
389212
  `);
@@ -389239,11 +389271,11 @@ async function update() {
389239
389271
  `);
389240
389272
  await gracefulShutdown(1);
389241
389273
  }
389242
- if (result.latestVersion === { VERSION: "0.2.6", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION) {
389243
- writeToStdout(source_default.green(`Theus is up to date (${{ VERSION: "0.2.6", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION})`) + `
389274
+ if (result.latestVersion === { VERSION: "0.2.7", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION) {
389275
+ writeToStdout(source_default.green(`Theus is up to date (${{ VERSION: "0.2.7", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION})`) + `
389244
389276
  `);
389245
389277
  } else {
389246
- writeToStdout(source_default.green(`Successfully updated from ${{ VERSION: "0.2.6", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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}`) + `
389278
+ writeToStdout(source_default.green(`Successfully updated from ${{ VERSION: "0.2.7", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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}`) + `
389247
389279
  `);
389248
389280
  await regenerateCompletionCache();
389249
389281
  }
@@ -389262,9 +389294,9 @@ async function update() {
389262
389294
  await removeInstalledSymlink();
389263
389295
  }
389264
389296
  logForDebugging("update: Checking npm registry for latest version");
389265
- logForDebugging(`update: Package URL: ${{ VERSION: "0.2.6", BUILD_TIME: "1970-01-01T00:00:00.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}`);
389297
+ logForDebugging(`update: Package URL: ${{ VERSION: "0.2.7", BUILD_TIME: "1970-01-01T00:00:00.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}`);
389266
389298
  const npmTag = channel2 === "stable" ? "stable" : "latest";
389267
- const npmCommand = `npm view ${{ VERSION: "0.2.6", BUILD_TIME: "1970-01-01T00:00:00.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`;
389299
+ const npmCommand = `npm view ${{ VERSION: "0.2.7", BUILD_TIME: "1970-01-01T00:00:00.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`;
389268
389300
  logForDebugging(`update: Running: ${npmCommand}`);
389269
389301
  const latestVersion = await getLatestVersion(channel2);
389270
389302
  logForDebugging(`update: Latest version from npm: ${latestVersion || "FAILED"}`);
@@ -389284,7 +389316,7 @@ async function update() {
389284
389316
  `);
389285
389317
  process.stderr.write(` \u2022 Corporate proxy/firewall blocking npm
389286
389318
  `);
389287
- if ({ VERSION: "0.2.6", BUILD_TIME: "1970-01-01T00:00:00.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.6", BUILD_TIME: "1970-01-01T00:00:00.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")) {
389319
+ if ({ VERSION: "0.2.7", BUILD_TIME: "1970-01-01T00:00:00.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.7", BUILD_TIME: "1970-01-01T00:00:00.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")) {
389288
389320
  process.stderr.write(` \u2022 Internal/development build not published to npm
389289
389321
  `);
389290
389322
  }
@@ -389296,19 +389328,19 @@ async function update() {
389296
389328
  `);
389297
389329
  process.stderr.write(` \u2022 Run with --debug flag for more details
389298
389330
  `);
389299
- const packageName = { VERSION: "0.2.6", BUILD_TIME: "1970-01-01T00:00:00.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");
389331
+ const packageName = { VERSION: "0.2.7", BUILD_TIME: "1970-01-01T00:00:00.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");
389300
389332
  process.stderr.write(` \u2022 Manually check: npm view ${packageName} version
389301
389333
  `);
389302
389334
  process.stderr.write(` \u2022 Check if you need to login: npm whoami
389303
389335
  `);
389304
389336
  await gracefulShutdown(1);
389305
389337
  }
389306
- if (gte({ VERSION: "0.2.6", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
389307
- writeToStdout(source_default.green(`Theus is up to date (${{ VERSION: "0.2.6", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION})`) + `
389338
+ if (gte({ VERSION: "0.2.7", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
389339
+ writeToStdout(source_default.green(`Theus is up to date (${{ VERSION: "0.2.7", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION})`) + `
389308
389340
  `);
389309
389341
  await gracefulShutdown(0);
389310
389342
  }
389311
- writeToStdout(`New version available: ${latestVersion} (current: ${{ VERSION: "0.2.6", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION})
389343
+ writeToStdout(`New version available: ${latestVersion} (current: ${{ VERSION: "0.2.7", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION})
389312
389344
  `);
389313
389345
  writeToStdout(`Installing update...
389314
389346
  `);
@@ -389353,7 +389385,7 @@ async function update() {
389353
389385
  logForDebugging(`update: Installation status: ${status2}`);
389354
389386
  switch (status2) {
389355
389387
  case "success":
389356
- writeToStdout(source_default.green(`Successfully updated from ${{ VERSION: "0.2.6", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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}`) + `
389388
+ writeToStdout(source_default.green(`Successfully updated from ${{ VERSION: "0.2.7", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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}`) + `
389357
389389
  `);
389358
389390
  await regenerateCompletionCache();
389359
389391
  break;
@@ -389363,7 +389395,7 @@ async function update() {
389363
389395
  if (useLocalUpdate) {
389364
389396
  process.stderr.write(`Try manually updating with:
389365
389397
  `);
389366
- process.stderr.write(` cd ~/.theus/local && npm update ${{ VERSION: "0.2.6", BUILD_TIME: "1970-01-01T00:00:00.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}
389398
+ process.stderr.write(` cd ~/.theus/local && npm update ${{ VERSION: "0.2.7", BUILD_TIME: "1970-01-01T00:00:00.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}
389367
389399
  `);
389368
389400
  } else {
389369
389401
  process.stderr.write(`Try running with sudo or fix npm permissions
@@ -389379,7 +389411,7 @@ async function update() {
389379
389411
  if (useLocalUpdate) {
389380
389412
  process.stderr.write(`Try manually updating with:
389381
389413
  `);
389382
- process.stderr.write(` cd ~/.theus/local && npm update ${{ VERSION: "0.2.6", BUILD_TIME: "1970-01-01T00:00:00.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}
389414
+ process.stderr.write(` cd ~/.theus/local && npm update ${{ VERSION: "0.2.7", BUILD_TIME: "1970-01-01T00:00:00.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}
389383
389415
  `);
389384
389416
  } else {
389385
389417
  process.stderr.write(`Or consider using native installation with: theus install
@@ -396279,7 +396311,7 @@ var init_sessionStorage = __esm(() => {
396279
396311
  init_settings2();
396280
396312
  init_slowOperations();
396281
396313
  init_uuid();
396282
- VERSION4 = { VERSION: "0.2.6", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION;
396314
+ VERSION4 = { VERSION: "0.2.7", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION;
396283
396315
  MAX_TOMBSTONE_REWRITE_BYTES = 50 * 1024 * 1024;
396284
396316
  SKIP_FIRST_PROMPT_PATTERN = /^(?:\s*<[a-z][\w-]*[\s>]|\[Request interrupted by user[^\]]*\])/;
396285
396317
  EPHEMERAL_PROGRESS_TYPES = new Set([
@@ -397484,7 +397516,7 @@ var init_filesystem = __esm(() => {
397484
397516
  });
397485
397517
  getBundledSkillsRoot = memoize_default(function getBundledSkillsRoot2() {
397486
397518
  const nonce = randomBytes21(16).toString("hex");
397487
- return join144(getTheusTempDir(), "bundled-skills", { VERSION: "0.2.6", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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);
397519
+ return join144(getTheusTempDir(), "bundled-skills", { VERSION: "0.2.7", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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);
397488
397520
  });
397489
397521
  getResolvedWorkingDirPaths = memoize_default(getPathsForPermissionCheck);
397490
397522
  });
@@ -402659,7 +402691,7 @@ function getSimpleDoingTasksSection() {
402659
402691
  ];
402660
402692
  const userHelpSubitems = [
402661
402693
  `/help: Get help with using Theus`,
402662
- `To give feedback, users should ${{ VERSION: "0.2.6", BUILD_TIME: "1970-01-01T00:00:00.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}`
402694
+ `To give feedback, users should ${{ VERSION: "0.2.7", BUILD_TIME: "1970-01-01T00:00:00.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}`
402663
402695
  ];
402664
402696
  const items = [
402665
402697
  `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.`,
@@ -403482,7 +403514,7 @@ function computeFingerprint(messageText, version3) {
403482
403514
  }
403483
403515
  function computeFingerprintFromMessages(messages) {
403484
403516
  const firstMessageText = extractFirstMessageText(messages);
403485
- return computeFingerprint(firstMessageText, { VERSION: "0.2.6", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION);
403517
+ return computeFingerprint(firstMessageText, { VERSION: "0.2.7", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION);
403486
403518
  }
403487
403519
  var FINGERPRINT_SALT = "59cf53e54c78";
403488
403520
  var init_fingerprint = () => {};
@@ -406006,7 +406038,7 @@ async function sideQuery(opts) {
406006
406038
  betas.push(STRUCTURED_OUTPUTS_BETA_HEADER);
406007
406039
  }
406008
406040
  const messageText = extractFirstUserMessageText(messages);
406009
- const fingerprint = computeFingerprint(messageText, { VERSION: "0.2.6", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION);
406041
+ const fingerprint = computeFingerprint(messageText, { VERSION: "0.2.7", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION);
406010
406042
  const attributionHeader = getAttributionHeader(fingerprint);
406011
406043
  const systemBlocks = [
406012
406044
  attributionHeader ? { type: "text", text: attributionHeader } : null,
@@ -407309,7 +407341,7 @@ async function handleMemories(state) {
407309
407341
  async function runProjectContextMcpServer() {
407310
407342
  const projectRoot = process.env.THEUS_PROJECT_ROOT || process.cwd();
407311
407343
  const state = new ProjectContextState(projectRoot);
407312
- const server = new Server({ name: SERVER_NAME, version: { VERSION: "0.2.6", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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: {} } });
407344
+ const server = new Server({ name: SERVER_NAME, version: { VERSION: "0.2.7", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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: {} } });
407313
407345
  server.setRequestHandler(ListToolsRequestSchema, async () => ({
407314
407346
  tools: TOOL_DEFINITIONS.map((t) => ({
407315
407347
  name: t.name,
@@ -413051,7 +413083,7 @@ function buildSystemInitMessage(inputs) {
413051
413083
  slash_commands: inputs.commands.filter((c5) => c5.userInvocable !== false).map((c5) => c5.name),
413052
413084
  apiKeySource: getTheusApiKeyWithSource().source,
413053
413085
  betas: getSdkBetas(),
413054
- theus_code_version: { VERSION: "0.2.6", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
413086
+ theus_code_version: { VERSION: "0.2.7", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
413055
413087
  output_style: outputStyle2,
413056
413088
  agents: inputs.agents.map((agent) => agent.agentType),
413057
413089
  skills: inputs.skills.filter((s) => s.userInvocable !== false).map((skill) => skill.name),
@@ -427685,7 +427717,7 @@ var init_useVoiceEnabled = __esm(() => {
427685
427717
  function getSemverPart(version3) {
427686
427718
  return `${import_semver13.major(version3, { loose: true })}.${import_semver13.minor(version3, { loose: true })}.${import_semver13.patch(version3, { loose: true })}`;
427687
427719
  }
427688
- function useUpdateNotification(updatedVersion, initialVersion = { VERSION: "0.2.6", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION) {
427720
+ function useUpdateNotification(updatedVersion, initialVersion = { VERSION: "0.2.7", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION) {
427689
427721
  const [lastNotifiedSemver, setLastNotifiedSemver] = import_react215.useState(() => getSemverPart(initialVersion));
427690
427722
  if (!updatedVersion) {
427691
427723
  return null;
@@ -427725,7 +427757,7 @@ function AutoUpdater({
427725
427757
  return;
427726
427758
  }
427727
427759
  if (false) {}
427728
- const currentVersion = { VERSION: "0.2.6", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION;
427760
+ const currentVersion = { VERSION: "0.2.7", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION;
427729
427761
  const channel2 = getInitialSettings()?.autoUpdatesChannel ?? "latest";
427730
427762
  let latestVersion = await getLatestVersion(channel2);
427731
427763
  const isDisabled2 = isAutoUpdaterDisabled();
@@ -427861,7 +427893,7 @@ function AutoUpdater({
427861
427893
  " ",
427862
427894
  /* @__PURE__ */ jsx_runtime384.jsx(ThemedText, {
427863
427895
  bold: true,
427864
- children: hasLocalInstall ? `cd ~/.theus/local && npm update ${{ VERSION: "0.2.6", BUILD_TIME: "1970-01-01T00:00:00.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.6", BUILD_TIME: "1970-01-01T00:00:00.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}`
427896
+ children: hasLocalInstall ? `cd ~/.theus/local && npm update ${{ VERSION: "0.2.7", BUILD_TIME: "1970-01-01T00:00:00.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.7", BUILD_TIME: "1970-01-01T00:00:00.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}`
427865
427897
  })
427866
427898
  ]
427867
427899
  })
@@ -427938,12 +427970,12 @@ function NativeAutoUpdater({
427938
427970
  logEvent("tengu_native_auto_updater_start", {});
427939
427971
  try {
427940
427972
  const maxVersion = await getMaxVersion();
427941
- if (maxVersion && gt({ VERSION: "0.2.6", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
427973
+ if (maxVersion && gt({ VERSION: "0.2.7", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
427942
427974
  const msg = await getMaxVersionMessage();
427943
427975
  setMaxVersionIssue(msg ?? "affects your version");
427944
427976
  }
427945
427977
  const result = await installLatest(channel2);
427946
- const currentVersion = { VERSION: "0.2.6", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION;
427978
+ const currentVersion = { VERSION: "0.2.7", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION;
427947
427979
  const latencyMs = Date.now() - startTime2;
427948
427980
  if (result.lockFailed) {
427949
427981
  logEvent("tengu_native_auto_updater_lock_contention", {
@@ -428080,17 +428112,17 @@ function PackageManagerAutoUpdater(t0) {
428080
428112
  const maxVersion = await getMaxVersion();
428081
428113
  if (maxVersion && latest && gt(latest, maxVersion)) {
428082
428114
  logForDebugging(`PackageManagerAutoUpdater: maxVersion ${maxVersion} is set, capping update from ${latest} to ${maxVersion}`);
428083
- if (gte({ VERSION: "0.2.6", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
428084
- logForDebugging(`PackageManagerAutoUpdater: current version ${{ VERSION: "0.2.6", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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`);
428115
+ if (gte({ VERSION: "0.2.7", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
428116
+ logForDebugging(`PackageManagerAutoUpdater: current version ${{ VERSION: "0.2.7", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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`);
428085
428117
  setUpdateAvailable(false);
428086
428118
  return;
428087
428119
  }
428088
428120
  latest = maxVersion;
428089
428121
  }
428090
- const hasUpdate = latest && !gte({ VERSION: "0.2.6", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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);
428122
+ const hasUpdate = latest && !gte({ VERSION: "0.2.7", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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);
428091
428123
  setUpdateAvailable(!!hasUpdate);
428092
428124
  if (hasUpdate) {
428093
- logForDebugging(`PackageManagerAutoUpdater: Update available ${{ VERSION: "0.2.6", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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}`);
428125
+ logForDebugging(`PackageManagerAutoUpdater: Update available ${{ VERSION: "0.2.7", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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}`);
428094
428126
  }
428095
428127
  };
428096
428128
  $2[0] = t1;
@@ -428124,7 +428156,7 @@ function PackageManagerAutoUpdater(t0) {
428124
428156
  wrap: "truncate",
428125
428157
  children: [
428126
428158
  "currentVersion: ",
428127
- { VERSION: "0.2.6", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
428159
+ { VERSION: "0.2.7", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
428128
428160
  ]
428129
428161
  });
428130
428162
  $2[3] = verbose;
@@ -435997,7 +436029,7 @@ function buildStatusLineCommandInput(permissionMode, exceeds200kTokens, settings
435997
436029
  project_dir: getOriginalCwd(),
435998
436030
  added_dirs: addedDirs
435999
436031
  },
436000
- version: { VERSION: "0.2.6", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
436032
+ version: { VERSION: "0.2.7", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
436001
436033
  output_style: {
436002
436034
  name: outputStyleName
436003
436035
  },
@@ -447604,7 +447636,7 @@ async function submitTranscriptShare(messages, trigger, appearanceId) {
447604
447636
  } catch {}
447605
447637
  const data = {
447606
447638
  trigger,
447607
- version: { VERSION: "0.2.6", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
447639
+ version: { VERSION: "0.2.7", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
447608
447640
  platform: process.platform,
447609
447641
  transcript,
447610
447642
  subagentTranscripts: Object.keys(subagentTranscripts).length > 0 ? subagentTranscripts : undefined,
@@ -460555,7 +460587,7 @@ function Onboarding({
460555
460587
  flexDirection: "column",
460556
460588
  children: [
460557
460589
  /* @__PURE__ */ jsx_runtime459.jsx(TheusBanner, {
460558
- version: { VERSION: "0.2.6", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
460590
+ version: { VERSION: "0.2.7", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
460559
460591
  }),
460560
460592
  /* @__PURE__ */ jsx_runtime459.jsxs(ThemedBox_default, {
460561
460593
  flexDirection: "column",
@@ -461426,7 +461458,7 @@ function completeOnboarding() {
461426
461458
  saveGlobalConfig((current) => ({
461427
461459
  ...current,
461428
461460
  hasCompletedOnboarding: true,
461429
- lastOnboardingVersion: { VERSION: "0.2.6", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
461461
+ lastOnboardingVersion: { VERSION: "0.2.7", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
461430
461462
  }));
461431
461463
  }
461432
461464
  function showDialog(root2, renderer) {
@@ -466793,7 +466825,7 @@ function appendToLog(path21, message) {
466793
466825
  cwd: getFsImplementation().cwd(),
466794
466826
  userType: process.env.USER_TYPE,
466795
466827
  sessionId: getSessionId(),
466796
- version: { VERSION: "0.2.6", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
466828
+ version: { VERSION: "0.2.7", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
466797
466829
  };
466798
466830
  getLogWriter(path21).write(messageWithTimestamp);
466799
466831
  }
@@ -470927,8 +470959,8 @@ async function getEnvLessBridgeConfig() {
470927
470959
  }
470928
470960
  async function checkEnvLessBridgeMinVersion() {
470929
470961
  const cfg = await getEnvLessBridgeConfig();
470930
- if (cfg.min_version && lt({ VERSION: "0.2.6", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
470931
- return `Your version of Theus (${{ VERSION: "0.2.6", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.
470962
+ if (cfg.min_version && lt({ VERSION: "0.2.7", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
470963
+ return `Your version of Theus (${{ VERSION: "0.2.7", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.
470932
470964
  Version ${cfg.min_version} or higher is required. Run \`theus update\` to update.`;
470933
470965
  }
470934
470966
  return null;
@@ -471402,7 +471434,7 @@ async function initBridgeCore(params) {
471402
471434
  const rawApi = createBridgeApiClient({
471403
471435
  baseUrl,
471404
471436
  getAccessToken,
471405
- runnerVersion: { VERSION: "0.2.6", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
471437
+ runnerVersion: { VERSION: "0.2.7", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
471406
471438
  onDebug: logForDebugging,
471407
471439
  onAuth401,
471408
471440
  getTrustedDeviceToken
@@ -476668,7 +476700,7 @@ async function startMCPServer(cwd3, debug2, verbose) {
476668
476700
  setCwd(cwd3);
476669
476701
  const server = new Server({
476670
476702
  name: "theus/tengu",
476671
- version: { VERSION: "0.2.6", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
476703
+ version: { VERSION: "0.2.7", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
476672
476704
  }, {
476673
476705
  capabilities: {
476674
476706
  tools: {}
@@ -478110,7 +478142,7 @@ async function setupTokenHandler(root2) {
478110
478142
  gap: 1,
478111
478143
  children: [
478112
478144
  /* @__PURE__ */ jsx_runtime476.jsx(TheusBanner, {
478113
- version: { VERSION: "0.2.6", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
478145
+ version: { VERSION: "0.2.7", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
478114
478146
  }),
478115
478147
  showAuthWarning && /* @__PURE__ */ jsx_runtime476.jsxs(ThemedBox_default, {
478116
478148
  flexDirection: "column",
@@ -479522,7 +479554,7 @@ ${customInstructions}` : customInstructions;
479522
479554
  }
479523
479555
  }
479524
479556
  logForDiagnosticsNoPII("info", "started", {
479525
- version: { VERSION: "0.2.6", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
479557
+ version: { VERSION: "0.2.7", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
479526
479558
  is_native_binary: isInBundledMode()
479527
479559
  });
479528
479560
  registerCleanup(async () => {
@@ -480306,7 +480338,7 @@ Usage: theus --remote "your task description"`, () => gracefulShutdown(1));
480306
480338
  pendingHookMessages
480307
480339
  }, renderAndRun);
480308
480340
  }
480309
- }).version(`${{ VERSION: "0.2.6", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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");
480341
+ }).version(`${{ VERSION: "0.2.7", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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");
480310
480342
  program2.option("-w, --worktree [name]", "Crea un nuevo worktree de git para esta sesi\xF3n (opcionalmente indica un nombre)");
480311
480343
  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.");
480312
480344
  if (canUserConfigureAdvisor()) {
@@ -480820,7 +480852,7 @@ if (false) {}
480820
480852
  async function main2() {
480821
480853
  const args = process.argv.slice(2);
480822
480854
  if (args.length === 1 && (args[0] === "--version" || args[0] === "-v" || args[0] === "-V")) {
480823
- console.log(`${{ VERSION: "0.2.6", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)`);
480855
+ console.log(`${{ VERSION: "0.2.7", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)`);
480824
480856
  return;
480825
480857
  }
480826
480858
  const {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "theus-cli",
3
- "version": "0.2.6",
3
+ "version": "0.2.7",
4
4
  "description": "Theus — multi-model agent for vibe coding, persistent memory, indexing graphs and visual databases",
5
5
  "type": "module",
6
6
  "bin": {