Skip to content

Commit 4944845

Browse files
bloveclaude
andauthored
chore(cockpit): unify render + deep-agents cap prefixes (r-* / da-*) (#449)
* docs: cockpit cap prefix unification design (render + deep-agents) Threads B + C of Task #2 (rename + structural-consistency sweep). Brings render to uniform r-* and deep-agents to uniform da-*, matching chat's already-uniform c-*. 9 caps × ~8 files each = ~72 file touches, one atomic commit per cap to keep registry id + graphName in lockstep. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com> * docs: cap prefix unification implementation plan 12 tasks. 9 per-cap atomic commits (rename pattern × 5 files per cap) + 1 cumulative script update + 1 verification gate + 1 orchestrator push/PR/merge. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com> * chore(cockpit-render): rename spec-rendering → r-spec-rendering Adds the r- prefix for consistency with the rest of the render product (r-registry already prefixed). Updates registry id + graphName and the per-cap langgraph.json graph key in lockstep. Production deploy creates a new LangSmith assistant under r-spec-rendering. The old spec-rendering assistant becomes orphaned post-merge; manual cleanup via LangSmith dashboard. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com> * chore(cockpit-render): rename element-rendering → r-element-rendering Adds the r- prefix for consistency with the rest of the render product. Updates registry id + graphName and the per-cap langgraph.json graph key in lockstep. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com> * chore(cockpit-render): rename state-management → r-state-management Adds the r- prefix for consistency with the rest of the render product. Updates registry id + graphName and the per-cap langgraph.json graph key in lockstep. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com> * chore(cockpit-render): rename repeat-loops → r-repeat-loops Adds the r- prefix for consistency with the rest of the render product. Updates registry id + graphName and the per-cap langgraph.json graph key in lockstep. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com> * chore(cockpit-render): rename computed-functions → r-computed-functions Adds the r- prefix for consistency with the rest of the render product. Updates registry id + graphName and the per-cap langgraph.json graph key in lockstep. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com> * chore(cockpit-deep-agents): rename planning → da-planning Adds the da- prefix for consistency with the rest of the deep-agents product (da-subagents, da-memory already prefixed). Updates registry id + graphName, per-cap langgraph.json graph key, guide.md code snippet, and both Angular environment streamingAssistantId values in lockstep. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com> * chore(cockpit-deep-agents): rename filesystem → da-filesystem Adds the da- prefix for consistency with the rest of the deep-agents product. Updates registry id + graphName, per-cap langgraph.json graph key, guide.md code snippet, and both Angular environment streamingAssistantId values in lockstep. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com> * chore(cockpit-deep-agents): rename skills → da-skills Adds the da- prefix for consistency with the rest of the deep-agents product. Updates registry id + graphName, per-cap langgraph.json graph key, guide.md code snippet, and both Angular environment streamingAssistantId values in lockstep. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com> * chore(cockpit-deep-agents): rename sandboxes → da-sandboxes Adds the da- prefix for consistency with the rest of the deep-agents product. Updates registry id + graphName, per-cap langgraph.json graph key, guide.md code snippet, and both Angular environment streamingAssistantId values in lockstep. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com> * chore(scripts): update update-angular-environments.ts for renamed caps Companion to the 9 per-cap rename commits. Updates the script's hardcoded assistantId mappings for the 4 deep-agents caps so future re-runs preserve the correct streamingAssistantId values per environment. (Render caps are not represented in this script.) Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent cfdf705 commit 4944845

25 files changed

Lines changed: 886 additions & 43 deletions

File tree

apps/cockpit/scripts/capability-registry.ts

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -22,19 +22,19 @@ export const capabilities: readonly Capability[] = [
2222
{ id: 'subgraphs', product: 'langgraph', topic: 'subgraphs', angularProject: 'cockpit-langgraph-subgraphs-angular', port: 4305, pythonDir: 'cockpit/langgraph/subgraphs/python', graphName: 'subgraphs' },
2323
{ id: 'time-travel', product: 'langgraph', topic: 'time-travel', angularProject: 'cockpit-langgraph-time-travel-angular', port: 4306, pythonDir: 'cockpit/langgraph/time-travel/python', graphName: 'time-travel' },
2424
{ id: 'deployment-runtime', product: 'langgraph', topic: 'deployment-runtime', angularProject: 'cockpit-langgraph-deployment-runtime-angular', port: 4307, pythonDir: 'cockpit/langgraph/deployment-runtime/python', graphName: 'deployment-runtime' },
25-
{ id: 'planning', product: 'deep-agents', topic: 'planning', angularProject: 'cockpit-deep-agents-planning-angular', port: 4310, pythonDir: 'cockpit/deep-agents/planning/python', graphName: 'planning' },
26-
{ id: 'filesystem', product: 'deep-agents', topic: 'filesystem', angularProject: 'cockpit-deep-agents-filesystem-angular', port: 4311, pythonDir: 'cockpit/deep-agents/filesystem/python', graphName: 'filesystem' },
25+
{ id: 'da-planning', product: 'deep-agents', topic: 'planning', angularProject: 'cockpit-deep-agents-planning-angular', port: 4310, pythonDir: 'cockpit/deep-agents/planning/python', graphName: 'da-planning' },
26+
{ id: 'da-filesystem', product: 'deep-agents', topic: 'filesystem', angularProject: 'cockpit-deep-agents-filesystem-angular', port: 4311, pythonDir: 'cockpit/deep-agents/filesystem/python', graphName: 'da-filesystem' },
2727
{ id: 'da-subagents', product: 'deep-agents', topic: 'subagents', angularProject: 'cockpit-deep-agents-subagents-angular', port: 4312, pythonDir: 'cockpit/deep-agents/subagents/python', graphName: 'subagents' },
2828
{ id: 'da-memory', product: 'deep-agents', topic: 'memory', angularProject: 'cockpit-deep-agents-memory-angular', port: 4313, pythonDir: 'cockpit/deep-agents/memory/python', graphName: 'da-memory' },
29-
{ id: 'skills', product: 'deep-agents', topic: 'skills', angularProject: 'cockpit-deep-agents-skills-angular', port: 4314, pythonDir: 'cockpit/deep-agents/skills/python', graphName: 'skills' },
30-
{ id: 'sandboxes', product: 'deep-agents', topic: 'sandboxes', angularProject: 'cockpit-deep-agents-sandboxes-angular', port: 4315, pythonDir: 'cockpit/deep-agents/sandboxes/python', graphName: 'sandboxes' },
29+
{ 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' },
30+
{ 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' },
3131
// Render capabilities
32-
{ id: 'spec-rendering', product: 'render', topic: 'spec-rendering', angularProject: 'cockpit-render-spec-rendering-angular', port: 4401, pythonDir: 'cockpit/render/spec-rendering/python', graphName: 'spec-rendering' },
33-
{ id: 'element-rendering', product: 'render', topic: 'element-rendering', angularProject: 'cockpit-render-element-rendering-angular', port: 4402, pythonDir: 'cockpit/render/element-rendering/python', graphName: 'element-rendering' },
34-
{ id: 'state-management', product: 'render', topic: 'state-management', angularProject: 'cockpit-render-state-management-angular', port: 4403, pythonDir: 'cockpit/render/state-management/python', graphName: 'state-management' },
32+
{ 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' },
33+
{ 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' },
34+
{ 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' },
3535
{ id: 'r-registry', product: 'render', topic: 'registry', angularProject: 'cockpit-render-registry-angular', port: 4404, pythonDir: 'cockpit/render/registry/python', graphName: 'r-registry' },
36-
{ id: 'repeat-loops', product: 'render', topic: 'repeat-loops', angularProject: 'cockpit-render-repeat-loops-angular', port: 4405, pythonDir: 'cockpit/render/repeat-loops/python', graphName: 'repeat-loops' },
37-
{ id: 'computed-functions', product: 'render', topic: 'computed-functions', angularProject: 'cockpit-render-computed-functions-angular', port: 4406, pythonDir: 'cockpit/render/computed-functions/python', graphName: 'computed-functions' },
36+
{ 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' },
37+
{ 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' },
3838
// Chat capabilities
3939
{ id: 'c-messages', product: 'chat', topic: 'messages', angularProject: 'cockpit-chat-messages-angular', port: 4501, pythonPort: 5501, pythonDir: 'cockpit/chat/messages/python', graphName: 'c-messages' },
4040
{ id: 'c-input', product: 'chat', topic: 'input', angularProject: 'cockpit-chat-input-angular', port: 4502, pythonPort: 5502, pythonDir: 'cockpit/chat/input/python', graphName: 'c-input' },

cockpit/deep-agents/filesystem/angular/src/environments/environment.development.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,5 @@
77
export const environment = {
88
production: false,
99
langGraphApiUrl: 'http://localhost:4311/api',
10-
streamingAssistantId: 'filesystem',
10+
streamingAssistantId: 'da-filesystem',
1111
};

cockpit/deep-agents/filesystem/angular/src/environments/environment.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,5 @@
77
export const environment = {
88
production: true,
99
langGraphApiUrl: '/api',
10-
streamingAssistantId: 'filesystem',
10+
streamingAssistantId: 'da-filesystem',
1111
};

cockpit/deep-agents/filesystem/python/docs/guide.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ import { agent } from '@ngaf/langgraph';
4242

4343
export class FilesystemComponent {
4444
protected readonly stream = agent({
45-
assistantId: 'filesystem',
45+
assistantId: 'da-filesystem',
4646
});
4747
}
4848
```
@@ -64,7 +64,7 @@ interface ToolCallEntry {
6464
}
6565

6666
export class FilesystemComponent {
67-
protected readonly stream = agent({ assistantId: 'filesystem' });
67+
protected readonly stream = agent({ assistantId: 'da-filesystem' });
6868

6969
toolCallEntries = computed(() => {
7070
const msg = this.stream.messages();

cockpit/deep-agents/filesystem/python/langgraph.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"graphs": {
3-
"filesystem": "./src/graph.py:graph"
3+
"da-filesystem": "./src/graph.py:graph"
44
},
55
"dependencies": [
66
"."

cockpit/deep-agents/planning/angular/src/environments/environment.development.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,5 @@
77
export const environment = {
88
production: false,
99
langGraphApiUrl: 'http://localhost:4310/api',
10-
streamingAssistantId: 'planning',
10+
streamingAssistantId: 'da-planning',
1111
};

cockpit/deep-agents/planning/angular/src/environments/environment.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,5 @@
77
export const environment = {
88
production: true,
99
langGraphApiUrl: '/api',
10-
streamingAssistantId: 'planning',
10+
streamingAssistantId: 'da-planning',
1111
};

cockpit/deep-agents/planning/python/docs/guide.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ import { agent } from '@ngaf/langgraph';
4242

4343
export class PlanningComponent {
4444
protected readonly stream = agent({
45-
assistantId: 'planning',
45+
assistantId: 'da-planning',
4646
});
4747
}
4848
```
@@ -63,7 +63,7 @@ interface PlanStep {
6363
}
6464

6565
export class PlanningComponent {
66-
protected readonly stream = agent({ assistantId: 'planning' });
66+
protected readonly stream = agent({ assistantId: 'da-planning' });
6767

6868
planSteps = computed(() => {
6969
const val = this.stream.value() as { plan?: PlanStep[] } | undefined;

cockpit/deep-agents/planning/python/langgraph.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"graphs": {
3-
"planning": "./src/graph.py:graph"
3+
"da-planning": "./src/graph.py:graph"
44
},
55
"dependencies": [
66
"."

cockpit/deep-agents/sandboxes/angular/src/environments/environment.development.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,5 @@
77
export const environment = {
88
production: false,
99
langGraphApiUrl: 'http://localhost:4315/api',
10-
streamingAssistantId: 'sandboxes',
10+
streamingAssistantId: 'da-sandboxes',
1111
};

0 commit comments

Comments
 (0)