pumuki-ast-hooks 6.1.9 → 6.1.10

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pumuki-ast-hooks",
3
- "version": "6.1.9",
3
+ "version": "6.1.10",
4
4
  "description": "Enterprise-grade AST Intelligence System with multi-platform support (iOS, Android, Backend, Frontend) and Feature-First + DDD + Clean Architecture enforcement. Includes dynamic violations API for intelligent querying.",
5
5
  "main": "index.js",
6
6
  "bin": {
@@ -49,8 +49,14 @@ describe('MCP installer (project-scoped)', () => {
49
49
  expect(cursorServers.some(id => id.startsWith('ast-intelligence-automation-'))).toBe(true);
50
50
  expect(cursorServers.some(id => id.startsWith('ai-evidence-watcher-'))).toBe(true);
51
51
 
52
+ expect(cursorServers).toContain('ast-intelligence-automation-hooks');
53
+ expect(cursorServers).toContain('ai-evidence-watcher-hooks');
54
+
52
55
  expect(windsurfServers.some(id => id.startsWith('ast-intelligence-automation-'))).toBe(true);
53
56
  expect(windsurfServers.some(id => id.startsWith('ai-evidence-watcher-'))).toBe(true);
57
+
58
+ expect(windsurfServers).toContain('ast-intelligence-automation-hooks');
59
+ expect(windsurfServers).toContain('ai-evidence-watcher-hooks');
54
60
  });
55
61
 
56
62
  it('should be idempotent and not duplicate servers across runs', () => {
@@ -65,10 +71,13 @@ describe('MCP installer (project-scoped)', () => {
65
71
  const cursor = JSON.parse(fs.readFileSync(cursorPath, 'utf8'));
66
72
 
67
73
  const ids = Object.keys(cursor.mcpServers || {});
68
- const automation = ids.filter(id => id.startsWith('ast-intelligence-automation-'));
69
- const evidence = ids.filter(id => id.startsWith('ai-evidence-watcher-'));
74
+ const automation = ids.filter(id => id.startsWith('ast-intelligence-automation-') && id !== 'ast-intelligence-automation-hooks');
75
+ const evidence = ids.filter(id => id.startsWith('ai-evidence-watcher-') && id !== 'ai-evidence-watcher-hooks');
70
76
 
71
77
  expect(automation.length).toBe(1);
72
78
  expect(evidence.length).toBe(1);
79
+
80
+ expect(ids.filter(id => id === 'ast-intelligence-automation-hooks').length).toBe(1);
81
+ expect(ids.filter(id => id === 'ai-evidence-watcher-hooks').length).toBe(1);
73
82
  });
74
83
  });
@@ -27,6 +27,9 @@ class McpServerConfigBuilder {
27
27
  const evidenceEntrypoint = this.resolveEvidenceWatcherEntrypoint();
28
28
  const nodePath = this.resolveNodeBinary();
29
29
 
30
+ const stableAutomationAlias = 'ast-intelligence-automation-hooks';
31
+ const stableEvidenceAlias = 'ai-evidence-watcher-hooks';
32
+
30
33
  const mcpConfig = {
31
34
  mcpServers: {
32
35
  [serverId]: {
@@ -46,6 +49,24 @@ class McpServerConfigBuilder {
46
49
  REPO_ROOT: this.targetRoot,
47
50
  MCP_MAC_NOTIFICATIONS: 'true'
48
51
  }
52
+ },
53
+ [stableAutomationAlias]: {
54
+ command: nodePath,
55
+ args: [entrypoint],
56
+ env: {
57
+ REPO_ROOT: this.targetRoot,
58
+ AUTO_COMMIT_ENABLED: 'false',
59
+ AUTO_PUSH_ENABLED: 'false',
60
+ AUTO_PR_ENABLED: 'false'
61
+ }
62
+ },
63
+ [stableEvidenceAlias]: {
64
+ command: nodePath,
65
+ args: [evidenceEntrypoint],
66
+ env: {
67
+ REPO_ROOT: this.targetRoot,
68
+ MCP_MAC_NOTIFICATIONS: 'true'
69
+ }
49
70
  }
50
71
  }
51
72
  };