mnfst-publish 0.1.13 → 0.1.14
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/manifest.publish.mjs +7 -3
- package/package.json +2 -2
package/manifest.publish.mjs
CHANGED
|
@@ -12,7 +12,7 @@ import { deflateRawSync } from 'node:zlib';
|
|
|
12
12
|
import { readFileSync, existsSync, statSync, readdirSync } from 'node:fs';
|
|
13
13
|
import { join, dirname, relative, sep } from 'node:path';
|
|
14
14
|
|
|
15
|
-
const DEFAULT_MCP = 'https://
|
|
15
|
+
const DEFAULT_MCP = 'https://mcp.manifestx.dev/mcp';
|
|
16
16
|
|
|
17
17
|
function log(msg) {
|
|
18
18
|
process.stdout.write(msg + '\n');
|
|
@@ -708,8 +708,12 @@ export async function main() {
|
|
|
708
708
|
try {
|
|
709
709
|
const u = new URL(uploadUrl);
|
|
710
710
|
const mcpHost = new URL(url).host;
|
|
711
|
-
|
|
712
|
-
|
|
711
|
+
// Same host as the configured MCP, or the canonical first-party host — a
|
|
712
|
+
// project whose .mcp.json still points at the legacy workers.dev URL gets
|
|
713
|
+
// upload links minted on mcp.manifestx.dev during the domain migration.
|
|
714
|
+
const canonical = new URL(DEFAULT_MCP).host;
|
|
715
|
+
if (u.protocol !== 'https:' || (u.host !== mcpHost && u.host !== canonical)) {
|
|
716
|
+
fail(`refusing to upload to an unexpected endpoint (${u.protocol}//${u.host}); expected https://${mcpHost} or https://${canonical}.`);
|
|
713
717
|
}
|
|
714
718
|
} catch {
|
|
715
719
|
fail('the upload URL returned by the server was malformed.');
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "mnfst-publish",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.14",
|
|
4
4
|
"description": "One-command managed publishing for Manifest projects — render, zip, upload, live URL.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
"license": "MIT",
|
|
31
31
|
"repository": {
|
|
32
32
|
"type": "git",
|
|
33
|
-
"url": "git+https://github.com/
|
|
33
|
+
"url": "git+https://github.com/Manifest-X/Manifest.git",
|
|
34
34
|
"directory": "packages/publish"
|
|
35
35
|
}
|
|
36
36
|
}
|