mnfst-publish 0.1.14 → 0.1.15

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/README.md CHANGED
@@ -15,5 +15,5 @@ project, zips it gitignore-aware, uploads it, and prints the live URL.
15
15
  Flags: `--staging` / `--production` (default), `--no-render`, `--promote`,
16
16
  `--source render|spa` (auto-detected), `--key <key>`, `--mcp <url>`.
17
17
 
18
- Zero dependencies, cross-platform (pure-Node zip). `.env`, `.env.*`, and
19
- `.claude/` are never uploaded.
18
+ Zero dependencies, cross-platform (pure-Node zip). `.env`, `.env.*`, `.claude/`,
19
+ keys and credential files are never uploaded.
@@ -191,15 +191,20 @@ async function callTool(url, key, name, args) {
191
191
 
192
192
  // Never ship local config or secrets — matched at ANY depth (by path segment /
193
193
  // basename), not just the project root. A nested `api/.env` or `sub/.claude/…`
194
- // must be excluded too.
194
+ // must be excluded too. Mirrors the server's ingest drop list.
195
195
  const EXCLUDED_DIRS = new Set(['.git', 'node_modules', '.claude']);
196
+ const SECRET_DIRS = new Set(['.ssh', '.aws', '.wrangler']);
197
+ const SECRET_FILES = new Set([
198
+ '.npmrc', '.yarnrc', '.yarnrc.yml', '.pypirc', '.netrc', '_netrc', '.git-credentials', '.htpasswd',
199
+ '.dev.vars', 'id_rsa', 'id_dsa', 'id_ecdsa', 'id_ed25519', '.ds_store',
200
+ ]);
196
201
  export function isExcludedPath(rel) {
197
- const parts = rel.split('/');
198
- if (parts.some((p) => EXCLUDED_DIRS.has(p))) return true;
202
+ const parts = rel.toLowerCase().split('/');
203
+ if (parts.some((p) => EXCLUDED_DIRS.has(p) || SECRET_DIRS.has(p))) return true;
199
204
  const base = parts[parts.length - 1];
200
205
  if (base === '.env' || base.startsWith('.env.')) return true; // .env, .env.local, .env.prod …
201
- if (base === '.npmrc' || base === '.dev.vars' || base === 'id_rsa' || base === '.DS_Store') return true;
202
- if (/\.(pem|key|p12|pfx)$/i.test(base)) return true;
206
+ if (SECRET_FILES.has(base) || base.startsWith('.dev.vars.') || base.startsWith('env.local.')) return true;
207
+ if (/\.(pem|key|p12|pfx|jks|keystore)$/i.test(base)) return true;
203
208
  return false;
204
209
  }
205
210
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mnfst-publish",
3
- "version": "0.1.14",
3
+ "version": "0.1.15",
4
4
  "description": "One-command managed publishing for Manifest projects — render, zip, upload, live URL.",
5
5
  "type": "module",
6
6
  "bin": {