@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.
- package/.turbo/turbo-test.log +5 -5
- package/package.json +3 -3
- package/src/impact-agent.ts +2 -2
- package/src/prioritization-agent.ts +1 -1
- package/src/refactor-agent.ts +1 -1
- package/src/rename-agent.ts +1 -1
- package/src/restructure-agent.ts +1 -1
- package/src/risk-agent.ts +1 -1
- package/src/validation-agent.ts +1 -1
- package/src/workflows/remediation-swarm.ts +1 -1
package/.turbo/turbo-test.log
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
|
|
2
2
|
|
|
3
|
-
> @aiready/agents@0.3.
|
|
3
|
+
> @aiready/agents@0.3.7 test /Users/pengcao/projects/aiready/packages/agents
|
|
4
4
|
> vitest run
|
|
5
5
|
|
|
6
6
|
[?25l
|
|
7
7
|
[1m[46m RUN [49m[22m [36mv4.0.18 [39m[90m/Users/pengcao/projects/aiready/packages/agents[39m
|
|
8
8
|
|
|
9
|
-
[32m✓[39m src/__tests__/smoke.test.ts [2m([22m[2m1 test[22m[2m)[22m[32m
|
|
9
|
+
[32m✓[39m src/__tests__/smoke.test.ts [2m([22m[2m1 test[22m[2m)[22m[32m 1[2mms[22m[39m
|
|
10
10
|
[90mstdout[2m | src/__tests__/remediation-swarm.test.ts[2m > [22m[2mRemediationSwarm (MCP Powered)[2m > [22m[2mshould successfully connect to MCP, execute agent, and parse JSON response
|
|
11
11
|
[22m[39m[RemediationSwarm] Connecting to MCP servers...
|
|
12
12
|
|
|
@@ -34,11 +34,11 @@
|
|
|
34
34
|
[90mstdout[2m | src/__tests__/remediation-swarm.test.ts[2m > [22m[2mRemediationSwarm (MCP Powered)[2m > [22m[2mshould fallback to raw text if agent fails to return valid JSON
|
|
35
35
|
[22m[39m[RemediationSwarm] Cleaning up MCP connections...
|
|
36
36
|
|
|
37
|
-
[32m✓[39m src/__tests__/remediation-swarm.test.ts [2m([22m[2m3 tests[22m[2m)[22m[32m
|
|
37
|
+
[32m✓[39m src/__tests__/remediation-swarm.test.ts [2m([22m[2m3 tests[22m[2m)[22m[32m 3[2mms[22m[39m
|
|
38
38
|
|
|
39
39
|
[2m Test Files [22m [1m[32m2 passed[39m[22m[90m (2)[39m
|
|
40
40
|
[2m Tests [22m [1m[32m4 passed[39m[22m[90m (4)[39m
|
|
41
|
-
[2m Start at [22m
|
|
42
|
-
[2m Duration [22m
|
|
41
|
+
[2m Start at [22m 23:50:27
|
|
42
|
+
[2m Duration [22m 293ms[2m (transform 86ms, setup 0ms, import 107ms, tests 5ms, environment 0ms)[22m
|
|
43
43
|
|
|
44
44
|
[?25h
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aiready/agents",
|
|
3
|
-
"version": "0.3.
|
|
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.
|
|
14
|
-
"@aiready/cli": "0.14.
|
|
13
|
+
"@aiready/core": "0.23.9",
|
|
14
|
+
"@aiready/cli": "0.14.11"
|
|
15
15
|
},
|
|
16
16
|
"devDependencies": {
|
|
17
17
|
"@types/node": "^24.0.0",
|
package/src/impact-agent.ts
CHANGED
|
@@ -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 $
|
|
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-
|
|
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-
|
|
20
|
+
model: 'openai/gpt-5.4-mini',
|
|
21
21
|
});
|
|
22
22
|
|
|
23
23
|
export const PrioritySchema = z.object({
|
package/src/refactor-agent.ts
CHANGED
package/src/rename-agent.ts
CHANGED
package/src/restructure-agent.ts
CHANGED
|
@@ -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-
|
|
21
|
+
model: 'openai/gpt-5.4-mini',
|
|
22
22
|
});
|
|
23
23
|
|
|
24
24
|
export const RestructureSchema = z.object({
|
package/src/risk-agent.ts
CHANGED
package/src/validation-agent.ts
CHANGED
|
@@ -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-
|
|
21
|
+
model: 'openai/gpt-5.4-mini',
|
|
22
22
|
});
|
|
23
23
|
|
|
24
24
|
export const ValidationSchema = z.object({
|