agent-enderun 0.7.1 → 0.7.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/README.md +7 -7
- package/antigravity.md +3 -3
- package/bin/cli.js +6 -6
- package/framework-mcp/package.json +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -20,7 +20,7 @@ Most AI coding tools optimize for speed and generation volume. Agent Enderun opt
|
|
|
20
20
|
|
|
21
21
|
> [!NOTE]
|
|
22
22
|
> **v0.7.0 Strategic Consolidation:**
|
|
23
|
-
>
|
|
23
|
+
> The active runtime folder in user projects is `.agents/`. The framework ships its templates from `.enderun/`. All specialist agent configurations are migrated into a futuristic, strongly-typed JSON structure (`agent.json`) under `.agents/agents/{agent_name}/agent.json` (or `.antigravitycli/agents/` during framework staging) for absolute machine-readability. Duplicate structures (like `.enderun/` or `.antigravitycli/docs/`) have been completely retired.
|
|
24
24
|
|
|
25
25
|
---
|
|
26
26
|
|
|
@@ -69,7 +69,7 @@ agent-enderun/
|
|
|
69
69
|
│ ├── analyst/agent.json
|
|
70
70
|
│ ├── backend/agent.json
|
|
71
71
|
│ └── ... (others)
|
|
72
|
-
├── .
|
|
72
|
+
├── .agents/ <-- Active runtime folder created in user projects (agents, memory, knowledge copies)
|
|
73
73
|
│ ├── assets/
|
|
74
74
|
│ │ └── manager.png <-- Majestic Headmaster Avatar
|
|
75
75
|
│ ├── cli-commands.json
|
|
@@ -97,7 +97,7 @@ agent-enderun/
|
|
|
97
97
|
Install the package globally or initialize it inside your project folder:
|
|
98
98
|
|
|
99
99
|
```bash
|
|
100
|
-
# 1. Initialize the framework (creates .
|
|
100
|
+
# 1. Initialize the framework (creates .agents/ structure + antigravity.md)
|
|
101
101
|
npx agent-enderun init
|
|
102
102
|
|
|
103
103
|
# 2. Install dependencies
|
|
@@ -112,7 +112,7 @@ npx agent-enderun check
|
|
|
112
112
|
|
|
113
113
|
### 2. Startup Step (Mandatory for Agents)
|
|
114
114
|
At the start of every session, the active agent must:
|
|
115
|
-
1. **Read `.
|
|
115
|
+
1. **Read `.agents/PROJECT_MEMORY.md`** immediately to restore project context, trace ID, and active tasks.
|
|
116
116
|
2. **Read `.agents/agents/manager/agent.json`** to load specialist behavioral rules and checklists.
|
|
117
117
|
|
|
118
118
|
---
|
|
@@ -141,7 +141,7 @@ At the start of every session, the active agent must:
|
|
|
141
141
|
|
|
142
142
|
> [!NOTE]
|
|
143
143
|
> **v0.7.0 Stratejik Konsolidasyon:**
|
|
144
|
-
>
|
|
144
|
+
> Çalışma zamanı klasörü kullanıcı projelerinde `.agents/` olarak oluşturulur. Ajan yapılandırmaları `.agents/agents/{agent_name}/agent.json` altında yer alır. Eski veya mükerrer yapılar (örneğin `.enderun/` veya `.antigravitycli/docs/`) tamamen kaldırılmıştır.
|
|
145
145
|
|
|
146
146
|
---
|
|
147
147
|
|
|
@@ -185,7 +185,7 @@ Enderun Ordusu'ndaki her ajan, kendilerine ait kuralları, izin verilen dizinler
|
|
|
185
185
|
Framework'ü projenizde başlatmak için aşağıdaki adımları takip edin:
|
|
186
186
|
|
|
187
187
|
```bash
|
|
188
|
-
# 1. Framework'ü başlatın (.
|
|
188
|
+
# 1. Framework'ü başlatın (.agents yapısını kurar)
|
|
189
189
|
npx agent-enderun init
|
|
190
190
|
|
|
191
191
|
# 2. Bağımlılıkları yükleyin
|
|
@@ -200,7 +200,7 @@ npx agent-enderun check
|
|
|
200
200
|
|
|
201
201
|
### 2. Ajanlar İçin Başlangıç Adımı (Zorunlu)
|
|
202
202
|
Her oturumun başında, aktif ajan mutlaka:
|
|
203
|
-
1. Proje bağlamını, izleme kimliğini (trace ID) ve aktif görevleri geri yüklemek için **derhal `.
|
|
203
|
+
1. Proje bağlamını, izleme kimliğini (trace ID) ve aktif görevleri geri yüklemek için **derhal `.agents/PROJECT_MEMORY.md`** dosyasını okumalıdır.
|
|
204
204
|
2. Rolüne özgü davranış kurallarını ve kontrol listelerini yüklemek için **derhal `.agents/agents/manager/agent.json`** dosyasını okumalıdır.
|
|
205
205
|
|
|
206
206
|
---
|
package/antigravity.md
CHANGED
|
@@ -2,14 +2,14 @@
|
|
|
2
2
|
|
|
3
3
|
This file is the entry point for Antigravity CLI. The project's "Supreme Law" and all instructions are located in the following file:
|
|
4
4
|
|
|
5
|
-
👉 **[.
|
|
5
|
+
👉 **[.agents/ENDERUN.md](.agents/ENDERUN.md)**
|
|
6
6
|
|
|
7
7
|
### 🤖 AGENT DIRECTIVE
|
|
8
8
|
You are ALWAYS operating as `@manager` (Team-Lead) by default — on every message, every turn. The user does NOT need to type `@manager`. Typing a specific agent (e.g. `@backend`) explicitly will override this and activate that specialist role directly. You are responsible for analysis and delegation.
|
|
9
9
|
|
|
10
10
|
⚠️ **CRITICAL STARTUP REQUIREMENT:**
|
|
11
11
|
At the start of every new session/conversation or first turn, before you perform any task or respond to the user:
|
|
12
|
-
1. You **MUST** read `.
|
|
13
|
-
2. You **MUST** read `.
|
|
12
|
+
1. You **MUST** read `.agents/PROJECT_MEMORY.md` immediately (using the `read_project_memory` tool or the most specific file viewing tool) to restore the project's state, active phase, Trace ID, and recent history.
|
|
13
|
+
2. You **MUST** read `.agents/agents/manager/agent.json` (or the specialist's JSON file in `.agents/agents/{agent_name}/agent.json` if explicitly overridden) to load your role-specific rules, workflows, and checklists.
|
|
14
14
|
|
|
15
15
|
Please read the Supreme Law thoroughly before taking any action.
|
package/bin/cli.js
CHANGED
|
@@ -22,7 +22,7 @@ function getPackageVersion() {
|
|
|
22
22
|
}
|
|
23
23
|
|
|
24
24
|
function getFrameworkDir() {
|
|
25
|
-
return ".
|
|
25
|
+
return ".agents";
|
|
26
26
|
}
|
|
27
27
|
|
|
28
28
|
function getMemoryPath() {
|
|
@@ -188,7 +188,7 @@ function mergePackageJson(targetPath, sourcePath) {
|
|
|
188
188
|
console.log("✅ package.json updated with Enderun scripts and dependencies.");
|
|
189
189
|
}
|
|
190
190
|
|
|
191
|
-
function updateGitIgnore(targetPath, frameworkDir = ".
|
|
191
|
+
function updateGitIgnore(targetPath, frameworkDir = ".agents") {
|
|
192
192
|
const IGNORE_LINES = [
|
|
193
193
|
"# AI-Enderun",
|
|
194
194
|
`${frameworkDir}/logs/*.json`,
|
|
@@ -368,11 +368,11 @@ async function initCommand(selectedAdapter = "antigravity") {
|
|
|
368
368
|
antigravity: ["antigravity.md"],
|
|
369
369
|
};
|
|
370
370
|
|
|
371
|
-
const targetBase = ".
|
|
371
|
+
const targetBase = ".agents";
|
|
372
372
|
const targetFrameworkDir = path.join(targetDir, targetBase);
|
|
373
373
|
|
|
374
374
|
const CORE_FILES = [
|
|
375
|
-
".antigravitycli",
|
|
375
|
+
".antigravitycli", // source template folder (will be remapped to .agents)
|
|
376
376
|
|
|
377
377
|
"mcp.json",
|
|
378
378
|
".env.example",
|
|
@@ -483,7 +483,7 @@ async function initCommand(selectedAdapter = "antigravity") {
|
|
|
483
483
|
if (fs.existsSync(src)) {
|
|
484
484
|
if (fs.lstatSync(src).isDirectory()) {
|
|
485
485
|
const skipFiles = (item === ".antigravitycli") ? ["logs", "PROJECT_MEMORY.md", "PROJECT_MEMORY.lock"] : [];
|
|
486
|
-
const nonDestructive = ["docs", ".antigravitycli"].includes(item);
|
|
486
|
+
const nonDestructive = ["docs", ".antigravitycli"].includes(item); // source name during copy
|
|
487
487
|
copyDir(src, dest, new Set(skipFiles), nonDestructive, targetBase, targetScope);
|
|
488
488
|
} else {
|
|
489
489
|
if (item === "package.json") continue; // We merge it later
|
|
@@ -779,7 +779,7 @@ function sanitizeJson(obj, targetScope = "") {
|
|
|
779
779
|
return cleaned;
|
|
780
780
|
}
|
|
781
781
|
|
|
782
|
-
function copyDir(src, dest, skipSet = new Set(), nonDestructive = false, frameworkDir = ".
|
|
782
|
+
function copyDir(src, dest, skipSet = new Set(), nonDestructive = false, frameworkDir = ".agents", targetScope = "") {
|
|
783
783
|
const DEFAULT_SKIP = new Set(["node_modules", ".git", ".DS_Store", "package-lock.json"]);
|
|
784
784
|
const actualSkip = new Set([...DEFAULT_SKIP, ...skipSet]);
|
|
785
785
|
|