theus-cli 0.2.45 → 0.2.47
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 +254 -170
- package/package.json +1 -1
package/cli.js
CHANGED
|
@@ -58324,7 +58324,7 @@ async function _executeApiKeyHelper(isNonInteractiveSession) {
|
|
|
58324
58324
|
if (isApiKeyHelperFromProjectOrLocalSettings()) {
|
|
58325
58325
|
const hasTrust = checkHasTrustDialogAccepted();
|
|
58326
58326
|
if (!hasTrust && !isNonInteractiveSession) {
|
|
58327
|
-
const error40 = new Error(`Security: apiKeyHelper executed before workspace trust is confirmed. If you see this message, post in ${{ VERSION: "0.2.
|
|
58327
|
+
const error40 = new Error(`Security: apiKeyHelper executed before workspace trust is confirmed. If you see this message, post in ${{ VERSION: "0.2.47", BUILD_TIME: "1970-01-01T00:00:00.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.47", BUILD_TIME: "1970-01-01T00:00:00.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.47", BUILD_TIME: "1970-01-01T00:00:00.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.47", BUILD_TIME: "1970-01-01T00:00:00.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.47", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.47", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.47", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.47", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.47", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.47", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.47", BUILD_TIME: "1970-01-01T00:00:00.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.47", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.47", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.47", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.47", BUILD_TIME: "1970-01-01T00:00:00.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.47", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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) {
|
|
@@ -202608,7 +202608,7 @@ function getInstallationEnv() {
|
|
|
202608
202608
|
return;
|
|
202609
202609
|
}
|
|
202610
202610
|
function getTheusCodeVersion() {
|
|
202611
|
-
return { VERSION: "0.2.
|
|
202611
|
+
return { VERSION: "0.2.47", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION;
|
|
202612
202612
|
}
|
|
202613
202613
|
async function getInstalledVSCodeExtensionVersion(command) {
|
|
202614
202614
|
const { stdout } = await execFileNoThrow(command, ["--list-extensions", "--show-versions"], {
|
|
@@ -204126,7 +204126,7 @@ async function getMcpHeadersFromHelper(serverName, config2) {
|
|
|
204126
204126
|
if ("scope" in config2 && isMcpServerFromProjectOrLocalSettings(config2) && !getIsNonInteractiveSession()) {
|
|
204127
204127
|
const hasTrust = checkHasTrustDialogAccepted();
|
|
204128
204128
|
if (!hasTrust) {
|
|
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.
|
|
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.47", BUILD_TIME: "1970-01-01T00:00:00.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}.`);
|
|
204130
204130
|
logAntError("MCP headersHelper invoked before trust check", error40);
|
|
204131
204131
|
logEvent("tengu_mcp_headersHelper_missing_trust", {});
|
|
204132
204132
|
return null;
|
|
@@ -205336,7 +205336,7 @@ async function setupSdkMcpClients(sdkMcpConfigs, sendMcpMessage) {
|
|
|
205336
205336
|
const client2 = new Client({
|
|
205337
205337
|
name: "theus-code",
|
|
205338
205338
|
title: "Theus",
|
|
205339
|
-
version: { VERSION: "0.2.
|
|
205339
|
+
version: { VERSION: "0.2.47", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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",
|
|
205340
205340
|
description: "Theus's agentic coding tool",
|
|
205341
205341
|
websiteUrl: PRODUCT_URL
|
|
205342
205342
|
}, {
|
|
@@ -205690,7 +205690,7 @@ var init_client5 = __esm(() => {
|
|
|
205690
205690
|
const client2 = new Client({
|
|
205691
205691
|
name: "theus-code",
|
|
205692
205692
|
title: "Theus",
|
|
205693
|
-
version: { VERSION: "0.2.
|
|
205693
|
+
version: { VERSION: "0.2.47", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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",
|
|
205694
205694
|
description: "Theus's agentic coding tool",
|
|
205695
205695
|
websiteUrl: PRODUCT_URL
|
|
205696
205696
|
}, {
|
|
@@ -216268,7 +216268,7 @@ async function initializeBetaTracing(resource) {
|
|
|
216268
216268
|
});
|
|
216269
216269
|
logs.setGlobalLoggerProvider(loggerProvider);
|
|
216270
216270
|
setLoggerProvider(loggerProvider);
|
|
216271
|
-
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.47", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION);
|
|
216272
216272
|
setEventLogger(eventLogger);
|
|
216273
216273
|
process.on("beforeExit", async () => {
|
|
216274
216274
|
await loggerProvider?.forceFlush();
|
|
@@ -216308,7 +216308,7 @@ async function initializeTelemetry() {
|
|
|
216308
216308
|
const platform4 = getPlatform();
|
|
216309
216309
|
const baseAttributes = {
|
|
216310
216310
|
[ATTR_SERVICE_NAME]: "theus-code",
|
|
216311
|
-
[ATTR_SERVICE_VERSION]: { VERSION: "0.2.
|
|
216311
|
+
[ATTR_SERVICE_VERSION]: { VERSION: "0.2.47", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
|
|
216312
216312
|
};
|
|
216313
216313
|
if (platform4 === "wsl") {
|
|
216314
216314
|
const wslVersion = getWslVersion();
|
|
@@ -216353,7 +216353,7 @@ async function initializeTelemetry() {
|
|
|
216353
216353
|
} catch {}
|
|
216354
216354
|
};
|
|
216355
216355
|
registerCleanup(shutdownTelemetry2);
|
|
216356
|
-
return meterProvider2.getMeter("com.theus.theus_code", { VERSION: "0.2.
|
|
216356
|
+
return meterProvider2.getMeter("com.theus.theus_code", { VERSION: "0.2.47", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION);
|
|
216357
216357
|
}
|
|
216358
216358
|
const meterProvider = new MeterProvider({
|
|
216359
216359
|
resource,
|
|
@@ -216373,7 +216373,7 @@ async function initializeTelemetry() {
|
|
|
216373
216373
|
});
|
|
216374
216374
|
logs.setGlobalLoggerProvider(loggerProvider);
|
|
216375
216375
|
setLoggerProvider(loggerProvider);
|
|
216376
|
-
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.47", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION);
|
|
216377
216377
|
setEventLogger(eventLogger);
|
|
216378
216378
|
logForDebugging("[3P telemetry] Event logger set successfully");
|
|
216379
216379
|
process.on("beforeExit", async () => {
|
|
@@ -216435,7 +216435,7 @@ Current timeout: ${timeoutMs}ms
|
|
|
216435
216435
|
}
|
|
216436
216436
|
};
|
|
216437
216437
|
registerCleanup(shutdownTelemetry);
|
|
216438
|
-
return meterProvider.getMeter("com.theus.theus_code", { VERSION: "0.2.
|
|
216438
|
+
return meterProvider.getMeter("com.theus.theus_code", { VERSION: "0.2.47", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION);
|
|
216439
216439
|
}
|
|
216440
216440
|
async function flushTelemetry() {
|
|
216441
216441
|
const meterProvider = getMeterProvider();
|
|
@@ -216975,7 +216975,7 @@ async function installOrUpdateTheusPackage(channel2, specificVersion) {
|
|
|
216975
216975
|
return "install_failed";
|
|
216976
216976
|
}
|
|
216977
216977
|
const versionSpec = specificVersion ? specificVersion : channel2 === "stable" ? "stable" : "latest";
|
|
216978
|
-
const result = await execFileNoThrowWithCwd("npm", ["install", `${{ VERSION: "0.2.
|
|
216978
|
+
const result = await execFileNoThrowWithCwd("npm", ["install", `${{ VERSION: "0.2.47", BUILD_TIME: "1970-01-01T00:00:00.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 });
|
|
216979
216979
|
if (result.code !== 0) {
|
|
216980
216980
|
const error40 = new Error(`Failed to install Theus CLI package: ${result.stderr}`);
|
|
216981
216981
|
logError2(error40);
|
|
@@ -217121,9 +217121,9 @@ async function assertMinVersion() {
|
|
|
217121
217121
|
if (false) {}
|
|
217122
217122
|
try {
|
|
217123
217123
|
const versionConfig = await getDynamicConfig_BLOCKS_ON_INIT("tengu_version_config", { minVersion: "0.0.0" });
|
|
217124
|
-
if (versionConfig.minVersion && lt({ VERSION: "0.2.
|
|
217124
|
+
if (versionConfig.minVersion && lt({ VERSION: "0.2.47", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
|
|
217125
217125
|
console.error(`
|
|
217126
|
-
It looks like your version of Theus (${{ VERSION: "0.2.
|
|
217126
|
+
It looks like your version of Theus (${{ VERSION: "0.2.47", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.
|
|
217127
217127
|
A newer version (${versionConfig.minVersion} or higher) is required to continue.
|
|
217128
217128
|
|
|
217129
217129
|
To update, please run:
|
|
@@ -217264,7 +217264,7 @@ async function getInstallationPrefix() {
|
|
|
217264
217264
|
return prefixResult.stdout.trim();
|
|
217265
217265
|
}
|
|
217266
217266
|
function getGlobalInstallPackageManager() {
|
|
217267
|
-
if ({ VERSION: "0.2.
|
|
217267
|
+
if ({ VERSION: "0.2.47", BUILD_TIME: "1970-01-01T00:00:00.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") {
|
|
217268
217268
|
return "npm";
|
|
217269
217269
|
}
|
|
217270
217270
|
return env3.isRunningWithBun() ? "bun" : "npm";
|
|
@@ -217289,7 +217289,7 @@ async function checkGlobalInstallPermissions() {
|
|
|
217289
217289
|
}
|
|
217290
217290
|
async function getLatestVersion(channel2) {
|
|
217291
217291
|
const npmTag = channel2 === "stable" ? "stable" : "latest";
|
|
217292
|
-
const result = await execFileNoThrowWithCwd("npm", ["view", `${{ VERSION: "0.2.
|
|
217292
|
+
const result = await execFileNoThrowWithCwd("npm", ["view", `${{ VERSION: "0.2.47", BUILD_TIME: "1970-01-01T00:00:00.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() });
|
|
217293
217293
|
if (result.code !== 0) {
|
|
217294
217294
|
logForDebugging(`npm view failed with code ${result.code}`);
|
|
217295
217295
|
if (result.stderr) {
|
|
@@ -217305,7 +217305,7 @@ async function getLatestVersion(channel2) {
|
|
|
217305
217305
|
return result.stdout.trim();
|
|
217306
217306
|
}
|
|
217307
217307
|
async function getNpmDistTags() {
|
|
217308
|
-
const result = await execFileNoThrowWithCwd("npm", ["view", { VERSION: "0.2.
|
|
217308
|
+
const result = await execFileNoThrowWithCwd("npm", ["view", { VERSION: "0.2.47", BUILD_TIME: "1970-01-01T00:00:00.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() });
|
|
217309
217309
|
if (result.code !== 0) {
|
|
217310
217310
|
logForDebugging(`npm view dist-tags failed with code ${result.code}`);
|
|
217311
217311
|
return { latest: null, stable: null };
|
|
@@ -217345,7 +217345,7 @@ async function installGlobalPackage(specificVersion) {
|
|
|
217345
217345
|
logError2(new AutoUpdaterError("Another process is currently installing an update"));
|
|
217346
217346
|
logEvent("tengu_auto_updater_lock_contention", {
|
|
217347
217347
|
pid: process.pid,
|
|
217348
|
-
currentVersion: { VERSION: "0.2.
|
|
217348
|
+
currentVersion: { VERSION: "0.2.47", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
|
|
217349
217349
|
});
|
|
217350
217350
|
return "in_progress";
|
|
217351
217351
|
}
|
|
@@ -217354,7 +217354,7 @@ async function installGlobalPackage(specificVersion) {
|
|
|
217354
217354
|
if (!env3.isRunningWithBun() && env3.isNpmFromWindowsPath()) {
|
|
217355
217355
|
logError2(new Error("Windows NPM detected in WSL environment"));
|
|
217356
217356
|
logEvent("tengu_auto_updater_windows_npm_in_wsl", {
|
|
217357
|
-
currentVersion: { VERSION: "0.2.
|
|
217357
|
+
currentVersion: { VERSION: "0.2.47", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
|
|
217358
217358
|
});
|
|
217359
217359
|
console.error(`
|
|
217360
217360
|
Error: Windows NPM detected in WSL
|
|
@@ -217373,7 +217373,7 @@ To fix this issue:
|
|
|
217373
217373
|
if (!hasPermissions) {
|
|
217374
217374
|
return "no_permissions";
|
|
217375
217375
|
}
|
|
217376
|
-
const packageSpec = specificVersion ? `${{ VERSION: "0.2.
|
|
217376
|
+
const packageSpec = specificVersion ? `${{ VERSION: "0.2.47", BUILD_TIME: "1970-01-01T00:00:00.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.47", BUILD_TIME: "1970-01-01T00:00:00.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;
|
|
217377
217377
|
const packageManager = getGlobalInstallPackageManager();
|
|
217378
217378
|
const installResult = await execFileNoThrowWithCwd(packageManager, ["install", "-g", packageSpec], { cwd: homedir18() });
|
|
217379
217379
|
if (installResult.code !== 0) {
|
|
@@ -217701,8 +217701,8 @@ async function detectMultipleInstallations() {
|
|
|
217701
217701
|
installations.push({ type: "npm-local", path: localPath });
|
|
217702
217702
|
}
|
|
217703
217703
|
const packagesToCheck = ["@theus-ai/theus-code"];
|
|
217704
|
-
if ({ VERSION: "0.2.
|
|
217705
|
-
packagesToCheck.push({ VERSION: "0.2.
|
|
217704
|
+
if ({ VERSION: "0.2.47", BUILD_TIME: "1970-01-01T00:00:00.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.47", BUILD_TIME: "1970-01-01T00:00:00.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.47", BUILD_TIME: "1970-01-01T00:00:00.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);
|
|
217706
217706
|
}
|
|
217707
217707
|
const npmResult = await execFileNoThrow("npm", [
|
|
217708
217708
|
"-g",
|
|
@@ -217885,7 +217885,7 @@ function detectLinuxGlobPatternWarnings() {
|
|
|
217885
217885
|
}
|
|
217886
217886
|
async function getDoctorDiagnostic() {
|
|
217887
217887
|
const installationType = await getCurrentInstallationType();
|
|
217888
|
-
const version2 = { VERSION: "0.2.
|
|
217888
|
+
const version2 = { VERSION: "0.2.47", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.47", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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";
|
|
217889
217889
|
const installationPath = await getInstallationPath();
|
|
217890
217890
|
const invokedBinary = getInvokedBinary();
|
|
217891
217891
|
const multipleInstallations = await detectMultipleInstallations();
|
|
@@ -217897,8 +217897,8 @@ async function getDoctorDiagnostic() {
|
|
|
217897
217897
|
for (const install of npmInstalls) {
|
|
217898
217898
|
if (install.type === "npm-global") {
|
|
217899
217899
|
let uninstallCmd = "npm -g uninstall @theus-ai/theus-code";
|
|
217900
|
-
if ({ VERSION: "0.2.
|
|
217901
|
-
uninstallCmd += ` && npm -g uninstall ${{ VERSION: "0.2.
|
|
217900
|
+
if ({ VERSION: "0.2.47", BUILD_TIME: "1970-01-01T00:00:00.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.47", BUILD_TIME: "1970-01-01T00:00:00.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.47", BUILD_TIME: "1970-01-01T00:00:00.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}`;
|
|
217902
217902
|
}
|
|
217903
217903
|
warnings.push({
|
|
217904
217904
|
issue: `Leftover npm global installation at ${install.path}`,
|
|
@@ -218010,7 +218010,7 @@ async function getLatestVersionFromArtifactory(tag2 = "latest") {
|
|
|
218010
218010
|
const startTime2 = Date.now();
|
|
218011
218011
|
const { stdout, code, stderr } = await execFileNoThrowWithCwd("npm", [
|
|
218012
218012
|
"view",
|
|
218013
|
-
`${{ VERSION: "0.2.
|
|
218013
|
+
`${{ VERSION: "0.2.47", BUILD_TIME: "1970-01-01T00:00:00.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}`,
|
|
218014
218014
|
"version",
|
|
218015
218015
|
"--prefer-online",
|
|
218016
218016
|
"--registry",
|
|
@@ -218034,7 +218034,7 @@ async function getLatestVersionFromArtifactory(tag2 = "latest") {
|
|
|
218034
218034
|
latency_ms: latencyMs,
|
|
218035
218035
|
source_npm: true
|
|
218036
218036
|
});
|
|
218037
|
-
logForDebugging(`npm view ${{ VERSION: "0.2.
|
|
218037
|
+
logForDebugging(`npm view ${{ VERSION: "0.2.47", BUILD_TIME: "1970-01-01T00:00:00.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}`);
|
|
218038
218038
|
const latestVersion = stdout.trim();
|
|
218039
218039
|
return latestVersion;
|
|
218040
218040
|
}
|
|
@@ -218090,7 +218090,7 @@ async function downloadVersionFromArtifactory(version2, stagingPath) {
|
|
|
218090
218090
|
const fs3 = getFsImplementation();
|
|
218091
218091
|
await fs3.rm(stagingPath, { recursive: true, force: true });
|
|
218092
218092
|
const platform4 = getPlatform2();
|
|
218093
|
-
const platformPackageName = `${{ VERSION: "0.2.
|
|
218093
|
+
const platformPackageName = `${{ VERSION: "0.2.47", BUILD_TIME: "1970-01-01T00:00:00.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}`;
|
|
218094
218094
|
logForDebugging(`Fetching integrity hash for ${platformPackageName}@${version2}`);
|
|
218095
218095
|
const {
|
|
218096
218096
|
stdout: integrityOutput,
|
|
@@ -218119,7 +218119,7 @@ async function downloadVersionFromArtifactory(version2, stagingPath) {
|
|
|
218119
218119
|
name: "theus-native-installer",
|
|
218120
218120
|
version: "0.0.1",
|
|
218121
218121
|
dependencies: {
|
|
218122
|
-
[{ VERSION: "0.2.
|
|
218122
|
+
[{ VERSION: "0.2.47", BUILD_TIME: "1970-01-01T00:00:00.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
|
|
218123
218123
|
}
|
|
218124
218124
|
};
|
|
218125
218125
|
const packageLock = {
|
|
@@ -218132,10 +218132,10 @@ async function downloadVersionFromArtifactory(version2, stagingPath) {
|
|
|
218132
218132
|
name: "theus-native-installer",
|
|
218133
218133
|
version: "0.0.1",
|
|
218134
218134
|
dependencies: {
|
|
218135
|
-
[{ VERSION: "0.2.
|
|
218135
|
+
[{ VERSION: "0.2.47", BUILD_TIME: "1970-01-01T00:00:00.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
|
|
218136
218136
|
}
|
|
218137
218137
|
},
|
|
218138
|
-
[`node_modules/${{ VERSION: "0.2.
|
|
218138
|
+
[`node_modules/${{ VERSION: "0.2.47", BUILD_TIME: "1970-01-01T00:00:00.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}`]: {
|
|
218139
218139
|
version: version2,
|
|
218140
218140
|
optionalDependencies: {
|
|
218141
218141
|
[platformPackageName]: version2
|
|
@@ -218157,7 +218157,7 @@ async function downloadVersionFromArtifactory(version2, stagingPath) {
|
|
|
218157
218157
|
if (result.code !== 0) {
|
|
218158
218158
|
throw new Error(`npm ci failed with code ${result.code}: ${result.stderr}`);
|
|
218159
218159
|
}
|
|
218160
|
-
logForDebugging(`Successfully downloaded and verified ${{ VERSION: "0.2.
|
|
218160
|
+
logForDebugging(`Successfully downloaded and verified ${{ VERSION: "0.2.47", BUILD_TIME: "1970-01-01T00:00:00.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}`);
|
|
218161
218161
|
}
|
|
218162
218162
|
function getStallTimeoutMs() {
|
|
218163
218163
|
return Number(process.env.THEUS_CODE_STALL_TIMEOUT_MS_FOR_TESTING) || DEFAULT_STALL_TIMEOUT_MS;
|
|
@@ -218820,8 +218820,8 @@ async function updateLatest(channelOrVersion, forceReinstall = false) {
|
|
|
218820
218820
|
const maxVersion = await getMaxVersion();
|
|
218821
218821
|
if (maxVersion && gt(version2, maxVersion)) {
|
|
218822
218822
|
logForDebugging(`Native installer: maxVersion ${maxVersion} is set, capping update from ${version2} to ${maxVersion}`);
|
|
218823
|
-
if (gte({ VERSION: "0.2.
|
|
218824
|
-
logForDebugging(`Native installer: current version ${{ VERSION: "0.2.
|
|
218823
|
+
if (gte({ VERSION: "0.2.47", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.47", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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`);
|
|
218825
218825
|
logEvent("tengu_native_update_skipped_max_version", {
|
|
218826
218826
|
latency_ms: Date.now() - startTime2,
|
|
218827
218827
|
max_version: maxVersion,
|
|
@@ -218832,7 +218832,7 @@ async function updateLatest(channelOrVersion, forceReinstall = false) {
|
|
|
218832
218832
|
version2 = maxVersion;
|
|
218833
218833
|
}
|
|
218834
218834
|
}
|
|
218835
|
-
if (!forceReinstall && version2 === { VERSION: "0.2.
|
|
218835
|
+
if (!forceReinstall && version2 === { VERSION: "0.2.47", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
|
|
218836
218836
|
logForDebugging(`Found ${version2} at ${executablePath}, skipping install`);
|
|
218837
218837
|
logEvent("tengu_native_update_complete", {
|
|
218838
218838
|
latency_ms: Date.now() - startTime2,
|
|
@@ -219582,8 +219582,8 @@ async function cleanupNpmInstallations() {
|
|
|
219582
219582
|
} else if (codePackageResult.error) {
|
|
219583
219583
|
errors4.push(codePackageResult.error);
|
|
219584
219584
|
}
|
|
219585
|
-
if ({ VERSION: "0.2.
|
|
219586
|
-
const macroPackageResult = await attemptNpmUninstall({ VERSION: "0.2.
|
|
219585
|
+
if ({ VERSION: "0.2.47", BUILD_TIME: "1970-01-01T00:00:00.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.47", BUILD_TIME: "1970-01-01T00:00:00.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.47", BUILD_TIME: "1970-01-01T00:00:00.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);
|
|
219587
219587
|
if (macroPackageResult.success) {
|
|
219588
219588
|
removed++;
|
|
219589
219589
|
if (macroPackageResult.warning) {
|
|
@@ -230069,6 +230069,25 @@ var init_ConsoleOAuthFlow = __esm(() => {
|
|
|
230069
230069
|
var NOVEDADES;
|
|
230070
230070
|
var init_data = __esm(() => {
|
|
230071
230071
|
NOVEDADES = [
|
|
230072
|
+
{
|
|
230073
|
+
version: "v0.2.47",
|
|
230074
|
+
fecha: "2026-07-24",
|
|
230075
|
+
titulo: "Tu plan real al iniciar sesi\xF3n",
|
|
230076
|
+
puntos: [
|
|
230077
|
+
"Al iniciar sesi\xF3n, Theus te muestra el plan que de verdad tienes contratado: Free, Pro Code, Studio AI, Max Agent u Omnipresente.",
|
|
230078
|
+
"Antes agrupaba todos los planes de pago bajo la etiqueta \xABpro\xBB, as\xED que quien estaba en Omnipresente ve\xEDa anunciado un plan intermedio. El dato correcto siempre lleg\xF3 del servidor; el problema era que no se le\xEDa."
|
|
230079
|
+
]
|
|
230080
|
+
},
|
|
230081
|
+
{
|
|
230082
|
+
version: "v0.2.46",
|
|
230083
|
+
fecha: "2026-07-24",
|
|
230084
|
+
titulo: "Anima una imagen de tu disco, sin subirla a ning\xFAn sitio",
|
|
230085
|
+
puntos: [
|
|
230086
|
+
"Ya puedes animar una imagen que tengas en el proyecto \u2014 incluida la que Theus acaba de generar \u2014 pas\xE1ndole simplemente su ruta. Antes solo val\xEDa un enlace ya publicado en internet.",
|
|
230087
|
+
"Theus la publica por ti con un enlace temporal que caduca a las 2 horas, porque el modelo de v\xEDdeo necesita descargarla; t\xFA no tienes que subirla a ninguna parte.",
|
|
230088
|
+
"Si la ruta no existe o el formato no sirve, te lo dice antes de intentarlo en vez de fallar con un error opaco."
|
|
230089
|
+
]
|
|
230090
|
+
},
|
|
230072
230091
|
{
|
|
230073
230092
|
version: "v0.2.45",
|
|
230074
230093
|
fecha: "2026-07-24",
|
|
@@ -242789,7 +242808,7 @@ var init_entryApiKey = __esm(() => {
|
|
|
242789
242808
|
// services/providers/adapters/media.ts
|
|
242790
242809
|
import { existsSync as existsSync5, readFileSync as readFileSync13 } from "fs";
|
|
242791
242810
|
import { mkdir as mkdir17, writeFile as writeFile18 } from "fs/promises";
|
|
242792
|
-
import { join as join69, relative as relative9 } from "path";
|
|
242811
|
+
import { isAbsolute as isAbsolute14, join as join69, relative as relative9 } from "path";
|
|
242793
242812
|
async function buildPreview(bytes, mediaType) {
|
|
242794
242813
|
try {
|
|
242795
242814
|
const compressed = await compressImageBufferWithTokenLimit(bytes, PREVIEW_TOKEN_BUDGET, mediaType);
|
|
@@ -242901,6 +242920,44 @@ function sleep3(ms, signal) {
|
|
|
242901
242920
|
signal?.addEventListener("abort", onAbort, { once: true });
|
|
242902
242921
|
});
|
|
242903
242922
|
}
|
|
242923
|
+
async function publicarImagenLocal(ruta, gateway, signal) {
|
|
242924
|
+
const abs = isAbsolute14(ruta) ? ruta : join69(process.cwd(), ruta);
|
|
242925
|
+
if (!existsSync5(abs)) {
|
|
242926
|
+
return {
|
|
242927
|
+
error: `No encuentro la imagen \xAB${ruta}\xBB. P\xE1same una ruta que exista o el enlace p\xFAblico de la imagen.`
|
|
242928
|
+
};
|
|
242929
|
+
}
|
|
242930
|
+
const ext = (abs.split(".").pop() ?? "").toLowerCase();
|
|
242931
|
+
const mime = MIME_POR_EXT[ext];
|
|
242932
|
+
if (!mime) {
|
|
242933
|
+
return {
|
|
242934
|
+
error: `El formato \xAB.${ext}\xBB no sirve como primer fotograma. Usa PNG, JPEG, GIF o WebP.`
|
|
242935
|
+
};
|
|
242936
|
+
}
|
|
242937
|
+
let b64;
|
|
242938
|
+
try {
|
|
242939
|
+
b64 = readFileSync13(abs).toString("base64");
|
|
242940
|
+
} catch (err2) {
|
|
242941
|
+
return { error: `No pude leer \xAB${ruta}\xBB: ${err2.message}` };
|
|
242942
|
+
}
|
|
242943
|
+
const res = await fetch(`${gateway.baseURL}/media/uploads`, {
|
|
242944
|
+
method: "POST",
|
|
242945
|
+
headers: {
|
|
242946
|
+
"content-type": "application/json",
|
|
242947
|
+
authorization: `Bearer ${gateway.apiKey}`
|
|
242948
|
+
},
|
|
242949
|
+
body: JSON.stringify({ mime, data_b64: b64 }),
|
|
242950
|
+
signal
|
|
242951
|
+
});
|
|
242952
|
+
if (!res.ok) {
|
|
242953
|
+
return { error: `No se pudo publicar la imagen: ${await gatewayErrorProse(res)}` };
|
|
242954
|
+
}
|
|
242955
|
+
const json2 = await res.json();
|
|
242956
|
+
if (typeof json2?.url !== "string" || !json2.url) {
|
|
242957
|
+
return { error: "El gateway no devolvi\xF3 la URL de la imagen publicada." };
|
|
242958
|
+
}
|
|
242959
|
+
return { url: json2.url };
|
|
242960
|
+
}
|
|
242904
242961
|
async function writeMedia(fileName, bytes) {
|
|
242905
242962
|
const cwd2 = process.cwd();
|
|
242906
242963
|
const dir = join69(cwd2, MEDIA_DIR);
|
|
@@ -242972,12 +243029,19 @@ Para verla: \`open ${rel}\` (no la leas al contexto).`, start, imageModel, { gat
|
|
|
242972
243029
|
};
|
|
242973
243030
|
const semilla = request.params?.imageUrl;
|
|
242974
243031
|
if (typeof semilla === "string" && semilla.trim()) {
|
|
242975
|
-
const
|
|
242976
|
-
|
|
242977
|
-
|
|
243032
|
+
const bruto = semilla.trim();
|
|
243033
|
+
let url3;
|
|
243034
|
+
if (/^https?:\/\//i.test(bruto)) {
|
|
243035
|
+
url3 = bruto;
|
|
243036
|
+
} else {
|
|
243037
|
+
const publicada = await publicarImagenLocal(bruto, gateway, request.signal);
|
|
243038
|
+
if ("error" in publicada) {
|
|
243039
|
+
return respond("video", publicada.error, start, videoModel);
|
|
243040
|
+
}
|
|
243041
|
+
url3 = publicada.url;
|
|
242978
243042
|
}
|
|
242979
243043
|
cuerpo.frame_images = [
|
|
242980
|
-
{ type: "image_url", image_url: { url:
|
|
243044
|
+
{ type: "image_url", image_url: { url: url3 }, frame_type: "first_frame" }
|
|
242981
243045
|
];
|
|
242982
243046
|
}
|
|
242983
243047
|
const created = await fetch(`${gateway.baseURL}/videos`, {
|
|
@@ -243073,13 +243137,20 @@ Para verla: \`open ${rel}\` (no la leas al contexto).`, start, imageModel, { gat
|
|
|
243073
243137
|
}
|
|
243074
243138
|
};
|
|
243075
243139
|
}
|
|
243076
|
-
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;
|
|
243140
|
+
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, MIME_POR_EXT;
|
|
243077
243141
|
var init_media = __esm(() => {
|
|
243078
243142
|
init_imageResizer();
|
|
243079
243143
|
init_entryApiKey();
|
|
243080
243144
|
init_registry2();
|
|
243081
243145
|
VIDEO_TIMEOUT_MS = 10 * 60000;
|
|
243082
243146
|
CAPS3 = ["image", "video"];
|
|
243147
|
+
MIME_POR_EXT = {
|
|
243148
|
+
png: "image/png",
|
|
243149
|
+
jpg: "image/jpeg",
|
|
243150
|
+
jpeg: "image/jpeg",
|
|
243151
|
+
gif: "image/gif",
|
|
243152
|
+
webp: "image/webp"
|
|
243153
|
+
};
|
|
243083
243154
|
});
|
|
243084
243155
|
|
|
243085
243156
|
// services/providers/adapters/openai.ts
|
|
@@ -249113,7 +249184,7 @@ import {
|
|
|
249113
249184
|
stat as stat22,
|
|
249114
249185
|
unlink as unlink9
|
|
249115
249186
|
} from "fs/promises";
|
|
249116
|
-
import { dirname as dirname30, isAbsolute as
|
|
249187
|
+
import { dirname as dirname30, isAbsolute as isAbsolute15, join as join76, relative as relative12 } from "path";
|
|
249117
249188
|
import { inspect as inspect3 } from "util";
|
|
249118
249189
|
function fileHistoryEnabled() {
|
|
249119
249190
|
if (getIsNonInteractiveSession()) {
|
|
@@ -249601,7 +249672,7 @@ function getBackupFileNameFirstVersion(trackingPath, state) {
|
|
|
249601
249672
|
return;
|
|
249602
249673
|
}
|
|
249603
249674
|
function maybeShortenFilePath(filePath) {
|
|
249604
|
-
if (!
|
|
249675
|
+
if (!isAbsolute15(filePath)) {
|
|
249605
249676
|
return filePath;
|
|
249606
249677
|
}
|
|
249607
249678
|
const cwd2 = getOriginalCwd();
|
|
@@ -249611,7 +249682,7 @@ function maybeShortenFilePath(filePath) {
|
|
|
249611
249682
|
return filePath;
|
|
249612
249683
|
}
|
|
249613
249684
|
function maybeExpandFilePath(filePath) {
|
|
249614
|
-
if (
|
|
249685
|
+
if (isAbsolute15(filePath)) {
|
|
249615
249686
|
return filePath;
|
|
249616
249687
|
}
|
|
249617
249688
|
return join76(getOriginalCwd(), filePath);
|
|
@@ -250944,7 +251015,7 @@ var init_hooksConfigSnapshot = __esm(() => {
|
|
|
250944
251015
|
});
|
|
250945
251016
|
|
|
250946
251017
|
// utils/hooks/fileChangedWatcher.ts
|
|
250947
|
-
import { isAbsolute as
|
|
251018
|
+
import { isAbsolute as isAbsolute16, join as join79 } from "path";
|
|
250948
251019
|
function setEnvHookNotifier(cb) {
|
|
250949
251020
|
notifyCallback = cb;
|
|
250950
251021
|
}
|
|
@@ -250972,7 +251043,7 @@ function resolveWatchPaths(config2) {
|
|
|
250972
251043
|
for (const name of m.matcher.split("|").map((s) => s.trim())) {
|
|
250973
251044
|
if (!name)
|
|
250974
251045
|
continue;
|
|
250975
|
-
staticPaths.push(
|
|
251046
|
+
staticPaths.push(isAbsolute16(name) ? name : join79(currentCwd, name));
|
|
250976
251047
|
}
|
|
250977
251048
|
}
|
|
250978
251049
|
return [...new Set([...staticPaths, ...dynamicWatchPaths])];
|
|
@@ -260755,7 +260826,7 @@ var init_powershellProvider = __esm(() => {
|
|
|
260755
260826
|
import { execFileSync as execFileSync2, spawn as spawn6 } from "child_process";
|
|
260756
260827
|
import { constants as fsConstants4, readFileSync as readFileSync16, unlinkSync as unlinkSync2 } from "fs";
|
|
260757
260828
|
import { mkdir as mkdir23, open as open9, realpath as realpath9 } from "fs/promises";
|
|
260758
|
-
import { isAbsolute as
|
|
260829
|
+
import { isAbsolute as isAbsolute17, resolve as resolve28 } from "path";
|
|
260759
260830
|
import { join as posixJoin3 } from "path/posix";
|
|
260760
260831
|
import { accessSync } from "fs";
|
|
260761
260832
|
function isExecutable(shellPath) {
|
|
@@ -260949,7 +261020,7 @@ async function exec2(command, abortSignal, shellType, options2) {
|
|
|
260949
261020
|
}
|
|
260950
261021
|
}
|
|
260951
261022
|
function setCwd(path13, relativeTo) {
|
|
260952
|
-
const resolved =
|
|
261023
|
+
const resolved = isAbsolute17(path13) ? path13 : resolve28(relativeTo || getFsImplementation().cwd(), path13);
|
|
260953
261024
|
let physicalPath;
|
|
260954
261025
|
try {
|
|
260955
261026
|
physicalPath = getFsImplementation().realpathSync(resolved);
|
|
@@ -264146,7 +264217,7 @@ var init_modeValidation = __esm(() => {
|
|
|
264146
264217
|
|
|
264147
264218
|
// tools/PowerShellTool/pathValidation.ts
|
|
264148
264219
|
import { homedir as homedir26 } from "os";
|
|
264149
|
-
import { isAbsolute as
|
|
264220
|
+
import { isAbsolute as isAbsolute18, resolve as resolve30 } from "path";
|
|
264150
264221
|
function matchesParam(paramLower, paramList) {
|
|
264151
264222
|
for (const p of paramList) {
|
|
264152
264223
|
if (p === paramLower || paramLower.length > 1 && p.startsWith(paramLower)) {
|
|
@@ -264254,7 +264325,7 @@ function checkDenyRuleForGuessedPath(strippedPath, cwd2, toolPermissionContext,
|
|
|
264254
264325
|
if (!strippedPath || strippedPath.includes("\x00"))
|
|
264255
264326
|
return null;
|
|
264256
264327
|
const tildeExpanded = expandTilde2(strippedPath);
|
|
264257
|
-
const abs =
|
|
264328
|
+
const abs = isAbsolute18(tildeExpanded) ? tildeExpanded : resolve30(cwd2, tildeExpanded);
|
|
264258
264329
|
const { resolvedPath } = safeResolvePath(getFsImplementation(), abs);
|
|
264259
264330
|
const permissionType = operationType === "read" ? "read" : "edit";
|
|
264260
264331
|
const denyRule = matchingRuleForInput(resolvedPath, toolPermissionContext, permissionType, "deny");
|
|
@@ -264344,7 +264415,7 @@ function validatePath2(filePath, cwd2, toolPermissionContext, operationType) {
|
|
|
264344
264415
|
};
|
|
264345
264416
|
}
|
|
264346
264417
|
if (containsPathTraversal(normalizedPath)) {
|
|
264347
|
-
const absolutePath2 =
|
|
264418
|
+
const absolutePath2 = isAbsolute18(normalizedPath) ? normalizedPath : resolve30(cwd2, normalizedPath);
|
|
264348
264419
|
const { resolvedPath: resolvedPath3, isCanonical: isCanonical2 } = safeResolvePath(getFsImplementation(), absolutePath2);
|
|
264349
264420
|
const result2 = isPathAllowed2(resolvedPath3, toolPermissionContext, operationType, isCanonical2 ? [resolvedPath3] : undefined);
|
|
264350
264421
|
return {
|
|
@@ -264354,7 +264425,7 @@ function validatePath2(filePath, cwd2, toolPermissionContext, operationType) {
|
|
|
264354
264425
|
};
|
|
264355
264426
|
}
|
|
264356
264427
|
const basePath = getGlobBaseDirectory2(normalizedPath);
|
|
264357
|
-
const absoluteBasePath =
|
|
264428
|
+
const absoluteBasePath = isAbsolute18(basePath) ? basePath : resolve30(cwd2, basePath);
|
|
264358
264429
|
const { resolvedPath: resolvedPath2 } = safeResolvePath(getFsImplementation(), absoluteBasePath);
|
|
264359
264430
|
const permissionType = operationType === "read" ? "read" : "edit";
|
|
264360
264431
|
const denyRule = matchingRuleForInput(resolvedPath2, toolPermissionContext, permissionType, "deny");
|
|
@@ -264374,7 +264445,7 @@ function validatePath2(filePath, cwd2, toolPermissionContext, operationType) {
|
|
|
264374
264445
|
}
|
|
264375
264446
|
};
|
|
264376
264447
|
}
|
|
264377
|
-
const absolutePath =
|
|
264448
|
+
const absolutePath = isAbsolute18(normalizedPath) ? normalizedPath : resolve30(cwd2, normalizedPath);
|
|
264378
264449
|
const { resolvedPath, isCanonical } = safeResolvePath(getFsImplementation(), absolutePath);
|
|
264379
264450
|
const result = isPathAllowed2(resolvedPath, toolPermissionContext, operationType, isCanonical ? [resolvedPath] : undefined);
|
|
264380
264451
|
return {
|
|
@@ -268165,7 +268236,7 @@ import { realpath as realpath10 } from "fs/promises";
|
|
|
268165
268236
|
import {
|
|
268166
268237
|
basename as basename24,
|
|
268167
268238
|
dirname as dirname32,
|
|
268168
|
-
isAbsolute as
|
|
268239
|
+
isAbsolute as isAbsolute19,
|
|
268169
268240
|
join as join85,
|
|
268170
268241
|
sep as pathSep,
|
|
268171
268242
|
relative as relative15
|
|
@@ -268568,8 +268639,8 @@ function activateConditionalSkillsForPaths(filePaths, cwd2) {
|
|
|
268568
268639
|
}
|
|
268569
268640
|
const skillIgnore = import_ignore2.default().add(skill.paths);
|
|
268570
268641
|
for (const filePath of filePaths) {
|
|
268571
|
-
const relativePath =
|
|
268572
|
-
if (!relativePath || relativePath.startsWith("..") ||
|
|
268642
|
+
const relativePath = isAbsolute19(filePath) ? relative15(cwd2, filePath) : filePath;
|
|
268643
|
+
if (!relativePath || relativePath.startsWith("..") || isAbsolute19(relativePath)) {
|
|
268573
268644
|
continue;
|
|
268574
268645
|
}
|
|
268575
268646
|
if (skillIgnore.ignores(relativePath)) {
|
|
@@ -272332,7 +272403,7 @@ var init_UI8 = __esm(() => {
|
|
|
272332
272403
|
});
|
|
272333
272404
|
|
|
272334
272405
|
// tools/FileEditTool/FileEditTool.ts
|
|
272335
|
-
import { dirname as dirname34, isAbsolute as
|
|
272406
|
+
import { dirname as dirname34, isAbsolute as isAbsolute20, sep as sep18 } from "path";
|
|
272336
272407
|
function readFileForEdit(absoluteFilePath) {
|
|
272337
272408
|
try {
|
|
272338
272409
|
const meta = readFileSyncWithMetadata(absoluteFilePath);
|
|
@@ -272536,7 +272607,7 @@ var init_FileEditTool = __esm(() => {
|
|
|
272536
272607
|
behavior: "ask",
|
|
272537
272608
|
message: "File has not been read yet. Read it first before writing to it.",
|
|
272538
272609
|
meta: {
|
|
272539
|
-
isFilePathAbsolute: String(
|
|
272610
|
+
isFilePathAbsolute: String(isAbsolute20(file_path))
|
|
272540
272611
|
},
|
|
272541
272612
|
errorCode: 6
|
|
272542
272613
|
};
|
|
@@ -272564,7 +272635,7 @@ var init_FileEditTool = __esm(() => {
|
|
|
272564
272635
|
message: `String to replace not found in file.
|
|
272565
272636
|
String: ${old_string}`,
|
|
272566
272637
|
meta: {
|
|
272567
|
-
isFilePathAbsolute: String(
|
|
272638
|
+
isFilePathAbsolute: String(isAbsolute20(file_path))
|
|
272568
272639
|
},
|
|
272569
272640
|
errorCode: 8
|
|
272570
272641
|
};
|
|
@@ -272577,7 +272648,7 @@ String: ${old_string}`,
|
|
|
272577
272648
|
message: `Found ${matches} matches of the string to replace, but replace_all is false. To replace all occurrences, set replace_all to true. To replace only one occurrence, please provide more context to uniquely identify the instance.
|
|
272578
272649
|
String: ${old_string}`,
|
|
272579
272650
|
meta: {
|
|
272580
|
-
isFilePathAbsolute: String(
|
|
272651
|
+
isFilePathAbsolute: String(isAbsolute20(file_path)),
|
|
272581
272652
|
actualOldString
|
|
272582
272653
|
},
|
|
272583
272654
|
errorCode: 9
|
|
@@ -272743,7 +272814,7 @@ String: ${old_string}`,
|
|
|
272743
272814
|
});
|
|
272744
272815
|
|
|
272745
272816
|
// tools/FileWriteTool/UI.tsx
|
|
272746
|
-
import { isAbsolute as
|
|
272817
|
+
import { isAbsolute as isAbsolute21, relative as relative18, resolve as resolve32 } from "path";
|
|
272747
272818
|
function countLines(content) {
|
|
272748
272819
|
const parts = content.split(EOL3);
|
|
272749
272820
|
return content.endsWith(EOL3) ? parts.length - 1 : parts.length;
|
|
@@ -273067,7 +273138,7 @@ function WriteRejectionBody(t0) {
|
|
|
273067
273138
|
}
|
|
273068
273139
|
async function loadRejectionDiff2(filePath, content) {
|
|
273069
273140
|
try {
|
|
273070
|
-
const fullFilePath =
|
|
273141
|
+
const fullFilePath = isAbsolute21(filePath) ? filePath : resolve32(getCwd(), filePath);
|
|
273071
273142
|
const handle = await openForScan(fullFilePath);
|
|
273072
273143
|
if (handle === null)
|
|
273073
273144
|
return {
|
|
@@ -273488,7 +273559,7 @@ var init_FileWriteTool = __esm(() => {
|
|
|
273488
273559
|
});
|
|
273489
273560
|
|
|
273490
273561
|
// utils/plugins/orphanedPluginFilter.ts
|
|
273491
|
-
import { dirname as dirname36, isAbsolute as
|
|
273562
|
+
import { dirname as dirname36, isAbsolute as isAbsolute22, join as join87, normalize as normalize10, relative as relative19, sep as sep20 } from "path";
|
|
273492
273563
|
async function getGlobExclusionsForPluginCache(searchPath) {
|
|
273493
273564
|
const cachePath2 = normalize10(join87(getPluginsDirectory(), "cache"));
|
|
273494
273565
|
if (searchPath && !pathsOverlap(searchPath, cachePath2)) {
|
|
@@ -273509,7 +273580,7 @@ async function getGlobExclusionsForPluginCache(searchPath) {
|
|
|
273509
273580
|
], cachePath2, new AbortController().signal);
|
|
273510
273581
|
cachedExclusions = markers.map((markerPath) => {
|
|
273511
273582
|
const versionDir = dirname36(markerPath);
|
|
273512
|
-
const rel =
|
|
273583
|
+
const rel = isAbsolute22(versionDir) ? relative19(cachePath2, versionDir) : versionDir;
|
|
273513
273584
|
const posixRelative = rel.replace(/\\/g, "/");
|
|
273514
273585
|
return `!**/${posixRelative}/**`;
|
|
273515
273586
|
});
|
|
@@ -273538,7 +273609,7 @@ var init_orphanedPluginFilter = __esm(() => {
|
|
|
273538
273609
|
});
|
|
273539
273610
|
|
|
273540
273611
|
// utils/glob.ts
|
|
273541
|
-
import { basename as basename26, dirname as dirname37, isAbsolute as
|
|
273612
|
+
import { basename as basename26, dirname as dirname37, isAbsolute as isAbsolute23, join as join88, sep as sep21 } from "path";
|
|
273542
273613
|
function extractGlobBaseDirectory(pattern) {
|
|
273543
273614
|
const globChars = /[*?[{]/;
|
|
273544
273615
|
const match = pattern.match(globChars);
|
|
@@ -273565,7 +273636,7 @@ function extractGlobBaseDirectory(pattern) {
|
|
|
273565
273636
|
async function glob(filePattern, cwd2, { limit, offset }, abortSignal, toolPermissionContext) {
|
|
273566
273637
|
let searchDir = cwd2;
|
|
273567
273638
|
let searchPattern = filePattern;
|
|
273568
|
-
if (
|
|
273639
|
+
if (isAbsolute23(filePattern)) {
|
|
273569
273640
|
const { baseDir, relativePattern } = extractGlobBaseDirectory(filePattern);
|
|
273570
273641
|
if (baseDir) {
|
|
273571
273642
|
searchDir = baseDir;
|
|
@@ -273590,7 +273661,7 @@ async function glob(filePattern, cwd2, { limit, offset }, abortSignal, toolPermi
|
|
|
273590
273661
|
args.push("--glob", exclusion);
|
|
273591
273662
|
}
|
|
273592
273663
|
const allPaths = await ripGrep(args, searchDir, abortSignal);
|
|
273593
|
-
const absolutePaths = allPaths.map((p) =>
|
|
273664
|
+
const absolutePaths = allPaths.map((p) => isAbsolute23(p) ? p : join88(searchDir, p));
|
|
273594
273665
|
const truncated = absolutePaths.length > offset + limit;
|
|
273595
273666
|
const files = absolutePaths.slice(offset, offset + limit);
|
|
273596
273667
|
return { files, truncated };
|
|
@@ -274880,7 +274951,7 @@ var init_UI12 = __esm(() => {
|
|
|
274880
274951
|
});
|
|
274881
274952
|
|
|
274882
274953
|
// tools/NotebookEditTool/NotebookEditTool.ts
|
|
274883
|
-
import { extname as extname13, isAbsolute as
|
|
274954
|
+
import { extname as extname13, isAbsolute as isAbsolute24, resolve as resolve33 } from "path";
|
|
274884
274955
|
var inputSchema16, outputSchema13, NotebookEditTool;
|
|
274885
274956
|
var init_NotebookEditTool = __esm(() => {
|
|
274886
274957
|
init_fileHistory();
|
|
@@ -274990,7 +275061,7 @@ var init_NotebookEditTool = __esm(() => {
|
|
|
274990
275061
|
renderToolUseErrorMessage: renderToolUseErrorMessage9,
|
|
274991
275062
|
renderToolResultMessage: renderToolResultMessage12,
|
|
274992
275063
|
async validateInput({ notebook_path, cell_type, cell_id, edit_mode = "replace" }, toolUseContext) {
|
|
274993
|
-
const fullPath =
|
|
275064
|
+
const fullPath = isAbsolute24(notebook_path) ? notebook_path : resolve33(getCwd(), notebook_path);
|
|
274994
275065
|
if (fullPath.startsWith("\\\\") || fullPath.startsWith("//")) {
|
|
274995
275066
|
return { result: true };
|
|
274996
275067
|
}
|
|
@@ -275089,7 +275160,7 @@ var init_NotebookEditTool = __esm(() => {
|
|
|
275089
275160
|
cell_type,
|
|
275090
275161
|
edit_mode: originalEditMode
|
|
275091
275162
|
}, { readFileState, updateFileHistoryState }, _, parentMessage) {
|
|
275092
|
-
const fullPath =
|
|
275163
|
+
const fullPath = isAbsolute24(notebook_path) ? notebook_path : resolve33(getCwd(), notebook_path);
|
|
275093
275164
|
if (fileHistoryEnabled()) {
|
|
275094
275165
|
await fileHistoryTrackEdit(updateFileHistoryState, fullPath, parentMessage.uuid);
|
|
275095
275166
|
}
|
|
@@ -276185,7 +276256,7 @@ import { createHash as createHash20, randomUUID as randomUUID19 } from "crypto";
|
|
|
276185
276256
|
import { existsSync as existsSync9 } from "fs";
|
|
276186
276257
|
import { mkdir as mkdir25, readFile as readFile29, writeFile as writeFile25 } from "fs/promises";
|
|
276187
276258
|
import { homedir as homedir27 } from "os";
|
|
276188
|
-
import { basename as basename28, extname as extname14, isAbsolute as
|
|
276259
|
+
import { basename as basename28, extname as extname14, isAbsolute as isAbsolute25, relative as relative21, resolve as resolve34 } from "path";
|
|
276189
276260
|
import { pathToFileURL as pathToFileURL6 } from "url";
|
|
276190
276261
|
function toErr(e) {
|
|
276191
276262
|
if (e instanceof Error) {
|
|
@@ -276237,7 +276308,7 @@ function looksLikePath(name) {
|
|
|
276237
276308
|
function workflowFileCandidates(name, cwd2) {
|
|
276238
276309
|
const candidates = [];
|
|
276239
276310
|
if (looksLikePath(name)) {
|
|
276240
|
-
const abs =
|
|
276311
|
+
const abs = isAbsolute25(name) ? name : resolve34(cwd2, name);
|
|
276241
276312
|
if (extname14(abs)) {
|
|
276242
276313
|
candidates.push(abs);
|
|
276243
276314
|
} else {
|
|
@@ -276263,7 +276334,7 @@ function basenameNoExt(p) {
|
|
|
276263
276334
|
return ext ? b.slice(0, -ext.length) : b;
|
|
276264
276335
|
}
|
|
276265
276336
|
async function loadWorkflowFromFile(filePath) {
|
|
276266
|
-
const abs =
|
|
276337
|
+
const abs = isAbsolute25(filePath) ? filePath : resolve34(process.cwd(), filePath);
|
|
276267
276338
|
if (!existsSync9(abs)) {
|
|
276268
276339
|
throw new WorkflowError(`Archivo de workflow no encontrado: ${abs}`);
|
|
276269
276340
|
}
|
|
@@ -276279,7 +276350,7 @@ async function loadWorkflowFromFile(filePath) {
|
|
|
276279
276350
|
}
|
|
276280
276351
|
function isPathInside(child, parent2) {
|
|
276281
276352
|
const rel = relative21(parent2, child);
|
|
276282
|
-
return rel === "" || !rel.startsWith("..") && !
|
|
276353
|
+
return rel === "" || !rel.startsWith("..") && !isAbsolute25(rel);
|
|
276283
276354
|
}
|
|
276284
276355
|
function assertWorkflowScriptAllowed(info = {}) {
|
|
276285
276356
|
const { path: scriptPath, cwd: cwd2 = process.cwd(), permissionMode } = info;
|
|
@@ -276287,7 +276358,7 @@ function assertWorkflowScriptAllowed(info = {}) {
|
|
|
276287
276358
|
return;
|
|
276288
276359
|
if (typeof scriptPath !== "string" || !scriptPath)
|
|
276289
276360
|
return;
|
|
276290
|
-
const abs =
|
|
276361
|
+
const abs = isAbsolute25(scriptPath) ? scriptPath : resolve34(cwd2, scriptPath);
|
|
276291
276362
|
const allowedRoots = [
|
|
276292
276363
|
resolve34(cwd2),
|
|
276293
276364
|
resolve34(homedir27(), ".theus", WORKFLOWS_DIR_NAME)
|
|
@@ -278415,7 +278486,7 @@ var init_ProviderTool = __esm(() => {
|
|
|
278415
278486
|
combine: exports_external.boolean().optional().describe("Run EVERY enabled provider per capability and fuse them (default: pick the single best)."),
|
|
278416
278487
|
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.'),
|
|
278417
278488
|
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."),
|
|
278418
|
-
imagenUrl: exports_external.string().optional().describe("Video a partir de una IMAGEN:
|
|
278489
|
+
imagenUrl: exports_external.string().optional().describe("Video a partir de una IMAGEN: la imagen que se usar\xE1 como primer fotograma. Acepta un enlace https o la RUTA LOCAL de un archivo (p. ej. la imagen que acabas de generar en theus-media/); en ese caso se publica sola con una URL temporal.")
|
|
278419
278490
|
}));
|
|
278420
278491
|
ProviderTool = buildTool({
|
|
278421
278492
|
name: PROVIDER_TOOL_NAME,
|
|
@@ -304790,9 +304861,9 @@ function getTheusEnvMetadata() {
|
|
|
304790
304861
|
};
|
|
304791
304862
|
}
|
|
304792
304863
|
function getBuildAgeMinutes() {
|
|
304793
|
-
if (!{ VERSION: "0.2.
|
|
304864
|
+
if (!{ VERSION: "0.2.47", BUILD_TIME: "1970-01-01T00:00:00.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)
|
|
304794
304865
|
return;
|
|
304795
|
-
const buildTime = new Date({ VERSION: "0.2.
|
|
304866
|
+
const buildTime = new Date({ VERSION: "0.2.47", BUILD_TIME: "1970-01-01T00:00:00.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();
|
|
304796
304867
|
if (isNaN(buildTime))
|
|
304797
304868
|
return;
|
|
304798
304869
|
return Math.floor((Date.now() - buildTime) / 60000);
|
|
@@ -313642,7 +313713,7 @@ __export(exports_marketplaceManager, {
|
|
|
313642
313713
|
_test: () => _test
|
|
313643
313714
|
});
|
|
313644
313715
|
import { writeFile as writeFile35 } from "fs/promises";
|
|
313645
|
-
import { basename as basename34, dirname as dirname45, isAbsolute as
|
|
313716
|
+
import { basename as basename34, dirname as dirname45, isAbsolute as isAbsolute26, join as join109, resolve as resolve38, sep as sep23 } from "path";
|
|
313646
313717
|
function getKnownMarketplacesFile() {
|
|
313647
313718
|
return join109(getPluginsDirectory(), "known_marketplaces.json");
|
|
313648
313719
|
}
|
|
@@ -314396,7 +314467,7 @@ Technical details: ${errorMsg}`);
|
|
|
314396
314467
|
}
|
|
314397
314468
|
async function addMarketplaceSource(source, onProgress) {
|
|
314398
314469
|
let resolvedSource = source;
|
|
314399
|
-
if (isLocalMarketplaceSource(source) && !
|
|
314470
|
+
if (isLocalMarketplaceSource(source) && !isAbsolute26(source.path)) {
|
|
314400
314471
|
resolvedSource = { ...source, path: resolve38(source.path) };
|
|
314401
314472
|
}
|
|
314402
314473
|
if (!isSourceAllowedByPolicy(resolvedSource)) {
|
|
@@ -314809,7 +314880,7 @@ var init_marketplaceManager = __esm(() => {
|
|
|
314809
314880
|
if (!entry) {
|
|
314810
314881
|
throw new Error(`Marketplace '${name}' not found in configuration. Available marketplaces: ${Object.keys(config2).join(", ")}`);
|
|
314811
314882
|
}
|
|
314812
|
-
if (isLocalMarketplaceSource(entry.source) && !
|
|
314883
|
+
if (isLocalMarketplaceSource(entry.source) && !isAbsolute26(entry.source.path)) {
|
|
314813
314884
|
throw new Error(`Marketplace "${name}" has a relative source path (${entry.source.path}) ` + `in known_marketplaces.json \u2014 this is stale state from an older ` + `Theus version. Run 'theus marketplace remove ${name}' and ` + `re-add it from the original project directory.`);
|
|
314814
314885
|
}
|
|
314815
314886
|
try {
|
|
@@ -321440,7 +321511,7 @@ function getAssistantMessageFromError(error40, model, options2) {
|
|
|
321440
321511
|
if (process.env.USER_TYPE === "ant") {
|
|
321441
321512
|
const baseMessage = `API Error: 400 ${error40.message}
|
|
321442
321513
|
|
|
321443
|
-
Run /share and post the JSON file to ${{ VERSION: "0.2.
|
|
321514
|
+
Run /share and post the JSON file to ${{ VERSION: "0.2.47", BUILD_TIME: "1970-01-01T00:00:00.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}.`;
|
|
321444
321515
|
const rewindInstruction = getIsNonInteractiveSession() ? "" : " Then, use /rewind to recover the conversation.";
|
|
321445
321516
|
return createAssistantAPIErrorMessage({
|
|
321446
321517
|
content: baseMessage + rewindInstruction,
|
|
@@ -321476,7 +321547,7 @@ Run /share and post the JSON file to ${{ VERSION: "0.2.45", BUILD_TIME: "1970-01
|
|
|
321476
321547
|
if (process.env.USER_TYPE === "ant" && !process.env.THEUS_MODEL && error40 instanceof Error && error40.message.toLowerCase().includes("invalid model name")) {
|
|
321477
321548
|
const orgId = getOauthAccountInfo()?.organizationUuid;
|
|
321478
321549
|
const baseMsg = `[THEUS-INTERNAL] Your org isn't gated into the \`${model}\` model. Either run \`theus\` with \`THEUS_MODEL=${getDefaultMainLoopModelSetting()}\``;
|
|
321479
|
-
const msg = orgId ? `${baseMsg} or share your orgId (${orgId}) in ${{ VERSION: "0.2.
|
|
321550
|
+
const msg = orgId ? `${baseMsg} or share your orgId (${orgId}) in ${{ VERSION: "0.2.47", BUILD_TIME: "1970-01-01T00:00:00.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.47", BUILD_TIME: "1970-01-01T00:00:00.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.`;
|
|
321480
321551
|
return createAssistantAPIErrorMessage({
|
|
321481
321552
|
content: msg,
|
|
321482
321553
|
error: "invalid_request"
|
|
@@ -331649,7 +331720,7 @@ function buildPrimarySection() {
|
|
|
331649
331720
|
});
|
|
331650
331721
|
return [{
|
|
331651
331722
|
label: "Version",
|
|
331652
|
-
value: { VERSION: "0.2.
|
|
331723
|
+
value: { VERSION: "0.2.47", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
|
|
331653
331724
|
}, {
|
|
331654
331725
|
label: "Session name",
|
|
331655
331726
|
value: nameValue
|
|
@@ -335465,7 +335536,7 @@ function Config({
|
|
|
335465
335536
|
}
|
|
335466
335537
|
})
|
|
335467
335538
|
}) : showSubmenu === "ChannelDowngrade" ? /* @__PURE__ */ jsx_runtime188.jsx(ChannelDowngradeDialog, {
|
|
335468
|
-
currentVersion: { VERSION: "0.2.
|
|
335539
|
+
currentVersion: { VERSION: "0.2.47", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
|
|
335469
335540
|
onChoice: (choice) => {
|
|
335470
335541
|
setShowSubmenu(null);
|
|
335471
335542
|
setTabsHidden(false);
|
|
@@ -335477,7 +335548,7 @@ function Config({
|
|
|
335477
335548
|
autoUpdatesChannel: "stable"
|
|
335478
335549
|
};
|
|
335479
335550
|
if (choice === "stay") {
|
|
335480
|
-
newSettings.minimumVersion = { VERSION: "0.2.
|
|
335551
|
+
newSettings.minimumVersion = { VERSION: "0.2.47", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION;
|
|
335481
335552
|
}
|
|
335482
335553
|
updateSettingsForSource("userSettings", newSettings);
|
|
335483
335554
|
setSettingsData((prev_27) => ({
|
|
@@ -343511,7 +343582,7 @@ function HelpV2(t0) {
|
|
|
343511
343582
|
let t6;
|
|
343512
343583
|
if ($2[31] !== tabs) {
|
|
343513
343584
|
t6 = /* @__PURE__ */ jsx_runtime215.jsx(Tabs, {
|
|
343514
|
-
title: `Theus v${{ VERSION: "0.2.
|
|
343585
|
+
title: `Theus v${{ VERSION: "0.2.47", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION}`,
|
|
343515
343586
|
color: "professionalBlue",
|
|
343516
343587
|
defaultTab: "general",
|
|
343517
343588
|
children: tabs
|
|
@@ -345393,6 +345464,9 @@ async function exchangeCodeForTheusSession({
|
|
|
345393
345464
|
const billingType = stringField(organization, "billing_type");
|
|
345394
345465
|
if (billingType)
|
|
345395
345466
|
profileInfo.billingType = billingType;
|
|
345467
|
+
const plan = stringField(organization, "plan");
|
|
345468
|
+
if (plan)
|
|
345469
|
+
profileInfo.plan = plan;
|
|
345396
345470
|
const accountCreatedAt = stringField(account, "created_at");
|
|
345397
345471
|
if (accountCreatedAt)
|
|
345398
345472
|
profileInfo.accountCreatedAt = accountCreatedAt;
|
|
@@ -345409,6 +345483,9 @@ async function exchangeCodeForTheusSession({
|
|
|
345409
345483
|
};
|
|
345410
345484
|
}
|
|
345411
345485
|
function planLabelFromProfile(profile) {
|
|
345486
|
+
const real = (profile?.plan ?? "").trim();
|
|
345487
|
+
if (real)
|
|
345488
|
+
return NOMBRE_DE_PLAN[real] ?? real;
|
|
345412
345489
|
switch (profile?.organizationType) {
|
|
345413
345490
|
case "theus_max":
|
|
345414
345491
|
return "max";
|
|
@@ -345715,7 +345792,7 @@ function escapeHtml2(value) {
|
|
|
345715
345792
|
}
|
|
345716
345793
|
});
|
|
345717
345794
|
}
|
|
345718
|
-
var DEFAULT_WEB_URL = "https://theus.pe", CLIENT_ID = "9d1c250a-e61b-44d9-88ed-5944d1962f5e", OAUTH_SCOPE;
|
|
345795
|
+
var DEFAULT_WEB_URL = "https://theus.pe", CLIENT_ID = "9d1c250a-e61b-44d9-88ed-5944d1962f5e", OAUTH_SCOPE, NOMBRE_DE_PLAN;
|
|
345719
345796
|
var init_theusWebLogin = __esm(() => {
|
|
345720
345797
|
init_browser();
|
|
345721
345798
|
init_envUtils();
|
|
@@ -345730,6 +345807,13 @@ var init_theusWebLogin = __esm(() => {
|
|
|
345730
345807
|
"user:mcp_servers",
|
|
345731
345808
|
"user:file_upload"
|
|
345732
345809
|
].join(" ");
|
|
345810
|
+
NOMBRE_DE_PLAN = {
|
|
345811
|
+
free: "Free",
|
|
345812
|
+
"pro-code": "Pro Code",
|
|
345813
|
+
"studio-ai": "Studio AI",
|
|
345814
|
+
"max-agent": "Max Agent",
|
|
345815
|
+
omnipresente: "Omnipresente"
|
|
345816
|
+
};
|
|
345733
345817
|
});
|
|
345734
345818
|
|
|
345735
345819
|
// commands/login/theus-login.ts
|
|
@@ -361622,7 +361706,7 @@ function Onboarding({
|
|
|
361622
361706
|
flexDirection: "column",
|
|
361623
361707
|
children: [
|
|
361624
361708
|
/* @__PURE__ */ jsx_runtime248.jsx(TheusBanner, {
|
|
361625
|
-
version: { VERSION: "0.2.
|
|
361709
|
+
version: { VERSION: "0.2.47", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
|
|
361626
361710
|
}),
|
|
361627
361711
|
/* @__PURE__ */ jsx_runtime248.jsxs(ThemedBox_default, {
|
|
361628
361712
|
flexDirection: "column",
|
|
@@ -362123,9 +362207,9 @@ function getAllReleaseNotes(changelogContent = getStoredChangelogFromMemory()) {
|
|
|
362123
362207
|
return [];
|
|
362124
362208
|
}
|
|
362125
362209
|
}
|
|
362126
|
-
async function checkForReleaseNotes(lastSeenVersion, currentVersion = { VERSION: "0.2.
|
|
362210
|
+
async function checkForReleaseNotes(lastSeenVersion, currentVersion = { VERSION: "0.2.47", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION) {
|
|
362127
362211
|
if (process.env.USER_TYPE === "ant") {
|
|
362128
|
-
const changelog = { VERSION: "0.2.
|
|
362212
|
+
const changelog = { VERSION: "0.2.47", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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;
|
|
362129
362213
|
if (changelog) {
|
|
362130
362214
|
const commits = changelog.trim().split(`
|
|
362131
362215
|
`).filter(Boolean);
|
|
@@ -366327,7 +366411,7 @@ var init_Messages = __esm(() => {
|
|
|
366327
366411
|
let t1;
|
|
366328
366412
|
if ($2[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
366329
366413
|
t1 = /* @__PURE__ */ jsx_runtime260.jsx(TheusSessionHeader, {
|
|
366330
|
-
version: { VERSION: "0.2.
|
|
366414
|
+
version: { VERSION: "0.2.47", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
|
|
366331
366415
|
});
|
|
366332
366416
|
$2[0] = t1;
|
|
366333
366417
|
} else {
|
|
@@ -394799,7 +394883,7 @@ async function captureMemoryDiagnostics(trigger, dumpNumber = 0) {
|
|
|
394799
394883
|
smapsRollup,
|
|
394800
394884
|
platform: process.platform,
|
|
394801
394885
|
nodeVersion: process.version,
|
|
394802
|
-
ccVersion: { VERSION: "0.2.
|
|
394886
|
+
ccVersion: { VERSION: "0.2.47", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
|
|
394803
394887
|
};
|
|
394804
394888
|
}
|
|
394805
394889
|
async function performHeapDump(trigger = "manual", dumpNumber = 0) {
|
|
@@ -395385,7 +395469,7 @@ var init_bridge_kick = __esm(() => {
|
|
|
395385
395469
|
var call58 = async () => {
|
|
395386
395470
|
return {
|
|
395387
395471
|
type: "text",
|
|
395388
|
-
value: { VERSION: "0.2.
|
|
395472
|
+
value: { VERSION: "0.2.47", BUILD_TIME: "1970-01-01T00:00:00.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.47", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.47", BUILD_TIME: "1970-01-01T00:00:00.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.47", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
|
|
395389
395473
|
};
|
|
395390
395474
|
}, version2, version_default;
|
|
395391
395475
|
var init_version = __esm(() => {
|
|
@@ -397348,7 +397432,7 @@ var init_advisor2 = __esm(() => {
|
|
|
397348
397432
|
// skills/bundledSkills.ts
|
|
397349
397433
|
import { constants as fsConstants5 } from "fs";
|
|
397350
397434
|
import { mkdir as mkdir43, open as open13 } from "fs/promises";
|
|
397351
|
-
import { dirname as dirname58, isAbsolute as
|
|
397435
|
+
import { dirname as dirname58, isAbsolute as isAbsolute27, join as join139, normalize as normalize13, sep as pathSep2 } from "path";
|
|
397352
397436
|
function registerBundledSkill(definition) {
|
|
397353
397437
|
const { files: files2 } = definition;
|
|
397354
397438
|
let skillRoot;
|
|
@@ -397435,7 +397519,7 @@ async function safeWriteFile(p, content) {
|
|
|
397435
397519
|
}
|
|
397436
397520
|
function resolveSkillFilePath(baseDir, relPath) {
|
|
397437
397521
|
const normalized = normalize13(relPath);
|
|
397438
|
-
if (
|
|
397522
|
+
if (isAbsolute27(normalized) || normalized.split(pathSep2).includes("..") || normalized.split("/").includes("..")) {
|
|
397439
397523
|
throw new Error(`bundled skill file path escapes skill dir: ${relPath}`);
|
|
397440
397524
|
}
|
|
397441
397525
|
return join139(baseDir, normalized);
|
|
@@ -399827,13 +399911,13 @@ async function updateReleaseBundle() {
|
|
|
399827
399911
|
await gracefulShutdown(1);
|
|
399828
399912
|
return;
|
|
399829
399913
|
}
|
|
399830
|
-
if (gte({ VERSION: "0.2.
|
|
399831
|
-
writeToStdout(source_default.green(`Theus is up to date (${{ VERSION: "0.2.
|
|
399914
|
+
if (gte({ VERSION: "0.2.47", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
|
|
399915
|
+
writeToStdout(source_default.green(`Theus is up to date (${{ VERSION: "0.2.47", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION})`) + `
|
|
399832
399916
|
`);
|
|
399833
399917
|
await gracefulShutdown(0);
|
|
399834
399918
|
return;
|
|
399835
399919
|
}
|
|
399836
|
-
writeToStdout(`New version available: ${latest} (current: ${{ VERSION: "0.2.
|
|
399920
|
+
writeToStdout(`New version available: ${latest} (current: ${{ VERSION: "0.2.47", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION})
|
|
399837
399921
|
`);
|
|
399838
399922
|
writeToStdout(`Installing update from theus.pe/dl...
|
|
399839
399923
|
`);
|
|
@@ -399867,7 +399951,7 @@ async function updateReleaseBundle() {
|
|
|
399867
399951
|
return;
|
|
399868
399952
|
}
|
|
399869
399953
|
cpSync(staged, bundleDir, { recursive: true, force: true });
|
|
399870
|
-
writeToStdout(source_default.green(`Successfully updated from ${{ VERSION: "0.2.
|
|
399954
|
+
writeToStdout(source_default.green(`Successfully updated from ${{ VERSION: "0.2.47", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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}`) + `
|
|
399871
399955
|
`);
|
|
399872
399956
|
await regenerateCompletionCache();
|
|
399873
399957
|
} finally {
|
|
@@ -399880,7 +399964,7 @@ async function updateReleaseBundle() {
|
|
|
399880
399964
|
async function update() {
|
|
399881
399965
|
logEvent("tengu_update_check", {});
|
|
399882
399966
|
await updateNaupa();
|
|
399883
|
-
writeToStdout(`Current version: ${{ VERSION: "0.2.
|
|
399967
|
+
writeToStdout(`Current version: ${{ VERSION: "0.2.47", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION}
|
|
399884
399968
|
`);
|
|
399885
399969
|
const channel2 = getInitialSettings()?.autoUpdatesChannel ?? "latest";
|
|
399886
399970
|
writeToStdout(`Checking for updates to ${channel2} version...
|
|
@@ -399959,8 +400043,8 @@ async function update() {
|
|
|
399959
400043
|
writeToStdout(`Theus is managed by Homebrew.
|
|
399960
400044
|
`);
|
|
399961
400045
|
const latest = await getLatestVersion(channel2);
|
|
399962
|
-
if (latest && !gte({ VERSION: "0.2.
|
|
399963
|
-
writeToStdout(`Update available: ${{ VERSION: "0.2.
|
|
400046
|
+
if (latest && !gte({ VERSION: "0.2.47", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
|
|
400047
|
+
writeToStdout(`Update available: ${{ VERSION: "0.2.47", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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}
|
|
399964
400048
|
`);
|
|
399965
400049
|
writeToStdout(`
|
|
399966
400050
|
`);
|
|
@@ -399976,8 +400060,8 @@ async function update() {
|
|
|
399976
400060
|
writeToStdout(`Theus is managed by winget.
|
|
399977
400061
|
`);
|
|
399978
400062
|
const latest = await getLatestVersion(channel2);
|
|
399979
|
-
if (latest && !gte({ VERSION: "0.2.
|
|
399980
|
-
writeToStdout(`Update available: ${{ VERSION: "0.2.
|
|
400063
|
+
if (latest && !gte({ VERSION: "0.2.47", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
|
|
400064
|
+
writeToStdout(`Update available: ${{ VERSION: "0.2.47", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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}
|
|
399981
400065
|
`);
|
|
399982
400066
|
writeToStdout(`
|
|
399983
400067
|
`);
|
|
@@ -399993,8 +400077,8 @@ async function update() {
|
|
|
399993
400077
|
writeToStdout(`Theus is managed by apk.
|
|
399994
400078
|
`);
|
|
399995
400079
|
const latest = await getLatestVersion(channel2);
|
|
399996
|
-
if (latest && !gte({ VERSION: "0.2.
|
|
399997
|
-
writeToStdout(`Update available: ${{ VERSION: "0.2.
|
|
400080
|
+
if (latest && !gte({ VERSION: "0.2.47", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
|
|
400081
|
+
writeToStdout(`Update available: ${{ VERSION: "0.2.47", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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}
|
|
399998
400082
|
`);
|
|
399999
400083
|
writeToStdout(`
|
|
400000
400084
|
`);
|
|
@@ -400059,11 +400143,11 @@ async function update() {
|
|
|
400059
400143
|
`);
|
|
400060
400144
|
await gracefulShutdown(1);
|
|
400061
400145
|
}
|
|
400062
|
-
if (result.latestVersion === { VERSION: "0.2.
|
|
400063
|
-
writeToStdout(source_default.green(`Theus is up to date (${{ VERSION: "0.2.
|
|
400146
|
+
if (result.latestVersion === { VERSION: "0.2.47", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION) {
|
|
400147
|
+
writeToStdout(source_default.green(`Theus is up to date (${{ VERSION: "0.2.47", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION})`) + `
|
|
400064
400148
|
`);
|
|
400065
400149
|
} else {
|
|
400066
|
-
writeToStdout(source_default.green(`Successfully updated from ${{ VERSION: "0.2.
|
|
400150
|
+
writeToStdout(source_default.green(`Successfully updated from ${{ VERSION: "0.2.47", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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}`) + `
|
|
400067
400151
|
`);
|
|
400068
400152
|
await regenerateCompletionCache();
|
|
400069
400153
|
}
|
|
@@ -400082,9 +400166,9 @@ async function update() {
|
|
|
400082
400166
|
await removeInstalledSymlink();
|
|
400083
400167
|
}
|
|
400084
400168
|
logForDebugging("update: Checking npm registry for latest version");
|
|
400085
|
-
logForDebugging(`update: Package URL: ${{ VERSION: "0.2.
|
|
400169
|
+
logForDebugging(`update: Package URL: ${{ VERSION: "0.2.47", BUILD_TIME: "1970-01-01T00:00:00.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}`);
|
|
400086
400170
|
const npmTag = channel2 === "stable" ? "stable" : "latest";
|
|
400087
|
-
const npmCommand = `npm view ${{ VERSION: "0.2.
|
|
400171
|
+
const npmCommand = `npm view ${{ VERSION: "0.2.47", BUILD_TIME: "1970-01-01T00:00:00.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`;
|
|
400088
400172
|
logForDebugging(`update: Running: ${npmCommand}`);
|
|
400089
400173
|
const latestVersion = await getLatestVersion(channel2);
|
|
400090
400174
|
logForDebugging(`update: Latest version from npm: ${latestVersion || "FAILED"}`);
|
|
@@ -400104,7 +400188,7 @@ async function update() {
|
|
|
400104
400188
|
`);
|
|
400105
400189
|
process.stderr.write(` \u2022 Corporate proxy/firewall blocking npm
|
|
400106
400190
|
`);
|
|
400107
|
-
if ({ VERSION: "0.2.
|
|
400191
|
+
if ({ VERSION: "0.2.47", BUILD_TIME: "1970-01-01T00:00:00.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.47", BUILD_TIME: "1970-01-01T00:00:00.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")) {
|
|
400108
400192
|
process.stderr.write(` \u2022 Internal/development build not published to npm
|
|
400109
400193
|
`);
|
|
400110
400194
|
}
|
|
@@ -400116,19 +400200,19 @@ async function update() {
|
|
|
400116
400200
|
`);
|
|
400117
400201
|
process.stderr.write(` \u2022 Run with --debug flag for more details
|
|
400118
400202
|
`);
|
|
400119
|
-
const packageName = { VERSION: "0.2.
|
|
400203
|
+
const packageName = { VERSION: "0.2.47", BUILD_TIME: "1970-01-01T00:00:00.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");
|
|
400120
400204
|
process.stderr.write(` \u2022 Manually check: npm view ${packageName} version
|
|
400121
400205
|
`);
|
|
400122
400206
|
process.stderr.write(` \u2022 Check if you need to login: npm whoami
|
|
400123
400207
|
`);
|
|
400124
400208
|
await gracefulShutdown(1);
|
|
400125
400209
|
}
|
|
400126
|
-
if (gte({ VERSION: "0.2.
|
|
400127
|
-
writeToStdout(source_default.green(`Theus is up to date (${{ VERSION: "0.2.
|
|
400210
|
+
if (gte({ VERSION: "0.2.47", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
|
|
400211
|
+
writeToStdout(source_default.green(`Theus is up to date (${{ VERSION: "0.2.47", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION})`) + `
|
|
400128
400212
|
`);
|
|
400129
400213
|
await gracefulShutdown(0);
|
|
400130
400214
|
}
|
|
400131
|
-
writeToStdout(`New version available: ${latestVersion} (current: ${{ VERSION: "0.2.
|
|
400215
|
+
writeToStdout(`New version available: ${latestVersion} (current: ${{ VERSION: "0.2.47", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION})
|
|
400132
400216
|
`);
|
|
400133
400217
|
writeToStdout(`Installing update...
|
|
400134
400218
|
`);
|
|
@@ -400173,7 +400257,7 @@ async function update() {
|
|
|
400173
400257
|
logForDebugging(`update: Installation status: ${status2}`);
|
|
400174
400258
|
switch (status2) {
|
|
400175
400259
|
case "success":
|
|
400176
|
-
writeToStdout(source_default.green(`Successfully updated from ${{ VERSION: "0.2.
|
|
400260
|
+
writeToStdout(source_default.green(`Successfully updated from ${{ VERSION: "0.2.47", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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}`) + `
|
|
400177
400261
|
`);
|
|
400178
400262
|
await regenerateCompletionCache();
|
|
400179
400263
|
break;
|
|
@@ -400183,7 +400267,7 @@ async function update() {
|
|
|
400183
400267
|
if (useLocalUpdate) {
|
|
400184
400268
|
process.stderr.write(`Try manually updating with:
|
|
400185
400269
|
`);
|
|
400186
|
-
process.stderr.write(` cd ~/.theus/local && npm update ${{ VERSION: "0.2.
|
|
400270
|
+
process.stderr.write(` cd ~/.theus/local && npm update ${{ VERSION: "0.2.47", BUILD_TIME: "1970-01-01T00:00:00.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}
|
|
400187
400271
|
`);
|
|
400188
400272
|
} else {
|
|
400189
400273
|
process.stderr.write(`Try running with sudo or fix npm permissions
|
|
@@ -400199,7 +400283,7 @@ async function update() {
|
|
|
400199
400283
|
if (useLocalUpdate) {
|
|
400200
400284
|
process.stderr.write(`Try manually updating with:
|
|
400201
400285
|
`);
|
|
400202
|
-
process.stderr.write(` cd ~/.theus/local && npm update ${{ VERSION: "0.2.
|
|
400286
|
+
process.stderr.write(` cd ~/.theus/local && npm update ${{ VERSION: "0.2.47", BUILD_TIME: "1970-01-01T00:00:00.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}
|
|
400203
400287
|
`);
|
|
400204
400288
|
} else {
|
|
400205
400289
|
process.stderr.write(`Or consider using native installation with: theus install
|
|
@@ -409282,7 +409366,7 @@ var init_sessionStorage = __esm(() => {
|
|
|
409282
409366
|
init_settings2();
|
|
409283
409367
|
init_slowOperations();
|
|
409284
409368
|
init_uuid();
|
|
409285
|
-
VERSION4 = { VERSION: "0.2.
|
|
409369
|
+
VERSION4 = { VERSION: "0.2.47", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION;
|
|
409286
409370
|
MAX_TOMBSTONE_REWRITE_BYTES = 50 * 1024 * 1024;
|
|
409287
409371
|
SKIP_FIRST_PROMPT_PATTERN = /^(?:\s*<[a-z][\w-]*[\s>]|\[Request interrupted by user[^\]]*\])/;
|
|
409288
409372
|
EPHEMERAL_PROGRESS_TYPES = new Set([
|
|
@@ -410487,7 +410571,7 @@ var init_filesystem = __esm(() => {
|
|
|
410487
410571
|
});
|
|
410488
410572
|
getBundledSkillsRoot = memoize_default(function getBundledSkillsRoot2() {
|
|
410489
410573
|
const nonce = randomBytes21(16).toString("hex");
|
|
410490
|
-
return join149(getTheusTempDir(), "bundled-skills", { VERSION: "0.2.
|
|
410574
|
+
return join149(getTheusTempDir(), "bundled-skills", { VERSION: "0.2.47", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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);
|
|
410491
410575
|
});
|
|
410492
410576
|
getResolvedWorkingDirPaths = memoize_default(getPathsForPermissionCheck);
|
|
410493
410577
|
});
|
|
@@ -415666,7 +415750,7 @@ function getSimpleDoingTasksSection() {
|
|
|
415666
415750
|
];
|
|
415667
415751
|
const userHelpSubitems = [
|
|
415668
415752
|
`/help: Get help with using Theus`,
|
|
415669
|
-
`To give feedback, users should ${{ VERSION: "0.2.
|
|
415753
|
+
`To give feedback, users should ${{ VERSION: "0.2.47", BUILD_TIME: "1970-01-01T00:00:00.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}`
|
|
415670
415754
|
];
|
|
415671
415755
|
const items = [
|
|
415672
415756
|
`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.`,
|
|
@@ -416566,7 +416650,7 @@ function computeFingerprint(messageText, version3) {
|
|
|
416566
416650
|
}
|
|
416567
416651
|
function computeFingerprintFromMessages(messages) {
|
|
416568
416652
|
const firstMessageText = extractFirstMessageText(messages);
|
|
416569
|
-
return computeFingerprint(firstMessageText, { VERSION: "0.2.
|
|
416653
|
+
return computeFingerprint(firstMessageText, { VERSION: "0.2.47", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION);
|
|
416570
416654
|
}
|
|
416571
416655
|
var FINGERPRINT_SALT = "59cf53e54c78";
|
|
416572
416656
|
var init_fingerprint = () => {};
|
|
@@ -419126,7 +419210,7 @@ async function sideQuery(opts) {
|
|
|
419126
419210
|
betas.push(STRUCTURED_OUTPUTS_BETA_HEADER);
|
|
419127
419211
|
}
|
|
419128
419212
|
const messageText = extractFirstUserMessageText(messages);
|
|
419129
|
-
const fingerprint = computeFingerprint(messageText, { VERSION: "0.2.
|
|
419213
|
+
const fingerprint = computeFingerprint(messageText, { VERSION: "0.2.47", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION);
|
|
419130
419214
|
const attributionHeader = getAttributionHeader(fingerprint);
|
|
419131
419215
|
const systemBlocks = [
|
|
419132
419216
|
attributionHeader ? { type: "text", text: attributionHeader } : null,
|
|
@@ -420429,7 +420513,7 @@ async function handleMemories(state) {
|
|
|
420429
420513
|
async function runProjectContextMcpServer() {
|
|
420430
420514
|
const projectRoot = process.env.THEUS_PROJECT_ROOT || process.cwd();
|
|
420431
420515
|
const state = new ProjectContextState(projectRoot);
|
|
420432
|
-
const server2 = new Server({ name: SERVER_NAME, version: { VERSION: "0.2.
|
|
420516
|
+
const server2 = new Server({ name: SERVER_NAME, version: { VERSION: "0.2.47", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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: {} } });
|
|
420433
420517
|
server2.setRequestHandler(ListToolsRequestSchema, async () => ({
|
|
420434
420518
|
tools: TOOL_DEFINITIONS.map((t) => ({
|
|
420435
420519
|
name: t.name,
|
|
@@ -422409,7 +422493,7 @@ function createBridgeLogger(options2) {
|
|
|
422409
422493
|
connectUrl = buildBridgeConnectUrl(environmentId, cachedIngressUrl);
|
|
422410
422494
|
regenerateQr(connectUrl);
|
|
422411
422495
|
if (verbose) {
|
|
422412
|
-
write(source_default.dim(`Remote Control`) + ` v${{ VERSION: "0.2.
|
|
422496
|
+
write(source_default.dim(`Remote Control`) + ` v${{ VERSION: "0.2.47", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION}
|
|
422413
422497
|
`);
|
|
422414
422498
|
}
|
|
422415
422499
|
if (verbose) {
|
|
@@ -423382,7 +423466,7 @@ function appendToLog(path19, message) {
|
|
|
423382
423466
|
cwd: getFsImplementation().cwd(),
|
|
423383
423467
|
userType: process.env.USER_TYPE,
|
|
423384
423468
|
sessionId: getSessionId(),
|
|
423385
|
-
version: { VERSION: "0.2.
|
|
423469
|
+
version: { VERSION: "0.2.47", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
|
|
423386
423470
|
};
|
|
423387
423471
|
getLogWriter(path19).write(messageWithTimestamp);
|
|
423388
423472
|
}
|
|
@@ -424652,7 +424736,7 @@ Spawn mode for this project:
|
|
|
424652
424736
|
const api2 = createBridgeApiClient({
|
|
424653
424737
|
baseUrl,
|
|
424654
424738
|
getAccessToken: getBridgeAccessToken2,
|
|
424655
|
-
runnerVersion: { VERSION: "0.2.
|
|
424739
|
+
runnerVersion: { VERSION: "0.2.47", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
|
|
424656
424740
|
onDebug: logForDebugging,
|
|
424657
424741
|
onAuth401: handleOAuth401Error2,
|
|
424658
424742
|
getTrustedDeviceToken
|
|
@@ -424890,7 +424974,7 @@ async function runBridgeHeadless(opts, signal) {
|
|
|
424890
424974
|
const api2 = createBridgeApiClient({
|
|
424891
424975
|
baseUrl,
|
|
424892
424976
|
getAccessToken: opts.getAccessToken,
|
|
424893
|
-
runnerVersion: { VERSION: "0.2.
|
|
424977
|
+
runnerVersion: { VERSION: "0.2.47", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
|
|
424894
424978
|
onDebug: log2,
|
|
424895
424979
|
onAuth401: opts.onAuth401,
|
|
424896
424980
|
getTrustedDeviceToken
|
|
@@ -428954,7 +429038,7 @@ function buildSystemInitMessage(inputs) {
|
|
|
428954
429038
|
slash_commands: inputs.commands.filter((c5) => c5.userInvocable !== false).map((c5) => c5.name),
|
|
428955
429039
|
apiKeySource: getTheusApiKeyWithSource().source,
|
|
428956
429040
|
betas: getSdkBetas(),
|
|
428957
|
-
theus_code_version: { VERSION: "0.2.
|
|
429041
|
+
theus_code_version: { VERSION: "0.2.47", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
|
|
428958
429042
|
output_style: outputStyle2,
|
|
428959
429043
|
agents: inputs.agents.map((agent) => agent.agentType),
|
|
428960
429044
|
skills: inputs.skills.filter((s) => s.userInvocable !== false).map((skill) => skill.name),
|
|
@@ -428994,8 +429078,8 @@ async function getEnvLessBridgeConfig() {
|
|
|
428994
429078
|
}
|
|
428995
429079
|
async function checkEnvLessBridgeMinVersion() {
|
|
428996
429080
|
const cfg = await getEnvLessBridgeConfig();
|
|
428997
|
-
if (cfg.min_version && lt({ VERSION: "0.2.
|
|
428998
|
-
return `Your version of Theus (${{ VERSION: "0.2.
|
|
429081
|
+
if (cfg.min_version && lt({ VERSION: "0.2.47", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
|
|
429082
|
+
return `Your version of Theus (${{ VERSION: "0.2.47", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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.
|
|
428999
429083
|
Version ${cfg.min_version} or higher is required. Run \`theus update\` to update.`;
|
|
429000
429084
|
}
|
|
429001
429085
|
return null;
|
|
@@ -431318,7 +431402,7 @@ async function initBridgeCore(params) {
|
|
|
431318
431402
|
const rawApi = createBridgeApiClient({
|
|
431319
431403
|
baseUrl,
|
|
431320
431404
|
getAccessToken,
|
|
431321
|
-
runnerVersion: { VERSION: "0.2.
|
|
431405
|
+
runnerVersion: { VERSION: "0.2.47", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
|
|
431322
431406
|
onDebug: logForDebugging,
|
|
431323
431407
|
onAuth401,
|
|
431324
431408
|
getTrustedDeviceToken
|
|
@@ -448059,7 +448143,7 @@ var init_useVoiceEnabled = __esm(() => {
|
|
|
448059
448143
|
function getSemverPart(version3) {
|
|
448060
448144
|
return `${import_semver14.major(version3, { loose: true })}.${import_semver14.minor(version3, { loose: true })}.${import_semver14.patch(version3, { loose: true })}`;
|
|
448061
448145
|
}
|
|
448062
|
-
function useUpdateNotification(updatedVersion, initialVersion = { VERSION: "0.2.
|
|
448146
|
+
function useUpdateNotification(updatedVersion, initialVersion = { VERSION: "0.2.47", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION) {
|
|
448063
448147
|
const [lastNotifiedSemver, setLastNotifiedSemver] = import_react231.useState(() => getSemverPart(initialVersion));
|
|
448064
448148
|
if (!updatedVersion) {
|
|
448065
448149
|
return null;
|
|
@@ -448099,7 +448183,7 @@ function AutoUpdater({
|
|
|
448099
448183
|
return;
|
|
448100
448184
|
}
|
|
448101
448185
|
if (false) {}
|
|
448102
|
-
const currentVersion = { VERSION: "0.2.
|
|
448186
|
+
const currentVersion = { VERSION: "0.2.47", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION;
|
|
448103
448187
|
const channel2 = getInitialSettings()?.autoUpdatesChannel ?? "latest";
|
|
448104
448188
|
let latestVersion = await getLatestVersion(channel2);
|
|
448105
448189
|
const isDisabled2 = isAutoUpdaterDisabled();
|
|
@@ -448235,7 +448319,7 @@ function AutoUpdater({
|
|
|
448235
448319
|
" ",
|
|
448236
448320
|
/* @__PURE__ */ jsx_runtime405.jsx(ThemedText, {
|
|
448237
448321
|
bold: true,
|
|
448238
|
-
children: hasLocalInstall ? `cd ~/.theus/local && npm update ${{ VERSION: "0.2.
|
|
448322
|
+
children: hasLocalInstall ? `cd ~/.theus/local && npm update ${{ VERSION: "0.2.47", BUILD_TIME: "1970-01-01T00:00:00.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.47", BUILD_TIME: "1970-01-01T00:00:00.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}`
|
|
448239
448323
|
})
|
|
448240
448324
|
]
|
|
448241
448325
|
})
|
|
@@ -448312,12 +448396,12 @@ function NativeAutoUpdater({
|
|
|
448312
448396
|
logEvent("tengu_native_auto_updater_start", {});
|
|
448313
448397
|
try {
|
|
448314
448398
|
const maxVersion = await getMaxVersion();
|
|
448315
|
-
if (maxVersion && gt({ VERSION: "0.2.
|
|
448399
|
+
if (maxVersion && gt({ VERSION: "0.2.47", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
|
|
448316
448400
|
const msg = await getMaxVersionMessage();
|
|
448317
448401
|
setMaxVersionIssue(msg ?? "affects your version");
|
|
448318
448402
|
}
|
|
448319
448403
|
const result = await installLatest(channel2);
|
|
448320
|
-
const currentVersion = { VERSION: "0.2.
|
|
448404
|
+
const currentVersion = { VERSION: "0.2.47", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION;
|
|
448321
448405
|
const latencyMs = Date.now() - startTime2;
|
|
448322
448406
|
if (result.lockFailed) {
|
|
448323
448407
|
logEvent("tengu_native_auto_updater_lock_contention", {
|
|
@@ -448454,17 +448538,17 @@ function PackageManagerAutoUpdater(t0) {
|
|
|
448454
448538
|
const maxVersion = await getMaxVersion();
|
|
448455
448539
|
if (maxVersion && latest && gt(latest, maxVersion)) {
|
|
448456
448540
|
logForDebugging(`PackageManagerAutoUpdater: maxVersion ${maxVersion} is set, capping update from ${latest} to ${maxVersion}`);
|
|
448457
|
-
if (gte({ VERSION: "0.2.
|
|
448458
|
-
logForDebugging(`PackageManagerAutoUpdater: current version ${{ VERSION: "0.2.
|
|
448541
|
+
if (gte({ VERSION: "0.2.47", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)) {
|
|
448542
|
+
logForDebugging(`PackageManagerAutoUpdater: current version ${{ VERSION: "0.2.47", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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`);
|
|
448459
448543
|
setUpdateAvailable(false);
|
|
448460
448544
|
return;
|
|
448461
448545
|
}
|
|
448462
448546
|
latest = maxVersion;
|
|
448463
448547
|
}
|
|
448464
|
-
const hasUpdate = latest && !gte({ VERSION: "0.2.
|
|
448548
|
+
const hasUpdate = latest && !gte({ VERSION: "0.2.47", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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);
|
|
448465
448549
|
setUpdateAvailable(!!hasUpdate);
|
|
448466
448550
|
if (hasUpdate) {
|
|
448467
|
-
logForDebugging(`PackageManagerAutoUpdater: Update available ${{ VERSION: "0.2.
|
|
448551
|
+
logForDebugging(`PackageManagerAutoUpdater: Update available ${{ VERSION: "0.2.47", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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}`);
|
|
448468
448552
|
}
|
|
448469
448553
|
};
|
|
448470
448554
|
$2[0] = t1;
|
|
@@ -448498,7 +448582,7 @@ function PackageManagerAutoUpdater(t0) {
|
|
|
448498
448582
|
wrap: "truncate",
|
|
448499
448583
|
children: [
|
|
448500
448584
|
"currentVersion: ",
|
|
448501
|
-
{ VERSION: "0.2.
|
|
448585
|
+
{ VERSION: "0.2.47", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
|
|
448502
448586
|
]
|
|
448503
448587
|
});
|
|
448504
448588
|
$2[3] = verbose;
|
|
@@ -456371,7 +456455,7 @@ function buildStatusLineCommandInput(permissionMode, exceeds200kTokens, settings
|
|
|
456371
456455
|
project_dir: getOriginalCwd(),
|
|
456372
456456
|
added_dirs: addedDirs
|
|
456373
456457
|
},
|
|
456374
|
-
version: { VERSION: "0.2.
|
|
456458
|
+
version: { VERSION: "0.2.47", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
|
|
456375
456459
|
output_style: {
|
|
456376
456460
|
name: outputStyleName
|
|
456377
456461
|
},
|
|
@@ -467791,7 +467875,7 @@ async function submitTranscriptShare(messages, trigger, appearanceId) {
|
|
|
467791
467875
|
} catch {}
|
|
467792
467876
|
const data = {
|
|
467793
467877
|
trigger,
|
|
467794
|
-
version: { VERSION: "0.2.
|
|
467878
|
+
version: { VERSION: "0.2.47", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
|
|
467795
467879
|
platform: process.platform,
|
|
467796
467880
|
transcript,
|
|
467797
467881
|
subagentTranscripts: Object.keys(subagentTranscripts).length > 0 ? subagentTranscripts : undefined,
|
|
@@ -473201,7 +473285,7 @@ var init_usePluginAutoupdateNotification = __esm(() => {
|
|
|
473201
473285
|
});
|
|
473202
473286
|
|
|
473203
473287
|
// utils/plugins/reconciler.ts
|
|
473204
|
-
import { isAbsolute as
|
|
473288
|
+
import { isAbsolute as isAbsolute28, resolve as resolve51 } from "path";
|
|
473205
473289
|
function diffMarketplaces(declared, materialized, opts) {
|
|
473206
473290
|
const missing = [];
|
|
473207
473291
|
const sourceChanged = [];
|
|
@@ -473309,7 +473393,7 @@ async function reconcileMarketplaces(opts) {
|
|
|
473309
473393
|
return { installed, updated, failed, upToDate: diff3.upToDate, skipped };
|
|
473310
473394
|
}
|
|
473311
473395
|
function normalizeSource(source, projectRoot) {
|
|
473312
|
-
if ((source.source === "directory" || source.source === "file") && !
|
|
473396
|
+
if ((source.source === "directory" || source.source === "file") && !isAbsolute28(source.path)) {
|
|
473313
473397
|
const base2 = projectRoot ?? getOriginalCwd();
|
|
473314
473398
|
const canonicalRoot = findCanonicalGitRoot(base2);
|
|
473315
473399
|
return {
|
|
@@ -480798,7 +480882,7 @@ function completeOnboarding() {
|
|
|
480798
480882
|
saveGlobalConfig((current) => ({
|
|
480799
480883
|
...current,
|
|
480800
480884
|
hasCompletedOnboarding: true,
|
|
480801
|
-
lastOnboardingVersion: { VERSION: "0.2.
|
|
480885
|
+
lastOnboardingVersion: { VERSION: "0.2.47", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
|
|
480802
480886
|
}));
|
|
480803
480887
|
}
|
|
480804
480888
|
function showDialog(root2, renderer) {
|
|
@@ -491796,7 +491880,7 @@ async function startMCPServer(cwd3, debug3, verbose) {
|
|
|
491796
491880
|
setCwd(cwd3);
|
|
491797
491881
|
const server2 = new Server({
|
|
491798
491882
|
name: "theus/tengu",
|
|
491799
|
-
version: { VERSION: "0.2.
|
|
491883
|
+
version: { VERSION: "0.2.47", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
|
|
491800
491884
|
}, {
|
|
491801
491885
|
capabilities: {
|
|
491802
491886
|
tools: {}
|
|
@@ -493238,7 +493322,7 @@ async function setupTokenHandler(root2) {
|
|
|
493238
493322
|
gap: 1,
|
|
493239
493323
|
children: [
|
|
493240
493324
|
/* @__PURE__ */ jsx_runtime492.jsx(TheusBanner, {
|
|
493241
|
-
version: { VERSION: "0.2.
|
|
493325
|
+
version: { VERSION: "0.2.47", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
|
|
493242
493326
|
}),
|
|
493243
493327
|
showAuthWarning && /* @__PURE__ */ jsx_runtime492.jsxs(ThemedBox_default, {
|
|
493244
493328
|
flexDirection: "column",
|
|
@@ -494720,7 +494804,7 @@ ${assistantAddendum}` : assistantAddendum;
|
|
|
494720
494804
|
}
|
|
494721
494805
|
}
|
|
494722
494806
|
logForDiagnosticsNoPII("info", "started", {
|
|
494723
|
-
version: { VERSION: "0.2.
|
|
494807
|
+
version: { VERSION: "0.2.47", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
|
|
494724
494808
|
is_native_binary: isInBundledMode()
|
|
494725
494809
|
});
|
|
494726
494810
|
registerCleanup(async () => {
|
|
@@ -495588,7 +495672,7 @@ Usage: theus --remote "your task description"`, () => gracefulShutdown(1));
|
|
|
495588
495672
|
pendingHookMessages
|
|
495589
495673
|
}, renderAndRun);
|
|
495590
495674
|
}
|
|
495591
|
-
}).version(`${{ VERSION: "0.2.
|
|
495675
|
+
}).version(`${{ VERSION: "0.2.47", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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");
|
|
495592
495676
|
program2.option("-w, --worktree [name]", "Crea un nuevo worktree de git para esta sesi\xF3n (opcionalmente indica un nombre)");
|
|
495593
495677
|
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.");
|
|
495594
495678
|
if (canUserConfigureAdvisor()) {
|
|
@@ -496140,7 +496224,7 @@ if (false) {}
|
|
|
496140
496224
|
async function main2() {
|
|
496141
496225
|
const args = process.argv.slice(2);
|
|
496142
496226
|
if (args.length === 1 && (args[0] === "--version" || args[0] === "-v" || args[0] === "-V")) {
|
|
496143
|
-
console.log(`${{ VERSION: "0.2.
|
|
496227
|
+
console.log(`${{ VERSION: "0.2.47", BUILD_TIME: "1970-01-01T00:00:00.000Z", 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)`);
|
|
496144
496228
|
return;
|
|
496145
496229
|
}
|
|
496146
496230
|
const {
|