@auto-engineer/pipeline 0.20.0 → 0.21.2
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/.turbo/turbo-build.log +1 -1
- package/CHANGELOG.md +20 -0
- package/dist/src/server/pipeline-server.d.ts +2 -0
- package/dist/src/server/pipeline-server.d.ts.map +1 -1
- package/dist/src/server/pipeline-server.js +3 -0
- package/dist/src/server/pipeline-server.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +3 -3
- package/src/server/pipeline-server.specs.ts +9 -0
- package/src/server/pipeline-server.ts +4 -0
- package/.turbo/turbo-test.log +0 -14
- package/.turbo/turbo-type-check.log +0 -4
- package/coverage/base.css +0 -224
- package/coverage/block-navigation.js +0 -87
- package/coverage/builder/define.ts.html +0 -2224
- package/coverage/builder/index.html +0 -116
- package/coverage/config/index.html +0 -116
- package/coverage/config/pipeline-config.ts.html +0 -181
- package/coverage/core/descriptors.ts.html +0 -397
- package/coverage/core/index.html +0 -131
- package/coverage/core/types.ts.html +0 -133
- package/coverage/coverage-final.json +0 -33
- package/coverage/favicon.png +0 -0
- package/coverage/graph/filter-graph.ts.html +0 -418
- package/coverage/graph/index.html +0 -131
- package/coverage/graph/types.ts.html +0 -172
- package/coverage/index.html +0 -266
- package/coverage/logging/event-logger.ts.html +0 -235
- package/coverage/logging/index.html +0 -116
- package/coverage/plugins/handler-adapter.ts.html +0 -148
- package/coverage/plugins/index.html +0 -131
- package/coverage/plugins/plugin-loader.ts.html +0 -691
- package/coverage/prettify.css +0 -1
- package/coverage/prettify.js +0 -2
- package/coverage/projections/await-tracker-projection.ts.html +0 -289
- package/coverage/projections/index.html +0 -221
- package/coverage/projections/item-status-projection.ts.html +0 -181
- package/coverage/projections/latest-run-projection.ts.html +0 -145
- package/coverage/projections/message-log-projection.ts.html +0 -424
- package/coverage/projections/node-status-projection.ts.html +0 -184
- package/coverage/projections/phased-execution-projection.ts.html +0 -523
- package/coverage/projections/settled-instance-projection.ts.html +0 -565
- package/coverage/projections/stats-projection.ts.html +0 -163
- package/coverage/runtime/await-tracker.ts.html +0 -271
- package/coverage/runtime/context.ts.html +0 -124
- package/coverage/runtime/event-command-map.ts.html +0 -220
- package/coverage/runtime/index.html +0 -191
- package/coverage/runtime/phased-executor.ts.html +0 -775
- package/coverage/runtime/pipeline-runtime.ts.html +0 -448
- package/coverage/runtime/settled-tracker.ts.html +0 -790
- package/coverage/server/index.html +0 -131
- package/coverage/server/pipeline-server.ts.html +0 -3253
- package/coverage/server/sse-manager.ts.html +0 -310
- package/coverage/sort-arrow-sprite.png +0 -0
- package/coverage/sorter.js +0 -210
- package/coverage/store/index.html +0 -146
- package/coverage/store/pipeline-event-store.ts.html +0 -553
- package/coverage/store/pipeline-read-model.ts.html +0 -754
- package/coverage/store/sqlite-pipeline-event-store.ts.html +0 -193
- package/coverage/testing/event-capture.ts.html +0 -280
- package/coverage/testing/index.html +0 -161
- package/coverage/testing/mock-handlers.ts.html +0 -259
- package/coverage/testing/snapshot-compare.ts.html +0 -403
- package/coverage/testing/snapshot-sanitize.ts.html +0 -136
- package/dist/src/builder/define.specs.d.ts +0 -2
- package/dist/src/builder/define.specs.d.ts.map +0 -1
- package/dist/src/builder/define.specs.js +0 -435
- package/dist/src/builder/define.specs.js.map +0 -1
- package/dist/src/core/descriptors.specs.d.ts +0 -2
- package/dist/src/core/descriptors.specs.d.ts.map +0 -1
- package/dist/src/core/descriptors.specs.js +0 -24
- package/dist/src/core/descriptors.specs.js.map +0 -1
- package/dist/src/core/types.specs.d.ts +0 -2
- package/dist/src/core/types.specs.d.ts.map +0 -1
- package/dist/src/core/types.specs.js +0 -40
- package/dist/src/core/types.specs.js.map +0 -1
- package/dist/src/graph/filter-graph.specs.d.ts +0 -2
- package/dist/src/graph/filter-graph.specs.d.ts.map +0 -1
- package/dist/src/graph/filter-graph.specs.js +0 -204
- package/dist/src/graph/filter-graph.specs.js.map +0 -1
- package/dist/src/graph/types.specs.d.ts +0 -2
- package/dist/src/graph/types.specs.d.ts.map +0 -1
- package/dist/src/graph/types.specs.js +0 -148
- package/dist/src/graph/types.specs.js.map +0 -1
- package/dist/src/logging/event-logger.specs.d.ts +0 -2
- package/dist/src/logging/event-logger.specs.d.ts.map +0 -1
- package/dist/src/logging/event-logger.specs.js +0 -81
- package/dist/src/logging/event-logger.specs.js.map +0 -1
- package/dist/src/plugins/handler-adapter.specs.d.ts +0 -2
- package/dist/src/plugins/handler-adapter.specs.d.ts.map +0 -1
- package/dist/src/plugins/handler-adapter.specs.js +0 -129
- package/dist/src/plugins/handler-adapter.specs.js.map +0 -1
- package/dist/src/plugins/plugin-loader.specs.d.ts +0 -2
- package/dist/src/plugins/plugin-loader.specs.d.ts.map +0 -1
- package/dist/src/plugins/plugin-loader.specs.js +0 -246
- package/dist/src/plugins/plugin-loader.specs.js.map +0 -1
- package/dist/src/projections/item-status-projection.specs.d.ts +0 -2
- package/dist/src/projections/item-status-projection.specs.d.ts.map +0 -1
- package/dist/src/projections/item-status-projection.specs.js +0 -119
- package/dist/src/projections/item-status-projection.specs.js.map +0 -1
- package/dist/src/projections/latest-run-projection.specs.d.ts +0 -2
- package/dist/src/projections/latest-run-projection.specs.d.ts.map +0 -1
- package/dist/src/projections/latest-run-projection.specs.js +0 -33
- package/dist/src/projections/latest-run-projection.specs.js.map +0 -1
- package/dist/src/projections/message-log-projection.specs.d.ts +0 -2
- package/dist/src/projections/message-log-projection.specs.d.ts.map +0 -1
- package/dist/src/projections/message-log-projection.specs.js +0 -101
- package/dist/src/projections/message-log-projection.specs.js.map +0 -1
- package/dist/src/projections/node-status-projection.specs.d.ts +0 -2
- package/dist/src/projections/node-status-projection.specs.d.ts.map +0 -1
- package/dist/src/projections/node-status-projection.specs.js +0 -116
- package/dist/src/projections/node-status-projection.specs.js.map +0 -1
- package/dist/src/projections/phased-execution-projection.specs.d.ts +0 -2
- package/dist/src/projections/phased-execution-projection.specs.d.ts.map +0 -1
- package/dist/src/projections/phased-execution-projection.specs.js +0 -171
- package/dist/src/projections/phased-execution-projection.specs.js.map +0 -1
- package/dist/src/projections/settled-instance-projection.specs.d.ts +0 -2
- package/dist/src/projections/settled-instance-projection.specs.d.ts.map +0 -1
- package/dist/src/projections/settled-instance-projection.specs.js +0 -217
- package/dist/src/projections/settled-instance-projection.specs.js.map +0 -1
- package/dist/src/projections/stats-projection.specs.d.ts +0 -2
- package/dist/src/projections/stats-projection.specs.d.ts.map +0 -1
- package/dist/src/projections/stats-projection.specs.js +0 -91
- package/dist/src/projections/stats-projection.specs.js.map +0 -1
- package/dist/src/runtime/await-tracker.specs.d.ts +0 -2
- package/dist/src/runtime/await-tracker.specs.d.ts.map +0 -1
- package/dist/src/runtime/await-tracker.specs.js +0 -64
- package/dist/src/runtime/await-tracker.specs.js.map +0 -1
- package/dist/src/runtime/context.specs.d.ts +0 -2
- package/dist/src/runtime/context.specs.d.ts.map +0 -1
- package/dist/src/runtime/context.specs.js +0 -26
- package/dist/src/runtime/context.specs.js.map +0 -1
- package/dist/src/runtime/event-command-map.specs.d.ts +0 -2
- package/dist/src/runtime/event-command-map.specs.d.ts.map +0 -1
- package/dist/src/runtime/event-command-map.specs.js +0 -108
- package/dist/src/runtime/event-command-map.specs.js.map +0 -1
- package/dist/src/runtime/phased-executor.specs.d.ts +0 -2
- package/dist/src/runtime/phased-executor.specs.d.ts.map +0 -1
- package/dist/src/runtime/phased-executor.specs.js +0 -418
- package/dist/src/runtime/phased-executor.specs.js.map +0 -1
- package/dist/src/runtime/pipeline-runtime.specs.d.ts +0 -2
- package/dist/src/runtime/pipeline-runtime.specs.d.ts.map +0 -1
- package/dist/src/runtime/pipeline-runtime.specs.js +0 -227
- package/dist/src/runtime/pipeline-runtime.specs.js.map +0 -1
- package/dist/src/runtime/settled-tracker.specs.d.ts +0 -2
- package/dist/src/runtime/settled-tracker.specs.d.ts.map +0 -1
- package/dist/src/runtime/settled-tracker.specs.js +0 -811
- package/dist/src/runtime/settled-tracker.specs.js.map +0 -1
- package/dist/src/server/full-orchestration.e2e.specs.d.ts +0 -2
- package/dist/src/server/full-orchestration.e2e.specs.d.ts.map +0 -1
- package/dist/src/server/full-orchestration.e2e.specs.js +0 -561
- package/dist/src/server/full-orchestration.e2e.specs.js.map +0 -1
- package/dist/src/server/pipeline-server.e2e.specs.d.ts +0 -2
- package/dist/src/server/pipeline-server.e2e.specs.d.ts.map +0 -1
- package/dist/src/server/pipeline-server.e2e.specs.js +0 -373
- package/dist/src/server/pipeline-server.e2e.specs.js.map +0 -1
- package/dist/src/server/pipeline-server.specs.d.ts +0 -2
- package/dist/src/server/pipeline-server.specs.d.ts.map +0 -1
- package/dist/src/server/pipeline-server.specs.js +0 -1407
- package/dist/src/server/pipeline-server.specs.js.map +0 -1
- package/dist/src/server/sse-manager.specs.d.ts +0 -2
- package/dist/src/server/sse-manager.specs.d.ts.map +0 -1
- package/dist/src/server/sse-manager.specs.js +0 -178
- package/dist/src/server/sse-manager.specs.js.map +0 -1
- package/dist/src/store/pipeline-event-store.specs.d.ts +0 -2
- package/dist/src/store/pipeline-event-store.specs.d.ts.map +0 -1
- package/dist/src/store/pipeline-event-store.specs.js +0 -287
- package/dist/src/store/pipeline-event-store.specs.js.map +0 -1
- package/dist/src/store/pipeline-read-model.specs.d.ts +0 -2
- package/dist/src/store/pipeline-read-model.specs.d.ts.map +0 -1
- package/dist/src/store/pipeline-read-model.specs.js +0 -830
- package/dist/src/store/pipeline-read-model.specs.js.map +0 -1
- package/dist/src/testing/event-capture.specs.d.ts +0 -2
- package/dist/src/testing/event-capture.specs.d.ts.map +0 -1
- package/dist/src/testing/event-capture.specs.js +0 -114
- package/dist/src/testing/event-capture.specs.js.map +0 -1
- package/dist/src/testing/fixtures/kanban-full.pipeline.specs.d.ts +0 -2
- package/dist/src/testing/fixtures/kanban-full.pipeline.specs.d.ts.map +0 -1
- package/dist/src/testing/fixtures/kanban-full.pipeline.specs.js +0 -263
- package/dist/src/testing/fixtures/kanban-full.pipeline.specs.js.map +0 -1
- package/dist/src/testing/fixtures/kanban.pipeline.specs.d.ts +0 -2
- package/dist/src/testing/fixtures/kanban.pipeline.specs.d.ts.map +0 -1
- package/dist/src/testing/fixtures/kanban.pipeline.specs.js +0 -29
- package/dist/src/testing/fixtures/kanban.pipeline.specs.js.map +0 -1
- package/dist/src/testing/kanban-todo.e2e.specs.d.ts +0 -2
- package/dist/src/testing/kanban-todo.e2e.specs.d.ts.map +0 -1
- package/dist/src/testing/kanban-todo.e2e.specs.js +0 -160
- package/dist/src/testing/kanban-todo.e2e.specs.js.map +0 -1
- package/dist/src/testing/mock-handlers.specs.d.ts +0 -2
- package/dist/src/testing/mock-handlers.specs.d.ts.map +0 -1
- package/dist/src/testing/mock-handlers.specs.js +0 -193
- package/dist/src/testing/mock-handlers.specs.js.map +0 -1
- package/dist/src/testing/real-execution.e2e.specs.d.ts +0 -2
- package/dist/src/testing/real-execution.e2e.specs.d.ts.map +0 -1
- package/dist/src/testing/real-execution.e2e.specs.js +0 -140
- package/dist/src/testing/real-execution.e2e.specs.js.map +0 -1
- package/dist/src/testing/real-plugin.e2e.specs.d.ts +0 -2
- package/dist/src/testing/real-plugin.e2e.specs.d.ts.map +0 -1
- package/dist/src/testing/real-plugin.e2e.specs.js +0 -65
- package/dist/src/testing/real-plugin.e2e.specs.js.map +0 -1
- package/dist/src/testing/server-startup.e2e.specs.d.ts +0 -2
- package/dist/src/testing/server-startup.e2e.specs.d.ts.map +0 -1
- package/dist/src/testing/server-startup.e2e.specs.js +0 -104
- package/dist/src/testing/server-startup.e2e.specs.js.map +0 -1
- package/dist/src/testing/snapshot-compare.specs.d.ts +0 -2
- package/dist/src/testing/snapshot-compare.specs.d.ts.map +0 -1
- package/dist/src/testing/snapshot-compare.specs.js +0 -112
- package/dist/src/testing/snapshot-compare.specs.js.map +0 -1
- package/dist/src/testing/snapshot-sanitize.specs.d.ts +0 -2
- package/dist/src/testing/snapshot-sanitize.specs.d.ts.map +0 -1
- package/dist/src/testing/snapshot-sanitize.specs.js +0 -104
- package/dist/src/testing/snapshot-sanitize.specs.js.map +0 -1
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"real-plugin.e2e.specs.js","sourceRoot":"","sources":["../../../src/testing/real-plugin.e2e.specs.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,QAAQ,CAAC;AAC1D,OAAO,EAAE,kBAAkB,EAAE,MAAM,2BAA2B,CAAC;AAC/D,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAC3D,OAAO,EAAE,gBAAgB,EAAE,MAAM,iCAAiC,CAAC;AACnE,OAAO,gBAAgB,MAAM,+BAA+B,CAAC;AAE7D,QAAQ,CAAC,iBAAiB,EAAE,GAAG,EAAE;IAC/B,UAAU,CAAC,GAAG,EAAE;QACd,gBAAgB,EAAE,CAAC;IACrB,CAAC,CAAC,CAAC;IAEH,QAAQ,CAAC,8BAA8B,EAAE,GAAG,EAAE;QAC5C,EAAE,CAAC,oDAAoD,EAAE,KAAK,IAAI,EAAE;YAClE,MAAM,MAAM,GAAG,MAAM,kBAAkB,CAAC,gBAAgB,CAAC,CAAC;YAE1D,OAAO,CAAC,GAAG,CAAC,yBAAyB,CAAC,CAAC;YACvC,OAAO,CAAC,GAAG,CAAC,0BAA0B,MAAM,CAAC,QAAQ,CAAC,MAAM,EAAE,CAAC,CAAC;YAChE,OAAO,CAAC,GAAG,CAAC,gBAAgB,EAAE,MAAM,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC;YAE7E,MAAM,CAAC,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC,eAAe,CAAC,CAAC,CAAC,CAAC;YAClD,MAAM,CAAC,MAAM,CAAC,QAAQ,CAAC,UAAU,CAAC,IAAI,CAA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CAAC;YAErB,MAAM,QAAQ,GAAG,MAAM,KAAK,CAAC,oBAAoB,MAAM,CAAC,IAAI,WAAW,CAAC,CAAC;YACzE,MAAM,QAAQ,GAAG,CAAC,MAAM,QAAQ,CAAC,IAAI,EAAE,CAItC,CAAC;YAEF,OAAO,CAAC,GAAG,CAAC,kBAAkB,CAAC,CAAC;YAChC,OAAO,CAAC,GAAG,CAAC,iBAAiB,EAAE,QAAQ,CAAC,aAAa,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC;YAClE,OAAO,CAAC,GAAG,CAAC,mBAAmB,EAAE,QAAQ,CAAC,eAAe,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC;YAEtE,MAAM,CAAC,QAAQ,CAAC,eAAe,CAAC,MAAM,CAAC,CAAC,eAAe,CAAC,CAAC,CAAC,CAAC;YAE3D,MAAM,MAAM,CAAC,IAAI,EAAE,CAAC;QACtB,CAAC,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"server-startup.e2e.specs.d.ts","sourceRoot":"","sources":["../../../src/testing/server-startup.e2e.specs.ts"],"names":[],"mappings":""}
|
|
@@ -1,104 +0,0 @@
|
|
|
1
|
-
import { afterAll, beforeAll, beforeEach, describe, expect, it } from 'vitest';
|
|
2
|
-
import { loadPipelineConfig } from '../config/pipeline-config.js';
|
|
3
|
-
import { PipelineServer } from '../server/pipeline-server.js';
|
|
4
|
-
import { resetKanbanState } from './fixtures/kanban-full.pipeline.js';
|
|
5
|
-
import kanbanTodoConfig from './fixtures/kanban-todo.config.js';
|
|
6
|
-
describe('Server Startup E2E', () => {
|
|
7
|
-
let server;
|
|
8
|
-
beforeAll(async () => {
|
|
9
|
-
const loaded = await loadPipelineConfig(kanbanTodoConfig);
|
|
10
|
-
server = new PipelineServer({ port: 0 });
|
|
11
|
-
server.registerCommandHandlers(loaded.handlers);
|
|
12
|
-
server.registerPipeline(loaded.pipeline);
|
|
13
|
-
await server.start();
|
|
14
|
-
}, 30000);
|
|
15
|
-
afterAll(async () => {
|
|
16
|
-
await server.stop();
|
|
17
|
-
});
|
|
18
|
-
beforeEach(() => {
|
|
19
|
-
resetKanbanState();
|
|
20
|
-
});
|
|
21
|
-
describe('StartServer and StartClient handlers', () => {
|
|
22
|
-
it('should have StartServer handler registered', () => {
|
|
23
|
-
const commands = server.getRegisteredCommands();
|
|
24
|
-
expect(commands).toContain('StartServer');
|
|
25
|
-
});
|
|
26
|
-
it('should have StartClient handler registered', () => {
|
|
27
|
-
const commands = server.getRegisteredCommands();
|
|
28
|
-
expect(commands).toContain('StartClient');
|
|
29
|
-
});
|
|
30
|
-
it('should expose StartServer in registry API', async () => {
|
|
31
|
-
const response = await fetch(`http://localhost:${server.port}/registry`);
|
|
32
|
-
const registry = (await response.json());
|
|
33
|
-
expect(registry.commandHandlers).toContain('StartServer');
|
|
34
|
-
const startServerMeta = registry.commandsWithMetadata.find((c) => c.name === 'StartServer');
|
|
35
|
-
expect(startServerMeta).toBeDefined();
|
|
36
|
-
expect(startServerMeta?.alias).toBe('start:server');
|
|
37
|
-
expect(startServerMeta?.description).toBe('Start the development server');
|
|
38
|
-
});
|
|
39
|
-
it('should expose StartClient in registry API', async () => {
|
|
40
|
-
const response = await fetch(`http://localhost:${server.port}/registry`);
|
|
41
|
-
const registry = (await response.json());
|
|
42
|
-
expect(registry.commandHandlers).toContain('StartClient');
|
|
43
|
-
const startClientMeta = registry.commandsWithMetadata.find((c) => c.name === 'StartClient');
|
|
44
|
-
expect(startClientMeta).toBeDefined();
|
|
45
|
-
expect(startClientMeta?.alias).toBe('start:client');
|
|
46
|
-
expect(startClientMeta?.description).toBe('Start the development client');
|
|
47
|
-
});
|
|
48
|
-
});
|
|
49
|
-
describe('Pipeline routing for StartServer and StartClient', () => {
|
|
50
|
-
it('should have ServerGenerated -> StartServer edge in pipeline graph', async () => {
|
|
51
|
-
const response = await fetch(`http://localhost:${server.port}/pipeline`);
|
|
52
|
-
const graph = (await response.json());
|
|
53
|
-
const serverGeneratedEdge = graph.edges.find((e) => e.from === 'evt:ServerGenerated' && e.to === 'cmd:StartServer');
|
|
54
|
-
expect(serverGeneratedEdge).toBeDefined();
|
|
55
|
-
});
|
|
56
|
-
it('should have ClientGenerated -> StartClient edge in pipeline graph', async () => {
|
|
57
|
-
const response = await fetch(`http://localhost:${server.port}/pipeline`);
|
|
58
|
-
const graph = (await response.json());
|
|
59
|
-
const clientGeneratedEdge = graph.edges.find((e) => e.from === 'evt:ClientGenerated' && e.to === 'cmd:StartClient');
|
|
60
|
-
expect(clientGeneratedEdge).toBeDefined();
|
|
61
|
-
});
|
|
62
|
-
});
|
|
63
|
-
describe('StartServer command dispatch', () => {
|
|
64
|
-
it('should accept StartServer command and return ServerStartFailed for missing directory', async () => {
|
|
65
|
-
const response = await fetch(`http://localhost:${server.port}/command`, {
|
|
66
|
-
method: 'POST',
|
|
67
|
-
headers: { 'Content-Type': 'application/json' },
|
|
68
|
-
body: JSON.stringify({
|
|
69
|
-
type: 'StartServer',
|
|
70
|
-
data: { serverDirectory: '/nonexistent/path' },
|
|
71
|
-
}),
|
|
72
|
-
});
|
|
73
|
-
const result = (await response.json());
|
|
74
|
-
expect(result.status).toBe('ack');
|
|
75
|
-
await new Promise((r) => setTimeout(r, 200));
|
|
76
|
-
const messagesResponse = await fetch(`http://localhost:${server.port}/messages`);
|
|
77
|
-
const messages = (await messagesResponse.json());
|
|
78
|
-
const serverEvent = messages.find((m) => m.message.type === 'ServerStarted' || m.message.type === 'ServerStartFailed');
|
|
79
|
-
expect(serverEvent).toBeDefined();
|
|
80
|
-
expect(serverEvent?.message.type).toBe('ServerStartFailed');
|
|
81
|
-
});
|
|
82
|
-
});
|
|
83
|
-
describe('StartClient command dispatch', () => {
|
|
84
|
-
it('should accept StartClient command and return ClientStartFailed for missing directory', async () => {
|
|
85
|
-
const response = await fetch(`http://localhost:${server.port}/command`, {
|
|
86
|
-
method: 'POST',
|
|
87
|
-
headers: { 'Content-Type': 'application/json' },
|
|
88
|
-
body: JSON.stringify({
|
|
89
|
-
type: 'StartClient',
|
|
90
|
-
data: { clientDirectory: '/nonexistent/path' },
|
|
91
|
-
}),
|
|
92
|
-
});
|
|
93
|
-
const result = (await response.json());
|
|
94
|
-
expect(result.status).toBe('ack');
|
|
95
|
-
await new Promise((r) => setTimeout(r, 200));
|
|
96
|
-
const messagesResponse = await fetch(`http://localhost:${server.port}/messages`);
|
|
97
|
-
const messages = (await messagesResponse.json());
|
|
98
|
-
const clientEvent = messages.find((m) => m.message.type === 'ClientStarted' || m.message.type === 'ClientStartFailed');
|
|
99
|
-
expect(clientEvent).toBeDefined();
|
|
100
|
-
expect(clientEvent?.message.type).toBe('ClientStartFailed');
|
|
101
|
-
});
|
|
102
|
-
});
|
|
103
|
-
});
|
|
104
|
-
//# sourceMappingURL=server-startup.e2e.specs.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"server-startup.e2e.specs.js","sourceRoot":"","sources":["../../../src/testing/server-startup.e2e.specs.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,QAAQ,CAAC;AAC/E,OAAO,EAAE,kBAAkB,EAAE,MAAM,2BAA2B,CAAC;AAC/D,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAC3D,OAAO,EAAE,gBAAgB,EAAE,MAAM,iCAAiC,CAAC;AACnE,OAAO,gBAAgB,MAAM,+BAA+B,CAAC;AAa7D,QAAQ,CAAC,oBAAoB,EAAE,GAAG,EAAE;IAClC,IAAI,MAAsB,CAAC;IAE3B,SAAS,CAAC,KAAK,IAAI,EAAE;QACnB,MAAM,MAAM,GAAG,MAAM,kBAAkB,CAAC,gBAAgB,CAAC,CAAC;QAC1D,MAAM,GAAG,IAAI,cAAc,CAAC,EAAE,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AAC;YAChF,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;YAElC,MAAM,IAAI,OAAO,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,UAAU,CAAC,CAAC,EAAE,GAAG,CAAC,CAAC,CAAC;YAE7C,MAAM,gBAAgB,GAAG,MAAM,KAAK,CAAC,oBAAoB,MAAM,CAAC,IAAI,WAAW,CAAC,CAAC;YACjF,MAAM,QAAQ,GAAG,CAAC,MAAM,gBAAgB,CAAC,IAAI,EAAE,CAAoB,CAAC;YAEpE,MAAM,WAAW,GAAG,QAAQ,CAAC,IAAI,CAC/B,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,OAAO,CAAC,IAAI,KAAK,eAAe,IAAI,CAAC,CAAC,OAAO,CAAC,IAAI,KAAK,mBAAmB,CACpF,CAAC;YAEF,MAAM,CAAC,WAAW,CAAC,CAAC,WAAW,EAAE,CAAC;YAClC,MAAM,CAAC,WAAW,EAAE,OAAO,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC,mBAAmB,CAAC,CAAC;QAC9D,CAAC,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"snapshot-compare.specs.d.ts","sourceRoot":"","sources":["../../../src/testing/snapshot-compare.specs.ts"],"names":[],"mappings":""}
|
|
@@ -1,112 +0,0 @@
|
|
|
1
|
-
import { describe, expect, it } from 'vitest';
|
|
2
|
-
import { compareEventSequence, containsSubsequence, findMissingEvents, findUnexpectedEvents, formatSnapshotDiff, } from './snapshot-compare.js';
|
|
3
|
-
describe('snapshot-compare', () => {
|
|
4
|
-
describe('compareEventSequence', () => {
|
|
5
|
-
it('should match identical sequences', () => {
|
|
6
|
-
const result = compareEventSequence(['A', 'B', 'C'], ['A', 'B', 'C']);
|
|
7
|
-
expect(result.matches).toBe(true);
|
|
8
|
-
expect(result.differences).toHaveLength(0);
|
|
9
|
-
});
|
|
10
|
-
it('should detect mismatches', () => {
|
|
11
|
-
const result = compareEventSequence(['A', 'B', 'C'], ['A', 'X', 'C']);
|
|
12
|
-
expect(result.matches).toBe(false);
|
|
13
|
-
expect(result.differences).toHaveLength(1);
|
|
14
|
-
expect(result.differences[0]).toEqual({
|
|
15
|
-
type: 'mismatch',
|
|
16
|
-
index: 1,
|
|
17
|
-
expected: 'B',
|
|
18
|
-
actual: 'X',
|
|
19
|
-
});
|
|
20
|
-
});
|
|
21
|
-
it('should detect missing events', () => {
|
|
22
|
-
const result = compareEventSequence(['A', 'B', 'C'], ['A', 'B']);
|
|
23
|
-
expect(result.matches).toBe(false);
|
|
24
|
-
expect(result.differences).toContainEqual({
|
|
25
|
-
type: 'missing',
|
|
26
|
-
index: 2,
|
|
27
|
-
expected: 'C',
|
|
28
|
-
});
|
|
29
|
-
});
|
|
30
|
-
it('should detect extra events', () => {
|
|
31
|
-
const result = compareEventSequence(['A', 'B'], ['A', 'B', 'C']);
|
|
32
|
-
expect(result.matches).toBe(false);
|
|
33
|
-
expect(result.differences).toContainEqual({
|
|
34
|
-
type: 'extra',
|
|
35
|
-
index: 2,
|
|
36
|
-
actual: 'C',
|
|
37
|
-
});
|
|
38
|
-
});
|
|
39
|
-
it('should report counts', () => {
|
|
40
|
-
const result = compareEventSequence(['A', 'B', 'C'], ['A', 'B']);
|
|
41
|
-
expect(result.expectedCount).toBe(3);
|
|
42
|
-
expect(result.actualCount).toBe(2);
|
|
43
|
-
});
|
|
44
|
-
});
|
|
45
|
-
describe('containsSubsequence', () => {
|
|
46
|
-
it('should find exact subsequence', () => {
|
|
47
|
-
expect(containsSubsequence(['A', 'B', 'C', 'D'], ['B', 'C'])).toBe(true);
|
|
48
|
-
});
|
|
49
|
-
it('should find non-contiguous subsequence', () => {
|
|
50
|
-
expect(containsSubsequence(['A', 'B', 'C', 'D'], ['A', 'C'])).toBe(true);
|
|
51
|
-
});
|
|
52
|
-
it('should return false for missing subsequence', () => {
|
|
53
|
-
expect(containsSubsequence(['A', 'B', 'C'], ['X', 'Y'])).toBe(false);
|
|
54
|
-
});
|
|
55
|
-
it('should return true for empty subsequence', () => {
|
|
56
|
-
expect(containsSubsequence(['A', 'B'], [])).toBe(true);
|
|
57
|
-
});
|
|
58
|
-
it('should return false for empty sequence with non-empty subsequence', () => {
|
|
59
|
-
expect(containsSubsequence([], ['A'])).toBe(false);
|
|
60
|
-
});
|
|
61
|
-
it('should require order', () => {
|
|
62
|
-
expect(containsSubsequence(['A', 'B', 'C'], ['C', 'A'])).toBe(false);
|
|
63
|
-
});
|
|
64
|
-
});
|
|
65
|
-
describe('findMissingEvents', () => {
|
|
66
|
-
it('should find missing events', () => {
|
|
67
|
-
const missing = findMissingEvents(['A', 'B', 'C'], ['A', 'B', 'D']);
|
|
68
|
-
expect(missing).toEqual(['D']);
|
|
69
|
-
});
|
|
70
|
-
it('should return empty for all present', () => {
|
|
71
|
-
const missing = findMissingEvents(['A', 'B', 'C'], ['A', 'B']);
|
|
72
|
-
expect(missing).toEqual([]);
|
|
73
|
-
});
|
|
74
|
-
});
|
|
75
|
-
describe('findUnexpectedEvents', () => {
|
|
76
|
-
it('should find unexpected events', () => {
|
|
77
|
-
const unexpected = findUnexpectedEvents(['A', 'B', 'X'], ['A', 'B', 'C']);
|
|
78
|
-
expect(unexpected).toEqual(['X']);
|
|
79
|
-
});
|
|
80
|
-
it('should return empty when all allowed', () => {
|
|
81
|
-
const unexpected = findUnexpectedEvents(['A', 'B'], ['A', 'B', 'C']);
|
|
82
|
-
expect(unexpected).toEqual([]);
|
|
83
|
-
});
|
|
84
|
-
});
|
|
85
|
-
describe('formatSnapshotDiff', () => {
|
|
86
|
-
it('should format matching result', () => {
|
|
87
|
-
const result = compareEventSequence(['A', 'B'], ['A', 'B']);
|
|
88
|
-
const formatted = formatSnapshotDiff(result);
|
|
89
|
-
expect(formatted).toContain('✓');
|
|
90
|
-
expect(formatted).toContain('matches');
|
|
91
|
-
});
|
|
92
|
-
it('should format mismatching result', () => {
|
|
93
|
-
const result = compareEventSequence(['A', 'B'], ['A', 'X']);
|
|
94
|
-
const formatted = formatSnapshotDiff(result);
|
|
95
|
-
expect(formatted).toContain('✗');
|
|
96
|
-
expect(formatted).toContain('mismatch');
|
|
97
|
-
expect(formatted).toContain('Expected "B"');
|
|
98
|
-
expect(formatted).toContain('got "X"');
|
|
99
|
-
});
|
|
100
|
-
it('should format missing events', () => {
|
|
101
|
-
const result = compareEventSequence(['A', 'B', 'C'], ['A', 'B']);
|
|
102
|
-
const formatted = formatSnapshotDiff(result);
|
|
103
|
-
expect(formatted).toContain('Missing "C"');
|
|
104
|
-
});
|
|
105
|
-
it('should format extra events', () => {
|
|
106
|
-
const result = compareEventSequence(['A', 'B'], ['A', 'B', 'C']);
|
|
107
|
-
const formatted = formatSnapshotDiff(result);
|
|
108
|
-
expect(formatted).toContain('Unexpected "C"');
|
|
109
|
-
});
|
|
110
|
-
});
|
|
111
|
-
});
|
|
112
|
-
//# sourceMappingURL=snapshot-compare.specs.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"snapshot-compare.specs.js","sourceRoot":"","sources":["../../../src/testing/snapshot-compare.specs.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,QAAQ,CAAC;AAC9C,OAAO,EACL,oBAAoB,EACpB,mBAAmB,EACnB,iBAAiB,EACjB,oBAAoB,EACpB,kBAAkB,GACnB,MAAM,oBAAoB,CAAC;AAE5B,QAAQ,CAAC,kBAAkB,EAAE,GAAG,EAAE;IAChC,QAAQ,CAAC,sBAAsB,EAAE,GAAG,EAAE;QACpC,EAAE,CAAC,kCAAkC,EAAE,GAAG,EAAE;YAC1C,MAAM,MAAM,GAAG,oBAAoB,CAAC,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,CAAC,EAAE,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,CA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,CAAC;QAChD,CAAC,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"snapshot-sanitize.specs.d.ts","sourceRoot":"","sources":["../../../src/testing/snapshot-sanitize.specs.ts"],"names":[],"mappings":""}
|
|
@@ -1,104 +0,0 @@
|
|
|
1
|
-
import { describe, expect, it } from 'vitest';
|
|
2
|
-
import { sanitizeEvent, sanitizeEvents } from './snapshot-sanitize.js';
|
|
3
|
-
describe('snapshot-sanitize', () => {
|
|
4
|
-
describe('sanitizeEvent', () => {
|
|
5
|
-
it('should preserve type and data', () => {
|
|
6
|
-
const event = {
|
|
7
|
-
type: 'TestEvent',
|
|
8
|
-
data: { foo: 'bar', count: 42 },
|
|
9
|
-
};
|
|
10
|
-
const sanitized = sanitizeEvent(event);
|
|
11
|
-
expect(sanitized.type).toBe('TestEvent');
|
|
12
|
-
expect(sanitized.data).toEqual({ foo: 'bar', count: 42 });
|
|
13
|
-
});
|
|
14
|
-
it('should strip timestamp', () => {
|
|
15
|
-
const event = {
|
|
16
|
-
type: 'TestEvent',
|
|
17
|
-
data: {},
|
|
18
|
-
timestamp: new Date('2025-01-01T00:00:00.000Z'),
|
|
19
|
-
};
|
|
20
|
-
const sanitized = sanitizeEvent(event);
|
|
21
|
-
expect(sanitized).not.toHaveProperty('timestamp');
|
|
22
|
-
});
|
|
23
|
-
it('should strip requestId', () => {
|
|
24
|
-
const event = {
|
|
25
|
-
type: 'TestEvent',
|
|
26
|
-
data: {},
|
|
27
|
-
requestId: 'req-12345',
|
|
28
|
-
};
|
|
29
|
-
const sanitized = sanitizeEvent(event);
|
|
30
|
-
expect(sanitized).not.toHaveProperty('requestId');
|
|
31
|
-
});
|
|
32
|
-
it('should strip correlationId', () => {
|
|
33
|
-
const event = {
|
|
34
|
-
type: 'TestEvent',
|
|
35
|
-
data: {},
|
|
36
|
-
correlationId: 'corr-67890',
|
|
37
|
-
};
|
|
38
|
-
const sanitized = sanitizeEvent(event);
|
|
39
|
-
expect(sanitized).not.toHaveProperty('correlationId');
|
|
40
|
-
});
|
|
41
|
-
it('should strip all volatile fields at once', () => {
|
|
42
|
-
const event = {
|
|
43
|
-
type: 'CompleteEvent',
|
|
44
|
-
data: { result: 'success' },
|
|
45
|
-
timestamp: new Date('2025-01-01T00:00:00.000Z'),
|
|
46
|
-
requestId: 'req-abc',
|
|
47
|
-
correlationId: 'corr-xyz',
|
|
48
|
-
};
|
|
49
|
-
const sanitized = sanitizeEvent(event);
|
|
50
|
-
expect(sanitized).toEqual({
|
|
51
|
-
type: 'CompleteEvent',
|
|
52
|
-
data: { result: 'success' },
|
|
53
|
-
});
|
|
54
|
-
});
|
|
55
|
-
it('should return a new object (not mutate original)', () => {
|
|
56
|
-
const testDate = new Date('2025-01-01T00:00:00.000Z');
|
|
57
|
-
const event = {
|
|
58
|
-
type: 'TestEvent',
|
|
59
|
-
data: { value: 1 },
|
|
60
|
-
timestamp: testDate,
|
|
61
|
-
};
|
|
62
|
-
const sanitized = sanitizeEvent(event);
|
|
63
|
-
expect(event.timestamp).toBe(testDate);
|
|
64
|
-
expect(sanitized).not.toBe(event);
|
|
65
|
-
});
|
|
66
|
-
});
|
|
67
|
-
describe('sanitizeEvents', () => {
|
|
68
|
-
it('should sanitize empty array', () => {
|
|
69
|
-
const result = sanitizeEvents([]);
|
|
70
|
-
expect(result).toEqual([]);
|
|
71
|
-
});
|
|
72
|
-
it('should sanitize multiple events', () => {
|
|
73
|
-
const events = [
|
|
74
|
-
{ type: 'First', data: { a: 1 }, timestamp: new Date(), requestId: 'r1' },
|
|
75
|
-
{ type: 'Second', data: { b: 2 }, correlationId: 'c2' },
|
|
76
|
-
{ type: 'Third', data: { c: 3 } },
|
|
77
|
-
];
|
|
78
|
-
const sanitized = sanitizeEvents(events);
|
|
79
|
-
expect(sanitized).toEqual([
|
|
80
|
-
{ type: 'First', data: { a: 1 } },
|
|
81
|
-
{ type: 'Second', data: { b: 2 } },
|
|
82
|
-
{ type: 'Third', data: { c: 3 } },
|
|
83
|
-
]);
|
|
84
|
-
});
|
|
85
|
-
it('should preserve event order', () => {
|
|
86
|
-
const events = [
|
|
87
|
-
{ type: 'A', data: {} },
|
|
88
|
-
{ type: 'B', data: {} },
|
|
89
|
-
{ type: 'C', data: {} },
|
|
90
|
-
];
|
|
91
|
-
const sanitized = sanitizeEvents(events);
|
|
92
|
-
expect(sanitized.map((e) => e.type)).toEqual(['A', 'B', 'C']);
|
|
93
|
-
});
|
|
94
|
-
});
|
|
95
|
-
describe('SanitizedEvent type', () => {
|
|
96
|
-
it('should be assignable from sanitizeEvent result', () => {
|
|
97
|
-
const event = { type: 'Test', data: { x: 1 } };
|
|
98
|
-
const sanitized = sanitizeEvent(event);
|
|
99
|
-
expect(sanitized.type).toBe('Test');
|
|
100
|
-
expect(sanitized.data).toEqual({ x: 1 });
|
|
101
|
-
});
|
|
102
|
-
});
|
|
103
|
-
});
|
|
104
|
-
//# sourceMappingURL=snapshot-sanitize.specs.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"snapshot-sanitize.specs.js","sourceRoot":"","sources":["../../../src/testing/snapshot-sanitize.specs.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,QAAQ,CAAC;AAC9C,OAAO,EAAuB,aAAa,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAEzF,QAAQ,CAAC,mBAAmB,EAAE,GAAG,EAAE;IACjC,QAAQ,CAAC,eAAe,EAAE,GAAG,EAAE;QAC7B,EAAE,CAAC,+BAA+B,EAAE,GAAG,EAAE;YACvC,MAAM,KAAK,GAAU;gBACnB,IAAI,EAAE,WAAW;gBACjB,IAAI,EAAE,EAAE,GAAG,EAAE,KAAK,EAAE,KAAK,EAAE,EAAE,EAAE;aAChC,CAAC;YAEF,MAAM,SAAS,GAAG,aAAa,CAAC,KAAK,CAA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