theus-cli 0.2.25 → 0.2.26
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 +174 -165
- package/package.json +1 -1
package/cli.js
CHANGED
|
@@ -58318,7 +58318,7 @@ async function _executeApiKeyHelper(isNonInteractiveSession) {
|
|
|
58318
58318
|
if (isApiKeyHelperFromProjectOrLocalSettings()) {
|
|
58319
58319
|
const hasTrust = checkHasTrustDialogAccepted();
|
|
58320
58320
|
if (!hasTrust && !isNonInteractiveSession) {
|
|
58321
|
-
const error40 = new Error(`Security: apiKeyHelper executed before workspace trust is confirmed. If you see this message, post in ${{ VERSION: "0.2.
|
|
58321
|
+
const error40 = new Error(`Security: apiKeyHelper executed before workspace trust is confirmed. If you see this message, post in ${{ VERSION: "0.2.26", BUILD_TIME: "1970-01-01T00:00:00.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}.`);
|
|
58322
58322
|
logAntError("apiKeyHelper invoked before trust check", error40);
|
|
58323
58323
|
logEvent("tengu_apiKeyHelper_missing_trust11", {});
|
|
58324
58324
|
return null;
|
|
@@ -58362,7 +58362,7 @@ async function runAwsAuthRefresh() {
|
|
|
58362
58362
|
if (isAwsAuthRefreshFromProjectSettings()) {
|
|
58363
58363
|
const hasTrust = checkHasTrustDialogAccepted();
|
|
58364
58364
|
if (!hasTrust && !getIsNonInteractiveSession()) {
|
|
58365
|
-
const error40 = new Error(`Security: awsAuthRefresh executed before workspace trust is confirmed. If you see this message, post in ${{ VERSION: "0.2.
|
|
58365
|
+
const error40 = new Error(`Security: awsAuthRefresh executed before workspace trust is confirmed. If you see this message, post in ${{ VERSION: "0.2.26", BUILD_TIME: "1970-01-01T00:00:00.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}.`);
|
|
58366
58366
|
logAntError("awsAuthRefresh invoked before trust check", error40);
|
|
58367
58367
|
logEvent("tengu_awsAuthRefresh_missing_trust", {});
|
|
58368
58368
|
return false;
|
|
@@ -58422,7 +58422,7 @@ async function getAwsCredsFromCredentialExport() {
|
|
|
58422
58422
|
if (isAwsCredentialExportFromProjectSettings()) {
|
|
58423
58423
|
const hasTrust = checkHasTrustDialogAccepted();
|
|
58424
58424
|
if (!hasTrust && !getIsNonInteractiveSession()) {
|
|
58425
|
-
const error40 = new Error(`Security: awsCredentialExport executed before workspace trust is confirmed. If you see this message, post in ${{ VERSION: "0.2.
|
|
58425
|
+
const error40 = new Error(`Security: awsCredentialExport executed before workspace trust is confirmed. If you see this message, post in ${{ VERSION: "0.2.26", BUILD_TIME: "1970-01-01T00:00:00.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}.`);
|
|
58426
58426
|
logAntError("awsCredentialExport invoked before trust check", error40);
|
|
58427
58427
|
logEvent("tengu_awsCredentialExport_missing_trust", {});
|
|
58428
58428
|
return null;
|
|
@@ -58507,7 +58507,7 @@ async function runGcpAuthRefresh() {
|
|
|
58507
58507
|
if (isGcpAuthRefreshFromProjectSettings()) {
|
|
58508
58508
|
const hasTrust = checkHasTrustDialogAccepted();
|
|
58509
58509
|
if (!hasTrust && !getIsNonInteractiveSession()) {
|
|
58510
|
-
const error40 = new Error(`Security: gcpAuthRefresh executed before workspace trust is confirmed. If you see this message, post in ${{ VERSION: "0.2.
|
|
58510
|
+
const error40 = new Error(`Security: gcpAuthRefresh executed before workspace trust is confirmed. If you see this message, post in ${{ VERSION: "0.2.26", BUILD_TIME: "1970-01-01T00:00:00.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}.`);
|
|
58511
58511
|
logAntError("gcpAuthRefresh invoked before trust check", error40);
|
|
58512
58512
|
logEvent("tengu_gcpAuthRefresh_missing_trust", {});
|
|
58513
58513
|
return false;
|
|
@@ -59202,7 +59202,7 @@ var init_auth = __esm(() => {
|
|
|
59202
59202
|
|
|
59203
59203
|
// utils/userAgent.ts
|
|
59204
59204
|
function getTheusCodeUserAgent() {
|
|
59205
|
-
return `theus-code/${{ VERSION: "0.2.
|
|
59205
|
+
return `theus-code/${{ VERSION: "0.2.26", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION}`;
|
|
59206
59206
|
}
|
|
59207
59207
|
|
|
59208
59208
|
// utils/workloadContext.ts
|
|
@@ -59224,7 +59224,7 @@ function getUserAgent() {
|
|
|
59224
59224
|
const clientApp = process.env.THEUS_AGENT_SDK_CLIENT_APP ? `, client-app/${process.env.THEUS_AGENT_SDK_CLIENT_APP}` : "";
|
|
59225
59225
|
const workload = getWorkload();
|
|
59226
59226
|
const workloadSuffix = workload ? `, workload/${workload}` : "";
|
|
59227
|
-
return `theus-cli/${{ VERSION: "0.2.
|
|
59227
|
+
return `theus-cli/${{ VERSION: "0.2.26", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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})`;
|
|
59228
59228
|
}
|
|
59229
59229
|
function getMCPUserAgent() {
|
|
59230
59230
|
const parts = [];
|
|
@@ -59238,7 +59238,7 @@ function getMCPUserAgent() {
|
|
|
59238
59238
|
parts.push(`client-app/${process.env.THEUS_AGENT_SDK_CLIENT_APP}`);
|
|
59239
59239
|
}
|
|
59240
59240
|
const suffix = parts.length > 0 ? ` (${parts.join(", ")})` : "";
|
|
59241
|
-
return `theus-code/${{ VERSION: "0.2.
|
|
59241
|
+
return `theus-code/${{ VERSION: "0.2.26", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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}`;
|
|
59242
59242
|
}
|
|
59243
59243
|
function getWebFetchUserAgent() {
|
|
59244
59244
|
return `Theus-User (${getTheusCodeUserAgent()}; +https://support.theus.pe/)`;
|
|
@@ -59376,7 +59376,7 @@ var init_user = __esm(() => {
|
|
|
59376
59376
|
deviceId,
|
|
59377
59377
|
sessionId: getSessionId(),
|
|
59378
59378
|
email: getEmail(),
|
|
59379
|
-
appVersion: { VERSION: "0.2.
|
|
59379
|
+
appVersion: { VERSION: "0.2.26", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
|
|
59380
59380
|
platform: getHostPlatformForAnalytics(),
|
|
59381
59381
|
organizationUuid,
|
|
59382
59382
|
accountUuid,
|
|
@@ -61091,7 +61091,7 @@ var init_metadata = __esm(() => {
|
|
|
61091
61091
|
COMPOUND_OPERATOR_REGEX = /\s*(?:&&|\|\||[;|])\s*/;
|
|
61092
61092
|
WHITESPACE_REGEX = /\s+/;
|
|
61093
61093
|
getVersionBase = memoize_default(() => {
|
|
61094
|
-
const match = { VERSION: "0.2.
|
|
61094
|
+
const match = { VERSION: "0.2.26", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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]+)?/);
|
|
61095
61095
|
return match ? match[0] : undefined;
|
|
61096
61096
|
});
|
|
61097
61097
|
buildEnvContext = memoize_default(async () => {
|
|
@@ -61131,9 +61131,9 @@ var init_metadata = __esm(() => {
|
|
|
61131
61131
|
isGithubAction: isEnvTruthy(process.env.GITHUB_ACTIONS),
|
|
61132
61132
|
isTheusCodeAction: isEnvTruthy(process.env.THEUS_CODE_ACTION),
|
|
61133
61133
|
isTheusAiAuth: isTheusAISubscriber(),
|
|
61134
|
-
version: { VERSION: "0.2.
|
|
61134
|
+
version: { VERSION: "0.2.26", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
|
|
61135
61135
|
versionBase: getVersionBase(),
|
|
61136
|
-
buildTime: { VERSION: "0.2.
|
|
61136
|
+
buildTime: { VERSION: "0.2.26", BUILD_TIME: "1970-01-01T00:00:00.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,
|
|
61137
61137
|
deploymentEnvironment: env3.detectDeploymentEnvironment(),
|
|
61138
61138
|
...isEnvTruthy(process.env.GITHUB_ACTIONS) && {
|
|
61139
61139
|
githubEventName: process.env.GITHUB_EVENT_NAME,
|
|
@@ -61799,7 +61799,7 @@ function initialize1PEventLogging() {
|
|
|
61799
61799
|
const platform2 = getPlatform();
|
|
61800
61800
|
const attributes = {
|
|
61801
61801
|
[ATTR_SERVICE_NAME]: "theus-code",
|
|
61802
|
-
[ATTR_SERVICE_VERSION]: { VERSION: "0.2.
|
|
61802
|
+
[ATTR_SERVICE_VERSION]: { VERSION: "0.2.26", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
|
|
61803
61803
|
};
|
|
61804
61804
|
if (platform2 === "wsl") {
|
|
61805
61805
|
const wslVersion = getWslVersion();
|
|
@@ -61826,7 +61826,7 @@ function initialize1PEventLogging() {
|
|
|
61826
61826
|
})
|
|
61827
61827
|
]
|
|
61828
61828
|
});
|
|
61829
|
-
firstPartyEventLogger = firstPartyEventLoggerProvider.getLogger("com.theus.theus_code.events", { VERSION: "0.2.
|
|
61829
|
+
firstPartyEventLogger = firstPartyEventLoggerProvider.getLogger("com.theus.theus_code.events", { VERSION: "0.2.26", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION);
|
|
61830
61830
|
}
|
|
61831
61831
|
async function reinitialize1PEventLoggingIfConfigChanged() {
|
|
61832
61832
|
if (!is1PEventLoggingEnabled() || !firstPartyEventLoggerProvider) {
|
|
@@ -63697,7 +63697,7 @@ function getAttributionHeader(fingerprint) {
|
|
|
63697
63697
|
if (!isAttributionHeaderEnabled()) {
|
|
63698
63698
|
return "";
|
|
63699
63699
|
}
|
|
63700
|
-
const version2 = `${{ VERSION: "0.2.
|
|
63700
|
+
const version2 = `${{ VERSION: "0.2.26", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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}`;
|
|
63701
63701
|
const entrypoint = process.env.THEUS_CODE_ENTRYPOINT ?? "unknown";
|
|
63702
63702
|
const cch = "";
|
|
63703
63703
|
const workload = getWorkload();
|
|
@@ -107797,7 +107797,7 @@ Complete the user's request by providing accurate, documentation-based guidance.
|
|
|
107797
107797
|
}
|
|
107798
107798
|
function getFeedbackGuideline() {
|
|
107799
107799
|
if (isUsing3PServices()) {
|
|
107800
|
-
return `- When you cannot find an answer or the feature doesn't exist, direct the user to ${{ VERSION: "0.2.
|
|
107800
|
+
return `- When you cannot find an answer or the feature doesn't exist, direct the user to ${{ VERSION: "0.2.26", BUILD_TIME: "1970-01-01T00:00:00.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}`;
|
|
107801
107801
|
}
|
|
107802
107802
|
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";
|
|
107803
107803
|
}
|
|
@@ -117055,20 +117055,20 @@ var init_headlessProfiler = __esm(() => {
|
|
|
117055
117055
|
});
|
|
117056
117056
|
|
|
117057
117057
|
// tools/SleepTool/prompt.ts
|
|
117058
|
-
var SLEEP_TOOL_NAME = "Sleep", DESCRIPTION6 = "
|
|
117058
|
+
var SLEEP_TOOL_NAME = "Sleep", DESCRIPTION6 = "Espera una duraci\xF3n determinada", SLEEP_TOOL_PROMPT;
|
|
117059
117059
|
var init_prompt8 = __esm(() => {
|
|
117060
117060
|
init_xml();
|
|
117061
|
-
SLEEP_TOOL_PROMPT = `
|
|
117061
|
+
SLEEP_TOOL_PROMPT = `Espera una duraci\xF3n determinada. El usuario puede interrumpir la espera en cualquier momento.
|
|
117062
117062
|
|
|
117063
|
-
|
|
117063
|
+
\xDAsala cuando el usuario te diga que duermas o descanses, cuando no tengas nada que hacer, o cuando est\xE9s esperando algo.
|
|
117064
117064
|
|
|
117065
|
-
|
|
117065
|
+
Puedes recibir mensajes <${TICK_TAG}> \u2014 son verificaciones peri\xF3dicas. Busca trabajo \xFAtil que hacer antes de dormir.
|
|
117066
117066
|
|
|
117067
|
-
|
|
117067
|
+
Puedes llamarla en paralelo con otras herramientas \u2014 no interfiere con ellas.
|
|
117068
117068
|
|
|
117069
|
-
|
|
117069
|
+
Prefi\xE9rela sobre \`Bash(sleep ...)\` \u2014 no retiene un proceso de shell.
|
|
117070
117070
|
|
|
117071
|
-
|
|
117071
|
+
Cada despertar cuesta una llamada a la API; balancea en consecuencia.`;
|
|
117072
117072
|
});
|
|
117073
117073
|
|
|
117074
117074
|
// utils/hooks/postSamplingHooks.ts
|
|
@@ -166502,7 +166502,7 @@ function getTelemetryAttributes() {
|
|
|
166502
166502
|
attributes["session.id"] = sessionId;
|
|
166503
166503
|
}
|
|
166504
166504
|
if (shouldIncludeAttribute("OTEL_METRICS_INCLUDE_VERSION")) {
|
|
166505
|
-
attributes["app.version"] = { VERSION: "0.2.
|
|
166505
|
+
attributes["app.version"] = { VERSION: "0.2.26", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION;
|
|
166506
166506
|
}
|
|
166507
166507
|
const oauthAccount = getOauthAccountInfo();
|
|
166508
166508
|
if (oauthAccount) {
|
|
@@ -202560,7 +202560,7 @@ function getInstallationEnv() {
|
|
|
202560
202560
|
return;
|
|
202561
202561
|
}
|
|
202562
202562
|
function getTheusCodeVersion() {
|
|
202563
|
-
return { VERSION: "0.2.
|
|
202563
|
+
return { VERSION: "0.2.26", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION;
|
|
202564
202564
|
}
|
|
202565
202565
|
async function getInstalledVSCodeExtensionVersion(command) {
|
|
202566
202566
|
const { stdout } = await execFileNoThrow(command, ["--list-extensions", "--show-versions"], {
|
|
@@ -204078,7 +204078,7 @@ async function getMcpHeadersFromHelper(serverName, config2) {
|
|
|
204078
204078
|
if ("scope" in config2 && isMcpServerFromProjectOrLocalSettings(config2) && !getIsNonInteractiveSession()) {
|
|
204079
204079
|
const hasTrust = checkHasTrustDialogAccepted();
|
|
204080
204080
|
if (!hasTrust) {
|
|
204081
|
-
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.
|
|
204081
|
+
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.26", BUILD_TIME: "1970-01-01T00:00:00.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}.`);
|
|
204082
204082
|
logAntError("MCP headersHelper invoked before trust check", error40);
|
|
204083
204083
|
logEvent("tengu_mcp_headersHelper_missing_trust", {});
|
|
204084
204084
|
return null;
|
|
@@ -205288,7 +205288,7 @@ async function setupSdkMcpClients(sdkMcpConfigs, sendMcpMessage) {
|
|
|
205288
205288
|
const client2 = new Client({
|
|
205289
205289
|
name: "theus-code",
|
|
205290
205290
|
title: "Theus",
|
|
205291
|
-
version: { VERSION: "0.2.
|
|
205291
|
+
version: { VERSION: "0.2.26", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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",
|
|
205292
205292
|
description: "Theus's agentic coding tool",
|
|
205293
205293
|
websiteUrl: PRODUCT_URL
|
|
205294
205294
|
}, {
|
|
@@ -205642,7 +205642,7 @@ var init_client5 = __esm(() => {
|
|
|
205642
205642
|
const client2 = new Client({
|
|
205643
205643
|
name: "theus-code",
|
|
205644
205644
|
title: "Theus",
|
|
205645
|
-
version: { VERSION: "0.2.
|
|
205645
|
+
version: { VERSION: "0.2.26", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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",
|
|
205646
205646
|
description: "Theus's agentic coding tool",
|
|
205647
205647
|
websiteUrl: PRODUCT_URL
|
|
205648
205648
|
}, {
|
|
@@ -216220,7 +216220,7 @@ async function initializeBetaTracing(resource) {
|
|
|
216220
216220
|
});
|
|
216221
216221
|
logs.setGlobalLoggerProvider(loggerProvider);
|
|
216222
216222
|
setLoggerProvider(loggerProvider);
|
|
216223
|
-
const eventLogger = logs.getLogger("com.theus.theus_code.events", { VERSION: "0.2.
|
|
216223
|
+
const eventLogger = logs.getLogger("com.theus.theus_code.events", { VERSION: "0.2.26", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION);
|
|
216224
216224
|
setEventLogger(eventLogger);
|
|
216225
216225
|
process.on("beforeExit", async () => {
|
|
216226
216226
|
await loggerProvider?.forceFlush();
|
|
@@ -216260,7 +216260,7 @@ async function initializeTelemetry() {
|
|
|
216260
216260
|
const platform4 = getPlatform();
|
|
216261
216261
|
const baseAttributes = {
|
|
216262
216262
|
[ATTR_SERVICE_NAME]: "theus-code",
|
|
216263
|
-
[ATTR_SERVICE_VERSION]: { VERSION: "0.2.
|
|
216263
|
+
[ATTR_SERVICE_VERSION]: { VERSION: "0.2.26", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
|
|
216264
216264
|
};
|
|
216265
216265
|
if (platform4 === "wsl") {
|
|
216266
216266
|
const wslVersion = getWslVersion();
|
|
@@ -216305,7 +216305,7 @@ async function initializeTelemetry() {
|
|
|
216305
216305
|
} catch {}
|
|
216306
216306
|
};
|
|
216307
216307
|
registerCleanup(shutdownTelemetry2);
|
|
216308
|
-
return meterProvider2.getMeter("com.theus.theus_code", { VERSION: "0.2.
|
|
216308
|
+
return meterProvider2.getMeter("com.theus.theus_code", { VERSION: "0.2.26", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION);
|
|
216309
216309
|
}
|
|
216310
216310
|
const meterProvider = new MeterProvider({
|
|
216311
216311
|
resource,
|
|
@@ -216325,7 +216325,7 @@ async function initializeTelemetry() {
|
|
|
216325
216325
|
});
|
|
216326
216326
|
logs.setGlobalLoggerProvider(loggerProvider);
|
|
216327
216327
|
setLoggerProvider(loggerProvider);
|
|
216328
|
-
const eventLogger = logs.getLogger("com.theus.theus_code.events", { VERSION: "0.2.
|
|
216328
|
+
const eventLogger = logs.getLogger("com.theus.theus_code.events", { VERSION: "0.2.26", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION);
|
|
216329
216329
|
setEventLogger(eventLogger);
|
|
216330
216330
|
logForDebugging("[3P telemetry] Event logger set successfully");
|
|
216331
216331
|
process.on("beforeExit", async () => {
|
|
@@ -216387,7 +216387,7 @@ Current timeout: ${timeoutMs}ms
|
|
|
216387
216387
|
}
|
|
216388
216388
|
};
|
|
216389
216389
|
registerCleanup(shutdownTelemetry);
|
|
216390
|
-
return meterProvider.getMeter("com.theus.theus_code", { VERSION: "0.2.
|
|
216390
|
+
return meterProvider.getMeter("com.theus.theus_code", { VERSION: "0.2.26", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION);
|
|
216391
216391
|
}
|
|
216392
216392
|
async function flushTelemetry() {
|
|
216393
216393
|
const meterProvider = getMeterProvider();
|
|
@@ -216927,7 +216927,7 @@ async function installOrUpdateTheusPackage(channel2, specificVersion) {
|
|
|
216927
216927
|
return "install_failed";
|
|
216928
216928
|
}
|
|
216929
216929
|
const versionSpec = specificVersion ? specificVersion : channel2 === "stable" ? "stable" : "latest";
|
|
216930
|
-
const result = await execFileNoThrowWithCwd("npm", ["install", `${{ VERSION: "0.2.
|
|
216930
|
+
const result = await execFileNoThrowWithCwd("npm", ["install", `${{ VERSION: "0.2.26", BUILD_TIME: "1970-01-01T00:00:00.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 });
|
|
216931
216931
|
if (result.code !== 0) {
|
|
216932
216932
|
const error40 = new Error(`Failed to install Theus CLI package: ${result.stderr}`);
|
|
216933
216933
|
logError2(error40);
|
|
@@ -217073,9 +217073,9 @@ async function assertMinVersion() {
|
|
|
217073
217073
|
if (false) {}
|
|
217074
217074
|
try {
|
|
217075
217075
|
const versionConfig = await getDynamicConfig_BLOCKS_ON_INIT("tengu_version_config", { minVersion: "0.0.0" });
|
|
217076
|
-
if (versionConfig.minVersion && lt({ VERSION: "0.2.
|
|
217076
|
+
if (versionConfig.minVersion && lt({ VERSION: "0.2.26", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
|
|
217077
217077
|
console.error(`
|
|
217078
|
-
It looks like your version of Theus (${{ VERSION: "0.2.
|
|
217078
|
+
It looks like your version of Theus (${{ VERSION: "0.2.26", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.
|
|
217079
217079
|
A newer version (${versionConfig.minVersion} or higher) is required to continue.
|
|
217080
217080
|
|
|
217081
217081
|
To update, please run:
|
|
@@ -217216,7 +217216,7 @@ async function getInstallationPrefix() {
|
|
|
217216
217216
|
return prefixResult.stdout.trim();
|
|
217217
217217
|
}
|
|
217218
217218
|
function getGlobalInstallPackageManager() {
|
|
217219
|
-
if ({ VERSION: "0.2.
|
|
217219
|
+
if ({ VERSION: "0.2.26", BUILD_TIME: "1970-01-01T00:00:00.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") {
|
|
217220
217220
|
return "npm";
|
|
217221
217221
|
}
|
|
217222
217222
|
return env3.isRunningWithBun() ? "bun" : "npm";
|
|
@@ -217241,7 +217241,7 @@ async function checkGlobalInstallPermissions() {
|
|
|
217241
217241
|
}
|
|
217242
217242
|
async function getLatestVersion(channel2) {
|
|
217243
217243
|
const npmTag = channel2 === "stable" ? "stable" : "latest";
|
|
217244
|
-
const result = await execFileNoThrowWithCwd("npm", ["view", `${{ VERSION: "0.2.
|
|
217244
|
+
const result = await execFileNoThrowWithCwd("npm", ["view", `${{ VERSION: "0.2.26", BUILD_TIME: "1970-01-01T00:00:00.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() });
|
|
217245
217245
|
if (result.code !== 0) {
|
|
217246
217246
|
logForDebugging(`npm view failed with code ${result.code}`);
|
|
217247
217247
|
if (result.stderr) {
|
|
@@ -217257,7 +217257,7 @@ async function getLatestVersion(channel2) {
|
|
|
217257
217257
|
return result.stdout.trim();
|
|
217258
217258
|
}
|
|
217259
217259
|
async function getNpmDistTags() {
|
|
217260
|
-
const result = await execFileNoThrowWithCwd("npm", ["view", { VERSION: "0.2.
|
|
217260
|
+
const result = await execFileNoThrowWithCwd("npm", ["view", { VERSION: "0.2.26", BUILD_TIME: "1970-01-01T00:00:00.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() });
|
|
217261
217261
|
if (result.code !== 0) {
|
|
217262
217262
|
logForDebugging(`npm view dist-tags failed with code ${result.code}`);
|
|
217263
217263
|
return { latest: null, stable: null };
|
|
@@ -217297,7 +217297,7 @@ async function installGlobalPackage(specificVersion) {
|
|
|
217297
217297
|
logError2(new AutoUpdaterError("Another process is currently installing an update"));
|
|
217298
217298
|
logEvent("tengu_auto_updater_lock_contention", {
|
|
217299
217299
|
pid: process.pid,
|
|
217300
|
-
currentVersion: { VERSION: "0.2.
|
|
217300
|
+
currentVersion: { VERSION: "0.2.26", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
|
|
217301
217301
|
});
|
|
217302
217302
|
return "in_progress";
|
|
217303
217303
|
}
|
|
@@ -217306,7 +217306,7 @@ async function installGlobalPackage(specificVersion) {
|
|
|
217306
217306
|
if (!env3.isRunningWithBun() && env3.isNpmFromWindowsPath()) {
|
|
217307
217307
|
logError2(new Error("Windows NPM detected in WSL environment"));
|
|
217308
217308
|
logEvent("tengu_auto_updater_windows_npm_in_wsl", {
|
|
217309
|
-
currentVersion: { VERSION: "0.2.
|
|
217309
|
+
currentVersion: { VERSION: "0.2.26", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
|
|
217310
217310
|
});
|
|
217311
217311
|
console.error(`
|
|
217312
217312
|
Error: Windows NPM detected in WSL
|
|
@@ -217325,7 +217325,7 @@ To fix this issue:
|
|
|
217325
217325
|
if (!hasPermissions) {
|
|
217326
217326
|
return "no_permissions";
|
|
217327
217327
|
}
|
|
217328
|
-
const packageSpec = specificVersion ? `${{ VERSION: "0.2.
|
|
217328
|
+
const packageSpec = specificVersion ? `${{ VERSION: "0.2.26", BUILD_TIME: "1970-01-01T00:00:00.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.26", BUILD_TIME: "1970-01-01T00:00:00.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;
|
|
217329
217329
|
const packageManager = getGlobalInstallPackageManager();
|
|
217330
217330
|
const installResult = await execFileNoThrowWithCwd(packageManager, ["install", "-g", packageSpec], { cwd: homedir18() });
|
|
217331
217331
|
if (installResult.code !== 0) {
|
|
@@ -217653,8 +217653,8 @@ async function detectMultipleInstallations() {
|
|
|
217653
217653
|
installations.push({ type: "npm-local", path: localPath });
|
|
217654
217654
|
}
|
|
217655
217655
|
const packagesToCheck = ["@theus-ai/theus-code"];
|
|
217656
|
-
if ({ VERSION: "0.2.
|
|
217657
|
-
packagesToCheck.push({ VERSION: "0.2.
|
|
217656
|
+
if ({ VERSION: "0.2.26", BUILD_TIME: "1970-01-01T00:00:00.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.26", BUILD_TIME: "1970-01-01T00:00:00.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") {
|
|
217657
|
+
packagesToCheck.push({ VERSION: "0.2.26", BUILD_TIME: "1970-01-01T00:00:00.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);
|
|
217658
217658
|
}
|
|
217659
217659
|
const npmResult = await execFileNoThrow("npm", [
|
|
217660
217660
|
"-g",
|
|
@@ -217837,7 +217837,7 @@ function detectLinuxGlobPatternWarnings() {
|
|
|
217837
217837
|
}
|
|
217838
217838
|
async function getDoctorDiagnostic() {
|
|
217839
217839
|
const installationType = await getCurrentInstallationType();
|
|
217840
|
-
const version2 = { VERSION: "0.2.
|
|
217840
|
+
const version2 = { VERSION: "0.2.26", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.26", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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";
|
|
217841
217841
|
const installationPath = await getInstallationPath();
|
|
217842
217842
|
const invokedBinary = getInvokedBinary();
|
|
217843
217843
|
const multipleInstallations = await detectMultipleInstallations();
|
|
@@ -217849,8 +217849,8 @@ async function getDoctorDiagnostic() {
|
|
|
217849
217849
|
for (const install of npmInstalls) {
|
|
217850
217850
|
if (install.type === "npm-global") {
|
|
217851
217851
|
let uninstallCmd = "npm -g uninstall @theus-ai/theus-code";
|
|
217852
|
-
if ({ VERSION: "0.2.
|
|
217853
|
-
uninstallCmd += ` && npm -g uninstall ${{ VERSION: "0.2.
|
|
217852
|
+
if ({ VERSION: "0.2.26", BUILD_TIME: "1970-01-01T00:00:00.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.26", BUILD_TIME: "1970-01-01T00:00:00.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") {
|
|
217853
|
+
uninstallCmd += ` && npm -g uninstall ${{ VERSION: "0.2.26", BUILD_TIME: "1970-01-01T00:00:00.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}`;
|
|
217854
217854
|
}
|
|
217855
217855
|
warnings.push({
|
|
217856
217856
|
issue: `Leftover npm global installation at ${install.path}`,
|
|
@@ -217962,7 +217962,7 @@ async function getLatestVersionFromArtifactory(tag2 = "latest") {
|
|
|
217962
217962
|
const startTime2 = Date.now();
|
|
217963
217963
|
const { stdout, code, stderr } = await execFileNoThrowWithCwd("npm", [
|
|
217964
217964
|
"view",
|
|
217965
|
-
`${{ VERSION: "0.2.
|
|
217965
|
+
`${{ VERSION: "0.2.26", BUILD_TIME: "1970-01-01T00:00:00.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}`,
|
|
217966
217966
|
"version",
|
|
217967
217967
|
"--prefer-online",
|
|
217968
217968
|
"--registry",
|
|
@@ -217986,7 +217986,7 @@ async function getLatestVersionFromArtifactory(tag2 = "latest") {
|
|
|
217986
217986
|
latency_ms: latencyMs,
|
|
217987
217987
|
source_npm: true
|
|
217988
217988
|
});
|
|
217989
|
-
logForDebugging(`npm view ${{ VERSION: "0.2.
|
|
217989
|
+
logForDebugging(`npm view ${{ VERSION: "0.2.26", BUILD_TIME: "1970-01-01T00:00:00.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}`);
|
|
217990
217990
|
const latestVersion = stdout.trim();
|
|
217991
217991
|
return latestVersion;
|
|
217992
217992
|
}
|
|
@@ -218042,7 +218042,7 @@ async function downloadVersionFromArtifactory(version2, stagingPath) {
|
|
|
218042
218042
|
const fs3 = getFsImplementation();
|
|
218043
218043
|
await fs3.rm(stagingPath, { recursive: true, force: true });
|
|
218044
218044
|
const platform4 = getPlatform2();
|
|
218045
|
-
const platformPackageName = `${{ VERSION: "0.2.
|
|
218045
|
+
const platformPackageName = `${{ VERSION: "0.2.26", BUILD_TIME: "1970-01-01T00:00:00.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}`;
|
|
218046
218046
|
logForDebugging(`Fetching integrity hash for ${platformPackageName}@${version2}`);
|
|
218047
218047
|
const {
|
|
218048
218048
|
stdout: integrityOutput,
|
|
@@ -218071,7 +218071,7 @@ async function downloadVersionFromArtifactory(version2, stagingPath) {
|
|
|
218071
218071
|
name: "theus-native-installer",
|
|
218072
218072
|
version: "0.0.1",
|
|
218073
218073
|
dependencies: {
|
|
218074
|
-
[{ VERSION: "0.2.
|
|
218074
|
+
[{ VERSION: "0.2.26", BUILD_TIME: "1970-01-01T00:00:00.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
|
|
218075
218075
|
}
|
|
218076
218076
|
};
|
|
218077
218077
|
const packageLock = {
|
|
@@ -218084,10 +218084,10 @@ async function downloadVersionFromArtifactory(version2, stagingPath) {
|
|
|
218084
218084
|
name: "theus-native-installer",
|
|
218085
218085
|
version: "0.0.1",
|
|
218086
218086
|
dependencies: {
|
|
218087
|
-
[{ VERSION: "0.2.
|
|
218087
|
+
[{ VERSION: "0.2.26", BUILD_TIME: "1970-01-01T00:00:00.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
|
|
218088
218088
|
}
|
|
218089
218089
|
},
|
|
218090
|
-
[`node_modules/${{ VERSION: "0.2.
|
|
218090
|
+
[`node_modules/${{ VERSION: "0.2.26", BUILD_TIME: "1970-01-01T00:00:00.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}`]: {
|
|
218091
218091
|
version: version2,
|
|
218092
218092
|
optionalDependencies: {
|
|
218093
218093
|
[platformPackageName]: version2
|
|
@@ -218109,7 +218109,7 @@ async function downloadVersionFromArtifactory(version2, stagingPath) {
|
|
|
218109
218109
|
if (result.code !== 0) {
|
|
218110
218110
|
throw new Error(`npm ci failed with code ${result.code}: ${result.stderr}`);
|
|
218111
218111
|
}
|
|
218112
|
-
logForDebugging(`Successfully downloaded and verified ${{ VERSION: "0.2.
|
|
218112
|
+
logForDebugging(`Successfully downloaded and verified ${{ VERSION: "0.2.26", BUILD_TIME: "1970-01-01T00:00:00.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}`);
|
|
218113
218113
|
}
|
|
218114
218114
|
function getStallTimeoutMs() {
|
|
218115
218115
|
return Number(process.env.THEUS_CODE_STALL_TIMEOUT_MS_FOR_TESTING) || DEFAULT_STALL_TIMEOUT_MS;
|
|
@@ -218772,8 +218772,8 @@ async function updateLatest(channelOrVersion, forceReinstall = false) {
|
|
|
218772
218772
|
const maxVersion = await getMaxVersion();
|
|
218773
218773
|
if (maxVersion && gt(version2, maxVersion)) {
|
|
218774
218774
|
logForDebugging(`Native installer: maxVersion ${maxVersion} is set, capping update from ${version2} to ${maxVersion}`);
|
|
218775
|
-
if (gte({ VERSION: "0.2.
|
|
218776
|
-
logForDebugging(`Native installer: current version ${{ VERSION: "0.2.
|
|
218775
|
+
if (gte({ VERSION: "0.2.26", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
|
|
218776
|
+
logForDebugging(`Native installer: current version ${{ VERSION: "0.2.26", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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`);
|
|
218777
218777
|
logEvent("tengu_native_update_skipped_max_version", {
|
|
218778
218778
|
latency_ms: Date.now() - startTime2,
|
|
218779
218779
|
max_version: maxVersion,
|
|
@@ -218784,7 +218784,7 @@ async function updateLatest(channelOrVersion, forceReinstall = false) {
|
|
|
218784
218784
|
version2 = maxVersion;
|
|
218785
218785
|
}
|
|
218786
218786
|
}
|
|
218787
|
-
if (!forceReinstall && version2 === { VERSION: "0.2.
|
|
218787
|
+
if (!forceReinstall && version2 === { VERSION: "0.2.26", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
|
|
218788
218788
|
logForDebugging(`Found ${version2} at ${executablePath}, skipping install`);
|
|
218789
218789
|
logEvent("tengu_native_update_complete", {
|
|
218790
218790
|
latency_ms: Date.now() - startTime2,
|
|
@@ -219534,8 +219534,8 @@ async function cleanupNpmInstallations() {
|
|
|
219534
219534
|
} else if (codePackageResult.error) {
|
|
219535
219535
|
errors4.push(codePackageResult.error);
|
|
219536
219536
|
}
|
|
219537
|
-
if ({ VERSION: "0.2.
|
|
219538
|
-
const macroPackageResult = await attemptNpmUninstall({ VERSION: "0.2.
|
|
219537
|
+
if ({ VERSION: "0.2.26", BUILD_TIME: "1970-01-01T00:00:00.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.26", BUILD_TIME: "1970-01-01T00:00:00.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") {
|
|
219538
|
+
const macroPackageResult = await attemptNpmUninstall({ VERSION: "0.2.26", BUILD_TIME: "1970-01-01T00:00:00.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);
|
|
219539
219539
|
if (macroPackageResult.success) {
|
|
219540
219540
|
removed++;
|
|
219541
219541
|
if (macroPackageResult.warning) {
|
|
@@ -275486,17 +275486,17 @@ var BRIEF_TOOL_NAME2 = "SendUserMessage", LEGACY_BRIEF_TOOL_NAME2 = "Brief", DES
|
|
|
275486
275486
|
|
|
275487
275487
|
\`status\` labels intent: 'normal' when replying to what they just asked; 'proactive' when you're initiating \u2014 a scheduled task finished, a blocker surfaced during background work, you need input on something they haven't asked about. Set it honestly; downstream routing uses it.`, BRIEF_PROACTIVE_SECTION;
|
|
275488
275488
|
var init_prompt14 = __esm(() => {
|
|
275489
|
-
BRIEF_PROACTIVE_SECTION = `##
|
|
275489
|
+
BRIEF_PROACTIVE_SECTION = `## C\xF3mo hablarle al usuario
|
|
275490
275490
|
|
|
275491
|
-
${BRIEF_TOOL_NAME2}
|
|
275491
|
+
Responde SIEMPRE en espa\xF1ol. ${BRIEF_TOOL_NAME2} es por donde salen tus respuestas. El texto fuera de esa herramienta se ve si el usuario expande la vista de detalle, pero la mayor\xEDa no lo har\xE1 \u2014 asume que no se lee. Todo lo que quieras que vea de verdad va por ${BRIEF_TOOL_NAME2}. El modo de fallo: la respuesta real queda en texto plano mientras ${BRIEF_TOOL_NAME2} solo dice "\xA1listo!" \u2014 el usuario ve "\xA1listo!" y se pierde todo lo dem\xE1s.
|
|
275492
275492
|
|
|
275493
|
-
|
|
275493
|
+
As\xED que: cada vez que el usuario diga algo, la respuesta que realmente lee sale por ${BRIEF_TOOL_NAME2}. Incluso para un "hola". Incluso para un "gracias".
|
|
275494
275494
|
|
|
275495
|
-
|
|
275495
|
+
Si puedes responder de inmediato, env\xEDa la respuesta. Si necesitas ir a mirar \u2014 correr un comando, leer archivos, verificar algo \u2014 primero acusa recibo en una l\xEDnea ("Voy \u2014 reviso la salida de los tests"), luego trabaja, luego env\xEDa el resultado. Sin ese acuse, el usuario se queda mirando un spinner.
|
|
275496
275496
|
|
|
275497
|
-
|
|
275497
|
+
Para trabajo m\xE1s largo: acuse \u2192 trabajo \u2192 resultado. Entre medias, env\xEDa un checkpoint cuando pase algo \xFAtil \u2014 una decisi\xF3n que tomaste, una sorpresa que encontraste, el fin de una fase. Evita el relleno ("corriendo tests...") \u2014 un checkpoint se gana su lugar cuando lleva informaci\xF3n.
|
|
275498
275498
|
|
|
275499
|
-
|
|
275499
|
+
Mant\xE9n los mensajes concisos \u2014 la decisi\xF3n, el archivo:l\xEDnea, el n\xFAmero de PR. Siempre en segunda persona ("tu config"), nunca en tercera.`;
|
|
275500
275500
|
});
|
|
275501
275501
|
|
|
275502
275502
|
// tools/BriefTool/UI.tsx
|
|
@@ -300688,9 +300688,9 @@ function getTheusEnvMetadata() {
|
|
|
300688
300688
|
};
|
|
300689
300689
|
}
|
|
300690
300690
|
function getBuildAgeMinutes() {
|
|
300691
|
-
if (!{ VERSION: "0.2.
|
|
300691
|
+
if (!{ VERSION: "0.2.26", BUILD_TIME: "1970-01-01T00:00:00.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)
|
|
300692
300692
|
return;
|
|
300693
|
-
const buildTime = new Date({ VERSION: "0.2.
|
|
300693
|
+
const buildTime = new Date({ VERSION: "0.2.26", BUILD_TIME: "1970-01-01T00:00:00.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();
|
|
300694
300694
|
if (isNaN(buildTime))
|
|
300695
300695
|
return;
|
|
300696
300696
|
return Math.floor((Date.now() - buildTime) / 60000);
|
|
@@ -301516,7 +301516,7 @@ Continue the conversation from where it left off without asking the user any fur
|
|
|
301516
301516
|
if (isProactiveForced() && proactiveModule4?.isProactiveActive()) {
|
|
301517
301517
|
continuation += `
|
|
301518
301518
|
|
|
301519
|
-
|
|
301519
|
+
Est\xE1s en modo aut\xF3nomo/proactivo. Este NO es un primer despertar \u2014 ya estabas trabajando de forma aut\xF3noma antes de la compactaci\xF3n. Contin\xFAa tu ciclo de trabajo: retoma donde lo dejaste seg\xFAn el resumen de arriba. No saludes al usuario ni preguntes en qu\xE9 trabajar. Responde siempre en espa\xF1ol.`;
|
|
301520
301520
|
}
|
|
301521
301521
|
return continuation;
|
|
301522
301522
|
}
|
|
@@ -316938,7 +316938,7 @@ function getAssistantMessageFromError(error40, model, options2) {
|
|
|
316938
316938
|
if (process.env.USER_TYPE === "ant") {
|
|
316939
316939
|
const baseMessage = `API Error: 400 ${error40.message}
|
|
316940
316940
|
|
|
316941
|
-
Run /share and post the JSON file to ${{ VERSION: "0.2.
|
|
316941
|
+
Run /share and post the JSON file to ${{ VERSION: "0.2.26", BUILD_TIME: "1970-01-01T00:00:00.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}.`;
|
|
316942
316942
|
const rewindInstruction = getIsNonInteractiveSession() ? "" : " Then, use /rewind to recover the conversation.";
|
|
316943
316943
|
return createAssistantAPIErrorMessage({
|
|
316944
316944
|
content: baseMessage + rewindInstruction,
|
|
@@ -316974,7 +316974,7 @@ Run /share and post the JSON file to ${{ VERSION: "0.2.25", BUILD_TIME: "1970-01
|
|
|
316974
316974
|
if (process.env.USER_TYPE === "ant" && !process.env.THEUS_MODEL && error40 instanceof Error && error40.message.toLowerCase().includes("invalid model name")) {
|
|
316975
316975
|
const orgId = getOauthAccountInfo()?.organizationUuid;
|
|
316976
316976
|
const baseMsg = `[THEUS-INTERNAL] Your org isn't gated into the \`${model}\` model. Either run \`theus\` with \`THEUS_MODEL=${getDefaultMainLoopModelSetting()}\``;
|
|
316977
|
-
const msg = orgId ? `${baseMsg} or share your orgId (${orgId}) in ${{ VERSION: "0.2.
|
|
316977
|
+
const msg = orgId ? `${baseMsg} or share your orgId (${orgId}) in ${{ VERSION: "0.2.26", BUILD_TIME: "1970-01-01T00:00:00.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.26", BUILD_TIME: "1970-01-01T00:00:00.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.`;
|
|
316978
316978
|
return createAssistantAPIErrorMessage({
|
|
316979
316979
|
content: msg,
|
|
316980
316980
|
error: "invalid_request"
|
|
@@ -327078,7 +327078,7 @@ function buildPrimarySection() {
|
|
|
327078
327078
|
});
|
|
327079
327079
|
return [{
|
|
327080
327080
|
label: "Version",
|
|
327081
|
-
value: { VERSION: "0.2.
|
|
327081
|
+
value: { VERSION: "0.2.26", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
|
|
327082
327082
|
}, {
|
|
327083
327083
|
label: "Session name",
|
|
327084
327084
|
value: nameValue
|
|
@@ -330894,7 +330894,7 @@ function Config({
|
|
|
330894
330894
|
}
|
|
330895
330895
|
})
|
|
330896
330896
|
}) : showSubmenu === "ChannelDowngrade" ? /* @__PURE__ */ jsx_runtime185.jsx(ChannelDowngradeDialog, {
|
|
330897
|
-
currentVersion: { VERSION: "0.2.
|
|
330897
|
+
currentVersion: { VERSION: "0.2.26", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
|
|
330898
330898
|
onChoice: (choice) => {
|
|
330899
330899
|
setShowSubmenu(null);
|
|
330900
330900
|
setTabsHidden(false);
|
|
@@ -330906,7 +330906,7 @@ function Config({
|
|
|
330906
330906
|
autoUpdatesChannel: "stable"
|
|
330907
330907
|
};
|
|
330908
330908
|
if (choice === "stay") {
|
|
330909
|
-
newSettings.minimumVersion = { VERSION: "0.2.
|
|
330909
|
+
newSettings.minimumVersion = { VERSION: "0.2.26", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION;
|
|
330910
330910
|
}
|
|
330911
330911
|
updateSettingsForSource("userSettings", newSettings);
|
|
330912
330912
|
setSettingsData((prev_27) => ({
|
|
@@ -338940,7 +338940,7 @@ function HelpV2(t0) {
|
|
|
338940
338940
|
let t6;
|
|
338941
338941
|
if ($2[31] !== tabs) {
|
|
338942
338942
|
t6 = /* @__PURE__ */ jsx_runtime212.jsx(Tabs, {
|
|
338943
|
-
title: `Theus v${{ VERSION: "0.2.
|
|
338943
|
+
title: `Theus v${{ VERSION: "0.2.26", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION}`,
|
|
338944
338944
|
color: "professionalBlue",
|
|
338945
338945
|
defaultTab: "general",
|
|
338946
338946
|
children: tabs
|
|
@@ -355661,6 +355661,15 @@ var init_mcp3 = __esm(() => {
|
|
|
355661
355661
|
var NOVEDADES;
|
|
355662
355662
|
var init_data = __esm(() => {
|
|
355663
355663
|
NOVEDADES = [
|
|
355664
|
+
{
|
|
355665
|
+
version: "v0.2.26",
|
|
355666
|
+
fecha: "2026-07-12",
|
|
355667
|
+
titulo: "Modo proactivo, ahora en espa\xF1ol",
|
|
355668
|
+
puntos: [
|
|
355669
|
+
"El agente en modo proactivo ahora responde en espa\xF1ol y ya no repite saludos: saluda una vez y luego duerme en silencio cuando no hay trabajo.",
|
|
355670
|
+
"Traducidos los textos internos del ciclo aut\xF3nomo (trabajo aut\xF3nomo, herramienta de espera y continuaci\xF3n tras compactaci\xF3n)."
|
|
355671
|
+
]
|
|
355672
|
+
},
|
|
355664
355673
|
{
|
|
355665
355674
|
version: "v0.2.25",
|
|
355666
355675
|
fecha: "2026-07-12",
|
|
@@ -357313,7 +357322,7 @@ function Onboarding({
|
|
|
357313
357322
|
flexDirection: "column",
|
|
357314
357323
|
children: [
|
|
357315
357324
|
/* @__PURE__ */ jsx_runtime245.jsx(TheusBanner, {
|
|
357316
|
-
version: { VERSION: "0.2.
|
|
357325
|
+
version: { VERSION: "0.2.26", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
|
|
357317
357326
|
}),
|
|
357318
357327
|
/* @__PURE__ */ jsx_runtime245.jsxs(ThemedBox_default, {
|
|
357319
357328
|
flexDirection: "column",
|
|
@@ -357658,9 +357667,9 @@ function getAllReleaseNotes(changelogContent = getStoredChangelogFromMemory()) {
|
|
|
357658
357667
|
return [];
|
|
357659
357668
|
}
|
|
357660
357669
|
}
|
|
357661
|
-
async function checkForReleaseNotes(lastSeenVersion, currentVersion = { VERSION: "0.2.
|
|
357670
|
+
async function checkForReleaseNotes(lastSeenVersion, currentVersion = { VERSION: "0.2.26", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION) {
|
|
357662
357671
|
if (process.env.USER_TYPE === "ant") {
|
|
357663
|
-
const changelog = { VERSION: "0.2.
|
|
357672
|
+
const changelog = { VERSION: "0.2.26", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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;
|
|
357664
357673
|
if (changelog) {
|
|
357665
357674
|
const commits = changelog.trim().split(`
|
|
357666
357675
|
`).filter(Boolean);
|
|
@@ -362063,7 +362072,7 @@ var init_Messages = __esm(() => {
|
|
|
362063
362072
|
let t1;
|
|
362064
362073
|
if ($2[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
362065
362074
|
t1 = /* @__PURE__ */ jsx_runtime258.jsx(TheusSessionHeader, {
|
|
362066
|
-
version: { VERSION: "0.2.
|
|
362075
|
+
version: { VERSION: "0.2.26", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
|
|
362067
362076
|
});
|
|
362068
362077
|
$2[0] = t1;
|
|
362069
362078
|
} else {
|
|
@@ -389821,7 +389830,7 @@ async function captureMemoryDiagnostics(trigger, dumpNumber = 0) {
|
|
|
389821
389830
|
smapsRollup,
|
|
389822
389831
|
platform: process.platform,
|
|
389823
389832
|
nodeVersion: process.version,
|
|
389824
|
-
ccVersion: { VERSION: "0.2.
|
|
389833
|
+
ccVersion: { VERSION: "0.2.26", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
|
|
389825
389834
|
};
|
|
389826
389835
|
}
|
|
389827
389836
|
async function performHeapDump(trigger = "manual", dumpNumber = 0) {
|
|
@@ -390407,7 +390416,7 @@ var init_bridge_kick = __esm(() => {
|
|
|
390407
390416
|
var call57 = async () => {
|
|
390408
390417
|
return {
|
|
390409
390418
|
type: "text",
|
|
390410
|
-
value: { VERSION: "0.2.
|
|
390419
|
+
value: { VERSION: "0.2.26", BUILD_TIME: "1970-01-01T00:00:00.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.26", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.26", BUILD_TIME: "1970-01-01T00:00:00.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.26", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
|
|
390411
390420
|
};
|
|
390412
390421
|
}, version2, version_default;
|
|
390413
390422
|
var init_version = __esm(() => {
|
|
@@ -394849,13 +394858,13 @@ async function updateReleaseBundle() {
|
|
|
394849
394858
|
await gracefulShutdown(1);
|
|
394850
394859
|
return;
|
|
394851
394860
|
}
|
|
394852
|
-
if (gte({ VERSION: "0.2.
|
|
394853
|
-
writeToStdout(source_default.green(`Theus is up to date (${{ VERSION: "0.2.
|
|
394861
|
+
if (gte({ VERSION: "0.2.26", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
|
|
394862
|
+
writeToStdout(source_default.green(`Theus is up to date (${{ VERSION: "0.2.26", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION})`) + `
|
|
394854
394863
|
`);
|
|
394855
394864
|
await gracefulShutdown(0);
|
|
394856
394865
|
return;
|
|
394857
394866
|
}
|
|
394858
|
-
writeToStdout(`New version available: ${latest} (current: ${{ VERSION: "0.2.
|
|
394867
|
+
writeToStdout(`New version available: ${latest} (current: ${{ VERSION: "0.2.26", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION})
|
|
394859
394868
|
`);
|
|
394860
394869
|
writeToStdout(`Installing update from theus.pe/dl...
|
|
394861
394870
|
`);
|
|
@@ -394889,7 +394898,7 @@ async function updateReleaseBundle() {
|
|
|
394889
394898
|
return;
|
|
394890
394899
|
}
|
|
394891
394900
|
cpSync(staged, bundleDir, { recursive: true, force: true });
|
|
394892
|
-
writeToStdout(source_default.green(`Successfully updated from ${{ VERSION: "0.2.
|
|
394901
|
+
writeToStdout(source_default.green(`Successfully updated from ${{ VERSION: "0.2.26", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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}`) + `
|
|
394893
394902
|
`);
|
|
394894
394903
|
await regenerateCompletionCache();
|
|
394895
394904
|
} finally {
|
|
@@ -394902,7 +394911,7 @@ async function updateReleaseBundle() {
|
|
|
394902
394911
|
async function update() {
|
|
394903
394912
|
logEvent("tengu_update_check", {});
|
|
394904
394913
|
await updateNaupa();
|
|
394905
|
-
writeToStdout(`Current version: ${{ VERSION: "0.2.
|
|
394914
|
+
writeToStdout(`Current version: ${{ VERSION: "0.2.26", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION}
|
|
394906
394915
|
`);
|
|
394907
394916
|
const channel2 = getInitialSettings()?.autoUpdatesChannel ?? "latest";
|
|
394908
394917
|
writeToStdout(`Checking for updates to ${channel2} version...
|
|
@@ -394981,8 +394990,8 @@ async function update() {
|
|
|
394981
394990
|
writeToStdout(`Theus is managed by Homebrew.
|
|
394982
394991
|
`);
|
|
394983
394992
|
const latest = await getLatestVersion(channel2);
|
|
394984
|
-
if (latest && !gte({ VERSION: "0.2.
|
|
394985
|
-
writeToStdout(`Update available: ${{ VERSION: "0.2.
|
|
394993
|
+
if (latest && !gte({ VERSION: "0.2.26", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
|
|
394994
|
+
writeToStdout(`Update available: ${{ VERSION: "0.2.26", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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}
|
|
394986
394995
|
`);
|
|
394987
394996
|
writeToStdout(`
|
|
394988
394997
|
`);
|
|
@@ -394998,8 +395007,8 @@ async function update() {
|
|
|
394998
395007
|
writeToStdout(`Theus is managed by winget.
|
|
394999
395008
|
`);
|
|
395000
395009
|
const latest = await getLatestVersion(channel2);
|
|
395001
|
-
if (latest && !gte({ VERSION: "0.2.
|
|
395002
|
-
writeToStdout(`Update available: ${{ VERSION: "0.2.
|
|
395010
|
+
if (latest && !gte({ VERSION: "0.2.26", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
|
|
395011
|
+
writeToStdout(`Update available: ${{ VERSION: "0.2.26", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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}
|
|
395003
395012
|
`);
|
|
395004
395013
|
writeToStdout(`
|
|
395005
395014
|
`);
|
|
@@ -395015,8 +395024,8 @@ async function update() {
|
|
|
395015
395024
|
writeToStdout(`Theus is managed by apk.
|
|
395016
395025
|
`);
|
|
395017
395026
|
const latest = await getLatestVersion(channel2);
|
|
395018
|
-
if (latest && !gte({ VERSION: "0.2.
|
|
395019
|
-
writeToStdout(`Update available: ${{ VERSION: "0.2.
|
|
395027
|
+
if (latest && !gte({ VERSION: "0.2.26", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
|
|
395028
|
+
writeToStdout(`Update available: ${{ VERSION: "0.2.26", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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}
|
|
395020
395029
|
`);
|
|
395021
395030
|
writeToStdout(`
|
|
395022
395031
|
`);
|
|
@@ -395081,11 +395090,11 @@ async function update() {
|
|
|
395081
395090
|
`);
|
|
395082
395091
|
await gracefulShutdown(1);
|
|
395083
395092
|
}
|
|
395084
|
-
if (result.latestVersion === { VERSION: "0.2.
|
|
395085
|
-
writeToStdout(source_default.green(`Theus is up to date (${{ VERSION: "0.2.
|
|
395093
|
+
if (result.latestVersion === { VERSION: "0.2.26", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION) {
|
|
395094
|
+
writeToStdout(source_default.green(`Theus is up to date (${{ VERSION: "0.2.26", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION})`) + `
|
|
395086
395095
|
`);
|
|
395087
395096
|
} else {
|
|
395088
|
-
writeToStdout(source_default.green(`Successfully updated from ${{ VERSION: "0.2.
|
|
395097
|
+
writeToStdout(source_default.green(`Successfully updated from ${{ VERSION: "0.2.26", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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}`) + `
|
|
395089
395098
|
`);
|
|
395090
395099
|
await regenerateCompletionCache();
|
|
395091
395100
|
}
|
|
@@ -395104,9 +395113,9 @@ async function update() {
|
|
|
395104
395113
|
await removeInstalledSymlink();
|
|
395105
395114
|
}
|
|
395106
395115
|
logForDebugging("update: Checking npm registry for latest version");
|
|
395107
|
-
logForDebugging(`update: Package URL: ${{ VERSION: "0.2.
|
|
395116
|
+
logForDebugging(`update: Package URL: ${{ VERSION: "0.2.26", BUILD_TIME: "1970-01-01T00:00:00.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}`);
|
|
395108
395117
|
const npmTag = channel2 === "stable" ? "stable" : "latest";
|
|
395109
|
-
const npmCommand = `npm view ${{ VERSION: "0.2.
|
|
395118
|
+
const npmCommand = `npm view ${{ VERSION: "0.2.26", BUILD_TIME: "1970-01-01T00:00:00.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`;
|
|
395110
395119
|
logForDebugging(`update: Running: ${npmCommand}`);
|
|
395111
395120
|
const latestVersion = await getLatestVersion(channel2);
|
|
395112
395121
|
logForDebugging(`update: Latest version from npm: ${latestVersion || "FAILED"}`);
|
|
@@ -395126,7 +395135,7 @@ async function update() {
|
|
|
395126
395135
|
`);
|
|
395127
395136
|
process.stderr.write(` \u2022 Corporate proxy/firewall blocking npm
|
|
395128
395137
|
`);
|
|
395129
|
-
if ({ VERSION: "0.2.
|
|
395138
|
+
if ({ VERSION: "0.2.26", BUILD_TIME: "1970-01-01T00:00:00.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.26", BUILD_TIME: "1970-01-01T00:00:00.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")) {
|
|
395130
395139
|
process.stderr.write(` \u2022 Internal/development build not published to npm
|
|
395131
395140
|
`);
|
|
395132
395141
|
}
|
|
@@ -395138,19 +395147,19 @@ async function update() {
|
|
|
395138
395147
|
`);
|
|
395139
395148
|
process.stderr.write(` \u2022 Run with --debug flag for more details
|
|
395140
395149
|
`);
|
|
395141
|
-
const packageName = { VERSION: "0.2.
|
|
395150
|
+
const packageName = { VERSION: "0.2.26", BUILD_TIME: "1970-01-01T00:00:00.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");
|
|
395142
395151
|
process.stderr.write(` \u2022 Manually check: npm view ${packageName} version
|
|
395143
395152
|
`);
|
|
395144
395153
|
process.stderr.write(` \u2022 Check if you need to login: npm whoami
|
|
395145
395154
|
`);
|
|
395146
395155
|
await gracefulShutdown(1);
|
|
395147
395156
|
}
|
|
395148
|
-
if (gte({ VERSION: "0.2.
|
|
395149
|
-
writeToStdout(source_default.green(`Theus is up to date (${{ VERSION: "0.2.
|
|
395157
|
+
if (gte({ VERSION: "0.2.26", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
|
|
395158
|
+
writeToStdout(source_default.green(`Theus is up to date (${{ VERSION: "0.2.26", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION})`) + `
|
|
395150
395159
|
`);
|
|
395151
395160
|
await gracefulShutdown(0);
|
|
395152
395161
|
}
|
|
395153
|
-
writeToStdout(`New version available: ${latestVersion} (current: ${{ VERSION: "0.2.
|
|
395162
|
+
writeToStdout(`New version available: ${latestVersion} (current: ${{ VERSION: "0.2.26", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION})
|
|
395154
395163
|
`);
|
|
395155
395164
|
writeToStdout(`Installing update...
|
|
395156
395165
|
`);
|
|
@@ -395195,7 +395204,7 @@ async function update() {
|
|
|
395195
395204
|
logForDebugging(`update: Installation status: ${status2}`);
|
|
395196
395205
|
switch (status2) {
|
|
395197
395206
|
case "success":
|
|
395198
|
-
writeToStdout(source_default.green(`Successfully updated from ${{ VERSION: "0.2.
|
|
395207
|
+
writeToStdout(source_default.green(`Successfully updated from ${{ VERSION: "0.2.26", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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}`) + `
|
|
395199
395208
|
`);
|
|
395200
395209
|
await regenerateCompletionCache();
|
|
395201
395210
|
break;
|
|
@@ -395205,7 +395214,7 @@ async function update() {
|
|
|
395205
395214
|
if (useLocalUpdate) {
|
|
395206
395215
|
process.stderr.write(`Try manually updating with:
|
|
395207
395216
|
`);
|
|
395208
|
-
process.stderr.write(` cd ~/.theus/local && npm update ${{ VERSION: "0.2.
|
|
395217
|
+
process.stderr.write(` cd ~/.theus/local && npm update ${{ VERSION: "0.2.26", BUILD_TIME: "1970-01-01T00:00:00.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}
|
|
395209
395218
|
`);
|
|
395210
395219
|
} else {
|
|
395211
395220
|
process.stderr.write(`Try running with sudo or fix npm permissions
|
|
@@ -395221,7 +395230,7 @@ async function update() {
|
|
|
395221
395230
|
if (useLocalUpdate) {
|
|
395222
395231
|
process.stderr.write(`Try manually updating with:
|
|
395223
395232
|
`);
|
|
395224
|
-
process.stderr.write(` cd ~/.theus/local && npm update ${{ VERSION: "0.2.
|
|
395233
|
+
process.stderr.write(` cd ~/.theus/local && npm update ${{ VERSION: "0.2.26", BUILD_TIME: "1970-01-01T00:00:00.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}
|
|
395225
395234
|
`);
|
|
395226
395235
|
} else {
|
|
395227
395236
|
process.stderr.write(`Or consider using native installation with: theus install
|
|
@@ -403880,7 +403889,7 @@ var init_sessionStorage = __esm(() => {
|
|
|
403880
403889
|
init_settings2();
|
|
403881
403890
|
init_slowOperations();
|
|
403882
403891
|
init_uuid();
|
|
403883
|
-
VERSION4 = { VERSION: "0.2.
|
|
403892
|
+
VERSION4 = { VERSION: "0.2.26", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION;
|
|
403884
403893
|
MAX_TOMBSTONE_REWRITE_BYTES = 50 * 1024 * 1024;
|
|
403885
403894
|
SKIP_FIRST_PROMPT_PATTERN = /^(?:\s*<[a-z][\w-]*[\s>]|\[Request interrupted by user[^\]]*\])/;
|
|
403886
403895
|
EPHEMERAL_PROGRESS_TYPES = new Set([
|
|
@@ -405085,7 +405094,7 @@ var init_filesystem = __esm(() => {
|
|
|
405085
405094
|
});
|
|
405086
405095
|
getBundledSkillsRoot = memoize_default(function getBundledSkillsRoot2() {
|
|
405087
405096
|
const nonce = randomBytes21(16).toString("hex");
|
|
405088
|
-
return join148(getTheusTempDir(), "bundled-skills", { VERSION: "0.2.
|
|
405097
|
+
return join148(getTheusTempDir(), "bundled-skills", { VERSION: "0.2.26", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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);
|
|
405089
405098
|
});
|
|
405090
405099
|
getResolvedWorkingDirPaths = memoize_default(getPathsForPermissionCheck);
|
|
405091
405100
|
});
|
|
@@ -410264,7 +410273,7 @@ function getSimpleDoingTasksSection() {
|
|
|
410264
410273
|
];
|
|
410265
410274
|
const userHelpSubitems = [
|
|
410266
410275
|
`/help: Get help with using Theus`,
|
|
410267
|
-
`To give feedback, users should ${{ VERSION: "0.2.
|
|
410276
|
+
`To give feedback, users should ${{ VERSION: "0.2.26", BUILD_TIME: "1970-01-01T00:00:00.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}`
|
|
410268
410277
|
];
|
|
410269
410278
|
const items = [
|
|
410270
410279
|
`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.`,
|
|
@@ -410423,7 +410432,7 @@ Date: ${getSessionStartDate()}`
|
|
|
410423
410432
|
logForDebugging(`[SystemPrompt] path=simple-proactive`);
|
|
410424
410433
|
return [
|
|
410425
410434
|
`
|
|
410426
|
-
|
|
410435
|
+
Eres un agente aut\xF3nomo. Usa las herramientas disponibles para hacer trabajo \xFAtil. Responde SIEMPRE en espa\xF1ol.
|
|
410427
410436
|
|
|
410428
410437
|
${CYBER_RISK_INSTRUCTION}`,
|
|
410429
410438
|
getSystemRemindersSection(),
|
|
@@ -410624,56 +410633,56 @@ function getProactiveSection() {
|
|
|
410624
410633
|
return null;
|
|
410625
410634
|
if (!proactiveModule6?.isProactiveActive())
|
|
410626
410635
|
return null;
|
|
410627
|
-
return `#
|
|
410636
|
+
return `# Trabajo aut\xF3nomo
|
|
410628
410637
|
|
|
410629
|
-
|
|
410638
|
+
Est\xE1s trabajando de forma aut\xF3noma. Recibir\xE1s mensajes \`<${TICK_TAG}>\` que te mantienen vivo entre turnos \u2014 tr\xE1talos como "est\xE1s despierto, \xBFahora qu\xE9?". La hora en cada \`<${TICK_TAG}>\` es la hora local actual del usuario. \xDAsala para saber en qu\xE9 momento del d\xEDa est\xE1s \u2014 las marcas de tiempo de herramientas externas (Slack, GitHub, etc.) pueden estar en otra zona horaria.
|
|
410630
410639
|
|
|
410631
|
-
|
|
410640
|
+
**Responde SIEMPRE en espa\xF1ol.** Nunca repitas ni cites el contenido de un tick en tu respuesta. Varios ticks pueden llegar juntos en un solo mensaje: es normal, procesa solo el \xFAltimo.
|
|
410632
410641
|
|
|
410633
|
-
##
|
|
410642
|
+
## Ritmo
|
|
410634
410643
|
|
|
410635
|
-
|
|
410644
|
+
Usa la herramienta ${SLEEP_TOOL_NAME} para controlar cu\xE1nto esperas entre acciones. Duerme m\xE1s cuando esperas procesos lentos, menos cuando iteras activamente. Cada despertar cuesta una llamada a la API; balancea en consecuencia.
|
|
410636
410645
|
|
|
410637
|
-
**
|
|
410646
|
+
**Si no tienes nada \xFAtil que hacer en un tick, DEBES llamar a ${SLEEP_TOOL_NAME}.** Nunca respondas solo con un mensaje de estado como "sigo esperando" o "nada que hacer" \u2014 eso desperdicia un turno y quema tokens sin motivo.
|
|
410638
410647
|
|
|
410639
|
-
##
|
|
410648
|
+
## Primer despertar
|
|
410640
410649
|
|
|
410641
|
-
|
|
410650
|
+
En tu primer tick de una sesi\xF3n nueva, saluda al usuario **una sola vez, en una l\xEDnea**, y pregunta en qu\xE9 quiere trabajar. No empieces a explorar el proyecto ni a hacer cambios sin que te lo pidan \u2014 espera indicaciones. Despu\xE9s de ese saludo, si sigue sin haber trabajo, llama a ${SLEEP_TOOL_NAME} en silencio: **no vuelvas a saludar en cada tick**.
|
|
410642
410651
|
|
|
410643
|
-
##
|
|
410652
|
+
## Despertares posteriores
|
|
410644
410653
|
|
|
410645
|
-
|
|
410654
|
+
Busca trabajo \xFAtil. Un buen colega ante la ambig\xFCedad no se detiene: investiga, reduce riesgo y construye entendimiento. Preg\xFAntate: \xBFqu\xE9 no s\xE9 a\xFAn?, \xBFqu\xE9 podr\xEDa salir mal?, \xBFqu\xE9 querr\xEDa verificar antes de darlo por terminado?
|
|
410646
410655
|
|
|
410647
|
-
|
|
410656
|
+
No satures al usuario. Si ya preguntaste algo y no ha respondido, no vuelvas a preguntar. No narres lo que vas a hacer \u2014 simplemente hazlo.
|
|
410648
410657
|
|
|
410649
|
-
|
|
410658
|
+
Si llega un tick y no tienes ninguna acci\xF3n \xFAtil (ning\xFAn archivo que leer, ning\xFAn comando que correr, ninguna decisi\xF3n que tomar), llama a ${SLEEP_TOOL_NAME} de inmediato. No escribas texto narrando que est\xE1s ocioso \u2014 el usuario no necesita mensajes de "sigo esperando".
|
|
410650
410659
|
|
|
410651
|
-
##
|
|
410660
|
+
## Mantente atento
|
|
410652
410661
|
|
|
410653
|
-
|
|
410662
|
+
Cuando el usuario est\xE9 interactuando activamente contigo, revisa y responde sus mensajes con frecuencia. Trata las conversaciones en tiempo real como programaci\xF3n en pareja: mant\xE9n el ciclo de retroalimentaci\xF3n corto. Si notas que el usuario te est\xE1 esperando (acaba de enviar un mensaje, la terminal est\xE1 enfocada), prioriza responder por encima de seguir con trabajo de fondo.
|
|
410654
410663
|
|
|
410655
|
-
##
|
|
410664
|
+
## Sesgo hacia la acci\xF3n
|
|
410656
410665
|
|
|
410657
|
-
Act
|
|
410666
|
+
Act\xFAa seg\xFAn tu mejor criterio en lugar de pedir confirmaci\xF3n.
|
|
410658
410667
|
|
|
410659
|
-
-
|
|
410660
|
-
-
|
|
410661
|
-
-
|
|
410668
|
+
- Lee archivos, busca en el c\xF3digo, explora el proyecto, corre tests, revisa tipos, corre linters \u2014 todo sin preguntar.
|
|
410669
|
+
- Haz cambios de c\xF3digo. Haz commit cuando llegues a un buen punto de parada.
|
|
410670
|
+
- Si dudas entre dos enfoques razonables, elige uno y avanza. Siempre puedes corregir el rumbo.
|
|
410662
410671
|
|
|
410663
|
-
##
|
|
410672
|
+
## S\xE9 conciso
|
|
410664
410673
|
|
|
410665
|
-
|
|
410666
|
-
-
|
|
410667
|
-
-
|
|
410668
|
-
-
|
|
410674
|
+
Mant\xE9n tu texto breve y de alto nivel. El usuario no necesita el paso a paso de tu razonamiento ni los detalles de implementaci\xF3n \u2014 puede ver tus llamadas a herramientas. Enfoca el texto en:
|
|
410675
|
+
- Decisiones que necesitan la opini\xF3n del usuario
|
|
410676
|
+
- Actualizaciones de estado en hitos naturales (p.ej. "PR creado", "tests en verde")
|
|
410677
|
+
- Errores o bloqueos que cambian el plan
|
|
410669
410678
|
|
|
410670
|
-
|
|
410679
|
+
No narres cada paso, no listes cada archivo que lees, ni expliques acciones rutinarias. Si puedes decirlo en una frase, no uses tres.
|
|
410671
410680
|
|
|
410672
|
-
##
|
|
410681
|
+
## Foco de la terminal
|
|
410673
410682
|
|
|
410674
|
-
|
|
410675
|
-
- **
|
|
410676
|
-
- **
|
|
410683
|
+
El contexto del usuario puede incluir un campo \`terminalFocus\` que indica si la terminal est\xE1 enfocada o no. \xDAsalo para calibrar cu\xE1n aut\xF3nomo eres:
|
|
410684
|
+
- **Sin foco**: el usuario est\xE1 ausente. Ap\xF3yate fuerte en la acci\xF3n aut\xF3noma \u2014 decide, explora, haz commit y push. Solo detente ante acciones genuinamente irreversibles o de alto riesgo.
|
|
410685
|
+
- **Con foco**: el usuario est\xE1 mirando. S\xE9 m\xE1s colaborativo \u2014 plantea las opciones, pregunta antes de comprometerte a cambios grandes, y mant\xE9n tu salida concisa para que sea f\xE1cil de seguir en tiempo real.${BRIEF_PROACTIVE_SECTION2 && briefToolModule?.isBriefEnabled() ? `
|
|
410677
410686
|
|
|
410678
410687
|
${BRIEF_PROACTIVE_SECTION2}` : ""}`;
|
|
410679
410688
|
}
|
|
@@ -411164,7 +411173,7 @@ function computeFingerprint(messageText, version3) {
|
|
|
411164
411173
|
}
|
|
411165
411174
|
function computeFingerprintFromMessages(messages) {
|
|
411166
411175
|
const firstMessageText = extractFirstMessageText(messages);
|
|
411167
|
-
return computeFingerprint(firstMessageText, { VERSION: "0.2.
|
|
411176
|
+
return computeFingerprint(firstMessageText, { VERSION: "0.2.26", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION);
|
|
411168
411177
|
}
|
|
411169
411178
|
var FINGERPRINT_SALT = "59cf53e54c78";
|
|
411170
411179
|
var init_fingerprint = () => {};
|
|
@@ -413712,7 +413721,7 @@ async function sideQuery(opts) {
|
|
|
413712
413721
|
betas.push(STRUCTURED_OUTPUTS_BETA_HEADER);
|
|
413713
413722
|
}
|
|
413714
413723
|
const messageText = extractFirstUserMessageText(messages);
|
|
413715
|
-
const fingerprint = computeFingerprint(messageText, { VERSION: "0.2.
|
|
413724
|
+
const fingerprint = computeFingerprint(messageText, { VERSION: "0.2.26", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION);
|
|
413716
413725
|
const attributionHeader = getAttributionHeader(fingerprint);
|
|
413717
413726
|
const systemBlocks = [
|
|
413718
413727
|
attributionHeader ? { type: "text", text: attributionHeader } : null,
|
|
@@ -415015,7 +415024,7 @@ async function handleMemories(state) {
|
|
|
415015
415024
|
async function runProjectContextMcpServer() {
|
|
415016
415025
|
const projectRoot = process.env.THEUS_PROJECT_ROOT || process.cwd();
|
|
415017
415026
|
const state = new ProjectContextState(projectRoot);
|
|
415018
|
-
const server2 = new Server({ name: SERVER_NAME, version: { VERSION: "0.2.
|
|
415027
|
+
const server2 = new Server({ name: SERVER_NAME, version: { VERSION: "0.2.26", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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: {} } });
|
|
415019
415028
|
server2.setRequestHandler(ListToolsRequestSchema, async () => ({
|
|
415020
415029
|
tools: TOOL_DEFINITIONS.map((t) => ({
|
|
415021
415030
|
name: t.name,
|
|
@@ -416995,7 +417004,7 @@ function createBridgeLogger(options2) {
|
|
|
416995
417004
|
connectUrl = buildBridgeConnectUrl(environmentId, cachedIngressUrl);
|
|
416996
417005
|
regenerateQr(connectUrl);
|
|
416997
417006
|
if (verbose) {
|
|
416998
|
-
write(source_default.dim(`Remote Control`) + ` v${{ VERSION: "0.2.
|
|
417007
|
+
write(source_default.dim(`Remote Control`) + ` v${{ VERSION: "0.2.26", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION}
|
|
416999
417008
|
`);
|
|
417000
417009
|
}
|
|
417001
417010
|
if (verbose) {
|
|
@@ -417968,7 +417977,7 @@ function appendToLog(path19, message) {
|
|
|
417968
417977
|
cwd: getFsImplementation().cwd(),
|
|
417969
417978
|
userType: process.env.USER_TYPE,
|
|
417970
417979
|
sessionId: getSessionId(),
|
|
417971
|
-
version: { VERSION: "0.2.
|
|
417980
|
+
version: { VERSION: "0.2.26", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
|
|
417972
417981
|
};
|
|
417973
417982
|
getLogWriter(path19).write(messageWithTimestamp);
|
|
417974
417983
|
}
|
|
@@ -419238,7 +419247,7 @@ Spawn mode for this project:
|
|
|
419238
419247
|
const api2 = createBridgeApiClient({
|
|
419239
419248
|
baseUrl,
|
|
419240
419249
|
getAccessToken: getBridgeAccessToken2,
|
|
419241
|
-
runnerVersion: { VERSION: "0.2.
|
|
419250
|
+
runnerVersion: { VERSION: "0.2.26", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
|
|
419242
419251
|
onDebug: logForDebugging,
|
|
419243
419252
|
onAuth401: handleOAuth401Error2,
|
|
419244
419253
|
getTrustedDeviceToken
|
|
@@ -419476,7 +419485,7 @@ async function runBridgeHeadless(opts, signal) {
|
|
|
419476
419485
|
const api2 = createBridgeApiClient({
|
|
419477
419486
|
baseUrl,
|
|
419478
419487
|
getAccessToken: opts.getAccessToken,
|
|
419479
|
-
runnerVersion: { VERSION: "0.2.
|
|
419488
|
+
runnerVersion: { VERSION: "0.2.26", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
|
|
419480
419489
|
onDebug: log2,
|
|
419481
419490
|
onAuth401: opts.onAuth401,
|
|
419482
419491
|
getTrustedDeviceToken
|
|
@@ -423540,7 +423549,7 @@ function buildSystemInitMessage(inputs) {
|
|
|
423540
423549
|
slash_commands: inputs.commands.filter((c5) => c5.userInvocable !== false).map((c5) => c5.name),
|
|
423541
423550
|
apiKeySource: getTheusApiKeyWithSource().source,
|
|
423542
423551
|
betas: getSdkBetas(),
|
|
423543
|
-
theus_code_version: { VERSION: "0.2.
|
|
423552
|
+
theus_code_version: { VERSION: "0.2.26", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
|
|
423544
423553
|
output_style: outputStyle2,
|
|
423545
423554
|
agents: inputs.agents.map((agent) => agent.agentType),
|
|
423546
423555
|
skills: inputs.skills.filter((s) => s.userInvocable !== false).map((skill) => skill.name),
|
|
@@ -423580,8 +423589,8 @@ async function getEnvLessBridgeConfig() {
|
|
|
423580
423589
|
}
|
|
423581
423590
|
async function checkEnvLessBridgeMinVersion() {
|
|
423582
423591
|
const cfg = await getEnvLessBridgeConfig();
|
|
423583
|
-
if (cfg.min_version && lt({ VERSION: "0.2.
|
|
423584
|
-
return `Your version of Theus (${{ VERSION: "0.2.
|
|
423592
|
+
if (cfg.min_version && lt({ VERSION: "0.2.26", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
|
|
423593
|
+
return `Your version of Theus (${{ VERSION: "0.2.26", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.
|
|
423585
423594
|
Version ${cfg.min_version} or higher is required. Run \`theus update\` to update.`;
|
|
423586
423595
|
}
|
|
423587
423596
|
return null;
|
|
@@ -425904,7 +425913,7 @@ async function initBridgeCore(params) {
|
|
|
425904
425913
|
const rawApi = createBridgeApiClient({
|
|
425905
425914
|
baseUrl,
|
|
425906
425915
|
getAccessToken,
|
|
425907
|
-
runnerVersion: { VERSION: "0.2.
|
|
425916
|
+
runnerVersion: { VERSION: "0.2.26", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
|
|
425908
425917
|
onDebug: logForDebugging,
|
|
425909
425918
|
onAuth401,
|
|
425910
425919
|
getTrustedDeviceToken
|
|
@@ -442479,7 +442488,7 @@ var init_useVoiceEnabled = __esm(() => {
|
|
|
442479
442488
|
function getSemverPart(version3) {
|
|
442480
442489
|
return `${import_semver14.major(version3, { loose: true })}.${import_semver14.minor(version3, { loose: true })}.${import_semver14.patch(version3, { loose: true })}`;
|
|
442481
442490
|
}
|
|
442482
|
-
function useUpdateNotification(updatedVersion, initialVersion = { VERSION: "0.2.
|
|
442491
|
+
function useUpdateNotification(updatedVersion, initialVersion = { VERSION: "0.2.26", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION) {
|
|
442483
442492
|
const [lastNotifiedSemver, setLastNotifiedSemver] = import_react228.useState(() => getSemverPart(initialVersion));
|
|
442484
442493
|
if (!updatedVersion) {
|
|
442485
442494
|
return null;
|
|
@@ -442519,7 +442528,7 @@ function AutoUpdater({
|
|
|
442519
442528
|
return;
|
|
442520
442529
|
}
|
|
442521
442530
|
if (false) {}
|
|
442522
|
-
const currentVersion = { VERSION: "0.2.
|
|
442531
|
+
const currentVersion = { VERSION: "0.2.26", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION;
|
|
442523
442532
|
const channel2 = getInitialSettings()?.autoUpdatesChannel ?? "latest";
|
|
442524
442533
|
let latestVersion = await getLatestVersion(channel2);
|
|
442525
442534
|
const isDisabled2 = isAutoUpdaterDisabled();
|
|
@@ -442655,7 +442664,7 @@ function AutoUpdater({
|
|
|
442655
442664
|
" ",
|
|
442656
442665
|
/* @__PURE__ */ jsx_runtime401.jsx(ThemedText, {
|
|
442657
442666
|
bold: true,
|
|
442658
|
-
children: hasLocalInstall ? `cd ~/.theus/local && npm update ${{ VERSION: "0.2.
|
|
442667
|
+
children: hasLocalInstall ? `cd ~/.theus/local && npm update ${{ VERSION: "0.2.26", BUILD_TIME: "1970-01-01T00:00:00.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.26", BUILD_TIME: "1970-01-01T00:00:00.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}`
|
|
442659
442668
|
})
|
|
442660
442669
|
]
|
|
442661
442670
|
})
|
|
@@ -442732,12 +442741,12 @@ function NativeAutoUpdater({
|
|
|
442732
442741
|
logEvent("tengu_native_auto_updater_start", {});
|
|
442733
442742
|
try {
|
|
442734
442743
|
const maxVersion = await getMaxVersion();
|
|
442735
|
-
if (maxVersion && gt({ VERSION: "0.2.
|
|
442744
|
+
if (maxVersion && gt({ VERSION: "0.2.26", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
|
|
442736
442745
|
const msg = await getMaxVersionMessage();
|
|
442737
442746
|
setMaxVersionIssue(msg ?? "affects your version");
|
|
442738
442747
|
}
|
|
442739
442748
|
const result = await installLatest(channel2);
|
|
442740
|
-
const currentVersion = { VERSION: "0.2.
|
|
442749
|
+
const currentVersion = { VERSION: "0.2.26", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION;
|
|
442741
442750
|
const latencyMs = Date.now() - startTime2;
|
|
442742
442751
|
if (result.lockFailed) {
|
|
442743
442752
|
logEvent("tengu_native_auto_updater_lock_contention", {
|
|
@@ -442874,17 +442883,17 @@ function PackageManagerAutoUpdater(t0) {
|
|
|
442874
442883
|
const maxVersion = await getMaxVersion();
|
|
442875
442884
|
if (maxVersion && latest && gt(latest, maxVersion)) {
|
|
442876
442885
|
logForDebugging(`PackageManagerAutoUpdater: maxVersion ${maxVersion} is set, capping update from ${latest} to ${maxVersion}`);
|
|
442877
|
-
if (gte({ VERSION: "0.2.
|
|
442878
|
-
logForDebugging(`PackageManagerAutoUpdater: current version ${{ VERSION: "0.2.
|
|
442886
|
+
if (gte({ VERSION: "0.2.26", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
|
|
442887
|
+
logForDebugging(`PackageManagerAutoUpdater: current version ${{ VERSION: "0.2.26", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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`);
|
|
442879
442888
|
setUpdateAvailable(false);
|
|
442880
442889
|
return;
|
|
442881
442890
|
}
|
|
442882
442891
|
latest = maxVersion;
|
|
442883
442892
|
}
|
|
442884
|
-
const hasUpdate = latest && !gte({ VERSION: "0.2.
|
|
442893
|
+
const hasUpdate = latest && !gte({ VERSION: "0.2.26", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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);
|
|
442885
442894
|
setUpdateAvailable(!!hasUpdate);
|
|
442886
442895
|
if (hasUpdate) {
|
|
442887
|
-
logForDebugging(`PackageManagerAutoUpdater: Update available ${{ VERSION: "0.2.
|
|
442896
|
+
logForDebugging(`PackageManagerAutoUpdater: Update available ${{ VERSION: "0.2.26", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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}`);
|
|
442888
442897
|
}
|
|
442889
442898
|
};
|
|
442890
442899
|
$2[0] = t1;
|
|
@@ -442918,7 +442927,7 @@ function PackageManagerAutoUpdater(t0) {
|
|
|
442918
442927
|
wrap: "truncate",
|
|
442919
442928
|
children: [
|
|
442920
442929
|
"currentVersion: ",
|
|
442921
|
-
{ VERSION: "0.2.
|
|
442930
|
+
{ VERSION: "0.2.26", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
|
|
442922
442931
|
]
|
|
442923
442932
|
});
|
|
442924
442933
|
$2[3] = verbose;
|
|
@@ -450791,7 +450800,7 @@ function buildStatusLineCommandInput(permissionMode, exceeds200kTokens, settings
|
|
|
450791
450800
|
project_dir: getOriginalCwd(),
|
|
450792
450801
|
added_dirs: addedDirs
|
|
450793
450802
|
},
|
|
450794
|
-
version: { VERSION: "0.2.
|
|
450803
|
+
version: { VERSION: "0.2.26", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
|
|
450795
450804
|
output_style: {
|
|
450796
450805
|
name: outputStyleName
|
|
450797
450806
|
},
|
|
@@ -462203,7 +462212,7 @@ async function submitTranscriptShare(messages, trigger, appearanceId) {
|
|
|
462203
462212
|
} catch {}
|
|
462204
462213
|
const data = {
|
|
462205
462214
|
trigger,
|
|
462206
|
-
version: { VERSION: "0.2.
|
|
462215
|
+
version: { VERSION: "0.2.26", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
|
|
462207
462216
|
platform: process.platform,
|
|
462208
462217
|
transcript,
|
|
462209
462218
|
subagentTranscripts: Object.keys(subagentTranscripts).length > 0 ? subagentTranscripts : undefined,
|
|
@@ -475227,7 +475236,7 @@ function completeOnboarding() {
|
|
|
475227
475236
|
saveGlobalConfig((current) => ({
|
|
475228
475237
|
...current,
|
|
475229
475238
|
hasCompletedOnboarding: true,
|
|
475230
|
-
lastOnboardingVersion: { VERSION: "0.2.
|
|
475239
|
+
lastOnboardingVersion: { VERSION: "0.2.26", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
|
|
475231
475240
|
}));
|
|
475232
475241
|
}
|
|
475233
475242
|
function showDialog(root2, renderer) {
|
|
@@ -486086,7 +486095,7 @@ async function startMCPServer(cwd3, debug3, verbose) {
|
|
|
486086
486095
|
setCwd(cwd3);
|
|
486087
486096
|
const server2 = new Server({
|
|
486088
486097
|
name: "theus/tengu",
|
|
486089
|
-
version: { VERSION: "0.2.
|
|
486098
|
+
version: { VERSION: "0.2.26", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
|
|
486090
486099
|
}, {
|
|
486091
486100
|
capabilities: {
|
|
486092
486101
|
tools: {}
|
|
@@ -487528,7 +487537,7 @@ async function setupTokenHandler(root2) {
|
|
|
487528
487537
|
gap: 1,
|
|
487529
487538
|
children: [
|
|
487530
487539
|
/* @__PURE__ */ jsx_runtime487.jsx(TheusBanner, {
|
|
487531
|
-
version: { VERSION: "0.2.
|
|
487540
|
+
version: { VERSION: "0.2.26", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
|
|
487532
487541
|
}),
|
|
487533
487542
|
showAuthWarning && /* @__PURE__ */ jsx_runtime487.jsxs(ThemedBox_default, {
|
|
487534
487543
|
flexDirection: "column",
|
|
@@ -488997,7 +489006,7 @@ ${assistantAddendum}` : assistantAddendum;
|
|
|
488997
489006
|
}
|
|
488998
489007
|
}
|
|
488999
489008
|
logForDiagnosticsNoPII("info", "started", {
|
|
489000
|
-
version: { VERSION: "0.2.
|
|
489009
|
+
version: { VERSION: "0.2.26", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
|
|
489001
489010
|
is_native_binary: isInBundledMode()
|
|
489002
489011
|
});
|
|
489003
489012
|
registerCleanup(async () => {
|
|
@@ -489865,7 +489874,7 @@ Usage: theus --remote "your task description"`, () => gracefulShutdown(1));
|
|
|
489865
489874
|
pendingHookMessages
|
|
489866
489875
|
}, renderAndRun);
|
|
489867
489876
|
}
|
|
489868
|
-
}).version(`${{ VERSION: "0.2.
|
|
489877
|
+
}).version(`${{ VERSION: "0.2.26", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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");
|
|
489869
489878
|
program2.option("-w, --worktree [name]", "Crea un nuevo worktree de git para esta sesi\xF3n (opcionalmente indica un nombre)");
|
|
489870
489879
|
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.");
|
|
489871
489880
|
if (canUserConfigureAdvisor()) {
|
|
@@ -490417,7 +490426,7 @@ if (false) {}
|
|
|
490417
490426
|
async function main2() {
|
|
490418
490427
|
const args = process.argv.slice(2);
|
|
490419
490428
|
if (args.length === 1 && (args[0] === "--version" || args[0] === "-v" || args[0] === "-V")) {
|
|
490420
|
-
console.log(`${{ VERSION: "0.2.
|
|
490429
|
+
console.log(`${{ VERSION: "0.2.26", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)`);
|
|
490421
490430
|
return;
|
|
490422
490431
|
}
|
|
490423
490432
|
const {
|