theus-cli 0.2.42 → 0.2.43
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
|
@@ -58324,7 +58324,7 @@ async function _executeApiKeyHelper(isNonInteractiveSession) {
|
|
|
58324
58324
|
if (isApiKeyHelperFromProjectOrLocalSettings()) {
|
|
58325
58325
|
const hasTrust = checkHasTrustDialogAccepted();
|
|
58326
58326
|
if (!hasTrust && !isNonInteractiveSession) {
|
|
58327
|
-
const error40 = new Error(`Security: apiKeyHelper executed before workspace trust is confirmed. If you see this message, post in ${{ VERSION: "0.2.
|
|
58327
|
+
const error40 = new Error(`Security: apiKeyHelper executed before workspace trust is confirmed. If you see this message, post in ${{ VERSION: "0.2.43", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.FEEDBACK_CHANNEL}.`);
|
|
58328
58328
|
logAntError("apiKeyHelper invoked before trust check", error40);
|
|
58329
58329
|
logEvent("tengu_apiKeyHelper_missing_trust11", {});
|
|
58330
58330
|
return null;
|
|
@@ -58368,7 +58368,7 @@ async function runAwsAuthRefresh() {
|
|
|
58368
58368
|
if (isAwsAuthRefreshFromProjectSettings()) {
|
|
58369
58369
|
const hasTrust = checkHasTrustDialogAccepted();
|
|
58370
58370
|
if (!hasTrust && !getIsNonInteractiveSession()) {
|
|
58371
|
-
const error40 = new Error(`Security: awsAuthRefresh executed before workspace trust is confirmed. If you see this message, post in ${{ VERSION: "0.2.
|
|
58371
|
+
const error40 = new Error(`Security: awsAuthRefresh executed before workspace trust is confirmed. If you see this message, post in ${{ VERSION: "0.2.43", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.FEEDBACK_CHANNEL}.`);
|
|
58372
58372
|
logAntError("awsAuthRefresh invoked before trust check", error40);
|
|
58373
58373
|
logEvent("tengu_awsAuthRefresh_missing_trust", {});
|
|
58374
58374
|
return false;
|
|
@@ -58428,7 +58428,7 @@ async function getAwsCredsFromCredentialExport() {
|
|
|
58428
58428
|
if (isAwsCredentialExportFromProjectSettings()) {
|
|
58429
58429
|
const hasTrust = checkHasTrustDialogAccepted();
|
|
58430
58430
|
if (!hasTrust && !getIsNonInteractiveSession()) {
|
|
58431
|
-
const error40 = new Error(`Security: awsCredentialExport executed before workspace trust is confirmed. If you see this message, post in ${{ VERSION: "0.2.
|
|
58431
|
+
const error40 = new Error(`Security: awsCredentialExport executed before workspace trust is confirmed. If you see this message, post in ${{ VERSION: "0.2.43", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.FEEDBACK_CHANNEL}.`);
|
|
58432
58432
|
logAntError("awsCredentialExport invoked before trust check", error40);
|
|
58433
58433
|
logEvent("tengu_awsCredentialExport_missing_trust", {});
|
|
58434
58434
|
return null;
|
|
@@ -58513,7 +58513,7 @@ async function runGcpAuthRefresh() {
|
|
|
58513
58513
|
if (isGcpAuthRefreshFromProjectSettings()) {
|
|
58514
58514
|
const hasTrust = checkHasTrustDialogAccepted();
|
|
58515
58515
|
if (!hasTrust && !getIsNonInteractiveSession()) {
|
|
58516
|
-
const error40 = new Error(`Security: gcpAuthRefresh executed before workspace trust is confirmed. If you see this message, post in ${{ VERSION: "0.2.
|
|
58516
|
+
const error40 = new Error(`Security: gcpAuthRefresh executed before workspace trust is confirmed. If you see this message, post in ${{ VERSION: "0.2.43", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.FEEDBACK_CHANNEL}.`);
|
|
58517
58517
|
logAntError("gcpAuthRefresh invoked before trust check", error40);
|
|
58518
58518
|
logEvent("tengu_gcpAuthRefresh_missing_trust", {});
|
|
58519
58519
|
return false;
|
|
@@ -59208,7 +59208,7 @@ var init_auth = __esm(() => {
|
|
|
59208
59208
|
|
|
59209
59209
|
// utils/userAgent.ts
|
|
59210
59210
|
function getTheusCodeUserAgent() {
|
|
59211
|
-
return `theus-code/${{ VERSION: "0.2.
|
|
59211
|
+
return `theus-code/${{ VERSION: "0.2.43", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION}`;
|
|
59212
59212
|
}
|
|
59213
59213
|
|
|
59214
59214
|
// utils/workloadContext.ts
|
|
@@ -59230,7 +59230,7 @@ function getUserAgent() {
|
|
|
59230
59230
|
const clientApp = process.env.THEUS_AGENT_SDK_CLIENT_APP ? `, client-app/${process.env.THEUS_AGENT_SDK_CLIENT_APP}` : "";
|
|
59231
59231
|
const workload = getWorkload();
|
|
59232
59232
|
const workloadSuffix = workload ? `, workload/${workload}` : "";
|
|
59233
|
-
return `theus-cli/${{ VERSION: "0.2.
|
|
59233
|
+
return `theus-cli/${{ VERSION: "0.2.43", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION} (${process.env.USER_TYPE}, ${process.env.THEUS_CODE_ENTRYPOINT ?? "cli"}${agentSdkVersion}${clientApp}${workloadSuffix})`;
|
|
59234
59234
|
}
|
|
59235
59235
|
function getMCPUserAgent() {
|
|
59236
59236
|
const parts = [];
|
|
@@ -59244,7 +59244,7 @@ function getMCPUserAgent() {
|
|
|
59244
59244
|
parts.push(`client-app/${process.env.THEUS_AGENT_SDK_CLIENT_APP}`);
|
|
59245
59245
|
}
|
|
59246
59246
|
const suffix = parts.length > 0 ? ` (${parts.join(", ")})` : "";
|
|
59247
|
-
return `theus-code/${{ VERSION: "0.2.
|
|
59247
|
+
return `theus-code/${{ VERSION: "0.2.43", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION}${suffix}`;
|
|
59248
59248
|
}
|
|
59249
59249
|
function getWebFetchUserAgent() {
|
|
59250
59250
|
return `Theus-User (${getTheusCodeUserAgent()}; +https://support.theus.pe/)`;
|
|
@@ -59382,7 +59382,7 @@ var init_user = __esm(() => {
|
|
|
59382
59382
|
deviceId,
|
|
59383
59383
|
sessionId: getSessionId(),
|
|
59384
59384
|
email: getEmail(),
|
|
59385
|
-
appVersion: { VERSION: "0.2.
|
|
59385
|
+
appVersion: { VERSION: "0.2.43", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
|
|
59386
59386
|
platform: getHostPlatformForAnalytics(),
|
|
59387
59387
|
organizationUuid,
|
|
59388
59388
|
accountUuid,
|
|
@@ -61097,7 +61097,7 @@ var init_metadata = __esm(() => {
|
|
|
61097
61097
|
COMPOUND_OPERATOR_REGEX = /\s*(?:&&|\|\||[;|])\s*/;
|
|
61098
61098
|
WHITESPACE_REGEX = /\s+/;
|
|
61099
61099
|
getVersionBase = memoize_default(() => {
|
|
61100
|
-
const match = { VERSION: "0.2.
|
|
61100
|
+
const match = { VERSION: "0.2.43", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION.match(/^\d+\.\d+\.\d+(?:-[a-z]+)?/);
|
|
61101
61101
|
return match ? match[0] : undefined;
|
|
61102
61102
|
});
|
|
61103
61103
|
buildEnvContext = memoize_default(async () => {
|
|
@@ -61137,9 +61137,9 @@ var init_metadata = __esm(() => {
|
|
|
61137
61137
|
isGithubAction: isEnvTruthy(process.env.GITHUB_ACTIONS),
|
|
61138
61138
|
isTheusCodeAction: isEnvTruthy(process.env.THEUS_CODE_ACTION),
|
|
61139
61139
|
isTheusAiAuth: isTheusAISubscriber(),
|
|
61140
|
-
version: { VERSION: "0.2.
|
|
61140
|
+
version: { VERSION: "0.2.43", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
|
|
61141
61141
|
versionBase: getVersionBase(),
|
|
61142
|
-
buildTime: { VERSION: "0.2.
|
|
61142
|
+
buildTime: { VERSION: "0.2.43", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.BUILD_TIME,
|
|
61143
61143
|
deploymentEnvironment: env3.detectDeploymentEnvironment(),
|
|
61144
61144
|
...isEnvTruthy(process.env.GITHUB_ACTIONS) && {
|
|
61145
61145
|
githubEventName: process.env.GITHUB_EVENT_NAME,
|
|
@@ -61805,7 +61805,7 @@ function initialize1PEventLogging() {
|
|
|
61805
61805
|
const platform2 = getPlatform();
|
|
61806
61806
|
const attributes = {
|
|
61807
61807
|
[ATTR_SERVICE_NAME]: "theus-code",
|
|
61808
|
-
[ATTR_SERVICE_VERSION]: { VERSION: "0.2.
|
|
61808
|
+
[ATTR_SERVICE_VERSION]: { VERSION: "0.2.43", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
|
|
61809
61809
|
};
|
|
61810
61810
|
if (platform2 === "wsl") {
|
|
61811
61811
|
const wslVersion = getWslVersion();
|
|
@@ -61832,7 +61832,7 @@ function initialize1PEventLogging() {
|
|
|
61832
61832
|
})
|
|
61833
61833
|
]
|
|
61834
61834
|
});
|
|
61835
|
-
firstPartyEventLogger = firstPartyEventLoggerProvider.getLogger("com.theus.theus_code.events", { VERSION: "0.2.
|
|
61835
|
+
firstPartyEventLogger = firstPartyEventLoggerProvider.getLogger("com.theus.theus_code.events", { VERSION: "0.2.43", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION);
|
|
61836
61836
|
}
|
|
61837
61837
|
async function reinitialize1PEventLoggingIfConfigChanged() {
|
|
61838
61838
|
if (!is1PEventLoggingEnabled() || !firstPartyEventLoggerProvider) {
|
|
@@ -63703,7 +63703,7 @@ function getAttributionHeader(fingerprint) {
|
|
|
63703
63703
|
if (!isAttributionHeaderEnabled()) {
|
|
63704
63704
|
return "";
|
|
63705
63705
|
}
|
|
63706
|
-
const version2 = `${{ VERSION: "0.2.
|
|
63706
|
+
const version2 = `${{ VERSION: "0.2.43", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION}.${fingerprint}`;
|
|
63707
63707
|
const entrypoint = process.env.THEUS_CODE_ENTRYPOINT ?? "unknown";
|
|
63708
63708
|
const cch = "";
|
|
63709
63709
|
const workload = getWorkload();
|
|
@@ -107814,7 +107814,7 @@ Complete the user's request by providing accurate, documentation-based guidance.
|
|
|
107814
107814
|
}
|
|
107815
107815
|
function getFeedbackGuideline() {
|
|
107816
107816
|
if (isUsing3PServices()) {
|
|
107817
|
-
return `- When you cannot find an answer or the feature doesn't exist, direct the user to ${{ VERSION: "0.2.
|
|
107817
|
+
return `- When you cannot find an answer or the feature doesn't exist, direct the user to ${{ VERSION: "0.2.43", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.ISSUES_EXPLAINER}`;
|
|
107818
107818
|
}
|
|
107819
107819
|
return "- When you cannot find an answer or the feature doesn't exist, direct the user to use /feedback to report a feature request or bug";
|
|
107820
107820
|
}
|
|
@@ -166523,7 +166523,7 @@ function getTelemetryAttributes() {
|
|
|
166523
166523
|
attributes["session.id"] = sessionId;
|
|
166524
166524
|
}
|
|
166525
166525
|
if (shouldIncludeAttribute("OTEL_METRICS_INCLUDE_VERSION")) {
|
|
166526
|
-
attributes["app.version"] = { VERSION: "0.2.
|
|
166526
|
+
attributes["app.version"] = { VERSION: "0.2.43", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION;
|
|
166527
166527
|
}
|
|
166528
166528
|
const oauthAccount = getOauthAccountInfo();
|
|
166529
166529
|
if (oauthAccount) {
|
|
@@ -183727,6 +183727,24 @@ var init_prompt10 = __esm(() => {
|
|
|
183727
183727
|
DEFAULT_MAX_AGE_DAYS = DEFAULT_CRON_JITTER_CONFIG.recurringMaxAgeMs / (24 * 60 * 60 * 1000);
|
|
183728
183728
|
});
|
|
183729
183729
|
|
|
183730
|
+
// tools/ProviderTool/prompt.ts
|
|
183731
|
+
var PROVIDER_TOOL_NAME = "Provider", DESCRIPTION8 = `Route a request to one or more specialized model providers and fuse the results into a single answer.
|
|
183732
|
+
|
|
183733
|
+
Use this when a turn needs a NON-TEXT capability or several capabilities at once:
|
|
183734
|
+
- "genera una imagen de X" \u2192 capability: ["image"] (REAL generation)
|
|
183735
|
+
- "genera un video de X" \u2192 capability: ["video"] (REAL generation)
|
|
183736
|
+
- "chart this dataset" \u2192 capability: ["chart"], pass rows in \`data\`
|
|
183737
|
+
- "write a report on Y" \u2192 capability: ["report"], pass sections in \`data\`
|
|
183738
|
+
- "answer AND chart the numbers" \u2192 capability: ["text","chart"]
|
|
183739
|
+
|
|
183740
|
+
Capabilities: text | video | image | report | chart | embedding.
|
|
183741
|
+
|
|
183742
|
+
Image and video generation are REAL: they run against the user's Theus subscription gateway (configured automatically by \`theus login\`). The generated PNG/MP4 is saved under <cwd>/theus-media/ and the fused answer includes the relative file path \u2014 share that path with the user. Video generation can take up to a few minutes (the tool waits and downloads the result). If the user has no active session, the result explains (in Spanish) how to enable it with \`theus login\`.
|
|
183743
|
+
|
|
183744
|
+
The router picks the best enabled provider per capability (or all of them when \`combine\` is true), runs them in parallel, and returns one fused message with a provenance/cost summary.
|
|
183745
|
+
|
|
183746
|
+
Provide \`prompt\` (the instruction). For chart/report pass structured \`data\` (chart: [{label,value}], report: [{heading,body}]).`, PROVIDER_TOOL_SEARCH_HINT = "generar imagen video generate image video chart report via the Theus subscription gateway";
|
|
183747
|
+
|
|
183730
183748
|
// constants/tools.ts
|
|
183731
183749
|
var ALL_AGENT_DISALLOWED_TOOLS, CUSTOM_AGENT_DISALLOWED_TOOLS, ASYNC_AGENT_ALLOWED_TOOLS, IN_PROCESS_TEAMMATE_ALLOWED_TOOLS, COORDINATOR_MODE_ALLOWED_TOOLS;
|
|
183732
183750
|
var init_tools = __esm(() => {
|
|
@@ -183770,7 +183788,8 @@ var init_tools = __esm(() => {
|
|
|
183770
183788
|
TOOL_SEARCH_TOOL_NAME,
|
|
183771
183789
|
ENTER_WORKTREE_TOOL_NAME,
|
|
183772
183790
|
EXIT_WORKTREE_TOOL_NAME,
|
|
183773
|
-
GRAPH_TOOL_NAME
|
|
183791
|
+
GRAPH_TOOL_NAME,
|
|
183792
|
+
PROVIDER_TOOL_NAME
|
|
183774
183793
|
]);
|
|
183775
183794
|
IN_PROCESS_TEAMMATE_ALLOWED_TOOLS = new Set([
|
|
183776
183795
|
TASK_CREATE_TOOL_NAME,
|
|
@@ -194118,7 +194137,7 @@ var init_terminal2 = __esm(() => {
|
|
|
194118
194137
|
});
|
|
194119
194138
|
|
|
194120
194139
|
// tools/ListMcpResourcesTool/prompt.ts
|
|
194121
|
-
var LIST_MCP_RESOURCES_TOOL_NAME = "ListMcpResourcesTool",
|
|
194140
|
+
var LIST_MCP_RESOURCES_TOOL_NAME = "ListMcpResourcesTool", DESCRIPTION9 = `
|
|
194122
194141
|
Lists available resources from configured MCP servers.
|
|
194123
194142
|
Each resource object includes a 'server' field indicating which server it's from.
|
|
194124
194143
|
|
|
@@ -194360,7 +194379,7 @@ var init_ListMcpResourcesTool = __esm(() => {
|
|
|
194360
194379
|
searchHint: "list resources from connected MCP servers",
|
|
194361
194380
|
maxResultSizeChars: 1e5,
|
|
194362
194381
|
async description() {
|
|
194363
|
-
return
|
|
194382
|
+
return DESCRIPTION9;
|
|
194364
194383
|
},
|
|
194365
194384
|
async prompt() {
|
|
194366
194385
|
return PROMPT;
|
|
@@ -194416,7 +194435,7 @@ var init_ListMcpResourcesTool = __esm(() => {
|
|
|
194416
194435
|
});
|
|
194417
194436
|
|
|
194418
194437
|
// tools/MCPTool/prompt.ts
|
|
194419
|
-
var PROMPT2 = "",
|
|
194438
|
+
var PROMPT2 = "", DESCRIPTION10 = "";
|
|
194420
194439
|
|
|
194421
194440
|
// components/design-system/ProgressBar.tsx
|
|
194422
194441
|
function ProgressBar(t0) {
|
|
@@ -194877,7 +194896,7 @@ var init_MCPTool = __esm(() => {
|
|
|
194877
194896
|
name: "mcp",
|
|
194878
194897
|
maxResultSizeChars: 1e5,
|
|
194879
194898
|
async description() {
|
|
194880
|
-
return
|
|
194899
|
+
return DESCRIPTION10;
|
|
194881
194900
|
},
|
|
194882
194901
|
async prompt() {
|
|
194883
194902
|
return PROMPT2;
|
|
@@ -200920,7 +200939,7 @@ var init_mcpOutputStorage = __esm(() => {
|
|
|
200920
200939
|
});
|
|
200921
200940
|
|
|
200922
200941
|
// tools/ReadMcpResourceTool/prompt.ts
|
|
200923
|
-
var
|
|
200942
|
+
var DESCRIPTION11 = `
|
|
200924
200943
|
Reads a specific resource from an MCP server.
|
|
200925
200944
|
- server: The name of the MCP server to read from
|
|
200926
200945
|
- uri: The URI of the resource to read
|
|
@@ -201015,7 +201034,7 @@ var init_ReadMcpResourceTool = __esm(() => {
|
|
|
201015
201034
|
searchHint: "read a specific MCP resource by URI",
|
|
201016
201035
|
maxResultSizeChars: 1e5,
|
|
201017
201036
|
async description() {
|
|
201018
|
-
return
|
|
201037
|
+
return DESCRIPTION11;
|
|
201019
201038
|
},
|
|
201020
201039
|
async prompt() {
|
|
201021
201040
|
return PROMPT3;
|
|
@@ -202589,7 +202608,7 @@ function getInstallationEnv() {
|
|
|
202589
202608
|
return;
|
|
202590
202609
|
}
|
|
202591
202610
|
function getTheusCodeVersion() {
|
|
202592
|
-
return { VERSION: "0.2.
|
|
202611
|
+
return { VERSION: "0.2.43", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION;
|
|
202593
202612
|
}
|
|
202594
202613
|
async function getInstalledVSCodeExtensionVersion(command) {
|
|
202595
202614
|
const { stdout } = await execFileNoThrow(command, ["--list-extensions", "--show-versions"], {
|
|
@@ -204107,7 +204126,7 @@ async function getMcpHeadersFromHelper(serverName, config2) {
|
|
|
204107
204126
|
if ("scope" in config2 && isMcpServerFromProjectOrLocalSettings(config2) && !getIsNonInteractiveSession()) {
|
|
204108
204127
|
const hasTrust = checkHasTrustDialogAccepted();
|
|
204109
204128
|
if (!hasTrust) {
|
|
204110
|
-
const error40 = new Error(`Security: headersHelper for MCP server '${serverName}' executed before workspace trust is confirmed. If you see this message, post in ${{ VERSION: "0.2.
|
|
204129
|
+
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.43", BUILD_TIME: "1970-01-01T00:00:00.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}.`);
|
|
204111
204130
|
logAntError("MCP headersHelper invoked before trust check", error40);
|
|
204112
204131
|
logEvent("tengu_mcp_headersHelper_missing_trust", {});
|
|
204113
204132
|
return null;
|
|
@@ -205317,7 +205336,7 @@ async function setupSdkMcpClients(sdkMcpConfigs, sendMcpMessage) {
|
|
|
205317
205336
|
const client2 = new Client({
|
|
205318
205337
|
name: "theus-code",
|
|
205319
205338
|
title: "Theus",
|
|
205320
|
-
version: { VERSION: "0.2.
|
|
205339
|
+
version: { VERSION: "0.2.43", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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",
|
|
205321
205340
|
description: "Theus's agentic coding tool",
|
|
205322
205341
|
websiteUrl: PRODUCT_URL
|
|
205323
205342
|
}, {
|
|
@@ -205671,7 +205690,7 @@ var init_client5 = __esm(() => {
|
|
|
205671
205690
|
const client2 = new Client({
|
|
205672
205691
|
name: "theus-code",
|
|
205673
205692
|
title: "Theus",
|
|
205674
|
-
version: { VERSION: "0.2.
|
|
205693
|
+
version: { VERSION: "0.2.43", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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",
|
|
205675
205694
|
description: "Theus's agentic coding tool",
|
|
205676
205695
|
websiteUrl: PRODUCT_URL
|
|
205677
205696
|
}, {
|
|
@@ -216249,7 +216268,7 @@ async function initializeBetaTracing(resource) {
|
|
|
216249
216268
|
});
|
|
216250
216269
|
logs.setGlobalLoggerProvider(loggerProvider);
|
|
216251
216270
|
setLoggerProvider(loggerProvider);
|
|
216252
|
-
const eventLogger = logs.getLogger("com.theus.theus_code.events", { VERSION: "0.2.
|
|
216271
|
+
const eventLogger = logs.getLogger("com.theus.theus_code.events", { VERSION: "0.2.43", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION);
|
|
216253
216272
|
setEventLogger(eventLogger);
|
|
216254
216273
|
process.on("beforeExit", async () => {
|
|
216255
216274
|
await loggerProvider?.forceFlush();
|
|
@@ -216289,7 +216308,7 @@ async function initializeTelemetry() {
|
|
|
216289
216308
|
const platform4 = getPlatform();
|
|
216290
216309
|
const baseAttributes = {
|
|
216291
216310
|
[ATTR_SERVICE_NAME]: "theus-code",
|
|
216292
|
-
[ATTR_SERVICE_VERSION]: { VERSION: "0.2.
|
|
216311
|
+
[ATTR_SERVICE_VERSION]: { VERSION: "0.2.43", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
|
|
216293
216312
|
};
|
|
216294
216313
|
if (platform4 === "wsl") {
|
|
216295
216314
|
const wslVersion = getWslVersion();
|
|
@@ -216334,7 +216353,7 @@ async function initializeTelemetry() {
|
|
|
216334
216353
|
} catch {}
|
|
216335
216354
|
};
|
|
216336
216355
|
registerCleanup(shutdownTelemetry2);
|
|
216337
|
-
return meterProvider2.getMeter("com.theus.theus_code", { VERSION: "0.2.
|
|
216356
|
+
return meterProvider2.getMeter("com.theus.theus_code", { VERSION: "0.2.43", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION);
|
|
216338
216357
|
}
|
|
216339
216358
|
const meterProvider = new MeterProvider({
|
|
216340
216359
|
resource,
|
|
@@ -216354,7 +216373,7 @@ async function initializeTelemetry() {
|
|
|
216354
216373
|
});
|
|
216355
216374
|
logs.setGlobalLoggerProvider(loggerProvider);
|
|
216356
216375
|
setLoggerProvider(loggerProvider);
|
|
216357
|
-
const eventLogger = logs.getLogger("com.theus.theus_code.events", { VERSION: "0.2.
|
|
216376
|
+
const eventLogger = logs.getLogger("com.theus.theus_code.events", { VERSION: "0.2.43", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION);
|
|
216358
216377
|
setEventLogger(eventLogger);
|
|
216359
216378
|
logForDebugging("[3P telemetry] Event logger set successfully");
|
|
216360
216379
|
process.on("beforeExit", async () => {
|
|
@@ -216416,7 +216435,7 @@ Current timeout: ${timeoutMs}ms
|
|
|
216416
216435
|
}
|
|
216417
216436
|
};
|
|
216418
216437
|
registerCleanup(shutdownTelemetry);
|
|
216419
|
-
return meterProvider.getMeter("com.theus.theus_code", { VERSION: "0.2.
|
|
216438
|
+
return meterProvider.getMeter("com.theus.theus_code", { VERSION: "0.2.43", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION);
|
|
216420
216439
|
}
|
|
216421
216440
|
async function flushTelemetry() {
|
|
216422
216441
|
const meterProvider = getMeterProvider();
|
|
@@ -216956,7 +216975,7 @@ async function installOrUpdateTheusPackage(channel2, specificVersion) {
|
|
|
216956
216975
|
return "install_failed";
|
|
216957
216976
|
}
|
|
216958
216977
|
const versionSpec = specificVersion ? specificVersion : channel2 === "stable" ? "stable" : "latest";
|
|
216959
|
-
const result = await execFileNoThrowWithCwd("npm", ["install", `${{ VERSION: "0.2.
|
|
216978
|
+
const result = await execFileNoThrowWithCwd("npm", ["install", `${{ VERSION: "0.2.43", BUILD_TIME: "1970-01-01T00:00:00.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 });
|
|
216960
216979
|
if (result.code !== 0) {
|
|
216961
216980
|
const error40 = new Error(`Failed to install Theus CLI package: ${result.stderr}`);
|
|
216962
216981
|
logError2(error40);
|
|
@@ -217102,9 +217121,9 @@ async function assertMinVersion() {
|
|
|
217102
217121
|
if (false) {}
|
|
217103
217122
|
try {
|
|
217104
217123
|
const versionConfig = await getDynamicConfig_BLOCKS_ON_INIT("tengu_version_config", { minVersion: "0.0.0" });
|
|
217105
|
-
if (versionConfig.minVersion && lt({ VERSION: "0.2.
|
|
217124
|
+
if (versionConfig.minVersion && lt({ VERSION: "0.2.43", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
|
|
217106
217125
|
console.error(`
|
|
217107
|
-
It looks like your version of Theus (${{ VERSION: "0.2.
|
|
217126
|
+
It looks like your version of Theus (${{ VERSION: "0.2.43", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.
|
|
217108
217127
|
A newer version (${versionConfig.minVersion} or higher) is required to continue.
|
|
217109
217128
|
|
|
217110
217129
|
To update, please run:
|
|
@@ -217245,7 +217264,7 @@ async function getInstallationPrefix() {
|
|
|
217245
217264
|
return prefixResult.stdout.trim();
|
|
217246
217265
|
}
|
|
217247
217266
|
function getGlobalInstallPackageManager() {
|
|
217248
|
-
if ({ VERSION: "0.2.
|
|
217267
|
+
if ({ VERSION: "0.2.43", BUILD_TIME: "1970-01-01T00:00:00.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") {
|
|
217249
217268
|
return "npm";
|
|
217250
217269
|
}
|
|
217251
217270
|
return env3.isRunningWithBun() ? "bun" : "npm";
|
|
@@ -217270,7 +217289,7 @@ async function checkGlobalInstallPermissions() {
|
|
|
217270
217289
|
}
|
|
217271
217290
|
async function getLatestVersion(channel2) {
|
|
217272
217291
|
const npmTag = channel2 === "stable" ? "stable" : "latest";
|
|
217273
|
-
const result = await execFileNoThrowWithCwd("npm", ["view", `${{ VERSION: "0.2.
|
|
217292
|
+
const result = await execFileNoThrowWithCwd("npm", ["view", `${{ VERSION: "0.2.43", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.PACKAGE_URL}@${npmTag}`, "version", "--prefer-online"], { abortSignal: AbortSignal.timeout(5000), cwd: homedir18() });
|
|
217274
217293
|
if (result.code !== 0) {
|
|
217275
217294
|
logForDebugging(`npm view failed with code ${result.code}`);
|
|
217276
217295
|
if (result.stderr) {
|
|
@@ -217286,7 +217305,7 @@ async function getLatestVersion(channel2) {
|
|
|
217286
217305
|
return result.stdout.trim();
|
|
217287
217306
|
}
|
|
217288
217307
|
async function getNpmDistTags() {
|
|
217289
|
-
const result = await execFileNoThrowWithCwd("npm", ["view", { VERSION: "0.2.
|
|
217308
|
+
const result = await execFileNoThrowWithCwd("npm", ["view", { VERSION: "0.2.43", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.PACKAGE_URL, "dist-tags", "--json", "--prefer-online"], { abortSignal: AbortSignal.timeout(5000), cwd: homedir18() });
|
|
217290
217309
|
if (result.code !== 0) {
|
|
217291
217310
|
logForDebugging(`npm view dist-tags failed with code ${result.code}`);
|
|
217292
217311
|
return { latest: null, stable: null };
|
|
@@ -217326,7 +217345,7 @@ async function installGlobalPackage(specificVersion) {
|
|
|
217326
217345
|
logError2(new AutoUpdaterError("Another process is currently installing an update"));
|
|
217327
217346
|
logEvent("tengu_auto_updater_lock_contention", {
|
|
217328
217347
|
pid: process.pid,
|
|
217329
|
-
currentVersion: { VERSION: "0.2.
|
|
217348
|
+
currentVersion: { VERSION: "0.2.43", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
|
|
217330
217349
|
});
|
|
217331
217350
|
return "in_progress";
|
|
217332
217351
|
}
|
|
@@ -217335,7 +217354,7 @@ async function installGlobalPackage(specificVersion) {
|
|
|
217335
217354
|
if (!env3.isRunningWithBun() && env3.isNpmFromWindowsPath()) {
|
|
217336
217355
|
logError2(new Error("Windows NPM detected in WSL environment"));
|
|
217337
217356
|
logEvent("tengu_auto_updater_windows_npm_in_wsl", {
|
|
217338
|
-
currentVersion: { VERSION: "0.2.
|
|
217357
|
+
currentVersion: { VERSION: "0.2.43", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
|
|
217339
217358
|
});
|
|
217340
217359
|
console.error(`
|
|
217341
217360
|
Error: Windows NPM detected in WSL
|
|
@@ -217354,7 +217373,7 @@ To fix this issue:
|
|
|
217354
217373
|
if (!hasPermissions) {
|
|
217355
217374
|
return "no_permissions";
|
|
217356
217375
|
}
|
|
217357
|
-
const packageSpec = specificVersion ? `${{ VERSION: "0.2.
|
|
217376
|
+
const packageSpec = specificVersion ? `${{ VERSION: "0.2.43", BUILD_TIME: "1970-01-01T00:00:00.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.43", BUILD_TIME: "1970-01-01T00:00:00.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;
|
|
217358
217377
|
const packageManager = getGlobalInstallPackageManager();
|
|
217359
217378
|
const installResult = await execFileNoThrowWithCwd(packageManager, ["install", "-g", packageSpec], { cwd: homedir18() });
|
|
217360
217379
|
if (installResult.code !== 0) {
|
|
@@ -217682,8 +217701,8 @@ async function detectMultipleInstallations() {
|
|
|
217682
217701
|
installations.push({ type: "npm-local", path: localPath });
|
|
217683
217702
|
}
|
|
217684
217703
|
const packagesToCheck = ["@theus-ai/theus-code"];
|
|
217685
|
-
if ({ VERSION: "0.2.
|
|
217686
|
-
packagesToCheck.push({ VERSION: "0.2.
|
|
217704
|
+
if ({ VERSION: "0.2.43", BUILD_TIME: "1970-01-01T00:00:00.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.43", BUILD_TIME: "1970-01-01T00:00:00.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") {
|
|
217705
|
+
packagesToCheck.push({ VERSION: "0.2.43", BUILD_TIME: "1970-01-01T00:00:00.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);
|
|
217687
217706
|
}
|
|
217688
217707
|
const npmResult = await execFileNoThrow("npm", [
|
|
217689
217708
|
"-g",
|
|
@@ -217866,7 +217885,7 @@ function detectLinuxGlobPatternWarnings() {
|
|
|
217866
217885
|
}
|
|
217867
217886
|
async function getDoctorDiagnostic() {
|
|
217868
217887
|
const installationType = await getCurrentInstallationType();
|
|
217869
|
-
const version2 = { VERSION: "0.2.
|
|
217888
|
+
const version2 = { VERSION: "0.2.43", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.43", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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";
|
|
217870
217889
|
const installationPath = await getInstallationPath();
|
|
217871
217890
|
const invokedBinary = getInvokedBinary();
|
|
217872
217891
|
const multipleInstallations = await detectMultipleInstallations();
|
|
@@ -217878,8 +217897,8 @@ async function getDoctorDiagnostic() {
|
|
|
217878
217897
|
for (const install of npmInstalls) {
|
|
217879
217898
|
if (install.type === "npm-global") {
|
|
217880
217899
|
let uninstallCmd = "npm -g uninstall @theus-ai/theus-code";
|
|
217881
|
-
if ({ VERSION: "0.2.
|
|
217882
|
-
uninstallCmd += ` && npm -g uninstall ${{ VERSION: "0.2.
|
|
217900
|
+
if ({ VERSION: "0.2.43", BUILD_TIME: "1970-01-01T00:00:00.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.43", BUILD_TIME: "1970-01-01T00:00:00.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") {
|
|
217901
|
+
uninstallCmd += ` && npm -g uninstall ${{ VERSION: "0.2.43", BUILD_TIME: "1970-01-01T00:00:00.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}`;
|
|
217883
217902
|
}
|
|
217884
217903
|
warnings.push({
|
|
217885
217904
|
issue: `Leftover npm global installation at ${install.path}`,
|
|
@@ -217991,7 +218010,7 @@ async function getLatestVersionFromArtifactory(tag2 = "latest") {
|
|
|
217991
218010
|
const startTime2 = Date.now();
|
|
217992
218011
|
const { stdout, code, stderr } = await execFileNoThrowWithCwd("npm", [
|
|
217993
218012
|
"view",
|
|
217994
|
-
`${{ VERSION: "0.2.
|
|
218013
|
+
`${{ VERSION: "0.2.43", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.NATIVE_PACKAGE_URL}@${tag2}`,
|
|
217995
218014
|
"version",
|
|
217996
218015
|
"--prefer-online",
|
|
217997
218016
|
"--registry",
|
|
@@ -218015,7 +218034,7 @@ async function getLatestVersionFromArtifactory(tag2 = "latest") {
|
|
|
218015
218034
|
latency_ms: latencyMs,
|
|
218016
218035
|
source_npm: true
|
|
218017
218036
|
});
|
|
218018
|
-
logForDebugging(`npm view ${{ VERSION: "0.2.
|
|
218037
|
+
logForDebugging(`npm view ${{ VERSION: "0.2.43", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.NATIVE_PACKAGE_URL}@${tag2} version: ${stdout}`);
|
|
218019
218038
|
const latestVersion = stdout.trim();
|
|
218020
218039
|
return latestVersion;
|
|
218021
218040
|
}
|
|
@@ -218071,7 +218090,7 @@ async function downloadVersionFromArtifactory(version2, stagingPath) {
|
|
|
218071
218090
|
const fs3 = getFsImplementation();
|
|
218072
218091
|
await fs3.rm(stagingPath, { recursive: true, force: true });
|
|
218073
218092
|
const platform4 = getPlatform2();
|
|
218074
|
-
const platformPackageName = `${{ VERSION: "0.2.
|
|
218093
|
+
const platformPackageName = `${{ VERSION: "0.2.43", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.NATIVE_PACKAGE_URL}-${platform4}`;
|
|
218075
218094
|
logForDebugging(`Fetching integrity hash for ${platformPackageName}@${version2}`);
|
|
218076
218095
|
const {
|
|
218077
218096
|
stdout: integrityOutput,
|
|
@@ -218100,7 +218119,7 @@ async function downloadVersionFromArtifactory(version2, stagingPath) {
|
|
|
218100
218119
|
name: "theus-native-installer",
|
|
218101
218120
|
version: "0.0.1",
|
|
218102
218121
|
dependencies: {
|
|
218103
|
-
[{ VERSION: "0.2.
|
|
218122
|
+
[{ VERSION: "0.2.43", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.NATIVE_PACKAGE_URL]: version2
|
|
218104
218123
|
}
|
|
218105
218124
|
};
|
|
218106
218125
|
const packageLock = {
|
|
@@ -218113,10 +218132,10 @@ async function downloadVersionFromArtifactory(version2, stagingPath) {
|
|
|
218113
218132
|
name: "theus-native-installer",
|
|
218114
218133
|
version: "0.0.1",
|
|
218115
218134
|
dependencies: {
|
|
218116
|
-
[{ VERSION: "0.2.
|
|
218135
|
+
[{ VERSION: "0.2.43", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.NATIVE_PACKAGE_URL]: version2
|
|
218117
218136
|
}
|
|
218118
218137
|
},
|
|
218119
|
-
[`node_modules/${{ VERSION: "0.2.
|
|
218138
|
+
[`node_modules/${{ VERSION: "0.2.43", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.NATIVE_PACKAGE_URL}`]: {
|
|
218120
218139
|
version: version2,
|
|
218121
218140
|
optionalDependencies: {
|
|
218122
218141
|
[platformPackageName]: version2
|
|
@@ -218138,7 +218157,7 @@ async function downloadVersionFromArtifactory(version2, stagingPath) {
|
|
|
218138
218157
|
if (result.code !== 0) {
|
|
218139
218158
|
throw new Error(`npm ci failed with code ${result.code}: ${result.stderr}`);
|
|
218140
218159
|
}
|
|
218141
|
-
logForDebugging(`Successfully downloaded and verified ${{ VERSION: "0.2.
|
|
218160
|
+
logForDebugging(`Successfully downloaded and verified ${{ VERSION: "0.2.43", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.NATIVE_PACKAGE_URL}@${version2}`);
|
|
218142
218161
|
}
|
|
218143
218162
|
function getStallTimeoutMs() {
|
|
218144
218163
|
return Number(process.env.THEUS_CODE_STALL_TIMEOUT_MS_FOR_TESTING) || DEFAULT_STALL_TIMEOUT_MS;
|
|
@@ -218801,8 +218820,8 @@ async function updateLatest(channelOrVersion, forceReinstall = false) {
|
|
|
218801
218820
|
const maxVersion = await getMaxVersion();
|
|
218802
218821
|
if (maxVersion && gt(version2, maxVersion)) {
|
|
218803
218822
|
logForDebugging(`Native installer: maxVersion ${maxVersion} is set, capping update from ${version2} to ${maxVersion}`);
|
|
218804
|
-
if (gte({ VERSION: "0.2.
|
|
218805
|
-
logForDebugging(`Native installer: current version ${{ VERSION: "0.2.
|
|
218823
|
+
if (gte({ VERSION: "0.2.43", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
|
|
218824
|
+
logForDebugging(`Native installer: current version ${{ VERSION: "0.2.43", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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`);
|
|
218806
218825
|
logEvent("tengu_native_update_skipped_max_version", {
|
|
218807
218826
|
latency_ms: Date.now() - startTime2,
|
|
218808
218827
|
max_version: maxVersion,
|
|
@@ -218813,7 +218832,7 @@ async function updateLatest(channelOrVersion, forceReinstall = false) {
|
|
|
218813
218832
|
version2 = maxVersion;
|
|
218814
218833
|
}
|
|
218815
218834
|
}
|
|
218816
|
-
if (!forceReinstall && version2 === { VERSION: "0.2.
|
|
218835
|
+
if (!forceReinstall && version2 === { VERSION: "0.2.43", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
|
|
218817
218836
|
logForDebugging(`Found ${version2} at ${executablePath}, skipping install`);
|
|
218818
218837
|
logEvent("tengu_native_update_complete", {
|
|
218819
218838
|
latency_ms: Date.now() - startTime2,
|
|
@@ -219563,8 +219582,8 @@ async function cleanupNpmInstallations() {
|
|
|
219563
219582
|
} else if (codePackageResult.error) {
|
|
219564
219583
|
errors4.push(codePackageResult.error);
|
|
219565
219584
|
}
|
|
219566
|
-
if ({ VERSION: "0.2.
|
|
219567
|
-
const macroPackageResult = await attemptNpmUninstall({ VERSION: "0.2.
|
|
219585
|
+
if ({ VERSION: "0.2.43", BUILD_TIME: "1970-01-01T00:00:00.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.43", BUILD_TIME: "1970-01-01T00:00:00.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") {
|
|
219586
|
+
const macroPackageResult = await attemptNpmUninstall({ VERSION: "0.2.43", BUILD_TIME: "1970-01-01T00:00:00.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);
|
|
219568
219587
|
if (macroPackageResult.success) {
|
|
219569
219588
|
removed++;
|
|
219570
219589
|
if (macroPackageResult.warning) {
|
|
@@ -230050,6 +230069,17 @@ var init_ConsoleOAuthFlow = __esm(() => {
|
|
|
230050
230069
|
var NOVEDADES;
|
|
230051
230070
|
var init_data = __esm(() => {
|
|
230052
230071
|
NOVEDADES = [
|
|
230072
|
+
{
|
|
230073
|
+
version: "v0.2.43",
|
|
230074
|
+
fecha: "2026-07-24",
|
|
230075
|
+
titulo: "Imagen y video m\xE1s inteligentes: el agente ve lo que crea",
|
|
230076
|
+
puntos: [
|
|
230077
|
+
"Al generar una imagen, Theus ahora recibe una vista previa reducida del resultado: puede revisarla y corregir el prompt sin que t\xFA tengas que abrir el archivo. Se cierra el ciclo crear\u2192ver\u2192ajustar.",
|
|
230078
|
+
"Nuevos comandos directos \xAB/imagen\xBB y \xAB/video\xBB para generar sin redactar la instrucci\xF3n exacta; puedes pedir el formato (vertical 9:16, horizontal 16:9) y la duraci\xF3n del clip.",
|
|
230079
|
+
"Los subagentes tambi\xE9n pueden generar imagen y video: un ayudante encargado de \xABprepara los assets\xBB ya no se queda corto.",
|
|
230080
|
+
"Correcci\xF3n: la generaci\xF3n usa modelos con ruta verificada, as\xED que ya no falla en silencio cuando tu plan incluye la cuota."
|
|
230081
|
+
]
|
|
230082
|
+
},
|
|
230053
230083
|
{
|
|
230054
230084
|
version: "v0.2.42",
|
|
230055
230085
|
fecha: "2026-07-21",
|
|
@@ -242739,6 +242769,14 @@ var init_entryApiKey = __esm(() => {
|
|
|
242739
242769
|
import { existsSync as existsSync5, readFileSync as readFileSync13 } from "fs";
|
|
242740
242770
|
import { mkdir as mkdir17, writeFile as writeFile18 } from "fs/promises";
|
|
242741
242771
|
import { join as join69, relative as relative9 } from "path";
|
|
242772
|
+
async function buildPreview(bytes, mediaType) {
|
|
242773
|
+
try {
|
|
242774
|
+
const compressed = await compressImageBufferWithTokenLimit(bytes, PREVIEW_TOKEN_BUDGET, mediaType);
|
|
242775
|
+
return { base64: compressed.base64, mediaType: compressed.mediaType };
|
|
242776
|
+
} catch {
|
|
242777
|
+
return null;
|
|
242778
|
+
}
|
|
242779
|
+
}
|
|
242742
242780
|
function trimBase(url3) {
|
|
242743
242781
|
return url3.replace(/\/+$/, "");
|
|
242744
242782
|
}
|
|
@@ -242890,12 +242928,17 @@ function createTheusMediaAdapter(options2 = {}) {
|
|
|
242890
242928
|
}
|
|
242891
242929
|
const bytes = Buffer.from(b64, "base64");
|
|
242892
242930
|
const { rel } = await writeMedia(`imagen-${stamp()}.png`, bytes);
|
|
242931
|
+
const preview = await buildPreview(bytes, "image/png");
|
|
242893
242932
|
const artifact = {
|
|
242894
242933
|
kind: "image",
|
|
242895
242934
|
label: `Imagen (${formatBytes(bytes.byteLength)})`,
|
|
242896
|
-
ref: rel
|
|
242935
|
+
ref: rel,
|
|
242936
|
+
...preview ? {
|
|
242937
|
+
previewBase64: preview.base64,
|
|
242938
|
+
previewMediaType: preview.mediaType
|
|
242939
|
+
} : {}
|
|
242897
242940
|
};
|
|
242898
|
-
return respond("image", `Imagen generada: ${rel}
|
|
242941
|
+
return respond("image", preview ? `Imagen generada: ${rel} (${formatBytes(bytes.byteLength)}). Abajo va una vista previa reducida \u2014 rev\xEDsala y, si algo no cuadra, ajusta el prompt y regenera. Archivo a resoluci\xF3n completa: \`open ${rel}\`.` : `Imagen generada: ${rel}
|
|
242899
242942
|
Para verla: \`open ${rel}\` (no la leas al contexto).`, start, imageModel, { gatewayProvider: gateway.providerId, sizeBytes: bytes.byteLength }, [artifact]);
|
|
242900
242943
|
}
|
|
242901
242944
|
async function generateVideo(request, gateway, start) {
|
|
@@ -242998,8 +243041,9 @@ Para verla: \`open ${rel}\` (no la leas al contexto).`, start, imageModel, { gat
|
|
|
242998
243041
|
}
|
|
242999
243042
|
};
|
|
243000
243043
|
}
|
|
243001
|
-
var OFFICIAL_PROVIDER_ID = "theus-official", MEDIA_DIR = "theus-media", DEFAULT_IMAGE_MODEL = "
|
|
243044
|
+
var OFFICIAL_PROVIDER_ID = "theus-official", MEDIA_DIR = "theus-media", DEFAULT_IMAGE_MODEL = "theus-image-flash", DEFAULT_VIDEO_MODEL = "theus-video", VIDEO_POLL_MS = 5000, VIDEO_TIMEOUT_MS, PREVIEW_TOKEN_BUDGET = 700, LOGIN_HINT = "Inicia sesi\xF3n con `theus login` para generar im\xE1genes/video con tu suscripci\xF3n.", CAPS3;
|
|
243002
243045
|
var init_media = __esm(() => {
|
|
243046
|
+
init_imageResizer();
|
|
243003
243047
|
init_entryApiKey();
|
|
243004
243048
|
init_registry2();
|
|
243005
243049
|
VIDEO_TIMEOUT_MS = 10 * 60000;
|
|
@@ -244784,8 +244828,12 @@ function renderProjectDashboardHtml(status, db) {
|
|
|
244784
244828
|
<meta charset="utf-8" />
|
|
244785
244829
|
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
|
244786
244830
|
<title>${escapeHtml(PRODUCT_NAME)} \xB7 Mapa del proyecto</title>
|
|
244787
|
-
<link rel="stylesheet" href="https://api.fontshare.com/v2/css?f[]=satoshi@300,400,500,700,900&display=swap" media="print" onload="this.media='all'" />
|
|
244788
244831
|
<style>
|
|
244832
|
+
@font-face { font-family: "Satoshi"; src: url("/assets/fonts/satoshi/satoshi-300.woff2") format("woff2"); font-weight: 300; font-style: normal; font-display: swap; }
|
|
244833
|
+
@font-face { font-family: "Satoshi"; src: url("/assets/fonts/satoshi/satoshi-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
|
|
244834
|
+
@font-face { font-family: "Satoshi"; src: url("/assets/fonts/satoshi/satoshi-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
|
|
244835
|
+
@font-face { font-family: "Satoshi"; src: url("/assets/fonts/satoshi/satoshi-700.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
|
|
244836
|
+
@font-face { font-family: "Satoshi"; src: url("/assets/fonts/satoshi/satoshi-900.woff2") format("woff2"); font-weight: 900; font-style: normal; font-display: swap; }
|
|
244789
244837
|
:root {
|
|
244790
244838
|
color-scheme: dark;
|
|
244791
244839
|
--bg: #1A0D33;
|
|
@@ -245537,7 +245585,7 @@ function renderProjectDashboardHtml(status, db) {
|
|
|
245537
245585
|
<div class="app">
|
|
245538
245586
|
<header class="topbar">
|
|
245539
245587
|
<div class="brand">
|
|
245540
|
-
<img class="brand-lockup" src="/assets/brand-official/v1.0/logo/theus-lockup-
|
|
245588
|
+
<img class="brand-lockup" src="/assets/brand-official/v1.0/logo/theus-lockup-negative-official.png" alt="THEUS" />
|
|
245541
245589
|
<div>
|
|
245542
245590
|
<div class="brand-subtitle">${escapeHtml(TAGLINE)}</div>
|
|
245543
245591
|
<div class="brand-product">Mapa inteligente del proyecto</div>
|
|
@@ -246807,9 +246855,8 @@ import {
|
|
|
246807
246855
|
import { dirname as dirname29, join as join75, resolve as resolve24 } from "path";
|
|
246808
246856
|
import { spawn as spawn4 } from "child_process";
|
|
246809
246857
|
import { fileURLToPath as fileURLToPath4 } from "url";
|
|
246810
|
-
async function
|
|
246858
|
+
async function loadBrandAsset(relativeAsset) {
|
|
246811
246859
|
const moduleDir = dirname29(fileURLToPath4(import.meta.url));
|
|
246812
|
-
const relativeAsset = join75("assets", "brand-official", "v1.0", "logo", "theus-lockup-primary-dark-official.png");
|
|
246813
246860
|
const candidates = [
|
|
246814
246861
|
resolve24(moduleDir, relativeAsset),
|
|
246815
246862
|
resolve24(moduleDir, "..", "..", relativeAsset),
|
|
@@ -246822,6 +246869,9 @@ async function loadOfficialLogo() {
|
|
|
246822
246869
|
}
|
|
246823
246870
|
return null;
|
|
246824
246871
|
}
|
|
246872
|
+
async function loadOfficialLogo() {
|
|
246873
|
+
return loadBrandAsset(join75("assets", "brand-official", "v1.0", "logo", "theus-lockup-negative-official.png"));
|
|
246874
|
+
}
|
|
246825
246875
|
function getLiveStore(projectRoot) {
|
|
246826
246876
|
return liveStores.get(resolve24(projectRoot)) ?? null;
|
|
246827
246877
|
}
|
|
@@ -246892,6 +246942,10 @@ async function startFresh(projectRoot) {
|
|
|
246892
246942
|
};
|
|
246893
246943
|
const apiToken = getBrandEnv("PROJECT_API_TOKEN") || randomBytes8(16).toString("hex");
|
|
246894
246944
|
const officialLogo = await loadOfficialLogo();
|
|
246945
|
+
const fontAssets = new Map(await Promise.all(FONT_ROUTES.map(async (route) => [
|
|
246946
|
+
route,
|
|
246947
|
+
await loadBrandAsset(route.replace(/^\//, ""))
|
|
246948
|
+
])));
|
|
246895
246949
|
let currentStatus;
|
|
246896
246950
|
const server = createServer5((req, res) => {
|
|
246897
246951
|
if (!isLoopbackHostHeader(req.headers.host)) {
|
|
@@ -246917,6 +246971,17 @@ async function startFresh(projectRoot) {
|
|
|
246917
246971
|
res.end(officialLogo);
|
|
246918
246972
|
return;
|
|
246919
246973
|
}
|
|
246974
|
+
const fontAsset = fontAssets.get(url3.pathname);
|
|
246975
|
+
if (fontAsset) {
|
|
246976
|
+
res.writeHead(200, {
|
|
246977
|
+
"Content-Type": "font/woff2",
|
|
246978
|
+
"Content-Length": fontAsset.byteLength,
|
|
246979
|
+
"Cache-Control": "public, max-age=31536000, immutable",
|
|
246980
|
+
"X-Content-Type-Options": "nosniff"
|
|
246981
|
+
});
|
|
246982
|
+
res.end(fontAsset);
|
|
246983
|
+
return;
|
|
246984
|
+
}
|
|
246920
246985
|
if (!tokenMatches(extractRequestToken(req, url3), apiToken)) {
|
|
246921
246986
|
sendJson(res, {
|
|
246922
246987
|
error: "unauthorized",
|
|
@@ -247162,7 +247227,7 @@ function sendHtml(res, html2) {
|
|
|
247162
247227
|
});
|
|
247163
247228
|
res.end(html2);
|
|
247164
247229
|
}
|
|
247165
|
-
var running, openedDashboards, OFFICIAL_LOGO_ROUTE = "/assets/brand-official/v1.0/logo/theus-lockup-
|
|
247230
|
+
var running, openedDashboards, OFFICIAL_LOGO_ROUTE = "/assets/brand-official/v1.0/logo/theus-lockup-negative-official.png", FONT_ROUTES, liveStores, NAUPA_UI_URL = "http://127.0.0.1:9749/", LOOPBACK_HOSTNAMES2;
|
|
247166
247231
|
var init_projectIntelligence = __esm(() => {
|
|
247167
247232
|
init_branding();
|
|
247168
247233
|
init_indexer();
|
|
@@ -247174,6 +247239,13 @@ var init_projectIntelligence = __esm(() => {
|
|
|
247174
247239
|
init_dashboardHtml();
|
|
247175
247240
|
running = new Map;
|
|
247176
247241
|
openedDashboards = new Set;
|
|
247242
|
+
FONT_ROUTES = [
|
|
247243
|
+
"/assets/fonts/satoshi/satoshi-300.woff2",
|
|
247244
|
+
"/assets/fonts/satoshi/satoshi-400.woff2",
|
|
247245
|
+
"/assets/fonts/satoshi/satoshi-500.woff2",
|
|
247246
|
+
"/assets/fonts/satoshi/satoshi-700.woff2",
|
|
247247
|
+
"/assets/fonts/satoshi/satoshi-900.woff2"
|
|
247248
|
+
];
|
|
247177
247249
|
liveStores = new Map;
|
|
247178
247250
|
LOOPBACK_HOSTNAMES2 = new Set(["127.0.0.1", "localhost", "::1", "[::1]"]);
|
|
247179
247251
|
});
|
|
@@ -247929,7 +248001,7 @@ var init_types8 = __esm(() => {
|
|
|
247929
248001
|
});
|
|
247930
248002
|
|
|
247931
248003
|
// tools/TodoWriteTool/prompt.ts
|
|
247932
|
-
var PROMPT4,
|
|
248004
|
+
var PROMPT4, DESCRIPTION12 = "Update the todo list for the current session. To be used proactively and often to track progress and pending tasks. Make sure that at least one task is in_progress at all times. Always provide both content (imperative) and activeForm (present continuous) for each task.";
|
|
247933
248005
|
var init_prompt11 = __esm(() => {
|
|
247934
248006
|
PROMPT4 = `Use this tool to create and manage a structured task list for your current coding session. This helps you track progress, organize complex tasks, and demonstrate thoroughness to the user.
|
|
247935
248007
|
It also helps the user understand the progress of the task and overall progress of their requests.
|
|
@@ -248137,7 +248209,7 @@ var init_TodoWriteTool = __esm(() => {
|
|
|
248137
248209
|
maxResultSizeChars: 1e5,
|
|
248138
248210
|
strict: true,
|
|
248139
248211
|
async description() {
|
|
248140
|
-
return
|
|
248212
|
+
return DESCRIPTION12;
|
|
248141
248213
|
},
|
|
248142
248214
|
async prompt() {
|
|
248143
248215
|
return PROMPT4;
|
|
@@ -274525,7 +274597,7 @@ var init_notebook = __esm(() => {
|
|
|
274525
274597
|
});
|
|
274526
274598
|
|
|
274527
274599
|
// tools/NotebookEditTool/prompt.ts
|
|
274528
|
-
var
|
|
274600
|
+
var DESCRIPTION13 = "Replace the contents of a specific cell in a Jupyter notebook.", PROMPT5 = `Completely replaces the contents of a specific cell in a Jupyter notebook (.ipynb file) with new source. Jupyter notebooks are interactive documents that combine code, text, and visualizations, commonly used for data analysis and scientific computing. The notebook_path parameter must be an absolute path, not a relative path. The cell_number is 0-indexed. Use edit_mode=insert to add a new cell at the index specified by cell_number. Use edit_mode=delete to delete the cell at the index specified by cell_number.`;
|
|
274529
274601
|
|
|
274530
274602
|
// components/NotebookEditToolUseRejectedMessage.tsx
|
|
274531
274603
|
import { relative as relative20 } from "path";
|
|
@@ -274815,7 +274887,7 @@ var init_NotebookEditTool = __esm(() => {
|
|
|
274815
274887
|
maxResultSizeChars: 1e5,
|
|
274816
274888
|
shouldDefer: true,
|
|
274817
274889
|
async description() {
|
|
274818
|
-
return
|
|
274890
|
+
return DESCRIPTION13;
|
|
274819
274891
|
},
|
|
274820
274892
|
async prompt() {
|
|
274821
274893
|
return PROMPT5;
|
|
@@ -277732,7 +277804,7 @@ var init_briefEnabled = __esm(() => {
|
|
|
277732
277804
|
});
|
|
277733
277805
|
|
|
277734
277806
|
// tools/BriefTool/prompt.ts
|
|
277735
|
-
var BRIEF_TOOL_NAME2 = "SendUserMessage", LEGACY_BRIEF_TOOL_NAME2 = "Brief",
|
|
277807
|
+
var BRIEF_TOOL_NAME2 = "SendUserMessage", LEGACY_BRIEF_TOOL_NAME2 = "Brief", DESCRIPTION14 = "Send a message to the user", BRIEF_TOOL_PROMPT = `Send a message the user will read. Text outside this tool is visible in the detail view, but most won't open it \u2014 the answer lives here.
|
|
277736
277808
|
|
|
277737
277809
|
\`message\` supports markdown. \`attachments\` takes file paths (absolute or cwd-relative) for images, diffs, logs.
|
|
277738
277810
|
|
|
@@ -278016,7 +278088,7 @@ var init_BriefTool = __esm(() => {
|
|
|
278016
278088
|
return validateAttachmentPaths(attachments);
|
|
278017
278089
|
},
|
|
278018
278090
|
async description() {
|
|
278019
|
-
return
|
|
278091
|
+
return DESCRIPTION14;
|
|
278020
278092
|
},
|
|
278021
278093
|
async prompt() {
|
|
278022
278094
|
return BRIEF_TOOL_PROMPT;
|
|
@@ -278220,24 +278292,6 @@ var init_types10 = __esm(() => {
|
|
|
278220
278292
|
];
|
|
278221
278293
|
});
|
|
278222
278294
|
|
|
278223
|
-
// tools/ProviderTool/prompt.ts
|
|
278224
|
-
var PROVIDER_TOOL_NAME = "Provider", DESCRIPTION14 = `Route a request to one or more specialized model providers and fuse the results into a single answer.
|
|
278225
|
-
|
|
278226
|
-
Use this when a turn needs a NON-TEXT capability or several capabilities at once:
|
|
278227
|
-
- "genera una imagen de X" \u2192 capability: ["image"] (REAL generation)
|
|
278228
|
-
- "genera un video de X" \u2192 capability: ["video"] (REAL generation)
|
|
278229
|
-
- "chart this dataset" \u2192 capability: ["chart"], pass rows in \`data\`
|
|
278230
|
-
- "write a report on Y" \u2192 capability: ["report"], pass sections in \`data\`
|
|
278231
|
-
- "answer AND chart the numbers" \u2192 capability: ["text","chart"]
|
|
278232
|
-
|
|
278233
|
-
Capabilities: text | video | image | report | chart | embedding.
|
|
278234
|
-
|
|
278235
|
-
Image and video generation are REAL: they run against the user's Theus subscription gateway (configured automatically by \`theus login\`). The generated PNG/MP4 is saved under <cwd>/theus-media/ and the fused answer includes the relative file path \u2014 share that path with the user. Video generation can take up to a few minutes (the tool waits and downloads the result). If the user has no active session, the result explains (in Spanish) how to enable it with \`theus login\`.
|
|
278236
|
-
|
|
278237
|
-
The router picks the best enabled provider per capability (or all of them when \`combine\` is true), runs them in parallel, and returns one fused message with a provenance/cost summary.
|
|
278238
|
-
|
|
278239
|
-
Provide \`prompt\` (the instruction). For chart/report pass structured \`data\` (chart: [{label,value}], report: [{heading,body}]).`, PROVIDER_TOOL_SEARCH_HINT = "generar imagen video generate image video chart report via the Theus subscription gateway";
|
|
278240
|
-
|
|
278241
278295
|
// tools/ProviderTool/UI.tsx
|
|
278242
278296
|
function userFacingName6() {
|
|
278243
278297
|
return "Provider";
|
|
@@ -278326,7 +278380,9 @@ var init_ProviderTool = __esm(() => {
|
|
|
278326
278380
|
capabilities: exports_external.array(exports_external.enum(ALL_CAPABILITIES)).min(1).describe('Which capabilities this turn needs (e.g. ["text","chart"]).'),
|
|
278327
278381
|
prompt: exports_external.string().describe("The instruction shared across every selected provider."),
|
|
278328
278382
|
data: exports_external.unknown().optional().describe("Structured input for data-driven capabilities. chart: [{label,value}]; report: [{heading,body}]."),
|
|
278329
|
-
combine: exports_external.boolean().optional().describe("Run EVERY enabled provider per capability and fuse them (default: pick the single best).")
|
|
278383
|
+
combine: exports_external.boolean().optional().describe("Run EVERY enabled provider per capability and fuse them (default: pick the single best)."),
|
|
278384
|
+
size: exports_external.string().optional().describe('Imagen: resoluci\xF3n/relaci\xF3n como "1024x1024", "1024x1792" (vertical 9:16) o "1792x1024" (horizontal 16:9). Omite para el default del modelo.'),
|
|
278385
|
+
durationSec: exports_external.number().int().positive().optional().describe("Video: duraci\xF3n del clip en segundos (p.ej. 4, 6, 8). Omite para el default del modelo.")
|
|
278330
278386
|
}));
|
|
278331
278387
|
ProviderTool = buildTool({
|
|
278332
278388
|
name: PROVIDER_TOOL_NAME,
|
|
@@ -278335,7 +278391,7 @@ var init_ProviderTool = __esm(() => {
|
|
|
278335
278391
|
shouldDefer: true,
|
|
278336
278392
|
maxResultSizeChars: 200000,
|
|
278337
278393
|
async description() {
|
|
278338
|
-
return
|
|
278394
|
+
return DESCRIPTION8;
|
|
278339
278395
|
},
|
|
278340
278396
|
userFacingName: userFacingName6,
|
|
278341
278397
|
getActivityDescription,
|
|
@@ -278349,7 +278405,7 @@ var init_ProviderTool = __esm(() => {
|
|
|
278349
278405
|
return `${input.capabilities.join(",")}: ${input.prompt}`;
|
|
278350
278406
|
},
|
|
278351
278407
|
async prompt() {
|
|
278352
|
-
return
|
|
278408
|
+
return DESCRIPTION8;
|
|
278353
278409
|
},
|
|
278354
278410
|
renderToolUseMessage: renderToolUseMessage17,
|
|
278355
278411
|
renderToolResultMessage: renderToolResultMessage16,
|
|
@@ -278359,11 +278415,19 @@ var init_ProviderTool = __esm(() => {
|
|
|
278359
278415
|
},
|
|
278360
278416
|
async call(input, context2) {
|
|
278361
278417
|
const router = new Router(getRegistry());
|
|
278418
|
+
const params = {};
|
|
278419
|
+
if (typeof input.size === "string" && input.size) {
|
|
278420
|
+
params.image = { size: input.size };
|
|
278421
|
+
}
|
|
278422
|
+
if (typeof input.durationSec === "number") {
|
|
278423
|
+
params.video = { durationSec: input.durationSec };
|
|
278424
|
+
}
|
|
278362
278425
|
const route = {
|
|
278363
278426
|
capabilities: input.capabilities,
|
|
278364
278427
|
prompt: input.prompt,
|
|
278365
278428
|
data: input.data,
|
|
278366
278429
|
combine: input.combine,
|
|
278430
|
+
...Object.keys(params).length ? { params } : {},
|
|
278367
278431
|
signal: context2.abortController?.signal
|
|
278368
278432
|
};
|
|
278369
278433
|
const result = await router.route(route);
|
|
@@ -278371,10 +278435,28 @@ var init_ProviderTool = __esm(() => {
|
|
|
278371
278435
|
return { data: fused };
|
|
278372
278436
|
},
|
|
278373
278437
|
mapToolResultToToolResultBlockParam(output, toolUseID) {
|
|
278438
|
+
const previews = output.artifacts.filter((a2) => typeof a2.previewBase64 === "string" && a2.previewBase64.length > 0);
|
|
278439
|
+
if (previews.length === 0) {
|
|
278440
|
+
return {
|
|
278441
|
+
tool_use_id: toolUseID,
|
|
278442
|
+
type: "tool_result",
|
|
278443
|
+
content: output.text
|
|
278444
|
+
};
|
|
278445
|
+
}
|
|
278374
278446
|
return {
|
|
278375
278447
|
tool_use_id: toolUseID,
|
|
278376
278448
|
type: "tool_result",
|
|
278377
|
-
content:
|
|
278449
|
+
content: [
|
|
278450
|
+
{ type: "text", text: output.text },
|
|
278451
|
+
...previews.map((a2) => ({
|
|
278452
|
+
type: "image",
|
|
278453
|
+
source: {
|
|
278454
|
+
type: "base64",
|
|
278455
|
+
media_type: a2.previewMediaType ?? "image/png",
|
|
278456
|
+
data: a2.previewBase64
|
|
278457
|
+
}
|
|
278458
|
+
}))
|
|
278459
|
+
]
|
|
278378
278460
|
};
|
|
278379
278461
|
}
|
|
278380
278462
|
});
|
|
@@ -291597,7 +291679,7 @@ function getToolsForDefaultPreset() {
|
|
|
291597
291679
|
return tools.filter((_, i3) => isEnabled2[i3]).map((tool) => tool.name);
|
|
291598
291680
|
}
|
|
291599
291681
|
function getAllBaseTools() {
|
|
291600
|
-
const theusExtensionsDisabled = process.env.THEUS_DISABLE_EXTENSIONS === "1" || process.env.THEUS_DISABLE_EXTENSIONS === "
|
|
291682
|
+
const theusExtensionsDisabled = process.env.THEUS_DISABLE_EXTENSIONS === "1" || process.env.THEUS_DISABLE_EXTENSIONS === "true";
|
|
291601
291683
|
return [
|
|
291602
291684
|
AgentTool,
|
|
291603
291685
|
TaskOutputTool,
|
|
@@ -304505,9 +304587,9 @@ function getTheusEnvMetadata() {
|
|
|
304505
304587
|
};
|
|
304506
304588
|
}
|
|
304507
304589
|
function getBuildAgeMinutes() {
|
|
304508
|
-
if (!{ VERSION: "0.2.
|
|
304590
|
+
if (!{ VERSION: "0.2.43", BUILD_TIME: "1970-01-01T00:00:00.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)
|
|
304509
304591
|
return;
|
|
304510
|
-
const buildTime = new Date({ VERSION: "0.2.
|
|
304592
|
+
const buildTime = new Date({ VERSION: "0.2.43", BUILD_TIME: "1970-01-01T00:00:00.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();
|
|
304511
304593
|
if (isNaN(buildTime))
|
|
304512
304594
|
return;
|
|
304513
304595
|
return Math.floor((Date.now() - buildTime) / 60000);
|
|
@@ -321155,7 +321237,7 @@ function getAssistantMessageFromError(error40, model, options2) {
|
|
|
321155
321237
|
if (process.env.USER_TYPE === "ant") {
|
|
321156
321238
|
const baseMessage = `API Error: 400 ${error40.message}
|
|
321157
321239
|
|
|
321158
|
-
Run /share and post the JSON file to ${{ VERSION: "0.2.
|
|
321240
|
+
Run /share and post the JSON file to ${{ VERSION: "0.2.43", BUILD_TIME: "1970-01-01T00:00:00.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}.`;
|
|
321159
321241
|
const rewindInstruction = getIsNonInteractiveSession() ? "" : " Then, use /rewind to recover the conversation.";
|
|
321160
321242
|
return createAssistantAPIErrorMessage({
|
|
321161
321243
|
content: baseMessage + rewindInstruction,
|
|
@@ -321191,7 +321273,7 @@ Run /share and post the JSON file to ${{ VERSION: "0.2.42", BUILD_TIME: "1970-01
|
|
|
321191
321273
|
if (process.env.USER_TYPE === "ant" && !process.env.THEUS_MODEL && error40 instanceof Error && error40.message.toLowerCase().includes("invalid model name")) {
|
|
321192
321274
|
const orgId = getOauthAccountInfo()?.organizationUuid;
|
|
321193
321275
|
const baseMsg = `[THEUS-INTERNAL] Your org isn't gated into the \`${model}\` model. Either run \`theus\` with \`THEUS_MODEL=${getDefaultMainLoopModelSetting()}\``;
|
|
321194
|
-
const msg = orgId ? `${baseMsg} or share your orgId (${orgId}) in ${{ VERSION: "0.2.
|
|
321276
|
+
const msg = orgId ? `${baseMsg} or share your orgId (${orgId}) in ${{ VERSION: "0.2.43", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.FEEDBACK_CHANNEL} for help getting access.` : `${baseMsg} or reach out in ${{ VERSION: "0.2.43", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.FEEDBACK_CHANNEL} for help getting access.`;
|
|
321195
321277
|
return createAssistantAPIErrorMessage({
|
|
321196
321278
|
content: msg,
|
|
321197
321279
|
error: "invalid_request"
|
|
@@ -328597,6 +328679,74 @@ var init_good_theus = __esm(() => {
|
|
|
328597
328679
|
good_theus_default = { isEnabled: () => false, isHidden: true, name: "stub" };
|
|
328598
328680
|
});
|
|
328599
328681
|
|
|
328682
|
+
// commands/imagen/index.ts
|
|
328683
|
+
var imagen, imagen_default;
|
|
328684
|
+
var init_imagen = __esm(() => {
|
|
328685
|
+
imagen = {
|
|
328686
|
+
type: "prompt",
|
|
328687
|
+
name: "imagen",
|
|
328688
|
+
description: "Genera una imagen con tu suscripci\xF3n Theus",
|
|
328689
|
+
aliases: ["image", "img"],
|
|
328690
|
+
progressMessage: "generando la imagen",
|
|
328691
|
+
contentLength: 0,
|
|
328692
|
+
source: "builtin",
|
|
328693
|
+
async getPromptForCommand(args) {
|
|
328694
|
+
const desc = args.trim();
|
|
328695
|
+
if (!desc) {
|
|
328696
|
+
return [
|
|
328697
|
+
{
|
|
328698
|
+
type: "text",
|
|
328699
|
+
text: "Preg\xFAntame en una l\xEDnea qu\xE9 imagen quieres generar (uso: `/imagen <descripci\xF3n>`, opcional el formato, p.ej. vertical 9:16)."
|
|
328700
|
+
}
|
|
328701
|
+
];
|
|
328702
|
+
}
|
|
328703
|
+
return [
|
|
328704
|
+
{
|
|
328705
|
+
type: "text",
|
|
328706
|
+
text: `Genera una imagen con la herramienta ${PROVIDER_TOOL_NAME} (capability ["image"]). Descripci\xF3n: ${desc}
|
|
328707
|
+
|
|
328708
|
+
Si el usuario indic\xF3 una relaci\xF3n de aspecto (vertical/9:16, horizontal/16:9, cuadrada), p\xE1sala en el par\xE1metro \`size\`. Cuando llegue la vista previa, rev\xEDsala y, si algo no cuadra con lo pedido, ajusta el prompt y regenera. Comparte la ruta del archivo final con el usuario.`
|
|
328709
|
+
}
|
|
328710
|
+
];
|
|
328711
|
+
}
|
|
328712
|
+
};
|
|
328713
|
+
imagen_default = imagen;
|
|
328714
|
+
});
|
|
328715
|
+
|
|
328716
|
+
// commands/video/index.ts
|
|
328717
|
+
var video, video_default;
|
|
328718
|
+
var init_video2 = __esm(() => {
|
|
328719
|
+
video = {
|
|
328720
|
+
type: "prompt",
|
|
328721
|
+
name: "video",
|
|
328722
|
+
description: "Genera un video con tu suscripci\xF3n Theus",
|
|
328723
|
+
aliases: ["vid"],
|
|
328724
|
+
progressMessage: "generando el video",
|
|
328725
|
+
contentLength: 0,
|
|
328726
|
+
source: "builtin",
|
|
328727
|
+
async getPromptForCommand(args) {
|
|
328728
|
+
const desc = args.trim();
|
|
328729
|
+
if (!desc) {
|
|
328730
|
+
return [
|
|
328731
|
+
{
|
|
328732
|
+
type: "text",
|
|
328733
|
+
text: "Dime en una l\xEDnea qu\xE9 video quieres (uso: `/video <descripci\xF3n>`, opcional la duraci\xF3n en segundos)."
|
|
328734
|
+
}
|
|
328735
|
+
];
|
|
328736
|
+
}
|
|
328737
|
+
return [
|
|
328738
|
+
{
|
|
328739
|
+
type: "text",
|
|
328740
|
+
text: `Genera un video con la herramienta ${PROVIDER_TOOL_NAME} (capability ["video"]). Descripci\xF3n: ${desc}
|
|
328741
|
+
|
|
328742
|
+
Si el usuario indic\xF3 una duraci\xF3n, p\xE1sala en el par\xE1metro \`durationSec\` (segundos). Av\xEDsale que la generaci\xF3n puede tardar unos minutos y, cuando termine, comparte la ruta del archivo con el usuario.`
|
|
328743
|
+
}
|
|
328744
|
+
];
|
|
328745
|
+
}
|
|
328746
|
+
};
|
|
328747
|
+
video_default = video;
|
|
328748
|
+
});
|
|
328749
|
+
|
|
328600
328750
|
// commands/issue/index.js
|
|
328601
328751
|
var issue_default;
|
|
328602
328752
|
var init_issue = __esm(() => {
|
|
@@ -331296,7 +331446,7 @@ function buildPrimarySection() {
|
|
|
331296
331446
|
});
|
|
331297
331447
|
return [{
|
|
331298
331448
|
label: "Version",
|
|
331299
|
-
value: { VERSION: "0.2.
|
|
331449
|
+
value: { VERSION: "0.2.43", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
|
|
331300
331450
|
}, {
|
|
331301
331451
|
label: "Session name",
|
|
331302
331452
|
value: nameValue
|
|
@@ -335112,7 +335262,7 @@ function Config({
|
|
|
335112
335262
|
}
|
|
335113
335263
|
})
|
|
335114
335264
|
}) : showSubmenu === "ChannelDowngrade" ? /* @__PURE__ */ jsx_runtime188.jsx(ChannelDowngradeDialog, {
|
|
335115
|
-
currentVersion: { VERSION: "0.2.
|
|
335265
|
+
currentVersion: { VERSION: "0.2.43", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
|
|
335116
335266
|
onChoice: (choice) => {
|
|
335117
335267
|
setShowSubmenu(null);
|
|
335118
335268
|
setTabsHidden(false);
|
|
@@ -335124,7 +335274,7 @@ function Config({
|
|
|
335124
335274
|
autoUpdatesChannel: "stable"
|
|
335125
335275
|
};
|
|
335126
335276
|
if (choice === "stay") {
|
|
335127
|
-
newSettings.minimumVersion = { VERSION: "0.2.
|
|
335277
|
+
newSettings.minimumVersion = { VERSION: "0.2.43", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION;
|
|
335128
335278
|
}
|
|
335129
335279
|
updateSettingsForSource("userSettings", newSettings);
|
|
335130
335280
|
setSettingsData((prev_27) => ({
|
|
@@ -343158,7 +343308,7 @@ function HelpV2(t0) {
|
|
|
343158
343308
|
let t6;
|
|
343159
343309
|
if ($2[31] !== tabs) {
|
|
343160
343310
|
t6 = /* @__PURE__ */ jsx_runtime215.jsx(Tabs, {
|
|
343161
|
-
title: `Theus v${{ VERSION: "0.2.
|
|
343311
|
+
title: `Theus v${{ VERSION: "0.2.43", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION}`,
|
|
343162
343312
|
color: "professionalBlue",
|
|
343163
343313
|
defaultTab: "general",
|
|
343164
343314
|
children: tabs
|
|
@@ -345340,7 +345490,7 @@ function isValidTheusToken(token) {
|
|
|
345340
345490
|
return /^[a-zA-Z0-9-_]{24,}$/.test(token);
|
|
345341
345491
|
}
|
|
345342
345492
|
function callbackHtml(message, ok) {
|
|
345343
|
-
return `<!doctype html><html lang="es"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1"><title>Theus
|
|
345493
|
+
return `<!doctype html><html lang="es"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1"><title>Acceso Theus</title><link rel="preconnect" href="https://api.fontshare.com"><link rel="stylesheet" href="https://api.fontshare.com/v2/css?f[]=satoshi@400,500,700&display=swap"><style>:root{color-scheme:dark}*{box-sizing:border-box}body{margin:0;min-height:100svh;display:grid;place-items:center;padding:24px;background:radial-gradient(circle at 70% 12%,rgba(42,91,255,.14),transparent 28rem),radial-gradient(circle at 18% 82%,rgba(123,46,255,.16),transparent 26rem),#000;color:#fff;font:400 16px/24px "Satoshi",system-ui,-apple-system,sans-serif}.box{position:relative;width:min(560px,100%);padding:48px;border:1px solid rgba(255,255,255,.16);background:#070707;overflow:hidden}.box:before{content:"";position:absolute;inset:0 0 auto;height:3px;background:linear-gradient(90deg,#7b2eff,#2a5bff 48%,#ff7a00)}.brand{display:block;width:92px;height:auto;margin:0 0 40px}.state{display:grid;place-items:center;width:48px;height:48px;margin-bottom:24px;border:1px solid currentColor;border-radius:50%;color:${ok ? "#00d1ff" : "#ff7a00"}}.state:before{content:"";width:12px;height:12px;border-radius:50%;background:currentColor;box-shadow:0 0 24px currentColor}h1{margin:0 0 16px;font-size:40px;line-height:48px;font-weight:500;letter-spacing:-.02em}p{margin:0;color:rgba(255,255,255,.72)}p+p{margin-top:16px;color:rgba(255,255,255,.5)}@media(max-width:520px){.box{padding:32px 24px}h1{font-size:32px;line-height:40px}}</style></head><body><main class="box"><img class="brand" src="https://theus.pe/assets/brand-official/v1.0/logo/theus-lockup-negative-official.png" alt="Theus"><span class="state" aria-hidden="true"></span><h1>${ok ? "Theus conectado" : "No se pudo conectar"}</h1><p>${escapeHtml2(message)}</p><p>Ya puedes volver a la terminal.</p></main></body></html>`;
|
|
345344
345494
|
}
|
|
345345
345495
|
function sendHtml2(res, html2) {
|
|
345346
345496
|
res.writeHead(200, { "content-type": "text/html; charset=utf-8" });
|
|
@@ -361269,7 +361419,7 @@ function Onboarding({
|
|
|
361269
361419
|
flexDirection: "column",
|
|
361270
361420
|
children: [
|
|
361271
361421
|
/* @__PURE__ */ jsx_runtime248.jsx(TheusBanner, {
|
|
361272
|
-
version: { VERSION: "0.2.
|
|
361422
|
+
version: { VERSION: "0.2.43", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
|
|
361273
361423
|
}),
|
|
361274
361424
|
/* @__PURE__ */ jsx_runtime248.jsxs(ThemedBox_default, {
|
|
361275
361425
|
flexDirection: "column",
|
|
@@ -361770,9 +361920,9 @@ function getAllReleaseNotes(changelogContent = getStoredChangelogFromMemory()) {
|
|
|
361770
361920
|
return [];
|
|
361771
361921
|
}
|
|
361772
361922
|
}
|
|
361773
|
-
async function checkForReleaseNotes(lastSeenVersion, currentVersion = { VERSION: "0.2.
|
|
361923
|
+
async function checkForReleaseNotes(lastSeenVersion, currentVersion = { VERSION: "0.2.43", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION) {
|
|
361774
361924
|
if (process.env.USER_TYPE === "ant") {
|
|
361775
|
-
const changelog = { VERSION: "0.2.
|
|
361925
|
+
const changelog = { VERSION: "0.2.43", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION_CHANGELOG;
|
|
361776
361926
|
if (changelog) {
|
|
361777
361927
|
const commits = changelog.trim().split(`
|
|
361778
361928
|
`).filter(Boolean);
|
|
@@ -365974,7 +366124,7 @@ var init_Messages = __esm(() => {
|
|
|
365974
366124
|
let t1;
|
|
365975
366125
|
if ($2[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
365976
366126
|
t1 = /* @__PURE__ */ jsx_runtime260.jsx(TheusSessionHeader, {
|
|
365977
|
-
version: { VERSION: "0.2.
|
|
366127
|
+
version: { VERSION: "0.2.43", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
|
|
365978
366128
|
});
|
|
365979
366129
|
$2[0] = t1;
|
|
365980
366130
|
} else {
|
|
@@ -394446,7 +394596,7 @@ async function captureMemoryDiagnostics(trigger, dumpNumber = 0) {
|
|
|
394446
394596
|
smapsRollup,
|
|
394447
394597
|
platform: process.platform,
|
|
394448
394598
|
nodeVersion: process.version,
|
|
394449
|
-
ccVersion: { VERSION: "0.2.
|
|
394599
|
+
ccVersion: { VERSION: "0.2.43", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
|
|
394450
394600
|
};
|
|
394451
394601
|
}
|
|
394452
394602
|
async function performHeapDump(trigger = "manual", dumpNumber = 0) {
|
|
@@ -395032,7 +395182,7 @@ var init_bridge_kick = __esm(() => {
|
|
|
395032
395182
|
var call58 = async () => {
|
|
395033
395183
|
return {
|
|
395034
395184
|
type: "text",
|
|
395035
|
-
value: { VERSION: "0.2.
|
|
395185
|
+
value: { VERSION: "0.2.43", BUILD_TIME: "1970-01-01T00:00:00.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.43", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.43", BUILD_TIME: "1970-01-01T00:00:00.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.43", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
|
|
395036
395186
|
};
|
|
395037
395187
|
}, version2, version_default;
|
|
395038
395188
|
var init_version = __esm(() => {
|
|
@@ -399474,13 +399624,13 @@ async function updateReleaseBundle() {
|
|
|
399474
399624
|
await gracefulShutdown(1);
|
|
399475
399625
|
return;
|
|
399476
399626
|
}
|
|
399477
|
-
if (gte({ VERSION: "0.2.
|
|
399478
|
-
writeToStdout(source_default.green(`Theus is up to date (${{ VERSION: "0.2.
|
|
399627
|
+
if (gte({ VERSION: "0.2.43", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
|
|
399628
|
+
writeToStdout(source_default.green(`Theus is up to date (${{ VERSION: "0.2.43", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION})`) + `
|
|
399479
399629
|
`);
|
|
399480
399630
|
await gracefulShutdown(0);
|
|
399481
399631
|
return;
|
|
399482
399632
|
}
|
|
399483
|
-
writeToStdout(`New version available: ${latest} (current: ${{ VERSION: "0.2.
|
|
399633
|
+
writeToStdout(`New version available: ${latest} (current: ${{ VERSION: "0.2.43", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION})
|
|
399484
399634
|
`);
|
|
399485
399635
|
writeToStdout(`Installing update from theus.pe/dl...
|
|
399486
399636
|
`);
|
|
@@ -399514,7 +399664,7 @@ async function updateReleaseBundle() {
|
|
|
399514
399664
|
return;
|
|
399515
399665
|
}
|
|
399516
399666
|
cpSync(staged, bundleDir, { recursive: true, force: true });
|
|
399517
|
-
writeToStdout(source_default.green(`Successfully updated from ${{ VERSION: "0.2.
|
|
399667
|
+
writeToStdout(source_default.green(`Successfully updated from ${{ VERSION: "0.2.43", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION} to version ${latest}`) + `
|
|
399518
399668
|
`);
|
|
399519
399669
|
await regenerateCompletionCache();
|
|
399520
399670
|
} finally {
|
|
@@ -399527,7 +399677,7 @@ async function updateReleaseBundle() {
|
|
|
399527
399677
|
async function update() {
|
|
399528
399678
|
logEvent("tengu_update_check", {});
|
|
399529
399679
|
await updateNaupa();
|
|
399530
|
-
writeToStdout(`Current version: ${{ VERSION: "0.2.
|
|
399680
|
+
writeToStdout(`Current version: ${{ VERSION: "0.2.43", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION}
|
|
399531
399681
|
`);
|
|
399532
399682
|
const channel2 = getInitialSettings()?.autoUpdatesChannel ?? "latest";
|
|
399533
399683
|
writeToStdout(`Checking for updates to ${channel2} version...
|
|
@@ -399606,8 +399756,8 @@ async function update() {
|
|
|
399606
399756
|
writeToStdout(`Theus is managed by Homebrew.
|
|
399607
399757
|
`);
|
|
399608
399758
|
const latest = await getLatestVersion(channel2);
|
|
399609
|
-
if (latest && !gte({ VERSION: "0.2.
|
|
399610
|
-
writeToStdout(`Update available: ${{ VERSION: "0.2.
|
|
399759
|
+
if (latest && !gte({ VERSION: "0.2.43", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
|
|
399760
|
+
writeToStdout(`Update available: ${{ VERSION: "0.2.43", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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}
|
|
399611
399761
|
`);
|
|
399612
399762
|
writeToStdout(`
|
|
399613
399763
|
`);
|
|
@@ -399623,8 +399773,8 @@ async function update() {
|
|
|
399623
399773
|
writeToStdout(`Theus is managed by winget.
|
|
399624
399774
|
`);
|
|
399625
399775
|
const latest = await getLatestVersion(channel2);
|
|
399626
|
-
if (latest && !gte({ VERSION: "0.2.
|
|
399627
|
-
writeToStdout(`Update available: ${{ VERSION: "0.2.
|
|
399776
|
+
if (latest && !gte({ VERSION: "0.2.43", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
|
|
399777
|
+
writeToStdout(`Update available: ${{ VERSION: "0.2.43", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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}
|
|
399628
399778
|
`);
|
|
399629
399779
|
writeToStdout(`
|
|
399630
399780
|
`);
|
|
@@ -399640,8 +399790,8 @@ async function update() {
|
|
|
399640
399790
|
writeToStdout(`Theus is managed by apk.
|
|
399641
399791
|
`);
|
|
399642
399792
|
const latest = await getLatestVersion(channel2);
|
|
399643
|
-
if (latest && !gte({ VERSION: "0.2.
|
|
399644
|
-
writeToStdout(`Update available: ${{ VERSION: "0.2.
|
|
399793
|
+
if (latest && !gte({ VERSION: "0.2.43", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
|
|
399794
|
+
writeToStdout(`Update available: ${{ VERSION: "0.2.43", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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}
|
|
399645
399795
|
`);
|
|
399646
399796
|
writeToStdout(`
|
|
399647
399797
|
`);
|
|
@@ -399706,11 +399856,11 @@ async function update() {
|
|
|
399706
399856
|
`);
|
|
399707
399857
|
await gracefulShutdown(1);
|
|
399708
399858
|
}
|
|
399709
|
-
if (result.latestVersion === { VERSION: "0.2.
|
|
399710
|
-
writeToStdout(source_default.green(`Theus is up to date (${{ VERSION: "0.2.
|
|
399859
|
+
if (result.latestVersion === { VERSION: "0.2.43", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION) {
|
|
399860
|
+
writeToStdout(source_default.green(`Theus is up to date (${{ VERSION: "0.2.43", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION})`) + `
|
|
399711
399861
|
`);
|
|
399712
399862
|
} else {
|
|
399713
|
-
writeToStdout(source_default.green(`Successfully updated from ${{ VERSION: "0.2.
|
|
399863
|
+
writeToStdout(source_default.green(`Successfully updated from ${{ VERSION: "0.2.43", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION} to version ${result.latestVersion}`) + `
|
|
399714
399864
|
`);
|
|
399715
399865
|
await regenerateCompletionCache();
|
|
399716
399866
|
}
|
|
@@ -399729,9 +399879,9 @@ async function update() {
|
|
|
399729
399879
|
await removeInstalledSymlink();
|
|
399730
399880
|
}
|
|
399731
399881
|
logForDebugging("update: Checking npm registry for latest version");
|
|
399732
|
-
logForDebugging(`update: Package URL: ${{ VERSION: "0.2.
|
|
399882
|
+
logForDebugging(`update: Package URL: ${{ VERSION: "0.2.43", BUILD_TIME: "1970-01-01T00:00:00.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}`);
|
|
399733
399883
|
const npmTag = channel2 === "stable" ? "stable" : "latest";
|
|
399734
|
-
const npmCommand = `npm view ${{ VERSION: "0.2.
|
|
399884
|
+
const npmCommand = `npm view ${{ VERSION: "0.2.43", BUILD_TIME: "1970-01-01T00:00:00.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`;
|
|
399735
399885
|
logForDebugging(`update: Running: ${npmCommand}`);
|
|
399736
399886
|
const latestVersion = await getLatestVersion(channel2);
|
|
399737
399887
|
logForDebugging(`update: Latest version from npm: ${latestVersion || "FAILED"}`);
|
|
@@ -399751,7 +399901,7 @@ async function update() {
|
|
|
399751
399901
|
`);
|
|
399752
399902
|
process.stderr.write(` \u2022 Corporate proxy/firewall blocking npm
|
|
399753
399903
|
`);
|
|
399754
|
-
if ({ VERSION: "0.2.
|
|
399904
|
+
if ({ VERSION: "0.2.43", BUILD_TIME: "1970-01-01T00:00:00.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.43", BUILD_TIME: "1970-01-01T00:00:00.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")) {
|
|
399755
399905
|
process.stderr.write(` \u2022 Internal/development build not published to npm
|
|
399756
399906
|
`);
|
|
399757
399907
|
}
|
|
@@ -399763,19 +399913,19 @@ async function update() {
|
|
|
399763
399913
|
`);
|
|
399764
399914
|
process.stderr.write(` \u2022 Run with --debug flag for more details
|
|
399765
399915
|
`);
|
|
399766
|
-
const packageName = { VERSION: "0.2.
|
|
399916
|
+
const packageName = { VERSION: "0.2.43", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.PACKAGE_URL || (process.env.USER_TYPE === "ant" ? "@theus-ai/theus-cli" : "@theus-ai/theus-code");
|
|
399767
399917
|
process.stderr.write(` \u2022 Manually check: npm view ${packageName} version
|
|
399768
399918
|
`);
|
|
399769
399919
|
process.stderr.write(` \u2022 Check if you need to login: npm whoami
|
|
399770
399920
|
`);
|
|
399771
399921
|
await gracefulShutdown(1);
|
|
399772
399922
|
}
|
|
399773
|
-
if (gte({ VERSION: "0.2.
|
|
399774
|
-
writeToStdout(source_default.green(`Theus is up to date (${{ VERSION: "0.2.
|
|
399923
|
+
if (gte({ VERSION: "0.2.43", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
|
|
399924
|
+
writeToStdout(source_default.green(`Theus is up to date (${{ VERSION: "0.2.43", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION})`) + `
|
|
399775
399925
|
`);
|
|
399776
399926
|
await gracefulShutdown(0);
|
|
399777
399927
|
}
|
|
399778
|
-
writeToStdout(`New version available: ${latestVersion} (current: ${{ VERSION: "0.2.
|
|
399928
|
+
writeToStdout(`New version available: ${latestVersion} (current: ${{ VERSION: "0.2.43", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION})
|
|
399779
399929
|
`);
|
|
399780
399930
|
writeToStdout(`Installing update...
|
|
399781
399931
|
`);
|
|
@@ -399820,7 +399970,7 @@ async function update() {
|
|
|
399820
399970
|
logForDebugging(`update: Installation status: ${status2}`);
|
|
399821
399971
|
switch (status2) {
|
|
399822
399972
|
case "success":
|
|
399823
|
-
writeToStdout(source_default.green(`Successfully updated from ${{ VERSION: "0.2.
|
|
399973
|
+
writeToStdout(source_default.green(`Successfully updated from ${{ VERSION: "0.2.43", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION} to version ${latestVersion}`) + `
|
|
399824
399974
|
`);
|
|
399825
399975
|
await regenerateCompletionCache();
|
|
399826
399976
|
break;
|
|
@@ -399830,7 +399980,7 @@ async function update() {
|
|
|
399830
399980
|
if (useLocalUpdate) {
|
|
399831
399981
|
process.stderr.write(`Try manually updating with:
|
|
399832
399982
|
`);
|
|
399833
|
-
process.stderr.write(` cd ~/.theus/local && npm update ${{ VERSION: "0.2.
|
|
399983
|
+
process.stderr.write(` cd ~/.theus/local && npm update ${{ VERSION: "0.2.43", BUILD_TIME: "1970-01-01T00:00:00.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}
|
|
399834
399984
|
`);
|
|
399835
399985
|
} else {
|
|
399836
399986
|
process.stderr.write(`Try running with sudo or fix npm permissions
|
|
@@ -399846,7 +399996,7 @@ async function update() {
|
|
|
399846
399996
|
if (useLocalUpdate) {
|
|
399847
399997
|
process.stderr.write(`Try manually updating with:
|
|
399848
399998
|
`);
|
|
399849
|
-
process.stderr.write(` cd ~/.theus/local && npm update ${{ VERSION: "0.2.
|
|
399999
|
+
process.stderr.write(` cd ~/.theus/local && npm update ${{ VERSION: "0.2.43", BUILD_TIME: "1970-01-01T00:00:00.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}
|
|
399850
400000
|
`);
|
|
399851
400001
|
} else {
|
|
399852
400002
|
process.stderr.write(`Or consider using native installation with: theus install
|
|
@@ -405709,6 +405859,8 @@ var init_commands2 = __esm(() => {
|
|
|
405709
405859
|
init_backfill_sessions();
|
|
405710
405860
|
init_btw2();
|
|
405711
405861
|
init_good_theus();
|
|
405862
|
+
init_imagen();
|
|
405863
|
+
init_video2();
|
|
405712
405864
|
init_issue();
|
|
405713
405865
|
init_clear2();
|
|
405714
405866
|
init_color3();
|
|
@@ -405865,6 +406017,8 @@ var init_commands2 = __esm(() => {
|
|
|
405865
406017
|
doctor_default,
|
|
405866
406018
|
effort_default,
|
|
405867
406019
|
inteligencia_default,
|
|
406020
|
+
imagen_default,
|
|
406021
|
+
video_default,
|
|
405868
406022
|
exit_default,
|
|
405869
406023
|
fast_default,
|
|
405870
406024
|
files_default,
|
|
@@ -408925,7 +409079,7 @@ var init_sessionStorage = __esm(() => {
|
|
|
408925
409079
|
init_settings2();
|
|
408926
409080
|
init_slowOperations();
|
|
408927
409081
|
init_uuid();
|
|
408928
|
-
VERSION4 = { VERSION: "0.2.
|
|
409082
|
+
VERSION4 = { VERSION: "0.2.43", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION;
|
|
408929
409083
|
MAX_TOMBSTONE_REWRITE_BYTES = 50 * 1024 * 1024;
|
|
408930
409084
|
SKIP_FIRST_PROMPT_PATTERN = /^(?:\s*<[a-z][\w-]*[\s>]|\[Request interrupted by user[^\]]*\])/;
|
|
408931
409085
|
EPHEMERAL_PROGRESS_TYPES = new Set([
|
|
@@ -410130,7 +410284,7 @@ var init_filesystem = __esm(() => {
|
|
|
410130
410284
|
});
|
|
410131
410285
|
getBundledSkillsRoot = memoize_default(function getBundledSkillsRoot2() {
|
|
410132
410286
|
const nonce = randomBytes21(16).toString("hex");
|
|
410133
|
-
return join149(getTheusTempDir(), "bundled-skills", { VERSION: "0.2.
|
|
410287
|
+
return join149(getTheusTempDir(), "bundled-skills", { VERSION: "0.2.43", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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);
|
|
410134
410288
|
});
|
|
410135
410289
|
getResolvedWorkingDirPaths = memoize_default(getPathsForPermissionCheck);
|
|
410136
410290
|
});
|
|
@@ -415309,7 +415463,7 @@ function getSimpleDoingTasksSection() {
|
|
|
415309
415463
|
];
|
|
415310
415464
|
const userHelpSubitems = [
|
|
415311
415465
|
`/help: Get help with using Theus`,
|
|
415312
|
-
`To give feedback, users should ${{ VERSION: "0.2.
|
|
415466
|
+
`To give feedback, users should ${{ VERSION: "0.2.43", BUILD_TIME: "1970-01-01T00:00:00.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}`
|
|
415313
415467
|
];
|
|
415314
415468
|
const items = [
|
|
415315
415469
|
`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.`,
|
|
@@ -416209,7 +416363,7 @@ function computeFingerprint(messageText, version3) {
|
|
|
416209
416363
|
}
|
|
416210
416364
|
function computeFingerprintFromMessages(messages) {
|
|
416211
416365
|
const firstMessageText = extractFirstMessageText(messages);
|
|
416212
|
-
return computeFingerprint(firstMessageText, { VERSION: "0.2.
|
|
416366
|
+
return computeFingerprint(firstMessageText, { VERSION: "0.2.43", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION);
|
|
416213
416367
|
}
|
|
416214
416368
|
var FINGERPRINT_SALT = "59cf53e54c78";
|
|
416215
416369
|
var init_fingerprint = () => {};
|
|
@@ -418769,7 +418923,7 @@ async function sideQuery(opts) {
|
|
|
418769
418923
|
betas.push(STRUCTURED_OUTPUTS_BETA_HEADER);
|
|
418770
418924
|
}
|
|
418771
418925
|
const messageText = extractFirstUserMessageText(messages);
|
|
418772
|
-
const fingerprint = computeFingerprint(messageText, { VERSION: "0.2.
|
|
418926
|
+
const fingerprint = computeFingerprint(messageText, { VERSION: "0.2.43", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION);
|
|
418773
418927
|
const attributionHeader = getAttributionHeader(fingerprint);
|
|
418774
418928
|
const systemBlocks = [
|
|
418775
418929
|
attributionHeader ? { type: "text", text: attributionHeader } : null,
|
|
@@ -420072,7 +420226,7 @@ async function handleMemories(state) {
|
|
|
420072
420226
|
async function runProjectContextMcpServer() {
|
|
420073
420227
|
const projectRoot = process.env.THEUS_PROJECT_ROOT || process.cwd();
|
|
420074
420228
|
const state = new ProjectContextState(projectRoot);
|
|
420075
|
-
const server2 = new Server({ name: SERVER_NAME, version: { VERSION: "0.2.
|
|
420229
|
+
const server2 = new Server({ name: SERVER_NAME, version: { VERSION: "0.2.43", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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: {} } });
|
|
420076
420230
|
server2.setRequestHandler(ListToolsRequestSchema, async () => ({
|
|
420077
420231
|
tools: TOOL_DEFINITIONS.map((t) => ({
|
|
420078
420232
|
name: t.name,
|
|
@@ -422052,7 +422206,7 @@ function createBridgeLogger(options2) {
|
|
|
422052
422206
|
connectUrl = buildBridgeConnectUrl(environmentId, cachedIngressUrl);
|
|
422053
422207
|
regenerateQr(connectUrl);
|
|
422054
422208
|
if (verbose) {
|
|
422055
|
-
write(source_default.dim(`Remote Control`) + ` v${{ VERSION: "0.2.
|
|
422209
|
+
write(source_default.dim(`Remote Control`) + ` v${{ VERSION: "0.2.43", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION}
|
|
422056
422210
|
`);
|
|
422057
422211
|
}
|
|
422058
422212
|
if (verbose) {
|
|
@@ -423025,7 +423179,7 @@ function appendToLog(path19, message) {
|
|
|
423025
423179
|
cwd: getFsImplementation().cwd(),
|
|
423026
423180
|
userType: process.env.USER_TYPE,
|
|
423027
423181
|
sessionId: getSessionId(),
|
|
423028
|
-
version: { VERSION: "0.2.
|
|
423182
|
+
version: { VERSION: "0.2.43", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
|
|
423029
423183
|
};
|
|
423030
423184
|
getLogWriter(path19).write(messageWithTimestamp);
|
|
423031
423185
|
}
|
|
@@ -424295,7 +424449,7 @@ Spawn mode for this project:
|
|
|
424295
424449
|
const api2 = createBridgeApiClient({
|
|
424296
424450
|
baseUrl,
|
|
424297
424451
|
getAccessToken: getBridgeAccessToken2,
|
|
424298
|
-
runnerVersion: { VERSION: "0.2.
|
|
424452
|
+
runnerVersion: { VERSION: "0.2.43", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
|
|
424299
424453
|
onDebug: logForDebugging,
|
|
424300
424454
|
onAuth401: handleOAuth401Error2,
|
|
424301
424455
|
getTrustedDeviceToken
|
|
@@ -424533,7 +424687,7 @@ async function runBridgeHeadless(opts, signal) {
|
|
|
424533
424687
|
const api2 = createBridgeApiClient({
|
|
424534
424688
|
baseUrl,
|
|
424535
424689
|
getAccessToken: opts.getAccessToken,
|
|
424536
|
-
runnerVersion: { VERSION: "0.2.
|
|
424690
|
+
runnerVersion: { VERSION: "0.2.43", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
|
|
424537
424691
|
onDebug: log2,
|
|
424538
424692
|
onAuth401: opts.onAuth401,
|
|
424539
424693
|
getTrustedDeviceToken
|
|
@@ -428597,7 +428751,7 @@ function buildSystemInitMessage(inputs) {
|
|
|
428597
428751
|
slash_commands: inputs.commands.filter((c5) => c5.userInvocable !== false).map((c5) => c5.name),
|
|
428598
428752
|
apiKeySource: getTheusApiKeyWithSource().source,
|
|
428599
428753
|
betas: getSdkBetas(),
|
|
428600
|
-
theus_code_version: { VERSION: "0.2.
|
|
428754
|
+
theus_code_version: { VERSION: "0.2.43", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
|
|
428601
428755
|
output_style: outputStyle2,
|
|
428602
428756
|
agents: inputs.agents.map((agent) => agent.agentType),
|
|
428603
428757
|
skills: inputs.skills.filter((s) => s.userInvocable !== false).map((skill) => skill.name),
|
|
@@ -428637,8 +428791,8 @@ async function getEnvLessBridgeConfig() {
|
|
|
428637
428791
|
}
|
|
428638
428792
|
async function checkEnvLessBridgeMinVersion() {
|
|
428639
428793
|
const cfg = await getEnvLessBridgeConfig();
|
|
428640
|
-
if (cfg.min_version && lt({ VERSION: "0.2.
|
|
428641
|
-
return `Your version of Theus (${{ VERSION: "0.2.
|
|
428794
|
+
if (cfg.min_version && lt({ VERSION: "0.2.43", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
|
|
428795
|
+
return `Your version of Theus (${{ VERSION: "0.2.43", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.
|
|
428642
428796
|
Version ${cfg.min_version} or higher is required. Run \`theus update\` to update.`;
|
|
428643
428797
|
}
|
|
428644
428798
|
return null;
|
|
@@ -430961,7 +431115,7 @@ async function initBridgeCore(params) {
|
|
|
430961
431115
|
const rawApi = createBridgeApiClient({
|
|
430962
431116
|
baseUrl,
|
|
430963
431117
|
getAccessToken,
|
|
430964
|
-
runnerVersion: { VERSION: "0.2.
|
|
431118
|
+
runnerVersion: { VERSION: "0.2.43", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
|
|
430965
431119
|
onDebug: logForDebugging,
|
|
430966
431120
|
onAuth401,
|
|
430967
431121
|
getTrustedDeviceToken
|
|
@@ -447702,7 +447856,7 @@ var init_useVoiceEnabled = __esm(() => {
|
|
|
447702
447856
|
function getSemverPart(version3) {
|
|
447703
447857
|
return `${import_semver14.major(version3, { loose: true })}.${import_semver14.minor(version3, { loose: true })}.${import_semver14.patch(version3, { loose: true })}`;
|
|
447704
447858
|
}
|
|
447705
|
-
function useUpdateNotification(updatedVersion, initialVersion = { VERSION: "0.2.
|
|
447859
|
+
function useUpdateNotification(updatedVersion, initialVersion = { VERSION: "0.2.43", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION) {
|
|
447706
447860
|
const [lastNotifiedSemver, setLastNotifiedSemver] = import_react231.useState(() => getSemverPart(initialVersion));
|
|
447707
447861
|
if (!updatedVersion) {
|
|
447708
447862
|
return null;
|
|
@@ -447742,7 +447896,7 @@ function AutoUpdater({
|
|
|
447742
447896
|
return;
|
|
447743
447897
|
}
|
|
447744
447898
|
if (false) {}
|
|
447745
|
-
const currentVersion = { VERSION: "0.2.
|
|
447899
|
+
const currentVersion = { VERSION: "0.2.43", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION;
|
|
447746
447900
|
const channel2 = getInitialSettings()?.autoUpdatesChannel ?? "latest";
|
|
447747
447901
|
let latestVersion = await getLatestVersion(channel2);
|
|
447748
447902
|
const isDisabled2 = isAutoUpdaterDisabled();
|
|
@@ -447878,7 +448032,7 @@ function AutoUpdater({
|
|
|
447878
448032
|
" ",
|
|
447879
448033
|
/* @__PURE__ */ jsx_runtime405.jsx(ThemedText, {
|
|
447880
448034
|
bold: true,
|
|
447881
|
-
children: hasLocalInstall ? `cd ~/.theus/local && npm update ${{ VERSION: "0.2.
|
|
448035
|
+
children: hasLocalInstall ? `cd ~/.theus/local && npm update ${{ VERSION: "0.2.43", BUILD_TIME: "1970-01-01T00:00:00.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.43", BUILD_TIME: "1970-01-01T00:00:00.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}`
|
|
447882
448036
|
})
|
|
447883
448037
|
]
|
|
447884
448038
|
})
|
|
@@ -447955,12 +448109,12 @@ function NativeAutoUpdater({
|
|
|
447955
448109
|
logEvent("tengu_native_auto_updater_start", {});
|
|
447956
448110
|
try {
|
|
447957
448111
|
const maxVersion = await getMaxVersion();
|
|
447958
|
-
if (maxVersion && gt({ VERSION: "0.2.
|
|
448112
|
+
if (maxVersion && gt({ VERSION: "0.2.43", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
|
|
447959
448113
|
const msg = await getMaxVersionMessage();
|
|
447960
448114
|
setMaxVersionIssue(msg ?? "affects your version");
|
|
447961
448115
|
}
|
|
447962
448116
|
const result = await installLatest(channel2);
|
|
447963
|
-
const currentVersion = { VERSION: "0.2.
|
|
448117
|
+
const currentVersion = { VERSION: "0.2.43", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION;
|
|
447964
448118
|
const latencyMs = Date.now() - startTime2;
|
|
447965
448119
|
if (result.lockFailed) {
|
|
447966
448120
|
logEvent("tengu_native_auto_updater_lock_contention", {
|
|
@@ -448097,17 +448251,17 @@ function PackageManagerAutoUpdater(t0) {
|
|
|
448097
448251
|
const maxVersion = await getMaxVersion();
|
|
448098
448252
|
if (maxVersion && latest && gt(latest, maxVersion)) {
|
|
448099
448253
|
logForDebugging(`PackageManagerAutoUpdater: maxVersion ${maxVersion} is set, capping update from ${latest} to ${maxVersion}`);
|
|
448100
|
-
if (gte({ VERSION: "0.2.
|
|
448101
|
-
logForDebugging(`PackageManagerAutoUpdater: current version ${{ VERSION: "0.2.
|
|
448254
|
+
if (gte({ VERSION: "0.2.43", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
|
|
448255
|
+
logForDebugging(`PackageManagerAutoUpdater: current version ${{ VERSION: "0.2.43", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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`);
|
|
448102
448256
|
setUpdateAvailable(false);
|
|
448103
448257
|
return;
|
|
448104
448258
|
}
|
|
448105
448259
|
latest = maxVersion;
|
|
448106
448260
|
}
|
|
448107
|
-
const hasUpdate = latest && !gte({ VERSION: "0.2.
|
|
448261
|
+
const hasUpdate = latest && !gte({ VERSION: "0.2.43", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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);
|
|
448108
448262
|
setUpdateAvailable(!!hasUpdate);
|
|
448109
448263
|
if (hasUpdate) {
|
|
448110
|
-
logForDebugging(`PackageManagerAutoUpdater: Update available ${{ VERSION: "0.2.
|
|
448264
|
+
logForDebugging(`PackageManagerAutoUpdater: Update available ${{ VERSION: "0.2.43", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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}`);
|
|
448111
448265
|
}
|
|
448112
448266
|
};
|
|
448113
448267
|
$2[0] = t1;
|
|
@@ -448141,7 +448295,7 @@ function PackageManagerAutoUpdater(t0) {
|
|
|
448141
448295
|
wrap: "truncate",
|
|
448142
448296
|
children: [
|
|
448143
448297
|
"currentVersion: ",
|
|
448144
|
-
{ VERSION: "0.2.
|
|
448298
|
+
{ VERSION: "0.2.43", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
|
|
448145
448299
|
]
|
|
448146
448300
|
});
|
|
448147
448301
|
$2[3] = verbose;
|
|
@@ -456014,7 +456168,7 @@ function buildStatusLineCommandInput(permissionMode, exceeds200kTokens, settings
|
|
|
456014
456168
|
project_dir: getOriginalCwd(),
|
|
456015
456169
|
added_dirs: addedDirs
|
|
456016
456170
|
},
|
|
456017
|
-
version: { VERSION: "0.2.
|
|
456171
|
+
version: { VERSION: "0.2.43", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
|
|
456018
456172
|
output_style: {
|
|
456019
456173
|
name: outputStyleName
|
|
456020
456174
|
},
|
|
@@ -467434,7 +467588,7 @@ async function submitTranscriptShare(messages, trigger, appearanceId) {
|
|
|
467434
467588
|
} catch {}
|
|
467435
467589
|
const data = {
|
|
467436
467590
|
trigger,
|
|
467437
|
-
version: { VERSION: "0.2.
|
|
467591
|
+
version: { VERSION: "0.2.43", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
|
|
467438
467592
|
platform: process.platform,
|
|
467439
467593
|
transcript,
|
|
467440
467594
|
subagentTranscripts: Object.keys(subagentTranscripts).length > 0 ? subagentTranscripts : undefined,
|
|
@@ -480441,7 +480595,7 @@ function completeOnboarding() {
|
|
|
480441
480595
|
saveGlobalConfig((current) => ({
|
|
480442
480596
|
...current,
|
|
480443
480597
|
hasCompletedOnboarding: true,
|
|
480444
|
-
lastOnboardingVersion: { VERSION: "0.2.
|
|
480598
|
+
lastOnboardingVersion: { VERSION: "0.2.43", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
|
|
480445
480599
|
}));
|
|
480446
480600
|
}
|
|
480447
480601
|
function showDialog(root2, renderer) {
|
|
@@ -491439,7 +491593,7 @@ async function startMCPServer(cwd3, debug3, verbose) {
|
|
|
491439
491593
|
setCwd(cwd3);
|
|
491440
491594
|
const server2 = new Server({
|
|
491441
491595
|
name: "theus/tengu",
|
|
491442
|
-
version: { VERSION: "0.2.
|
|
491596
|
+
version: { VERSION: "0.2.43", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
|
|
491443
491597
|
}, {
|
|
491444
491598
|
capabilities: {
|
|
491445
491599
|
tools: {}
|
|
@@ -492881,7 +493035,7 @@ async function setupTokenHandler(root2) {
|
|
|
492881
493035
|
gap: 1,
|
|
492882
493036
|
children: [
|
|
492883
493037
|
/* @__PURE__ */ jsx_runtime492.jsx(TheusBanner, {
|
|
492884
|
-
version: { VERSION: "0.2.
|
|
493038
|
+
version: { VERSION: "0.2.43", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
|
|
492885
493039
|
}),
|
|
492886
493040
|
showAuthWarning && /* @__PURE__ */ jsx_runtime492.jsxs(ThemedBox_default, {
|
|
492887
493041
|
flexDirection: "column",
|
|
@@ -494363,7 +494517,7 @@ ${assistantAddendum}` : assistantAddendum;
|
|
|
494363
494517
|
}
|
|
494364
494518
|
}
|
|
494365
494519
|
logForDiagnosticsNoPII("info", "started", {
|
|
494366
|
-
version: { VERSION: "0.2.
|
|
494520
|
+
version: { VERSION: "0.2.43", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
|
|
494367
494521
|
is_native_binary: isInBundledMode()
|
|
494368
494522
|
});
|
|
494369
494523
|
registerCleanup(async () => {
|
|
@@ -495231,7 +495385,7 @@ Usage: theus --remote "your task description"`, () => gracefulShutdown(1));
|
|
|
495231
495385
|
pendingHookMessages
|
|
495232
495386
|
}, renderAndRun);
|
|
495233
495387
|
}
|
|
495234
|
-
}).version(`${{ VERSION: "0.2.
|
|
495388
|
+
}).version(`${{ VERSION: "0.2.43", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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");
|
|
495235
495389
|
program2.option("-w, --worktree [name]", "Crea un nuevo worktree de git para esta sesi\xF3n (opcionalmente indica un nombre)");
|
|
495236
495390
|
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.");
|
|
495237
495391
|
if (canUserConfigureAdvisor()) {
|
|
@@ -495783,7 +495937,7 @@ if (false) {}
|
|
|
495783
495937
|
async function main2() {
|
|
495784
495938
|
const args = process.argv.slice(2);
|
|
495785
495939
|
if (args.length === 1 && (args[0] === "--version" || args[0] === "-v" || args[0] === "-V")) {
|
|
495786
|
-
console.log(`${{ VERSION: "0.2.
|
|
495940
|
+
console.log(`${{ VERSION: "0.2.43", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)`);
|
|
495787
495941
|
return;
|
|
495788
495942
|
}
|
|
495789
495943
|
const {
|