codex-subagent-kit 0.1.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.
Files changed (152) hide show
  1. package/README.md +123 -0
  2. package/builtin_catalog/categories/01-core-development/README.md +18 -0
  3. package/builtin_catalog/categories/01-core-development/api-designer.toml +43 -0
  4. package/builtin_catalog/categories/01-core-development/backend-developer.toml +42 -0
  5. package/builtin_catalog/categories/01-core-development/code-mapper.toml +35 -0
  6. package/builtin_catalog/categories/01-core-development/electron-pro.toml +40 -0
  7. package/builtin_catalog/categories/01-core-development/frontend-developer.toml +41 -0
  8. package/builtin_catalog/categories/01-core-development/fullstack-developer.toml +39 -0
  9. package/builtin_catalog/categories/01-core-development/graphql-architect.toml +46 -0
  10. package/builtin_catalog/categories/01-core-development/microservices-architect.toml +41 -0
  11. package/builtin_catalog/categories/01-core-development/mobile-developer.toml +35 -0
  12. package/builtin_catalog/categories/01-core-development/ui-designer.toml +35 -0
  13. package/builtin_catalog/categories/01-core-development/ui-fixer.toml +33 -0
  14. package/builtin_catalog/categories/01-core-development/websocket-engineer.toml +35 -0
  15. package/builtin_catalog/categories/02-language-specialists/README.md +33 -0
  16. package/builtin_catalog/categories/02-language-specialists/angular-architect.toml +41 -0
  17. package/builtin_catalog/categories/02-language-specialists/cpp-pro.toml +41 -0
  18. package/builtin_catalog/categories/02-language-specialists/csharp-developer.toml +41 -0
  19. package/builtin_catalog/categories/02-language-specialists/django-developer.toml +41 -0
  20. package/builtin_catalog/categories/02-language-specialists/dotnet-core-expert.toml +41 -0
  21. package/builtin_catalog/categories/02-language-specialists/dotnet-framework-4.8-expert.toml +41 -0
  22. package/builtin_catalog/categories/02-language-specialists/elixir-expert.toml +41 -0
  23. package/builtin_catalog/categories/02-language-specialists/erlang-expert.toml +49 -0
  24. package/builtin_catalog/categories/02-language-specialists/flutter-expert.toml +41 -0
  25. package/builtin_catalog/categories/02-language-specialists/golang-pro.toml +41 -0
  26. package/builtin_catalog/categories/02-language-specialists/java-architect.toml +41 -0
  27. package/builtin_catalog/categories/02-language-specialists/javascript-pro.toml +41 -0
  28. package/builtin_catalog/categories/02-language-specialists/kotlin-specialist.toml +41 -0
  29. package/builtin_catalog/categories/02-language-specialists/laravel-specialist.toml +41 -0
  30. package/builtin_catalog/categories/02-language-specialists/nextjs-developer.toml +41 -0
  31. package/builtin_catalog/categories/02-language-specialists/php-pro.toml +41 -0
  32. package/builtin_catalog/categories/02-language-specialists/powershell-5.1-expert.toml +41 -0
  33. package/builtin_catalog/categories/02-language-specialists/powershell-7-expert.toml +41 -0
  34. package/builtin_catalog/categories/02-language-specialists/python-pro.toml +41 -0
  35. package/builtin_catalog/categories/02-language-specialists/rails-expert.toml +41 -0
  36. package/builtin_catalog/categories/02-language-specialists/react-specialist.toml +41 -0
  37. package/builtin_catalog/categories/02-language-specialists/rust-engineer.toml +41 -0
  38. package/builtin_catalog/categories/02-language-specialists/spring-boot-engineer.toml +41 -0
  39. package/builtin_catalog/categories/02-language-specialists/sql-pro.toml +41 -0
  40. package/builtin_catalog/categories/02-language-specialists/swift-expert.toml +41 -0
  41. package/builtin_catalog/categories/02-language-specialists/typescript-pro.toml +41 -0
  42. package/builtin_catalog/categories/02-language-specialists/vue-expert.toml +41 -0
  43. package/builtin_catalog/categories/03-infrastructure/README.md +22 -0
  44. package/builtin_catalog/categories/03-infrastructure/azure-infra-engineer.toml +41 -0
  45. package/builtin_catalog/categories/03-infrastructure/cloud-architect.toml +41 -0
  46. package/builtin_catalog/categories/03-infrastructure/database-administrator.toml +41 -0
  47. package/builtin_catalog/categories/03-infrastructure/deployment-engineer.toml +41 -0
  48. package/builtin_catalog/categories/03-infrastructure/devops-engineer.toml +41 -0
  49. package/builtin_catalog/categories/03-infrastructure/devops-incident-responder.toml +41 -0
  50. package/builtin_catalog/categories/03-infrastructure/docker-expert.toml +41 -0
  51. package/builtin_catalog/categories/03-infrastructure/incident-responder.toml +41 -0
  52. package/builtin_catalog/categories/03-infrastructure/kubernetes-specialist.toml +41 -0
  53. package/builtin_catalog/categories/03-infrastructure/network-engineer.toml +41 -0
  54. package/builtin_catalog/categories/03-infrastructure/platform-engineer.toml +41 -0
  55. package/builtin_catalog/categories/03-infrastructure/security-engineer.toml +41 -0
  56. package/builtin_catalog/categories/03-infrastructure/sre-engineer.toml +41 -0
  57. package/builtin_catalog/categories/03-infrastructure/terraform-engineer.toml +41 -0
  58. package/builtin_catalog/categories/03-infrastructure/terragrunt-expert.toml +41 -0
  59. package/builtin_catalog/categories/03-infrastructure/windows-infra-admin.toml +41 -0
  60. package/builtin_catalog/categories/04-quality-security/README.md +22 -0
  61. package/builtin_catalog/categories/04-quality-security/accessibility-tester.toml +41 -0
  62. package/builtin_catalog/categories/04-quality-security/ad-security-reviewer.toml +41 -0
  63. package/builtin_catalog/categories/04-quality-security/architect-reviewer.toml +41 -0
  64. package/builtin_catalog/categories/04-quality-security/browser-debugger.toml +45 -0
  65. package/builtin_catalog/categories/04-quality-security/chaos-engineer.toml +41 -0
  66. package/builtin_catalog/categories/04-quality-security/code-reviewer.toml +41 -0
  67. package/builtin_catalog/categories/04-quality-security/compliance-auditor.toml +41 -0
  68. package/builtin_catalog/categories/04-quality-security/debugger.toml +41 -0
  69. package/builtin_catalog/categories/04-quality-security/error-detective.toml +41 -0
  70. package/builtin_catalog/categories/04-quality-security/penetration-tester.toml +41 -0
  71. package/builtin_catalog/categories/04-quality-security/performance-engineer.toml +41 -0
  72. package/builtin_catalog/categories/04-quality-security/powershell-security-hardening.toml +41 -0
  73. package/builtin_catalog/categories/04-quality-security/qa-expert.toml +41 -0
  74. package/builtin_catalog/categories/04-quality-security/reviewer.toml +41 -0
  75. package/builtin_catalog/categories/04-quality-security/security-auditor.toml +41 -0
  76. package/builtin_catalog/categories/04-quality-security/test-automator.toml +41 -0
  77. package/builtin_catalog/categories/05-data-ai/README.md +18 -0
  78. package/builtin_catalog/categories/05-data-ai/ai-engineer.toml +41 -0
  79. package/builtin_catalog/categories/05-data-ai/data-analyst.toml +41 -0
  80. package/builtin_catalog/categories/05-data-ai/data-engineer.toml +41 -0
  81. package/builtin_catalog/categories/05-data-ai/data-scientist.toml +41 -0
  82. package/builtin_catalog/categories/05-data-ai/database-optimizer.toml +41 -0
  83. package/builtin_catalog/categories/05-data-ai/llm-architect.toml +41 -0
  84. package/builtin_catalog/categories/05-data-ai/machine-learning-engineer.toml +41 -0
  85. package/builtin_catalog/categories/05-data-ai/ml-engineer.toml +41 -0
  86. package/builtin_catalog/categories/05-data-ai/mlops-engineer.toml +41 -0
  87. package/builtin_catalog/categories/05-data-ai/nlp-engineer.toml +41 -0
  88. package/builtin_catalog/categories/05-data-ai/postgres-pro.toml +41 -0
  89. package/builtin_catalog/categories/05-data-ai/prompt-engineer.toml +41 -0
  90. package/builtin_catalog/categories/06-developer-experience/README.md +19 -0
  91. package/builtin_catalog/categories/06-developer-experience/build-engineer.toml +41 -0
  92. package/builtin_catalog/categories/06-developer-experience/cli-developer.toml +41 -0
  93. package/builtin_catalog/categories/06-developer-experience/dependency-manager.toml +41 -0
  94. package/builtin_catalog/categories/06-developer-experience/documentation-engineer.toml +41 -0
  95. package/builtin_catalog/categories/06-developer-experience/dx-optimizer.toml +41 -0
  96. package/builtin_catalog/categories/06-developer-experience/git-workflow-manager.toml +41 -0
  97. package/builtin_catalog/categories/06-developer-experience/legacy-modernizer.toml +41 -0
  98. package/builtin_catalog/categories/06-developer-experience/mcp-developer.toml +41 -0
  99. package/builtin_catalog/categories/06-developer-experience/powershell-module-architect.toml +41 -0
  100. package/builtin_catalog/categories/06-developer-experience/powershell-ui-architect.toml +41 -0
  101. package/builtin_catalog/categories/06-developer-experience/refactoring-specialist.toml +41 -0
  102. package/builtin_catalog/categories/06-developer-experience/slack-expert.toml +41 -0
  103. package/builtin_catalog/categories/06-developer-experience/tooling-engineer.toml +41 -0
  104. package/builtin_catalog/categories/07-specialized-domains/README.md +18 -0
  105. package/builtin_catalog/categories/07-specialized-domains/api-documenter.toml +41 -0
  106. package/builtin_catalog/categories/07-specialized-domains/blockchain-developer.toml +41 -0
  107. package/builtin_catalog/categories/07-specialized-domains/embedded-systems.toml +41 -0
  108. package/builtin_catalog/categories/07-specialized-domains/fintech-engineer.toml +41 -0
  109. package/builtin_catalog/categories/07-specialized-domains/game-developer.toml +41 -0
  110. package/builtin_catalog/categories/07-specialized-domains/iot-engineer.toml +41 -0
  111. package/builtin_catalog/categories/07-specialized-domains/m365-admin.toml +41 -0
  112. package/builtin_catalog/categories/07-specialized-domains/mobile-app-developer.toml +41 -0
  113. package/builtin_catalog/categories/07-specialized-domains/payment-integration.toml +41 -0
  114. package/builtin_catalog/categories/07-specialized-domains/quant-analyst.toml +41 -0
  115. package/builtin_catalog/categories/07-specialized-domains/risk-manager.toml +41 -0
  116. package/builtin_catalog/categories/07-specialized-domains/seo-specialist.toml +41 -0
  117. package/builtin_catalog/categories/08-business-product/README.md +17 -0
  118. package/builtin_catalog/categories/08-business-product/business-analyst.toml +41 -0
  119. package/builtin_catalog/categories/08-business-product/content-marketer.toml +41 -0
  120. package/builtin_catalog/categories/08-business-product/customer-success-manager.toml +41 -0
  121. package/builtin_catalog/categories/08-business-product/legal-advisor.toml +41 -0
  122. package/builtin_catalog/categories/08-business-product/product-manager.toml +41 -0
  123. package/builtin_catalog/categories/08-business-product/project-manager.toml +41 -0
  124. package/builtin_catalog/categories/08-business-product/sales-engineer.toml +41 -0
  125. package/builtin_catalog/categories/08-business-product/scrum-master.toml +41 -0
  126. package/builtin_catalog/categories/08-business-product/technical-writer.toml +41 -0
  127. package/builtin_catalog/categories/08-business-product/ux-researcher.toml +41 -0
  128. package/builtin_catalog/categories/08-business-product/wordpress-master.toml +41 -0
  129. package/builtin_catalog/categories/09-meta-orchestration/README.md +16 -0
  130. package/builtin_catalog/categories/09-meta-orchestration/agent-installer.toml +41 -0
  131. package/builtin_catalog/categories/09-meta-orchestration/agent-organizer.toml +41 -0
  132. package/builtin_catalog/categories/09-meta-orchestration/context-manager.toml +41 -0
  133. package/builtin_catalog/categories/09-meta-orchestration/error-coordinator.toml +41 -0
  134. package/builtin_catalog/categories/09-meta-orchestration/it-ops-orchestrator.toml +41 -0
  135. package/builtin_catalog/categories/09-meta-orchestration/knowledge-synthesizer.toml +41 -0
  136. package/builtin_catalog/categories/09-meta-orchestration/multi-agent-coordinator.toml +41 -0
  137. package/builtin_catalog/categories/09-meta-orchestration/performance-monitor.toml +41 -0
  138. package/builtin_catalog/categories/09-meta-orchestration/task-distributor.toml +41 -0
  139. package/builtin_catalog/categories/09-meta-orchestration/workflow-orchestrator.toml +41 -0
  140. package/builtin_catalog/categories/10-research-analysis/README.md +13 -0
  141. package/builtin_catalog/categories/10-research-analysis/competitive-analyst.toml +41 -0
  142. package/builtin_catalog/categories/10-research-analysis/data-researcher.toml +41 -0
  143. package/builtin_catalog/categories/10-research-analysis/docs-researcher.toml +44 -0
  144. package/builtin_catalog/categories/10-research-analysis/market-researcher.toml +41 -0
  145. package/builtin_catalog/categories/10-research-analysis/research-analyst.toml +41 -0
  146. package/builtin_catalog/categories/10-research-analysis/search-specialist.toml +41 -0
  147. package/builtin_catalog/categories/10-research-analysis/trend-analyst.toml +41 -0
  148. package/dist/cli.d.ts +7 -0
  149. package/dist/cli.js +1550 -0
  150. package/dist/index.d.ts +218 -0
  151. package/dist/index.js +1665 -0
  152. package/package.json +52 -0
@@ -0,0 +1,218 @@
1
+ export { buildProgram, main } from './cli.js';
2
+ import 'commander';
3
+
4
+ interface Category {
5
+ key: string;
6
+ title: string;
7
+ description: string;
8
+ }
9
+ interface AgentSpec {
10
+ key: string;
11
+ category: string;
12
+ name: string;
13
+ description: string;
14
+ model: string;
15
+ reasoningEffort: string;
16
+ sandboxMode: string;
17
+ developerInstructions: string;
18
+ source: string;
19
+ definitionPath?: string;
20
+ }
21
+ interface CatalogOptions {
22
+ projectRoot?: string;
23
+ homeDir?: string;
24
+ includeProject?: boolean;
25
+ includeGlobal?: boolean;
26
+ catalogRoots?: readonly string[];
27
+ }
28
+ interface InstallResult {
29
+ agentPaths: string[];
30
+ agentPreservedPaths: string[];
31
+ }
32
+ interface DoctorIssue {
33
+ path?: string;
34
+ message: string;
35
+ }
36
+ interface CatalogImportResult {
37
+ targetRoot: string;
38
+ importedCategoryKeys: string[];
39
+ importedAgentKeys: string[];
40
+ createdPaths: string[];
41
+ preservedPaths: string[];
42
+ }
43
+ interface DoctorReport {
44
+ scope: string;
45
+ targetDir: string;
46
+ catalogCounts: Array<[string, number]>;
47
+ installedCounts: Array<[string, number]>;
48
+ issues: DoctorIssue[];
49
+ }
50
+
51
+ declare const IMPORTED_AGENTS_CATEGORY: Category;
52
+ declare function getAgentMap(options?: CatalogOptions): Map<string, AgentSpec>;
53
+ declare function getCategories(options?: CatalogOptions): Category[];
54
+ declare function getAgents(options?: CatalogOptions): AgentSpec[];
55
+ declare function getAgentsByCategory(categoryKeys: Set<string> | undefined, options?: CatalogOptions): AgentSpec[];
56
+ declare function renderCatalogOutput(options?: CatalogOptions): string;
57
+
58
+ declare class CatalogImportError extends Error {
59
+ }
60
+ declare function importCatalog(options: {
61
+ projectRoot: string;
62
+ scope: "project" | "global";
63
+ homeDir?: string;
64
+ catalogRoots: readonly string[];
65
+ agentKeys: string[];
66
+ categoryKeys: string[];
67
+ overwrite?: boolean;
68
+ }): CatalogImportResult;
69
+
70
+ declare class CatalogSyncError extends Error {
71
+ }
72
+ interface CatalogSyncResult {
73
+ sourceName: string;
74
+ targetRoot: string;
75
+ sourceLabel: string;
76
+ copiedPaths: string[];
77
+ }
78
+ declare function syncCatalog(options: {
79
+ projectRoot: string;
80
+ scope: "project" | "global";
81
+ homeDir?: string;
82
+ sourceName?: string;
83
+ sourceRoot?: string;
84
+ }): Promise<CatalogSyncResult>;
85
+
86
+ declare function runDoctor(options: {
87
+ projectRoot: string;
88
+ scope: "project" | "global";
89
+ homeDir?: string;
90
+ catalogRoots?: readonly string[];
91
+ }): DoctorReport;
92
+ declare function renderDoctorReport(report: DoctorReport): string;
93
+
94
+ declare class GenerationError extends Error {
95
+ }
96
+ declare const ORCHESTRATOR_CATEGORY = "meta-orchestration";
97
+ declare const DEFAULT_ORCHESTRATOR_KEY = "multi-agent-coordinator";
98
+ interface InstallAgentsOptions {
99
+ scope: "project" | "global";
100
+ projectRoot: string;
101
+ agentKeys: string[];
102
+ homeDir?: string;
103
+ catalogRoots?: readonly string[];
104
+ overwrite?: boolean;
105
+ }
106
+ interface RenderableAgentFile {
107
+ name: string;
108
+ description: string;
109
+ model: string;
110
+ reasoningEffort: string;
111
+ sandboxMode: string;
112
+ developerInstructions: string;
113
+ categoryOverride?: string;
114
+ }
115
+ declare function renderAgentFile(agent: RenderableAgentFile): string;
116
+ declare function resolveTargetDir(scope: "project" | "global", projectRoot: string, homeDir?: string): string;
117
+ declare function installAgents(options: InstallAgentsOptions): InstallResult;
118
+
119
+ declare const STABLE_COMMANDS: readonly ["catalog", "catalog import", "catalog sync", "install", "doctor", "usage", "template init", "tui"];
120
+
121
+ type SemverBump = "major" | "minor" | "patch";
122
+ declare function parseSemver(value: string): [number, number, number];
123
+ declare function bumpSemver(version: string, bump: SemverBump): string;
124
+ declare function classifyBump(commitMessages: Iterable<string>): SemverBump;
125
+ declare function computeNextVersion(baseVersion: string, commitMessages: Iterable<string>): string;
126
+
127
+ declare const DEFAULT_MODEL = "gpt-5.4";
128
+ declare const DEFAULT_REASONING_EFFORT = "medium";
129
+ declare const DEFAULT_SANDBOX_MODE = "read-only";
130
+ declare class TemplateError extends Error {
131
+ }
132
+ interface InitTemplateOptions {
133
+ projectRoot: string;
134
+ scope: "project" | "global";
135
+ categoryKey: string;
136
+ agentKey: string;
137
+ catalogRoot?: string;
138
+ categoryPrefix?: string;
139
+ categoryTitle?: string;
140
+ categoryDescription?: string;
141
+ agentName?: string;
142
+ agentDescription?: string;
143
+ model?: string;
144
+ reasoningEffort?: string;
145
+ sandboxMode?: string;
146
+ orchestrator?: boolean;
147
+ overwrite?: boolean;
148
+ }
149
+ interface TemplateInitResult {
150
+ targetRoot: string;
151
+ categoryDir: string;
152
+ readmePath: string;
153
+ agentPath: string;
154
+ createdPaths: string[];
155
+ preservedPaths: string[];
156
+ }
157
+ declare function renderCategoryReadme(options: {
158
+ categoryTitle: string;
159
+ categoryDescription: string;
160
+ categoryPrefix: string;
161
+ }): string;
162
+ declare function renderAgentTemplate(options: {
163
+ agentKey: string;
164
+ agentName: string;
165
+ agentDescription: string;
166
+ model: string;
167
+ reasoningEffort: string;
168
+ sandboxMode: string;
169
+ categoryOverride?: string;
170
+ }): string;
171
+ declare function initTemplate(options: InitTemplateOptions): TemplateInitResult;
172
+
173
+ interface PromptChoice<T> {
174
+ value: T;
175
+ name: string;
176
+ checked?: boolean;
177
+ }
178
+ interface PromptAdapter {
179
+ select<T>(config: {
180
+ message: string;
181
+ choices: Array<PromptChoice<T>>;
182
+ }): Promise<T>;
183
+ checkbox<T>(config: {
184
+ message: string;
185
+ choices: Array<PromptChoice<T>>;
186
+ }): Promise<T[]>;
187
+ confirm(config: {
188
+ message: string;
189
+ default?: boolean;
190
+ }): Promise<boolean>;
191
+ }
192
+ interface TuiDeps {
193
+ installAgentsImpl(options: InstallAgentsOptions): InstallResult;
194
+ runDoctorImpl(options: {
195
+ projectRoot: string;
196
+ scope: "project" | "global";
197
+ catalogRoots?: readonly string[];
198
+ }): DoctorReport;
199
+ }
200
+ declare function defaultAgentSelection(scope: "project" | "global", agentSpecs: AgentSpec[]): Set<string>;
201
+ declare function validateAgentSelection(scope: "project" | "global", agentSpecs: AgentSpec[], selectedAgents: Set<string>): string | undefined;
202
+ declare function runTui(projectRoot: string, options?: {
203
+ catalogRoots?: readonly string[];
204
+ promptAdapter?: PromptAdapter;
205
+ deps?: Partial<TuiDeps>;
206
+ }): Promise<number>;
207
+
208
+ declare class UsageError extends Error {
209
+ }
210
+ interface RenderUsageGuideOptions {
211
+ projectRoot: string;
212
+ scope: "project" | "global";
213
+ task?: string;
214
+ homeDir?: string;
215
+ }
216
+ declare function renderUsageGuide(options: RenderUsageGuideOptions): string;
217
+
218
+ export { type AgentSpec, CatalogImportError, type CatalogOptions, CatalogSyncError, type CatalogSyncResult, type Category, DEFAULT_MODEL, DEFAULT_ORCHESTRATOR_KEY, DEFAULT_REASONING_EFFORT, DEFAULT_SANDBOX_MODE, type DoctorIssue, type DoctorReport, GenerationError, IMPORTED_AGENTS_CATEGORY, type InstallResult, ORCHESTRATOR_CATEGORY, type PromptAdapter, type PromptChoice, STABLE_COMMANDS, type SemverBump, TemplateError, UsageError, bumpSemver, classifyBump, computeNextVersion, defaultAgentSelection, getAgentMap, getAgents, getAgentsByCategory, getCategories, importCatalog, initTemplate, installAgents, parseSemver, renderAgentFile, renderAgentTemplate, renderCatalogOutput, renderCategoryReadme, renderDoctorReport, renderUsageGuide, resolveTargetDir, runDoctor, runTui, syncCatalog, validateAgentSelection };