@defai.digital/automatosx 8.2.0 → 8.3.2
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 +16 -0
- package/README.md +125 -86
- package/dist/index.js +29215 -47804
- package/examples/grok/GROK_INTEGRATION.md +511 -0
- package/examples/grok/settings.json +43 -0
- package/examples/providers/README.md +228 -0
- package/examples/providers/grok-with-mcp.yaml +86 -0
- package/examples/providers/grok-x-ai.yaml +46 -0
- package/examples/providers/grok-z-ai.yaml +50 -0
- package/examples/providers/grok.yaml +120 -0
- package/package.json +4 -3
- package/templates/providers/README.md +117 -0
- package/templates/providers/grok-zai.yaml.template +61 -0
- package/templates/providers/grok.yaml.template +71 -0
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
# Grok Provider Configuration (Z.AI GLM 4.6)
|
|
2
|
+
#
|
|
3
|
+
# This configuration uses Z.AI's GLM 4.6 model (free tier available).
|
|
4
|
+
# GLM 4.6 is optimized for code generation and supports Chinese language.
|
|
5
|
+
#
|
|
6
|
+
# Quick Start:
|
|
7
|
+
# 1. Copy: cp templates/providers/grok-zai.yaml.template .automatosx/providers/grok.yaml
|
|
8
|
+
# 2. Get API key from https://z.ai
|
|
9
|
+
# 3. Add your key to the file (replace YOUR_Z_AI_API_KEY_HERE)
|
|
10
|
+
# 4. Test: ax doctor grok
|
|
11
|
+
|
|
12
|
+
provider:
|
|
13
|
+
# Provider identification
|
|
14
|
+
name: grok
|
|
15
|
+
enabled: true
|
|
16
|
+
priority: 2 # Higher priority (good for free tier)
|
|
17
|
+
|
|
18
|
+
# Z.AI GLM 4.6 API
|
|
19
|
+
baseUrl: https://api.z.ai/api/coding/paas/v4
|
|
20
|
+
model: glm-4.6
|
|
21
|
+
apiKey: YOUR_Z_AI_API_KEY_HERE # Replace with your Z.AI API key
|
|
22
|
+
|
|
23
|
+
# Performance settings
|
|
24
|
+
timeout: 120000 # 2 minutes
|
|
25
|
+
maxRetries: 3
|
|
26
|
+
|
|
27
|
+
# Rate limiting
|
|
28
|
+
rateLimits:
|
|
29
|
+
maxRequestsPerMinute: 60
|
|
30
|
+
maxTokensPerMinute: 100000
|
|
31
|
+
maxConcurrentRequests: 5
|
|
32
|
+
|
|
33
|
+
# Circuit breaker (prevent cascading failures)
|
|
34
|
+
circuitBreaker:
|
|
35
|
+
failureThreshold: 3
|
|
36
|
+
resetTimeout: 60000
|
|
37
|
+
halfOpenTimeout: 30000
|
|
38
|
+
|
|
39
|
+
# Metadata
|
|
40
|
+
metadata:
|
|
41
|
+
version: "1.0.0"
|
|
42
|
+
description: "Z.AI GLM 4.6 configuration for code generation"
|
|
43
|
+
tags:
|
|
44
|
+
- grok
|
|
45
|
+
- z-ai
|
|
46
|
+
- glm-4.6
|
|
47
|
+
- free-tier
|
|
48
|
+
lastUpdated: "2025-11-17T00:00:00Z"
|
|
49
|
+
|
|
50
|
+
# Environment Variable Alternative:
|
|
51
|
+
#
|
|
52
|
+
# Instead of putting your API key in this file, you can use an environment variable:
|
|
53
|
+
#
|
|
54
|
+
# 1. Set environment variable:
|
|
55
|
+
# export GROK_API_KEY="your-z-ai-key"
|
|
56
|
+
# export GROK_BASE_URL="https://api.z.ai/api/coding/paas/v4"
|
|
57
|
+
#
|
|
58
|
+
# 2. Update this file to use environment variable:
|
|
59
|
+
# provider:
|
|
60
|
+
# apiKey: ${GROK_API_KEY}
|
|
61
|
+
# baseUrl: ${GROK_BASE_URL}
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
# Grok Provider Configuration (X.AI Official)
|
|
2
|
+
#
|
|
3
|
+
# This is the default configuration for X.AI's official Grok model.
|
|
4
|
+
# Copy this file to .automatosx/providers/grok.yaml and add your API key.
|
|
5
|
+
#
|
|
6
|
+
# Quick Start:
|
|
7
|
+
# 1. Copy: cp templates/providers/grok.yaml.template .automatosx/providers/grok.yaml
|
|
8
|
+
# 2. Get API key from https://x.ai/api
|
|
9
|
+
# 3. Add your key to the file (replace YOUR_X_AI_API_KEY_HERE)
|
|
10
|
+
# 4. Test: ax doctor grok
|
|
11
|
+
|
|
12
|
+
provider:
|
|
13
|
+
# Provider identification
|
|
14
|
+
name: grok
|
|
15
|
+
enabled: true
|
|
16
|
+
priority: 4 # Default: lowest priority (fallback after claude, gemini, openai)
|
|
17
|
+
|
|
18
|
+
# X.AI Official Grok API
|
|
19
|
+
baseUrl: https://api.x.ai/v1
|
|
20
|
+
model: grok-3-fast
|
|
21
|
+
apiKey: YOUR_X_AI_API_KEY_HERE # Replace with your X.AI API key
|
|
22
|
+
|
|
23
|
+
# Performance settings
|
|
24
|
+
timeout: 180000 # 3 minutes
|
|
25
|
+
maxRetries: 3
|
|
26
|
+
|
|
27
|
+
# Rate limiting
|
|
28
|
+
rateLimits:
|
|
29
|
+
maxRequestsPerMinute: 60
|
|
30
|
+
maxTokensPerMinute: 200000
|
|
31
|
+
maxConcurrentRequests: 5
|
|
32
|
+
|
|
33
|
+
# Circuit breaker (prevent cascading failures)
|
|
34
|
+
circuitBreaker:
|
|
35
|
+
failureThreshold: 3
|
|
36
|
+
resetTimeout: 60000
|
|
37
|
+
halfOpenTimeout: 30000
|
|
38
|
+
|
|
39
|
+
# Metadata
|
|
40
|
+
metadata:
|
|
41
|
+
version: "1.0.0"
|
|
42
|
+
description: "X.AI Official Grok configuration"
|
|
43
|
+
tags:
|
|
44
|
+
- grok
|
|
45
|
+
- x-ai
|
|
46
|
+
- grok-3-fast
|
|
47
|
+
lastUpdated: "2025-11-17T00:00:00Z"
|
|
48
|
+
|
|
49
|
+
# Alternative Configuration: Z.AI GLM 4.6 (Chinese Free Tier)
|
|
50
|
+
#
|
|
51
|
+
# Uncomment the section below to use Z.AI's GLM 4.6 instead of X.AI Grok:
|
|
52
|
+
#
|
|
53
|
+
# provider:
|
|
54
|
+
# name: grok
|
|
55
|
+
# enabled: true
|
|
56
|
+
# priority: 2 # Higher priority for free tier
|
|
57
|
+
# baseUrl: https://api.z.ai/api/coding/paas/v4
|
|
58
|
+
# model: glm-4.6
|
|
59
|
+
# apiKey: YOUR_Z_AI_API_KEY_HERE
|
|
60
|
+
# timeout: 120000
|
|
61
|
+
# maxRetries: 3
|
|
62
|
+
#
|
|
63
|
+
# To use Z.AI:
|
|
64
|
+
# 1. Get API key from https://z.ai
|
|
65
|
+
# 2. Set environment variable: export GROK_BASE_URL="https://api.z.ai/api/coding/paas/v4"
|
|
66
|
+
# 3. Set model in provider section above: model: glm-4.6
|
|
67
|
+
#
|
|
68
|
+
# Z.AI is optimized for:
|
|
69
|
+
# - Code generation
|
|
70
|
+
# - Free tier usage
|
|
71
|
+
# - Chinese language support
|