theus-cli 0.2.31 → 0.2.32
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 +149 -138
- 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.32", BUILD_TIME: "1970-01-01T00:00:00.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.32", BUILD_TIME: "1970-01-01T00:00:00.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.32", BUILD_TIME: "1970-01-01T00:00:00.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.32", BUILD_TIME: "1970-01-01T00:00:00.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.32", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.32", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.32", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.32", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.32", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.32", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.32", BUILD_TIME: "1970-01-01T00:00:00.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.32", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.32", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.32", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.32", BUILD_TIME: "1970-01-01T00:00:00.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.32", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.32", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.32", BUILD_TIME: "1970-01-01T00:00:00.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.32", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.32", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.32", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.32", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.32", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.32", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.32", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.32", BUILD_TIME: "1970-01-01T00:00:00.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.32", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.32", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.32", BUILD_TIME: "1970-01-01T00:00:00.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.32", BUILD_TIME: "1970-01-01T00:00:00.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.32", BUILD_TIME: "1970-01-01T00:00:00.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.32", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.32", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.32", BUILD_TIME: "1970-01-01T00:00:00.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.32", BUILD_TIME: "1970-01-01T00:00:00.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.32", BUILD_TIME: "1970-01-01T00:00:00.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.32", BUILD_TIME: "1970-01-01T00:00:00.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.32", BUILD_TIME: "1970-01-01T00:00:00.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.32", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.32", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.32", BUILD_TIME: "1970-01-01T00:00:00.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.32", BUILD_TIME: "1970-01-01T00:00:00.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.32", BUILD_TIME: "1970-01-01T00:00:00.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.32", BUILD_TIME: "1970-01-01T00:00:00.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.32", BUILD_TIME: "1970-01-01T00:00:00.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.32", BUILD_TIME: "1970-01-01T00:00:00.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.32", BUILD_TIME: "1970-01-01T00:00:00.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.32", BUILD_TIME: "1970-01-01T00:00:00.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.32", BUILD_TIME: "1970-01-01T00:00:00.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.32", BUILD_TIME: "1970-01-01T00:00:00.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.32", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.32", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.32", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.32", BUILD_TIME: "1970-01-01T00:00:00.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.32", BUILD_TIME: "1970-01-01T00:00:00.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.32", BUILD_TIME: "1970-01-01T00:00:00.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) {
|
|
@@ -303594,9 +303594,9 @@ function getTheusEnvMetadata() {
|
|
|
303594
303594
|
};
|
|
303595
303595
|
}
|
|
303596
303596
|
function getBuildAgeMinutes() {
|
|
303597
|
-
if (!{ VERSION: "0.2.
|
|
303597
|
+
if (!{ VERSION: "0.2.32", BUILD_TIME: "1970-01-01T00:00:00.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
303598
|
return;
|
|
303599
|
-
const buildTime = new Date({ VERSION: "0.2.
|
|
303599
|
+
const buildTime = new Date({ VERSION: "0.2.32", BUILD_TIME: "1970-01-01T00:00:00.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
303600
|
if (isNaN(buildTime))
|
|
303601
303601
|
return;
|
|
303602
303602
|
return Math.floor((Date.now() - buildTime) / 60000);
|
|
@@ -320050,7 +320050,7 @@ function getAssistantMessageFromError(error40, model, options2) {
|
|
|
320050
320050
|
if (process.env.USER_TYPE === "ant") {
|
|
320051
320051
|
const baseMessage = `API Error: 400 ${error40.message}
|
|
320052
320052
|
|
|
320053
|
-
Run /share and post the JSON file to ${{ VERSION: "0.2.
|
|
320053
|
+
Run /share and post the JSON file to ${{ VERSION: "0.2.32", BUILD_TIME: "1970-01-01T00:00:00.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
320054
|
const rewindInstruction = getIsNonInteractiveSession() ? "" : " Then, use /rewind to recover the conversation.";
|
|
320055
320055
|
return createAssistantAPIErrorMessage({
|
|
320056
320056
|
content: baseMessage + rewindInstruction,
|
|
@@ -320086,7 +320086,7 @@ Run /share and post the JSON file to ${{ VERSION: "0.2.31", BUILD_TIME: "1970-01
|
|
|
320086
320086
|
if (process.env.USER_TYPE === "ant" && !process.env.THEUS_MODEL && error40 instanceof Error && error40.message.toLowerCase().includes("invalid model name")) {
|
|
320087
320087
|
const orgId = getOauthAccountInfo()?.organizationUuid;
|
|
320088
320088
|
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.
|
|
320089
|
+
const msg = orgId ? `${baseMsg} or share your orgId (${orgId}) in ${{ VERSION: "0.2.32", BUILD_TIME: "1970-01-01T00:00:00.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.32", BUILD_TIME: "1970-01-01T00:00:00.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
320090
|
return createAssistantAPIErrorMessage({
|
|
320091
320091
|
content: msg,
|
|
320092
320092
|
error: "invalid_request"
|
|
@@ -330190,7 +330190,7 @@ function buildPrimarySection() {
|
|
|
330190
330190
|
});
|
|
330191
330191
|
return [{
|
|
330192
330192
|
label: "Version",
|
|
330193
|
-
value: { VERSION: "0.2.
|
|
330193
|
+
value: { VERSION: "0.2.32", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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
330194
|
}, {
|
|
330195
330195
|
label: "Session name",
|
|
330196
330196
|
value: nameValue
|
|
@@ -334006,7 +334006,7 @@ function Config({
|
|
|
334006
334006
|
}
|
|
334007
334007
|
})
|
|
334008
334008
|
}) : showSubmenu === "ChannelDowngrade" ? /* @__PURE__ */ jsx_runtime185.jsx(ChannelDowngradeDialog, {
|
|
334009
|
-
currentVersion: { VERSION: "0.2.
|
|
334009
|
+
currentVersion: { VERSION: "0.2.32", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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
334010
|
onChoice: (choice) => {
|
|
334011
334011
|
setShowSubmenu(null);
|
|
334012
334012
|
setTabsHidden(false);
|
|
@@ -334018,7 +334018,7 @@ function Config({
|
|
|
334018
334018
|
autoUpdatesChannel: "stable"
|
|
334019
334019
|
};
|
|
334020
334020
|
if (choice === "stay") {
|
|
334021
|
-
newSettings.minimumVersion = { VERSION: "0.2.
|
|
334021
|
+
newSettings.minimumVersion = { VERSION: "0.2.32", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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
334022
|
}
|
|
334023
334023
|
updateSettingsForSource("userSettings", newSettings);
|
|
334024
334024
|
setSettingsData((prev_27) => ({
|
|
@@ -342052,7 +342052,7 @@ function HelpV2(t0) {
|
|
|
342052
342052
|
let t6;
|
|
342053
342053
|
if ($2[31] !== tabs) {
|
|
342054
342054
|
t6 = /* @__PURE__ */ jsx_runtime212.jsx(Tabs, {
|
|
342055
|
-
title: `Theus v${{ VERSION: "0.2.
|
|
342055
|
+
title: `Theus v${{ VERSION: "0.2.32", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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
342056
|
color: "professionalBlue",
|
|
342057
342057
|
defaultTab: "general",
|
|
342058
342058
|
children: tabs
|
|
@@ -358773,6 +358773,14 @@ var init_mcp3 = __esm(() => {
|
|
|
358773
358773
|
var NOVEDADES;
|
|
358774
358774
|
var init_data = __esm(() => {
|
|
358775
358775
|
NOVEDADES = [
|
|
358776
|
+
{
|
|
358777
|
+
version: "v0.2.32",
|
|
358778
|
+
fecha: "2026-07-13",
|
|
358779
|
+
titulo: "Constelaci\xF3n de agentes, m\xE1s viva",
|
|
358780
|
+
puntos: [
|
|
358781
|
+
"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."
|
|
358782
|
+
]
|
|
358783
|
+
},
|
|
358776
358784
|
{
|
|
358777
358785
|
version: "v0.2.31",
|
|
358778
358786
|
fecha: "2026-07-13",
|
|
@@ -360478,7 +360486,7 @@ function Onboarding({
|
|
|
360478
360486
|
flexDirection: "column",
|
|
360479
360487
|
children: [
|
|
360480
360488
|
/* @__PURE__ */ jsx_runtime245.jsx(TheusBanner, {
|
|
360481
|
-
version: { VERSION: "0.2.
|
|
360489
|
+
version: { VERSION: "0.2.32", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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
360490
|
}),
|
|
360483
360491
|
/* @__PURE__ */ jsx_runtime245.jsxs(ThemedBox_default, {
|
|
360484
360492
|
flexDirection: "column",
|
|
@@ -360823,9 +360831,9 @@ function getAllReleaseNotes(changelogContent = getStoredChangelogFromMemory()) {
|
|
|
360823
360831
|
return [];
|
|
360824
360832
|
}
|
|
360825
360833
|
}
|
|
360826
|
-
async function checkForReleaseNotes(lastSeenVersion, currentVersion = { VERSION: "0.2.
|
|
360834
|
+
async function checkForReleaseNotes(lastSeenVersion, currentVersion = { VERSION: "0.2.32", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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
360835
|
if (process.env.USER_TYPE === "ant") {
|
|
360828
|
-
const changelog = { VERSION: "0.2.
|
|
360836
|
+
const changelog = { VERSION: "0.2.32", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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
360837
|
if (changelog) {
|
|
360830
360838
|
const commits = changelog.trim().split(`
|
|
360831
360839
|
`).filter(Boolean);
|
|
@@ -365228,7 +365236,7 @@ var init_Messages = __esm(() => {
|
|
|
365228
365236
|
let t1;
|
|
365229
365237
|
if ($2[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
365230
365238
|
t1 = /* @__PURE__ */ jsx_runtime258.jsx(TheusSessionHeader, {
|
|
365231
|
-
version: { VERSION: "0.2.
|
|
365239
|
+
version: { VERSION: "0.2.32", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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
365240
|
});
|
|
365233
365241
|
$2[0] = t1;
|
|
365234
365242
|
} else {
|
|
@@ -378292,6 +378300,7 @@ var init_ShellDetailDialog = __esm(() => {
|
|
|
378292
378300
|
var exports_WorkflowDetailDialog = {};
|
|
378293
378301
|
__export(exports_WorkflowDetailDialog, {
|
|
378294
378302
|
statusColor: () => statusColor2,
|
|
378303
|
+
seedOf: () => seedOf,
|
|
378295
378304
|
progressBarString: () => progressBarString,
|
|
378296
378305
|
phaseCounts: () => phaseCounts,
|
|
378297
378306
|
nodeGlyph: () => nodeGlyph,
|
|
@@ -378313,6 +378322,13 @@ function truncate5(text, n2) {
|
|
|
378313
378322
|
function modIndex(i3, len) {
|
|
378314
378323
|
return (i3 % len + len) % len;
|
|
378315
378324
|
}
|
|
378325
|
+
function seedOf(a2) {
|
|
378326
|
+
const id = String(a2 && a2.id || "");
|
|
378327
|
+
let s = 0;
|
|
378328
|
+
for (let i3 = 0;i3 < id.length; i3++)
|
|
378329
|
+
s = (s * 31 + id.charCodeAt(i3)) % 9973;
|
|
378330
|
+
return s;
|
|
378331
|
+
}
|
|
378316
378332
|
function groupAgentsByPhase(agents) {
|
|
378317
378333
|
const order = [];
|
|
378318
378334
|
const byKey = new Map;
|
|
@@ -378332,10 +378348,10 @@ function groupAgentsByPhase(agents) {
|
|
|
378332
378348
|
nodes: byKey.get(key)
|
|
378333
378349
|
}));
|
|
378334
378350
|
}
|
|
378335
|
-
function nodeGlyph(status2, frame) {
|
|
378351
|
+
function nodeGlyph(status2, frame, seed = 0) {
|
|
378336
378352
|
switch (status2) {
|
|
378337
378353
|
case "completed":
|
|
378338
|
-
return "\
|
|
378354
|
+
return "\u2605";
|
|
378339
378355
|
case "failed":
|
|
378340
378356
|
return "\u2717";
|
|
378341
378357
|
case "skipped":
|
|
@@ -378343,10 +378359,10 @@ function nodeGlyph(status2, frame) {
|
|
|
378343
378359
|
case "pending":
|
|
378344
378360
|
case "queued":
|
|
378345
378361
|
case "waiting":
|
|
378346
|
-
return "\
|
|
378362
|
+
return "\xB7";
|
|
378347
378363
|
case "running":
|
|
378348
378364
|
default:
|
|
378349
|
-
return PULSE_FRAMES[modIndex(frame, PULSE_FRAMES.length)];
|
|
378365
|
+
return PULSE_FRAMES[modIndex(frame + seed, PULSE_FRAMES.length)];
|
|
378350
378366
|
}
|
|
378351
378367
|
}
|
|
378352
378368
|
function statusColor2(status2) {
|
|
@@ -378492,7 +378508,7 @@ function PhaseColumn({ phase, rows, frame, selectedId }) {
|
|
|
378492
378508
|
continue;
|
|
378493
378509
|
}
|
|
378494
378510
|
const sel = selectedId != null && a2.id === selectedId;
|
|
378495
|
-
const glyph = nodeGlyph(a2.status, frame);
|
|
378511
|
+
const glyph = nodeGlyph(a2.status, frame, seedOf(a2));
|
|
378496
378512
|
const color3 = statusColor2(a2.status);
|
|
378497
378513
|
const dim2 = isDimStatus(a2.status);
|
|
378498
378514
|
const label = truncate5(a2.descripcion || a2.tipo || "agente", COL_W - 4);
|
|
@@ -378522,13 +378538,6 @@ function PhaseColumn({ phase, rows, frame, selectedId }) {
|
|
|
378522
378538
|
dimColor: dim2 && !sel,
|
|
378523
378539
|
children: label
|
|
378524
378540
|
}),
|
|
378525
|
-
running2 && !REDUCE_MOTION ? /* @__PURE__ */ jsx_runtime279.jsxs(ThemedText, {
|
|
378526
|
-
color: "background",
|
|
378527
|
-
children: [
|
|
378528
|
-
" ",
|
|
378529
|
-
brailleFrame(frame)
|
|
378530
|
-
]
|
|
378531
|
-
}) : null,
|
|
378532
378541
|
meta5 ? /* @__PURE__ */ jsx_runtime279.jsxs(ThemedText, {
|
|
378533
378542
|
dimColor: true,
|
|
378534
378543
|
children: [
|
|
@@ -378562,10 +378571,11 @@ function PhaseColumn({ phase, rows, frame, selectedId }) {
|
|
|
378562
378571
|
]
|
|
378563
378572
|
});
|
|
378564
378573
|
}
|
|
378565
|
-
function PhaseConnector({ rows, leftNodes }) {
|
|
378574
|
+
function PhaseConnector({ rows, leftNodes, rightNodes }) {
|
|
378566
378575
|
const lines = [];
|
|
378576
|
+
const upto = Math.min(leftNodes, rightNodes);
|
|
378567
378577
|
for (let r = 0;r < rows; r++) {
|
|
378568
|
-
const on6 = r <
|
|
378578
|
+
const on6 = r < upto;
|
|
378569
378579
|
lines.push(/* @__PURE__ */ jsx_runtime279.jsx(ThemedText, {
|
|
378570
378580
|
dimColor: true,
|
|
378571
378581
|
children: on6 ? "\u2500\u25B8" : " "
|
|
@@ -378825,7 +378835,8 @@ function WorkflowDetailDialog({
|
|
|
378825
378835
|
children: [
|
|
378826
378836
|
i3 > 0 && /* @__PURE__ */ jsx_runtime279.jsx(PhaseConnector, {
|
|
378827
378837
|
rows,
|
|
378828
|
-
leftNodes: Math.min(phases[i3 - 1].nodes.length, MAX_NODES_PER_PHASE)
|
|
378838
|
+
leftNodes: Math.min(phases[i3 - 1].nodes.length, MAX_NODES_PER_PHASE),
|
|
378839
|
+
rightNodes: Math.min(phase.nodes.length, MAX_NODES_PER_PHASE)
|
|
378829
378840
|
}),
|
|
378830
378841
|
/* @__PURE__ */ jsx_runtime279.jsx(PhaseColumn, {
|
|
378831
378842
|
phase,
|
|
@@ -378972,9 +378983,9 @@ var init_WorkflowDetailDialog = __esm(() => {
|
|
|
378972
378983
|
import_react161 = __toESM(require_react(), 1);
|
|
378973
378984
|
jsx_runtime279 = __toESM(require_jsx_runtime(), 1);
|
|
378974
378985
|
REDUCE_MOTION = isEnvTruthy(process.env.THEUS_CODE_REDUCE_MOTION);
|
|
378975
|
-
PULSE_FRAMES = ["\
|
|
378986
|
+
PULSE_FRAMES = ["\u2726", "\u2737", "\u2727", "\u22C6", "\u2727", "\u2737"];
|
|
378976
378987
|
BRAILLE_FRAMES = ["\u280B", "\u2819", "\u2839", "\u2838", "\u283C", "\u2834", "\u2826", "\u2827"];
|
|
378977
|
-
FLOW_MARKERS = ["\
|
|
378988
|
+
FLOW_MARKERS = ["\u2726", "\u2727", "\u22C6", "\xB7"];
|
|
378978
378989
|
WorkflowDetailDialog_default = WorkflowDetailDialog;
|
|
378979
378990
|
});
|
|
378980
378991
|
|
|
@@ -393679,7 +393690,7 @@ async function captureMemoryDiagnostics(trigger, dumpNumber = 0) {
|
|
|
393679
393690
|
smapsRollup,
|
|
393680
393691
|
platform: process.platform,
|
|
393681
393692
|
nodeVersion: process.version,
|
|
393682
|
-
ccVersion: { VERSION: "0.2.
|
|
393693
|
+
ccVersion: { VERSION: "0.2.32", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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
393694
|
};
|
|
393684
393695
|
}
|
|
393685
393696
|
async function performHeapDump(trigger = "manual", dumpNumber = 0) {
|
|
@@ -394265,7 +394276,7 @@ var init_bridge_kick = __esm(() => {
|
|
|
394265
394276
|
var call57 = async () => {
|
|
394266
394277
|
return {
|
|
394267
394278
|
type: "text",
|
|
394268
|
-
value: { VERSION: "0.2.
|
|
394279
|
+
value: { VERSION: "0.2.32", BUILD_TIME: "1970-01-01T00:00:00.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.32", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.32", BUILD_TIME: "1970-01-01T00:00:00.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.32", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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
394280
|
};
|
|
394270
394281
|
}, version2, version_default;
|
|
394271
394282
|
var init_version = __esm(() => {
|
|
@@ -398707,13 +398718,13 @@ async function updateReleaseBundle() {
|
|
|
398707
398718
|
await gracefulShutdown(1);
|
|
398708
398719
|
return;
|
|
398709
398720
|
}
|
|
398710
|
-
if (gte({ VERSION: "0.2.
|
|
398711
|
-
writeToStdout(source_default.green(`Theus is up to date (${{ VERSION: "0.2.
|
|
398721
|
+
if (gte({ VERSION: "0.2.32", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
|
|
398722
|
+
writeToStdout(source_default.green(`Theus is up to date (${{ VERSION: "0.2.32", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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
398723
|
`);
|
|
398713
398724
|
await gracefulShutdown(0);
|
|
398714
398725
|
return;
|
|
398715
398726
|
}
|
|
398716
|
-
writeToStdout(`New version available: ${latest} (current: ${{ VERSION: "0.2.
|
|
398727
|
+
writeToStdout(`New version available: ${latest} (current: ${{ VERSION: "0.2.32", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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
398728
|
`);
|
|
398718
398729
|
writeToStdout(`Installing update from theus.pe/dl...
|
|
398719
398730
|
`);
|
|
@@ -398747,7 +398758,7 @@ async function updateReleaseBundle() {
|
|
|
398747
398758
|
return;
|
|
398748
398759
|
}
|
|
398749
398760
|
cpSync(staged, bundleDir, { recursive: true, force: true });
|
|
398750
|
-
writeToStdout(source_default.green(`Successfully updated from ${{ VERSION: "0.2.
|
|
398761
|
+
writeToStdout(source_default.green(`Successfully updated from ${{ VERSION: "0.2.32", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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
398762
|
`);
|
|
398752
398763
|
await regenerateCompletionCache();
|
|
398753
398764
|
} finally {
|
|
@@ -398760,7 +398771,7 @@ async function updateReleaseBundle() {
|
|
|
398760
398771
|
async function update() {
|
|
398761
398772
|
logEvent("tengu_update_check", {});
|
|
398762
398773
|
await updateNaupa();
|
|
398763
|
-
writeToStdout(`Current version: ${{ VERSION: "0.2.
|
|
398774
|
+
writeToStdout(`Current version: ${{ VERSION: "0.2.32", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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
398775
|
`);
|
|
398765
398776
|
const channel2 = getInitialSettings()?.autoUpdatesChannel ?? "latest";
|
|
398766
398777
|
writeToStdout(`Checking for updates to ${channel2} version...
|
|
@@ -398839,8 +398850,8 @@ async function update() {
|
|
|
398839
398850
|
writeToStdout(`Theus is managed by Homebrew.
|
|
398840
398851
|
`);
|
|
398841
398852
|
const latest = await getLatestVersion(channel2);
|
|
398842
|
-
if (latest && !gte({ VERSION: "0.2.
|
|
398843
|
-
writeToStdout(`Update available: ${{ VERSION: "0.2.
|
|
398853
|
+
if (latest && !gte({ VERSION: "0.2.32", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
|
|
398854
|
+
writeToStdout(`Update available: ${{ VERSION: "0.2.32", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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
398855
|
`);
|
|
398845
398856
|
writeToStdout(`
|
|
398846
398857
|
`);
|
|
@@ -398856,8 +398867,8 @@ async function update() {
|
|
|
398856
398867
|
writeToStdout(`Theus is managed by winget.
|
|
398857
398868
|
`);
|
|
398858
398869
|
const latest = await getLatestVersion(channel2);
|
|
398859
|
-
if (latest && !gte({ VERSION: "0.2.
|
|
398860
|
-
writeToStdout(`Update available: ${{ VERSION: "0.2.
|
|
398870
|
+
if (latest && !gte({ VERSION: "0.2.32", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
|
|
398871
|
+
writeToStdout(`Update available: ${{ VERSION: "0.2.32", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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
398872
|
`);
|
|
398862
398873
|
writeToStdout(`
|
|
398863
398874
|
`);
|
|
@@ -398873,8 +398884,8 @@ async function update() {
|
|
|
398873
398884
|
writeToStdout(`Theus is managed by apk.
|
|
398874
398885
|
`);
|
|
398875
398886
|
const latest = await getLatestVersion(channel2);
|
|
398876
|
-
if (latest && !gte({ VERSION: "0.2.
|
|
398877
|
-
writeToStdout(`Update available: ${{ VERSION: "0.2.
|
|
398887
|
+
if (latest && !gte({ VERSION: "0.2.32", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
|
|
398888
|
+
writeToStdout(`Update available: ${{ VERSION: "0.2.32", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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
398889
|
`);
|
|
398879
398890
|
writeToStdout(`
|
|
398880
398891
|
`);
|
|
@@ -398939,11 +398950,11 @@ async function update() {
|
|
|
398939
398950
|
`);
|
|
398940
398951
|
await gracefulShutdown(1);
|
|
398941
398952
|
}
|
|
398942
|
-
if (result.latestVersion === { VERSION: "0.2.
|
|
398943
|
-
writeToStdout(source_default.green(`Theus is up to date (${{ VERSION: "0.2.
|
|
398953
|
+
if (result.latestVersion === { VERSION: "0.2.32", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION) {
|
|
398954
|
+
writeToStdout(source_default.green(`Theus is up to date (${{ VERSION: "0.2.32", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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
398955
|
`);
|
|
398945
398956
|
} else {
|
|
398946
|
-
writeToStdout(source_default.green(`Successfully updated from ${{ VERSION: "0.2.
|
|
398957
|
+
writeToStdout(source_default.green(`Successfully updated from ${{ VERSION: "0.2.32", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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
398958
|
`);
|
|
398948
398959
|
await regenerateCompletionCache();
|
|
398949
398960
|
}
|
|
@@ -398962,9 +398973,9 @@ async function update() {
|
|
|
398962
398973
|
await removeInstalledSymlink();
|
|
398963
398974
|
}
|
|
398964
398975
|
logForDebugging("update: Checking npm registry for latest version");
|
|
398965
|
-
logForDebugging(`update: Package URL: ${{ VERSION: "0.2.
|
|
398976
|
+
logForDebugging(`update: Package URL: ${{ VERSION: "0.2.32", BUILD_TIME: "1970-01-01T00:00:00.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
398977
|
const npmTag = channel2 === "stable" ? "stable" : "latest";
|
|
398967
|
-
const npmCommand = `npm view ${{ VERSION: "0.2.
|
|
398978
|
+
const npmCommand = `npm view ${{ VERSION: "0.2.32", BUILD_TIME: "1970-01-01T00:00:00.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
398979
|
logForDebugging(`update: Running: ${npmCommand}`);
|
|
398969
398980
|
const latestVersion = await getLatestVersion(channel2);
|
|
398970
398981
|
logForDebugging(`update: Latest version from npm: ${latestVersion || "FAILED"}`);
|
|
@@ -398984,7 +398995,7 @@ async function update() {
|
|
|
398984
398995
|
`);
|
|
398985
398996
|
process.stderr.write(` \u2022 Corporate proxy/firewall blocking npm
|
|
398986
398997
|
`);
|
|
398987
|
-
if ({ VERSION: "0.2.
|
|
398998
|
+
if ({ VERSION: "0.2.32", BUILD_TIME: "1970-01-01T00:00:00.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.32", BUILD_TIME: "1970-01-01T00:00:00.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
398999
|
process.stderr.write(` \u2022 Internal/development build not published to npm
|
|
398989
399000
|
`);
|
|
398990
399001
|
}
|
|
@@ -398996,19 +399007,19 @@ async function update() {
|
|
|
398996
399007
|
`);
|
|
398997
399008
|
process.stderr.write(` \u2022 Run with --debug flag for more details
|
|
398998
399009
|
`);
|
|
398999
|
-
const packageName = { VERSION: "0.2.
|
|
399010
|
+
const packageName = { VERSION: "0.2.32", BUILD_TIME: "1970-01-01T00:00:00.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
399011
|
process.stderr.write(` \u2022 Manually check: npm view ${packageName} version
|
|
399001
399012
|
`);
|
|
399002
399013
|
process.stderr.write(` \u2022 Check if you need to login: npm whoami
|
|
399003
399014
|
`);
|
|
399004
399015
|
await gracefulShutdown(1);
|
|
399005
399016
|
}
|
|
399006
|
-
if (gte({ VERSION: "0.2.
|
|
399007
|
-
writeToStdout(source_default.green(`Theus is up to date (${{ VERSION: "0.2.
|
|
399017
|
+
if (gte({ VERSION: "0.2.32", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
|
|
399018
|
+
writeToStdout(source_default.green(`Theus is up to date (${{ VERSION: "0.2.32", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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
399019
|
`);
|
|
399009
399020
|
await gracefulShutdown(0);
|
|
399010
399021
|
}
|
|
399011
|
-
writeToStdout(`New version available: ${latestVersion} (current: ${{ VERSION: "0.2.
|
|
399022
|
+
writeToStdout(`New version available: ${latestVersion} (current: ${{ VERSION: "0.2.32", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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
399023
|
`);
|
|
399013
399024
|
writeToStdout(`Installing update...
|
|
399014
399025
|
`);
|
|
@@ -399053,7 +399064,7 @@ async function update() {
|
|
|
399053
399064
|
logForDebugging(`update: Installation status: ${status2}`);
|
|
399054
399065
|
switch (status2) {
|
|
399055
399066
|
case "success":
|
|
399056
|
-
writeToStdout(source_default.green(`Successfully updated from ${{ VERSION: "0.2.
|
|
399067
|
+
writeToStdout(source_default.green(`Successfully updated from ${{ VERSION: "0.2.32", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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
399068
|
`);
|
|
399058
399069
|
await regenerateCompletionCache();
|
|
399059
399070
|
break;
|
|
@@ -399063,7 +399074,7 @@ async function update() {
|
|
|
399063
399074
|
if (useLocalUpdate) {
|
|
399064
399075
|
process.stderr.write(`Try manually updating with:
|
|
399065
399076
|
`);
|
|
399066
|
-
process.stderr.write(` cd ~/.theus/local && npm update ${{ VERSION: "0.2.
|
|
399077
|
+
process.stderr.write(` cd ~/.theus/local && npm update ${{ VERSION: "0.2.32", BUILD_TIME: "1970-01-01T00:00:00.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
399078
|
`);
|
|
399068
399079
|
} else {
|
|
399069
399080
|
process.stderr.write(`Try running with sudo or fix npm permissions
|
|
@@ -399079,7 +399090,7 @@ async function update() {
|
|
|
399079
399090
|
if (useLocalUpdate) {
|
|
399080
399091
|
process.stderr.write(`Try manually updating with:
|
|
399081
399092
|
`);
|
|
399082
|
-
process.stderr.write(` cd ~/.theus/local && npm update ${{ VERSION: "0.2.
|
|
399093
|
+
process.stderr.write(` cd ~/.theus/local && npm update ${{ VERSION: "0.2.32", BUILD_TIME: "1970-01-01T00:00:00.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
399094
|
`);
|
|
399084
399095
|
} else {
|
|
399085
399096
|
process.stderr.write(`Or consider using native installation with: theus install
|
|
@@ -408156,7 +408167,7 @@ var init_sessionStorage = __esm(() => {
|
|
|
408156
408167
|
init_settings2();
|
|
408157
408168
|
init_slowOperations();
|
|
408158
408169
|
init_uuid();
|
|
408159
|
-
VERSION4 = { VERSION: "0.2.
|
|
408170
|
+
VERSION4 = { VERSION: "0.2.32", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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
408171
|
MAX_TOMBSTONE_REWRITE_BYTES = 50 * 1024 * 1024;
|
|
408161
408172
|
SKIP_FIRST_PROMPT_PATTERN = /^(?:\s*<[a-z][\w-]*[\s>]|\[Request interrupted by user[^\]]*\])/;
|
|
408162
408173
|
EPHEMERAL_PROGRESS_TYPES = new Set([
|
|
@@ -409361,7 +409372,7 @@ var init_filesystem = __esm(() => {
|
|
|
409361
409372
|
});
|
|
409362
409373
|
getBundledSkillsRoot = memoize_default(function getBundledSkillsRoot2() {
|
|
409363
409374
|
const nonce = randomBytes21(16).toString("hex");
|
|
409364
|
-
return join148(getTheusTempDir(), "bundled-skills", { VERSION: "0.2.
|
|
409375
|
+
return join148(getTheusTempDir(), "bundled-skills", { VERSION: "0.2.32", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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
409376
|
});
|
|
409366
409377
|
getResolvedWorkingDirPaths = memoize_default(getPathsForPermissionCheck);
|
|
409367
409378
|
});
|
|
@@ -414540,7 +414551,7 @@ function getSimpleDoingTasksSection() {
|
|
|
414540
414551
|
];
|
|
414541
414552
|
const userHelpSubitems = [
|
|
414542
414553
|
`/help: Get help with using Theus`,
|
|
414543
|
-
`To give feedback, users should ${{ VERSION: "0.2.
|
|
414554
|
+
`To give feedback, users should ${{ VERSION: "0.2.32", BUILD_TIME: "1970-01-01T00:00:00.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
414555
|
];
|
|
414545
414556
|
const items = [
|
|
414546
414557
|
`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 +415451,7 @@ function computeFingerprint(messageText, version3) {
|
|
|
415440
415451
|
}
|
|
415441
415452
|
function computeFingerprintFromMessages(messages) {
|
|
415442
415453
|
const firstMessageText = extractFirstMessageText(messages);
|
|
415443
|
-
return computeFingerprint(firstMessageText, { VERSION: "0.2.
|
|
415454
|
+
return computeFingerprint(firstMessageText, { VERSION: "0.2.32", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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
415455
|
}
|
|
415445
415456
|
var FINGERPRINT_SALT = "59cf53e54c78";
|
|
415446
415457
|
var init_fingerprint = () => {};
|
|
@@ -417988,7 +417999,7 @@ async function sideQuery(opts) {
|
|
|
417988
417999
|
betas.push(STRUCTURED_OUTPUTS_BETA_HEADER);
|
|
417989
418000
|
}
|
|
417990
418001
|
const messageText = extractFirstUserMessageText(messages);
|
|
417991
|
-
const fingerprint = computeFingerprint(messageText, { VERSION: "0.2.
|
|
418002
|
+
const fingerprint = computeFingerprint(messageText, { VERSION: "0.2.32", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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
418003
|
const attributionHeader = getAttributionHeader(fingerprint);
|
|
417993
418004
|
const systemBlocks = [
|
|
417994
418005
|
attributionHeader ? { type: "text", text: attributionHeader } : null,
|
|
@@ -419291,7 +419302,7 @@ async function handleMemories(state) {
|
|
|
419291
419302
|
async function runProjectContextMcpServer() {
|
|
419292
419303
|
const projectRoot = process.env.THEUS_PROJECT_ROOT || process.cwd();
|
|
419293
419304
|
const state = new ProjectContextState(projectRoot);
|
|
419294
|
-
const server2 = new Server({ name: SERVER_NAME, version: { VERSION: "0.2.
|
|
419305
|
+
const server2 = new Server({ name: SERVER_NAME, version: { VERSION: "0.2.32", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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
419306
|
server2.setRequestHandler(ListToolsRequestSchema, async () => ({
|
|
419296
419307
|
tools: TOOL_DEFINITIONS.map((t) => ({
|
|
419297
419308
|
name: t.name,
|
|
@@ -421271,7 +421282,7 @@ function createBridgeLogger(options2) {
|
|
|
421271
421282
|
connectUrl = buildBridgeConnectUrl(environmentId, cachedIngressUrl);
|
|
421272
421283
|
regenerateQr(connectUrl);
|
|
421273
421284
|
if (verbose) {
|
|
421274
|
-
write(source_default.dim(`Remote Control`) + ` v${{ VERSION: "0.2.
|
|
421285
|
+
write(source_default.dim(`Remote Control`) + ` v${{ VERSION: "0.2.32", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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
421286
|
`);
|
|
421276
421287
|
}
|
|
421277
421288
|
if (verbose) {
|
|
@@ -422244,7 +422255,7 @@ function appendToLog(path19, message) {
|
|
|
422244
422255
|
cwd: getFsImplementation().cwd(),
|
|
422245
422256
|
userType: process.env.USER_TYPE,
|
|
422246
422257
|
sessionId: getSessionId(),
|
|
422247
|
-
version: { VERSION: "0.2.
|
|
422258
|
+
version: { VERSION: "0.2.32", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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
422259
|
};
|
|
422249
422260
|
getLogWriter(path19).write(messageWithTimestamp);
|
|
422250
422261
|
}
|
|
@@ -423514,7 +423525,7 @@ Spawn mode for this project:
|
|
|
423514
423525
|
const api2 = createBridgeApiClient({
|
|
423515
423526
|
baseUrl,
|
|
423516
423527
|
getAccessToken: getBridgeAccessToken2,
|
|
423517
|
-
runnerVersion: { VERSION: "0.2.
|
|
423528
|
+
runnerVersion: { VERSION: "0.2.32", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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
423529
|
onDebug: logForDebugging,
|
|
423519
423530
|
onAuth401: handleOAuth401Error2,
|
|
423520
423531
|
getTrustedDeviceToken
|
|
@@ -423752,7 +423763,7 @@ async function runBridgeHeadless(opts, signal) {
|
|
|
423752
423763
|
const api2 = createBridgeApiClient({
|
|
423753
423764
|
baseUrl,
|
|
423754
423765
|
getAccessToken: opts.getAccessToken,
|
|
423755
|
-
runnerVersion: { VERSION: "0.2.
|
|
423766
|
+
runnerVersion: { VERSION: "0.2.32", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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
423767
|
onDebug: log2,
|
|
423757
423768
|
onAuth401: opts.onAuth401,
|
|
423758
423769
|
getTrustedDeviceToken
|
|
@@ -427816,7 +427827,7 @@ function buildSystemInitMessage(inputs) {
|
|
|
427816
427827
|
slash_commands: inputs.commands.filter((c5) => c5.userInvocable !== false).map((c5) => c5.name),
|
|
427817
427828
|
apiKeySource: getTheusApiKeyWithSource().source,
|
|
427818
427829
|
betas: getSdkBetas(),
|
|
427819
|
-
theus_code_version: { VERSION: "0.2.
|
|
427830
|
+
theus_code_version: { VERSION: "0.2.32", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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
427831
|
output_style: outputStyle2,
|
|
427821
427832
|
agents: inputs.agents.map((agent) => agent.agentType),
|
|
427822
427833
|
skills: inputs.skills.filter((s) => s.userInvocable !== false).map((skill) => skill.name),
|
|
@@ -427856,8 +427867,8 @@ async function getEnvLessBridgeConfig() {
|
|
|
427856
427867
|
}
|
|
427857
427868
|
async function checkEnvLessBridgeMinVersion() {
|
|
427858
427869
|
const cfg = await getEnvLessBridgeConfig();
|
|
427859
|
-
if (cfg.min_version && lt({ VERSION: "0.2.
|
|
427860
|
-
return `Your version of Theus (${{ VERSION: "0.2.
|
|
427870
|
+
if (cfg.min_version && lt({ VERSION: "0.2.32", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
|
|
427871
|
+
return `Your version of Theus (${{ VERSION: "0.2.32", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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
427872
|
Version ${cfg.min_version} or higher is required. Run \`theus update\` to update.`;
|
|
427862
427873
|
}
|
|
427863
427874
|
return null;
|
|
@@ -430180,7 +430191,7 @@ async function initBridgeCore(params) {
|
|
|
430180
430191
|
const rawApi = createBridgeApiClient({
|
|
430181
430192
|
baseUrl,
|
|
430182
430193
|
getAccessToken,
|
|
430183
|
-
runnerVersion: { VERSION: "0.2.
|
|
430194
|
+
runnerVersion: { VERSION: "0.2.32", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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
430195
|
onDebug: logForDebugging,
|
|
430185
430196
|
onAuth401,
|
|
430186
430197
|
getTrustedDeviceToken
|
|
@@ -446921,7 +446932,7 @@ var init_useVoiceEnabled = __esm(() => {
|
|
|
446921
446932
|
function getSemverPart(version3) {
|
|
446922
446933
|
return `${import_semver14.major(version3, { loose: true })}.${import_semver14.minor(version3, { loose: true })}.${import_semver14.patch(version3, { loose: true })}`;
|
|
446923
446934
|
}
|
|
446924
|
-
function useUpdateNotification(updatedVersion, initialVersion = { VERSION: "0.2.
|
|
446935
|
+
function useUpdateNotification(updatedVersion, initialVersion = { VERSION: "0.2.32", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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
446936
|
const [lastNotifiedSemver, setLastNotifiedSemver] = import_react230.useState(() => getSemverPart(initialVersion));
|
|
446926
446937
|
if (!updatedVersion) {
|
|
446927
446938
|
return null;
|
|
@@ -446961,7 +446972,7 @@ function AutoUpdater({
|
|
|
446961
446972
|
return;
|
|
446962
446973
|
}
|
|
446963
446974
|
if (false) {}
|
|
446964
|
-
const currentVersion = { VERSION: "0.2.
|
|
446975
|
+
const currentVersion = { VERSION: "0.2.32", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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
446976
|
const channel2 = getInitialSettings()?.autoUpdatesChannel ?? "latest";
|
|
446966
446977
|
let latestVersion = await getLatestVersion(channel2);
|
|
446967
446978
|
const isDisabled2 = isAutoUpdaterDisabled();
|
|
@@ -447097,7 +447108,7 @@ function AutoUpdater({
|
|
|
447097
447108
|
" ",
|
|
447098
447109
|
/* @__PURE__ */ jsx_runtime403.jsx(ThemedText, {
|
|
447099
447110
|
bold: true,
|
|
447100
|
-
children: hasLocalInstall ? `cd ~/.theus/local && npm update ${{ VERSION: "0.2.
|
|
447111
|
+
children: hasLocalInstall ? `cd ~/.theus/local && npm update ${{ VERSION: "0.2.32", BUILD_TIME: "1970-01-01T00:00:00.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.32", BUILD_TIME: "1970-01-01T00:00:00.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
447112
|
})
|
|
447102
447113
|
]
|
|
447103
447114
|
})
|
|
@@ -447174,12 +447185,12 @@ function NativeAutoUpdater({
|
|
|
447174
447185
|
logEvent("tengu_native_auto_updater_start", {});
|
|
447175
447186
|
try {
|
|
447176
447187
|
const maxVersion = await getMaxVersion();
|
|
447177
|
-
if (maxVersion && gt({ VERSION: "0.2.
|
|
447188
|
+
if (maxVersion && gt({ VERSION: "0.2.32", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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
447189
|
const msg = await getMaxVersionMessage();
|
|
447179
447190
|
setMaxVersionIssue(msg ?? "affects your version");
|
|
447180
447191
|
}
|
|
447181
447192
|
const result = await installLatest(channel2);
|
|
447182
|
-
const currentVersion = { VERSION: "0.2.
|
|
447193
|
+
const currentVersion = { VERSION: "0.2.32", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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
447194
|
const latencyMs = Date.now() - startTime2;
|
|
447184
447195
|
if (result.lockFailed) {
|
|
447185
447196
|
logEvent("tengu_native_auto_updater_lock_contention", {
|
|
@@ -447316,17 +447327,17 @@ function PackageManagerAutoUpdater(t0) {
|
|
|
447316
447327
|
const maxVersion = await getMaxVersion();
|
|
447317
447328
|
if (maxVersion && latest && gt(latest, maxVersion)) {
|
|
447318
447329
|
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.
|
|
447330
|
+
if (gte({ VERSION: "0.2.32", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
|
|
447331
|
+
logForDebugging(`PackageManagerAutoUpdater: current version ${{ VERSION: "0.2.32", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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
447332
|
setUpdateAvailable(false);
|
|
447322
447333
|
return;
|
|
447323
447334
|
}
|
|
447324
447335
|
latest = maxVersion;
|
|
447325
447336
|
}
|
|
447326
|
-
const hasUpdate = latest && !gte({ VERSION: "0.2.
|
|
447337
|
+
const hasUpdate = latest && !gte({ VERSION: "0.2.32", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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
447338
|
setUpdateAvailable(!!hasUpdate);
|
|
447328
447339
|
if (hasUpdate) {
|
|
447329
|
-
logForDebugging(`PackageManagerAutoUpdater: Update available ${{ VERSION: "0.2.
|
|
447340
|
+
logForDebugging(`PackageManagerAutoUpdater: Update available ${{ VERSION: "0.2.32", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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
447341
|
}
|
|
447331
447342
|
};
|
|
447332
447343
|
$2[0] = t1;
|
|
@@ -447360,7 +447371,7 @@ function PackageManagerAutoUpdater(t0) {
|
|
|
447360
447371
|
wrap: "truncate",
|
|
447361
447372
|
children: [
|
|
447362
447373
|
"currentVersion: ",
|
|
447363
|
-
{ VERSION: "0.2.
|
|
447374
|
+
{ VERSION: "0.2.32", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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
447375
|
]
|
|
447365
447376
|
});
|
|
447366
447377
|
$2[3] = verbose;
|
|
@@ -455233,7 +455244,7 @@ function buildStatusLineCommandInput(permissionMode, exceeds200kTokens, settings
|
|
|
455233
455244
|
project_dir: getOriginalCwd(),
|
|
455234
455245
|
added_dirs: addedDirs
|
|
455235
455246
|
},
|
|
455236
|
-
version: { VERSION: "0.2.
|
|
455247
|
+
version: { VERSION: "0.2.32", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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
455248
|
output_style: {
|
|
455238
455249
|
name: outputStyleName
|
|
455239
455250
|
},
|
|
@@ -466645,7 +466656,7 @@ async function submitTranscriptShare(messages, trigger, appearanceId) {
|
|
|
466645
466656
|
} catch {}
|
|
466646
466657
|
const data = {
|
|
466647
466658
|
trigger,
|
|
466648
|
-
version: { VERSION: "0.2.
|
|
466659
|
+
version: { VERSION: "0.2.32", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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
466660
|
platform: process.platform,
|
|
466650
466661
|
transcript,
|
|
466651
466662
|
subagentTranscripts: Object.keys(subagentTranscripts).length > 0 ? subagentTranscripts : undefined,
|
|
@@ -479669,7 +479680,7 @@ function completeOnboarding() {
|
|
|
479669
479680
|
saveGlobalConfig((current) => ({
|
|
479670
479681
|
...current,
|
|
479671
479682
|
hasCompletedOnboarding: true,
|
|
479672
|
-
lastOnboardingVersion: { VERSION: "0.2.
|
|
479683
|
+
lastOnboardingVersion: { VERSION: "0.2.32", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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
479684
|
}));
|
|
479674
479685
|
}
|
|
479675
479686
|
function showDialog(root2, renderer) {
|
|
@@ -490528,7 +490539,7 @@ async function startMCPServer(cwd3, debug3, verbose) {
|
|
|
490528
490539
|
setCwd(cwd3);
|
|
490529
490540
|
const server2 = new Server({
|
|
490530
490541
|
name: "theus/tengu",
|
|
490531
|
-
version: { VERSION: "0.2.
|
|
490542
|
+
version: { VERSION: "0.2.32", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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
490543
|
}, {
|
|
490533
490544
|
capabilities: {
|
|
490534
490545
|
tools: {}
|
|
@@ -491970,7 +491981,7 @@ async function setupTokenHandler(root2) {
|
|
|
491970
491981
|
gap: 1,
|
|
491971
491982
|
children: [
|
|
491972
491983
|
/* @__PURE__ */ jsx_runtime489.jsx(TheusBanner, {
|
|
491973
|
-
version: { VERSION: "0.2.
|
|
491984
|
+
version: { VERSION: "0.2.32", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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
491985
|
}),
|
|
491975
491986
|
showAuthWarning && /* @__PURE__ */ jsx_runtime489.jsxs(ThemedBox_default, {
|
|
491976
491987
|
flexDirection: "column",
|
|
@@ -493439,7 +493450,7 @@ ${assistantAddendum}` : assistantAddendum;
|
|
|
493439
493450
|
}
|
|
493440
493451
|
}
|
|
493441
493452
|
logForDiagnosticsNoPII("info", "started", {
|
|
493442
|
-
version: { VERSION: "0.2.
|
|
493453
|
+
version: { VERSION: "0.2.32", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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
493454
|
is_native_binary: isInBundledMode()
|
|
493444
493455
|
});
|
|
493445
493456
|
registerCleanup(async () => {
|
|
@@ -494307,7 +494318,7 @@ Usage: theus --remote "your task description"`, () => gracefulShutdown(1));
|
|
|
494307
494318
|
pendingHookMessages
|
|
494308
494319
|
}, renderAndRun);
|
|
494309
494320
|
}
|
|
494310
|
-
}).version(`${{ VERSION: "0.2.
|
|
494321
|
+
}).version(`${{ VERSION: "0.2.32", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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
494322
|
program2.option("-w, --worktree [name]", "Crea un nuevo worktree de git para esta sesi\xF3n (opcionalmente indica un nombre)");
|
|
494312
494323
|
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
494324
|
if (canUserConfigureAdvisor()) {
|
|
@@ -494859,7 +494870,7 @@ if (false) {}
|
|
|
494859
494870
|
async function main2() {
|
|
494860
494871
|
const args = process.argv.slice(2);
|
|
494861
494872
|
if (args.length === 1 && (args[0] === "--version" || args[0] === "-v" || args[0] === "-V")) {
|
|
494862
|
-
console.log(`${{ VERSION: "0.2.
|
|
494873
|
+
console.log(`${{ VERSION: "0.2.32", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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
494874
|
return;
|
|
494864
494875
|
}
|
|
494865
494876
|
const {
|