@aiready/agents 0.3.3 → 0.3.4
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 +6 -6
- package/package.json +7 -7
- package/src/impact-agent.ts +2 -1
- package/src/prioritization-agent.ts +2 -1
- package/src/refactor-agent.ts +2 -1
- package/src/rename-agent.ts +2 -1
- package/src/restructure-agent.ts +2 -1
- package/src/risk-agent.ts +2 -1
- package/src/tools/github.ts +6 -6
- package/src/validation-agent.ts +2 -1
- package/src/workflows/remediation-swarm.ts +1 -1
package/.turbo/turbo-test.log
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
|
|
2
2
|
|
|
3
|
-
> @aiready/agents@0.3.
|
|
3
|
+
> @aiready/agents@0.3.3 test /Users/pengcao/projects/aiready/packages/agents
|
|
4
4
|
> vitest run
|
|
5
5
|
|
|
6
|
+
[?25l
|
|
7
|
+
[1m[46m RUN [49m[22m [36mv4.0.18 [39m[90m/Users/pengcao/projects/aiready/packages/agents[39m
|
|
6
8
|
|
|
7
|
-
[
|
|
8
|
-
|
|
9
|
-
[32m✓[39m src/__tests__/smoke.test.ts [2m ([22m[2m1 test[22m[2m)[22m[90m 2[2mms[22m[39m
|
|
9
|
+
[32m✓[39m src/__tests__/smoke.test.ts [2m([22m[2m1 test[22m[2m)[22m[32m 1[2mms[22m[39m
|
|
10
10
|
|
|
11
11
|
[2m Test Files [22m [1m[32m1 passed[39m[22m[90m (1)[39m
|
|
12
12
|
[2m Tests [22m [1m[32m1 passed[39m[22m[90m (1)[39m
|
|
13
|
-
[2m Start at [22m
|
|
14
|
-
[2m Duration [22m
|
|
13
|
+
[2m Start at [22m 10:36:36
|
|
14
|
+
[2m Duration [22m 217ms[2m (transform 23ms, setup 0ms, import 29ms, tests 1ms, environment 0ms)[22m
|
|
15
15
|
|
|
16
16
|
[?25h
|
package/package.json
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aiready/agents",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.4",
|
|
4
4
|
"description": "Agentic remediation and analysis system for AIReady",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"dependencies": {
|
|
8
|
-
"@mastra/core": "^0.
|
|
9
|
-
"zod": "^
|
|
10
|
-
"@aiready/core": "0.23.
|
|
11
|
-
"@aiready/cli": "0.14.
|
|
8
|
+
"@mastra/core": "^1.0.0",
|
|
9
|
+
"zod": "^4.0.0",
|
|
10
|
+
"@aiready/core": "0.23.4",
|
|
11
|
+
"@aiready/cli": "0.14.5"
|
|
12
12
|
},
|
|
13
13
|
"devDependencies": {
|
|
14
14
|
"typescript": "^5.0.0",
|
|
15
|
-
"vitest": "^
|
|
16
|
-
"@types/node": "^
|
|
15
|
+
"vitest": "^4.0.0",
|
|
16
|
+
"@types/node": "^24.0.0"
|
|
17
17
|
},
|
|
18
18
|
"scripts": {
|
|
19
19
|
"test": "vitest run",
|
package/src/impact-agent.ts
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import { Agent } from '@mastra/core';
|
|
1
|
+
import { Agent } from '@mastra/core/agent';
|
|
2
2
|
import { z } from 'zod';
|
|
3
3
|
|
|
4
4
|
export const ImpactAgent = new Agent({
|
|
5
|
+
id: 'impact-agent',
|
|
5
6
|
name: 'Impact Agent',
|
|
6
7
|
instructions: `
|
|
7
8
|
You are a financial analyst for AI infrastructure.
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import { Agent } from '@mastra/core';
|
|
1
|
+
import { Agent } from '@mastra/core/agent';
|
|
2
2
|
import { z } from 'zod';
|
|
3
3
|
|
|
4
4
|
export const PrioritizationAgent = new Agent({
|
|
5
|
+
id: 'prioritization-agent',
|
|
5
6
|
name: 'Prioritization Agent',
|
|
6
7
|
instructions: `
|
|
7
8
|
You are a strategic technical debt manager. Your goal is to rank remediation tasks based on their Return on Investment (ROI).
|
package/src/refactor-agent.ts
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import { Agent } from '@mastra/core';
|
|
1
|
+
import { Agent } from '@mastra/core/agent';
|
|
2
2
|
import { z } from 'zod';
|
|
3
3
|
|
|
4
4
|
export const RefactorAgent = new Agent({
|
|
5
|
+
id: 'refactor-agent',
|
|
5
6
|
name: 'Refactor Agent',
|
|
6
7
|
instructions: `
|
|
7
8
|
You are an expert full-stack engineer specialized in code consolidation and refactoring.
|
package/src/rename-agent.ts
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import { Agent } from '@mastra/core';
|
|
1
|
+
import { Agent } from '@mastra/core/agent';
|
|
2
2
|
import { z } from 'zod';
|
|
3
3
|
|
|
4
4
|
export const RenameAgent = new Agent({
|
|
5
|
+
id: 'rename-agent',
|
|
5
6
|
name: 'Rename Agent',
|
|
6
7
|
instructions: `
|
|
7
8
|
You are a linguistics and domain-modeling expert specialized in software engineering.
|
package/src/restructure-agent.ts
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import { Agent } from '@mastra/core';
|
|
1
|
+
import { Agent } from '@mastra/core/agent';
|
|
2
2
|
import { z } from 'zod';
|
|
3
3
|
|
|
4
4
|
export const RestructureAgent = new Agent({
|
|
5
|
+
id: 'restructure-agent',
|
|
5
6
|
name: 'Restructure Agent',
|
|
6
7
|
instructions: `
|
|
7
8
|
You are an expert Software Architect specialized in AI-Ready codebases.
|
package/src/risk-agent.ts
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import { Agent } from '@mastra/core';
|
|
1
|
+
import { Agent } from '@mastra/core/agent';
|
|
2
2
|
import { z } from 'zod';
|
|
3
3
|
|
|
4
4
|
export const RiskAssessmentAgent = new Agent({
|
|
5
|
+
id: 'risk-assessment-agent',
|
|
5
6
|
name: 'Risk Assessment Agent',
|
|
6
7
|
instructions: `
|
|
7
8
|
You are an expert software architect specialized in analyzing the risk of automated code refactorings.
|
package/src/tools/github.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { createTool } from '@mastra/core';
|
|
1
|
+
import { createTool } from '@mastra/core/tools';
|
|
2
2
|
import { z } from 'zod';
|
|
3
3
|
|
|
4
4
|
// Note: In a real implementation, this would use Octokit with appropriate auth
|
|
@@ -15,14 +15,14 @@ export const githubTools = {
|
|
|
15
15
|
success: z.boolean(),
|
|
16
16
|
branchUrl: z.string().optional(),
|
|
17
17
|
}),
|
|
18
|
-
execute: async (
|
|
18
|
+
execute: async (input) => {
|
|
19
19
|
console.log(
|
|
20
|
-
`[GitHubTool] Creating branch ${
|
|
20
|
+
`[GitHubTool] Creating branch ${input.branchName} from ${input.baseBranch}`
|
|
21
21
|
);
|
|
22
22
|
// Mock implementation
|
|
23
23
|
return {
|
|
24
24
|
success: true,
|
|
25
|
-
branchUrl: `https://github.com/placeholder/${
|
|
25
|
+
branchUrl: `https://github.com/placeholder/${input.branchName}`,
|
|
26
26
|
};
|
|
27
27
|
},
|
|
28
28
|
}),
|
|
@@ -42,8 +42,8 @@ export const githubTools = {
|
|
|
42
42
|
prNumber: z.number().optional(),
|
|
43
43
|
prUrl: z.string().optional(),
|
|
44
44
|
}),
|
|
45
|
-
execute: async (
|
|
46
|
-
console.log(`[GitHubTool] Creating PR: ${
|
|
45
|
+
execute: async (input) => {
|
|
46
|
+
console.log(`[GitHubTool] Creating PR: ${input.title}`);
|
|
47
47
|
// Mock implementation
|
|
48
48
|
return {
|
|
49
49
|
success: true,
|
package/src/validation-agent.ts
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import { Agent } from '@mastra/core';
|
|
1
|
+
import { Agent } from '@mastra/core/agent';
|
|
2
2
|
import { z } from 'zod';
|
|
3
3
|
|
|
4
4
|
export const ValidationAgent = new Agent({
|
|
5
|
+
id: 'validation-agent',
|
|
5
6
|
name: 'Validation Agent',
|
|
6
7
|
instructions: `
|
|
7
8
|
You are a Senior QA Automation Engineer and Type System Expert.
|