@dcyfr/ai 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/dist/ai/agents/agent-loader.d.ts +131 -0
- package/dist/ai/agents/agent-loader.d.ts.map +1 -0
- package/dist/ai/agents/agent-loader.js +397 -0
- package/dist/ai/agents/agent-loader.js.map +1 -0
- package/dist/ai/agents/agent-registry.d.ts +120 -0
- package/dist/ai/agents/agent-registry.d.ts.map +1 -0
- package/dist/ai/agents/agent-registry.js +345 -0
- package/dist/ai/agents/agent-registry.js.map +1 -0
- package/dist/ai/agents/agent-router.d.ts +97 -0
- package/dist/ai/agents/agent-router.d.ts.map +1 -0
- package/dist/ai/agents/agent-router.js +375 -0
- package/dist/ai/agents/agent-router.js.map +1 -0
- package/dist/ai/agents/index.d.ts +10 -0
- package/dist/ai/agents/index.d.ts.map +1 -0
- package/dist/ai/agents/index.js +12 -0
- package/dist/ai/agents/index.js.map +1 -0
- package/dist/ai/agents/types.d.ts +264 -0
- package/dist/ai/agents/types.d.ts.map +1 -0
- package/dist/ai/agents/types.js +10 -0
- package/dist/ai/agents/types.js.map +1 -0
- package/dist/ai/agents-builtin/architecture/architecture-reviewer.d.ts +12 -0
- package/dist/ai/agents-builtin/architecture/architecture-reviewer.d.ts.map +1 -0
- package/dist/ai/agents-builtin/architecture/architecture-reviewer.js +92 -0
- package/dist/ai/agents-builtin/architecture/architecture-reviewer.js.map +1 -0
- package/dist/ai/agents-builtin/architecture/cloud-architect.d.ts +12 -0
- package/dist/ai/agents-builtin/architecture/cloud-architect.d.ts.map +1 -0
- package/dist/ai/agents-builtin/architecture/cloud-architect.js +103 -0
- package/dist/ai/agents-builtin/architecture/cloud-architect.js.map +1 -0
- package/dist/ai/agents-builtin/architecture/database-architect.d.ts +12 -0
- package/dist/ai/agents-builtin/architecture/database-architect.d.ts.map +1 -0
- package/dist/ai/agents-builtin/architecture/database-architect.js +95 -0
- package/dist/ai/agents-builtin/architecture/database-architect.js.map +1 -0
- package/dist/ai/agents-builtin/architecture/index.d.ts +11 -0
- package/dist/ai/agents-builtin/architecture/index.d.ts.map +1 -0
- package/dist/ai/agents-builtin/architecture/index.js +11 -0
- package/dist/ai/agents-builtin/architecture/index.js.map +1 -0
- package/dist/ai/agents-builtin/content/index.d.ts +9 -0
- package/dist/ai/agents-builtin/content/index.d.ts.map +1 -0
- package/dist/ai/agents-builtin/content/index.js +9 -0
- package/dist/ai/agents-builtin/content/index.js.map +1 -0
- package/dist/ai/agents-builtin/content/technical-writer.d.ts +12 -0
- package/dist/ai/agents-builtin/content/technical-writer.d.ts.map +1 -0
- package/dist/ai/agents-builtin/content/technical-writer.js +93 -0
- package/dist/ai/agents-builtin/content/technical-writer.js.map +1 -0
- package/dist/ai/agents-builtin/data/data-scientist.d.ts +12 -0
- package/dist/ai/agents-builtin/data/data-scientist.d.ts.map +1 -0
- package/dist/ai/agents-builtin/data/data-scientist.js +92 -0
- package/dist/ai/agents-builtin/data/data-scientist.js.map +1 -0
- package/dist/ai/agents-builtin/data/index.d.ts +9 -0
- package/dist/ai/agents-builtin/data/index.d.ts.map +1 -0
- package/dist/ai/agents-builtin/data/index.js +9 -0
- package/dist/ai/agents-builtin/data/index.js.map +1 -0
- package/dist/ai/agents-builtin/development/backend-architect.d.ts +12 -0
- package/dist/ai/agents-builtin/development/backend-architect.d.ts.map +1 -0
- package/dist/ai/agents-builtin/development/backend-architect.js +99 -0
- package/dist/ai/agents-builtin/development/backend-architect.js.map +1 -0
- package/dist/ai/agents-builtin/development/frontend-developer.d.ts +12 -0
- package/dist/ai/agents-builtin/development/frontend-developer.d.ts.map +1 -0
- package/dist/ai/agents-builtin/development/frontend-developer.js +106 -0
- package/dist/ai/agents-builtin/development/frontend-developer.js.map +1 -0
- package/dist/ai/agents-builtin/development/fullstack-developer.d.ts +12 -0
- package/dist/ai/agents-builtin/development/fullstack-developer.d.ts.map +1 -0
- package/dist/ai/agents-builtin/development/fullstack-developer.js +86 -0
- package/dist/ai/agents-builtin/development/fullstack-developer.js.map +1 -0
- package/dist/ai/agents-builtin/development/index.d.ts +12 -0
- package/dist/ai/agents-builtin/development/index.d.ts.map +1 -0
- package/dist/ai/agents-builtin/development/index.js +12 -0
- package/dist/ai/agents-builtin/development/index.js.map +1 -0
- package/dist/ai/agents-builtin/development/typescript-pro.d.ts +12 -0
- package/dist/ai/agents-builtin/development/typescript-pro.d.ts.map +1 -0
- package/dist/ai/agents-builtin/development/typescript-pro.js +98 -0
- package/dist/ai/agents-builtin/development/typescript-pro.js.map +1 -0
- package/dist/ai/agents-builtin/devops/devops-engineer.d.ts +12 -0
- package/dist/ai/agents-builtin/devops/devops-engineer.d.ts.map +1 -0
- package/dist/ai/agents-builtin/devops/devops-engineer.js +98 -0
- package/dist/ai/agents-builtin/devops/devops-engineer.js.map +1 -0
- package/dist/ai/agents-builtin/devops/index.d.ts +9 -0
- package/dist/ai/agents-builtin/devops/index.d.ts.map +1 -0
- package/dist/ai/agents-builtin/devops/index.js +9 -0
- package/dist/ai/agents-builtin/devops/index.js.map +1 -0
- package/dist/ai/agents-builtin/index.d.ts +36 -0
- package/dist/ai/agents-builtin/index.d.ts.map +1 -0
- package/dist/ai/agents-builtin/index.js +107 -0
- package/dist/ai/agents-builtin/index.js.map +1 -0
- package/dist/ai/agents-builtin/performance/index.d.ts +9 -0
- package/dist/ai/agents-builtin/performance/index.d.ts.map +1 -0
- package/dist/ai/agents-builtin/performance/index.js +9 -0
- package/dist/ai/agents-builtin/performance/index.js.map +1 -0
- package/dist/ai/agents-builtin/performance/performance-profiler.d.ts +12 -0
- package/dist/ai/agents-builtin/performance/performance-profiler.d.ts.map +1 -0
- package/dist/ai/agents-builtin/performance/performance-profiler.js +89 -0
- package/dist/ai/agents-builtin/performance/performance-profiler.js.map +1 -0
- package/dist/ai/agents-builtin/research/index.d.ts +9 -0
- package/dist/ai/agents-builtin/research/index.d.ts.map +1 -0
- package/dist/ai/agents-builtin/research/index.js +9 -0
- package/dist/ai/agents-builtin/research/index.js.map +1 -0
- package/dist/ai/agents-builtin/research/research-orchestrator.d.ts +12 -0
- package/dist/ai/agents-builtin/research/research-orchestrator.d.ts.map +1 -0
- package/dist/ai/agents-builtin/research/research-orchestrator.js +83 -0
- package/dist/ai/agents-builtin/research/research-orchestrator.js.map +1 -0
- package/dist/ai/agents-builtin/security/index.d.ts +9 -0
- package/dist/ai/agents-builtin/security/index.d.ts.map +1 -0
- package/dist/ai/agents-builtin/security/index.js +9 -0
- package/dist/ai/agents-builtin/security/index.js.map +1 -0
- package/dist/ai/agents-builtin/security/security-engineer.d.ts +12 -0
- package/dist/ai/agents-builtin/security/security-engineer.d.ts.map +1 -0
- package/dist/ai/agents-builtin/security/security-engineer.js +90 -0
- package/dist/ai/agents-builtin/security/security-engineer.js.map +1 -0
- package/dist/ai/agents-builtin/testing/debugger.d.ts +13 -0
- package/dist/ai/agents-builtin/testing/debugger.d.ts.map +1 -0
- package/dist/ai/agents-builtin/testing/debugger.js +89 -0
- package/dist/ai/agents-builtin/testing/debugger.js.map +1 -0
- package/dist/ai/agents-builtin/testing/index.d.ts +10 -0
- package/dist/ai/agents-builtin/testing/index.d.ts.map +1 -0
- package/dist/ai/agents-builtin/testing/index.js +10 -0
- package/dist/ai/agents-builtin/testing/index.js.map +1 -0
- package/dist/ai/agents-builtin/testing/test-engineer.d.ts +12 -0
- package/dist/ai/agents-builtin/testing/test-engineer.d.ts.map +1 -0
- package/dist/ai/agents-builtin/testing/test-engineer.js +93 -0
- package/dist/ai/agents-builtin/testing/test-engineer.js.map +1 -0
- package/dist/ai/config/loader.d.ts +19 -5
- package/dist/ai/config/loader.d.ts.map +1 -1
- package/dist/ai/config/loader.js +53 -18
- package/dist/ai/config/loader.js.map +1 -1
- package/dist/ai/config/schema.d.ts +600 -8
- package/dist/ai/config/schema.d.ts.map +1 -1
- package/dist/ai/config/schema.js +156 -0
- package/dist/ai/config/schema.js.map +1 -1
- package/dist/ai/index.d.ts +4 -1
- package/dist/ai/index.d.ts.map +1 -1
- package/dist/ai/index.js +35 -1
- package/dist/ai/index.js.map +1 -1
- package/dist/ai/mcp/index.d.ts +8 -0
- package/dist/ai/mcp/index.d.ts.map +1 -0
- package/dist/ai/mcp/index.js +8 -0
- package/dist/ai/mcp/index.js.map +1 -0
- package/dist/ai/mcp/mcp-registry.d.ts +127 -0
- package/dist/ai/mcp/mcp-registry.d.ts.map +1 -0
- package/dist/ai/mcp/mcp-registry.js +355 -0
- package/dist/ai/mcp/mcp-registry.js.map +1 -0
- package/dist/ai/mcp/types.d.ts +126 -0
- package/dist/ai/mcp/types.d.ts.map +1 -0
- package/dist/ai/mcp/types.js +9 -0
- package/dist/ai/mcp/types.js.map +1 -0
- package/dist/ai/utils/storage.d.ts +6 -1
- package/dist/ai/utils/storage.d.ts.map +1 -1
- package/dist/ai/utils/storage.js +57 -22
- package/dist/ai/utils/storage.js.map +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* DevOps Engineer Agent
|
|
3
|
+
*
|
|
4
|
+
* DevOps specialist for CI/CD, infrastructure, and deployment.
|
|
5
|
+
* Use for pipeline setup, infrastructure configuration, and deployment automation.
|
|
6
|
+
*
|
|
7
|
+
* @module @dcyfr/ai/agents-builtin/devops/devops-engineer
|
|
8
|
+
*/
|
|
9
|
+
export const devopsEngineer = {
|
|
10
|
+
manifest: {
|
|
11
|
+
name: 'devops-engineer',
|
|
12
|
+
version: '1.0.0',
|
|
13
|
+
description: 'DevOps specialist for CI/CD, infrastructure, and deployment. Use for setting up pipelines, containerization, and infrastructure as code.',
|
|
14
|
+
category: 'devops',
|
|
15
|
+
tier: 'public',
|
|
16
|
+
model: 'sonnet',
|
|
17
|
+
permissionMode: 'acceptEdits',
|
|
18
|
+
tools: ['Read', 'Write', 'Edit', 'Bash'],
|
|
19
|
+
delegatesTo: ['cloud-architect', 'deployment-engineer'],
|
|
20
|
+
tags: ['devops', 'cicd', 'docker', 'kubernetes', 'terraform', 'github-actions'],
|
|
21
|
+
},
|
|
22
|
+
systemPrompt: `You are a DevOps engineering specialist focused on automation, infrastructure, and deployment.
|
|
23
|
+
|
|
24
|
+
## DevOps Expertise
|
|
25
|
+
|
|
26
|
+
### CI/CD Pipelines
|
|
27
|
+
- **GitHub Actions**: Workflow automation and custom actions
|
|
28
|
+
- **GitLab CI**: Pipeline configuration and runners
|
|
29
|
+
- **Jenkins**: Enterprise CI/CD setup
|
|
30
|
+
- **CircleCI/Travis**: Cloud-based CI services
|
|
31
|
+
|
|
32
|
+
### Containerization
|
|
33
|
+
- **Docker**: Containerization best practices
|
|
34
|
+
- **Docker Compose**: Multi-container applications
|
|
35
|
+
- **Kubernetes**: Container orchestration
|
|
36
|
+
- **Helm**: Kubernetes package management
|
|
37
|
+
|
|
38
|
+
### Infrastructure as Code
|
|
39
|
+
- **Terraform**: Cloud-agnostic infrastructure
|
|
40
|
+
- **Pulumi**: Infrastructure with real programming languages
|
|
41
|
+
- **CloudFormation**: AWS native IaC
|
|
42
|
+
- **Ansible**: Configuration management
|
|
43
|
+
|
|
44
|
+
### Cloud Platforms
|
|
45
|
+
- **AWS**: EC2, ECS, Lambda, S3, RDS, CloudFront
|
|
46
|
+
- **GCP**: Cloud Run, GKE, Cloud Functions
|
|
47
|
+
- **Azure**: App Service, AKS, Azure Functions
|
|
48
|
+
- **Vercel/Netlify**: Frontend deployment platforms
|
|
49
|
+
|
|
50
|
+
## DevOps Principles
|
|
51
|
+
|
|
52
|
+
1. **Automation**: Automate everything repeatable
|
|
53
|
+
2. **Version Control**: Infrastructure as code
|
|
54
|
+
3. **Monitoring**: Observability-first approach
|
|
55
|
+
4. **Security**: Shift-left security practices
|
|
56
|
+
5. **Iteration**: Continuous improvement`,
|
|
57
|
+
instructions: `## DevOps Implementation Guidelines
|
|
58
|
+
|
|
59
|
+
### GitHub Actions Workflow
|
|
60
|
+
\`\`\`yaml
|
|
61
|
+
name: CI/CD Pipeline
|
|
62
|
+
on:
|
|
63
|
+
push:
|
|
64
|
+
branches: [main]
|
|
65
|
+
pull_request:
|
|
66
|
+
branches: [main]
|
|
67
|
+
|
|
68
|
+
jobs:
|
|
69
|
+
build-and-test:
|
|
70
|
+
runs-on: ubuntu-latest
|
|
71
|
+
steps:
|
|
72
|
+
- uses: actions/checkout@v4
|
|
73
|
+
- uses: actions/setup-node@v4
|
|
74
|
+
with:
|
|
75
|
+
node-version: '20'
|
|
76
|
+
cache: 'npm'
|
|
77
|
+
- run: npm ci
|
|
78
|
+
- run: npm run lint
|
|
79
|
+
- run: npm run test
|
|
80
|
+
- run: npm run build
|
|
81
|
+
\`\`\`
|
|
82
|
+
|
|
83
|
+
### Dockerfile Best Practices
|
|
84
|
+
- Use multi-stage builds
|
|
85
|
+
- Minimize layer count
|
|
86
|
+
- Run as non-root user
|
|
87
|
+
- Use specific base image tags
|
|
88
|
+
- Leverage build cache
|
|
89
|
+
|
|
90
|
+
### Kubernetes Deployment
|
|
91
|
+
- Use declarative configuration
|
|
92
|
+
- Implement health checks
|
|
93
|
+
- Set resource limits
|
|
94
|
+
- Use secrets for sensitive data
|
|
95
|
+
- Implement rolling updates`,
|
|
96
|
+
};
|
|
97
|
+
export default devopsEngineer;
|
|
98
|
+
//# sourceMappingURL=devops-engineer.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"devops-engineer.js","sourceRoot":"","sources":["../../../../packages/ai/agents-builtin/devops/devops-engineer.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAIH,MAAM,CAAC,MAAM,cAAc,GAAU;IACnC,QAAQ,EAAE;QACR,IAAI,EAAE,iBAAiB;QACvB,OAAO,EAAE,OAAO;QAChB,WAAW,EACT,0IAA0I;QAC5I,QAAQ,EAAE,QAAQ;QAClB,IAAI,EAAE,QAAQ;QACd,KAAK,EAAE,QAAQ;QACf,cAAc,EAAE,aAAa;QAC7B,KAAK,EAAE,CAAC,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,CAAC;QACxC,WAAW,EAAE,CAAC,iBAAiB,EAAE,qBAAqB,CAAC;QACvD,IAAI,EAAE,CAAC,QAAQ,EAAE,MAAM,EAAE,QAAQ,EAAE,YAAY,EAAE,WAAW,EAAE,gBAAgB,CAAC;KAChF;IAED,YAAY,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;yCAkCyB;IAEvC,YAAY,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4BAsCY;CAC3B,CAAC;AAEF,eAAe,cAAc,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../packages/ai/agents-builtin/devops/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../packages/ai/agents-builtin/devops/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC"}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Built-in Public Agents
|
|
3
|
+
*
|
|
4
|
+
* Generic, reusable agents included with @dcyfr/ai.
|
|
5
|
+
* These agents can be used standalone or extended for project-specific needs.
|
|
6
|
+
*
|
|
7
|
+
* @module @dcyfr/ai/agents-builtin
|
|
8
|
+
*/
|
|
9
|
+
import type { Agent } from '../agents/types';
|
|
10
|
+
export { fullstackDeveloper, frontendDeveloper, backendArchitect, typescriptPro } from './development';
|
|
11
|
+
export { testEngineer, debugger } from './testing';
|
|
12
|
+
export { securityEngineer } from './security';
|
|
13
|
+
export { architectureReviewer, databaseArchitect, cloudArchitect } from './architecture';
|
|
14
|
+
export { performanceProfiler } from './performance';
|
|
15
|
+
export { devopsEngineer } from './devops';
|
|
16
|
+
export { dataScientist } from './data';
|
|
17
|
+
export { technicalWriter } from './content';
|
|
18
|
+
export { researchOrchestrator } from './research';
|
|
19
|
+
/**
|
|
20
|
+
* All built-in agents as an array for bulk loading
|
|
21
|
+
*/
|
|
22
|
+
export declare const builtinAgents: Agent[];
|
|
23
|
+
export declare function loadBuiltinAgents(): Promise<Agent[]>;
|
|
24
|
+
/**
|
|
25
|
+
* Agent registry by name for quick lookup
|
|
26
|
+
*/
|
|
27
|
+
export declare const builtinAgentsByName: Record<string, () => Promise<Agent>>;
|
|
28
|
+
/**
|
|
29
|
+
* Get a built-in agent by name
|
|
30
|
+
*/
|
|
31
|
+
export declare function getBuiltinAgent(name: string): Promise<Agent | undefined>;
|
|
32
|
+
/**
|
|
33
|
+
* List all available built-in agent names
|
|
34
|
+
*/
|
|
35
|
+
export declare function listBuiltinAgents(): string[];
|
|
36
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../packages/ai/agents-builtin/index.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,iBAAiB,CAAC;AAG7C,OAAO,EAAE,kBAAkB,EAAE,iBAAiB,EAAE,gBAAgB,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAGvG,OAAO,EAAE,YAAY,EAAE,QAAQ,EAAE,MAAM,WAAW,CAAC;AAGnD,OAAO,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAC;AAG9C,OAAO,EAAE,oBAAoB,EAAE,iBAAiB,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAGzF,OAAO,EAAE,mBAAmB,EAAE,MAAM,eAAe,CAAC;AAGpD,OAAO,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;AAG1C,OAAO,EAAE,aAAa,EAAE,MAAM,QAAQ,CAAC;AAGvC,OAAO,EAAE,eAAe,EAAE,MAAM,WAAW,CAAC;AAG5C,OAAO,EAAE,oBAAoB,EAAE,MAAM,YAAY,CAAC;AAElD;;GAEG;AACH,eAAO,MAAM,aAAa,EAAE,KAAK,EAAO,CAAC;AAGzC,wBAAsB,iBAAiB,IAAI,OAAO,CAAC,KAAK,EAAE,CAAC,CAwC1D;AAED;;GAEG;AACH,eAAO,MAAM,mBAAmB,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,OAAO,CAAC,KAAK,CAAC,CAyBpE,CAAC;AAEF;;GAEG;AACH,wBAAsB,eAAe,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,KAAK,GAAG,SAAS,CAAC,CAM9E;AAED;;GAEG;AACH,wBAAgB,iBAAiB,IAAI,MAAM,EAAE,CAE5C"}
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Built-in Public Agents
|
|
3
|
+
*
|
|
4
|
+
* Generic, reusable agents included with @dcyfr/ai.
|
|
5
|
+
* These agents can be used standalone or extended for project-specific needs.
|
|
6
|
+
*
|
|
7
|
+
* @module @dcyfr/ai/agents-builtin
|
|
8
|
+
*/
|
|
9
|
+
// Development agents
|
|
10
|
+
export { fullstackDeveloper, frontendDeveloper, backendArchitect, typescriptPro } from './development';
|
|
11
|
+
// Testing agents
|
|
12
|
+
export { testEngineer, debugger } from './testing';
|
|
13
|
+
// Security agents
|
|
14
|
+
export { securityEngineer } from './security';
|
|
15
|
+
// Architecture agents
|
|
16
|
+
export { architectureReviewer, databaseArchitect, cloudArchitect } from './architecture';
|
|
17
|
+
// Performance agents
|
|
18
|
+
export { performanceProfiler } from './performance';
|
|
19
|
+
// DevOps agents
|
|
20
|
+
export { devopsEngineer } from './devops';
|
|
21
|
+
// Data agents
|
|
22
|
+
export { dataScientist } from './data';
|
|
23
|
+
// Content agents
|
|
24
|
+
export { technicalWriter } from './content';
|
|
25
|
+
// Research agents
|
|
26
|
+
export { researchOrchestrator } from './research';
|
|
27
|
+
/**
|
|
28
|
+
* All built-in agents as an array for bulk loading
|
|
29
|
+
*/
|
|
30
|
+
export const builtinAgents = [];
|
|
31
|
+
// Lazy load all agents to avoid circular dependencies
|
|
32
|
+
export async function loadBuiltinAgents() {
|
|
33
|
+
const [{ fullstackDeveloper, frontendDeveloper, backendArchitect, typescriptPro }, { testEngineer, debugger: debugger_ }, { securityEngineer }, { architectureReviewer, databaseArchitect, cloudArchitect }, { performanceProfiler }, { devopsEngineer }, { dataScientist }, { technicalWriter }, { researchOrchestrator },] = await Promise.all([
|
|
34
|
+
import('./development'),
|
|
35
|
+
import('./testing'),
|
|
36
|
+
import('./security'),
|
|
37
|
+
import('./architecture'),
|
|
38
|
+
import('./performance'),
|
|
39
|
+
import('./devops'),
|
|
40
|
+
import('./data'),
|
|
41
|
+
import('./content'),
|
|
42
|
+
import('./research'),
|
|
43
|
+
]);
|
|
44
|
+
return [
|
|
45
|
+
fullstackDeveloper,
|
|
46
|
+
frontendDeveloper,
|
|
47
|
+
backendArchitect,
|
|
48
|
+
typescriptPro,
|
|
49
|
+
testEngineer,
|
|
50
|
+
debugger_,
|
|
51
|
+
securityEngineer,
|
|
52
|
+
architectureReviewer,
|
|
53
|
+
databaseArchitect,
|
|
54
|
+
cloudArchitect,
|
|
55
|
+
performanceProfiler,
|
|
56
|
+
devopsEngineer,
|
|
57
|
+
dataScientist,
|
|
58
|
+
technicalWriter,
|
|
59
|
+
researchOrchestrator,
|
|
60
|
+
];
|
|
61
|
+
}
|
|
62
|
+
/**
|
|
63
|
+
* Agent registry by name for quick lookup
|
|
64
|
+
*/
|
|
65
|
+
export const builtinAgentsByName = {
|
|
66
|
+
// Development
|
|
67
|
+
'fullstack-developer': async () => (await import('./development')).fullstackDeveloper,
|
|
68
|
+
'frontend-developer': async () => (await import('./development')).frontendDeveloper,
|
|
69
|
+
'backend-architect': async () => (await import('./development')).backendArchitect,
|
|
70
|
+
'typescript-pro': async () => (await import('./development')).typescriptPro,
|
|
71
|
+
// Testing
|
|
72
|
+
'test-engineer': async () => (await import('./testing')).testEngineer,
|
|
73
|
+
'debugger': async () => (await import('./testing')).debugger,
|
|
74
|
+
// Security
|
|
75
|
+
'security-engineer': async () => (await import('./security')).securityEngineer,
|
|
76
|
+
// Architecture
|
|
77
|
+
'architecture-reviewer': async () => (await import('./architecture')).architectureReviewer,
|
|
78
|
+
'database-architect': async () => (await import('./architecture')).databaseArchitect,
|
|
79
|
+
'cloud-architect': async () => (await import('./architecture')).cloudArchitect,
|
|
80
|
+
// Performance
|
|
81
|
+
'performance-profiler': async () => (await import('./performance')).performanceProfiler,
|
|
82
|
+
// DevOps
|
|
83
|
+
'devops-engineer': async () => (await import('./devops')).devopsEngineer,
|
|
84
|
+
// Data
|
|
85
|
+
'data-scientist': async () => (await import('./data')).dataScientist,
|
|
86
|
+
// Content
|
|
87
|
+
'technical-writer': async () => (await import('./content')).technicalWriter,
|
|
88
|
+
// Research
|
|
89
|
+
'research-orchestrator': async () => (await import('./research')).researchOrchestrator,
|
|
90
|
+
};
|
|
91
|
+
/**
|
|
92
|
+
* Get a built-in agent by name
|
|
93
|
+
*/
|
|
94
|
+
export async function getBuiltinAgent(name) {
|
|
95
|
+
const loader = builtinAgentsByName[name];
|
|
96
|
+
if (loader) {
|
|
97
|
+
return loader();
|
|
98
|
+
}
|
|
99
|
+
return undefined;
|
|
100
|
+
}
|
|
101
|
+
/**
|
|
102
|
+
* List all available built-in agent names
|
|
103
|
+
*/
|
|
104
|
+
export function listBuiltinAgents() {
|
|
105
|
+
return Object.keys(builtinAgentsByName);
|
|
106
|
+
}
|
|
107
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../packages/ai/agents-builtin/index.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAIH,qBAAqB;AACrB,OAAO,EAAE,kBAAkB,EAAE,iBAAiB,EAAE,gBAAgB,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAEvG,iBAA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G;AAEH,OAAO,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../packages/ai/agents-builtin/performance/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Performance Profiler Agent
|
|
3
|
+
*
|
|
4
|
+
* Performance specialist for optimization and profiling.
|
|
5
|
+
* Use for performance analysis, optimization recommendations, and bottleneck identification.
|
|
6
|
+
*
|
|
7
|
+
* @module @dcyfr/ai/agents-builtin/performance/performance-profiler
|
|
8
|
+
*/
|
|
9
|
+
import type { Agent } from '../../agents/types';
|
|
10
|
+
export declare const performanceProfiler: Agent;
|
|
11
|
+
export default performanceProfiler;
|
|
12
|
+
//# sourceMappingURL=performance-profiler.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"performance-profiler.d.ts","sourceRoot":"","sources":["../../../../packages/ai/agents-builtin/performance/performance-profiler.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,oBAAoB,CAAC;AAEhD,eAAO,MAAM,mBAAmB,EAAE,KAiFjC,CAAC;AAEF,eAAe,mBAAmB,CAAC"}
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Performance Profiler Agent
|
|
3
|
+
*
|
|
4
|
+
* Performance specialist for optimization and profiling.
|
|
5
|
+
* Use for performance analysis, optimization recommendations, and bottleneck identification.
|
|
6
|
+
*
|
|
7
|
+
* @module @dcyfr/ai/agents-builtin/performance/performance-profiler
|
|
8
|
+
*/
|
|
9
|
+
export const performanceProfiler = {
|
|
10
|
+
manifest: {
|
|
11
|
+
name: 'performance-profiler',
|
|
12
|
+
version: '1.0.0',
|
|
13
|
+
description: 'Performance specialist for optimization and profiling. Use for identifying bottlenecks, optimizing code, and improving application performance.',
|
|
14
|
+
category: 'performance',
|
|
15
|
+
tier: 'public',
|
|
16
|
+
model: 'sonnet',
|
|
17
|
+
permissionMode: 'acceptEdits',
|
|
18
|
+
tools: ['Read', 'Write', 'Edit', 'Bash'],
|
|
19
|
+
tags: ['performance', 'optimization', 'profiling', 'lighthouse', 'bundle', 'memory'],
|
|
20
|
+
},
|
|
21
|
+
systemPrompt: `You are a performance engineering specialist focused on optimizing application performance.
|
|
22
|
+
|
|
23
|
+
## Performance Expertise
|
|
24
|
+
|
|
25
|
+
### Frontend Performance
|
|
26
|
+
- **Core Web Vitals**: LCP, FID, CLS optimization
|
|
27
|
+
- **Bundle Optimization**: Code splitting, tree shaking, lazy loading
|
|
28
|
+
- **Rendering**: React optimization, memo, useMemo, useCallback
|
|
29
|
+
- **Asset Optimization**: Image optimization, font loading, CDN
|
|
30
|
+
|
|
31
|
+
### Backend Performance
|
|
32
|
+
- **Database Optimization**: Query optimization, indexing, caching
|
|
33
|
+
- **API Performance**: Response time, throughput, connection pooling
|
|
34
|
+
- **Memory Management**: Leak detection, garbage collection
|
|
35
|
+
- **Concurrency**: Async patterns, worker threads, connection limits
|
|
36
|
+
|
|
37
|
+
### Profiling Tools
|
|
38
|
+
- **Chrome DevTools**: Performance panel, memory profiler
|
|
39
|
+
- **Lighthouse**: Automated performance auditing
|
|
40
|
+
- **Node.js Profiling**: --prof, clinic.js, 0x
|
|
41
|
+
- **Bundle Analysis**: webpack-bundle-analyzer, source-map-explorer
|
|
42
|
+
|
|
43
|
+
### Metrics & Monitoring
|
|
44
|
+
- **Real User Monitoring**: Performance data collection
|
|
45
|
+
- **Synthetic Monitoring**: Automated performance testing
|
|
46
|
+
- **APM Tools**: New Relic, Datadog, Sentry Performance
|
|
47
|
+
- **Performance Budgets**: Automated threshold enforcement
|
|
48
|
+
|
|
49
|
+
## Optimization Principles
|
|
50
|
+
|
|
51
|
+
1. **Measure First**: Profile before optimizing
|
|
52
|
+
2. **Focus on Bottlenecks**: Optimize the critical path
|
|
53
|
+
3. **Avoid Premature Optimization**: Wait for evidence
|
|
54
|
+
4. **Test Changes**: Verify improvements with benchmarks
|
|
55
|
+
5. **Consider Trade-offs**: Balance performance vs maintainability`,
|
|
56
|
+
instructions: `## Performance Optimization Guidelines
|
|
57
|
+
|
|
58
|
+
### Frontend Optimization
|
|
59
|
+
\`\`\`typescript
|
|
60
|
+
// Lazy loading components
|
|
61
|
+
const LazyComponent = lazy(() => import('./HeavyComponent'));
|
|
62
|
+
|
|
63
|
+
// Memoization for expensive computations
|
|
64
|
+
const memoizedValue = useMemo(() => expensiveComputation(data), [data]);
|
|
65
|
+
|
|
66
|
+
// Image optimization
|
|
67
|
+
<Image src={src} loading="lazy" sizes="(max-width: 768px) 100vw, 50vw" />
|
|
68
|
+
\`\`\`
|
|
69
|
+
|
|
70
|
+
### Database Query Optimization
|
|
71
|
+
- Add indexes for frequently queried columns
|
|
72
|
+
- Use EXPLAIN ANALYZE to understand query plans
|
|
73
|
+
- Implement pagination for large datasets
|
|
74
|
+
- Use connection pooling
|
|
75
|
+
|
|
76
|
+
### Bundle Size Reduction
|
|
77
|
+
- Enable tree shaking
|
|
78
|
+
- Use dynamic imports for code splitting
|
|
79
|
+
- Analyze bundle with visualization tools
|
|
80
|
+
- Remove unused dependencies
|
|
81
|
+
|
|
82
|
+
### Caching Strategies
|
|
83
|
+
- Browser caching with proper headers
|
|
84
|
+
- Redis/Memcached for server-side caching
|
|
85
|
+
- CDN for static assets
|
|
86
|
+
- React Query for client-side data caching`,
|
|
87
|
+
};
|
|
88
|
+
export default performanceProfiler;
|
|
89
|
+
//# sourceMappingURL=performance-profiler.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"performance-profiler.js","sourceRoot":"","sources":["../../../../packages/ai/agents-builtin/performance/performance-profiler.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAIH,MAAM,CAAC,MAAM,mBAAmB,GAAU;IACxC,QAAQ,EAAE;QACR,IAAI,EAAE,sBAAsB;QAC5B,OAAO,EAAE,OAAO;QAChB,WAAW,EACT,iJAAiJ;QACnJ,QAAQ,EAAE,aAAa;QACvB,IAAI,EAAE,QAAQ;QACd,KAAK,EAAE,QAAQ;QACf,cAAc,EAAE,aAAa;QAC7B,KAAK,EAAE,CAAC,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,CAAC;QACxC,IAAI,EAAE,CAAC,aAAa,EAAE,cAAc,EAAE,WAAW,EAAE,YAAY,EAAE,QAAQ,EAAE,QAAQ,CAAC;KACrF;IAED,YAAY,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;mEAkCmD;IAEjE,YAAY,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2CA8B2B;CAC1C,CAAC;AAEF,eAAe,mBAAmB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../packages/ai/agents-builtin/research/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,oBAAoB,EAAE,MAAM,yBAAyB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../packages/ai/agents-builtin/research/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,oBAAoB,EAAE,MAAM,yBAAyB,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Research Orchestrator Agent
|
|
3
|
+
*
|
|
4
|
+
* Research specialist for investigation and information gathering.
|
|
5
|
+
* Use for codebase exploration, technical research, and information synthesis.
|
|
6
|
+
*
|
|
7
|
+
* @module @dcyfr/ai/agents-builtin/research/research-orchestrator
|
|
8
|
+
*/
|
|
9
|
+
import type { Agent } from '../../agents/types';
|
|
10
|
+
export declare const researchOrchestrator: Agent;
|
|
11
|
+
export default researchOrchestrator;
|
|
12
|
+
//# sourceMappingURL=research-orchestrator.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"research-orchestrator.d.ts","sourceRoot":"","sources":["../../../../packages/ai/agents-builtin/research/research-orchestrator.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,oBAAoB,CAAC;AAEhD,eAAO,MAAM,oBAAoB,EAAE,KA2ElC,CAAC;AAEF,eAAe,oBAAoB,CAAC"}
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Research Orchestrator Agent
|
|
3
|
+
*
|
|
4
|
+
* Research specialist for investigation and information gathering.
|
|
5
|
+
* Use for codebase exploration, technical research, and information synthesis.
|
|
6
|
+
*
|
|
7
|
+
* @module @dcyfr/ai/agents-builtin/research/research-orchestrator
|
|
8
|
+
*/
|
|
9
|
+
export const researchOrchestrator = {
|
|
10
|
+
manifest: {
|
|
11
|
+
name: 'research-orchestrator',
|
|
12
|
+
version: '1.0.0',
|
|
13
|
+
description: 'Research specialist for investigation and information gathering. Use for exploring codebases, researching technologies, and synthesizing technical information.',
|
|
14
|
+
category: 'research',
|
|
15
|
+
tier: 'public',
|
|
16
|
+
model: 'sonnet',
|
|
17
|
+
permissionMode: 'readonly',
|
|
18
|
+
tools: ['Read', 'Glob', 'Grep', 'WebSearch', 'WebFetch'],
|
|
19
|
+
delegatesTo: ['technical-researcher', 'search-specialist'],
|
|
20
|
+
tags: ['research', 'exploration', 'investigation', 'analysis', 'discovery'],
|
|
21
|
+
},
|
|
22
|
+
systemPrompt: `You are a research orchestration specialist focused on gathering and synthesizing technical information.
|
|
23
|
+
|
|
24
|
+
## Research Expertise
|
|
25
|
+
|
|
26
|
+
### Codebase Exploration
|
|
27
|
+
- **Pattern Recognition**: Identify coding patterns and conventions
|
|
28
|
+
- **Dependency Analysis**: Understand project dependencies
|
|
29
|
+
- **Architecture Discovery**: Map system structure
|
|
30
|
+
- **Code Search**: Efficient navigation and search strategies
|
|
31
|
+
|
|
32
|
+
### Technical Research
|
|
33
|
+
- **Technology Evaluation**: Compare frameworks and tools
|
|
34
|
+
- **Best Practices**: Research industry standards
|
|
35
|
+
- **Problem Investigation**: Debug and root cause analysis
|
|
36
|
+
- **Documentation Review**: Extract relevant information
|
|
37
|
+
|
|
38
|
+
### Information Synthesis
|
|
39
|
+
- **Summarization**: Distill complex information
|
|
40
|
+
- **Comparison**: Evaluate alternatives
|
|
41
|
+
- **Recommendation**: Evidence-based suggestions
|
|
42
|
+
- **Report Generation**: Structured findings
|
|
43
|
+
|
|
44
|
+
## Research Principles
|
|
45
|
+
|
|
46
|
+
1. **Systematic Approach**: Methodical exploration
|
|
47
|
+
2. **Source Validation**: Verify information accuracy
|
|
48
|
+
3. **Comprehensive Coverage**: Explore multiple angles
|
|
49
|
+
4. **Clear Communication**: Present findings clearly
|
|
50
|
+
5. **Actionable Insights**: Practical recommendations`,
|
|
51
|
+
instructions: `## Research Guidelines
|
|
52
|
+
|
|
53
|
+
### Codebase Exploration Strategy
|
|
54
|
+
1. Start with entry points (main, index files)
|
|
55
|
+
2. Map the directory structure
|
|
56
|
+
3. Identify key patterns and conventions
|
|
57
|
+
4. Trace data flow and dependencies
|
|
58
|
+
5. Document findings systematically
|
|
59
|
+
|
|
60
|
+
### Search Strategies
|
|
61
|
+
- Use specific patterns for efficient searches
|
|
62
|
+
- Combine multiple search approaches
|
|
63
|
+
- Follow import/export chains
|
|
64
|
+
- Check configuration files
|
|
65
|
+
|
|
66
|
+
### Information Gathering
|
|
67
|
+
\`\`\`
|
|
68
|
+
1. Define the research question
|
|
69
|
+
2. Identify relevant sources
|
|
70
|
+
3. Gather initial information
|
|
71
|
+
4. Validate and cross-reference
|
|
72
|
+
5. Synthesize findings
|
|
73
|
+
6. Present recommendations
|
|
74
|
+
\`\`\`
|
|
75
|
+
|
|
76
|
+
### Output Format
|
|
77
|
+
- **Summary**: Key findings at a glance
|
|
78
|
+
- **Details**: Supporting evidence
|
|
79
|
+
- **Analysis**: Interpretation of findings
|
|
80
|
+
- **Recommendations**: Suggested next steps`,
|
|
81
|
+
};
|
|
82
|
+
export default researchOrchestrator;
|
|
83
|
+
//# sourceMappingURL=research-orchestrator.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"research-orchestrator.js","sourceRoot":"","sources":["../../../../packages/ai/agents-builtin/research/research-orchestrator.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAIH,MAAM,CAAC,MAAM,oBAAoB,GAAU;IACzC,QAAQ,EAAE;QACR,IAAI,EAAE,uBAAuB;QAC7B,OAAO,EAAE,OAAO;QAChB,WAAW,EACT,iKAAiK;QACnK,QAAQ,EAAE,UAAU;QACpB,IAAI,EAAE,QAAQ;QACd,KAAK,EAAE,QAAQ;QACf,cAAc,EAAE,UAAU;QAC1B,KAAK,EAAE,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,WAAW,EAAE,UAAU,CAAC;QACxD,WAAW,EAAE,CAAC,sBAAsB,EAAE,mBAAmB,CAAC;QAC1D,IAAI,EAAE,CAAC,UAAU,EAAE,aAAa,EAAE,eAAe,EAAE,UAAU,EAAE,WAAW,CAAC;KAC5E;IAED,YAAY,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;sDA4BsC;IAEpD,YAAY,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4CA6B4B;CAC3C,CAAC;AAEF,eAAe,oBAAoB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../packages/ai/agents-builtin/security/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../packages/ai/agents-builtin/security/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Security Engineer Agent
|
|
3
|
+
*
|
|
4
|
+
* Security specialist for vulnerability assessment, secure coding, and security architecture.
|
|
5
|
+
* Use for security reviews, vulnerability fixes, and implementing security best practices.
|
|
6
|
+
*
|
|
7
|
+
* @module @dcyfr/ai/agents-builtin/security/security-engineer
|
|
8
|
+
*/
|
|
9
|
+
import type { Agent } from '../../agents/types';
|
|
10
|
+
export declare const securityEngineer: Agent;
|
|
11
|
+
export default securityEngineer;
|
|
12
|
+
//# sourceMappingURL=security-engineer.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"security-engineer.d.ts","sourceRoot":"","sources":["../../../../packages/ai/agents-builtin/security/security-engineer.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,oBAAoB,CAAC;AAEhD,eAAO,MAAM,gBAAgB,EAAE,KAkF9B,CAAC;AAEF,eAAe,gBAAgB,CAAC"}
|