@skilder-ai/runtime 0.9.17 → 0.9.18
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/dist/index.js +26 -27
- package/dist/index.js.map +4 -4
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -140261,7 +140261,8 @@ function detectRelatedMentions(content, related) {
|
|
|
140261
140261
|
}
|
|
140262
140262
|
searchTerms.push(r2.name);
|
|
140263
140263
|
for (const term of searchTerms) {
|
|
140264
|
-
if (seen.has(qualifiedName))
|
|
140264
|
+
if (seen.has(qualifiedName))
|
|
140265
|
+
break;
|
|
140265
140266
|
try {
|
|
140266
140267
|
const pattern = buildSearchPattern(term);
|
|
140267
140268
|
if (pattern.test(content)) {
|
|
@@ -140273,17 +140274,12 @@ function detectRelatedMentions(content, related) {
|
|
|
140273
140274
|
});
|
|
140274
140275
|
}
|
|
140275
140276
|
} catch (error48) {
|
|
140276
|
-
console.warn(
|
|
140277
|
-
`[detectRelatedMentions] Failed to match term "${term}" for resource "${r2.name}":`,
|
|
140278
|
-
error48
|
|
140279
|
-
);
|
|
140277
|
+
console.warn(`[detectRelatedMentions] Failed to match term "${term}" for resource "${r2.name}":`, error48);
|
|
140280
140278
|
continue;
|
|
140281
140279
|
}
|
|
140282
140280
|
}
|
|
140283
140281
|
}
|
|
140284
|
-
return Array.from(seen.values()).sort(
|
|
140285
|
-
(a3, b2) => a3.qualifiedName.localeCompare(b2.qualifiedName)
|
|
140286
|
-
);
|
|
140282
|
+
return Array.from(seen.values()).sort((a3, b2) => a3.qualifiedName.localeCompare(b2.qualifiedName));
|
|
140287
140283
|
}
|
|
140288
140284
|
|
|
140289
140285
|
// src/utils.ts
|
|
@@ -145423,6 +145419,25 @@ var path2 = __toESM(require("path"));
|
|
|
145423
145419
|
var import_node_crypto3 = require("node:crypto");
|
|
145424
145420
|
var import_promises = require("node:stream/promises");
|
|
145425
145421
|
var import_node_stream = require("node:stream");
|
|
145422
|
+
|
|
145423
|
+
// src/config/urls.ts
|
|
145424
|
+
function publicMcpUrl() {
|
|
145425
|
+
return parseUrlEnv("PUBLIC_MCP_URL", "http://localhost:3001/mcp");
|
|
145426
|
+
}
|
|
145427
|
+
function publicAuthorizationServerUrl() {
|
|
145428
|
+
return parseUrlEnv("PUBLIC_BACKEND_URL", "http://localhost:3000");
|
|
145429
|
+
}
|
|
145430
|
+
function privateMcpUrl() {
|
|
145431
|
+
return parseUrlEnv("PRIVATE_MCP_URL", "http://localhost:3001/mcp");
|
|
145432
|
+
}
|
|
145433
|
+
function privateBackendUrl() {
|
|
145434
|
+
return parseUrlEnv("PRIVATE_BACKEND_URL", "http://localhost:3000");
|
|
145435
|
+
}
|
|
145436
|
+
function natsServers() {
|
|
145437
|
+
return parseUrlEnv("NATS_SERVERS", "localhost:4222");
|
|
145438
|
+
}
|
|
145439
|
+
|
|
145440
|
+
// src/services/file.service.ts
|
|
145426
145441
|
var __decorate8 = function(decorators, target, key, desc) {
|
|
145427
145442
|
var c3 = arguments.length, r2 = c3 < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d2;
|
|
145428
145443
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r2 = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -145498,8 +145513,9 @@ var FileService = class FileService2 extends LifecycleService {
|
|
|
145498
145513
|
SKILDER_ALLOWED_PATHS: this.allowedPaths.join(":"),
|
|
145499
145514
|
SKILDER_MAX_FILE_SIZE_MB: String(this.maxFileSizeMB)
|
|
145500
145515
|
};
|
|
145501
|
-
|
|
145502
|
-
|
|
145516
|
+
const backendUrl = process.env.SKILDER_BACKEND_URL || (process.env.PRIVATE_BACKEND_URL ? privateBackendUrl() : void 0);
|
|
145517
|
+
if (backendUrl) {
|
|
145518
|
+
env.SKILDER_BACKEND_URL = backendUrl;
|
|
145503
145519
|
}
|
|
145504
145520
|
return env;
|
|
145505
145521
|
}
|
|
@@ -145728,23 +145744,6 @@ function loadPrompt(name21) {
|
|
|
145728
145744
|
return body;
|
|
145729
145745
|
}
|
|
145730
145746
|
|
|
145731
|
-
// src/config/urls.ts
|
|
145732
|
-
function publicMcpUrl() {
|
|
145733
|
-
return parseUrlEnv("PUBLIC_MCP_URL", "http://localhost:3001/mcp");
|
|
145734
|
-
}
|
|
145735
|
-
function publicAuthorizationServerUrl() {
|
|
145736
|
-
return parseUrlEnv("PUBLIC_BACKEND_URL", "http://localhost:3000");
|
|
145737
|
-
}
|
|
145738
|
-
function privateMcpUrl() {
|
|
145739
|
-
return parseUrlEnv("PRIVATE_MCP_URL", "http://localhost:3001/mcp");
|
|
145740
|
-
}
|
|
145741
|
-
function privateBackendUrl() {
|
|
145742
|
-
return parseUrlEnv("PRIVATE_BACKEND_URL", "http://localhost:3000");
|
|
145743
|
-
}
|
|
145744
|
-
function natsServers() {
|
|
145745
|
-
return parseUrlEnv("NATS_SERVERS", "localhost:4222");
|
|
145746
|
-
}
|
|
145747
|
-
|
|
145748
145747
|
// src/constants.ts
|
|
145749
145748
|
var MAX_ACTIVATION_RETRIES = 3;
|
|
145750
145749
|
var ACTIVATION_COOLDOWN_MS = 6e4;
|