@deimoscloud/coreai 0.1.15 → 0.1.16
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/agents/android-engineer.md +289 -0
- package/agents/backend-engineer.md +287 -0
- package/agents/database-administrator.md +289 -0
- package/agents/devops-engineer.md +323 -0
- package/agents/{examples/engineering-manager.md → engineering-manager.md} +208 -171
- package/agents/frontend-engineer.md +287 -0
- package/agents/product-manager.md +371 -0
- package/agents/react-engineer.md +289 -0
- package/agents/react-native-engineer.md +289 -0
- package/agents/software-security-engineer.md +451 -0
- package/agents/software-solutions-architect.md +469 -0
- package/agents/sre-huawei-cloud-architect.md +289 -0
- package/agents/sre-iac-specialist.md +289 -0
- package/agents/sre-kubernetes-specialist.md +289 -0
- package/agents/sre-network-specialist.md +289 -0
- package/agents/wearos-engineer.md +289 -0
- package/dist/cli/index.js +291 -216
- package/dist/cli/index.js.map +1 -1
- package/dist/index.d.ts +41 -55
- package/dist/index.js +275 -205
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/agents/android-engineer.yaml +0 -108
- package/agents/backend-engineer.yaml +0 -106
- package/agents/database-administrator.yaml +0 -108
- package/agents/devops-engineer.yaml +0 -106
- package/agents/engineering-manager.yaml +0 -104
- package/agents/examples/android-engineer.md +0 -302
- package/agents/examples/backend-engineer.md +0 -320
- package/agents/examples/devops-engineer.md +0 -742
- package/agents/examples/frontend-engineer.md +0 -58
- package/agents/examples/product-manager.md +0 -315
- package/agents/examples/qa-engineer.md +0 -371
- package/agents/examples/security-engineer.md +0 -525
- package/agents/examples/solutions-architect.md +0 -351
- package/agents/examples/wearos-engineer.md +0 -359
- package/agents/frontend-engineer.yaml +0 -106
- package/agents/product-manager.yaml +0 -109
- package/agents/react-engineer.yaml +0 -108
- package/agents/react-native-engineer.yaml +0 -108
- package/agents/software-security-engineer.yaml +0 -108
- package/agents/software-solutions-architect.yaml +0 -107
- package/agents/sre-huawei-cloud-architect.yaml +0 -108
- package/agents/sre-iac-specialist.yaml +0 -108
- package/agents/sre-kubernetes-specialist.yaml +0 -108
- package/agents/sre-network-specialist.yaml +0 -108
- package/agents/wearos-engineer.yaml +0 -108
package/dist/index.d.ts
CHANGED
|
@@ -165,13 +165,17 @@ declare function getConfigPath(startDir?: string): string | null;
|
|
|
165
165
|
*
|
|
166
166
|
* TypeScript types corresponding to the JSON schema at schemas/agent.schema.json
|
|
167
167
|
*/
|
|
168
|
+
/** @deprecated Used only for YAML backward compatibility. Will be removed when YAML support is dropped. */
|
|
168
169
|
type AgentType = 'ic-engineer' | 'manager' | 'specialist' | 'coordinator';
|
|
170
|
+
/** @deprecated Used only for YAML backward compatibility. Will be removed when YAML support is dropped. */
|
|
169
171
|
type WorkflowType = 'ticket-implementation' | 'bug-investigation' | 'code-review' | 'planning-estimation' | 'product-planning';
|
|
172
|
+
/** @deprecated Used only for YAML backward compatibility. Will be removed when YAML support is dropped. */
|
|
170
173
|
interface AgentExpertise {
|
|
171
174
|
primary?: string[];
|
|
172
175
|
tech_stack?: string;
|
|
173
176
|
[key: string]: unknown;
|
|
174
177
|
}
|
|
178
|
+
/** @deprecated Used only for YAML backward compatibility. Will be removed when YAML support is dropped. */
|
|
175
179
|
interface AgentPrinciples {
|
|
176
180
|
code_quality?: string[];
|
|
177
181
|
testing?: string[];
|
|
@@ -179,30 +183,32 @@ interface AgentPrinciples {
|
|
|
179
183
|
performance?: string[];
|
|
180
184
|
[key: string]: string[] | undefined;
|
|
181
185
|
}
|
|
186
|
+
/** @deprecated Used only for YAML backward compatibility. Will be removed when YAML support is dropped. */
|
|
182
187
|
interface AgentBehaviors {
|
|
183
188
|
workflow?: WorkflowType;
|
|
184
189
|
quality_gates?: string;
|
|
185
190
|
[key: string]: unknown;
|
|
186
191
|
}
|
|
187
|
-
/**
|
|
188
|
-
* @deprecated Use AgentKnowledgeLibrary instead
|
|
189
|
-
*/
|
|
192
|
+
/** @deprecated Used only for YAML backward compatibility. Will be removed when YAML support is dropped. */
|
|
190
193
|
interface AgentContextSources {
|
|
191
194
|
shared?: string[];
|
|
192
195
|
personal?: string[];
|
|
193
196
|
}
|
|
197
|
+
/** @deprecated Used only for YAML backward compatibility. Will be removed when YAML support is dropped. */
|
|
194
198
|
interface AgentKnowledgeLibraryControl {
|
|
195
199
|
objectives?: string;
|
|
196
200
|
decisions?: string;
|
|
197
201
|
dependencies?: string;
|
|
198
202
|
index?: string;
|
|
199
203
|
}
|
|
204
|
+
/** @deprecated Used only for YAML backward compatibility. Will be removed when YAML support is dropped. */
|
|
200
205
|
interface AgentKnowledgeLibraryShared {
|
|
201
206
|
context?: string;
|
|
202
207
|
architecture?: string;
|
|
203
208
|
prd?: string;
|
|
204
209
|
remote?: string[];
|
|
205
210
|
}
|
|
211
|
+
/** @deprecated Used only for YAML backward compatibility. Will be removed when YAML support is dropped. */
|
|
206
212
|
interface AgentKnowledgeLibraryPersonal {
|
|
207
213
|
context?: string;
|
|
208
214
|
history?: string;
|
|
@@ -211,10 +217,12 @@ interface AgentKnowledgeLibraryPersonal {
|
|
|
211
217
|
tech?: string;
|
|
212
218
|
control?: AgentKnowledgeLibraryControl;
|
|
213
219
|
}
|
|
220
|
+
/** @deprecated Used only for YAML backward compatibility. Will be removed when YAML support is dropped. */
|
|
214
221
|
interface AgentKnowledgeLibrary {
|
|
215
222
|
shared?: AgentKnowledgeLibraryShared;
|
|
216
223
|
personal?: AgentKnowledgeLibraryPersonal;
|
|
217
224
|
}
|
|
225
|
+
/** @deprecated Used only for YAML backward compatibility. Will be removed when YAML support is dropped. */
|
|
218
226
|
interface AgentCommunication {
|
|
219
227
|
inbox?: string;
|
|
220
228
|
outbox?: string;
|
|
@@ -222,31 +230,43 @@ interface AgentCommunication {
|
|
|
222
230
|
outbox_format?: string;
|
|
223
231
|
processed_dir?: string;
|
|
224
232
|
}
|
|
233
|
+
/** @deprecated Used only for YAML backward compatibility. Will be removed when YAML support is dropped. */
|
|
225
234
|
interface AgentStartupProtocol {
|
|
226
235
|
first_session?: string[];
|
|
227
236
|
subsequent?: string[];
|
|
228
237
|
}
|
|
238
|
+
/** @deprecated Used only for YAML backward compatibility. Will be removed when YAML support is dropped. */
|
|
229
239
|
interface AgentProtocols {
|
|
230
240
|
startup?: AgentStartupProtocol;
|
|
231
241
|
completion?: string[];
|
|
232
242
|
}
|
|
233
243
|
/**
|
|
234
|
-
*
|
|
244
|
+
* Agent definition.
|
|
245
|
+
* For MD agents: role, type, display_name, description, tools are used.
|
|
246
|
+
* For deprecated YAML agents: all fields may be populated.
|
|
235
247
|
*/
|
|
236
248
|
interface AgentDefinition {
|
|
237
249
|
role: string;
|
|
238
250
|
type: AgentType;
|
|
239
251
|
display_name: string;
|
|
240
252
|
description: string;
|
|
253
|
+
/** @deprecated YAML-only. In MD agents, responsibilities are in the template body. */
|
|
241
254
|
responsibilities?: string[];
|
|
255
|
+
/** @deprecated YAML-only. In MD agents, expertise is in the template body. */
|
|
242
256
|
expertise?: AgentExpertise;
|
|
257
|
+
/** @deprecated YAML-only. In MD agents, skills are in the template body. */
|
|
243
258
|
skills?: string[];
|
|
259
|
+
/** @deprecated YAML-only. In MD agents, principles are in the template body. */
|
|
244
260
|
principles?: AgentPrinciples;
|
|
261
|
+
/** @deprecated YAML-only. In MD agents, behaviors are in the template body. */
|
|
245
262
|
behaviors?: AgentBehaviors;
|
|
246
|
-
/** @deprecated Use knowledge_library instead */
|
|
263
|
+
/** @deprecated YAML-only. Use knowledge_library or MD template body instead. */
|
|
247
264
|
context_sources?: AgentContextSources;
|
|
265
|
+
/** @deprecated YAML-only. In MD agents, knowledge library structure is in the template body. */
|
|
248
266
|
knowledge_library?: AgentKnowledgeLibrary;
|
|
267
|
+
/** @deprecated YAML-only. In MD agents, communication details are in the template body. */
|
|
249
268
|
communication?: AgentCommunication;
|
|
269
|
+
/** @deprecated YAML-only. In MD agents, protocols are in the template body. */
|
|
250
270
|
protocols?: AgentProtocols;
|
|
251
271
|
/**
|
|
252
272
|
* Claude Code tools available to this agent.
|
|
@@ -255,7 +275,7 @@ interface AgentDefinition {
|
|
|
255
275
|
tools?: string[];
|
|
256
276
|
}
|
|
257
277
|
/**
|
|
258
|
-
*
|
|
278
|
+
* @deprecated Used only for YAML backward compatibility.
|
|
259
279
|
*/
|
|
260
280
|
interface ResolvedAgentDefinition extends AgentDefinition {
|
|
261
281
|
expertise?: AgentExpertise & {
|
|
@@ -281,7 +301,8 @@ interface AgentMetadata {
|
|
|
281
301
|
/**
|
|
282
302
|
* Agent Loader
|
|
283
303
|
*
|
|
284
|
-
* Handles loading
|
|
304
|
+
* Handles loading agent definitions from Markdown templates (primary)
|
|
305
|
+
* and YAML files (deprecated, backward compatible).
|
|
285
306
|
*/
|
|
286
307
|
|
|
287
308
|
declare class AgentError extends Error {
|
|
@@ -292,14 +313,17 @@ declare class AgentError extends Error {
|
|
|
292
313
|
type AgentErrorCode = 'NOT_FOUND' | 'PARSE_ERROR' | 'VALIDATION_ERROR' | 'READ_ERROR';
|
|
293
314
|
/**
|
|
294
315
|
* Parse YAML content into an agent definition
|
|
316
|
+
* @deprecated Use Markdown agent files instead
|
|
295
317
|
*/
|
|
296
318
|
declare function parseAgentYaml(content: string, filePath?: string): unknown;
|
|
297
319
|
/**
|
|
298
320
|
* Validate parsed YAML against agent schema
|
|
321
|
+
* @deprecated Use Markdown agent files instead
|
|
299
322
|
*/
|
|
300
323
|
declare function validateAgentDefinition(agent: unknown): AgentDefinition;
|
|
301
324
|
/**
|
|
302
|
-
* Load
|
|
325
|
+
* Load an agent definition from a file (MD or YAML).
|
|
326
|
+
* MD files are the primary format. YAML files are deprecated but supported.
|
|
303
327
|
*/
|
|
304
328
|
declare function loadAgentFromFile(filePath: string): AgentDefinition;
|
|
305
329
|
/**
|
|
@@ -368,60 +392,30 @@ declare function resolveAgentDefinition(agent: AgentDefinition, config?: CoreAIC
|
|
|
368
392
|
/**
|
|
369
393
|
* Agent Compiler
|
|
370
394
|
*
|
|
371
|
-
*
|
|
395
|
+
* Processes agent Markdown templates with variable substitution.
|
|
396
|
+
* For deprecated YAML agents, falls back to structural transformation.
|
|
372
397
|
*/
|
|
373
398
|
|
|
374
399
|
/**
|
|
375
400
|
* Options for compiling agents
|
|
376
401
|
*/
|
|
377
402
|
interface CompileOptions {
|
|
378
|
-
/**
|
|
379
|
-
* Output directory for compiled markdown files.
|
|
380
|
-
* Default: .claude/agents
|
|
381
|
-
*/
|
|
382
403
|
outputDir?: string;
|
|
383
|
-
/**
|
|
384
|
-
* Core agents directory (built-in agents).
|
|
385
|
-
* Default: uses package's agents/ directory
|
|
386
|
-
*/
|
|
387
404
|
coreAgentsDir?: string;
|
|
388
|
-
/**
|
|
389
|
-
* Custom agents directory (project-specific agents).
|
|
390
|
-
* Default: coreai/agents in project root
|
|
391
|
-
*/
|
|
392
405
|
customAgentsDir?: string;
|
|
393
|
-
/**
|
|
394
|
-
* Project root directory.
|
|
395
|
-
* Default: process.cwd()
|
|
396
|
-
*/
|
|
397
406
|
projectRoot?: string;
|
|
398
|
-
/**
|
|
399
|
-
* Filter function to select which agents to compile.
|
|
400
|
-
* Returns true to include the agent, false to exclude.
|
|
401
|
-
*/
|
|
402
407
|
filter?: (agent: AgentDefinition) => boolean;
|
|
403
|
-
/**
|
|
404
|
-
* MCP server names to include as tools.
|
|
405
|
-
* These will be added to the agent's tools as mcp__<server-name>.
|
|
406
|
-
* Example: ['github', 'postgres'] -> 'mcp__github, mcp__postgres'
|
|
407
|
-
*/
|
|
408
408
|
mcpServers?: string[];
|
|
409
409
|
}
|
|
410
410
|
/**
|
|
411
411
|
* Result of compiling agents
|
|
412
412
|
*/
|
|
413
413
|
interface CompileResult {
|
|
414
|
-
/**
|
|
415
|
-
* Successfully compiled agents
|
|
416
|
-
*/
|
|
417
414
|
compiled: {
|
|
418
415
|
role: string;
|
|
419
416
|
source: AgentSource;
|
|
420
417
|
outputPath: string;
|
|
421
418
|
}[];
|
|
422
|
-
/**
|
|
423
|
-
* Agents that failed to compile
|
|
424
|
-
*/
|
|
425
419
|
errors: {
|
|
426
420
|
role: string;
|
|
427
421
|
source: AgentSource;
|
|
@@ -429,30 +423,22 @@ interface CompileResult {
|
|
|
429
423
|
}[];
|
|
430
424
|
}
|
|
431
425
|
/**
|
|
432
|
-
* Generate markdown content from a resolved agent definition
|
|
433
|
-
*
|
|
434
|
-
* The output includes YAML frontmatter required by Claude Code for subagent detection.
|
|
435
|
-
* See: https://code.claude.com/docs/en/sub-agents
|
|
436
|
-
*
|
|
437
|
-
* @param agent - Resolved agent definition
|
|
438
|
-
* @param mcpServers - Optional MCP server names to include as tools
|
|
426
|
+
* Generate markdown content from a resolved YAML agent definition.
|
|
427
|
+
* @deprecated Use MD templates instead. This exists for backward compatibility with YAML agents.
|
|
439
428
|
*/
|
|
440
429
|
declare function generateAgentMarkdown(agent: AgentDefinition, mcpServers?: string[]): string;
|
|
441
430
|
/**
|
|
442
|
-
* Compile a single agent
|
|
443
|
-
*
|
|
444
|
-
*
|
|
445
|
-
* @param config - Optional CoreAI config for variable resolution
|
|
446
|
-
* @param mcpServers - Optional MCP server names to include as tools
|
|
431
|
+
* Compile a single agent.
|
|
432
|
+
* MD templates use simple variable substitution.
|
|
433
|
+
* YAML files use the deprecated structural transformation.
|
|
447
434
|
*/
|
|
448
|
-
declare function compileAgent(agent: AgentDefinition, config?: CoreAIConfig, mcpServers?: string[]): string;
|
|
435
|
+
declare function compileAgent(agent: AgentDefinition, filePath: string, config?: CoreAIConfig, mcpServers?: string[]): string;
|
|
449
436
|
/**
|
|
450
437
|
* Load all agents from core and custom directories
|
|
451
438
|
*/
|
|
452
439
|
declare function loadAllAgents(options?: CompileOptions): Map<string, AgentMetadata>;
|
|
453
440
|
/**
|
|
454
|
-
* Filter agents based on team configuration
|
|
455
|
-
* Custom and override agents are always included regardless of team filter.
|
|
441
|
+
* Filter agents based on team configuration
|
|
456
442
|
*/
|
|
457
443
|
declare function filterAgentsByTeam(agents: Map<string, AgentMetadata>, config?: CoreAIConfig): Map<string, AgentMetadata>;
|
|
458
444
|
/**
|