theus-cli 0.2.78 → 0.2.79
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
CHANGED
|
@@ -44338,13 +44338,27 @@ function findExecutable(executable) {
|
|
|
44338
44338
|
}
|
|
44339
44339
|
}
|
|
44340
44340
|
function setShellIfWindows() {
|
|
44341
|
-
if (getPlatform()
|
|
44342
|
-
|
|
44343
|
-
process.env.SHELL = gitBashPath;
|
|
44344
|
-
logForDebugging(`Using bash path: "${gitBashPath}"`);
|
|
44341
|
+
if (getPlatform() !== "windows") {
|
|
44342
|
+
return;
|
|
44345
44343
|
}
|
|
44344
|
+
const gitBashPath = tryFindGitBashPath();
|
|
44345
|
+
if (!gitBashPath) {
|
|
44346
|
+
logForDebugging("bash.exe no encontrado; SHELL queda sin fijar.");
|
|
44347
|
+
return;
|
|
44348
|
+
}
|
|
44349
|
+
process.env.SHELL = gitBashPath;
|
|
44350
|
+
logForDebugging(`Using bash path: "${gitBashPath}"`);
|
|
44346
44351
|
}
|
|
44347
|
-
var
|
|
44352
|
+
var AVISO_SIN_BASH, tryFindGitBashPath, findGitBashPath = () => {
|
|
44353
|
+
const bashPath = tryFindGitBashPath();
|
|
44354
|
+
if (bashPath) {
|
|
44355
|
+
return bashPath;
|
|
44356
|
+
}
|
|
44357
|
+
if (process.env.THEUS_CODE_GIT_BASH_PATH) {
|
|
44358
|
+
throw new Error(`La ruta de THEUS_CODE_GIT_BASH_PATH no existe: "${process.env.THEUS_CODE_GIT_BASH_PATH}"`);
|
|
44359
|
+
}
|
|
44360
|
+
throw new Error(AVISO_SIN_BASH);
|
|
44361
|
+
}, windowsPathToPosixPath, posixPathToWindowsPath;
|
|
44348
44362
|
var init_windowsPaths = __esm(() => {
|
|
44349
44363
|
init_memoize();
|
|
44350
44364
|
init_cwd2();
|
|
@@ -44352,13 +44366,15 @@ var init_windowsPaths = __esm(() => {
|
|
|
44352
44366
|
init_execSyncWrapper();
|
|
44353
44367
|
init_memoize2();
|
|
44354
44368
|
init_platform2();
|
|
44355
|
-
|
|
44369
|
+
AVISO_SIN_BASH = `Theus no encontro bash.exe en este Windows. Las herramientas y hooks que ejecutan sintaxis de bash no estaran disponibles; el resto de Theus funciona igual.
|
|
44370
|
+
` + `Para habilitarlos instala Git para Windows (https://git-scm.com/downloads/win), o apunta la ruta a mano:
|
|
44371
|
+
` + " THEUS_CODE_GIT_BASH_PATH=C:\\Program Files\\Git\\bin\\bash.exe";
|
|
44372
|
+
tryFindGitBashPath = memoize_default(() => {
|
|
44356
44373
|
if (process.env.THEUS_CODE_GIT_BASH_PATH) {
|
|
44357
44374
|
if (checkPathExists(process.env.THEUS_CODE_GIT_BASH_PATH)) {
|
|
44358
44375
|
return process.env.THEUS_CODE_GIT_BASH_PATH;
|
|
44359
44376
|
}
|
|
44360
|
-
|
|
44361
|
-
process.exit(1);
|
|
44377
|
+
return null;
|
|
44362
44378
|
}
|
|
44363
44379
|
const gitPath = findExecutable("git");
|
|
44364
44380
|
if (gitPath) {
|
|
@@ -44367,8 +44383,7 @@ var init_windowsPaths = __esm(() => {
|
|
|
44367
44383
|
return bashPath;
|
|
44368
44384
|
}
|
|
44369
44385
|
}
|
|
44370
|
-
|
|
44371
|
-
process.exit(1);
|
|
44386
|
+
return null;
|
|
44372
44387
|
});
|
|
44373
44388
|
windowsPathToPosixPath = memoizeWithLRU((windowsPath) => {
|
|
44374
44389
|
if (windowsPath.startsWith("\\\\")) {
|
|
@@ -57765,7 +57780,7 @@ async function _executeApiKeyHelper(isNonInteractiveSession) {
|
|
|
57765
57780
|
if (isApiKeyHelperFromProjectOrLocalSettings()) {
|
|
57766
57781
|
const hasTrust = checkHasTrustDialogAccepted();
|
|
57767
57782
|
if (!hasTrust && !isNonInteractiveSession) {
|
|
57768
|
-
const error40 = new Error(`Security: apiKeyHelper executed before workspace trust is confirmed. If you see this message, post in ${{ VERSION: "0.2.
|
|
57783
|
+
const error40 = new Error(`Security: apiKeyHelper executed before workspace trust is confirmed. If you see this message, post in ${{ VERSION: "0.2.79", BUILD_TIME: "1970-01-01T00:00:00.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}.`);
|
|
57769
57784
|
logAntError("apiKeyHelper invoked before trust check", error40);
|
|
57770
57785
|
logEvent("theus_apiKeyHelper_missing_trust11", {});
|
|
57771
57786
|
return null;
|
|
@@ -57809,7 +57824,7 @@ async function runAwsAuthRefresh() {
|
|
|
57809
57824
|
if (isAwsAuthRefreshFromProjectSettings()) {
|
|
57810
57825
|
const hasTrust = checkHasTrustDialogAccepted();
|
|
57811
57826
|
if (!hasTrust && !getIsNonInteractiveSession()) {
|
|
57812
|
-
const error40 = new Error(`Security: awsAuthRefresh executed before workspace trust is confirmed. If you see this message, post in ${{ VERSION: "0.2.
|
|
57827
|
+
const error40 = new Error(`Security: awsAuthRefresh executed before workspace trust is confirmed. If you see this message, post in ${{ VERSION: "0.2.79", BUILD_TIME: "1970-01-01T00:00:00.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}.`);
|
|
57813
57828
|
logAntError("awsAuthRefresh invoked before trust check", error40);
|
|
57814
57829
|
logEvent("theus_awsAuthRefresh_missing_trust", {});
|
|
57815
57830
|
return false;
|
|
@@ -57869,7 +57884,7 @@ async function getAwsCredsFromCredentialExport() {
|
|
|
57869
57884
|
if (isAwsCredentialExportFromProjectSettings()) {
|
|
57870
57885
|
const hasTrust = checkHasTrustDialogAccepted();
|
|
57871
57886
|
if (!hasTrust && !getIsNonInteractiveSession()) {
|
|
57872
|
-
const error40 = new Error(`Security: awsCredentialExport executed before workspace trust is confirmed. If you see this message, post in ${{ VERSION: "0.2.
|
|
57887
|
+
const error40 = new Error(`Security: awsCredentialExport executed before workspace trust is confirmed. If you see this message, post in ${{ VERSION: "0.2.79", BUILD_TIME: "1970-01-01T00:00:00.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}.`);
|
|
57873
57888
|
logAntError("awsCredentialExport invoked before trust check", error40);
|
|
57874
57889
|
logEvent("theus_awsCredentialExport_missing_trust", {});
|
|
57875
57890
|
return null;
|
|
@@ -57954,7 +57969,7 @@ async function runGcpAuthRefresh() {
|
|
|
57954
57969
|
if (isGcpAuthRefreshFromProjectSettings()) {
|
|
57955
57970
|
const hasTrust = checkHasTrustDialogAccepted();
|
|
57956
57971
|
if (!hasTrust && !getIsNonInteractiveSession()) {
|
|
57957
|
-
const error40 = new Error(`Security: gcpAuthRefresh executed before workspace trust is confirmed. If you see this message, post in ${{ VERSION: "0.2.
|
|
57972
|
+
const error40 = new Error(`Security: gcpAuthRefresh executed before workspace trust is confirmed. If you see this message, post in ${{ VERSION: "0.2.79", BUILD_TIME: "1970-01-01T00:00:00.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}.`);
|
|
57958
57973
|
logAntError("gcpAuthRefresh invoked before trust check", error40);
|
|
57959
57974
|
logEvent("theus_gcpAuthRefresh_missing_trust", {});
|
|
57960
57975
|
return false;
|
|
@@ -58673,7 +58688,7 @@ var init_auth = __esm(() => {
|
|
|
58673
58688
|
|
|
58674
58689
|
// utils/userAgent.ts
|
|
58675
58690
|
function getTheusCodeUserAgent() {
|
|
58676
|
-
return `theus-code/${{ VERSION: "0.2.
|
|
58691
|
+
return `theus-code/${{ VERSION: "0.2.79", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION}`;
|
|
58677
58692
|
}
|
|
58678
58693
|
|
|
58679
58694
|
// utils/workloadContext.ts
|
|
@@ -58695,7 +58710,7 @@ function getUserAgent() {
|
|
|
58695
58710
|
const clientApp = process.env.THEUS_AGENT_SDK_CLIENT_APP ? `, client-app/${process.env.THEUS_AGENT_SDK_CLIENT_APP}` : "";
|
|
58696
58711
|
const workload = getWorkload();
|
|
58697
58712
|
const workloadSuffix = workload ? `, workload/${workload}` : "";
|
|
58698
|
-
return `theus-cli/${{ VERSION: "0.2.
|
|
58713
|
+
return `theus-cli/${{ VERSION: "0.2.79", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION} (${"external"}, ${process.env.THEUS_CODE_ENTRYPOINT ?? "cli"}${agentSdkVersion}${clientApp}${workloadSuffix})`;
|
|
58699
58714
|
}
|
|
58700
58715
|
function getMCPUserAgent() {
|
|
58701
58716
|
const parts = [];
|
|
@@ -58709,7 +58724,7 @@ function getMCPUserAgent() {
|
|
|
58709
58724
|
parts.push(`client-app/${process.env.THEUS_AGENT_SDK_CLIENT_APP}`);
|
|
58710
58725
|
}
|
|
58711
58726
|
const suffix = parts.length > 0 ? ` (${parts.join(", ")})` : "";
|
|
58712
|
-
return `theus-code/${{ VERSION: "0.2.
|
|
58727
|
+
return `theus-code/${{ VERSION: "0.2.79", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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}`;
|
|
58713
58728
|
}
|
|
58714
58729
|
function getWebFetchUserAgent() {
|
|
58715
58730
|
return `Theus-User (${getTheusCodeUserAgent()}; +https://support.theus.pe/)`;
|
|
@@ -58847,7 +58862,7 @@ var init_user = __esm(() => {
|
|
|
58847
58862
|
deviceId,
|
|
58848
58863
|
sessionId: getSessionId(),
|
|
58849
58864
|
email: getEmail(),
|
|
58850
|
-
appVersion: { VERSION: "0.2.
|
|
58865
|
+
appVersion: { VERSION: "0.2.79", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
|
|
58851
58866
|
platform: getHostPlatformForAnalytics(),
|
|
58852
58867
|
organizationUuid,
|
|
58853
58868
|
accountUuid,
|
|
@@ -60557,7 +60572,7 @@ var init_metadata = __esm(() => {
|
|
|
60557
60572
|
COMPOUND_OPERATOR_REGEX = /\s*(?:&&|\|\||[;|])\s*/;
|
|
60558
60573
|
WHITESPACE_REGEX = /\s+/;
|
|
60559
60574
|
getVersionBase = memoize_default(() => {
|
|
60560
|
-
const match = { VERSION: "0.2.
|
|
60575
|
+
const match = { VERSION: "0.2.79", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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]+)?/);
|
|
60561
60576
|
return match ? match[0] : undefined;
|
|
60562
60577
|
});
|
|
60563
60578
|
buildEnvContext = memoize_default(async () => {
|
|
@@ -60597,9 +60612,9 @@ var init_metadata = __esm(() => {
|
|
|
60597
60612
|
isGithubAction: isEnvTruthy(process.env.GITHUB_ACTIONS),
|
|
60598
60613
|
isTheusCodeAction: isEnvTruthy(process.env.THEUS_CODE_ACTION),
|
|
60599
60614
|
isTheusAiAuth: isTheusAISubscriber(),
|
|
60600
|
-
version: { VERSION: "0.2.
|
|
60615
|
+
version: { VERSION: "0.2.79", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
|
|
60601
60616
|
versionBase: getVersionBase(),
|
|
60602
|
-
buildTime: { VERSION: "0.2.
|
|
60617
|
+
buildTime: { VERSION: "0.2.79", BUILD_TIME: "1970-01-01T00:00:00.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,
|
|
60603
60618
|
deploymentEnvironment: env3.detectDeploymentEnvironment(),
|
|
60604
60619
|
...isEnvTruthy(process.env.GITHUB_ACTIONS) && {
|
|
60605
60620
|
githubEventName: process.env.GITHUB_EVENT_NAME,
|
|
@@ -61215,7 +61230,7 @@ function initialize1PEventLogging() {
|
|
|
61215
61230
|
const platform2 = getPlatform();
|
|
61216
61231
|
const attributes = {
|
|
61217
61232
|
[ATTR_SERVICE_NAME]: "theus-code",
|
|
61218
|
-
[ATTR_SERVICE_VERSION]: { VERSION: "0.2.
|
|
61233
|
+
[ATTR_SERVICE_VERSION]: { VERSION: "0.2.79", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
|
|
61219
61234
|
};
|
|
61220
61235
|
if (platform2 === "wsl") {
|
|
61221
61236
|
const wslVersion = getWslVersion();
|
|
@@ -61242,7 +61257,7 @@ function initialize1PEventLogging() {
|
|
|
61242
61257
|
})
|
|
61243
61258
|
]
|
|
61244
61259
|
});
|
|
61245
|
-
firstPartyEventLogger = firstPartyEventLoggerProvider.getLogger("com.theus.theus_code.events", { VERSION: "0.2.
|
|
61260
|
+
firstPartyEventLogger = firstPartyEventLoggerProvider.getLogger("com.theus.theus_code.events", { VERSION: "0.2.79", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION);
|
|
61246
61261
|
}
|
|
61247
61262
|
async function reinitialize1PEventLoggingIfConfigChanged() {
|
|
61248
61263
|
if (!is1PEventLoggingEnabled() || !firstPartyEventLoggerProvider) {
|
|
@@ -91081,7 +91096,7 @@ function getAttributionHeader(fingerprint) {
|
|
|
91081
91096
|
if (!isAttributionHeaderEnabled()) {
|
|
91082
91097
|
return "";
|
|
91083
91098
|
}
|
|
91084
|
-
const version2 = `${{ VERSION: "0.2.
|
|
91099
|
+
const version2 = `${{ VERSION: "0.2.79", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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}`;
|
|
91085
91100
|
const entrypoint = process.env.THEUS_CODE_ENTRYPOINT ?? "unknown";
|
|
91086
91101
|
const cch = "";
|
|
91087
91102
|
const workload = getWorkload();
|
|
@@ -104117,7 +104132,7 @@ Complete the user's request by providing accurate, documentation-based guidance.
|
|
|
104117
104132
|
}
|
|
104118
104133
|
function getFeedbackGuideline() {
|
|
104119
104134
|
if (isUsing3PServices()) {
|
|
104120
|
-
return `- When you cannot find an answer or the feature doesn't exist, direct the user to ${{ VERSION: "0.2.
|
|
104135
|
+
return `- When you cannot find an answer or the feature doesn't exist, direct the user to ${{ VERSION: "0.2.79", BUILD_TIME: "1970-01-01T00:00:00.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}`;
|
|
104121
104136
|
}
|
|
104122
104137
|
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";
|
|
104123
104138
|
}
|
|
@@ -144301,7 +144316,7 @@ function getTelemetryAttributes() {
|
|
|
144301
144316
|
attributes["session.id"] = sessionId;
|
|
144302
144317
|
}
|
|
144303
144318
|
if (shouldIncludeAttribute("OTEL_METRICS_INCLUDE_VERSION")) {
|
|
144304
|
-
attributes["app.version"] = { VERSION: "0.2.
|
|
144319
|
+
attributes["app.version"] = { VERSION: "0.2.79", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION;
|
|
144305
144320
|
}
|
|
144306
144321
|
const oauthAccount = getOauthAccountInfo();
|
|
144307
144322
|
if (oauthAccount) {
|
|
@@ -220580,7 +220595,7 @@ async function getMcpHeadersFromHelper(serverName, config2) {
|
|
|
220580
220595
|
if ("scope" in config2 && isMcpServerFromProjectOrLocalSettings(config2) && !getIsNonInteractiveSession()) {
|
|
220581
220596
|
const hasTrust = checkHasTrustDialogAccepted();
|
|
220582
220597
|
if (!hasTrust) {
|
|
220583
|
-
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.
|
|
220598
|
+
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.79", BUILD_TIME: "1970-01-01T00:00:00.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}.`);
|
|
220584
220599
|
logAntError("MCP headersHelper invoked before trust check", error40);
|
|
220585
220600
|
logEvent("theus_mcp_headersHelper_missing_trust", {});
|
|
220586
220601
|
return null;
|
|
@@ -221272,7 +221287,7 @@ function computeFingerprint(messageText, version2) {
|
|
|
221272
221287
|
}
|
|
221273
221288
|
function computeFingerprintFromMessages(messages) {
|
|
221274
221289
|
const firstMessageText = extractFirstMessageText(messages);
|
|
221275
|
-
return computeFingerprint(firstMessageText, { VERSION: "0.2.
|
|
221290
|
+
return computeFingerprint(firstMessageText, { VERSION: "0.2.79", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION);
|
|
221276
221291
|
}
|
|
221277
221292
|
var FINGERPRINT_SALT = "59cf53e54c78";
|
|
221278
221293
|
var init_fingerprint = () => {};
|
|
@@ -221314,7 +221329,7 @@ async function sideQuery(opts) {
|
|
|
221314
221329
|
betas.push(STRUCTURED_OUTPUTS_BETA_HEADER);
|
|
221315
221330
|
}
|
|
221316
221331
|
const messageText = extractFirstUserMessageText(messages);
|
|
221317
|
-
const fingerprint = computeFingerprint(messageText, { VERSION: "0.2.
|
|
221332
|
+
const fingerprint = computeFingerprint(messageText, { VERSION: "0.2.79", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION);
|
|
221318
221333
|
const attributionHeader = getAttributionHeader(fingerprint);
|
|
221319
221334
|
const systemBlocks = [
|
|
221320
221335
|
attributionHeader ? { type: "text", text: attributionHeader } : null,
|
|
@@ -222438,7 +222453,7 @@ async function setupSdkMcpClients(sdkMcpConfigs, sendMcpMessage) {
|
|
|
222438
222453
|
const client2 = new Client({
|
|
222439
222454
|
name: "theus-code",
|
|
222440
222455
|
title: "Theus",
|
|
222441
|
-
version: { VERSION: "0.2.
|
|
222456
|
+
version: { VERSION: "0.2.79", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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",
|
|
222442
222457
|
description: "Theus's agentic coding tool",
|
|
222443
222458
|
websiteUrl: PRODUCT_URL
|
|
222444
222459
|
}, {
|
|
@@ -222792,7 +222807,7 @@ var init_client5 = __esm(() => {
|
|
|
222792
222807
|
const client2 = new Client({
|
|
222793
222808
|
name: "theus-code",
|
|
222794
222809
|
title: "Theus",
|
|
222795
|
-
version: { VERSION: "0.2.
|
|
222810
|
+
version: { VERSION: "0.2.79", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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",
|
|
222796
222811
|
description: "Theus's agentic coding tool",
|
|
222797
222812
|
websiteUrl: PRODUCT_URL
|
|
222798
222813
|
}, {
|
|
@@ -242640,7 +242655,7 @@ async function initializeBetaTracing(resource) {
|
|
|
242640
242655
|
});
|
|
242641
242656
|
logs.setGlobalLoggerProvider(loggerProvider);
|
|
242642
242657
|
setLoggerProvider(loggerProvider);
|
|
242643
|
-
const eventLogger = logs.getLogger("com.theus.theus_code.events", { VERSION: "0.2.
|
|
242658
|
+
const eventLogger = logs.getLogger("com.theus.theus_code.events", { VERSION: "0.2.79", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION);
|
|
242644
242659
|
setEventLogger(eventLogger);
|
|
242645
242660
|
process.on("beforeExit", async () => {
|
|
242646
242661
|
await loggerProvider?.forceFlush();
|
|
@@ -242680,7 +242695,7 @@ async function initializeTelemetry() {
|
|
|
242680
242695
|
const platform4 = getPlatform();
|
|
242681
242696
|
const baseAttributes = {
|
|
242682
242697
|
[ATTR_SERVICE_NAME]: "theus-code",
|
|
242683
|
-
[ATTR_SERVICE_VERSION]: { VERSION: "0.2.
|
|
242698
|
+
[ATTR_SERVICE_VERSION]: { VERSION: "0.2.79", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
|
|
242684
242699
|
};
|
|
242685
242700
|
if (platform4 === "wsl") {
|
|
242686
242701
|
const wslVersion = getWslVersion();
|
|
@@ -242725,7 +242740,7 @@ async function initializeTelemetry() {
|
|
|
242725
242740
|
} catch {}
|
|
242726
242741
|
};
|
|
242727
242742
|
registerCleanup(shutdownTelemetry2);
|
|
242728
|
-
return meterProvider2.getMeter("com.theus.theus_code", { VERSION: "0.2.
|
|
242743
|
+
return meterProvider2.getMeter("com.theus.theus_code", { VERSION: "0.2.79", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION);
|
|
242729
242744
|
}
|
|
242730
242745
|
const meterProvider = new MeterProvider({
|
|
242731
242746
|
resource,
|
|
@@ -242745,7 +242760,7 @@ async function initializeTelemetry() {
|
|
|
242745
242760
|
});
|
|
242746
242761
|
logs.setGlobalLoggerProvider(loggerProvider);
|
|
242747
242762
|
setLoggerProvider(loggerProvider);
|
|
242748
|
-
const eventLogger = logs.getLogger("com.theus.theus_code.events", { VERSION: "0.2.
|
|
242763
|
+
const eventLogger = logs.getLogger("com.theus.theus_code.events", { VERSION: "0.2.79", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION);
|
|
242749
242764
|
setEventLogger(eventLogger);
|
|
242750
242765
|
logForDebugging("[3P telemetry] Event logger set successfully");
|
|
242751
242766
|
process.on("beforeExit", async () => {
|
|
@@ -242807,7 +242822,7 @@ Current timeout: ${timeoutMs}ms
|
|
|
242807
242822
|
}
|
|
242808
242823
|
};
|
|
242809
242824
|
registerCleanup(shutdownTelemetry);
|
|
242810
|
-
return meterProvider.getMeter("com.theus.theus_code", { VERSION: "0.2.
|
|
242825
|
+
return meterProvider.getMeter("com.theus.theus_code", { VERSION: "0.2.79", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION);
|
|
242811
242826
|
}
|
|
242812
242827
|
async function flushTelemetry() {
|
|
242813
242828
|
const meterProvider = getMeterProvider();
|
|
@@ -243349,7 +243364,7 @@ async function installOrUpdateTheusPackage(channel2, specificVersion) {
|
|
|
243349
243364
|
return "install_failed";
|
|
243350
243365
|
}
|
|
243351
243366
|
const versionSpec = specificVersion ? specificVersion : channel2 === "stable" ? "stable" : "latest";
|
|
243352
|
-
const result = await execFileNoThrowWithCwd("npm", ["install", `${{ VERSION: "0.2.
|
|
243367
|
+
const result = await execFileNoThrowWithCwd("npm", ["install", `${{ VERSION: "0.2.79", BUILD_TIME: "1970-01-01T00:00:00.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 });
|
|
243353
243368
|
if (result.code !== 0) {
|
|
243354
243369
|
const error40 = new Error(`Failed to install Theus CLI package: ${result.stderr}`);
|
|
243355
243370
|
logError2(error40);
|
|
@@ -243495,9 +243510,9 @@ async function assertMinVersion() {
|
|
|
243495
243510
|
if (false) {}
|
|
243496
243511
|
try {
|
|
243497
243512
|
const versionConfig = await getDynamicConfig_BLOCKS_ON_INIT("theus_version_config", { minVersion: "0.0.0" });
|
|
243498
|
-
if (versionConfig.minVersion && lt({ VERSION: "0.2.
|
|
243513
|
+
if (versionConfig.minVersion && lt({ VERSION: "0.2.79", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
|
|
243499
243514
|
console.error(`
|
|
243500
|
-
It looks like your version of Theus (${{ VERSION: "0.2.
|
|
243515
|
+
It looks like your version of Theus (${{ VERSION: "0.2.79", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.
|
|
243501
243516
|
A newer version (${versionConfig.minVersion} or higher) is required to continue.
|
|
243502
243517
|
|
|
243503
243518
|
To update, please run:
|
|
@@ -243634,7 +243649,7 @@ async function getInstallationPrefix() {
|
|
|
243634
243649
|
return prefixResult.stdout.trim();
|
|
243635
243650
|
}
|
|
243636
243651
|
function getGlobalInstallPackageManager() {
|
|
243637
|
-
if ({ VERSION: "0.2.
|
|
243652
|
+
if ({ VERSION: "0.2.79", BUILD_TIME: "1970-01-01T00:00:00.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") {
|
|
243638
243653
|
return "npm";
|
|
243639
243654
|
}
|
|
243640
243655
|
return env3.isRunningWithBun() ? "bun" : "npm";
|
|
@@ -243659,7 +243674,7 @@ async function checkGlobalInstallPermissions() {
|
|
|
243659
243674
|
}
|
|
243660
243675
|
async function getLatestVersion(channel2) {
|
|
243661
243676
|
const npmTag = channel2 === "stable" ? "stable" : "latest";
|
|
243662
|
-
const result = await execFileNoThrowWithCwd("npm", ["view", `${{ VERSION: "0.2.
|
|
243677
|
+
const result = await execFileNoThrowWithCwd("npm", ["view", `${{ VERSION: "0.2.79", BUILD_TIME: "1970-01-01T00:00:00.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: homedir20() });
|
|
243663
243678
|
if (result.code !== 0) {
|
|
243664
243679
|
logForDebugging(`npm view failed with code ${result.code}`);
|
|
243665
243680
|
if (result.stderr) {
|
|
@@ -243675,7 +243690,7 @@ async function getLatestVersion(channel2) {
|
|
|
243675
243690
|
return result.stdout.trim();
|
|
243676
243691
|
}
|
|
243677
243692
|
async function getNpmDistTags() {
|
|
243678
|
-
const result = await execFileNoThrowWithCwd("npm", ["view", { VERSION: "0.2.
|
|
243693
|
+
const result = await execFileNoThrowWithCwd("npm", ["view", { VERSION: "0.2.79", BUILD_TIME: "1970-01-01T00:00:00.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: homedir20() });
|
|
243679
243694
|
if (result.code !== 0) {
|
|
243680
243695
|
logForDebugging(`npm view dist-tags failed with code ${result.code}`);
|
|
243681
243696
|
return { latest: null, stable: null };
|
|
@@ -243692,14 +243707,18 @@ async function getNpmDistTags() {
|
|
|
243692
243707
|
}
|
|
243693
243708
|
}
|
|
243694
243709
|
async function getLatestVersionFromGcs(channel2) {
|
|
243710
|
+
if (!BINARY_REPO_URL) {
|
|
243711
|
+
logForDebugging("Actualizacion nativa desactivada: no hay repositorio de binarios configurado (THEUS_BINARY_REPO_URL).");
|
|
243712
|
+
return null;
|
|
243713
|
+
}
|
|
243695
243714
|
try {
|
|
243696
|
-
const response = await axios_default.get(`${
|
|
243715
|
+
const response = await axios_default.get(`${BINARY_REPO_URL}/${channel2}`, {
|
|
243697
243716
|
timeout: 5000,
|
|
243698
243717
|
responseType: "text"
|
|
243699
243718
|
});
|
|
243700
243719
|
return response.data.trim();
|
|
243701
243720
|
} catch (error40) {
|
|
243702
|
-
logForDebugging(`
|
|
243721
|
+
logForDebugging(`No pude consultar el canal ${channel2} en el repositorio de binarios: ${error40}`);
|
|
243703
243722
|
return null;
|
|
243704
243723
|
}
|
|
243705
243724
|
}
|
|
@@ -243715,7 +243734,7 @@ async function installGlobalPackage(specificVersion) {
|
|
|
243715
243734
|
logError2(new AutoUpdaterError("Another process is currently installing an update"));
|
|
243716
243735
|
logEvent("theus_auto_updater_lock_contention", {
|
|
243717
243736
|
pid: process.pid,
|
|
243718
|
-
currentVersion: { VERSION: "0.2.
|
|
243737
|
+
currentVersion: { VERSION: "0.2.79", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
|
|
243719
243738
|
});
|
|
243720
243739
|
return "in_progress";
|
|
243721
243740
|
}
|
|
@@ -243724,7 +243743,7 @@ async function installGlobalPackage(specificVersion) {
|
|
|
243724
243743
|
if (!env3.isRunningWithBun() && env3.isNpmFromWindowsPath()) {
|
|
243725
243744
|
logError2(new Error("Windows NPM detected in WSL environment"));
|
|
243726
243745
|
logEvent("theus_auto_updater_windows_npm_in_wsl", {
|
|
243727
|
-
currentVersion: { VERSION: "0.2.
|
|
243746
|
+
currentVersion: { VERSION: "0.2.79", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
|
|
243728
243747
|
});
|
|
243729
243748
|
console.error(`
|
|
243730
243749
|
Error: Windows NPM detected in WSL
|
|
@@ -243743,7 +243762,7 @@ To fix this issue:
|
|
|
243743
243762
|
if (!hasPermissions) {
|
|
243744
243763
|
return "no_permissions";
|
|
243745
243764
|
}
|
|
243746
|
-
const packageSpec = specificVersion ? `${{ VERSION: "0.2.
|
|
243765
|
+
const packageSpec = specificVersion ? `${{ VERSION: "0.2.79", BUILD_TIME: "1970-01-01T00:00:00.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.79", BUILD_TIME: "1970-01-01T00:00:00.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;
|
|
243747
243766
|
const packageManager = getGlobalInstallPackageManager();
|
|
243748
243767
|
const installResult = await execFileNoThrowWithCwd(packageManager, ["install", "-g", packageSpec], { cwd: homedir20() });
|
|
243749
243768
|
if (installResult.code !== 0) {
|
|
@@ -243779,7 +243798,7 @@ async function removeTheusAliasesFromShellConfigs() {
|
|
|
243779
243798
|
}
|
|
243780
243799
|
}
|
|
243781
243800
|
}
|
|
243782
|
-
var
|
|
243801
|
+
var BINARY_REPO_URL, AutoUpdaterError, LOCK_TIMEOUT_MS;
|
|
243783
243802
|
var init_autoUpdater = __esm(() => {
|
|
243784
243803
|
init_axios2();
|
|
243785
243804
|
init_growthbook2();
|
|
@@ -243796,6 +243815,7 @@ var init_autoUpdater = __esm(() => {
|
|
|
243796
243815
|
init_settings2();
|
|
243797
243816
|
init_shellConfig();
|
|
243798
243817
|
init_slowOperations();
|
|
243818
|
+
BINARY_REPO_URL = process.env.THEUS_BINARY_REPO_URL?.trim() || null;
|
|
243799
243819
|
AutoUpdaterError = class AutoUpdaterError extends TheusError {
|
|
243800
243820
|
};
|
|
243801
243821
|
LOCK_TIMEOUT_MS = 5 * 60 * 1000;
|
|
@@ -244071,8 +244091,8 @@ async function detectMultipleInstallations() {
|
|
|
244071
244091
|
installations.push({ type: "npm-local", path: localPath });
|
|
244072
244092
|
}
|
|
244073
244093
|
const packagesToCheck = ["@theus-ai/theus-code"];
|
|
244074
|
-
if ({ VERSION: "0.2.
|
|
244075
|
-
packagesToCheck.push({ VERSION: "0.2.
|
|
244094
|
+
if ({ VERSION: "0.2.79", BUILD_TIME: "1970-01-01T00:00:00.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.79", BUILD_TIME: "1970-01-01T00:00:00.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") {
|
|
244095
|
+
packagesToCheck.push({ VERSION: "0.2.79", BUILD_TIME: "1970-01-01T00:00:00.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);
|
|
244076
244096
|
}
|
|
244077
244097
|
const npmResult = await execFileNoThrow("npm", [
|
|
244078
244098
|
"-g",
|
|
@@ -244255,7 +244275,7 @@ function detectLinuxGlobPatternWarnings() {
|
|
|
244255
244275
|
}
|
|
244256
244276
|
async function getDoctorDiagnostic() {
|
|
244257
244277
|
const installationType = await getCurrentInstallationType();
|
|
244258
|
-
const version2 = { VERSION: "0.2.
|
|
244278
|
+
const version2 = { VERSION: "0.2.79", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.79", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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";
|
|
244259
244279
|
const installationPath = await getInstallationPath();
|
|
244260
244280
|
const invokedBinary = getInvokedBinary();
|
|
244261
244281
|
const multipleInstallations = await detectMultipleInstallations();
|
|
@@ -244267,8 +244287,8 @@ async function getDoctorDiagnostic() {
|
|
|
244267
244287
|
for (const install of npmInstalls) {
|
|
244268
244288
|
if (install.type === "npm-global") {
|
|
244269
244289
|
let uninstallCmd = "npm -g uninstall @theus-ai/theus-code";
|
|
244270
|
-
if ({ VERSION: "0.2.
|
|
244271
|
-
uninstallCmd += ` && npm -g uninstall ${{ VERSION: "0.2.
|
|
244290
|
+
if ({ VERSION: "0.2.79", BUILD_TIME: "1970-01-01T00:00:00.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.79", BUILD_TIME: "1970-01-01T00:00:00.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") {
|
|
244291
|
+
uninstallCmd += ` && npm -g uninstall ${{ VERSION: "0.2.79", BUILD_TIME: "1970-01-01T00:00:00.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}`;
|
|
244272
244292
|
}
|
|
244273
244293
|
warnings.push({
|
|
244274
244294
|
issue: `Leftover npm global installation at ${install.path}`,
|
|
@@ -244419,7 +244439,10 @@ async function getLatestVersion2(channelOrVersion) {
|
|
|
244419
244439
|
throw new Error(`Invalid channel: ${channelOrVersion}. Use 'stable' or 'latest'`);
|
|
244420
244440
|
}
|
|
244421
244441
|
if (false) {}
|
|
244422
|
-
|
|
244442
|
+
if (!BINARY_REPO_URL2) {
|
|
244443
|
+
throw new Error("No hay repositorio de binarios configurado: la actualizacion nativa esta desactivada. Actualiza con el instalador oficial de https://theus.pe");
|
|
244444
|
+
}
|
|
244445
|
+
return getLatestVersionFromBinaryRepo(channel2, BINARY_REPO_URL2);
|
|
244423
244446
|
}
|
|
244424
244447
|
function getStallTimeoutMs() {
|
|
244425
244448
|
return Number(process.env.THEUS_CODE_STALL_TIMEOUT_MS_FOR_TESTING) || DEFAULT_STALL_TIMEOUT_MS;
|
|
@@ -244543,10 +244566,13 @@ async function downloadVersionFromBinaryRepo(version2, stagingPath, baseUrl, aut
|
|
|
244543
244566
|
async function downloadVersion(version2, stagingPath) {
|
|
244544
244567
|
if (false) {}
|
|
244545
244568
|
if (false) {}
|
|
244546
|
-
|
|
244569
|
+
if (!BINARY_REPO_URL2) {
|
|
244570
|
+
throw new Error("No hay repositorio de binarios configurado: la actualizacion nativa esta desactivada. Actualiza con el instalador oficial de https://theus.pe");
|
|
244571
|
+
}
|
|
244572
|
+
await downloadVersionFromBinaryRepo(version2, stagingPath, BINARY_REPO_URL2);
|
|
244547
244573
|
return "binary";
|
|
244548
244574
|
}
|
|
244549
|
-
var
|
|
244575
|
+
var BINARY_REPO_URL2, DEFAULT_STALL_TIMEOUT_MS = 60000, MAX_DOWNLOAD_RETRIES = 3, StallTimeoutError;
|
|
244550
244576
|
var init_download = __esm(() => {
|
|
244551
244577
|
init_axios2();
|
|
244552
244578
|
init_analytics();
|
|
@@ -244557,6 +244583,7 @@ var init_download = __esm(() => {
|
|
|
244557
244583
|
init_log2();
|
|
244558
244584
|
init_slowOperations();
|
|
244559
244585
|
init_installer();
|
|
244586
|
+
BINARY_REPO_URL2 = process.env.THEUS_BINARY_REPO_URL?.trim() || null;
|
|
244560
244587
|
StallTimeoutError = class StallTimeoutError extends Error {
|
|
244561
244588
|
constructor() {
|
|
244562
244589
|
super("Download stalled: no data received for 60 seconds");
|
|
@@ -245079,8 +245106,8 @@ async function updateLatest(channelOrVersion, forceReinstall = false) {
|
|
|
245079
245106
|
const maxVersion = await getMaxVersion();
|
|
245080
245107
|
if (maxVersion && gt(version2, maxVersion)) {
|
|
245081
245108
|
logForDebugging(`Native installer: maxVersion ${maxVersion} is set, capping update from ${version2} to ${maxVersion}`);
|
|
245082
|
-
if (gte({ VERSION: "0.2.
|
|
245083
|
-
logForDebugging(`Native installer: current version ${{ VERSION: "0.2.
|
|
245109
|
+
if (gte({ VERSION: "0.2.79", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
|
|
245110
|
+
logForDebugging(`Native installer: current version ${{ VERSION: "0.2.79", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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`);
|
|
245084
245111
|
logEvent("theus_native_update_skipped_max_version", {
|
|
245085
245112
|
latency_ms: Date.now() - startTime2,
|
|
245086
245113
|
max_version: maxVersion,
|
|
@@ -245091,7 +245118,7 @@ async function updateLatest(channelOrVersion, forceReinstall = false) {
|
|
|
245091
245118
|
version2 = maxVersion;
|
|
245092
245119
|
}
|
|
245093
245120
|
}
|
|
245094
|
-
if (!forceReinstall && version2 === { VERSION: "0.2.
|
|
245121
|
+
if (!forceReinstall && version2 === { VERSION: "0.2.79", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
|
|
245095
245122
|
logForDebugging(`Found ${version2} at ${executablePath}, skipping install`);
|
|
245096
245123
|
logEvent("theus_native_update_complete", {
|
|
245097
245124
|
latency_ms: Date.now() - startTime2,
|
|
@@ -245841,8 +245868,8 @@ async function cleanupNpmInstallations() {
|
|
|
245841
245868
|
} else if (codePackageResult.error) {
|
|
245842
245869
|
errors4.push(codePackageResult.error);
|
|
245843
245870
|
}
|
|
245844
|
-
if ({ VERSION: "0.2.
|
|
245845
|
-
const macroPackageResult = await attemptNpmUninstall({ VERSION: "0.2.
|
|
245871
|
+
if ({ VERSION: "0.2.79", BUILD_TIME: "1970-01-01T00:00:00.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.79", BUILD_TIME: "1970-01-01T00:00:00.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") {
|
|
245872
|
+
const macroPackageResult = await attemptNpmUninstall({ VERSION: "0.2.79", BUILD_TIME: "1970-01-01T00:00:00.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);
|
|
245846
245873
|
if (macroPackageResult.success) {
|
|
245847
245874
|
removed++;
|
|
245848
245875
|
if (macroPackageResult.warning) {
|
|
@@ -256259,6 +256286,18 @@ var init_ConsoleOAuthFlow = __esm(() => {
|
|
|
256259
256286
|
var NOVEDADES;
|
|
256260
256287
|
var init_data = __esm(() => {
|
|
256261
256288
|
NOVEDADES = [
|
|
256289
|
+
{
|
|
256290
|
+
version: "v0.2.79",
|
|
256291
|
+
fecha: "2026-08-14",
|
|
256292
|
+
titulo: "Instalar Theus en Windows deja de fallar en silencio",
|
|
256293
|
+
puntos: [
|
|
256294
|
+
"En un Windows sin Git, Theus se cerraba al instante despu\xE9s de instalarse bien: el arranque exig\xEDa una consola de tipo Unix y terminaba el proceso si no la encontraba. Ahora arranca con normalidad y solo avisa cuando de verdad hace falta esa consola.",
|
|
256295
|
+
"Si tu cuenta de Windows lleva tilde o e\xF1e \u2014Jos\xE9, Mu\xF1oz, Garc\xEDa, Bego\xF1a\u2014, el lanzador que dejaba el instalador apuntaba a una ruta con un signo de interrogaci\xF3n en medio: el comando exist\xEDa y no ejecutaba nada. Corregido.",
|
|
256296
|
+
"En equipos x64 sin AVX2 \u2014los Celeron y Pentium de gama baja, los Atom y cualquier cosa anterior a Haswell\u2014 el motor reci\xE9n instalado reventaba con una instrucci\xF3n ilegal. El instalador ahora prueba y, si no arranca, cambia a la variante compatible.",
|
|
256297
|
+
"Seguir la gu\xEDa de theus.pe/empezar en orden ya no empeora \xD1aupa: el paso 4 sobrescrib\xEDa con la versi\xF3n sin mapa 3D la que hab\xEDa instalado el paso 1. Los dos instaladores eligen ya lo mismo.",
|
|
256298
|
+
"Los binarios de macOS pasan a publicarse firmados y notarizados, y el paquete de npm sale del CI con su prueba de procedencia en lugar de compilarse a mano."
|
|
256299
|
+
]
|
|
256300
|
+
},
|
|
256262
256301
|
{
|
|
256263
256302
|
version: "v0.2.78",
|
|
256264
256303
|
fecha: "2026-08-14",
|
|
@@ -300177,9 +300216,9 @@ function getTheusEnvMetadata() {
|
|
|
300177
300216
|
};
|
|
300178
300217
|
}
|
|
300179
300218
|
function getBuildAgeMinutes() {
|
|
300180
|
-
if (!{ VERSION: "0.2.
|
|
300219
|
+
if (!{ VERSION: "0.2.79", BUILD_TIME: "1970-01-01T00:00:00.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)
|
|
300181
300220
|
return;
|
|
300182
|
-
const buildTime = new Date({ VERSION: "0.2.
|
|
300221
|
+
const buildTime = new Date({ VERSION: "0.2.79", BUILD_TIME: "1970-01-01T00:00:00.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();
|
|
300183
300222
|
if (isNaN(buildTime))
|
|
300184
300223
|
return;
|
|
300185
300224
|
return Math.floor((Date.now() - buildTime) / 60000);
|
|
@@ -318484,7 +318523,7 @@ function getSimpleDoingTasksSection() {
|
|
|
318484
318523
|
];
|
|
318485
318524
|
const userHelpSubitems = [
|
|
318486
318525
|
`/help: Get help with using Theus`,
|
|
318487
|
-
`To give feedback, users should ${{ VERSION: "0.2.
|
|
318526
|
+
`To give feedback, users should ${{ VERSION: "0.2.79", BUILD_TIME: "1970-01-01T00:00:00.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}`
|
|
318488
318527
|
];
|
|
318489
318528
|
const items = [
|
|
318490
318529
|
`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.`,
|
|
@@ -329620,7 +329659,7 @@ async function submitTranscriptShare(messages, trigger, appearanceId) {
|
|
|
329620
329659
|
} catch {}
|
|
329621
329660
|
const data = {
|
|
329622
329661
|
trigger,
|
|
329623
|
-
version: { VERSION: "0.2.
|
|
329662
|
+
version: { VERSION: "0.2.79", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
|
|
329624
329663
|
platform: process.platform,
|
|
329625
329664
|
transcript,
|
|
329626
329665
|
subagentTranscripts: Object.keys(subagentTranscripts).length > 0 ? subagentTranscripts : undefined,
|
|
@@ -329825,10 +329864,10 @@ Si el usuario indic\xF3 una duraci\xF3n, p\xE1sala en el par\xE1metro \`duration
|
|
|
329825
329864
|
|
|
329826
329865
|
// commands/issue/index.ts
|
|
329827
329866
|
function getCliVersion() {
|
|
329828
|
-
return { VERSION: "0.2.
|
|
329867
|
+
return { VERSION: "0.2.79", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.79", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION : "desconocida";
|
|
329829
329868
|
}
|
|
329830
329869
|
function getIssuesExplainer() {
|
|
329831
|
-
return { VERSION: "0.2.
|
|
329870
|
+
return { VERSION: "0.2.79", BUILD_TIME: "1970-01-01T00:00:00.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 ? { VERSION: "0.2.79", BUILD_TIME: "1970-01-01T00:00:00.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 : "report issues to the Theus maintainers";
|
|
329832
329871
|
}
|
|
329833
329872
|
function getActiveModelLabel() {
|
|
329834
329873
|
try {
|
|
@@ -332614,7 +332653,7 @@ function buildPrimarySection() {
|
|
|
332614
332653
|
});
|
|
332615
332654
|
return [{
|
|
332616
332655
|
label: "Version",
|
|
332617
|
-
value: { VERSION: "0.2.
|
|
332656
|
+
value: { VERSION: "0.2.79", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
|
|
332618
332657
|
}, {
|
|
332619
332658
|
label: "Session name",
|
|
332620
332659
|
value: nameValue
|
|
@@ -336430,7 +336469,7 @@ function Config({
|
|
|
336430
336469
|
}
|
|
336431
336470
|
})
|
|
336432
336471
|
}) : showSubmenu === "ChannelDowngrade" ? /* @__PURE__ */ jsx_runtime189.jsx(ChannelDowngradeDialog, {
|
|
336433
|
-
currentVersion: { VERSION: "0.2.
|
|
336472
|
+
currentVersion: { VERSION: "0.2.79", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
|
|
336434
336473
|
onChoice: (choice) => {
|
|
336435
336474
|
setShowSubmenu(null);
|
|
336436
336475
|
setTabsHidden(false);
|
|
@@ -336442,7 +336481,7 @@ function Config({
|
|
|
336442
336481
|
autoUpdatesChannel: "stable"
|
|
336443
336482
|
};
|
|
336444
336483
|
if (choice === "stay") {
|
|
336445
|
-
newSettings.minimumVersion = { VERSION: "0.2.
|
|
336484
|
+
newSettings.minimumVersion = { VERSION: "0.2.79", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION;
|
|
336446
336485
|
}
|
|
336447
336486
|
updateSettingsForSource("userSettings", newSettings);
|
|
336448
336487
|
setSettingsData((prev_27) => ({
|
|
@@ -343801,7 +343840,7 @@ function HelpV2(t0) {
|
|
|
343801
343840
|
let t6;
|
|
343802
343841
|
if ($2[31] !== tabs) {
|
|
343803
343842
|
t6 = /* @__PURE__ */ jsx_runtime215.jsx(Tabs, {
|
|
343804
|
-
title: `Theus v${{ VERSION: "0.2.
|
|
343843
|
+
title: `Theus v${{ VERSION: "0.2.79", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION}`,
|
|
343805
343844
|
color: "professionalBlue",
|
|
343806
343845
|
defaultTab: "general",
|
|
343807
343846
|
children: tabs
|
|
@@ -362622,7 +362661,7 @@ function Onboarding({
|
|
|
362622
362661
|
flexDirection: "column",
|
|
362623
362662
|
children: [
|
|
362624
362663
|
/* @__PURE__ */ jsx_runtime251.jsx(TheusBanner, {
|
|
362625
|
-
version: { VERSION: "0.2.
|
|
362664
|
+
version: { VERSION: "0.2.79", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
|
|
362626
362665
|
}),
|
|
362627
362666
|
/* @__PURE__ */ jsx_runtime251.jsxs(ThemedBox_default, {
|
|
362628
362667
|
flexDirection: "column",
|
|
@@ -368009,7 +368048,7 @@ var init_Messages = __esm(() => {
|
|
|
368009
368048
|
let t1;
|
|
368010
368049
|
if ($2[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
368011
368050
|
t1 = /* @__PURE__ */ jsx_runtime264.jsx(TheusSessionHeader, {
|
|
368012
|
-
version: { VERSION: "0.2.
|
|
368051
|
+
version: { VERSION: "0.2.79", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
|
|
368013
368052
|
});
|
|
368014
368053
|
$2[0] = t1;
|
|
368015
368054
|
} else {
|
|
@@ -399878,7 +399917,7 @@ async function captureMemoryDiagnostics(trigger, dumpNumber = 0) {
|
|
|
399878
399917
|
smapsRollup,
|
|
399879
399918
|
platform: process.platform,
|
|
399880
399919
|
nodeVersion: process.version,
|
|
399881
|
-
ccVersion: { VERSION: "0.2.
|
|
399920
|
+
ccVersion: { VERSION: "0.2.79", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
|
|
399882
399921
|
};
|
|
399883
399922
|
}
|
|
399884
399923
|
async function performHeapDump(trigger = "manual", dumpNumber = 0) {
|
|
@@ -400639,7 +400678,7 @@ var init_bridge_kick = __esm(() => {
|
|
|
400639
400678
|
var call69 = async () => {
|
|
400640
400679
|
return {
|
|
400641
400680
|
type: "text",
|
|
400642
|
-
value: { VERSION: "0.2.
|
|
400681
|
+
value: { VERSION: "0.2.79", BUILD_TIME: "1970-01-01T00:00:00.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.79", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.79", BUILD_TIME: "1970-01-01T00:00:00.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.79", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
|
|
400643
400682
|
};
|
|
400644
400683
|
}, version2, version_default;
|
|
400645
400684
|
var init_version = __esm(() => {
|
|
@@ -403240,7 +403279,7 @@ var SECRET_NAME_PATTERN, EXTRA_ENV_ALLOWLIST, REDACTED2 = "\u2039oculto\u203A",
|
|
|
403240
403279
|
const lines = [];
|
|
403241
403280
|
lines.push("## Entorno de ejecuci\xF3n");
|
|
403242
403281
|
lines.push("");
|
|
403243
|
-
const version3 = { VERSION: "0.2.
|
|
403282
|
+
const version3 = { VERSION: "0.2.79", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.79", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION : "desconocida";
|
|
403244
403283
|
lines.push(`- Versi\xF3n de Theus: ${version3}`);
|
|
403245
403284
|
lines.push(`- Directorio de trabajo: ${getCwd()}`);
|
|
403246
403285
|
lines.push(`- \xBFRepositorio git?: ${isGit ? "s\xED" : "no"}`);
|
|
@@ -405781,13 +405820,13 @@ async function updateReleaseBundle() {
|
|
|
405781
405820
|
await gracefulShutdown(1);
|
|
405782
405821
|
return;
|
|
405783
405822
|
}
|
|
405784
|
-
if (gte({ VERSION: "0.2.
|
|
405785
|
-
writeToStdout(source_default.green(`Theus ya est\xE1 al d\xEDa (${{ VERSION: "0.2.
|
|
405823
|
+
if (gte({ VERSION: "0.2.79", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
|
|
405824
|
+
writeToStdout(source_default.green(`Theus ya est\xE1 al d\xEDa (${{ VERSION: "0.2.79", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION})`) + `
|
|
405786
405825
|
`);
|
|
405787
405826
|
await gracefulShutdown(0);
|
|
405788
405827
|
return;
|
|
405789
405828
|
}
|
|
405790
|
-
writeToStdout(`Nueva versi\xF3n disponible: ${latest} (actual: ${{ VERSION: "0.2.
|
|
405829
|
+
writeToStdout(`Nueva versi\xF3n disponible: ${latest} (actual: ${{ VERSION: "0.2.79", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION})
|
|
405791
405830
|
`);
|
|
405792
405831
|
writeToStdout(`Instalando la actualizaci\xF3n desde theus.pe/dl...
|
|
405793
405832
|
`);
|
|
@@ -405821,7 +405860,7 @@ async function updateReleaseBundle() {
|
|
|
405821
405860
|
return;
|
|
405822
405861
|
}
|
|
405823
405862
|
cpSync(staged, bundleDir, { recursive: true, force: true });
|
|
405824
|
-
writeToStdout(source_default.green(`Actualizado correctamente de ${{ VERSION: "0.2.
|
|
405863
|
+
writeToStdout(source_default.green(`Actualizado correctamente de ${{ VERSION: "0.2.79", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION} a la versi\xF3n ${latest}`) + `
|
|
405825
405864
|
`);
|
|
405826
405865
|
await regenerateCompletionCache();
|
|
405827
405866
|
} finally {
|
|
@@ -405834,7 +405873,7 @@ async function updateReleaseBundle() {
|
|
|
405834
405873
|
async function update() {
|
|
405835
405874
|
logEvent("theus_update_check", {});
|
|
405836
405875
|
await updateNaupa();
|
|
405837
|
-
writeToStdout(`Versi\xF3n actual: ${{ VERSION: "0.2.
|
|
405876
|
+
writeToStdout(`Versi\xF3n actual: ${{ VERSION: "0.2.79", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION}
|
|
405838
405877
|
`);
|
|
405839
405878
|
const channel2 = getInitialSettings()?.autoUpdatesChannel ?? "latest";
|
|
405840
405879
|
writeToStdout(`Buscando actualizaciones en el canal ${channel2}...
|
|
@@ -405913,8 +405952,8 @@ async function update() {
|
|
|
405913
405952
|
writeToStdout(`Theus est\xE1 gestionado por Homebrew.
|
|
405914
405953
|
`);
|
|
405915
405954
|
const latest = await getLatestVersion(channel2);
|
|
405916
|
-
if (latest && !gte({ VERSION: "0.2.
|
|
405917
|
-
writeToStdout(`Actualizaci\xF3n disponible: ${{ VERSION: "0.2.
|
|
405955
|
+
if (latest && !gte({ VERSION: "0.2.79", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
|
|
405956
|
+
writeToStdout(`Actualizaci\xF3n disponible: ${{ VERSION: "0.2.79", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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}
|
|
405918
405957
|
`);
|
|
405919
405958
|
writeToStdout(`
|
|
405920
405959
|
`);
|
|
@@ -405930,8 +405969,8 @@ async function update() {
|
|
|
405930
405969
|
writeToStdout(`Theus est\xE1 gestionado por winget.
|
|
405931
405970
|
`);
|
|
405932
405971
|
const latest = await getLatestVersion(channel2);
|
|
405933
|
-
if (latest && !gte({ VERSION: "0.2.
|
|
405934
|
-
writeToStdout(`Actualizaci\xF3n disponible: ${{ VERSION: "0.2.
|
|
405972
|
+
if (latest && !gte({ VERSION: "0.2.79", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
|
|
405973
|
+
writeToStdout(`Actualizaci\xF3n disponible: ${{ VERSION: "0.2.79", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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}
|
|
405935
405974
|
`);
|
|
405936
405975
|
writeToStdout(`
|
|
405937
405976
|
`);
|
|
@@ -405947,8 +405986,8 @@ async function update() {
|
|
|
405947
405986
|
writeToStdout(`Theus est\xE1 gestionado por apk.
|
|
405948
405987
|
`);
|
|
405949
405988
|
const latest = await getLatestVersion(channel2);
|
|
405950
|
-
if (latest && !gte({ VERSION: "0.2.
|
|
405951
|
-
writeToStdout(`Actualizaci\xF3n disponible: ${{ VERSION: "0.2.
|
|
405989
|
+
if (latest && !gte({ VERSION: "0.2.79", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
|
|
405990
|
+
writeToStdout(`Actualizaci\xF3n disponible: ${{ VERSION: "0.2.79", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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}
|
|
405952
405991
|
`);
|
|
405953
405992
|
writeToStdout(`
|
|
405954
405993
|
`);
|
|
@@ -406013,11 +406052,11 @@ async function update() {
|
|
|
406013
406052
|
`);
|
|
406014
406053
|
await gracefulShutdown(1);
|
|
406015
406054
|
}
|
|
406016
|
-
if (result.latestVersion === { VERSION: "0.2.
|
|
406017
|
-
writeToStdout(source_default.green(`Theus ya est\xE1 al d\xEDa (${{ VERSION: "0.2.
|
|
406055
|
+
if (result.latestVersion === { VERSION: "0.2.79", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION) {
|
|
406056
|
+
writeToStdout(source_default.green(`Theus ya est\xE1 al d\xEDa (${{ VERSION: "0.2.79", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION})`) + `
|
|
406018
406057
|
`);
|
|
406019
406058
|
} else {
|
|
406020
|
-
writeToStdout(source_default.green(`Actualizado correctamente de ${{ VERSION: "0.2.
|
|
406059
|
+
writeToStdout(source_default.green(`Actualizado correctamente de ${{ VERSION: "0.2.79", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION} a la versi\xF3n ${result.latestVersion}`) + `
|
|
406021
406060
|
`);
|
|
406022
406061
|
await regenerateCompletionCache();
|
|
406023
406062
|
}
|
|
@@ -406036,9 +406075,9 @@ async function update() {
|
|
|
406036
406075
|
await removeInstalledSymlink();
|
|
406037
406076
|
}
|
|
406038
406077
|
logForDebugging("update: Checking npm registry for latest version");
|
|
406039
|
-
logForDebugging(`update: Package URL: ${{ VERSION: "0.2.
|
|
406078
|
+
logForDebugging(`update: Package URL: ${{ VERSION: "0.2.79", BUILD_TIME: "1970-01-01T00:00:00.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}`);
|
|
406040
406079
|
const npmTag = channel2 === "stable" ? "stable" : "latest";
|
|
406041
|
-
const npmCommand = `npm view ${{ VERSION: "0.2.
|
|
406080
|
+
const npmCommand = `npm view ${{ VERSION: "0.2.79", BUILD_TIME: "1970-01-01T00:00:00.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`;
|
|
406042
406081
|
logForDebugging(`update: Running: ${npmCommand}`);
|
|
406043
406082
|
const latestVersion = await getLatestVersion(channel2);
|
|
406044
406083
|
logForDebugging(`update: Latest version from npm: ${latestVersion || "FAILED"}`);
|
|
@@ -406058,7 +406097,7 @@ async function update() {
|
|
|
406058
406097
|
`);
|
|
406059
406098
|
process.stderr.write(` \u2022 Un proxy o firewall corporativo bloquea npm
|
|
406060
406099
|
`);
|
|
406061
|
-
if ({ VERSION: "0.2.
|
|
406100
|
+
if ({ VERSION: "0.2.79", BUILD_TIME: "1970-01-01T00:00:00.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.79", BUILD_TIME: "1970-01-01T00:00:00.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")) {
|
|
406062
406101
|
process.stderr.write(` \u2022 Compilaci\xF3n interna/de desarrollo no publicada en npm
|
|
406063
406102
|
`);
|
|
406064
406103
|
}
|
|
@@ -406070,19 +406109,19 @@ async function update() {
|
|
|
406070
406109
|
`);
|
|
406071
406110
|
process.stderr.write(` \u2022 Ejecuta con el flag --debug para m\xE1s detalle
|
|
406072
406111
|
`);
|
|
406073
|
-
const packageName = { VERSION: "0.2.
|
|
406112
|
+
const packageName = { VERSION: "0.2.79", BUILD_TIME: "1970-01-01T00:00:00.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";
|
|
406074
406113
|
process.stderr.write(` \u2022 Comprueba a mano: npm view ${packageName} version
|
|
406075
406114
|
`);
|
|
406076
406115
|
process.stderr.write(` \u2022 Comprueba si te falta iniciar sesi\xF3n: npm whoami
|
|
406077
406116
|
`);
|
|
406078
406117
|
await gracefulShutdown(1);
|
|
406079
406118
|
}
|
|
406080
|
-
if (gte({ VERSION: "0.2.
|
|
406081
|
-
writeToStdout(source_default.green(`Theus ya est\xE1 al d\xEDa (${{ VERSION: "0.2.
|
|
406119
|
+
if (gte({ VERSION: "0.2.79", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
|
|
406120
|
+
writeToStdout(source_default.green(`Theus ya est\xE1 al d\xEDa (${{ VERSION: "0.2.79", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION})`) + `
|
|
406082
406121
|
`);
|
|
406083
406122
|
await gracefulShutdown(0);
|
|
406084
406123
|
}
|
|
406085
|
-
writeToStdout(`Nueva versi\xF3n disponible: ${latestVersion} (actual: ${{ VERSION: "0.2.
|
|
406124
|
+
writeToStdout(`Nueva versi\xF3n disponible: ${latestVersion} (actual: ${{ VERSION: "0.2.79", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION})
|
|
406086
406125
|
`);
|
|
406087
406126
|
writeToStdout(`Instalando la actualizaci\xF3n...
|
|
406088
406127
|
`);
|
|
@@ -406127,7 +406166,7 @@ async function update() {
|
|
|
406127
406166
|
logForDebugging(`update: Installation status: ${status2}`);
|
|
406128
406167
|
switch (status2) {
|
|
406129
406168
|
case "success":
|
|
406130
|
-
writeToStdout(source_default.green(`Actualizado correctamente de ${{ VERSION: "0.2.
|
|
406169
|
+
writeToStdout(source_default.green(`Actualizado correctamente de ${{ VERSION: "0.2.79", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION} a la versi\xF3n ${latestVersion}`) + `
|
|
406131
406170
|
`);
|
|
406132
406171
|
await regenerateCompletionCache();
|
|
406133
406172
|
break;
|
|
@@ -406137,7 +406176,7 @@ async function update() {
|
|
|
406137
406176
|
if (useLocalUpdate) {
|
|
406138
406177
|
process.stderr.write(`Prueba a actualizar a mano con:
|
|
406139
406178
|
`);
|
|
406140
|
-
process.stderr.write(` cd ~/.theus/local && npm update ${{ VERSION: "0.2.
|
|
406179
|
+
process.stderr.write(` cd ~/.theus/local && npm update ${{ VERSION: "0.2.79", BUILD_TIME: "1970-01-01T00:00:00.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}
|
|
406141
406180
|
`);
|
|
406142
406181
|
} else {
|
|
406143
406182
|
process.stderr.write(`Prueba con sudo o corrige los permisos de npm
|
|
@@ -406153,7 +406192,7 @@ async function update() {
|
|
|
406153
406192
|
if (useLocalUpdate) {
|
|
406154
406193
|
process.stderr.write(`Prueba a actualizar a mano con:
|
|
406155
406194
|
`);
|
|
406156
|
-
process.stderr.write(` cd ~/.theus/local && npm update ${{ VERSION: "0.2.
|
|
406195
|
+
process.stderr.write(` cd ~/.theus/local && npm update ${{ VERSION: "0.2.79", BUILD_TIME: "1970-01-01T00:00:00.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}
|
|
406157
406196
|
`);
|
|
406158
406197
|
} else {
|
|
406159
406198
|
process.stderr.write(`O p\xE1sate a la instalaci\xF3n nativa con: theus install
|
|
@@ -415578,7 +415617,7 @@ var init_sessionStorage = __esm(() => {
|
|
|
415578
415617
|
init_settings2();
|
|
415579
415618
|
init_slowOperations();
|
|
415580
415619
|
init_uuid();
|
|
415581
|
-
VERSION4 = { VERSION: "0.2.
|
|
415620
|
+
VERSION4 = { VERSION: "0.2.79", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION;
|
|
415582
415621
|
MAX_TOMBSTONE_REWRITE_BYTES = 50 * 1024 * 1024;
|
|
415583
415622
|
SKIP_FIRST_PROMPT_PATTERN2 = /^(?:\s*<[a-z][\w-]*[\s>]|\[Request interrupted by user[^\]]*\])/;
|
|
415584
415623
|
EPHEMERAL_PROGRESS_TYPES = new Set([
|
|
@@ -416783,7 +416822,7 @@ var init_filesystem = __esm(() => {
|
|
|
416783
416822
|
});
|
|
416784
416823
|
getBundledSkillsRoot = memoize_default(function getBundledSkillsRoot2() {
|
|
416785
416824
|
const nonce = randomBytes21(16).toString("hex");
|
|
416786
|
-
return join154(getTheusTempDir(), "bundled-skills", { VERSION: "0.2.
|
|
416825
|
+
return join154(getTheusTempDir(), "bundled-skills", { VERSION: "0.2.79", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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);
|
|
416787
416826
|
});
|
|
416788
416827
|
getResolvedWorkingDirPaths = memoize_default(getPathsForPermissionCheck);
|
|
416789
416828
|
});
|
|
@@ -428960,7 +428999,7 @@ async function handleMemories(state2) {
|
|
|
428960
428999
|
async function runProjectContextMcpServer() {
|
|
428961
429000
|
const projectRoot = process.env.THEUS_PROJECT_ROOT || process.cwd();
|
|
428962
429001
|
const state2 = new ProjectContextState(projectRoot);
|
|
428963
|
-
const server2 = new Server({ name: SERVER_NAME, version: { VERSION: "0.2.
|
|
429002
|
+
const server2 = new Server({ name: SERVER_NAME, version: { VERSION: "0.2.79", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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: {} } });
|
|
428964
429003
|
server2.setRequestHandler(ListToolsRequestSchema, async () => ({
|
|
428965
429004
|
tools: TOOL_DEFINITIONS.map((t) => ({
|
|
428966
429005
|
name: t.name,
|
|
@@ -431637,7 +431676,7 @@ async function runTitanFleetWorker(args) {
|
|
|
431637
431676
|
max_concurrency: maxConcurrency,
|
|
431638
431677
|
runtime: {
|
|
431639
431678
|
name: "theus-cli",
|
|
431640
|
-
version: { VERSION: "0.2.
|
|
431679
|
+
version: { VERSION: "0.2.79", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
|
|
431641
431680
|
}
|
|
431642
431681
|
});
|
|
431643
431682
|
const client2 = new TitanFleetClient({
|
|
@@ -433528,7 +433567,7 @@ function createBridgeLogger(options2) {
|
|
|
433528
433567
|
connectUrl = buildBridgeConnectUrl(environmentId, cachedIngressUrl);
|
|
433529
433568
|
regenerateQr(connectUrl);
|
|
433530
433569
|
if (verbose) {
|
|
433531
|
-
write(source_default.dim(`Remote Control`) + ` v${{ VERSION: "0.2.
|
|
433570
|
+
write(source_default.dim(`Remote Control`) + ` v${{ VERSION: "0.2.79", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION}
|
|
433532
433571
|
`);
|
|
433533
433572
|
}
|
|
433534
433573
|
if (verbose) {
|
|
@@ -434501,7 +434540,7 @@ function appendToLog(path19, message) {
|
|
|
434501
434540
|
cwd: getFsImplementation().cwd(),
|
|
434502
434541
|
userType: "external",
|
|
434503
434542
|
sessionId: getSessionId(),
|
|
434504
|
-
version: { VERSION: "0.2.
|
|
434543
|
+
version: { VERSION: "0.2.79", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
|
|
434505
434544
|
};
|
|
434506
434545
|
getLogWriter(path19).write(messageWithTimestamp);
|
|
434507
434546
|
}
|
|
@@ -435762,7 +435801,7 @@ Spawn mode for this project:
|
|
|
435762
435801
|
const api2 = createBridgeApiClient({
|
|
435763
435802
|
baseUrl,
|
|
435764
435803
|
getAccessToken: getBridgeAccessToken2,
|
|
435765
|
-
runnerVersion: { VERSION: "0.2.
|
|
435804
|
+
runnerVersion: { VERSION: "0.2.79", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
|
|
435766
435805
|
onDebug: logForDebugging,
|
|
435767
435806
|
onAuth401: handleOAuth401Error2,
|
|
435768
435807
|
getTrustedDeviceToken
|
|
@@ -436000,7 +436039,7 @@ async function runBridgeHeadless(opts, signal) {
|
|
|
436000
436039
|
const api2 = createBridgeApiClient({
|
|
436001
436040
|
baseUrl,
|
|
436002
436041
|
getAccessToken: opts.getAccessToken,
|
|
436003
|
-
runnerVersion: { VERSION: "0.2.
|
|
436042
|
+
runnerVersion: { VERSION: "0.2.79", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
|
|
436004
436043
|
onDebug: log2,
|
|
436005
436044
|
onAuth401: opts.onAuth401,
|
|
436006
436045
|
getTrustedDeviceToken
|
|
@@ -436126,7 +436165,7 @@ var init_bridgeMain = __esm(() => {
|
|
|
436126
436165
|
};
|
|
436127
436166
|
});
|
|
436128
436167
|
|
|
436129
|
-
// node_modules
|
|
436168
|
+
// node_modules/commander/lib/error.js
|
|
436130
436169
|
var require_error = __commonJS((exports) => {
|
|
436131
436170
|
class CommanderError extends Error {
|
|
436132
436171
|
constructor(exitCode, code, message) {
|
|
@@ -436150,7 +436189,7 @@ var require_error = __commonJS((exports) => {
|
|
|
436150
436189
|
exports.InvalidArgumentError = InvalidArgumentError;
|
|
436151
436190
|
});
|
|
436152
436191
|
|
|
436153
|
-
// node_modules
|
|
436192
|
+
// node_modules/commander/lib/argument.js
|
|
436154
436193
|
var require_argument = __commonJS((exports) => {
|
|
436155
436194
|
var { InvalidArgumentError } = require_error();
|
|
436156
436195
|
|
|
@@ -436229,17 +436268,21 @@ var require_argument = __commonJS((exports) => {
|
|
|
436229
436268
|
exports.humanReadableArgName = humanReadableArgName;
|
|
436230
436269
|
});
|
|
436231
436270
|
|
|
436232
|
-
// node_modules
|
|
436271
|
+
// node_modules/commander/lib/help.js
|
|
436233
436272
|
var require_help = __commonJS((exports) => {
|
|
436234
436273
|
var { humanReadableArgName } = require_argument();
|
|
436235
436274
|
|
|
436236
436275
|
class Help {
|
|
436237
436276
|
constructor() {
|
|
436238
436277
|
this.helpWidth = undefined;
|
|
436278
|
+
this.minWidthToWrap = 40;
|
|
436239
436279
|
this.sortSubcommands = false;
|
|
436240
436280
|
this.sortOptions = false;
|
|
436241
436281
|
this.showGlobalOptions = false;
|
|
436242
436282
|
}
|
|
436283
|
+
prepareContext(contextOptions) {
|
|
436284
|
+
this.helpWidth = this.helpWidth ?? contextOptions.helpWidth ?? 80;
|
|
436285
|
+
}
|
|
436243
436286
|
visibleCommands(cmd) {
|
|
436244
436287
|
const visibleCommands = cmd.commands.filter((cmd2) => !cmd2._hidden);
|
|
436245
436288
|
const helpCommand = cmd._getHelpCommand();
|
|
@@ -436314,22 +436357,22 @@ var require_help = __commonJS((exports) => {
|
|
|
436314
436357
|
}
|
|
436315
436358
|
longestSubcommandTermLength(cmd, helper) {
|
|
436316
436359
|
return helper.visibleCommands(cmd).reduce((max2, command9) => {
|
|
436317
|
-
return Math.max(max2, helper.subcommandTerm(command9)
|
|
436360
|
+
return Math.max(max2, this.displayWidth(helper.styleSubcommandTerm(helper.subcommandTerm(command9))));
|
|
436318
436361
|
}, 0);
|
|
436319
436362
|
}
|
|
436320
436363
|
longestOptionTermLength(cmd, helper) {
|
|
436321
436364
|
return helper.visibleOptions(cmd).reduce((max2, option) => {
|
|
436322
|
-
return Math.max(max2, helper.optionTerm(option)
|
|
436365
|
+
return Math.max(max2, this.displayWidth(helper.styleOptionTerm(helper.optionTerm(option))));
|
|
436323
436366
|
}, 0);
|
|
436324
436367
|
}
|
|
436325
436368
|
longestGlobalOptionTermLength(cmd, helper) {
|
|
436326
436369
|
return helper.visibleGlobalOptions(cmd).reduce((max2, option) => {
|
|
436327
|
-
return Math.max(max2, helper.optionTerm(option)
|
|
436370
|
+
return Math.max(max2, this.displayWidth(helper.styleOptionTerm(helper.optionTerm(option))));
|
|
436328
436371
|
}, 0);
|
|
436329
436372
|
}
|
|
436330
436373
|
longestArgumentTermLength(cmd, helper) {
|
|
436331
436374
|
return helper.visibleArguments(cmd).reduce((max2, argument) => {
|
|
436332
|
-
return Math.max(max2, helper.argumentTerm(argument)
|
|
436375
|
+
return Math.max(max2, this.displayWidth(helper.styleArgumentTerm(helper.argumentTerm(argument))));
|
|
436333
436376
|
}, 0);
|
|
436334
436377
|
}
|
|
436335
436378
|
commandUsage(cmd) {
|
|
@@ -436380,105 +436423,202 @@ var require_help = __commonJS((exports) => {
|
|
|
436380
436423
|
extraInfo.push(`default: ${argument.defaultValueDescription || JSON.stringify(argument.defaultValue)}`);
|
|
436381
436424
|
}
|
|
436382
436425
|
if (extraInfo.length > 0) {
|
|
436383
|
-
const
|
|
436426
|
+
const extraDescription = `(${extraInfo.join(", ")})`;
|
|
436384
436427
|
if (argument.description) {
|
|
436385
|
-
return `${argument.description} ${
|
|
436428
|
+
return `${argument.description} ${extraDescription}`;
|
|
436386
436429
|
}
|
|
436387
|
-
return
|
|
436430
|
+
return extraDescription;
|
|
436388
436431
|
}
|
|
436389
436432
|
return argument.description;
|
|
436390
436433
|
}
|
|
436391
436434
|
formatHelp(cmd, helper) {
|
|
436392
436435
|
const termWidth = helper.padWidth(cmd, helper);
|
|
436393
|
-
const helpWidth = helper.helpWidth
|
|
436394
|
-
|
|
436395
|
-
|
|
436396
|
-
function formatItem(term, description) {
|
|
436397
|
-
if (description) {
|
|
436398
|
-
const fullText = `${term.padEnd(termWidth + itemSeparatorWidth)}${description}`;
|
|
436399
|
-
return helper.wrap(fullText, helpWidth - itemIndentWidth, termWidth + itemSeparatorWidth);
|
|
436400
|
-
}
|
|
436401
|
-
return term;
|
|
436402
|
-
}
|
|
436403
|
-
function formatList(textArray) {
|
|
436404
|
-
return textArray.join(`
|
|
436405
|
-
`).replace(/^/gm, " ".repeat(itemIndentWidth));
|
|
436436
|
+
const helpWidth = helper.helpWidth ?? 80;
|
|
436437
|
+
function callFormatItem(term, description) {
|
|
436438
|
+
return helper.formatItem(term, termWidth, description, helper);
|
|
436406
436439
|
}
|
|
436407
|
-
let output = [
|
|
436440
|
+
let output = [
|
|
436441
|
+
`${helper.styleTitle("Usage:")} ${helper.styleUsage(helper.commandUsage(cmd))}`,
|
|
436442
|
+
""
|
|
436443
|
+
];
|
|
436408
436444
|
const commandDescription = helper.commandDescription(cmd);
|
|
436409
436445
|
if (commandDescription.length > 0) {
|
|
436410
436446
|
output = output.concat([
|
|
436411
|
-
helper.
|
|
436447
|
+
helper.boxWrap(helper.styleCommandDescription(commandDescription), helpWidth),
|
|
436412
436448
|
""
|
|
436413
436449
|
]);
|
|
436414
436450
|
}
|
|
436415
436451
|
const argumentList = helper.visibleArguments(cmd).map((argument) => {
|
|
436416
|
-
return
|
|
436452
|
+
return callFormatItem(helper.styleArgumentTerm(helper.argumentTerm(argument)), helper.styleArgumentDescription(helper.argumentDescription(argument)));
|
|
436417
436453
|
});
|
|
436418
436454
|
if (argumentList.length > 0) {
|
|
436419
|
-
output = output.concat([
|
|
436455
|
+
output = output.concat([
|
|
436456
|
+
helper.styleTitle("Arguments:"),
|
|
436457
|
+
...argumentList,
|
|
436458
|
+
""
|
|
436459
|
+
]);
|
|
436420
436460
|
}
|
|
436421
436461
|
const optionList = helper.visibleOptions(cmd).map((option) => {
|
|
436422
|
-
return
|
|
436462
|
+
return callFormatItem(helper.styleOptionTerm(helper.optionTerm(option)), helper.styleOptionDescription(helper.optionDescription(option)));
|
|
436423
436463
|
});
|
|
436424
436464
|
if (optionList.length > 0) {
|
|
436425
|
-
output = output.concat([
|
|
436465
|
+
output = output.concat([
|
|
436466
|
+
helper.styleTitle("Options:"),
|
|
436467
|
+
...optionList,
|
|
436468
|
+
""
|
|
436469
|
+
]);
|
|
436426
436470
|
}
|
|
436427
|
-
if (
|
|
436471
|
+
if (helper.showGlobalOptions) {
|
|
436428
436472
|
const globalOptionList = helper.visibleGlobalOptions(cmd).map((option) => {
|
|
436429
|
-
return
|
|
436473
|
+
return callFormatItem(helper.styleOptionTerm(helper.optionTerm(option)), helper.styleOptionDescription(helper.optionDescription(option)));
|
|
436430
436474
|
});
|
|
436431
436475
|
if (globalOptionList.length > 0) {
|
|
436432
436476
|
output = output.concat([
|
|
436433
|
-
"Global Options:",
|
|
436434
|
-
|
|
436477
|
+
helper.styleTitle("Global Options:"),
|
|
436478
|
+
...globalOptionList,
|
|
436435
436479
|
""
|
|
436436
436480
|
]);
|
|
436437
436481
|
}
|
|
436438
436482
|
}
|
|
436439
436483
|
const commandList = helper.visibleCommands(cmd).map((cmd2) => {
|
|
436440
|
-
return
|
|
436484
|
+
return callFormatItem(helper.styleSubcommandTerm(helper.subcommandTerm(cmd2)), helper.styleSubcommandDescription(helper.subcommandDescription(cmd2)));
|
|
436441
436485
|
});
|
|
436442
436486
|
if (commandList.length > 0) {
|
|
436443
|
-
output = output.concat([
|
|
436487
|
+
output = output.concat([
|
|
436488
|
+
helper.styleTitle("Commands:"),
|
|
436489
|
+
...commandList,
|
|
436490
|
+
""
|
|
436491
|
+
]);
|
|
436444
436492
|
}
|
|
436445
436493
|
return output.join(`
|
|
436446
436494
|
`);
|
|
436447
436495
|
}
|
|
436496
|
+
displayWidth(str2) {
|
|
436497
|
+
return stripColor(str2).length;
|
|
436498
|
+
}
|
|
436499
|
+
styleTitle(str2) {
|
|
436500
|
+
return str2;
|
|
436501
|
+
}
|
|
436502
|
+
styleUsage(str2) {
|
|
436503
|
+
return str2.split(" ").map((word) => {
|
|
436504
|
+
if (word === "[options]")
|
|
436505
|
+
return this.styleOptionText(word);
|
|
436506
|
+
if (word === "[command]")
|
|
436507
|
+
return this.styleSubcommandText(word);
|
|
436508
|
+
if (word[0] === "[" || word[0] === "<")
|
|
436509
|
+
return this.styleArgumentText(word);
|
|
436510
|
+
return this.styleCommandText(word);
|
|
436511
|
+
}).join(" ");
|
|
436512
|
+
}
|
|
436513
|
+
styleCommandDescription(str2) {
|
|
436514
|
+
return this.styleDescriptionText(str2);
|
|
436515
|
+
}
|
|
436516
|
+
styleOptionDescription(str2) {
|
|
436517
|
+
return this.styleDescriptionText(str2);
|
|
436518
|
+
}
|
|
436519
|
+
styleSubcommandDescription(str2) {
|
|
436520
|
+
return this.styleDescriptionText(str2);
|
|
436521
|
+
}
|
|
436522
|
+
styleArgumentDescription(str2) {
|
|
436523
|
+
return this.styleDescriptionText(str2);
|
|
436524
|
+
}
|
|
436525
|
+
styleDescriptionText(str2) {
|
|
436526
|
+
return str2;
|
|
436527
|
+
}
|
|
436528
|
+
styleOptionTerm(str2) {
|
|
436529
|
+
return this.styleOptionText(str2);
|
|
436530
|
+
}
|
|
436531
|
+
styleSubcommandTerm(str2) {
|
|
436532
|
+
return str2.split(" ").map((word) => {
|
|
436533
|
+
if (word === "[options]")
|
|
436534
|
+
return this.styleOptionText(word);
|
|
436535
|
+
if (word[0] === "[" || word[0] === "<")
|
|
436536
|
+
return this.styleArgumentText(word);
|
|
436537
|
+
return this.styleSubcommandText(word);
|
|
436538
|
+
}).join(" ");
|
|
436539
|
+
}
|
|
436540
|
+
styleArgumentTerm(str2) {
|
|
436541
|
+
return this.styleArgumentText(str2);
|
|
436542
|
+
}
|
|
436543
|
+
styleOptionText(str2) {
|
|
436544
|
+
return str2;
|
|
436545
|
+
}
|
|
436546
|
+
styleArgumentText(str2) {
|
|
436547
|
+
return str2;
|
|
436548
|
+
}
|
|
436549
|
+
styleSubcommandText(str2) {
|
|
436550
|
+
return str2;
|
|
436551
|
+
}
|
|
436552
|
+
styleCommandText(str2) {
|
|
436553
|
+
return str2;
|
|
436554
|
+
}
|
|
436448
436555
|
padWidth(cmd, helper) {
|
|
436449
436556
|
return Math.max(helper.longestOptionTermLength(cmd, helper), helper.longestGlobalOptionTermLength(cmd, helper), helper.longestSubcommandTermLength(cmd, helper), helper.longestArgumentTermLength(cmd, helper));
|
|
436450
436557
|
}
|
|
436451
|
-
|
|
436452
|
-
|
|
436453
|
-
|
|
436454
|
-
|
|
436455
|
-
|
|
436456
|
-
const
|
|
436457
|
-
if (
|
|
436558
|
+
preformatted(str2) {
|
|
436559
|
+
return /\n[^\S\r\n]/.test(str2);
|
|
436560
|
+
}
|
|
436561
|
+
formatItem(term, termWidth, description, helper) {
|
|
436562
|
+
const itemIndent = 2;
|
|
436563
|
+
const itemIndentStr = " ".repeat(itemIndent);
|
|
436564
|
+
if (!description)
|
|
436565
|
+
return itemIndentStr + term;
|
|
436566
|
+
const paddedTerm = term.padEnd(termWidth + term.length - helper.displayWidth(term));
|
|
436567
|
+
const spacerWidth = 2;
|
|
436568
|
+
const helpWidth = this.helpWidth ?? 80;
|
|
436569
|
+
const remainingWidth = helpWidth - termWidth - spacerWidth - itemIndent;
|
|
436570
|
+
let formattedDescription;
|
|
436571
|
+
if (remainingWidth < this.minWidthToWrap || helper.preformatted(description)) {
|
|
436572
|
+
formattedDescription = description;
|
|
436573
|
+
} else {
|
|
436574
|
+
const wrappedDescription = helper.boxWrap(description, remainingWidth);
|
|
436575
|
+
formattedDescription = wrappedDescription.replace(/\n/g, `
|
|
436576
|
+
` + " ".repeat(termWidth + spacerWidth));
|
|
436577
|
+
}
|
|
436578
|
+
return itemIndentStr + paddedTerm + " ".repeat(spacerWidth) + formattedDescription.replace(/\n/g, `
|
|
436579
|
+
${itemIndentStr}`);
|
|
436580
|
+
}
|
|
436581
|
+
boxWrap(str2, width) {
|
|
436582
|
+
if (width < this.minWidthToWrap)
|
|
436458
436583
|
return str2;
|
|
436459
|
-
const
|
|
436460
|
-
const
|
|
436461
|
-
|
|
436462
|
-
|
|
436463
|
-
|
|
436464
|
-
|
|
436465
|
-
|
|
436466
|
-
|
|
436467
|
-
|
|
436468
|
-
|
|
436469
|
-
|
|
436470
|
-
|
|
436471
|
-
|
|
436472
|
-
|
|
436473
|
-
|
|
436474
|
-
|
|
436584
|
+
const rawLines = str2.split(/\r\n|\n/);
|
|
436585
|
+
const chunkPattern = /[\s]*[^\s]+/g;
|
|
436586
|
+
const wrappedLines = [];
|
|
436587
|
+
rawLines.forEach((line) => {
|
|
436588
|
+
const chunks = line.match(chunkPattern);
|
|
436589
|
+
if (chunks === null) {
|
|
436590
|
+
wrappedLines.push("");
|
|
436591
|
+
return;
|
|
436592
|
+
}
|
|
436593
|
+
let sumChunks = [chunks.shift()];
|
|
436594
|
+
let sumWidth = this.displayWidth(sumChunks[0]);
|
|
436595
|
+
chunks.forEach((chunk2) => {
|
|
436596
|
+
const visibleWidth = this.displayWidth(chunk2);
|
|
436597
|
+
if (sumWidth + visibleWidth <= width) {
|
|
436598
|
+
sumChunks.push(chunk2);
|
|
436599
|
+
sumWidth += visibleWidth;
|
|
436600
|
+
return;
|
|
436601
|
+
}
|
|
436602
|
+
wrappedLines.push(sumChunks.join(""));
|
|
436603
|
+
const nextChunk = chunk2.trimStart();
|
|
436604
|
+
sumChunks = [nextChunk];
|
|
436605
|
+
sumWidth = this.displayWidth(nextChunk);
|
|
436606
|
+
});
|
|
436607
|
+
wrappedLines.push(sumChunks.join(""));
|
|
436608
|
+
});
|
|
436609
|
+
return wrappedLines.join(`
|
|
436475
436610
|
`);
|
|
436476
436611
|
}
|
|
436477
436612
|
}
|
|
436613
|
+
function stripColor(str2) {
|
|
436614
|
+
const sgrPattern = /\x1b\[\d*(;\d*)*m/g;
|
|
436615
|
+
return str2.replace(sgrPattern, "");
|
|
436616
|
+
}
|
|
436478
436617
|
exports.Help = Help;
|
|
436618
|
+
exports.stripColor = stripColor;
|
|
436479
436619
|
});
|
|
436480
436620
|
|
|
436481
|
-
// node_modules
|
|
436621
|
+
// node_modules/commander/lib/option.js
|
|
436482
436622
|
var require_option = __commonJS((exports) => {
|
|
436483
436623
|
var { InvalidArgumentError } = require_error();
|
|
436484
436624
|
|
|
@@ -436570,7 +436710,10 @@ var require_option = __commonJS((exports) => {
|
|
|
436570
436710
|
return this.short.replace(/^-/, "");
|
|
436571
436711
|
}
|
|
436572
436712
|
attributeName() {
|
|
436573
|
-
|
|
436713
|
+
if (this.negate) {
|
|
436714
|
+
return camelcase(this.name().replace(/^no-/, ""));
|
|
436715
|
+
}
|
|
436716
|
+
return camelcase(this.name());
|
|
436574
436717
|
}
|
|
436575
436718
|
is(arg) {
|
|
436576
436719
|
return this.short === arg || this.long === arg;
|
|
@@ -436615,21 +436758,45 @@ var require_option = __commonJS((exports) => {
|
|
|
436615
436758
|
function splitOptionFlags(flags) {
|
|
436616
436759
|
let shortFlag;
|
|
436617
436760
|
let longFlag;
|
|
436618
|
-
const
|
|
436619
|
-
|
|
436761
|
+
const shortFlagExp = /^-[^-]$/;
|
|
436762
|
+
const longFlagExp = /^--[^-]/;
|
|
436763
|
+
const flagParts = flags.split(/[ |,]+/).concat("guard");
|
|
436764
|
+
if (shortFlagExp.test(flagParts[0]))
|
|
436765
|
+
shortFlag = flagParts.shift();
|
|
436766
|
+
if (longFlagExp.test(flagParts[0]))
|
|
436767
|
+
longFlag = flagParts.shift();
|
|
436768
|
+
if (!shortFlag && shortFlagExp.test(flagParts[0]))
|
|
436620
436769
|
shortFlag = flagParts.shift();
|
|
436621
|
-
|
|
436622
|
-
if (!shortFlag && /^-[^-]$/.test(longFlag)) {
|
|
436770
|
+
if (!shortFlag && longFlagExp.test(flagParts[0])) {
|
|
436623
436771
|
shortFlag = longFlag;
|
|
436624
|
-
longFlag =
|
|
436625
|
-
}
|
|
436772
|
+
longFlag = flagParts.shift();
|
|
436773
|
+
}
|
|
436774
|
+
if (flagParts[0].startsWith("-")) {
|
|
436775
|
+
const unsupportedFlag = flagParts[0];
|
|
436776
|
+
const baseError = `option creation failed due to '${unsupportedFlag}' in option flags '${flags}'`;
|
|
436777
|
+
if (/^-[^-][^-]/.test(unsupportedFlag))
|
|
436778
|
+
throw new Error(`${baseError}
|
|
436779
|
+
- a short flag is a single dash and a single character
|
|
436780
|
+
- either use a single dash and a single character (for a short flag)
|
|
436781
|
+
- or use a double dash for a long option (and can have two, like '--ws, --workspace')`);
|
|
436782
|
+
if (shortFlagExp.test(unsupportedFlag))
|
|
436783
|
+
throw new Error(`${baseError}
|
|
436784
|
+
- too many short flags`);
|
|
436785
|
+
if (longFlagExp.test(unsupportedFlag))
|
|
436786
|
+
throw new Error(`${baseError}
|
|
436787
|
+
- too many long flags`);
|
|
436788
|
+
throw new Error(`${baseError}
|
|
436789
|
+
- unrecognised flag format`);
|
|
436790
|
+
}
|
|
436791
|
+
if (shortFlag === undefined && longFlag === undefined)
|
|
436792
|
+
throw new Error(`option creation failed due to no flags found in '${flags}'.`);
|
|
436626
436793
|
return { shortFlag, longFlag };
|
|
436627
436794
|
}
|
|
436628
436795
|
exports.Option = Option;
|
|
436629
436796
|
exports.DualOptions = DualOptions;
|
|
436630
436797
|
});
|
|
436631
436798
|
|
|
436632
|
-
// node_modules
|
|
436799
|
+
// node_modules/commander/lib/suggestSimilar.js
|
|
436633
436800
|
var require_suggestSimilar = __commonJS((exports) => {
|
|
436634
436801
|
var maxDistance = 3;
|
|
436635
436802
|
function editDistance(a2, b) {
|
|
@@ -436702,7 +436869,7 @@ var require_suggestSimilar = __commonJS((exports) => {
|
|
|
436702
436869
|
exports.suggestSimilar = suggestSimilar;
|
|
436703
436870
|
});
|
|
436704
436871
|
|
|
436705
|
-
// node_modules
|
|
436872
|
+
// node_modules/commander/lib/command.js
|
|
436706
436873
|
var require_command = __commonJS((exports) => {
|
|
436707
436874
|
var EventEmitter5 = __require("events").EventEmitter;
|
|
436708
436875
|
var childProcess = __require("child_process");
|
|
@@ -436711,7 +436878,7 @@ var require_command = __commonJS((exports) => {
|
|
|
436711
436878
|
var process15 = __require("process");
|
|
436712
436879
|
var { Argument, humanReadableArgName } = require_argument();
|
|
436713
436880
|
var { CommanderError } = require_error();
|
|
436714
|
-
var { Help } = require_help();
|
|
436881
|
+
var { Help, stripColor } = require_help();
|
|
436715
436882
|
var { Option, DualOptions } = require_option();
|
|
436716
436883
|
var { suggestSimilar } = require_suggestSimilar();
|
|
436717
436884
|
|
|
@@ -436722,7 +436889,7 @@ var require_command = __commonJS((exports) => {
|
|
|
436722
436889
|
this.options = [];
|
|
436723
436890
|
this.parent = null;
|
|
436724
436891
|
this._allowUnknownOption = false;
|
|
436725
|
-
this._allowExcessArguments =
|
|
436892
|
+
this._allowExcessArguments = false;
|
|
436726
436893
|
this.registeredArguments = [];
|
|
436727
436894
|
this._args = this.registeredArguments;
|
|
436728
436895
|
this.args = [];
|
|
@@ -436749,12 +436916,16 @@ var require_command = __commonJS((exports) => {
|
|
|
436749
436916
|
this._lifeCycleHooks = {};
|
|
436750
436917
|
this._showHelpAfterError = false;
|
|
436751
436918
|
this._showSuggestionAfterError = true;
|
|
436919
|
+
this._savedState = null;
|
|
436752
436920
|
this._outputConfiguration = {
|
|
436753
436921
|
writeOut: (str2) => process15.stdout.write(str2),
|
|
436754
436922
|
writeErr: (str2) => process15.stderr.write(str2),
|
|
436923
|
+
outputError: (str2, write) => write(str2),
|
|
436755
436924
|
getOutHelpWidth: () => process15.stdout.isTTY ? process15.stdout.columns : undefined,
|
|
436756
436925
|
getErrHelpWidth: () => process15.stderr.isTTY ? process15.stderr.columns : undefined,
|
|
436757
|
-
|
|
436926
|
+
getOutHasColors: () => useColor() ?? (process15.stdout.isTTY && process15.stdout.hasColors?.()),
|
|
436927
|
+
getErrHasColors: () => useColor() ?? (process15.stderr.isTTY && process15.stderr.hasColors?.()),
|
|
436928
|
+
stripColor: (str2) => stripColor(str2)
|
|
436758
436929
|
};
|
|
436759
436930
|
this._hidden = false;
|
|
436760
436931
|
this._helpOption = undefined;
|
|
@@ -437186,15 +437357,53 @@ Expecting one of '${allowedValues.join("', '")}'`);
|
|
|
437186
437357
|
return userArgs;
|
|
437187
437358
|
}
|
|
437188
437359
|
parse(argv, parseOptions) {
|
|
437360
|
+
this._prepareForParse();
|
|
437189
437361
|
const userArgs = this._prepareUserArgs(argv, parseOptions);
|
|
437190
437362
|
this._parseCommand([], userArgs);
|
|
437191
437363
|
return this;
|
|
437192
437364
|
}
|
|
437193
437365
|
async parseAsync(argv, parseOptions) {
|
|
437366
|
+
this._prepareForParse();
|
|
437194
437367
|
const userArgs = this._prepareUserArgs(argv, parseOptions);
|
|
437195
437368
|
await this._parseCommand([], userArgs);
|
|
437196
437369
|
return this;
|
|
437197
437370
|
}
|
|
437371
|
+
_prepareForParse() {
|
|
437372
|
+
if (this._savedState === null) {
|
|
437373
|
+
this.saveStateBeforeParse();
|
|
437374
|
+
} else {
|
|
437375
|
+
this.restoreStateBeforeParse();
|
|
437376
|
+
}
|
|
437377
|
+
}
|
|
437378
|
+
saveStateBeforeParse() {
|
|
437379
|
+
this._savedState = {
|
|
437380
|
+
_name: this._name,
|
|
437381
|
+
_optionValues: { ...this._optionValues },
|
|
437382
|
+
_optionValueSources: { ...this._optionValueSources }
|
|
437383
|
+
};
|
|
437384
|
+
}
|
|
437385
|
+
restoreStateBeforeParse() {
|
|
437386
|
+
if (this._storeOptionsAsProperties)
|
|
437387
|
+
throw new Error(`Can not call parse again when storeOptionsAsProperties is true.
|
|
437388
|
+
- either make a new Command for each call to parse, or stop storing options as properties`);
|
|
437389
|
+
this._name = this._savedState._name;
|
|
437390
|
+
this._scriptPath = null;
|
|
437391
|
+
this.rawArgs = [];
|
|
437392
|
+
this._optionValues = { ...this._savedState._optionValues };
|
|
437393
|
+
this._optionValueSources = { ...this._savedState._optionValueSources };
|
|
437394
|
+
this.args = [];
|
|
437395
|
+
this.processedArgs = [];
|
|
437396
|
+
}
|
|
437397
|
+
_checkForMissingExecutable(executableFile, executableDir, subcommandName) {
|
|
437398
|
+
if (fs5.existsSync(executableFile))
|
|
437399
|
+
return;
|
|
437400
|
+
const executableDirMessage = executableDir ? `searched for local subcommand relative to directory '${executableDir}'` : "no directory for search for local subcommand, use .executableDir() to supply a custom directory";
|
|
437401
|
+
const executableMissing = `'${executableFile}' does not exist
|
|
437402
|
+
- if '${subcommandName}' is not meant to be an executable command, remove description parameter from '.command()' and use '.description()' instead
|
|
437403
|
+
- if the default executable name is not suitable, use the executableFile option to supply a custom name or path
|
|
437404
|
+
- ${executableDirMessage}`;
|
|
437405
|
+
throw new Error(executableMissing);
|
|
437406
|
+
}
|
|
437198
437407
|
_executeSubCommand(subcommand, args) {
|
|
437199
437408
|
args = args.slice();
|
|
437200
437409
|
let launchWithNode = false;
|
|
@@ -437218,7 +437427,7 @@ Expecting one of '${allowedValues.join("', '")}'`);
|
|
|
437218
437427
|
let resolvedScriptPath;
|
|
437219
437428
|
try {
|
|
437220
437429
|
resolvedScriptPath = fs5.realpathSync(this._scriptPath);
|
|
437221
|
-
} catch
|
|
437430
|
+
} catch {
|
|
437222
437431
|
resolvedScriptPath = this._scriptPath;
|
|
437223
437432
|
}
|
|
437224
437433
|
executableDir = path19.resolve(path19.dirname(resolvedScriptPath), executableDir);
|
|
@@ -437244,6 +437453,7 @@ Expecting one of '${allowedValues.join("', '")}'`);
|
|
|
437244
437453
|
proc = childProcess.spawn(executableFile, args, { stdio: "inherit" });
|
|
437245
437454
|
}
|
|
437246
437455
|
} else {
|
|
437456
|
+
this._checkForMissingExecutable(executableFile, executableDir, subcommand._name);
|
|
437247
437457
|
args.unshift(executableFile);
|
|
437248
437458
|
args = incrementNodeInspectorPort(process15.execArgv).concat(args);
|
|
437249
437459
|
proc = childProcess.spawn(process15.execPath, args, { stdio: "inherit" });
|
|
@@ -437269,12 +437479,7 @@ Expecting one of '${allowedValues.join("', '")}'`);
|
|
|
437269
437479
|
});
|
|
437270
437480
|
proc.on("error", (err2) => {
|
|
437271
437481
|
if (err2.code === "ENOENT") {
|
|
437272
|
-
|
|
437273
|
-
const executableMissing = `'${executableFile}' does not exist
|
|
437274
|
-
- if '${subcommand._name}' is not meant to be an executable command, remove description parameter from '.command()' and use '.description()' instead
|
|
437275
|
-
- if the default executable name is not suitable, use the executableFile option to supply a custom name or path
|
|
437276
|
-
- ${executableDirMessage}`;
|
|
437277
|
-
throw new Error(executableMissing);
|
|
437482
|
+
this._checkForMissingExecutable(executableFile, executableDir, subcommand._name);
|
|
437278
437483
|
} else if (err2.code === "EACCES") {
|
|
437279
437484
|
throw new Error(`'${executableFile}' not executable`);
|
|
437280
437485
|
}
|
|
@@ -437292,6 +437497,7 @@ Expecting one of '${allowedValues.join("', '")}'`);
|
|
|
437292
437497
|
const subCommand = this._findCommand(commandName);
|
|
437293
437498
|
if (!subCommand)
|
|
437294
437499
|
this.help({ error: true });
|
|
437500
|
+
subCommand._prepareForParse();
|
|
437295
437501
|
let promiseChain;
|
|
437296
437502
|
promiseChain = this._chainOrCallSubCommandHook(promiseChain, subCommand, "preSubcommand");
|
|
437297
437503
|
promiseChain = this._chainOrCall(promiseChain, () => {
|
|
@@ -437810,23 +438016,38 @@ Expecting one of '${allowedValues.join("', '")}'`);
|
|
|
437810
438016
|
}
|
|
437811
438017
|
helpInformation(contextOptions) {
|
|
437812
438018
|
const helper = this.createHelp();
|
|
437813
|
-
|
|
437814
|
-
|
|
437815
|
-
|
|
437816
|
-
|
|
437817
|
-
|
|
437818
|
-
|
|
438019
|
+
const context3 = this._getOutputContext(contextOptions);
|
|
438020
|
+
helper.prepareContext({
|
|
438021
|
+
error: context3.error,
|
|
438022
|
+
helpWidth: context3.helpWidth,
|
|
438023
|
+
outputHasColors: context3.hasColors
|
|
438024
|
+
});
|
|
438025
|
+
const text2 = helper.formatHelp(this, helper);
|
|
438026
|
+
if (context3.hasColors)
|
|
438027
|
+
return text2;
|
|
438028
|
+
return this._outputConfiguration.stripColor(text2);
|
|
438029
|
+
}
|
|
438030
|
+
_getOutputContext(contextOptions) {
|
|
437819
438031
|
contextOptions = contextOptions || {};
|
|
437820
|
-
const
|
|
437821
|
-
let
|
|
437822
|
-
|
|
437823
|
-
|
|
438032
|
+
const error40 = !!contextOptions.error;
|
|
438033
|
+
let baseWrite;
|
|
438034
|
+
let hasColors2;
|
|
438035
|
+
let helpWidth;
|
|
438036
|
+
if (error40) {
|
|
438037
|
+
baseWrite = (str2) => this._outputConfiguration.writeErr(str2);
|
|
438038
|
+
hasColors2 = this._outputConfiguration.getErrHasColors();
|
|
438039
|
+
helpWidth = this._outputConfiguration.getErrHelpWidth();
|
|
437824
438040
|
} else {
|
|
437825
|
-
|
|
438041
|
+
baseWrite = (str2) => this._outputConfiguration.writeOut(str2);
|
|
438042
|
+
hasColors2 = this._outputConfiguration.getOutHasColors();
|
|
438043
|
+
helpWidth = this._outputConfiguration.getOutHelpWidth();
|
|
437826
438044
|
}
|
|
437827
|
-
|
|
437828
|
-
|
|
437829
|
-
|
|
438045
|
+
const write = (str2) => {
|
|
438046
|
+
if (!hasColors2)
|
|
438047
|
+
str2 = this._outputConfiguration.stripColor(str2);
|
|
438048
|
+
return baseWrite(str2);
|
|
438049
|
+
};
|
|
438050
|
+
return { error: error40, write, hasColors: hasColors2, helpWidth };
|
|
437830
438051
|
}
|
|
437831
438052
|
outputHelp(contextOptions) {
|
|
437832
438053
|
let deprecatedCallback;
|
|
@@ -437834,22 +438055,27 @@ Expecting one of '${allowedValues.join("', '")}'`);
|
|
|
437834
438055
|
deprecatedCallback = contextOptions;
|
|
437835
438056
|
contextOptions = undefined;
|
|
437836
438057
|
}
|
|
437837
|
-
const
|
|
437838
|
-
|
|
437839
|
-
|
|
437840
|
-
|
|
438058
|
+
const outputContext = this._getOutputContext(contextOptions);
|
|
438059
|
+
const eventContext = {
|
|
438060
|
+
error: outputContext.error,
|
|
438061
|
+
write: outputContext.write,
|
|
438062
|
+
command: this
|
|
438063
|
+
};
|
|
438064
|
+
this._getCommandAndAncestors().reverse().forEach((command9) => command9.emit("beforeAllHelp", eventContext));
|
|
438065
|
+
this.emit("beforeHelp", eventContext);
|
|
438066
|
+
let helpInformation = this.helpInformation({ error: outputContext.error });
|
|
437841
438067
|
if (deprecatedCallback) {
|
|
437842
438068
|
helpInformation = deprecatedCallback(helpInformation);
|
|
437843
438069
|
if (typeof helpInformation !== "string" && !Buffer.isBuffer(helpInformation)) {
|
|
437844
438070
|
throw new Error("outputHelp callback must return a string or a Buffer");
|
|
437845
438071
|
}
|
|
437846
438072
|
}
|
|
437847
|
-
|
|
438073
|
+
outputContext.write(helpInformation);
|
|
437848
438074
|
if (this._getHelpOption()?.long) {
|
|
437849
438075
|
this.emit(this._getHelpOption().long);
|
|
437850
438076
|
}
|
|
437851
|
-
this.emit("afterHelp",
|
|
437852
|
-
this._getCommandAndAncestors().forEach((command9) => command9.emit("afterAllHelp",
|
|
438077
|
+
this.emit("afterHelp", eventContext);
|
|
438078
|
+
this._getCommandAndAncestors().forEach((command9) => command9.emit("afterAllHelp", eventContext));
|
|
437853
438079
|
}
|
|
437854
438080
|
helpOption(flags, description) {
|
|
437855
438081
|
if (typeof flags === "boolean") {
|
|
@@ -437877,7 +438103,7 @@ Expecting one of '${allowedValues.join("', '")}'`);
|
|
|
437877
438103
|
}
|
|
437878
438104
|
help(contextOptions) {
|
|
437879
438105
|
this.outputHelp(contextOptions);
|
|
437880
|
-
let exitCode = process15.exitCode
|
|
438106
|
+
let exitCode = Number(process15.exitCode ?? 0);
|
|
437881
438107
|
if (exitCode === 0 && contextOptions && typeof contextOptions !== "function" && contextOptions.error) {
|
|
437882
438108
|
exitCode = 1;
|
|
437883
438109
|
}
|
|
@@ -437942,10 +438168,18 @@ Expecting one of '${allowedValues.join("', '")}'`);
|
|
|
437942
438168
|
return arg;
|
|
437943
438169
|
});
|
|
437944
438170
|
}
|
|
438171
|
+
function useColor() {
|
|
438172
|
+
if (process15.env.NO_COLOR || process15.env.FORCE_COLOR === "0" || process15.env.FORCE_COLOR === "false")
|
|
438173
|
+
return false;
|
|
438174
|
+
if (process15.env.FORCE_COLOR || process15.env.CLICOLOR_FORCE !== undefined)
|
|
438175
|
+
return true;
|
|
438176
|
+
return;
|
|
438177
|
+
}
|
|
437945
438178
|
exports.Command = Command;
|
|
438179
|
+
exports.useColor = useColor;
|
|
437946
438180
|
});
|
|
437947
438181
|
|
|
437948
|
-
// node_modules
|
|
438182
|
+
// node_modules/commander/index.js
|
|
437949
438183
|
var require_commander = __commonJS((exports) => {
|
|
437950
438184
|
var { Argument } = require_argument();
|
|
437951
438185
|
var { Command } = require_command();
|
|
@@ -439097,7 +439331,7 @@ function buildSystemInitMessage(inputs) {
|
|
|
439097
439331
|
slash_commands: inputs.commands.filter((c5) => c5.userInvocable !== false).map((c5) => c5.name),
|
|
439098
439332
|
apiKeySource: getTheusApiKeyWithSource().source,
|
|
439099
439333
|
betas: getSdkBetas(),
|
|
439100
|
-
theus_code_version: { VERSION: "0.2.
|
|
439334
|
+
theus_code_version: { VERSION: "0.2.79", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
|
|
439101
439335
|
output_style: outputStyle2,
|
|
439102
439336
|
agents: inputs.agents.map((agent) => agent.agentType),
|
|
439103
439337
|
skills: inputs.skills.filter((s) => s.userInvocable !== false).map((skill) => skill.name),
|
|
@@ -439137,8 +439371,8 @@ async function getEnvLessBridgeConfig() {
|
|
|
439137
439371
|
}
|
|
439138
439372
|
async function checkEnvLessBridgeMinVersion() {
|
|
439139
439373
|
const cfg = await getEnvLessBridgeConfig();
|
|
439140
|
-
if (cfg.min_version && lt({ VERSION: "0.2.
|
|
439141
|
-
return `Your version of Theus (${{ VERSION: "0.2.
|
|
439374
|
+
if (cfg.min_version && lt({ VERSION: "0.2.79", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
|
|
439375
|
+
return `Your version of Theus (${{ VERSION: "0.2.79", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.
|
|
439142
439376
|
Version ${cfg.min_version} or higher is required. Run \`theus update\` to update.`;
|
|
439143
439377
|
}
|
|
439144
439378
|
return null;
|
|
@@ -441462,7 +441696,7 @@ async function initBridgeCore(params) {
|
|
|
441462
441696
|
const rawApi = createBridgeApiClient({
|
|
441463
441697
|
baseUrl,
|
|
441464
441698
|
getAccessToken,
|
|
441465
|
-
runnerVersion: { VERSION: "0.2.
|
|
441699
|
+
runnerVersion: { VERSION: "0.2.79", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
|
|
441466
441700
|
onDebug: logForDebugging,
|
|
441467
441701
|
onAuth401,
|
|
441468
441702
|
getTrustedDeviceToken
|
|
@@ -458103,7 +458337,7 @@ var init_useVoiceEnabled = __esm(() => {
|
|
|
458103
458337
|
function getSemverPart(version3) {
|
|
458104
458338
|
return `${import_semver11.major(version3, { loose: true })}.${import_semver11.minor(version3, { loose: true })}.${import_semver11.patch(version3, { loose: true })}`;
|
|
458105
458339
|
}
|
|
458106
|
-
function useUpdateNotification(updatedVersion, initialVersion = { VERSION: "0.2.
|
|
458340
|
+
function useUpdateNotification(updatedVersion, initialVersion = { VERSION: "0.2.79", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION) {
|
|
458107
458341
|
const [lastNotifiedSemver, setLastNotifiedSemver] = import_react235.useState(() => getSemverPart(initialVersion));
|
|
458108
458342
|
if (!updatedVersion) {
|
|
458109
458343
|
return null;
|
|
@@ -458143,7 +458377,7 @@ function AutoUpdater({
|
|
|
458143
458377
|
return;
|
|
458144
458378
|
}
|
|
458145
458379
|
if (false) {}
|
|
458146
|
-
const currentVersion = { VERSION: "0.2.
|
|
458380
|
+
const currentVersion = { VERSION: "0.2.79", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION;
|
|
458147
458381
|
const channel2 = getInitialSettings()?.autoUpdatesChannel ?? "latest";
|
|
458148
458382
|
let latestVersion = await getLatestVersion(channel2);
|
|
458149
458383
|
const isDisabled2 = isAutoUpdaterDisabled();
|
|
@@ -458278,7 +458512,7 @@ function AutoUpdater({
|
|
|
458278
458512
|
" ",
|
|
458279
458513
|
/* @__PURE__ */ jsx_runtime415.jsx(ThemedText, {
|
|
458280
458514
|
bold: true,
|
|
458281
|
-
children: hasLocalInstall ? `cd ~/.theus/local && npm update ${{ VERSION: "0.2.
|
|
458515
|
+
children: hasLocalInstall ? `cd ~/.theus/local && npm update ${{ VERSION: "0.2.79", BUILD_TIME: "1970-01-01T00:00:00.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.79", BUILD_TIME: "1970-01-01T00:00:00.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}`
|
|
458282
458516
|
})
|
|
458283
458517
|
]
|
|
458284
458518
|
})
|
|
@@ -458355,12 +458589,12 @@ function NativeAutoUpdater({
|
|
|
458355
458589
|
logEvent("theus_native_auto_updater_start", {});
|
|
458356
458590
|
try {
|
|
458357
458591
|
const maxVersion = await getMaxVersion();
|
|
458358
|
-
if (maxVersion && gt({ VERSION: "0.2.
|
|
458592
|
+
if (maxVersion && gt({ VERSION: "0.2.79", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
|
|
458359
458593
|
const msg = await getMaxVersionMessage();
|
|
458360
458594
|
setMaxVersionIssue(msg ?? "affects your version");
|
|
458361
458595
|
}
|
|
458362
458596
|
const result = await installLatest(channel2);
|
|
458363
|
-
const currentVersion = { VERSION: "0.2.
|
|
458597
|
+
const currentVersion = { VERSION: "0.2.79", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION;
|
|
458364
458598
|
const latencyMs = Date.now() - startTime2;
|
|
458365
458599
|
if (result.lockFailed) {
|
|
458366
458600
|
logEvent("theus_native_auto_updater_lock_contention", {
|
|
@@ -458497,17 +458731,17 @@ function PackageManagerAutoUpdater(t0) {
|
|
|
458497
458731
|
const maxVersion = await getMaxVersion();
|
|
458498
458732
|
if (maxVersion && latest && gt(latest, maxVersion)) {
|
|
458499
458733
|
logForDebugging(`PackageManagerAutoUpdater: maxVersion ${maxVersion} is set, capping update from ${latest} to ${maxVersion}`);
|
|
458500
|
-
if (gte({ VERSION: "0.2.
|
|
458501
|
-
logForDebugging(`PackageManagerAutoUpdater: current version ${{ VERSION: "0.2.
|
|
458734
|
+
if (gte({ VERSION: "0.2.79", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
|
|
458735
|
+
logForDebugging(`PackageManagerAutoUpdater: current version ${{ VERSION: "0.2.79", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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`);
|
|
458502
458736
|
setUpdateAvailable(false);
|
|
458503
458737
|
return;
|
|
458504
458738
|
}
|
|
458505
458739
|
latest = maxVersion;
|
|
458506
458740
|
}
|
|
458507
|
-
const hasUpdate = latest && !gte({ VERSION: "0.2.
|
|
458741
|
+
const hasUpdate = latest && !gte({ VERSION: "0.2.79", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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);
|
|
458508
458742
|
setUpdateAvailable(!!hasUpdate);
|
|
458509
458743
|
if (hasUpdate) {
|
|
458510
|
-
logForDebugging(`PackageManagerAutoUpdater: Update available ${{ VERSION: "0.2.
|
|
458744
|
+
logForDebugging(`PackageManagerAutoUpdater: Update available ${{ VERSION: "0.2.79", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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}`);
|
|
458511
458745
|
}
|
|
458512
458746
|
};
|
|
458513
458747
|
$2[0] = t1;
|
|
@@ -458541,7 +458775,7 @@ function PackageManagerAutoUpdater(t0) {
|
|
|
458541
458775
|
wrap: "truncate",
|
|
458542
458776
|
children: [
|
|
458543
458777
|
"versi\xF3n actual: ",
|
|
458544
|
-
{ VERSION: "0.2.
|
|
458778
|
+
{ VERSION: "0.2.79", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
|
|
458545
458779
|
]
|
|
458546
458780
|
});
|
|
458547
458781
|
$2[3] = verbose;
|
|
@@ -466404,7 +466638,7 @@ function buildStatusLineCommandInput(permissionMode2, exceeds200kTokens, setting
|
|
|
466404
466638
|
project_dir: getOriginalCwd(),
|
|
466405
466639
|
added_dirs: addedDirs
|
|
466406
466640
|
},
|
|
466407
|
-
version: { VERSION: "0.2.
|
|
466641
|
+
version: { VERSION: "0.2.79", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
|
|
466408
466642
|
output_style: {
|
|
466409
466643
|
name: outputStyleName
|
|
466410
466644
|
},
|
|
@@ -490727,7 +490961,7 @@ function completeOnboarding() {
|
|
|
490727
490961
|
saveGlobalConfig((current) => ({
|
|
490728
490962
|
...current,
|
|
490729
490963
|
hasCompletedOnboarding: true,
|
|
490730
|
-
lastOnboardingVersion: { VERSION: "0.2.
|
|
490964
|
+
lastOnboardingVersion: { VERSION: "0.2.79", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
|
|
490731
490965
|
}));
|
|
490732
490966
|
}
|
|
490733
490967
|
function showDialog(root2, renderer) {
|
|
@@ -497423,7 +497657,7 @@ function getRecentReleaseNotes(currentVersion, previousVersion, changelogContent
|
|
|
497423
497657
|
}
|
|
497424
497658
|
return [];
|
|
497425
497659
|
}
|
|
497426
|
-
async function checkForReleaseNotes(lastSeenVersion, currentVersion = { VERSION: "0.2.
|
|
497660
|
+
async function checkForReleaseNotes(lastSeenVersion, currentVersion = { VERSION: "0.2.79", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION) {
|
|
497427
497661
|
if (false) {}
|
|
497428
497662
|
const cachedChangelog = await getStoredChangelog();
|
|
497429
497663
|
if (lastSeenVersion !== currentVersion || !cachedChangelog) {
|
|
@@ -502956,7 +503190,7 @@ async function startMCPServer(cwd3, debug3, verbose) {
|
|
|
502956
503190
|
setCwd(cwd3);
|
|
502957
503191
|
const server2 = new Server({
|
|
502958
503192
|
name: "theus/tengu",
|
|
502959
|
-
version: { VERSION: "0.2.
|
|
503193
|
+
version: { VERSION: "0.2.79", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
|
|
502960
503194
|
}, {
|
|
502961
503195
|
capabilities: {
|
|
502962
503196
|
tools: {}
|
|
@@ -504398,7 +504632,7 @@ async function setupTokenHandler(root2) {
|
|
|
504398
504632
|
gap: 1,
|
|
504399
504633
|
children: [
|
|
504400
504634
|
/* @__PURE__ */ jsx_runtime503.jsx(TheusBanner, {
|
|
504401
|
-
version: { VERSION: "0.2.
|
|
504635
|
+
version: { VERSION: "0.2.79", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
|
|
504402
504636
|
}),
|
|
504403
504637
|
showAuthWarning && /* @__PURE__ */ jsx_runtime503.jsxs(ThemedBox_default, {
|
|
504404
504638
|
flexDirection: "column",
|
|
@@ -505983,7 +506217,7 @@ ${assistantAddendum}` : assistantAddendum;
|
|
|
505983
506217
|
}
|
|
505984
506218
|
}
|
|
505985
506219
|
logForDiagnosticsNoPII("info", "started", {
|
|
505986
|
-
version: { VERSION: "0.2.
|
|
506220
|
+
version: { VERSION: "0.2.79", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
|
|
505987
506221
|
is_native_binary: isInBundledMode()
|
|
505988
506222
|
});
|
|
505989
506223
|
registerCleanup(async () => {
|
|
@@ -506851,7 +507085,7 @@ Usage: theus --remote "your task description"`, () => gracefulShutdown(1));
|
|
|
506851
507085
|
pendingHookMessages
|
|
506852
507086
|
}, renderAndRun);
|
|
506853
507087
|
}
|
|
506854
|
-
}).version(`${{ VERSION: "0.2.
|
|
507088
|
+
}).version(`${{ VERSION: "0.2.79", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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");
|
|
506855
507089
|
program2.option("-w, --worktree [name]", "Crea un nuevo worktree de git para esta sesi\xF3n (opcionalmente indica un nombre)");
|
|
506856
507090
|
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.");
|
|
506857
507091
|
if (canUserConfigureAdvisor()) {
|
|
@@ -507452,7 +507686,7 @@ if (false) {}
|
|
|
507452
507686
|
async function main2() {
|
|
507453
507687
|
const args = process.argv.slice(2);
|
|
507454
507688
|
if (args.length === 1 && (args[0] === "--version" || args[0] === "-v" || args[0] === "-V")) {
|
|
507455
|
-
console.log(`${{ VERSION: "0.2.
|
|
507689
|
+
console.log(`${{ VERSION: "0.2.79", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)`);
|
|
507456
507690
|
return;
|
|
507457
507691
|
}
|
|
507458
507692
|
if (args[0] === "login" || args[0] === "signin" || args[0] === "entrar" || args[0] === "iniciar-sesion") {
|