theus-cli 0.2.80 → 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 +125 -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,17 @@ 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
|
+
},
|
|
256289
256300
|
{
|
|
256290
256301
|
version: "v0.2.80",
|
|
256291
256302
|
fecha: "2026-08-14",
|
|
@@ -300227,9 +300238,9 @@ function getTheusEnvMetadata() {
|
|
|
300227
300238
|
};
|
|
300228
300239
|
}
|
|
300229
300240
|
function getBuildAgeMinutes() {
|
|
300230
|
-
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)
|
|
300231
300242
|
return;
|
|
300232
|
-
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();
|
|
300233
300244
|
if (isNaN(buildTime))
|
|
300234
300245
|
return;
|
|
300235
300246
|
return Math.floor((Date.now() - buildTime) / 60000);
|
|
@@ -318534,7 +318545,7 @@ function getSimpleDoingTasksSection() {
|
|
|
318534
318545
|
];
|
|
318535
318546
|
const userHelpSubitems = [
|
|
318536
318547
|
`/help: Get help with using Theus`,
|
|
318537
|
-
`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}`
|
|
318538
318549
|
];
|
|
318539
318550
|
const items = [
|
|
318540
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.`,
|
|
@@ -329670,7 +329681,7 @@ async function submitTranscriptShare(messages, trigger, appearanceId) {
|
|
|
329670
329681
|
} catch {}
|
|
329671
329682
|
const data = {
|
|
329672
329683
|
trigger,
|
|
329673
|
-
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,
|
|
329674
329685
|
platform: process.platform,
|
|
329675
329686
|
transcript,
|
|
329676
329687
|
subagentTranscripts: Object.keys(subagentTranscripts).length > 0 ? subagentTranscripts : undefined,
|
|
@@ -329875,10 +329886,10 @@ Si el usuario indic\xF3 una duraci\xF3n, p\xE1sala en el par\xE1metro \`duration
|
|
|
329875
329886
|
|
|
329876
329887
|
// commands/issue/index.ts
|
|
329877
329888
|
function getCliVersion() {
|
|
329878
|
-
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";
|
|
329879
329890
|
}
|
|
329880
329891
|
function getIssuesExplainer() {
|
|
329881
|
-
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";
|
|
329882
329893
|
}
|
|
329883
329894
|
function getActiveModelLabel() {
|
|
329884
329895
|
try {
|
|
@@ -332664,7 +332675,7 @@ function buildPrimarySection() {
|
|
|
332664
332675
|
});
|
|
332665
332676
|
return [{
|
|
332666
332677
|
label: "Version",
|
|
332667
|
-
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
|
|
332668
332679
|
}, {
|
|
332669
332680
|
label: "Session name",
|
|
332670
332681
|
value: nameValue
|
|
@@ -336480,7 +336491,7 @@ function Config({
|
|
|
336480
336491
|
}
|
|
336481
336492
|
})
|
|
336482
336493
|
}) : showSubmenu === "ChannelDowngrade" ? /* @__PURE__ */ jsx_runtime189.jsx(ChannelDowngradeDialog, {
|
|
336483
|
-
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,
|
|
336484
336495
|
onChoice: (choice) => {
|
|
336485
336496
|
setShowSubmenu(null);
|
|
336486
336497
|
setTabsHidden(false);
|
|
@@ -336492,7 +336503,7 @@ function Config({
|
|
|
336492
336503
|
autoUpdatesChannel: "stable"
|
|
336493
336504
|
};
|
|
336494
336505
|
if (choice === "stay") {
|
|
336495
|
-
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;
|
|
336496
336507
|
}
|
|
336497
336508
|
updateSettingsForSource("userSettings", newSettings);
|
|
336498
336509
|
setSettingsData((prev_27) => ({
|
|
@@ -343851,7 +343862,7 @@ function HelpV2(t0) {
|
|
|
343851
343862
|
let t6;
|
|
343852
343863
|
if ($2[31] !== tabs) {
|
|
343853
343864
|
t6 = /* @__PURE__ */ jsx_runtime215.jsx(Tabs, {
|
|
343854
|
-
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}`,
|
|
343855
343866
|
color: "professionalBlue",
|
|
343856
343867
|
defaultTab: "general",
|
|
343857
343868
|
children: tabs
|
|
@@ -362672,7 +362683,7 @@ function Onboarding({
|
|
|
362672
362683
|
flexDirection: "column",
|
|
362673
362684
|
children: [
|
|
362674
362685
|
/* @__PURE__ */ jsx_runtime251.jsx(TheusBanner, {
|
|
362675
|
-
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
|
|
362676
362687
|
}),
|
|
362677
362688
|
/* @__PURE__ */ jsx_runtime251.jsxs(ThemedBox_default, {
|
|
362678
362689
|
flexDirection: "column",
|
|
@@ -368059,7 +368070,7 @@ var init_Messages = __esm(() => {
|
|
|
368059
368070
|
let t1;
|
|
368060
368071
|
if ($2[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
368061
368072
|
t1 = /* @__PURE__ */ jsx_runtime264.jsx(TheusSessionHeader, {
|
|
368062
|
-
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
|
|
368063
368074
|
});
|
|
368064
368075
|
$2[0] = t1;
|
|
368065
368076
|
} else {
|
|
@@ -399928,7 +399939,7 @@ async function captureMemoryDiagnostics(trigger, dumpNumber = 0) {
|
|
|
399928
399939
|
smapsRollup,
|
|
399929
399940
|
platform: process.platform,
|
|
399930
399941
|
nodeVersion: process.version,
|
|
399931
|
-
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
|
|
399932
399943
|
};
|
|
399933
399944
|
}
|
|
399934
399945
|
async function performHeapDump(trigger = "manual", dumpNumber = 0) {
|
|
@@ -400689,7 +400700,7 @@ var init_bridge_kick = __esm(() => {
|
|
|
400689
400700
|
var call69 = async () => {
|
|
400690
400701
|
return {
|
|
400691
400702
|
type: "text",
|
|
400692
|
-
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
|
|
400693
400704
|
};
|
|
400694
400705
|
}, version2, version_default;
|
|
400695
400706
|
var init_version = __esm(() => {
|
|
@@ -403290,7 +403301,7 @@ var SECRET_NAME_PATTERN, EXTRA_ENV_ALLOWLIST, REDACTED2 = "\u2039oculto\u203A",
|
|
|
403290
403301
|
const lines = [];
|
|
403291
403302
|
lines.push("## Entorno de ejecuci\xF3n");
|
|
403292
403303
|
lines.push("");
|
|
403293
|
-
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";
|
|
403294
403305
|
lines.push(`- Versi\xF3n de Theus: ${version3}`);
|
|
403295
403306
|
lines.push(`- Directorio de trabajo: ${getCwd()}`);
|
|
403296
403307
|
lines.push(`- \xBFRepositorio git?: ${isGit ? "s\xED" : "no"}`);
|
|
@@ -405831,13 +405842,13 @@ async function updateReleaseBundle() {
|
|
|
405831
405842
|
await gracefulShutdown(1);
|
|
405832
405843
|
return;
|
|
405833
405844
|
}
|
|
405834
|
-
if (gte({ VERSION: "0.2.
|
|
405835
|
-
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})`) + `
|
|
405836
405847
|
`);
|
|
405837
405848
|
await gracefulShutdown(0);
|
|
405838
405849
|
return;
|
|
405839
405850
|
}
|
|
405840
|
-
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})
|
|
405841
405852
|
`);
|
|
405842
405853
|
writeToStdout(`Instalando la actualizaci\xF3n desde theus.pe/dl...
|
|
405843
405854
|
`);
|
|
@@ -405871,7 +405882,7 @@ async function updateReleaseBundle() {
|
|
|
405871
405882
|
return;
|
|
405872
405883
|
}
|
|
405873
405884
|
cpSync(staged, bundleDir, { recursive: true, force: true });
|
|
405874
|
-
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}`) + `
|
|
405875
405886
|
`);
|
|
405876
405887
|
await regenerateCompletionCache();
|
|
405877
405888
|
} finally {
|
|
@@ -405884,7 +405895,7 @@ async function updateReleaseBundle() {
|
|
|
405884
405895
|
async function update() {
|
|
405885
405896
|
logEvent("theus_update_check", {});
|
|
405886
405897
|
await updateNaupa();
|
|
405887
|
-
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}
|
|
405888
405899
|
`);
|
|
405889
405900
|
const channel2 = getInitialSettings()?.autoUpdatesChannel ?? "latest";
|
|
405890
405901
|
writeToStdout(`Buscando actualizaciones en el canal ${channel2}...
|
|
@@ -405963,8 +405974,8 @@ async function update() {
|
|
|
405963
405974
|
writeToStdout(`Theus est\xE1 gestionado por Homebrew.
|
|
405964
405975
|
`);
|
|
405965
405976
|
const latest = await getLatestVersion(channel2);
|
|
405966
|
-
if (latest && !gte({ VERSION: "0.2.
|
|
405967
|
-
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}
|
|
405968
405979
|
`);
|
|
405969
405980
|
writeToStdout(`
|
|
405970
405981
|
`);
|
|
@@ -405980,8 +405991,8 @@ async function update() {
|
|
|
405980
405991
|
writeToStdout(`Theus est\xE1 gestionado por winget.
|
|
405981
405992
|
`);
|
|
405982
405993
|
const latest = await getLatestVersion(channel2);
|
|
405983
|
-
if (latest && !gte({ VERSION: "0.2.
|
|
405984
|
-
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}
|
|
405985
405996
|
`);
|
|
405986
405997
|
writeToStdout(`
|
|
405987
405998
|
`);
|
|
@@ -405997,8 +406008,8 @@ async function update() {
|
|
|
405997
406008
|
writeToStdout(`Theus est\xE1 gestionado por apk.
|
|
405998
406009
|
`);
|
|
405999
406010
|
const latest = await getLatestVersion(channel2);
|
|
406000
|
-
if (latest && !gte({ VERSION: "0.2.
|
|
406001
|
-
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}
|
|
406002
406013
|
`);
|
|
406003
406014
|
writeToStdout(`
|
|
406004
406015
|
`);
|
|
@@ -406063,11 +406074,11 @@ async function update() {
|
|
|
406063
406074
|
`);
|
|
406064
406075
|
await gracefulShutdown(1);
|
|
406065
406076
|
}
|
|
406066
|
-
if (result.latestVersion === { VERSION: "0.2.
|
|
406067
|
-
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})`) + `
|
|
406068
406079
|
`);
|
|
406069
406080
|
} else {
|
|
406070
|
-
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}`) + `
|
|
406071
406082
|
`);
|
|
406072
406083
|
await regenerateCompletionCache();
|
|
406073
406084
|
}
|
|
@@ -406086,9 +406097,9 @@ async function update() {
|
|
|
406086
406097
|
await removeInstalledSymlink();
|
|
406087
406098
|
}
|
|
406088
406099
|
logForDebugging("update: Checking npm registry for latest version");
|
|
406089
|
-
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}`);
|
|
406090
406101
|
const npmTag = channel2 === "stable" ? "stable" : "latest";
|
|
406091
|
-
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`;
|
|
406092
406103
|
logForDebugging(`update: Running: ${npmCommand}`);
|
|
406093
406104
|
const latestVersion = await getLatestVersion(channel2);
|
|
406094
406105
|
logForDebugging(`update: Latest version from npm: ${latestVersion || "FAILED"}`);
|
|
@@ -406108,7 +406119,7 @@ async function update() {
|
|
|
406108
406119
|
`);
|
|
406109
406120
|
process.stderr.write(` \u2022 Un proxy o firewall corporativo bloquea npm
|
|
406110
406121
|
`);
|
|
406111
|
-
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")) {
|
|
406112
406123
|
process.stderr.write(` \u2022 Compilaci\xF3n interna/de desarrollo no publicada en npm
|
|
406113
406124
|
`);
|
|
406114
406125
|
}
|
|
@@ -406120,19 +406131,19 @@ async function update() {
|
|
|
406120
406131
|
`);
|
|
406121
406132
|
process.stderr.write(` \u2022 Ejecuta con el flag --debug para m\xE1s detalle
|
|
406122
406133
|
`);
|
|
406123
|
-
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";
|
|
406124
406135
|
process.stderr.write(` \u2022 Comprueba a mano: npm view ${packageName} version
|
|
406125
406136
|
`);
|
|
406126
406137
|
process.stderr.write(` \u2022 Comprueba si te falta iniciar sesi\xF3n: npm whoami
|
|
406127
406138
|
`);
|
|
406128
406139
|
await gracefulShutdown(1);
|
|
406129
406140
|
}
|
|
406130
|
-
if (gte({ VERSION: "0.2.
|
|
406131
|
-
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})`) + `
|
|
406132
406143
|
`);
|
|
406133
406144
|
await gracefulShutdown(0);
|
|
406134
406145
|
}
|
|
406135
|
-
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})
|
|
406136
406147
|
`);
|
|
406137
406148
|
writeToStdout(`Instalando la actualizaci\xF3n...
|
|
406138
406149
|
`);
|
|
@@ -406177,7 +406188,7 @@ async function update() {
|
|
|
406177
406188
|
logForDebugging(`update: Installation status: ${status2}`);
|
|
406178
406189
|
switch (status2) {
|
|
406179
406190
|
case "success":
|
|
406180
|
-
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}`) + `
|
|
406181
406192
|
`);
|
|
406182
406193
|
await regenerateCompletionCache();
|
|
406183
406194
|
break;
|
|
@@ -406187,7 +406198,7 @@ async function update() {
|
|
|
406187
406198
|
if (useLocalUpdate) {
|
|
406188
406199
|
process.stderr.write(`Prueba a actualizar a mano con:
|
|
406189
406200
|
`);
|
|
406190
|
-
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}
|
|
406191
406202
|
`);
|
|
406192
406203
|
} else {
|
|
406193
406204
|
process.stderr.write(`Prueba con sudo o corrige los permisos de npm
|
|
@@ -406203,7 +406214,7 @@ async function update() {
|
|
|
406203
406214
|
if (useLocalUpdate) {
|
|
406204
406215
|
process.stderr.write(`Prueba a actualizar a mano con:
|
|
406205
406216
|
`);
|
|
406206
|
-
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}
|
|
406207
406218
|
`);
|
|
406208
406219
|
} else {
|
|
406209
406220
|
process.stderr.write(`O p\xE1sate a la instalaci\xF3n nativa con: theus install
|
|
@@ -415628,7 +415639,7 @@ var init_sessionStorage = __esm(() => {
|
|
|
415628
415639
|
init_settings2();
|
|
415629
415640
|
init_slowOperations();
|
|
415630
415641
|
init_uuid();
|
|
415631
|
-
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;
|
|
415632
415643
|
MAX_TOMBSTONE_REWRITE_BYTES = 50 * 1024 * 1024;
|
|
415633
415644
|
SKIP_FIRST_PROMPT_PATTERN2 = /^(?:\s*<[a-z][\w-]*[\s>]|\[Request interrupted by user[^\]]*\])/;
|
|
415634
415645
|
EPHEMERAL_PROGRESS_TYPES = new Set([
|
|
@@ -416833,7 +416844,7 @@ var init_filesystem = __esm(() => {
|
|
|
416833
416844
|
});
|
|
416834
416845
|
getBundledSkillsRoot = memoize_default(function getBundledSkillsRoot2() {
|
|
416835
416846
|
const nonce = randomBytes21(16).toString("hex");
|
|
416836
|
-
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);
|
|
416837
416848
|
});
|
|
416838
416849
|
getResolvedWorkingDirPaths = memoize_default(getPathsForPermissionCheck);
|
|
416839
416850
|
});
|
|
@@ -429010,7 +429021,7 @@ async function handleMemories(state2) {
|
|
|
429010
429021
|
async function runProjectContextMcpServer() {
|
|
429011
429022
|
const projectRoot = process.env.THEUS_PROJECT_ROOT || process.cwd();
|
|
429012
429023
|
const state2 = new ProjectContextState(projectRoot);
|
|
429013
|
-
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: {} } });
|
|
429014
429025
|
server2.setRequestHandler(ListToolsRequestSchema, async () => ({
|
|
429015
429026
|
tools: TOOL_DEFINITIONS.map((t) => ({
|
|
429016
429027
|
name: t.name,
|
|
@@ -431687,7 +431698,7 @@ async function runTitanFleetWorker(args) {
|
|
|
431687
431698
|
max_concurrency: maxConcurrency,
|
|
431688
431699
|
runtime: {
|
|
431689
431700
|
name: "theus-cli",
|
|
431690
|
-
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
|
|
431691
431702
|
}
|
|
431692
431703
|
});
|
|
431693
431704
|
const client2 = new TitanFleetClient({
|
|
@@ -433578,7 +433589,7 @@ function createBridgeLogger(options2) {
|
|
|
433578
433589
|
connectUrl = buildBridgeConnectUrl(environmentId, cachedIngressUrl);
|
|
433579
433590
|
regenerateQr(connectUrl);
|
|
433580
433591
|
if (verbose) {
|
|
433581
|
-
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}
|
|
433582
433593
|
`);
|
|
433583
433594
|
}
|
|
433584
433595
|
if (verbose) {
|
|
@@ -434551,7 +434562,7 @@ function appendToLog(path19, message) {
|
|
|
434551
434562
|
cwd: getFsImplementation().cwd(),
|
|
434552
434563
|
userType: "external",
|
|
434553
434564
|
sessionId: getSessionId(),
|
|
434554
|
-
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
|
|
434555
434566
|
};
|
|
434556
434567
|
getLogWriter(path19).write(messageWithTimestamp);
|
|
434557
434568
|
}
|
|
@@ -435812,7 +435823,7 @@ Spawn mode for this project:
|
|
|
435812
435823
|
const api2 = createBridgeApiClient({
|
|
435813
435824
|
baseUrl,
|
|
435814
435825
|
getAccessToken: getBridgeAccessToken2,
|
|
435815
|
-
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,
|
|
435816
435827
|
onDebug: logForDebugging,
|
|
435817
435828
|
onAuth401: handleOAuth401Error2,
|
|
435818
435829
|
getTrustedDeviceToken
|
|
@@ -436050,7 +436061,7 @@ async function runBridgeHeadless(opts, signal) {
|
|
|
436050
436061
|
const api2 = createBridgeApiClient({
|
|
436051
436062
|
baseUrl,
|
|
436052
436063
|
getAccessToken: opts.getAccessToken,
|
|
436053
|
-
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,
|
|
436054
436065
|
onDebug: log2,
|
|
436055
436066
|
onAuth401: opts.onAuth401,
|
|
436056
436067
|
getTrustedDeviceToken
|
|
@@ -439342,7 +439353,7 @@ function buildSystemInitMessage(inputs) {
|
|
|
439342
439353
|
slash_commands: inputs.commands.filter((c5) => c5.userInvocable !== false).map((c5) => c5.name),
|
|
439343
439354
|
apiKeySource: getTheusApiKeyWithSource().source,
|
|
439344
439355
|
betas: getSdkBetas(),
|
|
439345
|
-
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,
|
|
439346
439357
|
output_style: outputStyle2,
|
|
439347
439358
|
agents: inputs.agents.map((agent) => agent.agentType),
|
|
439348
439359
|
skills: inputs.skills.filter((s) => s.userInvocable !== false).map((skill) => skill.name),
|
|
@@ -439382,8 +439393,8 @@ async function getEnvLessBridgeConfig() {
|
|
|
439382
439393
|
}
|
|
439383
439394
|
async function checkEnvLessBridgeMinVersion() {
|
|
439384
439395
|
const cfg = await getEnvLessBridgeConfig();
|
|
439385
|
-
if (cfg.min_version && lt({ VERSION: "0.2.
|
|
439386
|
-
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.
|
|
439387
439398
|
Version ${cfg.min_version} or higher is required. Run \`theus update\` to update.`;
|
|
439388
439399
|
}
|
|
439389
439400
|
return null;
|
|
@@ -441707,7 +441718,7 @@ async function initBridgeCore(params) {
|
|
|
441707
441718
|
const rawApi = createBridgeApiClient({
|
|
441708
441719
|
baseUrl,
|
|
441709
441720
|
getAccessToken,
|
|
441710
|
-
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,
|
|
441711
441722
|
onDebug: logForDebugging,
|
|
441712
441723
|
onAuth401,
|
|
441713
441724
|
getTrustedDeviceToken
|
|
@@ -458348,7 +458359,7 @@ var init_useVoiceEnabled = __esm(() => {
|
|
|
458348
458359
|
function getSemverPart(version3) {
|
|
458349
458360
|
return `${import_semver11.major(version3, { loose: true })}.${import_semver11.minor(version3, { loose: true })}.${import_semver11.patch(version3, { loose: true })}`;
|
|
458350
458361
|
}
|
|
458351
|
-
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) {
|
|
458352
458363
|
const [lastNotifiedSemver, setLastNotifiedSemver] = import_react235.useState(() => getSemverPart(initialVersion));
|
|
458353
458364
|
if (!updatedVersion) {
|
|
458354
458365
|
return null;
|
|
@@ -458388,7 +458399,7 @@ function AutoUpdater({
|
|
|
458388
458399
|
return;
|
|
458389
458400
|
}
|
|
458390
458401
|
if (false) {}
|
|
458391
|
-
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;
|
|
458392
458403
|
const channel2 = getInitialSettings()?.autoUpdatesChannel ?? "latest";
|
|
458393
458404
|
let latestVersion = await getLatestVersion(channel2);
|
|
458394
458405
|
const isDisabled2 = isAutoUpdaterDisabled();
|
|
@@ -458523,7 +458534,7 @@ function AutoUpdater({
|
|
|
458523
458534
|
" ",
|
|
458524
458535
|
/* @__PURE__ */ jsx_runtime415.jsx(ThemedText, {
|
|
458525
458536
|
bold: true,
|
|
458526
|
-
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}`
|
|
458527
458538
|
})
|
|
458528
458539
|
]
|
|
458529
458540
|
})
|
|
@@ -458600,12 +458611,12 @@ function NativeAutoUpdater({
|
|
|
458600
458611
|
logEvent("theus_native_auto_updater_start", {});
|
|
458601
458612
|
try {
|
|
458602
458613
|
const maxVersion = await getMaxVersion();
|
|
458603
|
-
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)) {
|
|
458604
458615
|
const msg = await getMaxVersionMessage();
|
|
458605
458616
|
setMaxVersionIssue(msg ?? "affects your version");
|
|
458606
458617
|
}
|
|
458607
458618
|
const result = await installLatest(channel2);
|
|
458608
|
-
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;
|
|
458609
458620
|
const latencyMs = Date.now() - startTime2;
|
|
458610
458621
|
if (result.lockFailed) {
|
|
458611
458622
|
logEvent("theus_native_auto_updater_lock_contention", {
|
|
@@ -458742,17 +458753,17 @@ function PackageManagerAutoUpdater(t0) {
|
|
|
458742
458753
|
const maxVersion = await getMaxVersion();
|
|
458743
458754
|
if (maxVersion && latest && gt(latest, maxVersion)) {
|
|
458744
458755
|
logForDebugging(`PackageManagerAutoUpdater: maxVersion ${maxVersion} is set, capping update from ${latest} to ${maxVersion}`);
|
|
458745
|
-
if (gte({ VERSION: "0.2.
|
|
458746
|
-
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`);
|
|
458747
458758
|
setUpdateAvailable(false);
|
|
458748
458759
|
return;
|
|
458749
458760
|
}
|
|
458750
458761
|
latest = maxVersion;
|
|
458751
458762
|
}
|
|
458752
|
-
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);
|
|
458753
458764
|
setUpdateAvailable(!!hasUpdate);
|
|
458754
458765
|
if (hasUpdate) {
|
|
458755
|
-
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}`);
|
|
458756
458767
|
}
|
|
458757
458768
|
};
|
|
458758
458769
|
$2[0] = t1;
|
|
@@ -458786,7 +458797,7 @@ function PackageManagerAutoUpdater(t0) {
|
|
|
458786
458797
|
wrap: "truncate",
|
|
458787
458798
|
children: [
|
|
458788
458799
|
"versi\xF3n actual: ",
|
|
458789
|
-
{ 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
|
|
458790
458801
|
]
|
|
458791
458802
|
});
|
|
458792
458803
|
$2[3] = verbose;
|
|
@@ -466649,7 +466660,7 @@ function buildStatusLineCommandInput(permissionMode2, exceeds200kTokens, setting
|
|
|
466649
466660
|
project_dir: getOriginalCwd(),
|
|
466650
466661
|
added_dirs: addedDirs
|
|
466651
466662
|
},
|
|
466652
|
-
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,
|
|
466653
466664
|
output_style: {
|
|
466654
466665
|
name: outputStyleName
|
|
466655
466666
|
},
|
|
@@ -490972,7 +490983,7 @@ function completeOnboarding() {
|
|
|
490972
490983
|
saveGlobalConfig((current) => ({
|
|
490973
490984
|
...current,
|
|
490974
490985
|
hasCompletedOnboarding: true,
|
|
490975
|
-
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
|
|
490976
490987
|
}));
|
|
490977
490988
|
}
|
|
490978
490989
|
function showDialog(root2, renderer) {
|
|
@@ -497668,7 +497679,7 @@ function getRecentReleaseNotes(currentVersion, previousVersion, changelogContent
|
|
|
497668
497679
|
}
|
|
497669
497680
|
return [];
|
|
497670
497681
|
}
|
|
497671
|
-
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) {
|
|
497672
497683
|
if (false) {}
|
|
497673
497684
|
const cachedChangelog = await getStoredChangelog();
|
|
497674
497685
|
if (lastSeenVersion !== currentVersion || !cachedChangelog) {
|
|
@@ -503201,7 +503212,7 @@ async function startMCPServer(cwd3, debug3, verbose) {
|
|
|
503201
503212
|
setCwd(cwd3);
|
|
503202
503213
|
const server2 = new Server({
|
|
503203
503214
|
name: "theus/tengu",
|
|
503204
|
-
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
|
|
503205
503216
|
}, {
|
|
503206
503217
|
capabilities: {
|
|
503207
503218
|
tools: {}
|
|
@@ -504643,7 +504654,7 @@ async function setupTokenHandler(root2) {
|
|
|
504643
504654
|
gap: 1,
|
|
504644
504655
|
children: [
|
|
504645
504656
|
/* @__PURE__ */ jsx_runtime503.jsx(TheusBanner, {
|
|
504646
|
-
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
|
|
504647
504658
|
}),
|
|
504648
504659
|
showAuthWarning && /* @__PURE__ */ jsx_runtime503.jsxs(ThemedBox_default, {
|
|
504649
504660
|
flexDirection: "column",
|
|
@@ -506228,7 +506239,7 @@ ${assistantAddendum}` : assistantAddendum;
|
|
|
506228
506239
|
}
|
|
506229
506240
|
}
|
|
506230
506241
|
logForDiagnosticsNoPII("info", "started", {
|
|
506231
|
-
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,
|
|
506232
506243
|
is_native_binary: isInBundledMode()
|
|
506233
506244
|
});
|
|
506234
506245
|
registerCleanup(async () => {
|
|
@@ -507096,7 +507107,7 @@ Usage: theus --remote "your task description"`, () => gracefulShutdown(1));
|
|
|
507096
507107
|
pendingHookMessages
|
|
507097
507108
|
}, renderAndRun);
|
|
507098
507109
|
}
|
|
507099
|
-
}).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");
|
|
507100
507111
|
program2.option("-w, --worktree [name]", "Crea un nuevo worktree de git para esta sesi\xF3n (opcionalmente indica un nombre)");
|
|
507101
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.");
|
|
507102
507113
|
if (canUserConfigureAdvisor()) {
|
|
@@ -507697,7 +507708,7 @@ if (false) {}
|
|
|
507697
507708
|
async function main2() {
|
|
507698
507709
|
const args = process.argv.slice(2);
|
|
507699
507710
|
if (args.length === 1 && (args[0] === "--version" || args[0] === "-v" || args[0] === "-V")) {
|
|
507700
|
-
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)`);
|
|
507701
507712
|
return;
|
|
507702
507713
|
}
|
|
507703
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",
|