project-graph-mcp 2.3.2 → 2.4.1
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/package.json +3 -2
- package/src/analysis/analysis-cache.ctx +9 -0
- package/src/analysis/analysis-cache.js +1 -1
- package/src/analysis/complexity.ctx +6 -0
- package/src/analysis/complexity.js +1 -1
- package/src/analysis/custom-rules.ctx +14 -0
- package/src/analysis/custom-rules.js +1 -1
- package/src/analysis/db-analysis.ctx +7 -0
- package/src/analysis/db-analysis.js +1 -1
- package/src/analysis/dead-code.ctx +6 -0
- package/src/analysis/dead-code.js +1 -1
- package/src/analysis/full-analysis.ctx +9 -0
- package/src/analysis/full-analysis.js +1 -1
- package/src/analysis/jsdoc-checker.ctx +10 -0
- package/src/analysis/jsdoc-checker.js +1 -1
- package/src/analysis/jsdoc-generator.ctx +9 -0
- package/src/analysis/jsdoc-generator.js +1 -1
- package/src/analysis/large-files.ctx +6 -0
- package/src/analysis/large-files.js +1 -1
- package/src/analysis/outdated-patterns.ctx +7 -0
- package/src/analysis/outdated-patterns.js +1 -1
- package/src/analysis/similar-functions.ctx +6 -0
- package/src/analysis/similar-functions.js +1 -1
- package/src/analysis/test-annotations.ctx +11 -0
- package/src/analysis/test-annotations.js +1 -1
- package/src/analysis/type-checker.ctx +6 -0
- package/src/analysis/type-checker.js +1 -1
- package/src/analysis/undocumented.ctx +8 -0
- package/src/analysis/undocumented.js +1 -1
- package/src/cli/cli-handlers.ctx +7 -0
- package/src/cli/cli-handlers.js +1 -1
- package/src/cli/cli.ctx +6 -0
- package/src/cli/cli.js +1 -1
- package/src/compact/ai-context.ctx +6 -0
- package/src/compact/ai-context.js +1 -1
- package/src/compact/compact-migrate.ctx +8 -0
- package/src/compact/compact-migrate.js +1 -1
- package/src/compact/compact.ctx +11 -0
- package/src/compact/compact.js +1 -1
- package/src/compact/compress.ctx +7 -0
- package/src/compact/compress.js +1 -1
- package/src/compact/ctx-resolver.ctx +2 -0
- package/src/compact/ctx-resolver.js +1 -1
- package/src/compact/ctx-to-jsdoc.ctx +11 -0
- package/src/compact/ctx-to-jsdoc.js +1 -1
- package/src/compact/doc-dialect.ctx +11 -0
- package/src/compact/doc-dialect.js +2 -2
- package/src/compact/expand.ctx +14 -0
- package/src/compact/expand.js +1 -1
- package/src/compact/framework-references.ctx +7 -0
- package/src/compact/framework-references.js +1 -1
- package/src/compact/instructions.ctx +6 -0
- package/src/compact/instructions.js +1 -1
- package/src/compact/jsdoc-builder.ctx +4 -0
- package/src/compact/jsdoc-builder.js +1 -1
- package/src/compact/mode-config.ctx +8 -0
- package/src/compact/mode-config.js +1 -1
- package/src/compact/split-declarations.ctx +6 -0
- package/src/compact/split-declarations.js +1 -1
- package/src/compact/validate-pipeline.ctx +12 -0
- package/src/compact/validate-pipeline.js +1 -1
- package/src/core/event-bus.ctx +9 -0
- package/src/core/event-bus.js +1 -1
- package/src/core/file-walker.ctx +1 -0
- package/src/core/file-walker.js +1 -1
- package/src/core/filters.ctx +12 -0
- package/src/core/filters.js +1 -1
- package/src/core/graph-builder.ctx +7 -0
- package/src/core/graph-builder.js +1 -1
- package/src/core/parser.ctx +12 -0
- package/src/core/parser.js +1 -1
- package/src/core/utils.ctx +1 -0
- package/src/core/utils.js +1 -1
- package/src/core/workspace.ctx +7 -0
- package/src/core/workspace.js +1 -1
- package/src/lang/lang-go.ctx +8 -0
- package/src/lang/lang-go.js +1 -1
- package/src/lang/lang-python.ctx +5 -0
- package/src/lang/lang-python.js +1 -1
- package/src/lang/lang-sql.ctx +10 -0
- package/src/lang/lang-sql.js +1 -1
- package/src/lang/lang-typescript.ctx +6 -0
- package/src/lang/lang-typescript.js +1 -1
- package/src/lang/lang-utils.ctx +5 -0
- package/src/lang/lang-utils.js +1 -1
- package/src/mcp/mcp-server.ctx +6 -0
- package/src/mcp/mcp-server.js +1 -1
- package/src/mcp/tool-defs.ctx +2 -0
- package/src/mcp/tool-defs.js +1 -1
- package/src/mcp/tools.ctx +13 -0
- package/src/mcp/tools.js +1 -1
- package/src/network/backend-lifecycle.ctx +10 -0
- package/src/network/backend-lifecycle.js +1 -1
- package/src/network/backend.ctx +5 -0
- package/src/network/backend.js +1 -1
- package/src/network/local-gateway.ctx +9 -0
- package/src/network/local-gateway.js +1 -1
- package/src/network/mdns.ctx +6 -0
- package/src/network/mdns.js +1 -1
- package/src/network/server.ctx +2 -0
- package/src/network/server.js +2 -2
- package/src/network/web-server.ctx +17 -0
- package/src/network/web-server.js +2 -2
- package/web/follow-controller.js +94 -25
- package/web/panels/dep-graph.js +207 -21
- package/project-graph-mcp-2.3.0.tgz +0 -0
- package/vendor/symbiote-node/CHANGELOG.md +0 -31
- package/vendor/symbiote-node/LICENSE +0 -21
- package/vendor/symbiote-node/README.md +0 -206
- package/vendor/symbiote-node/canvas/AutoLayout.js +0 -725
- package/vendor/symbiote-node/canvas/Breadcrumb/Breadcrumb.css.js +0 -73
- package/vendor/symbiote-node/canvas/Breadcrumb/Breadcrumb.js +0 -93
- package/vendor/symbiote-node/canvas/Breadcrumb/Breadcrumb.tpl.js +0 -9
- package/vendor/symbiote-node/canvas/CanvasConnectionRenderer.js +0 -962
- package/vendor/symbiote-node/canvas/ConnectionRenderer.js +0 -1468
- package/vendor/symbiote-node/canvas/FlowSimulator.js +0 -323
- package/vendor/symbiote-node/canvas/ForceLayout.js +0 -189
- package/vendor/symbiote-node/canvas/ForceWorker.js +0 -1325
- package/vendor/symbiote-node/canvas/GraphTabs/GraphTabs.css.js +0 -97
- package/vendor/symbiote-node/canvas/GraphTabs/GraphTabs.js +0 -176
- package/vendor/symbiote-node/canvas/GraphTabs/GraphTabs.tpl.js +0 -12
- package/vendor/symbiote-node/canvas/LODManager.js +0 -88
- package/vendor/symbiote-node/canvas/Minimap/Minimap.css.js +0 -71
- package/vendor/symbiote-node/canvas/Minimap/Minimap.js +0 -207
- package/vendor/symbiote-node/canvas/Minimap/Minimap.tpl.js +0 -9
- package/vendor/symbiote-node/canvas/NodeCanvas/NodeCanvas.css.js +0 -261
- package/vendor/symbiote-node/canvas/NodeCanvas/NodeCanvas.js +0 -1840
- package/vendor/symbiote-node/canvas/NodeCanvas/NodeCanvas.tpl.js +0 -22
- package/vendor/symbiote-node/canvas/NodeSearch/NodeSearch.css.js +0 -97
- package/vendor/symbiote-node/canvas/NodeSearch/NodeSearch.js +0 -132
- package/vendor/symbiote-node/canvas/NodeSearch/NodeSearch.tpl.js +0 -21
- package/vendor/symbiote-node/canvas/NodeViewManager.js +0 -584
- package/vendor/symbiote-node/canvas/PinExpansion.js +0 -131
- package/vendor/symbiote-node/canvas/PseudoConnection.js +0 -80
- package/vendor/symbiote-node/canvas/SubgraphManager.js +0 -201
- package/vendor/symbiote-node/canvas/SubgraphRouter.js +0 -443
- package/vendor/symbiote-node/canvas/ViewportActions.js +0 -446
- package/vendor/symbiote-node/core/Connection.js +0 -45
- package/vendor/symbiote-node/core/Editor.js +0 -451
- package/vendor/symbiote-node/core/Frame.js +0 -31
- package/vendor/symbiote-node/core/GraphMermaid.js +0 -348
- package/vendor/symbiote-node/core/GraphText.js +0 -210
- package/vendor/symbiote-node/core/Node.js +0 -143
- package/vendor/symbiote-node/core/Portal.js +0 -104
- package/vendor/symbiote-node/core/Socket.js +0 -185
- package/vendor/symbiote-node/core/SubgraphNode.js +0 -125
- package/vendor/symbiote-node/engine/AgentUICommands.js +0 -100
- package/vendor/symbiote-node/engine/Executor.js +0 -371
- package/vendor/symbiote-node/engine/Graph.js +0 -314
- package/vendor/symbiote-node/engine/GraphServer.js +0 -353
- package/vendor/symbiote-node/engine/HandlerLoader.js +0 -145
- package/vendor/symbiote-node/engine/History.js +0 -83
- package/vendor/symbiote-node/engine/Lifecycle.js +0 -118
- package/vendor/symbiote-node/engine/Persistence.js +0 -84
- package/vendor/symbiote-node/engine/Registry.js +0 -264
- package/vendor/symbiote-node/engine/SocketTypes.js +0 -79
- package/vendor/symbiote-node/engine/cli.js +0 -404
- package/vendor/symbiote-node/engine/index.js +0 -56
- package/vendor/symbiote-node/engine/nanoid.js +0 -28
- package/vendor/symbiote-node/engine/package.json +0 -26
- package/vendor/symbiote-node/engine/packs/ai/beat-detect.handler.js +0 -215
- package/vendor/symbiote-node/engine/packs/ai/content-adapt.handler.js +0 -238
- package/vendor/symbiote-node/engine/packs/ai/face-detect.handler.js +0 -287
- package/vendor/symbiote-node/engine/packs/ai/grok-generate.handler.js +0 -565
- package/vendor/symbiote-node/engine/packs/ai/kling-lipsync.handler.js +0 -414
- package/vendor/symbiote-node/engine/packs/ai/lesson-generate.handler.js +0 -343
- package/vendor/symbiote-node/engine/packs/ai/opencode.handler.js +0 -164
- package/vendor/symbiote-node/engine/packs/ai/replicate-lipsync.handler.js +0 -341
- package/vendor/symbiote-node/engine/packs/ai/tts.handler.js +0 -241
- package/vendor/symbiote-node/engine/packs/ai/whisper.handler.js +0 -191
- package/vendor/symbiote-node/engine/packs/data/db-query.handler.js +0 -67
- package/vendor/symbiote-node/engine/packs/data/news-accumulate.handler.js +0 -281
- package/vendor/symbiote-node/engine/packs/data/personas.handler.js +0 -160
- package/vendor/symbiote-node/engine/packs/data/prompt-loader.handler.js +0 -193
- package/vendor/symbiote-node/engine/packs/data/roles.handler.js +0 -216
- package/vendor/symbiote-node/engine/packs/data/rss-feed.handler.js +0 -244
- package/vendor/symbiote-node/engine/packs/debug/inject.handler.js +0 -52
- package/vendor/symbiote-node/engine/packs/flow/agent.handler.js +0 -73
- package/vendor/symbiote-node/engine/packs/flow/if.handler.js +0 -107
- package/vendor/symbiote-node/engine/packs/flow/loop.handler.js +0 -58
- package/vendor/symbiote-node/engine/packs/flow/merge.handler.js +0 -60
- package/vendor/symbiote-node/engine/packs/flow/retry.handler.js +0 -65
- package/vendor/symbiote-node/engine/packs/flow/switch.handler.js +0 -64
- package/vendor/symbiote-node/engine/packs/flow/wait-all.handler.js +0 -39
- package/vendor/symbiote-node/engine/packs/io/http-request.handler.js +0 -82
- package/vendor/symbiote-node/engine/packs/io/read-file.handler.js +0 -60
- package/vendor/symbiote-node/engine/packs/io/write-file.handler.js +0 -63
- package/vendor/symbiote-node/engine/packs/transform/anchor-match.handler.js +0 -494
- package/vendor/symbiote-node/engine/packs/transform/effects-skeleton.handler.js +0 -417
- package/vendor/symbiote-node/engine/packs/transform/json-parse.handler.js +0 -43
- package/vendor/symbiote-node/engine/packs/transform/lipsync-select.handler.js +0 -339
- package/vendor/symbiote-node/engine/packs/transform/riopla-adapt.handler.js +0 -432
- package/vendor/symbiote-node/engine/packs/transform/set.handler.js +0 -57
- package/vendor/symbiote-node/engine/packs/transform/template-builder.handler.js +0 -134
- package/vendor/symbiote-node/engine/packs/transform/template.handler.js +0 -79
- package/vendor/symbiote-node/engine/packs/transform/timeline-build.handler.js +0 -399
- package/vendor/symbiote-node/engine/packs/util/delay.handler.js +0 -39
- package/vendor/symbiote-node/engine/packs/util/log.handler.js +0 -44
- package/vendor/symbiote-node/engine/packs/video-pack.js +0 -323
- package/vendor/symbiote-node/index.js +0 -103
- package/vendor/symbiote-node/inspector/InspectorPanel/InspectorPanel.css.js +0 -361
- package/vendor/symbiote-node/inspector/InspectorPanel/InspectorPanel.js +0 -332
- package/vendor/symbiote-node/inspector/InspectorPanel/InspectorPanel.tpl.js +0 -96
- package/vendor/symbiote-node/inspector/TemplatePreview/TemplatePreview.css.js +0 -104
- package/vendor/symbiote-node/inspector/TemplatePreview/TemplatePreview.js +0 -133
- package/vendor/symbiote-node/inspector/TemplatePreview/TemplatePreview.tpl.js +0 -33
- package/vendor/symbiote-node/interactions/ConnectFlow.js +0 -307
- package/vendor/symbiote-node/interactions/Drag.js +0 -102
- package/vendor/symbiote-node/interactions/Selector.js +0 -132
- package/vendor/symbiote-node/interactions/SnapGrid.js +0 -65
- package/vendor/symbiote-node/interactions/Zoom.js +0 -140
- package/vendor/symbiote-node/layout/ActionZone/ActionZone.css.js +0 -88
- package/vendor/symbiote-node/layout/ActionZone/ActionZone.js +0 -254
- package/vendor/symbiote-node/layout/ActionZone/ActionZone.tpl.js +0 -11
- package/vendor/symbiote-node/layout/Layout/Layout.css.js +0 -88
- package/vendor/symbiote-node/layout/Layout/Layout.js +0 -622
- package/vendor/symbiote-node/layout/Layout/Layout.tpl.js +0 -25
- package/vendor/symbiote-node/layout/LayoutNode/LayoutNode.css.js +0 -293
- package/vendor/symbiote-node/layout/LayoutNode/LayoutNode.js +0 -467
- package/vendor/symbiote-node/layout/LayoutNode/LayoutNode.tpl.js +0 -33
- package/vendor/symbiote-node/layout/LayoutPreview/LayoutPreview.css.js +0 -46
- package/vendor/symbiote-node/layout/LayoutPreview/LayoutPreview.js +0 -102
- package/vendor/symbiote-node/layout/LayoutPreview/LayoutPreview.tpl.js +0 -6
- package/vendor/symbiote-node/layout/LayoutRouter/LayoutRouter.js +0 -156
- package/vendor/symbiote-node/layout/LayoutRouter/routerSync.js +0 -250
- package/vendor/symbiote-node/layout/LayoutSidebar/LayoutSidebar.css.js +0 -379
- package/vendor/symbiote-node/layout/LayoutSidebar/LayoutSidebar.js +0 -263
- package/vendor/symbiote-node/layout/LayoutSidebar/LayoutSidebar.tpl.js +0 -20
- package/vendor/symbiote-node/layout/LayoutSidebar/SidebarSection.js +0 -183
- package/vendor/symbiote-node/layout/LayoutTree.js +0 -246
- package/vendor/symbiote-node/layout/PanelMenu/PanelMenu.css.js +0 -43
- package/vendor/symbiote-node/layout/PanelMenu/PanelMenu.js +0 -89
- package/vendor/symbiote-node/layout/PanelMenu/PanelMenu.tpl.js +0 -14
- package/vendor/symbiote-node/layout/index.js +0 -16
- package/vendor/symbiote-node/menu/ContextMenu/ContextMenu.css.js +0 -61
- package/vendor/symbiote-node/menu/ContextMenu/ContextMenu.js +0 -79
- package/vendor/symbiote-node/menu/ContextMenu/ContextMenu.tpl.js +0 -19
- package/vendor/symbiote-node/node/CtrlItem/CtrlItem.css.js +0 -41
- package/vendor/symbiote-node/node/CtrlItem/CtrlItem.js +0 -24
- package/vendor/symbiote-node/node/CtrlItem/CtrlItem.tpl.js +0 -16
- package/vendor/symbiote-node/node/GraphFrame/GraphFrame.css.js +0 -65
- package/vendor/symbiote-node/node/GraphFrame/GraphFrame.js +0 -29
- package/vendor/symbiote-node/node/GraphFrame/GraphFrame.tpl.js +0 -13
- package/vendor/symbiote-node/node/GraphNode/GraphNode.css.js +0 -683
- package/vendor/symbiote-node/node/GraphNode/GraphNode.js +0 -92
- package/vendor/symbiote-node/node/GraphNode/GraphNode.tpl.js +0 -17
- package/vendor/symbiote-node/node/NodeSocket/NodeSocket.js +0 -25
- package/vendor/symbiote-node/node/NodeSocket/NodeSocket.tpl.js +0 -7
- package/vendor/symbiote-node/node/PortItem/PortItem.css.js +0 -90
- package/vendor/symbiote-node/node/PortItem/PortItem.js +0 -87
- package/vendor/symbiote-node/node/PortItem/PortItem.tpl.js +0 -10
- package/vendor/symbiote-node/package.json +0 -59
- package/vendor/symbiote-node/palette/PaletteBrowser/PaletteBrowser.css.js +0 -143
- package/vendor/symbiote-node/palette/PaletteBrowser/PaletteBrowser.js +0 -131
- package/vendor/symbiote-node/palette/PaletteBrowser/PaletteBrowser.tpl.js +0 -16
- package/vendor/symbiote-node/plugins/History.js +0 -384
- package/vendor/symbiote-node/plugins/Readonly.js +0 -59
- package/vendor/symbiote-node/shapes/CircleShape.js +0 -80
- package/vendor/symbiote-node/shapes/CommentShape.js +0 -35
- package/vendor/symbiote-node/shapes/DiamondShape.js +0 -115
- package/vendor/symbiote-node/shapes/NodeShape.js +0 -80
- package/vendor/symbiote-node/shapes/PillShape.js +0 -91
- package/vendor/symbiote-node/shapes/RectShape.js +0 -72
- package/vendor/symbiote-node/shapes/SVGShape.js +0 -494
- package/vendor/symbiote-node/shapes/index.js +0 -53
- package/vendor/symbiote-node/themes/Palette.js +0 -32
- package/vendor/symbiote-node/themes/Skin.js +0 -113
- package/vendor/symbiote-node/themes/Theme.js +0 -84
- package/vendor/symbiote-node/themes/carbon.js +0 -137
- package/vendor/symbiote-node/themes/dark.js +0 -137
- package/vendor/symbiote-node/themes/ebook.js +0 -138
- package/vendor/symbiote-node/themes/grey.js +0 -137
- package/vendor/symbiote-node/themes/light.js +0 -137
- package/vendor/symbiote-node/themes/neon.js +0 -138
- package/vendor/symbiote-node/themes/pcb.js +0 -273
- package/vendor/symbiote-node/themes/synthwave.js +0 -137
- package/vendor/symbiote-node/toolbar/QuickToolbar/QuickToolbar.css.js +0 -86
- package/vendor/symbiote-node/toolbar/QuickToolbar/QuickToolbar.js +0 -128
- package/vendor/symbiote-node/toolbar/QuickToolbar/QuickToolbar.tpl.js +0 -29
|
@@ -1,323 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* video-pack.js - Video domain pack for agi-graph
|
|
3
|
-
*
|
|
4
|
-
* Registers video-specific node types and socket types.
|
|
5
|
-
* Extracted from symbiote-video/src/graph/NodeTypes.js + NodeProcessors.js.
|
|
6
|
-
*
|
|
7
|
-
* @module agi-graph/packs/video-pack
|
|
8
|
-
*/
|
|
9
|
-
|
|
10
|
-
import { registerPack } from '../index.js';
|
|
11
|
-
|
|
12
|
-
/**
|
|
13
|
-
* Video-domain socket types
|
|
14
|
-
*/
|
|
15
|
-
const socketTypes = {
|
|
16
|
-
image: { color: '#C79650', label: 'Image', compatible: ['image'] },
|
|
17
|
-
audio: { color: '#C1990E', label: 'Audio', compatible: ['audio'] },
|
|
18
|
-
timeline: { color: '#5090C7', label: 'Timeline', compatible: ['timeline'] },
|
|
19
|
-
skeleton: { color: '#90C750', label: 'Skeleton', compatible: ['skeleton'] },
|
|
20
|
-
effect: { color: '#C750C7', label: 'Effect', compatible: ['effect'] },
|
|
21
|
-
};
|
|
22
|
-
|
|
23
|
-
/**
|
|
24
|
-
* Video node type definitions
|
|
25
|
-
*/
|
|
26
|
-
const nodes = [
|
|
27
|
-
// ─── Source ─────────────────────────────────────────────────────────
|
|
28
|
-
{
|
|
29
|
-
type: 'source/audio',
|
|
30
|
-
category: 'source',
|
|
31
|
-
icon: 'music_note',
|
|
32
|
-
driver: {
|
|
33
|
-
description: 'Audio source file',
|
|
34
|
-
capabilities: ['source', 'audio'],
|
|
35
|
-
inputs: [],
|
|
36
|
-
outputs: [
|
|
37
|
-
{ name: 'audio', type: 'audio' },
|
|
38
|
-
{ name: 'duration', type: 'float' },
|
|
39
|
-
],
|
|
40
|
-
params: {
|
|
41
|
-
src: { type: 'string', required: true, description: 'Audio file path or URL' },
|
|
42
|
-
volume: { type: 'float', default: 1.0, min: 0, max: 2 },
|
|
43
|
-
},
|
|
44
|
-
},
|
|
45
|
-
process: (_inputs, params) => ({
|
|
46
|
-
audio: { src: params.src, volume: params.volume },
|
|
47
|
-
duration: params.duration || 0,
|
|
48
|
-
}),
|
|
49
|
-
},
|
|
50
|
-
{
|
|
51
|
-
type: 'source/webp-sequence',
|
|
52
|
-
category: 'source',
|
|
53
|
-
icon: 'movie',
|
|
54
|
-
driver: {
|
|
55
|
-
description: 'WebP image sequence as video frames',
|
|
56
|
-
capabilities: ['source', 'video'],
|
|
57
|
-
inputs: [],
|
|
58
|
-
outputs: [
|
|
59
|
-
{ name: 'frames', type: 'image' },
|
|
60
|
-
{ name: 'frameCount', type: 'int' },
|
|
61
|
-
],
|
|
62
|
-
params: {
|
|
63
|
-
directory: { type: 'string', required: true },
|
|
64
|
-
pattern: { type: 'string', default: '*.webp' },
|
|
65
|
-
fps: { type: 'int', default: 30, min: 1, max: 120 },
|
|
66
|
-
},
|
|
67
|
-
},
|
|
68
|
-
process: (_inputs, params) => ({
|
|
69
|
-
frames: { directory: params.directory, pattern: params.pattern, fps: params.fps },
|
|
70
|
-
frameCount: params.frameCount || 0,
|
|
71
|
-
}),
|
|
72
|
-
},
|
|
73
|
-
{
|
|
74
|
-
type: 'source/image',
|
|
75
|
-
category: 'source',
|
|
76
|
-
icon: 'image',
|
|
77
|
-
driver: {
|
|
78
|
-
description: 'Static image source',
|
|
79
|
-
capabilities: ['source', 'image'],
|
|
80
|
-
inputs: [],
|
|
81
|
-
outputs: [{ name: 'image', type: 'image' }],
|
|
82
|
-
params: {
|
|
83
|
-
src: { type: 'string', required: true },
|
|
84
|
-
fit: { type: 'string', default: 'cover', enum: ['cover', 'contain', 'fill', 'none'] },
|
|
85
|
-
},
|
|
86
|
-
},
|
|
87
|
-
process: (_inputs, params) => ({
|
|
88
|
-
image: { src: params.src, fit: params.fit },
|
|
89
|
-
}),
|
|
90
|
-
},
|
|
91
|
-
{
|
|
92
|
-
type: 'source/text',
|
|
93
|
-
category: 'source',
|
|
94
|
-
icon: 'text_fields',
|
|
95
|
-
driver: {
|
|
96
|
-
description: 'Text source for overlays and subtitles',
|
|
97
|
-
capabilities: ['source', 'text'],
|
|
98
|
-
inputs: [],
|
|
99
|
-
outputs: [{ name: 'text', type: 'string' }],
|
|
100
|
-
params: {
|
|
101
|
-
content: { type: 'string', default: '' },
|
|
102
|
-
style: { type: 'string', default: 'default' },
|
|
103
|
-
},
|
|
104
|
-
},
|
|
105
|
-
process: (_inputs, params) => ({
|
|
106
|
-
text: { content: params.content, style: params.style },
|
|
107
|
-
}),
|
|
108
|
-
},
|
|
109
|
-
|
|
110
|
-
// ─── Analysis ──────────────────────────────────────────────────────
|
|
111
|
-
{
|
|
112
|
-
type: 'analysis/beat-analyzer',
|
|
113
|
-
category: 'analysis',
|
|
114
|
-
icon: 'graphic_eq',
|
|
115
|
-
driver: {
|
|
116
|
-
description: 'Analyzes audio for beats, energy, and generates effect skeleton',
|
|
117
|
-
capabilities: ['analysis', 'audio', 'ai'],
|
|
118
|
-
inputs: [{ name: 'audio', type: 'audio', required: true }],
|
|
119
|
-
outputs: [
|
|
120
|
-
{ name: 'skeleton', type: 'skeleton' },
|
|
121
|
-
{ name: 'beats', type: 'float' },
|
|
122
|
-
{ name: 'energy', type: 'float' },
|
|
123
|
-
],
|
|
124
|
-
params: {
|
|
125
|
-
energyPerSecond: { type: 'int', default: 10, min: 1, max: 100 },
|
|
126
|
-
strongThreshold: { type: 'float', default: 1.3, min: 0.5, max: 3 },
|
|
127
|
-
},
|
|
128
|
-
},
|
|
129
|
-
process: (inputs, params) => ({
|
|
130
|
-
skeleton: {
|
|
131
|
-
intensityZones: [],
|
|
132
|
-
fadeZones: [],
|
|
133
|
-
dropPoints: [],
|
|
134
|
-
beatMarkers: [],
|
|
135
|
-
transitionAnchors: [],
|
|
136
|
-
},
|
|
137
|
-
beats: [],
|
|
138
|
-
energy: [],
|
|
139
|
-
}),
|
|
140
|
-
},
|
|
141
|
-
{
|
|
142
|
-
type: 'analysis/ai-director',
|
|
143
|
-
category: 'analysis',
|
|
144
|
-
icon: 'smart_toy',
|
|
145
|
-
driver: {
|
|
146
|
-
description: 'AI-driven timeline composition from skeleton and prompt',
|
|
147
|
-
capabilities: ['analysis', 'ai', 'llm'],
|
|
148
|
-
inputs: [
|
|
149
|
-
{ name: 'skeleton', type: 'skeleton', required: true },
|
|
150
|
-
{ name: 'prompt', type: 'string' },
|
|
151
|
-
],
|
|
152
|
-
outputs: [{ name: 'timeline', type: 'timeline' }],
|
|
153
|
-
params: {
|
|
154
|
-
model: { type: 'string', default: 'auto' },
|
|
155
|
-
temperature: { type: 'float', default: 0.7, min: 0, max: 2 },
|
|
156
|
-
},
|
|
157
|
-
constraints: { requiresSecret: 'OPENAI_API_KEY' },
|
|
158
|
-
},
|
|
159
|
-
},
|
|
160
|
-
|
|
161
|
-
// ─── Processing ────────────────────────────────────────────────────
|
|
162
|
-
{
|
|
163
|
-
type: 'processing/physics-vfx',
|
|
164
|
-
category: 'processing',
|
|
165
|
-
icon: 'bolt',
|
|
166
|
-
driver: {
|
|
167
|
-
description: 'Physics-based visual effects synced to beats',
|
|
168
|
-
capabilities: ['effects', 'animation'],
|
|
169
|
-
inputs: [
|
|
170
|
-
{ name: 'input', type: 'any' },
|
|
171
|
-
{ name: 'beats', type: 'float' },
|
|
172
|
-
],
|
|
173
|
-
outputs: [{ name: 'output', type: 'effect' }],
|
|
174
|
-
params: {
|
|
175
|
-
preset: { type: 'string', default: 'bounceIn', enum: ['bounceIn', 'dropImpact', 'glitch', 'shake', 'zoom', 'rubberBand', 'pulse'] },
|
|
176
|
-
beatSync: { type: 'boolean', default: true },
|
|
177
|
-
intensity: { type: 'float', default: 1.0, min: 0, max: 3 },
|
|
178
|
-
},
|
|
179
|
-
},
|
|
180
|
-
},
|
|
181
|
-
{
|
|
182
|
-
type: 'processing/color-correction',
|
|
183
|
-
category: 'processing',
|
|
184
|
-
icon: 'palette',
|
|
185
|
-
driver: {
|
|
186
|
-
description: 'Color grading and correction filters',
|
|
187
|
-
capabilities: ['effects', 'color'],
|
|
188
|
-
inputs: [{ name: 'input', type: 'image', required: true }],
|
|
189
|
-
outputs: [{ name: 'output', type: 'image' }],
|
|
190
|
-
params: {
|
|
191
|
-
brightness: { type: 'float', default: 0, min: -100, max: 100 },
|
|
192
|
-
contrast: { type: 'float', default: 0, min: -100, max: 100 },
|
|
193
|
-
saturation: { type: 'float', default: 0, min: -100, max: 100 },
|
|
194
|
-
hueRotate: { type: 'float', default: 0, min: 0, max: 360 },
|
|
195
|
-
},
|
|
196
|
-
},
|
|
197
|
-
},
|
|
198
|
-
{
|
|
199
|
-
type: 'processing/transition',
|
|
200
|
-
category: 'processing',
|
|
201
|
-
icon: 'shuffle',
|
|
202
|
-
driver: {
|
|
203
|
-
description: 'Transition effect between two sources',
|
|
204
|
-
capabilities: ['effects', 'transition'],
|
|
205
|
-
inputs: [
|
|
206
|
-
{ name: 'from', type: 'image', required: true },
|
|
207
|
-
{ name: 'to', type: 'image', required: true },
|
|
208
|
-
],
|
|
209
|
-
outputs: [{ name: 'output', type: 'image' }],
|
|
210
|
-
params: {
|
|
211
|
-
type: { type: 'string', default: 'fade', enum: ['fade', 'slide', 'wipe', 'zoom', 'dissolve'] },
|
|
212
|
-
duration: { type: 'int', default: 30, min: 1 },
|
|
213
|
-
direction: { type: 'string', default: 'left', enum: ['left', 'right', 'up', 'down'] },
|
|
214
|
-
},
|
|
215
|
-
},
|
|
216
|
-
},
|
|
217
|
-
|
|
218
|
-
// ─── Composition ───────────────────────────────────────────────────
|
|
219
|
-
{
|
|
220
|
-
type: 'composition/layout',
|
|
221
|
-
category: 'composition',
|
|
222
|
-
icon: 'grid_view',
|
|
223
|
-
driver: {
|
|
224
|
-
description: 'Positions content in the viewport',
|
|
225
|
-
capabilities: ['composition', 'layout'],
|
|
226
|
-
inputs: [{ name: 'content', type: 'any', required: true }],
|
|
227
|
-
outputs: [{ name: 'output', type: 'image' }],
|
|
228
|
-
params: {
|
|
229
|
-
anchor: { type: 'string', default: 'center' },
|
|
230
|
-
x: { type: 'string', default: '50%' },
|
|
231
|
-
y: { type: 'string', default: '50%' },
|
|
232
|
-
width: { type: 'string', default: '100%' },
|
|
233
|
-
height: { type: 'string', default: '100%' },
|
|
234
|
-
rotation: { type: 'float', default: 0 },
|
|
235
|
-
},
|
|
236
|
-
},
|
|
237
|
-
},
|
|
238
|
-
{
|
|
239
|
-
type: 'composition/blend',
|
|
240
|
-
category: 'composition',
|
|
241
|
-
icon: 'theaters',
|
|
242
|
-
driver: {
|
|
243
|
-
description: 'Blends/composites two image layers',
|
|
244
|
-
capabilities: ['composition', 'blend'],
|
|
245
|
-
inputs: [
|
|
246
|
-
{ name: 'base', type: 'image', required: true },
|
|
247
|
-
{ name: 'overlay', type: 'image', required: true },
|
|
248
|
-
],
|
|
249
|
-
outputs: [{ name: 'output', type: 'image' }],
|
|
250
|
-
params: {
|
|
251
|
-
mode: { type: 'string', default: 'normal', enum: ['normal', 'multiply', 'screen', 'overlay', 'add'] },
|
|
252
|
-
opacity: { type: 'float', default: 1.0, min: 0, max: 1 },
|
|
253
|
-
},
|
|
254
|
-
},
|
|
255
|
-
},
|
|
256
|
-
{
|
|
257
|
-
type: 'composition/timeline',
|
|
258
|
-
category: 'composition',
|
|
259
|
-
icon: 'timer',
|
|
260
|
-
driver: {
|
|
261
|
-
description: 'Assembles layers into a timeline for rendering',
|
|
262
|
-
capabilities: ['composition', 'timeline'],
|
|
263
|
-
inputs: [
|
|
264
|
-
{ name: 'layers', type: 'any', required: true },
|
|
265
|
-
{ name: 'dynamics', type: 'skeleton' },
|
|
266
|
-
],
|
|
267
|
-
outputs: [{ name: 'timeline', type: 'timeline' }],
|
|
268
|
-
params: {
|
|
269
|
-
fps: { type: 'int', default: 30, min: 1, max: 120 },
|
|
270
|
-
duration: { type: 'string', default: 'auto' },
|
|
271
|
-
},
|
|
272
|
-
},
|
|
273
|
-
},
|
|
274
|
-
|
|
275
|
-
// ─── Output ────────────────────────────────────────────────────────
|
|
276
|
-
{
|
|
277
|
-
type: 'output/viewport',
|
|
278
|
-
category: 'output',
|
|
279
|
-
icon: 'desktop_windows',
|
|
280
|
-
driver: {
|
|
281
|
-
description: 'Preview viewport for real-time monitoring',
|
|
282
|
-
capabilities: ['output', 'preview'],
|
|
283
|
-
inputs: [{ name: 'timeline', type: 'timeline', required: true }],
|
|
284
|
-
outputs: [],
|
|
285
|
-
params: {
|
|
286
|
-
width: { type: 'int', default: 1080, min: 1 },
|
|
287
|
-
height: { type: 'int', default: 1920, min: 1 },
|
|
288
|
-
background: { type: 'string', default: '#000000' },
|
|
289
|
-
},
|
|
290
|
-
},
|
|
291
|
-
},
|
|
292
|
-
{
|
|
293
|
-
type: 'output/render',
|
|
294
|
-
category: 'output',
|
|
295
|
-
icon: 'videocam',
|
|
296
|
-
driver: {
|
|
297
|
-
description: 'Renders timeline to video file',
|
|
298
|
-
capabilities: ['output', 'render'],
|
|
299
|
-
inputs: [{ name: 'timeline', type: 'timeline', required: true }],
|
|
300
|
-
outputs: [],
|
|
301
|
-
params: {
|
|
302
|
-
format: { type: 'string', default: 'mp4', enum: ['mp4', 'webm', 'mov'] },
|
|
303
|
-
codec: { type: 'string', default: 'h264', enum: ['h264', 'h265', 'vp9', 'av1'] },
|
|
304
|
-
quality: { type: 'string', default: 'high', enum: ['low', 'medium', 'high', 'lossless'] },
|
|
305
|
-
preset: { type: 'string', default: 'vertical', enum: ['vertical', 'horizontal', 'square'] },
|
|
306
|
-
},
|
|
307
|
-
},
|
|
308
|
-
},
|
|
309
|
-
];
|
|
310
|
-
|
|
311
|
-
/**
|
|
312
|
-
* Register the video pack
|
|
313
|
-
*/
|
|
314
|
-
export function registerVideoPack() {
|
|
315
|
-
registerPack({
|
|
316
|
-
name: 'video',
|
|
317
|
-
socketTypes,
|
|
318
|
-
nodes,
|
|
319
|
-
});
|
|
320
|
-
}
|
|
321
|
-
|
|
322
|
-
// Auto-register when imported
|
|
323
|
-
registerVideoPack();
|
|
@@ -1,103 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* symbiote-node — Node Graph Editor for Symbiote.js
|
|
3
|
-
*
|
|
4
|
-
* Public API for the library.
|
|
5
|
-
*
|
|
6
|
-
* @module symbiote-node
|
|
7
|
-
*/
|
|
8
|
-
|
|
9
|
-
// Core
|
|
10
|
-
export { NodeEditor } from './core/Editor.js';
|
|
11
|
-
export { Node } from './core/Node.js';
|
|
12
|
-
export { Connection } from './core/Connection.js';
|
|
13
|
-
export { Frame } from './core/Frame.js';
|
|
14
|
-
export { Socket, Port, Input, Output, Control, InputControl, uid } from './core/Socket.js';
|
|
15
|
-
export { editorToText, textToGraph, textToEditor } from './core/GraphText.js';
|
|
16
|
-
export { editorToMermaid, mermaidToGraph } from './core/GraphMermaid.js';
|
|
17
|
-
|
|
18
|
-
// Canvas
|
|
19
|
-
export { NodeCanvas } from './canvas/NodeCanvas/NodeCanvas.js';
|
|
20
|
-
|
|
21
|
-
// Node components
|
|
22
|
-
export { GraphNode } from './node/GraphNode/GraphNode.js';
|
|
23
|
-
export { NodeSocket } from './node/NodeSocket/NodeSocket.js';
|
|
24
|
-
|
|
25
|
-
// Interactions
|
|
26
|
-
export { Drag } from './interactions/Drag.js';
|
|
27
|
-
export { Zoom } from './interactions/Zoom.js';
|
|
28
|
-
export { Selector } from './interactions/Selector.js';
|
|
29
|
-
export { SnapGrid } from './interactions/SnapGrid.js';
|
|
30
|
-
export { ConnectFlow } from './interactions/ConnectFlow.js';
|
|
31
|
-
|
|
32
|
-
// Shapes
|
|
33
|
-
export { NodeShape, RectShape, PillShape, CircleShape, DiamondShape, CommentShape, getShape, registerShape, SVGShape, createSVGShape, SVG_PRESETS } from './shapes/index.js';
|
|
34
|
-
|
|
35
|
-
// Themes (unified)
|
|
36
|
-
export { applyTheme, extractTheme, DARK_DEFAULT, LIGHT_CLEAN, SYNTHWAVE, GREY_NEUTRAL, NEON_GLOW } from './themes/Theme.js';
|
|
37
|
-
|
|
38
|
-
// Palette (color-only)
|
|
39
|
-
export { applyPalette, DARK_PALETTE, LIGHT_PALETTE, SYNTHWAVE_PALETTE, GREY_PALETTE } from './themes/Palette.js';
|
|
40
|
-
|
|
41
|
-
// Skin (geometry-only)
|
|
42
|
-
export { applySkin, MODERN_SKIN, COMPACT_SKIN, ROUNDED_SKIN } from './themes/Skin.js';
|
|
43
|
-
|
|
44
|
-
// Plugins
|
|
45
|
-
export { Readonly } from './plugins/Readonly.js';
|
|
46
|
-
export { History } from './plugins/History.js';
|
|
47
|
-
|
|
48
|
-
// Toolbar
|
|
49
|
-
export { QuickToolbar } from './toolbar/QuickToolbar/QuickToolbar.js';
|
|
50
|
-
export { FlowSimulator } from './canvas/FlowSimulator.js';
|
|
51
|
-
|
|
52
|
-
// Inspector
|
|
53
|
-
export { InspectorPanel } from './inspector/InspectorPanel/InspectorPanel.js';
|
|
54
|
-
|
|
55
|
-
// Minimap
|
|
56
|
-
export { Minimap } from './canvas/Minimap/Minimap.js';
|
|
57
|
-
|
|
58
|
-
// Search
|
|
59
|
-
export { NodeSearch } from './canvas/NodeSearch/NodeSearch.js';
|
|
60
|
-
|
|
61
|
-
// Layout (panel workspace)
|
|
62
|
-
export { Layout } from './layout/Layout/Layout.js';
|
|
63
|
-
export { LayoutNode } from './layout/LayoutNode/LayoutNode.js';
|
|
64
|
-
export { LayoutSidebar } from './layout/LayoutSidebar/LayoutSidebar.js';
|
|
65
|
-
export * as LayoutTree from './layout/LayoutTree.js';
|
|
66
|
-
export {
|
|
67
|
-
navigate, updateParams, parseQuery, buildHash, buildQuery,
|
|
68
|
-
getRoute, setDefaultPanel,
|
|
69
|
-
} from './layout/LayoutRouter/LayoutRouter.js';
|
|
70
|
-
export { syncWithRouter } from './layout/LayoutRouter/routerSync.js';
|
|
71
|
-
|
|
72
|
-
// Auto Layout
|
|
73
|
-
export { computeAutoLayout, computeTreeLayout } from './canvas/AutoLayout.js';
|
|
74
|
-
|
|
75
|
-
// Portals (Named Reroutes)
|
|
76
|
-
export { PortalManager } from './core/Portal.js';
|
|
77
|
-
|
|
78
|
-
// Palette Browser
|
|
79
|
-
export { PaletteBrowser } from './palette/PaletteBrowser/PaletteBrowser.js';
|
|
80
|
-
|
|
81
|
-
// Tabs
|
|
82
|
-
export { GraphTabs } from './canvas/GraphTabs/GraphTabs.js';
|
|
83
|
-
|
|
84
|
-
// Subgraphs
|
|
85
|
-
export { SubgraphNode } from './core/SubgraphNode.js';
|
|
86
|
-
export { SubgraphManager } from './canvas/SubgraphManager.js';
|
|
87
|
-
export { SubgraphRouter } from './canvas/SubgraphRouter.js';
|
|
88
|
-
export { Breadcrumb } from './canvas/Breadcrumb/Breadcrumb.js';
|
|
89
|
-
|
|
90
|
-
// Canvas utilities
|
|
91
|
-
export { LODManager } from './canvas/LODManager.js';
|
|
92
|
-
export { PinExpansion } from './canvas/PinExpansion.js';
|
|
93
|
-
export { ForceLayout } from './canvas/ForceLayout.js';
|
|
94
|
-
|
|
95
|
-
// Additional themes (not in base Theme.js barrel)
|
|
96
|
-
export { CARBON, CARBON_PALETTE } from './themes/carbon.js';
|
|
97
|
-
export { PCB_DARK } from './themes/pcb.js';
|
|
98
|
-
export { EBOOK, EBOOK_PALETTE } from './themes/ebook.js';
|
|
99
|
-
export { NEON_PALETTE } from './themes/neon.js';
|
|
100
|
-
|
|
101
|
-
// Engine (server-side graph runtime)
|
|
102
|
-
// Usage: import * as Engine from 'symbiote-node/engine'
|
|
103
|
-
// Or: import { Graph, Executor } from 'symbiote-node/engine'
|