agent-enderun 0.8.8 → 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 (103) hide show
  1. package/.enderun/BRAIN_DASHBOARD.md +4 -4
  2. package/{ENDERUN.md → .enderun/ENDERUN.md} +4 -2
  3. package/.enderun/PROJECT_MEMORY.md +12 -45
  4. package/.enderun/STATUS.md +9 -8
  5. package/.enderun/agents/agent_army_schema.json +29 -7
  6. package/.enderun/agents/analyst.md +3 -5
  7. package/.enderun/agents/backend.md +11 -31
  8. package/.enderun/agents/devops.md +2 -3
  9. package/.enderun/agents/explorer.md +4 -4
  10. package/.enderun/agents/frontend.md +76 -69
  11. package/.enderun/agents/git.md +3 -3
  12. package/.enderun/agents/manager.md +30 -42
  13. package/.enderun/agents/mobile.md +3 -3
  14. package/.enderun/agents/native.md +106 -0
  15. package/.enderun/agents/orchestrator.md +2 -2
  16. package/.enderun/agents/qa.md +7 -10
  17. package/.enderun/agents/schema/agent-lifecycle-schema.json +29 -8
  18. package/.enderun/agents/security.md +2 -2
  19. package/.enderun/cli-commands.json +4 -0
  20. package/.enderun/config.json +2 -2
  21. package/.enderun/knowledge/SHIM_TEMPLATE.md +25 -0
  22. package/.enderun/knowledge/eslint-standards.md +63 -0
  23. package/.enderun/knowledge/hermes_protocol.md +1 -1
  24. package/.enderun/knowledge/manager_authority_audit_enforcement.md +2 -2
  25. package/.enderun/mcp_config.json +9 -0
  26. package/.enderun/memory-graph/agent-contexts/analyst.json +1 -1
  27. package/.enderun/memory-graph/agent-contexts/backend.json +1 -1
  28. package/.enderun/memory-graph/agent-contexts/devops.json +1 -1
  29. package/.enderun/memory-graph/agent-contexts/explorer.json +1 -1
  30. package/.enderun/memory-graph/agent-contexts/frontend.json +1 -1
  31. package/.enderun/memory-graph/agent-contexts/git.json +1 -1
  32. package/.enderun/memory-graph/agent-contexts/manager.json +1 -1
  33. package/.enderun/memory-graph/agent-contexts/mobile.json +1 -1
  34. package/.enderun/memory-graph/agent-contexts/native.json +1 -0
  35. package/.enderun/memory-graph/agent-contexts/orchestrator.json +1 -1
  36. package/.enderun/memory-graph/agent-contexts/qa.json +1 -1
  37. package/.enderun/memory-graph/agent-contexts/security.json +1 -1
  38. package/.enderun/memory-graph/graph.json +123 -15
  39. package/.enderun/memory-graph/shared-facts.json +26 -31
  40. package/README.md +89 -413
  41. package/agent.md +25 -0
  42. package/bin/cli.js +9 -9
  43. package/bin/update-contract.js +34 -37
  44. package/bin/validate-agent-army.js +38 -13
  45. package/claude.md +14 -8
  46. package/docs/README.md +35 -16
  47. package/docs/tech-stack.md +30 -0
  48. package/eslint.config.js +68 -0
  49. package/framework-mcp/dist/index.js +184 -24
  50. package/framework-mcp/package.json +6 -33
  51. package/framework-mcp/tsconfig.json +3 -6
  52. package/gemini.md +12 -6
  53. package/grok.md +25 -0
  54. package/package.json +12 -6
  55. package/panda.config.ts +86 -86
  56. package/tsconfig.json +9 -0
  57. package/.enderun/logs/analyst.json +0 -1
  58. package/.enderun/logs/backend.json +0 -1
  59. package/.enderun/logs/devops.json +0 -1
  60. package/.enderun/logs/explorer.json +0 -1
  61. package/.enderun/logs/frontend.json +0 -1
  62. package/.enderun/logs/git.json +0 -1
  63. package/.enderun/logs/manager.json +0 -1
  64. package/.enderun/logs/mobile.json +0 -1
  65. package/.enderun/logs/native.json +0 -1
  66. package/.enderun/logs/orchestrator.json +0 -1
  67. package/.enderun/logs/qa.json +0 -1
  68. package/.enderun/logs/security.json +0 -1
  69. package/.env.example +0 -10
  70. package/cursor.md +0 -19
  71. package/framework-mcp/README.md +0 -55
  72. package/framework-mcp/dist/schemas.js +0 -84
  73. package/framework-mcp/dist/tools/codebase.js +0 -294
  74. package/framework-mcp/dist/tools/contract.js +0 -197
  75. package/framework-mcp/dist/tools/framework.js +0 -225
  76. package/framework-mcp/dist/tools/git.js +0 -51
  77. package/framework-mcp/dist/tools/governance.js +0 -696
  78. package/framework-mcp/dist/tools/index.js +0 -47
  79. package/framework-mcp/dist/tools/knowledge.js +0 -133
  80. package/framework-mcp/dist/tools/memory.js +0 -217
  81. package/framework-mcp/dist/tools/messages.js +0 -193
  82. package/framework-mcp/dist/tools/monitoring.js +0 -294
  83. package/framework-mcp/dist/tools/orchestration.js +0 -369
  84. package/framework-mcp/dist/tools/pipeline.js +0 -267
  85. package/framework-mcp/dist/tools/security.js +0 -137
  86. package/framework-mcp/dist/utils.js +0 -121
  87. package/framework-mcp/src/index.ts +0 -49
  88. package/framework-mcp/src/schemas.ts +0 -106
  89. package/framework-mcp/src/tools/codebase.ts +0 -284
  90. package/framework-mcp/src/tools/contract.ts +0 -221
  91. package/framework-mcp/src/tools/framework.ts +0 -223
  92. package/framework-mcp/src/tools/git.ts +0 -42
  93. package/framework-mcp/src/tools/governance.ts +0 -891
  94. package/framework-mcp/src/tools/index.ts +0 -50
  95. package/framework-mcp/src/tools/knowledge.ts +0 -141
  96. package/framework-mcp/src/tools/memory.ts +0 -207
  97. package/framework-mcp/src/tools/messages.ts +0 -213
  98. package/framework-mcp/src/tools/monitoring.ts +0 -351
  99. package/framework-mcp/src/tools/orchestration.ts +0 -440
  100. package/framework-mcp/src/tools/pipeline.ts +0 -353
  101. package/framework-mcp/src/tools/security.ts +0 -143
  102. package/framework-mcp/src/utils.ts +0 -130
  103. package/src/cli/index.ts +0 -2188
package/README.md CHANGED
@@ -1,12 +1,4 @@
1
- # 🏛️ Agent Enderun — Supreme Enterprise AI Governance & Orchestration Framework
2
-
3
- **Agent Enderun** is a production-grade, highly-disciplined AI orchestration and process governance framework designed for building secure, scalable, and audit-ready enterprise software. It enforces contract-first development, zero-mock safety, static security scanning, and strict multi-agent coordination under a single source of truth.
4
-
5
- **Current Version:** `0.8.8`
6
- **Author:** Yusuf BEKAR
7
- **License:** MIT
8
-
9
- ---
1
+ # 🏛️ Agent Enderun — Supreme Enterprise AI Governance Framework (v0.9.0)
10
2
 
11
3
  [English](#english) | [Türkçe](#türkçe)
12
4
 
@@ -14,454 +6,138 @@
14
6
 
15
7
  # English
16
8
 
17
- ## Table of Contents
18
- - [1. Introduction & Core Philosophy](#1-introduction--core-philosophy)
19
- - [2. Installation & Quickstart](#2-installation--quickstart)
20
- - [Prerequisites](#prerequisites)
21
- - [Step-by-Step Installation](#step-by-step-installation)
22
- - [Verification & Health Check](#verification--health-check)
23
- - [3. Adapters & Use Cases](#3-adapters--use-cases)
24
- - [Gemini Adapter (Standard & Recommended)](#gemini-adapter-standard--recommended)
25
- - [Claude & Cursor Adapters](#claude--cursor-adapters)
26
- - [Integrating with Claude Code / Claude Desktop](#integrating-with-claude-code--claude-desktop)
27
- - [4. Project Development Workflow & Best Practices](#4-project-development-workflow--best-practices)
28
- - [A. Phase-Based Lifecycle](#a-phase-based-lifecycle)
29
- - [B. Trace ID Protocol](#b-trace-id-protocol)
30
- - [C. Contract-First & Branded Types](#c-contract-first--branded-types)
31
- - [D. Zero Mock & Zero UI-Library Policy](#d-zero-mock--zero-ui-library-policy)
32
- - [E. Security & Compliance Scanning](#e-security--compliance-scanning)
33
- - [F. Hermes Messaging & Task Queues](#f-hermes-messaging--task-queues)
34
- - [5. CLI Reference Manual](#5-cli-reference-manual)
35
- - [6. Project Layout Directory Structure](#6-project-layout-directory-structure)
9
+ **Agent Enderun** is not just a code generator; it is a high-discipline **AI Governance & Autonomous Command System** designed for complex, scalable, and fully auditable enterprise software projects.
36
10
 
37
- ---
11
+ With v0.9.0, the framework has evolved into a **"Living Engineering Organism"** that manages its own memory, performs surgical codebase modifications, and unifies diverse AI ecosystems under a single constitutional discipline.
38
12
 
39
- ## 1. Introduction & Core Philosophy
13
+ ## 💎 Strategic Platform Synergy (The Core Four)
40
14
 
41
- AI assistance in software development often introduces technical debt, code drift, and unstructured modifications. **Agent Enderun** solves this by establishing a **Structured Governance Framework**. Rather than acting as a loose code generator, AI assistants within this framework are treated as disciplined engineers under a unified command structure led by the `@manager` (Team-Lead) agent.
15
+ Agent Enderun integrates the world's most powerful AI ecosystems, mapping each to a specific strategic role within the project:
42
16
 
43
- ### The Five Pillars of Enderun
44
- 1. **Absolute Traceability:** Every action, commit, and state change is stamped with a unique ULID-based **Trace ID**.
45
- 2. **Katalyst Contracts:** Zero code is written until API contracts and **Branded Types** are defined and verified.
46
- 3. **Pristine Sandboxing:** Complete separation between the **User's Project** and the **Framework Internals**.
47
- 4. **Permanent Memory:** The AI's context and status live persistently inside your project, not in transient chat logs or the OS `/tmp` directory.
48
- 5. **Zero Mock Policy:** All analytical and operational screens must interact with actual, validated schemas and live endpoints.
17
+ 1. **🚀 Claude Code (Operational Surgery):** The project's **Field Engineer**. With unrivaled file-system speed and the `patch_file` tool, it manages autonomous code edits with surgical precision.
18
+ 2. **♊ Gemini & Vertex AI (Strategic Brain):** The **Command Center**. Utilizing a 2M+ token context window, it analyzes the entire project history and architectural map simultaneously to make high-level decisions.
19
+ 3. **🛸 Antigravity (Internal Discipline):** The **Military Academy**. A high-discipline, isolated environment designed to enforce internal project standards and rigorous AI training.
20
+ 4. **🤖 Grok / X.ai (Reconnaissance Unit):** The **Autonomous Vision**. Used for testing futuristic agent protocols and pushing the boundaries of AI-native development.
49
21
 
50
- ---
22
+ ## 🛡️ The Five Pillars of Enderun Discipline
51
23
 
52
- ## 2. Installation & Quickstart
24
+ 1. **Absolute Traceability (Trace ID):** Every decision, commit, and line of code is stamped with a ULID-based Trace ID. Full enterprise auditability is achieved in seconds.
25
+ 2. **Contract-First Law:** No implementation is permitted without verified type contracts. Type safety between `@backend` and `@frontend` is the project's supreme law.
26
+ 3. **Surgical Edit Standard:** Overwriting entire files is prohibited. The system mandates `replace_text` and `patch_file` via MCP for precise, non-destructive modifications.
27
+ 4. **Autonomous Memory Pruning:** `PROJECT_MEMORY.md` never bloats. Histories exceeding 10 entries are auto-archived to keep the context window fresh and cost-efficient.
28
+ 5. **Constitutional SSOT:** All platforms (Claude, Gemini, etc.) are 100% loyal to a single source of truth: the `.enderun/ENDERUN.md` constitution.
53
29
 
54
- ### Prerequisites
55
- - **Node.js** v20.0.0 or higher (LTS recommended).
56
- - **npm** v9+ or **pnpm** v8+ or **yarn** v3+.
57
- - **Git** initialized in the project directory.
30
+ ## 🛠️ Installation & Deployment
58
31
 
59
- ### Step-by-Step Installation
32
+ Initialize the framework for your preferred platform with a single command:
60
33
 
61
- #### Step 1: Initialize Git in your directory
62
34
  ```bash
63
- mkdir my-enterprise-app
64
- cd my-enterprise-app
65
- git init
66
- ```
35
+ # For Gemini CLI and Antigravity (Standard)
36
+ agent-enderun init gemini
67
37
 
68
- #### Step 2: Run the Framework Initializer
69
- To scaffold the entire governance structure, run the command below. By default, it will detect your package manager and environment.
70
- ```bash
71
- npx agent-enderun init gemini
72
- ```
73
- *Note: If you do not specify an adapter, it will default to `gemini` and build the runtime within the `.enderun/` directory.*
38
+ # For Claude Code (CLI & Desktop) — Optimized for Surgery
39
+ agent-enderun init claude
74
40
 
75
- #### Step 3: Install Workspace Dependencies & Compile the MCP Server
76
- ```bash
77
- npm install
78
- npm run enderun:build
79
- ```
80
-
81
- ---
41
+ # For Antigravity IDE/CLI Independent Setup
42
+ agent-enderun init antigravity
82
43
 
83
- ### Verification & Health Check
84
-
85
- Always run the built-in health diagnostic after installation or after making major project transitions:
86
- ```bash
87
- npx agent-enderun check
44
+ # For Grok Build / X.ai Autonomous Agents
45
+ agent-enderun init grok
88
46
  ```
89
47
 
90
- #### What does the Health Check validate?
91
- - **Constitution Integrity:** Verifies the existence and checksum of `ENDERUN.md`.
92
- - **Memory Connectivity:** Checks if `PROJECT_MEMORY.md` is active and writeable.
93
- - **Contract Parity:** Ensures `apps/backend/contract.version.json` exists.
94
- - **MCP compilation:** Confirms `framework-mcp/dist/index.js` is fully compiled and ready.
95
- - **Documentation Portals:** Ensures technical stack details are filled inside `docs/tech-stack.md`.
96
-
97
- ---
48
+ ## 📋 CLI Command Registry
98
49
 
99
- ## 3. Adapters & Use Cases
50
+ | Command | Description |
51
+ | :--- | :--- |
52
+ | `status` | Shows the active phase, Trace ID, and real-time agent health scores. |
53
+ | `check` | Audits system health, MCP connectivity, and constitutional integrity. |
54
+ | `trace:new` | Starts a new task chain with a unique ID and briefs the Army. |
55
+ | `create-app` | Generates an enterprise monorepo (Fastify/React) from natural language. |
56
+ | `verify-contract` | Seals the type alignment between backend and frontend modules. |
100
57
 
101
- Agent Enderun is designed to support the specific AI adapter that matches your IDE or CLI environment.
58
+ ## 📂 Architecture Map
102
59
 
103
60
  ```text
104
- ┌───────────────────────┐
105
- agent-enderun │
106
- └───────────┬───────────┘
107
-
108
- ┌─────────────────┼─────────────────┐
109
- ▼ ▼ ▼
110
- .enderun/ .claude/ .cursor/
111
- (Gemini Adapter) (Claude Code) (Cursor IDE)
61
+ ├── .enderun/ <-- The Framework Brain
62
+ ├── agents/ <-- 12 Specialist Directives (Manager, Architect, QA...)
63
+ │ ├── knowledge/ <-- Enterprise Standards (ESLint, API, Security)
64
+ ├── memory-graph/ <-- Shared Facts & Agent Private Contexts
65
+ │ ├── queue/ <-- Hermes Messaging & Task Queue
66
+ │ └── ENDERUN.md <-- The Supreme Constitution
67
+ ├── apps/ <-- Enterprise Application Space
68
+ ├── docs/ <-- Project Architectural Portal (ADRs, Tech-Stack)
69
+ └── framework-mcp/ <-- Autonomous Operations Server
112
70
  ```
113
71
 
114
- ### Gemini Adapter (Standard & Recommended)
115
- - **Folder:** `.enderun/`
116
- - **Target Use:** Gemini CLI, Google Vertex AI, and direct Gemini API environments.
117
- - **Shim File:** `gemini.md` (placed at the project root as the initial context instructions).
118
- - **Benefit:** Full Model Context Protocol (MCP) server hooks natively tuned for Gemini's large-context window.
119
-
120
- ### Claude & Cursor Adapters
121
- - **Claude Adapter (`init claude`):** Creates the `.claude/` directory and shims. Configures automated MCP access for **Claude Code CLI** and **Claude Desktop**.
122
- - **Cursor Adapter (`init cursor`):** Creates `.cursor/` directory containing `.cursorrules` to immediately guide the Cursor IDE agent with Enderun's strict coding boundaries.
123
-
124
- ### Integrating with Claude Code / Claude Desktop
125
-
126
- Agent Enderun provides a fully-functional **Model Context Protocol (MCP)** server. To connect it to your Claude environment, append the following block to your `claude_desktop_config.json` or global Claude CLI configuration:
127
-
128
- ```json
129
- {
130
- "mcpServers": {
131
- "agent-enderun-mcp": {
132
- "command": "node",
133
- "args": ["/absolute/path/to/your/project/framework-mcp/dist/index.js"]
134
- }
135
- }
136
- }
137
- ```
138
-
139
- Once connected, your AI assistant will gain access to tools such as:
140
- - `search_codebase` (Surgical context parsing)
141
- - `read_project_memory` & `update_project_memory` (State machine updates)
142
- - `verify_api_contract` (TypeScript type validation)
143
- - `send_agent_message` (Hermes protocol queues)
144
-
145
- ---
146
-
147
- ## 4. Project Development Workflow & Best Practices
148
-
149
- To successfully develop a project within the Agent Enderun framework, follow this rigid workflow.
150
-
151
- ### A. Phase-Based Lifecycle
152
- Development progresses sequentially through five states. Do not skip phases:
153
- 1. **`PHASE_0` - Discovery & Setup:** Fill out `docs/tech-stack.md` and select the execution profile (Lightweight MVP vs. Full Enterprise).
154
- 2. **`PHASE_1` - Architecture & Contracts:** Create your models and API definitions first. Establish contract hashes.
155
- 3. **`PHASE_2` - Core Development:** Develop features inside `apps/backend/` and `apps/web/` in parallel.
156
- 4. **`PHASE_3` - Integration & Testing:** Run end-to-end integration and reach the mandatory **80% test coverage gate** via `@qa`.
157
- 5. **`PHASE_4` - Optimization & Deployment:** Perform a final performance audit and deploy.
158
-
159
- ### B. Trace ID Protocol
160
- Never write code or commit files without an active task ULID.
161
- 1. Create a new task tracking chain:
162
- ```bash
163
- npx agent-enderun trace:new "Implement JWT Authentication" backend P1
164
- ```
165
- 2. This generates a ULID (e.g., `01H7G8K5TJ5S6MF9Z7H8N4C2P`) and appends it to the `ACTIVE TASKS` table in `PROJECT_MEMORY.md`.
166
- 3. Use the Trace ID prefix in your git commit messages:
167
- ```bash
168
- git commit -m "[01H7G8K5TJ5S6MF9Z7H8N4C2P] feat(auth): add JWT fastify plugins"
169
- ```
170
-
171
- ### C. Contract-First & Branded Types
172
- Under Agent Enderun, all ID types must use strict **Branded Types** to avoid type confusion:
173
- ```typescript
174
- // apps/backend/src/types/brands.ts
175
- export type Brand<T, K extends string> = T & { __brand: K };
176
-
177
- export type UserID = Brand<string, "UserID">;
178
- export type ProjectID = Brand<string, "ProjectID">;
179
- ```
180
- Ensure `@backend` compiles all types into a shared folder BEFORE `@frontend` starts any page implementation. Update the contract version in `apps/backend/contract.version.json`.
181
-
182
- ### D. Zero Mock & Zero UI-Library Policy
183
- - **No Mocking:** All developed user interfaces must pull data from actual verified backend endpoints or Kysely repositories (with exceptions only for 3rd-party platforms like Stripe or Twilio).
184
- - **Panda CSS & Custom UI:** External pre-styled components (e.g. TailwindCSS, MUI, Shadcn/UI) are forbidden in core workspaces unless explicitly authorized by `@manager`. Rely entirely on the type-safe token system of **Panda CSS** to construct custom, responsive interfaces.
185
-
186
- ### E. Security & Compliance Scanning
187
- Run static scanning checks locally on your codebase:
188
- * **Security Audit:** Searches for unsafe database strings, hardcoded keys, innerHTML assignments, and `any` types.
189
- ```bash
190
- npx agent-enderun check:security
191
- ```
192
- * **Constitution Compliance:** Inspects files for forbidden libraries, unbranded ID types, and missing error-handling parameters.
193
- ```bash
194
- npx agent-enderun check:compliance
195
- ```
196
-
197
- ### F. Hermes Messaging & Task Queues
198
- If working with multiple sub-agents in parallel, agents communicate via `messages/` under the Hermes Protocol. The files are locked via `.lock` tokens to ensure thread safety, and execution routes asynchronously through `.enderun/queue/`.
199
-
200
- ---
201
-
202
- ## 5. CLI Reference Manual
203
-
204
- | Command | Arguments | Description |
205
- | :--- | :--- | :--- |
206
- | `init` | `[adapter]` | Initializes the framework. Supported adapters: `gemini` (creates `.enderun/`), `claude` (`.claude/`), `cursor` (`.cursor/`). |
207
- | `check` | *None* | Performs full framework diagnostic and codebase health check. |
208
- | `status` | *None* | Displays current active Phase, Trace IDs, agent states, and blockers. |
209
- | `trace:new` | `<description> [agent] [priority]` | Generates a new ULID Trace ID and appends it to active tasks. |
210
- | `create-app` | `<idea>` | Generates a full-stack monorepo application template from natural language. |
211
- | `verify-contract` | *None* | Computes API hashes to verify type parity between backend and frontend. |
212
- | `check:security` | `[path]` | Runs static scan for SQL injections, secrets, and illegal variables. |
213
- | `check:compliance` | `[path]` | Audits compliance with Branded Types and forbidden UI libraries. |
214
- | `explorer:graph` | `[path]` | Generates a visual Mermaid TD dependency diagram of the local files. |
215
- | `explorer:audit` | `[path]` | Executes static analysis mapping files to corresponding agent owners. |
216
- | `git:commit` | `<trace-id>` | Inspects staged files and suggests a perfect semantic git commit message. |
217
- | `mcp` | *None* | Starts the Model Context Protocol stdio server. |
218
- | `version` | *None* | Prints the current framework release version. |
219
-
220
- ---
221
-
222
- ## 6. Project Layout Directory Structure
223
-
224
- A fully-governed monorepo structured under Agent Enderun looks as follows:
225
-
226
- ```text
227
- ├── .enderun/ <-- Framework Runtime & Memory (v0.8.8)
228
- │ ├── agents/ <-- Specialist agent Blueprints & SOPs
229
- │ ├── knowledge/ <-- Rigid architecture patterns & rules
230
- │ ├── memory-graph/ <-- Global facts & private agent states
231
- │ ├── logs/ <-- Structured JSON audit trail
232
- │ ├── queue/ <-- Asynchronous task queues
233
- │ ├── PROJECT_MEMORY.md <-- Unified state brain (SSOT)
234
- │ └── STATUS.md <-- Agent army dashboard
235
- ├── apps/
236
- │ ├── backend/ <-- Fastify & Kysely backend workspace
237
- │ │ └── contract.json <-- API contract registry & hash metadata
238
- │ └── web/ <-- React & Panda CSS client workspace
239
- ├── docs/ <-- User's technical stack & requirements
240
- ├── framework-mcp/ <-- MCP Server source code & tools
241
- ├── bin/ <-- Executable CLI entrypoint binaries
242
- ├── ENDERUN.md <-- System Constitution (Supreme Law)
243
- └── package.json <-- Monorepo workspaces & shared actions
244
- ```
245
-
246
- ---
247
72
  ---
248
73
 
249
74
  # Türkçe
250
75
 
251
- ## İçindekiler
252
- - [1. Giriş ve Temel Felsefe](#1-giriş-ve-temel-felsefe)
253
- - [2. Kurulum ve Hızlı Başlangıç](#2-kurulum-ve-hızlı-başlangıç)
254
- - [Ön Gereksinimler](#ön-gereksinimler)
255
- - [Adım Adım Kurulum](#adım-adım-kurulum)
256
- - [Sağlık ve Doğrulama Taraması](#sağlık-ve-doğrulama-taraması)
257
- - [3. Adaptörler ve Kullanım Senaryoları](#3-adaptörler-ve-kullanım-senaryoları)
258
- - [Gemini Adaptörü (Standart & Önerilen)](#gemini-adaptörü-standart--önerilen)
259
- - [Claude & Cursor Adaptörleri](#claude--cursor-adaptörleri)
260
- - [Claude Code / Claude Desktop Entegrasyonu](#claude-code--claude-desktop-entegrasyonu)
261
- - [4. Proje Geliştirme Akışları ve En İyi Pratikler](#4-proje-geliştirme-akışları-ve-en-iyi-pratikler)
262
- - [A. Aşama Tabanlı Yaşam Döngüsü](#a-aşama-tabanlı-yaşam-döngüsü)
263
- - [B. Trace ID Protokolü](#b-trace-id-protokolü)
264
- - [C. Kontrat Öncelikli Geliştirme & Branded Types](#c-kontrat-öncelikli-geliştirme--branded-types)
265
- - [D. Sıfır Sahte Veri (Zero-Mock) & Sıfır UI Kütüphanesi Kanunu](#d-sıfır-sahte-veri-zero-mock--sıfır-ui-kütüphanesi-kanunu)
266
- - [E. Güvenlik ve Uyumluluk Taramaları](#e-güvenlik-ve-uyumluluk-taramaları)
267
- - [F. Hermes Mesajlaşması & Görev Kuyrukları](#f-hermes-mesajlaşması--görev-kuyrukları)
268
- - [5. CLI Referans Klavuzu](#5-cli-referans-klavuzu)
269
- - [6. Proje Klasör Dizilim Mimarisi](#6-proje-klasör-dizilim-mimarisi)
270
-
271
- ---
272
-
273
- ## 1. Giriş ve Temel Felsefe
76
+ **Agent Enderun**, sıradan bir kod üreticisi değil; karmaşık, ölçeklenebilir ve mutlak denetlenebilir kurumsal yazılım projeleri için tasarlanmış bir **Yapay Zeka Yönetişim ve Otonom Ordu Komuta Sistemidir**.
274
77
 
275
- Yazılım geliştirme süreçlerindeki yapay zeka yardımı genellikle plansız değişikliklere, teknik borç birikimine ve kontrolsüz kod sapmalarına neden olur. **Agent Enderun**, yapay zekayı basit bir kod üreteci olarak konumlandırmak yerine, onu `@manager` (Takım Lideri) ajanı komutasında çalışan, kurallara bağlı disiplinli bir mühendislik ordusu haline getiren **Kurumsal Yapay Zeka Yönetişim Framework'üdür**.
78
+ v0.9.0 sürümüyle birlikte sistem; kendi hafızasını yönetebilen, kod tabanına cerrahi müdahaleler yapabilen ve farklı YZ ekosistemlerini tek bir anayasal disiplin altında birleştiren **"Yaşayan bir Mühendislik Organizması"** haline gelmiştir.
276
79
 
277
- ### Enderun’un Beş Ana Sütunu
278
- 1. **Mutlak İzlenebilirlik:** Yapılan her işlem, commit ve durum değişikliği ULID tabanlı bir **Trace ID** ile damgalanır.
279
- 2. **Önce Sözleşme (Contract-First):** API rotaları ve veri tipleri (**Branded Types**) tanımlanıp onaylanmadan tek satır kod yazılamaz.
280
- 3. **Kalıcı Yerel Hafıza:** Yapay zekanın tüm bağlamı (context) ve projenin mevcut durumu, işletim sisteminin `/tmp` dizininde değil, doğrudan projenizin içinde saklanır.
281
- 4. **Sınırların Korunması (Pristine Sandboxing):** Framework çekirdeği ile sizin uygulama kodunuz arasında aşılmaz sınırlar çizilir.
282
- 5. **Gerçekçi Veri (Zero Mock Policy):** Tüm analiz ve operasyon ekranları sahte verilerle (mock) değil, onaylanmış canlı veritabanı şemalarıyla konuşur.
80
+ ## 💎 Stratejik Platform Sinerjisi (Dörtlü Güç)
283
81
 
284
- ---
82
+ Agent Enderun, sektördeki en güçlü YZ ekosistemlerini bir araya getirerek her birini proje içinde stratejik bir rolle görevlendirir:
285
83
 
286
- ## 2. Kurulum ve Hızlı Başlangıç
84
+ 1. **🚀 Claude Code (Operasyonel Cerrahi):** Projenin **Saha Mühendisi**dir. Dosya sistemi üzerindeki rakipsiz hızı ve `patch_file` aracıyla otonom kod düzenlemelerini cerrahi hassasiyetle yönetir.
85
+ 2. **♊ Gemini & Vertex AI (Stratejik Akıl):** Sistemin **Komuta Merkezi**dir. 2M+ token bağlam kapasitesiyle projenin tüm geçmişini ve mimari yapısını aynı anda analiz ederek üst düzey kararlar alır.
86
+ 3. **🛸 Antigravity (İç Disiplin):** Projenin **Askeri Akademisi**dir. İç standartlarımızı korumak için tasarlanmış, dış dünyadan izole ve yüksek disiplinli geliştirme ortamıdır.
87
+ 4. **🤖 Grok / X.ai (Keşif Birliği):** Projenin **Otonom Vizyonu**dur. Gelecek odaklı ajan protokollerini test etmek ve YZ tabanlı geliştirme sınırlarını zorlamak için kullanılır.
287
88
 
288
- ### Ön Gereksinimler
289
- - **Node.js** v20.0.0 veya üzeri (LTS sürümü önerilir).
290
- - **npm** v9+ veya **pnpm** v8+ veya **yarn** v3+.
291
- - **Git** (proje dizininde başlatılmış olmalıdır).
89
+ ## 🛡️ Enderun Disiplininin Beş Sarsılmaz Sütunu
292
90
 
293
- ### Adım Adım Kurulum
91
+ 1. **Mutlak İzlenebilirlik (Trace ID):** Her karar, her commit ve her kod satırı ULID tabanlı bir Trace ID ile damgalanır. Kurumsal denetim (audit) saniyeler içinde yapılabilir.
92
+ 2. **Önce Sözleşme (Contract-First):** Backend ve Frontend arasındaki veri kontratları mühürlenmeden kod yazılamaz. Tip güvenliği projenin kutsal yasasıdır.
93
+ 3. **Cerrahi Düzenleme Standardı:** Dosyaların tamamını üzerine yazmak yasaktır. Sistem, sadece değişen satırları güncelleyen `replace_text` ve `patch_file` araçlarını zorunlu kılar.
94
+ 4. **Otonom Hafıza Arşivleme (Auto-Prune):** `PROJECT_MEMORY.md` asla şişmez. 10 kayıt sınırını geçen tarihçeler otomatik arşivlenir; sistem her zaman taze ve ekonomik kalır.
95
+ 5. **Anayasal SSOT:** Tüm platformlar (Claude, Gemini vb.) tek bir üst otoriteye, `.enderun/ENDERUN.md` anayasasına %100 sadakatle bağlıdır.
294
96
 
295
- #### Adım 1: Proje dizininizi oluşturun ve Git'i başlatın
296
- ```bash
297
- mkdir benim-kurumsal-uygulamam
298
- cd benim-kurumsal-uygulamam
299
- git init
300
- ```
97
+ ## 🛠️ Kurulum ve Dağıtım
301
98
 
302
- #### Adım 2: Framework'ü Başlatın
303
- Aşağıdaki komut, projenizi analiz ederek uygun adaptörü kurar ve yönetişim yapısını hazırlar:
304
- ```bash
305
- npx agent-enderun init gemini
306
- ```
307
- *Not: Bir adaptör belirtilmezse standart olarak `gemini` kurulur ve framework çalışma ortamı `.enderun/` dizininde oluşturulur.*
99
+ Kullandığınız platforma göre tek komutla Agent Enderun'u başlatın:
308
100
 
309
- #### Adım 3: Bağımlılıkları Yükleyin ve MCP Sunucusunu Derleyin
310
101
  ```bash
311
- npm install
312
- npm run enderun:build
313
- ```
102
+ # Gemini CLI ve Antigravity için (Standart)
103
+ agent-enderun init gemini
314
104
 
315
- ---
105
+ # Claude Code (CLI & Desktop) için — Cerrahi Odaklı
106
+ agent-enderun init claude
316
107
 
317
- ### Sağlık ve Doğrulama Taraması
108
+ # Antigravity IDE/CLI Bağımsız Kurulumu
109
+ agent-enderun init antigravity
318
110
 
319
- Kurulum sonrasında veya büyük aşama geçişlerinde projenizin sağlık durumunu denetlemek için yerleşik tarayıcıyı çalıştırın:
320
- ```bash
321
- npx agent-enderun check
111
+ # Grok Build / X.ai Otonom Ajanları İçin
112
+ agent-enderun init grok
322
113
  ```
323
114
 
324
- #### Bu tarama neleri doğrular?
325
- - **Anayasa Güvenliği:** `ENDERUN.md` dosyasının mevcudiyetini ve doğruluğunu kontrol eder.
326
- - **Bellek Erişimi:** `.enderun/PROJECT_MEMORY.md` dosyasının etkin ve yazılabilir olduğunu denetler.
327
- - **Sözleşme Bütünlüğü:** `apps/backend/contract.version.json` dosyasını denetler.
328
- - **MCP Derlemesi:** `framework-mcp/dist/index.js` dosyasının derlendiğini doğrular.
329
- - **Teknoloji Yığını:** Projenin mimari stack tanımının `docs/tech-stack.md` içine yazılıp yazılmadığını kontrol eder.
330
-
331
- ---
332
-
333
- ## 3. Adaptörler ve Kullanım Senaryoları
115
+ ## 📋 CLI Komut Rehberi
334
116
 
335
- Agent Enderun, kullandığınız editör veya yapay zeka aracına uygun adaptörü dinamik olarak etkinleştirir.
117
+ | Komut | Açıklama |
118
+ | :--- | :--- |
119
+ | `status` | Aktif fazı, Trace ID'yi ve ajanların anlık sağlık skorlarını gösterir. |
120
+ | `check` | Sistemin anayasal sağlığını ve dosya bütünlüğünü denetler. |
121
+ | `trace:new` | Yeni bir görev zinciri başlatır ve orduyu görevlendirir. |
122
+ | `create-app` | Doğal dilden kurumsal monorepo (Fastify/React) üretir. |
123
+ | `verify-contract` | Backend ve Frontend arasındaki tip uyumluluğunu mühürler. |
336
124
 
337
- ### Gemini Adaptörü (Standart & Önerilen)
338
- - **Dizin:** `.enderun/`
339
- - **Hedef:** Gemini CLI, Google Vertex AI ve doğrudan Gemini API ortamları.
340
- - **Tetikleyici:** Proje kökündeki `gemini.md` dosyası (yapay zeka ilk bu dosyayı okuyarak anayasayı yükler).
341
- - **Avantaj:** Gemini'ın devasa bağlam (context window) kapasitesine göre optimize edilmiş araç çağrıları.
125
+ ## 📂 Sistem Mimarisi
342
126
 
343
- ### Claude & Cursor Adaptörleri
344
- - **Claude Adaptörü (`init claude`):** `.claude/` çalışma dizinini hazırlar. **Claude Code CLI** ve **Claude Desktop** için otomatik MCP bağlantılarını yapılandırır.
345
- - **Cursor Adaptörü (`init cursor`):** `.cursor/` klasörünü ve `.cursorrules` dosyasını oluşturarak Cursor IDE'nin kendi kod üretim sınırlarını Enderun kurallarına kilitler.
346
-
347
- ### Claude Code / Claude Desktop Entegrasyonu
348
-
349
- Agent Enderun, tam teşekküllü bir **Model Context Protocol (MCP)** sunucusu içerir. Bunu Claude ortamınıza bağlamak için `claude_desktop_config.json` dosyanıza veya global Claude CLI ayarlarınıza şu bloğu eklemeniz yeterlidir:
350
-
351
- ```json
352
- {
353
- "mcpServers": {
354
- "agent-enderun-mcp": {
355
- "command": "node",
356
- "args": ["/absolute/path/to/your/project/framework-mcp/dist/index.js"]
357
- }
358
- }
359
- }
360
- ```
361
-
362
- Bağlantı kurulduğunda, yapay zekanız şu araçları (tools) kullanma yeteneği kazanır:
363
- - `search_codebase` (Cerrahi kod arama)
364
- - `read_project_memory` & `update_project_memory` (Hafıza güncelleme)
365
- - `verify_api_contract` (Tip uyumluluk kontrolü)
366
- - `send_agent_message` (Ajanlar arası Hermes mesajlaşması)
367
-
368
- ---
369
-
370
- ## 4. Proje Geliştirme Akışları ve En İyi Pratikler
371
-
372
- Agent Enderun framework'ü üzerinde başarılı bir geliştirme süreci yürütmek için aşağıdaki adımları takip etmeniz zorunludur:
373
-
374
- ### A. Aşama Tabanlı Yaşam Döngüsü
375
- Geliştirme süreci asla atlanamayacak 5 ardışık fazdan oluşur:
376
- 1. **`PHASE_0` - Keşif ve Yapılandırma:** `docs/tech-stack.md` doldurulur ve Lightweight (MVP) veya Full (Kurumsal) yürütme profili seçilir.
377
- 2. **`PHASE_1` - Mimari ve Sözleşmeler:** Veri modelleri, API rotaları ve tip sözleşmeleri kilitlenir.
378
- 3. **`PHASE_2` - Çekirdek Geliştirme:** `apps/backend` ve `apps/web` paralel olarak kodlanır.
379
- 4. **`PHASE_3` - Entegrasyon ve Test:** `@qa` ajanı denetiminde **en az %80 birim/entegrasyon test kapsamı** zorunlu kapı olarak geçilir.
380
- 5. **`PHASE_4` - Optimizasyon ve Dağıtım:** Performans denetimleri tamamlanarak uygulama canlıya alınır.
381
-
382
- ### B. Trace ID Protokolü
383
- Aktif bir iş ULID'si olmadan kod yazmak veya commit atmak yasaktır.
384
- 1. Yeni bir göreve başlarken terminalden yeni bir Trace oluşturun:
385
- ```bash
386
- npx agent-enderun trace:new "JWT Yetkilendirme Modülü" backend P1
387
- ```
388
- 2. Bu komut benzersiz bir ULID üretir (örn: `01H7G8K5TJ5S6MF9Z7H8N4C2P`) ve bunu `.enderun/PROJECT_MEMORY.md` içindeki aktif görevler tablosuna yazar.
389
- 3. Tüm Git commit mesajlarınızda bu Trace ID'yi ön ek olarak kullanın:
390
- ```bash
391
- git commit -m "[01H7G8K5TJ5S6MF9Z7H8N4C2P] feat(auth): add JWT fastify plugins"
392
- ```
393
-
394
- ### C. Kontrat Öncelikli Geliştirme & Branded Types
395
- Hatalı kimlik atamalarını ve tip belirsizliklerini önlemek için projedeki tüm benzersiz kimlikler (ID) **Branded Types** formatında markalanmalıdır:
396
- ```typescript
397
- // apps/backend/src/types/brands.ts
398
- export type Brand<T, K extends string> = T & { __brand: K };
399
-
400
- export type UserID = Brand<string, "UserID">;
401
- export type ProjectID = Brand<string, "ProjectID">;
127
+ ```text
128
+ ├── .enderun/ <-- Sistemin Beyni
129
+ │ ├── agents/ <-- 12 Uzman Ajan Direktifi (Manager, Architect, QA...)
130
+ │ ├── knowledge/ <-- Kurumsal Akıl (ESLint, API, Güvenlik Standartları)
131
+ │ ├── memory-graph/ <-- Ortak Hafıza ve Ajan Bağlamları
132
+ │ ├── queue/ <-- Hermes Mesajlaşma ve Görev Kuyruğu
133
+ │ └── ENDERUN.md <-- Proje Anayasası (Üst Yasa)
134
+ ├── apps/ <-- Kurumsal Uygulama Alanı
135
+ ├── docs/ <-- Proje Mimari Portalı (ADRs, Tech-Stack)
136
+ └── framework-mcp/ <-- Otonom Operasyon Sunucusu
402
137
  ```
403
- `@backend` ajanı tüm bu tipleri ortak sözleşmeye yazıp `apps/backend/contract.version.json` dosyasını güncellemeden, `@frontend` ajanı kullanıcı arayüzü tasarlamaya başlayamaz.
404
-
405
- ### D. Sıfır Sahte Veri (Zero-Mock) & Sıfır UI Kütüphanesi Kanunu
406
- * **Sahte Veri Yasağı:** Arayüzler doğrudan doğrulanmış Fastify uç noktalarından ve Kysely veritabanı depolarından beslenmelidir (Stripe, Twilio gibi dış servis entegrasyonları hariç).
407
- * **Panda CSS Kullanımı:** TailwindCSS, MUI veya Shadcn/UI gibi hazır stillendirilmiş kütüphaneler (aksine bir `@manager` izni yoksa) yasaktır. Tasarımlar tamamen tip-güvenli **Panda CSS** belirteçleri (tokens) ile el değerek oluşturulur.
408
-
409
- ### E. Güvenlik ve Uyumluluk Taramaları
410
- Kaynak kodunuzu yerel olarak statik analizlerden geçirin:
411
- * **Güvenlik Denetimi:** Güvensiz veritabanı sorgularını, açık parola tanımlarını ve `any` veri tipi ihlallerini yakalar:
412
- ```bash
413
- npx agent-enderun check:security
414
- ```
415
- * **Anayasa Uyumluluğu:** Markalanmamış kimlik kullanımlarını ve yasaklı harici UI kütüphane bağımlılıklarını denetler:
416
- ```bash
417
- npx agent-enderun check:compliance
418
- ```
419
-
420
- ### F. Hermes Mesajlaşması & Görev Kuyrukları
421
- Paralel çalışan alt ajanlar (sub-agents), birbirleriyle Hermes Protokolü (`messages/` klasörü) üzerinden asenkron olarak mesajlaşır. İşlemler `.lock` kilit dosyalarıyla güvenceye alınır ve asenkron kuyruklar `.enderun/queue/` altında güvenle sıraya konur.
422
-
423
- ---
424
-
425
- ## 5. CLI Referans Klavuzu
426
-
427
- | Komut | Parametreler | Açıklama |
428
- | :--- | :--- | :--- |
429
- | `init` | `[adapter]` | Framework'ü başlatır. Desteklenen adaptörler: `gemini` (`.enderun/`), `claude` (`.claude/`), `cursor` (`.cursor/`). |
430
- | `check` | *Yok* | Projenin genel sağlık ve anayasal uyumluluk durumunu denetler. |
431
- | `status` | *Yok* | Aktif aşamayı, Trace ID'lerini, aktif ajan durumlarını ve engelleri (blockers) gösterir. |
432
- | `trace:new` | `<açıklama> [ajan] [öncelik]` | Yeni bir ULID Trace ID'si oluşturarak proje hafızasındaki aktif görevlere ekler. |
433
- | `create-app` | `<fikir>` | Doğal dil ile girilen gereksinimlerden sıfırdan kurumsal monorepo uygulaması üretir. |
434
- | `verify-contract` | *Yok* | Sözleşme karma değerlerini (hash) hesaplayarak backend-frontend tip uyumluluğunu doğrular. |
435
- | `check:security` | `[yol]` | Ham SQL, açık anahtarlar, innerHTML ve `any` tipi için güvenlik taraması yapar. |
436
- | `check:compliance` | `[yol]` | Branded Types uyumluluğunu ve yasaklı arayüz kütüphanelerini denetler. |
437
- | `explorer:graph` | `[yol]` | Dosyalar arası bağımlılıkları analiz ederek görsel Mermaid TD şeması üretir. |
438
- | `explorer:audit` | `[yol]` | Kod dosyalarının hangi uzman ajanın mülkiyetinde olduğunu listeleyen statik analiz yapar. |
439
- | `git:commit` | `<trace-id>` | Commit aşamasındaki staged dosyaları inceleyerek Trace ID uyumlu semantik commit mesajı önerir. |
440
- | `mcp` | *Yok* | Model Context Protocol stdio sunucusunu başlatır. |
441
- | `version` | *Yok* | Framework'ün mevcut sürüm numarasını yazdırır. |
442
138
 
443
139
  ---
444
140
 
445
- ## 6. Proje Klasör Dizilim Mimarisi
446
-
447
- Agent Enderun altında yönetilen örnek bir kurumsal monorepo yapısı:
448
-
449
- ```text
450
- ├── .enderun/ <-- Çalışma Zamanı & Hafıza Klasörü (v0.8.8)
451
- │ ├── agents/ <-- Uzman Ajan Direktifleri ve SOP Belgeleri
452
- │ ├── knowledge/ <-- Mimari Desenler ve Kodlama Kuralları
453
- │ ├── memory-graph/ <-- Paylaşılan Gerçekler ve Ajan Durumları
454
- │ ├── logs/ <-- Denetlenebilir Yapılandırılmış JSON Logları
455
- │ ├── queue/ <-- Asenkron Görev Yönetim Kuyruğu
456
- │ ├── PROJECT_MEMORY.md <-- Projenin Tek Güvenilir Ortak Beyni (SSOT)
457
- │ └── STATUS.md <-- Ajan Ordusu Durum Gösterge Paneli
458
- ├── apps/
459
- │ ├── backend/ <-- Fastify ve Kysely tabanlı Backend Çalışma Alanı
460
- │ │ └── contract.json <-- API Sözleşmeleri ve Doğrulama Özetleri
461
- │ └── web/ <-- React ve Panda CSS tabanlı Client Çalışma Alanı
462
- ├── docs/ <-- Kullanıcının Mimari İstekleri ve Stack Bilgileri
463
- ├── framework-mcp/ <-- MCP Sunucu Kaynak Kodları ve Araçlar
464
- ├── bin/ <-- Çalıştırılabilir CLI Giriş Noktası Binaries
465
- ├── ENDERUN.md <-- Sistem Anayasası (Supreme Law)
466
- └── package.json <-- Monorepo Çalışma Alanı Tanımları & Betikler
467
- ```
141
+ **Geliştiren / Developed by:** Yusuf BEKAR
142
+ **Sürüm / Version:** v0.9.0
143
+ **Lisans / License:** MIT
package/agent.md ADDED
@@ -0,0 +1,25 @@
1
+ # Agent Enderun — Antigravity Adapter
2
+
3
+ This is the primary entry point when using Agent Enderun within the Antigravity (IDE & CLI) 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/bin/cli.js CHANGED
@@ -1,19 +1,19 @@
1
1
  #!/usr/bin/env node
2
- import { spawn } from 'node:child_process';
3
- import { fileURLToPath } from 'node:url';
4
- import { dirname, join } from 'node:path';
2
+ import { spawn } from "node:child_process";
3
+ import { fileURLToPath } from "node:url";
4
+ import { dirname, join } from "node:path";
5
5
 
6
6
  const __filename = fileURLToPath(import.meta.url);
7
7
  const __dirname = dirname(__filename);
8
8
 
9
- const cliPath = join(__dirname, '../src/cli/index.ts');
9
+ const cliPath = join(__dirname, "../src/cli/index.ts");
10
10
 
11
11
  // shell: false kullanarak argümanların (tırnakların) bozulmasını önle
12
- const child = spawn('npx', ['tsx', cliPath, ...process.argv.slice(2)], {
13
- stdio: 'inherit',
14
- shell: false
12
+ const child = spawn("npx", ["tsx", cliPath, ...process.argv.slice(2)], {
13
+ stdio: "inherit",
14
+ shell: false
15
15
  });
16
16
 
17
- child.on('exit', (code) => {
18
- process.exit(code ?? 0);
17
+ child.on("exit", (code) => {
18
+ process.exit(code ?? 0);
19
19
  });