ui: finalize wizard modularization

This commit is contained in:
a.tolmachev
2026-05-02 20:17:17 +00:00
parent 95d9006d70
commit fa2a98765d
6 changed files with 30 additions and 40 deletions
+5 -4
View File
@@ -53,10 +53,11 @@ function mappingRootForProtocol(protocol) {
}
function normalizeInputSource(path) {
if (!path) return '$.input';
if (path === '$') return '$.input';
if (path.indexOf('$.input') === 0) return path;
return '$.input.' + path.replace(/^\$\./, '');
if (!path) return '$.mcp';
if (path === '$') return '$.mcp';
if (path.indexOf('$.mcp') === 0) return path;
if (path.indexOf('$.input') === 0) return '$.mcp' + path.slice('$.input'.length);
return '$.mcp.' + path.replace(/^\$\./, '');
}
function normalizeOutputSource(path) {