theus-cli 0.2.44 → 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 +259 -172
  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.44", BUILD_TIME: "1970-01-01T00:00:00.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.44", BUILD_TIME: "1970-01-01T00:00:00.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.44", BUILD_TIME: "1970-01-01T00:00:00.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.44", BUILD_TIME: "1970-01-01T00:00:00.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.44", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.44", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.44", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.44", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.44", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.44", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.44", BUILD_TIME: "1970-01-01T00:00:00.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.44", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.44", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.44", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.44", BUILD_TIME: "1970-01-01T00:00:00.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.44", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.44", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.44", BUILD_TIME: "1970-01-01T00:00:00.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.44", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.44", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.44", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.44", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.44", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.44", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.44", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.44", BUILD_TIME: "1970-01-01T00:00:00.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.44", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.44", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.44", BUILD_TIME: "1970-01-01T00:00:00.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.44", BUILD_TIME: "1970-01-01T00:00:00.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.44", BUILD_TIME: "1970-01-01T00:00:00.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.44", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.44", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.44", BUILD_TIME: "1970-01-01T00:00:00.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.44", BUILD_TIME: "1970-01-01T00:00:00.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.44", BUILD_TIME: "1970-01-01T00:00:00.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.44", BUILD_TIME: "1970-01-01T00:00:00.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.44", BUILD_TIME: "1970-01-01T00:00:00.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.44", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.44", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.44", BUILD_TIME: "1970-01-01T00:00:00.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.44", BUILD_TIME: "1970-01-01T00:00:00.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.44", BUILD_TIME: "1970-01-01T00:00:00.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.44", BUILD_TIME: "1970-01-01T00:00:00.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.44", BUILD_TIME: "1970-01-01T00:00:00.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.44", BUILD_TIME: "1970-01-01T00:00:00.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.44", BUILD_TIME: "1970-01-01T00:00:00.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.44", BUILD_TIME: "1970-01-01T00:00:00.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.44", BUILD_TIME: "1970-01-01T00:00:00.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.44", BUILD_TIME: "1970-01-01T00:00:00.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.44", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.44", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.44", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.44", BUILD_TIME: "1970-01-01T00:00:00.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.44", BUILD_TIME: "1970-01-01T00:00:00.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.44", BUILD_TIME: "1970-01-01T00:00:00.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,26 @@ 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
+ },
230082
+ {
230083
+ version: "v0.2.45",
230084
+ fecha: "2026-07-24",
230085
+ titulo: "Animar una imagen y duraci\xF3n de v\xEDdeo que s\xED se respeta",
230086
+ puntos: [
230087
+ "Ya puedes convertir una imagen en v\xEDdeo: p\xE1sale el enlace p\xFAblico de la imagen y el modelo la anima us\xE1ndola como primer fotograma.",
230088
+ "Corregido un cobro injusto: la duraci\xF3n que ped\xEDas se ignoraba y recib\xEDas un clip de la duraci\xF3n por defecto, pero se te cobraban los segundos solicitados. Ahora la duraci\xF3n se respeta de verdad.",
230089
+ "Si pasas una ruta local en lugar de un enlace, Theus te lo explica antes de intentarlo, en vez de fallar con un error opaco."
230090
+ ]
230091
+ },
230072
230092
  {
230073
230093
  version: "v0.2.44",
230074
230094
  fecha: "2026-07-24",
@@ -242779,7 +242799,7 @@ var init_entryApiKey = __esm(() => {
242779
242799
  // services/providers/adapters/media.ts
242780
242800
  import { existsSync as existsSync5, readFileSync as readFileSync13 } from "fs";
242781
242801
  import { mkdir as mkdir17, writeFile as writeFile18 } from "fs/promises";
242782
- import { join as join69, relative as relative9 } from "path";
242802
+ import { isAbsolute as isAbsolute14, join as join69, relative as relative9 } from "path";
242783
242803
  async function buildPreview(bytes, mediaType) {
242784
242804
  try {
242785
242805
  const compressed = await compressImageBufferWithTokenLimit(bytes, PREVIEW_TOKEN_BUDGET, mediaType);
@@ -242891,6 +242911,44 @@ function sleep3(ms, signal) {
242891
242911
  signal?.addEventListener("abort", onAbort, { once: true });
242892
242912
  });
242893
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
+ }
242894
242952
  async function writeMedia(fileName, bytes) {
242895
242953
  const cwd2 = process.cwd();
242896
242954
  const dir = join69(cwd2, MEDIA_DIR);
@@ -242955,14 +243013,32 @@ Para verla: \`open ${rel}\` (no la leas al contexto).`, start, imageModel, { gat
242955
243013
  async function generateVideo(request, gateway, start) {
242956
243014
  const rawDuration = request.params?.durationSec;
242957
243015
  const durationSec = typeof rawDuration === "number" && Number.isFinite(rawDuration) && rawDuration > 0 ? rawDuration : 4;
243016
+ const cuerpo = {
243017
+ model: videoModel,
243018
+ prompt: request.prompt,
243019
+ seconds: durationSec
243020
+ };
243021
+ const semilla = request.params?.imageUrl;
243022
+ if (typeof semilla === "string" && semilla.trim()) {
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;
243033
+ }
243034
+ cuerpo.frame_images = [
243035
+ { type: "image_url", image_url: { url: url3 }, frame_type: "first_frame" }
243036
+ ];
243037
+ }
242958
243038
  const created = await fetch(`${gateway.baseURL}/videos`, {
242959
243039
  method: "POST",
242960
243040
  headers: headersFor(gateway),
242961
- body: JSON.stringify({
242962
- model: videoModel,
242963
- prompt: request.prompt,
242964
- seconds: durationSec
242965
- }),
243041
+ body: JSON.stringify(cuerpo),
242966
243042
  signal: request.signal
242967
243043
  });
242968
243044
  if (!created.ok) {
@@ -243052,13 +243128,20 @@ Para verla: \`open ${rel}\` (no la leas al contexto).`, start, imageModel, { gat
243052
243128
  }
243053
243129
  };
243054
243130
  }
243055
- 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;
243056
243132
  var init_media = __esm(() => {
243057
243133
  init_imageResizer();
243058
243134
  init_entryApiKey();
243059
243135
  init_registry2();
243060
243136
  VIDEO_TIMEOUT_MS = 10 * 60000;
243061
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
+ };
243062
243145
  });
243063
243146
 
243064
243147
  // services/providers/adapters/openai.ts
@@ -249092,7 +249175,7 @@ import {
249092
249175
  stat as stat22,
249093
249176
  unlink as unlink9
249094
249177
  } from "fs/promises";
249095
- 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";
249096
249179
  import { inspect as inspect3 } from "util";
249097
249180
  function fileHistoryEnabled() {
249098
249181
  if (getIsNonInteractiveSession()) {
@@ -249580,7 +249663,7 @@ function getBackupFileNameFirstVersion(trackingPath, state) {
249580
249663
  return;
249581
249664
  }
249582
249665
  function maybeShortenFilePath(filePath) {
249583
- if (!isAbsolute14(filePath)) {
249666
+ if (!isAbsolute15(filePath)) {
249584
249667
  return filePath;
249585
249668
  }
249586
249669
  const cwd2 = getOriginalCwd();
@@ -249590,7 +249673,7 @@ function maybeShortenFilePath(filePath) {
249590
249673
  return filePath;
249591
249674
  }
249592
249675
  function maybeExpandFilePath(filePath) {
249593
- if (isAbsolute14(filePath)) {
249676
+ if (isAbsolute15(filePath)) {
249594
249677
  return filePath;
249595
249678
  }
249596
249679
  return join76(getOriginalCwd(), filePath);
@@ -250923,7 +251006,7 @@ var init_hooksConfigSnapshot = __esm(() => {
250923
251006
  });
250924
251007
 
250925
251008
  // utils/hooks/fileChangedWatcher.ts
250926
- import { isAbsolute as isAbsolute15, join as join79 } from "path";
251009
+ import { isAbsolute as isAbsolute16, join as join79 } from "path";
250927
251010
  function setEnvHookNotifier(cb) {
250928
251011
  notifyCallback = cb;
250929
251012
  }
@@ -250951,7 +251034,7 @@ function resolveWatchPaths(config2) {
250951
251034
  for (const name of m.matcher.split("|").map((s) => s.trim())) {
250952
251035
  if (!name)
250953
251036
  continue;
250954
- staticPaths.push(isAbsolute15(name) ? name : join79(currentCwd, name));
251037
+ staticPaths.push(isAbsolute16(name) ? name : join79(currentCwd, name));
250955
251038
  }
250956
251039
  }
250957
251040
  return [...new Set([...staticPaths, ...dynamicWatchPaths])];
@@ -260734,7 +260817,7 @@ var init_powershellProvider = __esm(() => {
260734
260817
  import { execFileSync as execFileSync2, spawn as spawn6 } from "child_process";
260735
260818
  import { constants as fsConstants4, readFileSync as readFileSync16, unlinkSync as unlinkSync2 } from "fs";
260736
260819
  import { mkdir as mkdir23, open as open9, realpath as realpath9 } from "fs/promises";
260737
- import { isAbsolute as isAbsolute16, resolve as resolve28 } from "path";
260820
+ import { isAbsolute as isAbsolute17, resolve as resolve28 } from "path";
260738
260821
  import { join as posixJoin3 } from "path/posix";
260739
260822
  import { accessSync } from "fs";
260740
260823
  function isExecutable(shellPath) {
@@ -260928,7 +261011,7 @@ async function exec2(command, abortSignal, shellType, options2) {
260928
261011
  }
260929
261012
  }
260930
261013
  function setCwd(path13, relativeTo) {
260931
- const resolved = isAbsolute16(path13) ? path13 : resolve28(relativeTo || getFsImplementation().cwd(), path13);
261014
+ const resolved = isAbsolute17(path13) ? path13 : resolve28(relativeTo || getFsImplementation().cwd(), path13);
260932
261015
  let physicalPath;
260933
261016
  try {
260934
261017
  physicalPath = getFsImplementation().realpathSync(resolved);
@@ -264125,7 +264208,7 @@ var init_modeValidation = __esm(() => {
264125
264208
 
264126
264209
  // tools/PowerShellTool/pathValidation.ts
264127
264210
  import { homedir as homedir26 } from "os";
264128
- import { isAbsolute as isAbsolute17, resolve as resolve30 } from "path";
264211
+ import { isAbsolute as isAbsolute18, resolve as resolve30 } from "path";
264129
264212
  function matchesParam(paramLower, paramList) {
264130
264213
  for (const p of paramList) {
264131
264214
  if (p === paramLower || paramLower.length > 1 && p.startsWith(paramLower)) {
@@ -264233,7 +264316,7 @@ function checkDenyRuleForGuessedPath(strippedPath, cwd2, toolPermissionContext,
264233
264316
  if (!strippedPath || strippedPath.includes("\x00"))
264234
264317
  return null;
264235
264318
  const tildeExpanded = expandTilde2(strippedPath);
264236
- const abs = isAbsolute17(tildeExpanded) ? tildeExpanded : resolve30(cwd2, tildeExpanded);
264319
+ const abs = isAbsolute18(tildeExpanded) ? tildeExpanded : resolve30(cwd2, tildeExpanded);
264237
264320
  const { resolvedPath } = safeResolvePath(getFsImplementation(), abs);
264238
264321
  const permissionType = operationType === "read" ? "read" : "edit";
264239
264322
  const denyRule = matchingRuleForInput(resolvedPath, toolPermissionContext, permissionType, "deny");
@@ -264323,7 +264406,7 @@ function validatePath2(filePath, cwd2, toolPermissionContext, operationType) {
264323
264406
  };
264324
264407
  }
264325
264408
  if (containsPathTraversal(normalizedPath)) {
264326
- const absolutePath2 = isAbsolute17(normalizedPath) ? normalizedPath : resolve30(cwd2, normalizedPath);
264409
+ const absolutePath2 = isAbsolute18(normalizedPath) ? normalizedPath : resolve30(cwd2, normalizedPath);
264327
264410
  const { resolvedPath: resolvedPath3, isCanonical: isCanonical2 } = safeResolvePath(getFsImplementation(), absolutePath2);
264328
264411
  const result2 = isPathAllowed2(resolvedPath3, toolPermissionContext, operationType, isCanonical2 ? [resolvedPath3] : undefined);
264329
264412
  return {
@@ -264333,7 +264416,7 @@ function validatePath2(filePath, cwd2, toolPermissionContext, operationType) {
264333
264416
  };
264334
264417
  }
264335
264418
  const basePath = getGlobBaseDirectory2(normalizedPath);
264336
- const absoluteBasePath = isAbsolute17(basePath) ? basePath : resolve30(cwd2, basePath);
264419
+ const absoluteBasePath = isAbsolute18(basePath) ? basePath : resolve30(cwd2, basePath);
264337
264420
  const { resolvedPath: resolvedPath2 } = safeResolvePath(getFsImplementation(), absoluteBasePath);
264338
264421
  const permissionType = operationType === "read" ? "read" : "edit";
264339
264422
  const denyRule = matchingRuleForInput(resolvedPath2, toolPermissionContext, permissionType, "deny");
@@ -264353,7 +264436,7 @@ function validatePath2(filePath, cwd2, toolPermissionContext, operationType) {
264353
264436
  }
264354
264437
  };
264355
264438
  }
264356
- const absolutePath = isAbsolute17(normalizedPath) ? normalizedPath : resolve30(cwd2, normalizedPath);
264439
+ const absolutePath = isAbsolute18(normalizedPath) ? normalizedPath : resolve30(cwd2, normalizedPath);
264357
264440
  const { resolvedPath, isCanonical } = safeResolvePath(getFsImplementation(), absolutePath);
264358
264441
  const result = isPathAllowed2(resolvedPath, toolPermissionContext, operationType, isCanonical ? [resolvedPath] : undefined);
264359
264442
  return {
@@ -268144,7 +268227,7 @@ import { realpath as realpath10 } from "fs/promises";
268144
268227
  import {
268145
268228
  basename as basename24,
268146
268229
  dirname as dirname32,
268147
- isAbsolute as isAbsolute18,
268230
+ isAbsolute as isAbsolute19,
268148
268231
  join as join85,
268149
268232
  sep as pathSep,
268150
268233
  relative as relative15
@@ -268547,8 +268630,8 @@ function activateConditionalSkillsForPaths(filePaths, cwd2) {
268547
268630
  }
268548
268631
  const skillIgnore = import_ignore2.default().add(skill.paths);
268549
268632
  for (const filePath of filePaths) {
268550
- const relativePath = isAbsolute18(filePath) ? relative15(cwd2, filePath) : filePath;
268551
- if (!relativePath || relativePath.startsWith("..") || isAbsolute18(relativePath)) {
268633
+ const relativePath = isAbsolute19(filePath) ? relative15(cwd2, filePath) : filePath;
268634
+ if (!relativePath || relativePath.startsWith("..") || isAbsolute19(relativePath)) {
268552
268635
  continue;
268553
268636
  }
268554
268637
  if (skillIgnore.ignores(relativePath)) {
@@ -272311,7 +272394,7 @@ var init_UI8 = __esm(() => {
272311
272394
  });
272312
272395
 
272313
272396
  // tools/FileEditTool/FileEditTool.ts
272314
- 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";
272315
272398
  function readFileForEdit(absoluteFilePath) {
272316
272399
  try {
272317
272400
  const meta = readFileSyncWithMetadata(absoluteFilePath);
@@ -272515,7 +272598,7 @@ var init_FileEditTool = __esm(() => {
272515
272598
  behavior: "ask",
272516
272599
  message: "File has not been read yet. Read it first before writing to it.",
272517
272600
  meta: {
272518
- isFilePathAbsolute: String(isAbsolute19(file_path))
272601
+ isFilePathAbsolute: String(isAbsolute20(file_path))
272519
272602
  },
272520
272603
  errorCode: 6
272521
272604
  };
@@ -272543,7 +272626,7 @@ var init_FileEditTool = __esm(() => {
272543
272626
  message: `String to replace not found in file.
272544
272627
  String: ${old_string}`,
272545
272628
  meta: {
272546
- isFilePathAbsolute: String(isAbsolute19(file_path))
272629
+ isFilePathAbsolute: String(isAbsolute20(file_path))
272547
272630
  },
272548
272631
  errorCode: 8
272549
272632
  };
@@ -272556,7 +272639,7 @@ String: ${old_string}`,
272556
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.
272557
272640
  String: ${old_string}`,
272558
272641
  meta: {
272559
- isFilePathAbsolute: String(isAbsolute19(file_path)),
272642
+ isFilePathAbsolute: String(isAbsolute20(file_path)),
272560
272643
  actualOldString
272561
272644
  },
272562
272645
  errorCode: 9
@@ -272722,7 +272805,7 @@ String: ${old_string}`,
272722
272805
  });
272723
272806
 
272724
272807
  // tools/FileWriteTool/UI.tsx
272725
- 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";
272726
272809
  function countLines(content) {
272727
272810
  const parts = content.split(EOL3);
272728
272811
  return content.endsWith(EOL3) ? parts.length - 1 : parts.length;
@@ -273046,7 +273129,7 @@ function WriteRejectionBody(t0) {
273046
273129
  }
273047
273130
  async function loadRejectionDiff2(filePath, content) {
273048
273131
  try {
273049
- const fullFilePath = isAbsolute20(filePath) ? filePath : resolve32(getCwd(), filePath);
273132
+ const fullFilePath = isAbsolute21(filePath) ? filePath : resolve32(getCwd(), filePath);
273050
273133
  const handle = await openForScan(fullFilePath);
273051
273134
  if (handle === null)
273052
273135
  return {
@@ -273467,7 +273550,7 @@ var init_FileWriteTool = __esm(() => {
273467
273550
  });
273468
273551
 
273469
273552
  // utils/plugins/orphanedPluginFilter.ts
273470
- 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";
273471
273554
  async function getGlobExclusionsForPluginCache(searchPath) {
273472
273555
  const cachePath2 = normalize10(join87(getPluginsDirectory(), "cache"));
273473
273556
  if (searchPath && !pathsOverlap(searchPath, cachePath2)) {
@@ -273488,7 +273571,7 @@ async function getGlobExclusionsForPluginCache(searchPath) {
273488
273571
  ], cachePath2, new AbortController().signal);
273489
273572
  cachedExclusions = markers.map((markerPath) => {
273490
273573
  const versionDir = dirname36(markerPath);
273491
- const rel = isAbsolute21(versionDir) ? relative19(cachePath2, versionDir) : versionDir;
273574
+ const rel = isAbsolute22(versionDir) ? relative19(cachePath2, versionDir) : versionDir;
273492
273575
  const posixRelative = rel.replace(/\\/g, "/");
273493
273576
  return `!**/${posixRelative}/**`;
273494
273577
  });
@@ -273517,7 +273600,7 @@ var init_orphanedPluginFilter = __esm(() => {
273517
273600
  });
273518
273601
 
273519
273602
  // utils/glob.ts
273520
- 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";
273521
273604
  function extractGlobBaseDirectory(pattern) {
273522
273605
  const globChars = /[*?[{]/;
273523
273606
  const match = pattern.match(globChars);
@@ -273544,7 +273627,7 @@ function extractGlobBaseDirectory(pattern) {
273544
273627
  async function glob(filePattern, cwd2, { limit, offset }, abortSignal, toolPermissionContext) {
273545
273628
  let searchDir = cwd2;
273546
273629
  let searchPattern = filePattern;
273547
- if (isAbsolute22(filePattern)) {
273630
+ if (isAbsolute23(filePattern)) {
273548
273631
  const { baseDir, relativePattern } = extractGlobBaseDirectory(filePattern);
273549
273632
  if (baseDir) {
273550
273633
  searchDir = baseDir;
@@ -273569,7 +273652,7 @@ async function glob(filePattern, cwd2, { limit, offset }, abortSignal, toolPermi
273569
273652
  args.push("--glob", exclusion);
273570
273653
  }
273571
273654
  const allPaths = await ripGrep(args, searchDir, abortSignal);
273572
- const absolutePaths = allPaths.map((p) => isAbsolute22(p) ? p : join88(searchDir, p));
273655
+ const absolutePaths = allPaths.map((p) => isAbsolute23(p) ? p : join88(searchDir, p));
273573
273656
  const truncated = absolutePaths.length > offset + limit;
273574
273657
  const files = absolutePaths.slice(offset, offset + limit);
273575
273658
  return { files, truncated };
@@ -274859,7 +274942,7 @@ var init_UI12 = __esm(() => {
274859
274942
  });
274860
274943
 
274861
274944
  // tools/NotebookEditTool/NotebookEditTool.ts
274862
- 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";
274863
274946
  var inputSchema16, outputSchema13, NotebookEditTool;
274864
274947
  var init_NotebookEditTool = __esm(() => {
274865
274948
  init_fileHistory();
@@ -274969,7 +275052,7 @@ var init_NotebookEditTool = __esm(() => {
274969
275052
  renderToolUseErrorMessage: renderToolUseErrorMessage9,
274970
275053
  renderToolResultMessage: renderToolResultMessage12,
274971
275054
  async validateInput({ notebook_path, cell_type, cell_id, edit_mode = "replace" }, toolUseContext) {
274972
- const fullPath = isAbsolute23(notebook_path) ? notebook_path : resolve33(getCwd(), notebook_path);
275055
+ const fullPath = isAbsolute24(notebook_path) ? notebook_path : resolve33(getCwd(), notebook_path);
274973
275056
  if (fullPath.startsWith("\\\\") || fullPath.startsWith("//")) {
274974
275057
  return { result: true };
274975
275058
  }
@@ -275068,7 +275151,7 @@ var init_NotebookEditTool = __esm(() => {
275068
275151
  cell_type,
275069
275152
  edit_mode: originalEditMode
275070
275153
  }, { readFileState, updateFileHistoryState }, _, parentMessage) {
275071
- const fullPath = isAbsolute23(notebook_path) ? notebook_path : resolve33(getCwd(), notebook_path);
275154
+ const fullPath = isAbsolute24(notebook_path) ? notebook_path : resolve33(getCwd(), notebook_path);
275072
275155
  if (fileHistoryEnabled()) {
275073
275156
  await fileHistoryTrackEdit(updateFileHistoryState, fullPath, parentMessage.uuid);
275074
275157
  }
@@ -276164,7 +276247,7 @@ import { createHash as createHash20, randomUUID as randomUUID19 } from "crypto";
276164
276247
  import { existsSync as existsSync9 } from "fs";
276165
276248
  import { mkdir as mkdir25, readFile as readFile29, writeFile as writeFile25 } from "fs/promises";
276166
276249
  import { homedir as homedir27 } from "os";
276167
- 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";
276168
276251
  import { pathToFileURL as pathToFileURL6 } from "url";
276169
276252
  function toErr(e) {
276170
276253
  if (e instanceof Error) {
@@ -276216,7 +276299,7 @@ function looksLikePath(name) {
276216
276299
  function workflowFileCandidates(name, cwd2) {
276217
276300
  const candidates = [];
276218
276301
  if (looksLikePath(name)) {
276219
- const abs = isAbsolute24(name) ? name : resolve34(cwd2, name);
276302
+ const abs = isAbsolute25(name) ? name : resolve34(cwd2, name);
276220
276303
  if (extname14(abs)) {
276221
276304
  candidates.push(abs);
276222
276305
  } else {
@@ -276242,7 +276325,7 @@ function basenameNoExt(p) {
276242
276325
  return ext ? b.slice(0, -ext.length) : b;
276243
276326
  }
276244
276327
  async function loadWorkflowFromFile(filePath) {
276245
- const abs = isAbsolute24(filePath) ? filePath : resolve34(process.cwd(), filePath);
276328
+ const abs = isAbsolute25(filePath) ? filePath : resolve34(process.cwd(), filePath);
276246
276329
  if (!existsSync9(abs)) {
276247
276330
  throw new WorkflowError(`Archivo de workflow no encontrado: ${abs}`);
276248
276331
  }
@@ -276258,7 +276341,7 @@ async function loadWorkflowFromFile(filePath) {
276258
276341
  }
276259
276342
  function isPathInside(child, parent2) {
276260
276343
  const rel = relative21(parent2, child);
276261
- return rel === "" || !rel.startsWith("..") && !isAbsolute24(rel);
276344
+ return rel === "" || !rel.startsWith("..") && !isAbsolute25(rel);
276262
276345
  }
276263
276346
  function assertWorkflowScriptAllowed(info = {}) {
276264
276347
  const { path: scriptPath, cwd: cwd2 = process.cwd(), permissionMode } = info;
@@ -276266,7 +276349,7 @@ function assertWorkflowScriptAllowed(info = {}) {
276266
276349
  return;
276267
276350
  if (typeof scriptPath !== "string" || !scriptPath)
276268
276351
  return;
276269
- const abs = isAbsolute24(scriptPath) ? scriptPath : resolve34(cwd2, scriptPath);
276352
+ const abs = isAbsolute25(scriptPath) ? scriptPath : resolve34(cwd2, scriptPath);
276270
276353
  const allowedRoots = [
276271
276354
  resolve34(cwd2),
276272
276355
  resolve34(homedir27(), ".theus", WORKFLOWS_DIR_NAME)
@@ -278393,7 +278476,8 @@ var init_ProviderTool = __esm(() => {
278393
278476
  data: exports_external.unknown().optional().describe("Structured input for data-driven capabilities. chart: [{label,value}]; report: [{heading,body}]."),
278394
278477
  combine: exports_external.boolean().optional().describe("Run EVERY enabled provider per capability and fuse them (default: pick the single best)."),
278395
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.'),
278396
- 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.")
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."),
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.")
278397
278481
  }));
278398
278482
  ProviderTool = buildTool({
278399
278483
  name: PROVIDER_TOOL_NAME,
@@ -278430,8 +278514,11 @@ var init_ProviderTool = __esm(() => {
278430
278514
  if (typeof input.size === "string" && input.size) {
278431
278515
  params.image = { size: input.size };
278432
278516
  }
278433
- if (typeof input.durationSec === "number") {
278434
- params.video = { durationSec: input.durationSec };
278517
+ if (typeof input.durationSec === "number" || input.imagenUrl) {
278518
+ params.video = {
278519
+ ...typeof input.durationSec === "number" ? { durationSec: input.durationSec } : {},
278520
+ ...input.imagenUrl ? { imageUrl: input.imagenUrl } : {}
278521
+ };
278435
278522
  }
278436
278523
  const route = {
278437
278524
  capabilities: input.capabilities,
@@ -304765,9 +304852,9 @@ function getTheusEnvMetadata() {
304765
304852
  };
304766
304853
  }
304767
304854
  function getBuildAgeMinutes() {
304768
- if (!{ VERSION: "0.2.44", BUILD_TIME: "1970-01-01T00:00:00.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)
304769
304856
  return;
304770
- const buildTime = new Date({ VERSION: "0.2.44", BUILD_TIME: "1970-01-01T00:00:00.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();
304771
304858
  if (isNaN(buildTime))
304772
304859
  return;
304773
304860
  return Math.floor((Date.now() - buildTime) / 60000);
@@ -313617,7 +313704,7 @@ __export(exports_marketplaceManager, {
313617
313704
  _test: () => _test
313618
313705
  });
313619
313706
  import { writeFile as writeFile35 } from "fs/promises";
313620
- 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";
313621
313708
  function getKnownMarketplacesFile() {
313622
313709
  return join109(getPluginsDirectory(), "known_marketplaces.json");
313623
313710
  }
@@ -314371,7 +314458,7 @@ Technical details: ${errorMsg}`);
314371
314458
  }
314372
314459
  async function addMarketplaceSource(source, onProgress) {
314373
314460
  let resolvedSource = source;
314374
- if (isLocalMarketplaceSource(source) && !isAbsolute25(source.path)) {
314461
+ if (isLocalMarketplaceSource(source) && !isAbsolute26(source.path)) {
314375
314462
  resolvedSource = { ...source, path: resolve38(source.path) };
314376
314463
  }
314377
314464
  if (!isSourceAllowedByPolicy(resolvedSource)) {
@@ -314784,7 +314871,7 @@ var init_marketplaceManager = __esm(() => {
314784
314871
  if (!entry) {
314785
314872
  throw new Error(`Marketplace '${name}' not found in configuration. Available marketplaces: ${Object.keys(config2).join(", ")}`);
314786
314873
  }
314787
- if (isLocalMarketplaceSource(entry.source) && !isAbsolute25(entry.source.path)) {
314874
+ if (isLocalMarketplaceSource(entry.source) && !isAbsolute26(entry.source.path)) {
314788
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.`);
314789
314876
  }
314790
314877
  try {
@@ -321415,7 +321502,7 @@ function getAssistantMessageFromError(error40, model, options2) {
321415
321502
  if (process.env.USER_TYPE === "ant") {
321416
321503
  const baseMessage = `API Error: 400 ${error40.message}
321417
321504
 
321418
- Run /share and post the JSON file to ${{ VERSION: "0.2.44", BUILD_TIME: "1970-01-01T00:00:00.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}.`;
321419
321506
  const rewindInstruction = getIsNonInteractiveSession() ? "" : " Then, use /rewind to recover the conversation.";
321420
321507
  return createAssistantAPIErrorMessage({
321421
321508
  content: baseMessage + rewindInstruction,
@@ -321451,7 +321538,7 @@ Run /share and post the JSON file to ${{ VERSION: "0.2.44", BUILD_TIME: "1970-01
321451
321538
  if (process.env.USER_TYPE === "ant" && !process.env.THEUS_MODEL && error40 instanceof Error && error40.message.toLowerCase().includes("invalid model name")) {
321452
321539
  const orgId = getOauthAccountInfo()?.organizationUuid;
321453
321540
  const baseMsg = `[THEUS-INTERNAL] Your org isn't gated into the \`${model}\` model. Either run \`theus\` with \`THEUS_MODEL=${getDefaultMainLoopModelSetting()}\``;
321454
- const msg = orgId ? `${baseMsg} or share your orgId (${orgId}) in ${{ VERSION: "0.2.44", BUILD_TIME: "1970-01-01T00:00:00.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.44", BUILD_TIME: "1970-01-01T00:00:00.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.`;
321455
321542
  return createAssistantAPIErrorMessage({
321456
321543
  content: msg,
321457
321544
  error: "invalid_request"
@@ -331624,7 +331711,7 @@ function buildPrimarySection() {
331624
331711
  });
331625
331712
  return [{
331626
331713
  label: "Version",
331627
- value: { VERSION: "0.2.44", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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
331628
331715
  }, {
331629
331716
  label: "Session name",
331630
331717
  value: nameValue
@@ -335440,7 +335527,7 @@ function Config({
335440
335527
  }
335441
335528
  })
335442
335529
  }) : showSubmenu === "ChannelDowngrade" ? /* @__PURE__ */ jsx_runtime188.jsx(ChannelDowngradeDialog, {
335443
- currentVersion: { VERSION: "0.2.44", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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,
335444
335531
  onChoice: (choice) => {
335445
335532
  setShowSubmenu(null);
335446
335533
  setTabsHidden(false);
@@ -335452,7 +335539,7 @@ function Config({
335452
335539
  autoUpdatesChannel: "stable"
335453
335540
  };
335454
335541
  if (choice === "stay") {
335455
- newSettings.minimumVersion = { VERSION: "0.2.44", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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;
335456
335543
  }
335457
335544
  updateSettingsForSource("userSettings", newSettings);
335458
335545
  setSettingsData((prev_27) => ({
@@ -343486,7 +343573,7 @@ function HelpV2(t0) {
343486
343573
  let t6;
343487
343574
  if ($2[31] !== tabs) {
343488
343575
  t6 = /* @__PURE__ */ jsx_runtime215.jsx(Tabs, {
343489
- title: `Theus v${{ VERSION: "0.2.44", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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}`,
343490
343577
  color: "professionalBlue",
343491
343578
  defaultTab: "general",
343492
343579
  children: tabs
@@ -361597,7 +361684,7 @@ function Onboarding({
361597
361684
  flexDirection: "column",
361598
361685
  children: [
361599
361686
  /* @__PURE__ */ jsx_runtime248.jsx(TheusBanner, {
361600
- version: { VERSION: "0.2.44", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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
361601
361688
  }),
361602
361689
  /* @__PURE__ */ jsx_runtime248.jsxs(ThemedBox_default, {
361603
361690
  flexDirection: "column",
@@ -362098,9 +362185,9 @@ function getAllReleaseNotes(changelogContent = getStoredChangelogFromMemory()) {
362098
362185
  return [];
362099
362186
  }
362100
362187
  }
362101
- async function checkForReleaseNotes(lastSeenVersion, currentVersion = { VERSION: "0.2.44", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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) {
362102
362189
  if (process.env.USER_TYPE === "ant") {
362103
- const changelog = { VERSION: "0.2.44", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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;
362104
362191
  if (changelog) {
362105
362192
  const commits = changelog.trim().split(`
362106
362193
  `).filter(Boolean);
@@ -366302,7 +366389,7 @@ var init_Messages = __esm(() => {
366302
366389
  let t1;
366303
366390
  if ($2[0] === Symbol.for("react.memo_cache_sentinel")) {
366304
366391
  t1 = /* @__PURE__ */ jsx_runtime260.jsx(TheusSessionHeader, {
366305
- version: { VERSION: "0.2.44", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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
366306
366393
  });
366307
366394
  $2[0] = t1;
366308
366395
  } else {
@@ -394774,7 +394861,7 @@ async function captureMemoryDiagnostics(trigger, dumpNumber = 0) {
394774
394861
  smapsRollup,
394775
394862
  platform: process.platform,
394776
394863
  nodeVersion: process.version,
394777
- ccVersion: { VERSION: "0.2.44", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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
394778
394865
  };
394779
394866
  }
394780
394867
  async function performHeapDump(trigger = "manual", dumpNumber = 0) {
@@ -395360,7 +395447,7 @@ var init_bridge_kick = __esm(() => {
395360
395447
  var call58 = async () => {
395361
395448
  return {
395362
395449
  type: "text",
395363
- value: { VERSION: "0.2.44", BUILD_TIME: "1970-01-01T00:00:00.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.44", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.44", BUILD_TIME: "1970-01-01T00:00:00.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.44", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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
395364
395451
  };
395365
395452
  }, version2, version_default;
395366
395453
  var init_version = __esm(() => {
@@ -397323,7 +397410,7 @@ var init_advisor2 = __esm(() => {
397323
397410
  // skills/bundledSkills.ts
397324
397411
  import { constants as fsConstants5 } from "fs";
397325
397412
  import { mkdir as mkdir43, open as open13 } from "fs/promises";
397326
- 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";
397327
397414
  function registerBundledSkill(definition) {
397328
397415
  const { files: files2 } = definition;
397329
397416
  let skillRoot;
@@ -397410,7 +397497,7 @@ async function safeWriteFile(p, content) {
397410
397497
  }
397411
397498
  function resolveSkillFilePath(baseDir, relPath) {
397412
397499
  const normalized = normalize13(relPath);
397413
- if (isAbsolute26(normalized) || normalized.split(pathSep2).includes("..") || normalized.split("/").includes("..")) {
397500
+ if (isAbsolute27(normalized) || normalized.split(pathSep2).includes("..") || normalized.split("/").includes("..")) {
397414
397501
  throw new Error(`bundled skill file path escapes skill dir: ${relPath}`);
397415
397502
  }
397416
397503
  return join139(baseDir, normalized);
@@ -399802,13 +399889,13 @@ async function updateReleaseBundle() {
399802
399889
  await gracefulShutdown(1);
399803
399890
  return;
399804
399891
  }
399805
- if (gte({ VERSION: "0.2.44", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
399806
- writeToStdout(source_default.green(`Theus is up to date (${{ VERSION: "0.2.44", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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})`) + `
399807
399894
  `);
399808
399895
  await gracefulShutdown(0);
399809
399896
  return;
399810
399897
  }
399811
- writeToStdout(`New version available: ${latest} (current: ${{ VERSION: "0.2.44", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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})
399812
399899
  `);
399813
399900
  writeToStdout(`Installing update from theus.pe/dl...
399814
399901
  `);
@@ -399842,7 +399929,7 @@ async function updateReleaseBundle() {
399842
399929
  return;
399843
399930
  }
399844
399931
  cpSync(staged, bundleDir, { recursive: true, force: true });
399845
- writeToStdout(source_default.green(`Successfully updated from ${{ VERSION: "0.2.44", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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}`) + `
399846
399933
  `);
399847
399934
  await regenerateCompletionCache();
399848
399935
  } finally {
@@ -399855,7 +399942,7 @@ async function updateReleaseBundle() {
399855
399942
  async function update() {
399856
399943
  logEvent("tengu_update_check", {});
399857
399944
  await updateNaupa();
399858
- writeToStdout(`Current version: ${{ VERSION: "0.2.44", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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}
399859
399946
  `);
399860
399947
  const channel2 = getInitialSettings()?.autoUpdatesChannel ?? "latest";
399861
399948
  writeToStdout(`Checking for updates to ${channel2} version...
@@ -399934,8 +400021,8 @@ async function update() {
399934
400021
  writeToStdout(`Theus is managed by Homebrew.
399935
400022
  `);
399936
400023
  const latest = await getLatestVersion(channel2);
399937
- if (latest && !gte({ VERSION: "0.2.44", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
399938
- writeToStdout(`Update available: ${{ VERSION: "0.2.44", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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}
399939
400026
  `);
399940
400027
  writeToStdout(`
399941
400028
  `);
@@ -399951,8 +400038,8 @@ async function update() {
399951
400038
  writeToStdout(`Theus is managed by winget.
399952
400039
  `);
399953
400040
  const latest = await getLatestVersion(channel2);
399954
- if (latest && !gte({ VERSION: "0.2.44", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
399955
- writeToStdout(`Update available: ${{ VERSION: "0.2.44", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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}
399956
400043
  `);
399957
400044
  writeToStdout(`
399958
400045
  `);
@@ -399968,8 +400055,8 @@ async function update() {
399968
400055
  writeToStdout(`Theus is managed by apk.
399969
400056
  `);
399970
400057
  const latest = await getLatestVersion(channel2);
399971
- if (latest && !gte({ VERSION: "0.2.44", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
399972
- writeToStdout(`Update available: ${{ VERSION: "0.2.44", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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}
399973
400060
  `);
399974
400061
  writeToStdout(`
399975
400062
  `);
@@ -400034,11 +400121,11 @@ async function update() {
400034
400121
  `);
400035
400122
  await gracefulShutdown(1);
400036
400123
  }
400037
- if (result.latestVersion === { VERSION: "0.2.44", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION) {
400038
- writeToStdout(source_default.green(`Theus is up to date (${{ VERSION: "0.2.44", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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})`) + `
400039
400126
  `);
400040
400127
  } else {
400041
- writeToStdout(source_default.green(`Successfully updated from ${{ VERSION: "0.2.44", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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}`) + `
400042
400129
  `);
400043
400130
  await regenerateCompletionCache();
400044
400131
  }
@@ -400057,9 +400144,9 @@ async function update() {
400057
400144
  await removeInstalledSymlink();
400058
400145
  }
400059
400146
  logForDebugging("update: Checking npm registry for latest version");
400060
- logForDebugging(`update: Package URL: ${{ VERSION: "0.2.44", BUILD_TIME: "1970-01-01T00:00:00.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}`);
400061
400148
  const npmTag = channel2 === "stable" ? "stable" : "latest";
400062
- const npmCommand = `npm view ${{ VERSION: "0.2.44", BUILD_TIME: "1970-01-01T00:00:00.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`;
400063
400150
  logForDebugging(`update: Running: ${npmCommand}`);
400064
400151
  const latestVersion = await getLatestVersion(channel2);
400065
400152
  logForDebugging(`update: Latest version from npm: ${latestVersion || "FAILED"}`);
@@ -400079,7 +400166,7 @@ async function update() {
400079
400166
  `);
400080
400167
  process.stderr.write(` \u2022 Corporate proxy/firewall blocking npm
400081
400168
  `);
400082
- if ({ VERSION: "0.2.44", BUILD_TIME: "1970-01-01T00:00:00.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.44", BUILD_TIME: "1970-01-01T00:00:00.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")) {
400083
400170
  process.stderr.write(` \u2022 Internal/development build not published to npm
400084
400171
  `);
400085
400172
  }
@@ -400091,19 +400178,19 @@ async function update() {
400091
400178
  `);
400092
400179
  process.stderr.write(` \u2022 Run with --debug flag for more details
400093
400180
  `);
400094
- const packageName = { VERSION: "0.2.44", BUILD_TIME: "1970-01-01T00:00:00.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");
400095
400182
  process.stderr.write(` \u2022 Manually check: npm view ${packageName} version
400096
400183
  `);
400097
400184
  process.stderr.write(` \u2022 Check if you need to login: npm whoami
400098
400185
  `);
400099
400186
  await gracefulShutdown(1);
400100
400187
  }
400101
- if (gte({ VERSION: "0.2.44", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
400102
- writeToStdout(source_default.green(`Theus is up to date (${{ VERSION: "0.2.44", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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})`) + `
400103
400190
  `);
400104
400191
  await gracefulShutdown(0);
400105
400192
  }
400106
- writeToStdout(`New version available: ${latestVersion} (current: ${{ VERSION: "0.2.44", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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})
400107
400194
  `);
400108
400195
  writeToStdout(`Installing update...
400109
400196
  `);
@@ -400148,7 +400235,7 @@ async function update() {
400148
400235
  logForDebugging(`update: Installation status: ${status2}`);
400149
400236
  switch (status2) {
400150
400237
  case "success":
400151
- writeToStdout(source_default.green(`Successfully updated from ${{ VERSION: "0.2.44", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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}`) + `
400152
400239
  `);
400153
400240
  await regenerateCompletionCache();
400154
400241
  break;
@@ -400158,7 +400245,7 @@ async function update() {
400158
400245
  if (useLocalUpdate) {
400159
400246
  process.stderr.write(`Try manually updating with:
400160
400247
  `);
400161
- process.stderr.write(` cd ~/.theus/local && npm update ${{ VERSION: "0.2.44", BUILD_TIME: "1970-01-01T00:00:00.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}
400162
400249
  `);
400163
400250
  } else {
400164
400251
  process.stderr.write(`Try running with sudo or fix npm permissions
@@ -400174,7 +400261,7 @@ async function update() {
400174
400261
  if (useLocalUpdate) {
400175
400262
  process.stderr.write(`Try manually updating with:
400176
400263
  `);
400177
- process.stderr.write(` cd ~/.theus/local && npm update ${{ VERSION: "0.2.44", BUILD_TIME: "1970-01-01T00:00:00.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}
400178
400265
  `);
400179
400266
  } else {
400180
400267
  process.stderr.write(`Or consider using native installation with: theus install
@@ -409257,7 +409344,7 @@ var init_sessionStorage = __esm(() => {
409257
409344
  init_settings2();
409258
409345
  init_slowOperations();
409259
409346
  init_uuid();
409260
- VERSION4 = { VERSION: "0.2.44", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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;
409261
409348
  MAX_TOMBSTONE_REWRITE_BYTES = 50 * 1024 * 1024;
409262
409349
  SKIP_FIRST_PROMPT_PATTERN = /^(?:\s*<[a-z][\w-]*[\s>]|\[Request interrupted by user[^\]]*\])/;
409263
409350
  EPHEMERAL_PROGRESS_TYPES = new Set([
@@ -410462,7 +410549,7 @@ var init_filesystem = __esm(() => {
410462
410549
  });
410463
410550
  getBundledSkillsRoot = memoize_default(function getBundledSkillsRoot2() {
410464
410551
  const nonce = randomBytes21(16).toString("hex");
410465
- return join149(getTheusTempDir(), "bundled-skills", { VERSION: "0.2.44", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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);
410466
410553
  });
410467
410554
  getResolvedWorkingDirPaths = memoize_default(getPathsForPermissionCheck);
410468
410555
  });
@@ -415641,7 +415728,7 @@ function getSimpleDoingTasksSection() {
415641
415728
  ];
415642
415729
  const userHelpSubitems = [
415643
415730
  `/help: Get help with using Theus`,
415644
- `To give feedback, users should ${{ VERSION: "0.2.44", BUILD_TIME: "1970-01-01T00:00:00.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}`
415645
415732
  ];
415646
415733
  const items = [
415647
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.`,
@@ -416541,7 +416628,7 @@ function computeFingerprint(messageText, version3) {
416541
416628
  }
416542
416629
  function computeFingerprintFromMessages(messages) {
416543
416630
  const firstMessageText = extractFirstMessageText(messages);
416544
- return computeFingerprint(firstMessageText, { VERSION: "0.2.44", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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);
416545
416632
  }
416546
416633
  var FINGERPRINT_SALT = "59cf53e54c78";
416547
416634
  var init_fingerprint = () => {};
@@ -419101,7 +419188,7 @@ async function sideQuery(opts) {
419101
419188
  betas.push(STRUCTURED_OUTPUTS_BETA_HEADER);
419102
419189
  }
419103
419190
  const messageText = extractFirstUserMessageText(messages);
419104
- const fingerprint = computeFingerprint(messageText, { VERSION: "0.2.44", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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);
419105
419192
  const attributionHeader = getAttributionHeader(fingerprint);
419106
419193
  const systemBlocks = [
419107
419194
  attributionHeader ? { type: "text", text: attributionHeader } : null,
@@ -420404,7 +420491,7 @@ async function handleMemories(state) {
420404
420491
  async function runProjectContextMcpServer() {
420405
420492
  const projectRoot = process.env.THEUS_PROJECT_ROOT || process.cwd();
420406
420493
  const state = new ProjectContextState(projectRoot);
420407
- const server2 = new Server({ name: SERVER_NAME, version: { VERSION: "0.2.44", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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: {} } });
420408
420495
  server2.setRequestHandler(ListToolsRequestSchema, async () => ({
420409
420496
  tools: TOOL_DEFINITIONS.map((t) => ({
420410
420497
  name: t.name,
@@ -422384,7 +422471,7 @@ function createBridgeLogger(options2) {
422384
422471
  connectUrl = buildBridgeConnectUrl(environmentId, cachedIngressUrl);
422385
422472
  regenerateQr(connectUrl);
422386
422473
  if (verbose) {
422387
- write(source_default.dim(`Remote Control`) + ` v${{ VERSION: "0.2.44", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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}
422388
422475
  `);
422389
422476
  }
422390
422477
  if (verbose) {
@@ -423357,7 +423444,7 @@ function appendToLog(path19, message) {
423357
423444
  cwd: getFsImplementation().cwd(),
423358
423445
  userType: process.env.USER_TYPE,
423359
423446
  sessionId: getSessionId(),
423360
- version: { VERSION: "0.2.44", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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
423361
423448
  };
423362
423449
  getLogWriter(path19).write(messageWithTimestamp);
423363
423450
  }
@@ -424627,7 +424714,7 @@ Spawn mode for this project:
424627
424714
  const api2 = createBridgeApiClient({
424628
424715
  baseUrl,
424629
424716
  getAccessToken: getBridgeAccessToken2,
424630
- runnerVersion: { VERSION: "0.2.44", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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,
424631
424718
  onDebug: logForDebugging,
424632
424719
  onAuth401: handleOAuth401Error2,
424633
424720
  getTrustedDeviceToken
@@ -424865,7 +424952,7 @@ async function runBridgeHeadless(opts, signal) {
424865
424952
  const api2 = createBridgeApiClient({
424866
424953
  baseUrl,
424867
424954
  getAccessToken: opts.getAccessToken,
424868
- runnerVersion: { VERSION: "0.2.44", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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,
424869
424956
  onDebug: log2,
424870
424957
  onAuth401: opts.onAuth401,
424871
424958
  getTrustedDeviceToken
@@ -428929,7 +429016,7 @@ function buildSystemInitMessage(inputs) {
428929
429016
  slash_commands: inputs.commands.filter((c5) => c5.userInvocable !== false).map((c5) => c5.name),
428930
429017
  apiKeySource: getTheusApiKeyWithSource().source,
428931
429018
  betas: getSdkBetas(),
428932
- theus_code_version: { VERSION: "0.2.44", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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,
428933
429020
  output_style: outputStyle2,
428934
429021
  agents: inputs.agents.map((agent) => agent.agentType),
428935
429022
  skills: inputs.skills.filter((s) => s.userInvocable !== false).map((skill) => skill.name),
@@ -428969,8 +429056,8 @@ async function getEnvLessBridgeConfig() {
428969
429056
  }
428970
429057
  async function checkEnvLessBridgeMinVersion() {
428971
429058
  const cfg = await getEnvLessBridgeConfig();
428972
- if (cfg.min_version && lt({ VERSION: "0.2.44", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
428973
- return `Your version of Theus (${{ VERSION: "0.2.44", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.
428974
429061
  Version ${cfg.min_version} or higher is required. Run \`theus update\` to update.`;
428975
429062
  }
428976
429063
  return null;
@@ -431293,7 +431380,7 @@ async function initBridgeCore(params) {
431293
431380
  const rawApi = createBridgeApiClient({
431294
431381
  baseUrl,
431295
431382
  getAccessToken,
431296
- runnerVersion: { VERSION: "0.2.44", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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,
431297
431384
  onDebug: logForDebugging,
431298
431385
  onAuth401,
431299
431386
  getTrustedDeviceToken
@@ -448034,7 +448121,7 @@ var init_useVoiceEnabled = __esm(() => {
448034
448121
  function getSemverPart(version3) {
448035
448122
  return `${import_semver14.major(version3, { loose: true })}.${import_semver14.minor(version3, { loose: true })}.${import_semver14.patch(version3, { loose: true })}`;
448036
448123
  }
448037
- function useUpdateNotification(updatedVersion, initialVersion = { VERSION: "0.2.44", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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) {
448038
448125
  const [lastNotifiedSemver, setLastNotifiedSemver] = import_react231.useState(() => getSemverPart(initialVersion));
448039
448126
  if (!updatedVersion) {
448040
448127
  return null;
@@ -448074,7 +448161,7 @@ function AutoUpdater({
448074
448161
  return;
448075
448162
  }
448076
448163
  if (false) {}
448077
- const currentVersion = { VERSION: "0.2.44", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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;
448078
448165
  const channel2 = getInitialSettings()?.autoUpdatesChannel ?? "latest";
448079
448166
  let latestVersion = await getLatestVersion(channel2);
448080
448167
  const isDisabled2 = isAutoUpdaterDisabled();
@@ -448210,7 +448297,7 @@ function AutoUpdater({
448210
448297
  " ",
448211
448298
  /* @__PURE__ */ jsx_runtime405.jsx(ThemedText, {
448212
448299
  bold: true,
448213
- children: hasLocalInstall ? `cd ~/.theus/local && npm update ${{ VERSION: "0.2.44", BUILD_TIME: "1970-01-01T00:00:00.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.44", BUILD_TIME: "1970-01-01T00:00:00.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}`
448214
448301
  })
448215
448302
  ]
448216
448303
  })
@@ -448287,12 +448374,12 @@ function NativeAutoUpdater({
448287
448374
  logEvent("tengu_native_auto_updater_start", {});
448288
448375
  try {
448289
448376
  const maxVersion = await getMaxVersion();
448290
- if (maxVersion && gt({ VERSION: "0.2.44", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
448291
448378
  const msg = await getMaxVersionMessage();
448292
448379
  setMaxVersionIssue(msg ?? "affects your version");
448293
448380
  }
448294
448381
  const result = await installLatest(channel2);
448295
- const currentVersion = { VERSION: "0.2.44", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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;
448296
448383
  const latencyMs = Date.now() - startTime2;
448297
448384
  if (result.lockFailed) {
448298
448385
  logEvent("tengu_native_auto_updater_lock_contention", {
@@ -448429,17 +448516,17 @@ function PackageManagerAutoUpdater(t0) {
448429
448516
  const maxVersion = await getMaxVersion();
448430
448517
  if (maxVersion && latest && gt(latest, maxVersion)) {
448431
448518
  logForDebugging(`PackageManagerAutoUpdater: maxVersion ${maxVersion} is set, capping update from ${latest} to ${maxVersion}`);
448432
- if (gte({ VERSION: "0.2.44", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
448433
- logForDebugging(`PackageManagerAutoUpdater: current version ${{ VERSION: "0.2.44", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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`);
448434
448521
  setUpdateAvailable(false);
448435
448522
  return;
448436
448523
  }
448437
448524
  latest = maxVersion;
448438
448525
  }
448439
- const hasUpdate = latest && !gte({ VERSION: "0.2.44", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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);
448440
448527
  setUpdateAvailable(!!hasUpdate);
448441
448528
  if (hasUpdate) {
448442
- logForDebugging(`PackageManagerAutoUpdater: Update available ${{ VERSION: "0.2.44", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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}`);
448443
448530
  }
448444
448531
  };
448445
448532
  $2[0] = t1;
@@ -448473,7 +448560,7 @@ function PackageManagerAutoUpdater(t0) {
448473
448560
  wrap: "truncate",
448474
448561
  children: [
448475
448562
  "currentVersion: ",
448476
- { VERSION: "0.2.44", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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
448477
448564
  ]
448478
448565
  });
448479
448566
  $2[3] = verbose;
@@ -456346,7 +456433,7 @@ function buildStatusLineCommandInput(permissionMode, exceeds200kTokens, settings
456346
456433
  project_dir: getOriginalCwd(),
456347
456434
  added_dirs: addedDirs
456348
456435
  },
456349
- version: { VERSION: "0.2.44", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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,
456350
456437
  output_style: {
456351
456438
  name: outputStyleName
456352
456439
  },
@@ -467766,7 +467853,7 @@ async function submitTranscriptShare(messages, trigger, appearanceId) {
467766
467853
  } catch {}
467767
467854
  const data = {
467768
467855
  trigger,
467769
- version: { VERSION: "0.2.44", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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,
467770
467857
  platform: process.platform,
467771
467858
  transcript,
467772
467859
  subagentTranscripts: Object.keys(subagentTranscripts).length > 0 ? subagentTranscripts : undefined,
@@ -473176,7 +473263,7 @@ var init_usePluginAutoupdateNotification = __esm(() => {
473176
473263
  });
473177
473264
 
473178
473265
  // utils/plugins/reconciler.ts
473179
- import { isAbsolute as isAbsolute27, resolve as resolve51 } from "path";
473266
+ import { isAbsolute as isAbsolute28, resolve as resolve51 } from "path";
473180
473267
  function diffMarketplaces(declared, materialized, opts) {
473181
473268
  const missing = [];
473182
473269
  const sourceChanged = [];
@@ -473284,7 +473371,7 @@ async function reconcileMarketplaces(opts) {
473284
473371
  return { installed, updated, failed, upToDate: diff3.upToDate, skipped };
473285
473372
  }
473286
473373
  function normalizeSource(source, projectRoot) {
473287
- if ((source.source === "directory" || source.source === "file") && !isAbsolute27(source.path)) {
473374
+ if ((source.source === "directory" || source.source === "file") && !isAbsolute28(source.path)) {
473288
473375
  const base2 = projectRoot ?? getOriginalCwd();
473289
473376
  const canonicalRoot = findCanonicalGitRoot(base2);
473290
473377
  return {
@@ -480773,7 +480860,7 @@ function completeOnboarding() {
480773
480860
  saveGlobalConfig((current) => ({
480774
480861
  ...current,
480775
480862
  hasCompletedOnboarding: true,
480776
- lastOnboardingVersion: { VERSION: "0.2.44", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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
480777
480864
  }));
480778
480865
  }
480779
480866
  function showDialog(root2, renderer) {
@@ -491771,7 +491858,7 @@ async function startMCPServer(cwd3, debug3, verbose) {
491771
491858
  setCwd(cwd3);
491772
491859
  const server2 = new Server({
491773
491860
  name: "theus/tengu",
491774
- version: { VERSION: "0.2.44", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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
491775
491862
  }, {
491776
491863
  capabilities: {
491777
491864
  tools: {}
@@ -493213,7 +493300,7 @@ async function setupTokenHandler(root2) {
493213
493300
  gap: 1,
493214
493301
  children: [
493215
493302
  /* @__PURE__ */ jsx_runtime492.jsx(TheusBanner, {
493216
- version: { VERSION: "0.2.44", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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
493217
493304
  }),
493218
493305
  showAuthWarning && /* @__PURE__ */ jsx_runtime492.jsxs(ThemedBox_default, {
493219
493306
  flexDirection: "column",
@@ -494695,7 +494782,7 @@ ${assistantAddendum}` : assistantAddendum;
494695
494782
  }
494696
494783
  }
494697
494784
  logForDiagnosticsNoPII("info", "started", {
494698
- version: { VERSION: "0.2.44", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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,
494699
494786
  is_native_binary: isInBundledMode()
494700
494787
  });
494701
494788
  registerCleanup(async () => {
@@ -495563,7 +495650,7 @@ Usage: theus --remote "your task description"`, () => gracefulShutdown(1));
495563
495650
  pendingHookMessages
495564
495651
  }, renderAndRun);
495565
495652
  }
495566
- }).version(`${{ VERSION: "0.2.44", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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");
495567
495654
  program2.option("-w, --worktree [name]", "Crea un nuevo worktree de git para esta sesi\xF3n (opcionalmente indica un nombre)");
495568
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.");
495569
495656
  if (canUserConfigureAdvisor()) {
@@ -496115,7 +496202,7 @@ if (false) {}
496115
496202
  async function main2() {
496116
496203
  const args = process.argv.slice(2);
496117
496204
  if (args.length === 1 && (args[0] === "--version" || args[0] === "-v" || args[0] === "-V")) {
496118
- console.log(`${{ VERSION: "0.2.44", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)`);
496119
496206
  return;
496120
496207
  }
496121
496208
  const {