theus-cli 0.2.45 → 0.2.46

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 +231 -169
  2. package/package.json +1 -1
package/cli.js CHANGED
@@ -58324,7 +58324,7 @@ async function _executeApiKeyHelper(isNonInteractiveSession) {
58324
58324
  if (isApiKeyHelperFromProjectOrLocalSettings()) {
58325
58325
  const hasTrust = checkHasTrustDialogAccepted();
58326
58326
  if (!hasTrust && !isNonInteractiveSession) {
58327
- const error40 = new Error(`Security: apiKeyHelper executed before workspace trust is confirmed. If you see this message, post in ${{ VERSION: "0.2.45", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.FEEDBACK_CHANNEL}.`);
58327
+ const error40 = new Error(`Security: apiKeyHelper executed before workspace trust is confirmed. If you see this message, post in ${{ VERSION: "0.2.46", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.FEEDBACK_CHANNEL}.`);
58328
58328
  logAntError("apiKeyHelper invoked before trust check", error40);
58329
58329
  logEvent("tengu_apiKeyHelper_missing_trust11", {});
58330
58330
  return null;
@@ -58368,7 +58368,7 @@ async function runAwsAuthRefresh() {
58368
58368
  if (isAwsAuthRefreshFromProjectSettings()) {
58369
58369
  const hasTrust = checkHasTrustDialogAccepted();
58370
58370
  if (!hasTrust && !getIsNonInteractiveSession()) {
58371
- const error40 = new Error(`Security: awsAuthRefresh executed before workspace trust is confirmed. If you see this message, post in ${{ VERSION: "0.2.45", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.FEEDBACK_CHANNEL}.`);
58371
+ const error40 = new Error(`Security: awsAuthRefresh executed before workspace trust is confirmed. If you see this message, post in ${{ VERSION: "0.2.46", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.FEEDBACK_CHANNEL}.`);
58372
58372
  logAntError("awsAuthRefresh invoked before trust check", error40);
58373
58373
  logEvent("tengu_awsAuthRefresh_missing_trust", {});
58374
58374
  return false;
@@ -58428,7 +58428,7 @@ async function getAwsCredsFromCredentialExport() {
58428
58428
  if (isAwsCredentialExportFromProjectSettings()) {
58429
58429
  const hasTrust = checkHasTrustDialogAccepted();
58430
58430
  if (!hasTrust && !getIsNonInteractiveSession()) {
58431
- const error40 = new Error(`Security: awsCredentialExport executed before workspace trust is confirmed. If you see this message, post in ${{ VERSION: "0.2.45", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.FEEDBACK_CHANNEL}.`);
58431
+ const error40 = new Error(`Security: awsCredentialExport executed before workspace trust is confirmed. If you see this message, post in ${{ VERSION: "0.2.46", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.FEEDBACK_CHANNEL}.`);
58432
58432
  logAntError("awsCredentialExport invoked before trust check", error40);
58433
58433
  logEvent("tengu_awsCredentialExport_missing_trust", {});
58434
58434
  return null;
@@ -58513,7 +58513,7 @@ async function runGcpAuthRefresh() {
58513
58513
  if (isGcpAuthRefreshFromProjectSettings()) {
58514
58514
  const hasTrust = checkHasTrustDialogAccepted();
58515
58515
  if (!hasTrust && !getIsNonInteractiveSession()) {
58516
- const error40 = new Error(`Security: gcpAuthRefresh executed before workspace trust is confirmed. If you see this message, post in ${{ VERSION: "0.2.45", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.FEEDBACK_CHANNEL}.`);
58516
+ const error40 = new Error(`Security: gcpAuthRefresh executed before workspace trust is confirmed. If you see this message, post in ${{ VERSION: "0.2.46", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.FEEDBACK_CHANNEL}.`);
58517
58517
  logAntError("gcpAuthRefresh invoked before trust check", error40);
58518
58518
  logEvent("tengu_gcpAuthRefresh_missing_trust", {});
58519
58519
  return false;
@@ -59208,7 +59208,7 @@ var init_auth = __esm(() => {
59208
59208
 
59209
59209
  // utils/userAgent.ts
59210
59210
  function getTheusCodeUserAgent() {
59211
- return `theus-code/${{ VERSION: "0.2.45", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION}`;
59211
+ return `theus-code/${{ VERSION: "0.2.46", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION}`;
59212
59212
  }
59213
59213
 
59214
59214
  // utils/workloadContext.ts
@@ -59230,7 +59230,7 @@ function getUserAgent() {
59230
59230
  const clientApp = process.env.THEUS_AGENT_SDK_CLIENT_APP ? `, client-app/${process.env.THEUS_AGENT_SDK_CLIENT_APP}` : "";
59231
59231
  const workload = getWorkload();
59232
59232
  const workloadSuffix = workload ? `, workload/${workload}` : "";
59233
- return `theus-cli/${{ VERSION: "0.2.45", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION} (${process.env.USER_TYPE}, ${process.env.THEUS_CODE_ENTRYPOINT ?? "cli"}${agentSdkVersion}${clientApp}${workloadSuffix})`;
59233
+ return `theus-cli/${{ VERSION: "0.2.46", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION} (${process.env.USER_TYPE}, ${process.env.THEUS_CODE_ENTRYPOINT ?? "cli"}${agentSdkVersion}${clientApp}${workloadSuffix})`;
59234
59234
  }
59235
59235
  function getMCPUserAgent() {
59236
59236
  const parts = [];
@@ -59244,7 +59244,7 @@ function getMCPUserAgent() {
59244
59244
  parts.push(`client-app/${process.env.THEUS_AGENT_SDK_CLIENT_APP}`);
59245
59245
  }
59246
59246
  const suffix = parts.length > 0 ? ` (${parts.join(", ")})` : "";
59247
- return `theus-code/${{ VERSION: "0.2.45", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION}${suffix}`;
59247
+ return `theus-code/${{ VERSION: "0.2.46", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION}${suffix}`;
59248
59248
  }
59249
59249
  function getWebFetchUserAgent() {
59250
59250
  return `Theus-User (${getTheusCodeUserAgent()}; +https://support.theus.pe/)`;
@@ -59382,7 +59382,7 @@ var init_user = __esm(() => {
59382
59382
  deviceId,
59383
59383
  sessionId: getSessionId(),
59384
59384
  email: getEmail(),
59385
- appVersion: { VERSION: "0.2.45", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
59385
+ appVersion: { VERSION: "0.2.46", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
59386
59386
  platform: getHostPlatformForAnalytics(),
59387
59387
  organizationUuid,
59388
59388
  accountUuid,
@@ -61097,7 +61097,7 @@ var init_metadata = __esm(() => {
61097
61097
  COMPOUND_OPERATOR_REGEX = /\s*(?:&&|\|\||[;|])\s*/;
61098
61098
  WHITESPACE_REGEX = /\s+/;
61099
61099
  getVersionBase = memoize_default(() => {
61100
- const match = { VERSION: "0.2.45", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION.match(/^\d+\.\d+\.\d+(?:-[a-z]+)?/);
61100
+ const match = { VERSION: "0.2.46", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION.match(/^\d+\.\d+\.\d+(?:-[a-z]+)?/);
61101
61101
  return match ? match[0] : undefined;
61102
61102
  });
61103
61103
  buildEnvContext = memoize_default(async () => {
@@ -61137,9 +61137,9 @@ var init_metadata = __esm(() => {
61137
61137
  isGithubAction: isEnvTruthy(process.env.GITHUB_ACTIONS),
61138
61138
  isTheusCodeAction: isEnvTruthy(process.env.THEUS_CODE_ACTION),
61139
61139
  isTheusAiAuth: isTheusAISubscriber(),
61140
- version: { VERSION: "0.2.45", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
61140
+ version: { VERSION: "0.2.46", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
61141
61141
  versionBase: getVersionBase(),
61142
- buildTime: { VERSION: "0.2.45", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.BUILD_TIME,
61142
+ buildTime: { VERSION: "0.2.46", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.BUILD_TIME,
61143
61143
  deploymentEnvironment: env3.detectDeploymentEnvironment(),
61144
61144
  ...isEnvTruthy(process.env.GITHUB_ACTIONS) && {
61145
61145
  githubEventName: process.env.GITHUB_EVENT_NAME,
@@ -61805,7 +61805,7 @@ function initialize1PEventLogging() {
61805
61805
  const platform2 = getPlatform();
61806
61806
  const attributes = {
61807
61807
  [ATTR_SERVICE_NAME]: "theus-code",
61808
- [ATTR_SERVICE_VERSION]: { VERSION: "0.2.45", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
61808
+ [ATTR_SERVICE_VERSION]: { VERSION: "0.2.46", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
61809
61809
  };
61810
61810
  if (platform2 === "wsl") {
61811
61811
  const wslVersion = getWslVersion();
@@ -61832,7 +61832,7 @@ function initialize1PEventLogging() {
61832
61832
  })
61833
61833
  ]
61834
61834
  });
61835
- firstPartyEventLogger = firstPartyEventLoggerProvider.getLogger("com.theus.theus_code.events", { VERSION: "0.2.45", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION);
61835
+ firstPartyEventLogger = firstPartyEventLoggerProvider.getLogger("com.theus.theus_code.events", { VERSION: "0.2.46", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION);
61836
61836
  }
61837
61837
  async function reinitialize1PEventLoggingIfConfigChanged() {
61838
61838
  if (!is1PEventLoggingEnabled() || !firstPartyEventLoggerProvider) {
@@ -63703,7 +63703,7 @@ function getAttributionHeader(fingerprint) {
63703
63703
  if (!isAttributionHeaderEnabled()) {
63704
63704
  return "";
63705
63705
  }
63706
- const version2 = `${{ VERSION: "0.2.45", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION}.${fingerprint}`;
63706
+ const version2 = `${{ VERSION: "0.2.46", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION}.${fingerprint}`;
63707
63707
  const entrypoint = process.env.THEUS_CODE_ENTRYPOINT ?? "unknown";
63708
63708
  const cch = "";
63709
63709
  const workload = getWorkload();
@@ -107814,7 +107814,7 @@ Complete the user's request by providing accurate, documentation-based guidance.
107814
107814
  }
107815
107815
  function getFeedbackGuideline() {
107816
107816
  if (isUsing3PServices()) {
107817
- return `- When you cannot find an answer or the feature doesn't exist, direct the user to ${{ VERSION: "0.2.45", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.ISSUES_EXPLAINER}`;
107817
+ return `- When you cannot find an answer or the feature doesn't exist, direct the user to ${{ VERSION: "0.2.46", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.ISSUES_EXPLAINER}`;
107818
107818
  }
107819
107819
  return "- When you cannot find an answer or the feature doesn't exist, direct the user to use /feedback to report a feature request or bug";
107820
107820
  }
@@ -166523,7 +166523,7 @@ function getTelemetryAttributes() {
166523
166523
  attributes["session.id"] = sessionId;
166524
166524
  }
166525
166525
  if (shouldIncludeAttribute("OTEL_METRICS_INCLUDE_VERSION")) {
166526
- attributes["app.version"] = { VERSION: "0.2.45", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION;
166526
+ attributes["app.version"] = { VERSION: "0.2.46", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION;
166527
166527
  }
166528
166528
  const oauthAccount = getOauthAccountInfo();
166529
166529
  if (oauthAccount) {
@@ -202608,7 +202608,7 @@ function getInstallationEnv() {
202608
202608
  return;
202609
202609
  }
202610
202610
  function getTheusCodeVersion() {
202611
- return { VERSION: "0.2.45", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION;
202611
+ return { VERSION: "0.2.46", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION;
202612
202612
  }
202613
202613
  async function getInstalledVSCodeExtensionVersion(command) {
202614
202614
  const { stdout } = await execFileNoThrow(command, ["--list-extensions", "--show-versions"], {
@@ -204126,7 +204126,7 @@ async function getMcpHeadersFromHelper(serverName, config2) {
204126
204126
  if ("scope" in config2 && isMcpServerFromProjectOrLocalSettings(config2) && !getIsNonInteractiveSession()) {
204127
204127
  const hasTrust = checkHasTrustDialogAccepted();
204128
204128
  if (!hasTrust) {
204129
- 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.45", BUILD_TIME: "1970-01-01T00:00:00.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}.`);
204129
+ 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.46", BUILD_TIME: "1970-01-01T00:00:00.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}.`);
204130
204130
  logAntError("MCP headersHelper invoked before trust check", error40);
204131
204131
  logEvent("tengu_mcp_headersHelper_missing_trust", {});
204132
204132
  return null;
@@ -205336,7 +205336,7 @@ async function setupSdkMcpClients(sdkMcpConfigs, sendMcpMessage) {
205336
205336
  const client2 = new Client({
205337
205337
  name: "theus-code",
205338
205338
  title: "Theus",
205339
- version: { VERSION: "0.2.45", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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",
205339
+ version: { VERSION: "0.2.46", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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",
205340
205340
  description: "Theus's agentic coding tool",
205341
205341
  websiteUrl: PRODUCT_URL
205342
205342
  }, {
@@ -205690,7 +205690,7 @@ var init_client5 = __esm(() => {
205690
205690
  const client2 = new Client({
205691
205691
  name: "theus-code",
205692
205692
  title: "Theus",
205693
- version: { VERSION: "0.2.45", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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",
205693
+ version: { VERSION: "0.2.46", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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",
205694
205694
  description: "Theus's agentic coding tool",
205695
205695
  websiteUrl: PRODUCT_URL
205696
205696
  }, {
@@ -216268,7 +216268,7 @@ async function initializeBetaTracing(resource) {
216268
216268
  });
216269
216269
  logs.setGlobalLoggerProvider(loggerProvider);
216270
216270
  setLoggerProvider(loggerProvider);
216271
- const eventLogger = logs.getLogger("com.theus.theus_code.events", { VERSION: "0.2.45", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION);
216271
+ const eventLogger = logs.getLogger("com.theus.theus_code.events", { VERSION: "0.2.46", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION);
216272
216272
  setEventLogger(eventLogger);
216273
216273
  process.on("beforeExit", async () => {
216274
216274
  await loggerProvider?.forceFlush();
@@ -216308,7 +216308,7 @@ async function initializeTelemetry() {
216308
216308
  const platform4 = getPlatform();
216309
216309
  const baseAttributes = {
216310
216310
  [ATTR_SERVICE_NAME]: "theus-code",
216311
- [ATTR_SERVICE_VERSION]: { VERSION: "0.2.45", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
216311
+ [ATTR_SERVICE_VERSION]: { VERSION: "0.2.46", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
216312
216312
  };
216313
216313
  if (platform4 === "wsl") {
216314
216314
  const wslVersion = getWslVersion();
@@ -216353,7 +216353,7 @@ async function initializeTelemetry() {
216353
216353
  } catch {}
216354
216354
  };
216355
216355
  registerCleanup(shutdownTelemetry2);
216356
- return meterProvider2.getMeter("com.theus.theus_code", { VERSION: "0.2.45", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION);
216356
+ return meterProvider2.getMeter("com.theus.theus_code", { VERSION: "0.2.46", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION);
216357
216357
  }
216358
216358
  const meterProvider = new MeterProvider({
216359
216359
  resource,
@@ -216373,7 +216373,7 @@ async function initializeTelemetry() {
216373
216373
  });
216374
216374
  logs.setGlobalLoggerProvider(loggerProvider);
216375
216375
  setLoggerProvider(loggerProvider);
216376
- const eventLogger = logs.getLogger("com.theus.theus_code.events", { VERSION: "0.2.45", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION);
216376
+ const eventLogger = logs.getLogger("com.theus.theus_code.events", { VERSION: "0.2.46", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION);
216377
216377
  setEventLogger(eventLogger);
216378
216378
  logForDebugging("[3P telemetry] Event logger set successfully");
216379
216379
  process.on("beforeExit", async () => {
@@ -216435,7 +216435,7 @@ Current timeout: ${timeoutMs}ms
216435
216435
  }
216436
216436
  };
216437
216437
  registerCleanup(shutdownTelemetry);
216438
- return meterProvider.getMeter("com.theus.theus_code", { VERSION: "0.2.45", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION);
216438
+ return meterProvider.getMeter("com.theus.theus_code", { VERSION: "0.2.46", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION);
216439
216439
  }
216440
216440
  async function flushTelemetry() {
216441
216441
  const meterProvider = getMeterProvider();
@@ -216975,7 +216975,7 @@ async function installOrUpdateTheusPackage(channel2, specificVersion) {
216975
216975
  return "install_failed";
216976
216976
  }
216977
216977
  const versionSpec = specificVersion ? specificVersion : channel2 === "stable" ? "stable" : "latest";
216978
- const result = await execFileNoThrowWithCwd("npm", ["install", `${{ VERSION: "0.2.45", BUILD_TIME: "1970-01-01T00:00:00.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 });
216978
+ const result = await execFileNoThrowWithCwd("npm", ["install", `${{ VERSION: "0.2.46", BUILD_TIME: "1970-01-01T00:00:00.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 });
216979
216979
  if (result.code !== 0) {
216980
216980
  const error40 = new Error(`Failed to install Theus CLI package: ${result.stderr}`);
216981
216981
  logError2(error40);
@@ -217121,9 +217121,9 @@ async function assertMinVersion() {
217121
217121
  if (false) {}
217122
217122
  try {
217123
217123
  const versionConfig = await getDynamicConfig_BLOCKS_ON_INIT("tengu_version_config", { minVersion: "0.0.0" });
217124
- if (versionConfig.minVersion && lt({ VERSION: "0.2.45", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
217124
+ if (versionConfig.minVersion && lt({ VERSION: "0.2.46", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
217125
217125
  console.error(`
217126
- It looks like your version of Theus (${{ VERSION: "0.2.45", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.
217126
+ It looks like your version of Theus (${{ VERSION: "0.2.46", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.
217127
217127
  A newer version (${versionConfig.minVersion} or higher) is required to continue.
217128
217128
 
217129
217129
  To update, please run:
@@ -217264,7 +217264,7 @@ async function getInstallationPrefix() {
217264
217264
  return prefixResult.stdout.trim();
217265
217265
  }
217266
217266
  function getGlobalInstallPackageManager() {
217267
- if ({ VERSION: "0.2.45", BUILD_TIME: "1970-01-01T00:00:00.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") {
217267
+ if ({ VERSION: "0.2.46", BUILD_TIME: "1970-01-01T00:00:00.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") {
217268
217268
  return "npm";
217269
217269
  }
217270
217270
  return env3.isRunningWithBun() ? "bun" : "npm";
@@ -217289,7 +217289,7 @@ async function checkGlobalInstallPermissions() {
217289
217289
  }
217290
217290
  async function getLatestVersion(channel2) {
217291
217291
  const npmTag = channel2 === "stable" ? "stable" : "latest";
217292
- const result = await execFileNoThrowWithCwd("npm", ["view", `${{ VERSION: "0.2.45", BUILD_TIME: "1970-01-01T00:00:00.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() });
217292
+ const result = await execFileNoThrowWithCwd("npm", ["view", `${{ VERSION: "0.2.46", BUILD_TIME: "1970-01-01T00:00:00.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() });
217293
217293
  if (result.code !== 0) {
217294
217294
  logForDebugging(`npm view failed with code ${result.code}`);
217295
217295
  if (result.stderr) {
@@ -217305,7 +217305,7 @@ async function getLatestVersion(channel2) {
217305
217305
  return result.stdout.trim();
217306
217306
  }
217307
217307
  async function getNpmDistTags() {
217308
- const result = await execFileNoThrowWithCwd("npm", ["view", { VERSION: "0.2.45", BUILD_TIME: "1970-01-01T00:00:00.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() });
217308
+ const result = await execFileNoThrowWithCwd("npm", ["view", { VERSION: "0.2.46", BUILD_TIME: "1970-01-01T00:00:00.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() });
217309
217309
  if (result.code !== 0) {
217310
217310
  logForDebugging(`npm view dist-tags failed with code ${result.code}`);
217311
217311
  return { latest: null, stable: null };
@@ -217345,7 +217345,7 @@ async function installGlobalPackage(specificVersion) {
217345
217345
  logError2(new AutoUpdaterError("Another process is currently installing an update"));
217346
217346
  logEvent("tengu_auto_updater_lock_contention", {
217347
217347
  pid: process.pid,
217348
- currentVersion: { VERSION: "0.2.45", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
217348
+ currentVersion: { VERSION: "0.2.46", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
217349
217349
  });
217350
217350
  return "in_progress";
217351
217351
  }
@@ -217354,7 +217354,7 @@ async function installGlobalPackage(specificVersion) {
217354
217354
  if (!env3.isRunningWithBun() && env3.isNpmFromWindowsPath()) {
217355
217355
  logError2(new Error("Windows NPM detected in WSL environment"));
217356
217356
  logEvent("tengu_auto_updater_windows_npm_in_wsl", {
217357
- currentVersion: { VERSION: "0.2.45", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
217357
+ currentVersion: { VERSION: "0.2.46", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
217358
217358
  });
217359
217359
  console.error(`
217360
217360
  Error: Windows NPM detected in WSL
@@ -217373,7 +217373,7 @@ To fix this issue:
217373
217373
  if (!hasPermissions) {
217374
217374
  return "no_permissions";
217375
217375
  }
217376
- const packageSpec = specificVersion ? `${{ VERSION: "0.2.45", BUILD_TIME: "1970-01-01T00:00:00.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.45", BUILD_TIME: "1970-01-01T00:00:00.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;
217376
+ const packageSpec = specificVersion ? `${{ VERSION: "0.2.46", BUILD_TIME: "1970-01-01T00:00:00.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.46", BUILD_TIME: "1970-01-01T00:00:00.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;
217377
217377
  const packageManager = getGlobalInstallPackageManager();
217378
217378
  const installResult = await execFileNoThrowWithCwd(packageManager, ["install", "-g", packageSpec], { cwd: homedir18() });
217379
217379
  if (installResult.code !== 0) {
@@ -217701,8 +217701,8 @@ async function detectMultipleInstallations() {
217701
217701
  installations.push({ type: "npm-local", path: localPath });
217702
217702
  }
217703
217703
  const packagesToCheck = ["@theus-ai/theus-code"];
217704
- if ({ VERSION: "0.2.45", BUILD_TIME: "1970-01-01T00:00:00.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.45", BUILD_TIME: "1970-01-01T00:00:00.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") {
217705
- packagesToCheck.push({ VERSION: "0.2.45", BUILD_TIME: "1970-01-01T00:00:00.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);
217704
+ if ({ VERSION: "0.2.46", BUILD_TIME: "1970-01-01T00:00:00.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.46", BUILD_TIME: "1970-01-01T00:00:00.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") {
217705
+ packagesToCheck.push({ VERSION: "0.2.46", BUILD_TIME: "1970-01-01T00:00:00.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);
217706
217706
  }
217707
217707
  const npmResult = await execFileNoThrow("npm", [
217708
217708
  "-g",
@@ -217885,7 +217885,7 @@ function detectLinuxGlobPatternWarnings() {
217885
217885
  }
217886
217886
  async function getDoctorDiagnostic() {
217887
217887
  const installationType = await getCurrentInstallationType();
217888
- const version2 = { VERSION: "0.2.45", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.45", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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";
217888
+ const version2 = { VERSION: "0.2.46", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.46", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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";
217889
217889
  const installationPath = await getInstallationPath();
217890
217890
  const invokedBinary = getInvokedBinary();
217891
217891
  const multipleInstallations = await detectMultipleInstallations();
@@ -217897,8 +217897,8 @@ async function getDoctorDiagnostic() {
217897
217897
  for (const install of npmInstalls) {
217898
217898
  if (install.type === "npm-global") {
217899
217899
  let uninstallCmd = "npm -g uninstall @theus-ai/theus-code";
217900
- if ({ VERSION: "0.2.45", BUILD_TIME: "1970-01-01T00:00:00.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.45", BUILD_TIME: "1970-01-01T00:00:00.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") {
217901
- uninstallCmd += ` && npm -g uninstall ${{ VERSION: "0.2.45", BUILD_TIME: "1970-01-01T00:00:00.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}`;
217900
+ if ({ VERSION: "0.2.46", BUILD_TIME: "1970-01-01T00:00:00.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.46", BUILD_TIME: "1970-01-01T00:00:00.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") {
217901
+ uninstallCmd += ` && npm -g uninstall ${{ VERSION: "0.2.46", BUILD_TIME: "1970-01-01T00:00:00.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}`;
217902
217902
  }
217903
217903
  warnings.push({
217904
217904
  issue: `Leftover npm global installation at ${install.path}`,
@@ -218010,7 +218010,7 @@ async function getLatestVersionFromArtifactory(tag2 = "latest") {
218010
218010
  const startTime2 = Date.now();
218011
218011
  const { stdout, code, stderr } = await execFileNoThrowWithCwd("npm", [
218012
218012
  "view",
218013
- `${{ VERSION: "0.2.45", BUILD_TIME: "1970-01-01T00:00:00.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}`,
218013
+ `${{ VERSION: "0.2.46", BUILD_TIME: "1970-01-01T00:00:00.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}`,
218014
218014
  "version",
218015
218015
  "--prefer-online",
218016
218016
  "--registry",
@@ -218034,7 +218034,7 @@ async function getLatestVersionFromArtifactory(tag2 = "latest") {
218034
218034
  latency_ms: latencyMs,
218035
218035
  source_npm: true
218036
218036
  });
218037
- logForDebugging(`npm view ${{ VERSION: "0.2.45", BUILD_TIME: "1970-01-01T00:00:00.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}`);
218037
+ logForDebugging(`npm view ${{ VERSION: "0.2.46", BUILD_TIME: "1970-01-01T00:00:00.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}`);
218038
218038
  const latestVersion = stdout.trim();
218039
218039
  return latestVersion;
218040
218040
  }
@@ -218090,7 +218090,7 @@ async function downloadVersionFromArtifactory(version2, stagingPath) {
218090
218090
  const fs3 = getFsImplementation();
218091
218091
  await fs3.rm(stagingPath, { recursive: true, force: true });
218092
218092
  const platform4 = getPlatform2();
218093
- const platformPackageName = `${{ VERSION: "0.2.45", BUILD_TIME: "1970-01-01T00:00:00.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}`;
218093
+ const platformPackageName = `${{ VERSION: "0.2.46", BUILD_TIME: "1970-01-01T00:00:00.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}`;
218094
218094
  logForDebugging(`Fetching integrity hash for ${platformPackageName}@${version2}`);
218095
218095
  const {
218096
218096
  stdout: integrityOutput,
@@ -218119,7 +218119,7 @@ async function downloadVersionFromArtifactory(version2, stagingPath) {
218119
218119
  name: "theus-native-installer",
218120
218120
  version: "0.0.1",
218121
218121
  dependencies: {
218122
- [{ VERSION: "0.2.45", BUILD_TIME: "1970-01-01T00:00:00.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
218122
+ [{ VERSION: "0.2.46", BUILD_TIME: "1970-01-01T00:00:00.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
218123
218123
  }
218124
218124
  };
218125
218125
  const packageLock = {
@@ -218132,10 +218132,10 @@ async function downloadVersionFromArtifactory(version2, stagingPath) {
218132
218132
  name: "theus-native-installer",
218133
218133
  version: "0.0.1",
218134
218134
  dependencies: {
218135
- [{ VERSION: "0.2.45", BUILD_TIME: "1970-01-01T00:00:00.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
218135
+ [{ VERSION: "0.2.46", BUILD_TIME: "1970-01-01T00:00:00.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
218136
218136
  }
218137
218137
  },
218138
- [`node_modules/${{ VERSION: "0.2.45", BUILD_TIME: "1970-01-01T00:00:00.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}`]: {
218138
+ [`node_modules/${{ VERSION: "0.2.46", BUILD_TIME: "1970-01-01T00:00:00.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}`]: {
218139
218139
  version: version2,
218140
218140
  optionalDependencies: {
218141
218141
  [platformPackageName]: version2
@@ -218157,7 +218157,7 @@ async function downloadVersionFromArtifactory(version2, stagingPath) {
218157
218157
  if (result.code !== 0) {
218158
218158
  throw new Error(`npm ci failed with code ${result.code}: ${result.stderr}`);
218159
218159
  }
218160
- logForDebugging(`Successfully downloaded and verified ${{ VERSION: "0.2.45", BUILD_TIME: "1970-01-01T00:00:00.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}`);
218160
+ logForDebugging(`Successfully downloaded and verified ${{ VERSION: "0.2.46", BUILD_TIME: "1970-01-01T00:00:00.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}`);
218161
218161
  }
218162
218162
  function getStallTimeoutMs() {
218163
218163
  return Number(process.env.THEUS_CODE_STALL_TIMEOUT_MS_FOR_TESTING) || DEFAULT_STALL_TIMEOUT_MS;
@@ -218820,8 +218820,8 @@ async function updateLatest(channelOrVersion, forceReinstall = false) {
218820
218820
  const maxVersion = await getMaxVersion();
218821
218821
  if (maxVersion && gt(version2, maxVersion)) {
218822
218822
  logForDebugging(`Native installer: maxVersion ${maxVersion} is set, capping update from ${version2} to ${maxVersion}`);
218823
- if (gte({ VERSION: "0.2.45", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
218824
- logForDebugging(`Native installer: current version ${{ VERSION: "0.2.45", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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`);
218823
+ if (gte({ VERSION: "0.2.46", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
218824
+ logForDebugging(`Native installer: current version ${{ VERSION: "0.2.46", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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`);
218825
218825
  logEvent("tengu_native_update_skipped_max_version", {
218826
218826
  latency_ms: Date.now() - startTime2,
218827
218827
  max_version: maxVersion,
@@ -218832,7 +218832,7 @@ async function updateLatest(channelOrVersion, forceReinstall = false) {
218832
218832
  version2 = maxVersion;
218833
218833
  }
218834
218834
  }
218835
- if (!forceReinstall && version2 === { VERSION: "0.2.45", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
218835
+ if (!forceReinstall && version2 === { VERSION: "0.2.46", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
218836
218836
  logForDebugging(`Found ${version2} at ${executablePath}, skipping install`);
218837
218837
  logEvent("tengu_native_update_complete", {
218838
218838
  latency_ms: Date.now() - startTime2,
@@ -219582,8 +219582,8 @@ async function cleanupNpmInstallations() {
219582
219582
  } else if (codePackageResult.error) {
219583
219583
  errors4.push(codePackageResult.error);
219584
219584
  }
219585
- if ({ VERSION: "0.2.45", BUILD_TIME: "1970-01-01T00:00:00.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.45", BUILD_TIME: "1970-01-01T00:00:00.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") {
219586
- const macroPackageResult = await attemptNpmUninstall({ VERSION: "0.2.45", BUILD_TIME: "1970-01-01T00:00:00.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);
219585
+ if ({ VERSION: "0.2.46", BUILD_TIME: "1970-01-01T00:00:00.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.46", BUILD_TIME: "1970-01-01T00:00:00.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") {
219586
+ const macroPackageResult = await attemptNpmUninstall({ VERSION: "0.2.46", BUILD_TIME: "1970-01-01T00:00:00.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);
219587
219587
  if (macroPackageResult.success) {
219588
219588
  removed++;
219589
219589
  if (macroPackageResult.warning) {
@@ -230069,6 +230069,16 @@ var init_ConsoleOAuthFlow = __esm(() => {
230069
230069
  var NOVEDADES;
230070
230070
  var init_data = __esm(() => {
230071
230071
  NOVEDADES = [
230072
+ {
230073
+ version: "v0.2.46",
230074
+ fecha: "2026-07-24",
230075
+ titulo: "Anima una imagen de tu disco, sin subirla a ning\xFAn sitio",
230076
+ puntos: [
230077
+ "Ya puedes animar una imagen que tengas en el proyecto \u2014 incluida la que Theus acaba de generar \u2014 pas\xE1ndole simplemente su ruta. Antes solo val\xEDa un enlace ya publicado en internet.",
230078
+ "Theus la publica por ti con un enlace temporal que caduca a las 2 horas, porque el modelo de v\xEDdeo necesita descargarla; t\xFA no tienes que subirla a ninguna parte.",
230079
+ "Si la ruta no existe o el formato no sirve, te lo dice antes de intentarlo en vez de fallar con un error opaco."
230080
+ ]
230081
+ },
230072
230082
  {
230073
230083
  version: "v0.2.45",
230074
230084
  fecha: "2026-07-24",
@@ -242789,7 +242799,7 @@ var init_entryApiKey = __esm(() => {
242789
242799
  // services/providers/adapters/media.ts
242790
242800
  import { existsSync as existsSync5, readFileSync as readFileSync13 } from "fs";
242791
242801
  import { mkdir as mkdir17, writeFile as writeFile18 } from "fs/promises";
242792
- import { join as join69, relative as relative9 } from "path";
242802
+ import { isAbsolute as isAbsolute14, join as join69, relative as relative9 } from "path";
242793
242803
  async function buildPreview(bytes, mediaType) {
242794
242804
  try {
242795
242805
  const compressed = await compressImageBufferWithTokenLimit(bytes, PREVIEW_TOKEN_BUDGET, mediaType);
@@ -242901,6 +242911,44 @@ function sleep3(ms, signal) {
242901
242911
  signal?.addEventListener("abort", onAbort, { once: true });
242902
242912
  });
242903
242913
  }
242914
+ async function publicarImagenLocal(ruta, gateway, signal) {
242915
+ const abs = isAbsolute14(ruta) ? ruta : join69(process.cwd(), ruta);
242916
+ if (!existsSync5(abs)) {
242917
+ return {
242918
+ error: `No encuentro la imagen \xAB${ruta}\xBB. P\xE1same una ruta que exista o el enlace p\xFAblico de la imagen.`
242919
+ };
242920
+ }
242921
+ const ext = (abs.split(".").pop() ?? "").toLowerCase();
242922
+ const mime = MIME_POR_EXT[ext];
242923
+ if (!mime) {
242924
+ return {
242925
+ error: `El formato \xAB.${ext}\xBB no sirve como primer fotograma. Usa PNG, JPEG, GIF o WebP.`
242926
+ };
242927
+ }
242928
+ let b64;
242929
+ try {
242930
+ b64 = readFileSync13(abs).toString("base64");
242931
+ } catch (err2) {
242932
+ return { error: `No pude leer \xAB${ruta}\xBB: ${err2.message}` };
242933
+ }
242934
+ const res = await fetch(`${gateway.baseURL}/media/uploads`, {
242935
+ method: "POST",
242936
+ headers: {
242937
+ "content-type": "application/json",
242938
+ authorization: `Bearer ${gateway.apiKey}`
242939
+ },
242940
+ body: JSON.stringify({ mime, data_b64: b64 }),
242941
+ signal
242942
+ });
242943
+ if (!res.ok) {
242944
+ return { error: `No se pudo publicar la imagen: ${await gatewayErrorProse(res)}` };
242945
+ }
242946
+ const json2 = await res.json();
242947
+ if (typeof json2?.url !== "string" || !json2.url) {
242948
+ return { error: "El gateway no devolvi\xF3 la URL de la imagen publicada." };
242949
+ }
242950
+ return { url: json2.url };
242951
+ }
242904
242952
  async function writeMedia(fileName, bytes) {
242905
242953
  const cwd2 = process.cwd();
242906
242954
  const dir = join69(cwd2, MEDIA_DIR);
@@ -242972,12 +243020,19 @@ Para verla: \`open ${rel}\` (no la leas al contexto).`, start, imageModel, { gat
242972
243020
  };
242973
243021
  const semilla = request.params?.imageUrl;
242974
243022
  if (typeof semilla === "string" && semilla.trim()) {
242975
- const u4 = semilla.trim();
242976
- if (!/^https?:\/\//i.test(u4)) {
242977
- return respond("video", `Para animar una imagen necesito su URL p\xFAblica (https://\u2026): el proveedor la descarga, as\xED que una ruta local como \xAB${u4}\xBB no le sirve. Sube la imagen a alg\xFAn sitio accesible y p\xE1same el enlace.`, start, videoModel);
243023
+ const bruto = semilla.trim();
243024
+ let url3;
243025
+ if (/^https?:\/\//i.test(bruto)) {
243026
+ url3 = bruto;
243027
+ } else {
243028
+ const publicada = await publicarImagenLocal(bruto, gateway, request.signal);
243029
+ if ("error" in publicada) {
243030
+ return respond("video", publicada.error, start, videoModel);
243031
+ }
243032
+ url3 = publicada.url;
242978
243033
  }
242979
243034
  cuerpo.frame_images = [
242980
- { type: "image_url", image_url: { url: u4 }, frame_type: "first_frame" }
243035
+ { type: "image_url", image_url: { url: url3 }, frame_type: "first_frame" }
242981
243036
  ];
242982
243037
  }
242983
243038
  const created = await fetch(`${gateway.baseURL}/videos`, {
@@ -243073,13 +243128,20 @@ Para verla: \`open ${rel}\` (no la leas al contexto).`, start, imageModel, { gat
243073
243128
  }
243074
243129
  };
243075
243130
  }
243076
- var OFFICIAL_PROVIDER_ID = "theus-official", MEDIA_DIR = "theus-media", DEFAULT_IMAGE_MODEL = "theus-image-flash", DEFAULT_VIDEO_MODEL = "theus-video", VIDEO_POLL_MS = 5000, VIDEO_TIMEOUT_MS, PREVIEW_TOKEN_BUDGET = 700, LOGIN_HINT = "Inicia sesi\xF3n con `theus login` para generar im\xE1genes/video con tu suscripci\xF3n.", CAPS3;
243131
+ var OFFICIAL_PROVIDER_ID = "theus-official", MEDIA_DIR = "theus-media", DEFAULT_IMAGE_MODEL = "theus-image-flash", DEFAULT_VIDEO_MODEL = "theus-video", VIDEO_POLL_MS = 5000, VIDEO_TIMEOUT_MS, PREVIEW_TOKEN_BUDGET = 700, LOGIN_HINT = "Inicia sesi\xF3n con `theus login` para generar im\xE1genes/video con tu suscripci\xF3n.", CAPS3, MIME_POR_EXT;
243077
243132
  var init_media = __esm(() => {
243078
243133
  init_imageResizer();
243079
243134
  init_entryApiKey();
243080
243135
  init_registry2();
243081
243136
  VIDEO_TIMEOUT_MS = 10 * 60000;
243082
243137
  CAPS3 = ["image", "video"];
243138
+ MIME_POR_EXT = {
243139
+ png: "image/png",
243140
+ jpg: "image/jpeg",
243141
+ jpeg: "image/jpeg",
243142
+ gif: "image/gif",
243143
+ webp: "image/webp"
243144
+ };
243083
243145
  });
243084
243146
 
243085
243147
  // services/providers/adapters/openai.ts
@@ -249113,7 +249175,7 @@ import {
249113
249175
  stat as stat22,
249114
249176
  unlink as unlink9
249115
249177
  } from "fs/promises";
249116
- import { dirname as dirname30, isAbsolute as isAbsolute14, join as join76, relative as relative12 } from "path";
249178
+ import { dirname as dirname30, isAbsolute as isAbsolute15, join as join76, relative as relative12 } from "path";
249117
249179
  import { inspect as inspect3 } from "util";
249118
249180
  function fileHistoryEnabled() {
249119
249181
  if (getIsNonInteractiveSession()) {
@@ -249601,7 +249663,7 @@ function getBackupFileNameFirstVersion(trackingPath, state) {
249601
249663
  return;
249602
249664
  }
249603
249665
  function maybeShortenFilePath(filePath) {
249604
- if (!isAbsolute14(filePath)) {
249666
+ if (!isAbsolute15(filePath)) {
249605
249667
  return filePath;
249606
249668
  }
249607
249669
  const cwd2 = getOriginalCwd();
@@ -249611,7 +249673,7 @@ function maybeShortenFilePath(filePath) {
249611
249673
  return filePath;
249612
249674
  }
249613
249675
  function maybeExpandFilePath(filePath) {
249614
- if (isAbsolute14(filePath)) {
249676
+ if (isAbsolute15(filePath)) {
249615
249677
  return filePath;
249616
249678
  }
249617
249679
  return join76(getOriginalCwd(), filePath);
@@ -250944,7 +251006,7 @@ var init_hooksConfigSnapshot = __esm(() => {
250944
251006
  });
250945
251007
 
250946
251008
  // utils/hooks/fileChangedWatcher.ts
250947
- import { isAbsolute as isAbsolute15, join as join79 } from "path";
251009
+ import { isAbsolute as isAbsolute16, join as join79 } from "path";
250948
251010
  function setEnvHookNotifier(cb) {
250949
251011
  notifyCallback = cb;
250950
251012
  }
@@ -250972,7 +251034,7 @@ function resolveWatchPaths(config2) {
250972
251034
  for (const name of m.matcher.split("|").map((s) => s.trim())) {
250973
251035
  if (!name)
250974
251036
  continue;
250975
- staticPaths.push(isAbsolute15(name) ? name : join79(currentCwd, name));
251037
+ staticPaths.push(isAbsolute16(name) ? name : join79(currentCwd, name));
250976
251038
  }
250977
251039
  }
250978
251040
  return [...new Set([...staticPaths, ...dynamicWatchPaths])];
@@ -260755,7 +260817,7 @@ var init_powershellProvider = __esm(() => {
260755
260817
  import { execFileSync as execFileSync2, spawn as spawn6 } from "child_process";
260756
260818
  import { constants as fsConstants4, readFileSync as readFileSync16, unlinkSync as unlinkSync2 } from "fs";
260757
260819
  import { mkdir as mkdir23, open as open9, realpath as realpath9 } from "fs/promises";
260758
- import { isAbsolute as isAbsolute16, resolve as resolve28 } from "path";
260820
+ import { isAbsolute as isAbsolute17, resolve as resolve28 } from "path";
260759
260821
  import { join as posixJoin3 } from "path/posix";
260760
260822
  import { accessSync } from "fs";
260761
260823
  function isExecutable(shellPath) {
@@ -260949,7 +261011,7 @@ async function exec2(command, abortSignal, shellType, options2) {
260949
261011
  }
260950
261012
  }
260951
261013
  function setCwd(path13, relativeTo) {
260952
- const resolved = isAbsolute16(path13) ? path13 : resolve28(relativeTo || getFsImplementation().cwd(), path13);
261014
+ const resolved = isAbsolute17(path13) ? path13 : resolve28(relativeTo || getFsImplementation().cwd(), path13);
260953
261015
  let physicalPath;
260954
261016
  try {
260955
261017
  physicalPath = getFsImplementation().realpathSync(resolved);
@@ -264146,7 +264208,7 @@ var init_modeValidation = __esm(() => {
264146
264208
 
264147
264209
  // tools/PowerShellTool/pathValidation.ts
264148
264210
  import { homedir as homedir26 } from "os";
264149
- import { isAbsolute as isAbsolute17, resolve as resolve30 } from "path";
264211
+ import { isAbsolute as isAbsolute18, resolve as resolve30 } from "path";
264150
264212
  function matchesParam(paramLower, paramList) {
264151
264213
  for (const p of paramList) {
264152
264214
  if (p === paramLower || paramLower.length > 1 && p.startsWith(paramLower)) {
@@ -264254,7 +264316,7 @@ function checkDenyRuleForGuessedPath(strippedPath, cwd2, toolPermissionContext,
264254
264316
  if (!strippedPath || strippedPath.includes("\x00"))
264255
264317
  return null;
264256
264318
  const tildeExpanded = expandTilde2(strippedPath);
264257
- const abs = isAbsolute17(tildeExpanded) ? tildeExpanded : resolve30(cwd2, tildeExpanded);
264319
+ const abs = isAbsolute18(tildeExpanded) ? tildeExpanded : resolve30(cwd2, tildeExpanded);
264258
264320
  const { resolvedPath } = safeResolvePath(getFsImplementation(), abs);
264259
264321
  const permissionType = operationType === "read" ? "read" : "edit";
264260
264322
  const denyRule = matchingRuleForInput(resolvedPath, toolPermissionContext, permissionType, "deny");
@@ -264344,7 +264406,7 @@ function validatePath2(filePath, cwd2, toolPermissionContext, operationType) {
264344
264406
  };
264345
264407
  }
264346
264408
  if (containsPathTraversal(normalizedPath)) {
264347
- const absolutePath2 = isAbsolute17(normalizedPath) ? normalizedPath : resolve30(cwd2, normalizedPath);
264409
+ const absolutePath2 = isAbsolute18(normalizedPath) ? normalizedPath : resolve30(cwd2, normalizedPath);
264348
264410
  const { resolvedPath: resolvedPath3, isCanonical: isCanonical2 } = safeResolvePath(getFsImplementation(), absolutePath2);
264349
264411
  const result2 = isPathAllowed2(resolvedPath3, toolPermissionContext, operationType, isCanonical2 ? [resolvedPath3] : undefined);
264350
264412
  return {
@@ -264354,7 +264416,7 @@ function validatePath2(filePath, cwd2, toolPermissionContext, operationType) {
264354
264416
  };
264355
264417
  }
264356
264418
  const basePath = getGlobBaseDirectory2(normalizedPath);
264357
- const absoluteBasePath = isAbsolute17(basePath) ? basePath : resolve30(cwd2, basePath);
264419
+ const absoluteBasePath = isAbsolute18(basePath) ? basePath : resolve30(cwd2, basePath);
264358
264420
  const { resolvedPath: resolvedPath2 } = safeResolvePath(getFsImplementation(), absoluteBasePath);
264359
264421
  const permissionType = operationType === "read" ? "read" : "edit";
264360
264422
  const denyRule = matchingRuleForInput(resolvedPath2, toolPermissionContext, permissionType, "deny");
@@ -264374,7 +264436,7 @@ function validatePath2(filePath, cwd2, toolPermissionContext, operationType) {
264374
264436
  }
264375
264437
  };
264376
264438
  }
264377
- const absolutePath = isAbsolute17(normalizedPath) ? normalizedPath : resolve30(cwd2, normalizedPath);
264439
+ const absolutePath = isAbsolute18(normalizedPath) ? normalizedPath : resolve30(cwd2, normalizedPath);
264378
264440
  const { resolvedPath, isCanonical } = safeResolvePath(getFsImplementation(), absolutePath);
264379
264441
  const result = isPathAllowed2(resolvedPath, toolPermissionContext, operationType, isCanonical ? [resolvedPath] : undefined);
264380
264442
  return {
@@ -268165,7 +268227,7 @@ import { realpath as realpath10 } from "fs/promises";
268165
268227
  import {
268166
268228
  basename as basename24,
268167
268229
  dirname as dirname32,
268168
- isAbsolute as isAbsolute18,
268230
+ isAbsolute as isAbsolute19,
268169
268231
  join as join85,
268170
268232
  sep as pathSep,
268171
268233
  relative as relative15
@@ -268568,8 +268630,8 @@ function activateConditionalSkillsForPaths(filePaths, cwd2) {
268568
268630
  }
268569
268631
  const skillIgnore = import_ignore2.default().add(skill.paths);
268570
268632
  for (const filePath of filePaths) {
268571
- const relativePath = isAbsolute18(filePath) ? relative15(cwd2, filePath) : filePath;
268572
- if (!relativePath || relativePath.startsWith("..") || isAbsolute18(relativePath)) {
268633
+ const relativePath = isAbsolute19(filePath) ? relative15(cwd2, filePath) : filePath;
268634
+ if (!relativePath || relativePath.startsWith("..") || isAbsolute19(relativePath)) {
268573
268635
  continue;
268574
268636
  }
268575
268637
  if (skillIgnore.ignores(relativePath)) {
@@ -272332,7 +272394,7 @@ var init_UI8 = __esm(() => {
272332
272394
  });
272333
272395
 
272334
272396
  // tools/FileEditTool/FileEditTool.ts
272335
- import { dirname as dirname34, isAbsolute as isAbsolute19, sep as sep18 } from "path";
272397
+ import { dirname as dirname34, isAbsolute as isAbsolute20, sep as sep18 } from "path";
272336
272398
  function readFileForEdit(absoluteFilePath) {
272337
272399
  try {
272338
272400
  const meta = readFileSyncWithMetadata(absoluteFilePath);
@@ -272536,7 +272598,7 @@ var init_FileEditTool = __esm(() => {
272536
272598
  behavior: "ask",
272537
272599
  message: "File has not been read yet. Read it first before writing to it.",
272538
272600
  meta: {
272539
- isFilePathAbsolute: String(isAbsolute19(file_path))
272601
+ isFilePathAbsolute: String(isAbsolute20(file_path))
272540
272602
  },
272541
272603
  errorCode: 6
272542
272604
  };
@@ -272564,7 +272626,7 @@ var init_FileEditTool = __esm(() => {
272564
272626
  message: `String to replace not found in file.
272565
272627
  String: ${old_string}`,
272566
272628
  meta: {
272567
- isFilePathAbsolute: String(isAbsolute19(file_path))
272629
+ isFilePathAbsolute: String(isAbsolute20(file_path))
272568
272630
  },
272569
272631
  errorCode: 8
272570
272632
  };
@@ -272577,7 +272639,7 @@ String: ${old_string}`,
272577
272639
  message: `Found ${matches} matches of the string to replace, but replace_all is false. To replace all occurrences, set replace_all to true. To replace only one occurrence, please provide more context to uniquely identify the instance.
272578
272640
  String: ${old_string}`,
272579
272641
  meta: {
272580
- isFilePathAbsolute: String(isAbsolute19(file_path)),
272642
+ isFilePathAbsolute: String(isAbsolute20(file_path)),
272581
272643
  actualOldString
272582
272644
  },
272583
272645
  errorCode: 9
@@ -272743,7 +272805,7 @@ String: ${old_string}`,
272743
272805
  });
272744
272806
 
272745
272807
  // tools/FileWriteTool/UI.tsx
272746
- import { isAbsolute as isAbsolute20, relative as relative18, resolve as resolve32 } from "path";
272808
+ import { isAbsolute as isAbsolute21, relative as relative18, resolve as resolve32 } from "path";
272747
272809
  function countLines(content) {
272748
272810
  const parts = content.split(EOL3);
272749
272811
  return content.endsWith(EOL3) ? parts.length - 1 : parts.length;
@@ -273067,7 +273129,7 @@ function WriteRejectionBody(t0) {
273067
273129
  }
273068
273130
  async function loadRejectionDiff2(filePath, content) {
273069
273131
  try {
273070
- const fullFilePath = isAbsolute20(filePath) ? filePath : resolve32(getCwd(), filePath);
273132
+ const fullFilePath = isAbsolute21(filePath) ? filePath : resolve32(getCwd(), filePath);
273071
273133
  const handle = await openForScan(fullFilePath);
273072
273134
  if (handle === null)
273073
273135
  return {
@@ -273488,7 +273550,7 @@ var init_FileWriteTool = __esm(() => {
273488
273550
  });
273489
273551
 
273490
273552
  // utils/plugins/orphanedPluginFilter.ts
273491
- import { dirname as dirname36, isAbsolute as isAbsolute21, join as join87, normalize as normalize10, relative as relative19, sep as sep20 } from "path";
273553
+ import { dirname as dirname36, isAbsolute as isAbsolute22, join as join87, normalize as normalize10, relative as relative19, sep as sep20 } from "path";
273492
273554
  async function getGlobExclusionsForPluginCache(searchPath) {
273493
273555
  const cachePath2 = normalize10(join87(getPluginsDirectory(), "cache"));
273494
273556
  if (searchPath && !pathsOverlap(searchPath, cachePath2)) {
@@ -273509,7 +273571,7 @@ async function getGlobExclusionsForPluginCache(searchPath) {
273509
273571
  ], cachePath2, new AbortController().signal);
273510
273572
  cachedExclusions = markers.map((markerPath) => {
273511
273573
  const versionDir = dirname36(markerPath);
273512
- const rel = isAbsolute21(versionDir) ? relative19(cachePath2, versionDir) : versionDir;
273574
+ const rel = isAbsolute22(versionDir) ? relative19(cachePath2, versionDir) : versionDir;
273513
273575
  const posixRelative = rel.replace(/\\/g, "/");
273514
273576
  return `!**/${posixRelative}/**`;
273515
273577
  });
@@ -273538,7 +273600,7 @@ var init_orphanedPluginFilter = __esm(() => {
273538
273600
  });
273539
273601
 
273540
273602
  // utils/glob.ts
273541
- import { basename as basename26, dirname as dirname37, isAbsolute as isAbsolute22, join as join88, sep as sep21 } from "path";
273603
+ import { basename as basename26, dirname as dirname37, isAbsolute as isAbsolute23, join as join88, sep as sep21 } from "path";
273542
273604
  function extractGlobBaseDirectory(pattern) {
273543
273605
  const globChars = /[*?[{]/;
273544
273606
  const match = pattern.match(globChars);
@@ -273565,7 +273627,7 @@ function extractGlobBaseDirectory(pattern) {
273565
273627
  async function glob(filePattern, cwd2, { limit, offset }, abortSignal, toolPermissionContext) {
273566
273628
  let searchDir = cwd2;
273567
273629
  let searchPattern = filePattern;
273568
- if (isAbsolute22(filePattern)) {
273630
+ if (isAbsolute23(filePattern)) {
273569
273631
  const { baseDir, relativePattern } = extractGlobBaseDirectory(filePattern);
273570
273632
  if (baseDir) {
273571
273633
  searchDir = baseDir;
@@ -273590,7 +273652,7 @@ async function glob(filePattern, cwd2, { limit, offset }, abortSignal, toolPermi
273590
273652
  args.push("--glob", exclusion);
273591
273653
  }
273592
273654
  const allPaths = await ripGrep(args, searchDir, abortSignal);
273593
- const absolutePaths = allPaths.map((p) => isAbsolute22(p) ? p : join88(searchDir, p));
273655
+ const absolutePaths = allPaths.map((p) => isAbsolute23(p) ? p : join88(searchDir, p));
273594
273656
  const truncated = absolutePaths.length > offset + limit;
273595
273657
  const files = absolutePaths.slice(offset, offset + limit);
273596
273658
  return { files, truncated };
@@ -274880,7 +274942,7 @@ var init_UI12 = __esm(() => {
274880
274942
  });
274881
274943
 
274882
274944
  // tools/NotebookEditTool/NotebookEditTool.ts
274883
- import { extname as extname13, isAbsolute as isAbsolute23, resolve as resolve33 } from "path";
274945
+ import { extname as extname13, isAbsolute as isAbsolute24, resolve as resolve33 } from "path";
274884
274946
  var inputSchema16, outputSchema13, NotebookEditTool;
274885
274947
  var init_NotebookEditTool = __esm(() => {
274886
274948
  init_fileHistory();
@@ -274990,7 +275052,7 @@ var init_NotebookEditTool = __esm(() => {
274990
275052
  renderToolUseErrorMessage: renderToolUseErrorMessage9,
274991
275053
  renderToolResultMessage: renderToolResultMessage12,
274992
275054
  async validateInput({ notebook_path, cell_type, cell_id, edit_mode = "replace" }, toolUseContext) {
274993
- const fullPath = isAbsolute23(notebook_path) ? notebook_path : resolve33(getCwd(), notebook_path);
275055
+ const fullPath = isAbsolute24(notebook_path) ? notebook_path : resolve33(getCwd(), notebook_path);
274994
275056
  if (fullPath.startsWith("\\\\") || fullPath.startsWith("//")) {
274995
275057
  return { result: true };
274996
275058
  }
@@ -275089,7 +275151,7 @@ var init_NotebookEditTool = __esm(() => {
275089
275151
  cell_type,
275090
275152
  edit_mode: originalEditMode
275091
275153
  }, { readFileState, updateFileHistoryState }, _, parentMessage) {
275092
- const fullPath = isAbsolute23(notebook_path) ? notebook_path : resolve33(getCwd(), notebook_path);
275154
+ const fullPath = isAbsolute24(notebook_path) ? notebook_path : resolve33(getCwd(), notebook_path);
275093
275155
  if (fileHistoryEnabled()) {
275094
275156
  await fileHistoryTrackEdit(updateFileHistoryState, fullPath, parentMessage.uuid);
275095
275157
  }
@@ -276185,7 +276247,7 @@ import { createHash as createHash20, randomUUID as randomUUID19 } from "crypto";
276185
276247
  import { existsSync as existsSync9 } from "fs";
276186
276248
  import { mkdir as mkdir25, readFile as readFile29, writeFile as writeFile25 } from "fs/promises";
276187
276249
  import { homedir as homedir27 } from "os";
276188
- import { basename as basename28, extname as extname14, isAbsolute as isAbsolute24, relative as relative21, resolve as resolve34 } from "path";
276250
+ import { basename as basename28, extname as extname14, isAbsolute as isAbsolute25, relative as relative21, resolve as resolve34 } from "path";
276189
276251
  import { pathToFileURL as pathToFileURL6 } from "url";
276190
276252
  function toErr(e) {
276191
276253
  if (e instanceof Error) {
@@ -276237,7 +276299,7 @@ function looksLikePath(name) {
276237
276299
  function workflowFileCandidates(name, cwd2) {
276238
276300
  const candidates = [];
276239
276301
  if (looksLikePath(name)) {
276240
- const abs = isAbsolute24(name) ? name : resolve34(cwd2, name);
276302
+ const abs = isAbsolute25(name) ? name : resolve34(cwd2, name);
276241
276303
  if (extname14(abs)) {
276242
276304
  candidates.push(abs);
276243
276305
  } else {
@@ -276263,7 +276325,7 @@ function basenameNoExt(p) {
276263
276325
  return ext ? b.slice(0, -ext.length) : b;
276264
276326
  }
276265
276327
  async function loadWorkflowFromFile(filePath) {
276266
- const abs = isAbsolute24(filePath) ? filePath : resolve34(process.cwd(), filePath);
276328
+ const abs = isAbsolute25(filePath) ? filePath : resolve34(process.cwd(), filePath);
276267
276329
  if (!existsSync9(abs)) {
276268
276330
  throw new WorkflowError(`Archivo de workflow no encontrado: ${abs}`);
276269
276331
  }
@@ -276279,7 +276341,7 @@ async function loadWorkflowFromFile(filePath) {
276279
276341
  }
276280
276342
  function isPathInside(child, parent2) {
276281
276343
  const rel = relative21(parent2, child);
276282
- return rel === "" || !rel.startsWith("..") && !isAbsolute24(rel);
276344
+ return rel === "" || !rel.startsWith("..") && !isAbsolute25(rel);
276283
276345
  }
276284
276346
  function assertWorkflowScriptAllowed(info = {}) {
276285
276347
  const { path: scriptPath, cwd: cwd2 = process.cwd(), permissionMode } = info;
@@ -276287,7 +276349,7 @@ function assertWorkflowScriptAllowed(info = {}) {
276287
276349
  return;
276288
276350
  if (typeof scriptPath !== "string" || !scriptPath)
276289
276351
  return;
276290
- const abs = isAbsolute24(scriptPath) ? scriptPath : resolve34(cwd2, scriptPath);
276352
+ const abs = isAbsolute25(scriptPath) ? scriptPath : resolve34(cwd2, scriptPath);
276291
276353
  const allowedRoots = [
276292
276354
  resolve34(cwd2),
276293
276355
  resolve34(homedir27(), ".theus", WORKFLOWS_DIR_NAME)
@@ -278415,7 +278477,7 @@ var init_ProviderTool = __esm(() => {
278415
278477
  combine: exports_external.boolean().optional().describe("Run EVERY enabled provider per capability and fuse them (default: pick the single best)."),
278416
278478
  size: exports_external.string().optional().describe('Imagen: resoluci\xF3n/relaci\xF3n como "1024x1024", "1024x1792" (vertical 9:16) o "1792x1024" (horizontal 16:9). Omite para el default del modelo.'),
278417
278479
  durationSec: exports_external.number().int().positive().optional().describe("Video: duraci\xF3n del clip en segundos (p.ej. 4, 6, 8). Omite para el default del modelo."),
278418
- imagenUrl: exports_external.string().optional().describe("Video a partir de una IMAGEN: URL p\xFAblica https de la imagen que se usar\xE1 como primer fotograma. El proveedor la descarga, as\xED que una ruta local del disco NO sirve.")
278480
+ imagenUrl: exports_external.string().optional().describe("Video a partir de una IMAGEN: la imagen que se usar\xE1 como primer fotograma. Acepta un enlace https o la RUTA LOCAL de un archivo (p. ej. la imagen que acabas de generar en theus-media/); en ese caso se publica sola con una URL temporal.")
278419
278481
  }));
278420
278482
  ProviderTool = buildTool({
278421
278483
  name: PROVIDER_TOOL_NAME,
@@ -304790,9 +304852,9 @@ function getTheusEnvMetadata() {
304790
304852
  };
304791
304853
  }
304792
304854
  function getBuildAgeMinutes() {
304793
- if (!{ VERSION: "0.2.45", BUILD_TIME: "1970-01-01T00:00:00.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)
304855
+ if (!{ VERSION: "0.2.46", BUILD_TIME: "1970-01-01T00:00:00.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)
304794
304856
  return;
304795
- const buildTime = new Date({ VERSION: "0.2.45", BUILD_TIME: "1970-01-01T00:00:00.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();
304857
+ const buildTime = new Date({ VERSION: "0.2.46", BUILD_TIME: "1970-01-01T00:00:00.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();
304796
304858
  if (isNaN(buildTime))
304797
304859
  return;
304798
304860
  return Math.floor((Date.now() - buildTime) / 60000);
@@ -313642,7 +313704,7 @@ __export(exports_marketplaceManager, {
313642
313704
  _test: () => _test
313643
313705
  });
313644
313706
  import { writeFile as writeFile35 } from "fs/promises";
313645
- import { basename as basename34, dirname as dirname45, isAbsolute as isAbsolute25, join as join109, resolve as resolve38, sep as sep23 } from "path";
313707
+ import { basename as basename34, dirname as dirname45, isAbsolute as isAbsolute26, join as join109, resolve as resolve38, sep as sep23 } from "path";
313646
313708
  function getKnownMarketplacesFile() {
313647
313709
  return join109(getPluginsDirectory(), "known_marketplaces.json");
313648
313710
  }
@@ -314396,7 +314458,7 @@ Technical details: ${errorMsg}`);
314396
314458
  }
314397
314459
  async function addMarketplaceSource(source, onProgress) {
314398
314460
  let resolvedSource = source;
314399
- if (isLocalMarketplaceSource(source) && !isAbsolute25(source.path)) {
314461
+ if (isLocalMarketplaceSource(source) && !isAbsolute26(source.path)) {
314400
314462
  resolvedSource = { ...source, path: resolve38(source.path) };
314401
314463
  }
314402
314464
  if (!isSourceAllowedByPolicy(resolvedSource)) {
@@ -314809,7 +314871,7 @@ var init_marketplaceManager = __esm(() => {
314809
314871
  if (!entry) {
314810
314872
  throw new Error(`Marketplace '${name}' not found in configuration. Available marketplaces: ${Object.keys(config2).join(", ")}`);
314811
314873
  }
314812
- if (isLocalMarketplaceSource(entry.source) && !isAbsolute25(entry.source.path)) {
314874
+ if (isLocalMarketplaceSource(entry.source) && !isAbsolute26(entry.source.path)) {
314813
314875
  throw new Error(`Marketplace "${name}" has a relative source path (${entry.source.path}) ` + `in known_marketplaces.json \u2014 this is stale state from an older ` + `Theus version. Run 'theus marketplace remove ${name}' and ` + `re-add it from the original project directory.`);
314814
314876
  }
314815
314877
  try {
@@ -321440,7 +321502,7 @@ function getAssistantMessageFromError(error40, model, options2) {
321440
321502
  if (process.env.USER_TYPE === "ant") {
321441
321503
  const baseMessage = `API Error: 400 ${error40.message}
321442
321504
 
321443
- Run /share and post the JSON file to ${{ VERSION: "0.2.45", BUILD_TIME: "1970-01-01T00:00:00.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}.`;
321505
+ Run /share and post the JSON file to ${{ VERSION: "0.2.46", BUILD_TIME: "1970-01-01T00:00:00.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}.`;
321444
321506
  const rewindInstruction = getIsNonInteractiveSession() ? "" : " Then, use /rewind to recover the conversation.";
321445
321507
  return createAssistantAPIErrorMessage({
321446
321508
  content: baseMessage + rewindInstruction,
@@ -321476,7 +321538,7 @@ Run /share and post the JSON file to ${{ VERSION: "0.2.45", BUILD_TIME: "1970-01
321476
321538
  if (process.env.USER_TYPE === "ant" && !process.env.THEUS_MODEL && error40 instanceof Error && error40.message.toLowerCase().includes("invalid model name")) {
321477
321539
  const orgId = getOauthAccountInfo()?.organizationUuid;
321478
321540
  const baseMsg = `[THEUS-INTERNAL] Your org isn't gated into the \`${model}\` model. Either run \`theus\` with \`THEUS_MODEL=${getDefaultMainLoopModelSetting()}\``;
321479
- const msg = orgId ? `${baseMsg} or share your orgId (${orgId}) in ${{ VERSION: "0.2.45", BUILD_TIME: "1970-01-01T00:00:00.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.45", BUILD_TIME: "1970-01-01T00:00:00.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.`;
321541
+ const msg = orgId ? `${baseMsg} or share your orgId (${orgId}) in ${{ VERSION: "0.2.46", BUILD_TIME: "1970-01-01T00:00:00.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.46", BUILD_TIME: "1970-01-01T00:00:00.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.`;
321480
321542
  return createAssistantAPIErrorMessage({
321481
321543
  content: msg,
321482
321544
  error: "invalid_request"
@@ -331649,7 +331711,7 @@ function buildPrimarySection() {
331649
331711
  });
331650
331712
  return [{
331651
331713
  label: "Version",
331652
- value: { VERSION: "0.2.45", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
331714
+ value: { VERSION: "0.2.46", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
331653
331715
  }, {
331654
331716
  label: "Session name",
331655
331717
  value: nameValue
@@ -335465,7 +335527,7 @@ function Config({
335465
335527
  }
335466
335528
  })
335467
335529
  }) : showSubmenu === "ChannelDowngrade" ? /* @__PURE__ */ jsx_runtime188.jsx(ChannelDowngradeDialog, {
335468
- currentVersion: { VERSION: "0.2.45", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
335530
+ currentVersion: { VERSION: "0.2.46", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
335469
335531
  onChoice: (choice) => {
335470
335532
  setShowSubmenu(null);
335471
335533
  setTabsHidden(false);
@@ -335477,7 +335539,7 @@ function Config({
335477
335539
  autoUpdatesChannel: "stable"
335478
335540
  };
335479
335541
  if (choice === "stay") {
335480
- newSettings.minimumVersion = { VERSION: "0.2.45", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION;
335542
+ newSettings.minimumVersion = { VERSION: "0.2.46", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION;
335481
335543
  }
335482
335544
  updateSettingsForSource("userSettings", newSettings);
335483
335545
  setSettingsData((prev_27) => ({
@@ -343511,7 +343573,7 @@ function HelpV2(t0) {
343511
343573
  let t6;
343512
343574
  if ($2[31] !== tabs) {
343513
343575
  t6 = /* @__PURE__ */ jsx_runtime215.jsx(Tabs, {
343514
- title: `Theus v${{ VERSION: "0.2.45", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION}`,
343576
+ title: `Theus v${{ VERSION: "0.2.46", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION}`,
343515
343577
  color: "professionalBlue",
343516
343578
  defaultTab: "general",
343517
343579
  children: tabs
@@ -361622,7 +361684,7 @@ function Onboarding({
361622
361684
  flexDirection: "column",
361623
361685
  children: [
361624
361686
  /* @__PURE__ */ jsx_runtime248.jsx(TheusBanner, {
361625
- version: { VERSION: "0.2.45", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
361687
+ version: { VERSION: "0.2.46", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
361626
361688
  }),
361627
361689
  /* @__PURE__ */ jsx_runtime248.jsxs(ThemedBox_default, {
361628
361690
  flexDirection: "column",
@@ -362123,9 +362185,9 @@ function getAllReleaseNotes(changelogContent = getStoredChangelogFromMemory()) {
362123
362185
  return [];
362124
362186
  }
362125
362187
  }
362126
- async function checkForReleaseNotes(lastSeenVersion, currentVersion = { VERSION: "0.2.45", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION) {
362188
+ async function checkForReleaseNotes(lastSeenVersion, currentVersion = { VERSION: "0.2.46", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION) {
362127
362189
  if (process.env.USER_TYPE === "ant") {
362128
- const changelog = { VERSION: "0.2.45", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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;
362190
+ const changelog = { VERSION: "0.2.46", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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;
362129
362191
  if (changelog) {
362130
362192
  const commits = changelog.trim().split(`
362131
362193
  `).filter(Boolean);
@@ -366327,7 +366389,7 @@ var init_Messages = __esm(() => {
366327
366389
  let t1;
366328
366390
  if ($2[0] === Symbol.for("react.memo_cache_sentinel")) {
366329
366391
  t1 = /* @__PURE__ */ jsx_runtime260.jsx(TheusSessionHeader, {
366330
- version: { VERSION: "0.2.45", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
366392
+ version: { VERSION: "0.2.46", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
366331
366393
  });
366332
366394
  $2[0] = t1;
366333
366395
  } else {
@@ -394799,7 +394861,7 @@ async function captureMemoryDiagnostics(trigger, dumpNumber = 0) {
394799
394861
  smapsRollup,
394800
394862
  platform: process.platform,
394801
394863
  nodeVersion: process.version,
394802
- ccVersion: { VERSION: "0.2.45", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
394864
+ ccVersion: { VERSION: "0.2.46", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
394803
394865
  };
394804
394866
  }
394805
394867
  async function performHeapDump(trigger = "manual", dumpNumber = 0) {
@@ -395385,7 +395447,7 @@ var init_bridge_kick = __esm(() => {
395385
395447
  var call58 = async () => {
395386
395448
  return {
395387
395449
  type: "text",
395388
- value: { VERSION: "0.2.45", BUILD_TIME: "1970-01-01T00:00:00.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.45", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.45", BUILD_TIME: "1970-01-01T00:00:00.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.45", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
395450
+ value: { VERSION: "0.2.46", BUILD_TIME: "1970-01-01T00:00:00.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.46", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.46", BUILD_TIME: "1970-01-01T00:00:00.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.46", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
395389
395451
  };
395390
395452
  }, version2, version_default;
395391
395453
  var init_version = __esm(() => {
@@ -397348,7 +397410,7 @@ var init_advisor2 = __esm(() => {
397348
397410
  // skills/bundledSkills.ts
397349
397411
  import { constants as fsConstants5 } from "fs";
397350
397412
  import { mkdir as mkdir43, open as open13 } from "fs/promises";
397351
- import { dirname as dirname58, isAbsolute as isAbsolute26, join as join139, normalize as normalize13, sep as pathSep2 } from "path";
397413
+ import { dirname as dirname58, isAbsolute as isAbsolute27, join as join139, normalize as normalize13, sep as pathSep2 } from "path";
397352
397414
  function registerBundledSkill(definition) {
397353
397415
  const { files: files2 } = definition;
397354
397416
  let skillRoot;
@@ -397435,7 +397497,7 @@ async function safeWriteFile(p, content) {
397435
397497
  }
397436
397498
  function resolveSkillFilePath(baseDir, relPath) {
397437
397499
  const normalized = normalize13(relPath);
397438
- if (isAbsolute26(normalized) || normalized.split(pathSep2).includes("..") || normalized.split("/").includes("..")) {
397500
+ if (isAbsolute27(normalized) || normalized.split(pathSep2).includes("..") || normalized.split("/").includes("..")) {
397439
397501
  throw new Error(`bundled skill file path escapes skill dir: ${relPath}`);
397440
397502
  }
397441
397503
  return join139(baseDir, normalized);
@@ -399827,13 +399889,13 @@ async function updateReleaseBundle() {
399827
399889
  await gracefulShutdown(1);
399828
399890
  return;
399829
399891
  }
399830
- if (gte({ VERSION: "0.2.45", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
399831
- writeToStdout(source_default.green(`Theus is up to date (${{ VERSION: "0.2.45", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION})`) + `
399892
+ if (gte({ VERSION: "0.2.46", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
399893
+ writeToStdout(source_default.green(`Theus is up to date (${{ VERSION: "0.2.46", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION})`) + `
399832
399894
  `);
399833
399895
  await gracefulShutdown(0);
399834
399896
  return;
399835
399897
  }
399836
- writeToStdout(`New version available: ${latest} (current: ${{ VERSION: "0.2.45", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION})
399898
+ writeToStdout(`New version available: ${latest} (current: ${{ VERSION: "0.2.46", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION})
399837
399899
  `);
399838
399900
  writeToStdout(`Installing update from theus.pe/dl...
399839
399901
  `);
@@ -399867,7 +399929,7 @@ async function updateReleaseBundle() {
399867
399929
  return;
399868
399930
  }
399869
399931
  cpSync(staged, bundleDir, { recursive: true, force: true });
399870
- writeToStdout(source_default.green(`Successfully updated from ${{ VERSION: "0.2.45", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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}`) + `
399932
+ writeToStdout(source_default.green(`Successfully updated from ${{ VERSION: "0.2.46", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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}`) + `
399871
399933
  `);
399872
399934
  await regenerateCompletionCache();
399873
399935
  } finally {
@@ -399880,7 +399942,7 @@ async function updateReleaseBundle() {
399880
399942
  async function update() {
399881
399943
  logEvent("tengu_update_check", {});
399882
399944
  await updateNaupa();
399883
- writeToStdout(`Current version: ${{ VERSION: "0.2.45", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION}
399945
+ writeToStdout(`Current version: ${{ VERSION: "0.2.46", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION}
399884
399946
  `);
399885
399947
  const channel2 = getInitialSettings()?.autoUpdatesChannel ?? "latest";
399886
399948
  writeToStdout(`Checking for updates to ${channel2} version...
@@ -399959,8 +400021,8 @@ async function update() {
399959
400021
  writeToStdout(`Theus is managed by Homebrew.
399960
400022
  `);
399961
400023
  const latest = await getLatestVersion(channel2);
399962
- if (latest && !gte({ VERSION: "0.2.45", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION, latest)) {
399963
- writeToStdout(`Update available: ${{ VERSION: "0.2.45", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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}
400024
+ if (latest && !gte({ VERSION: "0.2.46", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
400025
+ writeToStdout(`Update available: ${{ VERSION: "0.2.46", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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}
399964
400026
  `);
399965
400027
  writeToStdout(`
399966
400028
  `);
@@ -399976,8 +400038,8 @@ async function update() {
399976
400038
  writeToStdout(`Theus is managed by winget.
399977
400039
  `);
399978
400040
  const latest = await getLatestVersion(channel2);
399979
- if (latest && !gte({ VERSION: "0.2.45", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION, latest)) {
399980
- writeToStdout(`Update available: ${{ VERSION: "0.2.45", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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}
400041
+ if (latest && !gte({ VERSION: "0.2.46", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
400042
+ writeToStdout(`Update available: ${{ VERSION: "0.2.46", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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}
399981
400043
  `);
399982
400044
  writeToStdout(`
399983
400045
  `);
@@ -399993,8 +400055,8 @@ async function update() {
399993
400055
  writeToStdout(`Theus is managed by apk.
399994
400056
  `);
399995
400057
  const latest = await getLatestVersion(channel2);
399996
- if (latest && !gte({ VERSION: "0.2.45", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
399997
- writeToStdout(`Update available: ${{ VERSION: "0.2.45", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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}
400058
+ if (latest && !gte({ VERSION: "0.2.46", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
400059
+ writeToStdout(`Update available: ${{ VERSION: "0.2.46", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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}
399998
400060
  `);
399999
400061
  writeToStdout(`
400000
400062
  `);
@@ -400059,11 +400121,11 @@ async function update() {
400059
400121
  `);
400060
400122
  await gracefulShutdown(1);
400061
400123
  }
400062
- if (result.latestVersion === { VERSION: "0.2.45", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION) {
400063
- writeToStdout(source_default.green(`Theus is up to date (${{ VERSION: "0.2.45", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION})`) + `
400124
+ if (result.latestVersion === { VERSION: "0.2.46", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION) {
400125
+ writeToStdout(source_default.green(`Theus is up to date (${{ VERSION: "0.2.46", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION})`) + `
400064
400126
  `);
400065
400127
  } else {
400066
- writeToStdout(source_default.green(`Successfully updated from ${{ VERSION: "0.2.45", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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}`) + `
400128
+ writeToStdout(source_default.green(`Successfully updated from ${{ VERSION: "0.2.46", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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}`) + `
400067
400129
  `);
400068
400130
  await regenerateCompletionCache();
400069
400131
  }
@@ -400082,9 +400144,9 @@ async function update() {
400082
400144
  await removeInstalledSymlink();
400083
400145
  }
400084
400146
  logForDebugging("update: Checking npm registry for latest version");
400085
- logForDebugging(`update: Package URL: ${{ VERSION: "0.2.45", BUILD_TIME: "1970-01-01T00:00:00.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}`);
400147
+ logForDebugging(`update: Package URL: ${{ VERSION: "0.2.46", BUILD_TIME: "1970-01-01T00:00:00.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}`);
400086
400148
  const npmTag = channel2 === "stable" ? "stable" : "latest";
400087
- const npmCommand = `npm view ${{ VERSION: "0.2.45", BUILD_TIME: "1970-01-01T00:00:00.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`;
400149
+ const npmCommand = `npm view ${{ VERSION: "0.2.46", BUILD_TIME: "1970-01-01T00:00:00.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`;
400088
400150
  logForDebugging(`update: Running: ${npmCommand}`);
400089
400151
  const latestVersion = await getLatestVersion(channel2);
400090
400152
  logForDebugging(`update: Latest version from npm: ${latestVersion || "FAILED"}`);
@@ -400104,7 +400166,7 @@ async function update() {
400104
400166
  `);
400105
400167
  process.stderr.write(` \u2022 Corporate proxy/firewall blocking npm
400106
400168
  `);
400107
- if ({ VERSION: "0.2.45", BUILD_TIME: "1970-01-01T00:00:00.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.45", BUILD_TIME: "1970-01-01T00:00:00.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")) {
400169
+ if ({ VERSION: "0.2.46", BUILD_TIME: "1970-01-01T00:00:00.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.46", BUILD_TIME: "1970-01-01T00:00:00.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")) {
400108
400170
  process.stderr.write(` \u2022 Internal/development build not published to npm
400109
400171
  `);
400110
400172
  }
@@ -400116,19 +400178,19 @@ async function update() {
400116
400178
  `);
400117
400179
  process.stderr.write(` \u2022 Run with --debug flag for more details
400118
400180
  `);
400119
- const packageName = { VERSION: "0.2.45", BUILD_TIME: "1970-01-01T00:00:00.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");
400181
+ const packageName = { VERSION: "0.2.46", BUILD_TIME: "1970-01-01T00:00:00.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");
400120
400182
  process.stderr.write(` \u2022 Manually check: npm view ${packageName} version
400121
400183
  `);
400122
400184
  process.stderr.write(` \u2022 Check if you need to login: npm whoami
400123
400185
  `);
400124
400186
  await gracefulShutdown(1);
400125
400187
  }
400126
- if (gte({ VERSION: "0.2.45", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
400127
- writeToStdout(source_default.green(`Theus is up to date (${{ VERSION: "0.2.45", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION})`) + `
400188
+ if (gte({ VERSION: "0.2.46", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
400189
+ writeToStdout(source_default.green(`Theus is up to date (${{ VERSION: "0.2.46", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION})`) + `
400128
400190
  `);
400129
400191
  await gracefulShutdown(0);
400130
400192
  }
400131
- writeToStdout(`New version available: ${latestVersion} (current: ${{ VERSION: "0.2.45", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION})
400193
+ writeToStdout(`New version available: ${latestVersion} (current: ${{ VERSION: "0.2.46", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION})
400132
400194
  `);
400133
400195
  writeToStdout(`Installing update...
400134
400196
  `);
@@ -400173,7 +400235,7 @@ async function update() {
400173
400235
  logForDebugging(`update: Installation status: ${status2}`);
400174
400236
  switch (status2) {
400175
400237
  case "success":
400176
- writeToStdout(source_default.green(`Successfully updated from ${{ VERSION: "0.2.45", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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}`) + `
400238
+ writeToStdout(source_default.green(`Successfully updated from ${{ VERSION: "0.2.46", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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}`) + `
400177
400239
  `);
400178
400240
  await regenerateCompletionCache();
400179
400241
  break;
@@ -400183,7 +400245,7 @@ async function update() {
400183
400245
  if (useLocalUpdate) {
400184
400246
  process.stderr.write(`Try manually updating with:
400185
400247
  `);
400186
- process.stderr.write(` cd ~/.theus/local && npm update ${{ VERSION: "0.2.45", BUILD_TIME: "1970-01-01T00:00:00.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}
400248
+ process.stderr.write(` cd ~/.theus/local && npm update ${{ VERSION: "0.2.46", BUILD_TIME: "1970-01-01T00:00:00.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}
400187
400249
  `);
400188
400250
  } else {
400189
400251
  process.stderr.write(`Try running with sudo or fix npm permissions
@@ -400199,7 +400261,7 @@ async function update() {
400199
400261
  if (useLocalUpdate) {
400200
400262
  process.stderr.write(`Try manually updating with:
400201
400263
  `);
400202
- process.stderr.write(` cd ~/.theus/local && npm update ${{ VERSION: "0.2.45", BUILD_TIME: "1970-01-01T00:00:00.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}
400264
+ process.stderr.write(` cd ~/.theus/local && npm update ${{ VERSION: "0.2.46", BUILD_TIME: "1970-01-01T00:00:00.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}
400203
400265
  `);
400204
400266
  } else {
400205
400267
  process.stderr.write(`Or consider using native installation with: theus install
@@ -409282,7 +409344,7 @@ var init_sessionStorage = __esm(() => {
409282
409344
  init_settings2();
409283
409345
  init_slowOperations();
409284
409346
  init_uuid();
409285
- VERSION4 = { VERSION: "0.2.45", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION;
409347
+ VERSION4 = { VERSION: "0.2.46", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION;
409286
409348
  MAX_TOMBSTONE_REWRITE_BYTES = 50 * 1024 * 1024;
409287
409349
  SKIP_FIRST_PROMPT_PATTERN = /^(?:\s*<[a-z][\w-]*[\s>]|\[Request interrupted by user[^\]]*\])/;
409288
409350
  EPHEMERAL_PROGRESS_TYPES = new Set([
@@ -410487,7 +410549,7 @@ var init_filesystem = __esm(() => {
410487
410549
  });
410488
410550
  getBundledSkillsRoot = memoize_default(function getBundledSkillsRoot2() {
410489
410551
  const nonce = randomBytes21(16).toString("hex");
410490
- return join149(getTheusTempDir(), "bundled-skills", { VERSION: "0.2.45", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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);
410552
+ return join149(getTheusTempDir(), "bundled-skills", { VERSION: "0.2.46", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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);
410491
410553
  });
410492
410554
  getResolvedWorkingDirPaths = memoize_default(getPathsForPermissionCheck);
410493
410555
  });
@@ -415666,7 +415728,7 @@ function getSimpleDoingTasksSection() {
415666
415728
  ];
415667
415729
  const userHelpSubitems = [
415668
415730
  `/help: Get help with using Theus`,
415669
- `To give feedback, users should ${{ VERSION: "0.2.45", BUILD_TIME: "1970-01-01T00:00:00.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}`
415731
+ `To give feedback, users should ${{ VERSION: "0.2.46", BUILD_TIME: "1970-01-01T00:00:00.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}`
415670
415732
  ];
415671
415733
  const items = [
415672
415734
  `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.`,
@@ -416566,7 +416628,7 @@ function computeFingerprint(messageText, version3) {
416566
416628
  }
416567
416629
  function computeFingerprintFromMessages(messages) {
416568
416630
  const firstMessageText = extractFirstMessageText(messages);
416569
- return computeFingerprint(firstMessageText, { VERSION: "0.2.45", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION);
416631
+ return computeFingerprint(firstMessageText, { VERSION: "0.2.46", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION);
416570
416632
  }
416571
416633
  var FINGERPRINT_SALT = "59cf53e54c78";
416572
416634
  var init_fingerprint = () => {};
@@ -419126,7 +419188,7 @@ async function sideQuery(opts) {
419126
419188
  betas.push(STRUCTURED_OUTPUTS_BETA_HEADER);
419127
419189
  }
419128
419190
  const messageText = extractFirstUserMessageText(messages);
419129
- const fingerprint = computeFingerprint(messageText, { VERSION: "0.2.45", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION);
419191
+ const fingerprint = computeFingerprint(messageText, { VERSION: "0.2.46", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION);
419130
419192
  const attributionHeader = getAttributionHeader(fingerprint);
419131
419193
  const systemBlocks = [
419132
419194
  attributionHeader ? { type: "text", text: attributionHeader } : null,
@@ -420429,7 +420491,7 @@ async function handleMemories(state) {
420429
420491
  async function runProjectContextMcpServer() {
420430
420492
  const projectRoot = process.env.THEUS_PROJECT_ROOT || process.cwd();
420431
420493
  const state = new ProjectContextState(projectRoot);
420432
- const server2 = new Server({ name: SERVER_NAME, version: { VERSION: "0.2.45", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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: {} } });
420494
+ const server2 = new Server({ name: SERVER_NAME, version: { VERSION: "0.2.46", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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: {} } });
420433
420495
  server2.setRequestHandler(ListToolsRequestSchema, async () => ({
420434
420496
  tools: TOOL_DEFINITIONS.map((t) => ({
420435
420497
  name: t.name,
@@ -422409,7 +422471,7 @@ function createBridgeLogger(options2) {
422409
422471
  connectUrl = buildBridgeConnectUrl(environmentId, cachedIngressUrl);
422410
422472
  regenerateQr(connectUrl);
422411
422473
  if (verbose) {
422412
- write(source_default.dim(`Remote Control`) + ` v${{ VERSION: "0.2.45", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION}
422474
+ write(source_default.dim(`Remote Control`) + ` v${{ VERSION: "0.2.46", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION}
422413
422475
  `);
422414
422476
  }
422415
422477
  if (verbose) {
@@ -423382,7 +423444,7 @@ function appendToLog(path19, message) {
423382
423444
  cwd: getFsImplementation().cwd(),
423383
423445
  userType: process.env.USER_TYPE,
423384
423446
  sessionId: getSessionId(),
423385
- version: { VERSION: "0.2.45", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
423447
+ version: { VERSION: "0.2.46", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
423386
423448
  };
423387
423449
  getLogWriter(path19).write(messageWithTimestamp);
423388
423450
  }
@@ -424652,7 +424714,7 @@ Spawn mode for this project:
424652
424714
  const api2 = createBridgeApiClient({
424653
424715
  baseUrl,
424654
424716
  getAccessToken: getBridgeAccessToken2,
424655
- runnerVersion: { VERSION: "0.2.45", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
424717
+ runnerVersion: { VERSION: "0.2.46", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
424656
424718
  onDebug: logForDebugging,
424657
424719
  onAuth401: handleOAuth401Error2,
424658
424720
  getTrustedDeviceToken
@@ -424890,7 +424952,7 @@ async function runBridgeHeadless(opts, signal) {
424890
424952
  const api2 = createBridgeApiClient({
424891
424953
  baseUrl,
424892
424954
  getAccessToken: opts.getAccessToken,
424893
- runnerVersion: { VERSION: "0.2.45", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
424955
+ runnerVersion: { VERSION: "0.2.46", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
424894
424956
  onDebug: log2,
424895
424957
  onAuth401: opts.onAuth401,
424896
424958
  getTrustedDeviceToken
@@ -428954,7 +429016,7 @@ function buildSystemInitMessage(inputs) {
428954
429016
  slash_commands: inputs.commands.filter((c5) => c5.userInvocable !== false).map((c5) => c5.name),
428955
429017
  apiKeySource: getTheusApiKeyWithSource().source,
428956
429018
  betas: getSdkBetas(),
428957
- theus_code_version: { VERSION: "0.2.45", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
429019
+ theus_code_version: { VERSION: "0.2.46", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
428958
429020
  output_style: outputStyle2,
428959
429021
  agents: inputs.agents.map((agent) => agent.agentType),
428960
429022
  skills: inputs.skills.filter((s) => s.userInvocable !== false).map((skill) => skill.name),
@@ -428994,8 +429056,8 @@ async function getEnvLessBridgeConfig() {
428994
429056
  }
428995
429057
  async function checkEnvLessBridgeMinVersion() {
428996
429058
  const cfg = await getEnvLessBridgeConfig();
428997
- if (cfg.min_version && lt({ VERSION: "0.2.45", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
428998
- return `Your version of Theus (${{ VERSION: "0.2.45", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.
429059
+ if (cfg.min_version && lt({ VERSION: "0.2.46", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
429060
+ return `Your version of Theus (${{ VERSION: "0.2.46", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.
428999
429061
  Version ${cfg.min_version} or higher is required. Run \`theus update\` to update.`;
429000
429062
  }
429001
429063
  return null;
@@ -431318,7 +431380,7 @@ async function initBridgeCore(params) {
431318
431380
  const rawApi = createBridgeApiClient({
431319
431381
  baseUrl,
431320
431382
  getAccessToken,
431321
- runnerVersion: { VERSION: "0.2.45", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
431383
+ runnerVersion: { VERSION: "0.2.46", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
431322
431384
  onDebug: logForDebugging,
431323
431385
  onAuth401,
431324
431386
  getTrustedDeviceToken
@@ -448059,7 +448121,7 @@ var init_useVoiceEnabled = __esm(() => {
448059
448121
  function getSemverPart(version3) {
448060
448122
  return `${import_semver14.major(version3, { loose: true })}.${import_semver14.minor(version3, { loose: true })}.${import_semver14.patch(version3, { loose: true })}`;
448061
448123
  }
448062
- function useUpdateNotification(updatedVersion, initialVersion = { VERSION: "0.2.45", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION) {
448124
+ function useUpdateNotification(updatedVersion, initialVersion = { VERSION: "0.2.46", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION) {
448063
448125
  const [lastNotifiedSemver, setLastNotifiedSemver] = import_react231.useState(() => getSemverPart(initialVersion));
448064
448126
  if (!updatedVersion) {
448065
448127
  return null;
@@ -448099,7 +448161,7 @@ function AutoUpdater({
448099
448161
  return;
448100
448162
  }
448101
448163
  if (false) {}
448102
- const currentVersion = { VERSION: "0.2.45", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION;
448164
+ const currentVersion = { VERSION: "0.2.46", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION;
448103
448165
  const channel2 = getInitialSettings()?.autoUpdatesChannel ?? "latest";
448104
448166
  let latestVersion = await getLatestVersion(channel2);
448105
448167
  const isDisabled2 = isAutoUpdaterDisabled();
@@ -448235,7 +448297,7 @@ function AutoUpdater({
448235
448297
  " ",
448236
448298
  /* @__PURE__ */ jsx_runtime405.jsx(ThemedText, {
448237
448299
  bold: true,
448238
- children: hasLocalInstall ? `cd ~/.theus/local && npm update ${{ VERSION: "0.2.45", BUILD_TIME: "1970-01-01T00:00:00.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.45", BUILD_TIME: "1970-01-01T00:00:00.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}`
448300
+ children: hasLocalInstall ? `cd ~/.theus/local && npm update ${{ VERSION: "0.2.46", BUILD_TIME: "1970-01-01T00:00:00.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.46", BUILD_TIME: "1970-01-01T00:00:00.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}`
448239
448301
  })
448240
448302
  ]
448241
448303
  })
@@ -448312,12 +448374,12 @@ function NativeAutoUpdater({
448312
448374
  logEvent("tengu_native_auto_updater_start", {});
448313
448375
  try {
448314
448376
  const maxVersion = await getMaxVersion();
448315
- if (maxVersion && gt({ VERSION: "0.2.45", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
448377
+ if (maxVersion && gt({ VERSION: "0.2.46", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
448316
448378
  const msg = await getMaxVersionMessage();
448317
448379
  setMaxVersionIssue(msg ?? "affects your version");
448318
448380
  }
448319
448381
  const result = await installLatest(channel2);
448320
- const currentVersion = { VERSION: "0.2.45", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION;
448382
+ const currentVersion = { VERSION: "0.2.46", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION;
448321
448383
  const latencyMs = Date.now() - startTime2;
448322
448384
  if (result.lockFailed) {
448323
448385
  logEvent("tengu_native_auto_updater_lock_contention", {
@@ -448454,17 +448516,17 @@ function PackageManagerAutoUpdater(t0) {
448454
448516
  const maxVersion = await getMaxVersion();
448455
448517
  if (maxVersion && latest && gt(latest, maxVersion)) {
448456
448518
  logForDebugging(`PackageManagerAutoUpdater: maxVersion ${maxVersion} is set, capping update from ${latest} to ${maxVersion}`);
448457
- if (gte({ VERSION: "0.2.45", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
448458
- logForDebugging(`PackageManagerAutoUpdater: current version ${{ VERSION: "0.2.45", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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`);
448519
+ if (gte({ VERSION: "0.2.46", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
448520
+ logForDebugging(`PackageManagerAutoUpdater: current version ${{ VERSION: "0.2.46", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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`);
448459
448521
  setUpdateAvailable(false);
448460
448522
  return;
448461
448523
  }
448462
448524
  latest = maxVersion;
448463
448525
  }
448464
- const hasUpdate = latest && !gte({ VERSION: "0.2.45", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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);
448526
+ const hasUpdate = latest && !gte({ VERSION: "0.2.46", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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);
448465
448527
  setUpdateAvailable(!!hasUpdate);
448466
448528
  if (hasUpdate) {
448467
- logForDebugging(`PackageManagerAutoUpdater: Update available ${{ VERSION: "0.2.45", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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}`);
448529
+ logForDebugging(`PackageManagerAutoUpdater: Update available ${{ VERSION: "0.2.46", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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}`);
448468
448530
  }
448469
448531
  };
448470
448532
  $2[0] = t1;
@@ -448498,7 +448560,7 @@ function PackageManagerAutoUpdater(t0) {
448498
448560
  wrap: "truncate",
448499
448561
  children: [
448500
448562
  "currentVersion: ",
448501
- { VERSION: "0.2.45", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
448563
+ { VERSION: "0.2.46", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
448502
448564
  ]
448503
448565
  });
448504
448566
  $2[3] = verbose;
@@ -456371,7 +456433,7 @@ function buildStatusLineCommandInput(permissionMode, exceeds200kTokens, settings
456371
456433
  project_dir: getOriginalCwd(),
456372
456434
  added_dirs: addedDirs
456373
456435
  },
456374
- version: { VERSION: "0.2.45", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
456436
+ version: { VERSION: "0.2.46", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
456375
456437
  output_style: {
456376
456438
  name: outputStyleName
456377
456439
  },
@@ -467791,7 +467853,7 @@ async function submitTranscriptShare(messages, trigger, appearanceId) {
467791
467853
  } catch {}
467792
467854
  const data = {
467793
467855
  trigger,
467794
- version: { VERSION: "0.2.45", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
467856
+ version: { VERSION: "0.2.46", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
467795
467857
  platform: process.platform,
467796
467858
  transcript,
467797
467859
  subagentTranscripts: Object.keys(subagentTranscripts).length > 0 ? subagentTranscripts : undefined,
@@ -473201,7 +473263,7 @@ var init_usePluginAutoupdateNotification = __esm(() => {
473201
473263
  });
473202
473264
 
473203
473265
  // utils/plugins/reconciler.ts
473204
- import { isAbsolute as isAbsolute27, resolve as resolve51 } from "path";
473266
+ import { isAbsolute as isAbsolute28, resolve as resolve51 } from "path";
473205
473267
  function diffMarketplaces(declared, materialized, opts) {
473206
473268
  const missing = [];
473207
473269
  const sourceChanged = [];
@@ -473309,7 +473371,7 @@ async function reconcileMarketplaces(opts) {
473309
473371
  return { installed, updated, failed, upToDate: diff3.upToDate, skipped };
473310
473372
  }
473311
473373
  function normalizeSource(source, projectRoot) {
473312
- if ((source.source === "directory" || source.source === "file") && !isAbsolute27(source.path)) {
473374
+ if ((source.source === "directory" || source.source === "file") && !isAbsolute28(source.path)) {
473313
473375
  const base2 = projectRoot ?? getOriginalCwd();
473314
473376
  const canonicalRoot = findCanonicalGitRoot(base2);
473315
473377
  return {
@@ -480798,7 +480860,7 @@ function completeOnboarding() {
480798
480860
  saveGlobalConfig((current) => ({
480799
480861
  ...current,
480800
480862
  hasCompletedOnboarding: true,
480801
- lastOnboardingVersion: { VERSION: "0.2.45", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
480863
+ lastOnboardingVersion: { VERSION: "0.2.46", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
480802
480864
  }));
480803
480865
  }
480804
480866
  function showDialog(root2, renderer) {
@@ -491796,7 +491858,7 @@ async function startMCPServer(cwd3, debug3, verbose) {
491796
491858
  setCwd(cwd3);
491797
491859
  const server2 = new Server({
491798
491860
  name: "theus/tengu",
491799
- version: { VERSION: "0.2.45", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
491861
+ version: { VERSION: "0.2.46", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
491800
491862
  }, {
491801
491863
  capabilities: {
491802
491864
  tools: {}
@@ -493238,7 +493300,7 @@ async function setupTokenHandler(root2) {
493238
493300
  gap: 1,
493239
493301
  children: [
493240
493302
  /* @__PURE__ */ jsx_runtime492.jsx(TheusBanner, {
493241
- version: { VERSION: "0.2.45", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
493303
+ version: { VERSION: "0.2.46", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
493242
493304
  }),
493243
493305
  showAuthWarning && /* @__PURE__ */ jsx_runtime492.jsxs(ThemedBox_default, {
493244
493306
  flexDirection: "column",
@@ -494720,7 +494782,7 @@ ${assistantAddendum}` : assistantAddendum;
494720
494782
  }
494721
494783
  }
494722
494784
  logForDiagnosticsNoPII("info", "started", {
494723
- version: { VERSION: "0.2.45", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
494785
+ version: { VERSION: "0.2.46", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
494724
494786
  is_native_binary: isInBundledMode()
494725
494787
  });
494726
494788
  registerCleanup(async () => {
@@ -495588,7 +495650,7 @@ Usage: theus --remote "your task description"`, () => gracefulShutdown(1));
495588
495650
  pendingHookMessages
495589
495651
  }, renderAndRun);
495590
495652
  }
495591
- }).version(`${{ VERSION: "0.2.45", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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");
495653
+ }).version(`${{ VERSION: "0.2.46", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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");
495592
495654
  program2.option("-w, --worktree [name]", "Crea un nuevo worktree de git para esta sesi\xF3n (opcionalmente indica un nombre)");
495593
495655
  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.");
495594
495656
  if (canUserConfigureAdvisor()) {
@@ -496140,7 +496202,7 @@ if (false) {}
496140
496202
  async function main2() {
496141
496203
  const args = process.argv.slice(2);
496142
496204
  if (args.length === 1 && (args[0] === "--version" || args[0] === "-v" || args[0] === "-V")) {
496143
- console.log(`${{ VERSION: "0.2.45", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)`);
496205
+ console.log(`${{ VERSION: "0.2.46", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)`);
496144
496206
  return;
496145
496207
  }
496146
496208
  const {