@nerviq/cli 1.2.2 → 1.2.5

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.
@@ -15,6 +15,9 @@ const PLATFORM_SEMANTICS = {
15
15
  gemini: { configFile: 'GEMINI.md', format: 'markdown', instructionStyle: 'structured' },
16
16
  copilot: { configFile: '.github/copilot-instructions.md', format: 'markdown', instructionStyle: 'concise' },
17
17
  cursor: { configFile: '.cursor/rules', format: 'mdc', instructionStyle: 'rule-based' },
18
+ windsurf: { configFile: '.windsurf/rules', format: 'markdown', instructionStyle: 'rule-based' },
19
+ aider: { configFile: '.aider.conf.yml', format: 'yaml', instructionStyle: 'convention-based' },
20
+ opencode: { configFile: 'opencode.json', format: 'jsonc', instructionStyle: 'directive' },
18
21
  };
19
22
 
20
23
  const TRANSLATION_MAP = {
@@ -24,13 +27,19 @@ const TRANSLATION_MAP = {
24
27
  gemini: (rec) => `Add to GEMINI.md: verification command \`${rec.command}\``,
25
28
  copilot: (rec) => `Document in copilot-instructions.md: always run \`${rec.command}\` before completing`,
26
29
  cursor: (rec) => `Add rule: "Always run \`${rec.command}\` before completing tasks"`,
30
+ windsurf: (rec) => `Add a .windsurf/rules verification rule that runs \`${rec.command}\` before task completion`,
31
+ aider: (rec) => `Document in CONVENTIONS.md or .aider.conf.yml workflow notes: run \`${rec.command}\` before final response`,
32
+ opencode: (rec) => `Add to AGENTS.md or opencode.json workflow guidance: run \`${rec.command}\` before completing`,
27
33
  },
28
34
  'architecture-doc': {
29
- claude: (rec) => `Add Mermaid architecture diagram to CLAUDE.md`,
30
- codex: (rec) => `Add architecture overview to AGENTS.md`,
31
- gemini: (rec) => `Add architecture context to GEMINI.md`,
32
- copilot: (rec) => `Add architecture reference in copilot-instructions.md`,
33
- cursor: (rec) => `Add architecture context rule in .cursor/rules`,
35
+ claude: () => `Add Mermaid architecture diagram to CLAUDE.md`,
36
+ codex: () => `Add architecture overview to AGENTS.md`,
37
+ gemini: () => `Add architecture context to GEMINI.md`,
38
+ copilot: () => `Add architecture reference in copilot-instructions.md`,
39
+ cursor: () => `Add architecture context rule in .cursor/rules`,
40
+ windsurf: () => `Add architecture guidance to a .windsurf/rules/*.md file or shared workflow`,
41
+ aider: () => `Add architecture overview to CONVENTIONS.md for Aider sessions`,
42
+ opencode: () => `Add architecture context to AGENTS.md and reference it from opencode.json`,
34
43
  },
35
44
  'permission-rule': {
36
45
  claude: (rec) => `Configure in settings.json permissions: ${rec.description}`,
@@ -38,6 +47,9 @@ const TRANSLATION_MAP = {
38
47
  gemini: (rec) => `Configure Gemini sandbox settings: ${rec.description}`,
39
48
  copilot: (rec) => `Note in instructions: ${rec.description}`,
40
49
  cursor: (rec) => `Add safety rule: ${rec.description}`,
50
+ windsurf: (rec) => `Translate into .cascadeignore, MCP whitelist, or rule guidance: ${rec.description}`,
51
+ aider: (rec) => `Translate into git workflow guardrails or config defaults: ${rec.description}`,
52
+ opencode: (rec) => `Encode in opencode.json permissions: ${rec.description}`,
41
53
  },
42
54
  'hook': {
43
55
  claude: (rec) => `Add hook in settings.json: ${rec.description}`,
@@ -45,6 +57,9 @@ const TRANSLATION_MAP = {
45
57
  gemini: (rec) => `Add automated check: ${rec.description}`,
46
58
  copilot: (rec) => `Add workflow step: ${rec.description}`,
47
59
  cursor: (rec) => `Add background task rule: ${rec.description}`,
60
+ windsurf: (rec) => `Implement as a workflow, Steps sequence, or auto rule: ${rec.description}`,
61
+ aider: (rec) => `Implement via git hooks, auto-test, or documented Aider workflow: ${rec.description}`,
62
+ opencode: (rec) => `Implement via plugin, workflow, or task automation: ${rec.description}`,
48
63
  },
49
64
  };
50
65
 
@@ -5,13 +5,7 @@
5
5
  * project history, and active platform availability.
6
6
  */
7
7
 
8
- const PLATFORM_CAPABILITIES = {
9
- claude: { reasoning: 5, refactoring: 5, debugging: 5, CI: 2, IDE: 2, UI: 1, async: 3, review: 5, architecture: 5 },
10
- codex: { reasoning: 4, CI: 5, cloudTasks: 5, IDE: 3, async: 5, UI: 2, refactoring: 4, debugging: 3, review: 4 },
11
- gemini: { reasoning: 4, context: 5, sandbox: 5, CI: 3, IDE: 3, UI: 2, refactoring: 3, debugging: 3, async: 4 },
12
- copilot: { inline: 5, cloudAgent: 4, IDE: 4, CI: 4, reasoning: 3, UI: 3, refactoring: 3, review: 3, debugging: 3 },
13
- cursor: { IDE: 5, UI: 5, background: 4, automation: 4, reasoning: 3, refactoring: 4, inline: 4, debugging: 4 },
14
- };
8
+ const { PLATFORM_CAPABILITIES } = require('../shared/capabilities');
15
9
 
16
10
  const TASK_TYPE_PATTERNS = [
17
11
  { type: 'bugfix', patterns: ['bug', 'fix', 'error', 'crash', 'broken', 'issue', 'regression', 'failing'] },
@@ -27,16 +21,16 @@ const TASK_TYPE_PATTERNS = [
27
21
  ];
28
22
 
29
23
  const TASK_CAPABILITY_MAP = {
30
- bugfix: ['debugging', 'reasoning', 'IDE'],
31
- refactor: ['refactoring', 'reasoning', 'IDE'],
24
+ bugfix: ['debugging', 'reasoning', 'ide'],
25
+ refactor: ['refactoring', 'reasoning', 'ide'],
32
26
  review: ['review', 'reasoning', 'context'],
33
- UI: ['UI', 'IDE', 'inline'],
34
- CI: ['CI', 'cloudTasks', 'async'],
35
- infrastructure: ['CI', 'cloudTasks', 'sandbox'],
36
- testing: ['debugging', 'CI', 'sandbox'],
27
+ UI: ['ui', 'ide', 'inline'],
28
+ CI: ['ci', 'cloudTasks', 'async'],
29
+ infrastructure: ['ci', 'cloudTasks', 'sandbox'],
30
+ testing: ['debugging', 'ci', 'sandbox'],
37
31
  architecture: ['architecture', 'reasoning', 'context'],
38
32
  documentation: ['reasoning', 'context', 'inline'],
39
- feature: ['reasoning', 'IDE', 'refactoring'],
33
+ feature: ['reasoning', 'ide', 'refactoring'],
40
34
  };
41
35
 
42
36
  /**