theus-cli 0.2.19 → 0.2.21
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 +185 -147
- 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.21", BUILD_TIME: "1970-01-01T00:00:00.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.21", BUILD_TIME: "1970-01-01T00:00:00.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.21", BUILD_TIME: "1970-01-01T00:00:00.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.21", BUILD_TIME: "1970-01-01T00:00:00.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.21", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.21", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.21", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.21", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.21", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.21", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.21", BUILD_TIME: "1970-01-01T00:00:00.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.21", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.21", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.21", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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,10 +104266,16 @@ 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
|
-
dialogTitle: "
|
|
104262
|
-
dialogDescription: "
|
|
104277
|
+
dialogTitle: "Recomendamos inteligencia media",
|
|
104278
|
+
dialogDescription: "La inteligencia define cu\xE1nto razona Theus al resolver tu tarea. Para la mayor\xEDa de tareas recomendamos el nivel medio: equilibra velocidad y capacidad, y aprovecha mejor tus l\xEDmites. Usa /inteligencia para subir el nivel cuando lo necesites."
|
|
104263
104279
|
};
|
|
104264
104280
|
});
|
|
104265
104281
|
|
|
@@ -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.21", BUILD_TIME: "1970-01-01T00:00:00.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.21", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.21", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.21", BUILD_TIME: "1970-01-01T00:00:00.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.21", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.21", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.21", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.21", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.21", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.21", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.21", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.21", BUILD_TIME: "1970-01-01T00:00:00.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.21", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.21", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.21", BUILD_TIME: "1970-01-01T00:00:00.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.21", BUILD_TIME: "1970-01-01T00:00:00.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.21", BUILD_TIME: "1970-01-01T00:00:00.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.21", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.21", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.21", BUILD_TIME: "1970-01-01T00:00:00.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.21", BUILD_TIME: "1970-01-01T00:00:00.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.21", BUILD_TIME: "1970-01-01T00:00:00.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.21", BUILD_TIME: "1970-01-01T00:00:00.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.21", BUILD_TIME: "1970-01-01T00:00:00.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.21", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.21", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.21", BUILD_TIME: "1970-01-01T00:00:00.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.21", BUILD_TIME: "1970-01-01T00:00:00.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.21", BUILD_TIME: "1970-01-01T00:00:00.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.21", BUILD_TIME: "1970-01-01T00:00:00.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.21", BUILD_TIME: "1970-01-01T00:00:00.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.21", BUILD_TIME: "1970-01-01T00:00:00.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.21", BUILD_TIME: "1970-01-01T00:00:00.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.21", BUILD_TIME: "1970-01-01T00:00:00.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.21", BUILD_TIME: "1970-01-01T00:00:00.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.21", BUILD_TIME: "1970-01-01T00:00:00.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.21", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.21", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.21", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.21", BUILD_TIME: "1970-01-01T00:00:00.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.21", BUILD_TIME: "1970-01-01T00:00:00.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.21", BUILD_TIME: "1970-01-01T00:00:00.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.21", BUILD_TIME: "1970-01-01T00:00:00.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.21", BUILD_TIME: "1970-01-01T00:00:00.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.21", BUILD_TIME: "1970-01-01T00:00:00.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.21", BUILD_TIME: "1970-01-01T00:00:00.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.21", BUILD_TIME: "1970-01-01T00:00:00.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.21", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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
|
|
@@ -327625,7 +327641,7 @@ function getEffortNotificationText(effortValue, model) {
|
|
|
327625
327641
|
if (!modelSupportsEffort(model))
|
|
327626
327642
|
return;
|
|
327627
327643
|
const level = getDisplayedEffortLevel(model, effortValue);
|
|
327628
|
-
return `${effortLevelToSymbol(level)} ${level} \xB7 /
|
|
327644
|
+
return `${effortLevelToSymbol(level)} ${getEffortLevelLabelEs(level)} \xB7 /inteligencia`;
|
|
327629
327645
|
}
|
|
327630
327646
|
function effortLevelToSymbol(level) {
|
|
327631
327647
|
switch (level) {
|
|
@@ -327996,13 +328012,13 @@ function ModelPicker(t0) {
|
|
|
327996
328012
|
effort: displayEffort
|
|
327997
328013
|
}),
|
|
327998
328014
|
" ",
|
|
327999
|
-
capitalize_default(displayEffort),
|
|
328000
|
-
"
|
|
328001
|
-
displayEffort === focusedDefaultEffort ? " (
|
|
328015
|
+
capitalize_default(getEffortLevelLabelEs(displayEffort)),
|
|
328016
|
+
" inteligencia",
|
|
328017
|
+
displayEffort === focusedDefaultEffort ? " (por defecto)" : "",
|
|
328002
328018
|
" ",
|
|
328003
328019
|
/* @__PURE__ */ jsx_runtime179.jsx(ThemedText, {
|
|
328004
328020
|
color: "subtle",
|
|
328005
|
-
children: "\u2190 \u2192
|
|
328021
|
+
children: "\u2190 \u2192 para ajustar"
|
|
328006
328022
|
})
|
|
328007
328023
|
]
|
|
328008
328024
|
}) : /* @__PURE__ */ jsx_runtime179.jsxs(ThemedText, {
|
|
@@ -328011,8 +328027,8 @@ function ModelPicker(t0) {
|
|
|
328011
328027
|
/* @__PURE__ */ jsx_runtime179.jsx(EffortLevelIndicator, {
|
|
328012
328028
|
effort: undefined
|
|
328013
328029
|
}),
|
|
328014
|
-
"
|
|
328015
|
-
focusedModelName ? `
|
|
328030
|
+
" Inteligencia no disponible",
|
|
328031
|
+
focusedModelName ? ` para ${focusedModelName}` : ""
|
|
328016
328032
|
]
|
|
328017
328033
|
})
|
|
328018
328034
|
});
|
|
@@ -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.21", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.21", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.21", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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,25 @@ var init_mcp3 = __esm(() => {
|
|
|
355375
355391
|
var NOVEDADES;
|
|
355376
355392
|
var init_data = __esm(() => {
|
|
355377
355393
|
NOVEDADES = [
|
|
355394
|
+
{
|
|
355395
|
+
version: "v0.2.21",
|
|
355396
|
+
fecha: "2026-07-12",
|
|
355397
|
+
titulo: "La CLI, 100% en espa\xF1ol: niveles de inteligencia sin ingl\xE9s",
|
|
355398
|
+
puntos: [
|
|
355399
|
+
"El indicador de nivel ahora dice \u201C\u25C9 m\xE1xima \xB7 /inteligencia\u201D (antes \u201C\u25C9 max \xB7 /effort\u201D) y el pie de estado muestra \u201C\xB7 inteligencia m\xE1xima\u201D en vez de \u201Cmax effort\u201D.",
|
|
355400
|
+
"Traducidos los \xFAltimos textos en ingl\xE9s al elegir el nivel (selector de modelo y aviso de nivel recomendado), sin nombres de terceros."
|
|
355401
|
+
]
|
|
355402
|
+
},
|
|
355403
|
+
{
|
|
355404
|
+
version: "v0.2.20",
|
|
355405
|
+
fecha: "2026-07-12",
|
|
355406
|
+
titulo: "/inteligencia ahora es real: modula el razonamiento del modelo",
|
|
355407
|
+
puntos: [
|
|
355408
|
+
"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.",
|
|
355409
|
+
"M\xC1XIMA se recuerda entre sesiones (ya no era \u201Csolo esta sesi\xF3n\u201D).",
|
|
355410
|
+
"Descripciones de cada nivel reescritas en espa\xF1ol y sin nombres de terceros."
|
|
355411
|
+
]
|
|
355412
|
+
},
|
|
355378
355413
|
{
|
|
355379
355414
|
version: "v0.2.19",
|
|
355380
355415
|
fecha: "2026-07-12",
|
|
@@ -356402,9 +356437,9 @@ function getAllReleaseNotes(changelogContent = getStoredChangelogFromMemory()) {
|
|
|
356402
356437
|
return [];
|
|
356403
356438
|
}
|
|
356404
356439
|
}
|
|
356405
|
-
async function checkForReleaseNotes(lastSeenVersion, currentVersion = { VERSION: "0.2.
|
|
356440
|
+
async function checkForReleaseNotes(lastSeenVersion, currentVersion = { VERSION: "0.2.21", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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
356441
|
if (process.env.USER_TYPE === "ant") {
|
|
356407
|
-
const changelog = { VERSION: "0.2.
|
|
356442
|
+
const changelog = { VERSION: "0.2.21", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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
356443
|
if (changelog) {
|
|
356409
356444
|
const commits = changelog.trim().split(`
|
|
356410
356445
|
`).filter(Boolean);
|
|
@@ -360806,7 +360841,7 @@ var init_Messages = __esm(() => {
|
|
|
360806
360841
|
let t1;
|
|
360807
360842
|
if ($2[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
360808
360843
|
t1 = /* @__PURE__ */ jsx_runtime251.jsx(TheusSessionHeader, {
|
|
360809
|
-
version: { VERSION: "0.2.
|
|
360844
|
+
version: { VERSION: "0.2.21", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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
360845
|
});
|
|
360811
360846
|
$2[0] = t1;
|
|
360812
360847
|
} else {
|
|
@@ -388481,7 +388516,7 @@ async function captureMemoryDiagnostics(trigger, dumpNumber = 0) {
|
|
|
388481
388516
|
smapsRollup,
|
|
388482
388517
|
platform: process.platform,
|
|
388483
388518
|
nodeVersion: process.version,
|
|
388484
|
-
ccVersion: { VERSION: "0.2.
|
|
388519
|
+
ccVersion: { VERSION: "0.2.21", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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
388520
|
};
|
|
388486
388521
|
}
|
|
388487
388522
|
async function performHeapDump(trigger = "manual", dumpNumber = 0) {
|
|
@@ -389067,7 +389102,7 @@ var init_bridge_kick = __esm(() => {
|
|
|
389067
389102
|
var call55 = async () => {
|
|
389068
389103
|
return {
|
|
389069
389104
|
type: "text",
|
|
389070
|
-
value: { VERSION: "0.2.
|
|
389105
|
+
value: { VERSION: "0.2.21", BUILD_TIME: "1970-01-01T00:00:00.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.21", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.21", BUILD_TIME: "1970-01-01T00:00:00.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.21", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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
389106
|
};
|
|
389072
389107
|
}, version2, version_default;
|
|
389073
389108
|
var init_version = __esm(() => {
|
|
@@ -393509,13 +393544,13 @@ async function updateReleaseBundle() {
|
|
|
393509
393544
|
await gracefulShutdown(1);
|
|
393510
393545
|
return;
|
|
393511
393546
|
}
|
|
393512
|
-
if (gte({ VERSION: "0.2.
|
|
393513
|
-
writeToStdout(source_default.green(`Theus is up to date (${{ VERSION: "0.2.
|
|
393547
|
+
if (gte({ VERSION: "0.2.21", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
|
|
393548
|
+
writeToStdout(source_default.green(`Theus is up to date (${{ VERSION: "0.2.21", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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
393549
|
`);
|
|
393515
393550
|
await gracefulShutdown(0);
|
|
393516
393551
|
return;
|
|
393517
393552
|
}
|
|
393518
|
-
writeToStdout(`New version available: ${latest} (current: ${{ VERSION: "0.2.
|
|
393553
|
+
writeToStdout(`New version available: ${latest} (current: ${{ VERSION: "0.2.21", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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
393554
|
`);
|
|
393520
393555
|
writeToStdout(`Installing update from theus.pe/dl...
|
|
393521
393556
|
`);
|
|
@@ -393549,7 +393584,7 @@ async function updateReleaseBundle() {
|
|
|
393549
393584
|
return;
|
|
393550
393585
|
}
|
|
393551
393586
|
cpSync(staged, bundleDir, { recursive: true, force: true });
|
|
393552
|
-
writeToStdout(source_default.green(`Successfully updated from ${{ VERSION: "0.2.
|
|
393587
|
+
writeToStdout(source_default.green(`Successfully updated from ${{ VERSION: "0.2.21", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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
393588
|
`);
|
|
393554
393589
|
await regenerateCompletionCache();
|
|
393555
393590
|
} finally {
|
|
@@ -393562,7 +393597,7 @@ async function updateReleaseBundle() {
|
|
|
393562
393597
|
async function update() {
|
|
393563
393598
|
logEvent("tengu_update_check", {});
|
|
393564
393599
|
await updateNaupa();
|
|
393565
|
-
writeToStdout(`Current version: ${{ VERSION: "0.2.
|
|
393600
|
+
writeToStdout(`Current version: ${{ VERSION: "0.2.21", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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
393601
|
`);
|
|
393567
393602
|
const channel2 = getInitialSettings()?.autoUpdatesChannel ?? "latest";
|
|
393568
393603
|
writeToStdout(`Checking for updates to ${channel2} version...
|
|
@@ -393641,8 +393676,8 @@ async function update() {
|
|
|
393641
393676
|
writeToStdout(`Theus is managed by Homebrew.
|
|
393642
393677
|
`);
|
|
393643
393678
|
const latest = await getLatestVersion(channel2);
|
|
393644
|
-
if (latest && !gte({ VERSION: "0.2.
|
|
393645
|
-
writeToStdout(`Update available: ${{ VERSION: "0.2.
|
|
393679
|
+
if (latest && !gte({ VERSION: "0.2.21", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
|
|
393680
|
+
writeToStdout(`Update available: ${{ VERSION: "0.2.21", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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
393681
|
`);
|
|
393647
393682
|
writeToStdout(`
|
|
393648
393683
|
`);
|
|
@@ -393658,8 +393693,8 @@ async function update() {
|
|
|
393658
393693
|
writeToStdout(`Theus is managed by winget.
|
|
393659
393694
|
`);
|
|
393660
393695
|
const latest = await getLatestVersion(channel2);
|
|
393661
|
-
if (latest && !gte({ VERSION: "0.2.
|
|
393662
|
-
writeToStdout(`Update available: ${{ VERSION: "0.2.
|
|
393696
|
+
if (latest && !gte({ VERSION: "0.2.21", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
|
|
393697
|
+
writeToStdout(`Update available: ${{ VERSION: "0.2.21", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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
393698
|
`);
|
|
393664
393699
|
writeToStdout(`
|
|
393665
393700
|
`);
|
|
@@ -393675,8 +393710,8 @@ async function update() {
|
|
|
393675
393710
|
writeToStdout(`Theus is managed by apk.
|
|
393676
393711
|
`);
|
|
393677
393712
|
const latest = await getLatestVersion(channel2);
|
|
393678
|
-
if (latest && !gte({ VERSION: "0.2.
|
|
393679
|
-
writeToStdout(`Update available: ${{ VERSION: "0.2.
|
|
393713
|
+
if (latest && !gte({ VERSION: "0.2.21", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
|
|
393714
|
+
writeToStdout(`Update available: ${{ VERSION: "0.2.21", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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
393715
|
`);
|
|
393681
393716
|
writeToStdout(`
|
|
393682
393717
|
`);
|
|
@@ -393741,11 +393776,11 @@ async function update() {
|
|
|
393741
393776
|
`);
|
|
393742
393777
|
await gracefulShutdown(1);
|
|
393743
393778
|
}
|
|
393744
|
-
if (result.latestVersion === { VERSION: "0.2.
|
|
393745
|
-
writeToStdout(source_default.green(`Theus is up to date (${{ VERSION: "0.2.
|
|
393779
|
+
if (result.latestVersion === { VERSION: "0.2.21", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION) {
|
|
393780
|
+
writeToStdout(source_default.green(`Theus is up to date (${{ VERSION: "0.2.21", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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
393781
|
`);
|
|
393747
393782
|
} else {
|
|
393748
|
-
writeToStdout(source_default.green(`Successfully updated from ${{ VERSION: "0.2.
|
|
393783
|
+
writeToStdout(source_default.green(`Successfully updated from ${{ VERSION: "0.2.21", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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
393784
|
`);
|
|
393750
393785
|
await regenerateCompletionCache();
|
|
393751
393786
|
}
|
|
@@ -393764,9 +393799,9 @@ async function update() {
|
|
|
393764
393799
|
await removeInstalledSymlink();
|
|
393765
393800
|
}
|
|
393766
393801
|
logForDebugging("update: Checking npm registry for latest version");
|
|
393767
|
-
logForDebugging(`update: Package URL: ${{ VERSION: "0.2.
|
|
393802
|
+
logForDebugging(`update: Package URL: ${{ VERSION: "0.2.21", BUILD_TIME: "1970-01-01T00:00:00.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
393803
|
const npmTag = channel2 === "stable" ? "stable" : "latest";
|
|
393769
|
-
const npmCommand = `npm view ${{ VERSION: "0.2.
|
|
393804
|
+
const npmCommand = `npm view ${{ VERSION: "0.2.21", BUILD_TIME: "1970-01-01T00:00:00.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
393805
|
logForDebugging(`update: Running: ${npmCommand}`);
|
|
393771
393806
|
const latestVersion = await getLatestVersion(channel2);
|
|
393772
393807
|
logForDebugging(`update: Latest version from npm: ${latestVersion || "FAILED"}`);
|
|
@@ -393786,7 +393821,7 @@ async function update() {
|
|
|
393786
393821
|
`);
|
|
393787
393822
|
process.stderr.write(` \u2022 Corporate proxy/firewall blocking npm
|
|
393788
393823
|
`);
|
|
393789
|
-
if ({ VERSION: "0.2.
|
|
393824
|
+
if ({ VERSION: "0.2.21", BUILD_TIME: "1970-01-01T00:00:00.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.21", BUILD_TIME: "1970-01-01T00:00:00.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
393825
|
process.stderr.write(` \u2022 Internal/development build not published to npm
|
|
393791
393826
|
`);
|
|
393792
393827
|
}
|
|
@@ -393798,19 +393833,19 @@ async function update() {
|
|
|
393798
393833
|
`);
|
|
393799
393834
|
process.stderr.write(` \u2022 Run with --debug flag for more details
|
|
393800
393835
|
`);
|
|
393801
|
-
const packageName = { VERSION: "0.2.
|
|
393836
|
+
const packageName = { VERSION: "0.2.21", BUILD_TIME: "1970-01-01T00:00:00.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
393837
|
process.stderr.write(` \u2022 Manually check: npm view ${packageName} version
|
|
393803
393838
|
`);
|
|
393804
393839
|
process.stderr.write(` \u2022 Check if you need to login: npm whoami
|
|
393805
393840
|
`);
|
|
393806
393841
|
await gracefulShutdown(1);
|
|
393807
393842
|
}
|
|
393808
|
-
if (gte({ VERSION: "0.2.
|
|
393809
|
-
writeToStdout(source_default.green(`Theus is up to date (${{ VERSION: "0.2.
|
|
393843
|
+
if (gte({ VERSION: "0.2.21", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
|
|
393844
|
+
writeToStdout(source_default.green(`Theus is up to date (${{ VERSION: "0.2.21", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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
393845
|
`);
|
|
393811
393846
|
await gracefulShutdown(0);
|
|
393812
393847
|
}
|
|
393813
|
-
writeToStdout(`New version available: ${latestVersion} (current: ${{ VERSION: "0.2.
|
|
393848
|
+
writeToStdout(`New version available: ${latestVersion} (current: ${{ VERSION: "0.2.21", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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
393849
|
`);
|
|
393815
393850
|
writeToStdout(`Installing update...
|
|
393816
393851
|
`);
|
|
@@ -393855,7 +393890,7 @@ async function update() {
|
|
|
393855
393890
|
logForDebugging(`update: Installation status: ${status2}`);
|
|
393856
393891
|
switch (status2) {
|
|
393857
393892
|
case "success":
|
|
393858
|
-
writeToStdout(source_default.green(`Successfully updated from ${{ VERSION: "0.2.
|
|
393893
|
+
writeToStdout(source_default.green(`Successfully updated from ${{ VERSION: "0.2.21", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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
393894
|
`);
|
|
393860
393895
|
await regenerateCompletionCache();
|
|
393861
393896
|
break;
|
|
@@ -393865,7 +393900,7 @@ async function update() {
|
|
|
393865
393900
|
if (useLocalUpdate) {
|
|
393866
393901
|
process.stderr.write(`Try manually updating with:
|
|
393867
393902
|
`);
|
|
393868
|
-
process.stderr.write(` cd ~/.theus/local && npm update ${{ VERSION: "0.2.
|
|
393903
|
+
process.stderr.write(` cd ~/.theus/local && npm update ${{ VERSION: "0.2.21", BUILD_TIME: "1970-01-01T00:00:00.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
393904
|
`);
|
|
393870
393905
|
} else {
|
|
393871
393906
|
process.stderr.write(`Try running with sudo or fix npm permissions
|
|
@@ -393881,7 +393916,7 @@ async function update() {
|
|
|
393881
393916
|
if (useLocalUpdate) {
|
|
393882
393917
|
process.stderr.write(`Try manually updating with:
|
|
393883
393918
|
`);
|
|
393884
|
-
process.stderr.write(` cd ~/.theus/local && npm update ${{ VERSION: "0.2.
|
|
393919
|
+
process.stderr.write(` cd ~/.theus/local && npm update ${{ VERSION: "0.2.21", BUILD_TIME: "1970-01-01T00:00:00.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
393920
|
`);
|
|
393886
393921
|
} else {
|
|
393887
393922
|
process.stderr.write(`Or consider using native installation with: theus install
|
|
@@ -400787,7 +400822,7 @@ var init_sessionStorage = __esm(() => {
|
|
|
400787
400822
|
init_settings2();
|
|
400788
400823
|
init_slowOperations();
|
|
400789
400824
|
init_uuid();
|
|
400790
|
-
VERSION4 = { VERSION: "0.2.
|
|
400825
|
+
VERSION4 = { VERSION: "0.2.21", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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
400826
|
MAX_TOMBSTONE_REWRITE_BYTES = 50 * 1024 * 1024;
|
|
400792
400827
|
SKIP_FIRST_PROMPT_PATTERN = /^(?:\s*<[a-z][\w-]*[\s>]|\[Request interrupted by user[^\]]*\])/;
|
|
400793
400828
|
EPHEMERAL_PROGRESS_TYPES = new Set([
|
|
@@ -401992,7 +402027,7 @@ var init_filesystem = __esm(() => {
|
|
|
401992
402027
|
});
|
|
401993
402028
|
getBundledSkillsRoot = memoize_default(function getBundledSkillsRoot2() {
|
|
401994
402029
|
const nonce = randomBytes21(16).toString("hex");
|
|
401995
|
-
return join147(getTheusTempDir(), "bundled-skills", { VERSION: "0.2.
|
|
402030
|
+
return join147(getTheusTempDir(), "bundled-skills", { VERSION: "0.2.21", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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
402031
|
});
|
|
401997
402032
|
getResolvedWorkingDirPaths = memoize_default(getPathsForPermissionCheck);
|
|
401998
402033
|
});
|
|
@@ -407167,7 +407202,7 @@ function getSimpleDoingTasksSection() {
|
|
|
407167
407202
|
];
|
|
407168
407203
|
const userHelpSubitems = [
|
|
407169
407204
|
`/help: Get help with using Theus`,
|
|
407170
|
-
`To give feedback, users should ${{ VERSION: "0.2.
|
|
407205
|
+
`To give feedback, users should ${{ VERSION: "0.2.21", BUILD_TIME: "1970-01-01T00:00:00.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
407206
|
];
|
|
407172
407207
|
const items = [
|
|
407173
407208
|
`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 +408025,7 @@ function computeFingerprint(messageText, version3) {
|
|
|
407990
408025
|
}
|
|
407991
408026
|
function computeFingerprintFromMessages(messages) {
|
|
407992
408027
|
const firstMessageText = extractFirstMessageText(messages);
|
|
407993
|
-
return computeFingerprint(firstMessageText, { VERSION: "0.2.
|
|
408028
|
+
return computeFingerprint(firstMessageText, { VERSION: "0.2.21", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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
408029
|
}
|
|
407995
408030
|
var FINGERPRINT_SALT = "59cf53e54c78";
|
|
407996
408031
|
var init_fingerprint = () => {};
|
|
@@ -410165,9 +410200,11 @@ async function* callOpenAICompatible({
|
|
|
410165
410200
|
options: options2
|
|
410166
410201
|
}) {
|
|
410167
410202
|
const openAITools = isEnvTruthy(process.env.THEUS_DISABLE_TOOLS) ? [] : await toOpenAITools(tools, options2);
|
|
410203
|
+
const appliedEffort = resolveAppliedEffort(provider.model, options2.effortValue);
|
|
410168
410204
|
const baseBody = {
|
|
410169
410205
|
model: provider.model,
|
|
410170
410206
|
messages: toOpenAIMessages(messages, systemPrompt),
|
|
410207
|
+
...typeof appliedEffort === "string" ? { reasoning_effort: appliedEffort } : {},
|
|
410171
410208
|
...openAITools.length > 0 ? { tools: openAITools, tool_choice: "auto" } : {},
|
|
410172
410209
|
...provider.params?.temperature !== undefined ? { temperature: provider.params.temperature } : {},
|
|
410173
410210
|
...provider.params?.maxTokens !== undefined ? { max_tokens: provider.params.maxTokens } : {},
|
|
@@ -410484,6 +410521,7 @@ async function* queryModelWithTheusProviders({
|
|
|
410484
410521
|
}
|
|
410485
410522
|
var init_theus2 = __esm(() => {
|
|
410486
410523
|
init_theusEngine();
|
|
410524
|
+
init_effort();
|
|
410487
410525
|
init_api4();
|
|
410488
410526
|
init_envUtils();
|
|
410489
410527
|
init_log2();
|
|
@@ -410535,7 +410573,7 @@ async function sideQuery(opts) {
|
|
|
410535
410573
|
betas.push(STRUCTURED_OUTPUTS_BETA_HEADER);
|
|
410536
410574
|
}
|
|
410537
410575
|
const messageText = extractFirstUserMessageText(messages);
|
|
410538
|
-
const fingerprint = computeFingerprint(messageText, { VERSION: "0.2.
|
|
410576
|
+
const fingerprint = computeFingerprint(messageText, { VERSION: "0.2.21", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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
410577
|
const attributionHeader = getAttributionHeader(fingerprint);
|
|
410540
410578
|
const systemBlocks = [
|
|
410541
410579
|
attributionHeader ? { type: "text", text: attributionHeader } : null,
|
|
@@ -411838,7 +411876,7 @@ async function handleMemories(state) {
|
|
|
411838
411876
|
async function runProjectContextMcpServer() {
|
|
411839
411877
|
const projectRoot = process.env.THEUS_PROJECT_ROOT || process.cwd();
|
|
411840
411878
|
const state = new ProjectContextState(projectRoot);
|
|
411841
|
-
const server2 = new Server({ name: SERVER_NAME, version: { VERSION: "0.2.
|
|
411879
|
+
const server2 = new Server({ name: SERVER_NAME, version: { VERSION: "0.2.21", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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
411880
|
server2.setRequestHandler(ListToolsRequestSchema, async () => ({
|
|
411843
411881
|
tools: TOOL_DEFINITIONS.map((t) => ({
|
|
411844
411882
|
name: t.name,
|
|
@@ -413818,7 +413856,7 @@ function createBridgeLogger(options2) {
|
|
|
413818
413856
|
connectUrl = buildBridgeConnectUrl(environmentId, cachedIngressUrl);
|
|
413819
413857
|
regenerateQr(connectUrl);
|
|
413820
413858
|
if (verbose) {
|
|
413821
|
-
write(source_default.dim(`Remote Control`) + ` v${{ VERSION: "0.2.
|
|
413859
|
+
write(source_default.dim(`Remote Control`) + ` v${{ VERSION: "0.2.21", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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
413860
|
`);
|
|
413823
413861
|
}
|
|
413824
413862
|
if (verbose) {
|
|
@@ -414791,7 +414829,7 @@ function appendToLog(path19, message) {
|
|
|
414791
414829
|
cwd: getFsImplementation().cwd(),
|
|
414792
414830
|
userType: process.env.USER_TYPE,
|
|
414793
414831
|
sessionId: getSessionId(),
|
|
414794
|
-
version: { VERSION: "0.2.
|
|
414832
|
+
version: { VERSION: "0.2.21", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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
414833
|
};
|
|
414796
414834
|
getLogWriter(path19).write(messageWithTimestamp);
|
|
414797
414835
|
}
|
|
@@ -416061,7 +416099,7 @@ Spawn mode for this project:
|
|
|
416061
416099
|
const api2 = createBridgeApiClient({
|
|
416062
416100
|
baseUrl,
|
|
416063
416101
|
getAccessToken: getBridgeAccessToken2,
|
|
416064
|
-
runnerVersion: { VERSION: "0.2.
|
|
416102
|
+
runnerVersion: { VERSION: "0.2.21", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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
416103
|
onDebug: logForDebugging,
|
|
416066
416104
|
onAuth401: handleOAuth401Error2,
|
|
416067
416105
|
getTrustedDeviceToken
|
|
@@ -416299,7 +416337,7 @@ async function runBridgeHeadless(opts, signal) {
|
|
|
416299
416337
|
const api2 = createBridgeApiClient({
|
|
416300
416338
|
baseUrl,
|
|
416301
416339
|
getAccessToken: opts.getAccessToken,
|
|
416302
|
-
runnerVersion: { VERSION: "0.2.
|
|
416340
|
+
runnerVersion: { VERSION: "0.2.21", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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
416341
|
onDebug: log2,
|
|
416304
416342
|
onAuth401: opts.onAuth401,
|
|
416305
416343
|
getTrustedDeviceToken
|
|
@@ -420363,7 +420401,7 @@ function buildSystemInitMessage(inputs) {
|
|
|
420363
420401
|
slash_commands: inputs.commands.filter((c5) => c5.userInvocable !== false).map((c5) => c5.name),
|
|
420364
420402
|
apiKeySource: getTheusApiKeyWithSource().source,
|
|
420365
420403
|
betas: getSdkBetas(),
|
|
420366
|
-
theus_code_version: { VERSION: "0.2.
|
|
420404
|
+
theus_code_version: { VERSION: "0.2.21", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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
420405
|
output_style: outputStyle2,
|
|
420368
420406
|
agents: inputs.agents.map((agent) => agent.agentType),
|
|
420369
420407
|
skills: inputs.skills.filter((s) => s.userInvocable !== false).map((skill) => skill.name),
|
|
@@ -420403,8 +420441,8 @@ async function getEnvLessBridgeConfig() {
|
|
|
420403
420441
|
}
|
|
420404
420442
|
async function checkEnvLessBridgeMinVersion() {
|
|
420405
420443
|
const cfg = await getEnvLessBridgeConfig();
|
|
420406
|
-
if (cfg.min_version && lt({ VERSION: "0.2.
|
|
420407
|
-
return `Your version of Theus (${{ VERSION: "0.2.
|
|
420444
|
+
if (cfg.min_version && lt({ VERSION: "0.2.21", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
|
|
420445
|
+
return `Your version of Theus (${{ VERSION: "0.2.21", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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
420446
|
Version ${cfg.min_version} or higher is required. Run \`theus update\` to update.`;
|
|
420409
420447
|
}
|
|
420410
420448
|
return null;
|
|
@@ -422727,7 +422765,7 @@ async function initBridgeCore(params) {
|
|
|
422727
422765
|
const rawApi = createBridgeApiClient({
|
|
422728
422766
|
baseUrl,
|
|
422729
422767
|
getAccessToken,
|
|
422730
|
-
runnerVersion: { VERSION: "0.2.
|
|
422768
|
+
runnerVersion: { VERSION: "0.2.21", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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
422769
|
onDebug: logForDebugging,
|
|
422732
422770
|
onAuth401,
|
|
422733
422771
|
getTrustedDeviceToken
|
|
@@ -439816,7 +439854,7 @@ var init_useVoiceEnabled = __esm(() => {
|
|
|
439816
439854
|
function getSemverPart(version3) {
|
|
439817
439855
|
return `${import_semver14.major(version3, { loose: true })}.${import_semver14.minor(version3, { loose: true })}.${import_semver14.patch(version3, { loose: true })}`;
|
|
439818
439856
|
}
|
|
439819
|
-
function useUpdateNotification(updatedVersion, initialVersion = { VERSION: "0.2.
|
|
439857
|
+
function useUpdateNotification(updatedVersion, initialVersion = { VERSION: "0.2.21", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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
439858
|
const [lastNotifiedSemver, setLastNotifiedSemver] = import_react219.useState(() => getSemverPart(initialVersion));
|
|
439821
439859
|
if (!updatedVersion) {
|
|
439822
439860
|
return null;
|
|
@@ -439856,7 +439894,7 @@ function AutoUpdater({
|
|
|
439856
439894
|
return;
|
|
439857
439895
|
}
|
|
439858
439896
|
if (false) {}
|
|
439859
|
-
const currentVersion = { VERSION: "0.2.
|
|
439897
|
+
const currentVersion = { VERSION: "0.2.21", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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
439898
|
const channel2 = getInitialSettings()?.autoUpdatesChannel ?? "latest";
|
|
439861
439899
|
let latestVersion = await getLatestVersion(channel2);
|
|
439862
439900
|
const isDisabled2 = isAutoUpdaterDisabled();
|
|
@@ -439992,7 +440030,7 @@ function AutoUpdater({
|
|
|
439992
440030
|
" ",
|
|
439993
440031
|
/* @__PURE__ */ jsx_runtime390.jsx(ThemedText, {
|
|
439994
440032
|
bold: true,
|
|
439995
|
-
children: hasLocalInstall ? `cd ~/.theus/local && npm update ${{ VERSION: "0.2.
|
|
440033
|
+
children: hasLocalInstall ? `cd ~/.theus/local && npm update ${{ VERSION: "0.2.21", BUILD_TIME: "1970-01-01T00:00:00.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.21", BUILD_TIME: "1970-01-01T00:00:00.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
440034
|
})
|
|
439997
440035
|
]
|
|
439998
440036
|
})
|
|
@@ -440069,12 +440107,12 @@ function NativeAutoUpdater({
|
|
|
440069
440107
|
logEvent("tengu_native_auto_updater_start", {});
|
|
440070
440108
|
try {
|
|
440071
440109
|
const maxVersion = await getMaxVersion();
|
|
440072
|
-
if (maxVersion && gt({ VERSION: "0.2.
|
|
440110
|
+
if (maxVersion && gt({ VERSION: "0.2.21", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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
440111
|
const msg = await getMaxVersionMessage();
|
|
440074
440112
|
setMaxVersionIssue(msg ?? "affects your version");
|
|
440075
440113
|
}
|
|
440076
440114
|
const result = await installLatest(channel2);
|
|
440077
|
-
const currentVersion = { VERSION: "0.2.
|
|
440115
|
+
const currentVersion = { VERSION: "0.2.21", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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
440116
|
const latencyMs = Date.now() - startTime2;
|
|
440079
440117
|
if (result.lockFailed) {
|
|
440080
440118
|
logEvent("tengu_native_auto_updater_lock_contention", {
|
|
@@ -440211,17 +440249,17 @@ function PackageManagerAutoUpdater(t0) {
|
|
|
440211
440249
|
const maxVersion = await getMaxVersion();
|
|
440212
440250
|
if (maxVersion && latest && gt(latest, maxVersion)) {
|
|
440213
440251
|
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.
|
|
440252
|
+
if (gte({ VERSION: "0.2.21", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
|
|
440253
|
+
logForDebugging(`PackageManagerAutoUpdater: current version ${{ VERSION: "0.2.21", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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
440254
|
setUpdateAvailable(false);
|
|
440217
440255
|
return;
|
|
440218
440256
|
}
|
|
440219
440257
|
latest = maxVersion;
|
|
440220
440258
|
}
|
|
440221
|
-
const hasUpdate = latest && !gte({ VERSION: "0.2.
|
|
440259
|
+
const hasUpdate = latest && !gte({ VERSION: "0.2.21", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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
440260
|
setUpdateAvailable(!!hasUpdate);
|
|
440223
440261
|
if (hasUpdate) {
|
|
440224
|
-
logForDebugging(`PackageManagerAutoUpdater: Update available ${{ VERSION: "0.2.
|
|
440262
|
+
logForDebugging(`PackageManagerAutoUpdater: Update available ${{ VERSION: "0.2.21", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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
440263
|
}
|
|
440226
440264
|
};
|
|
440227
440265
|
$2[0] = t1;
|
|
@@ -440255,7 +440293,7 @@ function PackageManagerAutoUpdater(t0) {
|
|
|
440255
440293
|
wrap: "truncate",
|
|
440256
440294
|
children: [
|
|
440257
440295
|
"currentVersion: ",
|
|
440258
|
-
{ VERSION: "0.2.
|
|
440296
|
+
{ VERSION: "0.2.21", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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
440297
|
]
|
|
440260
440298
|
});
|
|
440261
440299
|
$2[3] = verbose;
|
|
@@ -448128,7 +448166,7 @@ function buildStatusLineCommandInput(permissionMode, exceeds200kTokens, settings
|
|
|
448128
448166
|
project_dir: getOriginalCwd(),
|
|
448129
448167
|
added_dirs: addedDirs
|
|
448130
448168
|
},
|
|
448131
|
-
version: { VERSION: "0.2.
|
|
448169
|
+
version: { VERSION: "0.2.21", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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
448170
|
output_style: {
|
|
448133
448171
|
name: outputStyleName
|
|
448134
448172
|
},
|
|
@@ -459101,19 +459139,19 @@ function EffortCallout(t0) {
|
|
|
459101
459139
|
t9 = [{
|
|
459102
459140
|
label: /* @__PURE__ */ jsx_runtime430.jsx(EffortOptionLabel, {
|
|
459103
459141
|
level: "medium",
|
|
459104
|
-
text: "
|
|
459142
|
+
text: "Media (recomendada)"
|
|
459105
459143
|
}),
|
|
459106
459144
|
value: "medium"
|
|
459107
459145
|
}, {
|
|
459108
459146
|
label: /* @__PURE__ */ jsx_runtime430.jsx(EffortOptionLabel, {
|
|
459109
459147
|
level: "high",
|
|
459110
|
-
text: "
|
|
459148
|
+
text: "Alta"
|
|
459111
459149
|
}),
|
|
459112
459150
|
value: "high"
|
|
459113
459151
|
}, {
|
|
459114
459152
|
label: /* @__PURE__ */ jsx_runtime430.jsx(EffortOptionLabel, {
|
|
459115
459153
|
level: "low",
|
|
459116
|
-
text: "
|
|
459154
|
+
text: "Baja"
|
|
459117
459155
|
}),
|
|
459118
459156
|
value: "low"
|
|
459119
459157
|
}];
|
|
@@ -459161,17 +459199,17 @@ function EffortCallout(t0) {
|
|
|
459161
459199
|
dimColor: true,
|
|
459162
459200
|
children: [
|
|
459163
459201
|
t11,
|
|
459164
|
-
"
|
|
459202
|
+
" baja ",
|
|
459165
459203
|
"\xB7",
|
|
459166
459204
|
" ",
|
|
459167
459205
|
t12,
|
|
459168
|
-
"
|
|
459206
|
+
" media ",
|
|
459169
459207
|
"\xB7",
|
|
459170
459208
|
" ",
|
|
459171
459209
|
/* @__PURE__ */ jsx_runtime430.jsx(EffortIndicatorSymbol, {
|
|
459172
459210
|
level: "high"
|
|
459173
459211
|
}),
|
|
459174
|
-
"
|
|
459212
|
+
" alta"
|
|
459175
459213
|
]
|
|
459176
459214
|
})
|
|
459177
459215
|
});
|
|
@@ -459474,7 +459512,7 @@ async function submitTranscriptShare(messages, trigger, appearanceId) {
|
|
|
459474
459512
|
} catch {}
|
|
459475
459513
|
const data = {
|
|
459476
459514
|
trigger,
|
|
459477
|
-
version: { VERSION: "0.2.
|
|
459515
|
+
version: { VERSION: "0.2.21", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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
459516
|
platform: process.platform,
|
|
459479
459517
|
transcript,
|
|
459480
459518
|
subagentTranscripts: Object.keys(subagentTranscripts).length > 0 ? subagentTranscripts : undefined,
|
|
@@ -472425,7 +472463,7 @@ function Onboarding({
|
|
|
472425
472463
|
flexDirection: "column",
|
|
472426
472464
|
children: [
|
|
472427
472465
|
/* @__PURE__ */ jsx_runtime465.jsx(TheusBanner, {
|
|
472428
|
-
version: { VERSION: "0.2.
|
|
472466
|
+
version: { VERSION: "0.2.21", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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
472467
|
}),
|
|
472430
472468
|
/* @__PURE__ */ jsx_runtime465.jsxs(ThemedBox_default, {
|
|
472431
472469
|
flexDirection: "column",
|
|
@@ -473296,7 +473334,7 @@ function completeOnboarding() {
|
|
|
473296
473334
|
saveGlobalConfig((current) => ({
|
|
473297
473335
|
...current,
|
|
473298
473336
|
hasCompletedOnboarding: true,
|
|
473299
|
-
lastOnboardingVersion: { VERSION: "0.2.
|
|
473337
|
+
lastOnboardingVersion: { VERSION: "0.2.21", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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
473338
|
}));
|
|
473301
473339
|
}
|
|
473302
473340
|
function showDialog(root2, renderer) {
|
|
@@ -484024,7 +484062,7 @@ async function startMCPServer(cwd3, debug2, verbose) {
|
|
|
484024
484062
|
setCwd(cwd3);
|
|
484025
484063
|
const server2 = new Server({
|
|
484026
484064
|
name: "theus/tengu",
|
|
484027
|
-
version: { VERSION: "0.2.
|
|
484065
|
+
version: { VERSION: "0.2.21", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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
484066
|
}, {
|
|
484029
484067
|
capabilities: {
|
|
484030
484068
|
tools: {}
|
|
@@ -485466,7 +485504,7 @@ async function setupTokenHandler(root2) {
|
|
|
485466
485504
|
gap: 1,
|
|
485467
485505
|
children: [
|
|
485468
485506
|
/* @__PURE__ */ jsx_runtime482.jsx(TheusBanner, {
|
|
485469
|
-
version: { VERSION: "0.2.
|
|
485507
|
+
version: { VERSION: "0.2.21", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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
485508
|
}),
|
|
485471
485509
|
showAuthWarning && /* @__PURE__ */ jsx_runtime482.jsxs(ThemedBox_default, {
|
|
485472
485510
|
flexDirection: "column",
|
|
@@ -486889,7 +486927,7 @@ ${customInstructions}` : customInstructions;
|
|
|
486889
486927
|
}
|
|
486890
486928
|
}
|
|
486891
486929
|
logForDiagnosticsNoPII("info", "started", {
|
|
486892
|
-
version: { VERSION: "0.2.
|
|
486930
|
+
version: { VERSION: "0.2.21", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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
486931
|
is_native_binary: isInBundledMode()
|
|
486894
486932
|
});
|
|
486895
486933
|
registerCleanup(async () => {
|
|
@@ -487673,7 +487711,7 @@ Usage: theus --remote "your task description"`, () => gracefulShutdown(1));
|
|
|
487673
487711
|
pendingHookMessages
|
|
487674
487712
|
}, renderAndRun);
|
|
487675
487713
|
}
|
|
487676
|
-
}).version(`${{ VERSION: "0.2.
|
|
487714
|
+
}).version(`${{ VERSION: "0.2.21", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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
487715
|
program2.option("-w, --worktree [name]", "Crea un nuevo worktree de git para esta sesi\xF3n (opcionalmente indica un nombre)");
|
|
487678
487716
|
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
487717
|
if (canUserConfigureAdvisor()) {
|
|
@@ -488199,7 +488237,7 @@ if (false) {}
|
|
|
488199
488237
|
async function main2() {
|
|
488200
488238
|
const args = process.argv.slice(2);
|
|
488201
488239
|
if (args.length === 1 && (args[0] === "--version" || args[0] === "-v" || args[0] === "-V")) {
|
|
488202
|
-
console.log(`${{ VERSION: "0.2.
|
|
488240
|
+
console.log(`${{ VERSION: "0.2.21", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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
488241
|
return;
|
|
488204
488242
|
}
|
|
488205
488243
|
const {
|