theus-cli 0.2.79 → 0.2.80
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 +125 -114
- package/package.json +1 -1
package/cli.js
CHANGED
|
@@ -57780,7 +57780,7 @@ async function _executeApiKeyHelper(isNonInteractiveSession) {
|
|
|
57780
57780
|
if (isApiKeyHelperFromProjectOrLocalSettings()) {
|
|
57781
57781
|
const hasTrust = checkHasTrustDialogAccepted();
|
|
57782
57782
|
if (!hasTrust && !isNonInteractiveSession) {
|
|
57783
|
-
const error40 = new Error(`Security: apiKeyHelper executed before workspace trust is confirmed. If you see this message, post in ${{ VERSION: "0.2.
|
|
57783
|
+
const error40 = new Error(`Security: apiKeyHelper executed before workspace trust is confirmed. If you see this message, post in ${{ VERSION: "0.2.80", BUILD_TIME: "1970-01-01T00:00:00.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}.`);
|
|
57784
57784
|
logAntError("apiKeyHelper invoked before trust check", error40);
|
|
57785
57785
|
logEvent("theus_apiKeyHelper_missing_trust11", {});
|
|
57786
57786
|
return null;
|
|
@@ -57824,7 +57824,7 @@ async function runAwsAuthRefresh() {
|
|
|
57824
57824
|
if (isAwsAuthRefreshFromProjectSettings()) {
|
|
57825
57825
|
const hasTrust = checkHasTrustDialogAccepted();
|
|
57826
57826
|
if (!hasTrust && !getIsNonInteractiveSession()) {
|
|
57827
|
-
const error40 = new Error(`Security: awsAuthRefresh executed before workspace trust is confirmed. If you see this message, post in ${{ VERSION: "0.2.
|
|
57827
|
+
const error40 = new Error(`Security: awsAuthRefresh executed before workspace trust is confirmed. If you see this message, post in ${{ VERSION: "0.2.80", BUILD_TIME: "1970-01-01T00:00:00.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}.`);
|
|
57828
57828
|
logAntError("awsAuthRefresh invoked before trust check", error40);
|
|
57829
57829
|
logEvent("theus_awsAuthRefresh_missing_trust", {});
|
|
57830
57830
|
return false;
|
|
@@ -57884,7 +57884,7 @@ async function getAwsCredsFromCredentialExport() {
|
|
|
57884
57884
|
if (isAwsCredentialExportFromProjectSettings()) {
|
|
57885
57885
|
const hasTrust = checkHasTrustDialogAccepted();
|
|
57886
57886
|
if (!hasTrust && !getIsNonInteractiveSession()) {
|
|
57887
|
-
const error40 = new Error(`Security: awsCredentialExport executed before workspace trust is confirmed. If you see this message, post in ${{ VERSION: "0.2.
|
|
57887
|
+
const error40 = new Error(`Security: awsCredentialExport executed before workspace trust is confirmed. If you see this message, post in ${{ VERSION: "0.2.80", BUILD_TIME: "1970-01-01T00:00:00.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}.`);
|
|
57888
57888
|
logAntError("awsCredentialExport invoked before trust check", error40);
|
|
57889
57889
|
logEvent("theus_awsCredentialExport_missing_trust", {});
|
|
57890
57890
|
return null;
|
|
@@ -57969,7 +57969,7 @@ async function runGcpAuthRefresh() {
|
|
|
57969
57969
|
if (isGcpAuthRefreshFromProjectSettings()) {
|
|
57970
57970
|
const hasTrust = checkHasTrustDialogAccepted();
|
|
57971
57971
|
if (!hasTrust && !getIsNonInteractiveSession()) {
|
|
57972
|
-
const error40 = new Error(`Security: gcpAuthRefresh executed before workspace trust is confirmed. If you see this message, post in ${{ VERSION: "0.2.
|
|
57972
|
+
const error40 = new Error(`Security: gcpAuthRefresh executed before workspace trust is confirmed. If you see this message, post in ${{ VERSION: "0.2.80", BUILD_TIME: "1970-01-01T00:00:00.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}.`);
|
|
57973
57973
|
logAntError("gcpAuthRefresh invoked before trust check", error40);
|
|
57974
57974
|
logEvent("theus_gcpAuthRefresh_missing_trust", {});
|
|
57975
57975
|
return false;
|
|
@@ -58688,7 +58688,7 @@ var init_auth = __esm(() => {
|
|
|
58688
58688
|
|
|
58689
58689
|
// utils/userAgent.ts
|
|
58690
58690
|
function getTheusCodeUserAgent() {
|
|
58691
|
-
return `theus-code/${{ VERSION: "0.2.
|
|
58691
|
+
return `theus-code/${{ VERSION: "0.2.80", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION}`;
|
|
58692
58692
|
}
|
|
58693
58693
|
|
|
58694
58694
|
// utils/workloadContext.ts
|
|
@@ -58710,7 +58710,7 @@ function getUserAgent() {
|
|
|
58710
58710
|
const clientApp = process.env.THEUS_AGENT_SDK_CLIENT_APP ? `, client-app/${process.env.THEUS_AGENT_SDK_CLIENT_APP}` : "";
|
|
58711
58711
|
const workload = getWorkload();
|
|
58712
58712
|
const workloadSuffix = workload ? `, workload/${workload}` : "";
|
|
58713
|
-
return `theus-cli/${{ VERSION: "0.2.
|
|
58713
|
+
return `theus-cli/${{ VERSION: "0.2.80", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION} (${"external"}, ${process.env.THEUS_CODE_ENTRYPOINT ?? "cli"}${agentSdkVersion}${clientApp}${workloadSuffix})`;
|
|
58714
58714
|
}
|
|
58715
58715
|
function getMCPUserAgent() {
|
|
58716
58716
|
const parts = [];
|
|
@@ -58724,7 +58724,7 @@ function getMCPUserAgent() {
|
|
|
58724
58724
|
parts.push(`client-app/${process.env.THEUS_AGENT_SDK_CLIENT_APP}`);
|
|
58725
58725
|
}
|
|
58726
58726
|
const suffix = parts.length > 0 ? ` (${parts.join(", ")})` : "";
|
|
58727
|
-
return `theus-code/${{ VERSION: "0.2.
|
|
58727
|
+
return `theus-code/${{ VERSION: "0.2.80", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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}`;
|
|
58728
58728
|
}
|
|
58729
58729
|
function getWebFetchUserAgent() {
|
|
58730
58730
|
return `Theus-User (${getTheusCodeUserAgent()}; +https://support.theus.pe/)`;
|
|
@@ -58862,7 +58862,7 @@ var init_user = __esm(() => {
|
|
|
58862
58862
|
deviceId,
|
|
58863
58863
|
sessionId: getSessionId(),
|
|
58864
58864
|
email: getEmail(),
|
|
58865
|
-
appVersion: { VERSION: "0.2.
|
|
58865
|
+
appVersion: { VERSION: "0.2.80", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
|
|
58866
58866
|
platform: getHostPlatformForAnalytics(),
|
|
58867
58867
|
organizationUuid,
|
|
58868
58868
|
accountUuid,
|
|
@@ -60572,7 +60572,7 @@ var init_metadata = __esm(() => {
|
|
|
60572
60572
|
COMPOUND_OPERATOR_REGEX = /\s*(?:&&|\|\||[;|])\s*/;
|
|
60573
60573
|
WHITESPACE_REGEX = /\s+/;
|
|
60574
60574
|
getVersionBase = memoize_default(() => {
|
|
60575
|
-
const match = { VERSION: "0.2.
|
|
60575
|
+
const match = { VERSION: "0.2.80", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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]+)?/);
|
|
60576
60576
|
return match ? match[0] : undefined;
|
|
60577
60577
|
});
|
|
60578
60578
|
buildEnvContext = memoize_default(async () => {
|
|
@@ -60612,9 +60612,9 @@ var init_metadata = __esm(() => {
|
|
|
60612
60612
|
isGithubAction: isEnvTruthy(process.env.GITHUB_ACTIONS),
|
|
60613
60613
|
isTheusCodeAction: isEnvTruthy(process.env.THEUS_CODE_ACTION),
|
|
60614
60614
|
isTheusAiAuth: isTheusAISubscriber(),
|
|
60615
|
-
version: { VERSION: "0.2.
|
|
60615
|
+
version: { VERSION: "0.2.80", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
|
|
60616
60616
|
versionBase: getVersionBase(),
|
|
60617
|
-
buildTime: { VERSION: "0.2.
|
|
60617
|
+
buildTime: { VERSION: "0.2.80", BUILD_TIME: "1970-01-01T00:00:00.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,
|
|
60618
60618
|
deploymentEnvironment: env3.detectDeploymentEnvironment(),
|
|
60619
60619
|
...isEnvTruthy(process.env.GITHUB_ACTIONS) && {
|
|
60620
60620
|
githubEventName: process.env.GITHUB_EVENT_NAME,
|
|
@@ -61230,7 +61230,7 @@ function initialize1PEventLogging() {
|
|
|
61230
61230
|
const platform2 = getPlatform();
|
|
61231
61231
|
const attributes = {
|
|
61232
61232
|
[ATTR_SERVICE_NAME]: "theus-code",
|
|
61233
|
-
[ATTR_SERVICE_VERSION]: { VERSION: "0.2.
|
|
61233
|
+
[ATTR_SERVICE_VERSION]: { VERSION: "0.2.80", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
|
|
61234
61234
|
};
|
|
61235
61235
|
if (platform2 === "wsl") {
|
|
61236
61236
|
const wslVersion = getWslVersion();
|
|
@@ -61257,7 +61257,7 @@ function initialize1PEventLogging() {
|
|
|
61257
61257
|
})
|
|
61258
61258
|
]
|
|
61259
61259
|
});
|
|
61260
|
-
firstPartyEventLogger = firstPartyEventLoggerProvider.getLogger("com.theus.theus_code.events", { VERSION: "0.2.
|
|
61260
|
+
firstPartyEventLogger = firstPartyEventLoggerProvider.getLogger("com.theus.theus_code.events", { VERSION: "0.2.80", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION);
|
|
61261
61261
|
}
|
|
61262
61262
|
async function reinitialize1PEventLoggingIfConfigChanged() {
|
|
61263
61263
|
if (!is1PEventLoggingEnabled() || !firstPartyEventLoggerProvider) {
|
|
@@ -91096,7 +91096,7 @@ function getAttributionHeader(fingerprint) {
|
|
|
91096
91096
|
if (!isAttributionHeaderEnabled()) {
|
|
91097
91097
|
return "";
|
|
91098
91098
|
}
|
|
91099
|
-
const version2 = `${{ VERSION: "0.2.
|
|
91099
|
+
const version2 = `${{ VERSION: "0.2.80", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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}`;
|
|
91100
91100
|
const entrypoint = process.env.THEUS_CODE_ENTRYPOINT ?? "unknown";
|
|
91101
91101
|
const cch = "";
|
|
91102
91102
|
const workload = getWorkload();
|
|
@@ -104132,7 +104132,7 @@ Complete the user's request by providing accurate, documentation-based guidance.
|
|
|
104132
104132
|
}
|
|
104133
104133
|
function getFeedbackGuideline() {
|
|
104134
104134
|
if (isUsing3PServices()) {
|
|
104135
|
-
return `- When you cannot find an answer or the feature doesn't exist, direct the user to ${{ VERSION: "0.2.
|
|
104135
|
+
return `- When you cannot find an answer or the feature doesn't exist, direct the user to ${{ VERSION: "0.2.80", BUILD_TIME: "1970-01-01T00:00:00.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}`;
|
|
104136
104136
|
}
|
|
104137
104137
|
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";
|
|
104138
104138
|
}
|
|
@@ -144316,7 +144316,7 @@ function getTelemetryAttributes() {
|
|
|
144316
144316
|
attributes["session.id"] = sessionId;
|
|
144317
144317
|
}
|
|
144318
144318
|
if (shouldIncludeAttribute("OTEL_METRICS_INCLUDE_VERSION")) {
|
|
144319
|
-
attributes["app.version"] = { VERSION: "0.2.
|
|
144319
|
+
attributes["app.version"] = { VERSION: "0.2.80", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION;
|
|
144320
144320
|
}
|
|
144321
144321
|
const oauthAccount = getOauthAccountInfo();
|
|
144322
144322
|
if (oauthAccount) {
|
|
@@ -220595,7 +220595,7 @@ async function getMcpHeadersFromHelper(serverName, config2) {
|
|
|
220595
220595
|
if ("scope" in config2 && isMcpServerFromProjectOrLocalSettings(config2) && !getIsNonInteractiveSession()) {
|
|
220596
220596
|
const hasTrust = checkHasTrustDialogAccepted();
|
|
220597
220597
|
if (!hasTrust) {
|
|
220598
|
-
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.
|
|
220598
|
+
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.80", BUILD_TIME: "1970-01-01T00:00:00.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}.`);
|
|
220599
220599
|
logAntError("MCP headersHelper invoked before trust check", error40);
|
|
220600
220600
|
logEvent("theus_mcp_headersHelper_missing_trust", {});
|
|
220601
220601
|
return null;
|
|
@@ -221287,7 +221287,7 @@ function computeFingerprint(messageText, version2) {
|
|
|
221287
221287
|
}
|
|
221288
221288
|
function computeFingerprintFromMessages(messages) {
|
|
221289
221289
|
const firstMessageText = extractFirstMessageText(messages);
|
|
221290
|
-
return computeFingerprint(firstMessageText, { VERSION: "0.2.
|
|
221290
|
+
return computeFingerprint(firstMessageText, { VERSION: "0.2.80", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION);
|
|
221291
221291
|
}
|
|
221292
221292
|
var FINGERPRINT_SALT = "59cf53e54c78";
|
|
221293
221293
|
var init_fingerprint = () => {};
|
|
@@ -221329,7 +221329,7 @@ async function sideQuery(opts) {
|
|
|
221329
221329
|
betas.push(STRUCTURED_OUTPUTS_BETA_HEADER);
|
|
221330
221330
|
}
|
|
221331
221331
|
const messageText = extractFirstUserMessageText(messages);
|
|
221332
|
-
const fingerprint = computeFingerprint(messageText, { VERSION: "0.2.
|
|
221332
|
+
const fingerprint = computeFingerprint(messageText, { VERSION: "0.2.80", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION);
|
|
221333
221333
|
const attributionHeader = getAttributionHeader(fingerprint);
|
|
221334
221334
|
const systemBlocks = [
|
|
221335
221335
|
attributionHeader ? { type: "text", text: attributionHeader } : null,
|
|
@@ -222453,7 +222453,7 @@ async function setupSdkMcpClients(sdkMcpConfigs, sendMcpMessage) {
|
|
|
222453
222453
|
const client2 = new Client({
|
|
222454
222454
|
name: "theus-code",
|
|
222455
222455
|
title: "Theus",
|
|
222456
|
-
version: { VERSION: "0.2.
|
|
222456
|
+
version: { VERSION: "0.2.80", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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",
|
|
222457
222457
|
description: "Theus's agentic coding tool",
|
|
222458
222458
|
websiteUrl: PRODUCT_URL
|
|
222459
222459
|
}, {
|
|
@@ -222807,7 +222807,7 @@ var init_client5 = __esm(() => {
|
|
|
222807
222807
|
const client2 = new Client({
|
|
222808
222808
|
name: "theus-code",
|
|
222809
222809
|
title: "Theus",
|
|
222810
|
-
version: { VERSION: "0.2.
|
|
222810
|
+
version: { VERSION: "0.2.80", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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",
|
|
222811
222811
|
description: "Theus's agentic coding tool",
|
|
222812
222812
|
websiteUrl: PRODUCT_URL
|
|
222813
222813
|
}, {
|
|
@@ -242655,7 +242655,7 @@ async function initializeBetaTracing(resource) {
|
|
|
242655
242655
|
});
|
|
242656
242656
|
logs.setGlobalLoggerProvider(loggerProvider);
|
|
242657
242657
|
setLoggerProvider(loggerProvider);
|
|
242658
|
-
const eventLogger = logs.getLogger("com.theus.theus_code.events", { VERSION: "0.2.
|
|
242658
|
+
const eventLogger = logs.getLogger("com.theus.theus_code.events", { VERSION: "0.2.80", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION);
|
|
242659
242659
|
setEventLogger(eventLogger);
|
|
242660
242660
|
process.on("beforeExit", async () => {
|
|
242661
242661
|
await loggerProvider?.forceFlush();
|
|
@@ -242695,7 +242695,7 @@ async function initializeTelemetry() {
|
|
|
242695
242695
|
const platform4 = getPlatform();
|
|
242696
242696
|
const baseAttributes = {
|
|
242697
242697
|
[ATTR_SERVICE_NAME]: "theus-code",
|
|
242698
|
-
[ATTR_SERVICE_VERSION]: { VERSION: "0.2.
|
|
242698
|
+
[ATTR_SERVICE_VERSION]: { VERSION: "0.2.80", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
|
|
242699
242699
|
};
|
|
242700
242700
|
if (platform4 === "wsl") {
|
|
242701
242701
|
const wslVersion = getWslVersion();
|
|
@@ -242740,7 +242740,7 @@ async function initializeTelemetry() {
|
|
|
242740
242740
|
} catch {}
|
|
242741
242741
|
};
|
|
242742
242742
|
registerCleanup(shutdownTelemetry2);
|
|
242743
|
-
return meterProvider2.getMeter("com.theus.theus_code", { VERSION: "0.2.
|
|
242743
|
+
return meterProvider2.getMeter("com.theus.theus_code", { VERSION: "0.2.80", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION);
|
|
242744
242744
|
}
|
|
242745
242745
|
const meterProvider = new MeterProvider({
|
|
242746
242746
|
resource,
|
|
@@ -242760,7 +242760,7 @@ async function initializeTelemetry() {
|
|
|
242760
242760
|
});
|
|
242761
242761
|
logs.setGlobalLoggerProvider(loggerProvider);
|
|
242762
242762
|
setLoggerProvider(loggerProvider);
|
|
242763
|
-
const eventLogger = logs.getLogger("com.theus.theus_code.events", { VERSION: "0.2.
|
|
242763
|
+
const eventLogger = logs.getLogger("com.theus.theus_code.events", { VERSION: "0.2.80", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION);
|
|
242764
242764
|
setEventLogger(eventLogger);
|
|
242765
242765
|
logForDebugging("[3P telemetry] Event logger set successfully");
|
|
242766
242766
|
process.on("beforeExit", async () => {
|
|
@@ -242822,7 +242822,7 @@ Current timeout: ${timeoutMs}ms
|
|
|
242822
242822
|
}
|
|
242823
242823
|
};
|
|
242824
242824
|
registerCleanup(shutdownTelemetry);
|
|
242825
|
-
return meterProvider.getMeter("com.theus.theus_code", { VERSION: "0.2.
|
|
242825
|
+
return meterProvider.getMeter("com.theus.theus_code", { VERSION: "0.2.80", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION);
|
|
242826
242826
|
}
|
|
242827
242827
|
async function flushTelemetry() {
|
|
242828
242828
|
const meterProvider = getMeterProvider();
|
|
@@ -243364,7 +243364,7 @@ async function installOrUpdateTheusPackage(channel2, specificVersion) {
|
|
|
243364
243364
|
return "install_failed";
|
|
243365
243365
|
}
|
|
243366
243366
|
const versionSpec = specificVersion ? specificVersion : channel2 === "stable" ? "stable" : "latest";
|
|
243367
|
-
const result = await execFileNoThrowWithCwd("npm", ["install", `${{ VERSION: "0.2.
|
|
243367
|
+
const result = await execFileNoThrowWithCwd("npm", ["install", `${{ VERSION: "0.2.80", BUILD_TIME: "1970-01-01T00:00:00.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 });
|
|
243368
243368
|
if (result.code !== 0) {
|
|
243369
243369
|
const error40 = new Error(`Failed to install Theus CLI package: ${result.stderr}`);
|
|
243370
243370
|
logError2(error40);
|
|
@@ -243510,9 +243510,9 @@ async function assertMinVersion() {
|
|
|
243510
243510
|
if (false) {}
|
|
243511
243511
|
try {
|
|
243512
243512
|
const versionConfig = await getDynamicConfig_BLOCKS_ON_INIT("theus_version_config", { minVersion: "0.0.0" });
|
|
243513
|
-
if (versionConfig.minVersion && lt({ VERSION: "0.2.
|
|
243513
|
+
if (versionConfig.minVersion && lt({ VERSION: "0.2.80", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
|
|
243514
243514
|
console.error(`
|
|
243515
|
-
It looks like your version of Theus (${{ VERSION: "0.2.
|
|
243515
|
+
It looks like your version of Theus (${{ VERSION: "0.2.80", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.
|
|
243516
243516
|
A newer version (${versionConfig.minVersion} or higher) is required to continue.
|
|
243517
243517
|
|
|
243518
243518
|
To update, please run:
|
|
@@ -243649,7 +243649,7 @@ async function getInstallationPrefix() {
|
|
|
243649
243649
|
return prefixResult.stdout.trim();
|
|
243650
243650
|
}
|
|
243651
243651
|
function getGlobalInstallPackageManager() {
|
|
243652
|
-
if ({ VERSION: "0.2.
|
|
243652
|
+
if ({ VERSION: "0.2.80", BUILD_TIME: "1970-01-01T00:00:00.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") {
|
|
243653
243653
|
return "npm";
|
|
243654
243654
|
}
|
|
243655
243655
|
return env3.isRunningWithBun() ? "bun" : "npm";
|
|
@@ -243674,7 +243674,7 @@ async function checkGlobalInstallPermissions() {
|
|
|
243674
243674
|
}
|
|
243675
243675
|
async function getLatestVersion(channel2) {
|
|
243676
243676
|
const npmTag = channel2 === "stable" ? "stable" : "latest";
|
|
243677
|
-
const result = await execFileNoThrowWithCwd("npm", ["view", `${{ VERSION: "0.2.
|
|
243677
|
+
const result = await execFileNoThrowWithCwd("npm", ["view", `${{ VERSION: "0.2.80", BUILD_TIME: "1970-01-01T00:00:00.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: homedir20() });
|
|
243678
243678
|
if (result.code !== 0) {
|
|
243679
243679
|
logForDebugging(`npm view failed with code ${result.code}`);
|
|
243680
243680
|
if (result.stderr) {
|
|
@@ -243690,7 +243690,7 @@ async function getLatestVersion(channel2) {
|
|
|
243690
243690
|
return result.stdout.trim();
|
|
243691
243691
|
}
|
|
243692
243692
|
async function getNpmDistTags() {
|
|
243693
|
-
const result = await execFileNoThrowWithCwd("npm", ["view", { VERSION: "0.2.
|
|
243693
|
+
const result = await execFileNoThrowWithCwd("npm", ["view", { VERSION: "0.2.80", BUILD_TIME: "1970-01-01T00:00:00.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: homedir20() });
|
|
243694
243694
|
if (result.code !== 0) {
|
|
243695
243695
|
logForDebugging(`npm view dist-tags failed with code ${result.code}`);
|
|
243696
243696
|
return { latest: null, stable: null };
|
|
@@ -243734,7 +243734,7 @@ async function installGlobalPackage(specificVersion) {
|
|
|
243734
243734
|
logError2(new AutoUpdaterError("Another process is currently installing an update"));
|
|
243735
243735
|
logEvent("theus_auto_updater_lock_contention", {
|
|
243736
243736
|
pid: process.pid,
|
|
243737
|
-
currentVersion: { VERSION: "0.2.
|
|
243737
|
+
currentVersion: { VERSION: "0.2.80", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
|
|
243738
243738
|
});
|
|
243739
243739
|
return "in_progress";
|
|
243740
243740
|
}
|
|
@@ -243743,7 +243743,7 @@ async function installGlobalPackage(specificVersion) {
|
|
|
243743
243743
|
if (!env3.isRunningWithBun() && env3.isNpmFromWindowsPath()) {
|
|
243744
243744
|
logError2(new Error("Windows NPM detected in WSL environment"));
|
|
243745
243745
|
logEvent("theus_auto_updater_windows_npm_in_wsl", {
|
|
243746
|
-
currentVersion: { VERSION: "0.2.
|
|
243746
|
+
currentVersion: { VERSION: "0.2.80", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
|
|
243747
243747
|
});
|
|
243748
243748
|
console.error(`
|
|
243749
243749
|
Error: Windows NPM detected in WSL
|
|
@@ -243762,7 +243762,7 @@ To fix this issue:
|
|
|
243762
243762
|
if (!hasPermissions) {
|
|
243763
243763
|
return "no_permissions";
|
|
243764
243764
|
}
|
|
243765
|
-
const packageSpec = specificVersion ? `${{ VERSION: "0.2.
|
|
243765
|
+
const packageSpec = specificVersion ? `${{ VERSION: "0.2.80", BUILD_TIME: "1970-01-01T00:00:00.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.80", BUILD_TIME: "1970-01-01T00:00:00.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;
|
|
243766
243766
|
const packageManager = getGlobalInstallPackageManager();
|
|
243767
243767
|
const installResult = await execFileNoThrowWithCwd(packageManager, ["install", "-g", packageSpec], { cwd: homedir20() });
|
|
243768
243768
|
if (installResult.code !== 0) {
|
|
@@ -244091,8 +244091,8 @@ async function detectMultipleInstallations() {
|
|
|
244091
244091
|
installations.push({ type: "npm-local", path: localPath });
|
|
244092
244092
|
}
|
|
244093
244093
|
const packagesToCheck = ["@theus-ai/theus-code"];
|
|
244094
|
-
if ({ VERSION: "0.2.
|
|
244095
|
-
packagesToCheck.push({ VERSION: "0.2.
|
|
244094
|
+
if ({ VERSION: "0.2.80", BUILD_TIME: "1970-01-01T00:00:00.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.80", BUILD_TIME: "1970-01-01T00:00:00.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") {
|
|
244095
|
+
packagesToCheck.push({ VERSION: "0.2.80", BUILD_TIME: "1970-01-01T00:00:00.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);
|
|
244096
244096
|
}
|
|
244097
244097
|
const npmResult = await execFileNoThrow("npm", [
|
|
244098
244098
|
"-g",
|
|
@@ -244275,7 +244275,7 @@ function detectLinuxGlobPatternWarnings() {
|
|
|
244275
244275
|
}
|
|
244276
244276
|
async function getDoctorDiagnostic() {
|
|
244277
244277
|
const installationType = await getCurrentInstallationType();
|
|
244278
|
-
const version2 = { VERSION: "0.2.
|
|
244278
|
+
const version2 = { VERSION: "0.2.80", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.80", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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";
|
|
244279
244279
|
const installationPath = await getInstallationPath();
|
|
244280
244280
|
const invokedBinary = getInvokedBinary();
|
|
244281
244281
|
const multipleInstallations = await detectMultipleInstallations();
|
|
@@ -244287,8 +244287,8 @@ async function getDoctorDiagnostic() {
|
|
|
244287
244287
|
for (const install of npmInstalls) {
|
|
244288
244288
|
if (install.type === "npm-global") {
|
|
244289
244289
|
let uninstallCmd = "npm -g uninstall @theus-ai/theus-code";
|
|
244290
|
-
if ({ VERSION: "0.2.
|
|
244291
|
-
uninstallCmd += ` && npm -g uninstall ${{ VERSION: "0.2.
|
|
244290
|
+
if ({ VERSION: "0.2.80", BUILD_TIME: "1970-01-01T00:00:00.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.80", BUILD_TIME: "1970-01-01T00:00:00.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") {
|
|
244291
|
+
uninstallCmd += ` && npm -g uninstall ${{ VERSION: "0.2.80", BUILD_TIME: "1970-01-01T00:00:00.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}`;
|
|
244292
244292
|
}
|
|
244293
244293
|
warnings.push({
|
|
244294
244294
|
issue: `Leftover npm global installation at ${install.path}`,
|
|
@@ -245106,8 +245106,8 @@ async function updateLatest(channelOrVersion, forceReinstall = false) {
|
|
|
245106
245106
|
const maxVersion = await getMaxVersion();
|
|
245107
245107
|
if (maxVersion && gt(version2, maxVersion)) {
|
|
245108
245108
|
logForDebugging(`Native installer: maxVersion ${maxVersion} is set, capping update from ${version2} to ${maxVersion}`);
|
|
245109
|
-
if (gte({ VERSION: "0.2.
|
|
245110
|
-
logForDebugging(`Native installer: current version ${{ VERSION: "0.2.
|
|
245109
|
+
if (gte({ VERSION: "0.2.80", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
|
|
245110
|
+
logForDebugging(`Native installer: current version ${{ VERSION: "0.2.80", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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`);
|
|
245111
245111
|
logEvent("theus_native_update_skipped_max_version", {
|
|
245112
245112
|
latency_ms: Date.now() - startTime2,
|
|
245113
245113
|
max_version: maxVersion,
|
|
@@ -245118,7 +245118,7 @@ async function updateLatest(channelOrVersion, forceReinstall = false) {
|
|
|
245118
245118
|
version2 = maxVersion;
|
|
245119
245119
|
}
|
|
245120
245120
|
}
|
|
245121
|
-
if (!forceReinstall && version2 === { VERSION: "0.2.
|
|
245121
|
+
if (!forceReinstall && version2 === { VERSION: "0.2.80", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
|
|
245122
245122
|
logForDebugging(`Found ${version2} at ${executablePath}, skipping install`);
|
|
245123
245123
|
logEvent("theus_native_update_complete", {
|
|
245124
245124
|
latency_ms: Date.now() - startTime2,
|
|
@@ -245868,8 +245868,8 @@ async function cleanupNpmInstallations() {
|
|
|
245868
245868
|
} else if (codePackageResult.error) {
|
|
245869
245869
|
errors4.push(codePackageResult.error);
|
|
245870
245870
|
}
|
|
245871
|
-
if ({ VERSION: "0.2.
|
|
245872
|
-
const macroPackageResult = await attemptNpmUninstall({ VERSION: "0.2.
|
|
245871
|
+
if ({ VERSION: "0.2.80", BUILD_TIME: "1970-01-01T00:00:00.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.80", BUILD_TIME: "1970-01-01T00:00:00.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") {
|
|
245872
|
+
const macroPackageResult = await attemptNpmUninstall({ VERSION: "0.2.80", BUILD_TIME: "1970-01-01T00:00:00.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);
|
|
245873
245873
|
if (macroPackageResult.success) {
|
|
245874
245874
|
removed++;
|
|
245875
245875
|
if (macroPackageResult.warning) {
|
|
@@ -256286,6 +256286,17 @@ var init_ConsoleOAuthFlow = __esm(() => {
|
|
|
256286
256286
|
var NOVEDADES;
|
|
256287
256287
|
var init_data = __esm(() => {
|
|
256288
256288
|
NOVEDADES = [
|
|
256289
|
+
{
|
|
256290
|
+
version: "v0.2.80",
|
|
256291
|
+
fecha: "2026-08-14",
|
|
256292
|
+
titulo: "Theus se instala como un programa, no como un montaje",
|
|
256293
|
+
puntos: [
|
|
256294
|
+
"El instalador ya te entrega el programa terminado en vez de un paquete que necesitaba un motor aparte. Antes hab\xEDa que descargar ese motor de otro proyecto durante la instalaci\xF3n; ahora no se descarga nada m\xE1s.",
|
|
256295
|
+
"En macOS, Theus va firmado y notarizado por Apple, y el instalador comprueba esa firma antes de dejarlo en tu equipo: si el archivo no es exactamente el que publicamos, aborta. El checksum de siempre solo demostraba que la descarga no se hab\xEDa corrompido; la firma demuestra qui\xE9n lo hizo.",
|
|
256296
|
+
"Windows tiene por fin su propio programa. Se compila en el modo compatible, as\xED que los equipos con procesadores sin instrucciones modernas \u2014los de gama de entrada\u2014 dejan de quedarse fuera.",
|
|
256297
|
+
"Quien instala desde theus.pe recibe ya las habilidades del Arsenal. Hasta ahora solo llegaban por el canal de paquetes, y la pantalla de bienvenida promet\xEDa algo que esa copia no tra\xEDa."
|
|
256298
|
+
]
|
|
256299
|
+
},
|
|
256289
256300
|
{
|
|
256290
256301
|
version: "v0.2.79",
|
|
256291
256302
|
fecha: "2026-08-14",
|
|
@@ -300216,9 +300227,9 @@ function getTheusEnvMetadata() {
|
|
|
300216
300227
|
};
|
|
300217
300228
|
}
|
|
300218
300229
|
function getBuildAgeMinutes() {
|
|
300219
|
-
if (!{ VERSION: "0.2.
|
|
300230
|
+
if (!{ VERSION: "0.2.80", BUILD_TIME: "1970-01-01T00:00:00.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)
|
|
300220
300231
|
return;
|
|
300221
|
-
const buildTime = new Date({ VERSION: "0.2.
|
|
300232
|
+
const buildTime = new Date({ VERSION: "0.2.80", BUILD_TIME: "1970-01-01T00:00:00.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();
|
|
300222
300233
|
if (isNaN(buildTime))
|
|
300223
300234
|
return;
|
|
300224
300235
|
return Math.floor((Date.now() - buildTime) / 60000);
|
|
@@ -318523,7 +318534,7 @@ function getSimpleDoingTasksSection() {
|
|
|
318523
318534
|
];
|
|
318524
318535
|
const userHelpSubitems = [
|
|
318525
318536
|
`/help: Get help with using Theus`,
|
|
318526
|
-
`To give feedback, users should ${{ VERSION: "0.2.
|
|
318537
|
+
`To give feedback, users should ${{ VERSION: "0.2.80", BUILD_TIME: "1970-01-01T00:00:00.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}`
|
|
318527
318538
|
];
|
|
318528
318539
|
const items = [
|
|
318529
318540
|
`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.`,
|
|
@@ -329659,7 +329670,7 @@ async function submitTranscriptShare(messages, trigger, appearanceId) {
|
|
|
329659
329670
|
} catch {}
|
|
329660
329671
|
const data = {
|
|
329661
329672
|
trigger,
|
|
329662
|
-
version: { VERSION: "0.2.
|
|
329673
|
+
version: { VERSION: "0.2.80", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
|
|
329663
329674
|
platform: process.platform,
|
|
329664
329675
|
transcript,
|
|
329665
329676
|
subagentTranscripts: Object.keys(subagentTranscripts).length > 0 ? subagentTranscripts : undefined,
|
|
@@ -329864,10 +329875,10 @@ Si el usuario indic\xF3 una duraci\xF3n, p\xE1sala en el par\xE1metro \`duration
|
|
|
329864
329875
|
|
|
329865
329876
|
// commands/issue/index.ts
|
|
329866
329877
|
function getCliVersion() {
|
|
329867
|
-
return { VERSION: "0.2.
|
|
329878
|
+
return { VERSION: "0.2.80", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.80", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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";
|
|
329868
329879
|
}
|
|
329869
329880
|
function getIssuesExplainer() {
|
|
329870
|
-
return { VERSION: "0.2.
|
|
329881
|
+
return { VERSION: "0.2.80", BUILD_TIME: "1970-01-01T00:00:00.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.80", BUILD_TIME: "1970-01-01T00:00:00.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";
|
|
329871
329882
|
}
|
|
329872
329883
|
function getActiveModelLabel() {
|
|
329873
329884
|
try {
|
|
@@ -332653,7 +332664,7 @@ function buildPrimarySection() {
|
|
|
332653
332664
|
});
|
|
332654
332665
|
return [{
|
|
332655
332666
|
label: "Version",
|
|
332656
|
-
value: { VERSION: "0.2.
|
|
332667
|
+
value: { VERSION: "0.2.80", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
|
|
332657
332668
|
}, {
|
|
332658
332669
|
label: "Session name",
|
|
332659
332670
|
value: nameValue
|
|
@@ -336469,7 +336480,7 @@ function Config({
|
|
|
336469
336480
|
}
|
|
336470
336481
|
})
|
|
336471
336482
|
}) : showSubmenu === "ChannelDowngrade" ? /* @__PURE__ */ jsx_runtime189.jsx(ChannelDowngradeDialog, {
|
|
336472
|
-
currentVersion: { VERSION: "0.2.
|
|
336483
|
+
currentVersion: { VERSION: "0.2.80", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
|
|
336473
336484
|
onChoice: (choice) => {
|
|
336474
336485
|
setShowSubmenu(null);
|
|
336475
336486
|
setTabsHidden(false);
|
|
@@ -336481,7 +336492,7 @@ function Config({
|
|
|
336481
336492
|
autoUpdatesChannel: "stable"
|
|
336482
336493
|
};
|
|
336483
336494
|
if (choice === "stay") {
|
|
336484
|
-
newSettings.minimumVersion = { VERSION: "0.2.
|
|
336495
|
+
newSettings.minimumVersion = { VERSION: "0.2.80", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION;
|
|
336485
336496
|
}
|
|
336486
336497
|
updateSettingsForSource("userSettings", newSettings);
|
|
336487
336498
|
setSettingsData((prev_27) => ({
|
|
@@ -343840,7 +343851,7 @@ function HelpV2(t0) {
|
|
|
343840
343851
|
let t6;
|
|
343841
343852
|
if ($2[31] !== tabs) {
|
|
343842
343853
|
t6 = /* @__PURE__ */ jsx_runtime215.jsx(Tabs, {
|
|
343843
|
-
title: `Theus v${{ VERSION: "0.2.
|
|
343854
|
+
title: `Theus v${{ VERSION: "0.2.80", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION}`,
|
|
343844
343855
|
color: "professionalBlue",
|
|
343845
343856
|
defaultTab: "general",
|
|
343846
343857
|
children: tabs
|
|
@@ -362661,7 +362672,7 @@ function Onboarding({
|
|
|
362661
362672
|
flexDirection: "column",
|
|
362662
362673
|
children: [
|
|
362663
362674
|
/* @__PURE__ */ jsx_runtime251.jsx(TheusBanner, {
|
|
362664
|
-
version: { VERSION: "0.2.
|
|
362675
|
+
version: { VERSION: "0.2.80", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
|
|
362665
362676
|
}),
|
|
362666
362677
|
/* @__PURE__ */ jsx_runtime251.jsxs(ThemedBox_default, {
|
|
362667
362678
|
flexDirection: "column",
|
|
@@ -368048,7 +368059,7 @@ var init_Messages = __esm(() => {
|
|
|
368048
368059
|
let t1;
|
|
368049
368060
|
if ($2[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
368050
368061
|
t1 = /* @__PURE__ */ jsx_runtime264.jsx(TheusSessionHeader, {
|
|
368051
|
-
version: { VERSION: "0.2.
|
|
368062
|
+
version: { VERSION: "0.2.80", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
|
|
368052
368063
|
});
|
|
368053
368064
|
$2[0] = t1;
|
|
368054
368065
|
} else {
|
|
@@ -399917,7 +399928,7 @@ async function captureMemoryDiagnostics(trigger, dumpNumber = 0) {
|
|
|
399917
399928
|
smapsRollup,
|
|
399918
399929
|
platform: process.platform,
|
|
399919
399930
|
nodeVersion: process.version,
|
|
399920
|
-
ccVersion: { VERSION: "0.2.
|
|
399931
|
+
ccVersion: { VERSION: "0.2.80", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
|
|
399921
399932
|
};
|
|
399922
399933
|
}
|
|
399923
399934
|
async function performHeapDump(trigger = "manual", dumpNumber = 0) {
|
|
@@ -400678,7 +400689,7 @@ var init_bridge_kick = __esm(() => {
|
|
|
400678
400689
|
var call69 = async () => {
|
|
400679
400690
|
return {
|
|
400680
400691
|
type: "text",
|
|
400681
|
-
value: { VERSION: "0.2.
|
|
400692
|
+
value: { VERSION: "0.2.80", BUILD_TIME: "1970-01-01T00:00:00.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.80", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.80", BUILD_TIME: "1970-01-01T00:00:00.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.80", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
|
|
400682
400693
|
};
|
|
400683
400694
|
}, version2, version_default;
|
|
400684
400695
|
var init_version = __esm(() => {
|
|
@@ -403279,7 +403290,7 @@ var SECRET_NAME_PATTERN, EXTRA_ENV_ALLOWLIST, REDACTED2 = "\u2039oculto\u203A",
|
|
|
403279
403290
|
const lines = [];
|
|
403280
403291
|
lines.push("## Entorno de ejecuci\xF3n");
|
|
403281
403292
|
lines.push("");
|
|
403282
|
-
const version3 = { VERSION: "0.2.
|
|
403293
|
+
const version3 = { VERSION: "0.2.80", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.80", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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";
|
|
403283
403294
|
lines.push(`- Versi\xF3n de Theus: ${version3}`);
|
|
403284
403295
|
lines.push(`- Directorio de trabajo: ${getCwd()}`);
|
|
403285
403296
|
lines.push(`- \xBFRepositorio git?: ${isGit ? "s\xED" : "no"}`);
|
|
@@ -405820,13 +405831,13 @@ async function updateReleaseBundle() {
|
|
|
405820
405831
|
await gracefulShutdown(1);
|
|
405821
405832
|
return;
|
|
405822
405833
|
}
|
|
405823
|
-
if (gte({ VERSION: "0.2.
|
|
405824
|
-
writeToStdout(source_default.green(`Theus ya est\xE1 al d\xEDa (${{ VERSION: "0.2.
|
|
405834
|
+
if (gte({ VERSION: "0.2.80", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
|
|
405835
|
+
writeToStdout(source_default.green(`Theus ya est\xE1 al d\xEDa (${{ VERSION: "0.2.80", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION})`) + `
|
|
405825
405836
|
`);
|
|
405826
405837
|
await gracefulShutdown(0);
|
|
405827
405838
|
return;
|
|
405828
405839
|
}
|
|
405829
|
-
writeToStdout(`Nueva versi\xF3n disponible: ${latest} (actual: ${{ VERSION: "0.2.
|
|
405840
|
+
writeToStdout(`Nueva versi\xF3n disponible: ${latest} (actual: ${{ VERSION: "0.2.80", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION})
|
|
405830
405841
|
`);
|
|
405831
405842
|
writeToStdout(`Instalando la actualizaci\xF3n desde theus.pe/dl...
|
|
405832
405843
|
`);
|
|
@@ -405860,7 +405871,7 @@ async function updateReleaseBundle() {
|
|
|
405860
405871
|
return;
|
|
405861
405872
|
}
|
|
405862
405873
|
cpSync(staged, bundleDir, { recursive: true, force: true });
|
|
405863
|
-
writeToStdout(source_default.green(`Actualizado correctamente de ${{ VERSION: "0.2.
|
|
405874
|
+
writeToStdout(source_default.green(`Actualizado correctamente de ${{ VERSION: "0.2.80", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION} a la versi\xF3n ${latest}`) + `
|
|
405864
405875
|
`);
|
|
405865
405876
|
await regenerateCompletionCache();
|
|
405866
405877
|
} finally {
|
|
@@ -405873,7 +405884,7 @@ async function updateReleaseBundle() {
|
|
|
405873
405884
|
async function update() {
|
|
405874
405885
|
logEvent("theus_update_check", {});
|
|
405875
405886
|
await updateNaupa();
|
|
405876
|
-
writeToStdout(`Versi\xF3n actual: ${{ VERSION: "0.2.
|
|
405887
|
+
writeToStdout(`Versi\xF3n actual: ${{ VERSION: "0.2.80", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION}
|
|
405877
405888
|
`);
|
|
405878
405889
|
const channel2 = getInitialSettings()?.autoUpdatesChannel ?? "latest";
|
|
405879
405890
|
writeToStdout(`Buscando actualizaciones en el canal ${channel2}...
|
|
@@ -405952,8 +405963,8 @@ async function update() {
|
|
|
405952
405963
|
writeToStdout(`Theus est\xE1 gestionado por Homebrew.
|
|
405953
405964
|
`);
|
|
405954
405965
|
const latest = await getLatestVersion(channel2);
|
|
405955
|
-
if (latest && !gte({ VERSION: "0.2.
|
|
405956
|
-
writeToStdout(`Actualizaci\xF3n disponible: ${{ VERSION: "0.2.
|
|
405966
|
+
if (latest && !gte({ VERSION: "0.2.80", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
|
|
405967
|
+
writeToStdout(`Actualizaci\xF3n disponible: ${{ VERSION: "0.2.80", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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}
|
|
405957
405968
|
`);
|
|
405958
405969
|
writeToStdout(`
|
|
405959
405970
|
`);
|
|
@@ -405969,8 +405980,8 @@ async function update() {
|
|
|
405969
405980
|
writeToStdout(`Theus est\xE1 gestionado por winget.
|
|
405970
405981
|
`);
|
|
405971
405982
|
const latest = await getLatestVersion(channel2);
|
|
405972
|
-
if (latest && !gte({ VERSION: "0.2.
|
|
405973
|
-
writeToStdout(`Actualizaci\xF3n disponible: ${{ VERSION: "0.2.
|
|
405983
|
+
if (latest && !gte({ VERSION: "0.2.80", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
|
|
405984
|
+
writeToStdout(`Actualizaci\xF3n disponible: ${{ VERSION: "0.2.80", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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}
|
|
405974
405985
|
`);
|
|
405975
405986
|
writeToStdout(`
|
|
405976
405987
|
`);
|
|
@@ -405986,8 +405997,8 @@ async function update() {
|
|
|
405986
405997
|
writeToStdout(`Theus est\xE1 gestionado por apk.
|
|
405987
405998
|
`);
|
|
405988
405999
|
const latest = await getLatestVersion(channel2);
|
|
405989
|
-
if (latest && !gte({ VERSION: "0.2.
|
|
405990
|
-
writeToStdout(`Actualizaci\xF3n disponible: ${{ VERSION: "0.2.
|
|
406000
|
+
if (latest && !gte({ VERSION: "0.2.80", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
|
|
406001
|
+
writeToStdout(`Actualizaci\xF3n disponible: ${{ VERSION: "0.2.80", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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}
|
|
405991
406002
|
`);
|
|
405992
406003
|
writeToStdout(`
|
|
405993
406004
|
`);
|
|
@@ -406052,11 +406063,11 @@ async function update() {
|
|
|
406052
406063
|
`);
|
|
406053
406064
|
await gracefulShutdown(1);
|
|
406054
406065
|
}
|
|
406055
|
-
if (result.latestVersion === { VERSION: "0.2.
|
|
406056
|
-
writeToStdout(source_default.green(`Theus ya est\xE1 al d\xEDa (${{ VERSION: "0.2.
|
|
406066
|
+
if (result.latestVersion === { VERSION: "0.2.80", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION) {
|
|
406067
|
+
writeToStdout(source_default.green(`Theus ya est\xE1 al d\xEDa (${{ VERSION: "0.2.80", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION})`) + `
|
|
406057
406068
|
`);
|
|
406058
406069
|
} else {
|
|
406059
|
-
writeToStdout(source_default.green(`Actualizado correctamente de ${{ VERSION: "0.2.
|
|
406070
|
+
writeToStdout(source_default.green(`Actualizado correctamente de ${{ VERSION: "0.2.80", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION} a la versi\xF3n ${result.latestVersion}`) + `
|
|
406060
406071
|
`);
|
|
406061
406072
|
await regenerateCompletionCache();
|
|
406062
406073
|
}
|
|
@@ -406075,9 +406086,9 @@ async function update() {
|
|
|
406075
406086
|
await removeInstalledSymlink();
|
|
406076
406087
|
}
|
|
406077
406088
|
logForDebugging("update: Checking npm registry for latest version");
|
|
406078
|
-
logForDebugging(`update: Package URL: ${{ VERSION: "0.2.
|
|
406089
|
+
logForDebugging(`update: Package URL: ${{ VERSION: "0.2.80", BUILD_TIME: "1970-01-01T00:00:00.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}`);
|
|
406079
406090
|
const npmTag = channel2 === "stable" ? "stable" : "latest";
|
|
406080
|
-
const npmCommand = `npm view ${{ VERSION: "0.2.
|
|
406091
|
+
const npmCommand = `npm view ${{ VERSION: "0.2.80", BUILD_TIME: "1970-01-01T00:00:00.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`;
|
|
406081
406092
|
logForDebugging(`update: Running: ${npmCommand}`);
|
|
406082
406093
|
const latestVersion = await getLatestVersion(channel2);
|
|
406083
406094
|
logForDebugging(`update: Latest version from npm: ${latestVersion || "FAILED"}`);
|
|
@@ -406097,7 +406108,7 @@ async function update() {
|
|
|
406097
406108
|
`);
|
|
406098
406109
|
process.stderr.write(` \u2022 Un proxy o firewall corporativo bloquea npm
|
|
406099
406110
|
`);
|
|
406100
|
-
if ({ VERSION: "0.2.
|
|
406111
|
+
if ({ VERSION: "0.2.80", BUILD_TIME: "1970-01-01T00:00:00.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.80", BUILD_TIME: "1970-01-01T00:00:00.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")) {
|
|
406101
406112
|
process.stderr.write(` \u2022 Compilaci\xF3n interna/de desarrollo no publicada en npm
|
|
406102
406113
|
`);
|
|
406103
406114
|
}
|
|
@@ -406109,19 +406120,19 @@ async function update() {
|
|
|
406109
406120
|
`);
|
|
406110
406121
|
process.stderr.write(` \u2022 Ejecuta con el flag --debug para m\xE1s detalle
|
|
406111
406122
|
`);
|
|
406112
|
-
const packageName = { VERSION: "0.2.
|
|
406123
|
+
const packageName = { VERSION: "0.2.80", BUILD_TIME: "1970-01-01T00:00:00.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";
|
|
406113
406124
|
process.stderr.write(` \u2022 Comprueba a mano: npm view ${packageName} version
|
|
406114
406125
|
`);
|
|
406115
406126
|
process.stderr.write(` \u2022 Comprueba si te falta iniciar sesi\xF3n: npm whoami
|
|
406116
406127
|
`);
|
|
406117
406128
|
await gracefulShutdown(1);
|
|
406118
406129
|
}
|
|
406119
|
-
if (gte({ VERSION: "0.2.
|
|
406120
|
-
writeToStdout(source_default.green(`Theus ya est\xE1 al d\xEDa (${{ VERSION: "0.2.
|
|
406130
|
+
if (gte({ VERSION: "0.2.80", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
|
|
406131
|
+
writeToStdout(source_default.green(`Theus ya est\xE1 al d\xEDa (${{ VERSION: "0.2.80", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION})`) + `
|
|
406121
406132
|
`);
|
|
406122
406133
|
await gracefulShutdown(0);
|
|
406123
406134
|
}
|
|
406124
|
-
writeToStdout(`Nueva versi\xF3n disponible: ${latestVersion} (actual: ${{ VERSION: "0.2.
|
|
406135
|
+
writeToStdout(`Nueva versi\xF3n disponible: ${latestVersion} (actual: ${{ VERSION: "0.2.80", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION})
|
|
406125
406136
|
`);
|
|
406126
406137
|
writeToStdout(`Instalando la actualizaci\xF3n...
|
|
406127
406138
|
`);
|
|
@@ -406166,7 +406177,7 @@ async function update() {
|
|
|
406166
406177
|
logForDebugging(`update: Installation status: ${status2}`);
|
|
406167
406178
|
switch (status2) {
|
|
406168
406179
|
case "success":
|
|
406169
|
-
writeToStdout(source_default.green(`Actualizado correctamente de ${{ VERSION: "0.2.
|
|
406180
|
+
writeToStdout(source_default.green(`Actualizado correctamente de ${{ VERSION: "0.2.80", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION} a la versi\xF3n ${latestVersion}`) + `
|
|
406170
406181
|
`);
|
|
406171
406182
|
await regenerateCompletionCache();
|
|
406172
406183
|
break;
|
|
@@ -406176,7 +406187,7 @@ async function update() {
|
|
|
406176
406187
|
if (useLocalUpdate) {
|
|
406177
406188
|
process.stderr.write(`Prueba a actualizar a mano con:
|
|
406178
406189
|
`);
|
|
406179
|
-
process.stderr.write(` cd ~/.theus/local && npm update ${{ VERSION: "0.2.
|
|
406190
|
+
process.stderr.write(` cd ~/.theus/local && npm update ${{ VERSION: "0.2.80", BUILD_TIME: "1970-01-01T00:00:00.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}
|
|
406180
406191
|
`);
|
|
406181
406192
|
} else {
|
|
406182
406193
|
process.stderr.write(`Prueba con sudo o corrige los permisos de npm
|
|
@@ -406192,7 +406203,7 @@ async function update() {
|
|
|
406192
406203
|
if (useLocalUpdate) {
|
|
406193
406204
|
process.stderr.write(`Prueba a actualizar a mano con:
|
|
406194
406205
|
`);
|
|
406195
|
-
process.stderr.write(` cd ~/.theus/local && npm update ${{ VERSION: "0.2.
|
|
406206
|
+
process.stderr.write(` cd ~/.theus/local && npm update ${{ VERSION: "0.2.80", BUILD_TIME: "1970-01-01T00:00:00.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}
|
|
406196
406207
|
`);
|
|
406197
406208
|
} else {
|
|
406198
406209
|
process.stderr.write(`O p\xE1sate a la instalaci\xF3n nativa con: theus install
|
|
@@ -415617,7 +415628,7 @@ var init_sessionStorage = __esm(() => {
|
|
|
415617
415628
|
init_settings2();
|
|
415618
415629
|
init_slowOperations();
|
|
415619
415630
|
init_uuid();
|
|
415620
|
-
VERSION4 = { VERSION: "0.2.
|
|
415631
|
+
VERSION4 = { VERSION: "0.2.80", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION;
|
|
415621
415632
|
MAX_TOMBSTONE_REWRITE_BYTES = 50 * 1024 * 1024;
|
|
415622
415633
|
SKIP_FIRST_PROMPT_PATTERN2 = /^(?:\s*<[a-z][\w-]*[\s>]|\[Request interrupted by user[^\]]*\])/;
|
|
415623
415634
|
EPHEMERAL_PROGRESS_TYPES = new Set([
|
|
@@ -416822,7 +416833,7 @@ var init_filesystem = __esm(() => {
|
|
|
416822
416833
|
});
|
|
416823
416834
|
getBundledSkillsRoot = memoize_default(function getBundledSkillsRoot2() {
|
|
416824
416835
|
const nonce = randomBytes21(16).toString("hex");
|
|
416825
|
-
return join154(getTheusTempDir(), "bundled-skills", { VERSION: "0.2.
|
|
416836
|
+
return join154(getTheusTempDir(), "bundled-skills", { VERSION: "0.2.80", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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);
|
|
416826
416837
|
});
|
|
416827
416838
|
getResolvedWorkingDirPaths = memoize_default(getPathsForPermissionCheck);
|
|
416828
416839
|
});
|
|
@@ -428999,7 +429010,7 @@ async function handleMemories(state2) {
|
|
|
428999
429010
|
async function runProjectContextMcpServer() {
|
|
429000
429011
|
const projectRoot = process.env.THEUS_PROJECT_ROOT || process.cwd();
|
|
429001
429012
|
const state2 = new ProjectContextState(projectRoot);
|
|
429002
|
-
const server2 = new Server({ name: SERVER_NAME, version: { VERSION: "0.2.
|
|
429013
|
+
const server2 = new Server({ name: SERVER_NAME, version: { VERSION: "0.2.80", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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: {} } });
|
|
429003
429014
|
server2.setRequestHandler(ListToolsRequestSchema, async () => ({
|
|
429004
429015
|
tools: TOOL_DEFINITIONS.map((t) => ({
|
|
429005
429016
|
name: t.name,
|
|
@@ -431676,7 +431687,7 @@ async function runTitanFleetWorker(args) {
|
|
|
431676
431687
|
max_concurrency: maxConcurrency,
|
|
431677
431688
|
runtime: {
|
|
431678
431689
|
name: "theus-cli",
|
|
431679
|
-
version: { VERSION: "0.2.
|
|
431690
|
+
version: { VERSION: "0.2.80", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
|
|
431680
431691
|
}
|
|
431681
431692
|
});
|
|
431682
431693
|
const client2 = new TitanFleetClient({
|
|
@@ -433567,7 +433578,7 @@ function createBridgeLogger(options2) {
|
|
|
433567
433578
|
connectUrl = buildBridgeConnectUrl(environmentId, cachedIngressUrl);
|
|
433568
433579
|
regenerateQr(connectUrl);
|
|
433569
433580
|
if (verbose) {
|
|
433570
|
-
write(source_default.dim(`Remote Control`) + ` v${{ VERSION: "0.2.
|
|
433581
|
+
write(source_default.dim(`Remote Control`) + ` v${{ VERSION: "0.2.80", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION}
|
|
433571
433582
|
`);
|
|
433572
433583
|
}
|
|
433573
433584
|
if (verbose) {
|
|
@@ -434540,7 +434551,7 @@ function appendToLog(path19, message) {
|
|
|
434540
434551
|
cwd: getFsImplementation().cwd(),
|
|
434541
434552
|
userType: "external",
|
|
434542
434553
|
sessionId: getSessionId(),
|
|
434543
|
-
version: { VERSION: "0.2.
|
|
434554
|
+
version: { VERSION: "0.2.80", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
|
|
434544
434555
|
};
|
|
434545
434556
|
getLogWriter(path19).write(messageWithTimestamp);
|
|
434546
434557
|
}
|
|
@@ -435801,7 +435812,7 @@ Spawn mode for this project:
|
|
|
435801
435812
|
const api2 = createBridgeApiClient({
|
|
435802
435813
|
baseUrl,
|
|
435803
435814
|
getAccessToken: getBridgeAccessToken2,
|
|
435804
|
-
runnerVersion: { VERSION: "0.2.
|
|
435815
|
+
runnerVersion: { VERSION: "0.2.80", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
|
|
435805
435816
|
onDebug: logForDebugging,
|
|
435806
435817
|
onAuth401: handleOAuth401Error2,
|
|
435807
435818
|
getTrustedDeviceToken
|
|
@@ -436039,7 +436050,7 @@ async function runBridgeHeadless(opts, signal) {
|
|
|
436039
436050
|
const api2 = createBridgeApiClient({
|
|
436040
436051
|
baseUrl,
|
|
436041
436052
|
getAccessToken: opts.getAccessToken,
|
|
436042
|
-
runnerVersion: { VERSION: "0.2.
|
|
436053
|
+
runnerVersion: { VERSION: "0.2.80", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
|
|
436043
436054
|
onDebug: log2,
|
|
436044
436055
|
onAuth401: opts.onAuth401,
|
|
436045
436056
|
getTrustedDeviceToken
|
|
@@ -439331,7 +439342,7 @@ function buildSystemInitMessage(inputs) {
|
|
|
439331
439342
|
slash_commands: inputs.commands.filter((c5) => c5.userInvocable !== false).map((c5) => c5.name),
|
|
439332
439343
|
apiKeySource: getTheusApiKeyWithSource().source,
|
|
439333
439344
|
betas: getSdkBetas(),
|
|
439334
|
-
theus_code_version: { VERSION: "0.2.
|
|
439345
|
+
theus_code_version: { VERSION: "0.2.80", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
|
|
439335
439346
|
output_style: outputStyle2,
|
|
439336
439347
|
agents: inputs.agents.map((agent) => agent.agentType),
|
|
439337
439348
|
skills: inputs.skills.filter((s) => s.userInvocable !== false).map((skill) => skill.name),
|
|
@@ -439371,8 +439382,8 @@ async function getEnvLessBridgeConfig() {
|
|
|
439371
439382
|
}
|
|
439372
439383
|
async function checkEnvLessBridgeMinVersion() {
|
|
439373
439384
|
const cfg = await getEnvLessBridgeConfig();
|
|
439374
|
-
if (cfg.min_version && lt({ VERSION: "0.2.
|
|
439375
|
-
return `Your version of Theus (${{ VERSION: "0.2.
|
|
439385
|
+
if (cfg.min_version && lt({ VERSION: "0.2.80", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
|
|
439386
|
+
return `Your version of Theus (${{ VERSION: "0.2.80", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.
|
|
439376
439387
|
Version ${cfg.min_version} or higher is required. Run \`theus update\` to update.`;
|
|
439377
439388
|
}
|
|
439378
439389
|
return null;
|
|
@@ -441696,7 +441707,7 @@ async function initBridgeCore(params) {
|
|
|
441696
441707
|
const rawApi = createBridgeApiClient({
|
|
441697
441708
|
baseUrl,
|
|
441698
441709
|
getAccessToken,
|
|
441699
|
-
runnerVersion: { VERSION: "0.2.
|
|
441710
|
+
runnerVersion: { VERSION: "0.2.80", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
|
|
441700
441711
|
onDebug: logForDebugging,
|
|
441701
441712
|
onAuth401,
|
|
441702
441713
|
getTrustedDeviceToken
|
|
@@ -458337,7 +458348,7 @@ var init_useVoiceEnabled = __esm(() => {
|
|
|
458337
458348
|
function getSemverPart(version3) {
|
|
458338
458349
|
return `${import_semver11.major(version3, { loose: true })}.${import_semver11.minor(version3, { loose: true })}.${import_semver11.patch(version3, { loose: true })}`;
|
|
458339
458350
|
}
|
|
458340
|
-
function useUpdateNotification(updatedVersion, initialVersion = { VERSION: "0.2.
|
|
458351
|
+
function useUpdateNotification(updatedVersion, initialVersion = { VERSION: "0.2.80", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION) {
|
|
458341
458352
|
const [lastNotifiedSemver, setLastNotifiedSemver] = import_react235.useState(() => getSemverPart(initialVersion));
|
|
458342
458353
|
if (!updatedVersion) {
|
|
458343
458354
|
return null;
|
|
@@ -458377,7 +458388,7 @@ function AutoUpdater({
|
|
|
458377
458388
|
return;
|
|
458378
458389
|
}
|
|
458379
458390
|
if (false) {}
|
|
458380
|
-
const currentVersion = { VERSION: "0.2.
|
|
458391
|
+
const currentVersion = { VERSION: "0.2.80", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION;
|
|
458381
458392
|
const channel2 = getInitialSettings()?.autoUpdatesChannel ?? "latest";
|
|
458382
458393
|
let latestVersion = await getLatestVersion(channel2);
|
|
458383
458394
|
const isDisabled2 = isAutoUpdaterDisabled();
|
|
@@ -458512,7 +458523,7 @@ function AutoUpdater({
|
|
|
458512
458523
|
" ",
|
|
458513
458524
|
/* @__PURE__ */ jsx_runtime415.jsx(ThemedText, {
|
|
458514
458525
|
bold: true,
|
|
458515
|
-
children: hasLocalInstall ? `cd ~/.theus/local && npm update ${{ VERSION: "0.2.
|
|
458526
|
+
children: hasLocalInstall ? `cd ~/.theus/local && npm update ${{ VERSION: "0.2.80", BUILD_TIME: "1970-01-01T00:00:00.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.80", BUILD_TIME: "1970-01-01T00:00:00.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}`
|
|
458516
458527
|
})
|
|
458517
458528
|
]
|
|
458518
458529
|
})
|
|
@@ -458589,12 +458600,12 @@ function NativeAutoUpdater({
|
|
|
458589
458600
|
logEvent("theus_native_auto_updater_start", {});
|
|
458590
458601
|
try {
|
|
458591
458602
|
const maxVersion = await getMaxVersion();
|
|
458592
|
-
if (maxVersion && gt({ VERSION: "0.2.
|
|
458603
|
+
if (maxVersion && gt({ VERSION: "0.2.80", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
|
|
458593
458604
|
const msg = await getMaxVersionMessage();
|
|
458594
458605
|
setMaxVersionIssue(msg ?? "affects your version");
|
|
458595
458606
|
}
|
|
458596
458607
|
const result = await installLatest(channel2);
|
|
458597
|
-
const currentVersion = { VERSION: "0.2.
|
|
458608
|
+
const currentVersion = { VERSION: "0.2.80", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION;
|
|
458598
458609
|
const latencyMs = Date.now() - startTime2;
|
|
458599
458610
|
if (result.lockFailed) {
|
|
458600
458611
|
logEvent("theus_native_auto_updater_lock_contention", {
|
|
@@ -458731,17 +458742,17 @@ function PackageManagerAutoUpdater(t0) {
|
|
|
458731
458742
|
const maxVersion = await getMaxVersion();
|
|
458732
458743
|
if (maxVersion && latest && gt(latest, maxVersion)) {
|
|
458733
458744
|
logForDebugging(`PackageManagerAutoUpdater: maxVersion ${maxVersion} is set, capping update from ${latest} to ${maxVersion}`);
|
|
458734
|
-
if (gte({ VERSION: "0.2.
|
|
458735
|
-
logForDebugging(`PackageManagerAutoUpdater: current version ${{ VERSION: "0.2.
|
|
458745
|
+
if (gte({ VERSION: "0.2.80", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
|
|
458746
|
+
logForDebugging(`PackageManagerAutoUpdater: current version ${{ VERSION: "0.2.80", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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`);
|
|
458736
458747
|
setUpdateAvailable(false);
|
|
458737
458748
|
return;
|
|
458738
458749
|
}
|
|
458739
458750
|
latest = maxVersion;
|
|
458740
458751
|
}
|
|
458741
|
-
const hasUpdate = latest && !gte({ VERSION: "0.2.
|
|
458752
|
+
const hasUpdate = latest && !gte({ VERSION: "0.2.80", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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);
|
|
458742
458753
|
setUpdateAvailable(!!hasUpdate);
|
|
458743
458754
|
if (hasUpdate) {
|
|
458744
|
-
logForDebugging(`PackageManagerAutoUpdater: Update available ${{ VERSION: "0.2.
|
|
458755
|
+
logForDebugging(`PackageManagerAutoUpdater: Update available ${{ VERSION: "0.2.80", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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}`);
|
|
458745
458756
|
}
|
|
458746
458757
|
};
|
|
458747
458758
|
$2[0] = t1;
|
|
@@ -458775,7 +458786,7 @@ function PackageManagerAutoUpdater(t0) {
|
|
|
458775
458786
|
wrap: "truncate",
|
|
458776
458787
|
children: [
|
|
458777
458788
|
"versi\xF3n actual: ",
|
|
458778
|
-
{ VERSION: "0.2.
|
|
458789
|
+
{ VERSION: "0.2.80", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
|
|
458779
458790
|
]
|
|
458780
458791
|
});
|
|
458781
458792
|
$2[3] = verbose;
|
|
@@ -466638,7 +466649,7 @@ function buildStatusLineCommandInput(permissionMode2, exceeds200kTokens, setting
|
|
|
466638
466649
|
project_dir: getOriginalCwd(),
|
|
466639
466650
|
added_dirs: addedDirs
|
|
466640
466651
|
},
|
|
466641
|
-
version: { VERSION: "0.2.
|
|
466652
|
+
version: { VERSION: "0.2.80", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
|
|
466642
466653
|
output_style: {
|
|
466643
466654
|
name: outputStyleName
|
|
466644
466655
|
},
|
|
@@ -490961,7 +490972,7 @@ function completeOnboarding() {
|
|
|
490961
490972
|
saveGlobalConfig((current) => ({
|
|
490962
490973
|
...current,
|
|
490963
490974
|
hasCompletedOnboarding: true,
|
|
490964
|
-
lastOnboardingVersion: { VERSION: "0.2.
|
|
490975
|
+
lastOnboardingVersion: { VERSION: "0.2.80", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
|
|
490965
490976
|
}));
|
|
490966
490977
|
}
|
|
490967
490978
|
function showDialog(root2, renderer) {
|
|
@@ -497657,7 +497668,7 @@ function getRecentReleaseNotes(currentVersion, previousVersion, changelogContent
|
|
|
497657
497668
|
}
|
|
497658
497669
|
return [];
|
|
497659
497670
|
}
|
|
497660
|
-
async function checkForReleaseNotes(lastSeenVersion, currentVersion = { VERSION: "0.2.
|
|
497671
|
+
async function checkForReleaseNotes(lastSeenVersion, currentVersion = { VERSION: "0.2.80", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION) {
|
|
497661
497672
|
if (false) {}
|
|
497662
497673
|
const cachedChangelog = await getStoredChangelog();
|
|
497663
497674
|
if (lastSeenVersion !== currentVersion || !cachedChangelog) {
|
|
@@ -503190,7 +503201,7 @@ async function startMCPServer(cwd3, debug3, verbose) {
|
|
|
503190
503201
|
setCwd(cwd3);
|
|
503191
503202
|
const server2 = new Server({
|
|
503192
503203
|
name: "theus/tengu",
|
|
503193
|
-
version: { VERSION: "0.2.
|
|
503204
|
+
version: { VERSION: "0.2.80", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
|
|
503194
503205
|
}, {
|
|
503195
503206
|
capabilities: {
|
|
503196
503207
|
tools: {}
|
|
@@ -504632,7 +504643,7 @@ async function setupTokenHandler(root2) {
|
|
|
504632
504643
|
gap: 1,
|
|
504633
504644
|
children: [
|
|
504634
504645
|
/* @__PURE__ */ jsx_runtime503.jsx(TheusBanner, {
|
|
504635
|
-
version: { VERSION: "0.2.
|
|
504646
|
+
version: { VERSION: "0.2.80", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
|
|
504636
504647
|
}),
|
|
504637
504648
|
showAuthWarning && /* @__PURE__ */ jsx_runtime503.jsxs(ThemedBox_default, {
|
|
504638
504649
|
flexDirection: "column",
|
|
@@ -506217,7 +506228,7 @@ ${assistantAddendum}` : assistantAddendum;
|
|
|
506217
506228
|
}
|
|
506218
506229
|
}
|
|
506219
506230
|
logForDiagnosticsNoPII("info", "started", {
|
|
506220
|
-
version: { VERSION: "0.2.
|
|
506231
|
+
version: { VERSION: "0.2.80", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
|
|
506221
506232
|
is_native_binary: isInBundledMode()
|
|
506222
506233
|
});
|
|
506223
506234
|
registerCleanup(async () => {
|
|
@@ -507085,7 +507096,7 @@ Usage: theus --remote "your task description"`, () => gracefulShutdown(1));
|
|
|
507085
507096
|
pendingHookMessages
|
|
507086
507097
|
}, renderAndRun);
|
|
507087
507098
|
}
|
|
507088
|
-
}).version(`${{ VERSION: "0.2.
|
|
507099
|
+
}).version(`${{ VERSION: "0.2.80", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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");
|
|
507089
507100
|
program2.option("-w, --worktree [name]", "Crea un nuevo worktree de git para esta sesi\xF3n (opcionalmente indica un nombre)");
|
|
507090
507101
|
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.");
|
|
507091
507102
|
if (canUserConfigureAdvisor()) {
|
|
@@ -507686,7 +507697,7 @@ if (false) {}
|
|
|
507686
507697
|
async function main2() {
|
|
507687
507698
|
const args = process.argv.slice(2);
|
|
507688
507699
|
if (args.length === 1 && (args[0] === "--version" || args[0] === "-v" || args[0] === "-V")) {
|
|
507689
|
-
console.log(`${{ VERSION: "0.2.
|
|
507700
|
+
console.log(`${{ VERSION: "0.2.80", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)`);
|
|
507690
507701
|
return;
|
|
507691
507702
|
}
|
|
507692
507703
|
if (args[0] === "login" || args[0] === "signin" || args[0] === "entrar" || args[0] === "iniciar-sesion") {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "theus-cli",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.80",
|
|
4
4
|
"description": "Theus — agente local-first multimodelo con memoria, grafo y decisiones verificables",
|
|
5
5
|
"author": "Mariano Suquilanda Gallo <contacto.tonyjaxx@gmail.com>",
|
|
6
6
|
"license": "SEE LICENSE IN LICENSE",
|