agent-enderun 0.0.1

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/package.json ADDED
@@ -0,0 +1,11 @@
1
+ {
2
+ "name": "agent-enderun",
3
+ "version": "0.0.1",
4
+ "type": "module",
5
+ "bin": {
6
+ "agent-enderun": "./bin/cli.js"
7
+ },
8
+ "scripts": {
9
+ "enderun:build": "npm run build --prefix packages/shared-types && npm run build --prefix packages/framework-mcp"
10
+ }
11
+ }
@@ -0,0 +1,95 @@
1
+ # AI-Enderun MCP Server v0.1.5
2
+
3
+ English | [Türkçe](#türkçe)
4
+
5
+ The `ai-enderun-mcp` package implements the Model Context Protocol server for AI-Enderun. It enables AI clients to inspect the repository, enforce conventions, manage project memory, and verify shared contract integrity.
6
+
7
+ ## English
8
+
9
+ ### Purpose
10
+
11
+ This package is the intelligence bridge between AI clients and the local repository. It gives agents structured access to repository state, rules, and verification tools.
12
+
13
+ ### What it provides
14
+
15
+ - **Framework Status & Memory:** Evaluates active phase, trace IDs, and project history.
16
+ - **Search & Analysis:** AST-powered code search, dependency analysis, and pattern discovery.
17
+ - **Contract Verification:** Confirms shared types and API contracts match the stored hash.
18
+ - **Security Auditing:** Detects unsafe patterns such as raw SQL, console logs, and `any` usage.
19
+ - **Structured Logging:** Centralized JSON logs for agent actions and traceability.
20
+
21
+ ### Tools exposed to agents
22
+
23
+ - `get_framework_status`
24
+ - `search_codebase`
25
+ - `analyze_dependencies`
26
+ - `get_memory_insights`
27
+ - `update_project_memory`
28
+ - `get_project_gaps`
29
+ - `security_audit_scan`
30
+ - `verify_api_contract`
31
+ - `update_contract_hash`
32
+ - `log_agent_action`
33
+
34
+ ### Development
35
+
36
+ ```bash
37
+ cd packages/framework-mcp
38
+ npm install
39
+ npm run build
40
+ npm run dev
41
+ ```
42
+
43
+ ### Integration role
44
+
45
+ This package interprets and verifies:
46
+
47
+ - `.gemini/` or chosen adapter directories for agent SOPs and configuration.
48
+ - `docs/` for project requirements and API contract definitions.
49
+ - `packages/shared-types/` for contract-first type validation.
50
+
51
+ ## Türkçe
52
+
53
+ `ai-enderun-mcp`, AI-Enderun için Model Context Protocol (MCP) sunucusunu sağlar. AI istemcilerinin depoyu incelemesi, kuralları denetlemesi, proje hafızasını yönetmesi ve paylaşılan kontrat bütünlüğünü doğrulaması için yapılandırılmış bir arayüz sunar.
54
+
55
+ ### Ne sağlar?
56
+
57
+ - **Framework Durumu & Hafıza:** Aktif faz, trace ID'leri ve proje geçmişi değerlendirmesi.
58
+ - **Arama & Analiz:** AST destekli kod arama, bağımlılık analizi ve desen keşfi.
59
+ - **Kontrat Doğrulama:** Paylaşılan tipler ve API sözleşmelerinin kayıtlı hash ile uyumunu kontrol eder.
60
+ - **Güvenlik Denetimi:** Raw SQL, console.log ve `any` kullanımı gibi güvensiz modelleri tespit eder.
61
+ - **Yapısal Loglama:** Ajan eylemleri için merkezi JSON tabanlı takip.
62
+
63
+ ### Araçlar
64
+
65
+ - `get_framework_status`
66
+ - `search_codebase`
67
+ - `analyze_dependencies`
68
+ - `get_memory_insights`
69
+ - `update_project_memory`
70
+ - `get_project_gaps`
71
+ - `security_audit_scan`
72
+ - `verify_api_contract`
73
+ - `update_contract_hash`
74
+ - `log_agent_action`
75
+
76
+ ### Geliştirme
77
+
78
+ ```bash
79
+ cd packages/framework-mcp
80
+ npm install
81
+ npm run build
82
+ npm run dev
83
+ ```
84
+
85
+ ### Entegrasyon rolü
86
+
87
+ Bu paket şunları yorumlar ve doğrular:
88
+
89
+ - Ajan SOP’ları ve yapılandırma için `.gemini/` veya seçilen adaptör dizinleri.
90
+ - Proje gereksinimleri ve API sözleşmeleri için `docs/`.
91
+ - Kontrat-öncelikli tip doğrulaması için `packages/shared-types/`.
92
+
93
+ ## License
94
+
95
+ MIT
@@ -0,0 +1,84 @@
1
+ # AI-Enderun Shared Types v0.1.5
2
+
3
+ English | [Türkçe](#türkçe)
4
+
5
+ The `@ai-enderun/shared-types` package is the core contract layer of AI-Enderun. It defines the shared data model, API request/response shapes, and branded identifiers that backend and frontend agents must agree on before implementation.
6
+
7
+ ## English
8
+
9
+ ### Purpose
10
+
11
+ This package prevents contract drift and enforces a contract-first workflow across the entire repository. It is the single source of truth for typed API boundaries, domain IDs, and common response shapes.
12
+
13
+ ### Why it matters
14
+
15
+ - Ensures frontend and backend agree on the same data structures.
16
+ - Avoids duplicate type definitions across implementations.
17
+ - Supports traceable API contract validation with `contract.version.json`.
18
+ - Makes AI-assisted development safer and more predictable.
19
+
20
+ ### Principles
21
+
22
+ - **Contract-First:** Define shared types before implementation.
23
+ - **Branded Identifiers:** Use domain-specific IDs such as `UserID` and `SessionID`.
24
+ - **Explicit Response Shapes:** Keep success and error payloads consistent.
25
+ - **ULID Support:** Native support for sortable 26-character identifiers.
26
+ - **Hash Verification:** Recalculate and verify the contract hash whenever shared types change.
27
+
28
+ ### Development
29
+
30
+ ```bash
31
+ cd packages/shared-types
32
+ npm install
33
+ npm run build
34
+ npm run typecheck
35
+ ```
36
+
37
+ ### Usage
38
+
39
+ ```typescript
40
+ import { ApiResponse, SessionID, UserID } from "@ai-enderun/shared-types";
41
+ ```
42
+
43
+ ### Contract Workflow
44
+
45
+ 1. Modify or add types in `packages/shared-types/src/index.ts`.
46
+ 2. Build the package and confirm consuming code compiles.
47
+ 3. Update `packages/shared-types/contract.version.json` whenever the shared surface changes.
48
+ 4. Document related endpoint contracts in `{{FRAMEWORK_DIR}}/docs/api/`.
49
+
50
+ ## Türkçe
51
+
52
+ `@ai-enderun/shared-types`, AI-Enderun’un paylaşılan kontrat katmanıdır. Backend ve frontend ajanlarının ortaklaşa uzlaşması gereken veri modellerini, API istek/yanıt biçimlerini ve branded kimlikleri tanımlar.
53
+
54
+ ### Amaç
55
+
56
+ Bu paket, kontrat kaymasını önler ve depo genelinde kontrat-öncelikli bir iş akışı sağlar. Ortak türler, domain ID’leri ve yanıt yapıları için tek kaynak olarak çalışır.
57
+
58
+ ### Neden önemli?
59
+
60
+ - Frontend ve backend’in aynı veri yapıları üzerinde anlaşmasını sağlar.
61
+ - Tekrarlanan tip tanımlarını engeller.
62
+ - `contract.version.json` ile API sözleşmesi doğrulanmasını destekler.
63
+ - AI destekli geliştirmeyi daha güvenli ve öngörülebilir hale getirir.
64
+
65
+ ### İlkeler
66
+
67
+ - **Önce Kontrat:** Ortak tipler uygulanmadan önce tanımlanır.
68
+ - **Branded Kimlikler:** `UserID`, `SessionID` gibi domain-özel kimlikler kullanılır.
69
+ - **Açık Yanıt Şekilleri:** Başarı ve hata yükleri tutarlı tutulur.
70
+ - **ULID Desteği:** 26 karakterlik sıralanabilir kimlikler.
71
+ - **Hash Doğrulama:** Paylaşılan tipler değiştiğinde kontrat hash’i güncellenir.
72
+
73
+ ### Geliştirme
74
+
75
+ ```bash
76
+ cd packages/shared-types
77
+ npm install
78
+ npm run build
79
+ npm run typecheck
80
+ ```
81
+
82
+ ## License
83
+
84
+ MIT
@@ -0,0 +1,3 @@
1
+ packages:
2
+ - 'apps/*'
3
+ - 'packages/*'