theus-cli 0.2.31 → 0.2.33
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 +225 -176
- package/package.json +1 -1
package/cli.js
CHANGED
|
@@ -58324,7 +58324,7 @@ async function _executeApiKeyHelper(isNonInteractiveSession) {
|
|
|
58324
58324
|
if (isApiKeyHelperFromProjectOrLocalSettings()) {
|
|
58325
58325
|
const hasTrust = checkHasTrustDialogAccepted();
|
|
58326
58326
|
if (!hasTrust && !isNonInteractiveSession) {
|
|
58327
|
-
const error40 = new Error(`Security: apiKeyHelper executed before workspace trust is confirmed. If you see this message, post in ${{ VERSION: "0.2.
|
|
58327
|
+
const error40 = new Error(`Security: apiKeyHelper executed before workspace trust is confirmed. If you see this message, post in ${{ VERSION: "0.2.33", BUILD_TIME: "1970-01-01T00:00:00.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}.`);
|
|
58328
58328
|
logAntError("apiKeyHelper invoked before trust check", error40);
|
|
58329
58329
|
logEvent("tengu_apiKeyHelper_missing_trust11", {});
|
|
58330
58330
|
return null;
|
|
@@ -58368,7 +58368,7 @@ async function runAwsAuthRefresh() {
|
|
|
58368
58368
|
if (isAwsAuthRefreshFromProjectSettings()) {
|
|
58369
58369
|
const hasTrust = checkHasTrustDialogAccepted();
|
|
58370
58370
|
if (!hasTrust && !getIsNonInteractiveSession()) {
|
|
58371
|
-
const error40 = new Error(`Security: awsAuthRefresh executed before workspace trust is confirmed. If you see this message, post in ${{ VERSION: "0.2.
|
|
58371
|
+
const error40 = new Error(`Security: awsAuthRefresh executed before workspace trust is confirmed. If you see this message, post in ${{ VERSION: "0.2.33", BUILD_TIME: "1970-01-01T00:00:00.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}.`);
|
|
58372
58372
|
logAntError("awsAuthRefresh invoked before trust check", error40);
|
|
58373
58373
|
logEvent("tengu_awsAuthRefresh_missing_trust", {});
|
|
58374
58374
|
return false;
|
|
@@ -58428,7 +58428,7 @@ async function getAwsCredsFromCredentialExport() {
|
|
|
58428
58428
|
if (isAwsCredentialExportFromProjectSettings()) {
|
|
58429
58429
|
const hasTrust = checkHasTrustDialogAccepted();
|
|
58430
58430
|
if (!hasTrust && !getIsNonInteractiveSession()) {
|
|
58431
|
-
const error40 = new Error(`Security: awsCredentialExport executed before workspace trust is confirmed. If you see this message, post in ${{ VERSION: "0.2.
|
|
58431
|
+
const error40 = new Error(`Security: awsCredentialExport executed before workspace trust is confirmed. If you see this message, post in ${{ VERSION: "0.2.33", BUILD_TIME: "1970-01-01T00:00:00.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}.`);
|
|
58432
58432
|
logAntError("awsCredentialExport invoked before trust check", error40);
|
|
58433
58433
|
logEvent("tengu_awsCredentialExport_missing_trust", {});
|
|
58434
58434
|
return null;
|
|
@@ -58513,7 +58513,7 @@ async function runGcpAuthRefresh() {
|
|
|
58513
58513
|
if (isGcpAuthRefreshFromProjectSettings()) {
|
|
58514
58514
|
const hasTrust = checkHasTrustDialogAccepted();
|
|
58515
58515
|
if (!hasTrust && !getIsNonInteractiveSession()) {
|
|
58516
|
-
const error40 = new Error(`Security: gcpAuthRefresh executed before workspace trust is confirmed. If you see this message, post in ${{ VERSION: "0.2.
|
|
58516
|
+
const error40 = new Error(`Security: gcpAuthRefresh executed before workspace trust is confirmed. If you see this message, post in ${{ VERSION: "0.2.33", BUILD_TIME: "1970-01-01T00:00:00.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}.`);
|
|
58517
58517
|
logAntError("gcpAuthRefresh invoked before trust check", error40);
|
|
58518
58518
|
logEvent("tengu_gcpAuthRefresh_missing_trust", {});
|
|
58519
58519
|
return false;
|
|
@@ -59208,7 +59208,7 @@ var init_auth = __esm(() => {
|
|
|
59208
59208
|
|
|
59209
59209
|
// utils/userAgent.ts
|
|
59210
59210
|
function getTheusCodeUserAgent() {
|
|
59211
|
-
return `theus-code/${{ VERSION: "0.2.
|
|
59211
|
+
return `theus-code/${{ VERSION: "0.2.33", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION}`;
|
|
59212
59212
|
}
|
|
59213
59213
|
|
|
59214
59214
|
// utils/workloadContext.ts
|
|
@@ -59230,7 +59230,7 @@ function getUserAgent() {
|
|
|
59230
59230
|
const clientApp = process.env.THEUS_AGENT_SDK_CLIENT_APP ? `, client-app/${process.env.THEUS_AGENT_SDK_CLIENT_APP}` : "";
|
|
59231
59231
|
const workload = getWorkload();
|
|
59232
59232
|
const workloadSuffix = workload ? `, workload/${workload}` : "";
|
|
59233
|
-
return `theus-cli/${{ VERSION: "0.2.
|
|
59233
|
+
return `theus-cli/${{ VERSION: "0.2.33", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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})`;
|
|
59234
59234
|
}
|
|
59235
59235
|
function getMCPUserAgent() {
|
|
59236
59236
|
const parts = [];
|
|
@@ -59244,7 +59244,7 @@ function getMCPUserAgent() {
|
|
|
59244
59244
|
parts.push(`client-app/${process.env.THEUS_AGENT_SDK_CLIENT_APP}`);
|
|
59245
59245
|
}
|
|
59246
59246
|
const suffix = parts.length > 0 ? ` (${parts.join(", ")})` : "";
|
|
59247
|
-
return `theus-code/${{ VERSION: "0.2.
|
|
59247
|
+
return `theus-code/${{ VERSION: "0.2.33", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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}`;
|
|
59248
59248
|
}
|
|
59249
59249
|
function getWebFetchUserAgent() {
|
|
59250
59250
|
return `Theus-User (${getTheusCodeUserAgent()}; +https://support.theus.pe/)`;
|
|
@@ -59382,7 +59382,7 @@ var init_user = __esm(() => {
|
|
|
59382
59382
|
deviceId,
|
|
59383
59383
|
sessionId: getSessionId(),
|
|
59384
59384
|
email: getEmail(),
|
|
59385
|
-
appVersion: { VERSION: "0.2.
|
|
59385
|
+
appVersion: { VERSION: "0.2.33", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
|
|
59386
59386
|
platform: getHostPlatformForAnalytics(),
|
|
59387
59387
|
organizationUuid,
|
|
59388
59388
|
accountUuid,
|
|
@@ -61097,7 +61097,7 @@ var init_metadata = __esm(() => {
|
|
|
61097
61097
|
COMPOUND_OPERATOR_REGEX = /\s*(?:&&|\|\||[;|])\s*/;
|
|
61098
61098
|
WHITESPACE_REGEX = /\s+/;
|
|
61099
61099
|
getVersionBase = memoize_default(() => {
|
|
61100
|
-
const match = { VERSION: "0.2.
|
|
61100
|
+
const match = { VERSION: "0.2.33", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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]+)?/);
|
|
61101
61101
|
return match ? match[0] : undefined;
|
|
61102
61102
|
});
|
|
61103
61103
|
buildEnvContext = memoize_default(async () => {
|
|
@@ -61137,9 +61137,9 @@ var init_metadata = __esm(() => {
|
|
|
61137
61137
|
isGithubAction: isEnvTruthy(process.env.GITHUB_ACTIONS),
|
|
61138
61138
|
isTheusCodeAction: isEnvTruthy(process.env.THEUS_CODE_ACTION),
|
|
61139
61139
|
isTheusAiAuth: isTheusAISubscriber(),
|
|
61140
|
-
version: { VERSION: "0.2.
|
|
61140
|
+
version: { VERSION: "0.2.33", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
|
|
61141
61141
|
versionBase: getVersionBase(),
|
|
61142
|
-
buildTime: { VERSION: "0.2.
|
|
61142
|
+
buildTime: { VERSION: "0.2.33", BUILD_TIME: "1970-01-01T00:00:00.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,
|
|
61143
61143
|
deploymentEnvironment: env3.detectDeploymentEnvironment(),
|
|
61144
61144
|
...isEnvTruthy(process.env.GITHUB_ACTIONS) && {
|
|
61145
61145
|
githubEventName: process.env.GITHUB_EVENT_NAME,
|
|
@@ -61805,7 +61805,7 @@ function initialize1PEventLogging() {
|
|
|
61805
61805
|
const platform2 = getPlatform();
|
|
61806
61806
|
const attributes = {
|
|
61807
61807
|
[ATTR_SERVICE_NAME]: "theus-code",
|
|
61808
|
-
[ATTR_SERVICE_VERSION]: { VERSION: "0.2.
|
|
61808
|
+
[ATTR_SERVICE_VERSION]: { VERSION: "0.2.33", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
|
|
61809
61809
|
};
|
|
61810
61810
|
if (platform2 === "wsl") {
|
|
61811
61811
|
const wslVersion = getWslVersion();
|
|
@@ -61832,7 +61832,7 @@ function initialize1PEventLogging() {
|
|
|
61832
61832
|
})
|
|
61833
61833
|
]
|
|
61834
61834
|
});
|
|
61835
|
-
firstPartyEventLogger = firstPartyEventLoggerProvider.getLogger("com.theus.theus_code.events", { VERSION: "0.2.
|
|
61835
|
+
firstPartyEventLogger = firstPartyEventLoggerProvider.getLogger("com.theus.theus_code.events", { VERSION: "0.2.33", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION);
|
|
61836
61836
|
}
|
|
61837
61837
|
async function reinitialize1PEventLoggingIfConfigChanged() {
|
|
61838
61838
|
if (!is1PEventLoggingEnabled() || !firstPartyEventLoggerProvider) {
|
|
@@ -63703,7 +63703,7 @@ function getAttributionHeader(fingerprint) {
|
|
|
63703
63703
|
if (!isAttributionHeaderEnabled()) {
|
|
63704
63704
|
return "";
|
|
63705
63705
|
}
|
|
63706
|
-
const version2 = `${{ VERSION: "0.2.
|
|
63706
|
+
const version2 = `${{ VERSION: "0.2.33", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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}`;
|
|
63707
63707
|
const entrypoint = process.env.THEUS_CODE_ENTRYPOINT ?? "unknown";
|
|
63708
63708
|
const cch = "";
|
|
63709
63709
|
const workload = getWorkload();
|
|
@@ -107813,7 +107813,7 @@ Complete the user's request by providing accurate, documentation-based guidance.
|
|
|
107813
107813
|
}
|
|
107814
107814
|
function getFeedbackGuideline() {
|
|
107815
107815
|
if (isUsing3PServices()) {
|
|
107816
|
-
return `- When you cannot find an answer or the feature doesn't exist, direct the user to ${{ VERSION: "0.2.
|
|
107816
|
+
return `- When you cannot find an answer or the feature doesn't exist, direct the user to ${{ VERSION: "0.2.33", BUILD_TIME: "1970-01-01T00:00:00.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}`;
|
|
107817
107817
|
}
|
|
107818
107818
|
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";
|
|
107819
107819
|
}
|
|
@@ -166522,7 +166522,7 @@ function getTelemetryAttributes() {
|
|
|
166522
166522
|
attributes["session.id"] = sessionId;
|
|
166523
166523
|
}
|
|
166524
166524
|
if (shouldIncludeAttribute("OTEL_METRICS_INCLUDE_VERSION")) {
|
|
166525
|
-
attributes["app.version"] = { VERSION: "0.2.
|
|
166525
|
+
attributes["app.version"] = { VERSION: "0.2.33", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION;
|
|
166526
166526
|
}
|
|
166527
166527
|
const oauthAccount = getOauthAccountInfo();
|
|
166528
166528
|
if (oauthAccount) {
|
|
@@ -202535,7 +202535,7 @@ function getInstallationEnv() {
|
|
|
202535
202535
|
return;
|
|
202536
202536
|
}
|
|
202537
202537
|
function getTheusCodeVersion() {
|
|
202538
|
-
return { VERSION: "0.2.
|
|
202538
|
+
return { VERSION: "0.2.33", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION;
|
|
202539
202539
|
}
|
|
202540
202540
|
async function getInstalledVSCodeExtensionVersion(command) {
|
|
202541
202541
|
const { stdout } = await execFileNoThrow(command, ["--list-extensions", "--show-versions"], {
|
|
@@ -204053,7 +204053,7 @@ async function getMcpHeadersFromHelper(serverName, config2) {
|
|
|
204053
204053
|
if ("scope" in config2 && isMcpServerFromProjectOrLocalSettings(config2) && !getIsNonInteractiveSession()) {
|
|
204054
204054
|
const hasTrust = checkHasTrustDialogAccepted();
|
|
204055
204055
|
if (!hasTrust) {
|
|
204056
|
-
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.
|
|
204056
|
+
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.33", BUILD_TIME: "1970-01-01T00:00:00.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}.`);
|
|
204057
204057
|
logAntError("MCP headersHelper invoked before trust check", error40);
|
|
204058
204058
|
logEvent("tengu_mcp_headersHelper_missing_trust", {});
|
|
204059
204059
|
return null;
|
|
@@ -205263,7 +205263,7 @@ async function setupSdkMcpClients(sdkMcpConfigs, sendMcpMessage) {
|
|
|
205263
205263
|
const client2 = new Client({
|
|
205264
205264
|
name: "theus-code",
|
|
205265
205265
|
title: "Theus",
|
|
205266
|
-
version: { VERSION: "0.2.
|
|
205266
|
+
version: { VERSION: "0.2.33", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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",
|
|
205267
205267
|
description: "Theus's agentic coding tool",
|
|
205268
205268
|
websiteUrl: PRODUCT_URL
|
|
205269
205269
|
}, {
|
|
@@ -205617,7 +205617,7 @@ var init_client5 = __esm(() => {
|
|
|
205617
205617
|
const client2 = new Client({
|
|
205618
205618
|
name: "theus-code",
|
|
205619
205619
|
title: "Theus",
|
|
205620
|
-
version: { VERSION: "0.2.
|
|
205620
|
+
version: { VERSION: "0.2.33", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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",
|
|
205621
205621
|
description: "Theus's agentic coding tool",
|
|
205622
205622
|
websiteUrl: PRODUCT_URL
|
|
205623
205623
|
}, {
|
|
@@ -216195,7 +216195,7 @@ async function initializeBetaTracing(resource) {
|
|
|
216195
216195
|
});
|
|
216196
216196
|
logs.setGlobalLoggerProvider(loggerProvider);
|
|
216197
216197
|
setLoggerProvider(loggerProvider);
|
|
216198
|
-
const eventLogger = logs.getLogger("com.theus.theus_code.events", { VERSION: "0.2.
|
|
216198
|
+
const eventLogger = logs.getLogger("com.theus.theus_code.events", { VERSION: "0.2.33", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION);
|
|
216199
216199
|
setEventLogger(eventLogger);
|
|
216200
216200
|
process.on("beforeExit", async () => {
|
|
216201
216201
|
await loggerProvider?.forceFlush();
|
|
@@ -216235,7 +216235,7 @@ async function initializeTelemetry() {
|
|
|
216235
216235
|
const platform4 = getPlatform();
|
|
216236
216236
|
const baseAttributes = {
|
|
216237
216237
|
[ATTR_SERVICE_NAME]: "theus-code",
|
|
216238
|
-
[ATTR_SERVICE_VERSION]: { VERSION: "0.2.
|
|
216238
|
+
[ATTR_SERVICE_VERSION]: { VERSION: "0.2.33", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
|
|
216239
216239
|
};
|
|
216240
216240
|
if (platform4 === "wsl") {
|
|
216241
216241
|
const wslVersion = getWslVersion();
|
|
@@ -216280,7 +216280,7 @@ async function initializeTelemetry() {
|
|
|
216280
216280
|
} catch {}
|
|
216281
216281
|
};
|
|
216282
216282
|
registerCleanup(shutdownTelemetry2);
|
|
216283
|
-
return meterProvider2.getMeter("com.theus.theus_code", { VERSION: "0.2.
|
|
216283
|
+
return meterProvider2.getMeter("com.theus.theus_code", { VERSION: "0.2.33", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION);
|
|
216284
216284
|
}
|
|
216285
216285
|
const meterProvider = new MeterProvider({
|
|
216286
216286
|
resource,
|
|
@@ -216300,7 +216300,7 @@ async function initializeTelemetry() {
|
|
|
216300
216300
|
});
|
|
216301
216301
|
logs.setGlobalLoggerProvider(loggerProvider);
|
|
216302
216302
|
setLoggerProvider(loggerProvider);
|
|
216303
|
-
const eventLogger = logs.getLogger("com.theus.theus_code.events", { VERSION: "0.2.
|
|
216303
|
+
const eventLogger = logs.getLogger("com.theus.theus_code.events", { VERSION: "0.2.33", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION);
|
|
216304
216304
|
setEventLogger(eventLogger);
|
|
216305
216305
|
logForDebugging("[3P telemetry] Event logger set successfully");
|
|
216306
216306
|
process.on("beforeExit", async () => {
|
|
@@ -216362,7 +216362,7 @@ Current timeout: ${timeoutMs}ms
|
|
|
216362
216362
|
}
|
|
216363
216363
|
};
|
|
216364
216364
|
registerCleanup(shutdownTelemetry);
|
|
216365
|
-
return meterProvider.getMeter("com.theus.theus_code", { VERSION: "0.2.
|
|
216365
|
+
return meterProvider.getMeter("com.theus.theus_code", { VERSION: "0.2.33", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION);
|
|
216366
216366
|
}
|
|
216367
216367
|
async function flushTelemetry() {
|
|
216368
216368
|
const meterProvider = getMeterProvider();
|
|
@@ -216902,7 +216902,7 @@ async function installOrUpdateTheusPackage(channel2, specificVersion) {
|
|
|
216902
216902
|
return "install_failed";
|
|
216903
216903
|
}
|
|
216904
216904
|
const versionSpec = specificVersion ? specificVersion : channel2 === "stable" ? "stable" : "latest";
|
|
216905
|
-
const result = await execFileNoThrowWithCwd("npm", ["install", `${{ VERSION: "0.2.
|
|
216905
|
+
const result = await execFileNoThrowWithCwd("npm", ["install", `${{ VERSION: "0.2.33", BUILD_TIME: "1970-01-01T00:00:00.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 });
|
|
216906
216906
|
if (result.code !== 0) {
|
|
216907
216907
|
const error40 = new Error(`Failed to install Theus CLI package: ${result.stderr}`);
|
|
216908
216908
|
logError2(error40);
|
|
@@ -217048,9 +217048,9 @@ async function assertMinVersion() {
|
|
|
217048
217048
|
if (false) {}
|
|
217049
217049
|
try {
|
|
217050
217050
|
const versionConfig = await getDynamicConfig_BLOCKS_ON_INIT("tengu_version_config", { minVersion: "0.0.0" });
|
|
217051
|
-
if (versionConfig.minVersion && lt({ VERSION: "0.2.
|
|
217051
|
+
if (versionConfig.minVersion && lt({ VERSION: "0.2.33", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
|
|
217052
217052
|
console.error(`
|
|
217053
|
-
It looks like your version of Theus (${{ VERSION: "0.2.
|
|
217053
|
+
It looks like your version of Theus (${{ VERSION: "0.2.33", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.
|
|
217054
217054
|
A newer version (${versionConfig.minVersion} or higher) is required to continue.
|
|
217055
217055
|
|
|
217056
217056
|
To update, please run:
|
|
@@ -217191,7 +217191,7 @@ async function getInstallationPrefix() {
|
|
|
217191
217191
|
return prefixResult.stdout.trim();
|
|
217192
217192
|
}
|
|
217193
217193
|
function getGlobalInstallPackageManager() {
|
|
217194
|
-
if ({ VERSION: "0.2.
|
|
217194
|
+
if ({ VERSION: "0.2.33", BUILD_TIME: "1970-01-01T00:00:00.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") {
|
|
217195
217195
|
return "npm";
|
|
217196
217196
|
}
|
|
217197
217197
|
return env3.isRunningWithBun() ? "bun" : "npm";
|
|
@@ -217216,7 +217216,7 @@ async function checkGlobalInstallPermissions() {
|
|
|
217216
217216
|
}
|
|
217217
217217
|
async function getLatestVersion(channel2) {
|
|
217218
217218
|
const npmTag = channel2 === "stable" ? "stable" : "latest";
|
|
217219
|
-
const result = await execFileNoThrowWithCwd("npm", ["view", `${{ VERSION: "0.2.
|
|
217219
|
+
const result = await execFileNoThrowWithCwd("npm", ["view", `${{ VERSION: "0.2.33", BUILD_TIME: "1970-01-01T00:00:00.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() });
|
|
217220
217220
|
if (result.code !== 0) {
|
|
217221
217221
|
logForDebugging(`npm view failed with code ${result.code}`);
|
|
217222
217222
|
if (result.stderr) {
|
|
@@ -217232,7 +217232,7 @@ async function getLatestVersion(channel2) {
|
|
|
217232
217232
|
return result.stdout.trim();
|
|
217233
217233
|
}
|
|
217234
217234
|
async function getNpmDistTags() {
|
|
217235
|
-
const result = await execFileNoThrowWithCwd("npm", ["view", { VERSION: "0.2.
|
|
217235
|
+
const result = await execFileNoThrowWithCwd("npm", ["view", { VERSION: "0.2.33", BUILD_TIME: "1970-01-01T00:00:00.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() });
|
|
217236
217236
|
if (result.code !== 0) {
|
|
217237
217237
|
logForDebugging(`npm view dist-tags failed with code ${result.code}`);
|
|
217238
217238
|
return { latest: null, stable: null };
|
|
@@ -217272,7 +217272,7 @@ async function installGlobalPackage(specificVersion) {
|
|
|
217272
217272
|
logError2(new AutoUpdaterError("Another process is currently installing an update"));
|
|
217273
217273
|
logEvent("tengu_auto_updater_lock_contention", {
|
|
217274
217274
|
pid: process.pid,
|
|
217275
|
-
currentVersion: { VERSION: "0.2.
|
|
217275
|
+
currentVersion: { VERSION: "0.2.33", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
|
|
217276
217276
|
});
|
|
217277
217277
|
return "in_progress";
|
|
217278
217278
|
}
|
|
@@ -217281,7 +217281,7 @@ async function installGlobalPackage(specificVersion) {
|
|
|
217281
217281
|
if (!env3.isRunningWithBun() && env3.isNpmFromWindowsPath()) {
|
|
217282
217282
|
logError2(new Error("Windows NPM detected in WSL environment"));
|
|
217283
217283
|
logEvent("tengu_auto_updater_windows_npm_in_wsl", {
|
|
217284
|
-
currentVersion: { VERSION: "0.2.
|
|
217284
|
+
currentVersion: { VERSION: "0.2.33", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
|
|
217285
217285
|
});
|
|
217286
217286
|
console.error(`
|
|
217287
217287
|
Error: Windows NPM detected in WSL
|
|
@@ -217300,7 +217300,7 @@ To fix this issue:
|
|
|
217300
217300
|
if (!hasPermissions) {
|
|
217301
217301
|
return "no_permissions";
|
|
217302
217302
|
}
|
|
217303
|
-
const packageSpec = specificVersion ? `${{ VERSION: "0.2.
|
|
217303
|
+
const packageSpec = specificVersion ? `${{ VERSION: "0.2.33", BUILD_TIME: "1970-01-01T00:00:00.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.33", BUILD_TIME: "1970-01-01T00:00:00.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;
|
|
217304
217304
|
const packageManager = getGlobalInstallPackageManager();
|
|
217305
217305
|
const installResult = await execFileNoThrowWithCwd(packageManager, ["install", "-g", packageSpec], { cwd: homedir18() });
|
|
217306
217306
|
if (installResult.code !== 0) {
|
|
@@ -217628,8 +217628,8 @@ async function detectMultipleInstallations() {
|
|
|
217628
217628
|
installations.push({ type: "npm-local", path: localPath });
|
|
217629
217629
|
}
|
|
217630
217630
|
const packagesToCheck = ["@theus-ai/theus-code"];
|
|
217631
|
-
if ({ VERSION: "0.2.
|
|
217632
|
-
packagesToCheck.push({ VERSION: "0.2.
|
|
217631
|
+
if ({ VERSION: "0.2.33", BUILD_TIME: "1970-01-01T00:00:00.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.33", BUILD_TIME: "1970-01-01T00:00:00.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") {
|
|
217632
|
+
packagesToCheck.push({ VERSION: "0.2.33", BUILD_TIME: "1970-01-01T00:00:00.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);
|
|
217633
217633
|
}
|
|
217634
217634
|
const npmResult = await execFileNoThrow("npm", [
|
|
217635
217635
|
"-g",
|
|
@@ -217812,7 +217812,7 @@ function detectLinuxGlobPatternWarnings() {
|
|
|
217812
217812
|
}
|
|
217813
217813
|
async function getDoctorDiagnostic() {
|
|
217814
217814
|
const installationType = await getCurrentInstallationType();
|
|
217815
|
-
const version2 = { VERSION: "0.2.
|
|
217815
|
+
const version2 = { VERSION: "0.2.33", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.33", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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";
|
|
217816
217816
|
const installationPath = await getInstallationPath();
|
|
217817
217817
|
const invokedBinary = getInvokedBinary();
|
|
217818
217818
|
const multipleInstallations = await detectMultipleInstallations();
|
|
@@ -217824,8 +217824,8 @@ async function getDoctorDiagnostic() {
|
|
|
217824
217824
|
for (const install of npmInstalls) {
|
|
217825
217825
|
if (install.type === "npm-global") {
|
|
217826
217826
|
let uninstallCmd = "npm -g uninstall @theus-ai/theus-code";
|
|
217827
|
-
if ({ VERSION: "0.2.
|
|
217828
|
-
uninstallCmd += ` && npm -g uninstall ${{ VERSION: "0.2.
|
|
217827
|
+
if ({ VERSION: "0.2.33", BUILD_TIME: "1970-01-01T00:00:00.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.33", BUILD_TIME: "1970-01-01T00:00:00.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") {
|
|
217828
|
+
uninstallCmd += ` && npm -g uninstall ${{ VERSION: "0.2.33", BUILD_TIME: "1970-01-01T00:00:00.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}`;
|
|
217829
217829
|
}
|
|
217830
217830
|
warnings.push({
|
|
217831
217831
|
issue: `Leftover npm global installation at ${install.path}`,
|
|
@@ -217937,7 +217937,7 @@ async function getLatestVersionFromArtifactory(tag2 = "latest") {
|
|
|
217937
217937
|
const startTime2 = Date.now();
|
|
217938
217938
|
const { stdout, code, stderr } = await execFileNoThrowWithCwd("npm", [
|
|
217939
217939
|
"view",
|
|
217940
|
-
`${{ VERSION: "0.2.
|
|
217940
|
+
`${{ VERSION: "0.2.33", BUILD_TIME: "1970-01-01T00:00:00.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}`,
|
|
217941
217941
|
"version",
|
|
217942
217942
|
"--prefer-online",
|
|
217943
217943
|
"--registry",
|
|
@@ -217961,7 +217961,7 @@ async function getLatestVersionFromArtifactory(tag2 = "latest") {
|
|
|
217961
217961
|
latency_ms: latencyMs,
|
|
217962
217962
|
source_npm: true
|
|
217963
217963
|
});
|
|
217964
|
-
logForDebugging(`npm view ${{ VERSION: "0.2.
|
|
217964
|
+
logForDebugging(`npm view ${{ VERSION: "0.2.33", BUILD_TIME: "1970-01-01T00:00:00.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}`);
|
|
217965
217965
|
const latestVersion = stdout.trim();
|
|
217966
217966
|
return latestVersion;
|
|
217967
217967
|
}
|
|
@@ -218017,7 +218017,7 @@ async function downloadVersionFromArtifactory(version2, stagingPath) {
|
|
|
218017
218017
|
const fs3 = getFsImplementation();
|
|
218018
218018
|
await fs3.rm(stagingPath, { recursive: true, force: true });
|
|
218019
218019
|
const platform4 = getPlatform2();
|
|
218020
|
-
const platformPackageName = `${{ VERSION: "0.2.
|
|
218020
|
+
const platformPackageName = `${{ VERSION: "0.2.33", BUILD_TIME: "1970-01-01T00:00:00.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}`;
|
|
218021
218021
|
logForDebugging(`Fetching integrity hash for ${platformPackageName}@${version2}`);
|
|
218022
218022
|
const {
|
|
218023
218023
|
stdout: integrityOutput,
|
|
@@ -218046,7 +218046,7 @@ async function downloadVersionFromArtifactory(version2, stagingPath) {
|
|
|
218046
218046
|
name: "theus-native-installer",
|
|
218047
218047
|
version: "0.0.1",
|
|
218048
218048
|
dependencies: {
|
|
218049
|
-
[{ VERSION: "0.2.
|
|
218049
|
+
[{ VERSION: "0.2.33", BUILD_TIME: "1970-01-01T00:00:00.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
|
|
218050
218050
|
}
|
|
218051
218051
|
};
|
|
218052
218052
|
const packageLock = {
|
|
@@ -218059,10 +218059,10 @@ async function downloadVersionFromArtifactory(version2, stagingPath) {
|
|
|
218059
218059
|
name: "theus-native-installer",
|
|
218060
218060
|
version: "0.0.1",
|
|
218061
218061
|
dependencies: {
|
|
218062
|
-
[{ VERSION: "0.2.
|
|
218062
|
+
[{ VERSION: "0.2.33", BUILD_TIME: "1970-01-01T00:00:00.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
|
|
218063
218063
|
}
|
|
218064
218064
|
},
|
|
218065
|
-
[`node_modules/${{ VERSION: "0.2.
|
|
218065
|
+
[`node_modules/${{ VERSION: "0.2.33", BUILD_TIME: "1970-01-01T00:00:00.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}`]: {
|
|
218066
218066
|
version: version2,
|
|
218067
218067
|
optionalDependencies: {
|
|
218068
218068
|
[platformPackageName]: version2
|
|
@@ -218084,7 +218084,7 @@ async function downloadVersionFromArtifactory(version2, stagingPath) {
|
|
|
218084
218084
|
if (result.code !== 0) {
|
|
218085
218085
|
throw new Error(`npm ci failed with code ${result.code}: ${result.stderr}`);
|
|
218086
218086
|
}
|
|
218087
|
-
logForDebugging(`Successfully downloaded and verified ${{ VERSION: "0.2.
|
|
218087
|
+
logForDebugging(`Successfully downloaded and verified ${{ VERSION: "0.2.33", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.NATIVE_PACKAGE_URL}@${version2}`);
|
|
218088
218088
|
}
|
|
218089
218089
|
function getStallTimeoutMs() {
|
|
218090
218090
|
return Number(process.env.THEUS_CODE_STALL_TIMEOUT_MS_FOR_TESTING) || DEFAULT_STALL_TIMEOUT_MS;
|
|
@@ -218747,8 +218747,8 @@ async function updateLatest(channelOrVersion, forceReinstall = false) {
|
|
|
218747
218747
|
const maxVersion = await getMaxVersion();
|
|
218748
218748
|
if (maxVersion && gt(version2, maxVersion)) {
|
|
218749
218749
|
logForDebugging(`Native installer: maxVersion ${maxVersion} is set, capping update from ${version2} to ${maxVersion}`);
|
|
218750
|
-
if (gte({ VERSION: "0.2.
|
|
218751
|
-
logForDebugging(`Native installer: current version ${{ VERSION: "0.2.
|
|
218750
|
+
if (gte({ VERSION: "0.2.33", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
|
|
218751
|
+
logForDebugging(`Native installer: current version ${{ VERSION: "0.2.33", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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`);
|
|
218752
218752
|
logEvent("tengu_native_update_skipped_max_version", {
|
|
218753
218753
|
latency_ms: Date.now() - startTime2,
|
|
218754
218754
|
max_version: maxVersion,
|
|
@@ -218759,7 +218759,7 @@ async function updateLatest(channelOrVersion, forceReinstall = false) {
|
|
|
218759
218759
|
version2 = maxVersion;
|
|
218760
218760
|
}
|
|
218761
218761
|
}
|
|
218762
|
-
if (!forceReinstall && version2 === { VERSION: "0.2.
|
|
218762
|
+
if (!forceReinstall && version2 === { VERSION: "0.2.33", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
|
|
218763
218763
|
logForDebugging(`Found ${version2} at ${executablePath}, skipping install`);
|
|
218764
218764
|
logEvent("tengu_native_update_complete", {
|
|
218765
218765
|
latency_ms: Date.now() - startTime2,
|
|
@@ -219509,8 +219509,8 @@ async function cleanupNpmInstallations() {
|
|
|
219509
219509
|
} else if (codePackageResult.error) {
|
|
219510
219510
|
errors4.push(codePackageResult.error);
|
|
219511
219511
|
}
|
|
219512
|
-
if ({ VERSION: "0.2.
|
|
219513
|
-
const macroPackageResult = await attemptNpmUninstall({ VERSION: "0.2.
|
|
219512
|
+
if ({ VERSION: "0.2.33", BUILD_TIME: "1970-01-01T00:00:00.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.33", BUILD_TIME: "1970-01-01T00:00:00.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") {
|
|
219513
|
+
const macroPackageResult = await attemptNpmUninstall({ VERSION: "0.2.33", BUILD_TIME: "1970-01-01T00:00:00.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);
|
|
219514
219514
|
if (macroPackageResult.success) {
|
|
219515
219515
|
removed++;
|
|
219516
219516
|
if (macroPackageResult.warning) {
|
|
@@ -275789,7 +275789,9 @@ function createRunAgentSpawner(deps = {}) {
|
|
|
275789
275789
|
const makeUserMessage = makeUserMessageOverride ?? lazyCreateUserMessage();
|
|
275790
275790
|
const resolveAgent = resolveAgentOverride ?? defaultResolveAgent;
|
|
275791
275791
|
const agentDefinition = resolveAgent(norm.tipo, toolUseContext);
|
|
275792
|
-
const promptMessages = [
|
|
275792
|
+
const promptMessages = [
|
|
275793
|
+
makeUserMessage({ content: WORKFLOW_AGENT_PREAMBLE + norm.prompt })
|
|
275794
|
+
];
|
|
275793
275795
|
let workerTools = availableTools;
|
|
275794
275796
|
if (!workerTools) {
|
|
275795
275797
|
const appState = toolUseContext && typeof toolUseContext.getAppState === "function" ? toolUseContext.getAppState() : undefined;
|
|
@@ -275997,7 +275999,7 @@ async function executeWorkflow(opts = {}) {
|
|
|
275997
275999
|
...error40 ? { error: toErr(error40) } : {}
|
|
275998
276000
|
});
|
|
275999
276001
|
}
|
|
276000
|
-
var WorkflowError, WorkflowAbortError, REGISTRY, WORKFLOW_FILE_EXTS, _runAgentCached, _createUserMessageCached, _assembleToolPoolCached, _worktreeCached, _runWithCwdOverrideCached;
|
|
276002
|
+
var WorkflowError, WorkflowAbortError, REGISTRY, WORKFLOW_FILE_EXTS, _runAgentCached, _createUserMessageCached, _assembleToolPoolCached, _worktreeCached, _runWithCwdOverrideCached, WORKFLOW_AGENT_PREAMBLE;
|
|
276001
276003
|
var init_runtime = __esm(() => {
|
|
276002
276004
|
WorkflowError = class WorkflowError extends Error {
|
|
276003
276005
|
constructor(message) {
|
|
@@ -276013,6 +276015,21 @@ var init_runtime = __esm(() => {
|
|
|
276013
276015
|
};
|
|
276014
276016
|
REGISTRY = new Map;
|
|
276015
276017
|
WORKFLOW_FILE_EXTS = [".js", ".ts", ".mjs", ".cjs"];
|
|
276018
|
+
WORKFLOW_AGENT_PREAMBLE = [
|
|
276019
|
+
"Eres un subagente dentro de una orquestaci\xF3n de Theus. Reglas estrictas:",
|
|
276020
|
+
"1) Completa tu tarea con las herramientas que TENGAS disponibles. Si una",
|
|
276021
|
+
" herramienta falla, no existe o no est\xE1 lista (p. ej. el grafo de \xD1aupa no",
|
|
276022
|
+
" est\xE1 indexado), cambia de inmediato a Grep, Glob, Read o Bash y sigue \u2014",
|
|
276023
|
+
" NUNCA te detienes ni pides permiso por eso.",
|
|
276024
|
+
"2) NUNCA respondas con una disculpa ni menciones \xABproblema t\xE9cnico\xBB,",
|
|
276025
|
+
" \xABno puedo\xBB o \xABherramientas no disponibles\xBB. Tu salida es SIEMPRE el",
|
|
276026
|
+
" trabajo pedido (el resultado o la estructura solicitada), jam\xE1s una excusa.",
|
|
276027
|
+
"3) S\xE9 conciso y ve directo al resultado.",
|
|
276028
|
+
"",
|
|
276029
|
+
"--- TAREA ---",
|
|
276030
|
+
""
|
|
276031
|
+
].join(`
|
|
276032
|
+
`);
|
|
276016
276033
|
});
|
|
276017
276034
|
|
|
276018
276035
|
// tasks/LocalWorkflowTask/LocalWorkflowTask.js
|
|
@@ -303594,9 +303611,9 @@ function getTheusEnvMetadata() {
|
|
|
303594
303611
|
};
|
|
303595
303612
|
}
|
|
303596
303613
|
function getBuildAgeMinutes() {
|
|
303597
|
-
if (!{ VERSION: "0.2.
|
|
303614
|
+
if (!{ VERSION: "0.2.33", BUILD_TIME: "1970-01-01T00:00:00.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)
|
|
303598
303615
|
return;
|
|
303599
|
-
const buildTime = new Date({ VERSION: "0.2.
|
|
303616
|
+
const buildTime = new Date({ VERSION: "0.2.33", BUILD_TIME: "1970-01-01T00:00:00.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();
|
|
303600
303617
|
if (isNaN(buildTime))
|
|
303601
303618
|
return;
|
|
303602
303619
|
return Math.floor((Date.now() - buildTime) / 60000);
|
|
@@ -320050,7 +320067,7 @@ function getAssistantMessageFromError(error40, model, options2) {
|
|
|
320050
320067
|
if (process.env.USER_TYPE === "ant") {
|
|
320051
320068
|
const baseMessage = `API Error: 400 ${error40.message}
|
|
320052
320069
|
|
|
320053
|
-
Run /share and post the JSON file to ${{ VERSION: "0.2.
|
|
320070
|
+
Run /share and post the JSON file to ${{ VERSION: "0.2.33", BUILD_TIME: "1970-01-01T00:00:00.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}.`;
|
|
320054
320071
|
const rewindInstruction = getIsNonInteractiveSession() ? "" : " Then, use /rewind to recover the conversation.";
|
|
320055
320072
|
return createAssistantAPIErrorMessage({
|
|
320056
320073
|
content: baseMessage + rewindInstruction,
|
|
@@ -320086,7 +320103,7 @@ Run /share and post the JSON file to ${{ VERSION: "0.2.31", BUILD_TIME: "1970-01
|
|
|
320086
320103
|
if (process.env.USER_TYPE === "ant" && !process.env.THEUS_MODEL && error40 instanceof Error && error40.message.toLowerCase().includes("invalid model name")) {
|
|
320087
320104
|
const orgId = getOauthAccountInfo()?.organizationUuid;
|
|
320088
320105
|
const baseMsg = `[THEUS-INTERNAL] Your org isn't gated into the \`${model}\` model. Either run \`theus\` with \`THEUS_MODEL=${getDefaultMainLoopModelSetting()}\``;
|
|
320089
|
-
const msg = orgId ? `${baseMsg} or share your orgId (${orgId}) in ${{ VERSION: "0.2.
|
|
320106
|
+
const msg = orgId ? `${baseMsg} or share your orgId (${orgId}) in ${{ VERSION: "0.2.33", BUILD_TIME: "1970-01-01T00:00:00.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.33", BUILD_TIME: "1970-01-01T00:00:00.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.`;
|
|
320090
320107
|
return createAssistantAPIErrorMessage({
|
|
320091
320108
|
content: msg,
|
|
320092
320109
|
error: "invalid_request"
|
|
@@ -330190,7 +330207,7 @@ function buildPrimarySection() {
|
|
|
330190
330207
|
});
|
|
330191
330208
|
return [{
|
|
330192
330209
|
label: "Version",
|
|
330193
|
-
value: { VERSION: "0.2.
|
|
330210
|
+
value: { VERSION: "0.2.33", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
|
|
330194
330211
|
}, {
|
|
330195
330212
|
label: "Session name",
|
|
330196
330213
|
value: nameValue
|
|
@@ -334006,7 +334023,7 @@ function Config({
|
|
|
334006
334023
|
}
|
|
334007
334024
|
})
|
|
334008
334025
|
}) : showSubmenu === "ChannelDowngrade" ? /* @__PURE__ */ jsx_runtime185.jsx(ChannelDowngradeDialog, {
|
|
334009
|
-
currentVersion: { VERSION: "0.2.
|
|
334026
|
+
currentVersion: { VERSION: "0.2.33", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
|
|
334010
334027
|
onChoice: (choice) => {
|
|
334011
334028
|
setShowSubmenu(null);
|
|
334012
334029
|
setTabsHidden(false);
|
|
@@ -334018,7 +334035,7 @@ function Config({
|
|
|
334018
334035
|
autoUpdatesChannel: "stable"
|
|
334019
334036
|
};
|
|
334020
334037
|
if (choice === "stay") {
|
|
334021
|
-
newSettings.minimumVersion = { VERSION: "0.2.
|
|
334038
|
+
newSettings.minimumVersion = { VERSION: "0.2.33", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION;
|
|
334022
334039
|
}
|
|
334023
334040
|
updateSettingsForSource("userSettings", newSettings);
|
|
334024
334041
|
setSettingsData((prev_27) => ({
|
|
@@ -342052,7 +342069,7 @@ function HelpV2(t0) {
|
|
|
342052
342069
|
let t6;
|
|
342053
342070
|
if ($2[31] !== tabs) {
|
|
342054
342071
|
t6 = /* @__PURE__ */ jsx_runtime212.jsx(Tabs, {
|
|
342055
|
-
title: `Theus v${{ VERSION: "0.2.
|
|
342072
|
+
title: `Theus v${{ VERSION: "0.2.33", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION}`,
|
|
342056
342073
|
color: "professionalBlue",
|
|
342057
342074
|
defaultTab: "general",
|
|
342058
342075
|
children: tabs
|
|
@@ -358773,6 +358790,23 @@ var init_mcp3 = __esm(() => {
|
|
|
358773
358790
|
var NOVEDADES;
|
|
358774
358791
|
var init_data = __esm(() => {
|
|
358775
358792
|
NOVEDADES = [
|
|
358793
|
+
{
|
|
358794
|
+
version: "v0.2.33",
|
|
358795
|
+
fecha: "2026-07-13",
|
|
358796
|
+
titulo: "Constelaci\xF3n en morado ne\xF3n + recetas que no se rinden",
|
|
358797
|
+
puntos: [
|
|
358798
|
+
"La Constelaci\xF3n (Shift+\u2193) ahora resalta en cualquier terminal: acento morado ne\xF3n con estrellas que respiran (brillo que sube y baja), completadas en dorado \u2605, y las etiquetas en el color por defecto (legibles en terminal clara u oscura). Barra de progreso morada.",
|
|
358799
|
+
"Arreglado: los subagentes de las recetas ya no se rinden con \xABproblema t\xE9cnico con las herramientas\xBB; si el grafo de \xD1aupa no est\xE1 disponible, degradan solos a Grep/Read/Bash y completan el trabajo."
|
|
358800
|
+
]
|
|
358801
|
+
},
|
|
358802
|
+
{
|
|
358803
|
+
version: "v0.2.32",
|
|
358804
|
+
fecha: "2026-07-13",
|
|
358805
|
+
titulo: "Constelaci\xF3n de agentes, m\xE1s viva",
|
|
358806
|
+
puntos: [
|
|
358807
|
+
"El arte de la Constelaci\xF3n (Shift+\u2193) ahora respira: los subagentes activos titilan como estrellas de forma escalonada (no todos a la vez), los completados quedan como estrella s\xF3lida \u2605, y las l\xEDneas entre fases ya no apuntan al vac\xEDo. Un solo spinner en la cabecera para menos ruido."
|
|
358808
|
+
]
|
|
358809
|
+
},
|
|
358776
358810
|
{
|
|
358777
358811
|
version: "v0.2.31",
|
|
358778
358812
|
fecha: "2026-07-13",
|
|
@@ -360478,7 +360512,7 @@ function Onboarding({
|
|
|
360478
360512
|
flexDirection: "column",
|
|
360479
360513
|
children: [
|
|
360480
360514
|
/* @__PURE__ */ jsx_runtime245.jsx(TheusBanner, {
|
|
360481
|
-
version: { VERSION: "0.2.
|
|
360515
|
+
version: { VERSION: "0.2.33", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
|
|
360482
360516
|
}),
|
|
360483
360517
|
/* @__PURE__ */ jsx_runtime245.jsxs(ThemedBox_default, {
|
|
360484
360518
|
flexDirection: "column",
|
|
@@ -360823,9 +360857,9 @@ function getAllReleaseNotes(changelogContent = getStoredChangelogFromMemory()) {
|
|
|
360823
360857
|
return [];
|
|
360824
360858
|
}
|
|
360825
360859
|
}
|
|
360826
|
-
async function checkForReleaseNotes(lastSeenVersion, currentVersion = { VERSION: "0.2.
|
|
360860
|
+
async function checkForReleaseNotes(lastSeenVersion, currentVersion = { VERSION: "0.2.33", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION) {
|
|
360827
360861
|
if (process.env.USER_TYPE === "ant") {
|
|
360828
|
-
const changelog = { VERSION: "0.2.
|
|
360862
|
+
const changelog = { VERSION: "0.2.33", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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;
|
|
360829
360863
|
if (changelog) {
|
|
360830
360864
|
const commits = changelog.trim().split(`
|
|
360831
360865
|
`).filter(Boolean);
|
|
@@ -365228,7 +365262,7 @@ var init_Messages = __esm(() => {
|
|
|
365228
365262
|
let t1;
|
|
365229
365263
|
if ($2[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
365230
365264
|
t1 = /* @__PURE__ */ jsx_runtime258.jsx(TheusSessionHeader, {
|
|
365231
|
-
version: { VERSION: "0.2.
|
|
365265
|
+
version: { VERSION: "0.2.33", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
|
|
365232
365266
|
});
|
|
365233
365267
|
$2[0] = t1;
|
|
365234
365268
|
} else {
|
|
@@ -378292,6 +378326,8 @@ var init_ShellDetailDialog = __esm(() => {
|
|
|
378292
378326
|
var exports_WorkflowDetailDialog = {};
|
|
378293
378327
|
__export(exports_WorkflowDetailDialog, {
|
|
378294
378328
|
statusColor: () => statusColor2,
|
|
378329
|
+
seedOf: () => seedOf,
|
|
378330
|
+
runningColor: () => runningColor,
|
|
378295
378331
|
progressBarString: () => progressBarString,
|
|
378296
378332
|
phaseCounts: () => phaseCounts,
|
|
378297
378333
|
nodeGlyph: () => nodeGlyph,
|
|
@@ -378304,6 +378340,11 @@ __export(exports_WorkflowDetailDialog, {
|
|
|
378304
378340
|
brailleFrame: () => brailleFrame,
|
|
378305
378341
|
WorkflowDetailDialog: () => WorkflowDetailDialog
|
|
378306
378342
|
});
|
|
378343
|
+
function runningColor(frame, seed = 0) {
|
|
378344
|
+
if (REDUCE_MOTION)
|
|
378345
|
+
return NEON;
|
|
378346
|
+
return TWINKLE_COLORS[modIndex(frame + seed, TWINKLE_COLORS.length)];
|
|
378347
|
+
}
|
|
378307
378348
|
function truncate5(text, n2) {
|
|
378308
378349
|
const s = typeof text === "string" ? text : String(text ?? "");
|
|
378309
378350
|
if (n2 <= 1)
|
|
@@ -378313,6 +378354,13 @@ function truncate5(text, n2) {
|
|
|
378313
378354
|
function modIndex(i3, len) {
|
|
378314
378355
|
return (i3 % len + len) % len;
|
|
378315
378356
|
}
|
|
378357
|
+
function seedOf(a2) {
|
|
378358
|
+
const id = String(a2 && a2.id || "");
|
|
378359
|
+
let s = 0;
|
|
378360
|
+
for (let i3 = 0;i3 < id.length; i3++)
|
|
378361
|
+
s = (s * 31 + id.charCodeAt(i3)) % 9973;
|
|
378362
|
+
return s;
|
|
378363
|
+
}
|
|
378316
378364
|
function groupAgentsByPhase(agents) {
|
|
378317
378365
|
const order = [];
|
|
378318
378366
|
const byKey = new Map;
|
|
@@ -378332,10 +378380,10 @@ function groupAgentsByPhase(agents) {
|
|
|
378332
378380
|
nodes: byKey.get(key)
|
|
378333
378381
|
}));
|
|
378334
378382
|
}
|
|
378335
|
-
function nodeGlyph(status2, frame) {
|
|
378383
|
+
function nodeGlyph(status2, frame, seed = 0) {
|
|
378336
378384
|
switch (status2) {
|
|
378337
378385
|
case "completed":
|
|
378338
|
-
return "\
|
|
378386
|
+
return "\u2605";
|
|
378339
378387
|
case "failed":
|
|
378340
378388
|
return "\u2717";
|
|
378341
378389
|
case "skipped":
|
|
@@ -378343,22 +378391,22 @@ function nodeGlyph(status2, frame) {
|
|
|
378343
378391
|
case "pending":
|
|
378344
378392
|
case "queued":
|
|
378345
378393
|
case "waiting":
|
|
378346
|
-
return "\
|
|
378394
|
+
return "\xB7";
|
|
378347
378395
|
case "running":
|
|
378348
378396
|
default:
|
|
378349
|
-
return PULSE_FRAMES[modIndex(frame, PULSE_FRAMES.length)];
|
|
378397
|
+
return PULSE_FRAMES[modIndex(frame + seed, PULSE_FRAMES.length)];
|
|
378350
378398
|
}
|
|
378351
378399
|
}
|
|
378352
378400
|
function statusColor2(status2) {
|
|
378353
378401
|
switch (status2) {
|
|
378354
378402
|
case "completed":
|
|
378355
|
-
return
|
|
378403
|
+
return DONE;
|
|
378356
378404
|
case "failed":
|
|
378357
|
-
return
|
|
378405
|
+
return FAIL;
|
|
378358
378406
|
case "running":
|
|
378359
|
-
return
|
|
378407
|
+
return NEON;
|
|
378360
378408
|
default:
|
|
378361
|
-
return;
|
|
378409
|
+
return MUTE;
|
|
378362
378410
|
}
|
|
378363
378411
|
}
|
|
378364
378412
|
function isDimStatus(status2) {
|
|
@@ -378492,8 +378540,8 @@ function PhaseColumn({ phase, rows, frame, selectedId }) {
|
|
|
378492
378540
|
continue;
|
|
378493
378541
|
}
|
|
378494
378542
|
const sel = selectedId != null && a2.id === selectedId;
|
|
378495
|
-
const glyph = nodeGlyph(a2.status, frame);
|
|
378496
|
-
const color3 = statusColor2(a2.status);
|
|
378543
|
+
const glyph = nodeGlyph(a2.status, frame, seedOf(a2));
|
|
378544
|
+
const color3 = a2.status === "running" ? runningColor(frame, seedOf(a2)) : statusColor2(a2.status);
|
|
378497
378545
|
const dim2 = isDimStatus(a2.status);
|
|
378498
378546
|
const label = truncate5(a2.descripcion || a2.tipo || "agente", COL_W - 4);
|
|
378499
378547
|
const meta5 = nodeMeta(a2);
|
|
@@ -378502,7 +378550,7 @@ function PhaseColumn({ phase, rows, frame, selectedId }) {
|
|
|
378502
378550
|
wrap: "truncate-end",
|
|
378503
378551
|
children: [
|
|
378504
378552
|
/* @__PURE__ */ jsx_runtime279.jsx(ThemedText, {
|
|
378505
|
-
color: sel ?
|
|
378553
|
+
color: sel ? NEON : undefined,
|
|
378506
378554
|
bold: sel,
|
|
378507
378555
|
children: sel ? "\u276F" : " "
|
|
378508
378556
|
}),
|
|
@@ -378518,17 +378566,10 @@ function PhaseColumn({ phase, rows, frame, selectedId }) {
|
|
|
378518
378566
|
}),
|
|
378519
378567
|
" ",
|
|
378520
378568
|
/* @__PURE__ */ jsx_runtime279.jsx(ThemedText, {
|
|
378521
|
-
color: sel ?
|
|
378569
|
+
color: sel ? NEON : undefined,
|
|
378522
378570
|
dimColor: dim2 && !sel,
|
|
378523
378571
|
children: label
|
|
378524
378572
|
}),
|
|
378525
|
-
running2 && !REDUCE_MOTION ? /* @__PURE__ */ jsx_runtime279.jsxs(ThemedText, {
|
|
378526
|
-
color: "background",
|
|
378527
|
-
children: [
|
|
378528
|
-
" ",
|
|
378529
|
-
brailleFrame(frame)
|
|
378530
|
-
]
|
|
378531
|
-
}) : null,
|
|
378532
378573
|
meta5 ? /* @__PURE__ */ jsx_runtime279.jsxs(ThemedText, {
|
|
378533
378574
|
dimColor: true,
|
|
378534
378575
|
children: [
|
|
@@ -378545,7 +378586,7 @@ function PhaseColumn({ phase, rows, frame, selectedId }) {
|
|
|
378545
378586
|
children: [
|
|
378546
378587
|
/* @__PURE__ */ jsx_runtime279.jsx(ThemedText, {
|
|
378547
378588
|
bold: true,
|
|
378548
|
-
color: phase.isGeneral ? undefined :
|
|
378589
|
+
color: phase.isGeneral ? undefined : NEON,
|
|
378549
378590
|
wrap: "truncate-end",
|
|
378550
378591
|
children: truncate5(phase.fase, COL_W)
|
|
378551
378592
|
}),
|
|
@@ -378562,10 +378603,11 @@ function PhaseColumn({ phase, rows, frame, selectedId }) {
|
|
|
378562
378603
|
]
|
|
378563
378604
|
});
|
|
378564
378605
|
}
|
|
378565
|
-
function PhaseConnector({ rows, leftNodes }) {
|
|
378606
|
+
function PhaseConnector({ rows, leftNodes, rightNodes }) {
|
|
378566
378607
|
const lines = [];
|
|
378608
|
+
const upto = Math.min(leftNodes, rightNodes);
|
|
378567
378609
|
for (let r = 0;r < rows; r++) {
|
|
378568
|
-
const on6 = r <
|
|
378610
|
+
const on6 = r < upto;
|
|
378569
378611
|
lines.push(/* @__PURE__ */ jsx_runtime279.jsx(ThemedText, {
|
|
378570
378612
|
dimColor: true,
|
|
378571
378613
|
children: on6 ? "\u2500\u25B8" : " "
|
|
@@ -378599,11 +378641,11 @@ function CompactPhases({ phases, frame, width }) {
|
|
|
378599
378641
|
children: [
|
|
378600
378642
|
/* @__PURE__ */ jsx_runtime279.jsx(ThemedText, {
|
|
378601
378643
|
bold: true,
|
|
378602
|
-
color: phase.isGeneral ? undefined :
|
|
378644
|
+
color: phase.isGeneral ? undefined : NEON,
|
|
378603
378645
|
children: truncate5(phase.fase, Math.max(8, Math.min(20, width - 24)))
|
|
378604
378646
|
}),
|
|
378605
378647
|
running2 && !REDUCE_MOTION ? /* @__PURE__ */ jsx_runtime279.jsxs(ThemedText, {
|
|
378606
|
-
color:
|
|
378648
|
+
color: NEON,
|
|
378607
378649
|
children: [
|
|
378608
378650
|
" ",
|
|
378609
378651
|
brailleFrame(frame)
|
|
@@ -378611,7 +378653,7 @@ function CompactPhases({ phases, frame, width }) {
|
|
|
378611
378653
|
}) : null,
|
|
378612
378654
|
" ",
|
|
378613
378655
|
c5.running > 0 && /* @__PURE__ */ jsx_runtime279.jsxs(ThemedText, {
|
|
378614
|
-
color:
|
|
378656
|
+
color: NEON,
|
|
378615
378657
|
children: [
|
|
378616
378658
|
nodeGlyph("running", frame),
|
|
378617
378659
|
c5.running,
|
|
@@ -378619,15 +378661,15 @@ function CompactPhases({ phases, frame, width }) {
|
|
|
378619
378661
|
]
|
|
378620
378662
|
}),
|
|
378621
378663
|
c5.completed > 0 && /* @__PURE__ */ jsx_runtime279.jsxs(ThemedText, {
|
|
378622
|
-
color:
|
|
378664
|
+
color: DONE,
|
|
378623
378665
|
children: [
|
|
378624
|
-
"\
|
|
378666
|
+
"\u2605",
|
|
378625
378667
|
c5.completed,
|
|
378626
378668
|
" "
|
|
378627
378669
|
]
|
|
378628
378670
|
}),
|
|
378629
378671
|
c5.failed > 0 && /* @__PURE__ */ jsx_runtime279.jsxs(ThemedText, {
|
|
378630
|
-
color:
|
|
378672
|
+
color: FAIL,
|
|
378631
378673
|
children: [
|
|
378632
378674
|
"\u2717",
|
|
378633
378675
|
c5.failed,
|
|
@@ -378725,7 +378767,7 @@ function WorkflowDetailDialog({
|
|
|
378725
378767
|
const title = /* @__PURE__ */ jsx_runtime279.jsxs(ThemedText, {
|
|
378726
378768
|
children: [
|
|
378727
378769
|
/* @__PURE__ */ jsx_runtime279.jsx(ThemedText, {
|
|
378728
|
-
color:
|
|
378770
|
+
color: NEON,
|
|
378729
378771
|
bold: true,
|
|
378730
378772
|
children: "\u2726"
|
|
378731
378773
|
}),
|
|
@@ -378740,7 +378782,7 @@ function WorkflowDetailDialog({
|
|
|
378740
378782
|
dimColor: true,
|
|
378741
378783
|
children: [
|
|
378742
378784
|
isRunning && activeCount > 0 ? /* @__PURE__ */ jsx_runtime279.jsxs(ThemedText, {
|
|
378743
|
-
color:
|
|
378785
|
+
color: NEON,
|
|
378744
378786
|
children: [
|
|
378745
378787
|
spinner,
|
|
378746
378788
|
" "
|
|
@@ -378752,16 +378794,16 @@ function WorkflowDetailDialog({
|
|
|
378752
378794
|
]
|
|
378753
378795
|
});
|
|
378754
378796
|
const statusNode = task.status === "running" ? /* @__PURE__ */ jsx_runtime279.jsx(ThemedText, {
|
|
378755
|
-
color:
|
|
378797
|
+
color: NEON,
|
|
378756
378798
|
children: "en curso"
|
|
378757
378799
|
}) : task.status === "completed" ? /* @__PURE__ */ jsx_runtime279.jsx(ThemedText, {
|
|
378758
|
-
color:
|
|
378800
|
+
color: DONE,
|
|
378759
378801
|
children: "completado"
|
|
378760
378802
|
}) : task.status === "killed" ? /* @__PURE__ */ jsx_runtime279.jsx(ThemedText, {
|
|
378761
|
-
color:
|
|
378803
|
+
color: FAIL,
|
|
378762
378804
|
children: "detenido"
|
|
378763
378805
|
}) : /* @__PURE__ */ jsx_runtime279.jsx(ThemedText, {
|
|
378764
|
-
color:
|
|
378806
|
+
color: FAIL,
|
|
378765
378807
|
children: "fall\xF3"
|
|
378766
378808
|
});
|
|
378767
378809
|
const canSkip = !!(selected && selected.status === "running" && onSkipAgent);
|
|
@@ -378777,7 +378819,7 @@ function WorkflowDetailDialog({
|
|
|
378777
378819
|
title,
|
|
378778
378820
|
subtitle,
|
|
378779
378821
|
onCancel: onDone,
|
|
378780
|
-
color:
|
|
378822
|
+
color: NEON,
|
|
378781
378823
|
inputGuide: (exitState) => exitState.pending ? /* @__PURE__ */ jsx_runtime279.jsxs(ThemedText, {
|
|
378782
378824
|
children: [
|
|
378783
378825
|
"Pulsa ",
|
|
@@ -378825,7 +378867,8 @@ function WorkflowDetailDialog({
|
|
|
378825
378867
|
children: [
|
|
378826
378868
|
i3 > 0 && /* @__PURE__ */ jsx_runtime279.jsx(PhaseConnector, {
|
|
378827
378869
|
rows,
|
|
378828
|
-
leftNodes: Math.min(phases[i3 - 1].nodes.length, MAX_NODES_PER_PHASE)
|
|
378870
|
+
leftNodes: Math.min(phases[i3 - 1].nodes.length, MAX_NODES_PER_PHASE),
|
|
378871
|
+
rightNodes: Math.min(phase.nodes.length, MAX_NODES_PER_PHASE)
|
|
378829
378872
|
}),
|
|
378830
378873
|
/* @__PURE__ */ jsx_runtime279.jsx(PhaseColumn, {
|
|
378831
378874
|
phase,
|
|
@@ -378841,7 +378884,7 @@ function WorkflowDetailDialog({
|
|
|
378841
378884
|
width: innerWidth
|
|
378842
378885
|
}),
|
|
378843
378886
|
agents.length > 0 && /* @__PURE__ */ jsx_runtime279.jsx(ThemedText, {
|
|
378844
|
-
color:
|
|
378887
|
+
color: NEON,
|
|
378845
378888
|
wrap: "truncate-end",
|
|
378846
378889
|
children: flowingDotsLine(flowWidth, frame, REDUCE_MOTION)
|
|
378847
378890
|
}),
|
|
@@ -378849,12 +378892,17 @@ function WorkflowDetailDialog({
|
|
|
378849
378892
|
wrap: "truncate-end",
|
|
378850
378893
|
children: [
|
|
378851
378894
|
/* @__PURE__ */ jsx_runtime279.jsx(ThemedText, {
|
|
378852
|
-
color:
|
|
378853
|
-
children: progressBarString(progress.fraction, barWidth)
|
|
378895
|
+
color: NEON,
|
|
378896
|
+
children: progressBarString(progress.fraction, barWidth).replace(/\u2591+$/, "")
|
|
378897
|
+
}),
|
|
378898
|
+
/* @__PURE__ */ jsx_runtime279.jsx(ThemedText, {
|
|
378899
|
+
color: MUTE,
|
|
378900
|
+
children: (progressBarString(progress.fraction, barWidth).match(/\u2591+$/) || [""])[0]
|
|
378854
378901
|
}),
|
|
378855
378902
|
" ",
|
|
378856
378903
|
/* @__PURE__ */ jsx_runtime279.jsxs(ThemedText, {
|
|
378857
378904
|
bold: true,
|
|
378905
|
+
color: NEON,
|
|
378858
378906
|
children: [
|
|
378859
378907
|
progress.pct,
|
|
378860
378908
|
"%"
|
|
@@ -378883,7 +378931,7 @@ function WorkflowDetailDialog({
|
|
|
378883
378931
|
}),
|
|
378884
378932
|
statusNode,
|
|
378885
378933
|
task.error ? /* @__PURE__ */ jsx_runtime279.jsxs(ThemedText, {
|
|
378886
|
-
color:
|
|
378934
|
+
color: FAIL,
|
|
378887
378935
|
children: [
|
|
378888
378936
|
" \u2014 ",
|
|
378889
378937
|
truncate5(task.error, 70)
|
|
@@ -378898,9 +378946,9 @@ function WorkflowDetailDialog({
|
|
|
378898
378946
|
wrap: "truncate-end",
|
|
378899
378947
|
children: [
|
|
378900
378948
|
/* @__PURE__ */ jsx_runtime279.jsx(ThemedText, {
|
|
378901
|
-
color: statusColor2(selected.status),
|
|
378949
|
+
color: selected.status === "running" ? runningColor(frame, seedOf(selected)) : statusColor2(selected.status),
|
|
378902
378950
|
bold: true,
|
|
378903
|
-
children: nodeGlyph(selected.status, frame)
|
|
378951
|
+
children: nodeGlyph(selected.status, frame, seedOf(selected))
|
|
378904
378952
|
}),
|
|
378905
378953
|
" ",
|
|
378906
378954
|
/* @__PURE__ */ jsx_runtime279.jsx(ThemedText, {
|
|
@@ -378935,7 +378983,7 @@ function WorkflowDetailDialog({
|
|
|
378935
378983
|
]
|
|
378936
378984
|
}),
|
|
378937
378985
|
selected.error ? /* @__PURE__ */ jsx_runtime279.jsx(ThemedText, {
|
|
378938
|
-
color:
|
|
378986
|
+
color: FAIL,
|
|
378939
378987
|
wrap: "truncate-end",
|
|
378940
378988
|
children: truncate5(selected.error, 90)
|
|
378941
378989
|
}) : selected.text ? /* @__PURE__ */ jsx_runtime279.jsx(ThemedText, {
|
|
@@ -378958,7 +379006,7 @@ function WorkflowDetailDialog({
|
|
|
378958
379006
|
})
|
|
378959
379007
|
});
|
|
378960
379008
|
}
|
|
378961
|
-
var import_react161, jsx_runtime279, REDUCE_MOTION, FRAME_MS = 100, PULSE_FRAMES, BRAILLE_FRAMES, FLOW_MARKERS, MAX_NODES_PER_PHASE = 6, VISIBLE_LOGS = 3, COL_W = 18, CONN_W = 3, MIN_COLUMNS_WIDTH = 64, GENERAL_KEY = "__general__", WorkflowDetailDialog_default;
|
|
379009
|
+
var import_react161, jsx_runtime279, REDUCE_MOTION, FRAME_MS = 100, NEON = "#b026ff", NEON_HI = "#e0aaff", NEON_MID = "#c77dff", NEON_LO = "#7b2fbf", DONE = "#ffb020", FAIL = "#ff3b6b", MUTE = "#8b8b9a", TWINKLE_COLORS, PULSE_FRAMES, BRAILLE_FRAMES, FLOW_MARKERS, MAX_NODES_PER_PHASE = 6, VISIBLE_LOGS = 3, COL_W = 18, CONN_W = 3, MIN_COLUMNS_WIDTH = 64, GENERAL_KEY = "__general__", WorkflowDetailDialog_default;
|
|
378962
379010
|
var init_WorkflowDetailDialog = __esm(() => {
|
|
378963
379011
|
init_useElapsedTime();
|
|
378964
379012
|
init_useTerminalSize();
|
|
@@ -378972,9 +379020,10 @@ var init_WorkflowDetailDialog = __esm(() => {
|
|
|
378972
379020
|
import_react161 = __toESM(require_react(), 1);
|
|
378973
379021
|
jsx_runtime279 = __toESM(require_jsx_runtime(), 1);
|
|
378974
379022
|
REDUCE_MOTION = isEnvTruthy(process.env.THEUS_CODE_REDUCE_MOTION);
|
|
378975
|
-
|
|
379023
|
+
TWINKLE_COLORS = [NEON_HI, NEON, NEON_MID, NEON_LO, NEON_MID, NEON];
|
|
379024
|
+
PULSE_FRAMES = ["\u2726", "\u2737", "\u2727", "\u22C6", "\u2727", "\u2737"];
|
|
378976
379025
|
BRAILLE_FRAMES = ["\u280B", "\u2819", "\u2839", "\u2838", "\u283C", "\u2834", "\u2826", "\u2827"];
|
|
378977
|
-
FLOW_MARKERS = ["\
|
|
379026
|
+
FLOW_MARKERS = ["\u2726", "\u2727", "\u22C6", "\xB7"];
|
|
378978
379027
|
WorkflowDetailDialog_default = WorkflowDetailDialog;
|
|
378979
379028
|
});
|
|
378980
379029
|
|
|
@@ -393679,7 +393728,7 @@ async function captureMemoryDiagnostics(trigger, dumpNumber = 0) {
|
|
|
393679
393728
|
smapsRollup,
|
|
393680
393729
|
platform: process.platform,
|
|
393681
393730
|
nodeVersion: process.version,
|
|
393682
|
-
ccVersion: { VERSION: "0.2.
|
|
393731
|
+
ccVersion: { VERSION: "0.2.33", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
|
|
393683
393732
|
};
|
|
393684
393733
|
}
|
|
393685
393734
|
async function performHeapDump(trigger = "manual", dumpNumber = 0) {
|
|
@@ -394265,7 +394314,7 @@ var init_bridge_kick = __esm(() => {
|
|
|
394265
394314
|
var call57 = async () => {
|
|
394266
394315
|
return {
|
|
394267
394316
|
type: "text",
|
|
394268
|
-
value: { VERSION: "0.2.
|
|
394317
|
+
value: { VERSION: "0.2.33", BUILD_TIME: "1970-01-01T00:00:00.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.33", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.33", BUILD_TIME: "1970-01-01T00:00:00.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.33", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
|
|
394269
394318
|
};
|
|
394270
394319
|
}, version2, version_default;
|
|
394271
394320
|
var init_version = __esm(() => {
|
|
@@ -394742,7 +394791,7 @@ function IntelligenceBar({ onDone }) {
|
|
|
394742
394791
|
});
|
|
394743
394792
|
const fill = Math.round((index + 1) / LEVELS.length * BAR_W);
|
|
394744
394793
|
const pulsePos = REDUCE_MOTION2 ? -10 : frame % (BAR_W + 8);
|
|
394745
|
-
const baseColor = isMax ? MAX_CYCLE[frame % MAX_CYCLE.length] :
|
|
394794
|
+
const baseColor = isMax ? MAX_CYCLE[frame % MAX_CYCLE.length] : NEON2;
|
|
394746
394795
|
const cells = [];
|
|
394747
394796
|
for (let c5 = 0;c5 < BAR_W; c5++) {
|
|
394748
394797
|
const filled = c5 < fill;
|
|
@@ -394765,7 +394814,7 @@ function IntelligenceBar({ onDone }) {
|
|
|
394765
394814
|
const active2 = i3 === index;
|
|
394766
394815
|
return /* @__PURE__ */ jsx_runtime332.jsxs(ThemedText, {
|
|
394767
394816
|
bold: active2,
|
|
394768
|
-
color: active2 ? isMax ? baseColor :
|
|
394817
|
+
color: active2 ? isMax ? baseColor : NEON2 : undefined,
|
|
394769
394818
|
dimColor: !active2,
|
|
394770
394819
|
children: [
|
|
394771
394820
|
active2 ? `\u25B8 ${l.label}` : ` ${l.label}`,
|
|
@@ -394781,7 +394830,7 @@ function IntelligenceBar({ onDone }) {
|
|
|
394781
394830
|
/* @__PURE__ */ jsx_runtime332.jsxs(ThemedBox_default, {
|
|
394782
394831
|
children: [
|
|
394783
394832
|
/* @__PURE__ */ jsx_runtime332.jsx(ThemedText, {
|
|
394784
|
-
color: isMax ? baseColor :
|
|
394833
|
+
color: isMax ? baseColor : NEON2,
|
|
394785
394834
|
bold: true,
|
|
394786
394835
|
children: isMax && !REDUCE_MOTION2 ? "\u26A1 " : "\uD83E\uDDE0 "
|
|
394787
394836
|
}),
|
|
@@ -394804,13 +394853,13 @@ function IntelligenceBar({ onDone }) {
|
|
|
394804
394853
|
/* @__PURE__ */ jsx_runtime332.jsxs(ThemedBox_default, {
|
|
394805
394854
|
children: [
|
|
394806
394855
|
/* @__PURE__ */ jsx_runtime332.jsx(ThemedText, {
|
|
394807
|
-
color: isMax ? baseColor :
|
|
394856
|
+
color: isMax ? baseColor : NEON2,
|
|
394808
394857
|
bold: true,
|
|
394809
394858
|
children: "["
|
|
394810
394859
|
}),
|
|
394811
394860
|
cells,
|
|
394812
394861
|
/* @__PURE__ */ jsx_runtime332.jsx(ThemedText, {
|
|
394813
|
-
color: isMax ? baseColor :
|
|
394862
|
+
color: isMax ? baseColor : NEON2,
|
|
394814
394863
|
bold: true,
|
|
394815
394864
|
children: "]"
|
|
394816
394865
|
})
|
|
@@ -394821,7 +394870,7 @@ function IntelligenceBar({ onDone }) {
|
|
|
394821
394870
|
children: /* @__PURE__ */ jsx_runtime332.jsxs(ThemedText, {
|
|
394822
394871
|
children: [
|
|
394823
394872
|
/* @__PURE__ */ jsx_runtime332.jsx(ThemedText, {
|
|
394824
|
-
color: isMax ? baseColor :
|
|
394873
|
+
color: isMax ? baseColor : NEON2,
|
|
394825
394874
|
bold: true,
|
|
394826
394875
|
children: LEVELS[index].label
|
|
394827
394876
|
}),
|
|
@@ -394845,7 +394894,7 @@ function IntelligenceBar({ onDone }) {
|
|
|
394845
394894
|
]
|
|
394846
394895
|
});
|
|
394847
394896
|
}
|
|
394848
|
-
var import_react185, jsx_runtime332, REDUCE_MOTION2, FRAME_MS2 = 90, BAR_W = 34, LEVELS,
|
|
394897
|
+
var import_react185, jsx_runtime332, REDUCE_MOTION2, FRAME_MS2 = 90, BAR_W = 34, LEVELS, NEON2 = "#39ff14", NEON_DIM = "#1f7a10", PULSE = "#d6ffc2", MAX_CYCLE, call60 = async (onDone) => {
|
|
394849
394898
|
return /* @__PURE__ */ jsx_runtime332.jsx(IntelligenceBar, {
|
|
394850
394899
|
onDone
|
|
394851
394900
|
});
|
|
@@ -398707,13 +398756,13 @@ async function updateReleaseBundle() {
|
|
|
398707
398756
|
await gracefulShutdown(1);
|
|
398708
398757
|
return;
|
|
398709
398758
|
}
|
|
398710
|
-
if (gte({ VERSION: "0.2.
|
|
398711
|
-
writeToStdout(source_default.green(`Theus is up to date (${{ VERSION: "0.2.
|
|
398759
|
+
if (gte({ VERSION: "0.2.33", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
|
|
398760
|
+
writeToStdout(source_default.green(`Theus is up to date (${{ VERSION: "0.2.33", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION})`) + `
|
|
398712
398761
|
`);
|
|
398713
398762
|
await gracefulShutdown(0);
|
|
398714
398763
|
return;
|
|
398715
398764
|
}
|
|
398716
|
-
writeToStdout(`New version available: ${latest} (current: ${{ VERSION: "0.2.
|
|
398765
|
+
writeToStdout(`New version available: ${latest} (current: ${{ VERSION: "0.2.33", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION})
|
|
398717
398766
|
`);
|
|
398718
398767
|
writeToStdout(`Installing update from theus.pe/dl...
|
|
398719
398768
|
`);
|
|
@@ -398747,7 +398796,7 @@ async function updateReleaseBundle() {
|
|
|
398747
398796
|
return;
|
|
398748
398797
|
}
|
|
398749
398798
|
cpSync(staged, bundleDir, { recursive: true, force: true });
|
|
398750
|
-
writeToStdout(source_default.green(`Successfully updated from ${{ VERSION: "0.2.
|
|
398799
|
+
writeToStdout(source_default.green(`Successfully updated from ${{ VERSION: "0.2.33", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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}`) + `
|
|
398751
398800
|
`);
|
|
398752
398801
|
await regenerateCompletionCache();
|
|
398753
398802
|
} finally {
|
|
@@ -398760,7 +398809,7 @@ async function updateReleaseBundle() {
|
|
|
398760
398809
|
async function update() {
|
|
398761
398810
|
logEvent("tengu_update_check", {});
|
|
398762
398811
|
await updateNaupa();
|
|
398763
|
-
writeToStdout(`Current version: ${{ VERSION: "0.2.
|
|
398812
|
+
writeToStdout(`Current version: ${{ VERSION: "0.2.33", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION}
|
|
398764
398813
|
`);
|
|
398765
398814
|
const channel2 = getInitialSettings()?.autoUpdatesChannel ?? "latest";
|
|
398766
398815
|
writeToStdout(`Checking for updates to ${channel2} version...
|
|
@@ -398839,8 +398888,8 @@ async function update() {
|
|
|
398839
398888
|
writeToStdout(`Theus is managed by Homebrew.
|
|
398840
398889
|
`);
|
|
398841
398890
|
const latest = await getLatestVersion(channel2);
|
|
398842
|
-
if (latest && !gte({ VERSION: "0.2.
|
|
398843
|
-
writeToStdout(`Update available: ${{ VERSION: "0.2.
|
|
398891
|
+
if (latest && !gte({ VERSION: "0.2.33", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
|
|
398892
|
+
writeToStdout(`Update available: ${{ VERSION: "0.2.33", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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}
|
|
398844
398893
|
`);
|
|
398845
398894
|
writeToStdout(`
|
|
398846
398895
|
`);
|
|
@@ -398856,8 +398905,8 @@ async function update() {
|
|
|
398856
398905
|
writeToStdout(`Theus is managed by winget.
|
|
398857
398906
|
`);
|
|
398858
398907
|
const latest = await getLatestVersion(channel2);
|
|
398859
|
-
if (latest && !gte({ VERSION: "0.2.
|
|
398860
|
-
writeToStdout(`Update available: ${{ VERSION: "0.2.
|
|
398908
|
+
if (latest && !gte({ VERSION: "0.2.33", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
|
|
398909
|
+
writeToStdout(`Update available: ${{ VERSION: "0.2.33", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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}
|
|
398861
398910
|
`);
|
|
398862
398911
|
writeToStdout(`
|
|
398863
398912
|
`);
|
|
@@ -398873,8 +398922,8 @@ async function update() {
|
|
|
398873
398922
|
writeToStdout(`Theus is managed by apk.
|
|
398874
398923
|
`);
|
|
398875
398924
|
const latest = await getLatestVersion(channel2);
|
|
398876
|
-
if (latest && !gte({ VERSION: "0.2.
|
|
398877
|
-
writeToStdout(`Update available: ${{ VERSION: "0.2.
|
|
398925
|
+
if (latest && !gte({ VERSION: "0.2.33", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
|
|
398926
|
+
writeToStdout(`Update available: ${{ VERSION: "0.2.33", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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}
|
|
398878
398927
|
`);
|
|
398879
398928
|
writeToStdout(`
|
|
398880
398929
|
`);
|
|
@@ -398939,11 +398988,11 @@ async function update() {
|
|
|
398939
398988
|
`);
|
|
398940
398989
|
await gracefulShutdown(1);
|
|
398941
398990
|
}
|
|
398942
|
-
if (result.latestVersion === { VERSION: "0.2.
|
|
398943
|
-
writeToStdout(source_default.green(`Theus is up to date (${{ VERSION: "0.2.
|
|
398991
|
+
if (result.latestVersion === { VERSION: "0.2.33", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION) {
|
|
398992
|
+
writeToStdout(source_default.green(`Theus is up to date (${{ VERSION: "0.2.33", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION})`) + `
|
|
398944
398993
|
`);
|
|
398945
398994
|
} else {
|
|
398946
|
-
writeToStdout(source_default.green(`Successfully updated from ${{ VERSION: "0.2.
|
|
398995
|
+
writeToStdout(source_default.green(`Successfully updated from ${{ VERSION: "0.2.33", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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}`) + `
|
|
398947
398996
|
`);
|
|
398948
398997
|
await regenerateCompletionCache();
|
|
398949
398998
|
}
|
|
@@ -398962,9 +399011,9 @@ async function update() {
|
|
|
398962
399011
|
await removeInstalledSymlink();
|
|
398963
399012
|
}
|
|
398964
399013
|
logForDebugging("update: Checking npm registry for latest version");
|
|
398965
|
-
logForDebugging(`update: Package URL: ${{ VERSION: "0.2.
|
|
399014
|
+
logForDebugging(`update: Package URL: ${{ VERSION: "0.2.33", BUILD_TIME: "1970-01-01T00:00:00.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}`);
|
|
398966
399015
|
const npmTag = channel2 === "stable" ? "stable" : "latest";
|
|
398967
|
-
const npmCommand = `npm view ${{ VERSION: "0.2.
|
|
399016
|
+
const npmCommand = `npm view ${{ VERSION: "0.2.33", BUILD_TIME: "1970-01-01T00:00:00.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`;
|
|
398968
399017
|
logForDebugging(`update: Running: ${npmCommand}`);
|
|
398969
399018
|
const latestVersion = await getLatestVersion(channel2);
|
|
398970
399019
|
logForDebugging(`update: Latest version from npm: ${latestVersion || "FAILED"}`);
|
|
@@ -398984,7 +399033,7 @@ async function update() {
|
|
|
398984
399033
|
`);
|
|
398985
399034
|
process.stderr.write(` \u2022 Corporate proxy/firewall blocking npm
|
|
398986
399035
|
`);
|
|
398987
|
-
if ({ VERSION: "0.2.
|
|
399036
|
+
if ({ VERSION: "0.2.33", BUILD_TIME: "1970-01-01T00:00:00.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.33", BUILD_TIME: "1970-01-01T00:00:00.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")) {
|
|
398988
399037
|
process.stderr.write(` \u2022 Internal/development build not published to npm
|
|
398989
399038
|
`);
|
|
398990
399039
|
}
|
|
@@ -398996,19 +399045,19 @@ async function update() {
|
|
|
398996
399045
|
`);
|
|
398997
399046
|
process.stderr.write(` \u2022 Run with --debug flag for more details
|
|
398998
399047
|
`);
|
|
398999
|
-
const packageName = { VERSION: "0.2.
|
|
399048
|
+
const packageName = { VERSION: "0.2.33", BUILD_TIME: "1970-01-01T00:00:00.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");
|
|
399000
399049
|
process.stderr.write(` \u2022 Manually check: npm view ${packageName} version
|
|
399001
399050
|
`);
|
|
399002
399051
|
process.stderr.write(` \u2022 Check if you need to login: npm whoami
|
|
399003
399052
|
`);
|
|
399004
399053
|
await gracefulShutdown(1);
|
|
399005
399054
|
}
|
|
399006
|
-
if (gte({ VERSION: "0.2.
|
|
399007
|
-
writeToStdout(source_default.green(`Theus is up to date (${{ VERSION: "0.2.
|
|
399055
|
+
if (gte({ VERSION: "0.2.33", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
|
|
399056
|
+
writeToStdout(source_default.green(`Theus is up to date (${{ VERSION: "0.2.33", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION})`) + `
|
|
399008
399057
|
`);
|
|
399009
399058
|
await gracefulShutdown(0);
|
|
399010
399059
|
}
|
|
399011
|
-
writeToStdout(`New version available: ${latestVersion} (current: ${{ VERSION: "0.2.
|
|
399060
|
+
writeToStdout(`New version available: ${latestVersion} (current: ${{ VERSION: "0.2.33", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION})
|
|
399012
399061
|
`);
|
|
399013
399062
|
writeToStdout(`Installing update...
|
|
399014
399063
|
`);
|
|
@@ -399053,7 +399102,7 @@ async function update() {
|
|
|
399053
399102
|
logForDebugging(`update: Installation status: ${status2}`);
|
|
399054
399103
|
switch (status2) {
|
|
399055
399104
|
case "success":
|
|
399056
|
-
writeToStdout(source_default.green(`Successfully updated from ${{ VERSION: "0.2.
|
|
399105
|
+
writeToStdout(source_default.green(`Successfully updated from ${{ VERSION: "0.2.33", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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}`) + `
|
|
399057
399106
|
`);
|
|
399058
399107
|
await regenerateCompletionCache();
|
|
399059
399108
|
break;
|
|
@@ -399063,7 +399112,7 @@ async function update() {
|
|
|
399063
399112
|
if (useLocalUpdate) {
|
|
399064
399113
|
process.stderr.write(`Try manually updating with:
|
|
399065
399114
|
`);
|
|
399066
|
-
process.stderr.write(` cd ~/.theus/local && npm update ${{ VERSION: "0.2.
|
|
399115
|
+
process.stderr.write(` cd ~/.theus/local && npm update ${{ VERSION: "0.2.33", BUILD_TIME: "1970-01-01T00:00:00.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}
|
|
399067
399116
|
`);
|
|
399068
399117
|
} else {
|
|
399069
399118
|
process.stderr.write(`Try running with sudo or fix npm permissions
|
|
@@ -399079,7 +399128,7 @@ async function update() {
|
|
|
399079
399128
|
if (useLocalUpdate) {
|
|
399080
399129
|
process.stderr.write(`Try manually updating with:
|
|
399081
399130
|
`);
|
|
399082
|
-
process.stderr.write(` cd ~/.theus/local && npm update ${{ VERSION: "0.2.
|
|
399131
|
+
process.stderr.write(` cd ~/.theus/local && npm update ${{ VERSION: "0.2.33", BUILD_TIME: "1970-01-01T00:00:00.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}
|
|
399083
399132
|
`);
|
|
399084
399133
|
} else {
|
|
399085
399134
|
process.stderr.write(`Or consider using native installation with: theus install
|
|
@@ -408156,7 +408205,7 @@ var init_sessionStorage = __esm(() => {
|
|
|
408156
408205
|
init_settings2();
|
|
408157
408206
|
init_slowOperations();
|
|
408158
408207
|
init_uuid();
|
|
408159
|
-
VERSION4 = { VERSION: "0.2.
|
|
408208
|
+
VERSION4 = { VERSION: "0.2.33", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION;
|
|
408160
408209
|
MAX_TOMBSTONE_REWRITE_BYTES = 50 * 1024 * 1024;
|
|
408161
408210
|
SKIP_FIRST_PROMPT_PATTERN = /^(?:\s*<[a-z][\w-]*[\s>]|\[Request interrupted by user[^\]]*\])/;
|
|
408162
408211
|
EPHEMERAL_PROGRESS_TYPES = new Set([
|
|
@@ -409361,7 +409410,7 @@ var init_filesystem = __esm(() => {
|
|
|
409361
409410
|
});
|
|
409362
409411
|
getBundledSkillsRoot = memoize_default(function getBundledSkillsRoot2() {
|
|
409363
409412
|
const nonce = randomBytes21(16).toString("hex");
|
|
409364
|
-
return join148(getTheusTempDir(), "bundled-skills", { VERSION: "0.2.
|
|
409413
|
+
return join148(getTheusTempDir(), "bundled-skills", { VERSION: "0.2.33", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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);
|
|
409365
409414
|
});
|
|
409366
409415
|
getResolvedWorkingDirPaths = memoize_default(getPathsForPermissionCheck);
|
|
409367
409416
|
});
|
|
@@ -414540,7 +414589,7 @@ function getSimpleDoingTasksSection() {
|
|
|
414540
414589
|
];
|
|
414541
414590
|
const userHelpSubitems = [
|
|
414542
414591
|
`/help: Get help with using Theus`,
|
|
414543
|
-
`To give feedback, users should ${{ VERSION: "0.2.
|
|
414592
|
+
`To give feedback, users should ${{ VERSION: "0.2.33", BUILD_TIME: "1970-01-01T00:00:00.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}`
|
|
414544
414593
|
];
|
|
414545
414594
|
const items = [
|
|
414546
414595
|
`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.`,
|
|
@@ -415440,7 +415489,7 @@ function computeFingerprint(messageText, version3) {
|
|
|
415440
415489
|
}
|
|
415441
415490
|
function computeFingerprintFromMessages(messages) {
|
|
415442
415491
|
const firstMessageText = extractFirstMessageText(messages);
|
|
415443
|
-
return computeFingerprint(firstMessageText, { VERSION: "0.2.
|
|
415492
|
+
return computeFingerprint(firstMessageText, { VERSION: "0.2.33", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION);
|
|
415444
415493
|
}
|
|
415445
415494
|
var FINGERPRINT_SALT = "59cf53e54c78";
|
|
415446
415495
|
var init_fingerprint = () => {};
|
|
@@ -417988,7 +418037,7 @@ async function sideQuery(opts) {
|
|
|
417988
418037
|
betas.push(STRUCTURED_OUTPUTS_BETA_HEADER);
|
|
417989
418038
|
}
|
|
417990
418039
|
const messageText = extractFirstUserMessageText(messages);
|
|
417991
|
-
const fingerprint = computeFingerprint(messageText, { VERSION: "0.2.
|
|
418040
|
+
const fingerprint = computeFingerprint(messageText, { VERSION: "0.2.33", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION);
|
|
417992
418041
|
const attributionHeader = getAttributionHeader(fingerprint);
|
|
417993
418042
|
const systemBlocks = [
|
|
417994
418043
|
attributionHeader ? { type: "text", text: attributionHeader } : null,
|
|
@@ -419291,7 +419340,7 @@ async function handleMemories(state) {
|
|
|
419291
419340
|
async function runProjectContextMcpServer() {
|
|
419292
419341
|
const projectRoot = process.env.THEUS_PROJECT_ROOT || process.cwd();
|
|
419293
419342
|
const state = new ProjectContextState(projectRoot);
|
|
419294
|
-
const server2 = new Server({ name: SERVER_NAME, version: { VERSION: "0.2.
|
|
419343
|
+
const server2 = new Server({ name: SERVER_NAME, version: { VERSION: "0.2.33", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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: {} } });
|
|
419295
419344
|
server2.setRequestHandler(ListToolsRequestSchema, async () => ({
|
|
419296
419345
|
tools: TOOL_DEFINITIONS.map((t) => ({
|
|
419297
419346
|
name: t.name,
|
|
@@ -421271,7 +421320,7 @@ function createBridgeLogger(options2) {
|
|
|
421271
421320
|
connectUrl = buildBridgeConnectUrl(environmentId, cachedIngressUrl);
|
|
421272
421321
|
regenerateQr(connectUrl);
|
|
421273
421322
|
if (verbose) {
|
|
421274
|
-
write(source_default.dim(`Remote Control`) + ` v${{ VERSION: "0.2.
|
|
421323
|
+
write(source_default.dim(`Remote Control`) + ` v${{ VERSION: "0.2.33", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION}
|
|
421275
421324
|
`);
|
|
421276
421325
|
}
|
|
421277
421326
|
if (verbose) {
|
|
@@ -422244,7 +422293,7 @@ function appendToLog(path19, message) {
|
|
|
422244
422293
|
cwd: getFsImplementation().cwd(),
|
|
422245
422294
|
userType: process.env.USER_TYPE,
|
|
422246
422295
|
sessionId: getSessionId(),
|
|
422247
|
-
version: { VERSION: "0.2.
|
|
422296
|
+
version: { VERSION: "0.2.33", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
|
|
422248
422297
|
};
|
|
422249
422298
|
getLogWriter(path19).write(messageWithTimestamp);
|
|
422250
422299
|
}
|
|
@@ -423514,7 +423563,7 @@ Spawn mode for this project:
|
|
|
423514
423563
|
const api2 = createBridgeApiClient({
|
|
423515
423564
|
baseUrl,
|
|
423516
423565
|
getAccessToken: getBridgeAccessToken2,
|
|
423517
|
-
runnerVersion: { VERSION: "0.2.
|
|
423566
|
+
runnerVersion: { VERSION: "0.2.33", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
|
|
423518
423567
|
onDebug: logForDebugging,
|
|
423519
423568
|
onAuth401: handleOAuth401Error2,
|
|
423520
423569
|
getTrustedDeviceToken
|
|
@@ -423752,7 +423801,7 @@ async function runBridgeHeadless(opts, signal) {
|
|
|
423752
423801
|
const api2 = createBridgeApiClient({
|
|
423753
423802
|
baseUrl,
|
|
423754
423803
|
getAccessToken: opts.getAccessToken,
|
|
423755
|
-
runnerVersion: { VERSION: "0.2.
|
|
423804
|
+
runnerVersion: { VERSION: "0.2.33", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
|
|
423756
423805
|
onDebug: log2,
|
|
423757
423806
|
onAuth401: opts.onAuth401,
|
|
423758
423807
|
getTrustedDeviceToken
|
|
@@ -427816,7 +427865,7 @@ function buildSystemInitMessage(inputs) {
|
|
|
427816
427865
|
slash_commands: inputs.commands.filter((c5) => c5.userInvocable !== false).map((c5) => c5.name),
|
|
427817
427866
|
apiKeySource: getTheusApiKeyWithSource().source,
|
|
427818
427867
|
betas: getSdkBetas(),
|
|
427819
|
-
theus_code_version: { VERSION: "0.2.
|
|
427868
|
+
theus_code_version: { VERSION: "0.2.33", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
|
|
427820
427869
|
output_style: outputStyle2,
|
|
427821
427870
|
agents: inputs.agents.map((agent) => agent.agentType),
|
|
427822
427871
|
skills: inputs.skills.filter((s) => s.userInvocable !== false).map((skill) => skill.name),
|
|
@@ -427856,8 +427905,8 @@ async function getEnvLessBridgeConfig() {
|
|
|
427856
427905
|
}
|
|
427857
427906
|
async function checkEnvLessBridgeMinVersion() {
|
|
427858
427907
|
const cfg = await getEnvLessBridgeConfig();
|
|
427859
|
-
if (cfg.min_version && lt({ VERSION: "0.2.
|
|
427860
|
-
return `Your version of Theus (${{ VERSION: "0.2.
|
|
427908
|
+
if (cfg.min_version && lt({ VERSION: "0.2.33", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
|
|
427909
|
+
return `Your version of Theus (${{ VERSION: "0.2.33", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.
|
|
427861
427910
|
Version ${cfg.min_version} or higher is required. Run \`theus update\` to update.`;
|
|
427862
427911
|
}
|
|
427863
427912
|
return null;
|
|
@@ -430180,7 +430229,7 @@ async function initBridgeCore(params) {
|
|
|
430180
430229
|
const rawApi = createBridgeApiClient({
|
|
430181
430230
|
baseUrl,
|
|
430182
430231
|
getAccessToken,
|
|
430183
|
-
runnerVersion: { VERSION: "0.2.
|
|
430232
|
+
runnerVersion: { VERSION: "0.2.33", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
|
|
430184
430233
|
onDebug: logForDebugging,
|
|
430185
430234
|
onAuth401,
|
|
430186
430235
|
getTrustedDeviceToken
|
|
@@ -446921,7 +446970,7 @@ var init_useVoiceEnabled = __esm(() => {
|
|
|
446921
446970
|
function getSemverPart(version3) {
|
|
446922
446971
|
return `${import_semver14.major(version3, { loose: true })}.${import_semver14.minor(version3, { loose: true })}.${import_semver14.patch(version3, { loose: true })}`;
|
|
446923
446972
|
}
|
|
446924
|
-
function useUpdateNotification(updatedVersion, initialVersion = { VERSION: "0.2.
|
|
446973
|
+
function useUpdateNotification(updatedVersion, initialVersion = { VERSION: "0.2.33", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION) {
|
|
446925
446974
|
const [lastNotifiedSemver, setLastNotifiedSemver] = import_react230.useState(() => getSemverPart(initialVersion));
|
|
446926
446975
|
if (!updatedVersion) {
|
|
446927
446976
|
return null;
|
|
@@ -446961,7 +447010,7 @@ function AutoUpdater({
|
|
|
446961
447010
|
return;
|
|
446962
447011
|
}
|
|
446963
447012
|
if (false) {}
|
|
446964
|
-
const currentVersion = { VERSION: "0.2.
|
|
447013
|
+
const currentVersion = { VERSION: "0.2.33", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION;
|
|
446965
447014
|
const channel2 = getInitialSettings()?.autoUpdatesChannel ?? "latest";
|
|
446966
447015
|
let latestVersion = await getLatestVersion(channel2);
|
|
446967
447016
|
const isDisabled2 = isAutoUpdaterDisabled();
|
|
@@ -447097,7 +447146,7 @@ function AutoUpdater({
|
|
|
447097
447146
|
" ",
|
|
447098
447147
|
/* @__PURE__ */ jsx_runtime403.jsx(ThemedText, {
|
|
447099
447148
|
bold: true,
|
|
447100
|
-
children: hasLocalInstall ? `cd ~/.theus/local && npm update ${{ VERSION: "0.2.
|
|
447149
|
+
children: hasLocalInstall ? `cd ~/.theus/local && npm update ${{ VERSION: "0.2.33", BUILD_TIME: "1970-01-01T00:00:00.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.33", BUILD_TIME: "1970-01-01T00:00:00.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}`
|
|
447101
447150
|
})
|
|
447102
447151
|
]
|
|
447103
447152
|
})
|
|
@@ -447174,12 +447223,12 @@ function NativeAutoUpdater({
|
|
|
447174
447223
|
logEvent("tengu_native_auto_updater_start", {});
|
|
447175
447224
|
try {
|
|
447176
447225
|
const maxVersion = await getMaxVersion();
|
|
447177
|
-
if (maxVersion && gt({ VERSION: "0.2.
|
|
447226
|
+
if (maxVersion && gt({ VERSION: "0.2.33", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
|
|
447178
447227
|
const msg = await getMaxVersionMessage();
|
|
447179
447228
|
setMaxVersionIssue(msg ?? "affects your version");
|
|
447180
447229
|
}
|
|
447181
447230
|
const result = await installLatest(channel2);
|
|
447182
|
-
const currentVersion = { VERSION: "0.2.
|
|
447231
|
+
const currentVersion = { VERSION: "0.2.33", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION;
|
|
447183
447232
|
const latencyMs = Date.now() - startTime2;
|
|
447184
447233
|
if (result.lockFailed) {
|
|
447185
447234
|
logEvent("tengu_native_auto_updater_lock_contention", {
|
|
@@ -447316,17 +447365,17 @@ function PackageManagerAutoUpdater(t0) {
|
|
|
447316
447365
|
const maxVersion = await getMaxVersion();
|
|
447317
447366
|
if (maxVersion && latest && gt(latest, maxVersion)) {
|
|
447318
447367
|
logForDebugging(`PackageManagerAutoUpdater: maxVersion ${maxVersion} is set, capping update from ${latest} to ${maxVersion}`);
|
|
447319
|
-
if (gte({ VERSION: "0.2.
|
|
447320
|
-
logForDebugging(`PackageManagerAutoUpdater: current version ${{ VERSION: "0.2.
|
|
447368
|
+
if (gte({ VERSION: "0.2.33", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
|
|
447369
|
+
logForDebugging(`PackageManagerAutoUpdater: current version ${{ VERSION: "0.2.33", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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`);
|
|
447321
447370
|
setUpdateAvailable(false);
|
|
447322
447371
|
return;
|
|
447323
447372
|
}
|
|
447324
447373
|
latest = maxVersion;
|
|
447325
447374
|
}
|
|
447326
|
-
const hasUpdate = latest && !gte({ VERSION: "0.2.
|
|
447375
|
+
const hasUpdate = latest && !gte({ VERSION: "0.2.33", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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);
|
|
447327
447376
|
setUpdateAvailable(!!hasUpdate);
|
|
447328
447377
|
if (hasUpdate) {
|
|
447329
|
-
logForDebugging(`PackageManagerAutoUpdater: Update available ${{ VERSION: "0.2.
|
|
447378
|
+
logForDebugging(`PackageManagerAutoUpdater: Update available ${{ VERSION: "0.2.33", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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}`);
|
|
447330
447379
|
}
|
|
447331
447380
|
};
|
|
447332
447381
|
$2[0] = t1;
|
|
@@ -447360,7 +447409,7 @@ function PackageManagerAutoUpdater(t0) {
|
|
|
447360
447409
|
wrap: "truncate",
|
|
447361
447410
|
children: [
|
|
447362
447411
|
"currentVersion: ",
|
|
447363
|
-
{ VERSION: "0.2.
|
|
447412
|
+
{ VERSION: "0.2.33", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
|
|
447364
447413
|
]
|
|
447365
447414
|
});
|
|
447366
447415
|
$2[3] = verbose;
|
|
@@ -455233,7 +455282,7 @@ function buildStatusLineCommandInput(permissionMode, exceeds200kTokens, settings
|
|
|
455233
455282
|
project_dir: getOriginalCwd(),
|
|
455234
455283
|
added_dirs: addedDirs
|
|
455235
455284
|
},
|
|
455236
|
-
version: { VERSION: "0.2.
|
|
455285
|
+
version: { VERSION: "0.2.33", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
|
|
455237
455286
|
output_style: {
|
|
455238
455287
|
name: outputStyleName
|
|
455239
455288
|
},
|
|
@@ -466645,7 +466694,7 @@ async function submitTranscriptShare(messages, trigger, appearanceId) {
|
|
|
466645
466694
|
} catch {}
|
|
466646
466695
|
const data = {
|
|
466647
466696
|
trigger,
|
|
466648
|
-
version: { VERSION: "0.2.
|
|
466697
|
+
version: { VERSION: "0.2.33", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
|
|
466649
466698
|
platform: process.platform,
|
|
466650
466699
|
transcript,
|
|
466651
466700
|
subagentTranscripts: Object.keys(subagentTranscripts).length > 0 ? subagentTranscripts : undefined,
|
|
@@ -479669,7 +479718,7 @@ function completeOnboarding() {
|
|
|
479669
479718
|
saveGlobalConfig((current) => ({
|
|
479670
479719
|
...current,
|
|
479671
479720
|
hasCompletedOnboarding: true,
|
|
479672
|
-
lastOnboardingVersion: { VERSION: "0.2.
|
|
479721
|
+
lastOnboardingVersion: { VERSION: "0.2.33", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
|
|
479673
479722
|
}));
|
|
479674
479723
|
}
|
|
479675
479724
|
function showDialog(root2, renderer) {
|
|
@@ -490528,7 +490577,7 @@ async function startMCPServer(cwd3, debug3, verbose) {
|
|
|
490528
490577
|
setCwd(cwd3);
|
|
490529
490578
|
const server2 = new Server({
|
|
490530
490579
|
name: "theus/tengu",
|
|
490531
|
-
version: { VERSION: "0.2.
|
|
490580
|
+
version: { VERSION: "0.2.33", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
|
|
490532
490581
|
}, {
|
|
490533
490582
|
capabilities: {
|
|
490534
490583
|
tools: {}
|
|
@@ -491970,7 +492019,7 @@ async function setupTokenHandler(root2) {
|
|
|
491970
492019
|
gap: 1,
|
|
491971
492020
|
children: [
|
|
491972
492021
|
/* @__PURE__ */ jsx_runtime489.jsx(TheusBanner, {
|
|
491973
|
-
version: { VERSION: "0.2.
|
|
492022
|
+
version: { VERSION: "0.2.33", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
|
|
491974
492023
|
}),
|
|
491975
492024
|
showAuthWarning && /* @__PURE__ */ jsx_runtime489.jsxs(ThemedBox_default, {
|
|
491976
492025
|
flexDirection: "column",
|
|
@@ -493439,7 +493488,7 @@ ${assistantAddendum}` : assistantAddendum;
|
|
|
493439
493488
|
}
|
|
493440
493489
|
}
|
|
493441
493490
|
logForDiagnosticsNoPII("info", "started", {
|
|
493442
|
-
version: { VERSION: "0.2.
|
|
493491
|
+
version: { VERSION: "0.2.33", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
|
|
493443
493492
|
is_native_binary: isInBundledMode()
|
|
493444
493493
|
});
|
|
493445
493494
|
registerCleanup(async () => {
|
|
@@ -494307,7 +494356,7 @@ Usage: theus --remote "your task description"`, () => gracefulShutdown(1));
|
|
|
494307
494356
|
pendingHookMessages
|
|
494308
494357
|
}, renderAndRun);
|
|
494309
494358
|
}
|
|
494310
|
-
}).version(`${{ VERSION: "0.2.
|
|
494359
|
+
}).version(`${{ VERSION: "0.2.33", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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");
|
|
494311
494360
|
program2.option("-w, --worktree [name]", "Crea un nuevo worktree de git para esta sesi\xF3n (opcionalmente indica un nombre)");
|
|
494312
494361
|
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.");
|
|
494313
494362
|
if (canUserConfigureAdvisor()) {
|
|
@@ -494859,7 +494908,7 @@ if (false) {}
|
|
|
494859
494908
|
async function main2() {
|
|
494860
494909
|
const args = process.argv.slice(2);
|
|
494861
494910
|
if (args.length === 1 && (args[0] === "--version" || args[0] === "-v" || args[0] === "-V")) {
|
|
494862
|
-
console.log(`${{ VERSION: "0.2.
|
|
494911
|
+
console.log(`${{ VERSION: "0.2.33", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)`);
|
|
494863
494912
|
return;
|
|
494864
494913
|
}
|
|
494865
494914
|
const {
|