theus-cli 0.2.16 → 0.2.17
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 +139 -128
- package/package.json +1 -1
package/cli.js
CHANGED
|
@@ -58304,7 +58304,7 @@ async function _executeApiKeyHelper(isNonInteractiveSession) {
|
|
|
58304
58304
|
if (isApiKeyHelperFromProjectOrLocalSettings()) {
|
|
58305
58305
|
const hasTrust = checkHasTrustDialogAccepted();
|
|
58306
58306
|
if (!hasTrust && !isNonInteractiveSession) {
|
|
58307
|
-
const error40 = new Error(`Security: apiKeyHelper executed before workspace trust is confirmed. If you see this message, post in ${{ VERSION: "0.2.
|
|
58307
|
+
const error40 = new Error(`Security: apiKeyHelper executed before workspace trust is confirmed. If you see this message, post in ${{ VERSION: "0.2.17", BUILD_TIME: "1970-01-01T00:00:00.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}.`);
|
|
58308
58308
|
logAntError("apiKeyHelper invoked before trust check", error40);
|
|
58309
58309
|
logEvent("tengu_apiKeyHelper_missing_trust11", {});
|
|
58310
58310
|
return null;
|
|
@@ -58348,7 +58348,7 @@ async function runAwsAuthRefresh() {
|
|
|
58348
58348
|
if (isAwsAuthRefreshFromProjectSettings()) {
|
|
58349
58349
|
const hasTrust = checkHasTrustDialogAccepted();
|
|
58350
58350
|
if (!hasTrust && !getIsNonInteractiveSession()) {
|
|
58351
|
-
const error40 = new Error(`Security: awsAuthRefresh executed before workspace trust is confirmed. If you see this message, post in ${{ VERSION: "0.2.
|
|
58351
|
+
const error40 = new Error(`Security: awsAuthRefresh executed before workspace trust is confirmed. If you see this message, post in ${{ VERSION: "0.2.17", BUILD_TIME: "1970-01-01T00:00:00.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}.`);
|
|
58352
58352
|
logAntError("awsAuthRefresh invoked before trust check", error40);
|
|
58353
58353
|
logEvent("tengu_awsAuthRefresh_missing_trust", {});
|
|
58354
58354
|
return false;
|
|
@@ -58408,7 +58408,7 @@ async function getAwsCredsFromCredentialExport() {
|
|
|
58408
58408
|
if (isAwsCredentialExportFromProjectSettings()) {
|
|
58409
58409
|
const hasTrust = checkHasTrustDialogAccepted();
|
|
58410
58410
|
if (!hasTrust && !getIsNonInteractiveSession()) {
|
|
58411
|
-
const error40 = new Error(`Security: awsCredentialExport executed before workspace trust is confirmed. If you see this message, post in ${{ VERSION: "0.2.
|
|
58411
|
+
const error40 = new Error(`Security: awsCredentialExport executed before workspace trust is confirmed. If you see this message, post in ${{ VERSION: "0.2.17", BUILD_TIME: "1970-01-01T00:00:00.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}.`);
|
|
58412
58412
|
logAntError("awsCredentialExport invoked before trust check", error40);
|
|
58413
58413
|
logEvent("tengu_awsCredentialExport_missing_trust", {});
|
|
58414
58414
|
return null;
|
|
@@ -58493,7 +58493,7 @@ async function runGcpAuthRefresh() {
|
|
|
58493
58493
|
if (isGcpAuthRefreshFromProjectSettings()) {
|
|
58494
58494
|
const hasTrust = checkHasTrustDialogAccepted();
|
|
58495
58495
|
if (!hasTrust && !getIsNonInteractiveSession()) {
|
|
58496
|
-
const error40 = new Error(`Security: gcpAuthRefresh executed before workspace trust is confirmed. If you see this message, post in ${{ VERSION: "0.2.
|
|
58496
|
+
const error40 = new Error(`Security: gcpAuthRefresh executed before workspace trust is confirmed. If you see this message, post in ${{ VERSION: "0.2.17", BUILD_TIME: "1970-01-01T00:00:00.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}.`);
|
|
58497
58497
|
logAntError("gcpAuthRefresh invoked before trust check", error40);
|
|
58498
58498
|
logEvent("tengu_gcpAuthRefresh_missing_trust", {});
|
|
58499
58499
|
return false;
|
|
@@ -59188,7 +59188,7 @@ var init_auth = __esm(() => {
|
|
|
59188
59188
|
|
|
59189
59189
|
// utils/userAgent.ts
|
|
59190
59190
|
function getTheusCodeUserAgent() {
|
|
59191
|
-
return `theus-code/${{ VERSION: "0.2.
|
|
59191
|
+
return `theus-code/${{ VERSION: "0.2.17", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION}`;
|
|
59192
59192
|
}
|
|
59193
59193
|
|
|
59194
59194
|
// utils/workloadContext.ts
|
|
@@ -59210,7 +59210,7 @@ function getUserAgent() {
|
|
|
59210
59210
|
const clientApp = process.env.THEUS_AGENT_SDK_CLIENT_APP ? `, client-app/${process.env.THEUS_AGENT_SDK_CLIENT_APP}` : "";
|
|
59211
59211
|
const workload = getWorkload();
|
|
59212
59212
|
const workloadSuffix = workload ? `, workload/${workload}` : "";
|
|
59213
|
-
return `theus-cli/${{ VERSION: "0.2.
|
|
59213
|
+
return `theus-cli/${{ VERSION: "0.2.17", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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})`;
|
|
59214
59214
|
}
|
|
59215
59215
|
function getMCPUserAgent() {
|
|
59216
59216
|
const parts = [];
|
|
@@ -59224,7 +59224,7 @@ function getMCPUserAgent() {
|
|
|
59224
59224
|
parts.push(`client-app/${process.env.THEUS_AGENT_SDK_CLIENT_APP}`);
|
|
59225
59225
|
}
|
|
59226
59226
|
const suffix = parts.length > 0 ? ` (${parts.join(", ")})` : "";
|
|
59227
|
-
return `theus-code/${{ VERSION: "0.2.
|
|
59227
|
+
return `theus-code/${{ VERSION: "0.2.17", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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}`;
|
|
59228
59228
|
}
|
|
59229
59229
|
function getWebFetchUserAgent() {
|
|
59230
59230
|
return `Theus-User (${getTheusCodeUserAgent()}; +https://support.theus.pe/)`;
|
|
@@ -59362,7 +59362,7 @@ var init_user = __esm(() => {
|
|
|
59362
59362
|
deviceId,
|
|
59363
59363
|
sessionId: getSessionId(),
|
|
59364
59364
|
email: getEmail(),
|
|
59365
|
-
appVersion: { VERSION: "0.2.
|
|
59365
|
+
appVersion: { VERSION: "0.2.17", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
|
|
59366
59366
|
platform: getHostPlatformForAnalytics(),
|
|
59367
59367
|
organizationUuid,
|
|
59368
59368
|
accountUuid,
|
|
@@ -61077,7 +61077,7 @@ var init_metadata = __esm(() => {
|
|
|
61077
61077
|
COMPOUND_OPERATOR_REGEX = /\s*(?:&&|\|\||[;|])\s*/;
|
|
61078
61078
|
WHITESPACE_REGEX = /\s+/;
|
|
61079
61079
|
getVersionBase = memoize_default(() => {
|
|
61080
|
-
const match = { VERSION: "0.2.
|
|
61080
|
+
const match = { VERSION: "0.2.17", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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]+)?/);
|
|
61081
61081
|
return match ? match[0] : undefined;
|
|
61082
61082
|
});
|
|
61083
61083
|
buildEnvContext = memoize_default(async () => {
|
|
@@ -61117,9 +61117,9 @@ var init_metadata = __esm(() => {
|
|
|
61117
61117
|
isGithubAction: isEnvTruthy(process.env.GITHUB_ACTIONS),
|
|
61118
61118
|
isTheusCodeAction: isEnvTruthy(process.env.THEUS_CODE_ACTION),
|
|
61119
61119
|
isTheusAiAuth: isTheusAISubscriber(),
|
|
61120
|
-
version: { VERSION: "0.2.
|
|
61120
|
+
version: { VERSION: "0.2.17", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
|
|
61121
61121
|
versionBase: getVersionBase(),
|
|
61122
|
-
buildTime: { VERSION: "0.2.
|
|
61122
|
+
buildTime: { VERSION: "0.2.17", BUILD_TIME: "1970-01-01T00:00:00.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,
|
|
61123
61123
|
deploymentEnvironment: env3.detectDeploymentEnvironment(),
|
|
61124
61124
|
...isEnvTruthy(process.env.GITHUB_ACTIONS) && {
|
|
61125
61125
|
githubEventName: process.env.GITHUB_EVENT_NAME,
|
|
@@ -61785,7 +61785,7 @@ function initialize1PEventLogging() {
|
|
|
61785
61785
|
const platform2 = getPlatform();
|
|
61786
61786
|
const attributes = {
|
|
61787
61787
|
[ATTR_SERVICE_NAME]: "theus-code",
|
|
61788
|
-
[ATTR_SERVICE_VERSION]: { VERSION: "0.2.
|
|
61788
|
+
[ATTR_SERVICE_VERSION]: { VERSION: "0.2.17", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
|
|
61789
61789
|
};
|
|
61790
61790
|
if (platform2 === "wsl") {
|
|
61791
61791
|
const wslVersion = getWslVersion();
|
|
@@ -61812,7 +61812,7 @@ function initialize1PEventLogging() {
|
|
|
61812
61812
|
})
|
|
61813
61813
|
]
|
|
61814
61814
|
});
|
|
61815
|
-
firstPartyEventLogger = firstPartyEventLoggerProvider.getLogger("com.theus.theus_code.events", { VERSION: "0.2.
|
|
61815
|
+
firstPartyEventLogger = firstPartyEventLoggerProvider.getLogger("com.theus.theus_code.events", { VERSION: "0.2.17", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION);
|
|
61816
61816
|
}
|
|
61817
61817
|
async function reinitialize1PEventLoggingIfConfigChanged() {
|
|
61818
61818
|
if (!is1PEventLoggingEnabled() || !firstPartyEventLoggerProvider) {
|
|
@@ -63683,7 +63683,7 @@ function getAttributionHeader(fingerprint) {
|
|
|
63683
63683
|
if (!isAttributionHeaderEnabled()) {
|
|
63684
63684
|
return "";
|
|
63685
63685
|
}
|
|
63686
|
-
const version2 = `${{ VERSION: "0.2.
|
|
63686
|
+
const version2 = `${{ VERSION: "0.2.17", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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}`;
|
|
63687
63687
|
const entrypoint = process.env.THEUS_CODE_ENTRYPOINT ?? "unknown";
|
|
63688
63688
|
const cch = "";
|
|
63689
63689
|
const workload = getWorkload();
|
|
@@ -107739,7 +107739,7 @@ Complete the user's request by providing accurate, documentation-based guidance.
|
|
|
107739
107739
|
}
|
|
107740
107740
|
function getFeedbackGuideline() {
|
|
107741
107741
|
if (isUsing3PServices()) {
|
|
107742
|
-
return `- When you cannot find an answer or the feature doesn't exist, direct the user to ${{ VERSION: "0.2.
|
|
107742
|
+
return `- When you cannot find an answer or the feature doesn't exist, direct the user to ${{ VERSION: "0.2.17", BUILD_TIME: "1970-01-01T00:00:00.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}`;
|
|
107743
107743
|
}
|
|
107744
107744
|
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";
|
|
107745
107745
|
}
|
|
@@ -166444,7 +166444,7 @@ function getTelemetryAttributes() {
|
|
|
166444
166444
|
attributes["session.id"] = sessionId;
|
|
166445
166445
|
}
|
|
166446
166446
|
if (shouldIncludeAttribute("OTEL_METRICS_INCLUDE_VERSION")) {
|
|
166447
|
-
attributes["app.version"] = { VERSION: "0.2.
|
|
166447
|
+
attributes["app.version"] = { VERSION: "0.2.17", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION;
|
|
166448
166448
|
}
|
|
166449
166449
|
const oauthAccount = getOauthAccountInfo();
|
|
166450
166450
|
if (oauthAccount) {
|
|
@@ -202502,7 +202502,7 @@ function getInstallationEnv() {
|
|
|
202502
202502
|
return;
|
|
202503
202503
|
}
|
|
202504
202504
|
function getTheusCodeVersion() {
|
|
202505
|
-
return { VERSION: "0.2.
|
|
202505
|
+
return { VERSION: "0.2.17", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION;
|
|
202506
202506
|
}
|
|
202507
202507
|
async function getInstalledVSCodeExtensionVersion(command) {
|
|
202508
202508
|
const { stdout } = await execFileNoThrow(command, ["--list-extensions", "--show-versions"], {
|
|
@@ -204020,7 +204020,7 @@ async function getMcpHeadersFromHelper(serverName, config2) {
|
|
|
204020
204020
|
if ("scope" in config2 && isMcpServerFromProjectOrLocalSettings(config2) && !getIsNonInteractiveSession()) {
|
|
204021
204021
|
const hasTrust = checkHasTrustDialogAccepted();
|
|
204022
204022
|
if (!hasTrust) {
|
|
204023
|
-
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.
|
|
204023
|
+
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.17", BUILD_TIME: "1970-01-01T00:00:00.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}.`);
|
|
204024
204024
|
logAntError("MCP headersHelper invoked before trust check", error40);
|
|
204025
204025
|
logEvent("tengu_mcp_headersHelper_missing_trust", {});
|
|
204026
204026
|
return null;
|
|
@@ -205230,7 +205230,7 @@ async function setupSdkMcpClients(sdkMcpConfigs, sendMcpMessage) {
|
|
|
205230
205230
|
const client2 = new Client({
|
|
205231
205231
|
name: "theus-code",
|
|
205232
205232
|
title: "Theus",
|
|
205233
|
-
version: { VERSION: "0.2.
|
|
205233
|
+
version: { VERSION: "0.2.17", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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",
|
|
205234
205234
|
description: "Theus's agentic coding tool",
|
|
205235
205235
|
websiteUrl: PRODUCT_URL
|
|
205236
205236
|
}, {
|
|
@@ -205584,7 +205584,7 @@ var init_client5 = __esm(() => {
|
|
|
205584
205584
|
const client2 = new Client({
|
|
205585
205585
|
name: "theus-code",
|
|
205586
205586
|
title: "Theus",
|
|
205587
|
-
version: { VERSION: "0.2.
|
|
205587
|
+
version: { VERSION: "0.2.17", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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",
|
|
205588
205588
|
description: "Theus's agentic coding tool",
|
|
205589
205589
|
websiteUrl: PRODUCT_URL
|
|
205590
205590
|
}, {
|
|
@@ -216162,7 +216162,7 @@ async function initializeBetaTracing(resource) {
|
|
|
216162
216162
|
});
|
|
216163
216163
|
logs.setGlobalLoggerProvider(loggerProvider);
|
|
216164
216164
|
setLoggerProvider(loggerProvider);
|
|
216165
|
-
const eventLogger = logs.getLogger("com.theus.theus_code.events", { VERSION: "0.2.
|
|
216165
|
+
const eventLogger = logs.getLogger("com.theus.theus_code.events", { VERSION: "0.2.17", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION);
|
|
216166
216166
|
setEventLogger(eventLogger);
|
|
216167
216167
|
process.on("beforeExit", async () => {
|
|
216168
216168
|
await loggerProvider?.forceFlush();
|
|
@@ -216202,7 +216202,7 @@ async function initializeTelemetry() {
|
|
|
216202
216202
|
const platform4 = getPlatform();
|
|
216203
216203
|
const baseAttributes = {
|
|
216204
216204
|
[ATTR_SERVICE_NAME]: "theus-code",
|
|
216205
|
-
[ATTR_SERVICE_VERSION]: { VERSION: "0.2.
|
|
216205
|
+
[ATTR_SERVICE_VERSION]: { VERSION: "0.2.17", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
|
|
216206
216206
|
};
|
|
216207
216207
|
if (platform4 === "wsl") {
|
|
216208
216208
|
const wslVersion = getWslVersion();
|
|
@@ -216247,7 +216247,7 @@ async function initializeTelemetry() {
|
|
|
216247
216247
|
} catch {}
|
|
216248
216248
|
};
|
|
216249
216249
|
registerCleanup(shutdownTelemetry2);
|
|
216250
|
-
return meterProvider2.getMeter("com.theus.theus_code", { VERSION: "0.2.
|
|
216250
|
+
return meterProvider2.getMeter("com.theus.theus_code", { VERSION: "0.2.17", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION);
|
|
216251
216251
|
}
|
|
216252
216252
|
const meterProvider = new MeterProvider({
|
|
216253
216253
|
resource,
|
|
@@ -216267,7 +216267,7 @@ async function initializeTelemetry() {
|
|
|
216267
216267
|
});
|
|
216268
216268
|
logs.setGlobalLoggerProvider(loggerProvider);
|
|
216269
216269
|
setLoggerProvider(loggerProvider);
|
|
216270
|
-
const eventLogger = logs.getLogger("com.theus.theus_code.events", { VERSION: "0.2.
|
|
216270
|
+
const eventLogger = logs.getLogger("com.theus.theus_code.events", { VERSION: "0.2.17", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION);
|
|
216271
216271
|
setEventLogger(eventLogger);
|
|
216272
216272
|
logForDebugging("[3P telemetry] Event logger set successfully");
|
|
216273
216273
|
process.on("beforeExit", async () => {
|
|
@@ -216329,7 +216329,7 @@ Current timeout: ${timeoutMs}ms
|
|
|
216329
216329
|
}
|
|
216330
216330
|
};
|
|
216331
216331
|
registerCleanup(shutdownTelemetry);
|
|
216332
|
-
return meterProvider.getMeter("com.theus.theus_code", { VERSION: "0.2.
|
|
216332
|
+
return meterProvider.getMeter("com.theus.theus_code", { VERSION: "0.2.17", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION);
|
|
216333
216333
|
}
|
|
216334
216334
|
async function flushTelemetry() {
|
|
216335
216335
|
const meterProvider = getMeterProvider();
|
|
@@ -216869,7 +216869,7 @@ async function installOrUpdateTheusPackage(channel2, specificVersion) {
|
|
|
216869
216869
|
return "install_failed";
|
|
216870
216870
|
}
|
|
216871
216871
|
const versionSpec = specificVersion ? specificVersion : channel2 === "stable" ? "stable" : "latest";
|
|
216872
|
-
const result = await execFileNoThrowWithCwd("npm", ["install", `${{ VERSION: "0.2.
|
|
216872
|
+
const result = await execFileNoThrowWithCwd("npm", ["install", `${{ VERSION: "0.2.17", BUILD_TIME: "1970-01-01T00:00:00.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 });
|
|
216873
216873
|
if (result.code !== 0) {
|
|
216874
216874
|
const error40 = new Error(`Failed to install Theus CLI package: ${result.stderr}`);
|
|
216875
216875
|
logError2(error40);
|
|
@@ -217015,9 +217015,9 @@ async function assertMinVersion() {
|
|
|
217015
217015
|
if (false) {}
|
|
217016
217016
|
try {
|
|
217017
217017
|
const versionConfig = await getDynamicConfig_BLOCKS_ON_INIT("tengu_version_config", { minVersion: "0.0.0" });
|
|
217018
|
-
if (versionConfig.minVersion && lt({ VERSION: "0.2.
|
|
217018
|
+
if (versionConfig.minVersion && lt({ VERSION: "0.2.17", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
|
|
217019
217019
|
console.error(`
|
|
217020
|
-
It looks like your version of Theus (${{ VERSION: "0.2.
|
|
217020
|
+
It looks like your version of Theus (${{ VERSION: "0.2.17", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.
|
|
217021
217021
|
A newer version (${versionConfig.minVersion} or higher) is required to continue.
|
|
217022
217022
|
|
|
217023
217023
|
To update, please run:
|
|
@@ -217158,7 +217158,7 @@ async function getInstallationPrefix() {
|
|
|
217158
217158
|
return prefixResult.stdout.trim();
|
|
217159
217159
|
}
|
|
217160
217160
|
function getGlobalInstallPackageManager() {
|
|
217161
|
-
if ({ VERSION: "0.2.
|
|
217161
|
+
if ({ VERSION: "0.2.17", BUILD_TIME: "1970-01-01T00:00:00.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") {
|
|
217162
217162
|
return "npm";
|
|
217163
217163
|
}
|
|
217164
217164
|
return env3.isRunningWithBun() ? "bun" : "npm";
|
|
@@ -217183,7 +217183,7 @@ async function checkGlobalInstallPermissions() {
|
|
|
217183
217183
|
}
|
|
217184
217184
|
async function getLatestVersion(channel2) {
|
|
217185
217185
|
const npmTag = channel2 === "stable" ? "stable" : "latest";
|
|
217186
|
-
const result = await execFileNoThrowWithCwd("npm", ["view", `${{ VERSION: "0.2.
|
|
217186
|
+
const result = await execFileNoThrowWithCwd("npm", ["view", `${{ VERSION: "0.2.17", BUILD_TIME: "1970-01-01T00:00:00.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() });
|
|
217187
217187
|
if (result.code !== 0) {
|
|
217188
217188
|
logForDebugging(`npm view failed with code ${result.code}`);
|
|
217189
217189
|
if (result.stderr) {
|
|
@@ -217199,7 +217199,7 @@ async function getLatestVersion(channel2) {
|
|
|
217199
217199
|
return result.stdout.trim();
|
|
217200
217200
|
}
|
|
217201
217201
|
async function getNpmDistTags() {
|
|
217202
|
-
const result = await execFileNoThrowWithCwd("npm", ["view", { VERSION: "0.2.
|
|
217202
|
+
const result = await execFileNoThrowWithCwd("npm", ["view", { VERSION: "0.2.17", BUILD_TIME: "1970-01-01T00:00:00.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() });
|
|
217203
217203
|
if (result.code !== 0) {
|
|
217204
217204
|
logForDebugging(`npm view dist-tags failed with code ${result.code}`);
|
|
217205
217205
|
return { latest: null, stable: null };
|
|
@@ -217239,7 +217239,7 @@ async function installGlobalPackage(specificVersion) {
|
|
|
217239
217239
|
logError2(new AutoUpdaterError("Another process is currently installing an update"));
|
|
217240
217240
|
logEvent("tengu_auto_updater_lock_contention", {
|
|
217241
217241
|
pid: process.pid,
|
|
217242
|
-
currentVersion: { VERSION: "0.2.
|
|
217242
|
+
currentVersion: { VERSION: "0.2.17", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
|
|
217243
217243
|
});
|
|
217244
217244
|
return "in_progress";
|
|
217245
217245
|
}
|
|
@@ -217248,7 +217248,7 @@ async function installGlobalPackage(specificVersion) {
|
|
|
217248
217248
|
if (!env3.isRunningWithBun() && env3.isNpmFromWindowsPath()) {
|
|
217249
217249
|
logError2(new Error("Windows NPM detected in WSL environment"));
|
|
217250
217250
|
logEvent("tengu_auto_updater_windows_npm_in_wsl", {
|
|
217251
|
-
currentVersion: { VERSION: "0.2.
|
|
217251
|
+
currentVersion: { VERSION: "0.2.17", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
|
|
217252
217252
|
});
|
|
217253
217253
|
console.error(`
|
|
217254
217254
|
Error: Windows NPM detected in WSL
|
|
@@ -217267,7 +217267,7 @@ To fix this issue:
|
|
|
217267
217267
|
if (!hasPermissions) {
|
|
217268
217268
|
return "no_permissions";
|
|
217269
217269
|
}
|
|
217270
|
-
const packageSpec = specificVersion ? `${{ VERSION: "0.2.
|
|
217270
|
+
const packageSpec = specificVersion ? `${{ VERSION: "0.2.17", BUILD_TIME: "1970-01-01T00:00:00.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.17", BUILD_TIME: "1970-01-01T00:00:00.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;
|
|
217271
217271
|
const packageManager = getGlobalInstallPackageManager();
|
|
217272
217272
|
const installResult = await execFileNoThrowWithCwd(packageManager, ["install", "-g", packageSpec], { cwd: homedir18() });
|
|
217273
217273
|
if (installResult.code !== 0) {
|
|
@@ -217595,8 +217595,8 @@ async function detectMultipleInstallations() {
|
|
|
217595
217595
|
installations.push({ type: "npm-local", path: localPath });
|
|
217596
217596
|
}
|
|
217597
217597
|
const packagesToCheck = ["@theus-ai/theus-code"];
|
|
217598
|
-
if ({ VERSION: "0.2.
|
|
217599
|
-
packagesToCheck.push({ VERSION: "0.2.
|
|
217598
|
+
if ({ VERSION: "0.2.17", BUILD_TIME: "1970-01-01T00:00:00.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.17", BUILD_TIME: "1970-01-01T00:00:00.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") {
|
|
217599
|
+
packagesToCheck.push({ VERSION: "0.2.17", BUILD_TIME: "1970-01-01T00:00:00.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);
|
|
217600
217600
|
}
|
|
217601
217601
|
const npmResult = await execFileNoThrow("npm", [
|
|
217602
217602
|
"-g",
|
|
@@ -217779,7 +217779,7 @@ function detectLinuxGlobPatternWarnings() {
|
|
|
217779
217779
|
}
|
|
217780
217780
|
async function getDoctorDiagnostic() {
|
|
217781
217781
|
const installationType = await getCurrentInstallationType();
|
|
217782
|
-
const version2 = { VERSION: "0.2.
|
|
217782
|
+
const version2 = { VERSION: "0.2.17", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.17", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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";
|
|
217783
217783
|
const installationPath = await getInstallationPath();
|
|
217784
217784
|
const invokedBinary = getInvokedBinary();
|
|
217785
217785
|
const multipleInstallations = await detectMultipleInstallations();
|
|
@@ -217791,8 +217791,8 @@ async function getDoctorDiagnostic() {
|
|
|
217791
217791
|
for (const install of npmInstalls) {
|
|
217792
217792
|
if (install.type === "npm-global") {
|
|
217793
217793
|
let uninstallCmd = "npm -g uninstall @theus-ai/theus-code";
|
|
217794
|
-
if ({ VERSION: "0.2.
|
|
217795
|
-
uninstallCmd += ` && npm -g uninstall ${{ VERSION: "0.2.
|
|
217794
|
+
if ({ VERSION: "0.2.17", BUILD_TIME: "1970-01-01T00:00:00.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.17", BUILD_TIME: "1970-01-01T00:00:00.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") {
|
|
217795
|
+
uninstallCmd += ` && npm -g uninstall ${{ VERSION: "0.2.17", BUILD_TIME: "1970-01-01T00:00:00.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}`;
|
|
217796
217796
|
}
|
|
217797
217797
|
warnings.push({
|
|
217798
217798
|
issue: `Leftover npm global installation at ${install.path}`,
|
|
@@ -217904,7 +217904,7 @@ async function getLatestVersionFromArtifactory(tag2 = "latest") {
|
|
|
217904
217904
|
const startTime2 = Date.now();
|
|
217905
217905
|
const { stdout, code, stderr } = await execFileNoThrowWithCwd("npm", [
|
|
217906
217906
|
"view",
|
|
217907
|
-
`${{ VERSION: "0.2.
|
|
217907
|
+
`${{ VERSION: "0.2.17", BUILD_TIME: "1970-01-01T00:00:00.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}`,
|
|
217908
217908
|
"version",
|
|
217909
217909
|
"--prefer-online",
|
|
217910
217910
|
"--registry",
|
|
@@ -217928,7 +217928,7 @@ async function getLatestVersionFromArtifactory(tag2 = "latest") {
|
|
|
217928
217928
|
latency_ms: latencyMs,
|
|
217929
217929
|
source_npm: true
|
|
217930
217930
|
});
|
|
217931
|
-
logForDebugging(`npm view ${{ VERSION: "0.2.
|
|
217931
|
+
logForDebugging(`npm view ${{ VERSION: "0.2.17", BUILD_TIME: "1970-01-01T00:00:00.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}`);
|
|
217932
217932
|
const latestVersion = stdout.trim();
|
|
217933
217933
|
return latestVersion;
|
|
217934
217934
|
}
|
|
@@ -217984,7 +217984,7 @@ async function downloadVersionFromArtifactory(version2, stagingPath) {
|
|
|
217984
217984
|
const fs3 = getFsImplementation();
|
|
217985
217985
|
await fs3.rm(stagingPath, { recursive: true, force: true });
|
|
217986
217986
|
const platform4 = getPlatform2();
|
|
217987
|
-
const platformPackageName = `${{ VERSION: "0.2.
|
|
217987
|
+
const platformPackageName = `${{ VERSION: "0.2.17", BUILD_TIME: "1970-01-01T00:00:00.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}`;
|
|
217988
217988
|
logForDebugging(`Fetching integrity hash for ${platformPackageName}@${version2}`);
|
|
217989
217989
|
const {
|
|
217990
217990
|
stdout: integrityOutput,
|
|
@@ -218013,7 +218013,7 @@ async function downloadVersionFromArtifactory(version2, stagingPath) {
|
|
|
218013
218013
|
name: "theus-native-installer",
|
|
218014
218014
|
version: "0.0.1",
|
|
218015
218015
|
dependencies: {
|
|
218016
|
-
[{ VERSION: "0.2.
|
|
218016
|
+
[{ VERSION: "0.2.17", BUILD_TIME: "1970-01-01T00:00:00.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
|
|
218017
218017
|
}
|
|
218018
218018
|
};
|
|
218019
218019
|
const packageLock = {
|
|
@@ -218026,10 +218026,10 @@ async function downloadVersionFromArtifactory(version2, stagingPath) {
|
|
|
218026
218026
|
name: "theus-native-installer",
|
|
218027
218027
|
version: "0.0.1",
|
|
218028
218028
|
dependencies: {
|
|
218029
|
-
[{ VERSION: "0.2.
|
|
218029
|
+
[{ VERSION: "0.2.17", BUILD_TIME: "1970-01-01T00:00:00.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
|
|
218030
218030
|
}
|
|
218031
218031
|
},
|
|
218032
|
-
[`node_modules/${{ VERSION: "0.2.
|
|
218032
|
+
[`node_modules/${{ VERSION: "0.2.17", BUILD_TIME: "1970-01-01T00:00:00.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}`]: {
|
|
218033
218033
|
version: version2,
|
|
218034
218034
|
optionalDependencies: {
|
|
218035
218035
|
[platformPackageName]: version2
|
|
@@ -218051,7 +218051,7 @@ async function downloadVersionFromArtifactory(version2, stagingPath) {
|
|
|
218051
218051
|
if (result.code !== 0) {
|
|
218052
218052
|
throw new Error(`npm ci failed with code ${result.code}: ${result.stderr}`);
|
|
218053
218053
|
}
|
|
218054
|
-
logForDebugging(`Successfully downloaded and verified ${{ VERSION: "0.2.
|
|
218054
|
+
logForDebugging(`Successfully downloaded and verified ${{ VERSION: "0.2.17", BUILD_TIME: "1970-01-01T00:00:00.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}`);
|
|
218055
218055
|
}
|
|
218056
218056
|
function getStallTimeoutMs() {
|
|
218057
218057
|
return Number(process.env.THEUS_CODE_STALL_TIMEOUT_MS_FOR_TESTING) || DEFAULT_STALL_TIMEOUT_MS;
|
|
@@ -218714,8 +218714,8 @@ async function updateLatest(channelOrVersion, forceReinstall = false) {
|
|
|
218714
218714
|
const maxVersion = await getMaxVersion();
|
|
218715
218715
|
if (maxVersion && gt(version2, maxVersion)) {
|
|
218716
218716
|
logForDebugging(`Native installer: maxVersion ${maxVersion} is set, capping update from ${version2} to ${maxVersion}`);
|
|
218717
|
-
if (gte({ VERSION: "0.2.
|
|
218718
|
-
logForDebugging(`Native installer: current version ${{ VERSION: "0.2.
|
|
218717
|
+
if (gte({ VERSION: "0.2.17", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
|
|
218718
|
+
logForDebugging(`Native installer: current version ${{ VERSION: "0.2.17", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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`);
|
|
218719
218719
|
logEvent("tengu_native_update_skipped_max_version", {
|
|
218720
218720
|
latency_ms: Date.now() - startTime2,
|
|
218721
218721
|
max_version: maxVersion,
|
|
@@ -218726,7 +218726,7 @@ async function updateLatest(channelOrVersion, forceReinstall = false) {
|
|
|
218726
218726
|
version2 = maxVersion;
|
|
218727
218727
|
}
|
|
218728
218728
|
}
|
|
218729
|
-
if (!forceReinstall && version2 === { VERSION: "0.2.
|
|
218729
|
+
if (!forceReinstall && version2 === { VERSION: "0.2.17", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
|
|
218730
218730
|
logForDebugging(`Found ${version2} at ${executablePath}, skipping install`);
|
|
218731
218731
|
logEvent("tengu_native_update_complete", {
|
|
218732
218732
|
latency_ms: Date.now() - startTime2,
|
|
@@ -219476,8 +219476,8 @@ async function cleanupNpmInstallations() {
|
|
|
219476
219476
|
} else if (codePackageResult.error) {
|
|
219477
219477
|
errors4.push(codePackageResult.error);
|
|
219478
219478
|
}
|
|
219479
|
-
if ({ VERSION: "0.2.
|
|
219480
|
-
const macroPackageResult = await attemptNpmUninstall({ VERSION: "0.2.
|
|
219479
|
+
if ({ VERSION: "0.2.17", BUILD_TIME: "1970-01-01T00:00:00.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.17", BUILD_TIME: "1970-01-01T00:00:00.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") {
|
|
219480
|
+
const macroPackageResult = await attemptNpmUninstall({ VERSION: "0.2.17", BUILD_TIME: "1970-01-01T00:00:00.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);
|
|
219481
219481
|
if (macroPackageResult.success) {
|
|
219482
219482
|
removed++;
|
|
219483
219483
|
if (macroPackageResult.warning) {
|
|
@@ -300409,9 +300409,9 @@ function getTheusEnvMetadata() {
|
|
|
300409
300409
|
};
|
|
300410
300410
|
}
|
|
300411
300411
|
function getBuildAgeMinutes() {
|
|
300412
|
-
if (!{ VERSION: "0.2.
|
|
300412
|
+
if (!{ VERSION: "0.2.17", BUILD_TIME: "1970-01-01T00:00:00.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)
|
|
300413
300413
|
return;
|
|
300414
|
-
const buildTime = new Date({ VERSION: "0.2.
|
|
300414
|
+
const buildTime = new Date({ VERSION: "0.2.17", BUILD_TIME: "1970-01-01T00:00:00.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();
|
|
300415
300415
|
if (isNaN(buildTime))
|
|
300416
300416
|
return;
|
|
300417
300417
|
return Math.floor((Date.now() - buildTime) / 60000);
|
|
@@ -316653,7 +316653,7 @@ function getAssistantMessageFromError(error40, model, options2) {
|
|
|
316653
316653
|
if (process.env.USER_TYPE === "ant") {
|
|
316654
316654
|
const baseMessage = `API Error: 400 ${error40.message}
|
|
316655
316655
|
|
|
316656
|
-
Run /share and post the JSON file to ${{ VERSION: "0.2.
|
|
316656
|
+
Run /share and post the JSON file to ${{ VERSION: "0.2.17", BUILD_TIME: "1970-01-01T00:00:00.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}.`;
|
|
316657
316657
|
const rewindInstruction = getIsNonInteractiveSession() ? "" : " Then, use /rewind to recover the conversation.";
|
|
316658
316658
|
return createAssistantAPIErrorMessage({
|
|
316659
316659
|
content: baseMessage + rewindInstruction,
|
|
@@ -316689,7 +316689,7 @@ Run /share and post the JSON file to ${{ VERSION: "0.2.16", BUILD_TIME: "1970-01
|
|
|
316689
316689
|
if (process.env.USER_TYPE === "ant" && !process.env.THEUS_MODEL && error40 instanceof Error && error40.message.toLowerCase().includes("invalid model name")) {
|
|
316690
316690
|
const orgId = getOauthAccountInfo()?.organizationUuid;
|
|
316691
316691
|
const baseMsg = `[THEUS-INTERNAL] Your org isn't gated into the \`${model}\` model. Either run \`theus\` with \`THEUS_MODEL=${getDefaultMainLoopModelSetting()}\``;
|
|
316692
|
-
const msg = orgId ? `${baseMsg} or share your orgId (${orgId}) in ${{ VERSION: "0.2.
|
|
316692
|
+
const msg = orgId ? `${baseMsg} or share your orgId (${orgId}) in ${{ VERSION: "0.2.17", BUILD_TIME: "1970-01-01T00:00:00.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.17", BUILD_TIME: "1970-01-01T00:00:00.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.`;
|
|
316693
316693
|
return createAssistantAPIErrorMessage({
|
|
316694
316694
|
content: msg,
|
|
316695
316695
|
error: "invalid_request"
|
|
@@ -326789,7 +326789,7 @@ function buildPrimarySection() {
|
|
|
326789
326789
|
});
|
|
326790
326790
|
return [{
|
|
326791
326791
|
label: "Version",
|
|
326792
|
-
value: { VERSION: "0.2.
|
|
326792
|
+
value: { VERSION: "0.2.17", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
|
|
326793
326793
|
}, {
|
|
326794
326794
|
label: "Session name",
|
|
326795
326795
|
value: nameValue
|
|
@@ -330605,7 +330605,7 @@ function Config({
|
|
|
330605
330605
|
}
|
|
330606
330606
|
})
|
|
330607
330607
|
}) : showSubmenu === "ChannelDowngrade" ? /* @__PURE__ */ jsx_runtime185.jsx(ChannelDowngradeDialog, {
|
|
330608
|
-
currentVersion: { VERSION: "0.2.
|
|
330608
|
+
currentVersion: { VERSION: "0.2.17", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
|
|
330609
330609
|
onChoice: (choice) => {
|
|
330610
330610
|
setShowSubmenu(null);
|
|
330611
330611
|
setTabsHidden(false);
|
|
@@ -330617,7 +330617,7 @@ function Config({
|
|
|
330617
330617
|
autoUpdatesChannel: "stable"
|
|
330618
330618
|
};
|
|
330619
330619
|
if (choice === "stay") {
|
|
330620
|
-
newSettings.minimumVersion = { VERSION: "0.2.
|
|
330620
|
+
newSettings.minimumVersion = { VERSION: "0.2.17", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION;
|
|
330621
330621
|
}
|
|
330622
330622
|
updateSettingsForSource("userSettings", newSettings);
|
|
330623
330623
|
setSettingsData((prev_27) => ({
|
|
@@ -338651,7 +338651,7 @@ function HelpV2(t0) {
|
|
|
338651
338651
|
let t6;
|
|
338652
338652
|
if ($2[31] !== tabs) {
|
|
338653
338653
|
t6 = /* @__PURE__ */ jsx_runtime212.jsx(Tabs, {
|
|
338654
|
-
title: `Theus v${{ VERSION: "0.2.
|
|
338654
|
+
title: `Theus v${{ VERSION: "0.2.17", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION}`,
|
|
338655
338655
|
color: "professionalBlue",
|
|
338656
338656
|
defaultTab: "general",
|
|
338657
338657
|
children: tabs
|
|
@@ -355375,6 +355375,14 @@ var init_mcp3 = __esm(() => {
|
|
|
355375
355375
|
var NOVEDADES;
|
|
355376
355376
|
var init_data = __esm(() => {
|
|
355377
355377
|
NOVEDADES = [
|
|
355378
|
+
{
|
|
355379
|
+
version: "v0.2.17",
|
|
355380
|
+
fecha: "2026-07-12",
|
|
355381
|
+
titulo: "Arreglo: /telegram ahora s\xED se ve",
|
|
355382
|
+
puntos: [
|
|
355383
|
+
"El panel de /telegram se cerraba al instante (el mismo Enter que lo abr\xEDa lo cerraba). Ahora persiste hasta que pulses Esc, con el QR y las instrucciones a la vista."
|
|
355384
|
+
]
|
|
355385
|
+
},
|
|
355378
355386
|
{
|
|
355379
355387
|
version: "v0.2.16",
|
|
355380
355388
|
fecha: "2026-07-12",
|
|
@@ -356367,9 +356375,9 @@ function getAllReleaseNotes(changelogContent = getStoredChangelogFromMemory()) {
|
|
|
356367
356375
|
return [];
|
|
356368
356376
|
}
|
|
356369
356377
|
}
|
|
356370
|
-
async function checkForReleaseNotes(lastSeenVersion, currentVersion = { VERSION: "0.2.
|
|
356378
|
+
async function checkForReleaseNotes(lastSeenVersion, currentVersion = { VERSION: "0.2.17", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION) {
|
|
356371
356379
|
if (process.env.USER_TYPE === "ant") {
|
|
356372
|
-
const changelog = { VERSION: "0.2.
|
|
356380
|
+
const changelog = { VERSION: "0.2.17", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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;
|
|
356373
356381
|
if (changelog) {
|
|
356374
356382
|
const commits = changelog.trim().split(`
|
|
356375
356383
|
`).filter(Boolean);
|
|
@@ -360771,7 +360779,7 @@ var init_Messages = __esm(() => {
|
|
|
360771
360779
|
let t1;
|
|
360772
360780
|
if ($2[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
360773
360781
|
t1 = /* @__PURE__ */ jsx_runtime251.jsx(TheusSessionHeader, {
|
|
360774
|
-
version: { VERSION: "0.2.
|
|
360782
|
+
version: { VERSION: "0.2.17", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
|
|
360775
360783
|
});
|
|
360776
360784
|
$2[0] = t1;
|
|
360777
360785
|
} else {
|
|
@@ -388366,7 +388374,7 @@ async function captureMemoryDiagnostics(trigger, dumpNumber = 0) {
|
|
|
388366
388374
|
smapsRollup,
|
|
388367
388375
|
platform: process.platform,
|
|
388368
388376
|
nodeVersion: process.version,
|
|
388369
|
-
ccVersion: { VERSION: "0.2.
|
|
388377
|
+
ccVersion: { VERSION: "0.2.17", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
|
|
388370
388378
|
};
|
|
388371
388379
|
}
|
|
388372
388380
|
async function performHeapDump(trigger = "manual", dumpNumber = 0) {
|
|
@@ -388952,7 +388960,7 @@ var init_bridge_kick = __esm(() => {
|
|
|
388952
388960
|
var call55 = async () => {
|
|
388953
388961
|
return {
|
|
388954
388962
|
type: "text",
|
|
388955
|
-
value: { VERSION: "0.2.
|
|
388963
|
+
value: { VERSION: "0.2.17", BUILD_TIME: "1970-01-01T00:00:00.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.17", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.17", BUILD_TIME: "1970-01-01T00:00:00.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.17", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
|
|
388956
388964
|
};
|
|
388957
388965
|
}, version2, version_default;
|
|
388958
388966
|
var init_version = __esm(() => {
|
|
@@ -389042,7 +389050,7 @@ function TelegramOnboarding({
|
|
|
389042
389050
|
onDone(msg, { display: "system" });
|
|
389043
389051
|
};
|
|
389044
389052
|
use_input_default((input, key) => {
|
|
389045
|
-
if (key.escape ||
|
|
389053
|
+
if (key.escape || input === "q")
|
|
389046
389054
|
finish("Onboarding de Telegram cerrado.");
|
|
389047
389055
|
});
|
|
389048
389056
|
import_react177.useEffect(() => {
|
|
@@ -389112,12 +389120,8 @@ function TelegramOnboarding({
|
|
|
389112
389120
|
};
|
|
389113
389121
|
}, []);
|
|
389114
389122
|
import_react177.useEffect(() => {
|
|
389115
|
-
if (view.phase === "linked") {
|
|
389116
|
-
const t = setTimeout(() => finish(`Telegram vinculado (chat ${view.chatId}).`), 5000);
|
|
389117
|
-
return () => clearTimeout(t);
|
|
389118
|
-
}
|
|
389119
389123
|
if (view.phase === "no-auth" || view.phase === "not-configured" || view.phase === "error") {
|
|
389120
|
-
const t = setTimeout(() => finish(view.message || "Listo."),
|
|
389124
|
+
const t = setTimeout(() => finish(view.message || "Listo."), 8000);
|
|
389121
389125
|
return () => clearTimeout(t);
|
|
389122
389126
|
}
|
|
389123
389127
|
return;
|
|
@@ -389250,7 +389254,14 @@ function TelegramOnboarding({
|
|
|
389250
389254
|
bold: true,
|
|
389251
389255
|
children: `\u2705 Telegram vinculado (chat ${view.chatId}).`
|
|
389252
389256
|
}),
|
|
389253
|
-
/* @__PURE__ */ jsx_runtime324.jsx(RemoteHint, {})
|
|
389257
|
+
/* @__PURE__ */ jsx_runtime324.jsx(RemoteHint, {}),
|
|
389258
|
+
/* @__PURE__ */ jsx_runtime324.jsx(ThemedBox_default, {
|
|
389259
|
+
marginTop: 1,
|
|
389260
|
+
children: /* @__PURE__ */ jsx_runtime324.jsx(ThemedText, {
|
|
389261
|
+
dimColor: true,
|
|
389262
|
+
children: "Esc para cerrar."
|
|
389263
|
+
})
|
|
389264
|
+
})
|
|
389254
389265
|
]
|
|
389255
389266
|
})
|
|
389256
389267
|
]
|
|
@@ -393109,13 +393120,13 @@ async function updateReleaseBundle() {
|
|
|
393109
393120
|
await gracefulShutdown(1);
|
|
393110
393121
|
return;
|
|
393111
393122
|
}
|
|
393112
|
-
if (gte({ VERSION: "0.2.
|
|
393113
|
-
writeToStdout(source_default.green(`Theus is up to date (${{ VERSION: "0.2.
|
|
393123
|
+
if (gte({ VERSION: "0.2.17", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
|
|
393124
|
+
writeToStdout(source_default.green(`Theus is up to date (${{ VERSION: "0.2.17", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION})`) + `
|
|
393114
393125
|
`);
|
|
393115
393126
|
await gracefulShutdown(0);
|
|
393116
393127
|
return;
|
|
393117
393128
|
}
|
|
393118
|
-
writeToStdout(`New version available: ${latest} (current: ${{ VERSION: "0.2.
|
|
393129
|
+
writeToStdout(`New version available: ${latest} (current: ${{ VERSION: "0.2.17", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION})
|
|
393119
393130
|
`);
|
|
393120
393131
|
writeToStdout(`Installing update from theus.pe/dl...
|
|
393121
393132
|
`);
|
|
@@ -393149,7 +393160,7 @@ async function updateReleaseBundle() {
|
|
|
393149
393160
|
return;
|
|
393150
393161
|
}
|
|
393151
393162
|
cpSync(staged, bundleDir, { recursive: true, force: true });
|
|
393152
|
-
writeToStdout(source_default.green(`Successfully updated from ${{ VERSION: "0.2.
|
|
393163
|
+
writeToStdout(source_default.green(`Successfully updated from ${{ VERSION: "0.2.17", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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}`) + `
|
|
393153
393164
|
`);
|
|
393154
393165
|
await regenerateCompletionCache();
|
|
393155
393166
|
} finally {
|
|
@@ -393162,7 +393173,7 @@ async function updateReleaseBundle() {
|
|
|
393162
393173
|
async function update() {
|
|
393163
393174
|
logEvent("tengu_update_check", {});
|
|
393164
393175
|
await updateNaupa();
|
|
393165
|
-
writeToStdout(`Current version: ${{ VERSION: "0.2.
|
|
393176
|
+
writeToStdout(`Current version: ${{ VERSION: "0.2.17", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION}
|
|
393166
393177
|
`);
|
|
393167
393178
|
const channel2 = getInitialSettings()?.autoUpdatesChannel ?? "latest";
|
|
393168
393179
|
writeToStdout(`Checking for updates to ${channel2} version...
|
|
@@ -393241,8 +393252,8 @@ async function update() {
|
|
|
393241
393252
|
writeToStdout(`Theus is managed by Homebrew.
|
|
393242
393253
|
`);
|
|
393243
393254
|
const latest = await getLatestVersion(channel2);
|
|
393244
|
-
if (latest && !gte({ VERSION: "0.2.
|
|
393245
|
-
writeToStdout(`Update available: ${{ VERSION: "0.2.
|
|
393255
|
+
if (latest && !gte({ VERSION: "0.2.17", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
|
|
393256
|
+
writeToStdout(`Update available: ${{ VERSION: "0.2.17", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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}
|
|
393246
393257
|
`);
|
|
393247
393258
|
writeToStdout(`
|
|
393248
393259
|
`);
|
|
@@ -393258,8 +393269,8 @@ async function update() {
|
|
|
393258
393269
|
writeToStdout(`Theus is managed by winget.
|
|
393259
393270
|
`);
|
|
393260
393271
|
const latest = await getLatestVersion(channel2);
|
|
393261
|
-
if (latest && !gte({ VERSION: "0.2.
|
|
393262
|
-
writeToStdout(`Update available: ${{ VERSION: "0.2.
|
|
393272
|
+
if (latest && !gte({ VERSION: "0.2.17", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
|
|
393273
|
+
writeToStdout(`Update available: ${{ VERSION: "0.2.17", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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}
|
|
393263
393274
|
`);
|
|
393264
393275
|
writeToStdout(`
|
|
393265
393276
|
`);
|
|
@@ -393275,8 +393286,8 @@ async function update() {
|
|
|
393275
393286
|
writeToStdout(`Theus is managed by apk.
|
|
393276
393287
|
`);
|
|
393277
393288
|
const latest = await getLatestVersion(channel2);
|
|
393278
|
-
if (latest && !gte({ VERSION: "0.2.
|
|
393279
|
-
writeToStdout(`Update available: ${{ VERSION: "0.2.
|
|
393289
|
+
if (latest && !gte({ VERSION: "0.2.17", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
|
|
393290
|
+
writeToStdout(`Update available: ${{ VERSION: "0.2.17", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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}
|
|
393280
393291
|
`);
|
|
393281
393292
|
writeToStdout(`
|
|
393282
393293
|
`);
|
|
@@ -393341,11 +393352,11 @@ async function update() {
|
|
|
393341
393352
|
`);
|
|
393342
393353
|
await gracefulShutdown(1);
|
|
393343
393354
|
}
|
|
393344
|
-
if (result.latestVersion === { VERSION: "0.2.
|
|
393345
|
-
writeToStdout(source_default.green(`Theus is up to date (${{ VERSION: "0.2.
|
|
393355
|
+
if (result.latestVersion === { VERSION: "0.2.17", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION) {
|
|
393356
|
+
writeToStdout(source_default.green(`Theus is up to date (${{ VERSION: "0.2.17", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION})`) + `
|
|
393346
393357
|
`);
|
|
393347
393358
|
} else {
|
|
393348
|
-
writeToStdout(source_default.green(`Successfully updated from ${{ VERSION: "0.2.
|
|
393359
|
+
writeToStdout(source_default.green(`Successfully updated from ${{ VERSION: "0.2.17", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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}`) + `
|
|
393349
393360
|
`);
|
|
393350
393361
|
await regenerateCompletionCache();
|
|
393351
393362
|
}
|
|
@@ -393364,9 +393375,9 @@ async function update() {
|
|
|
393364
393375
|
await removeInstalledSymlink();
|
|
393365
393376
|
}
|
|
393366
393377
|
logForDebugging("update: Checking npm registry for latest version");
|
|
393367
|
-
logForDebugging(`update: Package URL: ${{ VERSION: "0.2.
|
|
393378
|
+
logForDebugging(`update: Package URL: ${{ VERSION: "0.2.17", BUILD_TIME: "1970-01-01T00:00:00.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}`);
|
|
393368
393379
|
const npmTag = channel2 === "stable" ? "stable" : "latest";
|
|
393369
|
-
const npmCommand = `npm view ${{ VERSION: "0.2.
|
|
393380
|
+
const npmCommand = `npm view ${{ VERSION: "0.2.17", BUILD_TIME: "1970-01-01T00:00:00.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`;
|
|
393370
393381
|
logForDebugging(`update: Running: ${npmCommand}`);
|
|
393371
393382
|
const latestVersion = await getLatestVersion(channel2);
|
|
393372
393383
|
logForDebugging(`update: Latest version from npm: ${latestVersion || "FAILED"}`);
|
|
@@ -393386,7 +393397,7 @@ async function update() {
|
|
|
393386
393397
|
`);
|
|
393387
393398
|
process.stderr.write(` \u2022 Corporate proxy/firewall blocking npm
|
|
393388
393399
|
`);
|
|
393389
|
-
if ({ VERSION: "0.2.
|
|
393400
|
+
if ({ VERSION: "0.2.17", BUILD_TIME: "1970-01-01T00:00:00.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.17", BUILD_TIME: "1970-01-01T00:00:00.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")) {
|
|
393390
393401
|
process.stderr.write(` \u2022 Internal/development build not published to npm
|
|
393391
393402
|
`);
|
|
393392
393403
|
}
|
|
@@ -393398,19 +393409,19 @@ async function update() {
|
|
|
393398
393409
|
`);
|
|
393399
393410
|
process.stderr.write(` \u2022 Run with --debug flag for more details
|
|
393400
393411
|
`);
|
|
393401
|
-
const packageName = { VERSION: "0.2.
|
|
393412
|
+
const packageName = { VERSION: "0.2.17", BUILD_TIME: "1970-01-01T00:00:00.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");
|
|
393402
393413
|
process.stderr.write(` \u2022 Manually check: npm view ${packageName} version
|
|
393403
393414
|
`);
|
|
393404
393415
|
process.stderr.write(` \u2022 Check if you need to login: npm whoami
|
|
393405
393416
|
`);
|
|
393406
393417
|
await gracefulShutdown(1);
|
|
393407
393418
|
}
|
|
393408
|
-
if (gte({ VERSION: "0.2.
|
|
393409
|
-
writeToStdout(source_default.green(`Theus is up to date (${{ VERSION: "0.2.
|
|
393419
|
+
if (gte({ VERSION: "0.2.17", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
|
|
393420
|
+
writeToStdout(source_default.green(`Theus is up to date (${{ VERSION: "0.2.17", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION})`) + `
|
|
393410
393421
|
`);
|
|
393411
393422
|
await gracefulShutdown(0);
|
|
393412
393423
|
}
|
|
393413
|
-
writeToStdout(`New version available: ${latestVersion} (current: ${{ VERSION: "0.2.
|
|
393424
|
+
writeToStdout(`New version available: ${latestVersion} (current: ${{ VERSION: "0.2.17", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION})
|
|
393414
393425
|
`);
|
|
393415
393426
|
writeToStdout(`Installing update...
|
|
393416
393427
|
`);
|
|
@@ -393455,7 +393466,7 @@ async function update() {
|
|
|
393455
393466
|
logForDebugging(`update: Installation status: ${status2}`);
|
|
393456
393467
|
switch (status2) {
|
|
393457
393468
|
case "success":
|
|
393458
|
-
writeToStdout(source_default.green(`Successfully updated from ${{ VERSION: "0.2.
|
|
393469
|
+
writeToStdout(source_default.green(`Successfully updated from ${{ VERSION: "0.2.17", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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}`) + `
|
|
393459
393470
|
`);
|
|
393460
393471
|
await regenerateCompletionCache();
|
|
393461
393472
|
break;
|
|
@@ -393465,7 +393476,7 @@ async function update() {
|
|
|
393465
393476
|
if (useLocalUpdate) {
|
|
393466
393477
|
process.stderr.write(`Try manually updating with:
|
|
393467
393478
|
`);
|
|
393468
|
-
process.stderr.write(` cd ~/.theus/local && npm update ${{ VERSION: "0.2.
|
|
393479
|
+
process.stderr.write(` cd ~/.theus/local && npm update ${{ VERSION: "0.2.17", BUILD_TIME: "1970-01-01T00:00:00.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}
|
|
393469
393480
|
`);
|
|
393470
393481
|
} else {
|
|
393471
393482
|
process.stderr.write(`Try running with sudo or fix npm permissions
|
|
@@ -393481,7 +393492,7 @@ async function update() {
|
|
|
393481
393492
|
if (useLocalUpdate) {
|
|
393482
393493
|
process.stderr.write(`Try manually updating with:
|
|
393483
393494
|
`);
|
|
393484
|
-
process.stderr.write(` cd ~/.theus/local && npm update ${{ VERSION: "0.2.
|
|
393495
|
+
process.stderr.write(` cd ~/.theus/local && npm update ${{ VERSION: "0.2.17", BUILD_TIME: "1970-01-01T00:00:00.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}
|
|
393485
393496
|
`);
|
|
393486
393497
|
} else {
|
|
393487
393498
|
process.stderr.write(`Or consider using native installation with: theus install
|
|
@@ -400383,7 +400394,7 @@ var init_sessionStorage = __esm(() => {
|
|
|
400383
400394
|
init_settings2();
|
|
400384
400395
|
init_slowOperations();
|
|
400385
400396
|
init_uuid();
|
|
400386
|
-
VERSION4 = { VERSION: "0.2.
|
|
400397
|
+
VERSION4 = { VERSION: "0.2.17", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION;
|
|
400387
400398
|
MAX_TOMBSTONE_REWRITE_BYTES = 50 * 1024 * 1024;
|
|
400388
400399
|
SKIP_FIRST_PROMPT_PATTERN = /^(?:\s*<[a-z][\w-]*[\s>]|\[Request interrupted by user[^\]]*\])/;
|
|
400389
400400
|
EPHEMERAL_PROGRESS_TYPES = new Set([
|
|
@@ -401588,7 +401599,7 @@ var init_filesystem = __esm(() => {
|
|
|
401588
401599
|
});
|
|
401589
401600
|
getBundledSkillsRoot = memoize_default(function getBundledSkillsRoot2() {
|
|
401590
401601
|
const nonce = randomBytes21(16).toString("hex");
|
|
401591
|
-
return join147(getTheusTempDir(), "bundled-skills", { VERSION: "0.2.
|
|
401602
|
+
return join147(getTheusTempDir(), "bundled-skills", { VERSION: "0.2.17", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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);
|
|
401592
401603
|
});
|
|
401593
401604
|
getResolvedWorkingDirPaths = memoize_default(getPathsForPermissionCheck);
|
|
401594
401605
|
});
|
|
@@ -406763,7 +406774,7 @@ function getSimpleDoingTasksSection() {
|
|
|
406763
406774
|
];
|
|
406764
406775
|
const userHelpSubitems = [
|
|
406765
406776
|
`/help: Get help with using Theus`,
|
|
406766
|
-
`To give feedback, users should ${{ VERSION: "0.2.
|
|
406777
|
+
`To give feedback, users should ${{ VERSION: "0.2.17", BUILD_TIME: "1970-01-01T00:00:00.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}`
|
|
406767
406778
|
];
|
|
406768
406779
|
const items = [
|
|
406769
406780
|
`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.`,
|
|
@@ -407586,7 +407597,7 @@ function computeFingerprint(messageText, version3) {
|
|
|
407586
407597
|
}
|
|
407587
407598
|
function computeFingerprintFromMessages(messages) {
|
|
407588
407599
|
const firstMessageText = extractFirstMessageText(messages);
|
|
407589
|
-
return computeFingerprint(firstMessageText, { VERSION: "0.2.
|
|
407600
|
+
return computeFingerprint(firstMessageText, { VERSION: "0.2.17", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION);
|
|
407590
407601
|
}
|
|
407591
407602
|
var FINGERPRINT_SALT = "59cf53e54c78";
|
|
407592
407603
|
var init_fingerprint = () => {};
|
|
@@ -410110,7 +410121,7 @@ async function sideQuery(opts) {
|
|
|
410110
410121
|
betas.push(STRUCTURED_OUTPUTS_BETA_HEADER);
|
|
410111
410122
|
}
|
|
410112
410123
|
const messageText = extractFirstUserMessageText(messages);
|
|
410113
|
-
const fingerprint = computeFingerprint(messageText, { VERSION: "0.2.
|
|
410124
|
+
const fingerprint = computeFingerprint(messageText, { VERSION: "0.2.17", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION);
|
|
410114
410125
|
const attributionHeader = getAttributionHeader(fingerprint);
|
|
410115
410126
|
const systemBlocks = [
|
|
410116
410127
|
attributionHeader ? { type: "text", text: attributionHeader } : null,
|
|
@@ -411413,7 +411424,7 @@ async function handleMemories(state) {
|
|
|
411413
411424
|
async function runProjectContextMcpServer() {
|
|
411414
411425
|
const projectRoot = process.env.THEUS_PROJECT_ROOT || process.cwd();
|
|
411415
411426
|
const state = new ProjectContextState(projectRoot);
|
|
411416
|
-
const server2 = new Server({ name: SERVER_NAME, version: { VERSION: "0.2.
|
|
411427
|
+
const server2 = new Server({ name: SERVER_NAME, version: { VERSION: "0.2.17", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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: {} } });
|
|
411417
411428
|
server2.setRequestHandler(ListToolsRequestSchema, async () => ({
|
|
411418
411429
|
tools: TOOL_DEFINITIONS.map((t) => ({
|
|
411419
411430
|
name: t.name,
|
|
@@ -413393,7 +413404,7 @@ function createBridgeLogger(options2) {
|
|
|
413393
413404
|
connectUrl = buildBridgeConnectUrl(environmentId, cachedIngressUrl);
|
|
413394
413405
|
regenerateQr(connectUrl);
|
|
413395
413406
|
if (verbose) {
|
|
413396
|
-
write(source_default.dim(`Remote Control`) + ` v${{ VERSION: "0.2.
|
|
413407
|
+
write(source_default.dim(`Remote Control`) + ` v${{ VERSION: "0.2.17", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION}
|
|
413397
413408
|
`);
|
|
413398
413409
|
}
|
|
413399
413410
|
if (verbose) {
|
|
@@ -414366,7 +414377,7 @@ function appendToLog(path19, message) {
|
|
|
414366
414377
|
cwd: getFsImplementation().cwd(),
|
|
414367
414378
|
userType: process.env.USER_TYPE,
|
|
414368
414379
|
sessionId: getSessionId(),
|
|
414369
|
-
version: { VERSION: "0.2.
|
|
414380
|
+
version: { VERSION: "0.2.17", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
|
|
414370
414381
|
};
|
|
414371
414382
|
getLogWriter(path19).write(messageWithTimestamp);
|
|
414372
414383
|
}
|
|
@@ -415636,7 +415647,7 @@ Spawn mode for this project:
|
|
|
415636
415647
|
const api2 = createBridgeApiClient({
|
|
415637
415648
|
baseUrl,
|
|
415638
415649
|
getAccessToken: getBridgeAccessToken2,
|
|
415639
|
-
runnerVersion: { VERSION: "0.2.
|
|
415650
|
+
runnerVersion: { VERSION: "0.2.17", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
|
|
415640
415651
|
onDebug: logForDebugging,
|
|
415641
415652
|
onAuth401: handleOAuth401Error2,
|
|
415642
415653
|
getTrustedDeviceToken
|
|
@@ -415874,7 +415885,7 @@ async function runBridgeHeadless(opts, signal) {
|
|
|
415874
415885
|
const api2 = createBridgeApiClient({
|
|
415875
415886
|
baseUrl,
|
|
415876
415887
|
getAccessToken: opts.getAccessToken,
|
|
415877
|
-
runnerVersion: { VERSION: "0.2.
|
|
415888
|
+
runnerVersion: { VERSION: "0.2.17", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
|
|
415878
415889
|
onDebug: log2,
|
|
415879
415890
|
onAuth401: opts.onAuth401,
|
|
415880
415891
|
getTrustedDeviceToken
|
|
@@ -419938,7 +419949,7 @@ function buildSystemInitMessage(inputs) {
|
|
|
419938
419949
|
slash_commands: inputs.commands.filter((c5) => c5.userInvocable !== false).map((c5) => c5.name),
|
|
419939
419950
|
apiKeySource: getTheusApiKeyWithSource().source,
|
|
419940
419951
|
betas: getSdkBetas(),
|
|
419941
|
-
theus_code_version: { VERSION: "0.2.
|
|
419952
|
+
theus_code_version: { VERSION: "0.2.17", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
|
|
419942
419953
|
output_style: outputStyle2,
|
|
419943
419954
|
agents: inputs.agents.map((agent) => agent.agentType),
|
|
419944
419955
|
skills: inputs.skills.filter((s) => s.userInvocable !== false).map((skill) => skill.name),
|
|
@@ -419978,8 +419989,8 @@ async function getEnvLessBridgeConfig() {
|
|
|
419978
419989
|
}
|
|
419979
419990
|
async function checkEnvLessBridgeMinVersion() {
|
|
419980
419991
|
const cfg = await getEnvLessBridgeConfig();
|
|
419981
|
-
if (cfg.min_version && lt({ VERSION: "0.2.
|
|
419982
|
-
return `Your version of Theus (${{ VERSION: "0.2.
|
|
419992
|
+
if (cfg.min_version && lt({ VERSION: "0.2.17", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
|
|
419993
|
+
return `Your version of Theus (${{ VERSION: "0.2.17", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.
|
|
419983
419994
|
Version ${cfg.min_version} or higher is required. Run \`theus update\` to update.`;
|
|
419984
419995
|
}
|
|
419985
419996
|
return null;
|
|
@@ -422302,7 +422313,7 @@ async function initBridgeCore(params) {
|
|
|
422302
422313
|
const rawApi = createBridgeApiClient({
|
|
422303
422314
|
baseUrl,
|
|
422304
422315
|
getAccessToken,
|
|
422305
|
-
runnerVersion: { VERSION: "0.2.
|
|
422316
|
+
runnerVersion: { VERSION: "0.2.17", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
|
|
422306
422317
|
onDebug: logForDebugging,
|
|
422307
422318
|
onAuth401,
|
|
422308
422319
|
getTrustedDeviceToken
|
|
@@ -439391,7 +439402,7 @@ var init_useVoiceEnabled = __esm(() => {
|
|
|
439391
439402
|
function getSemverPart(version3) {
|
|
439392
439403
|
return `${import_semver14.major(version3, { loose: true })}.${import_semver14.minor(version3, { loose: true })}.${import_semver14.patch(version3, { loose: true })}`;
|
|
439393
439404
|
}
|
|
439394
|
-
function useUpdateNotification(updatedVersion, initialVersion = { VERSION: "0.2.
|
|
439405
|
+
function useUpdateNotification(updatedVersion, initialVersion = { VERSION: "0.2.17", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION) {
|
|
439395
439406
|
const [lastNotifiedSemver, setLastNotifiedSemver] = import_react218.useState(() => getSemverPart(initialVersion));
|
|
439396
439407
|
if (!updatedVersion) {
|
|
439397
439408
|
return null;
|
|
@@ -439431,7 +439442,7 @@ function AutoUpdater({
|
|
|
439431
439442
|
return;
|
|
439432
439443
|
}
|
|
439433
439444
|
if (false) {}
|
|
439434
|
-
const currentVersion = { VERSION: "0.2.
|
|
439445
|
+
const currentVersion = { VERSION: "0.2.17", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION;
|
|
439435
439446
|
const channel2 = getInitialSettings()?.autoUpdatesChannel ?? "latest";
|
|
439436
439447
|
let latestVersion = await getLatestVersion(channel2);
|
|
439437
439448
|
const isDisabled2 = isAutoUpdaterDisabled();
|
|
@@ -439567,7 +439578,7 @@ function AutoUpdater({
|
|
|
439567
439578
|
" ",
|
|
439568
439579
|
/* @__PURE__ */ jsx_runtime390.jsx(ThemedText, {
|
|
439569
439580
|
bold: true,
|
|
439570
|
-
children: hasLocalInstall ? `cd ~/.theus/local && npm update ${{ VERSION: "0.2.
|
|
439581
|
+
children: hasLocalInstall ? `cd ~/.theus/local && npm update ${{ VERSION: "0.2.17", BUILD_TIME: "1970-01-01T00:00:00.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.17", BUILD_TIME: "1970-01-01T00:00:00.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}`
|
|
439571
439582
|
})
|
|
439572
439583
|
]
|
|
439573
439584
|
})
|
|
@@ -439644,12 +439655,12 @@ function NativeAutoUpdater({
|
|
|
439644
439655
|
logEvent("tengu_native_auto_updater_start", {});
|
|
439645
439656
|
try {
|
|
439646
439657
|
const maxVersion = await getMaxVersion();
|
|
439647
|
-
if (maxVersion && gt({ VERSION: "0.2.
|
|
439658
|
+
if (maxVersion && gt({ VERSION: "0.2.17", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
|
|
439648
439659
|
const msg = await getMaxVersionMessage();
|
|
439649
439660
|
setMaxVersionIssue(msg ?? "affects your version");
|
|
439650
439661
|
}
|
|
439651
439662
|
const result = await installLatest(channel2);
|
|
439652
|
-
const currentVersion = { VERSION: "0.2.
|
|
439663
|
+
const currentVersion = { VERSION: "0.2.17", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION;
|
|
439653
439664
|
const latencyMs = Date.now() - startTime2;
|
|
439654
439665
|
if (result.lockFailed) {
|
|
439655
439666
|
logEvent("tengu_native_auto_updater_lock_contention", {
|
|
@@ -439786,17 +439797,17 @@ function PackageManagerAutoUpdater(t0) {
|
|
|
439786
439797
|
const maxVersion = await getMaxVersion();
|
|
439787
439798
|
if (maxVersion && latest && gt(latest, maxVersion)) {
|
|
439788
439799
|
logForDebugging(`PackageManagerAutoUpdater: maxVersion ${maxVersion} is set, capping update from ${latest} to ${maxVersion}`);
|
|
439789
|
-
if (gte({ VERSION: "0.2.
|
|
439790
|
-
logForDebugging(`PackageManagerAutoUpdater: current version ${{ VERSION: "0.2.
|
|
439800
|
+
if (gte({ VERSION: "0.2.17", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
|
|
439801
|
+
logForDebugging(`PackageManagerAutoUpdater: current version ${{ VERSION: "0.2.17", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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`);
|
|
439791
439802
|
setUpdateAvailable(false);
|
|
439792
439803
|
return;
|
|
439793
439804
|
}
|
|
439794
439805
|
latest = maxVersion;
|
|
439795
439806
|
}
|
|
439796
|
-
const hasUpdate = latest && !gte({ VERSION: "0.2.
|
|
439807
|
+
const hasUpdate = latest && !gte({ VERSION: "0.2.17", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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);
|
|
439797
439808
|
setUpdateAvailable(!!hasUpdate);
|
|
439798
439809
|
if (hasUpdate) {
|
|
439799
|
-
logForDebugging(`PackageManagerAutoUpdater: Update available ${{ VERSION: "0.2.
|
|
439810
|
+
logForDebugging(`PackageManagerAutoUpdater: Update available ${{ VERSION: "0.2.17", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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}`);
|
|
439800
439811
|
}
|
|
439801
439812
|
};
|
|
439802
439813
|
$2[0] = t1;
|
|
@@ -439830,7 +439841,7 @@ function PackageManagerAutoUpdater(t0) {
|
|
|
439830
439841
|
wrap: "truncate",
|
|
439831
439842
|
children: [
|
|
439832
439843
|
"currentVersion: ",
|
|
439833
|
-
{ VERSION: "0.2.
|
|
439844
|
+
{ VERSION: "0.2.17", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
|
|
439834
439845
|
]
|
|
439835
439846
|
});
|
|
439836
439847
|
$2[3] = verbose;
|
|
@@ -447703,7 +447714,7 @@ function buildStatusLineCommandInput(permissionMode, exceeds200kTokens, settings
|
|
|
447703
447714
|
project_dir: getOriginalCwd(),
|
|
447704
447715
|
added_dirs: addedDirs
|
|
447705
447716
|
},
|
|
447706
|
-
version: { VERSION: "0.2.
|
|
447717
|
+
version: { VERSION: "0.2.17", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
|
|
447707
447718
|
output_style: {
|
|
447708
447719
|
name: outputStyleName
|
|
447709
447720
|
},
|
|
@@ -459049,7 +459060,7 @@ async function submitTranscriptShare(messages, trigger, appearanceId) {
|
|
|
459049
459060
|
} catch {}
|
|
459050
459061
|
const data = {
|
|
459051
459062
|
trigger,
|
|
459052
|
-
version: { VERSION: "0.2.
|
|
459063
|
+
version: { VERSION: "0.2.17", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
|
|
459053
459064
|
platform: process.platform,
|
|
459054
459065
|
transcript,
|
|
459055
459066
|
subagentTranscripts: Object.keys(subagentTranscripts).length > 0 ? subagentTranscripts : undefined,
|
|
@@ -472000,7 +472011,7 @@ function Onboarding({
|
|
|
472000
472011
|
flexDirection: "column",
|
|
472001
472012
|
children: [
|
|
472002
472013
|
/* @__PURE__ */ jsx_runtime465.jsx(TheusBanner, {
|
|
472003
|
-
version: { VERSION: "0.2.
|
|
472014
|
+
version: { VERSION: "0.2.17", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
|
|
472004
472015
|
}),
|
|
472005
472016
|
/* @__PURE__ */ jsx_runtime465.jsxs(ThemedBox_default, {
|
|
472006
472017
|
flexDirection: "column",
|
|
@@ -472871,7 +472882,7 @@ function completeOnboarding() {
|
|
|
472871
472882
|
saveGlobalConfig((current) => ({
|
|
472872
472883
|
...current,
|
|
472873
472884
|
hasCompletedOnboarding: true,
|
|
472874
|
-
lastOnboardingVersion: { VERSION: "0.2.
|
|
472885
|
+
lastOnboardingVersion: { VERSION: "0.2.17", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
|
|
472875
472886
|
}));
|
|
472876
472887
|
}
|
|
472877
472888
|
function showDialog(root2, renderer) {
|
|
@@ -483599,7 +483610,7 @@ async function startMCPServer(cwd3, debug2, verbose) {
|
|
|
483599
483610
|
setCwd(cwd3);
|
|
483600
483611
|
const server2 = new Server({
|
|
483601
483612
|
name: "theus/tengu",
|
|
483602
|
-
version: { VERSION: "0.2.
|
|
483613
|
+
version: { VERSION: "0.2.17", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
|
|
483603
483614
|
}, {
|
|
483604
483615
|
capabilities: {
|
|
483605
483616
|
tools: {}
|
|
@@ -485041,7 +485052,7 @@ async function setupTokenHandler(root2) {
|
|
|
485041
485052
|
gap: 1,
|
|
485042
485053
|
children: [
|
|
485043
485054
|
/* @__PURE__ */ jsx_runtime482.jsx(TheusBanner, {
|
|
485044
|
-
version: { VERSION: "0.2.
|
|
485055
|
+
version: { VERSION: "0.2.17", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
|
|
485045
485056
|
}),
|
|
485046
485057
|
showAuthWarning && /* @__PURE__ */ jsx_runtime482.jsxs(ThemedBox_default, {
|
|
485047
485058
|
flexDirection: "column",
|
|
@@ -486464,7 +486475,7 @@ ${customInstructions}` : customInstructions;
|
|
|
486464
486475
|
}
|
|
486465
486476
|
}
|
|
486466
486477
|
logForDiagnosticsNoPII("info", "started", {
|
|
486467
|
-
version: { VERSION: "0.2.
|
|
486478
|
+
version: { VERSION: "0.2.17", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
|
|
486468
486479
|
is_native_binary: isInBundledMode()
|
|
486469
486480
|
});
|
|
486470
486481
|
registerCleanup(async () => {
|
|
@@ -487248,7 +487259,7 @@ Usage: theus --remote "your task description"`, () => gracefulShutdown(1));
|
|
|
487248
487259
|
pendingHookMessages
|
|
487249
487260
|
}, renderAndRun);
|
|
487250
487261
|
}
|
|
487251
|
-
}).version(`${{ VERSION: "0.2.
|
|
487262
|
+
}).version(`${{ VERSION: "0.2.17", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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");
|
|
487252
487263
|
program2.option("-w, --worktree [name]", "Crea un nuevo worktree de git para esta sesi\xF3n (opcionalmente indica un nombre)");
|
|
487253
487264
|
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.");
|
|
487254
487265
|
if (canUserConfigureAdvisor()) {
|
|
@@ -487774,7 +487785,7 @@ if (false) {}
|
|
|
487774
487785
|
async function main2() {
|
|
487775
487786
|
const args = process.argv.slice(2);
|
|
487776
487787
|
if (args.length === 1 && (args[0] === "--version" || args[0] === "-v" || args[0] === "-V")) {
|
|
487777
|
-
console.log(`${{ VERSION: "0.2.
|
|
487788
|
+
console.log(`${{ VERSION: "0.2.17", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)`);
|
|
487778
487789
|
return;
|
|
487779
487790
|
}
|
|
487780
487791
|
const {
|