theus-cli 0.2.46 → 0.2.47
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 +144 -122
- 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.47", BUILD_TIME: "1970-01-01T00:00:00.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.47", BUILD_TIME: "1970-01-01T00:00:00.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.47", BUILD_TIME: "1970-01-01T00:00:00.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.47", BUILD_TIME: "1970-01-01T00:00:00.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.47", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.47", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.47", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.47", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.47", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.47", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.47", BUILD_TIME: "1970-01-01T00:00:00.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.47", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.47", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.47", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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();
|
|
@@ -107814,7 +107814,7 @@ Complete the user's request by providing accurate, documentation-based guidance.
|
|
|
107814
107814
|
}
|
|
107815
107815
|
function getFeedbackGuideline() {
|
|
107816
107816
|
if (isUsing3PServices()) {
|
|
107817
|
-
return `- When you cannot find an answer or the feature doesn't exist, direct the user to ${{ VERSION: "0.2.
|
|
107817
|
+
return `- When you cannot find an answer or the feature doesn't exist, direct the user to ${{ VERSION: "0.2.47", BUILD_TIME: "1970-01-01T00:00:00.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}`;
|
|
107818
107818
|
}
|
|
107819
107819
|
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";
|
|
107820
107820
|
}
|
|
@@ -166523,7 +166523,7 @@ function getTelemetryAttributes() {
|
|
|
166523
166523
|
attributes["session.id"] = sessionId;
|
|
166524
166524
|
}
|
|
166525
166525
|
if (shouldIncludeAttribute("OTEL_METRICS_INCLUDE_VERSION")) {
|
|
166526
|
-
attributes["app.version"] = { VERSION: "0.2.
|
|
166526
|
+
attributes["app.version"] = { VERSION: "0.2.47", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION;
|
|
166527
166527
|
}
|
|
166528
166528
|
const oauthAccount = getOauthAccountInfo();
|
|
166529
166529
|
if (oauthAccount) {
|
|
@@ -202608,7 +202608,7 @@ function getInstallationEnv() {
|
|
|
202608
202608
|
return;
|
|
202609
202609
|
}
|
|
202610
202610
|
function getTheusCodeVersion() {
|
|
202611
|
-
return { VERSION: "0.2.
|
|
202611
|
+
return { VERSION: "0.2.47", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION;
|
|
202612
202612
|
}
|
|
202613
202613
|
async function getInstalledVSCodeExtensionVersion(command) {
|
|
202614
202614
|
const { stdout } = await execFileNoThrow(command, ["--list-extensions", "--show-versions"], {
|
|
@@ -204126,7 +204126,7 @@ async function getMcpHeadersFromHelper(serverName, config2) {
|
|
|
204126
204126
|
if ("scope" in config2 && isMcpServerFromProjectOrLocalSettings(config2) && !getIsNonInteractiveSession()) {
|
|
204127
204127
|
const hasTrust = checkHasTrustDialogAccepted();
|
|
204128
204128
|
if (!hasTrust) {
|
|
204129
|
-
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.
|
|
204129
|
+
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.47", BUILD_TIME: "1970-01-01T00:00:00.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}.`);
|
|
204130
204130
|
logAntError("MCP headersHelper invoked before trust check", error40);
|
|
204131
204131
|
logEvent("tengu_mcp_headersHelper_missing_trust", {});
|
|
204132
204132
|
return null;
|
|
@@ -205336,7 +205336,7 @@ async function setupSdkMcpClients(sdkMcpConfigs, sendMcpMessage) {
|
|
|
205336
205336
|
const client2 = new Client({
|
|
205337
205337
|
name: "theus-code",
|
|
205338
205338
|
title: "Theus",
|
|
205339
|
-
version: { VERSION: "0.2.
|
|
205339
|
+
version: { VERSION: "0.2.47", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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",
|
|
205340
205340
|
description: "Theus's agentic coding tool",
|
|
205341
205341
|
websiteUrl: PRODUCT_URL
|
|
205342
205342
|
}, {
|
|
@@ -205690,7 +205690,7 @@ var init_client5 = __esm(() => {
|
|
|
205690
205690
|
const client2 = new Client({
|
|
205691
205691
|
name: "theus-code",
|
|
205692
205692
|
title: "Theus",
|
|
205693
|
-
version: { VERSION: "0.2.
|
|
205693
|
+
version: { VERSION: "0.2.47", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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",
|
|
205694
205694
|
description: "Theus's agentic coding tool",
|
|
205695
205695
|
websiteUrl: PRODUCT_URL
|
|
205696
205696
|
}, {
|
|
@@ -216268,7 +216268,7 @@ async function initializeBetaTracing(resource) {
|
|
|
216268
216268
|
});
|
|
216269
216269
|
logs.setGlobalLoggerProvider(loggerProvider);
|
|
216270
216270
|
setLoggerProvider(loggerProvider);
|
|
216271
|
-
const eventLogger = logs.getLogger("com.theus.theus_code.events", { VERSION: "0.2.
|
|
216271
|
+
const eventLogger = logs.getLogger("com.theus.theus_code.events", { VERSION: "0.2.47", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION);
|
|
216272
216272
|
setEventLogger(eventLogger);
|
|
216273
216273
|
process.on("beforeExit", async () => {
|
|
216274
216274
|
await loggerProvider?.forceFlush();
|
|
@@ -216308,7 +216308,7 @@ async function initializeTelemetry() {
|
|
|
216308
216308
|
const platform4 = getPlatform();
|
|
216309
216309
|
const baseAttributes = {
|
|
216310
216310
|
[ATTR_SERVICE_NAME]: "theus-code",
|
|
216311
|
-
[ATTR_SERVICE_VERSION]: { VERSION: "0.2.
|
|
216311
|
+
[ATTR_SERVICE_VERSION]: { VERSION: "0.2.47", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
|
|
216312
216312
|
};
|
|
216313
216313
|
if (platform4 === "wsl") {
|
|
216314
216314
|
const wslVersion = getWslVersion();
|
|
@@ -216353,7 +216353,7 @@ async function initializeTelemetry() {
|
|
|
216353
216353
|
} catch {}
|
|
216354
216354
|
};
|
|
216355
216355
|
registerCleanup(shutdownTelemetry2);
|
|
216356
|
-
return meterProvider2.getMeter("com.theus.theus_code", { VERSION: "0.2.
|
|
216356
|
+
return meterProvider2.getMeter("com.theus.theus_code", { VERSION: "0.2.47", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION);
|
|
216357
216357
|
}
|
|
216358
216358
|
const meterProvider = new MeterProvider({
|
|
216359
216359
|
resource,
|
|
@@ -216373,7 +216373,7 @@ async function initializeTelemetry() {
|
|
|
216373
216373
|
});
|
|
216374
216374
|
logs.setGlobalLoggerProvider(loggerProvider);
|
|
216375
216375
|
setLoggerProvider(loggerProvider);
|
|
216376
|
-
const eventLogger = logs.getLogger("com.theus.theus_code.events", { VERSION: "0.2.
|
|
216376
|
+
const eventLogger = logs.getLogger("com.theus.theus_code.events", { VERSION: "0.2.47", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION);
|
|
216377
216377
|
setEventLogger(eventLogger);
|
|
216378
216378
|
logForDebugging("[3P telemetry] Event logger set successfully");
|
|
216379
216379
|
process.on("beforeExit", async () => {
|
|
@@ -216435,7 +216435,7 @@ Current timeout: ${timeoutMs}ms
|
|
|
216435
216435
|
}
|
|
216436
216436
|
};
|
|
216437
216437
|
registerCleanup(shutdownTelemetry);
|
|
216438
|
-
return meterProvider.getMeter("com.theus.theus_code", { VERSION: "0.2.
|
|
216438
|
+
return meterProvider.getMeter("com.theus.theus_code", { VERSION: "0.2.47", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION);
|
|
216439
216439
|
}
|
|
216440
216440
|
async function flushTelemetry() {
|
|
216441
216441
|
const meterProvider = getMeterProvider();
|
|
@@ -216975,7 +216975,7 @@ async function installOrUpdateTheusPackage(channel2, specificVersion) {
|
|
|
216975
216975
|
return "install_failed";
|
|
216976
216976
|
}
|
|
216977
216977
|
const versionSpec = specificVersion ? specificVersion : channel2 === "stable" ? "stable" : "latest";
|
|
216978
|
-
const result = await execFileNoThrowWithCwd("npm", ["install", `${{ VERSION: "0.2.
|
|
216978
|
+
const result = await execFileNoThrowWithCwd("npm", ["install", `${{ VERSION: "0.2.47", BUILD_TIME: "1970-01-01T00:00:00.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 });
|
|
216979
216979
|
if (result.code !== 0) {
|
|
216980
216980
|
const error40 = new Error(`Failed to install Theus CLI package: ${result.stderr}`);
|
|
216981
216981
|
logError2(error40);
|
|
@@ -217121,9 +217121,9 @@ async function assertMinVersion() {
|
|
|
217121
217121
|
if (false) {}
|
|
217122
217122
|
try {
|
|
217123
217123
|
const versionConfig = await getDynamicConfig_BLOCKS_ON_INIT("tengu_version_config", { minVersion: "0.0.0" });
|
|
217124
|
-
if (versionConfig.minVersion && lt({ VERSION: "0.2.
|
|
217124
|
+
if (versionConfig.minVersion && lt({ VERSION: "0.2.47", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
|
|
217125
217125
|
console.error(`
|
|
217126
|
-
It looks like your version of Theus (${{ VERSION: "0.2.
|
|
217126
|
+
It looks like your version of Theus (${{ VERSION: "0.2.47", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.
|
|
217127
217127
|
A newer version (${versionConfig.minVersion} or higher) is required to continue.
|
|
217128
217128
|
|
|
217129
217129
|
To update, please run:
|
|
@@ -217264,7 +217264,7 @@ async function getInstallationPrefix() {
|
|
|
217264
217264
|
return prefixResult.stdout.trim();
|
|
217265
217265
|
}
|
|
217266
217266
|
function getGlobalInstallPackageManager() {
|
|
217267
|
-
if ({ VERSION: "0.2.
|
|
217267
|
+
if ({ VERSION: "0.2.47", BUILD_TIME: "1970-01-01T00:00:00.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") {
|
|
217268
217268
|
return "npm";
|
|
217269
217269
|
}
|
|
217270
217270
|
return env3.isRunningWithBun() ? "bun" : "npm";
|
|
@@ -217289,7 +217289,7 @@ async function checkGlobalInstallPermissions() {
|
|
|
217289
217289
|
}
|
|
217290
217290
|
async function getLatestVersion(channel2) {
|
|
217291
217291
|
const npmTag = channel2 === "stable" ? "stable" : "latest";
|
|
217292
|
-
const result = await execFileNoThrowWithCwd("npm", ["view", `${{ VERSION: "0.2.
|
|
217292
|
+
const result = await execFileNoThrowWithCwd("npm", ["view", `${{ VERSION: "0.2.47", BUILD_TIME: "1970-01-01T00:00:00.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() });
|
|
217293
217293
|
if (result.code !== 0) {
|
|
217294
217294
|
logForDebugging(`npm view failed with code ${result.code}`);
|
|
217295
217295
|
if (result.stderr) {
|
|
@@ -217305,7 +217305,7 @@ async function getLatestVersion(channel2) {
|
|
|
217305
217305
|
return result.stdout.trim();
|
|
217306
217306
|
}
|
|
217307
217307
|
async function getNpmDistTags() {
|
|
217308
|
-
const result = await execFileNoThrowWithCwd("npm", ["view", { VERSION: "0.2.
|
|
217308
|
+
const result = await execFileNoThrowWithCwd("npm", ["view", { VERSION: "0.2.47", BUILD_TIME: "1970-01-01T00:00:00.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() });
|
|
217309
217309
|
if (result.code !== 0) {
|
|
217310
217310
|
logForDebugging(`npm view dist-tags failed with code ${result.code}`);
|
|
217311
217311
|
return { latest: null, stable: null };
|
|
@@ -217345,7 +217345,7 @@ async function installGlobalPackage(specificVersion) {
|
|
|
217345
217345
|
logError2(new AutoUpdaterError("Another process is currently installing an update"));
|
|
217346
217346
|
logEvent("tengu_auto_updater_lock_contention", {
|
|
217347
217347
|
pid: process.pid,
|
|
217348
|
-
currentVersion: { VERSION: "0.2.
|
|
217348
|
+
currentVersion: { VERSION: "0.2.47", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
|
|
217349
217349
|
});
|
|
217350
217350
|
return "in_progress";
|
|
217351
217351
|
}
|
|
@@ -217354,7 +217354,7 @@ async function installGlobalPackage(specificVersion) {
|
|
|
217354
217354
|
if (!env3.isRunningWithBun() && env3.isNpmFromWindowsPath()) {
|
|
217355
217355
|
logError2(new Error("Windows NPM detected in WSL environment"));
|
|
217356
217356
|
logEvent("tengu_auto_updater_windows_npm_in_wsl", {
|
|
217357
|
-
currentVersion: { VERSION: "0.2.
|
|
217357
|
+
currentVersion: { VERSION: "0.2.47", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
|
|
217358
217358
|
});
|
|
217359
217359
|
console.error(`
|
|
217360
217360
|
Error: Windows NPM detected in WSL
|
|
@@ -217373,7 +217373,7 @@ To fix this issue:
|
|
|
217373
217373
|
if (!hasPermissions) {
|
|
217374
217374
|
return "no_permissions";
|
|
217375
217375
|
}
|
|
217376
|
-
const packageSpec = specificVersion ? `${{ VERSION: "0.2.
|
|
217376
|
+
const packageSpec = specificVersion ? `${{ VERSION: "0.2.47", BUILD_TIME: "1970-01-01T00:00:00.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.47", BUILD_TIME: "1970-01-01T00:00:00.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;
|
|
217377
217377
|
const packageManager = getGlobalInstallPackageManager();
|
|
217378
217378
|
const installResult = await execFileNoThrowWithCwd(packageManager, ["install", "-g", packageSpec], { cwd: homedir18() });
|
|
217379
217379
|
if (installResult.code !== 0) {
|
|
@@ -217701,8 +217701,8 @@ async function detectMultipleInstallations() {
|
|
|
217701
217701
|
installations.push({ type: "npm-local", path: localPath });
|
|
217702
217702
|
}
|
|
217703
217703
|
const packagesToCheck = ["@theus-ai/theus-code"];
|
|
217704
|
-
if ({ VERSION: "0.2.
|
|
217705
|
-
packagesToCheck.push({ VERSION: "0.2.
|
|
217704
|
+
if ({ VERSION: "0.2.47", BUILD_TIME: "1970-01-01T00:00:00.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.47", BUILD_TIME: "1970-01-01T00:00:00.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") {
|
|
217705
|
+
packagesToCheck.push({ VERSION: "0.2.47", BUILD_TIME: "1970-01-01T00:00:00.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);
|
|
217706
217706
|
}
|
|
217707
217707
|
const npmResult = await execFileNoThrow("npm", [
|
|
217708
217708
|
"-g",
|
|
@@ -217885,7 +217885,7 @@ function detectLinuxGlobPatternWarnings() {
|
|
|
217885
217885
|
}
|
|
217886
217886
|
async function getDoctorDiagnostic() {
|
|
217887
217887
|
const installationType = await getCurrentInstallationType();
|
|
217888
|
-
const version2 = { VERSION: "0.2.
|
|
217888
|
+
const version2 = { VERSION: "0.2.47", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.47", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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";
|
|
217889
217889
|
const installationPath = await getInstallationPath();
|
|
217890
217890
|
const invokedBinary = getInvokedBinary();
|
|
217891
217891
|
const multipleInstallations = await detectMultipleInstallations();
|
|
@@ -217897,8 +217897,8 @@ async function getDoctorDiagnostic() {
|
|
|
217897
217897
|
for (const install of npmInstalls) {
|
|
217898
217898
|
if (install.type === "npm-global") {
|
|
217899
217899
|
let uninstallCmd = "npm -g uninstall @theus-ai/theus-code";
|
|
217900
|
-
if ({ VERSION: "0.2.
|
|
217901
|
-
uninstallCmd += ` && npm -g uninstall ${{ VERSION: "0.2.
|
|
217900
|
+
if ({ VERSION: "0.2.47", BUILD_TIME: "1970-01-01T00:00:00.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.47", BUILD_TIME: "1970-01-01T00:00:00.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") {
|
|
217901
|
+
uninstallCmd += ` && npm -g uninstall ${{ VERSION: "0.2.47", BUILD_TIME: "1970-01-01T00:00:00.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}`;
|
|
217902
217902
|
}
|
|
217903
217903
|
warnings.push({
|
|
217904
217904
|
issue: `Leftover npm global installation at ${install.path}`,
|
|
@@ -218010,7 +218010,7 @@ async function getLatestVersionFromArtifactory(tag2 = "latest") {
|
|
|
218010
218010
|
const startTime2 = Date.now();
|
|
218011
218011
|
const { stdout, code, stderr } = await execFileNoThrowWithCwd("npm", [
|
|
218012
218012
|
"view",
|
|
218013
|
-
`${{ VERSION: "0.2.
|
|
218013
|
+
`${{ VERSION: "0.2.47", BUILD_TIME: "1970-01-01T00:00:00.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}`,
|
|
218014
218014
|
"version",
|
|
218015
218015
|
"--prefer-online",
|
|
218016
218016
|
"--registry",
|
|
@@ -218034,7 +218034,7 @@ async function getLatestVersionFromArtifactory(tag2 = "latest") {
|
|
|
218034
218034
|
latency_ms: latencyMs,
|
|
218035
218035
|
source_npm: true
|
|
218036
218036
|
});
|
|
218037
|
-
logForDebugging(`npm view ${{ VERSION: "0.2.
|
|
218037
|
+
logForDebugging(`npm view ${{ VERSION: "0.2.47", BUILD_TIME: "1970-01-01T00:00:00.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}`);
|
|
218038
218038
|
const latestVersion = stdout.trim();
|
|
218039
218039
|
return latestVersion;
|
|
218040
218040
|
}
|
|
@@ -218090,7 +218090,7 @@ async function downloadVersionFromArtifactory(version2, stagingPath) {
|
|
|
218090
218090
|
const fs3 = getFsImplementation();
|
|
218091
218091
|
await fs3.rm(stagingPath, { recursive: true, force: true });
|
|
218092
218092
|
const platform4 = getPlatform2();
|
|
218093
|
-
const platformPackageName = `${{ VERSION: "0.2.
|
|
218093
|
+
const platformPackageName = `${{ VERSION: "0.2.47", BUILD_TIME: "1970-01-01T00:00:00.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}`;
|
|
218094
218094
|
logForDebugging(`Fetching integrity hash for ${platformPackageName}@${version2}`);
|
|
218095
218095
|
const {
|
|
218096
218096
|
stdout: integrityOutput,
|
|
@@ -218119,7 +218119,7 @@ async function downloadVersionFromArtifactory(version2, stagingPath) {
|
|
|
218119
218119
|
name: "theus-native-installer",
|
|
218120
218120
|
version: "0.0.1",
|
|
218121
218121
|
dependencies: {
|
|
218122
|
-
[{ VERSION: "0.2.
|
|
218122
|
+
[{ VERSION: "0.2.47", BUILD_TIME: "1970-01-01T00:00:00.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
|
|
218123
218123
|
}
|
|
218124
218124
|
};
|
|
218125
218125
|
const packageLock = {
|
|
@@ -218132,10 +218132,10 @@ async function downloadVersionFromArtifactory(version2, stagingPath) {
|
|
|
218132
218132
|
name: "theus-native-installer",
|
|
218133
218133
|
version: "0.0.1",
|
|
218134
218134
|
dependencies: {
|
|
218135
|
-
[{ VERSION: "0.2.
|
|
218135
|
+
[{ VERSION: "0.2.47", BUILD_TIME: "1970-01-01T00:00:00.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
|
|
218136
218136
|
}
|
|
218137
218137
|
},
|
|
218138
|
-
[`node_modules/${{ VERSION: "0.2.
|
|
218138
|
+
[`node_modules/${{ VERSION: "0.2.47", BUILD_TIME: "1970-01-01T00:00:00.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}`]: {
|
|
218139
218139
|
version: version2,
|
|
218140
218140
|
optionalDependencies: {
|
|
218141
218141
|
[platformPackageName]: version2
|
|
@@ -218157,7 +218157,7 @@ async function downloadVersionFromArtifactory(version2, stagingPath) {
|
|
|
218157
218157
|
if (result.code !== 0) {
|
|
218158
218158
|
throw new Error(`npm ci failed with code ${result.code}: ${result.stderr}`);
|
|
218159
218159
|
}
|
|
218160
|
-
logForDebugging(`Successfully downloaded and verified ${{ VERSION: "0.2.
|
|
218160
|
+
logForDebugging(`Successfully downloaded and verified ${{ VERSION: "0.2.47", BUILD_TIME: "1970-01-01T00:00:00.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}`);
|
|
218161
218161
|
}
|
|
218162
218162
|
function getStallTimeoutMs() {
|
|
218163
218163
|
return Number(process.env.THEUS_CODE_STALL_TIMEOUT_MS_FOR_TESTING) || DEFAULT_STALL_TIMEOUT_MS;
|
|
@@ -218820,8 +218820,8 @@ async function updateLatest(channelOrVersion, forceReinstall = false) {
|
|
|
218820
218820
|
const maxVersion = await getMaxVersion();
|
|
218821
218821
|
if (maxVersion && gt(version2, maxVersion)) {
|
|
218822
218822
|
logForDebugging(`Native installer: maxVersion ${maxVersion} is set, capping update from ${version2} to ${maxVersion}`);
|
|
218823
|
-
if (gte({ VERSION: "0.2.
|
|
218824
|
-
logForDebugging(`Native installer: current version ${{ VERSION: "0.2.
|
|
218823
|
+
if (gte({ VERSION: "0.2.47", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
|
|
218824
|
+
logForDebugging(`Native installer: current version ${{ VERSION: "0.2.47", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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`);
|
|
218825
218825
|
logEvent("tengu_native_update_skipped_max_version", {
|
|
218826
218826
|
latency_ms: Date.now() - startTime2,
|
|
218827
218827
|
max_version: maxVersion,
|
|
@@ -218832,7 +218832,7 @@ async function updateLatest(channelOrVersion, forceReinstall = false) {
|
|
|
218832
218832
|
version2 = maxVersion;
|
|
218833
218833
|
}
|
|
218834
218834
|
}
|
|
218835
|
-
if (!forceReinstall && version2 === { VERSION: "0.2.
|
|
218835
|
+
if (!forceReinstall && version2 === { VERSION: "0.2.47", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
|
|
218836
218836
|
logForDebugging(`Found ${version2} at ${executablePath}, skipping install`);
|
|
218837
218837
|
logEvent("tengu_native_update_complete", {
|
|
218838
218838
|
latency_ms: Date.now() - startTime2,
|
|
@@ -219582,8 +219582,8 @@ async function cleanupNpmInstallations() {
|
|
|
219582
219582
|
} else if (codePackageResult.error) {
|
|
219583
219583
|
errors4.push(codePackageResult.error);
|
|
219584
219584
|
}
|
|
219585
|
-
if ({ VERSION: "0.2.
|
|
219586
|
-
const macroPackageResult = await attemptNpmUninstall({ VERSION: "0.2.
|
|
219585
|
+
if ({ VERSION: "0.2.47", BUILD_TIME: "1970-01-01T00:00:00.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.47", BUILD_TIME: "1970-01-01T00:00:00.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") {
|
|
219586
|
+
const macroPackageResult = await attemptNpmUninstall({ VERSION: "0.2.47", BUILD_TIME: "1970-01-01T00:00:00.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);
|
|
219587
219587
|
if (macroPackageResult.success) {
|
|
219588
219588
|
removed++;
|
|
219589
219589
|
if (macroPackageResult.warning) {
|
|
@@ -230069,6 +230069,15 @@ var init_ConsoleOAuthFlow = __esm(() => {
|
|
|
230069
230069
|
var NOVEDADES;
|
|
230070
230070
|
var init_data = __esm(() => {
|
|
230071
230071
|
NOVEDADES = [
|
|
230072
|
+
{
|
|
230073
|
+
version: "v0.2.47",
|
|
230074
|
+
fecha: "2026-07-24",
|
|
230075
|
+
titulo: "Tu plan real al iniciar sesi\xF3n",
|
|
230076
|
+
puntos: [
|
|
230077
|
+
"Al iniciar sesi\xF3n, Theus te muestra el plan que de verdad tienes contratado: Free, Pro Code, Studio AI, Max Agent u Omnipresente.",
|
|
230078
|
+
"Antes agrupaba todos los planes de pago bajo la etiqueta \xABpro\xBB, as\xED que quien estaba en Omnipresente ve\xEDa anunciado un plan intermedio. El dato correcto siempre lleg\xF3 del servidor; el problema era que no se le\xEDa."
|
|
230079
|
+
]
|
|
230080
|
+
},
|
|
230072
230081
|
{
|
|
230073
230082
|
version: "v0.2.46",
|
|
230074
230083
|
fecha: "2026-07-24",
|
|
@@ -304852,9 +304861,9 @@ function getTheusEnvMetadata() {
|
|
|
304852
304861
|
};
|
|
304853
304862
|
}
|
|
304854
304863
|
function getBuildAgeMinutes() {
|
|
304855
|
-
if (!{ VERSION: "0.2.
|
|
304864
|
+
if (!{ VERSION: "0.2.47", BUILD_TIME: "1970-01-01T00:00:00.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)
|
|
304856
304865
|
return;
|
|
304857
|
-
const buildTime = new Date({ VERSION: "0.2.
|
|
304866
|
+
const buildTime = new Date({ VERSION: "0.2.47", BUILD_TIME: "1970-01-01T00:00:00.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();
|
|
304858
304867
|
if (isNaN(buildTime))
|
|
304859
304868
|
return;
|
|
304860
304869
|
return Math.floor((Date.now() - buildTime) / 60000);
|
|
@@ -321502,7 +321511,7 @@ function getAssistantMessageFromError(error40, model, options2) {
|
|
|
321502
321511
|
if (process.env.USER_TYPE === "ant") {
|
|
321503
321512
|
const baseMessage = `API Error: 400 ${error40.message}
|
|
321504
321513
|
|
|
321505
|
-
Run /share and post the JSON file to ${{ VERSION: "0.2.
|
|
321514
|
+
Run /share and post the JSON file to ${{ VERSION: "0.2.47", BUILD_TIME: "1970-01-01T00:00:00.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}.`;
|
|
321506
321515
|
const rewindInstruction = getIsNonInteractiveSession() ? "" : " Then, use /rewind to recover the conversation.";
|
|
321507
321516
|
return createAssistantAPIErrorMessage({
|
|
321508
321517
|
content: baseMessage + rewindInstruction,
|
|
@@ -321538,7 +321547,7 @@ Run /share and post the JSON file to ${{ VERSION: "0.2.46", BUILD_TIME: "1970-01
|
|
|
321538
321547
|
if (process.env.USER_TYPE === "ant" && !process.env.THEUS_MODEL && error40 instanceof Error && error40.message.toLowerCase().includes("invalid model name")) {
|
|
321539
321548
|
const orgId = getOauthAccountInfo()?.organizationUuid;
|
|
321540
321549
|
const baseMsg = `[THEUS-INTERNAL] Your org isn't gated into the \`${model}\` model. Either run \`theus\` with \`THEUS_MODEL=${getDefaultMainLoopModelSetting()}\``;
|
|
321541
|
-
const msg = orgId ? `${baseMsg} or share your orgId (${orgId}) in ${{ VERSION: "0.2.
|
|
321550
|
+
const msg = orgId ? `${baseMsg} or share your orgId (${orgId}) in ${{ VERSION: "0.2.47", BUILD_TIME: "1970-01-01T00:00:00.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.47", BUILD_TIME: "1970-01-01T00:00:00.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.`;
|
|
321542
321551
|
return createAssistantAPIErrorMessage({
|
|
321543
321552
|
content: msg,
|
|
321544
321553
|
error: "invalid_request"
|
|
@@ -331711,7 +331720,7 @@ function buildPrimarySection() {
|
|
|
331711
331720
|
});
|
|
331712
331721
|
return [{
|
|
331713
331722
|
label: "Version",
|
|
331714
|
-
value: { VERSION: "0.2.
|
|
331723
|
+
value: { VERSION: "0.2.47", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
|
|
331715
331724
|
}, {
|
|
331716
331725
|
label: "Session name",
|
|
331717
331726
|
value: nameValue
|
|
@@ -335527,7 +335536,7 @@ function Config({
|
|
|
335527
335536
|
}
|
|
335528
335537
|
})
|
|
335529
335538
|
}) : showSubmenu === "ChannelDowngrade" ? /* @__PURE__ */ jsx_runtime188.jsx(ChannelDowngradeDialog, {
|
|
335530
|
-
currentVersion: { VERSION: "0.2.
|
|
335539
|
+
currentVersion: { VERSION: "0.2.47", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
|
|
335531
335540
|
onChoice: (choice) => {
|
|
335532
335541
|
setShowSubmenu(null);
|
|
335533
335542
|
setTabsHidden(false);
|
|
@@ -335539,7 +335548,7 @@ function Config({
|
|
|
335539
335548
|
autoUpdatesChannel: "stable"
|
|
335540
335549
|
};
|
|
335541
335550
|
if (choice === "stay") {
|
|
335542
|
-
newSettings.minimumVersion = { VERSION: "0.2.
|
|
335551
|
+
newSettings.minimumVersion = { VERSION: "0.2.47", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION;
|
|
335543
335552
|
}
|
|
335544
335553
|
updateSettingsForSource("userSettings", newSettings);
|
|
335545
335554
|
setSettingsData((prev_27) => ({
|
|
@@ -343573,7 +343582,7 @@ function HelpV2(t0) {
|
|
|
343573
343582
|
let t6;
|
|
343574
343583
|
if ($2[31] !== tabs) {
|
|
343575
343584
|
t6 = /* @__PURE__ */ jsx_runtime215.jsx(Tabs, {
|
|
343576
|
-
title: `Theus v${{ VERSION: "0.2.
|
|
343585
|
+
title: `Theus v${{ VERSION: "0.2.47", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION}`,
|
|
343577
343586
|
color: "professionalBlue",
|
|
343578
343587
|
defaultTab: "general",
|
|
343579
343588
|
children: tabs
|
|
@@ -345455,6 +345464,9 @@ async function exchangeCodeForTheusSession({
|
|
|
345455
345464
|
const billingType = stringField(organization, "billing_type");
|
|
345456
345465
|
if (billingType)
|
|
345457
345466
|
profileInfo.billingType = billingType;
|
|
345467
|
+
const plan = stringField(organization, "plan");
|
|
345468
|
+
if (plan)
|
|
345469
|
+
profileInfo.plan = plan;
|
|
345458
345470
|
const accountCreatedAt = stringField(account, "created_at");
|
|
345459
345471
|
if (accountCreatedAt)
|
|
345460
345472
|
profileInfo.accountCreatedAt = accountCreatedAt;
|
|
@@ -345471,6 +345483,9 @@ async function exchangeCodeForTheusSession({
|
|
|
345471
345483
|
};
|
|
345472
345484
|
}
|
|
345473
345485
|
function planLabelFromProfile(profile) {
|
|
345486
|
+
const real = (profile?.plan ?? "").trim();
|
|
345487
|
+
if (real)
|
|
345488
|
+
return NOMBRE_DE_PLAN[real] ?? real;
|
|
345474
345489
|
switch (profile?.organizationType) {
|
|
345475
345490
|
case "theus_max":
|
|
345476
345491
|
return "max";
|
|
@@ -345777,7 +345792,7 @@ function escapeHtml2(value) {
|
|
|
345777
345792
|
}
|
|
345778
345793
|
});
|
|
345779
345794
|
}
|
|
345780
|
-
var DEFAULT_WEB_URL = "https://theus.pe", CLIENT_ID = "9d1c250a-e61b-44d9-88ed-5944d1962f5e", OAUTH_SCOPE;
|
|
345795
|
+
var DEFAULT_WEB_URL = "https://theus.pe", CLIENT_ID = "9d1c250a-e61b-44d9-88ed-5944d1962f5e", OAUTH_SCOPE, NOMBRE_DE_PLAN;
|
|
345781
345796
|
var init_theusWebLogin = __esm(() => {
|
|
345782
345797
|
init_browser();
|
|
345783
345798
|
init_envUtils();
|
|
@@ -345792,6 +345807,13 @@ var init_theusWebLogin = __esm(() => {
|
|
|
345792
345807
|
"user:mcp_servers",
|
|
345793
345808
|
"user:file_upload"
|
|
345794
345809
|
].join(" ");
|
|
345810
|
+
NOMBRE_DE_PLAN = {
|
|
345811
|
+
free: "Free",
|
|
345812
|
+
"pro-code": "Pro Code",
|
|
345813
|
+
"studio-ai": "Studio AI",
|
|
345814
|
+
"max-agent": "Max Agent",
|
|
345815
|
+
omnipresente: "Omnipresente"
|
|
345816
|
+
};
|
|
345795
345817
|
});
|
|
345796
345818
|
|
|
345797
345819
|
// commands/login/theus-login.ts
|
|
@@ -361684,7 +361706,7 @@ function Onboarding({
|
|
|
361684
361706
|
flexDirection: "column",
|
|
361685
361707
|
children: [
|
|
361686
361708
|
/* @__PURE__ */ jsx_runtime248.jsx(TheusBanner, {
|
|
361687
|
-
version: { VERSION: "0.2.
|
|
361709
|
+
version: { VERSION: "0.2.47", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
|
|
361688
361710
|
}),
|
|
361689
361711
|
/* @__PURE__ */ jsx_runtime248.jsxs(ThemedBox_default, {
|
|
361690
361712
|
flexDirection: "column",
|
|
@@ -362185,9 +362207,9 @@ function getAllReleaseNotes(changelogContent = getStoredChangelogFromMemory()) {
|
|
|
362185
362207
|
return [];
|
|
362186
362208
|
}
|
|
362187
362209
|
}
|
|
362188
|
-
async function checkForReleaseNotes(lastSeenVersion, currentVersion = { VERSION: "0.2.
|
|
362210
|
+
async function checkForReleaseNotes(lastSeenVersion, currentVersion = { VERSION: "0.2.47", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION) {
|
|
362189
362211
|
if (process.env.USER_TYPE === "ant") {
|
|
362190
|
-
const changelog = { VERSION: "0.2.
|
|
362212
|
+
const changelog = { VERSION: "0.2.47", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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;
|
|
362191
362213
|
if (changelog) {
|
|
362192
362214
|
const commits = changelog.trim().split(`
|
|
362193
362215
|
`).filter(Boolean);
|
|
@@ -366389,7 +366411,7 @@ var init_Messages = __esm(() => {
|
|
|
366389
366411
|
let t1;
|
|
366390
366412
|
if ($2[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
366391
366413
|
t1 = /* @__PURE__ */ jsx_runtime260.jsx(TheusSessionHeader, {
|
|
366392
|
-
version: { VERSION: "0.2.
|
|
366414
|
+
version: { VERSION: "0.2.47", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
|
|
366393
366415
|
});
|
|
366394
366416
|
$2[0] = t1;
|
|
366395
366417
|
} else {
|
|
@@ -394861,7 +394883,7 @@ async function captureMemoryDiagnostics(trigger, dumpNumber = 0) {
|
|
|
394861
394883
|
smapsRollup,
|
|
394862
394884
|
platform: process.platform,
|
|
394863
394885
|
nodeVersion: process.version,
|
|
394864
|
-
ccVersion: { VERSION: "0.2.
|
|
394886
|
+
ccVersion: { VERSION: "0.2.47", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
|
|
394865
394887
|
};
|
|
394866
394888
|
}
|
|
394867
394889
|
async function performHeapDump(trigger = "manual", dumpNumber = 0) {
|
|
@@ -395447,7 +395469,7 @@ var init_bridge_kick = __esm(() => {
|
|
|
395447
395469
|
var call58 = async () => {
|
|
395448
395470
|
return {
|
|
395449
395471
|
type: "text",
|
|
395450
|
-
value: { VERSION: "0.2.
|
|
395472
|
+
value: { VERSION: "0.2.47", BUILD_TIME: "1970-01-01T00:00:00.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.47", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.47", BUILD_TIME: "1970-01-01T00:00:00.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.47", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
|
|
395451
395473
|
};
|
|
395452
395474
|
}, version2, version_default;
|
|
395453
395475
|
var init_version = __esm(() => {
|
|
@@ -399889,13 +399911,13 @@ async function updateReleaseBundle() {
|
|
|
399889
399911
|
await gracefulShutdown(1);
|
|
399890
399912
|
return;
|
|
399891
399913
|
}
|
|
399892
|
-
if (gte({ VERSION: "0.2.
|
|
399893
|
-
writeToStdout(source_default.green(`Theus is up to date (${{ VERSION: "0.2.
|
|
399914
|
+
if (gte({ VERSION: "0.2.47", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
|
|
399915
|
+
writeToStdout(source_default.green(`Theus is up to date (${{ VERSION: "0.2.47", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION})`) + `
|
|
399894
399916
|
`);
|
|
399895
399917
|
await gracefulShutdown(0);
|
|
399896
399918
|
return;
|
|
399897
399919
|
}
|
|
399898
|
-
writeToStdout(`New version available: ${latest} (current: ${{ VERSION: "0.2.
|
|
399920
|
+
writeToStdout(`New version available: ${latest} (current: ${{ VERSION: "0.2.47", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION})
|
|
399899
399921
|
`);
|
|
399900
399922
|
writeToStdout(`Installing update from theus.pe/dl...
|
|
399901
399923
|
`);
|
|
@@ -399929,7 +399951,7 @@ async function updateReleaseBundle() {
|
|
|
399929
399951
|
return;
|
|
399930
399952
|
}
|
|
399931
399953
|
cpSync(staged, bundleDir, { recursive: true, force: true });
|
|
399932
|
-
writeToStdout(source_default.green(`Successfully updated from ${{ VERSION: "0.2.
|
|
399954
|
+
writeToStdout(source_default.green(`Successfully updated from ${{ VERSION: "0.2.47", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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}`) + `
|
|
399933
399955
|
`);
|
|
399934
399956
|
await regenerateCompletionCache();
|
|
399935
399957
|
} finally {
|
|
@@ -399942,7 +399964,7 @@ async function updateReleaseBundle() {
|
|
|
399942
399964
|
async function update() {
|
|
399943
399965
|
logEvent("tengu_update_check", {});
|
|
399944
399966
|
await updateNaupa();
|
|
399945
|
-
writeToStdout(`Current version: ${{ VERSION: "0.2.
|
|
399967
|
+
writeToStdout(`Current version: ${{ VERSION: "0.2.47", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION}
|
|
399946
399968
|
`);
|
|
399947
399969
|
const channel2 = getInitialSettings()?.autoUpdatesChannel ?? "latest";
|
|
399948
399970
|
writeToStdout(`Checking for updates to ${channel2} version...
|
|
@@ -400021,8 +400043,8 @@ async function update() {
|
|
|
400021
400043
|
writeToStdout(`Theus is managed by Homebrew.
|
|
400022
400044
|
`);
|
|
400023
400045
|
const latest = await getLatestVersion(channel2);
|
|
400024
|
-
if (latest && !gte({ VERSION: "0.2.
|
|
400025
|
-
writeToStdout(`Update available: ${{ VERSION: "0.2.
|
|
400046
|
+
if (latest && !gte({ VERSION: "0.2.47", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
|
|
400047
|
+
writeToStdout(`Update available: ${{ VERSION: "0.2.47", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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}
|
|
400026
400048
|
`);
|
|
400027
400049
|
writeToStdout(`
|
|
400028
400050
|
`);
|
|
@@ -400038,8 +400060,8 @@ async function update() {
|
|
|
400038
400060
|
writeToStdout(`Theus is managed by winget.
|
|
400039
400061
|
`);
|
|
400040
400062
|
const latest = await getLatestVersion(channel2);
|
|
400041
|
-
if (latest && !gte({ VERSION: "0.2.
|
|
400042
|
-
writeToStdout(`Update available: ${{ VERSION: "0.2.
|
|
400063
|
+
if (latest && !gte({ VERSION: "0.2.47", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
|
|
400064
|
+
writeToStdout(`Update available: ${{ VERSION: "0.2.47", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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}
|
|
400043
400065
|
`);
|
|
400044
400066
|
writeToStdout(`
|
|
400045
400067
|
`);
|
|
@@ -400055,8 +400077,8 @@ async function update() {
|
|
|
400055
400077
|
writeToStdout(`Theus is managed by apk.
|
|
400056
400078
|
`);
|
|
400057
400079
|
const latest = await getLatestVersion(channel2);
|
|
400058
|
-
if (latest && !gte({ VERSION: "0.2.
|
|
400059
|
-
writeToStdout(`Update available: ${{ VERSION: "0.2.
|
|
400080
|
+
if (latest && !gte({ VERSION: "0.2.47", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
|
|
400081
|
+
writeToStdout(`Update available: ${{ VERSION: "0.2.47", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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}
|
|
400060
400082
|
`);
|
|
400061
400083
|
writeToStdout(`
|
|
400062
400084
|
`);
|
|
@@ -400121,11 +400143,11 @@ async function update() {
|
|
|
400121
400143
|
`);
|
|
400122
400144
|
await gracefulShutdown(1);
|
|
400123
400145
|
}
|
|
400124
|
-
if (result.latestVersion === { VERSION: "0.2.
|
|
400125
|
-
writeToStdout(source_default.green(`Theus is up to date (${{ VERSION: "0.2.
|
|
400146
|
+
if (result.latestVersion === { VERSION: "0.2.47", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION) {
|
|
400147
|
+
writeToStdout(source_default.green(`Theus is up to date (${{ VERSION: "0.2.47", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION})`) + `
|
|
400126
400148
|
`);
|
|
400127
400149
|
} else {
|
|
400128
|
-
writeToStdout(source_default.green(`Successfully updated from ${{ VERSION: "0.2.
|
|
400150
|
+
writeToStdout(source_default.green(`Successfully updated from ${{ VERSION: "0.2.47", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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}`) + `
|
|
400129
400151
|
`);
|
|
400130
400152
|
await regenerateCompletionCache();
|
|
400131
400153
|
}
|
|
@@ -400144,9 +400166,9 @@ async function update() {
|
|
|
400144
400166
|
await removeInstalledSymlink();
|
|
400145
400167
|
}
|
|
400146
400168
|
logForDebugging("update: Checking npm registry for latest version");
|
|
400147
|
-
logForDebugging(`update: Package URL: ${{ VERSION: "0.2.
|
|
400169
|
+
logForDebugging(`update: Package URL: ${{ VERSION: "0.2.47", BUILD_TIME: "1970-01-01T00:00:00.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}`);
|
|
400148
400170
|
const npmTag = channel2 === "stable" ? "stable" : "latest";
|
|
400149
|
-
const npmCommand = `npm view ${{ VERSION: "0.2.
|
|
400171
|
+
const npmCommand = `npm view ${{ VERSION: "0.2.47", BUILD_TIME: "1970-01-01T00:00:00.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`;
|
|
400150
400172
|
logForDebugging(`update: Running: ${npmCommand}`);
|
|
400151
400173
|
const latestVersion = await getLatestVersion(channel2);
|
|
400152
400174
|
logForDebugging(`update: Latest version from npm: ${latestVersion || "FAILED"}`);
|
|
@@ -400166,7 +400188,7 @@ async function update() {
|
|
|
400166
400188
|
`);
|
|
400167
400189
|
process.stderr.write(` \u2022 Corporate proxy/firewall blocking npm
|
|
400168
400190
|
`);
|
|
400169
|
-
if ({ VERSION: "0.2.
|
|
400191
|
+
if ({ VERSION: "0.2.47", BUILD_TIME: "1970-01-01T00:00:00.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.47", BUILD_TIME: "1970-01-01T00:00:00.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")) {
|
|
400170
400192
|
process.stderr.write(` \u2022 Internal/development build not published to npm
|
|
400171
400193
|
`);
|
|
400172
400194
|
}
|
|
@@ -400178,19 +400200,19 @@ async function update() {
|
|
|
400178
400200
|
`);
|
|
400179
400201
|
process.stderr.write(` \u2022 Run with --debug flag for more details
|
|
400180
400202
|
`);
|
|
400181
|
-
const packageName = { VERSION: "0.2.
|
|
400203
|
+
const packageName = { VERSION: "0.2.47", BUILD_TIME: "1970-01-01T00:00:00.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");
|
|
400182
400204
|
process.stderr.write(` \u2022 Manually check: npm view ${packageName} version
|
|
400183
400205
|
`);
|
|
400184
400206
|
process.stderr.write(` \u2022 Check if you need to login: npm whoami
|
|
400185
400207
|
`);
|
|
400186
400208
|
await gracefulShutdown(1);
|
|
400187
400209
|
}
|
|
400188
|
-
if (gte({ VERSION: "0.2.
|
|
400189
|
-
writeToStdout(source_default.green(`Theus is up to date (${{ VERSION: "0.2.
|
|
400210
|
+
if (gte({ VERSION: "0.2.47", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
|
|
400211
|
+
writeToStdout(source_default.green(`Theus is up to date (${{ VERSION: "0.2.47", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION})`) + `
|
|
400190
400212
|
`);
|
|
400191
400213
|
await gracefulShutdown(0);
|
|
400192
400214
|
}
|
|
400193
|
-
writeToStdout(`New version available: ${latestVersion} (current: ${{ VERSION: "0.2.
|
|
400215
|
+
writeToStdout(`New version available: ${latestVersion} (current: ${{ VERSION: "0.2.47", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION})
|
|
400194
400216
|
`);
|
|
400195
400217
|
writeToStdout(`Installing update...
|
|
400196
400218
|
`);
|
|
@@ -400235,7 +400257,7 @@ async function update() {
|
|
|
400235
400257
|
logForDebugging(`update: Installation status: ${status2}`);
|
|
400236
400258
|
switch (status2) {
|
|
400237
400259
|
case "success":
|
|
400238
|
-
writeToStdout(source_default.green(`Successfully updated from ${{ VERSION: "0.2.
|
|
400260
|
+
writeToStdout(source_default.green(`Successfully updated from ${{ VERSION: "0.2.47", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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}`) + `
|
|
400239
400261
|
`);
|
|
400240
400262
|
await regenerateCompletionCache();
|
|
400241
400263
|
break;
|
|
@@ -400245,7 +400267,7 @@ async function update() {
|
|
|
400245
400267
|
if (useLocalUpdate) {
|
|
400246
400268
|
process.stderr.write(`Try manually updating with:
|
|
400247
400269
|
`);
|
|
400248
|
-
process.stderr.write(` cd ~/.theus/local && npm update ${{ VERSION: "0.2.
|
|
400270
|
+
process.stderr.write(` cd ~/.theus/local && npm update ${{ VERSION: "0.2.47", BUILD_TIME: "1970-01-01T00:00:00.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}
|
|
400249
400271
|
`);
|
|
400250
400272
|
} else {
|
|
400251
400273
|
process.stderr.write(`Try running with sudo or fix npm permissions
|
|
@@ -400261,7 +400283,7 @@ async function update() {
|
|
|
400261
400283
|
if (useLocalUpdate) {
|
|
400262
400284
|
process.stderr.write(`Try manually updating with:
|
|
400263
400285
|
`);
|
|
400264
|
-
process.stderr.write(` cd ~/.theus/local && npm update ${{ VERSION: "0.2.
|
|
400286
|
+
process.stderr.write(` cd ~/.theus/local && npm update ${{ VERSION: "0.2.47", BUILD_TIME: "1970-01-01T00:00:00.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}
|
|
400265
400287
|
`);
|
|
400266
400288
|
} else {
|
|
400267
400289
|
process.stderr.write(`Or consider using native installation with: theus install
|
|
@@ -409344,7 +409366,7 @@ var init_sessionStorage = __esm(() => {
|
|
|
409344
409366
|
init_settings2();
|
|
409345
409367
|
init_slowOperations();
|
|
409346
409368
|
init_uuid();
|
|
409347
|
-
VERSION4 = { VERSION: "0.2.
|
|
409369
|
+
VERSION4 = { VERSION: "0.2.47", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION;
|
|
409348
409370
|
MAX_TOMBSTONE_REWRITE_BYTES = 50 * 1024 * 1024;
|
|
409349
409371
|
SKIP_FIRST_PROMPT_PATTERN = /^(?:\s*<[a-z][\w-]*[\s>]|\[Request interrupted by user[^\]]*\])/;
|
|
409350
409372
|
EPHEMERAL_PROGRESS_TYPES = new Set([
|
|
@@ -410549,7 +410571,7 @@ var init_filesystem = __esm(() => {
|
|
|
410549
410571
|
});
|
|
410550
410572
|
getBundledSkillsRoot = memoize_default(function getBundledSkillsRoot2() {
|
|
410551
410573
|
const nonce = randomBytes21(16).toString("hex");
|
|
410552
|
-
return join149(getTheusTempDir(), "bundled-skills", { VERSION: "0.2.
|
|
410574
|
+
return join149(getTheusTempDir(), "bundled-skills", { VERSION: "0.2.47", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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);
|
|
410553
410575
|
});
|
|
410554
410576
|
getResolvedWorkingDirPaths = memoize_default(getPathsForPermissionCheck);
|
|
410555
410577
|
});
|
|
@@ -415728,7 +415750,7 @@ function getSimpleDoingTasksSection() {
|
|
|
415728
415750
|
];
|
|
415729
415751
|
const userHelpSubitems = [
|
|
415730
415752
|
`/help: Get help with using Theus`,
|
|
415731
|
-
`To give feedback, users should ${{ VERSION: "0.2.
|
|
415753
|
+
`To give feedback, users should ${{ VERSION: "0.2.47", BUILD_TIME: "1970-01-01T00:00:00.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}`
|
|
415732
415754
|
];
|
|
415733
415755
|
const items = [
|
|
415734
415756
|
`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.`,
|
|
@@ -416628,7 +416650,7 @@ function computeFingerprint(messageText, version3) {
|
|
|
416628
416650
|
}
|
|
416629
416651
|
function computeFingerprintFromMessages(messages) {
|
|
416630
416652
|
const firstMessageText = extractFirstMessageText(messages);
|
|
416631
|
-
return computeFingerprint(firstMessageText, { VERSION: "0.2.
|
|
416653
|
+
return computeFingerprint(firstMessageText, { VERSION: "0.2.47", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION);
|
|
416632
416654
|
}
|
|
416633
416655
|
var FINGERPRINT_SALT = "59cf53e54c78";
|
|
416634
416656
|
var init_fingerprint = () => {};
|
|
@@ -419188,7 +419210,7 @@ async function sideQuery(opts) {
|
|
|
419188
419210
|
betas.push(STRUCTURED_OUTPUTS_BETA_HEADER);
|
|
419189
419211
|
}
|
|
419190
419212
|
const messageText = extractFirstUserMessageText(messages);
|
|
419191
|
-
const fingerprint = computeFingerprint(messageText, { VERSION: "0.2.
|
|
419213
|
+
const fingerprint = computeFingerprint(messageText, { VERSION: "0.2.47", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION);
|
|
419192
419214
|
const attributionHeader = getAttributionHeader(fingerprint);
|
|
419193
419215
|
const systemBlocks = [
|
|
419194
419216
|
attributionHeader ? { type: "text", text: attributionHeader } : null,
|
|
@@ -420491,7 +420513,7 @@ async function handleMemories(state) {
|
|
|
420491
420513
|
async function runProjectContextMcpServer() {
|
|
420492
420514
|
const projectRoot = process.env.THEUS_PROJECT_ROOT || process.cwd();
|
|
420493
420515
|
const state = new ProjectContextState(projectRoot);
|
|
420494
|
-
const server2 = new Server({ name: SERVER_NAME, version: { VERSION: "0.2.
|
|
420516
|
+
const server2 = new Server({ name: SERVER_NAME, version: { VERSION: "0.2.47", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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: {} } });
|
|
420495
420517
|
server2.setRequestHandler(ListToolsRequestSchema, async () => ({
|
|
420496
420518
|
tools: TOOL_DEFINITIONS.map((t) => ({
|
|
420497
420519
|
name: t.name,
|
|
@@ -422471,7 +422493,7 @@ function createBridgeLogger(options2) {
|
|
|
422471
422493
|
connectUrl = buildBridgeConnectUrl(environmentId, cachedIngressUrl);
|
|
422472
422494
|
regenerateQr(connectUrl);
|
|
422473
422495
|
if (verbose) {
|
|
422474
|
-
write(source_default.dim(`Remote Control`) + ` v${{ VERSION: "0.2.
|
|
422496
|
+
write(source_default.dim(`Remote Control`) + ` v${{ VERSION: "0.2.47", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION}
|
|
422475
422497
|
`);
|
|
422476
422498
|
}
|
|
422477
422499
|
if (verbose) {
|
|
@@ -423444,7 +423466,7 @@ function appendToLog(path19, message) {
|
|
|
423444
423466
|
cwd: getFsImplementation().cwd(),
|
|
423445
423467
|
userType: process.env.USER_TYPE,
|
|
423446
423468
|
sessionId: getSessionId(),
|
|
423447
|
-
version: { VERSION: "0.2.
|
|
423469
|
+
version: { VERSION: "0.2.47", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
|
|
423448
423470
|
};
|
|
423449
423471
|
getLogWriter(path19).write(messageWithTimestamp);
|
|
423450
423472
|
}
|
|
@@ -424714,7 +424736,7 @@ Spawn mode for this project:
|
|
|
424714
424736
|
const api2 = createBridgeApiClient({
|
|
424715
424737
|
baseUrl,
|
|
424716
424738
|
getAccessToken: getBridgeAccessToken2,
|
|
424717
|
-
runnerVersion: { VERSION: "0.2.
|
|
424739
|
+
runnerVersion: { VERSION: "0.2.47", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
|
|
424718
424740
|
onDebug: logForDebugging,
|
|
424719
424741
|
onAuth401: handleOAuth401Error2,
|
|
424720
424742
|
getTrustedDeviceToken
|
|
@@ -424952,7 +424974,7 @@ async function runBridgeHeadless(opts, signal) {
|
|
|
424952
424974
|
const api2 = createBridgeApiClient({
|
|
424953
424975
|
baseUrl,
|
|
424954
424976
|
getAccessToken: opts.getAccessToken,
|
|
424955
|
-
runnerVersion: { VERSION: "0.2.
|
|
424977
|
+
runnerVersion: { VERSION: "0.2.47", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
|
|
424956
424978
|
onDebug: log2,
|
|
424957
424979
|
onAuth401: opts.onAuth401,
|
|
424958
424980
|
getTrustedDeviceToken
|
|
@@ -429016,7 +429038,7 @@ function buildSystemInitMessage(inputs) {
|
|
|
429016
429038
|
slash_commands: inputs.commands.filter((c5) => c5.userInvocable !== false).map((c5) => c5.name),
|
|
429017
429039
|
apiKeySource: getTheusApiKeyWithSource().source,
|
|
429018
429040
|
betas: getSdkBetas(),
|
|
429019
|
-
theus_code_version: { VERSION: "0.2.
|
|
429041
|
+
theus_code_version: { VERSION: "0.2.47", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
|
|
429020
429042
|
output_style: outputStyle2,
|
|
429021
429043
|
agents: inputs.agents.map((agent) => agent.agentType),
|
|
429022
429044
|
skills: inputs.skills.filter((s) => s.userInvocable !== false).map((skill) => skill.name),
|
|
@@ -429056,8 +429078,8 @@ async function getEnvLessBridgeConfig() {
|
|
|
429056
429078
|
}
|
|
429057
429079
|
async function checkEnvLessBridgeMinVersion() {
|
|
429058
429080
|
const cfg = await getEnvLessBridgeConfig();
|
|
429059
|
-
if (cfg.min_version && lt({ VERSION: "0.2.
|
|
429060
|
-
return `Your version of Theus (${{ VERSION: "0.2.
|
|
429081
|
+
if (cfg.min_version && lt({ VERSION: "0.2.47", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
|
|
429082
|
+
return `Your version of Theus (${{ VERSION: "0.2.47", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.
|
|
429061
429083
|
Version ${cfg.min_version} or higher is required. Run \`theus update\` to update.`;
|
|
429062
429084
|
}
|
|
429063
429085
|
return null;
|
|
@@ -431380,7 +431402,7 @@ async function initBridgeCore(params) {
|
|
|
431380
431402
|
const rawApi = createBridgeApiClient({
|
|
431381
431403
|
baseUrl,
|
|
431382
431404
|
getAccessToken,
|
|
431383
|
-
runnerVersion: { VERSION: "0.2.
|
|
431405
|
+
runnerVersion: { VERSION: "0.2.47", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
|
|
431384
431406
|
onDebug: logForDebugging,
|
|
431385
431407
|
onAuth401,
|
|
431386
431408
|
getTrustedDeviceToken
|
|
@@ -448121,7 +448143,7 @@ var init_useVoiceEnabled = __esm(() => {
|
|
|
448121
448143
|
function getSemverPart(version3) {
|
|
448122
448144
|
return `${import_semver14.major(version3, { loose: true })}.${import_semver14.minor(version3, { loose: true })}.${import_semver14.patch(version3, { loose: true })}`;
|
|
448123
448145
|
}
|
|
448124
|
-
function useUpdateNotification(updatedVersion, initialVersion = { VERSION: "0.2.
|
|
448146
|
+
function useUpdateNotification(updatedVersion, initialVersion = { VERSION: "0.2.47", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION) {
|
|
448125
448147
|
const [lastNotifiedSemver, setLastNotifiedSemver] = import_react231.useState(() => getSemverPart(initialVersion));
|
|
448126
448148
|
if (!updatedVersion) {
|
|
448127
448149
|
return null;
|
|
@@ -448161,7 +448183,7 @@ function AutoUpdater({
|
|
|
448161
448183
|
return;
|
|
448162
448184
|
}
|
|
448163
448185
|
if (false) {}
|
|
448164
|
-
const currentVersion = { VERSION: "0.2.
|
|
448186
|
+
const currentVersion = { VERSION: "0.2.47", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION;
|
|
448165
448187
|
const channel2 = getInitialSettings()?.autoUpdatesChannel ?? "latest";
|
|
448166
448188
|
let latestVersion = await getLatestVersion(channel2);
|
|
448167
448189
|
const isDisabled2 = isAutoUpdaterDisabled();
|
|
@@ -448297,7 +448319,7 @@ function AutoUpdater({
|
|
|
448297
448319
|
" ",
|
|
448298
448320
|
/* @__PURE__ */ jsx_runtime405.jsx(ThemedText, {
|
|
448299
448321
|
bold: true,
|
|
448300
|
-
children: hasLocalInstall ? `cd ~/.theus/local && npm update ${{ VERSION: "0.2.
|
|
448322
|
+
children: hasLocalInstall ? `cd ~/.theus/local && npm update ${{ VERSION: "0.2.47", BUILD_TIME: "1970-01-01T00:00:00.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.47", BUILD_TIME: "1970-01-01T00:00:00.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}`
|
|
448301
448323
|
})
|
|
448302
448324
|
]
|
|
448303
448325
|
})
|
|
@@ -448374,12 +448396,12 @@ function NativeAutoUpdater({
|
|
|
448374
448396
|
logEvent("tengu_native_auto_updater_start", {});
|
|
448375
448397
|
try {
|
|
448376
448398
|
const maxVersion = await getMaxVersion();
|
|
448377
|
-
if (maxVersion && gt({ VERSION: "0.2.
|
|
448399
|
+
if (maxVersion && gt({ VERSION: "0.2.47", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
|
|
448378
448400
|
const msg = await getMaxVersionMessage();
|
|
448379
448401
|
setMaxVersionIssue(msg ?? "affects your version");
|
|
448380
448402
|
}
|
|
448381
448403
|
const result = await installLatest(channel2);
|
|
448382
|
-
const currentVersion = { VERSION: "0.2.
|
|
448404
|
+
const currentVersion = { VERSION: "0.2.47", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION;
|
|
448383
448405
|
const latencyMs = Date.now() - startTime2;
|
|
448384
448406
|
if (result.lockFailed) {
|
|
448385
448407
|
logEvent("tengu_native_auto_updater_lock_contention", {
|
|
@@ -448516,17 +448538,17 @@ function PackageManagerAutoUpdater(t0) {
|
|
|
448516
448538
|
const maxVersion = await getMaxVersion();
|
|
448517
448539
|
if (maxVersion && latest && gt(latest, maxVersion)) {
|
|
448518
448540
|
logForDebugging(`PackageManagerAutoUpdater: maxVersion ${maxVersion} is set, capping update from ${latest} to ${maxVersion}`);
|
|
448519
|
-
if (gte({ VERSION: "0.2.
|
|
448520
|
-
logForDebugging(`PackageManagerAutoUpdater: current version ${{ VERSION: "0.2.
|
|
448541
|
+
if (gte({ VERSION: "0.2.47", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
|
|
448542
|
+
logForDebugging(`PackageManagerAutoUpdater: current version ${{ VERSION: "0.2.47", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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`);
|
|
448521
448543
|
setUpdateAvailable(false);
|
|
448522
448544
|
return;
|
|
448523
448545
|
}
|
|
448524
448546
|
latest = maxVersion;
|
|
448525
448547
|
}
|
|
448526
|
-
const hasUpdate = latest && !gte({ VERSION: "0.2.
|
|
448548
|
+
const hasUpdate = latest && !gte({ VERSION: "0.2.47", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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);
|
|
448527
448549
|
setUpdateAvailable(!!hasUpdate);
|
|
448528
448550
|
if (hasUpdate) {
|
|
448529
|
-
logForDebugging(`PackageManagerAutoUpdater: Update available ${{ VERSION: "0.2.
|
|
448551
|
+
logForDebugging(`PackageManagerAutoUpdater: Update available ${{ VERSION: "0.2.47", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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}`);
|
|
448530
448552
|
}
|
|
448531
448553
|
};
|
|
448532
448554
|
$2[0] = t1;
|
|
@@ -448560,7 +448582,7 @@ function PackageManagerAutoUpdater(t0) {
|
|
|
448560
448582
|
wrap: "truncate",
|
|
448561
448583
|
children: [
|
|
448562
448584
|
"currentVersion: ",
|
|
448563
|
-
{ VERSION: "0.2.
|
|
448585
|
+
{ VERSION: "0.2.47", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
|
|
448564
448586
|
]
|
|
448565
448587
|
});
|
|
448566
448588
|
$2[3] = verbose;
|
|
@@ -456433,7 +456455,7 @@ function buildStatusLineCommandInput(permissionMode, exceeds200kTokens, settings
|
|
|
456433
456455
|
project_dir: getOriginalCwd(),
|
|
456434
456456
|
added_dirs: addedDirs
|
|
456435
456457
|
},
|
|
456436
|
-
version: { VERSION: "0.2.
|
|
456458
|
+
version: { VERSION: "0.2.47", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
|
|
456437
456459
|
output_style: {
|
|
456438
456460
|
name: outputStyleName
|
|
456439
456461
|
},
|
|
@@ -467853,7 +467875,7 @@ async function submitTranscriptShare(messages, trigger, appearanceId) {
|
|
|
467853
467875
|
} catch {}
|
|
467854
467876
|
const data = {
|
|
467855
467877
|
trigger,
|
|
467856
|
-
version: { VERSION: "0.2.
|
|
467878
|
+
version: { VERSION: "0.2.47", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
|
|
467857
467879
|
platform: process.platform,
|
|
467858
467880
|
transcript,
|
|
467859
467881
|
subagentTranscripts: Object.keys(subagentTranscripts).length > 0 ? subagentTranscripts : undefined,
|
|
@@ -480860,7 +480882,7 @@ function completeOnboarding() {
|
|
|
480860
480882
|
saveGlobalConfig((current) => ({
|
|
480861
480883
|
...current,
|
|
480862
480884
|
hasCompletedOnboarding: true,
|
|
480863
|
-
lastOnboardingVersion: { VERSION: "0.2.
|
|
480885
|
+
lastOnboardingVersion: { VERSION: "0.2.47", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
|
|
480864
480886
|
}));
|
|
480865
480887
|
}
|
|
480866
480888
|
function showDialog(root2, renderer) {
|
|
@@ -491858,7 +491880,7 @@ async function startMCPServer(cwd3, debug3, verbose) {
|
|
|
491858
491880
|
setCwd(cwd3);
|
|
491859
491881
|
const server2 = new Server({
|
|
491860
491882
|
name: "theus/tengu",
|
|
491861
|
-
version: { VERSION: "0.2.
|
|
491883
|
+
version: { VERSION: "0.2.47", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
|
|
491862
491884
|
}, {
|
|
491863
491885
|
capabilities: {
|
|
491864
491886
|
tools: {}
|
|
@@ -493300,7 +493322,7 @@ async function setupTokenHandler(root2) {
|
|
|
493300
493322
|
gap: 1,
|
|
493301
493323
|
children: [
|
|
493302
493324
|
/* @__PURE__ */ jsx_runtime492.jsx(TheusBanner, {
|
|
493303
|
-
version: { VERSION: "0.2.
|
|
493325
|
+
version: { VERSION: "0.2.47", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
|
|
493304
493326
|
}),
|
|
493305
493327
|
showAuthWarning && /* @__PURE__ */ jsx_runtime492.jsxs(ThemedBox_default, {
|
|
493306
493328
|
flexDirection: "column",
|
|
@@ -494782,7 +494804,7 @@ ${assistantAddendum}` : assistantAddendum;
|
|
|
494782
494804
|
}
|
|
494783
494805
|
}
|
|
494784
494806
|
logForDiagnosticsNoPII("info", "started", {
|
|
494785
|
-
version: { VERSION: "0.2.
|
|
494807
|
+
version: { VERSION: "0.2.47", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
|
|
494786
494808
|
is_native_binary: isInBundledMode()
|
|
494787
494809
|
});
|
|
494788
494810
|
registerCleanup(async () => {
|
|
@@ -495650,7 +495672,7 @@ Usage: theus --remote "your task description"`, () => gracefulShutdown(1));
|
|
|
495650
495672
|
pendingHookMessages
|
|
495651
495673
|
}, renderAndRun);
|
|
495652
495674
|
}
|
|
495653
|
-
}).version(`${{ VERSION: "0.2.
|
|
495675
|
+
}).version(`${{ VERSION: "0.2.47", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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");
|
|
495654
495676
|
program2.option("-w, --worktree [name]", "Crea un nuevo worktree de git para esta sesi\xF3n (opcionalmente indica un nombre)");
|
|
495655
495677
|
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.");
|
|
495656
495678
|
if (canUserConfigureAdvisor()) {
|
|
@@ -496202,7 +496224,7 @@ if (false) {}
|
|
|
496202
496224
|
async function main2() {
|
|
496203
496225
|
const args = process.argv.slice(2);
|
|
496204
496226
|
if (args.length === 1 && (args[0] === "--version" || args[0] === "-v" || args[0] === "-V")) {
|
|
496205
|
-
console.log(`${{ VERSION: "0.2.
|
|
496227
|
+
console.log(`${{ VERSION: "0.2.47", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)`);
|
|
496206
496228
|
return;
|
|
496207
496229
|
}
|
|
496208
496230
|
const {
|