ai-exodus 2.0.1 → 2.0.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/package.json +1 -1
- package/src/deploy.js +8 -0
package/package.json
CHANGED
package/src/deploy.js
CHANGED
|
@@ -133,6 +133,14 @@ MCP_SECRET = "${mcpSecret}"
|
|
|
133
133
|
const urlMatch = deployOutput.match(/(https:\/\/[^\s]+\.workers\.dev)/);
|
|
134
134
|
const portalUrl = urlMatch ? urlMatch[1] : `https://${deployName}.workers.dev`;
|
|
135
135
|
|
|
136
|
+
// Save MCP secret to portal settings (so the guide tab can show it)
|
|
137
|
+
try {
|
|
138
|
+
// Need to set up password first if this is fresh deploy, so just store via D1 directly
|
|
139
|
+
await runCommand('npx', ['wrangler', 'd1', 'execute', dbName, '--remote', '--command',
|
|
140
|
+
`INSERT OR REPLACE INTO settings (key, value) VALUES ('mcp_secret', '${mcpSecret}');`],
|
|
141
|
+
{ verbose, cwd: deployDir });
|
|
142
|
+
} catch { /* non-critical */ }
|
|
143
|
+
|
|
136
144
|
// Save config
|
|
137
145
|
config.deployName = deployName;
|
|
138
146
|
config.mcpSecret = mcpSecret;
|