@amitdeshmukh/ax-crew 8.1.0 → 8.2.0

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.
@@ -2,7 +2,10 @@
2
2
  "permissions": {
3
3
  "allow": [
4
4
  "Bash(npm test:*)",
5
- "Bash(git push:*)"
5
+ "Bash(git push:*)",
6
+ "Bash(git status:*)",
7
+ "Bash(node:*)",
8
+ "Bash(npm version:*)"
6
9
  ]
7
10
  }
8
11
  }
package/README.md CHANGED
@@ -50,7 +50,7 @@ const config = {
50
50
  crew: [{
51
51
  name: "Planner",
52
52
  description: "Creates a plan to complete a task",
53
- executionMode: "axagent", // "axagent" | "axgen"
53
+ executionMode: "axgen", // "axagent" | "axgen"
54
54
  signature: "task:string \"a task to be completed\" -> plan:string \"a plan to execute the task\"",
55
55
  provider: "google-gemini",
56
56
  providerKeyName: "GEMINI_API_KEY",
@@ -127,7 +127,7 @@ Key TypeScript features:
127
127
  - **Functions (tools)**: Register callable functions via a registry and reference by name in agent `functions`.
128
128
  - **State**: `crew.state.set/get/getAll()` shared across all agents.
129
129
  - **Persona**: Use `definition` (preferred) or `prompt` to set the system program. If both are present, `definition` wins.
130
- - **Execution mode**: Set `executionMode` to `axagent` (default) or `axgen` per agent.
130
+ - **Execution mode**: Set `executionMode` to `axgen` (default) or `axagent` per agent.
131
131
  - **Streaming**: Use `streamingForward()` for token streams.
132
132
  - **Metrics**: Per‑agent `getMetrics()` + crew‑level `getCrewMetrics()` snapshots.
133
133
 
@@ -190,8 +190,8 @@ Add either field to any agent config. The chosen value becomes the Ax agent's un
190
190
 
191
191
  Each agent can run in one of two execution modes supported by AxLLM:
192
192
 
193
- - `axagent` (default): Uses AxAgent capabilities.
194
- - `axgen`: Uses AxGen capabilities.
193
+ - `axgen` (default): Uses AxGen capabilities.
194
+ - `axagent`: Uses AxAgent capabilities.
195
195
 
196
196
  Set mode in config:
197
197
 
@@ -174,7 +174,7 @@ const parseAgentConfig = async (agentName, crewConfig, functions, state, options
174
174
  // Add MCP functions to functions
175
175
  ...mcpFunctions
176
176
  ];
177
- const executionMode = agentConfigData.executionMode === 'axgen' ? 'axgen' : 'axagent';
177
+ const executionMode = agentConfigData.executionMode === 'axagent' ? 'axagent' : 'axgen';
178
178
  // Return AI instance and Agent parameters
179
179
  return {
180
180
  ai: aiInstance,
@@ -88,7 +88,7 @@ class StatefulAxAgent extends AxAgent {
88
88
  this.axai = ai;
89
89
  this.agentName = options.name;
90
90
  this.agentDefinition = effectiveDefinition;
91
- this.executionMode = options.executionMode ?? "axagent";
91
+ this.executionMode = options.executionMode ?? "axgen";
92
92
  this.debugEnabled = debug ?? false;
93
93
  this.axGenProgram = new AxGen(options.signature, {
94
94
  description: effectiveDefinition,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "type": "module",
3
3
  "name": "@amitdeshmukh/ax-crew",
4
- "version": "8.1.0",
4
+ "version": "8.2.0",
5
5
  "description": "Build and launch a crew of AI agents with shared state. Built with axllm.dev",
6
6
  "main": "dist/index.js",
7
7
  "types": "dist/index.d.ts",
@@ -208,7 +208,7 @@ const parseAgentConfig = async (
208
208
  ];
209
209
 
210
210
  const executionMode: AgentExecutionMode =
211
- agentConfigData.executionMode === 'axgen' ? 'axgen' : 'axagent';
211
+ agentConfigData.executionMode === 'axagent' ? 'axagent' : 'axgen';
212
212
 
213
213
  // Return AI instance and Agent parameters
214
214
  return {
@@ -161,7 +161,7 @@ class StatefulAxAgent extends AxAgent<any, any> {
161
161
  this.axai = ai;
162
162
  this.agentName = options.name;
163
163
  this.agentDefinition = effectiveDefinition;
164
- this.executionMode = options.executionMode ?? "axagent";
164
+ this.executionMode = options.executionMode ?? "axgen";
165
165
  this.debugEnabled = debug ?? false;
166
166
  this.axGenProgram = new AxGen(options.signature as any, {
167
167
  description: effectiveDefinition,