agent-enderun 0.8.7 → 0.9.0

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 (106) hide show
  1. package/{ENDERUN.md → .enderun/ENDERUN.md} +5 -3
  2. package/.enderun/PROJECT_MEMORY.md +12 -53
  3. package/.enderun/STATUS.md +7 -8
  4. package/.enderun/agents/agent_army_schema.json +28 -6
  5. package/.enderun/agents/analyst.md +9 -18
  6. package/.enderun/agents/backend.md +22 -52
  7. package/.enderun/agents/devops.md +9 -19
  8. package/.enderun/agents/explorer.md +7 -16
  9. package/.enderun/agents/frontend.md +82 -84
  10. package/.enderun/agents/git.md +7 -16
  11. package/.enderun/agents/manager.md +34 -40
  12. package/.enderun/agents/mobile.md +7 -16
  13. package/.enderun/agents/native.md +7 -16
  14. package/.enderun/agents/orchestrator.md +16 -25
  15. package/.enderun/agents/qa.md +12 -24
  16. package/.enderun/agents/schema/agent-lifecycle-schema.json +29 -8
  17. package/.enderun/agents/security.md +9 -18
  18. package/.enderun/config.json +1 -1
  19. package/.enderun/knowledge/SHIM_TEMPLATE.md +25 -0
  20. package/.enderun/knowledge/eslint-standards.md +63 -0
  21. package/.enderun/knowledge/hermes_protocol.md +1 -1
  22. package/.enderun/knowledge/token_economy_and_memory.md +129 -0
  23. package/.enderun/mcp_config.json +9 -0
  24. package/.enderun/memory-graph/agent-contexts/analyst.json +1 -1
  25. package/.enderun/memory-graph/agent-contexts/backend.json +1 -1
  26. package/.enderun/memory-graph/agent-contexts/devops.json +1 -1
  27. package/.enderun/memory-graph/agent-contexts/explorer.json +1 -1
  28. package/.enderun/memory-graph/agent-contexts/frontend.json +1 -1
  29. package/.enderun/memory-graph/agent-contexts/git.json +1 -1
  30. package/.enderun/memory-graph/agent-contexts/manager.json +1 -1
  31. package/.enderun/memory-graph/agent-contexts/mobile.json +1 -1
  32. package/.enderun/memory-graph/agent-contexts/native.json +1 -1
  33. package/.enderun/memory-graph/agent-contexts/orchestrator.json +1 -1
  34. package/.enderun/memory-graph/agent-contexts/qa.json +1 -1
  35. package/.enderun/memory-graph/agent-contexts/security.json +1 -1
  36. package/.enderun/memory-graph/graph.json +123 -16
  37. package/.enderun/memory-graph/shared-facts.json +26 -32
  38. package/README.md +93 -295
  39. package/agent.md +25 -0
  40. package/bin/cli.js +9 -9
  41. package/bin/update-contract.js +34 -37
  42. package/bin/validate-agent-army.js +38 -13
  43. package/claude.md +14 -8
  44. package/docs/README.md +35 -16
  45. package/docs/roadmap.md +1 -1
  46. package/docs/tech-stack.md +30 -0
  47. package/eslint.config.js +68 -0
  48. package/framework-mcp/dist/index.js +184 -24
  49. package/framework-mcp/package.json +6 -33
  50. package/framework-mcp/tsconfig.json +3 -6
  51. package/gemini.md +12 -6
  52. package/grok.md +25 -0
  53. package/mcp.json +2 -2
  54. package/package.json +12 -6
  55. package/panda.config.ts +86 -86
  56. package/tsconfig.json +9 -0
  57. package/.enderun/claude.md +0 -19
  58. package/.enderun/cursor.md +0 -19
  59. package/.enderun/gemini.md +0 -19
  60. package/.enderun/logs/analyst.json +0 -1
  61. package/.enderun/logs/backend.json +0 -1
  62. package/.enderun/logs/devops.json +0 -1
  63. package/.enderun/logs/explorer.json +0 -1
  64. package/.enderun/logs/frontend.json +0 -1
  65. package/.enderun/logs/git.json +0 -1
  66. package/.enderun/logs/manager.json +0 -1
  67. package/.enderun/logs/mobile.json +0 -1
  68. package/.enderun/logs/native.json +0 -1
  69. package/.enderun/logs/orchestrator.json +0 -1
  70. package/.enderun/logs/qa.json +0 -1
  71. package/.enderun/logs/security.json +0 -1
  72. package/.env.example +0 -10
  73. package/cursor.md +0 -19
  74. package/framework-mcp/README.md +0 -55
  75. package/framework-mcp/dist/schemas.js +0 -118
  76. package/framework-mcp/dist/tools/codebase.js +0 -294
  77. package/framework-mcp/dist/tools/contract.js +0 -197
  78. package/framework-mcp/dist/tools/framework.js +0 -196
  79. package/framework-mcp/dist/tools/git.js +0 -51
  80. package/framework-mcp/dist/tools/governance.js +0 -696
  81. package/framework-mcp/dist/tools/index.js +0 -47
  82. package/framework-mcp/dist/tools/knowledge.js +0 -133
  83. package/framework-mcp/dist/tools/memory.js +0 -200
  84. package/framework-mcp/dist/tools/messages.js +0 -193
  85. package/framework-mcp/dist/tools/monitoring.js +0 -294
  86. package/framework-mcp/dist/tools/orchestration.js +0 -368
  87. package/framework-mcp/dist/tools/pipeline.js +0 -267
  88. package/framework-mcp/dist/tools/security.js +0 -137
  89. package/framework-mcp/dist/utils.js +0 -121
  90. package/framework-mcp/src/index.ts +0 -49
  91. package/framework-mcp/src/schemas.ts +0 -106
  92. package/framework-mcp/src/tools/codebase.ts +0 -284
  93. package/framework-mcp/src/tools/contract.ts +0 -221
  94. package/framework-mcp/src/tools/framework.ts +0 -192
  95. package/framework-mcp/src/tools/git.ts +0 -42
  96. package/framework-mcp/src/tools/governance.ts +0 -891
  97. package/framework-mcp/src/tools/index.ts +0 -50
  98. package/framework-mcp/src/tools/knowledge.ts +0 -141
  99. package/framework-mcp/src/tools/memory.ts +0 -207
  100. package/framework-mcp/src/tools/messages.ts +0 -213
  101. package/framework-mcp/src/tools/monitoring.ts +0 -351
  102. package/framework-mcp/src/tools/orchestration.ts +0 -440
  103. package/framework-mcp/src/tools/pipeline.ts +0 -353
  104. package/framework-mcp/src/tools/security.ts +0 -143
  105. package/framework-mcp/src/utils.ts +0 -130
  106. package/src/cli/index.ts +0 -2188
package/grok.md ADDED
@@ -0,0 +1,25 @@
1
+ # Agent Enderun — Grok / X.ai Adapter
2
+
3
+ This is the primary entry point when using Agent Enderun within the Grok / X.ai ecosystem.
4
+
5
+ The framework operates under a unified governance structure located in the `.enderun/` directory.
6
+
7
+ ### Primary Constitution
8
+ All governance rules, agent checklists, and project memory live here:
9
+
10
+ 👉 **[.enderun/ENDERUN.md](.enderun/ENDERUN.md)**
11
+
12
+ ### 🤖 Agent Directive
13
+ You are operating under the Agent Enderun governance framework.
14
+
15
+ At the **start of every session**, before any work:
16
+ 1. **Restore Memory:** Read `.enderun/PROJECT_MEMORY.md` to restore state, active Trace ID, and history.
17
+ 2. **Load Identity:** Read the relevant agent definition under `.enderun/agents/{agent}.md` (default to `@manager`).
18
+ 3. **Internalize Knowledge:** Reference the `.enderun/knowledge/` base for architectural and coding standards.
19
+
20
+ ### 🛡️ Core Mandates
21
+ - **Surgical Edits:** Use `replace_text` or `patch_file` via MCP for precise changes.
22
+ - **Traceability:** Every action must inherit the active Trace ID from memory.
23
+ - **Contract First:** No implementation without verified types.
24
+
25
+ All paths and references inside the project must comply with the Supreme Constitution located at `.enderun/ENDERUN.md`.
package/mcp.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "mcpServers": {
3
3
  "agent-enderun": {
4
- "command": "npx",
5
- "args": ["agent-enderun", "mcp"],
4
+ "command": "node",
5
+ "args": ["framework-mcp/dist/index.js"],
6
6
  "env": {}
7
7
  }
8
8
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agent-enderun",
3
- "version": "0.8.7",
3
+ "version": "0.9.0",
4
4
  "description": "The Supreme AI Governance & Orchestration Framework for Enterprise Development",
5
5
  "author": "Yusuf BEKAR",
6
6
  "license": "MIT",
@@ -32,21 +32,21 @@
32
32
  },
33
33
  "files": [
34
34
  "bin",
35
- "src",
35
+ "dist",
36
36
  "framework-mcp/dist",
37
- "framework-mcp/src",
38
37
  "framework-mcp/package.json",
39
38
  ".enderun",
40
39
  "ENDERUN.md",
41
40
  "README.md",
42
41
  "LICENSE",
43
42
  "mcp.json",
44
- ".env.example",
45
43
  "tsconfig.json",
44
+ "eslint.config.js",
46
45
  "panda.config.ts",
47
46
  "gemini.md",
48
47
  "claude.md",
49
- "cursor.md",
48
+ "grok.md",
49
+ "agent.md",
50
50
  "docs"
51
51
  ],
52
52
  "scripts": {
@@ -57,8 +57,9 @@
57
57
  "enderun:trace": "agent-enderun trace:new",
58
58
  "enderun:verify": "agent-enderun verify-contract",
59
59
  "enderun:check": "agent-enderun check",
60
+ "enderun:lint": "eslint .",
60
61
  "lint": "eslint .",
61
- "clean": "rm -rf node_modules packages/*/node_modules apps/*/node_modules packages/*/dist apps/*/dist"
62
+ "clean": "rm -rf node_modules apps/*/node_modules framework-mcp/node_modules apps/*/dist framework-mcp/dist"
62
63
  },
63
64
  "publishConfig": {
64
65
  "access": "public"
@@ -70,11 +71,16 @@
70
71
  "@types/node": "^25.9.1",
71
72
  "concurrently": "^9.2.1",
72
73
  "eslint": "^10.4.0",
74
+ "globals": "^17.6.0",
73
75
  "ts-morph": "^28.0.0",
74
76
  "tsx": "^4.22.3",
75
77
  "typescript": "^6.0.3",
76
78
  "typescript-eslint": "^8.60.0",
77
79
  "vitest": "^4.1.7",
78
80
  "zod": "^3.24.2"
81
+ },
82
+ "enderun": {
83
+ "version": "0.9.0",
84
+ "initializedAt": "2026-05-29T13:21:18.516Z"
79
85
  }
80
86
  }
package/panda.config.ts CHANGED
@@ -1,100 +1,100 @@
1
1
  import { defineConfig } from "@pandacss/dev";
2
2
 
3
3
  export default defineConfig({
4
- // Whether to use css reset
5
- preflight: true,
4
+ // Whether to use css reset
5
+ preflight: true,
6
6
 
7
- // Where to look for your css declarations
8
- include: [
9
- "./src/**/*.{js,jsx,ts,tsx}",
10
- "./pages/**/*.{js,jsx,ts,tsx}",
11
- "./apps/**/*.{js,jsx,ts,tsx}",
12
- // Project-internal UI components only (no packages/ui by default)
13
- "./apps/**/src/components/**/*.{ts,tsx}",
14
- "./apps/**/src/ui/**/*.{ts,tsx}",
15
- ],
7
+ // Where to look for your css declarations
8
+ include: [
9
+ "./src/**/*.{js,jsx,ts,tsx}",
10
+ "./pages/**/*.{js,jsx,ts,tsx}",
11
+ "./apps/**/*.{js,jsx,ts,tsx}",
12
+ // Project-internal UI components only (no packages/ui by default)
13
+ "./apps/**/src/components/**/*.{ts,tsx}",
14
+ "./apps/**/src/ui/**/*.{ts,tsx}",
15
+ ],
16
16
 
17
- // Files to exclude
18
- exclude: [],
17
+ // Files to exclude
18
+ exclude: [],
19
19
 
20
- // Conditions for Dark Mode and other states
21
- conditions: {
22
- extend: {
23
- dark: ".dark &, [data-theme='dark'] &",
24
- light: ".light &, [data-theme='light'] &",
20
+ // Conditions for Dark Mode and other states
21
+ conditions: {
22
+ extend: {
23
+ dark: ".dark &, [data-theme='dark'] &",
24
+ light: ".light &, [data-theme='light'] &",
25
+ },
25
26
  },
26
- },
27
27
 
28
- // Theme Customization
29
- theme: {
30
- extend: {
31
- // Base Tokens (Absolute Values)
32
- tokens: {
33
- colors: {
34
- brand: {
35
- 50: { value: "#eef2ff" },
36
- 100: { value: "#e0e7ff" },
37
- 200: { value: "#c7d2fe" },
38
- 300: { value: "#a5b4fc" },
39
- 400: { value: "#818cf8" },
40
- 500: { value: "#6366f1" },
41
- 600: { value: "#4f46e5" },
42
- 700: { value: "#4338ca" },
43
- 800: { value: "#3730a3" },
44
- 900: { value: "#312e81" },
45
- 950: { value: "#1e1b4b" },
46
- },
47
- },
48
- spacing: {
49
- container: { value: "1200px" },
50
- },
51
- },
52
- // Semantic Tokens (Theme Aware)
53
- semanticTokens: {
54
- colors: {
55
- bg: {
56
- canvas: {
57
- value: { base: "{colors.white}", _dark: "{colors.brand.950}" },
58
- },
59
- surface: {
60
- value: { base: "{colors.gray.50}", _dark: "{colors.brand.900}" },
61
- },
62
- muted: {
63
- value: { base: "{colors.gray.100}", _dark: "{colors.brand.800}" },
64
- },
65
- },
66
- text: {
67
- default: {
68
- value: { base: "{colors.gray.900}", _dark: "{colors.white}" },
69
- },
70
- muted: {
71
- value: { base: "{colors.gray.500}", _dark: "{colors.gray.400}" },
72
- },
73
- brand: {
74
- value: { base: "{colors.brand.600}", _dark: "{colors.brand.400}" },
75
- },
76
- },
77
- accent: {
78
- default: {
79
- value: { base: "{colors.brand.500}", _dark: "{colors.brand.500}" },
80
- },
81
- emphasis: {
82
- value: { base: "{colors.brand.600}", _dark: "{colors.brand.400}" },
83
- },
84
- fg: {
85
- value: { base: "{colors.white}", _dark: "{colors.white}" },
28
+ // Theme Customization
29
+ theme: {
30
+ extend: {
31
+ // Base Tokens (Absolute Values)
32
+ tokens: {
33
+ colors: {
34
+ brand: {
35
+ 50: { value: "#eef2ff" },
36
+ 100: { value: "#e0e7ff" },
37
+ 200: { value: "#c7d2fe" },
38
+ 300: { value: "#a5b4fc" },
39
+ 400: { value: "#818cf8" },
40
+ 500: { value: "#6366f1" },
41
+ 600: { value: "#4f46e5" },
42
+ 700: { value: "#4338ca" },
43
+ 800: { value: "#3730a3" },
44
+ 900: { value: "#312e81" },
45
+ 950: { value: "#1e1b4b" },
46
+ },
47
+ },
48
+ spacing: {
49
+ container: { value: "1200px" },
50
+ },
86
51
  },
87
- },
88
- border: {
89
- default: {
90
- value: { base: "{colors.gray.200}", _dark: "{colors.brand.800}" },
52
+ // Semantic Tokens (Theme Aware)
53
+ semanticTokens: {
54
+ colors: {
55
+ bg: {
56
+ canvas: {
57
+ value: { base: "{colors.white}", _dark: "{colors.brand.950}" },
58
+ },
59
+ surface: {
60
+ value: { base: "{colors.gray.50}", _dark: "{colors.brand.900}" },
61
+ },
62
+ muted: {
63
+ value: { base: "{colors.gray.100}", _dark: "{colors.brand.800}" },
64
+ },
65
+ },
66
+ text: {
67
+ default: {
68
+ value: { base: "{colors.gray.900}", _dark: "{colors.white}" },
69
+ },
70
+ muted: {
71
+ value: { base: "{colors.gray.500}", _dark: "{colors.gray.400}" },
72
+ },
73
+ brand: {
74
+ value: { base: "{colors.brand.600}", _dark: "{colors.brand.400}" },
75
+ },
76
+ },
77
+ accent: {
78
+ default: {
79
+ value: { base: "{colors.brand.500}", _dark: "{colors.brand.500}" },
80
+ },
81
+ emphasis: {
82
+ value: { base: "{colors.brand.600}", _dark: "{colors.brand.400}" },
83
+ },
84
+ fg: {
85
+ value: { base: "{colors.white}", _dark: "{colors.white}" },
86
+ },
87
+ },
88
+ border: {
89
+ default: {
90
+ value: { base: "{colors.gray.200}", _dark: "{colors.brand.800}" },
91
+ },
92
+ },
93
+ },
91
94
  },
92
- },
93
95
  },
94
- },
95
96
  },
96
- },
97
97
 
98
- // The output directory for your css system
99
- outdir: "styled-system",
98
+ // The output directory for your css system
99
+ outdir: "styled-system",
100
100
  });
package/tsconfig.json CHANGED
@@ -12,5 +12,14 @@
12
12
  "forceConsistentCasingInFileNames": true,
13
13
  "outDir": "dist"
14
14
  },
15
+ "include": [
16
+ "src/**/*.ts",
17
+ "tests/**/*.ts",
18
+ "apps/**/*.ts",
19
+ "apps/**/*.tsx",
20
+ "framework-mcp/src/**/*.ts",
21
+ "vitest.config.ts",
22
+ "eslint.config.js"
23
+ ],
15
24
  "exclude": ["node_modules", "dist"]
16
25
  }
@@ -1,19 +0,0 @@
1
- # Agent Enderun — Claude Code CLI Adapter
2
-
3
- This file is the entry point when using Agent Enderun with Claude Code CLI.
4
-
5
- The framework installs into the `.claude/` folder for Claude users.
6
-
7
- ### Primary Constitution
8
- All governance rules, agent checklists, and project memory live here:
9
-
10
- 👉 **[.claude/ENDERUN.md](.claude/ENDERUN.md)**
11
-
12
- ### 🤖 Agent Directive (Claude Code CLI users)
13
- You are operating under the Agent Enderun governance framework.
14
-
15
- At the **start of every session**, before any work:
16
- 1. Read `.claude/PROJECT_MEMORY.md` to restore state, active Trace ID, and history.
17
- 2. Read the relevant agent definition under `.claude/agents/{agent}.md` (especially `@manager`).
18
-
19
- All paths and references inside `.claude/` use the Claude adapter structure. No migration to other CLIs is required.
@@ -1,19 +0,0 @@
1
- # Agent Enderun — Cursor / Codex Adapter
2
-
3
- This file is the entry point when using Agent Enderun with Cursor Composer / Codex CLI.
4
-
5
- The framework installs into the `.cursor/` folder for Cursor users.
6
-
7
- ### Primary Constitution
8
- All governance rules, agent checklists, and project memory live here:
9
-
10
- 👉 **[.cursor/ENDERUN.md](.cursor/ENDERUN.md)**
11
-
12
- ### 🤖 Agent Directive (Cursor users)
13
- You are operating under the Agent Enderun governance framework.
14
-
15
- At the **start of every session**, before any work:
16
- 1. Read `.cursor/PROJECT_MEMORY.md` to restore state, active Trace ID, and history.
17
- 2. Read the relevant agent definition under `.cursor/agents/{agent}.md` (especially `@manager`).
18
-
19
- All paths and references inside `.cursor/` use the Cursor adapter structure. No migration to other CLIs is required.
@@ -1,19 +0,0 @@
1
- # Agent Enderun — Gemini CLI Adapter
2
-
3
- This file is the entry point when using Agent Enderun with Gemini CLI.
4
-
5
- The framework installs into the `.enderun/` folder for Gemini users.
6
-
7
- ### Primary Constitution
8
- All governance rules, agent checklists, and project memory live here:
9
-
10
- 👉 **[.enderun/ENDERUN.md](.enderun/ENDERUN.md)**
11
-
12
- ### 🤖 Agent Directive (Gemini CLI users)
13
- You are operating under the Agent Enderun governance framework.
14
-
15
- At the **start of every session**, before any work:
16
- 1. Read `.enderun/PROJECT_MEMORY.md` to restore state, active Trace ID, and history.
17
- 2. Read the relevant agent definition under `.enderun/agents/{agent}.md` (especially `@manager`).
18
-
19
- All paths and references inside `.enderun/` use the Enderun adapter structure. No migration to other CLIs is required.
@@ -1 +0,0 @@
1
- {"runs":[]}
@@ -1 +0,0 @@
1
- {"runs":[]}
@@ -1 +0,0 @@
1
- {"runs":[]}
@@ -1 +0,0 @@
1
- {"runs":[]}
@@ -1 +0,0 @@
1
- {"runs":[]}
@@ -1 +0,0 @@
1
- {"runs":[]}
@@ -1 +0,0 @@
1
- {"runs":[]}
@@ -1 +0,0 @@
1
- {"runs":[]}
@@ -1 +0,0 @@
1
- {"runs":[]}
@@ -1 +0,0 @@
1
- {"runs":[]}
@@ -1 +0,0 @@
1
- {"runs":[]}
@@ -1 +0,0 @@
1
- {"runs":[]}
package/.env.example DELETED
@@ -1,10 +0,0 @@
1
- # Agent Enderun Configuration
2
- AGENT_ENDERUN_PACKAGE_MANAGER=npm
3
-
4
- # AI API Keys
5
- GEMINI_API_KEY=
6
- ANTHROPIC_API_KEY=
7
- OPENAI_API_KEY=
8
-
9
- # MCP Configuration
10
- MCP_SERVER_PORT=3000
package/cursor.md DELETED
@@ -1,19 +0,0 @@
1
- # Agent Enderun — Cursor / Codex Adapter
2
-
3
- This file is the entry point when using Agent Enderun with Cursor Composer / Codex CLI.
4
-
5
- The framework installs into the `.cursor/` folder for Cursor users.
6
-
7
- ### Primary Constitution
8
- All governance rules, agent checklists, and project memory live here:
9
-
10
- 👉 **[.cursor/ENDERUN.md](.cursor/ENDERUN.md)**
11
-
12
- ### 🤖 Agent Directive (Cursor users)
13
- You are operating under the Agent Enderun governance framework.
14
-
15
- At the **start of every session**, before any work:
16
- 1. Read `.cursor/PROJECT_MEMORY.md` to restore state, active Trace ID, and history.
17
- 2. Read the relevant agent definition under `.cursor/agents/{agent}.md` (especially `@manager`).
18
-
19
- All paths and references inside `.cursor/` use the Cursor adapter structure. No migration to other CLIs is required.
@@ -1,55 +0,0 @@
1
- # AI-Enderun MCP Server (v0.8.3)
2
-
3
- English | [Türkçe](#türkçe)
4
-
5
- The `ai-enderun-mcp` package is the core intelligence engine of the Agent Enderun framework, implementing the Model Context Protocol (MCP).
6
-
7
- ## English
8
-
9
- ### 🛠️ Categorized Tools
10
-
11
- #### 🛡️ Security & Compliance
12
- - `security_audit_scan`: Scans for secrets, raw SQL, and unsafe patterns using AST.
13
- - `analyze_constitution_compliance`: Verifies adherence to `ENDERUN.md` rules.
14
-
15
- #### 🧠 Framework & Memory
16
- - `get_framework_status`: Retrieves active phase and status.
17
- - `update_project_memory`: Atomic updates to project brain sections.
18
- - `bootstrap_legacy_memory`: Auto-generates memory for existing projects.
19
- - `read_project_memory`: Safe read access to the project brain.
20
-
21
- #### 🔍 Codebase Intelligence
22
- - `search_codebase`: Regex-powered semantic search.
23
- - `analyze_dependencies`: Deep import tracking and dependency mapping.
24
- - `analyze_codebase_intelligence`: Detects complexity spikes and dead code.
25
- - `generate_dependency_graph`: Creates Mermaid architecture maps.
26
-
27
- #### 📜 Contract Management
28
- - `verify_api_contract`: Checks shared-types integrity via hashing.
29
- - `update_contract_hash`: Synchronizes the contract versioning.
30
- - `verify_contract_integrity`: Ensures API docs and types are in sync.
31
-
32
- #### 🎓 Academy & Orchestration
33
- - `log_agent_action`: Records traceable agent activities.
34
- - `send_agent_message`: Facilitates inter-agent collaboration.
35
- - `read_agent_messages`: Inbox management for specialized agents.
36
-
37
- #### 📦 Repository & Git
38
- - `generate_semantic_commit_message`: Automated commit messages based on diffs.
39
-
40
- ---
41
-
42
- ## Türkçe
43
-
44
- ### 🛠️ Kategorize Edilmiş Araçlar
45
-
46
- - **Güvenlik:** `security_audit_scan`, `analyze_constitution_compliance`.
47
- - **Hafıza:** `get_framework_status`, `update_project_memory`, `bootstrap_legacy_memory`.
48
- - **Zeka:** `search_codebase`, `analyze_dependencies`, `generate_dependency_graph`.
49
- - **Kontrat:** `verify_api_contract`, `update_contract_hash`, `verify_contract_integrity`.
50
- - **Orkestrasyon:** `send_agent_message`, `log_agent_action`.
51
- - **Repo:** `generate_semantic_commit_message`.
52
-
53
- ## License
54
-
55
- MIT
@@ -1,118 +0,0 @@
1
- import { z } from "zod";
2
- export const SECURITY_AUDIT_ARGS_SCHEMA = z.object({
3
- path: z.string().default("."),
4
- });
5
- export const SEARCH_CODEBASE_ARGS_SCHEMA = z.object({
6
- query: z.string().min(1).max(300),
7
- extension: z
8
- .string()
9
- .default("ts")
10
- .refine((s) => /^[a-z0-9]+$/i.test(s), { message: "extension must be alphanumeric" }),
11
- });
12
- export const UPDATE_MEMORY_ARGS_SCHEMA = z.object({
13
- section: z.enum(["CURRENT STATUS", "HISTORY", "ACTIVE TASKS"]),
14
- content: z.string().min(1),
15
- });
16
- export const ANALYZE_DEPENDENCIES_ARGS_SCHEMA = z.object({
17
- path: z.string().min(1),
18
- });
19
- export const LOG_AGENT_ACTION_ARGS_SCHEMA = z.object({
20
- agent: z.string().min(1),
21
- action: z.string().min(1),
22
- requestId: z.string().min(1),
23
- files: z.array(z.string()).default([]),
24
- status: z.enum(["SUCCESS", "FAILURE"]),
25
- summary: z.string().min(1),
26
- details: z.record(z.string(), z.any()).default({}),
27
- });
28
- export const SEND_AGENT_MESSAGE_ARGS_SCHEMA = z.object({
29
- from: z.string().min(1),
30
- to: z.string().min(1),
31
- message: z.string().min(1),
32
- traceId: z.string().min(1),
33
- category: z.enum(["ACTION", "DELEGATION", "INFO", "ALERT"]).default("INFO"),
34
- priority: z.enum(["LOW", "MEDIUM", "HIGH", "URGENT"]).default("MEDIUM"),
35
- });
36
- export const UPDATE_AGENT_MESSAGE_STATUS_ARGS_SCHEMA = z.object({
37
- agent: z.string().min(1),
38
- traceId: z.string().min(1),
39
- newStatus: z.enum(["ACKNOWLEDGED", "COMPLETED", "REJECTED"]),
40
- });
41
- export const SEARCH_KNOWLEDGE_BASE_ARGS_SCHEMA = z.object({
42
- query: z.string().min(1),
43
- });
44
- export const UPDATE_KNOWLEDGE_BASE_ARGS_SCHEMA = z.object({
45
- topic: z.string().min(1),
46
- content: z.string().min(1),
47
- tags: z.array(z.string().min(1)).default([]),
48
- });
49
- export const ANALYZE_DATABASE_SCHEMA_ARGS_SCHEMA = z.object({
50
- path: z.string().default("apps/backend"),
51
- });
52
- export const GENERATE_STRATEGIC_BRIEFING_ARGS_SCHEMA = z.object({
53
- focusArea: z.string().optional(),
54
- });
55
- export const ANALYZE_CONSTITUTION_COMPLIANCE_ARGS_SCHEMA = z.object({
56
- path: z.string().min(1),
57
- });
58
- export const GENERATE_DEPENDENCY_GRAPH_ARGS_SCHEMA = z.object({
59
- path: z.string().default("src"),
60
- format: z.enum(["mermaid", "json"]).default("mermaid"),
61
- });
62
- export const GENERATE_ACADEMY_PROGRESS_REPORT_ARGS_SCHEMA = z.object({
63
- days: z.number().default(7),
64
- });
65
- export const ANALYZE_DOCUMENTATION_DEBT_ARGS_SCHEMA = z.object({
66
- path: z.string().default("."),
67
- });
68
- export const VALIDATE_REPOSITORY_HEALTH_ARGS_SCHEMA = z.object({
69
- scope: z.enum(["full", "lint", "test", "build"]).default("full"),
70
- });
71
- export const READ_AGENT_MESSAGES_ARGS_SCHEMA = z.object({
72
- agent: z.string().min(1),
73
- traceId: z.string().min(1).optional(),
74
- });
75
- export const VERIFY_CONTRACT_INTEGRITY_ARGS_SCHEMA = z.object({
76
- domain: z.string().min(1),
77
- });
78
- export const GENERATE_SEMANTIC_COMMIT_MESSAGE_ARGS_SCHEMA = z.object({
79
- traceId: z.string().min(1),
80
- });
81
- export const ANALYZE_CODEBASE_INTELLIGENCE_ARGS_SCHEMA = z.object({
82
- path: z.string().default("."),
83
- });
84
- export const GET_ACADEMY_PERFORMANCE_ARGS_SCHEMA = z.object({
85
- periodDays: z.number().default(30),
86
- });
87
- export const ANALYZE_PROCEDURAL_CONTINUITY_ARGS_SCHEMA = z.object({
88
- targetPath: z.string().min(1),
89
- referencePath: z.string().min(1),
90
- });
91
- export const GET_AGENT_AUDIT_REPORT_ARGS_SCHEMA = z.object({
92
- agent: z.string().min(1),
93
- days: z.number().default(7),
94
- });
95
- export const GET_AGENT_INBOX_STATS_ARGS_SCHEMA = z.object({
96
- agent: z.string().min(1),
97
- });
98
- export const GET_KNOWLEDGE_GRAPH_ARGS_SCHEMA = z.object({
99
- tag: z.string().optional(),
100
- });
101
- export const SYNC_CONTRACT_HASH_ARGS_SCHEMA = z.object({
102
- force: z.boolean().default(false),
103
- });
104
- export const VERIFY_FRAMEWORK_HEALTH_ARGS_SCHEMA = z.object({
105
- detailed: z.boolean().default(false),
106
- });
107
- export const INSTANTIATE_BLUEPRINT_ARGS_SCHEMA = z.object({
108
- blueprintPath: z.string().min(1),
109
- targetPath: z.string().min(1),
110
- });
111
- export const LIST_BLUEPRINTS_ARGS_SCHEMA = z.object({
112
- category: z.enum(["backend", "frontend"]).optional(),
113
- });
114
- export const SAVE_AS_BLUEPRINT_ARGS_SCHEMA = z.object({
115
- blueprintPath: z.string().min(1),
116
- content: z.string().min(1),
117
- description: z.string().optional(),
118
- });