@auto-engineer/generate-react-client 1.41.0 → 1.43.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,50 @@
1
1
  # @auto-engineer/generate-react-client
2
2
 
3
+ ## 1.43.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [`0d03a8b`](https://github.com/BeOnAuto/auto-engineer/commit/0d03a8b079935b7b9c3293c45c0acbb5133ca593) Thanks [@github-actions[bot]](https://github.com/github-actions%5Bbot%5D)! - - **generate-react-client**: call uploadFile after building components-db.json
8
+ - **file-upload**: add direct http PUT mode and no-op when unconfigured
9
+ - **file-upload**: uploadFile signer mode POSTs for presigned URL then PUTs
10
+ - **file-upload**: uploadFile writes to local path via file:// URL
11
+ - **global**: version packages
12
+
13
+ - [`f7dece7`](https://github.com/BeOnAuto/auto-engineer/commit/f7dece73ff5f4e2d5288a961e158d7f7a5c22bb2) Thanks [@SamHatoum](https://github.com/SamHatoum)! - - Added automatic file upload of components-db.json after generation
14
+ - Integrated file-upload package into the React client generator
15
+
16
+ ### Patch Changes
17
+
18
+ - Updated dependencies [[`0d03a8b`](https://github.com/BeOnAuto/auto-engineer/commit/0d03a8b079935b7b9c3293c45c0acbb5133ca593), [`f7dece7`](https://github.com/BeOnAuto/auto-engineer/commit/f7dece73ff5f4e2d5288a961e158d7f7a5c22bb2)]:
19
+ - @auto-engineer/file-upload@1.43.0
20
+ - @auto-engineer/message-bus@1.43.0
21
+
22
+ ## 1.42.0
23
+
24
+ ### Minor Changes
25
+
26
+ - [`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
27
+
28
+ - [`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
29
+
30
+ - [`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
31
+ - **server-generator**: wire InitializeServer into COMMANDS and pipeline
32
+ - **server-generator**: add InitializeServer command that creates bare runnable server
33
+ - **lint**: biome lint fixes
34
+ - **server-generator**: use explicit ESM import paths in generated server.ts
35
+
36
+ - [`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
37
+
38
+ - [`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
39
+
40
+ ### Patch Changes
41
+
42
+ - [`bf57097`](https://github.com/BeOnAuto/auto-engineer/commit/bf57097f6560f946c7baf0deb637453164c6e100) Thanks [@SamHatoum](https://github.com/SamHatoum)! - - **file-upload**: scaffold package with package.json and tsconfig
43
+
44
+ - 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)]:
45
+ - @auto-engineer/file-upload@1.42.0
46
+ - @auto-engineer/message-bus@1.42.0
47
+
3
48
  ## 1.41.0
4
49
 
5
50
  ### Minor Changes
@@ -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
+ });
package/package.json CHANGED
@@ -19,12 +19,13 @@
19
19
  },
20
20
  "dependencies": {
21
21
  "debug": "^4.4.1",
22
- "@auto-engineer/message-bus": "1.41.0"
22
+ "@auto-engineer/file-upload": "1.43.0",
23
+ "@auto-engineer/message-bus": "1.43.0"
23
24
  },
24
25
  "devDependencies": {
25
26
  "@types/debug": "^4.1.12"
26
27
  },
27
- "version": "1.41.0",
28
+ "version": "1.43.0",
28
29
  "scripts": {
29
30
  "build": "tsc && tsx ../../scripts/fix-esm-imports.ts && cp -r starter dist/",
30
31
  "test-cli": "tsx test-cli.ts",