devworkspace 0.4.5 → 0.5.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/CHANGELOG.md +57 -0
- package/README.md +7 -0
- package/dist/cli/args.d.ts +30 -0
- package/dist/cli/args.js +10 -0
- package/dist/cli/args.js.map +1 -1
- package/dist/cli/help.js +134 -0
- package/dist/cli/help.js.map +1 -1
- package/dist/cli/render.d.ts +6 -0
- package/dist/cli/render.js +106 -0
- package/dist/cli/render.js.map +1 -1
- package/dist/cli/run.js +351 -1
- package/dist/cli/run.js.map +1 -1
- package/dist/core/contracts.d.ts +70 -0
- package/dist/core/contracts.js +88 -0
- package/dist/core/contracts.js.map +1 -0
- package/dist/discovery/commands.d.ts +1 -1
- package/dist/discovery/commands.js.map +1 -1
- package/dist/discovery/detect.d.ts +2 -70
- package/dist/discovery/detect.js.map +1 -1
- package/dist/discovery/entrypoints.d.ts +2 -11
- package/dist/discovery/entrypoints.js.map +1 -1
- package/dist/discovery/types.d.ts +79 -0
- package/dist/discovery/types.js +2 -0
- package/dist/discovery/types.js.map +1 -0
- package/dist/dx/dashboard.d.ts +21 -0
- package/dist/dx/dashboard.js +274 -0
- package/dist/dx/dashboard.js.map +1 -0
- package/dist/dx/guidance.d.ts +21 -0
- package/dist/dx/guidance.js +266 -0
- package/dist/dx/guidance.js.map +1 -0
- package/dist/dx/index.d.ts +4 -0
- package/dist/dx/index.js +5 -0
- package/dist/dx/index.js.map +1 -0
- package/dist/dx/onboarding.d.ts +23 -0
- package/dist/dx/onboarding.js +155 -0
- package/dist/dx/onboarding.js.map +1 -0
- package/dist/dx/types.d.ts +70 -0
- package/dist/dx/types.js +3 -0
- package/dist/dx/types.js.map +1 -0
- package/dist/index.d.ts +35 -0
- package/dist/index.js +28 -0
- package/dist/index.js.map +1 -1
- package/dist/integrations/persistentPath.d.ts +2 -9
- package/dist/integrations/persistentPath.js.map +1 -1
- package/dist/integrations/types.d.ts +4 -1
- package/dist/integrations/types.js.map +1 -1
- package/dist/intelligence/agents/profiles.d.ts +2 -0
- package/dist/intelligence/agents/profiles.js +326 -0
- package/dist/intelligence/agents/profiles.js.map +1 -0
- package/dist/intelligence/agents/registry.d.ts +15 -0
- package/dist/intelligence/agents/registry.js +108 -0
- package/dist/intelligence/agents/registry.js.map +1 -0
- package/dist/intelligence/agents/types.d.ts +43 -0
- package/dist/intelligence/agents/types.js +2 -0
- package/dist/intelligence/agents/types.js.map +1 -0
- package/dist/intelligence/observability/tracer.d.ts +13 -0
- package/dist/intelligence/observability/tracer.js +129 -0
- package/dist/intelligence/observability/tracer.js.map +1 -0
- package/dist/intelligence/observability/types.d.ts +38 -0
- package/dist/intelligence/observability/types.js +2 -0
- package/dist/intelligence/observability/types.js.map +1 -0
- package/dist/intelligence/orchestration/engine.d.ts +42 -0
- package/dist/intelligence/orchestration/engine.js +418 -0
- package/dist/intelligence/orchestration/engine.js.map +1 -0
- package/dist/intelligence/orchestration/lock-manager.d.ts +21 -0
- package/dist/intelligence/orchestration/lock-manager.js +70 -0
- package/dist/intelligence/orchestration/lock-manager.js.map +1 -0
- package/dist/intelligence/orchestration/store.d.ts +11 -0
- package/dist/intelligence/orchestration/store.js +73 -0
- package/dist/intelligence/orchestration/store.js.map +1 -0
- package/dist/intelligence/orchestration/types.d.ts +100 -0
- package/dist/intelligence/orchestration/types.js +48 -0
- package/dist/intelligence/orchestration/types.js.map +1 -0
- package/dist/intelligence/routing/matcher.d.ts +7 -0
- package/dist/intelligence/routing/matcher.js +96 -0
- package/dist/intelligence/routing/matcher.js.map +1 -0
- package/dist/intelligence/routing/router.d.ts +9 -0
- package/dist/intelligence/routing/router.js +198 -0
- package/dist/intelligence/routing/router.js.map +1 -0
- package/dist/intelligence/routing/types.d.ts +64 -0
- package/dist/intelligence/routing/types.js +2 -0
- package/dist/intelligence/routing/types.js.map +1 -0
- package/dist/intelligence/runtime/adk/adapter.d.ts +7 -0
- package/dist/intelligence/runtime/adk/adapter.js +60 -0
- package/dist/intelligence/runtime/adk/adapter.js.map +1 -0
- package/dist/intelligence/runtime/adk/detector.d.ts +7 -0
- package/dist/intelligence/runtime/adk/detector.js +28 -0
- package/dist/intelligence/runtime/adk/detector.js.map +1 -0
- package/dist/intelligence/runtime/external.d.ts +9 -0
- package/dist/intelligence/runtime/external.js +102 -0
- package/dist/intelligence/runtime/external.js.map +1 -0
- package/dist/intelligence/runtime/native.d.ts +19 -0
- package/dist/intelligence/runtime/native.js +99 -0
- package/dist/intelligence/runtime/native.js.map +1 -0
- package/dist/intelligence/runtime/types.d.ts +49 -0
- package/dist/intelligence/runtime/types.js +2 -0
- package/dist/intelligence/runtime/types.js.map +1 -0
- package/dist/intelligence/security/audit.d.ts +8 -0
- package/dist/intelligence/security/audit.js +43 -0
- package/dist/intelligence/security/audit.js.map +1 -0
- package/dist/intelligence/security/policy.d.ts +12 -0
- package/dist/intelligence/security/policy.js +153 -0
- package/dist/intelligence/security/policy.js.map +1 -0
- package/dist/intelligence/security/types.d.ts +25 -0
- package/dist/intelligence/security/types.js +2 -0
- package/dist/intelligence/security/types.js.map +1 -0
- package/dist/intelligence/skills/builtins.d.ts +2 -0
- package/dist/intelligence/skills/builtins.js +379 -0
- package/dist/intelligence/skills/builtins.js.map +1 -0
- package/dist/intelligence/skills/loader.d.ts +4 -0
- package/dist/intelligence/skills/loader.js +84 -0
- package/dist/intelligence/skills/loader.js.map +1 -0
- package/dist/intelligence/skills/registry.d.ts +15 -0
- package/dist/intelligence/skills/registry.js +134 -0
- package/dist/intelligence/skills/registry.js.map +1 -0
- package/dist/intelligence/skills/types.d.ts +35 -0
- package/dist/intelligence/skills/types.js +2 -0
- package/dist/intelligence/skills/types.js.map +1 -0
- package/dist/intelligence/verification/engine.d.ts +23 -0
- package/dist/intelligence/verification/engine.js +66 -0
- package/dist/intelligence/verification/engine.js.map +1 -0
- package/dist/intelligence/verification/reviewer.d.ts +8 -0
- package/dist/intelligence/verification/reviewer.js +55 -0
- package/dist/intelligence/verification/reviewer.js.map +1 -0
- package/dist/intelligence/verification/types.d.ts +32 -0
- package/dist/intelligence/verification/types.js +2 -0
- package/dist/intelligence/verification/types.js.map +1 -0
- package/dist/mcp/setup.d.ts +2 -4
- package/dist/mcp/setup.js.map +1 -1
- package/dist/mcp/tools.js +6 -6
- package/dist/mcp/tools.js.map +1 -1
- package/dist/mcp/types.d.ts +4 -0
- package/dist/mcp/types.js.map +1 -1
- package/dist/mcp/verify.d.ts +1 -1
- package/dist/mcp/verify.js.map +1 -1
- package/dist/security/redact.js +3 -2
- package/dist/security/redact.js.map +1 -1
- package/dist/services/doctor.js +4 -0
- package/dist/services/doctor.js.map +1 -1
- package/dist/services/intelligence.d.ts +44 -0
- package/dist/services/intelligence.js +119 -0
- package/dist/services/intelligence.js.map +1 -0
- package/dist/services/standards.d.ts +85 -0
- package/dist/services/standards.js +230 -0
- package/dist/services/standards.js.map +1 -0
- package/dist/services/taskContext.js +4 -0
- package/dist/services/taskContext.js.map +1 -1
- package/dist/standards/acquisition/ingest.d.ts +12 -0
- package/dist/standards/acquisition/ingest.js +98 -0
- package/dist/standards/acquisition/ingest.js.map +1 -0
- package/dist/standards/applicability/engine.d.ts +38 -0
- package/dist/standards/applicability/engine.js +250 -0
- package/dist/standards/applicability/engine.js.map +1 -0
- package/dist/standards/builtin/code-quality.d.ts +2 -0
- package/dist/standards/builtin/code-quality.js +53 -0
- package/dist/standards/builtin/code-quality.js.map +1 -0
- package/dist/standards/builtin/database-safety.d.ts +2 -0
- package/dist/standards/builtin/database-safety.js +56 -0
- package/dist/standards/builtin/database-safety.js.map +1 -0
- package/dist/standards/builtin/index.d.ts +8 -0
- package/dist/standards/builtin/index.js +14 -0
- package/dist/standards/builtin/index.js.map +1 -0
- package/dist/standards/builtin/security-baseline.d.ts +2 -0
- package/dist/standards/builtin/security-baseline.js +64 -0
- package/dist/standards/builtin/security-baseline.js.map +1 -0
- package/dist/standards/builtin/testing-contracts.d.ts +2 -0
- package/dist/standards/builtin/testing-contracts.js +54 -0
- package/dist/standards/builtin/testing-contracts.js.map +1 -0
- package/dist/standards/builtin/undo-kit.d.ts +8 -0
- package/dist/standards/builtin/undo-kit.js +106 -0
- package/dist/standards/builtin/undo-kit.js.map +1 -0
- package/dist/standards/config/config.d.ts +12 -0
- package/dist/standards/config/config.js +110 -0
- package/dist/standards/config/config.js.map +1 -0
- package/dist/standards/distribution/cache.d.ts +57 -0
- package/dist/standards/distribution/cache.js +411 -0
- package/dist/standards/distribution/cache.js.map +1 -0
- package/dist/standards/distribution/index.d.ts +6 -0
- package/dist/standards/distribution/index.js +7 -0
- package/dist/standards/distribution/index.js.map +1 -0
- package/dist/standards/distribution/keys.d.ts +53 -0
- package/dist/standards/distribution/keys.js +269 -0
- package/dist/standards/distribution/keys.js.map +1 -0
- package/dist/standards/distribution/package.d.ts +25 -0
- package/dist/standards/distribution/package.js +248 -0
- package/dist/standards/distribution/package.js.map +1 -0
- package/dist/standards/distribution/server.d.ts +38 -0
- package/dist/standards/distribution/server.js +204 -0
- package/dist/standards/distribution/server.js.map +1 -0
- package/dist/standards/distribution/sync.d.ts +51 -0
- package/dist/standards/distribution/sync.js +212 -0
- package/dist/standards/distribution/sync.js.map +1 -0
- package/dist/standards/distribution/types.d.ts +140 -0
- package/dist/standards/distribution/types.js +26 -0
- package/dist/standards/distribution/types.js.map +1 -0
- package/dist/standards/engine/compliance.d.ts +2 -0
- package/dist/standards/engine/compliance.js +45 -0
- package/dist/standards/engine/compliance.js.map +1 -0
- package/dist/standards/engine/engine.d.ts +14 -0
- package/dist/standards/engine/engine.js +114 -0
- package/dist/standards/engine/engine.js.map +1 -0
- package/dist/standards/engine/reporter.d.ts +2 -0
- package/dist/standards/engine/reporter.js +42 -0
- package/dist/standards/engine/reporter.js.map +1 -0
- package/dist/standards/index.d.ts +18 -0
- package/dist/standards/index.js +19 -0
- package/dist/standards/index.js.map +1 -0
- package/dist/standards/registry/registry.d.ts +29 -0
- package/dist/standards/registry/registry.js +210 -0
- package/dist/standards/registry/registry.js.map +1 -0
- package/dist/standards/schema/types.d.ts +133 -0
- package/dist/standards/schema/types.js +33 -0
- package/dist/standards/schema/types.js.map +1 -0
- package/dist/standards/schema/validate.d.ts +6 -0
- package/dist/standards/schema/validate.js +131 -0
- package/dist/standards/schema/validate.js.map +1 -0
- package/dist/standards/templates/index.d.ts +11 -0
- package/dist/standards/templates/index.js +176 -0
- package/dist/standards/templates/index.js.map +1 -0
- package/dist/standards/validators/database.d.ts +5 -0
- package/dist/standards/validators/database.js +122 -0
- package/dist/standards/validators/database.js.map +1 -0
- package/dist/standards/validators/quality.d.ts +6 -0
- package/dist/standards/validators/quality.js +91 -0
- package/dist/standards/validators/quality.js.map +1 -0
- package/dist/standards/validators/registry.d.ts +11 -0
- package/dist/standards/validators/registry.js +83 -0
- package/dist/standards/validators/registry.js.map +1 -0
- package/dist/standards/validators/security.d.ts +7 -0
- package/dist/standards/validators/security.js +182 -0
- package/dist/standards/validators/security.js.map +1 -0
- package/dist/standards/validators/testing.d.ts +6 -0
- package/dist/standards/validators/testing.js +142 -0
- package/dist/standards/validators/testing.js.map +1 -0
- package/dist/standards/validators/types.d.ts +11 -0
- package/dist/standards/validators/types.js +2 -0
- package/dist/standards/validators/types.js.map +1 -0
- package/dist/standards/validators/undo-kit.d.ts +7 -0
- package/dist/standards/validators/undo-kit.js +334 -0
- package/dist/standards/validators/undo-kit.js.map +1 -0
- package/dist/tasks/routing.js +5 -3
- package/dist/tasks/routing.js.map +1 -1
- package/dist/utils/fs.d.ts +1 -1
- package/dist/utils/fs.js.map +1 -1
- package/dist/utils/lock.js +11 -3
- package/dist/utils/lock.js.map +1 -1
- package/dist/utils/paths.js +29 -0
- package/dist/utils/paths.js.map +1 -1
- package/dist/utils/proc.js +2 -0
- package/dist/utils/proc.js.map +1 -1
- package/docs/contributing.md +9 -0
- package/docs/getting-started.md +7 -0
- package/docs/security/HOME_SERVER_THREAT_MODEL.md +72 -0
- package/docs/security/THREAT_MODEL.md +101 -0
- package/docs/standards.md +143 -0
- package/package.json +1 -1
|
@@ -0,0 +1,326 @@
|
|
|
1
|
+
export const BUILTIN_AGENT_PROFILES = {
|
|
2
|
+
planner: {
|
|
3
|
+
id: 'planner',
|
|
4
|
+
name: 'Planner Agent',
|
|
5
|
+
description: 'Decomposes complex requests into structured, verified dependency graphs and milestone plans.',
|
|
6
|
+
role: 'PLANNER',
|
|
7
|
+
capabilities: ['requirements-analysis', 'task-decomposition', 'milestone-planning', 'dependency-graphing'],
|
|
8
|
+
supportedTaskTypes: ['FEATURE', 'REFACTOR', 'MAINTENANCE', 'ARCHITECTURE'],
|
|
9
|
+
requiredSkills: ['architecture-analysis'],
|
|
10
|
+
supportedProviders: ['native', 'claude-code', 'codex', 'antigravity', 'google-adk'],
|
|
11
|
+
modelPreferences: { preferredTier: 'reasoning' },
|
|
12
|
+
toolPermissions: [
|
|
13
|
+
{ name: 'get_project_overview', allowed: true },
|
|
14
|
+
{ name: 'get_task_context', allowed: true },
|
|
15
|
+
{ name: 'trace_symbol_dependencies', allowed: true },
|
|
16
|
+
],
|
|
17
|
+
filePermissions: {
|
|
18
|
+
readPatterns: ['**/*'],
|
|
19
|
+
writePatterns: ['.devworkspace/orchestration/plans/**'],
|
|
20
|
+
deniedPatterns: ['.env*', '**/*.key', '**/*.pem'],
|
|
21
|
+
},
|
|
22
|
+
riskClassification: 'LOW',
|
|
23
|
+
maxExecutionTimeSeconds: 120,
|
|
24
|
+
maxTokenBudget: 50_000,
|
|
25
|
+
maxRetryCount: 2,
|
|
26
|
+
isBuiltin: true,
|
|
27
|
+
version: '1.0.0',
|
|
28
|
+
},
|
|
29
|
+
architect: {
|
|
30
|
+
id: 'architect',
|
|
31
|
+
name: 'Architect Agent',
|
|
32
|
+
description: 'Evaluates architectural integrity, designs module boundaries, and formulates Architecture Decision Records (ADRs).',
|
|
33
|
+
role: 'ARCHITECT',
|
|
34
|
+
capabilities: ['system-design', 'adr-authoring', 'boundary-enforcement', 'technology-selection'],
|
|
35
|
+
supportedTaskTypes: ['ARCHITECTURE', 'FEATURE', 'REFACTOR'],
|
|
36
|
+
requiredSkills: ['architecture-analysis', 'database-design'],
|
|
37
|
+
supportedProviders: ['native', 'claude-code', 'codex', 'antigravity', 'google-adk'],
|
|
38
|
+
modelPreferences: { preferredTier: 'reasoning' },
|
|
39
|
+
toolPermissions: [
|
|
40
|
+
{ name: 'get_project_overview', allowed: true },
|
|
41
|
+
{ name: 'get_file_context', allowed: true },
|
|
42
|
+
{ name: 'trace_symbol_dependencies', allowed: true },
|
|
43
|
+
],
|
|
44
|
+
filePermissions: {
|
|
45
|
+
readPatterns: ['**/*'],
|
|
46
|
+
writePatterns: ['.devworkspace/decisions/**', 'docs/architecture*'],
|
|
47
|
+
deniedPatterns: ['.env*', '**/*.key', '**/*.pem'],
|
|
48
|
+
},
|
|
49
|
+
riskClassification: 'LOW',
|
|
50
|
+
maxExecutionTimeSeconds: 180,
|
|
51
|
+
maxTokenBudget: 60_000,
|
|
52
|
+
maxRetryCount: 2,
|
|
53
|
+
isBuiltin: true,
|
|
54
|
+
version: '1.0.0',
|
|
55
|
+
},
|
|
56
|
+
research: {
|
|
57
|
+
id: 'research',
|
|
58
|
+
name: 'Research Agent',
|
|
59
|
+
description: 'Explores repositories, traces AST call hierarchies, and verifies existing facts without modifying files.',
|
|
60
|
+
role: 'RESEARCH',
|
|
61
|
+
capabilities: ['symbol-tracing', 'code-exploration', 'fact-discovery', 'reference-mapping'],
|
|
62
|
+
supportedTaskTypes: ['QUESTION', 'BUG', 'FEATURE', 'REFACTOR', 'MAINTENANCE'],
|
|
63
|
+
requiredSkills: ['architecture-analysis', 'debugging'],
|
|
64
|
+
supportedProviders: ['native', 'claude-code', 'codex', 'antigravity', 'google-adk'],
|
|
65
|
+
modelPreferences: { preferredTier: 'fast' },
|
|
66
|
+
toolPermissions: [
|
|
67
|
+
{ name: 'get_project_overview', allowed: true },
|
|
68
|
+
{ name: 'get_file_context', allowed: true },
|
|
69
|
+
{ name: 'get_task_context', allowed: true },
|
|
70
|
+
{ name: 'trace_symbol_dependencies', allowed: true },
|
|
71
|
+
],
|
|
72
|
+
filePermissions: {
|
|
73
|
+
readPatterns: ['**/*'],
|
|
74
|
+
writePatterns: [],
|
|
75
|
+
deniedPatterns: ['.env*', '**/*.key', '**/*.pem'],
|
|
76
|
+
},
|
|
77
|
+
riskClassification: 'LOW',
|
|
78
|
+
maxExecutionTimeSeconds: 120,
|
|
79
|
+
maxTokenBudget: 40_000,
|
|
80
|
+
maxRetryCount: 2,
|
|
81
|
+
isBuiltin: true,
|
|
82
|
+
version: '1.0.0',
|
|
83
|
+
},
|
|
84
|
+
developer: {
|
|
85
|
+
id: 'developer',
|
|
86
|
+
name: 'Developer Agent',
|
|
87
|
+
description: 'Authoritative single-writer code implementation specialist for features, enhancements, and refactoring.',
|
|
88
|
+
role: 'DEVELOPER',
|
|
89
|
+
capabilities: ['code-implementation', 'refactoring', 'api-implementation', 'library-integration'],
|
|
90
|
+
supportedTaskTypes: ['FEATURE', 'BUG', 'REFACTOR', 'MAINTENANCE'],
|
|
91
|
+
requiredSkills: ['api-development', 'refactoring', 'test-driven-development'],
|
|
92
|
+
supportedProviders: ['native', 'claude-code', 'codex', 'antigravity', 'google-adk'],
|
|
93
|
+
modelPreferences: { preferredTier: 'coding' },
|
|
94
|
+
toolPermissions: [
|
|
95
|
+
{ name: 'get_project_overview', allowed: true },
|
|
96
|
+
{ name: 'get_file_context', allowed: true },
|
|
97
|
+
{ name: 'get_task_context', allowed: true },
|
|
98
|
+
{ name: 'execute_check', allowed: true },
|
|
99
|
+
],
|
|
100
|
+
filePermissions: {
|
|
101
|
+
readPatterns: ['**/*'],
|
|
102
|
+
writePatterns: ['src/**', 'lib/**', 'tests/**', 'package.json'],
|
|
103
|
+
deniedPatterns: ['.env*', '**/*.key', '**/*.pem', '.git/**'],
|
|
104
|
+
},
|
|
105
|
+
riskClassification: 'MEDIUM',
|
|
106
|
+
maxExecutionTimeSeconds: 300,
|
|
107
|
+
maxTokenBudget: 100_000,
|
|
108
|
+
maxRetryCount: 3,
|
|
109
|
+
isBuiltin: true,
|
|
110
|
+
version: '1.0.0',
|
|
111
|
+
},
|
|
112
|
+
debugger: {
|
|
113
|
+
id: 'debugger',
|
|
114
|
+
name: 'Debugger Agent',
|
|
115
|
+
description: 'Reproduces faults, writes failing regression tests, and identifies root causes.',
|
|
116
|
+
role: 'DEBUGGER',
|
|
117
|
+
capabilities: ['fault-reproduction', 'root-cause-analysis', 'regression-testing', 'stack-trace-analysis'],
|
|
118
|
+
supportedTaskTypes: ['BUG', 'TESTING'],
|
|
119
|
+
requiredSkills: ['debugging', 'test-driven-development'],
|
|
120
|
+
supportedProviders: ['native', 'claude-code', 'codex', 'antigravity', 'google-adk'],
|
|
121
|
+
modelPreferences: { preferredTier: 'reasoning' },
|
|
122
|
+
toolPermissions: [
|
|
123
|
+
{ name: 'get_project_overview', allowed: true },
|
|
124
|
+
{ name: 'get_file_context', allowed: true },
|
|
125
|
+
{ name: 'execute_check', allowed: true },
|
|
126
|
+
],
|
|
127
|
+
filePermissions: {
|
|
128
|
+
readPatterns: ['**/*'],
|
|
129
|
+
writePatterns: ['tests/**', 'src/**'],
|
|
130
|
+
deniedPatterns: ['.env*', '**/*.key', '**/*.pem'],
|
|
131
|
+
},
|
|
132
|
+
riskClassification: 'MEDIUM',
|
|
133
|
+
maxExecutionTimeSeconds: 240,
|
|
134
|
+
maxTokenBudget: 80_000,
|
|
135
|
+
maxRetryCount: 3,
|
|
136
|
+
isBuiltin: true,
|
|
137
|
+
version: '1.0.0',
|
|
138
|
+
},
|
|
139
|
+
testing: {
|
|
140
|
+
id: 'testing',
|
|
141
|
+
name: 'Testing Agent',
|
|
142
|
+
description: 'Authors and executes unit, integration, and end-to-end tests to guarantee contract adherence.',
|
|
143
|
+
role: 'TESTING',
|
|
144
|
+
capabilities: ['unit-testing', 'integration-testing', 'e2e-testing', 'mocking', 'coverage-analysis'],
|
|
145
|
+
supportedTaskTypes: ['TESTING', 'FEATURE', 'BUG', 'REFACTOR'],
|
|
146
|
+
requiredSkills: ['test-driven-development'],
|
|
147
|
+
supportedProviders: ['native', 'claude-code', 'codex', 'antigravity', 'google-adk'],
|
|
148
|
+
modelPreferences: { preferredTier: 'coding' },
|
|
149
|
+
toolPermissions: [
|
|
150
|
+
{ name: 'get_project_overview', allowed: true },
|
|
151
|
+
{ name: 'get_file_context', allowed: true },
|
|
152
|
+
{ name: 'execute_check', allowed: true },
|
|
153
|
+
],
|
|
154
|
+
filePermissions: {
|
|
155
|
+
readPatterns: ['**/*'],
|
|
156
|
+
writePatterns: ['tests/**', 'test/**', '__tests__/**'],
|
|
157
|
+
deniedPatterns: ['.env*', '**/*.key', '**/*.pem'],
|
|
158
|
+
},
|
|
159
|
+
riskClassification: 'LOW',
|
|
160
|
+
maxExecutionTimeSeconds: 240,
|
|
161
|
+
maxTokenBudget: 60_000,
|
|
162
|
+
maxRetryCount: 2,
|
|
163
|
+
isBuiltin: true,
|
|
164
|
+
version: '1.0.0',
|
|
165
|
+
},
|
|
166
|
+
'security-auditor': {
|
|
167
|
+
id: 'security-auditor',
|
|
168
|
+
name: 'Security Auditor',
|
|
169
|
+
description: 'Performs static application security testing, credential detection, and permission boundary validation.',
|
|
170
|
+
role: 'SECURITY_AUDITOR',
|
|
171
|
+
capabilities: ['vulnerability-scanning', 'secret-detection', 'owasp-audit', 'permission-enforcement'],
|
|
172
|
+
supportedTaskTypes: ['SECURITY', 'FEATURE', 'RELEASE'],
|
|
173
|
+
requiredSkills: ['security-audit'],
|
|
174
|
+
supportedProviders: ['native', 'claude-code', 'codex', 'antigravity', 'google-adk'],
|
|
175
|
+
modelPreferences: { preferredTier: 'reasoning' },
|
|
176
|
+
toolPermissions: [
|
|
177
|
+
{ name: 'get_project_overview', allowed: true },
|
|
178
|
+
{ name: 'get_file_context', allowed: true },
|
|
179
|
+
{ name: 'execute_check', allowed: true },
|
|
180
|
+
],
|
|
181
|
+
filePermissions: {
|
|
182
|
+
readPatterns: ['**/*'],
|
|
183
|
+
writePatterns: ['docs/security*'],
|
|
184
|
+
deniedPatterns: ['.env*', '**/*.key', '**/*.pem'],
|
|
185
|
+
},
|
|
186
|
+
riskClassification: 'LOW',
|
|
187
|
+
maxExecutionTimeSeconds: 180,
|
|
188
|
+
maxTokenBudget: 60_000,
|
|
189
|
+
maxRetryCount: 2,
|
|
190
|
+
isBuiltin: true,
|
|
191
|
+
version: '1.0.0',
|
|
192
|
+
},
|
|
193
|
+
'performance-engineer': {
|
|
194
|
+
id: 'performance-engineer',
|
|
195
|
+
name: 'Performance Engineer',
|
|
196
|
+
description: 'Profiles latency, identifies algorithmic bottlenecks, and optimizes resource throughput.',
|
|
197
|
+
role: 'PERFORMANCE_ENGINEER',
|
|
198
|
+
capabilities: ['profiling', 'query-optimization', 'concurrency-tuning', 'memory-leak-detection'],
|
|
199
|
+
supportedTaskTypes: ['PERFORMANCE', 'FEATURE', 'REFACTOR'],
|
|
200
|
+
requiredSkills: ['performance-optimization', 'database-optimization'],
|
|
201
|
+
supportedProviders: ['native', 'claude-code', 'codex', 'antigravity', 'google-adk'],
|
|
202
|
+
modelPreferences: { preferredTier: 'reasoning' },
|
|
203
|
+
toolPermissions: [
|
|
204
|
+
{ name: 'get_project_overview', allowed: true },
|
|
205
|
+
{ name: 'get_file_context', allowed: true },
|
|
206
|
+
{ name: 'execute_check', allowed: true },
|
|
207
|
+
],
|
|
208
|
+
filePermissions: {
|
|
209
|
+
readPatterns: ['**/*'],
|
|
210
|
+
writePatterns: ['src/**', 'benchmarks/**'],
|
|
211
|
+
deniedPatterns: ['.env*', '**/*.key', '**/*.pem'],
|
|
212
|
+
},
|
|
213
|
+
riskClassification: 'MEDIUM',
|
|
214
|
+
maxExecutionTimeSeconds: 240,
|
|
215
|
+
maxTokenBudget: 70_000,
|
|
216
|
+
maxRetryCount: 2,
|
|
217
|
+
isBuiltin: true,
|
|
218
|
+
version: '1.0.0',
|
|
219
|
+
},
|
|
220
|
+
'code-reviewer': {
|
|
221
|
+
id: 'code-reviewer',
|
|
222
|
+
name: 'Code Reviewer',
|
|
223
|
+
description: 'Independent verification agent conducting invariant compliance, readability, and regression reviews.',
|
|
224
|
+
role: 'CODE_REVIEWER',
|
|
225
|
+
capabilities: ['diff-review', 'clean-code-audit', 'convention-enforcement', 'smell-detection'],
|
|
226
|
+
supportedTaskTypes: ['FEATURE', 'BUG', 'REFACTOR', 'SECURITY'],
|
|
227
|
+
requiredSkills: ['code-review'],
|
|
228
|
+
supportedProviders: ['native', 'claude-code', 'codex', 'antigravity', 'google-adk'],
|
|
229
|
+
modelPreferences: { preferredTier: 'reasoning' },
|
|
230
|
+
toolPermissions: [
|
|
231
|
+
{ name: 'get_project_overview', allowed: true },
|
|
232
|
+
{ name: 'get_file_context', allowed: true },
|
|
233
|
+
],
|
|
234
|
+
filePermissions: {
|
|
235
|
+
readPatterns: ['**/*'],
|
|
236
|
+
writePatterns: ['.devworkspace/orchestration/reviews/**'],
|
|
237
|
+
deniedPatterns: ['.env*', '**/*.key', '**/*.pem'],
|
|
238
|
+
},
|
|
239
|
+
riskClassification: 'LOW',
|
|
240
|
+
maxExecutionTimeSeconds: 120,
|
|
241
|
+
maxTokenBudget: 50_000,
|
|
242
|
+
maxRetryCount: 2,
|
|
243
|
+
isBuiltin: true,
|
|
244
|
+
version: '1.0.0',
|
|
245
|
+
},
|
|
246
|
+
documentation: {
|
|
247
|
+
id: 'documentation',
|
|
248
|
+
name: 'Documentation Agent',
|
|
249
|
+
description: 'Maintains API docs, onboarding prompts, architecture summaries, and guides.',
|
|
250
|
+
role: 'DOCUMENTATION',
|
|
251
|
+
capabilities: ['technical-writing', 'api-docs', 'changelog-maintenance', 'onboarding-guides'],
|
|
252
|
+
supportedTaskTypes: ['DOCUMENTATION', 'FEATURE', 'RELEASE'],
|
|
253
|
+
requiredSkills: ['documentation'],
|
|
254
|
+
supportedProviders: ['native', 'claude-code', 'codex', 'antigravity', 'google-adk'],
|
|
255
|
+
modelPreferences: { preferredTier: 'fast' },
|
|
256
|
+
toolPermissions: [
|
|
257
|
+
{ name: 'get_project_overview', allowed: true },
|
|
258
|
+
{ name: 'get_file_context', allowed: true },
|
|
259
|
+
],
|
|
260
|
+
filePermissions: {
|
|
261
|
+
readPatterns: ['**/*'],
|
|
262
|
+
writePatterns: ['docs/**', 'README.md', 'CHANGELOG.md'],
|
|
263
|
+
deniedPatterns: ['.env*', '**/*.key', '**/*.pem'],
|
|
264
|
+
},
|
|
265
|
+
riskClassification: 'LOW',
|
|
266
|
+
maxExecutionTimeSeconds: 120,
|
|
267
|
+
maxTokenBudget: 40_000,
|
|
268
|
+
maxRetryCount: 2,
|
|
269
|
+
isBuiltin: true,
|
|
270
|
+
version: '1.0.0',
|
|
271
|
+
},
|
|
272
|
+
'database-specialist': {
|
|
273
|
+
id: 'database-specialist',
|
|
274
|
+
name: 'Database Specialist',
|
|
275
|
+
description: 'Designs relational/document schemas, crafts migrations, and guarantees migration reversibility.',
|
|
276
|
+
role: 'DATABASE_SPECIALIST',
|
|
277
|
+
capabilities: ['schema-design', 'migration-authoring', 'sql-optimization', 'orm-modeling'],
|
|
278
|
+
supportedTaskTypes: ['FEATURE', 'PERFORMANCE', 'MAINTENANCE'],
|
|
279
|
+
requiredSkills: ['database-design', 'database-optimization'],
|
|
280
|
+
supportedProviders: ['native', 'claude-code', 'codex', 'antigravity', 'google-adk'],
|
|
281
|
+
modelPreferences: { preferredTier: 'reasoning' },
|
|
282
|
+
toolPermissions: [
|
|
283
|
+
{ name: 'get_project_overview', allowed: true },
|
|
284
|
+
{ name: 'get_file_context', allowed: true },
|
|
285
|
+
{ name: 'execute_check', allowed: true },
|
|
286
|
+
],
|
|
287
|
+
filePermissions: {
|
|
288
|
+
readPatterns: ['**/*'],
|
|
289
|
+
writePatterns: ['src/db/**', 'migrations/**', 'prisma/**', 'drizzle/**'],
|
|
290
|
+
deniedPatterns: ['.env*', '**/*.key', '**/*.pem'],
|
|
291
|
+
},
|
|
292
|
+
riskClassification: 'HIGH',
|
|
293
|
+
maxExecutionTimeSeconds: 240,
|
|
294
|
+
maxTokenBudget: 75_000,
|
|
295
|
+
maxRetryCount: 2,
|
|
296
|
+
isBuiltin: true,
|
|
297
|
+
version: '1.0.0',
|
|
298
|
+
},
|
|
299
|
+
'release-manager': {
|
|
300
|
+
id: 'release-manager',
|
|
301
|
+
name: 'Release Manager',
|
|
302
|
+
description: 'Enforces release gates, semver bumping, smoke validation, and artifact packaging.',
|
|
303
|
+
role: 'RELEASE_MANAGER',
|
|
304
|
+
capabilities: ['release-gating', 'semver-validation', 'smoke-testing', 'artifact-packaging'],
|
|
305
|
+
supportedTaskTypes: ['RELEASE', 'MAINTENANCE'],
|
|
306
|
+
requiredSkills: ['ci-cd', 'dependency-management'],
|
|
307
|
+
supportedProviders: ['native', 'claude-code', 'codex', 'antigravity', 'google-adk'],
|
|
308
|
+
modelPreferences: { preferredTier: 'reasoning' },
|
|
309
|
+
toolPermissions: [
|
|
310
|
+
{ name: 'get_project_overview', allowed: true },
|
|
311
|
+
{ name: 'execute_check', allowed: true },
|
|
312
|
+
],
|
|
313
|
+
filePermissions: {
|
|
314
|
+
readPatterns: ['**/*'],
|
|
315
|
+
writePatterns: ['package.json', 'CHANGELOG.md'],
|
|
316
|
+
deniedPatterns: ['.env*', '**/*.key', '**/*.pem'],
|
|
317
|
+
},
|
|
318
|
+
riskClassification: 'HIGH',
|
|
319
|
+
maxExecutionTimeSeconds: 300,
|
|
320
|
+
maxTokenBudget: 60_000,
|
|
321
|
+
maxRetryCount: 2,
|
|
322
|
+
isBuiltin: true,
|
|
323
|
+
version: '1.0.0',
|
|
324
|
+
},
|
|
325
|
+
};
|
|
326
|
+
//# sourceMappingURL=profiles.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"profiles.js","sourceRoot":"","sources":["../../../src/intelligence/agents/profiles.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,sBAAsB,GAAiC;IAClE,OAAO,EAAE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oB,CAAC;QAC5F,kBAAkB,EAAE,CAAC,SAAS,EAAE,aAAa,CAAC;QAC9C,cAAc,EAAE,CAAC,OAAO,EAAE,uBAAuB,CAAC;QAClD,kBAAkB,EAAE,CAAC,QAAQ,EAAE,aAAa,EAAE,OAAO,EAAE,aAAa,EAAE,YAAY,CAAC;QACnF,gBAAgB,EAAE,EAAE,aAAa,EAAE,WAAW,EAAE;QAChD,eAAe,EAAE;YACf,EAAE,IAAI,EAAE,sBAAsB,EAAE,OAAO,EAAE,IAAI,EAAE;YAC/C,EAAE,IAAI,EAAE,eAAe,EAAE,OAAO,EAAE,IAAI,EAAE;SACzC;QACD,eAAe,EAAE;YACf,YAAY,EAAE,CAAC,MAAM,CAAC;YACtB,aAAa,EAAE,CAAC,cAAc,EAAE,cAAc,CAAC;YAC/C,cAAc,EAAE,CAAC,OAAO,EAAE,UAAU,EAAE,UAAU,CAAC;SAClD;QACD,kBAAkB,EAAE,MAAM;QAC1B,uBAAuB,EAAE,GAAG;QAC5B,cAAc,EAAE,MAAM;QACtB,aAAa,EAAE,CAAC;QAChB,SAAS,EAAE,IAAI;QACf,OAAO,EAAE,OAAO;KACjB;CACF,CAAC","sourcesContent":["import type { AgentProfile } from './types.js';\n\nexport const BUILTIN_AGENT_PROFILES: Record<string, AgentProfile> = {\n planner: {\n id: 'planner',\n name: 'Planner Agent',\n description: 'Decomposes complex requests into structured, verified dependency graphs and milestone plans.',\n role: 'PLANNER',\n capabilities: ['requirements-analysis', 'task-decomposition', 'milestone-planning', 'dependency-graphing'],\n supportedTaskTypes: ['FEATURE', 'REFACTOR', 'MAINTENANCE', 'ARCHITECTURE'],\n requiredSkills: ['architecture-analysis'],\n supportedProviders: ['native', 'claude-code', 'codex', 'antigravity', 'google-adk'],\n modelPreferences: { preferredTier: 'reasoning' },\n toolPermissions: [\n { name: 'get_project_overview', allowed: true },\n { name: 'get_task_context', allowed: true },\n { name: 'trace_symbol_dependencies', allowed: true },\n ],\n filePermissions: {\n readPatterns: ['**/*'],\n writePatterns: ['.devworkspace/orchestration/plans/**'],\n deniedPatterns: ['.env*', '**/*.key', '**/*.pem'],\n },\n riskClassification: 'LOW',\n maxExecutionTimeSeconds: 120,\n maxTokenBudget: 50_000,\n maxRetryCount: 2,\n isBuiltin: true,\n version: '1.0.0',\n },\n\n architect: {\n id: 'architect',\n name: 'Architect Agent',\n description: 'Evaluates architectural integrity, designs module boundaries, and formulates Architecture Decision Records (ADRs).',\n role: 'ARCHITECT',\n capabilities: ['system-design', 'adr-authoring', 'boundary-enforcement', 'technology-selection'],\n supportedTaskTypes: ['ARCHITECTURE', 'FEATURE', 'REFACTOR'],\n requiredSkills: ['architecture-analysis', 'database-design'],\n supportedProviders: ['native', 'claude-code', 'codex', 'antigravity', 'google-adk'],\n modelPreferences: { preferredTier: 'reasoning' },\n toolPermissions: [\n { name: 'get_project_overview', allowed: true },\n { name: 'get_file_context', allowed: true },\n { name: 'trace_symbol_dependencies', allowed: true },\n ],\n filePermissions: {\n readPatterns: ['**/*'],\n writePatterns: ['.devworkspace/decisions/**', 'docs/architecture*'],\n deniedPatterns: ['.env*', '**/*.key', '**/*.pem'],\n },\n riskClassification: 'LOW',\n maxExecutionTimeSeconds: 180,\n maxTokenBudget: 60_000,\n maxRetryCount: 2,\n isBuiltin: true,\n version: '1.0.0',\n },\n\n research: {\n id: 'research',\n name: 'Research Agent',\n description: 'Explores repositories, traces AST call hierarchies, and verifies existing facts without modifying files.',\n role: 'RESEARCH',\n capabilities: ['symbol-tracing', 'code-exploration', 'fact-discovery', 'reference-mapping'],\n supportedTaskTypes: ['QUESTION', 'BUG', 'FEATURE', 'REFACTOR', 'MAINTENANCE'],\n requiredSkills: ['architecture-analysis', 'debugging'],\n supportedProviders: ['native', 'claude-code', 'codex', 'antigravity', 'google-adk'],\n modelPreferences: { preferredTier: 'fast' },\n toolPermissions: [\n { name: 'get_project_overview', allowed: true },\n { name: 'get_file_context', allowed: true },\n { name: 'get_task_context', allowed: true },\n { name: 'trace_symbol_dependencies', allowed: true },\n ],\n filePermissions: {\n readPatterns: ['**/*'],\n writePatterns: [],\n deniedPatterns: ['.env*', '**/*.key', '**/*.pem'],\n },\n riskClassification: 'LOW',\n maxExecutionTimeSeconds: 120,\n maxTokenBudget: 40_000,\n maxRetryCount: 2,\n isBuiltin: true,\n version: '1.0.0',\n },\n\n developer: {\n id: 'developer',\n name: 'Developer Agent',\n description: 'Authoritative single-writer code implementation specialist for features, enhancements, and refactoring.',\n role: 'DEVELOPER',\n capabilities: ['code-implementation', 'refactoring', 'api-implementation', 'library-integration'],\n supportedTaskTypes: ['FEATURE', 'BUG', 'REFACTOR', 'MAINTENANCE'],\n requiredSkills: ['api-development', 'refactoring', 'test-driven-development'],\n supportedProviders: ['native', 'claude-code', 'codex', 'antigravity', 'google-adk'],\n modelPreferences: { preferredTier: 'coding' },\n toolPermissions: [\n { name: 'get_project_overview', allowed: true },\n { name: 'get_file_context', allowed: true },\n { name: 'get_task_context', allowed: true },\n { name: 'execute_check', allowed: true },\n ],\n filePermissions: {\n readPatterns: ['**/*'],\n writePatterns: ['src/**', 'lib/**', 'tests/**', 'package.json'],\n deniedPatterns: ['.env*', '**/*.key', '**/*.pem', '.git/**'],\n },\n riskClassification: 'MEDIUM',\n maxExecutionTimeSeconds: 300,\n maxTokenBudget: 100_000,\n maxRetryCount: 3,\n isBuiltin: true,\n version: '1.0.0',\n },\n\n debugger: {\n id: 'debugger',\n name: 'Debugger Agent',\n description: 'Reproduces faults, writes failing regression tests, and identifies root causes.',\n role: 'DEBUGGER',\n capabilities: ['fault-reproduction', 'root-cause-analysis', 'regression-testing', 'stack-trace-analysis'],\n supportedTaskTypes: ['BUG', 'TESTING'],\n requiredSkills: ['debugging', 'test-driven-development'],\n supportedProviders: ['native', 'claude-code', 'codex', 'antigravity', 'google-adk'],\n modelPreferences: { preferredTier: 'reasoning' },\n toolPermissions: [\n { name: 'get_project_overview', allowed: true },\n { name: 'get_file_context', allowed: true },\n { name: 'execute_check', allowed: true },\n ],\n filePermissions: {\n readPatterns: ['**/*'],\n writePatterns: ['tests/**', 'src/**'],\n deniedPatterns: ['.env*', '**/*.key', '**/*.pem'],\n },\n riskClassification: 'MEDIUM',\n maxExecutionTimeSeconds: 240,\n maxTokenBudget: 80_000,\n maxRetryCount: 3,\n isBuiltin: true,\n version: '1.0.0',\n },\n\n testing: {\n id: 'testing',\n name: 'Testing Agent',\n description: 'Authors and executes unit, integration, and end-to-end tests to guarantee contract adherence.',\n role: 'TESTING',\n capabilities: ['unit-testing', 'integration-testing', 'e2e-testing', 'mocking', 'coverage-analysis'],\n supportedTaskTypes: ['TESTING', 'FEATURE', 'BUG', 'REFACTOR'],\n requiredSkills: ['test-driven-development'],\n supportedProviders: ['native', 'claude-code', 'codex', 'antigravity', 'google-adk'],\n modelPreferences: { preferredTier: 'coding' },\n toolPermissions: [\n { name: 'get_project_overview', allowed: true },\n { name: 'get_file_context', allowed: true },\n { name: 'execute_check', allowed: true },\n ],\n filePermissions: {\n readPatterns: ['**/*'],\n writePatterns: ['tests/**', 'test/**', '__tests__/**'],\n deniedPatterns: ['.env*', '**/*.key', '**/*.pem'],\n },\n riskClassification: 'LOW',\n maxExecutionTimeSeconds: 240,\n maxTokenBudget: 60_000,\n maxRetryCount: 2,\n isBuiltin: true,\n version: '1.0.0',\n },\n\n 'security-auditor': {\n id: 'security-auditor',\n name: 'Security Auditor',\n description: 'Performs static application security testing, credential detection, and permission boundary validation.',\n role: 'SECURITY_AUDITOR',\n capabilities: ['vulnerability-scanning', 'secret-detection', 'owasp-audit', 'permission-enforcement'],\n supportedTaskTypes: ['SECURITY', 'FEATURE', 'RELEASE'],\n requiredSkills: ['security-audit'],\n supportedProviders: ['native', 'claude-code', 'codex', 'antigravity', 'google-adk'],\n modelPreferences: { preferredTier: 'reasoning' },\n toolPermissions: [\n { name: 'get_project_overview', allowed: true },\n { name: 'get_file_context', allowed: true },\n { name: 'execute_check', allowed: true },\n ],\n filePermissions: {\n readPatterns: ['**/*'],\n writePatterns: ['docs/security*'],\n deniedPatterns: ['.env*', '**/*.key', '**/*.pem'],\n },\n riskClassification: 'LOW',\n maxExecutionTimeSeconds: 180,\n maxTokenBudget: 60_000,\n maxRetryCount: 2,\n isBuiltin: true,\n version: '1.0.0',\n },\n\n 'performance-engineer': {\n id: 'performance-engineer',\n name: 'Performance Engineer',\n description: 'Profiles latency, identifies algorithmic bottlenecks, and optimizes resource throughput.',\n role: 'PERFORMANCE_ENGINEER',\n capabilities: ['profiling', 'query-optimization', 'concurrency-tuning', 'memory-leak-detection'],\n supportedTaskTypes: ['PERFORMANCE', 'FEATURE', 'REFACTOR'],\n requiredSkills: ['performance-optimization', 'database-optimization'],\n supportedProviders: ['native', 'claude-code', 'codex', 'antigravity', 'google-adk'],\n modelPreferences: { preferredTier: 'reasoning' },\n toolPermissions: [\n { name: 'get_project_overview', allowed: true },\n { name: 'get_file_context', allowed: true },\n { name: 'execute_check', allowed: true },\n ],\n filePermissions: {\n readPatterns: ['**/*'],\n writePatterns: ['src/**', 'benchmarks/**'],\n deniedPatterns: ['.env*', '**/*.key', '**/*.pem'],\n },\n riskClassification: 'MEDIUM',\n maxExecutionTimeSeconds: 240,\n maxTokenBudget: 70_000,\n maxRetryCount: 2,\n isBuiltin: true,\n version: '1.0.0',\n },\n\n 'code-reviewer': {\n id: 'code-reviewer',\n name: 'Code Reviewer',\n description: 'Independent verification agent conducting invariant compliance, readability, and regression reviews.',\n role: 'CODE_REVIEWER',\n capabilities: ['diff-review', 'clean-code-audit', 'convention-enforcement', 'smell-detection'],\n supportedTaskTypes: ['FEATURE', 'BUG', 'REFACTOR', 'SECURITY'],\n requiredSkills: ['code-review'],\n supportedProviders: ['native', 'claude-code', 'codex', 'antigravity', 'google-adk'],\n modelPreferences: { preferredTier: 'reasoning' },\n toolPermissions: [\n { name: 'get_project_overview', allowed: true },\n { name: 'get_file_context', allowed: true },\n ],\n filePermissions: {\n readPatterns: ['**/*'],\n writePatterns: ['.devworkspace/orchestration/reviews/**'],\n deniedPatterns: ['.env*', '**/*.key', '**/*.pem'],\n },\n riskClassification: 'LOW',\n maxExecutionTimeSeconds: 120,\n maxTokenBudget: 50_000,\n maxRetryCount: 2,\n isBuiltin: true,\n version: '1.0.0',\n },\n\n documentation: {\n id: 'documentation',\n name: 'Documentation Agent',\n description: 'Maintains API docs, onboarding prompts, architecture summaries, and guides.',\n role: 'DOCUMENTATION',\n capabilities: ['technical-writing', 'api-docs', 'changelog-maintenance', 'onboarding-guides'],\n supportedTaskTypes: ['DOCUMENTATION', 'FEATURE', 'RELEASE'],\n requiredSkills: ['documentation'],\n supportedProviders: ['native', 'claude-code', 'codex', 'antigravity', 'google-adk'],\n modelPreferences: { preferredTier: 'fast' },\n toolPermissions: [\n { name: 'get_project_overview', allowed: true },\n { name: 'get_file_context', allowed: true },\n ],\n filePermissions: {\n readPatterns: ['**/*'],\n writePatterns: ['docs/**', 'README.md', 'CHANGELOG.md'],\n deniedPatterns: ['.env*', '**/*.key', '**/*.pem'],\n },\n riskClassification: 'LOW',\n maxExecutionTimeSeconds: 120,\n maxTokenBudget: 40_000,\n maxRetryCount: 2,\n isBuiltin: true,\n version: '1.0.0',\n },\n\n 'database-specialist': {\n id: 'database-specialist',\n name: 'Database Specialist',\n description: 'Designs relational/document schemas, crafts migrations, and guarantees migration reversibility.',\n role: 'DATABASE_SPECIALIST',\n capabilities: ['schema-design', 'migration-authoring', 'sql-optimization', 'orm-modeling'],\n supportedTaskTypes: ['FEATURE', 'PERFORMANCE', 'MAINTENANCE'],\n requiredSkills: ['database-design', 'database-optimization'],\n supportedProviders: ['native', 'claude-code', 'codex', 'antigravity', 'google-adk'],\n modelPreferences: { preferredTier: 'reasoning' },\n toolPermissions: [\n { name: 'get_project_overview', allowed: true },\n { name: 'get_file_context', allowed: true },\n { name: 'execute_check', allowed: true },\n ],\n filePermissions: {\n readPatterns: ['**/*'],\n writePatterns: ['src/db/**', 'migrations/**', 'prisma/**', 'drizzle/**'],\n deniedPatterns: ['.env*', '**/*.key', '**/*.pem'],\n },\n riskClassification: 'HIGH',\n maxExecutionTimeSeconds: 240,\n maxTokenBudget: 75_000,\n maxRetryCount: 2,\n isBuiltin: true,\n version: '1.0.0',\n },\n\n 'release-manager': {\n id: 'release-manager',\n name: 'Release Manager',\n description: 'Enforces release gates, semver bumping, smoke validation, and artifact packaging.',\n role: 'RELEASE_MANAGER',\n capabilities: ['release-gating', 'semver-validation', 'smoke-testing', 'artifact-packaging'],\n supportedTaskTypes: ['RELEASE', 'MAINTENANCE'],\n requiredSkills: ['ci-cd', 'dependency-management'],\n supportedProviders: ['native', 'claude-code', 'codex', 'antigravity', 'google-adk'],\n modelPreferences: { preferredTier: 'reasoning' },\n toolPermissions: [\n { name: 'get_project_overview', allowed: true },\n { name: 'execute_check', allowed: true },\n ],\n filePermissions: {\n readPatterns: ['**/*'],\n writePatterns: ['package.json', 'CHANGELOG.md'],\n deniedPatterns: ['.env*', '**/*.key', '**/*.pem'],\n },\n riskClassification: 'HIGH',\n maxExecutionTimeSeconds: 300,\n maxTokenBudget: 60_000,\n maxRetryCount: 2,\n isBuiltin: true,\n version: '1.0.0',\n },\n};\n"]}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { AgentHealthCheckResult, AgentProfile } from './types.js';
|
|
2
|
+
export declare class AgentRegistry {
|
|
3
|
+
private workspaceRoot;
|
|
4
|
+
constructor(workspaceRoot: string);
|
|
5
|
+
private registryFilePath;
|
|
6
|
+
loadCustomAgents(): Promise<Record<string, AgentProfile>>;
|
|
7
|
+
saveCustomAgents(agents: Record<string, AgentProfile>): Promise<void>;
|
|
8
|
+
listAllAgents(): Promise<AgentProfile[]>;
|
|
9
|
+
getAgent(id: string): Promise<AgentProfile | null>;
|
|
10
|
+
registerAgent(profile: AgentProfile): Promise<AgentProfile>;
|
|
11
|
+
removeAgent(id: string): Promise<boolean>;
|
|
12
|
+
findAgentsByCapability(capability: string): Promise<AgentProfile[]>;
|
|
13
|
+
findAgentsForTaskType(taskType: string): Promise<AgentProfile[]>;
|
|
14
|
+
checkHealth(id: string): Promise<AgentHealthCheckResult>;
|
|
15
|
+
}
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
import path from 'node:path';
|
|
2
|
+
import { BUILTIN_AGENT_PROFILES } from './profiles.js';
|
|
3
|
+
import { atomicWriteJson, pathExists, readJsonFile } from '../../utils/fs.js';
|
|
4
|
+
import { DevWorkspaceError } from '../../errors/index.js';
|
|
5
|
+
const AGENTS_REGISTRY_REL = '.devworkspace/registry/agents.json';
|
|
6
|
+
export class AgentRegistry {
|
|
7
|
+
workspaceRoot;
|
|
8
|
+
constructor(workspaceRoot) {
|
|
9
|
+
this.workspaceRoot = workspaceRoot;
|
|
10
|
+
}
|
|
11
|
+
registryFilePath() {
|
|
12
|
+
return path.join(this.workspaceRoot, AGENTS_REGISTRY_REL);
|
|
13
|
+
}
|
|
14
|
+
async loadCustomAgents() {
|
|
15
|
+
const filePath = this.registryFilePath();
|
|
16
|
+
if (!(await pathExists(filePath))) {
|
|
17
|
+
return {};
|
|
18
|
+
}
|
|
19
|
+
try {
|
|
20
|
+
const data = await readJsonFile(filePath);
|
|
21
|
+
return data.agents || {};
|
|
22
|
+
}
|
|
23
|
+
catch {
|
|
24
|
+
return {};
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
async saveCustomAgents(agents) {
|
|
28
|
+
const filePath = this.registryFilePath();
|
|
29
|
+
const data = {
|
|
30
|
+
schemaVersion: 1,
|
|
31
|
+
agents,
|
|
32
|
+
};
|
|
33
|
+
await atomicWriteJson(filePath, data);
|
|
34
|
+
}
|
|
35
|
+
async listAllAgents() {
|
|
36
|
+
const custom = await this.loadCustomAgents();
|
|
37
|
+
const map = { ...BUILTIN_AGENT_PROFILES, ...custom };
|
|
38
|
+
return Object.values(map);
|
|
39
|
+
}
|
|
40
|
+
async getAgent(id) {
|
|
41
|
+
const lower = id.toLowerCase();
|
|
42
|
+
if (BUILTIN_AGENT_PROFILES[lower]) {
|
|
43
|
+
return BUILTIN_AGENT_PROFILES[lower];
|
|
44
|
+
}
|
|
45
|
+
const custom = await this.loadCustomAgents();
|
|
46
|
+
return custom[lower] || null;
|
|
47
|
+
}
|
|
48
|
+
async registerAgent(profile) {
|
|
49
|
+
if (!profile.id || !/^[a-z0-9-_]+$/i.test(profile.id)) {
|
|
50
|
+
throw new DevWorkspaceError('USAGE', `Invalid agent ID "${profile.id}". Must be alphanumeric with hyphens or underscores.`);
|
|
51
|
+
}
|
|
52
|
+
const id = profile.id.toLowerCase();
|
|
53
|
+
if (BUILTIN_AGENT_PROFILES[id]) {
|
|
54
|
+
throw new DevWorkspaceError('CONFLICT', `Cannot overwrite built-in agent profile "${id}".`);
|
|
55
|
+
}
|
|
56
|
+
const custom = await this.loadCustomAgents();
|
|
57
|
+
const finalized = {
|
|
58
|
+
...profile,
|
|
59
|
+
id,
|
|
60
|
+
isBuiltin: false,
|
|
61
|
+
version: profile.version || '1.0.0',
|
|
62
|
+
};
|
|
63
|
+
custom[id] = finalized;
|
|
64
|
+
await this.saveCustomAgents(custom);
|
|
65
|
+
return finalized;
|
|
66
|
+
}
|
|
67
|
+
async removeAgent(id) {
|
|
68
|
+
const lower = id.toLowerCase();
|
|
69
|
+
if (BUILTIN_AGENT_PROFILES[lower]) {
|
|
70
|
+
throw new DevWorkspaceError('USAGE', `Cannot remove built-in agent profile "${lower}".`);
|
|
71
|
+
}
|
|
72
|
+
const custom = await this.loadCustomAgents();
|
|
73
|
+
if (!custom[lower]) {
|
|
74
|
+
return false;
|
|
75
|
+
}
|
|
76
|
+
delete custom[lower];
|
|
77
|
+
await this.saveCustomAgents(custom);
|
|
78
|
+
return true;
|
|
79
|
+
}
|
|
80
|
+
async findAgentsByCapability(capability) {
|
|
81
|
+
const all = await this.listAllAgents();
|
|
82
|
+
return all.filter((a) => a.capabilities.includes(capability));
|
|
83
|
+
}
|
|
84
|
+
async findAgentsForTaskType(taskType) {
|
|
85
|
+
const all = await this.listAllAgents();
|
|
86
|
+
return all.filter((a) => a.supportedTaskTypes.includes(taskType));
|
|
87
|
+
}
|
|
88
|
+
async checkHealth(id) {
|
|
89
|
+
const agent = await this.getAgent(id);
|
|
90
|
+
if (!agent) {
|
|
91
|
+
return {
|
|
92
|
+
agentId: id,
|
|
93
|
+
healthy: false,
|
|
94
|
+
provider: 'unknown',
|
|
95
|
+
available: false,
|
|
96
|
+
reason: `Agent "${id}" not found in registry.`,
|
|
97
|
+
};
|
|
98
|
+
}
|
|
99
|
+
return {
|
|
100
|
+
agentId: agent.id,
|
|
101
|
+
healthy: true,
|
|
102
|
+
provider: agent.supportedProviders[0] || 'native',
|
|
103
|
+
available: true,
|
|
104
|
+
latencyMs: 1,
|
|
105
|
+
};
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
//# sourceMappingURL=registry.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"registry.js","sourceRoot":"","sources":["../../../src/intelligence/agents/registry.ts"],"names":[],"mappings":"AAAA,OAAO,IAAI,MAAM,WAAW,CAAC;AAC7B,OAAO,EAAE,sBAAsB,EAAE,MAAM,eAAe,CAAC;AAEvD,OAAO,EAAE,eAAe,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAC9E,OAAO,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAE1D,MAAM,mBAAmB,GAAG,oCAAoC,CAAC;AAOjE,MAAM,OAAO,aAAa;IAChB,aAAa,CAAS;IAE9B,YAAY,aAAqB;QAC/B,IAAI,CAAC,aAAa,GAAG,aAAa,CAAC;IACrC,CAAC;IAEO,gBAAgB;QACtB,OAAO,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,aAAa,EAAE,mBAAmB,CAAC,CAAC;IAC5D,CAAC;IAED,KAAK,CAAC,gBAAgB;QACpB,MAAM,QAAQ,GAAG,IAAI,CAAC,gBAAgB,EAAE,CAAC;QACzC,IAAI,CAAC,CAAC,MAAM,UAAU,CAAC,Q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Aa,EAAE,CAAC;QACvC,OAAO,GAAG,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,YAAY,CAAC,QAAQ,CAAC,UAAU,CAAC,CAAC,CAAC;IAChE,CAAC;IAED,KAAK,CAAC,qBAAqB,CAAC,QAAgB;QAC1C,MAAM,GAAG,GAAG,MAAM,IAAI,CAAC,aAAa,EAAE,CAAC;QACvC,OAAO,GAAG,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,kBAAkB,CAAC,QAAQ,CAAC,QAAe,CAAC,CAAC,CAAC;IAC3E,CAAC;IAED,KAAK,CAAC,WAAW,CAAC,EAAU;QAC1B,MAAM,KAAK,GAAG,MAAM,IAAI,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC;QACtC,IAAI,CAAC,KAAK,EAAE,CAAC;YACX,OAAO;gBACL,OAAO,EAAE,EAAE;gBACX,OAAO,EAAE,KAAK;gBACd,QAAQ,EAAE,SAAS;gBACnB,SAAS,EAAE,KAAK;gBAChB,MAAM,EAAE,UAAU,EAAE,0BAA0B;aAC/C,CAAC;QACJ,CAAC;QAED,OAAO;YACL,OAAO,EAAE,KAAK,CAAC,EAAE;YACjB,OAAO,EAAE,IAAI;YACb,QAAQ,EAAE,KAAK,CAAC,kBAAkB,CAAC,CAAC,CAAC,IAAI,QAAQ;YACjD,SAAS,EAAE,IAAI;YACf,SAAS,EAAE,CAAC;SACb,CAAC;IACJ,CAAC;CACF","sourcesContent":["import path from 'node:path';\nimport { BUILTIN_AGENT_PROFILES } from './profiles.js';\nimport type { AgentHealthCheckResult, AgentProfile } from './types.js';\nimport { atomicWriteJson, pathExists, readJsonFile } from '../../utils/fs.js';\nimport { DevWorkspaceError } from '../../errors/index.js';\n\nconst AGENTS_REGISTRY_REL = '.devworkspace/registry/agents.json';\n\ninterface CustomAgentsFile {\n schemaVersion: number;\n agents: Record<string, AgentProfile>;\n}\n\nexport class AgentRegistry {\n private workspaceRoot: string;\n\n constructor(workspaceRoot: string) {\n this.workspaceRoot = workspaceRoot;\n }\n\n private registryFilePath(): string {\n return path.join(this.workspaceRoot, AGENTS_REGISTRY_REL);\n }\n\n async loadCustomAgents(): Promise<Record<string, AgentProfile>> {\n const filePath = this.registryFilePath();\n if (!(await pathExists(filePath))) {\n return {};\n }\n try {\n const data = await readJsonFile<CustomAgentsFile>(filePath);\n return data.agents || {};\n } catch {\n return {};\n }\n }\n\n async saveCustomAgents(agents: Record<string, AgentProfile>): Promise<void> {\n const filePath = this.registryFilePath();\n const data: CustomAgentsFile = {\n schemaVersion: 1,\n agents,\n };\n await atomicWriteJson(filePath, data);\n }\n\n async listAllAgents(): Promise<AgentProfile[]> {\n const custom = await this.loadCustomAgents();\n const map = { ...BUILTIN_AGENT_PROFILES, ...custom };\n return Object.values(map);\n }\n\n async getAgent(id: string): Promise<AgentProfile | null> {\n const lower = id.toLowerCase();\n if (BUILTIN_AGENT_PROFILES[lower]) {\n return BUILTIN_AGENT_PROFILES[lower];\n }\n const custom = await this.loadCustomAgents();\n return custom[lower] || null;\n }\n\n async registerAgent(profile: AgentProfile): Promise<AgentProfile> {\n if (!profile.id || !/^[a-z0-9-_]+$/i.test(profile.id)) {\n throw new DevWorkspaceError('USAGE', `Invalid agent ID \"${profile.id}\". Must be alphanumeric with hyphens or underscores.`);\n }\n const id = profile.id.toLowerCase();\n if (BUILTIN_AGENT_PROFILES[id]) {\n throw new DevWorkspaceError('CONFLICT', `Cannot overwrite built-in agent profile \"${id}\".`);\n }\n\n const custom = await this.loadCustomAgents();\n const finalized: AgentProfile = {\n ...profile,\n id,\n isBuiltin: false,\n version: profile.version || '1.0.0',\n };\n\n custom[id] = finalized;\n await this.saveCustomAgents(custom);\n return finalized;\n }\n\n async removeAgent(id: string): Promise<boolean> {\n const lower = id.toLowerCase();\n if (BUILTIN_AGENT_PROFILES[lower]) {\n throw new DevWorkspaceError('USAGE', `Cannot remove built-in agent profile \"${lower}\".`);\n }\n const custom = await this.loadCustomAgents();\n if (!custom[lower]) {\n return false;\n }\n delete custom[lower];\n await this.saveCustomAgents(custom);\n return true;\n }\n\n async findAgentsByCapability(capability: string): Promise<AgentProfile[]> {\n const all = await this.listAllAgents();\n return all.filter((a) => a.capabilities.includes(capability));\n }\n\n async findAgentsForTaskType(taskType: string): Promise<AgentProfile[]> {\n const all = await this.listAllAgents();\n return all.filter((a) => a.supportedTaskTypes.includes(taskType as any));\n }\n\n async checkHealth(id: string): Promise<AgentHealthCheckResult> {\n const agent = await this.getAgent(id);\n if (!agent) {\n return {\n agentId: id,\n healthy: false,\n provider: 'unknown',\n available: false,\n reason: `Agent \"${id}\" not found in registry.`,\n };\n }\n\n return {\n agentId: agent.id,\n healthy: true,\n provider: agent.supportedProviders[0] || 'native',\n available: true,\n latencyMs: 1,\n };\n }\n}\n"]}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import type { TaskType } from '../../tasks/task.js';
|
|
2
|
+
export type RiskClassification = 'LOW' | 'MEDIUM' | 'HIGH' | 'CRITICAL';
|
|
3
|
+
export type AgentRoleType = 'PLANNER' | 'ARCHITECT' | 'RESEARCH' | 'DEVELOPER' | 'DEBUGGER' | 'TESTING' | 'SECURITY_AUDITOR' | 'PERFORMANCE_ENGINEER' | 'CODE_REVIEWER' | 'DOCUMENTATION' | 'DATABASE_SPECIALIST' | 'RELEASE_MANAGER' | 'CUSTOM';
|
|
4
|
+
export interface ToolPermission {
|
|
5
|
+
name: string;
|
|
6
|
+
allowed: boolean;
|
|
7
|
+
requiresApproval?: boolean;
|
|
8
|
+
}
|
|
9
|
+
export interface FilePermissionPolicy {
|
|
10
|
+
readPatterns: string[];
|
|
11
|
+
writePatterns: string[];
|
|
12
|
+
deniedPatterns: string[];
|
|
13
|
+
}
|
|
14
|
+
export interface AgentProfile {
|
|
15
|
+
id: string;
|
|
16
|
+
name: string;
|
|
17
|
+
description: string;
|
|
18
|
+
role: AgentRoleType;
|
|
19
|
+
capabilities: string[];
|
|
20
|
+
supportedTaskTypes: TaskType[];
|
|
21
|
+
requiredSkills: string[];
|
|
22
|
+
supportedProviders: string[];
|
|
23
|
+
modelPreferences: {
|
|
24
|
+
preferredTier: 'fast' | 'balanced' | 'reasoning' | 'coding';
|
|
25
|
+
recommendedModels?: string[];
|
|
26
|
+
};
|
|
27
|
+
toolPermissions: ToolPermission[];
|
|
28
|
+
filePermissions: FilePermissionPolicy;
|
|
29
|
+
riskClassification: RiskClassification;
|
|
30
|
+
maxExecutionTimeSeconds: number;
|
|
31
|
+
maxTokenBudget: number;
|
|
32
|
+
maxRetryCount: number;
|
|
33
|
+
isBuiltin: boolean;
|
|
34
|
+
version: string;
|
|
35
|
+
}
|
|
36
|
+
export interface AgentHealthCheckResult {
|
|
37
|
+
agentId: string;
|
|
38
|
+
healthy: boolean;
|
|
39
|
+
provider: string;
|
|
40
|
+
available: boolean;
|
|
41
|
+
reason?: string;
|
|
42
|
+
latencyMs?: number;
|
|
43
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/intelligence/agents/types.ts"],"names":[],"mappings":"","sourcesContent":["import type { TaskType } from '../../tasks/task.js';\n\nexport type RiskClassification = 'LOW' | 'MEDIUM' | 'HIGH' | 'CRITICAL';\n\nexport type AgentRoleType =\n | 'PLANNER'\n | 'ARCHITECT'\n | 'RESEARCH'\n | 'DEVELOPER'\n | 'DEBUGGER'\n | 'TESTING'\n | 'SECURITY_AUDITOR'\n | 'PERFORMANCE_ENGINEER'\n | 'CODE_REVIEWER'\n | 'DOCUMENTATION'\n | 'DATABASE_SPECIALIST'\n | 'RELEASE_MANAGER'\n | 'CUSTOM';\n\nexport interface ToolPermission {\n name: string;\n allowed: boolean;\n requiresApproval?: boolean;\n}\n\nexport interface FilePermissionPolicy {\n readPatterns: string[];\n writePatterns: string[];\n deniedPatterns: string[];\n}\n\nexport interface AgentProfile {\n id: string;\n name: string;\n description: string;\n role: AgentRoleType;\n capabilities: string[];\n supportedTaskTypes: TaskType[];\n requiredSkills: string[];\n supportedProviders: string[];\n modelPreferences: {\n preferredTier: 'fast' | 'balanced' | 'reasoning' | 'coding';\n recommendedModels?: string[];\n };\n toolPermissions: ToolPermission[];\n filePermissions: FilePermissionPolicy;\n riskClassification: RiskClassification;\n maxExecutionTimeSeconds: number;\n maxTokenBudget: number;\n maxRetryCount: number;\n isBuiltin: boolean;\n version: string;\n}\n\nexport interface AgentHealthCheckResult {\n agentId: string;\n healthy: boolean;\n provider: string;\n available: boolean;\n reason?: string;\n latencyMs?: number;\n}\n"]}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { ExecutionTrace, PerformanceMetrics, TraceSpan } from './types.js';
|
|
2
|
+
export declare class LocalTracer {
|
|
3
|
+
private workspaceRoot;
|
|
4
|
+
private activeTraces;
|
|
5
|
+
constructor(workspaceRoot: string);
|
|
6
|
+
private tracesPath;
|
|
7
|
+
startTrace(runId: string): ExecutionTrace;
|
|
8
|
+
addSpan(runId: string, span: Omit<TraceSpan, 'spanId'>): TraceSpan;
|
|
9
|
+
finishTrace(runId: string, tokensEstimate?: number, filesModified?: string[]): Promise<ExecutionTrace | null>;
|
|
10
|
+
getTrace(runId: string): Promise<ExecutionTrace | null>;
|
|
11
|
+
listTraces(): Promise<ExecutionTrace[]>;
|
|
12
|
+
computeMetrics(): Promise<PerformanceMetrics>;
|
|
13
|
+
}
|