agent-enderun 0.1.10 → 0.2.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.
- package/.enderun/BRAIN_DASHBOARD.md +43 -0
- package/.enderun/ENDERUN.md +203 -0
- package/.enderun/PROJECT_MEMORY.md +137 -36
- package/.enderun/agents/analyst.md +21 -10
- package/.enderun/agents/backend.md +12 -11
- package/.enderun/agents/explorer.md +10 -7
- package/.enderun/agents/frontend.md +9 -20
- package/.enderun/agents/git.md +16 -12
- package/.enderun/agents/manager.md +14 -15
- 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 +13 -1
- package/.enderun/config.json +1 -1
- package/.enderun/docs/api/README.md +10 -9
- package/.enderun/docs/api/auth.md +11 -0
- package/.enderun/docs/api/errors.md +7 -0
- package/.enderun/docs/error-handling.md +12 -0
- package/.enderun/docs/privacy.md +3 -0
- package/.enderun/docs/security.md +12 -0
- package/.enderun/docs/tech-stack.md +1 -0
- package/.enderun/docs/troubleshooting.md +7 -0
- package/.enderun/knowledge/api_design_rules.md +6 -0
- package/.enderun/knowledge/async_error_handling.md +18 -0
- package/.enderun/knowledge/branded_types_pattern.md +1 -0
- package/.enderun/knowledge/code_review_checklist.md +7 -0
- package/.enderun/knowledge/contract_versioning.md +7 -0
- package/.enderun/knowledge/database_migration.md +6 -0
- package/.enderun/knowledge/deployment_checklist.md +7 -0
- package/.enderun/knowledge/git_commit_strategy.md +10 -0
- package/.enderun/knowledge/legacy_onboarding.md +7 -0
- package/.enderun/knowledge/monitoring_setup.md +5 -0
- package/.enderun/knowledge/performance_guidelines.md +11 -0
- package/.enderun/knowledge/repository_patterns.md +9 -0
- package/.enderun/knowledge/security_scanning.md +6 -0
- package/.enderun/knowledge/testing_standards.md +7 -0
- package/.enderun/knowledge/troubleshooting_guide.md +5 -0
- package/.enderun/knowledge/zero_ui_library_policy.md +1 -0
- package/.enderun/logs/analyst.json +1 -0
- package/.enderun/logs/backend.json +1 -0
- package/.enderun/logs/explorer.json +1 -0
- package/.enderun/logs/frontend.json +1 -0
- package/.enderun/logs/git.json +1 -0
- package/.enderun/logs/manager.json +363 -0
- package/.enderun/logs/mobile.json +1 -0
- package/.enderun/logs/native.json +1 -0
- package/.enderun/monitoring/.gitkeep +0 -0
- package/ENDERUN.md +8 -8
- package/LICENSE +21 -0
- package/README.md +595 -195
- package/bin/cli.js +306 -79
- package/package.json +35 -2
- package/packages/framework-mcp/README.md +47 -81
- package/packages/framework-mcp/dist/index.js +13 -971
- package/packages/framework-mcp/dist/schemas.js +84 -0
- package/packages/framework-mcp/dist/tools/academy.js +184 -0
- package/packages/framework-mcp/dist/tools/codebase.js +294 -0
- package/packages/framework-mcp/dist/tools/contract.js +95 -0
- package/packages/framework-mcp/dist/tools/database.js +52 -0
- package/packages/framework-mcp/dist/tools/framework.js +161 -0
- package/packages/framework-mcp/dist/tools/git.js +53 -0
- package/packages/framework-mcp/dist/tools/index.js +42 -0
- package/packages/framework-mcp/dist/tools/knowledge.js +69 -0
- package/packages/framework-mcp/dist/tools/memory.js +94 -0
- package/packages/framework-mcp/dist/tools/messages.js +71 -0
- package/packages/framework-mcp/dist/tools/repository.js +76 -0
- package/packages/framework-mcp/dist/tools/security.js +122 -0
- package/packages/framework-mcp/dist/utils.js +82 -0
- package/packages/framework-mcp/package-lock.json +1836 -0
- package/packages/framework-mcp/package.json +1 -1
- package/packages/framework-mcp/src/index.ts +20 -970
- package/packages/framework-mcp/src/schemas.ts +106 -0
- package/packages/framework-mcp/src/tools/academy.ts +178 -0
- package/packages/framework-mcp/src/tools/codebase.ts +284 -0
- package/packages/framework-mcp/src/tools/contract.ts +91 -0
- package/packages/framework-mcp/src/tools/database.ts +49 -0
- package/packages/framework-mcp/src/tools/framework.ts +157 -0
- package/packages/framework-mcp/src/tools/git.ts +43 -0
- package/packages/framework-mcp/src/tools/index.ts +45 -0
- package/packages/framework-mcp/src/tools/knowledge.ts +68 -0
- package/packages/framework-mcp/src/tools/memory.ts +88 -0
- package/packages/framework-mcp/src/tools/messages.ts +70 -0
- package/packages/framework-mcp/src/tools/repository.ts +76 -0
- package/packages/framework-mcp/src/tools/security.ts +122 -0
- package/packages/framework-mcp/src/utils.ts +90 -0
- package/packages/framework-mcp/tests/mcp-server.test.ts +6 -0
- package/packages/shared-types/README.md +28 -51
- package/packages/shared-types/contract.version.json +4 -4
- package/packages/shared-types/dist/index.d.ts +80 -48
- package/packages/shared-types/dist/index.d.ts.map +1 -1
- package/packages/shared-types/dist/index.js +5 -8
- package/packages/shared-types/dist/index.js.map +1 -1
- package/packages/shared-types/package.json +1 -1
- package/packages/shared-types/src/index.ts +79 -51
- package/CHANGELOG.md +0 -97
- package/CLAUDE.md +0 -7
- package/CODEX.md +0 -7
- package/CURSOR.md +0 -7
- package/GEMINI.md +0 -7
- package/docs/tech-stack.md +0 -10
- package/gemini-extension.json +0 -5
- package/panda.config.ts +0 -20
- /package/{docs → .enderun/docs}/project-docs.md +0 -0
|
@@ -1,74 +1,102 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
3
|
-
*
|
|
4
|
-
*
|
|
2
|
+
* Agent Enderun — Shared Types
|
|
3
|
+
*
|
|
4
|
+
* This file is the Single Source of Truth for all Backend and Frontend communication.
|
|
5
|
+
* All IDs use the Branded Types pattern for type safety.
|
|
5
6
|
*/
|
|
6
7
|
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
};
|
|
12
|
-
|
|
13
|
-
export type UserID = Brand<string, 'UserID'>;
|
|
14
|
-
export type SessionID = Brand<string, 'SessionID'>;
|
|
8
|
+
/**
|
|
9
|
+
* Branded Type Utility
|
|
10
|
+
*/
|
|
11
|
+
export type Brand<K, T> = K & { __brand: T };
|
|
15
12
|
|
|
16
|
-
|
|
17
|
-
|
|
13
|
+
/**
|
|
14
|
+
* Entity IDs (Branded)
|
|
15
|
+
*/
|
|
16
|
+
export type TraceID = Brand<string, "TraceID">;
|
|
17
|
+
export type AgentID = Brand<string, "AgentID">;
|
|
18
|
+
export type ProjectID = Brand<string, "ProjectID">;
|
|
19
|
+
export type UserID = Brand<string, "UserID">;
|
|
18
20
|
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
21
|
+
/**
|
|
22
|
+
* Domain Models
|
|
23
|
+
*/
|
|
24
|
+
export interface User {
|
|
25
|
+
id: UserID;
|
|
26
|
+
email: string;
|
|
27
|
+
fullName: string;
|
|
28
|
+
role: "ADMIN" | "DEVELOPER" | "VIEWER";
|
|
29
|
+
createdAt: string;
|
|
22
30
|
}
|
|
23
31
|
|
|
24
|
-
export interface
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
limit: number;
|
|
29
|
-
hasMore: boolean;
|
|
32
|
+
export interface UserProfile extends User {
|
|
33
|
+
avatarUrl?: string;
|
|
34
|
+
bio?: string;
|
|
35
|
+
preferences: Record<string, unknown>;
|
|
30
36
|
}
|
|
31
37
|
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
38
|
+
/**
|
|
39
|
+
* Project Status Types
|
|
40
|
+
*/
|
|
41
|
+
export type ProjectPhase = "PHASE_0" | "PHASE_1" | "PHASE_2" | "PHASE_3" | "PHASE_4";
|
|
42
|
+
export type ExecutionProfile = "Lightweight" | "Full";
|
|
36
43
|
|
|
37
|
-
export interface
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
44
|
+
export interface ProjectStatus {
|
|
45
|
+
phase: ProjectPhase;
|
|
46
|
+
profile: ExecutionProfile;
|
|
47
|
+
lastUpdate: string;
|
|
48
|
+
activeTraceId: TraceID | null;
|
|
49
|
+
blockers: string[];
|
|
42
50
|
}
|
|
43
51
|
|
|
44
|
-
|
|
52
|
+
/**
|
|
53
|
+
* Task Management Types
|
|
54
|
+
*/
|
|
55
|
+
export type TaskPriority = "P0" | "P1" | "P2" | "P3";
|
|
56
|
+
export type TaskStatus = "PENDING" | "IN_PROGRESS" | "BLOCKED" | "COMPLETED" | "FAILED";
|
|
45
57
|
|
|
46
|
-
export interface
|
|
47
|
-
id:
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
58
|
+
export interface Task {
|
|
59
|
+
id: TraceID;
|
|
60
|
+
description: string;
|
|
61
|
+
agent: AgentID;
|
|
62
|
+
priority: TaskPriority;
|
|
63
|
+
status: TaskStatus;
|
|
51
64
|
createdAt: string;
|
|
52
65
|
updatedAt: string;
|
|
53
66
|
}
|
|
54
67
|
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
68
|
+
/**
|
|
69
|
+
* Audit & Agent Logging Types
|
|
70
|
+
*/
|
|
71
|
+
export type ActionType = "CREATE" | "MODIFY" | "DELETE" | "RESEARCH" | "ORCHESTRATE";
|
|
72
|
+
export type ActionStatus = "SUCCESS" | "FAILURE" | "WAITING";
|
|
60
73
|
|
|
61
|
-
export interface
|
|
62
|
-
|
|
63
|
-
|
|
74
|
+
export interface AgentActionLog {
|
|
75
|
+
timestamp: string;
|
|
76
|
+
agent: AgentID;
|
|
77
|
+
action: ActionType;
|
|
78
|
+
requestId: TraceID | "—";
|
|
79
|
+
status: ActionStatus;
|
|
80
|
+
summary: string;
|
|
81
|
+
files?: string[];
|
|
82
|
+
details?: Record<string, unknown>;
|
|
64
83
|
}
|
|
65
84
|
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
85
|
+
/**
|
|
86
|
+
* API Response Wrappers
|
|
87
|
+
*/
|
|
88
|
+
export interface ApiResponse<T> {
|
|
89
|
+
data: T;
|
|
90
|
+
meta?: {
|
|
91
|
+
requestId: TraceID;
|
|
92
|
+
timestamp: string;
|
|
93
|
+
};
|
|
70
94
|
}
|
|
71
95
|
|
|
72
|
-
export interface
|
|
73
|
-
|
|
96
|
+
export interface ApiError {
|
|
97
|
+
error: {
|
|
98
|
+
code: string;
|
|
99
|
+
message: string;
|
|
100
|
+
details?: unknown;
|
|
101
|
+
};
|
|
74
102
|
}
|
package/CHANGELOG.md
DELETED
|
@@ -1,97 +0,0 @@
|
|
|
1
|
-
# Changelog
|
|
2
|
-
|
|
3
|
-
All notable changes to this project will be documented in this file.
|
|
4
|
-
|
|
5
|
-
## [0.1.10] - 2026-05-09
|
|
6
|
-
|
|
7
|
-
### Added
|
|
8
|
-
- **Panda CSS Integration:** Transitioned from UnoCSS to Panda CSS for frontend styling.
|
|
9
|
-
- **Auto-Scaffolding:** The `init` command now automatically adds Panda CSS dependencies and a `panda.config.ts` configuration to new projects.
|
|
10
|
-
- **Atomic CSS support:** Enabled Attributify and Icons presets by default in the generated projects.
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
## [0.1.0] - 2026-05-09
|
|
14
|
-
|
|
15
|
-
### Fixed
|
|
16
|
-
- **Clean Slate Initialization:** The `init` command now automatically detects and removes existing `package-lock.json` files in target directories before installation. This prevents `EUNSUPPORTEDPROTOCOL` errors caused by stale lockfiles from previous versions.
|
|
17
|
-
- **Robust Protocol Sanitization:** Refined the regex for `workspace:` protocol removal to be more comprehensive across all configuration files.
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
## [0.0.9] - 2026-05-09
|
|
21
|
-
|
|
22
|
-
### Fixed
|
|
23
|
-
- **NPM Bin Fix:** Corrected the `bin` field in `package.json` to ensure the `agent-enderun` command is correctly linked by NPM during installation. Removed the redundant `./` prefix that was causing validation warnings.
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
## [0.0.8] - 2026-05-09
|
|
27
|
-
|
|
28
|
-
### Fixed
|
|
29
|
-
- **EUNSUPPORTEDPROTOCOL Final Fix:** Added global sanitization for the `workspace:` protocol in all text files (not just root package.json). This ensures cross-package dependencies work correctly after being copied.
|
|
30
|
-
- **Lockfile Conflict Resolution:** The `init` command now explicitly skips `package-lock.json` files from the template to prevent registry conflicts during first install.
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
## [0.0.7] - 2026-05-09
|
|
34
|
-
|
|
35
|
-
### Added
|
|
36
|
-
- **NPM Workspaces Support:** The `init` command now automatically adds the `workspaces` field to the target `package.json`. This ensures that a single `npm install` in the project root correctly installs all dependencies for `shared-types` and `framework-mcp`.
|
|
37
|
-
|
|
38
|
-
### Fixed
|
|
39
|
-
- **Build Path Issues:** Updated build scripts to use `npx tsc`, allowing them to find the TypeScript compiler even when dependencies are hoisted to the root `node_modules` in a workspace environment.
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
## [0.0.6] - 2026-05-09
|
|
43
|
-
|
|
44
|
-
### Fixed
|
|
45
|
-
- **CLI Init Bug:** Fixed `ENOENT` error during `init` when remapping `.enderun` sub-files to adapter-specific directories (e.g., `.gemini`). Now correctly handles all nested framework files.
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
## [0.0.5] - 2026-05-09
|
|
49
|
-
|
|
50
|
-
### Fixed
|
|
51
|
-
- **MCP SDK v1.29.0 Compatibility:** Updated import paths in `framework-mcp` to support latest SDK versions (ESM resolution fixes).
|
|
52
|
-
- **Source Code Restoration:** Reconstructed missing `src/` directories and `tsconfig.json` for both `shared-types` and `framework-mcp` from compiled assets.
|
|
53
|
-
- **Contract Synchronization:** Generated real SHA-256 hash for shared types in `contract.version.json`.
|
|
54
|
-
- **EUNSUPPORTEDPROTOCOL Solved:** Added recursive `workspace:` protocol sanitization for all copied `package.json` files.
|
|
55
|
-
- **Dynamic Build Scripts:** `enderun:build` script now uses the detected package manager dynamically.
|
|
56
|
-
|
|
57
|
-
### Added
|
|
58
|
-
- **Multi-Agent Adapters:** Added `GEMINI.md`, `CLAUDE.md`, `CURSOR.md`, and `CODEX.md` bridge files.
|
|
59
|
-
- **Project Structure:** Added automatic creation of `.enderun/` core files (`STATUS.md`, `cli-commands.json`, `config.json`).
|
|
60
|
-
- **NPM Package Discipline:** Added `files` field to root `package.json` to ensure clean distribution.
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
### Changed
|
|
64
|
-
- **Smart Package Manager Detection:** Added native `pnpm` detection (via `pnpm-lock.yaml` and `pnpm-workspace.yaml`).
|
|
65
|
-
- **Standardized Execution:** Preferring `npm run` but respecting local lockfiles and environment overrides.
|
|
66
|
-
- Simplified package manager detection to prefer local context and respect explicit overrides.
|
|
67
|
-
|
|
68
|
-
## [0.0.3] - 2026-05-09
|
|
69
|
-
|
|
70
|
-
### Fixed
|
|
71
|
-
- Updated the package to `0.0.3` for npm republish and workspace-compatible CLI install behavior.
|
|
72
|
-
|
|
73
|
-
## [0.0.2] - 2026-05-09
|
|
74
|
-
|
|
75
|
-
### Fixed
|
|
76
|
-
- Resolved CLI initialization crash in `npx agent-enderun init` when published package metadata omitted `devDependencies`.
|
|
77
|
-
|
|
78
|
-
## [0.0.1] - 2026-05-09
|
|
79
|
-
|
|
80
|
-
### Added
|
|
81
|
-
- **Fresh Baseline:** Initial beta release of the Supreme AI Orchestration Framework.
|
|
82
|
-
- **Optimized Distribution:** Lightweight package structure with pre-built assets.
|
|
83
|
-
- **Multi-Adapter Support:** Full readiness for Gemini, Claude, Cursor, and Codex.
|
|
84
|
-
|
|
85
|
-
### Fixed & Improved
|
|
86
|
-
- **Module Resolution:** Switched to `bundler` resolution mode in all packages to solve ESM resolution issues in monorepos.
|
|
87
|
-
- **Import Paths:** Removed explicit `.js` extensions from TypeScript source files to align with modern build standards.
|
|
88
|
-
- **Package Management:** Professionalized `package.json` files; `main`, `module`, and `types` now point to `dist/` for better consumer compatibility.
|
|
89
|
-
- **CLI Intelligence:** Enhanced `ai-enderun check` to correctly detect hoisted `node_modules` in monorepos.
|
|
90
|
-
- **TypeScript Alignment:** Synchronized core dependencies (Zod, ts-morph, MCP SDK) to prevent type conflicts.
|
|
91
|
-
- **Stability:** Removed deprecated `baseUrl` options causing warnings in newer TypeScript versions.
|
|
92
|
-
- **Documentation Standards:** Fixed `ENDERUN.md` to point API contracts to `{{FRAMEWORK_DIR}}/docs/api/` for better agent alignment and cleaner project root.
|
|
93
|
-
- **CLI Health:** Added API Registry verification to `ai-enderun check` command.
|
|
94
|
-
- **NPM Compatibility:** Added automatic `workspace:` protocol sanitization during `init` to prevent `EUNSUPPORTEDPROTOCOL` errors.
|
|
95
|
-
- **Documentation Update:** Expanded root README with a comprehensive project overview, architecture explanation, onboarding workflow, and package manager guidance.
|
|
96
|
-
- **CLI Improvement:** Added robust package manager detection and explicit `AI_ENDERUN_PACKAGE_MANAGER` / `AI_ENDERUN_PM` override support.
|
|
97
|
-
|
package/CLAUDE.md
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
# Agent Enderun — Claude Adapter
|
|
2
|
-
|
|
3
|
-
This file is the entry point for Claude. The project's "Supreme Law" and all instructions are located in the following file:
|
|
4
|
-
|
|
5
|
-
👉 **[{{FRAMEWORK_DIR}}/ENDERUN.md]({{FRAMEWORK_DIR}}/ENDERUN.md)**
|
|
6
|
-
|
|
7
|
-
Please read that file thoroughly before taking any action.
|
package/CODEX.md
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
# Agent Enderun — Codex Adapter
|
|
2
|
-
|
|
3
|
-
This file is the entry point for Codex. The project's "Supreme Law" and all instructions are located in the following file:
|
|
4
|
-
|
|
5
|
-
👉 **[{{FRAMEWORK_DIR}}/ENDERUN.md]({{FRAMEWORK_DIR}}/ENDERUN.md)**
|
|
6
|
-
|
|
7
|
-
Please read that file thoroughly before taking any action.
|
package/CURSOR.md
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
# Agent Enderun — Cursor Adapter
|
|
2
|
-
|
|
3
|
-
This file is the entry point for Cursor. The project's "Supreme Law" and all instructions are located in the following file:
|
|
4
|
-
|
|
5
|
-
👉 **[{{FRAMEWORK_DIR}}/ENDERUN.md]({{FRAMEWORK_DIR}}/ENDERUN.md)**
|
|
6
|
-
|
|
7
|
-
Please read that file thoroughly before taking any action.
|
package/GEMINI.md
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
# Agent Enderun — Gemini Adapter
|
|
2
|
-
|
|
3
|
-
This file is the entry point for Gemini. The project's "Supreme Law" and all instructions are located in the following file:
|
|
4
|
-
|
|
5
|
-
👉 **[{{FRAMEWORK_DIR}}/ENDERUN.md]({{FRAMEWORK_DIR}}/ENDERUN.md)**
|
|
6
|
-
|
|
7
|
-
Please read that file thoroughly before taking any action.
|
package/docs/tech-stack.md
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
# TECH STACK
|
|
2
|
-
|
|
3
|
-
| Layer | Technology |
|
|
4
|
-
| :--- | :--- |
|
|
5
|
-
| Frontend | React 19 + Vite (SPA) |
|
|
6
|
-
| Styling | Panda CSS |
|
|
7
|
-
| Backend | Node.js (Fastify/Hono) |
|
|
8
|
-
| Database | PostgreSQL (Kysely) |
|
|
9
|
-
| Architecture | Contract-First (Shared Types) |
|
|
10
|
-
| AI Adapter | Gemini / Claude / Cursor |
|
package/gemini-extension.json
DELETED
package/panda.config.ts
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { defineConfig } from "@pandacss/dev"
|
|
2
|
-
|
|
3
|
-
export default defineConfig({
|
|
4
|
-
// Whether to use css reset
|
|
5
|
-
preflight: true,
|
|
6
|
-
|
|
7
|
-
// Where to look for your css declarations
|
|
8
|
-
include: ["./src/**/*.{js,jsx,ts,tsx}", "./pages/**/*.{js,jsx,ts,tsx}"],
|
|
9
|
-
|
|
10
|
-
// Files to exclude
|
|
11
|
-
exclude: [],
|
|
12
|
-
|
|
13
|
-
// Useful for theme customization
|
|
14
|
-
theme: {
|
|
15
|
-
extend: {}
|
|
16
|
-
},
|
|
17
|
-
|
|
18
|
-
// The output directory for your css system
|
|
19
|
-
outdir: "styled-system",
|
|
20
|
-
})
|
|
File without changes
|