@auto-engineer/generate-react-client 1.106.0 → 1.108.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 +52 -0
- package/dist/src/commands/generate-react-client.d.ts.map +1 -1
- package/dist/src/commands/generate-react-client.js +8 -1
- package/dist/src/commands/generate-react-client.js.map +1 -1
- package/dist/src/commands/generate-react-client.specs.d.ts +2 -0
- package/dist/src/commands/generate-react-client.specs.d.ts.map +1 -0
- package/dist/src/commands/generate-react-client.specs.js +53 -0
- package/dist/src/commands/generate-react-client.specs.js.map +1 -0
- package/dist/starter/.storybook/preview-head.html +47 -10
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,57 @@
|
|
|
1
1
|
# @auto-engineer/generate-react-client
|
|
2
2
|
|
|
3
|
+
## 1.108.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [`c3ff53a`](https://github.com/BeOnAuto/auto-engineer/commit/c3ff53a662b8574254cebe211d3dc7e8e6d40ce0) Thanks [@SamHatoum](https://github.com/SamHatoum)! - - **generate-react-client**: fall back to /app/.templates/client when package starter missing
|
|
8
|
+
|
|
9
|
+
- [`b3012ba`](https://github.com/BeOnAuto/auto-engineer/commit/b3012ba87dcfa159bcb2ec28e8b36a27512903d6) Thanks [@github-actions[bot]](https://github.com/github-actions%5Bbot%5D)! - - **typical**: add descriptive labels to settled
|
|
10
|
+
- **pipeline**: allow custom label on settled() builder method
|
|
11
|
+
- **pipeline**: thread sourceEventType from event routing to settled bridge
|
|
12
|
+
- **pipeline**: capture sourceEventTypes from emit chain in settled builder
|
|
13
|
+
- **pipeline**: filter settled bridge events by sourceEventTypes
|
|
14
|
+
|
|
15
|
+
- [`cb76057`](https://github.com/BeOnAuto/auto-engineer/commit/cb760571ccc5445a0b6cc0dd69b7476404db6111) Thanks [@SamHatoum](https://github.com/SamHatoum)! - - **server-generator-apollo-emmett**: template fallback for broken pnpm
|
|
16
|
+
|
|
17
|
+
### Patch Changes
|
|
18
|
+
|
|
19
|
+
- Updated dependencies [[`c3ff53a`](https://github.com/BeOnAuto/auto-engineer/commit/c3ff53a662b8574254cebe211d3dc7e8e6d40ce0), [`b3012ba`](https://github.com/BeOnAuto/auto-engineer/commit/b3012ba87dcfa159bcb2ec28e8b36a27512903d6), [`cb76057`](https://github.com/BeOnAuto/auto-engineer/commit/cb760571ccc5445a0b6cc0dd69b7476404db6111)]:
|
|
20
|
+
- @auto-engineer/file-upload@1.108.0
|
|
21
|
+
- @auto-engineer/message-bus@1.108.0
|
|
22
|
+
|
|
23
|
+
## 1.107.0
|
|
24
|
+
|
|
25
|
+
### Minor Changes
|
|
26
|
+
|
|
27
|
+
- [`8bedd2d`](https://github.com/BeOnAuto/auto-engineer/commit/8bedd2d23673f475aa11d41c4ecc49c6cf116544) Thanks [@SamHatoum](https://github.com/SamHatoum)! - - **pipeline**: capture sourceEventTypes from emit chain in settled builder
|
|
28
|
+
|
|
29
|
+
- [`55d254f`](https://github.com/BeOnAuto/auto-engineer/commit/55d254f5cba939d8da86b59e2988fbd6015a4b99) Thanks [@SamHatoum](https://github.com/SamHatoum)! - - **pipeline**: allow custom label on settled() builder method
|
|
30
|
+
|
|
31
|
+
- [`4c00021`](https://github.com/BeOnAuto/auto-engineer/commit/4c00021fdb4f4e07e071825c61b1b2a6e53dee32) Thanks [@SamHatoum](https://github.com/SamHatoum)! - - Added descriptive labels to settled operations for better identification and debugging
|
|
32
|
+
|
|
33
|
+
- [`35f4746`](https://github.com/BeOnAuto/auto-engineer/commit/35f474680de0972db431720f7bbec37e7acf1474) Thanks [@github-actions[bot]](https://github.com/github-actions%5Bbot%5D)! - - **typical**: wire component check-and-retry loop
|
|
34
|
+
- **component-implementor-react**: add context and passthrough fields
|
|
35
|
+
- **pipeline**: support multiple settled blocks with same command types
|
|
36
|
+
- **component-implementor-react**: remove context from CLI fields definition
|
|
37
|
+
- **pipeline**: update graph node IDs and mermaid rendering for settledId
|
|
38
|
+
|
|
39
|
+
- [`c014d49`](https://github.com/BeOnAuto/auto-engineer/commit/c014d4975c1684484e2616894534b99199d46883) Thanks [@SamHatoum](https://github.com/SamHatoum)! - - **pipeline**: thread sourceEventType from event routing to settled bridge
|
|
40
|
+
|
|
41
|
+
- [`444e0e5`](https://github.com/BeOnAuto/auto-engineer/commit/444e0e5f2c1e7ed95b954f26ca057185fe415a84) Thanks [@SamHatoum](https://github.com/SamHatoum)! - - **pipeline**: auto-generate label for settled graph nodes from dispatches
|
|
42
|
+
|
|
43
|
+
- [`bf5ab79`](https://github.com/BeOnAuto/auto-engineer/commit/bf5ab79d1d03e16b5d073a2d92704f3b7a7d922c) Thanks [@SamHatoum](https://github.com/SamHatoum)! - - **pipeline**: filter settled bridge events by sourceEventTypes
|
|
44
|
+
|
|
45
|
+
### Patch Changes
|
|
46
|
+
|
|
47
|
+
- [`0315167`](https://github.com/BeOnAuto/auto-engineer/commit/0315167729236a9a93dc71676f412aea90b4812e) Thanks [@SamHatoum](https://github.com/SamHatoum)! - - **pipeline**: mark settled labels and event routing bursts as done
|
|
48
|
+
|
|
49
|
+
- [`4f20028`](https://github.com/BeOnAuto/auto-engineer/commit/4f200282507647e4782bb88bfbe15a47c1d45e68) Thanks [@SamHatoum](https://github.com/SamHatoum)! - - **pipeline**: add settled labels and event routing plan to ketchup
|
|
50
|
+
|
|
51
|
+
- Updated dependencies [[`8bedd2d`](https://github.com/BeOnAuto/auto-engineer/commit/8bedd2d23673f475aa11d41c4ecc49c6cf116544), [`55d254f`](https://github.com/BeOnAuto/auto-engineer/commit/55d254f5cba939d8da86b59e2988fbd6015a4b99), [`4c00021`](https://github.com/BeOnAuto/auto-engineer/commit/4c00021fdb4f4e07e071825c61b1b2a6e53dee32), [`35f4746`](https://github.com/BeOnAuto/auto-engineer/commit/35f474680de0972db431720f7bbec37e7acf1474), [`0315167`](https://github.com/BeOnAuto/auto-engineer/commit/0315167729236a9a93dc71676f412aea90b4812e), [`4f20028`](https://github.com/BeOnAuto/auto-engineer/commit/4f200282507647e4782bb88bfbe15a47c1d45e68), [`c014d49`](https://github.com/BeOnAuto/auto-engineer/commit/c014d4975c1684484e2616894534b99199d46883), [`444e0e5`](https://github.com/BeOnAuto/auto-engineer/commit/444e0e5f2c1e7ed95b954f26ca057185fe415a84), [`bf5ab79`](https://github.com/BeOnAuto/auto-engineer/commit/bf5ab79d1d03e16b5d073a2d92704f3b7a7d922c)]:
|
|
52
|
+
- @auto-engineer/file-upload@1.107.0
|
|
53
|
+
- @auto-engineer/message-bus@1.107.0
|
|
54
|
+
|
|
3
55
|
## 1.106.0
|
|
4
56
|
|
|
5
57
|
### Minor Changes
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"generate-react-client.d.ts","sourceRoot":"","sources":["../../../src/commands/generate-react-client.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"generate-react-client.d.ts","sourceRoot":"","sources":["../../../src/commands/generate-react-client.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,KAAK,OAAO,EAAwB,KAAK,KAAK,EAAE,MAAM,4BAA4B,CAAC;AAgB5F,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"}
|
|
@@ -1,12 +1,19 @@
|
|
|
1
|
+
import fs from 'node:fs';
|
|
1
2
|
import path from 'node:path';
|
|
2
3
|
import { fileURLToPath } from 'node:url';
|
|
3
4
|
import { defineCommandHandler } from '@auto-engineer/message-bus';
|
|
4
5
|
import createDebug from 'debug';
|
|
5
6
|
import { copyStarter } from '../copy-starter.js';
|
|
6
7
|
const debug = createDebug('auto:initialize-client:command');
|
|
8
|
+
const TEMPLATE_FALLBACK = '/app/.templates/client';
|
|
7
9
|
const resolveStarterPath = () => {
|
|
8
10
|
const currentDir = path.dirname(fileURLToPath(import.meta.url));
|
|
9
|
-
|
|
11
|
+
const packagePath = path.resolve(currentDir, '../../starter');
|
|
12
|
+
if (fs.existsSync(packagePath))
|
|
13
|
+
return packagePath;
|
|
14
|
+
if (fs.existsSync(TEMPLATE_FALLBACK))
|
|
15
|
+
return TEMPLATE_FALLBACK;
|
|
16
|
+
return packagePath;
|
|
10
17
|
};
|
|
11
18
|
export const commandHandler = defineCommandHandler({
|
|
12
19
|
name: 'InitializeClient',
|
|
@@ -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,gCAAgC,CAAC,CAAC;AAE5D,MAAM,kBAAkB,GAAG,GAAW,EAAE;IACtC,MAAM,UAAU,GAAG,IAAI,CAAC,OAAO,CAAC,aAAa,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC;IAChE,
|
|
1
|
+
{"version":3,"file":"generate-react-client.js","source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 @@
|
|
|
1
|
+
{"version":3,"file":"generate-react-client.specs.d.ts","sourceRoot":"","sources":["../../../src/commands/generate-react-client.specs.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import fs from 'node:fs';
|
|
2
|
+
import { beforeEach, describe, expect, it, vi } from 'vitest';
|
|
3
|
+
import * as copyStarterModule from '../copy-starter.js';
|
|
4
|
+
vi.mock('node:fs', async (importOriginal) => {
|
|
5
|
+
const actual = await importOriginal();
|
|
6
|
+
return { ...actual, default: { ...actual, existsSync: vi.fn(() => false) } };
|
|
7
|
+
});
|
|
8
|
+
vi.mock('../copy-starter.js', () => ({
|
|
9
|
+
copyStarter: vi.fn(async () => 0),
|
|
10
|
+
}));
|
|
11
|
+
describe('InitializeClient command handler', () => {
|
|
12
|
+
beforeEach(() => {
|
|
13
|
+
vi.clearAllMocks();
|
|
14
|
+
});
|
|
15
|
+
it('uses package starter path when it exists', async () => {
|
|
16
|
+
vi.mocked(fs.existsSync).mockImplementation((p) => String(p).endsWith('/starter'));
|
|
17
|
+
const { commandHandler } = await import('./generate-react-client.js');
|
|
18
|
+
await commandHandler.handle({
|
|
19
|
+
type: 'InitializeClient',
|
|
20
|
+
data: { targetDir: '/tmp/test-client' },
|
|
21
|
+
requestId: 'req-1',
|
|
22
|
+
correlationId: 'cor-1',
|
|
23
|
+
});
|
|
24
|
+
const calledPath = vi.mocked(copyStarterModule.copyStarter).mock.calls[0][0];
|
|
25
|
+
expect(calledPath).toMatch(/\/starter$/);
|
|
26
|
+
expect(calledPath).not.toBe('/app/.templates/client');
|
|
27
|
+
});
|
|
28
|
+
it('falls back to template path when package starter missing', async () => {
|
|
29
|
+
vi.mocked(fs.existsSync).mockImplementation((p) => String(p) === '/app/.templates/client');
|
|
30
|
+
const { commandHandler } = await import('./generate-react-client.js');
|
|
31
|
+
await commandHandler.handle({
|
|
32
|
+
type: 'InitializeClient',
|
|
33
|
+
data: { targetDir: '/tmp/test-client' },
|
|
34
|
+
requestId: 'req-1',
|
|
35
|
+
correlationId: 'cor-1',
|
|
36
|
+
});
|
|
37
|
+
expect(vi.mocked(copyStarterModule.copyStarter)).toHaveBeenCalledWith('/app/.templates/client', '/tmp/test-client');
|
|
38
|
+
});
|
|
39
|
+
it('returns original package path when neither exists', async () => {
|
|
40
|
+
vi.mocked(fs.existsSync).mockReturnValue(false);
|
|
41
|
+
const { commandHandler } = await import('./generate-react-client.js');
|
|
42
|
+
await commandHandler.handle({
|
|
43
|
+
type: 'InitializeClient',
|
|
44
|
+
data: { targetDir: '/tmp/test-client' },
|
|
45
|
+
requestId: 'req-1',
|
|
46
|
+
correlationId: 'cor-1',
|
|
47
|
+
});
|
|
48
|
+
const calledPath = vi.mocked(copyStarterModule.copyStarter).mock.calls[0][0];
|
|
49
|
+
expect(calledPath).toMatch(/\/starter$/);
|
|
50
|
+
expect(calledPath).not.toBe('/app/.templates/client');
|
|
51
|
+
});
|
|
52
|
+
});
|
|
53
|
+
//# sourceMappingURL=generate-react-client.specs.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"generate-react-client.specs.js","sourceRoot":"","sources":["../../../src/commands/generate-react-client.specs.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,SAAS,CAAC;AACzB,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,EAAE,EAAE,EAAE,EAAE,EAAE,MAAM,QAAQ,CAAC;AAC9D,OAAO,KAAK,iBAAiB,MAAM,oBAAoB,CAAC;AAExD,EAAE,CAAC,IAAI,CAAC,SAAS,EAAE,KAAK,EAAE,cAAc,EAAE,EAAE;IAC1C,MAAM,MAAM,GAAG,MAAM,cAAc,EAA4B,CAAC;IAChE,OAAO,EAAE,GAAG,MAAM,EAAE,OAAO,EAAE,EAAE,GAAG,MAAM,EAAE,UAAU,EAAE,EAAE,CAAC,EAAE,CAAC,GAAG,EAAE,CAAC,KAAK,CAAC,EAAE,EAAE,CAAC;AAC/E,CAAC,CAA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@ -23,24 +23,61 @@
|
|
|
23
23
|
color-scheme: light;
|
|
24
24
|
}
|
|
25
25
|
|
|
26
|
-
/* Fix
|
|
26
|
+
/* Fix preview area - target all loading/skeleton states (light mode) */
|
|
27
|
+
.sb-preparing-story,
|
|
28
|
+
.sb-preparing-docs,
|
|
29
|
+
.sb-wrapper,
|
|
30
|
+
.sb-previewBlock,
|
|
31
|
+
.sb-previewBlock *,
|
|
32
|
+
#storybook-root,
|
|
33
|
+
#storybook-docs,
|
|
34
|
+
/* Emotion CSS classes in preview area (exclude loader) */
|
|
35
|
+
[class^="css-"]:not([class*="loader"]) {
|
|
36
|
+
background-color: #FFFFFF;
|
|
37
|
+
color-scheme: light;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
/* Make spinner transparent in light mode */
|
|
41
|
+
.sb-loader,
|
|
42
|
+
.sb-loader *,
|
|
43
|
+
[class*="loader"],
|
|
44
|
+
[class*="loader"] *,
|
|
45
|
+
/* Target SVG circles that might be spinner backgrounds */
|
|
46
|
+
.sb-loader svg,
|
|
47
|
+
.sb-loader svg circle,
|
|
48
|
+
[class*="loader"] svg,
|
|
49
|
+
[class*="loader"] svg circle {
|
|
50
|
+
fill: transparent !important;
|
|
51
|
+
background: transparent !important;
|
|
52
|
+
background-color: transparent !important;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
/* Fix preview area - dark mode */
|
|
27
56
|
html.dark .sb-preparing-story,
|
|
28
57
|
html.dark .sb-preparing-docs,
|
|
29
58
|
html.dark .sb-wrapper,
|
|
59
|
+
html.dark .sb-previewBlock,
|
|
60
|
+
html.dark .sb-previewBlock *,
|
|
30
61
|
html.dark #storybook-root,
|
|
31
|
-
html.dark #storybook-docs
|
|
62
|
+
html.dark #storybook-docs,
|
|
63
|
+
/* Emotion CSS classes in preview area - dark mode (exclude loader) */
|
|
64
|
+
html.dark [class^="css-"]:not([class*="loader"]) {
|
|
32
65
|
background-color: #1a1f2e;
|
|
33
66
|
color-scheme: dark;
|
|
34
67
|
}
|
|
35
68
|
|
|
36
|
-
/*
|
|
37
|
-
.sb-loader,
|
|
38
|
-
.sb-loader *,
|
|
39
|
-
[class*="loader"],
|
|
40
|
-
[class*="loader"]
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
69
|
+
/* Fix spinner - dark mode */
|
|
70
|
+
html.dark .sb-loader,
|
|
71
|
+
html.dark .sb-loader *,
|
|
72
|
+
html.dark [class*="loader"],
|
|
73
|
+
html.dark [class*="loader"] *,
|
|
74
|
+
html.dark .sb-loader svg,
|
|
75
|
+
html.dark .sb-loader svg circle,
|
|
76
|
+
html.dark [class*="loader"] svg,
|
|
77
|
+
html.dark [class*="loader"] svg circle {
|
|
78
|
+
fill: transparent !important;
|
|
79
|
+
background: transparent !important;
|
|
80
|
+
background-color: transparent !important;
|
|
44
81
|
}
|
|
45
82
|
|
|
46
83
|
/* Set dark background on all iframes in dark mode to reduce flash from external content */
|