@defai.digital/automatosx 11.2.5 → 11.2.7

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 (31) hide show
  1. package/README.md +1 -1
  2. package/dist/index.js +546 -465
  3. package/dist/mcp/index.js +243 -173
  4. package/examples/providers/README.md +58 -169
  5. package/package.json +1 -1
  6. package/CHANGELOG.md +0 -41
  7. package/CODE_OF_CONDUCT.md +0 -133
  8. package/CONTRIBUTING.md +0 -427
  9. package/FAQ.md +0 -895
  10. package/TROUBLESHOOTING.md +0 -972
  11. package/templates/providers/README.md +0 -117
  12. /package/examples/{claude → providers/claude}/CLAUDE_INTEGRATION.md +0 -0
  13. /package/examples/{claude → providers/claude}/mcp/automatosx.json +0 -0
  14. /package/examples/{codex → providers/codex}/CODEX_INTEGRATION.md +0 -0
  15. /package/examples/{codex → providers/codex}/README.md +0 -0
  16. /package/examples/{codex → providers/codex}/usage-examples.ts +0 -0
  17. /package/examples/{gemini → providers/gemini}/GEMINI_INTEGRATION.md +0 -0
  18. /package/examples/{gemini → providers/gemini}/README.md +0 -0
  19. /package/examples/{integrations → providers}/openai-codex-example.ts +0 -0
  20. /package/{templates → examples}/specs/enterprise.yaml.mustache +0 -0
  21. /package/{templates → examples}/specs/government.yaml.mustache +0 -0
  22. /package/{templates → examples}/specs/minimal.yaml.mustache +0 -0
  23. /package/examples/{templates → workflows}/analyst.yaml +0 -0
  24. /package/examples/{templates → workflows}/assistant.yaml +0 -0
  25. /package/examples/{templates → workflows}/basic-agent.yaml +0 -0
  26. /package/examples/{templates → workflows}/code-reviewer.yaml +0 -0
  27. /package/examples/{templates → workflows}/debugger.yaml +0 -0
  28. /package/examples/{templates → workflows}/designer.yaml +0 -0
  29. /package/examples/{templates → workflows}/developer.yaml +0 -0
  30. /package/examples/{templates → workflows}/fullstack-developer.yaml +0 -0
  31. /package/examples/{templates → workflows}/qa-specialist.yaml +0 -0
@@ -1,117 +1,85 @@
1
- # Provider Configuration Examples
1
+ # Provider Configuration Templates
2
2
 
3
- This directory contains example YAML configurations for AutomatosX providers.
3
+ This directory contains YAML templates for configuring AI providers in AutomatosX.
4
4
 
5
- ## Available Examples
5
+ ## Available Templates
6
6
 
7
7
  ### Grok Provider
8
8
 
9
- - **`grok-z-ai.yaml`** - Z.AI GLM 4.6 (code-optimized model)
10
- - Best for: Development, code generation, technical tasks
11
- - Endpoint: `https://api.z.ai/api/coding/paas/v4`
12
- - Model: `glm-4.6`
9
+ **1. X.AI Official Grok** (`grok.yaml.template`)
10
+ - **Model**: `grok-3-fast`
11
+ - **Endpoint**: `https://api.x.ai/v1`
12
+ - **Best for**: General AI tasks, reasoning, analysis
13
+ - **API Key**: Get from https://x.ai/api
14
+ - **Cost**: Paid API (check X.AI pricing)
13
15
 
14
- - **`grok-x-ai.yaml`** - X.AI Official Grok Model
15
- - Best for: Reasoning, analysis, general chat
16
- - Endpoint: `https://api.x.ai/v1`
17
- - Model: `grok-beta`
18
-
19
- - **`grok-with-mcp.yaml`** - Grok with MCP Tools
20
- - Includes: Filesystem, GitHub, Slack, PostgreSQL integrations
21
- - Demonstrates: Model Context Protocol (MCP) setup
22
- - Requires: MCP server packages installed
23
-
24
- ### Multi-Provider Setup
25
-
26
- - **`multi-provider.yaml`** - Complete multi-provider configuration
27
- - Demonstrates: Priority-based routing
28
- - Includes: Claude, Gemini, Grok configurations
29
- - Shows: Automatic fallback setup
16
+ **2. Z.AI GLM 4.6** (`grok-zai.yaml.template`)
17
+ - **Model**: `glm-4.6`
18
+ - **Endpoint**: `https://api.z.ai/api/coding/paas/v4`
19
+ - **Best for**: Code generation, Chinese language support
20
+ - **API Key**: Get from https://z.ai
21
+ - **Cost**: Free tier available
30
22
 
31
23
  ## Quick Start
32
24
 
33
- ### 1. Choose a Template
25
+ ### Using X.AI Grok
34
26
 
35
27
  ```bash
36
- # List available examples
37
- ls examples/providers/
28
+ # 1. Copy template
29
+ cp templates/providers/grok.yaml.template .automatosx/providers/grok.yaml
38
30
 
39
- # View example
40
- cat examples/providers/grok-z-ai.yaml
41
- ```
42
-
43
- ### 2. Copy to Your Project
44
-
45
- ```bash
46
- # Create providers directory
47
- mkdir -p .automatosx/providers
31
+ # 2. Edit the file and add your API key
32
+ # Replace: YOUR_X_AI_API_KEY_HERE
33
+ # With: xai-your-actual-api-key
48
34
 
49
- # Copy template
50
- cp examples/providers/grok-z-ai.yaml .automatosx/providers/grok.yaml
35
+ # 3. Test configuration
36
+ ax doctor grok
51
37
  ```
52
38
 
53
- ### 3. Set Environment Variables
39
+ ### Using Z.AI GLM 4.6
54
40
 
55
41
  ```bash
56
- # For Z.AI
57
- export GROK_API_KEY="your-z-ai-key"
58
-
59
- # For X.AI
60
- export GROK_API_KEY="xai-your-key"
61
-
62
- # For MCP tools (if using)
63
- export GITHUB_TOKEN="your-github-token"
64
- ```
42
+ # 1. Copy template
43
+ cp templates/providers/grok-zai.yaml.template .automatosx/providers/grok.yaml
65
44
 
66
- ### 4. Test Configuration
45
+ # 2. Edit the file and add your API key
46
+ # Replace: YOUR_Z_AI_API_KEY_HERE
47
+ # With: your-actual-z-ai-key
67
48
 
68
- ```bash
69
- # Check provider status
49
+ # 3. Test configuration
70
50
  ax doctor grok
71
-
72
- # Test execution
73
- ax run --provider grok backend "simple task"
74
51
  ```
75
52
 
76
53
  ## Configuration Priority
77
54
 
78
- When using multiple providers, AutomatosX routes requests based on priority:
79
-
80
- ```yaml
81
- # .automatosx/providers/claude.yaml
82
- provider:
83
- priority: 1 # ← Highest priority (tried first)
55
+ You can adjust the provider priority to control routing order:
84
56
 
85
- # .automatosx/providers/gemini.yaml
86
- provider:
87
- priority: 2 # Medium priority
57
+ - **Priority 1** - Highest (tried first)
58
+ - **Priority 2** - High
59
+ - **Priority 3** - Medium
60
+ - **Priority 4** - Low (fallback)
88
61
 
89
- # .automatosx/providers/grok.yaml
62
+ Example:
63
+ ```yaml
90
64
  provider:
91
- priority: 3 # Lowest priority (fallback)
65
+ priority: 2 # Try Grok after OpenAI but before Gemini/Claude
92
66
  ```
93
67
 
94
- **Routing behavior:**
95
- 1. Try highest priority provider (1)
96
- 2. If unavailable/failed → try next (2)
97
- 3. If all fail → try lowest priority (3)
98
- 4. If all exhausted → return error
68
+ ## Environment Variables
99
69
 
100
- ## Environment Variable Interpolation
101
-
102
- All examples use `${VAR_NAME}` syntax for environment variables:
70
+ Instead of hardcoding API keys, use environment variables:
103
71
 
104
72
  ```yaml
105
73
  provider:
106
- apiKey: ${GROK_API_KEY} # ← Replaced at runtime
107
- baseUrl: https://${API_HOST}/v1 # ← Supports multiple vars
74
+ apiKey: ${GROK_API_KEY}
75
+ baseUrl: ${GROK_BASE_URL}
108
76
  ```
109
77
 
110
- **Benefits:**
111
- - ✅ Keep secrets out of version control
112
- - ✅ Easy environment switching (dev/staging/prod)
113
- - ✅ Works with CI/CD pipelines
114
- - ✅ Compatible with `.env` files
78
+ Set environment variables:
79
+ ```bash
80
+ export GROK_API_KEY="your-key"
81
+ export GROK_BASE_URL="https://api.x.ai/v1"
82
+ ```
115
83
 
116
84
  ## Customization
117
85
 
@@ -119,110 +87,31 @@ provider:
119
87
 
120
88
  ```yaml
121
89
  rateLimits:
122
- maxRequestsPerMinute: 120 # Increase for higher quota
123
- maxTokensPerMinute: 200000 # ← Adjust based on plan
124
- maxConcurrentRequests: 10 # ← More parallel requests
90
+ maxRequestsPerMinute: 120 # Increase for higher quota
91
+ maxTokensPerMinute: 400000
125
92
  ```
126
93
 
127
94
  ### Modify Timeouts
128
95
 
129
96
  ```yaml
130
97
  provider:
131
- timeout: 300000 # 5 minutes for complex tasks
98
+ timeout: 300000 # 5 minutes for complex tasks
132
99
  ```
133
100
 
134
- ### Add Circuit Breaker
135
-
136
- ```yaml
137
- circuitBreaker:
138
- failureThreshold: 5 # ← More tolerant
139
- resetTimeout: 120000 # ← Longer cooldown
140
- ```
141
-
142
- ## Advanced Features
143
-
144
- ### MCP Tools
145
-
146
- Enable Model Context Protocol for extended capabilities:
101
+ ### Enable/Disable Provider
147
102
 
148
103
  ```yaml
149
- mcp:
150
- enabled: true
151
- servers:
152
- - name: filesystem
153
- command: npx
154
- args: ["-y", "@modelcontextprotocol/server-filesystem", "/path"]
155
- ```
156
-
157
- **Available MCP Servers:**
158
- - `@modelcontextprotocol/server-filesystem` - File operations
159
- - `@modelcontextprotocol/server-github` - GitHub API
160
- - `@modelcontextprotocol/server-slack` - Slack integration
161
- - `@modelcontextprotocol/server-postgres` - Database access
162
-
163
- ### Custom Morph Agents
164
-
165
- Define specialized agents in configuration:
166
-
167
- ```yaml
168
- morph:
169
- enabled: true
170
- agents:
171
- - name: security-auditor
172
- prompt: "Analyze code for security vulnerabilities"
173
- capabilities: ["security", "audit"]
174
- ```
175
-
176
- ## Troubleshooting
177
-
178
- ### Provider Not Found
179
-
180
- ```bash
181
- # Check file exists
182
- ls -la .automatosx/providers/grok.yaml
183
-
184
- # Verify provider name
185
- cat .automatosx/providers/grok.yaml | grep "name:"
186
- # Should show: name: grok
187
- ```
188
-
189
- ### Environment Variable Not Set
190
-
191
- ```bash
192
- # Check variable
193
- echo $GROK_API_KEY
194
-
195
- # Set if missing
196
- export GROK_API_KEY="your-key"
197
-
198
- # Make persistent (add to ~/.bashrc or ~/.zshrc)
199
- echo 'export GROK_API_KEY="your-key"' >> ~/.bashrc
200
- source ~/.bashrc
201
- ```
202
-
203
- ### YAML Syntax Error
204
-
205
- ```bash
206
- # Validate YAML
207
- yamllint .automatosx/providers/grok.yaml
208
-
209
- # Or use online validator
210
- # https://www.yamllint.com/
104
+ provider:
105
+ enabled: true # or false to disable
211
106
  ```
212
107
 
213
- ## Documentation
214
-
215
- - **Full Documentation**: [docs/providers/grok.md](../../docs/providers/grok.md)
216
- - **AutomatosX Docs**: [README.md](../../README.md)
217
- - **Z.AI Docs**: https://docs.z.ai
218
- - **X.AI Docs**: https://x.ai/api
219
-
220
108
  ## Support
221
109
 
222
- - GitHub Issues: https://github.com/defai-digital/automatosx/issues
223
- - Email: support@defai.digital
110
+ - **Documentation**: See [docs/providers/grok.md](../../docs/providers/grok.md)
111
+ - **Examples**: See [examples/providers/](../../examples/providers/)
112
+ - **Issues**: https://github.com/defai-digital/automatosx/issues
224
113
 
225
114
  ---
226
115
 
227
- **Version**: 8.3.0
228
- **Last Updated**: 2025-11-16
116
+ **Version**: 8.3.1
117
+ **Last Updated**: 2025-11-17
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@defai.digital/automatosx",
3
- "version": "11.2.5",
3
+ "version": "11.2.7",
4
4
  "description": "Provider-agnostic AI orchestration platform with 20+ specialized agents, persistent memory, and multi-provider routing for Claude Code, Gemini CLI, Codex CLI, and ax-cli",
5
5
  "type": "module",
6
6
  "publishConfig": {
package/CHANGELOG.md DELETED
@@ -1,41 +0,0 @@
1
- # Changelog
2
-
3
- All notable changes to AutomatosX will be documented in this file.
4
-
5
- The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
6
- and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
-
8
- ## [11.0.1] - 2025-12-02
9
-
10
- ### Added - AI-Assisted Orchestration Platform Release
11
-
12
- AutomatosX v11.0.1 - Production-ready AI Agent Orchestration Platform.
13
-
14
- #### Core Features
15
- - **Workflow Templates**: YAML-based workflow templates with `--workflow` flag for iterate mode
16
- - **Spec-Kit Generators**: Auto-generate plans, DAGs, scaffolds, and tests (`ax gen` commands)
17
- - **Pure CLI Wrapper**: Seamlessly wraps around `claude`, `gemini`, `codex`, `ax-cli` CLIs
18
- - **Persistent Memory**: SQLite FTS5 full-text search with < 1ms response time
19
- - **20+ Specialized Agents**: Autonomous task delegation across specialized domains
20
- - **Token-Based Budget Control**: Reliable budget management using token limits
21
- - **Complete JSONL Observability**: Full trace logging for every execution decision
22
-
23
- #### Platform Support
24
- - macOS 26.0+
25
- - Windows 10+
26
- - Ubuntu 24.04+
27
- - Node.js >= 24.0.0
28
-
29
- #### Providers Supported
30
- - Claude Code (Anthropic)
31
- - Gemini CLI (Google)
32
- - OpenAI Codex
33
- - ax-cli (GLM, xAI, Ollama)
34
-
35
- ### Changed
36
- - Simplified documentation by removing legacy version references
37
- - Streamlined CLAUDE.md and integration guides
38
-
39
- ---
40
-
41
- For complete version history prior to v11.0.0, see git commit history.
@@ -1,133 +0,0 @@
1
- # Contributor Covenant Code of Conduct
2
-
3
- ## Our Pledge
4
-
5
- We as members, contributors, and leaders pledge to make participation in our
6
- community a harassment-free experience for everyone, regardless of age, body
7
- size, visible or invisible disability, ethnicity, sex characteristics, gender
8
- identity and expression, level of experience, education, socio-economic status,
9
- nationality, personal appearance, race, caste, color, religion, or sexual
10
- identity and orientation.
11
-
12
- We pledge to act and interact in ways that contribute to an open, welcoming,
13
- diverse, inclusive, and healthy community.
14
-
15
- ## Our Standards
16
-
17
- Examples of behavior that contributes to a positive environment for our
18
- community include:
19
-
20
- * Demonstrating empathy and kindness toward other people
21
- * Being respectful of differing opinions, viewpoints, and experiences
22
- * Giving and gracefully accepting constructive feedback
23
- * Accepting responsibility and apologizing to those affected by our mistakes,
24
- and learning from the experience
25
- * Focusing on what is best not just for us as individuals, but for the overall
26
- community
27
-
28
- Examples of unacceptable behavior include:
29
-
30
- * The use of sexualized language or imagery, and sexual attention or advances of
31
- any kind
32
- * Trolling, insulting or derogatory comments, and personal or political attacks
33
- * Public or private harassment
34
- * Publishing others' private information, such as a physical or email address,
35
- without their explicit permission
36
- * Other conduct which could reasonably be considered inappropriate in a
37
- professional setting
38
-
39
- ## Enforcement Responsibilities
40
-
41
- Community leaders are responsible for clarifying and enforcing our standards of
42
- acceptable behavior and will take appropriate and fair corrective action in
43
- response to any behavior that they deem inappropriate, threatening, offensive,
44
- or harmful.
45
-
46
- Community leaders have the right and responsibility to remove, edit, or reject
47
- comments, commits, code, wiki edits, issues, and other contributions that are
48
- not aligned to this Code of Conduct, and will communicate reasons for moderation
49
- decisions when appropriate.
50
-
51
- ## Scope
52
-
53
- This Code of Conduct applies within all community spaces, and also applies when
54
- an individual is officially representing the community in public spaces.
55
- Examples of representing our community include using an official email address,
56
- posting via an official social media account, or acting as an appointed
57
- representative at an online or offline event.
58
-
59
- ## Enforcement
60
-
61
- Instances of abusive, harassing, or otherwise unacceptable behavior may be
62
- reported to the community leaders responsible for enforcement at
63
- [support@defai.digital](mailto:support@defai.digital).
64
-
65
- All complaints will be reviewed and investigated promptly and fairly.
66
-
67
- All community leaders are obligated to respect the privacy and security of the
68
- reporter of any incident.
69
-
70
- ## Enforcement Guidelines
71
-
72
- Community leaders will follow these Community Impact Guidelines in determining
73
- the consequences for any action they deem in violation of this Code of Conduct:
74
-
75
- ### 1. Correction
76
-
77
- **Community Impact**: Use of inappropriate language or other behavior deemed
78
- unprofessional or unwelcome in the community.
79
-
80
- **Consequence**: A private, written warning from community leaders, providing
81
- clarity around the nature of the violation and an explanation of why the
82
- behavior was inappropriate. A public apology may be requested.
83
-
84
- ### 2. Warning
85
-
86
- **Community Impact**: A violation through a single incident or series of
87
- actions.
88
-
89
- **Consequence**: A warning with consequences for continued behavior. No
90
- interaction with the people involved, including unsolicited interaction with
91
- those enforcing the Code of Conduct, for a specified period of time. This
92
- includes avoiding interactions in community spaces as well as external channels
93
- like social media. Violating these terms may lead to a temporary or permanent
94
- ban.
95
-
96
- ### 3. Temporary Ban
97
-
98
- **Community Impact**: A serious violation of community standards, including
99
- sustained inappropriate behavior.
100
-
101
- **Consequence**: A temporary ban from any sort of interaction or public
102
- communication with the community for a specified period of time. No public or
103
- private interaction with the people involved, including unsolicited interaction
104
- with those enforcing the Code of Conduct, is allowed during this period.
105
- Violating these terms may lead to a permanent ban.
106
-
107
- ### 4. Permanent Ban
108
-
109
- **Community Impact**: Demonstrating a pattern of violation of community
110
- standards, including sustained inappropriate behavior, harassment of an
111
- individual, or aggression toward or disparagement of classes of individuals.
112
-
113
- **Consequence**: A permanent ban from any sort of public interaction within the
114
- community.
115
-
116
- ## Attribution
117
-
118
- This Code of Conduct is adapted from the [Contributor Covenant][homepage],
119
- version 2.1, available at
120
- [https://www.contributor-covenant.org/version/2/1/code_of_conduct.html][v2.1].
121
-
122
- Community Impact Guidelines were inspired by
123
- [Mozilla's code of conduct enforcement ladder][Mozilla CoC].
124
-
125
- For answers to common questions about this code of conduct, see the FAQ at
126
- [https://www.contributor-covenant.org/faq][FAQ]. Translations are available at
127
- [https://www.contributor-covenant.org/translations][translations].
128
-
129
- [homepage]: https://www.contributor-covenant.org
130
- [v2.1]: https://www.contributor-covenant.org/version/2/1/code_of_conduct.html
131
- [Mozilla CoC]: https://github.com/mozilla/diversity
132
- [FAQ]: https://www.contributor-covenant.org/faq
133
- [translations]: https://www.contributor-covenant.org/translations