@auto-engineer/server-implementer 1.138.0 → 1.140.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/.turbo/turbo-build.log +1 -1
- package/.turbo/turbo-test.log +3 -3
- package/.turbo/turbo-type-check.log +1 -1
- package/CHANGELOG.md +39 -0
- package/DEBUG.md +4 -4
- package/README.md +4 -4
- package/dist/src/agent/detectShadowsInSlice.specs.js +6 -6
- package/dist/src/agent/detectShadowsInSlice.specs.js.map +1 -1
- package/dist/src/agent/runAllSlices.d.ts +1 -1
- package/dist/src/agent/runAllSlices.d.ts.map +1 -1
- package/dist/src/agent/runAllSlices.js +7 -7
- package/dist/src/agent/runAllSlices.js.map +1 -1
- package/dist/src/agent/runFlows.d.ts +1 -1
- package/dist/src/agent/runFlows.d.ts.map +1 -1
- package/dist/src/agent/runFlows.js +20 -20
- package/dist/src/agent/runFlows.js.map +1 -1
- package/dist/src/agent/runSlice.d.ts +4 -4
- package/dist/src/agent/runSlice.d.ts.map +1 -1
- package/dist/src/agent/runSlice.js +64 -64
- package/dist/src/agent/runSlice.js.map +1 -1
- package/dist/src/agent/runTests.d.ts +1 -1
- package/dist/src/agent/runTests.d.ts.map +1 -1
- package/dist/src/agent/runTests.js +12 -12
- package/dist/src/agent/runTests.js.map +1 -1
- package/dist/src/commands/implement-server.d.ts +1 -1
- package/dist/src/commands/implement-server.d.ts.map +1 -1
- package/dist/src/commands/implement-server.js +17 -17
- package/dist/src/commands/implement-server.js.map +1 -1
- package/dist/src/commands/implement-slice.d.ts +10 -10
- package/dist/src/commands/implement-slice.d.ts.map +1 -1
- package/dist/src/commands/implement-slice.js +47 -47
- package/dist/src/commands/implement-slice.js.map +1 -1
- package/dist/src/index.d.ts +5 -5
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/index.js +4 -4
- package/dist/src/index.js.map +1 -1
- package/dist/src/prompts/systemPrompt.d.ts +1 -1
- package/dist/src/prompts/systemPrompt.d.ts.map +1 -1
- package/dist/src/prompts/systemPrompt.js +1 -1
- package/dist/src/utils/buildContextSections.js +3 -3
- package/dist/src/utils/buildContextSections.js.map +1 -1
- package/dist/src/utils/buildContextSections.specs.js +6 -6
- package/dist/src/utils/buildContextSections.specs.js.map +1 -1
- package/dist/src/utils/loadContextFiles.d.ts +1 -1
- package/dist/src/utils/loadContextFiles.d.ts.map +1 -1
- package/dist/src/utils/loadContextFiles.js +4 -4
- package/dist/src/utils/loadContextFiles.js.map +1 -1
- package/dist/src/utils/loadContextFiles.specs.js +12 -12
- package/dist/src/utils/loadContextFiles.specs.js.map +1 -1
- package/dist/src/utils/loadSharedContext.d.ts +1 -1
- package/dist/src/utils/loadSharedContext.d.ts.map +1 -1
- package/dist/src/utils/loadSharedContext.js +2 -2
- package/dist/src/utils/loadSharedContext.js.map +1 -1
- package/dist/src/utils/loadSharedContext.specs.js +7 -7
- package/dist/src/utils/loadSharedContext.specs.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +4 -4
- package/src/agent/detectShadowsInSlice.specs.ts +6 -6
- package/src/agent/runAllSlices.ts +7 -7
- package/src/agent/runFlows.ts +21 -21
- package/src/agent/runSlice.ts +65 -65
- package/src/agent/runTests.ts +12 -12
- package/src/commands/implement-server.ts +18 -18
- package/src/commands/implement-slice.ts +73 -71
- package/src/index.ts +8 -8
- package/src/prompts/systemPrompt.ts +1 -1
- package/src/utils/buildContextSections.specs.ts +6 -6
- package/src/utils/buildContextSections.ts +3 -3
- package/src/utils/loadContextFiles.specs.ts +12 -12
- package/src/utils/loadContextFiles.ts +4 -4
- package/src/utils/loadSharedContext.specs.ts +7 -7
- package/src/utils/loadSharedContext.ts +2 -2
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
|
|
2
|
-
> @auto-engineer/server-implementer@1.
|
|
2
|
+
> @auto-engineer/server-implementer@1.140.0 build /home/runner/work/auto-engineer/auto-engineer/packages/server-implementer
|
|
3
3
|
> tsc && tsx ../../scripts/fix-esm-imports.ts
|
|
4
4
|
|
|
5
5
|
Fixed ESM imports in dist/
|
package/.turbo/turbo-test.log
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
|
|
2
|
-
> @auto-engineer/server-implementer@1.
|
|
2
|
+
> @auto-engineer/server-implementer@1.139.0 test /home/runner/work/auto-engineer/auto-engineer/packages/server-implementer
|
|
3
3
|
> vitest run --reporter=dot
|
|
4
4
|
|
|
5
5
|
|
|
@@ -9,6 +9,6 @@
|
|
|
9
9
|
|
|
10
10
|
[2m Test Files [22m [1m[32m7 passed[39m[22m[90m (7)[39m
|
|
11
11
|
[2m Tests [22m [1m[32m46 passed[39m[22m[90m (46)[39m
|
|
12
|
-
[2m Start at [22m
|
|
13
|
-
[2m Duration [22m 14.
|
|
12
|
+
[2m Start at [22m 06:30:41
|
|
13
|
+
[2m Duration [22m 14.83s[2m (transform 1.45s, setup 0ms, collect 26.49s, tests 1.44s, environment 2ms, prepare 5.29s)[22m
|
|
14
14
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
|
|
2
|
-
> @auto-engineer/server-implementer@1.
|
|
2
|
+
> @auto-engineer/server-implementer@1.139.0 type-check /home/runner/work/auto-engineer/auto-engineer/packages/server-implementer
|
|
3
3
|
> tsc --noEmit
|
|
4
4
|
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,44 @@
|
|
|
1
1
|
# @auto-engineer/server-implementer
|
|
2
2
|
|
|
3
|
+
## 1.140.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [`2b1315d`](https://github.com/BeOnAuto/auto-engineer/commit/2b1315d27aa7fbb5137f098c174b7b1daebbb821) Thanks [@github-actions[bot]](https://github.com/github-actions%5Bbot%5D)! - - **react-gen**: domain-aware theming, flexible layouts, chain-of-thought color selection
|
|
8
|
+
- **global**: version packages
|
|
9
|
+
|
|
10
|
+
### Patch Changes
|
|
11
|
+
|
|
12
|
+
- [`26e5682`](https://github.com/BeOnAuto/auto-engineer/commit/26e56821d984838ba3720baca89c74fc012357c5) Thanks [@SamHatoum](https://github.com/SamHatoum)! - - Renamed core entity hierarchy: Journey→Narrative, Narrative→Scene, Slice→Moment for clearer domain language
|
|
13
|
+
- Updated DSL functions and schemas to match new naming (narrative(), scene(), moment())
|
|
14
|
+
- Server-generated directory structure now uses narrative-prefixed paths under domain/narratives
|
|
15
|
+
- Narratives are now required on Model and auto-populated by assembleSpecs
|
|
16
|
+
- Updated dependencies [[`2b1315d`](https://github.com/BeOnAuto/auto-engineer/commit/2b1315d27aa7fbb5137f098c174b7b1daebbb821), [`26e5682`](https://github.com/BeOnAuto/auto-engineer/commit/26e56821d984838ba3720baca89c74fc012357c5)]:
|
|
17
|
+
- @auto-engineer/message-bus@1.140.0
|
|
18
|
+
- @auto-engineer/model-factory@1.140.0
|
|
19
|
+
|
|
20
|
+
## 1.139.0
|
|
21
|
+
|
|
22
|
+
### Minor Changes
|
|
23
|
+
|
|
24
|
+
- [`2451a60`](https://github.com/BeOnAuto/auto-engineer/commit/2451a6024eeec4787b6cd5be965e25a8fc147363) Thanks [@github-actions[bot]](https://github.com/github-actions%5Bbot%5D)! - - **react-gen**: simplify interaction rules and prevent duplicate nav header
|
|
25
|
+
- **react-gen**: add specific micro-interaction patterns for cards, buttons, and stat elements
|
|
26
|
+
- **react-gen**: reduce overfitting by offering layout pattern choices instead of mandating one
|
|
27
|
+
- **react-gen**: enhance landing page feature previews and dark CTA footer
|
|
28
|
+
- **react-gen**: add nav CTA button and enforce stat cards on query pages
|
|
29
|
+
|
|
30
|
+
- [`e78f764`](https://github.com/BeOnAuto/auto-engineer/commit/e78f7640fa34a7feb76837e37d082b4a69cd4ce1) Thanks [@osamanar](https://github.com/osamanar)! - - Domain-aware theming with chain-of-thought color selection that analyzes the domain before picking brand-appropriate colors
|
|
31
|
+
- Flexible layouts and persona-driven design for landing and narrative pages, replacing rigid templates
|
|
32
|
+
- Configurable environment variables for model path, schema path, and output directory
|
|
33
|
+
- Added pet adoption sample model for comparison testing
|
|
34
|
+
- Fixed duplicate navigation header rendering
|
|
35
|
+
|
|
36
|
+
### Patch Changes
|
|
37
|
+
|
|
38
|
+
- Updated dependencies [[`2451a60`](https://github.com/BeOnAuto/auto-engineer/commit/2451a6024eeec4787b6cd5be965e25a8fc147363), [`e78f764`](https://github.com/BeOnAuto/auto-engineer/commit/e78f7640fa34a7feb76837e37d082b4a69cd4ce1)]:
|
|
39
|
+
- @auto-engineer/message-bus@1.139.0
|
|
40
|
+
- @auto-engineer/model-factory@1.139.0
|
|
41
|
+
|
|
3
42
|
## 1.138.0
|
|
4
43
|
|
|
5
44
|
### Minor Changes
|
package/DEBUG.md
CHANGED
|
@@ -40,7 +40,7 @@ Output example:
|
|
|
40
40
|
server-impl:cli CLI started with args: [ './server' ]
|
|
41
41
|
server-impl:cli Server root argument: ./server
|
|
42
42
|
server-impl:cli Resolved server root: /Users/project/server
|
|
43
|
-
server-impl:cli Flows directory: /Users/project/server/src/domain/
|
|
43
|
+
server-impl:cli Flows directory: /Users/project/server/src/domain/narratives
|
|
44
44
|
server-impl:cli Flows directory exists, starting flow runner
|
|
45
45
|
server-impl:cli Flow runner completed
|
|
46
46
|
```
|
|
@@ -54,7 +54,7 @@ DEBUG=server-impl:flows pnpm implement:server
|
|
|
54
54
|
Output example:
|
|
55
55
|
|
|
56
56
|
```
|
|
57
|
-
server-impl:flows Running flows from base directory: /Users/project/server/src/domain/
|
|
57
|
+
server-impl:flows Running flows from base directory: /Users/project/server/src/domain/narratives
|
|
58
58
|
server-impl:flows Found 3 flow directories
|
|
59
59
|
server-impl:flows Flow directories: [ 'shopping-assistant', 'order-management', 'user-profile' ]
|
|
60
60
|
server-impl:flows All 3 flows processed successfully
|
|
@@ -70,10 +70,10 @@ Output example:
|
|
|
70
70
|
|
|
71
71
|
```
|
|
72
72
|
server-impl:flows:flow Processing flow: shopping-assistant
|
|
73
|
-
server-impl:flows:flow Path: /Users/project/server/src/domain/
|
|
73
|
+
server-impl:flows:flow Path: /Users/project/server/src/domain/narratives/shopping-assistant
|
|
74
74
|
server-impl:flows:flow Flow shopping-assistant completed successfully
|
|
75
75
|
server-impl:flows:flow Processing flow: order-management
|
|
76
|
-
server-impl:flows:flow Path: /Users/project/server/src/domain/
|
|
76
|
+
server-impl:flows:flow Path: /Users/project/server/src/domain/narratives/order-management
|
|
77
77
|
server-impl:flows:flow Flow order-management completed successfully
|
|
78
78
|
```
|
|
79
79
|
|
package/README.md
CHANGED
|
@@ -47,7 +47,7 @@ console.log(result);
|
|
|
47
47
|
// → { type: 'ServerImplemented', data: { serverDirectory: './server' } }
|
|
48
48
|
```
|
|
49
49
|
|
|
50
|
-
The command processes all flows in `src/domain/
|
|
50
|
+
The command processes all flows in `src/domain/narratives/` and implements TODO-marked files.
|
|
51
51
|
|
|
52
52
|
---
|
|
53
53
|
|
|
@@ -57,7 +57,7 @@ The command processes all flows in `src/domain/flows/` and implements TODO-marke
|
|
|
57
57
|
|
|
58
58
|
```bash
|
|
59
59
|
auto implement:server --server-directory=./server
|
|
60
|
-
auto implement:slice --slice-path=./server/src/domain/
|
|
60
|
+
auto implement:slice --slice-path=./server/src/domain/narratives/order/place-order
|
|
61
61
|
```
|
|
62
62
|
|
|
63
63
|
### Run Programmatically
|
|
@@ -68,7 +68,7 @@ import { handleImplementSliceCommand } from '@auto-engineer/server-implementer';
|
|
|
68
68
|
const result = await handleImplementSliceCommand({
|
|
69
69
|
type: 'ImplementSlice',
|
|
70
70
|
data: {
|
|
71
|
-
slicePath: './server/src/domain/
|
|
71
|
+
slicePath: './server/src/domain/narratives/order/place-order',
|
|
72
72
|
aiOptions: { maxTokens: 4000 },
|
|
73
73
|
},
|
|
74
74
|
requestId: 'req-123',
|
|
@@ -81,7 +81,7 @@ const result = await handleImplementSliceCommand({
|
|
|
81
81
|
const retryResult = await handleImplementSliceCommand({
|
|
82
82
|
type: 'ImplementSlice',
|
|
83
83
|
data: {
|
|
84
|
-
slicePath: './server/src/domain/
|
|
84
|
+
slicePath: './server/src/domain/narratives/order/place-order',
|
|
85
85
|
context: {
|
|
86
86
|
previousOutputs: 'TypeError: Property "status" is missing...',
|
|
87
87
|
attemptNumber: 2,
|
|
@@ -2,8 +2,8 @@ import { mkdtemp, rm, writeFile } from 'node:fs/promises';
|
|
|
2
2
|
import { tmpdir } from 'node:os';
|
|
3
3
|
import path from 'node:path';
|
|
4
4
|
import { afterEach, beforeEach, describe, expect, it } from 'vitest';
|
|
5
|
-
import {
|
|
6
|
-
describe('
|
|
5
|
+
import { detectShadowsInMoment } from './runSlice.js';
|
|
6
|
+
describe('detectShadowsInMoment', () => {
|
|
7
7
|
let tempDir;
|
|
8
8
|
beforeEach(async () => {
|
|
9
9
|
tempDir = await mkdtemp(path.join(tmpdir(), 'shadow-test-'));
|
|
@@ -13,12 +13,12 @@ describe('detectShadowsInSlice', () => {
|
|
|
13
13
|
});
|
|
14
14
|
it('returns empty results for clean files', async () => {
|
|
15
15
|
await writeFile(path.join(tempDir, 'projection.ts'), `import type { MyState } from './state.js';\nconst x = 1;\n`);
|
|
16
|
-
const result = await
|
|
16
|
+
const result = await detectShadowsInMoment(tempDir);
|
|
17
17
|
expect(result).toEqual({ errors: '', failedFiles: [] });
|
|
18
18
|
});
|
|
19
19
|
it('detects shadow in a file and returns error with file path', async () => {
|
|
20
20
|
await writeFile(path.join(tempDir, 'projection.ts'), `import type { MyState } from './state.js';\ntype MyState = { name: string };\n`);
|
|
21
|
-
const result = await
|
|
21
|
+
const result = await detectShadowsInMoment(tempDir);
|
|
22
22
|
expect(result).toEqual({
|
|
23
23
|
errors: 'CONTRACT VIOLATION in projection.ts: Types [MyState] are imported but redefined locally. Remove local definitions and use the imports.',
|
|
24
24
|
failedFiles: [path.join(tempDir, 'projection.ts')],
|
|
@@ -26,13 +26,13 @@ describe('detectShadowsInSlice', () => {
|
|
|
26
26
|
});
|
|
27
27
|
it('ignores spec files', async () => {
|
|
28
28
|
await writeFile(path.join(tempDir, 'projection.specs.ts'), `import type { MyState } from './state.js';\ntype MyState = { name: string };\n`);
|
|
29
|
-
const result = await
|
|
29
|
+
const result = await detectShadowsInMoment(tempDir);
|
|
30
30
|
expect(result).toEqual({ errors: '', failedFiles: [] });
|
|
31
31
|
});
|
|
32
32
|
it('reports multiple files with shadows', async () => {
|
|
33
33
|
await writeFile(path.join(tempDir, 'a.ts'), `import type { Alpha } from './types.js';\ntype Alpha = { x: number };\n`);
|
|
34
34
|
await writeFile(path.join(tempDir, 'b.ts'), `import type { Beta } from './types.js';\ninterface Beta { y: string }\n`);
|
|
35
|
-
const result = await
|
|
35
|
+
const result = await detectShadowsInMoment(tempDir);
|
|
36
36
|
expect(result.failedFiles).toEqual([path.join(tempDir, 'a.ts'), path.join(tempDir, 'b.ts')]);
|
|
37
37
|
expect(result.errors).toContain('CONTRACT VIOLATION in a.ts');
|
|
38
38
|
expect(result.errors).toContain('CONTRACT VIOLATION in b.ts');
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"detectShadowsInSlice.specs.js","sourceRoot":"","sources":["../../../src/agent/detectShadowsInSlice.specs.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,EAAE,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAC1D,OAAO,EAAE,MAAM,EAAE,MAAM,SAAS,CAAC;AACjC,OAAO,IAAI,MAAM,WAAW,CAAC;AAC7B,OAAO,EAAE,SAAS,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,QAAQ,CAAC;AACrE,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"detectShadowsInSlice.specs.js","sourceRoot":"","sources":["../../../src/agent/detectShadowsInSlice.specs.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,EAAE,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAC1D,OAAO,EAAE,MAAM,EAAE,MAAM,SAAS,CAAC;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ir: string): Promise<void>;
|
|
2
2
|
//# sourceMappingURL=runAllSlices.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"runAllSlices.d.ts","sourceRoot":"","sources":["../../../src/agent/runAllSlices.ts"],"names":[],"mappings":"AAIA,wBAAsB,
|
|
1
|
+
{"version":3,"file":"runAllSlices.d.ts","sourceRoot":"","sources":["../../../src/agent/runAllSlices.ts"],"names":[],"mappings":"AAIA,wBAAsB,aAAa,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAOnE"}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import path from 'node:path';
|
|
2
2
|
import fg from 'fast-glob';
|
|
3
|
-
import {
|
|
4
|
-
export async function
|
|
5
|
-
const
|
|
6
|
-
const
|
|
7
|
-
for (const
|
|
8
|
-
await
|
|
3
|
+
import { runMoment } from './runSlice.js';
|
|
4
|
+
export async function runAllMoments(sceneDir) {
|
|
5
|
+
const sceneName = path.basename(sceneDir);
|
|
6
|
+
const momentDirs = await fg(`${sceneDir}/**/*/`, { onlyDirectories: true });
|
|
7
|
+
for (const momentDir of momentDirs) {
|
|
8
|
+
await runMoment(momentDir, sceneName);
|
|
9
9
|
}
|
|
10
|
-
console.log('✅ All
|
|
10
|
+
console.log('✅ All moments processed');
|
|
11
11
|
}
|
|
12
12
|
//# sourceMappingURL=runAllSlices.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"runAllSlices.js","sourceRoot":"","sources":["../../../src/agent/runAllSlices.ts"],"names":[],"mappings":"AAAA,OAAO,IAAI,MAAM,WAAW,CAAC;AAC7B,OAAO,EAAE,MAAM,WAAW,CAAC;AAC3B,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"runAllSlices.js","sourceRoot":"","sources":["../../../src/agent/runAllSlices.ts"],"names":[],"mappings":"AAAA,OAAO,IAAI,MAAM,WAAW,CAAC;AAC7B,OAAO,EAAE,MAAM,WAAW,CAAC;AAC3B,OAAO,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAEvC,MAAM,CAAC,KAAK,UAAU,aAAa,CAAC,QAAgB;IAClD,MAAM,SAAS,GAAG,IAAI,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAAC;IAC1C,MAAM,UAAU,GAAG,MAAM,EAAE,CAAC,GAAG,QAAQ,QAAQ,EAAE,EAAE,eAAe,EAAE,IAAI,EAAE,CAAC,CAAC;IAC5E,KAAK,MAAM,SAAS,IAAI,UAAU,EAAE,CAAC;QACnC,MAAM,SAAS,CAAC,SAAS,EAAE,SAAS,CAAC,CAAC;IACxC,CAAC;IACD,OAAO,CAAC,GAAG,CAAC,yBAAyB,CAAC,CAAC;AACzC,CAAC"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare function
|
|
1
|
+
export declare function runScenes(baseDir: string): Promise<void>;
|
|
2
2
|
//# sourceMappingURL=runFlows.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"runFlows.d.ts","sourceRoot":"","sources":["../../../src/agent/runFlows.ts"],"names":[],"mappings":"AAQA,wBAAsB,
|
|
1
|
+
{"version":3,"file":"runFlows.d.ts","sourceRoot":"","sources":["../../../src/agent/runFlows.ts"],"names":[],"mappings":"AAQA,wBAAsB,SAAS,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAoC9D"}
|
|
@@ -1,36 +1,36 @@
|
|
|
1
1
|
import path from 'node:path';
|
|
2
2
|
import createDebug from 'debug';
|
|
3
3
|
import fg from 'fast-glob';
|
|
4
|
-
import {
|
|
5
|
-
const debug = createDebug('auto:server-implementer:
|
|
6
|
-
const
|
|
7
|
-
export async function
|
|
8
|
-
debug('Running
|
|
9
|
-
const
|
|
4
|
+
import { runAllMoments } from './runAllSlices.js';
|
|
5
|
+
const debug = createDebug('auto:server-implementer:scenes');
|
|
6
|
+
const debugScene = createDebug('auto:server-implementer:scenes:scene');
|
|
7
|
+
export async function runScenes(baseDir) {
|
|
8
|
+
debug('Running scenes from base directory: %s', baseDir);
|
|
9
|
+
const sceneDirs = await fg('*', {
|
|
10
10
|
cwd: baseDir,
|
|
11
11
|
onlyDirectories: true,
|
|
12
12
|
absolute: true,
|
|
13
13
|
});
|
|
14
|
-
debug('Found %d
|
|
15
|
-
if (
|
|
16
|
-
debug('
|
|
14
|
+
debug('Found %d scene directories', sceneDirs.length);
|
|
15
|
+
if (sceneDirs.length > 0) {
|
|
16
|
+
debug('Scene directories: %o', sceneDirs.map((d) => path.basename(d)));
|
|
17
17
|
}
|
|
18
|
-
console.log(`🚀 Found ${
|
|
19
|
-
for (const
|
|
20
|
-
const
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
console.log(`📂 Processing
|
|
18
|
+
console.log(`🚀 Found ${sceneDirs.length} scenes`);
|
|
19
|
+
for (const sceneDir of sceneDirs) {
|
|
20
|
+
const sceneName = path.basename(sceneDir);
|
|
21
|
+
debugScene('Processing scene: %s', sceneName);
|
|
22
|
+
debugScene(' Path: %s', sceneDir);
|
|
23
|
+
console.log(`📂 Processing scene: ${sceneName}`);
|
|
24
24
|
try {
|
|
25
|
-
await
|
|
26
|
-
|
|
25
|
+
await runAllMoments(sceneDir);
|
|
26
|
+
debugScene('Scene %s completed successfully', sceneName);
|
|
27
27
|
}
|
|
28
28
|
catch (error) {
|
|
29
|
-
|
|
29
|
+
debugScene('ERROR: Scene %s failed: %O', sceneName, error);
|
|
30
30
|
throw error;
|
|
31
31
|
}
|
|
32
32
|
}
|
|
33
|
-
debug('All %d
|
|
34
|
-
console.log('✅ All
|
|
33
|
+
debug('All %d scenes processed successfully', sceneDirs.length);
|
|
34
|
+
console.log('✅ All scenes processed');
|
|
35
35
|
}
|
|
36
36
|
//# sourceMappingURL=runFlows.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"runFlows.js","sourceRoot":"","sources":["../../../src/agent/runFlows.ts"],"names":[],"mappings":"AAAA,OAAO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AC;QAC9C,UAAU,CAAC,YAAY,EAAE,QAAQ,CAAC,CAAC;QAEnC,OAAO,CAAC,GAAG,CAAC,wBAAwB,SAAS,EAAE,CAAC,CAAC;QAEjD,IAAI,CAAC;YACH,MAAM,aAAa,CAAC,QAAQ,CAAC,CAAC;YAC9B,UAAU,CAAC,iCAAiC,EAAE,SAAS,CAAC,CAAC;QAC3D,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YACf,UAAU,CAAC,4BAA4B,EAAE,SAAS,EAAE,KAAK,CAAC,CAAC;YAC3D,MAAM,KAAK,CAAC;QACd,CAAC;IACH,CAAC;IAED,KAAK,CAAC,sCAAsC,EAAE,SAAS,CAAC,MAAM,CAAC,CAAC;IAChE,OAAO,CAAC,GAAG,CAAC,wBAAwB,CAAC,CAAC;AACxC,CAAC"}
|
|
@@ -16,13 +16,13 @@ export type VitestTestResult = {
|
|
|
16
16
|
status: string;
|
|
17
17
|
assertionResults: VitestAssertionResult[];
|
|
18
18
|
};
|
|
19
|
-
export declare function
|
|
20
|
-
export declare function runTestsAndTypecheck(
|
|
21
|
-
export declare function
|
|
19
|
+
export declare function runMoment(momentDir: string, scene: string): Promise<void>;
|
|
20
|
+
export declare function runTestsAndTypecheck(momentDir: string): Promise<TestAndTypecheckResult>;
|
|
21
|
+
export declare function detectShadowsInMoment(momentDir: string): Promise<{
|
|
22
22
|
errors: string;
|
|
23
23
|
failedFiles: string[];
|
|
24
24
|
}>;
|
|
25
|
-
export declare function
|
|
25
|
+
export declare function detectAssertionsInMoment(momentDir: string): Promise<{
|
|
26
26
|
errors: string;
|
|
27
27
|
failedFiles: string[];
|
|
28
28
|
}>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"runSlice.d.ts","sourceRoot":"","sources":["../../../src/agent/runSlice.ts"],"names":[],"mappings":"AAeA,KAAK,sBAAsB,GAAG;IAC5B,OAAO,EAAE,OAAO,CAAC;IACjB,eAAe,EAAE,MAAM,EAAE,CAAC;IAC1B,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