techprufer-mcp 0.2.0 → 0.2.1

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.
Files changed (2) hide show
  1. package/dist/cli.js +10 -0
  2. package/package.json +1 -1
package/dist/cli.js CHANGED
@@ -14,7 +14,17 @@ function parseFlagValue(args, name) {
14
14
  function hasFlag(args, name) {
15
15
  return args.includes(name);
16
16
  }
17
+ function assertSupportedNode() {
18
+ const major = Number.parseInt(process.versions.node.split('.')[0] ?? '', 10);
19
+ if (Number.isFinite(major) && major >= 18)
20
+ return;
21
+ console.error(`techprufer-mcp requires Node.js 18+ (got v${process.versions.node}).\n` +
22
+ `Headers/fetch are not available on older Node — upgrade Node, then retry:\n` +
23
+ ` npx techprufer-mcp@latest login`);
24
+ process.exit(1);
25
+ }
17
26
  async function main() {
27
+ assertSupportedNode();
18
28
  const args = process.argv.slice(2);
19
29
  const cmd = args[0];
20
30
  if (cmd === 'login') {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "techprufer-mcp",
3
- "version": "0.2.0",
3
+ "version": "0.2.1",
4
4
  "description": "TechPrufer MCP — tailor resumes and build profiles from your AI tool",
5
5
  "homepage": "https://techprufer.com",
6
6
  "type": "module",