theus-cli 0.2.82 → 0.2.83
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 +232 -132
- package/package.json +1 -1
package/cli.js
CHANGED
|
@@ -57841,7 +57841,7 @@ async function _executeApiKeyHelper(isNonInteractiveSession) {
|
|
|
57841
57841
|
if (isApiKeyHelperFromProjectOrLocalSettings()) {
|
|
57842
57842
|
const hasTrust = checkHasTrustDialogAccepted();
|
|
57843
57843
|
if (!hasTrust && !isNonInteractiveSession) {
|
|
57844
|
-
const error40 = new Error(`Security: apiKeyHelper executed before workspace trust is confirmed. If you see this message, post in ${{ VERSION: "0.2.
|
|
57844
|
+
const error40 = new Error(`Security: apiKeyHelper executed before workspace trust is confirmed. If you see this message, post in ${{ VERSION: "0.2.83", BUILD_TIME: "1970-01-01T00:00:00.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}.`);
|
|
57845
57845
|
logAntError("apiKeyHelper invoked before trust check", error40);
|
|
57846
57846
|
logEvent("theus_apiKeyHelper_missing_trust11", {});
|
|
57847
57847
|
return null;
|
|
@@ -57885,7 +57885,7 @@ async function runAwsAuthRefresh() {
|
|
|
57885
57885
|
if (isAwsAuthRefreshFromProjectSettings()) {
|
|
57886
57886
|
const hasTrust = checkHasTrustDialogAccepted();
|
|
57887
57887
|
if (!hasTrust && !getIsNonInteractiveSession()) {
|
|
57888
|
-
const error40 = new Error(`Security: awsAuthRefresh executed before workspace trust is confirmed. If you see this message, post in ${{ VERSION: "0.2.
|
|
57888
|
+
const error40 = new Error(`Security: awsAuthRefresh executed before workspace trust is confirmed. If you see this message, post in ${{ VERSION: "0.2.83", BUILD_TIME: "1970-01-01T00:00:00.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}.`);
|
|
57889
57889
|
logAntError("awsAuthRefresh invoked before trust check", error40);
|
|
57890
57890
|
logEvent("theus_awsAuthRefresh_missing_trust", {});
|
|
57891
57891
|
return false;
|
|
@@ -57945,7 +57945,7 @@ async function getAwsCredsFromCredentialExport() {
|
|
|
57945
57945
|
if (isAwsCredentialExportFromProjectSettings()) {
|
|
57946
57946
|
const hasTrust = checkHasTrustDialogAccepted();
|
|
57947
57947
|
if (!hasTrust && !getIsNonInteractiveSession()) {
|
|
57948
|
-
const error40 = new Error(`Security: awsCredentialExport executed before workspace trust is confirmed. If you see this message, post in ${{ VERSION: "0.2.
|
|
57948
|
+
const error40 = new Error(`Security: awsCredentialExport executed before workspace trust is confirmed. If you see this message, post in ${{ VERSION: "0.2.83", BUILD_TIME: "1970-01-01T00:00:00.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}.`);
|
|
57949
57949
|
logAntError("awsCredentialExport invoked before trust check", error40);
|
|
57950
57950
|
logEvent("theus_awsCredentialExport_missing_trust", {});
|
|
57951
57951
|
return null;
|
|
@@ -58030,7 +58030,7 @@ async function runGcpAuthRefresh() {
|
|
|
58030
58030
|
if (isGcpAuthRefreshFromProjectSettings()) {
|
|
58031
58031
|
const hasTrust = checkHasTrustDialogAccepted();
|
|
58032
58032
|
if (!hasTrust && !getIsNonInteractiveSession()) {
|
|
58033
|
-
const error40 = new Error(`Security: gcpAuthRefresh executed before workspace trust is confirmed. If you see this message, post in ${{ VERSION: "0.2.
|
|
58033
|
+
const error40 = new Error(`Security: gcpAuthRefresh executed before workspace trust is confirmed. If you see this message, post in ${{ VERSION: "0.2.83", BUILD_TIME: "1970-01-01T00:00:00.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}.`);
|
|
58034
58034
|
logAntError("gcpAuthRefresh invoked before trust check", error40);
|
|
58035
58035
|
logEvent("theus_gcpAuthRefresh_missing_trust", {});
|
|
58036
58036
|
return false;
|
|
@@ -58749,7 +58749,7 @@ var init_auth = __esm(() => {
|
|
|
58749
58749
|
|
|
58750
58750
|
// utils/userAgent.ts
|
|
58751
58751
|
function getTheusCodeUserAgent() {
|
|
58752
|
-
return `theus-code/${{ VERSION: "0.2.
|
|
58752
|
+
return `theus-code/${{ VERSION: "0.2.83", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION}`;
|
|
58753
58753
|
}
|
|
58754
58754
|
|
|
58755
58755
|
// utils/workloadContext.ts
|
|
@@ -58771,7 +58771,7 @@ function getUserAgent() {
|
|
|
58771
58771
|
const clientApp = process.env.THEUS_AGENT_SDK_CLIENT_APP ? `, client-app/${process.env.THEUS_AGENT_SDK_CLIENT_APP}` : "";
|
|
58772
58772
|
const workload = getWorkload();
|
|
58773
58773
|
const workloadSuffix = workload ? `, workload/${workload}` : "";
|
|
58774
|
-
return `theus-cli/${{ VERSION: "0.2.
|
|
58774
|
+
return `theus-cli/${{ VERSION: "0.2.83", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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})`;
|
|
58775
58775
|
}
|
|
58776
58776
|
function getMCPUserAgent() {
|
|
58777
58777
|
const parts = [];
|
|
@@ -58785,7 +58785,7 @@ function getMCPUserAgent() {
|
|
|
58785
58785
|
parts.push(`client-app/${process.env.THEUS_AGENT_SDK_CLIENT_APP}`);
|
|
58786
58786
|
}
|
|
58787
58787
|
const suffix = parts.length > 0 ? ` (${parts.join(", ")})` : "";
|
|
58788
|
-
return `theus-code/${{ VERSION: "0.2.
|
|
58788
|
+
return `theus-code/${{ VERSION: "0.2.83", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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}`;
|
|
58789
58789
|
}
|
|
58790
58790
|
function getWebFetchUserAgent() {
|
|
58791
58791
|
return `Theus-User (${getTheusCodeUserAgent()}; +https://support.theus.pe/)`;
|
|
@@ -58923,7 +58923,7 @@ var init_user = __esm(() => {
|
|
|
58923
58923
|
deviceId,
|
|
58924
58924
|
sessionId: getSessionId(),
|
|
58925
58925
|
email: getEmail(),
|
|
58926
|
-
appVersion: { VERSION: "0.2.
|
|
58926
|
+
appVersion: { VERSION: "0.2.83", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
|
|
58927
58927
|
platform: getHostPlatformForAnalytics(),
|
|
58928
58928
|
organizationUuid,
|
|
58929
58929
|
accountUuid,
|
|
@@ -60633,7 +60633,7 @@ var init_metadata = __esm(() => {
|
|
|
60633
60633
|
COMPOUND_OPERATOR_REGEX = /\s*(?:&&|\|\||[;|])\s*/;
|
|
60634
60634
|
WHITESPACE_REGEX = /\s+/;
|
|
60635
60635
|
getVersionBase = memoize_default(() => {
|
|
60636
|
-
const match = { VERSION: "0.2.
|
|
60636
|
+
const match = { VERSION: "0.2.83", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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]+)?/);
|
|
60637
60637
|
return match ? match[0] : undefined;
|
|
60638
60638
|
});
|
|
60639
60639
|
buildEnvContext = memoize_default(async () => {
|
|
@@ -60673,9 +60673,9 @@ var init_metadata = __esm(() => {
|
|
|
60673
60673
|
isGithubAction: isEnvTruthy(process.env.GITHUB_ACTIONS),
|
|
60674
60674
|
isTheusCodeAction: isEnvTruthy(process.env.THEUS_CODE_ACTION),
|
|
60675
60675
|
isTheusAiAuth: isTheusAISubscriber(),
|
|
60676
|
-
version: { VERSION: "0.2.
|
|
60676
|
+
version: { VERSION: "0.2.83", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
|
|
60677
60677
|
versionBase: getVersionBase(),
|
|
60678
|
-
buildTime: { VERSION: "0.2.
|
|
60678
|
+
buildTime: { VERSION: "0.2.83", BUILD_TIME: "1970-01-01T00:00:00.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,
|
|
60679
60679
|
deploymentEnvironment: env3.detectDeploymentEnvironment(),
|
|
60680
60680
|
...isEnvTruthy(process.env.GITHUB_ACTIONS) && {
|
|
60681
60681
|
githubEventName: process.env.GITHUB_EVENT_NAME,
|
|
@@ -61291,7 +61291,7 @@ function initialize1PEventLogging() {
|
|
|
61291
61291
|
const platform2 = getPlatform();
|
|
61292
61292
|
const attributes = {
|
|
61293
61293
|
[ATTR_SERVICE_NAME]: "theus-code",
|
|
61294
|
-
[ATTR_SERVICE_VERSION]: { VERSION: "0.2.
|
|
61294
|
+
[ATTR_SERVICE_VERSION]: { VERSION: "0.2.83", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
|
|
61295
61295
|
};
|
|
61296
61296
|
if (platform2 === "wsl") {
|
|
61297
61297
|
const wslVersion = getWslVersion();
|
|
@@ -61318,7 +61318,7 @@ function initialize1PEventLogging() {
|
|
|
61318
61318
|
})
|
|
61319
61319
|
]
|
|
61320
61320
|
});
|
|
61321
|
-
firstPartyEventLogger = firstPartyEventLoggerProvider.getLogger("com.theus.theus_code.events", { VERSION: "0.2.
|
|
61321
|
+
firstPartyEventLogger = firstPartyEventLoggerProvider.getLogger("com.theus.theus_code.events", { VERSION: "0.2.83", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION);
|
|
61322
61322
|
}
|
|
61323
61323
|
async function reinitialize1PEventLoggingIfConfigChanged() {
|
|
61324
61324
|
if (!is1PEventLoggingEnabled() || !firstPartyEventLoggerProvider) {
|
|
@@ -91157,7 +91157,7 @@ function getAttributionHeader(fingerprint) {
|
|
|
91157
91157
|
if (!isAttributionHeaderEnabled()) {
|
|
91158
91158
|
return "";
|
|
91159
91159
|
}
|
|
91160
|
-
const version2 = `${{ VERSION: "0.2.
|
|
91160
|
+
const version2 = `${{ VERSION: "0.2.83", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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}`;
|
|
91161
91161
|
const entrypoint = process.env.THEUS_CODE_ENTRYPOINT ?? "unknown";
|
|
91162
91162
|
const cch = "";
|
|
91163
91163
|
const workload = getWorkload();
|
|
@@ -104193,7 +104193,7 @@ Complete the user's request by providing accurate, documentation-based guidance.
|
|
|
104193
104193
|
}
|
|
104194
104194
|
function getFeedbackGuideline() {
|
|
104195
104195
|
if (isUsing3PServices()) {
|
|
104196
|
-
return `- When you cannot find an answer or the feature doesn't exist, direct the user to ${{ VERSION: "0.2.
|
|
104196
|
+
return `- When you cannot find an answer or the feature doesn't exist, direct the user to ${{ VERSION: "0.2.83", BUILD_TIME: "1970-01-01T00:00:00.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}`;
|
|
104197
104197
|
}
|
|
104198
104198
|
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";
|
|
104199
104199
|
}
|
|
@@ -144381,7 +144381,7 @@ function getTelemetryAttributes() {
|
|
|
144381
144381
|
attributes["session.id"] = sessionId;
|
|
144382
144382
|
}
|
|
144383
144383
|
if (shouldIncludeAttribute("OTEL_METRICS_INCLUDE_VERSION")) {
|
|
144384
|
-
attributes["app.version"] = { VERSION: "0.2.
|
|
144384
|
+
attributes["app.version"] = { VERSION: "0.2.83", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION;
|
|
144385
144385
|
}
|
|
144386
144386
|
const oauthAccount = getOauthAccountInfo();
|
|
144387
144387
|
if (oauthAccount) {
|
|
@@ -220660,7 +220660,7 @@ async function getMcpHeadersFromHelper(serverName, config2) {
|
|
|
220660
220660
|
if ("scope" in config2 && isMcpServerFromProjectOrLocalSettings(config2) && !getIsNonInteractiveSession()) {
|
|
220661
220661
|
const hasTrust = checkHasTrustDialogAccepted();
|
|
220662
220662
|
if (!hasTrust) {
|
|
220663
|
-
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.
|
|
220663
|
+
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.83", BUILD_TIME: "1970-01-01T00:00:00.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}.`);
|
|
220664
220664
|
logAntError("MCP headersHelper invoked before trust check", error40);
|
|
220665
220665
|
logEvent("theus_mcp_headersHelper_missing_trust", {});
|
|
220666
220666
|
return null;
|
|
@@ -221352,7 +221352,7 @@ function computeFingerprint(messageText, version2) {
|
|
|
221352
221352
|
}
|
|
221353
221353
|
function computeFingerprintFromMessages(messages) {
|
|
221354
221354
|
const firstMessageText = extractFirstMessageText(messages);
|
|
221355
|
-
return computeFingerprint(firstMessageText, { VERSION: "0.2.
|
|
221355
|
+
return computeFingerprint(firstMessageText, { VERSION: "0.2.83", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION);
|
|
221356
221356
|
}
|
|
221357
221357
|
var FINGERPRINT_SALT = "59cf53e54c78";
|
|
221358
221358
|
var init_fingerprint = () => {};
|
|
@@ -221394,7 +221394,7 @@ async function sideQuery(opts) {
|
|
|
221394
221394
|
betas.push(STRUCTURED_OUTPUTS_BETA_HEADER);
|
|
221395
221395
|
}
|
|
221396
221396
|
const messageText = extractFirstUserMessageText(messages);
|
|
221397
|
-
const fingerprint = computeFingerprint(messageText, { VERSION: "0.2.
|
|
221397
|
+
const fingerprint = computeFingerprint(messageText, { VERSION: "0.2.83", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION);
|
|
221398
221398
|
const attributionHeader = getAttributionHeader(fingerprint);
|
|
221399
221399
|
const systemBlocks = [
|
|
221400
221400
|
attributionHeader ? { type: "text", text: attributionHeader } : null,
|
|
@@ -222518,7 +222518,7 @@ async function setupSdkMcpClients(sdkMcpConfigs, sendMcpMessage) {
|
|
|
222518
222518
|
const client2 = new Client({
|
|
222519
222519
|
name: "theus-code",
|
|
222520
222520
|
title: "Theus",
|
|
222521
|
-
version: { VERSION: "0.2.
|
|
222521
|
+
version: { VERSION: "0.2.83", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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",
|
|
222522
222522
|
description: "Theus's agentic coding tool",
|
|
222523
222523
|
websiteUrl: PRODUCT_URL
|
|
222524
222524
|
}, {
|
|
@@ -222872,7 +222872,7 @@ var init_client5 = __esm(() => {
|
|
|
222872
222872
|
const client2 = new Client({
|
|
222873
222873
|
name: "theus-code",
|
|
222874
222874
|
title: "Theus",
|
|
222875
|
-
version: { VERSION: "0.2.
|
|
222875
|
+
version: { VERSION: "0.2.83", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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",
|
|
222876
222876
|
description: "Theus's agentic coding tool",
|
|
222877
222877
|
websiteUrl: PRODUCT_URL
|
|
222878
222878
|
}, {
|
|
@@ -242720,7 +242720,7 @@ async function initializeBetaTracing(resource) {
|
|
|
242720
242720
|
});
|
|
242721
242721
|
logs.setGlobalLoggerProvider(loggerProvider);
|
|
242722
242722
|
setLoggerProvider(loggerProvider);
|
|
242723
|
-
const eventLogger = logs.getLogger("com.theus.theus_code.events", { VERSION: "0.2.
|
|
242723
|
+
const eventLogger = logs.getLogger("com.theus.theus_code.events", { VERSION: "0.2.83", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION);
|
|
242724
242724
|
setEventLogger(eventLogger);
|
|
242725
242725
|
process.on("beforeExit", async () => {
|
|
242726
242726
|
await loggerProvider?.forceFlush();
|
|
@@ -242760,7 +242760,7 @@ async function initializeTelemetry() {
|
|
|
242760
242760
|
const platform4 = getPlatform();
|
|
242761
242761
|
const baseAttributes = {
|
|
242762
242762
|
[ATTR_SERVICE_NAME]: "theus-code",
|
|
242763
|
-
[ATTR_SERVICE_VERSION]: { VERSION: "0.2.
|
|
242763
|
+
[ATTR_SERVICE_VERSION]: { VERSION: "0.2.83", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
|
|
242764
242764
|
};
|
|
242765
242765
|
if (platform4 === "wsl") {
|
|
242766
242766
|
const wslVersion = getWslVersion();
|
|
@@ -242805,7 +242805,7 @@ async function initializeTelemetry() {
|
|
|
242805
242805
|
} catch {}
|
|
242806
242806
|
};
|
|
242807
242807
|
registerCleanup(shutdownTelemetry2);
|
|
242808
|
-
return meterProvider2.getMeter("com.theus.theus_code", { VERSION: "0.2.
|
|
242808
|
+
return meterProvider2.getMeter("com.theus.theus_code", { VERSION: "0.2.83", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION);
|
|
242809
242809
|
}
|
|
242810
242810
|
const meterProvider = new MeterProvider({
|
|
242811
242811
|
resource,
|
|
@@ -242825,7 +242825,7 @@ async function initializeTelemetry() {
|
|
|
242825
242825
|
});
|
|
242826
242826
|
logs.setGlobalLoggerProvider(loggerProvider);
|
|
242827
242827
|
setLoggerProvider(loggerProvider);
|
|
242828
|
-
const eventLogger = logs.getLogger("com.theus.theus_code.events", { VERSION: "0.2.
|
|
242828
|
+
const eventLogger = logs.getLogger("com.theus.theus_code.events", { VERSION: "0.2.83", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION);
|
|
242829
242829
|
setEventLogger(eventLogger);
|
|
242830
242830
|
logForDebugging("[3P telemetry] Event logger set successfully");
|
|
242831
242831
|
process.on("beforeExit", async () => {
|
|
@@ -242887,7 +242887,7 @@ Current timeout: ${timeoutMs}ms
|
|
|
242887
242887
|
}
|
|
242888
242888
|
};
|
|
242889
242889
|
registerCleanup(shutdownTelemetry);
|
|
242890
|
-
return meterProvider.getMeter("com.theus.theus_code", { VERSION: "0.2.
|
|
242890
|
+
return meterProvider.getMeter("com.theus.theus_code", { VERSION: "0.2.83", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION);
|
|
242891
242891
|
}
|
|
242892
242892
|
async function flushTelemetry() {
|
|
242893
242893
|
const meterProvider = getMeterProvider();
|
|
@@ -243429,7 +243429,7 @@ async function installOrUpdateTheusPackage(channel2, specificVersion) {
|
|
|
243429
243429
|
return "install_failed";
|
|
243430
243430
|
}
|
|
243431
243431
|
const versionSpec = specificVersion ? specificVersion : channel2 === "stable" ? "stable" : "latest";
|
|
243432
|
-
const result = await execFileNoThrowWithCwd("npm", ["install", `${{ VERSION: "0.2.
|
|
243432
|
+
const result = await execFileNoThrowWithCwd("npm", ["install", `${{ VERSION: "0.2.83", BUILD_TIME: "1970-01-01T00:00:00.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 });
|
|
243433
243433
|
if (result.code !== 0) {
|
|
243434
243434
|
const error40 = new Error(`Failed to install Theus CLI package: ${result.stderr}`);
|
|
243435
243435
|
logError2(error40);
|
|
@@ -243575,9 +243575,9 @@ async function assertMinVersion() {
|
|
|
243575
243575
|
if (false) {}
|
|
243576
243576
|
try {
|
|
243577
243577
|
const versionConfig = await getDynamicConfig_BLOCKS_ON_INIT("theus_version_config", { minVersion: "0.0.0" });
|
|
243578
|
-
if (versionConfig.minVersion && lt({ VERSION: "0.2.
|
|
243578
|
+
if (versionConfig.minVersion && lt({ VERSION: "0.2.83", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
|
|
243579
243579
|
console.error(`
|
|
243580
|
-
It looks like your version of Theus (${{ VERSION: "0.2.
|
|
243580
|
+
It looks like your version of Theus (${{ VERSION: "0.2.83", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.
|
|
243581
243581
|
A newer version (${versionConfig.minVersion} or higher) is required to continue.
|
|
243582
243582
|
|
|
243583
243583
|
To update, please run:
|
|
@@ -243714,7 +243714,7 @@ async function getInstallationPrefix() {
|
|
|
243714
243714
|
return prefixResult.stdout.trim();
|
|
243715
243715
|
}
|
|
243716
243716
|
function getGlobalInstallPackageManager() {
|
|
243717
|
-
if ({ VERSION: "0.2.
|
|
243717
|
+
if ({ VERSION: "0.2.83", BUILD_TIME: "1970-01-01T00:00:00.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") {
|
|
243718
243718
|
return "npm";
|
|
243719
243719
|
}
|
|
243720
243720
|
return env3.isRunningWithBun() ? "bun" : "npm";
|
|
@@ -243739,7 +243739,7 @@ async function checkGlobalInstallPermissions() {
|
|
|
243739
243739
|
}
|
|
243740
243740
|
async function getLatestVersion(channel2) {
|
|
243741
243741
|
const npmTag = channel2 === "stable" ? "stable" : "latest";
|
|
243742
|
-
const result = await execFileNoThrowWithCwd("npm", ["view", `${{ VERSION: "0.2.
|
|
243742
|
+
const result = await execFileNoThrowWithCwd("npm", ["view", `${{ VERSION: "0.2.83", BUILD_TIME: "1970-01-01T00:00:00.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() });
|
|
243743
243743
|
if (result.code !== 0) {
|
|
243744
243744
|
logForDebugging(`npm view failed with code ${result.code}`);
|
|
243745
243745
|
if (result.stderr) {
|
|
@@ -243755,7 +243755,7 @@ async function getLatestVersion(channel2) {
|
|
|
243755
243755
|
return result.stdout.trim();
|
|
243756
243756
|
}
|
|
243757
243757
|
async function getNpmDistTags() {
|
|
243758
|
-
const result = await execFileNoThrowWithCwd("npm", ["view", { VERSION: "0.2.
|
|
243758
|
+
const result = await execFileNoThrowWithCwd("npm", ["view", { VERSION: "0.2.83", BUILD_TIME: "1970-01-01T00:00:00.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() });
|
|
243759
243759
|
if (result.code !== 0) {
|
|
243760
243760
|
logForDebugging(`npm view dist-tags failed with code ${result.code}`);
|
|
243761
243761
|
return { latest: null, stable: null };
|
|
@@ -243799,7 +243799,7 @@ async function installGlobalPackage(specificVersion) {
|
|
|
243799
243799
|
logError2(new AutoUpdaterError("Another process is currently installing an update"));
|
|
243800
243800
|
logEvent("theus_auto_updater_lock_contention", {
|
|
243801
243801
|
pid: process.pid,
|
|
243802
|
-
currentVersion: { VERSION: "0.2.
|
|
243802
|
+
currentVersion: { VERSION: "0.2.83", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
|
|
243803
243803
|
});
|
|
243804
243804
|
return "in_progress";
|
|
243805
243805
|
}
|
|
@@ -243808,7 +243808,7 @@ async function installGlobalPackage(specificVersion) {
|
|
|
243808
243808
|
if (!env3.isRunningWithBun() && env3.isNpmFromWindowsPath()) {
|
|
243809
243809
|
logError2(new Error("Windows NPM detected in WSL environment"));
|
|
243810
243810
|
logEvent("theus_auto_updater_windows_npm_in_wsl", {
|
|
243811
|
-
currentVersion: { VERSION: "0.2.
|
|
243811
|
+
currentVersion: { VERSION: "0.2.83", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
|
|
243812
243812
|
});
|
|
243813
243813
|
console.error(`
|
|
243814
243814
|
Error: Windows NPM detected in WSL
|
|
@@ -243827,7 +243827,7 @@ To fix this issue:
|
|
|
243827
243827
|
if (!hasPermissions) {
|
|
243828
243828
|
return "no_permissions";
|
|
243829
243829
|
}
|
|
243830
|
-
const packageSpec = specificVersion ? `${{ VERSION: "0.2.
|
|
243830
|
+
const packageSpec = specificVersion ? `${{ VERSION: "0.2.83", BUILD_TIME: "1970-01-01T00:00:00.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.83", BUILD_TIME: "1970-01-01T00:00:00.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;
|
|
243831
243831
|
const packageManager = getGlobalInstallPackageManager();
|
|
243832
243832
|
const installResult = await execFileNoThrowWithCwd(packageManager, ["install", "-g", packageSpec], { cwd: homedir20() });
|
|
243833
243833
|
if (installResult.code !== 0) {
|
|
@@ -244156,8 +244156,8 @@ async function detectMultipleInstallations() {
|
|
|
244156
244156
|
installations.push({ type: "npm-local", path: localPath });
|
|
244157
244157
|
}
|
|
244158
244158
|
const packagesToCheck = ["@theus-ai/theus-code"];
|
|
244159
|
-
if ({ VERSION: "0.2.
|
|
244160
|
-
packagesToCheck.push({ VERSION: "0.2.
|
|
244159
|
+
if ({ VERSION: "0.2.83", BUILD_TIME: "1970-01-01T00:00:00.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.83", BUILD_TIME: "1970-01-01T00:00:00.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") {
|
|
244160
|
+
packagesToCheck.push({ VERSION: "0.2.83", BUILD_TIME: "1970-01-01T00:00:00.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);
|
|
244161
244161
|
}
|
|
244162
244162
|
const npmResult = await execFileNoThrow("npm", [
|
|
244163
244163
|
"-g",
|
|
@@ -244340,7 +244340,7 @@ function detectLinuxGlobPatternWarnings() {
|
|
|
244340
244340
|
}
|
|
244341
244341
|
async function getDoctorDiagnostic() {
|
|
244342
244342
|
const installationType = await getCurrentInstallationType();
|
|
244343
|
-
const version2 = { VERSION: "0.2.
|
|
244343
|
+
const version2 = { VERSION: "0.2.83", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.83", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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";
|
|
244344
244344
|
const installationPath = await getInstallationPath();
|
|
244345
244345
|
const invokedBinary = getInvokedBinary();
|
|
244346
244346
|
const multipleInstallations = await detectMultipleInstallations();
|
|
@@ -244352,8 +244352,8 @@ async function getDoctorDiagnostic() {
|
|
|
244352
244352
|
for (const install of npmInstalls) {
|
|
244353
244353
|
if (install.type === "npm-global") {
|
|
244354
244354
|
let uninstallCmd = "npm -g uninstall @theus-ai/theus-code";
|
|
244355
|
-
if ({ VERSION: "0.2.
|
|
244356
|
-
uninstallCmd += ` && npm -g uninstall ${{ VERSION: "0.2.
|
|
244355
|
+
if ({ VERSION: "0.2.83", BUILD_TIME: "1970-01-01T00:00:00.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.83", BUILD_TIME: "1970-01-01T00:00:00.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") {
|
|
244356
|
+
uninstallCmd += ` && npm -g uninstall ${{ VERSION: "0.2.83", BUILD_TIME: "1970-01-01T00:00:00.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}`;
|
|
244357
244357
|
}
|
|
244358
244358
|
warnings.push({
|
|
244359
244359
|
issue: `Leftover npm global installation at ${install.path}`,
|
|
@@ -245171,8 +245171,8 @@ async function updateLatest(channelOrVersion, forceReinstall = false) {
|
|
|
245171
245171
|
const maxVersion = await getMaxVersion();
|
|
245172
245172
|
if (maxVersion && gt(version2, maxVersion)) {
|
|
245173
245173
|
logForDebugging(`Native installer: maxVersion ${maxVersion} is set, capping update from ${version2} to ${maxVersion}`);
|
|
245174
|
-
if (gte({ VERSION: "0.2.
|
|
245175
|
-
logForDebugging(`Native installer: current version ${{ VERSION: "0.2.
|
|
245174
|
+
if (gte({ VERSION: "0.2.83", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
|
|
245175
|
+
logForDebugging(`Native installer: current version ${{ VERSION: "0.2.83", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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`);
|
|
245176
245176
|
logEvent("theus_native_update_skipped_max_version", {
|
|
245177
245177
|
latency_ms: Date.now() - startTime2,
|
|
245178
245178
|
max_version: maxVersion,
|
|
@@ -245183,7 +245183,7 @@ async function updateLatest(channelOrVersion, forceReinstall = false) {
|
|
|
245183
245183
|
version2 = maxVersion;
|
|
245184
245184
|
}
|
|
245185
245185
|
}
|
|
245186
|
-
if (!forceReinstall && version2 === { VERSION: "0.2.
|
|
245186
|
+
if (!forceReinstall && version2 === { VERSION: "0.2.83", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
|
|
245187
245187
|
logForDebugging(`Found ${version2} at ${executablePath}, skipping install`);
|
|
245188
245188
|
logEvent("theus_native_update_complete", {
|
|
245189
245189
|
latency_ms: Date.now() - startTime2,
|
|
@@ -245933,8 +245933,8 @@ async function cleanupNpmInstallations() {
|
|
|
245933
245933
|
} else if (codePackageResult.error) {
|
|
245934
245934
|
errors4.push(codePackageResult.error);
|
|
245935
245935
|
}
|
|
245936
|
-
if ({ VERSION: "0.2.
|
|
245937
|
-
const macroPackageResult = await attemptNpmUninstall({ VERSION: "0.2.
|
|
245936
|
+
if ({ VERSION: "0.2.83", BUILD_TIME: "1970-01-01T00:00:00.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.83", BUILD_TIME: "1970-01-01T00:00:00.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") {
|
|
245937
|
+
const macroPackageResult = await attemptNpmUninstall({ VERSION: "0.2.83", BUILD_TIME: "1970-01-01T00:00:00.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);
|
|
245938
245938
|
if (macroPackageResult.success) {
|
|
245939
245939
|
removed++;
|
|
245940
245940
|
if (macroPackageResult.warning) {
|
|
@@ -298313,7 +298313,7 @@ function conservativeCard(model) {
|
|
|
298313
298313
|
}
|
|
298314
298314
|
function cardsForEntry(entry) {
|
|
298315
298315
|
const options2 = readEntryOptions(entry);
|
|
298316
|
-
const family = detectProviderFamily({
|
|
298316
|
+
const family = isTheusSubscription(options2) ? undefined : detectProviderFamily({
|
|
298317
298317
|
id: entry.id,
|
|
298318
298318
|
adapter: entry.adapter,
|
|
298319
298319
|
baseURL: readString(options2.baseURL),
|
|
@@ -298346,6 +298346,14 @@ function cardsForEntry(entry) {
|
|
|
298346
298346
|
function isRoutingDelegated(options2) {
|
|
298347
298347
|
if (options2.routerDelegated === true)
|
|
298348
298348
|
return true;
|
|
298349
|
+
if (options2.routerDelegated === false)
|
|
298350
|
+
return false;
|
|
298351
|
+
const defaultModel = readString(options2.model);
|
|
298352
|
+
return defaultModel !== undefined && SERVER_SIDE_ROUTER_ALIASES.has(defaultModel);
|
|
298353
|
+
}
|
|
298354
|
+
function isTheusSubscription(options2) {
|
|
298355
|
+
if (typeof options2.routerDelegated === "boolean")
|
|
298356
|
+
return true;
|
|
298349
298357
|
const defaultModel = readString(options2.model);
|
|
298350
298358
|
return defaultModel !== undefined && SERVER_SIDE_ROUTER_ALIASES.has(defaultModel);
|
|
298351
298359
|
}
|
|
@@ -298570,6 +298578,9 @@ function isDenied(card, taskKind, rules) {
|
|
|
298570
298578
|
return rules.some((r) => ruleMatches(r, card, taskKind));
|
|
298571
298579
|
}
|
|
298572
298580
|
function estCostUsd(card, estInputTokens) {
|
|
298581
|
+
if (card.weightTt !== undefined) {
|
|
298582
|
+
return (estInputTokens + ASSUMED_OUTPUT_TOKENS) / 1000 * card.weightTt;
|
|
298583
|
+
}
|
|
298573
298584
|
const inCost = estInputTokens / 1000 * card.costPer1kInputUsd;
|
|
298574
298585
|
const outCost = ASSUMED_OUTPUT_TOKENS / 1000 * card.costPer1kOutputUsd;
|
|
298575
298586
|
return inCost + outCost;
|
|
@@ -300327,9 +300338,9 @@ function getTheusEnvMetadata() {
|
|
|
300327
300338
|
};
|
|
300328
300339
|
}
|
|
300329
300340
|
function getBuildAgeMinutes() {
|
|
300330
|
-
if (!{ VERSION: "0.2.
|
|
300341
|
+
if (!{ VERSION: "0.2.83", BUILD_TIME: "1970-01-01T00:00:00.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)
|
|
300331
300342
|
return;
|
|
300332
|
-
const buildTime = new Date({ VERSION: "0.2.
|
|
300343
|
+
const buildTime = new Date({ VERSION: "0.2.83", BUILD_TIME: "1970-01-01T00:00:00.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();
|
|
300333
300344
|
if (isNaN(buildTime))
|
|
300334
300345
|
return;
|
|
300335
300346
|
return Math.floor((Date.now() - buildTime) / 60000);
|
|
@@ -318634,7 +318645,7 @@ function getSimpleDoingTasksSection() {
|
|
|
318634
318645
|
];
|
|
318635
318646
|
const userHelpSubitems = [
|
|
318636
318647
|
`/help: Get help with using Theus`,
|
|
318637
|
-
`To give feedback, users should ${{ VERSION: "0.2.
|
|
318648
|
+
`To give feedback, users should ${{ VERSION: "0.2.83", BUILD_TIME: "1970-01-01T00:00:00.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}`
|
|
318638
318649
|
];
|
|
318639
318650
|
const items = [
|
|
318640
318651
|
`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.`,
|
|
@@ -321756,9 +321767,20 @@ function mapStopReason(finishReason) {
|
|
|
321756
321767
|
function chatCompletionHeaders(provider) {
|
|
321757
321768
|
return {
|
|
321758
321769
|
"content-type": "application/json",
|
|
321759
|
-
...provider.apiKey ? { authorization: `Bearer ${provider.apiKey}` } : {}
|
|
321770
|
+
...provider.apiKey ? { authorization: `Bearer ${provider.apiKey}` } : {},
|
|
321771
|
+
...esGatewayTheus(provider) ? { "x-theus-router": "cliente" } : {}
|
|
321760
321772
|
};
|
|
321761
321773
|
}
|
|
321774
|
+
function esGatewayTheus(provider) {
|
|
321775
|
+
if (provider.id === "theus-official")
|
|
321776
|
+
return true;
|
|
321777
|
+
try {
|
|
321778
|
+
const host = new URL(provider.baseURL).hostname.toLowerCase();
|
|
321779
|
+
return host === "theus.pe" || host.endsWith(".theus.pe");
|
|
321780
|
+
} catch {
|
|
321781
|
+
return false;
|
|
321782
|
+
}
|
|
321783
|
+
}
|
|
321762
321784
|
function parseQuotaExceededBody(status, detail) {
|
|
321763
321785
|
if (status !== 429 && status !== 402)
|
|
321764
321786
|
return;
|
|
@@ -329771,7 +329793,7 @@ async function submitTranscriptShare(messages, trigger, appearanceId) {
|
|
|
329771
329793
|
} catch {}
|
|
329772
329794
|
const data = {
|
|
329773
329795
|
trigger,
|
|
329774
|
-
version: { VERSION: "0.2.
|
|
329796
|
+
version: { VERSION: "0.2.83", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
|
|
329775
329797
|
platform: process.platform,
|
|
329776
329798
|
transcript,
|
|
329777
329799
|
subagentTranscripts: Object.keys(subagentTranscripts).length > 0 ? subagentTranscripts : undefined,
|
|
@@ -329976,10 +329998,10 @@ Si el usuario indic\xF3 una duraci\xF3n, p\xE1sala en el par\xE1metro \`duration
|
|
|
329976
329998
|
|
|
329977
329999
|
// commands/issue/index.ts
|
|
329978
330000
|
function getCliVersion() {
|
|
329979
|
-
return { VERSION: "0.2.
|
|
330001
|
+
return { VERSION: "0.2.83", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.83", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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";
|
|
329980
330002
|
}
|
|
329981
330003
|
function getIssuesExplainer() {
|
|
329982
|
-
return { VERSION: "0.2.
|
|
330004
|
+
return { VERSION: "0.2.83", BUILD_TIME: "1970-01-01T00:00:00.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.83", BUILD_TIME: "1970-01-01T00:00:00.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";
|
|
329983
330005
|
}
|
|
329984
330006
|
function getActiveModelLabel() {
|
|
329985
330007
|
try {
|
|
@@ -332765,7 +332787,7 @@ function buildPrimarySection() {
|
|
|
332765
332787
|
});
|
|
332766
332788
|
return [{
|
|
332767
332789
|
label: "Version",
|
|
332768
|
-
value: { VERSION: "0.2.
|
|
332790
|
+
value: { VERSION: "0.2.83", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
|
|
332769
332791
|
}, {
|
|
332770
332792
|
label: "Session name",
|
|
332771
332793
|
value: nameValue
|
|
@@ -336584,7 +336606,7 @@ function Config({
|
|
|
336584
336606
|
}
|
|
336585
336607
|
})
|
|
336586
336608
|
}) : showSubmenu === "ChannelDowngrade" ? /* @__PURE__ */ jsx_runtime189.jsx(ChannelDowngradeDialog, {
|
|
336587
|
-
currentVersion: { VERSION: "0.2.
|
|
336609
|
+
currentVersion: { VERSION: "0.2.83", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
|
|
336588
336610
|
onChoice: (choice) => {
|
|
336589
336611
|
setShowSubmenu(null);
|
|
336590
336612
|
setTabsHidden(false);
|
|
@@ -336596,7 +336618,7 @@ function Config({
|
|
|
336596
336618
|
autoUpdatesChannel: "stable"
|
|
336597
336619
|
};
|
|
336598
336620
|
if (choice === "stay") {
|
|
336599
|
-
newSettings.minimumVersion = { VERSION: "0.2.
|
|
336621
|
+
newSettings.minimumVersion = { VERSION: "0.2.83", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION;
|
|
336600
336622
|
}
|
|
336601
336623
|
updateSettingsForSource("userSettings", newSettings);
|
|
336602
336624
|
setSettingsData((prev_27) => ({
|
|
@@ -343955,7 +343977,7 @@ function HelpV2(t0) {
|
|
|
343955
343977
|
let t6;
|
|
343956
343978
|
if ($2[31] !== tabs) {
|
|
343957
343979
|
t6 = /* @__PURE__ */ jsx_runtime215.jsx(Tabs, {
|
|
343958
|
-
title: `Theus v${{ VERSION: "0.2.
|
|
343980
|
+
title: `Theus v${{ VERSION: "0.2.83", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION}`,
|
|
343959
343981
|
color: "professionalBlue",
|
|
343960
343982
|
defaultTab: "general",
|
|
343961
343983
|
children: tabs
|
|
@@ -345731,6 +345753,7 @@ var exports_theusWebLogin = {};
|
|
|
345731
345753
|
__export(exports_theusWebLogin, {
|
|
345732
345754
|
splitCommandArgs: () => splitCommandArgs,
|
|
345733
345755
|
runTheusWebLogin: () => runTheusWebLogin,
|
|
345756
|
+
readRoutingMetadata: () => readRoutingMetadata,
|
|
345734
345757
|
planLabelFromProfile: () => planLabelFromProfile,
|
|
345735
345758
|
parseTheusWebLoginArgs: () => parseTheusWebLoginArgs
|
|
345736
345759
|
});
|
|
@@ -345738,6 +345761,45 @@ import { createServer as createServer7 } from "http";
|
|
|
345738
345761
|
import { createHash as createHash29, randomBytes as randomBytes17 } from "crypto";
|
|
345739
345762
|
import { mkdir as mkdir41, writeFile as writeFile43 } from "fs/promises";
|
|
345740
345763
|
import { join as join126 } from "path";
|
|
345764
|
+
function esEnteroPositivo(v) {
|
|
345765
|
+
return typeof v === "number" && Number.isFinite(v) && v > 0;
|
|
345766
|
+
}
|
|
345767
|
+
function readRoutingMetadata(raw) {
|
|
345768
|
+
if (!raw || typeof raw !== "object")
|
|
345769
|
+
return null;
|
|
345770
|
+
const r = raw;
|
|
345771
|
+
const weight = r.weight;
|
|
345772
|
+
const tier = r.quality_tier;
|
|
345773
|
+
const afinidad = r.task_affinity;
|
|
345774
|
+
if (typeof weight !== "number" || !Number.isFinite(weight) || weight <= 0) {
|
|
345775
|
+
return null;
|
|
345776
|
+
}
|
|
345777
|
+
if (typeof r.tools !== "boolean" || typeof r.vision !== "boolean")
|
|
345778
|
+
return null;
|
|
345779
|
+
if (!esEnteroPositivo(r.context_window))
|
|
345780
|
+
return null;
|
|
345781
|
+
if (!esEnteroPositivo(r.max_output_tokens))
|
|
345782
|
+
return null;
|
|
345783
|
+
if (typeof tier !== "number" || !Number.isInteger(tier) || tier < 1 || tier > 5) {
|
|
345784
|
+
return null;
|
|
345785
|
+
}
|
|
345786
|
+
if (!Array.isArray(afinidad) || afinidad.length === 0)
|
|
345787
|
+
return null;
|
|
345788
|
+
const tareas = afinidad.filter((t) => typeof t === "string" && TASK_KINDS_VALIDOS.has(t));
|
|
345789
|
+
if (tareas.length === 0)
|
|
345790
|
+
return null;
|
|
345791
|
+
const eligible2 = r.eligible === true;
|
|
345792
|
+
return {
|
|
345793
|
+
weight,
|
|
345794
|
+
tools: r.tools,
|
|
345795
|
+
vision: r.vision,
|
|
345796
|
+
contextWindow: r.context_window,
|
|
345797
|
+
maxOutputTokens: r.max_output_tokens,
|
|
345798
|
+
qualityTier: tier,
|
|
345799
|
+
taskAffinity: tareas,
|
|
345800
|
+
eligible: eligible2
|
|
345801
|
+
};
|
|
345802
|
+
}
|
|
345741
345803
|
function parseTheusWebLoginArgs(argv) {
|
|
345742
345804
|
const options2 = {};
|
|
345743
345805
|
for (let i3 = 0;i3 < argv.length; i3 += 1) {
|
|
@@ -346105,6 +346167,7 @@ async function installTheusSession(payload, webUrl) {
|
|
|
346105
346167
|
};
|
|
346106
346168
|
});
|
|
346107
346169
|
let models = [];
|
|
346170
|
+
let routableModels = 0;
|
|
346108
346171
|
try {
|
|
346109
346172
|
const res = await fetch(`${normalizeWebUrl(webUrl)}/v1/models`, {
|
|
346110
346173
|
headers: { Authorization: `Bearer ${payload.token}` },
|
|
@@ -346112,20 +346175,45 @@ async function installTheusSession(payload, webUrl) {
|
|
|
346112
346175
|
});
|
|
346113
346176
|
if (res.ok) {
|
|
346114
346177
|
const data = await res.json();
|
|
346115
|
-
models = (data.data ?? []).filter((m) => typeof m?.id === "string" && m.id !== "theus-embed" && m.id !== "theus-router-auto").map((m) =>
|
|
346116
|
-
|
|
346117
|
-
|
|
346118
|
-
|
|
346119
|
-
|
|
346120
|
-
|
|
346121
|
-
|
|
346122
|
-
|
|
346123
|
-
|
|
346124
|
-
|
|
346125
|
-
|
|
346126
|
-
|
|
346127
|
-
|
|
346128
|
-
|
|
346178
|
+
models = (data.data ?? []).filter((m) => typeof m?.id === "string" && m.id !== "theus-embed" && m.id !== "theus-router-auto").map((m) => {
|
|
346179
|
+
const id = m.id;
|
|
346180
|
+
const label = typeof m.name === "string" ? m.name : id;
|
|
346181
|
+
const routing = readRoutingMetadata(m.routing);
|
|
346182
|
+
if (routing) {
|
|
346183
|
+
return {
|
|
346184
|
+
providerId: "theus-official",
|
|
346185
|
+
model: id,
|
|
346186
|
+
label,
|
|
346187
|
+
taskAffinity: routing.taskAffinity,
|
|
346188
|
+
supportsTools: routing.tools,
|
|
346189
|
+
supportsVision: routing.vision,
|
|
346190
|
+
contextWindow: routing.contextWindow,
|
|
346191
|
+
maxOutputTokens: routing.maxOutputTokens,
|
|
346192
|
+
costPer1kInputUsd: 0,
|
|
346193
|
+
costPer1kOutputUsd: 0,
|
|
346194
|
+
weightTt: routing.weight,
|
|
346195
|
+
qualityTier: routing.qualityTier,
|
|
346196
|
+
latencyClass: "medium",
|
|
346197
|
+
enabled: routing.eligible
|
|
346198
|
+
};
|
|
346199
|
+
}
|
|
346200
|
+
return {
|
|
346201
|
+
providerId: "theus-official",
|
|
346202
|
+
model: id,
|
|
346203
|
+
label,
|
|
346204
|
+
taskAffinity: ["code", "chat"],
|
|
346205
|
+
supportsTools: true,
|
|
346206
|
+
supportsVision: m.modality === "multimodal",
|
|
346207
|
+
contextWindow: 200000,
|
|
346208
|
+
maxOutputTokens: 8192,
|
|
346209
|
+
costPer1kInputUsd: 0,
|
|
346210
|
+
costPer1kOutputUsd: 0,
|
|
346211
|
+
qualityTier: 5,
|
|
346212
|
+
latencyClass: "medium",
|
|
346213
|
+
enabled: false
|
|
346214
|
+
};
|
|
346215
|
+
});
|
|
346216
|
+
routableModels = models.filter((m) => m.enabled === true).length;
|
|
346129
346217
|
}
|
|
346130
346218
|
} catch {}
|
|
346131
346219
|
const officialProvider = saveProviderSetup("custom", {
|
|
@@ -346136,7 +346224,7 @@ async function installTheusSession(payload, webUrl) {
|
|
|
346136
346224
|
apiKey: payload.token,
|
|
346137
346225
|
priority: 250,
|
|
346138
346226
|
enabled: true,
|
|
346139
|
-
routerDelegated:
|
|
346227
|
+
routerDelegated: routableModels === 0,
|
|
346140
346228
|
...models.length ? { models } : {}
|
|
346141
346229
|
});
|
|
346142
346230
|
await writeFile43(join126(configDir, "session.json"), JSON.stringify({
|
|
@@ -346186,13 +346274,25 @@ function escapeHtml2(value) {
|
|
|
346186
346274
|
}
|
|
346187
346275
|
});
|
|
346188
346276
|
}
|
|
346189
|
-
var DEFAULT_WEB_URL = "https://theus.pe", CLIENT_ID = "9d1c250a-e61b-44d9-88ed-5944d1962f5e", OAUTH_SCOPE, NOMBRE_DE_PLAN;
|
|
346277
|
+
var TASK_KINDS_VALIDOS, DEFAULT_WEB_URL = "https://theus.pe", CLIENT_ID = "9d1c250a-e61b-44d9-88ed-5944d1962f5e", OAUTH_SCOPE, NOMBRE_DE_PLAN;
|
|
346190
346278
|
var init_theusWebLogin = __esm(() => {
|
|
346191
346279
|
init_browser();
|
|
346192
346280
|
init_envUtils();
|
|
346193
346281
|
init_config2();
|
|
346194
346282
|
init_authPortable();
|
|
346195
346283
|
init_setupConfig();
|
|
346284
|
+
TASK_KINDS_VALIDOS = new Set([
|
|
346285
|
+
"code",
|
|
346286
|
+
"reasoning",
|
|
346287
|
+
"summarize",
|
|
346288
|
+
"chat",
|
|
346289
|
+
"planning",
|
|
346290
|
+
"tool_use",
|
|
346291
|
+
"vision",
|
|
346292
|
+
"embedding",
|
|
346293
|
+
"long_context",
|
|
346294
|
+
"cheap_bulk"
|
|
346295
|
+
]);
|
|
346196
346296
|
OAUTH_SCOPE = [
|
|
346197
346297
|
"org:create_api_key",
|
|
346198
346298
|
"user:profile",
|
|
@@ -362779,7 +362879,7 @@ function Onboarding({
|
|
|
362779
362879
|
flexDirection: "column",
|
|
362780
362880
|
children: [
|
|
362781
362881
|
/* @__PURE__ */ jsx_runtime251.jsx(TheusBanner, {
|
|
362782
|
-
version: { VERSION: "0.2.
|
|
362882
|
+
version: { VERSION: "0.2.83", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
|
|
362783
362883
|
}),
|
|
362784
362884
|
/* @__PURE__ */ jsx_runtime251.jsxs(ThemedBox_default, {
|
|
362785
362885
|
flexDirection: "column",
|
|
@@ -368193,7 +368293,7 @@ var init_Messages = __esm(() => {
|
|
|
368193
368293
|
let t1;
|
|
368194
368294
|
if ($2[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
368195
368295
|
t1 = /* @__PURE__ */ jsx_runtime264.jsx(TheusSessionHeader, {
|
|
368196
|
-
version: { VERSION: "0.2.
|
|
368296
|
+
version: { VERSION: "0.2.83", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
|
|
368197
368297
|
});
|
|
368198
368298
|
$2[0] = t1;
|
|
368199
368299
|
} else {
|
|
@@ -400062,7 +400162,7 @@ async function captureMemoryDiagnostics(trigger, dumpNumber = 0) {
|
|
|
400062
400162
|
smapsRollup,
|
|
400063
400163
|
platform: process.platform,
|
|
400064
400164
|
nodeVersion: process.version,
|
|
400065
|
-
ccVersion: { VERSION: "0.2.
|
|
400165
|
+
ccVersion: { VERSION: "0.2.83", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
|
|
400066
400166
|
};
|
|
400067
400167
|
}
|
|
400068
400168
|
async function performHeapDump(trigger = "manual", dumpNumber = 0) {
|
|
@@ -400823,7 +400923,7 @@ var init_bridge_kick = __esm(() => {
|
|
|
400823
400923
|
var call69 = async () => {
|
|
400824
400924
|
return {
|
|
400825
400925
|
type: "text",
|
|
400826
|
-
value: { VERSION: "0.2.
|
|
400926
|
+
value: { VERSION: "0.2.83", BUILD_TIME: "1970-01-01T00:00:00.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.83", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.83", BUILD_TIME: "1970-01-01T00:00:00.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.83", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
|
|
400827
400927
|
};
|
|
400828
400928
|
}, version2, version_default;
|
|
400829
400929
|
var init_version = __esm(() => {
|
|
@@ -403424,7 +403524,7 @@ var SECRET_NAME_PATTERN, EXTRA_ENV_ALLOWLIST, REDACTED2 = "\u2039oculto\u203A",
|
|
|
403424
403524
|
const lines = [];
|
|
403425
403525
|
lines.push("## Entorno de ejecuci\xF3n");
|
|
403426
403526
|
lines.push("");
|
|
403427
|
-
const version3 = { VERSION: "0.2.
|
|
403527
|
+
const version3 = { VERSION: "0.2.83", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.83", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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";
|
|
403428
403528
|
lines.push(`- Versi\xF3n de Theus: ${version3}`);
|
|
403429
403529
|
lines.push(`- Directorio de trabajo: ${getCwd()}`);
|
|
403430
403530
|
lines.push(`- \xBFRepositorio git?: ${isGit ? "s\xED" : "no"}`);
|
|
@@ -405965,13 +406065,13 @@ async function updateReleaseBundle() {
|
|
|
405965
406065
|
await gracefulShutdown(1);
|
|
405966
406066
|
return;
|
|
405967
406067
|
}
|
|
405968
|
-
if (gte({ VERSION: "0.2.
|
|
405969
|
-
writeToStdout(source_default.green(`Theus ya est\xE1 al d\xEDa (${{ VERSION: "0.2.
|
|
406068
|
+
if (gte({ VERSION: "0.2.83", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
|
|
406069
|
+
writeToStdout(source_default.green(`Theus ya est\xE1 al d\xEDa (${{ VERSION: "0.2.83", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION})`) + `
|
|
405970
406070
|
`);
|
|
405971
406071
|
await gracefulShutdown(0);
|
|
405972
406072
|
return;
|
|
405973
406073
|
}
|
|
405974
|
-
writeToStdout(`Nueva versi\xF3n disponible: ${latest} (actual: ${{ VERSION: "0.2.
|
|
406074
|
+
writeToStdout(`Nueva versi\xF3n disponible: ${latest} (actual: ${{ VERSION: "0.2.83", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION})
|
|
405975
406075
|
`);
|
|
405976
406076
|
writeToStdout(`Instalando la actualizaci\xF3n desde theus.pe/dl...
|
|
405977
406077
|
`);
|
|
@@ -406005,7 +406105,7 @@ async function updateReleaseBundle() {
|
|
|
406005
406105
|
return;
|
|
406006
406106
|
}
|
|
406007
406107
|
cpSync(staged, bundleDir, { recursive: true, force: true });
|
|
406008
|
-
writeToStdout(source_default.green(`Actualizado correctamente de ${{ VERSION: "0.2.
|
|
406108
|
+
writeToStdout(source_default.green(`Actualizado correctamente de ${{ VERSION: "0.2.83", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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}`) + `
|
|
406009
406109
|
`);
|
|
406010
406110
|
await regenerateCompletionCache();
|
|
406011
406111
|
} finally {
|
|
@@ -406018,7 +406118,7 @@ async function updateReleaseBundle() {
|
|
|
406018
406118
|
async function update() {
|
|
406019
406119
|
logEvent("theus_update_check", {});
|
|
406020
406120
|
await updateNaupa();
|
|
406021
|
-
writeToStdout(`Versi\xF3n actual: ${{ VERSION: "0.2.
|
|
406121
|
+
writeToStdout(`Versi\xF3n actual: ${{ VERSION: "0.2.83", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION}
|
|
406022
406122
|
`);
|
|
406023
406123
|
const channel2 = getInitialSettings()?.autoUpdatesChannel ?? "latest";
|
|
406024
406124
|
writeToStdout(`Buscando actualizaciones en el canal ${channel2}...
|
|
@@ -406097,8 +406197,8 @@ async function update() {
|
|
|
406097
406197
|
writeToStdout(`Theus est\xE1 gestionado por Homebrew.
|
|
406098
406198
|
`);
|
|
406099
406199
|
const latest = await getLatestVersion(channel2);
|
|
406100
|
-
if (latest && !gte({ VERSION: "0.2.
|
|
406101
|
-
writeToStdout(`Actualizaci\xF3n disponible: ${{ VERSION: "0.2.
|
|
406200
|
+
if (latest && !gte({ VERSION: "0.2.83", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
|
|
406201
|
+
writeToStdout(`Actualizaci\xF3n disponible: ${{ VERSION: "0.2.83", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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}
|
|
406102
406202
|
`);
|
|
406103
406203
|
writeToStdout(`
|
|
406104
406204
|
`);
|
|
@@ -406114,8 +406214,8 @@ async function update() {
|
|
|
406114
406214
|
writeToStdout(`Theus est\xE1 gestionado por winget.
|
|
406115
406215
|
`);
|
|
406116
406216
|
const latest = await getLatestVersion(channel2);
|
|
406117
|
-
if (latest && !gte({ VERSION: "0.2.
|
|
406118
|
-
writeToStdout(`Actualizaci\xF3n disponible: ${{ VERSION: "0.2.
|
|
406217
|
+
if (latest && !gte({ VERSION: "0.2.83", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
|
|
406218
|
+
writeToStdout(`Actualizaci\xF3n disponible: ${{ VERSION: "0.2.83", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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}
|
|
406119
406219
|
`);
|
|
406120
406220
|
writeToStdout(`
|
|
406121
406221
|
`);
|
|
@@ -406131,8 +406231,8 @@ async function update() {
|
|
|
406131
406231
|
writeToStdout(`Theus est\xE1 gestionado por apk.
|
|
406132
406232
|
`);
|
|
406133
406233
|
const latest = await getLatestVersion(channel2);
|
|
406134
|
-
if (latest && !gte({ VERSION: "0.2.
|
|
406135
|
-
writeToStdout(`Actualizaci\xF3n disponible: ${{ VERSION: "0.2.
|
|
406234
|
+
if (latest && !gte({ VERSION: "0.2.83", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
|
|
406235
|
+
writeToStdout(`Actualizaci\xF3n disponible: ${{ VERSION: "0.2.83", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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}
|
|
406136
406236
|
`);
|
|
406137
406237
|
writeToStdout(`
|
|
406138
406238
|
`);
|
|
@@ -406197,11 +406297,11 @@ async function update() {
|
|
|
406197
406297
|
`);
|
|
406198
406298
|
await gracefulShutdown(1);
|
|
406199
406299
|
}
|
|
406200
|
-
if (result.latestVersion === { VERSION: "0.2.
|
|
406201
|
-
writeToStdout(source_default.green(`Theus ya est\xE1 al d\xEDa (${{ VERSION: "0.2.
|
|
406300
|
+
if (result.latestVersion === { VERSION: "0.2.83", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION) {
|
|
406301
|
+
writeToStdout(source_default.green(`Theus ya est\xE1 al d\xEDa (${{ VERSION: "0.2.83", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION})`) + `
|
|
406202
406302
|
`);
|
|
406203
406303
|
} else {
|
|
406204
|
-
writeToStdout(source_default.green(`Actualizado correctamente de ${{ VERSION: "0.2.
|
|
406304
|
+
writeToStdout(source_default.green(`Actualizado correctamente de ${{ VERSION: "0.2.83", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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}`) + `
|
|
406205
406305
|
`);
|
|
406206
406306
|
await regenerateCompletionCache();
|
|
406207
406307
|
}
|
|
@@ -406220,9 +406320,9 @@ async function update() {
|
|
|
406220
406320
|
await removeInstalledSymlink();
|
|
406221
406321
|
}
|
|
406222
406322
|
logForDebugging("update: Checking npm registry for latest version");
|
|
406223
|
-
logForDebugging(`update: Package URL: ${{ VERSION: "0.2.
|
|
406323
|
+
logForDebugging(`update: Package URL: ${{ VERSION: "0.2.83", BUILD_TIME: "1970-01-01T00:00:00.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}`);
|
|
406224
406324
|
const npmTag = channel2 === "stable" ? "stable" : "latest";
|
|
406225
|
-
const npmCommand = `npm view ${{ VERSION: "0.2.
|
|
406325
|
+
const npmCommand = `npm view ${{ VERSION: "0.2.83", BUILD_TIME: "1970-01-01T00:00:00.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`;
|
|
406226
406326
|
logForDebugging(`update: Running: ${npmCommand}`);
|
|
406227
406327
|
const latestVersion = await getLatestVersion(channel2);
|
|
406228
406328
|
logForDebugging(`update: Latest version from npm: ${latestVersion || "FAILED"}`);
|
|
@@ -406242,7 +406342,7 @@ async function update() {
|
|
|
406242
406342
|
`);
|
|
406243
406343
|
process.stderr.write(` \u2022 Un proxy o firewall corporativo bloquea npm
|
|
406244
406344
|
`);
|
|
406245
|
-
if ({ VERSION: "0.2.
|
|
406345
|
+
if ({ VERSION: "0.2.83", BUILD_TIME: "1970-01-01T00:00:00.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.83", BUILD_TIME: "1970-01-01T00:00:00.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")) {
|
|
406246
406346
|
process.stderr.write(` \u2022 Compilaci\xF3n interna/de desarrollo no publicada en npm
|
|
406247
406347
|
`);
|
|
406248
406348
|
}
|
|
@@ -406254,19 +406354,19 @@ async function update() {
|
|
|
406254
406354
|
`);
|
|
406255
406355
|
process.stderr.write(` \u2022 Ejecuta con el flag --debug para m\xE1s detalle
|
|
406256
406356
|
`);
|
|
406257
|
-
const packageName = { VERSION: "0.2.
|
|
406357
|
+
const packageName = { VERSION: "0.2.83", BUILD_TIME: "1970-01-01T00:00:00.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";
|
|
406258
406358
|
process.stderr.write(` \u2022 Comprueba a mano: npm view ${packageName} version
|
|
406259
406359
|
`);
|
|
406260
406360
|
process.stderr.write(` \u2022 Comprueba si te falta iniciar sesi\xF3n: npm whoami
|
|
406261
406361
|
`);
|
|
406262
406362
|
await gracefulShutdown(1);
|
|
406263
406363
|
}
|
|
406264
|
-
if (gte({ VERSION: "0.2.
|
|
406265
|
-
writeToStdout(source_default.green(`Theus ya est\xE1 al d\xEDa (${{ VERSION: "0.2.
|
|
406364
|
+
if (gte({ VERSION: "0.2.83", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
|
|
406365
|
+
writeToStdout(source_default.green(`Theus ya est\xE1 al d\xEDa (${{ VERSION: "0.2.83", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION})`) + `
|
|
406266
406366
|
`);
|
|
406267
406367
|
await gracefulShutdown(0);
|
|
406268
406368
|
}
|
|
406269
|
-
writeToStdout(`Nueva versi\xF3n disponible: ${latestVersion} (actual: ${{ VERSION: "0.2.
|
|
406369
|
+
writeToStdout(`Nueva versi\xF3n disponible: ${latestVersion} (actual: ${{ VERSION: "0.2.83", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION})
|
|
406270
406370
|
`);
|
|
406271
406371
|
writeToStdout(`Instalando la actualizaci\xF3n...
|
|
406272
406372
|
`);
|
|
@@ -406311,7 +406411,7 @@ async function update() {
|
|
|
406311
406411
|
logForDebugging(`update: Installation status: ${status2}`);
|
|
406312
406412
|
switch (status2) {
|
|
406313
406413
|
case "success":
|
|
406314
|
-
writeToStdout(source_default.green(`Actualizado correctamente de ${{ VERSION: "0.2.
|
|
406414
|
+
writeToStdout(source_default.green(`Actualizado correctamente de ${{ VERSION: "0.2.83", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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}`) + `
|
|
406315
406415
|
`);
|
|
406316
406416
|
await regenerateCompletionCache();
|
|
406317
406417
|
break;
|
|
@@ -406321,7 +406421,7 @@ async function update() {
|
|
|
406321
406421
|
if (useLocalUpdate) {
|
|
406322
406422
|
process.stderr.write(`Prueba a actualizar a mano con:
|
|
406323
406423
|
`);
|
|
406324
|
-
process.stderr.write(` cd ~/.theus/local && npm update ${{ VERSION: "0.2.
|
|
406424
|
+
process.stderr.write(` cd ~/.theus/local && npm update ${{ VERSION: "0.2.83", BUILD_TIME: "1970-01-01T00:00:00.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}
|
|
406325
406425
|
`);
|
|
406326
406426
|
} else {
|
|
406327
406427
|
process.stderr.write(`Prueba con sudo o corrige los permisos de npm
|
|
@@ -406337,7 +406437,7 @@ async function update() {
|
|
|
406337
406437
|
if (useLocalUpdate) {
|
|
406338
406438
|
process.stderr.write(`Prueba a actualizar a mano con:
|
|
406339
406439
|
`);
|
|
406340
|
-
process.stderr.write(` cd ~/.theus/local && npm update ${{ VERSION: "0.2.
|
|
406440
|
+
process.stderr.write(` cd ~/.theus/local && npm update ${{ VERSION: "0.2.83", BUILD_TIME: "1970-01-01T00:00:00.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}
|
|
406341
406441
|
`);
|
|
406342
406442
|
} else {
|
|
406343
406443
|
process.stderr.write(`O p\xE1sate a la instalaci\xF3n nativa con: theus install
|
|
@@ -415762,7 +415862,7 @@ var init_sessionStorage = __esm(() => {
|
|
|
415762
415862
|
init_settings2();
|
|
415763
415863
|
init_slowOperations();
|
|
415764
415864
|
init_uuid();
|
|
415765
|
-
VERSION4 = { VERSION: "0.2.
|
|
415865
|
+
VERSION4 = { VERSION: "0.2.83", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION;
|
|
415766
415866
|
MAX_TOMBSTONE_REWRITE_BYTES = 50 * 1024 * 1024;
|
|
415767
415867
|
SKIP_FIRST_PROMPT_PATTERN2 = /^(?:\s*<[a-z][\w-]*[\s>]|\[Request interrupted by user[^\]]*\])/;
|
|
415768
415868
|
EPHEMERAL_PROGRESS_TYPES = new Set([
|
|
@@ -416967,7 +417067,7 @@ var init_filesystem = __esm(() => {
|
|
|
416967
417067
|
});
|
|
416968
417068
|
getBundledSkillsRoot = memoize_default(function getBundledSkillsRoot2() {
|
|
416969
417069
|
const nonce = randomBytes21(16).toString("hex");
|
|
416970
|
-
return join154(getTheusTempDir(), "bundled-skills", { VERSION: "0.2.
|
|
417070
|
+
return join154(getTheusTempDir(), "bundled-skills", { VERSION: "0.2.83", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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);
|
|
416971
417071
|
});
|
|
416972
417072
|
getResolvedWorkingDirPaths = memoize_default(getPathsForPermissionCheck);
|
|
416973
417073
|
});
|
|
@@ -429209,7 +429309,7 @@ async function handleMemories(state2) {
|
|
|
429209
429309
|
async function runProjectContextMcpServer() {
|
|
429210
429310
|
const projectRoot = process.env.THEUS_PROJECT_ROOT || process.cwd();
|
|
429211
429311
|
const state2 = new ProjectContextState(projectRoot);
|
|
429212
|
-
const server2 = new Server({ name: SERVER_NAME, version: { VERSION: "0.2.
|
|
429312
|
+
const server2 = new Server({ name: SERVER_NAME, version: { VERSION: "0.2.83", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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: {} } });
|
|
429213
429313
|
server2.setRequestHandler(ListToolsRequestSchema, async () => ({
|
|
429214
429314
|
tools: TOOL_DEFINITIONS.map((t) => ({
|
|
429215
429315
|
name: t.name,
|
|
@@ -431886,7 +431986,7 @@ async function runTitanFleetWorker(args) {
|
|
|
431886
431986
|
max_concurrency: maxConcurrency,
|
|
431887
431987
|
runtime: {
|
|
431888
431988
|
name: "theus-cli",
|
|
431889
|
-
version: { VERSION: "0.2.
|
|
431989
|
+
version: { VERSION: "0.2.83", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
|
|
431890
431990
|
}
|
|
431891
431991
|
});
|
|
431892
431992
|
const client2 = new TitanFleetClient({
|
|
@@ -433777,7 +433877,7 @@ function createBridgeLogger(options2) {
|
|
|
433777
433877
|
connectUrl = buildBridgeConnectUrl(environmentId, cachedIngressUrl);
|
|
433778
433878
|
regenerateQr(connectUrl);
|
|
433779
433879
|
if (verbose) {
|
|
433780
|
-
write(source_default.dim(`Remote Control`) + ` v${{ VERSION: "0.2.
|
|
433880
|
+
write(source_default.dim(`Remote Control`) + ` v${{ VERSION: "0.2.83", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION}
|
|
433781
433881
|
`);
|
|
433782
433882
|
}
|
|
433783
433883
|
if (verbose) {
|
|
@@ -434750,7 +434850,7 @@ function appendToLog(path19, message) {
|
|
|
434750
434850
|
cwd: getFsImplementation().cwd(),
|
|
434751
434851
|
userType: "external",
|
|
434752
434852
|
sessionId: getSessionId(),
|
|
434753
|
-
version: { VERSION: "0.2.
|
|
434853
|
+
version: { VERSION: "0.2.83", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
|
|
434754
434854
|
};
|
|
434755
434855
|
getLogWriter(path19).write(messageWithTimestamp);
|
|
434756
434856
|
}
|
|
@@ -436011,7 +436111,7 @@ Spawn mode for this project:
|
|
|
436011
436111
|
const api2 = createBridgeApiClient({
|
|
436012
436112
|
baseUrl,
|
|
436013
436113
|
getAccessToken: getBridgeAccessToken2,
|
|
436014
|
-
runnerVersion: { VERSION: "0.2.
|
|
436114
|
+
runnerVersion: { VERSION: "0.2.83", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
|
|
436015
436115
|
onDebug: logForDebugging,
|
|
436016
436116
|
onAuth401: handleOAuth401Error2,
|
|
436017
436117
|
getTrustedDeviceToken
|
|
@@ -436249,7 +436349,7 @@ async function runBridgeHeadless(opts, signal) {
|
|
|
436249
436349
|
const api2 = createBridgeApiClient({
|
|
436250
436350
|
baseUrl,
|
|
436251
436351
|
getAccessToken: opts.getAccessToken,
|
|
436252
|
-
runnerVersion: { VERSION: "0.2.
|
|
436352
|
+
runnerVersion: { VERSION: "0.2.83", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
|
|
436253
436353
|
onDebug: log2,
|
|
436254
436354
|
onAuth401: opts.onAuth401,
|
|
436255
436355
|
getTrustedDeviceToken
|
|
@@ -439541,7 +439641,7 @@ function buildSystemInitMessage(inputs) {
|
|
|
439541
439641
|
slash_commands: inputs.commands.filter((c5) => c5.userInvocable !== false).map((c5) => c5.name),
|
|
439542
439642
|
apiKeySource: getTheusApiKeyWithSource().source,
|
|
439543
439643
|
betas: getSdkBetas(),
|
|
439544
|
-
theus_code_version: { VERSION: "0.2.
|
|
439644
|
+
theus_code_version: { VERSION: "0.2.83", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
|
|
439545
439645
|
output_style: outputStyle2,
|
|
439546
439646
|
agents: inputs.agents.map((agent) => agent.agentType),
|
|
439547
439647
|
skills: inputs.skills.filter((s) => s.userInvocable !== false).map((skill) => skill.name),
|
|
@@ -439581,8 +439681,8 @@ async function getEnvLessBridgeConfig() {
|
|
|
439581
439681
|
}
|
|
439582
439682
|
async function checkEnvLessBridgeMinVersion() {
|
|
439583
439683
|
const cfg = await getEnvLessBridgeConfig();
|
|
439584
|
-
if (cfg.min_version && lt({ VERSION: "0.2.
|
|
439585
|
-
return `Your version of Theus (${{ VERSION: "0.2.
|
|
439684
|
+
if (cfg.min_version && lt({ VERSION: "0.2.83", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
|
|
439685
|
+
return `Your version of Theus (${{ VERSION: "0.2.83", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.
|
|
439586
439686
|
Version ${cfg.min_version} or higher is required. Run \`theus update\` to update.`;
|
|
439587
439687
|
}
|
|
439588
439688
|
return null;
|
|
@@ -441906,7 +442006,7 @@ async function initBridgeCore(params) {
|
|
|
441906
442006
|
const rawApi = createBridgeApiClient({
|
|
441907
442007
|
baseUrl,
|
|
441908
442008
|
getAccessToken,
|
|
441909
|
-
runnerVersion: { VERSION: "0.2.
|
|
442009
|
+
runnerVersion: { VERSION: "0.2.83", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
|
|
441910
442010
|
onDebug: logForDebugging,
|
|
441911
442011
|
onAuth401,
|
|
441912
442012
|
getTrustedDeviceToken
|
|
@@ -458547,7 +458647,7 @@ var init_useVoiceEnabled = __esm(() => {
|
|
|
458547
458647
|
function getSemverPart(version3) {
|
|
458548
458648
|
return `${import_semver11.major(version3, { loose: true })}.${import_semver11.minor(version3, { loose: true })}.${import_semver11.patch(version3, { loose: true })}`;
|
|
458549
458649
|
}
|
|
458550
|
-
function useUpdateNotification(updatedVersion, initialVersion = { VERSION: "0.2.
|
|
458650
|
+
function useUpdateNotification(updatedVersion, initialVersion = { VERSION: "0.2.83", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION) {
|
|
458551
458651
|
const [lastNotifiedSemver, setLastNotifiedSemver] = import_react235.useState(() => getSemverPart(initialVersion));
|
|
458552
458652
|
if (!updatedVersion) {
|
|
458553
458653
|
return null;
|
|
@@ -458587,7 +458687,7 @@ function AutoUpdater({
|
|
|
458587
458687
|
return;
|
|
458588
458688
|
}
|
|
458589
458689
|
if (false) {}
|
|
458590
|
-
const currentVersion = { VERSION: "0.2.
|
|
458690
|
+
const currentVersion = { VERSION: "0.2.83", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION;
|
|
458591
458691
|
const channel2 = getInitialSettings()?.autoUpdatesChannel ?? "latest";
|
|
458592
458692
|
let latestVersion = await getLatestVersion(channel2);
|
|
458593
458693
|
const isDisabled2 = isAutoUpdaterDisabled();
|
|
@@ -458722,7 +458822,7 @@ function AutoUpdater({
|
|
|
458722
458822
|
" ",
|
|
458723
458823
|
/* @__PURE__ */ jsx_runtime415.jsx(ThemedText, {
|
|
458724
458824
|
bold: true,
|
|
458725
|
-
children: hasLocalInstall ? `cd ~/.theus/local && npm update ${{ VERSION: "0.2.
|
|
458825
|
+
children: hasLocalInstall ? `cd ~/.theus/local && npm update ${{ VERSION: "0.2.83", BUILD_TIME: "1970-01-01T00:00:00.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.83", BUILD_TIME: "1970-01-01T00:00:00.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}`
|
|
458726
458826
|
})
|
|
458727
458827
|
]
|
|
458728
458828
|
})
|
|
@@ -458799,12 +458899,12 @@ function NativeAutoUpdater({
|
|
|
458799
458899
|
logEvent("theus_native_auto_updater_start", {});
|
|
458800
458900
|
try {
|
|
458801
458901
|
const maxVersion = await getMaxVersion();
|
|
458802
|
-
if (maxVersion && gt({ VERSION: "0.2.
|
|
458902
|
+
if (maxVersion && gt({ VERSION: "0.2.83", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
|
|
458803
458903
|
const msg = await getMaxVersionMessage();
|
|
458804
458904
|
setMaxVersionIssue(msg ?? "affects your version");
|
|
458805
458905
|
}
|
|
458806
458906
|
const result = await installLatest(channel2);
|
|
458807
|
-
const currentVersion = { VERSION: "0.2.
|
|
458907
|
+
const currentVersion = { VERSION: "0.2.83", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION;
|
|
458808
458908
|
const latencyMs = Date.now() - startTime2;
|
|
458809
458909
|
if (result.lockFailed) {
|
|
458810
458910
|
logEvent("theus_native_auto_updater_lock_contention", {
|
|
@@ -458941,17 +459041,17 @@ function PackageManagerAutoUpdater(t0) {
|
|
|
458941
459041
|
const maxVersion = await getMaxVersion();
|
|
458942
459042
|
if (maxVersion && latest && gt(latest, maxVersion)) {
|
|
458943
459043
|
logForDebugging(`PackageManagerAutoUpdater: maxVersion ${maxVersion} is set, capping update from ${latest} to ${maxVersion}`);
|
|
458944
|
-
if (gte({ VERSION: "0.2.
|
|
458945
|
-
logForDebugging(`PackageManagerAutoUpdater: current version ${{ VERSION: "0.2.
|
|
459044
|
+
if (gte({ VERSION: "0.2.83", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
|
|
459045
|
+
logForDebugging(`PackageManagerAutoUpdater: current version ${{ VERSION: "0.2.83", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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`);
|
|
458946
459046
|
setUpdateAvailable(false);
|
|
458947
459047
|
return;
|
|
458948
459048
|
}
|
|
458949
459049
|
latest = maxVersion;
|
|
458950
459050
|
}
|
|
458951
|
-
const hasUpdate = latest && !gte({ VERSION: "0.2.
|
|
459051
|
+
const hasUpdate = latest && !gte({ VERSION: "0.2.83", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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);
|
|
458952
459052
|
setUpdateAvailable(!!hasUpdate);
|
|
458953
459053
|
if (hasUpdate) {
|
|
458954
|
-
logForDebugging(`PackageManagerAutoUpdater: Update available ${{ VERSION: "0.2.
|
|
459054
|
+
logForDebugging(`PackageManagerAutoUpdater: Update available ${{ VERSION: "0.2.83", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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}`);
|
|
458955
459055
|
}
|
|
458956
459056
|
};
|
|
458957
459057
|
$2[0] = t1;
|
|
@@ -458985,7 +459085,7 @@ function PackageManagerAutoUpdater(t0) {
|
|
|
458985
459085
|
wrap: "truncate",
|
|
458986
459086
|
children: [
|
|
458987
459087
|
"versi\xF3n actual: ",
|
|
458988
|
-
{ VERSION: "0.2.
|
|
459088
|
+
{ VERSION: "0.2.83", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
|
|
458989
459089
|
]
|
|
458990
459090
|
});
|
|
458991
459091
|
$2[3] = verbose;
|
|
@@ -466848,7 +466948,7 @@ function buildStatusLineCommandInput(permissionMode2, exceeds200kTokens, setting
|
|
|
466848
466948
|
project_dir: getOriginalCwd(),
|
|
466849
466949
|
added_dirs: addedDirs
|
|
466850
466950
|
},
|
|
466851
|
-
version: { VERSION: "0.2.
|
|
466951
|
+
version: { VERSION: "0.2.83", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
|
|
466852
466952
|
output_style: {
|
|
466853
466953
|
name: outputStyleName
|
|
466854
466954
|
},
|
|
@@ -491172,7 +491272,7 @@ function completeOnboarding() {
|
|
|
491172
491272
|
saveGlobalConfig((current) => ({
|
|
491173
491273
|
...current,
|
|
491174
491274
|
hasCompletedOnboarding: true,
|
|
491175
|
-
lastOnboardingVersion: { VERSION: "0.2.
|
|
491275
|
+
lastOnboardingVersion: { VERSION: "0.2.83", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
|
|
491176
491276
|
}));
|
|
491177
491277
|
}
|
|
491178
491278
|
function showDialog(root2, renderer) {
|
|
@@ -497868,7 +497968,7 @@ function getRecentReleaseNotes(currentVersion, previousVersion, changelogContent
|
|
|
497868
497968
|
}
|
|
497869
497969
|
return [];
|
|
497870
497970
|
}
|
|
497871
|
-
async function checkForReleaseNotes(lastSeenVersion, currentVersion = { VERSION: "0.2.
|
|
497971
|
+
async function checkForReleaseNotes(lastSeenVersion, currentVersion = { VERSION: "0.2.83", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION) {
|
|
497872
497972
|
if (false) {}
|
|
497873
497973
|
const cachedChangelog = await getStoredChangelog();
|
|
497874
497974
|
if (lastSeenVersion !== currentVersion || !cachedChangelog) {
|
|
@@ -503401,7 +503501,7 @@ async function startMCPServer(cwd3, debug3, verbose) {
|
|
|
503401
503501
|
setCwd(cwd3);
|
|
503402
503502
|
const server2 = new Server({
|
|
503403
503503
|
name: "theus/tengu",
|
|
503404
|
-
version: { VERSION: "0.2.
|
|
503504
|
+
version: { VERSION: "0.2.83", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
|
|
503405
503505
|
}, {
|
|
503406
503506
|
capabilities: {
|
|
503407
503507
|
tools: {}
|
|
@@ -504843,7 +504943,7 @@ async function setupTokenHandler(root2) {
|
|
|
504843
504943
|
gap: 1,
|
|
504844
504944
|
children: [
|
|
504845
504945
|
/* @__PURE__ */ jsx_runtime503.jsx(TheusBanner, {
|
|
504846
|
-
version: { VERSION: "0.2.
|
|
504946
|
+
version: { VERSION: "0.2.83", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
|
|
504847
504947
|
}),
|
|
504848
504948
|
showAuthWarning && /* @__PURE__ */ jsx_runtime503.jsxs(ThemedBox_default, {
|
|
504849
504949
|
flexDirection: "column",
|
|
@@ -506429,7 +506529,7 @@ ${assistantAddendum}` : assistantAddendum;
|
|
|
506429
506529
|
}
|
|
506430
506530
|
}
|
|
506431
506531
|
logForDiagnosticsNoPII("info", "started", {
|
|
506432
|
-
version: { VERSION: "0.2.
|
|
506532
|
+
version: { VERSION: "0.2.83", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
|
|
506433
506533
|
is_native_binary: isInBundledMode()
|
|
506434
506534
|
});
|
|
506435
506535
|
registerCleanup(async () => {
|
|
@@ -507297,7 +507397,7 @@ Usage: theus --remote "your task description"`, () => gracefulShutdown(1));
|
|
|
507297
507397
|
pendingHookMessages
|
|
507298
507398
|
}, renderAndRun);
|
|
507299
507399
|
}
|
|
507300
|
-
}).version(`${{ VERSION: "0.2.
|
|
507400
|
+
}).version(`${{ VERSION: "0.2.83", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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");
|
|
507301
507401
|
program2.option("-w, --worktree [name]", "Crea un nuevo worktree de git para esta sesi\xF3n (opcionalmente indica un nombre)");
|
|
507302
507402
|
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.");
|
|
507303
507403
|
if (canUserConfigureAdvisor()) {
|
|
@@ -507898,7 +507998,7 @@ if (false) {}
|
|
|
507898
507998
|
async function main2() {
|
|
507899
507999
|
const args = process.argv.slice(2);
|
|
507900
508000
|
if (args.length === 1 && (args[0] === "--version" || args[0] === "-v" || args[0] === "-V")) {
|
|
507901
|
-
console.log(`${{ VERSION: "0.2.
|
|
508001
|
+
console.log(`${{ VERSION: "0.2.83", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)`);
|
|
507902
508002
|
return;
|
|
507903
508003
|
}
|
|
507904
508004
|
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.83",
|
|
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",
|