theus-cli 0.2.27 → 0.2.28
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 +146 -138
- 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.28", BUILD_TIME: "1970-01-01T00:00:00.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.28", BUILD_TIME: "1970-01-01T00:00:00.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.28", BUILD_TIME: "1970-01-01T00:00:00.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.28", BUILD_TIME: "1970-01-01T00:00:00.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.28", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.28", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.28", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.28", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.28", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.28", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.28", BUILD_TIME: "1970-01-01T00:00:00.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.28", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.28", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.28", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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();
|
|
@@ -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.28", BUILD_TIME: "1970-01-01T00:00:00.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.28", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.28", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.28", BUILD_TIME: "1970-01-01T00:00:00.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.28", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.28", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.28", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.28", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.28", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.28", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.28", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.28", BUILD_TIME: "1970-01-01T00:00:00.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.28", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.28", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.28", BUILD_TIME: "1970-01-01T00:00:00.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.28", BUILD_TIME: "1970-01-01T00:00:00.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.28", BUILD_TIME: "1970-01-01T00:00:00.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.28", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.28", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.28", BUILD_TIME: "1970-01-01T00:00:00.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.28", BUILD_TIME: "1970-01-01T00:00:00.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.28", BUILD_TIME: "1970-01-01T00:00:00.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.28", BUILD_TIME: "1970-01-01T00:00:00.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.28", BUILD_TIME: "1970-01-01T00:00:00.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.28", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.28", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.28", BUILD_TIME: "1970-01-01T00:00:00.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.28", BUILD_TIME: "1970-01-01T00:00:00.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.28", BUILD_TIME: "1970-01-01T00:00:00.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.28", BUILD_TIME: "1970-01-01T00:00:00.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.28", BUILD_TIME: "1970-01-01T00:00:00.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.28", BUILD_TIME: "1970-01-01T00:00:00.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.28", BUILD_TIME: "1970-01-01T00:00:00.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.28", BUILD_TIME: "1970-01-01T00:00:00.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.28", BUILD_TIME: "1970-01-01T00:00:00.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.28", BUILD_TIME: "1970-01-01T00:00:00.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.28", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.28", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.28", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.28", BUILD_TIME: "1970-01-01T00:00:00.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.28", BUILD_TIME: "1970-01-01T00:00:00.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.28", BUILD_TIME: "1970-01-01T00:00:00.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.28", BUILD_TIME: "1970-01-01T00:00:00.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.28", BUILD_TIME: "1970-01-01T00:00:00.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.28", BUILD_TIME: "1970-01-01T00:00:00.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.28", BUILD_TIME: "1970-01-01T00:00:00.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.28", BUILD_TIME: "1970-01-01T00:00:00.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.28", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.28", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.28", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.28", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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,14 @@ var init_mcp3 = __esm(() => {
|
|
|
356959
356959
|
var NOVEDADES;
|
|
356960
356960
|
var init_data = __esm(() => {
|
|
356961
356961
|
NOVEDADES = [
|
|
356962
|
+
{
|
|
356963
|
+
version: "v0.2.28",
|
|
356964
|
+
fecha: "2026-07-13",
|
|
356965
|
+
titulo: "El comando de orquestaci\xF3n ahora es /multiplesagentes",
|
|
356966
|
+
puntos: [
|
|
356967
|
+
"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."
|
|
356968
|
+
]
|
|
356969
|
+
},
|
|
356962
356970
|
{
|
|
356963
356971
|
version: "v0.2.27",
|
|
356964
356972
|
fecha: "2026-07-13",
|
|
@@ -358629,7 +358637,7 @@ function Onboarding({
|
|
|
358629
358637
|
flexDirection: "column",
|
|
358630
358638
|
children: [
|
|
358631
358639
|
/* @__PURE__ */ jsx_runtime245.jsx(TheusBanner, {
|
|
358632
|
-
version: { VERSION: "0.2.
|
|
358640
|
+
version: { VERSION: "0.2.28", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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
358641
|
}),
|
|
358634
358642
|
/* @__PURE__ */ jsx_runtime245.jsxs(ThemedBox_default, {
|
|
358635
358643
|
flexDirection: "column",
|
|
@@ -358974,9 +358982,9 @@ function getAllReleaseNotes(changelogContent = getStoredChangelogFromMemory()) {
|
|
|
358974
358982
|
return [];
|
|
358975
358983
|
}
|
|
358976
358984
|
}
|
|
358977
|
-
async function checkForReleaseNotes(lastSeenVersion, currentVersion = { VERSION: "0.2.
|
|
358985
|
+
async function checkForReleaseNotes(lastSeenVersion, currentVersion = { VERSION: "0.2.28", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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
358986
|
if (process.env.USER_TYPE === "ant") {
|
|
358979
|
-
const changelog = { VERSION: "0.2.
|
|
358987
|
+
const changelog = { VERSION: "0.2.28", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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
358988
|
if (changelog) {
|
|
358981
358989
|
const commits = changelog.trim().split(`
|
|
358982
358990
|
`).filter(Boolean);
|
|
@@ -363379,7 +363387,7 @@ var init_Messages = __esm(() => {
|
|
|
363379
363387
|
let t1;
|
|
363380
363388
|
if ($2[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
363381
363389
|
t1 = /* @__PURE__ */ jsx_runtime258.jsx(TheusSessionHeader, {
|
|
363382
|
-
version: { VERSION: "0.2.
|
|
363390
|
+
version: { VERSION: "0.2.28", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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
363391
|
});
|
|
363384
363392
|
$2[0] = t1;
|
|
363385
363393
|
} else {
|
|
@@ -391423,7 +391431,7 @@ async function captureMemoryDiagnostics(trigger, dumpNumber = 0) {
|
|
|
391423
391431
|
smapsRollup,
|
|
391424
391432
|
platform: process.platform,
|
|
391425
391433
|
nodeVersion: process.version,
|
|
391426
|
-
ccVersion: { VERSION: "0.2.
|
|
391434
|
+
ccVersion: { VERSION: "0.2.28", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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
391435
|
};
|
|
391428
391436
|
}
|
|
391429
391437
|
async function performHeapDump(trigger = "manual", dumpNumber = 0) {
|
|
@@ -392009,7 +392017,7 @@ var init_bridge_kick = __esm(() => {
|
|
|
392009
392017
|
var call57 = async () => {
|
|
392010
392018
|
return {
|
|
392011
392019
|
type: "text",
|
|
392012
|
-
value: { VERSION: "0.2.
|
|
392020
|
+
value: { VERSION: "0.2.28", BUILD_TIME: "1970-01-01T00:00:00.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.28", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.28", BUILD_TIME: "1970-01-01T00:00:00.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.28", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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
392021
|
};
|
|
392014
392022
|
}, version2, version_default;
|
|
392015
392023
|
var init_version = __esm(() => {
|
|
@@ -396451,13 +396459,13 @@ async function updateReleaseBundle() {
|
|
|
396451
396459
|
await gracefulShutdown(1);
|
|
396452
396460
|
return;
|
|
396453
396461
|
}
|
|
396454
|
-
if (gte({ VERSION: "0.2.
|
|
396455
|
-
writeToStdout(source_default.green(`Theus is up to date (${{ VERSION: "0.2.
|
|
396462
|
+
if (gte({ VERSION: "0.2.28", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
|
|
396463
|
+
writeToStdout(source_default.green(`Theus is up to date (${{ VERSION: "0.2.28", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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
396464
|
`);
|
|
396457
396465
|
await gracefulShutdown(0);
|
|
396458
396466
|
return;
|
|
396459
396467
|
}
|
|
396460
|
-
writeToStdout(`New version available: ${latest} (current: ${{ VERSION: "0.2.
|
|
396468
|
+
writeToStdout(`New version available: ${latest} (current: ${{ VERSION: "0.2.28", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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
396469
|
`);
|
|
396462
396470
|
writeToStdout(`Installing update from theus.pe/dl...
|
|
396463
396471
|
`);
|
|
@@ -396491,7 +396499,7 @@ async function updateReleaseBundle() {
|
|
|
396491
396499
|
return;
|
|
396492
396500
|
}
|
|
396493
396501
|
cpSync(staged, bundleDir, { recursive: true, force: true });
|
|
396494
|
-
writeToStdout(source_default.green(`Successfully updated from ${{ VERSION: "0.2.
|
|
396502
|
+
writeToStdout(source_default.green(`Successfully updated from ${{ VERSION: "0.2.28", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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
396503
|
`);
|
|
396496
396504
|
await regenerateCompletionCache();
|
|
396497
396505
|
} finally {
|
|
@@ -396504,7 +396512,7 @@ async function updateReleaseBundle() {
|
|
|
396504
396512
|
async function update() {
|
|
396505
396513
|
logEvent("tengu_update_check", {});
|
|
396506
396514
|
await updateNaupa();
|
|
396507
|
-
writeToStdout(`Current version: ${{ VERSION: "0.2.
|
|
396515
|
+
writeToStdout(`Current version: ${{ VERSION: "0.2.28", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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
396516
|
`);
|
|
396509
396517
|
const channel2 = getInitialSettings()?.autoUpdatesChannel ?? "latest";
|
|
396510
396518
|
writeToStdout(`Checking for updates to ${channel2} version...
|
|
@@ -396583,8 +396591,8 @@ async function update() {
|
|
|
396583
396591
|
writeToStdout(`Theus is managed by Homebrew.
|
|
396584
396592
|
`);
|
|
396585
396593
|
const latest = await getLatestVersion(channel2);
|
|
396586
|
-
if (latest && !gte({ VERSION: "0.2.
|
|
396587
|
-
writeToStdout(`Update available: ${{ VERSION: "0.2.
|
|
396594
|
+
if (latest && !gte({ VERSION: "0.2.28", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
|
|
396595
|
+
writeToStdout(`Update available: ${{ VERSION: "0.2.28", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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
396596
|
`);
|
|
396589
396597
|
writeToStdout(`
|
|
396590
396598
|
`);
|
|
@@ -396600,8 +396608,8 @@ async function update() {
|
|
|
396600
396608
|
writeToStdout(`Theus is managed by winget.
|
|
396601
396609
|
`);
|
|
396602
396610
|
const latest = await getLatestVersion(channel2);
|
|
396603
|
-
if (latest && !gte({ VERSION: "0.2.
|
|
396604
|
-
writeToStdout(`Update available: ${{ VERSION: "0.2.
|
|
396611
|
+
if (latest && !gte({ VERSION: "0.2.28", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
|
|
396612
|
+
writeToStdout(`Update available: ${{ VERSION: "0.2.28", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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
396613
|
`);
|
|
396606
396614
|
writeToStdout(`
|
|
396607
396615
|
`);
|
|
@@ -396617,8 +396625,8 @@ async function update() {
|
|
|
396617
396625
|
writeToStdout(`Theus is managed by apk.
|
|
396618
396626
|
`);
|
|
396619
396627
|
const latest = await getLatestVersion(channel2);
|
|
396620
|
-
if (latest && !gte({ VERSION: "0.2.
|
|
396621
|
-
writeToStdout(`Update available: ${{ VERSION: "0.2.
|
|
396628
|
+
if (latest && !gte({ VERSION: "0.2.28", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
|
|
396629
|
+
writeToStdout(`Update available: ${{ VERSION: "0.2.28", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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
396630
|
`);
|
|
396623
396631
|
writeToStdout(`
|
|
396624
396632
|
`);
|
|
@@ -396683,11 +396691,11 @@ async function update() {
|
|
|
396683
396691
|
`);
|
|
396684
396692
|
await gracefulShutdown(1);
|
|
396685
396693
|
}
|
|
396686
|
-
if (result.latestVersion === { VERSION: "0.2.
|
|
396687
|
-
writeToStdout(source_default.green(`Theus is up to date (${{ VERSION: "0.2.
|
|
396694
|
+
if (result.latestVersion === { VERSION: "0.2.28", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION) {
|
|
396695
|
+
writeToStdout(source_default.green(`Theus is up to date (${{ VERSION: "0.2.28", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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
396696
|
`);
|
|
396689
396697
|
} else {
|
|
396690
|
-
writeToStdout(source_default.green(`Successfully updated from ${{ VERSION: "0.2.
|
|
396698
|
+
writeToStdout(source_default.green(`Successfully updated from ${{ VERSION: "0.2.28", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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
396699
|
`);
|
|
396692
396700
|
await regenerateCompletionCache();
|
|
396693
396701
|
}
|
|
@@ -396706,9 +396714,9 @@ async function update() {
|
|
|
396706
396714
|
await removeInstalledSymlink();
|
|
396707
396715
|
}
|
|
396708
396716
|
logForDebugging("update: Checking npm registry for latest version");
|
|
396709
|
-
logForDebugging(`update: Package URL: ${{ VERSION: "0.2.
|
|
396717
|
+
logForDebugging(`update: Package URL: ${{ VERSION: "0.2.28", BUILD_TIME: "1970-01-01T00:00:00.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
396718
|
const npmTag = channel2 === "stable" ? "stable" : "latest";
|
|
396711
|
-
const npmCommand = `npm view ${{ VERSION: "0.2.
|
|
396719
|
+
const npmCommand = `npm view ${{ VERSION: "0.2.28", BUILD_TIME: "1970-01-01T00:00:00.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
396720
|
logForDebugging(`update: Running: ${npmCommand}`);
|
|
396713
396721
|
const latestVersion = await getLatestVersion(channel2);
|
|
396714
396722
|
logForDebugging(`update: Latest version from npm: ${latestVersion || "FAILED"}`);
|
|
@@ -396728,7 +396736,7 @@ async function update() {
|
|
|
396728
396736
|
`);
|
|
396729
396737
|
process.stderr.write(` \u2022 Corporate proxy/firewall blocking npm
|
|
396730
396738
|
`);
|
|
396731
|
-
if ({ VERSION: "0.2.
|
|
396739
|
+
if ({ VERSION: "0.2.28", BUILD_TIME: "1970-01-01T00:00:00.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.28", BUILD_TIME: "1970-01-01T00:00:00.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
396740
|
process.stderr.write(` \u2022 Internal/development build not published to npm
|
|
396733
396741
|
`);
|
|
396734
396742
|
}
|
|
@@ -396740,19 +396748,19 @@ async function update() {
|
|
|
396740
396748
|
`);
|
|
396741
396749
|
process.stderr.write(` \u2022 Run with --debug flag for more details
|
|
396742
396750
|
`);
|
|
396743
|
-
const packageName = { VERSION: "0.2.
|
|
396751
|
+
const packageName = { VERSION: "0.2.28", BUILD_TIME: "1970-01-01T00:00:00.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
396752
|
process.stderr.write(` \u2022 Manually check: npm view ${packageName} version
|
|
396745
396753
|
`);
|
|
396746
396754
|
process.stderr.write(` \u2022 Check if you need to login: npm whoami
|
|
396747
396755
|
`);
|
|
396748
396756
|
await gracefulShutdown(1);
|
|
396749
396757
|
}
|
|
396750
|
-
if (gte({ VERSION: "0.2.
|
|
396751
|
-
writeToStdout(source_default.green(`Theus is up to date (${{ VERSION: "0.2.
|
|
396758
|
+
if (gte({ VERSION: "0.2.28", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
|
|
396759
|
+
writeToStdout(source_default.green(`Theus is up to date (${{ VERSION: "0.2.28", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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
396760
|
`);
|
|
396753
396761
|
await gracefulShutdown(0);
|
|
396754
396762
|
}
|
|
396755
|
-
writeToStdout(`New version available: ${latestVersion} (current: ${{ VERSION: "0.2.
|
|
396763
|
+
writeToStdout(`New version available: ${latestVersion} (current: ${{ VERSION: "0.2.28", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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
396764
|
`);
|
|
396757
396765
|
writeToStdout(`Installing update...
|
|
396758
396766
|
`);
|
|
@@ -396797,7 +396805,7 @@ async function update() {
|
|
|
396797
396805
|
logForDebugging(`update: Installation status: ${status2}`);
|
|
396798
396806
|
switch (status2) {
|
|
396799
396807
|
case "success":
|
|
396800
|
-
writeToStdout(source_default.green(`Successfully updated from ${{ VERSION: "0.2.
|
|
396808
|
+
writeToStdout(source_default.green(`Successfully updated from ${{ VERSION: "0.2.28", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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
396809
|
`);
|
|
396802
396810
|
await regenerateCompletionCache();
|
|
396803
396811
|
break;
|
|
@@ -396807,7 +396815,7 @@ async function update() {
|
|
|
396807
396815
|
if (useLocalUpdate) {
|
|
396808
396816
|
process.stderr.write(`Try manually updating with:
|
|
396809
396817
|
`);
|
|
396810
|
-
process.stderr.write(` cd ~/.theus/local && npm update ${{ VERSION: "0.2.
|
|
396818
|
+
process.stderr.write(` cd ~/.theus/local && npm update ${{ VERSION: "0.2.28", BUILD_TIME: "1970-01-01T00:00:00.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
396819
|
`);
|
|
396812
396820
|
} else {
|
|
396813
396821
|
process.stderr.write(`Try running with sudo or fix npm permissions
|
|
@@ -396823,7 +396831,7 @@ async function update() {
|
|
|
396823
396831
|
if (useLocalUpdate) {
|
|
396824
396832
|
process.stderr.write(`Try manually updating with:
|
|
396825
396833
|
`);
|
|
396826
|
-
process.stderr.write(` cd ~/.theus/local && npm update ${{ VERSION: "0.2.
|
|
396834
|
+
process.stderr.write(` cd ~/.theus/local && npm update ${{ VERSION: "0.2.28", BUILD_TIME: "1970-01-01T00:00:00.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
396835
|
`);
|
|
396828
396836
|
} else {
|
|
396829
396837
|
process.stderr.write(`Or consider using native installation with: theus install
|
|
@@ -400942,13 +400950,13 @@ function collectWorkflows(cwd2) {
|
|
|
400942
400950
|
}
|
|
400943
400951
|
function renderList(cwd2) {
|
|
400944
400952
|
const { registered, files: files2 } = collectWorkflows(cwd2);
|
|
400945
|
-
const lines = ["
|
|
400953
|
+
const lines = ["M\xFAltiples agentes \u2014 orquestaci\xF3n multi-agente por scripts (/multiplesagentes).", ""];
|
|
400946
400954
|
if (registered.length === 0 && files2.length === 0) {
|
|
400947
|
-
lines.push("No hay
|
|
400955
|
+
lines.push("No hay orquestaciones disponibles todav\xEDa.");
|
|
400948
400956
|
lines.push("");
|
|
400949
400957
|
lines.push("Crea uno en .theus/workflows/<nombre>.js que exporte `meta` y una");
|
|
400950
400958
|
lines.push("funci\xF3n por defecto async(ctx) usando agent()/parallel()/pipeline()/");
|
|
400951
|
-
lines.push("phase()/log(). Luego: /
|
|
400959
|
+
lines.push("phase()/log(). Luego: /multiplesagentes <nombre>");
|
|
400952
400960
|
return lines.join(`
|
|
400953
400961
|
`);
|
|
400954
400962
|
}
|
|
@@ -400966,7 +400974,7 @@ function renderList(cwd2) {
|
|
|
400966
400974
|
}
|
|
400967
400975
|
lines.push("");
|
|
400968
400976
|
}
|
|
400969
|
-
lines.push("Ejecuta uno con: /
|
|
400977
|
+
lines.push("Ejecuta uno con: /multiplesagentes <nombre> [args]");
|
|
400970
400978
|
lines.push('Argumentos: JSON ({"clave":"valor"}) o texto libre (llega como `input`).');
|
|
400971
400979
|
return lines.join(`
|
|
400972
400980
|
`);
|
|
@@ -401007,14 +401015,14 @@ var WORKFLOW_EXTS, HELP, call76 = async (rawArgs, context3) => {
|
|
|
401007
401015
|
if (!name) {
|
|
401008
401016
|
return {
|
|
401009
401017
|
type: "text",
|
|
401010
|
-
value: "Indica el nombre
|
|
401018
|
+
value: "Indica el nombre. Usa /multiplesagentes para ver la lista."
|
|
401011
401019
|
};
|
|
401012
401020
|
}
|
|
401013
401021
|
const { names } = collectWorkflows(cwd2);
|
|
401014
401022
|
if (!names.has(name)) {
|
|
401015
401023
|
return {
|
|
401016
401024
|
type: "text",
|
|
401017
|
-
value: `No encontr\xE9
|
|
401025
|
+
value: `No encontr\xE9 la orquestaci\xF3n \xAB${name}\xBB.
|
|
401018
401026
|
|
|
401019
401027
|
` + renderList(cwd2)
|
|
401020
401028
|
};
|
|
@@ -401042,12 +401050,12 @@ var WORKFLOW_EXTS, HELP, call76 = async (rawArgs, context3) => {
|
|
|
401042
401050
|
} catch (e) {
|
|
401043
401051
|
return {
|
|
401044
401052
|
type: "text",
|
|
401045
|
-
value: `No pude iniciar
|
|
401053
|
+
value: `No pude iniciar la orquestaci\xF3n \xAB${name}\xBB: ${e instanceof Error ? e.message : String(e)}`
|
|
401046
401054
|
};
|
|
401047
401055
|
}
|
|
401048
401056
|
return {
|
|
401049
401057
|
type: "text",
|
|
401050
|
-
value: `
|
|
401058
|
+
value: `Orquestaci\xF3n \xAB${name}\xBB iniciada en segundo plano (${taskId}).
|
|
401051
401059
|
` + "Pulsa Shift+\u2193 para ver el progreso de los subagentes."
|
|
401052
401060
|
};
|
|
401053
401061
|
}, workflows, workflows_default;
|
|
@@ -401059,11 +401067,11 @@ var init_workflows = __esm(() => {
|
|
|
401059
401067
|
init_LocalWorkflowTask();
|
|
401060
401068
|
WORKFLOW_EXTS = new Set([".js", ".ts", ".mjs", ".cjs"]);
|
|
401061
401069
|
HELP = [
|
|
401062
|
-
"Uso de /
|
|
401063
|
-
" /
|
|
401064
|
-
" /
|
|
401065
|
-
" /
|
|
401066
|
-
" /
|
|
401070
|
+
"Uso de /multiplesagentes:",
|
|
401071
|
+
" /multiplesagentes Lista las orquestaciones disponibles.",
|
|
401072
|
+
" /multiplesagentes <nombre> [args] Ejecuta una orquestaci\xF3n en segundo plano.",
|
|
401073
|
+
" /multiplesagentes run <nombre> [args] Igual que lo anterior (forma expl\xEDcita).",
|
|
401074
|
+
" /multiplesagentes ayuda Muestra esta ayuda.",
|
|
401067
401075
|
"",
|
|
401068
401076
|
'Los args pueden ser JSON ({"objetivo":"..."}) o texto libre (llega como',
|
|
401069
401077
|
"`input`). El progreso se ve con Shift+\u2193 (tareas en segundo plano)."
|
|
@@ -401071,10 +401079,10 @@ var init_workflows = __esm(() => {
|
|
|
401071
401079
|
`);
|
|
401072
401080
|
workflows = {
|
|
401073
401081
|
type: "local",
|
|
401074
|
-
name: "
|
|
401075
|
-
aliases: ["workflow", "wf"],
|
|
401076
|
-
description: "Lista, ejecuta y gestiona
|
|
401077
|
-
argumentHint: "[<nombre> [args] |
|
|
401082
|
+
name: "multiplesagentes",
|
|
401083
|
+
aliases: ["workflows", "workflow", "wf"],
|
|
401084
|
+
description: "Lista, ejecuta y gestiona orquestaciones de m\xFAltiples agentes: scripts que coordinan varios subagentes en segundo plano",
|
|
401085
|
+
argumentHint: "[<nombre> [args] | lista | ayuda]",
|
|
401078
401086
|
isEnabled: () => {
|
|
401079
401087
|
try {
|
|
401080
401088
|
return isWorkflowsForced();
|
|
@@ -405803,7 +405811,7 @@ var init_sessionStorage = __esm(() => {
|
|
|
405803
405811
|
init_settings2();
|
|
405804
405812
|
init_slowOperations();
|
|
405805
405813
|
init_uuid();
|
|
405806
|
-
VERSION4 = { VERSION: "0.2.
|
|
405814
|
+
VERSION4 = { VERSION: "0.2.28", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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
405815
|
MAX_TOMBSTONE_REWRITE_BYTES = 50 * 1024 * 1024;
|
|
405808
405816
|
SKIP_FIRST_PROMPT_PATTERN = /^(?:\s*<[a-z][\w-]*[\s>]|\[Request interrupted by user[^\]]*\])/;
|
|
405809
405817
|
EPHEMERAL_PROGRESS_TYPES = new Set([
|
|
@@ -407008,7 +407016,7 @@ var init_filesystem = __esm(() => {
|
|
|
407008
407016
|
});
|
|
407009
407017
|
getBundledSkillsRoot = memoize_default(function getBundledSkillsRoot2() {
|
|
407010
407018
|
const nonce = randomBytes21(16).toString("hex");
|
|
407011
|
-
return join148(getTheusTempDir(), "bundled-skills", { VERSION: "0.2.
|
|
407019
|
+
return join148(getTheusTempDir(), "bundled-skills", { VERSION: "0.2.28", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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
407020
|
});
|
|
407013
407021
|
getResolvedWorkingDirPaths = memoize_default(getPathsForPermissionCheck);
|
|
407014
407022
|
});
|
|
@@ -412187,7 +412195,7 @@ function getSimpleDoingTasksSection() {
|
|
|
412187
412195
|
];
|
|
412188
412196
|
const userHelpSubitems = [
|
|
412189
412197
|
`/help: Get help with using Theus`,
|
|
412190
|
-
`To give feedback, users should ${{ VERSION: "0.2.
|
|
412198
|
+
`To give feedback, users should ${{ VERSION: "0.2.28", BUILD_TIME: "1970-01-01T00:00:00.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
412199
|
];
|
|
412192
412200
|
const items = [
|
|
412193
412201
|
`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 +413095,7 @@ function computeFingerprint(messageText, version3) {
|
|
|
413087
413095
|
}
|
|
413088
413096
|
function computeFingerprintFromMessages(messages) {
|
|
413089
413097
|
const firstMessageText = extractFirstMessageText(messages);
|
|
413090
|
-
return computeFingerprint(firstMessageText, { VERSION: "0.2.
|
|
413098
|
+
return computeFingerprint(firstMessageText, { VERSION: "0.2.28", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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
413099
|
}
|
|
413092
413100
|
var FINGERPRINT_SALT = "59cf53e54c78";
|
|
413093
413101
|
var init_fingerprint = () => {};
|
|
@@ -415635,7 +415643,7 @@ async function sideQuery(opts) {
|
|
|
415635
415643
|
betas.push(STRUCTURED_OUTPUTS_BETA_HEADER);
|
|
415636
415644
|
}
|
|
415637
415645
|
const messageText = extractFirstUserMessageText(messages);
|
|
415638
|
-
const fingerprint = computeFingerprint(messageText, { VERSION: "0.2.
|
|
415646
|
+
const fingerprint = computeFingerprint(messageText, { VERSION: "0.2.28", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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
415647
|
const attributionHeader = getAttributionHeader(fingerprint);
|
|
415640
415648
|
const systemBlocks = [
|
|
415641
415649
|
attributionHeader ? { type: "text", text: attributionHeader } : null,
|
|
@@ -416938,7 +416946,7 @@ async function handleMemories(state) {
|
|
|
416938
416946
|
async function runProjectContextMcpServer() {
|
|
416939
416947
|
const projectRoot = process.env.THEUS_PROJECT_ROOT || process.cwd();
|
|
416940
416948
|
const state = new ProjectContextState(projectRoot);
|
|
416941
|
-
const server2 = new Server({ name: SERVER_NAME, version: { VERSION: "0.2.
|
|
416949
|
+
const server2 = new Server({ name: SERVER_NAME, version: { VERSION: "0.2.28", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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
416950
|
server2.setRequestHandler(ListToolsRequestSchema, async () => ({
|
|
416943
416951
|
tools: TOOL_DEFINITIONS.map((t) => ({
|
|
416944
416952
|
name: t.name,
|
|
@@ -418918,7 +418926,7 @@ function createBridgeLogger(options2) {
|
|
|
418918
418926
|
connectUrl = buildBridgeConnectUrl(environmentId, cachedIngressUrl);
|
|
418919
418927
|
regenerateQr(connectUrl);
|
|
418920
418928
|
if (verbose) {
|
|
418921
|
-
write(source_default.dim(`Remote Control`) + ` v${{ VERSION: "0.2.
|
|
418929
|
+
write(source_default.dim(`Remote Control`) + ` v${{ VERSION: "0.2.28", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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
418930
|
`);
|
|
418923
418931
|
}
|
|
418924
418932
|
if (verbose) {
|
|
@@ -419891,7 +419899,7 @@ function appendToLog(path19, message) {
|
|
|
419891
419899
|
cwd: getFsImplementation().cwd(),
|
|
419892
419900
|
userType: process.env.USER_TYPE,
|
|
419893
419901
|
sessionId: getSessionId(),
|
|
419894
|
-
version: { VERSION: "0.2.
|
|
419902
|
+
version: { VERSION: "0.2.28", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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
419903
|
};
|
|
419896
419904
|
getLogWriter(path19).write(messageWithTimestamp);
|
|
419897
419905
|
}
|
|
@@ -421161,7 +421169,7 @@ Spawn mode for this project:
|
|
|
421161
421169
|
const api2 = createBridgeApiClient({
|
|
421162
421170
|
baseUrl,
|
|
421163
421171
|
getAccessToken: getBridgeAccessToken2,
|
|
421164
|
-
runnerVersion: { VERSION: "0.2.
|
|
421172
|
+
runnerVersion: { VERSION: "0.2.28", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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
421173
|
onDebug: logForDebugging,
|
|
421166
421174
|
onAuth401: handleOAuth401Error2,
|
|
421167
421175
|
getTrustedDeviceToken
|
|
@@ -421399,7 +421407,7 @@ async function runBridgeHeadless(opts, signal) {
|
|
|
421399
421407
|
const api2 = createBridgeApiClient({
|
|
421400
421408
|
baseUrl,
|
|
421401
421409
|
getAccessToken: opts.getAccessToken,
|
|
421402
|
-
runnerVersion: { VERSION: "0.2.
|
|
421410
|
+
runnerVersion: { VERSION: "0.2.28", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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
421411
|
onDebug: log2,
|
|
421404
421412
|
onAuth401: opts.onAuth401,
|
|
421405
421413
|
getTrustedDeviceToken
|
|
@@ -425463,7 +425471,7 @@ function buildSystemInitMessage(inputs) {
|
|
|
425463
425471
|
slash_commands: inputs.commands.filter((c5) => c5.userInvocable !== false).map((c5) => c5.name),
|
|
425464
425472
|
apiKeySource: getTheusApiKeyWithSource().source,
|
|
425465
425473
|
betas: getSdkBetas(),
|
|
425466
|
-
theus_code_version: { VERSION: "0.2.
|
|
425474
|
+
theus_code_version: { VERSION: "0.2.28", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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
425475
|
output_style: outputStyle2,
|
|
425468
425476
|
agents: inputs.agents.map((agent) => agent.agentType),
|
|
425469
425477
|
skills: inputs.skills.filter((s) => s.userInvocable !== false).map((skill) => skill.name),
|
|
@@ -425503,8 +425511,8 @@ async function getEnvLessBridgeConfig() {
|
|
|
425503
425511
|
}
|
|
425504
425512
|
async function checkEnvLessBridgeMinVersion() {
|
|
425505
425513
|
const cfg = await getEnvLessBridgeConfig();
|
|
425506
|
-
if (cfg.min_version && lt({ VERSION: "0.2.
|
|
425507
|
-
return `Your version of Theus (${{ VERSION: "0.2.
|
|
425514
|
+
if (cfg.min_version && lt({ VERSION: "0.2.28", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
|
|
425515
|
+
return `Your version of Theus (${{ VERSION: "0.2.28", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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
425516
|
Version ${cfg.min_version} or higher is required. Run \`theus update\` to update.`;
|
|
425509
425517
|
}
|
|
425510
425518
|
return null;
|
|
@@ -427827,7 +427835,7 @@ async function initBridgeCore(params) {
|
|
|
427827
427835
|
const rawApi = createBridgeApiClient({
|
|
427828
427836
|
baseUrl,
|
|
427829
427837
|
getAccessToken,
|
|
427830
|
-
runnerVersion: { VERSION: "0.2.
|
|
427838
|
+
runnerVersion: { VERSION: "0.2.28", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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
427839
|
onDebug: logForDebugging,
|
|
427832
427840
|
onAuth401,
|
|
427833
427841
|
getTrustedDeviceToken
|
|
@@ -444568,7 +444576,7 @@ var init_useVoiceEnabled = __esm(() => {
|
|
|
444568
444576
|
function getSemverPart(version3) {
|
|
444569
444577
|
return `${import_semver14.major(version3, { loose: true })}.${import_semver14.minor(version3, { loose: true })}.${import_semver14.patch(version3, { loose: true })}`;
|
|
444570
444578
|
}
|
|
444571
|
-
function useUpdateNotification(updatedVersion, initialVersion = { VERSION: "0.2.
|
|
444579
|
+
function useUpdateNotification(updatedVersion, initialVersion = { VERSION: "0.2.28", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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
444580
|
const [lastNotifiedSemver, setLastNotifiedSemver] = import_react230.useState(() => getSemverPart(initialVersion));
|
|
444573
444581
|
if (!updatedVersion) {
|
|
444574
444582
|
return null;
|
|
@@ -444608,7 +444616,7 @@ function AutoUpdater({
|
|
|
444608
444616
|
return;
|
|
444609
444617
|
}
|
|
444610
444618
|
if (false) {}
|
|
444611
|
-
const currentVersion = { VERSION: "0.2.
|
|
444619
|
+
const currentVersion = { VERSION: "0.2.28", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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
444620
|
const channel2 = getInitialSettings()?.autoUpdatesChannel ?? "latest";
|
|
444613
444621
|
let latestVersion = await getLatestVersion(channel2);
|
|
444614
444622
|
const isDisabled2 = isAutoUpdaterDisabled();
|
|
@@ -444744,7 +444752,7 @@ function AutoUpdater({
|
|
|
444744
444752
|
" ",
|
|
444745
444753
|
/* @__PURE__ */ jsx_runtime403.jsx(ThemedText, {
|
|
444746
444754
|
bold: true,
|
|
444747
|
-
children: hasLocalInstall ? `cd ~/.theus/local && npm update ${{ VERSION: "0.2.
|
|
444755
|
+
children: hasLocalInstall ? `cd ~/.theus/local && npm update ${{ VERSION: "0.2.28", BUILD_TIME: "1970-01-01T00:00:00.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.28", BUILD_TIME: "1970-01-01T00:00:00.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
444756
|
})
|
|
444749
444757
|
]
|
|
444750
444758
|
})
|
|
@@ -444821,12 +444829,12 @@ function NativeAutoUpdater({
|
|
|
444821
444829
|
logEvent("tengu_native_auto_updater_start", {});
|
|
444822
444830
|
try {
|
|
444823
444831
|
const maxVersion = await getMaxVersion();
|
|
444824
|
-
if (maxVersion && gt({ VERSION: "0.2.
|
|
444832
|
+
if (maxVersion && gt({ VERSION: "0.2.28", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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
444833
|
const msg = await getMaxVersionMessage();
|
|
444826
444834
|
setMaxVersionIssue(msg ?? "affects your version");
|
|
444827
444835
|
}
|
|
444828
444836
|
const result = await installLatest(channel2);
|
|
444829
|
-
const currentVersion = { VERSION: "0.2.
|
|
444837
|
+
const currentVersion = { VERSION: "0.2.28", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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
444838
|
const latencyMs = Date.now() - startTime2;
|
|
444831
444839
|
if (result.lockFailed) {
|
|
444832
444840
|
logEvent("tengu_native_auto_updater_lock_contention", {
|
|
@@ -444963,17 +444971,17 @@ function PackageManagerAutoUpdater(t0) {
|
|
|
444963
444971
|
const maxVersion = await getMaxVersion();
|
|
444964
444972
|
if (maxVersion && latest && gt(latest, maxVersion)) {
|
|
444965
444973
|
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.
|
|
444974
|
+
if (gte({ VERSION: "0.2.28", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
|
|
444975
|
+
logForDebugging(`PackageManagerAutoUpdater: current version ${{ VERSION: "0.2.28", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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
444976
|
setUpdateAvailable(false);
|
|
444969
444977
|
return;
|
|
444970
444978
|
}
|
|
444971
444979
|
latest = maxVersion;
|
|
444972
444980
|
}
|
|
444973
|
-
const hasUpdate = latest && !gte({ VERSION: "0.2.
|
|
444981
|
+
const hasUpdate = latest && !gte({ VERSION: "0.2.28", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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
444982
|
setUpdateAvailable(!!hasUpdate);
|
|
444975
444983
|
if (hasUpdate) {
|
|
444976
|
-
logForDebugging(`PackageManagerAutoUpdater: Update available ${{ VERSION: "0.2.
|
|
444984
|
+
logForDebugging(`PackageManagerAutoUpdater: Update available ${{ VERSION: "0.2.28", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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
444985
|
}
|
|
444978
444986
|
};
|
|
444979
444987
|
$2[0] = t1;
|
|
@@ -445007,7 +445015,7 @@ function PackageManagerAutoUpdater(t0) {
|
|
|
445007
445015
|
wrap: "truncate",
|
|
445008
445016
|
children: [
|
|
445009
445017
|
"currentVersion: ",
|
|
445010
|
-
{ VERSION: "0.2.
|
|
445018
|
+
{ VERSION: "0.2.28", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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
445019
|
]
|
|
445012
445020
|
});
|
|
445013
445021
|
$2[3] = verbose;
|
|
@@ -452880,7 +452888,7 @@ function buildStatusLineCommandInput(permissionMode, exceeds200kTokens, settings
|
|
|
452880
452888
|
project_dir: getOriginalCwd(),
|
|
452881
452889
|
added_dirs: addedDirs
|
|
452882
452890
|
},
|
|
452883
|
-
version: { VERSION: "0.2.
|
|
452891
|
+
version: { VERSION: "0.2.28", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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
452892
|
output_style: {
|
|
452885
452893
|
name: outputStyleName
|
|
452886
452894
|
},
|
|
@@ -464292,7 +464300,7 @@ async function submitTranscriptShare(messages, trigger, appearanceId) {
|
|
|
464292
464300
|
} catch {}
|
|
464293
464301
|
const data = {
|
|
464294
464302
|
trigger,
|
|
464295
|
-
version: { VERSION: "0.2.
|
|
464303
|
+
version: { VERSION: "0.2.28", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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
464304
|
platform: process.platform,
|
|
464297
464305
|
transcript,
|
|
464298
464306
|
subagentTranscripts: Object.keys(subagentTranscripts).length > 0 ? subagentTranscripts : undefined,
|
|
@@ -477316,7 +477324,7 @@ function completeOnboarding() {
|
|
|
477316
477324
|
saveGlobalConfig((current) => ({
|
|
477317
477325
|
...current,
|
|
477318
477326
|
hasCompletedOnboarding: true,
|
|
477319
|
-
lastOnboardingVersion: { VERSION: "0.2.
|
|
477327
|
+
lastOnboardingVersion: { VERSION: "0.2.28", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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
477328
|
}));
|
|
477321
477329
|
}
|
|
477322
477330
|
function showDialog(root2, renderer) {
|
|
@@ -488175,7 +488183,7 @@ async function startMCPServer(cwd3, debug3, verbose) {
|
|
|
488175
488183
|
setCwd(cwd3);
|
|
488176
488184
|
const server2 = new Server({
|
|
488177
488185
|
name: "theus/tengu",
|
|
488178
|
-
version: { VERSION: "0.2.
|
|
488186
|
+
version: { VERSION: "0.2.28", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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
488187
|
}, {
|
|
488180
488188
|
capabilities: {
|
|
488181
488189
|
tools: {}
|
|
@@ -489617,7 +489625,7 @@ async function setupTokenHandler(root2) {
|
|
|
489617
489625
|
gap: 1,
|
|
489618
489626
|
children: [
|
|
489619
489627
|
/* @__PURE__ */ jsx_runtime489.jsx(TheusBanner, {
|
|
489620
|
-
version: { VERSION: "0.2.
|
|
489628
|
+
version: { VERSION: "0.2.28", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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
489629
|
}),
|
|
489622
489630
|
showAuthWarning && /* @__PURE__ */ jsx_runtime489.jsxs(ThemedBox_default, {
|
|
489623
489631
|
flexDirection: "column",
|
|
@@ -491086,7 +491094,7 @@ ${assistantAddendum}` : assistantAddendum;
|
|
|
491086
491094
|
}
|
|
491087
491095
|
}
|
|
491088
491096
|
logForDiagnosticsNoPII("info", "started", {
|
|
491089
|
-
version: { VERSION: "0.2.
|
|
491097
|
+
version: { VERSION: "0.2.28", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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
491098
|
is_native_binary: isInBundledMode()
|
|
491091
491099
|
});
|
|
491092
491100
|
registerCleanup(async () => {
|
|
@@ -491954,7 +491962,7 @@ Usage: theus --remote "your task description"`, () => gracefulShutdown(1));
|
|
|
491954
491962
|
pendingHookMessages
|
|
491955
491963
|
}, renderAndRun);
|
|
491956
491964
|
}
|
|
491957
|
-
}).version(`${{ VERSION: "0.2.
|
|
491965
|
+
}).version(`${{ VERSION: "0.2.28", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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
491966
|
program2.option("-w, --worktree [name]", "Crea un nuevo worktree de git para esta sesi\xF3n (opcionalmente indica un nombre)");
|
|
491959
491967
|
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
491968
|
if (canUserConfigureAdvisor()) {
|
|
@@ -492506,7 +492514,7 @@ if (false) {}
|
|
|
492506
492514
|
async function main2() {
|
|
492507
492515
|
const args = process.argv.slice(2);
|
|
492508
492516
|
if (args.length === 1 && (args[0] === "--version" || args[0] === "-v" || args[0] === "-V")) {
|
|
492509
|
-
console.log(`${{ VERSION: "0.2.
|
|
492517
|
+
console.log(`${{ VERSION: "0.2.28", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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
492518
|
return;
|
|
492511
492519
|
}
|
|
492512
492520
|
const {
|