@opengeni/api-router 0.11.1 → 0.11.2
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/app.js
CHANGED
|
@@ -4736,6 +4736,7 @@ var ASSET_NAME = /^[A-Za-z0-9][A-Za-z0-9._-]*$/;
|
|
|
4736
4736
|
var VERSION_SEG = /^v[A-Za-z0-9][A-Za-z0-9._-]*$/;
|
|
4737
4737
|
function registerInstallRoutes(app, deps) {
|
|
4738
4738
|
const releasesBase = deps.settings.agentReleasesBaseUrl.replace(/\/+$/, "");
|
|
4739
|
+
const stableAgentTag = `agent-v${deps.settings.agentStableVersion}`;
|
|
4739
4740
|
for (const [path, { file, contentType }] of Object.entries(TEXT_ASSETS)) {
|
|
4740
4741
|
app.get(path, async (c) => {
|
|
4741
4742
|
const body = rewriteDefaultBaseUrl(file, await loadAsset(file), deps.settings.publicBaseUrl);
|
|
@@ -4769,7 +4770,7 @@ function registerInstallRoutes(app, deps) {
|
|
|
4769
4770
|
if (!ASSET_NAME.test(asset)) {
|
|
4770
4771
|
throw new HTTPException2(400, { message: "invalid asset name" });
|
|
4771
4772
|
}
|
|
4772
|
-
return serveAsset(asset, `${releasesBase}/download
|
|
4773
|
+
return serveAsset(asset, `${releasesBase}/download/${stableAgentTag}/${asset}`);
|
|
4773
4774
|
});
|
|
4774
4775
|
app.get("/agent/:versionSeg/:asset", async (c) => {
|
|
4775
4776
|
const versionSeg = c.req.param("versionSeg");
|
|
@@ -15456,4 +15457,4 @@ export {
|
|
|
15456
15457
|
withDefaultEnabledCapabilityMcpTools,
|
|
15457
15458
|
workflowIdForSession2 as workflowIdForSession
|
|
15458
15459
|
};
|
|
15459
|
-
//# sourceMappingURL=chunk-
|
|
15460
|
+
//# sourceMappingURL=chunk-BFWSDESE.js.map
|