@auto-engineer/generate-react-client 1.40.0 → 1.42.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,74 @@
1
1
  # @auto-engineer/generate-react-client
2
2
 
3
+ ## 1.42.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [`04880b4`](https://github.com/BeOnAuto/auto-engineer/commit/04880b40289edb0fb86ad60d9080392b418267bd) Thanks [@SamHatoum](https://github.com/SamHatoum)! - - **file-upload**: add direct http PUT mode and no-op when unconfigured
8
+
9
+ - [`65818ec`](https://github.com/BeOnAuto/auto-engineer/commit/65818ec3ec4b66cb07376d3b6222453cc35813da) Thanks [@SamHatoum](https://github.com/SamHatoum)! - - **file-upload**: uploadFile writes to local path via file:// URL
10
+
11
+ - [`8f6b02b`](https://github.com/BeOnAuto/auto-engineer/commit/8f6b02b75c71f2b8aca7460254fc8d7eab3cd673) Thanks [@github-actions[bot]](https://github.com/github-actions%5Bbot%5D)! - - **server-generator**: preserve health resolver after cleanServerDir
12
+ - **server-generator**: wire InitializeServer into COMMANDS and pipeline
13
+ - **server-generator**: add InitializeServer command that creates bare runnable server
14
+ - **lint**: biome lint fixes
15
+ - **server-generator**: use explicit ESM import paths in generated server.ts
16
+
17
+ - [`c75bdac`](https://github.com/BeOnAuto/auto-engineer/commit/c75bdacab0548b5a1c46b6285f3602140fd2e7b0) Thanks [@SamHatoum](https://github.com/SamHatoum)! - - **generate-react-client**: call uploadFile after building components-db.json
18
+
19
+ - [`28385df`](https://github.com/BeOnAuto/auto-engineer/commit/28385df9c38e8fb0f0cd0afc2b6a94f14896f549) Thanks [@SamHatoum](https://github.com/SamHatoum)! - - **file-upload**: uploadFile signer mode POSTs for presigned URL then PUTs
20
+
21
+ ### Patch Changes
22
+
23
+ - [`bf57097`](https://github.com/BeOnAuto/auto-engineer/commit/bf57097f6560f946c7baf0deb637453164c6e100) Thanks [@SamHatoum](https://github.com/SamHatoum)! - - **file-upload**: scaffold package with package.json and tsconfig
24
+
25
+ - Updated dependencies [[`04880b4`](https://github.com/BeOnAuto/auto-engineer/commit/04880b40289edb0fb86ad60d9080392b418267bd), [`65818ec`](https://github.com/BeOnAuto/auto-engineer/commit/65818ec3ec4b66cb07376d3b6222453cc35813da), [`8f6b02b`](https://github.com/BeOnAuto/auto-engineer/commit/8f6b02b75c71f2b8aca7460254fc8d7eab3cd673), [`c75bdac`](https://github.com/BeOnAuto/auto-engineer/commit/c75bdacab0548b5a1c46b6285f3602140fd2e7b0), [`bf57097`](https://github.com/BeOnAuto/auto-engineer/commit/bf57097f6560f946c7baf0deb637453164c6e100), [`28385df`](https://github.com/BeOnAuto/auto-engineer/commit/28385df9c38e8fb0f0cd0afc2b6a94f14896f549)]:
26
+ - @auto-engineer/file-upload@1.42.0
27
+ - @auto-engineer/message-bus@1.42.0
28
+
29
+ ## 1.41.0
30
+
31
+ ### Minor Changes
32
+
33
+ - [`849fa10`](https://github.com/BeOnAuto/auto-engineer/commit/849fa106edffe48f2ac58f2fdb6ca66062fcebe7) Thanks [@SamHatoum](https://github.com/SamHatoum)! - - **server-generator**: wire InitializeServer into COMMANDS and pipeline
34
+
35
+ - [`8d37de6`](https://github.com/BeOnAuto/auto-engineer/commit/8d37de62e624d74be42f327d17386d79be005e57) Thanks [@SamHatoum](https://github.com/SamHatoum)! - - **server-generator**: preserve health resolver after cleanServerDir
36
+
37
+ - [`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
38
+ - **pipeline**: don't die when processes die
39
+ - **global**: version packages
40
+ - enforce Biome as sole formatter in VSCode
41
+ - **typical**: add convenience dev script
42
+
43
+ - [`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
44
+
45
+ ### Patch Changes
46
+
47
+ - [`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
48
+
49
+ - [`e8137a5`](https://github.com/BeOnAuto/auto-engineer/commit/e8137a584cb6fd7abe224ed57b37d2689d5554bf) Thanks [@SamHatoum](https://github.com/SamHatoum)! - - **server-generator**: verify InitializeServer idempotency
50
+
51
+ - [`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
52
+
53
+ - [`37c049c`](https://github.com/BeOnAuto/auto-engineer/commit/37c049c33910fc9aa99e239ea856e513259e2700) Thanks [@SamHatoum](https://github.com/SamHatoum)! - - **server-generator**: mark InitializeServer bursts done in ketchup plan
54
+
55
+ - [`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
56
+
57
+ - [`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
58
+
59
+ - [`d02b74d`](https://github.com/BeOnAuto/auto-engineer/commit/d02b74d3dfaa12a7ee99fe92e1ab5268c440080b) Thanks [@SamHatoum](https://github.com/SamHatoum)! - - **server-generator**: update ketchup plan for InitializeServer separation
60
+
61
+ - [`699bd34`](https://github.com/BeOnAuto/auto-engineer/commit/699bd34a6775df9ffcc9c821b3a20778b3c1a285) Thanks [@SamHatoum](https://github.com/SamHatoum)! - - **lint**: biome lint fixes
62
+
63
+ - [`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
64
+
65
+ - [`2f32055`](https://github.com/BeOnAuto/auto-engineer/commit/2f320556fa559b8a8b79f925cf09aa032a1622fb) Thanks [@SamHatoum](https://github.com/SamHatoum)! - - **server-generator**: verify ServerInitializationFailed on error
66
+
67
+ - [`0354304`](https://github.com/BeOnAuto/auto-engineer/commit/0354304528ddeabd6c35ad9c7a274327e257f871) Thanks [@SamHatoum](https://github.com/SamHatoum)! - - **server-generator**: export config-writing functions from generate-server
68
+
69
+ - 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)]:
70
+ - @auto-engineer/message-bus@1.41.0
71
+
3
72
  ## 1.40.0
4
73
 
5
74
  ### 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,CAAC;AAChC,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAEjD,MAAM,KAAK,GAAG,WAAW,CAAC,oCAAoC,CAAC,CAAC;AAEhE,MAAM,kBAAkB,GAAG,GAAW,EAAE;IACtC,MAAM,UAAU,GAAG,IAAI,CAAC,OAAO,CAAC,aAAa,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC;IAChE,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,EAAE,eAAe,CAAC,CAAC;AACnD,CAAC,CAAC;AA0BF,MAAM,CAAC,MAAM,cAAc,GAAG,oBAAoB,CAAC;IACjD,IAAI,EAAE,qBAAqB;IAC3B,WAAW,EAAE,uBAAuB;IACpC,KAAK,EAAE,uBAAuB;IAC9B,WAAW,EAAE,+DAA+D;IAC5E,QAAQ,EAAE,UAAU;IACpB,IAAI,EAAE,SAAS;IACf,MAAM,EAAE;QACN,SAAS,EAAE;YACT,WAAW,EAAE,2CAA2C;YACxD,QAAQ,EAAE,IAAI;SACf;KACF;IACD,QAAQ,EAAE,CAAC,oDAAoD,CAAC;IAChE,MAAM,EAAE;QACN,EAAE,IAAI,EAAE,sBAAsB,EAAE,WAAW,EAAE,wBAAwB,EAAE;QACvE;YACE,IAAI,EAAE,6BAA6B;YACnC,WAAW,EAAE,gCAAgC;SAC9C;KACF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B,EAAE,WAAW,CAAC,CAAC;YAEvC,MAAM,SAAS,GAAG,MAAM,WAAW,CAAC,WAAW,EAAE,SAAS,CAAC,CAAC;YAC5D,KAAK,CAAC,qCAAqC,EAAE,SAAS,EAAE,SAAS,CAAC,CAAC;YAEnE,OAAO;gBACL,IAAI,EAAE,mBAAmB;gBACzB,IAAI,EAAE,EAAE,SAAS,EAAE;gBACnB,SAAS,EAAE,IAAI,IAAI,EAAE;gBACrB,SAAS,EAAE,OAAO,CAAC,SAAS;gBAC5B,aAAa,EAAE,OAAO,CAAC,aAAa;aACrC,CAAC;QACJ,CAAC;QAAC,OAAO,KAAK,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"}
@@ -46,6 +46,7 @@
46
46
  "zod": "^4.3.6"
47
47
  },
48
48
  "devDependencies": {
49
+ "@auto-engineer/file-upload": "workspace:*",
49
50
  "@graphql-codegen/cli": "^6.1.1",
50
51
  "@graphql-codegen/client-preset": "^5.2.2",
51
52
  "@parcel/watcher": "^2.5.6",
@@ -1,7 +1,9 @@
1
1
  import { writeFileSync, mkdirSync } from "node:fs";
2
+ import { mkdir, writeFile } from "node:fs/promises";
2
3
  import { dirname, resolve } from "node:path";
3
4
  import { fileURLToPath } from "node:url";
4
5
  import { parseArgs } from "node:util";
6
+ import { uploadFile } from "@auto-engineer/file-upload";
5
7
 
6
8
  const __dirname = dirname(fileURLToPath(import.meta.url));
7
9
  const OUTPUT_DIR = resolve(__dirname, "../../.context");
@@ -151,7 +153,23 @@ const [componentsJson, indexJson] = await Promise.all([
151
153
 
152
154
  const merged = merge(componentsJson, indexJson);
153
155
 
156
+ const json = JSON.stringify(merged, null, 2) + "\n";
157
+
154
158
  mkdirSync(OUTPUT_DIR, { recursive: true });
155
- writeFileSync(OUTPUT_FILE, JSON.stringify(merged, null, 2) + "\n");
159
+ writeFileSync(OUTPUT_FILE, json);
156
160
 
157
161
  console.log(`Wrote ${merged.length} components to ${OUTPUT_FILE}`);
162
+
163
+ await uploadFile(".context/components-db.json", new TextEncoder().encode(json), {
164
+ uploadUrl: process.env.FILE_UPLOAD_URL,
165
+ prefix: process.env.FILE_UPLOAD_PREFIX,
166
+ signerUrl: process.env.UPLOAD_SIGNER_URL,
167
+ signerToken: process.env.UPLOAD_SIGNER_TOKEN,
168
+ fetch,
169
+ writeFile: async (path, data) => {
170
+ await writeFile(path, data);
171
+ },
172
+ mkdir: async (path) => {
173
+ await mkdir(path, { recursive: true });
174
+ },
175
+ });