@salesforce/metadata-plugins 1.4.0 → 1.6.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/README.md +30 -3
- package/dist/index.d.ts +3 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +4 -0
- package/dist/plugins/agent/AgentParser.d.ts +7 -1
- package/dist/plugins/agent/AgentParser.d.ts.map +1 -1
- package/dist/plugins/agent/AgentParser.js +9 -0
- package/dist/plugins/agent/agentSelectionGraph.d.ts +101 -0
- package/dist/plugins/agent/agentSelectionGraph.d.ts.map +1 -0
- package/dist/plugins/agent/agentSelectionGraph.js +407 -0
- package/dist/plugins/agent/extract/ast-to-graph.d.ts +2 -0
- package/dist/plugins/agent/extract/ast-to-graph.d.ts.map +1 -1
- package/dist/plugins/agent/extract/ast-to-graph.js +1 -0
- package/dist/plugins/agent/ui/assets/index-C_Q6Mc2L.js +71 -0
- package/dist/plugins/agent/ui/assets/index-DX8JtDoL.css +1 -0
- package/dist/plugins/agent/ui/index.html +2 -2
- package/dist/plugins/flexipage/FlexipageParser.d.ts +12 -1
- package/dist/plugins/flexipage/FlexipageParser.d.ts.map +1 -1
- package/dist/plugins/flexipage/FlexipageParser.js +14 -0
- package/dist/plugins/flexipage/ui/assets/index-CuJYcAx_.js +48 -0
- package/dist/plugins/flexipage/ui/assets/index-DBy19jKB.css +1 -0
- package/dist/plugins/flexipage/ui/index.html +2 -2
- package/dist/plugins/flow/FlowParser.d.ts +43 -0
- package/dist/plugins/flow/FlowParser.d.ts.map +1 -0
- package/dist/plugins/flow/FlowParser.js +250 -0
- package/dist/plugins/flow/FlowVisualizer.d.ts +28 -0
- package/dist/plugins/flow/FlowVisualizer.d.ts.map +1 -0
- package/dist/plugins/flow/FlowVisualizer.js +36 -0
- package/dist/plugins/flow/flowSelectionGraph.d.ts +71 -0
- package/dist/plugins/flow/flowSelectionGraph.d.ts.map +1 -0
- package/dist/plugins/flow/flowSelectionGraph.js +196 -0
- package/dist/plugins/flow/parser/details.d.ts +33 -0
- package/dist/plugins/flow/parser/details.d.ts.map +1 -0
- package/dist/plugins/flow/parser/details.js +353 -0
- package/dist/plugins/flow/parser/edges.d.ts +53 -0
- package/dist/plugins/flow/parser/edges.d.ts.map +1 -0
- package/dist/plugins/flow/parser/edges.js +197 -0
- package/dist/plugins/flow/parser/elementTypes.d.ts +47 -0
- package/dist/plugins/flow/parser/elementTypes.d.ts.map +1 -0
- package/dist/plugins/flow/parser/elementTypes.js +176 -0
- package/dist/plugins/flow/parser/flowLabels.d.ts +43 -0
- package/dist/plugins/flow/parser/flowLabels.d.ts.map +1 -0
- package/dist/plugins/flow/parser/flowLabels.js +42 -0
- package/dist/plugins/flow/parser/groups.d.ts +26 -0
- package/dist/plugins/flow/parser/groups.d.ts.map +1 -0
- package/dist/plugins/flow/parser/groups.js +56 -0
- package/dist/plugins/flow/parser/nodes.d.ts +25 -0
- package/dist/plugins/flow/parser/nodes.d.ts.map +1 -0
- package/dist/plugins/flow/parser/nodes.js +86 -0
- package/dist/plugins/flow/parser/resources.d.ts +21 -0
- package/dist/plugins/flow/parser/resources.d.ts.map +1 -0
- package/dist/plugins/flow/parser/resources.js +140 -0
- package/dist/plugins/flow/parser/startConfig.d.ts +29 -0
- package/dist/plugins/flow/parser/startConfig.d.ts.map +1 -0
- package/dist/plugins/flow/parser/startConfig.js +117 -0
- package/dist/plugins/flow/parser/xmlPrimitives.d.ts +53 -0
- package/dist/plugins/flow/parser/xmlPrimitives.d.ts.map +1 -0
- package/dist/plugins/flow/parser/xmlPrimitives.js +152 -0
- package/dist/plugins/flow/types/FlowData.d.ts +294 -0
- package/dist/plugins/flow/types/FlowData.d.ts.map +1 -0
- package/dist/plugins/flow/types/FlowData.js +7 -0
- package/dist/plugins/flow/ui/assets/index-DJP9DbPL.js +48 -0
- package/dist/plugins/flow/ui/assets/index-H7g-xvR-.css +1 -0
- package/dist/plugins/flow/ui/index.html +14 -0
- package/dist/plugins/schema/SchemaParser.d.ts +12 -1
- package/dist/plugins/schema/SchemaParser.d.ts.map +1 -1
- package/dist/plugins/schema/SchemaParser.js +14 -0
- package/dist/plugins/schema/schemaSelectionGraph.d.ts +34 -0
- package/dist/plugins/schema/schemaSelectionGraph.d.ts.map +1 -0
- package/dist/plugins/schema/schemaSelectionGraph.js +77 -0
- package/dist/plugins/schema/ui/assets/index-BHwyhVGF.js +70 -0
- package/dist/plugins/schema/ui/assets/index-Cp1nVgsx.css +1 -0
- package/dist/plugins/schema/ui/index.html +2 -2
- package/dist/shared/bootstrap/createPluginApp.d.ts +14 -0
- package/dist/shared/bootstrap/createPluginApp.d.ts.map +1 -1
- package/dist/shared/bootstrap/createPluginApp.js +4 -0
- package/dist/shared/uem/ui/components/UEMVisualization/UEMVisualization.d.ts +9 -1
- package/dist/shared/uem/ui/components/UEMVisualization/UEMVisualization.d.ts.map +1 -1
- package/dist/shared/uem/ui/components/UEMVisualization/UEMVisualization.js +55 -30
- package/dist/shared/utils/uemTreeUtils.d.ts +33 -3
- package/dist/shared/utils/uemTreeUtils.d.ts.map +1 -1
- package/dist/shared/utils/uemTreeUtils.js +82 -5
- package/package.json +5 -5
- package/dist/plugins/agent/ui/assets/index-CTzSDPPx.css +0 -1
- package/dist/plugins/agent/ui/assets/index-D0wb9GBs.js +0 -71
- package/dist/plugins/flexipage/ui/assets/index-DT5lcUwK.js +0 -48
- package/dist/plugins/flexipage/ui/assets/index-U3SB2gLS.css +0 -1
- package/dist/plugins/schema/ui/assets/index-DCLgZby3.css +0 -1
- package/dist/plugins/schema/ui/assets/index-jqcasNAD.js +0 -70
package/README.md
CHANGED
|
@@ -15,6 +15,8 @@ This package provides metadata visualization plugins that parse Salesforce XML m
|
|
|
15
15
|
| ------------- | ------------------------------------- | ----------- | ------------------------------------------------------------------- |
|
|
16
16
|
| FlexiPages | `.flexipage-meta.xml` | `flexipage` | Lightning Page layout visualization |
|
|
17
17
|
| Data Model | `.object-meta.xml`, `.field-meta.xml` | `schema` | Interactive ERD visualization of objects, fields, and relationships |
|
|
18
|
+
| Agent Script | `.agent` | `agent` | Agent script visualization |
|
|
19
|
+
| Flow | `.flow-meta.xml` | `flow` | Interactive Flow diagram with decisions, loops, and fault paths |
|
|
18
20
|
|
|
19
21
|
## Installation
|
|
20
22
|
|
|
@@ -54,10 +56,17 @@ const plugins = getAllVisualizers(config);
|
|
|
54
56
|
### Using Individual Plugins
|
|
55
57
|
|
|
56
58
|
```typescript
|
|
57
|
-
import {
|
|
59
|
+
import {
|
|
60
|
+
FlexipageVisualizer,
|
|
61
|
+
SchemaVisualizer,
|
|
62
|
+
AgentVisualizer,
|
|
63
|
+
FlowVisualizer,
|
|
64
|
+
} from '@salesforce/metadata-plugins';
|
|
58
65
|
|
|
59
66
|
const flexipageViz = new FlexipageVisualizer();
|
|
60
67
|
const schemaViz = new SchemaVisualizer();
|
|
68
|
+
const agentViz = new AgentVisualizer();
|
|
69
|
+
const flowViz = new FlowVisualizer();
|
|
61
70
|
|
|
62
71
|
// Check plugin metadata
|
|
63
72
|
const info = schemaViz.getMetadataPluginInfo();
|
|
@@ -75,16 +84,22 @@ console.log(info.filePatterns); // ['.object-meta.xml', '.field-meta.xml']
|
|
|
75
84
|
|
|
76
85
|
- **`FlexipageVisualizer`** — Implements `IVisualizationPlugin<FlexipageMetadata>` for Lightning Page metadata
|
|
77
86
|
- **`SchemaVisualizer`** — Implements `IVisualizationPlugin<SchemaERDData>` for Custom Object and Field metadata
|
|
87
|
+
- **`AgentVisualizer`** — Implements `IVisualizationPlugin<AgentScriptData>` for Agent script metadata
|
|
88
|
+
- **`FlowVisualizer`** — Implements `IVisualizationPlugin<FlowModel>` for Flow metadata
|
|
78
89
|
|
|
79
90
|
### Parsers
|
|
80
91
|
|
|
81
92
|
- **`FlexipageParser`** — Implements `IMetadataParser<FlexipageMetadata>`
|
|
82
93
|
- **`SchemaParser`** — Implements `IMetadataParser<SchemaERDData>`
|
|
94
|
+
- **`AgentParser`** — Implements `IMetadataParser<AgentScriptData>`
|
|
95
|
+
- **`FlowParser`** — Implements `IMetadataParser<FlowModel>`
|
|
83
96
|
|
|
84
97
|
### Types
|
|
85
98
|
|
|
86
99
|
- **`FlexipageMetadata`** — Parsed FlexiPage structure
|
|
87
100
|
- **`SchemaERDData`** — Parsed ERD data with objects, fields, and relationships
|
|
101
|
+
- **`AgentScriptData`** — Parsed Agent script structure
|
|
102
|
+
- **`FlowModel`** — Parsed Flow structure with nodes, connectors, and metadata
|
|
88
103
|
|
|
89
104
|
## Package Exports
|
|
90
105
|
|
|
@@ -93,14 +108,26 @@ console.log(info.filePatterns); // ['.object-meta.xml', '.field-meta.xml']
|
|
|
93
108
|
import {
|
|
94
109
|
FlexipageVisualizer,
|
|
95
110
|
SchemaVisualizer,
|
|
111
|
+
AgentVisualizer,
|
|
112
|
+
FlowVisualizer,
|
|
96
113
|
getAllVisualizers,
|
|
97
114
|
} from '@salesforce/metadata-plugins';
|
|
98
115
|
|
|
99
116
|
// Parsers
|
|
100
|
-
import {
|
|
117
|
+
import {
|
|
118
|
+
FlexipageParser,
|
|
119
|
+
SchemaParser,
|
|
120
|
+
AgentParser,
|
|
121
|
+
FlowParser,
|
|
122
|
+
} from '@salesforce/metadata-plugins';
|
|
101
123
|
|
|
102
124
|
// Types
|
|
103
|
-
import type {
|
|
125
|
+
import type {
|
|
126
|
+
FlexipageMetadata,
|
|
127
|
+
SchemaERDData,
|
|
128
|
+
AgentScriptData,
|
|
129
|
+
FlowModel,
|
|
130
|
+
} from '@salesforce/metadata-plugins';
|
|
104
131
|
```
|
|
105
132
|
|
|
106
133
|
## Creating a New Plugin
|
package/dist/index.d.ts
CHANGED
|
@@ -7,12 +7,15 @@
|
|
|
7
7
|
export { FlexipageVisualizer } from './plugins/flexipage/FlexipageVisualizer.js';
|
|
8
8
|
export { SchemaVisualizer } from './plugins/schema/SchemaVisualizer.js';
|
|
9
9
|
export { AgentVisualizer } from './plugins/agent/AgentVisualizer.js';
|
|
10
|
+
export { FlowVisualizer } from './plugins/flow/FlowVisualizer.js';
|
|
10
11
|
export { FlexipageParser } from './plugins/flexipage/FlexipageParser.js';
|
|
11
12
|
export { SchemaParser } from './plugins/schema/SchemaParser.js';
|
|
12
13
|
export { AgentParser } from './plugins/agent/AgentParser.js';
|
|
14
|
+
export { FlowParser } from './plugins/flow/FlowParser.js';
|
|
13
15
|
export type { FlexipageMetadata } from './plugins/flexipage/types/FlexipageMetadata.js';
|
|
14
16
|
export type { SchemaERDData } from './plugins/schema/types/SchemaERDData.js';
|
|
15
17
|
export type { AgentScriptData } from './plugins/agent/types/AgentScriptData.js';
|
|
18
|
+
export type { FlowModel } from './plugins/flow/types/FlowData.js';
|
|
16
19
|
import { IVisualizationPlugin, PluginConfig } from '@salesforce/metadata-core-sdk';
|
|
17
20
|
/**
|
|
18
21
|
* Get all visualization plugins
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;IAKI;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;IAKI;AAoBJ,OAAO,EAAE,mBAAmB,EAAE,MAAM,4CAA4C,CAAC;AACjF,OAAO,EAAE,gBAAgB,EAAE,MAAM,sCAAsC,CAAC;AACxE,OAAO,EAAE,eAAe,EAAE,MAAM,oCAAoC,CAAC;AACrE,OAAO,EAAE,cAAc,EAAE,MAAM,kCAAkC,CAAC;AAGlE,OAAO,EAAE,eAAe,EAAE,MAAM,wCAAwC,CAAC;AACzE,OAAO,EAAE,YAAY,EAAE,MAAM,kCAAkC,CAAC;AAChE,OAAO,EAAE,WAAW,EAAE,MAAM,gCAAgC,CAAC;AAC7D,OAAO,EAAE,UAAU,EAAE,MAAM,8BAA8B,CAAC;AAG1D,YAAY,EAAE,iBAAiB,EAAE,MAAM,gDAAgD,CAAC;AACxF,YAAY,EAAE,aAAa,EAAE,MAAM,yCAAyC,CAAC;AAC7E,YAAY,EAAE,eAAe,EAAE,MAAM,0CAA0C,CAAC;AAChF,YAAY,EAAE,SAAS,EAAE,MAAM,kCAAkC,CAAC;AAGlE,OAAO,EAAE,oBAAoB,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAC;AAEnF;;;;;;;;;GASG;AACH,wBAAgB,iBAAiB,CAAC,MAAM,CAAC,EAAE,YAAY,GAAG,oBAAoB,EAAE,CAiB/E"}
|
package/dist/index.js
CHANGED
|
@@ -18,14 +18,17 @@
|
|
|
18
18
|
import { FlexipageVisualizer } from './plugins/flexipage/FlexipageVisualizer.js';
|
|
19
19
|
import { SchemaVisualizer } from './plugins/schema/SchemaVisualizer.js';
|
|
20
20
|
import { AgentVisualizer } from './plugins/agent/AgentVisualizer.js';
|
|
21
|
+
import { FlowVisualizer } from './plugins/flow/FlowVisualizer.js';
|
|
21
22
|
// Export visualization plugins
|
|
22
23
|
export { FlexipageVisualizer } from './plugins/flexipage/FlexipageVisualizer.js';
|
|
23
24
|
export { SchemaVisualizer } from './plugins/schema/SchemaVisualizer.js';
|
|
24
25
|
export { AgentVisualizer } from './plugins/agent/AgentVisualizer.js';
|
|
26
|
+
export { FlowVisualizer } from './plugins/flow/FlowVisualizer.js';
|
|
25
27
|
// Export parsers
|
|
26
28
|
export { FlexipageParser } from './plugins/flexipage/FlexipageParser.js';
|
|
27
29
|
export { SchemaParser } from './plugins/schema/SchemaParser.js';
|
|
28
30
|
export { AgentParser } from './plugins/agent/AgentParser.js';
|
|
31
|
+
export { FlowParser } from './plugins/flow/FlowParser.js';
|
|
29
32
|
/**
|
|
30
33
|
* Get all visualization plugins
|
|
31
34
|
*
|
|
@@ -41,6 +44,7 @@ export function getAllVisualizers(config) {
|
|
|
41
44
|
new FlexipageVisualizer(),
|
|
42
45
|
new SchemaVisualizer(),
|
|
43
46
|
new AgentVisualizer(),
|
|
47
|
+
new FlowVisualizer(),
|
|
44
48
|
];
|
|
45
49
|
if (!config?.pluginSettings) {
|
|
46
50
|
return all;
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
* webview bundle, so it boots fast and `getPluginData` doesn't time out — the
|
|
17
17
|
* webview only ships React Flow + dagre and renders the pre-built JSON graph.
|
|
18
18
|
*/
|
|
19
|
-
import { IMetadataParser, MetadataFileInfo, IPlatformContext, VersionInfo } from '@salesforce/metadata-core-sdk';
|
|
19
|
+
import { IMetadataParser, MetadataFileInfo, IPlatformContext, VersionInfo, type SelectableNode } from '@salesforce/metadata-core-sdk';
|
|
20
20
|
import { AgentScriptData } from './types/AgentScriptData.js';
|
|
21
21
|
export declare class AgentParser implements IMetadataParser<AgentScriptData> {
|
|
22
22
|
private platformContext?;
|
|
@@ -30,5 +30,11 @@ export declare class AgentParser implements IMetadataParser<AgentScriptData> {
|
|
|
30
30
|
* basename).
|
|
31
31
|
*/
|
|
32
32
|
extractMetadataInfo(data: AgentScriptData): MetadataFileInfo | null;
|
|
33
|
+
/**
|
|
34
|
+
* SelectionGraph (vibe-edit): project the subagent nodes into the normalized
|
|
35
|
+
* selectable-node contract. Delegates to the shared projection so the ids
|
|
36
|
+
* match the `data-mv-id` the webview renders on each subagent node.
|
|
37
|
+
*/
|
|
38
|
+
getSelectableNodes(data: AgentScriptData): SelectableNode[];
|
|
33
39
|
}
|
|
34
40
|
//# sourceMappingURL=AgentParser.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AgentParser.d.ts","sourceRoot":"","sources":["../../../src/plugins/agent/AgentParser.ts"],"names":[],"mappings":"AAAA;;;;;IAKI;AAEJ;;;;;;;;;;;GAWG;AAEH,OAAO,EACL,eAAe,EACf,gBAAgB,EAChB,gBAAgB,EAGhB,WAAW,
|
|
1
|
+
{"version":3,"file":"AgentParser.d.ts","sourceRoot":"","sources":["../../../src/plugins/agent/AgentParser.ts"],"names":[],"mappings":"AAAA;;;;;IAKI;AAEJ;;;;;;;;;;;GAWG;AAEH,OAAO,EACL,eAAe,EACf,gBAAgB,EAChB,gBAAgB,EAGhB,WAAW,EAGX,KAAK,cAAc,EACpB,MAAM,+BAA+B,CAAC;AAQvC,OAAO,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAC;AAoD7D,qBAAa,WAAY,YAAW,eAAe,CAAC,eAAe,CAAC;IAClE,OAAO,CAAC,eAAe,CAAC,CAAmB;IAC3C,OAAO,CAAC,MAAM,CAAC,CAAU;IACzB,OAAO,CAAC,SAAS,CAAC,CAAa;IAE/B,kBAAkB,CAAC,OAAO,EAAE,gBAAgB,GAAG,IAAI;IAM7C,KAAK,CAAC,QAAQ,EAAE,MAAM,EAAE,YAAY,EAAE,WAAW,GAAG,OAAO,CAAC,eAAe,CAAC;IA+HlF;;;;OAIG;IACH,mBAAmB,CAAC,IAAI,EAAE,eAAe,GAAG,gBAAgB,GAAG,IAAI;IAKnE;;;;OAIG;IACH,kBAAkB,CAAC,IAAI,EAAE,eAAe,GAAG,cAAc,EAAE;CAG5D"}
|
|
@@ -17,6 +17,7 @@
|
|
|
17
17
|
* webview only ships React Flow + dagre and renders the pre-built JSON graph.
|
|
18
18
|
*/
|
|
19
19
|
import { ErrorBuilder, ErrorCategory, } from '@salesforce/metadata-core-sdk';
|
|
20
|
+
import { agentSelectableNodes } from './agentSelectionGraph.js';
|
|
20
21
|
// Official AgentScript parser (public npm package). The default entry uses
|
|
21
22
|
// the pure-TS `parser-javascript` backend — no WASM, no native bindings, no
|
|
22
23
|
// async init — so it runs fine in the Node extension host. It accepts both
|
|
@@ -186,4 +187,12 @@ export class AgentParser {
|
|
|
186
187
|
const metaNode = data.graph?.nodes.find((n) => n.data.nodeType === 'meta');
|
|
187
188
|
return metaNode?.data.label ? { label: metaNode.data.label } : null;
|
|
188
189
|
}
|
|
190
|
+
/**
|
|
191
|
+
* SelectionGraph (vibe-edit): project the subagent nodes into the normalized
|
|
192
|
+
* selectable-node contract. Delegates to the shared projection so the ids
|
|
193
|
+
* match the `data-mv-id` the webview renders on each subagent node.
|
|
194
|
+
*/
|
|
195
|
+
getSelectableNodes(data) {
|
|
196
|
+
return agentSelectableNodes(data);
|
|
197
|
+
}
|
|
189
198
|
}
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) 2026, Salesforce, Inc.
|
|
3
|
+
* All rights reserved.
|
|
4
|
+
* Licensed under the BSD 3-Clause license.
|
|
5
|
+
* For full license text, see LICENSE.txt file in the repo root or https://opensource.org/licenses/BSD-3-Clause
|
|
6
|
+
**/
|
|
7
|
+
/**
|
|
8
|
+
* SelectionGraph projection for the agent plugin (vibe-edit).
|
|
9
|
+
*
|
|
10
|
+
* The host already builds the overview graph with stable, unique node ids
|
|
11
|
+
* (`subagent-<name>`), so the projection is a thin map: every subagent/topic
|
|
12
|
+
* node becomes one `SelectableNode`. Reusing the graph node id verbatim as the
|
|
13
|
+
* `SelectableNode.id` guarantees it matches the `data-mv-id` the node component
|
|
14
|
+
* renders (the C4 determinism requirement) — no separate id derivation needed.
|
|
15
|
+
*
|
|
16
|
+
* The parser calls this (via `getSelectableNodes`) and the webview calls the
|
|
17
|
+
* same function for `useVibeEdit`, so both sides agree by construction.
|
|
18
|
+
*/
|
|
19
|
+
import type { SelectableNode } from '@salesforce/metadata-core-sdk';
|
|
20
|
+
import type { ActionDetail } from './extract/ast-to-graph.js';
|
|
21
|
+
import type { AgentScriptData } from './types/AgentScriptData.js';
|
|
22
|
+
/** Strip the graph-node id prefix to recover the source block name. */
|
|
23
|
+
export declare function subagentApiName(nodeId: string): string;
|
|
24
|
+
/** The agent title label inside the meta tile (a pure-label heading). */
|
|
25
|
+
export declare function metaTitleNodeId(): string;
|
|
26
|
+
/** The agent's inline description paragraph inside the meta tile. */
|
|
27
|
+
export declare function metaDescriptionNodeId(): string;
|
|
28
|
+
/** The meta tile's System Instructions action row. */
|
|
29
|
+
export declare function metaSystemInstructionsNodeId(): string;
|
|
30
|
+
/** The meta tile's Messages action row (welcome / error messages). */
|
|
31
|
+
export declare function metaMessagesNodeId(): string;
|
|
32
|
+
/** The title label inside a subagent/topic tile. */
|
|
33
|
+
export declare function subagentTitleNodeId(nodeId: string): string;
|
|
34
|
+
/** The title label inside the start-agent tile. */
|
|
35
|
+
export declare function startAgentTitleNodeId(nodeId: string): string;
|
|
36
|
+
/** The subagent header card (its label / description / system instructions). */
|
|
37
|
+
export declare function subagentDetailNodeId(apiName: string): string;
|
|
38
|
+
/** The subagent's description paragraph, on its own so it can be edited alone. */
|
|
39
|
+
export declare function subagentDescriptionNodeId(): string;
|
|
40
|
+
/** The subagent's system-instructions block, selectable on its own. */
|
|
41
|
+
export declare function subagentSystemNodeId(): string;
|
|
42
|
+
/** A reasoning block card. `which` distinguishes the three reasoning slots. */
|
|
43
|
+
export declare function reasoningNodeId(which: 'reasoning' | 'before' | 'after'): string;
|
|
44
|
+
/** Keys for the card / section headings that live once per subagent. */
|
|
45
|
+
export type HeadingKey = 'subagent-role' | 'reasoning' | 'before-reasoning' | 'after-reasoning' | 'actions' | 'reasoning-actions';
|
|
46
|
+
/** A card / section heading rendered once per subagent (e.g. ACTIONS, REASONING). */
|
|
47
|
+
export declare function headingNodeId(key: HeadingKey): string;
|
|
48
|
+
/** A heading inside a single action's L3 detail (title, name, INPUTS, OUTPUTS). */
|
|
49
|
+
export declare function actionHeadingNodeId(actionName: string, key: 'title' | 'name' | 'inputs' | 'outputs'): string;
|
|
50
|
+
/** An individual action pill. */
|
|
51
|
+
export declare function actionNodeId(actionName: string): string;
|
|
52
|
+
/**
|
|
53
|
+
* A pill in the "ACTIONS AVAILABLE FOR REASONING" list. Kept DISTINCT from
|
|
54
|
+
* `actionNodeId` because the same action name also appears in the top-level
|
|
55
|
+
* ACTIONS card — a shared id would produce two DOM elements with the same
|
|
56
|
+
* `data-mv-id`, making selection ambiguous. Keyed by the raw ref so aliased
|
|
57
|
+
* refs stay unique.
|
|
58
|
+
*/
|
|
59
|
+
export declare function reasoningActionNodeId(ref: string): string;
|
|
60
|
+
/** The TARGET row inside an action's L3 detail. */
|
|
61
|
+
export declare function actionTargetNodeId(actionName: string): string;
|
|
62
|
+
/**
|
|
63
|
+
* A single INPUT / OUTPUT param inside an action's L3 detail. Namespaced by
|
|
64
|
+
* action + direction because a param name can repeat across inputs/outputs and
|
|
65
|
+
* across actions.
|
|
66
|
+
*/
|
|
67
|
+
export declare function actionParamNodeId(actionName: string, direction: 'input' | 'output', paramName: string): string;
|
|
68
|
+
/**
|
|
69
|
+
* Project everything editable inside a subagent's detail overlay into selectable
|
|
70
|
+
* nodes: the subagent itself (its description/instructions), its reasoning
|
|
71
|
+
* blocks (main / before / after), and each of its actions. The user can select
|
|
72
|
+
* any of these to send to the agent for editing. Ids match the `data-mv-id`
|
|
73
|
+
* each card renders; `parentId` links children to the subagent so the spatial
|
|
74
|
+
* context carries the owning subagent's name.
|
|
75
|
+
*/
|
|
76
|
+
export declare function agentDetailSelectableNodes(subagent: {
|
|
77
|
+
apiName: string;
|
|
78
|
+
label: string;
|
|
79
|
+
sourceKeyword: string;
|
|
80
|
+
description?: string;
|
|
81
|
+
systemInstructions?: string;
|
|
82
|
+
reasoning?: {
|
|
83
|
+
instructions?: string;
|
|
84
|
+
actionRefs?: string[];
|
|
85
|
+
} | undefined;
|
|
86
|
+
beforeReasoning?: string;
|
|
87
|
+
afterReasoning?: string;
|
|
88
|
+
actions?: ReadonlyArray<ActionDetail>;
|
|
89
|
+
}, filePath?: string): SelectableNode[];
|
|
90
|
+
/**
|
|
91
|
+
* Project the overview graph's editable nodes into selectable nodes. The root
|
|
92
|
+
* agent (`meta`) card, the start-agent node, and every subagent/topic node are
|
|
93
|
+
* all selectable — each carries editable content (the agent's description /
|
|
94
|
+
* system instructions / messages, the start-agent's routing, and each
|
|
95
|
+
* subagent's body). Only `junction` layout nodes are excluded (pure chrome).
|
|
96
|
+
*
|
|
97
|
+
* The node id is reused verbatim as the `SelectableNode.id`, so it matches the
|
|
98
|
+
* `data-mv-id` each node component renders (C4 determinism).
|
|
99
|
+
*/
|
|
100
|
+
export declare function agentSelectableNodes(data: AgentScriptData): SelectableNode[];
|
|
101
|
+
//# sourceMappingURL=agentSelectionGraph.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"agentSelectionGraph.d.ts","sourceRoot":"","sources":["../../../src/plugins/agent/agentSelectionGraph.ts"],"names":[],"mappings":"AAAA;;;;;IAKI;AAEJ;;;;;;;;;;;GAWG;AAEH,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,+BAA+B,CAAC;AACpE,OAAO,KAAK,EACV,YAAY,EAKb,MAAM,2BAA2B,CAAC;AACnC,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAC;AAElE,uEAAuE;AACvE,wBAAgB,eAAe,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAEtD;AAYD,yEAAyE;AACzE,wBAAgB,eAAe,IAAI,MAAM,CAExC;AACD,qEAAqE;AACrE,wBAAgB,qBAAqB,IAAI,MAAM,CAE9C;AACD,sDAAsD;AACtD,wBAAgB,4BAA4B,IAAI,MAAM,CAErD;AACD,sEAAsE;AACtE,wBAAgB,kBAAkB,IAAI,MAAM,CAE3C;AAWD,oDAAoD;AACpD,wBAAgB,mBAAmB,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAE1D;AAID,mDAAmD;AACnD,wBAAgB,qBAAqB,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAE5D;AAOD,gFAAgF;AAChF,wBAAgB,oBAAoB,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,CAE5D;AACD,kFAAkF;AAClF,wBAAgB,yBAAyB,IAAI,MAAM,CAElD;AACD,uEAAuE;AACvE,wBAAgB,oBAAoB,IAAI,MAAM,CAE7C;AACD,+EAA+E;AAC/E,wBAAgB,eAAe,CAAC,KAAK,EAAE,WAAW,GAAG,QAAQ,GAAG,OAAO,GAAG,MAAM,CAE/E;AAOD,wEAAwE;AACxE,MAAM,MAAM,UAAU,GAClB,eAAe,GACf,WAAW,GACX,kBAAkB,GAClB,iBAAiB,GACjB,SAAS,GACT,mBAAmB,CAAC;AAExB,qFAAqF;AACrF,wBAAgB,aAAa,CAAC,GAAG,EAAE,UAAU,GAAG,MAAM,CAErD;AAED,mFAAmF;AACnF,wBAAgB,mBAAmB,CACjC,UAAU,EAAE,MAAM,EAClB,GAAG,EAAE,OAAO,GAAG,MAAM,GAAG,QAAQ,GAAG,SAAS,GAC3C,MAAM,CAER;AACD,iCAAiC;AACjC,wBAAgB,YAAY,CAAC,UAAU,EAAE,MAAM,GAAG,MAAM,CAEvD;AACD;;;;;;GAMG;AACH,wBAAgB,qBAAqB,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAEzD;AACD,mDAAmD;AACnD,wBAAgB,kBAAkB,CAAC,UAAU,EAAE,MAAM,GAAG,MAAM,CAE7D;AACD;;;;GAIG;AACH,wBAAgB,iBAAiB,CAC/B,UAAU,EAAE,MAAM,EAClB,SAAS,EAAE,OAAO,GAAG,QAAQ,EAC7B,SAAS,EAAE,MAAM,GAChB,MAAM,CAER;AAED;;;;;;;GAOG;AACH,wBAAgB,0BAA0B,CACxC,QAAQ,EAAE;IACR,OAAO,EAAE,MAAM,CAAC;IAChB,KAAK,EAAE,MAAM,CAAC;IACd,aAAa,EAAE,MAAM,CAAC;IACtB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,SAAS,CAAC,EAAE;QAAE,YAAY,CAAC,EAAE,MAAM,CAAC;QAAC,UAAU,CAAC,EAAE,MAAM,EAAE,CAAA;KAAE,GAAG,SAAS,CAAC;IACzE,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,OAAO,CAAC,EAAE,aAAa,CAAC,YAAY,CAAC,CAAC;CACvC,EACD,QAAQ,CAAC,EAAE,MAAM,GAChB,cAAc,EAAE,CAyLlB;AAED;;;;;;;;;GASG;AACH,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,eAAe,GAAG,cAAc,EAAE,CAyH5E"}
|