theus-cli 0.2.73 → 0.2.74
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 +214 -117
- 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.74", BUILD_TIME: "1970-01-01T00:00:00.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.74", BUILD_TIME: "1970-01-01T00:00:00.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.74", BUILD_TIME: "1970-01-01T00:00:00.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.74", BUILD_TIME: "1970-01-01T00:00:00.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.74", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.74", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.74", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.74", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.74", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.74", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.74", BUILD_TIME: "1970-01-01T00:00:00.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.74", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.74", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.74", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.74", BUILD_TIME: "1970-01-01T00:00:00.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.74", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.74", BUILD_TIME: "1970-01-01T00:00:00.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.74", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.74", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.74", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.74", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.74", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.74", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.74", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.74", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.74", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.74", BUILD_TIME: "1970-01-01T00:00:00.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.74", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.74", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.74", BUILD_TIME: "1970-01-01T00:00:00.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.74", BUILD_TIME: "1970-01-01T00:00:00.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.74", BUILD_TIME: "1970-01-01T00:00:00.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.74", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.74", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.74", BUILD_TIME: "1970-01-01T00:00:00.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.74", BUILD_TIME: "1970-01-01T00:00:00.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.74", BUILD_TIME: "1970-01-01T00:00:00.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.74", BUILD_TIME: "1970-01-01T00:00:00.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.74", BUILD_TIME: "1970-01-01T00:00:00.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.74", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.74", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.74", BUILD_TIME: "1970-01-01T00:00:00.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.74", BUILD_TIME: "1970-01-01T00:00:00.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.74", BUILD_TIME: "1970-01-01T00:00:00.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.74", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.74", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.74", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.74", BUILD_TIME: "1970-01-01T00:00:00.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.74", BUILD_TIME: "1970-01-01T00:00:00.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.74", BUILD_TIME: "1970-01-01T00:00:00.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,16 @@ var init_ConsoleOAuthFlow = __esm(() => {
|
|
|
256259
256259
|
var NOVEDADES;
|
|
256260
256260
|
var init_data = __esm(() => {
|
|
256261
256261
|
NOVEDADES = [
|
|
256262
|
+
{
|
|
256263
|
+
version: "v0.2.74",
|
|
256264
|
+
fecha: "2026-08-14",
|
|
256265
|
+
titulo: "Al traer tu contexto, Theus tapa las claves que encuentre por el camino",
|
|
256266
|
+
puntos: [
|
|
256267
|
+
"Los historiales de trabajo llevan credenciales dentro. No por descuido: pegaste un .env para que te lo arreglaran, o un comando imprimi\xF3 una variable. Ahora Theus las tapa ANTES de que ese texto salga de tu equipo, y te dice cu\xE1ntas encontr\xF3 \u2014 enterarte de que las tienes sueltas te sirve tanto como el contexto.",
|
|
256268
|
+
"Tapa solo lo que de verdad es una credencial: reconoce la forma de las claves de los proveedores conocidos, los tokens, las claves privadas y las contrase\xF1as en cadenas de conexi\xF3n. Los identificadores de commit, las rutas y los nombres de variable se quedan como est\xE1n, porque son justo el contexto que estamos rescatando.",
|
|
256269
|
+
"Conserva una pista de qu\xE9 era (\xABuna clave de tal proveedor\xBB) sin el valor, para que Theus siga entendiendo la conversaci\xF3n."
|
|
256270
|
+
]
|
|
256271
|
+
},
|
|
256262
256272
|
{
|
|
256263
256273
|
version: "v0.2.73",
|
|
256264
256274
|
fecha: "2026-08-13",
|
|
@@ -300130,9 +300140,9 @@ function getTheusEnvMetadata() {
|
|
|
300130
300140
|
};
|
|
300131
300141
|
}
|
|
300132
300142
|
function getBuildAgeMinutes() {
|
|
300133
|
-
if (!{ VERSION: "0.2.
|
|
300143
|
+
if (!{ VERSION: "0.2.74", BUILD_TIME: "1970-01-01T00:00:00.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)
|
|
300134
300144
|
return;
|
|
300135
|
-
const buildTime = new Date({ VERSION: "0.2.
|
|
300145
|
+
const buildTime = new Date({ VERSION: "0.2.74", BUILD_TIME: "1970-01-01T00:00:00.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();
|
|
300136
300146
|
if (isNaN(buildTime))
|
|
300137
300147
|
return;
|
|
300138
300148
|
return Math.floor((Date.now() - buildTime) / 60000);
|
|
@@ -318437,7 +318447,7 @@ function getSimpleDoingTasksSection() {
|
|
|
318437
318447
|
];
|
|
318438
318448
|
const userHelpSubitems = [
|
|
318439
318449
|
`/help: Get help with using Theus`,
|
|
318440
|
-
`To give feedback, users should ${{ VERSION: "0.2.
|
|
318450
|
+
`To give feedback, users should ${{ VERSION: "0.2.74", BUILD_TIME: "1970-01-01T00:00:00.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}`
|
|
318441
318451
|
];
|
|
318442
318452
|
const items = [
|
|
318443
318453
|
`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.`,
|
|
@@ -329573,7 +329583,7 @@ async function submitTranscriptShare(messages, trigger, appearanceId) {
|
|
|
329573
329583
|
} catch {}
|
|
329574
329584
|
const data = {
|
|
329575
329585
|
trigger,
|
|
329576
|
-
version: { VERSION: "0.2.
|
|
329586
|
+
version: { VERSION: "0.2.74", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
|
|
329577
329587
|
platform: process.platform,
|
|
329578
329588
|
transcript,
|
|
329579
329589
|
subagentTranscripts: Object.keys(subagentTranscripts).length > 0 ? subagentTranscripts : undefined,
|
|
@@ -329778,10 +329788,10 @@ Si el usuario indic\xF3 una duraci\xF3n, p\xE1sala en el par\xE1metro \`duration
|
|
|
329778
329788
|
|
|
329779
329789
|
// commands/issue/index.ts
|
|
329780
329790
|
function getCliVersion() {
|
|
329781
|
-
return { VERSION: "0.2.
|
|
329791
|
+
return { VERSION: "0.2.74", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.74", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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";
|
|
329782
329792
|
}
|
|
329783
329793
|
function getIssuesExplainer() {
|
|
329784
|
-
return { VERSION: "0.2.
|
|
329794
|
+
return { VERSION: "0.2.74", BUILD_TIME: "1970-01-01T00:00:00.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.74", BUILD_TIME: "1970-01-01T00:00:00.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";
|
|
329785
329795
|
}
|
|
329786
329796
|
function getActiveModelLabel() {
|
|
329787
329797
|
try {
|
|
@@ -332567,7 +332577,7 @@ function buildPrimarySection() {
|
|
|
332567
332577
|
});
|
|
332568
332578
|
return [{
|
|
332569
332579
|
label: "Version",
|
|
332570
|
-
value: { VERSION: "0.2.
|
|
332580
|
+
value: { VERSION: "0.2.74", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
|
|
332571
332581
|
}, {
|
|
332572
332582
|
label: "Session name",
|
|
332573
332583
|
value: nameValue
|
|
@@ -336383,7 +336393,7 @@ function Config({
|
|
|
336383
336393
|
}
|
|
336384
336394
|
})
|
|
336385
336395
|
}) : showSubmenu === "ChannelDowngrade" ? /* @__PURE__ */ jsx_runtime189.jsx(ChannelDowngradeDialog, {
|
|
336386
|
-
currentVersion: { VERSION: "0.2.
|
|
336396
|
+
currentVersion: { VERSION: "0.2.74", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
|
|
336387
336397
|
onChoice: (choice) => {
|
|
336388
336398
|
setShowSubmenu(null);
|
|
336389
336399
|
setTabsHidden(false);
|
|
@@ -336395,7 +336405,7 @@ function Config({
|
|
|
336395
336405
|
autoUpdatesChannel: "stable"
|
|
336396
336406
|
};
|
|
336397
336407
|
if (choice === "stay") {
|
|
336398
|
-
newSettings.minimumVersion = { VERSION: "0.2.
|
|
336408
|
+
newSettings.minimumVersion = { VERSION: "0.2.74", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION;
|
|
336399
336409
|
}
|
|
336400
336410
|
updateSettingsForSource("userSettings", newSettings);
|
|
336401
336411
|
setSettingsData((prev_27) => ({
|
|
@@ -343754,7 +343764,7 @@ function HelpV2(t0) {
|
|
|
343754
343764
|
let t6;
|
|
343755
343765
|
if ($2[31] !== tabs) {
|
|
343756
343766
|
t6 = /* @__PURE__ */ jsx_runtime215.jsx(Tabs, {
|
|
343757
|
-
title: `Theus v${{ VERSION: "0.2.
|
|
343767
|
+
title: `Theus v${{ VERSION: "0.2.74", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION}`,
|
|
343758
343768
|
color: "professionalBlue",
|
|
343759
343769
|
defaultTab: "general",
|
|
343760
343770
|
children: tabs
|
|
@@ -362358,7 +362368,7 @@ function Onboarding({
|
|
|
362358
362368
|
flexDirection: "column",
|
|
362359
362369
|
children: [
|
|
362360
362370
|
/* @__PURE__ */ jsx_runtime250.jsx(TheusBanner, {
|
|
362361
|
-
version: { VERSION: "0.2.
|
|
362371
|
+
version: { VERSION: "0.2.74", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
|
|
362362
362372
|
}),
|
|
362363
362373
|
/* @__PURE__ */ jsx_runtime250.jsxs(ThemedBox_default, {
|
|
362364
362374
|
flexDirection: "column",
|
|
@@ -367745,7 +367755,7 @@ var init_Messages = __esm(() => {
|
|
|
367745
367755
|
let t1;
|
|
367746
367756
|
if ($2[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
367747
367757
|
t1 = /* @__PURE__ */ jsx_runtime263.jsx(TheusSessionHeader, {
|
|
367748
|
-
version: { VERSION: "0.2.
|
|
367758
|
+
version: { VERSION: "0.2.74", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
|
|
367749
367759
|
});
|
|
367750
367760
|
$2[0] = t1;
|
|
367751
367761
|
} else {
|
|
@@ -377978,6 +377988,82 @@ var init_memoriaAgente = __esm(() => {
|
|
|
377978
377988
|
init_claudeCode();
|
|
377979
377989
|
});
|
|
377980
377990
|
|
|
377991
|
+
// services/import/detect/redactar.ts
|
|
377992
|
+
function tapar(coincidencia, conservar) {
|
|
377993
|
+
if (conservar <= 0 || coincidencia.length <= conservar)
|
|
377994
|
+
return OCULTO;
|
|
377995
|
+
return coincidencia.slice(0, conservar) + OCULTO;
|
|
377996
|
+
}
|
|
377997
|
+
function redactarSecretos(texto) {
|
|
377998
|
+
if (!texto)
|
|
377999
|
+
return { texto, redactados: 0, familias: [] };
|
|
378000
|
+
let salida = texto;
|
|
378001
|
+
let redactados = 0;
|
|
378002
|
+
const familias = new Set;
|
|
378003
|
+
for (const { nombre, re, conservar } of PATRONES) {
|
|
378004
|
+
salida = salida.replace(new RegExp(re.source, re.flags), (m) => {
|
|
378005
|
+
redactados++;
|
|
378006
|
+
familias.add(nombre);
|
|
378007
|
+
return tapar(m, conservar);
|
|
378008
|
+
});
|
|
378009
|
+
}
|
|
378010
|
+
salida = salida.replace(URL_CON_CREDENCIALES, (_m, prefijo) => {
|
|
378011
|
+
redactados++;
|
|
378012
|
+
familias.add("url-con-credenciales");
|
|
378013
|
+
return `${prefijo}${OCULTO}`;
|
|
378014
|
+
});
|
|
378015
|
+
salida = salida.replace(ASIGNACION, (_m, prefijo, comilla) => {
|
|
378016
|
+
redactados++;
|
|
378017
|
+
familias.add("asignacion");
|
|
378018
|
+
return `${prefijo}${comilla}${OCULTO}${comilla}`;
|
|
378019
|
+
});
|
|
378020
|
+
salida = salida.replace(AUTORIZACION, (_m, prefijo) => {
|
|
378021
|
+
redactados++;
|
|
378022
|
+
familias.add("autorizacion");
|
|
378023
|
+
return `${prefijo}${OCULTO}`;
|
|
378024
|
+
});
|
|
378025
|
+
return { texto: salida, redactados, familias: [...familias] };
|
|
378026
|
+
}
|
|
378027
|
+
function redactarMensajes(mensajes) {
|
|
378028
|
+
let redactados = 0;
|
|
378029
|
+
const salida = mensajes.map((m) => {
|
|
378030
|
+
const r = redactarSecretos(m.text);
|
|
378031
|
+
redactados += r.redactados;
|
|
378032
|
+
return r.redactados > 0 ? { ...m, text: r.texto } : m;
|
|
378033
|
+
});
|
|
378034
|
+
return { mensajes: salida, redactados };
|
|
378035
|
+
}
|
|
378036
|
+
var OCULTO = "\u2026[credencial oculta]", PATRONES, ASIGNACION, URL_CON_CREDENCIALES, AUTORIZACION;
|
|
378037
|
+
var init_redactar = __esm(() => {
|
|
378038
|
+
PATRONES = [
|
|
378039
|
+
{ nombre: "anthropic", re: /\bsk-ant-[A-Za-z0-9_-]{20,}/g, conservar: 7 },
|
|
378040
|
+
{ nombre: "openrouter", re: /\bsk-or-v1-[A-Za-z0-9]{32,}/g, conservar: 9 },
|
|
378041
|
+
{ nombre: "openai", re: /\bsk-(?:proj-|svcacct-)?[A-Za-z0-9_-]{20,}/g, conservar: 3 },
|
|
378042
|
+
{ nombre: "github-pat", re: /\bgithub_pat_[A-Za-z0-9_]{20,}/g, conservar: 11 },
|
|
378043
|
+
{ nombre: "github-token", re: /\bgh[pousr]_[A-Za-z0-9]{30,}/g, conservar: 4 },
|
|
378044
|
+
{ nombre: "gitlab", re: /\bglpat-[A-Za-z0-9_-]{16,}/g, conservar: 6 },
|
|
378045
|
+
{ nombre: "slack", re: /\bxox[abpsr]-[A-Za-z0-9-]{10,}/g, conservar: 5 },
|
|
378046
|
+
{ nombre: "stripe", re: /\b[rs]k_(?:live|test)_[A-Za-z0-9]{16,}/g, conservar: 11 },
|
|
378047
|
+
{ nombre: "sendgrid", re: /\bSG\.[A-Za-z0-9_-]{16,}\.[A-Za-z0-9_-]{16,}/g, conservar: 3 },
|
|
378048
|
+
{ nombre: "google-api", re: /\bAIza[A-Za-z0-9_-]{30,}/g, conservar: 4 },
|
|
378049
|
+
{ nombre: "aws-access-key", re: /\b(?:AKIA|ASIA)[A-Z0-9]{16}\b/g, conservar: 4 },
|
|
378050
|
+
{ nombre: "huggingface", re: /\bhf_[A-Za-z0-9]{30,}/g, conservar: 3 },
|
|
378051
|
+
{ nombre: "groq", re: /\bgsk_[A-Za-z0-9]{40,}/g, conservar: 4 },
|
|
378052
|
+
{ nombre: "replicate", re: /\br8_[A-Za-z0-9]{30,}/g, conservar: 3 },
|
|
378053
|
+
{ nombre: "npm", re: /\bnpm_[A-Za-z0-9]{30,}/g, conservar: 4 },
|
|
378054
|
+
{ nombre: "mercadopago", re: /\bAPP_USR-[A-Za-z0-9-]{20,}/g, conservar: 8 },
|
|
378055
|
+
{ nombre: "jwt", re: /\beyJ[A-Za-z0-9_-]{10,}\.[A-Za-z0-9_-]{10,}\.[A-Za-z0-9_-]{10,}/g, conservar: 3 },
|
|
378056
|
+
{
|
|
378057
|
+
nombre: "clave-privada",
|
|
378058
|
+
re: /-----BEGIN[A-Z ]*PRIVATE KEY-----[\s\S]*?-----END[A-Z ]*PRIVATE KEY-----/g,
|
|
378059
|
+
conservar: 0
|
|
378060
|
+
}
|
|
378061
|
+
];
|
|
378062
|
+
ASIGNACION = /\b((?:export\s+)?[A-Z][A-Z0-9_]*(?:KEY|TOKEN|SECRET|PASSWORD|PASSWD|PWD|CREDENTIAL|AUTH)[A-Z0-9_]*\s*[=:]\s*)(['"]?)([^\s'"]{8,})\2/g;
|
|
378063
|
+
URL_CON_CREDENCIALES = /(\b[a-z][a-z0-9+.-]*:\/\/[^\s:/@]+:)[^\s@]+(?=@)/g;
|
|
378064
|
+
AUTORIZACION = /\b(Authorization\s*:\s*(?:Bearer|Basic|token)\s+)(\S{12,})/gi;
|
|
378065
|
+
});
|
|
378066
|
+
|
|
377981
378067
|
// services/import/detect/registry.ts
|
|
377982
378068
|
var exports_registry2 = {};
|
|
377983
378069
|
__export(exports_registry2, {
|
|
@@ -378012,6 +378098,7 @@ async function explorarFuentes(entorno) {
|
|
|
378012
378098
|
}
|
|
378013
378099
|
async function leerFuentes(fuentes, limites = LIMITES_POR_DEFECTO) {
|
|
378014
378100
|
const conversaciones = [];
|
|
378101
|
+
let totalRedactados = 0;
|
|
378015
378102
|
for (const fuente of fuentes) {
|
|
378016
378103
|
const detector = DETECTORES.find((d) => d.herramienta === fuente.herramienta);
|
|
378017
378104
|
if (!detector)
|
|
@@ -378023,9 +378110,11 @@ async function leerFuentes(fuentes, limites = LIMITES_POR_DEFECTO) {
|
|
|
378023
378110
|
continue;
|
|
378024
378111
|
}
|
|
378025
378112
|
for (const c5 of leidas) {
|
|
378113
|
+
const { mensajes, redactados } = redactarMensajes(c5.mensajes.map((m) => ({ role: m.role, text: m.text })));
|
|
378114
|
+
totalRedactados += redactados;
|
|
378026
378115
|
conversaciones.push({
|
|
378027
378116
|
title: c5.titulo,
|
|
378028
|
-
messages:
|
|
378117
|
+
messages: mensajes,
|
|
378029
378118
|
...c5.creadaEn !== undefined ? { createdAt: c5.creadaEn } : {}
|
|
378030
378119
|
});
|
|
378031
378120
|
}
|
|
@@ -378033,7 +378122,8 @@ async function leerFuentes(fuentes, limites = LIMITES_POR_DEFECTO) {
|
|
|
378033
378122
|
return {
|
|
378034
378123
|
source: "agente-local",
|
|
378035
378124
|
conversations: conversaciones,
|
|
378036
|
-
totalConversations: conversaciones.length
|
|
378125
|
+
totalConversations: conversaciones.length,
|
|
378126
|
+
credencialesTapadas: totalRedactados
|
|
378037
378127
|
};
|
|
378038
378128
|
}
|
|
378039
378129
|
async function leerHechosDirectos(fuentes) {
|
|
@@ -378042,7 +378132,9 @@ async function leerHechosDirectos(fuentes) {
|
|
|
378042
378132
|
if (!fuente.yaDestilado)
|
|
378043
378133
|
continue;
|
|
378044
378134
|
try {
|
|
378045
|
-
|
|
378135
|
+
for (const nota of await leerMemoria(fuente)) {
|
|
378136
|
+
hechos.push({ ...nota, texto: redactarSecretos(nota.texto).texto });
|
|
378137
|
+
}
|
|
378046
378138
|
} catch {
|
|
378047
378139
|
continue;
|
|
378048
378140
|
}
|
|
@@ -378083,6 +378175,7 @@ var init_registry4 = __esm(() => {
|
|
|
378083
378175
|
init_aider();
|
|
378084
378176
|
init_geminiCli();
|
|
378085
378177
|
init_memoriaAgente();
|
|
378178
|
+
init_redactar();
|
|
378086
378179
|
DETECTORES = [
|
|
378087
378180
|
detectorClaudeCode,
|
|
378088
378181
|
detectorCodex,
|
|
@@ -378177,6 +378270,10 @@ function ImportContext({
|
|
|
378177
378270
|
setStatusLine("Leyendo el contexto de este proyecto\u2026");
|
|
378178
378271
|
const parsedExport = await leerFuentes(aceptadas);
|
|
378179
378272
|
setParsed(parsedExport);
|
|
378273
|
+
const tapadas = parsedExport.credencialesTapadas ?? 0;
|
|
378274
|
+
if (tapadas > 0) {
|
|
378275
|
+
setStatusLine(`Tap\xE9 ${tapadas} ${tapadas === 1 ? "credencial" : "credenciales"} que hab\xEDa en tu historial. Destilando\u2026`);
|
|
378276
|
+
}
|
|
378180
378277
|
const blocks = buildImportBlocks(parsedExport);
|
|
378181
378278
|
if (blocks.length === 0) {
|
|
378182
378279
|
setError("El historial encontrado no ten\xEDa conversaciones con contenido.");
|
|
@@ -399306,7 +399403,7 @@ async function captureMemoryDiagnostics(trigger, dumpNumber = 0) {
|
|
|
399306
399403
|
smapsRollup,
|
|
399307
399404
|
platform: process.platform,
|
|
399308
399405
|
nodeVersion: process.version,
|
|
399309
|
-
ccVersion: { VERSION: "0.2.
|
|
399406
|
+
ccVersion: { VERSION: "0.2.74", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
|
|
399310
399407
|
};
|
|
399311
399408
|
}
|
|
399312
399409
|
async function performHeapDump(trigger = "manual", dumpNumber = 0) {
|
|
@@ -400067,7 +400164,7 @@ var init_bridge_kick = __esm(() => {
|
|
|
400067
400164
|
var call68 = async () => {
|
|
400068
400165
|
return {
|
|
400069
400166
|
type: "text",
|
|
400070
|
-
value: { VERSION: "0.2.
|
|
400167
|
+
value: { VERSION: "0.2.74", BUILD_TIME: "1970-01-01T00:00:00.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.74", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.74", BUILD_TIME: "1970-01-01T00:00:00.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.74", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
|
|
400071
400168
|
};
|
|
400072
400169
|
}, version2, version_default;
|
|
400073
400170
|
var init_version = __esm(() => {
|
|
@@ -402668,7 +402765,7 @@ var SECRET_NAME_PATTERN, EXTRA_ENV_ALLOWLIST, REDACTED2 = "\u2039oculto\u203A",
|
|
|
402668
402765
|
const lines = [];
|
|
402669
402766
|
lines.push("## Entorno de ejecuci\xF3n");
|
|
402670
402767
|
lines.push("");
|
|
402671
|
-
const version3 = { VERSION: "0.2.
|
|
402768
|
+
const version3 = { VERSION: "0.2.74", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.74", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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";
|
|
402672
402769
|
lines.push(`- Versi\xF3n de Theus: ${version3}`);
|
|
402673
402770
|
lines.push(`- Directorio de trabajo: ${getCwd()}`);
|
|
402674
402771
|
lines.push(`- \xBFRepositorio git?: ${isGit ? "s\xED" : "no"}`);
|
|
@@ -405209,13 +405306,13 @@ async function updateReleaseBundle() {
|
|
|
405209
405306
|
await gracefulShutdown(1);
|
|
405210
405307
|
return;
|
|
405211
405308
|
}
|
|
405212
|
-
if (gte({ VERSION: "0.2.
|
|
405213
|
-
writeToStdout(source_default.green(`Theus ya est\xE1 al d\xEDa (${{ VERSION: "0.2.
|
|
405309
|
+
if (gte({ VERSION: "0.2.74", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
|
|
405310
|
+
writeToStdout(source_default.green(`Theus ya est\xE1 al d\xEDa (${{ VERSION: "0.2.74", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION})`) + `
|
|
405214
405311
|
`);
|
|
405215
405312
|
await gracefulShutdown(0);
|
|
405216
405313
|
return;
|
|
405217
405314
|
}
|
|
405218
|
-
writeToStdout(`Nueva versi\xF3n disponible: ${latest} (actual: ${{ VERSION: "0.2.
|
|
405315
|
+
writeToStdout(`Nueva versi\xF3n disponible: ${latest} (actual: ${{ VERSION: "0.2.74", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION})
|
|
405219
405316
|
`);
|
|
405220
405317
|
writeToStdout(`Instalando la actualizaci\xF3n desde theus.pe/dl...
|
|
405221
405318
|
`);
|
|
@@ -405249,7 +405346,7 @@ async function updateReleaseBundle() {
|
|
|
405249
405346
|
return;
|
|
405250
405347
|
}
|
|
405251
405348
|
cpSync(staged, bundleDir, { recursive: true, force: true });
|
|
405252
|
-
writeToStdout(source_default.green(`Actualizado correctamente de ${{ VERSION: "0.2.
|
|
405349
|
+
writeToStdout(source_default.green(`Actualizado correctamente de ${{ VERSION: "0.2.74", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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}`) + `
|
|
405253
405350
|
`);
|
|
405254
405351
|
await regenerateCompletionCache();
|
|
405255
405352
|
} finally {
|
|
@@ -405262,7 +405359,7 @@ async function updateReleaseBundle() {
|
|
|
405262
405359
|
async function update() {
|
|
405263
405360
|
logEvent("theus_update_check", {});
|
|
405264
405361
|
await updateNaupa();
|
|
405265
|
-
writeToStdout(`Versi\xF3n actual: ${{ VERSION: "0.2.
|
|
405362
|
+
writeToStdout(`Versi\xF3n actual: ${{ VERSION: "0.2.74", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION}
|
|
405266
405363
|
`);
|
|
405267
405364
|
const channel2 = getInitialSettings()?.autoUpdatesChannel ?? "latest";
|
|
405268
405365
|
writeToStdout(`Buscando actualizaciones en el canal ${channel2}...
|
|
@@ -405341,8 +405438,8 @@ async function update() {
|
|
|
405341
405438
|
writeToStdout(`Theus est\xE1 gestionado por Homebrew.
|
|
405342
405439
|
`);
|
|
405343
405440
|
const latest = await getLatestVersion(channel2);
|
|
405344
|
-
if (latest && !gte({ VERSION: "0.2.
|
|
405345
|
-
writeToStdout(`Actualizaci\xF3n disponible: ${{ VERSION: "0.2.
|
|
405441
|
+
if (latest && !gte({ VERSION: "0.2.74", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
|
|
405442
|
+
writeToStdout(`Actualizaci\xF3n disponible: ${{ VERSION: "0.2.74", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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}
|
|
405346
405443
|
`);
|
|
405347
405444
|
writeToStdout(`
|
|
405348
405445
|
`);
|
|
@@ -405358,8 +405455,8 @@ async function update() {
|
|
|
405358
405455
|
writeToStdout(`Theus est\xE1 gestionado por winget.
|
|
405359
405456
|
`);
|
|
405360
405457
|
const latest = await getLatestVersion(channel2);
|
|
405361
|
-
if (latest && !gte({ VERSION: "0.2.
|
|
405362
|
-
writeToStdout(`Actualizaci\xF3n disponible: ${{ VERSION: "0.2.
|
|
405458
|
+
if (latest && !gte({ VERSION: "0.2.74", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
|
|
405459
|
+
writeToStdout(`Actualizaci\xF3n disponible: ${{ VERSION: "0.2.74", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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}
|
|
405363
405460
|
`);
|
|
405364
405461
|
writeToStdout(`
|
|
405365
405462
|
`);
|
|
@@ -405375,8 +405472,8 @@ async function update() {
|
|
|
405375
405472
|
writeToStdout(`Theus est\xE1 gestionado por apk.
|
|
405376
405473
|
`);
|
|
405377
405474
|
const latest = await getLatestVersion(channel2);
|
|
405378
|
-
if (latest && !gte({ VERSION: "0.2.
|
|
405379
|
-
writeToStdout(`Actualizaci\xF3n disponible: ${{ VERSION: "0.2.
|
|
405475
|
+
if (latest && !gte({ VERSION: "0.2.74", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
|
|
405476
|
+
writeToStdout(`Actualizaci\xF3n disponible: ${{ VERSION: "0.2.74", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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}
|
|
405380
405477
|
`);
|
|
405381
405478
|
writeToStdout(`
|
|
405382
405479
|
`);
|
|
@@ -405441,11 +405538,11 @@ async function update() {
|
|
|
405441
405538
|
`);
|
|
405442
405539
|
await gracefulShutdown(1);
|
|
405443
405540
|
}
|
|
405444
|
-
if (result.latestVersion === { VERSION: "0.2.
|
|
405445
|
-
writeToStdout(source_default.green(`Theus ya est\xE1 al d\xEDa (${{ VERSION: "0.2.
|
|
405541
|
+
if (result.latestVersion === { VERSION: "0.2.74", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION) {
|
|
405542
|
+
writeToStdout(source_default.green(`Theus ya est\xE1 al d\xEDa (${{ VERSION: "0.2.74", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION})`) + `
|
|
405446
405543
|
`);
|
|
405447
405544
|
} else {
|
|
405448
|
-
writeToStdout(source_default.green(`Actualizado correctamente de ${{ VERSION: "0.2.
|
|
405545
|
+
writeToStdout(source_default.green(`Actualizado correctamente de ${{ VERSION: "0.2.74", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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}`) + `
|
|
405449
405546
|
`);
|
|
405450
405547
|
await regenerateCompletionCache();
|
|
405451
405548
|
}
|
|
@@ -405464,9 +405561,9 @@ async function update() {
|
|
|
405464
405561
|
await removeInstalledSymlink();
|
|
405465
405562
|
}
|
|
405466
405563
|
logForDebugging("update: Checking npm registry for latest version");
|
|
405467
|
-
logForDebugging(`update: Package URL: ${{ VERSION: "0.2.
|
|
405564
|
+
logForDebugging(`update: Package URL: ${{ VERSION: "0.2.74", BUILD_TIME: "1970-01-01T00:00:00.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}`);
|
|
405468
405565
|
const npmTag = channel2 === "stable" ? "stable" : "latest";
|
|
405469
|
-
const npmCommand = `npm view ${{ VERSION: "0.2.
|
|
405566
|
+
const npmCommand = `npm view ${{ VERSION: "0.2.74", BUILD_TIME: "1970-01-01T00:00:00.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`;
|
|
405470
405567
|
logForDebugging(`update: Running: ${npmCommand}`);
|
|
405471
405568
|
const latestVersion = await getLatestVersion(channel2);
|
|
405472
405569
|
logForDebugging(`update: Latest version from npm: ${latestVersion || "FAILED"}`);
|
|
@@ -405486,7 +405583,7 @@ async function update() {
|
|
|
405486
405583
|
`);
|
|
405487
405584
|
process.stderr.write(` \u2022 Un proxy o firewall corporativo bloquea npm
|
|
405488
405585
|
`);
|
|
405489
|
-
if ({ VERSION: "0.2.
|
|
405586
|
+
if ({ VERSION: "0.2.74", BUILD_TIME: "1970-01-01T00:00:00.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.74", BUILD_TIME: "1970-01-01T00:00:00.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")) {
|
|
405490
405587
|
process.stderr.write(` \u2022 Compilaci\xF3n interna/de desarrollo no publicada en npm
|
|
405491
405588
|
`);
|
|
405492
405589
|
}
|
|
@@ -405498,19 +405595,19 @@ async function update() {
|
|
|
405498
405595
|
`);
|
|
405499
405596
|
process.stderr.write(` \u2022 Ejecuta con el flag --debug para m\xE1s detalle
|
|
405500
405597
|
`);
|
|
405501
|
-
const packageName = { VERSION: "0.2.
|
|
405598
|
+
const packageName = { VERSION: "0.2.74", BUILD_TIME: "1970-01-01T00:00:00.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";
|
|
405502
405599
|
process.stderr.write(` \u2022 Comprueba a mano: npm view ${packageName} version
|
|
405503
405600
|
`);
|
|
405504
405601
|
process.stderr.write(` \u2022 Comprueba si te falta iniciar sesi\xF3n: npm whoami
|
|
405505
405602
|
`);
|
|
405506
405603
|
await gracefulShutdown(1);
|
|
405507
405604
|
}
|
|
405508
|
-
if (gte({ VERSION: "0.2.
|
|
405509
|
-
writeToStdout(source_default.green(`Theus ya est\xE1 al d\xEDa (${{ VERSION: "0.2.
|
|
405605
|
+
if (gte({ VERSION: "0.2.74", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
|
|
405606
|
+
writeToStdout(source_default.green(`Theus ya est\xE1 al d\xEDa (${{ VERSION: "0.2.74", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION})`) + `
|
|
405510
405607
|
`);
|
|
405511
405608
|
await gracefulShutdown(0);
|
|
405512
405609
|
}
|
|
405513
|
-
writeToStdout(`Nueva versi\xF3n disponible: ${latestVersion} (actual: ${{ VERSION: "0.2.
|
|
405610
|
+
writeToStdout(`Nueva versi\xF3n disponible: ${latestVersion} (actual: ${{ VERSION: "0.2.74", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION})
|
|
405514
405611
|
`);
|
|
405515
405612
|
writeToStdout(`Instalando la actualizaci\xF3n...
|
|
405516
405613
|
`);
|
|
@@ -405555,7 +405652,7 @@ async function update() {
|
|
|
405555
405652
|
logForDebugging(`update: Installation status: ${status2}`);
|
|
405556
405653
|
switch (status2) {
|
|
405557
405654
|
case "success":
|
|
405558
|
-
writeToStdout(source_default.green(`Actualizado correctamente de ${{ VERSION: "0.2.
|
|
405655
|
+
writeToStdout(source_default.green(`Actualizado correctamente de ${{ VERSION: "0.2.74", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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}`) + `
|
|
405559
405656
|
`);
|
|
405560
405657
|
await regenerateCompletionCache();
|
|
405561
405658
|
break;
|
|
@@ -405565,7 +405662,7 @@ async function update() {
|
|
|
405565
405662
|
if (useLocalUpdate) {
|
|
405566
405663
|
process.stderr.write(`Prueba a actualizar a mano con:
|
|
405567
405664
|
`);
|
|
405568
|
-
process.stderr.write(` cd ~/.theus/local && npm update ${{ VERSION: "0.2.
|
|
405665
|
+
process.stderr.write(` cd ~/.theus/local && npm update ${{ VERSION: "0.2.74", BUILD_TIME: "1970-01-01T00:00:00.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}
|
|
405569
405666
|
`);
|
|
405570
405667
|
} else {
|
|
405571
405668
|
process.stderr.write(`Prueba con sudo o corrige los permisos de npm
|
|
@@ -405581,7 +405678,7 @@ async function update() {
|
|
|
405581
405678
|
if (useLocalUpdate) {
|
|
405582
405679
|
process.stderr.write(`Prueba a actualizar a mano con:
|
|
405583
405680
|
`);
|
|
405584
|
-
process.stderr.write(` cd ~/.theus/local && npm update ${{ VERSION: "0.2.
|
|
405681
|
+
process.stderr.write(` cd ~/.theus/local && npm update ${{ VERSION: "0.2.74", BUILD_TIME: "1970-01-01T00:00:00.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}
|
|
405585
405682
|
`);
|
|
405586
405683
|
} else {
|
|
405587
405684
|
process.stderr.write(`O p\xE1sate a la instalaci\xF3n nativa con: theus install
|
|
@@ -415004,7 +415101,7 @@ var init_sessionStorage = __esm(() => {
|
|
|
415004
415101
|
init_settings2();
|
|
415005
415102
|
init_slowOperations();
|
|
415006
415103
|
init_uuid();
|
|
415007
|
-
VERSION4 = { VERSION: "0.2.
|
|
415104
|
+
VERSION4 = { VERSION: "0.2.74", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION;
|
|
415008
415105
|
MAX_TOMBSTONE_REWRITE_BYTES = 50 * 1024 * 1024;
|
|
415009
415106
|
SKIP_FIRST_PROMPT_PATTERN2 = /^(?:\s*<[a-z][\w-]*[\s>]|\[Request interrupted by user[^\]]*\])/;
|
|
415010
415107
|
EPHEMERAL_PROGRESS_TYPES = new Set([
|
|
@@ -416209,7 +416306,7 @@ var init_filesystem = __esm(() => {
|
|
|
416209
416306
|
});
|
|
416210
416307
|
getBundledSkillsRoot = memoize_default(function getBundledSkillsRoot2() {
|
|
416211
416308
|
const nonce = randomBytes21(16).toString("hex");
|
|
416212
|
-
return join152(getTheusTempDir(), "bundled-skills", { VERSION: "0.2.
|
|
416309
|
+
return join152(getTheusTempDir(), "bundled-skills", { VERSION: "0.2.74", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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);
|
|
416213
416310
|
});
|
|
416214
416311
|
getResolvedWorkingDirPaths = memoize_default(getPathsForPermissionCheck);
|
|
416215
416312
|
});
|
|
@@ -428386,7 +428483,7 @@ async function handleMemories(state2) {
|
|
|
428386
428483
|
async function runProjectContextMcpServer() {
|
|
428387
428484
|
const projectRoot = process.env.THEUS_PROJECT_ROOT || process.cwd();
|
|
428388
428485
|
const state2 = new ProjectContextState(projectRoot);
|
|
428389
|
-
const server2 = new Server({ name: SERVER_NAME, version: { VERSION: "0.2.
|
|
428486
|
+
const server2 = new Server({ name: SERVER_NAME, version: { VERSION: "0.2.74", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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: {} } });
|
|
428390
428487
|
server2.setRequestHandler(ListToolsRequestSchema, async () => ({
|
|
428391
428488
|
tools: TOOL_DEFINITIONS.map((t) => ({
|
|
428392
428489
|
name: t.name,
|
|
@@ -431063,7 +431160,7 @@ async function runTitanFleetWorker(args) {
|
|
|
431063
431160
|
max_concurrency: maxConcurrency,
|
|
431064
431161
|
runtime: {
|
|
431065
431162
|
name: "theus-cli",
|
|
431066
|
-
version: { VERSION: "0.2.
|
|
431163
|
+
version: { VERSION: "0.2.74", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
|
|
431067
431164
|
}
|
|
431068
431165
|
});
|
|
431069
431166
|
const client2 = new TitanFleetClient({
|
|
@@ -432954,7 +433051,7 @@ function createBridgeLogger(options2) {
|
|
|
432954
433051
|
connectUrl = buildBridgeConnectUrl(environmentId, cachedIngressUrl);
|
|
432955
433052
|
regenerateQr(connectUrl);
|
|
432956
433053
|
if (verbose) {
|
|
432957
|
-
write(source_default.dim(`Remote Control`) + ` v${{ VERSION: "0.2.
|
|
433054
|
+
write(source_default.dim(`Remote Control`) + ` v${{ VERSION: "0.2.74", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION}
|
|
432958
433055
|
`);
|
|
432959
433056
|
}
|
|
432960
433057
|
if (verbose) {
|
|
@@ -433927,7 +434024,7 @@ function appendToLog(path19, message) {
|
|
|
433927
434024
|
cwd: getFsImplementation().cwd(),
|
|
433928
434025
|
userType: "external",
|
|
433929
434026
|
sessionId: getSessionId(),
|
|
433930
|
-
version: { VERSION: "0.2.
|
|
434027
|
+
version: { VERSION: "0.2.74", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
|
|
433931
434028
|
};
|
|
433932
434029
|
getLogWriter(path19).write(messageWithTimestamp);
|
|
433933
434030
|
}
|
|
@@ -435188,7 +435285,7 @@ Spawn mode for this project:
|
|
|
435188
435285
|
const api2 = createBridgeApiClient({
|
|
435189
435286
|
baseUrl,
|
|
435190
435287
|
getAccessToken: getBridgeAccessToken2,
|
|
435191
|
-
runnerVersion: { VERSION: "0.2.
|
|
435288
|
+
runnerVersion: { VERSION: "0.2.74", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
|
|
435192
435289
|
onDebug: logForDebugging,
|
|
435193
435290
|
onAuth401: handleOAuth401Error2,
|
|
435194
435291
|
getTrustedDeviceToken
|
|
@@ -435426,7 +435523,7 @@ async function runBridgeHeadless(opts, signal) {
|
|
|
435426
435523
|
const api2 = createBridgeApiClient({
|
|
435427
435524
|
baseUrl,
|
|
435428
435525
|
getAccessToken: opts.getAccessToken,
|
|
435429
|
-
runnerVersion: { VERSION: "0.2.
|
|
435526
|
+
runnerVersion: { VERSION: "0.2.74", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
|
|
435430
435527
|
onDebug: log2,
|
|
435431
435528
|
onAuth401: opts.onAuth401,
|
|
435432
435529
|
getTrustedDeviceToken
|
|
@@ -438523,7 +438620,7 @@ function buildSystemInitMessage(inputs) {
|
|
|
438523
438620
|
slash_commands: inputs.commands.filter((c5) => c5.userInvocable !== false).map((c5) => c5.name),
|
|
438524
438621
|
apiKeySource: getTheusApiKeyWithSource().source,
|
|
438525
438622
|
betas: getSdkBetas(),
|
|
438526
|
-
theus_code_version: { VERSION: "0.2.
|
|
438623
|
+
theus_code_version: { VERSION: "0.2.74", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
|
|
438527
438624
|
output_style: outputStyle2,
|
|
438528
438625
|
agents: inputs.agents.map((agent) => agent.agentType),
|
|
438529
438626
|
skills: inputs.skills.filter((s) => s.userInvocable !== false).map((skill) => skill.name),
|
|
@@ -438563,8 +438660,8 @@ async function getEnvLessBridgeConfig() {
|
|
|
438563
438660
|
}
|
|
438564
438661
|
async function checkEnvLessBridgeMinVersion() {
|
|
438565
438662
|
const cfg = await getEnvLessBridgeConfig();
|
|
438566
|
-
if (cfg.min_version && lt({ VERSION: "0.2.
|
|
438567
|
-
return `Your version of Theus (${{ VERSION: "0.2.
|
|
438663
|
+
if (cfg.min_version && lt({ VERSION: "0.2.74", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
|
|
438664
|
+
return `Your version of Theus (${{ VERSION: "0.2.74", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.
|
|
438568
438665
|
Version ${cfg.min_version} or higher is required. Run \`theus update\` to update.`;
|
|
438569
438666
|
}
|
|
438570
438667
|
return null;
|
|
@@ -440888,7 +440985,7 @@ async function initBridgeCore(params) {
|
|
|
440888
440985
|
const rawApi = createBridgeApiClient({
|
|
440889
440986
|
baseUrl,
|
|
440890
440987
|
getAccessToken,
|
|
440891
|
-
runnerVersion: { VERSION: "0.2.
|
|
440988
|
+
runnerVersion: { VERSION: "0.2.74", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
|
|
440892
440989
|
onDebug: logForDebugging,
|
|
440893
440990
|
onAuth401,
|
|
440894
440991
|
getTrustedDeviceToken
|
|
@@ -457529,7 +457626,7 @@ var init_useVoiceEnabled = __esm(() => {
|
|
|
457529
457626
|
function getSemverPart(version3) {
|
|
457530
457627
|
return `${import_semver11.major(version3, { loose: true })}.${import_semver11.minor(version3, { loose: true })}.${import_semver11.patch(version3, { loose: true })}`;
|
|
457531
457628
|
}
|
|
457532
|
-
function useUpdateNotification(updatedVersion, initialVersion = { VERSION: "0.2.
|
|
457629
|
+
function useUpdateNotification(updatedVersion, initialVersion = { VERSION: "0.2.74", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION) {
|
|
457533
457630
|
const [lastNotifiedSemver, setLastNotifiedSemver] = import_react235.useState(() => getSemverPart(initialVersion));
|
|
457534
457631
|
if (!updatedVersion) {
|
|
457535
457632
|
return null;
|
|
@@ -457569,7 +457666,7 @@ function AutoUpdater({
|
|
|
457569
457666
|
return;
|
|
457570
457667
|
}
|
|
457571
457668
|
if (false) {}
|
|
457572
|
-
const currentVersion = { VERSION: "0.2.
|
|
457669
|
+
const currentVersion = { VERSION: "0.2.74", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION;
|
|
457573
457670
|
const channel2 = getInitialSettings()?.autoUpdatesChannel ?? "latest";
|
|
457574
457671
|
let latestVersion = await getLatestVersion(channel2);
|
|
457575
457672
|
const isDisabled2 = isAutoUpdaterDisabled();
|
|
@@ -457704,7 +457801,7 @@ function AutoUpdater({
|
|
|
457704
457801
|
" ",
|
|
457705
457802
|
/* @__PURE__ */ jsx_runtime414.jsx(ThemedText, {
|
|
457706
457803
|
bold: true,
|
|
457707
|
-
children: hasLocalInstall ? `cd ~/.theus/local && npm update ${{ VERSION: "0.2.
|
|
457804
|
+
children: hasLocalInstall ? `cd ~/.theus/local && npm update ${{ VERSION: "0.2.74", BUILD_TIME: "1970-01-01T00:00:00.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.74", BUILD_TIME: "1970-01-01T00:00:00.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}`
|
|
457708
457805
|
})
|
|
457709
457806
|
]
|
|
457710
457807
|
})
|
|
@@ -457781,12 +457878,12 @@ function NativeAutoUpdater({
|
|
|
457781
457878
|
logEvent("theus_native_auto_updater_start", {});
|
|
457782
457879
|
try {
|
|
457783
457880
|
const maxVersion = await getMaxVersion();
|
|
457784
|
-
if (maxVersion && gt({ VERSION: "0.2.
|
|
457881
|
+
if (maxVersion && gt({ VERSION: "0.2.74", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
|
|
457785
457882
|
const msg = await getMaxVersionMessage();
|
|
457786
457883
|
setMaxVersionIssue(msg ?? "affects your version");
|
|
457787
457884
|
}
|
|
457788
457885
|
const result = await installLatest(channel2);
|
|
457789
|
-
const currentVersion = { VERSION: "0.2.
|
|
457886
|
+
const currentVersion = { VERSION: "0.2.74", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION;
|
|
457790
457887
|
const latencyMs = Date.now() - startTime2;
|
|
457791
457888
|
if (result.lockFailed) {
|
|
457792
457889
|
logEvent("theus_native_auto_updater_lock_contention", {
|
|
@@ -457923,17 +458020,17 @@ function PackageManagerAutoUpdater(t0) {
|
|
|
457923
458020
|
const maxVersion = await getMaxVersion();
|
|
457924
458021
|
if (maxVersion && latest && gt(latest, maxVersion)) {
|
|
457925
458022
|
logForDebugging(`PackageManagerAutoUpdater: maxVersion ${maxVersion} is set, capping update from ${latest} to ${maxVersion}`);
|
|
457926
|
-
if (gte({ VERSION: "0.2.
|
|
457927
|
-
logForDebugging(`PackageManagerAutoUpdater: current version ${{ VERSION: "0.2.
|
|
458023
|
+
if (gte({ VERSION: "0.2.74", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
|
|
458024
|
+
logForDebugging(`PackageManagerAutoUpdater: current version ${{ VERSION: "0.2.74", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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`);
|
|
457928
458025
|
setUpdateAvailable(false);
|
|
457929
458026
|
return;
|
|
457930
458027
|
}
|
|
457931
458028
|
latest = maxVersion;
|
|
457932
458029
|
}
|
|
457933
|
-
const hasUpdate = latest && !gte({ VERSION: "0.2.
|
|
458030
|
+
const hasUpdate = latest && !gte({ VERSION: "0.2.74", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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);
|
|
457934
458031
|
setUpdateAvailable(!!hasUpdate);
|
|
457935
458032
|
if (hasUpdate) {
|
|
457936
|
-
logForDebugging(`PackageManagerAutoUpdater: Update available ${{ VERSION: "0.2.
|
|
458033
|
+
logForDebugging(`PackageManagerAutoUpdater: Update available ${{ VERSION: "0.2.74", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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}`);
|
|
457937
458034
|
}
|
|
457938
458035
|
};
|
|
457939
458036
|
$2[0] = t1;
|
|
@@ -457967,7 +458064,7 @@ function PackageManagerAutoUpdater(t0) {
|
|
|
457967
458064
|
wrap: "truncate",
|
|
457968
458065
|
children: [
|
|
457969
458066
|
"versi\xF3n actual: ",
|
|
457970
|
-
{ VERSION: "0.2.
|
|
458067
|
+
{ VERSION: "0.2.74", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
|
|
457971
458068
|
]
|
|
457972
458069
|
});
|
|
457973
458070
|
$2[3] = verbose;
|
|
@@ -465830,7 +465927,7 @@ function buildStatusLineCommandInput(permissionMode2, exceeds200kTokens, setting
|
|
|
465830
465927
|
project_dir: getOriginalCwd(),
|
|
465831
465928
|
added_dirs: addedDirs
|
|
465832
465929
|
},
|
|
465833
|
-
version: { VERSION: "0.2.
|
|
465930
|
+
version: { VERSION: "0.2.74", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
|
|
465834
465931
|
output_style: {
|
|
465835
465932
|
name: outputStyleName
|
|
465836
465933
|
},
|
|
@@ -490153,7 +490250,7 @@ function completeOnboarding() {
|
|
|
490153
490250
|
saveGlobalConfig((current) => ({
|
|
490154
490251
|
...current,
|
|
490155
490252
|
hasCompletedOnboarding: true,
|
|
490156
|
-
lastOnboardingVersion: { VERSION: "0.2.
|
|
490253
|
+
lastOnboardingVersion: { VERSION: "0.2.74", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
|
|
490157
490254
|
}));
|
|
490158
490255
|
}
|
|
490159
490256
|
function showDialog(root2, renderer) {
|
|
@@ -496842,7 +496939,7 @@ function getRecentReleaseNotes(currentVersion, previousVersion, changelogContent
|
|
|
496842
496939
|
}
|
|
496843
496940
|
return [];
|
|
496844
496941
|
}
|
|
496845
|
-
async function checkForReleaseNotes(lastSeenVersion, currentVersion = { VERSION: "0.2.
|
|
496942
|
+
async function checkForReleaseNotes(lastSeenVersion, currentVersion = { VERSION: "0.2.74", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION) {
|
|
496846
496943
|
if (false) {}
|
|
496847
496944
|
const cachedChangelog = await getStoredChangelog();
|
|
496848
496945
|
if (lastSeenVersion !== currentVersion || !cachedChangelog) {
|
|
@@ -502375,7 +502472,7 @@ async function startMCPServer(cwd3, debug3, verbose) {
|
|
|
502375
502472
|
setCwd(cwd3);
|
|
502376
502473
|
const server2 = new Server({
|
|
502377
502474
|
name: "theus/tengu",
|
|
502378
|
-
version: { VERSION: "0.2.
|
|
502475
|
+
version: { VERSION: "0.2.74", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
|
|
502379
502476
|
}, {
|
|
502380
502477
|
capabilities: {
|
|
502381
502478
|
tools: {}
|
|
@@ -503817,7 +503914,7 @@ async function setupTokenHandler(root2) {
|
|
|
503817
503914
|
gap: 1,
|
|
503818
503915
|
children: [
|
|
503819
503916
|
/* @__PURE__ */ jsx_runtime502.jsx(TheusBanner, {
|
|
503820
|
-
version: { VERSION: "0.2.
|
|
503917
|
+
version: { VERSION: "0.2.74", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
|
|
503821
503918
|
}),
|
|
503822
503919
|
showAuthWarning && /* @__PURE__ */ jsx_runtime502.jsxs(ThemedBox_default, {
|
|
503823
503920
|
flexDirection: "column",
|
|
@@ -505402,7 +505499,7 @@ ${assistantAddendum}` : assistantAddendum;
|
|
|
505402
505499
|
}
|
|
505403
505500
|
}
|
|
505404
505501
|
logForDiagnosticsNoPII("info", "started", {
|
|
505405
|
-
version: { VERSION: "0.2.
|
|
505502
|
+
version: { VERSION: "0.2.74", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
|
|
505406
505503
|
is_native_binary: isInBundledMode()
|
|
505407
505504
|
});
|
|
505408
505505
|
registerCleanup(async () => {
|
|
@@ -506270,7 +506367,7 @@ Usage: theus --remote "your task description"`, () => gracefulShutdown(1));
|
|
|
506270
506367
|
pendingHookMessages
|
|
506271
506368
|
}, renderAndRun);
|
|
506272
506369
|
}
|
|
506273
|
-
}).version(`${{ VERSION: "0.2.
|
|
506370
|
+
}).version(`${{ VERSION: "0.2.74", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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");
|
|
506274
506371
|
program2.option("-w, --worktree [name]", "Crea un nuevo worktree de git para esta sesi\xF3n (opcionalmente indica un nombre)");
|
|
506275
506372
|
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.");
|
|
506276
506373
|
if (canUserConfigureAdvisor()) {
|
|
@@ -506871,7 +506968,7 @@ if (false) {}
|
|
|
506871
506968
|
async function main2() {
|
|
506872
506969
|
const args = process.argv.slice(2);
|
|
506873
506970
|
if (args.length === 1 && (args[0] === "--version" || args[0] === "-v" || args[0] === "-V")) {
|
|
506874
|
-
console.log(`${{ VERSION: "0.2.
|
|
506971
|
+
console.log(`${{ VERSION: "0.2.74", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)`);
|
|
506875
506972
|
return;
|
|
506876
506973
|
}
|
|
506877
506974
|
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.74",
|
|
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",
|