theus-cli 0.2.34 → 0.2.36
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cli.js +539 -415
- package/package.json +2 -2
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.
|
|
58327
|
+
const error40 = new Error(`Security: apiKeyHelper executed before workspace trust is confirmed. If you see this message, post in ${{ VERSION: "0.2.36", BUILD_TIME: "1970-01-01T00:00:00.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.
|
|
58371
|
+
const error40 = new Error(`Security: awsAuthRefresh executed before workspace trust is confirmed. If you see this message, post in ${{ VERSION: "0.2.36", BUILD_TIME: "1970-01-01T00:00:00.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.
|
|
58431
|
+
const error40 = new Error(`Security: awsCredentialExport executed before workspace trust is confirmed. If you see this message, post in ${{ VERSION: "0.2.36", BUILD_TIME: "1970-01-01T00:00:00.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.
|
|
58516
|
+
const error40 = new Error(`Security: gcpAuthRefresh executed before workspace trust is confirmed. If you see this message, post in ${{ VERSION: "0.2.36", BUILD_TIME: "1970-01-01T00:00:00.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.
|
|
59211
|
+
return `theus-code/${{ VERSION: "0.2.36", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.
|
|
59233
|
+
return `theus-cli/${{ VERSION: "0.2.36", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.
|
|
59247
|
+
return `theus-code/${{ VERSION: "0.2.36", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.
|
|
59385
|
+
appVersion: { VERSION: "0.2.36", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.
|
|
61100
|
+
const match = { VERSION: "0.2.36", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.
|
|
61140
|
+
version: { VERSION: "0.2.36", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.
|
|
61142
|
+
buildTime: { VERSION: "0.2.36", BUILD_TIME: "1970-01-01T00:00:00.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.
|
|
61808
|
+
[ATTR_SERVICE_VERSION]: { VERSION: "0.2.36", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.
|
|
61835
|
+
firstPartyEventLogger = firstPartyEventLoggerProvider.getLogger("com.theus.theus_code.events", { VERSION: "0.2.36", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.
|
|
63706
|
+
const version2 = `${{ VERSION: "0.2.36", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.
|
|
107817
|
+
return `- When you cannot find an answer or the feature doesn't exist, direct the user to ${{ VERSION: "0.2.36", BUILD_TIME: "1970-01-01T00:00:00.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.
|
|
166526
|
+
attributes["app.version"] = { VERSION: "0.2.36", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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) {
|
|
@@ -202536,7 +202536,7 @@ function getInstallationEnv() {
|
|
|
202536
202536
|
return;
|
|
202537
202537
|
}
|
|
202538
202538
|
function getTheusCodeVersion() {
|
|
202539
|
-
return { VERSION: "0.2.
|
|
202539
|
+
return { VERSION: "0.2.36", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION;
|
|
202540
202540
|
}
|
|
202541
202541
|
async function getInstalledVSCodeExtensionVersion(command) {
|
|
202542
202542
|
const { stdout } = await execFileNoThrow(command, ["--list-extensions", "--show-versions"], {
|
|
@@ -204054,7 +204054,7 @@ async function getMcpHeadersFromHelper(serverName, config2) {
|
|
|
204054
204054
|
if ("scope" in config2 && isMcpServerFromProjectOrLocalSettings(config2) && !getIsNonInteractiveSession()) {
|
|
204055
204055
|
const hasTrust = checkHasTrustDialogAccepted();
|
|
204056
204056
|
if (!hasTrust) {
|
|
204057
|
-
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.
|
|
204057
|
+
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.36", BUILD_TIME: "1970-01-01T00:00:00.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}.`);
|
|
204058
204058
|
logAntError("MCP headersHelper invoked before trust check", error40);
|
|
204059
204059
|
logEvent("tengu_mcp_headersHelper_missing_trust", {});
|
|
204060
204060
|
return null;
|
|
@@ -205264,7 +205264,7 @@ async function setupSdkMcpClients(sdkMcpConfigs, sendMcpMessage) {
|
|
|
205264
205264
|
const client2 = new Client({
|
|
205265
205265
|
name: "theus-code",
|
|
205266
205266
|
title: "Theus",
|
|
205267
|
-
version: { VERSION: "0.2.
|
|
205267
|
+
version: { VERSION: "0.2.36", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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",
|
|
205268
205268
|
description: "Theus's agentic coding tool",
|
|
205269
205269
|
websiteUrl: PRODUCT_URL
|
|
205270
205270
|
}, {
|
|
@@ -205618,7 +205618,7 @@ var init_client5 = __esm(() => {
|
|
|
205618
205618
|
const client2 = new Client({
|
|
205619
205619
|
name: "theus-code",
|
|
205620
205620
|
title: "Theus",
|
|
205621
|
-
version: { VERSION: "0.2.
|
|
205621
|
+
version: { VERSION: "0.2.36", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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",
|
|
205622
205622
|
description: "Theus's agentic coding tool",
|
|
205623
205623
|
websiteUrl: PRODUCT_URL
|
|
205624
205624
|
}, {
|
|
@@ -216196,7 +216196,7 @@ async function initializeBetaTracing(resource) {
|
|
|
216196
216196
|
});
|
|
216197
216197
|
logs.setGlobalLoggerProvider(loggerProvider);
|
|
216198
216198
|
setLoggerProvider(loggerProvider);
|
|
216199
|
-
const eventLogger = logs.getLogger("com.theus.theus_code.events", { VERSION: "0.2.
|
|
216199
|
+
const eventLogger = logs.getLogger("com.theus.theus_code.events", { VERSION: "0.2.36", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION);
|
|
216200
216200
|
setEventLogger(eventLogger);
|
|
216201
216201
|
process.on("beforeExit", async () => {
|
|
216202
216202
|
await loggerProvider?.forceFlush();
|
|
@@ -216236,7 +216236,7 @@ async function initializeTelemetry() {
|
|
|
216236
216236
|
const platform4 = getPlatform();
|
|
216237
216237
|
const baseAttributes = {
|
|
216238
216238
|
[ATTR_SERVICE_NAME]: "theus-code",
|
|
216239
|
-
[ATTR_SERVICE_VERSION]: { VERSION: "0.2.
|
|
216239
|
+
[ATTR_SERVICE_VERSION]: { VERSION: "0.2.36", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
|
|
216240
216240
|
};
|
|
216241
216241
|
if (platform4 === "wsl") {
|
|
216242
216242
|
const wslVersion = getWslVersion();
|
|
@@ -216281,7 +216281,7 @@ async function initializeTelemetry() {
|
|
|
216281
216281
|
} catch {}
|
|
216282
216282
|
};
|
|
216283
216283
|
registerCleanup(shutdownTelemetry2);
|
|
216284
|
-
return meterProvider2.getMeter("com.theus.theus_code", { VERSION: "0.2.
|
|
216284
|
+
return meterProvider2.getMeter("com.theus.theus_code", { VERSION: "0.2.36", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION);
|
|
216285
216285
|
}
|
|
216286
216286
|
const meterProvider = new MeterProvider({
|
|
216287
216287
|
resource,
|
|
@@ -216301,7 +216301,7 @@ async function initializeTelemetry() {
|
|
|
216301
216301
|
});
|
|
216302
216302
|
logs.setGlobalLoggerProvider(loggerProvider);
|
|
216303
216303
|
setLoggerProvider(loggerProvider);
|
|
216304
|
-
const eventLogger = logs.getLogger("com.theus.theus_code.events", { VERSION: "0.2.
|
|
216304
|
+
const eventLogger = logs.getLogger("com.theus.theus_code.events", { VERSION: "0.2.36", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION);
|
|
216305
216305
|
setEventLogger(eventLogger);
|
|
216306
216306
|
logForDebugging("[3P telemetry] Event logger set successfully");
|
|
216307
216307
|
process.on("beforeExit", async () => {
|
|
@@ -216363,7 +216363,7 @@ Current timeout: ${timeoutMs}ms
|
|
|
216363
216363
|
}
|
|
216364
216364
|
};
|
|
216365
216365
|
registerCleanup(shutdownTelemetry);
|
|
216366
|
-
return meterProvider.getMeter("com.theus.theus_code", { VERSION: "0.2.
|
|
216366
|
+
return meterProvider.getMeter("com.theus.theus_code", { VERSION: "0.2.36", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION);
|
|
216367
216367
|
}
|
|
216368
216368
|
async function flushTelemetry() {
|
|
216369
216369
|
const meterProvider = getMeterProvider();
|
|
@@ -216903,7 +216903,7 @@ async function installOrUpdateTheusPackage(channel2, specificVersion) {
|
|
|
216903
216903
|
return "install_failed";
|
|
216904
216904
|
}
|
|
216905
216905
|
const versionSpec = specificVersion ? specificVersion : channel2 === "stable" ? "stable" : "latest";
|
|
216906
|
-
const result = await execFileNoThrowWithCwd("npm", ["install", `${{ VERSION: "0.2.
|
|
216906
|
+
const result = await execFileNoThrowWithCwd("npm", ["install", `${{ VERSION: "0.2.36", BUILD_TIME: "1970-01-01T00:00:00.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 });
|
|
216907
216907
|
if (result.code !== 0) {
|
|
216908
216908
|
const error40 = new Error(`Failed to install Theus CLI package: ${result.stderr}`);
|
|
216909
216909
|
logError2(error40);
|
|
@@ -217049,9 +217049,9 @@ async function assertMinVersion() {
|
|
|
217049
217049
|
if (false) {}
|
|
217050
217050
|
try {
|
|
217051
217051
|
const versionConfig = await getDynamicConfig_BLOCKS_ON_INIT("tengu_version_config", { minVersion: "0.0.0" });
|
|
217052
|
-
if (versionConfig.minVersion && lt({ VERSION: "0.2.
|
|
217052
|
+
if (versionConfig.minVersion && lt({ VERSION: "0.2.36", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
|
|
217053
217053
|
console.error(`
|
|
217054
|
-
It looks like your version of Theus (${{ VERSION: "0.2.
|
|
217054
|
+
It looks like your version of Theus (${{ VERSION: "0.2.36", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.
|
|
217055
217055
|
A newer version (${versionConfig.minVersion} or higher) is required to continue.
|
|
217056
217056
|
|
|
217057
217057
|
To update, please run:
|
|
@@ -217192,7 +217192,7 @@ async function getInstallationPrefix() {
|
|
|
217192
217192
|
return prefixResult.stdout.trim();
|
|
217193
217193
|
}
|
|
217194
217194
|
function getGlobalInstallPackageManager() {
|
|
217195
|
-
if ({ VERSION: "0.2.
|
|
217195
|
+
if ({ VERSION: "0.2.36", BUILD_TIME: "1970-01-01T00:00:00.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") {
|
|
217196
217196
|
return "npm";
|
|
217197
217197
|
}
|
|
217198
217198
|
return env3.isRunningWithBun() ? "bun" : "npm";
|
|
@@ -217217,7 +217217,7 @@ async function checkGlobalInstallPermissions() {
|
|
|
217217
217217
|
}
|
|
217218
217218
|
async function getLatestVersion(channel2) {
|
|
217219
217219
|
const npmTag = channel2 === "stable" ? "stable" : "latest";
|
|
217220
|
-
const result = await execFileNoThrowWithCwd("npm", ["view", `${{ VERSION: "0.2.
|
|
217220
|
+
const result = await execFileNoThrowWithCwd("npm", ["view", `${{ VERSION: "0.2.36", BUILD_TIME: "1970-01-01T00:00:00.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() });
|
|
217221
217221
|
if (result.code !== 0) {
|
|
217222
217222
|
logForDebugging(`npm view failed with code ${result.code}`);
|
|
217223
217223
|
if (result.stderr) {
|
|
@@ -217233,7 +217233,7 @@ async function getLatestVersion(channel2) {
|
|
|
217233
217233
|
return result.stdout.trim();
|
|
217234
217234
|
}
|
|
217235
217235
|
async function getNpmDistTags() {
|
|
217236
|
-
const result = await execFileNoThrowWithCwd("npm", ["view", { VERSION: "0.2.
|
|
217236
|
+
const result = await execFileNoThrowWithCwd("npm", ["view", { VERSION: "0.2.36", BUILD_TIME: "1970-01-01T00:00:00.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() });
|
|
217237
217237
|
if (result.code !== 0) {
|
|
217238
217238
|
logForDebugging(`npm view dist-tags failed with code ${result.code}`);
|
|
217239
217239
|
return { latest: null, stable: null };
|
|
@@ -217273,7 +217273,7 @@ async function installGlobalPackage(specificVersion) {
|
|
|
217273
217273
|
logError2(new AutoUpdaterError("Another process is currently installing an update"));
|
|
217274
217274
|
logEvent("tengu_auto_updater_lock_contention", {
|
|
217275
217275
|
pid: process.pid,
|
|
217276
|
-
currentVersion: { VERSION: "0.2.
|
|
217276
|
+
currentVersion: { VERSION: "0.2.36", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
|
|
217277
217277
|
});
|
|
217278
217278
|
return "in_progress";
|
|
217279
217279
|
}
|
|
@@ -217282,7 +217282,7 @@ async function installGlobalPackage(specificVersion) {
|
|
|
217282
217282
|
if (!env3.isRunningWithBun() && env3.isNpmFromWindowsPath()) {
|
|
217283
217283
|
logError2(new Error("Windows NPM detected in WSL environment"));
|
|
217284
217284
|
logEvent("tengu_auto_updater_windows_npm_in_wsl", {
|
|
217285
|
-
currentVersion: { VERSION: "0.2.
|
|
217285
|
+
currentVersion: { VERSION: "0.2.36", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
|
|
217286
217286
|
});
|
|
217287
217287
|
console.error(`
|
|
217288
217288
|
Error: Windows NPM detected in WSL
|
|
@@ -217301,7 +217301,7 @@ To fix this issue:
|
|
|
217301
217301
|
if (!hasPermissions) {
|
|
217302
217302
|
return "no_permissions";
|
|
217303
217303
|
}
|
|
217304
|
-
const packageSpec = specificVersion ? `${{ VERSION: "0.2.
|
|
217304
|
+
const packageSpec = specificVersion ? `${{ VERSION: "0.2.36", BUILD_TIME: "1970-01-01T00:00:00.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.36", BUILD_TIME: "1970-01-01T00:00:00.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;
|
|
217305
217305
|
const packageManager = getGlobalInstallPackageManager();
|
|
217306
217306
|
const installResult = await execFileNoThrowWithCwd(packageManager, ["install", "-g", packageSpec], { cwd: homedir18() });
|
|
217307
217307
|
if (installResult.code !== 0) {
|
|
@@ -217629,8 +217629,8 @@ async function detectMultipleInstallations() {
|
|
|
217629
217629
|
installations.push({ type: "npm-local", path: localPath });
|
|
217630
217630
|
}
|
|
217631
217631
|
const packagesToCheck = ["@theus-ai/theus-code"];
|
|
217632
|
-
if ({ VERSION: "0.2.
|
|
217633
|
-
packagesToCheck.push({ VERSION: "0.2.
|
|
217632
|
+
if ({ VERSION: "0.2.36", BUILD_TIME: "1970-01-01T00:00:00.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.36", BUILD_TIME: "1970-01-01T00:00:00.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") {
|
|
217633
|
+
packagesToCheck.push({ VERSION: "0.2.36", BUILD_TIME: "1970-01-01T00:00:00.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);
|
|
217634
217634
|
}
|
|
217635
217635
|
const npmResult = await execFileNoThrow("npm", [
|
|
217636
217636
|
"-g",
|
|
@@ -217813,7 +217813,7 @@ function detectLinuxGlobPatternWarnings() {
|
|
|
217813
217813
|
}
|
|
217814
217814
|
async function getDoctorDiagnostic() {
|
|
217815
217815
|
const installationType = await getCurrentInstallationType();
|
|
217816
|
-
const version2 = { VERSION: "0.2.
|
|
217816
|
+
const version2 = { VERSION: "0.2.36", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.36", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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";
|
|
217817
217817
|
const installationPath = await getInstallationPath();
|
|
217818
217818
|
const invokedBinary = getInvokedBinary();
|
|
217819
217819
|
const multipleInstallations = await detectMultipleInstallations();
|
|
@@ -217825,8 +217825,8 @@ async function getDoctorDiagnostic() {
|
|
|
217825
217825
|
for (const install of npmInstalls) {
|
|
217826
217826
|
if (install.type === "npm-global") {
|
|
217827
217827
|
let uninstallCmd = "npm -g uninstall @theus-ai/theus-code";
|
|
217828
|
-
if ({ VERSION: "0.2.
|
|
217829
|
-
uninstallCmd += ` && npm -g uninstall ${{ VERSION: "0.2.
|
|
217828
|
+
if ({ VERSION: "0.2.36", BUILD_TIME: "1970-01-01T00:00:00.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.36", BUILD_TIME: "1970-01-01T00:00:00.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") {
|
|
217829
|
+
uninstallCmd += ` && npm -g uninstall ${{ VERSION: "0.2.36", BUILD_TIME: "1970-01-01T00:00:00.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}`;
|
|
217830
217830
|
}
|
|
217831
217831
|
warnings.push({
|
|
217832
217832
|
issue: `Leftover npm global installation at ${install.path}`,
|
|
@@ -217938,7 +217938,7 @@ async function getLatestVersionFromArtifactory(tag2 = "latest") {
|
|
|
217938
217938
|
const startTime2 = Date.now();
|
|
217939
217939
|
const { stdout, code, stderr } = await execFileNoThrowWithCwd("npm", [
|
|
217940
217940
|
"view",
|
|
217941
|
-
`${{ VERSION: "0.2.
|
|
217941
|
+
`${{ VERSION: "0.2.36", BUILD_TIME: "1970-01-01T00:00:00.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}`,
|
|
217942
217942
|
"version",
|
|
217943
217943
|
"--prefer-online",
|
|
217944
217944
|
"--registry",
|
|
@@ -217962,7 +217962,7 @@ async function getLatestVersionFromArtifactory(tag2 = "latest") {
|
|
|
217962
217962
|
latency_ms: latencyMs,
|
|
217963
217963
|
source_npm: true
|
|
217964
217964
|
});
|
|
217965
|
-
logForDebugging(`npm view ${{ VERSION: "0.2.
|
|
217965
|
+
logForDebugging(`npm view ${{ VERSION: "0.2.36", BUILD_TIME: "1970-01-01T00:00:00.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}`);
|
|
217966
217966
|
const latestVersion = stdout.trim();
|
|
217967
217967
|
return latestVersion;
|
|
217968
217968
|
}
|
|
@@ -218018,7 +218018,7 @@ async function downloadVersionFromArtifactory(version2, stagingPath) {
|
|
|
218018
218018
|
const fs3 = getFsImplementation();
|
|
218019
218019
|
await fs3.rm(stagingPath, { recursive: true, force: true });
|
|
218020
218020
|
const platform4 = getPlatform2();
|
|
218021
|
-
const platformPackageName = `${{ VERSION: "0.2.
|
|
218021
|
+
const platformPackageName = `${{ VERSION: "0.2.36", BUILD_TIME: "1970-01-01T00:00:00.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}`;
|
|
218022
218022
|
logForDebugging(`Fetching integrity hash for ${platformPackageName}@${version2}`);
|
|
218023
218023
|
const {
|
|
218024
218024
|
stdout: integrityOutput,
|
|
@@ -218047,7 +218047,7 @@ async function downloadVersionFromArtifactory(version2, stagingPath) {
|
|
|
218047
218047
|
name: "theus-native-installer",
|
|
218048
218048
|
version: "0.0.1",
|
|
218049
218049
|
dependencies: {
|
|
218050
|
-
[{ VERSION: "0.2.
|
|
218050
|
+
[{ VERSION: "0.2.36", BUILD_TIME: "1970-01-01T00:00:00.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
|
|
218051
218051
|
}
|
|
218052
218052
|
};
|
|
218053
218053
|
const packageLock = {
|
|
@@ -218060,10 +218060,10 @@ async function downloadVersionFromArtifactory(version2, stagingPath) {
|
|
|
218060
218060
|
name: "theus-native-installer",
|
|
218061
218061
|
version: "0.0.1",
|
|
218062
218062
|
dependencies: {
|
|
218063
|
-
[{ VERSION: "0.2.
|
|
218063
|
+
[{ VERSION: "0.2.36", BUILD_TIME: "1970-01-01T00:00:00.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
|
|
218064
218064
|
}
|
|
218065
218065
|
},
|
|
218066
|
-
[`node_modules/${{ VERSION: "0.2.
|
|
218066
|
+
[`node_modules/${{ VERSION: "0.2.36", BUILD_TIME: "1970-01-01T00:00:00.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}`]: {
|
|
218067
218067
|
version: version2,
|
|
218068
218068
|
optionalDependencies: {
|
|
218069
218069
|
[platformPackageName]: version2
|
|
@@ -218085,7 +218085,7 @@ async function downloadVersionFromArtifactory(version2, stagingPath) {
|
|
|
218085
218085
|
if (result.code !== 0) {
|
|
218086
218086
|
throw new Error(`npm ci failed with code ${result.code}: ${result.stderr}`);
|
|
218087
218087
|
}
|
|
218088
|
-
logForDebugging(`Successfully downloaded and verified ${{ VERSION: "0.2.
|
|
218088
|
+
logForDebugging(`Successfully downloaded and verified ${{ VERSION: "0.2.36", BUILD_TIME: "1970-01-01T00:00:00.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}`);
|
|
218089
218089
|
}
|
|
218090
218090
|
function getStallTimeoutMs() {
|
|
218091
218091
|
return Number(process.env.THEUS_CODE_STALL_TIMEOUT_MS_FOR_TESTING) || DEFAULT_STALL_TIMEOUT_MS;
|
|
@@ -218748,8 +218748,8 @@ async function updateLatest(channelOrVersion, forceReinstall = false) {
|
|
|
218748
218748
|
const maxVersion = await getMaxVersion();
|
|
218749
218749
|
if (maxVersion && gt(version2, maxVersion)) {
|
|
218750
218750
|
logForDebugging(`Native installer: maxVersion ${maxVersion} is set, capping update from ${version2} to ${maxVersion}`);
|
|
218751
|
-
if (gte({ VERSION: "0.2.
|
|
218752
|
-
logForDebugging(`Native installer: current version ${{ VERSION: "0.2.
|
|
218751
|
+
if (gte({ VERSION: "0.2.36", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
|
|
218752
|
+
logForDebugging(`Native installer: current version ${{ VERSION: "0.2.36", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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`);
|
|
218753
218753
|
logEvent("tengu_native_update_skipped_max_version", {
|
|
218754
218754
|
latency_ms: Date.now() - startTime2,
|
|
218755
218755
|
max_version: maxVersion,
|
|
@@ -218760,7 +218760,7 @@ async function updateLatest(channelOrVersion, forceReinstall = false) {
|
|
|
218760
218760
|
version2 = maxVersion;
|
|
218761
218761
|
}
|
|
218762
218762
|
}
|
|
218763
|
-
if (!forceReinstall && version2 === { VERSION: "0.2.
|
|
218763
|
+
if (!forceReinstall && version2 === { VERSION: "0.2.36", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
|
|
218764
218764
|
logForDebugging(`Found ${version2} at ${executablePath}, skipping install`);
|
|
218765
218765
|
logEvent("tengu_native_update_complete", {
|
|
218766
218766
|
latency_ms: Date.now() - startTime2,
|
|
@@ -219510,8 +219510,8 @@ async function cleanupNpmInstallations() {
|
|
|
219510
219510
|
} else if (codePackageResult.error) {
|
|
219511
219511
|
errors4.push(codePackageResult.error);
|
|
219512
219512
|
}
|
|
219513
|
-
if ({ VERSION: "0.2.
|
|
219514
|
-
const macroPackageResult = await attemptNpmUninstall({ VERSION: "0.2.
|
|
219513
|
+
if ({ VERSION: "0.2.36", BUILD_TIME: "1970-01-01T00:00:00.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.36", BUILD_TIME: "1970-01-01T00:00:00.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") {
|
|
219514
|
+
const macroPackageResult = await attemptNpmUninstall({ VERSION: "0.2.36", BUILD_TIME: "1970-01-01T00:00:00.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);
|
|
219515
219515
|
if (macroPackageResult.success) {
|
|
219516
219516
|
removed++;
|
|
219517
219517
|
if (macroPackageResult.warning) {
|
|
@@ -228524,7 +228524,6 @@ function TheusMissionConsole({
|
|
|
228524
228524
|
children: [
|
|
228525
228525
|
/* @__PURE__ */ jsx_runtime71.jsx(ThemedText, {
|
|
228526
228526
|
bold: true,
|
|
228527
|
-
color: theme.text,
|
|
228528
228527
|
children: "FASES"
|
|
228529
228528
|
}),
|
|
228530
228529
|
model.phases.map((phase) => {
|
|
@@ -228545,7 +228544,6 @@ function TheusMissionConsole({
|
|
|
228545
228544
|
children: [
|
|
228546
228545
|
/* @__PURE__ */ jsx_runtime71.jsx(ThemedText, {
|
|
228547
228546
|
bold: true,
|
|
228548
|
-
color: theme.text,
|
|
228549
228547
|
children: "PLAN ACTIVO"
|
|
228550
228548
|
}),
|
|
228551
228549
|
visibleTasks.length > 0 ? visibleTasks.map((task) => {
|
|
@@ -228566,7 +228564,6 @@ function TheusMissionConsole({
|
|
|
228566
228564
|
children: `\u25CF ${title}`
|
|
228567
228565
|
}),
|
|
228568
228566
|
/* @__PURE__ */ jsx_runtime71.jsx(ThemedText, {
|
|
228569
|
-
dimColor: true,
|
|
228570
228567
|
children: "Plan expl\xEDcito a\xFAn no declarado; seguimiento por fase."
|
|
228571
228568
|
})
|
|
228572
228569
|
]
|
|
@@ -228593,14 +228590,12 @@ function TheusMissionConsole({
|
|
|
228593
228590
|
children: [
|
|
228594
228591
|
/* @__PURE__ */ jsx_runtime71.jsx(ThemedText, {
|
|
228595
228592
|
bold: true,
|
|
228596
|
-
color: theme.text,
|
|
228597
228593
|
children: "HERRAMIENTAS"
|
|
228598
228594
|
}),
|
|
228599
228595
|
visibleTools.length > 0 ? visibleTools.map((tool, index) => /* @__PURE__ */ jsx_runtime71.jsx(ThemedText, {
|
|
228600
228596
|
color: index === 0 ? theme.warning : theme.suggestion,
|
|
228601
228597
|
children: `${index === visibleTools.length - 1 ? "\u2514\u2500" : "\u251C\u2500"} ${compactMissionText(tool, 34)}`
|
|
228602
228598
|
}, `${index}:${tool}`)) : /* @__PURE__ */ jsx_runtime71.jsx(ThemedText, {
|
|
228603
|
-
dimColor: true,
|
|
228604
228599
|
children: "\u2514\u2500 sin herramientas activas"
|
|
228605
228600
|
})
|
|
228606
228601
|
]
|
|
@@ -228613,12 +228608,10 @@ function TheusMissionConsole({
|
|
|
228613
228608
|
children: [
|
|
228614
228609
|
/* @__PURE__ */ jsx_runtime71.jsxs(ThemedText, {
|
|
228615
228610
|
bold: true,
|
|
228616
|
-
color: theme.text,
|
|
228617
228611
|
wrap: "truncate-end",
|
|
228618
228612
|
children: [
|
|
228619
228613
|
"EVENTOS".padEnd(eventRowWidth - 18),
|
|
228620
228614
|
/* @__PURE__ */ jsx_runtime71.jsx(ThemedText, {
|
|
228621
|
-
dimColor: true,
|
|
228622
228615
|
children: `${tokenCount.toLocaleString("es-PE")} tokens`.padStart(18)
|
|
228623
228616
|
})
|
|
228624
228617
|
]
|
|
@@ -230015,6 +230008,16 @@ var init_branding = __esm(() => {
|
|
|
230015
230008
|
var NOVEDADES;
|
|
230016
230009
|
var init_data = __esm(() => {
|
|
230017
230010
|
NOVEDADES = [
|
|
230011
|
+
{
|
|
230012
|
+
version: "v0.2.35",
|
|
230013
|
+
fecha: "2026-07-14",
|
|
230014
|
+
titulo: "THEUS visible: contraste claro y entrada con impacto",
|
|
230015
|
+
puntos: [
|
|
230016
|
+
"Contraste reforzado sobre fondos claros: cabecera, estados, placeholder, atajos, novedades y auspiciadores usan una tinta neutral legible incluso si el tema configurado no coincide con el fondo real.",
|
|
230017
|
+
"\xABIniciar misi\xF3n\xBB estrena una transici\xF3n breve con THEUS grande en ASCII y confirmaci\xF3n de misi\xF3n antes de entregar el chat.",
|
|
230018
|
+
"La animaci\xF3n se adapta a terminales angostas, puede saltarse con cualquier tecla y respeta reduced motion, NO_COLOR y el modo ASCII."
|
|
230019
|
+
]
|
|
230020
|
+
},
|
|
230018
230021
|
{
|
|
230019
230022
|
version: "v0.2.34",
|
|
230020
230023
|
fecha: "2026-07-14",
|
|
@@ -230425,7 +230428,6 @@ function TheusEditorialRail({ compact = false, showHint = false }) {
|
|
|
230425
230428
|
children: " \u2502 "
|
|
230426
230429
|
}),
|
|
230427
230430
|
/* @__PURE__ */ jsx_runtime74.jsxs(ThemedText, {
|
|
230428
|
-
color: theme.text,
|
|
230429
230431
|
wrap: "wrap",
|
|
230430
230432
|
children: [
|
|
230431
230433
|
/* @__PURE__ */ jsx_runtime74.jsx(ThemedText, {
|
|
@@ -230452,7 +230454,6 @@ function TheusEditorialRail({ compact = false, showHint = false }) {
|
|
|
230452
230454
|
})
|
|
230453
230455
|
}),
|
|
230454
230456
|
sponsorLines.map((line, index) => /* @__PURE__ */ jsx_runtime74.jsx(ThemedText, {
|
|
230455
|
-
color: theme.text,
|
|
230456
230457
|
wrap: "wrap",
|
|
230457
230458
|
children: line.startsWith("AUSPICIADORES \xB7 ") ? /* @__PURE__ */ jsx_runtime74.jsxs(jsx_runtime74.Fragment, {
|
|
230458
230459
|
children: [
|
|
@@ -230537,10 +230538,10 @@ function Signal({
|
|
|
230537
230538
|
flexShrink: 0,
|
|
230538
230539
|
children: [
|
|
230539
230540
|
/* @__PURE__ */ jsx_runtime75.jsx(Text, {
|
|
230540
|
-
dim: true,
|
|
230541
230541
|
children: `${label} `
|
|
230542
230542
|
}),
|
|
230543
230543
|
/* @__PURE__ */ jsx_runtime75.jsx(ThemedText, {
|
|
230544
|
+
bold: true,
|
|
230544
230545
|
color: signalColor(state, theme),
|
|
230545
230546
|
children: signalLabel(state)
|
|
230546
230547
|
})
|
|
@@ -230576,25 +230577,23 @@ function TheusMissionBar({
|
|
|
230576
230577
|
children: THEUS_MISSION_LABEL
|
|
230577
230578
|
}),
|
|
230578
230579
|
version2 ? /* @__PURE__ */ jsx_runtime75.jsx(Text, {
|
|
230579
|
-
dim: true,
|
|
230580
230580
|
children: ` v${version2}`
|
|
230581
230581
|
}) : null,
|
|
230582
230582
|
/* @__PURE__ */ jsx_runtime75.jsx(Text, {
|
|
230583
|
-
dim: true,
|
|
230584
230583
|
children: " \u2502 proyecto "
|
|
230585
230584
|
}),
|
|
230586
230585
|
/* @__PURE__ */ jsx_runtime75.jsx(ThemedText, {
|
|
230586
|
+
bold: true,
|
|
230587
230587
|
children: projectText
|
|
230588
230588
|
}),
|
|
230589
230589
|
/* @__PURE__ */ jsx_runtime75.jsx(Text, {
|
|
230590
|
-
dim: true,
|
|
230591
230590
|
children: " \u2502 modelo "
|
|
230592
230591
|
}),
|
|
230593
230592
|
/* @__PURE__ */ jsx_runtime75.jsx(ThemedText, {
|
|
230593
|
+
bold: true,
|
|
230594
230594
|
children: modelText
|
|
230595
230595
|
}),
|
|
230596
230596
|
/* @__PURE__ */ jsx_runtime75.jsx(Text, {
|
|
230597
|
-
dim: true,
|
|
230598
230597
|
children: " \u2502 "
|
|
230599
230598
|
}),
|
|
230600
230599
|
/* @__PURE__ */ jsx_runtime75.jsx(Signal, {
|
|
@@ -230603,7 +230602,6 @@ function TheusMissionBar({
|
|
|
230603
230602
|
theme
|
|
230604
230603
|
}),
|
|
230605
230604
|
/* @__PURE__ */ jsx_runtime75.jsx(Text, {
|
|
230606
|
-
dim: true,
|
|
230607
230605
|
children: " \u2502 "
|
|
230608
230606
|
}),
|
|
230609
230607
|
/* @__PURE__ */ jsx_runtime75.jsx(Signal, {
|
|
@@ -230612,10 +230610,10 @@ function TheusMissionBar({
|
|
|
230612
230610
|
theme
|
|
230613
230611
|
}),
|
|
230614
230612
|
/* @__PURE__ */ jsx_runtime75.jsx(Text, {
|
|
230615
|
-
dim: true,
|
|
230616
230613
|
children: " \u2502 rama "
|
|
230617
230614
|
}),
|
|
230618
230615
|
/* @__PURE__ */ jsx_runtime75.jsx(ThemedText, {
|
|
230616
|
+
bold: true,
|
|
230619
230617
|
children: branchText
|
|
230620
230618
|
})
|
|
230621
230619
|
]
|
|
@@ -230639,23 +230637,22 @@ function TheusMissionBar({
|
|
|
230639
230637
|
children: THEUS_MISSION_LABEL
|
|
230640
230638
|
}),
|
|
230641
230639
|
version2 ? /* @__PURE__ */ jsx_runtime75.jsx(Text, {
|
|
230642
|
-
dim: true,
|
|
230643
230640
|
children: ` v${version2}`
|
|
230644
230641
|
}) : null,
|
|
230645
230642
|
density === "wide" ? /* @__PURE__ */ jsx_runtime75.jsxs(jsx_runtime75.Fragment, {
|
|
230646
230643
|
children: [
|
|
230647
230644
|
/* @__PURE__ */ jsx_runtime75.jsx(Text, {
|
|
230648
|
-
dim: true,
|
|
230649
230645
|
children: " \u2502 proyecto "
|
|
230650
230646
|
}),
|
|
230651
230647
|
/* @__PURE__ */ jsx_runtime75.jsx(ThemedText, {
|
|
230648
|
+
bold: true,
|
|
230652
230649
|
children: projectText
|
|
230653
230650
|
}),
|
|
230654
230651
|
/* @__PURE__ */ jsx_runtime75.jsx(Text, {
|
|
230655
|
-
dim: true,
|
|
230656
230652
|
children: " \u2502 modelo "
|
|
230657
230653
|
}),
|
|
230658
230654
|
/* @__PURE__ */ jsx_runtime75.jsx(ThemedText, {
|
|
230655
|
+
bold: true,
|
|
230659
230656
|
children: modelText
|
|
230660
230657
|
})
|
|
230661
230658
|
]
|
|
@@ -230666,17 +230663,17 @@ function TheusMissionBar({
|
|
|
230666
230663
|
flexWrap: "wrap",
|
|
230667
230664
|
children: [
|
|
230668
230665
|
/* @__PURE__ */ jsx_runtime75.jsx(Text, {
|
|
230669
|
-
dim: true,
|
|
230670
230666
|
children: "proyecto "
|
|
230671
230667
|
}),
|
|
230672
230668
|
/* @__PURE__ */ jsx_runtime75.jsx(ThemedText, {
|
|
230669
|
+
bold: true,
|
|
230673
230670
|
children: projectText
|
|
230674
230671
|
}),
|
|
230675
230672
|
/* @__PURE__ */ jsx_runtime75.jsx(Text, {
|
|
230676
|
-
dim: true,
|
|
230677
230673
|
children: " \xB7 modelo "
|
|
230678
230674
|
}),
|
|
230679
230675
|
/* @__PURE__ */ jsx_runtime75.jsx(ThemedText, {
|
|
230676
|
+
bold: true,
|
|
230680
230677
|
children: modelText
|
|
230681
230678
|
})
|
|
230682
230679
|
]
|
|
@@ -230690,7 +230687,6 @@ function TheusMissionBar({
|
|
|
230690
230687
|
theme
|
|
230691
230688
|
}),
|
|
230692
230689
|
/* @__PURE__ */ jsx_runtime75.jsx(Text, {
|
|
230693
|
-
dim: true,
|
|
230694
230690
|
children: " \xB7 "
|
|
230695
230691
|
}),
|
|
230696
230692
|
/* @__PURE__ */ jsx_runtime75.jsx(Signal, {
|
|
@@ -230701,10 +230697,10 @@ function TheusMissionBar({
|
|
|
230701
230697
|
density === "tiny" ? null : /* @__PURE__ */ jsx_runtime75.jsxs(jsx_runtime75.Fragment, {
|
|
230702
230698
|
children: [
|
|
230703
230699
|
/* @__PURE__ */ jsx_runtime75.jsx(Text, {
|
|
230704
|
-
dim: true,
|
|
230705
230700
|
children: " \xB7 rama "
|
|
230706
230701
|
}),
|
|
230707
230702
|
/* @__PURE__ */ jsx_runtime75.jsx(ThemedText, {
|
|
230703
|
+
bold: true,
|
|
230708
230704
|
children: branchText
|
|
230709
230705
|
})
|
|
230710
230706
|
]
|
|
@@ -230806,7 +230802,7 @@ function padToUniformWidth(lines) {
|
|
|
230806
230802
|
const width = Math.max(...lines.map((line) => line.length));
|
|
230807
230803
|
return lines.map((line) => line.padEnd(width, " "));
|
|
230808
230804
|
}
|
|
230809
|
-
var THEUS_LOGO_LINES_28, THEUS_LOGO_LINES_40, THEUS_LOGO_LINES_64, PROMETHEUS_RAW, THEUS_PROMETHEUS_LINES, THEUS_PROMETHEUS_WIDTH, THEUS_WORDMARK_LINES, THEUS_WORDMARK_WIDTH, THEUS_ASCII, THEUS_TORCH_ASCII, THEUS_COMPACT_MARK;
|
|
230805
|
+
var THEUS_LOGO_LINES_28, THEUS_LOGO_LINES_40, THEUS_LOGO_LINES_64, PROMETHEUS_RAW, THEUS_PROMETHEUS_LINES, THEUS_PROMETHEUS_WIDTH, THEUS_WORDMARK_LINES, THEUS_WORDMARK_WIDTH, THEUS_JUMBO_WORDMARK_LINES, THEUS_JUMBO_WORDMARK_WIDTH, THEUS_ASCII, THEUS_TORCH_ASCII, THEUS_COMPACT_MARK;
|
|
230810
230806
|
var init_asciiLogo = __esm(() => {
|
|
230811
230807
|
init_logoArt();
|
|
230812
230808
|
THEUS_LOGO_LINES_28 = padToUniformWidth(THEUS_LOGO_28);
|
|
@@ -230844,6 +230840,16 @@ var init_asciiLogo = __esm(() => {
|
|
|
230844
230840
|
" |_| |_| |_|_____|\\___/|____/"
|
|
230845
230841
|
]);
|
|
230846
230842
|
THEUS_WORDMARK_WIDTH = THEUS_WORDMARK_LINES[0]?.length ?? 0;
|
|
230843
|
+
THEUS_JUMBO_WORDMARK_LINES = padToUniformWidth([
|
|
230844
|
+
"TTTTTTTTT HH HH EEEEEEEEE UU UU SSSSSSS",
|
|
230845
|
+
" TT HH HH EE UU UU SS",
|
|
230846
|
+
" TT HH HH EE UU UU SS",
|
|
230847
|
+
" TT HHHHHHHHH EEEEEE UU UU SSSSSS",
|
|
230848
|
+
" TT HH HH EE UU UU SS",
|
|
230849
|
+
" TT HH HH EE UU UU SS",
|
|
230850
|
+
" TT HH HH EEEEEEEEE UUUUUUU SSSSSSS"
|
|
230851
|
+
]);
|
|
230852
|
+
THEUS_JUMBO_WORDMARK_WIDTH = THEUS_JUMBO_WORDMARK_LINES[0]?.length ?? 0;
|
|
230847
230853
|
THEUS_ASCII = THEUS_WORDMARK_LINES.join(`
|
|
230848
230854
|
`);
|
|
230849
230855
|
THEUS_TORCH_ASCII = padToUniformWidth([
|
|
@@ -230888,7 +230894,7 @@ function forgeRoleColor(role, theme) {
|
|
|
230888
230894
|
return theme.inactive;
|
|
230889
230895
|
case "text":
|
|
230890
230896
|
default:
|
|
230891
|
-
return
|
|
230897
|
+
return;
|
|
230892
230898
|
}
|
|
230893
230899
|
}
|
|
230894
230900
|
function lineLength(line) {
|
|
@@ -231102,7 +231108,6 @@ function TheusLoginHero({ compact = false, showFrame = false }) {
|
|
|
231102
231108
|
children: "Conecta tu cuenta Theus"
|
|
231103
231109
|
}),
|
|
231104
231110
|
/* @__PURE__ */ jsx_runtime77.jsx(Text, {
|
|
231105
|
-
dim: true,
|
|
231106
231111
|
wrap: "wrap",
|
|
231107
231112
|
children: "Accede a tu inteligencia segura."
|
|
231108
231113
|
}),
|
|
@@ -231131,7 +231136,6 @@ function TheusLoginHero({ compact = false, showFrame = false }) {
|
|
|
231131
231136
|
children: "THEUS"
|
|
231132
231137
|
}),
|
|
231133
231138
|
/* @__PURE__ */ jsx_runtime77.jsx(Text, {
|
|
231134
|
-
dim: true,
|
|
231135
231139
|
children: " \xB7 HECHO EN PER\xDA \xB7 "
|
|
231136
231140
|
}),
|
|
231137
231141
|
/* @__PURE__ */ jsx_runtime77.jsx(ThemedText, {
|
|
@@ -231141,7 +231145,6 @@ function TheusLoginHero({ compact = false, showFrame = false }) {
|
|
|
231141
231145
|
]
|
|
231142
231146
|
}),
|
|
231143
231147
|
/* @__PURE__ */ jsx_runtime77.jsx(Text, {
|
|
231144
|
-
dim: true,
|
|
231145
231148
|
wrap: "wrap",
|
|
231146
231149
|
children: TAGLINE
|
|
231147
231150
|
})
|
|
@@ -304777,9 +304780,9 @@ function getTheusEnvMetadata() {
|
|
|
304777
304780
|
};
|
|
304778
304781
|
}
|
|
304779
304782
|
function getBuildAgeMinutes() {
|
|
304780
|
-
if (!{ VERSION: "0.2.
|
|
304783
|
+
if (!{ VERSION: "0.2.36", BUILD_TIME: "1970-01-01T00:00:00.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)
|
|
304781
304784
|
return;
|
|
304782
|
-
const buildTime = new Date({ VERSION: "0.2.
|
|
304785
|
+
const buildTime = new Date({ VERSION: "0.2.36", BUILD_TIME: "1970-01-01T00:00:00.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();
|
|
304783
304786
|
if (isNaN(buildTime))
|
|
304784
304787
|
return;
|
|
304785
304788
|
return Math.floor((Date.now() - buildTime) / 60000);
|
|
@@ -321233,7 +321236,7 @@ function getAssistantMessageFromError(error40, model, options2) {
|
|
|
321233
321236
|
if (process.env.USER_TYPE === "ant") {
|
|
321234
321237
|
const baseMessage = `API Error: 400 ${error40.message}
|
|
321235
321238
|
|
|
321236
|
-
Run /share and post the JSON file to ${{ VERSION: "0.2.
|
|
321239
|
+
Run /share and post the JSON file to ${{ VERSION: "0.2.36", BUILD_TIME: "1970-01-01T00:00:00.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}.`;
|
|
321237
321240
|
const rewindInstruction = getIsNonInteractiveSession() ? "" : " Then, use /rewind to recover the conversation.";
|
|
321238
321241
|
return createAssistantAPIErrorMessage({
|
|
321239
321242
|
content: baseMessage + rewindInstruction,
|
|
@@ -321269,7 +321272,7 @@ Run /share and post the JSON file to ${{ VERSION: "0.2.34", BUILD_TIME: "1970-01
|
|
|
321269
321272
|
if (process.env.USER_TYPE === "ant" && !process.env.THEUS_MODEL && error40 instanceof Error && error40.message.toLowerCase().includes("invalid model name")) {
|
|
321270
321273
|
const orgId = getOauthAccountInfo()?.organizationUuid;
|
|
321271
321274
|
const baseMsg = `[THEUS-INTERNAL] Your org isn't gated into the \`${model}\` model. Either run \`theus\` with \`THEUS_MODEL=${getDefaultMainLoopModelSetting()}\``;
|
|
321272
|
-
const msg = orgId ? `${baseMsg} or share your orgId (${orgId}) in ${{ VERSION: "0.2.
|
|
321275
|
+
const msg = orgId ? `${baseMsg} or share your orgId (${orgId}) in ${{ VERSION: "0.2.36", BUILD_TIME: "1970-01-01T00:00:00.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.36", BUILD_TIME: "1970-01-01T00:00:00.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.`;
|
|
321273
321276
|
return createAssistantAPIErrorMessage({
|
|
321274
321277
|
content: msg,
|
|
321275
321278
|
error: "invalid_request"
|
|
@@ -326419,9 +326422,9 @@ function renderPlaceholder({
|
|
|
326419
326422
|
if (hidePlaceholderText) {
|
|
326420
326423
|
renderedPlaceholder = showCursor && focus && terminalFocus ? invert(" ") : "";
|
|
326421
326424
|
} else {
|
|
326422
|
-
renderedPlaceholder =
|
|
326425
|
+
renderedPlaceholder = placeholder;
|
|
326423
326426
|
if (showCursor && focus && terminalFocus) {
|
|
326424
|
-
renderedPlaceholder = placeholder.length > 0 ? invert(placeholder[0]) +
|
|
326427
|
+
renderedPlaceholder = placeholder.length > 0 ? invert(placeholder[0]) + placeholder.slice(1) : invert(" ");
|
|
326425
326428
|
}
|
|
326426
326429
|
}
|
|
326427
326430
|
}
|
|
@@ -331373,7 +331376,7 @@ function buildPrimarySection() {
|
|
|
331373
331376
|
});
|
|
331374
331377
|
return [{
|
|
331375
331378
|
label: "Version",
|
|
331376
|
-
value: { VERSION: "0.2.
|
|
331379
|
+
value: { VERSION: "0.2.36", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
|
|
331377
331380
|
}, {
|
|
331378
331381
|
label: "Session name",
|
|
331379
331382
|
value: nameValue
|
|
@@ -335189,7 +335192,7 @@ function Config({
|
|
|
335189
335192
|
}
|
|
335190
335193
|
})
|
|
335191
335194
|
}) : showSubmenu === "ChannelDowngrade" ? /* @__PURE__ */ jsx_runtime189.jsx(ChannelDowngradeDialog, {
|
|
335192
|
-
currentVersion: { VERSION: "0.2.
|
|
335195
|
+
currentVersion: { VERSION: "0.2.36", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
|
|
335193
335196
|
onChoice: (choice) => {
|
|
335194
335197
|
setShowSubmenu(null);
|
|
335195
335198
|
setTabsHidden(false);
|
|
@@ -335201,7 +335204,7 @@ function Config({
|
|
|
335201
335204
|
autoUpdatesChannel: "stable"
|
|
335202
335205
|
};
|
|
335203
335206
|
if (choice === "stay") {
|
|
335204
|
-
newSettings.minimumVersion = { VERSION: "0.2.
|
|
335207
|
+
newSettings.minimumVersion = { VERSION: "0.2.36", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION;
|
|
335205
335208
|
}
|
|
335206
335209
|
updateSettingsForSource("userSettings", newSettings);
|
|
335207
335210
|
setSettingsData((prev_27) => ({
|
|
@@ -343235,7 +343238,7 @@ function HelpV2(t0) {
|
|
|
343235
343238
|
let t6;
|
|
343236
343239
|
if ($2[31] !== tabs) {
|
|
343237
343240
|
t6 = /* @__PURE__ */ jsx_runtime216.jsx(Tabs, {
|
|
343238
|
-
title: `Theus v${{ VERSION: "0.2.
|
|
343241
|
+
title: `Theus v${{ VERSION: "0.2.36", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION}`,
|
|
343239
343242
|
color: "professionalBlue",
|
|
343240
343243
|
defaultTab: "general",
|
|
343241
343244
|
children: tabs
|
|
@@ -360411,7 +360414,6 @@ function TheusBanner({ minimal, version: version2 }) {
|
|
|
360411
360414
|
children: "THEUS CLI"
|
|
360412
360415
|
}),
|
|
360413
360416
|
/* @__PURE__ */ jsx_runtime245.jsx(Text, {
|
|
360414
|
-
dim: true,
|
|
360415
360417
|
children: ` \xB7 MISI\xD3N LOCAL${version2 ? ` \xB7 v${version2}` : ""}`
|
|
360416
360418
|
})
|
|
360417
360419
|
]
|
|
@@ -361310,7 +361312,7 @@ function Onboarding({
|
|
|
361310
361312
|
flexDirection: "column",
|
|
361311
361313
|
children: [
|
|
361312
361314
|
/* @__PURE__ */ jsx_runtime249.jsx(TheusBanner, {
|
|
361313
|
-
version: { VERSION: "0.2.
|
|
361315
|
+
version: { VERSION: "0.2.36", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
|
|
361314
361316
|
}),
|
|
361315
361317
|
/* @__PURE__ */ jsx_runtime249.jsxs(ThemedBox_default, {
|
|
361316
361318
|
flexDirection: "column",
|
|
@@ -361655,9 +361657,9 @@ function getAllReleaseNotes(changelogContent = getStoredChangelogFromMemory()) {
|
|
|
361655
361657
|
return [];
|
|
361656
361658
|
}
|
|
361657
361659
|
}
|
|
361658
|
-
async function checkForReleaseNotes(lastSeenVersion, currentVersion = { VERSION: "0.2.
|
|
361660
|
+
async function checkForReleaseNotes(lastSeenVersion, currentVersion = { VERSION: "0.2.36", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION) {
|
|
361659
361661
|
if (process.env.USER_TYPE === "ant") {
|
|
361660
|
-
const changelog = { VERSION: "0.2.
|
|
361662
|
+
const changelog = { VERSION: "0.2.36", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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;
|
|
361661
361663
|
if (changelog) {
|
|
361662
361664
|
const commits = changelog.trim().split(`
|
|
361663
361665
|
`).filter(Boolean);
|
|
@@ -365859,7 +365861,7 @@ var init_Messages = __esm(() => {
|
|
|
365859
365861
|
let t1;
|
|
365860
365862
|
if ($2[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
365861
365863
|
t1 = /* @__PURE__ */ jsx_runtime261.jsx(TheusSessionHeader, {
|
|
365862
|
-
version: { VERSION: "0.2.
|
|
365864
|
+
version: { VERSION: "0.2.36", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
|
|
365863
365865
|
});
|
|
365864
365866
|
$2[0] = t1;
|
|
365865
365867
|
} else {
|
|
@@ -394325,7 +394327,7 @@ async function captureMemoryDiagnostics(trigger, dumpNumber = 0) {
|
|
|
394325
394327
|
smapsRollup,
|
|
394326
394328
|
platform: process.platform,
|
|
394327
394329
|
nodeVersion: process.version,
|
|
394328
|
-
ccVersion: { VERSION: "0.2.
|
|
394330
|
+
ccVersion: { VERSION: "0.2.36", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
|
|
394329
394331
|
};
|
|
394330
394332
|
}
|
|
394331
394333
|
async function performHeapDump(trigger = "manual", dumpNumber = 0) {
|
|
@@ -394911,7 +394913,7 @@ var init_bridge_kick = __esm(() => {
|
|
|
394911
394913
|
var call57 = async () => {
|
|
394912
394914
|
return {
|
|
394913
394915
|
type: "text",
|
|
394914
|
-
value: { VERSION: "0.2.
|
|
394916
|
+
value: { VERSION: "0.2.36", BUILD_TIME: "1970-01-01T00:00:00.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.36", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.36", BUILD_TIME: "1970-01-01T00:00:00.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.36", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
|
|
394915
394917
|
};
|
|
394916
394918
|
}, version2, version_default;
|
|
394917
394919
|
var init_version = __esm(() => {
|
|
@@ -399353,13 +399355,13 @@ async function updateReleaseBundle() {
|
|
|
399353
399355
|
await gracefulShutdown(1);
|
|
399354
399356
|
return;
|
|
399355
399357
|
}
|
|
399356
|
-
if (gte({ VERSION: "0.2.
|
|
399357
|
-
writeToStdout(source_default.green(`Theus is up to date (${{ VERSION: "0.2.
|
|
399358
|
+
if (gte({ VERSION: "0.2.36", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
|
|
399359
|
+
writeToStdout(source_default.green(`Theus is up to date (${{ VERSION: "0.2.36", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION})`) + `
|
|
399358
399360
|
`);
|
|
399359
399361
|
await gracefulShutdown(0);
|
|
399360
399362
|
return;
|
|
399361
399363
|
}
|
|
399362
|
-
writeToStdout(`New version available: ${latest} (current: ${{ VERSION: "0.2.
|
|
399364
|
+
writeToStdout(`New version available: ${latest} (current: ${{ VERSION: "0.2.36", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION})
|
|
399363
399365
|
`);
|
|
399364
399366
|
writeToStdout(`Installing update from theus.pe/dl...
|
|
399365
399367
|
`);
|
|
@@ -399393,7 +399395,7 @@ async function updateReleaseBundle() {
|
|
|
399393
399395
|
return;
|
|
399394
399396
|
}
|
|
399395
399397
|
cpSync(staged, bundleDir, { recursive: true, force: true });
|
|
399396
|
-
writeToStdout(source_default.green(`Successfully updated from ${{ VERSION: "0.2.
|
|
399398
|
+
writeToStdout(source_default.green(`Successfully updated from ${{ VERSION: "0.2.36", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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}`) + `
|
|
399397
399399
|
`);
|
|
399398
399400
|
await regenerateCompletionCache();
|
|
399399
399401
|
} finally {
|
|
@@ -399406,7 +399408,7 @@ async function updateReleaseBundle() {
|
|
|
399406
399408
|
async function update() {
|
|
399407
399409
|
logEvent("tengu_update_check", {});
|
|
399408
399410
|
await updateNaupa();
|
|
399409
|
-
writeToStdout(`Current version: ${{ VERSION: "0.2.
|
|
399411
|
+
writeToStdout(`Current version: ${{ VERSION: "0.2.36", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION}
|
|
399410
399412
|
`);
|
|
399411
399413
|
const channel2 = getInitialSettings()?.autoUpdatesChannel ?? "latest";
|
|
399412
399414
|
writeToStdout(`Checking for updates to ${channel2} version...
|
|
@@ -399485,8 +399487,8 @@ async function update() {
|
|
|
399485
399487
|
writeToStdout(`Theus is managed by Homebrew.
|
|
399486
399488
|
`);
|
|
399487
399489
|
const latest = await getLatestVersion(channel2);
|
|
399488
|
-
if (latest && !gte({ VERSION: "0.2.
|
|
399489
|
-
writeToStdout(`Update available: ${{ VERSION: "0.2.
|
|
399490
|
+
if (latest && !gte({ VERSION: "0.2.36", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
|
|
399491
|
+
writeToStdout(`Update available: ${{ VERSION: "0.2.36", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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}
|
|
399490
399492
|
`);
|
|
399491
399493
|
writeToStdout(`
|
|
399492
399494
|
`);
|
|
@@ -399502,8 +399504,8 @@ async function update() {
|
|
|
399502
399504
|
writeToStdout(`Theus is managed by winget.
|
|
399503
399505
|
`);
|
|
399504
399506
|
const latest = await getLatestVersion(channel2);
|
|
399505
|
-
if (latest && !gte({ VERSION: "0.2.
|
|
399506
|
-
writeToStdout(`Update available: ${{ VERSION: "0.2.
|
|
399507
|
+
if (latest && !gte({ VERSION: "0.2.36", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
|
|
399508
|
+
writeToStdout(`Update available: ${{ VERSION: "0.2.36", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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}
|
|
399507
399509
|
`);
|
|
399508
399510
|
writeToStdout(`
|
|
399509
399511
|
`);
|
|
@@ -399519,8 +399521,8 @@ async function update() {
|
|
|
399519
399521
|
writeToStdout(`Theus is managed by apk.
|
|
399520
399522
|
`);
|
|
399521
399523
|
const latest = await getLatestVersion(channel2);
|
|
399522
|
-
if (latest && !gte({ VERSION: "0.2.
|
|
399523
|
-
writeToStdout(`Update available: ${{ VERSION: "0.2.
|
|
399524
|
+
if (latest && !gte({ VERSION: "0.2.36", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
|
|
399525
|
+
writeToStdout(`Update available: ${{ VERSION: "0.2.36", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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}
|
|
399524
399526
|
`);
|
|
399525
399527
|
writeToStdout(`
|
|
399526
399528
|
`);
|
|
@@ -399585,11 +399587,11 @@ async function update() {
|
|
|
399585
399587
|
`);
|
|
399586
399588
|
await gracefulShutdown(1);
|
|
399587
399589
|
}
|
|
399588
|
-
if (result.latestVersion === { VERSION: "0.2.
|
|
399589
|
-
writeToStdout(source_default.green(`Theus is up to date (${{ VERSION: "0.2.
|
|
399590
|
+
if (result.latestVersion === { VERSION: "0.2.36", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION) {
|
|
399591
|
+
writeToStdout(source_default.green(`Theus is up to date (${{ VERSION: "0.2.36", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION})`) + `
|
|
399590
399592
|
`);
|
|
399591
399593
|
} else {
|
|
399592
|
-
writeToStdout(source_default.green(`Successfully updated from ${{ VERSION: "0.2.
|
|
399594
|
+
writeToStdout(source_default.green(`Successfully updated from ${{ VERSION: "0.2.36", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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}`) + `
|
|
399593
399595
|
`);
|
|
399594
399596
|
await regenerateCompletionCache();
|
|
399595
399597
|
}
|
|
@@ -399608,9 +399610,9 @@ async function update() {
|
|
|
399608
399610
|
await removeInstalledSymlink();
|
|
399609
399611
|
}
|
|
399610
399612
|
logForDebugging("update: Checking npm registry for latest version");
|
|
399611
|
-
logForDebugging(`update: Package URL: ${{ VERSION: "0.2.
|
|
399613
|
+
logForDebugging(`update: Package URL: ${{ VERSION: "0.2.36", BUILD_TIME: "1970-01-01T00:00:00.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}`);
|
|
399612
399614
|
const npmTag = channel2 === "stable" ? "stable" : "latest";
|
|
399613
|
-
const npmCommand = `npm view ${{ VERSION: "0.2.
|
|
399615
|
+
const npmCommand = `npm view ${{ VERSION: "0.2.36", BUILD_TIME: "1970-01-01T00:00:00.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`;
|
|
399614
399616
|
logForDebugging(`update: Running: ${npmCommand}`);
|
|
399615
399617
|
const latestVersion = await getLatestVersion(channel2);
|
|
399616
399618
|
logForDebugging(`update: Latest version from npm: ${latestVersion || "FAILED"}`);
|
|
@@ -399630,7 +399632,7 @@ async function update() {
|
|
|
399630
399632
|
`);
|
|
399631
399633
|
process.stderr.write(` \u2022 Corporate proxy/firewall blocking npm
|
|
399632
399634
|
`);
|
|
399633
|
-
if ({ VERSION: "0.2.
|
|
399635
|
+
if ({ VERSION: "0.2.36", BUILD_TIME: "1970-01-01T00:00:00.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.36", BUILD_TIME: "1970-01-01T00:00:00.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")) {
|
|
399634
399636
|
process.stderr.write(` \u2022 Internal/development build not published to npm
|
|
399635
399637
|
`);
|
|
399636
399638
|
}
|
|
@@ -399642,19 +399644,19 @@ async function update() {
|
|
|
399642
399644
|
`);
|
|
399643
399645
|
process.stderr.write(` \u2022 Run with --debug flag for more details
|
|
399644
399646
|
`);
|
|
399645
|
-
const packageName = { VERSION: "0.2.
|
|
399647
|
+
const packageName = { VERSION: "0.2.36", BUILD_TIME: "1970-01-01T00:00:00.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");
|
|
399646
399648
|
process.stderr.write(` \u2022 Manually check: npm view ${packageName} version
|
|
399647
399649
|
`);
|
|
399648
399650
|
process.stderr.write(` \u2022 Check if you need to login: npm whoami
|
|
399649
399651
|
`);
|
|
399650
399652
|
await gracefulShutdown(1);
|
|
399651
399653
|
}
|
|
399652
|
-
if (gte({ VERSION: "0.2.
|
|
399653
|
-
writeToStdout(source_default.green(`Theus is up to date (${{ VERSION: "0.2.
|
|
399654
|
+
if (gte({ VERSION: "0.2.36", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
|
|
399655
|
+
writeToStdout(source_default.green(`Theus is up to date (${{ VERSION: "0.2.36", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION})`) + `
|
|
399654
399656
|
`);
|
|
399655
399657
|
await gracefulShutdown(0);
|
|
399656
399658
|
}
|
|
399657
|
-
writeToStdout(`New version available: ${latestVersion} (current: ${{ VERSION: "0.2.
|
|
399659
|
+
writeToStdout(`New version available: ${latestVersion} (current: ${{ VERSION: "0.2.36", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION})
|
|
399658
399660
|
`);
|
|
399659
399661
|
writeToStdout(`Installing update...
|
|
399660
399662
|
`);
|
|
@@ -399699,7 +399701,7 @@ async function update() {
|
|
|
399699
399701
|
logForDebugging(`update: Installation status: ${status2}`);
|
|
399700
399702
|
switch (status2) {
|
|
399701
399703
|
case "success":
|
|
399702
|
-
writeToStdout(source_default.green(`Successfully updated from ${{ VERSION: "0.2.
|
|
399704
|
+
writeToStdout(source_default.green(`Successfully updated from ${{ VERSION: "0.2.36", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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}`) + `
|
|
399703
399705
|
`);
|
|
399704
399706
|
await regenerateCompletionCache();
|
|
399705
399707
|
break;
|
|
@@ -399709,7 +399711,7 @@ async function update() {
|
|
|
399709
399711
|
if (useLocalUpdate) {
|
|
399710
399712
|
process.stderr.write(`Try manually updating with:
|
|
399711
399713
|
`);
|
|
399712
|
-
process.stderr.write(` cd ~/.theus/local && npm update ${{ VERSION: "0.2.
|
|
399714
|
+
process.stderr.write(` cd ~/.theus/local && npm update ${{ VERSION: "0.2.36", BUILD_TIME: "1970-01-01T00:00:00.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}
|
|
399713
399715
|
`);
|
|
399714
399716
|
} else {
|
|
399715
399717
|
process.stderr.write(`Try running with sudo or fix npm permissions
|
|
@@ -399725,7 +399727,7 @@ async function update() {
|
|
|
399725
399727
|
if (useLocalUpdate) {
|
|
399726
399728
|
process.stderr.write(`Try manually updating with:
|
|
399727
399729
|
`);
|
|
399728
|
-
process.stderr.write(` cd ~/.theus/local && npm update ${{ VERSION: "0.2.
|
|
399730
|
+
process.stderr.write(` cd ~/.theus/local && npm update ${{ VERSION: "0.2.36", BUILD_TIME: "1970-01-01T00:00:00.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}
|
|
399729
399731
|
`);
|
|
399730
399732
|
} else {
|
|
399731
399733
|
process.stderr.write(`Or consider using native installation with: theus install
|
|
@@ -408802,7 +408804,7 @@ var init_sessionStorage = __esm(() => {
|
|
|
408802
408804
|
init_settings2();
|
|
408803
408805
|
init_slowOperations();
|
|
408804
408806
|
init_uuid();
|
|
408805
|
-
VERSION4 = { VERSION: "0.2.
|
|
408807
|
+
VERSION4 = { VERSION: "0.2.36", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION;
|
|
408806
408808
|
MAX_TOMBSTONE_REWRITE_BYTES = 50 * 1024 * 1024;
|
|
408807
408809
|
SKIP_FIRST_PROMPT_PATTERN = /^(?:\s*<[a-z][\w-]*[\s>]|\[Request interrupted by user[^\]]*\])/;
|
|
408808
408810
|
EPHEMERAL_PROGRESS_TYPES = new Set([
|
|
@@ -410007,7 +410009,7 @@ var init_filesystem = __esm(() => {
|
|
|
410007
410009
|
});
|
|
410008
410010
|
getBundledSkillsRoot = memoize_default(function getBundledSkillsRoot2() {
|
|
410009
410011
|
const nonce = randomBytes21(16).toString("hex");
|
|
410010
|
-
return join149(getTheusTempDir(), "bundled-skills", { VERSION: "0.2.
|
|
410012
|
+
return join149(getTheusTempDir(), "bundled-skills", { VERSION: "0.2.36", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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);
|
|
410011
410013
|
});
|
|
410012
410014
|
getResolvedWorkingDirPaths = memoize_default(getPathsForPermissionCheck);
|
|
410013
410015
|
});
|
|
@@ -415186,7 +415188,7 @@ function getSimpleDoingTasksSection() {
|
|
|
415186
415188
|
];
|
|
415187
415189
|
const userHelpSubitems = [
|
|
415188
415190
|
`/help: Get help with using Theus`,
|
|
415189
|
-
`To give feedback, users should ${{ VERSION: "0.2.
|
|
415191
|
+
`To give feedback, users should ${{ VERSION: "0.2.36", BUILD_TIME: "1970-01-01T00:00:00.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}`
|
|
415190
415192
|
];
|
|
415191
415193
|
const items = [
|
|
415192
415194
|
`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.`,
|
|
@@ -416086,7 +416088,7 @@ function computeFingerprint(messageText, version3) {
|
|
|
416086
416088
|
}
|
|
416087
416089
|
function computeFingerprintFromMessages(messages) {
|
|
416088
416090
|
const firstMessageText = extractFirstMessageText(messages);
|
|
416089
|
-
return computeFingerprint(firstMessageText, { VERSION: "0.2.
|
|
416091
|
+
return computeFingerprint(firstMessageText, { VERSION: "0.2.36", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION);
|
|
416090
416092
|
}
|
|
416091
416093
|
var FINGERPRINT_SALT = "59cf53e54c78";
|
|
416092
416094
|
var init_fingerprint = () => {};
|
|
@@ -417954,12 +417956,23 @@ function getTheusChatProvider() {
|
|
|
417954
417956
|
}
|
|
417955
417957
|
return getManagedGatewayProvider();
|
|
417956
417958
|
}
|
|
417957
|
-
function
|
|
417959
|
+
function getManagedGatewayBases() {
|
|
417960
|
+
const override = env5("THEUS_GATEWAY_BASE_URL");
|
|
417961
|
+
if (override)
|
|
417962
|
+
return [override.replace(/\/+$/, "")];
|
|
417963
|
+
const configured = getOauthConfig().BASE_API_URL.replace(/\/+$/, "");
|
|
417964
|
+
if (configured === "https://theus.pe")
|
|
417965
|
+
return ["https://api.theus.pe", configured];
|
|
417966
|
+
return [configured];
|
|
417967
|
+
}
|
|
417968
|
+
function getManagedGatewayProvider(baseIndex = 0) {
|
|
417958
417969
|
try {
|
|
417959
417970
|
const accessToken = getTheusAIOAuthTokens()?.accessToken;
|
|
417960
417971
|
if (!accessToken || !isTheusAISubscriber())
|
|
417961
417972
|
return null;
|
|
417962
|
-
const base2 =
|
|
417973
|
+
const base2 = getManagedGatewayBases()[baseIndex];
|
|
417974
|
+
if (!base2)
|
|
417975
|
+
return null;
|
|
417963
417976
|
return {
|
|
417964
417977
|
id: "theus",
|
|
417965
417978
|
baseURL: `${base2}/v1`,
|
|
@@ -417984,6 +417997,7 @@ function buildFallbackChain(primary) {
|
|
|
417984
417997
|
};
|
|
417985
417998
|
push2(primary);
|
|
417986
417999
|
push2(getTheusChatProvider());
|
|
418000
|
+
push2(getManagedGatewayProvider(1));
|
|
417987
418001
|
if (!isEnvTruthy(process.env.THEUS_DISABLE_MAIN_PROVIDER)) {
|
|
417988
418002
|
const config3 = loadProvidersConfig4();
|
|
417989
418003
|
if (config3) {
|
|
@@ -418634,7 +418648,7 @@ async function sideQuery(opts) {
|
|
|
418634
418648
|
betas.push(STRUCTURED_OUTPUTS_BETA_HEADER);
|
|
418635
418649
|
}
|
|
418636
418650
|
const messageText = extractFirstUserMessageText(messages);
|
|
418637
|
-
const fingerprint = computeFingerprint(messageText, { VERSION: "0.2.
|
|
418651
|
+
const fingerprint = computeFingerprint(messageText, { VERSION: "0.2.36", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION);
|
|
418638
418652
|
const attributionHeader = getAttributionHeader(fingerprint);
|
|
418639
418653
|
const systemBlocks = [
|
|
418640
418654
|
attributionHeader ? { type: "text", text: attributionHeader } : null,
|
|
@@ -419937,7 +419951,7 @@ async function handleMemories(state) {
|
|
|
419937
419951
|
async function runProjectContextMcpServer() {
|
|
419938
419952
|
const projectRoot = process.env.THEUS_PROJECT_ROOT || process.cwd();
|
|
419939
419953
|
const state = new ProjectContextState(projectRoot);
|
|
419940
|
-
const server2 = new Server({ name: SERVER_NAME, version: { VERSION: "0.2.
|
|
419954
|
+
const server2 = new Server({ name: SERVER_NAME, version: { VERSION: "0.2.36", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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: {} } });
|
|
419941
419955
|
server2.setRequestHandler(ListToolsRequestSchema, async () => ({
|
|
419942
419956
|
tools: TOOL_DEFINITIONS.map((t) => ({
|
|
419943
419957
|
name: t.name,
|
|
@@ -421917,7 +421931,7 @@ function createBridgeLogger(options2) {
|
|
|
421917
421931
|
connectUrl = buildBridgeConnectUrl(environmentId, cachedIngressUrl);
|
|
421918
421932
|
regenerateQr(connectUrl);
|
|
421919
421933
|
if (verbose) {
|
|
421920
|
-
write(source_default.dim(`Remote Control`) + ` v${{ VERSION: "0.2.
|
|
421934
|
+
write(source_default.dim(`Remote Control`) + ` v${{ VERSION: "0.2.36", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION}
|
|
421921
421935
|
`);
|
|
421922
421936
|
}
|
|
421923
421937
|
if (verbose) {
|
|
@@ -422890,7 +422904,7 @@ function appendToLog(path19, message) {
|
|
|
422890
422904
|
cwd: getFsImplementation().cwd(),
|
|
422891
422905
|
userType: process.env.USER_TYPE,
|
|
422892
422906
|
sessionId: getSessionId(),
|
|
422893
|
-
version: { VERSION: "0.2.
|
|
422907
|
+
version: { VERSION: "0.2.36", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
|
|
422894
422908
|
};
|
|
422895
422909
|
getLogWriter(path19).write(messageWithTimestamp);
|
|
422896
422910
|
}
|
|
@@ -424160,7 +424174,7 @@ Spawn mode for this project:
|
|
|
424160
424174
|
const api2 = createBridgeApiClient({
|
|
424161
424175
|
baseUrl,
|
|
424162
424176
|
getAccessToken: getBridgeAccessToken2,
|
|
424163
|
-
runnerVersion: { VERSION: "0.2.
|
|
424177
|
+
runnerVersion: { VERSION: "0.2.36", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
|
|
424164
424178
|
onDebug: logForDebugging,
|
|
424165
424179
|
onAuth401: handleOAuth401Error2,
|
|
424166
424180
|
getTrustedDeviceToken
|
|
@@ -424398,7 +424412,7 @@ async function runBridgeHeadless(opts, signal) {
|
|
|
424398
424412
|
const api2 = createBridgeApiClient({
|
|
424399
424413
|
baseUrl,
|
|
424400
424414
|
getAccessToken: opts.getAccessToken,
|
|
424401
|
-
runnerVersion: { VERSION: "0.2.
|
|
424415
|
+
runnerVersion: { VERSION: "0.2.36", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
|
|
424402
424416
|
onDebug: log2,
|
|
424403
424417
|
onAuth401: opts.onAuth401,
|
|
424404
424418
|
getTrustedDeviceToken
|
|
@@ -428462,7 +428476,7 @@ function buildSystemInitMessage(inputs) {
|
|
|
428462
428476
|
slash_commands: inputs.commands.filter((c5) => c5.userInvocable !== false).map((c5) => c5.name),
|
|
428463
428477
|
apiKeySource: getTheusApiKeyWithSource().source,
|
|
428464
428478
|
betas: getSdkBetas(),
|
|
428465
|
-
theus_code_version: { VERSION: "0.2.
|
|
428479
|
+
theus_code_version: { VERSION: "0.2.36", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
|
|
428466
428480
|
output_style: outputStyle2,
|
|
428467
428481
|
agents: inputs.agents.map((agent) => agent.agentType),
|
|
428468
428482
|
skills: inputs.skills.filter((s) => s.userInvocable !== false).map((skill) => skill.name),
|
|
@@ -428502,8 +428516,8 @@ async function getEnvLessBridgeConfig() {
|
|
|
428502
428516
|
}
|
|
428503
428517
|
async function checkEnvLessBridgeMinVersion() {
|
|
428504
428518
|
const cfg = await getEnvLessBridgeConfig();
|
|
428505
|
-
if (cfg.min_version && lt({ VERSION: "0.2.
|
|
428506
|
-
return `Your version of Theus (${{ VERSION: "0.2.
|
|
428519
|
+
if (cfg.min_version && lt({ VERSION: "0.2.36", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
|
|
428520
|
+
return `Your version of Theus (${{ VERSION: "0.2.36", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.
|
|
428507
428521
|
Version ${cfg.min_version} or higher is required. Run \`theus update\` to update.`;
|
|
428508
428522
|
}
|
|
428509
428523
|
return null;
|
|
@@ -430826,7 +430840,7 @@ async function initBridgeCore(params) {
|
|
|
430826
430840
|
const rawApi = createBridgeApiClient({
|
|
430827
430841
|
baseUrl,
|
|
430828
430842
|
getAccessToken,
|
|
430829
|
-
runnerVersion: { VERSION: "0.2.
|
|
430843
|
+
runnerVersion: { VERSION: "0.2.36", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
|
|
430830
430844
|
onDebug: logForDebugging,
|
|
430831
430845
|
onAuth401,
|
|
430832
430846
|
getTrustedDeviceToken
|
|
@@ -447567,7 +447581,7 @@ var init_useVoiceEnabled = __esm(() => {
|
|
|
447567
447581
|
function getSemverPart(version3) {
|
|
447568
447582
|
return `${import_semver14.major(version3, { loose: true })}.${import_semver14.minor(version3, { loose: true })}.${import_semver14.patch(version3, { loose: true })}`;
|
|
447569
447583
|
}
|
|
447570
|
-
function useUpdateNotification(updatedVersion, initialVersion = { VERSION: "0.2.
|
|
447584
|
+
function useUpdateNotification(updatedVersion, initialVersion = { VERSION: "0.2.36", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION) {
|
|
447571
447585
|
const [lastNotifiedSemver, setLastNotifiedSemver] = import_react231.useState(() => getSemverPart(initialVersion));
|
|
447572
447586
|
if (!updatedVersion) {
|
|
447573
447587
|
return null;
|
|
@@ -447607,7 +447621,7 @@ function AutoUpdater({
|
|
|
447607
447621
|
return;
|
|
447608
447622
|
}
|
|
447609
447623
|
if (false) {}
|
|
447610
|
-
const currentVersion = { VERSION: "0.2.
|
|
447624
|
+
const currentVersion = { VERSION: "0.2.36", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION;
|
|
447611
447625
|
const channel2 = getInitialSettings()?.autoUpdatesChannel ?? "latest";
|
|
447612
447626
|
let latestVersion = await getLatestVersion(channel2);
|
|
447613
447627
|
const isDisabled2 = isAutoUpdaterDisabled();
|
|
@@ -447743,7 +447757,7 @@ function AutoUpdater({
|
|
|
447743
447757
|
" ",
|
|
447744
447758
|
/* @__PURE__ */ jsx_runtime406.jsx(ThemedText, {
|
|
447745
447759
|
bold: true,
|
|
447746
|
-
children: hasLocalInstall ? `cd ~/.theus/local && npm update ${{ VERSION: "0.2.
|
|
447760
|
+
children: hasLocalInstall ? `cd ~/.theus/local && npm update ${{ VERSION: "0.2.36", BUILD_TIME: "1970-01-01T00:00:00.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.36", BUILD_TIME: "1970-01-01T00:00:00.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}`
|
|
447747
447761
|
})
|
|
447748
447762
|
]
|
|
447749
447763
|
})
|
|
@@ -447820,12 +447834,12 @@ function NativeAutoUpdater({
|
|
|
447820
447834
|
logEvent("tengu_native_auto_updater_start", {});
|
|
447821
447835
|
try {
|
|
447822
447836
|
const maxVersion = await getMaxVersion();
|
|
447823
|
-
if (maxVersion && gt({ VERSION: "0.2.
|
|
447837
|
+
if (maxVersion && gt({ VERSION: "0.2.36", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
|
|
447824
447838
|
const msg = await getMaxVersionMessage();
|
|
447825
447839
|
setMaxVersionIssue(msg ?? "affects your version");
|
|
447826
447840
|
}
|
|
447827
447841
|
const result = await installLatest(channel2);
|
|
447828
|
-
const currentVersion = { VERSION: "0.2.
|
|
447842
|
+
const currentVersion = { VERSION: "0.2.36", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION;
|
|
447829
447843
|
const latencyMs = Date.now() - startTime2;
|
|
447830
447844
|
if (result.lockFailed) {
|
|
447831
447845
|
logEvent("tengu_native_auto_updater_lock_contention", {
|
|
@@ -447962,17 +447976,17 @@ function PackageManagerAutoUpdater(t0) {
|
|
|
447962
447976
|
const maxVersion = await getMaxVersion();
|
|
447963
447977
|
if (maxVersion && latest && gt(latest, maxVersion)) {
|
|
447964
447978
|
logForDebugging(`PackageManagerAutoUpdater: maxVersion ${maxVersion} is set, capping update from ${latest} to ${maxVersion}`);
|
|
447965
|
-
if (gte({ VERSION: "0.2.
|
|
447966
|
-
logForDebugging(`PackageManagerAutoUpdater: current version ${{ VERSION: "0.2.
|
|
447979
|
+
if (gte({ VERSION: "0.2.36", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
|
|
447980
|
+
logForDebugging(`PackageManagerAutoUpdater: current version ${{ VERSION: "0.2.36", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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`);
|
|
447967
447981
|
setUpdateAvailable(false);
|
|
447968
447982
|
return;
|
|
447969
447983
|
}
|
|
447970
447984
|
latest = maxVersion;
|
|
447971
447985
|
}
|
|
447972
|
-
const hasUpdate = latest && !gte({ VERSION: "0.2.
|
|
447986
|
+
const hasUpdate = latest && !gte({ VERSION: "0.2.36", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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);
|
|
447973
447987
|
setUpdateAvailable(!!hasUpdate);
|
|
447974
447988
|
if (hasUpdate) {
|
|
447975
|
-
logForDebugging(`PackageManagerAutoUpdater: Update available ${{ VERSION: "0.2.
|
|
447989
|
+
logForDebugging(`PackageManagerAutoUpdater: Update available ${{ VERSION: "0.2.36", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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}`);
|
|
447976
447990
|
}
|
|
447977
447991
|
};
|
|
447978
447992
|
$2[0] = t1;
|
|
@@ -448006,7 +448020,7 @@ function PackageManagerAutoUpdater(t0) {
|
|
|
448006
448020
|
wrap: "truncate",
|
|
448007
448021
|
children: [
|
|
448008
448022
|
"currentVersion: ",
|
|
448009
|
-
{ VERSION: "0.2.
|
|
448023
|
+
{ VERSION: "0.2.36", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
|
|
448010
448024
|
]
|
|
448011
448025
|
});
|
|
448012
448026
|
$2[3] = verbose;
|
|
@@ -455879,7 +455893,7 @@ function buildStatusLineCommandInput(permissionMode, exceeds200kTokens, settings
|
|
|
455879
455893
|
project_dir: getOriginalCwd(),
|
|
455880
455894
|
added_dirs: addedDirs
|
|
455881
455895
|
},
|
|
455882
|
-
version: { VERSION: "0.2.
|
|
455896
|
+
version: { VERSION: "0.2.36", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
|
|
455883
455897
|
output_style: {
|
|
455884
455898
|
name: outputStyleName
|
|
455885
455899
|
},
|
|
@@ -457362,7 +457376,6 @@ function ModeIndicator({
|
|
|
457362
457376
|
}) : null;
|
|
457363
457377
|
if (parts.length === 0 && !tasksPart && !modePart && showHint) {
|
|
457364
457378
|
parts.push(/* @__PURE__ */ jsx_runtime433.jsx(ThemedText, {
|
|
457365
|
-
dimColor: true,
|
|
457366
457379
|
children: "? para atajos"
|
|
457367
457380
|
}, "shortcuts-hint"));
|
|
457368
457381
|
}
|
|
@@ -467300,7 +467313,7 @@ async function submitTranscriptShare(messages, trigger, appearanceId) {
|
|
|
467300
467313
|
} catch {}
|
|
467301
467314
|
const data = {
|
|
467302
467315
|
trigger,
|
|
467303
|
-
version: { VERSION: "0.2.
|
|
467316
|
+
version: { VERSION: "0.2.36", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
|
|
467304
467317
|
platform: process.platform,
|
|
467305
467318
|
transcript,
|
|
467306
467319
|
subagentTranscripts: Object.keys(subagentTranscripts).length > 0 ? subagentTranscripts : undefined,
|
|
@@ -478745,7 +478758,6 @@ function MetricLine({
|
|
|
478745
478758
|
return /* @__PURE__ */ jsx_runtime471.jsxs(ThemedBox_default, {
|
|
478746
478759
|
children: [
|
|
478747
478760
|
/* @__PURE__ */ jsx_runtime471.jsx(Text, {
|
|
478748
|
-
dim: true,
|
|
478749
478761
|
children: `${label} `
|
|
478750
478762
|
}),
|
|
478751
478763
|
/* @__PURE__ */ jsx_runtime471.jsx(ThemedText, {
|
|
@@ -478868,7 +478880,6 @@ function StartupMenu({
|
|
|
478868
478880
|
]
|
|
478869
478881
|
}) : /* @__PURE__ */ jsx_runtime471.jsx(ThemedBox_default, {
|
|
478870
478882
|
children: /* @__PURE__ */ jsx_runtime471.jsx(Text, {
|
|
478871
|
-
dim: true,
|
|
478872
478883
|
children: "[ ] \xEDndice local desactivado o no disponible"
|
|
478873
478884
|
})
|
|
478874
478885
|
})
|
|
@@ -478902,7 +478913,6 @@ function StartupMenu({
|
|
|
478902
478913
|
children: "]"
|
|
478903
478914
|
}),
|
|
478904
478915
|
/* @__PURE__ */ jsx_runtime471.jsx(Text, {
|
|
478905
|
-
dim: true,
|
|
478906
478916
|
children: introActive ? " preparando entorno" : " entorno listo"
|
|
478907
478917
|
})
|
|
478908
478918
|
]
|
|
@@ -478957,7 +478967,6 @@ function StartupMenu({
|
|
|
478957
478967
|
marginTop: 1,
|
|
478958
478968
|
flexWrap: "wrap",
|
|
478959
478969
|
children: /* @__PURE__ */ jsx_runtime471.jsx(Text, {
|
|
478960
|
-
dim: true,
|
|
478961
478970
|
children: motionPolicy.glyphMode === "ascii" ? compactMenu ? "UP/DOWN | Enter | Esc" : "UP/DOWN mover | Enter seleccionar | Esc salir" : compactMenu ? "\u2191\u2193 \xB7 Enter \xB7 Esc" : "\u2191\u2193 mover \xB7 Enter seleccionar \xB7 Esc salir"
|
|
478962
478971
|
})
|
|
478963
478972
|
}) : null
|
|
@@ -478981,7 +478990,7 @@ var init_StartupMenu = __esm(() => {
|
|
|
478981
478990
|
jsx_runtime471 = __toESM(require_jsx_runtime(), 1);
|
|
478982
478991
|
OPTIONS = [
|
|
478983
478992
|
{
|
|
478984
|
-
label: "
|
|
478993
|
+
label: "Iniciar misi\xF3n",
|
|
478985
478994
|
value: "new-project",
|
|
478986
478995
|
description: "Entrar al prompt con el contexto de este proyecto"
|
|
478987
478996
|
},
|
|
@@ -480311,7 +480320,7 @@ function completeOnboarding() {
|
|
|
480311
480320
|
saveGlobalConfig((current) => ({
|
|
480312
480321
|
...current,
|
|
480313
480322
|
hasCompletedOnboarding: true,
|
|
480314
|
-
lastOnboardingVersion: { VERSION: "0.2.
|
|
480323
|
+
lastOnboardingVersion: { VERSION: "0.2.36", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
|
|
480315
480324
|
}));
|
|
480316
480325
|
}
|
|
480317
480326
|
function showDialog(root2, renderer) {
|
|
@@ -480841,7 +480850,6 @@ function TheusSplash({
|
|
|
480841
480850
|
]
|
|
480842
480851
|
}) : /* @__PURE__ */ jsx_runtime480.jsx(ThemedBox_default, {
|
|
480843
480852
|
children: /* @__PURE__ */ jsx_runtime480.jsx(Text, {
|
|
480844
|
-
dim: true,
|
|
480845
480853
|
children: "[ ] grafo servicio local no disponible"
|
|
480846
480854
|
})
|
|
480847
480855
|
})
|
|
@@ -480863,7 +480871,6 @@ function TheusSplash({
|
|
|
480863
480871
|
children: "]"
|
|
480864
480872
|
}),
|
|
480865
480873
|
/* @__PURE__ */ jsx_runtime480.jsx(Text, {
|
|
480866
|
-
dim: true,
|
|
480867
480874
|
children: motionPolicy.glyphMode === "ascii" ? " misi\xF3n lista | pulsa una tecla" : " misi\xF3n lista \xB7 pulsa una tecla"
|
|
480868
480875
|
})
|
|
480869
480876
|
]
|
|
@@ -480905,6 +480912,113 @@ var init_TheusSplash = __esm(() => {
|
|
|
480905
480912
|
TheusSplash_default = TheusSplash;
|
|
480906
480913
|
});
|
|
480907
480914
|
|
|
480915
|
+
// components/Theus/missionLaunchModel.ts
|
|
480916
|
+
function launchWordmark(width) {
|
|
480917
|
+
if (width >= THEUS_JUMBO_WORDMARK_WIDTH + 4) {
|
|
480918
|
+
return THEUS_JUMBO_WORDMARK_LINES;
|
|
480919
|
+
}
|
|
480920
|
+
if (width >= THEUS_WORDMARK_WIDTH + 4)
|
|
480921
|
+
return THEUS_WORDMARK_LINES;
|
|
480922
|
+
return ["THEUS"];
|
|
480923
|
+
}
|
|
480924
|
+
function buildMissionLaunchFrame(input) {
|
|
480925
|
+
const width = Math.max(24, Math.min(140, Math.floor(input.width)));
|
|
480926
|
+
const timeMs = Math.max(0, input.timeMs);
|
|
480927
|
+
const wordmark = launchWordmark(width);
|
|
480928
|
+
const lines = [];
|
|
480929
|
+
lines.push(centerLine([
|
|
480930
|
+
seg(input.asciiOnly ? "[ THEUS // MISION ]" : "THEUS // MISI\xD3N", "brand", true)
|
|
480931
|
+
], width));
|
|
480932
|
+
lines.push(textLine());
|
|
480933
|
+
for (const [index, raw] of wordmark.entries()) {
|
|
480934
|
+
const reveal = easeOut(progress(timeMs, 30 + index * 38, 430 + index * 38));
|
|
480935
|
+
lines.push(centerLine(revealLine(raw, reveal, "brand"), width));
|
|
480936
|
+
}
|
|
480937
|
+
lines.push(textLine());
|
|
480938
|
+
const ready = timeMs >= MISSION_LAUNCH_DURATION_MS - 170;
|
|
480939
|
+
lines.push(centerLine([
|
|
480940
|
+
seg(ready ? input.asciiOnly ? "[+] MISION INICIADA" : "[+] MISI\xD3N INICIADA" : input.asciiOnly ? "[>] INICIANDO MISION" : "[>] INICIANDO MISI\xD3N", ready ? "success" : "text", true)
|
|
480941
|
+
], width));
|
|
480942
|
+
lines.push(centerLine(movingTrack(Math.min(44, width - 8), timeMs), width));
|
|
480943
|
+
return lines.map((line) => fitForgeLine(line, width));
|
|
480944
|
+
}
|
|
480945
|
+
var MISSION_LAUNCH_DURATION_MS = 780, MISSION_LAUNCH_REDUCED_MS = 80;
|
|
480946
|
+
var init_missionLaunchModel = __esm(() => {
|
|
480947
|
+
init_asciiLogo();
|
|
480948
|
+
init_forgePreviewModel();
|
|
480949
|
+
});
|
|
480950
|
+
|
|
480951
|
+
// components/Theus/TheusMissionLaunch.tsx
|
|
480952
|
+
var exports_TheusMissionLaunch = {};
|
|
480953
|
+
__export(exports_TheusMissionLaunch, {
|
|
480954
|
+
default: () => TheusMissionLaunch_default,
|
|
480955
|
+
TheusMissionLaunch: () => TheusMissionLaunch
|
|
480956
|
+
});
|
|
480957
|
+
function TheusMissionLaunch({ onDone }) {
|
|
480958
|
+
const [themeName] = useTheme();
|
|
480959
|
+
const theme2 = getTheme(themeName);
|
|
480960
|
+
const { columns } = useTerminalSize();
|
|
480961
|
+
const [reducedMotion] = import_react332.useState(() => getInitialSettings().prefersReducedMotion ?? false);
|
|
480962
|
+
const motionPolicy = resolveForgeMotionPolicy({
|
|
480963
|
+
env: process.env,
|
|
480964
|
+
isTTY: Boolean(process.stdout.isTTY),
|
|
480965
|
+
reducedMotion
|
|
480966
|
+
});
|
|
480967
|
+
const motionDisabled = motionPolicy.motion !== "full";
|
|
480968
|
+
const [animationRef, time4] = useAnimationFrame(motionDisabled ? null : motionPolicy.frameIntervalMs);
|
|
480969
|
+
const startTime2 = import_react332.useRef(time4);
|
|
480970
|
+
const finished7 = import_react332.useRef(false);
|
|
480971
|
+
const duration3 = motionDisabled ? MISSION_LAUNCH_REDUCED_MS : MISSION_LAUNCH_DURATION_MS;
|
|
480972
|
+
const elapsed = motionDisabled ? MISSION_LAUNCH_DURATION_MS : Math.max(0, time4 - startTime2.current);
|
|
480973
|
+
const finish = import_react332.useCallback(() => {
|
|
480974
|
+
if (finished7.current)
|
|
480975
|
+
return;
|
|
480976
|
+
finished7.current = true;
|
|
480977
|
+
onDone();
|
|
480978
|
+
}, [onDone]);
|
|
480979
|
+
import_react332.useEffect(() => {
|
|
480980
|
+
const timer = setTimeout(finish, duration3);
|
|
480981
|
+
return () => clearTimeout(timer);
|
|
480982
|
+
}, [duration3, finish]);
|
|
480983
|
+
use_input_default(() => finish());
|
|
480984
|
+
const frame = import_react332.useMemo(() => buildMissionLaunchFrame({
|
|
480985
|
+
timeMs: elapsed,
|
|
480986
|
+
width: columns,
|
|
480987
|
+
asciiOnly: motionPolicy.glyphMode === "ascii"
|
|
480988
|
+
}), [columns, elapsed, motionPolicy.glyphMode]);
|
|
480989
|
+
return /* @__PURE__ */ jsx_runtime481.jsx(ThemedBox_default, {
|
|
480990
|
+
ref: animationRef,
|
|
480991
|
+
flexDirection: "column",
|
|
480992
|
+
width: "100%",
|
|
480993
|
+
height: frame.length,
|
|
480994
|
+
overflow: "hidden",
|
|
480995
|
+
flexShrink: 0,
|
|
480996
|
+
children: frame.map((line, row) => /* @__PURE__ */ jsx_runtime481.jsx(ThemedBox_default, {
|
|
480997
|
+
height: 1,
|
|
480998
|
+
flexShrink: 0,
|
|
480999
|
+
children: line.map((item, column) => /* @__PURE__ */ jsx_runtime481.jsx(ThemedText, {
|
|
481000
|
+
color: forgeRoleColor(item.role, theme2),
|
|
481001
|
+
bold: item.bold,
|
|
481002
|
+
wrap: "truncate-end",
|
|
481003
|
+
children: item.text
|
|
481004
|
+
}, `${row}:${column}`))
|
|
481005
|
+
}, row))
|
|
481006
|
+
});
|
|
481007
|
+
}
|
|
481008
|
+
var import_react332, jsx_runtime481, TheusMissionLaunch_default;
|
|
481009
|
+
var init_TheusMissionLaunch = __esm(() => {
|
|
481010
|
+
init_ink2();
|
|
481011
|
+
init_useTerminalSize();
|
|
481012
|
+
init_settings2();
|
|
481013
|
+
init_theme();
|
|
481014
|
+
init_forgePreviewModel();
|
|
481015
|
+
init_forgeRuntime();
|
|
481016
|
+
init_missionLaunchModel();
|
|
481017
|
+
import_react332 = __toESM(require_react(), 1);
|
|
481018
|
+
jsx_runtime481 = __toESM(require_jsx_runtime(), 1);
|
|
481019
|
+
TheusMissionLaunch_default = TheusMissionLaunch;
|
|
481020
|
+
});
|
|
481021
|
+
|
|
480908
481022
|
// replLauncher.tsx
|
|
480909
481023
|
function shouldShowStartMenu(replProps) {
|
|
480910
481024
|
return !!process.stdin.isTTY && !!process.stdout.isTTY && process.env.THEUS_START_MENU !== "0" && process.env.THEUS_NO_START_MENU !== "1" && !replProps.disabled && !(replProps.initialMessages && replProps.initialMessages.length > 0) && !replProps.taskListId && !replProps.remoteSessionConfig && !replProps.directConnectConfig;
|
|
@@ -480932,7 +481046,7 @@ async function launchRepl(root2, appProps, replProps, renderAndRun2) {
|
|
|
480932
481046
|
try {
|
|
480933
481047
|
const { TheusSplash: TheusSplash2 } = await Promise.resolve().then(() => (init_TheusSplash(), exports_TheusSplash));
|
|
480934
481048
|
const version3 = globalThis.MACRO?.VERSION;
|
|
480935
|
-
await showSetupDialog2(root2, (done) => /* @__PURE__ */
|
|
481049
|
+
await showSetupDialog2(root2, (done) => /* @__PURE__ */ jsx_runtime482.jsx(TheusSplash2, {
|
|
480936
481050
|
version: version3,
|
|
480937
481051
|
projectIntelligencePromise,
|
|
480938
481052
|
onDone: () => done(undefined)
|
|
@@ -480940,7 +481054,7 @@ async function launchRepl(root2, appProps, replProps, renderAndRun2) {
|
|
|
480940
481054
|
} catch (err2) {
|
|
480941
481055
|
logError2(err2);
|
|
480942
481056
|
}
|
|
480943
|
-
const action2 = await showSetupDialog2(root2, (done) => /* @__PURE__ */
|
|
481057
|
+
const action2 = await showSetupDialog2(root2, (done) => /* @__PURE__ */ jsx_runtime482.jsx(StartupMenu2, {
|
|
480944
481058
|
version: globalThis.MACRO?.VERSION,
|
|
480945
481059
|
onSelect: done,
|
|
480946
481060
|
onExit: () => done("exit"),
|
|
@@ -480951,7 +481065,7 @@ async function launchRepl(root2, appProps, replProps, renderAndRun2) {
|
|
|
480951
481065
|
}
|
|
480952
481066
|
if (action2 === "providers") {
|
|
480953
481067
|
const { TheusProviderSetup: TheusProviderSetup2 } = await Promise.resolve().then(() => (init_TheusProviderSetup(), exports_TheusProviderSetup));
|
|
480954
|
-
await showSetupDialog2(root2, (done) => /* @__PURE__ */
|
|
481068
|
+
await showSetupDialog2(root2, (done) => /* @__PURE__ */ jsx_runtime482.jsx(TheusProviderSetup2, {
|
|
480955
481069
|
onDone: done
|
|
480956
481070
|
}));
|
|
480957
481071
|
}
|
|
@@ -480968,6 +481082,16 @@ API local: ${project2.apiUrl}
|
|
|
480968
481082
|
`);
|
|
480969
481083
|
}
|
|
480970
481084
|
}
|
|
481085
|
+
if (action2 === "new-project") {
|
|
481086
|
+
try {
|
|
481087
|
+
const { TheusMissionLaunch: TheusMissionLaunch2 } = await Promise.resolve().then(() => (init_TheusMissionLaunch(), exports_TheusMissionLaunch));
|
|
481088
|
+
await showSetupDialog2(root2, (done) => /* @__PURE__ */ jsx_runtime482.jsx(TheusMissionLaunch2, {
|
|
481089
|
+
onDone: () => done(undefined)
|
|
481090
|
+
}));
|
|
481091
|
+
} catch (err2) {
|
|
481092
|
+
logError2(err2);
|
|
481093
|
+
}
|
|
481094
|
+
}
|
|
480971
481095
|
root2.render(null);
|
|
480972
481096
|
await new Promise((resolve52) => setImmediate(resolve52));
|
|
480973
481097
|
process.stdout.write("\x1B[2J\x1B[3J\x1B[H");
|
|
@@ -480978,18 +481102,18 @@ API local: ${project2.apiUrl}
|
|
|
480978
481102
|
} else {
|
|
480979
481103
|
startProjectIntelligenceService();
|
|
480980
481104
|
}
|
|
480981
|
-
await renderAndRun2(root2, /* @__PURE__ */
|
|
481105
|
+
await renderAndRun2(root2, /* @__PURE__ */ jsx_runtime482.jsx(App3, {
|
|
480982
481106
|
...appProps,
|
|
480983
|
-
children: /* @__PURE__ */
|
|
481107
|
+
children: /* @__PURE__ */ jsx_runtime482.jsx(REPL2, {
|
|
480984
481108
|
...replProps
|
|
480985
481109
|
})
|
|
480986
481110
|
}));
|
|
480987
481111
|
}
|
|
480988
|
-
var
|
|
481112
|
+
var jsx_runtime482;
|
|
480989
481113
|
var init_replLauncher = __esm(() => {
|
|
480990
481114
|
init_log2();
|
|
480991
481115
|
init_cwd2();
|
|
480992
|
-
|
|
481116
|
+
jsx_runtime482 = __toESM(require_jsx_runtime(), 1);
|
|
480993
481117
|
});
|
|
480994
481118
|
|
|
480995
481119
|
// services/api/bootstrap.ts
|
|
@@ -481192,7 +481316,7 @@ function InvalidSettingsDialog(t0) {
|
|
|
481192
481316
|
const handleSelect = t1;
|
|
481193
481317
|
let t2;
|
|
481194
481318
|
if ($2[3] !== settingsErrors) {
|
|
481195
|
-
t2 = /* @__PURE__ */
|
|
481319
|
+
t2 = /* @__PURE__ */ jsx_runtime483.jsx(ValidationErrorsList, {
|
|
481196
481320
|
errors: settingsErrors
|
|
481197
481321
|
});
|
|
481198
481322
|
$2[3] = settingsErrors;
|
|
@@ -481202,7 +481326,7 @@ function InvalidSettingsDialog(t0) {
|
|
|
481202
481326
|
}
|
|
481203
481327
|
let t3;
|
|
481204
481328
|
if ($2[5] === Symbol.for("react.memo_cache_sentinel")) {
|
|
481205
|
-
t3 = /* @__PURE__ */
|
|
481329
|
+
t3 = /* @__PURE__ */ jsx_runtime483.jsx(ThemedText, {
|
|
481206
481330
|
dimColor: true,
|
|
481207
481331
|
children: "Los archivos con errores se omiten por completo, no solo los ajustes inv\xE1lidos."
|
|
481208
481332
|
});
|
|
@@ -481225,7 +481349,7 @@ function InvalidSettingsDialog(t0) {
|
|
|
481225
481349
|
}
|
|
481226
481350
|
let t5;
|
|
481227
481351
|
if ($2[7] !== handleSelect) {
|
|
481228
|
-
t5 = /* @__PURE__ */
|
|
481352
|
+
t5 = /* @__PURE__ */ jsx_runtime483.jsx(Select, {
|
|
481229
481353
|
options: t4,
|
|
481230
481354
|
onChange: handleSelect
|
|
481231
481355
|
});
|
|
@@ -481236,7 +481360,7 @@ function InvalidSettingsDialog(t0) {
|
|
|
481236
481360
|
}
|
|
481237
481361
|
let t6;
|
|
481238
481362
|
if ($2[9] !== onExit2 || $2[10] !== t2 || $2[11] !== t5) {
|
|
481239
|
-
t6 = /* @__PURE__ */
|
|
481363
|
+
t6 = /* @__PURE__ */ jsx_runtime483.jsxs(Dialog, {
|
|
481240
481364
|
title: "Error de ajustes",
|
|
481241
481365
|
onCancel: onExit2,
|
|
481242
481366
|
color: "warning",
|
|
@@ -481255,22 +481379,22 @@ function InvalidSettingsDialog(t0) {
|
|
|
481255
481379
|
}
|
|
481256
481380
|
return t6;
|
|
481257
481381
|
}
|
|
481258
|
-
var
|
|
481382
|
+
var jsx_runtime483;
|
|
481259
481383
|
var init_InvalidSettingsDialog = __esm(() => {
|
|
481260
481384
|
init_compiler_runtime();
|
|
481261
481385
|
init_ink2();
|
|
481262
481386
|
init_CustomSelect();
|
|
481263
481387
|
init_Dialog();
|
|
481264
481388
|
init_ValidationErrorsList();
|
|
481265
|
-
|
|
481389
|
+
jsx_runtime483 = __toESM(require_jsx_runtime(), 1);
|
|
481266
481390
|
});
|
|
481267
481391
|
|
|
481268
481392
|
// hooks/useTeleportResume.tsx
|
|
481269
481393
|
function useTeleportResume(source) {
|
|
481270
481394
|
const $2 = c3(8);
|
|
481271
|
-
const [isResuming, setIsResuming] =
|
|
481272
|
-
const [error40, setError] =
|
|
481273
|
-
const [selectedSession, setSelectedSession] =
|
|
481395
|
+
const [isResuming, setIsResuming] = import_react333.useState(false);
|
|
481396
|
+
const [error40, setError] = import_react333.useState(null);
|
|
481397
|
+
const [selectedSession, setSelectedSession] = import_react333.useState(null);
|
|
481274
481398
|
let t0;
|
|
481275
481399
|
if ($2[0] !== source) {
|
|
481276
481400
|
t0 = async (session2) => {
|
|
@@ -481335,14 +481459,14 @@ function useTeleportResume(source) {
|
|
|
481335
481459
|
}
|
|
481336
481460
|
return t2;
|
|
481337
481461
|
}
|
|
481338
|
-
var
|
|
481462
|
+
var import_react333;
|
|
481339
481463
|
var init_useTeleportResume = __esm(() => {
|
|
481340
481464
|
init_compiler_runtime();
|
|
481341
481465
|
init_state();
|
|
481342
481466
|
init_analytics();
|
|
481343
481467
|
init_errors();
|
|
481344
481468
|
init_teleport();
|
|
481345
|
-
|
|
481469
|
+
import_react333 = __toESM(require_react(), 1);
|
|
481346
481470
|
});
|
|
481347
481471
|
|
|
481348
481472
|
// components/ResumeTask.tsx
|
|
@@ -481354,15 +481478,15 @@ function ResumeTask({
|
|
|
481354
481478
|
const {
|
|
481355
481479
|
rows
|
|
481356
481480
|
} = useTerminalSize();
|
|
481357
|
-
const [sessions, setSessions] =
|
|
481358
|
-
const [currentRepo, setCurrentRepo] =
|
|
481359
|
-
const [loading, setLoading] =
|
|
481360
|
-
const [loadErrorType, setLoadErrorType] =
|
|
481361
|
-
const [retrying, setRetrying] =
|
|
481362
|
-
const [hasCompletedTeleportErrorFlow, setHasCompletedTeleportErrorFlow] =
|
|
481363
|
-
const [focusedIndex, setFocusedIndex] =
|
|
481481
|
+
const [sessions, setSessions] = import_react334.useState([]);
|
|
481482
|
+
const [currentRepo, setCurrentRepo] = import_react334.useState(null);
|
|
481483
|
+
const [loading, setLoading] = import_react334.useState(true);
|
|
481484
|
+
const [loadErrorType, setLoadErrorType] = import_react334.useState(null);
|
|
481485
|
+
const [retrying, setRetrying] = import_react334.useState(false);
|
|
481486
|
+
const [hasCompletedTeleportErrorFlow, setHasCompletedTeleportErrorFlow] = import_react334.useState(false);
|
|
481487
|
+
const [focusedIndex, setFocusedIndex] = import_react334.useState(1);
|
|
481364
481488
|
const escKey = useShortcutDisplay("confirm:no", "Confirmation", "Esc");
|
|
481365
|
-
const loadSessions =
|
|
481489
|
+
const loadSessions = import_react334.useCallback(async () => {
|
|
481366
481490
|
try {
|
|
481367
481491
|
setLoading(true);
|
|
481368
481492
|
setLoadErrorType(null);
|
|
@@ -481416,31 +481540,31 @@ function ResumeTask({
|
|
|
481416
481540
|
return;
|
|
481417
481541
|
}
|
|
481418
481542
|
});
|
|
481419
|
-
const handleErrorComplete =
|
|
481543
|
+
const handleErrorComplete = import_react334.useCallback(() => {
|
|
481420
481544
|
setHasCompletedTeleportErrorFlow(true);
|
|
481421
481545
|
loadSessions();
|
|
481422
481546
|
}, [setHasCompletedTeleportErrorFlow, loadSessions]);
|
|
481423
481547
|
if (!hasCompletedTeleportErrorFlow) {
|
|
481424
|
-
return /* @__PURE__ */
|
|
481548
|
+
return /* @__PURE__ */ jsx_runtime484.jsx(TeleportError, {
|
|
481425
481549
|
onComplete: handleErrorComplete
|
|
481426
481550
|
});
|
|
481427
481551
|
}
|
|
481428
481552
|
if (loading) {
|
|
481429
|
-
return /* @__PURE__ */
|
|
481553
|
+
return /* @__PURE__ */ jsx_runtime484.jsxs(ThemedBox_default, {
|
|
481430
481554
|
flexDirection: "column",
|
|
481431
481555
|
padding: 1,
|
|
481432
481556
|
children: [
|
|
481433
|
-
/* @__PURE__ */
|
|
481557
|
+
/* @__PURE__ */ jsx_runtime484.jsxs(ThemedBox_default, {
|
|
481434
481558
|
flexDirection: "row",
|
|
481435
481559
|
children: [
|
|
481436
|
-
/* @__PURE__ */
|
|
481437
|
-
/* @__PURE__ */
|
|
481560
|
+
/* @__PURE__ */ jsx_runtime484.jsx(Spinner, {}),
|
|
481561
|
+
/* @__PURE__ */ jsx_runtime484.jsx(ThemedText, {
|
|
481438
481562
|
bold: true,
|
|
481439
481563
|
children: "Cargando sesiones de Theus\u2026"
|
|
481440
481564
|
})
|
|
481441
481565
|
]
|
|
481442
481566
|
}),
|
|
481443
|
-
/* @__PURE__ */
|
|
481567
|
+
/* @__PURE__ */ jsx_runtime484.jsx(ThemedText, {
|
|
481444
481568
|
dimColor: true,
|
|
481445
481569
|
children: retrying ? "Reintentando\u2026" : "Obteniendo tus sesiones de Theus\u2026"
|
|
481446
481570
|
})
|
|
@@ -481448,27 +481572,27 @@ function ResumeTask({
|
|
|
481448
481572
|
});
|
|
481449
481573
|
}
|
|
481450
481574
|
if (loadErrorType) {
|
|
481451
|
-
return /* @__PURE__ */
|
|
481575
|
+
return /* @__PURE__ */ jsx_runtime484.jsxs(ThemedBox_default, {
|
|
481452
481576
|
flexDirection: "column",
|
|
481453
481577
|
padding: 1,
|
|
481454
481578
|
children: [
|
|
481455
|
-
/* @__PURE__ */
|
|
481579
|
+
/* @__PURE__ */ jsx_runtime484.jsx(ThemedText, {
|
|
481456
481580
|
bold: true,
|
|
481457
481581
|
color: "error",
|
|
481458
481582
|
children: "Error al cargar las sesiones de Theus"
|
|
481459
481583
|
}),
|
|
481460
481584
|
renderErrorSpecificGuidance(loadErrorType),
|
|
481461
|
-
/* @__PURE__ */
|
|
481585
|
+
/* @__PURE__ */ jsx_runtime484.jsxs(ThemedText, {
|
|
481462
481586
|
dimColor: true,
|
|
481463
481587
|
children: [
|
|
481464
481588
|
"Pulsa ",
|
|
481465
|
-
/* @__PURE__ */
|
|
481589
|
+
/* @__PURE__ */ jsx_runtime484.jsx(ThemedText, {
|
|
481466
481590
|
bold: true,
|
|
481467
481591
|
children: "Ctrl+R"
|
|
481468
481592
|
}),
|
|
481469
481593
|
" para reintentar \xB7 Pulsa",
|
|
481470
481594
|
" ",
|
|
481471
|
-
/* @__PURE__ */
|
|
481595
|
+
/* @__PURE__ */ jsx_runtime484.jsx(ThemedText, {
|
|
481472
481596
|
bold: true,
|
|
481473
481597
|
children: escKey
|
|
481474
481598
|
}),
|
|
@@ -481479,15 +481603,15 @@ function ResumeTask({
|
|
|
481479
481603
|
});
|
|
481480
481604
|
}
|
|
481481
481605
|
if (sessions.length === 0) {
|
|
481482
|
-
return /* @__PURE__ */
|
|
481606
|
+
return /* @__PURE__ */ jsx_runtime484.jsxs(ThemedBox_default, {
|
|
481483
481607
|
flexDirection: "column",
|
|
481484
481608
|
padding: 1,
|
|
481485
481609
|
children: [
|
|
481486
|
-
/* @__PURE__ */
|
|
481610
|
+
/* @__PURE__ */ jsx_runtime484.jsxs(ThemedText, {
|
|
481487
481611
|
bold: true,
|
|
481488
481612
|
children: [
|
|
481489
481613
|
"No se encontraron sesiones de Theus",
|
|
481490
|
-
currentRepo && /* @__PURE__ */
|
|
481614
|
+
currentRepo && /* @__PURE__ */ jsx_runtime484.jsxs(ThemedText, {
|
|
481491
481615
|
children: [
|
|
481492
481616
|
" para ",
|
|
481493
481617
|
currentRepo
|
|
@@ -481495,13 +481619,13 @@ function ResumeTask({
|
|
|
481495
481619
|
})
|
|
481496
481620
|
]
|
|
481497
481621
|
}),
|
|
481498
|
-
/* @__PURE__ */
|
|
481622
|
+
/* @__PURE__ */ jsx_runtime484.jsx(ThemedBox_default, {
|
|
481499
481623
|
marginTop: 1,
|
|
481500
|
-
children: /* @__PURE__ */
|
|
481624
|
+
children: /* @__PURE__ */ jsx_runtime484.jsxs(ThemedText, {
|
|
481501
481625
|
dimColor: true,
|
|
481502
481626
|
children: [
|
|
481503
481627
|
"Pulsa ",
|
|
481504
|
-
/* @__PURE__ */
|
|
481628
|
+
/* @__PURE__ */ jsx_runtime484.jsx(ThemedText, {
|
|
481505
481629
|
bold: true,
|
|
481506
481630
|
children: escKey
|
|
481507
481631
|
}),
|
|
@@ -481532,16 +481656,16 @@ function ResumeTask({
|
|
|
481532
481656
|
const maxVisibleOptions = Math.max(1, isEmbedded ? Math.min(sessions.length, 5, rows - 6 - layoutOverhead) : Math.min(sessions.length, rows - 1 - layoutOverhead));
|
|
481533
481657
|
const maxHeight = maxVisibleOptions + layoutOverhead;
|
|
481534
481658
|
const showScrollPosition = sessions.length > maxVisibleOptions;
|
|
481535
|
-
return /* @__PURE__ */
|
|
481659
|
+
return /* @__PURE__ */ jsx_runtime484.jsxs(ThemedBox_default, {
|
|
481536
481660
|
flexDirection: "column",
|
|
481537
481661
|
padding: 1,
|
|
481538
481662
|
height: maxHeight,
|
|
481539
481663
|
children: [
|
|
481540
|
-
/* @__PURE__ */
|
|
481664
|
+
/* @__PURE__ */ jsx_runtime484.jsxs(ThemedText, {
|
|
481541
481665
|
bold: true,
|
|
481542
481666
|
children: [
|
|
481543
481667
|
"Selecciona una sesi\xF3n para reanudar",
|
|
481544
|
-
showScrollPosition && /* @__PURE__ */
|
|
481668
|
+
showScrollPosition && /* @__PURE__ */ jsx_runtime484.jsxs(ThemedText, {
|
|
481545
481669
|
dimColor: true,
|
|
481546
481670
|
children: [
|
|
481547
481671
|
" ",
|
|
@@ -481552,7 +481676,7 @@ function ResumeTask({
|
|
|
481552
481676
|
")"
|
|
481553
481677
|
]
|
|
481554
481678
|
}),
|
|
481555
|
-
currentRepo && /* @__PURE__ */
|
|
481679
|
+
currentRepo && /* @__PURE__ */ jsx_runtime484.jsxs(ThemedText, {
|
|
481556
481680
|
dimColor: true,
|
|
481557
481681
|
children: [
|
|
481558
481682
|
" (",
|
|
@@ -481563,14 +481687,14 @@ function ResumeTask({
|
|
|
481563
481687
|
":"
|
|
481564
481688
|
]
|
|
481565
481689
|
}),
|
|
481566
|
-
/* @__PURE__ */
|
|
481690
|
+
/* @__PURE__ */ jsx_runtime484.jsxs(ThemedBox_default, {
|
|
481567
481691
|
flexDirection: "column",
|
|
481568
481692
|
marginTop: 1,
|
|
481569
481693
|
flexGrow: 1,
|
|
481570
481694
|
children: [
|
|
481571
|
-
/* @__PURE__ */
|
|
481695
|
+
/* @__PURE__ */ jsx_runtime484.jsx(ThemedBox_default, {
|
|
481572
481696
|
marginLeft: 2,
|
|
481573
|
-
children: /* @__PURE__ */
|
|
481697
|
+
children: /* @__PURE__ */ jsx_runtime484.jsxs(ThemedText, {
|
|
481574
481698
|
bold: true,
|
|
481575
481699
|
children: [
|
|
481576
481700
|
UPDATED_STRING.padEnd(maxTimeStringLength, " "),
|
|
@@ -481579,7 +481703,7 @@ function ResumeTask({
|
|
|
481579
481703
|
]
|
|
481580
481704
|
})
|
|
481581
481705
|
}),
|
|
481582
|
-
/* @__PURE__ */
|
|
481706
|
+
/* @__PURE__ */ jsx_runtime484.jsx(Select, {
|
|
481583
481707
|
visibleOptionCount: maxVisibleOptions,
|
|
481584
481708
|
options: options2,
|
|
481585
481709
|
onChange: (value) => {
|
|
@@ -481597,21 +481721,21 @@ function ResumeTask({
|
|
|
481597
481721
|
})
|
|
481598
481722
|
]
|
|
481599
481723
|
}),
|
|
481600
|
-
/* @__PURE__ */
|
|
481724
|
+
/* @__PURE__ */ jsx_runtime484.jsx(ThemedBox_default, {
|
|
481601
481725
|
flexDirection: "row",
|
|
481602
|
-
children: /* @__PURE__ */
|
|
481726
|
+
children: /* @__PURE__ */ jsx_runtime484.jsx(ThemedText, {
|
|
481603
481727
|
dimColor: true,
|
|
481604
|
-
children: /* @__PURE__ */
|
|
481728
|
+
children: /* @__PURE__ */ jsx_runtime484.jsxs(Byline, {
|
|
481605
481729
|
children: [
|
|
481606
|
-
/* @__PURE__ */
|
|
481730
|
+
/* @__PURE__ */ jsx_runtime484.jsx(KeyboardShortcutHint, {
|
|
481607
481731
|
shortcut: "\u2191/\u2193",
|
|
481608
481732
|
action: "seleccionar"
|
|
481609
481733
|
}),
|
|
481610
|
-
/* @__PURE__ */
|
|
481734
|
+
/* @__PURE__ */ jsx_runtime484.jsx(KeyboardShortcutHint, {
|
|
481611
481735
|
shortcut: "Enter",
|
|
481612
481736
|
action: "confirmar"
|
|
481613
481737
|
}),
|
|
481614
|
-
/* @__PURE__ */
|
|
481738
|
+
/* @__PURE__ */ jsx_runtime484.jsx(ConfigurableShortcutHint, {
|
|
481615
481739
|
action: "confirm:no",
|
|
481616
481740
|
context: "Confirmation",
|
|
481617
481741
|
fallback: "Esc",
|
|
@@ -481640,28 +481764,28 @@ function determineErrorType(errorMessage3) {
|
|
|
481640
481764
|
function renderErrorSpecificGuidance(errorType) {
|
|
481641
481765
|
switch (errorType) {
|
|
481642
481766
|
case "network":
|
|
481643
|
-
return /* @__PURE__ */
|
|
481767
|
+
return /* @__PURE__ */ jsx_runtime484.jsx(ThemedBox_default, {
|
|
481644
481768
|
marginY: 1,
|
|
481645
481769
|
flexDirection: "column",
|
|
481646
|
-
children: /* @__PURE__ */
|
|
481770
|
+
children: /* @__PURE__ */ jsx_runtime484.jsx(ThemedText, {
|
|
481647
481771
|
dimColor: true,
|
|
481648
481772
|
children: "Revisa tu conexi\xF3n a internet"
|
|
481649
481773
|
})
|
|
481650
481774
|
});
|
|
481651
481775
|
case "auth":
|
|
481652
|
-
return /* @__PURE__ */
|
|
481776
|
+
return /* @__PURE__ */ jsx_runtime484.jsxs(ThemedBox_default, {
|
|
481653
481777
|
marginY: 1,
|
|
481654
481778
|
flexDirection: "column",
|
|
481655
481779
|
children: [
|
|
481656
|
-
/* @__PURE__ */
|
|
481780
|
+
/* @__PURE__ */ jsx_runtime484.jsx(ThemedText, {
|
|
481657
481781
|
dimColor: true,
|
|
481658
481782
|
children: "Teleport requiere una cuenta Theus"
|
|
481659
481783
|
}),
|
|
481660
|
-
/* @__PURE__ */
|
|
481784
|
+
/* @__PURE__ */ jsx_runtime484.jsxs(ThemedText, {
|
|
481661
481785
|
dimColor: true,
|
|
481662
481786
|
children: [
|
|
481663
481787
|
"Ejecuta ",
|
|
481664
|
-
/* @__PURE__ */
|
|
481788
|
+
/* @__PURE__ */ jsx_runtime484.jsx(ThemedText, {
|
|
481665
481789
|
bold: true,
|
|
481666
481790
|
children: "/login"
|
|
481667
481791
|
}),
|
|
@@ -481671,26 +481795,26 @@ function renderErrorSpecificGuidance(errorType) {
|
|
|
481671
481795
|
]
|
|
481672
481796
|
});
|
|
481673
481797
|
case "api":
|
|
481674
|
-
return /* @__PURE__ */
|
|
481798
|
+
return /* @__PURE__ */ jsx_runtime484.jsx(ThemedBox_default, {
|
|
481675
481799
|
marginY: 1,
|
|
481676
481800
|
flexDirection: "column",
|
|
481677
|
-
children: /* @__PURE__ */
|
|
481801
|
+
children: /* @__PURE__ */ jsx_runtime484.jsx(ThemedText, {
|
|
481678
481802
|
dimColor: true,
|
|
481679
481803
|
children: "Lo sentimos, Theus encontr\xF3 un error"
|
|
481680
481804
|
})
|
|
481681
481805
|
});
|
|
481682
481806
|
case "other":
|
|
481683
|
-
return /* @__PURE__ */
|
|
481807
|
+
return /* @__PURE__ */ jsx_runtime484.jsx(ThemedBox_default, {
|
|
481684
481808
|
marginY: 1,
|
|
481685
481809
|
flexDirection: "row",
|
|
481686
|
-
children: /* @__PURE__ */
|
|
481810
|
+
children: /* @__PURE__ */ jsx_runtime484.jsx(ThemedText, {
|
|
481687
481811
|
dimColor: true,
|
|
481688
481812
|
children: "Lo sentimos, Theus encontr\xF3 un error"
|
|
481689
481813
|
})
|
|
481690
481814
|
});
|
|
481691
481815
|
}
|
|
481692
481816
|
}
|
|
481693
|
-
var
|
|
481817
|
+
var import_react334, jsx_runtime484, UPDATED_STRING = "Actualizado", SPACE_BETWEEN_TABLE_COLUMNS = " ";
|
|
481694
481818
|
var init_ResumeTask = __esm(() => {
|
|
481695
481819
|
init_useTerminalSize();
|
|
481696
481820
|
init_api3();
|
|
@@ -481706,8 +481830,8 @@ var init_ResumeTask = __esm(() => {
|
|
|
481706
481830
|
init_KeyboardShortcutHint();
|
|
481707
481831
|
init_Spinner2();
|
|
481708
481832
|
init_TeleportError();
|
|
481709
|
-
|
|
481710
|
-
|
|
481833
|
+
import_react334 = __toESM(require_react(), 1);
|
|
481834
|
+
jsx_runtime484 = __toESM(require_jsx_runtime(), 1);
|
|
481711
481835
|
});
|
|
481712
481836
|
|
|
481713
481837
|
// components/TeleportResumeWrapper.tsx
|
|
@@ -481747,7 +481871,7 @@ function TeleportResumeWrapper(t0) {
|
|
|
481747
481871
|
t2 = $2[1];
|
|
481748
481872
|
t3 = $2[2];
|
|
481749
481873
|
}
|
|
481750
|
-
|
|
481874
|
+
import_react335.useEffect(t2, t3);
|
|
481751
481875
|
let t4;
|
|
481752
481876
|
if ($2[3] !== error40 || $2[4] !== onComplete || $2[5] !== onError || $2[6] !== resumeSession) {
|
|
481753
481877
|
t4 = async (session2) => {
|
|
@@ -481799,11 +481923,11 @@ function TeleportResumeWrapper(t0) {
|
|
|
481799
481923
|
if (isResuming && selectedSession) {
|
|
481800
481924
|
let t82;
|
|
481801
481925
|
if ($2[12] === Symbol.for("react.memo_cache_sentinel")) {
|
|
481802
|
-
t82 = /* @__PURE__ */
|
|
481926
|
+
t82 = /* @__PURE__ */ jsx_runtime485.jsxs(ThemedBox_default, {
|
|
481803
481927
|
flexDirection: "row",
|
|
481804
481928
|
children: [
|
|
481805
|
-
/* @__PURE__ */
|
|
481806
|
-
/* @__PURE__ */
|
|
481929
|
+
/* @__PURE__ */ jsx_runtime485.jsx(Spinner, {}),
|
|
481930
|
+
/* @__PURE__ */ jsx_runtime485.jsx(ThemedText, {
|
|
481807
481931
|
bold: true,
|
|
481808
481932
|
children: "Resuming session\u2026"
|
|
481809
481933
|
})
|
|
@@ -481815,12 +481939,12 @@ function TeleportResumeWrapper(t0) {
|
|
|
481815
481939
|
}
|
|
481816
481940
|
let t9;
|
|
481817
481941
|
if ($2[13] !== selectedSession.title) {
|
|
481818
|
-
t9 = /* @__PURE__ */
|
|
481942
|
+
t9 = /* @__PURE__ */ jsx_runtime485.jsxs(ThemedBox_default, {
|
|
481819
481943
|
flexDirection: "column",
|
|
481820
481944
|
padding: 1,
|
|
481821
481945
|
children: [
|
|
481822
481946
|
t82,
|
|
481823
|
-
/* @__PURE__ */
|
|
481947
|
+
/* @__PURE__ */ jsx_runtime485.jsxs(ThemedText, {
|
|
481824
481948
|
dimColor: true,
|
|
481825
481949
|
children: [
|
|
481826
481950
|
'Cargando "',
|
|
@@ -481840,7 +481964,7 @@ function TeleportResumeWrapper(t0) {
|
|
|
481840
481964
|
if (error40 && !onError) {
|
|
481841
481965
|
let t82;
|
|
481842
481966
|
if ($2[15] === Symbol.for("react.memo_cache_sentinel")) {
|
|
481843
|
-
t82 = /* @__PURE__ */
|
|
481967
|
+
t82 = /* @__PURE__ */ jsx_runtime485.jsx(ThemedText, {
|
|
481844
481968
|
bold: true,
|
|
481845
481969
|
color: "error",
|
|
481846
481970
|
children: "No se pudo reanudar la sesi\xF3n"
|
|
@@ -481851,7 +481975,7 @@ function TeleportResumeWrapper(t0) {
|
|
|
481851
481975
|
}
|
|
481852
481976
|
let t9;
|
|
481853
481977
|
if ($2[16] !== error40.message) {
|
|
481854
|
-
t9 = /* @__PURE__ */
|
|
481978
|
+
t9 = /* @__PURE__ */ jsx_runtime485.jsx(ThemedText, {
|
|
481855
481979
|
dimColor: true,
|
|
481856
481980
|
children: error40.message
|
|
481857
481981
|
});
|
|
@@ -481862,13 +481986,13 @@ function TeleportResumeWrapper(t0) {
|
|
|
481862
481986
|
}
|
|
481863
481987
|
let t10;
|
|
481864
481988
|
if ($2[18] === Symbol.for("react.memo_cache_sentinel")) {
|
|
481865
|
-
t10 = /* @__PURE__ */
|
|
481989
|
+
t10 = /* @__PURE__ */ jsx_runtime485.jsx(ThemedBox_default, {
|
|
481866
481990
|
marginTop: 1,
|
|
481867
|
-
children: /* @__PURE__ */
|
|
481991
|
+
children: /* @__PURE__ */ jsx_runtime485.jsxs(ThemedText, {
|
|
481868
481992
|
dimColor: true,
|
|
481869
481993
|
children: [
|
|
481870
481994
|
"Pulsa ",
|
|
481871
|
-
/* @__PURE__ */
|
|
481995
|
+
/* @__PURE__ */ jsx_runtime485.jsx(ThemedText, {
|
|
481872
481996
|
bold: true,
|
|
481873
481997
|
children: "Esc"
|
|
481874
481998
|
}),
|
|
@@ -481882,7 +482006,7 @@ function TeleportResumeWrapper(t0) {
|
|
|
481882
482006
|
}
|
|
481883
482007
|
let t11;
|
|
481884
482008
|
if ($2[19] !== t9) {
|
|
481885
|
-
t11 = /* @__PURE__ */
|
|
482009
|
+
t11 = /* @__PURE__ */ jsx_runtime485.jsxs(ThemedBox_default, {
|
|
481886
482010
|
flexDirection: "column",
|
|
481887
482011
|
padding: 1,
|
|
481888
482012
|
children: [
|
|
@@ -481900,7 +482024,7 @@ function TeleportResumeWrapper(t0) {
|
|
|
481900
482024
|
}
|
|
481901
482025
|
let t8;
|
|
481902
482026
|
if ($2[21] !== handleCancel || $2[22] !== handleSelect || $2[23] !== isEmbedded) {
|
|
481903
|
-
t8 = /* @__PURE__ */
|
|
482027
|
+
t8 = /* @__PURE__ */ jsx_runtime485.jsx(ResumeTask, {
|
|
481904
482028
|
onSelect: handleSelect,
|
|
481905
482029
|
onCancel: handleCancel,
|
|
481906
482030
|
isEmbedded
|
|
@@ -481914,7 +482038,7 @@ function TeleportResumeWrapper(t0) {
|
|
|
481914
482038
|
}
|
|
481915
482039
|
return t8;
|
|
481916
482040
|
}
|
|
481917
|
-
var
|
|
482041
|
+
var import_react335, jsx_runtime485;
|
|
481918
482042
|
var init_TeleportResumeWrapper = __esm(() => {
|
|
481919
482043
|
init_compiler_runtime();
|
|
481920
482044
|
init_analytics();
|
|
@@ -481923,8 +482047,8 @@ var init_TeleportResumeWrapper = __esm(() => {
|
|
|
481923
482047
|
init_useKeybinding();
|
|
481924
482048
|
init_ResumeTask();
|
|
481925
482049
|
init_Spinner2();
|
|
481926
|
-
|
|
481927
|
-
|
|
482050
|
+
import_react335 = __toESM(require_react(), 1);
|
|
482051
|
+
jsx_runtime485 = __toESM(require_jsx_runtime(), 1);
|
|
481928
482052
|
});
|
|
481929
482053
|
|
|
481930
482054
|
// components/TeleportRepoMismatchDialog.tsx
|
|
@@ -481940,9 +482064,9 @@ function TeleportRepoMismatchDialog(t0) {
|
|
|
481940
482064
|
onSelectPath,
|
|
481941
482065
|
onCancel
|
|
481942
482066
|
} = t0;
|
|
481943
|
-
const [availablePaths, setAvailablePaths] =
|
|
481944
|
-
const [errorMessage3, setErrorMessage] =
|
|
481945
|
-
const [validating, setValidating] =
|
|
482067
|
+
const [availablePaths, setAvailablePaths] = import_react336.useState(initialPaths);
|
|
482068
|
+
const [errorMessage3, setErrorMessage] = import_react336.useState(null);
|
|
482069
|
+
const [validating, setValidating] = import_react336.useState(false);
|
|
481946
482070
|
let t1;
|
|
481947
482071
|
if ($2[0] !== availablePaths || $2[1] !== onCancel || $2[2] !== onSelectPath || $2[3] !== targetRepo) {
|
|
481948
482072
|
t1 = async (value) => {
|
|
@@ -481993,20 +482117,20 @@ function TeleportRepoMismatchDialog(t0) {
|
|
|
481993
482117
|
const options2 = t2;
|
|
481994
482118
|
let t3;
|
|
481995
482119
|
if ($2[8] !== availablePaths.length || $2[9] !== errorMessage3 || $2[10] !== handleChange4 || $2[11] !== options2 || $2[12] !== targetRepo || $2[13] !== validating) {
|
|
481996
|
-
t3 = availablePaths.length > 0 ? /* @__PURE__ */
|
|
482120
|
+
t3 = availablePaths.length > 0 ? /* @__PURE__ */ jsx_runtime486.jsxs(jsx_runtime486.Fragment, {
|
|
481997
482121
|
children: [
|
|
481998
|
-
/* @__PURE__ */
|
|
482122
|
+
/* @__PURE__ */ jsx_runtime486.jsxs(ThemedBox_default, {
|
|
481999
482123
|
flexDirection: "column",
|
|
482000
482124
|
gap: 1,
|
|
482001
482125
|
children: [
|
|
482002
|
-
errorMessage3 && /* @__PURE__ */
|
|
482126
|
+
errorMessage3 && /* @__PURE__ */ jsx_runtime486.jsx(ThemedText, {
|
|
482003
482127
|
color: "error",
|
|
482004
482128
|
children: errorMessage3
|
|
482005
482129
|
}),
|
|
482006
|
-
/* @__PURE__ */
|
|
482130
|
+
/* @__PURE__ */ jsx_runtime486.jsxs(ThemedText, {
|
|
482007
482131
|
children: [
|
|
482008
482132
|
"Open Theus in ",
|
|
482009
|
-
/* @__PURE__ */
|
|
482133
|
+
/* @__PURE__ */ jsx_runtime486.jsx(ThemedText, {
|
|
482010
482134
|
bold: true,
|
|
482011
482135
|
children: targetRepo
|
|
482012
482136
|
}),
|
|
@@ -482015,27 +482139,27 @@ function TeleportRepoMismatchDialog(t0) {
|
|
|
482015
482139
|
})
|
|
482016
482140
|
]
|
|
482017
482141
|
}),
|
|
482018
|
-
validating ? /* @__PURE__ */
|
|
482142
|
+
validating ? /* @__PURE__ */ jsx_runtime486.jsxs(ThemedBox_default, {
|
|
482019
482143
|
children: [
|
|
482020
|
-
/* @__PURE__ */
|
|
482021
|
-
/* @__PURE__ */
|
|
482144
|
+
/* @__PURE__ */ jsx_runtime486.jsx(Spinner, {}),
|
|
482145
|
+
/* @__PURE__ */ jsx_runtime486.jsx(ThemedText, {
|
|
482022
482146
|
children: " Validating repository\u2026"
|
|
482023
482147
|
})
|
|
482024
482148
|
]
|
|
482025
|
-
}) : /* @__PURE__ */
|
|
482149
|
+
}) : /* @__PURE__ */ jsx_runtime486.jsx(Select, {
|
|
482026
482150
|
options: options2,
|
|
482027
482151
|
onChange: (value_0) => void handleChange4(value_0)
|
|
482028
482152
|
})
|
|
482029
482153
|
]
|
|
482030
|
-
}) : /* @__PURE__ */
|
|
482154
|
+
}) : /* @__PURE__ */ jsx_runtime486.jsxs(ThemedBox_default, {
|
|
482031
482155
|
flexDirection: "column",
|
|
482032
482156
|
gap: 1,
|
|
482033
482157
|
children: [
|
|
482034
|
-
errorMessage3 && /* @__PURE__ */
|
|
482158
|
+
errorMessage3 && /* @__PURE__ */ jsx_runtime486.jsx(ThemedText, {
|
|
482035
482159
|
color: "error",
|
|
482036
482160
|
children: errorMessage3
|
|
482037
482161
|
}),
|
|
482038
|
-
/* @__PURE__ */
|
|
482162
|
+
/* @__PURE__ */ jsx_runtime486.jsxs(ThemedText, {
|
|
482039
482163
|
dimColor: true,
|
|
482040
482164
|
children: [
|
|
482041
482165
|
"Run theus --teleport from a checkout of ",
|
|
@@ -482056,7 +482180,7 @@ function TeleportRepoMismatchDialog(t0) {
|
|
|
482056
482180
|
}
|
|
482057
482181
|
let t4;
|
|
482058
482182
|
if ($2[15] !== onCancel || $2[16] !== t3) {
|
|
482059
|
-
t4 = /* @__PURE__ */
|
|
482183
|
+
t4 = /* @__PURE__ */ jsx_runtime486.jsx(Dialog, {
|
|
482060
482184
|
title: "Teleport to Repo",
|
|
482061
482185
|
onCancel,
|
|
482062
482186
|
color: "background",
|
|
@@ -482072,10 +482196,10 @@ function TeleportRepoMismatchDialog(t0) {
|
|
|
482072
482196
|
}
|
|
482073
482197
|
function _temp294(path21) {
|
|
482074
482198
|
return {
|
|
482075
|
-
label: /* @__PURE__ */
|
|
482199
|
+
label: /* @__PURE__ */ jsx_runtime486.jsxs(ThemedText, {
|
|
482076
482200
|
children: [
|
|
482077
482201
|
"Use ",
|
|
482078
|
-
/* @__PURE__ */
|
|
482202
|
+
/* @__PURE__ */ jsx_runtime486.jsx(ThemedText, {
|
|
482079
482203
|
bold: true,
|
|
482080
482204
|
children: getDisplayPath(path21)
|
|
482081
482205
|
})
|
|
@@ -482084,7 +482208,7 @@ function _temp294(path21) {
|
|
|
482084
482208
|
value: path21
|
|
482085
482209
|
};
|
|
482086
482210
|
}
|
|
482087
|
-
var
|
|
482211
|
+
var import_react336, jsx_runtime486;
|
|
482088
482212
|
var init_TeleportRepoMismatchDialog = __esm(() => {
|
|
482089
482213
|
init_compiler_runtime();
|
|
482090
482214
|
init_ink2();
|
|
@@ -482093,8 +482217,8 @@ var init_TeleportRepoMismatchDialog = __esm(() => {
|
|
|
482093
482217
|
init_CustomSelect();
|
|
482094
482218
|
init_Dialog();
|
|
482095
482219
|
init_Spinner2();
|
|
482096
|
-
|
|
482097
|
-
|
|
482220
|
+
import_react336 = __toESM(require_react(), 1);
|
|
482221
|
+
jsx_runtime486 = __toESM(require_jsx_runtime(), 1);
|
|
482098
482222
|
});
|
|
482099
482223
|
|
|
482100
482224
|
// screens/ResumeConversation.tsx
|
|
@@ -482139,15 +482263,15 @@ function ResumeConversation({
|
|
|
482139
482263
|
} = useTerminalSize();
|
|
482140
482264
|
const agentDefinitions = useAppState((s) => s.agentDefinitions);
|
|
482141
482265
|
const setAppState = useSetAppState();
|
|
482142
|
-
const [logs2, setLogs] =
|
|
482143
|
-
const [loading, setLoading] =
|
|
482144
|
-
const [resuming, setResuming] =
|
|
482145
|
-
const [showAllProjects, setShowAllProjects] =
|
|
482146
|
-
const [resumeData, setResumeData] =
|
|
482147
|
-
const [crossProjectCommand, setCrossProjectCommand] =
|
|
482148
|
-
const sessionLogResultRef =
|
|
482149
|
-
const logCountRef =
|
|
482150
|
-
const filteredLogs =
|
|
482266
|
+
const [logs2, setLogs] = import_react337.default.useState([]);
|
|
482267
|
+
const [loading, setLoading] = import_react337.default.useState(true);
|
|
482268
|
+
const [resuming, setResuming] = import_react337.default.useState(false);
|
|
482269
|
+
const [showAllProjects, setShowAllProjects] = import_react337.default.useState(false);
|
|
482270
|
+
const [resumeData, setResumeData] = import_react337.default.useState(null);
|
|
482271
|
+
const [crossProjectCommand, setCrossProjectCommand] = import_react337.default.useState(null);
|
|
482272
|
+
const sessionLogResultRef = import_react337.default.useRef(null);
|
|
482273
|
+
const logCountRef = import_react337.default.useRef(0);
|
|
482274
|
+
const filteredLogs = import_react337.default.useMemo(() => {
|
|
482151
482275
|
let result = logs2.filter((l) => !l.isSidechain);
|
|
482152
482276
|
if (filterByPr !== undefined) {
|
|
482153
482277
|
if (filterByPr === true) {
|
|
@@ -482164,7 +482288,7 @@ function ResumeConversation({
|
|
|
482164
482288
|
return result;
|
|
482165
482289
|
}, [logs2, filterByPr]);
|
|
482166
482290
|
const isResumeWithRenameEnabled = isCustomTitleEnabled();
|
|
482167
|
-
|
|
482291
|
+
import_react337.default.useEffect(() => {
|
|
482168
482292
|
loadSameRepoMessageLogsProgressive(worktreePaths).then((result_0) => {
|
|
482169
482293
|
sessionLogResultRef.current = result_0;
|
|
482170
482294
|
logCountRef.current = result_0.logs.length;
|
|
@@ -482175,7 +482299,7 @@ function ResumeConversation({
|
|
|
482175
482299
|
setLoading(false);
|
|
482176
482300
|
});
|
|
482177
482301
|
}, [worktreePaths]);
|
|
482178
|
-
const loadMoreLogs =
|
|
482302
|
+
const loadMoreLogs = import_react337.default.useCallback((count4) => {
|
|
482179
482303
|
const ref = sessionLogResultRef.current;
|
|
482180
482304
|
if (!ref || ref.nextIndex >= ref.allStatLogs.length)
|
|
482181
482305
|
return;
|
|
@@ -482193,7 +482317,7 @@ function ResumeConversation({
|
|
|
482193
482317
|
}
|
|
482194
482318
|
});
|
|
482195
482319
|
}, []);
|
|
482196
|
-
const loadLogs =
|
|
482320
|
+
const loadLogs = import_react337.default.useCallback((allProjects) => {
|
|
482197
482321
|
setLoading(true);
|
|
482198
482322
|
const promise3 = allProjects ? loadAllProjectsMessageLogsProgressive() : loadSameRepoMessageLogsProgressive(worktreePaths);
|
|
482199
482323
|
promise3.then((result_2) => {
|
|
@@ -482206,7 +482330,7 @@ function ResumeConversation({
|
|
|
482206
482330
|
setLoading(false);
|
|
482207
482331
|
});
|
|
482208
482332
|
}, [worktreePaths]);
|
|
482209
|
-
const handleToggleAllProjects =
|
|
482333
|
+
const handleToggleAllProjects = import_react337.default.useCallback(() => {
|
|
482210
482334
|
const newValue = !showAllProjects;
|
|
482211
482335
|
setShowAllProjects(newValue);
|
|
482212
482336
|
loadLogs(newValue);
|
|
@@ -482292,12 +482416,12 @@ function ResumeConversation({
|
|
|
482292
482416
|
}
|
|
482293
482417
|
}
|
|
482294
482418
|
if (crossProjectCommand) {
|
|
482295
|
-
return /* @__PURE__ */
|
|
482419
|
+
return /* @__PURE__ */ jsx_runtime487.jsx(CrossProjectMessage, {
|
|
482296
482420
|
command: crossProjectCommand
|
|
482297
482421
|
});
|
|
482298
482422
|
}
|
|
482299
482423
|
if (resumeData) {
|
|
482300
|
-
return /* @__PURE__ */
|
|
482424
|
+
return /* @__PURE__ */ jsx_runtime487.jsx(REPL, {
|
|
482301
482425
|
debug: debug3,
|
|
482302
482426
|
commands,
|
|
482303
482427
|
initialTools,
|
|
@@ -482320,29 +482444,29 @@ function ResumeConversation({
|
|
|
482320
482444
|
});
|
|
482321
482445
|
}
|
|
482322
482446
|
if (loading) {
|
|
482323
|
-
return /* @__PURE__ */
|
|
482447
|
+
return /* @__PURE__ */ jsx_runtime487.jsxs(ThemedBox_default, {
|
|
482324
482448
|
children: [
|
|
482325
|
-
/* @__PURE__ */
|
|
482326
|
-
/* @__PURE__ */
|
|
482449
|
+
/* @__PURE__ */ jsx_runtime487.jsx(Spinner, {}),
|
|
482450
|
+
/* @__PURE__ */ jsx_runtime487.jsx(ThemedText, {
|
|
482327
482451
|
children: " Loading conversations\u2026"
|
|
482328
482452
|
})
|
|
482329
482453
|
]
|
|
482330
482454
|
});
|
|
482331
482455
|
}
|
|
482332
482456
|
if (resuming) {
|
|
482333
|
-
return /* @__PURE__ */
|
|
482457
|
+
return /* @__PURE__ */ jsx_runtime487.jsxs(ThemedBox_default, {
|
|
482334
482458
|
children: [
|
|
482335
|
-
/* @__PURE__ */
|
|
482336
|
-
/* @__PURE__ */
|
|
482459
|
+
/* @__PURE__ */ jsx_runtime487.jsx(Spinner, {}),
|
|
482460
|
+
/* @__PURE__ */ jsx_runtime487.jsx(ThemedText, {
|
|
482337
482461
|
children: " Resuming conversation\u2026"
|
|
482338
482462
|
})
|
|
482339
482463
|
]
|
|
482340
482464
|
});
|
|
482341
482465
|
}
|
|
482342
482466
|
if (filteredLogs.length === 0) {
|
|
482343
|
-
return /* @__PURE__ */
|
|
482467
|
+
return /* @__PURE__ */ jsx_runtime487.jsx(NoConversationsMessage, {});
|
|
482344
482468
|
}
|
|
482345
|
-
return /* @__PURE__ */
|
|
482469
|
+
return /* @__PURE__ */ jsx_runtime487.jsx(LogSelector, {
|
|
482346
482470
|
logs: filteredLogs,
|
|
482347
482471
|
maxHeight: rows,
|
|
482348
482472
|
onCancel,
|
|
@@ -482369,13 +482493,13 @@ function NoConversationsMessage() {
|
|
|
482369
482493
|
useKeybinding("app:interrupt", _temp295, t0);
|
|
482370
482494
|
let t1;
|
|
482371
482495
|
if ($2[1] === Symbol.for("react.memo_cache_sentinel")) {
|
|
482372
|
-
t1 = /* @__PURE__ */
|
|
482496
|
+
t1 = /* @__PURE__ */ jsx_runtime487.jsxs(ThemedBox_default, {
|
|
482373
482497
|
flexDirection: "column",
|
|
482374
482498
|
children: [
|
|
482375
|
-
/* @__PURE__ */
|
|
482499
|
+
/* @__PURE__ */ jsx_runtime487.jsx(ThemedText, {
|
|
482376
482500
|
children: "No se encontraron conversaciones para reanudar."
|
|
482377
482501
|
}),
|
|
482378
|
-
/* @__PURE__ */
|
|
482502
|
+
/* @__PURE__ */ jsx_runtime487.jsx(ThemedText, {
|
|
482379
482503
|
dimColor: true,
|
|
482380
482504
|
children: "Pulsa Ctrl+C para salir e iniciar una conversaci\xF3n nueva."
|
|
482381
482505
|
})
|
|
@@ -482402,10 +482526,10 @@ function CrossProjectMessage(t0) {
|
|
|
482402
482526
|
} else {
|
|
482403
482527
|
t1 = $2[0];
|
|
482404
482528
|
}
|
|
482405
|
-
|
|
482529
|
+
import_react337.default.useEffect(_temp356, t1);
|
|
482406
482530
|
let t2;
|
|
482407
482531
|
if ($2[1] === Symbol.for("react.memo_cache_sentinel")) {
|
|
482408
|
-
t2 = /* @__PURE__ */
|
|
482532
|
+
t2 = /* @__PURE__ */ jsx_runtime487.jsx(ThemedText, {
|
|
482409
482533
|
children: "Esta conversaci\xF3n es de un directorio diferente."
|
|
482410
482534
|
});
|
|
482411
482535
|
$2[1] = t2;
|
|
@@ -482414,7 +482538,7 @@ function CrossProjectMessage(t0) {
|
|
|
482414
482538
|
}
|
|
482415
482539
|
let t3;
|
|
482416
482540
|
if ($2[2] === Symbol.for("react.memo_cache_sentinel")) {
|
|
482417
|
-
t3 = /* @__PURE__ */
|
|
482541
|
+
t3 = /* @__PURE__ */ jsx_runtime487.jsx(ThemedText, {
|
|
482418
482542
|
children: "Para reanudarla, ejecuta:"
|
|
482419
482543
|
});
|
|
482420
482544
|
$2[2] = t3;
|
|
@@ -482423,11 +482547,11 @@ function CrossProjectMessage(t0) {
|
|
|
482423
482547
|
}
|
|
482424
482548
|
let t4;
|
|
482425
482549
|
if ($2[3] !== command7) {
|
|
482426
|
-
t4 = /* @__PURE__ */
|
|
482550
|
+
t4 = /* @__PURE__ */ jsx_runtime487.jsxs(ThemedBox_default, {
|
|
482427
482551
|
flexDirection: "column",
|
|
482428
482552
|
children: [
|
|
482429
482553
|
t3,
|
|
482430
|
-
/* @__PURE__ */
|
|
482554
|
+
/* @__PURE__ */ jsx_runtime487.jsxs(ThemedText, {
|
|
482431
482555
|
children: [
|
|
482432
482556
|
" ",
|
|
482433
482557
|
command7
|
|
@@ -482442,7 +482566,7 @@ function CrossProjectMessage(t0) {
|
|
|
482442
482566
|
}
|
|
482443
482567
|
let t5;
|
|
482444
482568
|
if ($2[5] === Symbol.for("react.memo_cache_sentinel")) {
|
|
482445
|
-
t5 = /* @__PURE__ */
|
|
482569
|
+
t5 = /* @__PURE__ */ jsx_runtime487.jsx(ThemedText, {
|
|
482446
482570
|
dimColor: true,
|
|
482447
482571
|
children: "(Command copied to clipboard)"
|
|
482448
482572
|
});
|
|
@@ -482452,7 +482576,7 @@ function CrossProjectMessage(t0) {
|
|
|
482452
482576
|
}
|
|
482453
482577
|
let t6;
|
|
482454
482578
|
if ($2[6] !== t4) {
|
|
482455
|
-
t6 = /* @__PURE__ */
|
|
482579
|
+
t6 = /* @__PURE__ */ jsx_runtime487.jsxs(ThemedBox_default, {
|
|
482456
482580
|
flexDirection: "column",
|
|
482457
482581
|
gap: 1,
|
|
482458
482582
|
children: [
|
|
@@ -482475,7 +482599,7 @@ function _temp356() {
|
|
|
482475
482599
|
function _temp293() {
|
|
482476
482600
|
process.exit(0);
|
|
482477
482601
|
}
|
|
482478
|
-
var
|
|
482602
|
+
var import_react337, jsx_runtime487;
|
|
482479
482603
|
var init_ResumeConversation = __esm(() => {
|
|
482480
482604
|
init_compiler_runtime();
|
|
482481
482605
|
init_useTerminalSize();
|
|
@@ -482499,8 +482623,8 @@ var init_ResumeConversation = __esm(() => {
|
|
|
482499
482623
|
init_sessionRestore();
|
|
482500
482624
|
init_sessionStorage();
|
|
482501
482625
|
init_REPL();
|
|
482502
|
-
|
|
482503
|
-
|
|
482626
|
+
import_react337 = __toESM(require_react(), 1);
|
|
482627
|
+
jsx_runtime487 = __toESM(require_jsx_runtime(), 1);
|
|
482504
482628
|
});
|
|
482505
482629
|
|
|
482506
482630
|
// dialogLaunchers.tsx
|
|
@@ -482508,7 +482632,7 @@ async function launchInvalidSettingsDialog(root2, props) {
|
|
|
482508
482632
|
const {
|
|
482509
482633
|
InvalidSettingsDialog: InvalidSettingsDialog2
|
|
482510
482634
|
} = await Promise.resolve().then(() => (init_InvalidSettingsDialog(), exports_InvalidSettingsDialog));
|
|
482511
|
-
return showSetupDialog(root2, (done) => /* @__PURE__ */
|
|
482635
|
+
return showSetupDialog(root2, (done) => /* @__PURE__ */ jsx_runtime488.jsx(InvalidSettingsDialog2, {
|
|
482512
482636
|
settingsErrors: props.settingsErrors,
|
|
482513
482637
|
onContinue: done,
|
|
482514
482638
|
onExit: props.onExit
|
|
@@ -482518,7 +482642,7 @@ async function launchAssistantSessionChooser(root2, props) {
|
|
|
482518
482642
|
const {
|
|
482519
482643
|
AssistantSessionChooser: AssistantSessionChooser2
|
|
482520
482644
|
} = await Promise.resolve().then(() => (init_AssistantSessionChooser(), exports_AssistantSessionChooser));
|
|
482521
|
-
return showSetupDialog(root2, (done) => /* @__PURE__ */
|
|
482645
|
+
return showSetupDialog(root2, (done) => /* @__PURE__ */ jsx_runtime488.jsx(AssistantSessionChooser2, {
|
|
482522
482646
|
sessions: props.sessions,
|
|
482523
482647
|
onSelect: (id) => done(id),
|
|
482524
482648
|
onCancel: () => done(null)
|
|
@@ -482534,7 +482658,7 @@ async function launchAssistantInstallWizard(root2) {
|
|
|
482534
482658
|
const errorPromise = new Promise((_, reject2) => {
|
|
482535
482659
|
rejectWithError = reject2;
|
|
482536
482660
|
});
|
|
482537
|
-
const resultPromise = showSetupDialog(root2, (done) => /* @__PURE__ */
|
|
482661
|
+
const resultPromise = showSetupDialog(root2, (done) => /* @__PURE__ */ jsx_runtime488.jsx(NewInstallWizard2, {
|
|
482538
482662
|
defaultDir,
|
|
482539
482663
|
onInstalled: (dir) => done(dir),
|
|
482540
482664
|
onCancel: () => done(null),
|
|
@@ -482546,7 +482670,7 @@ async function launchTeleportResumeWrapper(root2) {
|
|
|
482546
482670
|
const {
|
|
482547
482671
|
TeleportResumeWrapper: TeleportResumeWrapper2
|
|
482548
482672
|
} = await Promise.resolve().then(() => (init_TeleportResumeWrapper(), exports_TeleportResumeWrapper));
|
|
482549
|
-
return showSetupDialog(root2, (done) => /* @__PURE__ */
|
|
482673
|
+
return showSetupDialog(root2, (done) => /* @__PURE__ */ jsx_runtime488.jsx(TeleportResumeWrapper2, {
|
|
482550
482674
|
onComplete: done,
|
|
482551
482675
|
onCancel: () => done(null),
|
|
482552
482676
|
source: "cliArg"
|
|
@@ -482556,7 +482680,7 @@ async function launchTeleportRepoMismatchDialog(root2, props) {
|
|
|
482556
482680
|
const {
|
|
482557
482681
|
TeleportRepoMismatchDialog: TeleportRepoMismatchDialog2
|
|
482558
482682
|
} = await Promise.resolve().then(() => (init_TeleportRepoMismatchDialog(), exports_TeleportRepoMismatchDialog));
|
|
482559
|
-
return showSetupDialog(root2, (done) => /* @__PURE__ */
|
|
482683
|
+
return showSetupDialog(root2, (done) => /* @__PURE__ */ jsx_runtime488.jsx(TeleportRepoMismatchDialog2, {
|
|
482560
482684
|
targetRepo: props.targetRepo,
|
|
482561
482685
|
initialPaths: props.initialPaths,
|
|
482562
482686
|
onSelectPath: done,
|
|
@@ -482569,23 +482693,23 @@ async function launchResumeChooser(root2, appProps, worktreePathsPromise, resume
|
|
|
482569
482693
|
}, {
|
|
482570
482694
|
App: App3
|
|
482571
482695
|
}] = await Promise.all([worktreePathsPromise, Promise.resolve().then(() => (init_ResumeConversation(), exports_ResumeConversation)), Promise.resolve().then(() => (init_App2(), exports_App))]);
|
|
482572
|
-
await renderAndRun(root2, /* @__PURE__ */
|
|
482696
|
+
await renderAndRun(root2, /* @__PURE__ */ jsx_runtime488.jsx(App3, {
|
|
482573
482697
|
getFpsMetrics: appProps.getFpsMetrics,
|
|
482574
482698
|
stats: appProps.stats,
|
|
482575
482699
|
initialState: appProps.initialState,
|
|
482576
|
-
children: /* @__PURE__ */
|
|
482577
|
-
children: /* @__PURE__ */
|
|
482700
|
+
children: /* @__PURE__ */ jsx_runtime488.jsx(KeybindingSetup, {
|
|
482701
|
+
children: /* @__PURE__ */ jsx_runtime488.jsx(ResumeConversation2, {
|
|
482578
482702
|
...resumeProps,
|
|
482579
482703
|
worktreePaths
|
|
482580
482704
|
})
|
|
482581
482705
|
})
|
|
482582
482706
|
}));
|
|
482583
482707
|
}
|
|
482584
|
-
var
|
|
482708
|
+
var jsx_runtime488;
|
|
482585
482709
|
var init_dialogLaunchers = __esm(() => {
|
|
482586
482710
|
init_interactiveHelpers();
|
|
482587
482711
|
init_KeybindingProviderSetup();
|
|
482588
|
-
|
|
482712
|
+
jsx_runtime488 = __toESM(require_jsx_runtime(), 1);
|
|
482589
482713
|
});
|
|
482590
482714
|
|
|
482591
482715
|
// plugins/bundled/index.ts
|
|
@@ -490587,9 +490711,9 @@ function TeleportProgress(t0) {
|
|
|
490587
490711
|
const t2 = SPINNER_FRAMES3[frame];
|
|
490588
490712
|
let t3;
|
|
490589
490713
|
if ($2[2] !== t2) {
|
|
490590
|
-
t3 = /* @__PURE__ */
|
|
490714
|
+
t3 = /* @__PURE__ */ jsx_runtime489.jsx(ThemedBox_default, {
|
|
490591
490715
|
marginBottom: 1,
|
|
490592
|
-
children: /* @__PURE__ */
|
|
490716
|
+
children: /* @__PURE__ */ jsx_runtime489.jsxs(ThemedText, {
|
|
490593
490717
|
bold: true,
|
|
490594
490718
|
color: "theus",
|
|
490595
490719
|
children: [
|
|
@@ -490605,9 +490729,9 @@ function TeleportProgress(t0) {
|
|
|
490605
490729
|
}
|
|
490606
490730
|
let t4;
|
|
490607
490731
|
if ($2[4] !== sessionId) {
|
|
490608
|
-
t4 = sessionId && /* @__PURE__ */
|
|
490732
|
+
t4 = sessionId && /* @__PURE__ */ jsx_runtime489.jsx(ThemedBox_default, {
|
|
490609
490733
|
marginBottom: 1,
|
|
490610
|
-
children: /* @__PURE__ */
|
|
490734
|
+
children: /* @__PURE__ */ jsx_runtime489.jsx(ThemedText, {
|
|
490611
490735
|
dimColor: true,
|
|
490612
490736
|
children: sessionId
|
|
490613
490737
|
})
|
|
@@ -490637,18 +490761,18 @@ function TeleportProgress(t0) {
|
|
|
490637
490761
|
color3 = undefined;
|
|
490638
490762
|
}
|
|
490639
490763
|
}
|
|
490640
|
-
return /* @__PURE__ */
|
|
490764
|
+
return /* @__PURE__ */ jsx_runtime489.jsxs(ThemedBox_default, {
|
|
490641
490765
|
flexDirection: "row",
|
|
490642
490766
|
children: [
|
|
490643
|
-
/* @__PURE__ */
|
|
490767
|
+
/* @__PURE__ */ jsx_runtime489.jsx(ThemedBox_default, {
|
|
490644
490768
|
width: 2,
|
|
490645
|
-
children: /* @__PURE__ */
|
|
490769
|
+
children: /* @__PURE__ */ jsx_runtime489.jsx(ThemedText, {
|
|
490646
490770
|
color: color3,
|
|
490647
490771
|
dimColor: isPending,
|
|
490648
490772
|
children: icon
|
|
490649
490773
|
})
|
|
490650
490774
|
}),
|
|
490651
|
-
/* @__PURE__ */
|
|
490775
|
+
/* @__PURE__ */ jsx_runtime489.jsx(ThemedText, {
|
|
490652
490776
|
dimColor: isPending,
|
|
490653
490777
|
bold: isCurrent,
|
|
490654
490778
|
children: step.label
|
|
@@ -490664,7 +490788,7 @@ function TeleportProgress(t0) {
|
|
|
490664
490788
|
}
|
|
490665
490789
|
let t6;
|
|
490666
490790
|
if ($2[9] !== t5) {
|
|
490667
|
-
t6 = /* @__PURE__ */
|
|
490791
|
+
t6 = /* @__PURE__ */ jsx_runtime489.jsx(ThemedBox_default, {
|
|
490668
490792
|
flexDirection: "column",
|
|
490669
490793
|
marginLeft: 2,
|
|
490670
490794
|
children: t5
|
|
@@ -490676,7 +490800,7 @@ function TeleportProgress(t0) {
|
|
|
490676
490800
|
}
|
|
490677
490801
|
let t7;
|
|
490678
490802
|
if ($2[11] !== ref || $2[12] !== t3 || $2[13] !== t4 || $2[14] !== t6) {
|
|
490679
|
-
t7 = /* @__PURE__ */
|
|
490803
|
+
t7 = /* @__PURE__ */ jsx_runtime489.jsxs(ThemedBox_default, {
|
|
490680
490804
|
ref,
|
|
490681
490805
|
flexDirection: "column",
|
|
490682
490806
|
paddingX: 1,
|
|
@@ -490700,15 +490824,15 @@ function TeleportProgress(t0) {
|
|
|
490700
490824
|
async function teleportWithProgress(root2, sessionId) {
|
|
490701
490825
|
let setStep = () => {};
|
|
490702
490826
|
function TeleportProgressWrapper() {
|
|
490703
|
-
const [step, _setStep] =
|
|
490827
|
+
const [step, _setStep] = import_react338.useState("validating");
|
|
490704
490828
|
setStep = _setStep;
|
|
490705
|
-
return /* @__PURE__ */
|
|
490829
|
+
return /* @__PURE__ */ jsx_runtime489.jsx(TeleportProgress, {
|
|
490706
490830
|
currentStep: step,
|
|
490707
490831
|
sessionId
|
|
490708
490832
|
});
|
|
490709
490833
|
}
|
|
490710
|
-
root2.render(/* @__PURE__ */
|
|
490711
|
-
children: /* @__PURE__ */
|
|
490834
|
+
root2.render(/* @__PURE__ */ jsx_runtime489.jsx(AppStateProvider, {
|
|
490835
|
+
children: /* @__PURE__ */ jsx_runtime489.jsx(TeleportProgressWrapper, {})
|
|
490712
490836
|
}));
|
|
490713
490837
|
const result = await teleportResumeCodeSession(sessionId, setStep);
|
|
490714
490838
|
setStep("checking_out");
|
|
@@ -490721,15 +490845,15 @@ async function teleportWithProgress(root2, sessionId) {
|
|
|
490721
490845
|
branchName
|
|
490722
490846
|
};
|
|
490723
490847
|
}
|
|
490724
|
-
var
|
|
490848
|
+
var import_react338, jsx_runtime489, SPINNER_FRAMES3, STEPS;
|
|
490725
490849
|
var init_TeleportProgress = __esm(() => {
|
|
490726
490850
|
init_compiler_runtime();
|
|
490727
490851
|
init_figures();
|
|
490728
490852
|
init_ink2();
|
|
490729
490853
|
init_AppState();
|
|
490730
490854
|
init_teleport();
|
|
490731
|
-
|
|
490732
|
-
|
|
490855
|
+
import_react338 = __toESM(require_react(), 1);
|
|
490856
|
+
jsx_runtime489 = __toESM(require_jsx_runtime(), 1);
|
|
490733
490857
|
SPINNER_FRAMES3 = ["\u25D0", "\u25D3", "\u25D1", "\u25D2"];
|
|
490734
490858
|
STEPS = [{
|
|
490735
490859
|
key: "validating",
|
|
@@ -490770,7 +490894,7 @@ function MCPServerDesktopImportDialog(t0) {
|
|
|
490770
490894
|
} else {
|
|
490771
490895
|
t2 = $2[2];
|
|
490772
490896
|
}
|
|
490773
|
-
const [existingServers, setExistingServers] =
|
|
490897
|
+
const [existingServers, setExistingServers] = import_react339.useState(t2);
|
|
490774
490898
|
let t3;
|
|
490775
490899
|
let t4;
|
|
490776
490900
|
if ($2[3] === Symbol.for("react.memo_cache_sentinel")) {
|
|
@@ -490789,7 +490913,7 @@ function MCPServerDesktopImportDialog(t0) {
|
|
|
490789
490913
|
t3 = $2[3];
|
|
490790
490914
|
t4 = $2[4];
|
|
490791
490915
|
}
|
|
490792
|
-
|
|
490916
|
+
import_react339.useEffect(t3, t4);
|
|
490793
490917
|
let t5;
|
|
490794
490918
|
if ($2[5] !== existingServers || $2[6] !== serverNames) {
|
|
490795
490919
|
t5 = serverNames.filter((name) => existingServers[name] !== undefined);
|
|
@@ -490865,7 +490989,7 @@ No servers were imported.`);
|
|
|
490865
490989
|
const t10 = `Found ${t8} MCP ${t9} in Theus Desktop.`;
|
|
490866
490990
|
let t11;
|
|
490867
490991
|
if ($2[16] !== collisions.length) {
|
|
490868
|
-
t11 = collisions.length > 0 && /* @__PURE__ */
|
|
490992
|
+
t11 = collisions.length > 0 && /* @__PURE__ */ jsx_runtime490.jsx(ThemedText, {
|
|
490869
490993
|
color: "warning",
|
|
490870
490994
|
children: "Nota: algunos servidores ya existen con el mismo nombre. Si los seleccionas, se importar\xE1n con un sufijo numerado."
|
|
490871
490995
|
});
|
|
@@ -490876,7 +491000,7 @@ No servers were imported.`);
|
|
|
490876
491000
|
}
|
|
490877
491001
|
let t12;
|
|
490878
491002
|
if ($2[18] === Symbol.for("react.memo_cache_sentinel")) {
|
|
490879
|
-
t12 = /* @__PURE__ */
|
|
491003
|
+
t12 = /* @__PURE__ */ jsx_runtime490.jsx(ThemedText, {
|
|
490880
491004
|
children: "Selecciona los servidores que quieres importar:"
|
|
490881
491005
|
});
|
|
490882
491006
|
$2[18] = t12;
|
|
@@ -490901,7 +491025,7 @@ No servers were imported.`);
|
|
|
490901
491025
|
}
|
|
490902
491026
|
let t15;
|
|
490903
491027
|
if ($2[23] !== handleEscCancel || $2[24] !== onSubmit || $2[25] !== t13 || $2[26] !== t14) {
|
|
490904
|
-
t15 = /* @__PURE__ */
|
|
491028
|
+
t15 = /* @__PURE__ */ jsx_runtime490.jsx(SelectMulti, {
|
|
490905
491029
|
options: t13,
|
|
490906
491030
|
defaultValue: t14,
|
|
490907
491031
|
onSubmit,
|
|
@@ -490918,7 +491042,7 @@ No servers were imported.`);
|
|
|
490918
491042
|
}
|
|
490919
491043
|
let t16;
|
|
490920
491044
|
if ($2[28] !== handleEscCancel || $2[29] !== t10 || $2[30] !== t11 || $2[31] !== t15) {
|
|
490921
|
-
t16 = /* @__PURE__ */
|
|
491045
|
+
t16 = /* @__PURE__ */ jsx_runtime490.jsxs(Dialog, {
|
|
490922
491046
|
title: "Importar servidores MCP desde Theus Desktop",
|
|
490923
491047
|
subtitle: t10,
|
|
490924
491048
|
color: "success",
|
|
@@ -490940,22 +491064,22 @@ No servers were imported.`);
|
|
|
490940
491064
|
}
|
|
490941
491065
|
let t17;
|
|
490942
491066
|
if ($2[33] === Symbol.for("react.memo_cache_sentinel")) {
|
|
490943
|
-
t17 = /* @__PURE__ */
|
|
491067
|
+
t17 = /* @__PURE__ */ jsx_runtime490.jsx(ThemedBox_default, {
|
|
490944
491068
|
paddingX: 1,
|
|
490945
|
-
children: /* @__PURE__ */
|
|
491069
|
+
children: /* @__PURE__ */ jsx_runtime490.jsx(ThemedText, {
|
|
490946
491070
|
dimColor: true,
|
|
490947
491071
|
italic: true,
|
|
490948
|
-
children: /* @__PURE__ */
|
|
491072
|
+
children: /* @__PURE__ */ jsx_runtime490.jsxs(Byline, {
|
|
490949
491073
|
children: [
|
|
490950
|
-
/* @__PURE__ */
|
|
491074
|
+
/* @__PURE__ */ jsx_runtime490.jsx(KeyboardShortcutHint, {
|
|
490951
491075
|
shortcut: "Space",
|
|
490952
491076
|
action: "select"
|
|
490953
491077
|
}),
|
|
490954
|
-
/* @__PURE__ */
|
|
491078
|
+
/* @__PURE__ */ jsx_runtime490.jsx(KeyboardShortcutHint, {
|
|
490955
491079
|
shortcut: "Enter",
|
|
490956
491080
|
action: "confirm"
|
|
490957
491081
|
}),
|
|
490958
|
-
/* @__PURE__ */
|
|
491082
|
+
/* @__PURE__ */ jsx_runtime490.jsx(ConfigurableShortcutHint, {
|
|
490959
491083
|
action: "confirm:no",
|
|
490960
491084
|
context: "Confirmation",
|
|
490961
491085
|
fallback: "Esc",
|
|
@@ -490971,7 +491095,7 @@ No servers were imported.`);
|
|
|
490971
491095
|
}
|
|
490972
491096
|
let t18;
|
|
490973
491097
|
if ($2[34] !== t16) {
|
|
490974
|
-
t18 = /* @__PURE__ */
|
|
491098
|
+
t18 = /* @__PURE__ */ jsx_runtime490.jsxs(jsx_runtime490.Fragment, {
|
|
490975
491099
|
children: [
|
|
490976
491100
|
t16,
|
|
490977
491101
|
t17
|
|
@@ -490984,7 +491108,7 @@ No servers were imported.`);
|
|
|
490984
491108
|
}
|
|
490985
491109
|
return t18;
|
|
490986
491110
|
}
|
|
490987
|
-
var
|
|
491111
|
+
var import_react339, jsx_runtime490;
|
|
490988
491112
|
var init_MCPServerDesktopImportDialog = __esm(() => {
|
|
490989
491113
|
init_compiler_runtime();
|
|
490990
491114
|
init_gracefulShutdown();
|
|
@@ -490996,8 +491120,8 @@ var init_MCPServerDesktopImportDialog = __esm(() => {
|
|
|
490996
491120
|
init_Byline();
|
|
490997
491121
|
init_Dialog();
|
|
490998
491122
|
init_KeyboardShortcutHint();
|
|
490999
|
-
|
|
491000
|
-
|
|
491123
|
+
import_react339 = __toESM(require_react(), 1);
|
|
491124
|
+
jsx_runtime490 = __toESM(require_jsx_runtime(), 1);
|
|
491001
491125
|
});
|
|
491002
491126
|
|
|
491003
491127
|
// entrypoints/mcp.ts
|
|
@@ -491011,7 +491135,7 @@ async function startMCPServer(cwd3, debug3, verbose) {
|
|
|
491011
491135
|
setCwd(cwd3);
|
|
491012
491136
|
const server2 = new Server({
|
|
491013
491137
|
name: "theus/tengu",
|
|
491014
|
-
version: { VERSION: "0.2.
|
|
491138
|
+
version: { VERSION: "0.2.36", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
|
|
491015
491139
|
}, {
|
|
491016
491140
|
capabilities: {
|
|
491017
491141
|
tools: {}
|
|
@@ -491499,9 +491623,9 @@ async function mcpAddFromDesktopHandler(options2) {
|
|
|
491499
491623
|
}
|
|
491500
491624
|
const {
|
|
491501
491625
|
unmount
|
|
491502
|
-
} = await render(/* @__PURE__ */
|
|
491503
|
-
children: /* @__PURE__ */
|
|
491504
|
-
children: /* @__PURE__ */
|
|
491626
|
+
} = await render(/* @__PURE__ */ jsx_runtime491.jsx(AppStateProvider, {
|
|
491627
|
+
children: /* @__PURE__ */ jsx_runtime491.jsx(KeybindingSetup, {
|
|
491628
|
+
children: /* @__PURE__ */ jsx_runtime491.jsx(MCPServerDesktopImportDialog, {
|
|
491505
491629
|
servers,
|
|
491506
491630
|
scope,
|
|
491507
491631
|
onDone: () => {
|
|
@@ -491527,7 +491651,7 @@ async function mcpResetChoicesHandler() {
|
|
|
491527
491651
|
cliOk(`All project-scoped (.mcp.json) server approvals and rejections have been reset.
|
|
491528
491652
|
You will be prompted for approval next time you start Theus.`);
|
|
491529
491653
|
}
|
|
491530
|
-
var
|
|
491654
|
+
var jsx_runtime491;
|
|
491531
491655
|
var init_mcp5 = __esm(() => {
|
|
491532
491656
|
init_p_map();
|
|
491533
491657
|
init_MCPServerDesktopImportDialog();
|
|
@@ -491544,7 +491668,7 @@ var init_mcp5 = __esm(() => {
|
|
|
491544
491668
|
init_gracefulShutdown();
|
|
491545
491669
|
init_json();
|
|
491546
491670
|
init_platform2();
|
|
491547
|
-
|
|
491671
|
+
jsx_runtime491 = __toESM(require_jsx_runtime(), 1);
|
|
491548
491672
|
});
|
|
491549
491673
|
|
|
491550
491674
|
// cli/handlers/plugins.ts
|
|
@@ -492098,11 +492222,11 @@ function SetupNotes(t0) {
|
|
|
492098
492222
|
}
|
|
492099
492223
|
let t1;
|
|
492100
492224
|
if ($2[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
492101
|
-
t1 = /* @__PURE__ */
|
|
492102
|
-
children: /* @__PURE__ */
|
|
492225
|
+
t1 = /* @__PURE__ */ jsx_runtime492.jsx(ThemedBox_default, {
|
|
492226
|
+
children: /* @__PURE__ */ jsx_runtime492.jsxs(ThemedText, {
|
|
492103
492227
|
color: "warning",
|
|
492104
492228
|
children: [
|
|
492105
|
-
/* @__PURE__ */
|
|
492229
|
+
/* @__PURE__ */ jsx_runtime492.jsx(StatusIcon, {
|
|
492106
492230
|
status: "warning",
|
|
492107
492231
|
withSpace: true
|
|
492108
492232
|
}),
|
|
@@ -492124,7 +492248,7 @@ function SetupNotes(t0) {
|
|
|
492124
492248
|
}
|
|
492125
492249
|
let t3;
|
|
492126
492250
|
if ($2[3] !== t2) {
|
|
492127
|
-
t3 = /* @__PURE__ */
|
|
492251
|
+
t3 = /* @__PURE__ */ jsx_runtime492.jsxs(ThemedBox_default, {
|
|
492128
492252
|
flexDirection: "column",
|
|
492129
492253
|
gap: 0,
|
|
492130
492254
|
marginBottom: 1,
|
|
@@ -492141,9 +492265,9 @@ function SetupNotes(t0) {
|
|
|
492141
492265
|
return t3;
|
|
492142
492266
|
}
|
|
492143
492267
|
function _temp296(message, index) {
|
|
492144
|
-
return /* @__PURE__ */
|
|
492268
|
+
return /* @__PURE__ */ jsx_runtime492.jsx(ThemedBox_default, {
|
|
492145
492269
|
marginLeft: 2,
|
|
492146
|
-
children: /* @__PURE__ */
|
|
492270
|
+
children: /* @__PURE__ */ jsx_runtime492.jsxs(ThemedText, {
|
|
492147
492271
|
dimColor: true,
|
|
492148
492272
|
children: [
|
|
492149
492273
|
"\u2022 ",
|
|
@@ -492157,10 +492281,10 @@ function Install({
|
|
|
492157
492281
|
force,
|
|
492158
492282
|
target
|
|
492159
492283
|
}) {
|
|
492160
|
-
const [state2, setState] =
|
|
492284
|
+
const [state2, setState] = import_react340.useState({
|
|
492161
492285
|
type: "checking"
|
|
492162
492286
|
});
|
|
492163
|
-
|
|
492287
|
+
import_react340.useEffect(() => {
|
|
492164
492288
|
async function run7() {
|
|
492165
492289
|
try {
|
|
492166
492290
|
logForDebugging(`Install: Starting installation process (force=${force}, target=${target})`);
|
|
@@ -492248,7 +492372,7 @@ function Install({
|
|
|
492248
492372
|
}
|
|
492249
492373
|
run7();
|
|
492250
492374
|
}, [force, target]);
|
|
492251
|
-
|
|
492375
|
+
import_react340.useEffect(() => {
|
|
492252
492376
|
if (state2.type === "success") {
|
|
492253
492377
|
setTimeout(onDone, 2000, "Theus installation completed successfully", {
|
|
492254
492378
|
display: "system"
|
|
@@ -492259,19 +492383,19 @@ function Install({
|
|
|
492259
492383
|
});
|
|
492260
492384
|
}
|
|
492261
492385
|
}, [state2, onDone]);
|
|
492262
|
-
return /* @__PURE__ */
|
|
492386
|
+
return /* @__PURE__ */ jsx_runtime492.jsxs(ThemedBox_default, {
|
|
492263
492387
|
flexDirection: "column",
|
|
492264
492388
|
marginTop: 1,
|
|
492265
492389
|
children: [
|
|
492266
|
-
state2.type === "checking" && /* @__PURE__ */
|
|
492390
|
+
state2.type === "checking" && /* @__PURE__ */ jsx_runtime492.jsx(ThemedText, {
|
|
492267
492391
|
color: "theus",
|
|
492268
492392
|
children: "Checking installation status..."
|
|
492269
492393
|
}),
|
|
492270
|
-
state2.type === "cleaning-npm" && /* @__PURE__ */
|
|
492394
|
+
state2.type === "cleaning-npm" && /* @__PURE__ */ jsx_runtime492.jsx(ThemedText, {
|
|
492271
492395
|
color: "warning",
|
|
492272
492396
|
children: "Cleaning up old npm installations..."
|
|
492273
492397
|
}),
|
|
492274
|
-
state2.type === "installing" && /* @__PURE__ */
|
|
492398
|
+
state2.type === "installing" && /* @__PURE__ */ jsx_runtime492.jsxs(ThemedText, {
|
|
492275
492399
|
color: "theus",
|
|
492276
492400
|
children: [
|
|
492277
492401
|
"Installing Theus native build ",
|
|
@@ -492279,54 +492403,54 @@ function Install({
|
|
|
492279
492403
|
"..."
|
|
492280
492404
|
]
|
|
492281
492405
|
}),
|
|
492282
|
-
state2.type === "setting-up" && /* @__PURE__ */
|
|
492406
|
+
state2.type === "setting-up" && /* @__PURE__ */ jsx_runtime492.jsx(ThemedText, {
|
|
492283
492407
|
color: "theus",
|
|
492284
492408
|
children: "Setting up launcher and shell integration..."
|
|
492285
492409
|
}),
|
|
492286
|
-
state2.type === "set-up" && /* @__PURE__ */
|
|
492410
|
+
state2.type === "set-up" && /* @__PURE__ */ jsx_runtime492.jsx(SetupNotes, {
|
|
492287
492411
|
messages: state2.messages
|
|
492288
492412
|
}),
|
|
492289
|
-
state2.type === "success" && /* @__PURE__ */
|
|
492413
|
+
state2.type === "success" && /* @__PURE__ */ jsx_runtime492.jsxs(ThemedBox_default, {
|
|
492290
492414
|
flexDirection: "column",
|
|
492291
492415
|
gap: 1,
|
|
492292
492416
|
children: [
|
|
492293
|
-
/* @__PURE__ */
|
|
492417
|
+
/* @__PURE__ */ jsx_runtime492.jsxs(ThemedBox_default, {
|
|
492294
492418
|
children: [
|
|
492295
|
-
/* @__PURE__ */
|
|
492419
|
+
/* @__PURE__ */ jsx_runtime492.jsx(StatusIcon, {
|
|
492296
492420
|
status: "success",
|
|
492297
492421
|
withSpace: true
|
|
492298
492422
|
}),
|
|
492299
|
-
/* @__PURE__ */
|
|
492423
|
+
/* @__PURE__ */ jsx_runtime492.jsx(ThemedText, {
|
|
492300
492424
|
color: "success",
|
|
492301
492425
|
bold: true,
|
|
492302
492426
|
children: "Theus successfully installed!"
|
|
492303
492427
|
})
|
|
492304
492428
|
]
|
|
492305
492429
|
}),
|
|
492306
|
-
/* @__PURE__ */
|
|
492430
|
+
/* @__PURE__ */ jsx_runtime492.jsxs(ThemedBox_default, {
|
|
492307
492431
|
marginLeft: 2,
|
|
492308
492432
|
flexDirection: "column",
|
|
492309
492433
|
gap: 1,
|
|
492310
492434
|
children: [
|
|
492311
|
-
state2.version !== "current" && /* @__PURE__ */
|
|
492435
|
+
state2.version !== "current" && /* @__PURE__ */ jsx_runtime492.jsxs(ThemedBox_default, {
|
|
492312
492436
|
children: [
|
|
492313
|
-
/* @__PURE__ */
|
|
492437
|
+
/* @__PURE__ */ jsx_runtime492.jsx(ThemedText, {
|
|
492314
492438
|
dimColor: true,
|
|
492315
492439
|
children: "Version: "
|
|
492316
492440
|
}),
|
|
492317
|
-
/* @__PURE__ */
|
|
492441
|
+
/* @__PURE__ */ jsx_runtime492.jsx(ThemedText, {
|
|
492318
492442
|
color: "theus",
|
|
492319
492443
|
children: state2.version
|
|
492320
492444
|
})
|
|
492321
492445
|
]
|
|
492322
492446
|
}),
|
|
492323
|
-
/* @__PURE__ */
|
|
492447
|
+
/* @__PURE__ */ jsx_runtime492.jsxs(ThemedBox_default, {
|
|
492324
492448
|
children: [
|
|
492325
|
-
/* @__PURE__ */
|
|
492449
|
+
/* @__PURE__ */ jsx_runtime492.jsx(ThemedText, {
|
|
492326
492450
|
dimColor: true,
|
|
492327
492451
|
children: "Location: "
|
|
492328
492452
|
}),
|
|
492329
|
-
/* @__PURE__ */
|
|
492453
|
+
/* @__PURE__ */ jsx_runtime492.jsx(ThemedText, {
|
|
492330
492454
|
color: "text",
|
|
492331
492455
|
children: getInstallationPath2()
|
|
492332
492456
|
})
|
|
@@ -492334,57 +492458,57 @@ function Install({
|
|
|
492334
492458
|
})
|
|
492335
492459
|
]
|
|
492336
492460
|
}),
|
|
492337
|
-
/* @__PURE__ */
|
|
492461
|
+
/* @__PURE__ */ jsx_runtime492.jsx(ThemedBox_default, {
|
|
492338
492462
|
marginLeft: 2,
|
|
492339
492463
|
flexDirection: "column",
|
|
492340
492464
|
gap: 1,
|
|
492341
|
-
children: /* @__PURE__ */
|
|
492465
|
+
children: /* @__PURE__ */ jsx_runtime492.jsxs(ThemedBox_default, {
|
|
492342
492466
|
marginTop: 1,
|
|
492343
492467
|
children: [
|
|
492344
|
-
/* @__PURE__ */
|
|
492468
|
+
/* @__PURE__ */ jsx_runtime492.jsx(ThemedText, {
|
|
492345
492469
|
dimColor: true,
|
|
492346
492470
|
children: "Next: Run "
|
|
492347
492471
|
}),
|
|
492348
|
-
/* @__PURE__ */
|
|
492472
|
+
/* @__PURE__ */ jsx_runtime492.jsx(ThemedText, {
|
|
492349
492473
|
color: "theus",
|
|
492350
492474
|
bold: true,
|
|
492351
492475
|
children: "theus --help"
|
|
492352
492476
|
}),
|
|
492353
|
-
/* @__PURE__ */
|
|
492477
|
+
/* @__PURE__ */ jsx_runtime492.jsx(ThemedText, {
|
|
492354
492478
|
dimColor: true,
|
|
492355
492479
|
children: " to get started"
|
|
492356
492480
|
})
|
|
492357
492481
|
]
|
|
492358
492482
|
})
|
|
492359
492483
|
}),
|
|
492360
|
-
state2.setupMessages && /* @__PURE__ */
|
|
492484
|
+
state2.setupMessages && /* @__PURE__ */ jsx_runtime492.jsx(SetupNotes, {
|
|
492361
492485
|
messages: state2.setupMessages
|
|
492362
492486
|
})
|
|
492363
492487
|
]
|
|
492364
492488
|
}),
|
|
492365
|
-
state2.type === "error" && /* @__PURE__ */
|
|
492489
|
+
state2.type === "error" && /* @__PURE__ */ jsx_runtime492.jsxs(ThemedBox_default, {
|
|
492366
492490
|
flexDirection: "column",
|
|
492367
492491
|
gap: 1,
|
|
492368
492492
|
children: [
|
|
492369
|
-
/* @__PURE__ */
|
|
492493
|
+
/* @__PURE__ */ jsx_runtime492.jsxs(ThemedBox_default, {
|
|
492370
492494
|
children: [
|
|
492371
|
-
/* @__PURE__ */
|
|
492495
|
+
/* @__PURE__ */ jsx_runtime492.jsx(StatusIcon, {
|
|
492372
492496
|
status: "error",
|
|
492373
492497
|
withSpace: true
|
|
492374
492498
|
}),
|
|
492375
|
-
/* @__PURE__ */
|
|
492499
|
+
/* @__PURE__ */ jsx_runtime492.jsx(ThemedText, {
|
|
492376
492500
|
color: "error",
|
|
492377
492501
|
children: "Installation failed"
|
|
492378
492502
|
})
|
|
492379
492503
|
]
|
|
492380
492504
|
}),
|
|
492381
|
-
/* @__PURE__ */
|
|
492505
|
+
/* @__PURE__ */ jsx_runtime492.jsx(ThemedText, {
|
|
492382
492506
|
color: "error",
|
|
492383
492507
|
children: state2.message
|
|
492384
492508
|
}),
|
|
492385
|
-
/* @__PURE__ */
|
|
492509
|
+
/* @__PURE__ */ jsx_runtime492.jsx(ThemedBox_default, {
|
|
492386
492510
|
marginTop: 1,
|
|
492387
|
-
children: /* @__PURE__ */
|
|
492511
|
+
children: /* @__PURE__ */ jsx_runtime492.jsx(ThemedText, {
|
|
492388
492512
|
dimColor: true,
|
|
492389
492513
|
children: "Try running with --force to override checks"
|
|
492390
492514
|
})
|
|
@@ -492394,7 +492518,7 @@ function Install({
|
|
|
492394
492518
|
]
|
|
492395
492519
|
});
|
|
492396
492520
|
}
|
|
492397
|
-
var
|
|
492521
|
+
var import_react340, jsx_runtime492, install;
|
|
492398
492522
|
var init_install = __esm(() => {
|
|
492399
492523
|
init_compiler_runtime();
|
|
492400
492524
|
init_analytics();
|
|
@@ -492405,8 +492529,8 @@ var init_install = __esm(() => {
|
|
|
492405
492529
|
init_errors();
|
|
492406
492530
|
init_nativeInstaller();
|
|
492407
492531
|
init_settings2();
|
|
492408
|
-
|
|
492409
|
-
|
|
492532
|
+
import_react340 = __toESM(require_react(), 1);
|
|
492533
|
+
jsx_runtime492 = __toESM(require_jsx_runtime(), 1);
|
|
492410
492534
|
install = {
|
|
492411
492535
|
type: "local-jsx",
|
|
492412
492536
|
name: "install",
|
|
@@ -492418,7 +492542,7 @@ var init_install = __esm(() => {
|
|
|
492418
492542
|
const target = nonFlagArgs[0];
|
|
492419
492543
|
const {
|
|
492420
492544
|
unmount
|
|
492421
|
-
} = await render(/* @__PURE__ */
|
|
492545
|
+
} = await render(/* @__PURE__ */ jsx_runtime492.jsx(Install, {
|
|
492422
492546
|
onDone: (result, options2) => {
|
|
492423
492547
|
unmount();
|
|
492424
492548
|
onDone(result, options2);
|
|
@@ -492445,30 +492569,30 @@ async function setupTokenHandler(root2) {
|
|
|
492445
492569
|
ConsoleOAuthFlow: ConsoleOAuthFlow2
|
|
492446
492570
|
} = await Promise.resolve().then(() => (init_ConsoleOAuthFlow(), exports_ConsoleOAuthFlow));
|
|
492447
492571
|
await new Promise((resolve52) => {
|
|
492448
|
-
root2.render(/* @__PURE__ */
|
|
492572
|
+
root2.render(/* @__PURE__ */ jsx_runtime493.jsx(AppStateProvider, {
|
|
492449
492573
|
onChangeAppState,
|
|
492450
|
-
children: /* @__PURE__ */
|
|
492451
|
-
children: /* @__PURE__ */
|
|
492574
|
+
children: /* @__PURE__ */ jsx_runtime493.jsx(KeybindingSetup, {
|
|
492575
|
+
children: /* @__PURE__ */ jsx_runtime493.jsxs(ThemedBox_default, {
|
|
492452
492576
|
flexDirection: "column",
|
|
492453
492577
|
gap: 1,
|
|
492454
492578
|
children: [
|
|
492455
|
-
/* @__PURE__ */
|
|
492456
|
-
version: { VERSION: "0.2.
|
|
492579
|
+
/* @__PURE__ */ jsx_runtime493.jsx(TheusBanner, {
|
|
492580
|
+
version: { VERSION: "0.2.36", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
|
|
492457
492581
|
}),
|
|
492458
|
-
showAuthWarning && /* @__PURE__ */
|
|
492582
|
+
showAuthWarning && /* @__PURE__ */ jsx_runtime493.jsxs(ThemedBox_default, {
|
|
492459
492583
|
flexDirection: "column",
|
|
492460
492584
|
children: [
|
|
492461
|
-
/* @__PURE__ */
|
|
492585
|
+
/* @__PURE__ */ jsx_runtime493.jsx(ThemedText, {
|
|
492462
492586
|
color: "warning",
|
|
492463
492587
|
children: "Warning: You already have authentication configured via environment variable or API key helper."
|
|
492464
492588
|
}),
|
|
492465
|
-
/* @__PURE__ */
|
|
492589
|
+
/* @__PURE__ */ jsx_runtime493.jsx(ThemedText, {
|
|
492466
492590
|
color: "warning",
|
|
492467
492591
|
children: "The setup-token command will create a new OAuth token which you can use instead."
|
|
492468
492592
|
})
|
|
492469
492593
|
]
|
|
492470
492594
|
}),
|
|
492471
|
-
/* @__PURE__ */
|
|
492595
|
+
/* @__PURE__ */ jsx_runtime493.jsx(ConsoleOAuthFlow2, {
|
|
492472
492596
|
onDone: () => {
|
|
492473
492597
|
resolve52();
|
|
492474
492598
|
},
|
|
@@ -492491,9 +492615,9 @@ function DoctorWithPlugins(t0) {
|
|
|
492491
492615
|
useManagePlugins();
|
|
492492
492616
|
let t1;
|
|
492493
492617
|
if ($2[0] !== onDone) {
|
|
492494
|
-
t1 = /* @__PURE__ */
|
|
492618
|
+
t1 = /* @__PURE__ */ jsx_runtime493.jsx(import_react341.default.Suspense, {
|
|
492495
492619
|
fallback: null,
|
|
492496
|
-
children: /* @__PURE__ */
|
|
492620
|
+
children: /* @__PURE__ */ jsx_runtime493.jsx(DoctorLazy, {
|
|
492497
492621
|
onDone
|
|
492498
492622
|
})
|
|
492499
492623
|
});
|
|
@@ -492507,12 +492631,12 @@ function DoctorWithPlugins(t0) {
|
|
|
492507
492631
|
async function doctorHandler(root2) {
|
|
492508
492632
|
logEvent("tengu_doctor_command", {});
|
|
492509
492633
|
await new Promise((resolve52) => {
|
|
492510
|
-
root2.render(/* @__PURE__ */
|
|
492511
|
-
children: /* @__PURE__ */
|
|
492512
|
-
children: /* @__PURE__ */
|
|
492634
|
+
root2.render(/* @__PURE__ */ jsx_runtime493.jsx(AppStateProvider, {
|
|
492635
|
+
children: /* @__PURE__ */ jsx_runtime493.jsx(KeybindingSetup, {
|
|
492636
|
+
children: /* @__PURE__ */ jsx_runtime493.jsx(MCPConnectionManager, {
|
|
492513
492637
|
dynamicMcpConfig: undefined,
|
|
492514
492638
|
isStrictMcpConfig: false,
|
|
492515
|
-
children: /* @__PURE__ */
|
|
492639
|
+
children: /* @__PURE__ */ jsx_runtime493.jsx(DoctorWithPlugins, {
|
|
492516
492640
|
onDone: () => {
|
|
492517
492641
|
resolve52();
|
|
492518
492642
|
}
|
|
@@ -492544,7 +492668,7 @@ async function installHandler(target, options2) {
|
|
|
492544
492668
|
}, {}, args);
|
|
492545
492669
|
});
|
|
492546
492670
|
}
|
|
492547
|
-
var
|
|
492671
|
+
var import_react341, jsx_runtime493, DoctorLazy;
|
|
492548
492672
|
var init_util3 = __esm(() => {
|
|
492549
492673
|
init_compiler_runtime();
|
|
492550
492674
|
init_TheusBanner();
|
|
@@ -492556,9 +492680,9 @@ var init_util3 = __esm(() => {
|
|
|
492556
492680
|
init_AppState();
|
|
492557
492681
|
init_onChangeAppState();
|
|
492558
492682
|
init_auth();
|
|
492559
|
-
|
|
492560
|
-
|
|
492561
|
-
DoctorLazy =
|
|
492683
|
+
import_react341 = __toESM(require_react(), 1);
|
|
492684
|
+
jsx_runtime493 = __toESM(require_jsx_runtime(), 1);
|
|
492685
|
+
DoctorLazy = import_react341.default.lazy(() => Promise.resolve().then(() => (init_Doctor(), exports_Doctor)).then((m) => ({
|
|
492562
492686
|
default: m.Doctor
|
|
492563
492687
|
})));
|
|
492564
492688
|
});
|
|
@@ -493922,7 +494046,7 @@ ${assistantAddendum}` : assistantAddendum;
|
|
|
493922
494046
|
}
|
|
493923
494047
|
}
|
|
493924
494048
|
logForDiagnosticsNoPII("info", "started", {
|
|
493925
|
-
version: { VERSION: "0.2.
|
|
494049
|
+
version: { VERSION: "0.2.36", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
|
|
493926
494050
|
is_native_binary: isInBundledMode()
|
|
493927
494051
|
});
|
|
493928
494052
|
registerCleanup(async () => {
|
|
@@ -494790,7 +494914,7 @@ Usage: theus --remote "your task description"`, () => gracefulShutdown(1));
|
|
|
494790
494914
|
pendingHookMessages
|
|
494791
494915
|
}, renderAndRun);
|
|
494792
494916
|
}
|
|
494793
|
-
}).version(`${{ VERSION: "0.2.
|
|
494917
|
+
}).version(`${{ VERSION: "0.2.36", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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");
|
|
494794
494918
|
program2.option("-w, --worktree [name]", "Crea un nuevo worktree de git para esta sesi\xF3n (opcionalmente indica un nombre)");
|
|
494795
494919
|
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.");
|
|
494796
494920
|
if (canUserConfigureAdvisor()) {
|
|
@@ -495342,7 +495466,7 @@ if (false) {}
|
|
|
495342
495466
|
async function main2() {
|
|
495343
495467
|
const args = process.argv.slice(2);
|
|
495344
495468
|
if (args.length === 1 && (args[0] === "--version" || args[0] === "-v" || args[0] === "-V")) {
|
|
495345
|
-
console.log(`${{ VERSION: "0.2.
|
|
495469
|
+
console.log(`${{ VERSION: "0.2.36", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)`);
|
|
495346
495470
|
return;
|
|
495347
495471
|
}
|
|
495348
495472
|
const {
|