theus-cli 0.2.15 → 0.2.16
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 +304 -210
- 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.16", BUILD_TIME: "1970-01-01T00:00:00.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.16", BUILD_TIME: "1970-01-01T00:00:00.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.16", BUILD_TIME: "1970-01-01T00:00:00.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.16", BUILD_TIME: "1970-01-01T00:00:00.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.16", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.16", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.16", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.16", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.16", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.16", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.16", BUILD_TIME: "1970-01-01T00:00:00.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.16", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.16", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.16", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.16", BUILD_TIME: "1970-01-01T00:00:00.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.16", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.16", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.16", BUILD_TIME: "1970-01-01T00:00:00.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.16", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.16", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.16", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.16", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.16", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.16", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.16", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.16", BUILD_TIME: "1970-01-01T00:00:00.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.16", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.16", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.16", BUILD_TIME: "1970-01-01T00:00:00.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.16", BUILD_TIME: "1970-01-01T00:00:00.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.16", BUILD_TIME: "1970-01-01T00:00:00.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.16", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.16", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.16", BUILD_TIME: "1970-01-01T00:00:00.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.16", BUILD_TIME: "1970-01-01T00:00:00.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.16", BUILD_TIME: "1970-01-01T00:00:00.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.16", BUILD_TIME: "1970-01-01T00:00:00.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.16", BUILD_TIME: "1970-01-01T00:00:00.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.16", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.16", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.16", BUILD_TIME: "1970-01-01T00:00:00.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.16", BUILD_TIME: "1970-01-01T00:00:00.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.16", BUILD_TIME: "1970-01-01T00:00:00.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.16", BUILD_TIME: "1970-01-01T00:00:00.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.16", BUILD_TIME: "1970-01-01T00:00:00.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.16", BUILD_TIME: "1970-01-01T00:00:00.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.16", BUILD_TIME: "1970-01-01T00:00:00.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.16", BUILD_TIME: "1970-01-01T00:00:00.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.16", BUILD_TIME: "1970-01-01T00:00:00.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.16", BUILD_TIME: "1970-01-01T00:00:00.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.16", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.16", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.16", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.16", BUILD_TIME: "1970-01-01T00:00:00.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.16", BUILD_TIME: "1970-01-01T00:00:00.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.16", BUILD_TIME: "1970-01-01T00:00:00.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.16", BUILD_TIME: "1970-01-01T00:00:00.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.16", BUILD_TIME: "1970-01-01T00:00:00.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.16", BUILD_TIME: "1970-01-01T00:00:00.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.15", 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.16", BUILD_TIME: "1970-01-01T00:00:00.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.16", BUILD_TIME: "1970-01-01T00:00:00.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.16", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.16", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.16", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.16", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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,15 @@ var init_mcp3 = __esm(() => {
|
|
|
355375
355375
|
var NOVEDADES;
|
|
355376
355376
|
var init_data = __esm(() => {
|
|
355377
355377
|
NOVEDADES = [
|
|
355378
|
+
{
|
|
355379
|
+
version: "v0.2.16",
|
|
355380
|
+
fecha: "2026-07-12",
|
|
355381
|
+
titulo: "Control Remoto que arranca + QR en /telegram",
|
|
355382
|
+
puntos: [
|
|
355383
|
+
'Arreglado: "unknown option --rc". Ahora THEUS_BRIDGE=1 theus --rc arranca de verdad la sesi\xF3n con Control Remoto (faltaba registrar la opci\xF3n en el CLI publicado).',
|
|
355384
|
+
"/telegram muestra un c\xF3digo QR del enlace de vinculaci\xF3n: escan\xE9alo con la c\xE1mara del tel\xE9fono y listo, sin copiar URLs."
|
|
355385
|
+
]
|
|
355386
|
+
},
|
|
355378
355387
|
{
|
|
355379
355388
|
version: "v0.2.15",
|
|
355380
355389
|
fecha: "2026-07-12",
|
|
@@ -356358,9 +356367,9 @@ function getAllReleaseNotes(changelogContent = getStoredChangelogFromMemory()) {
|
|
|
356358
356367
|
return [];
|
|
356359
356368
|
}
|
|
356360
356369
|
}
|
|
356361
|
-
async function checkForReleaseNotes(lastSeenVersion, currentVersion = { VERSION: "0.2.
|
|
356370
|
+
async function checkForReleaseNotes(lastSeenVersion, currentVersion = { VERSION: "0.2.16", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION) {
|
|
356362
356371
|
if (process.env.USER_TYPE === "ant") {
|
|
356363
|
-
const changelog = { VERSION: "0.2.
|
|
356372
|
+
const changelog = { VERSION: "0.2.16", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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;
|
|
356364
356373
|
if (changelog) {
|
|
356365
356374
|
const commits = changelog.trim().split(`
|
|
356366
356375
|
`).filter(Boolean);
|
|
@@ -360762,7 +360771,7 @@ var init_Messages = __esm(() => {
|
|
|
360762
360771
|
let t1;
|
|
360763
360772
|
if ($2[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
360764
360773
|
t1 = /* @__PURE__ */ jsx_runtime251.jsx(TheusSessionHeader, {
|
|
360765
|
-
version: { VERSION: "0.2.
|
|
360774
|
+
version: { VERSION: "0.2.16", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
|
|
360766
360775
|
});
|
|
360767
360776
|
$2[0] = t1;
|
|
360768
360777
|
} else {
|
|
@@ -368466,73 +368475,121 @@ var require_browser2 = __commonJS((exports) => {
|
|
|
368466
368475
|
});
|
|
368467
368476
|
|
|
368468
368477
|
// node_modules/qrcode/lib/server.js
|
|
368469
|
-
|
|
368470
|
-
|
|
368471
|
-
|
|
368478
|
+
var require_server = __commonJS((exports) => {
|
|
368479
|
+
var canPromise = require_can_promise();
|
|
368480
|
+
var QRCode = require_qrcode();
|
|
368481
|
+
var PngRenderer = require_png2();
|
|
368482
|
+
var Utf8Renderer = require_utf8();
|
|
368483
|
+
var TerminalRenderer = require_terminal2();
|
|
368484
|
+
var SvgRenderer = require_svg();
|
|
368485
|
+
function checkParams(text, opts, cb) {
|
|
368486
|
+
if (typeof text === "undefined") {
|
|
368487
|
+
throw new Error("String required as first argument");
|
|
368488
|
+
}
|
|
368489
|
+
if (typeof cb === "undefined") {
|
|
368490
|
+
cb = opts;
|
|
368491
|
+
opts = {};
|
|
368492
|
+
}
|
|
368493
|
+
if (typeof cb !== "function") {
|
|
368494
|
+
if (!canPromise()) {
|
|
368495
|
+
throw new Error("Callback required as last argument");
|
|
368496
|
+
} else {
|
|
368497
|
+
opts = cb || {};
|
|
368498
|
+
cb = null;
|
|
368499
|
+
}
|
|
368500
|
+
}
|
|
368501
|
+
return {
|
|
368502
|
+
opts,
|
|
368503
|
+
cb
|
|
368504
|
+
};
|
|
368472
368505
|
}
|
|
368473
|
-
|
|
368474
|
-
|
|
368475
|
-
opts = {};
|
|
368506
|
+
function getTypeFromFilename(path19) {
|
|
368507
|
+
return path19.slice((path19.lastIndexOf(".") - 1 >>> 0) + 2).toLowerCase();
|
|
368476
368508
|
}
|
|
368477
|
-
|
|
368478
|
-
|
|
368479
|
-
|
|
368480
|
-
|
|
368481
|
-
|
|
368482
|
-
|
|
368509
|
+
function getRendererFromType(type) {
|
|
368510
|
+
switch (type) {
|
|
368511
|
+
case "svg":
|
|
368512
|
+
return SvgRenderer;
|
|
368513
|
+
case "txt":
|
|
368514
|
+
case "utf8":
|
|
368515
|
+
return Utf8Renderer;
|
|
368516
|
+
case "png":
|
|
368517
|
+
case "image/png":
|
|
368518
|
+
default:
|
|
368519
|
+
return PngRenderer;
|
|
368483
368520
|
}
|
|
368484
368521
|
}
|
|
368485
|
-
|
|
368486
|
-
|
|
368487
|
-
|
|
368488
|
-
|
|
368489
|
-
|
|
368490
|
-
|
|
368491
|
-
|
|
368492
|
-
|
|
368493
|
-
|
|
368494
|
-
|
|
368495
|
-
return TerminalRenderer;
|
|
368496
|
-
case "utf8":
|
|
368497
|
-
default:
|
|
368498
|
-
return Utf8Renderer;
|
|
368499
|
-
}
|
|
368500
|
-
}
|
|
368501
|
-
function render2(renderFunc, text, params) {
|
|
368502
|
-
if (!params.cb) {
|
|
368503
|
-
return new Promise(function(resolve43, reject2) {
|
|
368504
|
-
try {
|
|
368505
|
-
const data = QRCode.create(text, params.opts);
|
|
368506
|
-
return renderFunc(data, params.opts, function(err2, data2) {
|
|
368507
|
-
return err2 ? reject2(err2) : resolve43(data2);
|
|
368508
|
-
});
|
|
368509
|
-
} catch (e) {
|
|
368510
|
-
reject2(e);
|
|
368511
|
-
}
|
|
368512
|
-
});
|
|
368522
|
+
function getStringRendererFromType(type) {
|
|
368523
|
+
switch (type) {
|
|
368524
|
+
case "svg":
|
|
368525
|
+
return SvgRenderer;
|
|
368526
|
+
case "terminal":
|
|
368527
|
+
return TerminalRenderer;
|
|
368528
|
+
case "utf8":
|
|
368529
|
+
default:
|
|
368530
|
+
return Utf8Renderer;
|
|
368531
|
+
}
|
|
368513
368532
|
}
|
|
368514
|
-
|
|
368515
|
-
|
|
368516
|
-
|
|
368517
|
-
|
|
368518
|
-
|
|
368533
|
+
function render2(renderFunc, text, params) {
|
|
368534
|
+
if (!params.cb) {
|
|
368535
|
+
return new Promise(function(resolve43, reject2) {
|
|
368536
|
+
try {
|
|
368537
|
+
const data = QRCode.create(text, params.opts);
|
|
368538
|
+
return renderFunc(data, params.opts, function(err2, data2) {
|
|
368539
|
+
return err2 ? reject2(err2) : resolve43(data2);
|
|
368540
|
+
});
|
|
368541
|
+
} catch (e) {
|
|
368542
|
+
reject2(e);
|
|
368543
|
+
}
|
|
368544
|
+
});
|
|
368545
|
+
}
|
|
368546
|
+
try {
|
|
368547
|
+
const data = QRCode.create(text, params.opts);
|
|
368548
|
+
return renderFunc(data, params.opts, params.cb);
|
|
368549
|
+
} catch (e) {
|
|
368550
|
+
params.cb(e);
|
|
368551
|
+
}
|
|
368519
368552
|
}
|
|
368520
|
-
|
|
368521
|
-
|
|
368522
|
-
|
|
368523
|
-
|
|
368524
|
-
|
|
368525
|
-
|
|
368526
|
-
|
|
368527
|
-
|
|
368528
|
-
|
|
368529
|
-
|
|
368530
|
-
|
|
368531
|
-
|
|
368532
|
-
|
|
368533
|
-
|
|
368534
|
-
|
|
368535
|
-
|
|
368553
|
+
exports.create = QRCode.create;
|
|
368554
|
+
exports.toCanvas = require_browser2().toCanvas;
|
|
368555
|
+
exports.toString = function toString(text, opts, cb) {
|
|
368556
|
+
const params = checkParams(text, opts, cb);
|
|
368557
|
+
const type = params.opts ? params.opts.type : undefined;
|
|
368558
|
+
const renderer = getStringRendererFromType(type);
|
|
368559
|
+
return render2(renderer.render, text, params);
|
|
368560
|
+
};
|
|
368561
|
+
exports.toDataURL = function toDataURL(text, opts, cb) {
|
|
368562
|
+
const params = checkParams(text, opts, cb);
|
|
368563
|
+
const renderer = getRendererFromType(params.opts.type);
|
|
368564
|
+
return render2(renderer.renderToDataURL, text, params);
|
|
368565
|
+
};
|
|
368566
|
+
exports.toBuffer = function toBuffer(text, opts, cb) {
|
|
368567
|
+
const params = checkParams(text, opts, cb);
|
|
368568
|
+
const renderer = getRendererFromType(params.opts.type);
|
|
368569
|
+
return render2(renderer.renderToBuffer, text, params);
|
|
368570
|
+
};
|
|
368571
|
+
exports.toFile = function toFile(path19, text, opts, cb) {
|
|
368572
|
+
if (typeof path19 !== "string" || !(typeof text === "string" || typeof text === "object")) {
|
|
368573
|
+
throw new Error("Invalid argument");
|
|
368574
|
+
}
|
|
368575
|
+
if (arguments.length < 3 && !canPromise()) {
|
|
368576
|
+
throw new Error("Too few arguments provided");
|
|
368577
|
+
}
|
|
368578
|
+
const params = checkParams(text, opts, cb);
|
|
368579
|
+
const type = params.opts.type || getTypeFromFilename(path19);
|
|
368580
|
+
const renderer = getRendererFromType(type);
|
|
368581
|
+
const renderToFile = renderer.renderToFile.bind(null, path19);
|
|
368582
|
+
return render2(renderToFile, text, params);
|
|
368583
|
+
};
|
|
368584
|
+
exports.toFileStream = function toFileStream(stream4, text, opts) {
|
|
368585
|
+
if (arguments.length < 2) {
|
|
368586
|
+
throw new Error("Too few arguments provided");
|
|
368587
|
+
}
|
|
368588
|
+
const params = checkParams(text, opts, stream4.emit.bind(stream4, "error"));
|
|
368589
|
+
const renderer = getRendererFromType("png");
|
|
368590
|
+
const renderToFileStream = renderer.renderToFileStream.bind(null, stream4);
|
|
368591
|
+
render2(renderToFileStream, text, params);
|
|
368592
|
+
};
|
|
368536
368593
|
});
|
|
368537
368594
|
|
|
368538
368595
|
// commands/session/session.tsx
|
|
@@ -368556,7 +368613,7 @@ function SessionInfo(t0) {
|
|
|
368556
368613
|
}
|
|
368557
368614
|
const url3 = remoteSessionUrl;
|
|
368558
368615
|
const generateQRCode = async function generateQRCode() {
|
|
368559
|
-
const qr = await
|
|
368616
|
+
const qr = await import_qrcode.toString(url3, {
|
|
368560
368617
|
type: "utf8",
|
|
368561
368618
|
errorCorrectionLevel: "L"
|
|
368562
368619
|
});
|
|
@@ -368711,19 +368768,19 @@ function _temp245(e) {
|
|
|
368711
368768
|
function _temp111(s) {
|
|
368712
368769
|
return s.remoteSessionUrl;
|
|
368713
368770
|
}
|
|
368714
|
-
var import_react151, jsx_runtime259, call31 = async (onDone) => {
|
|
368771
|
+
var import_qrcode, import_react151, jsx_runtime259, call31 = async (onDone) => {
|
|
368715
368772
|
return /* @__PURE__ */ jsx_runtime259.jsx(SessionInfo, {
|
|
368716
368773
|
onDone
|
|
368717
368774
|
});
|
|
368718
368775
|
};
|
|
368719
368776
|
var init_session = __esm(() => {
|
|
368720
368777
|
init_compiler_runtime();
|
|
368721
|
-
init_server();
|
|
368722
368778
|
init_Pane();
|
|
368723
368779
|
init_ink2();
|
|
368724
368780
|
init_useKeybinding();
|
|
368725
368781
|
init_AppState();
|
|
368726
368782
|
init_debug();
|
|
368783
|
+
import_qrcode = __toESM(require_server(), 1);
|
|
368727
368784
|
import_react151 = __toESM(require_react(), 1);
|
|
368728
368785
|
jsx_runtime259 = __toESM(require_jsx_runtime(), 1);
|
|
368729
368786
|
});
|
|
@@ -388309,7 +388366,7 @@ async function captureMemoryDiagnostics(trigger, dumpNumber = 0) {
|
|
|
388309
388366
|
smapsRollup,
|
|
388310
388367
|
platform: process.platform,
|
|
388311
388368
|
nodeVersion: process.version,
|
|
388312
|
-
ccVersion: { VERSION: "0.2.
|
|
388369
|
+
ccVersion: { VERSION: "0.2.16", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
|
|
388313
388370
|
};
|
|
388314
388371
|
}
|
|
388315
388372
|
async function performHeapDump(trigger = "manual", dumpNumber = 0) {
|
|
@@ -388895,7 +388952,7 @@ var init_bridge_kick = __esm(() => {
|
|
|
388895
388952
|
var call55 = async () => {
|
|
388896
388953
|
return {
|
|
388897
388954
|
type: "text",
|
|
388898
|
-
value: { VERSION: "0.2.
|
|
388955
|
+
value: { VERSION: "0.2.16", BUILD_TIME: "1970-01-01T00:00:00.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.16", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.16", BUILD_TIME: "1970-01-01T00:00:00.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.16", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
|
|
388899
388956
|
};
|
|
388900
388957
|
}, version2, version_default;
|
|
388901
388958
|
var init_version = __esm(() => {
|
|
@@ -388933,6 +388990,13 @@ async function gatewayJson(path19, method = "GET", body) {
|
|
|
388933
388990
|
return { _error: 0 };
|
|
388934
388991
|
}
|
|
388935
388992
|
}
|
|
388993
|
+
async function makeQr(text) {
|
|
388994
|
+
try {
|
|
388995
|
+
return await import_qrcode2.default.toString(text, { type: "terminal", small: true });
|
|
388996
|
+
} catch {
|
|
388997
|
+
return;
|
|
388998
|
+
}
|
|
388999
|
+
}
|
|
388936
389000
|
function RemoteHint() {
|
|
388937
389001
|
return /* @__PURE__ */ jsx_runtime324.jsxs(ThemedBox_default, {
|
|
388938
389002
|
flexDirection: "column",
|
|
@@ -389013,11 +389077,15 @@ function TelegramOnboarding({
|
|
|
389013
389077
|
setView({ phase: "error", message: "No pude generar el enlace de vinculaci\xF3n." });
|
|
389014
389078
|
return;
|
|
389015
389079
|
}
|
|
389080
|
+
const qr = await makeQr(link6.deep_link);
|
|
389081
|
+
if (cancelled)
|
|
389082
|
+
return;
|
|
389016
389083
|
setView({
|
|
389017
389084
|
phase: "not-linked",
|
|
389018
389085
|
deepLink: link6.deep_link,
|
|
389019
389086
|
bot: link6.bot ?? undefined,
|
|
389020
|
-
token: link6.token
|
|
389087
|
+
token: link6.token,
|
|
389088
|
+
qr
|
|
389021
389089
|
});
|
|
389022
389090
|
let ticks = 0;
|
|
389023
389091
|
pollRef.current = setInterval(async () => {
|
|
@@ -389109,6 +389177,19 @@ function TelegramOnboarding({
|
|
|
389109
389177
|
/* @__PURE__ */ jsx_runtime324.jsx(ThemedText, {
|
|
389110
389178
|
children: "Vincula tu Telegram con tu cuenta:"
|
|
389111
389179
|
}),
|
|
389180
|
+
view.qr && /* @__PURE__ */ jsx_runtime324.jsxs(ThemedBox_default, {
|
|
389181
|
+
marginTop: 1,
|
|
389182
|
+
flexDirection: "column",
|
|
389183
|
+
children: [
|
|
389184
|
+
/* @__PURE__ */ jsx_runtime324.jsx(ThemedText, {
|
|
389185
|
+
dimColor: true,
|
|
389186
|
+
children: " Escan\xE9alo con la c\xE1mara de tu tel\xE9fono:"
|
|
389187
|
+
}),
|
|
389188
|
+
/* @__PURE__ */ jsx_runtime324.jsx(ThemedText, {
|
|
389189
|
+
children: view.qr
|
|
389190
|
+
})
|
|
389191
|
+
]
|
|
389192
|
+
}),
|
|
389112
389193
|
/* @__PURE__ */ jsx_runtime324.jsxs(ThemedBox_default, {
|
|
389113
389194
|
marginTop: 1,
|
|
389114
389195
|
marginLeft: 2,
|
|
@@ -389116,7 +389197,7 @@ function TelegramOnboarding({
|
|
|
389116
389197
|
children: [
|
|
389117
389198
|
/* @__PURE__ */ jsx_runtime324.jsxs(ThemedText, {
|
|
389118
389199
|
children: [
|
|
389119
|
-
"1) Abre este enlace y pulsa ",
|
|
389200
|
+
view.qr ? "\u2026o abre este enlace y pulsa " : "1) Abre este enlace y pulsa ",
|
|
389120
389201
|
/* @__PURE__ */ jsx_runtime324.jsx(ThemedText, {
|
|
389121
389202
|
bold: true,
|
|
389122
389203
|
children: "Iniciar"
|
|
@@ -389175,7 +389256,7 @@ function TelegramOnboarding({
|
|
|
389175
389256
|
]
|
|
389176
389257
|
});
|
|
389177
389258
|
}
|
|
389178
|
-
var import_react177, jsx_runtime324, call56 = async (onDone) => {
|
|
389259
|
+
var import_qrcode2, import_react177, jsx_runtime324, call56 = async (onDone) => {
|
|
389179
389260
|
return /* @__PURE__ */ jsx_runtime324.jsx(TelegramOnboarding, {
|
|
389180
389261
|
onDone
|
|
389181
389262
|
});
|
|
@@ -389185,6 +389266,7 @@ var init_telegram = __esm(() => {
|
|
|
389185
389266
|
init_oauth();
|
|
389186
389267
|
init_ink2();
|
|
389187
389268
|
init_auth();
|
|
389269
|
+
import_qrcode2 = __toESM(require_server(), 1);
|
|
389188
389270
|
import_react177 = __toESM(require_react(), 1);
|
|
389189
389271
|
jsx_runtime324 = __toESM(require_jsx_runtime(), 1);
|
|
389190
389272
|
telegram = {
|
|
@@ -393027,13 +393109,13 @@ async function updateReleaseBundle() {
|
|
|
393027
393109
|
await gracefulShutdown(1);
|
|
393028
393110
|
return;
|
|
393029
393111
|
}
|
|
393030
|
-
if (gte({ VERSION: "0.2.
|
|
393031
|
-
writeToStdout(source_default.green(`Theus is up to date (${{ VERSION: "0.2.
|
|
393112
|
+
if (gte({ VERSION: "0.2.16", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
|
|
393113
|
+
writeToStdout(source_default.green(`Theus is up to date (${{ VERSION: "0.2.16", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION})`) + `
|
|
393032
393114
|
`);
|
|
393033
393115
|
await gracefulShutdown(0);
|
|
393034
393116
|
return;
|
|
393035
393117
|
}
|
|
393036
|
-
writeToStdout(`New version available: ${latest} (current: ${{ VERSION: "0.2.
|
|
393118
|
+
writeToStdout(`New version available: ${latest} (current: ${{ VERSION: "0.2.16", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION})
|
|
393037
393119
|
`);
|
|
393038
393120
|
writeToStdout(`Installing update from theus.pe/dl...
|
|
393039
393121
|
`);
|
|
@@ -393067,7 +393149,7 @@ async function updateReleaseBundle() {
|
|
|
393067
393149
|
return;
|
|
393068
393150
|
}
|
|
393069
393151
|
cpSync(staged, bundleDir, { recursive: true, force: true });
|
|
393070
|
-
writeToStdout(source_default.green(`Successfully updated from ${{ VERSION: "0.2.
|
|
393152
|
+
writeToStdout(source_default.green(`Successfully updated from ${{ VERSION: "0.2.16", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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}`) + `
|
|
393071
393153
|
`);
|
|
393072
393154
|
await regenerateCompletionCache();
|
|
393073
393155
|
} finally {
|
|
@@ -393080,7 +393162,7 @@ async function updateReleaseBundle() {
|
|
|
393080
393162
|
async function update() {
|
|
393081
393163
|
logEvent("tengu_update_check", {});
|
|
393082
393164
|
await updateNaupa();
|
|
393083
|
-
writeToStdout(`Current version: ${{ VERSION: "0.2.
|
|
393165
|
+
writeToStdout(`Current version: ${{ VERSION: "0.2.16", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION}
|
|
393084
393166
|
`);
|
|
393085
393167
|
const channel2 = getInitialSettings()?.autoUpdatesChannel ?? "latest";
|
|
393086
393168
|
writeToStdout(`Checking for updates to ${channel2} version...
|
|
@@ -393159,8 +393241,8 @@ async function update() {
|
|
|
393159
393241
|
writeToStdout(`Theus is managed by Homebrew.
|
|
393160
393242
|
`);
|
|
393161
393243
|
const latest = await getLatestVersion(channel2);
|
|
393162
|
-
if (latest && !gte({ VERSION: "0.2.
|
|
393163
|
-
writeToStdout(`Update available: ${{ VERSION: "0.2.
|
|
393244
|
+
if (latest && !gte({ VERSION: "0.2.16", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
|
|
393245
|
+
writeToStdout(`Update available: ${{ VERSION: "0.2.16", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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}
|
|
393164
393246
|
`);
|
|
393165
393247
|
writeToStdout(`
|
|
393166
393248
|
`);
|
|
@@ -393176,8 +393258,8 @@ async function update() {
|
|
|
393176
393258
|
writeToStdout(`Theus is managed by winget.
|
|
393177
393259
|
`);
|
|
393178
393260
|
const latest = await getLatestVersion(channel2);
|
|
393179
|
-
if (latest && !gte({ VERSION: "0.2.
|
|
393180
|
-
writeToStdout(`Update available: ${{ VERSION: "0.2.
|
|
393261
|
+
if (latest && !gte({ VERSION: "0.2.16", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
|
|
393262
|
+
writeToStdout(`Update available: ${{ VERSION: "0.2.16", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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}
|
|
393181
393263
|
`);
|
|
393182
393264
|
writeToStdout(`
|
|
393183
393265
|
`);
|
|
@@ -393193,8 +393275,8 @@ async function update() {
|
|
|
393193
393275
|
writeToStdout(`Theus is managed by apk.
|
|
393194
393276
|
`);
|
|
393195
393277
|
const latest = await getLatestVersion(channel2);
|
|
393196
|
-
if (latest && !gte({ VERSION: "0.2.
|
|
393197
|
-
writeToStdout(`Update available: ${{ VERSION: "0.2.
|
|
393278
|
+
if (latest && !gte({ VERSION: "0.2.16", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
|
|
393279
|
+
writeToStdout(`Update available: ${{ VERSION: "0.2.16", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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}
|
|
393198
393280
|
`);
|
|
393199
393281
|
writeToStdout(`
|
|
393200
393282
|
`);
|
|
@@ -393259,11 +393341,11 @@ async function update() {
|
|
|
393259
393341
|
`);
|
|
393260
393342
|
await gracefulShutdown(1);
|
|
393261
393343
|
}
|
|
393262
|
-
if (result.latestVersion === { VERSION: "0.2.
|
|
393263
|
-
writeToStdout(source_default.green(`Theus is up to date (${{ VERSION: "0.2.
|
|
393344
|
+
if (result.latestVersion === { VERSION: "0.2.16", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION) {
|
|
393345
|
+
writeToStdout(source_default.green(`Theus is up to date (${{ VERSION: "0.2.16", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION})`) + `
|
|
393264
393346
|
`);
|
|
393265
393347
|
} else {
|
|
393266
|
-
writeToStdout(source_default.green(`Successfully updated from ${{ VERSION: "0.2.
|
|
393348
|
+
writeToStdout(source_default.green(`Successfully updated from ${{ VERSION: "0.2.16", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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}`) + `
|
|
393267
393349
|
`);
|
|
393268
393350
|
await regenerateCompletionCache();
|
|
393269
393351
|
}
|
|
@@ -393282,9 +393364,9 @@ async function update() {
|
|
|
393282
393364
|
await removeInstalledSymlink();
|
|
393283
393365
|
}
|
|
393284
393366
|
logForDebugging("update: Checking npm registry for latest version");
|
|
393285
|
-
logForDebugging(`update: Package URL: ${{ VERSION: "0.2.
|
|
393367
|
+
logForDebugging(`update: Package URL: ${{ VERSION: "0.2.16", BUILD_TIME: "1970-01-01T00:00:00.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}`);
|
|
393286
393368
|
const npmTag = channel2 === "stable" ? "stable" : "latest";
|
|
393287
|
-
const npmCommand = `npm view ${{ VERSION: "0.2.
|
|
393369
|
+
const npmCommand = `npm view ${{ VERSION: "0.2.16", BUILD_TIME: "1970-01-01T00:00:00.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`;
|
|
393288
393370
|
logForDebugging(`update: Running: ${npmCommand}`);
|
|
393289
393371
|
const latestVersion = await getLatestVersion(channel2);
|
|
393290
393372
|
logForDebugging(`update: Latest version from npm: ${latestVersion || "FAILED"}`);
|
|
@@ -393304,7 +393386,7 @@ async function update() {
|
|
|
393304
393386
|
`);
|
|
393305
393387
|
process.stderr.write(` \u2022 Corporate proxy/firewall blocking npm
|
|
393306
393388
|
`);
|
|
393307
|
-
if ({ VERSION: "0.2.
|
|
393389
|
+
if ({ VERSION: "0.2.16", BUILD_TIME: "1970-01-01T00:00:00.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.16", BUILD_TIME: "1970-01-01T00:00:00.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")) {
|
|
393308
393390
|
process.stderr.write(` \u2022 Internal/development build not published to npm
|
|
393309
393391
|
`);
|
|
393310
393392
|
}
|
|
@@ -393316,19 +393398,19 @@ async function update() {
|
|
|
393316
393398
|
`);
|
|
393317
393399
|
process.stderr.write(` \u2022 Run with --debug flag for more details
|
|
393318
393400
|
`);
|
|
393319
|
-
const packageName = { VERSION: "0.2.
|
|
393401
|
+
const packageName = { VERSION: "0.2.16", BUILD_TIME: "1970-01-01T00:00:00.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");
|
|
393320
393402
|
process.stderr.write(` \u2022 Manually check: npm view ${packageName} version
|
|
393321
393403
|
`);
|
|
393322
393404
|
process.stderr.write(` \u2022 Check if you need to login: npm whoami
|
|
393323
393405
|
`);
|
|
393324
393406
|
await gracefulShutdown(1);
|
|
393325
393407
|
}
|
|
393326
|
-
if (gte({ VERSION: "0.2.
|
|
393327
|
-
writeToStdout(source_default.green(`Theus is up to date (${{ VERSION: "0.2.
|
|
393408
|
+
if (gte({ VERSION: "0.2.16", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
|
|
393409
|
+
writeToStdout(source_default.green(`Theus is up to date (${{ VERSION: "0.2.16", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION})`) + `
|
|
393328
393410
|
`);
|
|
393329
393411
|
await gracefulShutdown(0);
|
|
393330
393412
|
}
|
|
393331
|
-
writeToStdout(`New version available: ${latestVersion} (current: ${{ VERSION: "0.2.
|
|
393413
|
+
writeToStdout(`New version available: ${latestVersion} (current: ${{ VERSION: "0.2.16", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION})
|
|
393332
393414
|
`);
|
|
393333
393415
|
writeToStdout(`Installing update...
|
|
393334
393416
|
`);
|
|
@@ -393373,7 +393455,7 @@ async function update() {
|
|
|
393373
393455
|
logForDebugging(`update: Installation status: ${status2}`);
|
|
393374
393456
|
switch (status2) {
|
|
393375
393457
|
case "success":
|
|
393376
|
-
writeToStdout(source_default.green(`Successfully updated from ${{ VERSION: "0.2.
|
|
393458
|
+
writeToStdout(source_default.green(`Successfully updated from ${{ VERSION: "0.2.16", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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}`) + `
|
|
393377
393459
|
`);
|
|
393378
393460
|
await regenerateCompletionCache();
|
|
393379
393461
|
break;
|
|
@@ -393383,7 +393465,7 @@ async function update() {
|
|
|
393383
393465
|
if (useLocalUpdate) {
|
|
393384
393466
|
process.stderr.write(`Try manually updating with:
|
|
393385
393467
|
`);
|
|
393386
|
-
process.stderr.write(` cd ~/.theus/local && npm update ${{ VERSION: "0.2.
|
|
393468
|
+
process.stderr.write(` cd ~/.theus/local && npm update ${{ VERSION: "0.2.16", BUILD_TIME: "1970-01-01T00:00:00.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}
|
|
393387
393469
|
`);
|
|
393388
393470
|
} else {
|
|
393389
393471
|
process.stderr.write(`Try running with sudo or fix npm permissions
|
|
@@ -393399,7 +393481,7 @@ async function update() {
|
|
|
393399
393481
|
if (useLocalUpdate) {
|
|
393400
393482
|
process.stderr.write(`Try manually updating with:
|
|
393401
393483
|
`);
|
|
393402
|
-
process.stderr.write(` cd ~/.theus/local && npm update ${{ VERSION: "0.2.
|
|
393484
|
+
process.stderr.write(` cd ~/.theus/local && npm update ${{ VERSION: "0.2.16", BUILD_TIME: "1970-01-01T00:00:00.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}
|
|
393403
393485
|
`);
|
|
393404
393486
|
} else {
|
|
393405
393487
|
process.stderr.write(`Or consider using native installation with: theus install
|
|
@@ -400301,7 +400383,7 @@ var init_sessionStorage = __esm(() => {
|
|
|
400301
400383
|
init_settings2();
|
|
400302
400384
|
init_slowOperations();
|
|
400303
400385
|
init_uuid();
|
|
400304
|
-
VERSION4 = { VERSION: "0.2.
|
|
400386
|
+
VERSION4 = { VERSION: "0.2.16", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION;
|
|
400305
400387
|
MAX_TOMBSTONE_REWRITE_BYTES = 50 * 1024 * 1024;
|
|
400306
400388
|
SKIP_FIRST_PROMPT_PATTERN = /^(?:\s*<[a-z][\w-]*[\s>]|\[Request interrupted by user[^\]]*\])/;
|
|
400307
400389
|
EPHEMERAL_PROGRESS_TYPES = new Set([
|
|
@@ -401506,7 +401588,7 @@ var init_filesystem = __esm(() => {
|
|
|
401506
401588
|
});
|
|
401507
401589
|
getBundledSkillsRoot = memoize_default(function getBundledSkillsRoot2() {
|
|
401508
401590
|
const nonce = randomBytes21(16).toString("hex");
|
|
401509
|
-
return join147(getTheusTempDir(), "bundled-skills", { VERSION: "0.2.
|
|
401591
|
+
return join147(getTheusTempDir(), "bundled-skills", { VERSION: "0.2.16", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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);
|
|
401510
401592
|
});
|
|
401511
401593
|
getResolvedWorkingDirPaths = memoize_default(getPathsForPermissionCheck);
|
|
401512
401594
|
});
|
|
@@ -406681,7 +406763,7 @@ function getSimpleDoingTasksSection() {
|
|
|
406681
406763
|
];
|
|
406682
406764
|
const userHelpSubitems = [
|
|
406683
406765
|
`/help: Get help with using Theus`,
|
|
406684
|
-
`To give feedback, users should ${{ VERSION: "0.2.
|
|
406766
|
+
`To give feedback, users should ${{ VERSION: "0.2.16", BUILD_TIME: "1970-01-01T00:00:00.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}`
|
|
406685
406767
|
];
|
|
406686
406768
|
const items = [
|
|
406687
406769
|
`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.`,
|
|
@@ -407504,7 +407586,7 @@ function computeFingerprint(messageText, version3) {
|
|
|
407504
407586
|
}
|
|
407505
407587
|
function computeFingerprintFromMessages(messages) {
|
|
407506
407588
|
const firstMessageText = extractFirstMessageText(messages);
|
|
407507
|
-
return computeFingerprint(firstMessageText, { VERSION: "0.2.
|
|
407589
|
+
return computeFingerprint(firstMessageText, { VERSION: "0.2.16", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION);
|
|
407508
407590
|
}
|
|
407509
407591
|
var FINGERPRINT_SALT = "59cf53e54c78";
|
|
407510
407592
|
var init_fingerprint = () => {};
|
|
@@ -410028,7 +410110,7 @@ async function sideQuery(opts) {
|
|
|
410028
410110
|
betas.push(STRUCTURED_OUTPUTS_BETA_HEADER);
|
|
410029
410111
|
}
|
|
410030
410112
|
const messageText = extractFirstUserMessageText(messages);
|
|
410031
|
-
const fingerprint = computeFingerprint(messageText, { VERSION: "0.2.
|
|
410113
|
+
const fingerprint = computeFingerprint(messageText, { VERSION: "0.2.16", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION);
|
|
410032
410114
|
const attributionHeader = getAttributionHeader(fingerprint);
|
|
410033
410115
|
const systemBlocks = [
|
|
410034
410116
|
attributionHeader ? { type: "text", text: attributionHeader } : null,
|
|
@@ -410735,18 +410817,18 @@ class ExperimentalServerTasks {
|
|
|
410735
410817
|
return this._server.cancelTask({ taskId }, options2);
|
|
410736
410818
|
}
|
|
410737
410819
|
}
|
|
410738
|
-
var
|
|
410820
|
+
var init_server = __esm(() => {
|
|
410739
410821
|
init_types();
|
|
410740
410822
|
});
|
|
410741
410823
|
|
|
410742
410824
|
// node_modules/@modelcontextprotocol/sdk/dist/esm/server/index.js
|
|
410743
410825
|
var Server;
|
|
410744
|
-
var
|
|
410826
|
+
var init_server2 = __esm(() => {
|
|
410745
410827
|
init_protocol();
|
|
410746
410828
|
init_types();
|
|
410747
410829
|
init_ajv_provider();
|
|
410748
410830
|
init_zod_compat();
|
|
410749
|
-
|
|
410831
|
+
init_server();
|
|
410750
410832
|
Server = class Server extends Protocol {
|
|
410751
410833
|
constructor(_serverInfo, options2) {
|
|
410752
410834
|
super(options2);
|
|
@@ -411331,7 +411413,7 @@ async function handleMemories(state) {
|
|
|
411331
411413
|
async function runProjectContextMcpServer() {
|
|
411332
411414
|
const projectRoot = process.env.THEUS_PROJECT_ROOT || process.cwd();
|
|
411333
411415
|
const state = new ProjectContextState(projectRoot);
|
|
411334
|
-
const server2 = new Server({ name: SERVER_NAME, version: { VERSION: "0.2.
|
|
411416
|
+
const server2 = new Server({ name: SERVER_NAME, version: { VERSION: "0.2.16", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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: {} } });
|
|
411335
411417
|
server2.setRequestHandler(ListToolsRequestSchema, async () => ({
|
|
411336
411418
|
tools: TOOL_DEFINITIONS.map((t) => ({
|
|
411337
411419
|
name: t.name,
|
|
@@ -411388,8 +411470,8 @@ async function runProjectContextMcpServer() {
|
|
|
411388
411470
|
logToStderr("servidor MCP listo");
|
|
411389
411471
|
}
|
|
411390
411472
|
var SERVER_NAME = "theus-project-context", TOOL_DEFINITIONS;
|
|
411391
|
-
var
|
|
411392
|
-
|
|
411473
|
+
var init_server3 = __esm(() => {
|
|
411474
|
+
init_server2();
|
|
411393
411475
|
init_stdio2();
|
|
411394
411476
|
init_types();
|
|
411395
411477
|
init_indexer();
|
|
@@ -411928,8 +412010,8 @@ var num = (v, fallback = NaN) => {
|
|
|
411928
412010
|
const n3 = typeof v === "number" ? v : Number.parseFloat(String(v));
|
|
411929
412011
|
return Number.isFinite(n3) ? n3 : fallback;
|
|
411930
412012
|
}, clamp3 = (v, lo, hi) => Math.min(Math.max(v, lo), hi), COORD, TOOLS;
|
|
411931
|
-
var
|
|
411932
|
-
|
|
412013
|
+
var init_server4 = __esm(() => {
|
|
412014
|
+
init_server2();
|
|
411933
412015
|
init_stdio2();
|
|
411934
412016
|
init_types();
|
|
411935
412017
|
init_macos();
|
|
@@ -413142,7 +413224,7 @@ var init_main3 = __esm(() => {
|
|
|
413142
413224
|
|
|
413143
413225
|
// bridge/bridgeUI.ts
|
|
413144
413226
|
async function generateQr(url3) {
|
|
413145
|
-
const qr = await
|
|
413227
|
+
const qr = await import_qrcode3.toString(url3, QR_OPTIONS);
|
|
413146
413228
|
return qr.split(`
|
|
413147
413229
|
`).filter((line) => line.length > 0);
|
|
413148
413230
|
}
|
|
@@ -413311,7 +413393,7 @@ function createBridgeLogger(options2) {
|
|
|
413311
413393
|
connectUrl = buildBridgeConnectUrl(environmentId, cachedIngressUrl);
|
|
413312
413394
|
regenerateQr(connectUrl);
|
|
413313
413395
|
if (verbose) {
|
|
413314
|
-
write(source_default.dim(`Remote Control`) + ` v${{ VERSION: "0.2.
|
|
413396
|
+
write(source_default.dim(`Remote Control`) + ` v${{ VERSION: "0.2.16", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION}
|
|
413315
413397
|
`);
|
|
413316
413398
|
}
|
|
413317
413399
|
if (verbose) {
|
|
@@ -413490,14 +413572,14 @@ function createBridgeLogger(options2) {
|
|
|
413490
413572
|
}
|
|
413491
413573
|
};
|
|
413492
413574
|
}
|
|
413493
|
-
var QR_OPTIONS;
|
|
413575
|
+
var import_qrcode3, QR_OPTIONS;
|
|
413494
413576
|
var init_bridgeUI = __esm(() => {
|
|
413495
413577
|
init_source();
|
|
413496
|
-
init_server();
|
|
413497
413578
|
init_figures2();
|
|
413498
413579
|
init_stringWidth();
|
|
413499
413580
|
init_debug();
|
|
413500
413581
|
init_bridgeStatusUtil();
|
|
413582
|
+
import_qrcode3 = __toESM(require_server(), 1);
|
|
413501
413583
|
QR_OPTIONS = {
|
|
413502
413584
|
type: "utf8",
|
|
413503
413585
|
errorCorrectionLevel: "L",
|
|
@@ -414284,7 +414366,7 @@ function appendToLog(path19, message) {
|
|
|
414284
414366
|
cwd: getFsImplementation().cwd(),
|
|
414285
414367
|
userType: process.env.USER_TYPE,
|
|
414286
414368
|
sessionId: getSessionId(),
|
|
414287
|
-
version: { VERSION: "0.2.
|
|
414369
|
+
version: { VERSION: "0.2.16", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
|
|
414288
414370
|
};
|
|
414289
414371
|
getLogWriter(path19).write(messageWithTimestamp);
|
|
414290
414372
|
}
|
|
@@ -415554,7 +415636,7 @@ Spawn mode for this project:
|
|
|
415554
415636
|
const api2 = createBridgeApiClient({
|
|
415555
415637
|
baseUrl,
|
|
415556
415638
|
getAccessToken: getBridgeAccessToken2,
|
|
415557
|
-
runnerVersion: { VERSION: "0.2.
|
|
415639
|
+
runnerVersion: { VERSION: "0.2.16", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
|
|
415558
415640
|
onDebug: logForDebugging,
|
|
415559
415641
|
onAuth401: handleOAuth401Error2,
|
|
415560
415642
|
getTrustedDeviceToken
|
|
@@ -415792,7 +415874,7 @@ async function runBridgeHeadless(opts, signal) {
|
|
|
415792
415874
|
const api2 = createBridgeApiClient({
|
|
415793
415875
|
baseUrl,
|
|
415794
415876
|
getAccessToken: opts.getAccessToken,
|
|
415795
|
-
runnerVersion: { VERSION: "0.2.
|
|
415877
|
+
runnerVersion: { VERSION: "0.2.16", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
|
|
415796
415878
|
onDebug: log2,
|
|
415797
415879
|
onAuth401: opts.onAuth401,
|
|
415798
415880
|
getTrustedDeviceToken
|
|
@@ -419856,7 +419938,7 @@ function buildSystemInitMessage(inputs) {
|
|
|
419856
419938
|
slash_commands: inputs.commands.filter((c5) => c5.userInvocable !== false).map((c5) => c5.name),
|
|
419857
419939
|
apiKeySource: getTheusApiKeyWithSource().source,
|
|
419858
419940
|
betas: getSdkBetas(),
|
|
419859
|
-
theus_code_version: { VERSION: "0.2.
|
|
419941
|
+
theus_code_version: { VERSION: "0.2.16", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
|
|
419860
419942
|
output_style: outputStyle2,
|
|
419861
419943
|
agents: inputs.agents.map((agent) => agent.agentType),
|
|
419862
419944
|
skills: inputs.skills.filter((s) => s.userInvocable !== false).map((skill) => skill.name),
|
|
@@ -419896,8 +419978,8 @@ async function getEnvLessBridgeConfig() {
|
|
|
419896
419978
|
}
|
|
419897
419979
|
async function checkEnvLessBridgeMinVersion() {
|
|
419898
419980
|
const cfg = await getEnvLessBridgeConfig();
|
|
419899
|
-
if (cfg.min_version && lt({ VERSION: "0.2.
|
|
419900
|
-
return `Your version of Theus (${{ VERSION: "0.2.
|
|
419981
|
+
if (cfg.min_version && lt({ VERSION: "0.2.16", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
|
|
419982
|
+
return `Your version of Theus (${{ VERSION: "0.2.16", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.
|
|
419901
419983
|
Version ${cfg.min_version} or higher is required. Run \`theus update\` to update.`;
|
|
419902
419984
|
}
|
|
419903
419985
|
return null;
|
|
@@ -422220,7 +422302,7 @@ async function initBridgeCore(params) {
|
|
|
422220
422302
|
const rawApi = createBridgeApiClient({
|
|
422221
422303
|
baseUrl,
|
|
422222
422304
|
getAccessToken,
|
|
422223
|
-
runnerVersion: { VERSION: "0.2.
|
|
422305
|
+
runnerVersion: { VERSION: "0.2.16", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
|
|
422224
422306
|
onDebug: logForDebugging,
|
|
422225
422307
|
onAuth401,
|
|
422226
422308
|
getTrustedDeviceToken
|
|
@@ -439309,7 +439391,7 @@ var init_useVoiceEnabled = __esm(() => {
|
|
|
439309
439391
|
function getSemverPart(version3) {
|
|
439310
439392
|
return `${import_semver14.major(version3, { loose: true })}.${import_semver14.minor(version3, { loose: true })}.${import_semver14.patch(version3, { loose: true })}`;
|
|
439311
439393
|
}
|
|
439312
|
-
function useUpdateNotification(updatedVersion, initialVersion = { VERSION: "0.2.
|
|
439394
|
+
function useUpdateNotification(updatedVersion, initialVersion = { VERSION: "0.2.16", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION) {
|
|
439313
439395
|
const [lastNotifiedSemver, setLastNotifiedSemver] = import_react218.useState(() => getSemverPart(initialVersion));
|
|
439314
439396
|
if (!updatedVersion) {
|
|
439315
439397
|
return null;
|
|
@@ -439349,7 +439431,7 @@ function AutoUpdater({
|
|
|
439349
439431
|
return;
|
|
439350
439432
|
}
|
|
439351
439433
|
if (false) {}
|
|
439352
|
-
const currentVersion = { VERSION: "0.2.
|
|
439434
|
+
const currentVersion = { VERSION: "0.2.16", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION;
|
|
439353
439435
|
const channel2 = getInitialSettings()?.autoUpdatesChannel ?? "latest";
|
|
439354
439436
|
let latestVersion = await getLatestVersion(channel2);
|
|
439355
439437
|
const isDisabled2 = isAutoUpdaterDisabled();
|
|
@@ -439485,7 +439567,7 @@ function AutoUpdater({
|
|
|
439485
439567
|
" ",
|
|
439486
439568
|
/* @__PURE__ */ jsx_runtime390.jsx(ThemedText, {
|
|
439487
439569
|
bold: true,
|
|
439488
|
-
children: hasLocalInstall ? `cd ~/.theus/local && npm update ${{ VERSION: "0.2.
|
|
439570
|
+
children: hasLocalInstall ? `cd ~/.theus/local && npm update ${{ VERSION: "0.2.16", BUILD_TIME: "1970-01-01T00:00:00.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.16", BUILD_TIME: "1970-01-01T00:00:00.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}`
|
|
439489
439571
|
})
|
|
439490
439572
|
]
|
|
439491
439573
|
})
|
|
@@ -439562,12 +439644,12 @@ function NativeAutoUpdater({
|
|
|
439562
439644
|
logEvent("tengu_native_auto_updater_start", {});
|
|
439563
439645
|
try {
|
|
439564
439646
|
const maxVersion = await getMaxVersion();
|
|
439565
|
-
if (maxVersion && gt({ VERSION: "0.2.
|
|
439647
|
+
if (maxVersion && gt({ VERSION: "0.2.16", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
|
|
439566
439648
|
const msg = await getMaxVersionMessage();
|
|
439567
439649
|
setMaxVersionIssue(msg ?? "affects your version");
|
|
439568
439650
|
}
|
|
439569
439651
|
const result = await installLatest(channel2);
|
|
439570
|
-
const currentVersion = { VERSION: "0.2.
|
|
439652
|
+
const currentVersion = { VERSION: "0.2.16", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION;
|
|
439571
439653
|
const latencyMs = Date.now() - startTime2;
|
|
439572
439654
|
if (result.lockFailed) {
|
|
439573
439655
|
logEvent("tengu_native_auto_updater_lock_contention", {
|
|
@@ -439704,17 +439786,17 @@ function PackageManagerAutoUpdater(t0) {
|
|
|
439704
439786
|
const maxVersion = await getMaxVersion();
|
|
439705
439787
|
if (maxVersion && latest && gt(latest, maxVersion)) {
|
|
439706
439788
|
logForDebugging(`PackageManagerAutoUpdater: maxVersion ${maxVersion} is set, capping update from ${latest} to ${maxVersion}`);
|
|
439707
|
-
if (gte({ VERSION: "0.2.
|
|
439708
|
-
logForDebugging(`PackageManagerAutoUpdater: current version ${{ VERSION: "0.2.
|
|
439789
|
+
if (gte({ VERSION: "0.2.16", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
|
|
439790
|
+
logForDebugging(`PackageManagerAutoUpdater: current version ${{ VERSION: "0.2.16", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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`);
|
|
439709
439791
|
setUpdateAvailable(false);
|
|
439710
439792
|
return;
|
|
439711
439793
|
}
|
|
439712
439794
|
latest = maxVersion;
|
|
439713
439795
|
}
|
|
439714
|
-
const hasUpdate = latest && !gte({ VERSION: "0.2.
|
|
439796
|
+
const hasUpdate = latest && !gte({ VERSION: "0.2.16", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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);
|
|
439715
439797
|
setUpdateAvailable(!!hasUpdate);
|
|
439716
439798
|
if (hasUpdate) {
|
|
439717
|
-
logForDebugging(`PackageManagerAutoUpdater: Update available ${{ VERSION: "0.2.
|
|
439799
|
+
logForDebugging(`PackageManagerAutoUpdater: Update available ${{ VERSION: "0.2.16", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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}`);
|
|
439718
439800
|
}
|
|
439719
439801
|
};
|
|
439720
439802
|
$2[0] = t1;
|
|
@@ -439748,7 +439830,7 @@ function PackageManagerAutoUpdater(t0) {
|
|
|
439748
439830
|
wrap: "truncate",
|
|
439749
439831
|
children: [
|
|
439750
439832
|
"currentVersion: ",
|
|
439751
|
-
{ VERSION: "0.2.
|
|
439833
|
+
{ VERSION: "0.2.16", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
|
|
439752
439834
|
]
|
|
439753
439835
|
});
|
|
439754
439836
|
$2[3] = verbose;
|
|
@@ -441309,7 +441391,7 @@ function baseToString2(value) {
|
|
|
441309
441391
|
const result = value + "";
|
|
441310
441392
|
return result == "0" && 1 / value == -Infinity ? "-0" : result;
|
|
441311
441393
|
}
|
|
441312
|
-
function
|
|
441394
|
+
function toString5(value) {
|
|
441313
441395
|
return value == null ? "" : baseToString2(value);
|
|
441314
441396
|
}
|
|
441315
441397
|
function isString2(value) {
|
|
@@ -441391,9 +441473,9 @@ function get2(obj, path20) {
|
|
|
441391
441473
|
return;
|
|
441392
441474
|
if (index === path21.length - 1 && (isString2(value) || isNumber2(value) || isBoolean2(value) || typeof value === "bigint"))
|
|
441393
441475
|
list2.push(arrayIndex !== undefined ? {
|
|
441394
|
-
v:
|
|
441476
|
+
v: toString5(value),
|
|
441395
441477
|
i: arrayIndex
|
|
441396
|
-
} :
|
|
441478
|
+
} : toString5(value));
|
|
441397
441479
|
else if (isArray3(value)) {
|
|
441398
441480
|
arr = true;
|
|
441399
441481
|
for (let i3 = 0, len = value.length;i3 < len; i3 += 1)
|
|
@@ -442051,7 +442133,7 @@ var INCORRECT_INDEX_TYPE = "Incorrect 'index' type", INVALID_DOC_INDEX = "Invali
|
|
|
442051
442133
|
subRecords.push(subRecord);
|
|
442052
442134
|
}
|
|
442053
442135
|
} else if (isDefined2(item.v)) {
|
|
442054
|
-
const text2 = isString2(item.v) ? item.v :
|
|
442136
|
+
const text2 = isString2(item.v) ? item.v : toString5(item.v);
|
|
442055
442137
|
if (!isBlank(text2)) {
|
|
442056
442138
|
const subRecord = {
|
|
442057
442139
|
v: text2,
|
|
@@ -444797,7 +444879,7 @@ function BridgeDialog(t0) {
|
|
|
444797
444879
|
setQrText("");
|
|
444798
444880
|
return;
|
|
444799
444881
|
}
|
|
444800
|
-
|
|
444882
|
+
import_qrcode4.toString(displayUrl, {
|
|
444801
444883
|
type: "utf8",
|
|
444802
444884
|
errorCorrectionLevel: "L",
|
|
444803
444885
|
small: true
|
|
@@ -445191,10 +445273,9 @@ function _temp274(s_0) {
|
|
|
445191
445273
|
function _temp178(s) {
|
|
445192
445274
|
return s.replBridgeConnected;
|
|
445193
445275
|
}
|
|
445194
|
-
var import_react233, jsx_runtime402;
|
|
445276
|
+
var import_qrcode4, import_react233, jsx_runtime402;
|
|
445195
445277
|
var init_BridgeDialog = __esm(() => {
|
|
445196
445278
|
init_compiler_runtime();
|
|
445197
|
-
init_server();
|
|
445198
445279
|
init_state();
|
|
445199
445280
|
init_bridgeStatusUtil();
|
|
445200
445281
|
init_figures2();
|
|
@@ -445205,6 +445286,7 @@ var init_BridgeDialog = __esm(() => {
|
|
|
445205
445286
|
init_config2();
|
|
445206
445287
|
init_git();
|
|
445207
445288
|
init_Dialog();
|
|
445289
|
+
import_qrcode4 = __toESM(require_server(), 1);
|
|
445208
445290
|
import_react233 = __toESM(require_react(), 1);
|
|
445209
445291
|
jsx_runtime402 = __toESM(require_jsx_runtime(), 1);
|
|
445210
445292
|
});
|
|
@@ -447621,7 +447703,7 @@ function buildStatusLineCommandInput(permissionMode, exceeds200kTokens, settings
|
|
|
447621
447703
|
project_dir: getOriginalCwd(),
|
|
447622
447704
|
added_dirs: addedDirs
|
|
447623
447705
|
},
|
|
447624
|
-
version: { VERSION: "0.2.
|
|
447706
|
+
version: { VERSION: "0.2.16", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
|
|
447625
447707
|
output_style: {
|
|
447626
447708
|
name: outputStyleName
|
|
447627
447709
|
},
|
|
@@ -458967,7 +459049,7 @@ async function submitTranscriptShare(messages, trigger, appearanceId) {
|
|
|
458967
459049
|
} catch {}
|
|
458968
459050
|
const data = {
|
|
458969
459051
|
trigger,
|
|
458970
|
-
version: { VERSION: "0.2.
|
|
459052
|
+
version: { VERSION: "0.2.16", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
|
|
458971
459053
|
platform: process.platform,
|
|
458972
459054
|
transcript,
|
|
458973
459055
|
subagentTranscripts: Object.keys(subagentTranscripts).length > 0 ? subagentTranscripts : undefined,
|
|
@@ -471918,7 +472000,7 @@ function Onboarding({
|
|
|
471918
472000
|
flexDirection: "column",
|
|
471919
472001
|
children: [
|
|
471920
472002
|
/* @__PURE__ */ jsx_runtime465.jsx(TheusBanner, {
|
|
471921
|
-
version: { VERSION: "0.2.
|
|
472003
|
+
version: { VERSION: "0.2.16", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
|
|
471922
472004
|
}),
|
|
471923
472005
|
/* @__PURE__ */ jsx_runtime465.jsxs(ThemedBox_default, {
|
|
471924
472006
|
flexDirection: "column",
|
|
@@ -472789,7 +472871,7 @@ function completeOnboarding() {
|
|
|
472789
472871
|
saveGlobalConfig((current) => ({
|
|
472790
472872
|
...current,
|
|
472791
472873
|
hasCompletedOnboarding: true,
|
|
472792
|
-
lastOnboardingVersion: { VERSION: "0.2.
|
|
472874
|
+
lastOnboardingVersion: { VERSION: "0.2.16", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
|
|
472793
472875
|
}));
|
|
472794
472876
|
}
|
|
472795
472877
|
function showDialog(root2, renderer) {
|
|
@@ -483517,7 +483599,7 @@ async function startMCPServer(cwd3, debug2, verbose) {
|
|
|
483517
483599
|
setCwd(cwd3);
|
|
483518
483600
|
const server2 = new Server({
|
|
483519
483601
|
name: "theus/tengu",
|
|
483520
|
-
version: { VERSION: "0.2.
|
|
483602
|
+
version: { VERSION: "0.2.16", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
|
|
483521
483603
|
}, {
|
|
483522
483604
|
capabilities: {
|
|
483523
483605
|
tools: {}
|
|
@@ -483621,7 +483703,7 @@ async function startMCPServer(cwd3, debug2, verbose) {
|
|
|
483621
483703
|
}
|
|
483622
483704
|
var MCP_COMMANDS;
|
|
483623
483705
|
var init_mcp4 = __esm(() => {
|
|
483624
|
-
|
|
483706
|
+
init_server2();
|
|
483625
483707
|
init_stdio2();
|
|
483626
483708
|
init_types();
|
|
483627
483709
|
init_AppStateStore();
|
|
@@ -484959,7 +485041,7 @@ async function setupTokenHandler(root2) {
|
|
|
484959
485041
|
gap: 1,
|
|
484960
485042
|
children: [
|
|
484961
485043
|
/* @__PURE__ */ jsx_runtime482.jsx(TheusBanner, {
|
|
484962
|
-
version: { VERSION: "0.2.
|
|
485044
|
+
version: { VERSION: "0.2.16", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
|
|
484963
485045
|
}),
|
|
484964
485046
|
showAuthWarning && /* @__PURE__ */ jsx_runtime482.jsxs(ThemedBox_default, {
|
|
484965
485047
|
flexDirection: "column",
|
|
@@ -486382,7 +486464,7 @@ ${customInstructions}` : customInstructions;
|
|
|
486382
486464
|
}
|
|
486383
486465
|
}
|
|
486384
486466
|
logForDiagnosticsNoPII("info", "started", {
|
|
486385
|
-
version: { VERSION: "0.2.
|
|
486467
|
+
version: { VERSION: "0.2.16", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
|
|
486386
486468
|
is_native_binary: isInBundledMode()
|
|
486387
486469
|
});
|
|
486388
486470
|
registerCleanup(async () => {
|
|
@@ -487166,7 +487248,7 @@ Usage: theus --remote "your task description"`, () => gracefulShutdown(1));
|
|
|
487166
487248
|
pendingHookMessages
|
|
487167
487249
|
}, renderAndRun);
|
|
487168
487250
|
}
|
|
487169
|
-
}).version(`${{ VERSION: "0.2.
|
|
487251
|
+
}).version(`${{ VERSION: "0.2.16", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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");
|
|
487170
487252
|
program2.option("-w, --worktree [name]", "Crea un nuevo worktree de git para esta sesi\xF3n (opcionalmente indica un nombre)");
|
|
487171
487253
|
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.");
|
|
487172
487254
|
if (canUserConfigureAdvisor()) {
|
|
@@ -487190,7 +487272,10 @@ Usage: theus --remote "your task description"`, () => gracefulShutdown(1));
|
|
|
487190
487272
|
program2.addOption(new Option("--sdk-url <url>", "Use remote WebSocket endpoint for SDK I/O streaming (only with -p and stream-json format)").hideHelp());
|
|
487191
487273
|
program2.addOption(new Option("--teleport [session]", "Resume a teleport session, optionally specify session ID").hideHelp());
|
|
487192
487274
|
program2.addOption(new Option("--remote [description]", "Create a remote session with the given description").hideHelp());
|
|
487193
|
-
if (
|
|
487275
|
+
if (process.env.THEUS_BRIDGE === "1") {
|
|
487276
|
+
program2.addOption(new Option("--remote-control [name]", "Start an interactive session with Remote Control enabled (optionally named)").argParser((value) => value || true).hideHelp());
|
|
487277
|
+
program2.addOption(new Option("--rc [name]", "Alias for --remote-control").argParser((value) => value || true).hideHelp());
|
|
487278
|
+
}
|
|
487194
487279
|
if (false) {}
|
|
487195
487280
|
profileCheckpoint("run_main_options_built");
|
|
487196
487281
|
const isPrintMode = process.argv.includes("-p") || process.argv.includes("--print");
|
|
@@ -487373,7 +487458,16 @@ Usage: theus --remote "your task description"`, () => gracefulShutdown(1));
|
|
|
487373
487458
|
process.exit(0);
|
|
487374
487459
|
});
|
|
487375
487460
|
if (false) {}
|
|
487376
|
-
if (
|
|
487461
|
+
if (process.env.THEUS_BRIDGE === "1") {
|
|
487462
|
+
program2.command("remote-control", {
|
|
487463
|
+
hidden: true
|
|
487464
|
+
}).alias("rc").description("Connect your local environment for remote-control sessions via theus.pe/code").action(async () => {
|
|
487465
|
+
const {
|
|
487466
|
+
bridgeMain: bridgeMain2
|
|
487467
|
+
} = await Promise.resolve().then(() => (init_bridgeMain(), exports_bridgeMain));
|
|
487468
|
+
await bridgeMain2(process.argv.slice(3));
|
|
487469
|
+
});
|
|
487470
|
+
}
|
|
487377
487471
|
if (false) {}
|
|
487378
487472
|
program2.command("doctor").description("Comprueba el estado del actualizador autom\xE1tico de Theus. Nota: se omite el di\xE1logo de confianza del espacio de trabajo y se inician los servidores stdio de .mcp.json para las comprobaciones. Usa este comando solo en directorios de confianza.").action(async () => {
|
|
487379
487473
|
const [{
|
|
@@ -487680,7 +487774,7 @@ if (false) {}
|
|
|
487680
487774
|
async function main2() {
|
|
487681
487775
|
const args = process.argv.slice(2);
|
|
487682
487776
|
if (args.length === 1 && (args[0] === "--version" || args[0] === "-v" || args[0] === "-V")) {
|
|
487683
|
-
console.log(`${{ VERSION: "0.2.
|
|
487777
|
+
console.log(`${{ VERSION: "0.2.16", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)`);
|
|
487684
487778
|
return;
|
|
487685
487779
|
}
|
|
487686
487780
|
const {
|
|
@@ -487706,14 +487800,14 @@ async function main2() {
|
|
|
487706
487800
|
profileCheckpoint2("cli_project_context_mcp_path");
|
|
487707
487801
|
const {
|
|
487708
487802
|
runProjectContextMcpServer: runProjectContextMcpServer2
|
|
487709
|
-
} = await Promise.resolve().then(() => (
|
|
487803
|
+
} = await Promise.resolve().then(() => (init_server3(), exports_server));
|
|
487710
487804
|
await runProjectContextMcpServer2();
|
|
487711
487805
|
return;
|
|
487712
487806
|
} else if (process.argv[2] === "--theus-computer-use-mcp") {
|
|
487713
487807
|
profileCheckpoint2("cli_theus_computer_use_mcp_path");
|
|
487714
487808
|
const {
|
|
487715
487809
|
runComputerUseMcpServer: runComputerUseMcpServer2
|
|
487716
|
-
} = await Promise.resolve().then(() => (
|
|
487810
|
+
} = await Promise.resolve().then(() => (init_server4(), exports_server2));
|
|
487717
487811
|
await runComputerUseMcpServer2();
|
|
487718
487812
|
return;
|
|
487719
487813
|
} else if (process.argv[2] === "--theus-computer-use-selftest") {
|