theus-cli 0.2.27 → 0.2.29
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 +155 -139
- 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.29", BUILD_TIME: "1970-01-01T00:00:00.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.29", BUILD_TIME: "1970-01-01T00:00:00.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.29", BUILD_TIME: "1970-01-01T00:00:00.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.29", BUILD_TIME: "1970-01-01T00:00:00.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.29", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.29", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.29", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.29", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.29", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.29", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.29", BUILD_TIME: "1970-01-01T00:00:00.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.29", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.29", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.29", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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();
|
|
@@ -64401,7 +64401,7 @@ function isWorkflowsForced() {
|
|
|
64401
64401
|
var WORKFLOWS_FORCED;
|
|
64402
64402
|
var init_workflowsEnabled = __esm(() => {
|
|
64403
64403
|
init_envUtils();
|
|
64404
|
-
WORKFLOWS_FORCED =
|
|
64404
|
+
WORKFLOWS_FORCED = process.env.THEUS_WORKFLOWS !== "0";
|
|
64405
64405
|
});
|
|
64406
64406
|
|
|
64407
64407
|
// node_modules/react/cjs/react.production.js
|
|
@@ -107807,7 +107807,7 @@ Complete the user's request by providing accurate, documentation-based guidance.
|
|
|
107807
107807
|
}
|
|
107808
107808
|
function getFeedbackGuideline() {
|
|
107809
107809
|
if (isUsing3PServices()) {
|
|
107810
|
-
return `- When you cannot find an answer or the feature doesn't exist, direct the user to ${{ VERSION: "0.2.
|
|
107810
|
+
return `- When you cannot find an answer or the feature doesn't exist, direct the user to ${{ VERSION: "0.2.29", BUILD_TIME: "1970-01-01T00:00:00.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}`;
|
|
107811
107811
|
}
|
|
107812
107812
|
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";
|
|
107813
107813
|
}
|
|
@@ -166516,7 +166516,7 @@ function getTelemetryAttributes() {
|
|
|
166516
166516
|
attributes["session.id"] = sessionId;
|
|
166517
166517
|
}
|
|
166518
166518
|
if (shouldIncludeAttribute("OTEL_METRICS_INCLUDE_VERSION")) {
|
|
166519
|
-
attributes["app.version"] = { VERSION: "0.2.
|
|
166519
|
+
attributes["app.version"] = { VERSION: "0.2.29", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION;
|
|
166520
166520
|
}
|
|
166521
166521
|
const oauthAccount = getOauthAccountInfo();
|
|
166522
166522
|
if (oauthAccount) {
|
|
@@ -202529,7 +202529,7 @@ function getInstallationEnv() {
|
|
|
202529
202529
|
return;
|
|
202530
202530
|
}
|
|
202531
202531
|
function getTheusCodeVersion() {
|
|
202532
|
-
return { VERSION: "0.2.
|
|
202532
|
+
return { VERSION: "0.2.29", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION;
|
|
202533
202533
|
}
|
|
202534
202534
|
async function getInstalledVSCodeExtensionVersion(command) {
|
|
202535
202535
|
const { stdout } = await execFileNoThrow(command, ["--list-extensions", "--show-versions"], {
|
|
@@ -204047,7 +204047,7 @@ async function getMcpHeadersFromHelper(serverName, config2) {
|
|
|
204047
204047
|
if ("scope" in config2 && isMcpServerFromProjectOrLocalSettings(config2) && !getIsNonInteractiveSession()) {
|
|
204048
204048
|
const hasTrust = checkHasTrustDialogAccepted();
|
|
204049
204049
|
if (!hasTrust) {
|
|
204050
|
-
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.
|
|
204050
|
+
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.29", BUILD_TIME: "1970-01-01T00:00:00.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}.`);
|
|
204051
204051
|
logAntError("MCP headersHelper invoked before trust check", error40);
|
|
204052
204052
|
logEvent("tengu_mcp_headersHelper_missing_trust", {});
|
|
204053
204053
|
return null;
|
|
@@ -205257,7 +205257,7 @@ async function setupSdkMcpClients(sdkMcpConfigs, sendMcpMessage) {
|
|
|
205257
205257
|
const client2 = new Client({
|
|
205258
205258
|
name: "theus-code",
|
|
205259
205259
|
title: "Theus",
|
|
205260
|
-
version: { VERSION: "0.2.
|
|
205260
|
+
version: { VERSION: "0.2.29", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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",
|
|
205261
205261
|
description: "Theus's agentic coding tool",
|
|
205262
205262
|
websiteUrl: PRODUCT_URL
|
|
205263
205263
|
}, {
|
|
@@ -205611,7 +205611,7 @@ var init_client5 = __esm(() => {
|
|
|
205611
205611
|
const client2 = new Client({
|
|
205612
205612
|
name: "theus-code",
|
|
205613
205613
|
title: "Theus",
|
|
205614
|
-
version: { VERSION: "0.2.
|
|
205614
|
+
version: { VERSION: "0.2.29", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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",
|
|
205615
205615
|
description: "Theus's agentic coding tool",
|
|
205616
205616
|
websiteUrl: PRODUCT_URL
|
|
205617
205617
|
}, {
|
|
@@ -216189,7 +216189,7 @@ async function initializeBetaTracing(resource) {
|
|
|
216189
216189
|
});
|
|
216190
216190
|
logs.setGlobalLoggerProvider(loggerProvider);
|
|
216191
216191
|
setLoggerProvider(loggerProvider);
|
|
216192
|
-
const eventLogger = logs.getLogger("com.theus.theus_code.events", { VERSION: "0.2.
|
|
216192
|
+
const eventLogger = logs.getLogger("com.theus.theus_code.events", { VERSION: "0.2.29", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION);
|
|
216193
216193
|
setEventLogger(eventLogger);
|
|
216194
216194
|
process.on("beforeExit", async () => {
|
|
216195
216195
|
await loggerProvider?.forceFlush();
|
|
@@ -216229,7 +216229,7 @@ async function initializeTelemetry() {
|
|
|
216229
216229
|
const platform4 = getPlatform();
|
|
216230
216230
|
const baseAttributes = {
|
|
216231
216231
|
[ATTR_SERVICE_NAME]: "theus-code",
|
|
216232
|
-
[ATTR_SERVICE_VERSION]: { VERSION: "0.2.
|
|
216232
|
+
[ATTR_SERVICE_VERSION]: { VERSION: "0.2.29", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
|
|
216233
216233
|
};
|
|
216234
216234
|
if (platform4 === "wsl") {
|
|
216235
216235
|
const wslVersion = getWslVersion();
|
|
@@ -216274,7 +216274,7 @@ async function initializeTelemetry() {
|
|
|
216274
216274
|
} catch {}
|
|
216275
216275
|
};
|
|
216276
216276
|
registerCleanup(shutdownTelemetry2);
|
|
216277
|
-
return meterProvider2.getMeter("com.theus.theus_code", { VERSION: "0.2.
|
|
216277
|
+
return meterProvider2.getMeter("com.theus.theus_code", { VERSION: "0.2.29", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION);
|
|
216278
216278
|
}
|
|
216279
216279
|
const meterProvider = new MeterProvider({
|
|
216280
216280
|
resource,
|
|
@@ -216294,7 +216294,7 @@ async function initializeTelemetry() {
|
|
|
216294
216294
|
});
|
|
216295
216295
|
logs.setGlobalLoggerProvider(loggerProvider);
|
|
216296
216296
|
setLoggerProvider(loggerProvider);
|
|
216297
|
-
const eventLogger = logs.getLogger("com.theus.theus_code.events", { VERSION: "0.2.
|
|
216297
|
+
const eventLogger = logs.getLogger("com.theus.theus_code.events", { VERSION: "0.2.29", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION);
|
|
216298
216298
|
setEventLogger(eventLogger);
|
|
216299
216299
|
logForDebugging("[3P telemetry] Event logger set successfully");
|
|
216300
216300
|
process.on("beforeExit", async () => {
|
|
@@ -216356,7 +216356,7 @@ Current timeout: ${timeoutMs}ms
|
|
|
216356
216356
|
}
|
|
216357
216357
|
};
|
|
216358
216358
|
registerCleanup(shutdownTelemetry);
|
|
216359
|
-
return meterProvider.getMeter("com.theus.theus_code", { VERSION: "0.2.
|
|
216359
|
+
return meterProvider.getMeter("com.theus.theus_code", { VERSION: "0.2.29", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION);
|
|
216360
216360
|
}
|
|
216361
216361
|
async function flushTelemetry() {
|
|
216362
216362
|
const meterProvider = getMeterProvider();
|
|
@@ -216896,7 +216896,7 @@ async function installOrUpdateTheusPackage(channel2, specificVersion) {
|
|
|
216896
216896
|
return "install_failed";
|
|
216897
216897
|
}
|
|
216898
216898
|
const versionSpec = specificVersion ? specificVersion : channel2 === "stable" ? "stable" : "latest";
|
|
216899
|
-
const result = await execFileNoThrowWithCwd("npm", ["install", `${{ VERSION: "0.2.
|
|
216899
|
+
const result = await execFileNoThrowWithCwd("npm", ["install", `${{ VERSION: "0.2.29", BUILD_TIME: "1970-01-01T00:00:00.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 });
|
|
216900
216900
|
if (result.code !== 0) {
|
|
216901
216901
|
const error40 = new Error(`Failed to install Theus CLI package: ${result.stderr}`);
|
|
216902
216902
|
logError2(error40);
|
|
@@ -217042,9 +217042,9 @@ async function assertMinVersion() {
|
|
|
217042
217042
|
if (false) {}
|
|
217043
217043
|
try {
|
|
217044
217044
|
const versionConfig = await getDynamicConfig_BLOCKS_ON_INIT("tengu_version_config", { minVersion: "0.0.0" });
|
|
217045
|
-
if (versionConfig.minVersion && lt({ VERSION: "0.2.
|
|
217045
|
+
if (versionConfig.minVersion && lt({ VERSION: "0.2.29", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
|
|
217046
217046
|
console.error(`
|
|
217047
|
-
It looks like your version of Theus (${{ VERSION: "0.2.
|
|
217047
|
+
It looks like your version of Theus (${{ VERSION: "0.2.29", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.
|
|
217048
217048
|
A newer version (${versionConfig.minVersion} or higher) is required to continue.
|
|
217049
217049
|
|
|
217050
217050
|
To update, please run:
|
|
@@ -217185,7 +217185,7 @@ async function getInstallationPrefix() {
|
|
|
217185
217185
|
return prefixResult.stdout.trim();
|
|
217186
217186
|
}
|
|
217187
217187
|
function getGlobalInstallPackageManager() {
|
|
217188
|
-
if ({ VERSION: "0.2.
|
|
217188
|
+
if ({ VERSION: "0.2.29", BUILD_TIME: "1970-01-01T00:00:00.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") {
|
|
217189
217189
|
return "npm";
|
|
217190
217190
|
}
|
|
217191
217191
|
return env3.isRunningWithBun() ? "bun" : "npm";
|
|
@@ -217210,7 +217210,7 @@ async function checkGlobalInstallPermissions() {
|
|
|
217210
217210
|
}
|
|
217211
217211
|
async function getLatestVersion(channel2) {
|
|
217212
217212
|
const npmTag = channel2 === "stable" ? "stable" : "latest";
|
|
217213
|
-
const result = await execFileNoThrowWithCwd("npm", ["view", `${{ VERSION: "0.2.
|
|
217213
|
+
const result = await execFileNoThrowWithCwd("npm", ["view", `${{ VERSION: "0.2.29", BUILD_TIME: "1970-01-01T00:00:00.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() });
|
|
217214
217214
|
if (result.code !== 0) {
|
|
217215
217215
|
logForDebugging(`npm view failed with code ${result.code}`);
|
|
217216
217216
|
if (result.stderr) {
|
|
@@ -217226,7 +217226,7 @@ async function getLatestVersion(channel2) {
|
|
|
217226
217226
|
return result.stdout.trim();
|
|
217227
217227
|
}
|
|
217228
217228
|
async function getNpmDistTags() {
|
|
217229
|
-
const result = await execFileNoThrowWithCwd("npm", ["view", { VERSION: "0.2.
|
|
217229
|
+
const result = await execFileNoThrowWithCwd("npm", ["view", { VERSION: "0.2.29", BUILD_TIME: "1970-01-01T00:00:00.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() });
|
|
217230
217230
|
if (result.code !== 0) {
|
|
217231
217231
|
logForDebugging(`npm view dist-tags failed with code ${result.code}`);
|
|
217232
217232
|
return { latest: null, stable: null };
|
|
@@ -217266,7 +217266,7 @@ async function installGlobalPackage(specificVersion) {
|
|
|
217266
217266
|
logError2(new AutoUpdaterError("Another process is currently installing an update"));
|
|
217267
217267
|
logEvent("tengu_auto_updater_lock_contention", {
|
|
217268
217268
|
pid: process.pid,
|
|
217269
|
-
currentVersion: { VERSION: "0.2.
|
|
217269
|
+
currentVersion: { VERSION: "0.2.29", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
|
|
217270
217270
|
});
|
|
217271
217271
|
return "in_progress";
|
|
217272
217272
|
}
|
|
@@ -217275,7 +217275,7 @@ async function installGlobalPackage(specificVersion) {
|
|
|
217275
217275
|
if (!env3.isRunningWithBun() && env3.isNpmFromWindowsPath()) {
|
|
217276
217276
|
logError2(new Error("Windows NPM detected in WSL environment"));
|
|
217277
217277
|
logEvent("tengu_auto_updater_windows_npm_in_wsl", {
|
|
217278
|
-
currentVersion: { VERSION: "0.2.
|
|
217278
|
+
currentVersion: { VERSION: "0.2.29", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
|
|
217279
217279
|
});
|
|
217280
217280
|
console.error(`
|
|
217281
217281
|
Error: Windows NPM detected in WSL
|
|
@@ -217294,7 +217294,7 @@ To fix this issue:
|
|
|
217294
217294
|
if (!hasPermissions) {
|
|
217295
217295
|
return "no_permissions";
|
|
217296
217296
|
}
|
|
217297
|
-
const packageSpec = specificVersion ? `${{ VERSION: "0.2.
|
|
217297
|
+
const packageSpec = specificVersion ? `${{ VERSION: "0.2.29", BUILD_TIME: "1970-01-01T00:00:00.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.29", BUILD_TIME: "1970-01-01T00:00:00.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;
|
|
217298
217298
|
const packageManager = getGlobalInstallPackageManager();
|
|
217299
217299
|
const installResult = await execFileNoThrowWithCwd(packageManager, ["install", "-g", packageSpec], { cwd: homedir18() });
|
|
217300
217300
|
if (installResult.code !== 0) {
|
|
@@ -217622,8 +217622,8 @@ async function detectMultipleInstallations() {
|
|
|
217622
217622
|
installations.push({ type: "npm-local", path: localPath });
|
|
217623
217623
|
}
|
|
217624
217624
|
const packagesToCheck = ["@theus-ai/theus-code"];
|
|
217625
|
-
if ({ VERSION: "0.2.
|
|
217626
|
-
packagesToCheck.push({ VERSION: "0.2.
|
|
217625
|
+
if ({ VERSION: "0.2.29", BUILD_TIME: "1970-01-01T00:00:00.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.29", BUILD_TIME: "1970-01-01T00:00:00.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") {
|
|
217626
|
+
packagesToCheck.push({ VERSION: "0.2.29", BUILD_TIME: "1970-01-01T00:00:00.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);
|
|
217627
217627
|
}
|
|
217628
217628
|
const npmResult = await execFileNoThrow("npm", [
|
|
217629
217629
|
"-g",
|
|
@@ -217806,7 +217806,7 @@ function detectLinuxGlobPatternWarnings() {
|
|
|
217806
217806
|
}
|
|
217807
217807
|
async function getDoctorDiagnostic() {
|
|
217808
217808
|
const installationType = await getCurrentInstallationType();
|
|
217809
|
-
const version2 = { VERSION: "0.2.
|
|
217809
|
+
const version2 = { VERSION: "0.2.29", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.29", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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";
|
|
217810
217810
|
const installationPath = await getInstallationPath();
|
|
217811
217811
|
const invokedBinary = getInvokedBinary();
|
|
217812
217812
|
const multipleInstallations = await detectMultipleInstallations();
|
|
@@ -217818,8 +217818,8 @@ async function getDoctorDiagnostic() {
|
|
|
217818
217818
|
for (const install of npmInstalls) {
|
|
217819
217819
|
if (install.type === "npm-global") {
|
|
217820
217820
|
let uninstallCmd = "npm -g uninstall @theus-ai/theus-code";
|
|
217821
|
-
if ({ VERSION: "0.2.
|
|
217822
|
-
uninstallCmd += ` && npm -g uninstall ${{ VERSION: "0.2.
|
|
217821
|
+
if ({ VERSION: "0.2.29", BUILD_TIME: "1970-01-01T00:00:00.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.29", BUILD_TIME: "1970-01-01T00:00:00.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") {
|
|
217822
|
+
uninstallCmd += ` && npm -g uninstall ${{ VERSION: "0.2.29", BUILD_TIME: "1970-01-01T00:00:00.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}`;
|
|
217823
217823
|
}
|
|
217824
217824
|
warnings.push({
|
|
217825
217825
|
issue: `Leftover npm global installation at ${install.path}`,
|
|
@@ -217931,7 +217931,7 @@ async function getLatestVersionFromArtifactory(tag2 = "latest") {
|
|
|
217931
217931
|
const startTime2 = Date.now();
|
|
217932
217932
|
const { stdout, code, stderr } = await execFileNoThrowWithCwd("npm", [
|
|
217933
217933
|
"view",
|
|
217934
|
-
`${{ VERSION: "0.2.
|
|
217934
|
+
`${{ VERSION: "0.2.29", BUILD_TIME: "1970-01-01T00:00:00.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}`,
|
|
217935
217935
|
"version",
|
|
217936
217936
|
"--prefer-online",
|
|
217937
217937
|
"--registry",
|
|
@@ -217955,7 +217955,7 @@ async function getLatestVersionFromArtifactory(tag2 = "latest") {
|
|
|
217955
217955
|
latency_ms: latencyMs,
|
|
217956
217956
|
source_npm: true
|
|
217957
217957
|
});
|
|
217958
|
-
logForDebugging(`npm view ${{ VERSION: "0.2.
|
|
217958
|
+
logForDebugging(`npm view ${{ VERSION: "0.2.29", BUILD_TIME: "1970-01-01T00:00:00.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}`);
|
|
217959
217959
|
const latestVersion = stdout.trim();
|
|
217960
217960
|
return latestVersion;
|
|
217961
217961
|
}
|
|
@@ -218011,7 +218011,7 @@ async function downloadVersionFromArtifactory(version2, stagingPath) {
|
|
|
218011
218011
|
const fs3 = getFsImplementation();
|
|
218012
218012
|
await fs3.rm(stagingPath, { recursive: true, force: true });
|
|
218013
218013
|
const platform4 = getPlatform2();
|
|
218014
|
-
const platformPackageName = `${{ VERSION: "0.2.
|
|
218014
|
+
const platformPackageName = `${{ VERSION: "0.2.29", BUILD_TIME: "1970-01-01T00:00:00.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}`;
|
|
218015
218015
|
logForDebugging(`Fetching integrity hash for ${platformPackageName}@${version2}`);
|
|
218016
218016
|
const {
|
|
218017
218017
|
stdout: integrityOutput,
|
|
@@ -218040,7 +218040,7 @@ async function downloadVersionFromArtifactory(version2, stagingPath) {
|
|
|
218040
218040
|
name: "theus-native-installer",
|
|
218041
218041
|
version: "0.0.1",
|
|
218042
218042
|
dependencies: {
|
|
218043
|
-
[{ VERSION: "0.2.
|
|
218043
|
+
[{ VERSION: "0.2.29", BUILD_TIME: "1970-01-01T00:00:00.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
|
|
218044
218044
|
}
|
|
218045
218045
|
};
|
|
218046
218046
|
const packageLock = {
|
|
@@ -218053,10 +218053,10 @@ async function downloadVersionFromArtifactory(version2, stagingPath) {
|
|
|
218053
218053
|
name: "theus-native-installer",
|
|
218054
218054
|
version: "0.0.1",
|
|
218055
218055
|
dependencies: {
|
|
218056
|
-
[{ VERSION: "0.2.
|
|
218056
|
+
[{ VERSION: "0.2.29", BUILD_TIME: "1970-01-01T00:00:00.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
|
|
218057
218057
|
}
|
|
218058
218058
|
},
|
|
218059
|
-
[`node_modules/${{ VERSION: "0.2.
|
|
218059
|
+
[`node_modules/${{ VERSION: "0.2.29", BUILD_TIME: "1970-01-01T00:00:00.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}`]: {
|
|
218060
218060
|
version: version2,
|
|
218061
218061
|
optionalDependencies: {
|
|
218062
218062
|
[platformPackageName]: version2
|
|
@@ -218078,7 +218078,7 @@ async function downloadVersionFromArtifactory(version2, stagingPath) {
|
|
|
218078
218078
|
if (result.code !== 0) {
|
|
218079
218079
|
throw new Error(`npm ci failed with code ${result.code}: ${result.stderr}`);
|
|
218080
218080
|
}
|
|
218081
|
-
logForDebugging(`Successfully downloaded and verified ${{ VERSION: "0.2.
|
|
218081
|
+
logForDebugging(`Successfully downloaded and verified ${{ VERSION: "0.2.29", BUILD_TIME: "1970-01-01T00:00:00.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}`);
|
|
218082
218082
|
}
|
|
218083
218083
|
function getStallTimeoutMs() {
|
|
218084
218084
|
return Number(process.env.THEUS_CODE_STALL_TIMEOUT_MS_FOR_TESTING) || DEFAULT_STALL_TIMEOUT_MS;
|
|
@@ -218741,8 +218741,8 @@ async function updateLatest(channelOrVersion, forceReinstall = false) {
|
|
|
218741
218741
|
const maxVersion = await getMaxVersion();
|
|
218742
218742
|
if (maxVersion && gt(version2, maxVersion)) {
|
|
218743
218743
|
logForDebugging(`Native installer: maxVersion ${maxVersion} is set, capping update from ${version2} to ${maxVersion}`);
|
|
218744
|
-
if (gte({ VERSION: "0.2.
|
|
218745
|
-
logForDebugging(`Native installer: current version ${{ VERSION: "0.2.
|
|
218744
|
+
if (gte({ VERSION: "0.2.29", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
|
|
218745
|
+
logForDebugging(`Native installer: current version ${{ VERSION: "0.2.29", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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`);
|
|
218746
218746
|
logEvent("tengu_native_update_skipped_max_version", {
|
|
218747
218747
|
latency_ms: Date.now() - startTime2,
|
|
218748
218748
|
max_version: maxVersion,
|
|
@@ -218753,7 +218753,7 @@ async function updateLatest(channelOrVersion, forceReinstall = false) {
|
|
|
218753
218753
|
version2 = maxVersion;
|
|
218754
218754
|
}
|
|
218755
218755
|
}
|
|
218756
|
-
if (!forceReinstall && version2 === { VERSION: "0.2.
|
|
218756
|
+
if (!forceReinstall && version2 === { VERSION: "0.2.29", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
|
|
218757
218757
|
logForDebugging(`Found ${version2} at ${executablePath}, skipping install`);
|
|
218758
218758
|
logEvent("tengu_native_update_complete", {
|
|
218759
218759
|
latency_ms: Date.now() - startTime2,
|
|
@@ -219503,8 +219503,8 @@ async function cleanupNpmInstallations() {
|
|
|
219503
219503
|
} else if (codePackageResult.error) {
|
|
219504
219504
|
errors4.push(codePackageResult.error);
|
|
219505
219505
|
}
|
|
219506
|
-
if ({ VERSION: "0.2.
|
|
219507
|
-
const macroPackageResult = await attemptNpmUninstall({ VERSION: "0.2.
|
|
219506
|
+
if ({ VERSION: "0.2.29", BUILD_TIME: "1970-01-01T00:00:00.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.29", BUILD_TIME: "1970-01-01T00:00:00.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") {
|
|
219507
|
+
const macroPackageResult = await attemptNpmUninstall({ VERSION: "0.2.29", BUILD_TIME: "1970-01-01T00:00:00.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);
|
|
219508
219508
|
if (macroPackageResult.success) {
|
|
219509
219509
|
removed++;
|
|
219510
219510
|
if (macroPackageResult.warning) {
|
|
@@ -301780,9 +301780,9 @@ function getTheusEnvMetadata() {
|
|
|
301780
301780
|
};
|
|
301781
301781
|
}
|
|
301782
301782
|
function getBuildAgeMinutes() {
|
|
301783
|
-
if (!{ VERSION: "0.2.
|
|
301783
|
+
if (!{ VERSION: "0.2.29", BUILD_TIME: "1970-01-01T00:00:00.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)
|
|
301784
301784
|
return;
|
|
301785
|
-
const buildTime = new Date({ VERSION: "0.2.
|
|
301785
|
+
const buildTime = new Date({ VERSION: "0.2.29", BUILD_TIME: "1970-01-01T00:00:00.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();
|
|
301786
301786
|
if (isNaN(buildTime))
|
|
301787
301787
|
return;
|
|
301788
301788
|
return Math.floor((Date.now() - buildTime) / 60000);
|
|
@@ -318236,7 +318236,7 @@ function getAssistantMessageFromError(error40, model, options2) {
|
|
|
318236
318236
|
if (process.env.USER_TYPE === "ant") {
|
|
318237
318237
|
const baseMessage = `API Error: 400 ${error40.message}
|
|
318238
318238
|
|
|
318239
|
-
Run /share and post the JSON file to ${{ VERSION: "0.2.
|
|
318239
|
+
Run /share and post the JSON file to ${{ VERSION: "0.2.29", BUILD_TIME: "1970-01-01T00:00:00.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}.`;
|
|
318240
318240
|
const rewindInstruction = getIsNonInteractiveSession() ? "" : " Then, use /rewind to recover the conversation.";
|
|
318241
318241
|
return createAssistantAPIErrorMessage({
|
|
318242
318242
|
content: baseMessage + rewindInstruction,
|
|
@@ -318272,7 +318272,7 @@ Run /share and post the JSON file to ${{ VERSION: "0.2.27", BUILD_TIME: "1970-01
|
|
|
318272
318272
|
if (process.env.USER_TYPE === "ant" && !process.env.THEUS_MODEL && error40 instanceof Error && error40.message.toLowerCase().includes("invalid model name")) {
|
|
318273
318273
|
const orgId = getOauthAccountInfo()?.organizationUuid;
|
|
318274
318274
|
const baseMsg = `[THEUS-INTERNAL] Your org isn't gated into the \`${model}\` model. Either run \`theus\` with \`THEUS_MODEL=${getDefaultMainLoopModelSetting()}\``;
|
|
318275
|
-
const msg = orgId ? `${baseMsg} or share your orgId (${orgId}) in ${{ VERSION: "0.2.
|
|
318275
|
+
const msg = orgId ? `${baseMsg} or share your orgId (${orgId}) in ${{ VERSION: "0.2.29", BUILD_TIME: "1970-01-01T00:00:00.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.29", BUILD_TIME: "1970-01-01T00:00:00.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.`;
|
|
318276
318276
|
return createAssistantAPIErrorMessage({
|
|
318277
318277
|
content: msg,
|
|
318278
318278
|
error: "invalid_request"
|
|
@@ -328376,7 +328376,7 @@ function buildPrimarySection() {
|
|
|
328376
328376
|
});
|
|
328377
328377
|
return [{
|
|
328378
328378
|
label: "Version",
|
|
328379
|
-
value: { VERSION: "0.2.
|
|
328379
|
+
value: { VERSION: "0.2.29", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
|
|
328380
328380
|
}, {
|
|
328381
328381
|
label: "Session name",
|
|
328382
328382
|
value: nameValue
|
|
@@ -332192,7 +332192,7 @@ function Config({
|
|
|
332192
332192
|
}
|
|
332193
332193
|
})
|
|
332194
332194
|
}) : showSubmenu === "ChannelDowngrade" ? /* @__PURE__ */ jsx_runtime185.jsx(ChannelDowngradeDialog, {
|
|
332195
|
-
currentVersion: { VERSION: "0.2.
|
|
332195
|
+
currentVersion: { VERSION: "0.2.29", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
|
|
332196
332196
|
onChoice: (choice) => {
|
|
332197
332197
|
setShowSubmenu(null);
|
|
332198
332198
|
setTabsHidden(false);
|
|
@@ -332204,7 +332204,7 @@ function Config({
|
|
|
332204
332204
|
autoUpdatesChannel: "stable"
|
|
332205
332205
|
};
|
|
332206
332206
|
if (choice === "stay") {
|
|
332207
|
-
newSettings.minimumVersion = { VERSION: "0.2.
|
|
332207
|
+
newSettings.minimumVersion = { VERSION: "0.2.29", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION;
|
|
332208
332208
|
}
|
|
332209
332209
|
updateSettingsForSource("userSettings", newSettings);
|
|
332210
332210
|
setSettingsData((prev_27) => ({
|
|
@@ -340238,7 +340238,7 @@ function HelpV2(t0) {
|
|
|
340238
340238
|
let t6;
|
|
340239
340239
|
if ($2[31] !== tabs) {
|
|
340240
340240
|
t6 = /* @__PURE__ */ jsx_runtime212.jsx(Tabs, {
|
|
340241
|
-
title: `Theus v${{ VERSION: "0.2.
|
|
340241
|
+
title: `Theus v${{ VERSION: "0.2.29", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION}`,
|
|
340242
340242
|
color: "professionalBlue",
|
|
340243
340243
|
defaultTab: "general",
|
|
340244
340244
|
children: tabs
|
|
@@ -356959,6 +356959,22 @@ var init_mcp3 = __esm(() => {
|
|
|
356959
356959
|
var NOVEDADES;
|
|
356960
356960
|
var init_data = __esm(() => {
|
|
356961
356961
|
NOVEDADES = [
|
|
356962
|
+
{
|
|
356963
|
+
version: "v0.2.29",
|
|
356964
|
+
fecha: "2026-07-13",
|
|
356965
|
+
titulo: "/multiplesagentes ahora aparece por defecto",
|
|
356966
|
+
puntos: [
|
|
356967
|
+
"El comando /multiplesagentes (orquestaci\xF3n multi-agente) ya viene encendido por defecto y aparece en la lista de comandos sin configurar nada, igual que /brief, /fork y /buddy. Para desactivarlo, arranca con THEUS_WORKFLOWS=0."
|
|
356968
|
+
]
|
|
356969
|
+
},
|
|
356970
|
+
{
|
|
356971
|
+
version: "v0.2.28",
|
|
356972
|
+
fecha: "2026-07-13",
|
|
356973
|
+
titulo: "El comando de orquestaci\xF3n ahora es /multiplesagentes",
|
|
356974
|
+
puntos: [
|
|
356975
|
+
"Espa\xF1ol-first: el comando de orquestaci\xF3n multi-agente pasa de /workflows a /multiplesagentes. Sigue en beta opt-in (THEUS_WORKFLOWS); /workflows queda como alias por compatibilidad."
|
|
356976
|
+
]
|
|
356977
|
+
},
|
|
356962
356978
|
{
|
|
356963
356979
|
version: "v0.2.27",
|
|
356964
356980
|
fecha: "2026-07-13",
|
|
@@ -358629,7 +358645,7 @@ function Onboarding({
|
|
|
358629
358645
|
flexDirection: "column",
|
|
358630
358646
|
children: [
|
|
358631
358647
|
/* @__PURE__ */ jsx_runtime245.jsx(TheusBanner, {
|
|
358632
|
-
version: { VERSION: "0.2.
|
|
358648
|
+
version: { VERSION: "0.2.29", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
|
|
358633
358649
|
}),
|
|
358634
358650
|
/* @__PURE__ */ jsx_runtime245.jsxs(ThemedBox_default, {
|
|
358635
358651
|
flexDirection: "column",
|
|
@@ -358974,9 +358990,9 @@ function getAllReleaseNotes(changelogContent = getStoredChangelogFromMemory()) {
|
|
|
358974
358990
|
return [];
|
|
358975
358991
|
}
|
|
358976
358992
|
}
|
|
358977
|
-
async function checkForReleaseNotes(lastSeenVersion, currentVersion = { VERSION: "0.2.
|
|
358993
|
+
async function checkForReleaseNotes(lastSeenVersion, currentVersion = { VERSION: "0.2.29", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION) {
|
|
358978
358994
|
if (process.env.USER_TYPE === "ant") {
|
|
358979
|
-
const changelog = { VERSION: "0.2.
|
|
358995
|
+
const changelog = { VERSION: "0.2.29", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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;
|
|
358980
358996
|
if (changelog) {
|
|
358981
358997
|
const commits = changelog.trim().split(`
|
|
358982
358998
|
`).filter(Boolean);
|
|
@@ -363379,7 +363395,7 @@ var init_Messages = __esm(() => {
|
|
|
363379
363395
|
let t1;
|
|
363380
363396
|
if ($2[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
363381
363397
|
t1 = /* @__PURE__ */ jsx_runtime258.jsx(TheusSessionHeader, {
|
|
363382
|
-
version: { VERSION: "0.2.
|
|
363398
|
+
version: { VERSION: "0.2.29", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
|
|
363383
363399
|
});
|
|
363384
363400
|
$2[0] = t1;
|
|
363385
363401
|
} else {
|
|
@@ -391423,7 +391439,7 @@ async function captureMemoryDiagnostics(trigger, dumpNumber = 0) {
|
|
|
391423
391439
|
smapsRollup,
|
|
391424
391440
|
platform: process.platform,
|
|
391425
391441
|
nodeVersion: process.version,
|
|
391426
|
-
ccVersion: { VERSION: "0.2.
|
|
391442
|
+
ccVersion: { VERSION: "0.2.29", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
|
|
391427
391443
|
};
|
|
391428
391444
|
}
|
|
391429
391445
|
async function performHeapDump(trigger = "manual", dumpNumber = 0) {
|
|
@@ -392009,7 +392025,7 @@ var init_bridge_kick = __esm(() => {
|
|
|
392009
392025
|
var call57 = async () => {
|
|
392010
392026
|
return {
|
|
392011
392027
|
type: "text",
|
|
392012
|
-
value: { VERSION: "0.2.
|
|
392028
|
+
value: { VERSION: "0.2.29", BUILD_TIME: "1970-01-01T00:00:00.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.29", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.29", BUILD_TIME: "1970-01-01T00:00:00.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.29", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
|
|
392013
392029
|
};
|
|
392014
392030
|
}, version2, version_default;
|
|
392015
392031
|
var init_version = __esm(() => {
|
|
@@ -396451,13 +396467,13 @@ async function updateReleaseBundle() {
|
|
|
396451
396467
|
await gracefulShutdown(1);
|
|
396452
396468
|
return;
|
|
396453
396469
|
}
|
|
396454
|
-
if (gte({ VERSION: "0.2.
|
|
396455
|
-
writeToStdout(source_default.green(`Theus is up to date (${{ VERSION: "0.2.
|
|
396470
|
+
if (gte({ VERSION: "0.2.29", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
|
|
396471
|
+
writeToStdout(source_default.green(`Theus is up to date (${{ VERSION: "0.2.29", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION})`) + `
|
|
396456
396472
|
`);
|
|
396457
396473
|
await gracefulShutdown(0);
|
|
396458
396474
|
return;
|
|
396459
396475
|
}
|
|
396460
|
-
writeToStdout(`New version available: ${latest} (current: ${{ VERSION: "0.2.
|
|
396476
|
+
writeToStdout(`New version available: ${latest} (current: ${{ VERSION: "0.2.29", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION})
|
|
396461
396477
|
`);
|
|
396462
396478
|
writeToStdout(`Installing update from theus.pe/dl...
|
|
396463
396479
|
`);
|
|
@@ -396491,7 +396507,7 @@ async function updateReleaseBundle() {
|
|
|
396491
396507
|
return;
|
|
396492
396508
|
}
|
|
396493
396509
|
cpSync(staged, bundleDir, { recursive: true, force: true });
|
|
396494
|
-
writeToStdout(source_default.green(`Successfully updated from ${{ VERSION: "0.2.
|
|
396510
|
+
writeToStdout(source_default.green(`Successfully updated from ${{ VERSION: "0.2.29", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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}`) + `
|
|
396495
396511
|
`);
|
|
396496
396512
|
await regenerateCompletionCache();
|
|
396497
396513
|
} finally {
|
|
@@ -396504,7 +396520,7 @@ async function updateReleaseBundle() {
|
|
|
396504
396520
|
async function update() {
|
|
396505
396521
|
logEvent("tengu_update_check", {});
|
|
396506
396522
|
await updateNaupa();
|
|
396507
|
-
writeToStdout(`Current version: ${{ VERSION: "0.2.
|
|
396523
|
+
writeToStdout(`Current version: ${{ VERSION: "0.2.29", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION}
|
|
396508
396524
|
`);
|
|
396509
396525
|
const channel2 = getInitialSettings()?.autoUpdatesChannel ?? "latest";
|
|
396510
396526
|
writeToStdout(`Checking for updates to ${channel2} version...
|
|
@@ -396583,8 +396599,8 @@ async function update() {
|
|
|
396583
396599
|
writeToStdout(`Theus is managed by Homebrew.
|
|
396584
396600
|
`);
|
|
396585
396601
|
const latest = await getLatestVersion(channel2);
|
|
396586
|
-
if (latest && !gte({ VERSION: "0.2.
|
|
396587
|
-
writeToStdout(`Update available: ${{ VERSION: "0.2.
|
|
396602
|
+
if (latest && !gte({ VERSION: "0.2.29", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
|
|
396603
|
+
writeToStdout(`Update available: ${{ VERSION: "0.2.29", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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}
|
|
396588
396604
|
`);
|
|
396589
396605
|
writeToStdout(`
|
|
396590
396606
|
`);
|
|
@@ -396600,8 +396616,8 @@ async function update() {
|
|
|
396600
396616
|
writeToStdout(`Theus is managed by winget.
|
|
396601
396617
|
`);
|
|
396602
396618
|
const latest = await getLatestVersion(channel2);
|
|
396603
|
-
if (latest && !gte({ VERSION: "0.2.
|
|
396604
|
-
writeToStdout(`Update available: ${{ VERSION: "0.2.
|
|
396619
|
+
if (latest && !gte({ VERSION: "0.2.29", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
|
|
396620
|
+
writeToStdout(`Update available: ${{ VERSION: "0.2.29", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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}
|
|
396605
396621
|
`);
|
|
396606
396622
|
writeToStdout(`
|
|
396607
396623
|
`);
|
|
@@ -396617,8 +396633,8 @@ async function update() {
|
|
|
396617
396633
|
writeToStdout(`Theus is managed by apk.
|
|
396618
396634
|
`);
|
|
396619
396635
|
const latest = await getLatestVersion(channel2);
|
|
396620
|
-
if (latest && !gte({ VERSION: "0.2.
|
|
396621
|
-
writeToStdout(`Update available: ${{ VERSION: "0.2.
|
|
396636
|
+
if (latest && !gte({ VERSION: "0.2.29", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
|
|
396637
|
+
writeToStdout(`Update available: ${{ VERSION: "0.2.29", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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}
|
|
396622
396638
|
`);
|
|
396623
396639
|
writeToStdout(`
|
|
396624
396640
|
`);
|
|
@@ -396683,11 +396699,11 @@ async function update() {
|
|
|
396683
396699
|
`);
|
|
396684
396700
|
await gracefulShutdown(1);
|
|
396685
396701
|
}
|
|
396686
|
-
if (result.latestVersion === { VERSION: "0.2.
|
|
396687
|
-
writeToStdout(source_default.green(`Theus is up to date (${{ VERSION: "0.2.
|
|
396702
|
+
if (result.latestVersion === { VERSION: "0.2.29", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION) {
|
|
396703
|
+
writeToStdout(source_default.green(`Theus is up to date (${{ VERSION: "0.2.29", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION})`) + `
|
|
396688
396704
|
`);
|
|
396689
396705
|
} else {
|
|
396690
|
-
writeToStdout(source_default.green(`Successfully updated from ${{ VERSION: "0.2.
|
|
396706
|
+
writeToStdout(source_default.green(`Successfully updated from ${{ VERSION: "0.2.29", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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}`) + `
|
|
396691
396707
|
`);
|
|
396692
396708
|
await regenerateCompletionCache();
|
|
396693
396709
|
}
|
|
@@ -396706,9 +396722,9 @@ async function update() {
|
|
|
396706
396722
|
await removeInstalledSymlink();
|
|
396707
396723
|
}
|
|
396708
396724
|
logForDebugging("update: Checking npm registry for latest version");
|
|
396709
|
-
logForDebugging(`update: Package URL: ${{ VERSION: "0.2.
|
|
396725
|
+
logForDebugging(`update: Package URL: ${{ VERSION: "0.2.29", BUILD_TIME: "1970-01-01T00:00:00.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}`);
|
|
396710
396726
|
const npmTag = channel2 === "stable" ? "stable" : "latest";
|
|
396711
|
-
const npmCommand = `npm view ${{ VERSION: "0.2.
|
|
396727
|
+
const npmCommand = `npm view ${{ VERSION: "0.2.29", BUILD_TIME: "1970-01-01T00:00:00.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`;
|
|
396712
396728
|
logForDebugging(`update: Running: ${npmCommand}`);
|
|
396713
396729
|
const latestVersion = await getLatestVersion(channel2);
|
|
396714
396730
|
logForDebugging(`update: Latest version from npm: ${latestVersion || "FAILED"}`);
|
|
@@ -396728,7 +396744,7 @@ async function update() {
|
|
|
396728
396744
|
`);
|
|
396729
396745
|
process.stderr.write(` \u2022 Corporate proxy/firewall blocking npm
|
|
396730
396746
|
`);
|
|
396731
|
-
if ({ VERSION: "0.2.
|
|
396747
|
+
if ({ VERSION: "0.2.29", BUILD_TIME: "1970-01-01T00:00:00.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.29", BUILD_TIME: "1970-01-01T00:00:00.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")) {
|
|
396732
396748
|
process.stderr.write(` \u2022 Internal/development build not published to npm
|
|
396733
396749
|
`);
|
|
396734
396750
|
}
|
|
@@ -396740,19 +396756,19 @@ async function update() {
|
|
|
396740
396756
|
`);
|
|
396741
396757
|
process.stderr.write(` \u2022 Run with --debug flag for more details
|
|
396742
396758
|
`);
|
|
396743
|
-
const packageName = { VERSION: "0.2.
|
|
396759
|
+
const packageName = { VERSION: "0.2.29", BUILD_TIME: "1970-01-01T00:00:00.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");
|
|
396744
396760
|
process.stderr.write(` \u2022 Manually check: npm view ${packageName} version
|
|
396745
396761
|
`);
|
|
396746
396762
|
process.stderr.write(` \u2022 Check if you need to login: npm whoami
|
|
396747
396763
|
`);
|
|
396748
396764
|
await gracefulShutdown(1);
|
|
396749
396765
|
}
|
|
396750
|
-
if (gte({ VERSION: "0.2.
|
|
396751
|
-
writeToStdout(source_default.green(`Theus is up to date (${{ VERSION: "0.2.
|
|
396766
|
+
if (gte({ VERSION: "0.2.29", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
|
|
396767
|
+
writeToStdout(source_default.green(`Theus is up to date (${{ VERSION: "0.2.29", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION})`) + `
|
|
396752
396768
|
`);
|
|
396753
396769
|
await gracefulShutdown(0);
|
|
396754
396770
|
}
|
|
396755
|
-
writeToStdout(`New version available: ${latestVersion} (current: ${{ VERSION: "0.2.
|
|
396771
|
+
writeToStdout(`New version available: ${latestVersion} (current: ${{ VERSION: "0.2.29", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION})
|
|
396756
396772
|
`);
|
|
396757
396773
|
writeToStdout(`Installing update...
|
|
396758
396774
|
`);
|
|
@@ -396797,7 +396813,7 @@ async function update() {
|
|
|
396797
396813
|
logForDebugging(`update: Installation status: ${status2}`);
|
|
396798
396814
|
switch (status2) {
|
|
396799
396815
|
case "success":
|
|
396800
|
-
writeToStdout(source_default.green(`Successfully updated from ${{ VERSION: "0.2.
|
|
396816
|
+
writeToStdout(source_default.green(`Successfully updated from ${{ VERSION: "0.2.29", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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}`) + `
|
|
396801
396817
|
`);
|
|
396802
396818
|
await regenerateCompletionCache();
|
|
396803
396819
|
break;
|
|
@@ -396807,7 +396823,7 @@ async function update() {
|
|
|
396807
396823
|
if (useLocalUpdate) {
|
|
396808
396824
|
process.stderr.write(`Try manually updating with:
|
|
396809
396825
|
`);
|
|
396810
|
-
process.stderr.write(` cd ~/.theus/local && npm update ${{ VERSION: "0.2.
|
|
396826
|
+
process.stderr.write(` cd ~/.theus/local && npm update ${{ VERSION: "0.2.29", BUILD_TIME: "1970-01-01T00:00:00.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}
|
|
396811
396827
|
`);
|
|
396812
396828
|
} else {
|
|
396813
396829
|
process.stderr.write(`Try running with sudo or fix npm permissions
|
|
@@ -396823,7 +396839,7 @@ async function update() {
|
|
|
396823
396839
|
if (useLocalUpdate) {
|
|
396824
396840
|
process.stderr.write(`Try manually updating with:
|
|
396825
396841
|
`);
|
|
396826
|
-
process.stderr.write(` cd ~/.theus/local && npm update ${{ VERSION: "0.2.
|
|
396842
|
+
process.stderr.write(` cd ~/.theus/local && npm update ${{ VERSION: "0.2.29", BUILD_TIME: "1970-01-01T00:00:00.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}
|
|
396827
396843
|
`);
|
|
396828
396844
|
} else {
|
|
396829
396845
|
process.stderr.write(`Or consider using native installation with: theus install
|
|
@@ -400942,13 +400958,13 @@ function collectWorkflows(cwd2) {
|
|
|
400942
400958
|
}
|
|
400943
400959
|
function renderList(cwd2) {
|
|
400944
400960
|
const { registered, files: files2 } = collectWorkflows(cwd2);
|
|
400945
|
-
const lines = ["
|
|
400961
|
+
const lines = ["M\xFAltiples agentes \u2014 orquestaci\xF3n multi-agente por scripts (/multiplesagentes).", ""];
|
|
400946
400962
|
if (registered.length === 0 && files2.length === 0) {
|
|
400947
|
-
lines.push("No hay
|
|
400963
|
+
lines.push("No hay orquestaciones disponibles todav\xEDa.");
|
|
400948
400964
|
lines.push("");
|
|
400949
400965
|
lines.push("Crea uno en .theus/workflows/<nombre>.js que exporte `meta` y una");
|
|
400950
400966
|
lines.push("funci\xF3n por defecto async(ctx) usando agent()/parallel()/pipeline()/");
|
|
400951
|
-
lines.push("phase()/log(). Luego: /
|
|
400967
|
+
lines.push("phase()/log(). Luego: /multiplesagentes <nombre>");
|
|
400952
400968
|
return lines.join(`
|
|
400953
400969
|
`);
|
|
400954
400970
|
}
|
|
@@ -400966,7 +400982,7 @@ function renderList(cwd2) {
|
|
|
400966
400982
|
}
|
|
400967
400983
|
lines.push("");
|
|
400968
400984
|
}
|
|
400969
|
-
lines.push("Ejecuta uno con: /
|
|
400985
|
+
lines.push("Ejecuta uno con: /multiplesagentes <nombre> [args]");
|
|
400970
400986
|
lines.push('Argumentos: JSON ({"clave":"valor"}) o texto libre (llega como `input`).');
|
|
400971
400987
|
return lines.join(`
|
|
400972
400988
|
`);
|
|
@@ -401007,14 +401023,14 @@ var WORKFLOW_EXTS, HELP, call76 = async (rawArgs, context3) => {
|
|
|
401007
401023
|
if (!name) {
|
|
401008
401024
|
return {
|
|
401009
401025
|
type: "text",
|
|
401010
|
-
value: "Indica el nombre
|
|
401026
|
+
value: "Indica el nombre. Usa /multiplesagentes para ver la lista."
|
|
401011
401027
|
};
|
|
401012
401028
|
}
|
|
401013
401029
|
const { names } = collectWorkflows(cwd2);
|
|
401014
401030
|
if (!names.has(name)) {
|
|
401015
401031
|
return {
|
|
401016
401032
|
type: "text",
|
|
401017
|
-
value: `No encontr\xE9
|
|
401033
|
+
value: `No encontr\xE9 la orquestaci\xF3n \xAB${name}\xBB.
|
|
401018
401034
|
|
|
401019
401035
|
` + renderList(cwd2)
|
|
401020
401036
|
};
|
|
@@ -401042,12 +401058,12 @@ var WORKFLOW_EXTS, HELP, call76 = async (rawArgs, context3) => {
|
|
|
401042
401058
|
} catch (e) {
|
|
401043
401059
|
return {
|
|
401044
401060
|
type: "text",
|
|
401045
|
-
value: `No pude iniciar
|
|
401061
|
+
value: `No pude iniciar la orquestaci\xF3n \xAB${name}\xBB: ${e instanceof Error ? e.message : String(e)}`
|
|
401046
401062
|
};
|
|
401047
401063
|
}
|
|
401048
401064
|
return {
|
|
401049
401065
|
type: "text",
|
|
401050
|
-
value: `
|
|
401066
|
+
value: `Orquestaci\xF3n \xAB${name}\xBB iniciada en segundo plano (${taskId}).
|
|
401051
401067
|
` + "Pulsa Shift+\u2193 para ver el progreso de los subagentes."
|
|
401052
401068
|
};
|
|
401053
401069
|
}, workflows, workflows_default;
|
|
@@ -401059,11 +401075,11 @@ var init_workflows = __esm(() => {
|
|
|
401059
401075
|
init_LocalWorkflowTask();
|
|
401060
401076
|
WORKFLOW_EXTS = new Set([".js", ".ts", ".mjs", ".cjs"]);
|
|
401061
401077
|
HELP = [
|
|
401062
|
-
"Uso de /
|
|
401063
|
-
" /
|
|
401064
|
-
" /
|
|
401065
|
-
" /
|
|
401066
|
-
" /
|
|
401078
|
+
"Uso de /multiplesagentes:",
|
|
401079
|
+
" /multiplesagentes Lista las orquestaciones disponibles.",
|
|
401080
|
+
" /multiplesagentes <nombre> [args] Ejecuta una orquestaci\xF3n en segundo plano.",
|
|
401081
|
+
" /multiplesagentes run <nombre> [args] Igual que lo anterior (forma expl\xEDcita).",
|
|
401082
|
+
" /multiplesagentes ayuda Muestra esta ayuda.",
|
|
401067
401083
|
"",
|
|
401068
401084
|
'Los args pueden ser JSON ({"objetivo":"..."}) o texto libre (llega como',
|
|
401069
401085
|
"`input`). El progreso se ve con Shift+\u2193 (tareas en segundo plano)."
|
|
@@ -401071,10 +401087,10 @@ var init_workflows = __esm(() => {
|
|
|
401071
401087
|
`);
|
|
401072
401088
|
workflows = {
|
|
401073
401089
|
type: "local",
|
|
401074
|
-
name: "
|
|
401075
|
-
aliases: ["workflow", "wf"],
|
|
401076
|
-
description: "Lista, ejecuta y gestiona
|
|
401077
|
-
argumentHint: "[<nombre> [args] |
|
|
401090
|
+
name: "multiplesagentes",
|
|
401091
|
+
aliases: ["workflows", "workflow", "wf"],
|
|
401092
|
+
description: "Lista, ejecuta y gestiona orquestaciones de m\xFAltiples agentes: scripts que coordinan varios subagentes en segundo plano",
|
|
401093
|
+
argumentHint: "[<nombre> [args] | lista | ayuda]",
|
|
401078
401094
|
isEnabled: () => {
|
|
401079
401095
|
try {
|
|
401080
401096
|
return isWorkflowsForced();
|
|
@@ -405803,7 +405819,7 @@ var init_sessionStorage = __esm(() => {
|
|
|
405803
405819
|
init_settings2();
|
|
405804
405820
|
init_slowOperations();
|
|
405805
405821
|
init_uuid();
|
|
405806
|
-
VERSION4 = { VERSION: "0.2.
|
|
405822
|
+
VERSION4 = { VERSION: "0.2.29", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION;
|
|
405807
405823
|
MAX_TOMBSTONE_REWRITE_BYTES = 50 * 1024 * 1024;
|
|
405808
405824
|
SKIP_FIRST_PROMPT_PATTERN = /^(?:\s*<[a-z][\w-]*[\s>]|\[Request interrupted by user[^\]]*\])/;
|
|
405809
405825
|
EPHEMERAL_PROGRESS_TYPES = new Set([
|
|
@@ -407008,7 +407024,7 @@ var init_filesystem = __esm(() => {
|
|
|
407008
407024
|
});
|
|
407009
407025
|
getBundledSkillsRoot = memoize_default(function getBundledSkillsRoot2() {
|
|
407010
407026
|
const nonce = randomBytes21(16).toString("hex");
|
|
407011
|
-
return join148(getTheusTempDir(), "bundled-skills", { VERSION: "0.2.
|
|
407027
|
+
return join148(getTheusTempDir(), "bundled-skills", { VERSION: "0.2.29", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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);
|
|
407012
407028
|
});
|
|
407013
407029
|
getResolvedWorkingDirPaths = memoize_default(getPathsForPermissionCheck);
|
|
407014
407030
|
});
|
|
@@ -412187,7 +412203,7 @@ function getSimpleDoingTasksSection() {
|
|
|
412187
412203
|
];
|
|
412188
412204
|
const userHelpSubitems = [
|
|
412189
412205
|
`/help: Get help with using Theus`,
|
|
412190
|
-
`To give feedback, users should ${{ VERSION: "0.2.
|
|
412206
|
+
`To give feedback, users should ${{ VERSION: "0.2.29", BUILD_TIME: "1970-01-01T00:00:00.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}`
|
|
412191
412207
|
];
|
|
412192
412208
|
const items = [
|
|
412193
412209
|
`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.`,
|
|
@@ -413087,7 +413103,7 @@ function computeFingerprint(messageText, version3) {
|
|
|
413087
413103
|
}
|
|
413088
413104
|
function computeFingerprintFromMessages(messages) {
|
|
413089
413105
|
const firstMessageText = extractFirstMessageText(messages);
|
|
413090
|
-
return computeFingerprint(firstMessageText, { VERSION: "0.2.
|
|
413106
|
+
return computeFingerprint(firstMessageText, { VERSION: "0.2.29", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION);
|
|
413091
413107
|
}
|
|
413092
413108
|
var FINGERPRINT_SALT = "59cf53e54c78";
|
|
413093
413109
|
var init_fingerprint = () => {};
|
|
@@ -415635,7 +415651,7 @@ async function sideQuery(opts) {
|
|
|
415635
415651
|
betas.push(STRUCTURED_OUTPUTS_BETA_HEADER);
|
|
415636
415652
|
}
|
|
415637
415653
|
const messageText = extractFirstUserMessageText(messages);
|
|
415638
|
-
const fingerprint = computeFingerprint(messageText, { VERSION: "0.2.
|
|
415654
|
+
const fingerprint = computeFingerprint(messageText, { VERSION: "0.2.29", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION);
|
|
415639
415655
|
const attributionHeader = getAttributionHeader(fingerprint);
|
|
415640
415656
|
const systemBlocks = [
|
|
415641
415657
|
attributionHeader ? { type: "text", text: attributionHeader } : null,
|
|
@@ -416938,7 +416954,7 @@ async function handleMemories(state) {
|
|
|
416938
416954
|
async function runProjectContextMcpServer() {
|
|
416939
416955
|
const projectRoot = process.env.THEUS_PROJECT_ROOT || process.cwd();
|
|
416940
416956
|
const state = new ProjectContextState(projectRoot);
|
|
416941
|
-
const server2 = new Server({ name: SERVER_NAME, version: { VERSION: "0.2.
|
|
416957
|
+
const server2 = new Server({ name: SERVER_NAME, version: { VERSION: "0.2.29", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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: {} } });
|
|
416942
416958
|
server2.setRequestHandler(ListToolsRequestSchema, async () => ({
|
|
416943
416959
|
tools: TOOL_DEFINITIONS.map((t) => ({
|
|
416944
416960
|
name: t.name,
|
|
@@ -418918,7 +418934,7 @@ function createBridgeLogger(options2) {
|
|
|
418918
418934
|
connectUrl = buildBridgeConnectUrl(environmentId, cachedIngressUrl);
|
|
418919
418935
|
regenerateQr(connectUrl);
|
|
418920
418936
|
if (verbose) {
|
|
418921
|
-
write(source_default.dim(`Remote Control`) + ` v${{ VERSION: "0.2.
|
|
418937
|
+
write(source_default.dim(`Remote Control`) + ` v${{ VERSION: "0.2.29", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION}
|
|
418922
418938
|
`);
|
|
418923
418939
|
}
|
|
418924
418940
|
if (verbose) {
|
|
@@ -419891,7 +419907,7 @@ function appendToLog(path19, message) {
|
|
|
419891
419907
|
cwd: getFsImplementation().cwd(),
|
|
419892
419908
|
userType: process.env.USER_TYPE,
|
|
419893
419909
|
sessionId: getSessionId(),
|
|
419894
|
-
version: { VERSION: "0.2.
|
|
419910
|
+
version: { VERSION: "0.2.29", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
|
|
419895
419911
|
};
|
|
419896
419912
|
getLogWriter(path19).write(messageWithTimestamp);
|
|
419897
419913
|
}
|
|
@@ -421161,7 +421177,7 @@ Spawn mode for this project:
|
|
|
421161
421177
|
const api2 = createBridgeApiClient({
|
|
421162
421178
|
baseUrl,
|
|
421163
421179
|
getAccessToken: getBridgeAccessToken2,
|
|
421164
|
-
runnerVersion: { VERSION: "0.2.
|
|
421180
|
+
runnerVersion: { VERSION: "0.2.29", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
|
|
421165
421181
|
onDebug: logForDebugging,
|
|
421166
421182
|
onAuth401: handleOAuth401Error2,
|
|
421167
421183
|
getTrustedDeviceToken
|
|
@@ -421399,7 +421415,7 @@ async function runBridgeHeadless(opts, signal) {
|
|
|
421399
421415
|
const api2 = createBridgeApiClient({
|
|
421400
421416
|
baseUrl,
|
|
421401
421417
|
getAccessToken: opts.getAccessToken,
|
|
421402
|
-
runnerVersion: { VERSION: "0.2.
|
|
421418
|
+
runnerVersion: { VERSION: "0.2.29", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
|
|
421403
421419
|
onDebug: log2,
|
|
421404
421420
|
onAuth401: opts.onAuth401,
|
|
421405
421421
|
getTrustedDeviceToken
|
|
@@ -425463,7 +425479,7 @@ function buildSystemInitMessage(inputs) {
|
|
|
425463
425479
|
slash_commands: inputs.commands.filter((c5) => c5.userInvocable !== false).map((c5) => c5.name),
|
|
425464
425480
|
apiKeySource: getTheusApiKeyWithSource().source,
|
|
425465
425481
|
betas: getSdkBetas(),
|
|
425466
|
-
theus_code_version: { VERSION: "0.2.
|
|
425482
|
+
theus_code_version: { VERSION: "0.2.29", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
|
|
425467
425483
|
output_style: outputStyle2,
|
|
425468
425484
|
agents: inputs.agents.map((agent) => agent.agentType),
|
|
425469
425485
|
skills: inputs.skills.filter((s) => s.userInvocable !== false).map((skill) => skill.name),
|
|
@@ -425503,8 +425519,8 @@ async function getEnvLessBridgeConfig() {
|
|
|
425503
425519
|
}
|
|
425504
425520
|
async function checkEnvLessBridgeMinVersion() {
|
|
425505
425521
|
const cfg = await getEnvLessBridgeConfig();
|
|
425506
|
-
if (cfg.min_version && lt({ VERSION: "0.2.
|
|
425507
|
-
return `Your version of Theus (${{ VERSION: "0.2.
|
|
425522
|
+
if (cfg.min_version && lt({ VERSION: "0.2.29", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
|
|
425523
|
+
return `Your version of Theus (${{ VERSION: "0.2.29", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.
|
|
425508
425524
|
Version ${cfg.min_version} or higher is required. Run \`theus update\` to update.`;
|
|
425509
425525
|
}
|
|
425510
425526
|
return null;
|
|
@@ -427827,7 +427843,7 @@ async function initBridgeCore(params) {
|
|
|
427827
427843
|
const rawApi = createBridgeApiClient({
|
|
427828
427844
|
baseUrl,
|
|
427829
427845
|
getAccessToken,
|
|
427830
|
-
runnerVersion: { VERSION: "0.2.
|
|
427846
|
+
runnerVersion: { VERSION: "0.2.29", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
|
|
427831
427847
|
onDebug: logForDebugging,
|
|
427832
427848
|
onAuth401,
|
|
427833
427849
|
getTrustedDeviceToken
|
|
@@ -444568,7 +444584,7 @@ var init_useVoiceEnabled = __esm(() => {
|
|
|
444568
444584
|
function getSemverPart(version3) {
|
|
444569
444585
|
return `${import_semver14.major(version3, { loose: true })}.${import_semver14.minor(version3, { loose: true })}.${import_semver14.patch(version3, { loose: true })}`;
|
|
444570
444586
|
}
|
|
444571
|
-
function useUpdateNotification(updatedVersion, initialVersion = { VERSION: "0.2.
|
|
444587
|
+
function useUpdateNotification(updatedVersion, initialVersion = { VERSION: "0.2.29", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION) {
|
|
444572
444588
|
const [lastNotifiedSemver, setLastNotifiedSemver] = import_react230.useState(() => getSemverPart(initialVersion));
|
|
444573
444589
|
if (!updatedVersion) {
|
|
444574
444590
|
return null;
|
|
@@ -444608,7 +444624,7 @@ function AutoUpdater({
|
|
|
444608
444624
|
return;
|
|
444609
444625
|
}
|
|
444610
444626
|
if (false) {}
|
|
444611
|
-
const currentVersion = { VERSION: "0.2.
|
|
444627
|
+
const currentVersion = { VERSION: "0.2.29", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION;
|
|
444612
444628
|
const channel2 = getInitialSettings()?.autoUpdatesChannel ?? "latest";
|
|
444613
444629
|
let latestVersion = await getLatestVersion(channel2);
|
|
444614
444630
|
const isDisabled2 = isAutoUpdaterDisabled();
|
|
@@ -444744,7 +444760,7 @@ function AutoUpdater({
|
|
|
444744
444760
|
" ",
|
|
444745
444761
|
/* @__PURE__ */ jsx_runtime403.jsx(ThemedText, {
|
|
444746
444762
|
bold: true,
|
|
444747
|
-
children: hasLocalInstall ? `cd ~/.theus/local && npm update ${{ VERSION: "0.2.
|
|
444763
|
+
children: hasLocalInstall ? `cd ~/.theus/local && npm update ${{ VERSION: "0.2.29", BUILD_TIME: "1970-01-01T00:00:00.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.29", BUILD_TIME: "1970-01-01T00:00:00.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}`
|
|
444748
444764
|
})
|
|
444749
444765
|
]
|
|
444750
444766
|
})
|
|
@@ -444821,12 +444837,12 @@ function NativeAutoUpdater({
|
|
|
444821
444837
|
logEvent("tengu_native_auto_updater_start", {});
|
|
444822
444838
|
try {
|
|
444823
444839
|
const maxVersion = await getMaxVersion();
|
|
444824
|
-
if (maxVersion && gt({ VERSION: "0.2.
|
|
444840
|
+
if (maxVersion && gt({ VERSION: "0.2.29", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
|
|
444825
444841
|
const msg = await getMaxVersionMessage();
|
|
444826
444842
|
setMaxVersionIssue(msg ?? "affects your version");
|
|
444827
444843
|
}
|
|
444828
444844
|
const result = await installLatest(channel2);
|
|
444829
|
-
const currentVersion = { VERSION: "0.2.
|
|
444845
|
+
const currentVersion = { VERSION: "0.2.29", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION;
|
|
444830
444846
|
const latencyMs = Date.now() - startTime2;
|
|
444831
444847
|
if (result.lockFailed) {
|
|
444832
444848
|
logEvent("tengu_native_auto_updater_lock_contention", {
|
|
@@ -444963,17 +444979,17 @@ function PackageManagerAutoUpdater(t0) {
|
|
|
444963
444979
|
const maxVersion = await getMaxVersion();
|
|
444964
444980
|
if (maxVersion && latest && gt(latest, maxVersion)) {
|
|
444965
444981
|
logForDebugging(`PackageManagerAutoUpdater: maxVersion ${maxVersion} is set, capping update from ${latest} to ${maxVersion}`);
|
|
444966
|
-
if (gte({ VERSION: "0.2.
|
|
444967
|
-
logForDebugging(`PackageManagerAutoUpdater: current version ${{ VERSION: "0.2.
|
|
444982
|
+
if (gte({ VERSION: "0.2.29", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
|
|
444983
|
+
logForDebugging(`PackageManagerAutoUpdater: current version ${{ VERSION: "0.2.29", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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`);
|
|
444968
444984
|
setUpdateAvailable(false);
|
|
444969
444985
|
return;
|
|
444970
444986
|
}
|
|
444971
444987
|
latest = maxVersion;
|
|
444972
444988
|
}
|
|
444973
|
-
const hasUpdate = latest && !gte({ VERSION: "0.2.
|
|
444989
|
+
const hasUpdate = latest && !gte({ VERSION: "0.2.29", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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);
|
|
444974
444990
|
setUpdateAvailable(!!hasUpdate);
|
|
444975
444991
|
if (hasUpdate) {
|
|
444976
|
-
logForDebugging(`PackageManagerAutoUpdater: Update available ${{ VERSION: "0.2.
|
|
444992
|
+
logForDebugging(`PackageManagerAutoUpdater: Update available ${{ VERSION: "0.2.29", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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}`);
|
|
444977
444993
|
}
|
|
444978
444994
|
};
|
|
444979
444995
|
$2[0] = t1;
|
|
@@ -445007,7 +445023,7 @@ function PackageManagerAutoUpdater(t0) {
|
|
|
445007
445023
|
wrap: "truncate",
|
|
445008
445024
|
children: [
|
|
445009
445025
|
"currentVersion: ",
|
|
445010
|
-
{ VERSION: "0.2.
|
|
445026
|
+
{ VERSION: "0.2.29", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
|
|
445011
445027
|
]
|
|
445012
445028
|
});
|
|
445013
445029
|
$2[3] = verbose;
|
|
@@ -452880,7 +452896,7 @@ function buildStatusLineCommandInput(permissionMode, exceeds200kTokens, settings
|
|
|
452880
452896
|
project_dir: getOriginalCwd(),
|
|
452881
452897
|
added_dirs: addedDirs
|
|
452882
452898
|
},
|
|
452883
|
-
version: { VERSION: "0.2.
|
|
452899
|
+
version: { VERSION: "0.2.29", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
|
|
452884
452900
|
output_style: {
|
|
452885
452901
|
name: outputStyleName
|
|
452886
452902
|
},
|
|
@@ -464292,7 +464308,7 @@ async function submitTranscriptShare(messages, trigger, appearanceId) {
|
|
|
464292
464308
|
} catch {}
|
|
464293
464309
|
const data = {
|
|
464294
464310
|
trigger,
|
|
464295
|
-
version: { VERSION: "0.2.
|
|
464311
|
+
version: { VERSION: "0.2.29", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
|
|
464296
464312
|
platform: process.platform,
|
|
464297
464313
|
transcript,
|
|
464298
464314
|
subagentTranscripts: Object.keys(subagentTranscripts).length > 0 ? subagentTranscripts : undefined,
|
|
@@ -477316,7 +477332,7 @@ function completeOnboarding() {
|
|
|
477316
477332
|
saveGlobalConfig((current) => ({
|
|
477317
477333
|
...current,
|
|
477318
477334
|
hasCompletedOnboarding: true,
|
|
477319
|
-
lastOnboardingVersion: { VERSION: "0.2.
|
|
477335
|
+
lastOnboardingVersion: { VERSION: "0.2.29", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
|
|
477320
477336
|
}));
|
|
477321
477337
|
}
|
|
477322
477338
|
function showDialog(root2, renderer) {
|
|
@@ -488175,7 +488191,7 @@ async function startMCPServer(cwd3, debug3, verbose) {
|
|
|
488175
488191
|
setCwd(cwd3);
|
|
488176
488192
|
const server2 = new Server({
|
|
488177
488193
|
name: "theus/tengu",
|
|
488178
|
-
version: { VERSION: "0.2.
|
|
488194
|
+
version: { VERSION: "0.2.29", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
|
|
488179
488195
|
}, {
|
|
488180
488196
|
capabilities: {
|
|
488181
488197
|
tools: {}
|
|
@@ -489617,7 +489633,7 @@ async function setupTokenHandler(root2) {
|
|
|
489617
489633
|
gap: 1,
|
|
489618
489634
|
children: [
|
|
489619
489635
|
/* @__PURE__ */ jsx_runtime489.jsx(TheusBanner, {
|
|
489620
|
-
version: { VERSION: "0.2.
|
|
489636
|
+
version: { VERSION: "0.2.29", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
|
|
489621
489637
|
}),
|
|
489622
489638
|
showAuthWarning && /* @__PURE__ */ jsx_runtime489.jsxs(ThemedBox_default, {
|
|
489623
489639
|
flexDirection: "column",
|
|
@@ -491086,7 +491102,7 @@ ${assistantAddendum}` : assistantAddendum;
|
|
|
491086
491102
|
}
|
|
491087
491103
|
}
|
|
491088
491104
|
logForDiagnosticsNoPII("info", "started", {
|
|
491089
|
-
version: { VERSION: "0.2.
|
|
491105
|
+
version: { VERSION: "0.2.29", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
|
|
491090
491106
|
is_native_binary: isInBundledMode()
|
|
491091
491107
|
});
|
|
491092
491108
|
registerCleanup(async () => {
|
|
@@ -491954,7 +491970,7 @@ Usage: theus --remote "your task description"`, () => gracefulShutdown(1));
|
|
|
491954
491970
|
pendingHookMessages
|
|
491955
491971
|
}, renderAndRun);
|
|
491956
491972
|
}
|
|
491957
|
-
}).version(`${{ VERSION: "0.2.
|
|
491973
|
+
}).version(`${{ VERSION: "0.2.29", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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");
|
|
491958
491974
|
program2.option("-w, --worktree [name]", "Crea un nuevo worktree de git para esta sesi\xF3n (opcionalmente indica un nombre)");
|
|
491959
491975
|
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.");
|
|
491960
491976
|
if (canUserConfigureAdvisor()) {
|
|
@@ -492506,7 +492522,7 @@ if (false) {}
|
|
|
492506
492522
|
async function main2() {
|
|
492507
492523
|
const args = process.argv.slice(2);
|
|
492508
492524
|
if (args.length === 1 && (args[0] === "--version" || args[0] === "-v" || args[0] === "-V")) {
|
|
492509
|
-
console.log(`${{ VERSION: "0.2.
|
|
492525
|
+
console.log(`${{ VERSION: "0.2.29", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)`);
|
|
492510
492526
|
return;
|
|
492511
492527
|
}
|
|
492512
492528
|
const {
|