theus-cli 0.2.19 → 0.2.20
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 +161 -132
- package/package.json +1 -1
package/cli.js
CHANGED
|
@@ -58304,7 +58304,7 @@ async function _executeApiKeyHelper(isNonInteractiveSession) {
|
|
|
58304
58304
|
if (isApiKeyHelperFromProjectOrLocalSettings()) {
|
|
58305
58305
|
const hasTrust = checkHasTrustDialogAccepted();
|
|
58306
58306
|
if (!hasTrust && !isNonInteractiveSession) {
|
|
58307
|
-
const error40 = new Error(`Security: apiKeyHelper executed before workspace trust is confirmed. If you see this message, post in ${{ VERSION: "0.2.
|
|
58307
|
+
const error40 = new Error(`Security: apiKeyHelper executed before workspace trust is confirmed. If you see this message, post in ${{ VERSION: "0.2.20", BUILD_TIME: "1970-01-01T00:00:00.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}.`);
|
|
58308
58308
|
logAntError("apiKeyHelper invoked before trust check", error40);
|
|
58309
58309
|
logEvent("tengu_apiKeyHelper_missing_trust11", {});
|
|
58310
58310
|
return null;
|
|
@@ -58348,7 +58348,7 @@ async function runAwsAuthRefresh() {
|
|
|
58348
58348
|
if (isAwsAuthRefreshFromProjectSettings()) {
|
|
58349
58349
|
const hasTrust = checkHasTrustDialogAccepted();
|
|
58350
58350
|
if (!hasTrust && !getIsNonInteractiveSession()) {
|
|
58351
|
-
const error40 = new Error(`Security: awsAuthRefresh executed before workspace trust is confirmed. If you see this message, post in ${{ VERSION: "0.2.
|
|
58351
|
+
const error40 = new Error(`Security: awsAuthRefresh executed before workspace trust is confirmed. If you see this message, post in ${{ VERSION: "0.2.20", BUILD_TIME: "1970-01-01T00:00:00.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}.`);
|
|
58352
58352
|
logAntError("awsAuthRefresh invoked before trust check", error40);
|
|
58353
58353
|
logEvent("tengu_awsAuthRefresh_missing_trust", {});
|
|
58354
58354
|
return false;
|
|
@@ -58408,7 +58408,7 @@ async function getAwsCredsFromCredentialExport() {
|
|
|
58408
58408
|
if (isAwsCredentialExportFromProjectSettings()) {
|
|
58409
58409
|
const hasTrust = checkHasTrustDialogAccepted();
|
|
58410
58410
|
if (!hasTrust && !getIsNonInteractiveSession()) {
|
|
58411
|
-
const error40 = new Error(`Security: awsCredentialExport executed before workspace trust is confirmed. If you see this message, post in ${{ VERSION: "0.2.
|
|
58411
|
+
const error40 = new Error(`Security: awsCredentialExport executed before workspace trust is confirmed. If you see this message, post in ${{ VERSION: "0.2.20", BUILD_TIME: "1970-01-01T00:00:00.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}.`);
|
|
58412
58412
|
logAntError("awsCredentialExport invoked before trust check", error40);
|
|
58413
58413
|
logEvent("tengu_awsCredentialExport_missing_trust", {});
|
|
58414
58414
|
return null;
|
|
@@ -58493,7 +58493,7 @@ async function runGcpAuthRefresh() {
|
|
|
58493
58493
|
if (isGcpAuthRefreshFromProjectSettings()) {
|
|
58494
58494
|
const hasTrust = checkHasTrustDialogAccepted();
|
|
58495
58495
|
if (!hasTrust && !getIsNonInteractiveSession()) {
|
|
58496
|
-
const error40 = new Error(`Security: gcpAuthRefresh executed before workspace trust is confirmed. If you see this message, post in ${{ VERSION: "0.2.
|
|
58496
|
+
const error40 = new Error(`Security: gcpAuthRefresh executed before workspace trust is confirmed. If you see this message, post in ${{ VERSION: "0.2.20", BUILD_TIME: "1970-01-01T00:00:00.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}.`);
|
|
58497
58497
|
logAntError("gcpAuthRefresh invoked before trust check", error40);
|
|
58498
58498
|
logEvent("tengu_gcpAuthRefresh_missing_trust", {});
|
|
58499
58499
|
return false;
|
|
@@ -59188,7 +59188,7 @@ var init_auth = __esm(() => {
|
|
|
59188
59188
|
|
|
59189
59189
|
// utils/userAgent.ts
|
|
59190
59190
|
function getTheusCodeUserAgent() {
|
|
59191
|
-
return `theus-code/${{ VERSION: "0.2.
|
|
59191
|
+
return `theus-code/${{ VERSION: "0.2.20", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION}`;
|
|
59192
59192
|
}
|
|
59193
59193
|
|
|
59194
59194
|
// utils/workloadContext.ts
|
|
@@ -59210,7 +59210,7 @@ function getUserAgent() {
|
|
|
59210
59210
|
const clientApp = process.env.THEUS_AGENT_SDK_CLIENT_APP ? `, client-app/${process.env.THEUS_AGENT_SDK_CLIENT_APP}` : "";
|
|
59211
59211
|
const workload = getWorkload();
|
|
59212
59212
|
const workloadSuffix = workload ? `, workload/${workload}` : "";
|
|
59213
|
-
return `theus-cli/${{ VERSION: "0.2.
|
|
59213
|
+
return `theus-cli/${{ VERSION: "0.2.20", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION} (${process.env.USER_TYPE}, ${process.env.THEUS_CODE_ENTRYPOINT ?? "cli"}${agentSdkVersion}${clientApp}${workloadSuffix})`;
|
|
59214
59214
|
}
|
|
59215
59215
|
function getMCPUserAgent() {
|
|
59216
59216
|
const parts = [];
|
|
@@ -59224,7 +59224,7 @@ function getMCPUserAgent() {
|
|
|
59224
59224
|
parts.push(`client-app/${process.env.THEUS_AGENT_SDK_CLIENT_APP}`);
|
|
59225
59225
|
}
|
|
59226
59226
|
const suffix = parts.length > 0 ? ` (${parts.join(", ")})` : "";
|
|
59227
|
-
return `theus-code/${{ VERSION: "0.2.
|
|
59227
|
+
return `theus-code/${{ VERSION: "0.2.20", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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}`;
|
|
59228
59228
|
}
|
|
59229
59229
|
function getWebFetchUserAgent() {
|
|
59230
59230
|
return `Theus-User (${getTheusCodeUserAgent()}; +https://support.theus.pe/)`;
|
|
@@ -59362,7 +59362,7 @@ var init_user = __esm(() => {
|
|
|
59362
59362
|
deviceId,
|
|
59363
59363
|
sessionId: getSessionId(),
|
|
59364
59364
|
email: getEmail(),
|
|
59365
|
-
appVersion: { VERSION: "0.2.
|
|
59365
|
+
appVersion: { VERSION: "0.2.20", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
|
|
59366
59366
|
platform: getHostPlatformForAnalytics(),
|
|
59367
59367
|
organizationUuid,
|
|
59368
59368
|
accountUuid,
|
|
@@ -61077,7 +61077,7 @@ var init_metadata = __esm(() => {
|
|
|
61077
61077
|
COMPOUND_OPERATOR_REGEX = /\s*(?:&&|\|\||[;|])\s*/;
|
|
61078
61078
|
WHITESPACE_REGEX = /\s+/;
|
|
61079
61079
|
getVersionBase = memoize_default(() => {
|
|
61080
|
-
const match = { VERSION: "0.2.
|
|
61080
|
+
const match = { VERSION: "0.2.20", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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]+)?/);
|
|
61081
61081
|
return match ? match[0] : undefined;
|
|
61082
61082
|
});
|
|
61083
61083
|
buildEnvContext = memoize_default(async () => {
|
|
@@ -61117,9 +61117,9 @@ var init_metadata = __esm(() => {
|
|
|
61117
61117
|
isGithubAction: isEnvTruthy(process.env.GITHUB_ACTIONS),
|
|
61118
61118
|
isTheusCodeAction: isEnvTruthy(process.env.THEUS_CODE_ACTION),
|
|
61119
61119
|
isTheusAiAuth: isTheusAISubscriber(),
|
|
61120
|
-
version: { VERSION: "0.2.
|
|
61120
|
+
version: { VERSION: "0.2.20", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
|
|
61121
61121
|
versionBase: getVersionBase(),
|
|
61122
|
-
buildTime: { VERSION: "0.2.
|
|
61122
|
+
buildTime: { VERSION: "0.2.20", BUILD_TIME: "1970-01-01T00:00:00.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,
|
|
61123
61123
|
deploymentEnvironment: env3.detectDeploymentEnvironment(),
|
|
61124
61124
|
...isEnvTruthy(process.env.GITHUB_ACTIONS) && {
|
|
61125
61125
|
githubEventName: process.env.GITHUB_EVENT_NAME,
|
|
@@ -61785,7 +61785,7 @@ function initialize1PEventLogging() {
|
|
|
61785
61785
|
const platform2 = getPlatform();
|
|
61786
61786
|
const attributes = {
|
|
61787
61787
|
[ATTR_SERVICE_NAME]: "theus-code",
|
|
61788
|
-
[ATTR_SERVICE_VERSION]: { VERSION: "0.2.
|
|
61788
|
+
[ATTR_SERVICE_VERSION]: { VERSION: "0.2.20", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
|
|
61789
61789
|
};
|
|
61790
61790
|
if (platform2 === "wsl") {
|
|
61791
61791
|
const wslVersion = getWslVersion();
|
|
@@ -61812,7 +61812,7 @@ function initialize1PEventLogging() {
|
|
|
61812
61812
|
})
|
|
61813
61813
|
]
|
|
61814
61814
|
});
|
|
61815
|
-
firstPartyEventLogger = firstPartyEventLoggerProvider.getLogger("com.theus.theus_code.events", { VERSION: "0.2.
|
|
61815
|
+
firstPartyEventLogger = firstPartyEventLoggerProvider.getLogger("com.theus.theus_code.events", { VERSION: "0.2.20", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION);
|
|
61816
61816
|
}
|
|
61817
61817
|
async function reinitialize1PEventLoggingIfConfigChanged() {
|
|
61818
61818
|
if (!is1PEventLoggingEnabled() || !firstPartyEventLoggerProvider) {
|
|
@@ -63683,7 +63683,7 @@ function getAttributionHeader(fingerprint) {
|
|
|
63683
63683
|
if (!isAttributionHeaderEnabled()) {
|
|
63684
63684
|
return "";
|
|
63685
63685
|
}
|
|
63686
|
-
const version2 = `${{ VERSION: "0.2.
|
|
63686
|
+
const version2 = `${{ VERSION: "0.2.20", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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}`;
|
|
63687
63687
|
const entrypoint = process.env.THEUS_CODE_ENTRYPOINT ?? "unknown";
|
|
63688
63688
|
const cch = "";
|
|
63689
63689
|
const workload = getWorkload();
|
|
@@ -104070,11 +104070,21 @@ var init_thinking = __esm(() => {
|
|
|
104070
104070
|
});
|
|
104071
104071
|
|
|
104072
104072
|
// utils/effort.ts
|
|
104073
|
+
function getEffortLevelLabelEs(level) {
|
|
104074
|
+
return EFFORT_LABEL_ES[level] ?? "alta";
|
|
104075
|
+
}
|
|
104076
|
+
function isTheusManagedModel(model) {
|
|
104077
|
+
const m = model.toLowerCase();
|
|
104078
|
+
return m.startsWith("theus") || m.includes("titan") || m.includes("router-auto");
|
|
104079
|
+
}
|
|
104073
104080
|
function modelSupportsEffort(model) {
|
|
104074
104081
|
const m = model.toLowerCase();
|
|
104075
104082
|
if (isEnvTruthy(process.env.THEUS_CODE_ALWAYS_ENABLE_EFFORT)) {
|
|
104076
104083
|
return true;
|
|
104077
104084
|
}
|
|
104085
|
+
if (isTheusManagedModel(m)) {
|
|
104086
|
+
return true;
|
|
104087
|
+
}
|
|
104078
104088
|
const supported3P = get3PModelCapabilityOverride(model, "effort");
|
|
104079
104089
|
if (supported3P !== undefined) {
|
|
104080
104090
|
return supported3P;
|
|
@@ -104092,6 +104102,9 @@ function modelSupportsMaxEffort(model) {
|
|
|
104092
104102
|
if (supported3P !== undefined) {
|
|
104093
104103
|
return supported3P;
|
|
104094
104104
|
}
|
|
104105
|
+
if (isTheusManagedModel(model)) {
|
|
104106
|
+
return true;
|
|
104107
|
+
}
|
|
104095
104108
|
if (model.toLowerCase().includes("opus-4-6")) {
|
|
104096
104109
|
return true;
|
|
104097
104110
|
}
|
|
@@ -104121,10 +104134,7 @@ function parseEffortValue(value) {
|
|
|
104121
104134
|
return;
|
|
104122
104135
|
}
|
|
104123
104136
|
function toPersistableEffort(value) {
|
|
104124
|
-
if (value === "low" || value === "medium" || value === "high") {
|
|
104125
|
-
return value;
|
|
104126
|
-
}
|
|
104127
|
-
if (value === "max" && process.env.USER_TYPE === "ant") {
|
|
104137
|
+
if (value === "low" || value === "medium" || value === "high" || value === "max") {
|
|
104128
104138
|
return value;
|
|
104129
104139
|
}
|
|
104130
104140
|
return;
|
|
@@ -104161,7 +104171,7 @@ function getEffortSuffix(model, effortValue) {
|
|
|
104161
104171
|
const resolved = resolveAppliedEffort(model, effortValue);
|
|
104162
104172
|
if (resolved === undefined)
|
|
104163
104173
|
return "";
|
|
104164
|
-
return `
|
|
104174
|
+
return ` \xB7 inteligencia ${getEffortLevelLabelEs(convertEffortValueToLevel(resolved))}`;
|
|
104165
104175
|
}
|
|
104166
104176
|
function isValidNumericEffort(value) {
|
|
104167
104177
|
return Number.isInteger(value);
|
|
@@ -104184,13 +104194,13 @@ function convertEffortValueToLevel(value) {
|
|
|
104184
104194
|
function getEffortLevelDescription(level) {
|
|
104185
104195
|
switch (level) {
|
|
104186
104196
|
case "low":
|
|
104187
|
-
return "
|
|
104197
|
+
return "R\xE1pida y directa: resuelve con los pasos m\xEDnimos y m\xE1xima agilidad.";
|
|
104188
104198
|
case "medium":
|
|
104189
|
-
return "
|
|
104199
|
+
return "Equilibrada: implementaci\xF3n est\xE1ndar con verificaci\xF3n razonable.";
|
|
104190
104200
|
case "high":
|
|
104191
|
-
return "
|
|
104201
|
+
return "Exhaustiva: implementaci\xF3n completa con pruebas y documentaci\xF3n.";
|
|
104192
104202
|
case "max":
|
|
104193
|
-
return "
|
|
104203
|
+
return "Potencia m\xE1xima: el razonamiento m\xE1s profundo para las tareas m\xE1s dif\xEDciles.";
|
|
104194
104204
|
}
|
|
104195
104205
|
}
|
|
104196
104206
|
function getEffortValueDescription(value) {
|
|
@@ -104200,7 +104210,7 @@ function getEffortValueDescription(value) {
|
|
|
104200
104210
|
if (typeof value === "string") {
|
|
104201
104211
|
return getEffortLevelDescription(value);
|
|
104202
104212
|
}
|
|
104203
|
-
return "
|
|
104213
|
+
return "Equilibrada: implementaci\xF3n est\xE1ndar con verificaci\xF3n razonable.";
|
|
104204
104214
|
}
|
|
104205
104215
|
function getOpusDefaultEffortConfig() {
|
|
104206
104216
|
const config2 = getFeatureValue_CACHED_MAY_BE_STALE("tengu_grey_step2", OPUS_DEFAULT_EFFORT_CONFIG_DEFAULT);
|
|
@@ -104240,7 +104250,7 @@ function getDefaultEffortForModel(model) {
|
|
|
104240
104250
|
}
|
|
104241
104251
|
return;
|
|
104242
104252
|
}
|
|
104243
|
-
var EFFORT_LEVELS, OPUS_DEFAULT_EFFORT_CONFIG_DEFAULT;
|
|
104253
|
+
var EFFORT_LEVELS, EFFORT_LABEL_ES, OPUS_DEFAULT_EFFORT_CONFIG_DEFAULT;
|
|
104244
104254
|
var init_effort = __esm(() => {
|
|
104245
104255
|
init_thinking();
|
|
104246
104256
|
init_settings2();
|
|
@@ -104256,6 +104266,12 @@ var init_effort = __esm(() => {
|
|
|
104256
104266
|
"high",
|
|
104257
104267
|
"max"
|
|
104258
104268
|
];
|
|
104269
|
+
EFFORT_LABEL_ES = {
|
|
104270
|
+
low: "baja",
|
|
104271
|
+
medium: "media",
|
|
104272
|
+
high: "alta",
|
|
104273
|
+
max: "m\xE1xima"
|
|
104274
|
+
};
|
|
104259
104275
|
OPUS_DEFAULT_EFFORT_CONFIG_DEFAULT = {
|
|
104260
104276
|
enabled: true,
|
|
104261
104277
|
dialogTitle: "We recommend medium effort for Opus",
|
|
@@ -107739,7 +107755,7 @@ Complete the user's request by providing accurate, documentation-based guidance.
|
|
|
107739
107755
|
}
|
|
107740
107756
|
function getFeedbackGuideline() {
|
|
107741
107757
|
if (isUsing3PServices()) {
|
|
107742
|
-
return `- When you cannot find an answer or the feature doesn't exist, direct the user to ${{ VERSION: "0.2.
|
|
107758
|
+
return `- When you cannot find an answer or the feature doesn't exist, direct the user to ${{ VERSION: "0.2.20", BUILD_TIME: "1970-01-01T00:00:00.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}`;
|
|
107743
107759
|
}
|
|
107744
107760
|
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";
|
|
107745
107761
|
}
|
|
@@ -166444,7 +166460,7 @@ function getTelemetryAttributes() {
|
|
|
166444
166460
|
attributes["session.id"] = sessionId;
|
|
166445
166461
|
}
|
|
166446
166462
|
if (shouldIncludeAttribute("OTEL_METRICS_INCLUDE_VERSION")) {
|
|
166447
|
-
attributes["app.version"] = { VERSION: "0.2.
|
|
166463
|
+
attributes["app.version"] = { VERSION: "0.2.20", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION;
|
|
166448
166464
|
}
|
|
166449
166465
|
const oauthAccount = getOauthAccountInfo();
|
|
166450
166466
|
if (oauthAccount) {
|
|
@@ -202502,7 +202518,7 @@ function getInstallationEnv() {
|
|
|
202502
202518
|
return;
|
|
202503
202519
|
}
|
|
202504
202520
|
function getTheusCodeVersion() {
|
|
202505
|
-
return { VERSION: "0.2.
|
|
202521
|
+
return { VERSION: "0.2.20", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION;
|
|
202506
202522
|
}
|
|
202507
202523
|
async function getInstalledVSCodeExtensionVersion(command) {
|
|
202508
202524
|
const { stdout } = await execFileNoThrow(command, ["--list-extensions", "--show-versions"], {
|
|
@@ -204020,7 +204036,7 @@ async function getMcpHeadersFromHelper(serverName, config2) {
|
|
|
204020
204036
|
if ("scope" in config2 && isMcpServerFromProjectOrLocalSettings(config2) && !getIsNonInteractiveSession()) {
|
|
204021
204037
|
const hasTrust = checkHasTrustDialogAccepted();
|
|
204022
204038
|
if (!hasTrust) {
|
|
204023
|
-
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.
|
|
204039
|
+
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.20", BUILD_TIME: "1970-01-01T00:00:00.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}.`);
|
|
204024
204040
|
logAntError("MCP headersHelper invoked before trust check", error40);
|
|
204025
204041
|
logEvent("tengu_mcp_headersHelper_missing_trust", {});
|
|
204026
204042
|
return null;
|
|
@@ -205230,7 +205246,7 @@ async function setupSdkMcpClients(sdkMcpConfigs, sendMcpMessage) {
|
|
|
205230
205246
|
const client2 = new Client({
|
|
205231
205247
|
name: "theus-code",
|
|
205232
205248
|
title: "Theus",
|
|
205233
|
-
version: { VERSION: "0.2.
|
|
205249
|
+
version: { VERSION: "0.2.20", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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",
|
|
205234
205250
|
description: "Theus's agentic coding tool",
|
|
205235
205251
|
websiteUrl: PRODUCT_URL
|
|
205236
205252
|
}, {
|
|
@@ -205584,7 +205600,7 @@ var init_client5 = __esm(() => {
|
|
|
205584
205600
|
const client2 = new Client({
|
|
205585
205601
|
name: "theus-code",
|
|
205586
205602
|
title: "Theus",
|
|
205587
|
-
version: { VERSION: "0.2.
|
|
205603
|
+
version: { VERSION: "0.2.20", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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",
|
|
205588
205604
|
description: "Theus's agentic coding tool",
|
|
205589
205605
|
websiteUrl: PRODUCT_URL
|
|
205590
205606
|
}, {
|
|
@@ -216162,7 +216178,7 @@ async function initializeBetaTracing(resource) {
|
|
|
216162
216178
|
});
|
|
216163
216179
|
logs.setGlobalLoggerProvider(loggerProvider);
|
|
216164
216180
|
setLoggerProvider(loggerProvider);
|
|
216165
|
-
const eventLogger = logs.getLogger("com.theus.theus_code.events", { VERSION: "0.2.
|
|
216181
|
+
const eventLogger = logs.getLogger("com.theus.theus_code.events", { VERSION: "0.2.20", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION);
|
|
216166
216182
|
setEventLogger(eventLogger);
|
|
216167
216183
|
process.on("beforeExit", async () => {
|
|
216168
216184
|
await loggerProvider?.forceFlush();
|
|
@@ -216202,7 +216218,7 @@ async function initializeTelemetry() {
|
|
|
216202
216218
|
const platform4 = getPlatform();
|
|
216203
216219
|
const baseAttributes = {
|
|
216204
216220
|
[ATTR_SERVICE_NAME]: "theus-code",
|
|
216205
|
-
[ATTR_SERVICE_VERSION]: { VERSION: "0.2.
|
|
216221
|
+
[ATTR_SERVICE_VERSION]: { VERSION: "0.2.20", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
|
|
216206
216222
|
};
|
|
216207
216223
|
if (platform4 === "wsl") {
|
|
216208
216224
|
const wslVersion = getWslVersion();
|
|
@@ -216247,7 +216263,7 @@ async function initializeTelemetry() {
|
|
|
216247
216263
|
} catch {}
|
|
216248
216264
|
};
|
|
216249
216265
|
registerCleanup(shutdownTelemetry2);
|
|
216250
|
-
return meterProvider2.getMeter("com.theus.theus_code", { VERSION: "0.2.
|
|
216266
|
+
return meterProvider2.getMeter("com.theus.theus_code", { VERSION: "0.2.20", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION);
|
|
216251
216267
|
}
|
|
216252
216268
|
const meterProvider = new MeterProvider({
|
|
216253
216269
|
resource,
|
|
@@ -216267,7 +216283,7 @@ async function initializeTelemetry() {
|
|
|
216267
216283
|
});
|
|
216268
216284
|
logs.setGlobalLoggerProvider(loggerProvider);
|
|
216269
216285
|
setLoggerProvider(loggerProvider);
|
|
216270
|
-
const eventLogger = logs.getLogger("com.theus.theus_code.events", { VERSION: "0.2.
|
|
216286
|
+
const eventLogger = logs.getLogger("com.theus.theus_code.events", { VERSION: "0.2.20", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION);
|
|
216271
216287
|
setEventLogger(eventLogger);
|
|
216272
216288
|
logForDebugging("[3P telemetry] Event logger set successfully");
|
|
216273
216289
|
process.on("beforeExit", async () => {
|
|
@@ -216329,7 +216345,7 @@ Current timeout: ${timeoutMs}ms
|
|
|
216329
216345
|
}
|
|
216330
216346
|
};
|
|
216331
216347
|
registerCleanup(shutdownTelemetry);
|
|
216332
|
-
return meterProvider.getMeter("com.theus.theus_code", { VERSION: "0.2.
|
|
216348
|
+
return meterProvider.getMeter("com.theus.theus_code", { VERSION: "0.2.20", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION);
|
|
216333
216349
|
}
|
|
216334
216350
|
async function flushTelemetry() {
|
|
216335
216351
|
const meterProvider = getMeterProvider();
|
|
@@ -216869,7 +216885,7 @@ async function installOrUpdateTheusPackage(channel2, specificVersion) {
|
|
|
216869
216885
|
return "install_failed";
|
|
216870
216886
|
}
|
|
216871
216887
|
const versionSpec = specificVersion ? specificVersion : channel2 === "stable" ? "stable" : "latest";
|
|
216872
|
-
const result = await execFileNoThrowWithCwd("npm", ["install", `${{ VERSION: "0.2.
|
|
216888
|
+
const result = await execFileNoThrowWithCwd("npm", ["install", `${{ VERSION: "0.2.20", BUILD_TIME: "1970-01-01T00:00:00.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 });
|
|
216873
216889
|
if (result.code !== 0) {
|
|
216874
216890
|
const error40 = new Error(`Failed to install Theus CLI package: ${result.stderr}`);
|
|
216875
216891
|
logError2(error40);
|
|
@@ -217015,9 +217031,9 @@ async function assertMinVersion() {
|
|
|
217015
217031
|
if (false) {}
|
|
217016
217032
|
try {
|
|
217017
217033
|
const versionConfig = await getDynamicConfig_BLOCKS_ON_INIT("tengu_version_config", { minVersion: "0.0.0" });
|
|
217018
|
-
if (versionConfig.minVersion && lt({ VERSION: "0.2.
|
|
217034
|
+
if (versionConfig.minVersion && lt({ VERSION: "0.2.20", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
|
|
217019
217035
|
console.error(`
|
|
217020
|
-
It looks like your version of Theus (${{ VERSION: "0.2.
|
|
217036
|
+
It looks like your version of Theus (${{ VERSION: "0.2.20", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.
|
|
217021
217037
|
A newer version (${versionConfig.minVersion} or higher) is required to continue.
|
|
217022
217038
|
|
|
217023
217039
|
To update, please run:
|
|
@@ -217158,7 +217174,7 @@ async function getInstallationPrefix() {
|
|
|
217158
217174
|
return prefixResult.stdout.trim();
|
|
217159
217175
|
}
|
|
217160
217176
|
function getGlobalInstallPackageManager() {
|
|
217161
|
-
if ({ VERSION: "0.2.
|
|
217177
|
+
if ({ VERSION: "0.2.20", BUILD_TIME: "1970-01-01T00:00:00.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") {
|
|
217162
217178
|
return "npm";
|
|
217163
217179
|
}
|
|
217164
217180
|
return env3.isRunningWithBun() ? "bun" : "npm";
|
|
@@ -217183,7 +217199,7 @@ async function checkGlobalInstallPermissions() {
|
|
|
217183
217199
|
}
|
|
217184
217200
|
async function getLatestVersion(channel2) {
|
|
217185
217201
|
const npmTag = channel2 === "stable" ? "stable" : "latest";
|
|
217186
|
-
const result = await execFileNoThrowWithCwd("npm", ["view", `${{ VERSION: "0.2.
|
|
217202
|
+
const result = await execFileNoThrowWithCwd("npm", ["view", `${{ VERSION: "0.2.20", BUILD_TIME: "1970-01-01T00:00:00.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: homedir18() });
|
|
217187
217203
|
if (result.code !== 0) {
|
|
217188
217204
|
logForDebugging(`npm view failed with code ${result.code}`);
|
|
217189
217205
|
if (result.stderr) {
|
|
@@ -217199,7 +217215,7 @@ async function getLatestVersion(channel2) {
|
|
|
217199
217215
|
return result.stdout.trim();
|
|
217200
217216
|
}
|
|
217201
217217
|
async function getNpmDistTags() {
|
|
217202
|
-
const result = await execFileNoThrowWithCwd("npm", ["view", { VERSION: "0.2.
|
|
217218
|
+
const result = await execFileNoThrowWithCwd("npm", ["view", { VERSION: "0.2.20", BUILD_TIME: "1970-01-01T00:00:00.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: homedir18() });
|
|
217203
217219
|
if (result.code !== 0) {
|
|
217204
217220
|
logForDebugging(`npm view dist-tags failed with code ${result.code}`);
|
|
217205
217221
|
return { latest: null, stable: null };
|
|
@@ -217239,7 +217255,7 @@ async function installGlobalPackage(specificVersion) {
|
|
|
217239
217255
|
logError2(new AutoUpdaterError("Another process is currently installing an update"));
|
|
217240
217256
|
logEvent("tengu_auto_updater_lock_contention", {
|
|
217241
217257
|
pid: process.pid,
|
|
217242
|
-
currentVersion: { VERSION: "0.2.
|
|
217258
|
+
currentVersion: { VERSION: "0.2.20", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
|
|
217243
217259
|
});
|
|
217244
217260
|
return "in_progress";
|
|
217245
217261
|
}
|
|
@@ -217248,7 +217264,7 @@ async function installGlobalPackage(specificVersion) {
|
|
|
217248
217264
|
if (!env3.isRunningWithBun() && env3.isNpmFromWindowsPath()) {
|
|
217249
217265
|
logError2(new Error("Windows NPM detected in WSL environment"));
|
|
217250
217266
|
logEvent("tengu_auto_updater_windows_npm_in_wsl", {
|
|
217251
|
-
currentVersion: { VERSION: "0.2.
|
|
217267
|
+
currentVersion: { VERSION: "0.2.20", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
|
|
217252
217268
|
});
|
|
217253
217269
|
console.error(`
|
|
217254
217270
|
Error: Windows NPM detected in WSL
|
|
@@ -217267,7 +217283,7 @@ To fix this issue:
|
|
|
217267
217283
|
if (!hasPermissions) {
|
|
217268
217284
|
return "no_permissions";
|
|
217269
217285
|
}
|
|
217270
|
-
const packageSpec = specificVersion ? `${{ VERSION: "0.2.
|
|
217286
|
+
const packageSpec = specificVersion ? `${{ VERSION: "0.2.20", BUILD_TIME: "1970-01-01T00:00:00.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.20", BUILD_TIME: "1970-01-01T00:00:00.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;
|
|
217271
217287
|
const packageManager = getGlobalInstallPackageManager();
|
|
217272
217288
|
const installResult = await execFileNoThrowWithCwd(packageManager, ["install", "-g", packageSpec], { cwd: homedir18() });
|
|
217273
217289
|
if (installResult.code !== 0) {
|
|
@@ -217595,8 +217611,8 @@ async function detectMultipleInstallations() {
|
|
|
217595
217611
|
installations.push({ type: "npm-local", path: localPath });
|
|
217596
217612
|
}
|
|
217597
217613
|
const packagesToCheck = ["@theus-ai/theus-code"];
|
|
217598
|
-
if ({ VERSION: "0.2.
|
|
217599
|
-
packagesToCheck.push({ VERSION: "0.2.
|
|
217614
|
+
if ({ VERSION: "0.2.20", BUILD_TIME: "1970-01-01T00:00:00.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.20", BUILD_TIME: "1970-01-01T00:00:00.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") {
|
|
217615
|
+
packagesToCheck.push({ VERSION: "0.2.20", BUILD_TIME: "1970-01-01T00:00:00.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);
|
|
217600
217616
|
}
|
|
217601
217617
|
const npmResult = await execFileNoThrow("npm", [
|
|
217602
217618
|
"-g",
|
|
@@ -217779,7 +217795,7 @@ function detectLinuxGlobPatternWarnings() {
|
|
|
217779
217795
|
}
|
|
217780
217796
|
async function getDoctorDiagnostic() {
|
|
217781
217797
|
const installationType = await getCurrentInstallationType();
|
|
217782
|
-
const version2 = { VERSION: "0.2.
|
|
217798
|
+
const version2 = { VERSION: "0.2.20", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.20", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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";
|
|
217783
217799
|
const installationPath = await getInstallationPath();
|
|
217784
217800
|
const invokedBinary = getInvokedBinary();
|
|
217785
217801
|
const multipleInstallations = await detectMultipleInstallations();
|
|
@@ -217791,8 +217807,8 @@ async function getDoctorDiagnostic() {
|
|
|
217791
217807
|
for (const install of npmInstalls) {
|
|
217792
217808
|
if (install.type === "npm-global") {
|
|
217793
217809
|
let uninstallCmd = "npm -g uninstall @theus-ai/theus-code";
|
|
217794
|
-
if ({ VERSION: "0.2.
|
|
217795
|
-
uninstallCmd += ` && npm -g uninstall ${{ VERSION: "0.2.
|
|
217810
|
+
if ({ VERSION: "0.2.20", BUILD_TIME: "1970-01-01T00:00:00.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.20", BUILD_TIME: "1970-01-01T00:00:00.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") {
|
|
217811
|
+
uninstallCmd += ` && npm -g uninstall ${{ VERSION: "0.2.20", BUILD_TIME: "1970-01-01T00:00:00.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}`;
|
|
217796
217812
|
}
|
|
217797
217813
|
warnings.push({
|
|
217798
217814
|
issue: `Leftover npm global installation at ${install.path}`,
|
|
@@ -217904,7 +217920,7 @@ async function getLatestVersionFromArtifactory(tag2 = "latest") {
|
|
|
217904
217920
|
const startTime2 = Date.now();
|
|
217905
217921
|
const { stdout, code, stderr } = await execFileNoThrowWithCwd("npm", [
|
|
217906
217922
|
"view",
|
|
217907
|
-
`${{ VERSION: "0.2.
|
|
217923
|
+
`${{ VERSION: "0.2.20", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.NATIVE_PACKAGE_URL}@${tag2}`,
|
|
217908
217924
|
"version",
|
|
217909
217925
|
"--prefer-online",
|
|
217910
217926
|
"--registry",
|
|
@@ -217928,7 +217944,7 @@ async function getLatestVersionFromArtifactory(tag2 = "latest") {
|
|
|
217928
217944
|
latency_ms: latencyMs,
|
|
217929
217945
|
source_npm: true
|
|
217930
217946
|
});
|
|
217931
|
-
logForDebugging(`npm view ${{ VERSION: "0.2.
|
|
217947
|
+
logForDebugging(`npm view ${{ VERSION: "0.2.20", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.NATIVE_PACKAGE_URL}@${tag2} version: ${stdout}`);
|
|
217932
217948
|
const latestVersion = stdout.trim();
|
|
217933
217949
|
return latestVersion;
|
|
217934
217950
|
}
|
|
@@ -217984,7 +218000,7 @@ async function downloadVersionFromArtifactory(version2, stagingPath) {
|
|
|
217984
218000
|
const fs3 = getFsImplementation();
|
|
217985
218001
|
await fs3.rm(stagingPath, { recursive: true, force: true });
|
|
217986
218002
|
const platform4 = getPlatform2();
|
|
217987
|
-
const platformPackageName = `${{ VERSION: "0.2.
|
|
218003
|
+
const platformPackageName = `${{ VERSION: "0.2.20", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.NATIVE_PACKAGE_URL}-${platform4}`;
|
|
217988
218004
|
logForDebugging(`Fetching integrity hash for ${platformPackageName}@${version2}`);
|
|
217989
218005
|
const {
|
|
217990
218006
|
stdout: integrityOutput,
|
|
@@ -218013,7 +218029,7 @@ async function downloadVersionFromArtifactory(version2, stagingPath) {
|
|
|
218013
218029
|
name: "theus-native-installer",
|
|
218014
218030
|
version: "0.0.1",
|
|
218015
218031
|
dependencies: {
|
|
218016
|
-
[{ VERSION: "0.2.
|
|
218032
|
+
[{ VERSION: "0.2.20", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.NATIVE_PACKAGE_URL]: version2
|
|
218017
218033
|
}
|
|
218018
218034
|
};
|
|
218019
218035
|
const packageLock = {
|
|
@@ -218026,10 +218042,10 @@ async function downloadVersionFromArtifactory(version2, stagingPath) {
|
|
|
218026
218042
|
name: "theus-native-installer",
|
|
218027
218043
|
version: "0.0.1",
|
|
218028
218044
|
dependencies: {
|
|
218029
|
-
[{ VERSION: "0.2.
|
|
218045
|
+
[{ VERSION: "0.2.20", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.NATIVE_PACKAGE_URL]: version2
|
|
218030
218046
|
}
|
|
218031
218047
|
},
|
|
218032
|
-
[`node_modules/${{ VERSION: "0.2.
|
|
218048
|
+
[`node_modules/${{ VERSION: "0.2.20", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.NATIVE_PACKAGE_URL}`]: {
|
|
218033
218049
|
version: version2,
|
|
218034
218050
|
optionalDependencies: {
|
|
218035
218051
|
[platformPackageName]: version2
|
|
@@ -218051,7 +218067,7 @@ async function downloadVersionFromArtifactory(version2, stagingPath) {
|
|
|
218051
218067
|
if (result.code !== 0) {
|
|
218052
218068
|
throw new Error(`npm ci failed with code ${result.code}: ${result.stderr}`);
|
|
218053
218069
|
}
|
|
218054
|
-
logForDebugging(`Successfully downloaded and verified ${{ VERSION: "0.2.
|
|
218070
|
+
logForDebugging(`Successfully downloaded and verified ${{ VERSION: "0.2.20", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.NATIVE_PACKAGE_URL}@${version2}`);
|
|
218055
218071
|
}
|
|
218056
218072
|
function getStallTimeoutMs() {
|
|
218057
218073
|
return Number(process.env.THEUS_CODE_STALL_TIMEOUT_MS_FOR_TESTING) || DEFAULT_STALL_TIMEOUT_MS;
|
|
@@ -218714,8 +218730,8 @@ async function updateLatest(channelOrVersion, forceReinstall = false) {
|
|
|
218714
218730
|
const maxVersion = await getMaxVersion();
|
|
218715
218731
|
if (maxVersion && gt(version2, maxVersion)) {
|
|
218716
218732
|
logForDebugging(`Native installer: maxVersion ${maxVersion} is set, capping update from ${version2} to ${maxVersion}`);
|
|
218717
|
-
if (gte({ VERSION: "0.2.
|
|
218718
|
-
logForDebugging(`Native installer: current version ${{ VERSION: "0.2.
|
|
218733
|
+
if (gte({ VERSION: "0.2.20", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
|
|
218734
|
+
logForDebugging(`Native installer: current version ${{ VERSION: "0.2.20", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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`);
|
|
218719
218735
|
logEvent("tengu_native_update_skipped_max_version", {
|
|
218720
218736
|
latency_ms: Date.now() - startTime2,
|
|
218721
218737
|
max_version: maxVersion,
|
|
@@ -218726,7 +218742,7 @@ async function updateLatest(channelOrVersion, forceReinstall = false) {
|
|
|
218726
218742
|
version2 = maxVersion;
|
|
218727
218743
|
}
|
|
218728
218744
|
}
|
|
218729
|
-
if (!forceReinstall && version2 === { VERSION: "0.2.
|
|
218745
|
+
if (!forceReinstall && version2 === { VERSION: "0.2.20", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
|
|
218730
218746
|
logForDebugging(`Found ${version2} at ${executablePath}, skipping install`);
|
|
218731
218747
|
logEvent("tengu_native_update_complete", {
|
|
218732
218748
|
latency_ms: Date.now() - startTime2,
|
|
@@ -219476,8 +219492,8 @@ async function cleanupNpmInstallations() {
|
|
|
219476
219492
|
} else if (codePackageResult.error) {
|
|
219477
219493
|
errors4.push(codePackageResult.error);
|
|
219478
219494
|
}
|
|
219479
|
-
if ({ VERSION: "0.2.
|
|
219480
|
-
const macroPackageResult = await attemptNpmUninstall({ VERSION: "0.2.
|
|
219495
|
+
if ({ VERSION: "0.2.20", BUILD_TIME: "1970-01-01T00:00:00.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.20", BUILD_TIME: "1970-01-01T00:00:00.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") {
|
|
219496
|
+
const macroPackageResult = await attemptNpmUninstall({ VERSION: "0.2.20", BUILD_TIME: "1970-01-01T00:00:00.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);
|
|
219481
219497
|
if (macroPackageResult.success) {
|
|
219482
219498
|
removed++;
|
|
219483
219499
|
if (macroPackageResult.warning) {
|
|
@@ -300409,9 +300425,9 @@ function getTheusEnvMetadata() {
|
|
|
300409
300425
|
};
|
|
300410
300426
|
}
|
|
300411
300427
|
function getBuildAgeMinutes() {
|
|
300412
|
-
if (!{ VERSION: "0.2.
|
|
300428
|
+
if (!{ VERSION: "0.2.20", BUILD_TIME: "1970-01-01T00:00:00.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)
|
|
300413
300429
|
return;
|
|
300414
|
-
const buildTime = new Date({ VERSION: "0.2.
|
|
300430
|
+
const buildTime = new Date({ VERSION: "0.2.20", BUILD_TIME: "1970-01-01T00:00:00.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();
|
|
300415
300431
|
if (isNaN(buildTime))
|
|
300416
300432
|
return;
|
|
300417
300433
|
return Math.floor((Date.now() - buildTime) / 60000);
|
|
@@ -316653,7 +316669,7 @@ function getAssistantMessageFromError(error40, model, options2) {
|
|
|
316653
316669
|
if (process.env.USER_TYPE === "ant") {
|
|
316654
316670
|
const baseMessage = `API Error: 400 ${error40.message}
|
|
316655
316671
|
|
|
316656
|
-
Run /share and post the JSON file to ${{ VERSION: "0.2.
|
|
316672
|
+
Run /share and post the JSON file to ${{ VERSION: "0.2.20", BUILD_TIME: "1970-01-01T00:00:00.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}.`;
|
|
316657
316673
|
const rewindInstruction = getIsNonInteractiveSession() ? "" : " Then, use /rewind to recover the conversation.";
|
|
316658
316674
|
return createAssistantAPIErrorMessage({
|
|
316659
316675
|
content: baseMessage + rewindInstruction,
|
|
@@ -316689,7 +316705,7 @@ Run /share and post the JSON file to ${{ VERSION: "0.2.19", BUILD_TIME: "1970-01
|
|
|
316689
316705
|
if (process.env.USER_TYPE === "ant" && !process.env.THEUS_MODEL && error40 instanceof Error && error40.message.toLowerCase().includes("invalid model name")) {
|
|
316690
316706
|
const orgId = getOauthAccountInfo()?.organizationUuid;
|
|
316691
316707
|
const baseMsg = `[THEUS-INTERNAL] Your org isn't gated into the \`${model}\` model. Either run \`theus\` with \`THEUS_MODEL=${getDefaultMainLoopModelSetting()}\``;
|
|
316692
|
-
const msg = orgId ? `${baseMsg} or share your orgId (${orgId}) in ${{ VERSION: "0.2.
|
|
316708
|
+
const msg = orgId ? `${baseMsg} or share your orgId (${orgId}) in ${{ VERSION: "0.2.20", BUILD_TIME: "1970-01-01T00:00:00.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} for help getting access.` : `${baseMsg} or reach out in ${{ VERSION: "0.2.20", BUILD_TIME: "1970-01-01T00:00:00.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} for help getting access.`;
|
|
316693
316709
|
return createAssistantAPIErrorMessage({
|
|
316694
316710
|
content: msg,
|
|
316695
316711
|
error: "invalid_request"
|
|
@@ -326789,7 +326805,7 @@ function buildPrimarySection() {
|
|
|
326789
326805
|
});
|
|
326790
326806
|
return [{
|
|
326791
326807
|
label: "Version",
|
|
326792
|
-
value: { VERSION: "0.2.
|
|
326808
|
+
value: { VERSION: "0.2.20", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
|
|
326793
326809
|
}, {
|
|
326794
326810
|
label: "Session name",
|
|
326795
326811
|
value: nameValue
|
|
@@ -330605,7 +330621,7 @@ function Config({
|
|
|
330605
330621
|
}
|
|
330606
330622
|
})
|
|
330607
330623
|
}) : showSubmenu === "ChannelDowngrade" ? /* @__PURE__ */ jsx_runtime185.jsx(ChannelDowngradeDialog, {
|
|
330608
|
-
currentVersion: { VERSION: "0.2.
|
|
330624
|
+
currentVersion: { VERSION: "0.2.20", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
|
|
330609
330625
|
onChoice: (choice) => {
|
|
330610
330626
|
setShowSubmenu(null);
|
|
330611
330627
|
setTabsHidden(false);
|
|
@@ -330617,7 +330633,7 @@ function Config({
|
|
|
330617
330633
|
autoUpdatesChannel: "stable"
|
|
330618
330634
|
};
|
|
330619
330635
|
if (choice === "stay") {
|
|
330620
|
-
newSettings.minimumVersion = { VERSION: "0.2.
|
|
330636
|
+
newSettings.minimumVersion = { VERSION: "0.2.20", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION;
|
|
330621
330637
|
}
|
|
330622
330638
|
updateSettingsForSource("userSettings", newSettings);
|
|
330623
330639
|
setSettingsData((prev_27) => ({
|
|
@@ -338651,7 +338667,7 @@ function HelpV2(t0) {
|
|
|
338651
338667
|
let t6;
|
|
338652
338668
|
if ($2[31] !== tabs) {
|
|
338653
338669
|
t6 = /* @__PURE__ */ jsx_runtime212.jsx(Tabs, {
|
|
338654
|
-
title: `Theus v${{ VERSION: "0.2.
|
|
338670
|
+
title: `Theus v${{ VERSION: "0.2.20", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION}`,
|
|
338655
338671
|
color: "professionalBlue",
|
|
338656
338672
|
defaultTab: "general",
|
|
338657
338673
|
children: tabs
|
|
@@ -355375,6 +355391,16 @@ var init_mcp3 = __esm(() => {
|
|
|
355375
355391
|
var NOVEDADES;
|
|
355376
355392
|
var init_data = __esm(() => {
|
|
355377
355393
|
NOVEDADES = [
|
|
355394
|
+
{
|
|
355395
|
+
version: "v0.2.20",
|
|
355396
|
+
fecha: "2026-07-12",
|
|
355397
|
+
titulo: "/inteligencia ahora es real: modula el razonamiento del modelo",
|
|
355398
|
+
puntos: [
|
|
355399
|
+
"El nivel que eliges en /inteligencia (incluida M\xC1XIMA) ahora se env\xEDa al gateway y modula de verdad la profundidad de razonamiento del modelo \u2014 antes solo cambiaba lo visual para los suscriptores.",
|
|
355400
|
+
"M\xC1XIMA se recuerda entre sesiones (ya no era \u201Csolo esta sesi\xF3n\u201D).",
|
|
355401
|
+
"Descripciones de cada nivel reescritas en espa\xF1ol y sin nombres de terceros."
|
|
355402
|
+
]
|
|
355403
|
+
},
|
|
355378
355404
|
{
|
|
355379
355405
|
version: "v0.2.19",
|
|
355380
355406
|
fecha: "2026-07-12",
|
|
@@ -356402,9 +356428,9 @@ function getAllReleaseNotes(changelogContent = getStoredChangelogFromMemory()) {
|
|
|
356402
356428
|
return [];
|
|
356403
356429
|
}
|
|
356404
356430
|
}
|
|
356405
|
-
async function checkForReleaseNotes(lastSeenVersion, currentVersion = { VERSION: "0.2.
|
|
356431
|
+
async function checkForReleaseNotes(lastSeenVersion, currentVersion = { VERSION: "0.2.20", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION) {
|
|
356406
356432
|
if (process.env.USER_TYPE === "ant") {
|
|
356407
|
-
const changelog = { VERSION: "0.2.
|
|
356433
|
+
const changelog = { VERSION: "0.2.20", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION_CHANGELOG;
|
|
356408
356434
|
if (changelog) {
|
|
356409
356435
|
const commits = changelog.trim().split(`
|
|
356410
356436
|
`).filter(Boolean);
|
|
@@ -360806,7 +360832,7 @@ var init_Messages = __esm(() => {
|
|
|
360806
360832
|
let t1;
|
|
360807
360833
|
if ($2[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
360808
360834
|
t1 = /* @__PURE__ */ jsx_runtime251.jsx(TheusSessionHeader, {
|
|
360809
|
-
version: { VERSION: "0.2.
|
|
360835
|
+
version: { VERSION: "0.2.20", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
|
|
360810
360836
|
});
|
|
360811
360837
|
$2[0] = t1;
|
|
360812
360838
|
} else {
|
|
@@ -388481,7 +388507,7 @@ async function captureMemoryDiagnostics(trigger, dumpNumber = 0) {
|
|
|
388481
388507
|
smapsRollup,
|
|
388482
388508
|
platform: process.platform,
|
|
388483
388509
|
nodeVersion: process.version,
|
|
388484
|
-
ccVersion: { VERSION: "0.2.
|
|
388510
|
+
ccVersion: { VERSION: "0.2.20", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
|
|
388485
388511
|
};
|
|
388486
388512
|
}
|
|
388487
388513
|
async function performHeapDump(trigger = "manual", dumpNumber = 0) {
|
|
@@ -389067,7 +389093,7 @@ var init_bridge_kick = __esm(() => {
|
|
|
389067
389093
|
var call55 = async () => {
|
|
389068
389094
|
return {
|
|
389069
389095
|
type: "text",
|
|
389070
|
-
value: { VERSION: "0.2.
|
|
389096
|
+
value: { VERSION: "0.2.20", BUILD_TIME: "1970-01-01T00:00:00.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.20", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.20", BUILD_TIME: "1970-01-01T00:00:00.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.20", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
|
|
389071
389097
|
};
|
|
389072
389098
|
}, version2, version_default;
|
|
389073
389099
|
var init_version = __esm(() => {
|
|
@@ -393509,13 +393535,13 @@ async function updateReleaseBundle() {
|
|
|
393509
393535
|
await gracefulShutdown(1);
|
|
393510
393536
|
return;
|
|
393511
393537
|
}
|
|
393512
|
-
if (gte({ VERSION: "0.2.
|
|
393513
|
-
writeToStdout(source_default.green(`Theus is up to date (${{ VERSION: "0.2.
|
|
393538
|
+
if (gte({ VERSION: "0.2.20", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
|
|
393539
|
+
writeToStdout(source_default.green(`Theus is up to date (${{ VERSION: "0.2.20", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION})`) + `
|
|
393514
393540
|
`);
|
|
393515
393541
|
await gracefulShutdown(0);
|
|
393516
393542
|
return;
|
|
393517
393543
|
}
|
|
393518
|
-
writeToStdout(`New version available: ${latest} (current: ${{ VERSION: "0.2.
|
|
393544
|
+
writeToStdout(`New version available: ${latest} (current: ${{ VERSION: "0.2.20", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION})
|
|
393519
393545
|
`);
|
|
393520
393546
|
writeToStdout(`Installing update from theus.pe/dl...
|
|
393521
393547
|
`);
|
|
@@ -393549,7 +393575,7 @@ async function updateReleaseBundle() {
|
|
|
393549
393575
|
return;
|
|
393550
393576
|
}
|
|
393551
393577
|
cpSync(staged, bundleDir, { recursive: true, force: true });
|
|
393552
|
-
writeToStdout(source_default.green(`Successfully updated from ${{ VERSION: "0.2.
|
|
393578
|
+
writeToStdout(source_default.green(`Successfully updated from ${{ VERSION: "0.2.20", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION} to version ${latest}`) + `
|
|
393553
393579
|
`);
|
|
393554
393580
|
await regenerateCompletionCache();
|
|
393555
393581
|
} finally {
|
|
@@ -393562,7 +393588,7 @@ async function updateReleaseBundle() {
|
|
|
393562
393588
|
async function update() {
|
|
393563
393589
|
logEvent("tengu_update_check", {});
|
|
393564
393590
|
await updateNaupa();
|
|
393565
|
-
writeToStdout(`Current version: ${{ VERSION: "0.2.
|
|
393591
|
+
writeToStdout(`Current version: ${{ VERSION: "0.2.20", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION}
|
|
393566
393592
|
`);
|
|
393567
393593
|
const channel2 = getInitialSettings()?.autoUpdatesChannel ?? "latest";
|
|
393568
393594
|
writeToStdout(`Checking for updates to ${channel2} version...
|
|
@@ -393641,8 +393667,8 @@ async function update() {
|
|
|
393641
393667
|
writeToStdout(`Theus is managed by Homebrew.
|
|
393642
393668
|
`);
|
|
393643
393669
|
const latest = await getLatestVersion(channel2);
|
|
393644
|
-
if (latest && !gte({ VERSION: "0.2.
|
|
393645
|
-
writeToStdout(`Update available: ${{ VERSION: "0.2.
|
|
393670
|
+
if (latest && !gte({ VERSION: "0.2.20", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
|
|
393671
|
+
writeToStdout(`Update available: ${{ VERSION: "0.2.20", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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}
|
|
393646
393672
|
`);
|
|
393647
393673
|
writeToStdout(`
|
|
393648
393674
|
`);
|
|
@@ -393658,8 +393684,8 @@ async function update() {
|
|
|
393658
393684
|
writeToStdout(`Theus is managed by winget.
|
|
393659
393685
|
`);
|
|
393660
393686
|
const latest = await getLatestVersion(channel2);
|
|
393661
|
-
if (latest && !gte({ VERSION: "0.2.
|
|
393662
|
-
writeToStdout(`Update available: ${{ VERSION: "0.2.
|
|
393687
|
+
if (latest && !gte({ VERSION: "0.2.20", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
|
|
393688
|
+
writeToStdout(`Update available: ${{ VERSION: "0.2.20", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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}
|
|
393663
393689
|
`);
|
|
393664
393690
|
writeToStdout(`
|
|
393665
393691
|
`);
|
|
@@ -393675,8 +393701,8 @@ async function update() {
|
|
|
393675
393701
|
writeToStdout(`Theus is managed by apk.
|
|
393676
393702
|
`);
|
|
393677
393703
|
const latest = await getLatestVersion(channel2);
|
|
393678
|
-
if (latest && !gte({ VERSION: "0.2.
|
|
393679
|
-
writeToStdout(`Update available: ${{ VERSION: "0.2.
|
|
393704
|
+
if (latest && !gte({ VERSION: "0.2.20", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
|
|
393705
|
+
writeToStdout(`Update available: ${{ VERSION: "0.2.20", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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}
|
|
393680
393706
|
`);
|
|
393681
393707
|
writeToStdout(`
|
|
393682
393708
|
`);
|
|
@@ -393741,11 +393767,11 @@ async function update() {
|
|
|
393741
393767
|
`);
|
|
393742
393768
|
await gracefulShutdown(1);
|
|
393743
393769
|
}
|
|
393744
|
-
if (result.latestVersion === { VERSION: "0.2.
|
|
393745
|
-
writeToStdout(source_default.green(`Theus is up to date (${{ VERSION: "0.2.
|
|
393770
|
+
if (result.latestVersion === { VERSION: "0.2.20", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION) {
|
|
393771
|
+
writeToStdout(source_default.green(`Theus is up to date (${{ VERSION: "0.2.20", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION})`) + `
|
|
393746
393772
|
`);
|
|
393747
393773
|
} else {
|
|
393748
|
-
writeToStdout(source_default.green(`Successfully updated from ${{ VERSION: "0.2.
|
|
393774
|
+
writeToStdout(source_default.green(`Successfully updated from ${{ VERSION: "0.2.20", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION} to version ${result.latestVersion}`) + `
|
|
393749
393775
|
`);
|
|
393750
393776
|
await regenerateCompletionCache();
|
|
393751
393777
|
}
|
|
@@ -393764,9 +393790,9 @@ async function update() {
|
|
|
393764
393790
|
await removeInstalledSymlink();
|
|
393765
393791
|
}
|
|
393766
393792
|
logForDebugging("update: Checking npm registry for latest version");
|
|
393767
|
-
logForDebugging(`update: Package URL: ${{ VERSION: "0.2.
|
|
393793
|
+
logForDebugging(`update: Package URL: ${{ VERSION: "0.2.20", BUILD_TIME: "1970-01-01T00:00:00.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}`);
|
|
393768
393794
|
const npmTag = channel2 === "stable" ? "stable" : "latest";
|
|
393769
|
-
const npmCommand = `npm view ${{ VERSION: "0.2.
|
|
393795
|
+
const npmCommand = `npm view ${{ VERSION: "0.2.20", BUILD_TIME: "1970-01-01T00:00:00.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`;
|
|
393770
393796
|
logForDebugging(`update: Running: ${npmCommand}`);
|
|
393771
393797
|
const latestVersion = await getLatestVersion(channel2);
|
|
393772
393798
|
logForDebugging(`update: Latest version from npm: ${latestVersion || "FAILED"}`);
|
|
@@ -393786,7 +393812,7 @@ async function update() {
|
|
|
393786
393812
|
`);
|
|
393787
393813
|
process.stderr.write(` \u2022 Corporate proxy/firewall blocking npm
|
|
393788
393814
|
`);
|
|
393789
|
-
if ({ VERSION: "0.2.
|
|
393815
|
+
if ({ VERSION: "0.2.20", BUILD_TIME: "1970-01-01T00:00:00.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.20", BUILD_TIME: "1970-01-01T00:00:00.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")) {
|
|
393790
393816
|
process.stderr.write(` \u2022 Internal/development build not published to npm
|
|
393791
393817
|
`);
|
|
393792
393818
|
}
|
|
@@ -393798,19 +393824,19 @@ async function update() {
|
|
|
393798
393824
|
`);
|
|
393799
393825
|
process.stderr.write(` \u2022 Run with --debug flag for more details
|
|
393800
393826
|
`);
|
|
393801
|
-
const packageName = { VERSION: "0.2.
|
|
393827
|
+
const packageName = { VERSION: "0.2.20", BUILD_TIME: "1970-01-01T00:00:00.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 || (process.env.USER_TYPE === "ant" ? "@theus-ai/theus-cli" : "@theus-ai/theus-code");
|
|
393802
393828
|
process.stderr.write(` \u2022 Manually check: npm view ${packageName} version
|
|
393803
393829
|
`);
|
|
393804
393830
|
process.stderr.write(` \u2022 Check if you need to login: npm whoami
|
|
393805
393831
|
`);
|
|
393806
393832
|
await gracefulShutdown(1);
|
|
393807
393833
|
}
|
|
393808
|
-
if (gte({ VERSION: "0.2.
|
|
393809
|
-
writeToStdout(source_default.green(`Theus is up to date (${{ VERSION: "0.2.
|
|
393834
|
+
if (gte({ VERSION: "0.2.20", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
|
|
393835
|
+
writeToStdout(source_default.green(`Theus is up to date (${{ VERSION: "0.2.20", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION})`) + `
|
|
393810
393836
|
`);
|
|
393811
393837
|
await gracefulShutdown(0);
|
|
393812
393838
|
}
|
|
393813
|
-
writeToStdout(`New version available: ${latestVersion} (current: ${{ VERSION: "0.2.
|
|
393839
|
+
writeToStdout(`New version available: ${latestVersion} (current: ${{ VERSION: "0.2.20", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION})
|
|
393814
393840
|
`);
|
|
393815
393841
|
writeToStdout(`Installing update...
|
|
393816
393842
|
`);
|
|
@@ -393855,7 +393881,7 @@ async function update() {
|
|
|
393855
393881
|
logForDebugging(`update: Installation status: ${status2}`);
|
|
393856
393882
|
switch (status2) {
|
|
393857
393883
|
case "success":
|
|
393858
|
-
writeToStdout(source_default.green(`Successfully updated from ${{ VERSION: "0.2.
|
|
393884
|
+
writeToStdout(source_default.green(`Successfully updated from ${{ VERSION: "0.2.20", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION} to version ${latestVersion}`) + `
|
|
393859
393885
|
`);
|
|
393860
393886
|
await regenerateCompletionCache();
|
|
393861
393887
|
break;
|
|
@@ -393865,7 +393891,7 @@ async function update() {
|
|
|
393865
393891
|
if (useLocalUpdate) {
|
|
393866
393892
|
process.stderr.write(`Try manually updating with:
|
|
393867
393893
|
`);
|
|
393868
|
-
process.stderr.write(` cd ~/.theus/local && npm update ${{ VERSION: "0.2.
|
|
393894
|
+
process.stderr.write(` cd ~/.theus/local && npm update ${{ VERSION: "0.2.20", BUILD_TIME: "1970-01-01T00:00:00.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}
|
|
393869
393895
|
`);
|
|
393870
393896
|
} else {
|
|
393871
393897
|
process.stderr.write(`Try running with sudo or fix npm permissions
|
|
@@ -393881,7 +393907,7 @@ async function update() {
|
|
|
393881
393907
|
if (useLocalUpdate) {
|
|
393882
393908
|
process.stderr.write(`Try manually updating with:
|
|
393883
393909
|
`);
|
|
393884
|
-
process.stderr.write(` cd ~/.theus/local && npm update ${{ VERSION: "0.2.
|
|
393910
|
+
process.stderr.write(` cd ~/.theus/local && npm update ${{ VERSION: "0.2.20", BUILD_TIME: "1970-01-01T00:00:00.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}
|
|
393885
393911
|
`);
|
|
393886
393912
|
} else {
|
|
393887
393913
|
process.stderr.write(`Or consider using native installation with: theus install
|
|
@@ -400787,7 +400813,7 @@ var init_sessionStorage = __esm(() => {
|
|
|
400787
400813
|
init_settings2();
|
|
400788
400814
|
init_slowOperations();
|
|
400789
400815
|
init_uuid();
|
|
400790
|
-
VERSION4 = { VERSION: "0.2.
|
|
400816
|
+
VERSION4 = { VERSION: "0.2.20", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION;
|
|
400791
400817
|
MAX_TOMBSTONE_REWRITE_BYTES = 50 * 1024 * 1024;
|
|
400792
400818
|
SKIP_FIRST_PROMPT_PATTERN = /^(?:\s*<[a-z][\w-]*[\s>]|\[Request interrupted by user[^\]]*\])/;
|
|
400793
400819
|
EPHEMERAL_PROGRESS_TYPES = new Set([
|
|
@@ -401992,7 +402018,7 @@ var init_filesystem = __esm(() => {
|
|
|
401992
402018
|
});
|
|
401993
402019
|
getBundledSkillsRoot = memoize_default(function getBundledSkillsRoot2() {
|
|
401994
402020
|
const nonce = randomBytes21(16).toString("hex");
|
|
401995
|
-
return join147(getTheusTempDir(), "bundled-skills", { VERSION: "0.2.
|
|
402021
|
+
return join147(getTheusTempDir(), "bundled-skills", { VERSION: "0.2.20", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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);
|
|
401996
402022
|
});
|
|
401997
402023
|
getResolvedWorkingDirPaths = memoize_default(getPathsForPermissionCheck);
|
|
401998
402024
|
});
|
|
@@ -407167,7 +407193,7 @@ function getSimpleDoingTasksSection() {
|
|
|
407167
407193
|
];
|
|
407168
407194
|
const userHelpSubitems = [
|
|
407169
407195
|
`/help: Get help with using Theus`,
|
|
407170
|
-
`To give feedback, users should ${{ VERSION: "0.2.
|
|
407196
|
+
`To give feedback, users should ${{ VERSION: "0.2.20", BUILD_TIME: "1970-01-01T00:00:00.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}`
|
|
407171
407197
|
];
|
|
407172
407198
|
const items = [
|
|
407173
407199
|
`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.`,
|
|
@@ -407990,7 +408016,7 @@ function computeFingerprint(messageText, version3) {
|
|
|
407990
408016
|
}
|
|
407991
408017
|
function computeFingerprintFromMessages(messages) {
|
|
407992
408018
|
const firstMessageText = extractFirstMessageText(messages);
|
|
407993
|
-
return computeFingerprint(firstMessageText, { VERSION: "0.2.
|
|
408019
|
+
return computeFingerprint(firstMessageText, { VERSION: "0.2.20", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION);
|
|
407994
408020
|
}
|
|
407995
408021
|
var FINGERPRINT_SALT = "59cf53e54c78";
|
|
407996
408022
|
var init_fingerprint = () => {};
|
|
@@ -410165,9 +410191,11 @@ async function* callOpenAICompatible({
|
|
|
410165
410191
|
options: options2
|
|
410166
410192
|
}) {
|
|
410167
410193
|
const openAITools = isEnvTruthy(process.env.THEUS_DISABLE_TOOLS) ? [] : await toOpenAITools(tools, options2);
|
|
410194
|
+
const appliedEffort = resolveAppliedEffort(provider.model, options2.effortValue);
|
|
410168
410195
|
const baseBody = {
|
|
410169
410196
|
model: provider.model,
|
|
410170
410197
|
messages: toOpenAIMessages(messages, systemPrompt),
|
|
410198
|
+
...typeof appliedEffort === "string" ? { reasoning_effort: appliedEffort } : {},
|
|
410171
410199
|
...openAITools.length > 0 ? { tools: openAITools, tool_choice: "auto" } : {},
|
|
410172
410200
|
...provider.params?.temperature !== undefined ? { temperature: provider.params.temperature } : {},
|
|
410173
410201
|
...provider.params?.maxTokens !== undefined ? { max_tokens: provider.params.maxTokens } : {},
|
|
@@ -410484,6 +410512,7 @@ async function* queryModelWithTheusProviders({
|
|
|
410484
410512
|
}
|
|
410485
410513
|
var init_theus2 = __esm(() => {
|
|
410486
410514
|
init_theusEngine();
|
|
410515
|
+
init_effort();
|
|
410487
410516
|
init_api4();
|
|
410488
410517
|
init_envUtils();
|
|
410489
410518
|
init_log2();
|
|
@@ -410535,7 +410564,7 @@ async function sideQuery(opts) {
|
|
|
410535
410564
|
betas.push(STRUCTURED_OUTPUTS_BETA_HEADER);
|
|
410536
410565
|
}
|
|
410537
410566
|
const messageText = extractFirstUserMessageText(messages);
|
|
410538
|
-
const fingerprint = computeFingerprint(messageText, { VERSION: "0.2.
|
|
410567
|
+
const fingerprint = computeFingerprint(messageText, { VERSION: "0.2.20", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION);
|
|
410539
410568
|
const attributionHeader = getAttributionHeader(fingerprint);
|
|
410540
410569
|
const systemBlocks = [
|
|
410541
410570
|
attributionHeader ? { type: "text", text: attributionHeader } : null,
|
|
@@ -411838,7 +411867,7 @@ async function handleMemories(state) {
|
|
|
411838
411867
|
async function runProjectContextMcpServer() {
|
|
411839
411868
|
const projectRoot = process.env.THEUS_PROJECT_ROOT || process.cwd();
|
|
411840
411869
|
const state = new ProjectContextState(projectRoot);
|
|
411841
|
-
const server2 = new Server({ name: SERVER_NAME, version: { VERSION: "0.2.
|
|
411870
|
+
const server2 = new Server({ name: SERVER_NAME, version: { VERSION: "0.2.20", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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: {} } });
|
|
411842
411871
|
server2.setRequestHandler(ListToolsRequestSchema, async () => ({
|
|
411843
411872
|
tools: TOOL_DEFINITIONS.map((t) => ({
|
|
411844
411873
|
name: t.name,
|
|
@@ -413818,7 +413847,7 @@ function createBridgeLogger(options2) {
|
|
|
413818
413847
|
connectUrl = buildBridgeConnectUrl(environmentId, cachedIngressUrl);
|
|
413819
413848
|
regenerateQr(connectUrl);
|
|
413820
413849
|
if (verbose) {
|
|
413821
|
-
write(source_default.dim(`Remote Control`) + ` v${{ VERSION: "0.2.
|
|
413850
|
+
write(source_default.dim(`Remote Control`) + ` v${{ VERSION: "0.2.20", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION}
|
|
413822
413851
|
`);
|
|
413823
413852
|
}
|
|
413824
413853
|
if (verbose) {
|
|
@@ -414791,7 +414820,7 @@ function appendToLog(path19, message) {
|
|
|
414791
414820
|
cwd: getFsImplementation().cwd(),
|
|
414792
414821
|
userType: process.env.USER_TYPE,
|
|
414793
414822
|
sessionId: getSessionId(),
|
|
414794
|
-
version: { VERSION: "0.2.
|
|
414823
|
+
version: { VERSION: "0.2.20", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
|
|
414795
414824
|
};
|
|
414796
414825
|
getLogWriter(path19).write(messageWithTimestamp);
|
|
414797
414826
|
}
|
|
@@ -416061,7 +416090,7 @@ Spawn mode for this project:
|
|
|
416061
416090
|
const api2 = createBridgeApiClient({
|
|
416062
416091
|
baseUrl,
|
|
416063
416092
|
getAccessToken: getBridgeAccessToken2,
|
|
416064
|
-
runnerVersion: { VERSION: "0.2.
|
|
416093
|
+
runnerVersion: { VERSION: "0.2.20", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
|
|
416065
416094
|
onDebug: logForDebugging,
|
|
416066
416095
|
onAuth401: handleOAuth401Error2,
|
|
416067
416096
|
getTrustedDeviceToken
|
|
@@ -416299,7 +416328,7 @@ async function runBridgeHeadless(opts, signal) {
|
|
|
416299
416328
|
const api2 = createBridgeApiClient({
|
|
416300
416329
|
baseUrl,
|
|
416301
416330
|
getAccessToken: opts.getAccessToken,
|
|
416302
|
-
runnerVersion: { VERSION: "0.2.
|
|
416331
|
+
runnerVersion: { VERSION: "0.2.20", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
|
|
416303
416332
|
onDebug: log2,
|
|
416304
416333
|
onAuth401: opts.onAuth401,
|
|
416305
416334
|
getTrustedDeviceToken
|
|
@@ -420363,7 +420392,7 @@ function buildSystemInitMessage(inputs) {
|
|
|
420363
420392
|
slash_commands: inputs.commands.filter((c5) => c5.userInvocable !== false).map((c5) => c5.name),
|
|
420364
420393
|
apiKeySource: getTheusApiKeyWithSource().source,
|
|
420365
420394
|
betas: getSdkBetas(),
|
|
420366
|
-
theus_code_version: { VERSION: "0.2.
|
|
420395
|
+
theus_code_version: { VERSION: "0.2.20", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
|
|
420367
420396
|
output_style: outputStyle2,
|
|
420368
420397
|
agents: inputs.agents.map((agent) => agent.agentType),
|
|
420369
420398
|
skills: inputs.skills.filter((s) => s.userInvocable !== false).map((skill) => skill.name),
|
|
@@ -420403,8 +420432,8 @@ async function getEnvLessBridgeConfig() {
|
|
|
420403
420432
|
}
|
|
420404
420433
|
async function checkEnvLessBridgeMinVersion() {
|
|
420405
420434
|
const cfg = await getEnvLessBridgeConfig();
|
|
420406
|
-
if (cfg.min_version && lt({ VERSION: "0.2.
|
|
420407
|
-
return `Your version of Theus (${{ VERSION: "0.2.
|
|
420435
|
+
if (cfg.min_version && lt({ VERSION: "0.2.20", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
|
|
420436
|
+
return `Your version of Theus (${{ VERSION: "0.2.20", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.
|
|
420408
420437
|
Version ${cfg.min_version} or higher is required. Run \`theus update\` to update.`;
|
|
420409
420438
|
}
|
|
420410
420439
|
return null;
|
|
@@ -422727,7 +422756,7 @@ async function initBridgeCore(params) {
|
|
|
422727
422756
|
const rawApi = createBridgeApiClient({
|
|
422728
422757
|
baseUrl,
|
|
422729
422758
|
getAccessToken,
|
|
422730
|
-
runnerVersion: { VERSION: "0.2.
|
|
422759
|
+
runnerVersion: { VERSION: "0.2.20", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
|
|
422731
422760
|
onDebug: logForDebugging,
|
|
422732
422761
|
onAuth401,
|
|
422733
422762
|
getTrustedDeviceToken
|
|
@@ -439816,7 +439845,7 @@ var init_useVoiceEnabled = __esm(() => {
|
|
|
439816
439845
|
function getSemverPart(version3) {
|
|
439817
439846
|
return `${import_semver14.major(version3, { loose: true })}.${import_semver14.minor(version3, { loose: true })}.${import_semver14.patch(version3, { loose: true })}`;
|
|
439818
439847
|
}
|
|
439819
|
-
function useUpdateNotification(updatedVersion, initialVersion = { VERSION: "0.2.
|
|
439848
|
+
function useUpdateNotification(updatedVersion, initialVersion = { VERSION: "0.2.20", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION) {
|
|
439820
439849
|
const [lastNotifiedSemver, setLastNotifiedSemver] = import_react219.useState(() => getSemverPart(initialVersion));
|
|
439821
439850
|
if (!updatedVersion) {
|
|
439822
439851
|
return null;
|
|
@@ -439856,7 +439885,7 @@ function AutoUpdater({
|
|
|
439856
439885
|
return;
|
|
439857
439886
|
}
|
|
439858
439887
|
if (false) {}
|
|
439859
|
-
const currentVersion = { VERSION: "0.2.
|
|
439888
|
+
const currentVersion = { VERSION: "0.2.20", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION;
|
|
439860
439889
|
const channel2 = getInitialSettings()?.autoUpdatesChannel ?? "latest";
|
|
439861
439890
|
let latestVersion = await getLatestVersion(channel2);
|
|
439862
439891
|
const isDisabled2 = isAutoUpdaterDisabled();
|
|
@@ -439992,7 +440021,7 @@ function AutoUpdater({
|
|
|
439992
440021
|
" ",
|
|
439993
440022
|
/* @__PURE__ */ jsx_runtime390.jsx(ThemedText, {
|
|
439994
440023
|
bold: true,
|
|
439995
|
-
children: hasLocalInstall ? `cd ~/.theus/local && npm update ${{ VERSION: "0.2.
|
|
440024
|
+
children: hasLocalInstall ? `cd ~/.theus/local && npm update ${{ VERSION: "0.2.20", BUILD_TIME: "1970-01-01T00:00:00.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.20", BUILD_TIME: "1970-01-01T00:00:00.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}`
|
|
439996
440025
|
})
|
|
439997
440026
|
]
|
|
439998
440027
|
})
|
|
@@ -440069,12 +440098,12 @@ function NativeAutoUpdater({
|
|
|
440069
440098
|
logEvent("tengu_native_auto_updater_start", {});
|
|
440070
440099
|
try {
|
|
440071
440100
|
const maxVersion = await getMaxVersion();
|
|
440072
|
-
if (maxVersion && gt({ VERSION: "0.2.
|
|
440101
|
+
if (maxVersion && gt({ VERSION: "0.2.20", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
|
|
440073
440102
|
const msg = await getMaxVersionMessage();
|
|
440074
440103
|
setMaxVersionIssue(msg ?? "affects your version");
|
|
440075
440104
|
}
|
|
440076
440105
|
const result = await installLatest(channel2);
|
|
440077
|
-
const currentVersion = { VERSION: "0.2.
|
|
440106
|
+
const currentVersion = { VERSION: "0.2.20", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION;
|
|
440078
440107
|
const latencyMs = Date.now() - startTime2;
|
|
440079
440108
|
if (result.lockFailed) {
|
|
440080
440109
|
logEvent("tengu_native_auto_updater_lock_contention", {
|
|
@@ -440211,17 +440240,17 @@ function PackageManagerAutoUpdater(t0) {
|
|
|
440211
440240
|
const maxVersion = await getMaxVersion();
|
|
440212
440241
|
if (maxVersion && latest && gt(latest, maxVersion)) {
|
|
440213
440242
|
logForDebugging(`PackageManagerAutoUpdater: maxVersion ${maxVersion} is set, capping update from ${latest} to ${maxVersion}`);
|
|
440214
|
-
if (gte({ VERSION: "0.2.
|
|
440215
|
-
logForDebugging(`PackageManagerAutoUpdater: current version ${{ VERSION: "0.2.
|
|
440243
|
+
if (gte({ VERSION: "0.2.20", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
|
|
440244
|
+
logForDebugging(`PackageManagerAutoUpdater: current version ${{ VERSION: "0.2.20", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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`);
|
|
440216
440245
|
setUpdateAvailable(false);
|
|
440217
440246
|
return;
|
|
440218
440247
|
}
|
|
440219
440248
|
latest = maxVersion;
|
|
440220
440249
|
}
|
|
440221
|
-
const hasUpdate = latest && !gte({ VERSION: "0.2.
|
|
440250
|
+
const hasUpdate = latest && !gte({ VERSION: "0.2.20", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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);
|
|
440222
440251
|
setUpdateAvailable(!!hasUpdate);
|
|
440223
440252
|
if (hasUpdate) {
|
|
440224
|
-
logForDebugging(`PackageManagerAutoUpdater: Update available ${{ VERSION: "0.2.
|
|
440253
|
+
logForDebugging(`PackageManagerAutoUpdater: Update available ${{ VERSION: "0.2.20", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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}`);
|
|
440225
440254
|
}
|
|
440226
440255
|
};
|
|
440227
440256
|
$2[0] = t1;
|
|
@@ -440255,7 +440284,7 @@ function PackageManagerAutoUpdater(t0) {
|
|
|
440255
440284
|
wrap: "truncate",
|
|
440256
440285
|
children: [
|
|
440257
440286
|
"currentVersion: ",
|
|
440258
|
-
{ VERSION: "0.2.
|
|
440287
|
+
{ VERSION: "0.2.20", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
|
|
440259
440288
|
]
|
|
440260
440289
|
});
|
|
440261
440290
|
$2[3] = verbose;
|
|
@@ -448128,7 +448157,7 @@ function buildStatusLineCommandInput(permissionMode, exceeds200kTokens, settings
|
|
|
448128
448157
|
project_dir: getOriginalCwd(),
|
|
448129
448158
|
added_dirs: addedDirs
|
|
448130
448159
|
},
|
|
448131
|
-
version: { VERSION: "0.2.
|
|
448160
|
+
version: { VERSION: "0.2.20", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
|
|
448132
448161
|
output_style: {
|
|
448133
448162
|
name: outputStyleName
|
|
448134
448163
|
},
|
|
@@ -459474,7 +459503,7 @@ async function submitTranscriptShare(messages, trigger, appearanceId) {
|
|
|
459474
459503
|
} catch {}
|
|
459475
459504
|
const data = {
|
|
459476
459505
|
trigger,
|
|
459477
|
-
version: { VERSION: "0.2.
|
|
459506
|
+
version: { VERSION: "0.2.20", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
|
|
459478
459507
|
platform: process.platform,
|
|
459479
459508
|
transcript,
|
|
459480
459509
|
subagentTranscripts: Object.keys(subagentTranscripts).length > 0 ? subagentTranscripts : undefined,
|
|
@@ -472425,7 +472454,7 @@ function Onboarding({
|
|
|
472425
472454
|
flexDirection: "column",
|
|
472426
472455
|
children: [
|
|
472427
472456
|
/* @__PURE__ */ jsx_runtime465.jsx(TheusBanner, {
|
|
472428
|
-
version: { VERSION: "0.2.
|
|
472457
|
+
version: { VERSION: "0.2.20", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
|
|
472429
472458
|
}),
|
|
472430
472459
|
/* @__PURE__ */ jsx_runtime465.jsxs(ThemedBox_default, {
|
|
472431
472460
|
flexDirection: "column",
|
|
@@ -473296,7 +473325,7 @@ function completeOnboarding() {
|
|
|
473296
473325
|
saveGlobalConfig((current) => ({
|
|
473297
473326
|
...current,
|
|
473298
473327
|
hasCompletedOnboarding: true,
|
|
473299
|
-
lastOnboardingVersion: { VERSION: "0.2.
|
|
473328
|
+
lastOnboardingVersion: { VERSION: "0.2.20", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
|
|
473300
473329
|
}));
|
|
473301
473330
|
}
|
|
473302
473331
|
function showDialog(root2, renderer) {
|
|
@@ -484024,7 +484053,7 @@ async function startMCPServer(cwd3, debug2, verbose) {
|
|
|
484024
484053
|
setCwd(cwd3);
|
|
484025
484054
|
const server2 = new Server({
|
|
484026
484055
|
name: "theus/tengu",
|
|
484027
|
-
version: { VERSION: "0.2.
|
|
484056
|
+
version: { VERSION: "0.2.20", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
|
|
484028
484057
|
}, {
|
|
484029
484058
|
capabilities: {
|
|
484030
484059
|
tools: {}
|
|
@@ -485466,7 +485495,7 @@ async function setupTokenHandler(root2) {
|
|
|
485466
485495
|
gap: 1,
|
|
485467
485496
|
children: [
|
|
485468
485497
|
/* @__PURE__ */ jsx_runtime482.jsx(TheusBanner, {
|
|
485469
|
-
version: { VERSION: "0.2.
|
|
485498
|
+
version: { VERSION: "0.2.20", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
|
|
485470
485499
|
}),
|
|
485471
485500
|
showAuthWarning && /* @__PURE__ */ jsx_runtime482.jsxs(ThemedBox_default, {
|
|
485472
485501
|
flexDirection: "column",
|
|
@@ -486889,7 +486918,7 @@ ${customInstructions}` : customInstructions;
|
|
|
486889
486918
|
}
|
|
486890
486919
|
}
|
|
486891
486920
|
logForDiagnosticsNoPII("info", "started", {
|
|
486892
|
-
version: { VERSION: "0.2.
|
|
486921
|
+
version: { VERSION: "0.2.20", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
|
|
486893
486922
|
is_native_binary: isInBundledMode()
|
|
486894
486923
|
});
|
|
486895
486924
|
registerCleanup(async () => {
|
|
@@ -487673,7 +487702,7 @@ Usage: theus --remote "your task description"`, () => gracefulShutdown(1));
|
|
|
487673
487702
|
pendingHookMessages
|
|
487674
487703
|
}, renderAndRun);
|
|
487675
487704
|
}
|
|
487676
|
-
}).version(`${{ VERSION: "0.2.
|
|
487705
|
+
}).version(`${{ VERSION: "0.2.20", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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");
|
|
487677
487706
|
program2.option("-w, --worktree [name]", "Crea un nuevo worktree de git para esta sesi\xF3n (opcionalmente indica un nombre)");
|
|
487678
487707
|
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.");
|
|
487679
487708
|
if (canUserConfigureAdvisor()) {
|
|
@@ -488199,7 +488228,7 @@ if (false) {}
|
|
|
488199
488228
|
async function main2() {
|
|
488200
488229
|
const args = process.argv.slice(2);
|
|
488201
488230
|
if (args.length === 1 && (args[0] === "--version" || args[0] === "-v" || args[0] === "-V")) {
|
|
488202
|
-
console.log(`${{ VERSION: "0.2.
|
|
488231
|
+
console.log(`${{ VERSION: "0.2.20", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)`);
|
|
488203
488232
|
return;
|
|
488204
488233
|
}
|
|
488205
488234
|
const {
|