agent-enderun 1.0.1 ā 1.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/framework-mcp/package.json +1 -1
- package/package.json +2 -2
- package/src/cli/adapters.ts +1 -0
- package/src/cli/commands/init.ts +125 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "agent-enderun",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.2",
|
|
4
4
|
"description": "The Supreme AI Governance & Orchestration Framework for Enterprise Development",
|
|
5
5
|
"author": "Yusuf BEKAR",
|
|
6
6
|
"license": "MIT",
|
|
@@ -82,7 +82,7 @@
|
|
|
82
82
|
"zod": "^3.24.2"
|
|
83
83
|
},
|
|
84
84
|
"enderun": {
|
|
85
|
-
"version": "1.0.
|
|
85
|
+
"version": "1.0.2",
|
|
86
86
|
"initializedAt": "2026-05-31T09:58:25.773Z"
|
|
87
87
|
},
|
|
88
88
|
"dependencies": {}
|
package/src/cli/adapters.ts
CHANGED
package/src/cli/commands/init.ts
CHANGED
|
@@ -291,6 +291,131 @@ describe("Initial Setup", () => {
|
|
|
291
291
|
console.warn(`[DRY RUN] Would run post-init steps for ${adapter.id}`);
|
|
292
292
|
}
|
|
293
293
|
|
|
294
|
+
// Always scaffold Antigravity (.agents/) workspace directory for cross-compatibility with agy CLI
|
|
295
|
+
const agentsFrameworkDir = path.join(targetDir, ".agents");
|
|
296
|
+
if (!dryRun) {
|
|
297
|
+
try {
|
|
298
|
+
fs.mkdirSync(agentsFrameworkDir, { recursive: true });
|
|
299
|
+
const agentsSubdir = path.join(agentsFrameworkDir, "agents");
|
|
300
|
+
fs.mkdirSync(agentsSubdir, { recursive: true });
|
|
301
|
+
|
|
302
|
+
// Write the 12 agent folders and agent.json files
|
|
303
|
+
const allAgents = [
|
|
304
|
+
{
|
|
305
|
+
name: "manager",
|
|
306
|
+
displayName: "Orchestration & Governance (Team-Lead)",
|
|
307
|
+
description: "CTO, Lead Architect, and Orchestrator for Agent Enderun.",
|
|
308
|
+
instructions: "You are the manager agent. Orchestrate workspace tasks, manage DAG dependency graphs, handle phase transitions, and enforce architectural standards.\n\nš NON-NEGOTIABLE CORE RULES:\n- Single Point of Authority: You are the sole entry point. No specialist acts without your briefing.\n- Traceability: Every action MUST inherit the active Trace ID.\n- Memory Discipline: MUST update PROJECT_MEMORY.md and log actions at the end of EVERY turn."
|
|
309
|
+
},
|
|
310
|
+
{
|
|
311
|
+
name: "backend",
|
|
312
|
+
displayName: "Domain Logic & Databases Specialist",
|
|
313
|
+
description: "Responsible for core business logic, database migrations, security standards, API contracts, and server architecture.",
|
|
314
|
+
instructions: "You are the backend agent. Build secure, high-performance, and consistent server architecture.\n\nš NON-NEGOTIABLE CORE RULES:\n- No UI: Never implement UI or frontend logic.\n- Contract-First: Define shared contracts/branded types BEFORE any consumer code.\n- Branded Types Law: ALL IDs must use branded types (e.g., UserID). Plain strings are forbidden.\n- Zero Mock Policy: Use real endpoints/contracts only.\n- Surgical Edits: Use replace_text for all code changes."
|
|
315
|
+
},
|
|
316
|
+
{
|
|
317
|
+
name: "frontend",
|
|
318
|
+
displayName: "Fluid Responsive UI Specialist",
|
|
319
|
+
description: "Builds responsive fluid user interfaces, manages styling tokens with Panda CSS, and implements state machines.",
|
|
320
|
+
instructions: "You are the frontend agent. Build original, high-performance, and responsive user interfaces.\n\nš NON-NEGOTIABLE CORE RULES:\n- Responsive-First: Mobile-First (320px) is mandatory. Fixed-width is forbidden.\n- Zero UI Library Policy: No shadcn/ui, MUI, etc. Build everything with Panda CSS.\n- Zero Mock Policy: Use real endpoints/contracts only.\n- Contract-First: Use branded types from apps/backend/src/types.\n- No Native Alerts: Use integrated Toaster/Modal components."
|
|
321
|
+
},
|
|
322
|
+
{
|
|
323
|
+
name: "quality",
|
|
324
|
+
displayName: "Automated Testing & Quality Specialist",
|
|
325
|
+
description: "Verifies test coverage, audits compliance with the constitution, conducts AST scanning, and verifies CI/CD status.",
|
|
326
|
+
instructions: "You are the quality agent. Ensure no code is merged or deployed without meeting standards.\n\nš NON-NEGOTIABLE CORE RULES:\n- Final Gate: No code merges or deploys proceed without quality sign-off.\n- Verification-First: Audit lint, typecheck, contract drift, and branded types before sign-off.\n- Never Implement: Audit and assess only. Never write application features.\n- Zero Mock Policy: Integration tests must use real/service-compatible backends.\n- Coverage Gate: Reject approvals if coverage falls below >80% threshold in core."
|
|
327
|
+
},
|
|
328
|
+
{
|
|
329
|
+
name: "database",
|
|
330
|
+
displayName: "Database Migrations & Tuning Specialist",
|
|
331
|
+
description: "Designs SQL schemas, manages migration scripts via Kysely, optimizes queries, indexes, and seeding logic.",
|
|
332
|
+
instructions: "You are the database agent. Build secure, optimized, and scalable data layers.\n\nš NON-NEGOTIABLE CORE RULES:\n- Self-Contained DB: Every backend application MUST manage its own schema/migrations/seeds in its own src/database/ directory.\n- Contract-First: All schemas MUST be derived from branded types.\n- Kysely Standard: Use Kysely for application queries. Raw SQL is forbidden.\n- Zero Mock Policy: Realistic, contract-aware seed data only.\n- Surgical Edits: Use replace_text for all schema/migration changes."
|
|
333
|
+
},
|
|
334
|
+
{
|
|
335
|
+
name: "devops",
|
|
336
|
+
displayName: "Infrastructure & CI/CD Specialist",
|
|
337
|
+
description: "Handles deployment pipelines, environment variables, system containerization, logging & telemetry integrations.",
|
|
338
|
+
instructions: "You are the devops agent. Ensure reliable execution in every environment with strict quality gates.\n\nš NON-NEGOTIABLE CORE RULES:\n- Gate Approvals: NEVER deploy to production without quality gate approval.\n- No Docker Policy: Prefer native Node.js unless explicitly overridden by manager.\n- Environment Parity: Identical configs across dev/staging/prod (except secrets).\n- Secrets Security: NEVER hardcode secrets. Use environment variables.\n- Rollback First: Deployment is BLOCKED if no documented rollback plan exists."
|
|
339
|
+
},
|
|
340
|
+
{
|
|
341
|
+
name: "explorer",
|
|
342
|
+
displayName: "Codebase Discovery Specialist",
|
|
343
|
+
description: "Maps code dependencies, performs project scans, identifies architectural gaps, and supports legacy onboarding.",
|
|
344
|
+
instructions: "You are the explorer agent. Map project structure and provide deep context to other agents.\n\nš NON-NEGOTIABLE CORE RULES:\n- Read-Only: Never write production code. Only discover, map, and report.\n- Search-First: Always use search_codebase before reading large files.\n- Surgical Discovery: Focus on entry points and core domain logic.\n- Zero Mock Policy: Analyze real system state only.\n- Traceability: All findings must be linked to a Trace ID."
|
|
345
|
+
},
|
|
346
|
+
{
|
|
347
|
+
name: "git",
|
|
348
|
+
displayName: "Version Control Specialist",
|
|
349
|
+
description: "Manages commit histories, branches, Trace ID alignment, semantic tagging, and merge conflicts.",
|
|
350
|
+
instructions: "You are the git agent. Ensure a clean, atomic, and traceable repository history.\n\nš NON-NEGOTIABLE CORE RULES:\n- Trace ID Tagging: EVERY commit must include the active Trace ID in the message.\n- Atomic Integrity: Every commit must represent exactly one logical change.\n- Health-First: Never commit code that fails build or basic tests.\n- No Push: Do not run git push without explicit USER approval.\n- No Force: Never use git push --force on public branches."
|
|
351
|
+
},
|
|
352
|
+
{
|
|
353
|
+
name: "mobile",
|
|
354
|
+
displayName: "Mobile App Specialist",
|
|
355
|
+
description: "Develops cross-platform mobile apps using React Native and Expo with clean component states.",
|
|
356
|
+
instructions: "You are the mobile agent. Build high-performance, responsive mobile apps (React Native/Expo).\n\nš NON-NEGOTIABLE CORE RULES:\n- Zero UI Library: Same discipline as web. Build UI from scratch.\n- Contract-First: Use shared types from apps/backend/src/types.\n- Responsive-First: Mobile-First approach is mandatory.\n- Safe Area: Handle iOS/Android safe area insets on every screen.\n- Performance: Target 60 FPS."
|
|
357
|
+
},
|
|
358
|
+
{
|
|
359
|
+
name: "native",
|
|
360
|
+
displayName: "Native OS Integration Specialist",
|
|
361
|
+
description: "Builds lightweight desktop wrappers and system integrations using Tauri or Electron.",
|
|
362
|
+
instructions: "You are the native agent. Build secure, efficient desktop apps (Tauri/Electron).\n\nš NON-NEGOTIABLE CORE RULES:\n- Security-First: No remote code execution. Mandatory sandboxing and strict CSP.\n- Secure Storage: Use Keychain/Credential Manager for sensitive data.\n- IPC Contract: All communication between frontend and native MUST be typed.\n- Contract-First: Define IPC and data contracts before implementation.\n- Surgical Edits: Use replace_text for all code changes."
|
|
363
|
+
},
|
|
364
|
+
{
|
|
365
|
+
name: "security",
|
|
366
|
+
displayName: "Security & Cryptography Specialist",
|
|
367
|
+
description: "Enforces authentication flows, CSP policies, credential rotation, RLS constraints, and cryptographic safety.",
|
|
368
|
+
instructions: "You are the security agent. Ensure all endpoints, database connections, and authentication flows satisfy strict enterprise compliance policies.\n\nš NON-NEGOTIABLE CORE RULES:\n- Sandboxed Security First: Enforce Row Level Security (RLS) on all database tables.\n- Credential Rotation Policy: Credentials, keys, and tokens must never be hardcoded. Use vault/env variables.\n- CSP & CORS Strictness: Never open wildcards (*) for CORS or CSP policies.\n- Surgical Edits: Use replace_text for all security patches."
|
|
369
|
+
},
|
|
370
|
+
{
|
|
371
|
+
name: "analyst",
|
|
372
|
+
displayName: "Contract Verification & Business Analyst",
|
|
373
|
+
description: "Validates business specifications, tests database contract integrity, and audits constitutional compliance.",
|
|
374
|
+
instructions: "You are the analyst agent. Independently verify compliance with contracts and specifications between frontend, backend, and the constitution.\n\nš NON-NEGOTIABLE CORE RULES:\n- Independent Stance: Act as an objective verification gate.\n- Contract-First Law: Ensure contract.version.json perfectly matches types.\n- Escalation Priority: Report all contract drift to manager immediately.\n- Surgical Edits: Use replace_text for all document updates."
|
|
375
|
+
}
|
|
376
|
+
];
|
|
377
|
+
|
|
378
|
+
for (const ag of allAgents) {
|
|
379
|
+
const agentDir = path.join(agentsSubdir, ag.name);
|
|
380
|
+
fs.mkdirSync(agentDir, { recursive: true });
|
|
381
|
+
|
|
382
|
+
const payload = {
|
|
383
|
+
name: ag.name,
|
|
384
|
+
displayName: ag.displayName,
|
|
385
|
+
description: ag.description,
|
|
386
|
+
hidden: false,
|
|
387
|
+
customAgentSpec: {
|
|
388
|
+
customAgent: {
|
|
389
|
+
systemPromptSections: [
|
|
390
|
+
{
|
|
391
|
+
title: "Instructions",
|
|
392
|
+
content: ag.instructions
|
|
393
|
+
}
|
|
394
|
+
],
|
|
395
|
+
toolNames: [
|
|
396
|
+
"view_file",
|
|
397
|
+
"replace_file_content",
|
|
398
|
+
"write_to_file",
|
|
399
|
+
"run_command",
|
|
400
|
+
"grep_search",
|
|
401
|
+
"list_dir"
|
|
402
|
+
]
|
|
403
|
+
}
|
|
404
|
+
}
|
|
405
|
+
};
|
|
406
|
+
|
|
407
|
+
fs.writeFileSync(
|
|
408
|
+
path.join(agentDir, "agent.json"),
|
|
409
|
+
JSON.stringify(payload, null, 2),
|
|
410
|
+
"utf8"
|
|
411
|
+
);
|
|
412
|
+
}
|
|
413
|
+
console.warn(`ā
Scaffolding ${allAgents.length} Antigravity agents under .agents/agents/...`);
|
|
414
|
+
} catch (e) {
|
|
415
|
+
// fallback
|
|
416
|
+
}
|
|
417
|
+
}
|
|
418
|
+
|
|
294
419
|
console.warn(`\nā ${adapter.id.toUpperCase()}: Setup complete.`);
|
|
295
420
|
console.warn(` ⢠Framework runtime: ${frameworkDir}/`);
|
|
296
421
|
console.warn(` ⢠Entrypoint shim: ${shimFile}`);
|