@auto-engineer/generate-react-client 1.39.0 → 1.41.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/CHANGELOG.md CHANGED
@@ -1,5 +1,68 @@
1
1
  # @auto-engineer/generate-react-client
2
2
 
3
+ ## 1.41.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [`849fa10`](https://github.com/BeOnAuto/auto-engineer/commit/849fa106edffe48f2ac58f2fdb6ca66062fcebe7) Thanks [@SamHatoum](https://github.com/SamHatoum)! - - **server-generator**: wire InitializeServer into COMMANDS and pipeline
8
+
9
+ - [`8d37de6`](https://github.com/BeOnAuto/auto-engineer/commit/8d37de62e624d74be42f327d17386d79be005e57) Thanks [@SamHatoum](https://github.com/SamHatoum)! - - **server-generator**: preserve health resolver after cleanServerDir
10
+
11
+ - [`68df8c9`](https://github.com/BeOnAuto/auto-engineer/commit/68df8c92ea0f15f9cd225e9a313be54ae9eaa301) Thanks [@github-actions[bot]](https://github.com/github-actions%5Bbot%5D)! - - **generate-react-client**: add HMR stability settings to prevent rebuild loops
12
+ - **pipeline**: don't die when processes die
13
+ - **global**: version packages
14
+ - enforce Biome as sole formatter in VSCode
15
+ - **typical**: add convenience dev script
16
+
17
+ - [`cc8fe3c`](https://github.com/BeOnAuto/auto-engineer/commit/cc8fe3c016246a1828435911097ccf1da2670d5a) Thanks [@SamHatoum](https://github.com/SamHatoum)! - - **server-generator**: add InitializeServer command that creates bare runnable server
18
+
19
+ ### Patch Changes
20
+
21
+ - [`8ea4131`](https://github.com/BeOnAuto/auto-engineer/commit/8ea41315267bc53329d30349e43b45c2a1dbb26d) Thanks [@SamHatoum](https://github.com/SamHatoum)! - - Removed server from typical example configuration since it now gets initialized automatically
22
+
23
+ - [`e8137a5`](https://github.com/BeOnAuto/auto-engineer/commit/e8137a584cb6fd7abe224ed57b37d2689d5554bf) Thanks [@SamHatoum](https://github.com/SamHatoum)! - - **server-generator**: verify InitializeServer idempotency
24
+
25
+ - [`53ebdbe`](https://github.com/BeOnAuto/auto-engineer/commit/53ebdbe093fc643a738b3eb0f4e82e657f33120e) Thanks [@SamHatoum](https://github.com/SamHatoum)! - - **server-generator**: use explicit ESM import paths in generated server.ts
26
+
27
+ - [`37c049c`](https://github.com/BeOnAuto/auto-engineer/commit/37c049c33910fc9aa99e239ea856e513259e2700) Thanks [@SamHatoum](https://github.com/SamHatoum)! - - **server-generator**: mark InitializeServer bursts done in ketchup plan
28
+
29
+ - [`7f2fba6`](https://github.com/BeOnAuto/auto-engineer/commit/7f2fba647565031da4045bd487c41c0670d36284) Thanks [@SamHatoum](https://github.com/SamHatoum)! - - Fixed import formatting and interface property alignment in the Apollo Emmett server generator
30
+
31
+ - [`931a1a9`](https://github.com/BeOnAuto/auto-engineer/commit/931a1a9e47c146ef77053555d7e0f3c13b0b2b9e) Thanks [@SamHatoum](https://github.com/SamHatoum)! - - Fixed import formatting and aligned interface property definitions in the Apollo Emmett server generator
32
+
33
+ - [`d02b74d`](https://github.com/BeOnAuto/auto-engineer/commit/d02b74d3dfaa12a7ee99fe92e1ab5268c440080b) Thanks [@SamHatoum](https://github.com/SamHatoum)! - - **server-generator**: update ketchup plan for InitializeServer separation
34
+
35
+ - [`699bd34`](https://github.com/BeOnAuto/auto-engineer/commit/699bd34a6775df9ffcc9c821b3a20778b3c1a285) Thanks [@SamHatoum](https://github.com/SamHatoum)! - - **lint**: biome lint fixes
36
+
37
+ - [`271c1c1`](https://github.com/BeOnAuto/auto-engineer/commit/271c1c10d5a333dddb0f8e6a4e8ee77e04d16374) Thanks [@SamHatoum](https://github.com/SamHatoum)! - - Renamed pipeline commands and events across the codebase for improved consistency and clarity
38
+
39
+ - [`2f32055`](https://github.com/BeOnAuto/auto-engineer/commit/2f320556fa559b8a8b79f925cf09aa032a1622fb) Thanks [@SamHatoum](https://github.com/SamHatoum)! - - **server-generator**: verify ServerInitializationFailed on error
40
+
41
+ - [`0354304`](https://github.com/BeOnAuto/auto-engineer/commit/0354304528ddeabd6c35ad9c7a274327e257f871) Thanks [@SamHatoum](https://github.com/SamHatoum)! - - **server-generator**: export config-writing functions from generate-server
42
+
43
+ - Updated dependencies [[`8ea4131`](https://github.com/BeOnAuto/auto-engineer/commit/8ea41315267bc53329d30349e43b45c2a1dbb26d), [`849fa10`](https://github.com/BeOnAuto/auto-engineer/commit/849fa106edffe48f2ac58f2fdb6ca66062fcebe7), [`e8137a5`](https://github.com/BeOnAuto/auto-engineer/commit/e8137a584cb6fd7abe224ed57b37d2689d5554bf), [`8d37de6`](https://github.com/BeOnAuto/auto-engineer/commit/8d37de62e624d74be42f327d17386d79be005e57), [`53ebdbe`](https://github.com/BeOnAuto/auto-engineer/commit/53ebdbe093fc643a738b3eb0f4e82e657f33120e), [`37c049c`](https://github.com/BeOnAuto/auto-engineer/commit/37c049c33910fc9aa99e239ea856e513259e2700), [`7f2fba6`](https://github.com/BeOnAuto/auto-engineer/commit/7f2fba647565031da4045bd487c41c0670d36284), [`931a1a9`](https://github.com/BeOnAuto/auto-engineer/commit/931a1a9e47c146ef77053555d7e0f3c13b0b2b9e), [`68df8c9`](https://github.com/BeOnAuto/auto-engineer/commit/68df8c92ea0f15f9cd225e9a313be54ae9eaa301), [`d02b74d`](https://github.com/BeOnAuto/auto-engineer/commit/d02b74d3dfaa12a7ee99fe92e1ab5268c440080b), [`699bd34`](https://github.com/BeOnAuto/auto-engineer/commit/699bd34a6775df9ffcc9c821b3a20778b3c1a285), [`271c1c1`](https://github.com/BeOnAuto/auto-engineer/commit/271c1c10d5a333dddb0f8e6a4e8ee77e04d16374), [`2f32055`](https://github.com/BeOnAuto/auto-engineer/commit/2f320556fa559b8a8b79f925cf09aa032a1622fb), [`cc8fe3c`](https://github.com/BeOnAuto/auto-engineer/commit/cc8fe3c016246a1828435911097ccf1da2670d5a), [`0354304`](https://github.com/BeOnAuto/auto-engineer/commit/0354304528ddeabd6c35ad9c7a274327e257f871)]:
44
+ - @auto-engineer/message-bus@1.41.0
45
+
46
+ ## 1.40.0
47
+
48
+ ### Minor Changes
49
+
50
+ - [`f50a03d`](https://github.com/BeOnAuto/auto-engineer/commit/f50a03d46f818382d595c3c066eea40a32238b9f) Thanks [@github-actions[bot]](https://github.com/github-actions%5Bbot%5D)! - - **packages/generate-react-client**: adds vitest to starter
51
+ - **global**: version packages
52
+
53
+ - [`6d5da03`](https://github.com/BeOnAuto/auto-engineer/commit/6d5da03d69afc8bdf9152884e9d7b63ca50e028c) Thanks [@SamHatoum](https://github.com/SamHatoum)! - - Added HMR stability settings to the React client generator to prevent rebuild loops during development
54
+
55
+ ### Patch Changes
56
+
57
+ - [`15938a6`](https://github.com/BeOnAuto/auto-engineer/commit/15938a654785be13c1f7349a1bdb8be1203d93fe) Thanks [@SamHatoum](https://github.com/SamHatoum)! - - enforce Biome as sole formatter in VSCode
58
+
59
+ - [`8564620`](https://github.com/BeOnAuto/auto-engineer/commit/8564620b2d54b6048551ef246c3f7a1323e554e6) Thanks [@SamHatoum](https://github.com/SamHatoum)! - - Fixed pipeline crash when child processes exit unexpectedly
60
+
61
+ - [`79f3806`](https://github.com/BeOnAuto/auto-engineer/commit/79f380644d7d57f2228a03be07e9cbd4c682d6ce) Thanks [@SamHatoum](https://github.com/SamHatoum)! - - Added convenience dev script for the typical example project
62
+
63
+ - Updated dependencies [[`15938a6`](https://github.com/BeOnAuto/auto-engineer/commit/15938a654785be13c1f7349a1bdb8be1203d93fe), [`8564620`](https://github.com/BeOnAuto/auto-engineer/commit/8564620b2d54b6048551ef246c3f7a1323e554e6), [`79f3806`](https://github.com/BeOnAuto/auto-engineer/commit/79f380644d7d57f2228a03be07e9cbd4c682d6ce), [`f50a03d`](https://github.com/BeOnAuto/auto-engineer/commit/f50a03d46f818382d595c3c066eea40a32238b9f), [`6d5da03`](https://github.com/BeOnAuto/auto-engineer/commit/6d5da03d69afc8bdf9152884e9d7b63ca50e028c)]:
64
+ - @auto-engineer/message-bus@1.40.0
65
+
3
66
  ## 1.39.0
4
67
 
5
68
  ### Minor Changes
@@ -1,15 +1,15 @@
1
1
  import { type Command, type Event } from '@auto-engineer/message-bus';
2
- export type GenerateReactClientCommand = Command<'GenerateReactClient', {
2
+ export type InitializeClientCommand = Command<'InitializeClient', {
3
3
  targetDir: string;
4
4
  }>;
5
- export type ReactClientGeneratedEvent = Event<'ReactClientGenerated', {
5
+ export type ClientInitializedEvent = Event<'ClientInitialized', {
6
6
  targetDir: string;
7
7
  }>;
8
- export type ReactClientGenerationFailedEvent = Event<'ReactClientGenerationFailed', {
8
+ export type ClientInitializationFailedEvent = Event<'ClientInitializationFailed', {
9
9
  error: string;
10
10
  targetDir: string;
11
11
  }>;
12
- export type GenerateReactClientEvents = ReactClientGeneratedEvent | ReactClientGenerationFailedEvent;
12
+ export type InitializeClientEvents = ClientInitializedEvent | ClientInitializationFailedEvent;
13
13
  export declare const commandHandler: import("@auto-engineer/message-bus").UnifiedCommandHandler<Readonly<{
14
14
  type: string;
15
15
  data: Readonly<Record<string, unknown>>;
@@ -1 +1 @@
1
- {"version":3,"file":"generate-react-client.d.ts","sourceRoot":"","sources":["../../../src/commands/generate-react-client.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,OAAO,EAAwB,KAAK,KAAK,EAAE,MAAM,4BAA4B,CAAC;AAW5F,MAAM,MAAM,0BAA0B,GAAG,OAAO,CAC9C,qBAAqB,EACrB;IACE,SAAS,EAAE,MAAM,CAAC;CACnB,CACF,CAAC;AAEF,MAAM,MAAM,yBAAyB,GAAG,KAAK,CAC3C,sBAAsB,EACtB;IACE,SAAS,EAAE,MAAM,CAAC;CACnB,CACF,CAAC;AAEF,MAAM,MAAM,gCAAgC,GAAG,KAAK,CAClD,6BAA6B,EAC7B;IACE,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,EAAE,MAAM,CAAC;CACnB,CACF,CAAC;AAEF,MAAM,MAAM,yBAAyB,GAAG,yBAAyB,GAAG,gCAAgC,CAAC;AAErG,eAAO,MAAM,cAAc;;;;;;GAqDzB,CAAC;AAEH,eAAe,cAAc,CAAC"}
1
+ {"version":3,"file":"generate-react-client.d.ts","sourceRoot":"","sources":["../../../src/commands/generate-react-client.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,OAAO,EAAwB,KAAK,KAAK,EAAE,MAAM,4BAA4B,CAAC;AAW5F,MAAM,MAAM,uBAAuB,GAAG,OAAO,CAC3C,kBAAkB,EAClB;IACE,SAAS,EAAE,MAAM,CAAC;CACnB,CACF,CAAC;AAEF,MAAM,MAAM,sBAAsB,GAAG,KAAK,CACxC,mBAAmB,EACnB;IACE,SAAS,EAAE,MAAM,CAAC;CACnB,CACF,CAAC;AAEF,MAAM,MAAM,+BAA+B,GAAG,KAAK,CACjD,4BAA4B,EAC5B;IACE,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,EAAE,MAAM,CAAC;CACnB,CACF,CAAC;AAEF,MAAM,MAAM,sBAAsB,GAAG,sBAAsB,GAAG,+BAA+B,CAAC;AAE9F,eAAO,MAAM,cAAc;;;;;;GAqDzB,CAAC;AAEH,eAAe,cAAc,CAAC"}
@@ -3,15 +3,15 @@ import { fileURLToPath } from 'node:url';
3
3
  import { defineCommandHandler } from '@auto-engineer/message-bus';
4
4
  import createDebug from 'debug';
5
5
  import { copyStarter } from '../copy-starter.js';
6
- const debug = createDebug('auto:generate-react-client:command');
6
+ const debug = createDebug('auto:initialize-client:command');
7
7
  const resolveStarterPath = () => {
8
8
  const currentDir = path.dirname(fileURLToPath(import.meta.url));
9
9
  return path.resolve(currentDir, '../../starter');
10
10
  };
11
11
  export const commandHandler = defineCommandHandler({
12
- name: 'GenerateReactClient',
13
- displayName: 'Generate React Client',
14
- alias: 'generate:react-client',
12
+ name: 'InitializeClient',
13
+ displayName: 'Initialize Client',
14
+ alias: 'init:client',
15
15
  description: 'Scaffold a React + Vite + Tailwind CSS v4 + shadcn client app',
16
16
  category: 'generate',
17
17
  icon: 'monitor',
@@ -21,24 +21,24 @@ export const commandHandler = defineCommandHandler({
21
21
  required: true,
22
22
  },
23
23
  },
24
- examples: ['$ auto generate:react-client --target-dir=./client'],
24
+ examples: ['$ auto init:client --target-dir=./client'],
25
25
  events: [
26
- { name: 'ReactClientGenerated', displayName: 'React Client Generated' },
26
+ { name: 'ClientInitialized', displayName: 'Client Initialized' },
27
27
  {
28
- name: 'ReactClientGenerationFailed',
29
- displayName: 'React Client Generation Failed',
28
+ name: 'ClientInitializationFailed',
29
+ displayName: 'Client Initialization Failed',
30
30
  },
31
31
  ],
32
32
  handle: async (command) => {
33
33
  const { targetDir } = command.data;
34
- debug('Generating React client to: %s', targetDir);
34
+ debug('Initializing client to: %s', targetDir);
35
35
  try {
36
36
  const starterPath = resolveStarterPath();
37
37
  debug('Starter path: %s', starterPath);
38
38
  const fileCount = await copyStarter(starterPath, targetDir);
39
- debug('React client generated at %s (%d files)', targetDir, fileCount);
39
+ debug('Client initialized at %s (%d files)', targetDir, fileCount);
40
40
  return {
41
- type: 'ReactClientGenerated',
41
+ type: 'ClientInitialized',
42
42
  data: { targetDir },
43
43
  timestamp: new Date(),
44
44
  requestId: command.requestId,
@@ -47,9 +47,9 @@ export const commandHandler = defineCommandHandler({
47
47
  }
48
48
  catch (error) {
49
49
  const errorMessage = error instanceof Error ? error.message : String(error);
50
- debug('Generation failed: %s', errorMessage);
50
+ debug('Initialization failed: %s', errorMessage);
51
51
  return {
52
- type: 'ReactClientGenerationFailed',
52
+ type: 'ClientInitializationFailed',
53
53
  data: { error: errorMessage, targetDir },
54
54
  timestamp: new Date(),
55
55
  requestId: command.requestId,
@@ -1 +1 @@
1
- {"version":3,"file":"generate-react-client.js","sourceRoot":"","sources":["../../../src/commands/generate-react-client.ts"],"names":[],"mappings":"AAAA,OAAO,IAAI,MAAM,WAAW,CAAC;AAC7B,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AACzC,OAAO,EAAgB,oBAAoB,EAAc,MAAM,4BAA4B,CAAC;AAC5F,OAAO,WAAW,MAAM,OAAO,CAA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EAAE,CAAC;YACf,MAAM,YAAY,GAAG,KAAK,YAAY,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;YAC5E,KAAK,CAAC,2BAA2B,EAAE,YAAY,CAAC,CAAC;YAEjD,OAAO;gBACL,IAAI,EAAE,4BAA4B;gBAClC,IAAI,EAAE,EAAE,KAAK,EAAE,YAAY,EAAE,SAAS,EAAE;gBACxC,SAAS,EAAE,IAAI,IAAI,EAAE;gBACrB,SAAS,EAAE,OAAO,CAAC,SAAS;gBAC5B,aAAa,EAAE,OAAO,CAAC,aAAa;aACrC,CAAC;QACJ,CAAC;IACH,CAAC;CACF,CAAC,CAAC;AAEH,eAAe,cAAc,CAAC"}
@@ -1,5 +1,5 @@
1
- export type { GenerateReactClientCommand, GenerateReactClientEvents, } from './commands/generate-react-client.js';
2
- export { commandHandler as generateReactClientCommandHandler } from './commands/generate-react-client.js';
1
+ export type { InitializeClientCommand, InitializeClientEvents, } from './commands/generate-react-client.js';
2
+ export { commandHandler as initializeClientCommandHandler } from './commands/generate-react-client.js';
3
3
  export declare const COMMANDS: import("@auto-engineer/message-bus").UnifiedCommandHandler<Readonly<{
4
4
  type: string;
5
5
  data: Readonly<Record<string, unknown>>;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,YAAY,EACV,0BAA0B,EAC1B,yBAAyB,GAC1B,MAAM,qCAAqC,CAAC;AAC7C,OAAO,EAAE,cAAc,IAAI,iCAAiC,EAAE,MAAM,qCAAqC,CAAC;AAG1G,eAAO,MAAM,QAAQ;;;;;;KAAmB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,YAAY,EACV,uBAAuB,EACvB,sBAAsB,GACvB,MAAM,qCAAqC,CAAC;AAC7C,OAAO,EAAE,cAAc,IAAI,8BAA8B,EAAE,MAAM,qCAAqC,CAAC;AAGvG,eAAO,MAAM,QAAQ;;;;;;KAAmB,CAAC"}
package/dist/src/index.js CHANGED
@@ -1,4 +1,4 @@
1
- export { commandHandler as generateReactClientCommandHandler } from './commands/generate-react-client.js';
1
+ export { commandHandler as initializeClientCommandHandler } from './commands/generate-react-client.js';
2
2
  import { commandHandler } from './commands/generate-react-client.js';
3
3
  export const COMMANDS = [commandHandler];
4
4
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,cAAc,IAAI,iCAAiC,EAAE,MAAM,qCAAqC,CAAC;AAE1G,OAAO,EAAE,cAAc,EAAE,MAAM,qCAAqC,CAAC;AACrE,MAAM,CAAC,MAAM,QAAQ,GAAG,CAAC,cAAc,CAAC,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,cAAc,IAAI,8BAA8B,EAAE,MAAM,qCAAqC,CAAC;AAEvG,OAAO,EAAE,cAAc,EAAE,MAAM,qCAAqC,CAAC;AACrE,MAAM,CAAC,MAAM,QAAQ,GAAG,CAAC,cAAc,CAAC,CAAC"}
@@ -49,6 +49,14 @@ const config: StorybookConfig = {
49
49
  config.server = {
50
50
  ...config.server,
51
51
  allowedHosts: [".worker.on.auto", ".worker-dev.on.auto"],
52
+ watch: {
53
+ // Wait for files to stop being written before triggering HMR
54
+ // This prevents continuous rebuild loops when multiple agents write files
55
+ awaitWriteFinish: {
56
+ stabilityThreshold: 3000, // Wait 1.5s of no changes before rebuild
57
+ pollInterval: 1000,
58
+ },
59
+ },
52
60
  };
53
61
  config.define = {
54
62
  ...config.define,