theus-cli 0.2.67 → 0.2.68
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 +196 -116
- package/package.json +1 -1
package/cli.js
CHANGED
|
@@ -58714,7 +58714,7 @@ async function _executeApiKeyHelper(isNonInteractiveSession) {
|
|
|
58714
58714
|
if (isApiKeyHelperFromProjectOrLocalSettings()) {
|
|
58715
58715
|
const hasTrust = checkHasTrustDialogAccepted();
|
|
58716
58716
|
if (!hasTrust && !isNonInteractiveSession) {
|
|
58717
|
-
const error40 = new Error(`Security: apiKeyHelper executed before workspace trust is confirmed. If you see this message, post in ${{ VERSION: "0.2.
|
|
58717
|
+
const error40 = new Error(`Security: apiKeyHelper executed before workspace trust is confirmed. If you see this message, post in ${{ VERSION: "0.2.68", BUILD_TIME: "1970-01-01T00:00:00.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}.`);
|
|
58718
58718
|
logAntError("apiKeyHelper invoked before trust check", error40);
|
|
58719
58719
|
logEvent("theus_apiKeyHelper_missing_trust11", {});
|
|
58720
58720
|
return null;
|
|
@@ -58758,7 +58758,7 @@ async function runAwsAuthRefresh() {
|
|
|
58758
58758
|
if (isAwsAuthRefreshFromProjectSettings()) {
|
|
58759
58759
|
const hasTrust = checkHasTrustDialogAccepted();
|
|
58760
58760
|
if (!hasTrust && !getIsNonInteractiveSession()) {
|
|
58761
|
-
const error40 = new Error(`Security: awsAuthRefresh executed before workspace trust is confirmed. If you see this message, post in ${{ VERSION: "0.2.
|
|
58761
|
+
const error40 = new Error(`Security: awsAuthRefresh executed before workspace trust is confirmed. If you see this message, post in ${{ VERSION: "0.2.68", BUILD_TIME: "1970-01-01T00:00:00.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}.`);
|
|
58762
58762
|
logAntError("awsAuthRefresh invoked before trust check", error40);
|
|
58763
58763
|
logEvent("theus_awsAuthRefresh_missing_trust", {});
|
|
58764
58764
|
return false;
|
|
@@ -58818,7 +58818,7 @@ async function getAwsCredsFromCredentialExport() {
|
|
|
58818
58818
|
if (isAwsCredentialExportFromProjectSettings()) {
|
|
58819
58819
|
const hasTrust = checkHasTrustDialogAccepted();
|
|
58820
58820
|
if (!hasTrust && !getIsNonInteractiveSession()) {
|
|
58821
|
-
const error40 = new Error(`Security: awsCredentialExport executed before workspace trust is confirmed. If you see this message, post in ${{ VERSION: "0.2.
|
|
58821
|
+
const error40 = new Error(`Security: awsCredentialExport executed before workspace trust is confirmed. If you see this message, post in ${{ VERSION: "0.2.68", BUILD_TIME: "1970-01-01T00:00:00.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}.`);
|
|
58822
58822
|
logAntError("awsCredentialExport invoked before trust check", error40);
|
|
58823
58823
|
logEvent("theus_awsCredentialExport_missing_trust", {});
|
|
58824
58824
|
return null;
|
|
@@ -58903,7 +58903,7 @@ async function runGcpAuthRefresh() {
|
|
|
58903
58903
|
if (isGcpAuthRefreshFromProjectSettings()) {
|
|
58904
58904
|
const hasTrust = checkHasTrustDialogAccepted();
|
|
58905
58905
|
if (!hasTrust && !getIsNonInteractiveSession()) {
|
|
58906
|
-
const error40 = new Error(`Security: gcpAuthRefresh executed before workspace trust is confirmed. If you see this message, post in ${{ VERSION: "0.2.
|
|
58906
|
+
const error40 = new Error(`Security: gcpAuthRefresh executed before workspace trust is confirmed. If you see this message, post in ${{ VERSION: "0.2.68", BUILD_TIME: "1970-01-01T00:00:00.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}.`);
|
|
58907
58907
|
logAntError("gcpAuthRefresh invoked before trust check", error40);
|
|
58908
58908
|
logEvent("theus_gcpAuthRefresh_missing_trust", {});
|
|
58909
58909
|
return false;
|
|
@@ -59622,7 +59622,7 @@ var init_auth = __esm(() => {
|
|
|
59622
59622
|
|
|
59623
59623
|
// utils/userAgent.ts
|
|
59624
59624
|
function getTheusCodeUserAgent() {
|
|
59625
|
-
return `theus-code/${{ VERSION: "0.2.
|
|
59625
|
+
return `theus-code/${{ VERSION: "0.2.68", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION}`;
|
|
59626
59626
|
}
|
|
59627
59627
|
|
|
59628
59628
|
// utils/workloadContext.ts
|
|
@@ -59644,7 +59644,7 @@ function getUserAgent() {
|
|
|
59644
59644
|
const clientApp = process.env.THEUS_AGENT_SDK_CLIENT_APP ? `, client-app/${process.env.THEUS_AGENT_SDK_CLIENT_APP}` : "";
|
|
59645
59645
|
const workload = getWorkload();
|
|
59646
59646
|
const workloadSuffix = workload ? `, workload/${workload}` : "";
|
|
59647
|
-
return `theus-cli/${{ VERSION: "0.2.
|
|
59647
|
+
return `theus-cli/${{ VERSION: "0.2.68", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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})`;
|
|
59648
59648
|
}
|
|
59649
59649
|
function getMCPUserAgent() {
|
|
59650
59650
|
const parts = [];
|
|
@@ -59658,7 +59658,7 @@ function getMCPUserAgent() {
|
|
|
59658
59658
|
parts.push(`client-app/${process.env.THEUS_AGENT_SDK_CLIENT_APP}`);
|
|
59659
59659
|
}
|
|
59660
59660
|
const suffix = parts.length > 0 ? ` (${parts.join(", ")})` : "";
|
|
59661
|
-
return `theus-code/${{ VERSION: "0.2.
|
|
59661
|
+
return `theus-code/${{ VERSION: "0.2.68", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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}`;
|
|
59662
59662
|
}
|
|
59663
59663
|
function getWebFetchUserAgent() {
|
|
59664
59664
|
return `Theus-User (${getTheusCodeUserAgent()}; +https://support.theus.pe/)`;
|
|
@@ -59796,7 +59796,7 @@ var init_user = __esm(() => {
|
|
|
59796
59796
|
deviceId,
|
|
59797
59797
|
sessionId: getSessionId(),
|
|
59798
59798
|
email: getEmail(),
|
|
59799
|
-
appVersion: { VERSION: "0.2.
|
|
59799
|
+
appVersion: { VERSION: "0.2.68", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
|
|
59800
59800
|
platform: getHostPlatformForAnalytics(),
|
|
59801
59801
|
organizationUuid,
|
|
59802
59802
|
accountUuid,
|
|
@@ -61506,7 +61506,7 @@ var init_metadata = __esm(() => {
|
|
|
61506
61506
|
COMPOUND_OPERATOR_REGEX = /\s*(?:&&|\|\||[;|])\s*/;
|
|
61507
61507
|
WHITESPACE_REGEX = /\s+/;
|
|
61508
61508
|
getVersionBase = memoize_default(() => {
|
|
61509
|
-
const match = { VERSION: "0.2.
|
|
61509
|
+
const match = { VERSION: "0.2.68", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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]+)?/);
|
|
61510
61510
|
return match ? match[0] : undefined;
|
|
61511
61511
|
});
|
|
61512
61512
|
buildEnvContext = memoize_default(async () => {
|
|
@@ -61546,9 +61546,9 @@ var init_metadata = __esm(() => {
|
|
|
61546
61546
|
isGithubAction: isEnvTruthy(process.env.GITHUB_ACTIONS),
|
|
61547
61547
|
isTheusCodeAction: isEnvTruthy(process.env.THEUS_CODE_ACTION),
|
|
61548
61548
|
isTheusAiAuth: isTheusAISubscriber(),
|
|
61549
|
-
version: { VERSION: "0.2.
|
|
61549
|
+
version: { VERSION: "0.2.68", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
|
|
61550
61550
|
versionBase: getVersionBase(),
|
|
61551
|
-
buildTime: { VERSION: "0.2.
|
|
61551
|
+
buildTime: { VERSION: "0.2.68", BUILD_TIME: "1970-01-01T00:00:00.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,
|
|
61552
61552
|
deploymentEnvironment: env3.detectDeploymentEnvironment(),
|
|
61553
61553
|
...isEnvTruthy(process.env.GITHUB_ACTIONS) && {
|
|
61554
61554
|
githubEventName: process.env.GITHUB_EVENT_NAME,
|
|
@@ -62164,7 +62164,7 @@ function initialize1PEventLogging() {
|
|
|
62164
62164
|
const platform2 = getPlatform();
|
|
62165
62165
|
const attributes = {
|
|
62166
62166
|
[ATTR_SERVICE_NAME]: "theus-code",
|
|
62167
|
-
[ATTR_SERVICE_VERSION]: { VERSION: "0.2.
|
|
62167
|
+
[ATTR_SERVICE_VERSION]: { VERSION: "0.2.68", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
|
|
62168
62168
|
};
|
|
62169
62169
|
if (platform2 === "wsl") {
|
|
62170
62170
|
const wslVersion = getWslVersion();
|
|
@@ -62191,7 +62191,7 @@ function initialize1PEventLogging() {
|
|
|
62191
62191
|
})
|
|
62192
62192
|
]
|
|
62193
62193
|
});
|
|
62194
|
-
firstPartyEventLogger = firstPartyEventLoggerProvider.getLogger("com.theus.theus_code.events", { VERSION: "0.2.
|
|
62194
|
+
firstPartyEventLogger = firstPartyEventLoggerProvider.getLogger("com.theus.theus_code.events", { VERSION: "0.2.68", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION);
|
|
62195
62195
|
}
|
|
62196
62196
|
async function reinitialize1PEventLoggingIfConfigChanged() {
|
|
62197
62197
|
if (!is1PEventLoggingEnabled() || !firstPartyEventLoggerProvider) {
|
|
@@ -64058,7 +64058,7 @@ function getAttributionHeader(fingerprint) {
|
|
|
64058
64058
|
if (!isAttributionHeaderEnabled()) {
|
|
64059
64059
|
return "";
|
|
64060
64060
|
}
|
|
64061
|
-
const version2 = `${{ VERSION: "0.2.
|
|
64061
|
+
const version2 = `${{ VERSION: "0.2.68", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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}`;
|
|
64062
64062
|
const entrypoint = process.env.THEUS_CODE_ENTRYPOINT ?? "unknown";
|
|
64063
64063
|
const cch = "";
|
|
64064
64064
|
const workload = getWorkload();
|
|
@@ -107013,7 +107013,7 @@ Complete the user's request by providing accurate, documentation-based guidance.
|
|
|
107013
107013
|
}
|
|
107014
107014
|
function getFeedbackGuideline() {
|
|
107015
107015
|
if (isUsing3PServices()) {
|
|
107016
|
-
return `- When you cannot find an answer or the feature doesn't exist, direct the user to ${{ VERSION: "0.2.
|
|
107016
|
+
return `- When you cannot find an answer or the feature doesn't exist, direct the user to ${{ VERSION: "0.2.68", BUILD_TIME: "1970-01-01T00:00:00.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}`;
|
|
107017
107017
|
}
|
|
107018
107018
|
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";
|
|
107019
107019
|
}
|
|
@@ -165905,7 +165905,7 @@ function getTelemetryAttributes() {
|
|
|
165905
165905
|
attributes["session.id"] = sessionId;
|
|
165906
165906
|
}
|
|
165907
165907
|
if (shouldIncludeAttribute("OTEL_METRICS_INCLUDE_VERSION")) {
|
|
165908
|
-
attributes["app.version"] = { VERSION: "0.2.
|
|
165908
|
+
attributes["app.version"] = { VERSION: "0.2.68", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION;
|
|
165909
165909
|
}
|
|
165910
165910
|
const oauthAccount = getOauthAccountInfo();
|
|
165911
165911
|
if (oauthAccount) {
|
|
@@ -201589,7 +201589,7 @@ function getInstallationEnv() {
|
|
|
201589
201589
|
return;
|
|
201590
201590
|
}
|
|
201591
201591
|
function getTheusCodeVersion() {
|
|
201592
|
-
return { VERSION: "0.2.
|
|
201592
|
+
return { VERSION: "0.2.68", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION;
|
|
201593
201593
|
}
|
|
201594
201594
|
async function getInstalledVSCodeExtensionVersion(command) {
|
|
201595
201595
|
const { stdout } = await execFileNoThrow(command, ["--list-extensions", "--show-versions"], {
|
|
@@ -203035,7 +203035,7 @@ async function getMcpHeadersFromHelper(serverName, config2) {
|
|
|
203035
203035
|
if ("scope" in config2 && isMcpServerFromProjectOrLocalSettings(config2) && !getIsNonInteractiveSession()) {
|
|
203036
203036
|
const hasTrust = checkHasTrustDialogAccepted();
|
|
203037
203037
|
if (!hasTrust) {
|
|
203038
|
-
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.
|
|
203038
|
+
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.68", BUILD_TIME: "1970-01-01T00:00:00.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}.`);
|
|
203039
203039
|
logAntError("MCP headersHelper invoked before trust check", error40);
|
|
203040
203040
|
logEvent("theus_mcp_headersHelper_missing_trust", {});
|
|
203041
203041
|
return null;
|
|
@@ -204245,7 +204245,7 @@ async function setupSdkMcpClients(sdkMcpConfigs, sendMcpMessage) {
|
|
|
204245
204245
|
const client2 = new Client({
|
|
204246
204246
|
name: "theus-code",
|
|
204247
204247
|
title: "Theus",
|
|
204248
|
-
version: { VERSION: "0.2.
|
|
204248
|
+
version: { VERSION: "0.2.68", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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",
|
|
204249
204249
|
description: "Theus's agentic coding tool",
|
|
204250
204250
|
websiteUrl: PRODUCT_URL
|
|
204251
204251
|
}, {
|
|
@@ -204599,7 +204599,7 @@ var init_client5 = __esm(() => {
|
|
|
204599
204599
|
const client2 = new Client({
|
|
204600
204600
|
name: "theus-code",
|
|
204601
204601
|
title: "Theus",
|
|
204602
|
-
version: { VERSION: "0.2.
|
|
204602
|
+
version: { VERSION: "0.2.68", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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",
|
|
204603
204603
|
description: "Theus's agentic coding tool",
|
|
204604
204604
|
websiteUrl: PRODUCT_URL
|
|
204605
204605
|
}, {
|
|
@@ -215934,7 +215934,7 @@ async function initializeBetaTracing(resource) {
|
|
|
215934
215934
|
});
|
|
215935
215935
|
logs.setGlobalLoggerProvider(loggerProvider);
|
|
215936
215936
|
setLoggerProvider(loggerProvider);
|
|
215937
|
-
const eventLogger = logs.getLogger("com.theus.theus_code.events", { VERSION: "0.2.
|
|
215937
|
+
const eventLogger = logs.getLogger("com.theus.theus_code.events", { VERSION: "0.2.68", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION);
|
|
215938
215938
|
setEventLogger(eventLogger);
|
|
215939
215939
|
process.on("beforeExit", async () => {
|
|
215940
215940
|
await loggerProvider?.forceFlush();
|
|
@@ -215974,7 +215974,7 @@ async function initializeTelemetry() {
|
|
|
215974
215974
|
const platform4 = getPlatform();
|
|
215975
215975
|
const baseAttributes = {
|
|
215976
215976
|
[ATTR_SERVICE_NAME]: "theus-code",
|
|
215977
|
-
[ATTR_SERVICE_VERSION]: { VERSION: "0.2.
|
|
215977
|
+
[ATTR_SERVICE_VERSION]: { VERSION: "0.2.68", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
|
|
215978
215978
|
};
|
|
215979
215979
|
if (platform4 === "wsl") {
|
|
215980
215980
|
const wslVersion = getWslVersion();
|
|
@@ -216019,7 +216019,7 @@ async function initializeTelemetry() {
|
|
|
216019
216019
|
} catch {}
|
|
216020
216020
|
};
|
|
216021
216021
|
registerCleanup(shutdownTelemetry2);
|
|
216022
|
-
return meterProvider2.getMeter("com.theus.theus_code", { VERSION: "0.2.
|
|
216022
|
+
return meterProvider2.getMeter("com.theus.theus_code", { VERSION: "0.2.68", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION);
|
|
216023
216023
|
}
|
|
216024
216024
|
const meterProvider = new MeterProvider({
|
|
216025
216025
|
resource,
|
|
@@ -216039,7 +216039,7 @@ async function initializeTelemetry() {
|
|
|
216039
216039
|
});
|
|
216040
216040
|
logs.setGlobalLoggerProvider(loggerProvider);
|
|
216041
216041
|
setLoggerProvider(loggerProvider);
|
|
216042
|
-
const eventLogger = logs.getLogger("com.theus.theus_code.events", { VERSION: "0.2.
|
|
216042
|
+
const eventLogger = logs.getLogger("com.theus.theus_code.events", { VERSION: "0.2.68", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION);
|
|
216043
216043
|
setEventLogger(eventLogger);
|
|
216044
216044
|
logForDebugging("[3P telemetry] Event logger set successfully");
|
|
216045
216045
|
process.on("beforeExit", async () => {
|
|
@@ -216101,7 +216101,7 @@ Current timeout: ${timeoutMs}ms
|
|
|
216101
216101
|
}
|
|
216102
216102
|
};
|
|
216103
216103
|
registerCleanup(shutdownTelemetry);
|
|
216104
|
-
return meterProvider.getMeter("com.theus.theus_code", { VERSION: "0.2.
|
|
216104
|
+
return meterProvider.getMeter("com.theus.theus_code", { VERSION: "0.2.68", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION);
|
|
216105
216105
|
}
|
|
216106
216106
|
async function flushTelemetry() {
|
|
216107
216107
|
const meterProvider = getMeterProvider();
|
|
@@ -216643,7 +216643,7 @@ async function installOrUpdateTheusPackage(channel2, specificVersion) {
|
|
|
216643
216643
|
return "install_failed";
|
|
216644
216644
|
}
|
|
216645
216645
|
const versionSpec = specificVersion ? specificVersion : channel2 === "stable" ? "stable" : "latest";
|
|
216646
|
-
const result = await execFileNoThrowWithCwd("npm", ["install", `${{ VERSION: "0.2.
|
|
216646
|
+
const result = await execFileNoThrowWithCwd("npm", ["install", `${{ VERSION: "0.2.68", BUILD_TIME: "1970-01-01T00:00:00.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 });
|
|
216647
216647
|
if (result.code !== 0) {
|
|
216648
216648
|
const error40 = new Error(`Failed to install Theus CLI package: ${result.stderr}`);
|
|
216649
216649
|
logError2(error40);
|
|
@@ -216789,9 +216789,9 @@ async function assertMinVersion() {
|
|
|
216789
216789
|
if (false) {}
|
|
216790
216790
|
try {
|
|
216791
216791
|
const versionConfig = await getDynamicConfig_BLOCKS_ON_INIT("theus_version_config", { minVersion: "0.0.0" });
|
|
216792
|
-
if (versionConfig.minVersion && lt({ VERSION: "0.2.
|
|
216792
|
+
if (versionConfig.minVersion && lt({ VERSION: "0.2.68", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
|
|
216793
216793
|
console.error(`
|
|
216794
|
-
It looks like your version of Theus (${{ VERSION: "0.2.
|
|
216794
|
+
It looks like your version of Theus (${{ VERSION: "0.2.68", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.
|
|
216795
216795
|
A newer version (${versionConfig.minVersion} or higher) is required to continue.
|
|
216796
216796
|
|
|
216797
216797
|
To update, please run:
|
|
@@ -216928,7 +216928,7 @@ async function getInstallationPrefix() {
|
|
|
216928
216928
|
return prefixResult.stdout.trim();
|
|
216929
216929
|
}
|
|
216930
216930
|
function getGlobalInstallPackageManager() {
|
|
216931
|
-
if ({ VERSION: "0.2.
|
|
216931
|
+
if ({ VERSION: "0.2.68", BUILD_TIME: "1970-01-01T00:00:00.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") {
|
|
216932
216932
|
return "npm";
|
|
216933
216933
|
}
|
|
216934
216934
|
return env3.isRunningWithBun() ? "bun" : "npm";
|
|
@@ -216953,7 +216953,7 @@ async function checkGlobalInstallPermissions() {
|
|
|
216953
216953
|
}
|
|
216954
216954
|
async function getLatestVersion(channel2) {
|
|
216955
216955
|
const npmTag = channel2 === "stable" ? "stable" : "latest";
|
|
216956
|
-
const result = await execFileNoThrowWithCwd("npm", ["view", `${{ VERSION: "0.2.
|
|
216956
|
+
const result = await execFileNoThrowWithCwd("npm", ["view", `${{ VERSION: "0.2.68", BUILD_TIME: "1970-01-01T00:00:00.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: homedir17() });
|
|
216957
216957
|
if (result.code !== 0) {
|
|
216958
216958
|
logForDebugging(`npm view failed with code ${result.code}`);
|
|
216959
216959
|
if (result.stderr) {
|
|
@@ -216969,7 +216969,7 @@ async function getLatestVersion(channel2) {
|
|
|
216969
216969
|
return result.stdout.trim();
|
|
216970
216970
|
}
|
|
216971
216971
|
async function getNpmDistTags() {
|
|
216972
|
-
const result = await execFileNoThrowWithCwd("npm", ["view", { VERSION: "0.2.
|
|
216972
|
+
const result = await execFileNoThrowWithCwd("npm", ["view", { VERSION: "0.2.68", BUILD_TIME: "1970-01-01T00:00:00.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: homedir17() });
|
|
216973
216973
|
if (result.code !== 0) {
|
|
216974
216974
|
logForDebugging(`npm view dist-tags failed with code ${result.code}`);
|
|
216975
216975
|
return { latest: null, stable: null };
|
|
@@ -217009,7 +217009,7 @@ async function installGlobalPackage(specificVersion) {
|
|
|
217009
217009
|
logError2(new AutoUpdaterError("Another process is currently installing an update"));
|
|
217010
217010
|
logEvent("theus_auto_updater_lock_contention", {
|
|
217011
217011
|
pid: process.pid,
|
|
217012
|
-
currentVersion: { VERSION: "0.2.
|
|
217012
|
+
currentVersion: { VERSION: "0.2.68", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
|
|
217013
217013
|
});
|
|
217014
217014
|
return "in_progress";
|
|
217015
217015
|
}
|
|
@@ -217018,7 +217018,7 @@ async function installGlobalPackage(specificVersion) {
|
|
|
217018
217018
|
if (!env3.isRunningWithBun() && env3.isNpmFromWindowsPath()) {
|
|
217019
217019
|
logError2(new Error("Windows NPM detected in WSL environment"));
|
|
217020
217020
|
logEvent("theus_auto_updater_windows_npm_in_wsl", {
|
|
217021
|
-
currentVersion: { VERSION: "0.2.
|
|
217021
|
+
currentVersion: { VERSION: "0.2.68", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
|
|
217022
217022
|
});
|
|
217023
217023
|
console.error(`
|
|
217024
217024
|
Error: Windows NPM detected in WSL
|
|
@@ -217037,7 +217037,7 @@ To fix this issue:
|
|
|
217037
217037
|
if (!hasPermissions) {
|
|
217038
217038
|
return "no_permissions";
|
|
217039
217039
|
}
|
|
217040
|
-
const packageSpec = specificVersion ? `${{ VERSION: "0.2.
|
|
217040
|
+
const packageSpec = specificVersion ? `${{ VERSION: "0.2.68", BUILD_TIME: "1970-01-01T00:00:00.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.68", BUILD_TIME: "1970-01-01T00:00:00.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;
|
|
217041
217041
|
const packageManager = getGlobalInstallPackageManager();
|
|
217042
217042
|
const installResult = await execFileNoThrowWithCwd(packageManager, ["install", "-g", packageSpec], { cwd: homedir17() });
|
|
217043
217043
|
if (installResult.code !== 0) {
|
|
@@ -217365,8 +217365,8 @@ async function detectMultipleInstallations() {
|
|
|
217365
217365
|
installations.push({ type: "npm-local", path: localPath });
|
|
217366
217366
|
}
|
|
217367
217367
|
const packagesToCheck = ["@theus-ai/theus-code"];
|
|
217368
|
-
if ({ VERSION: "0.2.
|
|
217369
|
-
packagesToCheck.push({ VERSION: "0.2.
|
|
217368
|
+
if ({ VERSION: "0.2.68", BUILD_TIME: "1970-01-01T00:00:00.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.68", BUILD_TIME: "1970-01-01T00:00:00.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") {
|
|
217369
|
+
packagesToCheck.push({ VERSION: "0.2.68", BUILD_TIME: "1970-01-01T00:00:00.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);
|
|
217370
217370
|
}
|
|
217371
217371
|
const npmResult = await execFileNoThrow("npm", [
|
|
217372
217372
|
"-g",
|
|
@@ -217549,7 +217549,7 @@ function detectLinuxGlobPatternWarnings() {
|
|
|
217549
217549
|
}
|
|
217550
217550
|
async function getDoctorDiagnostic() {
|
|
217551
217551
|
const installationType = await getCurrentInstallationType();
|
|
217552
|
-
const version2 = { VERSION: "0.2.
|
|
217552
|
+
const version2 = { VERSION: "0.2.68", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.68", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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";
|
|
217553
217553
|
const installationPath = await getInstallationPath();
|
|
217554
217554
|
const invokedBinary = getInvokedBinary();
|
|
217555
217555
|
const multipleInstallations = await detectMultipleInstallations();
|
|
@@ -217561,8 +217561,8 @@ async function getDoctorDiagnostic() {
|
|
|
217561
217561
|
for (const install of npmInstalls) {
|
|
217562
217562
|
if (install.type === "npm-global") {
|
|
217563
217563
|
let uninstallCmd = "npm -g uninstall @theus-ai/theus-code";
|
|
217564
|
-
if ({ VERSION: "0.2.
|
|
217565
|
-
uninstallCmd += ` && npm -g uninstall ${{ VERSION: "0.2.
|
|
217564
|
+
if ({ VERSION: "0.2.68", BUILD_TIME: "1970-01-01T00:00:00.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.68", BUILD_TIME: "1970-01-01T00:00:00.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") {
|
|
217565
|
+
uninstallCmd += ` && npm -g uninstall ${{ VERSION: "0.2.68", BUILD_TIME: "1970-01-01T00:00:00.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}`;
|
|
217566
217566
|
}
|
|
217567
217567
|
warnings.push({
|
|
217568
217568
|
issue: `Leftover npm global installation at ${install.path}`,
|
|
@@ -218373,8 +218373,8 @@ async function updateLatest(channelOrVersion, forceReinstall = false) {
|
|
|
218373
218373
|
const maxVersion = await getMaxVersion();
|
|
218374
218374
|
if (maxVersion && gt(version2, maxVersion)) {
|
|
218375
218375
|
logForDebugging(`Native installer: maxVersion ${maxVersion} is set, capping update from ${version2} to ${maxVersion}`);
|
|
218376
|
-
if (gte({ VERSION: "0.2.
|
|
218377
|
-
logForDebugging(`Native installer: current version ${{ VERSION: "0.2.
|
|
218376
|
+
if (gte({ VERSION: "0.2.68", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
|
|
218377
|
+
logForDebugging(`Native installer: current version ${{ VERSION: "0.2.68", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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`);
|
|
218378
218378
|
logEvent("theus_native_update_skipped_max_version", {
|
|
218379
218379
|
latency_ms: Date.now() - startTime2,
|
|
218380
218380
|
max_version: maxVersion,
|
|
@@ -218385,7 +218385,7 @@ async function updateLatest(channelOrVersion, forceReinstall = false) {
|
|
|
218385
218385
|
version2 = maxVersion;
|
|
218386
218386
|
}
|
|
218387
218387
|
}
|
|
218388
|
-
if (!forceReinstall && version2 === { VERSION: "0.2.
|
|
218388
|
+
if (!forceReinstall && version2 === { VERSION: "0.2.68", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
|
|
218389
218389
|
logForDebugging(`Found ${version2} at ${executablePath}, skipping install`);
|
|
218390
218390
|
logEvent("theus_native_update_complete", {
|
|
218391
218391
|
latency_ms: Date.now() - startTime2,
|
|
@@ -219135,8 +219135,8 @@ async function cleanupNpmInstallations() {
|
|
|
219135
219135
|
} else if (codePackageResult.error) {
|
|
219136
219136
|
errors4.push(codePackageResult.error);
|
|
219137
219137
|
}
|
|
219138
|
-
if ({ VERSION: "0.2.
|
|
219139
|
-
const macroPackageResult = await attemptNpmUninstall({ VERSION: "0.2.
|
|
219138
|
+
if ({ VERSION: "0.2.68", BUILD_TIME: "1970-01-01T00:00:00.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.68", BUILD_TIME: "1970-01-01T00:00:00.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") {
|
|
219139
|
+
const macroPackageResult = await attemptNpmUninstall({ VERSION: "0.2.68", BUILD_TIME: "1970-01-01T00:00:00.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);
|
|
219140
219140
|
if (macroPackageResult.success) {
|
|
219141
219141
|
removed++;
|
|
219142
219142
|
if (macroPackageResult.warning) {
|
|
@@ -229616,6 +229616,15 @@ var init_ConsoleOAuthFlow = __esm(() => {
|
|
|
229616
229616
|
var NOVEDADES;
|
|
229617
229617
|
var init_data = __esm(() => {
|
|
229618
229618
|
NOVEDADES = [
|
|
229619
|
+
{
|
|
229620
|
+
version: "v0.2.68",
|
|
229621
|
+
fecha: "2026-08-13",
|
|
229622
|
+
titulo: "Un conector ya no puede dejarte sin respuesta",
|
|
229623
|
+
puntos: [
|
|
229624
|
+
"Algunas herramientas de conectores MCP (por ejemplo, el an\xE1lisis de video de Higgsfield) declaran su formato de argumentos de una manera que ciertos proveedores rechazan de plano \u2014 y ese rechazo tumbaba el turno COMPLETO: daba igual qu\xE9 preguntaras, el modelo no respond\xEDa nada. Ahora el CLI adapta esos formatos autom\xE1ticamente antes de enviarlos y la conversaci\xF3n fluye con todos tus conectores montados.",
|
|
229625
|
+
"El mismo saneo se aplic\xF3 en el servidor, as\xED que las versiones anteriores del CLI y el chat web quedan protegidos sin actualizar. Actualizar al 0.2.68 sigue siendo lo recomendado: el arreglo local cubre tambi\xE9n proveedores propios y modelos locales."
|
|
229626
|
+
]
|
|
229627
|
+
},
|
|
229619
229628
|
{
|
|
229620
229629
|
version: "v0.2.67",
|
|
229621
229630
|
fecha: "2026-08-13",
|
|
@@ -306286,9 +306295,9 @@ function getTheusEnvMetadata() {
|
|
|
306286
306295
|
};
|
|
306287
306296
|
}
|
|
306288
306297
|
function getBuildAgeMinutes() {
|
|
306289
|
-
if (!{ VERSION: "0.2.
|
|
306298
|
+
if (!{ VERSION: "0.2.68", BUILD_TIME: "1970-01-01T00:00:00.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)
|
|
306290
306299
|
return;
|
|
306291
|
-
const buildTime = new Date({ VERSION: "0.2.
|
|
306300
|
+
const buildTime = new Date({ VERSION: "0.2.68", BUILD_TIME: "1970-01-01T00:00:00.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();
|
|
306292
306301
|
if (isNaN(buildTime))
|
|
306293
306302
|
return;
|
|
306294
306303
|
return Math.floor((Date.now() - buildTime) / 60000);
|
|
@@ -330771,7 +330780,7 @@ async function submitTranscriptShare(messages, trigger, appearanceId) {
|
|
|
330771
330780
|
} catch {}
|
|
330772
330781
|
const data = {
|
|
330773
330782
|
trigger,
|
|
330774
|
-
version: { VERSION: "0.2.
|
|
330783
|
+
version: { VERSION: "0.2.68", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
|
|
330775
330784
|
platform: process.platform,
|
|
330776
330785
|
transcript,
|
|
330777
330786
|
subagentTranscripts: Object.keys(subagentTranscripts).length > 0 ? subagentTranscripts : undefined,
|
|
@@ -330976,10 +330985,10 @@ Si el usuario indic\xF3 una duraci\xF3n, p\xE1sala en el par\xE1metro \`duration
|
|
|
330976
330985
|
|
|
330977
330986
|
// commands/issue/index.ts
|
|
330978
330987
|
function getCliVersion() {
|
|
330979
|
-
return { VERSION: "0.2.
|
|
330988
|
+
return { VERSION: "0.2.68", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.68", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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";
|
|
330980
330989
|
}
|
|
330981
330990
|
function getIssuesExplainer() {
|
|
330982
|
-
return { VERSION: "0.2.
|
|
330991
|
+
return { VERSION: "0.2.68", BUILD_TIME: "1970-01-01T00:00:00.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.68", BUILD_TIME: "1970-01-01T00:00:00.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";
|
|
330983
330992
|
}
|
|
330984
330993
|
function getActiveModelLabel() {
|
|
330985
330994
|
try {
|
|
@@ -333776,7 +333785,7 @@ function buildPrimarySection() {
|
|
|
333776
333785
|
});
|
|
333777
333786
|
return [{
|
|
333778
333787
|
label: "Version",
|
|
333779
|
-
value: { VERSION: "0.2.
|
|
333788
|
+
value: { VERSION: "0.2.68", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
|
|
333780
333789
|
}, {
|
|
333781
333790
|
label: "Session name",
|
|
333782
333791
|
value: nameValue
|
|
@@ -337592,7 +337601,7 @@ function Config({
|
|
|
337592
337601
|
}
|
|
337593
337602
|
})
|
|
337594
337603
|
}) : showSubmenu === "ChannelDowngrade" ? /* @__PURE__ */ jsx_runtime189.jsx(ChannelDowngradeDialog, {
|
|
337595
|
-
currentVersion: { VERSION: "0.2.
|
|
337604
|
+
currentVersion: { VERSION: "0.2.68", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
|
|
337596
337605
|
onChoice: (choice) => {
|
|
337597
337606
|
setShowSubmenu(null);
|
|
337598
337607
|
setTabsHidden(false);
|
|
@@ -337604,7 +337613,7 @@ function Config({
|
|
|
337604
337613
|
autoUpdatesChannel: "stable"
|
|
337605
337614
|
};
|
|
337606
337615
|
if (choice === "stay") {
|
|
337607
|
-
newSettings.minimumVersion = { VERSION: "0.2.
|
|
337616
|
+
newSettings.minimumVersion = { VERSION: "0.2.68", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION;
|
|
337608
337617
|
}
|
|
337609
337618
|
updateSettingsForSource("userSettings", newSettings);
|
|
337610
337619
|
setSettingsData((prev_27) => ({
|
|
@@ -345424,7 +345433,7 @@ function HelpV2(t0) {
|
|
|
345424
345433
|
let t6;
|
|
345425
345434
|
if ($2[31] !== tabs) {
|
|
345426
345435
|
t6 = /* @__PURE__ */ jsx_runtime217.jsx(Tabs, {
|
|
345427
|
-
title: `Theus v${{ VERSION: "0.2.
|
|
345436
|
+
title: `Theus v${{ VERSION: "0.2.68", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION}`,
|
|
345428
345437
|
color: "professionalBlue",
|
|
345429
345438
|
defaultTab: "general",
|
|
345430
345439
|
children: tabs
|
|
@@ -363676,7 +363685,7 @@ function Onboarding({
|
|
|
363676
363685
|
flexDirection: "column",
|
|
363677
363686
|
children: [
|
|
363678
363687
|
/* @__PURE__ */ jsx_runtime250.jsx(TheusBanner, {
|
|
363679
|
-
version: { VERSION: "0.2.
|
|
363688
|
+
version: { VERSION: "0.2.68", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
|
|
363680
363689
|
}),
|
|
363681
363690
|
/* @__PURE__ */ jsx_runtime250.jsxs(ThemedBox_default, {
|
|
363682
363691
|
flexDirection: "column",
|
|
@@ -365080,7 +365089,7 @@ function getAllReleaseNotes(changelogContent = getStoredChangelogFromMemory()) {
|
|
|
365080
365089
|
return [];
|
|
365081
365090
|
}
|
|
365082
365091
|
}
|
|
365083
|
-
async function checkForReleaseNotes(lastSeenVersion, currentVersion = { VERSION: "0.2.
|
|
365092
|
+
async function checkForReleaseNotes(lastSeenVersion, currentVersion = { VERSION: "0.2.68", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION) {
|
|
365084
365093
|
if (false) {}
|
|
365085
365094
|
const cachedChangelog = await getStoredChangelog();
|
|
365086
365095
|
if (lastSeenVersion !== currentVersion || !cachedChangelog) {
|
|
@@ -369270,7 +369279,7 @@ var init_Messages = __esm(() => {
|
|
|
369270
369279
|
let t1;
|
|
369271
369280
|
if ($2[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
369272
369281
|
t1 = /* @__PURE__ */ jsx_runtime263.jsx(TheusSessionHeader, {
|
|
369273
|
-
version: { VERSION: "0.2.
|
|
369282
|
+
version: { VERSION: "0.2.68", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
|
|
369274
369283
|
});
|
|
369275
369284
|
$2[0] = t1;
|
|
369276
369285
|
} else {
|
|
@@ -399808,7 +399817,7 @@ async function captureMemoryDiagnostics(trigger, dumpNumber = 0) {
|
|
|
399808
399817
|
smapsRollup,
|
|
399809
399818
|
platform: process.platform,
|
|
399810
399819
|
nodeVersion: process.version,
|
|
399811
|
-
ccVersion: { VERSION: "0.2.
|
|
399820
|
+
ccVersion: { VERSION: "0.2.68", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
|
|
399812
399821
|
};
|
|
399813
399822
|
}
|
|
399814
399823
|
async function performHeapDump(trigger = "manual", dumpNumber = 0) {
|
|
@@ -400569,7 +400578,7 @@ var init_bridge_kick = __esm(() => {
|
|
|
400569
400578
|
var call67 = async () => {
|
|
400570
400579
|
return {
|
|
400571
400580
|
type: "text",
|
|
400572
|
-
value: { VERSION: "0.2.
|
|
400581
|
+
value: { VERSION: "0.2.68", BUILD_TIME: "1970-01-01T00:00:00.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.68", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.68", BUILD_TIME: "1970-01-01T00:00:00.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.68", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
|
|
400573
400582
|
};
|
|
400574
400583
|
}, version2, version_default;
|
|
400575
400584
|
var init_version = __esm(() => {
|
|
@@ -403170,7 +403179,7 @@ var SECRET_NAME_PATTERN, EXTRA_ENV_ALLOWLIST, REDACTED2 = "\u2039oculto\u203A",
|
|
|
403170
403179
|
const lines = [];
|
|
403171
403180
|
lines.push("## Entorno de ejecuci\xF3n");
|
|
403172
403181
|
lines.push("");
|
|
403173
|
-
const version3 = { VERSION: "0.2.
|
|
403182
|
+
const version3 = { VERSION: "0.2.68", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.68", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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";
|
|
403174
403183
|
lines.push(`- Versi\xF3n de Theus: ${version3}`);
|
|
403175
403184
|
lines.push(`- Directorio de trabajo: ${getCwd()}`);
|
|
403176
403185
|
lines.push(`- \xBFRepositorio git?: ${isGit ? "s\xED" : "no"}`);
|
|
@@ -405711,13 +405720,13 @@ async function updateReleaseBundle() {
|
|
|
405711
405720
|
await gracefulShutdown(1);
|
|
405712
405721
|
return;
|
|
405713
405722
|
}
|
|
405714
|
-
if (gte({ VERSION: "0.2.
|
|
405715
|
-
writeToStdout(source_default.green(`Theus is up to date (${{ VERSION: "0.2.
|
|
405723
|
+
if (gte({ VERSION: "0.2.68", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
|
|
405724
|
+
writeToStdout(source_default.green(`Theus is up to date (${{ VERSION: "0.2.68", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION})`) + `
|
|
405716
405725
|
`);
|
|
405717
405726
|
await gracefulShutdown(0);
|
|
405718
405727
|
return;
|
|
405719
405728
|
}
|
|
405720
|
-
writeToStdout(`New version available: ${latest} (current: ${{ VERSION: "0.2.
|
|
405729
|
+
writeToStdout(`New version available: ${latest} (current: ${{ VERSION: "0.2.68", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION})
|
|
405721
405730
|
`);
|
|
405722
405731
|
writeToStdout(`Installing update from theus.pe/dl...
|
|
405723
405732
|
`);
|
|
@@ -405751,7 +405760,7 @@ async function updateReleaseBundle() {
|
|
|
405751
405760
|
return;
|
|
405752
405761
|
}
|
|
405753
405762
|
cpSync(staged, bundleDir, { recursive: true, force: true });
|
|
405754
|
-
writeToStdout(source_default.green(`Successfully updated from ${{ VERSION: "0.2.
|
|
405763
|
+
writeToStdout(source_default.green(`Successfully updated from ${{ VERSION: "0.2.68", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION} to version ${latest}`) + `
|
|
405755
405764
|
`);
|
|
405756
405765
|
await regenerateCompletionCache();
|
|
405757
405766
|
} finally {
|
|
@@ -405764,7 +405773,7 @@ async function updateReleaseBundle() {
|
|
|
405764
405773
|
async function update() {
|
|
405765
405774
|
logEvent("theus_update_check", {});
|
|
405766
405775
|
await updateNaupa();
|
|
405767
|
-
writeToStdout(`Current version: ${{ VERSION: "0.2.
|
|
405776
|
+
writeToStdout(`Current version: ${{ VERSION: "0.2.68", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION}
|
|
405768
405777
|
`);
|
|
405769
405778
|
const channel2 = getInitialSettings()?.autoUpdatesChannel ?? "latest";
|
|
405770
405779
|
writeToStdout(`Checking for updates to ${channel2} version...
|
|
@@ -405843,8 +405852,8 @@ async function update() {
|
|
|
405843
405852
|
writeToStdout(`Theus is managed by Homebrew.
|
|
405844
405853
|
`);
|
|
405845
405854
|
const latest = await getLatestVersion(channel2);
|
|
405846
|
-
if (latest && !gte({ VERSION: "0.2.
|
|
405847
|
-
writeToStdout(`Update available: ${{ VERSION: "0.2.
|
|
405855
|
+
if (latest && !gte({ VERSION: "0.2.68", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
|
|
405856
|
+
writeToStdout(`Update available: ${{ VERSION: "0.2.68", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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}
|
|
405848
405857
|
`);
|
|
405849
405858
|
writeToStdout(`
|
|
405850
405859
|
`);
|
|
@@ -405860,8 +405869,8 @@ async function update() {
|
|
|
405860
405869
|
writeToStdout(`Theus is managed by winget.
|
|
405861
405870
|
`);
|
|
405862
405871
|
const latest = await getLatestVersion(channel2);
|
|
405863
|
-
if (latest && !gte({ VERSION: "0.2.
|
|
405864
|
-
writeToStdout(`Update available: ${{ VERSION: "0.2.
|
|
405872
|
+
if (latest && !gte({ VERSION: "0.2.68", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
|
|
405873
|
+
writeToStdout(`Update available: ${{ VERSION: "0.2.68", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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}
|
|
405865
405874
|
`);
|
|
405866
405875
|
writeToStdout(`
|
|
405867
405876
|
`);
|
|
@@ -405877,8 +405886,8 @@ async function update() {
|
|
|
405877
405886
|
writeToStdout(`Theus is managed by apk.
|
|
405878
405887
|
`);
|
|
405879
405888
|
const latest = await getLatestVersion(channel2);
|
|
405880
|
-
if (latest && !gte({ VERSION: "0.2.
|
|
405881
|
-
writeToStdout(`Update available: ${{ VERSION: "0.2.
|
|
405889
|
+
if (latest && !gte({ VERSION: "0.2.68", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
|
|
405890
|
+
writeToStdout(`Update available: ${{ VERSION: "0.2.68", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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}
|
|
405882
405891
|
`);
|
|
405883
405892
|
writeToStdout(`
|
|
405884
405893
|
`);
|
|
@@ -405943,11 +405952,11 @@ async function update() {
|
|
|
405943
405952
|
`);
|
|
405944
405953
|
await gracefulShutdown(1);
|
|
405945
405954
|
}
|
|
405946
|
-
if (result.latestVersion === { VERSION: "0.2.
|
|
405947
|
-
writeToStdout(source_default.green(`Theus is up to date (${{ VERSION: "0.2.
|
|
405955
|
+
if (result.latestVersion === { VERSION: "0.2.68", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION) {
|
|
405956
|
+
writeToStdout(source_default.green(`Theus is up to date (${{ VERSION: "0.2.68", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION})`) + `
|
|
405948
405957
|
`);
|
|
405949
405958
|
} else {
|
|
405950
|
-
writeToStdout(source_default.green(`Successfully updated from ${{ VERSION: "0.2.
|
|
405959
|
+
writeToStdout(source_default.green(`Successfully updated from ${{ VERSION: "0.2.68", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION} to version ${result.latestVersion}`) + `
|
|
405951
405960
|
`);
|
|
405952
405961
|
await regenerateCompletionCache();
|
|
405953
405962
|
}
|
|
@@ -405966,9 +405975,9 @@ async function update() {
|
|
|
405966
405975
|
await removeInstalledSymlink();
|
|
405967
405976
|
}
|
|
405968
405977
|
logForDebugging("update: Checking npm registry for latest version");
|
|
405969
|
-
logForDebugging(`update: Package URL: ${{ VERSION: "0.2.
|
|
405978
|
+
logForDebugging(`update: Package URL: ${{ VERSION: "0.2.68", BUILD_TIME: "1970-01-01T00:00:00.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}`);
|
|
405970
405979
|
const npmTag = channel2 === "stable" ? "stable" : "latest";
|
|
405971
|
-
const npmCommand = `npm view ${{ VERSION: "0.2.
|
|
405980
|
+
const npmCommand = `npm view ${{ VERSION: "0.2.68", BUILD_TIME: "1970-01-01T00:00:00.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`;
|
|
405972
405981
|
logForDebugging(`update: Running: ${npmCommand}`);
|
|
405973
405982
|
const latestVersion = await getLatestVersion(channel2);
|
|
405974
405983
|
logForDebugging(`update: Latest version from npm: ${latestVersion || "FAILED"}`);
|
|
@@ -405988,7 +405997,7 @@ async function update() {
|
|
|
405988
405997
|
`);
|
|
405989
405998
|
process.stderr.write(` \u2022 Corporate proxy/firewall blocking npm
|
|
405990
405999
|
`);
|
|
405991
|
-
if ({ VERSION: "0.2.
|
|
406000
|
+
if ({ VERSION: "0.2.68", BUILD_TIME: "1970-01-01T00:00:00.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.68", BUILD_TIME: "1970-01-01T00:00:00.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")) {
|
|
405992
406001
|
process.stderr.write(` \u2022 Internal/development build not published to npm
|
|
405993
406002
|
`);
|
|
405994
406003
|
}
|
|
@@ -406000,19 +406009,19 @@ async function update() {
|
|
|
406000
406009
|
`);
|
|
406001
406010
|
process.stderr.write(` \u2022 Run with --debug flag for more details
|
|
406002
406011
|
`);
|
|
406003
|
-
const packageName = { VERSION: "0.2.
|
|
406012
|
+
const packageName = { VERSION: "0.2.68", BUILD_TIME: "1970-01-01T00:00:00.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";
|
|
406004
406013
|
process.stderr.write(` \u2022 Manually check: npm view ${packageName} version
|
|
406005
406014
|
`);
|
|
406006
406015
|
process.stderr.write(` \u2022 Check if you need to login: npm whoami
|
|
406007
406016
|
`);
|
|
406008
406017
|
await gracefulShutdown(1);
|
|
406009
406018
|
}
|
|
406010
|
-
if (gte({ VERSION: "0.2.
|
|
406011
|
-
writeToStdout(source_default.green(`Theus is up to date (${{ VERSION: "0.2.
|
|
406019
|
+
if (gte({ VERSION: "0.2.68", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
|
|
406020
|
+
writeToStdout(source_default.green(`Theus is up to date (${{ VERSION: "0.2.68", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION})`) + `
|
|
406012
406021
|
`);
|
|
406013
406022
|
await gracefulShutdown(0);
|
|
406014
406023
|
}
|
|
406015
|
-
writeToStdout(`New version available: ${latestVersion} (current: ${{ VERSION: "0.2.
|
|
406024
|
+
writeToStdout(`New version available: ${latestVersion} (current: ${{ VERSION: "0.2.68", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION})
|
|
406016
406025
|
`);
|
|
406017
406026
|
writeToStdout(`Installing update...
|
|
406018
406027
|
`);
|
|
@@ -406057,7 +406066,7 @@ async function update() {
|
|
|
406057
406066
|
logForDebugging(`update: Installation status: ${status2}`);
|
|
406058
406067
|
switch (status2) {
|
|
406059
406068
|
case "success":
|
|
406060
|
-
writeToStdout(source_default.green(`Successfully updated from ${{ VERSION: "0.2.
|
|
406069
|
+
writeToStdout(source_default.green(`Successfully updated from ${{ VERSION: "0.2.68", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION} to version ${latestVersion}`) + `
|
|
406061
406070
|
`);
|
|
406062
406071
|
await regenerateCompletionCache();
|
|
406063
406072
|
break;
|
|
@@ -406067,7 +406076,7 @@ async function update() {
|
|
|
406067
406076
|
if (useLocalUpdate) {
|
|
406068
406077
|
process.stderr.write(`Try manually updating with:
|
|
406069
406078
|
`);
|
|
406070
|
-
process.stderr.write(` cd ~/.theus/local && npm update ${{ VERSION: "0.2.
|
|
406079
|
+
process.stderr.write(` cd ~/.theus/local && npm update ${{ VERSION: "0.2.68", BUILD_TIME: "1970-01-01T00:00:00.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}
|
|
406071
406080
|
`);
|
|
406072
406081
|
} else {
|
|
406073
406082
|
process.stderr.write(`Try running with sudo or fix npm permissions
|
|
@@ -406083,7 +406092,7 @@ async function update() {
|
|
|
406083
406092
|
if (useLocalUpdate) {
|
|
406084
406093
|
process.stderr.write(`Try manually updating with:
|
|
406085
406094
|
`);
|
|
406086
|
-
process.stderr.write(` cd ~/.theus/local && npm update ${{ VERSION: "0.2.
|
|
406095
|
+
process.stderr.write(` cd ~/.theus/local && npm update ${{ VERSION: "0.2.68", BUILD_TIME: "1970-01-01T00:00:00.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}
|
|
406087
406096
|
`);
|
|
406088
406097
|
} else {
|
|
406089
406098
|
process.stderr.write(`Or consider using native installation with: theus install
|
|
@@ -415638,7 +415647,7 @@ var init_sessionStorage = __esm(() => {
|
|
|
415638
415647
|
init_settings2();
|
|
415639
415648
|
init_slowOperations();
|
|
415640
415649
|
init_uuid();
|
|
415641
|
-
VERSION4 = { VERSION: "0.2.
|
|
415650
|
+
VERSION4 = { VERSION: "0.2.68", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION;
|
|
415642
415651
|
MAX_TOMBSTONE_REWRITE_BYTES = 50 * 1024 * 1024;
|
|
415643
415652
|
SKIP_FIRST_PROMPT_PATTERN2 = /^(?:\s*<[a-z][\w-]*[\s>]|\[Request interrupted by user[^\]]*\])/;
|
|
415644
415653
|
EPHEMERAL_PROGRESS_TYPES = new Set([
|
|
@@ -416843,7 +416852,7 @@ var init_filesystem = __esm(() => {
|
|
|
416843
416852
|
});
|
|
416844
416853
|
getBundledSkillsRoot = memoize_default(function getBundledSkillsRoot2() {
|
|
416845
416854
|
const nonce = randomBytes21(16).toString("hex");
|
|
416846
|
-
return join150(getTheusTempDir(), "bundled-skills", { VERSION: "0.2.
|
|
416855
|
+
return join150(getTheusTempDir(), "bundled-skills", { VERSION: "0.2.68", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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);
|
|
416847
416856
|
});
|
|
416848
416857
|
getResolvedWorkingDirPaths = memoize_default(getPathsForPermissionCheck);
|
|
416849
416858
|
});
|
|
@@ -422019,7 +422028,7 @@ function getSimpleDoingTasksSection() {
|
|
|
422019
422028
|
];
|
|
422020
422029
|
const userHelpSubitems = [
|
|
422021
422030
|
`/help: Get help with using Theus`,
|
|
422022
|
-
`To give feedback, users should ${{ VERSION: "0.2.
|
|
422031
|
+
`To give feedback, users should ${{ VERSION: "0.2.68", BUILD_TIME: "1970-01-01T00:00:00.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}`
|
|
422023
422032
|
];
|
|
422024
422033
|
const items = [
|
|
422025
422034
|
`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.`,
|
|
@@ -422900,7 +422909,7 @@ function computeFingerprint(messageText, version3) {
|
|
|
422900
422909
|
}
|
|
422901
422910
|
function computeFingerprintFromMessages(messages) {
|
|
422902
422911
|
const firstMessageText = extractFirstMessageText(messages);
|
|
422903
|
-
return computeFingerprint(firstMessageText, { VERSION: "0.2.
|
|
422912
|
+
return computeFingerprint(firstMessageText, { VERSION: "0.2.68", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION);
|
|
422904
422913
|
}
|
|
422905
422914
|
var FINGERPRINT_SALT = "59cf53e54c78";
|
|
422906
422915
|
var init_fingerprint = () => {};
|
|
@@ -424720,6 +424729,76 @@ var init_theusEngine = __esm(() => {
|
|
|
424720
424729
|
init_withRetry();
|
|
424721
424730
|
});
|
|
424722
424731
|
|
|
424732
|
+
// services/api/toolSchemaSanitizer.ts
|
|
424733
|
+
function isSchemaObject(value) {
|
|
424734
|
+
return Boolean(value) && typeof value === "object" && !Array.isArray(value);
|
|
424735
|
+
}
|
|
424736
|
+
function stringArray(value) {
|
|
424737
|
+
return Array.isArray(value) ? value.filter((item) => typeof item === "string") : [];
|
|
424738
|
+
}
|
|
424739
|
+
function combinatorBranches(schema, key) {
|
|
424740
|
+
const raw = schema[key];
|
|
424741
|
+
if (!Array.isArray(raw))
|
|
424742
|
+
return [];
|
|
424743
|
+
return raw.filter(isSchemaObject).map((branch2) => sanitizeToolInputSchema(branch2));
|
|
424744
|
+
}
|
|
424745
|
+
function intersect(sets) {
|
|
424746
|
+
if (sets.length === 0)
|
|
424747
|
+
return [];
|
|
424748
|
+
return sets.reduce((acc, cur) => acc.filter((item) => cur.includes(item)));
|
|
424749
|
+
}
|
|
424750
|
+
function sanitizeToolInputSchema(schema) {
|
|
424751
|
+
if (!isSchemaObject(schema))
|
|
424752
|
+
return schema;
|
|
424753
|
+
const present = TOP_LEVEL_COMBINATORS.filter((key) => Array.isArray(schema[key]));
|
|
424754
|
+
if (present.length === 0)
|
|
424755
|
+
return schema;
|
|
424756
|
+
const merged = {};
|
|
424757
|
+
const requiredAllOf = [];
|
|
424758
|
+
const requiredAlternatives = [];
|
|
424759
|
+
for (const key of present) {
|
|
424760
|
+
for (const branch2 of combinatorBranches(schema, key)) {
|
|
424761
|
+
const branchProps = isSchemaObject(branch2.properties) ? branch2.properties : {};
|
|
424762
|
+
for (const [name, propSchema] of Object.entries(branchProps)) {
|
|
424763
|
+
if (!(name in merged))
|
|
424764
|
+
merged[name] = propSchema;
|
|
424765
|
+
}
|
|
424766
|
+
if (key === "allOf")
|
|
424767
|
+
requiredAllOf.push(...stringArray(branch2.required));
|
|
424768
|
+
else
|
|
424769
|
+
requiredAlternatives.push(stringArray(branch2.required));
|
|
424770
|
+
}
|
|
424771
|
+
}
|
|
424772
|
+
const topProps = isSchemaObject(schema.properties) ? schema.properties : {};
|
|
424773
|
+
Object.assign(merged, topProps);
|
|
424774
|
+
const required2 = [
|
|
424775
|
+
...new Set([
|
|
424776
|
+
...stringArray(schema.required),
|
|
424777
|
+
...requiredAllOf,
|
|
424778
|
+
...intersect(requiredAlternatives)
|
|
424779
|
+
])
|
|
424780
|
+
].filter((name) => (name in merged));
|
|
424781
|
+
const {
|
|
424782
|
+
allOf: _allOf,
|
|
424783
|
+
anyOf: _anyOf,
|
|
424784
|
+
oneOf: _oneOf,
|
|
424785
|
+
$schema: _meta,
|
|
424786
|
+
required: _required,
|
|
424787
|
+
properties: _properties,
|
|
424788
|
+
...rest
|
|
424789
|
+
} = schema;
|
|
424790
|
+
return {
|
|
424791
|
+
...rest,
|
|
424792
|
+
type: "object",
|
|
424793
|
+
properties: merged,
|
|
424794
|
+
...required2.length > 0 ? { required: required2 } : {}
|
|
424795
|
+
};
|
|
424796
|
+
}
|
|
424797
|
+
var TOP_LEVEL_COMBINATORS;
|
|
424798
|
+
var init_toolSchemaSanitizer = __esm(() => {
|
|
424799
|
+
TOP_LEVEL_COMBINATORS = ["allOf", "anyOf", "oneOf"];
|
|
424800
|
+
});
|
|
424801
|
+
|
|
424723
424802
|
// services/api/theus.ts
|
|
424724
424803
|
import { existsSync as existsSync23, readFileSync as readFileSync28 } from "fs";
|
|
424725
424804
|
import { randomUUID as randomUUID37 } from "crypto";
|
|
@@ -425011,7 +425090,7 @@ async function toOpenAITools(tools, options2) {
|
|
|
425011
425090
|
function: {
|
|
425012
425091
|
name: maybeTool.name,
|
|
425013
425092
|
description: maybeTool.description,
|
|
425014
|
-
parameters: maybeTool.input_schema
|
|
425093
|
+
parameters: sanitizeToolInputSchema(maybeTool.input_schema)
|
|
425015
425094
|
}
|
|
425016
425095
|
}
|
|
425017
425096
|
];
|
|
@@ -425485,6 +425564,7 @@ var init_theus2 = __esm(() => {
|
|
|
425485
425564
|
init_theusEngine();
|
|
425486
425565
|
init_effort();
|
|
425487
425566
|
init_api5();
|
|
425567
|
+
init_toolSchemaSanitizer();
|
|
425488
425568
|
init_envUtils();
|
|
425489
425569
|
init_log2();
|
|
425490
425570
|
init_messages();
|
|
@@ -425537,7 +425617,7 @@ async function sideQuery(opts) {
|
|
|
425537
425617
|
betas.push(STRUCTURED_OUTPUTS_BETA_HEADER);
|
|
425538
425618
|
}
|
|
425539
425619
|
const messageText = extractFirstUserMessageText(messages);
|
|
425540
|
-
const fingerprint = computeFingerprint(messageText, { VERSION: "0.2.
|
|
425620
|
+
const fingerprint = computeFingerprint(messageText, { VERSION: "0.2.68", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION);
|
|
425541
425621
|
const attributionHeader = getAttributionHeader(fingerprint);
|
|
425542
425622
|
const systemBlocks = [
|
|
425543
425623
|
attributionHeader ? { type: "text", text: attributionHeader } : null,
|
|
@@ -426811,7 +426891,7 @@ async function handleMemories(state) {
|
|
|
426811
426891
|
async function runProjectContextMcpServer() {
|
|
426812
426892
|
const projectRoot = process.env.THEUS_PROJECT_ROOT || process.cwd();
|
|
426813
426893
|
const state = new ProjectContextState(projectRoot);
|
|
426814
|
-
const server2 = new Server({ name: SERVER_NAME, version: { VERSION: "0.2.
|
|
426894
|
+
const server2 = new Server({ name: SERVER_NAME, version: { VERSION: "0.2.68", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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: {} } });
|
|
426815
426895
|
server2.setRequestHandler(ListToolsRequestSchema, async () => ({
|
|
426816
426896
|
tools: TOOL_DEFINITIONS.map((t) => ({
|
|
426817
426897
|
name: t.name,
|
|
@@ -429488,7 +429568,7 @@ async function runTitanFleetWorker(args) {
|
|
|
429488
429568
|
max_concurrency: maxConcurrency,
|
|
429489
429569
|
runtime: {
|
|
429490
429570
|
name: "theus-cli",
|
|
429491
|
-
version: { VERSION: "0.2.
|
|
429571
|
+
version: { VERSION: "0.2.68", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
|
|
429492
429572
|
}
|
|
429493
429573
|
});
|
|
429494
429574
|
const client2 = new TitanFleetClient({
|
|
@@ -431379,7 +431459,7 @@ function createBridgeLogger(options2) {
|
|
|
431379
431459
|
connectUrl = buildBridgeConnectUrl(environmentId, cachedIngressUrl);
|
|
431380
431460
|
regenerateQr(connectUrl);
|
|
431381
431461
|
if (verbose) {
|
|
431382
|
-
write(source_default.dim(`Remote Control`) + ` v${{ VERSION: "0.2.
|
|
431462
|
+
write(source_default.dim(`Remote Control`) + ` v${{ VERSION: "0.2.68", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION}
|
|
431383
431463
|
`);
|
|
431384
431464
|
}
|
|
431385
431465
|
if (verbose) {
|
|
@@ -432352,7 +432432,7 @@ function appendToLog(path19, message) {
|
|
|
432352
432432
|
cwd: getFsImplementation().cwd(),
|
|
432353
432433
|
userType: "external",
|
|
432354
432434
|
sessionId: getSessionId(),
|
|
432355
|
-
version: { VERSION: "0.2.
|
|
432435
|
+
version: { VERSION: "0.2.68", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
|
|
432356
432436
|
};
|
|
432357
432437
|
getLogWriter(path19).write(messageWithTimestamp);
|
|
432358
432438
|
}
|
|
@@ -433613,7 +433693,7 @@ Spawn mode for this project:
|
|
|
433613
433693
|
const api2 = createBridgeApiClient({
|
|
433614
433694
|
baseUrl,
|
|
433615
433695
|
getAccessToken: getBridgeAccessToken2,
|
|
433616
|
-
runnerVersion: { VERSION: "0.2.
|
|
433696
|
+
runnerVersion: { VERSION: "0.2.68", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
|
|
433617
433697
|
onDebug: logForDebugging,
|
|
433618
433698
|
onAuth401: handleOAuth401Error2,
|
|
433619
433699
|
getTrustedDeviceToken
|
|
@@ -433851,7 +433931,7 @@ async function runBridgeHeadless(opts, signal) {
|
|
|
433851
433931
|
const api2 = createBridgeApiClient({
|
|
433852
433932
|
baseUrl,
|
|
433853
433933
|
getAccessToken: opts.getAccessToken,
|
|
433854
|
-
runnerVersion: { VERSION: "0.2.
|
|
433934
|
+
runnerVersion: { VERSION: "0.2.68", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
|
|
433855
433935
|
onDebug: log2,
|
|
433856
433936
|
onAuth401: opts.onAuth401,
|
|
433857
433937
|
getTrustedDeviceToken
|
|
@@ -437912,7 +437992,7 @@ function buildSystemInitMessage(inputs) {
|
|
|
437912
437992
|
slash_commands: inputs.commands.filter((c5) => c5.userInvocable !== false).map((c5) => c5.name),
|
|
437913
437993
|
apiKeySource: getTheusApiKeyWithSource().source,
|
|
437914
437994
|
betas: getSdkBetas(),
|
|
437915
|
-
theus_code_version: { VERSION: "0.2.
|
|
437995
|
+
theus_code_version: { VERSION: "0.2.68", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
|
|
437916
437996
|
output_style: outputStyle2,
|
|
437917
437997
|
agents: inputs.agents.map((agent) => agent.agentType),
|
|
437918
437998
|
skills: inputs.skills.filter((s) => s.userInvocable !== false).map((skill) => skill.name),
|
|
@@ -437952,8 +438032,8 @@ async function getEnvLessBridgeConfig() {
|
|
|
437952
438032
|
}
|
|
437953
438033
|
async function checkEnvLessBridgeMinVersion() {
|
|
437954
438034
|
const cfg = await getEnvLessBridgeConfig();
|
|
437955
|
-
if (cfg.min_version && lt({ VERSION: "0.2.
|
|
437956
|
-
return `Your version of Theus (${{ VERSION: "0.2.
|
|
438035
|
+
if (cfg.min_version && lt({ VERSION: "0.2.68", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
|
|
438036
|
+
return `Your version of Theus (${{ VERSION: "0.2.68", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.
|
|
437957
438037
|
Version ${cfg.min_version} or higher is required. Run \`theus update\` to update.`;
|
|
437958
438038
|
}
|
|
437959
438039
|
return null;
|
|
@@ -440277,7 +440357,7 @@ async function initBridgeCore(params) {
|
|
|
440277
440357
|
const rawApi = createBridgeApiClient({
|
|
440278
440358
|
baseUrl,
|
|
440279
440359
|
getAccessToken,
|
|
440280
|
-
runnerVersion: { VERSION: "0.2.
|
|
440360
|
+
runnerVersion: { VERSION: "0.2.68", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
|
|
440281
440361
|
onDebug: logForDebugging,
|
|
440282
440362
|
onAuth401,
|
|
440283
440363
|
getTrustedDeviceToken
|
|
@@ -456918,7 +456998,7 @@ var init_useVoiceEnabled = __esm(() => {
|
|
|
456918
456998
|
function getSemverPart(version3) {
|
|
456919
456999
|
return `${import_semver14.major(version3, { loose: true })}.${import_semver14.minor(version3, { loose: true })}.${import_semver14.patch(version3, { loose: true })}`;
|
|
456920
457000
|
}
|
|
456921
|
-
function useUpdateNotification(updatedVersion, initialVersion = { VERSION: "0.2.
|
|
457001
|
+
function useUpdateNotification(updatedVersion, initialVersion = { VERSION: "0.2.68", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION) {
|
|
456922
457002
|
const [lastNotifiedSemver, setLastNotifiedSemver] = import_react236.useState(() => getSemverPart(initialVersion));
|
|
456923
457003
|
if (!updatedVersion) {
|
|
456924
457004
|
return null;
|
|
@@ -456958,7 +457038,7 @@ function AutoUpdater({
|
|
|
456958
457038
|
return;
|
|
456959
457039
|
}
|
|
456960
457040
|
if (false) {}
|
|
456961
|
-
const currentVersion = { VERSION: "0.2.
|
|
457041
|
+
const currentVersion = { VERSION: "0.2.68", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION;
|
|
456962
457042
|
const channel2 = getInitialSettings()?.autoUpdatesChannel ?? "latest";
|
|
456963
457043
|
let latestVersion = await getLatestVersion(channel2);
|
|
456964
457044
|
const isDisabled2 = isAutoUpdaterDisabled();
|
|
@@ -457094,7 +457174,7 @@ function AutoUpdater({
|
|
|
457094
457174
|
" ",
|
|
457095
457175
|
/* @__PURE__ */ jsx_runtime414.jsx(ThemedText, {
|
|
457096
457176
|
bold: true,
|
|
457097
|
-
children: hasLocalInstall ? `cd ~/.theus/local && npm update ${{ VERSION: "0.2.
|
|
457177
|
+
children: hasLocalInstall ? `cd ~/.theus/local && npm update ${{ VERSION: "0.2.68", BUILD_TIME: "1970-01-01T00:00:00.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.68", BUILD_TIME: "1970-01-01T00:00:00.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}`
|
|
457098
457178
|
})
|
|
457099
457179
|
]
|
|
457100
457180
|
})
|
|
@@ -457171,12 +457251,12 @@ function NativeAutoUpdater({
|
|
|
457171
457251
|
logEvent("theus_native_auto_updater_start", {});
|
|
457172
457252
|
try {
|
|
457173
457253
|
const maxVersion = await getMaxVersion();
|
|
457174
|
-
if (maxVersion && gt({ VERSION: "0.2.
|
|
457254
|
+
if (maxVersion && gt({ VERSION: "0.2.68", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
|
|
457175
457255
|
const msg = await getMaxVersionMessage();
|
|
457176
457256
|
setMaxVersionIssue(msg ?? "affects your version");
|
|
457177
457257
|
}
|
|
457178
457258
|
const result = await installLatest(channel2);
|
|
457179
|
-
const currentVersion = { VERSION: "0.2.
|
|
457259
|
+
const currentVersion = { VERSION: "0.2.68", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION;
|
|
457180
457260
|
const latencyMs = Date.now() - startTime2;
|
|
457181
457261
|
if (result.lockFailed) {
|
|
457182
457262
|
logEvent("theus_native_auto_updater_lock_contention", {
|
|
@@ -457313,17 +457393,17 @@ function PackageManagerAutoUpdater(t0) {
|
|
|
457313
457393
|
const maxVersion = await getMaxVersion();
|
|
457314
457394
|
if (maxVersion && latest && gt(latest, maxVersion)) {
|
|
457315
457395
|
logForDebugging(`PackageManagerAutoUpdater: maxVersion ${maxVersion} is set, capping update from ${latest} to ${maxVersion}`);
|
|
457316
|
-
if (gte({ VERSION: "0.2.
|
|
457317
|
-
logForDebugging(`PackageManagerAutoUpdater: current version ${{ VERSION: "0.2.
|
|
457396
|
+
if (gte({ VERSION: "0.2.68", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
|
|
457397
|
+
logForDebugging(`PackageManagerAutoUpdater: current version ${{ VERSION: "0.2.68", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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`);
|
|
457318
457398
|
setUpdateAvailable(false);
|
|
457319
457399
|
return;
|
|
457320
457400
|
}
|
|
457321
457401
|
latest = maxVersion;
|
|
457322
457402
|
}
|
|
457323
|
-
const hasUpdate = latest && !gte({ VERSION: "0.2.
|
|
457403
|
+
const hasUpdate = latest && !gte({ VERSION: "0.2.68", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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);
|
|
457324
457404
|
setUpdateAvailable(!!hasUpdate);
|
|
457325
457405
|
if (hasUpdate) {
|
|
457326
|
-
logForDebugging(`PackageManagerAutoUpdater: Update available ${{ VERSION: "0.2.
|
|
457406
|
+
logForDebugging(`PackageManagerAutoUpdater: Update available ${{ VERSION: "0.2.68", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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}`);
|
|
457327
457407
|
}
|
|
457328
457408
|
};
|
|
457329
457409
|
$2[0] = t1;
|
|
@@ -457357,7 +457437,7 @@ function PackageManagerAutoUpdater(t0) {
|
|
|
457357
457437
|
wrap: "truncate",
|
|
457358
457438
|
children: [
|
|
457359
457439
|
"currentVersion: ",
|
|
457360
|
-
{ VERSION: "0.2.
|
|
457440
|
+
{ VERSION: "0.2.68", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
|
|
457361
457441
|
]
|
|
457362
457442
|
});
|
|
457363
457443
|
$2[3] = verbose;
|
|
@@ -465220,7 +465300,7 @@ function buildStatusLineCommandInput(permissionMode2, exceeds200kTokens, setting
|
|
|
465220
465300
|
project_dir: getOriginalCwd(),
|
|
465221
465301
|
added_dirs: addedDirs
|
|
465222
465302
|
},
|
|
465223
|
-
version: { VERSION: "0.2.
|
|
465303
|
+
version: { VERSION: "0.2.68", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
|
|
465224
465304
|
output_style: {
|
|
465225
465305
|
name: outputStyleName
|
|
465226
465306
|
},
|
|
@@ -489519,7 +489599,7 @@ function completeOnboarding() {
|
|
|
489519
489599
|
saveGlobalConfig((current) => ({
|
|
489520
489600
|
...current,
|
|
489521
489601
|
hasCompletedOnboarding: true,
|
|
489522
|
-
lastOnboardingVersion: { VERSION: "0.2.
|
|
489602
|
+
lastOnboardingVersion: { VERSION: "0.2.68", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
|
|
489523
489603
|
}));
|
|
489524
489604
|
}
|
|
489525
489605
|
function showDialog(root2, renderer) {
|
|
@@ -501623,7 +501703,7 @@ async function startMCPServer(cwd3, debug3, verbose) {
|
|
|
501623
501703
|
setCwd(cwd3);
|
|
501624
501704
|
const server2 = new Server({
|
|
501625
501705
|
name: "theus/tengu",
|
|
501626
|
-
version: { VERSION: "0.2.
|
|
501706
|
+
version: { VERSION: "0.2.68", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
|
|
501627
501707
|
}, {
|
|
501628
501708
|
capabilities: {
|
|
501629
501709
|
tools: {}
|
|
@@ -503065,7 +503145,7 @@ async function setupTokenHandler(root2) {
|
|
|
503065
503145
|
gap: 1,
|
|
503066
503146
|
children: [
|
|
503067
503147
|
/* @__PURE__ */ jsx_runtime502.jsx(TheusBanner, {
|
|
503068
|
-
version: { VERSION: "0.2.
|
|
503148
|
+
version: { VERSION: "0.2.68", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
|
|
503069
503149
|
}),
|
|
503070
503150
|
showAuthWarning && /* @__PURE__ */ jsx_runtime502.jsxs(ThemedBox_default, {
|
|
503071
503151
|
flexDirection: "column",
|
|
@@ -504650,7 +504730,7 @@ ${assistantAddendum}` : assistantAddendum;
|
|
|
504650
504730
|
}
|
|
504651
504731
|
}
|
|
504652
504732
|
logForDiagnosticsNoPII("info", "started", {
|
|
504653
|
-
version: { VERSION: "0.2.
|
|
504733
|
+
version: { VERSION: "0.2.68", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
|
|
504654
504734
|
is_native_binary: isInBundledMode()
|
|
504655
504735
|
});
|
|
504656
504736
|
registerCleanup(async () => {
|
|
@@ -505518,7 +505598,7 @@ Usage: theus --remote "your task description"`, () => gracefulShutdown(1));
|
|
|
505518
505598
|
pendingHookMessages
|
|
505519
505599
|
}, renderAndRun);
|
|
505520
505600
|
}
|
|
505521
|
-
}).version(`${{ VERSION: "0.2.
|
|
505601
|
+
}).version(`${{ VERSION: "0.2.68", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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");
|
|
505522
505602
|
program2.option("-w, --worktree [name]", "Crea un nuevo worktree de git para esta sesi\xF3n (opcionalmente indica un nombre)");
|
|
505523
505603
|
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.");
|
|
505524
505604
|
if (canUserConfigureAdvisor()) {
|
|
@@ -506115,7 +506195,7 @@ if (false) {}
|
|
|
506115
506195
|
async function main2() {
|
|
506116
506196
|
const args = process.argv.slice(2);
|
|
506117
506197
|
if (args.length === 1 && (args[0] === "--version" || args[0] === "-v" || args[0] === "-V")) {
|
|
506118
|
-
console.log(`${{ VERSION: "0.2.
|
|
506198
|
+
console.log(`${{ VERSION: "0.2.68", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)`);
|
|
506119
506199
|
return;
|
|
506120
506200
|
}
|
|
506121
506201
|
const {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "theus-cli",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.68",
|
|
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",
|