theus-cli 0.2.38 → 0.2.39
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 +160 -136
- package/package.json +1 -1
package/cli.js
CHANGED
|
@@ -58324,7 +58324,7 @@ async function _executeApiKeyHelper(isNonInteractiveSession) {
|
|
|
58324
58324
|
if (isApiKeyHelperFromProjectOrLocalSettings()) {
|
|
58325
58325
|
const hasTrust = checkHasTrustDialogAccepted();
|
|
58326
58326
|
if (!hasTrust && !isNonInteractiveSession) {
|
|
58327
|
-
const error40 = new Error(`Security: apiKeyHelper executed before workspace trust is confirmed. If you see this message, post in ${{ VERSION: "0.2.
|
|
58327
|
+
const error40 = new Error(`Security: apiKeyHelper executed before workspace trust is confirmed. If you see this message, post in ${{ VERSION: "0.2.39", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.FEEDBACK_CHANNEL}.`);
|
|
58328
58328
|
logAntError("apiKeyHelper invoked before trust check", error40);
|
|
58329
58329
|
logEvent("tengu_apiKeyHelper_missing_trust11", {});
|
|
58330
58330
|
return null;
|
|
@@ -58368,7 +58368,7 @@ async function runAwsAuthRefresh() {
|
|
|
58368
58368
|
if (isAwsAuthRefreshFromProjectSettings()) {
|
|
58369
58369
|
const hasTrust = checkHasTrustDialogAccepted();
|
|
58370
58370
|
if (!hasTrust && !getIsNonInteractiveSession()) {
|
|
58371
|
-
const error40 = new Error(`Security: awsAuthRefresh executed before workspace trust is confirmed. If you see this message, post in ${{ VERSION: "0.2.
|
|
58371
|
+
const error40 = new Error(`Security: awsAuthRefresh executed before workspace trust is confirmed. If you see this message, post in ${{ VERSION: "0.2.39", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.FEEDBACK_CHANNEL}.`);
|
|
58372
58372
|
logAntError("awsAuthRefresh invoked before trust check", error40);
|
|
58373
58373
|
logEvent("tengu_awsAuthRefresh_missing_trust", {});
|
|
58374
58374
|
return false;
|
|
@@ -58428,7 +58428,7 @@ async function getAwsCredsFromCredentialExport() {
|
|
|
58428
58428
|
if (isAwsCredentialExportFromProjectSettings()) {
|
|
58429
58429
|
const hasTrust = checkHasTrustDialogAccepted();
|
|
58430
58430
|
if (!hasTrust && !getIsNonInteractiveSession()) {
|
|
58431
|
-
const error40 = new Error(`Security: awsCredentialExport executed before workspace trust is confirmed. If you see this message, post in ${{ VERSION: "0.2.
|
|
58431
|
+
const error40 = new Error(`Security: awsCredentialExport executed before workspace trust is confirmed. If you see this message, post in ${{ VERSION: "0.2.39", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.FEEDBACK_CHANNEL}.`);
|
|
58432
58432
|
logAntError("awsCredentialExport invoked before trust check", error40);
|
|
58433
58433
|
logEvent("tengu_awsCredentialExport_missing_trust", {});
|
|
58434
58434
|
return null;
|
|
@@ -58513,7 +58513,7 @@ async function runGcpAuthRefresh() {
|
|
|
58513
58513
|
if (isGcpAuthRefreshFromProjectSettings()) {
|
|
58514
58514
|
const hasTrust = checkHasTrustDialogAccepted();
|
|
58515
58515
|
if (!hasTrust && !getIsNonInteractiveSession()) {
|
|
58516
|
-
const error40 = new Error(`Security: gcpAuthRefresh executed before workspace trust is confirmed. If you see this message, post in ${{ VERSION: "0.2.
|
|
58516
|
+
const error40 = new Error(`Security: gcpAuthRefresh executed before workspace trust is confirmed. If you see this message, post in ${{ VERSION: "0.2.39", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.FEEDBACK_CHANNEL}.`);
|
|
58517
58517
|
logAntError("gcpAuthRefresh invoked before trust check", error40);
|
|
58518
58518
|
logEvent("tengu_gcpAuthRefresh_missing_trust", {});
|
|
58519
58519
|
return false;
|
|
@@ -59208,7 +59208,7 @@ var init_auth = __esm(() => {
|
|
|
59208
59208
|
|
|
59209
59209
|
// utils/userAgent.ts
|
|
59210
59210
|
function getTheusCodeUserAgent() {
|
|
59211
|
-
return `theus-code/${{ VERSION: "0.2.
|
|
59211
|
+
return `theus-code/${{ VERSION: "0.2.39", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION}`;
|
|
59212
59212
|
}
|
|
59213
59213
|
|
|
59214
59214
|
// utils/workloadContext.ts
|
|
@@ -59230,7 +59230,7 @@ function getUserAgent() {
|
|
|
59230
59230
|
const clientApp = process.env.THEUS_AGENT_SDK_CLIENT_APP ? `, client-app/${process.env.THEUS_AGENT_SDK_CLIENT_APP}` : "";
|
|
59231
59231
|
const workload = getWorkload();
|
|
59232
59232
|
const workloadSuffix = workload ? `, workload/${workload}` : "";
|
|
59233
|
-
return `theus-cli/${{ VERSION: "0.2.
|
|
59233
|
+
return `theus-cli/${{ VERSION: "0.2.39", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION} (${process.env.USER_TYPE}, ${process.env.THEUS_CODE_ENTRYPOINT ?? "cli"}${agentSdkVersion}${clientApp}${workloadSuffix})`;
|
|
59234
59234
|
}
|
|
59235
59235
|
function getMCPUserAgent() {
|
|
59236
59236
|
const parts = [];
|
|
@@ -59244,7 +59244,7 @@ function getMCPUserAgent() {
|
|
|
59244
59244
|
parts.push(`client-app/${process.env.THEUS_AGENT_SDK_CLIENT_APP}`);
|
|
59245
59245
|
}
|
|
59246
59246
|
const suffix = parts.length > 0 ? ` (${parts.join(", ")})` : "";
|
|
59247
|
-
return `theus-code/${{ VERSION: "0.2.
|
|
59247
|
+
return `theus-code/${{ VERSION: "0.2.39", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION}${suffix}`;
|
|
59248
59248
|
}
|
|
59249
59249
|
function getWebFetchUserAgent() {
|
|
59250
59250
|
return `Theus-User (${getTheusCodeUserAgent()}; +https://support.theus.pe/)`;
|
|
@@ -59382,7 +59382,7 @@ var init_user = __esm(() => {
|
|
|
59382
59382
|
deviceId,
|
|
59383
59383
|
sessionId: getSessionId(),
|
|
59384
59384
|
email: getEmail(),
|
|
59385
|
-
appVersion: { VERSION: "0.2.
|
|
59385
|
+
appVersion: { VERSION: "0.2.39", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
|
|
59386
59386
|
platform: getHostPlatformForAnalytics(),
|
|
59387
59387
|
organizationUuid,
|
|
59388
59388
|
accountUuid,
|
|
@@ -61097,7 +61097,7 @@ var init_metadata = __esm(() => {
|
|
|
61097
61097
|
COMPOUND_OPERATOR_REGEX = /\s*(?:&&|\|\||[;|])\s*/;
|
|
61098
61098
|
WHITESPACE_REGEX = /\s+/;
|
|
61099
61099
|
getVersionBase = memoize_default(() => {
|
|
61100
|
-
const match = { VERSION: "0.2.
|
|
61100
|
+
const match = { VERSION: "0.2.39", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION.match(/^\d+\.\d+\.\d+(?:-[a-z]+)?/);
|
|
61101
61101
|
return match ? match[0] : undefined;
|
|
61102
61102
|
});
|
|
61103
61103
|
buildEnvContext = memoize_default(async () => {
|
|
@@ -61137,9 +61137,9 @@ var init_metadata = __esm(() => {
|
|
|
61137
61137
|
isGithubAction: isEnvTruthy(process.env.GITHUB_ACTIONS),
|
|
61138
61138
|
isTheusCodeAction: isEnvTruthy(process.env.THEUS_CODE_ACTION),
|
|
61139
61139
|
isTheusAiAuth: isTheusAISubscriber(),
|
|
61140
|
-
version: { VERSION: "0.2.
|
|
61140
|
+
version: { VERSION: "0.2.39", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
|
|
61141
61141
|
versionBase: getVersionBase(),
|
|
61142
|
-
buildTime: { VERSION: "0.2.
|
|
61142
|
+
buildTime: { VERSION: "0.2.39", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.BUILD_TIME,
|
|
61143
61143
|
deploymentEnvironment: env3.detectDeploymentEnvironment(),
|
|
61144
61144
|
...isEnvTruthy(process.env.GITHUB_ACTIONS) && {
|
|
61145
61145
|
githubEventName: process.env.GITHUB_EVENT_NAME,
|
|
@@ -61805,7 +61805,7 @@ function initialize1PEventLogging() {
|
|
|
61805
61805
|
const platform2 = getPlatform();
|
|
61806
61806
|
const attributes = {
|
|
61807
61807
|
[ATTR_SERVICE_NAME]: "theus-code",
|
|
61808
|
-
[ATTR_SERVICE_VERSION]: { VERSION: "0.2.
|
|
61808
|
+
[ATTR_SERVICE_VERSION]: { VERSION: "0.2.39", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
|
|
61809
61809
|
};
|
|
61810
61810
|
if (platform2 === "wsl") {
|
|
61811
61811
|
const wslVersion = getWslVersion();
|
|
@@ -61832,7 +61832,7 @@ function initialize1PEventLogging() {
|
|
|
61832
61832
|
})
|
|
61833
61833
|
]
|
|
61834
61834
|
});
|
|
61835
|
-
firstPartyEventLogger = firstPartyEventLoggerProvider.getLogger("com.theus.theus_code.events", { VERSION: "0.2.
|
|
61835
|
+
firstPartyEventLogger = firstPartyEventLoggerProvider.getLogger("com.theus.theus_code.events", { VERSION: "0.2.39", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION);
|
|
61836
61836
|
}
|
|
61837
61837
|
async function reinitialize1PEventLoggingIfConfigChanged() {
|
|
61838
61838
|
if (!is1PEventLoggingEnabled() || !firstPartyEventLoggerProvider) {
|
|
@@ -63703,7 +63703,7 @@ function getAttributionHeader(fingerprint) {
|
|
|
63703
63703
|
if (!isAttributionHeaderEnabled()) {
|
|
63704
63704
|
return "";
|
|
63705
63705
|
}
|
|
63706
|
-
const version2 = `${{ VERSION: "0.2.
|
|
63706
|
+
const version2 = `${{ VERSION: "0.2.39", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION}.${fingerprint}`;
|
|
63707
63707
|
const entrypoint = process.env.THEUS_CODE_ENTRYPOINT ?? "unknown";
|
|
63708
63708
|
const cch = "";
|
|
63709
63709
|
const workload = getWorkload();
|
|
@@ -107814,7 +107814,7 @@ Complete the user's request by providing accurate, documentation-based guidance.
|
|
|
107814
107814
|
}
|
|
107815
107815
|
function getFeedbackGuideline() {
|
|
107816
107816
|
if (isUsing3PServices()) {
|
|
107817
|
-
return `- When you cannot find an answer or the feature doesn't exist, direct the user to ${{ VERSION: "0.2.
|
|
107817
|
+
return `- When you cannot find an answer or the feature doesn't exist, direct the user to ${{ VERSION: "0.2.39", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.ISSUES_EXPLAINER}`;
|
|
107818
107818
|
}
|
|
107819
107819
|
return "- When you cannot find an answer or the feature doesn't exist, direct the user to use /feedback to report a feature request or bug";
|
|
107820
107820
|
}
|
|
@@ -166523,7 +166523,7 @@ function getTelemetryAttributes() {
|
|
|
166523
166523
|
attributes["session.id"] = sessionId;
|
|
166524
166524
|
}
|
|
166525
166525
|
if (shouldIncludeAttribute("OTEL_METRICS_INCLUDE_VERSION")) {
|
|
166526
|
-
attributes["app.version"] = { VERSION: "0.2.
|
|
166526
|
+
attributes["app.version"] = { VERSION: "0.2.39", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION;
|
|
166527
166527
|
}
|
|
166528
166528
|
const oauthAccount = getOauthAccountInfo();
|
|
166529
166529
|
if (oauthAccount) {
|
|
@@ -169447,7 +169447,13 @@ function formatLimitReachedText(limit, resetMessage, _model) {
|
|
|
169447
169447
|
return `You've hit your ${limit}${resetMessage}`;
|
|
169448
169448
|
}
|
|
169449
169449
|
function isGatewayQuotaExceededBody(body) {
|
|
169450
|
-
|
|
169450
|
+
if (typeof body !== "object" || body === null)
|
|
169451
|
+
return false;
|
|
169452
|
+
const b = body;
|
|
169453
|
+
if (b.quota_exceeded === true)
|
|
169454
|
+
return true;
|
|
169455
|
+
const err2 = b.error;
|
|
169456
|
+
return typeof err2 === "object" && err2 !== null && err2.code === "quota_exceeded";
|
|
169451
169457
|
}
|
|
169452
169458
|
function asNonEmptyString(value) {
|
|
169453
169459
|
if (typeof value === "string" && value.trim().length > 0)
|
|
@@ -169459,6 +169465,18 @@ function asNonEmptyString(value) {
|
|
|
169459
169465
|
function isGatewayQuotaExceededMessage(text) {
|
|
169460
169466
|
return text.startsWith(GATEWAY_QUOTA_EXCEEDED_MESSAGE_PREFIX);
|
|
169461
169467
|
}
|
|
169468
|
+
function creditsFromBody(creditos, tt) {
|
|
169469
|
+
const direct = asNonEmptyString(creditos);
|
|
169470
|
+
if (direct)
|
|
169471
|
+
return direct;
|
|
169472
|
+
const ttStr = asNonEmptyString(tt);
|
|
169473
|
+
if (!ttStr)
|
|
169474
|
+
return;
|
|
169475
|
+
const ttNum = Number(ttStr);
|
|
169476
|
+
if (!Number.isFinite(ttNum))
|
|
169477
|
+
return;
|
|
169478
|
+
return String(Math.round(ttNum / 1000));
|
|
169479
|
+
}
|
|
169462
169480
|
function getGatewayQuotaExceededMessage(body) {
|
|
169463
169481
|
const pausePromise = "Sin sorpresas: al tope, Theus se pausa \u2014 jam\xE1s factura de m\xE1s.";
|
|
169464
169482
|
const genericFallback = `Llegaste al l\xEDmite de tu plan. ${pausePromise} Revisa tus opciones en ${THEUS_PRICING_URL} (anual = 2 meses gratis).`;
|
|
@@ -169466,18 +169484,18 @@ function getGatewayQuotaExceededMessage(body) {
|
|
|
169466
169484
|
return genericFallback;
|
|
169467
169485
|
}
|
|
169468
169486
|
const plan = asNonEmptyString(body.plan);
|
|
169469
|
-
const
|
|
169487
|
+
const cuotaCreditos = creditsFromBody(body.creditos_cuota, body.cuota_tt);
|
|
169470
169488
|
const reset3 = asNonEmptyString(body.reset);
|
|
169471
169489
|
const url3 = asNonEmptyString(body.url) ?? THEUS_PRICING_URL;
|
|
169472
|
-
if (!plan || !
|
|
169490
|
+
if (!plan || !cuotaCreditos || !reset3) {
|
|
169473
169491
|
return `Llegaste al l\xEDmite de tu plan. ${pausePromise} Revisa tus opciones en ${url3} (anual = 2 meses gratis).`;
|
|
169474
169492
|
}
|
|
169475
|
-
const base2 = `Llegaste al l\xEDmite de tu plan ${plan} (${
|
|
169493
|
+
const base2 = `Llegaste al l\xEDmite de tu plan ${plan} (${cuotaCreditos} cr\xE9ditos) \xB7 se renueva ${reset3}. ${pausePromise}`;
|
|
169476
169494
|
const upgradePlan = asNonEmptyString(body.upgrade?.plan);
|
|
169477
|
-
const
|
|
169495
|
+
const upgradeCreditos = creditsFromBody(body.upgrade?.creditos, body.upgrade?.tt);
|
|
169478
169496
|
const upgradePrecio = asNonEmptyString(body.upgrade?.precio);
|
|
169479
|
-
if (upgradePlan &&
|
|
169480
|
-
return `${base2} \xBFNecesitas seguir hoy? ${upgradePlan} incluye ${
|
|
169497
|
+
if (upgradePlan && upgradeCreditos && upgradePrecio) {
|
|
169498
|
+
return `${base2} \xBFNecesitas seguir hoy? ${upgradePlan} incluye ${upgradeCreditos} cr\xE9ditos por ${upgradePrecio} \u2192 ${url3} (anual = 2 meses gratis)`;
|
|
169481
169499
|
}
|
|
169482
169500
|
return `${base2} Revisa tus opciones en ${url3} (anual = 2 meses gratis).`;
|
|
169483
169501
|
}
|
|
@@ -202571,7 +202589,7 @@ function getInstallationEnv() {
|
|
|
202571
202589
|
return;
|
|
202572
202590
|
}
|
|
202573
202591
|
function getTheusCodeVersion() {
|
|
202574
|
-
return { VERSION: "0.2.
|
|
202592
|
+
return { VERSION: "0.2.39", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION;
|
|
202575
202593
|
}
|
|
202576
202594
|
async function getInstalledVSCodeExtensionVersion(command) {
|
|
202577
202595
|
const { stdout } = await execFileNoThrow(command, ["--list-extensions", "--show-versions"], {
|
|
@@ -204089,7 +204107,7 @@ async function getMcpHeadersFromHelper(serverName, config2) {
|
|
|
204089
204107
|
if ("scope" in config2 && isMcpServerFromProjectOrLocalSettings(config2) && !getIsNonInteractiveSession()) {
|
|
204090
204108
|
const hasTrust = checkHasTrustDialogAccepted();
|
|
204091
204109
|
if (!hasTrust) {
|
|
204092
|
-
const error40 = new Error(`Security: headersHelper for MCP server '${serverName}' executed before workspace trust is confirmed. If you see this message, post in ${{ VERSION: "0.2.
|
|
204110
|
+
const error40 = new Error(`Security: headersHelper for MCP server '${serverName}' executed before workspace trust is confirmed. If you see this message, post in ${{ VERSION: "0.2.39", BUILD_TIME: "1970-01-01T00:00:00.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}.`);
|
|
204093
204111
|
logAntError("MCP headersHelper invoked before trust check", error40);
|
|
204094
204112
|
logEvent("tengu_mcp_headersHelper_missing_trust", {});
|
|
204095
204113
|
return null;
|
|
@@ -205299,7 +205317,7 @@ async function setupSdkMcpClients(sdkMcpConfigs, sendMcpMessage) {
|
|
|
205299
205317
|
const client2 = new Client({
|
|
205300
205318
|
name: "theus-code",
|
|
205301
205319
|
title: "Theus",
|
|
205302
|
-
version: { VERSION: "0.2.
|
|
205320
|
+
version: { VERSION: "0.2.39", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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",
|
|
205303
205321
|
description: "Theus's agentic coding tool",
|
|
205304
205322
|
websiteUrl: PRODUCT_URL
|
|
205305
205323
|
}, {
|
|
@@ -205653,7 +205671,7 @@ var init_client5 = __esm(() => {
|
|
|
205653
205671
|
const client2 = new Client({
|
|
205654
205672
|
name: "theus-code",
|
|
205655
205673
|
title: "Theus",
|
|
205656
|
-
version: { VERSION: "0.2.
|
|
205674
|
+
version: { VERSION: "0.2.39", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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",
|
|
205657
205675
|
description: "Theus's agentic coding tool",
|
|
205658
205676
|
websiteUrl: PRODUCT_URL
|
|
205659
205677
|
}, {
|
|
@@ -216231,7 +216249,7 @@ async function initializeBetaTracing(resource) {
|
|
|
216231
216249
|
});
|
|
216232
216250
|
logs.setGlobalLoggerProvider(loggerProvider);
|
|
216233
216251
|
setLoggerProvider(loggerProvider);
|
|
216234
|
-
const eventLogger = logs.getLogger("com.theus.theus_code.events", { VERSION: "0.2.
|
|
216252
|
+
const eventLogger = logs.getLogger("com.theus.theus_code.events", { VERSION: "0.2.39", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION);
|
|
216235
216253
|
setEventLogger(eventLogger);
|
|
216236
216254
|
process.on("beforeExit", async () => {
|
|
216237
216255
|
await loggerProvider?.forceFlush();
|
|
@@ -216271,7 +216289,7 @@ async function initializeTelemetry() {
|
|
|
216271
216289
|
const platform4 = getPlatform();
|
|
216272
216290
|
const baseAttributes = {
|
|
216273
216291
|
[ATTR_SERVICE_NAME]: "theus-code",
|
|
216274
|
-
[ATTR_SERVICE_VERSION]: { VERSION: "0.2.
|
|
216292
|
+
[ATTR_SERVICE_VERSION]: { VERSION: "0.2.39", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
|
|
216275
216293
|
};
|
|
216276
216294
|
if (platform4 === "wsl") {
|
|
216277
216295
|
const wslVersion = getWslVersion();
|
|
@@ -216316,7 +216334,7 @@ async function initializeTelemetry() {
|
|
|
216316
216334
|
} catch {}
|
|
216317
216335
|
};
|
|
216318
216336
|
registerCleanup(shutdownTelemetry2);
|
|
216319
|
-
return meterProvider2.getMeter("com.theus.theus_code", { VERSION: "0.2.
|
|
216337
|
+
return meterProvider2.getMeter("com.theus.theus_code", { VERSION: "0.2.39", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION);
|
|
216320
216338
|
}
|
|
216321
216339
|
const meterProvider = new MeterProvider({
|
|
216322
216340
|
resource,
|
|
@@ -216336,7 +216354,7 @@ async function initializeTelemetry() {
|
|
|
216336
216354
|
});
|
|
216337
216355
|
logs.setGlobalLoggerProvider(loggerProvider);
|
|
216338
216356
|
setLoggerProvider(loggerProvider);
|
|
216339
|
-
const eventLogger = logs.getLogger("com.theus.theus_code.events", { VERSION: "0.2.
|
|
216357
|
+
const eventLogger = logs.getLogger("com.theus.theus_code.events", { VERSION: "0.2.39", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION);
|
|
216340
216358
|
setEventLogger(eventLogger);
|
|
216341
216359
|
logForDebugging("[3P telemetry] Event logger set successfully");
|
|
216342
216360
|
process.on("beforeExit", async () => {
|
|
@@ -216398,7 +216416,7 @@ Current timeout: ${timeoutMs}ms
|
|
|
216398
216416
|
}
|
|
216399
216417
|
};
|
|
216400
216418
|
registerCleanup(shutdownTelemetry);
|
|
216401
|
-
return meterProvider.getMeter("com.theus.theus_code", { VERSION: "0.2.
|
|
216419
|
+
return meterProvider.getMeter("com.theus.theus_code", { VERSION: "0.2.39", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION);
|
|
216402
216420
|
}
|
|
216403
216421
|
async function flushTelemetry() {
|
|
216404
216422
|
const meterProvider = getMeterProvider();
|
|
@@ -216938,7 +216956,7 @@ async function installOrUpdateTheusPackage(channel2, specificVersion) {
|
|
|
216938
216956
|
return "install_failed";
|
|
216939
216957
|
}
|
|
216940
216958
|
const versionSpec = specificVersion ? specificVersion : channel2 === "stable" ? "stable" : "latest";
|
|
216941
|
-
const result = await execFileNoThrowWithCwd("npm", ["install", `${{ VERSION: "0.2.
|
|
216959
|
+
const result = await execFileNoThrowWithCwd("npm", ["install", `${{ VERSION: "0.2.39", BUILD_TIME: "1970-01-01T00:00:00.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 });
|
|
216942
216960
|
if (result.code !== 0) {
|
|
216943
216961
|
const error40 = new Error(`Failed to install Theus CLI package: ${result.stderr}`);
|
|
216944
216962
|
logError2(error40);
|
|
@@ -217084,9 +217102,9 @@ async function assertMinVersion() {
|
|
|
217084
217102
|
if (false) {}
|
|
217085
217103
|
try {
|
|
217086
217104
|
const versionConfig = await getDynamicConfig_BLOCKS_ON_INIT("tengu_version_config", { minVersion: "0.0.0" });
|
|
217087
|
-
if (versionConfig.minVersion && lt({ VERSION: "0.2.
|
|
217105
|
+
if (versionConfig.minVersion && lt({ VERSION: "0.2.39", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
|
|
217088
217106
|
console.error(`
|
|
217089
|
-
It looks like your version of Theus (${{ VERSION: "0.2.
|
|
217107
|
+
It looks like your version of Theus (${{ VERSION: "0.2.39", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.
|
|
217090
217108
|
A newer version (${versionConfig.minVersion} or higher) is required to continue.
|
|
217091
217109
|
|
|
217092
217110
|
To update, please run:
|
|
@@ -217227,7 +217245,7 @@ async function getInstallationPrefix() {
|
|
|
217227
217245
|
return prefixResult.stdout.trim();
|
|
217228
217246
|
}
|
|
217229
217247
|
function getGlobalInstallPackageManager() {
|
|
217230
|
-
if ({ VERSION: "0.2.
|
|
217248
|
+
if ({ VERSION: "0.2.39", BUILD_TIME: "1970-01-01T00:00:00.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") {
|
|
217231
217249
|
return "npm";
|
|
217232
217250
|
}
|
|
217233
217251
|
return env3.isRunningWithBun() ? "bun" : "npm";
|
|
@@ -217252,7 +217270,7 @@ async function checkGlobalInstallPermissions() {
|
|
|
217252
217270
|
}
|
|
217253
217271
|
async function getLatestVersion(channel2) {
|
|
217254
217272
|
const npmTag = channel2 === "stable" ? "stable" : "latest";
|
|
217255
|
-
const result = await execFileNoThrowWithCwd("npm", ["view", `${{ VERSION: "0.2.
|
|
217273
|
+
const result = await execFileNoThrowWithCwd("npm", ["view", `${{ VERSION: "0.2.39", BUILD_TIME: "1970-01-01T00:00:00.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() });
|
|
217256
217274
|
if (result.code !== 0) {
|
|
217257
217275
|
logForDebugging(`npm view failed with code ${result.code}`);
|
|
217258
217276
|
if (result.stderr) {
|
|
@@ -217268,7 +217286,7 @@ async function getLatestVersion(channel2) {
|
|
|
217268
217286
|
return result.stdout.trim();
|
|
217269
217287
|
}
|
|
217270
217288
|
async function getNpmDistTags() {
|
|
217271
|
-
const result = await execFileNoThrowWithCwd("npm", ["view", { VERSION: "0.2.
|
|
217289
|
+
const result = await execFileNoThrowWithCwd("npm", ["view", { VERSION: "0.2.39", BUILD_TIME: "1970-01-01T00:00:00.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() });
|
|
217272
217290
|
if (result.code !== 0) {
|
|
217273
217291
|
logForDebugging(`npm view dist-tags failed with code ${result.code}`);
|
|
217274
217292
|
return { latest: null, stable: null };
|
|
@@ -217308,7 +217326,7 @@ async function installGlobalPackage(specificVersion) {
|
|
|
217308
217326
|
logError2(new AutoUpdaterError("Another process is currently installing an update"));
|
|
217309
217327
|
logEvent("tengu_auto_updater_lock_contention", {
|
|
217310
217328
|
pid: process.pid,
|
|
217311
|
-
currentVersion: { VERSION: "0.2.
|
|
217329
|
+
currentVersion: { VERSION: "0.2.39", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
|
|
217312
217330
|
});
|
|
217313
217331
|
return "in_progress";
|
|
217314
217332
|
}
|
|
@@ -217317,7 +217335,7 @@ async function installGlobalPackage(specificVersion) {
|
|
|
217317
217335
|
if (!env3.isRunningWithBun() && env3.isNpmFromWindowsPath()) {
|
|
217318
217336
|
logError2(new Error("Windows NPM detected in WSL environment"));
|
|
217319
217337
|
logEvent("tengu_auto_updater_windows_npm_in_wsl", {
|
|
217320
|
-
currentVersion: { VERSION: "0.2.
|
|
217338
|
+
currentVersion: { VERSION: "0.2.39", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
|
|
217321
217339
|
});
|
|
217322
217340
|
console.error(`
|
|
217323
217341
|
Error: Windows NPM detected in WSL
|
|
@@ -217336,7 +217354,7 @@ To fix this issue:
|
|
|
217336
217354
|
if (!hasPermissions) {
|
|
217337
217355
|
return "no_permissions";
|
|
217338
217356
|
}
|
|
217339
|
-
const packageSpec = specificVersion ? `${{ VERSION: "0.2.
|
|
217357
|
+
const packageSpec = specificVersion ? `${{ VERSION: "0.2.39", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.PACKAGE_URL}@${specificVersion}` : { VERSION: "0.2.39", BUILD_TIME: "1970-01-01T00:00:00.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;
|
|
217340
217358
|
const packageManager = getGlobalInstallPackageManager();
|
|
217341
217359
|
const installResult = await execFileNoThrowWithCwd(packageManager, ["install", "-g", packageSpec], { cwd: homedir18() });
|
|
217342
217360
|
if (installResult.code !== 0) {
|
|
@@ -217664,8 +217682,8 @@ async function detectMultipleInstallations() {
|
|
|
217664
217682
|
installations.push({ type: "npm-local", path: localPath });
|
|
217665
217683
|
}
|
|
217666
217684
|
const packagesToCheck = ["@theus-ai/theus-code"];
|
|
217667
|
-
if ({ VERSION: "0.2.
|
|
217668
|
-
packagesToCheck.push({ VERSION: "0.2.
|
|
217685
|
+
if ({ VERSION: "0.2.39", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.PACKAGE_URL && { VERSION: "0.2.39", BUILD_TIME: "1970-01-01T00:00:00.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") {
|
|
217686
|
+
packagesToCheck.push({ VERSION: "0.2.39", BUILD_TIME: "1970-01-01T00:00:00.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);
|
|
217669
217687
|
}
|
|
217670
217688
|
const npmResult = await execFileNoThrow("npm", [
|
|
217671
217689
|
"-g",
|
|
@@ -217848,7 +217866,7 @@ function detectLinuxGlobPatternWarnings() {
|
|
|
217848
217866
|
}
|
|
217849
217867
|
async function getDoctorDiagnostic() {
|
|
217850
217868
|
const installationType = await getCurrentInstallationType();
|
|
217851
|
-
const version2 = { VERSION: "0.2.
|
|
217869
|
+
const version2 = { VERSION: "0.2.39", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION ? { VERSION: "0.2.39", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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";
|
|
217852
217870
|
const installationPath = await getInstallationPath();
|
|
217853
217871
|
const invokedBinary = getInvokedBinary();
|
|
217854
217872
|
const multipleInstallations = await detectMultipleInstallations();
|
|
@@ -217860,8 +217878,8 @@ async function getDoctorDiagnostic() {
|
|
|
217860
217878
|
for (const install of npmInstalls) {
|
|
217861
217879
|
if (install.type === "npm-global") {
|
|
217862
217880
|
let uninstallCmd = "npm -g uninstall @theus-ai/theus-code";
|
|
217863
|
-
if ({ VERSION: "0.2.
|
|
217864
|
-
uninstallCmd += ` && npm -g uninstall ${{ VERSION: "0.2.
|
|
217881
|
+
if ({ VERSION: "0.2.39", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.PACKAGE_URL && { VERSION: "0.2.39", BUILD_TIME: "1970-01-01T00:00:00.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") {
|
|
217882
|
+
uninstallCmd += ` && npm -g uninstall ${{ VERSION: "0.2.39", BUILD_TIME: "1970-01-01T00:00:00.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}`;
|
|
217865
217883
|
}
|
|
217866
217884
|
warnings.push({
|
|
217867
217885
|
issue: `Leftover npm global installation at ${install.path}`,
|
|
@@ -217973,7 +217991,7 @@ async function getLatestVersionFromArtifactory(tag2 = "latest") {
|
|
|
217973
217991
|
const startTime2 = Date.now();
|
|
217974
217992
|
const { stdout, code, stderr } = await execFileNoThrowWithCwd("npm", [
|
|
217975
217993
|
"view",
|
|
217976
|
-
`${{ VERSION: "0.2.
|
|
217994
|
+
`${{ VERSION: "0.2.39", BUILD_TIME: "1970-01-01T00:00:00.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}`,
|
|
217977
217995
|
"version",
|
|
217978
217996
|
"--prefer-online",
|
|
217979
217997
|
"--registry",
|
|
@@ -217997,7 +218015,7 @@ async function getLatestVersionFromArtifactory(tag2 = "latest") {
|
|
|
217997
218015
|
latency_ms: latencyMs,
|
|
217998
218016
|
source_npm: true
|
|
217999
218017
|
});
|
|
218000
|
-
logForDebugging(`npm view ${{ VERSION: "0.2.
|
|
218018
|
+
logForDebugging(`npm view ${{ VERSION: "0.2.39", BUILD_TIME: "1970-01-01T00:00:00.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}`);
|
|
218001
218019
|
const latestVersion = stdout.trim();
|
|
218002
218020
|
return latestVersion;
|
|
218003
218021
|
}
|
|
@@ -218053,7 +218071,7 @@ async function downloadVersionFromArtifactory(version2, stagingPath) {
|
|
|
218053
218071
|
const fs3 = getFsImplementation();
|
|
218054
218072
|
await fs3.rm(stagingPath, { recursive: true, force: true });
|
|
218055
218073
|
const platform4 = getPlatform2();
|
|
218056
|
-
const platformPackageName = `${{ VERSION: "0.2.
|
|
218074
|
+
const platformPackageName = `${{ VERSION: "0.2.39", BUILD_TIME: "1970-01-01T00:00:00.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}`;
|
|
218057
218075
|
logForDebugging(`Fetching integrity hash for ${platformPackageName}@${version2}`);
|
|
218058
218076
|
const {
|
|
218059
218077
|
stdout: integrityOutput,
|
|
@@ -218082,7 +218100,7 @@ async function downloadVersionFromArtifactory(version2, stagingPath) {
|
|
|
218082
218100
|
name: "theus-native-installer",
|
|
218083
218101
|
version: "0.0.1",
|
|
218084
218102
|
dependencies: {
|
|
218085
|
-
[{ VERSION: "0.2.
|
|
218103
|
+
[{ VERSION: "0.2.39", BUILD_TIME: "1970-01-01T00:00:00.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
|
|
218086
218104
|
}
|
|
218087
218105
|
};
|
|
218088
218106
|
const packageLock = {
|
|
@@ -218095,10 +218113,10 @@ async function downloadVersionFromArtifactory(version2, stagingPath) {
|
|
|
218095
218113
|
name: "theus-native-installer",
|
|
218096
218114
|
version: "0.0.1",
|
|
218097
218115
|
dependencies: {
|
|
218098
|
-
[{ VERSION: "0.2.
|
|
218116
|
+
[{ VERSION: "0.2.39", BUILD_TIME: "1970-01-01T00:00:00.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
|
|
218099
218117
|
}
|
|
218100
218118
|
},
|
|
218101
|
-
[`node_modules/${{ VERSION: "0.2.
|
|
218119
|
+
[`node_modules/${{ VERSION: "0.2.39", BUILD_TIME: "1970-01-01T00:00:00.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}`]: {
|
|
218102
218120
|
version: version2,
|
|
218103
218121
|
optionalDependencies: {
|
|
218104
218122
|
[platformPackageName]: version2
|
|
@@ -218120,7 +218138,7 @@ async function downloadVersionFromArtifactory(version2, stagingPath) {
|
|
|
218120
218138
|
if (result.code !== 0) {
|
|
218121
218139
|
throw new Error(`npm ci failed with code ${result.code}: ${result.stderr}`);
|
|
218122
218140
|
}
|
|
218123
|
-
logForDebugging(`Successfully downloaded and verified ${{ VERSION: "0.2.
|
|
218141
|
+
logForDebugging(`Successfully downloaded and verified ${{ VERSION: "0.2.39", BUILD_TIME: "1970-01-01T00:00:00.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}`);
|
|
218124
218142
|
}
|
|
218125
218143
|
function getStallTimeoutMs() {
|
|
218126
218144
|
return Number(process.env.THEUS_CODE_STALL_TIMEOUT_MS_FOR_TESTING) || DEFAULT_STALL_TIMEOUT_MS;
|
|
@@ -218783,8 +218801,8 @@ async function updateLatest(channelOrVersion, forceReinstall = false) {
|
|
|
218783
218801
|
const maxVersion = await getMaxVersion();
|
|
218784
218802
|
if (maxVersion && gt(version2, maxVersion)) {
|
|
218785
218803
|
logForDebugging(`Native installer: maxVersion ${maxVersion} is set, capping update from ${version2} to ${maxVersion}`);
|
|
218786
|
-
if (gte({ VERSION: "0.2.
|
|
218787
|
-
logForDebugging(`Native installer: current version ${{ VERSION: "0.2.
|
|
218804
|
+
if (gte({ VERSION: "0.2.39", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
|
|
218805
|
+
logForDebugging(`Native installer: current version ${{ VERSION: "0.2.39", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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`);
|
|
218788
218806
|
logEvent("tengu_native_update_skipped_max_version", {
|
|
218789
218807
|
latency_ms: Date.now() - startTime2,
|
|
218790
218808
|
max_version: maxVersion,
|
|
@@ -218795,7 +218813,7 @@ async function updateLatest(channelOrVersion, forceReinstall = false) {
|
|
|
218795
218813
|
version2 = maxVersion;
|
|
218796
218814
|
}
|
|
218797
218815
|
}
|
|
218798
|
-
if (!forceReinstall && version2 === { VERSION: "0.2.
|
|
218816
|
+
if (!forceReinstall && version2 === { VERSION: "0.2.39", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
|
|
218799
218817
|
logForDebugging(`Found ${version2} at ${executablePath}, skipping install`);
|
|
218800
218818
|
logEvent("tengu_native_update_complete", {
|
|
218801
218819
|
latency_ms: Date.now() - startTime2,
|
|
@@ -219545,8 +219563,8 @@ async function cleanupNpmInstallations() {
|
|
|
219545
219563
|
} else if (codePackageResult.error) {
|
|
219546
219564
|
errors4.push(codePackageResult.error);
|
|
219547
219565
|
}
|
|
219548
|
-
if ({ VERSION: "0.2.
|
|
219549
|
-
const macroPackageResult = await attemptNpmUninstall({ VERSION: "0.2.
|
|
219566
|
+
if ({ VERSION: "0.2.39", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.PACKAGE_URL && { VERSION: "0.2.39", BUILD_TIME: "1970-01-01T00:00:00.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") {
|
|
219567
|
+
const macroPackageResult = await attemptNpmUninstall({ VERSION: "0.2.39", BUILD_TIME: "1970-01-01T00:00:00.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);
|
|
219550
219568
|
if (macroPackageResult.success) {
|
|
219551
219569
|
removed++;
|
|
219552
219570
|
if (macroPackageResult.warning) {
|
|
@@ -304823,9 +304841,9 @@ function getTheusEnvMetadata() {
|
|
|
304823
304841
|
};
|
|
304824
304842
|
}
|
|
304825
304843
|
function getBuildAgeMinutes() {
|
|
304826
|
-
if (!{ VERSION: "0.2.
|
|
304844
|
+
if (!{ VERSION: "0.2.39", BUILD_TIME: "1970-01-01T00:00:00.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)
|
|
304827
304845
|
return;
|
|
304828
|
-
const buildTime = new Date({ VERSION: "0.2.
|
|
304846
|
+
const buildTime = new Date({ VERSION: "0.2.39", BUILD_TIME: "1970-01-01T00:00:00.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();
|
|
304829
304847
|
if (isNaN(buildTime))
|
|
304830
304848
|
return;
|
|
304831
304849
|
return Math.floor((Date.now() - buildTime) / 60000);
|
|
@@ -321473,7 +321491,7 @@ function getAssistantMessageFromError(error40, model, options2) {
|
|
|
321473
321491
|
if (process.env.USER_TYPE === "ant") {
|
|
321474
321492
|
const baseMessage = `API Error: 400 ${error40.message}
|
|
321475
321493
|
|
|
321476
|
-
Run /share and post the JSON file to ${{ VERSION: "0.2.
|
|
321494
|
+
Run /share and post the JSON file to ${{ VERSION: "0.2.39", BUILD_TIME: "1970-01-01T00:00:00.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}.`;
|
|
321477
321495
|
const rewindInstruction = getIsNonInteractiveSession() ? "" : " Then, use /rewind to recover the conversation.";
|
|
321478
321496
|
return createAssistantAPIErrorMessage({
|
|
321479
321497
|
content: baseMessage + rewindInstruction,
|
|
@@ -321509,7 +321527,7 @@ Run /share and post the JSON file to ${{ VERSION: "0.2.38", BUILD_TIME: "1970-01
|
|
|
321509
321527
|
if (process.env.USER_TYPE === "ant" && !process.env.THEUS_MODEL && error40 instanceof Error && error40.message.toLowerCase().includes("invalid model name")) {
|
|
321510
321528
|
const orgId = getOauthAccountInfo()?.organizationUuid;
|
|
321511
321529
|
const baseMsg = `[THEUS-INTERNAL] Your org isn't gated into the \`${model}\` model. Either run \`theus\` with \`THEUS_MODEL=${getDefaultMainLoopModelSetting()}\``;
|
|
321512
|
-
const msg = orgId ? `${baseMsg} or share your orgId (${orgId}) in ${{ VERSION: "0.2.
|
|
321530
|
+
const msg = orgId ? `${baseMsg} or share your orgId (${orgId}) in ${{ VERSION: "0.2.39", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.FEEDBACK_CHANNEL} for help getting access.` : `${baseMsg} or reach out in ${{ VERSION: "0.2.39", BUILD_TIME: "1970-01-01T00:00:00.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.`;
|
|
321513
321531
|
return createAssistantAPIErrorMessage({
|
|
321514
321532
|
content: msg,
|
|
321515
321533
|
error: "invalid_request"
|
|
@@ -331614,7 +331632,7 @@ function buildPrimarySection() {
|
|
|
331614
331632
|
});
|
|
331615
331633
|
return [{
|
|
331616
331634
|
label: "Version",
|
|
331617
|
-
value: { VERSION: "0.2.
|
|
331635
|
+
value: { VERSION: "0.2.39", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
|
|
331618
331636
|
}, {
|
|
331619
331637
|
label: "Session name",
|
|
331620
331638
|
value: nameValue
|
|
@@ -335430,7 +335448,7 @@ function Config({
|
|
|
335430
335448
|
}
|
|
335431
335449
|
})
|
|
335432
335450
|
}) : showSubmenu === "ChannelDowngrade" ? /* @__PURE__ */ jsx_runtime189.jsx(ChannelDowngradeDialog, {
|
|
335433
|
-
currentVersion: { VERSION: "0.2.
|
|
335451
|
+
currentVersion: { VERSION: "0.2.39", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
|
|
335434
335452
|
onChoice: (choice) => {
|
|
335435
335453
|
setShowSubmenu(null);
|
|
335436
335454
|
setTabsHidden(false);
|
|
@@ -335442,7 +335460,7 @@ function Config({
|
|
|
335442
335460
|
autoUpdatesChannel: "stable"
|
|
335443
335461
|
};
|
|
335444
335462
|
if (choice === "stay") {
|
|
335445
|
-
newSettings.minimumVersion = { VERSION: "0.2.
|
|
335463
|
+
newSettings.minimumVersion = { VERSION: "0.2.39", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION;
|
|
335446
335464
|
}
|
|
335447
335465
|
updateSettingsForSource("userSettings", newSettings);
|
|
335448
335466
|
setSettingsData((prev_27) => ({
|
|
@@ -343476,7 +343494,7 @@ function HelpV2(t0) {
|
|
|
343476
343494
|
let t6;
|
|
343477
343495
|
if ($2[31] !== tabs) {
|
|
343478
343496
|
t6 = /* @__PURE__ */ jsx_runtime216.jsx(Tabs, {
|
|
343479
|
-
title: `Theus v${{ VERSION: "0.2.
|
|
343497
|
+
title: `Theus v${{ VERSION: "0.2.39", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION}`,
|
|
343480
343498
|
color: "professionalBlue",
|
|
343481
343499
|
defaultTab: "general",
|
|
343482
343500
|
children: tabs
|
|
@@ -361587,7 +361605,7 @@ function Onboarding({
|
|
|
361587
361605
|
flexDirection: "column",
|
|
361588
361606
|
children: [
|
|
361589
361607
|
/* @__PURE__ */ jsx_runtime249.jsx(TheusBanner, {
|
|
361590
|
-
version: { VERSION: "0.2.
|
|
361608
|
+
version: { VERSION: "0.2.39", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
|
|
361591
361609
|
}),
|
|
361592
361610
|
/* @__PURE__ */ jsx_runtime249.jsxs(ThemedBox_default, {
|
|
361593
361611
|
flexDirection: "column",
|
|
@@ -361932,9 +361950,9 @@ function getAllReleaseNotes(changelogContent = getStoredChangelogFromMemory()) {
|
|
|
361932
361950
|
return [];
|
|
361933
361951
|
}
|
|
361934
361952
|
}
|
|
361935
|
-
async function checkForReleaseNotes(lastSeenVersion, currentVersion = { VERSION: "0.2.
|
|
361953
|
+
async function checkForReleaseNotes(lastSeenVersion, currentVersion = { VERSION: "0.2.39", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION) {
|
|
361936
361954
|
if (process.env.USER_TYPE === "ant") {
|
|
361937
|
-
const changelog = { VERSION: "0.2.
|
|
361955
|
+
const changelog = { VERSION: "0.2.39", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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;
|
|
361938
361956
|
if (changelog) {
|
|
361939
361957
|
const commits = changelog.trim().split(`
|
|
361940
361958
|
`).filter(Boolean);
|
|
@@ -366136,7 +366154,7 @@ var init_Messages = __esm(() => {
|
|
|
366136
366154
|
let t1;
|
|
366137
366155
|
if ($2[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
366138
366156
|
t1 = /* @__PURE__ */ jsx_runtime261.jsx(TheusSessionHeader, {
|
|
366139
|
-
version: { VERSION: "0.2.
|
|
366157
|
+
version: { VERSION: "0.2.39", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
|
|
366140
366158
|
});
|
|
366141
366159
|
$2[0] = t1;
|
|
366142
366160
|
} else {
|
|
@@ -381054,7 +381072,10 @@ async function gatewayJson(path19) {
|
|
|
381054
381072
|
return null;
|
|
381055
381073
|
}
|
|
381056
381074
|
}
|
|
381057
|
-
function
|
|
381075
|
+
function creditsFromTT(tt) {
|
|
381076
|
+
return Math.round(tt / 1000);
|
|
381077
|
+
}
|
|
381078
|
+
function fmtCr(n2) {
|
|
381058
381079
|
return Math.round(n2).toLocaleString("es-PE");
|
|
381059
381080
|
}
|
|
381060
381081
|
function bar(pct, width = 24) {
|
|
@@ -381090,16 +381111,19 @@ var call38 = async () => {
|
|
|
381090
381111
|
};
|
|
381091
381112
|
}
|
|
381092
381113
|
const plan = overview.plan;
|
|
381093
|
-
const
|
|
381114
|
+
const limitTT = Number(plan.tokens_included || 0);
|
|
381094
381115
|
const usedTT = Number(usage?.tokens_weighted || 0);
|
|
381095
|
-
const pct =
|
|
381096
|
-
const
|
|
381116
|
+
const pct = limitTT > 0 ? Math.min(100, usedTT / limitTT * 100) : 0;
|
|
381117
|
+
const limitCr = typeof plan.creditos_incluidos === "number" ? plan.creditos_incluidos : creditsFromTT(limitTT);
|
|
381118
|
+
const usedCr = typeof plan.creditos_usados === "number" ? plan.creditos_usados : creditsFromTT(usedTT);
|
|
381119
|
+
const remainingCr = typeof plan.creditos_restantes === "number" ? plan.creditos_restantes : Math.max(0, limitCr - usedCr);
|
|
381097
381120
|
const lines = [];
|
|
381098
381121
|
lines.push(`\uD83D\uDCCA Tu consumo \u2014 plan ${plan.name || plan.id || "Theus"}`);
|
|
381099
381122
|
lines.push("");
|
|
381100
381123
|
lines.push(` ${bar(pct)} ${pct.toFixed(0)}%`);
|
|
381101
|
-
lines.push(` ${
|
|
381124
|
+
lines.push(` ${fmtCr(usedCr)} / ${fmtCr(limitCr)} cr\xE9ditos usados \xB7 quedan ${fmtCr(remainingCr)} cr\xE9ditos`);
|
|
381102
381125
|
lines.push(` Renueva el ${fmtDate2(Number(plan.period_end || 0))} (al llegar al tope se pausa, sin cobros sorpresa).`);
|
|
381126
|
+
lines.push(" (1 cr\xE9dito = 1.000 TT \u2014 puedes verificarlo t\xFA mismo)");
|
|
381103
381127
|
const byModel = new Map;
|
|
381104
381128
|
for (const e of usage?.events || []) {
|
|
381105
381129
|
const m = e.model || "desconocido";
|
|
@@ -381111,7 +381135,7 @@ var call38 = async () => {
|
|
|
381111
381135
|
lines.push(" Por modelo este ciclo:");
|
|
381112
381136
|
for (const [model, tt] of rows.slice(0, 12)) {
|
|
381113
381137
|
const share = usedTT > 0 ? tt / usedTT * 100 : 0;
|
|
381114
|
-
lines.push(` \u2022 ${model.padEnd(22).slice(0, 22)} ${
|
|
381138
|
+
lines.push(` \u2022 ${model.padEnd(22).slice(0, 22)} ${fmtCr(creditsFromTT(tt)).padStart(8)} cr (${share.toFixed(0)}%)`);
|
|
381115
381139
|
}
|
|
381116
381140
|
if (rows.length > 12)
|
|
381117
381141
|
lines.push(` \u2026 y ${rows.length - 12} modelos m\xE1s`);
|
|
@@ -381119,7 +381143,7 @@ var call38 = async () => {
|
|
|
381119
381143
|
lines.push(" A\xFAn no has consumido nada este ciclo.");
|
|
381120
381144
|
}
|
|
381121
381145
|
lines.push("");
|
|
381122
|
-
lines.push(" TITAN elige el mejor modelo por tarea; cada modelo consume de tu cuota
|
|
381146
|
+
lines.push(" TITAN elige el mejor modelo por tarea; cada modelo consume de tu cuota");
|
|
381123
381147
|
lines.push(" seg\xFAn su costo. Usa /modelos para ver el cat\xE1logo completo.");
|
|
381124
381148
|
return { type: "text", value: lines.join(`
|
|
381125
381149
|
`) };
|
|
@@ -381130,7 +381154,7 @@ var init_usage2 = __esm(() => {
|
|
|
381130
381154
|
uso = {
|
|
381131
381155
|
type: "local",
|
|
381132
381156
|
name: "uso",
|
|
381133
|
-
description: "Tu consumo de la suscripci\xF3n:
|
|
381157
|
+
description: "Tu consumo de la suscripci\xF3n: cr\xE9ditos del ciclo, por modelo y renovaci\xF3n",
|
|
381134
381158
|
availability: ["theus-ai"],
|
|
381135
381159
|
isEnabled: () => true,
|
|
381136
381160
|
supportsNonInteractive: true,
|
|
@@ -394602,7 +394626,7 @@ async function captureMemoryDiagnostics(trigger, dumpNumber = 0) {
|
|
|
394602
394626
|
smapsRollup,
|
|
394603
394627
|
platform: process.platform,
|
|
394604
394628
|
nodeVersion: process.version,
|
|
394605
|
-
ccVersion: { VERSION: "0.2.
|
|
394629
|
+
ccVersion: { VERSION: "0.2.39", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
|
|
394606
394630
|
};
|
|
394607
394631
|
}
|
|
394608
394632
|
async function performHeapDump(trigger = "manual", dumpNumber = 0) {
|
|
@@ -395188,7 +395212,7 @@ var init_bridge_kick = __esm(() => {
|
|
|
395188
395212
|
var call57 = async () => {
|
|
395189
395213
|
return {
|
|
395190
395214
|
type: "text",
|
|
395191
|
-
value: { VERSION: "0.2.
|
|
395215
|
+
value: { VERSION: "0.2.39", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.BUILD_TIME ? `${{ VERSION: "0.2.39", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION} (built ${{ VERSION: "0.2.39", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.BUILD_TIME})` : { VERSION: "0.2.39", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
|
|
395192
395216
|
};
|
|
395193
395217
|
}, version2, version_default;
|
|
395194
395218
|
var init_version = __esm(() => {
|
|
@@ -399630,13 +399654,13 @@ async function updateReleaseBundle() {
|
|
|
399630
399654
|
await gracefulShutdown(1);
|
|
399631
399655
|
return;
|
|
399632
399656
|
}
|
|
399633
|
-
if (gte({ VERSION: "0.2.
|
|
399634
|
-
writeToStdout(source_default.green(`Theus is up to date (${{ VERSION: "0.2.
|
|
399657
|
+
if (gte({ VERSION: "0.2.39", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
|
|
399658
|
+
writeToStdout(source_default.green(`Theus is up to date (${{ VERSION: "0.2.39", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION})`) + `
|
|
399635
399659
|
`);
|
|
399636
399660
|
await gracefulShutdown(0);
|
|
399637
399661
|
return;
|
|
399638
399662
|
}
|
|
399639
|
-
writeToStdout(`New version available: ${latest} (current: ${{ VERSION: "0.2.
|
|
399663
|
+
writeToStdout(`New version available: ${latest} (current: ${{ VERSION: "0.2.39", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION})
|
|
399640
399664
|
`);
|
|
399641
399665
|
writeToStdout(`Installing update from theus.pe/dl...
|
|
399642
399666
|
`);
|
|
@@ -399670,7 +399694,7 @@ async function updateReleaseBundle() {
|
|
|
399670
399694
|
return;
|
|
399671
399695
|
}
|
|
399672
399696
|
cpSync(staged, bundleDir, { recursive: true, force: true });
|
|
399673
|
-
writeToStdout(source_default.green(`Successfully updated from ${{ VERSION: "0.2.
|
|
399697
|
+
writeToStdout(source_default.green(`Successfully updated from ${{ VERSION: "0.2.39", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION} to version ${latest}`) + `
|
|
399674
399698
|
`);
|
|
399675
399699
|
await regenerateCompletionCache();
|
|
399676
399700
|
} finally {
|
|
@@ -399683,7 +399707,7 @@ async function updateReleaseBundle() {
|
|
|
399683
399707
|
async function update() {
|
|
399684
399708
|
logEvent("tengu_update_check", {});
|
|
399685
399709
|
await updateNaupa();
|
|
399686
|
-
writeToStdout(`Current version: ${{ VERSION: "0.2.
|
|
399710
|
+
writeToStdout(`Current version: ${{ VERSION: "0.2.39", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION}
|
|
399687
399711
|
`);
|
|
399688
399712
|
const channel2 = getInitialSettings()?.autoUpdatesChannel ?? "latest";
|
|
399689
399713
|
writeToStdout(`Checking for updates to ${channel2} version...
|
|
@@ -399762,8 +399786,8 @@ async function update() {
|
|
|
399762
399786
|
writeToStdout(`Theus is managed by Homebrew.
|
|
399763
399787
|
`);
|
|
399764
399788
|
const latest = await getLatestVersion(channel2);
|
|
399765
|
-
if (latest && !gte({ VERSION: "0.2.
|
|
399766
|
-
writeToStdout(`Update available: ${{ VERSION: "0.2.
|
|
399789
|
+
if (latest && !gte({ VERSION: "0.2.39", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
|
|
399790
|
+
writeToStdout(`Update available: ${{ VERSION: "0.2.39", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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}
|
|
399767
399791
|
`);
|
|
399768
399792
|
writeToStdout(`
|
|
399769
399793
|
`);
|
|
@@ -399779,8 +399803,8 @@ async function update() {
|
|
|
399779
399803
|
writeToStdout(`Theus is managed by winget.
|
|
399780
399804
|
`);
|
|
399781
399805
|
const latest = await getLatestVersion(channel2);
|
|
399782
|
-
if (latest && !gte({ VERSION: "0.2.
|
|
399783
|
-
writeToStdout(`Update available: ${{ VERSION: "0.2.
|
|
399806
|
+
if (latest && !gte({ VERSION: "0.2.39", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
|
|
399807
|
+
writeToStdout(`Update available: ${{ VERSION: "0.2.39", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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}
|
|
399784
399808
|
`);
|
|
399785
399809
|
writeToStdout(`
|
|
399786
399810
|
`);
|
|
@@ -399796,8 +399820,8 @@ async function update() {
|
|
|
399796
399820
|
writeToStdout(`Theus is managed by apk.
|
|
399797
399821
|
`);
|
|
399798
399822
|
const latest = await getLatestVersion(channel2);
|
|
399799
|
-
if (latest && !gte({ VERSION: "0.2.
|
|
399800
|
-
writeToStdout(`Update available: ${{ VERSION: "0.2.
|
|
399823
|
+
if (latest && !gte({ VERSION: "0.2.39", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
|
|
399824
|
+
writeToStdout(`Update available: ${{ VERSION: "0.2.39", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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}
|
|
399801
399825
|
`);
|
|
399802
399826
|
writeToStdout(`
|
|
399803
399827
|
`);
|
|
@@ -399862,11 +399886,11 @@ async function update() {
|
|
|
399862
399886
|
`);
|
|
399863
399887
|
await gracefulShutdown(1);
|
|
399864
399888
|
}
|
|
399865
|
-
if (result.latestVersion === { VERSION: "0.2.
|
|
399866
|
-
writeToStdout(source_default.green(`Theus is up to date (${{ VERSION: "0.2.
|
|
399889
|
+
if (result.latestVersion === { VERSION: "0.2.39", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION) {
|
|
399890
|
+
writeToStdout(source_default.green(`Theus is up to date (${{ VERSION: "0.2.39", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION})`) + `
|
|
399867
399891
|
`);
|
|
399868
399892
|
} else {
|
|
399869
|
-
writeToStdout(source_default.green(`Successfully updated from ${{ VERSION: "0.2.
|
|
399893
|
+
writeToStdout(source_default.green(`Successfully updated from ${{ VERSION: "0.2.39", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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}`) + `
|
|
399870
399894
|
`);
|
|
399871
399895
|
await regenerateCompletionCache();
|
|
399872
399896
|
}
|
|
@@ -399885,9 +399909,9 @@ async function update() {
|
|
|
399885
399909
|
await removeInstalledSymlink();
|
|
399886
399910
|
}
|
|
399887
399911
|
logForDebugging("update: Checking npm registry for latest version");
|
|
399888
|
-
logForDebugging(`update: Package URL: ${{ VERSION: "0.2.
|
|
399912
|
+
logForDebugging(`update: Package URL: ${{ VERSION: "0.2.39", BUILD_TIME: "1970-01-01T00:00:00.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}`);
|
|
399889
399913
|
const npmTag = channel2 === "stable" ? "stable" : "latest";
|
|
399890
|
-
const npmCommand = `npm view ${{ VERSION: "0.2.
|
|
399914
|
+
const npmCommand = `npm view ${{ VERSION: "0.2.39", BUILD_TIME: "1970-01-01T00:00:00.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`;
|
|
399891
399915
|
logForDebugging(`update: Running: ${npmCommand}`);
|
|
399892
399916
|
const latestVersion = await getLatestVersion(channel2);
|
|
399893
399917
|
logForDebugging(`update: Latest version from npm: ${latestVersion || "FAILED"}`);
|
|
@@ -399907,7 +399931,7 @@ async function update() {
|
|
|
399907
399931
|
`);
|
|
399908
399932
|
process.stderr.write(` \u2022 Corporate proxy/firewall blocking npm
|
|
399909
399933
|
`);
|
|
399910
|
-
if ({ VERSION: "0.2.
|
|
399934
|
+
if ({ VERSION: "0.2.39", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.PACKAGE_URL && !{ VERSION: "0.2.39", BUILD_TIME: "1970-01-01T00:00:00.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")) {
|
|
399911
399935
|
process.stderr.write(` \u2022 Internal/development build not published to npm
|
|
399912
399936
|
`);
|
|
399913
399937
|
}
|
|
@@ -399919,19 +399943,19 @@ async function update() {
|
|
|
399919
399943
|
`);
|
|
399920
399944
|
process.stderr.write(` \u2022 Run with --debug flag for more details
|
|
399921
399945
|
`);
|
|
399922
|
-
const packageName = { VERSION: "0.2.
|
|
399946
|
+
const packageName = { VERSION: "0.2.39", BUILD_TIME: "1970-01-01T00:00:00.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");
|
|
399923
399947
|
process.stderr.write(` \u2022 Manually check: npm view ${packageName} version
|
|
399924
399948
|
`);
|
|
399925
399949
|
process.stderr.write(` \u2022 Check if you need to login: npm whoami
|
|
399926
399950
|
`);
|
|
399927
399951
|
await gracefulShutdown(1);
|
|
399928
399952
|
}
|
|
399929
|
-
if (gte({ VERSION: "0.2.
|
|
399930
|
-
writeToStdout(source_default.green(`Theus is up to date (${{ VERSION: "0.2.
|
|
399953
|
+
if (gte({ VERSION: "0.2.39", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
|
|
399954
|
+
writeToStdout(source_default.green(`Theus is up to date (${{ VERSION: "0.2.39", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION})`) + `
|
|
399931
399955
|
`);
|
|
399932
399956
|
await gracefulShutdown(0);
|
|
399933
399957
|
}
|
|
399934
|
-
writeToStdout(`New version available: ${latestVersion} (current: ${{ VERSION: "0.2.
|
|
399958
|
+
writeToStdout(`New version available: ${latestVersion} (current: ${{ VERSION: "0.2.39", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION})
|
|
399935
399959
|
`);
|
|
399936
399960
|
writeToStdout(`Installing update...
|
|
399937
399961
|
`);
|
|
@@ -399976,7 +400000,7 @@ async function update() {
|
|
|
399976
400000
|
logForDebugging(`update: Installation status: ${status2}`);
|
|
399977
400001
|
switch (status2) {
|
|
399978
400002
|
case "success":
|
|
399979
|
-
writeToStdout(source_default.green(`Successfully updated from ${{ VERSION: "0.2.
|
|
400003
|
+
writeToStdout(source_default.green(`Successfully updated from ${{ VERSION: "0.2.39", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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}`) + `
|
|
399980
400004
|
`);
|
|
399981
400005
|
await regenerateCompletionCache();
|
|
399982
400006
|
break;
|
|
@@ -399986,7 +400010,7 @@ async function update() {
|
|
|
399986
400010
|
if (useLocalUpdate) {
|
|
399987
400011
|
process.stderr.write(`Try manually updating with:
|
|
399988
400012
|
`);
|
|
399989
|
-
process.stderr.write(` cd ~/.theus/local && npm update ${{ VERSION: "0.2.
|
|
400013
|
+
process.stderr.write(` cd ~/.theus/local && npm update ${{ VERSION: "0.2.39", BUILD_TIME: "1970-01-01T00:00:00.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}
|
|
399990
400014
|
`);
|
|
399991
400015
|
} else {
|
|
399992
400016
|
process.stderr.write(`Try running with sudo or fix npm permissions
|
|
@@ -400002,7 +400026,7 @@ async function update() {
|
|
|
400002
400026
|
if (useLocalUpdate) {
|
|
400003
400027
|
process.stderr.write(`Try manually updating with:
|
|
400004
400028
|
`);
|
|
400005
|
-
process.stderr.write(` cd ~/.theus/local && npm update ${{ VERSION: "0.2.
|
|
400029
|
+
process.stderr.write(` cd ~/.theus/local && npm update ${{ VERSION: "0.2.39", BUILD_TIME: "1970-01-01T00:00:00.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}
|
|
400006
400030
|
`);
|
|
400007
400031
|
} else {
|
|
400008
400032
|
process.stderr.write(`Or consider using native installation with: theus install
|
|
@@ -409079,7 +409103,7 @@ var init_sessionStorage = __esm(() => {
|
|
|
409079
409103
|
init_settings2();
|
|
409080
409104
|
init_slowOperations();
|
|
409081
409105
|
init_uuid();
|
|
409082
|
-
VERSION4 = { VERSION: "0.2.
|
|
409106
|
+
VERSION4 = { VERSION: "0.2.39", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION;
|
|
409083
409107
|
MAX_TOMBSTONE_REWRITE_BYTES = 50 * 1024 * 1024;
|
|
409084
409108
|
SKIP_FIRST_PROMPT_PATTERN = /^(?:\s*<[a-z][\w-]*[\s>]|\[Request interrupted by user[^\]]*\])/;
|
|
409085
409109
|
EPHEMERAL_PROGRESS_TYPES = new Set([
|
|
@@ -410284,7 +410308,7 @@ var init_filesystem = __esm(() => {
|
|
|
410284
410308
|
});
|
|
410285
410309
|
getBundledSkillsRoot = memoize_default(function getBundledSkillsRoot2() {
|
|
410286
410310
|
const nonce = randomBytes21(16).toString("hex");
|
|
410287
|
-
return join149(getTheusTempDir(), "bundled-skills", { VERSION: "0.2.
|
|
410311
|
+
return join149(getTheusTempDir(), "bundled-skills", { VERSION: "0.2.39", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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);
|
|
410288
410312
|
});
|
|
410289
410313
|
getResolvedWorkingDirPaths = memoize_default(getPathsForPermissionCheck);
|
|
410290
410314
|
});
|
|
@@ -415463,7 +415487,7 @@ function getSimpleDoingTasksSection() {
|
|
|
415463
415487
|
];
|
|
415464
415488
|
const userHelpSubitems = [
|
|
415465
415489
|
`/help: Get help with using Theus`,
|
|
415466
|
-
`To give feedback, users should ${{ VERSION: "0.2.
|
|
415490
|
+
`To give feedback, users should ${{ VERSION: "0.2.39", BUILD_TIME: "1970-01-01T00:00:00.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}`
|
|
415467
415491
|
];
|
|
415468
415492
|
const items = [
|
|
415469
415493
|
`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.`,
|
|
@@ -416363,7 +416387,7 @@ function computeFingerprint(messageText, version3) {
|
|
|
416363
416387
|
}
|
|
416364
416388
|
function computeFingerprintFromMessages(messages) {
|
|
416365
416389
|
const firstMessageText = extractFirstMessageText(messages);
|
|
416366
|
-
return computeFingerprint(firstMessageText, { VERSION: "0.2.
|
|
416390
|
+
return computeFingerprint(firstMessageText, { VERSION: "0.2.39", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION);
|
|
416367
416391
|
}
|
|
416368
416392
|
var FINGERPRINT_SALT = "59cf53e54c78";
|
|
416369
416393
|
var init_fingerprint = () => {};
|
|
@@ -418923,7 +418947,7 @@ async function sideQuery(opts) {
|
|
|
418923
418947
|
betas.push(STRUCTURED_OUTPUTS_BETA_HEADER);
|
|
418924
418948
|
}
|
|
418925
418949
|
const messageText = extractFirstUserMessageText(messages);
|
|
418926
|
-
const fingerprint = computeFingerprint(messageText, { VERSION: "0.2.
|
|
418950
|
+
const fingerprint = computeFingerprint(messageText, { VERSION: "0.2.39", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION);
|
|
418927
418951
|
const attributionHeader = getAttributionHeader(fingerprint);
|
|
418928
418952
|
const systemBlocks = [
|
|
418929
418953
|
attributionHeader ? { type: "text", text: attributionHeader } : null,
|
|
@@ -420226,7 +420250,7 @@ async function handleMemories(state) {
|
|
|
420226
420250
|
async function runProjectContextMcpServer() {
|
|
420227
420251
|
const projectRoot = process.env.THEUS_PROJECT_ROOT || process.cwd();
|
|
420228
420252
|
const state = new ProjectContextState(projectRoot);
|
|
420229
|
-
const server2 = new Server({ name: SERVER_NAME, version: { VERSION: "0.2.
|
|
420253
|
+
const server2 = new Server({ name: SERVER_NAME, version: { VERSION: "0.2.39", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION }, { capabilities: { tools: {} } });
|
|
420230
420254
|
server2.setRequestHandler(ListToolsRequestSchema, async () => ({
|
|
420231
420255
|
tools: TOOL_DEFINITIONS.map((t) => ({
|
|
420232
420256
|
name: t.name,
|
|
@@ -422206,7 +422230,7 @@ function createBridgeLogger(options2) {
|
|
|
422206
422230
|
connectUrl = buildBridgeConnectUrl(environmentId, cachedIngressUrl);
|
|
422207
422231
|
regenerateQr(connectUrl);
|
|
422208
422232
|
if (verbose) {
|
|
422209
|
-
write(source_default.dim(`Remote Control`) + ` v${{ VERSION: "0.2.
|
|
422233
|
+
write(source_default.dim(`Remote Control`) + ` v${{ VERSION: "0.2.39", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION}
|
|
422210
422234
|
`);
|
|
422211
422235
|
}
|
|
422212
422236
|
if (verbose) {
|
|
@@ -423179,7 +423203,7 @@ function appendToLog(path19, message) {
|
|
|
423179
423203
|
cwd: getFsImplementation().cwd(),
|
|
423180
423204
|
userType: process.env.USER_TYPE,
|
|
423181
423205
|
sessionId: getSessionId(),
|
|
423182
|
-
version: { VERSION: "0.2.
|
|
423206
|
+
version: { VERSION: "0.2.39", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
|
|
423183
423207
|
};
|
|
423184
423208
|
getLogWriter(path19).write(messageWithTimestamp);
|
|
423185
423209
|
}
|
|
@@ -424449,7 +424473,7 @@ Spawn mode for this project:
|
|
|
424449
424473
|
const api2 = createBridgeApiClient({
|
|
424450
424474
|
baseUrl,
|
|
424451
424475
|
getAccessToken: getBridgeAccessToken2,
|
|
424452
|
-
runnerVersion: { VERSION: "0.2.
|
|
424476
|
+
runnerVersion: { VERSION: "0.2.39", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
|
|
424453
424477
|
onDebug: logForDebugging,
|
|
424454
424478
|
onAuth401: handleOAuth401Error2,
|
|
424455
424479
|
getTrustedDeviceToken
|
|
@@ -424687,7 +424711,7 @@ async function runBridgeHeadless(opts, signal) {
|
|
|
424687
424711
|
const api2 = createBridgeApiClient({
|
|
424688
424712
|
baseUrl,
|
|
424689
424713
|
getAccessToken: opts.getAccessToken,
|
|
424690
|
-
runnerVersion: { VERSION: "0.2.
|
|
424714
|
+
runnerVersion: { VERSION: "0.2.39", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
|
|
424691
424715
|
onDebug: log2,
|
|
424692
424716
|
onAuth401: opts.onAuth401,
|
|
424693
424717
|
getTrustedDeviceToken
|
|
@@ -428751,7 +428775,7 @@ function buildSystemInitMessage(inputs) {
|
|
|
428751
428775
|
slash_commands: inputs.commands.filter((c5) => c5.userInvocable !== false).map((c5) => c5.name),
|
|
428752
428776
|
apiKeySource: getTheusApiKeyWithSource().source,
|
|
428753
428777
|
betas: getSdkBetas(),
|
|
428754
|
-
theus_code_version: { VERSION: "0.2.
|
|
428778
|
+
theus_code_version: { VERSION: "0.2.39", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
|
|
428755
428779
|
output_style: outputStyle2,
|
|
428756
428780
|
agents: inputs.agents.map((agent) => agent.agentType),
|
|
428757
428781
|
skills: inputs.skills.filter((s) => s.userInvocable !== false).map((skill) => skill.name),
|
|
@@ -428791,8 +428815,8 @@ async function getEnvLessBridgeConfig() {
|
|
|
428791
428815
|
}
|
|
428792
428816
|
async function checkEnvLessBridgeMinVersion() {
|
|
428793
428817
|
const cfg = await getEnvLessBridgeConfig();
|
|
428794
|
-
if (cfg.min_version && lt({ VERSION: "0.2.
|
|
428795
|
-
return `Your version of Theus (${{ VERSION: "0.2.
|
|
428818
|
+
if (cfg.min_version && lt({ VERSION: "0.2.39", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
|
|
428819
|
+
return `Your version of Theus (${{ VERSION: "0.2.39", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.
|
|
428796
428820
|
Version ${cfg.min_version} or higher is required. Run \`theus update\` to update.`;
|
|
428797
428821
|
}
|
|
428798
428822
|
return null;
|
|
@@ -431115,7 +431139,7 @@ async function initBridgeCore(params) {
|
|
|
431115
431139
|
const rawApi = createBridgeApiClient({
|
|
431116
431140
|
baseUrl,
|
|
431117
431141
|
getAccessToken,
|
|
431118
|
-
runnerVersion: { VERSION: "0.2.
|
|
431142
|
+
runnerVersion: { VERSION: "0.2.39", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
|
|
431119
431143
|
onDebug: logForDebugging,
|
|
431120
431144
|
onAuth401,
|
|
431121
431145
|
getTrustedDeviceToken
|
|
@@ -447856,7 +447880,7 @@ var init_useVoiceEnabled = __esm(() => {
|
|
|
447856
447880
|
function getSemverPart(version3) {
|
|
447857
447881
|
return `${import_semver14.major(version3, { loose: true })}.${import_semver14.minor(version3, { loose: true })}.${import_semver14.patch(version3, { loose: true })}`;
|
|
447858
447882
|
}
|
|
447859
|
-
function useUpdateNotification(updatedVersion, initialVersion = { VERSION: "0.2.
|
|
447883
|
+
function useUpdateNotification(updatedVersion, initialVersion = { VERSION: "0.2.39", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION) {
|
|
447860
447884
|
const [lastNotifiedSemver, setLastNotifiedSemver] = import_react231.useState(() => getSemverPart(initialVersion));
|
|
447861
447885
|
if (!updatedVersion) {
|
|
447862
447886
|
return null;
|
|
@@ -447896,7 +447920,7 @@ function AutoUpdater({
|
|
|
447896
447920
|
return;
|
|
447897
447921
|
}
|
|
447898
447922
|
if (false) {}
|
|
447899
|
-
const currentVersion = { VERSION: "0.2.
|
|
447923
|
+
const currentVersion = { VERSION: "0.2.39", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION;
|
|
447900
447924
|
const channel2 = getInitialSettings()?.autoUpdatesChannel ?? "latest";
|
|
447901
447925
|
let latestVersion = await getLatestVersion(channel2);
|
|
447902
447926
|
const isDisabled2 = isAutoUpdaterDisabled();
|
|
@@ -448032,7 +448056,7 @@ function AutoUpdater({
|
|
|
448032
448056
|
" ",
|
|
448033
448057
|
/* @__PURE__ */ jsx_runtime406.jsx(ThemedText, {
|
|
448034
448058
|
bold: true,
|
|
448035
|
-
children: hasLocalInstall ? `cd ~/.theus/local && npm update ${{ VERSION: "0.2.
|
|
448059
|
+
children: hasLocalInstall ? `cd ~/.theus/local && npm update ${{ VERSION: "0.2.39", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.PACKAGE_URL}` : `npm i -g ${{ VERSION: "0.2.39", BUILD_TIME: "1970-01-01T00:00:00.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}`
|
|
448036
448060
|
})
|
|
448037
448061
|
]
|
|
448038
448062
|
})
|
|
@@ -448109,12 +448133,12 @@ function NativeAutoUpdater({
|
|
|
448109
448133
|
logEvent("tengu_native_auto_updater_start", {});
|
|
448110
448134
|
try {
|
|
448111
448135
|
const maxVersion = await getMaxVersion();
|
|
448112
|
-
if (maxVersion && gt({ VERSION: "0.2.
|
|
448136
|
+
if (maxVersion && gt({ VERSION: "0.2.39", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
|
|
448113
448137
|
const msg = await getMaxVersionMessage();
|
|
448114
448138
|
setMaxVersionIssue(msg ?? "affects your version");
|
|
448115
448139
|
}
|
|
448116
448140
|
const result = await installLatest(channel2);
|
|
448117
|
-
const currentVersion = { VERSION: "0.2.
|
|
448141
|
+
const currentVersion = { VERSION: "0.2.39", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION;
|
|
448118
448142
|
const latencyMs = Date.now() - startTime2;
|
|
448119
448143
|
if (result.lockFailed) {
|
|
448120
448144
|
logEvent("tengu_native_auto_updater_lock_contention", {
|
|
@@ -448251,17 +448275,17 @@ function PackageManagerAutoUpdater(t0) {
|
|
|
448251
448275
|
const maxVersion = await getMaxVersion();
|
|
448252
448276
|
if (maxVersion && latest && gt(latest, maxVersion)) {
|
|
448253
448277
|
logForDebugging(`PackageManagerAutoUpdater: maxVersion ${maxVersion} is set, capping update from ${latest} to ${maxVersion}`);
|
|
448254
|
-
if (gte({ VERSION: "0.2.
|
|
448255
|
-
logForDebugging(`PackageManagerAutoUpdater: current version ${{ VERSION: "0.2.
|
|
448278
|
+
if (gte({ VERSION: "0.2.39", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
|
|
448279
|
+
logForDebugging(`PackageManagerAutoUpdater: current version ${{ VERSION: "0.2.39", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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`);
|
|
448256
448280
|
setUpdateAvailable(false);
|
|
448257
448281
|
return;
|
|
448258
448282
|
}
|
|
448259
448283
|
latest = maxVersion;
|
|
448260
448284
|
}
|
|
448261
|
-
const hasUpdate = latest && !gte({ VERSION: "0.2.
|
|
448285
|
+
const hasUpdate = latest && !gte({ VERSION: "0.2.39", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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);
|
|
448262
448286
|
setUpdateAvailable(!!hasUpdate);
|
|
448263
448287
|
if (hasUpdate) {
|
|
448264
|
-
logForDebugging(`PackageManagerAutoUpdater: Update available ${{ VERSION: "0.2.
|
|
448288
|
+
logForDebugging(`PackageManagerAutoUpdater: Update available ${{ VERSION: "0.2.39", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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}`);
|
|
448265
448289
|
}
|
|
448266
448290
|
};
|
|
448267
448291
|
$2[0] = t1;
|
|
@@ -448295,7 +448319,7 @@ function PackageManagerAutoUpdater(t0) {
|
|
|
448295
448319
|
wrap: "truncate",
|
|
448296
448320
|
children: [
|
|
448297
448321
|
"currentVersion: ",
|
|
448298
|
-
{ VERSION: "0.2.
|
|
448322
|
+
{ VERSION: "0.2.39", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
|
|
448299
448323
|
]
|
|
448300
448324
|
});
|
|
448301
448325
|
$2[3] = verbose;
|
|
@@ -456168,7 +456192,7 @@ function buildStatusLineCommandInput(permissionMode, exceeds200kTokens, settings
|
|
|
456168
456192
|
project_dir: getOriginalCwd(),
|
|
456169
456193
|
added_dirs: addedDirs
|
|
456170
456194
|
},
|
|
456171
|
-
version: { VERSION: "0.2.
|
|
456195
|
+
version: { VERSION: "0.2.39", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
|
|
456172
456196
|
output_style: {
|
|
456173
456197
|
name: outputStyleName
|
|
456174
456198
|
},
|
|
@@ -467588,7 +467612,7 @@ async function submitTranscriptShare(messages, trigger, appearanceId) {
|
|
|
467588
467612
|
} catch {}
|
|
467589
467613
|
const data = {
|
|
467590
467614
|
trigger,
|
|
467591
|
-
version: { VERSION: "0.2.
|
|
467615
|
+
version: { VERSION: "0.2.39", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
|
|
467592
467616
|
platform: process.platform,
|
|
467593
467617
|
transcript,
|
|
467594
467618
|
subagentTranscripts: Object.keys(subagentTranscripts).length > 0 ? subagentTranscripts : undefined,
|
|
@@ -480595,7 +480619,7 @@ function completeOnboarding() {
|
|
|
480595
480619
|
saveGlobalConfig((current) => ({
|
|
480596
480620
|
...current,
|
|
480597
480621
|
hasCompletedOnboarding: true,
|
|
480598
|
-
lastOnboardingVersion: { VERSION: "0.2.
|
|
480622
|
+
lastOnboardingVersion: { VERSION: "0.2.39", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
|
|
480599
480623
|
}));
|
|
480600
480624
|
}
|
|
480601
480625
|
function showDialog(root2, renderer) {
|
|
@@ -491483,7 +491507,7 @@ async function startMCPServer(cwd3, debug3, verbose) {
|
|
|
491483
491507
|
setCwd(cwd3);
|
|
491484
491508
|
const server2 = new Server({
|
|
491485
491509
|
name: "theus/tengu",
|
|
491486
|
-
version: { VERSION: "0.2.
|
|
491510
|
+
version: { VERSION: "0.2.39", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
|
|
491487
491511
|
}, {
|
|
491488
491512
|
capabilities: {
|
|
491489
491513
|
tools: {}
|
|
@@ -492925,7 +492949,7 @@ async function setupTokenHandler(root2) {
|
|
|
492925
492949
|
gap: 1,
|
|
492926
492950
|
children: [
|
|
492927
492951
|
/* @__PURE__ */ jsx_runtime493.jsx(TheusBanner, {
|
|
492928
|
-
version: { VERSION: "0.2.
|
|
492952
|
+
version: { VERSION: "0.2.39", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
|
|
492929
492953
|
}),
|
|
492930
492954
|
showAuthWarning && /* @__PURE__ */ jsx_runtime493.jsxs(ThemedBox_default, {
|
|
492931
492955
|
flexDirection: "column",
|
|
@@ -494407,7 +494431,7 @@ ${assistantAddendum}` : assistantAddendum;
|
|
|
494407
494431
|
}
|
|
494408
494432
|
}
|
|
494409
494433
|
logForDiagnosticsNoPII("info", "started", {
|
|
494410
|
-
version: { VERSION: "0.2.
|
|
494434
|
+
version: { VERSION: "0.2.39", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
|
|
494411
494435
|
is_native_binary: isInBundledMode()
|
|
494412
494436
|
});
|
|
494413
494437
|
registerCleanup(async () => {
|
|
@@ -495275,7 +495299,7 @@ Usage: theus --remote "your task description"`, () => gracefulShutdown(1));
|
|
|
495275
495299
|
pendingHookMessages
|
|
495276
495300
|
}, renderAndRun);
|
|
495277
495301
|
}
|
|
495278
|
-
}).version(`${{ VERSION: "0.2.
|
|
495302
|
+
}).version(`${{ VERSION: "0.2.39", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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");
|
|
495279
495303
|
program2.option("-w, --worktree [name]", "Crea un nuevo worktree de git para esta sesi\xF3n (opcionalmente indica un nombre)");
|
|
495280
495304
|
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.");
|
|
495281
495305
|
if (canUserConfigureAdvisor()) {
|
|
@@ -495827,7 +495851,7 @@ if (false) {}
|
|
|
495827
495851
|
async function main2() {
|
|
495828
495852
|
const args = process.argv.slice(2);
|
|
495829
495853
|
if (args.length === 1 && (args[0] === "--version" || args[0] === "-v" || args[0] === "-V")) {
|
|
495830
|
-
console.log(`${{ VERSION: "0.2.
|
|
495854
|
+
console.log(`${{ VERSION: "0.2.39", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)`);
|
|
495831
495855
|
return;
|
|
495832
495856
|
}
|
|
495833
495857
|
const {
|