theus-cli 0.2.20 → 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 +145 -136
- 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();
|
|
@@ -104274,8 +104274,8 @@ var init_effort = __esm(() => {
|
|
|
104274
104274
|
};
|
|
104275
104275
|
OPUS_DEFAULT_EFFORT_CONFIG_DEFAULT = {
|
|
104276
104276
|
enabled: true,
|
|
104277
|
-
dialogTitle: "
|
|
104278
|
-
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."
|
|
104279
104279
|
};
|
|
104280
104280
|
});
|
|
104281
104281
|
|
|
@@ -107755,7 +107755,7 @@ Complete the user's request by providing accurate, documentation-based guidance.
|
|
|
107755
107755
|
}
|
|
107756
107756
|
function getFeedbackGuideline() {
|
|
107757
107757
|
if (isUsing3PServices()) {
|
|
107758
|
-
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}`;
|
|
107759
107759
|
}
|
|
107760
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";
|
|
107761
107761
|
}
|
|
@@ -166460,7 +166460,7 @@ function getTelemetryAttributes() {
|
|
|
166460
166460
|
attributes["session.id"] = sessionId;
|
|
166461
166461
|
}
|
|
166462
166462
|
if (shouldIncludeAttribute("OTEL_METRICS_INCLUDE_VERSION")) {
|
|
166463
|
-
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;
|
|
166464
166464
|
}
|
|
166465
166465
|
const oauthAccount = getOauthAccountInfo();
|
|
166466
166466
|
if (oauthAccount) {
|
|
@@ -202518,7 +202518,7 @@ function getInstallationEnv() {
|
|
|
202518
202518
|
return;
|
|
202519
202519
|
}
|
|
202520
202520
|
function getTheusCodeVersion() {
|
|
202521
|
-
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;
|
|
202522
202522
|
}
|
|
202523
202523
|
async function getInstalledVSCodeExtensionVersion(command) {
|
|
202524
202524
|
const { stdout } = await execFileNoThrow(command, ["--list-extensions", "--show-versions"], {
|
|
@@ -204036,7 +204036,7 @@ async function getMcpHeadersFromHelper(serverName, config2) {
|
|
|
204036
204036
|
if ("scope" in config2 && isMcpServerFromProjectOrLocalSettings(config2) && !getIsNonInteractiveSession()) {
|
|
204037
204037
|
const hasTrust = checkHasTrustDialogAccepted();
|
|
204038
204038
|
if (!hasTrust) {
|
|
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.
|
|
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}.`);
|
|
204040
204040
|
logAntError("MCP headersHelper invoked before trust check", error40);
|
|
204041
204041
|
logEvent("tengu_mcp_headersHelper_missing_trust", {});
|
|
204042
204042
|
return null;
|
|
@@ -205246,7 +205246,7 @@ async function setupSdkMcpClients(sdkMcpConfigs, sendMcpMessage) {
|
|
|
205246
205246
|
const client2 = new Client({
|
|
205247
205247
|
name: "theus-code",
|
|
205248
205248
|
title: "Theus",
|
|
205249
|
-
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",
|
|
205250
205250
|
description: "Theus's agentic coding tool",
|
|
205251
205251
|
websiteUrl: PRODUCT_URL
|
|
205252
205252
|
}, {
|
|
@@ -205600,7 +205600,7 @@ var init_client5 = __esm(() => {
|
|
|
205600
205600
|
const client2 = new Client({
|
|
205601
205601
|
name: "theus-code",
|
|
205602
205602
|
title: "Theus",
|
|
205603
|
-
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",
|
|
205604
205604
|
description: "Theus's agentic coding tool",
|
|
205605
205605
|
websiteUrl: PRODUCT_URL
|
|
205606
205606
|
}, {
|
|
@@ -216178,7 +216178,7 @@ async function initializeBetaTracing(resource) {
|
|
|
216178
216178
|
});
|
|
216179
216179
|
logs.setGlobalLoggerProvider(loggerProvider);
|
|
216180
216180
|
setLoggerProvider(loggerProvider);
|
|
216181
|
-
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);
|
|
216182
216182
|
setEventLogger(eventLogger);
|
|
216183
216183
|
process.on("beforeExit", async () => {
|
|
216184
216184
|
await loggerProvider?.forceFlush();
|
|
@@ -216218,7 +216218,7 @@ async function initializeTelemetry() {
|
|
|
216218
216218
|
const platform4 = getPlatform();
|
|
216219
216219
|
const baseAttributes = {
|
|
216220
216220
|
[ATTR_SERVICE_NAME]: "theus-code",
|
|
216221
|
-
[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
|
|
216222
216222
|
};
|
|
216223
216223
|
if (platform4 === "wsl") {
|
|
216224
216224
|
const wslVersion = getWslVersion();
|
|
@@ -216263,7 +216263,7 @@ async function initializeTelemetry() {
|
|
|
216263
216263
|
} catch {}
|
|
216264
216264
|
};
|
|
216265
216265
|
registerCleanup(shutdownTelemetry2);
|
|
216266
|
-
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);
|
|
216267
216267
|
}
|
|
216268
216268
|
const meterProvider = new MeterProvider({
|
|
216269
216269
|
resource,
|
|
@@ -216283,7 +216283,7 @@ async function initializeTelemetry() {
|
|
|
216283
216283
|
});
|
|
216284
216284
|
logs.setGlobalLoggerProvider(loggerProvider);
|
|
216285
216285
|
setLoggerProvider(loggerProvider);
|
|
216286
|
-
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);
|
|
216287
216287
|
setEventLogger(eventLogger);
|
|
216288
216288
|
logForDebugging("[3P telemetry] Event logger set successfully");
|
|
216289
216289
|
process.on("beforeExit", async () => {
|
|
@@ -216345,7 +216345,7 @@ Current timeout: ${timeoutMs}ms
|
|
|
216345
216345
|
}
|
|
216346
216346
|
};
|
|
216347
216347
|
registerCleanup(shutdownTelemetry);
|
|
216348
|
-
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);
|
|
216349
216349
|
}
|
|
216350
216350
|
async function flushTelemetry() {
|
|
216351
216351
|
const meterProvider = getMeterProvider();
|
|
@@ -216885,7 +216885,7 @@ async function installOrUpdateTheusPackage(channel2, specificVersion) {
|
|
|
216885
216885
|
return "install_failed";
|
|
216886
216886
|
}
|
|
216887
216887
|
const versionSpec = specificVersion ? specificVersion : channel2 === "stable" ? "stable" : "latest";
|
|
216888
|
-
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 });
|
|
216889
216889
|
if (result.code !== 0) {
|
|
216890
216890
|
const error40 = new Error(`Failed to install Theus CLI package: ${result.stderr}`);
|
|
216891
216891
|
logError2(error40);
|
|
@@ -217031,9 +217031,9 @@ async function assertMinVersion() {
|
|
|
217031
217031
|
if (false) {}
|
|
217032
217032
|
try {
|
|
217033
217033
|
const versionConfig = await getDynamicConfig_BLOCKS_ON_INIT("tengu_version_config", { minVersion: "0.0.0" });
|
|
217034
|
-
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)) {
|
|
217035
217035
|
console.error(`
|
|
217036
|
-
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.
|
|
217037
217037
|
A newer version (${versionConfig.minVersion} or higher) is required to continue.
|
|
217038
217038
|
|
|
217039
217039
|
To update, please run:
|
|
@@ -217174,7 +217174,7 @@ async function getInstallationPrefix() {
|
|
|
217174
217174
|
return prefixResult.stdout.trim();
|
|
217175
217175
|
}
|
|
217176
217176
|
function getGlobalInstallPackageManager() {
|
|
217177
|
-
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") {
|
|
217178
217178
|
return "npm";
|
|
217179
217179
|
}
|
|
217180
217180
|
return env3.isRunningWithBun() ? "bun" : "npm";
|
|
@@ -217199,7 +217199,7 @@ async function checkGlobalInstallPermissions() {
|
|
|
217199
217199
|
}
|
|
217200
217200
|
async function getLatestVersion(channel2) {
|
|
217201
217201
|
const npmTag = channel2 === "stable" ? "stable" : "latest";
|
|
217202
|
-
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() });
|
|
217203
217203
|
if (result.code !== 0) {
|
|
217204
217204
|
logForDebugging(`npm view failed with code ${result.code}`);
|
|
217205
217205
|
if (result.stderr) {
|
|
@@ -217215,7 +217215,7 @@ async function getLatestVersion(channel2) {
|
|
|
217215
217215
|
return result.stdout.trim();
|
|
217216
217216
|
}
|
|
217217
217217
|
async function getNpmDistTags() {
|
|
217218
|
-
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() });
|
|
217219
217219
|
if (result.code !== 0) {
|
|
217220
217220
|
logForDebugging(`npm view dist-tags failed with code ${result.code}`);
|
|
217221
217221
|
return { latest: null, stable: null };
|
|
@@ -217255,7 +217255,7 @@ async function installGlobalPackage(specificVersion) {
|
|
|
217255
217255
|
logError2(new AutoUpdaterError("Another process is currently installing an update"));
|
|
217256
217256
|
logEvent("tengu_auto_updater_lock_contention", {
|
|
217257
217257
|
pid: process.pid,
|
|
217258
|
-
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
|
|
217259
217259
|
});
|
|
217260
217260
|
return "in_progress";
|
|
217261
217261
|
}
|
|
@@ -217264,7 +217264,7 @@ async function installGlobalPackage(specificVersion) {
|
|
|
217264
217264
|
if (!env3.isRunningWithBun() && env3.isNpmFromWindowsPath()) {
|
|
217265
217265
|
logError2(new Error("Windows NPM detected in WSL environment"));
|
|
217266
217266
|
logEvent("tengu_auto_updater_windows_npm_in_wsl", {
|
|
217267
|
-
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
|
|
217268
217268
|
});
|
|
217269
217269
|
console.error(`
|
|
217270
217270
|
Error: Windows NPM detected in WSL
|
|
@@ -217283,7 +217283,7 @@ To fix this issue:
|
|
|
217283
217283
|
if (!hasPermissions) {
|
|
217284
217284
|
return "no_permissions";
|
|
217285
217285
|
}
|
|
217286
|
-
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;
|
|
217287
217287
|
const packageManager = getGlobalInstallPackageManager();
|
|
217288
217288
|
const installResult = await execFileNoThrowWithCwd(packageManager, ["install", "-g", packageSpec], { cwd: homedir18() });
|
|
217289
217289
|
if (installResult.code !== 0) {
|
|
@@ -217611,8 +217611,8 @@ async function detectMultipleInstallations() {
|
|
|
217611
217611
|
installations.push({ type: "npm-local", path: localPath });
|
|
217612
217612
|
}
|
|
217613
217613
|
const packagesToCheck = ["@theus-ai/theus-code"];
|
|
217614
|
-
if ({ VERSION: "0.2.
|
|
217615
|
-
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);
|
|
217616
217616
|
}
|
|
217617
217617
|
const npmResult = await execFileNoThrow("npm", [
|
|
217618
217618
|
"-g",
|
|
@@ -217795,7 +217795,7 @@ function detectLinuxGlobPatternWarnings() {
|
|
|
217795
217795
|
}
|
|
217796
217796
|
async function getDoctorDiagnostic() {
|
|
217797
217797
|
const installationType = await getCurrentInstallationType();
|
|
217798
|
-
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";
|
|
217799
217799
|
const installationPath = await getInstallationPath();
|
|
217800
217800
|
const invokedBinary = getInvokedBinary();
|
|
217801
217801
|
const multipleInstallations = await detectMultipleInstallations();
|
|
@@ -217807,8 +217807,8 @@ async function getDoctorDiagnostic() {
|
|
|
217807
217807
|
for (const install of npmInstalls) {
|
|
217808
217808
|
if (install.type === "npm-global") {
|
|
217809
217809
|
let uninstallCmd = "npm -g uninstall @theus-ai/theus-code";
|
|
217810
|
-
if ({ VERSION: "0.2.
|
|
217811
|
-
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}`;
|
|
217812
217812
|
}
|
|
217813
217813
|
warnings.push({
|
|
217814
217814
|
issue: `Leftover npm global installation at ${install.path}`,
|
|
@@ -217920,7 +217920,7 @@ async function getLatestVersionFromArtifactory(tag2 = "latest") {
|
|
|
217920
217920
|
const startTime2 = Date.now();
|
|
217921
217921
|
const { stdout, code, stderr } = await execFileNoThrowWithCwd("npm", [
|
|
217922
217922
|
"view",
|
|
217923
|
-
`${{ 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}`,
|
|
217924
217924
|
"version",
|
|
217925
217925
|
"--prefer-online",
|
|
217926
217926
|
"--registry",
|
|
@@ -217944,7 +217944,7 @@ async function getLatestVersionFromArtifactory(tag2 = "latest") {
|
|
|
217944
217944
|
latency_ms: latencyMs,
|
|
217945
217945
|
source_npm: true
|
|
217946
217946
|
});
|
|
217947
|
-
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}`);
|
|
217948
217948
|
const latestVersion = stdout.trim();
|
|
217949
217949
|
return latestVersion;
|
|
217950
217950
|
}
|
|
@@ -218000,7 +218000,7 @@ async function downloadVersionFromArtifactory(version2, stagingPath) {
|
|
|
218000
218000
|
const fs3 = getFsImplementation();
|
|
218001
218001
|
await fs3.rm(stagingPath, { recursive: true, force: true });
|
|
218002
218002
|
const platform4 = getPlatform2();
|
|
218003
|
-
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}`;
|
|
218004
218004
|
logForDebugging(`Fetching integrity hash for ${platformPackageName}@${version2}`);
|
|
218005
218005
|
const {
|
|
218006
218006
|
stdout: integrityOutput,
|
|
@@ -218029,7 +218029,7 @@ async function downloadVersionFromArtifactory(version2, stagingPath) {
|
|
|
218029
218029
|
name: "theus-native-installer",
|
|
218030
218030
|
version: "0.0.1",
|
|
218031
218031
|
dependencies: {
|
|
218032
|
-
[{ 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
|
|
218033
218033
|
}
|
|
218034
218034
|
};
|
|
218035
218035
|
const packageLock = {
|
|
@@ -218042,10 +218042,10 @@ async function downloadVersionFromArtifactory(version2, stagingPath) {
|
|
|
218042
218042
|
name: "theus-native-installer",
|
|
218043
218043
|
version: "0.0.1",
|
|
218044
218044
|
dependencies: {
|
|
218045
|
-
[{ 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
|
|
218046
218046
|
}
|
|
218047
218047
|
},
|
|
218048
|
-
[`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}`]: {
|
|
218049
218049
|
version: version2,
|
|
218050
218050
|
optionalDependencies: {
|
|
218051
218051
|
[platformPackageName]: version2
|
|
@@ -218067,7 +218067,7 @@ async function downloadVersionFromArtifactory(version2, stagingPath) {
|
|
|
218067
218067
|
if (result.code !== 0) {
|
|
218068
218068
|
throw new Error(`npm ci failed with code ${result.code}: ${result.stderr}`);
|
|
218069
218069
|
}
|
|
218070
|
-
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}`);
|
|
218071
218071
|
}
|
|
218072
218072
|
function getStallTimeoutMs() {
|
|
218073
218073
|
return Number(process.env.THEUS_CODE_STALL_TIMEOUT_MS_FOR_TESTING) || DEFAULT_STALL_TIMEOUT_MS;
|
|
@@ -218730,8 +218730,8 @@ async function updateLatest(channelOrVersion, forceReinstall = false) {
|
|
|
218730
218730
|
const maxVersion = await getMaxVersion();
|
|
218731
218731
|
if (maxVersion && gt(version2, maxVersion)) {
|
|
218732
218732
|
logForDebugging(`Native installer: maxVersion ${maxVersion} is set, capping update from ${version2} to ${maxVersion}`);
|
|
218733
|
-
if (gte({ VERSION: "0.2.
|
|
218734
|
-
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`);
|
|
218735
218735
|
logEvent("tengu_native_update_skipped_max_version", {
|
|
218736
218736
|
latency_ms: Date.now() - startTime2,
|
|
218737
218737
|
max_version: maxVersion,
|
|
@@ -218742,7 +218742,7 @@ async function updateLatest(channelOrVersion, forceReinstall = false) {
|
|
|
218742
218742
|
version2 = maxVersion;
|
|
218743
218743
|
}
|
|
218744
218744
|
}
|
|
218745
|
-
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)) {
|
|
218746
218746
|
logForDebugging(`Found ${version2} at ${executablePath}, skipping install`);
|
|
218747
218747
|
logEvent("tengu_native_update_complete", {
|
|
218748
218748
|
latency_ms: Date.now() - startTime2,
|
|
@@ -219492,8 +219492,8 @@ async function cleanupNpmInstallations() {
|
|
|
219492
219492
|
} else if (codePackageResult.error) {
|
|
219493
219493
|
errors4.push(codePackageResult.error);
|
|
219494
219494
|
}
|
|
219495
|
-
if ({ VERSION: "0.2.
|
|
219496
|
-
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);
|
|
219497
219497
|
if (macroPackageResult.success) {
|
|
219498
219498
|
removed++;
|
|
219499
219499
|
if (macroPackageResult.warning) {
|
|
@@ -300425,9 +300425,9 @@ function getTheusEnvMetadata() {
|
|
|
300425
300425
|
};
|
|
300426
300426
|
}
|
|
300427
300427
|
function getBuildAgeMinutes() {
|
|
300428
|
-
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)
|
|
300429
300429
|
return;
|
|
300430
|
-
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();
|
|
300431
300431
|
if (isNaN(buildTime))
|
|
300432
300432
|
return;
|
|
300433
300433
|
return Math.floor((Date.now() - buildTime) / 60000);
|
|
@@ -316669,7 +316669,7 @@ function getAssistantMessageFromError(error40, model, options2) {
|
|
|
316669
316669
|
if (process.env.USER_TYPE === "ant") {
|
|
316670
316670
|
const baseMessage = `API Error: 400 ${error40.message}
|
|
316671
316671
|
|
|
316672
|
-
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}.`;
|
|
316673
316673
|
const rewindInstruction = getIsNonInteractiveSession() ? "" : " Then, use /rewind to recover the conversation.";
|
|
316674
316674
|
return createAssistantAPIErrorMessage({
|
|
316675
316675
|
content: baseMessage + rewindInstruction,
|
|
@@ -316705,7 +316705,7 @@ Run /share and post the JSON file to ${{ VERSION: "0.2.20", BUILD_TIME: "1970-01
|
|
|
316705
316705
|
if (process.env.USER_TYPE === "ant" && !process.env.THEUS_MODEL && error40 instanceof Error && error40.message.toLowerCase().includes("invalid model name")) {
|
|
316706
316706
|
const orgId = getOauthAccountInfo()?.organizationUuid;
|
|
316707
316707
|
const baseMsg = `[THEUS-INTERNAL] Your org isn't gated into the \`${model}\` model. Either run \`theus\` with \`THEUS_MODEL=${getDefaultMainLoopModelSetting()}\``;
|
|
316708
|
-
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.`;
|
|
316709
316709
|
return createAssistantAPIErrorMessage({
|
|
316710
316710
|
content: msg,
|
|
316711
316711
|
error: "invalid_request"
|
|
@@ -326805,7 +326805,7 @@ function buildPrimarySection() {
|
|
|
326805
326805
|
});
|
|
326806
326806
|
return [{
|
|
326807
326807
|
label: "Version",
|
|
326808
|
-
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
|
|
326809
326809
|
}, {
|
|
326810
326810
|
label: "Session name",
|
|
326811
326811
|
value: nameValue
|
|
@@ -327641,7 +327641,7 @@ function getEffortNotificationText(effortValue, model) {
|
|
|
327641
327641
|
if (!modelSupportsEffort(model))
|
|
327642
327642
|
return;
|
|
327643
327643
|
const level = getDisplayedEffortLevel(model, effortValue);
|
|
327644
|
-
return `${effortLevelToSymbol(level)} ${level} \xB7 /
|
|
327644
|
+
return `${effortLevelToSymbol(level)} ${getEffortLevelLabelEs(level)} \xB7 /inteligencia`;
|
|
327645
327645
|
}
|
|
327646
327646
|
function effortLevelToSymbol(level) {
|
|
327647
327647
|
switch (level) {
|
|
@@ -328012,13 +328012,13 @@ function ModelPicker(t0) {
|
|
|
328012
328012
|
effort: displayEffort
|
|
328013
328013
|
}),
|
|
328014
328014
|
" ",
|
|
328015
|
-
capitalize_default(displayEffort),
|
|
328016
|
-
"
|
|
328017
|
-
displayEffort === focusedDefaultEffort ? " (
|
|
328015
|
+
capitalize_default(getEffortLevelLabelEs(displayEffort)),
|
|
328016
|
+
" inteligencia",
|
|
328017
|
+
displayEffort === focusedDefaultEffort ? " (por defecto)" : "",
|
|
328018
328018
|
" ",
|
|
328019
328019
|
/* @__PURE__ */ jsx_runtime179.jsx(ThemedText, {
|
|
328020
328020
|
color: "subtle",
|
|
328021
|
-
children: "\u2190 \u2192
|
|
328021
|
+
children: "\u2190 \u2192 para ajustar"
|
|
328022
328022
|
})
|
|
328023
328023
|
]
|
|
328024
328024
|
}) : /* @__PURE__ */ jsx_runtime179.jsxs(ThemedText, {
|
|
@@ -328027,8 +328027,8 @@ function ModelPicker(t0) {
|
|
|
328027
328027
|
/* @__PURE__ */ jsx_runtime179.jsx(EffortLevelIndicator, {
|
|
328028
328028
|
effort: undefined
|
|
328029
328029
|
}),
|
|
328030
|
-
"
|
|
328031
|
-
focusedModelName ? `
|
|
328030
|
+
" Inteligencia no disponible",
|
|
328031
|
+
focusedModelName ? ` para ${focusedModelName}` : ""
|
|
328032
328032
|
]
|
|
328033
328033
|
})
|
|
328034
328034
|
});
|
|
@@ -330621,7 +330621,7 @@ function Config({
|
|
|
330621
330621
|
}
|
|
330622
330622
|
})
|
|
330623
330623
|
}) : showSubmenu === "ChannelDowngrade" ? /* @__PURE__ */ jsx_runtime185.jsx(ChannelDowngradeDialog, {
|
|
330624
|
-
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,
|
|
330625
330625
|
onChoice: (choice) => {
|
|
330626
330626
|
setShowSubmenu(null);
|
|
330627
330627
|
setTabsHidden(false);
|
|
@@ -330633,7 +330633,7 @@ function Config({
|
|
|
330633
330633
|
autoUpdatesChannel: "stable"
|
|
330634
330634
|
};
|
|
330635
330635
|
if (choice === "stay") {
|
|
330636
|
-
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;
|
|
330637
330637
|
}
|
|
330638
330638
|
updateSettingsForSource("userSettings", newSettings);
|
|
330639
330639
|
setSettingsData((prev_27) => ({
|
|
@@ -338667,7 +338667,7 @@ function HelpV2(t0) {
|
|
|
338667
338667
|
let t6;
|
|
338668
338668
|
if ($2[31] !== tabs) {
|
|
338669
338669
|
t6 = /* @__PURE__ */ jsx_runtime212.jsx(Tabs, {
|
|
338670
|
-
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}`,
|
|
338671
338671
|
color: "professionalBlue",
|
|
338672
338672
|
defaultTab: "general",
|
|
338673
338673
|
children: tabs
|
|
@@ -355391,6 +355391,15 @@ var init_mcp3 = __esm(() => {
|
|
|
355391
355391
|
var NOVEDADES;
|
|
355392
355392
|
var init_data = __esm(() => {
|
|
355393
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
|
+
},
|
|
355394
355403
|
{
|
|
355395
355404
|
version: "v0.2.20",
|
|
355396
355405
|
fecha: "2026-07-12",
|
|
@@ -356428,9 +356437,9 @@ function getAllReleaseNotes(changelogContent = getStoredChangelogFromMemory()) {
|
|
|
356428
356437
|
return [];
|
|
356429
356438
|
}
|
|
356430
356439
|
}
|
|
356431
|
-
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) {
|
|
356432
356441
|
if (process.env.USER_TYPE === "ant") {
|
|
356433
|
-
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;
|
|
356434
356443
|
if (changelog) {
|
|
356435
356444
|
const commits = changelog.trim().split(`
|
|
356436
356445
|
`).filter(Boolean);
|
|
@@ -360832,7 +360841,7 @@ var init_Messages = __esm(() => {
|
|
|
360832
360841
|
let t1;
|
|
360833
360842
|
if ($2[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
360834
360843
|
t1 = /* @__PURE__ */ jsx_runtime251.jsx(TheusSessionHeader, {
|
|
360835
|
-
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
|
|
360836
360845
|
});
|
|
360837
360846
|
$2[0] = t1;
|
|
360838
360847
|
} else {
|
|
@@ -388507,7 +388516,7 @@ async function captureMemoryDiagnostics(trigger, dumpNumber = 0) {
|
|
|
388507
388516
|
smapsRollup,
|
|
388508
388517
|
platform: process.platform,
|
|
388509
388518
|
nodeVersion: process.version,
|
|
388510
|
-
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
|
|
388511
388520
|
};
|
|
388512
388521
|
}
|
|
388513
388522
|
async function performHeapDump(trigger = "manual", dumpNumber = 0) {
|
|
@@ -389093,7 +389102,7 @@ var init_bridge_kick = __esm(() => {
|
|
|
389093
389102
|
var call55 = async () => {
|
|
389094
389103
|
return {
|
|
389095
389104
|
type: "text",
|
|
389096
|
-
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
|
|
389097
389106
|
};
|
|
389098
389107
|
}, version2, version_default;
|
|
389099
389108
|
var init_version = __esm(() => {
|
|
@@ -393535,13 +393544,13 @@ async function updateReleaseBundle() {
|
|
|
393535
393544
|
await gracefulShutdown(1);
|
|
393536
393545
|
return;
|
|
393537
393546
|
}
|
|
393538
|
-
if (gte({ VERSION: "0.2.
|
|
393539
|
-
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})`) + `
|
|
393540
393549
|
`);
|
|
393541
393550
|
await gracefulShutdown(0);
|
|
393542
393551
|
return;
|
|
393543
393552
|
}
|
|
393544
|
-
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})
|
|
393545
393554
|
`);
|
|
393546
393555
|
writeToStdout(`Installing update from theus.pe/dl...
|
|
393547
393556
|
`);
|
|
@@ -393575,7 +393584,7 @@ async function updateReleaseBundle() {
|
|
|
393575
393584
|
return;
|
|
393576
393585
|
}
|
|
393577
393586
|
cpSync(staged, bundleDir, { recursive: true, force: true });
|
|
393578
|
-
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}`) + `
|
|
393579
393588
|
`);
|
|
393580
393589
|
await regenerateCompletionCache();
|
|
393581
393590
|
} finally {
|
|
@@ -393588,7 +393597,7 @@ async function updateReleaseBundle() {
|
|
|
393588
393597
|
async function update() {
|
|
393589
393598
|
logEvent("tengu_update_check", {});
|
|
393590
393599
|
await updateNaupa();
|
|
393591
|
-
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}
|
|
393592
393601
|
`);
|
|
393593
393602
|
const channel2 = getInitialSettings()?.autoUpdatesChannel ?? "latest";
|
|
393594
393603
|
writeToStdout(`Checking for updates to ${channel2} version...
|
|
@@ -393667,8 +393676,8 @@ async function update() {
|
|
|
393667
393676
|
writeToStdout(`Theus is managed by Homebrew.
|
|
393668
393677
|
`);
|
|
393669
393678
|
const latest = await getLatestVersion(channel2);
|
|
393670
|
-
if (latest && !gte({ VERSION: "0.2.
|
|
393671
|
-
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}
|
|
393672
393681
|
`);
|
|
393673
393682
|
writeToStdout(`
|
|
393674
393683
|
`);
|
|
@@ -393684,8 +393693,8 @@ async function update() {
|
|
|
393684
393693
|
writeToStdout(`Theus is managed by winget.
|
|
393685
393694
|
`);
|
|
393686
393695
|
const latest = await getLatestVersion(channel2);
|
|
393687
|
-
if (latest && !gte({ VERSION: "0.2.
|
|
393688
|
-
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}
|
|
393689
393698
|
`);
|
|
393690
393699
|
writeToStdout(`
|
|
393691
393700
|
`);
|
|
@@ -393701,8 +393710,8 @@ async function update() {
|
|
|
393701
393710
|
writeToStdout(`Theus is managed by apk.
|
|
393702
393711
|
`);
|
|
393703
393712
|
const latest = await getLatestVersion(channel2);
|
|
393704
|
-
if (latest && !gte({ VERSION: "0.2.
|
|
393705
|
-
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}
|
|
393706
393715
|
`);
|
|
393707
393716
|
writeToStdout(`
|
|
393708
393717
|
`);
|
|
@@ -393767,11 +393776,11 @@ async function update() {
|
|
|
393767
393776
|
`);
|
|
393768
393777
|
await gracefulShutdown(1);
|
|
393769
393778
|
}
|
|
393770
|
-
if (result.latestVersion === { VERSION: "0.2.
|
|
393771
|
-
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})`) + `
|
|
393772
393781
|
`);
|
|
393773
393782
|
} else {
|
|
393774
|
-
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}`) + `
|
|
393775
393784
|
`);
|
|
393776
393785
|
await regenerateCompletionCache();
|
|
393777
393786
|
}
|
|
@@ -393790,9 +393799,9 @@ async function update() {
|
|
|
393790
393799
|
await removeInstalledSymlink();
|
|
393791
393800
|
}
|
|
393792
393801
|
logForDebugging("update: Checking npm registry for latest version");
|
|
393793
|
-
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}`);
|
|
393794
393803
|
const npmTag = channel2 === "stable" ? "stable" : "latest";
|
|
393795
|
-
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`;
|
|
393796
393805
|
logForDebugging(`update: Running: ${npmCommand}`);
|
|
393797
393806
|
const latestVersion = await getLatestVersion(channel2);
|
|
393798
393807
|
logForDebugging(`update: Latest version from npm: ${latestVersion || "FAILED"}`);
|
|
@@ -393812,7 +393821,7 @@ async function update() {
|
|
|
393812
393821
|
`);
|
|
393813
393822
|
process.stderr.write(` \u2022 Corporate proxy/firewall blocking npm
|
|
393814
393823
|
`);
|
|
393815
|
-
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")) {
|
|
393816
393825
|
process.stderr.write(` \u2022 Internal/development build not published to npm
|
|
393817
393826
|
`);
|
|
393818
393827
|
}
|
|
@@ -393824,19 +393833,19 @@ async function update() {
|
|
|
393824
393833
|
`);
|
|
393825
393834
|
process.stderr.write(` \u2022 Run with --debug flag for more details
|
|
393826
393835
|
`);
|
|
393827
|
-
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");
|
|
393828
393837
|
process.stderr.write(` \u2022 Manually check: npm view ${packageName} version
|
|
393829
393838
|
`);
|
|
393830
393839
|
process.stderr.write(` \u2022 Check if you need to login: npm whoami
|
|
393831
393840
|
`);
|
|
393832
393841
|
await gracefulShutdown(1);
|
|
393833
393842
|
}
|
|
393834
|
-
if (gte({ VERSION: "0.2.
|
|
393835
|
-
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})`) + `
|
|
393836
393845
|
`);
|
|
393837
393846
|
await gracefulShutdown(0);
|
|
393838
393847
|
}
|
|
393839
|
-
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})
|
|
393840
393849
|
`);
|
|
393841
393850
|
writeToStdout(`Installing update...
|
|
393842
393851
|
`);
|
|
@@ -393881,7 +393890,7 @@ async function update() {
|
|
|
393881
393890
|
logForDebugging(`update: Installation status: ${status2}`);
|
|
393882
393891
|
switch (status2) {
|
|
393883
393892
|
case "success":
|
|
393884
|
-
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}`) + `
|
|
393885
393894
|
`);
|
|
393886
393895
|
await regenerateCompletionCache();
|
|
393887
393896
|
break;
|
|
@@ -393891,7 +393900,7 @@ async function update() {
|
|
|
393891
393900
|
if (useLocalUpdate) {
|
|
393892
393901
|
process.stderr.write(`Try manually updating with:
|
|
393893
393902
|
`);
|
|
393894
|
-
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}
|
|
393895
393904
|
`);
|
|
393896
393905
|
} else {
|
|
393897
393906
|
process.stderr.write(`Try running with sudo or fix npm permissions
|
|
@@ -393907,7 +393916,7 @@ async function update() {
|
|
|
393907
393916
|
if (useLocalUpdate) {
|
|
393908
393917
|
process.stderr.write(`Try manually updating with:
|
|
393909
393918
|
`);
|
|
393910
|
-
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}
|
|
393911
393920
|
`);
|
|
393912
393921
|
} else {
|
|
393913
393922
|
process.stderr.write(`Or consider using native installation with: theus install
|
|
@@ -400813,7 +400822,7 @@ var init_sessionStorage = __esm(() => {
|
|
|
400813
400822
|
init_settings2();
|
|
400814
400823
|
init_slowOperations();
|
|
400815
400824
|
init_uuid();
|
|
400816
|
-
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;
|
|
400817
400826
|
MAX_TOMBSTONE_REWRITE_BYTES = 50 * 1024 * 1024;
|
|
400818
400827
|
SKIP_FIRST_PROMPT_PATTERN = /^(?:\s*<[a-z][\w-]*[\s>]|\[Request interrupted by user[^\]]*\])/;
|
|
400819
400828
|
EPHEMERAL_PROGRESS_TYPES = new Set([
|
|
@@ -402018,7 +402027,7 @@ var init_filesystem = __esm(() => {
|
|
|
402018
402027
|
});
|
|
402019
402028
|
getBundledSkillsRoot = memoize_default(function getBundledSkillsRoot2() {
|
|
402020
402029
|
const nonce = randomBytes21(16).toString("hex");
|
|
402021
|
-
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);
|
|
402022
402031
|
});
|
|
402023
402032
|
getResolvedWorkingDirPaths = memoize_default(getPathsForPermissionCheck);
|
|
402024
402033
|
});
|
|
@@ -407193,7 +407202,7 @@ function getSimpleDoingTasksSection() {
|
|
|
407193
407202
|
];
|
|
407194
407203
|
const userHelpSubitems = [
|
|
407195
407204
|
`/help: Get help with using Theus`,
|
|
407196
|
-
`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}`
|
|
407197
407206
|
];
|
|
407198
407207
|
const items = [
|
|
407199
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.`,
|
|
@@ -408016,7 +408025,7 @@ function computeFingerprint(messageText, version3) {
|
|
|
408016
408025
|
}
|
|
408017
408026
|
function computeFingerprintFromMessages(messages) {
|
|
408018
408027
|
const firstMessageText = extractFirstMessageText(messages);
|
|
408019
|
-
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);
|
|
408020
408029
|
}
|
|
408021
408030
|
var FINGERPRINT_SALT = "59cf53e54c78";
|
|
408022
408031
|
var init_fingerprint = () => {};
|
|
@@ -410564,7 +410573,7 @@ async function sideQuery(opts) {
|
|
|
410564
410573
|
betas.push(STRUCTURED_OUTPUTS_BETA_HEADER);
|
|
410565
410574
|
}
|
|
410566
410575
|
const messageText = extractFirstUserMessageText(messages);
|
|
410567
|
-
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);
|
|
410568
410577
|
const attributionHeader = getAttributionHeader(fingerprint);
|
|
410569
410578
|
const systemBlocks = [
|
|
410570
410579
|
attributionHeader ? { type: "text", text: attributionHeader } : null,
|
|
@@ -411867,7 +411876,7 @@ async function handleMemories(state) {
|
|
|
411867
411876
|
async function runProjectContextMcpServer() {
|
|
411868
411877
|
const projectRoot = process.env.THEUS_PROJECT_ROOT || process.cwd();
|
|
411869
411878
|
const state = new ProjectContextState(projectRoot);
|
|
411870
|
-
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: {} } });
|
|
411871
411880
|
server2.setRequestHandler(ListToolsRequestSchema, async () => ({
|
|
411872
411881
|
tools: TOOL_DEFINITIONS.map((t) => ({
|
|
411873
411882
|
name: t.name,
|
|
@@ -413847,7 +413856,7 @@ function createBridgeLogger(options2) {
|
|
|
413847
413856
|
connectUrl = buildBridgeConnectUrl(environmentId, cachedIngressUrl);
|
|
413848
413857
|
regenerateQr(connectUrl);
|
|
413849
413858
|
if (verbose) {
|
|
413850
|
-
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}
|
|
413851
413860
|
`);
|
|
413852
413861
|
}
|
|
413853
413862
|
if (verbose) {
|
|
@@ -414820,7 +414829,7 @@ function appendToLog(path19, message) {
|
|
|
414820
414829
|
cwd: getFsImplementation().cwd(),
|
|
414821
414830
|
userType: process.env.USER_TYPE,
|
|
414822
414831
|
sessionId: getSessionId(),
|
|
414823
|
-
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
|
|
414824
414833
|
};
|
|
414825
414834
|
getLogWriter(path19).write(messageWithTimestamp);
|
|
414826
414835
|
}
|
|
@@ -416090,7 +416099,7 @@ Spawn mode for this project:
|
|
|
416090
416099
|
const api2 = createBridgeApiClient({
|
|
416091
416100
|
baseUrl,
|
|
416092
416101
|
getAccessToken: getBridgeAccessToken2,
|
|
416093
|
-
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,
|
|
416094
416103
|
onDebug: logForDebugging,
|
|
416095
416104
|
onAuth401: handleOAuth401Error2,
|
|
416096
416105
|
getTrustedDeviceToken
|
|
@@ -416328,7 +416337,7 @@ async function runBridgeHeadless(opts, signal) {
|
|
|
416328
416337
|
const api2 = createBridgeApiClient({
|
|
416329
416338
|
baseUrl,
|
|
416330
416339
|
getAccessToken: opts.getAccessToken,
|
|
416331
|
-
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,
|
|
416332
416341
|
onDebug: log2,
|
|
416333
416342
|
onAuth401: opts.onAuth401,
|
|
416334
416343
|
getTrustedDeviceToken
|
|
@@ -420392,7 +420401,7 @@ function buildSystemInitMessage(inputs) {
|
|
|
420392
420401
|
slash_commands: inputs.commands.filter((c5) => c5.userInvocable !== false).map((c5) => c5.name),
|
|
420393
420402
|
apiKeySource: getTheusApiKeyWithSource().source,
|
|
420394
420403
|
betas: getSdkBetas(),
|
|
420395
|
-
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,
|
|
420396
420405
|
output_style: outputStyle2,
|
|
420397
420406
|
agents: inputs.agents.map((agent) => agent.agentType),
|
|
420398
420407
|
skills: inputs.skills.filter((s) => s.userInvocable !== false).map((skill) => skill.name),
|
|
@@ -420432,8 +420441,8 @@ async function getEnvLessBridgeConfig() {
|
|
|
420432
420441
|
}
|
|
420433
420442
|
async function checkEnvLessBridgeMinVersion() {
|
|
420434
420443
|
const cfg = await getEnvLessBridgeConfig();
|
|
420435
|
-
if (cfg.min_version && lt({ VERSION: "0.2.
|
|
420436
|
-
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.
|
|
420437
420446
|
Version ${cfg.min_version} or higher is required. Run \`theus update\` to update.`;
|
|
420438
420447
|
}
|
|
420439
420448
|
return null;
|
|
@@ -422756,7 +422765,7 @@ async function initBridgeCore(params) {
|
|
|
422756
422765
|
const rawApi = createBridgeApiClient({
|
|
422757
422766
|
baseUrl,
|
|
422758
422767
|
getAccessToken,
|
|
422759
|
-
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,
|
|
422760
422769
|
onDebug: logForDebugging,
|
|
422761
422770
|
onAuth401,
|
|
422762
422771
|
getTrustedDeviceToken
|
|
@@ -439845,7 +439854,7 @@ var init_useVoiceEnabled = __esm(() => {
|
|
|
439845
439854
|
function getSemverPart(version3) {
|
|
439846
439855
|
return `${import_semver14.major(version3, { loose: true })}.${import_semver14.minor(version3, { loose: true })}.${import_semver14.patch(version3, { loose: true })}`;
|
|
439847
439856
|
}
|
|
439848
|
-
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) {
|
|
439849
439858
|
const [lastNotifiedSemver, setLastNotifiedSemver] = import_react219.useState(() => getSemverPart(initialVersion));
|
|
439850
439859
|
if (!updatedVersion) {
|
|
439851
439860
|
return null;
|
|
@@ -439885,7 +439894,7 @@ function AutoUpdater({
|
|
|
439885
439894
|
return;
|
|
439886
439895
|
}
|
|
439887
439896
|
if (false) {}
|
|
439888
|
-
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;
|
|
439889
439898
|
const channel2 = getInitialSettings()?.autoUpdatesChannel ?? "latest";
|
|
439890
439899
|
let latestVersion = await getLatestVersion(channel2);
|
|
439891
439900
|
const isDisabled2 = isAutoUpdaterDisabled();
|
|
@@ -440021,7 +440030,7 @@ function AutoUpdater({
|
|
|
440021
440030
|
" ",
|
|
440022
440031
|
/* @__PURE__ */ jsx_runtime390.jsx(ThemedText, {
|
|
440023
440032
|
bold: true,
|
|
440024
|
-
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}`
|
|
440025
440034
|
})
|
|
440026
440035
|
]
|
|
440027
440036
|
})
|
|
@@ -440098,12 +440107,12 @@ function NativeAutoUpdater({
|
|
|
440098
440107
|
logEvent("tengu_native_auto_updater_start", {});
|
|
440099
440108
|
try {
|
|
440100
440109
|
const maxVersion = await getMaxVersion();
|
|
440101
|
-
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)) {
|
|
440102
440111
|
const msg = await getMaxVersionMessage();
|
|
440103
440112
|
setMaxVersionIssue(msg ?? "affects your version");
|
|
440104
440113
|
}
|
|
440105
440114
|
const result = await installLatest(channel2);
|
|
440106
|
-
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;
|
|
440107
440116
|
const latencyMs = Date.now() - startTime2;
|
|
440108
440117
|
if (result.lockFailed) {
|
|
440109
440118
|
logEvent("tengu_native_auto_updater_lock_contention", {
|
|
@@ -440240,17 +440249,17 @@ function PackageManagerAutoUpdater(t0) {
|
|
|
440240
440249
|
const maxVersion = await getMaxVersion();
|
|
440241
440250
|
if (maxVersion && latest && gt(latest, maxVersion)) {
|
|
440242
440251
|
logForDebugging(`PackageManagerAutoUpdater: maxVersion ${maxVersion} is set, capping update from ${latest} to ${maxVersion}`);
|
|
440243
|
-
if (gte({ VERSION: "0.2.
|
|
440244
|
-
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`);
|
|
440245
440254
|
setUpdateAvailable(false);
|
|
440246
440255
|
return;
|
|
440247
440256
|
}
|
|
440248
440257
|
latest = maxVersion;
|
|
440249
440258
|
}
|
|
440250
|
-
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);
|
|
440251
440260
|
setUpdateAvailable(!!hasUpdate);
|
|
440252
440261
|
if (hasUpdate) {
|
|
440253
|
-
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}`);
|
|
440254
440263
|
}
|
|
440255
440264
|
};
|
|
440256
440265
|
$2[0] = t1;
|
|
@@ -440284,7 +440293,7 @@ function PackageManagerAutoUpdater(t0) {
|
|
|
440284
440293
|
wrap: "truncate",
|
|
440285
440294
|
children: [
|
|
440286
440295
|
"currentVersion: ",
|
|
440287
|
-
{ 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
|
|
440288
440297
|
]
|
|
440289
440298
|
});
|
|
440290
440299
|
$2[3] = verbose;
|
|
@@ -448157,7 +448166,7 @@ function buildStatusLineCommandInput(permissionMode, exceeds200kTokens, settings
|
|
|
448157
448166
|
project_dir: getOriginalCwd(),
|
|
448158
448167
|
added_dirs: addedDirs
|
|
448159
448168
|
},
|
|
448160
|
-
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,
|
|
448161
448170
|
output_style: {
|
|
448162
448171
|
name: outputStyleName
|
|
448163
448172
|
},
|
|
@@ -459130,19 +459139,19 @@ function EffortCallout(t0) {
|
|
|
459130
459139
|
t9 = [{
|
|
459131
459140
|
label: /* @__PURE__ */ jsx_runtime430.jsx(EffortOptionLabel, {
|
|
459132
459141
|
level: "medium",
|
|
459133
|
-
text: "
|
|
459142
|
+
text: "Media (recomendada)"
|
|
459134
459143
|
}),
|
|
459135
459144
|
value: "medium"
|
|
459136
459145
|
}, {
|
|
459137
459146
|
label: /* @__PURE__ */ jsx_runtime430.jsx(EffortOptionLabel, {
|
|
459138
459147
|
level: "high",
|
|
459139
|
-
text: "
|
|
459148
|
+
text: "Alta"
|
|
459140
459149
|
}),
|
|
459141
459150
|
value: "high"
|
|
459142
459151
|
}, {
|
|
459143
459152
|
label: /* @__PURE__ */ jsx_runtime430.jsx(EffortOptionLabel, {
|
|
459144
459153
|
level: "low",
|
|
459145
|
-
text: "
|
|
459154
|
+
text: "Baja"
|
|
459146
459155
|
}),
|
|
459147
459156
|
value: "low"
|
|
459148
459157
|
}];
|
|
@@ -459190,17 +459199,17 @@ function EffortCallout(t0) {
|
|
|
459190
459199
|
dimColor: true,
|
|
459191
459200
|
children: [
|
|
459192
459201
|
t11,
|
|
459193
|
-
"
|
|
459202
|
+
" baja ",
|
|
459194
459203
|
"\xB7",
|
|
459195
459204
|
" ",
|
|
459196
459205
|
t12,
|
|
459197
|
-
"
|
|
459206
|
+
" media ",
|
|
459198
459207
|
"\xB7",
|
|
459199
459208
|
" ",
|
|
459200
459209
|
/* @__PURE__ */ jsx_runtime430.jsx(EffortIndicatorSymbol, {
|
|
459201
459210
|
level: "high"
|
|
459202
459211
|
}),
|
|
459203
|
-
"
|
|
459212
|
+
" alta"
|
|
459204
459213
|
]
|
|
459205
459214
|
})
|
|
459206
459215
|
});
|
|
@@ -459503,7 +459512,7 @@ async function submitTranscriptShare(messages, trigger, appearanceId) {
|
|
|
459503
459512
|
} catch {}
|
|
459504
459513
|
const data = {
|
|
459505
459514
|
trigger,
|
|
459506
|
-
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,
|
|
459507
459516
|
platform: process.platform,
|
|
459508
459517
|
transcript,
|
|
459509
459518
|
subagentTranscripts: Object.keys(subagentTranscripts).length > 0 ? subagentTranscripts : undefined,
|
|
@@ -472454,7 +472463,7 @@ function Onboarding({
|
|
|
472454
472463
|
flexDirection: "column",
|
|
472455
472464
|
children: [
|
|
472456
472465
|
/* @__PURE__ */ jsx_runtime465.jsx(TheusBanner, {
|
|
472457
|
-
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
|
|
472458
472467
|
}),
|
|
472459
472468
|
/* @__PURE__ */ jsx_runtime465.jsxs(ThemedBox_default, {
|
|
472460
472469
|
flexDirection: "column",
|
|
@@ -473325,7 +473334,7 @@ function completeOnboarding() {
|
|
|
473325
473334
|
saveGlobalConfig((current) => ({
|
|
473326
473335
|
...current,
|
|
473327
473336
|
hasCompletedOnboarding: true,
|
|
473328
|
-
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
|
|
473329
473338
|
}));
|
|
473330
473339
|
}
|
|
473331
473340
|
function showDialog(root2, renderer) {
|
|
@@ -484053,7 +484062,7 @@ async function startMCPServer(cwd3, debug2, verbose) {
|
|
|
484053
484062
|
setCwd(cwd3);
|
|
484054
484063
|
const server2 = new Server({
|
|
484055
484064
|
name: "theus/tengu",
|
|
484056
|
-
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
|
|
484057
484066
|
}, {
|
|
484058
484067
|
capabilities: {
|
|
484059
484068
|
tools: {}
|
|
@@ -485495,7 +485504,7 @@ async function setupTokenHandler(root2) {
|
|
|
485495
485504
|
gap: 1,
|
|
485496
485505
|
children: [
|
|
485497
485506
|
/* @__PURE__ */ jsx_runtime482.jsx(TheusBanner, {
|
|
485498
|
-
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
|
|
485499
485508
|
}),
|
|
485500
485509
|
showAuthWarning && /* @__PURE__ */ jsx_runtime482.jsxs(ThemedBox_default, {
|
|
485501
485510
|
flexDirection: "column",
|
|
@@ -486918,7 +486927,7 @@ ${customInstructions}` : customInstructions;
|
|
|
486918
486927
|
}
|
|
486919
486928
|
}
|
|
486920
486929
|
logForDiagnosticsNoPII("info", "started", {
|
|
486921
|
-
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,
|
|
486922
486931
|
is_native_binary: isInBundledMode()
|
|
486923
486932
|
});
|
|
486924
486933
|
registerCleanup(async () => {
|
|
@@ -487702,7 +487711,7 @@ Usage: theus --remote "your task description"`, () => gracefulShutdown(1));
|
|
|
487702
487711
|
pendingHookMessages
|
|
487703
487712
|
}, renderAndRun);
|
|
487704
487713
|
}
|
|
487705
|
-
}).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");
|
|
487706
487715
|
program2.option("-w, --worktree [name]", "Crea un nuevo worktree de git para esta sesi\xF3n (opcionalmente indica un nombre)");
|
|
487707
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.");
|
|
487708
487717
|
if (canUserConfigureAdvisor()) {
|
|
@@ -488228,7 +488237,7 @@ if (false) {}
|
|
|
488228
488237
|
async function main2() {
|
|
488229
488238
|
const args = process.argv.slice(2);
|
|
488230
488239
|
if (args.length === 1 && (args[0] === "--version" || args[0] === "-v" || args[0] === "-V")) {
|
|
488231
|
-
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)`);
|
|
488232
488241
|
return;
|
|
488233
488242
|
}
|
|
488234
488243
|
const {
|