@njeybe/nativ 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/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Changelog
2
2
 
3
+ ## 2.0.2
4
+
5
+ - **`nativ doctor` no longer reports a failure on a brand-new project.** Right after `nativ init`, Claude Code lists the project's `nativ` MCP server as "Pending approval" until you approve it, which is the expected first state. Doctor showed it as a red failure and exited 1. It is now a warning that tells you to open `claude` in the folder and approve the server; a server that genuinely fails to connect is still a failure.
6
+
3
7
  ## 2.0.1
4
8
 
5
9
  Documentation and package metadata only; no behaviour changes.
@@ -38,6 +38,13 @@ export function analyzeMcpList(text) {
38
38
  else if (/Connected/.test(line)) {
39
39
  checks.push({ id: 'mcp-connected', status: 'ok', message: `Claude Code connects to the nativ MCP server (${line.replace(/\s+-\s+.*$/, '').trim()})` });
40
40
  }
41
+ else if (/Pending approval/i.test(line)) {
42
+ // A new project's .mcp.json is not started until the user approves it. That is the expected first state.
43
+ checks.push({ id: 'mcp-pending', status: 'warn', message: 'The nativ MCP server is waiting for your approval. Open `claude` in this folder and approve it; nothing is wrong with the setup.' });
44
+ }
45
+ else if (/Needs authentication/i.test(line)) {
46
+ checks.push({ id: 'mcp-auth', status: 'warn', message: `Claude Code says the nativ MCP server needs authentication: ${line.trim()}` });
47
+ }
41
48
  else {
42
49
  checks.push({ id: 'mcp-connected', status: 'fail', message: `Claude Code lists the nativ MCP server but it is not connected: ${line.trim()}` });
43
50
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@njeybe/nativ",
3
- "version": "2.0.1",
3
+ "version": "2.0.2",
4
4
  "description": "Role-based multi-agent workflow harness: Claude Code by default, other AI agents pluggable",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "nativ",
3
3
  "displayName": "nativ",
4
- "version": "2.0.1",
4
+ "version": "2.0.2",
5
5
  "description": "Role-based multi-agent workflow for Claude Code: architect, worker and verifier agents, task-scope enforcement, and the nativ MCP server.",
6
6
  "author": {
7
7
  "name": "JB Natividad"