theus-cli 0.2.59 → 0.2.60
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 +259 -152
- package/package.json +2 -2
package/cli.js
CHANGED
|
@@ -36057,6 +36057,7 @@ var init_keys2 = __esm(() => {
|
|
|
36057
36057
|
// constants/oauth.ts
|
|
36058
36058
|
var exports_oauth = {};
|
|
36059
36059
|
__export(exports_oauth, {
|
|
36060
|
+
supportsUpstreamCompatibilityEndpoints: () => supportsUpstreamCompatibilityEndpoints,
|
|
36060
36061
|
getOauthConfig: () => getOauthConfig,
|
|
36061
36062
|
fileSuffixForOauthConfig: () => fileSuffixForOauthConfig,
|
|
36062
36063
|
THEUS_AI_PROFILE_SCOPE: () => THEUS_AI_PROFILE_SCOPE,
|
|
@@ -36153,6 +36154,12 @@ function getOauthConfig() {
|
|
|
36153
36154
|
}
|
|
36154
36155
|
return config2;
|
|
36155
36156
|
}
|
|
36157
|
+
function supportsUpstreamCompatibilityEndpoints() {
|
|
36158
|
+
if (isEnvTruthy(process.env.THEUS_UPSTREAM_COMPAT_API))
|
|
36159
|
+
return true;
|
|
36160
|
+
const base = getOauthConfig().BASE_API_URL.replace(/\/+$/, "");
|
|
36161
|
+
return base !== "https://theus.pe" && base !== "https://api.theus.pe";
|
|
36162
|
+
}
|
|
36156
36163
|
var THEUS_AI_INFERENCE_SCOPE = "user:inference", THEUS_AI_PROFILE_SCOPE = "user:profile", CONSOLE_SCOPE = "org:create_api_key", OAUTH_BETA_HEADER = "oauth-2025-04-20", CONSOLE_OAUTH_SCOPES, THEUS_AI_OAUTH_SCOPES, ALL_OAUTH_SCOPES, PROD_OAUTH_CONFIG, MCP_CLIENT_METADATA_URL = "https://theus.pe/oauth/theus-code-client-metadata", STAGING_OAUTH_CONFIG, ALLOWED_OAUTH_BASE_URLS;
|
|
36157
36164
|
var init_oauth = __esm(() => {
|
|
36158
36165
|
init_envUtils();
|
|
@@ -36181,7 +36188,7 @@ var init_oauth = __esm(() => {
|
|
|
36181
36188
|
MANUAL_REDIRECT_URL: "https://theus.pe/oauth/code/callback",
|
|
36182
36189
|
CLIENT_ID: "9d1c250a-e61b-44d9-88ed-5944d1962f5e",
|
|
36183
36190
|
OAUTH_FILE_SUFFIX: "",
|
|
36184
|
-
MCP_PROXY_URL: "https://
|
|
36191
|
+
MCP_PROXY_URL: "https://theus.pe",
|
|
36185
36192
|
MCP_PROXY_PATH: "/v1/mcp/{server_id}"
|
|
36186
36193
|
};
|
|
36187
36194
|
STAGING_OAUTH_CONFIG = process.env.USER_TYPE === "ant" ? {
|
|
@@ -54421,6 +54428,7 @@ __export(exports_client, {
|
|
|
54421
54428
|
refreshOAuthToken: () => refreshOAuthToken,
|
|
54422
54429
|
populateOAuthAccountInfoIfNeeded: () => populateOAuthAccountInfoIfNeeded,
|
|
54423
54430
|
parseScopes: () => parseScopes,
|
|
54431
|
+
isPermanentOAuthRefreshError: () => isPermanentOAuthRefreshError,
|
|
54424
54432
|
isOAuthTokenExpired: () => isOAuthTokenExpired,
|
|
54425
54433
|
getOrganizationUUID: () => getOrganizationUUID,
|
|
54426
54434
|
fetchProfileInfo: () => fetchProfileInfo,
|
|
@@ -54490,6 +54498,20 @@ async function exchangeCodeForTokens(authorizationCode, state, codeVerifier, por
|
|
|
54490
54498
|
logEvent("tengu_oauth_token_exchange_success", {});
|
|
54491
54499
|
return response.data;
|
|
54492
54500
|
}
|
|
54501
|
+
function isPermanentOAuthRefreshError(error40) {
|
|
54502
|
+
if (!axios_default.isAxiosError(error40))
|
|
54503
|
+
return false;
|
|
54504
|
+
const status = error40.response?.status;
|
|
54505
|
+
if (status === 401)
|
|
54506
|
+
return true;
|
|
54507
|
+
if (status !== 400)
|
|
54508
|
+
return false;
|
|
54509
|
+
const data = error40.response?.data;
|
|
54510
|
+
if (!data || typeof data !== "object")
|
|
54511
|
+
return false;
|
|
54512
|
+
const code = String(data.error ?? "");
|
|
54513
|
+
return code === "invalid_grant" || code === "invalid_refresh_token" || code === "refresh_token_expired";
|
|
54514
|
+
}
|
|
54493
54515
|
async function refreshOAuthToken(refreshToken, { scopes: requestedScopes } = {}) {
|
|
54494
54516
|
const requestBody = {
|
|
54495
54517
|
grant_type: "refresh_token",
|
|
@@ -55246,6 +55268,10 @@ async function prefetchFastModeStatus() {
|
|
|
55246
55268
|
if (!isFastModeEnabled()) {
|
|
55247
55269
|
return;
|
|
55248
55270
|
}
|
|
55271
|
+
if (!supportsUpstreamCompatibilityEndpoints()) {
|
|
55272
|
+
orgStatus = { status: "disabled", reason: "preference" };
|
|
55273
|
+
return;
|
|
55274
|
+
}
|
|
55249
55275
|
if (inflightPrefetch) {
|
|
55250
55276
|
logForDebugging("Fast mode prefetch in progress, returning in-flight promise");
|
|
55251
55277
|
return inflightPrefetch;
|
|
@@ -58896,7 +58922,7 @@ async function _executeApiKeyHelper(isNonInteractiveSession) {
|
|
|
58896
58922
|
if (isApiKeyHelperFromProjectOrLocalSettings()) {
|
|
58897
58923
|
const hasTrust = checkHasTrustDialogAccepted();
|
|
58898
58924
|
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.
|
|
58925
|
+
const error40 = new Error(`Security: apiKeyHelper executed before workspace trust is confirmed. If you see this message, post in ${{ VERSION: "0.2.60", BUILD_TIME: "1970-01-01T00:00:00.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
58926
|
logAntError("apiKeyHelper invoked before trust check", error40);
|
|
58901
58927
|
logEvent("tengu_apiKeyHelper_missing_trust11", {});
|
|
58902
58928
|
return null;
|
|
@@ -58940,7 +58966,7 @@ async function runAwsAuthRefresh() {
|
|
|
58940
58966
|
if (isAwsAuthRefreshFromProjectSettings()) {
|
|
58941
58967
|
const hasTrust = checkHasTrustDialogAccepted();
|
|
58942
58968
|
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.
|
|
58969
|
+
const error40 = new Error(`Security: awsAuthRefresh executed before workspace trust is confirmed. If you see this message, post in ${{ VERSION: "0.2.60", BUILD_TIME: "1970-01-01T00:00:00.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
58970
|
logAntError("awsAuthRefresh invoked before trust check", error40);
|
|
58945
58971
|
logEvent("tengu_awsAuthRefresh_missing_trust", {});
|
|
58946
58972
|
return false;
|
|
@@ -59000,7 +59026,7 @@ async function getAwsCredsFromCredentialExport() {
|
|
|
59000
59026
|
if (isAwsCredentialExportFromProjectSettings()) {
|
|
59001
59027
|
const hasTrust = checkHasTrustDialogAccepted();
|
|
59002
59028
|
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.
|
|
59029
|
+
const error40 = new Error(`Security: awsCredentialExport executed before workspace trust is confirmed. If you see this message, post in ${{ VERSION: "0.2.60", BUILD_TIME: "1970-01-01T00:00:00.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
59030
|
logAntError("awsCredentialExport invoked before trust check", error40);
|
|
59005
59031
|
logEvent("tengu_awsCredentialExport_missing_trust", {});
|
|
59006
59032
|
return null;
|
|
@@ -59085,7 +59111,7 @@ async function runGcpAuthRefresh() {
|
|
|
59085
59111
|
if (isGcpAuthRefreshFromProjectSettings()) {
|
|
59086
59112
|
const hasTrust = checkHasTrustDialogAccepted();
|
|
59087
59113
|
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.
|
|
59114
|
+
const error40 = new Error(`Security: gcpAuthRefresh executed before workspace trust is confirmed. If you see this message, post in ${{ VERSION: "0.2.60", BUILD_TIME: "1970-01-01T00:00:00.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
59115
|
logAntError("gcpAuthRefresh invoked before trust check", error40);
|
|
59090
59116
|
logEvent("tengu_gcpAuthRefresh_missing_trust", {});
|
|
59091
59117
|
return false;
|
|
@@ -59279,6 +59305,26 @@ function saveOAuthTokensIfNeeded(tokens) {
|
|
|
59279
59305
|
return { success: false, warning: "Failed to save OAuth tokens" };
|
|
59280
59306
|
}
|
|
59281
59307
|
}
|
|
59308
|
+
function clearInvalidOAuthTokens() {
|
|
59309
|
+
const secureStorage = getSecureStorage();
|
|
59310
|
+
try {
|
|
59311
|
+
const storageData = secureStorage.read();
|
|
59312
|
+
if (!storageData?.theusAiOauth)
|
|
59313
|
+
return true;
|
|
59314
|
+
delete storageData.theusAiOauth;
|
|
59315
|
+
const updateStatus = secureStorage.update(storageData);
|
|
59316
|
+
if (!updateStatus.success)
|
|
59317
|
+
return false;
|
|
59318
|
+
getTheusAIOAuthTokens.cache?.clear?.();
|
|
59319
|
+
clearKeychainCache();
|
|
59320
|
+
clearBetasCaches();
|
|
59321
|
+
clearToolSchemaCache();
|
|
59322
|
+
return true;
|
|
59323
|
+
} catch (error40) {
|
|
59324
|
+
logError2(error40);
|
|
59325
|
+
return false;
|
|
59326
|
+
}
|
|
59327
|
+
}
|
|
59282
59328
|
function clearOAuthTokenCache() {
|
|
59283
59329
|
getTheusAIOAuthTokens.cache?.clear?.();
|
|
59284
59330
|
clearKeychainCache();
|
|
@@ -59414,6 +59460,7 @@ async function checkAndRefreshOAuthTokenIfNeededImpl(retryCount, force) {
|
|
|
59414
59460
|
return true;
|
|
59415
59461
|
} catch (error40) {
|
|
59416
59462
|
logError2(error40);
|
|
59463
|
+
const permanentRefreshFailure = isPermanentOAuthRefreshError(error40);
|
|
59417
59464
|
getTheusAIOAuthTokens.cache?.clear?.();
|
|
59418
59465
|
clearKeychainCache();
|
|
59419
59466
|
const currentTokens = await getTheusAIOAuthTokensAsync();
|
|
@@ -59421,6 +59468,9 @@ async function checkAndRefreshOAuthTokenIfNeededImpl(retryCount, force) {
|
|
|
59421
59468
|
logEvent("tengu_oauth_token_refresh_race_recovered", {});
|
|
59422
59469
|
return true;
|
|
59423
59470
|
}
|
|
59471
|
+
if (permanentRefreshFailure && clearInvalidOAuthTokens()) {
|
|
59472
|
+
logEvent("tengu_oauth_invalid_refresh_token_cleared", {});
|
|
59473
|
+
}
|
|
59424
59474
|
return false;
|
|
59425
59475
|
} finally {
|
|
59426
59476
|
logEvent("tengu_oauth_token_refresh_lock_releasing", {});
|
|
@@ -59780,7 +59830,7 @@ var init_auth = __esm(() => {
|
|
|
59780
59830
|
|
|
59781
59831
|
// utils/userAgent.ts
|
|
59782
59832
|
function getTheusCodeUserAgent() {
|
|
59783
|
-
return `theus-code/${{ VERSION: "0.2.
|
|
59833
|
+
return `theus-code/${{ VERSION: "0.2.60", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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
59834
|
}
|
|
59785
59835
|
|
|
59786
59836
|
// utils/workloadContext.ts
|
|
@@ -59802,7 +59852,7 @@ function getUserAgent() {
|
|
|
59802
59852
|
const clientApp = process.env.THEUS_AGENT_SDK_CLIENT_APP ? `, client-app/${process.env.THEUS_AGENT_SDK_CLIENT_APP}` : "";
|
|
59803
59853
|
const workload = getWorkload();
|
|
59804
59854
|
const workloadSuffix = workload ? `, workload/${workload}` : "";
|
|
59805
|
-
return `theus-cli/${{ VERSION: "0.2.
|
|
59855
|
+
return `theus-cli/${{ VERSION: "0.2.60", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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
59856
|
}
|
|
59807
59857
|
function getMCPUserAgent() {
|
|
59808
59858
|
const parts = [];
|
|
@@ -59816,7 +59866,7 @@ function getMCPUserAgent() {
|
|
|
59816
59866
|
parts.push(`client-app/${process.env.THEUS_AGENT_SDK_CLIENT_APP}`);
|
|
59817
59867
|
}
|
|
59818
59868
|
const suffix = parts.length > 0 ? ` (${parts.join(", ")})` : "";
|
|
59819
|
-
return `theus-code/${{ VERSION: "0.2.
|
|
59869
|
+
return `theus-code/${{ VERSION: "0.2.60", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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
59870
|
}
|
|
59821
59871
|
function getWebFetchUserAgent() {
|
|
59822
59872
|
return `Theus-User (${getTheusCodeUserAgent()}; +https://support.theus.pe/)`;
|
|
@@ -59954,7 +60004,7 @@ var init_user = __esm(() => {
|
|
|
59954
60004
|
deviceId,
|
|
59955
60005
|
sessionId: getSessionId(),
|
|
59956
60006
|
email: getEmail(),
|
|
59957
|
-
appVersion: { VERSION: "0.2.
|
|
60007
|
+
appVersion: { VERSION: "0.2.60", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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
60008
|
platform: getHostPlatformForAnalytics(),
|
|
59959
60009
|
organizationUuid,
|
|
59960
60010
|
accountUuid,
|
|
@@ -61669,7 +61719,7 @@ var init_metadata = __esm(() => {
|
|
|
61669
61719
|
COMPOUND_OPERATOR_REGEX = /\s*(?:&&|\|\||[;|])\s*/;
|
|
61670
61720
|
WHITESPACE_REGEX = /\s+/;
|
|
61671
61721
|
getVersionBase = memoize_default(() => {
|
|
61672
|
-
const match = { VERSION: "0.2.
|
|
61722
|
+
const match = { VERSION: "0.2.60", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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
61723
|
return match ? match[0] : undefined;
|
|
61674
61724
|
});
|
|
61675
61725
|
buildEnvContext = memoize_default(async () => {
|
|
@@ -61709,9 +61759,9 @@ var init_metadata = __esm(() => {
|
|
|
61709
61759
|
isGithubAction: isEnvTruthy(process.env.GITHUB_ACTIONS),
|
|
61710
61760
|
isTheusCodeAction: isEnvTruthy(process.env.THEUS_CODE_ACTION),
|
|
61711
61761
|
isTheusAiAuth: isTheusAISubscriber(),
|
|
61712
|
-
version: { VERSION: "0.2.
|
|
61762
|
+
version: { VERSION: "0.2.60", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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
61763
|
versionBase: getVersionBase(),
|
|
61714
|
-
buildTime: { VERSION: "0.2.
|
|
61764
|
+
buildTime: { VERSION: "0.2.60", BUILD_TIME: "1970-01-01T00:00:00.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
61765
|
deploymentEnvironment: env3.detectDeploymentEnvironment(),
|
|
61716
61766
|
...isEnvTruthy(process.env.GITHUB_ACTIONS) && {
|
|
61717
61767
|
githubEventName: process.env.GITHUB_EVENT_NAME,
|
|
@@ -62377,7 +62427,7 @@ function initialize1PEventLogging() {
|
|
|
62377
62427
|
const platform2 = getPlatform();
|
|
62378
62428
|
const attributes = {
|
|
62379
62429
|
[ATTR_SERVICE_NAME]: "theus-code",
|
|
62380
|
-
[ATTR_SERVICE_VERSION]: { VERSION: "0.2.
|
|
62430
|
+
[ATTR_SERVICE_VERSION]: { VERSION: "0.2.60", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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
62431
|
};
|
|
62382
62432
|
if (platform2 === "wsl") {
|
|
62383
62433
|
const wslVersion = getWslVersion();
|
|
@@ -62404,7 +62454,7 @@ function initialize1PEventLogging() {
|
|
|
62404
62454
|
})
|
|
62405
62455
|
]
|
|
62406
62456
|
});
|
|
62407
|
-
firstPartyEventLogger = firstPartyEventLoggerProvider.getLogger("com.theus.theus_code.events", { VERSION: "0.2.
|
|
62457
|
+
firstPartyEventLogger = firstPartyEventLoggerProvider.getLogger("com.theus.theus_code.events", { VERSION: "0.2.60", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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
62458
|
}
|
|
62409
62459
|
async function reinitialize1PEventLoggingIfConfigChanged() {
|
|
62410
62460
|
if (!is1PEventLoggingEnabled() || !firstPartyEventLoggerProvider) {
|
|
@@ -64275,7 +64325,7 @@ function getAttributionHeader(fingerprint) {
|
|
|
64275
64325
|
if (!isAttributionHeaderEnabled()) {
|
|
64276
64326
|
return "";
|
|
64277
64327
|
}
|
|
64278
|
-
const version2 = `${{ VERSION: "0.2.
|
|
64328
|
+
const version2 = `${{ VERSION: "0.2.60", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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
64329
|
const entrypoint = process.env.THEUS_CODE_ENTRYPOINT ?? "unknown";
|
|
64280
64330
|
const cch = "";
|
|
64281
64331
|
const workload = getWorkload();
|
|
@@ -108362,7 +108412,7 @@ Complete the user's request by providing accurate, documentation-based guidance.
|
|
|
108362
108412
|
}
|
|
108363
108413
|
function getFeedbackGuideline() {
|
|
108364
108414
|
if (isUsing3PServices()) {
|
|
108365
|
-
return `- When you cannot find an answer or the feature doesn't exist, direct the user to ${{ VERSION: "0.2.
|
|
108415
|
+
return `- When you cannot find an answer or the feature doesn't exist, direct the user to ${{ VERSION: "0.2.60", BUILD_TIME: "1970-01-01T00:00:00.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
108416
|
}
|
|
108367
108417
|
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
108418
|
}
|
|
@@ -167334,7 +167384,7 @@ function getTelemetryAttributes() {
|
|
|
167334
167384
|
attributes["session.id"] = sessionId;
|
|
167335
167385
|
}
|
|
167336
167386
|
if (shouldIncludeAttribute("OTEL_METRICS_INCLUDE_VERSION")) {
|
|
167337
|
-
attributes["app.version"] = { VERSION: "0.2.
|
|
167387
|
+
attributes["app.version"] = { VERSION: "0.2.60", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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
167388
|
}
|
|
167339
167389
|
const oauthAccount = getOauthAccountInfo();
|
|
167340
167390
|
if (oauthAccount) {
|
|
@@ -203218,7 +203268,7 @@ function getInstallationEnv() {
|
|
|
203218
203268
|
return;
|
|
203219
203269
|
}
|
|
203220
203270
|
function getTheusCodeVersion() {
|
|
203221
|
-
return { VERSION: "0.2.
|
|
203271
|
+
return { VERSION: "0.2.60", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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
203272
|
}
|
|
203223
203273
|
async function getInstalledVSCodeExtensionVersion(command) {
|
|
203224
203274
|
const { stdout } = await execFileNoThrow(command, ["--list-extensions", "--show-versions"], {
|
|
@@ -204736,7 +204786,7 @@ async function getMcpHeadersFromHelper(serverName, config2) {
|
|
|
204736
204786
|
if ("scope" in config2 && isMcpServerFromProjectOrLocalSettings(config2) && !getIsNonInteractiveSession()) {
|
|
204737
204787
|
const hasTrust = checkHasTrustDialogAccepted();
|
|
204738
204788
|
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.
|
|
204789
|
+
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.60", BUILD_TIME: "1970-01-01T00:00:00.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
204790
|
logAntError("MCP headersHelper invoked before trust check", error40);
|
|
204741
204791
|
logEvent("tengu_mcp_headersHelper_missing_trust", {});
|
|
204742
204792
|
return null;
|
|
@@ -205946,7 +205996,7 @@ async function setupSdkMcpClients(sdkMcpConfigs, sendMcpMessage) {
|
|
|
205946
205996
|
const client2 = new Client({
|
|
205947
205997
|
name: "theus-code",
|
|
205948
205998
|
title: "Theus",
|
|
205949
|
-
version: { VERSION: "0.2.
|
|
205999
|
+
version: { VERSION: "0.2.60", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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
206000
|
description: "Theus's agentic coding tool",
|
|
205951
206001
|
websiteUrl: PRODUCT_URL
|
|
205952
206002
|
}, {
|
|
@@ -206300,7 +206350,7 @@ var init_client5 = __esm(() => {
|
|
|
206300
206350
|
const client2 = new Client({
|
|
206301
206351
|
name: "theus-code",
|
|
206302
206352
|
title: "Theus",
|
|
206303
|
-
version: { VERSION: "0.2.
|
|
206353
|
+
version: { VERSION: "0.2.60", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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
206354
|
description: "Theus's agentic coding tool",
|
|
206305
206355
|
websiteUrl: PRODUCT_URL
|
|
206306
206356
|
}, {
|
|
@@ -210575,6 +210625,9 @@ var init_grove = __esm(() => {
|
|
|
210575
210625
|
if (isEssentialTrafficOnly()) {
|
|
210576
210626
|
return { success: false };
|
|
210577
210627
|
}
|
|
210628
|
+
if (!supportsUpstreamCompatibilityEndpoints()) {
|
|
210629
|
+
return { success: false };
|
|
210630
|
+
}
|
|
210578
210631
|
try {
|
|
210579
210632
|
const response = await withOAuth401Retry(() => {
|
|
210580
210633
|
const authHeaders = getAuthHeaders();
|
|
@@ -216879,7 +216932,7 @@ async function initializeBetaTracing(resource) {
|
|
|
216879
216932
|
});
|
|
216880
216933
|
logs.setGlobalLoggerProvider(loggerProvider);
|
|
216881
216934
|
setLoggerProvider(loggerProvider);
|
|
216882
|
-
const eventLogger = logs.getLogger("com.theus.theus_code.events", { VERSION: "0.2.
|
|
216935
|
+
const eventLogger = logs.getLogger("com.theus.theus_code.events", { VERSION: "0.2.60", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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
216936
|
setEventLogger(eventLogger);
|
|
216884
216937
|
process.on("beforeExit", async () => {
|
|
216885
216938
|
await loggerProvider?.forceFlush();
|
|
@@ -216919,7 +216972,7 @@ async function initializeTelemetry() {
|
|
|
216919
216972
|
const platform4 = getPlatform();
|
|
216920
216973
|
const baseAttributes = {
|
|
216921
216974
|
[ATTR_SERVICE_NAME]: "theus-code",
|
|
216922
|
-
[ATTR_SERVICE_VERSION]: { VERSION: "0.2.
|
|
216975
|
+
[ATTR_SERVICE_VERSION]: { VERSION: "0.2.60", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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
216976
|
};
|
|
216924
216977
|
if (platform4 === "wsl") {
|
|
216925
216978
|
const wslVersion = getWslVersion();
|
|
@@ -216964,7 +217017,7 @@ async function initializeTelemetry() {
|
|
|
216964
217017
|
} catch {}
|
|
216965
217018
|
};
|
|
216966
217019
|
registerCleanup(shutdownTelemetry2);
|
|
216967
|
-
return meterProvider2.getMeter("com.theus.theus_code", { VERSION: "0.2.
|
|
217020
|
+
return meterProvider2.getMeter("com.theus.theus_code", { VERSION: "0.2.60", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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
217021
|
}
|
|
216969
217022
|
const meterProvider = new MeterProvider({
|
|
216970
217023
|
resource,
|
|
@@ -216984,7 +217037,7 @@ async function initializeTelemetry() {
|
|
|
216984
217037
|
});
|
|
216985
217038
|
logs.setGlobalLoggerProvider(loggerProvider);
|
|
216986
217039
|
setLoggerProvider(loggerProvider);
|
|
216987
|
-
const eventLogger = logs.getLogger("com.theus.theus_code.events", { VERSION: "0.2.
|
|
217040
|
+
const eventLogger = logs.getLogger("com.theus.theus_code.events", { VERSION: "0.2.60", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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
217041
|
setEventLogger(eventLogger);
|
|
216989
217042
|
logForDebugging("[3P telemetry] Event logger set successfully");
|
|
216990
217043
|
process.on("beforeExit", async () => {
|
|
@@ -217046,7 +217099,7 @@ Current timeout: ${timeoutMs}ms
|
|
|
217046
217099
|
}
|
|
217047
217100
|
};
|
|
217048
217101
|
registerCleanup(shutdownTelemetry);
|
|
217049
|
-
return meterProvider.getMeter("com.theus.theus_code", { VERSION: "0.2.
|
|
217102
|
+
return meterProvider.getMeter("com.theus.theus_code", { VERSION: "0.2.60", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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
217103
|
}
|
|
217051
217104
|
async function flushTelemetry() {
|
|
217052
217105
|
const meterProvider = getMeterProvider();
|
|
@@ -217246,6 +217299,8 @@ var init_logout = __esm(() => {
|
|
|
217246
217299
|
// services/api/firstTokenDate.ts
|
|
217247
217300
|
async function fetchAndStoreTheusCodeFirstTokenDate() {
|
|
217248
217301
|
try {
|
|
217302
|
+
if (!supportsUpstreamCompatibilityEndpoints())
|
|
217303
|
+
return;
|
|
217249
217304
|
const config2 = getGlobalConfig();
|
|
217250
217305
|
if (config2.theusCodeFirstTokenDate !== undefined) {
|
|
217251
217306
|
return;
|
|
@@ -217586,7 +217641,7 @@ async function installOrUpdateTheusPackage(channel2, specificVersion) {
|
|
|
217586
217641
|
return "install_failed";
|
|
217587
217642
|
}
|
|
217588
217643
|
const versionSpec = specificVersion ? specificVersion : channel2 === "stable" ? "stable" : "latest";
|
|
217589
|
-
const result = await execFileNoThrowWithCwd("npm", ["install", `${{ VERSION: "0.2.
|
|
217644
|
+
const result = await execFileNoThrowWithCwd("npm", ["install", `${{ VERSION: "0.2.60", BUILD_TIME: "1970-01-01T00:00:00.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
217645
|
if (result.code !== 0) {
|
|
217591
217646
|
const error40 = new Error(`Failed to install Theus CLI package: ${result.stderr}`);
|
|
217592
217647
|
logError2(error40);
|
|
@@ -217732,9 +217787,9 @@ async function assertMinVersion() {
|
|
|
217732
217787
|
if (false) {}
|
|
217733
217788
|
try {
|
|
217734
217789
|
const versionConfig = await getDynamicConfig_BLOCKS_ON_INIT("tengu_version_config", { minVersion: "0.0.0" });
|
|
217735
|
-
if (versionConfig.minVersion && lt({ VERSION: "0.2.
|
|
217790
|
+
if (versionConfig.minVersion && lt({ VERSION: "0.2.60", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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
217791
|
console.error(`
|
|
217737
|
-
It looks like your version of Theus (${{ VERSION: "0.2.
|
|
217792
|
+
It looks like your version of Theus (${{ VERSION: "0.2.60", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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
217793
|
A newer version (${versionConfig.minVersion} or higher) is required to continue.
|
|
217739
217794
|
|
|
217740
217795
|
To update, please run:
|
|
@@ -217875,7 +217930,7 @@ async function getInstallationPrefix() {
|
|
|
217875
217930
|
return prefixResult.stdout.trim();
|
|
217876
217931
|
}
|
|
217877
217932
|
function getGlobalInstallPackageManager() {
|
|
217878
|
-
if ({ VERSION: "0.2.
|
|
217933
|
+
if ({ VERSION: "0.2.60", BUILD_TIME: "1970-01-01T00:00:00.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
217934
|
return "npm";
|
|
217880
217935
|
}
|
|
217881
217936
|
return env3.isRunningWithBun() ? "bun" : "npm";
|
|
@@ -217900,7 +217955,7 @@ async function checkGlobalInstallPermissions() {
|
|
|
217900
217955
|
}
|
|
217901
217956
|
async function getLatestVersion(channel2) {
|
|
217902
217957
|
const npmTag = channel2 === "stable" ? "stable" : "latest";
|
|
217903
|
-
const result = await execFileNoThrowWithCwd("npm", ["view", `${{ VERSION: "0.2.
|
|
217958
|
+
const result = await execFileNoThrowWithCwd("npm", ["view", `${{ VERSION: "0.2.60", BUILD_TIME: "1970-01-01T00:00:00.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
217959
|
if (result.code !== 0) {
|
|
217905
217960
|
logForDebugging(`npm view failed with code ${result.code}`);
|
|
217906
217961
|
if (result.stderr) {
|
|
@@ -217916,7 +217971,7 @@ async function getLatestVersion(channel2) {
|
|
|
217916
217971
|
return result.stdout.trim();
|
|
217917
217972
|
}
|
|
217918
217973
|
async function getNpmDistTags() {
|
|
217919
|
-
const result = await execFileNoThrowWithCwd("npm", ["view", { VERSION: "0.2.
|
|
217974
|
+
const result = await execFileNoThrowWithCwd("npm", ["view", { VERSION: "0.2.60", BUILD_TIME: "1970-01-01T00:00:00.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
217975
|
if (result.code !== 0) {
|
|
217921
217976
|
logForDebugging(`npm view dist-tags failed with code ${result.code}`);
|
|
217922
217977
|
return { latest: null, stable: null };
|
|
@@ -217956,7 +218011,7 @@ async function installGlobalPackage(specificVersion) {
|
|
|
217956
218011
|
logError2(new AutoUpdaterError("Another process is currently installing an update"));
|
|
217957
218012
|
logEvent("tengu_auto_updater_lock_contention", {
|
|
217958
218013
|
pid: process.pid,
|
|
217959
|
-
currentVersion: { VERSION: "0.2.
|
|
218014
|
+
currentVersion: { VERSION: "0.2.60", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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
218015
|
});
|
|
217961
218016
|
return "in_progress";
|
|
217962
218017
|
}
|
|
@@ -217965,7 +218020,7 @@ async function installGlobalPackage(specificVersion) {
|
|
|
217965
218020
|
if (!env3.isRunningWithBun() && env3.isNpmFromWindowsPath()) {
|
|
217966
218021
|
logError2(new Error("Windows NPM detected in WSL environment"));
|
|
217967
218022
|
logEvent("tengu_auto_updater_windows_npm_in_wsl", {
|
|
217968
|
-
currentVersion: { VERSION: "0.2.
|
|
218023
|
+
currentVersion: { VERSION: "0.2.60", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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
218024
|
});
|
|
217970
218025
|
console.error(`
|
|
217971
218026
|
Error: Windows NPM detected in WSL
|
|
@@ -217984,7 +218039,7 @@ To fix this issue:
|
|
|
217984
218039
|
if (!hasPermissions) {
|
|
217985
218040
|
return "no_permissions";
|
|
217986
218041
|
}
|
|
217987
|
-
const packageSpec = specificVersion ? `${{ VERSION: "0.2.
|
|
218042
|
+
const packageSpec = specificVersion ? `${{ VERSION: "0.2.60", BUILD_TIME: "1970-01-01T00:00:00.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.60", BUILD_TIME: "1970-01-01T00:00:00.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
218043
|
const packageManager = getGlobalInstallPackageManager();
|
|
217989
218044
|
const installResult = await execFileNoThrowWithCwd(packageManager, ["install", "-g", packageSpec], { cwd: homedir18() });
|
|
217990
218045
|
if (installResult.code !== 0) {
|
|
@@ -218312,8 +218367,8 @@ async function detectMultipleInstallations() {
|
|
|
218312
218367
|
installations.push({ type: "npm-local", path: localPath });
|
|
218313
218368
|
}
|
|
218314
218369
|
const packagesToCheck = ["@theus-ai/theus-code"];
|
|
218315
|
-
if ({ VERSION: "0.2.
|
|
218316
|
-
packagesToCheck.push({ VERSION: "0.2.
|
|
218370
|
+
if ({ VERSION: "0.2.60", BUILD_TIME: "1970-01-01T00:00:00.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.60", BUILD_TIME: "1970-01-01T00:00:00.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") {
|
|
218371
|
+
packagesToCheck.push({ VERSION: "0.2.60", BUILD_TIME: "1970-01-01T00:00:00.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
218372
|
}
|
|
218318
218373
|
const npmResult = await execFileNoThrow("npm", [
|
|
218319
218374
|
"-g",
|
|
@@ -218496,7 +218551,7 @@ function detectLinuxGlobPatternWarnings() {
|
|
|
218496
218551
|
}
|
|
218497
218552
|
async function getDoctorDiagnostic() {
|
|
218498
218553
|
const installationType = await getCurrentInstallationType();
|
|
218499
|
-
const version2 = { VERSION: "0.2.
|
|
218554
|
+
const version2 = { VERSION: "0.2.60", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.60", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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
218555
|
const installationPath = await getInstallationPath();
|
|
218501
218556
|
const invokedBinary = getInvokedBinary();
|
|
218502
218557
|
const multipleInstallations = await detectMultipleInstallations();
|
|
@@ -218508,8 +218563,8 @@ async function getDoctorDiagnostic() {
|
|
|
218508
218563
|
for (const install of npmInstalls) {
|
|
218509
218564
|
if (install.type === "npm-global") {
|
|
218510
218565
|
let uninstallCmd = "npm -g uninstall @theus-ai/theus-code";
|
|
218511
|
-
if ({ VERSION: "0.2.
|
|
218512
|
-
uninstallCmd += ` && npm -g uninstall ${{ VERSION: "0.2.
|
|
218566
|
+
if ({ VERSION: "0.2.60", BUILD_TIME: "1970-01-01T00:00:00.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.60", BUILD_TIME: "1970-01-01T00:00:00.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") {
|
|
218567
|
+
uninstallCmd += ` && npm -g uninstall ${{ VERSION: "0.2.60", BUILD_TIME: "1970-01-01T00:00:00.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
218568
|
}
|
|
218514
218569
|
warnings.push({
|
|
218515
218570
|
issue: `Leftover npm global installation at ${install.path}`,
|
|
@@ -218621,7 +218676,7 @@ async function getLatestVersionFromArtifactory(tag2 = "latest") {
|
|
|
218621
218676
|
const startTime2 = Date.now();
|
|
218622
218677
|
const { stdout, code, stderr } = await execFileNoThrowWithCwd("npm", [
|
|
218623
218678
|
"view",
|
|
218624
|
-
`${{ VERSION: "0.2.
|
|
218679
|
+
`${{ VERSION: "0.2.60", BUILD_TIME: "1970-01-01T00:00:00.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
218680
|
"version",
|
|
218626
218681
|
"--prefer-online",
|
|
218627
218682
|
"--registry",
|
|
@@ -218645,7 +218700,7 @@ async function getLatestVersionFromArtifactory(tag2 = "latest") {
|
|
|
218645
218700
|
latency_ms: latencyMs,
|
|
218646
218701
|
source_npm: true
|
|
218647
218702
|
});
|
|
218648
|
-
logForDebugging(`npm view ${{ VERSION: "0.2.
|
|
218703
|
+
logForDebugging(`npm view ${{ VERSION: "0.2.60", BUILD_TIME: "1970-01-01T00:00:00.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
218704
|
const latestVersion = stdout.trim();
|
|
218650
218705
|
return latestVersion;
|
|
218651
218706
|
}
|
|
@@ -218701,7 +218756,7 @@ async function downloadVersionFromArtifactory(version2, stagingPath) {
|
|
|
218701
218756
|
const fs3 = getFsImplementation();
|
|
218702
218757
|
await fs3.rm(stagingPath, { recursive: true, force: true });
|
|
218703
218758
|
const platform4 = getPlatform2();
|
|
218704
|
-
const platformPackageName = `${{ VERSION: "0.2.
|
|
218759
|
+
const platformPackageName = `${{ VERSION: "0.2.60", BUILD_TIME: "1970-01-01T00:00:00.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
218760
|
logForDebugging(`Fetching integrity hash for ${platformPackageName}@${version2}`);
|
|
218706
218761
|
const {
|
|
218707
218762
|
stdout: integrityOutput,
|
|
@@ -218730,7 +218785,7 @@ async function downloadVersionFromArtifactory(version2, stagingPath) {
|
|
|
218730
218785
|
name: "theus-native-installer",
|
|
218731
218786
|
version: "0.0.1",
|
|
218732
218787
|
dependencies: {
|
|
218733
|
-
[{ VERSION: "0.2.
|
|
218788
|
+
[{ VERSION: "0.2.60", BUILD_TIME: "1970-01-01T00:00:00.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
218789
|
}
|
|
218735
218790
|
};
|
|
218736
218791
|
const packageLock = {
|
|
@@ -218743,10 +218798,10 @@ async function downloadVersionFromArtifactory(version2, stagingPath) {
|
|
|
218743
218798
|
name: "theus-native-installer",
|
|
218744
218799
|
version: "0.0.1",
|
|
218745
218800
|
dependencies: {
|
|
218746
|
-
[{ VERSION: "0.2.
|
|
218801
|
+
[{ VERSION: "0.2.60", BUILD_TIME: "1970-01-01T00:00:00.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
218802
|
}
|
|
218748
218803
|
},
|
|
218749
|
-
[`node_modules/${{ VERSION: "0.2.
|
|
218804
|
+
[`node_modules/${{ VERSION: "0.2.60", BUILD_TIME: "1970-01-01T00:00:00.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
218805
|
version: version2,
|
|
218751
218806
|
optionalDependencies: {
|
|
218752
218807
|
[platformPackageName]: version2
|
|
@@ -218768,7 +218823,7 @@ async function downloadVersionFromArtifactory(version2, stagingPath) {
|
|
|
218768
218823
|
if (result.code !== 0) {
|
|
218769
218824
|
throw new Error(`npm ci failed with code ${result.code}: ${result.stderr}`);
|
|
218770
218825
|
}
|
|
218771
|
-
logForDebugging(`Successfully downloaded and verified ${{ VERSION: "0.2.
|
|
218826
|
+
logForDebugging(`Successfully downloaded and verified ${{ VERSION: "0.2.60", BUILD_TIME: "1970-01-01T00:00:00.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
218827
|
}
|
|
218773
218828
|
function getStallTimeoutMs() {
|
|
218774
218829
|
return Number(process.env.THEUS_CODE_STALL_TIMEOUT_MS_FOR_TESTING) || DEFAULT_STALL_TIMEOUT_MS;
|
|
@@ -219431,8 +219486,8 @@ async function updateLatest(channelOrVersion, forceReinstall = false) {
|
|
|
219431
219486
|
const maxVersion = await getMaxVersion();
|
|
219432
219487
|
if (maxVersion && gt(version2, maxVersion)) {
|
|
219433
219488
|
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.
|
|
219489
|
+
if (gte({ VERSION: "0.2.60", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
|
|
219490
|
+
logForDebugging(`Native installer: current version ${{ VERSION: "0.2.60", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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
219491
|
logEvent("tengu_native_update_skipped_max_version", {
|
|
219437
219492
|
latency_ms: Date.now() - startTime2,
|
|
219438
219493
|
max_version: maxVersion,
|
|
@@ -219443,7 +219498,7 @@ async function updateLatest(channelOrVersion, forceReinstall = false) {
|
|
|
219443
219498
|
version2 = maxVersion;
|
|
219444
219499
|
}
|
|
219445
219500
|
}
|
|
219446
|
-
if (!forceReinstall && version2 === { VERSION: "0.2.
|
|
219501
|
+
if (!forceReinstall && version2 === { VERSION: "0.2.60", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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
219502
|
logForDebugging(`Found ${version2} at ${executablePath}, skipping install`);
|
|
219448
219503
|
logEvent("tengu_native_update_complete", {
|
|
219449
219504
|
latency_ms: Date.now() - startTime2,
|
|
@@ -220193,8 +220248,8 @@ async function cleanupNpmInstallations() {
|
|
|
220193
220248
|
} else if (codePackageResult.error) {
|
|
220194
220249
|
errors4.push(codePackageResult.error);
|
|
220195
220250
|
}
|
|
220196
|
-
if ({ VERSION: "0.2.
|
|
220197
|
-
const macroPackageResult = await attemptNpmUninstall({ VERSION: "0.2.
|
|
220251
|
+
if ({ VERSION: "0.2.60", BUILD_TIME: "1970-01-01T00:00:00.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.60", BUILD_TIME: "1970-01-01T00:00:00.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") {
|
|
220252
|
+
const macroPackageResult = await attemptNpmUninstall({ VERSION: "0.2.60", BUILD_TIME: "1970-01-01T00:00:00.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
220253
|
if (macroPackageResult.success) {
|
|
220199
220254
|
removed++;
|
|
220200
220255
|
if (macroPackageResult.warning) {
|
|
@@ -230683,6 +230738,17 @@ var init_ConsoleOAuthFlow = __esm(() => {
|
|
|
230683
230738
|
var NOVEDADES;
|
|
230684
230739
|
var init_data = __esm(() => {
|
|
230685
230740
|
NOVEDADES = [
|
|
230741
|
+
{
|
|
230742
|
+
version: "v0.2.60",
|
|
230743
|
+
fecha: "2026-07-26",
|
|
230744
|
+
titulo: "Los cortes de red ya no dejan respuestas a medias",
|
|
230745
|
+
puntos: [
|
|
230746
|
+
"Si un proveedor cerraba una respuesta en streaming sin terminarla, Theus pod\xEDa aceptar ese texto incompleto como definitivo. Ahora detecta el corte, descarta el fragmento y contin\xFAa con el siguiente proveedor disponible.",
|
|
230747
|
+
"El inicio de sesi\xF3n ya tiene un tiempo l\xEDmite real durante todo el intercambio: si el servidor deja de responder, se cancela la conexi\xF3n y la terminal vuelve a quedar disponible. La p\xE1gina de confirmaci\xF3n s\xED termina de cargarse cuando el acceso sale bien.",
|
|
230748
|
+
"Un refresh token revocado o vencido ya no provoca un 401 en cada arranque. Theus retira solo esa sesi\xF3n inv\xE1lida, conserva tus proveedores y llaves propias, y te permite volver a entrar limpiamente.",
|
|
230749
|
+
"El arranque deja de consultar rutas heredadas que theus.pe no ofrece. Tambi\xE9n se reforz\xF3 el actualizador del motor: si ignora el cierre normal, Theus lo detiene y ejecuta la recuperaci\xF3n del binario."
|
|
230750
|
+
]
|
|
230751
|
+
},
|
|
230686
230752
|
{
|
|
230687
230753
|
version: "v0.2.59",
|
|
230688
230754
|
fecha: "2026-07-26",
|
|
@@ -305723,9 +305789,9 @@ function getTheusEnvMetadata() {
|
|
|
305723
305789
|
};
|
|
305724
305790
|
}
|
|
305725
305791
|
function getBuildAgeMinutes() {
|
|
305726
|
-
if (!{ VERSION: "0.2.
|
|
305792
|
+
if (!{ VERSION: "0.2.60", BUILD_TIME: "1970-01-01T00:00:00.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)
|
|
305727
305793
|
return;
|
|
305728
|
-
const buildTime = new Date({ VERSION: "0.2.
|
|
305794
|
+
const buildTime = new Date({ VERSION: "0.2.60", BUILD_TIME: "1970-01-01T00:00:00.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();
|
|
305729
305795
|
if (isNaN(buildTime))
|
|
305730
305796
|
return;
|
|
305731
305797
|
return Math.floor((Date.now() - buildTime) / 60000);
|
|
@@ -322380,7 +322446,7 @@ function getAssistantMessageFromError(error40, model, options2) {
|
|
|
322380
322446
|
if (process.env.USER_TYPE === "ant") {
|
|
322381
322447
|
const baseMessage = `API Error: 400 ${error40.message}
|
|
322382
322448
|
|
|
322383
|
-
Run /share and post the JSON file to ${{ VERSION: "0.2.
|
|
322449
|
+
Run /share and post the JSON file to ${{ VERSION: "0.2.60", BUILD_TIME: "1970-01-01T00:00:00.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}.`;
|
|
322384
322450
|
const rewindInstruction = getIsNonInteractiveSession() ? "" : " Then, use /rewind to recover the conversation.";
|
|
322385
322451
|
return createAssistantAPIErrorMessage({
|
|
322386
322452
|
content: baseMessage + rewindInstruction,
|
|
@@ -322416,7 +322482,7 @@ Run /share and post the JSON file to ${{ VERSION: "0.2.59", BUILD_TIME: "1970-01
|
|
|
322416
322482
|
if (process.env.USER_TYPE === "ant" && !process.env.THEUS_MODEL && error40 instanceof Error && error40.message.toLowerCase().includes("invalid model name")) {
|
|
322417
322483
|
const orgId = getOauthAccountInfo()?.organizationUuid;
|
|
322418
322484
|
const baseMsg = `[THEUS-INTERNAL] Your org isn't gated into the \`${model}\` model. Either run \`theus\` with \`THEUS_MODEL=${getDefaultMainLoopModelSetting()}\``;
|
|
322419
|
-
const msg = orgId ? `${baseMsg} or share your orgId (${orgId}) in ${{ VERSION: "0.2.
|
|
322485
|
+
const msg = orgId ? `${baseMsg} or share your orgId (${orgId}) in ${{ VERSION: "0.2.60", BUILD_TIME: "1970-01-01T00:00:00.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.60", BUILD_TIME: "1970-01-01T00:00:00.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.`;
|
|
322420
322486
|
return createAssistantAPIErrorMessage({
|
|
322421
322487
|
content: msg,
|
|
322422
322488
|
error: "invalid_request"
|
|
@@ -330340,7 +330406,7 @@ async function submitTranscriptShare(messages, trigger, appearanceId) {
|
|
|
330340
330406
|
} catch {}
|
|
330341
330407
|
const data = {
|
|
330342
330408
|
trigger,
|
|
330343
|
-
version: { VERSION: "0.2.
|
|
330409
|
+
version: { VERSION: "0.2.60", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
|
|
330344
330410
|
platform: process.platform,
|
|
330345
330411
|
transcript,
|
|
330346
330412
|
subagentTranscripts: Object.keys(subagentTranscripts).length > 0 ? subagentTranscripts : undefined,
|
|
@@ -330545,10 +330611,10 @@ Si el usuario indic\xF3 una duraci\xF3n, p\xE1sala en el par\xE1metro \`duration
|
|
|
330545
330611
|
|
|
330546
330612
|
// commands/issue/index.ts
|
|
330547
330613
|
function getCliVersion() {
|
|
330548
|
-
return { VERSION: "0.2.
|
|
330614
|
+
return { VERSION: "0.2.60", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.60", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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";
|
|
330549
330615
|
}
|
|
330550
330616
|
function getIssuesExplainer() {
|
|
330551
|
-
return { VERSION: "0.2.
|
|
330617
|
+
return { VERSION: "0.2.60", BUILD_TIME: "1970-01-01T00:00:00.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.60", BUILD_TIME: "1970-01-01T00:00:00.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";
|
|
330552
330618
|
}
|
|
330553
330619
|
function getActiveModelLabel() {
|
|
330554
330620
|
try {
|
|
@@ -333381,7 +333447,7 @@ function buildPrimarySection() {
|
|
|
333381
333447
|
});
|
|
333382
333448
|
return [{
|
|
333383
333449
|
label: "Version",
|
|
333384
|
-
value: { VERSION: "0.2.
|
|
333450
|
+
value: { VERSION: "0.2.60", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
|
|
333385
333451
|
}, {
|
|
333386
333452
|
label: "Session name",
|
|
333387
333453
|
value: nameValue
|
|
@@ -337197,7 +337263,7 @@ function Config({
|
|
|
337197
337263
|
}
|
|
337198
337264
|
})
|
|
337199
337265
|
}) : showSubmenu === "ChannelDowngrade" ? /* @__PURE__ */ jsx_runtime189.jsx(ChannelDowngradeDialog, {
|
|
337200
|
-
currentVersion: { VERSION: "0.2.
|
|
337266
|
+
currentVersion: { VERSION: "0.2.60", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
|
|
337201
337267
|
onChoice: (choice) => {
|
|
337202
337268
|
setShowSubmenu(null);
|
|
337203
337269
|
setTabsHidden(false);
|
|
@@ -337209,7 +337275,7 @@ function Config({
|
|
|
337209
337275
|
autoUpdatesChannel: "stable"
|
|
337210
337276
|
};
|
|
337211
337277
|
if (choice === "stay") {
|
|
337212
|
-
newSettings.minimumVersion = { VERSION: "0.2.
|
|
337278
|
+
newSettings.minimumVersion = { VERSION: "0.2.60", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION;
|
|
337213
337279
|
}
|
|
337214
337280
|
updateSettingsForSource("userSettings", newSettings);
|
|
337215
337281
|
setSettingsData((prev_27) => ({
|
|
@@ -345454,7 +345520,7 @@ function HelpV2(t0) {
|
|
|
345454
345520
|
let t6;
|
|
345455
345521
|
if ($2[31] !== tabs) {
|
|
345456
345522
|
t6 = /* @__PURE__ */ jsx_runtime217.jsx(Tabs, {
|
|
345457
|
-
title: `Theus v${{ VERSION: "0.2.
|
|
345523
|
+
title: `Theus v${{ VERSION: "0.2.60", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION}`,
|
|
345458
345524
|
color: "professionalBlue",
|
|
345459
345525
|
defaultTab: "general",
|
|
345460
345526
|
children: tabs
|
|
@@ -347291,7 +347357,8 @@ async function exchangeCodeForTheusSession({
|
|
|
347291
347357
|
code,
|
|
347292
347358
|
redirectUri,
|
|
347293
347359
|
state,
|
|
347294
|
-
codeVerifier
|
|
347360
|
+
codeVerifier,
|
|
347361
|
+
signal
|
|
347295
347362
|
}) {
|
|
347296
347363
|
const tokenResponse = await postJson(`${webUrl}/v1/oauth/token`, {
|
|
347297
347364
|
grant_type: "authorization_code",
|
|
@@ -347300,19 +347367,19 @@ async function exchangeCodeForTheusSession({
|
|
|
347300
347367
|
client_id: CLIENT_ID,
|
|
347301
347368
|
code_verifier: codeVerifier,
|
|
347302
347369
|
state
|
|
347303
|
-
});
|
|
347370
|
+
}, undefined, signal);
|
|
347304
347371
|
const accessToken = stringField(tokenResponse, "access_token");
|
|
347305
347372
|
if (!accessToken)
|
|
347306
347373
|
throw new Error("Theus no devolvio access_token OAuth.");
|
|
347307
347374
|
let profile = {};
|
|
347308
347375
|
try {
|
|
347309
|
-
profile = await getJson(`${webUrl}/api/oauth/profile`, accessToken);
|
|
347376
|
+
profile = await getJson(`${webUrl}/api/oauth/profile`, accessToken, signal);
|
|
347310
347377
|
} catch {
|
|
347311
347378
|
profile = {};
|
|
347312
347379
|
}
|
|
347313
347380
|
const account = objectField(profile, "account");
|
|
347314
347381
|
const organization = objectField(profile, "organization");
|
|
347315
|
-
const apiKey = await postJson(`${webUrl}/api/oauth/theus_cli/create_api_key`, { label: "Theus CLI" }, accessToken);
|
|
347382
|
+
const apiKey = await postJson(`${webUrl}/api/oauth/theus_cli/create_api_key`, { label: "Theus CLI" }, accessToken, signal);
|
|
347316
347383
|
const rawKey = stringField(apiKey, "raw_key");
|
|
347317
347384
|
if (!rawKey)
|
|
347318
347385
|
throw new Error("Theus no devolvio API key para el CLI.");
|
|
@@ -347371,20 +347438,22 @@ function planLabelFromProfile(profile) {
|
|
|
347371
347438
|
return profile?.billingType ? "pro" : "free";
|
|
347372
347439
|
}
|
|
347373
347440
|
}
|
|
347374
|
-
async function postJson(url3, body, bearerToken) {
|
|
347441
|
+
async function postJson(url3, body, bearerToken, signal) {
|
|
347375
347442
|
const response = await fetchOrExplain(url3, {
|
|
347376
347443
|
method: "POST",
|
|
347377
347444
|
headers: {
|
|
347378
347445
|
"content-type": "application/json",
|
|
347379
347446
|
...bearerToken ? { authorization: `Bearer ${bearerToken}` } : {}
|
|
347380
347447
|
},
|
|
347381
|
-
body: JSON.stringify(body)
|
|
347448
|
+
body: JSON.stringify(body),
|
|
347449
|
+
signal
|
|
347382
347450
|
});
|
|
347383
347451
|
return readJsonResponse(response);
|
|
347384
347452
|
}
|
|
347385
|
-
async function getJson(url3, bearerToken) {
|
|
347453
|
+
async function getJson(url3, bearerToken, signal) {
|
|
347386
347454
|
const response = await fetchOrExplain(url3, {
|
|
347387
|
-
headers: { authorization: `Bearer ${bearerToken}` }
|
|
347455
|
+
headers: { authorization: `Bearer ${bearerToken}` },
|
|
347456
|
+
signal
|
|
347388
347457
|
});
|
|
347389
347458
|
return readJsonResponse(response);
|
|
347390
347459
|
}
|
|
@@ -347460,6 +347529,7 @@ async function runTheusWebLogin(options2 = {}) {
|
|
|
347460
347529
|
return await new Promise((resolvePromise) => {
|
|
347461
347530
|
let settled = false;
|
|
347462
347531
|
let redirectUri = "";
|
|
347532
|
+
const exchangeAbort = new AbortController;
|
|
347463
347533
|
const server2 = createServer7((req, res) => {
|
|
347464
347534
|
const url3 = new URL(req.url ?? "/", "http://127.0.0.1");
|
|
347465
347535
|
if (url3.pathname !== "/auth/callback" && url3.pathname !== "/callback") {
|
|
@@ -347480,7 +347550,8 @@ async function runTheusWebLogin(options2 = {}) {
|
|
|
347480
347550
|
code,
|
|
347481
347551
|
redirectUri,
|
|
347482
347552
|
state,
|
|
347483
|
-
codeVerifier
|
|
347553
|
+
codeVerifier,
|
|
347554
|
+
signal: exchangeAbort.signal
|
|
347484
347555
|
}).then((payload) => installTheusSession(payload, webUrl).then(() => payload)).then((payload) => {
|
|
347485
347556
|
const plan = planLabelFromProfile(payload.profile);
|
|
347486
347557
|
sendHtml2(res, callbackHtml(`Sesion instalada para ${payload.email} (plan ${plan}).`, true));
|
|
@@ -347504,20 +347575,27 @@ async function runTheusWebLogin(options2 = {}) {
|
|
|
347504
347575
|
});
|
|
347505
347576
|
});
|
|
347506
347577
|
const timer = setTimeout(() => {
|
|
347578
|
+
exchangeAbort.abort(new Error("login_timeout"));
|
|
347507
347579
|
finish({
|
|
347508
347580
|
success: false,
|
|
347509
347581
|
message: "Login cancelado por tiempo. Vuelve a ejecutar `theus login` cuando estes listo.",
|
|
347510
347582
|
webUrl,
|
|
347511
347583
|
loginUrl
|
|
347512
|
-
});
|
|
347584
|
+
}, true);
|
|
347513
347585
|
}, timeoutMs);
|
|
347514
347586
|
let loginUrl = "";
|
|
347515
|
-
function finish(result) {
|
|
347587
|
+
function finish(result, forceClose = false) {
|
|
347516
347588
|
if (settled)
|
|
347517
347589
|
return;
|
|
347518
347590
|
settled = true;
|
|
347519
347591
|
clearTimeout(timer);
|
|
347520
|
-
|
|
347592
|
+
exchangeAbort.abort();
|
|
347593
|
+
if (server2.listening) {
|
|
347594
|
+
server2.close();
|
|
347595
|
+
if (forceClose)
|
|
347596
|
+
server2.closeAllConnections?.();
|
|
347597
|
+
}
|
|
347598
|
+
resolvePromise(result);
|
|
347521
347599
|
}
|
|
347522
347600
|
server2.once("error", (error40) => {
|
|
347523
347601
|
finish({
|
|
@@ -363706,7 +363784,7 @@ function Onboarding({
|
|
|
363706
363784
|
flexDirection: "column",
|
|
363707
363785
|
children: [
|
|
363708
363786
|
/* @__PURE__ */ jsx_runtime250.jsx(TheusBanner, {
|
|
363709
|
-
version: { VERSION: "0.2.
|
|
363787
|
+
version: { VERSION: "0.2.60", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
|
|
363710
363788
|
}),
|
|
363711
363789
|
/* @__PURE__ */ jsx_runtime250.jsxs(ThemedBox_default, {
|
|
363712
363790
|
flexDirection: "column",
|
|
@@ -365126,9 +365204,9 @@ function getAllReleaseNotes(changelogContent = getStoredChangelogFromMemory()) {
|
|
|
365126
365204
|
return [];
|
|
365127
365205
|
}
|
|
365128
365206
|
}
|
|
365129
|
-
async function checkForReleaseNotes(lastSeenVersion, currentVersion = { VERSION: "0.2.
|
|
365207
|
+
async function checkForReleaseNotes(lastSeenVersion, currentVersion = { VERSION: "0.2.60", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION) {
|
|
365130
365208
|
if (process.env.USER_TYPE === "ant") {
|
|
365131
|
-
const changelog = { VERSION: "0.2.
|
|
365209
|
+
const changelog = { VERSION: "0.2.60", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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;
|
|
365132
365210
|
if (changelog) {
|
|
365133
365211
|
const commits = changelog.trim().split(`
|
|
365134
365212
|
`).filter(Boolean);
|
|
@@ -369330,7 +369408,7 @@ var init_Messages = __esm(() => {
|
|
|
369330
369408
|
let t1;
|
|
369331
369409
|
if ($2[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
369332
369410
|
t1 = /* @__PURE__ */ jsx_runtime263.jsx(TheusSessionHeader, {
|
|
369333
|
-
version: { VERSION: "0.2.
|
|
369411
|
+
version: { VERSION: "0.2.60", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
|
|
369334
369412
|
});
|
|
369335
369413
|
$2[0] = t1;
|
|
369336
369414
|
} else {
|
|
@@ -398154,7 +398232,7 @@ async function captureMemoryDiagnostics(trigger, dumpNumber = 0) {
|
|
|
398154
398232
|
smapsRollup,
|
|
398155
398233
|
platform: process.platform,
|
|
398156
398234
|
nodeVersion: process.version,
|
|
398157
|
-
ccVersion: { VERSION: "0.2.
|
|
398235
|
+
ccVersion: { VERSION: "0.2.60", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
|
|
398158
398236
|
};
|
|
398159
398237
|
}
|
|
398160
398238
|
async function performHeapDump(trigger = "manual", dumpNumber = 0) {
|
|
@@ -398973,7 +399051,7 @@ var init_bridge_kick = __esm(() => {
|
|
|
398973
399051
|
var call65 = async () => {
|
|
398974
399052
|
return {
|
|
398975
399053
|
type: "text",
|
|
398976
|
-
value: { VERSION: "0.2.
|
|
399054
|
+
value: { VERSION: "0.2.60", BUILD_TIME: "1970-01-01T00:00:00.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.60", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.60", BUILD_TIME: "1970-01-01T00:00:00.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.60", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
|
|
398977
399055
|
};
|
|
398978
399056
|
}, version2, version_default;
|
|
398979
399057
|
var init_version = __esm(() => {
|
|
@@ -401574,7 +401652,7 @@ var SECRET_NAME_PATTERN, EXTRA_ENV_ALLOWLIST, REDACTED2 = "\u2039oculto\u203A",
|
|
|
401574
401652
|
const lines = [];
|
|
401575
401653
|
lines.push("## Entorno de ejecuci\xF3n");
|
|
401576
401654
|
lines.push("");
|
|
401577
|
-
const version3 = { VERSION: "0.2.
|
|
401655
|
+
const version3 = { VERSION: "0.2.60", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.60", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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";
|
|
401578
401656
|
lines.push(`- Versi\xF3n de Theus: ${version3}`);
|
|
401579
401657
|
lines.push(`- Directorio de trabajo: ${getCwd()}`);
|
|
401580
401658
|
lines.push(`- \xBFRepositorio git?: ${isGit ? "s\xED" : "no"}`);
|
|
@@ -403929,7 +404007,9 @@ var init_remote_env2 = __esm(() => {
|
|
|
403929
404007
|
// cli/update.ts
|
|
403930
404008
|
var exports_update = {};
|
|
403931
404009
|
__export(exports_update, {
|
|
403932
|
-
update: () => update
|
|
404010
|
+
update: () => update,
|
|
404011
|
+
rescatarNaupaMalUbicado: () => rescatarNaupaMalUbicado,
|
|
404012
|
+
rescatarNaupaBorrado: () => rescatarNaupaBorrado
|
|
403933
404013
|
});
|
|
403934
404014
|
import { spawn as spawn9, spawnSync as spawnSync8 } from "child_process";
|
|
403935
404015
|
import { createHash as createHash28 } from "crypto";
|
|
@@ -403971,12 +404051,14 @@ function rescatarNaupaBorrado(binEnUso) {
|
|
|
403971
404051
|
logEvent("tengu_naupa_binario_restaurado", { ruta: "old" });
|
|
403972
404052
|
} catch {}
|
|
403973
404053
|
}
|
|
403974
|
-
function rescatarNaupaMalUbicado(binEnUso) {
|
|
404054
|
+
function rescatarNaupaMalUbicado(binEnUso, options2 = {}) {
|
|
403975
404055
|
try {
|
|
403976
|
-
const home = process.env.HOME ?? process.env.USERPROFILE;
|
|
404056
|
+
const home = options2.home ?? process.env.HOME ?? process.env.USERPROFILE;
|
|
403977
404057
|
if (!home)
|
|
403978
404058
|
return;
|
|
403979
|
-
const
|
|
404059
|
+
const platform6 = options2.platform ?? process.platform;
|
|
404060
|
+
const versionOf = options2.versionOf ?? naupaVersionOf;
|
|
404061
|
+
const nombre = platform6 === "win32" ? "naupa.exe" : "naupa";
|
|
403980
404062
|
const rutaFija = join143(home, ".local", "bin", nombre);
|
|
403981
404063
|
if (!existsSync18(rutaFija))
|
|
403982
404064
|
return;
|
|
@@ -403984,8 +404066,8 @@ function rescatarNaupaMalUbicado(binEnUso) {
|
|
|
403984
404066
|
if (realpathSync4(rutaFija) === realpathSync4(binEnUso))
|
|
403985
404067
|
return;
|
|
403986
404068
|
} catch {}
|
|
403987
|
-
const vUso =
|
|
403988
|
-
const vFija =
|
|
404069
|
+
const vUso = versionOf(binEnUso);
|
|
404070
|
+
const vFija = versionOf(rutaFija);
|
|
403989
404071
|
if (!vUso || !vFija || vUso === vFija)
|
|
403990
404072
|
return;
|
|
403991
404073
|
if (!gte(vFija, vUso))
|
|
@@ -404014,36 +404096,46 @@ async function updateNaupa() {
|
|
|
404014
404096
|
`);
|
|
404015
404097
|
await new Promise((resolve45) => {
|
|
404016
404098
|
let settled = false;
|
|
404017
|
-
|
|
404099
|
+
let timer;
|
|
404100
|
+
let forceKillTimer;
|
|
404101
|
+
const done = (repair) => {
|
|
404018
404102
|
if (settled)
|
|
404019
404103
|
return;
|
|
404020
404104
|
settled = true;
|
|
404105
|
+
if (timer)
|
|
404106
|
+
clearTimeout(timer);
|
|
404107
|
+
if (forceKillTimer)
|
|
404108
|
+
clearTimeout(forceKillTimer);
|
|
404109
|
+
if (repair) {
|
|
404110
|
+
rescatarNaupaBorrado(bin);
|
|
404111
|
+
rescatarNaupaMalUbicado(bin);
|
|
404112
|
+
}
|
|
404021
404113
|
resolve45();
|
|
404022
404114
|
};
|
|
404023
404115
|
const child = spawn9(bin, ["update", "-y", "--ui"], {
|
|
404024
404116
|
stdio: ["ignore", "inherit", "inherit"],
|
|
404025
404117
|
env: process.env
|
|
404026
404118
|
});
|
|
404027
|
-
|
|
404119
|
+
timer = setTimeout(() => {
|
|
404028
404120
|
child.kill("SIGTERM");
|
|
404029
404121
|
writeToStdout(source_default.yellow("Aviso: la actualizaci\xF3n de \xD1aupa excedi\xF3 el tiempo l\xEDmite. " + "Puedes reintentar a mano: naupa update --ui") + `
|
|
404030
404122
|
`);
|
|
404123
|
+
forceKillTimer = setTimeout(() => {
|
|
404124
|
+
child.kill("SIGKILL");
|
|
404125
|
+
done(true);
|
|
404126
|
+
}, 5000);
|
|
404031
404127
|
}, 180000);
|
|
404032
404128
|
child.on("error", () => {
|
|
404033
|
-
clearTimeout(timer);
|
|
404034
404129
|
writeToStdout(source_default.yellow("Aviso: no se pudo ejecutar la actualizaci\xF3n de \xD1aupa. " + "Puedes hacerlo a mano: naupa update --ui") + `
|
|
404035
404130
|
`);
|
|
404036
|
-
done();
|
|
404131
|
+
done(false);
|
|
404037
404132
|
});
|
|
404038
404133
|
child.on("close", (code) => {
|
|
404039
|
-
clearTimeout(timer);
|
|
404040
404134
|
if (code !== 0 && code !== null) {
|
|
404041
404135
|
writeToStdout(source_default.yellow(`Aviso: \xD1aupa update termin\xF3 con c\xF3digo ${code}. ` + "Puedes reintentar a mano: naupa update --ui") + `
|
|
404042
404136
|
`);
|
|
404043
404137
|
}
|
|
404044
|
-
|
|
404045
|
-
rescatarNaupaMalUbicado(bin);
|
|
404046
|
-
done();
|
|
404138
|
+
done(true);
|
|
404047
404139
|
});
|
|
404048
404140
|
});
|
|
404049
404141
|
}
|
|
@@ -404101,13 +404193,13 @@ async function updateReleaseBundle() {
|
|
|
404101
404193
|
await gracefulShutdown(1);
|
|
404102
404194
|
return;
|
|
404103
404195
|
}
|
|
404104
|
-
if (gte({ VERSION: "0.2.
|
|
404105
|
-
writeToStdout(source_default.green(`Theus is up to date (${{ VERSION: "0.2.
|
|
404196
|
+
if (gte({ VERSION: "0.2.60", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
|
|
404197
|
+
writeToStdout(source_default.green(`Theus is up to date (${{ VERSION: "0.2.60", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION})`) + `
|
|
404106
404198
|
`);
|
|
404107
404199
|
await gracefulShutdown(0);
|
|
404108
404200
|
return;
|
|
404109
404201
|
}
|
|
404110
|
-
writeToStdout(`New version available: ${latest} (current: ${{ VERSION: "0.2.
|
|
404202
|
+
writeToStdout(`New version available: ${latest} (current: ${{ VERSION: "0.2.60", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION})
|
|
404111
404203
|
`);
|
|
404112
404204
|
writeToStdout(`Installing update from theus.pe/dl...
|
|
404113
404205
|
`);
|
|
@@ -404141,7 +404233,7 @@ async function updateReleaseBundle() {
|
|
|
404141
404233
|
return;
|
|
404142
404234
|
}
|
|
404143
404235
|
cpSync(staged, bundleDir, { recursive: true, force: true });
|
|
404144
|
-
writeToStdout(source_default.green(`Successfully updated from ${{ VERSION: "0.2.
|
|
404236
|
+
writeToStdout(source_default.green(`Successfully updated from ${{ VERSION: "0.2.60", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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}`) + `
|
|
404145
404237
|
`);
|
|
404146
404238
|
await regenerateCompletionCache();
|
|
404147
404239
|
} finally {
|
|
@@ -404154,7 +404246,7 @@ async function updateReleaseBundle() {
|
|
|
404154
404246
|
async function update() {
|
|
404155
404247
|
logEvent("tengu_update_check", {});
|
|
404156
404248
|
await updateNaupa();
|
|
404157
|
-
writeToStdout(`Current version: ${{ VERSION: "0.2.
|
|
404249
|
+
writeToStdout(`Current version: ${{ VERSION: "0.2.60", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION}
|
|
404158
404250
|
`);
|
|
404159
404251
|
const channel2 = getInitialSettings()?.autoUpdatesChannel ?? "latest";
|
|
404160
404252
|
writeToStdout(`Checking for updates to ${channel2} version...
|
|
@@ -404233,8 +404325,8 @@ async function update() {
|
|
|
404233
404325
|
writeToStdout(`Theus is managed by Homebrew.
|
|
404234
404326
|
`);
|
|
404235
404327
|
const latest = await getLatestVersion(channel2);
|
|
404236
|
-
if (latest && !gte({ VERSION: "0.2.
|
|
404237
|
-
writeToStdout(`Update available: ${{ VERSION: "0.2.
|
|
404328
|
+
if (latest && !gte({ VERSION: "0.2.60", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
|
|
404329
|
+
writeToStdout(`Update available: ${{ VERSION: "0.2.60", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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}
|
|
404238
404330
|
`);
|
|
404239
404331
|
writeToStdout(`
|
|
404240
404332
|
`);
|
|
@@ -404250,8 +404342,8 @@ async function update() {
|
|
|
404250
404342
|
writeToStdout(`Theus is managed by winget.
|
|
404251
404343
|
`);
|
|
404252
404344
|
const latest = await getLatestVersion(channel2);
|
|
404253
|
-
if (latest && !gte({ VERSION: "0.2.
|
|
404254
|
-
writeToStdout(`Update available: ${{ VERSION: "0.2.
|
|
404345
|
+
if (latest && !gte({ VERSION: "0.2.60", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
|
|
404346
|
+
writeToStdout(`Update available: ${{ VERSION: "0.2.60", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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}
|
|
404255
404347
|
`);
|
|
404256
404348
|
writeToStdout(`
|
|
404257
404349
|
`);
|
|
@@ -404267,8 +404359,8 @@ async function update() {
|
|
|
404267
404359
|
writeToStdout(`Theus is managed by apk.
|
|
404268
404360
|
`);
|
|
404269
404361
|
const latest = await getLatestVersion(channel2);
|
|
404270
|
-
if (latest && !gte({ VERSION: "0.2.
|
|
404271
|
-
writeToStdout(`Update available: ${{ VERSION: "0.2.
|
|
404362
|
+
if (latest && !gte({ VERSION: "0.2.60", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
|
|
404363
|
+
writeToStdout(`Update available: ${{ VERSION: "0.2.60", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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}
|
|
404272
404364
|
`);
|
|
404273
404365
|
writeToStdout(`
|
|
404274
404366
|
`);
|
|
@@ -404333,11 +404425,11 @@ async function update() {
|
|
|
404333
404425
|
`);
|
|
404334
404426
|
await gracefulShutdown(1);
|
|
404335
404427
|
}
|
|
404336
|
-
if (result.latestVersion === { VERSION: "0.2.
|
|
404337
|
-
writeToStdout(source_default.green(`Theus is up to date (${{ VERSION: "0.2.
|
|
404428
|
+
if (result.latestVersion === { VERSION: "0.2.60", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION) {
|
|
404429
|
+
writeToStdout(source_default.green(`Theus is up to date (${{ VERSION: "0.2.60", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION})`) + `
|
|
404338
404430
|
`);
|
|
404339
404431
|
} else {
|
|
404340
|
-
writeToStdout(source_default.green(`Successfully updated from ${{ VERSION: "0.2.
|
|
404432
|
+
writeToStdout(source_default.green(`Successfully updated from ${{ VERSION: "0.2.60", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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}`) + `
|
|
404341
404433
|
`);
|
|
404342
404434
|
await regenerateCompletionCache();
|
|
404343
404435
|
}
|
|
@@ -404356,9 +404448,9 @@ async function update() {
|
|
|
404356
404448
|
await removeInstalledSymlink();
|
|
404357
404449
|
}
|
|
404358
404450
|
logForDebugging("update: Checking npm registry for latest version");
|
|
404359
|
-
logForDebugging(`update: Package URL: ${{ VERSION: "0.2.
|
|
404451
|
+
logForDebugging(`update: Package URL: ${{ VERSION: "0.2.60", BUILD_TIME: "1970-01-01T00:00:00.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}`);
|
|
404360
404452
|
const npmTag = channel2 === "stable" ? "stable" : "latest";
|
|
404361
|
-
const npmCommand = `npm view ${{ VERSION: "0.2.
|
|
404453
|
+
const npmCommand = `npm view ${{ VERSION: "0.2.60", BUILD_TIME: "1970-01-01T00:00:00.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`;
|
|
404362
404454
|
logForDebugging(`update: Running: ${npmCommand}`);
|
|
404363
404455
|
const latestVersion = await getLatestVersion(channel2);
|
|
404364
404456
|
logForDebugging(`update: Latest version from npm: ${latestVersion || "FAILED"}`);
|
|
@@ -404378,7 +404470,7 @@ async function update() {
|
|
|
404378
404470
|
`);
|
|
404379
404471
|
process.stderr.write(` \u2022 Corporate proxy/firewall blocking npm
|
|
404380
404472
|
`);
|
|
404381
|
-
if ({ VERSION: "0.2.
|
|
404473
|
+
if ({ VERSION: "0.2.60", BUILD_TIME: "1970-01-01T00:00:00.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.60", BUILD_TIME: "1970-01-01T00:00:00.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")) {
|
|
404382
404474
|
process.stderr.write(` \u2022 Internal/development build not published to npm
|
|
404383
404475
|
`);
|
|
404384
404476
|
}
|
|
@@ -404390,19 +404482,19 @@ async function update() {
|
|
|
404390
404482
|
`);
|
|
404391
404483
|
process.stderr.write(` \u2022 Run with --debug flag for more details
|
|
404392
404484
|
`);
|
|
404393
|
-
const packageName = { VERSION: "0.2.
|
|
404485
|
+
const packageName = { VERSION: "0.2.60", BUILD_TIME: "1970-01-01T00:00:00.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");
|
|
404394
404486
|
process.stderr.write(` \u2022 Manually check: npm view ${packageName} version
|
|
404395
404487
|
`);
|
|
404396
404488
|
process.stderr.write(` \u2022 Check if you need to login: npm whoami
|
|
404397
404489
|
`);
|
|
404398
404490
|
await gracefulShutdown(1);
|
|
404399
404491
|
}
|
|
404400
|
-
if (gte({ VERSION: "0.2.
|
|
404401
|
-
writeToStdout(source_default.green(`Theus is up to date (${{ VERSION: "0.2.
|
|
404492
|
+
if (gte({ VERSION: "0.2.60", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
|
|
404493
|
+
writeToStdout(source_default.green(`Theus is up to date (${{ VERSION: "0.2.60", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION})`) + `
|
|
404402
404494
|
`);
|
|
404403
404495
|
await gracefulShutdown(0);
|
|
404404
404496
|
}
|
|
404405
|
-
writeToStdout(`New version available: ${latestVersion} (current: ${{ VERSION: "0.2.
|
|
404497
|
+
writeToStdout(`New version available: ${latestVersion} (current: ${{ VERSION: "0.2.60", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION})
|
|
404406
404498
|
`);
|
|
404407
404499
|
writeToStdout(`Installing update...
|
|
404408
404500
|
`);
|
|
@@ -404447,7 +404539,7 @@ async function update() {
|
|
|
404447
404539
|
logForDebugging(`update: Installation status: ${status2}`);
|
|
404448
404540
|
switch (status2) {
|
|
404449
404541
|
case "success":
|
|
404450
|
-
writeToStdout(source_default.green(`Successfully updated from ${{ VERSION: "0.2.
|
|
404542
|
+
writeToStdout(source_default.green(`Successfully updated from ${{ VERSION: "0.2.60", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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}`) + `
|
|
404451
404543
|
`);
|
|
404452
404544
|
await regenerateCompletionCache();
|
|
404453
404545
|
break;
|
|
@@ -404457,7 +404549,7 @@ async function update() {
|
|
|
404457
404549
|
if (useLocalUpdate) {
|
|
404458
404550
|
process.stderr.write(`Try manually updating with:
|
|
404459
404551
|
`);
|
|
404460
|
-
process.stderr.write(` cd ~/.theus/local && npm update ${{ VERSION: "0.2.
|
|
404552
|
+
process.stderr.write(` cd ~/.theus/local && npm update ${{ VERSION: "0.2.60", BUILD_TIME: "1970-01-01T00:00:00.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}
|
|
404461
404553
|
`);
|
|
404462
404554
|
} else {
|
|
404463
404555
|
process.stderr.write(`Try running with sudo or fix npm permissions
|
|
@@ -404473,7 +404565,7 @@ async function update() {
|
|
|
404473
404565
|
if (useLocalUpdate) {
|
|
404474
404566
|
process.stderr.write(`Try manually updating with:
|
|
404475
404567
|
`);
|
|
404476
|
-
process.stderr.write(` cd ~/.theus/local && npm update ${{ VERSION: "0.2.
|
|
404568
|
+
process.stderr.write(` cd ~/.theus/local && npm update ${{ VERSION: "0.2.60", BUILD_TIME: "1970-01-01T00:00:00.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}
|
|
404477
404569
|
`);
|
|
404478
404570
|
} else {
|
|
404479
404571
|
process.stderr.write(`Or consider using native installation with: theus install
|
|
@@ -414313,7 +414405,7 @@ var init_sessionStorage = __esm(() => {
|
|
|
414313
414405
|
init_settings2();
|
|
414314
414406
|
init_slowOperations();
|
|
414315
414407
|
init_uuid();
|
|
414316
|
-
VERSION4 = { VERSION: "0.2.
|
|
414408
|
+
VERSION4 = { VERSION: "0.2.60", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION;
|
|
414317
414409
|
MAX_TOMBSTONE_REWRITE_BYTES = 50 * 1024 * 1024;
|
|
414318
414410
|
SKIP_FIRST_PROMPT_PATTERN2 = /^(?:\s*<[a-z][\w-]*[\s>]|\[Request interrupted by user[^\]]*\])/;
|
|
414319
414411
|
EPHEMERAL_PROGRESS_TYPES = new Set([
|
|
@@ -415518,7 +415610,7 @@ var init_filesystem = __esm(() => {
|
|
|
415518
415610
|
});
|
|
415519
415611
|
getBundledSkillsRoot = memoize_default(function getBundledSkillsRoot2() {
|
|
415520
415612
|
const nonce = randomBytes21(16).toString("hex");
|
|
415521
|
-
return join150(getTheusTempDir(), "bundled-skills", { VERSION: "0.2.
|
|
415613
|
+
return join150(getTheusTempDir(), "bundled-skills", { VERSION: "0.2.60", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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);
|
|
415522
415614
|
});
|
|
415523
415615
|
getResolvedWorkingDirPaths = memoize_default(getPathsForPermissionCheck);
|
|
415524
415616
|
});
|
|
@@ -420697,7 +420789,7 @@ function getSimpleDoingTasksSection() {
|
|
|
420697
420789
|
];
|
|
420698
420790
|
const userHelpSubitems = [
|
|
420699
420791
|
`/help: Get help with using Theus`,
|
|
420700
|
-
`To give feedback, users should ${{ VERSION: "0.2.
|
|
420792
|
+
`To give feedback, users should ${{ VERSION: "0.2.60", BUILD_TIME: "1970-01-01T00:00:00.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}`
|
|
420701
420793
|
];
|
|
420702
420794
|
const items = [
|
|
420703
420795
|
`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.`,
|
|
@@ -421597,7 +421689,7 @@ function computeFingerprint(messageText, version3) {
|
|
|
421597
421689
|
}
|
|
421598
421690
|
function computeFingerprintFromMessages(messages) {
|
|
421599
421691
|
const firstMessageText = extractFirstMessageText(messages);
|
|
421600
|
-
return computeFingerprint(firstMessageText, { VERSION: "0.2.
|
|
421692
|
+
return computeFingerprint(firstMessageText, { VERSION: "0.2.60", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION);
|
|
421601
421693
|
}
|
|
421602
421694
|
var FINGERPRINT_SALT = "59cf53e54c78";
|
|
421603
421695
|
var init_fingerprint = () => {};
|
|
@@ -423783,8 +423875,10 @@ async function* readSSEChunks(body, signal) {
|
|
|
423783
423875
|
const data = line.slice(5).trim();
|
|
423784
423876
|
if (!data)
|
|
423785
423877
|
continue;
|
|
423786
|
-
if (data === "[DONE]")
|
|
423878
|
+
if (data === "[DONE]") {
|
|
423879
|
+
yield { __theusDone: true };
|
|
423787
423880
|
return;
|
|
423881
|
+
}
|
|
423788
423882
|
try {
|
|
423789
423883
|
yield JSON.parse(data);
|
|
423790
423884
|
} catch {}
|
|
@@ -423911,7 +424005,12 @@ async function* callOpenAICompatible({
|
|
|
423911
424005
|
let usageIn = 0;
|
|
423912
424006
|
let usageOut = 0;
|
|
423913
424007
|
let sawUsage = false;
|
|
424008
|
+
let sawDone = false;
|
|
423914
424009
|
for await (const chunk2 of readSSEChunks(response.body, signal)) {
|
|
424010
|
+
if (chunk2.__theusDone) {
|
|
424011
|
+
sawDone = true;
|
|
424012
|
+
continue;
|
|
424013
|
+
}
|
|
423915
424014
|
const events2 = [];
|
|
423916
424015
|
if (!started) {
|
|
423917
424016
|
started = true;
|
|
@@ -424011,6 +424110,10 @@ async function* callOpenAICompatible({
|
|
|
424011
424110
|
};
|
|
424012
424111
|
}
|
|
424013
424112
|
}
|
|
424113
|
+
const hasUsableContent = text.length > 0 || [...toolBlocks.values()].some((block2) => block2.name);
|
|
424114
|
+
if (!started || !hasUsableContent || finishReason === null && !sawDone) {
|
|
424115
|
+
throw new Error(`${provider.id}: el stream termin\xF3 antes de completar una respuesta`);
|
|
424116
|
+
}
|
|
424014
424117
|
const closingEvents = [];
|
|
424015
424118
|
if (textOpen && textBlockIndex !== null) {
|
|
424016
424119
|
closingEvents.push({ type: "content_block_stop", index: textBlockIndex });
|
|
@@ -424220,7 +424323,7 @@ async function sideQuery(opts) {
|
|
|
424220
424323
|
betas.push(STRUCTURED_OUTPUTS_BETA_HEADER);
|
|
424221
424324
|
}
|
|
424222
424325
|
const messageText = extractFirstUserMessageText(messages);
|
|
424223
|
-
const fingerprint = computeFingerprint(messageText, { VERSION: "0.2.
|
|
424326
|
+
const fingerprint = computeFingerprint(messageText, { VERSION: "0.2.60", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION);
|
|
424224
424327
|
const attributionHeader = getAttributionHeader(fingerprint);
|
|
424225
424328
|
const systemBlocks = [
|
|
424226
424329
|
attributionHeader ? { type: "text", text: attributionHeader } : null,
|
|
@@ -425523,7 +425626,7 @@ async function handleMemories(state) {
|
|
|
425523
425626
|
async function runProjectContextMcpServer() {
|
|
425524
425627
|
const projectRoot = process.env.THEUS_PROJECT_ROOT || process.cwd();
|
|
425525
425628
|
const state = new ProjectContextState(projectRoot);
|
|
425526
|
-
const server2 = new Server({ name: SERVER_NAME, version: { VERSION: "0.2.
|
|
425629
|
+
const server2 = new Server({ name: SERVER_NAME, version: { VERSION: "0.2.60", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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: {} } });
|
|
425527
425630
|
server2.setRequestHandler(ListToolsRequestSchema, async () => ({
|
|
425528
425631
|
tools: TOOL_DEFINITIONS.map((t) => ({
|
|
425529
425632
|
name: t.name,
|
|
@@ -427505,7 +427608,7 @@ function createBridgeLogger(options2) {
|
|
|
427505
427608
|
connectUrl = buildBridgeConnectUrl(environmentId, cachedIngressUrl);
|
|
427506
427609
|
regenerateQr(connectUrl);
|
|
427507
427610
|
if (verbose) {
|
|
427508
|
-
write(source_default.dim(`Remote Control`) + ` v${{ VERSION: "0.2.
|
|
427611
|
+
write(source_default.dim(`Remote Control`) + ` v${{ VERSION: "0.2.60", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION}
|
|
427509
427612
|
`);
|
|
427510
427613
|
}
|
|
427511
427614
|
if (verbose) {
|
|
@@ -428478,7 +428581,7 @@ function appendToLog(path19, message) {
|
|
|
428478
428581
|
cwd: getFsImplementation().cwd(),
|
|
428479
428582
|
userType: process.env.USER_TYPE,
|
|
428480
428583
|
sessionId: getSessionId(),
|
|
428481
|
-
version: { VERSION: "0.2.
|
|
428584
|
+
version: { VERSION: "0.2.60", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
|
|
428482
428585
|
};
|
|
428483
428586
|
getLogWriter(path19).write(messageWithTimestamp);
|
|
428484
428587
|
}
|
|
@@ -429748,7 +429851,7 @@ Spawn mode for this project:
|
|
|
429748
429851
|
const api2 = createBridgeApiClient({
|
|
429749
429852
|
baseUrl,
|
|
429750
429853
|
getAccessToken: getBridgeAccessToken2,
|
|
429751
|
-
runnerVersion: { VERSION: "0.2.
|
|
429854
|
+
runnerVersion: { VERSION: "0.2.60", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
|
|
429752
429855
|
onDebug: logForDebugging,
|
|
429753
429856
|
onAuth401: handleOAuth401Error2,
|
|
429754
429857
|
getTrustedDeviceToken
|
|
@@ -429986,7 +430089,7 @@ async function runBridgeHeadless(opts, signal) {
|
|
|
429986
430089
|
const api2 = createBridgeApiClient({
|
|
429987
430090
|
baseUrl,
|
|
429988
430091
|
getAccessToken: opts.getAccessToken,
|
|
429989
|
-
runnerVersion: { VERSION: "0.2.
|
|
430092
|
+
runnerVersion: { VERSION: "0.2.60", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
|
|
429990
430093
|
onDebug: log2,
|
|
429991
430094
|
onAuth401: opts.onAuth401,
|
|
429992
430095
|
getTrustedDeviceToken
|
|
@@ -434052,7 +434155,7 @@ function buildSystemInitMessage(inputs) {
|
|
|
434052
434155
|
slash_commands: inputs.commands.filter((c5) => c5.userInvocable !== false).map((c5) => c5.name),
|
|
434053
434156
|
apiKeySource: getTheusApiKeyWithSource().source,
|
|
434054
434157
|
betas: getSdkBetas(),
|
|
434055
|
-
theus_code_version: { VERSION: "0.2.
|
|
434158
|
+
theus_code_version: { VERSION: "0.2.60", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
|
|
434056
434159
|
output_style: outputStyle2,
|
|
434057
434160
|
agents: inputs.agents.map((agent) => agent.agentType),
|
|
434058
434161
|
skills: inputs.skills.filter((s) => s.userInvocable !== false).map((skill) => skill.name),
|
|
@@ -434092,8 +434195,8 @@ async function getEnvLessBridgeConfig() {
|
|
|
434092
434195
|
}
|
|
434093
434196
|
async function checkEnvLessBridgeMinVersion() {
|
|
434094
434197
|
const cfg = await getEnvLessBridgeConfig();
|
|
434095
|
-
if (cfg.min_version && lt({ VERSION: "0.2.
|
|
434096
|
-
return `Your version of Theus (${{ VERSION: "0.2.
|
|
434198
|
+
if (cfg.min_version && lt({ VERSION: "0.2.60", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
|
|
434199
|
+
return `Your version of Theus (${{ VERSION: "0.2.60", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.
|
|
434097
434200
|
Version ${cfg.min_version} or higher is required. Run \`theus update\` to update.`;
|
|
434098
434201
|
}
|
|
434099
434202
|
return null;
|
|
@@ -436417,7 +436520,7 @@ async function initBridgeCore(params) {
|
|
|
436417
436520
|
const rawApi = createBridgeApiClient({
|
|
436418
436521
|
baseUrl,
|
|
436419
436522
|
getAccessToken,
|
|
436420
|
-
runnerVersion: { VERSION: "0.2.
|
|
436523
|
+
runnerVersion: { VERSION: "0.2.60", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
|
|
436421
436524
|
onDebug: logForDebugging,
|
|
436422
436525
|
onAuth401,
|
|
436423
436526
|
getTrustedDeviceToken
|
|
@@ -453160,7 +453263,7 @@ var init_useVoiceEnabled = __esm(() => {
|
|
|
453160
453263
|
function getSemverPart(version3) {
|
|
453161
453264
|
return `${import_semver14.major(version3, { loose: true })}.${import_semver14.minor(version3, { loose: true })}.${import_semver14.patch(version3, { loose: true })}`;
|
|
453162
453265
|
}
|
|
453163
|
-
function useUpdateNotification(updatedVersion, initialVersion = { VERSION: "0.2.
|
|
453266
|
+
function useUpdateNotification(updatedVersion, initialVersion = { VERSION: "0.2.60", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION) {
|
|
453164
453267
|
const [lastNotifiedSemver, setLastNotifiedSemver] = import_react233.useState(() => getSemverPart(initialVersion));
|
|
453165
453268
|
if (!updatedVersion) {
|
|
453166
453269
|
return null;
|
|
@@ -453200,7 +453303,7 @@ function AutoUpdater({
|
|
|
453200
453303
|
return;
|
|
453201
453304
|
}
|
|
453202
453305
|
if (false) {}
|
|
453203
|
-
const currentVersion = { VERSION: "0.2.
|
|
453306
|
+
const currentVersion = { VERSION: "0.2.60", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION;
|
|
453204
453307
|
const channel2 = getInitialSettings()?.autoUpdatesChannel ?? "latest";
|
|
453205
453308
|
let latestVersion = await getLatestVersion(channel2);
|
|
453206
453309
|
const isDisabled2 = isAutoUpdaterDisabled();
|
|
@@ -453336,7 +453439,7 @@ function AutoUpdater({
|
|
|
453336
453439
|
" ",
|
|
453337
453440
|
/* @__PURE__ */ jsx_runtime409.jsx(ThemedText, {
|
|
453338
453441
|
bold: true,
|
|
453339
|
-
children: hasLocalInstall ? `cd ~/.theus/local && npm update ${{ VERSION: "0.2.
|
|
453442
|
+
children: hasLocalInstall ? `cd ~/.theus/local && npm update ${{ VERSION: "0.2.60", BUILD_TIME: "1970-01-01T00:00:00.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.60", BUILD_TIME: "1970-01-01T00:00:00.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}`
|
|
453340
453443
|
})
|
|
453341
453444
|
]
|
|
453342
453445
|
})
|
|
@@ -453413,12 +453516,12 @@ function NativeAutoUpdater({
|
|
|
453413
453516
|
logEvent("tengu_native_auto_updater_start", {});
|
|
453414
453517
|
try {
|
|
453415
453518
|
const maxVersion = await getMaxVersion();
|
|
453416
|
-
if (maxVersion && gt({ VERSION: "0.2.
|
|
453519
|
+
if (maxVersion && gt({ VERSION: "0.2.60", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
|
|
453417
453520
|
const msg = await getMaxVersionMessage();
|
|
453418
453521
|
setMaxVersionIssue(msg ?? "affects your version");
|
|
453419
453522
|
}
|
|
453420
453523
|
const result = await installLatest(channel2);
|
|
453421
|
-
const currentVersion = { VERSION: "0.2.
|
|
453524
|
+
const currentVersion = { VERSION: "0.2.60", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION;
|
|
453422
453525
|
const latencyMs = Date.now() - startTime2;
|
|
453423
453526
|
if (result.lockFailed) {
|
|
453424
453527
|
logEvent("tengu_native_auto_updater_lock_contention", {
|
|
@@ -453555,17 +453658,17 @@ function PackageManagerAutoUpdater(t0) {
|
|
|
453555
453658
|
const maxVersion = await getMaxVersion();
|
|
453556
453659
|
if (maxVersion && latest && gt(latest, maxVersion)) {
|
|
453557
453660
|
logForDebugging(`PackageManagerAutoUpdater: maxVersion ${maxVersion} is set, capping update from ${latest} to ${maxVersion}`);
|
|
453558
|
-
if (gte({ VERSION: "0.2.
|
|
453559
|
-
logForDebugging(`PackageManagerAutoUpdater: current version ${{ VERSION: "0.2.
|
|
453661
|
+
if (gte({ VERSION: "0.2.60", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
|
|
453662
|
+
logForDebugging(`PackageManagerAutoUpdater: current version ${{ VERSION: "0.2.60", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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`);
|
|
453560
453663
|
setUpdateAvailable(false);
|
|
453561
453664
|
return;
|
|
453562
453665
|
}
|
|
453563
453666
|
latest = maxVersion;
|
|
453564
453667
|
}
|
|
453565
|
-
const hasUpdate = latest && !gte({ VERSION: "0.2.
|
|
453668
|
+
const hasUpdate = latest && !gte({ VERSION: "0.2.60", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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);
|
|
453566
453669
|
setUpdateAvailable(!!hasUpdate);
|
|
453567
453670
|
if (hasUpdate) {
|
|
453568
|
-
logForDebugging(`PackageManagerAutoUpdater: Update available ${{ VERSION: "0.2.
|
|
453671
|
+
logForDebugging(`PackageManagerAutoUpdater: Update available ${{ VERSION: "0.2.60", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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}`);
|
|
453569
453672
|
}
|
|
453570
453673
|
};
|
|
453571
453674
|
$2[0] = t1;
|
|
@@ -453599,7 +453702,7 @@ function PackageManagerAutoUpdater(t0) {
|
|
|
453599
453702
|
wrap: "truncate",
|
|
453600
453703
|
children: [
|
|
453601
453704
|
"currentVersion: ",
|
|
453602
|
-
{ VERSION: "0.2.
|
|
453705
|
+
{ VERSION: "0.2.60", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
|
|
453603
453706
|
]
|
|
453604
453707
|
});
|
|
453605
453708
|
$2[3] = verbose;
|
|
@@ -461473,7 +461576,7 @@ function buildStatusLineCommandInput(permissionMode, exceeds200kTokens, settings
|
|
|
461473
461576
|
project_dir: getOriginalCwd(),
|
|
461474
461577
|
added_dirs: addedDirs
|
|
461475
461578
|
},
|
|
461476
|
-
version: { VERSION: "0.2.
|
|
461579
|
+
version: { VERSION: "0.2.60", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
|
|
461477
461580
|
output_style: {
|
|
461478
461581
|
name: outputStyleName
|
|
461479
461582
|
},
|
|
@@ -485753,7 +485856,7 @@ function completeOnboarding() {
|
|
|
485753
485856
|
saveGlobalConfig((current) => ({
|
|
485754
485857
|
...current,
|
|
485755
485858
|
hasCompletedOnboarding: true,
|
|
485756
|
-
lastOnboardingVersion: { VERSION: "0.2.
|
|
485859
|
+
lastOnboardingVersion: { VERSION: "0.2.60", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
|
|
485757
485860
|
}));
|
|
485758
485861
|
}
|
|
485759
485862
|
function showDialog(root2, renderer) {
|
|
@@ -486665,6 +486768,10 @@ async function fetchBootstrapAPI() {
|
|
|
486665
486768
|
logForDebugging("[Bootstrap] Skipped: Nonessential traffic disabled");
|
|
486666
486769
|
return null;
|
|
486667
486770
|
}
|
|
486771
|
+
if (!supportsUpstreamCompatibilityEndpoints()) {
|
|
486772
|
+
logForDebugging("[Bootstrap] Skipped: endpoint no disponible en theus.pe");
|
|
486773
|
+
return null;
|
|
486774
|
+
}
|
|
486668
486775
|
if (getAPIProvider() !== "firstParty") {
|
|
486669
486776
|
logForDebugging("[Bootstrap] Skipped: 3P provider");
|
|
486670
486777
|
return null;
|
|
@@ -496704,7 +496811,7 @@ async function startMCPServer(cwd3, debug3, verbose) {
|
|
|
496704
496811
|
setCwd(cwd3);
|
|
496705
496812
|
const server2 = new Server({
|
|
496706
496813
|
name: "theus/tengu",
|
|
496707
|
-
version: { VERSION: "0.2.
|
|
496814
|
+
version: { VERSION: "0.2.60", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
|
|
496708
496815
|
}, {
|
|
496709
496816
|
capabilities: {
|
|
496710
496817
|
tools: {}
|
|
@@ -498146,7 +498253,7 @@ async function setupTokenHandler(root2) {
|
|
|
498146
498253
|
gap: 1,
|
|
498147
498254
|
children: [
|
|
498148
498255
|
/* @__PURE__ */ jsx_runtime495.jsx(TheusBanner, {
|
|
498149
|
-
version: { VERSION: "0.2.
|
|
498256
|
+
version: { VERSION: "0.2.60", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
|
|
498150
498257
|
}),
|
|
498151
498258
|
showAuthWarning && /* @__PURE__ */ jsx_runtime495.jsxs(ThemedBox_default, {
|
|
498152
498259
|
flexDirection: "column",
|
|
@@ -499628,7 +499735,7 @@ ${assistantAddendum}` : assistantAddendum;
|
|
|
499628
499735
|
}
|
|
499629
499736
|
}
|
|
499630
499737
|
logForDiagnosticsNoPII("info", "started", {
|
|
499631
|
-
version: { VERSION: "0.2.
|
|
499738
|
+
version: { VERSION: "0.2.60", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
|
|
499632
499739
|
is_native_binary: isInBundledMode()
|
|
499633
499740
|
});
|
|
499634
499741
|
registerCleanup(async () => {
|
|
@@ -500496,7 +500603,7 @@ Usage: theus --remote "your task description"`, () => gracefulShutdown(1));
|
|
|
500496
500603
|
pendingHookMessages
|
|
500497
500604
|
}, renderAndRun);
|
|
500498
500605
|
}
|
|
500499
|
-
}).version(`${{ VERSION: "0.2.
|
|
500606
|
+
}).version(`${{ VERSION: "0.2.60", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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");
|
|
500500
500607
|
program2.option("-w, --worktree [name]", "Crea un nuevo worktree de git para esta sesi\xF3n (opcionalmente indica un nombre)");
|
|
500501
500608
|
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.");
|
|
500502
500609
|
if (canUserConfigureAdvisor()) {
|
|
@@ -501048,7 +501155,7 @@ if (false) {}
|
|
|
501048
501155
|
async function main2() {
|
|
501049
501156
|
const args = process.argv.slice(2);
|
|
501050
501157
|
if (args.length === 1 && (args[0] === "--version" || args[0] === "-v" || args[0] === "-V")) {
|
|
501051
|
-
console.log(`${{ VERSION: "0.2.
|
|
501158
|
+
console.log(`${{ VERSION: "0.2.60", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)`);
|
|
501052
501159
|
return;
|
|
501053
501160
|
}
|
|
501054
501161
|
const {
|