theus-cli 0.2.55 → 0.2.57
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 +295 -145
- package/package.json +1 -1
package/cli.js
CHANGED
|
@@ -58896,7 +58896,7 @@ async function _executeApiKeyHelper(isNonInteractiveSession) {
|
|
|
58896
58896
|
if (isApiKeyHelperFromProjectOrLocalSettings()) {
|
|
58897
58897
|
const hasTrust = checkHasTrustDialogAccepted();
|
|
58898
58898
|
if (!hasTrust && !isNonInteractiveSession) {
|
|
58899
|
-
const error40 = new Error(`Security: apiKeyHelper executed before workspace trust is confirmed. If you see this message, post in ${{ VERSION: "0.2.
|
|
58899
|
+
const error40 = new Error(`Security: apiKeyHelper executed before workspace trust is confirmed. If you see this message, post in ${{ VERSION: "0.2.57", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.FEEDBACK_CHANNEL}.`);
|
|
58900
58900
|
logAntError("apiKeyHelper invoked before trust check", error40);
|
|
58901
58901
|
logEvent("tengu_apiKeyHelper_missing_trust11", {});
|
|
58902
58902
|
return null;
|
|
@@ -58940,7 +58940,7 @@ async function runAwsAuthRefresh() {
|
|
|
58940
58940
|
if (isAwsAuthRefreshFromProjectSettings()) {
|
|
58941
58941
|
const hasTrust = checkHasTrustDialogAccepted();
|
|
58942
58942
|
if (!hasTrust && !getIsNonInteractiveSession()) {
|
|
58943
|
-
const error40 = new Error(`Security: awsAuthRefresh executed before workspace trust is confirmed. If you see this message, post in ${{ VERSION: "0.2.
|
|
58943
|
+
const error40 = new Error(`Security: awsAuthRefresh executed before workspace trust is confirmed. If you see this message, post in ${{ VERSION: "0.2.57", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.FEEDBACK_CHANNEL}.`);
|
|
58944
58944
|
logAntError("awsAuthRefresh invoked before trust check", error40);
|
|
58945
58945
|
logEvent("tengu_awsAuthRefresh_missing_trust", {});
|
|
58946
58946
|
return false;
|
|
@@ -59000,7 +59000,7 @@ async function getAwsCredsFromCredentialExport() {
|
|
|
59000
59000
|
if (isAwsCredentialExportFromProjectSettings()) {
|
|
59001
59001
|
const hasTrust = checkHasTrustDialogAccepted();
|
|
59002
59002
|
if (!hasTrust && !getIsNonInteractiveSession()) {
|
|
59003
|
-
const error40 = new Error(`Security: awsCredentialExport executed before workspace trust is confirmed. If you see this message, post in ${{ VERSION: "0.2.
|
|
59003
|
+
const error40 = new Error(`Security: awsCredentialExport executed before workspace trust is confirmed. If you see this message, post in ${{ VERSION: "0.2.57", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.FEEDBACK_CHANNEL}.`);
|
|
59004
59004
|
logAntError("awsCredentialExport invoked before trust check", error40);
|
|
59005
59005
|
logEvent("tengu_awsCredentialExport_missing_trust", {});
|
|
59006
59006
|
return null;
|
|
@@ -59085,7 +59085,7 @@ async function runGcpAuthRefresh() {
|
|
|
59085
59085
|
if (isGcpAuthRefreshFromProjectSettings()) {
|
|
59086
59086
|
const hasTrust = checkHasTrustDialogAccepted();
|
|
59087
59087
|
if (!hasTrust && !getIsNonInteractiveSession()) {
|
|
59088
|
-
const error40 = new Error(`Security: gcpAuthRefresh executed before workspace trust is confirmed. If you see this message, post in ${{ VERSION: "0.2.
|
|
59088
|
+
const error40 = new Error(`Security: gcpAuthRefresh executed before workspace trust is confirmed. If you see this message, post in ${{ VERSION: "0.2.57", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.FEEDBACK_CHANNEL}.`);
|
|
59089
59089
|
logAntError("gcpAuthRefresh invoked before trust check", error40);
|
|
59090
59090
|
logEvent("tengu_gcpAuthRefresh_missing_trust", {});
|
|
59091
59091
|
return false;
|
|
@@ -59780,7 +59780,7 @@ var init_auth = __esm(() => {
|
|
|
59780
59780
|
|
|
59781
59781
|
// utils/userAgent.ts
|
|
59782
59782
|
function getTheusCodeUserAgent() {
|
|
59783
|
-
return `theus-code/${{ VERSION: "0.2.
|
|
59783
|
+
return `theus-code/${{ VERSION: "0.2.57", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION}`;
|
|
59784
59784
|
}
|
|
59785
59785
|
|
|
59786
59786
|
// utils/workloadContext.ts
|
|
@@ -59802,7 +59802,7 @@ function getUserAgent() {
|
|
|
59802
59802
|
const clientApp = process.env.THEUS_AGENT_SDK_CLIENT_APP ? `, client-app/${process.env.THEUS_AGENT_SDK_CLIENT_APP}` : "";
|
|
59803
59803
|
const workload = getWorkload();
|
|
59804
59804
|
const workloadSuffix = workload ? `, workload/${workload}` : "";
|
|
59805
|
-
return `theus-cli/${{ VERSION: "0.2.
|
|
59805
|
+
return `theus-cli/${{ VERSION: "0.2.57", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION} (${process.env.USER_TYPE}, ${process.env.THEUS_CODE_ENTRYPOINT ?? "cli"}${agentSdkVersion}${clientApp}${workloadSuffix})`;
|
|
59806
59806
|
}
|
|
59807
59807
|
function getMCPUserAgent() {
|
|
59808
59808
|
const parts = [];
|
|
@@ -59816,7 +59816,7 @@ function getMCPUserAgent() {
|
|
|
59816
59816
|
parts.push(`client-app/${process.env.THEUS_AGENT_SDK_CLIENT_APP}`);
|
|
59817
59817
|
}
|
|
59818
59818
|
const suffix = parts.length > 0 ? ` (${parts.join(", ")})` : "";
|
|
59819
|
-
return `theus-code/${{ VERSION: "0.2.
|
|
59819
|
+
return `theus-code/${{ VERSION: "0.2.57", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION}${suffix}`;
|
|
59820
59820
|
}
|
|
59821
59821
|
function getWebFetchUserAgent() {
|
|
59822
59822
|
return `Theus-User (${getTheusCodeUserAgent()}; +https://support.theus.pe/)`;
|
|
@@ -59954,7 +59954,7 @@ var init_user = __esm(() => {
|
|
|
59954
59954
|
deviceId,
|
|
59955
59955
|
sessionId: getSessionId(),
|
|
59956
59956
|
email: getEmail(),
|
|
59957
|
-
appVersion: { VERSION: "0.2.
|
|
59957
|
+
appVersion: { VERSION: "0.2.57", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
|
|
59958
59958
|
platform: getHostPlatformForAnalytics(),
|
|
59959
59959
|
organizationUuid,
|
|
59960
59960
|
accountUuid,
|
|
@@ -61669,7 +61669,7 @@ var init_metadata = __esm(() => {
|
|
|
61669
61669
|
COMPOUND_OPERATOR_REGEX = /\s*(?:&&|\|\||[;|])\s*/;
|
|
61670
61670
|
WHITESPACE_REGEX = /\s+/;
|
|
61671
61671
|
getVersionBase = memoize_default(() => {
|
|
61672
|
-
const match = { VERSION: "0.2.
|
|
61672
|
+
const match = { VERSION: "0.2.57", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION.match(/^\d+\.\d+\.\d+(?:-[a-z]+)?/);
|
|
61673
61673
|
return match ? match[0] : undefined;
|
|
61674
61674
|
});
|
|
61675
61675
|
buildEnvContext = memoize_default(async () => {
|
|
@@ -61709,9 +61709,9 @@ var init_metadata = __esm(() => {
|
|
|
61709
61709
|
isGithubAction: isEnvTruthy(process.env.GITHUB_ACTIONS),
|
|
61710
61710
|
isTheusCodeAction: isEnvTruthy(process.env.THEUS_CODE_ACTION),
|
|
61711
61711
|
isTheusAiAuth: isTheusAISubscriber(),
|
|
61712
|
-
version: { VERSION: "0.2.
|
|
61712
|
+
version: { VERSION: "0.2.57", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
|
|
61713
61713
|
versionBase: getVersionBase(),
|
|
61714
|
-
buildTime: { VERSION: "0.2.
|
|
61714
|
+
buildTime: { VERSION: "0.2.57", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.BUILD_TIME,
|
|
61715
61715
|
deploymentEnvironment: env3.detectDeploymentEnvironment(),
|
|
61716
61716
|
...isEnvTruthy(process.env.GITHUB_ACTIONS) && {
|
|
61717
61717
|
githubEventName: process.env.GITHUB_EVENT_NAME,
|
|
@@ -62377,7 +62377,7 @@ function initialize1PEventLogging() {
|
|
|
62377
62377
|
const platform2 = getPlatform();
|
|
62378
62378
|
const attributes = {
|
|
62379
62379
|
[ATTR_SERVICE_NAME]: "theus-code",
|
|
62380
|
-
[ATTR_SERVICE_VERSION]: { VERSION: "0.2.
|
|
62380
|
+
[ATTR_SERVICE_VERSION]: { VERSION: "0.2.57", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
|
|
62381
62381
|
};
|
|
62382
62382
|
if (platform2 === "wsl") {
|
|
62383
62383
|
const wslVersion = getWslVersion();
|
|
@@ -62404,7 +62404,7 @@ function initialize1PEventLogging() {
|
|
|
62404
62404
|
})
|
|
62405
62405
|
]
|
|
62406
62406
|
});
|
|
62407
|
-
firstPartyEventLogger = firstPartyEventLoggerProvider.getLogger("com.theus.theus_code.events", { VERSION: "0.2.
|
|
62407
|
+
firstPartyEventLogger = firstPartyEventLoggerProvider.getLogger("com.theus.theus_code.events", { VERSION: "0.2.57", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION);
|
|
62408
62408
|
}
|
|
62409
62409
|
async function reinitialize1PEventLoggingIfConfigChanged() {
|
|
62410
62410
|
if (!is1PEventLoggingEnabled() || !firstPartyEventLoggerProvider) {
|
|
@@ -64275,7 +64275,7 @@ function getAttributionHeader(fingerprint) {
|
|
|
64275
64275
|
if (!isAttributionHeaderEnabled()) {
|
|
64276
64276
|
return "";
|
|
64277
64277
|
}
|
|
64278
|
-
const version2 = `${{ VERSION: "0.2.
|
|
64278
|
+
const version2 = `${{ VERSION: "0.2.57", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION}.${fingerprint}`;
|
|
64279
64279
|
const entrypoint = process.env.THEUS_CODE_ENTRYPOINT ?? "unknown";
|
|
64280
64280
|
const cch = "";
|
|
64281
64281
|
const workload = getWorkload();
|
|
@@ -108362,7 +108362,7 @@ Complete the user's request by providing accurate, documentation-based guidance.
|
|
|
108362
108362
|
}
|
|
108363
108363
|
function getFeedbackGuideline() {
|
|
108364
108364
|
if (isUsing3PServices()) {
|
|
108365
|
-
return `- When you cannot find an answer or the feature doesn't exist, direct the user to ${{ VERSION: "0.2.
|
|
108365
|
+
return `- When you cannot find an answer or the feature doesn't exist, direct the user to ${{ VERSION: "0.2.57", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.ISSUES_EXPLAINER}`;
|
|
108366
108366
|
}
|
|
108367
108367
|
return "- When you cannot find an answer or the feature doesn't exist, direct the user to use /feedback to report a feature request or bug";
|
|
108368
108368
|
}
|
|
@@ -167334,7 +167334,7 @@ function getTelemetryAttributes() {
|
|
|
167334
167334
|
attributes["session.id"] = sessionId;
|
|
167335
167335
|
}
|
|
167336
167336
|
if (shouldIncludeAttribute("OTEL_METRICS_INCLUDE_VERSION")) {
|
|
167337
|
-
attributes["app.version"] = { VERSION: "0.2.
|
|
167337
|
+
attributes["app.version"] = { VERSION: "0.2.57", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION;
|
|
167338
167338
|
}
|
|
167339
167339
|
const oauthAccount = getOauthAccountInfo();
|
|
167340
167340
|
if (oauthAccount) {
|
|
@@ -203218,7 +203218,7 @@ function getInstallationEnv() {
|
|
|
203218
203218
|
return;
|
|
203219
203219
|
}
|
|
203220
203220
|
function getTheusCodeVersion() {
|
|
203221
|
-
return { VERSION: "0.2.
|
|
203221
|
+
return { VERSION: "0.2.57", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION;
|
|
203222
203222
|
}
|
|
203223
203223
|
async function getInstalledVSCodeExtensionVersion(command) {
|
|
203224
203224
|
const { stdout } = await execFileNoThrow(command, ["--list-extensions", "--show-versions"], {
|
|
@@ -204736,7 +204736,7 @@ async function getMcpHeadersFromHelper(serverName, config2) {
|
|
|
204736
204736
|
if ("scope" in config2 && isMcpServerFromProjectOrLocalSettings(config2) && !getIsNonInteractiveSession()) {
|
|
204737
204737
|
const hasTrust = checkHasTrustDialogAccepted();
|
|
204738
204738
|
if (!hasTrust) {
|
|
204739
|
-
const error40 = new Error(`Security: headersHelper for MCP server '${serverName}' executed before workspace trust is confirmed. If you see this message, post in ${{ VERSION: "0.2.
|
|
204739
|
+
const error40 = new Error(`Security: headersHelper for MCP server '${serverName}' executed before workspace trust is confirmed. If you see this message, post in ${{ VERSION: "0.2.57", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.FEEDBACK_CHANNEL}.`);
|
|
204740
204740
|
logAntError("MCP headersHelper invoked before trust check", error40);
|
|
204741
204741
|
logEvent("tengu_mcp_headersHelper_missing_trust", {});
|
|
204742
204742
|
return null;
|
|
@@ -205946,7 +205946,7 @@ async function setupSdkMcpClients(sdkMcpConfigs, sendMcpMessage) {
|
|
|
205946
205946
|
const client2 = new Client({
|
|
205947
205947
|
name: "theus-code",
|
|
205948
205948
|
title: "Theus",
|
|
205949
|
-
version: { VERSION: "0.2.
|
|
205949
|
+
version: { VERSION: "0.2.57", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION ?? "unknown",
|
|
205950
205950
|
description: "Theus's agentic coding tool",
|
|
205951
205951
|
websiteUrl: PRODUCT_URL
|
|
205952
205952
|
}, {
|
|
@@ -206300,7 +206300,7 @@ var init_client5 = __esm(() => {
|
|
|
206300
206300
|
const client2 = new Client({
|
|
206301
206301
|
name: "theus-code",
|
|
206302
206302
|
title: "Theus",
|
|
206303
|
-
version: { VERSION: "0.2.
|
|
206303
|
+
version: { VERSION: "0.2.57", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION ?? "unknown",
|
|
206304
206304
|
description: "Theus's agentic coding tool",
|
|
206305
206305
|
websiteUrl: PRODUCT_URL
|
|
206306
206306
|
}, {
|
|
@@ -216879,7 +216879,7 @@ async function initializeBetaTracing(resource) {
|
|
|
216879
216879
|
});
|
|
216880
216880
|
logs.setGlobalLoggerProvider(loggerProvider);
|
|
216881
216881
|
setLoggerProvider(loggerProvider);
|
|
216882
|
-
const eventLogger = logs.getLogger("com.theus.theus_code.events", { VERSION: "0.2.
|
|
216882
|
+
const eventLogger = logs.getLogger("com.theus.theus_code.events", { VERSION: "0.2.57", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION);
|
|
216883
216883
|
setEventLogger(eventLogger);
|
|
216884
216884
|
process.on("beforeExit", async () => {
|
|
216885
216885
|
await loggerProvider?.forceFlush();
|
|
@@ -216919,7 +216919,7 @@ async function initializeTelemetry() {
|
|
|
216919
216919
|
const platform4 = getPlatform();
|
|
216920
216920
|
const baseAttributes = {
|
|
216921
216921
|
[ATTR_SERVICE_NAME]: "theus-code",
|
|
216922
|
-
[ATTR_SERVICE_VERSION]: { VERSION: "0.2.
|
|
216922
|
+
[ATTR_SERVICE_VERSION]: { VERSION: "0.2.57", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
|
|
216923
216923
|
};
|
|
216924
216924
|
if (platform4 === "wsl") {
|
|
216925
216925
|
const wslVersion = getWslVersion();
|
|
@@ -216964,7 +216964,7 @@ async function initializeTelemetry() {
|
|
|
216964
216964
|
} catch {}
|
|
216965
216965
|
};
|
|
216966
216966
|
registerCleanup(shutdownTelemetry2);
|
|
216967
|
-
return meterProvider2.getMeter("com.theus.theus_code", { VERSION: "0.2.
|
|
216967
|
+
return meterProvider2.getMeter("com.theus.theus_code", { VERSION: "0.2.57", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION);
|
|
216968
216968
|
}
|
|
216969
216969
|
const meterProvider = new MeterProvider({
|
|
216970
216970
|
resource,
|
|
@@ -216984,7 +216984,7 @@ async function initializeTelemetry() {
|
|
|
216984
216984
|
});
|
|
216985
216985
|
logs.setGlobalLoggerProvider(loggerProvider);
|
|
216986
216986
|
setLoggerProvider(loggerProvider);
|
|
216987
|
-
const eventLogger = logs.getLogger("com.theus.theus_code.events", { VERSION: "0.2.
|
|
216987
|
+
const eventLogger = logs.getLogger("com.theus.theus_code.events", { VERSION: "0.2.57", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION);
|
|
216988
216988
|
setEventLogger(eventLogger);
|
|
216989
216989
|
logForDebugging("[3P telemetry] Event logger set successfully");
|
|
216990
216990
|
process.on("beforeExit", async () => {
|
|
@@ -217046,7 +217046,7 @@ Current timeout: ${timeoutMs}ms
|
|
|
217046
217046
|
}
|
|
217047
217047
|
};
|
|
217048
217048
|
registerCleanup(shutdownTelemetry);
|
|
217049
|
-
return meterProvider.getMeter("com.theus.theus_code", { VERSION: "0.2.
|
|
217049
|
+
return meterProvider.getMeter("com.theus.theus_code", { VERSION: "0.2.57", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION);
|
|
217050
217050
|
}
|
|
217051
217051
|
async function flushTelemetry() {
|
|
217052
217052
|
const meterProvider = getMeterProvider();
|
|
@@ -217586,7 +217586,7 @@ async function installOrUpdateTheusPackage(channel2, specificVersion) {
|
|
|
217586
217586
|
return "install_failed";
|
|
217587
217587
|
}
|
|
217588
217588
|
const versionSpec = specificVersion ? specificVersion : channel2 === "stable" ? "stable" : "latest";
|
|
217589
|
-
const result = await execFileNoThrowWithCwd("npm", ["install", `${{ VERSION: "0.2.
|
|
217589
|
+
const result = await execFileNoThrowWithCwd("npm", ["install", `${{ VERSION: "0.2.57", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.PACKAGE_URL}@${versionSpec}`], { cwd: getLocalInstallDir(), maxBuffer: 1e6 });
|
|
217590
217590
|
if (result.code !== 0) {
|
|
217591
217591
|
const error40 = new Error(`Failed to install Theus CLI package: ${result.stderr}`);
|
|
217592
217592
|
logError2(error40);
|
|
@@ -217732,9 +217732,9 @@ async function assertMinVersion() {
|
|
|
217732
217732
|
if (false) {}
|
|
217733
217733
|
try {
|
|
217734
217734
|
const versionConfig = await getDynamicConfig_BLOCKS_ON_INIT("tengu_version_config", { minVersion: "0.0.0" });
|
|
217735
|
-
if (versionConfig.minVersion && lt({ VERSION: "0.2.
|
|
217735
|
+
if (versionConfig.minVersion && lt({ VERSION: "0.2.57", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION, versionConfig.minVersion)) {
|
|
217736
217736
|
console.error(`
|
|
217737
|
-
It looks like your version of Theus (${{ VERSION: "0.2.
|
|
217737
|
+
It looks like your version of Theus (${{ VERSION: "0.2.57", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION}) needs an update.
|
|
217738
217738
|
A newer version (${versionConfig.minVersion} or higher) is required to continue.
|
|
217739
217739
|
|
|
217740
217740
|
To update, please run:
|
|
@@ -217875,7 +217875,7 @@ async function getInstallationPrefix() {
|
|
|
217875
217875
|
return prefixResult.stdout.trim();
|
|
217876
217876
|
}
|
|
217877
217877
|
function getGlobalInstallPackageManager() {
|
|
217878
|
-
if ({ VERSION: "0.2.
|
|
217878
|
+
if ({ VERSION: "0.2.57", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.PACKAGE_URL === "theus-cli") {
|
|
217879
217879
|
return "npm";
|
|
217880
217880
|
}
|
|
217881
217881
|
return env3.isRunningWithBun() ? "bun" : "npm";
|
|
@@ -217900,7 +217900,7 @@ async function checkGlobalInstallPermissions() {
|
|
|
217900
217900
|
}
|
|
217901
217901
|
async function getLatestVersion(channel2) {
|
|
217902
217902
|
const npmTag = channel2 === "stable" ? "stable" : "latest";
|
|
217903
|
-
const result = await execFileNoThrowWithCwd("npm", ["view", `${{ VERSION: "0.2.
|
|
217903
|
+
const result = await execFileNoThrowWithCwd("npm", ["view", `${{ VERSION: "0.2.57", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.PACKAGE_URL}@${npmTag}`, "version", "--prefer-online"], { abortSignal: AbortSignal.timeout(5000), cwd: homedir18() });
|
|
217904
217904
|
if (result.code !== 0) {
|
|
217905
217905
|
logForDebugging(`npm view failed with code ${result.code}`);
|
|
217906
217906
|
if (result.stderr) {
|
|
@@ -217916,7 +217916,7 @@ async function getLatestVersion(channel2) {
|
|
|
217916
217916
|
return result.stdout.trim();
|
|
217917
217917
|
}
|
|
217918
217918
|
async function getNpmDistTags() {
|
|
217919
|
-
const result = await execFileNoThrowWithCwd("npm", ["view", { VERSION: "0.2.
|
|
217919
|
+
const result = await execFileNoThrowWithCwd("npm", ["view", { VERSION: "0.2.57", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.PACKAGE_URL, "dist-tags", "--json", "--prefer-online"], { abortSignal: AbortSignal.timeout(5000), cwd: homedir18() });
|
|
217920
217920
|
if (result.code !== 0) {
|
|
217921
217921
|
logForDebugging(`npm view dist-tags failed with code ${result.code}`);
|
|
217922
217922
|
return { latest: null, stable: null };
|
|
@@ -217956,7 +217956,7 @@ async function installGlobalPackage(specificVersion) {
|
|
|
217956
217956
|
logError2(new AutoUpdaterError("Another process is currently installing an update"));
|
|
217957
217957
|
logEvent("tengu_auto_updater_lock_contention", {
|
|
217958
217958
|
pid: process.pid,
|
|
217959
|
-
currentVersion: { VERSION: "0.2.
|
|
217959
|
+
currentVersion: { VERSION: "0.2.57", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
|
|
217960
217960
|
});
|
|
217961
217961
|
return "in_progress";
|
|
217962
217962
|
}
|
|
@@ -217965,7 +217965,7 @@ async function installGlobalPackage(specificVersion) {
|
|
|
217965
217965
|
if (!env3.isRunningWithBun() && env3.isNpmFromWindowsPath()) {
|
|
217966
217966
|
logError2(new Error("Windows NPM detected in WSL environment"));
|
|
217967
217967
|
logEvent("tengu_auto_updater_windows_npm_in_wsl", {
|
|
217968
|
-
currentVersion: { VERSION: "0.2.
|
|
217968
|
+
currentVersion: { VERSION: "0.2.57", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
|
|
217969
217969
|
});
|
|
217970
217970
|
console.error(`
|
|
217971
217971
|
Error: Windows NPM detected in WSL
|
|
@@ -217984,7 +217984,7 @@ To fix this issue:
|
|
|
217984
217984
|
if (!hasPermissions) {
|
|
217985
217985
|
return "no_permissions";
|
|
217986
217986
|
}
|
|
217987
|
-
const packageSpec = specificVersion ? `${{ VERSION: "0.2.
|
|
217987
|
+
const packageSpec = specificVersion ? `${{ VERSION: "0.2.57", BUILD_TIME: "1970-01-01T00:00:00.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.57", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.PACKAGE_URL;
|
|
217988
217988
|
const packageManager = getGlobalInstallPackageManager();
|
|
217989
217989
|
const installResult = await execFileNoThrowWithCwd(packageManager, ["install", "-g", packageSpec], { cwd: homedir18() });
|
|
217990
217990
|
if (installResult.code !== 0) {
|
|
@@ -218312,8 +218312,8 @@ async function detectMultipleInstallations() {
|
|
|
218312
218312
|
installations.push({ type: "npm-local", path: localPath });
|
|
218313
218313
|
}
|
|
218314
218314
|
const packagesToCheck = ["@theus-ai/theus-code"];
|
|
218315
|
-
if ({ VERSION: "0.2.
|
|
218316
|
-
packagesToCheck.push({ VERSION: "0.2.
|
|
218315
|
+
if ({ VERSION: "0.2.57", BUILD_TIME: "1970-01-01T00:00:00.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.57", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.PACKAGE_URL !== "@theus-ai/theus-code") {
|
|
218316
|
+
packagesToCheck.push({ VERSION: "0.2.57", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.PACKAGE_URL);
|
|
218317
218317
|
}
|
|
218318
218318
|
const npmResult = await execFileNoThrow("npm", [
|
|
218319
218319
|
"-g",
|
|
@@ -218496,7 +218496,7 @@ function detectLinuxGlobPatternWarnings() {
|
|
|
218496
218496
|
}
|
|
218497
218497
|
async function getDoctorDiagnostic() {
|
|
218498
218498
|
const installationType = await getCurrentInstallationType();
|
|
218499
|
-
const version2 = { VERSION: "0.2.
|
|
218499
|
+
const version2 = { VERSION: "0.2.57", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.57", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION : "unknown";
|
|
218500
218500
|
const installationPath = await getInstallationPath();
|
|
218501
218501
|
const invokedBinary = getInvokedBinary();
|
|
218502
218502
|
const multipleInstallations = await detectMultipleInstallations();
|
|
@@ -218508,8 +218508,8 @@ async function getDoctorDiagnostic() {
|
|
|
218508
218508
|
for (const install of npmInstalls) {
|
|
218509
218509
|
if (install.type === "npm-global") {
|
|
218510
218510
|
let uninstallCmd = "npm -g uninstall @theus-ai/theus-code";
|
|
218511
|
-
if ({ VERSION: "0.2.
|
|
218512
|
-
uninstallCmd += ` && npm -g uninstall ${{ VERSION: "0.2.
|
|
218511
|
+
if ({ VERSION: "0.2.57", BUILD_TIME: "1970-01-01T00:00:00.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.57", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.PACKAGE_URL !== "@theus-ai/theus-code") {
|
|
218512
|
+
uninstallCmd += ` && npm -g uninstall ${{ VERSION: "0.2.57", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.PACKAGE_URL}`;
|
|
218513
218513
|
}
|
|
218514
218514
|
warnings.push({
|
|
218515
218515
|
issue: `Leftover npm global installation at ${install.path}`,
|
|
@@ -218621,7 +218621,7 @@ async function getLatestVersionFromArtifactory(tag2 = "latest") {
|
|
|
218621
218621
|
const startTime2 = Date.now();
|
|
218622
218622
|
const { stdout, code, stderr } = await execFileNoThrowWithCwd("npm", [
|
|
218623
218623
|
"view",
|
|
218624
|
-
`${{ VERSION: "0.2.
|
|
218624
|
+
`${{ VERSION: "0.2.57", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.NATIVE_PACKAGE_URL}@${tag2}`,
|
|
218625
218625
|
"version",
|
|
218626
218626
|
"--prefer-online",
|
|
218627
218627
|
"--registry",
|
|
@@ -218645,7 +218645,7 @@ async function getLatestVersionFromArtifactory(tag2 = "latest") {
|
|
|
218645
218645
|
latency_ms: latencyMs,
|
|
218646
218646
|
source_npm: true
|
|
218647
218647
|
});
|
|
218648
|
-
logForDebugging(`npm view ${{ VERSION: "0.2.
|
|
218648
|
+
logForDebugging(`npm view ${{ VERSION: "0.2.57", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.NATIVE_PACKAGE_URL}@${tag2} version: ${stdout}`);
|
|
218649
218649
|
const latestVersion = stdout.trim();
|
|
218650
218650
|
return latestVersion;
|
|
218651
218651
|
}
|
|
@@ -218701,7 +218701,7 @@ async function downloadVersionFromArtifactory(version2, stagingPath) {
|
|
|
218701
218701
|
const fs3 = getFsImplementation();
|
|
218702
218702
|
await fs3.rm(stagingPath, { recursive: true, force: true });
|
|
218703
218703
|
const platform4 = getPlatform2();
|
|
218704
|
-
const platformPackageName = `${{ VERSION: "0.2.
|
|
218704
|
+
const platformPackageName = `${{ VERSION: "0.2.57", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.NATIVE_PACKAGE_URL}-${platform4}`;
|
|
218705
218705
|
logForDebugging(`Fetching integrity hash for ${platformPackageName}@${version2}`);
|
|
218706
218706
|
const {
|
|
218707
218707
|
stdout: integrityOutput,
|
|
@@ -218730,7 +218730,7 @@ async function downloadVersionFromArtifactory(version2, stagingPath) {
|
|
|
218730
218730
|
name: "theus-native-installer",
|
|
218731
218731
|
version: "0.0.1",
|
|
218732
218732
|
dependencies: {
|
|
218733
|
-
[{ VERSION: "0.2.
|
|
218733
|
+
[{ VERSION: "0.2.57", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.NATIVE_PACKAGE_URL]: version2
|
|
218734
218734
|
}
|
|
218735
218735
|
};
|
|
218736
218736
|
const packageLock = {
|
|
@@ -218743,10 +218743,10 @@ async function downloadVersionFromArtifactory(version2, stagingPath) {
|
|
|
218743
218743
|
name: "theus-native-installer",
|
|
218744
218744
|
version: "0.0.1",
|
|
218745
218745
|
dependencies: {
|
|
218746
|
-
[{ VERSION: "0.2.
|
|
218746
|
+
[{ VERSION: "0.2.57", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.NATIVE_PACKAGE_URL]: version2
|
|
218747
218747
|
}
|
|
218748
218748
|
},
|
|
218749
|
-
[`node_modules/${{ VERSION: "0.2.
|
|
218749
|
+
[`node_modules/${{ VERSION: "0.2.57", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.NATIVE_PACKAGE_URL}`]: {
|
|
218750
218750
|
version: version2,
|
|
218751
218751
|
optionalDependencies: {
|
|
218752
218752
|
[platformPackageName]: version2
|
|
@@ -218768,7 +218768,7 @@ async function downloadVersionFromArtifactory(version2, stagingPath) {
|
|
|
218768
218768
|
if (result.code !== 0) {
|
|
218769
218769
|
throw new Error(`npm ci failed with code ${result.code}: ${result.stderr}`);
|
|
218770
218770
|
}
|
|
218771
|
-
logForDebugging(`Successfully downloaded and verified ${{ VERSION: "0.2.
|
|
218771
|
+
logForDebugging(`Successfully downloaded and verified ${{ VERSION: "0.2.57", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.NATIVE_PACKAGE_URL}@${version2}`);
|
|
218772
218772
|
}
|
|
218773
218773
|
function getStallTimeoutMs() {
|
|
218774
218774
|
return Number(process.env.THEUS_CODE_STALL_TIMEOUT_MS_FOR_TESTING) || DEFAULT_STALL_TIMEOUT_MS;
|
|
@@ -219431,8 +219431,8 @@ async function updateLatest(channelOrVersion, forceReinstall = false) {
|
|
|
219431
219431
|
const maxVersion = await getMaxVersion();
|
|
219432
219432
|
if (maxVersion && gt(version2, maxVersion)) {
|
|
219433
219433
|
logForDebugging(`Native installer: maxVersion ${maxVersion} is set, capping update from ${version2} to ${maxVersion}`);
|
|
219434
|
-
if (gte({ VERSION: "0.2.
|
|
219435
|
-
logForDebugging(`Native installer: current version ${{ VERSION: "0.2.
|
|
219434
|
+
if (gte({ VERSION: "0.2.57", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION, maxVersion)) {
|
|
219435
|
+
logForDebugging(`Native installer: current version ${{ VERSION: "0.2.57", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION} is already at or above maxVersion ${maxVersion}, skipping update`);
|
|
219436
219436
|
logEvent("tengu_native_update_skipped_max_version", {
|
|
219437
219437
|
latency_ms: Date.now() - startTime2,
|
|
219438
219438
|
max_version: maxVersion,
|
|
@@ -219443,7 +219443,7 @@ async function updateLatest(channelOrVersion, forceReinstall = false) {
|
|
|
219443
219443
|
version2 = maxVersion;
|
|
219444
219444
|
}
|
|
219445
219445
|
}
|
|
219446
|
-
if (!forceReinstall && version2 === { VERSION: "0.2.
|
|
219446
|
+
if (!forceReinstall && version2 === { VERSION: "0.2.57", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION && await versionIsAvailable(version2) && await isPossibleTheusBinary(executablePath)) {
|
|
219447
219447
|
logForDebugging(`Found ${version2} at ${executablePath}, skipping install`);
|
|
219448
219448
|
logEvent("tengu_native_update_complete", {
|
|
219449
219449
|
latency_ms: Date.now() - startTime2,
|
|
@@ -220193,8 +220193,8 @@ async function cleanupNpmInstallations() {
|
|
|
220193
220193
|
} else if (codePackageResult.error) {
|
|
220194
220194
|
errors4.push(codePackageResult.error);
|
|
220195
220195
|
}
|
|
220196
|
-
if ({ VERSION: "0.2.
|
|
220197
|
-
const macroPackageResult = await attemptNpmUninstall({ VERSION: "0.2.
|
|
220196
|
+
if ({ VERSION: "0.2.57", BUILD_TIME: "1970-01-01T00:00:00.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.57", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.PACKAGE_URL !== "@theus-ai/theus-code") {
|
|
220197
|
+
const macroPackageResult = await attemptNpmUninstall({ VERSION: "0.2.57", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.PACKAGE_URL);
|
|
220198
220198
|
if (macroPackageResult.success) {
|
|
220199
220199
|
removed++;
|
|
220200
220200
|
if (macroPackageResult.warning) {
|
|
@@ -230683,6 +230683,26 @@ var init_ConsoleOAuthFlow = __esm(() => {
|
|
|
230683
230683
|
var NOVEDADES;
|
|
230684
230684
|
var init_data = __esm(() => {
|
|
230685
230685
|
NOVEDADES = [
|
|
230686
|
+
{
|
|
230687
|
+
version: "v0.2.57",
|
|
230688
|
+
fecha: "2026-07-26",
|
|
230689
|
+
titulo: "Un doble Enter ya no puede abrir dos pagos",
|
|
230690
|
+
puntos: [
|
|
230691
|
+
"En \xAB/recarga\xBB, pulsar Enter dos veces muy r\xE1pido pod\xEDa crear DOS pagos en la pasarela y abrir dos pesta\xF1as: la terminal entrega las teclas de golpe y la segunda pulsaci\xF3n se procesaba antes de que la pantalla cambiara de estado. Nada aguas abajo lo imped\xEDa.",
|
|
230692
|
+
"Ahora la confirmaci\xF3n se bloquea al instante, antes de contactar con el servidor, y la pantalla pasa a \xABabriendo el pago\xBB de inmediato. Solo se libera si la compra no lleg\xF3 a crearse y reintentar tiene sentido.",
|
|
230693
|
+
"Lo encontr\xF3 una auditor\xEDa adversarial de todo lo que publicamos hoy: cinco revisores independientes buscando fallos, y tres m\xE1s intentando refutar cada hallazgo antes de darlo por real."
|
|
230694
|
+
]
|
|
230695
|
+
},
|
|
230696
|
+
{
|
|
230697
|
+
version: "v0.2.56",
|
|
230698
|
+
fecha: "2026-07-26",
|
|
230699
|
+
titulo: "La recarga te dice qu\xE9 pasa cuando algo falla",
|
|
230700
|
+
puntos: [
|
|
230701
|
+
"Si tu sesi\xF3n hab\xEDa caducado, \xAB/recarga\xBB te dejaba elegir el pack, confirmar la compra y reci\xE9n entonces respond\xEDa \xABno pude abrir el checkout, int\xE9ntalo en unos minutos\xBB \u2014 reintentar no lo iba a arreglar nunca.",
|
|
230702
|
+
"Ahora refresca tu sesi\xF3n antes de empezar y, si no puede, te lo dice de entrada: \xABTu sesi\xF3n caduc\xF3, entra con /login\xBB. Y cuando el servidor rechaza la compra por otro motivo (alcanzaste el tope de packs del ciclo, la recarga no est\xE1 disponible), muestra ese motivo en vez de un mensaje gen\xE9rico.",
|
|
230703
|
+
"En todos los casos se sigue diciendo lo importante: no se cobr\xF3 nada."
|
|
230704
|
+
]
|
|
230705
|
+
},
|
|
230686
230706
|
{
|
|
230687
230707
|
version: "v0.2.55",
|
|
230688
230708
|
fecha: "2026-07-26",
|
|
@@ -305682,9 +305702,9 @@ function getTheusEnvMetadata() {
|
|
|
305682
305702
|
};
|
|
305683
305703
|
}
|
|
305684
305704
|
function getBuildAgeMinutes() {
|
|
305685
|
-
if (!{ VERSION: "0.2.
|
|
305705
|
+
if (!{ VERSION: "0.2.57", BUILD_TIME: "1970-01-01T00:00:00.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)
|
|
305686
305706
|
return;
|
|
305687
|
-
const buildTime = new Date({ VERSION: "0.2.
|
|
305707
|
+
const buildTime = new Date({ VERSION: "0.2.57", BUILD_TIME: "1970-01-01T00:00:00.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();
|
|
305688
305708
|
if (isNaN(buildTime))
|
|
305689
305709
|
return;
|
|
305690
305710
|
return Math.floor((Date.now() - buildTime) / 60000);
|
|
@@ -322339,7 +322359,7 @@ function getAssistantMessageFromError(error40, model, options2) {
|
|
|
322339
322359
|
if (process.env.USER_TYPE === "ant") {
|
|
322340
322360
|
const baseMessage = `API Error: 400 ${error40.message}
|
|
322341
322361
|
|
|
322342
|
-
Run /share and post the JSON file to ${{ VERSION: "0.2.
|
|
322362
|
+
Run /share and post the JSON file to ${{ VERSION: "0.2.57", BUILD_TIME: "1970-01-01T00:00:00.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}.`;
|
|
322343
322363
|
const rewindInstruction = getIsNonInteractiveSession() ? "" : " Then, use /rewind to recover the conversation.";
|
|
322344
322364
|
return createAssistantAPIErrorMessage({
|
|
322345
322365
|
content: baseMessage + rewindInstruction,
|
|
@@ -322375,7 +322395,7 @@ Run /share and post the JSON file to ${{ VERSION: "0.2.55", BUILD_TIME: "1970-01
|
|
|
322375
322395
|
if (process.env.USER_TYPE === "ant" && !process.env.THEUS_MODEL && error40 instanceof Error && error40.message.toLowerCase().includes("invalid model name")) {
|
|
322376
322396
|
const orgId = getOauthAccountInfo()?.organizationUuid;
|
|
322377
322397
|
const baseMsg = `[THEUS-INTERNAL] Your org isn't gated into the \`${model}\` model. Either run \`theus\` with \`THEUS_MODEL=${getDefaultMainLoopModelSetting()}\``;
|
|
322378
|
-
const msg = orgId ? `${baseMsg} or share your orgId (${orgId}) in ${{ VERSION: "0.2.
|
|
322398
|
+
const msg = orgId ? `${baseMsg} or share your orgId (${orgId}) in ${{ VERSION: "0.2.57", BUILD_TIME: "1970-01-01T00:00:00.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.57", BUILD_TIME: "1970-01-01T00:00:00.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.`;
|
|
322379
322399
|
return createAssistantAPIErrorMessage({
|
|
322380
322400
|
content: msg,
|
|
322381
322401
|
error: "invalid_request"
|
|
@@ -330299,7 +330319,7 @@ async function submitTranscriptShare(messages, trigger, appearanceId) {
|
|
|
330299
330319
|
} catch {}
|
|
330300
330320
|
const data = {
|
|
330301
330321
|
trigger,
|
|
330302
|
-
version: { VERSION: "0.2.
|
|
330322
|
+
version: { VERSION: "0.2.57", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
|
|
330303
330323
|
platform: process.platform,
|
|
330304
330324
|
transcript,
|
|
330305
330325
|
subagentTranscripts: Object.keys(subagentTranscripts).length > 0 ? subagentTranscripts : undefined,
|
|
@@ -330504,10 +330524,10 @@ Si el usuario indic\xF3 una duraci\xF3n, p\xE1sala en el par\xE1metro \`duration
|
|
|
330504
330524
|
|
|
330505
330525
|
// commands/issue/index.ts
|
|
330506
330526
|
function getCliVersion() {
|
|
330507
|
-
return { VERSION: "0.2.
|
|
330527
|
+
return { VERSION: "0.2.57", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.57", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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";
|
|
330508
330528
|
}
|
|
330509
330529
|
function getIssuesExplainer() {
|
|
330510
|
-
return { VERSION: "0.2.
|
|
330530
|
+
return { VERSION: "0.2.57", BUILD_TIME: "1970-01-01T00:00:00.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.57", BUILD_TIME: "1970-01-01T00:00:00.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";
|
|
330511
330531
|
}
|
|
330512
330532
|
function getActiveModelLabel() {
|
|
330513
330533
|
try {
|
|
@@ -333340,7 +333360,7 @@ function buildPrimarySection() {
|
|
|
333340
333360
|
});
|
|
333341
333361
|
return [{
|
|
333342
333362
|
label: "Version",
|
|
333343
|
-
value: { VERSION: "0.2.
|
|
333363
|
+
value: { VERSION: "0.2.57", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
|
|
333344
333364
|
}, {
|
|
333345
333365
|
label: "Session name",
|
|
333346
333366
|
value: nameValue
|
|
@@ -337156,7 +337176,7 @@ function Config({
|
|
|
337156
337176
|
}
|
|
337157
337177
|
})
|
|
337158
337178
|
}) : showSubmenu === "ChannelDowngrade" ? /* @__PURE__ */ jsx_runtime189.jsx(ChannelDowngradeDialog, {
|
|
337159
|
-
currentVersion: { VERSION: "0.2.
|
|
337179
|
+
currentVersion: { VERSION: "0.2.57", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
|
|
337160
337180
|
onChoice: (choice) => {
|
|
337161
337181
|
setShowSubmenu(null);
|
|
337162
337182
|
setTabsHidden(false);
|
|
@@ -337168,7 +337188,7 @@ function Config({
|
|
|
337168
337188
|
autoUpdatesChannel: "stable"
|
|
337169
337189
|
};
|
|
337170
337190
|
if (choice === "stay") {
|
|
337171
|
-
newSettings.minimumVersion = { VERSION: "0.2.
|
|
337191
|
+
newSettings.minimumVersion = { VERSION: "0.2.57", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION;
|
|
337172
337192
|
}
|
|
337173
337193
|
updateSettingsForSource("userSettings", newSettings);
|
|
337174
337194
|
setSettingsData((prev_27) => ({
|
|
@@ -345413,7 +345433,7 @@ function HelpV2(t0) {
|
|
|
345413
345433
|
let t6;
|
|
345414
345434
|
if ($2[31] !== tabs) {
|
|
345415
345435
|
t6 = /* @__PURE__ */ jsx_runtime217.jsx(Tabs, {
|
|
345416
|
-
title: `Theus v${{ VERSION: "0.2.
|
|
345436
|
+
title: `Theus v${{ VERSION: "0.2.57", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION}`,
|
|
345417
345437
|
color: "professionalBlue",
|
|
345418
345438
|
defaultTab: "general",
|
|
345419
345439
|
children: tabs
|
|
@@ -363665,7 +363685,7 @@ function Onboarding({
|
|
|
363665
363685
|
flexDirection: "column",
|
|
363666
363686
|
children: [
|
|
363667
363687
|
/* @__PURE__ */ jsx_runtime250.jsx(TheusBanner, {
|
|
363668
|
-
version: { VERSION: "0.2.
|
|
363688
|
+
version: { VERSION: "0.2.57", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
|
|
363669
363689
|
}),
|
|
363670
363690
|
/* @__PURE__ */ jsx_runtime250.jsxs(ThemedBox_default, {
|
|
363671
363691
|
flexDirection: "column",
|
|
@@ -363896,6 +363916,26 @@ function safeAccessToken() {
|
|
|
363896
363916
|
return;
|
|
363897
363917
|
}
|
|
363898
363918
|
}
|
|
363919
|
+
async function freshAccessToken() {
|
|
363920
|
+
try {
|
|
363921
|
+
await checkAndRefreshOAuthTokenIfNeeded();
|
|
363922
|
+
} catch {}
|
|
363923
|
+
const tokens = (() => {
|
|
363924
|
+
try {
|
|
363925
|
+
return getTheusAIOAuthTokens();
|
|
363926
|
+
} catch {
|
|
363927
|
+
return null;
|
|
363928
|
+
}
|
|
363929
|
+
})();
|
|
363930
|
+
const token = tokens?.accessToken;
|
|
363931
|
+
if (!token)
|
|
363932
|
+
return;
|
|
363933
|
+
const exp = tokens?.expiresAt;
|
|
363934
|
+
if (typeof exp === "number" && Number.isFinite(exp) && exp <= Date.now()) {
|
|
363935
|
+
return;
|
|
363936
|
+
}
|
|
363937
|
+
return token;
|
|
363938
|
+
}
|
|
363899
363939
|
function safeIsSubscriber() {
|
|
363900
363940
|
try {
|
|
363901
363941
|
return isTheusAISubscriber();
|
|
@@ -363957,12 +363997,57 @@ async function fetchCheckoutUrl(token, pack) {
|
|
|
363957
363997
|
},
|
|
363958
363998
|
body: JSON.stringify({ pack })
|
|
363959
363999
|
});
|
|
363960
|
-
|
|
363961
|
-
|
|
363962
|
-
|
|
363963
|
-
|
|
364000
|
+
const cuerpo = await res.json().catch(() => null);
|
|
364001
|
+
if (res.ok) {
|
|
364002
|
+
const url3 = cuerpo?.checkout_url;
|
|
364003
|
+
if (typeof url3 === "string" && url3.length > 0)
|
|
364004
|
+
return { ok: true, url: url3 };
|
|
364005
|
+
return {
|
|
364006
|
+
ok: false,
|
|
364007
|
+
motivo: "El servidor no devolvi\xF3 un enlace de pago.",
|
|
364008
|
+
reintentable: true,
|
|
364009
|
+
requiereLogin: false
|
|
364010
|
+
};
|
|
364011
|
+
}
|
|
364012
|
+
const codigo = String(cuerpo?.error ?? "");
|
|
364013
|
+
const detalle = String(cuerpo?.error_description ?? "").trim();
|
|
364014
|
+
if (res.status === 401 || codigo === "login_required") {
|
|
364015
|
+
return {
|
|
364016
|
+
ok: false,
|
|
364017
|
+
motivo: "Tu sesi\xF3n caduc\xF3. Vuelve a iniciar sesi\xF3n con /login y reintenta.",
|
|
364018
|
+
reintentable: false,
|
|
364019
|
+
requiereLogin: true
|
|
364020
|
+
};
|
|
364021
|
+
}
|
|
364022
|
+
if (res.status === 409) {
|
|
364023
|
+
return {
|
|
364024
|
+
ok: false,
|
|
364025
|
+
motivo: detalle || "Alcanzaste el m\xE1ximo de packs de este ciclo.",
|
|
364026
|
+
reintentable: false,
|
|
364027
|
+
requiereLogin: false
|
|
364028
|
+
};
|
|
364029
|
+
}
|
|
364030
|
+
if (res.status === 503) {
|
|
364031
|
+
return {
|
|
364032
|
+
ok: false,
|
|
364033
|
+
motivo: detalle || "La recarga no est\xE1 disponible ahora mismo.",
|
|
364034
|
+
reintentable: false,
|
|
364035
|
+
requiereLogin: false
|
|
364036
|
+
};
|
|
364037
|
+
}
|
|
364038
|
+
return {
|
|
364039
|
+
ok: false,
|
|
364040
|
+
motivo: detalle || `El servidor respondi\xF3 ${res.status}.`,
|
|
364041
|
+
reintentable: res.status >= 500,
|
|
364042
|
+
requiereLogin: false
|
|
364043
|
+
};
|
|
363964
364044
|
} catch {
|
|
363965
|
-
return
|
|
364045
|
+
return {
|
|
364046
|
+
ok: false,
|
|
364047
|
+
motivo: "No pude contactar con el servidor. Comprueba tu conexi\xF3n.",
|
|
364048
|
+
reintentable: true,
|
|
364049
|
+
requiereLogin: false
|
|
364050
|
+
};
|
|
363966
364051
|
}
|
|
363967
364052
|
}
|
|
363968
364053
|
function formatCreditos(n2) {
|
|
@@ -364152,6 +364237,7 @@ function RecargaUI({
|
|
|
364152
364237
|
const [listo, setListo] = import_react149.useState(false);
|
|
364153
364238
|
const doneRef = import_react149.useRef(false);
|
|
364154
364239
|
const cancelRef = import_react149.useRef(false);
|
|
364240
|
+
const enVueloRef = import_react149.useRef(false);
|
|
364155
364241
|
import_react149.useEffect(() => {
|
|
364156
364242
|
const t = setTimeout(() => setListo(true), 250);
|
|
364157
364243
|
return () => clearTimeout(t);
|
|
@@ -364165,7 +364251,7 @@ function RecargaUI({
|
|
|
364165
364251
|
import_react149.useEffect(() => {
|
|
364166
364252
|
let vivo = true;
|
|
364167
364253
|
(async () => {
|
|
364168
|
-
const token =
|
|
364254
|
+
const token = await freshAccessToken();
|
|
364169
364255
|
if (!token) {
|
|
364170
364256
|
if (vivo)
|
|
364171
364257
|
setFase({ t: "sin-sesion" });
|
|
@@ -364196,30 +364282,39 @@ function RecargaUI({
|
|
|
364196
364282
|
onDone(msg);
|
|
364197
364283
|
};
|
|
364198
364284
|
const confirmar = async () => {
|
|
364285
|
+
if (enVueloRef.current)
|
|
364286
|
+
return;
|
|
364199
364287
|
if (!estado)
|
|
364200
364288
|
return;
|
|
364201
364289
|
const pack = estado.packs[index];
|
|
364202
364290
|
if (!pack)
|
|
364203
364291
|
return;
|
|
364204
|
-
|
|
364292
|
+
enVueloRef.current = true;
|
|
364293
|
+
setFase({ t: "abriendo" });
|
|
364294
|
+
const token = await freshAccessToken();
|
|
364205
364295
|
if (!token) {
|
|
364296
|
+
enVueloRef.current = false;
|
|
364206
364297
|
setFase({ t: "sin-sesion" });
|
|
364207
364298
|
return;
|
|
364208
364299
|
}
|
|
364209
|
-
|
|
364300
|
+
if (cancelRef.current)
|
|
364301
|
+
return;
|
|
364210
364302
|
try {
|
|
364211
364303
|
logEvent("tengu_recarga_checkout_abierto", { pack: pack.id });
|
|
364212
364304
|
} catch {}
|
|
364213
|
-
const
|
|
364305
|
+
const res = await fetchCheckoutUrl(token, pack.id);
|
|
364214
364306
|
if (cancelRef.current)
|
|
364215
364307
|
return;
|
|
364216
|
-
if (!
|
|
364308
|
+
if (!res.ok) {
|
|
364309
|
+
if (res.reintentable)
|
|
364310
|
+
enVueloRef.current = false;
|
|
364217
364311
|
setFase({
|
|
364218
364312
|
t: "error",
|
|
364219
|
-
mensaje:
|
|
364313
|
+
mensaje: `${res.motivo} No se cobr\xF3 nada.` + (res.reintentable ? " Puedes reintentarlo." : "")
|
|
364220
364314
|
});
|
|
364221
364315
|
return;
|
|
364222
364316
|
}
|
|
364317
|
+
const url3 = res.url;
|
|
364223
364318
|
const abierto = await openBrowser(url3);
|
|
364224
364319
|
if (cancelRef.current)
|
|
364225
364320
|
return;
|
|
@@ -364317,17 +364412,58 @@ function RecargaUI({
|
|
|
364317
364412
|
});
|
|
364318
364413
|
}
|
|
364319
364414
|
if (fase.t === "sin-sesion") {
|
|
364415
|
+
const caducada = safeAccessToken() !== undefined;
|
|
364320
364416
|
return /* @__PURE__ */ jsx_runtime253.jsxs(ThemedBox_default, {
|
|
364321
364417
|
flexDirection: "column",
|
|
364322
364418
|
marginTop: 1,
|
|
364323
364419
|
paddingLeft: 1,
|
|
364324
364420
|
children: [
|
|
364325
|
-
/* @__PURE__ */ jsx_runtime253.
|
|
364326
|
-
children:
|
|
364421
|
+
/* @__PURE__ */ jsx_runtime253.jsxs(ThemedBox_default, {
|
|
364422
|
+
children: [
|
|
364423
|
+
/* @__PURE__ */ jsx_runtime253.jsxs(ThemedText, {
|
|
364424
|
+
color: "warning",
|
|
364425
|
+
bold: true,
|
|
364426
|
+
children: [
|
|
364427
|
+
"\xB7",
|
|
364428
|
+
" "
|
|
364429
|
+
]
|
|
364430
|
+
}),
|
|
364431
|
+
/* @__PURE__ */ jsx_runtime253.jsx(ThemedText, {
|
|
364432
|
+
bold: true,
|
|
364433
|
+
children: caducada ? "Tu sesi\xF3n caduc\xF3" : "A\xFAn no has iniciado sesi\xF3n"
|
|
364434
|
+
})
|
|
364435
|
+
]
|
|
364327
364436
|
}),
|
|
364328
|
-
/* @__PURE__ */ jsx_runtime253.jsx(
|
|
364329
|
-
|
|
364330
|
-
children:
|
|
364437
|
+
/* @__PURE__ */ jsx_runtime253.jsx(ThemedBox_default, {
|
|
364438
|
+
marginTop: 1,
|
|
364439
|
+
children: /* @__PURE__ */ jsx_runtime253.jsx(ThemedText, {
|
|
364440
|
+
dimColor: true,
|
|
364441
|
+
children: caducada ? "Para comprar cr\xE9ditos hace falta una sesi\xF3n v\xE1lida. No se cobr\xF3 nada." : "Para recargar cr\xE9ditos necesitas una sesi\xF3n de Theus."
|
|
364442
|
+
})
|
|
364443
|
+
}),
|
|
364444
|
+
/* @__PURE__ */ jsx_runtime253.jsx(ThemedBox_default, {
|
|
364445
|
+
marginTop: 1,
|
|
364446
|
+
children: /* @__PURE__ */ jsx_runtime253.jsxs(ThemedText, {
|
|
364447
|
+
children: [
|
|
364448
|
+
" ",
|
|
364449
|
+
/* @__PURE__ */ jsx_runtime253.jsx(ThemedText, {
|
|
364450
|
+
color: VIOLETA,
|
|
364451
|
+
bold: true,
|
|
364452
|
+
children: "/login"
|
|
364453
|
+
}),
|
|
364454
|
+
/* @__PURE__ */ jsx_runtime253.jsx(ThemedText, {
|
|
364455
|
+
dimColor: true,
|
|
364456
|
+
children: " (o: theus auth login)"
|
|
364457
|
+
})
|
|
364458
|
+
]
|
|
364459
|
+
})
|
|
364460
|
+
}),
|
|
364461
|
+
/* @__PURE__ */ jsx_runtime253.jsx(ThemedBox_default, {
|
|
364462
|
+
marginTop: 1,
|
|
364463
|
+
children: /* @__PURE__ */ jsx_runtime253.jsx(ThemedText, {
|
|
364464
|
+
dimColor: true,
|
|
364465
|
+
children: "Despu\xE9s vuelve a ejecutar /recarga. Esc para cerrar."
|
|
364466
|
+
})
|
|
364331
364467
|
})
|
|
364332
364468
|
]
|
|
364333
364469
|
});
|
|
@@ -364658,11 +364794,18 @@ function parseArgs2(raw) {
|
|
|
364658
364794
|
return { packId, confirmar };
|
|
364659
364795
|
}
|
|
364660
364796
|
var call33 = async (args) => {
|
|
364661
|
-
const token =
|
|
364797
|
+
const token = await freshAccessToken();
|
|
364662
364798
|
if (!token) {
|
|
364799
|
+
const caducada = safeAccessToken() !== undefined;
|
|
364663
364800
|
return {
|
|
364664
364801
|
type: "text",
|
|
364665
|
-
value: [
|
|
364802
|
+
value: [
|
|
364803
|
+
caducada ? "Tu sesi\xF3n caduc\xF3. Para comprar cr\xE9ditos hace falta una sesi\xF3n v\xE1lida (no se cobr\xF3 nada)." : "A\xFAn no has iniciado sesi\xF3n.",
|
|
364804
|
+
"",
|
|
364805
|
+
" theus auth login",
|
|
364806
|
+
"",
|
|
364807
|
+
"Despu\xE9s vuelve a ejecutar la recarga."
|
|
364808
|
+
].join(`
|
|
364666
364809
|
`)
|
|
364667
364810
|
};
|
|
364668
364811
|
}
|
|
@@ -364722,13 +364865,20 @@ var call33 = async (args) => {
|
|
|
364722
364865
|
`)
|
|
364723
364866
|
};
|
|
364724
364867
|
}
|
|
364725
|
-
const
|
|
364726
|
-
if (!
|
|
364868
|
+
const res = await fetchCheckoutUrl(token, packId);
|
|
364869
|
+
if (!res.ok) {
|
|
364727
364870
|
return {
|
|
364728
364871
|
type: "text",
|
|
364729
|
-
value:
|
|
364872
|
+
value: [
|
|
364873
|
+
`No pude generar el pago de ${pack.nombre}. No se cobr\xF3 nada.`,
|
|
364874
|
+
"",
|
|
364875
|
+
res.motivo,
|
|
364876
|
+
...res.requiereLogin ? ["", " theus auth login"] : []
|
|
364877
|
+
].join(`
|
|
364878
|
+
`)
|
|
364730
364879
|
};
|
|
364731
364880
|
}
|
|
364881
|
+
const checkoutUrl = res.url;
|
|
364732
364882
|
const opened = await openBrowser(checkoutUrl);
|
|
364733
364883
|
return {
|
|
364734
364884
|
type: "text",
|
|
@@ -364894,9 +365044,9 @@ function getAllReleaseNotes(changelogContent = getStoredChangelogFromMemory()) {
|
|
|
364894
365044
|
return [];
|
|
364895
365045
|
}
|
|
364896
365046
|
}
|
|
364897
|
-
async function checkForReleaseNotes(lastSeenVersion, currentVersion = { VERSION: "0.2.
|
|
365047
|
+
async function checkForReleaseNotes(lastSeenVersion, currentVersion = { VERSION: "0.2.57", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION) {
|
|
364898
365048
|
if (process.env.USER_TYPE === "ant") {
|
|
364899
|
-
const changelog = { VERSION: "0.2.
|
|
365049
|
+
const changelog = { VERSION: "0.2.57", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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;
|
|
364900
365050
|
if (changelog) {
|
|
364901
365051
|
const commits = changelog.trim().split(`
|
|
364902
365052
|
`).filter(Boolean);
|
|
@@ -369098,7 +369248,7 @@ var init_Messages = __esm(() => {
|
|
|
369098
369248
|
let t1;
|
|
369099
369249
|
if ($2[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
369100
369250
|
t1 = /* @__PURE__ */ jsx_runtime263.jsx(TheusSessionHeader, {
|
|
369101
|
-
version: { VERSION: "0.2.
|
|
369251
|
+
version: { VERSION: "0.2.57", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
|
|
369102
369252
|
});
|
|
369103
369253
|
$2[0] = t1;
|
|
369104
369254
|
} else {
|
|
@@ -397922,7 +398072,7 @@ async function captureMemoryDiagnostics(trigger, dumpNumber = 0) {
|
|
|
397922
398072
|
smapsRollup,
|
|
397923
398073
|
platform: process.platform,
|
|
397924
398074
|
nodeVersion: process.version,
|
|
397925
|
-
ccVersion: { VERSION: "0.2.
|
|
398075
|
+
ccVersion: { VERSION: "0.2.57", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
|
|
397926
398076
|
};
|
|
397927
398077
|
}
|
|
397928
398078
|
async function performHeapDump(trigger = "manual", dumpNumber = 0) {
|
|
@@ -398741,7 +398891,7 @@ var init_bridge_kick = __esm(() => {
|
|
|
398741
398891
|
var call65 = async () => {
|
|
398742
398892
|
return {
|
|
398743
398893
|
type: "text",
|
|
398744
|
-
value: { VERSION: "0.2.
|
|
398894
|
+
value: { VERSION: "0.2.57", BUILD_TIME: "1970-01-01T00:00:00.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.57", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.57", BUILD_TIME: "1970-01-01T00:00:00.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.57", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
|
|
398745
398895
|
};
|
|
398746
398896
|
}, version2, version_default;
|
|
398747
398897
|
var init_version = __esm(() => {
|
|
@@ -401342,7 +401492,7 @@ var SECRET_NAME_PATTERN, EXTRA_ENV_ALLOWLIST, REDACTED2 = "\u2039oculto\u203A",
|
|
|
401342
401492
|
const lines = [];
|
|
401343
401493
|
lines.push("## Entorno de ejecuci\xF3n");
|
|
401344
401494
|
lines.push("");
|
|
401345
|
-
const version3 = { VERSION: "0.2.
|
|
401495
|
+
const version3 = { VERSION: "0.2.57", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.57", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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";
|
|
401346
401496
|
lines.push(`- Versi\xF3n de Theus: ${version3}`);
|
|
401347
401497
|
lines.push(`- Directorio de trabajo: ${getCwd()}`);
|
|
401348
401498
|
lines.push(`- \xBFRepositorio git?: ${isGit ? "s\xED" : "no"}`);
|
|
@@ -403853,13 +404003,13 @@ async function updateReleaseBundle() {
|
|
|
403853
404003
|
await gracefulShutdown(1);
|
|
403854
404004
|
return;
|
|
403855
404005
|
}
|
|
403856
|
-
if (gte({ VERSION: "0.2.
|
|
403857
|
-
writeToStdout(source_default.green(`Theus is up to date (${{ VERSION: "0.2.
|
|
404006
|
+
if (gte({ VERSION: "0.2.57", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
|
|
404007
|
+
writeToStdout(source_default.green(`Theus is up to date (${{ VERSION: "0.2.57", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION})`) + `
|
|
403858
404008
|
`);
|
|
403859
404009
|
await gracefulShutdown(0);
|
|
403860
404010
|
return;
|
|
403861
404011
|
}
|
|
403862
|
-
writeToStdout(`New version available: ${latest} (current: ${{ VERSION: "0.2.
|
|
404012
|
+
writeToStdout(`New version available: ${latest} (current: ${{ VERSION: "0.2.57", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION})
|
|
403863
404013
|
`);
|
|
403864
404014
|
writeToStdout(`Installing update from theus.pe/dl...
|
|
403865
404015
|
`);
|
|
@@ -403893,7 +404043,7 @@ async function updateReleaseBundle() {
|
|
|
403893
404043
|
return;
|
|
403894
404044
|
}
|
|
403895
404045
|
cpSync(staged, bundleDir, { recursive: true, force: true });
|
|
403896
|
-
writeToStdout(source_default.green(`Successfully updated from ${{ VERSION: "0.2.
|
|
404046
|
+
writeToStdout(source_default.green(`Successfully updated from ${{ VERSION: "0.2.57", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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}`) + `
|
|
403897
404047
|
`);
|
|
403898
404048
|
await regenerateCompletionCache();
|
|
403899
404049
|
} finally {
|
|
@@ -403906,7 +404056,7 @@ async function updateReleaseBundle() {
|
|
|
403906
404056
|
async function update() {
|
|
403907
404057
|
logEvent("tengu_update_check", {});
|
|
403908
404058
|
await updateNaupa();
|
|
403909
|
-
writeToStdout(`Current version: ${{ VERSION: "0.2.
|
|
404059
|
+
writeToStdout(`Current version: ${{ VERSION: "0.2.57", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION}
|
|
403910
404060
|
`);
|
|
403911
404061
|
const channel2 = getInitialSettings()?.autoUpdatesChannel ?? "latest";
|
|
403912
404062
|
writeToStdout(`Checking for updates to ${channel2} version...
|
|
@@ -403985,8 +404135,8 @@ async function update() {
|
|
|
403985
404135
|
writeToStdout(`Theus is managed by Homebrew.
|
|
403986
404136
|
`);
|
|
403987
404137
|
const latest = await getLatestVersion(channel2);
|
|
403988
|
-
if (latest && !gte({ VERSION: "0.2.
|
|
403989
|
-
writeToStdout(`Update available: ${{ VERSION: "0.2.
|
|
404138
|
+
if (latest && !gte({ VERSION: "0.2.57", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
|
|
404139
|
+
writeToStdout(`Update available: ${{ VERSION: "0.2.57", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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}
|
|
403990
404140
|
`);
|
|
403991
404141
|
writeToStdout(`
|
|
403992
404142
|
`);
|
|
@@ -404002,8 +404152,8 @@ async function update() {
|
|
|
404002
404152
|
writeToStdout(`Theus is managed by winget.
|
|
404003
404153
|
`);
|
|
404004
404154
|
const latest = await getLatestVersion(channel2);
|
|
404005
|
-
if (latest && !gte({ VERSION: "0.2.
|
|
404006
|
-
writeToStdout(`Update available: ${{ VERSION: "0.2.
|
|
404155
|
+
if (latest && !gte({ VERSION: "0.2.57", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
|
|
404156
|
+
writeToStdout(`Update available: ${{ VERSION: "0.2.57", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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}
|
|
404007
404157
|
`);
|
|
404008
404158
|
writeToStdout(`
|
|
404009
404159
|
`);
|
|
@@ -404019,8 +404169,8 @@ async function update() {
|
|
|
404019
404169
|
writeToStdout(`Theus is managed by apk.
|
|
404020
404170
|
`);
|
|
404021
404171
|
const latest = await getLatestVersion(channel2);
|
|
404022
|
-
if (latest && !gte({ VERSION: "0.2.
|
|
404023
|
-
writeToStdout(`Update available: ${{ VERSION: "0.2.
|
|
404172
|
+
if (latest && !gte({ VERSION: "0.2.57", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
|
|
404173
|
+
writeToStdout(`Update available: ${{ VERSION: "0.2.57", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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}
|
|
404024
404174
|
`);
|
|
404025
404175
|
writeToStdout(`
|
|
404026
404176
|
`);
|
|
@@ -404085,11 +404235,11 @@ async function update() {
|
|
|
404085
404235
|
`);
|
|
404086
404236
|
await gracefulShutdown(1);
|
|
404087
404237
|
}
|
|
404088
|
-
if (result.latestVersion === { VERSION: "0.2.
|
|
404089
|
-
writeToStdout(source_default.green(`Theus is up to date (${{ VERSION: "0.2.
|
|
404238
|
+
if (result.latestVersion === { VERSION: "0.2.57", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION) {
|
|
404239
|
+
writeToStdout(source_default.green(`Theus is up to date (${{ VERSION: "0.2.57", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION})`) + `
|
|
404090
404240
|
`);
|
|
404091
404241
|
} else {
|
|
404092
|
-
writeToStdout(source_default.green(`Successfully updated from ${{ VERSION: "0.2.
|
|
404242
|
+
writeToStdout(source_default.green(`Successfully updated from ${{ VERSION: "0.2.57", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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}`) + `
|
|
404093
404243
|
`);
|
|
404094
404244
|
await regenerateCompletionCache();
|
|
404095
404245
|
}
|
|
@@ -404108,9 +404258,9 @@ async function update() {
|
|
|
404108
404258
|
await removeInstalledSymlink();
|
|
404109
404259
|
}
|
|
404110
404260
|
logForDebugging("update: Checking npm registry for latest version");
|
|
404111
|
-
logForDebugging(`update: Package URL: ${{ VERSION: "0.2.
|
|
404261
|
+
logForDebugging(`update: Package URL: ${{ VERSION: "0.2.57", BUILD_TIME: "1970-01-01T00:00:00.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}`);
|
|
404112
404262
|
const npmTag = channel2 === "stable" ? "stable" : "latest";
|
|
404113
|
-
const npmCommand = `npm view ${{ VERSION: "0.2.
|
|
404263
|
+
const npmCommand = `npm view ${{ VERSION: "0.2.57", BUILD_TIME: "1970-01-01T00:00:00.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`;
|
|
404114
404264
|
logForDebugging(`update: Running: ${npmCommand}`);
|
|
404115
404265
|
const latestVersion = await getLatestVersion(channel2);
|
|
404116
404266
|
logForDebugging(`update: Latest version from npm: ${latestVersion || "FAILED"}`);
|
|
@@ -404130,7 +404280,7 @@ async function update() {
|
|
|
404130
404280
|
`);
|
|
404131
404281
|
process.stderr.write(` \u2022 Corporate proxy/firewall blocking npm
|
|
404132
404282
|
`);
|
|
404133
|
-
if ({ VERSION: "0.2.
|
|
404283
|
+
if ({ VERSION: "0.2.57", BUILD_TIME: "1970-01-01T00:00:00.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.57", BUILD_TIME: "1970-01-01T00:00:00.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")) {
|
|
404134
404284
|
process.stderr.write(` \u2022 Internal/development build not published to npm
|
|
404135
404285
|
`);
|
|
404136
404286
|
}
|
|
@@ -404142,19 +404292,19 @@ async function update() {
|
|
|
404142
404292
|
`);
|
|
404143
404293
|
process.stderr.write(` \u2022 Run with --debug flag for more details
|
|
404144
404294
|
`);
|
|
404145
|
-
const packageName = { VERSION: "0.2.
|
|
404295
|
+
const packageName = { VERSION: "0.2.57", BUILD_TIME: "1970-01-01T00:00:00.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");
|
|
404146
404296
|
process.stderr.write(` \u2022 Manually check: npm view ${packageName} version
|
|
404147
404297
|
`);
|
|
404148
404298
|
process.stderr.write(` \u2022 Check if you need to login: npm whoami
|
|
404149
404299
|
`);
|
|
404150
404300
|
await gracefulShutdown(1);
|
|
404151
404301
|
}
|
|
404152
|
-
if (gte({ VERSION: "0.2.
|
|
404153
|
-
writeToStdout(source_default.green(`Theus is up to date (${{ VERSION: "0.2.
|
|
404302
|
+
if (gte({ VERSION: "0.2.57", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
|
|
404303
|
+
writeToStdout(source_default.green(`Theus is up to date (${{ VERSION: "0.2.57", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION})`) + `
|
|
404154
404304
|
`);
|
|
404155
404305
|
await gracefulShutdown(0);
|
|
404156
404306
|
}
|
|
404157
|
-
writeToStdout(`New version available: ${latestVersion} (current: ${{ VERSION: "0.2.
|
|
404307
|
+
writeToStdout(`New version available: ${latestVersion} (current: ${{ VERSION: "0.2.57", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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
404308
|
`);
|
|
404159
404309
|
writeToStdout(`Installing update...
|
|
404160
404310
|
`);
|
|
@@ -404199,7 +404349,7 @@ async function update() {
|
|
|
404199
404349
|
logForDebugging(`update: Installation status: ${status2}`);
|
|
404200
404350
|
switch (status2) {
|
|
404201
404351
|
case "success":
|
|
404202
|
-
writeToStdout(source_default.green(`Successfully updated from ${{ VERSION: "0.2.
|
|
404352
|
+
writeToStdout(source_default.green(`Successfully updated from ${{ VERSION: "0.2.57", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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}`) + `
|
|
404203
404353
|
`);
|
|
404204
404354
|
await regenerateCompletionCache();
|
|
404205
404355
|
break;
|
|
@@ -404209,7 +404359,7 @@ async function update() {
|
|
|
404209
404359
|
if (useLocalUpdate) {
|
|
404210
404360
|
process.stderr.write(`Try manually updating with:
|
|
404211
404361
|
`);
|
|
404212
|
-
process.stderr.write(` cd ~/.theus/local && npm update ${{ VERSION: "0.2.
|
|
404362
|
+
process.stderr.write(` cd ~/.theus/local && npm update ${{ VERSION: "0.2.57", BUILD_TIME: "1970-01-01T00:00:00.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}
|
|
404213
404363
|
`);
|
|
404214
404364
|
} else {
|
|
404215
404365
|
process.stderr.write(`Try running with sudo or fix npm permissions
|
|
@@ -404225,7 +404375,7 @@ async function update() {
|
|
|
404225
404375
|
if (useLocalUpdate) {
|
|
404226
404376
|
process.stderr.write(`Try manually updating with:
|
|
404227
404377
|
`);
|
|
404228
|
-
process.stderr.write(` cd ~/.theus/local && npm update ${{ VERSION: "0.2.
|
|
404378
|
+
process.stderr.write(` cd ~/.theus/local && npm update ${{ VERSION: "0.2.57", BUILD_TIME: "1970-01-01T00:00:00.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}
|
|
404229
404379
|
`);
|
|
404230
404380
|
} else {
|
|
404231
404381
|
process.stderr.write(`Or consider using native installation with: theus install
|
|
@@ -414065,7 +414215,7 @@ var init_sessionStorage = __esm(() => {
|
|
|
414065
414215
|
init_settings2();
|
|
414066
414216
|
init_slowOperations();
|
|
414067
414217
|
init_uuid();
|
|
414068
|
-
VERSION4 = { VERSION: "0.2.
|
|
414218
|
+
VERSION4 = { VERSION: "0.2.57", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION;
|
|
414069
414219
|
MAX_TOMBSTONE_REWRITE_BYTES = 50 * 1024 * 1024;
|
|
414070
414220
|
SKIP_FIRST_PROMPT_PATTERN2 = /^(?:\s*<[a-z][\w-]*[\s>]|\[Request interrupted by user[^\]]*\])/;
|
|
414071
414221
|
EPHEMERAL_PROGRESS_TYPES = new Set([
|
|
@@ -415270,7 +415420,7 @@ var init_filesystem = __esm(() => {
|
|
|
415270
415420
|
});
|
|
415271
415421
|
getBundledSkillsRoot = memoize_default(function getBundledSkillsRoot2() {
|
|
415272
415422
|
const nonce = randomBytes21(16).toString("hex");
|
|
415273
|
-
return join150(getTheusTempDir(), "bundled-skills", { VERSION: "0.2.
|
|
415423
|
+
return join150(getTheusTempDir(), "bundled-skills", { VERSION: "0.2.57", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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);
|
|
415274
415424
|
});
|
|
415275
415425
|
getResolvedWorkingDirPaths = memoize_default(getPathsForPermissionCheck);
|
|
415276
415426
|
});
|
|
@@ -420449,7 +420599,7 @@ function getSimpleDoingTasksSection() {
|
|
|
420449
420599
|
];
|
|
420450
420600
|
const userHelpSubitems = [
|
|
420451
420601
|
`/help: Get help with using Theus`,
|
|
420452
|
-
`To give feedback, users should ${{ VERSION: "0.2.
|
|
420602
|
+
`To give feedback, users should ${{ VERSION: "0.2.57", BUILD_TIME: "1970-01-01T00:00:00.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}`
|
|
420453
420603
|
];
|
|
420454
420604
|
const items = [
|
|
420455
420605
|
`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.`,
|
|
@@ -421349,7 +421499,7 @@ function computeFingerprint(messageText, version3) {
|
|
|
421349
421499
|
}
|
|
421350
421500
|
function computeFingerprintFromMessages(messages) {
|
|
421351
421501
|
const firstMessageText = extractFirstMessageText(messages);
|
|
421352
|
-
return computeFingerprint(firstMessageText, { VERSION: "0.2.
|
|
421502
|
+
return computeFingerprint(firstMessageText, { VERSION: "0.2.57", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION);
|
|
421353
421503
|
}
|
|
421354
421504
|
var FINGERPRINT_SALT = "59cf53e54c78";
|
|
421355
421505
|
var init_fingerprint = () => {};
|
|
@@ -423972,7 +424122,7 @@ async function sideQuery(opts) {
|
|
|
423972
424122
|
betas.push(STRUCTURED_OUTPUTS_BETA_HEADER);
|
|
423973
424123
|
}
|
|
423974
424124
|
const messageText = extractFirstUserMessageText(messages);
|
|
423975
|
-
const fingerprint = computeFingerprint(messageText, { VERSION: "0.2.
|
|
424125
|
+
const fingerprint = computeFingerprint(messageText, { VERSION: "0.2.57", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION);
|
|
423976
424126
|
const attributionHeader = getAttributionHeader(fingerprint);
|
|
423977
424127
|
const systemBlocks = [
|
|
423978
424128
|
attributionHeader ? { type: "text", text: attributionHeader } : null,
|
|
@@ -425275,7 +425425,7 @@ async function handleMemories(state) {
|
|
|
425275
425425
|
async function runProjectContextMcpServer() {
|
|
425276
425426
|
const projectRoot = process.env.THEUS_PROJECT_ROOT || process.cwd();
|
|
425277
425427
|
const state = new ProjectContextState(projectRoot);
|
|
425278
|
-
const server2 = new Server({ name: SERVER_NAME, version: { VERSION: "0.2.
|
|
425428
|
+
const server2 = new Server({ name: SERVER_NAME, version: { VERSION: "0.2.57", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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: {} } });
|
|
425279
425429
|
server2.setRequestHandler(ListToolsRequestSchema, async () => ({
|
|
425280
425430
|
tools: TOOL_DEFINITIONS.map((t) => ({
|
|
425281
425431
|
name: t.name,
|
|
@@ -427257,7 +427407,7 @@ function createBridgeLogger(options2) {
|
|
|
427257
427407
|
connectUrl = buildBridgeConnectUrl(environmentId, cachedIngressUrl);
|
|
427258
427408
|
regenerateQr(connectUrl);
|
|
427259
427409
|
if (verbose) {
|
|
427260
|
-
write(source_default.dim(`Remote Control`) + ` v${{ VERSION: "0.2.
|
|
427410
|
+
write(source_default.dim(`Remote Control`) + ` v${{ VERSION: "0.2.57", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION}
|
|
427261
427411
|
`);
|
|
427262
427412
|
}
|
|
427263
427413
|
if (verbose) {
|
|
@@ -428230,7 +428380,7 @@ function appendToLog(path19, message) {
|
|
|
428230
428380
|
cwd: getFsImplementation().cwd(),
|
|
428231
428381
|
userType: process.env.USER_TYPE,
|
|
428232
428382
|
sessionId: getSessionId(),
|
|
428233
|
-
version: { VERSION: "0.2.
|
|
428383
|
+
version: { VERSION: "0.2.57", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
|
|
428234
428384
|
};
|
|
428235
428385
|
getLogWriter(path19).write(messageWithTimestamp);
|
|
428236
428386
|
}
|
|
@@ -429500,7 +429650,7 @@ Spawn mode for this project:
|
|
|
429500
429650
|
const api2 = createBridgeApiClient({
|
|
429501
429651
|
baseUrl,
|
|
429502
429652
|
getAccessToken: getBridgeAccessToken2,
|
|
429503
|
-
runnerVersion: { VERSION: "0.2.
|
|
429653
|
+
runnerVersion: { VERSION: "0.2.57", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
|
|
429504
429654
|
onDebug: logForDebugging,
|
|
429505
429655
|
onAuth401: handleOAuth401Error2,
|
|
429506
429656
|
getTrustedDeviceToken
|
|
@@ -429738,7 +429888,7 @@ async function runBridgeHeadless(opts, signal) {
|
|
|
429738
429888
|
const api2 = createBridgeApiClient({
|
|
429739
429889
|
baseUrl,
|
|
429740
429890
|
getAccessToken: opts.getAccessToken,
|
|
429741
|
-
runnerVersion: { VERSION: "0.2.
|
|
429891
|
+
runnerVersion: { VERSION: "0.2.57", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
|
|
429742
429892
|
onDebug: log2,
|
|
429743
429893
|
onAuth401: opts.onAuth401,
|
|
429744
429894
|
getTrustedDeviceToken
|
|
@@ -433804,7 +433954,7 @@ function buildSystemInitMessage(inputs) {
|
|
|
433804
433954
|
slash_commands: inputs.commands.filter((c5) => c5.userInvocable !== false).map((c5) => c5.name),
|
|
433805
433955
|
apiKeySource: getTheusApiKeyWithSource().source,
|
|
433806
433956
|
betas: getSdkBetas(),
|
|
433807
|
-
theus_code_version: { VERSION: "0.2.
|
|
433957
|
+
theus_code_version: { VERSION: "0.2.57", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
|
|
433808
433958
|
output_style: outputStyle2,
|
|
433809
433959
|
agents: inputs.agents.map((agent) => agent.agentType),
|
|
433810
433960
|
skills: inputs.skills.filter((s) => s.userInvocable !== false).map((skill) => skill.name),
|
|
@@ -433844,8 +433994,8 @@ async function getEnvLessBridgeConfig() {
|
|
|
433844
433994
|
}
|
|
433845
433995
|
async function checkEnvLessBridgeMinVersion() {
|
|
433846
433996
|
const cfg = await getEnvLessBridgeConfig();
|
|
433847
|
-
if (cfg.min_version && lt({ VERSION: "0.2.
|
|
433848
|
-
return `Your version of Theus (${{ VERSION: "0.2.
|
|
433997
|
+
if (cfg.min_version && lt({ VERSION: "0.2.57", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
|
|
433998
|
+
return `Your version of Theus (${{ VERSION: "0.2.57", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.
|
|
433849
433999
|
Version ${cfg.min_version} or higher is required. Run \`theus update\` to update.`;
|
|
433850
434000
|
}
|
|
433851
434001
|
return null;
|
|
@@ -436169,7 +436319,7 @@ async function initBridgeCore(params) {
|
|
|
436169
436319
|
const rawApi = createBridgeApiClient({
|
|
436170
436320
|
baseUrl,
|
|
436171
436321
|
getAccessToken,
|
|
436172
|
-
runnerVersion: { VERSION: "0.2.
|
|
436322
|
+
runnerVersion: { VERSION: "0.2.57", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
|
|
436173
436323
|
onDebug: logForDebugging,
|
|
436174
436324
|
onAuth401,
|
|
436175
436325
|
getTrustedDeviceToken
|
|
@@ -452912,7 +453062,7 @@ var init_useVoiceEnabled = __esm(() => {
|
|
|
452912
453062
|
function getSemverPart(version3) {
|
|
452913
453063
|
return `${import_semver14.major(version3, { loose: true })}.${import_semver14.minor(version3, { loose: true })}.${import_semver14.patch(version3, { loose: true })}`;
|
|
452914
453064
|
}
|
|
452915
|
-
function useUpdateNotification(updatedVersion, initialVersion = { VERSION: "0.2.
|
|
453065
|
+
function useUpdateNotification(updatedVersion, initialVersion = { VERSION: "0.2.57", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION) {
|
|
452916
453066
|
const [lastNotifiedSemver, setLastNotifiedSemver] = import_react233.useState(() => getSemverPart(initialVersion));
|
|
452917
453067
|
if (!updatedVersion) {
|
|
452918
453068
|
return null;
|
|
@@ -452952,7 +453102,7 @@ function AutoUpdater({
|
|
|
452952
453102
|
return;
|
|
452953
453103
|
}
|
|
452954
453104
|
if (false) {}
|
|
452955
|
-
const currentVersion = { VERSION: "0.2.
|
|
453105
|
+
const currentVersion = { VERSION: "0.2.57", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION;
|
|
452956
453106
|
const channel2 = getInitialSettings()?.autoUpdatesChannel ?? "latest";
|
|
452957
453107
|
let latestVersion = await getLatestVersion(channel2);
|
|
452958
453108
|
const isDisabled2 = isAutoUpdaterDisabled();
|
|
@@ -453088,7 +453238,7 @@ function AutoUpdater({
|
|
|
453088
453238
|
" ",
|
|
453089
453239
|
/* @__PURE__ */ jsx_runtime409.jsx(ThemedText, {
|
|
453090
453240
|
bold: true,
|
|
453091
|
-
children: hasLocalInstall ? `cd ~/.theus/local && npm update ${{ VERSION: "0.2.
|
|
453241
|
+
children: hasLocalInstall ? `cd ~/.theus/local && npm update ${{ VERSION: "0.2.57", BUILD_TIME: "1970-01-01T00:00:00.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.57", BUILD_TIME: "1970-01-01T00:00:00.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}`
|
|
453092
453242
|
})
|
|
453093
453243
|
]
|
|
453094
453244
|
})
|
|
@@ -453165,12 +453315,12 @@ function NativeAutoUpdater({
|
|
|
453165
453315
|
logEvent("tengu_native_auto_updater_start", {});
|
|
453166
453316
|
try {
|
|
453167
453317
|
const maxVersion = await getMaxVersion();
|
|
453168
|
-
if (maxVersion && gt({ VERSION: "0.2.
|
|
453318
|
+
if (maxVersion && gt({ VERSION: "0.2.57", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
|
|
453169
453319
|
const msg = await getMaxVersionMessage();
|
|
453170
453320
|
setMaxVersionIssue(msg ?? "affects your version");
|
|
453171
453321
|
}
|
|
453172
453322
|
const result = await installLatest(channel2);
|
|
453173
|
-
const currentVersion = { VERSION: "0.2.
|
|
453323
|
+
const currentVersion = { VERSION: "0.2.57", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION;
|
|
453174
453324
|
const latencyMs = Date.now() - startTime2;
|
|
453175
453325
|
if (result.lockFailed) {
|
|
453176
453326
|
logEvent("tengu_native_auto_updater_lock_contention", {
|
|
@@ -453307,17 +453457,17 @@ function PackageManagerAutoUpdater(t0) {
|
|
|
453307
453457
|
const maxVersion = await getMaxVersion();
|
|
453308
453458
|
if (maxVersion && latest && gt(latest, maxVersion)) {
|
|
453309
453459
|
logForDebugging(`PackageManagerAutoUpdater: maxVersion ${maxVersion} is set, capping update from ${latest} to ${maxVersion}`);
|
|
453310
|
-
if (gte({ VERSION: "0.2.
|
|
453311
|
-
logForDebugging(`PackageManagerAutoUpdater: current version ${{ VERSION: "0.2.
|
|
453460
|
+
if (gte({ VERSION: "0.2.57", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
|
|
453461
|
+
logForDebugging(`PackageManagerAutoUpdater: current version ${{ VERSION: "0.2.57", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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`);
|
|
453312
453462
|
setUpdateAvailable(false);
|
|
453313
453463
|
return;
|
|
453314
453464
|
}
|
|
453315
453465
|
latest = maxVersion;
|
|
453316
453466
|
}
|
|
453317
|
-
const hasUpdate = latest && !gte({ VERSION: "0.2.
|
|
453467
|
+
const hasUpdate = latest && !gte({ VERSION: "0.2.57", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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);
|
|
453318
453468
|
setUpdateAvailable(!!hasUpdate);
|
|
453319
453469
|
if (hasUpdate) {
|
|
453320
|
-
logForDebugging(`PackageManagerAutoUpdater: Update available ${{ VERSION: "0.2.
|
|
453470
|
+
logForDebugging(`PackageManagerAutoUpdater: Update available ${{ VERSION: "0.2.57", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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}`);
|
|
453321
453471
|
}
|
|
453322
453472
|
};
|
|
453323
453473
|
$2[0] = t1;
|
|
@@ -453351,7 +453501,7 @@ function PackageManagerAutoUpdater(t0) {
|
|
|
453351
453501
|
wrap: "truncate",
|
|
453352
453502
|
children: [
|
|
453353
453503
|
"currentVersion: ",
|
|
453354
|
-
{ VERSION: "0.2.
|
|
453504
|
+
{ VERSION: "0.2.57", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
|
|
453355
453505
|
]
|
|
453356
453506
|
});
|
|
453357
453507
|
$2[3] = verbose;
|
|
@@ -461225,7 +461375,7 @@ function buildStatusLineCommandInput(permissionMode, exceeds200kTokens, settings
|
|
|
461225
461375
|
project_dir: getOriginalCwd(),
|
|
461226
461376
|
added_dirs: addedDirs
|
|
461227
461377
|
},
|
|
461228
|
-
version: { VERSION: "0.2.
|
|
461378
|
+
version: { VERSION: "0.2.57", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
|
|
461229
461379
|
output_style: {
|
|
461230
461380
|
name: outputStyleName
|
|
461231
461381
|
},
|
|
@@ -485505,7 +485655,7 @@ function completeOnboarding() {
|
|
|
485505
485655
|
saveGlobalConfig((current) => ({
|
|
485506
485656
|
...current,
|
|
485507
485657
|
hasCompletedOnboarding: true,
|
|
485508
|
-
lastOnboardingVersion: { VERSION: "0.2.
|
|
485658
|
+
lastOnboardingVersion: { VERSION: "0.2.57", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
|
|
485509
485659
|
}));
|
|
485510
485660
|
}
|
|
485511
485661
|
function showDialog(root2, renderer) {
|
|
@@ -496456,7 +496606,7 @@ async function startMCPServer(cwd3, debug3, verbose) {
|
|
|
496456
496606
|
setCwd(cwd3);
|
|
496457
496607
|
const server2 = new Server({
|
|
496458
496608
|
name: "theus/tengu",
|
|
496459
|
-
version: { VERSION: "0.2.
|
|
496609
|
+
version: { VERSION: "0.2.57", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
|
|
496460
496610
|
}, {
|
|
496461
496611
|
capabilities: {
|
|
496462
496612
|
tools: {}
|
|
@@ -497898,7 +498048,7 @@ async function setupTokenHandler(root2) {
|
|
|
497898
498048
|
gap: 1,
|
|
497899
498049
|
children: [
|
|
497900
498050
|
/* @__PURE__ */ jsx_runtime495.jsx(TheusBanner, {
|
|
497901
|
-
version: { VERSION: "0.2.
|
|
498051
|
+
version: { VERSION: "0.2.57", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
|
|
497902
498052
|
}),
|
|
497903
498053
|
showAuthWarning && /* @__PURE__ */ jsx_runtime495.jsxs(ThemedBox_default, {
|
|
497904
498054
|
flexDirection: "column",
|
|
@@ -499380,7 +499530,7 @@ ${assistantAddendum}` : assistantAddendum;
|
|
|
499380
499530
|
}
|
|
499381
499531
|
}
|
|
499382
499532
|
logForDiagnosticsNoPII("info", "started", {
|
|
499383
|
-
version: { VERSION: "0.2.
|
|
499533
|
+
version: { VERSION: "0.2.57", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
|
|
499384
499534
|
is_native_binary: isInBundledMode()
|
|
499385
499535
|
});
|
|
499386
499536
|
registerCleanup(async () => {
|
|
@@ -500248,7 +500398,7 @@ Usage: theus --remote "your task description"`, () => gracefulShutdown(1));
|
|
|
500248
500398
|
pendingHookMessages
|
|
500249
500399
|
}, renderAndRun);
|
|
500250
500400
|
}
|
|
500251
|
-
}).version(`${{ VERSION: "0.2.
|
|
500401
|
+
}).version(`${{ VERSION: "0.2.57", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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");
|
|
500252
500402
|
program2.option("-w, --worktree [name]", "Crea un nuevo worktree de git para esta sesi\xF3n (opcionalmente indica un nombre)");
|
|
500253
500403
|
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.");
|
|
500254
500404
|
if (canUserConfigureAdvisor()) {
|
|
@@ -500800,7 +500950,7 @@ if (false) {}
|
|
|
500800
500950
|
async function main2() {
|
|
500801
500951
|
const args = process.argv.slice(2);
|
|
500802
500952
|
if (args.length === 1 && (args[0] === "--version" || args[0] === "-v" || args[0] === "-V")) {
|
|
500803
|
-
console.log(`${{ VERSION: "0.2.
|
|
500953
|
+
console.log(`${{ VERSION: "0.2.57", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)`);
|
|
500804
500954
|
return;
|
|
500805
500955
|
}
|
|
500806
500956
|
const {
|