Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions apps/cockpit/scripts/capability-registry.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,12 @@ export const capabilities: readonly Capability[] = [
{ id: 'da-skills', product: 'deep-agents', topic: 'skills', angularProject: 'cockpit-deep-agents-skills-angular', port: 4314, pythonDir: 'cockpit/deep-agents/skills/python', graphName: 'da-skills' },
{ id: 'da-sandboxes', product: 'deep-agents', topic: 'sandboxes', angularProject: 'cockpit-deep-agents-sandboxes-angular', port: 4315, pythonDir: 'cockpit/deep-agents/sandboxes/python', graphName: 'da-sandboxes' },
// Render capabilities
{ id: 'r-spec-rendering', product: 'render', topic: 'spec-rendering', angularProject: 'cockpit-render-spec-rendering-angular', port: 4401, pythonDir: 'cockpit/render/spec-rendering/python', graphName: 'r-spec-rendering' },
{ id: 'r-element-rendering', product: 'render', topic: 'element-rendering', angularProject: 'cockpit-render-element-rendering-angular', port: 4402, pythonDir: 'cockpit/render/element-rendering/python', graphName: 'r-element-rendering' },
{ id: 'r-state-management', product: 'render', topic: 'state-management', angularProject: 'cockpit-render-state-management-angular', port: 4403, pythonDir: 'cockpit/render/state-management/python', graphName: 'r-state-management' },
{ id: 'r-registry', product: 'render', topic: 'registry', angularProject: 'cockpit-render-registry-angular', port: 4404, pythonDir: 'cockpit/render/registry/python', graphName: 'r-registry' },
{ id: 'r-repeat-loops', product: 'render', topic: 'repeat-loops', angularProject: 'cockpit-render-repeat-loops-angular', port: 4405, pythonDir: 'cockpit/render/repeat-loops/python', graphName: 'r-repeat-loops' },
{ id: 'r-computed-functions', product: 'render', topic: 'computed-functions', angularProject: 'cockpit-render-computed-functions-angular', port: 4406, pythonDir: 'cockpit/render/computed-functions/python', graphName: 'r-computed-functions' },
{ id: 'r-spec-rendering', product: 'render', topic: 'spec-rendering', angularProject: 'cockpit-render-spec-rendering-angular', port: 4401, pythonPort: 5401, pythonDir: 'cockpit/render/spec-rendering/python', graphName: 'r-spec-rendering' },
{ id: 'r-element-rendering', product: 'render', topic: 'element-rendering', angularProject: 'cockpit-render-element-rendering-angular', port: 4402, pythonPort: 5402, pythonDir: 'cockpit/render/element-rendering/python', graphName: 'r-element-rendering' },
{ id: 'r-state-management', product: 'render', topic: 'state-management', angularProject: 'cockpit-render-state-management-angular', port: 4403, pythonPort: 5403, pythonDir: 'cockpit/render/state-management/python', graphName: 'r-state-management' },
{ id: 'r-registry', product: 'render', topic: 'registry', angularProject: 'cockpit-render-registry-angular', port: 4404, pythonPort: 5404, pythonDir: 'cockpit/render/registry/python', graphName: 'r-registry' },
{ id: 'r-repeat-loops', product: 'render', topic: 'repeat-loops', angularProject: 'cockpit-render-repeat-loops-angular', port: 4405, pythonPort: 5405, pythonDir: 'cockpit/render/repeat-loops/python', graphName: 'r-repeat-loops' },
{ id: 'r-computed-functions', product: 'render', topic: 'computed-functions', angularProject: 'cockpit-render-computed-functions-angular', port: 4406, pythonPort: 5406, pythonDir: 'cockpit/render/computed-functions/python', graphName: 'r-computed-functions' },
// Chat capabilities
{ id: 'c-messages', product: 'chat', topic: 'messages', angularProject: 'cockpit-chat-messages-angular', port: 4501, pythonPort: 5501, pythonDir: 'cockpit/chat/messages/python', graphName: 'c-messages' },
{ id: 'c-input', product: 'chat', topic: 'input', angularProject: 'cockpit-chat-input-angular', port: 4502, pythonPort: 5502, pythonDir: 'cockpit/chat/input/python', graphName: 'c-input' },
Expand Down
20 changes: 20 additions & 0 deletions cockpit/render/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# cockpit/render — aimock e2e: not applicable

The 6 render capability demos (`spec-rendering`, `element-rendering`, `state-management`, `registry`, `repeat-loops`, `computed-functions`) intentionally ship **without** aimock-driven Playwright e2e suites. The cockpit aimock pattern drives demos by typing a prompt into a `<chat-input>` and asserting on the rendered conversation, but render demos have a fundamentally different shape:

- **No chat-input**: render demos use a spec picker (hardcoded sample specs in `app/specs.ts`) instead of a chat surface.
- **No LLM backend wiring at the UI**: each cap's python backend exists for the LangGraph manifest, but the Angular demo uses an in-process `StreamingSimulator` (see `cockpit/render/shared/streaming-simulator.ts`) to stream the chosen spec locally rather than calling the backend.
- **No chat-message bubbles**: the cap renders directly via `<render-spec>` / `<render-element>` primitives from `@ngaf/render`.

The right testing approach here is **direct component testing of the render pipeline**:
- Mount the `RenderSpecComponent` with a fixture spec.
- Assert the rendered DOM matches expectations.
- Exercise the StreamingSimulator's partial-state behavior in unit tests.

Existing coverage:
- `cockpit/render/shared/streaming-simulator.spec.ts` — vitest unit tests.
- `cockpit/render/matrix.spec.ts` + `cockpit/render/footprint.spec.ts` — vitest structural checks.

If a render-specific e2e harness is desired in the future (visual diffs, interactive scrubbing), it would be a separate cycle. The aimock pattern from cockpit-chat / cockpit-langgraph caps does not fit.

This file is the deliberate "no e2e" marker matching the c-debug README (`cockpit/chat/debug/angular/e2e/README.md`).
6 changes: 4 additions & 2 deletions cockpit/render/computed-functions/angular/proxy.conf.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
{
"/api": {
"target": "http://localhost:8123",
"target": "http://localhost:5406",
"secure": false,
"changeOrigin": true,
"pathRewrite": { "^/api": "" },
"pathRewrite": {
"^/api": ""
},
"ws": true
}
}
6 changes: 4 additions & 2 deletions cockpit/render/element-rendering/angular/proxy.conf.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
{
"/api": {
"target": "http://localhost:8123",
"target": "http://localhost:5402",
"secure": false,
"changeOrigin": true,
"pathRewrite": { "^/api": "" },
"pathRewrite": {
"^/api": ""
},
"ws": true
}
}
6 changes: 4 additions & 2 deletions cockpit/render/registry/angular/proxy.conf.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
{
"/api": {
"target": "http://localhost:8123",
"target": "http://localhost:5404",
"secure": false,
"changeOrigin": true,
"pathRewrite": { "^/api": "" },
"pathRewrite": {
"^/api": ""
},
"ws": true
}
}
6 changes: 4 additions & 2 deletions cockpit/render/repeat-loops/angular/proxy.conf.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
{
"/api": {
"target": "http://localhost:8123",
"target": "http://localhost:5405",
"secure": false,
"changeOrigin": true,
"pathRewrite": { "^/api": "" },
"pathRewrite": {
"^/api": ""
},
"ws": true
}
}
6 changes: 4 additions & 2 deletions cockpit/render/spec-rendering/angular/proxy.conf.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
{
"/api": {
"target": "http://localhost:8123",
"target": "http://localhost:5401",
"secure": false,
"changeOrigin": true,
"pathRewrite": { "^/api": "" },
"pathRewrite": {
"^/api": ""
},
"ws": true
}
}
6 changes: 4 additions & 2 deletions cockpit/render/state-management/angular/proxy.conf.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
{
"/api": {
"target": "http://localhost:8123",
"target": "http://localhost:5403",
"secure": false,
"changeOrigin": true,
"pathRewrite": { "^/api": "" },
"pathRewrite": {
"^/api": ""
},
"ws": true
}
}