@auto-engineer/component-implementor-react 1.105.0 → 1.106.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.
package/package.json CHANGED
@@ -6,13 +6,13 @@
6
6
  "dependencies": {
7
7
  "ai": "^6.0.0",
8
8
  "debug": "^4.4.1",
9
- "@auto-engineer/message-bus": "1.105.0",
10
- "@auto-engineer/model-factory": "1.105.0"
9
+ "@auto-engineer/message-bus": "1.106.0",
10
+ "@auto-engineer/model-factory": "1.106.0"
11
11
  },
12
12
  "devDependencies": {
13
13
  "vitest": "^3.2.1"
14
14
  },
15
- "version": "1.105.0",
15
+ "version": "1.106.0",
16
16
  "publishConfig": {
17
17
  "access": "public"
18
18
  },
@@ -90,6 +90,8 @@ describe('implement-component', () => {
90
90
  '/project/client/src/components/ui/MyButton.tsx',
91
91
  '/project/client/src/components/ui/MyButton.stories.tsx',
92
92
  ],
93
+ targetDir: '/project/client',
94
+ job: makeCommand().data.job,
93
95
  },
94
96
  timestamp: expect.any(Date),
95
97
  requestId: 'req-1',
@@ -319,6 +321,8 @@ describe('implement-component', () => {
319
321
  expect.stringContaining('TaskFormInput.test.tsx'),
320
322
  expect.stringContaining('TaskFormInput.stories.tsx'),
321
323
  ]),
324
+ targetDir: '/project/client',
325
+ job: command.data.job,
322
326
  },
323
327
  timestamp: expect.any(Date),
324
328
  requestId: 'req-1',
@@ -41,7 +41,7 @@ type ComponentJobPayload = {
41
41
  }>;
42
42
  };
43
43
 
44
- type ComponentJob = {
44
+ export type ComponentJob = {
45
45
  id: string;
46
46
  dependsOn: string[];
47
47
  target: 'ImplementComponent';
@@ -53,6 +53,7 @@ export type ImplementComponentCommand = Command<
53
53
  {
54
54
  targetDir: string;
55
55
  job: ComponentJob;
56
+ context?: { previousOutputs?: string; attemptNumber?: number };
56
57
  }
57
58
  >;
58
59
 
@@ -64,6 +65,8 @@ export type ComponentImplementedEvent = Event<
64
65
  testPath: string;
65
66
  storyPath: string;
66
67
  filesCreated: string[];
68
+ targetDir: string;
69
+ job: ComponentJob;
67
70
  }
68
71
  >;
69
72
 
@@ -267,6 +270,8 @@ export async function handleImplementComponent(
267
270
  testPath,
268
271
  storyPath,
269
272
  filesCreated: [testPath, componentPath, storyPath],
273
+ targetDir,
274
+ job,
270
275
  },
271
276
  timestamp: new Date(),
272
277
  requestId: command.requestId,
package/src/index.ts CHANGED
@@ -5,6 +5,7 @@ export { implementComponentHandler };
5
5
  export type {
6
6
  ComponentImplementationFailedEvent,
7
7
  ComponentImplementedEvent,
8
+ ComponentJob,
8
9
  ImplementComponentCommand,
9
10
  ImplementComponentEvents,
10
11
  } from './commands/implement-component';