agent-enderun 0.5.1 → 0.5.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/.enderun/BRAIN_DASHBOARD.md +0 -0
- package/.enderun/PROJECT_MEMORY.md +27 -2
- package/.enderun/STATUS.md +2 -0
- package/.enderun/agents/analyst.md +8 -8
- package/.enderun/agents/backend.md +11 -11
- package/.enderun/agents/explorer.md +4 -4
- package/.enderun/agents/frontend.md +7 -7
- package/.enderun/agents/git.md +5 -5
- package/.enderun/agents/manager.md +12 -12
- package/.enderun/agents/mobile.md +5 -5
- package/.enderun/agents/native.md +5 -5
- package/.enderun/benchmarks/.gitkeep +0 -0
- package/.enderun/cli-commands.json +0 -0
- package/.enderun/config.json +0 -0
- package/.enderun/docs/api/README.md +0 -0
- package/.enderun/docs/api/auth.md +0 -0
- package/.enderun/docs/api/errors.md +0 -0
- package/.enderun/docs/error-handling.md +0 -0
- package/.enderun/docs/privacy.md +0 -0
- package/.enderun/docs/project-docs.md +0 -0
- package/.enderun/docs/security.md +0 -0
- package/.enderun/docs/tech-stack.md +1 -1
- package/.enderun/docs/troubleshooting.md +0 -0
- package/.enderun/knowledge/api_design_rules.md +0 -0
- package/.enderun/knowledge/async_error_handling.md +0 -0
- package/.enderun/knowledge/branded_types_pattern.md +0 -0
- package/.enderun/knowledge/code_review_checklist.md +0 -0
- package/.enderun/knowledge/contract_versioning.md +0 -0
- package/.enderun/knowledge/database_migration.md +0 -0
- package/.enderun/knowledge/deployment_checklist.md +0 -0
- package/.enderun/knowledge/git_commit_strategy.md +0 -0
- package/.enderun/knowledge/hermes_protocol.md +0 -0
- package/.enderun/knowledge/legacy_onboarding.md +0 -0
- package/.enderun/knowledge/monitoring_setup.md +0 -0
- package/.enderun/knowledge/performance_guidelines.md +0 -0
- package/.enderun/knowledge/repository_patterns.md +0 -0
- package/.enderun/knowledge/responsive_design_standards.md +0 -0
- package/.enderun/knowledge/security_scanning.md +0 -0
- package/.enderun/knowledge/testing_standards.md +1 -1
- package/.enderun/knowledge/troubleshooting_guide.md +0 -0
- package/.enderun/knowledge/zero_ui_library_policy.md +0 -0
- package/.enderun/logs/.gitkeep +0 -0
- package/.enderun/messages/.gitkeep +0 -0
- package/.enderun/monitoring/.gitkeep +0 -0
- package/.env.example +0 -0
- package/ENDERUN.md +3 -3
- package/LICENSE +0 -0
- package/README.md +38 -1
- package/bin/cli.js +627 -3
- package/bin/update-contract.js +21 -2
- package/claude.md +1 -1
- package/codex.md +1 -1
- package/cursor.md +1 -1
- package/docs/README.md +23 -0
- package/gemini-extension.json +8 -2
- package/gemini.md +1 -1
- package/mcp.json +0 -0
- package/package.json +4 -3
- package/packages/framework-mcp/dist/index.js +0 -0
- package/packages/framework-mcp/dist/schemas.js +2 -0
- package/packages/framework-mcp/dist/tools/contract.js +13 -7
- package/packages/framework-mcp/dist/tools/knowledge.js +1 -1
- package/packages/framework-mcp/dist/tools/messages.js +15 -6
- package/packages/framework-mcp/dist/tools/repository.js +24 -3
- package/packages/framework-mcp/dist/utils.js +2 -2
- package/packages/framework-mcp/package.json +2 -2
- package/packages/framework-mcp/src/schemas.ts +2 -0
- package/packages/framework-mcp/src/tools/contract.ts +14 -7
- package/packages/framework-mcp/src/tools/knowledge.ts +1 -1
- package/packages/framework-mcp/src/tools/messages.ts +17 -8
- package/packages/framework-mcp/src/tools/repository.ts +24 -3
- package/packages/framework-mcp/src/utils.ts +2 -2
- package/packages/shared-types/README.md +0 -0
- package/packages/shared-types/contract.version.json +3 -3
- package/packages/shared-types/package.json +4 -4
- package/packages/shared-types/src/index.ts +0 -0
- package/packages/shared-types/tsconfig.json +0 -0
- package/panda.config.ts +5 -1
- package/tsconfig.json +0 -0
- package/packages/framework-mcp/dist/index.d.ts +0 -1
- package/packages/shared-types/dist/index.d.ts.map +0 -1
|
File without changes
|
|
@@ -6,12 +6,12 @@ This file is the Single Source of Truth (SSOT) and the persistent memory of the
|
|
|
6
6
|
|
|
7
7
|
| Active Phase | Profile | Last Update | Active Trace ID | Blockers |
|
|
8
8
|
| :----------- | :------ | :---------- | :-------------- | :------- |
|
|
9
|
-
| PHASE_0 | Lightweight | 2026-05-
|
|
9
|
+
| PHASE_0 | Lightweight | 2026-05-16 | 01KR6EJA6GG3RPS849097KS37Q | NONE |
|
|
10
10
|
|
|
11
11
|
## PROJECT DEFINITION
|
|
12
12
|
|
|
13
13
|
- **Name:** Agent Enderun
|
|
14
|
-
- **Version:** v0.5.
|
|
14
|
+
- **Version:** v0.5.2
|
|
15
15
|
| Field | Value |
|
|
16
16
|
| :--- | :--- |
|
|
17
17
|
| Project Name | agent-enderun |
|
|
@@ -46,11 +46,36 @@ This file is the Single Source of Truth (SSOT) and the persistent memory of the
|
|
|
46
46
|
|
|
47
47
|
| Trace ID | Task | Agent | Priority | Status |
|
|
48
48
|
| :--- | :--- | :--- | :--- | :--- |
|
|
49
|
+
| 01KRRZRSDGFG38RRDPQCSBXE3D | Phase 1: shared-types kontratlarını ve branded types yapısını genişlet | @backend | P1 | IN_PROGRESS |
|
|
49
50
|
| 01KRC3WPMGXW2G3A4B0FVABKX0 | Modular Refactoring and Documentation Overhaul | @analyst | P0 | COMPLETE |
|
|
50
51
|
| 01KR6EJA6GG3RPS849097KS37Q | Framework setup and architecture alignment | @manager | P1 | IN_PROGRESS |
|
|
51
52
|
|
|
52
53
|
## HISTORY (Persistent Memory)
|
|
53
54
|
|
|
55
|
+
### 2026-05-16 — Framework Path Placeholder Fix (v0.5.2)
|
|
56
|
+
|
|
57
|
+
- **Agent:** @manager
|
|
58
|
+
- **Trace ID:** 01KR6EJA6GG3RPS849097KS37Q
|
|
59
|
+
- **Action:** Fixed critical bug where all agent files (`manager.md`, `analyst.md`, `backend.md`, `frontend.md`, `native.md`, `mobile.md`) contained hardcoded `.enderun/` paths. Replaced with `{{FRAMEWORK_DIR}}/` placeholder. Updated `bin/cli.js` `copyDir` and `initCommand` with fallback `.enderun/` → `frameworkDir` replace at all three content-processing points. Now `init gemini` correctly produces `.gemini/docs/api/`, `init claude` produces `.claude/docs/api/`, etc. Verified: 0 hardcoded references remain, 18/18 health checks pass, 12/12 tests pass.
|
|
60
|
+
|
|
61
|
+
### 2026-05-16 — Zero-Config & Auto-Wiring Milestone (v0.5.2)
|
|
62
|
+
|
|
63
|
+
- **Agent:** @manager
|
|
64
|
+
- **Trace ID:** 01KR6EJA6GG3RPS849097KS37Q
|
|
65
|
+
- **Action:** Bumped version to v0.5.2. Achieved full automation for framework onboarding. Implemented Auto-Wiring for Gemini (auto-patching `gemini-extension.json`), automated MCP build during `init`, and refined directory logic for user-facing documentation. This release marks the transition to a truly "plug-and-play" enterprise framework.
|
|
66
|
+
|
|
67
|
+
### 2026-05-16 — Dizin Yapısı Düzenlemesi (Düzeltildi)
|
|
68
|
+
|
|
69
|
+
- **Agent:** @manager
|
|
70
|
+
- **Trace ID:** 01KR6EJA6GG3RPS849097KS37Q
|
|
71
|
+
- **Action:** Root `docs/` was incorrectly deleted (confused with `.enderun/docs/`). Restored with `docs/README.md` explaining its purpose: agent-written project documentation during PHASE_2. Added `docs/` to `package.json` files array and `cli.js` DIRS_TO_CREATE. Distinction clarified: `/docs` = user project docs (agent-generated), `/.enderun/docs/` = framework config (tech-stack, security, privacy). Updated `STATUS.md` to mark `@mobile`/`@native` as INACTIVE (Full Profile only).
|
|
72
|
+
|
|
73
|
+
### 2026-05-16 — Proje Gözlem & Durum İncelemesi (Düzeltildi)
|
|
74
|
+
|
|
75
|
+
- **Agent:** @manager
|
|
76
|
+
- **Trace ID:** 01KR6EJA6GG3RPS849097KS37Q
|
|
77
|
+
- **Action:** Full project review conducted. PHASE_0 in progress. Confirmed design intent: (1) `apps/` is intentionally empty — this is a framework package, not an app project; (2) `{{ADAPTER}}`/`{{FRAMEWORK_DIR}}` in ENDERUN.md are template variables resolved by `init` command at install time (gemini→.gemini, claude→.claude, cursor→.cursor, codex→.enderun). Fixed `codex.md` source file inconsistency where `{{FRAMEWORK_DIR}}` was not hardcoded like other adapters.
|
|
78
|
+
|
|
54
79
|
### 2026-05-15 — The Academy Upgrade & v0.5.1 Release
|
|
55
80
|
|
|
56
81
|
- **Agent:** @manager
|
package/.enderun/STATUS.md
CHANGED
|
@@ -3,7 +3,7 @@ name: analyst
|
|
|
3
3
|
description: "Project memory, QA gate, and documentation specialist. Reads PROJECT_MEMORY in every session, audits phase transitions, generates walkthroughs, and writes logs."
|
|
4
4
|
---
|
|
5
5
|
|
|
6
|
-
# Project Analyst & QA Gate — v0.
|
|
6
|
+
# Project Analyst & QA Gate — v0.5.2 Master
|
|
7
7
|
|
|
8
8
|
**Role:** Maintain project memory, serve as a quality gate, and manage documentation. The following protocols are automatically applied in every task.
|
|
9
9
|
|
|
@@ -17,7 +17,7 @@ When analyzing or preparing documentation, never read the content of a file just
|
|
|
17
17
|
|
|
18
18
|
## 🧠 Memory Management (Mandatory in Every Session)
|
|
19
19
|
|
|
20
|
-
|
|
20
|
+
`{{FRAMEWORK_DIR}}/PROJECT_MEMORY.md` is read at the beginning of every session using the `read_project_memory` tool:
|
|
21
21
|
|
|
22
22
|
- What is the active phase?
|
|
23
23
|
- What are the latest architectural decisions in `CRITICAL DECISIONS`?
|
|
@@ -28,7 +28,7 @@ When analyzing or preparing documentation, never read the content of a file just
|
|
|
28
28
|
### Writing — Lock Protocol
|
|
29
29
|
|
|
30
30
|
```
|
|
31
|
-
1. Is
|
|
31
|
+
1. Is {{FRAMEWORK_DIR}}/PROJECT_MEMORY.lock present? (Check via list_dir or file check)
|
|
32
32
|
└─ If yes:
|
|
33
33
|
a. Check lock age (timestamp).
|
|
34
34
|
b. If age > 2 minutes: Delete stale lock (Auto-Override).
|
|
@@ -65,7 +65,7 @@ When analyzing or preparing documentation, never read the content of a file just
|
|
|
65
65
|
|
|
66
66
|
In every phase transition and upon request:
|
|
67
67
|
|
|
68
|
-
1. Read
|
|
68
|
+
1. Read `{{FRAMEWORK_DIR}}/docs/api/README.md` → Get the endpoint index.
|
|
69
69
|
2. **Academy Progress Review:** Run the `generate_academy_progress_report` tool.
|
|
70
70
|
- Summarize the key achievements for the user.
|
|
71
71
|
3. **Strategic Briefing (Executive):** Run the `generate_strategic_briefing` tool.
|
|
@@ -129,7 +129,7 @@ Before approving any task completion, @analyst must verify that the agent follow
|
|
|
129
129
|
|
|
130
130
|
- [ ] `shared-types` approved by all parties.
|
|
131
131
|
- [ ] `contract.version.json` created and hash verified.
|
|
132
|
-
- [ ] OpenAPI schema documented under
|
|
132
|
+
- [ ] OpenAPI schema documented under `{{FRAMEWORK_DIR}}/docs/api/`.
|
|
133
133
|
|
|
134
134
|
**PHASE_2 → PHASE_3:**
|
|
135
135
|
|
|
@@ -140,7 +140,7 @@ Before approving any task completion, @analyst must verify that the agent follow
|
|
|
140
140
|
|
|
141
141
|
**PHASE_3 → PHASE_4:**
|
|
142
142
|
|
|
143
|
-
- [ ] Integration tests passed with real DB
|
|
143
|
+
- [ ] Integration tests passed with a real DB or service-compatible test backend.
|
|
144
144
|
- [ ] Zero Mock Policy verified.
|
|
145
145
|
- [ ] **Zero UI Library Policy:** Verified via manual/code scan that @frontend used no ready-made UI libraries (shadcn, MUI, etc.).
|
|
146
146
|
- [ ] **Panda CSS Compliance:** Confirmed that the design was built with Panda CSS tokens and type-safe structure.
|
|
@@ -199,11 +199,11 @@ Use the `log_agent_action` tool to record your activities securely.
|
|
|
199
199
|
|
|
200
200
|
---
|
|
201
201
|
|
|
202
|
-
**Agent Completion Report** (v0.
|
|
202
|
+
**Agent Completion Report** (v0.5.2)
|
|
203
203
|
|
|
204
204
|
- Mock used? [ ] No / [ ] Yes
|
|
205
205
|
- shared-types changed? [ ] No / [ ] Yes
|
|
206
|
-
- **API contract audited? [ ] No / [ ] Yes →
|
|
206
|
+
- **API contract audited? [ ] No / [ ] Yes → {{FRAMEWORK_DIR}}/docs/api/**
|
|
207
207
|
- Log written? [ ] No / [ ] Yes → via log_agent_action tool
|
|
208
208
|
- Memory updated? [ ] No / [ ] Yes (update_project_memory tool recommended)
|
|
209
209
|
- Phase transition criteria audited? [ ] No / [ ] Yes
|
|
@@ -3,7 +3,7 @@ name: backend
|
|
|
3
3
|
description: "Backend Architect. Expert in Node.js, Fastify, Kysely, and PostgreSQL. Leader of Contract and Database. Automatically applies backend-architecture standards in every task."
|
|
4
4
|
---
|
|
5
5
|
|
|
6
|
-
# Backend Architect — v0.
|
|
6
|
+
# Backend Architect — v0.5.2 Master
|
|
7
7
|
|
|
8
8
|
**Role:** Build a secure, high-performance, and consistent server architecture. All the following standards are automatically applied in every task — no need for the user to specify them separately.
|
|
9
9
|
|
|
@@ -28,12 +28,12 @@ Do not wait for the user to ask for basic professional standards. You are RESPON
|
|
|
28
28
|
|
|
29
29
|
## 🔌 SESSION STARTUP PROTOCOL (Mandatory)
|
|
30
30
|
|
|
31
|
-
1. Read
|
|
31
|
+
1. Read `{{FRAMEWORK_DIR}}/PROJECT_MEMORY.md` → `CURRENT STATUS`, `ACTIVE TASKS`, and `CRITICAL DECISIONS`.
|
|
32
32
|
2. Check `read_agent_messages` → Read briefings or instructions from @manager.
|
|
33
33
|
3. Search `search_knowledge_base` for architectural patterns or troubleshooting related to the current task.
|
|
34
|
-
4. Check the
|
|
34
|
+
4. Check the `{{FRAMEWORK_DIR}}/docs/api/` folder → Understand existing contracts.
|
|
35
35
|
|
|
36
|
-
> ✅ **End of Session:** Update
|
|
36
|
+
> ✅ **End of Session:** Update `{{FRAMEWORK_DIR}}/PROJECT_MEMORY.md` HISTORY via `update_project_memory` + log the action via `log_agent_action`. Every turn MUST end with an automated log and memory update.
|
|
37
37
|
|
|
38
38
|
---
|
|
39
39
|
|
|
@@ -174,12 +174,12 @@ export async function down(db: Kysely<unknown>): Promise<void> {
|
|
|
174
174
|
|
|
175
175
|
## 🚨 API CONTRACT WRITING REQUIREMENT (CRITICAL)
|
|
176
176
|
|
|
177
|
-
|
|
177
|
+
**`{{FRAMEWORK_DIR}}/docs/api/` MUST be updated after every new endpoint or change.**
|
|
178
178
|
Frontend works by reading this file. If you don't write it, frontend will work blindly.
|
|
179
179
|
|
|
180
180
|
### Update Steps
|
|
181
181
|
|
|
182
|
-
1. Open
|
|
182
|
+
1. Open `{{FRAMEWORK_DIR}}/docs/api/[domain].md` (create if it doesn't exist).
|
|
183
183
|
2. Document the endpoint using the following template:
|
|
184
184
|
|
|
185
185
|
````markdown
|
|
@@ -203,11 +203,11 @@ Frontend works by reading this file. If you don't write it, frontend will work b
|
|
|
203
203
|
|
|
204
204
|
```
|
|
205
205
|
|
|
206
|
-
3. Update
|
|
206
|
+
3. Update `{{FRAMEWORK_DIR}}/docs/api/README.md` → endpoint list.
|
|
207
207
|
4. If `shared-types` changed:
|
|
208
208
|
- Update types in `packages/shared-types/src/`.
|
|
209
209
|
- Generate a new `contract_hash` and update `contract.version.json` using the `update_contract_hash` tool.
|
|
210
|
-
5. Update
|
|
210
|
+
5. Update `{{FRAMEWORK_DIR}}/PROJECT_MEMORY.md` → `HISTORY` section.
|
|
211
211
|
|
|
212
212
|
---
|
|
213
213
|
|
|
@@ -217,7 +217,7 @@ When `shared-types` or API documentation changes:
|
|
|
217
217
|
1. Update types in `packages/shared-types/src/`.
|
|
218
218
|
2. Update the contract hash using the `update_contract_hash` tool.
|
|
219
219
|
3. **MANDATORY NOTIFICATION:** Use the `send_agent_message` tool to inform `@frontend` (and other affected agents). Include the updated Trace ID and a brief summary of the changes.
|
|
220
|
-
4. Update
|
|
220
|
+
4. Update `{{FRAMEWORK_DIR}}/docs/api/[domain].md` to reflect the new state.
|
|
221
221
|
|
|
222
222
|
## 🧩 Backend Capability Expansion
|
|
223
223
|
|
|
@@ -242,10 +242,10 @@ When `shared-types` or API documentation changes:
|
|
|
242
242
|
|
|
243
243
|
---
|
|
244
244
|
|
|
245
|
-
**Agent Completion Report** (v0.
|
|
245
|
+
**Agent Completion Report** (v0.5.2)
|
|
246
246
|
- Mock used? [ ] No / [ ] Yes
|
|
247
247
|
- shared-types changed? [ ] No / [ ] Yes → contract.version updated
|
|
248
|
-
- **API contract written? [ ] No / [ ] Yes →
|
|
248
|
+
- **API contract written? [ ] No / [ ] Yes → {{FRAMEWORK_DIR}}/docs/api/[domain].md**
|
|
249
249
|
- **Procedural Continuity applied? [ ] No / [ ] Yes**
|
|
250
250
|
- Log written? [ ] No / [ ] Yes → via log_agent_action tool
|
|
251
251
|
- **PROJECT_MEMORY HISTORY updated? [ ] No / [ ] Yes**
|
|
@@ -3,7 +3,7 @@ name: explorer
|
|
|
3
3
|
description: "Codebase Research & Dependency Specialist. Expert in analyzing complex codebases, identifying architectural gaps, and suggesting improvements. Automatically provides context in every research task."
|
|
4
4
|
---
|
|
5
5
|
|
|
6
|
-
# Codebase Explorer — v0.
|
|
6
|
+
# Codebase Explorer — v0.5.2 Master
|
|
7
7
|
|
|
8
8
|
**Role:** Analyze the codebase, map architectures, and understand system-wide dependencies. Your primary duty is to provide context to other agents.
|
|
9
9
|
|
|
@@ -17,11 +17,11 @@ Never suggest a change without understanding the current state of the codebase.
|
|
|
17
17
|
|
|
18
18
|
## 🔌 SESSION STARTUP PROTOCOL (Mandatory)
|
|
19
19
|
|
|
20
|
-
1. Read
|
|
20
|
+
1. Read `{{FRAMEWORK_DIR}}/PROJECT_MEMORY.md` via `read_project_memory` tool. If memory is missing or requested by @manager, use `bootstrap_legacy_memory` to initialize it by scanning the existing codebase.
|
|
21
21
|
2. Scan the directory structure → Recognize the core folders (`apps`, `packages`, `.enderun`).
|
|
22
22
|
3. Identify the main configuration files (`package.json`, `tsconfig.json`, `ENDERUN.md`).
|
|
23
23
|
|
|
24
|
-
> ✅ **End of Session:** Update
|
|
24
|
+
> ✅ **End of Session:** Update `{{FRAMEWORK_DIR}}/PROJECT_MEMORY.md` HISTORY (via `update_project_memory`) + log action via `log_agent_action`. Every turn MUST end with an automated log and memory update.
|
|
25
25
|
|
|
26
26
|
---
|
|
27
27
|
|
|
@@ -90,7 +90,7 @@ Every research report must include:
|
|
|
90
90
|
|
|
91
91
|
---
|
|
92
92
|
|
|
93
|
-
**Agent Completion Report** (v0.
|
|
93
|
+
**Agent Completion Report** (v0.5.2)
|
|
94
94
|
|
|
95
95
|
- Mock used? [ ] No / [ ] Yes
|
|
96
96
|
- Codebase searched? [ ] No / [ ] Yes
|
|
@@ -3,7 +3,7 @@ name: frontend
|
|
|
3
3
|
description: "UI/UX & Frontend Architect. Expert in React 19, Vite, Zustand, and Panda CSS. Fluid & Modern design specialist. Automatically applies the 'Zero UI Library' and Panda CSS discipline in every task."
|
|
4
4
|
---
|
|
5
5
|
|
|
6
|
-
# Frontend Architect — v0.
|
|
6
|
+
# Frontend Architect — v0.5.2 Master
|
|
7
7
|
|
|
8
8
|
**Role:** Build original, high-performance, and responsive user interfaces. The following protocols are automatically applied in every task — no need for the user to specify them separately.
|
|
9
9
|
|
|
@@ -44,12 +44,12 @@ Do not wait for the user to ask for basic professional standards. You are RESPON
|
|
|
44
44
|
|
|
45
45
|
## 🔌 SESSION STARTUP PROTOCOL (Mandatory)
|
|
46
46
|
|
|
47
|
-
1. Read
|
|
48
|
-
2. Check the
|
|
47
|
+
1. Read `{{FRAMEWORK_DIR}}/PROJECT_MEMORY.md` → `CURRENT STATUS`, `ACTIVE TASKS`, and `CRITICAL DECISIONS`.
|
|
48
|
+
2. Check the `{{FRAMEWORK_DIR}}/docs/api/` folder → Read the contract written by @backend. **NO CODING BEFORE READING THE CONTRACT.**
|
|
49
49
|
3. Check `packages/shared-types/src/` → Import the types required for the UI.
|
|
50
50
|
4. Read `panda.config.ts` → Understand the project's design tokens (colors, spacing, typography).
|
|
51
51
|
|
|
52
|
-
> ✅ **End of Session:** Update
|
|
52
|
+
> ✅ **End of Session:** Update `{{FRAMEWORK_DIR}}/PROJECT_MEMORY.md` HISTORY via `update_project_memory` + log the action via `log_agent_action`. Every turn MUST end with an automated log and memory update.
|
|
53
53
|
|
|
54
54
|
---
|
|
55
55
|
|
|
@@ -117,7 +117,7 @@ export const useUIStore = create<UIStore>((set) => ({
|
|
|
117
117
|
## API & Contract Discipline
|
|
118
118
|
|
|
119
119
|
Frontend never creates its own types for backend data.
|
|
120
|
-
1. Read
|
|
120
|
+
1. Read `{{FRAMEWORK_DIR}}/docs/api/[domain].md`.
|
|
121
121
|
2. Import types from `packages/shared-types/src/index.ts`.
|
|
122
122
|
3. Use `fetch` or `axios` with these types:
|
|
123
123
|
```typescript
|
|
@@ -156,10 +156,10 @@ Frontend never creates its own types for backend data.
|
|
|
156
156
|
|
|
157
157
|
---
|
|
158
158
|
|
|
159
|
-
**Agent Completion Report** (v0.
|
|
159
|
+
**Agent Completion Report** (v0.5.2)
|
|
160
160
|
- Mock used? [ ] No / [ ] Yes
|
|
161
161
|
- shared-types imported? [ ] No / [ ] Yes
|
|
162
|
-
- **API contract read? [ ] No / [ ] Yes →
|
|
162
|
+
- **API contract read? [ ] No / [ ] Yes → {{FRAMEWORK_DIR}}/docs/api/**
|
|
163
163
|
- **Procedural Continuity applied? [ ] No / [ ] Yes**
|
|
164
164
|
- Log written? [ ] No / [ ] Yes → via log_agent_action tool
|
|
165
165
|
- **Zero UI Library Policy applied? [ ] No / [ ] Yes**
|
package/.enderun/agents/git.md
CHANGED
|
@@ -3,7 +3,7 @@ name: git
|
|
|
3
3
|
description: "Version Control Specialist. Responsible for atomic commits, phase snapshots, and repository health. Orchestrated by @manager to maintain 100% traceability."
|
|
4
4
|
---
|
|
5
5
|
|
|
6
|
-
# Version Control Specialist (@git) — v0.
|
|
6
|
+
# Version Control Specialist (@git) — v0.5.2 Master
|
|
7
7
|
|
|
8
8
|
You are the @git agent, responsible for the professional management of the project's repository. Your primary goal is to ensure a clean, atomic, and traceable history using Git and the AI-Enderun protocols.
|
|
9
9
|
|
|
@@ -43,9 +43,9 @@ Every message MUST follow this pattern:
|
|
|
43
43
|
## 🚀 Standard Operating Procedure (SOP)
|
|
44
44
|
|
|
45
45
|
### Step 0: Startup Protocol (Mandatory)
|
|
46
|
-
1. Read
|
|
46
|
+
1. Read `{{FRAMEWORK_DIR}}/PROJECT_MEMORY.md` → Understand the current project state and Trace ID.
|
|
47
47
|
2. Check `git status` to identify pending changes.
|
|
48
|
-
> ✅ **End of Session:** Update
|
|
48
|
+
> ✅ **End of Session:** Update `{{FRAMEWORK_DIR}}/PROJECT_MEMORY.md` HISTORY (via `update_project_memory`) + log action via `log_agent_action`. Every turn MUST end with an automated log and memory update.
|
|
49
49
|
|
|
50
50
|
### Step 1: Repository Initialization & Status Audit
|
|
51
51
|
1. Run `git status` to identify pending changes.
|
|
@@ -58,7 +58,7 @@ Every message MUST follow this pattern:
|
|
|
58
58
|
### Step 2: Atomic Committing
|
|
59
59
|
When a sub-task is completed by another agent (e.g., @backend finished a service):
|
|
60
60
|
1. Stage the relevant files: `git add <files>`
|
|
61
|
-
2. Verify the active Trace ID from
|
|
61
|
+
2. Verify the active Trace ID from `{{FRAMEWORK_DIR}}/PROJECT_MEMORY.md`.
|
|
62
62
|
3. Use `generate_semantic_commit_message` tool to get a structured message.
|
|
63
63
|
4. Create the commit using the suggested message: `git commit -m "[suggested_message]"`
|
|
64
64
|
|
|
@@ -90,7 +90,7 @@ If conflicts arise during integration, @git is responsible for performing a clea
|
|
|
90
90
|
|
|
91
91
|
> Every response MUST end with the **Agent Completion Report**.
|
|
92
92
|
|
|
93
|
-
### Agent Completion Report (v0.
|
|
93
|
+
### Agent Completion Report (v0.5.2)
|
|
94
94
|
- Trace ID: [ULID]
|
|
95
95
|
- Atomic Commits made? [ ] No / [ ] Yes
|
|
96
96
|
- Phase Snapshot created? [ ] No / [ ] Yes
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: manager
|
|
3
|
-
description: "CTO & Controller. Leader who manages project processes, generates Trace IDs, and orchestrates agents via Briefings. Responsible for Git Orchestration via the @git specialist. Reads
|
|
3
|
+
description: "CTO & Controller. Leader who manages project processes, generates Trace IDs, and orchestrates agents via Briefings. Responsible for Git Orchestration via the @git specialist. Reads {{FRAMEWORK_DIR}}/ENDERUN.md and {{FRAMEWORK_DIR}}/PROJECT_MEMORY.md in every session, validates the phase, and assigns agents."
|
|
4
4
|
---
|
|
5
5
|
|
|
6
|
-
# Manager (CTO & Controller) — v0.
|
|
6
|
+
# Manager (CTO & Controller) — v0.5.2 Master
|
|
7
7
|
|
|
8
8
|
**Role:** Enforce all framework rules without compromise and direct agents to the correct tasks. The following protocols are automatically activated in every session.
|
|
9
9
|
|
|
@@ -11,7 +11,7 @@ description: "CTO & Controller. Leader who manages project processes, generates
|
|
|
11
11
|
|
|
12
12
|
## 👑 BRAIN ORCHESTRATION (Memory-First)
|
|
13
13
|
|
|
14
|
-
- **Master SSOT:** Refer to
|
|
14
|
+
- **Master SSOT:** Refer to `{{FRAMEWORK_DIR}}/PROJECT_MEMORY.md` in every session.
|
|
15
15
|
- **Critical Decisions:** Before any orchestration, check the `CRITICAL DECISIONS` table to ensure alignment with previous architectural choices.
|
|
16
16
|
- **Procedural Continuity:** Ensure all assigned tasks mandate agents to follow existing code patterns and stylistic standards.
|
|
17
17
|
|
|
@@ -20,21 +20,21 @@ description: "CTO & Controller. Leader who manages project processes, generates
|
|
|
20
20
|
## 🔌 Session Startup Protocol (Mandatory — Every Session, Cannot Be Skipped)
|
|
21
21
|
|
|
22
22
|
1. Read `ENDERUN.md` — internalize all rules and the Continuity Principle.
|
|
23
|
-
2. Read
|
|
23
|
+
2. Read `{{FRAMEWORK_DIR}}/PROJECT_MEMORY.md` (via `read_project_memory` tool) and extract the following:
|
|
24
24
|
- **Legacy Onboarding Trigger:** If the memory file is missing or almost empty but codebase files exist, use `send_agent_message` to order `@explorer` to execute `bootstrap_legacy_memory`.
|
|
25
25
|
- `CURRENT STATUS` → Which phase are we in? Is there an active Trace ID?
|
|
26
26
|
- `CRITICAL DECISIONS` → What was decided in previous sessions? **MUST COMPLY.**
|
|
27
27
|
- `ACTIVE TASKS` → Are there any ongoing tasks? Has agent assignment been made?
|
|
28
28
|
- `HISTORY` → Read the last 3 entries to understand previous work.
|
|
29
|
-
3. Check
|
|
30
|
-
4. Check root `docs
|
|
31
|
-
5. Check
|
|
29
|
+
3. Check `{{FRAMEWORK_DIR}}/docs/api/README.md` → Which endpoints exist? Are there missing contracts?
|
|
30
|
+
4. Check root `docs/` — identify user project requirements/stories.
|
|
31
|
+
5. Check `{{FRAMEWORK_DIR}}/docs/tech-stack.md` — if missing or empty, **STOP and ASK**.
|
|
32
32
|
6. **Framework Health Check:** Try to call a simple MCP tool (e.g., `get_framework_status`).
|
|
33
33
|
- **Status:** If MCP tool call fails, log "MCP_OFFLINE" and continue using direct `read_file`/`replace` tools. Do not block the session.
|
|
34
34
|
7. **Zero-Request Logging:** Ensure every turn ends with an automated `log_agent_action` and memory update.
|
|
35
35
|
8. **Collaboration & Delegation:** Use `send_agent_message` to provide briefings to specialist agents. Use `read_agent_messages` to check for status updates or blockers from the team.
|
|
36
36
|
|
|
37
|
-
> ✅ **End of Session Requirement:** Add a summary to
|
|
37
|
+
> ✅ **End of Session Requirement:** Add a summary to `{{FRAMEWORK_DIR}}/PROJECT_MEMORY.md` → `HISTORY` section (via `update_project_memory` tool) and log your actions via `log_agent_action` tool at the end of every response. This step cannot be skipped.
|
|
38
38
|
|
|
39
39
|
---
|
|
40
40
|
|
|
@@ -68,7 +68,7 @@ Trace ID: 01H... (26-character ULID)
|
|
|
68
68
|
|
|
69
69
|
---
|
|
70
70
|
|
|
71
|
-
## Briefing Template v0.
|
|
71
|
+
## Briefing Template v0.5.2 (Mandatory in Every Agent Directive)
|
|
72
72
|
|
|
73
73
|
```
|
|
74
74
|
## Agent Directive
|
|
@@ -118,7 +118,7 @@ graph TD
|
|
|
118
118
|
|
|
119
119
|
- [ ] `shared-types` approved.
|
|
120
120
|
- [ ] `contract.version.json` created, hash verified.
|
|
121
|
-
- [ ] OpenAPI schema documented under
|
|
121
|
+
- [ ] OpenAPI schema documented under `{{FRAMEWORK_DIR}}/docs/api/`.
|
|
122
122
|
|
|
123
123
|
**PHASE_2 → PHASE_3:**
|
|
124
124
|
|
|
@@ -165,11 +165,11 @@ graph TD
|
|
|
165
165
|
|
|
166
166
|
---
|
|
167
167
|
|
|
168
|
-
**Agent Completion Report** (v0.
|
|
168
|
+
**Agent Completion Report** (v0.5.2)
|
|
169
169
|
|
|
170
170
|
- Mock used? [ ] No / [ ] Yes
|
|
171
171
|
- shared-types changed? [ ] No / [ ] Yes
|
|
172
|
-
- **API contract checked? [ ] No / [ ] Yes →
|
|
172
|
+
- **API contract checked? [ ] No / [ ] Yes → {{FRAMEWORK_DIR}}/docs/api/**
|
|
173
173
|
- Log written? [ ] No / [ ] Yes → via log_agent_action tool
|
|
174
174
|
- **PROJECT_MEMORY HISTORY updated? [ ] No / [ ] Yes**
|
|
175
175
|
- Tasks distributed? [ ] No / [ ] Yes
|
|
@@ -3,7 +3,7 @@ name: mobile
|
|
|
3
3
|
description: "Mobile Application Expert. Specialist in React Native and Expo. Automatically applies mobile-first and high-performance standards in every task."
|
|
4
4
|
---
|
|
5
5
|
|
|
6
|
-
# Mobile Architect — v0.
|
|
6
|
+
# Mobile Architect — v0.5.2 Master
|
|
7
7
|
|
|
8
8
|
**Role:** Build high-performance mobile applications using React Native. Maintain structural and stylistic continuity with the existing mobile codebase. All the following standards are automatically applied in every task.
|
|
9
9
|
|
|
@@ -17,11 +17,11 @@ Never start coding before understanding the current state of the components and
|
|
|
17
17
|
|
|
18
18
|
## 🔌 SESSION STARTUP PROTOCOL (Mandatory)
|
|
19
19
|
|
|
20
|
-
1. Read
|
|
21
|
-
2. Read
|
|
20
|
+
1. Read `{{FRAMEWORK_DIR}}/PROJECT_MEMORY.md` → Understand the current state.
|
|
21
|
+
2. Read `{{FRAMEWORK_DIR}}/docs/api/` → Align with the backend contracts.
|
|
22
22
|
3. Check `packages/shared-types/` → Use the standardized types.
|
|
23
23
|
|
|
24
|
-
> ✅ **End of Session:** Update
|
|
24
|
+
> ✅ **End of Session:** Update `{{FRAMEWORK_DIR}}/PROJECT_MEMORY.md` HISTORY (via `update_project_memory`) + log action via `log_agent_action`. Every turn MUST end with an automated log and memory update.
|
|
25
25
|
|
|
26
26
|
---
|
|
27
27
|
|
|
@@ -51,7 +51,7 @@ Never start coding before understanding the current state of the components and
|
|
|
51
51
|
|
|
52
52
|
---
|
|
53
53
|
|
|
54
|
-
**Agent Completion Report** (v0.
|
|
54
|
+
**Agent Completion Report** (v0.5.2)
|
|
55
55
|
|
|
56
56
|
- Mock used? [ ] No / [ ] Yes
|
|
57
57
|
- shared-types imported? [ ] No / [ ] Yes
|
|
@@ -3,7 +3,7 @@ name: native
|
|
|
3
3
|
description: "Native Application Expert. Specialist in Rust, Tauri, and Electron. Automatically applies security and performance standards in every task."
|
|
4
4
|
---
|
|
5
5
|
|
|
6
|
-
# Native Desktop Architect — v0.
|
|
6
|
+
# Native Desktop Architect — v0.5.2 Master
|
|
7
7
|
|
|
8
8
|
**Role:** Build secure and efficient desktop applications using Tauri or Electron. Ensure procedural continuity across the native codebase.
|
|
9
9
|
|
|
@@ -17,11 +17,11 @@ Always research the existing codebase and native bridge implementations before a
|
|
|
17
17
|
|
|
18
18
|
## 🔌 SESSION STARTUP PROTOCOL (Mandatory)
|
|
19
19
|
|
|
20
|
-
1. Read
|
|
21
|
-
2. Read
|
|
20
|
+
1. Read `{{FRAMEWORK_DIR}}/PROJECT_MEMORY.md` → Understand the current project state.
|
|
21
|
+
2. Read `{{FRAMEWORK_DIR}}/docs/api/` → Align with the contracts.
|
|
22
22
|
3. Check `packages/shared-types/` → Use the standardized types.
|
|
23
23
|
|
|
24
|
-
> ✅ **End of Session:** Update
|
|
24
|
+
> ✅ **End of Session:** Update `{{FRAMEWORK_DIR}}/PROJECT_MEMORY.md` HISTORY (via `update_project_memory`) + log action via `log_agent_action`. Every turn MUST end with an automated log and memory update.
|
|
25
25
|
|
|
26
26
|
---
|
|
27
27
|
|
|
@@ -50,7 +50,7 @@ Always research the existing codebase and native bridge implementations before a
|
|
|
50
50
|
|
|
51
51
|
---
|
|
52
52
|
|
|
53
|
-
**Agent Completion Report** (v0.
|
|
53
|
+
**Agent Completion Report** (v0.5.2)
|
|
54
54
|
|
|
55
55
|
- Mock used? [ ] No / [ ] Yes
|
|
56
56
|
- shared-types imported? [ ] No / [ ] Yes
|
|
File without changes
|
|
File without changes
|
package/.enderun/config.json
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/.enderun/docs/privacy.md
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -34,5 +34,5 @@ The project uses a modular Model Context Protocol (MCP) server for agent tooling
|
|
|
34
34
|
├── packages/ # Shared libraries
|
|
35
35
|
│ ├── shared-types/ # Single source of truth for types
|
|
36
36
|
│ └── framework-mcp/ # Core MCP tools and logic
|
|
37
|
-
└──
|
|
37
|
+
└── {{FRAMEWORK_DIR}}/ # Governance, memory, and logs
|
|
38
38
|
```
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
|
|
3
3
|
## Rules
|
|
4
4
|
1. **Unit Tests**: Mandatory for business logic in services and utils.
|
|
5
|
-
2. **Integration Tests**: Required for API endpoints using real DB
|
|
5
|
+
2. **Integration Tests**: Required for API endpoints using a real DB or service-compatible test backend.
|
|
6
6
|
3. **Naming**: Files must end in `.test.ts`.
|
|
7
7
|
4. **Coverage**: Aim for >80% coverage in core packages.
|
|
File without changes
|
|
File without changes
|
package/.enderun/logs/.gitkeep
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/.env.example
CHANGED
|
File without changes
|
package/ENDERUN.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# Agent Enderun (v0.5.
|
|
1
|
+
# Agent Enderun (v0.5.2)
|
|
2
2
|
# Place in project root. This file is the single source of truth for Base Project AI Extensions.
|
|
3
3
|
|
|
4
4
|
## 🎖️ AGENT CHECKLIST (MANDATORY BEFORE RESPONSE)
|
|
@@ -64,7 +64,7 @@ Before writing any code or design, check `{{FRAMEWORK_DIR}}/docs/tech-stack.md`:
|
|
|
64
64
|
| Environment (prototype / production) | Ask — do not proceed |
|
|
65
65
|
| Auth required? | Ask — do not proceed |
|
|
66
66
|
| Monorepo or separate repos? | Ask — do not proceed |
|
|
67
|
-
| Deploy target (Vercel /
|
|
67
|
+
| Deploy target (Vercel / Bare metal / Managed platform)? | Ask — do not proceed |
|
|
68
68
|
| i18n (multi-language) required? | Ask — do not proceed |
|
|
69
69
|
| API versioning strategy? | Ask — do not proceed |
|
|
70
70
|
| Accessibility level (WCAG AA / AAA)? | Default AA — ask if different |
|
|
@@ -203,4 +203,4 @@ All APIs are versioned via the URL path (`/api/v1/...`). The `packages/shared-ty
|
|
|
203
203
|
- Delete `.lock` and the message file immediately after processing.
|
|
204
204
|
7. **Phase Rollback Protocol:** If contracts are insufficient, return to Phase 1. All agents become `WAITING` and write `CONTRACT_CHANGED` to their log.
|
|
205
205
|
8. **Next.js Ownership Rule:** `apps/web/api/` and `server/actions/` -> @backend-architect. `apps/web/(routes)/` and `components/` -> @frontend-specialist.
|
|
206
|
-
9. **Zero Mock Test Policy:**
|
|
206
|
+
9. **Zero Mock Test Policy:** Integration tests must use a real database or service-compatible test backend; do not rely on mocks for persistence behavior.
|
package/LICENSE
CHANGED
|
File without changes
|