theus-cli 0.2.77 → 0.2.78
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 +129 -119
- package/package.json +1 -1
package/cli.js
CHANGED
|
@@ -57765,7 +57765,7 @@ async function _executeApiKeyHelper(isNonInteractiveSession) {
|
|
|
57765
57765
|
if (isApiKeyHelperFromProjectOrLocalSettings()) {
|
|
57766
57766
|
const hasTrust = checkHasTrustDialogAccepted();
|
|
57767
57767
|
if (!hasTrust && !isNonInteractiveSession) {
|
|
57768
|
-
const error40 = new Error(`Security: apiKeyHelper executed before workspace trust is confirmed. If you see this message, post in ${{ VERSION: "0.2.
|
|
57768
|
+
const error40 = new Error(`Security: apiKeyHelper executed before workspace trust is confirmed. If you see this message, post in ${{ VERSION: "0.2.78", BUILD_TIME: "1970-01-01T00:00:00.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}.`);
|
|
57769
57769
|
logAntError("apiKeyHelper invoked before trust check", error40);
|
|
57770
57770
|
logEvent("theus_apiKeyHelper_missing_trust11", {});
|
|
57771
57771
|
return null;
|
|
@@ -57809,7 +57809,7 @@ async function runAwsAuthRefresh() {
|
|
|
57809
57809
|
if (isAwsAuthRefreshFromProjectSettings()) {
|
|
57810
57810
|
const hasTrust = checkHasTrustDialogAccepted();
|
|
57811
57811
|
if (!hasTrust && !getIsNonInteractiveSession()) {
|
|
57812
|
-
const error40 = new Error(`Security: awsAuthRefresh executed before workspace trust is confirmed. If you see this message, post in ${{ VERSION: "0.2.
|
|
57812
|
+
const error40 = new Error(`Security: awsAuthRefresh executed before workspace trust is confirmed. If you see this message, post in ${{ VERSION: "0.2.78", BUILD_TIME: "1970-01-01T00:00:00.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}.`);
|
|
57813
57813
|
logAntError("awsAuthRefresh invoked before trust check", error40);
|
|
57814
57814
|
logEvent("theus_awsAuthRefresh_missing_trust", {});
|
|
57815
57815
|
return false;
|
|
@@ -57869,7 +57869,7 @@ async function getAwsCredsFromCredentialExport() {
|
|
|
57869
57869
|
if (isAwsCredentialExportFromProjectSettings()) {
|
|
57870
57870
|
const hasTrust = checkHasTrustDialogAccepted();
|
|
57871
57871
|
if (!hasTrust && !getIsNonInteractiveSession()) {
|
|
57872
|
-
const error40 = new Error(`Security: awsCredentialExport executed before workspace trust is confirmed. If you see this message, post in ${{ VERSION: "0.2.
|
|
57872
|
+
const error40 = new Error(`Security: awsCredentialExport executed before workspace trust is confirmed. If you see this message, post in ${{ VERSION: "0.2.78", BUILD_TIME: "1970-01-01T00:00:00.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}.`);
|
|
57873
57873
|
logAntError("awsCredentialExport invoked before trust check", error40);
|
|
57874
57874
|
logEvent("theus_awsCredentialExport_missing_trust", {});
|
|
57875
57875
|
return null;
|
|
@@ -57954,7 +57954,7 @@ async function runGcpAuthRefresh() {
|
|
|
57954
57954
|
if (isGcpAuthRefreshFromProjectSettings()) {
|
|
57955
57955
|
const hasTrust = checkHasTrustDialogAccepted();
|
|
57956
57956
|
if (!hasTrust && !getIsNonInteractiveSession()) {
|
|
57957
|
-
const error40 = new Error(`Security: gcpAuthRefresh executed before workspace trust is confirmed. If you see this message, post in ${{ VERSION: "0.2.
|
|
57957
|
+
const error40 = new Error(`Security: gcpAuthRefresh executed before workspace trust is confirmed. If you see this message, post in ${{ VERSION: "0.2.78", BUILD_TIME: "1970-01-01T00:00:00.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}.`);
|
|
57958
57958
|
logAntError("gcpAuthRefresh invoked before trust check", error40);
|
|
57959
57959
|
logEvent("theus_gcpAuthRefresh_missing_trust", {});
|
|
57960
57960
|
return false;
|
|
@@ -58673,7 +58673,7 @@ var init_auth = __esm(() => {
|
|
|
58673
58673
|
|
|
58674
58674
|
// utils/userAgent.ts
|
|
58675
58675
|
function getTheusCodeUserAgent() {
|
|
58676
|
-
return `theus-code/${{ VERSION: "0.2.
|
|
58676
|
+
return `theus-code/${{ VERSION: "0.2.78", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION}`;
|
|
58677
58677
|
}
|
|
58678
58678
|
|
|
58679
58679
|
// utils/workloadContext.ts
|
|
@@ -58695,7 +58695,7 @@ function getUserAgent() {
|
|
|
58695
58695
|
const clientApp = process.env.THEUS_AGENT_SDK_CLIENT_APP ? `, client-app/${process.env.THEUS_AGENT_SDK_CLIENT_APP}` : "";
|
|
58696
58696
|
const workload = getWorkload();
|
|
58697
58697
|
const workloadSuffix = workload ? `, workload/${workload}` : "";
|
|
58698
|
-
return `theus-cli/${{ VERSION: "0.2.
|
|
58698
|
+
return `theus-cli/${{ VERSION: "0.2.78", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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})`;
|
|
58699
58699
|
}
|
|
58700
58700
|
function getMCPUserAgent() {
|
|
58701
58701
|
const parts = [];
|
|
@@ -58709,7 +58709,7 @@ function getMCPUserAgent() {
|
|
|
58709
58709
|
parts.push(`client-app/${process.env.THEUS_AGENT_SDK_CLIENT_APP}`);
|
|
58710
58710
|
}
|
|
58711
58711
|
const suffix = parts.length > 0 ? ` (${parts.join(", ")})` : "";
|
|
58712
|
-
return `theus-code/${{ VERSION: "0.2.
|
|
58712
|
+
return `theus-code/${{ VERSION: "0.2.78", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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}`;
|
|
58713
58713
|
}
|
|
58714
58714
|
function getWebFetchUserAgent() {
|
|
58715
58715
|
return `Theus-User (${getTheusCodeUserAgent()}; +https://support.theus.pe/)`;
|
|
@@ -58847,7 +58847,7 @@ var init_user = __esm(() => {
|
|
|
58847
58847
|
deviceId,
|
|
58848
58848
|
sessionId: getSessionId(),
|
|
58849
58849
|
email: getEmail(),
|
|
58850
|
-
appVersion: { VERSION: "0.2.
|
|
58850
|
+
appVersion: { VERSION: "0.2.78", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
|
|
58851
58851
|
platform: getHostPlatformForAnalytics(),
|
|
58852
58852
|
organizationUuid,
|
|
58853
58853
|
accountUuid,
|
|
@@ -60557,7 +60557,7 @@ var init_metadata = __esm(() => {
|
|
|
60557
60557
|
COMPOUND_OPERATOR_REGEX = /\s*(?:&&|\|\||[;|])\s*/;
|
|
60558
60558
|
WHITESPACE_REGEX = /\s+/;
|
|
60559
60559
|
getVersionBase = memoize_default(() => {
|
|
60560
|
-
const match = { VERSION: "0.2.
|
|
60560
|
+
const match = { VERSION: "0.2.78", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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]+)?/);
|
|
60561
60561
|
return match ? match[0] : undefined;
|
|
60562
60562
|
});
|
|
60563
60563
|
buildEnvContext = memoize_default(async () => {
|
|
@@ -60597,9 +60597,9 @@ var init_metadata = __esm(() => {
|
|
|
60597
60597
|
isGithubAction: isEnvTruthy(process.env.GITHUB_ACTIONS),
|
|
60598
60598
|
isTheusCodeAction: isEnvTruthy(process.env.THEUS_CODE_ACTION),
|
|
60599
60599
|
isTheusAiAuth: isTheusAISubscriber(),
|
|
60600
|
-
version: { VERSION: "0.2.
|
|
60600
|
+
version: { VERSION: "0.2.78", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
|
|
60601
60601
|
versionBase: getVersionBase(),
|
|
60602
|
-
buildTime: { VERSION: "0.2.
|
|
60602
|
+
buildTime: { VERSION: "0.2.78", BUILD_TIME: "1970-01-01T00:00:00.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,
|
|
60603
60603
|
deploymentEnvironment: env3.detectDeploymentEnvironment(),
|
|
60604
60604
|
...isEnvTruthy(process.env.GITHUB_ACTIONS) && {
|
|
60605
60605
|
githubEventName: process.env.GITHUB_EVENT_NAME,
|
|
@@ -61215,7 +61215,7 @@ function initialize1PEventLogging() {
|
|
|
61215
61215
|
const platform2 = getPlatform();
|
|
61216
61216
|
const attributes = {
|
|
61217
61217
|
[ATTR_SERVICE_NAME]: "theus-code",
|
|
61218
|
-
[ATTR_SERVICE_VERSION]: { VERSION: "0.2.
|
|
61218
|
+
[ATTR_SERVICE_VERSION]: { VERSION: "0.2.78", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
|
|
61219
61219
|
};
|
|
61220
61220
|
if (platform2 === "wsl") {
|
|
61221
61221
|
const wslVersion = getWslVersion();
|
|
@@ -61242,7 +61242,7 @@ function initialize1PEventLogging() {
|
|
|
61242
61242
|
})
|
|
61243
61243
|
]
|
|
61244
61244
|
});
|
|
61245
|
-
firstPartyEventLogger = firstPartyEventLoggerProvider.getLogger("com.theus.theus_code.events", { VERSION: "0.2.
|
|
61245
|
+
firstPartyEventLogger = firstPartyEventLoggerProvider.getLogger("com.theus.theus_code.events", { VERSION: "0.2.78", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION);
|
|
61246
61246
|
}
|
|
61247
61247
|
async function reinitialize1PEventLoggingIfConfigChanged() {
|
|
61248
61248
|
if (!is1PEventLoggingEnabled() || !firstPartyEventLoggerProvider) {
|
|
@@ -91081,7 +91081,7 @@ function getAttributionHeader(fingerprint) {
|
|
|
91081
91081
|
if (!isAttributionHeaderEnabled()) {
|
|
91082
91082
|
return "";
|
|
91083
91083
|
}
|
|
91084
|
-
const version2 = `${{ VERSION: "0.2.
|
|
91084
|
+
const version2 = `${{ VERSION: "0.2.78", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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}`;
|
|
91085
91085
|
const entrypoint = process.env.THEUS_CODE_ENTRYPOINT ?? "unknown";
|
|
91086
91086
|
const cch = "";
|
|
91087
91087
|
const workload = getWorkload();
|
|
@@ -104117,7 +104117,7 @@ Complete the user's request by providing accurate, documentation-based guidance.
|
|
|
104117
104117
|
}
|
|
104118
104118
|
function getFeedbackGuideline() {
|
|
104119
104119
|
if (isUsing3PServices()) {
|
|
104120
|
-
return `- When you cannot find an answer or the feature doesn't exist, direct the user to ${{ VERSION: "0.2.
|
|
104120
|
+
return `- When you cannot find an answer or the feature doesn't exist, direct the user to ${{ VERSION: "0.2.78", BUILD_TIME: "1970-01-01T00:00:00.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}`;
|
|
104121
104121
|
}
|
|
104122
104122
|
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";
|
|
104123
104123
|
}
|
|
@@ -144301,7 +144301,7 @@ function getTelemetryAttributes() {
|
|
|
144301
144301
|
attributes["session.id"] = sessionId;
|
|
144302
144302
|
}
|
|
144303
144303
|
if (shouldIncludeAttribute("OTEL_METRICS_INCLUDE_VERSION")) {
|
|
144304
|
-
attributes["app.version"] = { VERSION: "0.2.
|
|
144304
|
+
attributes["app.version"] = { VERSION: "0.2.78", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION;
|
|
144305
144305
|
}
|
|
144306
144306
|
const oauthAccount = getOauthAccountInfo();
|
|
144307
144307
|
if (oauthAccount) {
|
|
@@ -220580,7 +220580,7 @@ async function getMcpHeadersFromHelper(serverName, config2) {
|
|
|
220580
220580
|
if ("scope" in config2 && isMcpServerFromProjectOrLocalSettings(config2) && !getIsNonInteractiveSession()) {
|
|
220581
220581
|
const hasTrust = checkHasTrustDialogAccepted();
|
|
220582
220582
|
if (!hasTrust) {
|
|
220583
|
-
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.
|
|
220583
|
+
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.78", BUILD_TIME: "1970-01-01T00:00:00.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}.`);
|
|
220584
220584
|
logAntError("MCP headersHelper invoked before trust check", error40);
|
|
220585
220585
|
logEvent("theus_mcp_headersHelper_missing_trust", {});
|
|
220586
220586
|
return null;
|
|
@@ -221272,7 +221272,7 @@ function computeFingerprint(messageText, version2) {
|
|
|
221272
221272
|
}
|
|
221273
221273
|
function computeFingerprintFromMessages(messages) {
|
|
221274
221274
|
const firstMessageText = extractFirstMessageText(messages);
|
|
221275
|
-
return computeFingerprint(firstMessageText, { VERSION: "0.2.
|
|
221275
|
+
return computeFingerprint(firstMessageText, { VERSION: "0.2.78", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION);
|
|
221276
221276
|
}
|
|
221277
221277
|
var FINGERPRINT_SALT = "59cf53e54c78";
|
|
221278
221278
|
var init_fingerprint = () => {};
|
|
@@ -221314,7 +221314,7 @@ async function sideQuery(opts) {
|
|
|
221314
221314
|
betas.push(STRUCTURED_OUTPUTS_BETA_HEADER);
|
|
221315
221315
|
}
|
|
221316
221316
|
const messageText = extractFirstUserMessageText(messages);
|
|
221317
|
-
const fingerprint = computeFingerprint(messageText, { VERSION: "0.2.
|
|
221317
|
+
const fingerprint = computeFingerprint(messageText, { VERSION: "0.2.78", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION);
|
|
221318
221318
|
const attributionHeader = getAttributionHeader(fingerprint);
|
|
221319
221319
|
const systemBlocks = [
|
|
221320
221320
|
attributionHeader ? { type: "text", text: attributionHeader } : null,
|
|
@@ -222438,7 +222438,7 @@ async function setupSdkMcpClients(sdkMcpConfigs, sendMcpMessage) {
|
|
|
222438
222438
|
const client2 = new Client({
|
|
222439
222439
|
name: "theus-code",
|
|
222440
222440
|
title: "Theus",
|
|
222441
|
-
version: { VERSION: "0.2.
|
|
222441
|
+
version: { VERSION: "0.2.78", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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",
|
|
222442
222442
|
description: "Theus's agentic coding tool",
|
|
222443
222443
|
websiteUrl: PRODUCT_URL
|
|
222444
222444
|
}, {
|
|
@@ -222792,7 +222792,7 @@ var init_client5 = __esm(() => {
|
|
|
222792
222792
|
const client2 = new Client({
|
|
222793
222793
|
name: "theus-code",
|
|
222794
222794
|
title: "Theus",
|
|
222795
|
-
version: { VERSION: "0.2.
|
|
222795
|
+
version: { VERSION: "0.2.78", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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",
|
|
222796
222796
|
description: "Theus's agentic coding tool",
|
|
222797
222797
|
websiteUrl: PRODUCT_URL
|
|
222798
222798
|
}, {
|
|
@@ -242640,7 +242640,7 @@ async function initializeBetaTracing(resource) {
|
|
|
242640
242640
|
});
|
|
242641
242641
|
logs.setGlobalLoggerProvider(loggerProvider);
|
|
242642
242642
|
setLoggerProvider(loggerProvider);
|
|
242643
|
-
const eventLogger = logs.getLogger("com.theus.theus_code.events", { VERSION: "0.2.
|
|
242643
|
+
const eventLogger = logs.getLogger("com.theus.theus_code.events", { VERSION: "0.2.78", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION);
|
|
242644
242644
|
setEventLogger(eventLogger);
|
|
242645
242645
|
process.on("beforeExit", async () => {
|
|
242646
242646
|
await loggerProvider?.forceFlush();
|
|
@@ -242680,7 +242680,7 @@ async function initializeTelemetry() {
|
|
|
242680
242680
|
const platform4 = getPlatform();
|
|
242681
242681
|
const baseAttributes = {
|
|
242682
242682
|
[ATTR_SERVICE_NAME]: "theus-code",
|
|
242683
|
-
[ATTR_SERVICE_VERSION]: { VERSION: "0.2.
|
|
242683
|
+
[ATTR_SERVICE_VERSION]: { VERSION: "0.2.78", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
|
|
242684
242684
|
};
|
|
242685
242685
|
if (platform4 === "wsl") {
|
|
242686
242686
|
const wslVersion = getWslVersion();
|
|
@@ -242725,7 +242725,7 @@ async function initializeTelemetry() {
|
|
|
242725
242725
|
} catch {}
|
|
242726
242726
|
};
|
|
242727
242727
|
registerCleanup(shutdownTelemetry2);
|
|
242728
|
-
return meterProvider2.getMeter("com.theus.theus_code", { VERSION: "0.2.
|
|
242728
|
+
return meterProvider2.getMeter("com.theus.theus_code", { VERSION: "0.2.78", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION);
|
|
242729
242729
|
}
|
|
242730
242730
|
const meterProvider = new MeterProvider({
|
|
242731
242731
|
resource,
|
|
@@ -242745,7 +242745,7 @@ async function initializeTelemetry() {
|
|
|
242745
242745
|
});
|
|
242746
242746
|
logs.setGlobalLoggerProvider(loggerProvider);
|
|
242747
242747
|
setLoggerProvider(loggerProvider);
|
|
242748
|
-
const eventLogger = logs.getLogger("com.theus.theus_code.events", { VERSION: "0.2.
|
|
242748
|
+
const eventLogger = logs.getLogger("com.theus.theus_code.events", { VERSION: "0.2.78", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION);
|
|
242749
242749
|
setEventLogger(eventLogger);
|
|
242750
242750
|
logForDebugging("[3P telemetry] Event logger set successfully");
|
|
242751
242751
|
process.on("beforeExit", async () => {
|
|
@@ -242807,7 +242807,7 @@ Current timeout: ${timeoutMs}ms
|
|
|
242807
242807
|
}
|
|
242808
242808
|
};
|
|
242809
242809
|
registerCleanup(shutdownTelemetry);
|
|
242810
|
-
return meterProvider.getMeter("com.theus.theus_code", { VERSION: "0.2.
|
|
242810
|
+
return meterProvider.getMeter("com.theus.theus_code", { VERSION: "0.2.78", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION);
|
|
242811
242811
|
}
|
|
242812
242812
|
async function flushTelemetry() {
|
|
242813
242813
|
const meterProvider = getMeterProvider();
|
|
@@ -243349,7 +243349,7 @@ async function installOrUpdateTheusPackage(channel2, specificVersion) {
|
|
|
243349
243349
|
return "install_failed";
|
|
243350
243350
|
}
|
|
243351
243351
|
const versionSpec = specificVersion ? specificVersion : channel2 === "stable" ? "stable" : "latest";
|
|
243352
|
-
const result = await execFileNoThrowWithCwd("npm", ["install", `${{ VERSION: "0.2.
|
|
243352
|
+
const result = await execFileNoThrowWithCwd("npm", ["install", `${{ VERSION: "0.2.78", BUILD_TIME: "1970-01-01T00:00:00.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 });
|
|
243353
243353
|
if (result.code !== 0) {
|
|
243354
243354
|
const error40 = new Error(`Failed to install Theus CLI package: ${result.stderr}`);
|
|
243355
243355
|
logError2(error40);
|
|
@@ -243495,9 +243495,9 @@ async function assertMinVersion() {
|
|
|
243495
243495
|
if (false) {}
|
|
243496
243496
|
try {
|
|
243497
243497
|
const versionConfig = await getDynamicConfig_BLOCKS_ON_INIT("theus_version_config", { minVersion: "0.0.0" });
|
|
243498
|
-
if (versionConfig.minVersion && lt({ VERSION: "0.2.
|
|
243498
|
+
if (versionConfig.minVersion && lt({ VERSION: "0.2.78", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
|
|
243499
243499
|
console.error(`
|
|
243500
|
-
It looks like your version of Theus (${{ VERSION: "0.2.
|
|
243500
|
+
It looks like your version of Theus (${{ VERSION: "0.2.78", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.
|
|
243501
243501
|
A newer version (${versionConfig.minVersion} or higher) is required to continue.
|
|
243502
243502
|
|
|
243503
243503
|
To update, please run:
|
|
@@ -243634,7 +243634,7 @@ async function getInstallationPrefix() {
|
|
|
243634
243634
|
return prefixResult.stdout.trim();
|
|
243635
243635
|
}
|
|
243636
243636
|
function getGlobalInstallPackageManager() {
|
|
243637
|
-
if ({ VERSION: "0.2.
|
|
243637
|
+
if ({ VERSION: "0.2.78", BUILD_TIME: "1970-01-01T00:00:00.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") {
|
|
243638
243638
|
return "npm";
|
|
243639
243639
|
}
|
|
243640
243640
|
return env3.isRunningWithBun() ? "bun" : "npm";
|
|
@@ -243659,7 +243659,7 @@ async function checkGlobalInstallPermissions() {
|
|
|
243659
243659
|
}
|
|
243660
243660
|
async function getLatestVersion(channel2) {
|
|
243661
243661
|
const npmTag = channel2 === "stable" ? "stable" : "latest";
|
|
243662
|
-
const result = await execFileNoThrowWithCwd("npm", ["view", `${{ VERSION: "0.2.
|
|
243662
|
+
const result = await execFileNoThrowWithCwd("npm", ["view", `${{ VERSION: "0.2.78", BUILD_TIME: "1970-01-01T00:00:00.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() });
|
|
243663
243663
|
if (result.code !== 0) {
|
|
243664
243664
|
logForDebugging(`npm view failed with code ${result.code}`);
|
|
243665
243665
|
if (result.stderr) {
|
|
@@ -243675,7 +243675,7 @@ async function getLatestVersion(channel2) {
|
|
|
243675
243675
|
return result.stdout.trim();
|
|
243676
243676
|
}
|
|
243677
243677
|
async function getNpmDistTags() {
|
|
243678
|
-
const result = await execFileNoThrowWithCwd("npm", ["view", { VERSION: "0.2.
|
|
243678
|
+
const result = await execFileNoThrowWithCwd("npm", ["view", { VERSION: "0.2.78", BUILD_TIME: "1970-01-01T00:00:00.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() });
|
|
243679
243679
|
if (result.code !== 0) {
|
|
243680
243680
|
logForDebugging(`npm view dist-tags failed with code ${result.code}`);
|
|
243681
243681
|
return { latest: null, stable: null };
|
|
@@ -243715,7 +243715,7 @@ async function installGlobalPackage(specificVersion) {
|
|
|
243715
243715
|
logError2(new AutoUpdaterError("Another process is currently installing an update"));
|
|
243716
243716
|
logEvent("theus_auto_updater_lock_contention", {
|
|
243717
243717
|
pid: process.pid,
|
|
243718
|
-
currentVersion: { VERSION: "0.2.
|
|
243718
|
+
currentVersion: { VERSION: "0.2.78", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
|
|
243719
243719
|
});
|
|
243720
243720
|
return "in_progress";
|
|
243721
243721
|
}
|
|
@@ -243724,7 +243724,7 @@ async function installGlobalPackage(specificVersion) {
|
|
|
243724
243724
|
if (!env3.isRunningWithBun() && env3.isNpmFromWindowsPath()) {
|
|
243725
243725
|
logError2(new Error("Windows NPM detected in WSL environment"));
|
|
243726
243726
|
logEvent("theus_auto_updater_windows_npm_in_wsl", {
|
|
243727
|
-
currentVersion: { VERSION: "0.2.
|
|
243727
|
+
currentVersion: { VERSION: "0.2.78", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
|
|
243728
243728
|
});
|
|
243729
243729
|
console.error(`
|
|
243730
243730
|
Error: Windows NPM detected in WSL
|
|
@@ -243743,7 +243743,7 @@ To fix this issue:
|
|
|
243743
243743
|
if (!hasPermissions) {
|
|
243744
243744
|
return "no_permissions";
|
|
243745
243745
|
}
|
|
243746
|
-
const packageSpec = specificVersion ? `${{ VERSION: "0.2.
|
|
243746
|
+
const packageSpec = specificVersion ? `${{ VERSION: "0.2.78", BUILD_TIME: "1970-01-01T00:00:00.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.78", BUILD_TIME: "1970-01-01T00:00:00.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;
|
|
243747
243747
|
const packageManager = getGlobalInstallPackageManager();
|
|
243748
243748
|
const installResult = await execFileNoThrowWithCwd(packageManager, ["install", "-g", packageSpec], { cwd: homedir20() });
|
|
243749
243749
|
if (installResult.code !== 0) {
|
|
@@ -244071,8 +244071,8 @@ async function detectMultipleInstallations() {
|
|
|
244071
244071
|
installations.push({ type: "npm-local", path: localPath });
|
|
244072
244072
|
}
|
|
244073
244073
|
const packagesToCheck = ["@theus-ai/theus-code"];
|
|
244074
|
-
if ({ VERSION: "0.2.
|
|
244075
|
-
packagesToCheck.push({ VERSION: "0.2.
|
|
244074
|
+
if ({ VERSION: "0.2.78", BUILD_TIME: "1970-01-01T00:00:00.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.78", BUILD_TIME: "1970-01-01T00:00:00.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") {
|
|
244075
|
+
packagesToCheck.push({ VERSION: "0.2.78", BUILD_TIME: "1970-01-01T00:00:00.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);
|
|
244076
244076
|
}
|
|
244077
244077
|
const npmResult = await execFileNoThrow("npm", [
|
|
244078
244078
|
"-g",
|
|
@@ -244255,7 +244255,7 @@ function detectLinuxGlobPatternWarnings() {
|
|
|
244255
244255
|
}
|
|
244256
244256
|
async function getDoctorDiagnostic() {
|
|
244257
244257
|
const installationType = await getCurrentInstallationType();
|
|
244258
|
-
const version2 = { VERSION: "0.2.
|
|
244258
|
+
const version2 = { VERSION: "0.2.78", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.78", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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";
|
|
244259
244259
|
const installationPath = await getInstallationPath();
|
|
244260
244260
|
const invokedBinary = getInvokedBinary();
|
|
244261
244261
|
const multipleInstallations = await detectMultipleInstallations();
|
|
@@ -244267,8 +244267,8 @@ async function getDoctorDiagnostic() {
|
|
|
244267
244267
|
for (const install of npmInstalls) {
|
|
244268
244268
|
if (install.type === "npm-global") {
|
|
244269
244269
|
let uninstallCmd = "npm -g uninstall @theus-ai/theus-code";
|
|
244270
|
-
if ({ VERSION: "0.2.
|
|
244271
|
-
uninstallCmd += ` && npm -g uninstall ${{ VERSION: "0.2.
|
|
244270
|
+
if ({ VERSION: "0.2.78", BUILD_TIME: "1970-01-01T00:00:00.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.78", BUILD_TIME: "1970-01-01T00:00:00.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") {
|
|
244271
|
+
uninstallCmd += ` && npm -g uninstall ${{ VERSION: "0.2.78", BUILD_TIME: "1970-01-01T00:00:00.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}`;
|
|
244272
244272
|
}
|
|
244273
244273
|
warnings.push({
|
|
244274
244274
|
issue: `Leftover npm global installation at ${install.path}`,
|
|
@@ -245079,8 +245079,8 @@ async function updateLatest(channelOrVersion, forceReinstall = false) {
|
|
|
245079
245079
|
const maxVersion = await getMaxVersion();
|
|
245080
245080
|
if (maxVersion && gt(version2, maxVersion)) {
|
|
245081
245081
|
logForDebugging(`Native installer: maxVersion ${maxVersion} is set, capping update from ${version2} to ${maxVersion}`);
|
|
245082
|
-
if (gte({ VERSION: "0.2.
|
|
245083
|
-
logForDebugging(`Native installer: current version ${{ VERSION: "0.2.
|
|
245082
|
+
if (gte({ VERSION: "0.2.78", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
|
|
245083
|
+
logForDebugging(`Native installer: current version ${{ VERSION: "0.2.78", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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`);
|
|
245084
245084
|
logEvent("theus_native_update_skipped_max_version", {
|
|
245085
245085
|
latency_ms: Date.now() - startTime2,
|
|
245086
245086
|
max_version: maxVersion,
|
|
@@ -245091,7 +245091,7 @@ async function updateLatest(channelOrVersion, forceReinstall = false) {
|
|
|
245091
245091
|
version2 = maxVersion;
|
|
245092
245092
|
}
|
|
245093
245093
|
}
|
|
245094
|
-
if (!forceReinstall && version2 === { VERSION: "0.2.
|
|
245094
|
+
if (!forceReinstall && version2 === { VERSION: "0.2.78", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
|
|
245095
245095
|
logForDebugging(`Found ${version2} at ${executablePath}, skipping install`);
|
|
245096
245096
|
logEvent("theus_native_update_complete", {
|
|
245097
245097
|
latency_ms: Date.now() - startTime2,
|
|
@@ -245841,8 +245841,8 @@ async function cleanupNpmInstallations() {
|
|
|
245841
245841
|
} else if (codePackageResult.error) {
|
|
245842
245842
|
errors4.push(codePackageResult.error);
|
|
245843
245843
|
}
|
|
245844
|
-
if ({ VERSION: "0.2.
|
|
245845
|
-
const macroPackageResult = await attemptNpmUninstall({ VERSION: "0.2.
|
|
245844
|
+
if ({ VERSION: "0.2.78", BUILD_TIME: "1970-01-01T00:00:00.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.78", BUILD_TIME: "1970-01-01T00:00:00.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") {
|
|
245845
|
+
const macroPackageResult = await attemptNpmUninstall({ VERSION: "0.2.78", BUILD_TIME: "1970-01-01T00:00:00.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);
|
|
245846
245846
|
if (macroPackageResult.success) {
|
|
245847
245847
|
removed++;
|
|
245848
245848
|
if (macroPackageResult.warning) {
|
|
@@ -256259,6 +256259,15 @@ var init_ConsoleOAuthFlow = __esm(() => {
|
|
|
256259
256259
|
var NOVEDADES;
|
|
256260
256260
|
var init_data = __esm(() => {
|
|
256261
256261
|
NOVEDADES = [
|
|
256262
|
+
{
|
|
256263
|
+
version: "v0.2.78",
|
|
256264
|
+
fecha: "2026-08-14",
|
|
256265
|
+
titulo: "Al revisar la memoria importada, Enter contin\xFAa",
|
|
256266
|
+
puntos: [
|
|
256267
|
+
"Cuando tra\xEDas tu memoria, la pantalla te la mostraba pero el bot\xF3n de guardar estaba al final de la lista: con sesenta notas hab\xEDa que bajar sesenta veces para encontrarlo, y mientras tanto Enter solo activaba y quitaba notas. Ahora la confirmaci\xF3n est\xE1 arriba y Enter contin\xFAa de una; bajar sirve para afinar qu\xE9 guardas.",
|
|
256268
|
+
"Adem\xE1s, cada nota importada vuelve a mostrar su t\xEDtulo en vez del texto entero, que es lo que hac\xEDa ilegible una lista larga."
|
|
256269
|
+
]
|
|
256270
|
+
},
|
|
256262
256271
|
{
|
|
256263
256272
|
version: "v0.2.77",
|
|
256264
256273
|
fecha: "2026-08-14",
|
|
@@ -300168,9 +300177,9 @@ function getTheusEnvMetadata() {
|
|
|
300168
300177
|
};
|
|
300169
300178
|
}
|
|
300170
300179
|
function getBuildAgeMinutes() {
|
|
300171
|
-
if (!{ VERSION: "0.2.
|
|
300180
|
+
if (!{ VERSION: "0.2.78", BUILD_TIME: "1970-01-01T00:00:00.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)
|
|
300172
300181
|
return;
|
|
300173
|
-
const buildTime = new Date({ VERSION: "0.2.
|
|
300182
|
+
const buildTime = new Date({ VERSION: "0.2.78", BUILD_TIME: "1970-01-01T00:00:00.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();
|
|
300174
300183
|
if (isNaN(buildTime))
|
|
300175
300184
|
return;
|
|
300176
300185
|
return Math.floor((Date.now() - buildTime) / 60000);
|
|
@@ -318475,7 +318484,7 @@ function getSimpleDoingTasksSection() {
|
|
|
318475
318484
|
];
|
|
318476
318485
|
const userHelpSubitems = [
|
|
318477
318486
|
`/help: Get help with using Theus`,
|
|
318478
|
-
`To give feedback, users should ${{ VERSION: "0.2.
|
|
318487
|
+
`To give feedback, users should ${{ VERSION: "0.2.78", BUILD_TIME: "1970-01-01T00:00:00.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}`
|
|
318479
318488
|
];
|
|
318480
318489
|
const items = [
|
|
318481
318490
|
`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.`,
|
|
@@ -329611,7 +329620,7 @@ async function submitTranscriptShare(messages, trigger, appearanceId) {
|
|
|
329611
329620
|
} catch {}
|
|
329612
329621
|
const data = {
|
|
329613
329622
|
trigger,
|
|
329614
|
-
version: { VERSION: "0.2.
|
|
329623
|
+
version: { VERSION: "0.2.78", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
|
|
329615
329624
|
platform: process.platform,
|
|
329616
329625
|
transcript,
|
|
329617
329626
|
subagentTranscripts: Object.keys(subagentTranscripts).length > 0 ? subagentTranscripts : undefined,
|
|
@@ -329816,10 +329825,10 @@ Si el usuario indic\xF3 una duraci\xF3n, p\xE1sala en el par\xE1metro \`duration
|
|
|
329816
329825
|
|
|
329817
329826
|
// commands/issue/index.ts
|
|
329818
329827
|
function getCliVersion() {
|
|
329819
|
-
return { VERSION: "0.2.
|
|
329828
|
+
return { VERSION: "0.2.78", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.78", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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";
|
|
329820
329829
|
}
|
|
329821
329830
|
function getIssuesExplainer() {
|
|
329822
|
-
return { VERSION: "0.2.
|
|
329831
|
+
return { VERSION: "0.2.78", BUILD_TIME: "1970-01-01T00:00:00.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.78", BUILD_TIME: "1970-01-01T00:00:00.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";
|
|
329823
329832
|
}
|
|
329824
329833
|
function getActiveModelLabel() {
|
|
329825
329834
|
try {
|
|
@@ -332605,7 +332614,7 @@ function buildPrimarySection() {
|
|
|
332605
332614
|
});
|
|
332606
332615
|
return [{
|
|
332607
332616
|
label: "Version",
|
|
332608
|
-
value: { VERSION: "0.2.
|
|
332617
|
+
value: { VERSION: "0.2.78", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
|
|
332609
332618
|
}, {
|
|
332610
332619
|
label: "Session name",
|
|
332611
332620
|
value: nameValue
|
|
@@ -336421,7 +336430,7 @@ function Config({
|
|
|
336421
336430
|
}
|
|
336422
336431
|
})
|
|
336423
336432
|
}) : showSubmenu === "ChannelDowngrade" ? /* @__PURE__ */ jsx_runtime189.jsx(ChannelDowngradeDialog, {
|
|
336424
|
-
currentVersion: { VERSION: "0.2.
|
|
336433
|
+
currentVersion: { VERSION: "0.2.78", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
|
|
336425
336434
|
onChoice: (choice) => {
|
|
336426
336435
|
setShowSubmenu(null);
|
|
336427
336436
|
setTabsHidden(false);
|
|
@@ -336433,7 +336442,7 @@ function Config({
|
|
|
336433
336442
|
autoUpdatesChannel: "stable"
|
|
336434
336443
|
};
|
|
336435
336444
|
if (choice === "stay") {
|
|
336436
|
-
newSettings.minimumVersion = { VERSION: "0.2.
|
|
336445
|
+
newSettings.minimumVersion = { VERSION: "0.2.78", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION;
|
|
336437
336446
|
}
|
|
336438
336447
|
updateSettingsForSource("userSettings", newSettings);
|
|
336439
336448
|
setSettingsData((prev_27) => ({
|
|
@@ -343792,7 +343801,7 @@ function HelpV2(t0) {
|
|
|
343792
343801
|
let t6;
|
|
343793
343802
|
if ($2[31] !== tabs) {
|
|
343794
343803
|
t6 = /* @__PURE__ */ jsx_runtime215.jsx(Tabs, {
|
|
343795
|
-
title: `Theus v${{ VERSION: "0.2.
|
|
343804
|
+
title: `Theus v${{ VERSION: "0.2.78", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION}`,
|
|
343796
343805
|
color: "professionalBlue",
|
|
343797
343806
|
defaultTab: "general",
|
|
343798
343807
|
children: tabs
|
|
@@ -362613,7 +362622,7 @@ function Onboarding({
|
|
|
362613
362622
|
flexDirection: "column",
|
|
362614
362623
|
children: [
|
|
362615
362624
|
/* @__PURE__ */ jsx_runtime251.jsx(TheusBanner, {
|
|
362616
|
-
version: { VERSION: "0.2.
|
|
362625
|
+
version: { VERSION: "0.2.78", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
|
|
362617
362626
|
}),
|
|
362618
362627
|
/* @__PURE__ */ jsx_runtime251.jsxs(ThemedBox_default, {
|
|
362619
362628
|
flexDirection: "column",
|
|
@@ -368000,7 +368009,7 @@ var init_Messages = __esm(() => {
|
|
|
368000
368009
|
let t1;
|
|
368001
368010
|
if ($2[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
368002
368011
|
t1 = /* @__PURE__ */ jsx_runtime264.jsx(TheusSessionHeader, {
|
|
368003
|
-
version: { VERSION: "0.2.
|
|
368012
|
+
version: { VERSION: "0.2.78", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
|
|
368004
368013
|
});
|
|
368005
368014
|
$2[0] = t1;
|
|
368006
368015
|
} else {
|
|
@@ -377361,8 +377370,8 @@ function MemoryReview({
|
|
|
377361
377370
|
const borderStyle = ascii ? "classic" : "round";
|
|
377362
377371
|
const { columns } = useTerminalSize();
|
|
377363
377372
|
const [facts, setFacts] = React95.useState(initialFacts);
|
|
377364
|
-
const [focusValue, setFocusValue] = React95.useState(
|
|
377365
|
-
const [defaultFocus, setDefaultFocus] = React95.useState(
|
|
377373
|
+
const [focusValue, setFocusValue] = React95.useState(SAVE);
|
|
377374
|
+
const [defaultFocus, setDefaultFocus] = React95.useState(SAVE);
|
|
377366
377375
|
const [listKey, setListKey] = React95.useState(0);
|
|
377367
377376
|
const [editingIdx, setEditingIdx] = React95.useState(null);
|
|
377368
377377
|
const [draft, setDraft] = React95.useState("");
|
|
@@ -377466,7 +377475,7 @@ function MemoryReview({
|
|
|
377466
377475
|
description: "Salir sin guardar nada"
|
|
377467
377476
|
}
|
|
377468
377477
|
];
|
|
377469
|
-
const footer = editing ? ascii ? "Enter guardar | Esc cancelar" : "Enter guardar \xB7 Esc cancelar" : ascii ? "Enter
|
|
377478
|
+
const footer = editing ? ascii ? "Enter guardar | Esc cancelar" : "Enter guardar \xB7 Esc cancelar" : ascii ? "Enter confirmar | ARRIBA/ABAJO revisar | e editar | x borrar | Esc salir" : "Enter confirmar \xB7 \u2191\u2193 revisar \xB7 e editar \xB7 x borrar \xB7 Esc salir";
|
|
377470
377479
|
return /* @__PURE__ */ jsx_runtime275.jsxs(ThemedBox_default, {
|
|
377471
377480
|
flexDirection: "column",
|
|
377472
377481
|
gap: 1,
|
|
@@ -377490,7 +377499,7 @@ function MemoryReview({
|
|
|
377490
377499
|
}),
|
|
377491
377500
|
/* @__PURE__ */ jsx_runtime275.jsx(ThemedText, {
|
|
377492
377501
|
color: gray2,
|
|
377493
|
-
children: editing ? "Edita el texto del hecho. Enter guarda, Esc cancela." : "Enter
|
|
377502
|
+
children: editing ? "Edita el texto del hecho. Enter guarda, Esc cancela." : "Enter guarda lo que est\xE1 activo. Baja para revisar hecho a hecho: Enter activa o quita, e edita, x borra."
|
|
377494
377503
|
}),
|
|
377495
377504
|
editing ? /* @__PURE__ */ jsx_runtime275.jsxs(ThemedBox_default, {
|
|
377496
377505
|
flexDirection: "column",
|
|
@@ -377528,7 +377537,7 @@ function MemoryReview({
|
|
|
377528
377537
|
borderColor: gray2,
|
|
377529
377538
|
paddingX: 1,
|
|
377530
377539
|
children: /* @__PURE__ */ jsx_runtime275.jsx(Select, {
|
|
377531
|
-
options: [...
|
|
377540
|
+
options: [...actions, ...factOptions],
|
|
377532
377541
|
layout: "expanded",
|
|
377533
377542
|
visibleOptionCount: Math.min(facts.length + 2, 12),
|
|
377534
377543
|
defaultFocusValue: defaultFocus,
|
|
@@ -378715,6 +378724,7 @@ function ImportContext({
|
|
|
378715
378724
|
const directos = await leerHechosDirectos(yaDestiladas);
|
|
378716
378725
|
if (directos.length > 0) {
|
|
378717
378726
|
setFacts(directos.map((h2) => ({
|
|
378727
|
+
title: h2.titulo,
|
|
378718
378728
|
text: h2.texto,
|
|
378719
378729
|
...h2.categoria ? { category: h2.categoria } : {},
|
|
378720
378730
|
kept: true
|
|
@@ -399868,7 +399878,7 @@ async function captureMemoryDiagnostics(trigger, dumpNumber = 0) {
|
|
|
399868
399878
|
smapsRollup,
|
|
399869
399879
|
platform: process.platform,
|
|
399870
399880
|
nodeVersion: process.version,
|
|
399871
|
-
ccVersion: { VERSION: "0.2.
|
|
399881
|
+
ccVersion: { VERSION: "0.2.78", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
|
|
399872
399882
|
};
|
|
399873
399883
|
}
|
|
399874
399884
|
async function performHeapDump(trigger = "manual", dumpNumber = 0) {
|
|
@@ -400629,7 +400639,7 @@ var init_bridge_kick = __esm(() => {
|
|
|
400629
400639
|
var call69 = async () => {
|
|
400630
400640
|
return {
|
|
400631
400641
|
type: "text",
|
|
400632
|
-
value: { VERSION: "0.2.
|
|
400642
|
+
value: { VERSION: "0.2.78", BUILD_TIME: "1970-01-01T00:00:00.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.78", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.78", BUILD_TIME: "1970-01-01T00:00:00.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.78", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
|
|
400633
400643
|
};
|
|
400634
400644
|
}, version2, version_default;
|
|
400635
400645
|
var init_version = __esm(() => {
|
|
@@ -403230,7 +403240,7 @@ var SECRET_NAME_PATTERN, EXTRA_ENV_ALLOWLIST, REDACTED2 = "\u2039oculto\u203A",
|
|
|
403230
403240
|
const lines = [];
|
|
403231
403241
|
lines.push("## Entorno de ejecuci\xF3n");
|
|
403232
403242
|
lines.push("");
|
|
403233
|
-
const version3 = { VERSION: "0.2.
|
|
403243
|
+
const version3 = { VERSION: "0.2.78", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.78", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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";
|
|
403234
403244
|
lines.push(`- Versi\xF3n de Theus: ${version3}`);
|
|
403235
403245
|
lines.push(`- Directorio de trabajo: ${getCwd()}`);
|
|
403236
403246
|
lines.push(`- \xBFRepositorio git?: ${isGit ? "s\xED" : "no"}`);
|
|
@@ -405771,13 +405781,13 @@ async function updateReleaseBundle() {
|
|
|
405771
405781
|
await gracefulShutdown(1);
|
|
405772
405782
|
return;
|
|
405773
405783
|
}
|
|
405774
|
-
if (gte({ VERSION: "0.2.
|
|
405775
|
-
writeToStdout(source_default.green(`Theus ya est\xE1 al d\xEDa (${{ VERSION: "0.2.
|
|
405784
|
+
if (gte({ VERSION: "0.2.78", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
|
|
405785
|
+
writeToStdout(source_default.green(`Theus ya est\xE1 al d\xEDa (${{ VERSION: "0.2.78", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION})`) + `
|
|
405776
405786
|
`);
|
|
405777
405787
|
await gracefulShutdown(0);
|
|
405778
405788
|
return;
|
|
405779
405789
|
}
|
|
405780
|
-
writeToStdout(`Nueva versi\xF3n disponible: ${latest} (actual: ${{ VERSION: "0.2.
|
|
405790
|
+
writeToStdout(`Nueva versi\xF3n disponible: ${latest} (actual: ${{ VERSION: "0.2.78", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION})
|
|
405781
405791
|
`);
|
|
405782
405792
|
writeToStdout(`Instalando la actualizaci\xF3n desde theus.pe/dl...
|
|
405783
405793
|
`);
|
|
@@ -405811,7 +405821,7 @@ async function updateReleaseBundle() {
|
|
|
405811
405821
|
return;
|
|
405812
405822
|
}
|
|
405813
405823
|
cpSync(staged, bundleDir, { recursive: true, force: true });
|
|
405814
|
-
writeToStdout(source_default.green(`Actualizado correctamente de ${{ VERSION: "0.2.
|
|
405824
|
+
writeToStdout(source_default.green(`Actualizado correctamente de ${{ VERSION: "0.2.78", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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}`) + `
|
|
405815
405825
|
`);
|
|
405816
405826
|
await regenerateCompletionCache();
|
|
405817
405827
|
} finally {
|
|
@@ -405824,7 +405834,7 @@ async function updateReleaseBundle() {
|
|
|
405824
405834
|
async function update() {
|
|
405825
405835
|
logEvent("theus_update_check", {});
|
|
405826
405836
|
await updateNaupa();
|
|
405827
|
-
writeToStdout(`Versi\xF3n actual: ${{ VERSION: "0.2.
|
|
405837
|
+
writeToStdout(`Versi\xF3n actual: ${{ VERSION: "0.2.78", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION}
|
|
405828
405838
|
`);
|
|
405829
405839
|
const channel2 = getInitialSettings()?.autoUpdatesChannel ?? "latest";
|
|
405830
405840
|
writeToStdout(`Buscando actualizaciones en el canal ${channel2}...
|
|
@@ -405903,8 +405913,8 @@ async function update() {
|
|
|
405903
405913
|
writeToStdout(`Theus est\xE1 gestionado por Homebrew.
|
|
405904
405914
|
`);
|
|
405905
405915
|
const latest = await getLatestVersion(channel2);
|
|
405906
|
-
if (latest && !gte({ VERSION: "0.2.
|
|
405907
|
-
writeToStdout(`Actualizaci\xF3n disponible: ${{ VERSION: "0.2.
|
|
405916
|
+
if (latest && !gte({ VERSION: "0.2.78", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
|
|
405917
|
+
writeToStdout(`Actualizaci\xF3n disponible: ${{ VERSION: "0.2.78", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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}
|
|
405908
405918
|
`);
|
|
405909
405919
|
writeToStdout(`
|
|
405910
405920
|
`);
|
|
@@ -405920,8 +405930,8 @@ async function update() {
|
|
|
405920
405930
|
writeToStdout(`Theus est\xE1 gestionado por winget.
|
|
405921
405931
|
`);
|
|
405922
405932
|
const latest = await getLatestVersion(channel2);
|
|
405923
|
-
if (latest && !gte({ VERSION: "0.2.
|
|
405924
|
-
writeToStdout(`Actualizaci\xF3n disponible: ${{ VERSION: "0.2.
|
|
405933
|
+
if (latest && !gte({ VERSION: "0.2.78", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
|
|
405934
|
+
writeToStdout(`Actualizaci\xF3n disponible: ${{ VERSION: "0.2.78", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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}
|
|
405925
405935
|
`);
|
|
405926
405936
|
writeToStdout(`
|
|
405927
405937
|
`);
|
|
@@ -405937,8 +405947,8 @@ async function update() {
|
|
|
405937
405947
|
writeToStdout(`Theus est\xE1 gestionado por apk.
|
|
405938
405948
|
`);
|
|
405939
405949
|
const latest = await getLatestVersion(channel2);
|
|
405940
|
-
if (latest && !gte({ VERSION: "0.2.
|
|
405941
|
-
writeToStdout(`Actualizaci\xF3n disponible: ${{ VERSION: "0.2.
|
|
405950
|
+
if (latest && !gte({ VERSION: "0.2.78", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
|
|
405951
|
+
writeToStdout(`Actualizaci\xF3n disponible: ${{ VERSION: "0.2.78", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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}
|
|
405942
405952
|
`);
|
|
405943
405953
|
writeToStdout(`
|
|
405944
405954
|
`);
|
|
@@ -406003,11 +406013,11 @@ async function update() {
|
|
|
406003
406013
|
`);
|
|
406004
406014
|
await gracefulShutdown(1);
|
|
406005
406015
|
}
|
|
406006
|
-
if (result.latestVersion === { VERSION: "0.2.
|
|
406007
|
-
writeToStdout(source_default.green(`Theus ya est\xE1 al d\xEDa (${{ VERSION: "0.2.
|
|
406016
|
+
if (result.latestVersion === { VERSION: "0.2.78", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION) {
|
|
406017
|
+
writeToStdout(source_default.green(`Theus ya est\xE1 al d\xEDa (${{ VERSION: "0.2.78", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION})`) + `
|
|
406008
406018
|
`);
|
|
406009
406019
|
} else {
|
|
406010
|
-
writeToStdout(source_default.green(`Actualizado correctamente de ${{ VERSION: "0.2.
|
|
406020
|
+
writeToStdout(source_default.green(`Actualizado correctamente de ${{ VERSION: "0.2.78", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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}`) + `
|
|
406011
406021
|
`);
|
|
406012
406022
|
await regenerateCompletionCache();
|
|
406013
406023
|
}
|
|
@@ -406026,9 +406036,9 @@ async function update() {
|
|
|
406026
406036
|
await removeInstalledSymlink();
|
|
406027
406037
|
}
|
|
406028
406038
|
logForDebugging("update: Checking npm registry for latest version");
|
|
406029
|
-
logForDebugging(`update: Package URL: ${{ VERSION: "0.2.
|
|
406039
|
+
logForDebugging(`update: Package URL: ${{ VERSION: "0.2.78", BUILD_TIME: "1970-01-01T00:00:00.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}`);
|
|
406030
406040
|
const npmTag = channel2 === "stable" ? "stable" : "latest";
|
|
406031
|
-
const npmCommand = `npm view ${{ VERSION: "0.2.
|
|
406041
|
+
const npmCommand = `npm view ${{ VERSION: "0.2.78", BUILD_TIME: "1970-01-01T00:00:00.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`;
|
|
406032
406042
|
logForDebugging(`update: Running: ${npmCommand}`);
|
|
406033
406043
|
const latestVersion = await getLatestVersion(channel2);
|
|
406034
406044
|
logForDebugging(`update: Latest version from npm: ${latestVersion || "FAILED"}`);
|
|
@@ -406048,7 +406058,7 @@ async function update() {
|
|
|
406048
406058
|
`);
|
|
406049
406059
|
process.stderr.write(` \u2022 Un proxy o firewall corporativo bloquea npm
|
|
406050
406060
|
`);
|
|
406051
|
-
if ({ VERSION: "0.2.
|
|
406061
|
+
if ({ VERSION: "0.2.78", BUILD_TIME: "1970-01-01T00:00:00.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.78", BUILD_TIME: "1970-01-01T00:00:00.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")) {
|
|
406052
406062
|
process.stderr.write(` \u2022 Compilaci\xF3n interna/de desarrollo no publicada en npm
|
|
406053
406063
|
`);
|
|
406054
406064
|
}
|
|
@@ -406060,19 +406070,19 @@ async function update() {
|
|
|
406060
406070
|
`);
|
|
406061
406071
|
process.stderr.write(` \u2022 Ejecuta con el flag --debug para m\xE1s detalle
|
|
406062
406072
|
`);
|
|
406063
|
-
const packageName = { VERSION: "0.2.
|
|
406073
|
+
const packageName = { VERSION: "0.2.78", BUILD_TIME: "1970-01-01T00:00:00.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";
|
|
406064
406074
|
process.stderr.write(` \u2022 Comprueba a mano: npm view ${packageName} version
|
|
406065
406075
|
`);
|
|
406066
406076
|
process.stderr.write(` \u2022 Comprueba si te falta iniciar sesi\xF3n: npm whoami
|
|
406067
406077
|
`);
|
|
406068
406078
|
await gracefulShutdown(1);
|
|
406069
406079
|
}
|
|
406070
|
-
if (gte({ VERSION: "0.2.
|
|
406071
|
-
writeToStdout(source_default.green(`Theus ya est\xE1 al d\xEDa (${{ VERSION: "0.2.
|
|
406080
|
+
if (gte({ VERSION: "0.2.78", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
|
|
406081
|
+
writeToStdout(source_default.green(`Theus ya est\xE1 al d\xEDa (${{ VERSION: "0.2.78", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION})`) + `
|
|
406072
406082
|
`);
|
|
406073
406083
|
await gracefulShutdown(0);
|
|
406074
406084
|
}
|
|
406075
|
-
writeToStdout(`Nueva versi\xF3n disponible: ${latestVersion} (actual: ${{ VERSION: "0.2.
|
|
406085
|
+
writeToStdout(`Nueva versi\xF3n disponible: ${latestVersion} (actual: ${{ VERSION: "0.2.78", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION})
|
|
406076
406086
|
`);
|
|
406077
406087
|
writeToStdout(`Instalando la actualizaci\xF3n...
|
|
406078
406088
|
`);
|
|
@@ -406117,7 +406127,7 @@ async function update() {
|
|
|
406117
406127
|
logForDebugging(`update: Installation status: ${status2}`);
|
|
406118
406128
|
switch (status2) {
|
|
406119
406129
|
case "success":
|
|
406120
|
-
writeToStdout(source_default.green(`Actualizado correctamente de ${{ VERSION: "0.2.
|
|
406130
|
+
writeToStdout(source_default.green(`Actualizado correctamente de ${{ VERSION: "0.2.78", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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}`) + `
|
|
406121
406131
|
`);
|
|
406122
406132
|
await regenerateCompletionCache();
|
|
406123
406133
|
break;
|
|
@@ -406127,7 +406137,7 @@ async function update() {
|
|
|
406127
406137
|
if (useLocalUpdate) {
|
|
406128
406138
|
process.stderr.write(`Prueba a actualizar a mano con:
|
|
406129
406139
|
`);
|
|
406130
|
-
process.stderr.write(` cd ~/.theus/local && npm update ${{ VERSION: "0.2.
|
|
406140
|
+
process.stderr.write(` cd ~/.theus/local && npm update ${{ VERSION: "0.2.78", BUILD_TIME: "1970-01-01T00:00:00.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}
|
|
406131
406141
|
`);
|
|
406132
406142
|
} else {
|
|
406133
406143
|
process.stderr.write(`Prueba con sudo o corrige los permisos de npm
|
|
@@ -406143,7 +406153,7 @@ async function update() {
|
|
|
406143
406153
|
if (useLocalUpdate) {
|
|
406144
406154
|
process.stderr.write(`Prueba a actualizar a mano con:
|
|
406145
406155
|
`);
|
|
406146
|
-
process.stderr.write(` cd ~/.theus/local && npm update ${{ VERSION: "0.2.
|
|
406156
|
+
process.stderr.write(` cd ~/.theus/local && npm update ${{ VERSION: "0.2.78", BUILD_TIME: "1970-01-01T00:00:00.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}
|
|
406147
406157
|
`);
|
|
406148
406158
|
} else {
|
|
406149
406159
|
process.stderr.write(`O p\xE1sate a la instalaci\xF3n nativa con: theus install
|
|
@@ -415568,7 +415578,7 @@ var init_sessionStorage = __esm(() => {
|
|
|
415568
415578
|
init_settings2();
|
|
415569
415579
|
init_slowOperations();
|
|
415570
415580
|
init_uuid();
|
|
415571
|
-
VERSION4 = { VERSION: "0.2.
|
|
415581
|
+
VERSION4 = { VERSION: "0.2.78", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION;
|
|
415572
415582
|
MAX_TOMBSTONE_REWRITE_BYTES = 50 * 1024 * 1024;
|
|
415573
415583
|
SKIP_FIRST_PROMPT_PATTERN2 = /^(?:\s*<[a-z][\w-]*[\s>]|\[Request interrupted by user[^\]]*\])/;
|
|
415574
415584
|
EPHEMERAL_PROGRESS_TYPES = new Set([
|
|
@@ -416773,7 +416783,7 @@ var init_filesystem = __esm(() => {
|
|
|
416773
416783
|
});
|
|
416774
416784
|
getBundledSkillsRoot = memoize_default(function getBundledSkillsRoot2() {
|
|
416775
416785
|
const nonce = randomBytes21(16).toString("hex");
|
|
416776
|
-
return join154(getTheusTempDir(), "bundled-skills", { VERSION: "0.2.
|
|
416786
|
+
return join154(getTheusTempDir(), "bundled-skills", { VERSION: "0.2.78", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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);
|
|
416777
416787
|
});
|
|
416778
416788
|
getResolvedWorkingDirPaths = memoize_default(getPathsForPermissionCheck);
|
|
416779
416789
|
});
|
|
@@ -428950,7 +428960,7 @@ async function handleMemories(state2) {
|
|
|
428950
428960
|
async function runProjectContextMcpServer() {
|
|
428951
428961
|
const projectRoot = process.env.THEUS_PROJECT_ROOT || process.cwd();
|
|
428952
428962
|
const state2 = new ProjectContextState(projectRoot);
|
|
428953
|
-
const server2 = new Server({ name: SERVER_NAME, version: { VERSION: "0.2.
|
|
428963
|
+
const server2 = new Server({ name: SERVER_NAME, version: { VERSION: "0.2.78", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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: {} } });
|
|
428954
428964
|
server2.setRequestHandler(ListToolsRequestSchema, async () => ({
|
|
428955
428965
|
tools: TOOL_DEFINITIONS.map((t) => ({
|
|
428956
428966
|
name: t.name,
|
|
@@ -431627,7 +431637,7 @@ async function runTitanFleetWorker(args) {
|
|
|
431627
431637
|
max_concurrency: maxConcurrency,
|
|
431628
431638
|
runtime: {
|
|
431629
431639
|
name: "theus-cli",
|
|
431630
|
-
version: { VERSION: "0.2.
|
|
431640
|
+
version: { VERSION: "0.2.78", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
|
|
431631
431641
|
}
|
|
431632
431642
|
});
|
|
431633
431643
|
const client2 = new TitanFleetClient({
|
|
@@ -433518,7 +433528,7 @@ function createBridgeLogger(options2) {
|
|
|
433518
433528
|
connectUrl = buildBridgeConnectUrl(environmentId, cachedIngressUrl);
|
|
433519
433529
|
regenerateQr(connectUrl);
|
|
433520
433530
|
if (verbose) {
|
|
433521
|
-
write(source_default.dim(`Remote Control`) + ` v${{ VERSION: "0.2.
|
|
433531
|
+
write(source_default.dim(`Remote Control`) + ` v${{ VERSION: "0.2.78", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION}
|
|
433522
433532
|
`);
|
|
433523
433533
|
}
|
|
433524
433534
|
if (verbose) {
|
|
@@ -434491,7 +434501,7 @@ function appendToLog(path19, message) {
|
|
|
434491
434501
|
cwd: getFsImplementation().cwd(),
|
|
434492
434502
|
userType: "external",
|
|
434493
434503
|
sessionId: getSessionId(),
|
|
434494
|
-
version: { VERSION: "0.2.
|
|
434504
|
+
version: { VERSION: "0.2.78", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
|
|
434495
434505
|
};
|
|
434496
434506
|
getLogWriter(path19).write(messageWithTimestamp);
|
|
434497
434507
|
}
|
|
@@ -435752,7 +435762,7 @@ Spawn mode for this project:
|
|
|
435752
435762
|
const api2 = createBridgeApiClient({
|
|
435753
435763
|
baseUrl,
|
|
435754
435764
|
getAccessToken: getBridgeAccessToken2,
|
|
435755
|
-
runnerVersion: { VERSION: "0.2.
|
|
435765
|
+
runnerVersion: { VERSION: "0.2.78", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
|
|
435756
435766
|
onDebug: logForDebugging,
|
|
435757
435767
|
onAuth401: handleOAuth401Error2,
|
|
435758
435768
|
getTrustedDeviceToken
|
|
@@ -435990,7 +436000,7 @@ async function runBridgeHeadless(opts, signal) {
|
|
|
435990
436000
|
const api2 = createBridgeApiClient({
|
|
435991
436001
|
baseUrl,
|
|
435992
436002
|
getAccessToken: opts.getAccessToken,
|
|
435993
|
-
runnerVersion: { VERSION: "0.2.
|
|
436003
|
+
runnerVersion: { VERSION: "0.2.78", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
|
|
435994
436004
|
onDebug: log2,
|
|
435995
436005
|
onAuth401: opts.onAuth401,
|
|
435996
436006
|
getTrustedDeviceToken
|
|
@@ -439087,7 +439097,7 @@ function buildSystemInitMessage(inputs) {
|
|
|
439087
439097
|
slash_commands: inputs.commands.filter((c5) => c5.userInvocable !== false).map((c5) => c5.name),
|
|
439088
439098
|
apiKeySource: getTheusApiKeyWithSource().source,
|
|
439089
439099
|
betas: getSdkBetas(),
|
|
439090
|
-
theus_code_version: { VERSION: "0.2.
|
|
439100
|
+
theus_code_version: { VERSION: "0.2.78", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
|
|
439091
439101
|
output_style: outputStyle2,
|
|
439092
439102
|
agents: inputs.agents.map((agent) => agent.agentType),
|
|
439093
439103
|
skills: inputs.skills.filter((s) => s.userInvocable !== false).map((skill) => skill.name),
|
|
@@ -439127,8 +439137,8 @@ async function getEnvLessBridgeConfig() {
|
|
|
439127
439137
|
}
|
|
439128
439138
|
async function checkEnvLessBridgeMinVersion() {
|
|
439129
439139
|
const cfg = await getEnvLessBridgeConfig();
|
|
439130
|
-
if (cfg.min_version && lt({ VERSION: "0.2.
|
|
439131
|
-
return `Your version of Theus (${{ VERSION: "0.2.
|
|
439140
|
+
if (cfg.min_version && lt({ VERSION: "0.2.78", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
|
|
439141
|
+
return `Your version of Theus (${{ VERSION: "0.2.78", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.
|
|
439132
439142
|
Version ${cfg.min_version} or higher is required. Run \`theus update\` to update.`;
|
|
439133
439143
|
}
|
|
439134
439144
|
return null;
|
|
@@ -441452,7 +441462,7 @@ async function initBridgeCore(params) {
|
|
|
441452
441462
|
const rawApi = createBridgeApiClient({
|
|
441453
441463
|
baseUrl,
|
|
441454
441464
|
getAccessToken,
|
|
441455
|
-
runnerVersion: { VERSION: "0.2.
|
|
441465
|
+
runnerVersion: { VERSION: "0.2.78", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
|
|
441456
441466
|
onDebug: logForDebugging,
|
|
441457
441467
|
onAuth401,
|
|
441458
441468
|
getTrustedDeviceToken
|
|
@@ -458093,7 +458103,7 @@ var init_useVoiceEnabled = __esm(() => {
|
|
|
458093
458103
|
function getSemverPart(version3) {
|
|
458094
458104
|
return `${import_semver11.major(version3, { loose: true })}.${import_semver11.minor(version3, { loose: true })}.${import_semver11.patch(version3, { loose: true })}`;
|
|
458095
458105
|
}
|
|
458096
|
-
function useUpdateNotification(updatedVersion, initialVersion = { VERSION: "0.2.
|
|
458106
|
+
function useUpdateNotification(updatedVersion, initialVersion = { VERSION: "0.2.78", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION) {
|
|
458097
458107
|
const [lastNotifiedSemver, setLastNotifiedSemver] = import_react235.useState(() => getSemverPart(initialVersion));
|
|
458098
458108
|
if (!updatedVersion) {
|
|
458099
458109
|
return null;
|
|
@@ -458133,7 +458143,7 @@ function AutoUpdater({
|
|
|
458133
458143
|
return;
|
|
458134
458144
|
}
|
|
458135
458145
|
if (false) {}
|
|
458136
|
-
const currentVersion = { VERSION: "0.2.
|
|
458146
|
+
const currentVersion = { VERSION: "0.2.78", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION;
|
|
458137
458147
|
const channel2 = getInitialSettings()?.autoUpdatesChannel ?? "latest";
|
|
458138
458148
|
let latestVersion = await getLatestVersion(channel2);
|
|
458139
458149
|
const isDisabled2 = isAutoUpdaterDisabled();
|
|
@@ -458268,7 +458278,7 @@ function AutoUpdater({
|
|
|
458268
458278
|
" ",
|
|
458269
458279
|
/* @__PURE__ */ jsx_runtime415.jsx(ThemedText, {
|
|
458270
458280
|
bold: true,
|
|
458271
|
-
children: hasLocalInstall ? `cd ~/.theus/local && npm update ${{ VERSION: "0.2.
|
|
458281
|
+
children: hasLocalInstall ? `cd ~/.theus/local && npm update ${{ VERSION: "0.2.78", BUILD_TIME: "1970-01-01T00:00:00.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.78", BUILD_TIME: "1970-01-01T00:00:00.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}`
|
|
458272
458282
|
})
|
|
458273
458283
|
]
|
|
458274
458284
|
})
|
|
@@ -458345,12 +458355,12 @@ function NativeAutoUpdater({
|
|
|
458345
458355
|
logEvent("theus_native_auto_updater_start", {});
|
|
458346
458356
|
try {
|
|
458347
458357
|
const maxVersion = await getMaxVersion();
|
|
458348
|
-
if (maxVersion && gt({ VERSION: "0.2.
|
|
458358
|
+
if (maxVersion && gt({ VERSION: "0.2.78", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
|
|
458349
458359
|
const msg = await getMaxVersionMessage();
|
|
458350
458360
|
setMaxVersionIssue(msg ?? "affects your version");
|
|
458351
458361
|
}
|
|
458352
458362
|
const result = await installLatest(channel2);
|
|
458353
|
-
const currentVersion = { VERSION: "0.2.
|
|
458363
|
+
const currentVersion = { VERSION: "0.2.78", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION;
|
|
458354
458364
|
const latencyMs = Date.now() - startTime2;
|
|
458355
458365
|
if (result.lockFailed) {
|
|
458356
458366
|
logEvent("theus_native_auto_updater_lock_contention", {
|
|
@@ -458487,17 +458497,17 @@ function PackageManagerAutoUpdater(t0) {
|
|
|
458487
458497
|
const maxVersion = await getMaxVersion();
|
|
458488
458498
|
if (maxVersion && latest && gt(latest, maxVersion)) {
|
|
458489
458499
|
logForDebugging(`PackageManagerAutoUpdater: maxVersion ${maxVersion} is set, capping update from ${latest} to ${maxVersion}`);
|
|
458490
|
-
if (gte({ VERSION: "0.2.
|
|
458491
|
-
logForDebugging(`PackageManagerAutoUpdater: current version ${{ VERSION: "0.2.
|
|
458500
|
+
if (gte({ VERSION: "0.2.78", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
|
|
458501
|
+
logForDebugging(`PackageManagerAutoUpdater: current version ${{ VERSION: "0.2.78", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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`);
|
|
458492
458502
|
setUpdateAvailable(false);
|
|
458493
458503
|
return;
|
|
458494
458504
|
}
|
|
458495
458505
|
latest = maxVersion;
|
|
458496
458506
|
}
|
|
458497
|
-
const hasUpdate = latest && !gte({ VERSION: "0.2.
|
|
458507
|
+
const hasUpdate = latest && !gte({ VERSION: "0.2.78", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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);
|
|
458498
458508
|
setUpdateAvailable(!!hasUpdate);
|
|
458499
458509
|
if (hasUpdate) {
|
|
458500
|
-
logForDebugging(`PackageManagerAutoUpdater: Update available ${{ VERSION: "0.2.
|
|
458510
|
+
logForDebugging(`PackageManagerAutoUpdater: Update available ${{ VERSION: "0.2.78", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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}`);
|
|
458501
458511
|
}
|
|
458502
458512
|
};
|
|
458503
458513
|
$2[0] = t1;
|
|
@@ -458531,7 +458541,7 @@ function PackageManagerAutoUpdater(t0) {
|
|
|
458531
458541
|
wrap: "truncate",
|
|
458532
458542
|
children: [
|
|
458533
458543
|
"versi\xF3n actual: ",
|
|
458534
|
-
{ VERSION: "0.2.
|
|
458544
|
+
{ VERSION: "0.2.78", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
|
|
458535
458545
|
]
|
|
458536
458546
|
});
|
|
458537
458547
|
$2[3] = verbose;
|
|
@@ -466394,7 +466404,7 @@ function buildStatusLineCommandInput(permissionMode2, exceeds200kTokens, setting
|
|
|
466394
466404
|
project_dir: getOriginalCwd(),
|
|
466395
466405
|
added_dirs: addedDirs
|
|
466396
466406
|
},
|
|
466397
|
-
version: { VERSION: "0.2.
|
|
466407
|
+
version: { VERSION: "0.2.78", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
|
|
466398
466408
|
output_style: {
|
|
466399
466409
|
name: outputStyleName
|
|
466400
466410
|
},
|
|
@@ -490717,7 +490727,7 @@ function completeOnboarding() {
|
|
|
490717
490727
|
saveGlobalConfig((current) => ({
|
|
490718
490728
|
...current,
|
|
490719
490729
|
hasCompletedOnboarding: true,
|
|
490720
|
-
lastOnboardingVersion: { VERSION: "0.2.
|
|
490730
|
+
lastOnboardingVersion: { VERSION: "0.2.78", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
|
|
490721
490731
|
}));
|
|
490722
490732
|
}
|
|
490723
490733
|
function showDialog(root2, renderer) {
|
|
@@ -497413,7 +497423,7 @@ function getRecentReleaseNotes(currentVersion, previousVersion, changelogContent
|
|
|
497413
497423
|
}
|
|
497414
497424
|
return [];
|
|
497415
497425
|
}
|
|
497416
|
-
async function checkForReleaseNotes(lastSeenVersion, currentVersion = { VERSION: "0.2.
|
|
497426
|
+
async function checkForReleaseNotes(lastSeenVersion, currentVersion = { VERSION: "0.2.78", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION) {
|
|
497417
497427
|
if (false) {}
|
|
497418
497428
|
const cachedChangelog = await getStoredChangelog();
|
|
497419
497429
|
if (lastSeenVersion !== currentVersion || !cachedChangelog) {
|
|
@@ -502946,7 +502956,7 @@ async function startMCPServer(cwd3, debug3, verbose) {
|
|
|
502946
502956
|
setCwd(cwd3);
|
|
502947
502957
|
const server2 = new Server({
|
|
502948
502958
|
name: "theus/tengu",
|
|
502949
|
-
version: { VERSION: "0.2.
|
|
502959
|
+
version: { VERSION: "0.2.78", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
|
|
502950
502960
|
}, {
|
|
502951
502961
|
capabilities: {
|
|
502952
502962
|
tools: {}
|
|
@@ -504388,7 +504398,7 @@ async function setupTokenHandler(root2) {
|
|
|
504388
504398
|
gap: 1,
|
|
504389
504399
|
children: [
|
|
504390
504400
|
/* @__PURE__ */ jsx_runtime503.jsx(TheusBanner, {
|
|
504391
|
-
version: { VERSION: "0.2.
|
|
504401
|
+
version: { VERSION: "0.2.78", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
|
|
504392
504402
|
}),
|
|
504393
504403
|
showAuthWarning && /* @__PURE__ */ jsx_runtime503.jsxs(ThemedBox_default, {
|
|
504394
504404
|
flexDirection: "column",
|
|
@@ -505973,7 +505983,7 @@ ${assistantAddendum}` : assistantAddendum;
|
|
|
505973
505983
|
}
|
|
505974
505984
|
}
|
|
505975
505985
|
logForDiagnosticsNoPII("info", "started", {
|
|
505976
|
-
version: { VERSION: "0.2.
|
|
505986
|
+
version: { VERSION: "0.2.78", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
|
|
505977
505987
|
is_native_binary: isInBundledMode()
|
|
505978
505988
|
});
|
|
505979
505989
|
registerCleanup(async () => {
|
|
@@ -506841,7 +506851,7 @@ Usage: theus --remote "your task description"`, () => gracefulShutdown(1));
|
|
|
506841
506851
|
pendingHookMessages
|
|
506842
506852
|
}, renderAndRun);
|
|
506843
506853
|
}
|
|
506844
|
-
}).version(`${{ VERSION: "0.2.
|
|
506854
|
+
}).version(`${{ VERSION: "0.2.78", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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");
|
|
506845
506855
|
program2.option("-w, --worktree [name]", "Crea un nuevo worktree de git para esta sesi\xF3n (opcionalmente indica un nombre)");
|
|
506846
506856
|
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.");
|
|
506847
506857
|
if (canUserConfigureAdvisor()) {
|
|
@@ -507442,7 +507452,7 @@ if (false) {}
|
|
|
507442
507452
|
async function main2() {
|
|
507443
507453
|
const args = process.argv.slice(2);
|
|
507444
507454
|
if (args.length === 1 && (args[0] === "--version" || args[0] === "-v" || args[0] === "-V")) {
|
|
507445
|
-
console.log(`${{ VERSION: "0.2.
|
|
507455
|
+
console.log(`${{ VERSION: "0.2.78", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)`);
|
|
507446
507456
|
return;
|
|
507447
507457
|
}
|
|
507448
507458
|
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.78",
|
|
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",
|