@auto-engineer/generate-react-client 1.41.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,31 @@
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
+
3
29
  ## 1.41.0
4
30
 
5
31
  ### Minor Changes
@@ -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
+ });
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.42.0",
23
+ "@auto-engineer/message-bus": "1.42.0"
23
24
  },
24
25
  "devDependencies": {
25
26
  "@types/debug": "^4.1.12"
26
27
  },
27
- "version": "1.41.0",
28
+ "version": "1.42.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",