@auto-engineer/server-implementer 0.13.3 → 0.14.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
@@ -17,8 +17,8 @@
17
17
  "debug": "^4.3.4",
18
18
  "fast-glob": "^3.3.3",
19
19
  "vite": "^5.4.1",
20
- "@auto-engineer/ai-gateway": "0.13.3",
21
- "@auto-engineer/message-bus": "0.13.3"
20
+ "@auto-engineer/ai-gateway": "0.14.0",
21
+ "@auto-engineer/message-bus": "0.14.0"
22
22
  },
23
23
  "devDependencies": {
24
24
  "@types/fs-extra": "^11.0.4",
@@ -28,17 +28,13 @@
28
28
  "glob": "^11.0.3",
29
29
  "tsx": "^4.20.3",
30
30
  "typescript": "^5.8.3",
31
- "@auto-engineer/cli": "0.13.3"
31
+ "@auto-engineer/cli": "0.14.0"
32
32
  },
33
- "version": "0.13.3",
33
+ "version": "0.14.0",
34
34
  "scripts": {
35
35
  "build": "tsc && tsx ../../scripts/fix-esm-imports.ts",
36
36
  "test": "vitest run --reporter=dot",
37
- "lint": "eslint 'src/**/*.ts' --max-warnings 0 --config ../../eslint.config.ts",
38
37
  "type-check": "tsc --noEmit",
39
- "format": "prettier --write \"**/*.{js,ts,json,md,yml,yaml}\" --ignore-path ../../.prettierignore --log-level warn",
40
- "lint:fix": "eslint 'src/**/*.ts' --fix --config ../../eslint.config.ts",
41
- "format:fix": "prettier --write \"**/*.{js,ts,json,md,yml,yaml}\" --ignore-path ../../.prettierignore --log-level warn",
42
38
  "link:dev": "pnpm build && pnpm link --global",
43
39
  "unlink:dev": "pnpm unlink --global"
44
40
  }
@@ -1,6 +1,6 @@
1
+ import path from 'node:path';
1
2
  import fg from 'fast-glob';
2
3
  import { runSlice } from './runSlice';
3
- import path from 'path';
4
4
 
5
5
  export async function runAllSlices(flowDir: string): Promise<void> {
6
6
  const flowName = path.basename(flowDir);
@@ -1,7 +1,7 @@
1
+ import path from 'node:path';
2
+ import createDebug from 'debug';
1
3
  import fg from 'fast-glob';
2
- import path from 'path';
3
4
  import { runAllSlices } from './runAllSlices';
4
- import createDebug from 'debug';
5
5
 
6
6
  const debug = createDebug('auto:server-implementer:flows');
7
7
  const debugFlow = createDebug('auto:server-implementer:flows:flow');
@@ -1,8 +1,8 @@
1
- import path from 'path';
2
- import fg from 'fast-glob';
1
+ import { access, readFile, writeFile } from 'node:fs/promises';
2
+ import path from 'node:path';
3
3
  import { generateTextWithAI } from '@auto-engineer/ai-gateway';
4
- import { readFile, writeFile, access } from 'fs/promises';
5
4
  import { execa } from 'execa';
5
+ import fg from 'fast-glob';
6
6
  import { SYSTEM_PROMPT } from '../prompts/systemPrompt';
7
7
  import { extractCodeBlock } from '../utils/extractCodeBlock';
8
8
  import { runTests } from './runTests';
@@ -1,10 +1,9 @@
1
- import path from 'path';
2
- import fg from 'fast-glob';
1
+ import { existsSync } from 'node:fs';
2
+ import { readFile, unlink } from 'node:fs/promises';
3
+ import path from 'node:path';
3
4
  import { execa } from 'execa';
4
- import { existsSync } from 'fs';
5
- import { unlink } from 'fs/promises';
6
- import { readFile } from 'fs/promises';
7
- import { VitestAssertionResult, VitestTestResult } from './runSlice';
5
+ import fg from 'fast-glob';
6
+ import type { VitestAssertionResult, VitestTestResult } from './runSlice';
8
7
 
9
8
  type VitestReport = {
10
9
  testResults?: VitestTestResult[];
@@ -1,8 +1,8 @@
1
- import { type Command, type Event, defineCommandHandler } from '@auto-engineer/message-bus';
2
- import path from 'path';
3
- import { existsSync } from 'fs';
4
- import { runFlows } from '../agent/runFlows';
1
+ import { existsSync } from 'node:fs';
2
+ import path from 'node:path';
3
+ import { type Command, defineCommandHandler, type Event } from '@auto-engineer/message-bus';
5
4
  import createDebug from 'debug';
5
+ import { runFlows } from '../agent/runFlows';
6
6
 
7
7
  const debug = createDebug('auto:server-implementer:command');
8
8
  const debugHandler = createDebug('auto:server-implementer:command:handler');
@@ -1,10 +1,10 @@
1
- import { type Command, type Event, defineCommandHandler } from '@auto-engineer/message-bus';
1
+ import { existsSync } from 'node:fs';
2
+ import { readFile, writeFile } from 'node:fs/promises';
3
+ import path from 'node:path';
2
4
  import { generateTextWithAI } from '@auto-engineer/ai-gateway';
3
- import path from 'path';
4
- import { existsSync } from 'fs';
5
- import { readFile, writeFile } from 'fs/promises';
6
- import fg from 'fast-glob';
5
+ import { type Command, defineCommandHandler, type Event } from '@auto-engineer/message-bus';
7
6
  import createDebug from 'debug';
7
+ import fg from 'fast-glob';
8
8
 
9
9
  const debug = createDebug('auto:server-implementer:slice');
10
10
  const debugHandler = createDebug('auto:server-implementer:slice:handler');
package/src/index.ts CHANGED
@@ -3,16 +3,16 @@ import { commandHandler as implementSliceHandler } from './commands/implement-sl
3
3
 
4
4
  export const COMMANDS = [implementServerHandler, implementSliceHandler];
5
5
  export { implementServerHandler, implementSliceHandler };
6
- export {
7
- type ImplementServerCommand,
8
- type ImplementServerEvents,
9
- type ServerImplementedEvent,
10
- type ServerImplementationFailedEvent,
6
+ export type {
7
+ ImplementServerCommand,
8
+ ImplementServerEvents,
9
+ ServerImplementationFailedEvent,
10
+ ServerImplementedEvent,
11
11
  } from './commands/implement-server';
12
12
  export {
13
13
  handleImplementSliceCommand,
14
14
  type ImplementSliceCommand,
15
15
  type ImplementSliceEvents,
16
- type SliceImplementedEvent,
17
16
  type SliceImplementationFailedEvent,
17
+ type SliceImplementedEvent,
18
18
  } from './commands/implement-slice';