theus-cli 0.2.58 → 0.2.59
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 +210 -138
- 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.59", BUILD_TIME: "1970-01-01T00:00:00.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.59", BUILD_TIME: "1970-01-01T00:00:00.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.59", BUILD_TIME: "1970-01-01T00:00:00.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.59", BUILD_TIME: "1970-01-01T00:00:00.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.59", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.59", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.59", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.59", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.59", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.59", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.59", BUILD_TIME: "1970-01-01T00:00:00.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.59", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.59", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.59", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.59", BUILD_TIME: "1970-01-01T00:00:00.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.59", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.59", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.59", BUILD_TIME: "1970-01-01T00:00:00.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.59", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.59", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.59", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.59", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.59", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.59", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.59", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.59", BUILD_TIME: "1970-01-01T00:00:00.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.59", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.59", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.59", BUILD_TIME: "1970-01-01T00:00:00.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.59", BUILD_TIME: "1970-01-01T00:00:00.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.59", BUILD_TIME: "1970-01-01T00:00:00.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.59", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.59", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.59", BUILD_TIME: "1970-01-01T00:00:00.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.59", BUILD_TIME: "1970-01-01T00:00:00.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.59", BUILD_TIME: "1970-01-01T00:00:00.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.59", BUILD_TIME: "1970-01-01T00:00:00.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.59", BUILD_TIME: "1970-01-01T00:00:00.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.59", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.59", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.59", BUILD_TIME: "1970-01-01T00:00:00.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.59", BUILD_TIME: "1970-01-01T00:00:00.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.59", BUILD_TIME: "1970-01-01T00:00:00.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.59", BUILD_TIME: "1970-01-01T00:00:00.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.59", BUILD_TIME: "1970-01-01T00:00:00.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.59", BUILD_TIME: "1970-01-01T00:00:00.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.59", BUILD_TIME: "1970-01-01T00:00:00.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.59", BUILD_TIME: "1970-01-01T00:00:00.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.59", BUILD_TIME: "1970-01-01T00:00:00.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.59", BUILD_TIME: "1970-01-01T00:00:00.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.59", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.59", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.59", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.59", BUILD_TIME: "1970-01-01T00:00:00.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.59", BUILD_TIME: "1970-01-01T00:00:00.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.59", BUILD_TIME: "1970-01-01T00:00:00.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,17 @@ var init_ConsoleOAuthFlow = __esm(() => {
|
|
|
230683
230683
|
var NOVEDADES;
|
|
230684
230684
|
var init_data = __esm(() => {
|
|
230685
230685
|
NOVEDADES = [
|
|
230686
|
+
{
|
|
230687
|
+
version: "v0.2.59",
|
|
230688
|
+
fecha: "2026-07-26",
|
|
230689
|
+
titulo: "La recarga ya no te manda a un comando que no existe",
|
|
230690
|
+
puntos: [
|
|
230691
|
+
"El texto de ayuda de \xAB/recarga\xBB te dec\xEDa \xABtheus recarga turbo\xBB, que NO es un comando: en lugar de comprar, tu frase llegaba al modelo como si fuera una pregunta \u2014 gastabas una llamada, no aparec\xEDa ning\xFAn pago y la compra mor\xEDa en silencio. Peor que un error. Ahora imprime la orden real, que adem\xE1s es la misma que usamos para probarlo.",
|
|
230692
|
+
"Enter tampoco puede lanzar un cobro cuando ya agotaste los packs del ciclo: antes la pantalla lo avisaba pero la tecla segu\xEDa disparando la petici\xF3n, y el error que sal\xEDa no dec\xEDa la verdad. Ahora se bloquea antes de tocar la red.",
|
|
230693
|
+
"Y las peticiones llevan tiempo l\xEDmite: si el servidor no responde, ya no te quedas mirando \xABabriendo el pago\xBB sin salida.",
|
|
230694
|
+
"Si los precios que se muestran no vienen del servidor (por ejemplo si no hay conexi\xF3n), se avisa de que son de referencia y que el importe final lo confirma el pago."
|
|
230695
|
+
]
|
|
230696
|
+
},
|
|
230686
230697
|
{
|
|
230687
230698
|
version: "v0.2.58",
|
|
230688
230699
|
fecha: "2026-07-26",
|
|
@@ -305712,9 +305723,9 @@ function getTheusEnvMetadata() {
|
|
|
305712
305723
|
};
|
|
305713
305724
|
}
|
|
305714
305725
|
function getBuildAgeMinutes() {
|
|
305715
|
-
if (!{ VERSION: "0.2.
|
|
305726
|
+
if (!{ VERSION: "0.2.59", BUILD_TIME: "1970-01-01T00:00:00.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)
|
|
305716
305727
|
return;
|
|
305717
|
-
const buildTime = new Date({ VERSION: "0.2.
|
|
305728
|
+
const buildTime = new Date({ VERSION: "0.2.59", BUILD_TIME: "1970-01-01T00:00:00.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();
|
|
305718
305729
|
if (isNaN(buildTime))
|
|
305719
305730
|
return;
|
|
305720
305731
|
return Math.floor((Date.now() - buildTime) / 60000);
|
|
@@ -322369,7 +322380,7 @@ function getAssistantMessageFromError(error40, model, options2) {
|
|
|
322369
322380
|
if (process.env.USER_TYPE === "ant") {
|
|
322370
322381
|
const baseMessage = `API Error: 400 ${error40.message}
|
|
322371
322382
|
|
|
322372
|
-
Run /share and post the JSON file to ${{ VERSION: "0.2.
|
|
322383
|
+
Run /share and post the JSON file to ${{ VERSION: "0.2.59", BUILD_TIME: "1970-01-01T00:00:00.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}.`;
|
|
322373
322384
|
const rewindInstruction = getIsNonInteractiveSession() ? "" : " Then, use /rewind to recover the conversation.";
|
|
322374
322385
|
return createAssistantAPIErrorMessage({
|
|
322375
322386
|
content: baseMessage + rewindInstruction,
|
|
@@ -322405,7 +322416,7 @@ Run /share and post the JSON file to ${{ VERSION: "0.2.58", BUILD_TIME: "1970-01
|
|
|
322405
322416
|
if (process.env.USER_TYPE === "ant" && !process.env.THEUS_MODEL && error40 instanceof Error && error40.message.toLowerCase().includes("invalid model name")) {
|
|
322406
322417
|
const orgId = getOauthAccountInfo()?.organizationUuid;
|
|
322407
322418
|
const baseMsg = `[THEUS-INTERNAL] Your org isn't gated into the \`${model}\` model. Either run \`theus\` with \`THEUS_MODEL=${getDefaultMainLoopModelSetting()}\``;
|
|
322408
|
-
const msg = orgId ? `${baseMsg} or share your orgId (${orgId}) in ${{ VERSION: "0.2.
|
|
322419
|
+
const msg = orgId ? `${baseMsg} or share your orgId (${orgId}) in ${{ VERSION: "0.2.59", BUILD_TIME: "1970-01-01T00:00:00.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.59", BUILD_TIME: "1970-01-01T00:00:00.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.`;
|
|
322409
322420
|
return createAssistantAPIErrorMessage({
|
|
322410
322421
|
content: msg,
|
|
322411
322422
|
error: "invalid_request"
|
|
@@ -330329,7 +330340,7 @@ async function submitTranscriptShare(messages, trigger, appearanceId) {
|
|
|
330329
330340
|
} catch {}
|
|
330330
330341
|
const data = {
|
|
330331
330342
|
trigger,
|
|
330332
|
-
version: { VERSION: "0.2.
|
|
330343
|
+
version: { VERSION: "0.2.59", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
|
|
330333
330344
|
platform: process.platform,
|
|
330334
330345
|
transcript,
|
|
330335
330346
|
subagentTranscripts: Object.keys(subagentTranscripts).length > 0 ? subagentTranscripts : undefined,
|
|
@@ -330534,10 +330545,10 @@ Si el usuario indic\xF3 una duraci\xF3n, p\xE1sala en el par\xE1metro \`duration
|
|
|
330534
330545
|
|
|
330535
330546
|
// commands/issue/index.ts
|
|
330536
330547
|
function getCliVersion() {
|
|
330537
|
-
return { VERSION: "0.2.
|
|
330548
|
+
return { VERSION: "0.2.59", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.59", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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";
|
|
330538
330549
|
}
|
|
330539
330550
|
function getIssuesExplainer() {
|
|
330540
|
-
return { VERSION: "0.2.
|
|
330551
|
+
return { VERSION: "0.2.59", BUILD_TIME: "1970-01-01T00:00:00.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.59", BUILD_TIME: "1970-01-01T00:00:00.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";
|
|
330541
330552
|
}
|
|
330542
330553
|
function getActiveModelLabel() {
|
|
330543
330554
|
try {
|
|
@@ -333370,7 +333381,7 @@ function buildPrimarySection() {
|
|
|
333370
333381
|
});
|
|
333371
333382
|
return [{
|
|
333372
333383
|
label: "Version",
|
|
333373
|
-
value: { VERSION: "0.2.
|
|
333384
|
+
value: { VERSION: "0.2.59", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
|
|
333374
333385
|
}, {
|
|
333375
333386
|
label: "Session name",
|
|
333376
333387
|
value: nameValue
|
|
@@ -337186,7 +337197,7 @@ function Config({
|
|
|
337186
337197
|
}
|
|
337187
337198
|
})
|
|
337188
337199
|
}) : showSubmenu === "ChannelDowngrade" ? /* @__PURE__ */ jsx_runtime189.jsx(ChannelDowngradeDialog, {
|
|
337189
|
-
currentVersion: { VERSION: "0.2.
|
|
337200
|
+
currentVersion: { VERSION: "0.2.59", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
|
|
337190
337201
|
onChoice: (choice) => {
|
|
337191
337202
|
setShowSubmenu(null);
|
|
337192
337203
|
setTabsHidden(false);
|
|
@@ -337198,7 +337209,7 @@ function Config({
|
|
|
337198
337209
|
autoUpdatesChannel: "stable"
|
|
337199
337210
|
};
|
|
337200
337211
|
if (choice === "stay") {
|
|
337201
|
-
newSettings.minimumVersion = { VERSION: "0.2.
|
|
337212
|
+
newSettings.minimumVersion = { VERSION: "0.2.59", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION;
|
|
337202
337213
|
}
|
|
337203
337214
|
updateSettingsForSource("userSettings", newSettings);
|
|
337204
337215
|
setSettingsData((prev_27) => ({
|
|
@@ -345443,7 +345454,7 @@ function HelpV2(t0) {
|
|
|
345443
345454
|
let t6;
|
|
345444
345455
|
if ($2[31] !== tabs) {
|
|
345445
345456
|
t6 = /* @__PURE__ */ jsx_runtime217.jsx(Tabs, {
|
|
345446
|
-
title: `Theus v${{ VERSION: "0.2.
|
|
345457
|
+
title: `Theus v${{ VERSION: "0.2.59", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION}`,
|
|
345447
345458
|
color: "professionalBlue",
|
|
345448
345459
|
defaultTab: "general",
|
|
345449
345460
|
children: tabs
|
|
@@ -363695,7 +363706,7 @@ function Onboarding({
|
|
|
363695
363706
|
flexDirection: "column",
|
|
363696
363707
|
children: [
|
|
363697
363708
|
/* @__PURE__ */ jsx_runtime250.jsx(TheusBanner, {
|
|
363698
|
-
version: { VERSION: "0.2.
|
|
363709
|
+
version: { VERSION: "0.2.59", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
|
|
363699
363710
|
}),
|
|
363700
363711
|
/* @__PURE__ */ jsx_runtime250.jsxs(ThemedBox_default, {
|
|
363701
363712
|
flexDirection: "column",
|
|
@@ -363919,6 +363930,13 @@ var init_providers3 = __esm(() => {
|
|
|
363919
363930
|
});
|
|
363920
363931
|
|
|
363921
363932
|
// commands/recarga/api.ts
|
|
363933
|
+
function esTimeout(err2) {
|
|
363934
|
+
const nombre = err2?.name;
|
|
363935
|
+
return nombre === "TimeoutError" || nombre === "AbortError";
|
|
363936
|
+
}
|
|
363937
|
+
function sinCupoDeCiclo(packsRestantes) {
|
|
363938
|
+
return typeof packsRestantes === "number" && Number.isFinite(packsRestantes) && packsRestantes <= 0;
|
|
363939
|
+
}
|
|
363922
363940
|
function safeAccessToken() {
|
|
363923
363941
|
try {
|
|
363924
363942
|
return getTheusAIOAuthTokens()?.accessToken;
|
|
@@ -363962,11 +363980,13 @@ async function fetchRecargaStatus(token) {
|
|
|
363962
363980
|
packs: PACKS_FALLBACK,
|
|
363963
363981
|
saldoCreditos: null,
|
|
363964
363982
|
packsRestantes: null,
|
|
363965
|
-
maxPacks: null
|
|
363983
|
+
maxPacks: null,
|
|
363984
|
+
importesLocales: true
|
|
363966
363985
|
};
|
|
363967
363986
|
try {
|
|
363968
363987
|
const res = await fetch(`${apiBase()}/v1/recarga/status`, {
|
|
363969
|
-
headers: { authorization: `Bearer ${token}`, "theus-version": "2023-06-01" }
|
|
363988
|
+
headers: { authorization: `Bearer ${token}`, "theus-version": "2023-06-01" },
|
|
363989
|
+
signal: AbortSignal.timeout(STATUS_TIMEOUT_MS)
|
|
363970
363990
|
});
|
|
363971
363991
|
if (!res.ok)
|
|
363972
363992
|
return apagado;
|
|
@@ -363985,12 +364005,14 @@ async function fetchRecargaStatus(token) {
|
|
|
363985
364005
|
return null;
|
|
363986
364006
|
return { id, nombre: String(p?.nombre || id), precioUsd, creditos };
|
|
363987
364007
|
}).filter((p) => p !== null);
|
|
364008
|
+
const usaFallback = remotos.length === 0;
|
|
363988
364009
|
return {
|
|
363989
364010
|
disponible: true,
|
|
363990
|
-
packs:
|
|
364011
|
+
packs: usaFallback ? PACKS_FALLBACK : remotos,
|
|
363991
364012
|
saldoCreditos: typeof data.saldo_creditos === "number" ? data.saldo_creditos : null,
|
|
363992
364013
|
packsRestantes: typeof data.packs_restantes === "number" ? data.packs_restantes : null,
|
|
363993
|
-
maxPacks: typeof data.max_packs_per_cycle === "number" ? data.max_packs_per_cycle : null
|
|
364014
|
+
maxPacks: typeof data.max_packs_per_cycle === "number" ? data.max_packs_per_cycle : null,
|
|
364015
|
+
importesLocales: usaFallback
|
|
363994
364016
|
};
|
|
363995
364017
|
} catch {
|
|
363996
364018
|
return apagado;
|
|
@@ -364005,7 +364027,8 @@ async function fetchCheckoutUrl(token, pack) {
|
|
|
364005
364027
|
"content-type": "application/json",
|
|
364006
364028
|
"theus-version": "2023-06-01"
|
|
364007
364029
|
},
|
|
364008
|
-
body: JSON.stringify({ pack })
|
|
364030
|
+
body: JSON.stringify({ pack }),
|
|
364031
|
+
signal: AbortSignal.timeout(CHECKOUT_TIMEOUT_MS)
|
|
364009
364032
|
});
|
|
364010
364033
|
const cuerpo = await res.json().catch(() => null);
|
|
364011
364034
|
if (res.ok) {
|
|
@@ -364051,7 +364074,15 @@ async function fetchCheckoutUrl(token, pack) {
|
|
|
364051
364074
|
reintentable: res.status >= 500,
|
|
364052
364075
|
requiereLogin: false
|
|
364053
364076
|
};
|
|
364054
|
-
} catch {
|
|
364077
|
+
} catch (err2) {
|
|
364078
|
+
if (esTimeout(err2)) {
|
|
364079
|
+
return {
|
|
364080
|
+
ok: false,
|
|
364081
|
+
motivo: "El servidor tard\xF3 demasiado en crear el pago seguro.",
|
|
364082
|
+
reintentable: true,
|
|
364083
|
+
requiereLogin: false
|
|
364084
|
+
};
|
|
364085
|
+
}
|
|
364055
364086
|
return {
|
|
364056
364087
|
ok: false,
|
|
364057
364088
|
motivo: "No pude contactar con el servidor. Comprueba tu conexi\xF3n.",
|
|
@@ -364068,7 +364099,7 @@ function precioPorCredito(pack) {
|
|
|
364068
364099
|
return "\u2014";
|
|
364069
364100
|
return `$${(pack.precioUsd / pack.creditos).toFixed(3)}/cr`;
|
|
364070
364101
|
}
|
|
364071
|
-
var PACKS_FALLBACK, PACK_IDS;
|
|
364102
|
+
var PACKS_FALLBACK, PACK_IDS, AVISO_IMPORTES_LOCALES = "Precios de referencia; el importe final lo confirma el pago.", STATUS_TIMEOUT_MS = 1e4, CHECKOUT_TIMEOUT_MS = 30000;
|
|
364072
364103
|
var init_api4 = __esm(() => {
|
|
364073
364104
|
init_oauth();
|
|
364074
364105
|
init_auth();
|
|
@@ -364095,8 +364126,11 @@ function decideTecla(faseT, tecla2, ctx) {
|
|
|
364095
364126
|
if (tecla2.abajo || tecla2.letra === "j") {
|
|
364096
364127
|
return { tipo: "mover", index: Math.min(Math.max(0, ctx.total - 1), ctx.index + 1) };
|
|
364097
364128
|
}
|
|
364098
|
-
if (tecla2.return)
|
|
364129
|
+
if (tecla2.return) {
|
|
364130
|
+
if (sinCupoDeCiclo(ctx.packsRestantes))
|
|
364131
|
+
return null;
|
|
364099
364132
|
return { tipo: "confirmar" };
|
|
364133
|
+
}
|
|
364100
364134
|
if (esc2)
|
|
364101
364135
|
return { tipo: "salir", mensaje: "Recarga cancelada. No se cobr\xF3 nada." };
|
|
364102
364136
|
return null;
|
|
@@ -364382,6 +364416,7 @@ function RecargaUI({
|
|
|
364382
364416
|
}, {
|
|
364383
364417
|
index,
|
|
364384
364418
|
total: estado?.packs.length ?? 0,
|
|
364419
|
+
packsRestantes: estado?.packsRestantes ?? null,
|
|
364385
364420
|
...pack ? { nombrePack: pack.nombre, creditos: pack.creditos } : {},
|
|
364386
364421
|
...fase.t === "acreditado" ? { saldo: fase.saldoNuevo } : {}
|
|
364387
364422
|
});
|
|
@@ -364500,7 +364535,7 @@ function RecargaUI({
|
|
|
364500
364535
|
if (fase.t === "eligiendo") {
|
|
364501
364536
|
const packs = estado?.packs ?? [];
|
|
364502
364537
|
const sel = packs[index];
|
|
364503
|
-
const sinCupo = estado?.packsRestantes
|
|
364538
|
+
const sinCupo = sinCupoDeCiclo(estado?.packsRestantes);
|
|
364504
364539
|
return /* @__PURE__ */ jsx_runtime253.jsxs(ThemedBox_default, {
|
|
364505
364540
|
flexDirection: "column",
|
|
364506
364541
|
marginTop: 1,
|
|
@@ -364513,6 +364548,13 @@ function RecargaUI({
|
|
|
364513
364548
|
packs,
|
|
364514
364549
|
index
|
|
364515
364550
|
}),
|
|
364551
|
+
estado?.importesLocales === true && /* @__PURE__ */ jsx_runtime253.jsx(ThemedBox_default, {
|
|
364552
|
+
marginTop: 1,
|
|
364553
|
+
children: /* @__PURE__ */ jsx_runtime253.jsx(ThemedText, {
|
|
364554
|
+
color: "warning",
|
|
364555
|
+
children: AVISO_IMPORTES_LOCALES
|
|
364556
|
+
})
|
|
364557
|
+
}),
|
|
364516
364558
|
/* @__PURE__ */ jsx_runtime253.jsx(ThemedBox_default, {
|
|
364517
364559
|
marginTop: 1,
|
|
364518
364560
|
children: /* @__PURE__ */ jsx_runtime253.jsxs(ThemedText, {
|
|
@@ -364794,6 +364836,9 @@ var exports_noninteractive = {};
|
|
|
364794
364836
|
__export(exports_noninteractive, {
|
|
364795
364837
|
call: () => call33
|
|
364796
364838
|
});
|
|
364839
|
+
function ordenRecarga(...partes) {
|
|
364840
|
+
return `theus -p "/recarga${partes.length > 0 ? ` ${partes.join(" ")}` : ""}"`;
|
|
364841
|
+
}
|
|
364797
364842
|
function formatPackLine(pack) {
|
|
364798
364843
|
return ` \u2022 ${pack.nombre} \u2014 $${pack.precioUsd} \u2192 ${formatCreditos(pack.creditos)} cr\xE9ditos`;
|
|
364799
364844
|
}
|
|
@@ -364814,7 +364859,7 @@ var call33 = async (args) => {
|
|
|
364814
364859
|
"",
|
|
364815
364860
|
" theus auth login",
|
|
364816
364861
|
"",
|
|
364817
|
-
|
|
364862
|
+
`Despu\xE9s vuelve a ejecutar: ${ordenRecarga()}`
|
|
364818
364863
|
].join(`
|
|
364819
364864
|
`)
|
|
364820
364865
|
};
|
|
@@ -364825,6 +364870,7 @@ var call33 = async (args) => {
|
|
|
364825
364870
|
}
|
|
364826
364871
|
const packs = estado.packs;
|
|
364827
364872
|
const { packId, confirmar } = parseArgs2(args);
|
|
364873
|
+
const sinCupo = sinCupoDeCiclo(estado.packsRestantes);
|
|
364828
364874
|
if (!packId) {
|
|
364829
364875
|
const lines = [];
|
|
364830
364876
|
lines.push("\uD83D\uDCB3 Recarga de cr\xE9ditos Theus");
|
|
@@ -364840,8 +364886,15 @@ var call33 = async (args) => {
|
|
|
364840
364886
|
lines.push("Packs disponibles:");
|
|
364841
364887
|
for (const pack2 of packs)
|
|
364842
364888
|
lines.push(formatPackLine(pack2));
|
|
364889
|
+
if (estado.importesLocales) {
|
|
364890
|
+
lines.push("");
|
|
364891
|
+
lines.push(AVISO_IMPORTES_LOCALES);
|
|
364892
|
+
}
|
|
364843
364893
|
lines.push("");
|
|
364844
|
-
if (
|
|
364894
|
+
if (sinCupo) {
|
|
364895
|
+
lines.push("Primero se consume la cuota incluida de tu plan; tu saldo de cr\xE9ditos");
|
|
364896
|
+
lines.push("recargado se usa solo despu\xE9s.");
|
|
364897
|
+
} else if (estado.packsRestantes != null) {
|
|
364845
364898
|
lines.push(`Te quedan ${estado.packsRestantes} packs comprables en este ciclo. Primero se consume`);
|
|
364846
364899
|
lines.push("la cuota incluida de tu plan; tu saldo recargado se usa solo despu\xE9s.");
|
|
364847
364900
|
} else {
|
|
@@ -364849,7 +364902,14 @@ var call33 = async (args) => {
|
|
|
364849
364902
|
lines.push("recargado se usa solo despu\xE9s.");
|
|
364850
364903
|
}
|
|
364851
364904
|
lines.push("");
|
|
364852
|
-
|
|
364905
|
+
if (sinCupo) {
|
|
364906
|
+
lines.push("Alcanzaste el m\xE1ximo de packs de este ciclo, as\xED que ahora no puedes comprar");
|
|
364907
|
+
lines.push("otro. El cupo se renueva con tu plan.");
|
|
364908
|
+
} else {
|
|
364909
|
+
lines.push(`Para comprar: ${ordenRecarga("<pack>")}`);
|
|
364910
|
+
lines.push(`Por ejemplo: ${ordenRecarga("turbo")}`);
|
|
364911
|
+
lines.push("(En una sesi\xF3n interactiva de Theus basta con escribir /recarga turbo.)");
|
|
364912
|
+
}
|
|
364853
364913
|
if (!safeIsSubscriber()) {
|
|
364854
364914
|
lines.push("");
|
|
364855
364915
|
lines.push("Nota: no detect\xE9 una sesi\xF3n de suscriptor de theus.pe activa.");
|
|
@@ -364861,15 +364921,26 @@ var call33 = async (args) => {
|
|
|
364861
364921
|
if (!pack) {
|
|
364862
364922
|
return { type: "text", value: `Pack desconocido: ${packId}` };
|
|
364863
364923
|
}
|
|
364924
|
+
if (sinCupo) {
|
|
364925
|
+
return {
|
|
364926
|
+
type: "text",
|
|
364927
|
+
value: [
|
|
364928
|
+
`No puedo comprar ${pack.nombre}: alcanzaste el m\xE1ximo de packs de este ciclo.`,
|
|
364929
|
+
"No se cobr\xF3 nada. El cupo se renueva con tu plan."
|
|
364930
|
+
].join(`
|
|
364931
|
+
`)
|
|
364932
|
+
};
|
|
364933
|
+
}
|
|
364864
364934
|
if (!confirmar) {
|
|
364865
364935
|
return {
|
|
364866
364936
|
type: "text",
|
|
364867
364937
|
value: [
|
|
364868
364938
|
`Pack ${pack.nombre} \u2014 $${pack.precioUsd} \u2192 ${formatCreditos(pack.creditos)} cr\xE9ditos (no expiran).`,
|
|
364939
|
+
...estado.importesLocales ? ["", AVISO_IMPORTES_LOCALES] : [],
|
|
364869
364940
|
"",
|
|
364870
364941
|
"Compra final, sin reembolsos.",
|
|
364871
364942
|
"",
|
|
364872
|
-
`Para abrir el checkout seguro de Stripe:
|
|
364943
|
+
`Para abrir el checkout seguro de Stripe: ${ordenRecarga(packId, "confirmar")}`,
|
|
364873
364944
|
"Nada se cobra ni se abre hasta que confirmes."
|
|
364874
364945
|
].join(`
|
|
364875
364946
|
`)
|
|
@@ -364883,7 +364954,8 @@ var call33 = async (args) => {
|
|
|
364883
364954
|
`No pude generar el pago de ${pack.nombre}. No se cobr\xF3 nada.`,
|
|
364884
364955
|
"",
|
|
364885
364956
|
res.motivo,
|
|
364886
|
-
...res.requiereLogin ? ["", " theus auth login"] : []
|
|
364957
|
+
...res.requiereLogin ? ["", " theus auth login"] : [],
|
|
364958
|
+
...res.reintentable ? ["", `Reintentar: ${ordenRecarga(packId, "confirmar")}`] : []
|
|
364887
364959
|
].join(`
|
|
364888
364960
|
`)
|
|
364889
364961
|
};
|
|
@@ -365054,9 +365126,9 @@ function getAllReleaseNotes(changelogContent = getStoredChangelogFromMemory()) {
|
|
|
365054
365126
|
return [];
|
|
365055
365127
|
}
|
|
365056
365128
|
}
|
|
365057
|
-
async function checkForReleaseNotes(lastSeenVersion, currentVersion = { VERSION: "0.2.
|
|
365129
|
+
async function checkForReleaseNotes(lastSeenVersion, currentVersion = { VERSION: "0.2.59", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION) {
|
|
365058
365130
|
if (process.env.USER_TYPE === "ant") {
|
|
365059
|
-
const changelog = { VERSION: "0.2.
|
|
365131
|
+
const changelog = { VERSION: "0.2.59", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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;
|
|
365060
365132
|
if (changelog) {
|
|
365061
365133
|
const commits = changelog.trim().split(`
|
|
365062
365134
|
`).filter(Boolean);
|
|
@@ -369258,7 +369330,7 @@ var init_Messages = __esm(() => {
|
|
|
369258
369330
|
let t1;
|
|
369259
369331
|
if ($2[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
369260
369332
|
t1 = /* @__PURE__ */ jsx_runtime263.jsx(TheusSessionHeader, {
|
|
369261
|
-
version: { VERSION: "0.2.
|
|
369333
|
+
version: { VERSION: "0.2.59", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
|
|
369262
369334
|
});
|
|
369263
369335
|
$2[0] = t1;
|
|
369264
369336
|
} else {
|
|
@@ -398082,7 +398154,7 @@ async function captureMemoryDiagnostics(trigger, dumpNumber = 0) {
|
|
|
398082
398154
|
smapsRollup,
|
|
398083
398155
|
platform: process.platform,
|
|
398084
398156
|
nodeVersion: process.version,
|
|
398085
|
-
ccVersion: { VERSION: "0.2.
|
|
398157
|
+
ccVersion: { VERSION: "0.2.59", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
|
|
398086
398158
|
};
|
|
398087
398159
|
}
|
|
398088
398160
|
async function performHeapDump(trigger = "manual", dumpNumber = 0) {
|
|
@@ -398901,7 +398973,7 @@ var init_bridge_kick = __esm(() => {
|
|
|
398901
398973
|
var call65 = async () => {
|
|
398902
398974
|
return {
|
|
398903
398975
|
type: "text",
|
|
398904
|
-
value: { VERSION: "0.2.
|
|
398976
|
+
value: { VERSION: "0.2.59", BUILD_TIME: "1970-01-01T00:00:00.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.59", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.59", BUILD_TIME: "1970-01-01T00:00:00.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.59", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
|
|
398905
398977
|
};
|
|
398906
398978
|
}, version2, version_default;
|
|
398907
398979
|
var init_version = __esm(() => {
|
|
@@ -401502,7 +401574,7 @@ var SECRET_NAME_PATTERN, EXTRA_ENV_ALLOWLIST, REDACTED2 = "\u2039oculto\u203A",
|
|
|
401502
401574
|
const lines = [];
|
|
401503
401575
|
lines.push("## Entorno de ejecuci\xF3n");
|
|
401504
401576
|
lines.push("");
|
|
401505
|
-
const version3 = { VERSION: "0.2.
|
|
401577
|
+
const version3 = { VERSION: "0.2.59", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.59", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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";
|
|
401506
401578
|
lines.push(`- Versi\xF3n de Theus: ${version3}`);
|
|
401507
401579
|
lines.push(`- Directorio de trabajo: ${getCwd()}`);
|
|
401508
401580
|
lines.push(`- \xBFRepositorio git?: ${isGit ? "s\xED" : "no"}`);
|
|
@@ -404029,13 +404101,13 @@ async function updateReleaseBundle() {
|
|
|
404029
404101
|
await gracefulShutdown(1);
|
|
404030
404102
|
return;
|
|
404031
404103
|
}
|
|
404032
|
-
if (gte({ VERSION: "0.2.
|
|
404033
|
-
writeToStdout(source_default.green(`Theus is up to date (${{ VERSION: "0.2.
|
|
404104
|
+
if (gte({ VERSION: "0.2.59", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
|
|
404105
|
+
writeToStdout(source_default.green(`Theus is up to date (${{ VERSION: "0.2.59", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION})`) + `
|
|
404034
404106
|
`);
|
|
404035
404107
|
await gracefulShutdown(0);
|
|
404036
404108
|
return;
|
|
404037
404109
|
}
|
|
404038
|
-
writeToStdout(`New version available: ${latest} (current: ${{ VERSION: "0.2.
|
|
404110
|
+
writeToStdout(`New version available: ${latest} (current: ${{ VERSION: "0.2.59", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION})
|
|
404039
404111
|
`);
|
|
404040
404112
|
writeToStdout(`Installing update from theus.pe/dl...
|
|
404041
404113
|
`);
|
|
@@ -404069,7 +404141,7 @@ async function updateReleaseBundle() {
|
|
|
404069
404141
|
return;
|
|
404070
404142
|
}
|
|
404071
404143
|
cpSync(staged, bundleDir, { recursive: true, force: true });
|
|
404072
|
-
writeToStdout(source_default.green(`Successfully updated from ${{ VERSION: "0.2.
|
|
404144
|
+
writeToStdout(source_default.green(`Successfully updated from ${{ VERSION: "0.2.59", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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}`) + `
|
|
404073
404145
|
`);
|
|
404074
404146
|
await regenerateCompletionCache();
|
|
404075
404147
|
} finally {
|
|
@@ -404082,7 +404154,7 @@ async function updateReleaseBundle() {
|
|
|
404082
404154
|
async function update() {
|
|
404083
404155
|
logEvent("tengu_update_check", {});
|
|
404084
404156
|
await updateNaupa();
|
|
404085
|
-
writeToStdout(`Current version: ${{ VERSION: "0.2.
|
|
404157
|
+
writeToStdout(`Current version: ${{ VERSION: "0.2.59", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION}
|
|
404086
404158
|
`);
|
|
404087
404159
|
const channel2 = getInitialSettings()?.autoUpdatesChannel ?? "latest";
|
|
404088
404160
|
writeToStdout(`Checking for updates to ${channel2} version...
|
|
@@ -404161,8 +404233,8 @@ async function update() {
|
|
|
404161
404233
|
writeToStdout(`Theus is managed by Homebrew.
|
|
404162
404234
|
`);
|
|
404163
404235
|
const latest = await getLatestVersion(channel2);
|
|
404164
|
-
if (latest && !gte({ VERSION: "0.2.
|
|
404165
|
-
writeToStdout(`Update available: ${{ VERSION: "0.2.
|
|
404236
|
+
if (latest && !gte({ VERSION: "0.2.59", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
|
|
404237
|
+
writeToStdout(`Update available: ${{ VERSION: "0.2.59", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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}
|
|
404166
404238
|
`);
|
|
404167
404239
|
writeToStdout(`
|
|
404168
404240
|
`);
|
|
@@ -404178,8 +404250,8 @@ async function update() {
|
|
|
404178
404250
|
writeToStdout(`Theus is managed by winget.
|
|
404179
404251
|
`);
|
|
404180
404252
|
const latest = await getLatestVersion(channel2);
|
|
404181
|
-
if (latest && !gte({ VERSION: "0.2.
|
|
404182
|
-
writeToStdout(`Update available: ${{ VERSION: "0.2.
|
|
404253
|
+
if (latest && !gte({ VERSION: "0.2.59", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
|
|
404254
|
+
writeToStdout(`Update available: ${{ VERSION: "0.2.59", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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}
|
|
404183
404255
|
`);
|
|
404184
404256
|
writeToStdout(`
|
|
404185
404257
|
`);
|
|
@@ -404195,8 +404267,8 @@ async function update() {
|
|
|
404195
404267
|
writeToStdout(`Theus is managed by apk.
|
|
404196
404268
|
`);
|
|
404197
404269
|
const latest = await getLatestVersion(channel2);
|
|
404198
|
-
if (latest && !gte({ VERSION: "0.2.
|
|
404199
|
-
writeToStdout(`Update available: ${{ VERSION: "0.2.
|
|
404270
|
+
if (latest && !gte({ VERSION: "0.2.59", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
|
|
404271
|
+
writeToStdout(`Update available: ${{ VERSION: "0.2.59", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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}
|
|
404200
404272
|
`);
|
|
404201
404273
|
writeToStdout(`
|
|
404202
404274
|
`);
|
|
@@ -404261,11 +404333,11 @@ async function update() {
|
|
|
404261
404333
|
`);
|
|
404262
404334
|
await gracefulShutdown(1);
|
|
404263
404335
|
}
|
|
404264
|
-
if (result.latestVersion === { VERSION: "0.2.
|
|
404265
|
-
writeToStdout(source_default.green(`Theus is up to date (${{ VERSION: "0.2.
|
|
404336
|
+
if (result.latestVersion === { VERSION: "0.2.59", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION) {
|
|
404337
|
+
writeToStdout(source_default.green(`Theus is up to date (${{ VERSION: "0.2.59", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION})`) + `
|
|
404266
404338
|
`);
|
|
404267
404339
|
} else {
|
|
404268
|
-
writeToStdout(source_default.green(`Successfully updated from ${{ VERSION: "0.2.
|
|
404340
|
+
writeToStdout(source_default.green(`Successfully updated from ${{ VERSION: "0.2.59", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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}`) + `
|
|
404269
404341
|
`);
|
|
404270
404342
|
await regenerateCompletionCache();
|
|
404271
404343
|
}
|
|
@@ -404284,9 +404356,9 @@ async function update() {
|
|
|
404284
404356
|
await removeInstalledSymlink();
|
|
404285
404357
|
}
|
|
404286
404358
|
logForDebugging("update: Checking npm registry for latest version");
|
|
404287
|
-
logForDebugging(`update: Package URL: ${{ VERSION: "0.2.
|
|
404359
|
+
logForDebugging(`update: Package URL: ${{ VERSION: "0.2.59", BUILD_TIME: "1970-01-01T00:00:00.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}`);
|
|
404288
404360
|
const npmTag = channel2 === "stable" ? "stable" : "latest";
|
|
404289
|
-
const npmCommand = `npm view ${{ VERSION: "0.2.
|
|
404361
|
+
const npmCommand = `npm view ${{ VERSION: "0.2.59", BUILD_TIME: "1970-01-01T00:00:00.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`;
|
|
404290
404362
|
logForDebugging(`update: Running: ${npmCommand}`);
|
|
404291
404363
|
const latestVersion = await getLatestVersion(channel2);
|
|
404292
404364
|
logForDebugging(`update: Latest version from npm: ${latestVersion || "FAILED"}`);
|
|
@@ -404306,7 +404378,7 @@ async function update() {
|
|
|
404306
404378
|
`);
|
|
404307
404379
|
process.stderr.write(` \u2022 Corporate proxy/firewall blocking npm
|
|
404308
404380
|
`);
|
|
404309
|
-
if ({ VERSION: "0.2.
|
|
404381
|
+
if ({ VERSION: "0.2.59", BUILD_TIME: "1970-01-01T00:00:00.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.59", BUILD_TIME: "1970-01-01T00:00:00.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")) {
|
|
404310
404382
|
process.stderr.write(` \u2022 Internal/development build not published to npm
|
|
404311
404383
|
`);
|
|
404312
404384
|
}
|
|
@@ -404318,19 +404390,19 @@ async function update() {
|
|
|
404318
404390
|
`);
|
|
404319
404391
|
process.stderr.write(` \u2022 Run with --debug flag for more details
|
|
404320
404392
|
`);
|
|
404321
|
-
const packageName = { VERSION: "0.2.
|
|
404393
|
+
const packageName = { VERSION: "0.2.59", BUILD_TIME: "1970-01-01T00:00:00.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");
|
|
404322
404394
|
process.stderr.write(` \u2022 Manually check: npm view ${packageName} version
|
|
404323
404395
|
`);
|
|
404324
404396
|
process.stderr.write(` \u2022 Check if you need to login: npm whoami
|
|
404325
404397
|
`);
|
|
404326
404398
|
await gracefulShutdown(1);
|
|
404327
404399
|
}
|
|
404328
|
-
if (gte({ VERSION: "0.2.
|
|
404329
|
-
writeToStdout(source_default.green(`Theus is up to date (${{ VERSION: "0.2.
|
|
404400
|
+
if (gte({ VERSION: "0.2.59", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
|
|
404401
|
+
writeToStdout(source_default.green(`Theus is up to date (${{ VERSION: "0.2.59", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION})`) + `
|
|
404330
404402
|
`);
|
|
404331
404403
|
await gracefulShutdown(0);
|
|
404332
404404
|
}
|
|
404333
|
-
writeToStdout(`New version available: ${latestVersion} (current: ${{ VERSION: "0.2.
|
|
404405
|
+
writeToStdout(`New version available: ${latestVersion} (current: ${{ VERSION: "0.2.59", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION})
|
|
404334
404406
|
`);
|
|
404335
404407
|
writeToStdout(`Installing update...
|
|
404336
404408
|
`);
|
|
@@ -404375,7 +404447,7 @@ async function update() {
|
|
|
404375
404447
|
logForDebugging(`update: Installation status: ${status2}`);
|
|
404376
404448
|
switch (status2) {
|
|
404377
404449
|
case "success":
|
|
404378
|
-
writeToStdout(source_default.green(`Successfully updated from ${{ VERSION: "0.2.
|
|
404450
|
+
writeToStdout(source_default.green(`Successfully updated from ${{ VERSION: "0.2.59", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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}`) + `
|
|
404379
404451
|
`);
|
|
404380
404452
|
await regenerateCompletionCache();
|
|
404381
404453
|
break;
|
|
@@ -404385,7 +404457,7 @@ async function update() {
|
|
|
404385
404457
|
if (useLocalUpdate) {
|
|
404386
404458
|
process.stderr.write(`Try manually updating with:
|
|
404387
404459
|
`);
|
|
404388
|
-
process.stderr.write(` cd ~/.theus/local && npm update ${{ VERSION: "0.2.
|
|
404460
|
+
process.stderr.write(` cd ~/.theus/local && npm update ${{ VERSION: "0.2.59", BUILD_TIME: "1970-01-01T00:00:00.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}
|
|
404389
404461
|
`);
|
|
404390
404462
|
} else {
|
|
404391
404463
|
process.stderr.write(`Try running with sudo or fix npm permissions
|
|
@@ -404401,7 +404473,7 @@ async function update() {
|
|
|
404401
404473
|
if (useLocalUpdate) {
|
|
404402
404474
|
process.stderr.write(`Try manually updating with:
|
|
404403
404475
|
`);
|
|
404404
|
-
process.stderr.write(` cd ~/.theus/local && npm update ${{ VERSION: "0.2.
|
|
404476
|
+
process.stderr.write(` cd ~/.theus/local && npm update ${{ VERSION: "0.2.59", BUILD_TIME: "1970-01-01T00:00:00.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}
|
|
404405
404477
|
`);
|
|
404406
404478
|
} else {
|
|
404407
404479
|
process.stderr.write(`Or consider using native installation with: theus install
|
|
@@ -414241,7 +414313,7 @@ var init_sessionStorage = __esm(() => {
|
|
|
414241
414313
|
init_settings2();
|
|
414242
414314
|
init_slowOperations();
|
|
414243
414315
|
init_uuid();
|
|
414244
|
-
VERSION4 = { VERSION: "0.2.
|
|
414316
|
+
VERSION4 = { VERSION: "0.2.59", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION;
|
|
414245
414317
|
MAX_TOMBSTONE_REWRITE_BYTES = 50 * 1024 * 1024;
|
|
414246
414318
|
SKIP_FIRST_PROMPT_PATTERN2 = /^(?:\s*<[a-z][\w-]*[\s>]|\[Request interrupted by user[^\]]*\])/;
|
|
414247
414319
|
EPHEMERAL_PROGRESS_TYPES = new Set([
|
|
@@ -415446,7 +415518,7 @@ var init_filesystem = __esm(() => {
|
|
|
415446
415518
|
});
|
|
415447
415519
|
getBundledSkillsRoot = memoize_default(function getBundledSkillsRoot2() {
|
|
415448
415520
|
const nonce = randomBytes21(16).toString("hex");
|
|
415449
|
-
return join150(getTheusTempDir(), "bundled-skills", { VERSION: "0.2.
|
|
415521
|
+
return join150(getTheusTempDir(), "bundled-skills", { VERSION: "0.2.59", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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);
|
|
415450
415522
|
});
|
|
415451
415523
|
getResolvedWorkingDirPaths = memoize_default(getPathsForPermissionCheck);
|
|
415452
415524
|
});
|
|
@@ -420625,7 +420697,7 @@ function getSimpleDoingTasksSection() {
|
|
|
420625
420697
|
];
|
|
420626
420698
|
const userHelpSubitems = [
|
|
420627
420699
|
`/help: Get help with using Theus`,
|
|
420628
|
-
`To give feedback, users should ${{ VERSION: "0.2.
|
|
420700
|
+
`To give feedback, users should ${{ VERSION: "0.2.59", BUILD_TIME: "1970-01-01T00:00:00.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}`
|
|
420629
420701
|
];
|
|
420630
420702
|
const items = [
|
|
420631
420703
|
`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.`,
|
|
@@ -421525,7 +421597,7 @@ function computeFingerprint(messageText, version3) {
|
|
|
421525
421597
|
}
|
|
421526
421598
|
function computeFingerprintFromMessages(messages) {
|
|
421527
421599
|
const firstMessageText = extractFirstMessageText(messages);
|
|
421528
|
-
return computeFingerprint(firstMessageText, { VERSION: "0.2.
|
|
421600
|
+
return computeFingerprint(firstMessageText, { VERSION: "0.2.59", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION);
|
|
421529
421601
|
}
|
|
421530
421602
|
var FINGERPRINT_SALT = "59cf53e54c78";
|
|
421531
421603
|
var init_fingerprint = () => {};
|
|
@@ -424148,7 +424220,7 @@ async function sideQuery(opts) {
|
|
|
424148
424220
|
betas.push(STRUCTURED_OUTPUTS_BETA_HEADER);
|
|
424149
424221
|
}
|
|
424150
424222
|
const messageText = extractFirstUserMessageText(messages);
|
|
424151
|
-
const fingerprint = computeFingerprint(messageText, { VERSION: "0.2.
|
|
424223
|
+
const fingerprint = computeFingerprint(messageText, { VERSION: "0.2.59", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION);
|
|
424152
424224
|
const attributionHeader = getAttributionHeader(fingerprint);
|
|
424153
424225
|
const systemBlocks = [
|
|
424154
424226
|
attributionHeader ? { type: "text", text: attributionHeader } : null,
|
|
@@ -425451,7 +425523,7 @@ async function handleMemories(state) {
|
|
|
425451
425523
|
async function runProjectContextMcpServer() {
|
|
425452
425524
|
const projectRoot = process.env.THEUS_PROJECT_ROOT || process.cwd();
|
|
425453
425525
|
const state = new ProjectContextState(projectRoot);
|
|
425454
|
-
const server2 = new Server({ name: SERVER_NAME, version: { VERSION: "0.2.
|
|
425526
|
+
const server2 = new Server({ name: SERVER_NAME, version: { VERSION: "0.2.59", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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: {} } });
|
|
425455
425527
|
server2.setRequestHandler(ListToolsRequestSchema, async () => ({
|
|
425456
425528
|
tools: TOOL_DEFINITIONS.map((t) => ({
|
|
425457
425529
|
name: t.name,
|
|
@@ -427433,7 +427505,7 @@ function createBridgeLogger(options2) {
|
|
|
427433
427505
|
connectUrl = buildBridgeConnectUrl(environmentId, cachedIngressUrl);
|
|
427434
427506
|
regenerateQr(connectUrl);
|
|
427435
427507
|
if (verbose) {
|
|
427436
|
-
write(source_default.dim(`Remote Control`) + ` v${{ VERSION: "0.2.
|
|
427508
|
+
write(source_default.dim(`Remote Control`) + ` v${{ VERSION: "0.2.59", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION}
|
|
427437
427509
|
`);
|
|
427438
427510
|
}
|
|
427439
427511
|
if (verbose) {
|
|
@@ -428406,7 +428478,7 @@ function appendToLog(path19, message) {
|
|
|
428406
428478
|
cwd: getFsImplementation().cwd(),
|
|
428407
428479
|
userType: process.env.USER_TYPE,
|
|
428408
428480
|
sessionId: getSessionId(),
|
|
428409
|
-
version: { VERSION: "0.2.
|
|
428481
|
+
version: { VERSION: "0.2.59", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
|
|
428410
428482
|
};
|
|
428411
428483
|
getLogWriter(path19).write(messageWithTimestamp);
|
|
428412
428484
|
}
|
|
@@ -429676,7 +429748,7 @@ Spawn mode for this project:
|
|
|
429676
429748
|
const api2 = createBridgeApiClient({
|
|
429677
429749
|
baseUrl,
|
|
429678
429750
|
getAccessToken: getBridgeAccessToken2,
|
|
429679
|
-
runnerVersion: { VERSION: "0.2.
|
|
429751
|
+
runnerVersion: { VERSION: "0.2.59", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
|
|
429680
429752
|
onDebug: logForDebugging,
|
|
429681
429753
|
onAuth401: handleOAuth401Error2,
|
|
429682
429754
|
getTrustedDeviceToken
|
|
@@ -429914,7 +429986,7 @@ async function runBridgeHeadless(opts, signal) {
|
|
|
429914
429986
|
const api2 = createBridgeApiClient({
|
|
429915
429987
|
baseUrl,
|
|
429916
429988
|
getAccessToken: opts.getAccessToken,
|
|
429917
|
-
runnerVersion: { VERSION: "0.2.
|
|
429989
|
+
runnerVersion: { VERSION: "0.2.59", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
|
|
429918
429990
|
onDebug: log2,
|
|
429919
429991
|
onAuth401: opts.onAuth401,
|
|
429920
429992
|
getTrustedDeviceToken
|
|
@@ -433980,7 +434052,7 @@ function buildSystemInitMessage(inputs) {
|
|
|
433980
434052
|
slash_commands: inputs.commands.filter((c5) => c5.userInvocable !== false).map((c5) => c5.name),
|
|
433981
434053
|
apiKeySource: getTheusApiKeyWithSource().source,
|
|
433982
434054
|
betas: getSdkBetas(),
|
|
433983
|
-
theus_code_version: { VERSION: "0.2.
|
|
434055
|
+
theus_code_version: { VERSION: "0.2.59", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
|
|
433984
434056
|
output_style: outputStyle2,
|
|
433985
434057
|
agents: inputs.agents.map((agent) => agent.agentType),
|
|
433986
434058
|
skills: inputs.skills.filter((s) => s.userInvocable !== false).map((skill) => skill.name),
|
|
@@ -434020,8 +434092,8 @@ async function getEnvLessBridgeConfig() {
|
|
|
434020
434092
|
}
|
|
434021
434093
|
async function checkEnvLessBridgeMinVersion() {
|
|
434022
434094
|
const cfg = await getEnvLessBridgeConfig();
|
|
434023
|
-
if (cfg.min_version && lt({ VERSION: "0.2.
|
|
434024
|
-
return `Your version of Theus (${{ VERSION: "0.2.
|
|
434095
|
+
if (cfg.min_version && lt({ VERSION: "0.2.59", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
|
|
434096
|
+
return `Your version of Theus (${{ VERSION: "0.2.59", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.
|
|
434025
434097
|
Version ${cfg.min_version} or higher is required. Run \`theus update\` to update.`;
|
|
434026
434098
|
}
|
|
434027
434099
|
return null;
|
|
@@ -436345,7 +436417,7 @@ async function initBridgeCore(params) {
|
|
|
436345
436417
|
const rawApi = createBridgeApiClient({
|
|
436346
436418
|
baseUrl,
|
|
436347
436419
|
getAccessToken,
|
|
436348
|
-
runnerVersion: { VERSION: "0.2.
|
|
436420
|
+
runnerVersion: { VERSION: "0.2.59", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
|
|
436349
436421
|
onDebug: logForDebugging,
|
|
436350
436422
|
onAuth401,
|
|
436351
436423
|
getTrustedDeviceToken
|
|
@@ -453088,7 +453160,7 @@ var init_useVoiceEnabled = __esm(() => {
|
|
|
453088
453160
|
function getSemverPart(version3) {
|
|
453089
453161
|
return `${import_semver14.major(version3, { loose: true })}.${import_semver14.minor(version3, { loose: true })}.${import_semver14.patch(version3, { loose: true })}`;
|
|
453090
453162
|
}
|
|
453091
|
-
function useUpdateNotification(updatedVersion, initialVersion = { VERSION: "0.2.
|
|
453163
|
+
function useUpdateNotification(updatedVersion, initialVersion = { VERSION: "0.2.59", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION) {
|
|
453092
453164
|
const [lastNotifiedSemver, setLastNotifiedSemver] = import_react233.useState(() => getSemverPart(initialVersion));
|
|
453093
453165
|
if (!updatedVersion) {
|
|
453094
453166
|
return null;
|
|
@@ -453128,7 +453200,7 @@ function AutoUpdater({
|
|
|
453128
453200
|
return;
|
|
453129
453201
|
}
|
|
453130
453202
|
if (false) {}
|
|
453131
|
-
const currentVersion = { VERSION: "0.2.
|
|
453203
|
+
const currentVersion = { VERSION: "0.2.59", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION;
|
|
453132
453204
|
const channel2 = getInitialSettings()?.autoUpdatesChannel ?? "latest";
|
|
453133
453205
|
let latestVersion = await getLatestVersion(channel2);
|
|
453134
453206
|
const isDisabled2 = isAutoUpdaterDisabled();
|
|
@@ -453264,7 +453336,7 @@ function AutoUpdater({
|
|
|
453264
453336
|
" ",
|
|
453265
453337
|
/* @__PURE__ */ jsx_runtime409.jsx(ThemedText, {
|
|
453266
453338
|
bold: true,
|
|
453267
|
-
children: hasLocalInstall ? `cd ~/.theus/local && npm update ${{ VERSION: "0.2.
|
|
453339
|
+
children: hasLocalInstall ? `cd ~/.theus/local && npm update ${{ VERSION: "0.2.59", BUILD_TIME: "1970-01-01T00:00:00.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.59", BUILD_TIME: "1970-01-01T00:00:00.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}`
|
|
453268
453340
|
})
|
|
453269
453341
|
]
|
|
453270
453342
|
})
|
|
@@ -453341,12 +453413,12 @@ function NativeAutoUpdater({
|
|
|
453341
453413
|
logEvent("tengu_native_auto_updater_start", {});
|
|
453342
453414
|
try {
|
|
453343
453415
|
const maxVersion = await getMaxVersion();
|
|
453344
|
-
if (maxVersion && gt({ VERSION: "0.2.
|
|
453416
|
+
if (maxVersion && gt({ VERSION: "0.2.59", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
|
|
453345
453417
|
const msg = await getMaxVersionMessage();
|
|
453346
453418
|
setMaxVersionIssue(msg ?? "affects your version");
|
|
453347
453419
|
}
|
|
453348
453420
|
const result = await installLatest(channel2);
|
|
453349
|
-
const currentVersion = { VERSION: "0.2.
|
|
453421
|
+
const currentVersion = { VERSION: "0.2.59", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION;
|
|
453350
453422
|
const latencyMs = Date.now() - startTime2;
|
|
453351
453423
|
if (result.lockFailed) {
|
|
453352
453424
|
logEvent("tengu_native_auto_updater_lock_contention", {
|
|
@@ -453483,17 +453555,17 @@ function PackageManagerAutoUpdater(t0) {
|
|
|
453483
453555
|
const maxVersion = await getMaxVersion();
|
|
453484
453556
|
if (maxVersion && latest && gt(latest, maxVersion)) {
|
|
453485
453557
|
logForDebugging(`PackageManagerAutoUpdater: maxVersion ${maxVersion} is set, capping update from ${latest} to ${maxVersion}`);
|
|
453486
|
-
if (gte({ VERSION: "0.2.
|
|
453487
|
-
logForDebugging(`PackageManagerAutoUpdater: current version ${{ VERSION: "0.2.
|
|
453558
|
+
if (gte({ VERSION: "0.2.59", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
|
|
453559
|
+
logForDebugging(`PackageManagerAutoUpdater: current version ${{ VERSION: "0.2.59", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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`);
|
|
453488
453560
|
setUpdateAvailable(false);
|
|
453489
453561
|
return;
|
|
453490
453562
|
}
|
|
453491
453563
|
latest = maxVersion;
|
|
453492
453564
|
}
|
|
453493
|
-
const hasUpdate = latest && !gte({ VERSION: "0.2.
|
|
453565
|
+
const hasUpdate = latest && !gte({ VERSION: "0.2.59", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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);
|
|
453494
453566
|
setUpdateAvailable(!!hasUpdate);
|
|
453495
453567
|
if (hasUpdate) {
|
|
453496
|
-
logForDebugging(`PackageManagerAutoUpdater: Update available ${{ VERSION: "0.2.
|
|
453568
|
+
logForDebugging(`PackageManagerAutoUpdater: Update available ${{ VERSION: "0.2.59", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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}`);
|
|
453497
453569
|
}
|
|
453498
453570
|
};
|
|
453499
453571
|
$2[0] = t1;
|
|
@@ -453527,7 +453599,7 @@ function PackageManagerAutoUpdater(t0) {
|
|
|
453527
453599
|
wrap: "truncate",
|
|
453528
453600
|
children: [
|
|
453529
453601
|
"currentVersion: ",
|
|
453530
|
-
{ VERSION: "0.2.
|
|
453602
|
+
{ VERSION: "0.2.59", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
|
|
453531
453603
|
]
|
|
453532
453604
|
});
|
|
453533
453605
|
$2[3] = verbose;
|
|
@@ -461401,7 +461473,7 @@ function buildStatusLineCommandInput(permissionMode, exceeds200kTokens, settings
|
|
|
461401
461473
|
project_dir: getOriginalCwd(),
|
|
461402
461474
|
added_dirs: addedDirs
|
|
461403
461475
|
},
|
|
461404
|
-
version: { VERSION: "0.2.
|
|
461476
|
+
version: { VERSION: "0.2.59", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
|
|
461405
461477
|
output_style: {
|
|
461406
461478
|
name: outputStyleName
|
|
461407
461479
|
},
|
|
@@ -485681,7 +485753,7 @@ function completeOnboarding() {
|
|
|
485681
485753
|
saveGlobalConfig((current) => ({
|
|
485682
485754
|
...current,
|
|
485683
485755
|
hasCompletedOnboarding: true,
|
|
485684
|
-
lastOnboardingVersion: { VERSION: "0.2.
|
|
485756
|
+
lastOnboardingVersion: { VERSION: "0.2.59", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
|
|
485685
485757
|
}));
|
|
485686
485758
|
}
|
|
485687
485759
|
function showDialog(root2, renderer) {
|
|
@@ -496632,7 +496704,7 @@ async function startMCPServer(cwd3, debug3, verbose) {
|
|
|
496632
496704
|
setCwd(cwd3);
|
|
496633
496705
|
const server2 = new Server({
|
|
496634
496706
|
name: "theus/tengu",
|
|
496635
|
-
version: { VERSION: "0.2.
|
|
496707
|
+
version: { VERSION: "0.2.59", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
|
|
496636
496708
|
}, {
|
|
496637
496709
|
capabilities: {
|
|
496638
496710
|
tools: {}
|
|
@@ -498074,7 +498146,7 @@ async function setupTokenHandler(root2) {
|
|
|
498074
498146
|
gap: 1,
|
|
498075
498147
|
children: [
|
|
498076
498148
|
/* @__PURE__ */ jsx_runtime495.jsx(TheusBanner, {
|
|
498077
|
-
version: { VERSION: "0.2.
|
|
498149
|
+
version: { VERSION: "0.2.59", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
|
|
498078
498150
|
}),
|
|
498079
498151
|
showAuthWarning && /* @__PURE__ */ jsx_runtime495.jsxs(ThemedBox_default, {
|
|
498080
498152
|
flexDirection: "column",
|
|
@@ -499556,7 +499628,7 @@ ${assistantAddendum}` : assistantAddendum;
|
|
|
499556
499628
|
}
|
|
499557
499629
|
}
|
|
499558
499630
|
logForDiagnosticsNoPII("info", "started", {
|
|
499559
|
-
version: { VERSION: "0.2.
|
|
499631
|
+
version: { VERSION: "0.2.59", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
|
|
499560
499632
|
is_native_binary: isInBundledMode()
|
|
499561
499633
|
});
|
|
499562
499634
|
registerCleanup(async () => {
|
|
@@ -500424,7 +500496,7 @@ Usage: theus --remote "your task description"`, () => gracefulShutdown(1));
|
|
|
500424
500496
|
pendingHookMessages
|
|
500425
500497
|
}, renderAndRun);
|
|
500426
500498
|
}
|
|
500427
|
-
}).version(`${{ VERSION: "0.2.
|
|
500499
|
+
}).version(`${{ VERSION: "0.2.59", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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");
|
|
500428
500500
|
program2.option("-w, --worktree [name]", "Crea un nuevo worktree de git para esta sesi\xF3n (opcionalmente indica un nombre)");
|
|
500429
500501
|
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.");
|
|
500430
500502
|
if (canUserConfigureAdvisor()) {
|
|
@@ -500976,7 +501048,7 @@ if (false) {}
|
|
|
500976
501048
|
async function main2() {
|
|
500977
501049
|
const args = process.argv.slice(2);
|
|
500978
501050
|
if (args.length === 1 && (args[0] === "--version" || args[0] === "-v" || args[0] === "-V")) {
|
|
500979
|
-
console.log(`${{ VERSION: "0.2.
|
|
501051
|
+
console.log(`${{ VERSION: "0.2.59", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)`);
|
|
500980
501052
|
return;
|
|
500981
501053
|
}
|
|
500982
501054
|
const {
|