theus-cli 0.2.56 → 0.2.58
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 +168 -125
- package/package.json +1 -1
package/cli.js
CHANGED
|
@@ -58896,7 +58896,7 @@ async function _executeApiKeyHelper(isNonInteractiveSession) {
|
|
|
58896
58896
|
if (isApiKeyHelperFromProjectOrLocalSettings()) {
|
|
58897
58897
|
const hasTrust = checkHasTrustDialogAccepted();
|
|
58898
58898
|
if (!hasTrust && !isNonInteractiveSession) {
|
|
58899
|
-
const error40 = new Error(`Security: apiKeyHelper executed before workspace trust is confirmed. If you see this message, post in ${{ VERSION: "0.2.
|
|
58899
|
+
const error40 = new Error(`Security: apiKeyHelper executed before workspace trust is confirmed. If you see this message, post in ${{ VERSION: "0.2.58", BUILD_TIME: "1970-01-01T00:00:00.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}.`);
|
|
58900
58900
|
logAntError("apiKeyHelper invoked before trust check", error40);
|
|
58901
58901
|
logEvent("tengu_apiKeyHelper_missing_trust11", {});
|
|
58902
58902
|
return null;
|
|
@@ -58940,7 +58940,7 @@ async function runAwsAuthRefresh() {
|
|
|
58940
58940
|
if (isAwsAuthRefreshFromProjectSettings()) {
|
|
58941
58941
|
const hasTrust = checkHasTrustDialogAccepted();
|
|
58942
58942
|
if (!hasTrust && !getIsNonInteractiveSession()) {
|
|
58943
|
-
const error40 = new Error(`Security: awsAuthRefresh executed before workspace trust is confirmed. If you see this message, post in ${{ VERSION: "0.2.
|
|
58943
|
+
const error40 = new Error(`Security: awsAuthRefresh executed before workspace trust is confirmed. If you see this message, post in ${{ VERSION: "0.2.58", BUILD_TIME: "1970-01-01T00:00:00.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}.`);
|
|
58944
58944
|
logAntError("awsAuthRefresh invoked before trust check", error40);
|
|
58945
58945
|
logEvent("tengu_awsAuthRefresh_missing_trust", {});
|
|
58946
58946
|
return false;
|
|
@@ -59000,7 +59000,7 @@ async function getAwsCredsFromCredentialExport() {
|
|
|
59000
59000
|
if (isAwsCredentialExportFromProjectSettings()) {
|
|
59001
59001
|
const hasTrust = checkHasTrustDialogAccepted();
|
|
59002
59002
|
if (!hasTrust && !getIsNonInteractiveSession()) {
|
|
59003
|
-
const error40 = new Error(`Security: awsCredentialExport executed before workspace trust is confirmed. If you see this message, post in ${{ VERSION: "0.2.
|
|
59003
|
+
const error40 = new Error(`Security: awsCredentialExport executed before workspace trust is confirmed. If you see this message, post in ${{ VERSION: "0.2.58", BUILD_TIME: "1970-01-01T00:00:00.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}.`);
|
|
59004
59004
|
logAntError("awsCredentialExport invoked before trust check", error40);
|
|
59005
59005
|
logEvent("tengu_awsCredentialExport_missing_trust", {});
|
|
59006
59006
|
return null;
|
|
@@ -59085,7 +59085,7 @@ async function runGcpAuthRefresh() {
|
|
|
59085
59085
|
if (isGcpAuthRefreshFromProjectSettings()) {
|
|
59086
59086
|
const hasTrust = checkHasTrustDialogAccepted();
|
|
59087
59087
|
if (!hasTrust && !getIsNonInteractiveSession()) {
|
|
59088
|
-
const error40 = new Error(`Security: gcpAuthRefresh executed before workspace trust is confirmed. If you see this message, post in ${{ VERSION: "0.2.
|
|
59088
|
+
const error40 = new Error(`Security: gcpAuthRefresh executed before workspace trust is confirmed. If you see this message, post in ${{ VERSION: "0.2.58", BUILD_TIME: "1970-01-01T00:00:00.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}.`);
|
|
59089
59089
|
logAntError("gcpAuthRefresh invoked before trust check", error40);
|
|
59090
59090
|
logEvent("tengu_gcpAuthRefresh_missing_trust", {});
|
|
59091
59091
|
return false;
|
|
@@ -59780,7 +59780,7 @@ var init_auth = __esm(() => {
|
|
|
59780
59780
|
|
|
59781
59781
|
// utils/userAgent.ts
|
|
59782
59782
|
function getTheusCodeUserAgent() {
|
|
59783
|
-
return `theus-code/${{ VERSION: "0.2.
|
|
59783
|
+
return `theus-code/${{ VERSION: "0.2.58", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION}`;
|
|
59784
59784
|
}
|
|
59785
59785
|
|
|
59786
59786
|
// utils/workloadContext.ts
|
|
@@ -59802,7 +59802,7 @@ function getUserAgent() {
|
|
|
59802
59802
|
const clientApp = process.env.THEUS_AGENT_SDK_CLIENT_APP ? `, client-app/${process.env.THEUS_AGENT_SDK_CLIENT_APP}` : "";
|
|
59803
59803
|
const workload = getWorkload();
|
|
59804
59804
|
const workloadSuffix = workload ? `, workload/${workload}` : "";
|
|
59805
|
-
return `theus-cli/${{ VERSION: "0.2.
|
|
59805
|
+
return `theus-cli/${{ VERSION: "0.2.58", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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})`;
|
|
59806
59806
|
}
|
|
59807
59807
|
function getMCPUserAgent() {
|
|
59808
59808
|
const parts = [];
|
|
@@ -59816,7 +59816,7 @@ function getMCPUserAgent() {
|
|
|
59816
59816
|
parts.push(`client-app/${process.env.THEUS_AGENT_SDK_CLIENT_APP}`);
|
|
59817
59817
|
}
|
|
59818
59818
|
const suffix = parts.length > 0 ? ` (${parts.join(", ")})` : "";
|
|
59819
|
-
return `theus-code/${{ VERSION: "0.2.
|
|
59819
|
+
return `theus-code/${{ VERSION: "0.2.58", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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}`;
|
|
59820
59820
|
}
|
|
59821
59821
|
function getWebFetchUserAgent() {
|
|
59822
59822
|
return `Theus-User (${getTheusCodeUserAgent()}; +https://support.theus.pe/)`;
|
|
@@ -59954,7 +59954,7 @@ var init_user = __esm(() => {
|
|
|
59954
59954
|
deviceId,
|
|
59955
59955
|
sessionId: getSessionId(),
|
|
59956
59956
|
email: getEmail(),
|
|
59957
|
-
appVersion: { VERSION: "0.2.
|
|
59957
|
+
appVersion: { VERSION: "0.2.58", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
|
|
59958
59958
|
platform: getHostPlatformForAnalytics(),
|
|
59959
59959
|
organizationUuid,
|
|
59960
59960
|
accountUuid,
|
|
@@ -61669,7 +61669,7 @@ var init_metadata = __esm(() => {
|
|
|
61669
61669
|
COMPOUND_OPERATOR_REGEX = /\s*(?:&&|\|\||[;|])\s*/;
|
|
61670
61670
|
WHITESPACE_REGEX = /\s+/;
|
|
61671
61671
|
getVersionBase = memoize_default(() => {
|
|
61672
|
-
const match = { VERSION: "0.2.
|
|
61672
|
+
const match = { VERSION: "0.2.58", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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]+)?/);
|
|
61673
61673
|
return match ? match[0] : undefined;
|
|
61674
61674
|
});
|
|
61675
61675
|
buildEnvContext = memoize_default(async () => {
|
|
@@ -61709,9 +61709,9 @@ var init_metadata = __esm(() => {
|
|
|
61709
61709
|
isGithubAction: isEnvTruthy(process.env.GITHUB_ACTIONS),
|
|
61710
61710
|
isTheusCodeAction: isEnvTruthy(process.env.THEUS_CODE_ACTION),
|
|
61711
61711
|
isTheusAiAuth: isTheusAISubscriber(),
|
|
61712
|
-
version: { VERSION: "0.2.
|
|
61712
|
+
version: { VERSION: "0.2.58", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
|
|
61713
61713
|
versionBase: getVersionBase(),
|
|
61714
|
-
buildTime: { VERSION: "0.2.
|
|
61714
|
+
buildTime: { VERSION: "0.2.58", BUILD_TIME: "1970-01-01T00:00:00.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,
|
|
61715
61715
|
deploymentEnvironment: env3.detectDeploymentEnvironment(),
|
|
61716
61716
|
...isEnvTruthy(process.env.GITHUB_ACTIONS) && {
|
|
61717
61717
|
githubEventName: process.env.GITHUB_EVENT_NAME,
|
|
@@ -62377,7 +62377,7 @@ function initialize1PEventLogging() {
|
|
|
62377
62377
|
const platform2 = getPlatform();
|
|
62378
62378
|
const attributes = {
|
|
62379
62379
|
[ATTR_SERVICE_NAME]: "theus-code",
|
|
62380
|
-
[ATTR_SERVICE_VERSION]: { VERSION: "0.2.
|
|
62380
|
+
[ATTR_SERVICE_VERSION]: { VERSION: "0.2.58", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
|
|
62381
62381
|
};
|
|
62382
62382
|
if (platform2 === "wsl") {
|
|
62383
62383
|
const wslVersion = getWslVersion();
|
|
@@ -62404,7 +62404,7 @@ function initialize1PEventLogging() {
|
|
|
62404
62404
|
})
|
|
62405
62405
|
]
|
|
62406
62406
|
});
|
|
62407
|
-
firstPartyEventLogger = firstPartyEventLoggerProvider.getLogger("com.theus.theus_code.events", { VERSION: "0.2.
|
|
62407
|
+
firstPartyEventLogger = firstPartyEventLoggerProvider.getLogger("com.theus.theus_code.events", { VERSION: "0.2.58", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION);
|
|
62408
62408
|
}
|
|
62409
62409
|
async function reinitialize1PEventLoggingIfConfigChanged() {
|
|
62410
62410
|
if (!is1PEventLoggingEnabled() || !firstPartyEventLoggerProvider) {
|
|
@@ -64275,7 +64275,7 @@ function getAttributionHeader(fingerprint) {
|
|
|
64275
64275
|
if (!isAttributionHeaderEnabled()) {
|
|
64276
64276
|
return "";
|
|
64277
64277
|
}
|
|
64278
|
-
const version2 = `${{ VERSION: "0.2.
|
|
64278
|
+
const version2 = `${{ VERSION: "0.2.58", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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}`;
|
|
64279
64279
|
const entrypoint = process.env.THEUS_CODE_ENTRYPOINT ?? "unknown";
|
|
64280
64280
|
const cch = "";
|
|
64281
64281
|
const workload = getWorkload();
|
|
@@ -108362,7 +108362,7 @@ Complete the user's request by providing accurate, documentation-based guidance.
|
|
|
108362
108362
|
}
|
|
108363
108363
|
function getFeedbackGuideline() {
|
|
108364
108364
|
if (isUsing3PServices()) {
|
|
108365
|
-
return `- When you cannot find an answer or the feature doesn't exist, direct the user to ${{ VERSION: "0.2.
|
|
108365
|
+
return `- When you cannot find an answer or the feature doesn't exist, direct the user to ${{ VERSION: "0.2.58", BUILD_TIME: "1970-01-01T00:00:00.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}`;
|
|
108366
108366
|
}
|
|
108367
108367
|
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";
|
|
108368
108368
|
}
|
|
@@ -167334,7 +167334,7 @@ function getTelemetryAttributes() {
|
|
|
167334
167334
|
attributes["session.id"] = sessionId;
|
|
167335
167335
|
}
|
|
167336
167336
|
if (shouldIncludeAttribute("OTEL_METRICS_INCLUDE_VERSION")) {
|
|
167337
|
-
attributes["app.version"] = { VERSION: "0.2.
|
|
167337
|
+
attributes["app.version"] = { VERSION: "0.2.58", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION;
|
|
167338
167338
|
}
|
|
167339
167339
|
const oauthAccount = getOauthAccountInfo();
|
|
167340
167340
|
if (oauthAccount) {
|
|
@@ -203218,7 +203218,7 @@ function getInstallationEnv() {
|
|
|
203218
203218
|
return;
|
|
203219
203219
|
}
|
|
203220
203220
|
function getTheusCodeVersion() {
|
|
203221
|
-
return { VERSION: "0.2.
|
|
203221
|
+
return { VERSION: "0.2.58", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION;
|
|
203222
203222
|
}
|
|
203223
203223
|
async function getInstalledVSCodeExtensionVersion(command) {
|
|
203224
203224
|
const { stdout } = await execFileNoThrow(command, ["--list-extensions", "--show-versions"], {
|
|
@@ -204736,7 +204736,7 @@ async function getMcpHeadersFromHelper(serverName, config2) {
|
|
|
204736
204736
|
if ("scope" in config2 && isMcpServerFromProjectOrLocalSettings(config2) && !getIsNonInteractiveSession()) {
|
|
204737
204737
|
const hasTrust = checkHasTrustDialogAccepted();
|
|
204738
204738
|
if (!hasTrust) {
|
|
204739
|
-
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.
|
|
204739
|
+
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.58", BUILD_TIME: "1970-01-01T00:00:00.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}.`);
|
|
204740
204740
|
logAntError("MCP headersHelper invoked before trust check", error40);
|
|
204741
204741
|
logEvent("tengu_mcp_headersHelper_missing_trust", {});
|
|
204742
204742
|
return null;
|
|
@@ -205946,7 +205946,7 @@ async function setupSdkMcpClients(sdkMcpConfigs, sendMcpMessage) {
|
|
|
205946
205946
|
const client2 = new Client({
|
|
205947
205947
|
name: "theus-code",
|
|
205948
205948
|
title: "Theus",
|
|
205949
|
-
version: { VERSION: "0.2.
|
|
205949
|
+
version: { VERSION: "0.2.58", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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",
|
|
205950
205950
|
description: "Theus's agentic coding tool",
|
|
205951
205951
|
websiteUrl: PRODUCT_URL
|
|
205952
205952
|
}, {
|
|
@@ -206300,7 +206300,7 @@ var init_client5 = __esm(() => {
|
|
|
206300
206300
|
const client2 = new Client({
|
|
206301
206301
|
name: "theus-code",
|
|
206302
206302
|
title: "Theus",
|
|
206303
|
-
version: { VERSION: "0.2.
|
|
206303
|
+
version: { VERSION: "0.2.58", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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",
|
|
206304
206304
|
description: "Theus's agentic coding tool",
|
|
206305
206305
|
websiteUrl: PRODUCT_URL
|
|
206306
206306
|
}, {
|
|
@@ -216879,7 +216879,7 @@ async function initializeBetaTracing(resource) {
|
|
|
216879
216879
|
});
|
|
216880
216880
|
logs.setGlobalLoggerProvider(loggerProvider);
|
|
216881
216881
|
setLoggerProvider(loggerProvider);
|
|
216882
|
-
const eventLogger = logs.getLogger("com.theus.theus_code.events", { VERSION: "0.2.
|
|
216882
|
+
const eventLogger = logs.getLogger("com.theus.theus_code.events", { VERSION: "0.2.58", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION);
|
|
216883
216883
|
setEventLogger(eventLogger);
|
|
216884
216884
|
process.on("beforeExit", async () => {
|
|
216885
216885
|
await loggerProvider?.forceFlush();
|
|
@@ -216919,7 +216919,7 @@ async function initializeTelemetry() {
|
|
|
216919
216919
|
const platform4 = getPlatform();
|
|
216920
216920
|
const baseAttributes = {
|
|
216921
216921
|
[ATTR_SERVICE_NAME]: "theus-code",
|
|
216922
|
-
[ATTR_SERVICE_VERSION]: { VERSION: "0.2.
|
|
216922
|
+
[ATTR_SERVICE_VERSION]: { VERSION: "0.2.58", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
|
|
216923
216923
|
};
|
|
216924
216924
|
if (platform4 === "wsl") {
|
|
216925
216925
|
const wslVersion = getWslVersion();
|
|
@@ -216964,7 +216964,7 @@ async function initializeTelemetry() {
|
|
|
216964
216964
|
} catch {}
|
|
216965
216965
|
};
|
|
216966
216966
|
registerCleanup(shutdownTelemetry2);
|
|
216967
|
-
return meterProvider2.getMeter("com.theus.theus_code", { VERSION: "0.2.
|
|
216967
|
+
return meterProvider2.getMeter("com.theus.theus_code", { VERSION: "0.2.58", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION);
|
|
216968
216968
|
}
|
|
216969
216969
|
const meterProvider = new MeterProvider({
|
|
216970
216970
|
resource,
|
|
@@ -216984,7 +216984,7 @@ async function initializeTelemetry() {
|
|
|
216984
216984
|
});
|
|
216985
216985
|
logs.setGlobalLoggerProvider(loggerProvider);
|
|
216986
216986
|
setLoggerProvider(loggerProvider);
|
|
216987
|
-
const eventLogger = logs.getLogger("com.theus.theus_code.events", { VERSION: "0.2.
|
|
216987
|
+
const eventLogger = logs.getLogger("com.theus.theus_code.events", { VERSION: "0.2.58", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION);
|
|
216988
216988
|
setEventLogger(eventLogger);
|
|
216989
216989
|
logForDebugging("[3P telemetry] Event logger set successfully");
|
|
216990
216990
|
process.on("beforeExit", async () => {
|
|
@@ -217046,7 +217046,7 @@ Current timeout: ${timeoutMs}ms
|
|
|
217046
217046
|
}
|
|
217047
217047
|
};
|
|
217048
217048
|
registerCleanup(shutdownTelemetry);
|
|
217049
|
-
return meterProvider.getMeter("com.theus.theus_code", { VERSION: "0.2.
|
|
217049
|
+
return meterProvider.getMeter("com.theus.theus_code", { VERSION: "0.2.58", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION);
|
|
217050
217050
|
}
|
|
217051
217051
|
async function flushTelemetry() {
|
|
217052
217052
|
const meterProvider = getMeterProvider();
|
|
@@ -217586,7 +217586,7 @@ async function installOrUpdateTheusPackage(channel2, specificVersion) {
|
|
|
217586
217586
|
return "install_failed";
|
|
217587
217587
|
}
|
|
217588
217588
|
const versionSpec = specificVersion ? specificVersion : channel2 === "stable" ? "stable" : "latest";
|
|
217589
|
-
const result = await execFileNoThrowWithCwd("npm", ["install", `${{ VERSION: "0.2.
|
|
217589
|
+
const result = await execFileNoThrowWithCwd("npm", ["install", `${{ VERSION: "0.2.58", BUILD_TIME: "1970-01-01T00:00:00.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 });
|
|
217590
217590
|
if (result.code !== 0) {
|
|
217591
217591
|
const error40 = new Error(`Failed to install Theus CLI package: ${result.stderr}`);
|
|
217592
217592
|
logError2(error40);
|
|
@@ -217732,9 +217732,9 @@ async function assertMinVersion() {
|
|
|
217732
217732
|
if (false) {}
|
|
217733
217733
|
try {
|
|
217734
217734
|
const versionConfig = await getDynamicConfig_BLOCKS_ON_INIT("tengu_version_config", { minVersion: "0.0.0" });
|
|
217735
|
-
if (versionConfig.minVersion && lt({ VERSION: "0.2.
|
|
217735
|
+
if (versionConfig.minVersion && lt({ VERSION: "0.2.58", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
|
|
217736
217736
|
console.error(`
|
|
217737
|
-
It looks like your version of Theus (${{ VERSION: "0.2.
|
|
217737
|
+
It looks like your version of Theus (${{ VERSION: "0.2.58", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.
|
|
217738
217738
|
A newer version (${versionConfig.minVersion} or higher) is required to continue.
|
|
217739
217739
|
|
|
217740
217740
|
To update, please run:
|
|
@@ -217875,7 +217875,7 @@ async function getInstallationPrefix() {
|
|
|
217875
217875
|
return prefixResult.stdout.trim();
|
|
217876
217876
|
}
|
|
217877
217877
|
function getGlobalInstallPackageManager() {
|
|
217878
|
-
if ({ VERSION: "0.2.
|
|
217878
|
+
if ({ VERSION: "0.2.58", BUILD_TIME: "1970-01-01T00:00:00.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") {
|
|
217879
217879
|
return "npm";
|
|
217880
217880
|
}
|
|
217881
217881
|
return env3.isRunningWithBun() ? "bun" : "npm";
|
|
@@ -217900,7 +217900,7 @@ async function checkGlobalInstallPermissions() {
|
|
|
217900
217900
|
}
|
|
217901
217901
|
async function getLatestVersion(channel2) {
|
|
217902
217902
|
const npmTag = channel2 === "stable" ? "stable" : "latest";
|
|
217903
|
-
const result = await execFileNoThrowWithCwd("npm", ["view", `${{ VERSION: "0.2.
|
|
217903
|
+
const result = await execFileNoThrowWithCwd("npm", ["view", `${{ VERSION: "0.2.58", BUILD_TIME: "1970-01-01T00:00:00.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() });
|
|
217904
217904
|
if (result.code !== 0) {
|
|
217905
217905
|
logForDebugging(`npm view failed with code ${result.code}`);
|
|
217906
217906
|
if (result.stderr) {
|
|
@@ -217916,7 +217916,7 @@ async function getLatestVersion(channel2) {
|
|
|
217916
217916
|
return result.stdout.trim();
|
|
217917
217917
|
}
|
|
217918
217918
|
async function getNpmDistTags() {
|
|
217919
|
-
const result = await execFileNoThrowWithCwd("npm", ["view", { VERSION: "0.2.
|
|
217919
|
+
const result = await execFileNoThrowWithCwd("npm", ["view", { VERSION: "0.2.58", BUILD_TIME: "1970-01-01T00:00:00.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() });
|
|
217920
217920
|
if (result.code !== 0) {
|
|
217921
217921
|
logForDebugging(`npm view dist-tags failed with code ${result.code}`);
|
|
217922
217922
|
return { latest: null, stable: null };
|
|
@@ -217956,7 +217956,7 @@ async function installGlobalPackage(specificVersion) {
|
|
|
217956
217956
|
logError2(new AutoUpdaterError("Another process is currently installing an update"));
|
|
217957
217957
|
logEvent("tengu_auto_updater_lock_contention", {
|
|
217958
217958
|
pid: process.pid,
|
|
217959
|
-
currentVersion: { VERSION: "0.2.
|
|
217959
|
+
currentVersion: { VERSION: "0.2.58", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
|
|
217960
217960
|
});
|
|
217961
217961
|
return "in_progress";
|
|
217962
217962
|
}
|
|
@@ -217965,7 +217965,7 @@ async function installGlobalPackage(specificVersion) {
|
|
|
217965
217965
|
if (!env3.isRunningWithBun() && env3.isNpmFromWindowsPath()) {
|
|
217966
217966
|
logError2(new Error("Windows NPM detected in WSL environment"));
|
|
217967
217967
|
logEvent("tengu_auto_updater_windows_npm_in_wsl", {
|
|
217968
|
-
currentVersion: { VERSION: "0.2.
|
|
217968
|
+
currentVersion: { VERSION: "0.2.58", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
|
|
217969
217969
|
});
|
|
217970
217970
|
console.error(`
|
|
217971
217971
|
Error: Windows NPM detected in WSL
|
|
@@ -217984,7 +217984,7 @@ To fix this issue:
|
|
|
217984
217984
|
if (!hasPermissions) {
|
|
217985
217985
|
return "no_permissions";
|
|
217986
217986
|
}
|
|
217987
|
-
const packageSpec = specificVersion ? `${{ VERSION: "0.2.
|
|
217987
|
+
const packageSpec = specificVersion ? `${{ VERSION: "0.2.58", BUILD_TIME: "1970-01-01T00:00:00.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.58", BUILD_TIME: "1970-01-01T00:00:00.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;
|
|
217988
217988
|
const packageManager = getGlobalInstallPackageManager();
|
|
217989
217989
|
const installResult = await execFileNoThrowWithCwd(packageManager, ["install", "-g", packageSpec], { cwd: homedir18() });
|
|
217990
217990
|
if (installResult.code !== 0) {
|
|
@@ -218312,8 +218312,8 @@ async function detectMultipleInstallations() {
|
|
|
218312
218312
|
installations.push({ type: "npm-local", path: localPath });
|
|
218313
218313
|
}
|
|
218314
218314
|
const packagesToCheck = ["@theus-ai/theus-code"];
|
|
218315
|
-
if ({ VERSION: "0.2.
|
|
218316
|
-
packagesToCheck.push({ VERSION: "0.2.
|
|
218315
|
+
if ({ VERSION: "0.2.58", BUILD_TIME: "1970-01-01T00:00:00.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.58", BUILD_TIME: "1970-01-01T00:00:00.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") {
|
|
218316
|
+
packagesToCheck.push({ VERSION: "0.2.58", BUILD_TIME: "1970-01-01T00:00:00.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);
|
|
218317
218317
|
}
|
|
218318
218318
|
const npmResult = await execFileNoThrow("npm", [
|
|
218319
218319
|
"-g",
|
|
@@ -218496,7 +218496,7 @@ function detectLinuxGlobPatternWarnings() {
|
|
|
218496
218496
|
}
|
|
218497
218497
|
async function getDoctorDiagnostic() {
|
|
218498
218498
|
const installationType = await getCurrentInstallationType();
|
|
218499
|
-
const version2 = { VERSION: "0.2.
|
|
218499
|
+
const version2 = { VERSION: "0.2.58", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.58", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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";
|
|
218500
218500
|
const installationPath = await getInstallationPath();
|
|
218501
218501
|
const invokedBinary = getInvokedBinary();
|
|
218502
218502
|
const multipleInstallations = await detectMultipleInstallations();
|
|
@@ -218508,8 +218508,8 @@ async function getDoctorDiagnostic() {
|
|
|
218508
218508
|
for (const install of npmInstalls) {
|
|
218509
218509
|
if (install.type === "npm-global") {
|
|
218510
218510
|
let uninstallCmd = "npm -g uninstall @theus-ai/theus-code";
|
|
218511
|
-
if ({ VERSION: "0.2.
|
|
218512
|
-
uninstallCmd += ` && npm -g uninstall ${{ VERSION: "0.2.
|
|
218511
|
+
if ({ VERSION: "0.2.58", BUILD_TIME: "1970-01-01T00:00:00.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.58", BUILD_TIME: "1970-01-01T00:00:00.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") {
|
|
218512
|
+
uninstallCmd += ` && npm -g uninstall ${{ VERSION: "0.2.58", BUILD_TIME: "1970-01-01T00:00:00.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}`;
|
|
218513
218513
|
}
|
|
218514
218514
|
warnings.push({
|
|
218515
218515
|
issue: `Leftover npm global installation at ${install.path}`,
|
|
@@ -218621,7 +218621,7 @@ async function getLatestVersionFromArtifactory(tag2 = "latest") {
|
|
|
218621
218621
|
const startTime2 = Date.now();
|
|
218622
218622
|
const { stdout, code, stderr } = await execFileNoThrowWithCwd("npm", [
|
|
218623
218623
|
"view",
|
|
218624
|
-
`${{ VERSION: "0.2.
|
|
218624
|
+
`${{ VERSION: "0.2.58", BUILD_TIME: "1970-01-01T00:00:00.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}`,
|
|
218625
218625
|
"version",
|
|
218626
218626
|
"--prefer-online",
|
|
218627
218627
|
"--registry",
|
|
@@ -218645,7 +218645,7 @@ async function getLatestVersionFromArtifactory(tag2 = "latest") {
|
|
|
218645
218645
|
latency_ms: latencyMs,
|
|
218646
218646
|
source_npm: true
|
|
218647
218647
|
});
|
|
218648
|
-
logForDebugging(`npm view ${{ VERSION: "0.2.
|
|
218648
|
+
logForDebugging(`npm view ${{ VERSION: "0.2.58", BUILD_TIME: "1970-01-01T00:00:00.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}`);
|
|
218649
218649
|
const latestVersion = stdout.trim();
|
|
218650
218650
|
return latestVersion;
|
|
218651
218651
|
}
|
|
@@ -218701,7 +218701,7 @@ async function downloadVersionFromArtifactory(version2, stagingPath) {
|
|
|
218701
218701
|
const fs3 = getFsImplementation();
|
|
218702
218702
|
await fs3.rm(stagingPath, { recursive: true, force: true });
|
|
218703
218703
|
const platform4 = getPlatform2();
|
|
218704
|
-
const platformPackageName = `${{ VERSION: "0.2.
|
|
218704
|
+
const platformPackageName = `${{ VERSION: "0.2.58", BUILD_TIME: "1970-01-01T00:00:00.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}`;
|
|
218705
218705
|
logForDebugging(`Fetching integrity hash for ${platformPackageName}@${version2}`);
|
|
218706
218706
|
const {
|
|
218707
218707
|
stdout: integrityOutput,
|
|
@@ -218730,7 +218730,7 @@ async function downloadVersionFromArtifactory(version2, stagingPath) {
|
|
|
218730
218730
|
name: "theus-native-installer",
|
|
218731
218731
|
version: "0.0.1",
|
|
218732
218732
|
dependencies: {
|
|
218733
|
-
[{ VERSION: "0.2.
|
|
218733
|
+
[{ VERSION: "0.2.58", BUILD_TIME: "1970-01-01T00:00:00.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
|
|
218734
218734
|
}
|
|
218735
218735
|
};
|
|
218736
218736
|
const packageLock = {
|
|
@@ -218743,10 +218743,10 @@ async function downloadVersionFromArtifactory(version2, stagingPath) {
|
|
|
218743
218743
|
name: "theus-native-installer",
|
|
218744
218744
|
version: "0.0.1",
|
|
218745
218745
|
dependencies: {
|
|
218746
|
-
[{ VERSION: "0.2.
|
|
218746
|
+
[{ VERSION: "0.2.58", BUILD_TIME: "1970-01-01T00:00:00.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
|
|
218747
218747
|
}
|
|
218748
218748
|
},
|
|
218749
|
-
[`node_modules/${{ VERSION: "0.2.
|
|
218749
|
+
[`node_modules/${{ VERSION: "0.2.58", BUILD_TIME: "1970-01-01T00:00:00.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}`]: {
|
|
218750
218750
|
version: version2,
|
|
218751
218751
|
optionalDependencies: {
|
|
218752
218752
|
[platformPackageName]: version2
|
|
@@ -218768,7 +218768,7 @@ async function downloadVersionFromArtifactory(version2, stagingPath) {
|
|
|
218768
218768
|
if (result.code !== 0) {
|
|
218769
218769
|
throw new Error(`npm ci failed with code ${result.code}: ${result.stderr}`);
|
|
218770
218770
|
}
|
|
218771
|
-
logForDebugging(`Successfully downloaded and verified ${{ VERSION: "0.2.
|
|
218771
|
+
logForDebugging(`Successfully downloaded and verified ${{ VERSION: "0.2.58", BUILD_TIME: "1970-01-01T00:00:00.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}`);
|
|
218772
218772
|
}
|
|
218773
218773
|
function getStallTimeoutMs() {
|
|
218774
218774
|
return Number(process.env.THEUS_CODE_STALL_TIMEOUT_MS_FOR_TESTING) || DEFAULT_STALL_TIMEOUT_MS;
|
|
@@ -219431,8 +219431,8 @@ async function updateLatest(channelOrVersion, forceReinstall = false) {
|
|
|
219431
219431
|
const maxVersion = await getMaxVersion();
|
|
219432
219432
|
if (maxVersion && gt(version2, maxVersion)) {
|
|
219433
219433
|
logForDebugging(`Native installer: maxVersion ${maxVersion} is set, capping update from ${version2} to ${maxVersion}`);
|
|
219434
|
-
if (gte({ VERSION: "0.2.
|
|
219435
|
-
logForDebugging(`Native installer: current version ${{ VERSION: "0.2.
|
|
219434
|
+
if (gte({ VERSION: "0.2.58", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
|
|
219435
|
+
logForDebugging(`Native installer: current version ${{ VERSION: "0.2.58", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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`);
|
|
219436
219436
|
logEvent("tengu_native_update_skipped_max_version", {
|
|
219437
219437
|
latency_ms: Date.now() - startTime2,
|
|
219438
219438
|
max_version: maxVersion,
|
|
@@ -219443,7 +219443,7 @@ async function updateLatest(channelOrVersion, forceReinstall = false) {
|
|
|
219443
219443
|
version2 = maxVersion;
|
|
219444
219444
|
}
|
|
219445
219445
|
}
|
|
219446
|
-
if (!forceReinstall && version2 === { VERSION: "0.2.
|
|
219446
|
+
if (!forceReinstall && version2 === { VERSION: "0.2.58", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
|
|
219447
219447
|
logForDebugging(`Found ${version2} at ${executablePath}, skipping install`);
|
|
219448
219448
|
logEvent("tengu_native_update_complete", {
|
|
219449
219449
|
latency_ms: Date.now() - startTime2,
|
|
@@ -220193,8 +220193,8 @@ async function cleanupNpmInstallations() {
|
|
|
220193
220193
|
} else if (codePackageResult.error) {
|
|
220194
220194
|
errors4.push(codePackageResult.error);
|
|
220195
220195
|
}
|
|
220196
|
-
if ({ VERSION: "0.2.
|
|
220197
|
-
const macroPackageResult = await attemptNpmUninstall({ VERSION: "0.2.
|
|
220196
|
+
if ({ VERSION: "0.2.58", BUILD_TIME: "1970-01-01T00:00:00.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.58", BUILD_TIME: "1970-01-01T00:00:00.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") {
|
|
220197
|
+
const macroPackageResult = await attemptNpmUninstall({ VERSION: "0.2.58", BUILD_TIME: "1970-01-01T00:00:00.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);
|
|
220198
220198
|
if (macroPackageResult.success) {
|
|
220199
220199
|
removed++;
|
|
220200
220200
|
if (macroPackageResult.warning) {
|
|
@@ -230683,6 +230683,26 @@ var init_ConsoleOAuthFlow = __esm(() => {
|
|
|
230683
230683
|
var NOVEDADES;
|
|
230684
230684
|
var init_data = __esm(() => {
|
|
230685
230685
|
NOVEDADES = [
|
|
230686
|
+
{
|
|
230687
|
+
version: "v0.2.58",
|
|
230688
|
+
fecha: "2026-07-26",
|
|
230689
|
+
titulo: "Si una actualizaci\xF3n del motor se corta, Theus lo repara",
|
|
230690
|
+
puntos: [
|
|
230691
|
+
"El motor de c\xF3digo apartaba su binario anterior antes de escribir el nuevo. Si la escritura se interrump\xEDa \u2014un antivirus bloqueando un ejecutable reci\xE9n creado, el disco lleno, la sesi\xF3n cortada\u2014 te quedabas sin motor y sin forma de reintentar: hab\xEDa que reinstalar a mano.",
|
|
230692
|
+
"Ahora, al actualizar, Theus comprueba que el motor siga ah\xED y, si la actualizaci\xF3n se interrumpi\xF3, restaura la versi\xF3n anterior desde la copia de seguridad y te lo dice. Sigues trabajando y lo reintentas cuando quieras.",
|
|
230693
|
+
"El motor tambi\xE9n se corrigi\xF3 de ra\xEDz (escribe el binario nuevo aparte y solo lo pone en su sitio cuando est\xE1 completo en disco), pero eso viaja en su pr\xF3xima versi\xF3n: esta comprobaci\xF3n protege a quien todav\xEDa no la tenga."
|
|
230694
|
+
]
|
|
230695
|
+
},
|
|
230696
|
+
{
|
|
230697
|
+
version: "v0.2.57",
|
|
230698
|
+
fecha: "2026-07-26",
|
|
230699
|
+
titulo: "Un doble Enter ya no puede abrir dos pagos",
|
|
230700
|
+
puntos: [
|
|
230701
|
+
"En \xAB/recarga\xBB, pulsar Enter dos veces muy r\xE1pido pod\xEDa crear DOS pagos en la pasarela y abrir dos pesta\xF1as: la terminal entrega las teclas de golpe y la segunda pulsaci\xF3n se procesaba antes de que la pantalla cambiara de estado. Nada aguas abajo lo imped\xEDa.",
|
|
230702
|
+
"Ahora la confirmaci\xF3n se bloquea al instante, antes de contactar con el servidor, y la pantalla pasa a \xABabriendo el pago\xBB de inmediato. Solo se libera si la compra no lleg\xF3 a crearse y reintentar tiene sentido.",
|
|
230703
|
+
"Lo encontr\xF3 una auditor\xEDa adversarial de todo lo que publicamos hoy: cinco revisores independientes buscando fallos, y tres m\xE1s intentando refutar cada hallazgo antes de darlo por real."
|
|
230704
|
+
]
|
|
230705
|
+
},
|
|
230686
230706
|
{
|
|
230687
230707
|
version: "v0.2.56",
|
|
230688
230708
|
fecha: "2026-07-26",
|
|
@@ -305692,9 +305712,9 @@ function getTheusEnvMetadata() {
|
|
|
305692
305712
|
};
|
|
305693
305713
|
}
|
|
305694
305714
|
function getBuildAgeMinutes() {
|
|
305695
|
-
if (!{ VERSION: "0.2.
|
|
305715
|
+
if (!{ VERSION: "0.2.58", BUILD_TIME: "1970-01-01T00:00:00.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)
|
|
305696
305716
|
return;
|
|
305697
|
-
const buildTime = new Date({ VERSION: "0.2.
|
|
305717
|
+
const buildTime = new Date({ VERSION: "0.2.58", BUILD_TIME: "1970-01-01T00:00:00.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();
|
|
305698
305718
|
if (isNaN(buildTime))
|
|
305699
305719
|
return;
|
|
305700
305720
|
return Math.floor((Date.now() - buildTime) / 60000);
|
|
@@ -322349,7 +322369,7 @@ function getAssistantMessageFromError(error40, model, options2) {
|
|
|
322349
322369
|
if (process.env.USER_TYPE === "ant") {
|
|
322350
322370
|
const baseMessage = `API Error: 400 ${error40.message}
|
|
322351
322371
|
|
|
322352
|
-
Run /share and post the JSON file to ${{ VERSION: "0.2.
|
|
322372
|
+
Run /share and post the JSON file to ${{ VERSION: "0.2.58", BUILD_TIME: "1970-01-01T00:00:00.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}.`;
|
|
322353
322373
|
const rewindInstruction = getIsNonInteractiveSession() ? "" : " Then, use /rewind to recover the conversation.";
|
|
322354
322374
|
return createAssistantAPIErrorMessage({
|
|
322355
322375
|
content: baseMessage + rewindInstruction,
|
|
@@ -322385,7 +322405,7 @@ Run /share and post the JSON file to ${{ VERSION: "0.2.56", BUILD_TIME: "1970-01
|
|
|
322385
322405
|
if (process.env.USER_TYPE === "ant" && !process.env.THEUS_MODEL && error40 instanceof Error && error40.message.toLowerCase().includes("invalid model name")) {
|
|
322386
322406
|
const orgId = getOauthAccountInfo()?.organizationUuid;
|
|
322387
322407
|
const baseMsg = `[THEUS-INTERNAL] Your org isn't gated into the \`${model}\` model. Either run \`theus\` with \`THEUS_MODEL=${getDefaultMainLoopModelSetting()}\``;
|
|
322388
|
-
const msg = orgId ? `${baseMsg} or share your orgId (${orgId}) in ${{ VERSION: "0.2.
|
|
322408
|
+
const msg = orgId ? `${baseMsg} or share your orgId (${orgId}) in ${{ VERSION: "0.2.58", BUILD_TIME: "1970-01-01T00:00:00.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.58", BUILD_TIME: "1970-01-01T00:00:00.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.`;
|
|
322389
322409
|
return createAssistantAPIErrorMessage({
|
|
322390
322410
|
content: msg,
|
|
322391
322411
|
error: "invalid_request"
|
|
@@ -330309,7 +330329,7 @@ async function submitTranscriptShare(messages, trigger, appearanceId) {
|
|
|
330309
330329
|
} catch {}
|
|
330310
330330
|
const data = {
|
|
330311
330331
|
trigger,
|
|
330312
|
-
version: { VERSION: "0.2.
|
|
330332
|
+
version: { VERSION: "0.2.58", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
|
|
330313
330333
|
platform: process.platform,
|
|
330314
330334
|
transcript,
|
|
330315
330335
|
subagentTranscripts: Object.keys(subagentTranscripts).length > 0 ? subagentTranscripts : undefined,
|
|
@@ -330514,10 +330534,10 @@ Si el usuario indic\xF3 una duraci\xF3n, p\xE1sala en el par\xE1metro \`duration
|
|
|
330514
330534
|
|
|
330515
330535
|
// commands/issue/index.ts
|
|
330516
330536
|
function getCliVersion() {
|
|
330517
|
-
return { VERSION: "0.2.
|
|
330537
|
+
return { VERSION: "0.2.58", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.58", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION : "desconocida";
|
|
330518
330538
|
}
|
|
330519
330539
|
function getIssuesExplainer() {
|
|
330520
|
-
return { VERSION: "0.2.
|
|
330540
|
+
return { VERSION: "0.2.58", BUILD_TIME: "1970-01-01T00:00:00.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 ? { VERSION: "0.2.58", BUILD_TIME: "1970-01-01T00:00:00.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 : "report issues to the Theus maintainers";
|
|
330521
330541
|
}
|
|
330522
330542
|
function getActiveModelLabel() {
|
|
330523
330543
|
try {
|
|
@@ -333350,7 +333370,7 @@ function buildPrimarySection() {
|
|
|
333350
333370
|
});
|
|
333351
333371
|
return [{
|
|
333352
333372
|
label: "Version",
|
|
333353
|
-
value: { VERSION: "0.2.
|
|
333373
|
+
value: { VERSION: "0.2.58", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
|
|
333354
333374
|
}, {
|
|
333355
333375
|
label: "Session name",
|
|
333356
333376
|
value: nameValue
|
|
@@ -337166,7 +337186,7 @@ function Config({
|
|
|
337166
337186
|
}
|
|
337167
337187
|
})
|
|
337168
337188
|
}) : showSubmenu === "ChannelDowngrade" ? /* @__PURE__ */ jsx_runtime189.jsx(ChannelDowngradeDialog, {
|
|
337169
|
-
currentVersion: { VERSION: "0.2.
|
|
337189
|
+
currentVersion: { VERSION: "0.2.58", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
|
|
337170
337190
|
onChoice: (choice) => {
|
|
337171
337191
|
setShowSubmenu(null);
|
|
337172
337192
|
setTabsHidden(false);
|
|
@@ -337178,7 +337198,7 @@ function Config({
|
|
|
337178
337198
|
autoUpdatesChannel: "stable"
|
|
337179
337199
|
};
|
|
337180
337200
|
if (choice === "stay") {
|
|
337181
|
-
newSettings.minimumVersion = { VERSION: "0.2.
|
|
337201
|
+
newSettings.minimumVersion = { VERSION: "0.2.58", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION;
|
|
337182
337202
|
}
|
|
337183
337203
|
updateSettingsForSource("userSettings", newSettings);
|
|
337184
337204
|
setSettingsData((prev_27) => ({
|
|
@@ -345423,7 +345443,7 @@ function HelpV2(t0) {
|
|
|
345423
345443
|
let t6;
|
|
345424
345444
|
if ($2[31] !== tabs) {
|
|
345425
345445
|
t6 = /* @__PURE__ */ jsx_runtime217.jsx(Tabs, {
|
|
345426
|
-
title: `Theus v${{ VERSION: "0.2.
|
|
345446
|
+
title: `Theus v${{ VERSION: "0.2.58", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION}`,
|
|
345427
345447
|
color: "professionalBlue",
|
|
345428
345448
|
defaultTab: "general",
|
|
345429
345449
|
children: tabs
|
|
@@ -363675,7 +363695,7 @@ function Onboarding({
|
|
|
363675
363695
|
flexDirection: "column",
|
|
363676
363696
|
children: [
|
|
363677
363697
|
/* @__PURE__ */ jsx_runtime250.jsx(TheusBanner, {
|
|
363678
|
-
version: { VERSION: "0.2.
|
|
363698
|
+
version: { VERSION: "0.2.58", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
|
|
363679
363699
|
}),
|
|
363680
363700
|
/* @__PURE__ */ jsx_runtime250.jsxs(ThemedBox_default, {
|
|
363681
363701
|
flexDirection: "column",
|
|
@@ -364227,6 +364247,7 @@ function RecargaUI({
|
|
|
364227
364247
|
const [listo, setListo] = import_react149.useState(false);
|
|
364228
364248
|
const doneRef = import_react149.useRef(false);
|
|
364229
364249
|
const cancelRef = import_react149.useRef(false);
|
|
364250
|
+
const enVueloRef = import_react149.useRef(false);
|
|
364230
364251
|
import_react149.useEffect(() => {
|
|
364231
364252
|
const t = setTimeout(() => setListo(true), 250);
|
|
364232
364253
|
return () => clearTimeout(t);
|
|
@@ -364271,19 +364292,23 @@ function RecargaUI({
|
|
|
364271
364292
|
onDone(msg);
|
|
364272
364293
|
};
|
|
364273
364294
|
const confirmar = async () => {
|
|
364295
|
+
if (enVueloRef.current)
|
|
364296
|
+
return;
|
|
364274
364297
|
if (!estado)
|
|
364275
364298
|
return;
|
|
364276
364299
|
const pack = estado.packs[index];
|
|
364277
364300
|
if (!pack)
|
|
364278
364301
|
return;
|
|
364302
|
+
enVueloRef.current = true;
|
|
364303
|
+
setFase({ t: "abriendo" });
|
|
364279
364304
|
const token = await freshAccessToken();
|
|
364280
364305
|
if (!token) {
|
|
364306
|
+
enVueloRef.current = false;
|
|
364281
364307
|
setFase({ t: "sin-sesion" });
|
|
364282
364308
|
return;
|
|
364283
364309
|
}
|
|
364284
364310
|
if (cancelRef.current)
|
|
364285
364311
|
return;
|
|
364286
|
-
setFase({ t: "abriendo" });
|
|
364287
364312
|
try {
|
|
364288
364313
|
logEvent("tengu_recarga_checkout_abierto", { pack: pack.id });
|
|
364289
364314
|
} catch {}
|
|
@@ -364291,6 +364316,8 @@ function RecargaUI({
|
|
|
364291
364316
|
if (cancelRef.current)
|
|
364292
364317
|
return;
|
|
364293
364318
|
if (!res.ok) {
|
|
364319
|
+
if (res.reintentable)
|
|
364320
|
+
enVueloRef.current = false;
|
|
364294
364321
|
setFase({
|
|
364295
364322
|
t: "error",
|
|
364296
364323
|
mensaje: `${res.motivo} No se cobr\xF3 nada.` + (res.reintentable ? " Puedes reintentarlo." : "")
|
|
@@ -365027,9 +365054,9 @@ function getAllReleaseNotes(changelogContent = getStoredChangelogFromMemory()) {
|
|
|
365027
365054
|
return [];
|
|
365028
365055
|
}
|
|
365029
365056
|
}
|
|
365030
|
-
async function checkForReleaseNotes(lastSeenVersion, currentVersion = { VERSION: "0.2.
|
|
365057
|
+
async function checkForReleaseNotes(lastSeenVersion, currentVersion = { VERSION: "0.2.58", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION) {
|
|
365031
365058
|
if (process.env.USER_TYPE === "ant") {
|
|
365032
|
-
const changelog = { VERSION: "0.2.
|
|
365059
|
+
const changelog = { VERSION: "0.2.58", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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;
|
|
365033
365060
|
if (changelog) {
|
|
365034
365061
|
const commits = changelog.trim().split(`
|
|
365035
365062
|
`).filter(Boolean);
|
|
@@ -369231,7 +369258,7 @@ var init_Messages = __esm(() => {
|
|
|
369231
369258
|
let t1;
|
|
369232
369259
|
if ($2[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
369233
369260
|
t1 = /* @__PURE__ */ jsx_runtime263.jsx(TheusSessionHeader, {
|
|
369234
|
-
version: { VERSION: "0.2.
|
|
369261
|
+
version: { VERSION: "0.2.58", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
|
|
369235
369262
|
});
|
|
369236
369263
|
$2[0] = t1;
|
|
369237
369264
|
} else {
|
|
@@ -398055,7 +398082,7 @@ async function captureMemoryDiagnostics(trigger, dumpNumber = 0) {
|
|
|
398055
398082
|
smapsRollup,
|
|
398056
398083
|
platform: process.platform,
|
|
398057
398084
|
nodeVersion: process.version,
|
|
398058
|
-
ccVersion: { VERSION: "0.2.
|
|
398085
|
+
ccVersion: { VERSION: "0.2.58", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
|
|
398059
398086
|
};
|
|
398060
398087
|
}
|
|
398061
398088
|
async function performHeapDump(trigger = "manual", dumpNumber = 0) {
|
|
@@ -398874,7 +398901,7 @@ var init_bridge_kick = __esm(() => {
|
|
|
398874
398901
|
var call65 = async () => {
|
|
398875
398902
|
return {
|
|
398876
398903
|
type: "text",
|
|
398877
|
-
value: { VERSION: "0.2.
|
|
398904
|
+
value: { VERSION: "0.2.58", BUILD_TIME: "1970-01-01T00:00:00.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.58", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.58", BUILD_TIME: "1970-01-01T00:00:00.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.58", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
|
|
398878
398905
|
};
|
|
398879
398906
|
}, version2, version_default;
|
|
398880
398907
|
var init_version = __esm(() => {
|
|
@@ -401475,7 +401502,7 @@ var SECRET_NAME_PATTERN, EXTRA_ENV_ALLOWLIST, REDACTED2 = "\u2039oculto\u203A",
|
|
|
401475
401502
|
const lines = [];
|
|
401476
401503
|
lines.push("## Entorno de ejecuci\xF3n");
|
|
401477
401504
|
lines.push("");
|
|
401478
|
-
const version3 = { VERSION: "0.2.
|
|
401505
|
+
const version3 = { VERSION: "0.2.58", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.58", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION : "desconocida";
|
|
401479
401506
|
lines.push(`- Versi\xF3n de Theus: ${version3}`);
|
|
401480
401507
|
lines.push(`- Directorio de trabajo: ${getCwd()}`);
|
|
401481
401508
|
lines.push(`- \xBFRepositorio git?: ${isGit ? "s\xED" : "no"}`);
|
|
@@ -403857,6 +403884,21 @@ function naupaVersionOf(bin) {
|
|
|
403857
403884
|
return null;
|
|
403858
403885
|
}
|
|
403859
403886
|
}
|
|
403887
|
+
function rescatarNaupaBorrado(binEnUso) {
|
|
403888
|
+
try {
|
|
403889
|
+
if (existsSync18(binEnUso))
|
|
403890
|
+
return;
|
|
403891
|
+
const apartado = `${binEnUso}.old`;
|
|
403892
|
+
if (!existsSync18(apartado))
|
|
403893
|
+
return;
|
|
403894
|
+
cpSync(apartado, binEnUso, { force: true });
|
|
403895
|
+
if (!existsSync18(binEnUso))
|
|
403896
|
+
return;
|
|
403897
|
+
writeToStdout(source_default.yellow("\xD1aupa: la actualizaci\xF3n se interrumpi\xF3 y dej\xF3 el motor sin binario. " + "Restaur\xE9 la versi\xF3n anterior desde la copia de seguridad, as\xED que " + "sigue funcionando. Vuelve a intentar \xABtheus update\xBB m\xE1s tarde.") + `
|
|
403898
|
+
`);
|
|
403899
|
+
logEvent("tengu_naupa_binario_restaurado", { ruta: "old" });
|
|
403900
|
+
} catch {}
|
|
403901
|
+
}
|
|
403860
403902
|
function rescatarNaupaMalUbicado(binEnUso) {
|
|
403861
403903
|
try {
|
|
403862
403904
|
const home = process.env.HOME ?? process.env.USERPROFILE;
|
|
@@ -403927,6 +403969,7 @@ async function updateNaupa() {
|
|
|
403927
403969
|
writeToStdout(source_default.yellow(`Aviso: \xD1aupa update termin\xF3 con c\xF3digo ${code}. ` + "Puedes reintentar a mano: naupa update --ui") + `
|
|
403928
403970
|
`);
|
|
403929
403971
|
}
|
|
403972
|
+
rescatarNaupaBorrado(bin);
|
|
403930
403973
|
rescatarNaupaMalUbicado(bin);
|
|
403931
403974
|
done();
|
|
403932
403975
|
});
|
|
@@ -403986,13 +404029,13 @@ async function updateReleaseBundle() {
|
|
|
403986
404029
|
await gracefulShutdown(1);
|
|
403987
404030
|
return;
|
|
403988
404031
|
}
|
|
403989
|
-
if (gte({ VERSION: "0.2.
|
|
403990
|
-
writeToStdout(source_default.green(`Theus is up to date (${{ VERSION: "0.2.
|
|
404032
|
+
if (gte({ VERSION: "0.2.58", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
|
|
404033
|
+
writeToStdout(source_default.green(`Theus is up to date (${{ VERSION: "0.2.58", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION})`) + `
|
|
403991
404034
|
`);
|
|
403992
404035
|
await gracefulShutdown(0);
|
|
403993
404036
|
return;
|
|
403994
404037
|
}
|
|
403995
|
-
writeToStdout(`New version available: ${latest} (current: ${{ VERSION: "0.2.
|
|
404038
|
+
writeToStdout(`New version available: ${latest} (current: ${{ VERSION: "0.2.58", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION})
|
|
403996
404039
|
`);
|
|
403997
404040
|
writeToStdout(`Installing update from theus.pe/dl...
|
|
403998
404041
|
`);
|
|
@@ -404026,7 +404069,7 @@ async function updateReleaseBundle() {
|
|
|
404026
404069
|
return;
|
|
404027
404070
|
}
|
|
404028
404071
|
cpSync(staged, bundleDir, { recursive: true, force: true });
|
|
404029
|
-
writeToStdout(source_default.green(`Successfully updated from ${{ VERSION: "0.2.
|
|
404072
|
+
writeToStdout(source_default.green(`Successfully updated from ${{ VERSION: "0.2.58", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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}`) + `
|
|
404030
404073
|
`);
|
|
404031
404074
|
await regenerateCompletionCache();
|
|
404032
404075
|
} finally {
|
|
@@ -404039,7 +404082,7 @@ async function updateReleaseBundle() {
|
|
|
404039
404082
|
async function update() {
|
|
404040
404083
|
logEvent("tengu_update_check", {});
|
|
404041
404084
|
await updateNaupa();
|
|
404042
|
-
writeToStdout(`Current version: ${{ VERSION: "0.2.
|
|
404085
|
+
writeToStdout(`Current version: ${{ VERSION: "0.2.58", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION}
|
|
404043
404086
|
`);
|
|
404044
404087
|
const channel2 = getInitialSettings()?.autoUpdatesChannel ?? "latest";
|
|
404045
404088
|
writeToStdout(`Checking for updates to ${channel2} version...
|
|
@@ -404118,8 +404161,8 @@ async function update() {
|
|
|
404118
404161
|
writeToStdout(`Theus is managed by Homebrew.
|
|
404119
404162
|
`);
|
|
404120
404163
|
const latest = await getLatestVersion(channel2);
|
|
404121
|
-
if (latest && !gte({ VERSION: "0.2.
|
|
404122
|
-
writeToStdout(`Update available: ${{ VERSION: "0.2.
|
|
404164
|
+
if (latest && !gte({ VERSION: "0.2.58", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
|
|
404165
|
+
writeToStdout(`Update available: ${{ VERSION: "0.2.58", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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}
|
|
404123
404166
|
`);
|
|
404124
404167
|
writeToStdout(`
|
|
404125
404168
|
`);
|
|
@@ -404135,8 +404178,8 @@ async function update() {
|
|
|
404135
404178
|
writeToStdout(`Theus is managed by winget.
|
|
404136
404179
|
`);
|
|
404137
404180
|
const latest = await getLatestVersion(channel2);
|
|
404138
|
-
if (latest && !gte({ VERSION: "0.2.
|
|
404139
|
-
writeToStdout(`Update available: ${{ VERSION: "0.2.
|
|
404181
|
+
if (latest && !gte({ VERSION: "0.2.58", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
|
|
404182
|
+
writeToStdout(`Update available: ${{ VERSION: "0.2.58", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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}
|
|
404140
404183
|
`);
|
|
404141
404184
|
writeToStdout(`
|
|
404142
404185
|
`);
|
|
@@ -404152,8 +404195,8 @@ async function update() {
|
|
|
404152
404195
|
writeToStdout(`Theus is managed by apk.
|
|
404153
404196
|
`);
|
|
404154
404197
|
const latest = await getLatestVersion(channel2);
|
|
404155
|
-
if (latest && !gte({ VERSION: "0.2.
|
|
404156
|
-
writeToStdout(`Update available: ${{ VERSION: "0.2.
|
|
404198
|
+
if (latest && !gte({ VERSION: "0.2.58", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
|
|
404199
|
+
writeToStdout(`Update available: ${{ VERSION: "0.2.58", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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}
|
|
404157
404200
|
`);
|
|
404158
404201
|
writeToStdout(`
|
|
404159
404202
|
`);
|
|
@@ -404218,11 +404261,11 @@ async function update() {
|
|
|
404218
404261
|
`);
|
|
404219
404262
|
await gracefulShutdown(1);
|
|
404220
404263
|
}
|
|
404221
|
-
if (result.latestVersion === { VERSION: "0.2.
|
|
404222
|
-
writeToStdout(source_default.green(`Theus is up to date (${{ VERSION: "0.2.
|
|
404264
|
+
if (result.latestVersion === { VERSION: "0.2.58", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION) {
|
|
404265
|
+
writeToStdout(source_default.green(`Theus is up to date (${{ VERSION: "0.2.58", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION})`) + `
|
|
404223
404266
|
`);
|
|
404224
404267
|
} else {
|
|
404225
|
-
writeToStdout(source_default.green(`Successfully updated from ${{ VERSION: "0.2.
|
|
404268
|
+
writeToStdout(source_default.green(`Successfully updated from ${{ VERSION: "0.2.58", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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}`) + `
|
|
404226
404269
|
`);
|
|
404227
404270
|
await regenerateCompletionCache();
|
|
404228
404271
|
}
|
|
@@ -404241,9 +404284,9 @@ async function update() {
|
|
|
404241
404284
|
await removeInstalledSymlink();
|
|
404242
404285
|
}
|
|
404243
404286
|
logForDebugging("update: Checking npm registry for latest version");
|
|
404244
|
-
logForDebugging(`update: Package URL: ${{ VERSION: "0.2.
|
|
404287
|
+
logForDebugging(`update: Package URL: ${{ VERSION: "0.2.58", BUILD_TIME: "1970-01-01T00:00:00.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}`);
|
|
404245
404288
|
const npmTag = channel2 === "stable" ? "stable" : "latest";
|
|
404246
|
-
const npmCommand = `npm view ${{ VERSION: "0.2.
|
|
404289
|
+
const npmCommand = `npm view ${{ VERSION: "0.2.58", BUILD_TIME: "1970-01-01T00:00:00.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`;
|
|
404247
404290
|
logForDebugging(`update: Running: ${npmCommand}`);
|
|
404248
404291
|
const latestVersion = await getLatestVersion(channel2);
|
|
404249
404292
|
logForDebugging(`update: Latest version from npm: ${latestVersion || "FAILED"}`);
|
|
@@ -404263,7 +404306,7 @@ async function update() {
|
|
|
404263
404306
|
`);
|
|
404264
404307
|
process.stderr.write(` \u2022 Corporate proxy/firewall blocking npm
|
|
404265
404308
|
`);
|
|
404266
|
-
if ({ VERSION: "0.2.
|
|
404309
|
+
if ({ VERSION: "0.2.58", BUILD_TIME: "1970-01-01T00:00:00.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.58", BUILD_TIME: "1970-01-01T00:00:00.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")) {
|
|
404267
404310
|
process.stderr.write(` \u2022 Internal/development build not published to npm
|
|
404268
404311
|
`);
|
|
404269
404312
|
}
|
|
@@ -404275,19 +404318,19 @@ async function update() {
|
|
|
404275
404318
|
`);
|
|
404276
404319
|
process.stderr.write(` \u2022 Run with --debug flag for more details
|
|
404277
404320
|
`);
|
|
404278
|
-
const packageName = { VERSION: "0.2.
|
|
404321
|
+
const packageName = { VERSION: "0.2.58", BUILD_TIME: "1970-01-01T00:00:00.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");
|
|
404279
404322
|
process.stderr.write(` \u2022 Manually check: npm view ${packageName} version
|
|
404280
404323
|
`);
|
|
404281
404324
|
process.stderr.write(` \u2022 Check if you need to login: npm whoami
|
|
404282
404325
|
`);
|
|
404283
404326
|
await gracefulShutdown(1);
|
|
404284
404327
|
}
|
|
404285
|
-
if (gte({ VERSION: "0.2.
|
|
404286
|
-
writeToStdout(source_default.green(`Theus is up to date (${{ VERSION: "0.2.
|
|
404328
|
+
if (gte({ VERSION: "0.2.58", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
|
|
404329
|
+
writeToStdout(source_default.green(`Theus is up to date (${{ VERSION: "0.2.58", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION})`) + `
|
|
404287
404330
|
`);
|
|
404288
404331
|
await gracefulShutdown(0);
|
|
404289
404332
|
}
|
|
404290
|
-
writeToStdout(`New version available: ${latestVersion} (current: ${{ VERSION: "0.2.
|
|
404333
|
+
writeToStdout(`New version available: ${latestVersion} (current: ${{ VERSION: "0.2.58", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION})
|
|
404291
404334
|
`);
|
|
404292
404335
|
writeToStdout(`Installing update...
|
|
404293
404336
|
`);
|
|
@@ -404332,7 +404375,7 @@ async function update() {
|
|
|
404332
404375
|
logForDebugging(`update: Installation status: ${status2}`);
|
|
404333
404376
|
switch (status2) {
|
|
404334
404377
|
case "success":
|
|
404335
|
-
writeToStdout(source_default.green(`Successfully updated from ${{ VERSION: "0.2.
|
|
404378
|
+
writeToStdout(source_default.green(`Successfully updated from ${{ VERSION: "0.2.58", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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}`) + `
|
|
404336
404379
|
`);
|
|
404337
404380
|
await regenerateCompletionCache();
|
|
404338
404381
|
break;
|
|
@@ -404342,7 +404385,7 @@ async function update() {
|
|
|
404342
404385
|
if (useLocalUpdate) {
|
|
404343
404386
|
process.stderr.write(`Try manually updating with:
|
|
404344
404387
|
`);
|
|
404345
|
-
process.stderr.write(` cd ~/.theus/local && npm update ${{ VERSION: "0.2.
|
|
404388
|
+
process.stderr.write(` cd ~/.theus/local && npm update ${{ VERSION: "0.2.58", BUILD_TIME: "1970-01-01T00:00:00.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}
|
|
404346
404389
|
`);
|
|
404347
404390
|
} else {
|
|
404348
404391
|
process.stderr.write(`Try running with sudo or fix npm permissions
|
|
@@ -404358,7 +404401,7 @@ async function update() {
|
|
|
404358
404401
|
if (useLocalUpdate) {
|
|
404359
404402
|
process.stderr.write(`Try manually updating with:
|
|
404360
404403
|
`);
|
|
404361
|
-
process.stderr.write(` cd ~/.theus/local && npm update ${{ VERSION: "0.2.
|
|
404404
|
+
process.stderr.write(` cd ~/.theus/local && npm update ${{ VERSION: "0.2.58", BUILD_TIME: "1970-01-01T00:00:00.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}
|
|
404362
404405
|
`);
|
|
404363
404406
|
} else {
|
|
404364
404407
|
process.stderr.write(`Or consider using native installation with: theus install
|
|
@@ -414198,7 +414241,7 @@ var init_sessionStorage = __esm(() => {
|
|
|
414198
414241
|
init_settings2();
|
|
414199
414242
|
init_slowOperations();
|
|
414200
414243
|
init_uuid();
|
|
414201
|
-
VERSION4 = { VERSION: "0.2.
|
|
414244
|
+
VERSION4 = { VERSION: "0.2.58", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION;
|
|
414202
414245
|
MAX_TOMBSTONE_REWRITE_BYTES = 50 * 1024 * 1024;
|
|
414203
414246
|
SKIP_FIRST_PROMPT_PATTERN2 = /^(?:\s*<[a-z][\w-]*[\s>]|\[Request interrupted by user[^\]]*\])/;
|
|
414204
414247
|
EPHEMERAL_PROGRESS_TYPES = new Set([
|
|
@@ -415403,7 +415446,7 @@ var init_filesystem = __esm(() => {
|
|
|
415403
415446
|
});
|
|
415404
415447
|
getBundledSkillsRoot = memoize_default(function getBundledSkillsRoot2() {
|
|
415405
415448
|
const nonce = randomBytes21(16).toString("hex");
|
|
415406
|
-
return join150(getTheusTempDir(), "bundled-skills", { VERSION: "0.2.
|
|
415449
|
+
return join150(getTheusTempDir(), "bundled-skills", { VERSION: "0.2.58", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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);
|
|
415407
415450
|
});
|
|
415408
415451
|
getResolvedWorkingDirPaths = memoize_default(getPathsForPermissionCheck);
|
|
415409
415452
|
});
|
|
@@ -420582,7 +420625,7 @@ function getSimpleDoingTasksSection() {
|
|
|
420582
420625
|
];
|
|
420583
420626
|
const userHelpSubitems = [
|
|
420584
420627
|
`/help: Get help with using Theus`,
|
|
420585
|
-
`To give feedback, users should ${{ VERSION: "0.2.
|
|
420628
|
+
`To give feedback, users should ${{ VERSION: "0.2.58", BUILD_TIME: "1970-01-01T00:00:00.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}`
|
|
420586
420629
|
];
|
|
420587
420630
|
const items = [
|
|
420588
420631
|
`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.`,
|
|
@@ -421482,7 +421525,7 @@ function computeFingerprint(messageText, version3) {
|
|
|
421482
421525
|
}
|
|
421483
421526
|
function computeFingerprintFromMessages(messages) {
|
|
421484
421527
|
const firstMessageText = extractFirstMessageText(messages);
|
|
421485
|
-
return computeFingerprint(firstMessageText, { VERSION: "0.2.
|
|
421528
|
+
return computeFingerprint(firstMessageText, { VERSION: "0.2.58", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION);
|
|
421486
421529
|
}
|
|
421487
421530
|
var FINGERPRINT_SALT = "59cf53e54c78";
|
|
421488
421531
|
var init_fingerprint = () => {};
|
|
@@ -424105,7 +424148,7 @@ async function sideQuery(opts) {
|
|
|
424105
424148
|
betas.push(STRUCTURED_OUTPUTS_BETA_HEADER);
|
|
424106
424149
|
}
|
|
424107
424150
|
const messageText = extractFirstUserMessageText(messages);
|
|
424108
|
-
const fingerprint = computeFingerprint(messageText, { VERSION: "0.2.
|
|
424151
|
+
const fingerprint = computeFingerprint(messageText, { VERSION: "0.2.58", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION);
|
|
424109
424152
|
const attributionHeader = getAttributionHeader(fingerprint);
|
|
424110
424153
|
const systemBlocks = [
|
|
424111
424154
|
attributionHeader ? { type: "text", text: attributionHeader } : null,
|
|
@@ -425408,7 +425451,7 @@ async function handleMemories(state) {
|
|
|
425408
425451
|
async function runProjectContextMcpServer() {
|
|
425409
425452
|
const projectRoot = process.env.THEUS_PROJECT_ROOT || process.cwd();
|
|
425410
425453
|
const state = new ProjectContextState(projectRoot);
|
|
425411
|
-
const server2 = new Server({ name: SERVER_NAME, version: { VERSION: "0.2.
|
|
425454
|
+
const server2 = new Server({ name: SERVER_NAME, version: { VERSION: "0.2.58", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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: {} } });
|
|
425412
425455
|
server2.setRequestHandler(ListToolsRequestSchema, async () => ({
|
|
425413
425456
|
tools: TOOL_DEFINITIONS.map((t) => ({
|
|
425414
425457
|
name: t.name,
|
|
@@ -427390,7 +427433,7 @@ function createBridgeLogger(options2) {
|
|
|
427390
427433
|
connectUrl = buildBridgeConnectUrl(environmentId, cachedIngressUrl);
|
|
427391
427434
|
regenerateQr(connectUrl);
|
|
427392
427435
|
if (verbose) {
|
|
427393
|
-
write(source_default.dim(`Remote Control`) + ` v${{ VERSION: "0.2.
|
|
427436
|
+
write(source_default.dim(`Remote Control`) + ` v${{ VERSION: "0.2.58", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION}
|
|
427394
427437
|
`);
|
|
427395
427438
|
}
|
|
427396
427439
|
if (verbose) {
|
|
@@ -428363,7 +428406,7 @@ function appendToLog(path19, message) {
|
|
|
428363
428406
|
cwd: getFsImplementation().cwd(),
|
|
428364
428407
|
userType: process.env.USER_TYPE,
|
|
428365
428408
|
sessionId: getSessionId(),
|
|
428366
|
-
version: { VERSION: "0.2.
|
|
428409
|
+
version: { VERSION: "0.2.58", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
|
|
428367
428410
|
};
|
|
428368
428411
|
getLogWriter(path19).write(messageWithTimestamp);
|
|
428369
428412
|
}
|
|
@@ -429633,7 +429676,7 @@ Spawn mode for this project:
|
|
|
429633
429676
|
const api2 = createBridgeApiClient({
|
|
429634
429677
|
baseUrl,
|
|
429635
429678
|
getAccessToken: getBridgeAccessToken2,
|
|
429636
|
-
runnerVersion: { VERSION: "0.2.
|
|
429679
|
+
runnerVersion: { VERSION: "0.2.58", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
|
|
429637
429680
|
onDebug: logForDebugging,
|
|
429638
429681
|
onAuth401: handleOAuth401Error2,
|
|
429639
429682
|
getTrustedDeviceToken
|
|
@@ -429871,7 +429914,7 @@ async function runBridgeHeadless(opts, signal) {
|
|
|
429871
429914
|
const api2 = createBridgeApiClient({
|
|
429872
429915
|
baseUrl,
|
|
429873
429916
|
getAccessToken: opts.getAccessToken,
|
|
429874
|
-
runnerVersion: { VERSION: "0.2.
|
|
429917
|
+
runnerVersion: { VERSION: "0.2.58", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
|
|
429875
429918
|
onDebug: log2,
|
|
429876
429919
|
onAuth401: opts.onAuth401,
|
|
429877
429920
|
getTrustedDeviceToken
|
|
@@ -433937,7 +433980,7 @@ function buildSystemInitMessage(inputs) {
|
|
|
433937
433980
|
slash_commands: inputs.commands.filter((c5) => c5.userInvocable !== false).map((c5) => c5.name),
|
|
433938
433981
|
apiKeySource: getTheusApiKeyWithSource().source,
|
|
433939
433982
|
betas: getSdkBetas(),
|
|
433940
|
-
theus_code_version: { VERSION: "0.2.
|
|
433983
|
+
theus_code_version: { VERSION: "0.2.58", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
|
|
433941
433984
|
output_style: outputStyle2,
|
|
433942
433985
|
agents: inputs.agents.map((agent) => agent.agentType),
|
|
433943
433986
|
skills: inputs.skills.filter((s) => s.userInvocable !== false).map((skill) => skill.name),
|
|
@@ -433977,8 +434020,8 @@ async function getEnvLessBridgeConfig() {
|
|
|
433977
434020
|
}
|
|
433978
434021
|
async function checkEnvLessBridgeMinVersion() {
|
|
433979
434022
|
const cfg = await getEnvLessBridgeConfig();
|
|
433980
|
-
if (cfg.min_version && lt({ VERSION: "0.2.
|
|
433981
|
-
return `Your version of Theus (${{ VERSION: "0.2.
|
|
434023
|
+
if (cfg.min_version && lt({ VERSION: "0.2.58", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
|
|
434024
|
+
return `Your version of Theus (${{ VERSION: "0.2.58", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.
|
|
433982
434025
|
Version ${cfg.min_version} or higher is required. Run \`theus update\` to update.`;
|
|
433983
434026
|
}
|
|
433984
434027
|
return null;
|
|
@@ -436302,7 +436345,7 @@ async function initBridgeCore(params) {
|
|
|
436302
436345
|
const rawApi = createBridgeApiClient({
|
|
436303
436346
|
baseUrl,
|
|
436304
436347
|
getAccessToken,
|
|
436305
|
-
runnerVersion: { VERSION: "0.2.
|
|
436348
|
+
runnerVersion: { VERSION: "0.2.58", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
|
|
436306
436349
|
onDebug: logForDebugging,
|
|
436307
436350
|
onAuth401,
|
|
436308
436351
|
getTrustedDeviceToken
|
|
@@ -453045,7 +453088,7 @@ var init_useVoiceEnabled = __esm(() => {
|
|
|
453045
453088
|
function getSemverPart(version3) {
|
|
453046
453089
|
return `${import_semver14.major(version3, { loose: true })}.${import_semver14.minor(version3, { loose: true })}.${import_semver14.patch(version3, { loose: true })}`;
|
|
453047
453090
|
}
|
|
453048
|
-
function useUpdateNotification(updatedVersion, initialVersion = { VERSION: "0.2.
|
|
453091
|
+
function useUpdateNotification(updatedVersion, initialVersion = { VERSION: "0.2.58", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION) {
|
|
453049
453092
|
const [lastNotifiedSemver, setLastNotifiedSemver] = import_react233.useState(() => getSemverPart(initialVersion));
|
|
453050
453093
|
if (!updatedVersion) {
|
|
453051
453094
|
return null;
|
|
@@ -453085,7 +453128,7 @@ function AutoUpdater({
|
|
|
453085
453128
|
return;
|
|
453086
453129
|
}
|
|
453087
453130
|
if (false) {}
|
|
453088
|
-
const currentVersion = { VERSION: "0.2.
|
|
453131
|
+
const currentVersion = { VERSION: "0.2.58", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION;
|
|
453089
453132
|
const channel2 = getInitialSettings()?.autoUpdatesChannel ?? "latest";
|
|
453090
453133
|
let latestVersion = await getLatestVersion(channel2);
|
|
453091
453134
|
const isDisabled2 = isAutoUpdaterDisabled();
|
|
@@ -453221,7 +453264,7 @@ function AutoUpdater({
|
|
|
453221
453264
|
" ",
|
|
453222
453265
|
/* @__PURE__ */ jsx_runtime409.jsx(ThemedText, {
|
|
453223
453266
|
bold: true,
|
|
453224
|
-
children: hasLocalInstall ? `cd ~/.theus/local && npm update ${{ VERSION: "0.2.
|
|
453267
|
+
children: hasLocalInstall ? `cd ~/.theus/local && npm update ${{ VERSION: "0.2.58", BUILD_TIME: "1970-01-01T00:00:00.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.58", BUILD_TIME: "1970-01-01T00:00:00.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}`
|
|
453225
453268
|
})
|
|
453226
453269
|
]
|
|
453227
453270
|
})
|
|
@@ -453298,12 +453341,12 @@ function NativeAutoUpdater({
|
|
|
453298
453341
|
logEvent("tengu_native_auto_updater_start", {});
|
|
453299
453342
|
try {
|
|
453300
453343
|
const maxVersion = await getMaxVersion();
|
|
453301
|
-
if (maxVersion && gt({ VERSION: "0.2.
|
|
453344
|
+
if (maxVersion && gt({ VERSION: "0.2.58", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
|
|
453302
453345
|
const msg = await getMaxVersionMessage();
|
|
453303
453346
|
setMaxVersionIssue(msg ?? "affects your version");
|
|
453304
453347
|
}
|
|
453305
453348
|
const result = await installLatest(channel2);
|
|
453306
|
-
const currentVersion = { VERSION: "0.2.
|
|
453349
|
+
const currentVersion = { VERSION: "0.2.58", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION;
|
|
453307
453350
|
const latencyMs = Date.now() - startTime2;
|
|
453308
453351
|
if (result.lockFailed) {
|
|
453309
453352
|
logEvent("tengu_native_auto_updater_lock_contention", {
|
|
@@ -453440,17 +453483,17 @@ function PackageManagerAutoUpdater(t0) {
|
|
|
453440
453483
|
const maxVersion = await getMaxVersion();
|
|
453441
453484
|
if (maxVersion && latest && gt(latest, maxVersion)) {
|
|
453442
453485
|
logForDebugging(`PackageManagerAutoUpdater: maxVersion ${maxVersion} is set, capping update from ${latest} to ${maxVersion}`);
|
|
453443
|
-
if (gte({ VERSION: "0.2.
|
|
453444
|
-
logForDebugging(`PackageManagerAutoUpdater: current version ${{ VERSION: "0.2.
|
|
453486
|
+
if (gte({ VERSION: "0.2.58", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
|
|
453487
|
+
logForDebugging(`PackageManagerAutoUpdater: current version ${{ VERSION: "0.2.58", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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`);
|
|
453445
453488
|
setUpdateAvailable(false);
|
|
453446
453489
|
return;
|
|
453447
453490
|
}
|
|
453448
453491
|
latest = maxVersion;
|
|
453449
453492
|
}
|
|
453450
|
-
const hasUpdate = latest && !gte({ VERSION: "0.2.
|
|
453493
|
+
const hasUpdate = latest && !gte({ VERSION: "0.2.58", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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);
|
|
453451
453494
|
setUpdateAvailable(!!hasUpdate);
|
|
453452
453495
|
if (hasUpdate) {
|
|
453453
|
-
logForDebugging(`PackageManagerAutoUpdater: Update available ${{ VERSION: "0.2.
|
|
453496
|
+
logForDebugging(`PackageManagerAutoUpdater: Update available ${{ VERSION: "0.2.58", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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}`);
|
|
453454
453497
|
}
|
|
453455
453498
|
};
|
|
453456
453499
|
$2[0] = t1;
|
|
@@ -453484,7 +453527,7 @@ function PackageManagerAutoUpdater(t0) {
|
|
|
453484
453527
|
wrap: "truncate",
|
|
453485
453528
|
children: [
|
|
453486
453529
|
"currentVersion: ",
|
|
453487
|
-
{ VERSION: "0.2.
|
|
453530
|
+
{ VERSION: "0.2.58", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
|
|
453488
453531
|
]
|
|
453489
453532
|
});
|
|
453490
453533
|
$2[3] = verbose;
|
|
@@ -461358,7 +461401,7 @@ function buildStatusLineCommandInput(permissionMode, exceeds200kTokens, settings
|
|
|
461358
461401
|
project_dir: getOriginalCwd(),
|
|
461359
461402
|
added_dirs: addedDirs
|
|
461360
461403
|
},
|
|
461361
|
-
version: { VERSION: "0.2.
|
|
461404
|
+
version: { VERSION: "0.2.58", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
|
|
461362
461405
|
output_style: {
|
|
461363
461406
|
name: outputStyleName
|
|
461364
461407
|
},
|
|
@@ -485638,7 +485681,7 @@ function completeOnboarding() {
|
|
|
485638
485681
|
saveGlobalConfig((current) => ({
|
|
485639
485682
|
...current,
|
|
485640
485683
|
hasCompletedOnboarding: true,
|
|
485641
|
-
lastOnboardingVersion: { VERSION: "0.2.
|
|
485684
|
+
lastOnboardingVersion: { VERSION: "0.2.58", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
|
|
485642
485685
|
}));
|
|
485643
485686
|
}
|
|
485644
485687
|
function showDialog(root2, renderer) {
|
|
@@ -496589,7 +496632,7 @@ async function startMCPServer(cwd3, debug3, verbose) {
|
|
|
496589
496632
|
setCwd(cwd3);
|
|
496590
496633
|
const server2 = new Server({
|
|
496591
496634
|
name: "theus/tengu",
|
|
496592
|
-
version: { VERSION: "0.2.
|
|
496635
|
+
version: { VERSION: "0.2.58", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
|
|
496593
496636
|
}, {
|
|
496594
496637
|
capabilities: {
|
|
496595
496638
|
tools: {}
|
|
@@ -498031,7 +498074,7 @@ async function setupTokenHandler(root2) {
|
|
|
498031
498074
|
gap: 1,
|
|
498032
498075
|
children: [
|
|
498033
498076
|
/* @__PURE__ */ jsx_runtime495.jsx(TheusBanner, {
|
|
498034
|
-
version: { VERSION: "0.2.
|
|
498077
|
+
version: { VERSION: "0.2.58", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
|
|
498035
498078
|
}),
|
|
498036
498079
|
showAuthWarning && /* @__PURE__ */ jsx_runtime495.jsxs(ThemedBox_default, {
|
|
498037
498080
|
flexDirection: "column",
|
|
@@ -499513,7 +499556,7 @@ ${assistantAddendum}` : assistantAddendum;
|
|
|
499513
499556
|
}
|
|
499514
499557
|
}
|
|
499515
499558
|
logForDiagnosticsNoPII("info", "started", {
|
|
499516
|
-
version: { VERSION: "0.2.
|
|
499559
|
+
version: { VERSION: "0.2.58", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
|
|
499517
499560
|
is_native_binary: isInBundledMode()
|
|
499518
499561
|
});
|
|
499519
499562
|
registerCleanup(async () => {
|
|
@@ -500381,7 +500424,7 @@ Usage: theus --remote "your task description"`, () => gracefulShutdown(1));
|
|
|
500381
500424
|
pendingHookMessages
|
|
500382
500425
|
}, renderAndRun);
|
|
500383
500426
|
}
|
|
500384
|
-
}).version(`${{ VERSION: "0.2.
|
|
500427
|
+
}).version(`${{ VERSION: "0.2.58", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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");
|
|
500385
500428
|
program2.option("-w, --worktree [name]", "Crea un nuevo worktree de git para esta sesi\xF3n (opcionalmente indica un nombre)");
|
|
500386
500429
|
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.");
|
|
500387
500430
|
if (canUserConfigureAdvisor()) {
|
|
@@ -500933,7 +500976,7 @@ if (false) {}
|
|
|
500933
500976
|
async function main2() {
|
|
500934
500977
|
const args = process.argv.slice(2);
|
|
500935
500978
|
if (args.length === 1 && (args[0] === "--version" || args[0] === "-v" || args[0] === "-V")) {
|
|
500936
|
-
console.log(`${{ VERSION: "0.2.
|
|
500979
|
+
console.log(`${{ VERSION: "0.2.58", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)`);
|
|
500937
500980
|
return;
|
|
500938
500981
|
}
|
|
500939
500982
|
const {
|