agent-enderun 0.7.2 → 0.7.5
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 +47 -0
- package/.enderun/PROJECT_MEMORY.md +139 -0
- package/.enderun/STATUS.md +62 -0
- package/.enderun/agents/agent_army_schema.json +85 -0
- package/.enderun/agents/analyst/agent.json +23 -0
- package/.enderun/agents/analyst/prompt.md +225 -0
- package/.enderun/agents/backend/agent.json +24 -0
- package/.enderun/agents/backend/prompt.md +331 -0
- package/.enderun/agents/devops/agent.json +61 -0
- package/.enderun/agents/devops/prompt.md +127 -0
- package/.enderun/agents/explorer/agent.json +22 -0
- package/.enderun/agents/explorer/prompt.md +115 -0
- package/.enderun/agents/frontend/agent.json +24 -0
- package/.enderun/agents/frontend/prompt.md +313 -0
- package/.enderun/agents/git/agent.json +22 -0
- package/.enderun/agents/git/prompt.md +99 -0
- package/.enderun/agents/manager/agent.json +48 -0
- package/.enderun/agents/manager/prompt.md +231 -0
- package/.enderun/agents/mobile/agent.json +21 -0
- package/.enderun/agents/mobile/prompt.md +91 -0
- package/.enderun/agents/native/agent.json +21 -0
- package/.enderun/agents/native/prompt.md +96 -0
- package/.enderun/agents/orchestrator/agent.json +53 -0
- package/.enderun/agents/orchestrator/prompt.md +124 -0
- package/.enderun/agents/qa/agent.json +57 -0
- package/.enderun/agents/qa/prompt.md +69 -0
- package/.enderun/agents/schema/agent-lifecycle-schema.json +65 -0
- package/.enderun/agents/security/agent.json +54 -0
- package/.enderun/agents/security/prompt.md +154 -0
- package/.enderun/gemini.md +19 -0
- package/.enderun/knowledge/corporate-governance/analyst-contract-integrity-guide.md +92 -0
- package/.enderun/knowledge/corporate-governance/audit-logging-standard.md +59 -0
- package/.enderun/knowledge/corporate-governance/backend-high-risk-endpoint-guide.md +125 -0
- package/.enderun/knowledge/corporate-governance/branded-types-law.md +77 -0
- package/.enderun/knowledge/corporate-governance/contract-drift-detection-simulation.md +92 -0
- package/.enderun/knowledge/corporate-governance/corporate-governance-playbook.md +89 -0
- package/.enderun/knowledge/corporate-governance/corporate-project-kickoff-checklist.md +56 -0
- package/.enderun/knowledge/corporate-governance/corporate-project-kickoff-simulation.md +144 -0
- package/.enderun/knowledge/corporate-governance/corporate-project-scaffolding-sop.md +103 -0
- package/.enderun/knowledge/corporate-governance/domain-error-handling-standard.md +75 -0
- package/.enderun/knowledge/corporate-governance/frontend-high-risk-modal-guide.md +211 -0
- package/.enderun/knowledge/corporate-governance/governance-baseline-briefing-template.md +54 -0
- package/.enderun/knowledge/corporate-governance/high-risk-action-approval-flow-simulation.md +167 -0
- package/.enderun/knowledge/corporate-governance/high-risk-actions-managerapproval.md +76 -0
- package/.enderun/knowledge/corporate-governance/high-risk-security-modal-hermes-flow.md +49 -0
- package/.enderun/knowledge/corporate-governance/manager-first-30-days-guide.md +112 -0
- package/.enderun/knowledge/corporate-governance/manager-first-three-briefings.md +79 -0
- package/.enderun/knowledge/deployment_checklist.md +7 -0
- package/{.antigravitycli → .enderun}/knowledge/framework_vs_user_project_boundary.md +3 -3
- package/{.antigravitycli → .enderun}/knowledge/frontend_professionalization_guidelines.md +17 -20
- package/{.antigravitycli → .enderun}/knowledge/hermes_live_test_guidelines.md +9 -9
- package/{.antigravitycli → .enderun}/knowledge/hermes_protocol.md +2 -2
- package/.enderun/knowledge/kentim_constitution.md +34 -0
- package/{.antigravitycli → .enderun}/knowledge/manager_authority_audit_enforcement.md +11 -11
- package/{.antigravitycli → .enderun}/knowledge/project_scaffold_guidelines.md +8 -8
- package/{.antigravitycli → .enderun}/knowledge/reference_application_guidelines.md +7 -7
- package/.enderun/logs/analyst.json +1 -0
- package/.enderun/logs/backend.json +1 -0
- package/.enderun/logs/devops.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 +20 -0
- package/.enderun/logs/mobile.json +1 -0
- package/.enderun/logs/native.json +1 -0
- package/.enderun/logs/orchestrator.json +1 -0
- package/.enderun/logs/qa.json +1 -0
- package/.enderun/logs/security.json +1 -0
- package/.enderun/memory-graph/agent-contexts/analyst.json +1 -0
- package/.enderun/memory-graph/agent-contexts/backend.json +1 -0
- package/.enderun/memory-graph/agent-contexts/devops.json +1 -0
- package/.enderun/memory-graph/agent-contexts/explorer.json +1 -0
- package/.enderun/memory-graph/agent-contexts/frontend.json +1 -0
- package/.enderun/memory-graph/agent-contexts/git.json +1 -0
- package/.enderun/memory-graph/agent-contexts/manager.json +1 -0
- package/.enderun/memory-graph/agent-contexts/mobile.json +1 -0
- package/.enderun/memory-graph/agent-contexts/native.json +1 -0
- package/.enderun/memory-graph/agent-contexts/orchestrator.json +1 -0
- package/.enderun/memory-graph/agent-contexts/qa.json +1 -0
- package/.enderun/memory-graph/agent-contexts/security.json +1 -0
- package/.enderun/memory-graph/graph.json +26 -0
- package/.enderun/memory-graph/shared-facts.json +52 -0
- package/.enderun/monitoring/.gitkeep +0 -0
- package/.enderun/queue/README.md +36 -0
- package/ENDERUN.md +4 -4
- package/README.md +151 -89
- package/bin/cli.js +13 -2138
- package/bin/hermes-sandbox.js +0 -0
- package/bin/validate-agent-army.js +3 -3
- package/docs/architecture/approval-flows.md +2 -37
- package/docs/backend/error-handling.md +2 -51
- package/docs/frontend/component-patterns.md +2 -47
- package/docs/getting-started.md +7 -15
- package/docs/roadmap.md +2 -2
- package/framework-mcp/dist/index.js +0 -0
- package/framework-mcp/dist/schemas.js +3 -3
- package/framework-mcp/dist/tools/framework.js +17 -10
- package/framework-mcp/dist/tools/governance.js +696 -0
- package/framework-mcp/dist/tools/index.js +14 -12
- package/framework-mcp/dist/tools/memory.js +106 -0
- package/framework-mcp/dist/tools/monitoring.js +294 -0
- package/framework-mcp/dist/tools/orchestration.js +368 -0
- package/framework-mcp/dist/tools/pipeline.js +267 -0
- package/framework-mcp/dist/utils.js +25 -3
- package/framework-mcp/package.json +3 -3
- package/framework-mcp/src/schemas.ts +3 -3
- package/framework-mcp/src/tools/framework.ts +18 -10
- package/framework-mcp/src/tools/governance.ts +891 -0
- package/framework-mcp/src/tools/index.ts +14 -12
- package/framework-mcp/src/tools/memory.ts +103 -0
- package/framework-mcp/src/tools/monitoring.ts +351 -0
- package/framework-mcp/src/tools/orchestration.ts +439 -0
- package/framework-mcp/src/tools/pipeline.ts +353 -0
- package/framework-mcp/src/utils.ts +24 -3
- package/framework-mcp/tsconfig.json +2 -1
- package/gemini.md +19 -0
- package/package.json +14 -20
- package/.antigravitycli/BRAIN_DASHBOARD.md +0 -43
- package/.antigravitycli/ENDERUN.md +0 -253
- package/.antigravitycli/PROJECT_MEMORY.md +0 -78
- package/.antigravitycli/STATUS.md +0 -21
- package/.antigravitycli/agents/agent_army_schema.json +0 -79
- package/.antigravitycli/agents/analyst/agent.json +0 -55
- package/.antigravitycli/agents/backend/agent.json +0 -58
- package/.antigravitycli/agents/explorer/agent.json +0 -50
- package/.antigravitycli/agents/frontend/agent.json +0 -56
- package/.antigravitycli/agents/git/agent.json +0 -53
- package/.antigravitycli/agents/manager/agent.json +0 -82
- package/.antigravitycli/agents/mobile/agent.json +0 -52
- package/.antigravitycli/agents/native/agent.json +0 -56
- package/.antigravitycli/assets/manager.png +0 -0
- package/.antigravitycli/blueprints/README.md +0 -82
- package/.antigravitycli/blueprints/backend/errors/config/meta.json +0 -16
- package/.antigravitycli/blueprints/backend/errors/domain-error.ts +0 -64
- package/.antigravitycli/knowledge/README.md +0 -22
- package/.antigravitycli/knowledge/database_governance_guidelines.md +0 -118
- package/.antigravitycli/knowledge/deployment_checklist.md +0 -133
- package/.antigravitycli/knowledge/documentation_ownership.md +0 -122
- package/.antigravitycli/knowledge/documentation_ownership_status.md +0 -122
- package/.antigravitycli/knowledge/enterprise_capabilities_reference.md +0 -149
- package/.antigravitycli/knowledge/enterprise_frontend_adaptation.md +0 -232
- package/.antigravitycli/knowledge/enterprise_project_adaptation.md +0 -168
- package/.antigravitycli/knowledge/frontend_real_battle_test_protocol.md +0 -162
- package/antigravity.md +0 -15
- package/docs/architecture/decisions/README.md +0 -31
- package/docs/architecture/notification-strategy.md +0 -38
- package/docs/backend/audit-logging.md +0 -34
- package/docs/frontend/forms.md +0 -40
- package/docs/frontend/notifications.md +0 -37
- package/framework-mcp/dist/tools/academy.js +0 -182
- package/framework-mcp/dist/tools/database.js +0 -57
- package/framework-mcp/dist/tools/repository.js +0 -101
- package/framework-mcp/dist/tools/scaffold.js +0 -132
- package/framework-mcp/src/tools/academy.ts +0 -180
- package/framework-mcp/src/tools/database.ts +0 -54
- package/framework-mcp/src/tools/repository.ts +0 -101
- package/framework-mcp/src/tools/scaffold.ts +0 -150
- /package/{.antigravitycli/messages → .enderun/benchmarks}/.gitkeep +0 -0
- /package/{.antigravitycli → .enderun}/cli-commands.json +0 -0
- /package/{.antigravitycli → .enderun}/config.json +0 -0
- /package/{.antigravitycli → .enderun}/knowledge/api_design_rules.md +0 -0
- /package/{.antigravitycli → .enderun}/knowledge/async_error_handling.md +0 -0
- /package/{.antigravitycli → .enderun}/knowledge/blueprint_driven_construction.md +0 -0
- /package/{.antigravitycli → .enderun}/knowledge/branded_types_pattern.md +0 -0
- /package/{.antigravitycli → .enderun}/knowledge/code_review_checklist.md +0 -0
- /package/{.antigravitycli → .enderun}/knowledge/contract_versioning.md +0 -0
- /package/{.antigravitycli → .enderun}/knowledge/database_migration.md +0 -0
- /package/{.antigravitycli → .enderun}/knowledge/git_commit_strategy.md +0 -0
- /package/{.antigravitycli → .enderun}/knowledge/legacy_onboarding.md +0 -0
- /package/{.antigravitycli → .enderun}/knowledge/monitoring_setup.md +0 -0
- /package/{.antigravitycli → .enderun}/knowledge/performance_guidelines.md +0 -0
- /package/{.antigravitycli → .enderun}/knowledge/repository_patterns.md +0 -0
- /package/{.antigravitycli → .enderun}/knowledge/responsive_design_standards.md +0 -0
- /package/{.antigravitycli → .enderun}/knowledge/security_scanning.md +0 -0
- /package/{.antigravitycli → .enderun}/knowledge/testing_standards.md +0 -0
- /package/{.antigravitycli → .enderun}/knowledge/troubleshooting_guide.md +0 -0
- /package/{.antigravitycli → .enderun}/knowledge/zero_ui_library_policy.md +0 -0
package/bin/hermes-sandbox.js
CHANGED
|
File without changes
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
import fs from "fs";
|
|
4
4
|
import path from "path";
|
|
5
5
|
|
|
6
|
-
const AGENTS_DIR = path.resolve("./.
|
|
7
|
-
const SCHEMA_PATH = path.resolve("./.
|
|
6
|
+
const AGENTS_DIR = path.resolve("./.gemini/agents");
|
|
7
|
+
const SCHEMA_PATH = path.resolve("./.gemini/agents/agent_army_schema.json");
|
|
8
8
|
|
|
9
9
|
console.log("🛡️ STARTING AUTOMATED AGENT ARMY VALIDATION...");
|
|
10
10
|
|
|
@@ -29,7 +29,7 @@ try {
|
|
|
29
29
|
console.log(`| ${agentDirName.padEnd(9)} | ❌ FAILED | ----- | ${`Missing keys: ${missing.join(", ")}`.slice(0, 14)} |`);
|
|
30
30
|
totalFailed++;
|
|
31
31
|
} else {
|
|
32
|
-
console.log(`| ${agent.
|
|
32
|
+
console.log(`| ${agent.name.padEnd(9)} | ✅ PASSED | ${String(agent.capability).padEnd(5)} | ${agent.role.substring(0,14).padEnd(14)} |`);
|
|
33
33
|
}
|
|
34
34
|
}
|
|
35
35
|
|
|
@@ -1,38 +1,3 @@
|
|
|
1
|
-
# Approval
|
|
1
|
+
# Enterprise Approval Flows Protocol
|
|
2
2
|
|
|
3
|
-
This document
|
|
4
|
-
|
|
5
|
-
---
|
|
6
|
-
|
|
7
|
-
## 🔒 High-Risk Actions Matrix
|
|
8
|
-
|
|
9
|
-
The following operations require an explicit `managerApproval` token injection:
|
|
10
|
-
|
|
11
|
-
| Action Category | Target Resource | Verification Criteria | Rollback Strategy |
|
|
12
|
-
| :--- | :--- | :--- | :--- |
|
|
13
|
-
| **Identity & Access** | suspends users, role updates | Signed token from `@manager` | demote role to standard User |
|
|
14
|
-
| **Data Purge** | bulk database catalog purge | `@manager` + Human dual signature | Restore from daily pg_dump |
|
|
15
|
-
| **System Settings** | updating cache parameters | Verified `@manager` hash | Reload last active env config |
|
|
16
|
-
|
|
17
|
-
---
|
|
18
|
-
|
|
19
|
-
## 🛰️ hermesApproval Transaction Payload
|
|
20
|
-
|
|
21
|
-
Every high-risk action must inject this exact JSON contract in the transaction header/payload:
|
|
22
|
-
|
|
23
|
-
```typescript
|
|
24
|
-
interface ManagerApproval {
|
|
25
|
-
approved: boolean;
|
|
26
|
-
traceId: string; // active ULID Trace ID
|
|
27
|
-
approvedBy: "@manager"; // signed coordinator identifier
|
|
28
|
-
approvedAt: string; // ISO timestamp
|
|
29
|
-
reason: string; // justification for database auditing
|
|
30
|
-
riskLevel: "Critical" | "High";
|
|
31
|
-
rollbackPlan: string; // automated/manual rollback script steps
|
|
32
|
-
}
|
|
33
|
-
```
|
|
34
|
-
|
|
35
|
-
---
|
|
36
|
-
|
|
37
|
-
> [!WARNING]
|
|
38
|
-
> **Audit Lock:** Any transaction failing to present a verified `ManagerApproval` signature will trigger an automatic transaction abort and generate a high-priority security alert.
|
|
3
|
+
This document defines the protocols for cross-agent approval flows in enterprise development.
|
|
@@ -1,52 +1,3 @@
|
|
|
1
|
-
#
|
|
1
|
+
# Professional Error Handling Pattern
|
|
2
2
|
|
|
3
|
-
This document defines the error handling
|
|
4
|
-
|
|
5
|
-
---
|
|
6
|
-
|
|
7
|
-
## 🔒 DomainError Class Structure
|
|
8
|
-
|
|
9
|
-
Never throw raw javascript errors. Always extend the abstract `DomainError` class to ensure all failures carry typed status codes and machine-readable error codes:
|
|
10
|
-
|
|
11
|
-
```typescript
|
|
12
|
-
export abstract class DomainError extends Error {
|
|
13
|
-
public readonly statusCode: number;
|
|
14
|
-
public readonly code: string;
|
|
15
|
-
|
|
16
|
-
constructor(message: string, statusCode: number, code: string) {
|
|
17
|
-
super(message);
|
|
18
|
-
this.name = this.constructor.name;
|
|
19
|
-
this.statusCode = statusCode;
|
|
20
|
-
this.code = code;
|
|
21
|
-
Error.captureStackTrace(this, this.constructor);
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
```
|
|
25
|
-
|
|
26
|
-
---
|
|
27
|
-
|
|
28
|
-
## 📝 Error Map Example
|
|
29
|
-
|
|
30
|
-
Map domain errors securely inside Fastify error handlers:
|
|
31
|
-
|
|
32
|
-
```typescript
|
|
33
|
-
fastify.setErrorHandler((error, request, reply) => {
|
|
34
|
-
if (error instanceof DomainError) {
|
|
35
|
-
reply.status(error.statusCode).send({
|
|
36
|
-
success: false,
|
|
37
|
-
code: error.code,
|
|
38
|
-
message: error.message,
|
|
39
|
-
traceId: request.headers["x-trace-id"]
|
|
40
|
-
});
|
|
41
|
-
return;
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
// Log unexpected internal errors securely
|
|
45
|
-
fastify.log.error(error);
|
|
46
|
-
reply.status(500).send({
|
|
47
|
-
success: false,
|
|
48
|
-
code: "INTERNAL_ERROR",
|
|
49
|
-
message: "An unexpected error occurred."
|
|
50
|
-
});
|
|
51
|
-
});
|
|
52
|
-
```
|
|
3
|
+
This document defines the standardized error handling patterns for backend services.
|
|
@@ -1,48 +1,3 @@
|
|
|
1
|
-
#
|
|
1
|
+
# Atomic Component Standards
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
---
|
|
6
|
-
|
|
7
|
-
## 🎨 Zero UI Library Policy
|
|
8
|
-
|
|
9
|
-
In our framework, using ready-made external UI libraries (such as Radix UI, Shadcn, or Tailwind CSS) is **strictly forbidden**. This prevents bundle bloat, ensures design consistency, and protects codebase hygiene.
|
|
10
|
-
|
|
11
|
-
All components must be:
|
|
12
|
-
- Written as custom vanilla HTML elements.
|
|
13
|
-
- Styled with type-safe Panda CSS design tokens.
|
|
14
|
-
- Bound to state using lightweight React hooks.
|
|
15
|
-
|
|
16
|
-
---
|
|
17
|
-
|
|
18
|
-
## 💻 Panda CSS Styling Example
|
|
19
|
-
|
|
20
|
-
Create fütüristik glassmorphic containers using type-safe tokens:
|
|
21
|
-
|
|
22
|
-
```tsx
|
|
23
|
-
import { css } from "../../styled-system/css";
|
|
24
|
-
|
|
25
|
-
export const Card = ({ children }) => {
|
|
26
|
-
return (
|
|
27
|
-
<div className={css({
|
|
28
|
-
padding: "6",
|
|
29
|
-
borderRadius: "xl",
|
|
30
|
-
background: "rgba(255, 255, 255, 0.05)",
|
|
31
|
-
backdropFilter: "blur(12px)",
|
|
32
|
-
border: "1px solid rgba(255, 255, 255, 0.1)",
|
|
33
|
-
transition: "all 0.3s ease",
|
|
34
|
-
_hover: {
|
|
35
|
-
background: "rgba(255, 255, 255, 0.08)",
|
|
36
|
-
transform: "translateY(-4px)"
|
|
37
|
-
}
|
|
38
|
-
})}>
|
|
39
|
-
{children}
|
|
40
|
-
</div>
|
|
41
|
-
);
|
|
42
|
-
};
|
|
43
|
-
```
|
|
44
|
-
|
|
45
|
-
---
|
|
46
|
-
|
|
47
|
-
> [!IMPORTANT]
|
|
48
|
-
> **Unique Test IDs:** Every interactive component (buttons, inputs, select triggers) must include a unique `data-testid` attribute to facilitate automated QA auditing.
|
|
3
|
+
This document defines the atomic design principles and component standards for the frontend.
|
package/docs/getting-started.md
CHANGED
|
@@ -62,25 +62,17 @@ This command:
|
|
|
62
62
|
- Installs all core governance files (`ENDERUN.md`, `PROJECT_MEMORY.md`, agents, knowledge, etc.)
|
|
63
63
|
- Adds the default framework configuration files
|
|
64
64
|
|
|
65
|
-
#### 💡
|
|
66
|
-
If you want to configure the framework for a specific AI assistant or editor environment (e.g. Antigravity, Claude, Cursor, Codex, Gemini), you can specify it as an option:
|
|
65
|
+
#### 💡 Gemini Adapter (Only Supported Path)
|
|
67
66
|
|
|
68
67
|
```bash
|
|
69
|
-
npx agent-enderun init
|
|
70
|
-
# or
|
|
71
|
-
npx agent-enderun init claude
|
|
72
|
-
# or
|
|
73
|
-
npx agent-enderun init cursor
|
|
74
|
-
# or
|
|
75
|
-
npx agent-enderun init codex
|
|
76
|
-
# or
|
|
68
|
+
npx agent-enderun init
|
|
69
|
+
# or explicitly
|
|
77
70
|
npx agent-enderun init gemini
|
|
78
71
|
```
|
|
79
72
|
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
- If you run `init gemini`, it will create `.gemini/` and place `gemini.md` at the project root.
|
|
73
|
+
This creates the `.gemini/` runtime folder + `gemini.md` shim at the root for Gemini CLI users.
|
|
74
|
+
|
|
75
|
+
Other legacy adapters (`claude`, `cursor`, `codex`) may still work for editor-specific workflows.
|
|
84
76
|
|
|
85
77
|
---
|
|
86
78
|
|
|
@@ -144,7 +136,7 @@ Write your project's goals, business requirements, and primary features here.
|
|
|
144
136
|
|
|
145
137
|
### 4.3 `.enderun/PROJECT_MEMORY.md`
|
|
146
138
|
|
|
147
|
-
Automatically created during initial setup
|
|
139
|
+
Automatically created during initial setup inside `.gemini/PROJECT_MEMORY.md`. The Gemini adapter uses the `.gemini/` runtime folder.
|
|
148
140
|
|
|
149
141
|
---
|
|
150
142
|
|
package/docs/roadmap.md
CHANGED
|
@@ -16,8 +16,8 @@ This document outlines the development roadmap for the Agent Enderun framework *
|
|
|
16
16
|
- **Version:** v0.6.6 (ready for npm release)
|
|
17
17
|
- **System Health:** 🟢 GREEN
|
|
18
18
|
- **Key Accomplishments:**
|
|
19
|
-
-
|
|
20
|
-
-
|
|
19
|
+
- Only Gemini adapter supported (installs to .gemini/)
|
|
20
|
+
- Antigravity adapter and all related code fully removed
|
|
21
21
|
- Lint technical debt resolved (reduced from 43 to 0 issues)
|
|
22
22
|
- Published `docs/getting-started.md` guide
|
|
23
23
|
- Updated memory structures and workspace hygiene
|
|
File without changes
|
|
@@ -6,8 +6,8 @@ export const SEARCH_CODEBASE_ARGS_SCHEMA = z.object({
|
|
|
6
6
|
query: z.string().min(1).max(300),
|
|
7
7
|
extension: z
|
|
8
8
|
.string()
|
|
9
|
-
.
|
|
10
|
-
.
|
|
9
|
+
.default("ts")
|
|
10
|
+
.refine((s) => /^[a-z0-9]+$/i.test(s), { message: "extension must be alphanumeric" }),
|
|
11
11
|
});
|
|
12
12
|
export const UPDATE_MEMORY_ARGS_SCHEMA = z.object({
|
|
13
13
|
section: z.enum(["CURRENT STATUS", "HISTORY", "ACTIVE TASKS"]),
|
|
@@ -23,7 +23,7 @@ export const LOG_AGENT_ACTION_ARGS_SCHEMA = z.object({
|
|
|
23
23
|
files: z.array(z.string()).default([]),
|
|
24
24
|
status: z.enum(["SUCCESS", "FAILURE"]),
|
|
25
25
|
summary: z.string().min(1),
|
|
26
|
-
details: z.record(z.any()).default({}),
|
|
26
|
+
details: z.record(z.string(), z.any()).default({}),
|
|
27
27
|
});
|
|
28
28
|
export const SEND_AGENT_MESSAGE_ARGS_SCHEMA = z.object({
|
|
29
29
|
from: z.string().min(1),
|
|
@@ -13,11 +13,6 @@ export const frameworkTools = [
|
|
|
13
13
|
description: "Scans the project structure against the defined standards in ENDERUN.md and identifies missing files, folders, or documentation.",
|
|
14
14
|
inputSchema: { type: "object", properties: {} },
|
|
15
15
|
},
|
|
16
|
-
{
|
|
17
|
-
name: "codebase_status",
|
|
18
|
-
description: "Compatibility alias for get_framework_status.",
|
|
19
|
-
inputSchema: { type: "object", properties: {} },
|
|
20
|
-
},
|
|
21
16
|
{
|
|
22
17
|
name: "get_memory_insights",
|
|
23
18
|
description: "Analyze PROJECT_MEMORY.md and BRAIN_DASHBOARD.md to provide insights on what was done, what is being done, and the history.",
|
|
@@ -100,8 +95,8 @@ export const frameworkHandlers = {
|
|
|
100
95
|
const missing = [];
|
|
101
96
|
const frameworkDir = getFrameworkDir(projectRoot);
|
|
102
97
|
const checkPaths = [
|
|
103
|
-
{ path: "apps/backend/src/types", type: "folder" },
|
|
104
|
-
{ path: "apps/web/src/types", type: "folder" },
|
|
98
|
+
{ path: "apps/backend/src/types", type: "folder", optional: true },
|
|
99
|
+
{ path: "apps/web/src/types", type: "folder", optional: true },
|
|
105
100
|
{ path: "framework-mcp/src", type: "folder" },
|
|
106
101
|
{ path: ".env", type: "file", optional: true },
|
|
107
102
|
{ path: ".env.example", type: "file" },
|
|
@@ -109,9 +104,9 @@ export const frameworkHandlers = {
|
|
|
109
104
|
{ path: path.join(frameworkDir, "BRAIN_DASHBOARD.md"), type: "file" },
|
|
110
105
|
{ path: "docs/README.md", type: "file" },
|
|
111
106
|
{ path: "docs/getting-started.md", type: "file" },
|
|
112
|
-
{ path: "docs/architecture/approval-flows.md", type: "file" },
|
|
113
|
-
{ path: "docs/backend/error-handling.md", type: "file" },
|
|
114
|
-
{ path: "docs/frontend/component-patterns.md", type: "file" },
|
|
107
|
+
{ path: "docs/architecture/approval-flows.md", type: "file", optional: true },
|
|
108
|
+
{ path: "docs/backend/error-handling.md", type: "file", optional: true },
|
|
109
|
+
{ path: "docs/frontend/component-patterns.md", type: "file", optional: true },
|
|
115
110
|
];
|
|
116
111
|
for (const item of checkPaths) {
|
|
117
112
|
const fullPath = path.join(projectRoot, item.path);
|
|
@@ -135,6 +130,18 @@ export const frameworkHandlers = {
|
|
|
135
130
|
missing.push(`[MISSING LOG FILE] ${frameworkDir}/logs/${agentName}.json (Expected for agent ${agentName})`);
|
|
136
131
|
}
|
|
137
132
|
}
|
|
133
|
+
// v1.0 Army infrastructure checks
|
|
134
|
+
const v1Dirs = [
|
|
135
|
+
path.join(projectRoot, frameworkDir, "memory-graph"),
|
|
136
|
+
path.join(projectRoot, frameworkDir, "memory-graph", "agent-contexts"),
|
|
137
|
+
path.join(projectRoot, frameworkDir, "queue"),
|
|
138
|
+
path.join(projectRoot, frameworkDir, "agents", "schema"),
|
|
139
|
+
];
|
|
140
|
+
for (const d of v1Dirs) {
|
|
141
|
+
if (!fs.existsSync(d)) {
|
|
142
|
+
missing.push(`[MISSING v1.0 DIR] ${path.relative(projectRoot, d)}`);
|
|
143
|
+
}
|
|
144
|
+
}
|
|
138
145
|
}
|
|
139
146
|
return { content: [{ type: "text", text: missing.length > 0 ? `Detected Gaps:\n${missing.join("\n")}` : "No structural gaps detected based on core standards." }] };
|
|
140
147
|
},
|