theus-cli 0.2.35 → 0.2.36
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 +135 -123
- 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.36", BUILD_TIME: "1970-01-01T00:00:00.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.36", BUILD_TIME: "1970-01-01T00:00:00.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.36", BUILD_TIME: "1970-01-01T00:00:00.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.36", BUILD_TIME: "1970-01-01T00:00:00.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.36", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.36", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.36", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.36", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.36", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.36", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.36", BUILD_TIME: "1970-01-01T00:00:00.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.36", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.36", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.36", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.36", BUILD_TIME: "1970-01-01T00:00:00.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.36", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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) {
|
|
@@ -202536,7 +202536,7 @@ function getInstallationEnv() {
|
|
|
202536
202536
|
return;
|
|
202537
202537
|
}
|
|
202538
202538
|
function getTheusCodeVersion() {
|
|
202539
|
-
return { VERSION: "0.2.
|
|
202539
|
+
return { VERSION: "0.2.36", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION;
|
|
202540
202540
|
}
|
|
202541
202541
|
async function getInstalledVSCodeExtensionVersion(command) {
|
|
202542
202542
|
const { stdout } = await execFileNoThrow(command, ["--list-extensions", "--show-versions"], {
|
|
@@ -204054,7 +204054,7 @@ async function getMcpHeadersFromHelper(serverName, config2) {
|
|
|
204054
204054
|
if ("scope" in config2 && isMcpServerFromProjectOrLocalSettings(config2) && !getIsNonInteractiveSession()) {
|
|
204055
204055
|
const hasTrust = checkHasTrustDialogAccepted();
|
|
204056
204056
|
if (!hasTrust) {
|
|
204057
|
-
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.
|
|
204057
|
+
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.36", BUILD_TIME: "1970-01-01T00:00:00.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}.`);
|
|
204058
204058
|
logAntError("MCP headersHelper invoked before trust check", error40);
|
|
204059
204059
|
logEvent("tengu_mcp_headersHelper_missing_trust", {});
|
|
204060
204060
|
return null;
|
|
@@ -205264,7 +205264,7 @@ async function setupSdkMcpClients(sdkMcpConfigs, sendMcpMessage) {
|
|
|
205264
205264
|
const client2 = new Client({
|
|
205265
205265
|
name: "theus-code",
|
|
205266
205266
|
title: "Theus",
|
|
205267
|
-
version: { VERSION: "0.2.
|
|
205267
|
+
version: { VERSION: "0.2.36", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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",
|
|
205268
205268
|
description: "Theus's agentic coding tool",
|
|
205269
205269
|
websiteUrl: PRODUCT_URL
|
|
205270
205270
|
}, {
|
|
@@ -205618,7 +205618,7 @@ var init_client5 = __esm(() => {
|
|
|
205618
205618
|
const client2 = new Client({
|
|
205619
205619
|
name: "theus-code",
|
|
205620
205620
|
title: "Theus",
|
|
205621
|
-
version: { VERSION: "0.2.
|
|
205621
|
+
version: { VERSION: "0.2.36", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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",
|
|
205622
205622
|
description: "Theus's agentic coding tool",
|
|
205623
205623
|
websiteUrl: PRODUCT_URL
|
|
205624
205624
|
}, {
|
|
@@ -216196,7 +216196,7 @@ async function initializeBetaTracing(resource) {
|
|
|
216196
216196
|
});
|
|
216197
216197
|
logs.setGlobalLoggerProvider(loggerProvider);
|
|
216198
216198
|
setLoggerProvider(loggerProvider);
|
|
216199
|
-
const eventLogger = logs.getLogger("com.theus.theus_code.events", { VERSION: "0.2.
|
|
216199
|
+
const eventLogger = logs.getLogger("com.theus.theus_code.events", { VERSION: "0.2.36", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION);
|
|
216200
216200
|
setEventLogger(eventLogger);
|
|
216201
216201
|
process.on("beforeExit", async () => {
|
|
216202
216202
|
await loggerProvider?.forceFlush();
|
|
@@ -216236,7 +216236,7 @@ async function initializeTelemetry() {
|
|
|
216236
216236
|
const platform4 = getPlatform();
|
|
216237
216237
|
const baseAttributes = {
|
|
216238
216238
|
[ATTR_SERVICE_NAME]: "theus-code",
|
|
216239
|
-
[ATTR_SERVICE_VERSION]: { VERSION: "0.2.
|
|
216239
|
+
[ATTR_SERVICE_VERSION]: { VERSION: "0.2.36", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
|
|
216240
216240
|
};
|
|
216241
216241
|
if (platform4 === "wsl") {
|
|
216242
216242
|
const wslVersion = getWslVersion();
|
|
@@ -216281,7 +216281,7 @@ async function initializeTelemetry() {
|
|
|
216281
216281
|
} catch {}
|
|
216282
216282
|
};
|
|
216283
216283
|
registerCleanup(shutdownTelemetry2);
|
|
216284
|
-
return meterProvider2.getMeter("com.theus.theus_code", { VERSION: "0.2.
|
|
216284
|
+
return meterProvider2.getMeter("com.theus.theus_code", { VERSION: "0.2.36", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION);
|
|
216285
216285
|
}
|
|
216286
216286
|
const meterProvider = new MeterProvider({
|
|
216287
216287
|
resource,
|
|
@@ -216301,7 +216301,7 @@ async function initializeTelemetry() {
|
|
|
216301
216301
|
});
|
|
216302
216302
|
logs.setGlobalLoggerProvider(loggerProvider);
|
|
216303
216303
|
setLoggerProvider(loggerProvider);
|
|
216304
|
-
const eventLogger = logs.getLogger("com.theus.theus_code.events", { VERSION: "0.2.
|
|
216304
|
+
const eventLogger = logs.getLogger("com.theus.theus_code.events", { VERSION: "0.2.36", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION);
|
|
216305
216305
|
setEventLogger(eventLogger);
|
|
216306
216306
|
logForDebugging("[3P telemetry] Event logger set successfully");
|
|
216307
216307
|
process.on("beforeExit", async () => {
|
|
@@ -216363,7 +216363,7 @@ Current timeout: ${timeoutMs}ms
|
|
|
216363
216363
|
}
|
|
216364
216364
|
};
|
|
216365
216365
|
registerCleanup(shutdownTelemetry);
|
|
216366
|
-
return meterProvider.getMeter("com.theus.theus_code", { VERSION: "0.2.
|
|
216366
|
+
return meterProvider.getMeter("com.theus.theus_code", { VERSION: "0.2.36", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION);
|
|
216367
216367
|
}
|
|
216368
216368
|
async function flushTelemetry() {
|
|
216369
216369
|
const meterProvider = getMeterProvider();
|
|
@@ -216903,7 +216903,7 @@ async function installOrUpdateTheusPackage(channel2, specificVersion) {
|
|
|
216903
216903
|
return "install_failed";
|
|
216904
216904
|
}
|
|
216905
216905
|
const versionSpec = specificVersion ? specificVersion : channel2 === "stable" ? "stable" : "latest";
|
|
216906
|
-
const result = await execFileNoThrowWithCwd("npm", ["install", `${{ VERSION: "0.2.
|
|
216906
|
+
const result = await execFileNoThrowWithCwd("npm", ["install", `${{ VERSION: "0.2.36", BUILD_TIME: "1970-01-01T00:00:00.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 });
|
|
216907
216907
|
if (result.code !== 0) {
|
|
216908
216908
|
const error40 = new Error(`Failed to install Theus CLI package: ${result.stderr}`);
|
|
216909
216909
|
logError2(error40);
|
|
@@ -217049,9 +217049,9 @@ async function assertMinVersion() {
|
|
|
217049
217049
|
if (false) {}
|
|
217050
217050
|
try {
|
|
217051
217051
|
const versionConfig = await getDynamicConfig_BLOCKS_ON_INIT("tengu_version_config", { minVersion: "0.0.0" });
|
|
217052
|
-
if (versionConfig.minVersion && lt({ VERSION: "0.2.
|
|
217052
|
+
if (versionConfig.minVersion && lt({ VERSION: "0.2.36", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
|
|
217053
217053
|
console.error(`
|
|
217054
|
-
It looks like your version of Theus (${{ VERSION: "0.2.
|
|
217054
|
+
It looks like your version of Theus (${{ VERSION: "0.2.36", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.
|
|
217055
217055
|
A newer version (${versionConfig.minVersion} or higher) is required to continue.
|
|
217056
217056
|
|
|
217057
217057
|
To update, please run:
|
|
@@ -217192,7 +217192,7 @@ async function getInstallationPrefix() {
|
|
|
217192
217192
|
return prefixResult.stdout.trim();
|
|
217193
217193
|
}
|
|
217194
217194
|
function getGlobalInstallPackageManager() {
|
|
217195
|
-
if ({ VERSION: "0.2.
|
|
217195
|
+
if ({ VERSION: "0.2.36", BUILD_TIME: "1970-01-01T00:00:00.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") {
|
|
217196
217196
|
return "npm";
|
|
217197
217197
|
}
|
|
217198
217198
|
return env3.isRunningWithBun() ? "bun" : "npm";
|
|
@@ -217217,7 +217217,7 @@ async function checkGlobalInstallPermissions() {
|
|
|
217217
217217
|
}
|
|
217218
217218
|
async function getLatestVersion(channel2) {
|
|
217219
217219
|
const npmTag = channel2 === "stable" ? "stable" : "latest";
|
|
217220
|
-
const result = await execFileNoThrowWithCwd("npm", ["view", `${{ VERSION: "0.2.
|
|
217220
|
+
const result = await execFileNoThrowWithCwd("npm", ["view", `${{ VERSION: "0.2.36", BUILD_TIME: "1970-01-01T00:00:00.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() });
|
|
217221
217221
|
if (result.code !== 0) {
|
|
217222
217222
|
logForDebugging(`npm view failed with code ${result.code}`);
|
|
217223
217223
|
if (result.stderr) {
|
|
@@ -217233,7 +217233,7 @@ async function getLatestVersion(channel2) {
|
|
|
217233
217233
|
return result.stdout.trim();
|
|
217234
217234
|
}
|
|
217235
217235
|
async function getNpmDistTags() {
|
|
217236
|
-
const result = await execFileNoThrowWithCwd("npm", ["view", { VERSION: "0.2.
|
|
217236
|
+
const result = await execFileNoThrowWithCwd("npm", ["view", { VERSION: "0.2.36", BUILD_TIME: "1970-01-01T00:00:00.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() });
|
|
217237
217237
|
if (result.code !== 0) {
|
|
217238
217238
|
logForDebugging(`npm view dist-tags failed with code ${result.code}`);
|
|
217239
217239
|
return { latest: null, stable: null };
|
|
@@ -217273,7 +217273,7 @@ async function installGlobalPackage(specificVersion) {
|
|
|
217273
217273
|
logError2(new AutoUpdaterError("Another process is currently installing an update"));
|
|
217274
217274
|
logEvent("tengu_auto_updater_lock_contention", {
|
|
217275
217275
|
pid: process.pid,
|
|
217276
|
-
currentVersion: { VERSION: "0.2.
|
|
217276
|
+
currentVersion: { VERSION: "0.2.36", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
|
|
217277
217277
|
});
|
|
217278
217278
|
return "in_progress";
|
|
217279
217279
|
}
|
|
@@ -217282,7 +217282,7 @@ async function installGlobalPackage(specificVersion) {
|
|
|
217282
217282
|
if (!env3.isRunningWithBun() && env3.isNpmFromWindowsPath()) {
|
|
217283
217283
|
logError2(new Error("Windows NPM detected in WSL environment"));
|
|
217284
217284
|
logEvent("tengu_auto_updater_windows_npm_in_wsl", {
|
|
217285
|
-
currentVersion: { VERSION: "0.2.
|
|
217285
|
+
currentVersion: { VERSION: "0.2.36", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
|
|
217286
217286
|
});
|
|
217287
217287
|
console.error(`
|
|
217288
217288
|
Error: Windows NPM detected in WSL
|
|
@@ -217301,7 +217301,7 @@ To fix this issue:
|
|
|
217301
217301
|
if (!hasPermissions) {
|
|
217302
217302
|
return "no_permissions";
|
|
217303
217303
|
}
|
|
217304
|
-
const packageSpec = specificVersion ? `${{ VERSION: "0.2.
|
|
217304
|
+
const packageSpec = specificVersion ? `${{ VERSION: "0.2.36", BUILD_TIME: "1970-01-01T00:00:00.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.36", BUILD_TIME: "1970-01-01T00:00:00.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;
|
|
217305
217305
|
const packageManager = getGlobalInstallPackageManager();
|
|
217306
217306
|
const installResult = await execFileNoThrowWithCwd(packageManager, ["install", "-g", packageSpec], { cwd: homedir18() });
|
|
217307
217307
|
if (installResult.code !== 0) {
|
|
@@ -217629,8 +217629,8 @@ async function detectMultipleInstallations() {
|
|
|
217629
217629
|
installations.push({ type: "npm-local", path: localPath });
|
|
217630
217630
|
}
|
|
217631
217631
|
const packagesToCheck = ["@theus-ai/theus-code"];
|
|
217632
|
-
if ({ VERSION: "0.2.
|
|
217633
|
-
packagesToCheck.push({ VERSION: "0.2.
|
|
217632
|
+
if ({ VERSION: "0.2.36", BUILD_TIME: "1970-01-01T00:00:00.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.36", BUILD_TIME: "1970-01-01T00:00:00.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") {
|
|
217633
|
+
packagesToCheck.push({ VERSION: "0.2.36", BUILD_TIME: "1970-01-01T00:00:00.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);
|
|
217634
217634
|
}
|
|
217635
217635
|
const npmResult = await execFileNoThrow("npm", [
|
|
217636
217636
|
"-g",
|
|
@@ -217813,7 +217813,7 @@ function detectLinuxGlobPatternWarnings() {
|
|
|
217813
217813
|
}
|
|
217814
217814
|
async function getDoctorDiagnostic() {
|
|
217815
217815
|
const installationType = await getCurrentInstallationType();
|
|
217816
|
-
const version2 = { VERSION: "0.2.
|
|
217816
|
+
const version2 = { VERSION: "0.2.36", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.36", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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";
|
|
217817
217817
|
const installationPath = await getInstallationPath();
|
|
217818
217818
|
const invokedBinary = getInvokedBinary();
|
|
217819
217819
|
const multipleInstallations = await detectMultipleInstallations();
|
|
@@ -217825,8 +217825,8 @@ async function getDoctorDiagnostic() {
|
|
|
217825
217825
|
for (const install of npmInstalls) {
|
|
217826
217826
|
if (install.type === "npm-global") {
|
|
217827
217827
|
let uninstallCmd = "npm -g uninstall @theus-ai/theus-code";
|
|
217828
|
-
if ({ VERSION: "0.2.
|
|
217829
|
-
uninstallCmd += ` && npm -g uninstall ${{ VERSION: "0.2.
|
|
217828
|
+
if ({ VERSION: "0.2.36", BUILD_TIME: "1970-01-01T00:00:00.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.36", BUILD_TIME: "1970-01-01T00:00:00.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") {
|
|
217829
|
+
uninstallCmd += ` && npm -g uninstall ${{ VERSION: "0.2.36", BUILD_TIME: "1970-01-01T00:00:00.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}`;
|
|
217830
217830
|
}
|
|
217831
217831
|
warnings.push({
|
|
217832
217832
|
issue: `Leftover npm global installation at ${install.path}`,
|
|
@@ -217938,7 +217938,7 @@ async function getLatestVersionFromArtifactory(tag2 = "latest") {
|
|
|
217938
217938
|
const startTime2 = Date.now();
|
|
217939
217939
|
const { stdout, code, stderr } = await execFileNoThrowWithCwd("npm", [
|
|
217940
217940
|
"view",
|
|
217941
|
-
`${{ VERSION: "0.2.
|
|
217941
|
+
`${{ VERSION: "0.2.36", BUILD_TIME: "1970-01-01T00:00:00.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}`,
|
|
217942
217942
|
"version",
|
|
217943
217943
|
"--prefer-online",
|
|
217944
217944
|
"--registry",
|
|
@@ -217962,7 +217962,7 @@ async function getLatestVersionFromArtifactory(tag2 = "latest") {
|
|
|
217962
217962
|
latency_ms: latencyMs,
|
|
217963
217963
|
source_npm: true
|
|
217964
217964
|
});
|
|
217965
|
-
logForDebugging(`npm view ${{ VERSION: "0.2.
|
|
217965
|
+
logForDebugging(`npm view ${{ VERSION: "0.2.36", BUILD_TIME: "1970-01-01T00:00:00.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}`);
|
|
217966
217966
|
const latestVersion = stdout.trim();
|
|
217967
217967
|
return latestVersion;
|
|
217968
217968
|
}
|
|
@@ -218018,7 +218018,7 @@ async function downloadVersionFromArtifactory(version2, stagingPath) {
|
|
|
218018
218018
|
const fs3 = getFsImplementation();
|
|
218019
218019
|
await fs3.rm(stagingPath, { recursive: true, force: true });
|
|
218020
218020
|
const platform4 = getPlatform2();
|
|
218021
|
-
const platformPackageName = `${{ VERSION: "0.2.
|
|
218021
|
+
const platformPackageName = `${{ VERSION: "0.2.36", BUILD_TIME: "1970-01-01T00:00:00.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}`;
|
|
218022
218022
|
logForDebugging(`Fetching integrity hash for ${platformPackageName}@${version2}`);
|
|
218023
218023
|
const {
|
|
218024
218024
|
stdout: integrityOutput,
|
|
@@ -218047,7 +218047,7 @@ async function downloadVersionFromArtifactory(version2, stagingPath) {
|
|
|
218047
218047
|
name: "theus-native-installer",
|
|
218048
218048
|
version: "0.0.1",
|
|
218049
218049
|
dependencies: {
|
|
218050
|
-
[{ VERSION: "0.2.
|
|
218050
|
+
[{ VERSION: "0.2.36", BUILD_TIME: "1970-01-01T00:00:00.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
|
|
218051
218051
|
}
|
|
218052
218052
|
};
|
|
218053
218053
|
const packageLock = {
|
|
@@ -218060,10 +218060,10 @@ async function downloadVersionFromArtifactory(version2, stagingPath) {
|
|
|
218060
218060
|
name: "theus-native-installer",
|
|
218061
218061
|
version: "0.0.1",
|
|
218062
218062
|
dependencies: {
|
|
218063
|
-
[{ VERSION: "0.2.
|
|
218063
|
+
[{ VERSION: "0.2.36", BUILD_TIME: "1970-01-01T00:00:00.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
|
|
218064
218064
|
}
|
|
218065
218065
|
},
|
|
218066
|
-
[`node_modules/${{ VERSION: "0.2.
|
|
218066
|
+
[`node_modules/${{ VERSION: "0.2.36", BUILD_TIME: "1970-01-01T00:00:00.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}`]: {
|
|
218067
218067
|
version: version2,
|
|
218068
218068
|
optionalDependencies: {
|
|
218069
218069
|
[platformPackageName]: version2
|
|
@@ -218085,7 +218085,7 @@ async function downloadVersionFromArtifactory(version2, stagingPath) {
|
|
|
218085
218085
|
if (result.code !== 0) {
|
|
218086
218086
|
throw new Error(`npm ci failed with code ${result.code}: ${result.stderr}`);
|
|
218087
218087
|
}
|
|
218088
|
-
logForDebugging(`Successfully downloaded and verified ${{ VERSION: "0.2.
|
|
218088
|
+
logForDebugging(`Successfully downloaded and verified ${{ VERSION: "0.2.36", BUILD_TIME: "1970-01-01T00:00:00.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}`);
|
|
218089
218089
|
}
|
|
218090
218090
|
function getStallTimeoutMs() {
|
|
218091
218091
|
return Number(process.env.THEUS_CODE_STALL_TIMEOUT_MS_FOR_TESTING) || DEFAULT_STALL_TIMEOUT_MS;
|
|
@@ -218748,8 +218748,8 @@ async function updateLatest(channelOrVersion, forceReinstall = false) {
|
|
|
218748
218748
|
const maxVersion = await getMaxVersion();
|
|
218749
218749
|
if (maxVersion && gt(version2, maxVersion)) {
|
|
218750
218750
|
logForDebugging(`Native installer: maxVersion ${maxVersion} is set, capping update from ${version2} to ${maxVersion}`);
|
|
218751
|
-
if (gte({ VERSION: "0.2.
|
|
218752
|
-
logForDebugging(`Native installer: current version ${{ VERSION: "0.2.
|
|
218751
|
+
if (gte({ VERSION: "0.2.36", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
|
|
218752
|
+
logForDebugging(`Native installer: current version ${{ VERSION: "0.2.36", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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`);
|
|
218753
218753
|
logEvent("tengu_native_update_skipped_max_version", {
|
|
218754
218754
|
latency_ms: Date.now() - startTime2,
|
|
218755
218755
|
max_version: maxVersion,
|
|
@@ -218760,7 +218760,7 @@ async function updateLatest(channelOrVersion, forceReinstall = false) {
|
|
|
218760
218760
|
version2 = maxVersion;
|
|
218761
218761
|
}
|
|
218762
218762
|
}
|
|
218763
|
-
if (!forceReinstall && version2 === { VERSION: "0.2.
|
|
218763
|
+
if (!forceReinstall && version2 === { VERSION: "0.2.36", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
|
|
218764
218764
|
logForDebugging(`Found ${version2} at ${executablePath}, skipping install`);
|
|
218765
218765
|
logEvent("tengu_native_update_complete", {
|
|
218766
218766
|
latency_ms: Date.now() - startTime2,
|
|
@@ -219510,8 +219510,8 @@ async function cleanupNpmInstallations() {
|
|
|
219510
219510
|
} else if (codePackageResult.error) {
|
|
219511
219511
|
errors4.push(codePackageResult.error);
|
|
219512
219512
|
}
|
|
219513
|
-
if ({ VERSION: "0.2.
|
|
219514
|
-
const macroPackageResult = await attemptNpmUninstall({ VERSION: "0.2.
|
|
219513
|
+
if ({ VERSION: "0.2.36", BUILD_TIME: "1970-01-01T00:00:00.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.36", BUILD_TIME: "1970-01-01T00:00:00.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") {
|
|
219514
|
+
const macroPackageResult = await attemptNpmUninstall({ VERSION: "0.2.36", BUILD_TIME: "1970-01-01T00:00:00.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);
|
|
219515
219515
|
if (macroPackageResult.success) {
|
|
219516
219516
|
removed++;
|
|
219517
219517
|
if (macroPackageResult.warning) {
|
|
@@ -304780,9 +304780,9 @@ function getTheusEnvMetadata() {
|
|
|
304780
304780
|
};
|
|
304781
304781
|
}
|
|
304782
304782
|
function getBuildAgeMinutes() {
|
|
304783
|
-
if (!{ VERSION: "0.2.
|
|
304783
|
+
if (!{ VERSION: "0.2.36", BUILD_TIME: "1970-01-01T00:00:00.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)
|
|
304784
304784
|
return;
|
|
304785
|
-
const buildTime = new Date({ VERSION: "0.2.
|
|
304785
|
+
const buildTime = new Date({ VERSION: "0.2.36", BUILD_TIME: "1970-01-01T00:00:00.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();
|
|
304786
304786
|
if (isNaN(buildTime))
|
|
304787
304787
|
return;
|
|
304788
304788
|
return Math.floor((Date.now() - buildTime) / 60000);
|
|
@@ -321236,7 +321236,7 @@ function getAssistantMessageFromError(error40, model, options2) {
|
|
|
321236
321236
|
if (process.env.USER_TYPE === "ant") {
|
|
321237
321237
|
const baseMessage = `API Error: 400 ${error40.message}
|
|
321238
321238
|
|
|
321239
|
-
Run /share and post the JSON file to ${{ VERSION: "0.2.
|
|
321239
|
+
Run /share and post the JSON file to ${{ VERSION: "0.2.36", BUILD_TIME: "1970-01-01T00:00:00.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}.`;
|
|
321240
321240
|
const rewindInstruction = getIsNonInteractiveSession() ? "" : " Then, use /rewind to recover the conversation.";
|
|
321241
321241
|
return createAssistantAPIErrorMessage({
|
|
321242
321242
|
content: baseMessage + rewindInstruction,
|
|
@@ -321272,7 +321272,7 @@ Run /share and post the JSON file to ${{ VERSION: "0.2.35", BUILD_TIME: "1970-01
|
|
|
321272
321272
|
if (process.env.USER_TYPE === "ant" && !process.env.THEUS_MODEL && error40 instanceof Error && error40.message.toLowerCase().includes("invalid model name")) {
|
|
321273
321273
|
const orgId = getOauthAccountInfo()?.organizationUuid;
|
|
321274
321274
|
const baseMsg = `[THEUS-INTERNAL] Your org isn't gated into the \`${model}\` model. Either run \`theus\` with \`THEUS_MODEL=${getDefaultMainLoopModelSetting()}\``;
|
|
321275
|
-
const msg = orgId ? `${baseMsg} or share your orgId (${orgId}) in ${{ VERSION: "0.2.
|
|
321275
|
+
const msg = orgId ? `${baseMsg} or share your orgId (${orgId}) in ${{ VERSION: "0.2.36", BUILD_TIME: "1970-01-01T00:00:00.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.36", BUILD_TIME: "1970-01-01T00:00:00.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.`;
|
|
321276
321276
|
return createAssistantAPIErrorMessage({
|
|
321277
321277
|
content: msg,
|
|
321278
321278
|
error: "invalid_request"
|
|
@@ -331376,7 +331376,7 @@ function buildPrimarySection() {
|
|
|
331376
331376
|
});
|
|
331377
331377
|
return [{
|
|
331378
331378
|
label: "Version",
|
|
331379
|
-
value: { VERSION: "0.2.
|
|
331379
|
+
value: { VERSION: "0.2.36", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
|
|
331380
331380
|
}, {
|
|
331381
331381
|
label: "Session name",
|
|
331382
331382
|
value: nameValue
|
|
@@ -335192,7 +335192,7 @@ function Config({
|
|
|
335192
335192
|
}
|
|
335193
335193
|
})
|
|
335194
335194
|
}) : showSubmenu === "ChannelDowngrade" ? /* @__PURE__ */ jsx_runtime189.jsx(ChannelDowngradeDialog, {
|
|
335195
|
-
currentVersion: { VERSION: "0.2.
|
|
335195
|
+
currentVersion: { VERSION: "0.2.36", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
|
|
335196
335196
|
onChoice: (choice) => {
|
|
335197
335197
|
setShowSubmenu(null);
|
|
335198
335198
|
setTabsHidden(false);
|
|
@@ -335204,7 +335204,7 @@ function Config({
|
|
|
335204
335204
|
autoUpdatesChannel: "stable"
|
|
335205
335205
|
};
|
|
335206
335206
|
if (choice === "stay") {
|
|
335207
|
-
newSettings.minimumVersion = { VERSION: "0.2.
|
|
335207
|
+
newSettings.minimumVersion = { VERSION: "0.2.36", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION;
|
|
335208
335208
|
}
|
|
335209
335209
|
updateSettingsForSource("userSettings", newSettings);
|
|
335210
335210
|
setSettingsData((prev_27) => ({
|
|
@@ -343238,7 +343238,7 @@ function HelpV2(t0) {
|
|
|
343238
343238
|
let t6;
|
|
343239
343239
|
if ($2[31] !== tabs) {
|
|
343240
343240
|
t6 = /* @__PURE__ */ jsx_runtime216.jsx(Tabs, {
|
|
343241
|
-
title: `Theus v${{ VERSION: "0.2.
|
|
343241
|
+
title: `Theus v${{ VERSION: "0.2.36", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION}`,
|
|
343242
343242
|
color: "professionalBlue",
|
|
343243
343243
|
defaultTab: "general",
|
|
343244
343244
|
children: tabs
|
|
@@ -361312,7 +361312,7 @@ function Onboarding({
|
|
|
361312
361312
|
flexDirection: "column",
|
|
361313
361313
|
children: [
|
|
361314
361314
|
/* @__PURE__ */ jsx_runtime249.jsx(TheusBanner, {
|
|
361315
|
-
version: { VERSION: "0.2.
|
|
361315
|
+
version: { VERSION: "0.2.36", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
|
|
361316
361316
|
}),
|
|
361317
361317
|
/* @__PURE__ */ jsx_runtime249.jsxs(ThemedBox_default, {
|
|
361318
361318
|
flexDirection: "column",
|
|
@@ -361657,9 +361657,9 @@ function getAllReleaseNotes(changelogContent = getStoredChangelogFromMemory()) {
|
|
|
361657
361657
|
return [];
|
|
361658
361658
|
}
|
|
361659
361659
|
}
|
|
361660
|
-
async function checkForReleaseNotes(lastSeenVersion, currentVersion = { VERSION: "0.2.
|
|
361660
|
+
async function checkForReleaseNotes(lastSeenVersion, currentVersion = { VERSION: "0.2.36", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION) {
|
|
361661
361661
|
if (process.env.USER_TYPE === "ant") {
|
|
361662
|
-
const changelog = { VERSION: "0.2.
|
|
361662
|
+
const changelog = { VERSION: "0.2.36", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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;
|
|
361663
361663
|
if (changelog) {
|
|
361664
361664
|
const commits = changelog.trim().split(`
|
|
361665
361665
|
`).filter(Boolean);
|
|
@@ -365861,7 +365861,7 @@ var init_Messages = __esm(() => {
|
|
|
365861
365861
|
let t1;
|
|
365862
365862
|
if ($2[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
365863
365863
|
t1 = /* @__PURE__ */ jsx_runtime261.jsx(TheusSessionHeader, {
|
|
365864
|
-
version: { VERSION: "0.2.
|
|
365864
|
+
version: { VERSION: "0.2.36", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
|
|
365865
365865
|
});
|
|
365866
365866
|
$2[0] = t1;
|
|
365867
365867
|
} else {
|
|
@@ -394327,7 +394327,7 @@ async function captureMemoryDiagnostics(trigger, dumpNumber = 0) {
|
|
|
394327
394327
|
smapsRollup,
|
|
394328
394328
|
platform: process.platform,
|
|
394329
394329
|
nodeVersion: process.version,
|
|
394330
|
-
ccVersion: { VERSION: "0.2.
|
|
394330
|
+
ccVersion: { VERSION: "0.2.36", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
|
|
394331
394331
|
};
|
|
394332
394332
|
}
|
|
394333
394333
|
async function performHeapDump(trigger = "manual", dumpNumber = 0) {
|
|
@@ -394913,7 +394913,7 @@ var init_bridge_kick = __esm(() => {
|
|
|
394913
394913
|
var call57 = async () => {
|
|
394914
394914
|
return {
|
|
394915
394915
|
type: "text",
|
|
394916
|
-
value: { VERSION: "0.2.
|
|
394916
|
+
value: { VERSION: "0.2.36", BUILD_TIME: "1970-01-01T00:00:00.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.36", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.36", BUILD_TIME: "1970-01-01T00:00:00.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.36", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
|
|
394917
394917
|
};
|
|
394918
394918
|
}, version2, version_default;
|
|
394919
394919
|
var init_version = __esm(() => {
|
|
@@ -399355,13 +399355,13 @@ async function updateReleaseBundle() {
|
|
|
399355
399355
|
await gracefulShutdown(1);
|
|
399356
399356
|
return;
|
|
399357
399357
|
}
|
|
399358
|
-
if (gte({ VERSION: "0.2.
|
|
399359
|
-
writeToStdout(source_default.green(`Theus is up to date (${{ VERSION: "0.2.
|
|
399358
|
+
if (gte({ VERSION: "0.2.36", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
|
|
399359
|
+
writeToStdout(source_default.green(`Theus is up to date (${{ VERSION: "0.2.36", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION})`) + `
|
|
399360
399360
|
`);
|
|
399361
399361
|
await gracefulShutdown(0);
|
|
399362
399362
|
return;
|
|
399363
399363
|
}
|
|
399364
|
-
writeToStdout(`New version available: ${latest} (current: ${{ VERSION: "0.2.
|
|
399364
|
+
writeToStdout(`New version available: ${latest} (current: ${{ VERSION: "0.2.36", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION})
|
|
399365
399365
|
`);
|
|
399366
399366
|
writeToStdout(`Installing update from theus.pe/dl...
|
|
399367
399367
|
`);
|
|
@@ -399395,7 +399395,7 @@ async function updateReleaseBundle() {
|
|
|
399395
399395
|
return;
|
|
399396
399396
|
}
|
|
399397
399397
|
cpSync(staged, bundleDir, { recursive: true, force: true });
|
|
399398
|
-
writeToStdout(source_default.green(`Successfully updated from ${{ VERSION: "0.2.
|
|
399398
|
+
writeToStdout(source_default.green(`Successfully updated from ${{ VERSION: "0.2.36", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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}`) + `
|
|
399399
399399
|
`);
|
|
399400
399400
|
await regenerateCompletionCache();
|
|
399401
399401
|
} finally {
|
|
@@ -399408,7 +399408,7 @@ async function updateReleaseBundle() {
|
|
|
399408
399408
|
async function update() {
|
|
399409
399409
|
logEvent("tengu_update_check", {});
|
|
399410
399410
|
await updateNaupa();
|
|
399411
|
-
writeToStdout(`Current version: ${{ VERSION: "0.2.
|
|
399411
|
+
writeToStdout(`Current version: ${{ VERSION: "0.2.36", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION}
|
|
399412
399412
|
`);
|
|
399413
399413
|
const channel2 = getInitialSettings()?.autoUpdatesChannel ?? "latest";
|
|
399414
399414
|
writeToStdout(`Checking for updates to ${channel2} version...
|
|
@@ -399487,8 +399487,8 @@ async function update() {
|
|
|
399487
399487
|
writeToStdout(`Theus is managed by Homebrew.
|
|
399488
399488
|
`);
|
|
399489
399489
|
const latest = await getLatestVersion(channel2);
|
|
399490
|
-
if (latest && !gte({ VERSION: "0.2.
|
|
399491
|
-
writeToStdout(`Update available: ${{ VERSION: "0.2.
|
|
399490
|
+
if (latest && !gte({ VERSION: "0.2.36", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
|
|
399491
|
+
writeToStdout(`Update available: ${{ VERSION: "0.2.36", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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}
|
|
399492
399492
|
`);
|
|
399493
399493
|
writeToStdout(`
|
|
399494
399494
|
`);
|
|
@@ -399504,8 +399504,8 @@ async function update() {
|
|
|
399504
399504
|
writeToStdout(`Theus is managed by winget.
|
|
399505
399505
|
`);
|
|
399506
399506
|
const latest = await getLatestVersion(channel2);
|
|
399507
|
-
if (latest && !gte({ VERSION: "0.2.
|
|
399508
|
-
writeToStdout(`Update available: ${{ VERSION: "0.2.
|
|
399507
|
+
if (latest && !gte({ VERSION: "0.2.36", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
|
|
399508
|
+
writeToStdout(`Update available: ${{ VERSION: "0.2.36", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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}
|
|
399509
399509
|
`);
|
|
399510
399510
|
writeToStdout(`
|
|
399511
399511
|
`);
|
|
@@ -399521,8 +399521,8 @@ async function update() {
|
|
|
399521
399521
|
writeToStdout(`Theus is managed by apk.
|
|
399522
399522
|
`);
|
|
399523
399523
|
const latest = await getLatestVersion(channel2);
|
|
399524
|
-
if (latest && !gte({ VERSION: "0.2.
|
|
399525
|
-
writeToStdout(`Update available: ${{ VERSION: "0.2.
|
|
399524
|
+
if (latest && !gte({ VERSION: "0.2.36", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
|
|
399525
|
+
writeToStdout(`Update available: ${{ VERSION: "0.2.36", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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}
|
|
399526
399526
|
`);
|
|
399527
399527
|
writeToStdout(`
|
|
399528
399528
|
`);
|
|
@@ -399587,11 +399587,11 @@ async function update() {
|
|
|
399587
399587
|
`);
|
|
399588
399588
|
await gracefulShutdown(1);
|
|
399589
399589
|
}
|
|
399590
|
-
if (result.latestVersion === { VERSION: "0.2.
|
|
399591
|
-
writeToStdout(source_default.green(`Theus is up to date (${{ VERSION: "0.2.
|
|
399590
|
+
if (result.latestVersion === { VERSION: "0.2.36", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION) {
|
|
399591
|
+
writeToStdout(source_default.green(`Theus is up to date (${{ VERSION: "0.2.36", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION})`) + `
|
|
399592
399592
|
`);
|
|
399593
399593
|
} else {
|
|
399594
|
-
writeToStdout(source_default.green(`Successfully updated from ${{ VERSION: "0.2.
|
|
399594
|
+
writeToStdout(source_default.green(`Successfully updated from ${{ VERSION: "0.2.36", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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}`) + `
|
|
399595
399595
|
`);
|
|
399596
399596
|
await regenerateCompletionCache();
|
|
399597
399597
|
}
|
|
@@ -399610,9 +399610,9 @@ async function update() {
|
|
|
399610
399610
|
await removeInstalledSymlink();
|
|
399611
399611
|
}
|
|
399612
399612
|
logForDebugging("update: Checking npm registry for latest version");
|
|
399613
|
-
logForDebugging(`update: Package URL: ${{ VERSION: "0.2.
|
|
399613
|
+
logForDebugging(`update: Package URL: ${{ VERSION: "0.2.36", BUILD_TIME: "1970-01-01T00:00:00.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}`);
|
|
399614
399614
|
const npmTag = channel2 === "stable" ? "stable" : "latest";
|
|
399615
|
-
const npmCommand = `npm view ${{ VERSION: "0.2.
|
|
399615
|
+
const npmCommand = `npm view ${{ VERSION: "0.2.36", BUILD_TIME: "1970-01-01T00:00:00.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`;
|
|
399616
399616
|
logForDebugging(`update: Running: ${npmCommand}`);
|
|
399617
399617
|
const latestVersion = await getLatestVersion(channel2);
|
|
399618
399618
|
logForDebugging(`update: Latest version from npm: ${latestVersion || "FAILED"}`);
|
|
@@ -399632,7 +399632,7 @@ async function update() {
|
|
|
399632
399632
|
`);
|
|
399633
399633
|
process.stderr.write(` \u2022 Corporate proxy/firewall blocking npm
|
|
399634
399634
|
`);
|
|
399635
|
-
if ({ VERSION: "0.2.
|
|
399635
|
+
if ({ VERSION: "0.2.36", BUILD_TIME: "1970-01-01T00:00:00.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.36", BUILD_TIME: "1970-01-01T00:00:00.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")) {
|
|
399636
399636
|
process.stderr.write(` \u2022 Internal/development build not published to npm
|
|
399637
399637
|
`);
|
|
399638
399638
|
}
|
|
@@ -399644,19 +399644,19 @@ async function update() {
|
|
|
399644
399644
|
`);
|
|
399645
399645
|
process.stderr.write(` \u2022 Run with --debug flag for more details
|
|
399646
399646
|
`);
|
|
399647
|
-
const packageName = { VERSION: "0.2.
|
|
399647
|
+
const packageName = { VERSION: "0.2.36", BUILD_TIME: "1970-01-01T00:00:00.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");
|
|
399648
399648
|
process.stderr.write(` \u2022 Manually check: npm view ${packageName} version
|
|
399649
399649
|
`);
|
|
399650
399650
|
process.stderr.write(` \u2022 Check if you need to login: npm whoami
|
|
399651
399651
|
`);
|
|
399652
399652
|
await gracefulShutdown(1);
|
|
399653
399653
|
}
|
|
399654
|
-
if (gte({ VERSION: "0.2.
|
|
399655
|
-
writeToStdout(source_default.green(`Theus is up to date (${{ VERSION: "0.2.
|
|
399654
|
+
if (gte({ VERSION: "0.2.36", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
|
|
399655
|
+
writeToStdout(source_default.green(`Theus is up to date (${{ VERSION: "0.2.36", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION})`) + `
|
|
399656
399656
|
`);
|
|
399657
399657
|
await gracefulShutdown(0);
|
|
399658
399658
|
}
|
|
399659
|
-
writeToStdout(`New version available: ${latestVersion} (current: ${{ VERSION: "0.2.
|
|
399659
|
+
writeToStdout(`New version available: ${latestVersion} (current: ${{ VERSION: "0.2.36", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION})
|
|
399660
399660
|
`);
|
|
399661
399661
|
writeToStdout(`Installing update...
|
|
399662
399662
|
`);
|
|
@@ -399701,7 +399701,7 @@ async function update() {
|
|
|
399701
399701
|
logForDebugging(`update: Installation status: ${status2}`);
|
|
399702
399702
|
switch (status2) {
|
|
399703
399703
|
case "success":
|
|
399704
|
-
writeToStdout(source_default.green(`Successfully updated from ${{ VERSION: "0.2.
|
|
399704
|
+
writeToStdout(source_default.green(`Successfully updated from ${{ VERSION: "0.2.36", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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}`) + `
|
|
399705
399705
|
`);
|
|
399706
399706
|
await regenerateCompletionCache();
|
|
399707
399707
|
break;
|
|
@@ -399711,7 +399711,7 @@ async function update() {
|
|
|
399711
399711
|
if (useLocalUpdate) {
|
|
399712
399712
|
process.stderr.write(`Try manually updating with:
|
|
399713
399713
|
`);
|
|
399714
|
-
process.stderr.write(` cd ~/.theus/local && npm update ${{ VERSION: "0.2.
|
|
399714
|
+
process.stderr.write(` cd ~/.theus/local && npm update ${{ VERSION: "0.2.36", BUILD_TIME: "1970-01-01T00:00:00.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}
|
|
399715
399715
|
`);
|
|
399716
399716
|
} else {
|
|
399717
399717
|
process.stderr.write(`Try running with sudo or fix npm permissions
|
|
@@ -399727,7 +399727,7 @@ async function update() {
|
|
|
399727
399727
|
if (useLocalUpdate) {
|
|
399728
399728
|
process.stderr.write(`Try manually updating with:
|
|
399729
399729
|
`);
|
|
399730
|
-
process.stderr.write(` cd ~/.theus/local && npm update ${{ VERSION: "0.2.
|
|
399730
|
+
process.stderr.write(` cd ~/.theus/local && npm update ${{ VERSION: "0.2.36", BUILD_TIME: "1970-01-01T00:00:00.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}
|
|
399731
399731
|
`);
|
|
399732
399732
|
} else {
|
|
399733
399733
|
process.stderr.write(`Or consider using native installation with: theus install
|
|
@@ -408804,7 +408804,7 @@ var init_sessionStorage = __esm(() => {
|
|
|
408804
408804
|
init_settings2();
|
|
408805
408805
|
init_slowOperations();
|
|
408806
408806
|
init_uuid();
|
|
408807
|
-
VERSION4 = { VERSION: "0.2.
|
|
408807
|
+
VERSION4 = { VERSION: "0.2.36", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION;
|
|
408808
408808
|
MAX_TOMBSTONE_REWRITE_BYTES = 50 * 1024 * 1024;
|
|
408809
408809
|
SKIP_FIRST_PROMPT_PATTERN = /^(?:\s*<[a-z][\w-]*[\s>]|\[Request interrupted by user[^\]]*\])/;
|
|
408810
408810
|
EPHEMERAL_PROGRESS_TYPES = new Set([
|
|
@@ -410009,7 +410009,7 @@ var init_filesystem = __esm(() => {
|
|
|
410009
410009
|
});
|
|
410010
410010
|
getBundledSkillsRoot = memoize_default(function getBundledSkillsRoot2() {
|
|
410011
410011
|
const nonce = randomBytes21(16).toString("hex");
|
|
410012
|
-
return join149(getTheusTempDir(), "bundled-skills", { VERSION: "0.2.
|
|
410012
|
+
return join149(getTheusTempDir(), "bundled-skills", { VERSION: "0.2.36", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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);
|
|
410013
410013
|
});
|
|
410014
410014
|
getResolvedWorkingDirPaths = memoize_default(getPathsForPermissionCheck);
|
|
410015
410015
|
});
|
|
@@ -415188,7 +415188,7 @@ function getSimpleDoingTasksSection() {
|
|
|
415188
415188
|
];
|
|
415189
415189
|
const userHelpSubitems = [
|
|
415190
415190
|
`/help: Get help with using Theus`,
|
|
415191
|
-
`To give feedback, users should ${{ VERSION: "0.2.
|
|
415191
|
+
`To give feedback, users should ${{ VERSION: "0.2.36", BUILD_TIME: "1970-01-01T00:00:00.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}`
|
|
415192
415192
|
];
|
|
415193
415193
|
const items = [
|
|
415194
415194
|
`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.`,
|
|
@@ -416088,7 +416088,7 @@ function computeFingerprint(messageText, version3) {
|
|
|
416088
416088
|
}
|
|
416089
416089
|
function computeFingerprintFromMessages(messages) {
|
|
416090
416090
|
const firstMessageText = extractFirstMessageText(messages);
|
|
416091
|
-
return computeFingerprint(firstMessageText, { VERSION: "0.2.
|
|
416091
|
+
return computeFingerprint(firstMessageText, { VERSION: "0.2.36", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION);
|
|
416092
416092
|
}
|
|
416093
416093
|
var FINGERPRINT_SALT = "59cf53e54c78";
|
|
416094
416094
|
var init_fingerprint = () => {};
|
|
@@ -417956,12 +417956,23 @@ function getTheusChatProvider() {
|
|
|
417956
417956
|
}
|
|
417957
417957
|
return getManagedGatewayProvider();
|
|
417958
417958
|
}
|
|
417959
|
-
function
|
|
417959
|
+
function getManagedGatewayBases() {
|
|
417960
|
+
const override = env5("THEUS_GATEWAY_BASE_URL");
|
|
417961
|
+
if (override)
|
|
417962
|
+
return [override.replace(/\/+$/, "")];
|
|
417963
|
+
const configured = getOauthConfig().BASE_API_URL.replace(/\/+$/, "");
|
|
417964
|
+
if (configured === "https://theus.pe")
|
|
417965
|
+
return ["https://api.theus.pe", configured];
|
|
417966
|
+
return [configured];
|
|
417967
|
+
}
|
|
417968
|
+
function getManagedGatewayProvider(baseIndex = 0) {
|
|
417960
417969
|
try {
|
|
417961
417970
|
const accessToken = getTheusAIOAuthTokens()?.accessToken;
|
|
417962
417971
|
if (!accessToken || !isTheusAISubscriber())
|
|
417963
417972
|
return null;
|
|
417964
|
-
const base2 =
|
|
417973
|
+
const base2 = getManagedGatewayBases()[baseIndex];
|
|
417974
|
+
if (!base2)
|
|
417975
|
+
return null;
|
|
417965
417976
|
return {
|
|
417966
417977
|
id: "theus",
|
|
417967
417978
|
baseURL: `${base2}/v1`,
|
|
@@ -417986,6 +417997,7 @@ function buildFallbackChain(primary) {
|
|
|
417986
417997
|
};
|
|
417987
417998
|
push2(primary);
|
|
417988
417999
|
push2(getTheusChatProvider());
|
|
418000
|
+
push2(getManagedGatewayProvider(1));
|
|
417989
418001
|
if (!isEnvTruthy(process.env.THEUS_DISABLE_MAIN_PROVIDER)) {
|
|
417990
418002
|
const config3 = loadProvidersConfig4();
|
|
417991
418003
|
if (config3) {
|
|
@@ -418636,7 +418648,7 @@ async function sideQuery(opts) {
|
|
|
418636
418648
|
betas.push(STRUCTURED_OUTPUTS_BETA_HEADER);
|
|
418637
418649
|
}
|
|
418638
418650
|
const messageText = extractFirstUserMessageText(messages);
|
|
418639
|
-
const fingerprint = computeFingerprint(messageText, { VERSION: "0.2.
|
|
418651
|
+
const fingerprint = computeFingerprint(messageText, { VERSION: "0.2.36", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION);
|
|
418640
418652
|
const attributionHeader = getAttributionHeader(fingerprint);
|
|
418641
418653
|
const systemBlocks = [
|
|
418642
418654
|
attributionHeader ? { type: "text", text: attributionHeader } : null,
|
|
@@ -419939,7 +419951,7 @@ async function handleMemories(state) {
|
|
|
419939
419951
|
async function runProjectContextMcpServer() {
|
|
419940
419952
|
const projectRoot = process.env.THEUS_PROJECT_ROOT || process.cwd();
|
|
419941
419953
|
const state = new ProjectContextState(projectRoot);
|
|
419942
|
-
const server2 = new Server({ name: SERVER_NAME, version: { VERSION: "0.2.
|
|
419954
|
+
const server2 = new Server({ name: SERVER_NAME, version: { VERSION: "0.2.36", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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: {} } });
|
|
419943
419955
|
server2.setRequestHandler(ListToolsRequestSchema, async () => ({
|
|
419944
419956
|
tools: TOOL_DEFINITIONS.map((t) => ({
|
|
419945
419957
|
name: t.name,
|
|
@@ -421919,7 +421931,7 @@ function createBridgeLogger(options2) {
|
|
|
421919
421931
|
connectUrl = buildBridgeConnectUrl(environmentId, cachedIngressUrl);
|
|
421920
421932
|
regenerateQr(connectUrl);
|
|
421921
421933
|
if (verbose) {
|
|
421922
|
-
write(source_default.dim(`Remote Control`) + ` v${{ VERSION: "0.2.
|
|
421934
|
+
write(source_default.dim(`Remote Control`) + ` v${{ VERSION: "0.2.36", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION}
|
|
421923
421935
|
`);
|
|
421924
421936
|
}
|
|
421925
421937
|
if (verbose) {
|
|
@@ -422892,7 +422904,7 @@ function appendToLog(path19, message) {
|
|
|
422892
422904
|
cwd: getFsImplementation().cwd(),
|
|
422893
422905
|
userType: process.env.USER_TYPE,
|
|
422894
422906
|
sessionId: getSessionId(),
|
|
422895
|
-
version: { VERSION: "0.2.
|
|
422907
|
+
version: { VERSION: "0.2.36", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
|
|
422896
422908
|
};
|
|
422897
422909
|
getLogWriter(path19).write(messageWithTimestamp);
|
|
422898
422910
|
}
|
|
@@ -424162,7 +424174,7 @@ Spawn mode for this project:
|
|
|
424162
424174
|
const api2 = createBridgeApiClient({
|
|
424163
424175
|
baseUrl,
|
|
424164
424176
|
getAccessToken: getBridgeAccessToken2,
|
|
424165
|
-
runnerVersion: { VERSION: "0.2.
|
|
424177
|
+
runnerVersion: { VERSION: "0.2.36", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
|
|
424166
424178
|
onDebug: logForDebugging,
|
|
424167
424179
|
onAuth401: handleOAuth401Error2,
|
|
424168
424180
|
getTrustedDeviceToken
|
|
@@ -424400,7 +424412,7 @@ async function runBridgeHeadless(opts, signal) {
|
|
|
424400
424412
|
const api2 = createBridgeApiClient({
|
|
424401
424413
|
baseUrl,
|
|
424402
424414
|
getAccessToken: opts.getAccessToken,
|
|
424403
|
-
runnerVersion: { VERSION: "0.2.
|
|
424415
|
+
runnerVersion: { VERSION: "0.2.36", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
|
|
424404
424416
|
onDebug: log2,
|
|
424405
424417
|
onAuth401: opts.onAuth401,
|
|
424406
424418
|
getTrustedDeviceToken
|
|
@@ -428464,7 +428476,7 @@ function buildSystemInitMessage(inputs) {
|
|
|
428464
428476
|
slash_commands: inputs.commands.filter((c5) => c5.userInvocable !== false).map((c5) => c5.name),
|
|
428465
428477
|
apiKeySource: getTheusApiKeyWithSource().source,
|
|
428466
428478
|
betas: getSdkBetas(),
|
|
428467
|
-
theus_code_version: { VERSION: "0.2.
|
|
428479
|
+
theus_code_version: { VERSION: "0.2.36", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
|
|
428468
428480
|
output_style: outputStyle2,
|
|
428469
428481
|
agents: inputs.agents.map((agent) => agent.agentType),
|
|
428470
428482
|
skills: inputs.skills.filter((s) => s.userInvocable !== false).map((skill) => skill.name),
|
|
@@ -428504,8 +428516,8 @@ async function getEnvLessBridgeConfig() {
|
|
|
428504
428516
|
}
|
|
428505
428517
|
async function checkEnvLessBridgeMinVersion() {
|
|
428506
428518
|
const cfg = await getEnvLessBridgeConfig();
|
|
428507
|
-
if (cfg.min_version && lt({ VERSION: "0.2.
|
|
428508
|
-
return `Your version of Theus (${{ VERSION: "0.2.
|
|
428519
|
+
if (cfg.min_version && lt({ VERSION: "0.2.36", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
|
|
428520
|
+
return `Your version of Theus (${{ VERSION: "0.2.36", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.
|
|
428509
428521
|
Version ${cfg.min_version} or higher is required. Run \`theus update\` to update.`;
|
|
428510
428522
|
}
|
|
428511
428523
|
return null;
|
|
@@ -430828,7 +430840,7 @@ async function initBridgeCore(params) {
|
|
|
430828
430840
|
const rawApi = createBridgeApiClient({
|
|
430829
430841
|
baseUrl,
|
|
430830
430842
|
getAccessToken,
|
|
430831
|
-
runnerVersion: { VERSION: "0.2.
|
|
430843
|
+
runnerVersion: { VERSION: "0.2.36", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
|
|
430832
430844
|
onDebug: logForDebugging,
|
|
430833
430845
|
onAuth401,
|
|
430834
430846
|
getTrustedDeviceToken
|
|
@@ -447569,7 +447581,7 @@ var init_useVoiceEnabled = __esm(() => {
|
|
|
447569
447581
|
function getSemverPart(version3) {
|
|
447570
447582
|
return `${import_semver14.major(version3, { loose: true })}.${import_semver14.minor(version3, { loose: true })}.${import_semver14.patch(version3, { loose: true })}`;
|
|
447571
447583
|
}
|
|
447572
|
-
function useUpdateNotification(updatedVersion, initialVersion = { VERSION: "0.2.
|
|
447584
|
+
function useUpdateNotification(updatedVersion, initialVersion = { VERSION: "0.2.36", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION) {
|
|
447573
447585
|
const [lastNotifiedSemver, setLastNotifiedSemver] = import_react231.useState(() => getSemverPart(initialVersion));
|
|
447574
447586
|
if (!updatedVersion) {
|
|
447575
447587
|
return null;
|
|
@@ -447609,7 +447621,7 @@ function AutoUpdater({
|
|
|
447609
447621
|
return;
|
|
447610
447622
|
}
|
|
447611
447623
|
if (false) {}
|
|
447612
|
-
const currentVersion = { VERSION: "0.2.
|
|
447624
|
+
const currentVersion = { VERSION: "0.2.36", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION;
|
|
447613
447625
|
const channel2 = getInitialSettings()?.autoUpdatesChannel ?? "latest";
|
|
447614
447626
|
let latestVersion = await getLatestVersion(channel2);
|
|
447615
447627
|
const isDisabled2 = isAutoUpdaterDisabled();
|
|
@@ -447745,7 +447757,7 @@ function AutoUpdater({
|
|
|
447745
447757
|
" ",
|
|
447746
447758
|
/* @__PURE__ */ jsx_runtime406.jsx(ThemedText, {
|
|
447747
447759
|
bold: true,
|
|
447748
|
-
children: hasLocalInstall ? `cd ~/.theus/local && npm update ${{ VERSION: "0.2.
|
|
447760
|
+
children: hasLocalInstall ? `cd ~/.theus/local && npm update ${{ VERSION: "0.2.36", BUILD_TIME: "1970-01-01T00:00:00.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.36", BUILD_TIME: "1970-01-01T00:00:00.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}`
|
|
447749
447761
|
})
|
|
447750
447762
|
]
|
|
447751
447763
|
})
|
|
@@ -447822,12 +447834,12 @@ function NativeAutoUpdater({
|
|
|
447822
447834
|
logEvent("tengu_native_auto_updater_start", {});
|
|
447823
447835
|
try {
|
|
447824
447836
|
const maxVersion = await getMaxVersion();
|
|
447825
|
-
if (maxVersion && gt({ VERSION: "0.2.
|
|
447837
|
+
if (maxVersion && gt({ VERSION: "0.2.36", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
|
|
447826
447838
|
const msg = await getMaxVersionMessage();
|
|
447827
447839
|
setMaxVersionIssue(msg ?? "affects your version");
|
|
447828
447840
|
}
|
|
447829
447841
|
const result = await installLatest(channel2);
|
|
447830
|
-
const currentVersion = { VERSION: "0.2.
|
|
447842
|
+
const currentVersion = { VERSION: "0.2.36", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION;
|
|
447831
447843
|
const latencyMs = Date.now() - startTime2;
|
|
447832
447844
|
if (result.lockFailed) {
|
|
447833
447845
|
logEvent("tengu_native_auto_updater_lock_contention", {
|
|
@@ -447964,17 +447976,17 @@ function PackageManagerAutoUpdater(t0) {
|
|
|
447964
447976
|
const maxVersion = await getMaxVersion();
|
|
447965
447977
|
if (maxVersion && latest && gt(latest, maxVersion)) {
|
|
447966
447978
|
logForDebugging(`PackageManagerAutoUpdater: maxVersion ${maxVersion} is set, capping update from ${latest} to ${maxVersion}`);
|
|
447967
|
-
if (gte({ VERSION: "0.2.
|
|
447968
|
-
logForDebugging(`PackageManagerAutoUpdater: current version ${{ VERSION: "0.2.
|
|
447979
|
+
if (gte({ VERSION: "0.2.36", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
|
|
447980
|
+
logForDebugging(`PackageManagerAutoUpdater: current version ${{ VERSION: "0.2.36", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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`);
|
|
447969
447981
|
setUpdateAvailable(false);
|
|
447970
447982
|
return;
|
|
447971
447983
|
}
|
|
447972
447984
|
latest = maxVersion;
|
|
447973
447985
|
}
|
|
447974
|
-
const hasUpdate = latest && !gte({ VERSION: "0.2.
|
|
447986
|
+
const hasUpdate = latest && !gte({ VERSION: "0.2.36", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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);
|
|
447975
447987
|
setUpdateAvailable(!!hasUpdate);
|
|
447976
447988
|
if (hasUpdate) {
|
|
447977
|
-
logForDebugging(`PackageManagerAutoUpdater: Update available ${{ VERSION: "0.2.
|
|
447989
|
+
logForDebugging(`PackageManagerAutoUpdater: Update available ${{ VERSION: "0.2.36", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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}`);
|
|
447978
447990
|
}
|
|
447979
447991
|
};
|
|
447980
447992
|
$2[0] = t1;
|
|
@@ -448008,7 +448020,7 @@ function PackageManagerAutoUpdater(t0) {
|
|
|
448008
448020
|
wrap: "truncate",
|
|
448009
448021
|
children: [
|
|
448010
448022
|
"currentVersion: ",
|
|
448011
|
-
{ VERSION: "0.2.
|
|
448023
|
+
{ VERSION: "0.2.36", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
|
|
448012
448024
|
]
|
|
448013
448025
|
});
|
|
448014
448026
|
$2[3] = verbose;
|
|
@@ -455881,7 +455893,7 @@ function buildStatusLineCommandInput(permissionMode, exceeds200kTokens, settings
|
|
|
455881
455893
|
project_dir: getOriginalCwd(),
|
|
455882
455894
|
added_dirs: addedDirs
|
|
455883
455895
|
},
|
|
455884
|
-
version: { VERSION: "0.2.
|
|
455896
|
+
version: { VERSION: "0.2.36", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
|
|
455885
455897
|
output_style: {
|
|
455886
455898
|
name: outputStyleName
|
|
455887
455899
|
},
|
|
@@ -467301,7 +467313,7 @@ async function submitTranscriptShare(messages, trigger, appearanceId) {
|
|
|
467301
467313
|
} catch {}
|
|
467302
467314
|
const data = {
|
|
467303
467315
|
trigger,
|
|
467304
|
-
version: { VERSION: "0.2.
|
|
467316
|
+
version: { VERSION: "0.2.36", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
|
|
467305
467317
|
platform: process.platform,
|
|
467306
467318
|
transcript,
|
|
467307
467319
|
subagentTranscripts: Object.keys(subagentTranscripts).length > 0 ? subagentTranscripts : undefined,
|
|
@@ -480308,7 +480320,7 @@ function completeOnboarding() {
|
|
|
480308
480320
|
saveGlobalConfig((current) => ({
|
|
480309
480321
|
...current,
|
|
480310
480322
|
hasCompletedOnboarding: true,
|
|
480311
|
-
lastOnboardingVersion: { VERSION: "0.2.
|
|
480323
|
+
lastOnboardingVersion: { VERSION: "0.2.36", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
|
|
480312
480324
|
}));
|
|
480313
480325
|
}
|
|
480314
480326
|
function showDialog(root2, renderer) {
|
|
@@ -491123,7 +491135,7 @@ async function startMCPServer(cwd3, debug3, verbose) {
|
|
|
491123
491135
|
setCwd(cwd3);
|
|
491124
491136
|
const server2 = new Server({
|
|
491125
491137
|
name: "theus/tengu",
|
|
491126
|
-
version: { VERSION: "0.2.
|
|
491138
|
+
version: { VERSION: "0.2.36", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
|
|
491127
491139
|
}, {
|
|
491128
491140
|
capabilities: {
|
|
491129
491141
|
tools: {}
|
|
@@ -492565,7 +492577,7 @@ async function setupTokenHandler(root2) {
|
|
|
492565
492577
|
gap: 1,
|
|
492566
492578
|
children: [
|
|
492567
492579
|
/* @__PURE__ */ jsx_runtime493.jsx(TheusBanner, {
|
|
492568
|
-
version: { VERSION: "0.2.
|
|
492580
|
+
version: { VERSION: "0.2.36", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
|
|
492569
492581
|
}),
|
|
492570
492582
|
showAuthWarning && /* @__PURE__ */ jsx_runtime493.jsxs(ThemedBox_default, {
|
|
492571
492583
|
flexDirection: "column",
|
|
@@ -494034,7 +494046,7 @@ ${assistantAddendum}` : assistantAddendum;
|
|
|
494034
494046
|
}
|
|
494035
494047
|
}
|
|
494036
494048
|
logForDiagnosticsNoPII("info", "started", {
|
|
494037
|
-
version: { VERSION: "0.2.
|
|
494049
|
+
version: { VERSION: "0.2.36", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
|
|
494038
494050
|
is_native_binary: isInBundledMode()
|
|
494039
494051
|
});
|
|
494040
494052
|
registerCleanup(async () => {
|
|
@@ -494902,7 +494914,7 @@ Usage: theus --remote "your task description"`, () => gracefulShutdown(1));
|
|
|
494902
494914
|
pendingHookMessages
|
|
494903
494915
|
}, renderAndRun);
|
|
494904
494916
|
}
|
|
494905
|
-
}).version(`${{ VERSION: "0.2.
|
|
494917
|
+
}).version(`${{ VERSION: "0.2.36", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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");
|
|
494906
494918
|
program2.option("-w, --worktree [name]", "Crea un nuevo worktree de git para esta sesi\xF3n (opcionalmente indica un nombre)");
|
|
494907
494919
|
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.");
|
|
494908
494920
|
if (canUserConfigureAdvisor()) {
|
|
@@ -495454,7 +495466,7 @@ if (false) {}
|
|
|
495454
495466
|
async function main2() {
|
|
495455
495467
|
const args = process.argv.slice(2);
|
|
495456
495468
|
if (args.length === 1 && (args[0] === "--version" || args[0] === "-v" || args[0] === "-V")) {
|
|
495457
|
-
console.log(`${{ VERSION: "0.2.
|
|
495469
|
+
console.log(`${{ VERSION: "0.2.36", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)`);
|
|
495458
495470
|
return;
|
|
495459
495471
|
}
|
|
495460
495472
|
const {
|