theus-cli 0.2.34 → 0.2.35
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 +525 -413
- 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.35", BUILD_TIME: "1970-01-01T00:00:00.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.35", BUILD_TIME: "1970-01-01T00:00:00.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.35", BUILD_TIME: "1970-01-01T00:00:00.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.35", BUILD_TIME: "1970-01-01T00:00:00.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.35", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.35", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.35", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.35", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.35", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.35", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.35", BUILD_TIME: "1970-01-01T00:00:00.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.35", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.35", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.35", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.35", BUILD_TIME: "1970-01-01T00:00:00.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.35", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.35", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.35", BUILD_TIME: "1970-01-01T00:00:00.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.35", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.35", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.35", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.35", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.35", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.35", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.35", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.35", BUILD_TIME: "1970-01-01T00:00:00.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.35", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.35", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.35", BUILD_TIME: "1970-01-01T00:00:00.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.35", BUILD_TIME: "1970-01-01T00:00:00.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.35", BUILD_TIME: "1970-01-01T00:00:00.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.35", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.35", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.35", BUILD_TIME: "1970-01-01T00:00:00.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.35", BUILD_TIME: "1970-01-01T00:00:00.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.35", BUILD_TIME: "1970-01-01T00:00:00.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.35", BUILD_TIME: "1970-01-01T00:00:00.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.35", BUILD_TIME: "1970-01-01T00:00:00.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.35", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.35", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.35", BUILD_TIME: "1970-01-01T00:00:00.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.35", BUILD_TIME: "1970-01-01T00:00:00.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.35", BUILD_TIME: "1970-01-01T00:00:00.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.35", BUILD_TIME: "1970-01-01T00:00:00.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.35", BUILD_TIME: "1970-01-01T00:00:00.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.35", BUILD_TIME: "1970-01-01T00:00:00.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.35", BUILD_TIME: "1970-01-01T00:00:00.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.35", BUILD_TIME: "1970-01-01T00:00:00.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.35", BUILD_TIME: "1970-01-01T00:00:00.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.35", BUILD_TIME: "1970-01-01T00:00:00.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.35", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.35", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.35", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.35", BUILD_TIME: "1970-01-01T00:00:00.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.35", BUILD_TIME: "1970-01-01T00:00:00.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.35", BUILD_TIME: "1970-01-01T00:00:00.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.35", BUILD_TIME: "1970-01-01T00:00:00.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.35", BUILD_TIME: "1970-01-01T00:00:00.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.35", BUILD_TIME: "1970-01-01T00:00:00.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.35", BUILD_TIME: "1970-01-01T00:00:00.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.35", BUILD_TIME: "1970-01-01T00:00:00.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.35", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.35", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.35", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.35", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.35", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.35", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.35", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.35", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.35", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.35", BUILD_TIME: "1970-01-01T00:00:00.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.35", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.35", BUILD_TIME: "1970-01-01T00:00:00.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.35", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.35", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.35", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.35", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.35", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.35", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.35", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.35", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.35", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.35", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.35", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.35", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.35", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.35", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.35", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.35", BUILD_TIME: "1970-01-01T00:00:00.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.35", BUILD_TIME: "1970-01-01T00:00:00.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.35", BUILD_TIME: "1970-01-01T00:00:00.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.35", BUILD_TIME: "1970-01-01T00:00:00.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.35", BUILD_TIME: "1970-01-01T00:00:00.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.35", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.35", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.35", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.35", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.35", BUILD_TIME: "1970-01-01T00:00:00.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.35", BUILD_TIME: "1970-01-01T00:00:00.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.35", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.35", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.35", BUILD_TIME: "1970-01-01T00:00:00.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.35", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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 = () => {};
|
|
@@ -418634,7 +418636,7 @@ async function sideQuery(opts) {
|
|
|
418634
418636
|
betas.push(STRUCTURED_OUTPUTS_BETA_HEADER);
|
|
418635
418637
|
}
|
|
418636
418638
|
const messageText = extractFirstUserMessageText(messages);
|
|
418637
|
-
const fingerprint = computeFingerprint(messageText, { VERSION: "0.2.
|
|
418639
|
+
const fingerprint = computeFingerprint(messageText, { VERSION: "0.2.35", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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
418640
|
const attributionHeader = getAttributionHeader(fingerprint);
|
|
418639
418641
|
const systemBlocks = [
|
|
418640
418642
|
attributionHeader ? { type: "text", text: attributionHeader } : null,
|
|
@@ -419937,7 +419939,7 @@ async function handleMemories(state) {
|
|
|
419937
419939
|
async function runProjectContextMcpServer() {
|
|
419938
419940
|
const projectRoot = process.env.THEUS_PROJECT_ROOT || process.cwd();
|
|
419939
419941
|
const state = new ProjectContextState(projectRoot);
|
|
419940
|
-
const server2 = new Server({ name: SERVER_NAME, version: { VERSION: "0.2.
|
|
419942
|
+
const server2 = new Server({ name: SERVER_NAME, version: { VERSION: "0.2.35", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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
419943
|
server2.setRequestHandler(ListToolsRequestSchema, async () => ({
|
|
419942
419944
|
tools: TOOL_DEFINITIONS.map((t) => ({
|
|
419943
419945
|
name: t.name,
|
|
@@ -421917,7 +421919,7 @@ function createBridgeLogger(options2) {
|
|
|
421917
421919
|
connectUrl = buildBridgeConnectUrl(environmentId, cachedIngressUrl);
|
|
421918
421920
|
regenerateQr(connectUrl);
|
|
421919
421921
|
if (verbose) {
|
|
421920
|
-
write(source_default.dim(`Remote Control`) + ` v${{ VERSION: "0.2.
|
|
421922
|
+
write(source_default.dim(`Remote Control`) + ` v${{ VERSION: "0.2.35", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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
421923
|
`);
|
|
421922
421924
|
}
|
|
421923
421925
|
if (verbose) {
|
|
@@ -422890,7 +422892,7 @@ function appendToLog(path19, message) {
|
|
|
422890
422892
|
cwd: getFsImplementation().cwd(),
|
|
422891
422893
|
userType: process.env.USER_TYPE,
|
|
422892
422894
|
sessionId: getSessionId(),
|
|
422893
|
-
version: { VERSION: "0.2.
|
|
422895
|
+
version: { VERSION: "0.2.35", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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
422896
|
};
|
|
422895
422897
|
getLogWriter(path19).write(messageWithTimestamp);
|
|
422896
422898
|
}
|
|
@@ -424160,7 +424162,7 @@ Spawn mode for this project:
|
|
|
424160
424162
|
const api2 = createBridgeApiClient({
|
|
424161
424163
|
baseUrl,
|
|
424162
424164
|
getAccessToken: getBridgeAccessToken2,
|
|
424163
|
-
runnerVersion: { VERSION: "0.2.
|
|
424165
|
+
runnerVersion: { VERSION: "0.2.35", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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
424166
|
onDebug: logForDebugging,
|
|
424165
424167
|
onAuth401: handleOAuth401Error2,
|
|
424166
424168
|
getTrustedDeviceToken
|
|
@@ -424398,7 +424400,7 @@ async function runBridgeHeadless(opts, signal) {
|
|
|
424398
424400
|
const api2 = createBridgeApiClient({
|
|
424399
424401
|
baseUrl,
|
|
424400
424402
|
getAccessToken: opts.getAccessToken,
|
|
424401
|
-
runnerVersion: { VERSION: "0.2.
|
|
424403
|
+
runnerVersion: { VERSION: "0.2.35", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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
424404
|
onDebug: log2,
|
|
424403
424405
|
onAuth401: opts.onAuth401,
|
|
424404
424406
|
getTrustedDeviceToken
|
|
@@ -428462,7 +428464,7 @@ function buildSystemInitMessage(inputs) {
|
|
|
428462
428464
|
slash_commands: inputs.commands.filter((c5) => c5.userInvocable !== false).map((c5) => c5.name),
|
|
428463
428465
|
apiKeySource: getTheusApiKeyWithSource().source,
|
|
428464
428466
|
betas: getSdkBetas(),
|
|
428465
|
-
theus_code_version: { VERSION: "0.2.
|
|
428467
|
+
theus_code_version: { VERSION: "0.2.35", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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
428468
|
output_style: outputStyle2,
|
|
428467
428469
|
agents: inputs.agents.map((agent) => agent.agentType),
|
|
428468
428470
|
skills: inputs.skills.filter((s) => s.userInvocable !== false).map((skill) => skill.name),
|
|
@@ -428502,8 +428504,8 @@ async function getEnvLessBridgeConfig() {
|
|
|
428502
428504
|
}
|
|
428503
428505
|
async function checkEnvLessBridgeMinVersion() {
|
|
428504
428506
|
const cfg = await getEnvLessBridgeConfig();
|
|
428505
|
-
if (cfg.min_version && lt({ VERSION: "0.2.
|
|
428506
|
-
return `Your version of Theus (${{ VERSION: "0.2.
|
|
428507
|
+
if (cfg.min_version && lt({ VERSION: "0.2.35", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
|
|
428508
|
+
return `Your version of Theus (${{ VERSION: "0.2.35", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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
428509
|
Version ${cfg.min_version} or higher is required. Run \`theus update\` to update.`;
|
|
428508
428510
|
}
|
|
428509
428511
|
return null;
|
|
@@ -430826,7 +430828,7 @@ async function initBridgeCore(params) {
|
|
|
430826
430828
|
const rawApi = createBridgeApiClient({
|
|
430827
430829
|
baseUrl,
|
|
430828
430830
|
getAccessToken,
|
|
430829
|
-
runnerVersion: { VERSION: "0.2.
|
|
430831
|
+
runnerVersion: { VERSION: "0.2.35", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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
430832
|
onDebug: logForDebugging,
|
|
430831
430833
|
onAuth401,
|
|
430832
430834
|
getTrustedDeviceToken
|
|
@@ -447567,7 +447569,7 @@ var init_useVoiceEnabled = __esm(() => {
|
|
|
447567
447569
|
function getSemverPart(version3) {
|
|
447568
447570
|
return `${import_semver14.major(version3, { loose: true })}.${import_semver14.minor(version3, { loose: true })}.${import_semver14.patch(version3, { loose: true })}`;
|
|
447569
447571
|
}
|
|
447570
|
-
function useUpdateNotification(updatedVersion, initialVersion = { VERSION: "0.2.
|
|
447572
|
+
function useUpdateNotification(updatedVersion, initialVersion = { VERSION: "0.2.35", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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
447573
|
const [lastNotifiedSemver, setLastNotifiedSemver] = import_react231.useState(() => getSemverPart(initialVersion));
|
|
447572
447574
|
if (!updatedVersion) {
|
|
447573
447575
|
return null;
|
|
@@ -447607,7 +447609,7 @@ function AutoUpdater({
|
|
|
447607
447609
|
return;
|
|
447608
447610
|
}
|
|
447609
447611
|
if (false) {}
|
|
447610
|
-
const currentVersion = { VERSION: "0.2.
|
|
447612
|
+
const currentVersion = { VERSION: "0.2.35", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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
447613
|
const channel2 = getInitialSettings()?.autoUpdatesChannel ?? "latest";
|
|
447612
447614
|
let latestVersion = await getLatestVersion(channel2);
|
|
447613
447615
|
const isDisabled2 = isAutoUpdaterDisabled();
|
|
@@ -447743,7 +447745,7 @@ function AutoUpdater({
|
|
|
447743
447745
|
" ",
|
|
447744
447746
|
/* @__PURE__ */ jsx_runtime406.jsx(ThemedText, {
|
|
447745
447747
|
bold: true,
|
|
447746
|
-
children: hasLocalInstall ? `cd ~/.theus/local && npm update ${{ VERSION: "0.2.
|
|
447748
|
+
children: hasLocalInstall ? `cd ~/.theus/local && npm update ${{ VERSION: "0.2.35", BUILD_TIME: "1970-01-01T00:00:00.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.35", BUILD_TIME: "1970-01-01T00:00:00.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
447749
|
})
|
|
447748
447750
|
]
|
|
447749
447751
|
})
|
|
@@ -447820,12 +447822,12 @@ function NativeAutoUpdater({
|
|
|
447820
447822
|
logEvent("tengu_native_auto_updater_start", {});
|
|
447821
447823
|
try {
|
|
447822
447824
|
const maxVersion = await getMaxVersion();
|
|
447823
|
-
if (maxVersion && gt({ VERSION: "0.2.
|
|
447825
|
+
if (maxVersion && gt({ VERSION: "0.2.35", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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
447826
|
const msg = await getMaxVersionMessage();
|
|
447825
447827
|
setMaxVersionIssue(msg ?? "affects your version");
|
|
447826
447828
|
}
|
|
447827
447829
|
const result = await installLatest(channel2);
|
|
447828
|
-
const currentVersion = { VERSION: "0.2.
|
|
447830
|
+
const currentVersion = { VERSION: "0.2.35", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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
447831
|
const latencyMs = Date.now() - startTime2;
|
|
447830
447832
|
if (result.lockFailed) {
|
|
447831
447833
|
logEvent("tengu_native_auto_updater_lock_contention", {
|
|
@@ -447962,17 +447964,17 @@ function PackageManagerAutoUpdater(t0) {
|
|
|
447962
447964
|
const maxVersion = await getMaxVersion();
|
|
447963
447965
|
if (maxVersion && latest && gt(latest, maxVersion)) {
|
|
447964
447966
|
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.
|
|
447967
|
+
if (gte({ VERSION: "0.2.35", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
|
|
447968
|
+
logForDebugging(`PackageManagerAutoUpdater: current version ${{ VERSION: "0.2.35", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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
447969
|
setUpdateAvailable(false);
|
|
447968
447970
|
return;
|
|
447969
447971
|
}
|
|
447970
447972
|
latest = maxVersion;
|
|
447971
447973
|
}
|
|
447972
|
-
const hasUpdate = latest && !gte({ VERSION: "0.2.
|
|
447974
|
+
const hasUpdate = latest && !gte({ VERSION: "0.2.35", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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
447975
|
setUpdateAvailable(!!hasUpdate);
|
|
447974
447976
|
if (hasUpdate) {
|
|
447975
|
-
logForDebugging(`PackageManagerAutoUpdater: Update available ${{ VERSION: "0.2.
|
|
447977
|
+
logForDebugging(`PackageManagerAutoUpdater: Update available ${{ VERSION: "0.2.35", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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
447978
|
}
|
|
447977
447979
|
};
|
|
447978
447980
|
$2[0] = t1;
|
|
@@ -448006,7 +448008,7 @@ function PackageManagerAutoUpdater(t0) {
|
|
|
448006
448008
|
wrap: "truncate",
|
|
448007
448009
|
children: [
|
|
448008
448010
|
"currentVersion: ",
|
|
448009
|
-
{ VERSION: "0.2.
|
|
448011
|
+
{ VERSION: "0.2.35", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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
448012
|
]
|
|
448011
448013
|
});
|
|
448012
448014
|
$2[3] = verbose;
|
|
@@ -455879,7 +455881,7 @@ function buildStatusLineCommandInput(permissionMode, exceeds200kTokens, settings
|
|
|
455879
455881
|
project_dir: getOriginalCwd(),
|
|
455880
455882
|
added_dirs: addedDirs
|
|
455881
455883
|
},
|
|
455882
|
-
version: { VERSION: "0.2.
|
|
455884
|
+
version: { VERSION: "0.2.35", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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
455885
|
output_style: {
|
|
455884
455886
|
name: outputStyleName
|
|
455885
455887
|
},
|
|
@@ -457362,7 +457364,6 @@ function ModeIndicator({
|
|
|
457362
457364
|
}) : null;
|
|
457363
457365
|
if (parts.length === 0 && !tasksPart && !modePart && showHint) {
|
|
457364
457366
|
parts.push(/* @__PURE__ */ jsx_runtime433.jsx(ThemedText, {
|
|
457365
|
-
dimColor: true,
|
|
457366
457367
|
children: "? para atajos"
|
|
457367
457368
|
}, "shortcuts-hint"));
|
|
457368
457369
|
}
|
|
@@ -467300,7 +467301,7 @@ async function submitTranscriptShare(messages, trigger, appearanceId) {
|
|
|
467300
467301
|
} catch {}
|
|
467301
467302
|
const data = {
|
|
467302
467303
|
trigger,
|
|
467303
|
-
version: { VERSION: "0.2.
|
|
467304
|
+
version: { VERSION: "0.2.35", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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
467305
|
platform: process.platform,
|
|
467305
467306
|
transcript,
|
|
467306
467307
|
subagentTranscripts: Object.keys(subagentTranscripts).length > 0 ? subagentTranscripts : undefined,
|
|
@@ -478745,7 +478746,6 @@ function MetricLine({
|
|
|
478745
478746
|
return /* @__PURE__ */ jsx_runtime471.jsxs(ThemedBox_default, {
|
|
478746
478747
|
children: [
|
|
478747
478748
|
/* @__PURE__ */ jsx_runtime471.jsx(Text, {
|
|
478748
|
-
dim: true,
|
|
478749
478749
|
children: `${label} `
|
|
478750
478750
|
}),
|
|
478751
478751
|
/* @__PURE__ */ jsx_runtime471.jsx(ThemedText, {
|
|
@@ -478868,7 +478868,6 @@ function StartupMenu({
|
|
|
478868
478868
|
]
|
|
478869
478869
|
}) : /* @__PURE__ */ jsx_runtime471.jsx(ThemedBox_default, {
|
|
478870
478870
|
children: /* @__PURE__ */ jsx_runtime471.jsx(Text, {
|
|
478871
|
-
dim: true,
|
|
478872
478871
|
children: "[ ] \xEDndice local desactivado o no disponible"
|
|
478873
478872
|
})
|
|
478874
478873
|
})
|
|
@@ -478902,7 +478901,6 @@ function StartupMenu({
|
|
|
478902
478901
|
children: "]"
|
|
478903
478902
|
}),
|
|
478904
478903
|
/* @__PURE__ */ jsx_runtime471.jsx(Text, {
|
|
478905
|
-
dim: true,
|
|
478906
478904
|
children: introActive ? " preparando entorno" : " entorno listo"
|
|
478907
478905
|
})
|
|
478908
478906
|
]
|
|
@@ -478957,7 +478955,6 @@ function StartupMenu({
|
|
|
478957
478955
|
marginTop: 1,
|
|
478958
478956
|
flexWrap: "wrap",
|
|
478959
478957
|
children: /* @__PURE__ */ jsx_runtime471.jsx(Text, {
|
|
478960
|
-
dim: true,
|
|
478961
478958
|
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
478959
|
})
|
|
478963
478960
|
}) : null
|
|
@@ -478981,7 +478978,7 @@ var init_StartupMenu = __esm(() => {
|
|
|
478981
478978
|
jsx_runtime471 = __toESM(require_jsx_runtime(), 1);
|
|
478982
478979
|
OPTIONS = [
|
|
478983
478980
|
{
|
|
478984
|
-
label: "
|
|
478981
|
+
label: "Iniciar misi\xF3n",
|
|
478985
478982
|
value: "new-project",
|
|
478986
478983
|
description: "Entrar al prompt con el contexto de este proyecto"
|
|
478987
478984
|
},
|
|
@@ -480311,7 +480308,7 @@ function completeOnboarding() {
|
|
|
480311
480308
|
saveGlobalConfig((current) => ({
|
|
480312
480309
|
...current,
|
|
480313
480310
|
hasCompletedOnboarding: true,
|
|
480314
|
-
lastOnboardingVersion: { VERSION: "0.2.
|
|
480311
|
+
lastOnboardingVersion: { VERSION: "0.2.35", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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
480312
|
}));
|
|
480316
480313
|
}
|
|
480317
480314
|
function showDialog(root2, renderer) {
|
|
@@ -480841,7 +480838,6 @@ function TheusSplash({
|
|
|
480841
480838
|
]
|
|
480842
480839
|
}) : /* @__PURE__ */ jsx_runtime480.jsx(ThemedBox_default, {
|
|
480843
480840
|
children: /* @__PURE__ */ jsx_runtime480.jsx(Text, {
|
|
480844
|
-
dim: true,
|
|
480845
480841
|
children: "[ ] grafo servicio local no disponible"
|
|
480846
480842
|
})
|
|
480847
480843
|
})
|
|
@@ -480863,7 +480859,6 @@ function TheusSplash({
|
|
|
480863
480859
|
children: "]"
|
|
480864
480860
|
}),
|
|
480865
480861
|
/* @__PURE__ */ jsx_runtime480.jsx(Text, {
|
|
480866
|
-
dim: true,
|
|
480867
480862
|
children: motionPolicy.glyphMode === "ascii" ? " misi\xF3n lista | pulsa una tecla" : " misi\xF3n lista \xB7 pulsa una tecla"
|
|
480868
480863
|
})
|
|
480869
480864
|
]
|
|
@@ -480905,6 +480900,113 @@ var init_TheusSplash = __esm(() => {
|
|
|
480905
480900
|
TheusSplash_default = TheusSplash;
|
|
480906
480901
|
});
|
|
480907
480902
|
|
|
480903
|
+
// components/Theus/missionLaunchModel.ts
|
|
480904
|
+
function launchWordmark(width) {
|
|
480905
|
+
if (width >= THEUS_JUMBO_WORDMARK_WIDTH + 4) {
|
|
480906
|
+
return THEUS_JUMBO_WORDMARK_LINES;
|
|
480907
|
+
}
|
|
480908
|
+
if (width >= THEUS_WORDMARK_WIDTH + 4)
|
|
480909
|
+
return THEUS_WORDMARK_LINES;
|
|
480910
|
+
return ["THEUS"];
|
|
480911
|
+
}
|
|
480912
|
+
function buildMissionLaunchFrame(input) {
|
|
480913
|
+
const width = Math.max(24, Math.min(140, Math.floor(input.width)));
|
|
480914
|
+
const timeMs = Math.max(0, input.timeMs);
|
|
480915
|
+
const wordmark = launchWordmark(width);
|
|
480916
|
+
const lines = [];
|
|
480917
|
+
lines.push(centerLine([
|
|
480918
|
+
seg(input.asciiOnly ? "[ THEUS // MISION ]" : "THEUS // MISI\xD3N", "brand", true)
|
|
480919
|
+
], width));
|
|
480920
|
+
lines.push(textLine());
|
|
480921
|
+
for (const [index, raw] of wordmark.entries()) {
|
|
480922
|
+
const reveal = easeOut(progress(timeMs, 30 + index * 38, 430 + index * 38));
|
|
480923
|
+
lines.push(centerLine(revealLine(raw, reveal, "brand"), width));
|
|
480924
|
+
}
|
|
480925
|
+
lines.push(textLine());
|
|
480926
|
+
const ready = timeMs >= MISSION_LAUNCH_DURATION_MS - 170;
|
|
480927
|
+
lines.push(centerLine([
|
|
480928
|
+
seg(ready ? input.asciiOnly ? "[+] MISION INICIADA" : "[+] MISI\xD3N INICIADA" : input.asciiOnly ? "[>] INICIANDO MISION" : "[>] INICIANDO MISI\xD3N", ready ? "success" : "text", true)
|
|
480929
|
+
], width));
|
|
480930
|
+
lines.push(centerLine(movingTrack(Math.min(44, width - 8), timeMs), width));
|
|
480931
|
+
return lines.map((line) => fitForgeLine(line, width));
|
|
480932
|
+
}
|
|
480933
|
+
var MISSION_LAUNCH_DURATION_MS = 780, MISSION_LAUNCH_REDUCED_MS = 80;
|
|
480934
|
+
var init_missionLaunchModel = __esm(() => {
|
|
480935
|
+
init_asciiLogo();
|
|
480936
|
+
init_forgePreviewModel();
|
|
480937
|
+
});
|
|
480938
|
+
|
|
480939
|
+
// components/Theus/TheusMissionLaunch.tsx
|
|
480940
|
+
var exports_TheusMissionLaunch = {};
|
|
480941
|
+
__export(exports_TheusMissionLaunch, {
|
|
480942
|
+
default: () => TheusMissionLaunch_default,
|
|
480943
|
+
TheusMissionLaunch: () => TheusMissionLaunch
|
|
480944
|
+
});
|
|
480945
|
+
function TheusMissionLaunch({ onDone }) {
|
|
480946
|
+
const [themeName] = useTheme();
|
|
480947
|
+
const theme2 = getTheme(themeName);
|
|
480948
|
+
const { columns } = useTerminalSize();
|
|
480949
|
+
const [reducedMotion] = import_react332.useState(() => getInitialSettings().prefersReducedMotion ?? false);
|
|
480950
|
+
const motionPolicy = resolveForgeMotionPolicy({
|
|
480951
|
+
env: process.env,
|
|
480952
|
+
isTTY: Boolean(process.stdout.isTTY),
|
|
480953
|
+
reducedMotion
|
|
480954
|
+
});
|
|
480955
|
+
const motionDisabled = motionPolicy.motion !== "full";
|
|
480956
|
+
const [animationRef, time4] = useAnimationFrame(motionDisabled ? null : motionPolicy.frameIntervalMs);
|
|
480957
|
+
const startTime2 = import_react332.useRef(time4);
|
|
480958
|
+
const finished7 = import_react332.useRef(false);
|
|
480959
|
+
const duration3 = motionDisabled ? MISSION_LAUNCH_REDUCED_MS : MISSION_LAUNCH_DURATION_MS;
|
|
480960
|
+
const elapsed = motionDisabled ? MISSION_LAUNCH_DURATION_MS : Math.max(0, time4 - startTime2.current);
|
|
480961
|
+
const finish = import_react332.useCallback(() => {
|
|
480962
|
+
if (finished7.current)
|
|
480963
|
+
return;
|
|
480964
|
+
finished7.current = true;
|
|
480965
|
+
onDone();
|
|
480966
|
+
}, [onDone]);
|
|
480967
|
+
import_react332.useEffect(() => {
|
|
480968
|
+
const timer = setTimeout(finish, duration3);
|
|
480969
|
+
return () => clearTimeout(timer);
|
|
480970
|
+
}, [duration3, finish]);
|
|
480971
|
+
use_input_default(() => finish());
|
|
480972
|
+
const frame = import_react332.useMemo(() => buildMissionLaunchFrame({
|
|
480973
|
+
timeMs: elapsed,
|
|
480974
|
+
width: columns,
|
|
480975
|
+
asciiOnly: motionPolicy.glyphMode === "ascii"
|
|
480976
|
+
}), [columns, elapsed, motionPolicy.glyphMode]);
|
|
480977
|
+
return /* @__PURE__ */ jsx_runtime481.jsx(ThemedBox_default, {
|
|
480978
|
+
ref: animationRef,
|
|
480979
|
+
flexDirection: "column",
|
|
480980
|
+
width: "100%",
|
|
480981
|
+
height: frame.length,
|
|
480982
|
+
overflow: "hidden",
|
|
480983
|
+
flexShrink: 0,
|
|
480984
|
+
children: frame.map((line, row) => /* @__PURE__ */ jsx_runtime481.jsx(ThemedBox_default, {
|
|
480985
|
+
height: 1,
|
|
480986
|
+
flexShrink: 0,
|
|
480987
|
+
children: line.map((item, column) => /* @__PURE__ */ jsx_runtime481.jsx(ThemedText, {
|
|
480988
|
+
color: forgeRoleColor(item.role, theme2),
|
|
480989
|
+
bold: item.bold,
|
|
480990
|
+
wrap: "truncate-end",
|
|
480991
|
+
children: item.text
|
|
480992
|
+
}, `${row}:${column}`))
|
|
480993
|
+
}, row))
|
|
480994
|
+
});
|
|
480995
|
+
}
|
|
480996
|
+
var import_react332, jsx_runtime481, TheusMissionLaunch_default;
|
|
480997
|
+
var init_TheusMissionLaunch = __esm(() => {
|
|
480998
|
+
init_ink2();
|
|
480999
|
+
init_useTerminalSize();
|
|
481000
|
+
init_settings2();
|
|
481001
|
+
init_theme();
|
|
481002
|
+
init_forgePreviewModel();
|
|
481003
|
+
init_forgeRuntime();
|
|
481004
|
+
init_missionLaunchModel();
|
|
481005
|
+
import_react332 = __toESM(require_react(), 1);
|
|
481006
|
+
jsx_runtime481 = __toESM(require_jsx_runtime(), 1);
|
|
481007
|
+
TheusMissionLaunch_default = TheusMissionLaunch;
|
|
481008
|
+
});
|
|
481009
|
+
|
|
480908
481010
|
// replLauncher.tsx
|
|
480909
481011
|
function shouldShowStartMenu(replProps) {
|
|
480910
481012
|
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 +481034,7 @@ async function launchRepl(root2, appProps, replProps, renderAndRun2) {
|
|
|
480932
481034
|
try {
|
|
480933
481035
|
const { TheusSplash: TheusSplash2 } = await Promise.resolve().then(() => (init_TheusSplash(), exports_TheusSplash));
|
|
480934
481036
|
const version3 = globalThis.MACRO?.VERSION;
|
|
480935
|
-
await showSetupDialog2(root2, (done) => /* @__PURE__ */
|
|
481037
|
+
await showSetupDialog2(root2, (done) => /* @__PURE__ */ jsx_runtime482.jsx(TheusSplash2, {
|
|
480936
481038
|
version: version3,
|
|
480937
481039
|
projectIntelligencePromise,
|
|
480938
481040
|
onDone: () => done(undefined)
|
|
@@ -480940,7 +481042,7 @@ async function launchRepl(root2, appProps, replProps, renderAndRun2) {
|
|
|
480940
481042
|
} catch (err2) {
|
|
480941
481043
|
logError2(err2);
|
|
480942
481044
|
}
|
|
480943
|
-
const action2 = await showSetupDialog2(root2, (done) => /* @__PURE__ */
|
|
481045
|
+
const action2 = await showSetupDialog2(root2, (done) => /* @__PURE__ */ jsx_runtime482.jsx(StartupMenu2, {
|
|
480944
481046
|
version: globalThis.MACRO?.VERSION,
|
|
480945
481047
|
onSelect: done,
|
|
480946
481048
|
onExit: () => done("exit"),
|
|
@@ -480951,7 +481053,7 @@ async function launchRepl(root2, appProps, replProps, renderAndRun2) {
|
|
|
480951
481053
|
}
|
|
480952
481054
|
if (action2 === "providers") {
|
|
480953
481055
|
const { TheusProviderSetup: TheusProviderSetup2 } = await Promise.resolve().then(() => (init_TheusProviderSetup(), exports_TheusProviderSetup));
|
|
480954
|
-
await showSetupDialog2(root2, (done) => /* @__PURE__ */
|
|
481056
|
+
await showSetupDialog2(root2, (done) => /* @__PURE__ */ jsx_runtime482.jsx(TheusProviderSetup2, {
|
|
480955
481057
|
onDone: done
|
|
480956
481058
|
}));
|
|
480957
481059
|
}
|
|
@@ -480968,6 +481070,16 @@ API local: ${project2.apiUrl}
|
|
|
480968
481070
|
`);
|
|
480969
481071
|
}
|
|
480970
481072
|
}
|
|
481073
|
+
if (action2 === "new-project") {
|
|
481074
|
+
try {
|
|
481075
|
+
const { TheusMissionLaunch: TheusMissionLaunch2 } = await Promise.resolve().then(() => (init_TheusMissionLaunch(), exports_TheusMissionLaunch));
|
|
481076
|
+
await showSetupDialog2(root2, (done) => /* @__PURE__ */ jsx_runtime482.jsx(TheusMissionLaunch2, {
|
|
481077
|
+
onDone: () => done(undefined)
|
|
481078
|
+
}));
|
|
481079
|
+
} catch (err2) {
|
|
481080
|
+
logError2(err2);
|
|
481081
|
+
}
|
|
481082
|
+
}
|
|
480971
481083
|
root2.render(null);
|
|
480972
481084
|
await new Promise((resolve52) => setImmediate(resolve52));
|
|
480973
481085
|
process.stdout.write("\x1B[2J\x1B[3J\x1B[H");
|
|
@@ -480978,18 +481090,18 @@ API local: ${project2.apiUrl}
|
|
|
480978
481090
|
} else {
|
|
480979
481091
|
startProjectIntelligenceService();
|
|
480980
481092
|
}
|
|
480981
|
-
await renderAndRun2(root2, /* @__PURE__ */
|
|
481093
|
+
await renderAndRun2(root2, /* @__PURE__ */ jsx_runtime482.jsx(App3, {
|
|
480982
481094
|
...appProps,
|
|
480983
|
-
children: /* @__PURE__ */
|
|
481095
|
+
children: /* @__PURE__ */ jsx_runtime482.jsx(REPL2, {
|
|
480984
481096
|
...replProps
|
|
480985
481097
|
})
|
|
480986
481098
|
}));
|
|
480987
481099
|
}
|
|
480988
|
-
var
|
|
481100
|
+
var jsx_runtime482;
|
|
480989
481101
|
var init_replLauncher = __esm(() => {
|
|
480990
481102
|
init_log2();
|
|
480991
481103
|
init_cwd2();
|
|
480992
|
-
|
|
481104
|
+
jsx_runtime482 = __toESM(require_jsx_runtime(), 1);
|
|
480993
481105
|
});
|
|
480994
481106
|
|
|
480995
481107
|
// services/api/bootstrap.ts
|
|
@@ -481192,7 +481304,7 @@ function InvalidSettingsDialog(t0) {
|
|
|
481192
481304
|
const handleSelect = t1;
|
|
481193
481305
|
let t2;
|
|
481194
481306
|
if ($2[3] !== settingsErrors) {
|
|
481195
|
-
t2 = /* @__PURE__ */
|
|
481307
|
+
t2 = /* @__PURE__ */ jsx_runtime483.jsx(ValidationErrorsList, {
|
|
481196
481308
|
errors: settingsErrors
|
|
481197
481309
|
});
|
|
481198
481310
|
$2[3] = settingsErrors;
|
|
@@ -481202,7 +481314,7 @@ function InvalidSettingsDialog(t0) {
|
|
|
481202
481314
|
}
|
|
481203
481315
|
let t3;
|
|
481204
481316
|
if ($2[5] === Symbol.for("react.memo_cache_sentinel")) {
|
|
481205
|
-
t3 = /* @__PURE__ */
|
|
481317
|
+
t3 = /* @__PURE__ */ jsx_runtime483.jsx(ThemedText, {
|
|
481206
481318
|
dimColor: true,
|
|
481207
481319
|
children: "Los archivos con errores se omiten por completo, no solo los ajustes inv\xE1lidos."
|
|
481208
481320
|
});
|
|
@@ -481225,7 +481337,7 @@ function InvalidSettingsDialog(t0) {
|
|
|
481225
481337
|
}
|
|
481226
481338
|
let t5;
|
|
481227
481339
|
if ($2[7] !== handleSelect) {
|
|
481228
|
-
t5 = /* @__PURE__ */
|
|
481340
|
+
t5 = /* @__PURE__ */ jsx_runtime483.jsx(Select, {
|
|
481229
481341
|
options: t4,
|
|
481230
481342
|
onChange: handleSelect
|
|
481231
481343
|
});
|
|
@@ -481236,7 +481348,7 @@ function InvalidSettingsDialog(t0) {
|
|
|
481236
481348
|
}
|
|
481237
481349
|
let t6;
|
|
481238
481350
|
if ($2[9] !== onExit2 || $2[10] !== t2 || $2[11] !== t5) {
|
|
481239
|
-
t6 = /* @__PURE__ */
|
|
481351
|
+
t6 = /* @__PURE__ */ jsx_runtime483.jsxs(Dialog, {
|
|
481240
481352
|
title: "Error de ajustes",
|
|
481241
481353
|
onCancel: onExit2,
|
|
481242
481354
|
color: "warning",
|
|
@@ -481255,22 +481367,22 @@ function InvalidSettingsDialog(t0) {
|
|
|
481255
481367
|
}
|
|
481256
481368
|
return t6;
|
|
481257
481369
|
}
|
|
481258
|
-
var
|
|
481370
|
+
var jsx_runtime483;
|
|
481259
481371
|
var init_InvalidSettingsDialog = __esm(() => {
|
|
481260
481372
|
init_compiler_runtime();
|
|
481261
481373
|
init_ink2();
|
|
481262
481374
|
init_CustomSelect();
|
|
481263
481375
|
init_Dialog();
|
|
481264
481376
|
init_ValidationErrorsList();
|
|
481265
|
-
|
|
481377
|
+
jsx_runtime483 = __toESM(require_jsx_runtime(), 1);
|
|
481266
481378
|
});
|
|
481267
481379
|
|
|
481268
481380
|
// hooks/useTeleportResume.tsx
|
|
481269
481381
|
function useTeleportResume(source) {
|
|
481270
481382
|
const $2 = c3(8);
|
|
481271
|
-
const [isResuming, setIsResuming] =
|
|
481272
|
-
const [error40, setError] =
|
|
481273
|
-
const [selectedSession, setSelectedSession] =
|
|
481383
|
+
const [isResuming, setIsResuming] = import_react333.useState(false);
|
|
481384
|
+
const [error40, setError] = import_react333.useState(null);
|
|
481385
|
+
const [selectedSession, setSelectedSession] = import_react333.useState(null);
|
|
481274
481386
|
let t0;
|
|
481275
481387
|
if ($2[0] !== source) {
|
|
481276
481388
|
t0 = async (session2) => {
|
|
@@ -481335,14 +481447,14 @@ function useTeleportResume(source) {
|
|
|
481335
481447
|
}
|
|
481336
481448
|
return t2;
|
|
481337
481449
|
}
|
|
481338
|
-
var
|
|
481450
|
+
var import_react333;
|
|
481339
481451
|
var init_useTeleportResume = __esm(() => {
|
|
481340
481452
|
init_compiler_runtime();
|
|
481341
481453
|
init_state();
|
|
481342
481454
|
init_analytics();
|
|
481343
481455
|
init_errors();
|
|
481344
481456
|
init_teleport();
|
|
481345
|
-
|
|
481457
|
+
import_react333 = __toESM(require_react(), 1);
|
|
481346
481458
|
});
|
|
481347
481459
|
|
|
481348
481460
|
// components/ResumeTask.tsx
|
|
@@ -481354,15 +481466,15 @@ function ResumeTask({
|
|
|
481354
481466
|
const {
|
|
481355
481467
|
rows
|
|
481356
481468
|
} = 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] =
|
|
481469
|
+
const [sessions, setSessions] = import_react334.useState([]);
|
|
481470
|
+
const [currentRepo, setCurrentRepo] = import_react334.useState(null);
|
|
481471
|
+
const [loading, setLoading] = import_react334.useState(true);
|
|
481472
|
+
const [loadErrorType, setLoadErrorType] = import_react334.useState(null);
|
|
481473
|
+
const [retrying, setRetrying] = import_react334.useState(false);
|
|
481474
|
+
const [hasCompletedTeleportErrorFlow, setHasCompletedTeleportErrorFlow] = import_react334.useState(false);
|
|
481475
|
+
const [focusedIndex, setFocusedIndex] = import_react334.useState(1);
|
|
481364
481476
|
const escKey = useShortcutDisplay("confirm:no", "Confirmation", "Esc");
|
|
481365
|
-
const loadSessions =
|
|
481477
|
+
const loadSessions = import_react334.useCallback(async () => {
|
|
481366
481478
|
try {
|
|
481367
481479
|
setLoading(true);
|
|
481368
481480
|
setLoadErrorType(null);
|
|
@@ -481416,31 +481528,31 @@ function ResumeTask({
|
|
|
481416
481528
|
return;
|
|
481417
481529
|
}
|
|
481418
481530
|
});
|
|
481419
|
-
const handleErrorComplete =
|
|
481531
|
+
const handleErrorComplete = import_react334.useCallback(() => {
|
|
481420
481532
|
setHasCompletedTeleportErrorFlow(true);
|
|
481421
481533
|
loadSessions();
|
|
481422
481534
|
}, [setHasCompletedTeleportErrorFlow, loadSessions]);
|
|
481423
481535
|
if (!hasCompletedTeleportErrorFlow) {
|
|
481424
|
-
return /* @__PURE__ */
|
|
481536
|
+
return /* @__PURE__ */ jsx_runtime484.jsx(TeleportError, {
|
|
481425
481537
|
onComplete: handleErrorComplete
|
|
481426
481538
|
});
|
|
481427
481539
|
}
|
|
481428
481540
|
if (loading) {
|
|
481429
|
-
return /* @__PURE__ */
|
|
481541
|
+
return /* @__PURE__ */ jsx_runtime484.jsxs(ThemedBox_default, {
|
|
481430
481542
|
flexDirection: "column",
|
|
481431
481543
|
padding: 1,
|
|
481432
481544
|
children: [
|
|
481433
|
-
/* @__PURE__ */
|
|
481545
|
+
/* @__PURE__ */ jsx_runtime484.jsxs(ThemedBox_default, {
|
|
481434
481546
|
flexDirection: "row",
|
|
481435
481547
|
children: [
|
|
481436
|
-
/* @__PURE__ */
|
|
481437
|
-
/* @__PURE__ */
|
|
481548
|
+
/* @__PURE__ */ jsx_runtime484.jsx(Spinner, {}),
|
|
481549
|
+
/* @__PURE__ */ jsx_runtime484.jsx(ThemedText, {
|
|
481438
481550
|
bold: true,
|
|
481439
481551
|
children: "Cargando sesiones de Theus\u2026"
|
|
481440
481552
|
})
|
|
481441
481553
|
]
|
|
481442
481554
|
}),
|
|
481443
|
-
/* @__PURE__ */
|
|
481555
|
+
/* @__PURE__ */ jsx_runtime484.jsx(ThemedText, {
|
|
481444
481556
|
dimColor: true,
|
|
481445
481557
|
children: retrying ? "Reintentando\u2026" : "Obteniendo tus sesiones de Theus\u2026"
|
|
481446
481558
|
})
|
|
@@ -481448,27 +481560,27 @@ function ResumeTask({
|
|
|
481448
481560
|
});
|
|
481449
481561
|
}
|
|
481450
481562
|
if (loadErrorType) {
|
|
481451
|
-
return /* @__PURE__ */
|
|
481563
|
+
return /* @__PURE__ */ jsx_runtime484.jsxs(ThemedBox_default, {
|
|
481452
481564
|
flexDirection: "column",
|
|
481453
481565
|
padding: 1,
|
|
481454
481566
|
children: [
|
|
481455
|
-
/* @__PURE__ */
|
|
481567
|
+
/* @__PURE__ */ jsx_runtime484.jsx(ThemedText, {
|
|
481456
481568
|
bold: true,
|
|
481457
481569
|
color: "error",
|
|
481458
481570
|
children: "Error al cargar las sesiones de Theus"
|
|
481459
481571
|
}),
|
|
481460
481572
|
renderErrorSpecificGuidance(loadErrorType),
|
|
481461
|
-
/* @__PURE__ */
|
|
481573
|
+
/* @__PURE__ */ jsx_runtime484.jsxs(ThemedText, {
|
|
481462
481574
|
dimColor: true,
|
|
481463
481575
|
children: [
|
|
481464
481576
|
"Pulsa ",
|
|
481465
|
-
/* @__PURE__ */
|
|
481577
|
+
/* @__PURE__ */ jsx_runtime484.jsx(ThemedText, {
|
|
481466
481578
|
bold: true,
|
|
481467
481579
|
children: "Ctrl+R"
|
|
481468
481580
|
}),
|
|
481469
481581
|
" para reintentar \xB7 Pulsa",
|
|
481470
481582
|
" ",
|
|
481471
|
-
/* @__PURE__ */
|
|
481583
|
+
/* @__PURE__ */ jsx_runtime484.jsx(ThemedText, {
|
|
481472
481584
|
bold: true,
|
|
481473
481585
|
children: escKey
|
|
481474
481586
|
}),
|
|
@@ -481479,15 +481591,15 @@ function ResumeTask({
|
|
|
481479
481591
|
});
|
|
481480
481592
|
}
|
|
481481
481593
|
if (sessions.length === 0) {
|
|
481482
|
-
return /* @__PURE__ */
|
|
481594
|
+
return /* @__PURE__ */ jsx_runtime484.jsxs(ThemedBox_default, {
|
|
481483
481595
|
flexDirection: "column",
|
|
481484
481596
|
padding: 1,
|
|
481485
481597
|
children: [
|
|
481486
|
-
/* @__PURE__ */
|
|
481598
|
+
/* @__PURE__ */ jsx_runtime484.jsxs(ThemedText, {
|
|
481487
481599
|
bold: true,
|
|
481488
481600
|
children: [
|
|
481489
481601
|
"No se encontraron sesiones de Theus",
|
|
481490
|
-
currentRepo && /* @__PURE__ */
|
|
481602
|
+
currentRepo && /* @__PURE__ */ jsx_runtime484.jsxs(ThemedText, {
|
|
481491
481603
|
children: [
|
|
481492
481604
|
" para ",
|
|
481493
481605
|
currentRepo
|
|
@@ -481495,13 +481607,13 @@ function ResumeTask({
|
|
|
481495
481607
|
})
|
|
481496
481608
|
]
|
|
481497
481609
|
}),
|
|
481498
|
-
/* @__PURE__ */
|
|
481610
|
+
/* @__PURE__ */ jsx_runtime484.jsx(ThemedBox_default, {
|
|
481499
481611
|
marginTop: 1,
|
|
481500
|
-
children: /* @__PURE__ */
|
|
481612
|
+
children: /* @__PURE__ */ jsx_runtime484.jsxs(ThemedText, {
|
|
481501
481613
|
dimColor: true,
|
|
481502
481614
|
children: [
|
|
481503
481615
|
"Pulsa ",
|
|
481504
|
-
/* @__PURE__ */
|
|
481616
|
+
/* @__PURE__ */ jsx_runtime484.jsx(ThemedText, {
|
|
481505
481617
|
bold: true,
|
|
481506
481618
|
children: escKey
|
|
481507
481619
|
}),
|
|
@@ -481532,16 +481644,16 @@ function ResumeTask({
|
|
|
481532
481644
|
const maxVisibleOptions = Math.max(1, isEmbedded ? Math.min(sessions.length, 5, rows - 6 - layoutOverhead) : Math.min(sessions.length, rows - 1 - layoutOverhead));
|
|
481533
481645
|
const maxHeight = maxVisibleOptions + layoutOverhead;
|
|
481534
481646
|
const showScrollPosition = sessions.length > maxVisibleOptions;
|
|
481535
|
-
return /* @__PURE__ */
|
|
481647
|
+
return /* @__PURE__ */ jsx_runtime484.jsxs(ThemedBox_default, {
|
|
481536
481648
|
flexDirection: "column",
|
|
481537
481649
|
padding: 1,
|
|
481538
481650
|
height: maxHeight,
|
|
481539
481651
|
children: [
|
|
481540
|
-
/* @__PURE__ */
|
|
481652
|
+
/* @__PURE__ */ jsx_runtime484.jsxs(ThemedText, {
|
|
481541
481653
|
bold: true,
|
|
481542
481654
|
children: [
|
|
481543
481655
|
"Selecciona una sesi\xF3n para reanudar",
|
|
481544
|
-
showScrollPosition && /* @__PURE__ */
|
|
481656
|
+
showScrollPosition && /* @__PURE__ */ jsx_runtime484.jsxs(ThemedText, {
|
|
481545
481657
|
dimColor: true,
|
|
481546
481658
|
children: [
|
|
481547
481659
|
" ",
|
|
@@ -481552,7 +481664,7 @@ function ResumeTask({
|
|
|
481552
481664
|
")"
|
|
481553
481665
|
]
|
|
481554
481666
|
}),
|
|
481555
|
-
currentRepo && /* @__PURE__ */
|
|
481667
|
+
currentRepo && /* @__PURE__ */ jsx_runtime484.jsxs(ThemedText, {
|
|
481556
481668
|
dimColor: true,
|
|
481557
481669
|
children: [
|
|
481558
481670
|
" (",
|
|
@@ -481563,14 +481675,14 @@ function ResumeTask({
|
|
|
481563
481675
|
":"
|
|
481564
481676
|
]
|
|
481565
481677
|
}),
|
|
481566
|
-
/* @__PURE__ */
|
|
481678
|
+
/* @__PURE__ */ jsx_runtime484.jsxs(ThemedBox_default, {
|
|
481567
481679
|
flexDirection: "column",
|
|
481568
481680
|
marginTop: 1,
|
|
481569
481681
|
flexGrow: 1,
|
|
481570
481682
|
children: [
|
|
481571
|
-
/* @__PURE__ */
|
|
481683
|
+
/* @__PURE__ */ jsx_runtime484.jsx(ThemedBox_default, {
|
|
481572
481684
|
marginLeft: 2,
|
|
481573
|
-
children: /* @__PURE__ */
|
|
481685
|
+
children: /* @__PURE__ */ jsx_runtime484.jsxs(ThemedText, {
|
|
481574
481686
|
bold: true,
|
|
481575
481687
|
children: [
|
|
481576
481688
|
UPDATED_STRING.padEnd(maxTimeStringLength, " "),
|
|
@@ -481579,7 +481691,7 @@ function ResumeTask({
|
|
|
481579
481691
|
]
|
|
481580
481692
|
})
|
|
481581
481693
|
}),
|
|
481582
|
-
/* @__PURE__ */
|
|
481694
|
+
/* @__PURE__ */ jsx_runtime484.jsx(Select, {
|
|
481583
481695
|
visibleOptionCount: maxVisibleOptions,
|
|
481584
481696
|
options: options2,
|
|
481585
481697
|
onChange: (value) => {
|
|
@@ -481597,21 +481709,21 @@ function ResumeTask({
|
|
|
481597
481709
|
})
|
|
481598
481710
|
]
|
|
481599
481711
|
}),
|
|
481600
|
-
/* @__PURE__ */
|
|
481712
|
+
/* @__PURE__ */ jsx_runtime484.jsx(ThemedBox_default, {
|
|
481601
481713
|
flexDirection: "row",
|
|
481602
|
-
children: /* @__PURE__ */
|
|
481714
|
+
children: /* @__PURE__ */ jsx_runtime484.jsx(ThemedText, {
|
|
481603
481715
|
dimColor: true,
|
|
481604
|
-
children: /* @__PURE__ */
|
|
481716
|
+
children: /* @__PURE__ */ jsx_runtime484.jsxs(Byline, {
|
|
481605
481717
|
children: [
|
|
481606
|
-
/* @__PURE__ */
|
|
481718
|
+
/* @__PURE__ */ jsx_runtime484.jsx(KeyboardShortcutHint, {
|
|
481607
481719
|
shortcut: "\u2191/\u2193",
|
|
481608
481720
|
action: "seleccionar"
|
|
481609
481721
|
}),
|
|
481610
|
-
/* @__PURE__ */
|
|
481722
|
+
/* @__PURE__ */ jsx_runtime484.jsx(KeyboardShortcutHint, {
|
|
481611
481723
|
shortcut: "Enter",
|
|
481612
481724
|
action: "confirmar"
|
|
481613
481725
|
}),
|
|
481614
|
-
/* @__PURE__ */
|
|
481726
|
+
/* @__PURE__ */ jsx_runtime484.jsx(ConfigurableShortcutHint, {
|
|
481615
481727
|
action: "confirm:no",
|
|
481616
481728
|
context: "Confirmation",
|
|
481617
481729
|
fallback: "Esc",
|
|
@@ -481640,28 +481752,28 @@ function determineErrorType(errorMessage3) {
|
|
|
481640
481752
|
function renderErrorSpecificGuidance(errorType) {
|
|
481641
481753
|
switch (errorType) {
|
|
481642
481754
|
case "network":
|
|
481643
|
-
return /* @__PURE__ */
|
|
481755
|
+
return /* @__PURE__ */ jsx_runtime484.jsx(ThemedBox_default, {
|
|
481644
481756
|
marginY: 1,
|
|
481645
481757
|
flexDirection: "column",
|
|
481646
|
-
children: /* @__PURE__ */
|
|
481758
|
+
children: /* @__PURE__ */ jsx_runtime484.jsx(ThemedText, {
|
|
481647
481759
|
dimColor: true,
|
|
481648
481760
|
children: "Revisa tu conexi\xF3n a internet"
|
|
481649
481761
|
})
|
|
481650
481762
|
});
|
|
481651
481763
|
case "auth":
|
|
481652
|
-
return /* @__PURE__ */
|
|
481764
|
+
return /* @__PURE__ */ jsx_runtime484.jsxs(ThemedBox_default, {
|
|
481653
481765
|
marginY: 1,
|
|
481654
481766
|
flexDirection: "column",
|
|
481655
481767
|
children: [
|
|
481656
|
-
/* @__PURE__ */
|
|
481768
|
+
/* @__PURE__ */ jsx_runtime484.jsx(ThemedText, {
|
|
481657
481769
|
dimColor: true,
|
|
481658
481770
|
children: "Teleport requiere una cuenta Theus"
|
|
481659
481771
|
}),
|
|
481660
|
-
/* @__PURE__ */
|
|
481772
|
+
/* @__PURE__ */ jsx_runtime484.jsxs(ThemedText, {
|
|
481661
481773
|
dimColor: true,
|
|
481662
481774
|
children: [
|
|
481663
481775
|
"Ejecuta ",
|
|
481664
|
-
/* @__PURE__ */
|
|
481776
|
+
/* @__PURE__ */ jsx_runtime484.jsx(ThemedText, {
|
|
481665
481777
|
bold: true,
|
|
481666
481778
|
children: "/login"
|
|
481667
481779
|
}),
|
|
@@ -481671,26 +481783,26 @@ function renderErrorSpecificGuidance(errorType) {
|
|
|
481671
481783
|
]
|
|
481672
481784
|
});
|
|
481673
481785
|
case "api":
|
|
481674
|
-
return /* @__PURE__ */
|
|
481786
|
+
return /* @__PURE__ */ jsx_runtime484.jsx(ThemedBox_default, {
|
|
481675
481787
|
marginY: 1,
|
|
481676
481788
|
flexDirection: "column",
|
|
481677
|
-
children: /* @__PURE__ */
|
|
481789
|
+
children: /* @__PURE__ */ jsx_runtime484.jsx(ThemedText, {
|
|
481678
481790
|
dimColor: true,
|
|
481679
481791
|
children: "Lo sentimos, Theus encontr\xF3 un error"
|
|
481680
481792
|
})
|
|
481681
481793
|
});
|
|
481682
481794
|
case "other":
|
|
481683
|
-
return /* @__PURE__ */
|
|
481795
|
+
return /* @__PURE__ */ jsx_runtime484.jsx(ThemedBox_default, {
|
|
481684
481796
|
marginY: 1,
|
|
481685
481797
|
flexDirection: "row",
|
|
481686
|
-
children: /* @__PURE__ */
|
|
481798
|
+
children: /* @__PURE__ */ jsx_runtime484.jsx(ThemedText, {
|
|
481687
481799
|
dimColor: true,
|
|
481688
481800
|
children: "Lo sentimos, Theus encontr\xF3 un error"
|
|
481689
481801
|
})
|
|
481690
481802
|
});
|
|
481691
481803
|
}
|
|
481692
481804
|
}
|
|
481693
|
-
var
|
|
481805
|
+
var import_react334, jsx_runtime484, UPDATED_STRING = "Actualizado", SPACE_BETWEEN_TABLE_COLUMNS = " ";
|
|
481694
481806
|
var init_ResumeTask = __esm(() => {
|
|
481695
481807
|
init_useTerminalSize();
|
|
481696
481808
|
init_api3();
|
|
@@ -481706,8 +481818,8 @@ var init_ResumeTask = __esm(() => {
|
|
|
481706
481818
|
init_KeyboardShortcutHint();
|
|
481707
481819
|
init_Spinner2();
|
|
481708
481820
|
init_TeleportError();
|
|
481709
|
-
|
|
481710
|
-
|
|
481821
|
+
import_react334 = __toESM(require_react(), 1);
|
|
481822
|
+
jsx_runtime484 = __toESM(require_jsx_runtime(), 1);
|
|
481711
481823
|
});
|
|
481712
481824
|
|
|
481713
481825
|
// components/TeleportResumeWrapper.tsx
|
|
@@ -481747,7 +481859,7 @@ function TeleportResumeWrapper(t0) {
|
|
|
481747
481859
|
t2 = $2[1];
|
|
481748
481860
|
t3 = $2[2];
|
|
481749
481861
|
}
|
|
481750
|
-
|
|
481862
|
+
import_react335.useEffect(t2, t3);
|
|
481751
481863
|
let t4;
|
|
481752
481864
|
if ($2[3] !== error40 || $2[4] !== onComplete || $2[5] !== onError || $2[6] !== resumeSession) {
|
|
481753
481865
|
t4 = async (session2) => {
|
|
@@ -481799,11 +481911,11 @@ function TeleportResumeWrapper(t0) {
|
|
|
481799
481911
|
if (isResuming && selectedSession) {
|
|
481800
481912
|
let t82;
|
|
481801
481913
|
if ($2[12] === Symbol.for("react.memo_cache_sentinel")) {
|
|
481802
|
-
t82 = /* @__PURE__ */
|
|
481914
|
+
t82 = /* @__PURE__ */ jsx_runtime485.jsxs(ThemedBox_default, {
|
|
481803
481915
|
flexDirection: "row",
|
|
481804
481916
|
children: [
|
|
481805
|
-
/* @__PURE__ */
|
|
481806
|
-
/* @__PURE__ */
|
|
481917
|
+
/* @__PURE__ */ jsx_runtime485.jsx(Spinner, {}),
|
|
481918
|
+
/* @__PURE__ */ jsx_runtime485.jsx(ThemedText, {
|
|
481807
481919
|
bold: true,
|
|
481808
481920
|
children: "Resuming session\u2026"
|
|
481809
481921
|
})
|
|
@@ -481815,12 +481927,12 @@ function TeleportResumeWrapper(t0) {
|
|
|
481815
481927
|
}
|
|
481816
481928
|
let t9;
|
|
481817
481929
|
if ($2[13] !== selectedSession.title) {
|
|
481818
|
-
t9 = /* @__PURE__ */
|
|
481930
|
+
t9 = /* @__PURE__ */ jsx_runtime485.jsxs(ThemedBox_default, {
|
|
481819
481931
|
flexDirection: "column",
|
|
481820
481932
|
padding: 1,
|
|
481821
481933
|
children: [
|
|
481822
481934
|
t82,
|
|
481823
|
-
/* @__PURE__ */
|
|
481935
|
+
/* @__PURE__ */ jsx_runtime485.jsxs(ThemedText, {
|
|
481824
481936
|
dimColor: true,
|
|
481825
481937
|
children: [
|
|
481826
481938
|
'Cargando "',
|
|
@@ -481840,7 +481952,7 @@ function TeleportResumeWrapper(t0) {
|
|
|
481840
481952
|
if (error40 && !onError) {
|
|
481841
481953
|
let t82;
|
|
481842
481954
|
if ($2[15] === Symbol.for("react.memo_cache_sentinel")) {
|
|
481843
|
-
t82 = /* @__PURE__ */
|
|
481955
|
+
t82 = /* @__PURE__ */ jsx_runtime485.jsx(ThemedText, {
|
|
481844
481956
|
bold: true,
|
|
481845
481957
|
color: "error",
|
|
481846
481958
|
children: "No se pudo reanudar la sesi\xF3n"
|
|
@@ -481851,7 +481963,7 @@ function TeleportResumeWrapper(t0) {
|
|
|
481851
481963
|
}
|
|
481852
481964
|
let t9;
|
|
481853
481965
|
if ($2[16] !== error40.message) {
|
|
481854
|
-
t9 = /* @__PURE__ */
|
|
481966
|
+
t9 = /* @__PURE__ */ jsx_runtime485.jsx(ThemedText, {
|
|
481855
481967
|
dimColor: true,
|
|
481856
481968
|
children: error40.message
|
|
481857
481969
|
});
|
|
@@ -481862,13 +481974,13 @@ function TeleportResumeWrapper(t0) {
|
|
|
481862
481974
|
}
|
|
481863
481975
|
let t10;
|
|
481864
481976
|
if ($2[18] === Symbol.for("react.memo_cache_sentinel")) {
|
|
481865
|
-
t10 = /* @__PURE__ */
|
|
481977
|
+
t10 = /* @__PURE__ */ jsx_runtime485.jsx(ThemedBox_default, {
|
|
481866
481978
|
marginTop: 1,
|
|
481867
|
-
children: /* @__PURE__ */
|
|
481979
|
+
children: /* @__PURE__ */ jsx_runtime485.jsxs(ThemedText, {
|
|
481868
481980
|
dimColor: true,
|
|
481869
481981
|
children: [
|
|
481870
481982
|
"Pulsa ",
|
|
481871
|
-
/* @__PURE__ */
|
|
481983
|
+
/* @__PURE__ */ jsx_runtime485.jsx(ThemedText, {
|
|
481872
481984
|
bold: true,
|
|
481873
481985
|
children: "Esc"
|
|
481874
481986
|
}),
|
|
@@ -481882,7 +481994,7 @@ function TeleportResumeWrapper(t0) {
|
|
|
481882
481994
|
}
|
|
481883
481995
|
let t11;
|
|
481884
481996
|
if ($2[19] !== t9) {
|
|
481885
|
-
t11 = /* @__PURE__ */
|
|
481997
|
+
t11 = /* @__PURE__ */ jsx_runtime485.jsxs(ThemedBox_default, {
|
|
481886
481998
|
flexDirection: "column",
|
|
481887
481999
|
padding: 1,
|
|
481888
482000
|
children: [
|
|
@@ -481900,7 +482012,7 @@ function TeleportResumeWrapper(t0) {
|
|
|
481900
482012
|
}
|
|
481901
482013
|
let t8;
|
|
481902
482014
|
if ($2[21] !== handleCancel || $2[22] !== handleSelect || $2[23] !== isEmbedded) {
|
|
481903
|
-
t8 = /* @__PURE__ */
|
|
482015
|
+
t8 = /* @__PURE__ */ jsx_runtime485.jsx(ResumeTask, {
|
|
481904
482016
|
onSelect: handleSelect,
|
|
481905
482017
|
onCancel: handleCancel,
|
|
481906
482018
|
isEmbedded
|
|
@@ -481914,7 +482026,7 @@ function TeleportResumeWrapper(t0) {
|
|
|
481914
482026
|
}
|
|
481915
482027
|
return t8;
|
|
481916
482028
|
}
|
|
481917
|
-
var
|
|
482029
|
+
var import_react335, jsx_runtime485;
|
|
481918
482030
|
var init_TeleportResumeWrapper = __esm(() => {
|
|
481919
482031
|
init_compiler_runtime();
|
|
481920
482032
|
init_analytics();
|
|
@@ -481923,8 +482035,8 @@ var init_TeleportResumeWrapper = __esm(() => {
|
|
|
481923
482035
|
init_useKeybinding();
|
|
481924
482036
|
init_ResumeTask();
|
|
481925
482037
|
init_Spinner2();
|
|
481926
|
-
|
|
481927
|
-
|
|
482038
|
+
import_react335 = __toESM(require_react(), 1);
|
|
482039
|
+
jsx_runtime485 = __toESM(require_jsx_runtime(), 1);
|
|
481928
482040
|
});
|
|
481929
482041
|
|
|
481930
482042
|
// components/TeleportRepoMismatchDialog.tsx
|
|
@@ -481940,9 +482052,9 @@ function TeleportRepoMismatchDialog(t0) {
|
|
|
481940
482052
|
onSelectPath,
|
|
481941
482053
|
onCancel
|
|
481942
482054
|
} = t0;
|
|
481943
|
-
const [availablePaths, setAvailablePaths] =
|
|
481944
|
-
const [errorMessage3, setErrorMessage] =
|
|
481945
|
-
const [validating, setValidating] =
|
|
482055
|
+
const [availablePaths, setAvailablePaths] = import_react336.useState(initialPaths);
|
|
482056
|
+
const [errorMessage3, setErrorMessage] = import_react336.useState(null);
|
|
482057
|
+
const [validating, setValidating] = import_react336.useState(false);
|
|
481946
482058
|
let t1;
|
|
481947
482059
|
if ($2[0] !== availablePaths || $2[1] !== onCancel || $2[2] !== onSelectPath || $2[3] !== targetRepo) {
|
|
481948
482060
|
t1 = async (value) => {
|
|
@@ -481993,20 +482105,20 @@ function TeleportRepoMismatchDialog(t0) {
|
|
|
481993
482105
|
const options2 = t2;
|
|
481994
482106
|
let t3;
|
|
481995
482107
|
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__ */
|
|
482108
|
+
t3 = availablePaths.length > 0 ? /* @__PURE__ */ jsx_runtime486.jsxs(jsx_runtime486.Fragment, {
|
|
481997
482109
|
children: [
|
|
481998
|
-
/* @__PURE__ */
|
|
482110
|
+
/* @__PURE__ */ jsx_runtime486.jsxs(ThemedBox_default, {
|
|
481999
482111
|
flexDirection: "column",
|
|
482000
482112
|
gap: 1,
|
|
482001
482113
|
children: [
|
|
482002
|
-
errorMessage3 && /* @__PURE__ */
|
|
482114
|
+
errorMessage3 && /* @__PURE__ */ jsx_runtime486.jsx(ThemedText, {
|
|
482003
482115
|
color: "error",
|
|
482004
482116
|
children: errorMessage3
|
|
482005
482117
|
}),
|
|
482006
|
-
/* @__PURE__ */
|
|
482118
|
+
/* @__PURE__ */ jsx_runtime486.jsxs(ThemedText, {
|
|
482007
482119
|
children: [
|
|
482008
482120
|
"Open Theus in ",
|
|
482009
|
-
/* @__PURE__ */
|
|
482121
|
+
/* @__PURE__ */ jsx_runtime486.jsx(ThemedText, {
|
|
482010
482122
|
bold: true,
|
|
482011
482123
|
children: targetRepo
|
|
482012
482124
|
}),
|
|
@@ -482015,27 +482127,27 @@ function TeleportRepoMismatchDialog(t0) {
|
|
|
482015
482127
|
})
|
|
482016
482128
|
]
|
|
482017
482129
|
}),
|
|
482018
|
-
validating ? /* @__PURE__ */
|
|
482130
|
+
validating ? /* @__PURE__ */ jsx_runtime486.jsxs(ThemedBox_default, {
|
|
482019
482131
|
children: [
|
|
482020
|
-
/* @__PURE__ */
|
|
482021
|
-
/* @__PURE__ */
|
|
482132
|
+
/* @__PURE__ */ jsx_runtime486.jsx(Spinner, {}),
|
|
482133
|
+
/* @__PURE__ */ jsx_runtime486.jsx(ThemedText, {
|
|
482022
482134
|
children: " Validating repository\u2026"
|
|
482023
482135
|
})
|
|
482024
482136
|
]
|
|
482025
|
-
}) : /* @__PURE__ */
|
|
482137
|
+
}) : /* @__PURE__ */ jsx_runtime486.jsx(Select, {
|
|
482026
482138
|
options: options2,
|
|
482027
482139
|
onChange: (value_0) => void handleChange4(value_0)
|
|
482028
482140
|
})
|
|
482029
482141
|
]
|
|
482030
|
-
}) : /* @__PURE__ */
|
|
482142
|
+
}) : /* @__PURE__ */ jsx_runtime486.jsxs(ThemedBox_default, {
|
|
482031
482143
|
flexDirection: "column",
|
|
482032
482144
|
gap: 1,
|
|
482033
482145
|
children: [
|
|
482034
|
-
errorMessage3 && /* @__PURE__ */
|
|
482146
|
+
errorMessage3 && /* @__PURE__ */ jsx_runtime486.jsx(ThemedText, {
|
|
482035
482147
|
color: "error",
|
|
482036
482148
|
children: errorMessage3
|
|
482037
482149
|
}),
|
|
482038
|
-
/* @__PURE__ */
|
|
482150
|
+
/* @__PURE__ */ jsx_runtime486.jsxs(ThemedText, {
|
|
482039
482151
|
dimColor: true,
|
|
482040
482152
|
children: [
|
|
482041
482153
|
"Run theus --teleport from a checkout of ",
|
|
@@ -482056,7 +482168,7 @@ function TeleportRepoMismatchDialog(t0) {
|
|
|
482056
482168
|
}
|
|
482057
482169
|
let t4;
|
|
482058
482170
|
if ($2[15] !== onCancel || $2[16] !== t3) {
|
|
482059
|
-
t4 = /* @__PURE__ */
|
|
482171
|
+
t4 = /* @__PURE__ */ jsx_runtime486.jsx(Dialog, {
|
|
482060
482172
|
title: "Teleport to Repo",
|
|
482061
482173
|
onCancel,
|
|
482062
482174
|
color: "background",
|
|
@@ -482072,10 +482184,10 @@ function TeleportRepoMismatchDialog(t0) {
|
|
|
482072
482184
|
}
|
|
482073
482185
|
function _temp294(path21) {
|
|
482074
482186
|
return {
|
|
482075
|
-
label: /* @__PURE__ */
|
|
482187
|
+
label: /* @__PURE__ */ jsx_runtime486.jsxs(ThemedText, {
|
|
482076
482188
|
children: [
|
|
482077
482189
|
"Use ",
|
|
482078
|
-
/* @__PURE__ */
|
|
482190
|
+
/* @__PURE__ */ jsx_runtime486.jsx(ThemedText, {
|
|
482079
482191
|
bold: true,
|
|
482080
482192
|
children: getDisplayPath(path21)
|
|
482081
482193
|
})
|
|
@@ -482084,7 +482196,7 @@ function _temp294(path21) {
|
|
|
482084
482196
|
value: path21
|
|
482085
482197
|
};
|
|
482086
482198
|
}
|
|
482087
|
-
var
|
|
482199
|
+
var import_react336, jsx_runtime486;
|
|
482088
482200
|
var init_TeleportRepoMismatchDialog = __esm(() => {
|
|
482089
482201
|
init_compiler_runtime();
|
|
482090
482202
|
init_ink2();
|
|
@@ -482093,8 +482205,8 @@ var init_TeleportRepoMismatchDialog = __esm(() => {
|
|
|
482093
482205
|
init_CustomSelect();
|
|
482094
482206
|
init_Dialog();
|
|
482095
482207
|
init_Spinner2();
|
|
482096
|
-
|
|
482097
|
-
|
|
482208
|
+
import_react336 = __toESM(require_react(), 1);
|
|
482209
|
+
jsx_runtime486 = __toESM(require_jsx_runtime(), 1);
|
|
482098
482210
|
});
|
|
482099
482211
|
|
|
482100
482212
|
// screens/ResumeConversation.tsx
|
|
@@ -482139,15 +482251,15 @@ function ResumeConversation({
|
|
|
482139
482251
|
} = useTerminalSize();
|
|
482140
482252
|
const agentDefinitions = useAppState((s) => s.agentDefinitions);
|
|
482141
482253
|
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 =
|
|
482254
|
+
const [logs2, setLogs] = import_react337.default.useState([]);
|
|
482255
|
+
const [loading, setLoading] = import_react337.default.useState(true);
|
|
482256
|
+
const [resuming, setResuming] = import_react337.default.useState(false);
|
|
482257
|
+
const [showAllProjects, setShowAllProjects] = import_react337.default.useState(false);
|
|
482258
|
+
const [resumeData, setResumeData] = import_react337.default.useState(null);
|
|
482259
|
+
const [crossProjectCommand, setCrossProjectCommand] = import_react337.default.useState(null);
|
|
482260
|
+
const sessionLogResultRef = import_react337.default.useRef(null);
|
|
482261
|
+
const logCountRef = import_react337.default.useRef(0);
|
|
482262
|
+
const filteredLogs = import_react337.default.useMemo(() => {
|
|
482151
482263
|
let result = logs2.filter((l) => !l.isSidechain);
|
|
482152
482264
|
if (filterByPr !== undefined) {
|
|
482153
482265
|
if (filterByPr === true) {
|
|
@@ -482164,7 +482276,7 @@ function ResumeConversation({
|
|
|
482164
482276
|
return result;
|
|
482165
482277
|
}, [logs2, filterByPr]);
|
|
482166
482278
|
const isResumeWithRenameEnabled = isCustomTitleEnabled();
|
|
482167
|
-
|
|
482279
|
+
import_react337.default.useEffect(() => {
|
|
482168
482280
|
loadSameRepoMessageLogsProgressive(worktreePaths).then((result_0) => {
|
|
482169
482281
|
sessionLogResultRef.current = result_0;
|
|
482170
482282
|
logCountRef.current = result_0.logs.length;
|
|
@@ -482175,7 +482287,7 @@ function ResumeConversation({
|
|
|
482175
482287
|
setLoading(false);
|
|
482176
482288
|
});
|
|
482177
482289
|
}, [worktreePaths]);
|
|
482178
|
-
const loadMoreLogs =
|
|
482290
|
+
const loadMoreLogs = import_react337.default.useCallback((count4) => {
|
|
482179
482291
|
const ref = sessionLogResultRef.current;
|
|
482180
482292
|
if (!ref || ref.nextIndex >= ref.allStatLogs.length)
|
|
482181
482293
|
return;
|
|
@@ -482193,7 +482305,7 @@ function ResumeConversation({
|
|
|
482193
482305
|
}
|
|
482194
482306
|
});
|
|
482195
482307
|
}, []);
|
|
482196
|
-
const loadLogs =
|
|
482308
|
+
const loadLogs = import_react337.default.useCallback((allProjects) => {
|
|
482197
482309
|
setLoading(true);
|
|
482198
482310
|
const promise3 = allProjects ? loadAllProjectsMessageLogsProgressive() : loadSameRepoMessageLogsProgressive(worktreePaths);
|
|
482199
482311
|
promise3.then((result_2) => {
|
|
@@ -482206,7 +482318,7 @@ function ResumeConversation({
|
|
|
482206
482318
|
setLoading(false);
|
|
482207
482319
|
});
|
|
482208
482320
|
}, [worktreePaths]);
|
|
482209
|
-
const handleToggleAllProjects =
|
|
482321
|
+
const handleToggleAllProjects = import_react337.default.useCallback(() => {
|
|
482210
482322
|
const newValue = !showAllProjects;
|
|
482211
482323
|
setShowAllProjects(newValue);
|
|
482212
482324
|
loadLogs(newValue);
|
|
@@ -482292,12 +482404,12 @@ function ResumeConversation({
|
|
|
482292
482404
|
}
|
|
482293
482405
|
}
|
|
482294
482406
|
if (crossProjectCommand) {
|
|
482295
|
-
return /* @__PURE__ */
|
|
482407
|
+
return /* @__PURE__ */ jsx_runtime487.jsx(CrossProjectMessage, {
|
|
482296
482408
|
command: crossProjectCommand
|
|
482297
482409
|
});
|
|
482298
482410
|
}
|
|
482299
482411
|
if (resumeData) {
|
|
482300
|
-
return /* @__PURE__ */
|
|
482412
|
+
return /* @__PURE__ */ jsx_runtime487.jsx(REPL, {
|
|
482301
482413
|
debug: debug3,
|
|
482302
482414
|
commands,
|
|
482303
482415
|
initialTools,
|
|
@@ -482320,29 +482432,29 @@ function ResumeConversation({
|
|
|
482320
482432
|
});
|
|
482321
482433
|
}
|
|
482322
482434
|
if (loading) {
|
|
482323
|
-
return /* @__PURE__ */
|
|
482435
|
+
return /* @__PURE__ */ jsx_runtime487.jsxs(ThemedBox_default, {
|
|
482324
482436
|
children: [
|
|
482325
|
-
/* @__PURE__ */
|
|
482326
|
-
/* @__PURE__ */
|
|
482437
|
+
/* @__PURE__ */ jsx_runtime487.jsx(Spinner, {}),
|
|
482438
|
+
/* @__PURE__ */ jsx_runtime487.jsx(ThemedText, {
|
|
482327
482439
|
children: " Loading conversations\u2026"
|
|
482328
482440
|
})
|
|
482329
482441
|
]
|
|
482330
482442
|
});
|
|
482331
482443
|
}
|
|
482332
482444
|
if (resuming) {
|
|
482333
|
-
return /* @__PURE__ */
|
|
482445
|
+
return /* @__PURE__ */ jsx_runtime487.jsxs(ThemedBox_default, {
|
|
482334
482446
|
children: [
|
|
482335
|
-
/* @__PURE__ */
|
|
482336
|
-
/* @__PURE__ */
|
|
482447
|
+
/* @__PURE__ */ jsx_runtime487.jsx(Spinner, {}),
|
|
482448
|
+
/* @__PURE__ */ jsx_runtime487.jsx(ThemedText, {
|
|
482337
482449
|
children: " Resuming conversation\u2026"
|
|
482338
482450
|
})
|
|
482339
482451
|
]
|
|
482340
482452
|
});
|
|
482341
482453
|
}
|
|
482342
482454
|
if (filteredLogs.length === 0) {
|
|
482343
|
-
return /* @__PURE__ */
|
|
482455
|
+
return /* @__PURE__ */ jsx_runtime487.jsx(NoConversationsMessage, {});
|
|
482344
482456
|
}
|
|
482345
|
-
return /* @__PURE__ */
|
|
482457
|
+
return /* @__PURE__ */ jsx_runtime487.jsx(LogSelector, {
|
|
482346
482458
|
logs: filteredLogs,
|
|
482347
482459
|
maxHeight: rows,
|
|
482348
482460
|
onCancel,
|
|
@@ -482369,13 +482481,13 @@ function NoConversationsMessage() {
|
|
|
482369
482481
|
useKeybinding("app:interrupt", _temp295, t0);
|
|
482370
482482
|
let t1;
|
|
482371
482483
|
if ($2[1] === Symbol.for("react.memo_cache_sentinel")) {
|
|
482372
|
-
t1 = /* @__PURE__ */
|
|
482484
|
+
t1 = /* @__PURE__ */ jsx_runtime487.jsxs(ThemedBox_default, {
|
|
482373
482485
|
flexDirection: "column",
|
|
482374
482486
|
children: [
|
|
482375
|
-
/* @__PURE__ */
|
|
482487
|
+
/* @__PURE__ */ jsx_runtime487.jsx(ThemedText, {
|
|
482376
482488
|
children: "No se encontraron conversaciones para reanudar."
|
|
482377
482489
|
}),
|
|
482378
|
-
/* @__PURE__ */
|
|
482490
|
+
/* @__PURE__ */ jsx_runtime487.jsx(ThemedText, {
|
|
482379
482491
|
dimColor: true,
|
|
482380
482492
|
children: "Pulsa Ctrl+C para salir e iniciar una conversaci\xF3n nueva."
|
|
482381
482493
|
})
|
|
@@ -482402,10 +482514,10 @@ function CrossProjectMessage(t0) {
|
|
|
482402
482514
|
} else {
|
|
482403
482515
|
t1 = $2[0];
|
|
482404
482516
|
}
|
|
482405
|
-
|
|
482517
|
+
import_react337.default.useEffect(_temp356, t1);
|
|
482406
482518
|
let t2;
|
|
482407
482519
|
if ($2[1] === Symbol.for("react.memo_cache_sentinel")) {
|
|
482408
|
-
t2 = /* @__PURE__ */
|
|
482520
|
+
t2 = /* @__PURE__ */ jsx_runtime487.jsx(ThemedText, {
|
|
482409
482521
|
children: "Esta conversaci\xF3n es de un directorio diferente."
|
|
482410
482522
|
});
|
|
482411
482523
|
$2[1] = t2;
|
|
@@ -482414,7 +482526,7 @@ function CrossProjectMessage(t0) {
|
|
|
482414
482526
|
}
|
|
482415
482527
|
let t3;
|
|
482416
482528
|
if ($2[2] === Symbol.for("react.memo_cache_sentinel")) {
|
|
482417
|
-
t3 = /* @__PURE__ */
|
|
482529
|
+
t3 = /* @__PURE__ */ jsx_runtime487.jsx(ThemedText, {
|
|
482418
482530
|
children: "Para reanudarla, ejecuta:"
|
|
482419
482531
|
});
|
|
482420
482532
|
$2[2] = t3;
|
|
@@ -482423,11 +482535,11 @@ function CrossProjectMessage(t0) {
|
|
|
482423
482535
|
}
|
|
482424
482536
|
let t4;
|
|
482425
482537
|
if ($2[3] !== command7) {
|
|
482426
|
-
t4 = /* @__PURE__ */
|
|
482538
|
+
t4 = /* @__PURE__ */ jsx_runtime487.jsxs(ThemedBox_default, {
|
|
482427
482539
|
flexDirection: "column",
|
|
482428
482540
|
children: [
|
|
482429
482541
|
t3,
|
|
482430
|
-
/* @__PURE__ */
|
|
482542
|
+
/* @__PURE__ */ jsx_runtime487.jsxs(ThemedText, {
|
|
482431
482543
|
children: [
|
|
482432
482544
|
" ",
|
|
482433
482545
|
command7
|
|
@@ -482442,7 +482554,7 @@ function CrossProjectMessage(t0) {
|
|
|
482442
482554
|
}
|
|
482443
482555
|
let t5;
|
|
482444
482556
|
if ($2[5] === Symbol.for("react.memo_cache_sentinel")) {
|
|
482445
|
-
t5 = /* @__PURE__ */
|
|
482557
|
+
t5 = /* @__PURE__ */ jsx_runtime487.jsx(ThemedText, {
|
|
482446
482558
|
dimColor: true,
|
|
482447
482559
|
children: "(Command copied to clipboard)"
|
|
482448
482560
|
});
|
|
@@ -482452,7 +482564,7 @@ function CrossProjectMessage(t0) {
|
|
|
482452
482564
|
}
|
|
482453
482565
|
let t6;
|
|
482454
482566
|
if ($2[6] !== t4) {
|
|
482455
|
-
t6 = /* @__PURE__ */
|
|
482567
|
+
t6 = /* @__PURE__ */ jsx_runtime487.jsxs(ThemedBox_default, {
|
|
482456
482568
|
flexDirection: "column",
|
|
482457
482569
|
gap: 1,
|
|
482458
482570
|
children: [
|
|
@@ -482475,7 +482587,7 @@ function _temp356() {
|
|
|
482475
482587
|
function _temp293() {
|
|
482476
482588
|
process.exit(0);
|
|
482477
482589
|
}
|
|
482478
|
-
var
|
|
482590
|
+
var import_react337, jsx_runtime487;
|
|
482479
482591
|
var init_ResumeConversation = __esm(() => {
|
|
482480
482592
|
init_compiler_runtime();
|
|
482481
482593
|
init_useTerminalSize();
|
|
@@ -482499,8 +482611,8 @@ var init_ResumeConversation = __esm(() => {
|
|
|
482499
482611
|
init_sessionRestore();
|
|
482500
482612
|
init_sessionStorage();
|
|
482501
482613
|
init_REPL();
|
|
482502
|
-
|
|
482503
|
-
|
|
482614
|
+
import_react337 = __toESM(require_react(), 1);
|
|
482615
|
+
jsx_runtime487 = __toESM(require_jsx_runtime(), 1);
|
|
482504
482616
|
});
|
|
482505
482617
|
|
|
482506
482618
|
// dialogLaunchers.tsx
|
|
@@ -482508,7 +482620,7 @@ async function launchInvalidSettingsDialog(root2, props) {
|
|
|
482508
482620
|
const {
|
|
482509
482621
|
InvalidSettingsDialog: InvalidSettingsDialog2
|
|
482510
482622
|
} = await Promise.resolve().then(() => (init_InvalidSettingsDialog(), exports_InvalidSettingsDialog));
|
|
482511
|
-
return showSetupDialog(root2, (done) => /* @__PURE__ */
|
|
482623
|
+
return showSetupDialog(root2, (done) => /* @__PURE__ */ jsx_runtime488.jsx(InvalidSettingsDialog2, {
|
|
482512
482624
|
settingsErrors: props.settingsErrors,
|
|
482513
482625
|
onContinue: done,
|
|
482514
482626
|
onExit: props.onExit
|
|
@@ -482518,7 +482630,7 @@ async function launchAssistantSessionChooser(root2, props) {
|
|
|
482518
482630
|
const {
|
|
482519
482631
|
AssistantSessionChooser: AssistantSessionChooser2
|
|
482520
482632
|
} = await Promise.resolve().then(() => (init_AssistantSessionChooser(), exports_AssistantSessionChooser));
|
|
482521
|
-
return showSetupDialog(root2, (done) => /* @__PURE__ */
|
|
482633
|
+
return showSetupDialog(root2, (done) => /* @__PURE__ */ jsx_runtime488.jsx(AssistantSessionChooser2, {
|
|
482522
482634
|
sessions: props.sessions,
|
|
482523
482635
|
onSelect: (id) => done(id),
|
|
482524
482636
|
onCancel: () => done(null)
|
|
@@ -482534,7 +482646,7 @@ async function launchAssistantInstallWizard(root2) {
|
|
|
482534
482646
|
const errorPromise = new Promise((_, reject2) => {
|
|
482535
482647
|
rejectWithError = reject2;
|
|
482536
482648
|
});
|
|
482537
|
-
const resultPromise = showSetupDialog(root2, (done) => /* @__PURE__ */
|
|
482649
|
+
const resultPromise = showSetupDialog(root2, (done) => /* @__PURE__ */ jsx_runtime488.jsx(NewInstallWizard2, {
|
|
482538
482650
|
defaultDir,
|
|
482539
482651
|
onInstalled: (dir) => done(dir),
|
|
482540
482652
|
onCancel: () => done(null),
|
|
@@ -482546,7 +482658,7 @@ async function launchTeleportResumeWrapper(root2) {
|
|
|
482546
482658
|
const {
|
|
482547
482659
|
TeleportResumeWrapper: TeleportResumeWrapper2
|
|
482548
482660
|
} = await Promise.resolve().then(() => (init_TeleportResumeWrapper(), exports_TeleportResumeWrapper));
|
|
482549
|
-
return showSetupDialog(root2, (done) => /* @__PURE__ */
|
|
482661
|
+
return showSetupDialog(root2, (done) => /* @__PURE__ */ jsx_runtime488.jsx(TeleportResumeWrapper2, {
|
|
482550
482662
|
onComplete: done,
|
|
482551
482663
|
onCancel: () => done(null),
|
|
482552
482664
|
source: "cliArg"
|
|
@@ -482556,7 +482668,7 @@ async function launchTeleportRepoMismatchDialog(root2, props) {
|
|
|
482556
482668
|
const {
|
|
482557
482669
|
TeleportRepoMismatchDialog: TeleportRepoMismatchDialog2
|
|
482558
482670
|
} = await Promise.resolve().then(() => (init_TeleportRepoMismatchDialog(), exports_TeleportRepoMismatchDialog));
|
|
482559
|
-
return showSetupDialog(root2, (done) => /* @__PURE__ */
|
|
482671
|
+
return showSetupDialog(root2, (done) => /* @__PURE__ */ jsx_runtime488.jsx(TeleportRepoMismatchDialog2, {
|
|
482560
482672
|
targetRepo: props.targetRepo,
|
|
482561
482673
|
initialPaths: props.initialPaths,
|
|
482562
482674
|
onSelectPath: done,
|
|
@@ -482569,23 +482681,23 @@ async function launchResumeChooser(root2, appProps, worktreePathsPromise, resume
|
|
|
482569
482681
|
}, {
|
|
482570
482682
|
App: App3
|
|
482571
482683
|
}] = await Promise.all([worktreePathsPromise, Promise.resolve().then(() => (init_ResumeConversation(), exports_ResumeConversation)), Promise.resolve().then(() => (init_App2(), exports_App))]);
|
|
482572
|
-
await renderAndRun(root2, /* @__PURE__ */
|
|
482684
|
+
await renderAndRun(root2, /* @__PURE__ */ jsx_runtime488.jsx(App3, {
|
|
482573
482685
|
getFpsMetrics: appProps.getFpsMetrics,
|
|
482574
482686
|
stats: appProps.stats,
|
|
482575
482687
|
initialState: appProps.initialState,
|
|
482576
|
-
children: /* @__PURE__ */
|
|
482577
|
-
children: /* @__PURE__ */
|
|
482688
|
+
children: /* @__PURE__ */ jsx_runtime488.jsx(KeybindingSetup, {
|
|
482689
|
+
children: /* @__PURE__ */ jsx_runtime488.jsx(ResumeConversation2, {
|
|
482578
482690
|
...resumeProps,
|
|
482579
482691
|
worktreePaths
|
|
482580
482692
|
})
|
|
482581
482693
|
})
|
|
482582
482694
|
}));
|
|
482583
482695
|
}
|
|
482584
|
-
var
|
|
482696
|
+
var jsx_runtime488;
|
|
482585
482697
|
var init_dialogLaunchers = __esm(() => {
|
|
482586
482698
|
init_interactiveHelpers();
|
|
482587
482699
|
init_KeybindingProviderSetup();
|
|
482588
|
-
|
|
482700
|
+
jsx_runtime488 = __toESM(require_jsx_runtime(), 1);
|
|
482589
482701
|
});
|
|
482590
482702
|
|
|
482591
482703
|
// plugins/bundled/index.ts
|
|
@@ -490587,9 +490699,9 @@ function TeleportProgress(t0) {
|
|
|
490587
490699
|
const t2 = SPINNER_FRAMES3[frame];
|
|
490588
490700
|
let t3;
|
|
490589
490701
|
if ($2[2] !== t2) {
|
|
490590
|
-
t3 = /* @__PURE__ */
|
|
490702
|
+
t3 = /* @__PURE__ */ jsx_runtime489.jsx(ThemedBox_default, {
|
|
490591
490703
|
marginBottom: 1,
|
|
490592
|
-
children: /* @__PURE__ */
|
|
490704
|
+
children: /* @__PURE__ */ jsx_runtime489.jsxs(ThemedText, {
|
|
490593
490705
|
bold: true,
|
|
490594
490706
|
color: "theus",
|
|
490595
490707
|
children: [
|
|
@@ -490605,9 +490717,9 @@ function TeleportProgress(t0) {
|
|
|
490605
490717
|
}
|
|
490606
490718
|
let t4;
|
|
490607
490719
|
if ($2[4] !== sessionId) {
|
|
490608
|
-
t4 = sessionId && /* @__PURE__ */
|
|
490720
|
+
t4 = sessionId && /* @__PURE__ */ jsx_runtime489.jsx(ThemedBox_default, {
|
|
490609
490721
|
marginBottom: 1,
|
|
490610
|
-
children: /* @__PURE__ */
|
|
490722
|
+
children: /* @__PURE__ */ jsx_runtime489.jsx(ThemedText, {
|
|
490611
490723
|
dimColor: true,
|
|
490612
490724
|
children: sessionId
|
|
490613
490725
|
})
|
|
@@ -490637,18 +490749,18 @@ function TeleportProgress(t0) {
|
|
|
490637
490749
|
color3 = undefined;
|
|
490638
490750
|
}
|
|
490639
490751
|
}
|
|
490640
|
-
return /* @__PURE__ */
|
|
490752
|
+
return /* @__PURE__ */ jsx_runtime489.jsxs(ThemedBox_default, {
|
|
490641
490753
|
flexDirection: "row",
|
|
490642
490754
|
children: [
|
|
490643
|
-
/* @__PURE__ */
|
|
490755
|
+
/* @__PURE__ */ jsx_runtime489.jsx(ThemedBox_default, {
|
|
490644
490756
|
width: 2,
|
|
490645
|
-
children: /* @__PURE__ */
|
|
490757
|
+
children: /* @__PURE__ */ jsx_runtime489.jsx(ThemedText, {
|
|
490646
490758
|
color: color3,
|
|
490647
490759
|
dimColor: isPending,
|
|
490648
490760
|
children: icon
|
|
490649
490761
|
})
|
|
490650
490762
|
}),
|
|
490651
|
-
/* @__PURE__ */
|
|
490763
|
+
/* @__PURE__ */ jsx_runtime489.jsx(ThemedText, {
|
|
490652
490764
|
dimColor: isPending,
|
|
490653
490765
|
bold: isCurrent,
|
|
490654
490766
|
children: step.label
|
|
@@ -490664,7 +490776,7 @@ function TeleportProgress(t0) {
|
|
|
490664
490776
|
}
|
|
490665
490777
|
let t6;
|
|
490666
490778
|
if ($2[9] !== t5) {
|
|
490667
|
-
t6 = /* @__PURE__ */
|
|
490779
|
+
t6 = /* @__PURE__ */ jsx_runtime489.jsx(ThemedBox_default, {
|
|
490668
490780
|
flexDirection: "column",
|
|
490669
490781
|
marginLeft: 2,
|
|
490670
490782
|
children: t5
|
|
@@ -490676,7 +490788,7 @@ function TeleportProgress(t0) {
|
|
|
490676
490788
|
}
|
|
490677
490789
|
let t7;
|
|
490678
490790
|
if ($2[11] !== ref || $2[12] !== t3 || $2[13] !== t4 || $2[14] !== t6) {
|
|
490679
|
-
t7 = /* @__PURE__ */
|
|
490791
|
+
t7 = /* @__PURE__ */ jsx_runtime489.jsxs(ThemedBox_default, {
|
|
490680
490792
|
ref,
|
|
490681
490793
|
flexDirection: "column",
|
|
490682
490794
|
paddingX: 1,
|
|
@@ -490700,15 +490812,15 @@ function TeleportProgress(t0) {
|
|
|
490700
490812
|
async function teleportWithProgress(root2, sessionId) {
|
|
490701
490813
|
let setStep = () => {};
|
|
490702
490814
|
function TeleportProgressWrapper() {
|
|
490703
|
-
const [step, _setStep] =
|
|
490815
|
+
const [step, _setStep] = import_react338.useState("validating");
|
|
490704
490816
|
setStep = _setStep;
|
|
490705
|
-
return /* @__PURE__ */
|
|
490817
|
+
return /* @__PURE__ */ jsx_runtime489.jsx(TeleportProgress, {
|
|
490706
490818
|
currentStep: step,
|
|
490707
490819
|
sessionId
|
|
490708
490820
|
});
|
|
490709
490821
|
}
|
|
490710
|
-
root2.render(/* @__PURE__ */
|
|
490711
|
-
children: /* @__PURE__ */
|
|
490822
|
+
root2.render(/* @__PURE__ */ jsx_runtime489.jsx(AppStateProvider, {
|
|
490823
|
+
children: /* @__PURE__ */ jsx_runtime489.jsx(TeleportProgressWrapper, {})
|
|
490712
490824
|
}));
|
|
490713
490825
|
const result = await teleportResumeCodeSession(sessionId, setStep);
|
|
490714
490826
|
setStep("checking_out");
|
|
@@ -490721,15 +490833,15 @@ async function teleportWithProgress(root2, sessionId) {
|
|
|
490721
490833
|
branchName
|
|
490722
490834
|
};
|
|
490723
490835
|
}
|
|
490724
|
-
var
|
|
490836
|
+
var import_react338, jsx_runtime489, SPINNER_FRAMES3, STEPS;
|
|
490725
490837
|
var init_TeleportProgress = __esm(() => {
|
|
490726
490838
|
init_compiler_runtime();
|
|
490727
490839
|
init_figures();
|
|
490728
490840
|
init_ink2();
|
|
490729
490841
|
init_AppState();
|
|
490730
490842
|
init_teleport();
|
|
490731
|
-
|
|
490732
|
-
|
|
490843
|
+
import_react338 = __toESM(require_react(), 1);
|
|
490844
|
+
jsx_runtime489 = __toESM(require_jsx_runtime(), 1);
|
|
490733
490845
|
SPINNER_FRAMES3 = ["\u25D0", "\u25D3", "\u25D1", "\u25D2"];
|
|
490734
490846
|
STEPS = [{
|
|
490735
490847
|
key: "validating",
|
|
@@ -490770,7 +490882,7 @@ function MCPServerDesktopImportDialog(t0) {
|
|
|
490770
490882
|
} else {
|
|
490771
490883
|
t2 = $2[2];
|
|
490772
490884
|
}
|
|
490773
|
-
const [existingServers, setExistingServers] =
|
|
490885
|
+
const [existingServers, setExistingServers] = import_react339.useState(t2);
|
|
490774
490886
|
let t3;
|
|
490775
490887
|
let t4;
|
|
490776
490888
|
if ($2[3] === Symbol.for("react.memo_cache_sentinel")) {
|
|
@@ -490789,7 +490901,7 @@ function MCPServerDesktopImportDialog(t0) {
|
|
|
490789
490901
|
t3 = $2[3];
|
|
490790
490902
|
t4 = $2[4];
|
|
490791
490903
|
}
|
|
490792
|
-
|
|
490904
|
+
import_react339.useEffect(t3, t4);
|
|
490793
490905
|
let t5;
|
|
490794
490906
|
if ($2[5] !== existingServers || $2[6] !== serverNames) {
|
|
490795
490907
|
t5 = serverNames.filter((name) => existingServers[name] !== undefined);
|
|
@@ -490865,7 +490977,7 @@ No servers were imported.`);
|
|
|
490865
490977
|
const t10 = `Found ${t8} MCP ${t9} in Theus Desktop.`;
|
|
490866
490978
|
let t11;
|
|
490867
490979
|
if ($2[16] !== collisions.length) {
|
|
490868
|
-
t11 = collisions.length > 0 && /* @__PURE__ */
|
|
490980
|
+
t11 = collisions.length > 0 && /* @__PURE__ */ jsx_runtime490.jsx(ThemedText, {
|
|
490869
490981
|
color: "warning",
|
|
490870
490982
|
children: "Nota: algunos servidores ya existen con el mismo nombre. Si los seleccionas, se importar\xE1n con un sufijo numerado."
|
|
490871
490983
|
});
|
|
@@ -490876,7 +490988,7 @@ No servers were imported.`);
|
|
|
490876
490988
|
}
|
|
490877
490989
|
let t12;
|
|
490878
490990
|
if ($2[18] === Symbol.for("react.memo_cache_sentinel")) {
|
|
490879
|
-
t12 = /* @__PURE__ */
|
|
490991
|
+
t12 = /* @__PURE__ */ jsx_runtime490.jsx(ThemedText, {
|
|
490880
490992
|
children: "Selecciona los servidores que quieres importar:"
|
|
490881
490993
|
});
|
|
490882
490994
|
$2[18] = t12;
|
|
@@ -490901,7 +491013,7 @@ No servers were imported.`);
|
|
|
490901
491013
|
}
|
|
490902
491014
|
let t15;
|
|
490903
491015
|
if ($2[23] !== handleEscCancel || $2[24] !== onSubmit || $2[25] !== t13 || $2[26] !== t14) {
|
|
490904
|
-
t15 = /* @__PURE__ */
|
|
491016
|
+
t15 = /* @__PURE__ */ jsx_runtime490.jsx(SelectMulti, {
|
|
490905
491017
|
options: t13,
|
|
490906
491018
|
defaultValue: t14,
|
|
490907
491019
|
onSubmit,
|
|
@@ -490918,7 +491030,7 @@ No servers were imported.`);
|
|
|
490918
491030
|
}
|
|
490919
491031
|
let t16;
|
|
490920
491032
|
if ($2[28] !== handleEscCancel || $2[29] !== t10 || $2[30] !== t11 || $2[31] !== t15) {
|
|
490921
|
-
t16 = /* @__PURE__ */
|
|
491033
|
+
t16 = /* @__PURE__ */ jsx_runtime490.jsxs(Dialog, {
|
|
490922
491034
|
title: "Importar servidores MCP desde Theus Desktop",
|
|
490923
491035
|
subtitle: t10,
|
|
490924
491036
|
color: "success",
|
|
@@ -490940,22 +491052,22 @@ No servers were imported.`);
|
|
|
490940
491052
|
}
|
|
490941
491053
|
let t17;
|
|
490942
491054
|
if ($2[33] === Symbol.for("react.memo_cache_sentinel")) {
|
|
490943
|
-
t17 = /* @__PURE__ */
|
|
491055
|
+
t17 = /* @__PURE__ */ jsx_runtime490.jsx(ThemedBox_default, {
|
|
490944
491056
|
paddingX: 1,
|
|
490945
|
-
children: /* @__PURE__ */
|
|
491057
|
+
children: /* @__PURE__ */ jsx_runtime490.jsx(ThemedText, {
|
|
490946
491058
|
dimColor: true,
|
|
490947
491059
|
italic: true,
|
|
490948
|
-
children: /* @__PURE__ */
|
|
491060
|
+
children: /* @__PURE__ */ jsx_runtime490.jsxs(Byline, {
|
|
490949
491061
|
children: [
|
|
490950
|
-
/* @__PURE__ */
|
|
491062
|
+
/* @__PURE__ */ jsx_runtime490.jsx(KeyboardShortcutHint, {
|
|
490951
491063
|
shortcut: "Space",
|
|
490952
491064
|
action: "select"
|
|
490953
491065
|
}),
|
|
490954
|
-
/* @__PURE__ */
|
|
491066
|
+
/* @__PURE__ */ jsx_runtime490.jsx(KeyboardShortcutHint, {
|
|
490955
491067
|
shortcut: "Enter",
|
|
490956
491068
|
action: "confirm"
|
|
490957
491069
|
}),
|
|
490958
|
-
/* @__PURE__ */
|
|
491070
|
+
/* @__PURE__ */ jsx_runtime490.jsx(ConfigurableShortcutHint, {
|
|
490959
491071
|
action: "confirm:no",
|
|
490960
491072
|
context: "Confirmation",
|
|
490961
491073
|
fallback: "Esc",
|
|
@@ -490971,7 +491083,7 @@ No servers were imported.`);
|
|
|
490971
491083
|
}
|
|
490972
491084
|
let t18;
|
|
490973
491085
|
if ($2[34] !== t16) {
|
|
490974
|
-
t18 = /* @__PURE__ */
|
|
491086
|
+
t18 = /* @__PURE__ */ jsx_runtime490.jsxs(jsx_runtime490.Fragment, {
|
|
490975
491087
|
children: [
|
|
490976
491088
|
t16,
|
|
490977
491089
|
t17
|
|
@@ -490984,7 +491096,7 @@ No servers were imported.`);
|
|
|
490984
491096
|
}
|
|
490985
491097
|
return t18;
|
|
490986
491098
|
}
|
|
490987
|
-
var
|
|
491099
|
+
var import_react339, jsx_runtime490;
|
|
490988
491100
|
var init_MCPServerDesktopImportDialog = __esm(() => {
|
|
490989
491101
|
init_compiler_runtime();
|
|
490990
491102
|
init_gracefulShutdown();
|
|
@@ -490996,8 +491108,8 @@ var init_MCPServerDesktopImportDialog = __esm(() => {
|
|
|
490996
491108
|
init_Byline();
|
|
490997
491109
|
init_Dialog();
|
|
490998
491110
|
init_KeyboardShortcutHint();
|
|
490999
|
-
|
|
491000
|
-
|
|
491111
|
+
import_react339 = __toESM(require_react(), 1);
|
|
491112
|
+
jsx_runtime490 = __toESM(require_jsx_runtime(), 1);
|
|
491001
491113
|
});
|
|
491002
491114
|
|
|
491003
491115
|
// entrypoints/mcp.ts
|
|
@@ -491011,7 +491123,7 @@ async function startMCPServer(cwd3, debug3, verbose) {
|
|
|
491011
491123
|
setCwd(cwd3);
|
|
491012
491124
|
const server2 = new Server({
|
|
491013
491125
|
name: "theus/tengu",
|
|
491014
|
-
version: { VERSION: "0.2.
|
|
491126
|
+
version: { VERSION: "0.2.35", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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
491127
|
}, {
|
|
491016
491128
|
capabilities: {
|
|
491017
491129
|
tools: {}
|
|
@@ -491499,9 +491611,9 @@ async function mcpAddFromDesktopHandler(options2) {
|
|
|
491499
491611
|
}
|
|
491500
491612
|
const {
|
|
491501
491613
|
unmount
|
|
491502
|
-
} = await render(/* @__PURE__ */
|
|
491503
|
-
children: /* @__PURE__ */
|
|
491504
|
-
children: /* @__PURE__ */
|
|
491614
|
+
} = await render(/* @__PURE__ */ jsx_runtime491.jsx(AppStateProvider, {
|
|
491615
|
+
children: /* @__PURE__ */ jsx_runtime491.jsx(KeybindingSetup, {
|
|
491616
|
+
children: /* @__PURE__ */ jsx_runtime491.jsx(MCPServerDesktopImportDialog, {
|
|
491505
491617
|
servers,
|
|
491506
491618
|
scope,
|
|
491507
491619
|
onDone: () => {
|
|
@@ -491527,7 +491639,7 @@ async function mcpResetChoicesHandler() {
|
|
|
491527
491639
|
cliOk(`All project-scoped (.mcp.json) server approvals and rejections have been reset.
|
|
491528
491640
|
You will be prompted for approval next time you start Theus.`);
|
|
491529
491641
|
}
|
|
491530
|
-
var
|
|
491642
|
+
var jsx_runtime491;
|
|
491531
491643
|
var init_mcp5 = __esm(() => {
|
|
491532
491644
|
init_p_map();
|
|
491533
491645
|
init_MCPServerDesktopImportDialog();
|
|
@@ -491544,7 +491656,7 @@ var init_mcp5 = __esm(() => {
|
|
|
491544
491656
|
init_gracefulShutdown();
|
|
491545
491657
|
init_json();
|
|
491546
491658
|
init_platform2();
|
|
491547
|
-
|
|
491659
|
+
jsx_runtime491 = __toESM(require_jsx_runtime(), 1);
|
|
491548
491660
|
});
|
|
491549
491661
|
|
|
491550
491662
|
// cli/handlers/plugins.ts
|
|
@@ -492098,11 +492210,11 @@ function SetupNotes(t0) {
|
|
|
492098
492210
|
}
|
|
492099
492211
|
let t1;
|
|
492100
492212
|
if ($2[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
492101
|
-
t1 = /* @__PURE__ */
|
|
492102
|
-
children: /* @__PURE__ */
|
|
492213
|
+
t1 = /* @__PURE__ */ jsx_runtime492.jsx(ThemedBox_default, {
|
|
492214
|
+
children: /* @__PURE__ */ jsx_runtime492.jsxs(ThemedText, {
|
|
492103
492215
|
color: "warning",
|
|
492104
492216
|
children: [
|
|
492105
|
-
/* @__PURE__ */
|
|
492217
|
+
/* @__PURE__ */ jsx_runtime492.jsx(StatusIcon, {
|
|
492106
492218
|
status: "warning",
|
|
492107
492219
|
withSpace: true
|
|
492108
492220
|
}),
|
|
@@ -492124,7 +492236,7 @@ function SetupNotes(t0) {
|
|
|
492124
492236
|
}
|
|
492125
492237
|
let t3;
|
|
492126
492238
|
if ($2[3] !== t2) {
|
|
492127
|
-
t3 = /* @__PURE__ */
|
|
492239
|
+
t3 = /* @__PURE__ */ jsx_runtime492.jsxs(ThemedBox_default, {
|
|
492128
492240
|
flexDirection: "column",
|
|
492129
492241
|
gap: 0,
|
|
492130
492242
|
marginBottom: 1,
|
|
@@ -492141,9 +492253,9 @@ function SetupNotes(t0) {
|
|
|
492141
492253
|
return t3;
|
|
492142
492254
|
}
|
|
492143
492255
|
function _temp296(message, index) {
|
|
492144
|
-
return /* @__PURE__ */
|
|
492256
|
+
return /* @__PURE__ */ jsx_runtime492.jsx(ThemedBox_default, {
|
|
492145
492257
|
marginLeft: 2,
|
|
492146
|
-
children: /* @__PURE__ */
|
|
492258
|
+
children: /* @__PURE__ */ jsx_runtime492.jsxs(ThemedText, {
|
|
492147
492259
|
dimColor: true,
|
|
492148
492260
|
children: [
|
|
492149
492261
|
"\u2022 ",
|
|
@@ -492157,10 +492269,10 @@ function Install({
|
|
|
492157
492269
|
force,
|
|
492158
492270
|
target
|
|
492159
492271
|
}) {
|
|
492160
|
-
const [state2, setState] =
|
|
492272
|
+
const [state2, setState] = import_react340.useState({
|
|
492161
492273
|
type: "checking"
|
|
492162
492274
|
});
|
|
492163
|
-
|
|
492275
|
+
import_react340.useEffect(() => {
|
|
492164
492276
|
async function run7() {
|
|
492165
492277
|
try {
|
|
492166
492278
|
logForDebugging(`Install: Starting installation process (force=${force}, target=${target})`);
|
|
@@ -492248,7 +492360,7 @@ function Install({
|
|
|
492248
492360
|
}
|
|
492249
492361
|
run7();
|
|
492250
492362
|
}, [force, target]);
|
|
492251
|
-
|
|
492363
|
+
import_react340.useEffect(() => {
|
|
492252
492364
|
if (state2.type === "success") {
|
|
492253
492365
|
setTimeout(onDone, 2000, "Theus installation completed successfully", {
|
|
492254
492366
|
display: "system"
|
|
@@ -492259,19 +492371,19 @@ function Install({
|
|
|
492259
492371
|
});
|
|
492260
492372
|
}
|
|
492261
492373
|
}, [state2, onDone]);
|
|
492262
|
-
return /* @__PURE__ */
|
|
492374
|
+
return /* @__PURE__ */ jsx_runtime492.jsxs(ThemedBox_default, {
|
|
492263
492375
|
flexDirection: "column",
|
|
492264
492376
|
marginTop: 1,
|
|
492265
492377
|
children: [
|
|
492266
|
-
state2.type === "checking" && /* @__PURE__ */
|
|
492378
|
+
state2.type === "checking" && /* @__PURE__ */ jsx_runtime492.jsx(ThemedText, {
|
|
492267
492379
|
color: "theus",
|
|
492268
492380
|
children: "Checking installation status..."
|
|
492269
492381
|
}),
|
|
492270
|
-
state2.type === "cleaning-npm" && /* @__PURE__ */
|
|
492382
|
+
state2.type === "cleaning-npm" && /* @__PURE__ */ jsx_runtime492.jsx(ThemedText, {
|
|
492271
492383
|
color: "warning",
|
|
492272
492384
|
children: "Cleaning up old npm installations..."
|
|
492273
492385
|
}),
|
|
492274
|
-
state2.type === "installing" && /* @__PURE__ */
|
|
492386
|
+
state2.type === "installing" && /* @__PURE__ */ jsx_runtime492.jsxs(ThemedText, {
|
|
492275
492387
|
color: "theus",
|
|
492276
492388
|
children: [
|
|
492277
492389
|
"Installing Theus native build ",
|
|
@@ -492279,54 +492391,54 @@ function Install({
|
|
|
492279
492391
|
"..."
|
|
492280
492392
|
]
|
|
492281
492393
|
}),
|
|
492282
|
-
state2.type === "setting-up" && /* @__PURE__ */
|
|
492394
|
+
state2.type === "setting-up" && /* @__PURE__ */ jsx_runtime492.jsx(ThemedText, {
|
|
492283
492395
|
color: "theus",
|
|
492284
492396
|
children: "Setting up launcher and shell integration..."
|
|
492285
492397
|
}),
|
|
492286
|
-
state2.type === "set-up" && /* @__PURE__ */
|
|
492398
|
+
state2.type === "set-up" && /* @__PURE__ */ jsx_runtime492.jsx(SetupNotes, {
|
|
492287
492399
|
messages: state2.messages
|
|
492288
492400
|
}),
|
|
492289
|
-
state2.type === "success" && /* @__PURE__ */
|
|
492401
|
+
state2.type === "success" && /* @__PURE__ */ jsx_runtime492.jsxs(ThemedBox_default, {
|
|
492290
492402
|
flexDirection: "column",
|
|
492291
492403
|
gap: 1,
|
|
492292
492404
|
children: [
|
|
492293
|
-
/* @__PURE__ */
|
|
492405
|
+
/* @__PURE__ */ jsx_runtime492.jsxs(ThemedBox_default, {
|
|
492294
492406
|
children: [
|
|
492295
|
-
/* @__PURE__ */
|
|
492407
|
+
/* @__PURE__ */ jsx_runtime492.jsx(StatusIcon, {
|
|
492296
492408
|
status: "success",
|
|
492297
492409
|
withSpace: true
|
|
492298
492410
|
}),
|
|
492299
|
-
/* @__PURE__ */
|
|
492411
|
+
/* @__PURE__ */ jsx_runtime492.jsx(ThemedText, {
|
|
492300
492412
|
color: "success",
|
|
492301
492413
|
bold: true,
|
|
492302
492414
|
children: "Theus successfully installed!"
|
|
492303
492415
|
})
|
|
492304
492416
|
]
|
|
492305
492417
|
}),
|
|
492306
|
-
/* @__PURE__ */
|
|
492418
|
+
/* @__PURE__ */ jsx_runtime492.jsxs(ThemedBox_default, {
|
|
492307
492419
|
marginLeft: 2,
|
|
492308
492420
|
flexDirection: "column",
|
|
492309
492421
|
gap: 1,
|
|
492310
492422
|
children: [
|
|
492311
|
-
state2.version !== "current" && /* @__PURE__ */
|
|
492423
|
+
state2.version !== "current" && /* @__PURE__ */ jsx_runtime492.jsxs(ThemedBox_default, {
|
|
492312
492424
|
children: [
|
|
492313
|
-
/* @__PURE__ */
|
|
492425
|
+
/* @__PURE__ */ jsx_runtime492.jsx(ThemedText, {
|
|
492314
492426
|
dimColor: true,
|
|
492315
492427
|
children: "Version: "
|
|
492316
492428
|
}),
|
|
492317
|
-
/* @__PURE__ */
|
|
492429
|
+
/* @__PURE__ */ jsx_runtime492.jsx(ThemedText, {
|
|
492318
492430
|
color: "theus",
|
|
492319
492431
|
children: state2.version
|
|
492320
492432
|
})
|
|
492321
492433
|
]
|
|
492322
492434
|
}),
|
|
492323
|
-
/* @__PURE__ */
|
|
492435
|
+
/* @__PURE__ */ jsx_runtime492.jsxs(ThemedBox_default, {
|
|
492324
492436
|
children: [
|
|
492325
|
-
/* @__PURE__ */
|
|
492437
|
+
/* @__PURE__ */ jsx_runtime492.jsx(ThemedText, {
|
|
492326
492438
|
dimColor: true,
|
|
492327
492439
|
children: "Location: "
|
|
492328
492440
|
}),
|
|
492329
|
-
/* @__PURE__ */
|
|
492441
|
+
/* @__PURE__ */ jsx_runtime492.jsx(ThemedText, {
|
|
492330
492442
|
color: "text",
|
|
492331
492443
|
children: getInstallationPath2()
|
|
492332
492444
|
})
|
|
@@ -492334,57 +492446,57 @@ function Install({
|
|
|
492334
492446
|
})
|
|
492335
492447
|
]
|
|
492336
492448
|
}),
|
|
492337
|
-
/* @__PURE__ */
|
|
492449
|
+
/* @__PURE__ */ jsx_runtime492.jsx(ThemedBox_default, {
|
|
492338
492450
|
marginLeft: 2,
|
|
492339
492451
|
flexDirection: "column",
|
|
492340
492452
|
gap: 1,
|
|
492341
|
-
children: /* @__PURE__ */
|
|
492453
|
+
children: /* @__PURE__ */ jsx_runtime492.jsxs(ThemedBox_default, {
|
|
492342
492454
|
marginTop: 1,
|
|
492343
492455
|
children: [
|
|
492344
|
-
/* @__PURE__ */
|
|
492456
|
+
/* @__PURE__ */ jsx_runtime492.jsx(ThemedText, {
|
|
492345
492457
|
dimColor: true,
|
|
492346
492458
|
children: "Next: Run "
|
|
492347
492459
|
}),
|
|
492348
|
-
/* @__PURE__ */
|
|
492460
|
+
/* @__PURE__ */ jsx_runtime492.jsx(ThemedText, {
|
|
492349
492461
|
color: "theus",
|
|
492350
492462
|
bold: true,
|
|
492351
492463
|
children: "theus --help"
|
|
492352
492464
|
}),
|
|
492353
|
-
/* @__PURE__ */
|
|
492465
|
+
/* @__PURE__ */ jsx_runtime492.jsx(ThemedText, {
|
|
492354
492466
|
dimColor: true,
|
|
492355
492467
|
children: " to get started"
|
|
492356
492468
|
})
|
|
492357
492469
|
]
|
|
492358
492470
|
})
|
|
492359
492471
|
}),
|
|
492360
|
-
state2.setupMessages && /* @__PURE__ */
|
|
492472
|
+
state2.setupMessages && /* @__PURE__ */ jsx_runtime492.jsx(SetupNotes, {
|
|
492361
492473
|
messages: state2.setupMessages
|
|
492362
492474
|
})
|
|
492363
492475
|
]
|
|
492364
492476
|
}),
|
|
492365
|
-
state2.type === "error" && /* @__PURE__ */
|
|
492477
|
+
state2.type === "error" && /* @__PURE__ */ jsx_runtime492.jsxs(ThemedBox_default, {
|
|
492366
492478
|
flexDirection: "column",
|
|
492367
492479
|
gap: 1,
|
|
492368
492480
|
children: [
|
|
492369
|
-
/* @__PURE__ */
|
|
492481
|
+
/* @__PURE__ */ jsx_runtime492.jsxs(ThemedBox_default, {
|
|
492370
492482
|
children: [
|
|
492371
|
-
/* @__PURE__ */
|
|
492483
|
+
/* @__PURE__ */ jsx_runtime492.jsx(StatusIcon, {
|
|
492372
492484
|
status: "error",
|
|
492373
492485
|
withSpace: true
|
|
492374
492486
|
}),
|
|
492375
|
-
/* @__PURE__ */
|
|
492487
|
+
/* @__PURE__ */ jsx_runtime492.jsx(ThemedText, {
|
|
492376
492488
|
color: "error",
|
|
492377
492489
|
children: "Installation failed"
|
|
492378
492490
|
})
|
|
492379
492491
|
]
|
|
492380
492492
|
}),
|
|
492381
|
-
/* @__PURE__ */
|
|
492493
|
+
/* @__PURE__ */ jsx_runtime492.jsx(ThemedText, {
|
|
492382
492494
|
color: "error",
|
|
492383
492495
|
children: state2.message
|
|
492384
492496
|
}),
|
|
492385
|
-
/* @__PURE__ */
|
|
492497
|
+
/* @__PURE__ */ jsx_runtime492.jsx(ThemedBox_default, {
|
|
492386
492498
|
marginTop: 1,
|
|
492387
|
-
children: /* @__PURE__ */
|
|
492499
|
+
children: /* @__PURE__ */ jsx_runtime492.jsx(ThemedText, {
|
|
492388
492500
|
dimColor: true,
|
|
492389
492501
|
children: "Try running with --force to override checks"
|
|
492390
492502
|
})
|
|
@@ -492394,7 +492506,7 @@ function Install({
|
|
|
492394
492506
|
]
|
|
492395
492507
|
});
|
|
492396
492508
|
}
|
|
492397
|
-
var
|
|
492509
|
+
var import_react340, jsx_runtime492, install;
|
|
492398
492510
|
var init_install = __esm(() => {
|
|
492399
492511
|
init_compiler_runtime();
|
|
492400
492512
|
init_analytics();
|
|
@@ -492405,8 +492517,8 @@ var init_install = __esm(() => {
|
|
|
492405
492517
|
init_errors();
|
|
492406
492518
|
init_nativeInstaller();
|
|
492407
492519
|
init_settings2();
|
|
492408
|
-
|
|
492409
|
-
|
|
492520
|
+
import_react340 = __toESM(require_react(), 1);
|
|
492521
|
+
jsx_runtime492 = __toESM(require_jsx_runtime(), 1);
|
|
492410
492522
|
install = {
|
|
492411
492523
|
type: "local-jsx",
|
|
492412
492524
|
name: "install",
|
|
@@ -492418,7 +492530,7 @@ var init_install = __esm(() => {
|
|
|
492418
492530
|
const target = nonFlagArgs[0];
|
|
492419
492531
|
const {
|
|
492420
492532
|
unmount
|
|
492421
|
-
} = await render(/* @__PURE__ */
|
|
492533
|
+
} = await render(/* @__PURE__ */ jsx_runtime492.jsx(Install, {
|
|
492422
492534
|
onDone: (result, options2) => {
|
|
492423
492535
|
unmount();
|
|
492424
492536
|
onDone(result, options2);
|
|
@@ -492445,30 +492557,30 @@ async function setupTokenHandler(root2) {
|
|
|
492445
492557
|
ConsoleOAuthFlow: ConsoleOAuthFlow2
|
|
492446
492558
|
} = await Promise.resolve().then(() => (init_ConsoleOAuthFlow(), exports_ConsoleOAuthFlow));
|
|
492447
492559
|
await new Promise((resolve52) => {
|
|
492448
|
-
root2.render(/* @__PURE__ */
|
|
492560
|
+
root2.render(/* @__PURE__ */ jsx_runtime493.jsx(AppStateProvider, {
|
|
492449
492561
|
onChangeAppState,
|
|
492450
|
-
children: /* @__PURE__ */
|
|
492451
|
-
children: /* @__PURE__ */
|
|
492562
|
+
children: /* @__PURE__ */ jsx_runtime493.jsx(KeybindingSetup, {
|
|
492563
|
+
children: /* @__PURE__ */ jsx_runtime493.jsxs(ThemedBox_default, {
|
|
492452
492564
|
flexDirection: "column",
|
|
492453
492565
|
gap: 1,
|
|
492454
492566
|
children: [
|
|
492455
|
-
/* @__PURE__ */
|
|
492456
|
-
version: { VERSION: "0.2.
|
|
492567
|
+
/* @__PURE__ */ jsx_runtime493.jsx(TheusBanner, {
|
|
492568
|
+
version: { VERSION: "0.2.35", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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
492569
|
}),
|
|
492458
|
-
showAuthWarning && /* @__PURE__ */
|
|
492570
|
+
showAuthWarning && /* @__PURE__ */ jsx_runtime493.jsxs(ThemedBox_default, {
|
|
492459
492571
|
flexDirection: "column",
|
|
492460
492572
|
children: [
|
|
492461
|
-
/* @__PURE__ */
|
|
492573
|
+
/* @__PURE__ */ jsx_runtime493.jsx(ThemedText, {
|
|
492462
492574
|
color: "warning",
|
|
492463
492575
|
children: "Warning: You already have authentication configured via environment variable or API key helper."
|
|
492464
492576
|
}),
|
|
492465
|
-
/* @__PURE__ */
|
|
492577
|
+
/* @__PURE__ */ jsx_runtime493.jsx(ThemedText, {
|
|
492466
492578
|
color: "warning",
|
|
492467
492579
|
children: "The setup-token command will create a new OAuth token which you can use instead."
|
|
492468
492580
|
})
|
|
492469
492581
|
]
|
|
492470
492582
|
}),
|
|
492471
|
-
/* @__PURE__ */
|
|
492583
|
+
/* @__PURE__ */ jsx_runtime493.jsx(ConsoleOAuthFlow2, {
|
|
492472
492584
|
onDone: () => {
|
|
492473
492585
|
resolve52();
|
|
492474
492586
|
},
|
|
@@ -492491,9 +492603,9 @@ function DoctorWithPlugins(t0) {
|
|
|
492491
492603
|
useManagePlugins();
|
|
492492
492604
|
let t1;
|
|
492493
492605
|
if ($2[0] !== onDone) {
|
|
492494
|
-
t1 = /* @__PURE__ */
|
|
492606
|
+
t1 = /* @__PURE__ */ jsx_runtime493.jsx(import_react341.default.Suspense, {
|
|
492495
492607
|
fallback: null,
|
|
492496
|
-
children: /* @__PURE__ */
|
|
492608
|
+
children: /* @__PURE__ */ jsx_runtime493.jsx(DoctorLazy, {
|
|
492497
492609
|
onDone
|
|
492498
492610
|
})
|
|
492499
492611
|
});
|
|
@@ -492507,12 +492619,12 @@ function DoctorWithPlugins(t0) {
|
|
|
492507
492619
|
async function doctorHandler(root2) {
|
|
492508
492620
|
logEvent("tengu_doctor_command", {});
|
|
492509
492621
|
await new Promise((resolve52) => {
|
|
492510
|
-
root2.render(/* @__PURE__ */
|
|
492511
|
-
children: /* @__PURE__ */
|
|
492512
|
-
children: /* @__PURE__ */
|
|
492622
|
+
root2.render(/* @__PURE__ */ jsx_runtime493.jsx(AppStateProvider, {
|
|
492623
|
+
children: /* @__PURE__ */ jsx_runtime493.jsx(KeybindingSetup, {
|
|
492624
|
+
children: /* @__PURE__ */ jsx_runtime493.jsx(MCPConnectionManager, {
|
|
492513
492625
|
dynamicMcpConfig: undefined,
|
|
492514
492626
|
isStrictMcpConfig: false,
|
|
492515
|
-
children: /* @__PURE__ */
|
|
492627
|
+
children: /* @__PURE__ */ jsx_runtime493.jsx(DoctorWithPlugins, {
|
|
492516
492628
|
onDone: () => {
|
|
492517
492629
|
resolve52();
|
|
492518
492630
|
}
|
|
@@ -492544,7 +492656,7 @@ async function installHandler(target, options2) {
|
|
|
492544
492656
|
}, {}, args);
|
|
492545
492657
|
});
|
|
492546
492658
|
}
|
|
492547
|
-
var
|
|
492659
|
+
var import_react341, jsx_runtime493, DoctorLazy;
|
|
492548
492660
|
var init_util3 = __esm(() => {
|
|
492549
492661
|
init_compiler_runtime();
|
|
492550
492662
|
init_TheusBanner();
|
|
@@ -492556,9 +492668,9 @@ var init_util3 = __esm(() => {
|
|
|
492556
492668
|
init_AppState();
|
|
492557
492669
|
init_onChangeAppState();
|
|
492558
492670
|
init_auth();
|
|
492559
|
-
|
|
492560
|
-
|
|
492561
|
-
DoctorLazy =
|
|
492671
|
+
import_react341 = __toESM(require_react(), 1);
|
|
492672
|
+
jsx_runtime493 = __toESM(require_jsx_runtime(), 1);
|
|
492673
|
+
DoctorLazy = import_react341.default.lazy(() => Promise.resolve().then(() => (init_Doctor(), exports_Doctor)).then((m) => ({
|
|
492562
492674
|
default: m.Doctor
|
|
492563
492675
|
})));
|
|
492564
492676
|
});
|
|
@@ -493922,7 +494034,7 @@ ${assistantAddendum}` : assistantAddendum;
|
|
|
493922
494034
|
}
|
|
493923
494035
|
}
|
|
493924
494036
|
logForDiagnosticsNoPII("info", "started", {
|
|
493925
|
-
version: { VERSION: "0.2.
|
|
494037
|
+
version: { VERSION: "0.2.35", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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
494038
|
is_native_binary: isInBundledMode()
|
|
493927
494039
|
});
|
|
493928
494040
|
registerCleanup(async () => {
|
|
@@ -494790,7 +494902,7 @@ Usage: theus --remote "your task description"`, () => gracefulShutdown(1));
|
|
|
494790
494902
|
pendingHookMessages
|
|
494791
494903
|
}, renderAndRun);
|
|
494792
494904
|
}
|
|
494793
|
-
}).version(`${{ VERSION: "0.2.
|
|
494905
|
+
}).version(`${{ VERSION: "0.2.35", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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
494906
|
program2.option("-w, --worktree [name]", "Crea un nuevo worktree de git para esta sesi\xF3n (opcionalmente indica un nombre)");
|
|
494795
494907
|
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
494908
|
if (canUserConfigureAdvisor()) {
|
|
@@ -495342,7 +495454,7 @@ if (false) {}
|
|
|
495342
495454
|
async function main2() {
|
|
495343
495455
|
const args = process.argv.slice(2);
|
|
495344
495456
|
if (args.length === 1 && (args[0] === "--version" || args[0] === "-v" || args[0] === "-V")) {
|
|
495345
|
-
console.log(`${{ VERSION: "0.2.
|
|
495457
|
+
console.log(`${{ VERSION: "0.2.35", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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
495458
|
return;
|
|
495347
495459
|
}
|
|
495348
495460
|
const {
|