theus-cli 0.2.3 → 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 +462 -123
- 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) {
|
|
@@ -296170,9 +296170,9 @@ function getTheusEnvMetadata() {
|
|
|
296170
296170
|
};
|
|
296171
296171
|
}
|
|
296172
296172
|
function getBuildAgeMinutes() {
|
|
296173
|
-
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)
|
|
296174
296174
|
return;
|
|
296175
|
-
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();
|
|
296176
296176
|
if (isNaN(buildTime))
|
|
296177
296177
|
return;
|
|
296178
296178
|
return Math.floor((Date.now() - buildTime) / 60000);
|
|
@@ -312402,7 +312402,7 @@ function getAssistantMessageFromError(error40, model, options2) {
|
|
|
312402
312402
|
if (process.env.USER_TYPE === "ant") {
|
|
312403
312403
|
const baseMessage = `API Error: 400 ${error40.message}
|
|
312404
312404
|
|
|
312405
|
-
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}.`;
|
|
312406
312406
|
const rewindInstruction = getIsNonInteractiveSession() ? "" : " Then, use /rewind to recover the conversation.";
|
|
312407
312407
|
return createAssistantAPIErrorMessage({
|
|
312408
312408
|
content: baseMessage + rewindInstruction,
|
|
@@ -312438,7 +312438,7 @@ Run /share and post the JSON file to ${{ VERSION: "0.2.3", BUILD_TIME: "1970-01-
|
|
|
312438
312438
|
if (process.env.USER_TYPE === "ant" && !process.env.THEUS_MODEL && error40 instanceof Error && error40.message.toLowerCase().includes("invalid model name")) {
|
|
312439
312439
|
const orgId = getOauthAccountInfo()?.organizationUuid;
|
|
312440
312440
|
const baseMsg = `[THEUS-INTERNAL] Your org isn't gated into the \`${model}\` model. Either run \`theus\` with \`THEUS_MODEL=${getDefaultMainLoopModelSetting()}\``;
|
|
312441
|
-
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.`;
|
|
312442
312442
|
return createAssistantAPIErrorMessage({
|
|
312443
312443
|
content: msg,
|
|
312444
312444
|
error: "invalid_request"
|
|
@@ -322538,7 +322538,7 @@ function buildPrimarySection() {
|
|
|
322538
322538
|
});
|
|
322539
322539
|
return [{
|
|
322540
322540
|
label: "Version",
|
|
322541
|
-
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
|
|
322542
322542
|
}, {
|
|
322543
322543
|
label: "Session name",
|
|
322544
322544
|
value: nameValue
|
|
@@ -326289,7 +326289,7 @@ function Config({
|
|
|
326289
326289
|
}
|
|
326290
326290
|
})
|
|
326291
326291
|
}) : showSubmenu === "ChannelDowngrade" ? /* @__PURE__ */ jsx_runtime181.jsx(ChannelDowngradeDialog, {
|
|
326292
|
-
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,
|
|
326293
326293
|
onChoice: (choice) => {
|
|
326294
326294
|
setShowSubmenu(null);
|
|
326295
326295
|
setTabsHidden(false);
|
|
@@ -326301,7 +326301,7 @@ function Config({
|
|
|
326301
326301
|
autoUpdatesChannel: "stable"
|
|
326302
326302
|
};
|
|
326303
326303
|
if (choice === "stay") {
|
|
326304
|
-
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;
|
|
326305
326305
|
}
|
|
326306
326306
|
updateSettingsForSource("userSettings", newSettings);
|
|
326307
326307
|
setSettingsData((prev_27) => ({
|
|
@@ -334335,7 +334335,7 @@ function HelpV2(t0) {
|
|
|
334335
334335
|
let t6;
|
|
334336
334336
|
if ($2[31] !== tabs) {
|
|
334337
334337
|
t6 = /* @__PURE__ */ jsx_runtime208.jsx(Tabs, {
|
|
334338
|
-
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}`,
|
|
334339
334339
|
color: "professionalBlue",
|
|
334340
334340
|
defaultTab: "general",
|
|
334341
334341
|
children: tabs
|
|
@@ -351059,6 +351059,16 @@ var init_mcp3 = __esm(() => {
|
|
|
351059
351059
|
var NOVEDADES;
|
|
351060
351060
|
var init_data = __esm(() => {
|
|
351061
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
|
+
},
|
|
351062
351072
|
{
|
|
351063
351073
|
version: "v0.2.3",
|
|
351064
351074
|
fecha: "2026-07-11",
|
|
@@ -351926,9 +351936,9 @@ function getAllReleaseNotes(changelogContent = getStoredChangelogFromMemory()) {
|
|
|
351926
351936
|
return [];
|
|
351927
351937
|
}
|
|
351928
351938
|
}
|
|
351929
|
-
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) {
|
|
351930
351940
|
if (process.env.USER_TYPE === "ant") {
|
|
351931
|
-
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;
|
|
351932
351942
|
if (changelog) {
|
|
351933
351943
|
const commits = changelog.trim().split(`
|
|
351934
351944
|
`).filter(Boolean);
|
|
@@ -356150,7 +356160,7 @@ var init_Messages = __esm(() => {
|
|
|
356150
356160
|
let t1;
|
|
356151
356161
|
if ($2[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
356152
356162
|
t1 = /* @__PURE__ */ jsx_runtime246.jsx(TheusSessionHeader, {
|
|
356153
|
-
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
|
|
356154
356164
|
});
|
|
356155
356165
|
$2[0] = t1;
|
|
356156
356166
|
} else {
|
|
@@ -383690,7 +383700,7 @@ async function captureMemoryDiagnostics(trigger, dumpNumber = 0) {
|
|
|
383690
383700
|
smapsRollup,
|
|
383691
383701
|
platform: process.platform,
|
|
383692
383702
|
nodeVersion: process.version,
|
|
383693
|
-
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
|
|
383694
383704
|
};
|
|
383695
383705
|
}
|
|
383696
383706
|
async function performHeapDump(trigger = "manual", dumpNumber = 0) {
|
|
@@ -384276,7 +384286,7 @@ var init_bridge_kick = __esm(() => {
|
|
|
384276
384286
|
var call55 = async () => {
|
|
384277
384287
|
return {
|
|
384278
384288
|
type: "text",
|
|
384279
|
-
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
|
|
384280
384290
|
};
|
|
384281
384291
|
}, version2, version_default;
|
|
384282
384292
|
var init_version = __esm(() => {
|
|
@@ -388121,13 +388131,13 @@ async function updateReleaseBundle() {
|
|
|
388121
388131
|
await gracefulShutdown(1);
|
|
388122
388132
|
return;
|
|
388123
388133
|
}
|
|
388124
|
-
if (gte({ VERSION: "0.2.
|
|
388125
|
-
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})`) + `
|
|
388126
388136
|
`);
|
|
388127
388137
|
await gracefulShutdown(0);
|
|
388128
388138
|
return;
|
|
388129
388139
|
}
|
|
388130
|
-
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})
|
|
388131
388141
|
`);
|
|
388132
388142
|
writeToStdout(`Installing update from theus.pe/dl...
|
|
388133
388143
|
`);
|
|
@@ -388161,7 +388171,7 @@ async function updateReleaseBundle() {
|
|
|
388161
388171
|
return;
|
|
388162
388172
|
}
|
|
388163
388173
|
cpSync(staged, bundleDir, { recursive: true, force: true });
|
|
388164
|
-
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}`) + `
|
|
388165
388175
|
`);
|
|
388166
388176
|
await regenerateCompletionCache();
|
|
388167
388177
|
} finally {
|
|
@@ -388174,7 +388184,7 @@ async function updateReleaseBundle() {
|
|
|
388174
388184
|
async function update() {
|
|
388175
388185
|
logEvent("tengu_update_check", {});
|
|
388176
388186
|
await updateNaupa();
|
|
388177
|
-
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}
|
|
388178
388188
|
`);
|
|
388179
388189
|
const channel2 = getInitialSettings()?.autoUpdatesChannel ?? "latest";
|
|
388180
388190
|
writeToStdout(`Checking for updates to ${channel2} version...
|
|
@@ -388253,8 +388263,8 @@ async function update() {
|
|
|
388253
388263
|
writeToStdout(`Theus is managed by Homebrew.
|
|
388254
388264
|
`);
|
|
388255
388265
|
const latest = await getLatestVersion(channel2);
|
|
388256
|
-
if (latest && !gte({ VERSION: "0.2.
|
|
388257
|
-
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}
|
|
388258
388268
|
`);
|
|
388259
388269
|
writeToStdout(`
|
|
388260
388270
|
`);
|
|
@@ -388270,8 +388280,8 @@ async function update() {
|
|
|
388270
388280
|
writeToStdout(`Theus is managed by winget.
|
|
388271
388281
|
`);
|
|
388272
388282
|
const latest = await getLatestVersion(channel2);
|
|
388273
|
-
if (latest && !gte({ VERSION: "0.2.
|
|
388274
|
-
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}
|
|
388275
388285
|
`);
|
|
388276
388286
|
writeToStdout(`
|
|
388277
388287
|
`);
|
|
@@ -388287,8 +388297,8 @@ async function update() {
|
|
|
388287
388297
|
writeToStdout(`Theus is managed by apk.
|
|
388288
388298
|
`);
|
|
388289
388299
|
const latest = await getLatestVersion(channel2);
|
|
388290
|
-
if (latest && !gte({ VERSION: "0.2.
|
|
388291
|
-
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}
|
|
388292
388302
|
`);
|
|
388293
388303
|
writeToStdout(`
|
|
388294
388304
|
`);
|
|
@@ -388353,11 +388363,11 @@ async function update() {
|
|
|
388353
388363
|
`);
|
|
388354
388364
|
await gracefulShutdown(1);
|
|
388355
388365
|
}
|
|
388356
|
-
if (result.latestVersion === { VERSION: "0.2.
|
|
388357
|
-
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})`) + `
|
|
388358
388368
|
`);
|
|
388359
388369
|
} else {
|
|
388360
|
-
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}`) + `
|
|
388361
388371
|
`);
|
|
388362
388372
|
await regenerateCompletionCache();
|
|
388363
388373
|
}
|
|
@@ -388376,9 +388386,9 @@ async function update() {
|
|
|
388376
388386
|
await removeInstalledSymlink();
|
|
388377
388387
|
}
|
|
388378
388388
|
logForDebugging("update: Checking npm registry for latest version");
|
|
388379
|
-
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}`);
|
|
388380
388390
|
const npmTag = channel2 === "stable" ? "stable" : "latest";
|
|
388381
|
-
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`;
|
|
388382
388392
|
logForDebugging(`update: Running: ${npmCommand}`);
|
|
388383
388393
|
const latestVersion = await getLatestVersion(channel2);
|
|
388384
388394
|
logForDebugging(`update: Latest version from npm: ${latestVersion || "FAILED"}`);
|
|
@@ -388398,7 +388408,7 @@ async function update() {
|
|
|
388398
388408
|
`);
|
|
388399
388409
|
process.stderr.write(` \u2022 Corporate proxy/firewall blocking npm
|
|
388400
388410
|
`);
|
|
388401
|
-
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")) {
|
|
388402
388412
|
process.stderr.write(` \u2022 Internal/development build not published to npm
|
|
388403
388413
|
`);
|
|
388404
388414
|
}
|
|
@@ -388410,19 +388420,19 @@ async function update() {
|
|
|
388410
388420
|
`);
|
|
388411
388421
|
process.stderr.write(` \u2022 Run with --debug flag for more details
|
|
388412
388422
|
`);
|
|
388413
|
-
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");
|
|
388414
388424
|
process.stderr.write(` \u2022 Manually check: npm view ${packageName} version
|
|
388415
388425
|
`);
|
|
388416
388426
|
process.stderr.write(` \u2022 Check if you need to login: npm whoami
|
|
388417
388427
|
`);
|
|
388418
388428
|
await gracefulShutdown(1);
|
|
388419
388429
|
}
|
|
388420
|
-
if (gte({ VERSION: "0.2.
|
|
388421
|
-
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})`) + `
|
|
388422
388432
|
`);
|
|
388423
388433
|
await gracefulShutdown(0);
|
|
388424
388434
|
}
|
|
388425
|
-
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})
|
|
388426
388436
|
`);
|
|
388427
388437
|
writeToStdout(`Installing update...
|
|
388428
388438
|
`);
|
|
@@ -388467,7 +388477,7 @@ async function update() {
|
|
|
388467
388477
|
logForDebugging(`update: Installation status: ${status2}`);
|
|
388468
388478
|
switch (status2) {
|
|
388469
388479
|
case "success":
|
|
388470
|
-
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}`) + `
|
|
388471
388481
|
`);
|
|
388472
388482
|
await regenerateCompletionCache();
|
|
388473
388483
|
break;
|
|
@@ -388477,7 +388487,7 @@ async function update() {
|
|
|
388477
388487
|
if (useLocalUpdate) {
|
|
388478
388488
|
process.stderr.write(`Try manually updating with:
|
|
388479
388489
|
`);
|
|
388480
|
-
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}
|
|
388481
388491
|
`);
|
|
388482
388492
|
} else {
|
|
388483
388493
|
process.stderr.write(`Try running with sudo or fix npm permissions
|
|
@@ -388493,7 +388503,7 @@ async function update() {
|
|
|
388493
388503
|
if (useLocalUpdate) {
|
|
388494
388504
|
process.stderr.write(`Try manually updating with:
|
|
388495
388505
|
`);
|
|
388496
|
-
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}
|
|
388497
388507
|
`);
|
|
388498
388508
|
} else {
|
|
388499
388509
|
process.stderr.write(`Or consider using native installation with: theus install
|
|
@@ -395394,7 +395404,7 @@ var init_sessionStorage = __esm(() => {
|
|
|
395394
395404
|
init_settings2();
|
|
395395
395405
|
init_slowOperations();
|
|
395396
395406
|
init_uuid();
|
|
395397
|
-
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;
|
|
395398
395408
|
MAX_TOMBSTONE_REWRITE_BYTES = 50 * 1024 * 1024;
|
|
395399
395409
|
SKIP_FIRST_PROMPT_PATTERN = /^(?:\s*<[a-z][\w-]*[\s>]|\[Request interrupted by user[^\]]*\])/;
|
|
395400
395410
|
EPHEMERAL_PROGRESS_TYPES = new Set([
|
|
@@ -396599,7 +396609,7 @@ var init_filesystem = __esm(() => {
|
|
|
396599
396609
|
});
|
|
396600
396610
|
getBundledSkillsRoot = memoize_default(function getBundledSkillsRoot2() {
|
|
396601
396611
|
const nonce = randomBytes21(16).toString("hex");
|
|
396602
|
-
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);
|
|
396603
396613
|
});
|
|
396604
396614
|
getResolvedWorkingDirPaths = memoize_default(getPathsForPermissionCheck);
|
|
396605
396615
|
});
|
|
@@ -401774,7 +401784,7 @@ function getSimpleDoingTasksSection() {
|
|
|
401774
401784
|
];
|
|
401775
401785
|
const userHelpSubitems = [
|
|
401776
401786
|
`/help: Get help with using Theus`,
|
|
401777
|
-
`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}`
|
|
401778
401788
|
];
|
|
401779
401789
|
const items = [
|
|
401780
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.`,
|
|
@@ -402597,7 +402607,7 @@ function computeFingerprint(messageText, version3) {
|
|
|
402597
402607
|
}
|
|
402598
402608
|
function computeFingerprintFromMessages(messages) {
|
|
402599
402609
|
const firstMessageText = extractFirstMessageText(messages);
|
|
402600
|
-
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);
|
|
402601
402611
|
}
|
|
402602
402612
|
var FINGERPRINT_SALT = "59cf53e54c78";
|
|
402603
402613
|
var init_fingerprint = () => {};
|
|
@@ -405121,7 +405131,7 @@ async function sideQuery(opts) {
|
|
|
405121
405131
|
betas.push(STRUCTURED_OUTPUTS_BETA_HEADER);
|
|
405122
405132
|
}
|
|
405123
405133
|
const messageText = extractFirstUserMessageText(messages);
|
|
405124
|
-
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);
|
|
405125
405135
|
const attributionHeader = getAttributionHeader(fingerprint);
|
|
405126
405136
|
const systemBlocks = [
|
|
405127
405137
|
attributionHeader ? { type: "text", text: attributionHeader } : null,
|
|
@@ -406424,7 +406434,7 @@ async function handleMemories(state) {
|
|
|
406424
406434
|
async function runProjectContextMcpServer() {
|
|
406425
406435
|
const projectRoot = process.env.THEUS_PROJECT_ROOT || process.cwd();
|
|
406426
406436
|
const state = new ProjectContextState(projectRoot);
|
|
406427
|
-
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: {} } });
|
|
406428
406438
|
server.setRequestHandler(ListToolsRequestSchema, async () => ({
|
|
406429
406439
|
tools: TOOL_DEFINITIONS.map((t) => ({
|
|
406430
406440
|
name: t.name,
|
|
@@ -412101,7 +412111,7 @@ function buildSystemInitMessage(inputs) {
|
|
|
412101
412111
|
slash_commands: inputs.commands.filter((c5) => c5.userInvocable !== false).map((c5) => c5.name),
|
|
412102
412112
|
apiKeySource: getTheusApiKeyWithSource().source,
|
|
412103
412113
|
betas: getSdkBetas(),
|
|
412104
|
-
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,
|
|
412105
412115
|
output_style: outputStyle2,
|
|
412106
412116
|
agents: inputs.agents.map((agent) => agent.agentType),
|
|
412107
412117
|
skills: inputs.skills.filter((s) => s.userInvocable !== false).map((skill) => skill.name),
|
|
@@ -426735,7 +426745,7 @@ var init_useVoiceEnabled = __esm(() => {
|
|
|
426735
426745
|
function getSemverPart(version3) {
|
|
426736
426746
|
return `${import_semver13.major(version3, { loose: true })}.${import_semver13.minor(version3, { loose: true })}.${import_semver13.patch(version3, { loose: true })}`;
|
|
426737
426747
|
}
|
|
426738
|
-
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) {
|
|
426739
426749
|
const [lastNotifiedSemver, setLastNotifiedSemver] = import_react215.useState(() => getSemverPart(initialVersion));
|
|
426740
426750
|
if (!updatedVersion) {
|
|
426741
426751
|
return null;
|
|
@@ -426775,7 +426785,7 @@ function AutoUpdater({
|
|
|
426775
426785
|
return;
|
|
426776
426786
|
}
|
|
426777
426787
|
if (false) {}
|
|
426778
|
-
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;
|
|
426779
426789
|
const channel2 = getInitialSettings()?.autoUpdatesChannel ?? "latest";
|
|
426780
426790
|
let latestVersion = await getLatestVersion(channel2);
|
|
426781
426791
|
const isDisabled2 = isAutoUpdaterDisabled();
|
|
@@ -426911,7 +426921,7 @@ function AutoUpdater({
|
|
|
426911
426921
|
" ",
|
|
426912
426922
|
/* @__PURE__ */ jsx_runtime384.jsx(ThemedText, {
|
|
426913
426923
|
bold: true,
|
|
426914
|
-
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}`
|
|
426915
426925
|
})
|
|
426916
426926
|
]
|
|
426917
426927
|
})
|
|
@@ -426988,12 +426998,12 @@ function NativeAutoUpdater({
|
|
|
426988
426998
|
logEvent("tengu_native_auto_updater_start", {});
|
|
426989
426999
|
try {
|
|
426990
427000
|
const maxVersion = await getMaxVersion();
|
|
426991
|
-
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)) {
|
|
426992
427002
|
const msg = await getMaxVersionMessage();
|
|
426993
427003
|
setMaxVersionIssue(msg ?? "affects your version");
|
|
426994
427004
|
}
|
|
426995
427005
|
const result = await installLatest(channel2);
|
|
426996
|
-
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;
|
|
426997
427007
|
const latencyMs = Date.now() - startTime2;
|
|
426998
427008
|
if (result.lockFailed) {
|
|
426999
427009
|
logEvent("tengu_native_auto_updater_lock_contention", {
|
|
@@ -427130,17 +427140,17 @@ function PackageManagerAutoUpdater(t0) {
|
|
|
427130
427140
|
const maxVersion = await getMaxVersion();
|
|
427131
427141
|
if (maxVersion && latest && gt(latest, maxVersion)) {
|
|
427132
427142
|
logForDebugging(`PackageManagerAutoUpdater: maxVersion ${maxVersion} is set, capping update from ${latest} to ${maxVersion}`);
|
|
427133
|
-
if (gte({ VERSION: "0.2.
|
|
427134
|
-
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`);
|
|
427135
427145
|
setUpdateAvailable(false);
|
|
427136
427146
|
return;
|
|
427137
427147
|
}
|
|
427138
427148
|
latest = maxVersion;
|
|
427139
427149
|
}
|
|
427140
|
-
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);
|
|
427141
427151
|
setUpdateAvailable(!!hasUpdate);
|
|
427142
427152
|
if (hasUpdate) {
|
|
427143
|
-
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}`);
|
|
427144
427154
|
}
|
|
427145
427155
|
};
|
|
427146
427156
|
$2[0] = t1;
|
|
@@ -427174,7 +427184,7 @@ function PackageManagerAutoUpdater(t0) {
|
|
|
427174
427184
|
wrap: "truncate",
|
|
427175
427185
|
children: [
|
|
427176
427186
|
"currentVersion: ",
|
|
427177
|
-
{ 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
|
|
427178
427188
|
]
|
|
427179
427189
|
});
|
|
427180
427190
|
$2[3] = verbose;
|
|
@@ -435047,7 +435057,7 @@ function buildStatusLineCommandInput(permissionMode, exceeds200kTokens, settings
|
|
|
435047
435057
|
project_dir: getOriginalCwd(),
|
|
435048
435058
|
added_dirs: addedDirs
|
|
435049
435059
|
},
|
|
435050
|
-
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,
|
|
435051
435061
|
output_style: {
|
|
435052
435062
|
name: outputStyleName
|
|
435053
435063
|
},
|
|
@@ -446610,7 +446620,7 @@ async function submitTranscriptShare(messages, trigger, appearanceId) {
|
|
|
446610
446620
|
} catch {}
|
|
446611
446621
|
const data = {
|
|
446612
446622
|
trigger,
|
|
446613
|
-
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,
|
|
446614
446624
|
platform: process.platform,
|
|
446615
446625
|
transcript,
|
|
446616
446626
|
subagentTranscripts: Object.keys(subagentTranscripts).length > 0 ? subagentTranscripts : undefined,
|
|
@@ -459555,7 +459565,7 @@ function Onboarding({
|
|
|
459555
459565
|
flexDirection: "column",
|
|
459556
459566
|
children: [
|
|
459557
459567
|
/* @__PURE__ */ jsx_runtime459.jsx(TheusBanner, {
|
|
459558
|
-
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
|
|
459559
459569
|
}),
|
|
459560
459570
|
/* @__PURE__ */ jsx_runtime459.jsxs(ThemedBox_default, {
|
|
459561
459571
|
flexDirection: "column",
|
|
@@ -460426,7 +460436,7 @@ function completeOnboarding() {
|
|
|
460426
460436
|
saveGlobalConfig((current) => ({
|
|
460427
460437
|
...current,
|
|
460428
460438
|
hasCompletedOnboarding: true,
|
|
460429
|
-
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
|
|
460430
460440
|
}));
|
|
460431
460441
|
}
|
|
460432
460442
|
function showDialog(root2, renderer) {
|
|
@@ -460655,6 +460665,283 @@ var init_interactiveHelpers = __esm(() => {
|
|
|
460655
460665
|
jsx_runtime463 = __toESM(require_jsx_runtime(), 1);
|
|
460656
460666
|
});
|
|
460657
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
|
+
|
|
460658
460945
|
// components/Theus/TheusSplash.tsx
|
|
460659
460946
|
var exports_TheusSplash = {};
|
|
460660
460947
|
__export(exports_TheusSplash, {
|
|
@@ -460684,6 +460971,7 @@ function TheusSplash({
|
|
|
460684
460971
|
reducedMotion
|
|
460685
460972
|
});
|
|
460686
460973
|
const motionDisabled = motionPolicy.motion !== "full";
|
|
460974
|
+
const cinematic = !motionDisabled && rows >= SPLASH_MIN_ROWS && columns >= SPLASH_MIN_COLUMNS;
|
|
460687
460975
|
const [animationRef, time4] = useAnimationFrame(motionPolicy.frameIntervalMs);
|
|
460688
460976
|
const startTime2 = import_react320.useRef(time4);
|
|
460689
460977
|
const finished7 = import_react320.useRef(false);
|
|
@@ -460691,9 +460979,25 @@ function TheusSplash({
|
|
|
460691
460979
|
promise: projectIntelligencePromise
|
|
460692
460980
|
});
|
|
460693
460981
|
const project2 = compactText2(basename59(getCwd()) || "proyecto", 32);
|
|
460694
|
-
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;
|
|
460695
460999
|
const showWordmark = rows >= 17 && columns >= 42;
|
|
460696
|
-
const elapsed = motionDisabled ?
|
|
461000
|
+
const elapsed = motionDisabled ? splashMs : Math.max(0, time4 - startTime2.current);
|
|
460697
461001
|
const reveal = motionDisabled ? WORDMARK_WIDTH : Math.min(WORDMARK_WIDTH, Math.floor(elapsed / 28));
|
|
460698
461002
|
const finish = import_react320.useCallback(() => {
|
|
460699
461003
|
if (finished7.current)
|
|
@@ -460702,9 +461006,9 @@ function TheusSplash({
|
|
|
460702
461006
|
onDone();
|
|
460703
461007
|
}, [onDone]);
|
|
460704
461008
|
import_react320.useEffect(() => {
|
|
460705
|
-
const timer = setTimeout(finish,
|
|
461009
|
+
const timer = setTimeout(finish, splashMs);
|
|
460706
461010
|
return () => clearTimeout(timer);
|
|
460707
|
-
}, [finish,
|
|
461011
|
+
}, [finish, splashMs]);
|
|
460708
461012
|
use_input_default(() => finish());
|
|
460709
461013
|
const scanRail = import_react320.useMemo(() => {
|
|
460710
461014
|
const width = Math.max(10, Math.min(36, columns - 24));
|
|
@@ -460713,6 +461017,38 @@ function TheusSplash({
|
|
|
460713
461017
|
const head = Math.floor(elapsed / 70) % width;
|
|
460714
461018
|
return Array.from({ length: width }, (_, index) => index === head ? "*" : "-").join("");
|
|
460715
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
|
+
}
|
|
460716
461052
|
return /* @__PURE__ */ jsx_runtime464.jsxs(ThemedBox_default, {
|
|
460717
461053
|
ref: animationRef,
|
|
460718
461054
|
flexDirection: "column",
|
|
@@ -460830,7 +461166,7 @@ function TheusSplash({
|
|
|
460830
461166
|
]
|
|
460831
461167
|
});
|
|
460832
461168
|
}
|
|
460833
|
-
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;
|
|
460834
461170
|
var init_TheusSplash = __esm(() => {
|
|
460835
461171
|
init_ink2();
|
|
460836
461172
|
init_useTerminalSize();
|
|
@@ -460838,7 +461174,10 @@ var init_TheusSplash = __esm(() => {
|
|
|
460838
461174
|
init_model();
|
|
460839
461175
|
init_theme();
|
|
460840
461176
|
init_settings2();
|
|
461177
|
+
init_data();
|
|
460841
461178
|
init_forgeRuntime();
|
|
461179
|
+
init_forgePreviewModel();
|
|
461180
|
+
init_splashFrameModel();
|
|
460842
461181
|
init_useProjectIntelligenceState();
|
|
460843
461182
|
import_react320 = __toESM(require_react(), 1);
|
|
460844
461183
|
jsx_runtime464 = __toESM(require_jsx_runtime(), 1);
|
|
@@ -465362,7 +465701,7 @@ function appendToLog(path21, message) {
|
|
|
465362
465701
|
cwd: getFsImplementation().cwd(),
|
|
465363
465702
|
userType: process.env.USER_TYPE,
|
|
465364
465703
|
sessionId: getSessionId(),
|
|
465365
|
-
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
|
|
465366
465705
|
};
|
|
465367
465706
|
getLogWriter(path21).write(messageWithTimestamp);
|
|
465368
465707
|
}
|
|
@@ -469496,8 +469835,8 @@ async function getEnvLessBridgeConfig() {
|
|
|
469496
469835
|
}
|
|
469497
469836
|
async function checkEnvLessBridgeMinVersion() {
|
|
469498
469837
|
const cfg = await getEnvLessBridgeConfig();
|
|
469499
|
-
if (cfg.min_version && lt({ VERSION: "0.2.
|
|
469500
|
-
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.
|
|
469501
469840
|
Version ${cfg.min_version} or higher is required. Run \`theus update\` to update.`;
|
|
469502
469841
|
}
|
|
469503
469842
|
return null;
|
|
@@ -469971,7 +470310,7 @@ async function initBridgeCore(params) {
|
|
|
469971
470310
|
const rawApi = createBridgeApiClient({
|
|
469972
470311
|
baseUrl,
|
|
469973
470312
|
getAccessToken,
|
|
469974
|
-
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,
|
|
469975
470314
|
onDebug: logForDebugging,
|
|
469976
470315
|
onAuth401,
|
|
469977
470316
|
getTrustedDeviceToken
|
|
@@ -475237,7 +475576,7 @@ async function startMCPServer(cwd3, debug2, verbose) {
|
|
|
475237
475576
|
setCwd(cwd3);
|
|
475238
475577
|
const server = new Server({
|
|
475239
475578
|
name: "theus/tengu",
|
|
475240
|
-
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
|
|
475241
475580
|
}, {
|
|
475242
475581
|
capabilities: {
|
|
475243
475582
|
tools: {}
|
|
@@ -476679,7 +477018,7 @@ async function setupTokenHandler(root2) {
|
|
|
476679
477018
|
gap: 1,
|
|
476680
477019
|
children: [
|
|
476681
477020
|
/* @__PURE__ */ jsx_runtime476.jsx(TheusBanner, {
|
|
476682
|
-
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
|
|
476683
477022
|
}),
|
|
476684
477023
|
showAuthWarning && /* @__PURE__ */ jsx_runtime476.jsxs(ThemedBox_default, {
|
|
476685
477024
|
flexDirection: "column",
|
|
@@ -478084,7 +478423,7 @@ ${customInstructions}` : customInstructions;
|
|
|
478084
478423
|
}
|
|
478085
478424
|
}
|
|
478086
478425
|
logForDiagnosticsNoPII("info", "started", {
|
|
478087
|
-
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,
|
|
478088
478427
|
is_native_binary: isInBundledMode()
|
|
478089
478428
|
});
|
|
478090
478429
|
registerCleanup(async () => {
|
|
@@ -478868,7 +479207,7 @@ Usage: theus --remote "your task description"`, () => gracefulShutdown(1));
|
|
|
478868
479207
|
pendingHookMessages
|
|
478869
479208
|
}, renderAndRun);
|
|
478870
479209
|
}
|
|
478871
|
-
}).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");
|
|
478872
479211
|
program2.option("-w, --worktree [name]", "Crea un nuevo worktree de git para esta sesi\xF3n (opcionalmente indica un nombre)");
|
|
478873
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.");
|
|
478874
479213
|
if (canUserConfigureAdvisor()) {
|
|
@@ -479382,7 +479721,7 @@ if (false) {}
|
|
|
479382
479721
|
async function main2() {
|
|
479383
479722
|
const args = process.argv.slice(2);
|
|
479384
479723
|
if (args.length === 1 && (args[0] === "--version" || args[0] === "-v" || args[0] === "-V")) {
|
|
479385
|
-
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)`);
|
|
479386
479725
|
return;
|
|
479387
479726
|
}
|
|
479388
479727
|
const {
|