theus-cli 0.1.5 → 0.1.6
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 +305 -183
- package/package.json +1 -1
package/cli.js
CHANGED
|
@@ -58283,7 +58283,7 @@ async function _executeApiKeyHelper(isNonInteractiveSession) {
|
|
|
58283
58283
|
if (isApiKeyHelperFromProjectOrLocalSettings()) {
|
|
58284
58284
|
const hasTrust = checkHasTrustDialogAccepted();
|
|
58285
58285
|
if (!hasTrust && !isNonInteractiveSession) {
|
|
58286
|
-
const error40 = new Error(`Security: apiKeyHelper executed before workspace trust is confirmed. If you see this message, post in ${{ VERSION: "0.1.
|
|
58286
|
+
const error40 = new Error(`Security: apiKeyHelper executed before workspace trust is confirmed. If you see this message, post in ${{ VERSION: "0.1.6", BUILD_TIME: "1970-01-01T00:00:00.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}.`);
|
|
58287
58287
|
logAntError("apiKeyHelper invoked before trust check", error40);
|
|
58288
58288
|
logEvent("tengu_apiKeyHelper_missing_trust11", {});
|
|
58289
58289
|
return null;
|
|
@@ -58327,7 +58327,7 @@ async function runAwsAuthRefresh() {
|
|
|
58327
58327
|
if (isAwsAuthRefreshFromProjectSettings()) {
|
|
58328
58328
|
const hasTrust = checkHasTrustDialogAccepted();
|
|
58329
58329
|
if (!hasTrust && !getIsNonInteractiveSession()) {
|
|
58330
|
-
const error40 = new Error(`Security: awsAuthRefresh executed before workspace trust is confirmed. If you see this message, post in ${{ VERSION: "0.1.
|
|
58330
|
+
const error40 = new Error(`Security: awsAuthRefresh executed before workspace trust is confirmed. If you see this message, post in ${{ VERSION: "0.1.6", BUILD_TIME: "1970-01-01T00:00:00.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}.`);
|
|
58331
58331
|
logAntError("awsAuthRefresh invoked before trust check", error40);
|
|
58332
58332
|
logEvent("tengu_awsAuthRefresh_missing_trust", {});
|
|
58333
58333
|
return false;
|
|
@@ -58387,7 +58387,7 @@ async function getAwsCredsFromCredentialExport() {
|
|
|
58387
58387
|
if (isAwsCredentialExportFromProjectSettings()) {
|
|
58388
58388
|
const hasTrust = checkHasTrustDialogAccepted();
|
|
58389
58389
|
if (!hasTrust && !getIsNonInteractiveSession()) {
|
|
58390
|
-
const error40 = new Error(`Security: awsCredentialExport executed before workspace trust is confirmed. If you see this message, post in ${{ VERSION: "0.1.
|
|
58390
|
+
const error40 = new Error(`Security: awsCredentialExport executed before workspace trust is confirmed. If you see this message, post in ${{ VERSION: "0.1.6", BUILD_TIME: "1970-01-01T00:00:00.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}.`);
|
|
58391
58391
|
logAntError("awsCredentialExport invoked before trust check", error40);
|
|
58392
58392
|
logEvent("tengu_awsCredentialExport_missing_trust", {});
|
|
58393
58393
|
return null;
|
|
@@ -58472,7 +58472,7 @@ async function runGcpAuthRefresh() {
|
|
|
58472
58472
|
if (isGcpAuthRefreshFromProjectSettings()) {
|
|
58473
58473
|
const hasTrust = checkHasTrustDialogAccepted();
|
|
58474
58474
|
if (!hasTrust && !getIsNonInteractiveSession()) {
|
|
58475
|
-
const error40 = new Error(`Security: gcpAuthRefresh executed before workspace trust is confirmed. If you see this message, post in ${{ VERSION: "0.1.
|
|
58475
|
+
const error40 = new Error(`Security: gcpAuthRefresh executed before workspace trust is confirmed. If you see this message, post in ${{ VERSION: "0.1.6", BUILD_TIME: "1970-01-01T00:00:00.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}.`);
|
|
58476
58476
|
logAntError("gcpAuthRefresh invoked before trust check", error40);
|
|
58477
58477
|
logEvent("tengu_gcpAuthRefresh_missing_trust", {});
|
|
58478
58478
|
return false;
|
|
@@ -59167,7 +59167,7 @@ var init_auth = __esm(() => {
|
|
|
59167
59167
|
|
|
59168
59168
|
// utils/userAgent.ts
|
|
59169
59169
|
function getTheusCodeUserAgent() {
|
|
59170
|
-
return `theus-code/${{ VERSION: "0.1.
|
|
59170
|
+
return `theus-code/${{ VERSION: "0.1.6", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION}`;
|
|
59171
59171
|
}
|
|
59172
59172
|
|
|
59173
59173
|
// utils/workloadContext.ts
|
|
@@ -59189,7 +59189,7 @@ function getUserAgent() {
|
|
|
59189
59189
|
const clientApp = process.env.THEUS_AGENT_SDK_CLIENT_APP ? `, client-app/${process.env.THEUS_AGENT_SDK_CLIENT_APP}` : "";
|
|
59190
59190
|
const workload = getWorkload();
|
|
59191
59191
|
const workloadSuffix = workload ? `, workload/${workload}` : "";
|
|
59192
|
-
return `theus-cli/${{ VERSION: "0.1.
|
|
59192
|
+
return `theus-cli/${{ VERSION: "0.1.6", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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})`;
|
|
59193
59193
|
}
|
|
59194
59194
|
function getMCPUserAgent() {
|
|
59195
59195
|
const parts = [];
|
|
@@ -59203,7 +59203,7 @@ function getMCPUserAgent() {
|
|
|
59203
59203
|
parts.push(`client-app/${process.env.THEUS_AGENT_SDK_CLIENT_APP}`);
|
|
59204
59204
|
}
|
|
59205
59205
|
const suffix = parts.length > 0 ? ` (${parts.join(", ")})` : "";
|
|
59206
|
-
return `theus-code/${{ VERSION: "0.1.
|
|
59206
|
+
return `theus-code/${{ VERSION: "0.1.6", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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}`;
|
|
59207
59207
|
}
|
|
59208
59208
|
function getWebFetchUserAgent() {
|
|
59209
59209
|
return `Theus-User (${getTheusCodeUserAgent()}; +https://support.theus.pe/)`;
|
|
@@ -59341,7 +59341,7 @@ var init_user = __esm(() => {
|
|
|
59341
59341
|
deviceId,
|
|
59342
59342
|
sessionId: getSessionId(),
|
|
59343
59343
|
email: getEmail(),
|
|
59344
|
-
appVersion: { VERSION: "0.1.
|
|
59344
|
+
appVersion: { VERSION: "0.1.6", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
|
|
59345
59345
|
platform: getHostPlatformForAnalytics(),
|
|
59346
59346
|
organizationUuid,
|
|
59347
59347
|
accountUuid,
|
|
@@ -61056,7 +61056,7 @@ var init_metadata = __esm(() => {
|
|
|
61056
61056
|
COMPOUND_OPERATOR_REGEX = /\s*(?:&&|\|\||[;|])\s*/;
|
|
61057
61057
|
WHITESPACE_REGEX = /\s+/;
|
|
61058
61058
|
getVersionBase = memoize_default(() => {
|
|
61059
|
-
const match = { VERSION: "0.1.
|
|
61059
|
+
const match = { VERSION: "0.1.6", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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]+)?/);
|
|
61060
61060
|
return match ? match[0] : undefined;
|
|
61061
61061
|
});
|
|
61062
61062
|
buildEnvContext = memoize_default(async () => {
|
|
@@ -61096,9 +61096,9 @@ var init_metadata = __esm(() => {
|
|
|
61096
61096
|
isGithubAction: isEnvTruthy(process.env.GITHUB_ACTIONS),
|
|
61097
61097
|
isTheusCodeAction: isEnvTruthy(process.env.THEUS_CODE_ACTION),
|
|
61098
61098
|
isTheusAiAuth: isTheusAISubscriber(),
|
|
61099
|
-
version: { VERSION: "0.1.
|
|
61099
|
+
version: { VERSION: "0.1.6", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
|
|
61100
61100
|
versionBase: getVersionBase(),
|
|
61101
|
-
buildTime: { VERSION: "0.1.
|
|
61101
|
+
buildTime: { VERSION: "0.1.6", BUILD_TIME: "1970-01-01T00:00:00.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,
|
|
61102
61102
|
deploymentEnvironment: env3.detectDeploymentEnvironment(),
|
|
61103
61103
|
...isEnvTruthy(process.env.GITHUB_ACTIONS) && {
|
|
61104
61104
|
githubEventName: process.env.GITHUB_EVENT_NAME,
|
|
@@ -61764,7 +61764,7 @@ function initialize1PEventLogging() {
|
|
|
61764
61764
|
const platform2 = getPlatform();
|
|
61765
61765
|
const attributes = {
|
|
61766
61766
|
[ATTR_SERVICE_NAME]: "theus-code",
|
|
61767
|
-
[ATTR_SERVICE_VERSION]: { VERSION: "0.1.
|
|
61767
|
+
[ATTR_SERVICE_VERSION]: { VERSION: "0.1.6", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
|
|
61768
61768
|
};
|
|
61769
61769
|
if (platform2 === "wsl") {
|
|
61770
61770
|
const wslVersion = getWslVersion();
|
|
@@ -61791,7 +61791,7 @@ function initialize1PEventLogging() {
|
|
|
61791
61791
|
})
|
|
61792
61792
|
]
|
|
61793
61793
|
});
|
|
61794
|
-
firstPartyEventLogger = firstPartyEventLoggerProvider.getLogger("com.theus.theus_code.events", { VERSION: "0.1.
|
|
61794
|
+
firstPartyEventLogger = firstPartyEventLoggerProvider.getLogger("com.theus.theus_code.events", { VERSION: "0.1.6", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION);
|
|
61795
61795
|
}
|
|
61796
61796
|
async function reinitialize1PEventLoggingIfConfigChanged() {
|
|
61797
61797
|
if (!is1PEventLoggingEnabled() || !firstPartyEventLoggerProvider) {
|
|
@@ -63662,7 +63662,7 @@ function getAttributionHeader(fingerprint) {
|
|
|
63662
63662
|
if (!isAttributionHeaderEnabled()) {
|
|
63663
63663
|
return "";
|
|
63664
63664
|
}
|
|
63665
|
-
const version2 = `${{ VERSION: "0.1.
|
|
63665
|
+
const version2 = `${{ VERSION: "0.1.6", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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}`;
|
|
63666
63666
|
const entrypoint = process.env.THEUS_CODE_ENTRYPOINT ?? "unknown";
|
|
63667
63667
|
const cch = "";
|
|
63668
63668
|
const workload = getWorkload();
|
|
@@ -107175,7 +107175,7 @@ Complete the user's request by providing accurate, documentation-based guidance.
|
|
|
107175
107175
|
}
|
|
107176
107176
|
function getFeedbackGuideline() {
|
|
107177
107177
|
if (isUsing3PServices()) {
|
|
107178
|
-
return `- When you cannot find an answer or the feature doesn't exist, direct the user to ${{ VERSION: "0.1.
|
|
107178
|
+
return `- When you cannot find an answer or the feature doesn't exist, direct the user to ${{ VERSION: "0.1.6", BUILD_TIME: "1970-01-01T00:00:00.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}`;
|
|
107179
107179
|
}
|
|
107180
107180
|
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";
|
|
107181
107181
|
}
|
|
@@ -165791,7 +165791,7 @@ function getTelemetryAttributes() {
|
|
|
165791
165791
|
attributes["session.id"] = sessionId;
|
|
165792
165792
|
}
|
|
165793
165793
|
if (shouldIncludeAttribute("OTEL_METRICS_INCLUDE_VERSION")) {
|
|
165794
|
-
attributes["app.version"] = { VERSION: "0.1.
|
|
165794
|
+
attributes["app.version"] = { VERSION: "0.1.6", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION;
|
|
165795
165795
|
}
|
|
165796
165796
|
const oauthAccount = getOauthAccountInfo();
|
|
165797
165797
|
if (oauthAccount) {
|
|
@@ -201836,7 +201836,7 @@ function getInstallationEnv() {
|
|
|
201836
201836
|
return;
|
|
201837
201837
|
}
|
|
201838
201838
|
function getTheusCodeVersion() {
|
|
201839
|
-
return { VERSION: "0.1.
|
|
201839
|
+
return { VERSION: "0.1.6", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION;
|
|
201840
201840
|
}
|
|
201841
201841
|
async function getInstalledVSCodeExtensionVersion(command) {
|
|
201842
201842
|
const { stdout } = await execFileNoThrow(command, ["--list-extensions", "--show-versions"], {
|
|
@@ -203354,7 +203354,7 @@ async function getMcpHeadersFromHelper(serverName, config2) {
|
|
|
203354
203354
|
if ("scope" in config2 && isMcpServerFromProjectOrLocalSettings(config2) && !getIsNonInteractiveSession()) {
|
|
203355
203355
|
const hasTrust = checkHasTrustDialogAccepted();
|
|
203356
203356
|
if (!hasTrust) {
|
|
203357
|
-
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.1.
|
|
203357
|
+
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.1.6", BUILD_TIME: "1970-01-01T00:00:00.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}.`);
|
|
203358
203358
|
logAntError("MCP headersHelper invoked before trust check", error40);
|
|
203359
203359
|
logEvent("tengu_mcp_headersHelper_missing_trust", {});
|
|
203360
203360
|
return null;
|
|
@@ -204564,7 +204564,7 @@ async function setupSdkMcpClients(sdkMcpConfigs, sendMcpMessage) {
|
|
|
204564
204564
|
const client2 = new Client({
|
|
204565
204565
|
name: "theus-code",
|
|
204566
204566
|
title: "Theus",
|
|
204567
|
-
version: { VERSION: "0.1.
|
|
204567
|
+
version: { VERSION: "0.1.6", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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",
|
|
204568
204568
|
description: "Theus's agentic coding tool",
|
|
204569
204569
|
websiteUrl: PRODUCT_URL
|
|
204570
204570
|
}, {
|
|
@@ -204918,7 +204918,7 @@ var init_client5 = __esm(() => {
|
|
|
204918
204918
|
const client2 = new Client({
|
|
204919
204919
|
name: "theus-code",
|
|
204920
204920
|
title: "Theus",
|
|
204921
|
-
version: { VERSION: "0.1.
|
|
204921
|
+
version: { VERSION: "0.1.6", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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",
|
|
204922
204922
|
description: "Theus's agentic coding tool",
|
|
204923
204923
|
websiteUrl: PRODUCT_URL
|
|
204924
204924
|
}, {
|
|
@@ -215477,7 +215477,7 @@ async function initializeBetaTracing(resource) {
|
|
|
215477
215477
|
});
|
|
215478
215478
|
logs.setGlobalLoggerProvider(loggerProvider);
|
|
215479
215479
|
setLoggerProvider(loggerProvider);
|
|
215480
|
-
const eventLogger = logs.getLogger("com.theus.theus_code.events", { VERSION: "0.1.
|
|
215480
|
+
const eventLogger = logs.getLogger("com.theus.theus_code.events", { VERSION: "0.1.6", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION);
|
|
215481
215481
|
setEventLogger(eventLogger);
|
|
215482
215482
|
process.on("beforeExit", async () => {
|
|
215483
215483
|
await loggerProvider?.forceFlush();
|
|
@@ -215517,7 +215517,7 @@ async function initializeTelemetry() {
|
|
|
215517
215517
|
const platform4 = getPlatform();
|
|
215518
215518
|
const baseAttributes = {
|
|
215519
215519
|
[ATTR_SERVICE_NAME]: "theus-code",
|
|
215520
|
-
[ATTR_SERVICE_VERSION]: { VERSION: "0.1.
|
|
215520
|
+
[ATTR_SERVICE_VERSION]: { VERSION: "0.1.6", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
|
|
215521
215521
|
};
|
|
215522
215522
|
if (platform4 === "wsl") {
|
|
215523
215523
|
const wslVersion = getWslVersion();
|
|
@@ -215562,7 +215562,7 @@ async function initializeTelemetry() {
|
|
|
215562
215562
|
} catch {}
|
|
215563
215563
|
};
|
|
215564
215564
|
registerCleanup(shutdownTelemetry2);
|
|
215565
|
-
return meterProvider2.getMeter("com.theus.theus_code", { VERSION: "0.1.
|
|
215565
|
+
return meterProvider2.getMeter("com.theus.theus_code", { VERSION: "0.1.6", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION);
|
|
215566
215566
|
}
|
|
215567
215567
|
const meterProvider = new MeterProvider({
|
|
215568
215568
|
resource,
|
|
@@ -215582,7 +215582,7 @@ async function initializeTelemetry() {
|
|
|
215582
215582
|
});
|
|
215583
215583
|
logs.setGlobalLoggerProvider(loggerProvider);
|
|
215584
215584
|
setLoggerProvider(loggerProvider);
|
|
215585
|
-
const eventLogger = logs.getLogger("com.theus.theus_code.events", { VERSION: "0.1.
|
|
215585
|
+
const eventLogger = logs.getLogger("com.theus.theus_code.events", { VERSION: "0.1.6", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION);
|
|
215586
215586
|
setEventLogger(eventLogger);
|
|
215587
215587
|
logForDebugging("[3P telemetry] Event logger set successfully");
|
|
215588
215588
|
process.on("beforeExit", async () => {
|
|
@@ -215644,7 +215644,7 @@ Current timeout: ${timeoutMs}ms
|
|
|
215644
215644
|
}
|
|
215645
215645
|
};
|
|
215646
215646
|
registerCleanup(shutdownTelemetry);
|
|
215647
|
-
return meterProvider.getMeter("com.theus.theus_code", { VERSION: "0.1.
|
|
215647
|
+
return meterProvider.getMeter("com.theus.theus_code", { VERSION: "0.1.6", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION);
|
|
215648
215648
|
}
|
|
215649
215649
|
async function flushTelemetry() {
|
|
215650
215650
|
const meterProvider = getMeterProvider();
|
|
@@ -216184,7 +216184,7 @@ async function installOrUpdateTheusPackage(channel2, specificVersion) {
|
|
|
216184
216184
|
return "install_failed";
|
|
216185
216185
|
}
|
|
216186
216186
|
const versionSpec = specificVersion ? specificVersion : channel2 === "stable" ? "stable" : "latest";
|
|
216187
|
-
const result = await execFileNoThrowWithCwd("npm", ["install", `${{ VERSION: "0.1.
|
|
216187
|
+
const result = await execFileNoThrowWithCwd("npm", ["install", `${{ VERSION: "0.1.6", BUILD_TIME: "1970-01-01T00:00:00.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 });
|
|
216188
216188
|
if (result.code !== 0) {
|
|
216189
216189
|
const error40 = new Error(`Failed to install Theus CLI package: ${result.stderr}`);
|
|
216190
216190
|
logError2(error40);
|
|
@@ -216330,9 +216330,9 @@ async function assertMinVersion() {
|
|
|
216330
216330
|
if (false) {}
|
|
216331
216331
|
try {
|
|
216332
216332
|
const versionConfig = await getDynamicConfig_BLOCKS_ON_INIT("tengu_version_config", { minVersion: "0.0.0" });
|
|
216333
|
-
if (versionConfig.minVersion && lt({ VERSION: "0.1.
|
|
216333
|
+
if (versionConfig.minVersion && lt({ VERSION: "0.1.6", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
|
|
216334
216334
|
console.error(`
|
|
216335
|
-
It looks like your version of Theus (${{ VERSION: "0.1.
|
|
216335
|
+
It looks like your version of Theus (${{ VERSION: "0.1.6", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.
|
|
216336
216336
|
A newer version (${versionConfig.minVersion} or higher) is required to continue.
|
|
216337
216337
|
|
|
216338
216338
|
To update, please run:
|
|
@@ -216473,7 +216473,7 @@ async function getInstallationPrefix() {
|
|
|
216473
216473
|
return prefixResult.stdout.trim();
|
|
216474
216474
|
}
|
|
216475
216475
|
function getGlobalInstallPackageManager() {
|
|
216476
|
-
if ({ VERSION: "0.1.
|
|
216476
|
+
if ({ VERSION: "0.1.6", BUILD_TIME: "1970-01-01T00:00:00.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") {
|
|
216477
216477
|
return "npm";
|
|
216478
216478
|
}
|
|
216479
216479
|
return env3.isRunningWithBun() ? "bun" : "npm";
|
|
@@ -216498,7 +216498,7 @@ async function checkGlobalInstallPermissions() {
|
|
|
216498
216498
|
}
|
|
216499
216499
|
async function getLatestVersion(channel2) {
|
|
216500
216500
|
const npmTag = channel2 === "stable" ? "stable" : "latest";
|
|
216501
|
-
const result = await execFileNoThrowWithCwd("npm", ["view", `${{ VERSION: "0.1.
|
|
216501
|
+
const result = await execFileNoThrowWithCwd("npm", ["view", `${{ VERSION: "0.1.6", BUILD_TIME: "1970-01-01T00:00:00.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() });
|
|
216502
216502
|
if (result.code !== 0) {
|
|
216503
216503
|
logForDebugging(`npm view failed with code ${result.code}`);
|
|
216504
216504
|
if (result.stderr) {
|
|
@@ -216514,7 +216514,7 @@ async function getLatestVersion(channel2) {
|
|
|
216514
216514
|
return result.stdout.trim();
|
|
216515
216515
|
}
|
|
216516
216516
|
async function getNpmDistTags() {
|
|
216517
|
-
const result = await execFileNoThrowWithCwd("npm", ["view", { VERSION: "0.1.
|
|
216517
|
+
const result = await execFileNoThrowWithCwd("npm", ["view", { VERSION: "0.1.6", BUILD_TIME: "1970-01-01T00:00:00.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() });
|
|
216518
216518
|
if (result.code !== 0) {
|
|
216519
216519
|
logForDebugging(`npm view dist-tags failed with code ${result.code}`);
|
|
216520
216520
|
return { latest: null, stable: null };
|
|
@@ -216554,7 +216554,7 @@ async function installGlobalPackage(specificVersion) {
|
|
|
216554
216554
|
logError2(new AutoUpdaterError("Another process is currently installing an update"));
|
|
216555
216555
|
logEvent("tengu_auto_updater_lock_contention", {
|
|
216556
216556
|
pid: process.pid,
|
|
216557
|
-
currentVersion: { VERSION: "0.1.
|
|
216557
|
+
currentVersion: { VERSION: "0.1.6", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
|
|
216558
216558
|
});
|
|
216559
216559
|
return "in_progress";
|
|
216560
216560
|
}
|
|
@@ -216563,7 +216563,7 @@ async function installGlobalPackage(specificVersion) {
|
|
|
216563
216563
|
if (!env3.isRunningWithBun() && env3.isNpmFromWindowsPath()) {
|
|
216564
216564
|
logError2(new Error("Windows NPM detected in WSL environment"));
|
|
216565
216565
|
logEvent("tengu_auto_updater_windows_npm_in_wsl", {
|
|
216566
|
-
currentVersion: { VERSION: "0.1.
|
|
216566
|
+
currentVersion: { VERSION: "0.1.6", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
|
|
216567
216567
|
});
|
|
216568
216568
|
console.error(`
|
|
216569
216569
|
Error: Windows NPM detected in WSL
|
|
@@ -216582,7 +216582,7 @@ To fix this issue:
|
|
|
216582
216582
|
if (!hasPermissions) {
|
|
216583
216583
|
return "no_permissions";
|
|
216584
216584
|
}
|
|
216585
|
-
const packageSpec = specificVersion ? `${{ VERSION: "0.1.
|
|
216585
|
+
const packageSpec = specificVersion ? `${{ VERSION: "0.1.6", BUILD_TIME: "1970-01-01T00:00:00.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.1.6", BUILD_TIME: "1970-01-01T00:00:00.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;
|
|
216586
216586
|
const packageManager = getGlobalInstallPackageManager();
|
|
216587
216587
|
const installResult = await execFileNoThrowWithCwd(packageManager, ["install", "-g", packageSpec], { cwd: homedir18() });
|
|
216588
216588
|
if (installResult.code !== 0) {
|
|
@@ -216910,8 +216910,8 @@ async function detectMultipleInstallations() {
|
|
|
216910
216910
|
installations.push({ type: "npm-local", path: localPath });
|
|
216911
216911
|
}
|
|
216912
216912
|
const packagesToCheck = ["@theus-ai/theus-code"];
|
|
216913
|
-
if ({ VERSION: "0.1.
|
|
216914
|
-
packagesToCheck.push({ VERSION: "0.1.
|
|
216913
|
+
if ({ VERSION: "0.1.6", BUILD_TIME: "1970-01-01T00:00:00.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.1.6", BUILD_TIME: "1970-01-01T00:00:00.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") {
|
|
216914
|
+
packagesToCheck.push({ VERSION: "0.1.6", BUILD_TIME: "1970-01-01T00:00:00.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);
|
|
216915
216915
|
}
|
|
216916
216916
|
const npmResult = await execFileNoThrow("npm", [
|
|
216917
216917
|
"-g",
|
|
@@ -217094,7 +217094,7 @@ function detectLinuxGlobPatternWarnings() {
|
|
|
217094
217094
|
}
|
|
217095
217095
|
async function getDoctorDiagnostic() {
|
|
217096
217096
|
const installationType = await getCurrentInstallationType();
|
|
217097
|
-
const version2 = { VERSION: "0.1.
|
|
217097
|
+
const version2 = { VERSION: "0.1.6", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.1.6", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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";
|
|
217098
217098
|
const installationPath = await getInstallationPath();
|
|
217099
217099
|
const invokedBinary = getInvokedBinary();
|
|
217100
217100
|
const multipleInstallations = await detectMultipleInstallations();
|
|
@@ -217106,8 +217106,8 @@ async function getDoctorDiagnostic() {
|
|
|
217106
217106
|
for (const install of npmInstalls) {
|
|
217107
217107
|
if (install.type === "npm-global") {
|
|
217108
217108
|
let uninstallCmd = "npm -g uninstall @theus-ai/theus-code";
|
|
217109
|
-
if ({ VERSION: "0.1.
|
|
217110
|
-
uninstallCmd += ` && npm -g uninstall ${{ VERSION: "0.1.
|
|
217109
|
+
if ({ VERSION: "0.1.6", BUILD_TIME: "1970-01-01T00:00:00.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.1.6", BUILD_TIME: "1970-01-01T00:00:00.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") {
|
|
217110
|
+
uninstallCmd += ` && npm -g uninstall ${{ VERSION: "0.1.6", BUILD_TIME: "1970-01-01T00:00:00.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}`;
|
|
217111
217111
|
}
|
|
217112
217112
|
warnings.push({
|
|
217113
217113
|
issue: `Leftover npm global installation at ${install.path}`,
|
|
@@ -217219,7 +217219,7 @@ async function getLatestVersionFromArtifactory(tag2 = "latest") {
|
|
|
217219
217219
|
const startTime2 = Date.now();
|
|
217220
217220
|
const { stdout, code, stderr } = await execFileNoThrowWithCwd("npm", [
|
|
217221
217221
|
"view",
|
|
217222
|
-
`${{ VERSION: "0.1.
|
|
217222
|
+
`${{ VERSION: "0.1.6", BUILD_TIME: "1970-01-01T00:00:00.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}`,
|
|
217223
217223
|
"version",
|
|
217224
217224
|
"--prefer-online",
|
|
217225
217225
|
"--registry",
|
|
@@ -217243,7 +217243,7 @@ async function getLatestVersionFromArtifactory(tag2 = "latest") {
|
|
|
217243
217243
|
latency_ms: latencyMs,
|
|
217244
217244
|
source_npm: true
|
|
217245
217245
|
});
|
|
217246
|
-
logForDebugging(`npm view ${{ VERSION: "0.1.
|
|
217246
|
+
logForDebugging(`npm view ${{ VERSION: "0.1.6", BUILD_TIME: "1970-01-01T00:00:00.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}`);
|
|
217247
217247
|
const latestVersion = stdout.trim();
|
|
217248
217248
|
return latestVersion;
|
|
217249
217249
|
}
|
|
@@ -217299,7 +217299,7 @@ async function downloadVersionFromArtifactory(version2, stagingPath) {
|
|
|
217299
217299
|
const fs3 = getFsImplementation();
|
|
217300
217300
|
await fs3.rm(stagingPath, { recursive: true, force: true });
|
|
217301
217301
|
const platform4 = getPlatform2();
|
|
217302
|
-
const platformPackageName = `${{ VERSION: "0.1.
|
|
217302
|
+
const platformPackageName = `${{ VERSION: "0.1.6", BUILD_TIME: "1970-01-01T00:00:00.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}`;
|
|
217303
217303
|
logForDebugging(`Fetching integrity hash for ${platformPackageName}@${version2}`);
|
|
217304
217304
|
const {
|
|
217305
217305
|
stdout: integrityOutput,
|
|
@@ -217328,7 +217328,7 @@ async function downloadVersionFromArtifactory(version2, stagingPath) {
|
|
|
217328
217328
|
name: "theus-native-installer",
|
|
217329
217329
|
version: "0.0.1",
|
|
217330
217330
|
dependencies: {
|
|
217331
|
-
[{ VERSION: "0.1.
|
|
217331
|
+
[{ VERSION: "0.1.6", BUILD_TIME: "1970-01-01T00:00:00.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
|
|
217332
217332
|
}
|
|
217333
217333
|
};
|
|
217334
217334
|
const packageLock = {
|
|
@@ -217341,10 +217341,10 @@ async function downloadVersionFromArtifactory(version2, stagingPath) {
|
|
|
217341
217341
|
name: "theus-native-installer",
|
|
217342
217342
|
version: "0.0.1",
|
|
217343
217343
|
dependencies: {
|
|
217344
|
-
[{ VERSION: "0.1.
|
|
217344
|
+
[{ VERSION: "0.1.6", BUILD_TIME: "1970-01-01T00:00:00.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
|
|
217345
217345
|
}
|
|
217346
217346
|
},
|
|
217347
|
-
[`node_modules/${{ VERSION: "0.1.
|
|
217347
|
+
[`node_modules/${{ VERSION: "0.1.6", BUILD_TIME: "1970-01-01T00:00:00.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}`]: {
|
|
217348
217348
|
version: version2,
|
|
217349
217349
|
optionalDependencies: {
|
|
217350
217350
|
[platformPackageName]: version2
|
|
@@ -217366,7 +217366,7 @@ async function downloadVersionFromArtifactory(version2, stagingPath) {
|
|
|
217366
217366
|
if (result.code !== 0) {
|
|
217367
217367
|
throw new Error(`npm ci failed with code ${result.code}: ${result.stderr}`);
|
|
217368
217368
|
}
|
|
217369
|
-
logForDebugging(`Successfully downloaded and verified ${{ VERSION: "0.1.
|
|
217369
|
+
logForDebugging(`Successfully downloaded and verified ${{ VERSION: "0.1.6", BUILD_TIME: "1970-01-01T00:00:00.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}`);
|
|
217370
217370
|
}
|
|
217371
217371
|
function getStallTimeoutMs() {
|
|
217372
217372
|
return Number(process.env.THEUS_CODE_STALL_TIMEOUT_MS_FOR_TESTING) || DEFAULT_STALL_TIMEOUT_MS;
|
|
@@ -218029,8 +218029,8 @@ async function updateLatest(channelOrVersion, forceReinstall = false) {
|
|
|
218029
218029
|
const maxVersion = await getMaxVersion();
|
|
218030
218030
|
if (maxVersion && gt(version2, maxVersion)) {
|
|
218031
218031
|
logForDebugging(`Native installer: maxVersion ${maxVersion} is set, capping update from ${version2} to ${maxVersion}`);
|
|
218032
|
-
if (gte({ VERSION: "0.1.
|
|
218033
|
-
logForDebugging(`Native installer: current version ${{ VERSION: "0.1.
|
|
218032
|
+
if (gte({ VERSION: "0.1.6", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
|
|
218033
|
+
logForDebugging(`Native installer: current version ${{ VERSION: "0.1.6", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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`);
|
|
218034
218034
|
logEvent("tengu_native_update_skipped_max_version", {
|
|
218035
218035
|
latency_ms: Date.now() - startTime2,
|
|
218036
218036
|
max_version: maxVersion,
|
|
@@ -218041,7 +218041,7 @@ async function updateLatest(channelOrVersion, forceReinstall = false) {
|
|
|
218041
218041
|
version2 = maxVersion;
|
|
218042
218042
|
}
|
|
218043
218043
|
}
|
|
218044
|
-
if (!forceReinstall && version2 === { VERSION: "0.1.
|
|
218044
|
+
if (!forceReinstall && version2 === { VERSION: "0.1.6", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
|
|
218045
218045
|
logForDebugging(`Found ${version2} at ${executablePath}, skipping install`);
|
|
218046
218046
|
logEvent("tengu_native_update_complete", {
|
|
218047
218047
|
latency_ms: Date.now() - startTime2,
|
|
@@ -218783,8 +218783,8 @@ async function cleanupNpmInstallations() {
|
|
|
218783
218783
|
} else if (codePackageResult.error) {
|
|
218784
218784
|
errors4.push(codePackageResult.error);
|
|
218785
218785
|
}
|
|
218786
|
-
if ({ VERSION: "0.1.
|
|
218787
|
-
const macroPackageResult = await attemptNpmUninstall({ VERSION: "0.1.
|
|
218786
|
+
if ({ VERSION: "0.1.6", BUILD_TIME: "1970-01-01T00:00:00.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.1.6", BUILD_TIME: "1970-01-01T00:00:00.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") {
|
|
218787
|
+
const macroPackageResult = await attemptNpmUninstall({ VERSION: "0.1.6", BUILD_TIME: "1970-01-01T00:00:00.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);
|
|
218788
218788
|
if (macroPackageResult.success) {
|
|
218789
218789
|
removed++;
|
|
218790
218790
|
if (macroPackageResult.warning) {
|
|
@@ -228677,13 +228677,103 @@ var init_branding = __esm(() => {
|
|
|
228677
228677
|
];
|
|
228678
228678
|
});
|
|
228679
228679
|
|
|
228680
|
+
// components/Theus/logoArt.ts
|
|
228681
|
+
var THEUS_LOGO_28, THEUS_LOGO_40, THEUS_LOGO_64;
|
|
228682
|
+
var init_logoArt = __esm(() => {
|
|
228683
|
+
THEUS_LOGO_28 = [
|
|
228684
|
+
" -=:",
|
|
228685
|
+
" :=##=",
|
|
228686
|
+
" -- -#**+",
|
|
228687
|
+
" -:------:-:-*##=",
|
|
228688
|
+
" :-+*+++=- =**:",
|
|
228689
|
+
" :-:=******= +%+",
|
|
228690
|
+
" :- -=*##**=- -*%-:-",
|
|
228691
|
+
" ---: ---*##=- -=+*: -:",
|
|
228692
|
+
" :--=-=----*#+*+*+*= =-",
|
|
228693
|
+
" :==+==*+=++=*#=#+- =",
|
|
228694
|
+
" :-=-+**##***=++- =-",
|
|
228695
|
+
" ::==#*****+=+*- :--",
|
|
228696
|
+
" --+*##*++**+::--:",
|
|
228697
|
+
" :-=++#*+=---"
|
|
228698
|
+
];
|
|
228699
|
+
THEUS_LOGO_40 = [
|
|
228700
|
+
" =:",
|
|
228701
|
+
" +%+",
|
|
228702
|
+
" -+%##=:",
|
|
228703
|
+
" +%#*#*-",
|
|
228704
|
+
" ------=----::+*++=+.",
|
|
228705
|
+
" +:--:: . =###*=:",
|
|
228706
|
+
" --#*++***-- -#*=",
|
|
228707
|
+
" :=--+****#+#*+ *#*=",
|
|
228708
|
+
" :=: =*##*****#= #%#=.:",
|
|
228709
|
+
" =. =*######*+=. +##= --",
|
|
228710
|
+
" -=:- -==-+###+-- =*=#+ =",
|
|
228711
|
+
" =-=---:: =%#+#====-==*-: =",
|
|
228712
|
+
" ---=-+=--==--+#*-##**###+: =",
|
|
228713
|
+
" :--=--==#=+=*+:-*##:*%+- :+",
|
|
228714
|
+
" --=--=#*+#*++*%##=+++- =-",
|
|
228715
|
+
" -====+##**##%#*#+=+++= =-",
|
|
228716
|
+
" :===+%#+*++#*====** -=-",
|
|
228717
|
+
" -=+=#%#******#*+= :==",
|
|
228718
|
+
" :-=++#####***++:-===",
|
|
228719
|
+
" :-===++=-=--=="
|
|
228720
|
+
];
|
|
228721
|
+
THEUS_LOGO_64 = [
|
|
228722
|
+
" .=",
|
|
228723
|
+
" -%= .",
|
|
228724
|
+
" .-=#%++",
|
|
228725
|
+
" ==%%#+%-.",
|
|
228726
|
+
" . %*%%#%%==",
|
|
228727
|
+
" .+#%%#+%***",
|
|
228728
|
+
" ---===--- +#*+==***=",
|
|
228729
|
+
" -=====---==--=-=--- :+*****+=+=",
|
|
228730
|
+
" -=-=== : :=#%@%%%*+-",
|
|
228731
|
+
" #+ -+=: =*%%#*+-",
|
|
228732
|
+
" -= #%*++**+=#*- =#***:",
|
|
228733
|
+
" ==:--+***+*%#+*#***- -%%**==",
|
|
228734
|
+
" :+- -=*#*****+##*+**** =%%#*==",
|
|
228735
|
+
" -+: -=*****#*##+++##* =%%##*- -:",
|
|
228736
|
+
" :+: -***%%%*#+*###*+== #%%**: =",
|
|
228737
|
+
" +- :+***#%%%##*#+=*=: :+#*##= :=",
|
|
228738
|
+
" :* =: :=++=-+*##*##+:+- **=-#*= +:",
|
|
228739
|
+
" =+ =- -*####%#++ -=++-***- -=",
|
|
228740
|
+
" -==+ ==-= :*#%#-*%-:===++-:++#*: .+",
|
|
228741
|
+
" ---=-:=+ -+ :-=-. =%%#-+#+*#*##+*###= -+",
|
|
228742
|
+
" :+==---+=-==-:=**=::+##**+-=##%==#%%##*- +-",
|
|
228743
|
+
" -=---==:-+-*%=-+++++--.-*%### =%%#*= *",
|
|
228744
|
+
" --==-==-=*%=-#*=+++=-+#%#*%-:#*%- ==",
|
|
228745
|
+
" ---===-==+%% *%#*%*+*#%%*#%+-+++*+ -*",
|
|
228746
|
+
" =-==++=-=+%%=##+**#%%%*+#%+.-==*-% -+:",
|
|
228747
|
+
" =-=====+*%#==#%%%#***%#=======## =+:",
|
|
228748
|
+
" :=====+#%#++++=+###+-++===+#*- :++",
|
|
228749
|
+
" -===+=*%%%*+==+=:===++*#*+=- :=+-",
|
|
228750
|
+
" :=====+#%%%%%%%%%%%#*+==*+ -++-",
|
|
228751
|
+
" :-=++++*#%%#**++*=+*#*= -+++-",
|
|
228752
|
+
" -==+**+*####*#*+=--===++-",
|
|
228753
|
+
" .-=-=+=--:--=-=--"
|
|
228754
|
+
];
|
|
228755
|
+
});
|
|
228756
|
+
|
|
228680
228757
|
// components/Theus/asciiLogo.ts
|
|
228681
228758
|
function padToUniformWidth(lines) {
|
|
228682
228759
|
const width = Math.max(...lines.map((line) => line.length));
|
|
228683
228760
|
return lines.map((line) => line.padEnd(width, " "));
|
|
228684
228761
|
}
|
|
228685
|
-
|
|
228762
|
+
function pickTheusLogo(columns) {
|
|
228763
|
+
if (columns >= 132)
|
|
228764
|
+
return THEUS_LOGO_LINES_64;
|
|
228765
|
+
if (columns >= 88)
|
|
228766
|
+
return THEUS_LOGO_LINES_40;
|
|
228767
|
+
if (columns >= 30)
|
|
228768
|
+
return THEUS_LOGO_LINES_28;
|
|
228769
|
+
return [];
|
|
228770
|
+
}
|
|
228771
|
+
var THEUS_LOGO_LINES_28, THEUS_LOGO_LINES_40, THEUS_LOGO_LINES_64, PROMETHEUS_RAW, THEUS_PROMETHEUS_LINES, THEUS_PROMETHEUS_WIDTH, THEUS_WORDMARK_LINES, THEUS_WORDMARK_WIDTH, THEUS_ASCII, THEUS_TORCH_ASCII, THEUS_COMPACT_MARK;
|
|
228686
228772
|
var init_asciiLogo = __esm(() => {
|
|
228773
|
+
init_logoArt();
|
|
228774
|
+
THEUS_LOGO_LINES_28 = padToUniformWidth(THEUS_LOGO_28);
|
|
228775
|
+
THEUS_LOGO_LINES_40 = padToUniformWidth(THEUS_LOGO_40);
|
|
228776
|
+
THEUS_LOGO_LINES_64 = padToUniformWidth(THEUS_LOGO_64);
|
|
228687
228777
|
PROMETHEUS_RAW = [
|
|
228688
228778
|
" ) (",
|
|
228689
228779
|
" ( ) )",
|
|
@@ -228741,7 +228831,30 @@ function useTerminalColumns() {
|
|
|
228741
228831
|
const size = import_react61.useContext(TerminalSizeContext);
|
|
228742
228832
|
return size?.columns ?? process.stdout.columns ?? 80;
|
|
228743
228833
|
}
|
|
228744
|
-
function
|
|
228834
|
+
function PeruFlag() {
|
|
228835
|
+
const bar = "\u2588".repeat(10);
|
|
228836
|
+
return /* @__PURE__ */ jsx_runtime72.jsxs(ThemedBox_default, {
|
|
228837
|
+
children: [
|
|
228838
|
+
/* @__PURE__ */ jsx_runtime72.jsx(ThemedText, {
|
|
228839
|
+
color: PERU_RED,
|
|
228840
|
+
children: bar
|
|
228841
|
+
}),
|
|
228842
|
+
/* @__PURE__ */ jsx_runtime72.jsx(ThemedText, {
|
|
228843
|
+
bold: true,
|
|
228844
|
+
children: ` ${MOTTO} `
|
|
228845
|
+
}),
|
|
228846
|
+
/* @__PURE__ */ jsx_runtime72.jsx(ThemedText, {
|
|
228847
|
+
color: PERU_RED,
|
|
228848
|
+
children: bar
|
|
228849
|
+
})
|
|
228850
|
+
]
|
|
228851
|
+
});
|
|
228852
|
+
}
|
|
228853
|
+
function Lema({
|
|
228854
|
+
peru,
|
|
228855
|
+
vertical,
|
|
228856
|
+
withMotto
|
|
228857
|
+
}) {
|
|
228745
228858
|
if (vertical) {
|
|
228746
228859
|
return /* @__PURE__ */ jsx_runtime72.jsxs(ThemedBox_default, {
|
|
228747
228860
|
flexDirection: "column",
|
|
@@ -228755,9 +228868,9 @@ function Lema({ peru, vertical }) {
|
|
|
228755
228868
|
bold: true,
|
|
228756
228869
|
children: "HECHO EN PERU"
|
|
228757
228870
|
}),
|
|
228758
|
-
/* @__PURE__ */ jsx_runtime72.jsx(ThemedText, {
|
|
228759
|
-
children:
|
|
228760
|
-
})
|
|
228871
|
+
withMotto ? /* @__PURE__ */ jsx_runtime72.jsx(ThemedText, {
|
|
228872
|
+
children: MOTTO
|
|
228873
|
+
}) : null
|
|
228761
228874
|
]
|
|
228762
228875
|
});
|
|
228763
228876
|
}
|
|
@@ -228776,13 +228889,17 @@ function Lema({ peru, vertical }) {
|
|
|
228776
228889
|
bold: true,
|
|
228777
228890
|
children: "HECHO EN PERU"
|
|
228778
228891
|
}),
|
|
228779
|
-
/* @__PURE__ */ jsx_runtime72.
|
|
228780
|
-
|
|
228781
|
-
|
|
228782
|
-
|
|
228783
|
-
|
|
228784
|
-
|
|
228785
|
-
|
|
228892
|
+
withMotto ? /* @__PURE__ */ jsx_runtime72.jsxs(jsx_runtime72.Fragment, {
|
|
228893
|
+
children: [
|
|
228894
|
+
/* @__PURE__ */ jsx_runtime72.jsx(Text, {
|
|
228895
|
+
dim: true,
|
|
228896
|
+
children: " \xB7 "
|
|
228897
|
+
}),
|
|
228898
|
+
/* @__PURE__ */ jsx_runtime72.jsx(ThemedText, {
|
|
228899
|
+
children: MOTTO
|
|
228900
|
+
})
|
|
228901
|
+
]
|
|
228902
|
+
}) : null
|
|
228786
228903
|
]
|
|
228787
228904
|
});
|
|
228788
228905
|
}
|
|
@@ -228802,30 +228919,14 @@ function Estado({ verde }) {
|
|
|
228802
228919
|
}, label))
|
|
228803
228920
|
});
|
|
228804
228921
|
}
|
|
228805
|
-
function
|
|
228806
|
-
const lastBodyRow = THEUS_PROMETHEUS_LINES.length - THEUS_PROMETHEUS_BASE_ROWS;
|
|
228922
|
+
function LogoArt({ lines }) {
|
|
228807
228923
|
return /* @__PURE__ */ jsx_runtime72.jsx(ThemedBox_default, {
|
|
228808
228924
|
flexDirection: "column",
|
|
228809
|
-
|
|
228810
|
-
|
|
228811
|
-
|
|
228812
|
-
|
|
228813
|
-
|
|
228814
|
-
children: line
|
|
228815
|
-
}, row);
|
|
228816
|
-
}
|
|
228817
|
-
if (row < THEUS_PROMETHEUS_FLAME_ROWS) {
|
|
228818
|
-
return /* @__PURE__ */ jsx_runtime72.jsx(ThemedText, {
|
|
228819
|
-
color: peru,
|
|
228820
|
-
wrap: "truncate-end",
|
|
228821
|
-
children: line
|
|
228822
|
-
}, row);
|
|
228823
|
-
}
|
|
228824
|
-
return /* @__PURE__ */ jsx_runtime72.jsx(ThemedText, {
|
|
228825
|
-
wrap: "truncate-end",
|
|
228826
|
-
children: line
|
|
228827
|
-
}, row);
|
|
228828
|
-
})
|
|
228925
|
+
flexShrink: 0,
|
|
228926
|
+
children: lines.map((line, row) => /* @__PURE__ */ jsx_runtime72.jsx(ThemedText, {
|
|
228927
|
+
wrap: "truncate-end",
|
|
228928
|
+
children: line
|
|
228929
|
+
}, row))
|
|
228829
228930
|
});
|
|
228830
228931
|
}
|
|
228831
228932
|
function Wordmark() {
|
|
@@ -228844,10 +228945,18 @@ function TheusLoginHero({ compact, showFrame = false }) {
|
|
|
228844
228945
|
const { peru, verdeDato, inactive } = theme;
|
|
228845
228946
|
const columns = useTerminalColumns();
|
|
228846
228947
|
const effectiveCompact = compact === true || columns < FULL_MIN_COLUMNS;
|
|
228948
|
+
const showFlag = columns >= FLAG_MIN_COLUMNS;
|
|
228847
228949
|
if (effectiveCompact) {
|
|
228950
|
+
const logo2 = columns >= 46 ? THEUS_LOGO_LINES_40 : columns >= 30 ? THEUS_LOGO_LINES_28 : [];
|
|
228848
228951
|
return /* @__PURE__ */ jsx_runtime72.jsxs(ThemedBox_default, {
|
|
228849
228952
|
flexDirection: "column",
|
|
228850
228953
|
children: [
|
|
228954
|
+
logo2.length > 0 ? /* @__PURE__ */ jsx_runtime72.jsx(ThemedBox_default, {
|
|
228955
|
+
marginBottom: 1,
|
|
228956
|
+
children: /* @__PURE__ */ jsx_runtime72.jsx(LogoArt, {
|
|
228957
|
+
lines: logo2
|
|
228958
|
+
})
|
|
228959
|
+
}) : null,
|
|
228851
228960
|
columns >= WORDMARK_MIN_COLUMNS ? /* @__PURE__ */ jsx_runtime72.jsx(Wordmark, {}) : /* @__PURE__ */ jsx_runtime72.jsx(ThemedText, {
|
|
228852
228961
|
bold: true,
|
|
228853
228962
|
color: peru,
|
|
@@ -228855,60 +228964,73 @@ function TheusLoginHero({ compact, showFrame = false }) {
|
|
|
228855
228964
|
}),
|
|
228856
228965
|
/* @__PURE__ */ jsx_runtime72.jsx(ThemedBox_default, {
|
|
228857
228966
|
marginTop: 1,
|
|
228858
|
-
children: /* @__PURE__ */ jsx_runtime72.jsx(Lema, {
|
|
228967
|
+
children: showFlag ? /* @__PURE__ */ jsx_runtime72.jsx(PeruFlag, {}) : /* @__PURE__ */ jsx_runtime72.jsx(Lema, {
|
|
228859
228968
|
peru,
|
|
228860
|
-
vertical: columns < LEMA_WIDTH + 2
|
|
228969
|
+
vertical: columns < LEMA_WIDTH + 2,
|
|
228970
|
+
withMotto: true
|
|
228861
228971
|
})
|
|
228862
228972
|
})
|
|
228863
228973
|
]
|
|
228864
228974
|
});
|
|
228865
228975
|
}
|
|
228976
|
+
const logo = pickTheusLogo(columns);
|
|
228866
228977
|
return /* @__PURE__ */ jsx_runtime72.jsxs(ThemedBox_default, {
|
|
228867
|
-
flexDirection: "
|
|
228868
|
-
borderStyle: showFrame ? "round" : undefined,
|
|
228869
|
-
borderColor: showFrame ? inactive : undefined,
|
|
228870
|
-
paddingX: showFrame ? 1 : 0,
|
|
228978
|
+
flexDirection: "column",
|
|
228871
228979
|
alignSelf: "flex-start",
|
|
228872
228980
|
children: [
|
|
228873
|
-
/* @__PURE__ */ jsx_runtime72.jsx(ThemedBox_default, {
|
|
228874
|
-
marginRight: 2,
|
|
228875
|
-
flexShrink: 0,
|
|
228876
|
-
children: /* @__PURE__ */ jsx_runtime72.jsx(PrometheusArt, {
|
|
228877
|
-
peru
|
|
228878
|
-
})
|
|
228879
|
-
}),
|
|
228880
228981
|
/* @__PURE__ */ jsx_runtime72.jsxs(ThemedBox_default, {
|
|
228881
|
-
flexDirection: "
|
|
228882
|
-
|
|
228883
|
-
|
|
228982
|
+
flexDirection: "row",
|
|
228983
|
+
borderStyle: showFrame ? "round" : undefined,
|
|
228984
|
+
borderColor: showFrame ? inactive : undefined,
|
|
228985
|
+
paddingX: showFrame ? 1 : 0,
|
|
228884
228986
|
children: [
|
|
228885
|
-
/* @__PURE__ */ jsx_runtime72.jsx(
|
|
228886
|
-
|
|
228887
|
-
|
|
228888
|
-
children: /* @__PURE__ */ jsx_runtime72.jsx(
|
|
228889
|
-
|
|
228890
|
-
})
|
|
228891
|
-
}),
|
|
228892
|
-
/* @__PURE__ */ jsx_runtime72.jsx(ThemedBox_default, {
|
|
228893
|
-
marginTop: 1,
|
|
228894
|
-
children: /* @__PURE__ */ jsx_runtime72.jsx(Estado, {
|
|
228895
|
-
verde: verdeDato
|
|
228987
|
+
logo.length > 0 ? /* @__PURE__ */ jsx_runtime72.jsx(ThemedBox_default, {
|
|
228988
|
+
marginRight: 2,
|
|
228989
|
+
flexShrink: 0,
|
|
228990
|
+
children: /* @__PURE__ */ jsx_runtime72.jsx(LogoArt, {
|
|
228991
|
+
lines: logo
|
|
228896
228992
|
})
|
|
228897
|
-
}),
|
|
228898
|
-
/* @__PURE__ */ jsx_runtime72.
|
|
228993
|
+
}) : null,
|
|
228994
|
+
/* @__PURE__ */ jsx_runtime72.jsxs(ThemedBox_default, {
|
|
228995
|
+
flexDirection: "column",
|
|
228996
|
+
flexShrink: 1,
|
|
228899
228997
|
marginTop: 1,
|
|
228900
|
-
children:
|
|
228901
|
-
|
|
228902
|
-
|
|
228903
|
-
|
|
228904
|
-
|
|
228998
|
+
children: [
|
|
228999
|
+
/* @__PURE__ */ jsx_runtime72.jsx(Wordmark, {}),
|
|
229000
|
+
/* @__PURE__ */ jsx_runtime72.jsx(ThemedBox_default, {
|
|
229001
|
+
marginTop: 1,
|
|
229002
|
+
children: /* @__PURE__ */ jsx_runtime72.jsx(Lema, {
|
|
229003
|
+
peru,
|
|
229004
|
+
withMotto: !showFlag
|
|
229005
|
+
})
|
|
229006
|
+
}),
|
|
229007
|
+
/* @__PURE__ */ jsx_runtime72.jsx(ThemedBox_default, {
|
|
229008
|
+
marginTop: 1,
|
|
229009
|
+
children: /* @__PURE__ */ jsx_runtime72.jsx(Estado, {
|
|
229010
|
+
verde: verdeDato
|
|
229011
|
+
})
|
|
229012
|
+
}),
|
|
229013
|
+
/* @__PURE__ */ jsx_runtime72.jsx(ThemedBox_default, {
|
|
229014
|
+
marginTop: 1,
|
|
229015
|
+
children: /* @__PURE__ */ jsx_runtime72.jsx(Text, {
|
|
229016
|
+
dim: true,
|
|
229017
|
+
wrap: "wrap",
|
|
229018
|
+
children: TAGLINE
|
|
229019
|
+
})
|
|
229020
|
+
})
|
|
229021
|
+
]
|
|
228905
229022
|
})
|
|
228906
229023
|
]
|
|
228907
|
-
})
|
|
229024
|
+
}),
|
|
229025
|
+
showFlag ? /* @__PURE__ */ jsx_runtime72.jsx(ThemedBox_default, {
|
|
229026
|
+
marginTop: 1,
|
|
229027
|
+
marginLeft: showFrame ? 1 : 0,
|
|
229028
|
+
children: /* @__PURE__ */ jsx_runtime72.jsx(PeruFlag, {})
|
|
229029
|
+
}) : null
|
|
228908
229030
|
]
|
|
228909
229031
|
});
|
|
228910
229032
|
}
|
|
228911
|
-
var import_react61, jsx_runtime72, FULL_MIN_COLUMNS = 80, WORDMARK_MIN_COLUMNS = 40, LEMA_WIDTH = 43, STATUS_ITEMS;
|
|
229033
|
+
var import_react61, jsx_runtime72, FULL_MIN_COLUMNS = 80, WORDMARK_MIN_COLUMNS = 40, FLAG_MIN_COLUMNS = 46, PERU_RED = "#D91023", MOTTO = "AD ASTRA \xB7 PER ASPERA", LEMA_WIDTH = 43, STATUS_ITEMS;
|
|
228912
229034
|
var init_TheusLoginHero = __esm(() => {
|
|
228913
229035
|
init_ink2();
|
|
228914
229036
|
init_TerminalSizeContext();
|
|
@@ -290620,9 +290742,9 @@ function getTheusEnvMetadata() {
|
|
|
290620
290742
|
};
|
|
290621
290743
|
}
|
|
290622
290744
|
function getBuildAgeMinutes() {
|
|
290623
|
-
if (!{ VERSION: "0.1.
|
|
290745
|
+
if (!{ VERSION: "0.1.6", BUILD_TIME: "1970-01-01T00:00:00.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)
|
|
290624
290746
|
return;
|
|
290625
|
-
const buildTime = new Date({ VERSION: "0.1.
|
|
290747
|
+
const buildTime = new Date({ VERSION: "0.1.6", BUILD_TIME: "1970-01-01T00:00:00.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();
|
|
290626
290748
|
if (isNaN(buildTime))
|
|
290627
290749
|
return;
|
|
290628
290750
|
return Math.floor((Date.now() - buildTime) / 60000);
|
|
@@ -306783,7 +306905,7 @@ function getAssistantMessageFromError(error40, model, options2) {
|
|
|
306783
306905
|
if (process.env.USER_TYPE === "ant") {
|
|
306784
306906
|
const baseMessage = `API Error: 400 ${error40.message}
|
|
306785
306907
|
|
|
306786
|
-
Run /share and post the JSON file to ${{ VERSION: "0.1.
|
|
306908
|
+
Run /share and post the JSON file to ${{ VERSION: "0.1.6", BUILD_TIME: "1970-01-01T00:00:00.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}.`;
|
|
306787
306909
|
const rewindInstruction = getIsNonInteractiveSession() ? "" : " Then, use /rewind to recover the conversation.";
|
|
306788
306910
|
return createAssistantAPIErrorMessage({
|
|
306789
306911
|
content: baseMessage + rewindInstruction,
|
|
@@ -306819,7 +306941,7 @@ Run /share and post the JSON file to ${{ VERSION: "0.1.5", BUILD_TIME: "1970-01-
|
|
|
306819
306941
|
if (process.env.USER_TYPE === "ant" && !process.env.THEUS_MODEL && error40 instanceof Error && error40.message.toLowerCase().includes("invalid model name")) {
|
|
306820
306942
|
const orgId = getOauthAccountInfo()?.organizationUuid;
|
|
306821
306943
|
const baseMsg = `[THEUS-INTERNAL] Your org isn't gated into the \`${model}\` model. Either run \`theus\` with \`THEUS_MODEL=${getDefaultMainLoopModelSetting()}\``;
|
|
306822
|
-
const msg = orgId ? `${baseMsg} or share your orgId (${orgId}) in ${{ VERSION: "0.1.
|
|
306944
|
+
const msg = orgId ? `${baseMsg} or share your orgId (${orgId}) in ${{ VERSION: "0.1.6", BUILD_TIME: "1970-01-01T00:00:00.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.1.6", BUILD_TIME: "1970-01-01T00:00:00.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.`;
|
|
306823
306945
|
return createAssistantAPIErrorMessage({
|
|
306824
306946
|
content: msg,
|
|
306825
306947
|
error: "invalid_request"
|
|
@@ -319816,7 +319938,7 @@ function buildPrimarySection() {
|
|
|
319816
319938
|
});
|
|
319817
319939
|
return [{
|
|
319818
319940
|
label: "Version",
|
|
319819
|
-
value: { VERSION: "0.1.
|
|
319941
|
+
value: { VERSION: "0.1.6", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
|
|
319820
319942
|
}, {
|
|
319821
319943
|
label: "Session name",
|
|
319822
319944
|
value: nameValue
|
|
@@ -323567,7 +323689,7 @@ function Config({
|
|
|
323567
323689
|
}
|
|
323568
323690
|
})
|
|
323569
323691
|
}) : showSubmenu === "ChannelDowngrade" ? /* @__PURE__ */ jsx_runtime180.jsx(ChannelDowngradeDialog, {
|
|
323570
|
-
currentVersion: { VERSION: "0.1.
|
|
323692
|
+
currentVersion: { VERSION: "0.1.6", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
|
|
323571
323693
|
onChoice: (choice) => {
|
|
323572
323694
|
setShowSubmenu(null);
|
|
323573
323695
|
setTabsHidden(false);
|
|
@@ -323579,7 +323701,7 @@ function Config({
|
|
|
323579
323701
|
autoUpdatesChannel: "stable"
|
|
323580
323702
|
};
|
|
323581
323703
|
if (choice === "stay") {
|
|
323582
|
-
newSettings.minimumVersion = { VERSION: "0.1.
|
|
323704
|
+
newSettings.minimumVersion = { VERSION: "0.1.6", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION;
|
|
323583
323705
|
}
|
|
323584
323706
|
updateSettingsForSource("userSettings", newSettings);
|
|
323585
323707
|
setSettingsData((prev_27) => ({
|
|
@@ -331613,7 +331735,7 @@ function HelpV2(t0) {
|
|
|
331613
331735
|
let t6;
|
|
331614
331736
|
if ($2[31] !== tabs) {
|
|
331615
331737
|
t6 = /* @__PURE__ */ jsx_runtime207.jsx(Tabs, {
|
|
331616
|
-
title: `Theus v${{ VERSION: "0.1.
|
|
331738
|
+
title: `Theus v${{ VERSION: "0.1.6", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION}`,
|
|
331617
331739
|
color: "professionalBlue",
|
|
331618
331740
|
defaultTab: "general",
|
|
331619
331741
|
children: tabs
|
|
@@ -349044,9 +349166,9 @@ function getAllReleaseNotes(changelogContent = getStoredChangelogFromMemory()) {
|
|
|
349044
349166
|
return [];
|
|
349045
349167
|
}
|
|
349046
349168
|
}
|
|
349047
|
-
async function checkForReleaseNotes(lastSeenVersion, currentVersion = { VERSION: "0.1.
|
|
349169
|
+
async function checkForReleaseNotes(lastSeenVersion, currentVersion = { VERSION: "0.1.6", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION) {
|
|
349048
349170
|
if (process.env.USER_TYPE === "ant") {
|
|
349049
|
-
const changelog = { VERSION: "0.1.
|
|
349171
|
+
const changelog = { VERSION: "0.1.6", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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;
|
|
349050
349172
|
if (changelog) {
|
|
349051
349173
|
const commits = changelog.trim().split(`
|
|
349052
349174
|
`).filter(Boolean);
|
|
@@ -353240,7 +353362,7 @@ var init_Messages = __esm(() => {
|
|
|
353240
353362
|
let t1;
|
|
353241
353363
|
if ($2[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
353242
353364
|
t1 = /* @__PURE__ */ jsx_runtime245.jsx(TheusBanner, {
|
|
353243
|
-
version: { VERSION: "0.1.
|
|
353365
|
+
version: { VERSION: "0.1.6", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
|
|
353244
353366
|
});
|
|
353245
353367
|
$2[0] = t1;
|
|
353246
353368
|
} else {
|
|
@@ -380780,7 +380902,7 @@ async function captureMemoryDiagnostics(trigger, dumpNumber = 0) {
|
|
|
380780
380902
|
smapsRollup,
|
|
380781
380903
|
platform: process.platform,
|
|
380782
380904
|
nodeVersion: process.version,
|
|
380783
|
-
ccVersion: { VERSION: "0.1.
|
|
380905
|
+
ccVersion: { VERSION: "0.1.6", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
|
|
380784
380906
|
};
|
|
380785
380907
|
}
|
|
380786
380908
|
async function performHeapDump(trigger = "manual", dumpNumber = 0) {
|
|
@@ -381366,7 +381488,7 @@ var init_bridge_kick = __esm(() => {
|
|
|
381366
381488
|
var call54 = async () => {
|
|
381367
381489
|
return {
|
|
381368
381490
|
type: "text",
|
|
381369
|
-
value: { VERSION: "0.1.
|
|
381491
|
+
value: { VERSION: "0.1.6", BUILD_TIME: "1970-01-01T00:00:00.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.1.6", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.1.6", BUILD_TIME: "1970-01-01T00:00:00.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.1.6", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
|
|
381370
381492
|
};
|
|
381371
381493
|
}, version2, version_default;
|
|
381372
381494
|
var init_version = __esm(() => {
|
|
@@ -385101,7 +385223,7 @@ __export(exports_update, {
|
|
|
385101
385223
|
});
|
|
385102
385224
|
async function update() {
|
|
385103
385225
|
logEvent("tengu_update_check", {});
|
|
385104
|
-
writeToStdout(`Current version: ${{ VERSION: "0.1.
|
|
385226
|
+
writeToStdout(`Current version: ${{ VERSION: "0.1.6", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION}
|
|
385105
385227
|
`);
|
|
385106
385228
|
const channel2 = getInitialSettings()?.autoUpdatesChannel ?? "latest";
|
|
385107
385229
|
writeToStdout(`Checking for updates to ${channel2} version...
|
|
@@ -385176,8 +385298,8 @@ async function update() {
|
|
|
385176
385298
|
writeToStdout(`Theus is managed by Homebrew.
|
|
385177
385299
|
`);
|
|
385178
385300
|
const latest = await getLatestVersion(channel2);
|
|
385179
|
-
if (latest && !gte({ VERSION: "0.1.
|
|
385180
|
-
writeToStdout(`Update available: ${{ VERSION: "0.1.
|
|
385301
|
+
if (latest && !gte({ VERSION: "0.1.6", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
|
|
385302
|
+
writeToStdout(`Update available: ${{ VERSION: "0.1.6", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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}
|
|
385181
385303
|
`);
|
|
385182
385304
|
writeToStdout(`
|
|
385183
385305
|
`);
|
|
@@ -385193,8 +385315,8 @@ async function update() {
|
|
|
385193
385315
|
writeToStdout(`Theus is managed by winget.
|
|
385194
385316
|
`);
|
|
385195
385317
|
const latest = await getLatestVersion(channel2);
|
|
385196
|
-
if (latest && !gte({ VERSION: "0.1.
|
|
385197
|
-
writeToStdout(`Update available: ${{ VERSION: "0.1.
|
|
385318
|
+
if (latest && !gte({ VERSION: "0.1.6", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
|
|
385319
|
+
writeToStdout(`Update available: ${{ VERSION: "0.1.6", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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}
|
|
385198
385320
|
`);
|
|
385199
385321
|
writeToStdout(`
|
|
385200
385322
|
`);
|
|
@@ -385210,8 +385332,8 @@ async function update() {
|
|
|
385210
385332
|
writeToStdout(`Theus is managed by apk.
|
|
385211
385333
|
`);
|
|
385212
385334
|
const latest = await getLatestVersion(channel2);
|
|
385213
|
-
if (latest && !gte({ VERSION: "0.1.
|
|
385214
|
-
writeToStdout(`Update available: ${{ VERSION: "0.1.
|
|
385335
|
+
if (latest && !gte({ VERSION: "0.1.6", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
|
|
385336
|
+
writeToStdout(`Update available: ${{ VERSION: "0.1.6", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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}
|
|
385215
385337
|
`);
|
|
385216
385338
|
writeToStdout(`
|
|
385217
385339
|
`);
|
|
@@ -385276,11 +385398,11 @@ async function update() {
|
|
|
385276
385398
|
`);
|
|
385277
385399
|
await gracefulShutdown(1);
|
|
385278
385400
|
}
|
|
385279
|
-
if (result.latestVersion === { VERSION: "0.1.
|
|
385280
|
-
writeToStdout(source_default.green(`Theus is up to date (${{ VERSION: "0.1.
|
|
385401
|
+
if (result.latestVersion === { VERSION: "0.1.6", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION) {
|
|
385402
|
+
writeToStdout(source_default.green(`Theus is up to date (${{ VERSION: "0.1.6", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION})`) + `
|
|
385281
385403
|
`);
|
|
385282
385404
|
} else {
|
|
385283
|
-
writeToStdout(source_default.green(`Successfully updated from ${{ VERSION: "0.1.
|
|
385405
|
+
writeToStdout(source_default.green(`Successfully updated from ${{ VERSION: "0.1.6", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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}`) + `
|
|
385284
385406
|
`);
|
|
385285
385407
|
await regenerateCompletionCache();
|
|
385286
385408
|
}
|
|
@@ -385299,9 +385421,9 @@ async function update() {
|
|
|
385299
385421
|
await removeInstalledSymlink();
|
|
385300
385422
|
}
|
|
385301
385423
|
logForDebugging("update: Checking npm registry for latest version");
|
|
385302
|
-
logForDebugging(`update: Package URL: ${{ VERSION: "0.1.
|
|
385424
|
+
logForDebugging(`update: Package URL: ${{ VERSION: "0.1.6", BUILD_TIME: "1970-01-01T00:00:00.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}`);
|
|
385303
385425
|
const npmTag = channel2 === "stable" ? "stable" : "latest";
|
|
385304
|
-
const npmCommand = `npm view ${{ VERSION: "0.1.
|
|
385426
|
+
const npmCommand = `npm view ${{ VERSION: "0.1.6", BUILD_TIME: "1970-01-01T00:00:00.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`;
|
|
385305
385427
|
logForDebugging(`update: Running: ${npmCommand}`);
|
|
385306
385428
|
const latestVersion = await getLatestVersion(channel2);
|
|
385307
385429
|
logForDebugging(`update: Latest version from npm: ${latestVersion || "FAILED"}`);
|
|
@@ -385321,7 +385443,7 @@ async function update() {
|
|
|
385321
385443
|
`);
|
|
385322
385444
|
process.stderr.write(` \u2022 Corporate proxy/firewall blocking npm
|
|
385323
385445
|
`);
|
|
385324
|
-
if ({ VERSION: "0.1.
|
|
385446
|
+
if ({ VERSION: "0.1.6", BUILD_TIME: "1970-01-01T00:00:00.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.1.6", BUILD_TIME: "1970-01-01T00:00:00.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")) {
|
|
385325
385447
|
process.stderr.write(` \u2022 Internal/development build not published to npm
|
|
385326
385448
|
`);
|
|
385327
385449
|
}
|
|
@@ -385333,19 +385455,19 @@ async function update() {
|
|
|
385333
385455
|
`);
|
|
385334
385456
|
process.stderr.write(` \u2022 Run with --debug flag for more details
|
|
385335
385457
|
`);
|
|
385336
|
-
const packageName = { VERSION: "0.1.
|
|
385458
|
+
const packageName = { VERSION: "0.1.6", BUILD_TIME: "1970-01-01T00:00:00.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");
|
|
385337
385459
|
process.stderr.write(` \u2022 Manually check: npm view ${packageName} version
|
|
385338
385460
|
`);
|
|
385339
385461
|
process.stderr.write(` \u2022 Check if you need to login: npm whoami
|
|
385340
385462
|
`);
|
|
385341
385463
|
await gracefulShutdown(1);
|
|
385342
385464
|
}
|
|
385343
|
-
if (gte({ VERSION: "0.1.
|
|
385344
|
-
writeToStdout(source_default.green(`Theus is up to date (${{ VERSION: "0.1.
|
|
385465
|
+
if (gte({ VERSION: "0.1.6", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
|
|
385466
|
+
writeToStdout(source_default.green(`Theus is up to date (${{ VERSION: "0.1.6", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION})`) + `
|
|
385345
385467
|
`);
|
|
385346
385468
|
await gracefulShutdown(0);
|
|
385347
385469
|
}
|
|
385348
|
-
writeToStdout(`New version available: ${latestVersion} (current: ${{ VERSION: "0.1.
|
|
385470
|
+
writeToStdout(`New version available: ${latestVersion} (current: ${{ VERSION: "0.1.6", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION})
|
|
385349
385471
|
`);
|
|
385350
385472
|
writeToStdout(`Installing update...
|
|
385351
385473
|
`);
|
|
@@ -385390,7 +385512,7 @@ async function update() {
|
|
|
385390
385512
|
logForDebugging(`update: Installation status: ${status2}`);
|
|
385391
385513
|
switch (status2) {
|
|
385392
385514
|
case "success":
|
|
385393
|
-
writeToStdout(source_default.green(`Successfully updated from ${{ VERSION: "0.1.
|
|
385515
|
+
writeToStdout(source_default.green(`Successfully updated from ${{ VERSION: "0.1.6", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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}`) + `
|
|
385394
385516
|
`);
|
|
385395
385517
|
await regenerateCompletionCache();
|
|
385396
385518
|
break;
|
|
@@ -385400,7 +385522,7 @@ async function update() {
|
|
|
385400
385522
|
if (useLocalUpdate) {
|
|
385401
385523
|
process.stderr.write(`Try manually updating with:
|
|
385402
385524
|
`);
|
|
385403
|
-
process.stderr.write(` cd ~/.theus/local && npm update ${{ VERSION: "0.1.
|
|
385525
|
+
process.stderr.write(` cd ~/.theus/local && npm update ${{ VERSION: "0.1.6", BUILD_TIME: "1970-01-01T00:00:00.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}
|
|
385404
385526
|
`);
|
|
385405
385527
|
} else {
|
|
385406
385528
|
process.stderr.write(`Try running with sudo or fix npm permissions
|
|
@@ -385416,7 +385538,7 @@ async function update() {
|
|
|
385416
385538
|
if (useLocalUpdate) {
|
|
385417
385539
|
process.stderr.write(`Try manually updating with:
|
|
385418
385540
|
`);
|
|
385419
|
-
process.stderr.write(` cd ~/.theus/local && npm update ${{ VERSION: "0.1.
|
|
385541
|
+
process.stderr.write(` cd ~/.theus/local && npm update ${{ VERSION: "0.1.6", BUILD_TIME: "1970-01-01T00:00:00.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}
|
|
385420
385542
|
`);
|
|
385421
385543
|
} else {
|
|
385422
385544
|
process.stderr.write(`Or consider using native installation with: theus install
|
|
@@ -392311,7 +392433,7 @@ var init_sessionStorage = __esm(() => {
|
|
|
392311
392433
|
init_settings2();
|
|
392312
392434
|
init_slowOperations();
|
|
392313
392435
|
init_uuid();
|
|
392314
|
-
VERSION4 = { VERSION: "0.1.
|
|
392436
|
+
VERSION4 = { VERSION: "0.1.6", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION;
|
|
392315
392437
|
MAX_TOMBSTONE_REWRITE_BYTES = 50 * 1024 * 1024;
|
|
392316
392438
|
SKIP_FIRST_PROMPT_PATTERN = /^(?:\s*<[a-z][\w-]*[\s>]|\[Request interrupted by user[^\]]*\])/;
|
|
392317
392439
|
EPHEMERAL_PROGRESS_TYPES = new Set([
|
|
@@ -393516,7 +393638,7 @@ var init_filesystem = __esm(() => {
|
|
|
393516
393638
|
});
|
|
393517
393639
|
getBundledSkillsRoot = memoize_default(function getBundledSkillsRoot2() {
|
|
393518
393640
|
const nonce = randomBytes20(16).toString("hex");
|
|
393519
|
-
return join137(getTheusTempDir(), "bundled-skills", { VERSION: "0.1.
|
|
393641
|
+
return join137(getTheusTempDir(), "bundled-skills", { VERSION: "0.1.6", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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);
|
|
393520
393642
|
});
|
|
393521
393643
|
getResolvedWorkingDirPaths = memoize_default(getPathsForPermissionCheck);
|
|
393522
393644
|
});
|
|
@@ -398691,7 +398813,7 @@ function getSimpleDoingTasksSection() {
|
|
|
398691
398813
|
];
|
|
398692
398814
|
const userHelpSubitems = [
|
|
398693
398815
|
`/help: Get help with using Theus`,
|
|
398694
|
-
`To give feedback, users should ${{ VERSION: "0.1.
|
|
398816
|
+
`To give feedback, users should ${{ VERSION: "0.1.6", BUILD_TIME: "1970-01-01T00:00:00.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}`
|
|
398695
398817
|
];
|
|
398696
398818
|
const items = [
|
|
398697
398819
|
`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.`,
|
|
@@ -399513,7 +399635,7 @@ function computeFingerprint(messageText, version3) {
|
|
|
399513
399635
|
}
|
|
399514
399636
|
function computeFingerprintFromMessages(messages) {
|
|
399515
399637
|
const firstMessageText = extractFirstMessageText(messages);
|
|
399516
|
-
return computeFingerprint(firstMessageText, { VERSION: "0.1.
|
|
399638
|
+
return computeFingerprint(firstMessageText, { VERSION: "0.1.6", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION);
|
|
399517
399639
|
}
|
|
399518
399640
|
var FINGERPRINT_SALT = "59cf53e54c78";
|
|
399519
399641
|
var init_fingerprint = () => {};
|
|
@@ -401947,7 +402069,7 @@ async function sideQuery(opts) {
|
|
|
401947
402069
|
betas.push(STRUCTURED_OUTPUTS_BETA_HEADER);
|
|
401948
402070
|
}
|
|
401949
402071
|
const messageText = extractFirstUserMessageText(messages);
|
|
401950
|
-
const fingerprint = computeFingerprint(messageText, { VERSION: "0.1.
|
|
402072
|
+
const fingerprint = computeFingerprint(messageText, { VERSION: "0.1.6", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION);
|
|
401951
402073
|
const attributionHeader = getAttributionHeader(fingerprint);
|
|
401952
402074
|
const systemBlocks = [
|
|
401953
402075
|
attributionHeader ? { type: "text", text: attributionHeader } : null,
|
|
@@ -407448,7 +407570,7 @@ function buildSystemInitMessage(inputs) {
|
|
|
407448
407570
|
slash_commands: inputs.commands.filter((c5) => c5.userInvocable !== false).map((c5) => c5.name),
|
|
407449
407571
|
apiKeySource: getTheusApiKeyWithSource().source,
|
|
407450
407572
|
betas: getSdkBetas(),
|
|
407451
|
-
theus_code_version: { VERSION: "0.1.
|
|
407573
|
+
theus_code_version: { VERSION: "0.1.6", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
|
|
407452
407574
|
output_style: outputStyle2,
|
|
407453
407575
|
agents: inputs.agents.map((agent) => agent.agentType),
|
|
407454
407576
|
skills: inputs.skills.filter((s) => s.userInvocable !== false).map((skill) => skill.name),
|
|
@@ -422082,7 +422204,7 @@ var init_useVoiceEnabled = __esm(() => {
|
|
|
422082
422204
|
function getSemverPart(version3) {
|
|
422083
422205
|
return `${import_semver13.major(version3, { loose: true })}.${import_semver13.minor(version3, { loose: true })}.${import_semver13.patch(version3, { loose: true })}`;
|
|
422084
422206
|
}
|
|
422085
|
-
function useUpdateNotification(updatedVersion, initialVersion = { VERSION: "0.1.
|
|
422207
|
+
function useUpdateNotification(updatedVersion, initialVersion = { VERSION: "0.1.6", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION) {
|
|
422086
422208
|
const [lastNotifiedSemver, setLastNotifiedSemver] = import_react215.useState(() => getSemverPart(initialVersion));
|
|
422087
422209
|
if (!updatedVersion) {
|
|
422088
422210
|
return null;
|
|
@@ -422122,7 +422244,7 @@ function AutoUpdater({
|
|
|
422122
422244
|
return;
|
|
422123
422245
|
}
|
|
422124
422246
|
if (false) {}
|
|
422125
|
-
const currentVersion = { VERSION: "0.1.
|
|
422247
|
+
const currentVersion = { VERSION: "0.1.6", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION;
|
|
422126
422248
|
const channel2 = getInitialSettings()?.autoUpdatesChannel ?? "latest";
|
|
422127
422249
|
let latestVersion = await getLatestVersion(channel2);
|
|
422128
422250
|
const isDisabled2 = isAutoUpdaterDisabled();
|
|
@@ -422258,7 +422380,7 @@ function AutoUpdater({
|
|
|
422258
422380
|
" ",
|
|
422259
422381
|
/* @__PURE__ */ jsx_runtime383.jsx(ThemedText, {
|
|
422260
422382
|
bold: true,
|
|
422261
|
-
children: hasLocalInstall ? `cd ~/.theus/local && npm update ${{ VERSION: "0.1.
|
|
422383
|
+
children: hasLocalInstall ? `cd ~/.theus/local && npm update ${{ VERSION: "0.1.6", BUILD_TIME: "1970-01-01T00:00:00.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.1.6", BUILD_TIME: "1970-01-01T00:00:00.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}`
|
|
422262
422384
|
})
|
|
422263
422385
|
]
|
|
422264
422386
|
})
|
|
@@ -422335,12 +422457,12 @@ function NativeAutoUpdater({
|
|
|
422335
422457
|
logEvent("tengu_native_auto_updater_start", {});
|
|
422336
422458
|
try {
|
|
422337
422459
|
const maxVersion = await getMaxVersion();
|
|
422338
|
-
if (maxVersion && gt({ VERSION: "0.1.
|
|
422460
|
+
if (maxVersion && gt({ VERSION: "0.1.6", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
|
|
422339
422461
|
const msg = await getMaxVersionMessage();
|
|
422340
422462
|
setMaxVersionIssue(msg ?? "affects your version");
|
|
422341
422463
|
}
|
|
422342
422464
|
const result = await installLatest(channel2);
|
|
422343
|
-
const currentVersion = { VERSION: "0.1.
|
|
422465
|
+
const currentVersion = { VERSION: "0.1.6", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION;
|
|
422344
422466
|
const latencyMs = Date.now() - startTime2;
|
|
422345
422467
|
if (result.lockFailed) {
|
|
422346
422468
|
logEvent("tengu_native_auto_updater_lock_contention", {
|
|
@@ -422477,17 +422599,17 @@ function PackageManagerAutoUpdater(t0) {
|
|
|
422477
422599
|
const maxVersion = await getMaxVersion();
|
|
422478
422600
|
if (maxVersion && latest && gt(latest, maxVersion)) {
|
|
422479
422601
|
logForDebugging(`PackageManagerAutoUpdater: maxVersion ${maxVersion} is set, capping update from ${latest} to ${maxVersion}`);
|
|
422480
|
-
if (gte({ VERSION: "0.1.
|
|
422481
|
-
logForDebugging(`PackageManagerAutoUpdater: current version ${{ VERSION: "0.1.
|
|
422602
|
+
if (gte({ VERSION: "0.1.6", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
|
|
422603
|
+
logForDebugging(`PackageManagerAutoUpdater: current version ${{ VERSION: "0.1.6", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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`);
|
|
422482
422604
|
setUpdateAvailable(false);
|
|
422483
422605
|
return;
|
|
422484
422606
|
}
|
|
422485
422607
|
latest = maxVersion;
|
|
422486
422608
|
}
|
|
422487
|
-
const hasUpdate = latest && !gte({ VERSION: "0.1.
|
|
422609
|
+
const hasUpdate = latest && !gte({ VERSION: "0.1.6", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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);
|
|
422488
422610
|
setUpdateAvailable(!!hasUpdate);
|
|
422489
422611
|
if (hasUpdate) {
|
|
422490
|
-
logForDebugging(`PackageManagerAutoUpdater: Update available ${{ VERSION: "0.1.
|
|
422612
|
+
logForDebugging(`PackageManagerAutoUpdater: Update available ${{ VERSION: "0.1.6", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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}`);
|
|
422491
422613
|
}
|
|
422492
422614
|
};
|
|
422493
422615
|
$2[0] = t1;
|
|
@@ -422521,7 +422643,7 @@ function PackageManagerAutoUpdater(t0) {
|
|
|
422521
422643
|
wrap: "truncate",
|
|
422522
422644
|
children: [
|
|
422523
422645
|
"currentVersion: ",
|
|
422524
|
-
{ VERSION: "0.1.
|
|
422646
|
+
{ VERSION: "0.1.6", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
|
|
422525
422647
|
]
|
|
422526
422648
|
});
|
|
422527
422649
|
$2[3] = verbose;
|
|
@@ -430394,7 +430516,7 @@ function buildStatusLineCommandInput(permissionMode, exceeds200kTokens, settings
|
|
|
430394
430516
|
project_dir: getOriginalCwd(),
|
|
430395
430517
|
added_dirs: addedDirs
|
|
430396
430518
|
},
|
|
430397
|
-
version: { VERSION: "0.1.
|
|
430519
|
+
version: { VERSION: "0.1.6", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
|
|
430398
430520
|
output_style: {
|
|
430399
430521
|
name: outputStyleName
|
|
430400
430522
|
},
|
|
@@ -441957,7 +442079,7 @@ async function submitTranscriptShare(messages, trigger, appearanceId) {
|
|
|
441957
442079
|
} catch {}
|
|
441958
442080
|
const data = {
|
|
441959
442081
|
trigger,
|
|
441960
|
-
version: { VERSION: "0.1.
|
|
442082
|
+
version: { VERSION: "0.1.6", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
|
|
441961
442083
|
platform: process.platform,
|
|
441962
442084
|
transcript,
|
|
441963
442085
|
subagentTranscripts: Object.keys(subagentTranscripts).length > 0 ? subagentTranscripts : undefined,
|
|
@@ -454747,7 +454869,7 @@ function Onboarding({
|
|
|
454747
454869
|
flexDirection: "column",
|
|
454748
454870
|
children: [
|
|
454749
454871
|
/* @__PURE__ */ jsx_runtime457.jsx(TheusBanner, {
|
|
454750
|
-
version: { VERSION: "0.1.
|
|
454872
|
+
version: { VERSION: "0.1.6", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
|
|
454751
454873
|
}),
|
|
454752
454874
|
/* @__PURE__ */ jsx_runtime457.jsxs(ThemedBox_default, {
|
|
454753
454875
|
flexDirection: "column",
|
|
@@ -455618,7 +455740,7 @@ function completeOnboarding() {
|
|
|
455618
455740
|
saveGlobalConfig((current) => ({
|
|
455619
455741
|
...current,
|
|
455620
455742
|
hasCompletedOnboarding: true,
|
|
455621
|
-
lastOnboardingVersion: { VERSION: "0.1.
|
|
455743
|
+
lastOnboardingVersion: { VERSION: "0.1.6", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
|
|
455622
455744
|
}));
|
|
455623
455745
|
}
|
|
455624
455746
|
function showDialog(root2, renderer) {
|
|
@@ -460340,7 +460462,7 @@ function appendToLog(path21, message) {
|
|
|
460340
460462
|
cwd: getFsImplementation().cwd(),
|
|
460341
460463
|
userType: process.env.USER_TYPE,
|
|
460342
460464
|
sessionId: getSessionId(),
|
|
460343
|
-
version: { VERSION: "0.1.
|
|
460465
|
+
version: { VERSION: "0.1.6", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
|
|
460344
460466
|
};
|
|
460345
460467
|
getLogWriter(path21).write(messageWithTimestamp);
|
|
460346
460468
|
}
|
|
@@ -464417,8 +464539,8 @@ async function getEnvLessBridgeConfig() {
|
|
|
464417
464539
|
}
|
|
464418
464540
|
async function checkEnvLessBridgeMinVersion() {
|
|
464419
464541
|
const cfg = await getEnvLessBridgeConfig();
|
|
464420
|
-
if (cfg.min_version && lt({ VERSION: "0.1.
|
|
464421
|
-
return `Your version of Theus (${{ VERSION: "0.1.
|
|
464542
|
+
if (cfg.min_version && lt({ VERSION: "0.1.6", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
|
|
464543
|
+
return `Your version of Theus (${{ VERSION: "0.1.6", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.
|
|
464422
464544
|
Version ${cfg.min_version} or higher is required. Run \`theus update\` to update.`;
|
|
464423
464545
|
}
|
|
464424
464546
|
return null;
|
|
@@ -464892,7 +465014,7 @@ async function initBridgeCore(params) {
|
|
|
464892
465014
|
const rawApi = createBridgeApiClient({
|
|
464893
465015
|
baseUrl,
|
|
464894
465016
|
getAccessToken,
|
|
464895
|
-
runnerVersion: { VERSION: "0.1.
|
|
465017
|
+
runnerVersion: { VERSION: "0.1.6", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
|
|
464896
465018
|
onDebug: logForDebugging,
|
|
464897
465019
|
onAuth401,
|
|
464898
465020
|
getTrustedDeviceToken
|
|
@@ -470580,7 +470702,7 @@ async function startMCPServer(cwd3, debug2, verbose) {
|
|
|
470580
470702
|
setCwd(cwd3);
|
|
470581
470703
|
const server = new Server({
|
|
470582
470704
|
name: "theus/tengu",
|
|
470583
|
-
version: { VERSION: "0.1.
|
|
470705
|
+
version: { VERSION: "0.1.6", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
|
|
470584
470706
|
}, {
|
|
470585
470707
|
capabilities: {
|
|
470586
470708
|
tools: {}
|
|
@@ -472022,7 +472144,7 @@ async function setupTokenHandler(root2) {
|
|
|
472022
472144
|
gap: 1,
|
|
472023
472145
|
children: [
|
|
472024
472146
|
/* @__PURE__ */ jsx_runtime473.jsx(TheusBanner, {
|
|
472025
|
-
version: { VERSION: "0.1.
|
|
472147
|
+
version: { VERSION: "0.1.6", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
|
|
472026
472148
|
}),
|
|
472027
472149
|
showAuthWarning && /* @__PURE__ */ jsx_runtime473.jsxs(ThemedBox_default, {
|
|
472028
472150
|
flexDirection: "column",
|
|
@@ -473371,7 +473493,7 @@ ${customInstructions}` : customInstructions;
|
|
|
473371
473493
|
}
|
|
473372
473494
|
}
|
|
473373
473495
|
logForDiagnosticsNoPII("info", "started", {
|
|
473374
|
-
version: { VERSION: "0.1.
|
|
473496
|
+
version: { VERSION: "0.1.6", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
|
|
473375
473497
|
is_native_binary: isInBundledMode()
|
|
473376
473498
|
});
|
|
473377
473499
|
registerCleanup(async () => {
|
|
@@ -474155,7 +474277,7 @@ Usage: theus --remote "your task description"`, () => gracefulShutdown(1));
|
|
|
474155
474277
|
pendingHookMessages
|
|
474156
474278
|
}, renderAndRun);
|
|
474157
474279
|
}
|
|
474158
|
-
}).version(`${{ VERSION: "0.1.
|
|
474280
|
+
}).version(`${{ VERSION: "0.1.6", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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");
|
|
474159
474281
|
program2.option("-w, --worktree [name]", "Crea un nuevo worktree de git para esta sesi\xF3n (opcionalmente indica un nombre)");
|
|
474160
474282
|
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.");
|
|
474161
474283
|
if (canUserConfigureAdvisor()) {
|
|
@@ -474669,7 +474791,7 @@ if (false) {}
|
|
|
474669
474791
|
async function main2() {
|
|
474670
474792
|
const args = process.argv.slice(2);
|
|
474671
474793
|
if (args.length === 1 && (args[0] === "--version" || args[0] === "-v" || args[0] === "-V")) {
|
|
474672
|
-
console.log(`${{ VERSION: "0.1.
|
|
474794
|
+
console.log(`${{ VERSION: "0.1.6", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)`);
|
|
474673
474795
|
return;
|
|
474674
474796
|
}
|
|
474675
474797
|
const {
|