@putao520/aiw 0.5.46 → 0.5.48
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/README.md +27 -21
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
<div align="center">
|
|
4
4
|
|
|
5
|
-

|
|
6
6
|

|
|
7
7
|

|
|
8
8
|

|
|
@@ -89,36 +89,38 @@ aiw auto -p auto "implement feature" # Auto CLI + auto provider
|
|
|
89
89
|
### Auto Mode (Automatic Failover)
|
|
90
90
|
|
|
91
91
|
```bash
|
|
92
|
-
# Auto mode tries
|
|
92
|
+
# Auto mode tries CLI+Provider combinations in configured order, switches on failure
|
|
93
93
|
aiw auto "fix this bug"
|
|
94
94
|
|
|
95
|
-
#
|
|
96
|
-
aiw auto -p openrouter "implement feature"
|
|
97
|
-
|
|
98
|
-
# With auto provider (max compatibility)
|
|
99
|
-
aiw auto -p auto "write tests"
|
|
100
|
-
|
|
101
|
-
# Configure CLI execution order
|
|
95
|
+
# Configure CLI+Provider execution order
|
|
102
96
|
aiw config cli-order # TUI to manage order (↑/↓ move, r reset, q save)
|
|
103
97
|
```
|
|
104
98
|
|
|
105
99
|
**How it works**:
|
|
106
|
-
1. Reads `
|
|
107
|
-
2. Tries each CLI in order (e.g., codex → gemini → claude)
|
|
108
|
-
3.
|
|
109
|
-
4. Switches to next
|
|
100
|
+
1. Reads `auto_execution_order` from `~/.aiw/config.json`
|
|
101
|
+
2. Tries each CLI+Provider combination in order (e.g., codex+auto → gemini+auto → claude+auto)
|
|
102
|
+
3. Judges success/failure by exit code (0 = success)
|
|
103
|
+
4. Switches to next combination if current fails
|
|
104
|
+
5. Failed combinations enter 30-second cooldown period
|
|
110
105
|
|
|
111
106
|
**Configuration** (`~/.aiw/config.json`):
|
|
112
107
|
```json
|
|
113
108
|
{
|
|
114
|
-
"
|
|
109
|
+
"auto_execution_order": [
|
|
110
|
+
{"cli": "codex", "provider": "auto"},
|
|
111
|
+
{"cli": "gemini", "provider": "auto"},
|
|
112
|
+
{"cli": "claude", "provider": "glm"},
|
|
113
|
+
{"cli": "claude", "provider": "local"},
|
|
114
|
+
{"cli": "claude", "provider": "official"}
|
|
115
|
+
]
|
|
115
116
|
}
|
|
116
117
|
```
|
|
117
118
|
|
|
118
|
-
**
|
|
119
|
-
-
|
|
120
|
-
-
|
|
121
|
-
-
|
|
119
|
+
**Features**:
|
|
120
|
+
- Same CLI can be configured with multiple providers (e.g., claude+glm → claude+local → claude+official)
|
|
121
|
+
- Each CLI+Provider combination has independent cooldown (30 seconds after failure)
|
|
122
|
+
- Provider "auto" means use the CLI's default provider selection
|
|
123
|
+
- Order can be fully customized via TUI or direct config editing
|
|
122
124
|
|
|
123
125
|
### Role Injection (-r)
|
|
124
126
|
|
|
@@ -272,14 +274,18 @@ aiw update
|
|
|
272
274
|
```json
|
|
273
275
|
{
|
|
274
276
|
"user_roles_dir": "~/.claude/roles",
|
|
275
|
-
"
|
|
277
|
+
"auto_execution_order": [
|
|
278
|
+
{"cli": "codex", "provider": "auto"},
|
|
279
|
+
{"cli": "gemini", "provider": "auto"},
|
|
280
|
+
{"cli": "claude", "provider": "auto"}
|
|
281
|
+
]
|
|
276
282
|
}
|
|
277
283
|
```
|
|
278
284
|
|
|
279
285
|
| Option | Type | Description |
|
|
280
286
|
|--------|------|-------------|
|
|
281
287
|
| `user_roles_dir` | string | Custom directory for user roles (supports `~` expansion). If set, AIW will load user roles from this directory instead of `~/.aiw/role/` |
|
|
282
|
-
| `
|
|
288
|
+
| `auto_execution_order` | array | CLI+Provider combinations for auto mode. Each entry has `cli` (codex/gemini/claude) and `provider` (provider name or "auto"). Use `aiw config cli-order` TUI to manage |
|
|
283
289
|
|
|
284
290
|
This allows you to manage all your roles in a single location, such as `~/.claude/roles/`, and share them across different tools.
|
|
285
291
|
|
|
@@ -318,6 +324,6 @@ MIT License - see [LICENSE](LICENSE) file for details.
|
|
|
318
324
|
|
|
319
325
|
---
|
|
320
326
|
|
|
321
|
-
**AIW** - Unified Gateway for AI CLI & MCP | v0.5.
|
|
327
|
+
**AIW** - Unified Gateway for AI CLI & MCP | v0.5.48
|
|
322
328
|
|
|
323
329
|
[GitHub](https://github.com/putao520/agentic-warden) | [NPM](https://www.npmjs.com/package/@putao520/aiw)
|