@aiready/agents 0.3.6 → 0.3.8

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.
@@ -1,12 +1,12 @@
1
1
 
2
2
  
3
- > @aiready/agents@0.3.5 test /Users/pengcao/projects/aiready/packages/agents
3
+ > @aiready/agents@0.3.7 test /Users/pengcao/projects/aiready/packages/agents
4
4
  > vitest run
5
5
 
6
6
  [?25l
7
7
   RUN  v4.0.18 /Users/pengcao/projects/aiready/packages/agents
8
8
 
9
- ✓ src/__tests__/smoke.test.ts (1 test) 3ms
9
+ ✓ src/__tests__/smoke.test.ts (1 test) 1ms
10
10
  stdout | src/__tests__/remediation-swarm.test.ts > RemediationSwarm (MCP Powered) > should successfully connect to MCP, execute agent, and parse JSON response
11
11
  [RemediationSwarm] Connecting to MCP servers...
12
12
 
@@ -34,11 +34,11 @@
34
34
  stdout | src/__tests__/remediation-swarm.test.ts > RemediationSwarm (MCP Powered) > should fallback to raw text if agent fails to return valid JSON
35
35
  [RemediationSwarm] Cleaning up MCP connections...
36
36
 
37
- ✓ src/__tests__/remediation-swarm.test.ts (3 tests) 5ms
37
+ ✓ src/__tests__/remediation-swarm.test.ts (3 tests) 3ms
38
38
 
39
39
   Test Files  2 passed (2)
40
40
   Tests  4 passed (4)
41
-  Start at  10:12:50
42
-  Duration  308ms (transform 206ms, setup 0ms, import 251ms, tests 8ms, environment 0ms)
41
+  Start at  23:50:27
42
+  Duration  293ms (transform 86ms, setup 0ms, import 107ms, tests 5ms, environment 0ms)
43
43
 
44
44
  [?25h
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aiready/agents",
3
- "version": "0.3.6",
3
+ "version": "0.3.8",
4
4
  "description": "Agentic remediation and analysis system for AIReady",
5
5
  "main": "index.js",
6
6
  "type": "module",
@@ -10,8 +10,8 @@
10
10
  "@octokit/rest": "^21.0.0",
11
11
  "isomorphic-git": "^1.25.0",
12
12
  "zod": "^4.0.0",
13
- "@aiready/core": "0.23.7",
14
- "@aiready/cli": "0.14.9"
13
+ "@aiready/core": "0.23.9",
14
+ "@aiready/cli": "0.14.11"
15
15
  },
16
16
  "devDependencies": {
17
17
  "@types/node": "^24.0.0",
@@ -11,7 +11,7 @@ export const ImpactAgent = new Agent({
11
11
  Analysis Logic:
12
12
  1. Base Cost: Assume an average developer interacts with this code 20 times/day via AI.
13
13
  2. Token Impact: Calculate token reduction based on "Cognitive Load" and "Context Window" savings.
14
- 3. Model Pricing: Use a blended rate of $10 per 1M tokens (GPT-4o/Claude 3.5 Sonnet average).
14
+ 3. Model Pricing: Use a blended rate of $0.50 per 1M tokens (GPT-5.4-Mini/Gemini 3.1 Pro average).
15
15
  4. Formulas:
16
16
  - MonthlySavings = (TokensSavedPerInteraction * 20 * 22 days) * (Rate / 1,000,000)
17
17
 
@@ -20,7 +20,7 @@ export const ImpactAgent = new Agent({
20
20
  - confidenceScore: number (0.0 to 1.0)
21
21
  - breakdown: string (explanation of the math)
22
22
  `,
23
- model: 'openai/gpt-4o',
23
+ model: 'openai/gpt-5.4-mini',
24
24
  });
25
25
 
26
26
  export const ImpactSchema = z.object({
@@ -17,7 +17,7 @@ export const PrioritizationAgent = new Agent({
17
17
  - rank: 'P0' | 'P1' | 'P2' | 'P3'
18
18
  - reasoning: string explanation of the ranking decision.
19
19
  `,
20
- model: 'openai/gpt-4o',
20
+ model: 'openai/gpt-5.4-mini',
21
21
  });
22
22
 
23
23
  export const PrioritySchema = z.object({
@@ -20,7 +20,7 @@ export const RefactorAgent = new Agent({
20
20
 
21
21
  Return a summary of your actions, including the PR URL and a unified diff of your changes.
22
22
  `,
23
- model: 'openai/gpt-4o',
23
+ model: 'openai/gpt-5.4-mini',
24
24
  tools: {
25
25
  ...githubTools,
26
26
  ...fsTools,
@@ -19,7 +19,7 @@ export const RenameAgent = new Agent({
19
19
  - Propose a mapping of old -> new names.
20
20
  - Execute the rename across all affected files.
21
21
  `,
22
- model: 'openai/gpt-4o',
22
+ model: 'openai/gpt-5.4-mini',
23
23
  });
24
24
 
25
25
  export const RenameResultSchema = z.object({
@@ -18,7 +18,7 @@ export const RestructureAgent = new Agent({
18
18
  - strategy: string (explanation of the architectural vision)
19
19
  - impact: { cognitiveLoadReduction: number (0-100), fragmentationReduction: number (0-100) }
20
20
  `,
21
- model: 'openai/gpt-4o',
21
+ model: 'openai/gpt-5.4-mini',
22
22
  });
23
23
 
24
24
  export const RestructureSchema = z.object({
package/src/risk-agent.ts CHANGED
@@ -20,7 +20,7 @@ export const RiskAssessmentAgent = new Agent({
20
20
  - autoApprove: boolean (true only for 'low' risk)
21
21
  - reasoning: string
22
22
  `,
23
- model: 'openai/gpt-4o',
23
+ model: 'openai/gpt-5.4-mini',
24
24
  });
25
25
 
26
26
  export const RiskSchema = z.object({
@@ -18,7 +18,7 @@ export const ValidationAgent = new Agent({
18
18
  - errors: array of { file: string, message: string, line?: number }
19
19
  - feedbackForRefactor: string (detailed instructions for the RefactorAgent on how to fix these errors)
20
20
  `,
21
- model: 'openai/gpt-4o',
21
+ model: 'openai/gpt-5.4-mini',
22
22
  });
23
23
 
24
24
  export const ValidationSchema = z.object({
@@ -62,7 +62,7 @@ export const RemediationSwarm = {
62
62
  "explanation": "Brief explanation of changes"
63
63
  }
64
64
  `,
65
- model: 'openai/gpt-4o',
65
+ model: 'openai/gpt-5.4-mini',
66
66
  tools: {
67
67
  ...githubTools,
68
68
  ...fsTools,