@defai.digital/automatosx 5.4.2 → 5.6.1

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.
@@ -0,0 +1,114 @@
1
+ # Gemini CLI Integration for AutomatosX
2
+
3
+ This directory contains Gemini CLI custom commands that mirror Claude Code's slash commands.
4
+
5
+ ## Setup
6
+
7
+ When you run `ax init`, these files will be automatically copied to your project's `.gemini/commands/` directory.
8
+
9
+ ## Available Commands
10
+
11
+ **Complete 1:1 mapping with Claude Code commands:**
12
+
13
+ | Gemini CLI | Claude Code | Description |
14
+ |------------|-------------|-------------|
15
+ | `/ax` | `/ax:agent` | Execute any agent |
16
+ | `/ax-agent` | `/ax:agent` | Execute agent (alternative) |
17
+ | `/ax-status` | `/ax:status` | Check system status |
18
+ | `/ax-list` | `/ax:list` | List agents/abilities |
19
+ | `/ax-memory` | `/ax:memory` | Search memory |
20
+ | `/ax-init` | `/ax:init` | Initialize project |
21
+ | `/ax-clear` | `/ax:clear` | Clear memory |
22
+ | `/ax-update` | `/ax:update` | Update AutomatosX |
23
+
24
+ ## Command Syntax
25
+
26
+ **IMPORTANT**: All commands use **comma-separated format** matching Claude Code.
27
+
28
+ ### Format
29
+
30
+ ```
31
+ /ax <agent>, <task>
32
+ ```
33
+
34
+ - Use a **comma** to separate agent name and task
35
+ - Agent name can be either:
36
+ - **Display name** (Bob, Frank, Steve, Queenie, etc.)
37
+ - **Agent ID** (backend, frontend, security, quality, etc.)
38
+
39
+ ## Usage Examples
40
+
41
+ ### Execute Agents
42
+
43
+ ```bash
44
+ # Using display names
45
+ /ax bob, create a REST API for authentication
46
+ /ax frank, build a responsive navbar
47
+ /ax steve, audit this code for security
48
+ /ax queenie, write unit tests
49
+
50
+ # Using agent IDs
51
+ /ax backend, create a REST API
52
+ /ax frontend, build a navbar
53
+ /ax security, audit code
54
+ /ax quality, write tests
55
+ ```
56
+
57
+ ### System Management
58
+
59
+ ```bash
60
+ # Check status
61
+ /ax-status
62
+
63
+ # List resources
64
+ /ax-list agents
65
+ /ax-list abilities
66
+
67
+ # Search memory
68
+ /ax-memory search database
69
+
70
+ # Initialize new project
71
+ /ax-init
72
+
73
+ # Clear memory
74
+ /ax-clear
75
+
76
+ # Update AutomatosX
77
+ /ax-update
78
+ ```
79
+
80
+ ## How It Works
81
+
82
+ 1. `ax init` copies these `.toml` files to `.gemini/commands/`
83
+ 2. Gemini CLI automatically discovers them
84
+ 3. You can use `/command-name` in Gemini CLI
85
+ 4. Commands execute `ax run [agent] "[task]" --provider gemini --timeout 180`
86
+
87
+ ## Adding More Commands
88
+
89
+ To add your own custom commands:
90
+
91
+ 1. Create a `.toml` file in `.gemini/commands/`
92
+ 2. Follow the format in the example files
93
+ 3. Use `{{args}}` as a placeholder for user input
94
+ 4. Test with `/your-command task description`
95
+
96
+ ## Syncing with Gemini CLI
97
+
98
+ ```bash
99
+ # Register AutomatosX MCP server
100
+ ax gemini sync-mcp
101
+
102
+ # List available commands
103
+ ax gemini list-commands
104
+
105
+ # Check integration status
106
+ ax gemini status
107
+ ```
108
+
109
+ ## Notes
110
+
111
+ - Commands automatically use `gemini` provider
112
+ - Default timeout is 180 seconds (3 minutes)
113
+ - You can create custom agents and add commands for them
114
+ - See `examples/gemini/commands/` for more examples
@@ -0,0 +1,35 @@
1
+ name = "ax-agent"
2
+ description = "Execute AutomatosX agents (same as /ax but alternative name)"
3
+ prompt = """
4
+ Execute an AutomatosX agent with a specific task.
5
+
6
+ IMPORTANT: When user types `/ax-agent <agent>, <task>`, you MUST:
7
+
8
+ 1. Split the input on the FIRST comma
9
+ 2. Extract agent name (text before comma, trimmed)
10
+ 3. Extract task (text after comma, trimmed)
11
+ 4. Map display name to agent ID if needed
12
+ 5. Execute: ax run <agent> "<task>" --provider gemini --timeout 180
13
+
14
+ AGENT NAME MAPPING (Display Name → Agent ID):
15
+ - Bob → backend
16
+ - Frank → frontend
17
+ - Steve → security
18
+ - Queenie → quality
19
+ - Oliver → devops
20
+ - Daisy → data
21
+ - Dana → data-scientist
22
+ - Debbee → design
23
+ - Wendy → writer
24
+ - Paris → product
25
+ - Eric → ceo
26
+ - Tony → cto
27
+ - Rodman → researcher
28
+ - Felix → fullstack
29
+ - Maya → mobile
30
+ - Cynthia → creative-marketer
31
+
32
+ User Request: {{args}}
33
+
34
+ Parse the agent and task, then execute the appropriate command.
35
+ """
@@ -0,0 +1,17 @@
1
+ name = "ax-clear"
2
+ description = "Clear AutomatosX memory or sessions"
3
+ prompt = """
4
+ Clear AutomatosX memory or session data.
5
+
6
+ Action: {{args}}
7
+
8
+ If args mentions "memory" or is empty:
9
+ Execute: ax memory clear
10
+
11
+ If args mentions "sessions":
12
+ Execute: ax session clear
13
+
14
+ This will remove stored data to start fresh. Use with caution.
15
+
16
+ Return the confirmation message.
17
+ """
@@ -0,0 +1,24 @@
1
+ name = "ax-init"
2
+ description = "Initialize AutomatosX in a new project"
3
+ prompt = """
4
+ Initialize AutomatosX in the current or specified directory.
5
+
6
+ Directory: {{args}}
7
+
8
+ If args is empty:
9
+ Execute: ax init
10
+
11
+ If args specifies a directory:
12
+ Execute: ax init {{args}}
13
+
14
+ This will:
15
+ - Create .automatosx directory structure
16
+ - Install example agents and abilities
17
+ - Setup configuration files
18
+ - Configure Claude Code integration (.claude/)
19
+ - Configure Gemini CLI integration (.gemini/)
20
+ - Initialize git repository
21
+ - Update .gitignore
22
+
23
+ Return the complete initialization output.
24
+ """
@@ -0,0 +1,14 @@
1
+ name = "ax-list"
2
+ description = "List available AutomatosX agents, abilities, or providers"
3
+ prompt = """
4
+ List AutomatosX resources.
5
+
6
+ Task: {{args}}
7
+
8
+ If args mentions "agents" → Execute: ax list agents
9
+ If args mentions "abilities" → Execute: ax list abilities
10
+ If args mentions "providers" → Execute: ax list providers
11
+ If args is empty → Execute: ax list agents
12
+
13
+ Return the complete output showing all available resources.
14
+ """
@@ -0,0 +1,17 @@
1
+ name = "ax-memory"
2
+ description = "Search and manage AutomatosX agent memory"
3
+ prompt = """
4
+ Search AutomatosX agent memory.
5
+
6
+ Query: {{args}}
7
+
8
+ Execute: ax memory search "{{args}}"
9
+
10
+ This searches the AutomatosX memory database (SQLite FTS5) for relevant information from past agent interactions.
11
+
12
+ Return the search results showing:
13
+ - Matching memory entries
14
+ - Agent that created the memory
15
+ - Timestamp
16
+ - Relevance score
17
+ """
@@ -0,0 +1,16 @@
1
+ name = "ax-status"
2
+ description = "Check AutomatosX system status and configuration"
3
+ prompt = """
4
+ Check the AutomatosX system status.
5
+
6
+ Execute: ax status
7
+
8
+ This will show:
9
+ - System version and Node.js version
10
+ - Project configuration
11
+ - Available providers (Claude, Gemini, OpenAI)
12
+ - Resource counts (agents, abilities, memory)
13
+ - Health status
14
+
15
+ Return the complete output from the status command.
16
+ """
@@ -0,0 +1,27 @@
1
+ name = "ax-update"
2
+ description = "Update AutomatosX to the latest version"
3
+ prompt = """
4
+ Update AutomatosX to the latest version.
5
+
6
+ Options: {{args}}
7
+
8
+ If args is empty:
9
+ Execute: ax update
10
+ (Interactive update with confirmation)
11
+
12
+ If args contains "--check":
13
+ Execute: ax update --check
14
+ (Only check for updates without installing)
15
+
16
+ If args contains "--yes":
17
+ Execute: ax update --yes
18
+ (Update without confirmation prompt)
19
+
20
+ This will:
21
+ 1. Check for the latest version on npm
22
+ 2. Display changelog from GitHub
23
+ 3. Ask for confirmation (unless --yes)
24
+ 4. Install the update globally
25
+
26
+ Return the complete output from the update process.
27
+ """
package/package.json CHANGED
@@ -1,14 +1,15 @@
1
1
  {
2
2
  "name": "@defai.digital/automatosx",
3
- "version": "5.4.2",
3
+ "version": "5.6.1",
4
4
  "description": "AI Agent Orchestration Platform",
5
5
  "type": "module",
6
6
  "publishConfig": {
7
+ "provenance": true,
7
8
  "access": "public"
8
9
  },
9
10
  "bin": {
10
- "automatosx": "./dist/index.js",
11
- "ax": "./dist/index.js"
11
+ "automatosx": "dist/index.js",
12
+ "ax": "dist/index.js"
12
13
  },
13
14
  "engines": {
14
15
  "node": ">=20.0.0"
@@ -67,6 +68,8 @@
67
68
  "vitest": "^3.2.4"
68
69
  },
69
70
  "dependencies": {
71
+ "@anthropic-ai/claude-agent-sdk": "^0.1.21",
72
+ "@iarna/toml": "^2.2.5",
70
73
  "better-sqlite3": "^12.4.1",
71
74
  "boxen": "^8.0.1",
72
75
  "chalk": "^5.6.2",
@@ -102,7 +105,7 @@
102
105
  "license": "Apache-2.0",
103
106
  "repository": {
104
107
  "type": "git",
105
- "url": "https://github.com/defai-digital/automatosx.git"
108
+ "url": "git+https://github.com/defai-digital/automatosx.git"
106
109
  },
107
110
  "bugs": {
108
111
  "url": "https://github.com/defai-digital/automatosx/issues"