theus-cli 0.2.2 → 0.2.4
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 +504 -212
- package/package.json +1 -1
package/cli.js
CHANGED
|
@@ -58283,7 +58283,7 @@ async function _executeApiKeyHelper(isNonInteractiveSession) {
|
|
|
58283
58283
|
if (isApiKeyHelperFromProjectOrLocalSettings()) {
|
|
58284
58284
|
const hasTrust = checkHasTrustDialogAccepted();
|
|
58285
58285
|
if (!hasTrust && !isNonInteractiveSession) {
|
|
58286
|
-
const error40 = new Error(`Security: apiKeyHelper executed before workspace trust is confirmed. If you see this message, post in ${{ VERSION: "0.2.
|
|
58286
|
+
const error40 = new Error(`Security: apiKeyHelper executed before workspace trust is confirmed. If you see this message, post in ${{ VERSION: "0.2.4", BUILD_TIME: "1970-01-01T00:00:00.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}.`);
|
|
58287
58287
|
logAntError("apiKeyHelper invoked before trust check", error40);
|
|
58288
58288
|
logEvent("tengu_apiKeyHelper_missing_trust11", {});
|
|
58289
58289
|
return null;
|
|
@@ -58327,7 +58327,7 @@ async function runAwsAuthRefresh() {
|
|
|
58327
58327
|
if (isAwsAuthRefreshFromProjectSettings()) {
|
|
58328
58328
|
const hasTrust = checkHasTrustDialogAccepted();
|
|
58329
58329
|
if (!hasTrust && !getIsNonInteractiveSession()) {
|
|
58330
|
-
const error40 = new Error(`Security: awsAuthRefresh executed before workspace trust is confirmed. If you see this message, post in ${{ VERSION: "0.2.
|
|
58330
|
+
const error40 = new Error(`Security: awsAuthRefresh executed before workspace trust is confirmed. If you see this message, post in ${{ VERSION: "0.2.4", BUILD_TIME: "1970-01-01T00:00:00.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}.`);
|
|
58331
58331
|
logAntError("awsAuthRefresh invoked before trust check", error40);
|
|
58332
58332
|
logEvent("tengu_awsAuthRefresh_missing_trust", {});
|
|
58333
58333
|
return false;
|
|
@@ -58387,7 +58387,7 @@ async function getAwsCredsFromCredentialExport() {
|
|
|
58387
58387
|
if (isAwsCredentialExportFromProjectSettings()) {
|
|
58388
58388
|
const hasTrust = checkHasTrustDialogAccepted();
|
|
58389
58389
|
if (!hasTrust && !getIsNonInteractiveSession()) {
|
|
58390
|
-
const error40 = new Error(`Security: awsCredentialExport executed before workspace trust is confirmed. If you see this message, post in ${{ VERSION: "0.2.
|
|
58390
|
+
const error40 = new Error(`Security: awsCredentialExport executed before workspace trust is confirmed. If you see this message, post in ${{ VERSION: "0.2.4", BUILD_TIME: "1970-01-01T00:00:00.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}.`);
|
|
58391
58391
|
logAntError("awsCredentialExport invoked before trust check", error40);
|
|
58392
58392
|
logEvent("tengu_awsCredentialExport_missing_trust", {});
|
|
58393
58393
|
return null;
|
|
@@ -58472,7 +58472,7 @@ async function runGcpAuthRefresh() {
|
|
|
58472
58472
|
if (isGcpAuthRefreshFromProjectSettings()) {
|
|
58473
58473
|
const hasTrust = checkHasTrustDialogAccepted();
|
|
58474
58474
|
if (!hasTrust && !getIsNonInteractiveSession()) {
|
|
58475
|
-
const error40 = new Error(`Security: gcpAuthRefresh executed before workspace trust is confirmed. If you see this message, post in ${{ VERSION: "0.2.
|
|
58475
|
+
const error40 = new Error(`Security: gcpAuthRefresh executed before workspace trust is confirmed. If you see this message, post in ${{ VERSION: "0.2.4", BUILD_TIME: "1970-01-01T00:00:00.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}.`);
|
|
58476
58476
|
logAntError("gcpAuthRefresh invoked before trust check", error40);
|
|
58477
58477
|
logEvent("tengu_gcpAuthRefresh_missing_trust", {});
|
|
58478
58478
|
return false;
|
|
@@ -59167,7 +59167,7 @@ var init_auth = __esm(() => {
|
|
|
59167
59167
|
|
|
59168
59168
|
// utils/userAgent.ts
|
|
59169
59169
|
function getTheusCodeUserAgent() {
|
|
59170
|
-
return `theus-code/${{ VERSION: "0.2.
|
|
59170
|
+
return `theus-code/${{ VERSION: "0.2.4", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION}`;
|
|
59171
59171
|
}
|
|
59172
59172
|
|
|
59173
59173
|
// utils/workloadContext.ts
|
|
@@ -59189,7 +59189,7 @@ function getUserAgent() {
|
|
|
59189
59189
|
const clientApp = process.env.THEUS_AGENT_SDK_CLIENT_APP ? `, client-app/${process.env.THEUS_AGENT_SDK_CLIENT_APP}` : "";
|
|
59190
59190
|
const workload = getWorkload();
|
|
59191
59191
|
const workloadSuffix = workload ? `, workload/${workload}` : "";
|
|
59192
|
-
return `theus-cli/${{ VERSION: "0.2.
|
|
59192
|
+
return `theus-cli/${{ VERSION: "0.2.4", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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})`;
|
|
59193
59193
|
}
|
|
59194
59194
|
function getMCPUserAgent() {
|
|
59195
59195
|
const parts = [];
|
|
@@ -59203,7 +59203,7 @@ function getMCPUserAgent() {
|
|
|
59203
59203
|
parts.push(`client-app/${process.env.THEUS_AGENT_SDK_CLIENT_APP}`);
|
|
59204
59204
|
}
|
|
59205
59205
|
const suffix = parts.length > 0 ? ` (${parts.join(", ")})` : "";
|
|
59206
|
-
return `theus-code/${{ VERSION: "0.2.
|
|
59206
|
+
return `theus-code/${{ VERSION: "0.2.4", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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}`;
|
|
59207
59207
|
}
|
|
59208
59208
|
function getWebFetchUserAgent() {
|
|
59209
59209
|
return `Theus-User (${getTheusCodeUserAgent()}; +https://support.theus.pe/)`;
|
|
@@ -59341,7 +59341,7 @@ var init_user = __esm(() => {
|
|
|
59341
59341
|
deviceId,
|
|
59342
59342
|
sessionId: getSessionId(),
|
|
59343
59343
|
email: getEmail(),
|
|
59344
|
-
appVersion: { VERSION: "0.2.
|
|
59344
|
+
appVersion: { VERSION: "0.2.4", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
|
|
59345
59345
|
platform: getHostPlatformForAnalytics(),
|
|
59346
59346
|
organizationUuid,
|
|
59347
59347
|
accountUuid,
|
|
@@ -61056,7 +61056,7 @@ var init_metadata = __esm(() => {
|
|
|
61056
61056
|
COMPOUND_OPERATOR_REGEX = /\s*(?:&&|\|\||[;|])\s*/;
|
|
61057
61057
|
WHITESPACE_REGEX = /\s+/;
|
|
61058
61058
|
getVersionBase = memoize_default(() => {
|
|
61059
|
-
const match = { VERSION: "0.2.
|
|
61059
|
+
const match = { VERSION: "0.2.4", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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]+)?/);
|
|
61060
61060
|
return match ? match[0] : undefined;
|
|
61061
61061
|
});
|
|
61062
61062
|
buildEnvContext = memoize_default(async () => {
|
|
@@ -61096,9 +61096,9 @@ var init_metadata = __esm(() => {
|
|
|
61096
61096
|
isGithubAction: isEnvTruthy(process.env.GITHUB_ACTIONS),
|
|
61097
61097
|
isTheusCodeAction: isEnvTruthy(process.env.THEUS_CODE_ACTION),
|
|
61098
61098
|
isTheusAiAuth: isTheusAISubscriber(),
|
|
61099
|
-
version: { VERSION: "0.2.
|
|
61099
|
+
version: { VERSION: "0.2.4", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
|
|
61100
61100
|
versionBase: getVersionBase(),
|
|
61101
|
-
buildTime: { VERSION: "0.2.
|
|
61101
|
+
buildTime: { VERSION: "0.2.4", BUILD_TIME: "1970-01-01T00:00:00.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,
|
|
61102
61102
|
deploymentEnvironment: env3.detectDeploymentEnvironment(),
|
|
61103
61103
|
...isEnvTruthy(process.env.GITHUB_ACTIONS) && {
|
|
61104
61104
|
githubEventName: process.env.GITHUB_EVENT_NAME,
|
|
@@ -61764,7 +61764,7 @@ function initialize1PEventLogging() {
|
|
|
61764
61764
|
const platform2 = getPlatform();
|
|
61765
61765
|
const attributes = {
|
|
61766
61766
|
[ATTR_SERVICE_NAME]: "theus-code",
|
|
61767
|
-
[ATTR_SERVICE_VERSION]: { VERSION: "0.2.
|
|
61767
|
+
[ATTR_SERVICE_VERSION]: { VERSION: "0.2.4", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
|
|
61768
61768
|
};
|
|
61769
61769
|
if (platform2 === "wsl") {
|
|
61770
61770
|
const wslVersion = getWslVersion();
|
|
@@ -61791,7 +61791,7 @@ function initialize1PEventLogging() {
|
|
|
61791
61791
|
})
|
|
61792
61792
|
]
|
|
61793
61793
|
});
|
|
61794
|
-
firstPartyEventLogger = firstPartyEventLoggerProvider.getLogger("com.theus.theus_code.events", { VERSION: "0.2.
|
|
61794
|
+
firstPartyEventLogger = firstPartyEventLoggerProvider.getLogger("com.theus.theus_code.events", { VERSION: "0.2.4", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION);
|
|
61795
61795
|
}
|
|
61796
61796
|
async function reinitialize1PEventLoggingIfConfigChanged() {
|
|
61797
61797
|
if (!is1PEventLoggingEnabled() || !firstPartyEventLoggerProvider) {
|
|
@@ -63662,7 +63662,7 @@ function getAttributionHeader(fingerprint) {
|
|
|
63662
63662
|
if (!isAttributionHeaderEnabled()) {
|
|
63663
63663
|
return "";
|
|
63664
63664
|
}
|
|
63665
|
-
const version2 = `${{ VERSION: "0.2.
|
|
63665
|
+
const version2 = `${{ VERSION: "0.2.4", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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}`;
|
|
63666
63666
|
const entrypoint = process.env.THEUS_CODE_ENTRYPOINT ?? "unknown";
|
|
63667
63667
|
const cch = "";
|
|
63668
63668
|
const workload = getWorkload();
|
|
@@ -107180,7 +107180,7 @@ Complete the user's request by providing accurate, documentation-based guidance.
|
|
|
107180
107180
|
}
|
|
107181
107181
|
function getFeedbackGuideline() {
|
|
107182
107182
|
if (isUsing3PServices()) {
|
|
107183
|
-
return `- When you cannot find an answer or the feature doesn't exist, direct the user to ${{ VERSION: "0.2.
|
|
107183
|
+
return `- When you cannot find an answer or the feature doesn't exist, direct the user to ${{ VERSION: "0.2.4", BUILD_TIME: "1970-01-01T00:00:00.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}`;
|
|
107184
107184
|
}
|
|
107185
107185
|
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";
|
|
107186
107186
|
}
|
|
@@ -165882,7 +165882,7 @@ function getTelemetryAttributes() {
|
|
|
165882
165882
|
attributes["session.id"] = sessionId;
|
|
165883
165883
|
}
|
|
165884
165884
|
if (shouldIncludeAttribute("OTEL_METRICS_INCLUDE_VERSION")) {
|
|
165885
|
-
attributes["app.version"] = { VERSION: "0.2.
|
|
165885
|
+
attributes["app.version"] = { VERSION: "0.2.4", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION;
|
|
165886
165886
|
}
|
|
165887
165887
|
const oauthAccount = getOauthAccountInfo();
|
|
165888
165888
|
if (oauthAccount) {
|
|
@@ -201928,7 +201928,7 @@ function getInstallationEnv() {
|
|
|
201928
201928
|
return;
|
|
201929
201929
|
}
|
|
201930
201930
|
function getTheusCodeVersion() {
|
|
201931
|
-
return { VERSION: "0.2.
|
|
201931
|
+
return { VERSION: "0.2.4", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION;
|
|
201932
201932
|
}
|
|
201933
201933
|
async function getInstalledVSCodeExtensionVersion(command) {
|
|
201934
201934
|
const { stdout } = await execFileNoThrow(command, ["--list-extensions", "--show-versions"], {
|
|
@@ -203446,7 +203446,7 @@ async function getMcpHeadersFromHelper(serverName, config2) {
|
|
|
203446
203446
|
if ("scope" in config2 && isMcpServerFromProjectOrLocalSettings(config2) && !getIsNonInteractiveSession()) {
|
|
203447
203447
|
const hasTrust = checkHasTrustDialogAccepted();
|
|
203448
203448
|
if (!hasTrust) {
|
|
203449
|
-
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.
|
|
203449
|
+
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.4", BUILD_TIME: "1970-01-01T00:00:00.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}.`);
|
|
203450
203450
|
logAntError("MCP headersHelper invoked before trust check", error40);
|
|
203451
203451
|
logEvent("tengu_mcp_headersHelper_missing_trust", {});
|
|
203452
203452
|
return null;
|
|
@@ -204656,7 +204656,7 @@ async function setupSdkMcpClients(sdkMcpConfigs, sendMcpMessage) {
|
|
|
204656
204656
|
const client2 = new Client({
|
|
204657
204657
|
name: "theus-code",
|
|
204658
204658
|
title: "Theus",
|
|
204659
|
-
version: { VERSION: "0.2.
|
|
204659
|
+
version: { VERSION: "0.2.4", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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",
|
|
204660
204660
|
description: "Theus's agentic coding tool",
|
|
204661
204661
|
websiteUrl: PRODUCT_URL
|
|
204662
204662
|
}, {
|
|
@@ -205010,7 +205010,7 @@ var init_client5 = __esm(() => {
|
|
|
205010
205010
|
const client2 = new Client({
|
|
205011
205011
|
name: "theus-code",
|
|
205012
205012
|
title: "Theus",
|
|
205013
|
-
version: { VERSION: "0.2.
|
|
205013
|
+
version: { VERSION: "0.2.4", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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",
|
|
205014
205014
|
description: "Theus's agentic coding tool",
|
|
205015
205015
|
websiteUrl: PRODUCT_URL
|
|
205016
205016
|
}, {
|
|
@@ -215569,7 +215569,7 @@ async function initializeBetaTracing(resource) {
|
|
|
215569
215569
|
});
|
|
215570
215570
|
logs.setGlobalLoggerProvider(loggerProvider);
|
|
215571
215571
|
setLoggerProvider(loggerProvider);
|
|
215572
|
-
const eventLogger = logs.getLogger("com.theus.theus_code.events", { VERSION: "0.2.
|
|
215572
|
+
const eventLogger = logs.getLogger("com.theus.theus_code.events", { VERSION: "0.2.4", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION);
|
|
215573
215573
|
setEventLogger(eventLogger);
|
|
215574
215574
|
process.on("beforeExit", async () => {
|
|
215575
215575
|
await loggerProvider?.forceFlush();
|
|
@@ -215609,7 +215609,7 @@ async function initializeTelemetry() {
|
|
|
215609
215609
|
const platform4 = getPlatform();
|
|
215610
215610
|
const baseAttributes = {
|
|
215611
215611
|
[ATTR_SERVICE_NAME]: "theus-code",
|
|
215612
|
-
[ATTR_SERVICE_VERSION]: { VERSION: "0.2.
|
|
215612
|
+
[ATTR_SERVICE_VERSION]: { VERSION: "0.2.4", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
|
|
215613
215613
|
};
|
|
215614
215614
|
if (platform4 === "wsl") {
|
|
215615
215615
|
const wslVersion = getWslVersion();
|
|
@@ -215654,7 +215654,7 @@ async function initializeTelemetry() {
|
|
|
215654
215654
|
} catch {}
|
|
215655
215655
|
};
|
|
215656
215656
|
registerCleanup(shutdownTelemetry2);
|
|
215657
|
-
return meterProvider2.getMeter("com.theus.theus_code", { VERSION: "0.2.
|
|
215657
|
+
return meterProvider2.getMeter("com.theus.theus_code", { VERSION: "0.2.4", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION);
|
|
215658
215658
|
}
|
|
215659
215659
|
const meterProvider = new MeterProvider({
|
|
215660
215660
|
resource,
|
|
@@ -215674,7 +215674,7 @@ async function initializeTelemetry() {
|
|
|
215674
215674
|
});
|
|
215675
215675
|
logs.setGlobalLoggerProvider(loggerProvider);
|
|
215676
215676
|
setLoggerProvider(loggerProvider);
|
|
215677
|
-
const eventLogger = logs.getLogger("com.theus.theus_code.events", { VERSION: "0.2.
|
|
215677
|
+
const eventLogger = logs.getLogger("com.theus.theus_code.events", { VERSION: "0.2.4", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION);
|
|
215678
215678
|
setEventLogger(eventLogger);
|
|
215679
215679
|
logForDebugging("[3P telemetry] Event logger set successfully");
|
|
215680
215680
|
process.on("beforeExit", async () => {
|
|
@@ -215736,7 +215736,7 @@ Current timeout: ${timeoutMs}ms
|
|
|
215736
215736
|
}
|
|
215737
215737
|
};
|
|
215738
215738
|
registerCleanup(shutdownTelemetry);
|
|
215739
|
-
return meterProvider.getMeter("com.theus.theus_code", { VERSION: "0.2.
|
|
215739
|
+
return meterProvider.getMeter("com.theus.theus_code", { VERSION: "0.2.4", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION);
|
|
215740
215740
|
}
|
|
215741
215741
|
async function flushTelemetry() {
|
|
215742
215742
|
const meterProvider = getMeterProvider();
|
|
@@ -216276,7 +216276,7 @@ async function installOrUpdateTheusPackage(channel2, specificVersion) {
|
|
|
216276
216276
|
return "install_failed";
|
|
216277
216277
|
}
|
|
216278
216278
|
const versionSpec = specificVersion ? specificVersion : channel2 === "stable" ? "stable" : "latest";
|
|
216279
|
-
const result = await execFileNoThrowWithCwd("npm", ["install", `${{ VERSION: "0.2.
|
|
216279
|
+
const result = await execFileNoThrowWithCwd("npm", ["install", `${{ VERSION: "0.2.4", BUILD_TIME: "1970-01-01T00:00:00.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 });
|
|
216280
216280
|
if (result.code !== 0) {
|
|
216281
216281
|
const error40 = new Error(`Failed to install Theus CLI package: ${result.stderr}`);
|
|
216282
216282
|
logError2(error40);
|
|
@@ -216422,9 +216422,9 @@ async function assertMinVersion() {
|
|
|
216422
216422
|
if (false) {}
|
|
216423
216423
|
try {
|
|
216424
216424
|
const versionConfig = await getDynamicConfig_BLOCKS_ON_INIT("tengu_version_config", { minVersion: "0.0.0" });
|
|
216425
|
-
if (versionConfig.minVersion && lt({ VERSION: "0.2.
|
|
216425
|
+
if (versionConfig.minVersion && lt({ VERSION: "0.2.4", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
|
|
216426
216426
|
console.error(`
|
|
216427
|
-
It looks like your version of Theus (${{ VERSION: "0.2.
|
|
216427
|
+
It looks like your version of Theus (${{ VERSION: "0.2.4", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.
|
|
216428
216428
|
A newer version (${versionConfig.minVersion} or higher) is required to continue.
|
|
216429
216429
|
|
|
216430
216430
|
To update, please run:
|
|
@@ -216565,7 +216565,7 @@ async function getInstallationPrefix() {
|
|
|
216565
216565
|
return prefixResult.stdout.trim();
|
|
216566
216566
|
}
|
|
216567
216567
|
function getGlobalInstallPackageManager() {
|
|
216568
|
-
if ({ VERSION: "0.2.
|
|
216568
|
+
if ({ VERSION: "0.2.4", BUILD_TIME: "1970-01-01T00:00:00.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") {
|
|
216569
216569
|
return "npm";
|
|
216570
216570
|
}
|
|
216571
216571
|
return env3.isRunningWithBun() ? "bun" : "npm";
|
|
@@ -216590,7 +216590,7 @@ async function checkGlobalInstallPermissions() {
|
|
|
216590
216590
|
}
|
|
216591
216591
|
async function getLatestVersion(channel2) {
|
|
216592
216592
|
const npmTag = channel2 === "stable" ? "stable" : "latest";
|
|
216593
|
-
const result = await execFileNoThrowWithCwd("npm", ["view", `${{ VERSION: "0.2.
|
|
216593
|
+
const result = await execFileNoThrowWithCwd("npm", ["view", `${{ VERSION: "0.2.4", BUILD_TIME: "1970-01-01T00:00:00.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() });
|
|
216594
216594
|
if (result.code !== 0) {
|
|
216595
216595
|
logForDebugging(`npm view failed with code ${result.code}`);
|
|
216596
216596
|
if (result.stderr) {
|
|
@@ -216606,7 +216606,7 @@ async function getLatestVersion(channel2) {
|
|
|
216606
216606
|
return result.stdout.trim();
|
|
216607
216607
|
}
|
|
216608
216608
|
async function getNpmDistTags() {
|
|
216609
|
-
const result = await execFileNoThrowWithCwd("npm", ["view", { VERSION: "0.2.
|
|
216609
|
+
const result = await execFileNoThrowWithCwd("npm", ["view", { VERSION: "0.2.4", BUILD_TIME: "1970-01-01T00:00:00.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() });
|
|
216610
216610
|
if (result.code !== 0) {
|
|
216611
216611
|
logForDebugging(`npm view dist-tags failed with code ${result.code}`);
|
|
216612
216612
|
return { latest: null, stable: null };
|
|
@@ -216646,7 +216646,7 @@ async function installGlobalPackage(specificVersion) {
|
|
|
216646
216646
|
logError2(new AutoUpdaterError("Another process is currently installing an update"));
|
|
216647
216647
|
logEvent("tengu_auto_updater_lock_contention", {
|
|
216648
216648
|
pid: process.pid,
|
|
216649
|
-
currentVersion: { VERSION: "0.2.
|
|
216649
|
+
currentVersion: { VERSION: "0.2.4", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
|
|
216650
216650
|
});
|
|
216651
216651
|
return "in_progress";
|
|
216652
216652
|
}
|
|
@@ -216655,7 +216655,7 @@ async function installGlobalPackage(specificVersion) {
|
|
|
216655
216655
|
if (!env3.isRunningWithBun() && env3.isNpmFromWindowsPath()) {
|
|
216656
216656
|
logError2(new Error("Windows NPM detected in WSL environment"));
|
|
216657
216657
|
logEvent("tengu_auto_updater_windows_npm_in_wsl", {
|
|
216658
|
-
currentVersion: { VERSION: "0.2.
|
|
216658
|
+
currentVersion: { VERSION: "0.2.4", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
|
|
216659
216659
|
});
|
|
216660
216660
|
console.error(`
|
|
216661
216661
|
Error: Windows NPM detected in WSL
|
|
@@ -216674,7 +216674,7 @@ To fix this issue:
|
|
|
216674
216674
|
if (!hasPermissions) {
|
|
216675
216675
|
return "no_permissions";
|
|
216676
216676
|
}
|
|
216677
|
-
const packageSpec = specificVersion ? `${{ VERSION: "0.2.
|
|
216677
|
+
const packageSpec = specificVersion ? `${{ VERSION: "0.2.4", BUILD_TIME: "1970-01-01T00:00:00.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.4", BUILD_TIME: "1970-01-01T00:00:00.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;
|
|
216678
216678
|
const packageManager = getGlobalInstallPackageManager();
|
|
216679
216679
|
const installResult = await execFileNoThrowWithCwd(packageManager, ["install", "-g", packageSpec], { cwd: homedir18() });
|
|
216680
216680
|
if (installResult.code !== 0) {
|
|
@@ -217002,8 +217002,8 @@ async function detectMultipleInstallations() {
|
|
|
217002
217002
|
installations.push({ type: "npm-local", path: localPath });
|
|
217003
217003
|
}
|
|
217004
217004
|
const packagesToCheck = ["@theus-ai/theus-code"];
|
|
217005
|
-
if ({ VERSION: "0.2.
|
|
217006
|
-
packagesToCheck.push({ VERSION: "0.2.
|
|
217005
|
+
if ({ VERSION: "0.2.4", BUILD_TIME: "1970-01-01T00:00:00.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.4", BUILD_TIME: "1970-01-01T00:00:00.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") {
|
|
217006
|
+
packagesToCheck.push({ VERSION: "0.2.4", BUILD_TIME: "1970-01-01T00:00:00.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);
|
|
217007
217007
|
}
|
|
217008
217008
|
const npmResult = await execFileNoThrow("npm", [
|
|
217009
217009
|
"-g",
|
|
@@ -217186,7 +217186,7 @@ function detectLinuxGlobPatternWarnings() {
|
|
|
217186
217186
|
}
|
|
217187
217187
|
async function getDoctorDiagnostic() {
|
|
217188
217188
|
const installationType = await getCurrentInstallationType();
|
|
217189
|
-
const version2 = { VERSION: "0.2.
|
|
217189
|
+
const version2 = { VERSION: "0.2.4", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.4", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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";
|
|
217190
217190
|
const installationPath = await getInstallationPath();
|
|
217191
217191
|
const invokedBinary = getInvokedBinary();
|
|
217192
217192
|
const multipleInstallations = await detectMultipleInstallations();
|
|
@@ -217198,8 +217198,8 @@ async function getDoctorDiagnostic() {
|
|
|
217198
217198
|
for (const install of npmInstalls) {
|
|
217199
217199
|
if (install.type === "npm-global") {
|
|
217200
217200
|
let uninstallCmd = "npm -g uninstall @theus-ai/theus-code";
|
|
217201
|
-
if ({ VERSION: "0.2.
|
|
217202
|
-
uninstallCmd += ` && npm -g uninstall ${{ VERSION: "0.2.
|
|
217201
|
+
if ({ VERSION: "0.2.4", BUILD_TIME: "1970-01-01T00:00:00.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.4", BUILD_TIME: "1970-01-01T00:00:00.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") {
|
|
217202
|
+
uninstallCmd += ` && npm -g uninstall ${{ VERSION: "0.2.4", BUILD_TIME: "1970-01-01T00:00:00.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}`;
|
|
217203
217203
|
}
|
|
217204
217204
|
warnings.push({
|
|
217205
217205
|
issue: `Leftover npm global installation at ${install.path}`,
|
|
@@ -217311,7 +217311,7 @@ async function getLatestVersionFromArtifactory(tag2 = "latest") {
|
|
|
217311
217311
|
const startTime2 = Date.now();
|
|
217312
217312
|
const { stdout, code, stderr } = await execFileNoThrowWithCwd("npm", [
|
|
217313
217313
|
"view",
|
|
217314
|
-
`${{ VERSION: "0.2.
|
|
217314
|
+
`${{ VERSION: "0.2.4", BUILD_TIME: "1970-01-01T00:00:00.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}`,
|
|
217315
217315
|
"version",
|
|
217316
217316
|
"--prefer-online",
|
|
217317
217317
|
"--registry",
|
|
@@ -217335,7 +217335,7 @@ async function getLatestVersionFromArtifactory(tag2 = "latest") {
|
|
|
217335
217335
|
latency_ms: latencyMs,
|
|
217336
217336
|
source_npm: true
|
|
217337
217337
|
});
|
|
217338
|
-
logForDebugging(`npm view ${{ VERSION: "0.2.
|
|
217338
|
+
logForDebugging(`npm view ${{ VERSION: "0.2.4", BUILD_TIME: "1970-01-01T00:00:00.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}`);
|
|
217339
217339
|
const latestVersion = stdout.trim();
|
|
217340
217340
|
return latestVersion;
|
|
217341
217341
|
}
|
|
@@ -217391,7 +217391,7 @@ async function downloadVersionFromArtifactory(version2, stagingPath) {
|
|
|
217391
217391
|
const fs3 = getFsImplementation();
|
|
217392
217392
|
await fs3.rm(stagingPath, { recursive: true, force: true });
|
|
217393
217393
|
const platform4 = getPlatform2();
|
|
217394
|
-
const platformPackageName = `${{ VERSION: "0.2.
|
|
217394
|
+
const platformPackageName = `${{ VERSION: "0.2.4", BUILD_TIME: "1970-01-01T00:00:00.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}`;
|
|
217395
217395
|
logForDebugging(`Fetching integrity hash for ${platformPackageName}@${version2}`);
|
|
217396
217396
|
const {
|
|
217397
217397
|
stdout: integrityOutput,
|
|
@@ -217420,7 +217420,7 @@ async function downloadVersionFromArtifactory(version2, stagingPath) {
|
|
|
217420
217420
|
name: "theus-native-installer",
|
|
217421
217421
|
version: "0.0.1",
|
|
217422
217422
|
dependencies: {
|
|
217423
|
-
[{ VERSION: "0.2.
|
|
217423
|
+
[{ VERSION: "0.2.4", BUILD_TIME: "1970-01-01T00:00:00.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
|
|
217424
217424
|
}
|
|
217425
217425
|
};
|
|
217426
217426
|
const packageLock = {
|
|
@@ -217433,10 +217433,10 @@ async function downloadVersionFromArtifactory(version2, stagingPath) {
|
|
|
217433
217433
|
name: "theus-native-installer",
|
|
217434
217434
|
version: "0.0.1",
|
|
217435
217435
|
dependencies: {
|
|
217436
|
-
[{ VERSION: "0.2.
|
|
217436
|
+
[{ VERSION: "0.2.4", BUILD_TIME: "1970-01-01T00:00:00.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
|
|
217437
217437
|
}
|
|
217438
217438
|
},
|
|
217439
|
-
[`node_modules/${{ VERSION: "0.2.
|
|
217439
|
+
[`node_modules/${{ VERSION: "0.2.4", BUILD_TIME: "1970-01-01T00:00:00.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}`]: {
|
|
217440
217440
|
version: version2,
|
|
217441
217441
|
optionalDependencies: {
|
|
217442
217442
|
[platformPackageName]: version2
|
|
@@ -217458,7 +217458,7 @@ async function downloadVersionFromArtifactory(version2, stagingPath) {
|
|
|
217458
217458
|
if (result.code !== 0) {
|
|
217459
217459
|
throw new Error(`npm ci failed with code ${result.code}: ${result.stderr}`);
|
|
217460
217460
|
}
|
|
217461
|
-
logForDebugging(`Successfully downloaded and verified ${{ VERSION: "0.2.
|
|
217461
|
+
logForDebugging(`Successfully downloaded and verified ${{ VERSION: "0.2.4", BUILD_TIME: "1970-01-01T00:00:00.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}`);
|
|
217462
217462
|
}
|
|
217463
217463
|
function getStallTimeoutMs() {
|
|
217464
217464
|
return Number(process.env.THEUS_CODE_STALL_TIMEOUT_MS_FOR_TESTING) || DEFAULT_STALL_TIMEOUT_MS;
|
|
@@ -218121,8 +218121,8 @@ async function updateLatest(channelOrVersion, forceReinstall = false) {
|
|
|
218121
218121
|
const maxVersion = await getMaxVersion();
|
|
218122
218122
|
if (maxVersion && gt(version2, maxVersion)) {
|
|
218123
218123
|
logForDebugging(`Native installer: maxVersion ${maxVersion} is set, capping update from ${version2} to ${maxVersion}`);
|
|
218124
|
-
if (gte({ VERSION: "0.2.
|
|
218125
|
-
logForDebugging(`Native installer: current version ${{ VERSION: "0.2.
|
|
218124
|
+
if (gte({ VERSION: "0.2.4", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
|
|
218125
|
+
logForDebugging(`Native installer: current version ${{ VERSION: "0.2.4", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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`);
|
|
218126
218126
|
logEvent("tengu_native_update_skipped_max_version", {
|
|
218127
218127
|
latency_ms: Date.now() - startTime2,
|
|
218128
218128
|
max_version: maxVersion,
|
|
@@ -218133,7 +218133,7 @@ async function updateLatest(channelOrVersion, forceReinstall = false) {
|
|
|
218133
218133
|
version2 = maxVersion;
|
|
218134
218134
|
}
|
|
218135
218135
|
}
|
|
218136
|
-
if (!forceReinstall && version2 === { VERSION: "0.2.
|
|
218136
|
+
if (!forceReinstall && version2 === { VERSION: "0.2.4", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
|
|
218137
218137
|
logForDebugging(`Found ${version2} at ${executablePath}, skipping install`);
|
|
218138
218138
|
logEvent("tengu_native_update_complete", {
|
|
218139
218139
|
latency_ms: Date.now() - startTime2,
|
|
@@ -218883,8 +218883,8 @@ async function cleanupNpmInstallations() {
|
|
|
218883
218883
|
} else if (codePackageResult.error) {
|
|
218884
218884
|
errors4.push(codePackageResult.error);
|
|
218885
218885
|
}
|
|
218886
|
-
if ({ VERSION: "0.2.
|
|
218887
|
-
const macroPackageResult = await attemptNpmUninstall({ VERSION: "0.2.
|
|
218886
|
+
if ({ VERSION: "0.2.4", BUILD_TIME: "1970-01-01T00:00:00.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.4", BUILD_TIME: "1970-01-01T00:00:00.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") {
|
|
218887
|
+
const macroPackageResult = await attemptNpmUninstall({ VERSION: "0.2.4", BUILD_TIME: "1970-01-01T00:00:00.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);
|
|
218888
218888
|
if (macroPackageResult.success) {
|
|
218889
218889
|
removed++;
|
|
218890
218890
|
if (macroPackageResult.warning) {
|
|
@@ -219817,84 +219817,30 @@ var SPINNER_VERBS;
|
|
|
219817
219817
|
var init_spinnerVerbs = __esm(() => {
|
|
219818
219818
|
init_settings2();
|
|
219819
219819
|
SPINNER_VERBS = [
|
|
219820
|
-
"Analizando",
|
|
219821
|
-
"Afinando",
|
|
219822
|
-
"Armando",
|
|
219823
|
-
"Arquitecturando",
|
|
219824
|
-
"Articulando",
|
|
219825
|
-
"Calculando",
|
|
219826
|
-
"Calibrando",
|
|
219827
|
-
"Cavilando",
|
|
219828
|
-
"Cocinando",
|
|
219829
|
-
"Compilando",
|
|
219830
|
-
"Componiendo",
|
|
219831
|
-
"Conectando",
|
|
219832
|
-
"Construyendo",
|
|
219833
|
-
"Contemplando",
|
|
219834
|
-
"Craneando",
|
|
219835
|
-
"Creando",
|
|
219836
|
-
"Cristalizando",
|
|
219837
|
-
"Curando",
|
|
219838
|
-
"Descifrando",
|
|
219839
|
-
"Desenredando",
|
|
219840
|
-
"Destilando",
|
|
219841
|
-
"Devanando",
|
|
219842
|
-
"Diagramando",
|
|
219843
|
-
"Dibujando",
|
|
219844
|
-
"Dise\xF1ando",
|
|
219845
|
-
"Elaborando",
|
|
219846
|
-
"Elucubrando",
|
|
219847
|
-
"Enhebrando",
|
|
219848
|
-
"Ensamblando",
|
|
219849
|
-
"Esbozando",
|
|
219850
|
-
"Escribiendo",
|
|
219851
|
-
"Estructurando",
|
|
219852
|
-
"Evaluando",
|
|
219853
|
-
"Explorando",
|
|
219854
219820
|
"Forjando",
|
|
219855
|
-
"
|
|
219856
|
-
"
|
|
219857
|
-
"
|
|
219858
|
-
"Horneando",
|
|
219859
|
-
"Ideando",
|
|
219860
|
-
"Iluminando",
|
|
219861
|
-
"Imaginando",
|
|
219862
|
-
"Indagando",
|
|
219863
|
-
"Infiriendo",
|
|
219864
|
-
"Integrando",
|
|
219865
|
-
"Investigando",
|
|
219866
|
-
"Iterando",
|
|
219867
|
-
"Maquinando",
|
|
219868
|
-
"Meditando",
|
|
219869
|
-
"Modelando",
|
|
219870
|
-
"Moldeando",
|
|
219871
|
-
"Navegando",
|
|
219872
|
-
"Orquestando",
|
|
219873
|
-
"Organizando",
|
|
219874
|
-
"Pensando",
|
|
219875
|
-
"Perfilando",
|
|
219876
|
-
"Planificando",
|
|
219877
|
-
"Ponderando",
|
|
219878
|
-
"Preparando",
|
|
219879
|
-
"Procesando",
|
|
219880
|
-
"Programando",
|
|
219821
|
+
"Templando",
|
|
219822
|
+
"Fundiendo",
|
|
219823
|
+
"Martillando",
|
|
219881
219824
|
"Puliendo",
|
|
219882
|
-
"
|
|
219883
|
-
"
|
|
219884
|
-
"
|
|
219885
|
-
"
|
|
219886
|
-
"
|
|
219887
|
-
"
|
|
219888
|
-
"Rumiando",
|
|
219889
|
-
"Sintetizando",
|
|
219890
|
-
"Sopesando",
|
|
219891
|
-
"Tejiendo",
|
|
219892
|
-
"Trabajando",
|
|
219893
|
-
"Tramando",
|
|
219825
|
+
"Encendiendo",
|
|
219826
|
+
"Avivando",
|
|
219827
|
+
"Soplando brasas",
|
|
219828
|
+
"Moldeando",
|
|
219829
|
+
"Cincelando",
|
|
219830
|
+
"Grabando",
|
|
219894
219831
|
"Trazando",
|
|
219832
|
+
"Hilando",
|
|
219833
|
+
"Tejiendo",
|
|
219895
219834
|
"Urdiendo",
|
|
219896
|
-
"
|
|
219897
|
-
"
|
|
219835
|
+
"Destilando",
|
|
219836
|
+
"Decantando",
|
|
219837
|
+
"Afilando",
|
|
219838
|
+
"Ensamblando",
|
|
219839
|
+
"Remachando",
|
|
219840
|
+
"Bru\xF1endo",
|
|
219841
|
+
"Calibrando",
|
|
219842
|
+
"Aleando",
|
|
219843
|
+
"Vetando escoria"
|
|
219898
219844
|
];
|
|
219899
219845
|
});
|
|
219900
219846
|
|
|
@@ -220925,10 +220871,7 @@ var init_useTasksV2 = __esm(() => {
|
|
|
220925
220871
|
|
|
220926
220872
|
// components/Spinner/utils.ts
|
|
220927
220873
|
function getDefaultCharacters() {
|
|
220928
|
-
|
|
220929
|
-
return ["\xB7", "\u2722", "\u2733", "\u2736", "\u273B", "*"];
|
|
220930
|
-
}
|
|
220931
|
-
return process.platform === "darwin" ? ["\xB7", "\u2722", "\u2733", "\u2736", "\u273B", "\u273D"] : ["\xB7", "\u2722", "*", "\u2736", "\u273B", "\u273D"];
|
|
220874
|
+
return ["\u2190", "\u2196", "\u2191", "\u2197", "\u2192", "\u2198", "\u2193", "\u2199"];
|
|
220932
220875
|
}
|
|
220933
220876
|
function interpolateColor(color1, color2, t) {
|
|
220934
220877
|
return {
|
|
@@ -221908,14 +221851,14 @@ function isBackgroundTask(task) {
|
|
|
221908
221851
|
var TURN_COMPLETION_VERBS;
|
|
221909
221852
|
var init_turnCompletionVerbs = __esm(() => {
|
|
221910
221853
|
TURN_COMPLETION_VERBS = [
|
|
221911
|
-
"
|
|
221912
|
-
"
|
|
221913
|
-
"
|
|
221914
|
-
"
|
|
221915
|
-
"
|
|
221916
|
-
"
|
|
221917
|
-
"
|
|
221918
|
-
"
|
|
221854
|
+
"Forjado",
|
|
221855
|
+
"Templado",
|
|
221856
|
+
"Fundido",
|
|
221857
|
+
"Martillado",
|
|
221858
|
+
"Pulido",
|
|
221859
|
+
"Cincelado",
|
|
221860
|
+
"Destilado",
|
|
221861
|
+
"Bru\xF1ido"
|
|
221919
221862
|
];
|
|
221920
221863
|
});
|
|
221921
221864
|
|
|
@@ -226995,7 +226938,7 @@ function TeammateSpinnerLine({
|
|
|
226995
226938
|
dimColor: true,
|
|
226996
226939
|
children: [
|
|
226997
226940
|
pastTenseVerb,
|
|
226998
|
-
"
|
|
226941
|
+
" en ",
|
|
226999
226942
|
displayTime
|
|
227000
226943
|
]
|
|
227001
226944
|
});
|
|
@@ -237130,7 +237073,7 @@ function TurnDurationMessage(t0) {
|
|
|
237130
237073
|
} else {
|
|
237131
237074
|
t6 = $2[8];
|
|
237132
237075
|
}
|
|
237133
|
-
const t7 = showTurnDuration && `${verb}
|
|
237076
|
+
const t7 = showTurnDuration && `${verb} en ${duration3}`;
|
|
237134
237077
|
const t8 = backgroundTaskSummary && ` \xB7 ${backgroundTaskSummary} still running`;
|
|
237135
237078
|
let t9;
|
|
237136
237079
|
if ($2[9] !== budgetSuffix || $2[10] !== t7 || $2[11] !== t8) {
|
|
@@ -237171,7 +237114,7 @@ function TurnDurationMessage(t0) {
|
|
|
237171
237114
|
return t10;
|
|
237172
237115
|
}
|
|
237173
237116
|
function _temp43() {
|
|
237174
|
-
return sample_default(TURN_COMPLETION_VERBS) ?? "
|
|
237117
|
+
return sample_default(TURN_COMPLETION_VERBS) ?? "Forjado";
|
|
237175
237118
|
}
|
|
237176
237119
|
function MemorySavedMessage(t0) {
|
|
237177
237120
|
const $2 = c3(16);
|
|
@@ -296227,9 +296170,9 @@ function getTheusEnvMetadata() {
|
|
|
296227
296170
|
};
|
|
296228
296171
|
}
|
|
296229
296172
|
function getBuildAgeMinutes() {
|
|
296230
|
-
if (!{ VERSION: "0.2.
|
|
296173
|
+
if (!{ VERSION: "0.2.4", BUILD_TIME: "1970-01-01T00:00:00.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)
|
|
296231
296174
|
return;
|
|
296232
|
-
const buildTime = new Date({ VERSION: "0.2.
|
|
296175
|
+
const buildTime = new Date({ VERSION: "0.2.4", BUILD_TIME: "1970-01-01T00:00:00.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();
|
|
296233
296176
|
if (isNaN(buildTime))
|
|
296234
296177
|
return;
|
|
296235
296178
|
return Math.floor((Date.now() - buildTime) / 60000);
|
|
@@ -312459,7 +312402,7 @@ function getAssistantMessageFromError(error40, model, options2) {
|
|
|
312459
312402
|
if (process.env.USER_TYPE === "ant") {
|
|
312460
312403
|
const baseMessage = `API Error: 400 ${error40.message}
|
|
312461
312404
|
|
|
312462
|
-
Run /share and post the JSON file to ${{ VERSION: "0.2.
|
|
312405
|
+
Run /share and post the JSON file to ${{ VERSION: "0.2.4", BUILD_TIME: "1970-01-01T00:00:00.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}.`;
|
|
312463
312406
|
const rewindInstruction = getIsNonInteractiveSession() ? "" : " Then, use /rewind to recover the conversation.";
|
|
312464
312407
|
return createAssistantAPIErrorMessage({
|
|
312465
312408
|
content: baseMessage + rewindInstruction,
|
|
@@ -312495,7 +312438,7 @@ Run /share and post the JSON file to ${{ VERSION: "0.2.2", BUILD_TIME: "1970-01-
|
|
|
312495
312438
|
if (process.env.USER_TYPE === "ant" && !process.env.THEUS_MODEL && error40 instanceof Error && error40.message.toLowerCase().includes("invalid model name")) {
|
|
312496
312439
|
const orgId = getOauthAccountInfo()?.organizationUuid;
|
|
312497
312440
|
const baseMsg = `[THEUS-INTERNAL] Your org isn't gated into the \`${model}\` model. Either run \`theus\` with \`THEUS_MODEL=${getDefaultMainLoopModelSetting()}\``;
|
|
312498
|
-
const msg = orgId ? `${baseMsg} or share your orgId (${orgId}) in ${{ VERSION: "0.2.
|
|
312441
|
+
const msg = orgId ? `${baseMsg} or share your orgId (${orgId}) in ${{ VERSION: "0.2.4", BUILD_TIME: "1970-01-01T00:00:00.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.4", BUILD_TIME: "1970-01-01T00:00:00.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.`;
|
|
312499
312442
|
return createAssistantAPIErrorMessage({
|
|
312500
312443
|
content: msg,
|
|
312501
312444
|
error: "invalid_request"
|
|
@@ -322595,7 +322538,7 @@ function buildPrimarySection() {
|
|
|
322595
322538
|
});
|
|
322596
322539
|
return [{
|
|
322597
322540
|
label: "Version",
|
|
322598
|
-
value: { VERSION: "0.2.
|
|
322541
|
+
value: { VERSION: "0.2.4", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
|
|
322599
322542
|
}, {
|
|
322600
322543
|
label: "Session name",
|
|
322601
322544
|
value: nameValue
|
|
@@ -326346,7 +326289,7 @@ function Config({
|
|
|
326346
326289
|
}
|
|
326347
326290
|
})
|
|
326348
326291
|
}) : showSubmenu === "ChannelDowngrade" ? /* @__PURE__ */ jsx_runtime181.jsx(ChannelDowngradeDialog, {
|
|
326349
|
-
currentVersion: { VERSION: "0.2.
|
|
326292
|
+
currentVersion: { VERSION: "0.2.4", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
|
|
326350
326293
|
onChoice: (choice) => {
|
|
326351
326294
|
setShowSubmenu(null);
|
|
326352
326295
|
setTabsHidden(false);
|
|
@@ -326358,7 +326301,7 @@ function Config({
|
|
|
326358
326301
|
autoUpdatesChannel: "stable"
|
|
326359
326302
|
};
|
|
326360
326303
|
if (choice === "stay") {
|
|
326361
|
-
newSettings.minimumVersion = { VERSION: "0.2.
|
|
326304
|
+
newSettings.minimumVersion = { VERSION: "0.2.4", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION;
|
|
326362
326305
|
}
|
|
326363
326306
|
updateSettingsForSource("userSettings", newSettings);
|
|
326364
326307
|
setSettingsData((prev_27) => ({
|
|
@@ -334392,7 +334335,7 @@ function HelpV2(t0) {
|
|
|
334392
334335
|
let t6;
|
|
334393
334336
|
if ($2[31] !== tabs) {
|
|
334394
334337
|
t6 = /* @__PURE__ */ jsx_runtime208.jsx(Tabs, {
|
|
334395
|
-
title: `Theus v${{ VERSION: "0.2.
|
|
334338
|
+
title: `Theus v${{ VERSION: "0.2.4", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION}`,
|
|
334396
334339
|
color: "professionalBlue",
|
|
334397
334340
|
defaultTab: "general",
|
|
334398
334341
|
children: tabs
|
|
@@ -351116,6 +351059,26 @@ var init_mcp3 = __esm(() => {
|
|
|
351116
351059
|
var NOVEDADES;
|
|
351117
351060
|
var init_data = __esm(() => {
|
|
351118
351061
|
NOVEDADES = [
|
|
351062
|
+
{
|
|
351063
|
+
version: "v0.2.4",
|
|
351064
|
+
fecha: "2026-07-11",
|
|
351065
|
+
titulo: "Encendido cinematogr\xE1fico con se\xF1ales reales",
|
|
351066
|
+
puntos: [
|
|
351067
|
+
"El arranque ahora es la escena de encendido de la forja: antorcha animada, tren de m\xF3dulos (PROYECTO, MODELO, MEMORIA, GRAFO) con sparks viajando y barra FORJANDO ENTORNO \u2014 cada m\xF3dulo se enciende solo cuando su se\xF1al real est\xE1 lista, sin progreso ficticio.",
|
|
351068
|
+
"Las novedades te reciben en el arranque: bajo la barra ver\xE1s la entrada m\xE1s reciente de esta cronolog\xEDa; /novedades para ver todo.",
|
|
351069
|
+
"En terminales chicos, sin TTY o con motion reducido, el splash conserva su versi\xF3n compacta de siempre; cualquier tecla salta directo al men\xFA."
|
|
351070
|
+
]
|
|
351071
|
+
},
|
|
351072
|
+
{
|
|
351073
|
+
version: "v0.2.3",
|
|
351074
|
+
fecha: "2026-07-11",
|
|
351075
|
+
titulo: "La voz de la forja en cada turno",
|
|
351076
|
+
puntos: [
|
|
351077
|
+
"Wording nuevo de punta a punta: el spinner ahora forja, templa, funde y pule (\xABForjando\u2026\xBB, \xABTemplando\u2026\xBB), y cada turno cierra en espa\xF1ol: \xABForjado en 57s\xBB en vez de \xABCogitated for 57s\xBB.",
|
|
351078
|
+
"Nueva animaci\xF3n de carga: una flecha giratoria \u2014 limpia, estable en cualquier terminal.",
|
|
351079
|
+
"Tus propios verbos siguen soportados v\xEDa settings (spinnerVerbs, modo replace o append)."
|
|
351080
|
+
]
|
|
351081
|
+
},
|
|
351119
351082
|
{
|
|
351120
351083
|
version: "v0.2.2",
|
|
351121
351084
|
fecha: "2026-07-11",
|
|
@@ -351973,9 +351936,9 @@ function getAllReleaseNotes(changelogContent = getStoredChangelogFromMemory()) {
|
|
|
351973
351936
|
return [];
|
|
351974
351937
|
}
|
|
351975
351938
|
}
|
|
351976
|
-
async function checkForReleaseNotes(lastSeenVersion, currentVersion = { VERSION: "0.2.
|
|
351939
|
+
async function checkForReleaseNotes(lastSeenVersion, currentVersion = { VERSION: "0.2.4", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION) {
|
|
351977
351940
|
if (process.env.USER_TYPE === "ant") {
|
|
351978
|
-
const changelog = { VERSION: "0.2.
|
|
351941
|
+
const changelog = { VERSION: "0.2.4", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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;
|
|
351979
351942
|
if (changelog) {
|
|
351980
351943
|
const commits = changelog.trim().split(`
|
|
351981
351944
|
`).filter(Boolean);
|
|
@@ -356197,7 +356160,7 @@ var init_Messages = __esm(() => {
|
|
|
356197
356160
|
let t1;
|
|
356198
356161
|
if ($2[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
356199
356162
|
t1 = /* @__PURE__ */ jsx_runtime246.jsx(TheusSessionHeader, {
|
|
356200
|
-
version: { VERSION: "0.2.
|
|
356163
|
+
version: { VERSION: "0.2.4", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
|
|
356201
356164
|
});
|
|
356202
356165
|
$2[0] = t1;
|
|
356203
356166
|
} else {
|
|
@@ -383737,7 +383700,7 @@ async function captureMemoryDiagnostics(trigger, dumpNumber = 0) {
|
|
|
383737
383700
|
smapsRollup,
|
|
383738
383701
|
platform: process.platform,
|
|
383739
383702
|
nodeVersion: process.version,
|
|
383740
|
-
ccVersion: { VERSION: "0.2.
|
|
383703
|
+
ccVersion: { VERSION: "0.2.4", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
|
|
383741
383704
|
};
|
|
383742
383705
|
}
|
|
383743
383706
|
async function performHeapDump(trigger = "manual", dumpNumber = 0) {
|
|
@@ -384323,7 +384286,7 @@ var init_bridge_kick = __esm(() => {
|
|
|
384323
384286
|
var call55 = async () => {
|
|
384324
384287
|
return {
|
|
384325
384288
|
type: "text",
|
|
384326
|
-
value: { VERSION: "0.2.
|
|
384289
|
+
value: { VERSION: "0.2.4", BUILD_TIME: "1970-01-01T00:00:00.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.4", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.4", BUILD_TIME: "1970-01-01T00:00:00.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.4", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
|
|
384327
384290
|
};
|
|
384328
384291
|
}, version2, version_default;
|
|
384329
384292
|
var init_version = __esm(() => {
|
|
@@ -388168,13 +388131,13 @@ async function updateReleaseBundle() {
|
|
|
388168
388131
|
await gracefulShutdown(1);
|
|
388169
388132
|
return;
|
|
388170
388133
|
}
|
|
388171
|
-
if (gte({ VERSION: "0.2.
|
|
388172
|
-
writeToStdout(source_default.green(`Theus is up to date (${{ VERSION: "0.2.
|
|
388134
|
+
if (gte({ VERSION: "0.2.4", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
|
|
388135
|
+
writeToStdout(source_default.green(`Theus is up to date (${{ VERSION: "0.2.4", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION})`) + `
|
|
388173
388136
|
`);
|
|
388174
388137
|
await gracefulShutdown(0);
|
|
388175
388138
|
return;
|
|
388176
388139
|
}
|
|
388177
|
-
writeToStdout(`New version available: ${latest} (current: ${{ VERSION: "0.2.
|
|
388140
|
+
writeToStdout(`New version available: ${latest} (current: ${{ VERSION: "0.2.4", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION})
|
|
388178
388141
|
`);
|
|
388179
388142
|
writeToStdout(`Installing update from theus.pe/dl...
|
|
388180
388143
|
`);
|
|
@@ -388208,7 +388171,7 @@ async function updateReleaseBundle() {
|
|
|
388208
388171
|
return;
|
|
388209
388172
|
}
|
|
388210
388173
|
cpSync(staged, bundleDir, { recursive: true, force: true });
|
|
388211
|
-
writeToStdout(source_default.green(`Successfully updated from ${{ VERSION: "0.2.
|
|
388174
|
+
writeToStdout(source_default.green(`Successfully updated from ${{ VERSION: "0.2.4", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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}`) + `
|
|
388212
388175
|
`);
|
|
388213
388176
|
await regenerateCompletionCache();
|
|
388214
388177
|
} finally {
|
|
@@ -388221,7 +388184,7 @@ async function updateReleaseBundle() {
|
|
|
388221
388184
|
async function update() {
|
|
388222
388185
|
logEvent("tengu_update_check", {});
|
|
388223
388186
|
await updateNaupa();
|
|
388224
|
-
writeToStdout(`Current version: ${{ VERSION: "0.2.
|
|
388187
|
+
writeToStdout(`Current version: ${{ VERSION: "0.2.4", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION}
|
|
388225
388188
|
`);
|
|
388226
388189
|
const channel2 = getInitialSettings()?.autoUpdatesChannel ?? "latest";
|
|
388227
388190
|
writeToStdout(`Checking for updates to ${channel2} version...
|
|
@@ -388300,8 +388263,8 @@ async function update() {
|
|
|
388300
388263
|
writeToStdout(`Theus is managed by Homebrew.
|
|
388301
388264
|
`);
|
|
388302
388265
|
const latest = await getLatestVersion(channel2);
|
|
388303
|
-
if (latest && !gte({ VERSION: "0.2.
|
|
388304
|
-
writeToStdout(`Update available: ${{ VERSION: "0.2.
|
|
388266
|
+
if (latest && !gte({ VERSION: "0.2.4", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
|
|
388267
|
+
writeToStdout(`Update available: ${{ VERSION: "0.2.4", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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}
|
|
388305
388268
|
`);
|
|
388306
388269
|
writeToStdout(`
|
|
388307
388270
|
`);
|
|
@@ -388317,8 +388280,8 @@ async function update() {
|
|
|
388317
388280
|
writeToStdout(`Theus is managed by winget.
|
|
388318
388281
|
`);
|
|
388319
388282
|
const latest = await getLatestVersion(channel2);
|
|
388320
|
-
if (latest && !gte({ VERSION: "0.2.
|
|
388321
|
-
writeToStdout(`Update available: ${{ VERSION: "0.2.
|
|
388283
|
+
if (latest && !gte({ VERSION: "0.2.4", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
|
|
388284
|
+
writeToStdout(`Update available: ${{ VERSION: "0.2.4", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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}
|
|
388322
388285
|
`);
|
|
388323
388286
|
writeToStdout(`
|
|
388324
388287
|
`);
|
|
@@ -388334,8 +388297,8 @@ async function update() {
|
|
|
388334
388297
|
writeToStdout(`Theus is managed by apk.
|
|
388335
388298
|
`);
|
|
388336
388299
|
const latest = await getLatestVersion(channel2);
|
|
388337
|
-
if (latest && !gte({ VERSION: "0.2.
|
|
388338
|
-
writeToStdout(`Update available: ${{ VERSION: "0.2.
|
|
388300
|
+
if (latest && !gte({ VERSION: "0.2.4", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
|
|
388301
|
+
writeToStdout(`Update available: ${{ VERSION: "0.2.4", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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}
|
|
388339
388302
|
`);
|
|
388340
388303
|
writeToStdout(`
|
|
388341
388304
|
`);
|
|
@@ -388400,11 +388363,11 @@ async function update() {
|
|
|
388400
388363
|
`);
|
|
388401
388364
|
await gracefulShutdown(1);
|
|
388402
388365
|
}
|
|
388403
|
-
if (result.latestVersion === { VERSION: "0.2.
|
|
388404
|
-
writeToStdout(source_default.green(`Theus is up to date (${{ VERSION: "0.2.
|
|
388366
|
+
if (result.latestVersion === { VERSION: "0.2.4", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION) {
|
|
388367
|
+
writeToStdout(source_default.green(`Theus is up to date (${{ VERSION: "0.2.4", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION})`) + `
|
|
388405
388368
|
`);
|
|
388406
388369
|
} else {
|
|
388407
|
-
writeToStdout(source_default.green(`Successfully updated from ${{ VERSION: "0.2.
|
|
388370
|
+
writeToStdout(source_default.green(`Successfully updated from ${{ VERSION: "0.2.4", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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}`) + `
|
|
388408
388371
|
`);
|
|
388409
388372
|
await regenerateCompletionCache();
|
|
388410
388373
|
}
|
|
@@ -388423,9 +388386,9 @@ async function update() {
|
|
|
388423
388386
|
await removeInstalledSymlink();
|
|
388424
388387
|
}
|
|
388425
388388
|
logForDebugging("update: Checking npm registry for latest version");
|
|
388426
|
-
logForDebugging(`update: Package URL: ${{ VERSION: "0.2.
|
|
388389
|
+
logForDebugging(`update: Package URL: ${{ VERSION: "0.2.4", BUILD_TIME: "1970-01-01T00:00:00.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}`);
|
|
388427
388390
|
const npmTag = channel2 === "stable" ? "stable" : "latest";
|
|
388428
|
-
const npmCommand = `npm view ${{ VERSION: "0.2.
|
|
388391
|
+
const npmCommand = `npm view ${{ VERSION: "0.2.4", BUILD_TIME: "1970-01-01T00:00:00.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`;
|
|
388429
388392
|
logForDebugging(`update: Running: ${npmCommand}`);
|
|
388430
388393
|
const latestVersion = await getLatestVersion(channel2);
|
|
388431
388394
|
logForDebugging(`update: Latest version from npm: ${latestVersion || "FAILED"}`);
|
|
@@ -388445,7 +388408,7 @@ async function update() {
|
|
|
388445
388408
|
`);
|
|
388446
388409
|
process.stderr.write(` \u2022 Corporate proxy/firewall blocking npm
|
|
388447
388410
|
`);
|
|
388448
|
-
if ({ VERSION: "0.2.
|
|
388411
|
+
if ({ VERSION: "0.2.4", BUILD_TIME: "1970-01-01T00:00:00.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.4", BUILD_TIME: "1970-01-01T00:00:00.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")) {
|
|
388449
388412
|
process.stderr.write(` \u2022 Internal/development build not published to npm
|
|
388450
388413
|
`);
|
|
388451
388414
|
}
|
|
@@ -388457,19 +388420,19 @@ async function update() {
|
|
|
388457
388420
|
`);
|
|
388458
388421
|
process.stderr.write(` \u2022 Run with --debug flag for more details
|
|
388459
388422
|
`);
|
|
388460
|
-
const packageName = { VERSION: "0.2.
|
|
388423
|
+
const packageName = { VERSION: "0.2.4", BUILD_TIME: "1970-01-01T00:00:00.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");
|
|
388461
388424
|
process.stderr.write(` \u2022 Manually check: npm view ${packageName} version
|
|
388462
388425
|
`);
|
|
388463
388426
|
process.stderr.write(` \u2022 Check if you need to login: npm whoami
|
|
388464
388427
|
`);
|
|
388465
388428
|
await gracefulShutdown(1);
|
|
388466
388429
|
}
|
|
388467
|
-
if (gte({ VERSION: "0.2.
|
|
388468
|
-
writeToStdout(source_default.green(`Theus is up to date (${{ VERSION: "0.2.
|
|
388430
|
+
if (gte({ VERSION: "0.2.4", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
|
|
388431
|
+
writeToStdout(source_default.green(`Theus is up to date (${{ VERSION: "0.2.4", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION})`) + `
|
|
388469
388432
|
`);
|
|
388470
388433
|
await gracefulShutdown(0);
|
|
388471
388434
|
}
|
|
388472
|
-
writeToStdout(`New version available: ${latestVersion} (current: ${{ VERSION: "0.2.
|
|
388435
|
+
writeToStdout(`New version available: ${latestVersion} (current: ${{ VERSION: "0.2.4", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION})
|
|
388473
388436
|
`);
|
|
388474
388437
|
writeToStdout(`Installing update...
|
|
388475
388438
|
`);
|
|
@@ -388514,7 +388477,7 @@ async function update() {
|
|
|
388514
388477
|
logForDebugging(`update: Installation status: ${status2}`);
|
|
388515
388478
|
switch (status2) {
|
|
388516
388479
|
case "success":
|
|
388517
|
-
writeToStdout(source_default.green(`Successfully updated from ${{ VERSION: "0.2.
|
|
388480
|
+
writeToStdout(source_default.green(`Successfully updated from ${{ VERSION: "0.2.4", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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}`) + `
|
|
388518
388481
|
`);
|
|
388519
388482
|
await regenerateCompletionCache();
|
|
388520
388483
|
break;
|
|
@@ -388524,7 +388487,7 @@ async function update() {
|
|
|
388524
388487
|
if (useLocalUpdate) {
|
|
388525
388488
|
process.stderr.write(`Try manually updating with:
|
|
388526
388489
|
`);
|
|
388527
|
-
process.stderr.write(` cd ~/.theus/local && npm update ${{ VERSION: "0.2.
|
|
388490
|
+
process.stderr.write(` cd ~/.theus/local && npm update ${{ VERSION: "0.2.4", BUILD_TIME: "1970-01-01T00:00:00.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}
|
|
388528
388491
|
`);
|
|
388529
388492
|
} else {
|
|
388530
388493
|
process.stderr.write(`Try running with sudo or fix npm permissions
|
|
@@ -388540,7 +388503,7 @@ async function update() {
|
|
|
388540
388503
|
if (useLocalUpdate) {
|
|
388541
388504
|
process.stderr.write(`Try manually updating with:
|
|
388542
388505
|
`);
|
|
388543
|
-
process.stderr.write(` cd ~/.theus/local && npm update ${{ VERSION: "0.2.
|
|
388506
|
+
process.stderr.write(` cd ~/.theus/local && npm update ${{ VERSION: "0.2.4", BUILD_TIME: "1970-01-01T00:00:00.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}
|
|
388544
388507
|
`);
|
|
388545
388508
|
} else {
|
|
388546
388509
|
process.stderr.write(`Or consider using native installation with: theus install
|
|
@@ -395441,7 +395404,7 @@ var init_sessionStorage = __esm(() => {
|
|
|
395441
395404
|
init_settings2();
|
|
395442
395405
|
init_slowOperations();
|
|
395443
395406
|
init_uuid();
|
|
395444
|
-
VERSION4 = { VERSION: "0.2.
|
|
395407
|
+
VERSION4 = { VERSION: "0.2.4", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION;
|
|
395445
395408
|
MAX_TOMBSTONE_REWRITE_BYTES = 50 * 1024 * 1024;
|
|
395446
395409
|
SKIP_FIRST_PROMPT_PATTERN = /^(?:\s*<[a-z][\w-]*[\s>]|\[Request interrupted by user[^\]]*\])/;
|
|
395447
395410
|
EPHEMERAL_PROGRESS_TYPES = new Set([
|
|
@@ -396646,7 +396609,7 @@ var init_filesystem = __esm(() => {
|
|
|
396646
396609
|
});
|
|
396647
396610
|
getBundledSkillsRoot = memoize_default(function getBundledSkillsRoot2() {
|
|
396648
396611
|
const nonce = randomBytes21(16).toString("hex");
|
|
396649
|
-
return join144(getTheusTempDir(), "bundled-skills", { VERSION: "0.2.
|
|
396612
|
+
return join144(getTheusTempDir(), "bundled-skills", { VERSION: "0.2.4", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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);
|
|
396650
396613
|
});
|
|
396651
396614
|
getResolvedWorkingDirPaths = memoize_default(getPathsForPermissionCheck);
|
|
396652
396615
|
});
|
|
@@ -401821,7 +401784,7 @@ function getSimpleDoingTasksSection() {
|
|
|
401821
401784
|
];
|
|
401822
401785
|
const userHelpSubitems = [
|
|
401823
401786
|
`/help: Get help with using Theus`,
|
|
401824
|
-
`To give feedback, users should ${{ VERSION: "0.2.
|
|
401787
|
+
`To give feedback, users should ${{ VERSION: "0.2.4", BUILD_TIME: "1970-01-01T00:00:00.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}`
|
|
401825
401788
|
];
|
|
401826
401789
|
const items = [
|
|
401827
401790
|
`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.`,
|
|
@@ -402644,7 +402607,7 @@ function computeFingerprint(messageText, version3) {
|
|
|
402644
402607
|
}
|
|
402645
402608
|
function computeFingerprintFromMessages(messages) {
|
|
402646
402609
|
const firstMessageText = extractFirstMessageText(messages);
|
|
402647
|
-
return computeFingerprint(firstMessageText, { VERSION: "0.2.
|
|
402610
|
+
return computeFingerprint(firstMessageText, { VERSION: "0.2.4", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION);
|
|
402648
402611
|
}
|
|
402649
402612
|
var FINGERPRINT_SALT = "59cf53e54c78";
|
|
402650
402613
|
var init_fingerprint = () => {};
|
|
@@ -405168,7 +405131,7 @@ async function sideQuery(opts) {
|
|
|
405168
405131
|
betas.push(STRUCTURED_OUTPUTS_BETA_HEADER);
|
|
405169
405132
|
}
|
|
405170
405133
|
const messageText = extractFirstUserMessageText(messages);
|
|
405171
|
-
const fingerprint = computeFingerprint(messageText, { VERSION: "0.2.
|
|
405134
|
+
const fingerprint = computeFingerprint(messageText, { VERSION: "0.2.4", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION);
|
|
405172
405135
|
const attributionHeader = getAttributionHeader(fingerprint);
|
|
405173
405136
|
const systemBlocks = [
|
|
405174
405137
|
attributionHeader ? { type: "text", text: attributionHeader } : null,
|
|
@@ -406471,7 +406434,7 @@ async function handleMemories(state) {
|
|
|
406471
406434
|
async function runProjectContextMcpServer() {
|
|
406472
406435
|
const projectRoot = process.env.THEUS_PROJECT_ROOT || process.cwd();
|
|
406473
406436
|
const state = new ProjectContextState(projectRoot);
|
|
406474
|
-
const server = new Server({ name: SERVER_NAME, version: { VERSION: "0.2.
|
|
406437
|
+
const server = new Server({ name: SERVER_NAME, version: { VERSION: "0.2.4", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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: {} } });
|
|
406475
406438
|
server.setRequestHandler(ListToolsRequestSchema, async () => ({
|
|
406476
406439
|
tools: TOOL_DEFINITIONS.map((t) => ({
|
|
406477
406440
|
name: t.name,
|
|
@@ -412148,7 +412111,7 @@ function buildSystemInitMessage(inputs) {
|
|
|
412148
412111
|
slash_commands: inputs.commands.filter((c5) => c5.userInvocable !== false).map((c5) => c5.name),
|
|
412149
412112
|
apiKeySource: getTheusApiKeyWithSource().source,
|
|
412150
412113
|
betas: getSdkBetas(),
|
|
412151
|
-
theus_code_version: { VERSION: "0.2.
|
|
412114
|
+
theus_code_version: { VERSION: "0.2.4", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
|
|
412152
412115
|
output_style: outputStyle2,
|
|
412153
412116
|
agents: inputs.agents.map((agent) => agent.agentType),
|
|
412154
412117
|
skills: inputs.skills.filter((s) => s.userInvocable !== false).map((skill) => skill.name),
|
|
@@ -426782,7 +426745,7 @@ var init_useVoiceEnabled = __esm(() => {
|
|
|
426782
426745
|
function getSemverPart(version3) {
|
|
426783
426746
|
return `${import_semver13.major(version3, { loose: true })}.${import_semver13.minor(version3, { loose: true })}.${import_semver13.patch(version3, { loose: true })}`;
|
|
426784
426747
|
}
|
|
426785
|
-
function useUpdateNotification(updatedVersion, initialVersion = { VERSION: "0.2.
|
|
426748
|
+
function useUpdateNotification(updatedVersion, initialVersion = { VERSION: "0.2.4", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION) {
|
|
426786
426749
|
const [lastNotifiedSemver, setLastNotifiedSemver] = import_react215.useState(() => getSemverPart(initialVersion));
|
|
426787
426750
|
if (!updatedVersion) {
|
|
426788
426751
|
return null;
|
|
@@ -426822,7 +426785,7 @@ function AutoUpdater({
|
|
|
426822
426785
|
return;
|
|
426823
426786
|
}
|
|
426824
426787
|
if (false) {}
|
|
426825
|
-
const currentVersion = { VERSION: "0.2.
|
|
426788
|
+
const currentVersion = { VERSION: "0.2.4", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION;
|
|
426826
426789
|
const channel2 = getInitialSettings()?.autoUpdatesChannel ?? "latest";
|
|
426827
426790
|
let latestVersion = await getLatestVersion(channel2);
|
|
426828
426791
|
const isDisabled2 = isAutoUpdaterDisabled();
|
|
@@ -426958,7 +426921,7 @@ function AutoUpdater({
|
|
|
426958
426921
|
" ",
|
|
426959
426922
|
/* @__PURE__ */ jsx_runtime384.jsx(ThemedText, {
|
|
426960
426923
|
bold: true,
|
|
426961
|
-
children: hasLocalInstall ? `cd ~/.theus/local && npm update ${{ VERSION: "0.2.
|
|
426924
|
+
children: hasLocalInstall ? `cd ~/.theus/local && npm update ${{ VERSION: "0.2.4", BUILD_TIME: "1970-01-01T00:00:00.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.4", BUILD_TIME: "1970-01-01T00:00:00.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}`
|
|
426962
426925
|
})
|
|
426963
426926
|
]
|
|
426964
426927
|
})
|
|
@@ -427035,12 +426998,12 @@ function NativeAutoUpdater({
|
|
|
427035
426998
|
logEvent("tengu_native_auto_updater_start", {});
|
|
427036
426999
|
try {
|
|
427037
427000
|
const maxVersion = await getMaxVersion();
|
|
427038
|
-
if (maxVersion && gt({ VERSION: "0.2.
|
|
427001
|
+
if (maxVersion && gt({ VERSION: "0.2.4", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
|
|
427039
427002
|
const msg = await getMaxVersionMessage();
|
|
427040
427003
|
setMaxVersionIssue(msg ?? "affects your version");
|
|
427041
427004
|
}
|
|
427042
427005
|
const result = await installLatest(channel2);
|
|
427043
|
-
const currentVersion = { VERSION: "0.2.
|
|
427006
|
+
const currentVersion = { VERSION: "0.2.4", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION;
|
|
427044
427007
|
const latencyMs = Date.now() - startTime2;
|
|
427045
427008
|
if (result.lockFailed) {
|
|
427046
427009
|
logEvent("tengu_native_auto_updater_lock_contention", {
|
|
@@ -427177,17 +427140,17 @@ function PackageManagerAutoUpdater(t0) {
|
|
|
427177
427140
|
const maxVersion = await getMaxVersion();
|
|
427178
427141
|
if (maxVersion && latest && gt(latest, maxVersion)) {
|
|
427179
427142
|
logForDebugging(`PackageManagerAutoUpdater: maxVersion ${maxVersion} is set, capping update from ${latest} to ${maxVersion}`);
|
|
427180
|
-
if (gte({ VERSION: "0.2.
|
|
427181
|
-
logForDebugging(`PackageManagerAutoUpdater: current version ${{ VERSION: "0.2.
|
|
427143
|
+
if (gte({ VERSION: "0.2.4", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
|
|
427144
|
+
logForDebugging(`PackageManagerAutoUpdater: current version ${{ VERSION: "0.2.4", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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`);
|
|
427182
427145
|
setUpdateAvailable(false);
|
|
427183
427146
|
return;
|
|
427184
427147
|
}
|
|
427185
427148
|
latest = maxVersion;
|
|
427186
427149
|
}
|
|
427187
|
-
const hasUpdate = latest && !gte({ VERSION: "0.2.
|
|
427150
|
+
const hasUpdate = latest && !gte({ VERSION: "0.2.4", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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);
|
|
427188
427151
|
setUpdateAvailable(!!hasUpdate);
|
|
427189
427152
|
if (hasUpdate) {
|
|
427190
|
-
logForDebugging(`PackageManagerAutoUpdater: Update available ${{ VERSION: "0.2.
|
|
427153
|
+
logForDebugging(`PackageManagerAutoUpdater: Update available ${{ VERSION: "0.2.4", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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}`);
|
|
427191
427154
|
}
|
|
427192
427155
|
};
|
|
427193
427156
|
$2[0] = t1;
|
|
@@ -427221,7 +427184,7 @@ function PackageManagerAutoUpdater(t0) {
|
|
|
427221
427184
|
wrap: "truncate",
|
|
427222
427185
|
children: [
|
|
427223
427186
|
"currentVersion: ",
|
|
427224
|
-
{ VERSION: "0.2.
|
|
427187
|
+
{ VERSION: "0.2.4", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
|
|
427225
427188
|
]
|
|
427226
427189
|
});
|
|
427227
427190
|
$2[3] = verbose;
|
|
@@ -435094,7 +435057,7 @@ function buildStatusLineCommandInput(permissionMode, exceeds200kTokens, settings
|
|
|
435094
435057
|
project_dir: getOriginalCwd(),
|
|
435095
435058
|
added_dirs: addedDirs
|
|
435096
435059
|
},
|
|
435097
|
-
version: { VERSION: "0.2.
|
|
435060
|
+
version: { VERSION: "0.2.4", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
|
|
435098
435061
|
output_style: {
|
|
435099
435062
|
name: outputStyleName
|
|
435100
435063
|
},
|
|
@@ -446657,7 +446620,7 @@ async function submitTranscriptShare(messages, trigger, appearanceId) {
|
|
|
446657
446620
|
} catch {}
|
|
446658
446621
|
const data = {
|
|
446659
446622
|
trigger,
|
|
446660
|
-
version: { VERSION: "0.2.
|
|
446623
|
+
version: { VERSION: "0.2.4", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
|
|
446661
446624
|
platform: process.platform,
|
|
446662
446625
|
transcript,
|
|
446663
446626
|
subagentTranscripts: Object.keys(subagentTranscripts).length > 0 ? subagentTranscripts : undefined,
|
|
@@ -459602,7 +459565,7 @@ function Onboarding({
|
|
|
459602
459565
|
flexDirection: "column",
|
|
459603
459566
|
children: [
|
|
459604
459567
|
/* @__PURE__ */ jsx_runtime459.jsx(TheusBanner, {
|
|
459605
|
-
version: { VERSION: "0.2.
|
|
459568
|
+
version: { VERSION: "0.2.4", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
|
|
459606
459569
|
}),
|
|
459607
459570
|
/* @__PURE__ */ jsx_runtime459.jsxs(ThemedBox_default, {
|
|
459608
459571
|
flexDirection: "column",
|
|
@@ -460473,7 +460436,7 @@ function completeOnboarding() {
|
|
|
460473
460436
|
saveGlobalConfig((current) => ({
|
|
460474
460437
|
...current,
|
|
460475
460438
|
hasCompletedOnboarding: true,
|
|
460476
|
-
lastOnboardingVersion: { VERSION: "0.2.
|
|
460439
|
+
lastOnboardingVersion: { VERSION: "0.2.4", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
|
|
460477
460440
|
}));
|
|
460478
460441
|
}
|
|
460479
460442
|
function showDialog(root2, renderer) {
|
|
@@ -460702,6 +460665,283 @@ var init_interactiveHelpers = __esm(() => {
|
|
|
460702
460665
|
jsx_runtime463 = __toESM(require_jsx_runtime(), 1);
|
|
460703
460666
|
});
|
|
460704
460667
|
|
|
460668
|
+
// components/Theus/forgePreviewModel.ts
|
|
460669
|
+
function seg(text2, role = "text", bold2 = false) {
|
|
460670
|
+
return { text: text2, role, bold: bold2 };
|
|
460671
|
+
}
|
|
460672
|
+
function forgeRoleColor(role, theme2) {
|
|
460673
|
+
switch (role) {
|
|
460674
|
+
case "brand":
|
|
460675
|
+
return theme2.peru;
|
|
460676
|
+
case "brandBright":
|
|
460677
|
+
return theme2.peruShimmer;
|
|
460678
|
+
case "gold":
|
|
460679
|
+
return theme2.dorado;
|
|
460680
|
+
case "goldBright":
|
|
460681
|
+
return theme2.doradoShimmer;
|
|
460682
|
+
case "success":
|
|
460683
|
+
return theme2.verdeDato;
|
|
460684
|
+
case "info":
|
|
460685
|
+
return theme2.suggestion;
|
|
460686
|
+
case "error":
|
|
460687
|
+
return theme2.error;
|
|
460688
|
+
case "dim":
|
|
460689
|
+
return theme2.inactive;
|
|
460690
|
+
case "text":
|
|
460691
|
+
default:
|
|
460692
|
+
return theme2.text;
|
|
460693
|
+
}
|
|
460694
|
+
}
|
|
460695
|
+
function lineLength(line) {
|
|
460696
|
+
return line.reduce((total, item) => total + item.text.length, 0);
|
|
460697
|
+
}
|
|
460698
|
+
function fitForgeLine(line, width) {
|
|
460699
|
+
const safeWidth = Math.max(1, Math.floor(width));
|
|
460700
|
+
const result = [];
|
|
460701
|
+
let remaining = safeWidth;
|
|
460702
|
+
for (const item of line) {
|
|
460703
|
+
if (remaining <= 0)
|
|
460704
|
+
break;
|
|
460705
|
+
const text2 = item.text.slice(0, remaining);
|
|
460706
|
+
if (text2.length > 0)
|
|
460707
|
+
result.push({ ...item, text: text2 });
|
|
460708
|
+
remaining -= text2.length;
|
|
460709
|
+
}
|
|
460710
|
+
if (remaining > 0)
|
|
460711
|
+
result.push(seg(" ".repeat(remaining), "dim"));
|
|
460712
|
+
return result;
|
|
460713
|
+
}
|
|
460714
|
+
function textLine(text2 = "", role = "text", bold2 = false) {
|
|
460715
|
+
return [seg(text2, role, bold2)];
|
|
460716
|
+
}
|
|
460717
|
+
function centerLine(line, width) {
|
|
460718
|
+
const left = Math.max(0, Math.floor((width - lineLength(line)) / 2));
|
|
460719
|
+
return fitForgeLine([seg(" ".repeat(left), "dim"), ...line], width);
|
|
460720
|
+
}
|
|
460721
|
+
function leftRightLine(left, right, width) {
|
|
460722
|
+
const gap = Math.max(1, width - lineLength(left) - lineLength(right));
|
|
460723
|
+
return fitForgeLine([...left, seg(" ".repeat(gap), "dim"), ...right], width);
|
|
460724
|
+
}
|
|
460725
|
+
function clamp3(value, min, max2) {
|
|
460726
|
+
return Math.max(min, Math.min(max2, value));
|
|
460727
|
+
}
|
|
460728
|
+
function progress(timeMs, startMs, endMs) {
|
|
460729
|
+
if (endMs <= startMs)
|
|
460730
|
+
return timeMs >= endMs ? 1 : 0;
|
|
460731
|
+
return clamp3((timeMs - startMs) / (endMs - startMs), 0, 1);
|
|
460732
|
+
}
|
|
460733
|
+
function easeOut(value) {
|
|
460734
|
+
return 1 - Math.pow(1 - value, 3);
|
|
460735
|
+
}
|
|
460736
|
+
function revealLine(text2, amount, role = "text") {
|
|
460737
|
+
const count4 = Math.floor(clamp3(amount, 0, 1) * text2.length);
|
|
460738
|
+
const hotStart = Math.max(0, count4 - 3);
|
|
460739
|
+
return [
|
|
460740
|
+
seg(text2.slice(0, hotStart), role),
|
|
460741
|
+
seg(text2.slice(hotStart, count4), "goldBright", true),
|
|
460742
|
+
seg(" ".repeat(Math.max(0, text2.length - count4)), "dim")
|
|
460743
|
+
];
|
|
460744
|
+
}
|
|
460745
|
+
function movingTrack(width, timeMs, offsetMs = 0) {
|
|
460746
|
+
const safeWidth = Math.max(5, width);
|
|
460747
|
+
const position = Math.floor((timeMs + offsetMs) / 90) % safeWidth;
|
|
460748
|
+
const roles = Array.from({ length: safeWidth }, () => "dim");
|
|
460749
|
+
const chars = Array.from({ length: safeWidth }, () => ".");
|
|
460750
|
+
for (let delta = -2;delta <= 2; delta++) {
|
|
460751
|
+
const index = (position + delta + safeWidth) % safeWidth;
|
|
460752
|
+
const distance = Math.abs(delta);
|
|
460753
|
+
chars[index] = distance === 0 ? "*" : distance === 1 ? ":" : ".";
|
|
460754
|
+
roles[index] = LINE_ROLES[Math.max(0, 3 - distance)] ?? "dim";
|
|
460755
|
+
}
|
|
460756
|
+
const result = [];
|
|
460757
|
+
for (let index = 0;index < safeWidth; index++) {
|
|
460758
|
+
const previous = result.at(-1);
|
|
460759
|
+
if (previous?.role === roles[index]) {
|
|
460760
|
+
result[result.length - 1] = { ...previous, text: previous.text + chars[index] };
|
|
460761
|
+
} else {
|
|
460762
|
+
result.push(seg(chars[index], roles[index]));
|
|
460763
|
+
}
|
|
460764
|
+
}
|
|
460765
|
+
return result;
|
|
460766
|
+
}
|
|
460767
|
+
function pulseRule(width, timeMs, label, active = true) {
|
|
460768
|
+
const safeWidth = Math.max(20, width);
|
|
460769
|
+
const labelText = ` ${label} `;
|
|
460770
|
+
const leftWidth = Math.max(2, Math.floor((safeWidth - labelText.length) * 0.32));
|
|
460771
|
+
const rightWidth = Math.max(2, safeWidth - labelText.length - leftWidth);
|
|
460772
|
+
if (!active) {
|
|
460773
|
+
return fitForgeLine([seg("-".repeat(leftWidth), "dim"), seg(labelText, "brand", true), seg("-".repeat(rightWidth), "dim")], safeWidth);
|
|
460774
|
+
}
|
|
460775
|
+
const track2 = movingTrack(safeWidth, timeMs);
|
|
460776
|
+
const flattened = track2.map((item) => item.text).join("");
|
|
460777
|
+
const withLabel = flattened.slice(0, leftWidth) + labelText + flattened.slice(leftWidth + labelText.length);
|
|
460778
|
+
const pulsePosition = Math.floor(timeMs / 90) % safeWidth;
|
|
460779
|
+
const result = [];
|
|
460780
|
+
for (let index = 0;index < safeWidth; index++) {
|
|
460781
|
+
const inLabel = index >= leftWidth && index < leftWidth + labelText.length;
|
|
460782
|
+
const distance = Math.min(Math.abs(index - pulsePosition), safeWidth - Math.abs(index - pulsePosition));
|
|
460783
|
+
const role = inLabel ? "brand" : distance === 0 ? "goldBright" : distance <= 2 ? "gold" : "dim";
|
|
460784
|
+
const char = withLabel[index] ?? "-";
|
|
460785
|
+
const previous = result.at(-1);
|
|
460786
|
+
if (previous?.role === role && previous.bold === inLabel) {
|
|
460787
|
+
result[result.length - 1] = { ...previous, text: previous.text + char };
|
|
460788
|
+
} else {
|
|
460789
|
+
result.push(seg(char, role, inLabel));
|
|
460790
|
+
}
|
|
460791
|
+
}
|
|
460792
|
+
return fitForgeLine(result, safeWidth);
|
|
460793
|
+
}
|
|
460794
|
+
function glyph(state2) {
|
|
460795
|
+
if (state2 === "done")
|
|
460796
|
+
return "[+]";
|
|
460797
|
+
if (state2 === "active")
|
|
460798
|
+
return "[>]";
|
|
460799
|
+
if (state2 === "error")
|
|
460800
|
+
return "[x]";
|
|
460801
|
+
return "[ ]";
|
|
460802
|
+
}
|
|
460803
|
+
function roleForState(state2) {
|
|
460804
|
+
if (state2 === "done")
|
|
460805
|
+
return "success";
|
|
460806
|
+
if (state2 === "active")
|
|
460807
|
+
return "goldBright";
|
|
460808
|
+
if (state2 === "error")
|
|
460809
|
+
return "error";
|
|
460810
|
+
return "dim";
|
|
460811
|
+
}
|
|
460812
|
+
var LINE_ROLES, BOOT_TORCH, BOOT_FLAME_FRAMES;
|
|
460813
|
+
var init_forgePreviewModel = __esm(() => {
|
|
460814
|
+
init_asciiLogo();
|
|
460815
|
+
LINE_ROLES = ["dim", "gold", "goldBright", "brandBright"];
|
|
460816
|
+
BOOT_TORCH = [
|
|
460817
|
+
" . * . ",
|
|
460818
|
+
" . :|: . ",
|
|
460819
|
+
" \\ | / ",
|
|
460820
|
+
" .---\\|/---. ",
|
|
460821
|
+
" ___/ | \\___ ",
|
|
460822
|
+
" / PROMETEO \\ ",
|
|
460823
|
+
" /___________|___________\\ "
|
|
460824
|
+
];
|
|
460825
|
+
BOOT_FLAME_FRAMES = [
|
|
460826
|
+
" . * . ",
|
|
460827
|
+
" . * : * . ",
|
|
460828
|
+
" * : * ",
|
|
460829
|
+
" . * . "
|
|
460830
|
+
];
|
|
460831
|
+
});
|
|
460832
|
+
|
|
460833
|
+
// components/Theus/splashFrameModel.ts
|
|
460834
|
+
function clamp4(value, min, max2) {
|
|
460835
|
+
return Math.max(min, Math.min(max2, value));
|
|
460836
|
+
}
|
|
460837
|
+
function truncateText(value, maxLength) {
|
|
460838
|
+
const safeLength = Math.max(0, Math.floor(maxLength));
|
|
460839
|
+
if (value.length <= safeLength)
|
|
460840
|
+
return value;
|
|
460841
|
+
if (safeLength <= 3)
|
|
460842
|
+
return value.slice(0, safeLength);
|
|
460843
|
+
return `${value.slice(0, safeLength - 3)}...`;
|
|
460844
|
+
}
|
|
460845
|
+
function splashForgeRatio(modules) {
|
|
460846
|
+
const enabled = modules.filter((module) => module.state !== "off");
|
|
460847
|
+
if (enabled.length === 0)
|
|
460848
|
+
return 1;
|
|
460849
|
+
const lit = enabled.filter((module) => module.state === "done").length;
|
|
460850
|
+
return lit / enabled.length;
|
|
460851
|
+
}
|
|
460852
|
+
function moduleTrainLine(modules, timeMs, width) {
|
|
460853
|
+
const compact2 = width < 78;
|
|
460854
|
+
const result = [];
|
|
460855
|
+
for (const [index, module] of modules.entries()) {
|
|
460856
|
+
if (index > 0) {
|
|
460857
|
+
result.push(seg(compact2 ? " -" : " --", "dim"));
|
|
460858
|
+
result.push(...movingTrack(5, timeMs, index * 120));
|
|
460859
|
+
result.push(seg(compact2 ? "- " : "-- ", "dim"));
|
|
460860
|
+
}
|
|
460861
|
+
const state2 = module.state === "off" ? "wait" : module.state;
|
|
460862
|
+
const label = compact2 ? module.label.slice(0, 4) : module.label;
|
|
460863
|
+
result.push(seg(glyph(state2), module.state === "off" ? "dim" : roleForState(state2), module.state !== "off"));
|
|
460864
|
+
result.push(seg(` ${label}`, module.state === "active" ? "text" : "dim", module.state === "active"));
|
|
460865
|
+
}
|
|
460866
|
+
return centerLine(result, width);
|
|
460867
|
+
}
|
|
460868
|
+
function forgeBarLine(ratio, timeMs, width) {
|
|
460869
|
+
const barWidth = Math.min(36, Math.max(12, width - 36));
|
|
460870
|
+
const ready = ratio >= 1;
|
|
460871
|
+
const filled = ready ? barWidth : Math.min(Math.max(0, Math.floor(ratio * barWidth)), Math.max(0, barWidth - 5));
|
|
460872
|
+
const inner = ready ? [seg("#".repeat(barWidth), "success")] : [
|
|
460873
|
+
...filled > 0 ? [seg("#".repeat(filled), "gold")] : [],
|
|
460874
|
+
...movingTrack(barWidth - filled, timeMs)
|
|
460875
|
+
];
|
|
460876
|
+
return centerLine([
|
|
460877
|
+
seg("[", "dim"),
|
|
460878
|
+
...inner,
|
|
460879
|
+
seg("] ", "dim"),
|
|
460880
|
+
seg(ready ? "ENTORNO LISTO" : "FORJANDO ENTORNO", ready ? "success" : "gold", true)
|
|
460881
|
+
], width);
|
|
460882
|
+
}
|
|
460883
|
+
function buildSplashFrame(input) {
|
|
460884
|
+
const width = clamp4(Math.floor(input.width), 48, 140);
|
|
460885
|
+
const timeMs = Math.max(0, input.timeMs);
|
|
460886
|
+
const asciiOnly = input.asciiOnly ?? false;
|
|
460887
|
+
const dash = asciiOnly ? "--" : "\u2014";
|
|
460888
|
+
const dot = asciiOnly ? "|" : "\xB7";
|
|
460889
|
+
const showTorch = input.rows >= TORCH_MIN_ROWS;
|
|
460890
|
+
const torchProgress = easeOut(progress(timeMs, 120, 880));
|
|
460891
|
+
const wordmarkProgress = easeOut(progress(timeMs, 480, 1250));
|
|
460892
|
+
const flameFrame = Math.floor(timeMs / 90) % BOOT_FLAME_FRAMES.length;
|
|
460893
|
+
const ratio = splashForgeRatio(input.modules);
|
|
460894
|
+
const lines = [];
|
|
460895
|
+
lines.push(pulseRule(width, timeMs, "THEUS // ENCENDIDO"));
|
|
460896
|
+
lines.push(leftRightLine([seg("SISTEMA LOCAL", "text", true)], [seg("FORJADO EN PERU", "brand", true)], width));
|
|
460897
|
+
lines.push(textLine());
|
|
460898
|
+
if (showTorch) {
|
|
460899
|
+
for (const [index, raw] of BOOT_TORCH.entries()) {
|
|
460900
|
+
const visibleRows = Math.ceil(torchProgress * BOOT_TORCH.length);
|
|
460901
|
+
const source = index === 0 ? BOOT_FLAME_FRAMES[flameFrame] : raw;
|
|
460902
|
+
const visible = index >= BOOT_TORCH.length - visibleRows;
|
|
460903
|
+
lines.push(centerLine(visible ? revealLine(source, torchProgress, index < 4 ? "gold" : "text") : textLine(" ".repeat(source.length)), width));
|
|
460904
|
+
}
|
|
460905
|
+
lines.push(textLine());
|
|
460906
|
+
}
|
|
460907
|
+
for (const raw of THEUS_WORDMARK_LINES) {
|
|
460908
|
+
lines.push(centerLine(revealLine(raw.trimEnd(), wordmarkProgress, "text"), width));
|
|
460909
|
+
}
|
|
460910
|
+
lines.push(textLine());
|
|
460911
|
+
lines.push(centerLine([
|
|
460912
|
+
seg("THEUS", "brand", true),
|
|
460913
|
+
seg(" / HECHO EN PERU / ", "text", true),
|
|
460914
|
+
seg("AD ASTRA PER ASPERA", "gold")
|
|
460915
|
+
], width));
|
|
460916
|
+
lines.push(textLine());
|
|
460917
|
+
lines.push(moduleTrainLine(input.modules, timeMs, width));
|
|
460918
|
+
lines.push(textLine());
|
|
460919
|
+
lines.push(forgeBarLine(ratio, timeMs, width));
|
|
460920
|
+
lines.push(textLine());
|
|
460921
|
+
if (input.novedad) {
|
|
460922
|
+
const title = truncateText(`NOVEDADES ${input.novedad.version} ${dash} ${input.novedad.titulo}`, width - 2);
|
|
460923
|
+
lines.push(centerLine([seg(title, "gold", true)], width));
|
|
460924
|
+
lines.push(centerLine([seg(truncateText(input.novedad.punto, width - 4), "dim")], width));
|
|
460925
|
+
} else {
|
|
460926
|
+
lines.push(textLine());
|
|
460927
|
+
lines.push(textLine());
|
|
460928
|
+
}
|
|
460929
|
+
lines.push(textLine());
|
|
460930
|
+
lines.push(centerLine([seg(`/novedades para ver todo ${dot} pulsa una tecla para entrar`, "dim")], width));
|
|
460931
|
+
const availableRows = Math.max(lines.length, Math.floor(input.rows) - 1);
|
|
460932
|
+
const padTop = Math.max(0, Math.floor((availableRows - lines.length) / 2));
|
|
460933
|
+
const framed = [
|
|
460934
|
+
...Array.from({ length: padTop }, () => textLine()),
|
|
460935
|
+
...lines
|
|
460936
|
+
];
|
|
460937
|
+
return framed.map((line) => fitForgeLine(line, width));
|
|
460938
|
+
}
|
|
460939
|
+
var SPLASH_MIN_ROWS = 20, SPLASH_MIN_COLUMNS = 60, TORCH_MIN_ROWS = 28;
|
|
460940
|
+
var init_splashFrameModel = __esm(() => {
|
|
460941
|
+
init_asciiLogo();
|
|
460942
|
+
init_forgePreviewModel();
|
|
460943
|
+
});
|
|
460944
|
+
|
|
460705
460945
|
// components/Theus/TheusSplash.tsx
|
|
460706
460946
|
var exports_TheusSplash = {};
|
|
460707
460947
|
__export(exports_TheusSplash, {
|
|
@@ -460731,6 +460971,7 @@ function TheusSplash({
|
|
|
460731
460971
|
reducedMotion
|
|
460732
460972
|
});
|
|
460733
460973
|
const motionDisabled = motionPolicy.motion !== "full";
|
|
460974
|
+
const cinematic = !motionDisabled && rows >= SPLASH_MIN_ROWS && columns >= SPLASH_MIN_COLUMNS;
|
|
460734
460975
|
const [animationRef, time4] = useAnimationFrame(motionPolicy.frameIntervalMs);
|
|
460735
460976
|
const startTime2 = import_react320.useRef(time4);
|
|
460736
460977
|
const finished7 = import_react320.useRef(false);
|
|
@@ -460738,9 +460979,25 @@ function TheusSplash({
|
|
|
460738
460979
|
promise: projectIntelligencePromise
|
|
460739
460980
|
});
|
|
460740
460981
|
const project2 = compactText2(basename59(getCwd()) || "proyecto", 32);
|
|
460741
|
-
const
|
|
460982
|
+
const modelName = import_react320.useMemo(() => {
|
|
460983
|
+
try {
|
|
460984
|
+
return String(getMainLoopModel() ?? "");
|
|
460985
|
+
} catch {
|
|
460986
|
+
return "";
|
|
460987
|
+
}
|
|
460988
|
+
}, []);
|
|
460989
|
+
const model = compactText2(modelName || "sin resolver", columns < 72 ? 26 : 42);
|
|
460990
|
+
const intelModuleState = intelligence.phase === "ready" ? "done" : intelligence.phase === "loading" ? "active" : "off";
|
|
460991
|
+
const modules = [
|
|
460992
|
+
{ label: "PROYECTO", state: project2 ? "done" : "wait" },
|
|
460993
|
+
{ label: "MODELO", state: modelName ? "done" : "wait" },
|
|
460994
|
+
{ label: "MEMORIA", state: intelModuleState },
|
|
460995
|
+
{ label: "GRAFO", state: intelModuleState }
|
|
460996
|
+
];
|
|
460997
|
+
const novedad = NOVEDADES[0];
|
|
460998
|
+
const splashMs = motionDisabled ? 520 : cinematic ? CINEMATIC_SPLASH_MS : COMPACT_SPLASH_MS;
|
|
460742
460999
|
const showWordmark = rows >= 17 && columns >= 42;
|
|
460743
|
-
const elapsed = motionDisabled ?
|
|
461000
|
+
const elapsed = motionDisabled ? splashMs : Math.max(0, time4 - startTime2.current);
|
|
460744
461001
|
const reveal = motionDisabled ? WORDMARK_WIDTH : Math.min(WORDMARK_WIDTH, Math.floor(elapsed / 28));
|
|
460745
461002
|
const finish = import_react320.useCallback(() => {
|
|
460746
461003
|
if (finished7.current)
|
|
@@ -460749,9 +461006,9 @@ function TheusSplash({
|
|
|
460749
461006
|
onDone();
|
|
460750
461007
|
}, [onDone]);
|
|
460751
461008
|
import_react320.useEffect(() => {
|
|
460752
|
-
const timer = setTimeout(finish,
|
|
461009
|
+
const timer = setTimeout(finish, splashMs);
|
|
460753
461010
|
return () => clearTimeout(timer);
|
|
460754
|
-
}, [finish,
|
|
461011
|
+
}, [finish, splashMs]);
|
|
460755
461012
|
use_input_default(() => finish());
|
|
460756
461013
|
const scanRail = import_react320.useMemo(() => {
|
|
460757
461014
|
const width = Math.max(10, Math.min(36, columns - 24));
|
|
@@ -460760,6 +461017,38 @@ function TheusSplash({
|
|
|
460760
461017
|
const head = Math.floor(elapsed / 70) % width;
|
|
460761
461018
|
return Array.from({ length: width }, (_, index) => index === head ? "*" : "-").join("");
|
|
460762
461019
|
}, [columns, elapsed, motionDisabled]);
|
|
461020
|
+
if (cinematic) {
|
|
461021
|
+
const frame = buildSplashFrame({
|
|
461022
|
+
timeMs: elapsed,
|
|
461023
|
+
width: Math.min(columns, 140),
|
|
461024
|
+
rows,
|
|
461025
|
+
modules,
|
|
461026
|
+
novedad: novedad ? {
|
|
461027
|
+
version: novedad.version,
|
|
461028
|
+
titulo: novedad.titulo,
|
|
461029
|
+
punto: novedad.puntos[0] ?? ""
|
|
461030
|
+
} : undefined,
|
|
461031
|
+
asciiOnly: motionPolicy.glyphMode === "ascii"
|
|
461032
|
+
});
|
|
461033
|
+
return /* @__PURE__ */ jsx_runtime464.jsx(ThemedBox_default, {
|
|
461034
|
+
ref: animationRef,
|
|
461035
|
+
flexDirection: "column",
|
|
461036
|
+
width: "100%",
|
|
461037
|
+
height: frame.length,
|
|
461038
|
+
overflow: "hidden",
|
|
461039
|
+
flexShrink: 0,
|
|
461040
|
+
children: frame.map((line, row) => /* @__PURE__ */ jsx_runtime464.jsx(ThemedBox_default, {
|
|
461041
|
+
height: 1,
|
|
461042
|
+
flexShrink: 0,
|
|
461043
|
+
children: line.map((item, column) => /* @__PURE__ */ jsx_runtime464.jsx(ThemedText, {
|
|
461044
|
+
color: forgeRoleColor(item.role, theme2),
|
|
461045
|
+
bold: item.bold,
|
|
461046
|
+
wrap: "truncate-end",
|
|
461047
|
+
children: item.text
|
|
461048
|
+
}, `${row}:${column}`))
|
|
461049
|
+
}, row))
|
|
461050
|
+
});
|
|
461051
|
+
}
|
|
460763
461052
|
return /* @__PURE__ */ jsx_runtime464.jsxs(ThemedBox_default, {
|
|
460764
461053
|
ref: animationRef,
|
|
460765
461054
|
flexDirection: "column",
|
|
@@ -460877,7 +461166,7 @@ function TheusSplash({
|
|
|
460877
461166
|
]
|
|
460878
461167
|
});
|
|
460879
461168
|
}
|
|
460880
|
-
var import_react320, jsx_runtime464,
|
|
461169
|
+
var import_react320, jsx_runtime464, CINEMATIC_SPLASH_MS = 2500, COMPACT_SPLASH_MS = 1450, THEUS_WORDMARK, WORDMARK_WIDTH, TheusSplash_default;
|
|
460881
461170
|
var init_TheusSplash = __esm(() => {
|
|
460882
461171
|
init_ink2();
|
|
460883
461172
|
init_useTerminalSize();
|
|
@@ -460885,7 +461174,10 @@ var init_TheusSplash = __esm(() => {
|
|
|
460885
461174
|
init_model();
|
|
460886
461175
|
init_theme();
|
|
460887
461176
|
init_settings2();
|
|
461177
|
+
init_data();
|
|
460888
461178
|
init_forgeRuntime();
|
|
461179
|
+
init_forgePreviewModel();
|
|
461180
|
+
init_splashFrameModel();
|
|
460889
461181
|
init_useProjectIntelligenceState();
|
|
460890
461182
|
import_react320 = __toESM(require_react(), 1);
|
|
460891
461183
|
jsx_runtime464 = __toESM(require_jsx_runtime(), 1);
|
|
@@ -465409,7 +465701,7 @@ function appendToLog(path21, message) {
|
|
|
465409
465701
|
cwd: getFsImplementation().cwd(),
|
|
465410
465702
|
userType: process.env.USER_TYPE,
|
|
465411
465703
|
sessionId: getSessionId(),
|
|
465412
|
-
version: { VERSION: "0.2.
|
|
465704
|
+
version: { VERSION: "0.2.4", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
|
|
465413
465705
|
};
|
|
465414
465706
|
getLogWriter(path21).write(messageWithTimestamp);
|
|
465415
465707
|
}
|
|
@@ -469543,8 +469835,8 @@ async function getEnvLessBridgeConfig() {
|
|
|
469543
469835
|
}
|
|
469544
469836
|
async function checkEnvLessBridgeMinVersion() {
|
|
469545
469837
|
const cfg = await getEnvLessBridgeConfig();
|
|
469546
|
-
if (cfg.min_version && lt({ VERSION: "0.2.
|
|
469547
|
-
return `Your version of Theus (${{ VERSION: "0.2.
|
|
469838
|
+
if (cfg.min_version && lt({ VERSION: "0.2.4", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
|
|
469839
|
+
return `Your version of Theus (${{ VERSION: "0.2.4", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.
|
|
469548
469840
|
Version ${cfg.min_version} or higher is required. Run \`theus update\` to update.`;
|
|
469549
469841
|
}
|
|
469550
469842
|
return null;
|
|
@@ -470018,7 +470310,7 @@ async function initBridgeCore(params) {
|
|
|
470018
470310
|
const rawApi = createBridgeApiClient({
|
|
470019
470311
|
baseUrl,
|
|
470020
470312
|
getAccessToken,
|
|
470021
|
-
runnerVersion: { VERSION: "0.2.
|
|
470313
|
+
runnerVersion: { VERSION: "0.2.4", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
|
|
470022
470314
|
onDebug: logForDebugging,
|
|
470023
470315
|
onAuth401,
|
|
470024
470316
|
getTrustedDeviceToken
|
|
@@ -475284,7 +475576,7 @@ async function startMCPServer(cwd3, debug2, verbose) {
|
|
|
475284
475576
|
setCwd(cwd3);
|
|
475285
475577
|
const server = new Server({
|
|
475286
475578
|
name: "theus/tengu",
|
|
475287
|
-
version: { VERSION: "0.2.
|
|
475579
|
+
version: { VERSION: "0.2.4", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
|
|
475288
475580
|
}, {
|
|
475289
475581
|
capabilities: {
|
|
475290
475582
|
tools: {}
|
|
@@ -476726,7 +477018,7 @@ async function setupTokenHandler(root2) {
|
|
|
476726
477018
|
gap: 1,
|
|
476727
477019
|
children: [
|
|
476728
477020
|
/* @__PURE__ */ jsx_runtime476.jsx(TheusBanner, {
|
|
476729
|
-
version: { VERSION: "0.2.
|
|
477021
|
+
version: { VERSION: "0.2.4", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
|
|
476730
477022
|
}),
|
|
476731
477023
|
showAuthWarning && /* @__PURE__ */ jsx_runtime476.jsxs(ThemedBox_default, {
|
|
476732
477024
|
flexDirection: "column",
|
|
@@ -478131,7 +478423,7 @@ ${customInstructions}` : customInstructions;
|
|
|
478131
478423
|
}
|
|
478132
478424
|
}
|
|
478133
478425
|
logForDiagnosticsNoPII("info", "started", {
|
|
478134
|
-
version: { VERSION: "0.2.
|
|
478426
|
+
version: { VERSION: "0.2.4", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
|
|
478135
478427
|
is_native_binary: isInBundledMode()
|
|
478136
478428
|
});
|
|
478137
478429
|
registerCleanup(async () => {
|
|
@@ -478915,7 +479207,7 @@ Usage: theus --remote "your task description"`, () => gracefulShutdown(1));
|
|
|
478915
479207
|
pendingHookMessages
|
|
478916
479208
|
}, renderAndRun);
|
|
478917
479209
|
}
|
|
478918
|
-
}).version(`${{ VERSION: "0.2.
|
|
479210
|
+
}).version(`${{ VERSION: "0.2.4", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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");
|
|
478919
479211
|
program2.option("-w, --worktree [name]", "Crea un nuevo worktree de git para esta sesi\xF3n (opcionalmente indica un nombre)");
|
|
478920
479212
|
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.");
|
|
478921
479213
|
if (canUserConfigureAdvisor()) {
|
|
@@ -479429,7 +479721,7 @@ if (false) {}
|
|
|
479429
479721
|
async function main2() {
|
|
479430
479722
|
const args = process.argv.slice(2);
|
|
479431
479723
|
if (args.length === 1 && (args[0] === "--version" || args[0] === "-v" || args[0] === "-V")) {
|
|
479432
|
-
console.log(`${{ VERSION: "0.2.
|
|
479724
|
+
console.log(`${{ VERSION: "0.2.4", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)`);
|
|
479433
479725
|
return;
|
|
479434
479726
|
}
|
|
479435
479727
|
const {
|