agent-enderun 0.4.6 → 0.4.7

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.
@@ -1,27 +1,27 @@
1
- # Agent Enderun (v0.4.6)
1
+ # Agent Enderun (v0.4.7)
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)
5
5
  > Check this list at the end of every response:
6
6
  > - [ ] **Zero Mock:** Did you use fake data or placeholders? (Strictly Forbidden)
7
7
  > - [ ] **Contract First:** Are `shared-types` and `contract.version.json` up to date?
8
- > - [ ] **Audit Log:** Did you log this action in `.enderun/logs/[agent].json`?
8
+ > - [ ] **Audit Log:** Did you log this action in `{{FRAMEWORK_DIR}}/logs/[agent].json`?
9
9
  > - [ ] **CLI Orchestration:** Does the action comply with `gemini cli` rules?
10
10
  > - [ ] **No "..." allowed:** Did you write the code completely without omitting parts?
11
11
 
12
12
  ---
13
13
 
14
14
  ## Constitution Status
15
- This file (`./gemini.md`) and the `.enderun/docs/` folder represent the "Supreme Law" of the project. All agents must read this file first in every session and strictly comply with its rules 100%. All framework-specific documentation is stored within `.enderun/docs/`.
15
+ This file (`./{{ADAPTER}}.md`) and the `{{FRAMEWORK_DIR}}/docs/` folder represent the "Supreme Law" of the project. All agents must read this file first in every session and strictly comply with its rules 100%. All framework-specific documentation is stored within `{{FRAMEWORK_DIR}}/docs/`.
16
16
 
17
17
  ---
18
18
 
19
19
  ## STEP 0 — STARTUP (EVERY SESSION, NON-NEGOTIABLE)
20
20
 
21
- 1. **Read ./gemini.md First:** Read and fully understand this file before taking any action.
22
- 2. **Check `.enderun/docs/` Folder:** Verify the existence of the `.enderun/docs/` folder (located within the framework directory).
23
- 3. **Absorb Context:** Read `.enderun/docs/tech-stack.md`. If it is empty, ask the user to fill it before proceeding.
24
- 4. **Demand Context:** If the `.enderun/docs/` folder does not exist, ask the user for project context and target audience information before writing any code.
21
+ 1. **Read ./{{ADAPTER}}.md First:** Read and fully understand this file before taking any action.
22
+ 2. **Check `{{FRAMEWORK_DIR}}/docs/` Folder:** Verify the existence of the `{{FRAMEWORK_DIR}}/docs/` folder (located within the framework directory).
23
+ 3. **Absorb Context:** Read `{{FRAMEWORK_DIR}}/docs/tech-stack.md`. If it is empty, ask the user to fill it before proceeding.
24
+ 4. **Demand Context:** If the `{{FRAMEWORK_DIR}}/docs/` folder does not exist, ask the user for project context and target audience information before writing any code.
25
25
  5. Default Frontend: React 19 + Vite (SPA) + react-router-dom (User Preference)
26
26
 
27
27
  **NEVER SKIP THIS STEP.** Do not assume context; read first, then act.
@@ -37,11 +37,11 @@ This file (`./gemini.md`) and the `.enderun/docs/` folder represent the "Supreme
37
37
  - **Zero Mock Policy:** The use of fake (mock) data or placeholders is strictly forbidden. Every line of code must connect to a real endpoint or a typed contract. (Exception: Controlled mock usage is allowed for external 3rd party services like Stripe, Twilio).
38
38
  - **Branded Types Law:** All IDs (UserID, ProjectID, etc.) must be in the "Branded Types" format defined under `packages/shared-types`. Using plain strings or numbers is forbidden.
39
39
  - **CLI-First Policy:** Due to the AI CLI Assistant focus, all outputs must be user-friendly (using Chalk, Clack, etc.) and stream-based. All commands must support the `--output json` flag and produce machine-readable output.
40
- - **Audit Logging Necessity:** Every critical action must be logged traceably under the `.enderun/logs/` folder.
40
+ - **Audit Logging Necessity:** Every critical action must be logged traceably under the `{{FRAMEWORK_DIR}}/logs/` folder.
41
41
  - **Design Continuity & Response Policy:** All UI changes MUST be responsive (Mobile-First + Fluid) and surgical. Unnecessary overhauls of existing layouts are strictly forbidden.
42
42
  - **Shared Component First Policy:** Defining common UI elements (Button, Input, Card, etc.) inside page files is FORBIDDEN. All atomic UI components must be created in a shared directory (e.g., `apps/web/src/components/ui/`) and reused across the project.
43
43
  - **File Ownership Rule:** Each file is the responsibility of a single agent.
44
- - **CLI Command Mapping:** All CLI commands in the project must be defined in the `.enderun/cli-commands.json` file and assigned to the relevant agent.
44
+ - **CLI Command Mapping:** All CLI commands in the project must be defined in the `{{FRAMEWORK_DIR}}/cli-commands.json` file and assigned to the relevant agent.
45
45
  - **Exit Code Standard:** Standard exit codes (e.g., 64: User Error, 70: Internal Error) must be used in error situations.
46
46
  - **Phase-Based Execution:** The development process must progress through defined Phases. You cannot move to the next phase until the current one is completed.
47
47
  - **CLI-Driven Orchestration:** All agent interactions and task delegations must be traceable via `gemini cli`.
@@ -51,13 +51,13 @@ This file (`./gemini.md`) and the `.enderun/docs/` folder represent the "Supreme
51
51
 
52
52
  ## STEP 1 — VALIDATE BEFORE ACTING
53
53
 
54
- Before writing any code or design, check `.enderun/docs/tech-stack.md`:
54
+ Before writing any code or design, check `{{FRAMEWORK_DIR}}/docs/tech-stack.md`:
55
55
 
56
56
  | Unknown | Action |
57
57
  |---|---|
58
58
  | Target Audience | Ask — do not proceed |
59
59
  | Platform (web / mobile / desktop / backend) | Ask — do not proceed |
60
- | **Technology Stack** | **Check `.enderun/docs/tech-stack.md` → If missing → ASK** |
60
+ | **Technology Stack** | **Check `{{FRAMEWORK_DIR}}/docs/tech-stack.md` → If missing → ASK** |
61
61
  | **Execution Profile (Full / Lightweight)** | **Ask — do not proceed** |
62
62
  | Database (MariaDB / SQLite / PostgreSQL) | Ask — do not proceed |
63
63
  | Environment (prototype / production) | Ask — do not proceed |
@@ -148,7 +148,7 @@ This file is the single source of truth for API stability. `@backend-architect`
148
148
 
149
149
  The development process follows a strict State Machine. Transition to the next phase is prohibited until the "Success Criteria" of the current phase is met.
150
150
 
151
- - **[STATE: PHASE_0] Discovery & Setup:** Profile selection (Lightweight/Full), requirement analysis, and validating `.enderun/docs/tech-stack.md`.
151
+ - **[STATE: PHASE_0] Discovery & Setup:** Profile selection (Lightweight/Full), requirement analysis, and validating `{{FRAMEWORK_DIR}}/docs/tech-stack.md`.
152
152
  - **[STATE: PHASE_1] Architecture & Contracts:** Setup of data models, API schemas, and `packages/shared-types`. Cannot proceed until Frontend and Backend approve these schemas.
153
153
  - **[STATE: PHASE_2] Core Development:** Active agents build core features in parallel based on the selected profile. (Under the apps/ folder)
154
154
  - **[STATE: PHASE_3] Integration & Testing:** System integration.
@@ -166,13 +166,13 @@ Every agent must produce a response for their assigned task within a maximum of
166
166
 
167
167
  ## CLI STANDARDS & CONFIGURATION
168
168
 
169
- ### 1. CLI Command Map (`.enderun/cli-commands.json`)
169
+ ### 1. CLI Command Map (`{{FRAMEWORK_DIR}}/cli-commands.json`)
170
170
  All CLI commands are centrally managed in this file. Each command must have a designated owner agent.
171
171
 
172
- ### 2. Configuration (`.enderun/config.json`)
172
+ ### 2. Configuration (`{{FRAMEWORK_DIR}}/config.json`)
173
173
  CLI behaviors (logLevel, outputFormat, defaultProfile) are managed through this file.
174
174
 
175
- **Priority Rule:** CLI Flags > `.enderun/config.json` > `.env` > Default Values.
175
+ **Priority Rule:** CLI Flags > `{{FRAMEWORK_DIR}}/config.json` > `.env` > Default Values.
176
176
 
177
177
  ### 3. Exit Codes
178
178
  - `0`: Success
@@ -191,12 +191,12 @@ All APIs are versioned via the URL path (`/api/v1/...`). The `packages/shared-ty
191
191
  ## PARALLEL EXECUTION & COORDINATION RULES
192
192
 
193
193
  1. **Shared-Types as Source of Truth:** All agents reference `packages/shared-types` and the `contract.version.json` file.
194
- 2. **Commit-Level Logging:** Every agent must log every atomic change to the `.enderun/logs/[agent-name].json` file.
194
+ 2. **Commit-Level Logging:** Every agent must log every atomic change to the `{{FRAMEWORK_DIR}}/logs/[agent-name].json` file.
195
195
  3. **Implicit Dependency Lock:** If an agent's required output is not ready, it switches to `WAITING` state.
196
196
  4. **Ownership Enforcement:** Changes to files outside an agent's scope cannot be made without `@team-lead` approval.
197
- 5. **No Blind Coding:** Agents must periodically read `.enderun/logs/` and `.enderun/STATUS.md`.
198
- 6. **Agent Directives (Message Queue):** `.enderun/messages/` is used for inter-agent communication.
199
- - **Message Queue Lock Protocol:** Before writing to a file, check for `.enderun/messages/.lock`.
197
+ 5. **No Blind Coding:** Agents must periodically read `{{FRAMEWORK_DIR}}/logs/` and `{{FRAMEWORK_DIR}}/STATUS.md`.
198
+ 6. **Agent Directives (Message Queue):** `{{FRAMEWORK_DIR}}/messages/` is used for inter-agent communication.
199
+ - **Message Queue Lock Protocol:** Before writing to a file, check for `{{FRAMEWORK_DIR}}/messages/.lock`.
200
200
  - If it exists, wait 500ms and retry (max 3 retries).
201
201
  - If lock persists after 3 retries, the agent MUST assume a **stale lock**, delete it, and notify `@team-lead` in their log.
202
202
  - Delete `.lock` and the message file immediately after processing.
package/ENDERUN.md CHANGED
@@ -1,11 +1,11 @@
1
- # Agent Enderun (v0.4.6)
1
+ # Agent Enderun (v0.4.7)
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)
5
5
  > Check this list at the end of every response:
6
6
  > - [ ] **Zero Mock:** Did you use fake data or placeholders? (Strictly Forbidden)
7
7
  > - [ ] **Contract First:** Are `shared-types` and `contract.version.json` up to date?
8
- > - [ ] **Audit Log:** Did you log this action in `.enderun/logs/[agent].json`?
8
+ > - [ ] **Audit Log:** Did you log this action in `{{FRAMEWORK_DIR}}/logs/[agent].json`?
9
9
  > - [ ] **CLI Orchestration:** Does the action comply with `gemini cli` rules?
10
10
  > - [ ] **No "..." allowed:** Did you write the code completely without omitting parts?
11
11
 
@@ -37,7 +37,7 @@ This file (`./{{ADAPTER}}.md`) and the `{{FRAMEWORK_DIR}}/docs/` folder represen
37
37
  - **CLI-First Policy:** Due to the AI CLI Assistant focus, all outputs must be user-friendly (using Chalk, Clack, etc.) and stream-based. All commands must support the `--output json` flag and produce machine-readable output.
38
38
  - **Audit Logging Necessity:** Every critical action must be logged traceably under the `{{FRAMEWORK_DIR}}/logs/` folder.
39
39
  - **File Ownership Rule:** Each file is the responsibility of a single agent.
40
- - **CLI Command Mapping:** All CLI commands in the project must be defined in the `.enderun/cli-commands.json` file and assigned to the relevant agent.
40
+ - **CLI Command Mapping:** All CLI commands in the project must be defined in the `{{FRAMEWORK_DIR}}/cli-commands.json` file and assigned to the relevant agent.
41
41
  - **Exit Code Standard:** Standard exit codes (e.g., 64: User Error, 70: Internal Error) must be used in error situations.
42
42
  - **Phase-Based Execution:** The development process must progress through defined Phases. You cannot move to the next phase until the current one is completed.
43
43
  - **CLI-Driven Orchestration:** All agent interactions and task delegations must be traceable via `{{ADAPTER}} cli`.
@@ -47,7 +47,7 @@ This file (`./{{ADAPTER}}.md`) and the `{{FRAMEWORK_DIR}}/docs/` folder represen
47
47
 
48
48
  ## STEP 1 — VALIDATE BEFORE ACTING
49
49
 
50
- Before writing any code or design, check `.enderun/docs/tech-stack.md`:
50
+ Before writing any code or design, check `{{FRAMEWORK_DIR}}/docs/tech-stack.md`:
51
51
 
52
52
  | Unknown | Action |
53
53
  |---|---|
@@ -144,7 +144,7 @@ This file is the single source of truth for API stability. `@backend-architect`
144
144
 
145
145
  The development process follows a strict State Machine. Transition to the next phase is prohibited until the "Success Criteria" of the current phase is met.
146
146
 
147
- - **[STATE: PHASE_0] Discovery & Setup:** Profile selection (Lightweight/Full), requirement analysis, and validating `.enderun/docs/tech-stack.md`.
147
+ - **[STATE: PHASE_0] Discovery & Setup:** Profile selection (Lightweight/Full), requirement analysis, and validating `{{FRAMEWORK_DIR}}/docs/tech-stack.md`.
148
148
  - **[STATE: PHASE_1] Architecture & Contracts:** Setup of data models, API schemas, and `packages/shared-types`. Cannot proceed until Frontend and Backend approve these schemas.
149
149
  - **[STATE: PHASE_2] Core Development:** Active agents build core features in parallel based on the selected profile. (Under the apps/ folder)
150
150
  - **[STATE: PHASE_3] Integration & Testing:** System integration.
@@ -162,13 +162,13 @@ Every agent must produce a response for their assigned task within a maximum of
162
162
 
163
163
  ## CLI STANDARDS & CONFIGURATION
164
164
 
165
- ### 1. CLI Command Map (`.enderun/cli-commands.json`)
165
+ ### 1. CLI Command Map (`{{FRAMEWORK_DIR}}/cli-commands.json`)
166
166
  All CLI commands are centrally managed in this file. Each command must have a designated owner agent.
167
167
 
168
- ### 2. Configuration (`.enderun/config.json`)
168
+ ### 2. Configuration (`{{FRAMEWORK_DIR}}/config.json`)
169
169
  CLI behaviors (logLevel, outputFormat, defaultProfile) are managed through this file.
170
170
 
171
- **Priority Rule:** CLI Flags > `.enderun/config.json` > `.env` > Default Values.
171
+ **Priority Rule:** CLI Flags > `{{FRAMEWORK_DIR}}/config.json` > `.env` > Default Values.
172
172
 
173
173
  ### 3. Exit Codes
174
174
  - `0`: Success
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # 🏛️ Agent Enderun — v0.4.6
1
+ # 🏛️ Agent Enderun — v0.4.7
2
2
 
3
3
  **The Supreme AI Governance & Orchestration Framework for Enterprise Development**
4
4
 
package/claude.md CHANGED
@@ -2,6 +2,6 @@
2
2
 
3
3
  This file is the entry point for Claude. The project's "Supreme Law" and all instructions are located in the following file:
4
4
 
5
- 👉 **[.enderun/ENDERUN.md](.enderun/ENDERUN.md)**
5
+ 👉 **[{{FRAMEWORK_DIR}}/ENDERUN.md]({{FRAMEWORK_DIR}}/ENDERUN.md)**
6
6
 
7
7
  Please read that file thoroughly before taking any action.
package/codex.md CHANGED
@@ -2,6 +2,6 @@
2
2
 
3
3
  This file is the entry point for Codex. The project's "Supreme Law" and all instructions are located in the following file:
4
4
 
5
- 👉 **[.enderun/ENDERUN.md](.enderun/ENDERUN.md)**
5
+ 👉 **[{{FRAMEWORK_DIR}}/ENDERUN.md]({{FRAMEWORK_DIR}}/ENDERUN.md)**
6
6
 
7
7
  Please read that file thoroughly before taking any action.
package/cursor.md CHANGED
@@ -2,6 +2,6 @@
2
2
 
3
3
  This file is the entry point for Cursor. The project's "Supreme Law" and all instructions are located in the following file:
4
4
 
5
- 👉 **[.enderun/ENDERUN.md](.enderun/ENDERUN.md)**
5
+ 👉 **[{{FRAMEWORK_DIR}}/ENDERUN.md]({{FRAMEWORK_DIR}}/ENDERUN.md)**
6
6
 
7
7
  Please read that file thoroughly before taking any action.
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "Agent Enderun",
3
3
  "description": "Enterprise-grade AI orchestration framework for software teams.",
4
- "instructions": ".enderun/ENDERUN.md"
4
+ "instructions": "{{FRAMEWORK_DIR}}/ENDERUN.md"
5
5
  }
package/gemini.md CHANGED
@@ -2,6 +2,6 @@
2
2
 
3
3
  This file is the entry point for Gemini. The project's "Supreme Law" and all instructions are located in the following file:
4
4
 
5
- 👉 **[.enderun/ENDERUN.md](.enderun/ENDERUN.md)**
5
+ 👉 **[{{FRAMEWORK_DIR}}/ENDERUN.md]({{FRAMEWORK_DIR}}/ENDERUN.md)**
6
6
 
7
7
  Please read that file thoroughly before taking any action.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agent-enderun",
3
- "version": "0.4.6",
3
+ "version": "0.4.7",
4
4
  "description": "The Supreme AI Governance & Orchestration Framework for Enterprise Development",
5
5
  "author": "Yusuf BEKAR",
6
6
  "license": "MIT",
@@ -76,7 +76,7 @@
76
76
  "concurrently": "^9.1.2"
77
77
  },
78
78
  "enderun": {
79
- "version": "0.4.6",
79
+ "version": "0.4.7",
80
80
  "initializedAt": "2026-05-09T13:24:27.472Z"
81
81
  }
82
82
  }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ai-enderun-mcp",
3
- "version": "0.4.6",
3
+ "version": "0.4.7",
4
4
  "description": "Enterprise-grade MCP Server for AI Agent Framework",
5
5
  "author": "Yusuf BEKAR",
6
6
  "license": "MIT",
@@ -1,7 +1,7 @@
1
1
  import path from "path";
2
2
  import fs from "fs";
3
3
 
4
- export const FRAMEWORK_VERSION = "0.4.6";
4
+ export const FRAMEWORK_VERSION = "0.4.7";
5
5
 
6
6
  export function getFrameworkDir(projectRoot: string): string {
7
7
  const adapters = [".gemini", ".claude", ".cursor", ".codex", ".enderun"];
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ai-enderun/shared-types",
3
- "version": "0.4.6",
3
+ "version": "0.4.7",
4
4
  "description": "Shared TypeScript types for AI-Enderun Framework. Ensures Contract-First synchronization between agents.",
5
5
  "author": "Yusuf BEKAR",
6
6
  "license": "MIT",