@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.
Files changed (2) hide show
  1. package/README.md +27 -21
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  <div align="center">
4
4
 
5
- ![Version](https://img.shields.io/badge/version-0.5.39-blue?style=flat-square)
5
+ ![Version](https://img.shields.io/badge/version-0.5.48-blue?style=flat-square)
6
6
  ![Rust](https://img.shields.io/badge/Rust-1.70+-orange?style=flat-square&logo=rust)
7
7
  ![License](https://img.shields.io/badge/License-MIT-green?style=flat-square)
8
8
  ![MCP](https://img.shields.io/badge/MCP-Supported-purple?style=flat-square)
@@ -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 AI CLIs in configured order, switches on failure
92
+ # Auto mode tries CLI+Provider combinations in configured order, switches on failure
93
93
  aiw auto "fix this bug"
94
94
 
95
- # With specific provider
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 `cli_execution_order` from `~/.aiw/config.json`
107
- 2. Tries each CLI in order (e.g., codex → gemini → claude)
108
- 3. Uses built-in LLM (Ollama) to judge success/failure
109
- 4. Switches to next CLI if current fails (or halts if error is non-retryable)
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
- "cli_execution_order": ["codex", "gemini", "claude"]
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
- **Constraints**:
119
- - Must include all 3 CLIs (codex, gemini, claude)
120
- - Order can be changed but cannot remove/disable CLIs
121
- - LLM judgment is mandatory (no timeout-based fallback)
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
- "cli_execution_order": ["codex", "gemini", "claude"]
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
- | `cli_execution_order` | array | Execution order for auto mode (must include all 3: codex, gemini, claude). Use `aiw config cli-order` TUI to manage |
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.39
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)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@putao520/aiw",
3
- "version": "0.5.46",
3
+ "version": "0.5.48",
4
4
  "description": "Universal AI CLI management platform with intelligent MCP routing, process tracking, and configuration synchronization",
5
5
  "keywords": [
6
6
  "ai",