theus-cli 0.2.79 → 0.2.81
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 +136 -114
- package/package.json +2 -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.81", BUILD_TIME: "1970-01-01T00:00:00.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.81", BUILD_TIME: "1970-01-01T00:00:00.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.81", BUILD_TIME: "1970-01-01T00:00:00.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.81", BUILD_TIME: "1970-01-01T00:00:00.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.81", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.81", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.81", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.81", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.81", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.81", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.81", BUILD_TIME: "1970-01-01T00:00:00.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.81", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.81", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.81", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.81", BUILD_TIME: "1970-01-01T00:00:00.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.81", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.81", BUILD_TIME: "1970-01-01T00:00:00.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.81", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.81", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.81", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.81", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.81", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.81", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.81", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.81", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.81", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.81", BUILD_TIME: "1970-01-01T00:00:00.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.81", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.81", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.81", BUILD_TIME: "1970-01-01T00:00:00.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.81", BUILD_TIME: "1970-01-01T00:00:00.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.81", BUILD_TIME: "1970-01-01T00:00:00.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.81", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.81", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.81", BUILD_TIME: "1970-01-01T00:00:00.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.81", BUILD_TIME: "1970-01-01T00:00:00.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.81", BUILD_TIME: "1970-01-01T00:00:00.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.81", BUILD_TIME: "1970-01-01T00:00:00.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.81", BUILD_TIME: "1970-01-01T00:00:00.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.81", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.81", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.81", BUILD_TIME: "1970-01-01T00:00:00.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.81", BUILD_TIME: "1970-01-01T00:00:00.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.81", BUILD_TIME: "1970-01-01T00:00:00.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.81", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.81", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.81", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.81", BUILD_TIME: "1970-01-01T00:00:00.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.81", BUILD_TIME: "1970-01-01T00:00:00.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.81", BUILD_TIME: "1970-01-01T00:00:00.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,28 @@ var init_ConsoleOAuthFlow = __esm(() => {
|
|
|
256286
256286
|
var NOVEDADES;
|
|
256287
256287
|
var init_data = __esm(() => {
|
|
256288
256288
|
NOVEDADES = [
|
|
256289
|
+
{
|
|
256290
|
+
version: "v0.2.81",
|
|
256291
|
+
fecha: "2026-08-14",
|
|
256292
|
+
titulo: "Theus ya tiene instalador de doble clic en Mac y en Windows",
|
|
256293
|
+
puntos: [
|
|
256294
|
+
"En Mac hay un instalador de verdad: lo abres, te pide tu contrase\xF1a una vez y deja el comando listo. Va firmado y notarizado por Apple, con el permiso incrustado dentro del archivo, as\xED que se abre sin advertencias y sin necesidad de conexi\xF3n.",
|
|
256295
|
+
"Deja Theus en una carpeta que tu sistema ya consulta, as\xED que se acab\xF3 el \xABno se reconoce el comando\xBB despu\xE9s de una instalaci\xF3n que dec\xEDa haber ido bien.",
|
|
256296
|
+
"En Windows hay instalador propio: no pide permisos de administrador, se registra en \xABAplicaciones instaladas\xBB para que puedas quitarlo cuando quieras, y al desinstalarlo no borra tu \xEDndice ni tu memoria.",
|
|
256297
|
+
"Quien prefiera la terminal la sigue teniendo: los comandos de siempre funcionan igual."
|
|
256298
|
+
]
|
|
256299
|
+
},
|
|
256300
|
+
{
|
|
256301
|
+
version: "v0.2.80",
|
|
256302
|
+
fecha: "2026-08-14",
|
|
256303
|
+
titulo: "Theus se instala como un programa, no como un montaje",
|
|
256304
|
+
puntos: [
|
|
256305
|
+
"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.",
|
|
256306
|
+
"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.",
|
|
256307
|
+
"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.",
|
|
256308
|
+
"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."
|
|
256309
|
+
]
|
|
256310
|
+
},
|
|
256289
256311
|
{
|
|
256290
256312
|
version: "v0.2.79",
|
|
256291
256313
|
fecha: "2026-08-14",
|
|
@@ -300216,9 +300238,9 @@ function getTheusEnvMetadata() {
|
|
|
300216
300238
|
};
|
|
300217
300239
|
}
|
|
300218
300240
|
function getBuildAgeMinutes() {
|
|
300219
|
-
if (!{ VERSION: "0.2.
|
|
300241
|
+
if (!{ VERSION: "0.2.81", BUILD_TIME: "1970-01-01T00:00:00.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
300242
|
return;
|
|
300221
|
-
const buildTime = new Date({ VERSION: "0.2.
|
|
300243
|
+
const buildTime = new Date({ VERSION: "0.2.81", BUILD_TIME: "1970-01-01T00:00:00.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
300244
|
if (isNaN(buildTime))
|
|
300223
300245
|
return;
|
|
300224
300246
|
return Math.floor((Date.now() - buildTime) / 60000);
|
|
@@ -318523,7 +318545,7 @@ function getSimpleDoingTasksSection() {
|
|
|
318523
318545
|
];
|
|
318524
318546
|
const userHelpSubitems = [
|
|
318525
318547
|
`/help: Get help with using Theus`,
|
|
318526
|
-
`To give feedback, users should ${{ VERSION: "0.2.
|
|
318548
|
+
`To give feedback, users should ${{ VERSION: "0.2.81", BUILD_TIME: "1970-01-01T00:00:00.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
318549
|
];
|
|
318528
318550
|
const items = [
|
|
318529
318551
|
`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 +329681,7 @@ async function submitTranscriptShare(messages, trigger, appearanceId) {
|
|
|
329659
329681
|
} catch {}
|
|
329660
329682
|
const data = {
|
|
329661
329683
|
trigger,
|
|
329662
|
-
version: { VERSION: "0.2.
|
|
329684
|
+
version: { VERSION: "0.2.81", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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
329685
|
platform: process.platform,
|
|
329664
329686
|
transcript,
|
|
329665
329687
|
subagentTranscripts: Object.keys(subagentTranscripts).length > 0 ? subagentTranscripts : undefined,
|
|
@@ -329864,10 +329886,10 @@ Si el usuario indic\xF3 una duraci\xF3n, p\xE1sala en el par\xE1metro \`duration
|
|
|
329864
329886
|
|
|
329865
329887
|
// commands/issue/index.ts
|
|
329866
329888
|
function getCliVersion() {
|
|
329867
|
-
return { VERSION: "0.2.
|
|
329889
|
+
return { VERSION: "0.2.81", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.81", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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
329890
|
}
|
|
329869
329891
|
function getIssuesExplainer() {
|
|
329870
|
-
return { VERSION: "0.2.
|
|
329892
|
+
return { VERSION: "0.2.81", BUILD_TIME: "1970-01-01T00:00:00.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.81", BUILD_TIME: "1970-01-01T00:00:00.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
329893
|
}
|
|
329872
329894
|
function getActiveModelLabel() {
|
|
329873
329895
|
try {
|
|
@@ -332653,7 +332675,7 @@ function buildPrimarySection() {
|
|
|
332653
332675
|
});
|
|
332654
332676
|
return [{
|
|
332655
332677
|
label: "Version",
|
|
332656
|
-
value: { VERSION: "0.2.
|
|
332678
|
+
value: { VERSION: "0.2.81", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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
332679
|
}, {
|
|
332658
332680
|
label: "Session name",
|
|
332659
332681
|
value: nameValue
|
|
@@ -336469,7 +336491,7 @@ function Config({
|
|
|
336469
336491
|
}
|
|
336470
336492
|
})
|
|
336471
336493
|
}) : showSubmenu === "ChannelDowngrade" ? /* @__PURE__ */ jsx_runtime189.jsx(ChannelDowngradeDialog, {
|
|
336472
|
-
currentVersion: { VERSION: "0.2.
|
|
336494
|
+
currentVersion: { VERSION: "0.2.81", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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
336495
|
onChoice: (choice) => {
|
|
336474
336496
|
setShowSubmenu(null);
|
|
336475
336497
|
setTabsHidden(false);
|
|
@@ -336481,7 +336503,7 @@ function Config({
|
|
|
336481
336503
|
autoUpdatesChannel: "stable"
|
|
336482
336504
|
};
|
|
336483
336505
|
if (choice === "stay") {
|
|
336484
|
-
newSettings.minimumVersion = { VERSION: "0.2.
|
|
336506
|
+
newSettings.minimumVersion = { VERSION: "0.2.81", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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
336507
|
}
|
|
336486
336508
|
updateSettingsForSource("userSettings", newSettings);
|
|
336487
336509
|
setSettingsData((prev_27) => ({
|
|
@@ -343840,7 +343862,7 @@ function HelpV2(t0) {
|
|
|
343840
343862
|
let t6;
|
|
343841
343863
|
if ($2[31] !== tabs) {
|
|
343842
343864
|
t6 = /* @__PURE__ */ jsx_runtime215.jsx(Tabs, {
|
|
343843
|
-
title: `Theus v${{ VERSION: "0.2.
|
|
343865
|
+
title: `Theus v${{ VERSION: "0.2.81", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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
343866
|
color: "professionalBlue",
|
|
343845
343867
|
defaultTab: "general",
|
|
343846
343868
|
children: tabs
|
|
@@ -362661,7 +362683,7 @@ function Onboarding({
|
|
|
362661
362683
|
flexDirection: "column",
|
|
362662
362684
|
children: [
|
|
362663
362685
|
/* @__PURE__ */ jsx_runtime251.jsx(TheusBanner, {
|
|
362664
|
-
version: { VERSION: "0.2.
|
|
362686
|
+
version: { VERSION: "0.2.81", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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
362687
|
}),
|
|
362666
362688
|
/* @__PURE__ */ jsx_runtime251.jsxs(ThemedBox_default, {
|
|
362667
362689
|
flexDirection: "column",
|
|
@@ -368048,7 +368070,7 @@ var init_Messages = __esm(() => {
|
|
|
368048
368070
|
let t1;
|
|
368049
368071
|
if ($2[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
368050
368072
|
t1 = /* @__PURE__ */ jsx_runtime264.jsx(TheusSessionHeader, {
|
|
368051
|
-
version: { VERSION: "0.2.
|
|
368073
|
+
version: { VERSION: "0.2.81", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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
368074
|
});
|
|
368053
368075
|
$2[0] = t1;
|
|
368054
368076
|
} else {
|
|
@@ -399917,7 +399939,7 @@ async function captureMemoryDiagnostics(trigger, dumpNumber = 0) {
|
|
|
399917
399939
|
smapsRollup,
|
|
399918
399940
|
platform: process.platform,
|
|
399919
399941
|
nodeVersion: process.version,
|
|
399920
|
-
ccVersion: { VERSION: "0.2.
|
|
399942
|
+
ccVersion: { VERSION: "0.2.81", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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
399943
|
};
|
|
399922
399944
|
}
|
|
399923
399945
|
async function performHeapDump(trigger = "manual", dumpNumber = 0) {
|
|
@@ -400678,7 +400700,7 @@ var init_bridge_kick = __esm(() => {
|
|
|
400678
400700
|
var call69 = async () => {
|
|
400679
400701
|
return {
|
|
400680
400702
|
type: "text",
|
|
400681
|
-
value: { VERSION: "0.2.
|
|
400703
|
+
value: { VERSION: "0.2.81", BUILD_TIME: "1970-01-01T00:00:00.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.81", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.81", BUILD_TIME: "1970-01-01T00:00:00.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.81", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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
400704
|
};
|
|
400683
400705
|
}, version2, version_default;
|
|
400684
400706
|
var init_version = __esm(() => {
|
|
@@ -403279,7 +403301,7 @@ var SECRET_NAME_PATTERN, EXTRA_ENV_ALLOWLIST, REDACTED2 = "\u2039oculto\u203A",
|
|
|
403279
403301
|
const lines = [];
|
|
403280
403302
|
lines.push("## Entorno de ejecuci\xF3n");
|
|
403281
403303
|
lines.push("");
|
|
403282
|
-
const version3 = { VERSION: "0.2.
|
|
403304
|
+
const version3 = { VERSION: "0.2.81", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.81", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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
403305
|
lines.push(`- Versi\xF3n de Theus: ${version3}`);
|
|
403284
403306
|
lines.push(`- Directorio de trabajo: ${getCwd()}`);
|
|
403285
403307
|
lines.push(`- \xBFRepositorio git?: ${isGit ? "s\xED" : "no"}`);
|
|
@@ -405820,13 +405842,13 @@ async function updateReleaseBundle() {
|
|
|
405820
405842
|
await gracefulShutdown(1);
|
|
405821
405843
|
return;
|
|
405822
405844
|
}
|
|
405823
|
-
if (gte({ VERSION: "0.2.
|
|
405824
|
-
writeToStdout(source_default.green(`Theus ya est\xE1 al d\xEDa (${{ VERSION: "0.2.
|
|
405845
|
+
if (gte({ VERSION: "0.2.81", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
|
|
405846
|
+
writeToStdout(source_default.green(`Theus ya est\xE1 al d\xEDa (${{ VERSION: "0.2.81", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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
405847
|
`);
|
|
405826
405848
|
await gracefulShutdown(0);
|
|
405827
405849
|
return;
|
|
405828
405850
|
}
|
|
405829
|
-
writeToStdout(`Nueva versi\xF3n disponible: ${latest} (actual: ${{ VERSION: "0.2.
|
|
405851
|
+
writeToStdout(`Nueva versi\xF3n disponible: ${latest} (actual: ${{ VERSION: "0.2.81", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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
405852
|
`);
|
|
405831
405853
|
writeToStdout(`Instalando la actualizaci\xF3n desde theus.pe/dl...
|
|
405832
405854
|
`);
|
|
@@ -405860,7 +405882,7 @@ async function updateReleaseBundle() {
|
|
|
405860
405882
|
return;
|
|
405861
405883
|
}
|
|
405862
405884
|
cpSync(staged, bundleDir, { recursive: true, force: true });
|
|
405863
|
-
writeToStdout(source_default.green(`Actualizado correctamente de ${{ VERSION: "0.2.
|
|
405885
|
+
writeToStdout(source_default.green(`Actualizado correctamente de ${{ VERSION: "0.2.81", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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
405886
|
`);
|
|
405865
405887
|
await regenerateCompletionCache();
|
|
405866
405888
|
} finally {
|
|
@@ -405873,7 +405895,7 @@ async function updateReleaseBundle() {
|
|
|
405873
405895
|
async function update() {
|
|
405874
405896
|
logEvent("theus_update_check", {});
|
|
405875
405897
|
await updateNaupa();
|
|
405876
|
-
writeToStdout(`Versi\xF3n actual: ${{ VERSION: "0.2.
|
|
405898
|
+
writeToStdout(`Versi\xF3n actual: ${{ VERSION: "0.2.81", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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
405899
|
`);
|
|
405878
405900
|
const channel2 = getInitialSettings()?.autoUpdatesChannel ?? "latest";
|
|
405879
405901
|
writeToStdout(`Buscando actualizaciones en el canal ${channel2}...
|
|
@@ -405952,8 +405974,8 @@ async function update() {
|
|
|
405952
405974
|
writeToStdout(`Theus est\xE1 gestionado por Homebrew.
|
|
405953
405975
|
`);
|
|
405954
405976
|
const latest = await getLatestVersion(channel2);
|
|
405955
|
-
if (latest && !gte({ VERSION: "0.2.
|
|
405956
|
-
writeToStdout(`Actualizaci\xF3n disponible: ${{ VERSION: "0.2.
|
|
405977
|
+
if (latest && !gte({ VERSION: "0.2.81", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
|
|
405978
|
+
writeToStdout(`Actualizaci\xF3n disponible: ${{ VERSION: "0.2.81", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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
405979
|
`);
|
|
405958
405980
|
writeToStdout(`
|
|
405959
405981
|
`);
|
|
@@ -405969,8 +405991,8 @@ async function update() {
|
|
|
405969
405991
|
writeToStdout(`Theus est\xE1 gestionado por winget.
|
|
405970
405992
|
`);
|
|
405971
405993
|
const latest = await getLatestVersion(channel2);
|
|
405972
|
-
if (latest && !gte({ VERSION: "0.2.
|
|
405973
|
-
writeToStdout(`Actualizaci\xF3n disponible: ${{ VERSION: "0.2.
|
|
405994
|
+
if (latest && !gte({ VERSION: "0.2.81", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
|
|
405995
|
+
writeToStdout(`Actualizaci\xF3n disponible: ${{ VERSION: "0.2.81", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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
405996
|
`);
|
|
405975
405997
|
writeToStdout(`
|
|
405976
405998
|
`);
|
|
@@ -405986,8 +406008,8 @@ async function update() {
|
|
|
405986
406008
|
writeToStdout(`Theus est\xE1 gestionado por apk.
|
|
405987
406009
|
`);
|
|
405988
406010
|
const latest = await getLatestVersion(channel2);
|
|
405989
|
-
if (latest && !gte({ VERSION: "0.2.
|
|
405990
|
-
writeToStdout(`Actualizaci\xF3n disponible: ${{ VERSION: "0.2.
|
|
406011
|
+
if (latest && !gte({ VERSION: "0.2.81", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
|
|
406012
|
+
writeToStdout(`Actualizaci\xF3n disponible: ${{ VERSION: "0.2.81", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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
406013
|
`);
|
|
405992
406014
|
writeToStdout(`
|
|
405993
406015
|
`);
|
|
@@ -406052,11 +406074,11 @@ async function update() {
|
|
|
406052
406074
|
`);
|
|
406053
406075
|
await gracefulShutdown(1);
|
|
406054
406076
|
}
|
|
406055
|
-
if (result.latestVersion === { VERSION: "0.2.
|
|
406056
|
-
writeToStdout(source_default.green(`Theus ya est\xE1 al d\xEDa (${{ VERSION: "0.2.
|
|
406077
|
+
if (result.latestVersion === { VERSION: "0.2.81", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION) {
|
|
406078
|
+
writeToStdout(source_default.green(`Theus ya est\xE1 al d\xEDa (${{ VERSION: "0.2.81", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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
406079
|
`);
|
|
406058
406080
|
} else {
|
|
406059
|
-
writeToStdout(source_default.green(`Actualizado correctamente de ${{ VERSION: "0.2.
|
|
406081
|
+
writeToStdout(source_default.green(`Actualizado correctamente de ${{ VERSION: "0.2.81", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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
406082
|
`);
|
|
406061
406083
|
await regenerateCompletionCache();
|
|
406062
406084
|
}
|
|
@@ -406075,9 +406097,9 @@ async function update() {
|
|
|
406075
406097
|
await removeInstalledSymlink();
|
|
406076
406098
|
}
|
|
406077
406099
|
logForDebugging("update: Checking npm registry for latest version");
|
|
406078
|
-
logForDebugging(`update: Package URL: ${{ VERSION: "0.2.
|
|
406100
|
+
logForDebugging(`update: Package URL: ${{ VERSION: "0.2.81", BUILD_TIME: "1970-01-01T00:00:00.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
406101
|
const npmTag = channel2 === "stable" ? "stable" : "latest";
|
|
406080
|
-
const npmCommand = `npm view ${{ VERSION: "0.2.
|
|
406102
|
+
const npmCommand = `npm view ${{ VERSION: "0.2.81", BUILD_TIME: "1970-01-01T00:00:00.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
406103
|
logForDebugging(`update: Running: ${npmCommand}`);
|
|
406082
406104
|
const latestVersion = await getLatestVersion(channel2);
|
|
406083
406105
|
logForDebugging(`update: Latest version from npm: ${latestVersion || "FAILED"}`);
|
|
@@ -406097,7 +406119,7 @@ async function update() {
|
|
|
406097
406119
|
`);
|
|
406098
406120
|
process.stderr.write(` \u2022 Un proxy o firewall corporativo bloquea npm
|
|
406099
406121
|
`);
|
|
406100
|
-
if ({ VERSION: "0.2.
|
|
406122
|
+
if ({ VERSION: "0.2.81", BUILD_TIME: "1970-01-01T00:00:00.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.81", BUILD_TIME: "1970-01-01T00:00:00.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
406123
|
process.stderr.write(` \u2022 Compilaci\xF3n interna/de desarrollo no publicada en npm
|
|
406102
406124
|
`);
|
|
406103
406125
|
}
|
|
@@ -406109,19 +406131,19 @@ async function update() {
|
|
|
406109
406131
|
`);
|
|
406110
406132
|
process.stderr.write(` \u2022 Ejecuta con el flag --debug para m\xE1s detalle
|
|
406111
406133
|
`);
|
|
406112
|
-
const packageName = { VERSION: "0.2.
|
|
406134
|
+
const packageName = { VERSION: "0.2.81", BUILD_TIME: "1970-01-01T00:00:00.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
406135
|
process.stderr.write(` \u2022 Comprueba a mano: npm view ${packageName} version
|
|
406114
406136
|
`);
|
|
406115
406137
|
process.stderr.write(` \u2022 Comprueba si te falta iniciar sesi\xF3n: npm whoami
|
|
406116
406138
|
`);
|
|
406117
406139
|
await gracefulShutdown(1);
|
|
406118
406140
|
}
|
|
406119
|
-
if (gte({ VERSION: "0.2.
|
|
406120
|
-
writeToStdout(source_default.green(`Theus ya est\xE1 al d\xEDa (${{ VERSION: "0.2.
|
|
406141
|
+
if (gte({ VERSION: "0.2.81", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
|
|
406142
|
+
writeToStdout(source_default.green(`Theus ya est\xE1 al d\xEDa (${{ VERSION: "0.2.81", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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
406143
|
`);
|
|
406122
406144
|
await gracefulShutdown(0);
|
|
406123
406145
|
}
|
|
406124
|
-
writeToStdout(`Nueva versi\xF3n disponible: ${latestVersion} (actual: ${{ VERSION: "0.2.
|
|
406146
|
+
writeToStdout(`Nueva versi\xF3n disponible: ${latestVersion} (actual: ${{ VERSION: "0.2.81", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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
406147
|
`);
|
|
406126
406148
|
writeToStdout(`Instalando la actualizaci\xF3n...
|
|
406127
406149
|
`);
|
|
@@ -406166,7 +406188,7 @@ async function update() {
|
|
|
406166
406188
|
logForDebugging(`update: Installation status: ${status2}`);
|
|
406167
406189
|
switch (status2) {
|
|
406168
406190
|
case "success":
|
|
406169
|
-
writeToStdout(source_default.green(`Actualizado correctamente de ${{ VERSION: "0.2.
|
|
406191
|
+
writeToStdout(source_default.green(`Actualizado correctamente de ${{ VERSION: "0.2.81", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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
406192
|
`);
|
|
406171
406193
|
await regenerateCompletionCache();
|
|
406172
406194
|
break;
|
|
@@ -406176,7 +406198,7 @@ async function update() {
|
|
|
406176
406198
|
if (useLocalUpdate) {
|
|
406177
406199
|
process.stderr.write(`Prueba a actualizar a mano con:
|
|
406178
406200
|
`);
|
|
406179
|
-
process.stderr.write(` cd ~/.theus/local && npm update ${{ VERSION: "0.2.
|
|
406201
|
+
process.stderr.write(` cd ~/.theus/local && npm update ${{ VERSION: "0.2.81", BUILD_TIME: "1970-01-01T00:00:00.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
406202
|
`);
|
|
406181
406203
|
} else {
|
|
406182
406204
|
process.stderr.write(`Prueba con sudo o corrige los permisos de npm
|
|
@@ -406192,7 +406214,7 @@ async function update() {
|
|
|
406192
406214
|
if (useLocalUpdate) {
|
|
406193
406215
|
process.stderr.write(`Prueba a actualizar a mano con:
|
|
406194
406216
|
`);
|
|
406195
|
-
process.stderr.write(` cd ~/.theus/local && npm update ${{ VERSION: "0.2.
|
|
406217
|
+
process.stderr.write(` cd ~/.theus/local && npm update ${{ VERSION: "0.2.81", BUILD_TIME: "1970-01-01T00:00:00.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
406218
|
`);
|
|
406197
406219
|
} else {
|
|
406198
406220
|
process.stderr.write(`O p\xE1sate a la instalaci\xF3n nativa con: theus install
|
|
@@ -415617,7 +415639,7 @@ var init_sessionStorage = __esm(() => {
|
|
|
415617
415639
|
init_settings2();
|
|
415618
415640
|
init_slowOperations();
|
|
415619
415641
|
init_uuid();
|
|
415620
|
-
VERSION4 = { VERSION: "0.2.
|
|
415642
|
+
VERSION4 = { VERSION: "0.2.81", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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
415643
|
MAX_TOMBSTONE_REWRITE_BYTES = 50 * 1024 * 1024;
|
|
415622
415644
|
SKIP_FIRST_PROMPT_PATTERN2 = /^(?:\s*<[a-z][\w-]*[\s>]|\[Request interrupted by user[^\]]*\])/;
|
|
415623
415645
|
EPHEMERAL_PROGRESS_TYPES = new Set([
|
|
@@ -416822,7 +416844,7 @@ var init_filesystem = __esm(() => {
|
|
|
416822
416844
|
});
|
|
416823
416845
|
getBundledSkillsRoot = memoize_default(function getBundledSkillsRoot2() {
|
|
416824
416846
|
const nonce = randomBytes21(16).toString("hex");
|
|
416825
|
-
return join154(getTheusTempDir(), "bundled-skills", { VERSION: "0.2.
|
|
416847
|
+
return join154(getTheusTempDir(), "bundled-skills", { VERSION: "0.2.81", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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
416848
|
});
|
|
416827
416849
|
getResolvedWorkingDirPaths = memoize_default(getPathsForPermissionCheck);
|
|
416828
416850
|
});
|
|
@@ -428999,7 +429021,7 @@ async function handleMemories(state2) {
|
|
|
428999
429021
|
async function runProjectContextMcpServer() {
|
|
429000
429022
|
const projectRoot = process.env.THEUS_PROJECT_ROOT || process.cwd();
|
|
429001
429023
|
const state2 = new ProjectContextState(projectRoot);
|
|
429002
|
-
const server2 = new Server({ name: SERVER_NAME, version: { VERSION: "0.2.
|
|
429024
|
+
const server2 = new Server({ name: SERVER_NAME, version: { VERSION: "0.2.81", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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
429025
|
server2.setRequestHandler(ListToolsRequestSchema, async () => ({
|
|
429004
429026
|
tools: TOOL_DEFINITIONS.map((t) => ({
|
|
429005
429027
|
name: t.name,
|
|
@@ -431676,7 +431698,7 @@ async function runTitanFleetWorker(args) {
|
|
|
431676
431698
|
max_concurrency: maxConcurrency,
|
|
431677
431699
|
runtime: {
|
|
431678
431700
|
name: "theus-cli",
|
|
431679
|
-
version: { VERSION: "0.2.
|
|
431701
|
+
version: { VERSION: "0.2.81", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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
431702
|
}
|
|
431681
431703
|
});
|
|
431682
431704
|
const client2 = new TitanFleetClient({
|
|
@@ -433567,7 +433589,7 @@ function createBridgeLogger(options2) {
|
|
|
433567
433589
|
connectUrl = buildBridgeConnectUrl(environmentId, cachedIngressUrl);
|
|
433568
433590
|
regenerateQr(connectUrl);
|
|
433569
433591
|
if (verbose) {
|
|
433570
|
-
write(source_default.dim(`Remote Control`) + ` v${{ VERSION: "0.2.
|
|
433592
|
+
write(source_default.dim(`Remote Control`) + ` v${{ VERSION: "0.2.81", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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
433593
|
`);
|
|
433572
433594
|
}
|
|
433573
433595
|
if (verbose) {
|
|
@@ -434540,7 +434562,7 @@ function appendToLog(path19, message) {
|
|
|
434540
434562
|
cwd: getFsImplementation().cwd(),
|
|
434541
434563
|
userType: "external",
|
|
434542
434564
|
sessionId: getSessionId(),
|
|
434543
|
-
version: { VERSION: "0.2.
|
|
434565
|
+
version: { VERSION: "0.2.81", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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
434566
|
};
|
|
434545
434567
|
getLogWriter(path19).write(messageWithTimestamp);
|
|
434546
434568
|
}
|
|
@@ -435801,7 +435823,7 @@ Spawn mode for this project:
|
|
|
435801
435823
|
const api2 = createBridgeApiClient({
|
|
435802
435824
|
baseUrl,
|
|
435803
435825
|
getAccessToken: getBridgeAccessToken2,
|
|
435804
|
-
runnerVersion: { VERSION: "0.2.
|
|
435826
|
+
runnerVersion: { VERSION: "0.2.81", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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
435827
|
onDebug: logForDebugging,
|
|
435806
435828
|
onAuth401: handleOAuth401Error2,
|
|
435807
435829
|
getTrustedDeviceToken
|
|
@@ -436039,7 +436061,7 @@ async function runBridgeHeadless(opts, signal) {
|
|
|
436039
436061
|
const api2 = createBridgeApiClient({
|
|
436040
436062
|
baseUrl,
|
|
436041
436063
|
getAccessToken: opts.getAccessToken,
|
|
436042
|
-
runnerVersion: { VERSION: "0.2.
|
|
436064
|
+
runnerVersion: { VERSION: "0.2.81", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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
436065
|
onDebug: log2,
|
|
436044
436066
|
onAuth401: opts.onAuth401,
|
|
436045
436067
|
getTrustedDeviceToken
|
|
@@ -439331,7 +439353,7 @@ function buildSystemInitMessage(inputs) {
|
|
|
439331
439353
|
slash_commands: inputs.commands.filter((c5) => c5.userInvocable !== false).map((c5) => c5.name),
|
|
439332
439354
|
apiKeySource: getTheusApiKeyWithSource().source,
|
|
439333
439355
|
betas: getSdkBetas(),
|
|
439334
|
-
theus_code_version: { VERSION: "0.2.
|
|
439356
|
+
theus_code_version: { VERSION: "0.2.81", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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
439357
|
output_style: outputStyle2,
|
|
439336
439358
|
agents: inputs.agents.map((agent) => agent.agentType),
|
|
439337
439359
|
skills: inputs.skills.filter((s) => s.userInvocable !== false).map((skill) => skill.name),
|
|
@@ -439371,8 +439393,8 @@ async function getEnvLessBridgeConfig() {
|
|
|
439371
439393
|
}
|
|
439372
439394
|
async function checkEnvLessBridgeMinVersion() {
|
|
439373
439395
|
const cfg = await getEnvLessBridgeConfig();
|
|
439374
|
-
if (cfg.min_version && lt({ VERSION: "0.2.
|
|
439375
|
-
return `Your version of Theus (${{ VERSION: "0.2.
|
|
439396
|
+
if (cfg.min_version && lt({ VERSION: "0.2.81", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
|
|
439397
|
+
return `Your version of Theus (${{ VERSION: "0.2.81", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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
439398
|
Version ${cfg.min_version} or higher is required. Run \`theus update\` to update.`;
|
|
439377
439399
|
}
|
|
439378
439400
|
return null;
|
|
@@ -441696,7 +441718,7 @@ async function initBridgeCore(params) {
|
|
|
441696
441718
|
const rawApi = createBridgeApiClient({
|
|
441697
441719
|
baseUrl,
|
|
441698
441720
|
getAccessToken,
|
|
441699
|
-
runnerVersion: { VERSION: "0.2.
|
|
441721
|
+
runnerVersion: { VERSION: "0.2.81", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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
441722
|
onDebug: logForDebugging,
|
|
441701
441723
|
onAuth401,
|
|
441702
441724
|
getTrustedDeviceToken
|
|
@@ -458337,7 +458359,7 @@ var init_useVoiceEnabled = __esm(() => {
|
|
|
458337
458359
|
function getSemverPart(version3) {
|
|
458338
458360
|
return `${import_semver11.major(version3, { loose: true })}.${import_semver11.minor(version3, { loose: true })}.${import_semver11.patch(version3, { loose: true })}`;
|
|
458339
458361
|
}
|
|
458340
|
-
function useUpdateNotification(updatedVersion, initialVersion = { VERSION: "0.2.
|
|
458362
|
+
function useUpdateNotification(updatedVersion, initialVersion = { VERSION: "0.2.81", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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
458363
|
const [lastNotifiedSemver, setLastNotifiedSemver] = import_react235.useState(() => getSemverPart(initialVersion));
|
|
458342
458364
|
if (!updatedVersion) {
|
|
458343
458365
|
return null;
|
|
@@ -458377,7 +458399,7 @@ function AutoUpdater({
|
|
|
458377
458399
|
return;
|
|
458378
458400
|
}
|
|
458379
458401
|
if (false) {}
|
|
458380
|
-
const currentVersion = { VERSION: "0.2.
|
|
458402
|
+
const currentVersion = { VERSION: "0.2.81", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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
458403
|
const channel2 = getInitialSettings()?.autoUpdatesChannel ?? "latest";
|
|
458382
458404
|
let latestVersion = await getLatestVersion(channel2);
|
|
458383
458405
|
const isDisabled2 = isAutoUpdaterDisabled();
|
|
@@ -458512,7 +458534,7 @@ function AutoUpdater({
|
|
|
458512
458534
|
" ",
|
|
458513
458535
|
/* @__PURE__ */ jsx_runtime415.jsx(ThemedText, {
|
|
458514
458536
|
bold: true,
|
|
458515
|
-
children: hasLocalInstall ? `cd ~/.theus/local && npm update ${{ VERSION: "0.2.
|
|
458537
|
+
children: hasLocalInstall ? `cd ~/.theus/local && npm update ${{ VERSION: "0.2.81", BUILD_TIME: "1970-01-01T00:00:00.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.81", BUILD_TIME: "1970-01-01T00:00:00.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
458538
|
})
|
|
458517
458539
|
]
|
|
458518
458540
|
})
|
|
@@ -458589,12 +458611,12 @@ function NativeAutoUpdater({
|
|
|
458589
458611
|
logEvent("theus_native_auto_updater_start", {});
|
|
458590
458612
|
try {
|
|
458591
458613
|
const maxVersion = await getMaxVersion();
|
|
458592
|
-
if (maxVersion && gt({ VERSION: "0.2.
|
|
458614
|
+
if (maxVersion && gt({ VERSION: "0.2.81", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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
458615
|
const msg = await getMaxVersionMessage();
|
|
458594
458616
|
setMaxVersionIssue(msg ?? "affects your version");
|
|
458595
458617
|
}
|
|
458596
458618
|
const result = await installLatest(channel2);
|
|
458597
|
-
const currentVersion = { VERSION: "0.2.
|
|
458619
|
+
const currentVersion = { VERSION: "0.2.81", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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
458620
|
const latencyMs = Date.now() - startTime2;
|
|
458599
458621
|
if (result.lockFailed) {
|
|
458600
458622
|
logEvent("theus_native_auto_updater_lock_contention", {
|
|
@@ -458731,17 +458753,17 @@ function PackageManagerAutoUpdater(t0) {
|
|
|
458731
458753
|
const maxVersion = await getMaxVersion();
|
|
458732
458754
|
if (maxVersion && latest && gt(latest, maxVersion)) {
|
|
458733
458755
|
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.
|
|
458756
|
+
if (gte({ VERSION: "0.2.81", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
|
|
458757
|
+
logForDebugging(`PackageManagerAutoUpdater: current version ${{ VERSION: "0.2.81", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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
458758
|
setUpdateAvailable(false);
|
|
458737
458759
|
return;
|
|
458738
458760
|
}
|
|
458739
458761
|
latest = maxVersion;
|
|
458740
458762
|
}
|
|
458741
|
-
const hasUpdate = latest && !gte({ VERSION: "0.2.
|
|
458763
|
+
const hasUpdate = latest && !gte({ VERSION: "0.2.81", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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
458764
|
setUpdateAvailable(!!hasUpdate);
|
|
458743
458765
|
if (hasUpdate) {
|
|
458744
|
-
logForDebugging(`PackageManagerAutoUpdater: Update available ${{ VERSION: "0.2.
|
|
458766
|
+
logForDebugging(`PackageManagerAutoUpdater: Update available ${{ VERSION: "0.2.81", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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
458767
|
}
|
|
458746
458768
|
};
|
|
458747
458769
|
$2[0] = t1;
|
|
@@ -458775,7 +458797,7 @@ function PackageManagerAutoUpdater(t0) {
|
|
|
458775
458797
|
wrap: "truncate",
|
|
458776
458798
|
children: [
|
|
458777
458799
|
"versi\xF3n actual: ",
|
|
458778
|
-
{ VERSION: "0.2.
|
|
458800
|
+
{ VERSION: "0.2.81", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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
458801
|
]
|
|
458780
458802
|
});
|
|
458781
458803
|
$2[3] = verbose;
|
|
@@ -466638,7 +466660,7 @@ function buildStatusLineCommandInput(permissionMode2, exceeds200kTokens, setting
|
|
|
466638
466660
|
project_dir: getOriginalCwd(),
|
|
466639
466661
|
added_dirs: addedDirs
|
|
466640
466662
|
},
|
|
466641
|
-
version: { VERSION: "0.2.
|
|
466663
|
+
version: { VERSION: "0.2.81", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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
466664
|
output_style: {
|
|
466643
466665
|
name: outputStyleName
|
|
466644
466666
|
},
|
|
@@ -490961,7 +490983,7 @@ function completeOnboarding() {
|
|
|
490961
490983
|
saveGlobalConfig((current) => ({
|
|
490962
490984
|
...current,
|
|
490963
490985
|
hasCompletedOnboarding: true,
|
|
490964
|
-
lastOnboardingVersion: { VERSION: "0.2.
|
|
490986
|
+
lastOnboardingVersion: { VERSION: "0.2.81", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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
490987
|
}));
|
|
490966
490988
|
}
|
|
490967
490989
|
function showDialog(root2, renderer) {
|
|
@@ -497657,7 +497679,7 @@ function getRecentReleaseNotes(currentVersion, previousVersion, changelogContent
|
|
|
497657
497679
|
}
|
|
497658
497680
|
return [];
|
|
497659
497681
|
}
|
|
497660
|
-
async function checkForReleaseNotes(lastSeenVersion, currentVersion = { VERSION: "0.2.
|
|
497682
|
+
async function checkForReleaseNotes(lastSeenVersion, currentVersion = { VERSION: "0.2.81", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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
497683
|
if (false) {}
|
|
497662
497684
|
const cachedChangelog = await getStoredChangelog();
|
|
497663
497685
|
if (lastSeenVersion !== currentVersion || !cachedChangelog) {
|
|
@@ -503190,7 +503212,7 @@ async function startMCPServer(cwd3, debug3, verbose) {
|
|
|
503190
503212
|
setCwd(cwd3);
|
|
503191
503213
|
const server2 = new Server({
|
|
503192
503214
|
name: "theus/tengu",
|
|
503193
|
-
version: { VERSION: "0.2.
|
|
503215
|
+
version: { VERSION: "0.2.81", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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
503216
|
}, {
|
|
503195
503217
|
capabilities: {
|
|
503196
503218
|
tools: {}
|
|
@@ -504632,7 +504654,7 @@ async function setupTokenHandler(root2) {
|
|
|
504632
504654
|
gap: 1,
|
|
504633
504655
|
children: [
|
|
504634
504656
|
/* @__PURE__ */ jsx_runtime503.jsx(TheusBanner, {
|
|
504635
|
-
version: { VERSION: "0.2.
|
|
504657
|
+
version: { VERSION: "0.2.81", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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
504658
|
}),
|
|
504637
504659
|
showAuthWarning && /* @__PURE__ */ jsx_runtime503.jsxs(ThemedBox_default, {
|
|
504638
504660
|
flexDirection: "column",
|
|
@@ -506217,7 +506239,7 @@ ${assistantAddendum}` : assistantAddendum;
|
|
|
506217
506239
|
}
|
|
506218
506240
|
}
|
|
506219
506241
|
logForDiagnosticsNoPII("info", "started", {
|
|
506220
|
-
version: { VERSION: "0.2.
|
|
506242
|
+
version: { VERSION: "0.2.81", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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
506243
|
is_native_binary: isInBundledMode()
|
|
506222
506244
|
});
|
|
506223
506245
|
registerCleanup(async () => {
|
|
@@ -507085,7 +507107,7 @@ Usage: theus --remote "your task description"`, () => gracefulShutdown(1));
|
|
|
507085
507107
|
pendingHookMessages
|
|
507086
507108
|
}, renderAndRun);
|
|
507087
507109
|
}
|
|
507088
|
-
}).version(`${{ VERSION: "0.2.
|
|
507110
|
+
}).version(`${{ VERSION: "0.2.81", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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
507111
|
program2.option("-w, --worktree [name]", "Crea un nuevo worktree de git para esta sesi\xF3n (opcionalmente indica un nombre)");
|
|
507090
507112
|
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
507113
|
if (canUserConfigureAdvisor()) {
|
|
@@ -507686,7 +507708,7 @@ if (false) {}
|
|
|
507686
507708
|
async function main2() {
|
|
507687
507709
|
const args = process.argv.slice(2);
|
|
507688
507710
|
if (args.length === 1 && (args[0] === "--version" || args[0] === "-v" || args[0] === "-V")) {
|
|
507689
|
-
console.log(`${{ VERSION: "0.2.
|
|
507711
|
+
console.log(`${{ VERSION: "0.2.81", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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
507712
|
return;
|
|
507691
507713
|
}
|
|
507692
507714
|
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.81",
|
|
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",
|
|
@@ -33,6 +33,7 @@
|
|
|
33
33
|
"release:dry": "bun run ./scripts/release.ts --no-build",
|
|
34
34
|
"release:native": "bun run ./scripts/release-native.ts",
|
|
35
35
|
"release:msix": "bun run ./scripts/package-msix.ts",
|
|
36
|
+
"release:installers": "bun run ./scripts/package-installers.ts",
|
|
36
37
|
"verificar:canales": "bun run ./scripts/verificar-canales.ts",
|
|
37
38
|
"prepublishOnly": "bun ./scripts/sync-arsenal.ts && bun ./scripts/build.ts",
|
|
38
39
|
"dev": "bun run ./entrypoints/cli.tsx",
|