@defai.digital/automatosx 12.8.7 → 13.1.3

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 (130) hide show
  1. package/LICENSE +1 -1
  2. package/README.md +48 -754
  3. package/dist/bin.d.ts +8 -0
  4. package/dist/bin.d.ts.map +1 -0
  5. package/dist/bin.js +16 -0
  6. package/dist/bin.js.map +1 -0
  7. package/dist/index.d.ts +8 -2
  8. package/dist/index.d.ts.map +1 -0
  9. package/dist/index.js +7 -74239
  10. package/dist/index.js.map +1 -0
  11. package/package.json +35 -160
  12. package/.github/assets/ax-cli.png +0 -0
  13. package/.github/assets/axlogo.png +0 -0
  14. package/CHANGELOG.md +0 -81
  15. package/SECURITY.md +0 -173
  16. package/dist/mcp/index.d.ts +0 -2
  17. package/dist/mcp/index.js +0 -43627
  18. package/examples/AGENTS_INFO.md +0 -187
  19. package/examples/README.md +0 -434
  20. package/examples/abilities/accessibility.md +0 -115
  21. package/examples/abilities/api-design.md +0 -168
  22. package/examples/abilities/best-practices.md +0 -102
  23. package/examples/abilities/caching-strategy.md +0 -165
  24. package/examples/abilities/ci-cd.md +0 -61
  25. package/examples/abilities/clean-code.md +0 -398
  26. package/examples/abilities/code-generation.md +0 -333
  27. package/examples/abilities/code-review.md +0 -51
  28. package/examples/abilities/component-architecture.md +0 -112
  29. package/examples/abilities/content-creation.md +0 -97
  30. package/examples/abilities/data-modeling.md +0 -171
  31. package/examples/abilities/data-validation.md +0 -50
  32. package/examples/abilities/db-modeling.md +0 -167
  33. package/examples/abilities/debugging.md +0 -52
  34. package/examples/abilities/design-patterns.md +0 -437
  35. package/examples/abilities/design-system-implementation.md +0 -126
  36. package/examples/abilities/documentation.md +0 -54
  37. package/examples/abilities/etl-pipelines.md +0 -44
  38. package/examples/abilities/feasibility-study.md +0 -20
  39. package/examples/abilities/general-assistance.md +0 -26
  40. package/examples/abilities/idea-evaluation.md +0 -21
  41. package/examples/abilities/infra-as-code.md +0 -57
  42. package/examples/abilities/job-orchestration.md +0 -44
  43. package/examples/abilities/literature-review.md +0 -19
  44. package/examples/abilities/longform-report.md +0 -25
  45. package/examples/abilities/mathematical-reasoning.md +0 -170
  46. package/examples/abilities/observability.md +0 -61
  47. package/examples/abilities/orbital-mechanics.md +0 -50
  48. package/examples/abilities/our-architecture-decisions.md +0 -180
  49. package/examples/abilities/our-code-review-checklist.md +0 -149
  50. package/examples/abilities/our-coding-standards.md +0 -369
  51. package/examples/abilities/our-project-structure.md +0 -183
  52. package/examples/abilities/performance.md +0 -89
  53. package/examples/abilities/problem-solving.md +0 -50
  54. package/examples/abilities/propulsion-systems.md +0 -50
  55. package/examples/abilities/quantum-algorithm-design.md +0 -54
  56. package/examples/abilities/quantum-error-correction.md +0 -56
  57. package/examples/abilities/quantum-frameworks-transpilation.md +0 -53
  58. package/examples/abilities/quantum-noise-modeling.md +0 -58
  59. package/examples/abilities/refactoring.md +0 -223
  60. package/examples/abilities/release-strategy.md +0 -58
  61. package/examples/abilities/secrets-policy.md +0 -61
  62. package/examples/abilities/secure-coding-review.md +0 -60
  63. package/examples/abilities/software-architecture.md +0 -394
  64. package/examples/abilities/solid-principles.md +0 -341
  65. package/examples/abilities/sql-optimization.md +0 -84
  66. package/examples/abilities/state-management.md +0 -96
  67. package/examples/abilities/task-planning.md +0 -65
  68. package/examples/abilities/technical-writing.md +0 -77
  69. package/examples/abilities/telemetry-diagnostics.md +0 -51
  70. package/examples/abilities/testing.md +0 -56
  71. package/examples/abilities/threat-modeling.md +0 -58
  72. package/examples/abilities/troubleshooting.md +0 -80
  73. package/examples/abilities/typescript-zod-validation.md +0 -830
  74. package/examples/agents/AGENTS_INTEGRATION.md +0 -99
  75. package/examples/agents/aerospace-scientist.yaml +0 -159
  76. package/examples/agents/architecture.yaml +0 -244
  77. package/examples/agents/automatosx.config.json +0 -286
  78. package/examples/agents/backend.yaml +0 -141
  79. package/examples/agents/ceo.yaml +0 -105
  80. package/examples/agents/creative-marketer.yaml +0 -173
  81. package/examples/agents/cto.yaml +0 -118
  82. package/examples/agents/data-scientist.yaml +0 -200
  83. package/examples/agents/data.yaml +0 -106
  84. package/examples/agents/design.yaml +0 -115
  85. package/examples/agents/devops.yaml +0 -124
  86. package/examples/agents/frontend.yaml +0 -171
  87. package/examples/agents/fullstack.yaml +0 -172
  88. package/examples/agents/mobile.yaml +0 -185
  89. package/examples/agents/product.yaml +0 -103
  90. package/examples/agents/quality.yaml +0 -117
  91. package/examples/agents/quantum-engineer.yaml +0 -166
  92. package/examples/agents/researcher.yaml +0 -122
  93. package/examples/agents/security.yaml +0 -115
  94. package/examples/agents/standard.yaml +0 -214
  95. package/examples/agents/writer.yaml +0 -122
  96. package/examples/providers/README.md +0 -117
  97. package/examples/providers/claude/CLAUDE_INTEGRATION.md +0 -302
  98. package/examples/providers/claude/mcp/automatosx.json +0 -244
  99. package/examples/providers/codex/CODEX_INTEGRATION.md +0 -593
  100. package/examples/providers/codex/README.md +0 -349
  101. package/examples/providers/codex/usage-examples.ts +0 -421
  102. package/examples/providers/gemini/GEMINI_INTEGRATION.md +0 -236
  103. package/examples/providers/gemini/README.md +0 -76
  104. package/examples/providers/openai-codex-example.ts +0 -421
  105. package/examples/pytorch_resnet50_training.py +0 -289
  106. package/examples/specs/automatosx-release.ax.yaml +0 -380
  107. package/examples/specs/enterprise.ax.yaml +0 -121
  108. package/examples/specs/enterprise.yaml.mustache +0 -121
  109. package/examples/specs/government.ax.yaml +0 -148
  110. package/examples/specs/government.yaml.mustache +0 -148
  111. package/examples/specs/minimal.ax.yaml +0 -21
  112. package/examples/specs/minimal.yaml.mustache +0 -21
  113. package/examples/teams/business.yaml +0 -56
  114. package/examples/teams/core.yaml +0 -60
  115. package/examples/teams/design.yaml +0 -58
  116. package/examples/teams/engineering.yaml +0 -69
  117. package/examples/teams/research.yaml +0 -56
  118. package/examples/use-cases/01-web-app-development.md +0 -374
  119. package/examples/workflows/analyst.yaml +0 -60
  120. package/examples/workflows/assistant.yaml +0 -48
  121. package/examples/workflows/basic-agent.yaml +0 -28
  122. package/examples/workflows/code-reviewer.yaml +0 -52
  123. package/examples/workflows/debugger.yaml +0 -63
  124. package/examples/workflows/designer.yaml +0 -69
  125. package/examples/workflows/developer.yaml +0 -60
  126. package/examples/workflows/fullstack-developer.yaml +0 -395
  127. package/examples/workflows/qa-specialist.yaml +0 -71
  128. package/schema/ability-metadata.json +0 -21
  129. package/schema/config.json +0 -703
  130. package/schema/spec-schema.json +0 -608
@@ -1,349 +0,0 @@
1
- # Codex CLI Integration for AutomatosX
2
-
3
- This directory contains integration files and examples for using Codex CLI CLI as a provider with AutomatosX.
4
-
5
- ## Overview
6
-
7
- **Codex CLI** is configured as an AI provider in AutomatosX. Unlike Claude Code and Gemini CLI which have native CLI integrations with custom slash commands, Codex operates as a background provider powering AutomatosX agents.
8
-
9
- ## Architecture
10
-
11
- ```
12
- ┌─────────────────────────────────────────────────────────┐
13
- │ User │
14
- └────────────────────┬────────────────────────────────────┘
15
-
16
-
17
- ┌─────────────────────────────────────────────────────────┐
18
- │ AutomatosX CLI (ax commands) │
19
- │ - ax run backend "task" │
20
- │ - ax list agents │
21
- │ - ax memory search │
22
- └────────────────────┬────────────────────────────────────┘
23
-
24
-
25
- ┌─────────────────────────────────────────────────────────┐
26
- │ AutomatosX Orchestration Layer │
27
- │ - Agent management │
28
- │ - Memory system │
29
- │ - Provider routing │
30
- └────────────────────┬────────────────────────────────────┘
31
-
32
-
33
- ┌─────────────────────────────────────────────────────────┐
34
- │ Codex CLI (Provider - Priority 1) │
35
- │ Command: codex exec <prompt> │
36
- │ Features: Streaming, MCP, Sandbox modes │
37
- └────────────────────┬────────────────────────────────────┘
38
-
39
-
40
- ┌─────────────────────────────────────────────────────────┐
41
- │ OpenAI API │
42
- └─────────────────────────────────────────────────────────┘
43
- ```
44
-
45
- ## Files in This Directory
46
-
47
- ### Integration Documentation
48
-
49
- - **`CODEX_INTEGRATION.md`** - Comprehensive integration guide
50
- - Quick start instructions
51
- - Provider configuration
52
- - Available agents
53
- - Advanced usage (MCP, streaming, parallel execution)
54
- - Troubleshooting
55
- - Best practices
56
-
57
- ### Code Examples
58
-
59
- - **`usage-examples.ts`** - TypeScript code examples
60
- - Basic CLI execution
61
- - Streaming execution
62
- - MCP server management
63
- - Full integration with CodexBridge
64
- - Error handling patterns
65
- - Default instances
66
- - Advanced configuration
67
-
68
- ## Quick Setup
69
-
70
- ### 1. Install Codex CLI
71
-
72
- ```bash
73
- npm install -g @openai/codex-cli
74
- ```
75
-
76
- ### 2. Verify Installation
77
-
78
- ```bash
79
- codex --version # Should show: codex-cli 0.50.0+
80
- ```
81
-
82
- ### 3. Initialize Project
83
-
84
- ```bash
85
- # AutomatosX automatically initializes git (required by Codex)
86
- ax setup
87
-
88
- # This creates:
89
- # - .automatosx/ directory with agents, memory, logs
90
- # - ax.config.json with Codex configured
91
- # - automatosx/PRD/ and automatosx/tmp/ workspace directories
92
- # - .gitignore with proper exclusions
93
- # - Git repository (if not already initialized)
94
- ```
95
-
96
- ### 4. Authenticate (if needed)
97
-
98
- ```bash
99
- codex login
100
- ```
101
-
102
- ### 5. Test Integration
103
-
104
- ```bash
105
- # Run a simple task
106
- ax run backend "explain TypeScript generics in 2 sentences"
107
-
108
- # Check provider status
109
- ax status
110
-
111
- # View provider limits
112
- ax provider-limits
113
- ```
114
-
115
- ## Usage Patterns
116
-
117
- ### Primary Usage: Terminal CLI
118
-
119
- ```bash
120
- # Run an agent with a task
121
- ax run <agent-name> "task description"
122
-
123
- # Examples
124
- ax run backend "create a REST API for user management"
125
- ax run security "audit this authentication code"
126
- ax run quality "write unit tests for this function"
127
- ```
128
-
129
- ### Provider Auto-Switching
130
-
131
- AutomatosX automatically switches providers when limits are hit:
132
-
133
- ```bash
134
- $ ax run backend "implement feature X"
135
- ⚠️ Switched from openai → gemini-cli
136
- (OpenAI daily quota hit, resets at 2025-10-29 00:00 UTC)
137
-
138
- ✓ Task completed successfully with gemini-cli
139
- ```
140
-
141
- ### Direct Codex CLI Usage (Optional)
142
-
143
- While not the primary interface, you can also use Codex CLI directly:
144
-
145
- ```bash
146
- # Interactive mode
147
- codex
148
-
149
- # Non-interactive execution
150
- codex exec "Write a Python function to sort a list"
151
-
152
- # MCP server mode
153
- codex mcp-server
154
- ```
155
-
156
- ## Configuration
157
-
158
- ### Provider Settings
159
-
160
- Edit `ax.config.json`:
161
-
162
- ```json
163
- {
164
- "providers": {
165
- "openai": {
166
- "enabled": true,
167
- "priority": 1, // 1 = highest priority
168
- "timeout": 2700000, // 45 minutes
169
- "command": "codex",
170
- "mcp": {
171
- "enabled": false, // Enable for MCP server mode
172
- "command": "codex",
173
- "transport": "stdio",
174
- "autoStart": false
175
- },
176
- "healthCheck": {
177
- "enabled": true,
178
- "interval": 300000 // 5 minutes
179
- },
180
- "limitTracking": {
181
- "enabled": true,
182
- "window": "daily"
183
- }
184
- }
185
- }
186
- }
187
- ```
188
-
189
- ### Provider Priority
190
-
191
- Configure fallback order (lower number = higher priority):
192
-
193
- ```json
194
- {
195
- "providers": {
196
- "openai": { "priority": 1 }, // First choice
197
- "gemini-cli": { "priority": 2 }, // Second choice
198
- "claude-code": { "priority": 3 } // Third choice
199
- }
200
- }
201
- ```
202
-
203
- ## Code Examples
204
-
205
- ### Example 1: Basic Execution
206
-
207
- ```typescript
208
- import { CodexCLI } from '@automatosx/integrations/openai-codex';
209
-
210
- const cli = new CodexCLI({
211
- command: 'codex',
212
- sandboxMode: 'workspace-write',
213
- timeout: 60000
214
- });
215
-
216
- const result = await cli.execute({
217
- prompt: 'Explain TypeScript benefits',
218
- temperature: 0.7,
219
- maxTokens: 200
220
- });
221
-
222
- console.log(result.content);
223
- await cli.cleanup();
224
- ```
225
-
226
- ### Example 2: MCP Server
227
-
228
- ```typescript
229
- import { CodexMCPManager } from '@automatosx/integrations/openai-codex';
230
-
231
- const mcpManager = new CodexMCPManager({
232
- enabled: true,
233
- command: 'codex',
234
- transport: 'stdio'
235
- });
236
-
237
- await mcpManager.startServer();
238
- const status = await mcpManager.getStatus();
239
- console.log('MCP Server running:', status.running);
240
- await mcpManager.stopServer();
241
- ```
242
-
243
- ### Example 3: Full Integration
244
-
245
- ```typescript
246
- import { CodexBridge } from '@automatosx/integrations/openai-codex';
247
-
248
- const bridge = new CodexBridge(
249
- { command: 'codex', sandboxMode: 'workspace-write' },
250
- { enabled: true, autoStart: false }
251
- );
252
-
253
- await bridge.initialize();
254
- const result = await bridge.execute({
255
- prompt: 'List SOLID principles',
256
- maxTokens: 300
257
- });
258
-
259
- console.log(result.content);
260
- await bridge.cleanup();
261
- ```
262
-
263
- See `usage-examples.ts` for complete, runnable examples.
264
-
265
- ## Troubleshooting
266
-
267
- ### Common Issues
268
-
269
- **Issue**: "Codex CLI not found"
270
- ```bash
271
- # Solution: Install Codex CLI
272
- npm install -g @openai/codex-cli
273
- codex --version
274
- ```
275
-
276
- **Issue**: "Git repository required"
277
- ```bash
278
- # Solution: Initialize git (or run ax setup)
279
- git init
280
- ```
281
-
282
- **Issue**: "Authentication failed"
283
- ```bash
284
- # Solution: Login to Codex
285
- codex login
286
- ```
287
-
288
- **Issue**: "Provider not available"
289
- ```bash
290
- # Solution: Check status and configuration
291
- ax status
292
- ax config show
293
- ax provider-limits
294
- ```
295
-
296
- ## Comparison: CLI Integrations vs Providers
297
-
298
- ### CLI Integrations (Claude Code, Gemini CLI)
299
-
300
- - **Interface**: Native CLI with conversational interface
301
- - **Custom Commands**: Slash commands (e.g., `/ax-agent`, `/ax`)
302
- - **Usage**: Invoke AutomatosX agents FROM their CLI
303
- - **Example**: `/ax-agent backend, create API` inside Claude Code IDE
304
-
305
- ### Providers (Codex CLI)
306
-
307
- - **Interface**: Background AI engine
308
- - **Custom Commands**: Not applicable (used as provider, not CLI)
309
- - **Usage**: Powered BY Codex, accessed via `ax` terminal commands
310
- - **Example**: `ax run backend "create API"` → uses Codex internally
311
-
312
- ## Best Practices
313
-
314
- 1. **Use `ax` commands as primary interface**
315
- - `ax run <agent> "task"`
316
- - Not direct `codex` commands
317
-
318
- 2. **Configure multiple providers for resilience**
319
- - Codex (priority 1)
320
- - Gemini (priority 2)
321
- - Claude (priority 3)
322
-
323
- 3. **Monitor provider limits**
324
- - `ax provider-limits`
325
- - Auto-switch prevents disruption
326
-
327
- 4. **Leverage persistent memory**
328
- - Agents remember past conversations
329
- - `ax memory search "keyword"`
330
-
331
- 5. **Use specialized agents**
332
- - Backend, frontend, security, quality, etc.
333
- - Each optimized for specific tasks
334
-
335
- 6. **Enable git repository**
336
- - Codex requires git
337
- - `ax setup` handles this automatically
338
-
339
- ## Documentation Links
340
-
341
- - **Integration Guide**: `CODEX_INTEGRATION.md`
342
- - **Code Examples**: `usage-examples.ts`
343
- - **AutomatosX Docs**: https://github.com/defai-digital/automatosx
344
- - **Codex CLI Docs**: https://docs.openai.com/codex-cli
345
-
346
- ## Support
347
-
348
- - **AutomatosX Issues**: https://github.com/defai-digital/automatosx/issues
349
- - **Codex CLI Issues**: https://github.com/openai/codex-cli/issues