langflower 0.0.10 → 0.1.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/README.md +96 -70
- package/bin/langflower.js +15 -1
- package/dist/chunk-526FJL62.js +307 -0
- package/dist/chunk-CVTPGIZE.js +344 -0
- package/dist/chunk-EAZMCX37.js +44 -0
- package/dist/chunk-PYLGT66P.js +126 -0
- package/dist/chunk-WQZHA5FM.js +1444 -0
- package/dist/chunk-WV2YWHOC.js +623 -0
- package/dist/chunk-YOTMWWRH.js +2041 -0
- package/dist/index.js +80236 -1
- package/docs/public/README.md +2 -2
- package/docs/public/configuration.md +4 -0
- package/docs/public/extending.md +18 -2
- package/docs/public/getting-started.md +7 -0
- package/docs/public/how-it-works.md +18 -11
- package/docs/public/product.md +35 -25
- package/package.json +1 -8
- package/ui-dist/{chunk-7UMVYN3A.js → chunk-BKIP5WRK.js} +1 -1
- package/ui-dist/chunk-EZTB7Q33.js +4 -0
- package/ui-dist/index.html +2 -2
- package/ui-dist/main-X5M7PU3P.js +317 -0
- package/ui-dist/styles-VA3HMZK7.css +1 -0
- package/vendor/node-sdk/dist/node-factory/define-embed/embed-handle.d.ts +25 -0
- package/vendor/node-sdk/dist/node-factory/define-embed/embed-handle.js +25 -0
- package/vendor/node-sdk/dist/node-factory/define-mcp/mcp-handle.d.ts +1 -0
- package/vendor/node-sdk/dist/node-factory/define-mcp/mcp-handle.js +1 -0
- package/vendor/node-sdk/dist/node-factory/define-node/define-node.d.ts +2 -0
- package/vendor/node-sdk/dist/node-factory/define-node/define-node.js +4 -1
- package/vendor/node-sdk/dist/node-factory/define-reactive-node/define-reactive-node.d.ts +4 -1
- package/vendor/node-sdk/dist/node-factory/define-reactive-node/define-reactive-node.js +3 -1
- package/vendor/node-sdk/dist/node-factory/define-reactive-node/io-helpers.d.ts +15 -0
- package/vendor/node-sdk/dist/node-factory/define-reactive-node/io-helpers.js +17 -1
- package/vendor/node-sdk/dist/node-factory/define-reactive-node/port-meta.d.ts +17 -4
- package/vendor/node-sdk/dist/node-factory/define-reactive-node/resolve-secret.d.ts +28 -0
- package/vendor/node-sdk/dist/node-factory/define-reactive-node/resolve-secret.js +76 -0
- package/vendor/node-sdk/dist/node-factory/define-reactive-node/test/samples/delay-node.js +4 -2
- package/vendor/node-sdk/dist/node-factory/define-reactive-node/types.d.ts +11 -6
- package/vendor/node-sdk/dist/testing/create-node-harness.d.ts +34 -0
- package/vendor/node-sdk/dist/testing/create-node-harness.js +73 -0
- package/vendor/node-sdk/package.json +4 -4
- package/vendor/runtime/dist/types.d.ts +1 -1
- package/vendor/server/skeleton/instructions.md +15 -3
- package/vendor/server/skeleton/nodes/hello-embed/README.md +185 -0
- package/vendor/server/skeleton/nodes/hello-embed/hello-embed.nodes.test.ts +181 -0
- package/vendor/server/skeleton/nodes/hello-embed/ingest.ts +126 -0
- package/vendor/server/skeleton/nodes/hello-embed/lib/chunk-markdown.test.ts +40 -0
- package/vendor/server/skeleton/nodes/hello-embed/lib/chunk-markdown.ts +123 -0
- package/vendor/server/skeleton/nodes/hello-embed/lib/ingest-search.test.ts +180 -0
- package/vendor/server/skeleton/nodes/hello-embed/lib/ingest.ts +128 -0
- package/vendor/server/skeleton/nodes/hello-embed/lib/paths.test.ts +20 -0
- package/vendor/server/skeleton/nodes/hello-embed/lib/paths.ts +70 -0
- package/vendor/server/skeleton/nodes/hello-embed/lib/schema.ts +21 -0
- package/vendor/server/skeleton/nodes/hello-embed/lib/search.ts +254 -0
- package/vendor/server/skeleton/nodes/hello-embed/lib/text-embedder.ts +14 -0
- package/vendor/server/skeleton/nodes/hello-embed/lib/vectors.ts +126 -0
- package/vendor/server/skeleton/nodes/hello-embed/lib/walk-markdown.test.ts +62 -0
- package/vendor/server/skeleton/nodes/hello-embed/lib/walk-markdown.ts +67 -0
- package/vendor/server/skeleton/nodes/hello-embed/package.json +11 -0
- package/vendor/server/skeleton/nodes/hello-embed/search-handle.ts +119 -0
- package/vendor/server/skeleton/nodes/hello-embed/search.ts +98 -0
- package/vendor/server/skeleton/nodes/hello-embed/tsconfig.json +14 -0
- package/vendor/server/skeleton/nodes/my-nodes/README.md +13 -3
- package/vendor/server/skeleton/schemas/langflower-config.schema.json +9 -1
- package/vendor/server/skeleton/skills/langflower-helper/SKILL.md +113 -27
- package/vendor/server/skeleton/skills/langflower-helper/architecture.md +19 -7
- package/vendor/server/skeleton/skills/langflower-helper/layout.md +25 -18
- package/vendor/server/skeleton/skills/langflower-node-writer/SKILL.md +8 -1
- package/vendor/server/skeleton/skills/langflower-workflow-writer/SKILL.md +3 -1
- package/vendor/server/skeleton/workflows/kb-ingest.json +88 -0
- package/vendor/server/skeleton/workflows/kb-manual-search.json +105 -0
- package/vendor/server/skeleton/workflows/kb-rag.json +192 -0
- package/vendor/server/skeleton/workflows/kb-tool.json +111 -0
- package/dist/cli.d.ts +0 -1
- package/dist/cli.js +0 -13
- package/dist/create-fake-skill-case-runner.d.ts +0 -9
- package/dist/create-fake-skill-case-runner.js +0 -73
- package/dist/create-fake-skill-case-runner.test.d.ts +0 -1
- package/dist/create-fake-skill-case-runner.test.js +0 -60
- package/dist/eval-command.d.ts +0 -2
- package/dist/eval-command.js +0 -66
- package/dist/index.d.ts +0 -1
- package/dist/start-command.d.ts +0 -5
- package/dist/start-command.js +0 -110
- package/dist/start-command.test.d.ts +0 -1
- package/dist/start-command.test.js +0 -17
- package/ui-dist/chunk-MDGXX73Z.js +0 -4
- package/ui-dist/main-Z7CPFXFA.js +0 -313
- package/ui-dist/styles-2TMDAUD7.css +0 -1
- package/vendor/common-nodes/dist/ai/build-effective-system-prompt.d.ts +0 -9
- package/vendor/common-nodes/dist/ai/build-effective-system-prompt.js +0 -21
- package/vendor/common-nodes/dist/ai/chat-completion-stream.d.ts +0 -53
- package/vendor/common-nodes/dist/ai/chat-completion-stream.js +0 -1
- package/vendor/common-nodes/dist/ai/chat-input/node.d.ts +0 -25
- package/vendor/common-nodes/dist/ai/chat-input/node.js +0 -39
- package/vendor/common-nodes/dist/ai/critique/node.d.ts +0 -588
- package/vendor/common-nodes/dist/ai/critique/node.js +0 -240
- package/vendor/common-nodes/dist/ai/define-llm-node/default-llm-ports.d.ts +0 -28
- package/vendor/common-nodes/dist/ai/define-llm-node/default-llm-ports.js +0 -59
- package/vendor/common-nodes/dist/ai/define-llm-node/define-llm-node.d.ts +0 -45
- package/vendor/common-nodes/dist/ai/define-llm-node/define-llm-node.js +0 -48
- package/vendor/common-nodes/dist/ai/fake-llm/node.d.ts +0 -571
- package/vendor/common-nodes/dist/ai/fake-llm/node.js +0 -207
- package/vendor/common-nodes/dist/ai/fake-mcp-server/node.d.ts +0 -26
- package/vendor/common-nodes/dist/ai/fake-mcp-server/node.js +0 -67
- package/vendor/common-nodes/dist/ai/fake-tool-registration/node.d.ts +0 -26
- package/vendor/common-nodes/dist/ai/fake-tool-registration/node.js +0 -57
- package/vendor/common-nodes/dist/ai/features/chat-completion-stream.d.ts +0 -53
- package/vendor/common-nodes/dist/ai/features/chat-completion-stream.js +0 -1
- package/vendor/common-nodes/dist/ai/features/llm-loop/autokick-recovery.d.ts +0 -13
- package/vendor/common-nodes/dist/ai/features/llm-loop/autokick-recovery.js +0 -17
- package/vendor/common-nodes/dist/ai/features/llm-loop/classify-llm-failure.d.ts +0 -2
- package/vendor/common-nodes/dist/ai/features/llm-loop/classify-llm-failure.js +0 -113
- package/vendor/common-nodes/dist/ai/features/llm-loop/dead-loop-detector.d.ts +0 -28
- package/vendor/common-nodes/dist/ai/features/llm-loop/dead-loop-detector.js +0 -194
- package/vendor/common-nodes/dist/ai/features/llm-loop/live-get-tools.d.ts +0 -9
- package/vendor/common-nodes/dist/ai/features/llm-loop/live-get-tools.js +0 -21
- package/vendor/common-nodes/dist/ai/features/llm-loop/llm-loop-reducer.d.ts +0 -2
- package/vendor/common-nodes/dist/ai/features/llm-loop/llm-loop-reducer.js +0 -204
- package/vendor/common-nodes/dist/ai/features/llm-loop/llm-loop-types.d.ts +0 -120
- package/vendor/common-nodes/dist/ai/features/llm-loop/llm-loop-types.js +0 -39
- package/vendor/common-nodes/dist/ai/features/llm-loop/normalize-llm-recovery-policy.d.ts +0 -2
- package/vendor/common-nodes/dist/ai/features/llm-loop/normalize-llm-recovery-policy.js +0 -59
- package/vendor/common-nodes/dist/ai/features/llm-loop/operators/normalize-tool-result.d.ts +0 -1
- package/vendor/common-nodes/dist/ai/features/llm-loop/operators/normalize-tool-result.js +0 -7
- package/vendor/common-nodes/dist/ai/features/llm-loop/operators/observe-provider-stream.d.ts +0 -43
- package/vendor/common-nodes/dist/ai/features/llm-loop/operators/observe-provider-stream.js +0 -96
- package/vendor/common-nodes/dist/ai/features/llm-loop/run-agent-loop.d.ts +0 -29
- package/vendor/common-nodes/dist/ai/features/llm-loop/run-agent-loop.js +0 -44
- package/vendor/common-nodes/dist/ai/features/llm-loop/run-llm-loop.d.ts +0 -74
- package/vendor/common-nodes/dist/ai/features/llm-loop/run-llm-loop.js +0 -658
- package/vendor/common-nodes/dist/ai/features/llm-role-preset.d.ts +0 -69
- package/vendor/common-nodes/dist/ai/features/llm-role-preset.js +0 -265
- package/vendor/common-nodes/dist/ai/features/llm-session/llm-session-shell.d.ts +0 -141
- package/vendor/common-nodes/dist/ai/features/llm-session/llm-session-shell.js +0 -193
- package/vendor/common-nodes/dist/ai/features/llm-session/run-session-machine.d.ts +0 -21
- package/vendor/common-nodes/dist/ai/features/llm-session/run-session-machine.js +0 -118
- package/vendor/common-nodes/dist/ai/features/openai/context-length-error.d.ts +0 -14
- package/vendor/common-nodes/dist/ai/features/openai/context-length-error.js +0 -63
- package/vendor/common-nodes/dist/ai/features/openai/create-chat-completion-stream.d.ts +0 -19
- package/vendor/common-nodes/dist/ai/features/openai/create-chat-completion-stream.js +0 -182
- package/vendor/common-nodes/dist/ai/features/openai/list-provider-models.d.ts +0 -28
- package/vendor/common-nodes/dist/ai/features/openai/list-provider-models.js +0 -52
- package/vendor/common-nodes/dist/ai/features/openai/llm-context-compaction.d.ts +0 -31
- package/vendor/common-nodes/dist/ai/features/openai/llm-context-compaction.js +0 -326
- package/vendor/common-nodes/dist/ai/features/openai/normalize-compaction-params.d.ts +0 -14
- package/vendor/common-nodes/dist/ai/features/openai/normalize-compaction-params.js +0 -21
- package/vendor/common-nodes/dist/ai/features/openai/prepare-chat-completion.d.ts +0 -30
- package/vendor/common-nodes/dist/ai/features/openai/prepare-chat-completion.js +0 -132
- package/vendor/common-nodes/dist/ai/features/path-choice/control-tools.d.ts +0 -20
- package/vendor/common-nodes/dist/ai/features/path-choice/control-tools.js +0 -70
- package/vendor/common-nodes/dist/ai/features/path-choice/run-reactive-path-choice-loop.d.ts +0 -32
- package/vendor/common-nodes/dist/ai/features/path-choice/run-reactive-path-choice-loop.js +0 -93
- package/vendor/common-nodes/dist/ai/features/prompt/build-effective-system-prompt.d.ts +0 -9
- package/vendor/common-nodes/dist/ai/features/prompt/build-effective-system-prompt.js +0 -21
- package/vendor/common-nodes/dist/ai/features/prompt/normalize-max-iterations.d.ts +0 -13
- package/vendor/common-nodes/dist/ai/features/prompt/normalize-max-iterations.js +0 -23
- package/vendor/common-nodes/dist/ai/features/prompt/resolve-chat-provider-model.d.ts +0 -10
- package/vendor/common-nodes/dist/ai/features/prompt/resolve-chat-provider-model.js +0 -8
- package/vendor/common-nodes/dist/ai/features/run-host-services.d.ts +0 -54
- package/vendor/common-nodes/dist/ai/features/run-host-services.js +0 -29
- package/vendor/common-nodes/dist/ai/features/scripted-chat-completion-stream.d.ts +0 -17
- package/vendor/common-nodes/dist/ai/features/scripted-chat-completion-stream.js +0 -61
- package/vendor/common-nodes/dist/ai/features/sub-agent-protocol.d.ts +0 -40
- package/vendor/common-nodes/dist/ai/features/sub-agent-protocol.js +0 -44
- package/vendor/common-nodes/dist/ai/features/ui-schema/llm-compaction-ui-schema.d.ts +0 -14
- package/vendor/common-nodes/dist/ai/features/ui-schema/llm-compaction-ui-schema.js +0 -18
- package/vendor/common-nodes/dist/ai/features/ui-schema/llm-panel-ui-schema.d.ts +0 -80
- package/vendor/common-nodes/dist/ai/features/ui-schema/llm-panel-ui-schema.js +0 -76
- package/vendor/common-nodes/dist/ai/features/ui-schema/llm-recovery-ui-schema.d.ts +0 -113
- package/vendor/common-nodes/dist/ai/features/ui-schema/llm-recovery-ui-schema.js +0 -131
- package/vendor/common-nodes/dist/ai/features/wait-for-subagent-result.d.ts +0 -7
- package/vendor/common-nodes/dist/ai/features/wait-for-subagent-result.js +0 -31
- package/vendor/common-nodes/dist/ai/filter-enabled-registrations.d.ts +0 -9
- package/vendor/common-nodes/dist/ai/filter-enabled-registrations.js +0 -18
- package/vendor/common-nodes/dist/ai/flatten-mcp-server-configs.d.ts +0 -7
- package/vendor/common-nodes/dist/ai/flatten-mcp-server-configs.js +0 -21
- package/vendor/common-nodes/dist/ai/inventory-tool-round.d.ts +0 -33
- package/vendor/common-nodes/dist/ai/inventory-tool-round.js +0 -215
- package/vendor/common-nodes/dist/ai/llm-compaction-ui-schema.d.ts +0 -14
- package/vendor/common-nodes/dist/ai/llm-compaction-ui-schema.js +0 -18
- package/vendor/common-nodes/dist/ai/llm-loop/autokick-recovery.d.ts +0 -13
- package/vendor/common-nodes/dist/ai/llm-loop/autokick-recovery.js +0 -17
- package/vendor/common-nodes/dist/ai/llm-loop/classify-llm-failure.d.ts +0 -2
- package/vendor/common-nodes/dist/ai/llm-loop/classify-llm-failure.js +0 -113
- package/vendor/common-nodes/dist/ai/llm-loop/dead-loop-detector.d.ts +0 -28
- package/vendor/common-nodes/dist/ai/llm-loop/dead-loop-detector.js +0 -194
- package/vendor/common-nodes/dist/ai/llm-loop/llm-loop-reducer.d.ts +0 -2
- package/vendor/common-nodes/dist/ai/llm-loop/llm-loop-reducer.js +0 -216
- package/vendor/common-nodes/dist/ai/llm-loop/llm-loop-types.d.ts +0 -125
- package/vendor/common-nodes/dist/ai/llm-loop/llm-loop-types.js +0 -39
- package/vendor/common-nodes/dist/ai/llm-loop/normalize-llm-recovery-policy.d.ts +0 -2
- package/vendor/common-nodes/dist/ai/llm-loop/normalize-llm-recovery-policy.js +0 -59
- package/vendor/common-nodes/dist/ai/llm-loop/operators/normalize-tool-result.d.ts +0 -1
- package/vendor/common-nodes/dist/ai/llm-loop/operators/normalize-tool-result.js +0 -7
- package/vendor/common-nodes/dist/ai/llm-loop/operators/observe-provider-stream.d.ts +0 -43
- package/vendor/common-nodes/dist/ai/llm-loop/operators/observe-provider-stream.js +0 -96
- package/vendor/common-nodes/dist/ai/llm-loop/run-agent-loop.d.ts +0 -31
- package/vendor/common-nodes/dist/ai/llm-loop/run-agent-loop.js +0 -57
- package/vendor/common-nodes/dist/ai/llm-loop/run-llm-loop.d.ts +0 -79
- package/vendor/common-nodes/dist/ai/llm-loop/run-llm-loop.js +0 -637
- package/vendor/common-nodes/dist/ai/llm-panel-ui-schema.d.ts +0 -80
- package/vendor/common-nodes/dist/ai/llm-panel-ui-schema.js +0 -76
- package/vendor/common-nodes/dist/ai/llm-recovery-ui-schema.d.ts +0 -113
- package/vendor/common-nodes/dist/ai/llm-recovery-ui-schema.js +0 -131
- package/vendor/common-nodes/dist/ai/llm-role-preset.d.ts +0 -69
- package/vendor/common-nodes/dist/ai/llm-role-preset.js +0 -265
- package/vendor/common-nodes/dist/ai/llm-session/run-session-machine.d.ts +0 -21
- package/vendor/common-nodes/dist/ai/llm-session/run-session-machine.js +0 -118
- package/vendor/common-nodes/dist/ai/llm-session-shell.d.ts +0 -147
- package/vendor/common-nodes/dist/ai/llm-session-shell.js +0 -189
- package/vendor/common-nodes/dist/ai/mcp-server/node.d.ts +0 -26
- package/vendor/common-nodes/dist/ai/mcp-server/node.js +0 -68
- package/vendor/common-nodes/dist/ai/mcp-server-config.d.ts +0 -16
- package/vendor/common-nodes/dist/ai/mcp-server-config.js +0 -2
- package/vendor/common-nodes/dist/ai/mcp-tool-id.d.ts +0 -11
- package/vendor/common-nodes/dist/ai/mcp-tool-id.js +0 -30
- package/vendor/common-nodes/dist/ai/merge-tool-inventory.d.ts +0 -10
- package/vendor/common-nodes/dist/ai/merge-tool-inventory.js +0 -26
- package/vendor/common-nodes/dist/ai/nodes/critique/node.d.ts +0 -588
- package/vendor/common-nodes/dist/ai/nodes/critique/node.js +0 -227
- package/vendor/common-nodes/dist/ai/nodes/fake-llm/node.d.ts +0 -571
- package/vendor/common-nodes/dist/ai/nodes/fake-llm/node.js +0 -201
- package/vendor/common-nodes/dist/ai/nodes/openai-llm/node.d.ts +0 -587
- package/vendor/common-nodes/dist/ai/nodes/openai-llm/node.js +0 -84
- package/vendor/common-nodes/dist/ai/nodes/review/node.d.ts +0 -593
- package/vendor/common-nodes/dist/ai/nodes/review/node.js +0 -227
- package/vendor/common-nodes/dist/ai/nodes/sub-agent/node.d.ts +0 -630
- package/vendor/common-nodes/dist/ai/nodes/sub-agent/node.js +0 -417
- package/vendor/common-nodes/dist/ai/normalize-max-iterations.d.ts +0 -13
- package/vendor/common-nodes/dist/ai/normalize-max-iterations.js +0 -23
- package/vendor/common-nodes/dist/ai/openai/context-length-error.d.ts +0 -14
- package/vendor/common-nodes/dist/ai/openai/context-length-error.js +0 -63
- package/vendor/common-nodes/dist/ai/openai/create-chat-completion-stream.d.ts +0 -19
- package/vendor/common-nodes/dist/ai/openai/create-chat-completion-stream.js +0 -182
- package/vendor/common-nodes/dist/ai/openai/create-embedding.d.ts +0 -18
- package/vendor/common-nodes/dist/ai/openai/create-embedding.js +0 -43
- package/vendor/common-nodes/dist/ai/openai/list-provider-models.d.ts +0 -28
- package/vendor/common-nodes/dist/ai/openai/list-provider-models.js +0 -52
- package/vendor/common-nodes/dist/ai/openai/llm-context-compaction.d.ts +0 -31
- package/vendor/common-nodes/dist/ai/openai/llm-context-compaction.js +0 -326
- package/vendor/common-nodes/dist/ai/openai/normalize-compaction-params.d.ts +0 -14
- package/vendor/common-nodes/dist/ai/openai/normalize-compaction-params.js +0 -21
- package/vendor/common-nodes/dist/ai/openai/prepare-chat-completion.d.ts +0 -30
- package/vendor/common-nodes/dist/ai/openai/prepare-chat-completion.js +0 -132
- package/vendor/common-nodes/dist/ai/openai-llm/node.d.ts +0 -587
- package/vendor/common-nodes/dist/ai/openai-llm/node.js +0 -88
- package/vendor/common-nodes/dist/ai/path-choice/control-tools.d.ts +0 -20
- package/vendor/common-nodes/dist/ai/path-choice/control-tools.js +0 -70
- package/vendor/common-nodes/dist/ai/path-choice/run-path-choice-tool-loop.d.ts +0 -54
- package/vendor/common-nodes/dist/ai/path-choice/run-path-choice-tool-loop.js +0 -242
- package/vendor/common-nodes/dist/ai/path-choice/run-reactive-path-choice-loop.d.ts +0 -35
- package/vendor/common-nodes/dist/ai/path-choice/run-reactive-path-choice-loop.js +0 -106
- package/vendor/common-nodes/dist/ai/resolve-chat-provider-model.d.ts +0 -10
- package/vendor/common-nodes/dist/ai/resolve-chat-provider-model.js +0 -8
- package/vendor/common-nodes/dist/ai/resolve-mcp-inventory.d.ts +0 -8
- package/vendor/common-nodes/dist/ai/resolve-mcp-inventory.js +0 -43
- package/vendor/common-nodes/dist/ai/review/node.d.ts +0 -593
- package/vendor/common-nodes/dist/ai/review/node.js +0 -240
- package/vendor/common-nodes/dist/ai/review/review-control-tools.d.ts +0 -20
- package/vendor/common-nodes/dist/ai/review/review-control-tools.js +0 -70
- package/vendor/common-nodes/dist/ai/review/run-review-tool-loop.d.ts +0 -44
- package/vendor/common-nodes/dist/ai/review/run-review-tool-loop.js +0 -193
- package/vendor/common-nodes/dist/ai/run-host-services.d.ts +0 -32
- package/vendor/common-nodes/dist/ai/run-host-services.js +0 -11
- package/vendor/common-nodes/dist/ai/run-internal-tool-loop.d.ts +0 -39
- package/vendor/common-nodes/dist/ai/run-internal-tool-loop.js +0 -138
- package/vendor/common-nodes/dist/ai/scripted-chat-completion-stream.d.ts +0 -17
- package/vendor/common-nodes/dist/ai/scripted-chat-completion-stream.js +0 -61
- package/vendor/common-nodes/dist/ai/sub-agent/node.d.ts +0 -630
- package/vendor/common-nodes/dist/ai/sub-agent/node.js +0 -302
- package/vendor/common-nodes/dist/ai/sub-agent-protocol.d.ts +0 -39
- package/vendor/common-nodes/dist/ai/sub-agent-protocol.js +0 -43
- package/vendor/common-nodes/dist/ai/tool-handler-context.d.ts +0 -4
- package/vendor/common-nodes/dist/ai/tool-handler-context.js +0 -16
- package/vendor/common-nodes/dist/ai/tool-registration.d.ts +0 -6
- package/vendor/common-nodes/dist/ai/tool-registration.js +0 -33
- package/vendor/common-nodes/dist/ai/wait-for-subagent-result.d.ts +0 -6
- package/vendor/common-nodes/dist/ai/wait-for-subagent-result.js +0 -30
- package/vendor/common-nodes/dist/catalog.d.ts +0 -6
- package/vendor/common-nodes/dist/catalog.js +0 -85
- package/vendor/common-nodes/dist/compile-custom-nodes/node.d.ts +0 -21
- package/vendor/common-nodes/dist/compile-custom-nodes/node.js +0 -45
- package/vendor/common-nodes/dist/crawl/crawl/node.d.ts +0 -99
- package/vendor/common-nodes/dist/crawl/crawl/node.js +0 -120
- package/vendor/common-nodes/dist/crawl/crawl-tools/node.d.ts +0 -20
- package/vendor/common-nodes/dist/crawl/crawl-tools/node.js +0 -13
- package/vendor/common-nodes/dist/crawl/extract-links/node.d.ts +0 -22
- package/vendor/common-nodes/dist/crawl/extract-links/node.js +0 -39
- package/vendor/common-nodes/dist/crawl/fetch-url/node.d.ts +0 -56
- package/vendor/common-nodes/dist/crawl/fetch-url/node.js +0 -80
- package/vendor/common-nodes/dist/crawl/html/extract-links.d.ts +0 -3
- package/vendor/common-nodes/dist/crawl/html/extract-links.js +0 -36
- package/vendor/common-nodes/dist/crawl/html/html-to-text.d.ts +0 -3
- package/vendor/common-nodes/dist/crawl/html/html-to-text.js +0 -36
- package/vendor/common-nodes/dist/crawl/html/index.d.ts +0 -3
- package/vendor/common-nodes/dist/crawl/html/index.js +0 -3
- package/vendor/common-nodes/dist/crawl/save-page/node.d.ts +0 -21
- package/vendor/common-nodes/dist/crawl/save-page/node.js +0 -63
- package/vendor/common-nodes/dist/crawl/tool-defs.d.ts +0 -81
- package/vendor/common-nodes/dist/crawl/tool-defs.js +0 -56
- package/vendor/common-nodes/dist/flow/checkpoint/node.d.ts +0 -23
- package/vendor/common-nodes/dist/flow/checkpoint/node.js +0 -40
- package/vendor/common-nodes/dist/flow/delay/node.d.ts +0 -26
- package/vendor/common-nodes/dist/flow/delay/node.js +0 -42
- package/vendor/common-nodes/dist/flow/loop/node.d.ts +0 -22
- package/vendor/common-nodes/dist/flow/loop/node.js +0 -45
- package/vendor/common-nodes/dist/flow/map-collect-body.d.ts +0 -21
- package/vendor/common-nodes/dist/flow/map-collect-body.js +0 -73
- package/vendor/common-nodes/dist/flow/merge/node.d.ts +0 -17
- package/vendor/common-nodes/dist/flow/merge/node.js +0 -25
- package/vendor/common-nodes/dist/flow/repeat/node.d.ts +0 -20
- package/vendor/common-nodes/dist/flow/repeat/node.js +0 -61
- package/vendor/common-nodes/dist/flow/router/build-router-definition.d.ts +0 -20
- package/vendor/common-nodes/dist/flow/router/build-router-definition.js +0 -23
- package/vendor/common-nodes/dist/flow/router/node.d.ts +0 -17
- package/vendor/common-nodes/dist/flow/router/node.js +0 -14
- package/vendor/common-nodes/dist/flow/router/router-constants.d.ts +0 -2
- package/vendor/common-nodes/dist/flow/router/router-constants.js +0 -2
- package/vendor/common-nodes/dist/hitl/approval-choice/node.d.ts +0 -23
- package/vendor/common-nodes/dist/hitl/approval-choice/node.js +0 -71
- package/vendor/common-nodes/dist/hitl/ask-user/node.d.ts +0 -23
- package/vendor/common-nodes/dist/hitl/ask-user/node.js +0 -40
- package/vendor/common-nodes/dist/hitl/chat-input/node.d.ts +0 -20
- package/vendor/common-nodes/dist/hitl/chat-input/node.js +0 -39
- package/vendor/common-nodes/dist/hitl/hitl-required-role.d.ts +0 -38
- package/vendor/common-nodes/dist/hitl/hitl-required-role.js +0 -21
- package/vendor/common-nodes/dist/hitl/review-gate/node.d.ts +0 -17
- package/vendor/common-nodes/dist/hitl/review-gate/node.js +0 -64
- package/vendor/common-nodes/dist/kb/chunk-text.d.ts +0 -8
- package/vendor/common-nodes/dist/kb/chunk-text.js +0 -52
- package/vendor/common-nodes/dist/kb/cosine.d.ts +0 -3
- package/vendor/common-nodes/dist/kb/cosine.js +0 -21
- package/vendor/common-nodes/dist/kb/kb-apply-curation/node.d.ts +0 -25
- package/vendor/common-nodes/dist/kb/kb-apply-curation/node.js +0 -38
- package/vendor/common-nodes/dist/kb/kb-contradict/node.d.ts +0 -25
- package/vendor/common-nodes/dist/kb/kb-contradict/node.js +0 -70
- package/vendor/common-nodes/dist/kb/kb-dedupe/node.d.ts +0 -25
- package/vendor/common-nodes/dist/kb/kb-dedupe/node.js +0 -61
- package/vendor/common-nodes/dist/kb/kb-delete/node.d.ts +0 -24
- package/vendor/common-nodes/dist/kb/kb-delete/node.js +0 -60
- package/vendor/common-nodes/dist/kb/kb-embed/node.d.ts +0 -26
- package/vendor/common-nodes/dist/kb/kb-embed/node.js +0 -52
- package/vendor/common-nodes/dist/kb/kb-ingest/node.d.ts +0 -25
- package/vendor/common-nodes/dist/kb/kb-ingest/node.js +0 -68
- package/vendor/common-nodes/dist/kb/kb-list/node.d.ts +0 -24
- package/vendor/common-nodes/dist/kb/kb-list/node.js +0 -42
- package/vendor/common-nodes/dist/kb/kb-paths.d.ts +0 -8
- package/vendor/common-nodes/dist/kb/kb-paths.js +0 -19
- package/vendor/common-nodes/dist/kb/kb-search/node.d.ts +0 -24
- package/vendor/common-nodes/dist/kb/kb-search/node.js +0 -60
- package/vendor/common-nodes/dist/kb/kb-store.d.ts +0 -57
- package/vendor/common-nodes/dist/kb/kb-store.js +0 -290
- package/vendor/common-nodes/dist/kb/kb-tools/node.d.ts +0 -25
- package/vendor/common-nodes/dist/kb/kb-tools/node.js +0 -14
- package/vendor/common-nodes/dist/kb/local-embed.d.ts +0 -9
- package/vendor/common-nodes/dist/kb/local-embed.js +0 -41
- package/vendor/common-nodes/dist/kb/parse-string-list.d.ts +0 -3
- package/vendor/common-nodes/dist/kb/parse-string-list.js +0 -25
- package/vendor/common-nodes/dist/kb/tool-defs.d.ts +0 -85
- package/vendor/common-nodes/dist/kb/tool-defs.js +0 -67
- package/vendor/common-nodes/dist/langflower-tools/emit-registration-tools.d.ts +0 -18
- package/vendor/common-nodes/dist/langflower-tools/emit-registration-tools.js +0 -29
- package/vendor/common-nodes/dist/langflower-tools/node.d.ts +0 -20
- package/vendor/common-nodes/dist/langflower-tools/node.js +0 -77
- package/vendor/common-nodes/dist/logic/assert/node.d.ts +0 -20
- package/vendor/common-nodes/dist/logic/assert/node.js +0 -50
- package/vendor/common-nodes/dist/logic/compare/evaluate-compare.d.ts +0 -28
- package/vendor/common-nodes/dist/logic/compare/evaluate-compare.js +0 -60
- package/vendor/common-nodes/dist/logic/compare/node.d.ts +0 -107
- package/vendor/common-nodes/dist/logic/compare/node.js +0 -40
- package/vendor/common-nodes/dist/logic/gate/node.d.ts +0 -17
- package/vendor/common-nodes/dist/logic/gate/node.js +0 -35
- package/vendor/common-nodes/dist/logic/if/node.d.ts +0 -17
- package/vendor/common-nodes/dist/logic/if/node.js +0 -40
- package/vendor/common-nodes/dist/logic/switch/build-switch-definition.d.ts +0 -18
- package/vendor/common-nodes/dist/logic/switch/build-switch-definition.js +0 -30
- package/vendor/common-nodes/dist/logic/switch/node.d.ts +0 -87
- package/vendor/common-nodes/dist/logic/switch/node.js +0 -69
- package/vendor/common-nodes/dist/logic/switch/switch-constants.d.ts +0 -15
- package/vendor/common-nodes/dist/logic/switch/switch-constants.js +0 -24
- package/vendor/common-nodes/dist/logic/switch/switch-rules.d.ts +0 -6
- package/vendor/common-nodes/dist/logic/switch/switch-rules.js +0 -43
- package/vendor/common-nodes/dist/mcp/build-mcp-handle.d.ts +0 -13
- package/vendor/common-nodes/dist/mcp/build-mcp-handle.js +0 -65
- package/vendor/common-nodes/dist/mcp/build-mcp-transport.d.ts +0 -14
- package/vendor/common-nodes/dist/mcp/build-mcp-transport.js +0 -56
- package/vendor/common-nodes/dist/mcp/collect-mcp-tool-registrations.d.ts +0 -7
- package/vendor/common-nodes/dist/mcp/collect-mcp-tool-registrations.js +0 -19
- package/vendor/common-nodes/dist/mcp/create-system-mcp-transports.d.ts +0 -48
- package/vendor/common-nodes/dist/mcp/create-system-mcp-transports.js +0 -124
- package/vendor/common-nodes/dist/mcp/flatten-mcp-handles.d.ts +0 -6
- package/vendor/common-nodes/dist/mcp/flatten-mcp-handles.js +0 -21
- package/vendor/common-nodes/dist/mcp/flatten-mcp-server-configs.d.ts +0 -7
- package/vendor/common-nodes/dist/mcp/flatten-mcp-server-configs.js +0 -21
- package/vendor/common-nodes/dist/mcp/flatten-mcp-transports.d.ts +0 -7
- package/vendor/common-nodes/dist/mcp/flatten-mcp-transports.js +0 -22
- package/vendor/common-nodes/dist/mcp/format-mcp-connect-error.d.ts +0 -10
- package/vendor/common-nodes/dist/mcp/format-mcp-connect-error.js +0 -18
- package/vendor/common-nodes/dist/mcp/mcp-http/node.d.ts +0 -22
- package/vendor/common-nodes/dist/mcp/mcp-http/node.js +0 -102
- package/vendor/common-nodes/dist/mcp/mcp-server/node.d.ts +0 -26
- package/vendor/common-nodes/dist/mcp/mcp-server/node.js +0 -68
- package/vendor/common-nodes/dist/mcp/mcp-server-config.d.ts +0 -2
- package/vendor/common-nodes/dist/mcp/mcp-server-config.js +0 -2
- package/vendor/common-nodes/dist/mcp/mcp-stdio/node.d.ts +0 -22
- package/vendor/common-nodes/dist/mcp/mcp-stdio/node.js +0 -91
- package/vendor/common-nodes/dist/mcp/resolve-agent-mcp-inventory.d.ts +0 -13
- package/vendor/common-nodes/dist/mcp/resolve-agent-mcp-inventory.js +0 -17
- package/vendor/common-nodes/dist/mcp/resolve-mcp-inventory.d.ts +0 -8
- package/vendor/common-nodes/dist/mcp/resolve-mcp-inventory.js +0 -43
- package/vendor/common-nodes/dist/memory/memory/node.d.ts +0 -79
- package/vendor/common-nodes/dist/memory/memory/node.js +0 -76
- package/vendor/common-nodes/dist/memory/memory-tools/node.d.ts +0 -20
- package/vendor/common-nodes/dist/memory/memory-tools/node.js +0 -13
- package/vendor/common-nodes/dist/memory/tool-defs.d.ts +0 -48
- package/vendor/common-nodes/dist/memory/tool-defs.js +0 -45
- package/vendor/common-nodes/dist/obsidian/build-moc/node.d.ts +0 -26
- package/vendor/common-nodes/dist/obsidian/build-moc/node.js +0 -52
- package/vendor/common-nodes/dist/obsidian/build-moc.d.ts +0 -13
- package/vendor/common-nodes/dist/obsidian/build-moc.js +0 -57
- package/vendor/common-nodes/dist/obsidian/frontmatter/node.d.ts +0 -27
- package/vendor/common-nodes/dist/obsidian/frontmatter/node.js +0 -66
- package/vendor/common-nodes/dist/obsidian/frontmatter.d.ts +0 -26
- package/vendor/common-nodes/dist/obsidian/frontmatter.js +0 -142
- package/vendor/common-nodes/dist/obsidian/wikilink-rewrite/node.d.ts +0 -26
- package/vendor/common-nodes/dist/obsidian/wikilink-rewrite/node.js +0 -51
- package/vendor/common-nodes/dist/obsidian/wikilinks.d.ts +0 -22
- package/vendor/common-nodes/dist/obsidian/wikilinks.js +0 -84
- package/vendor/common-nodes/dist/output/finish/node.d.ts +0 -17
- package/vendor/common-nodes/dist/output/finish/node.js +0 -22
- package/vendor/common-nodes/dist/output/preview/node.d.ts +0 -17
- package/vendor/common-nodes/dist/output/preview/node.js +0 -41
- package/vendor/common-nodes/dist/primitives/boolean/node.d.ts +0 -17
- package/vendor/common-nodes/dist/primitives/boolean/node.js +0 -25
- package/vendor/common-nodes/dist/primitives/number/node.d.ts +0 -17
- package/vendor/common-nodes/dist/primitives/number/node.js +0 -25
- package/vendor/common-nodes/dist/primitives/string/node.d.ts +0 -17
- package/vendor/common-nodes/dist/primitives/string/node.js +0 -25
- package/vendor/common-nodes/dist/resolve-workflow-node-definition.d.ts +0 -7
- package/vendor/common-nodes/dist/resolve-workflow-node-definition.js +0 -3
- package/vendor/common-nodes/dist/text/append-file/node.d.ts +0 -20
- package/vendor/common-nodes/dist/text/append-file/node.js +0 -60
- package/vendor/common-nodes/dist/text/concat/node.d.ts +0 -17
- package/vendor/common-nodes/dist/text/concat/node.js +0 -34
- package/vendor/common-nodes/dist/text/read-file/node.d.ts +0 -20
- package/vendor/common-nodes/dist/text/read-file/node.js +0 -51
- package/vendor/common-nodes/dist/text/write-file/node.d.ts +0 -19
- package/vendor/common-nodes/dist/text/write-file/node.js +0 -52
- package/vendor/common-nodes/dist/tools/collect-agent-tool-handles.d.ts +0 -12
- package/vendor/common-nodes/dist/tools/collect-agent-tool-handles.js +0 -42
- package/vendor/common-nodes/dist/tools/filter-enabled-registrations.d.ts +0 -8
- package/vendor/common-nodes/dist/tools/filter-enabled-registrations.js +0 -17
- package/vendor/common-nodes/dist/tools/inventory-tool-round.d.ts +0 -20
- package/vendor/common-nodes/dist/tools/inventory-tool-round.js +0 -91
- package/vendor/common-nodes/dist/tools/merge-tool-inventory.d.ts +0 -10
- package/vendor/common-nodes/dist/tools/merge-tool-inventory.js +0 -26
- package/vendor/common-nodes/dist/tools/run-internal-tool-loop.d.ts +0 -55
- package/vendor/common-nodes/dist/tools/run-internal-tool-loop.js +0 -360
- package/vendor/common-nodes/dist/tools/tool-collection/node.d.ts +0 -20
- package/vendor/common-nodes/dist/tools/tool-collection/node.js +0 -42
- package/vendor/common-nodes/dist/tools/tool-registration.d.ts +0 -6
- package/vendor/common-nodes/dist/tools/tool-registration.js +0 -33
- package/vendor/common-nodes/package.json +0 -44
- package/vendor/compiler/dist/bundle-pack.d.ts +0 -18
- package/vendor/compiler/dist/bundle-pack.js +0 -98
- package/vendor/compiler/dist/cache-key.d.ts +0 -5
- package/vendor/compiler/dist/cache-key.js +0 -35
- package/vendor/compiler/dist/compile-project-nodes.d.ts +0 -14
- package/vendor/compiler/dist/compile-project-nodes.js +0 -143
- package/vendor/compiler/dist/compile-types.d.ts +0 -22
- package/vendor/compiler/dist/compile-types.js +0 -1
- package/vendor/compiler/dist/discover-packs.d.ts +0 -6
- package/vendor/compiler/dist/discover-packs.js +0 -93
- package/vendor/compiler/dist/format-compilation-errors.d.ts +0 -17
- package/vendor/compiler/dist/format-compilation-errors.js +0 -62
- package/vendor/compiler/dist/resolve-host-types.d.ts +0 -27
- package/vendor/compiler/dist/resolve-host-types.js +0 -185
- package/vendor/compiler/dist/typecheck-pack.d.ts +0 -20
- package/vendor/compiler/dist/typecheck-pack.js +0 -102
- package/vendor/compiler/dist/validate-default-export.d.ts +0 -9
- package/vendor/compiler/dist/validate-default-export.js +0 -40
- package/vendor/compiler/dist/write-compilation-errors.d.ts +0 -4
- package/vendor/compiler/dist/write-compilation-errors.js +0 -27
- package/vendor/compiler/package.json +0 -26
- package/vendor/eval/dist/eval-pack-types.d.ts +0 -14
- package/vendor/eval/dist/eval-pack-types.js +0 -1
- package/vendor/eval/dist/load-pack.d.ts +0 -5
- package/vendor/eval/dist/load-pack.js +0 -97
- package/vendor/eval/dist/load-skill-via-read.d.ts +0 -6
- package/vendor/eval/dist/load-skill-via-read.js +0 -14
- package/vendor/eval/dist/run-eval-suite.d.ts +0 -46
- package/vendor/eval/dist/run-eval-suite.js +0 -90
- package/vendor/eval/dist/score-case.d.ts +0 -2
- package/vendor/eval/dist/score-case.js +0 -10
- package/vendor/eval/package.json +0 -21
- package/vendor/server/dist/bootstrap/copy-force.d.ts +0 -7
- package/vendor/server/dist/bootstrap/copy-force.js +0 -18
- package/vendor/server/dist/bootstrap/copy-if-missing.d.ts +0 -7
- package/vendor/server/dist/bootstrap/copy-if-missing.js +0 -32
- package/vendor/server/dist/bootstrap/project-bootstrap.service.d.ts +0 -17
- package/vendor/server/dist/bootstrap/project-bootstrap.service.js +0 -82
- package/vendor/server/dist/bootstrap/project-bootstrap.service.test.d.ts +0 -2
- package/vendor/server/dist/bootstrap/project-bootstrap.service.test.js +0 -20
- package/vendor/server/dist/bootstrap/resolve-skeleton-root.d.ts +0 -8
- package/vendor/server/dist/bootstrap/resolve-skeleton-root.js +0 -34
- package/vendor/server/dist/bootstrap/seed-skeleton.d.ts +0 -15
- package/vendor/server/dist/bootstrap/seed-skeleton.js +0 -55
- package/vendor/server/dist/bridge/attach-langflower-bridge.d.ts +0 -19
- package/vendor/server/dist/bridge/attach-langflower-bridge.js +0 -79
- package/vendor/server/dist/bridge/bind-llm-context.d.ts +0 -13
- package/vendor/server/dist/bridge/bind-llm-context.js +0 -30
- package/vendor/server/dist/bridge/bridge-event-log.d.ts +0 -12
- package/vendor/server/dist/bridge/bridge-event-log.js +0 -114
- package/vendor/server/dist/bridge/bridge-outbound.d.ts +0 -4
- package/vendor/server/dist/bridge/bridge-outbound.js +0 -14
- package/vendor/server/dist/bridge/build-execution-context.d.ts +0 -31
- package/vendor/server/dist/bridge/build-execution-context.js +0 -219
- package/vendor/server/dist/bridge/build-execution-context.test.d.ts +0 -2
- package/vendor/server/dist/bridge/build-execution-context.test.js +0 -126
- package/vendor/server/dist/bridge/build-langflower-config-snapshot.d.ts +0 -6
- package/vendor/server/dist/bridge/build-langflower-config-snapshot.js +0 -17
- package/vendor/server/dist/bridge/client-index.d.ts +0 -5
- package/vendor/server/dist/bridge/client-index.js +0 -16
- package/vendor/server/dist/bridge/emit-bootstrap.d.ts +0 -16
- package/vendor/server/dist/bridge/emit-bootstrap.js +0 -79
- package/vendor/server/dist/bridge/forward-runner-event.d.ts +0 -4
- package/vendor/server/dist/bridge/forward-runner-event.js +0 -12
- package/vendor/server/dist/bridge/forward-runner-event.test.d.ts +0 -2
- package/vendor/server/dist/bridge/forward-runner-event.test.js +0 -91
- package/vendor/server/dist/bridge/get-live-wired-tools.d.ts +0 -13
- package/vendor/server/dist/bridge/get-live-wired-tools.js +0 -83
- package/vendor/server/dist/bridge/inbound-guards.d.ts +0 -2
- package/vendor/server/dist/bridge/inbound-guards.js +0 -4
- package/vendor/server/dist/bridge/langflower-bridge.types.d.ts +0 -4
- package/vendor/server/dist/bridge/langflower-bridge.types.js +0 -1
- package/vendor/server/dist/bridge/langflower-tools-rpc.d.ts +0 -7
- package/vendor/server/dist/bridge/langflower-tools-rpc.js +0 -29
- package/vendor/server/dist/bridge/push-models-catalog.d.ts +0 -12
- package/vendor/server/dist/bridge/push-models-catalog.js +0 -31
- package/vendor/server/dist/bridge/same-canvas-viewport.d.ts +0 -3
- package/vendor/server/dist/bridge/same-canvas-viewport.js +0 -5
- package/vendor/server/dist/bridge/settings-draft-controller.d.ts +0 -14
- package/vendor/server/dist/bridge/settings-draft-controller.js +0 -201
- package/vendor/server/dist/bridge/wire-config-handlers.d.ts +0 -11
- package/vendor/server/dist/bridge/wire-config-handlers.js +0 -49
- package/vendor/server/dist/bridge/wire-custom-palette-handlers.d.ts +0 -5
- package/vendor/server/dist/bridge/wire-custom-palette-handlers.js +0 -8
- package/vendor/server/dist/bridge/wire-editor-handlers.d.ts +0 -12
- package/vendor/server/dist/bridge/wire-editor-handlers.js +0 -240
- package/vendor/server/dist/bridge/wire-models-handlers.d.ts +0 -5
- package/vendor/server/dist/bridge/wire-models-handlers.js +0 -23
- package/vendor/server/dist/bridge/wire-palette-handlers.d.ts +0 -4
- package/vendor/server/dist/bridge/wire-palette-handlers.js +0 -9
- package/vendor/server/dist/bridge/wire-project-bootstrap-handlers.d.ts +0 -9
- package/vendor/server/dist/bridge/wire-project-bootstrap-handlers.js +0 -63
- package/vendor/server/dist/bridge/wire-runner-handlers.d.ts +0 -10
- package/vendor/server/dist/bridge/wire-runner-handlers.js +0 -302
- package/vendor/server/dist/bridge/wire-workflow-handlers.d.ts +0 -5
- package/vendor/server/dist/bridge/wire-workflow-handlers.js +0 -245
- package/vendor/server/dist/bridge/wrap-builtin-tool-handles.d.ts +0 -10
- package/vendor/server/dist/bridge/wrap-builtin-tool-handles.js +0 -42
- package/vendor/server/dist/checkpoint/list-resumable-checkpoints.d.ts +0 -4
- package/vendor/server/dist/checkpoint/list-resumable-checkpoints.js +0 -11
- package/vendor/server/dist/checkpoint/resolve-checkpoint-boundary.d.ts +0 -11
- package/vendor/server/dist/checkpoint/resolve-checkpoint-boundary.js +0 -31
- package/vendor/server/dist/checkpoint/run-checkpoint-session.d.ts +0 -41
- package/vendor/server/dist/checkpoint/run-checkpoint-session.js +0 -170
- package/vendor/server/dist/checkpoint/workflow-checkpoint-store.d.ts +0 -23
- package/vendor/server/dist/checkpoint/workflow-checkpoint-store.js +0 -177
- package/vendor/server/dist/checkpoint/workflow-checkpoint-store.test.d.ts +0 -2
- package/vendor/server/dist/checkpoint/workflow-checkpoint-store.test.js +0 -60
- package/vendor/server/dist/config/config.service.d.ts +0 -9
- package/vendor/server/dist/config/config.service.js +0 -31
- package/vendor/server/dist/config/langflower-config.service.d.ts +0 -35
- package/vendor/server/dist/config/langflower-config.service.js +0 -360
- package/vendor/server/dist/config/langflower-config.service.test.d.ts +0 -2
- package/vendor/server/dist/config/langflower-config.service.test.js +0 -111
- package/vendor/server/dist/config/redact-langflower-config.d.ts +0 -8
- package/vendor/server/dist/config/redact-langflower-config.js +0 -42
- package/vendor/server/dist/config/redact-langflower-config.test.d.ts +0 -2
- package/vendor/server/dist/config/redact-langflower-config.test.js +0 -69
- package/vendor/server/dist/config/resolve-draft-provider-credentials.d.ts +0 -18
- package/vendor/server/dist/config/resolve-draft-provider-credentials.js +0 -60
- package/vendor/server/dist/config/resolve-global-langflower-config-path.d.ts +0 -5
- package/vendor/server/dist/config/resolve-global-langflower-config-path.js +0 -18
- package/vendor/server/dist/config/resolve-provider-credentials.d.ts +0 -20
- package/vendor/server/dist/config/resolve-provider-credentials.js +0 -59
- package/vendor/server/dist/config/resolve-provider-credentials.test.d.ts +0 -2
- package/vendor/server/dist/config/resolve-provider-credentials.test.js +0 -63
- package/vendor/server/dist/crawl/create-crawl-context.d.ts +0 -6
- package/vendor/server/dist/crawl/create-crawl-context.js +0 -33
- package/vendor/server/dist/crawl/create-crawl-context.test.d.ts +0 -2
- package/vendor/server/dist/crawl/create-crawl-context.test.js +0 -30
- package/vendor/server/dist/crawl/create-web-fetch.d.ts +0 -12
- package/vendor/server/dist/crawl/create-web-fetch.js +0 -128
- package/vendor/server/dist/crawl/create-web-fetch.test.d.ts +0 -2
- package/vendor/server/dist/crawl/create-web-fetch.test.js +0 -43
- package/vendor/server/dist/crawl/ssrf-guard.d.ts +0 -13
- package/vendor/server/dist/crawl/ssrf-guard.js +0 -117
- package/vendor/server/dist/crawl/ssrf-guard.test.d.ts +0 -2
- package/vendor/server/dist/crawl/ssrf-guard.test.js +0 -46
- package/vendor/server/dist/create-server.d.ts +0 -10
- package/vendor/server/dist/create-server.js +0 -60
- package/vendor/server/dist/harness/pending-permission-asks.d.ts +0 -14
- package/vendor/server/dist/harness/pending-permission-asks.js +0 -45
- package/vendor/server/dist/harness/permission.d.ts +0 -23
- package/vendor/server/dist/harness/permission.js +0 -31
- package/vendor/server/dist/harness/permission.test.d.ts +0 -2
- package/vendor/server/dist/harness/permission.test.js +0 -50
- package/vendor/server/dist/index.d.ts +0 -4
- package/vendor/server/dist/index.js +0 -4
- package/vendor/server/dist/kb/chunk-text.d.ts +0 -8
- package/vendor/server/dist/kb/chunk-text.js +0 -52
- package/vendor/server/dist/kb/cosine.d.ts +0 -3
- package/vendor/server/dist/kb/cosine.js +0 -21
- package/vendor/server/dist/kb/create-kb-context.d.ts +0 -6
- package/vendor/server/dist/kb/create-kb-context.js +0 -46
- package/vendor/server/dist/kb/kb-paths.d.ts +0 -8
- package/vendor/server/dist/kb/kb-paths.js +0 -19
- package/vendor/server/dist/kb/kb-store.d.ts +0 -41
- package/vendor/server/dist/kb/kb-store.js +0 -250
- package/vendor/server/dist/kb/kb-store.test.d.ts +0 -2
- package/vendor/server/dist/kb/kb-store.test.js +0 -94
- package/vendor/server/dist/kb/local-embed.d.ts +0 -8
- package/vendor/server/dist/kb/local-embed.js +0 -41
- package/vendor/server/dist/listen-http-server.d.ts +0 -6
- package/vendor/server/dist/listen-http-server.js +0 -18
- package/vendor/server/dist/llm/create-chat-completion-stream.d.ts +0 -8
- package/vendor/server/dist/llm/create-chat-completion-stream.js +0 -125
- package/vendor/server/dist/llm/create-chat-completion-stream.test.d.ts +0 -2
- package/vendor/server/dist/llm/create-chat-completion-stream.test.js +0 -72
- package/vendor/server/dist/llm/create-embedding.d.ts +0 -9
- package/vendor/server/dist/llm/create-embedding.js +0 -51
- package/vendor/server/dist/llm/list-provider-models.d.ts +0 -29
- package/vendor/server/dist/llm/list-provider-models.js +0 -55
- package/vendor/server/dist/llm/list-provider-models.test.d.ts +0 -2
- package/vendor/server/dist/llm/list-provider-models.test.js +0 -97
- package/vendor/server/dist/mcp/create-mcp-runtime.d.ts +0 -21
- package/vendor/server/dist/mcp/create-mcp-runtime.js +0 -167
- package/vendor/server/dist/mcp/create-mcp-runtime.test.d.ts +0 -2
- package/vendor/server/dist/mcp/create-mcp-runtime.test.js +0 -69
- package/vendor/server/dist/mcp/mcp-stdio-client.d.ts +0 -32
- package/vendor/server/dist/mcp/mcp-stdio-client.js +0 -183
- package/vendor/server/dist/mcp/mcp-tool-id.d.ts +0 -5
- package/vendor/server/dist/mcp/mcp-tool-id.js +0 -5
- package/vendor/server/dist/mcp/openai-mcp-tool-loop.test.d.ts +0 -2
- package/vendor/server/dist/mcp/openai-mcp-tool-loop.test.js +0 -189
- package/vendor/server/dist/mcp/wrap-harness-with-mcp.d.ts +0 -5
- package/vendor/server/dist/mcp/wrap-harness-with-mcp.js +0 -14
- package/vendor/server/dist/palette/compile-and-hot-swap-custom-nodes.d.ts +0 -10
- package/vendor/server/dist/palette/compile-and-hot-swap-custom-nodes.js +0 -23
- package/vendor/server/dist/palette/custom-node-registry.d.ts +0 -10
- package/vendor/server/dist/palette/custom-node-registry.js +0 -19
- package/vendor/server/dist/palette/custom-palette.service.d.ts +0 -12
- package/vendor/server/dist/palette/custom-palette.service.js +0 -63
- package/vendor/server/dist/palette/palette.service.d.ts +0 -13
- package/vendor/server/dist/palette/palette.service.js +0 -28
- package/vendor/server/dist/server-context.d.ts +0 -18
- package/vendor/server/dist/server-context.js +0 -29
- package/vendor/server/dist/session/build-selected-node-payload.d.ts +0 -9
- package/vendor/server/dist/session/build-selected-node-payload.js +0 -20
- package/vendor/server/dist/session/build-session-bootstrap.d.ts +0 -7
- package/vendor/server/dist/session/build-session-bootstrap.js +0 -22
- package/vendor/server/dist/session/clear-feed-while-running.test.d.ts +0 -2
- package/vendor/server/dist/session/clear-feed-while-running.test.js +0 -41
- package/vendor/server/dist/session/langflower-session.d.ts +0 -36
- package/vendor/server/dist/session/langflower-session.js +0 -90
- package/vendor/server/dist/session/reset-session-execution-feed.d.ts +0 -6
- package/vendor/server/dist/session/reset-session-execution-feed.js +0 -8
- package/vendor/server/dist/session/settings-draft-session.d.ts +0 -24
- package/vendor/server/dist/session/settings-draft-session.js +0 -82
- package/vendor/server/dist/skills/is-safe-skill-id.d.ts +0 -2
- package/vendor/server/dist/skills/is-safe-skill-id.js +0 -7
- package/vendor/server/dist/skills/list-skills.d.ts +0 -2
- package/vendor/server/dist/skills/list-skills.js +0 -36
- package/vendor/server/dist/skills/list-skills.test.d.ts +0 -2
- package/vendor/server/dist/skills/list-skills.test.js +0 -46
- package/vendor/server/dist/skills/parse-skill-markdown.d.ts +0 -7
- package/vendor/server/dist/skills/parse-skill-markdown.js +0 -50
- package/vendor/server/dist/skills/parse-skill-markdown.test.d.ts +0 -2
- package/vendor/server/dist/skills/parse-skill-markdown.test.js +0 -33
- package/vendor/server/dist/skills/read-agents-markdown.d.ts +0 -2
- package/vendor/server/dist/skills/read-agents-markdown.js +0 -13
- package/vendor/server/dist/skills/read-skill-markdown.d.ts +0 -2
- package/vendor/server/dist/skills/read-skill-markdown.js +0 -17
- package/vendor/server/dist/skills/read-skill-markdown.test.d.ts +0 -2
- package/vendor/server/dist/skills/read-skill-markdown.test.js +0 -31
- package/vendor/server/dist/skills/with-skills-catalog.d.ts +0 -3
- package/vendor/server/dist/skills/with-skills-catalog.js +0 -6
- package/vendor/server/dist/skills/with-skills-catalog.test.d.ts +0 -2
- package/vendor/server/dist/skills/with-skills-catalog.test.js +0 -40
- package/vendor/server/dist/utils/parse-jsonc.d.ts +0 -2
- package/vendor/server/dist/utils/parse-jsonc.js +0 -7
- package/vendor/server/dist/workflow/activate-workflow-in-session.d.ts +0 -26
- package/vendor/server/dist/workflow/activate-workflow-in-session.js +0 -69
- package/vendor/server/dist/workflow/apply-editor-mutation.d.ts +0 -67
- package/vendor/server/dist/workflow/apply-editor-mutation.js +0 -521
- package/vendor/server/dist/workflow/apply-editor-mutation.test.d.ts +0 -2
- package/vendor/server/dist/workflow/apply-editor-mutation.test.js +0 -397
- package/vendor/server/dist/workflow/bind-workflow-graph.d.ts +0 -11
- package/vendor/server/dist/workflow/bind-workflow-graph.js +0 -16
- package/vendor/server/dist/workflow/build-save-current-payload.d.ts +0 -3
- package/vendor/server/dist/workflow/build-save-current-payload.js +0 -17
- package/vendor/server/dist/workflow/build-save-current-payload.test.d.ts +0 -2
- package/vendor/server/dist/workflow/build-save-current-payload.test.js +0 -44
- package/vendor/server/dist/workflow/copy-workflow-to-session.d.ts +0 -8
- package/vendor/server/dist/workflow/copy-workflow-to-session.js +0 -32
- package/vendor/server/dist/workflow/copy-workflow-to-session.test.d.ts +0 -2
- package/vendor/server/dist/workflow/copy-workflow-to-session.test.js +0 -72
- package/vendor/server/dist/workflow/create-empty-workflow-in-session.d.ts +0 -4
- package/vendor/server/dist/workflow/create-empty-workflow-in-session.js +0 -34
- package/vendor/server/dist/workflow/create-empty-workflow-in-session.test.d.ts +0 -2
- package/vendor/server/dist/workflow/create-empty-workflow-in-session.test.js +0 -54
- package/vendor/server/dist/workflow/load-workflow-into-session.d.ts +0 -15
- package/vendor/server/dist/workflow/load-workflow-into-session.js +0 -43
- package/vendor/server/dist/workflow/rename-active-workflow.d.ts +0 -14
- package/vendor/server/dist/workflow/rename-active-workflow.js +0 -60
- package/vendor/server/dist/workflow/rename-active-workflow.test.d.ts +0 -2
- package/vendor/server/dist/workflow/rename-active-workflow.test.js +0 -111
- package/vendor/server/dist/workflow/repair-workflow-graph.d.ts +0 -12
- package/vendor/server/dist/workflow/repair-workflow-graph.js +0 -62
- package/vendor/server/dist/workflow/repro-bypass.test.d.ts +0 -2
- package/vendor/server/dist/workflow/repro-bypass.test.js +0 -63
- package/vendor/server/dist/workflow/workflow-document.d.ts +0 -21
- package/vendor/server/dist/workflow/workflow-document.js +0 -58
- package/vendor/server/dist/workflow/workflow-id.d.ts +0 -2
- package/vendor/server/dist/workflow/workflow-id.js +0 -19
- package/vendor/server/dist/workflow/workflow-id.test.d.ts +0 -2
- package/vendor/server/dist/workflow/workflow-id.test.js +0 -23
- package/vendor/server/dist/workflow/workflow-persisted-inputs.d.ts +0 -13
- package/vendor/server/dist/workflow/workflow-persisted-inputs.js +0 -69
- package/vendor/server/dist/workflow/workflow.service.d.ts +0 -37
- package/vendor/server/dist/workflow/workflow.service.js +0 -161
- package/vendor/server/dist/workflow/workflow.service.test.d.ts +0 -2
- package/vendor/server/dist/workflow/workflow.service.test.js +0 -57
- package/vendor/server/package.json +0 -35
- package/vendor/shared/dist/checkpoint/json-value.d.ts +0 -7
- package/vendor/shared/dist/checkpoint/json-value.js +0 -52
- package/vendor/shared/dist/checkpoint/json-value.test.d.ts +0 -1
- package/vendor/shared/dist/checkpoint/json-value.test.js +0 -22
- package/vendor/shared/dist/checkpoint/workflow-fingerprint.d.ts +0 -11
- package/vendor/shared/dist/checkpoint/workflow-fingerprint.js +0 -17
- package/vendor/shared/dist/checkpoint/workflow-fingerprint.test.d.ts +0 -1
- package/vendor/shared/dist/checkpoint/workflow-fingerprint.test.js +0 -54
- package/vendor/shared/dist/constants/defaults.d.ts +0 -16
- package/vendor/shared/dist/constants/defaults.js +0 -25
- package/vendor/shared/dist/execution/derive-run-settle-outcome.d.ts +0 -16
- package/vendor/shared/dist/execution/derive-run-settle-outcome.js +0 -48
- package/vendor/shared/dist/execution/derive-run-settle-outcome.test.d.ts +0 -1
- package/vendor/shared/dist/execution/derive-run-settle-outcome.test.js +0 -46
- package/vendor/shared/dist/langflower-bus-config.d.ts +0 -468
- package/vendor/shared/dist/langflower-bus-config.js +0 -619
- package/vendor/shared/dist/langflower-config/mcp-tool-id.d.ts +0 -23
- package/vendor/shared/dist/langflower-config/mcp-tool-id.js +0 -43
- package/vendor/shared/dist/langflower-config/merge-langflower-config-layers.d.ts +0 -6
- package/vendor/shared/dist/langflower-config/merge-langflower-config-layers.js +0 -18
- package/vendor/shared/dist/langflower-config/merge-langflower-config-layers.test.d.ts +0 -1
- package/vendor/shared/dist/langflower-config/merge-langflower-config-layers.test.js +0 -36
- package/vendor/shared/dist/langflower-config/merge-provider-model-options.d.ts +0 -7
- package/vendor/shared/dist/langflower-config/merge-provider-model-options.js +0 -17
- package/vendor/shared/dist/langflower-config/merge-provider-model-options.test.d.ts +0 -1
- package/vendor/shared/dist/langflower-config/merge-provider-model-options.test.js +0 -22
- package/vendor/shared/dist/langflower-config/parse-default-chat-model.d.ts +0 -14
- package/vendor/shared/dist/langflower-config/parse-default-chat-model.js +0 -38
- package/vendor/shared/dist/langflower-config/parse-default-chat-model.test.d.ts +0 -1
- package/vendor/shared/dist/langflower-config/parse-default-chat-model.test.js +0 -41
- package/vendor/shared/dist/langflower-config/resolve-server-logs-enabled.d.ts +0 -6
- package/vendor/shared/dist/langflower-config/resolve-server-logs-enabled.js +0 -5
- package/vendor/shared/dist/langflower-config/resolve-server-logs-enabled.test.d.ts +0 -1
- package/vendor/shared/dist/langflower-config/resolve-server-logs-enabled.test.js +0 -11
- package/vendor/shared/dist/langflower-config/resolve-ui-schema-options.d.ts +0 -18
- package/vendor/shared/dist/langflower-config/resolve-ui-schema-options.js +0 -61
- package/vendor/shared/dist/langflower-config/resolve-ui-schema-options.test.d.ts +0 -1
- package/vendor/shared/dist/langflower-config/resolve-ui-schema-options.test.js +0 -37
- package/vendor/shared/dist/langflower-config/resolve-wired-tool-options.d.ts +0 -40
- package/vendor/shared/dist/langflower-config/resolve-wired-tool-options.js +0 -139
- package/vendor/shared/dist/langflower-config/resolve-wired-tool-options.test.d.ts +0 -1
- package/vendor/shared/dist/langflower-config/resolve-wired-tool-options.test.js +0 -253
- package/vendor/shared/dist/langflower-config/settings-draft.d.ts +0 -44
- package/vendor/shared/dist/langflower-config/settings-draft.js +0 -143
- package/vendor/shared/dist/langflower-ws-waits.d.ts +0 -58
- package/vendor/shared/dist/langflower-ws-waits.js +0 -121
- package/vendor/shared/dist/langflower.d.ts +0 -30
- package/vendor/shared/dist/langflower.js +0 -13
- package/vendor/shared/dist/types/config.d.ts +0 -4
- package/vendor/shared/dist/types/config.js +0 -1
- package/vendor/shared/dist/types/langflower-bootstrap.d.ts +0 -65
- package/vendor/shared/dist/types/langflower-bootstrap.js +0 -1
- package/vendor/shared/dist/types/langflower-config.d.ts +0 -246
- package/vendor/shared/dist/types/langflower-config.js +0 -1
- package/vendor/shared/dist/types/langflower-custom-palette.d.ts +0 -21
- package/vendor/shared/dist/types/langflower-custom-palette.js +0 -1
- package/vendor/shared/dist/types/langflower-editor.d.ts +0 -96
- package/vendor/shared/dist/types/langflower-editor.js +0 -1
- package/vendor/shared/dist/types/langflower-palette.d.ts +0 -24
- package/vendor/shared/dist/types/langflower-palette.js +0 -1
- package/vendor/shared/dist/types/langflower-project-bootstrap.d.ts +0 -11
- package/vendor/shared/dist/types/langflower-project-bootstrap.js +0 -1
- package/vendor/shared/dist/types/langflower-server.d.ts +0 -4
- package/vendor/shared/dist/types/langflower-server.js +0 -1
- package/vendor/shared/dist/types/langflower-workflow.d.ts +0 -146
- package/vendor/shared/dist/types/langflower-workflow.js +0 -12
- package/vendor/shared/dist/types/workflow-checkpoint.d.ts +0 -60
- package/vendor/shared/dist/types/workflow-checkpoint.js +0 -9
- package/vendor/shared/package.json +0 -74
- package/vendor/tools/dist/builtin-schemas.d.ts +0 -10
- package/vendor/tools/dist/builtin-schemas.js +0 -144
- package/vendor/tools/dist/builtins/apply-post-process.d.ts +0 -1
- package/vendor/tools/dist/builtins/apply-post-process.js +0 -9
- package/vendor/tools/dist/builtins/args.d.ts +0 -3
- package/vendor/tools/dist/builtins/args.js +0 -14
- package/vendor/tools/dist/builtins/bash/tool.d.ts +0 -25
- package/vendor/tools/dist/builtins/bash/tool.js +0 -72
- package/vendor/tools/dist/builtins/catalog.d.ts +0 -228
- package/vendor/tools/dist/builtins/catalog.js +0 -24
- package/vendor/tools/dist/builtins/command-exists.d.ts +0 -5
- package/vendor/tools/dist/builtins/command-exists.js +0 -27
- package/vendor/tools/dist/builtins/create/tool.d.ts +0 -25
- package/vendor/tools/dist/builtins/create/tool.js +0 -56
- package/vendor/tools/dist/builtins/delete/tool.d.ts +0 -21
- package/vendor/tools/dist/builtins/delete/tool.js +0 -44
- package/vendor/tools/dist/builtins/edit/tool.d.ts +0 -29
- package/vendor/tools/dist/builtins/edit/tool.js +0 -68
- package/vendor/tools/dist/builtins/fence.d.ts +0 -4
- package/vendor/tools/dist/builtins/fence.js +0 -6
- package/vendor/tools/dist/builtins/glob/tool.d.ts +0 -33
- package/vendor/tools/dist/builtins/glob/tool.js +0 -77
- package/vendor/tools/dist/builtins/grep/search.d.ts +0 -43
- package/vendor/tools/dist/builtins/grep/search.js +0 -315
- package/vendor/tools/dist/builtins/grep/tool.d.ts +0 -36
- package/vendor/tools/dist/builtins/grep/tool.js +0 -66
- package/vendor/tools/dist/builtins/read/tool.d.ts +0 -41
- package/vendor/tools/dist/builtins/read/tool.js +0 -96
- package/vendor/tools/dist/builtins/spawn-capture.d.ts +0 -15
- package/vendor/tools/dist/builtins/spawn-capture.js +0 -42
- package/vendor/tools/dist/builtins/types.d.ts +0 -16
- package/vendor/tools/dist/builtins/types.js +0 -1
- package/vendor/tools/dist/builtins/walk-files.d.ts +0 -16
- package/vendor/tools/dist/builtins/walk-files.js +0 -100
- package/vendor/tools/dist/builtins/write/tool.d.ts +0 -25
- package/vendor/tools/dist/builtins/write/tool.js +0 -40
- package/vendor/tools/dist/create-crawl-context.d.ts +0 -22
- package/vendor/tools/dist/create-crawl-context.js +0 -34
- package/vendor/tools/dist/create-memory-context.d.ts +0 -12
- package/vendor/tools/dist/create-memory-context.js +0 -84
- package/vendor/tools/dist/create-project-files-context.d.ts +0 -19
- package/vendor/tools/dist/create-project-files-context.js +0 -75
- package/vendor/tools/dist/create-project-harness.d.ts +0 -33
- package/vendor/tools/dist/create-project-harness.js +0 -64
- package/vendor/tools/dist/create-web-fetch.d.ts +0 -27
- package/vendor/tools/dist/create-web-fetch.js +0 -164
- package/vendor/tools/dist/domain/args.d.ts +0 -3
- package/vendor/tools/dist/domain/args.js +0 -22
- package/vendor/tools/dist/domain/create-domain-handlers.d.ts +0 -22
- package/vendor/tools/dist/domain/create-domain-handlers.js +0 -223
- package/vendor/tools/dist/domain/domain-tool-configs.d.ts +0 -30
- package/vendor/tools/dist/domain/domain-tool-configs.js +0 -299
- package/vendor/tools/dist/domain/html.d.ts +0 -4
- package/vendor/tools/dist/domain/html.js +0 -68
- package/vendor/tools/dist/domain/run-bfs-crawl.d.ts +0 -57
- package/vendor/tools/dist/domain/run-bfs-crawl.js +0 -112
- package/vendor/tools/dist/gate-tool-call.d.ts +0 -17
- package/vendor/tools/dist/gate-tool-call.js +0 -35
- package/vendor/tools/dist/gitignore.d.ts +0 -4
- package/vendor/tools/dist/gitignore.js +0 -94
- package/vendor/tools/dist/handlers.d.ts +0 -16
- package/vendor/tools/dist/handlers.js +0 -367
- package/vendor/tools/dist/harness-types.d.ts +0 -33
- package/vendor/tools/dist/harness-types.js +0 -4
- package/vendor/tools/dist/kb/chunk-text.d.ts +0 -8
- package/vendor/tools/dist/kb/chunk-text.js +0 -52
- package/vendor/tools/dist/kb/cosine.d.ts +0 -3
- package/vendor/tools/dist/kb/cosine.js +0 -21
- package/vendor/tools/dist/kb/create-kb-context.d.ts +0 -62
- package/vendor/tools/dist/kb/create-kb-context.js +0 -78
- package/vendor/tools/dist/kb/kb-curation.d.ts +0 -69
- package/vendor/tools/dist/kb/kb-curation.js +0 -364
- package/vendor/tools/dist/kb/kb-paths.d.ts +0 -8
- package/vendor/tools/dist/kb/kb-paths.js +0 -19
- package/vendor/tools/dist/kb/kb-store.d.ts +0 -41
- package/vendor/tools/dist/kb/kb-store.js +0 -246
- package/vendor/tools/dist/kb/local-embed.d.ts +0 -8
- package/vendor/tools/dist/kb/local-embed.js +0 -41
- package/vendor/tools/dist/mcp/build-mcp-handle.d.ts +0 -30
- package/vendor/tools/dist/mcp/build-mcp-handle.js +0 -65
- package/vendor/tools/dist/mcp/create-mcp-runtime.d.ts +0 -29
- package/vendor/tools/dist/mcp/create-mcp-runtime.js +0 -161
- package/vendor/tools/dist/mcp/create-system-mcp-handles.d.ts +0 -49
- package/vendor/tools/dist/mcp/create-system-mcp-handles.js +0 -123
- package/vendor/tools/dist/mcp/env-with-shell-com-spec.d.ts +0 -5
- package/vendor/tools/dist/mcp/env-with-shell-com-spec.js +0 -18
- package/vendor/tools/dist/mcp/format-mcp-connect-error.d.ts +0 -9
- package/vendor/tools/dist/mcp/format-mcp-connect-error.js +0 -13
- package/vendor/tools/dist/mcp/mcp-client-types.d.ts +0 -17
- package/vendor/tools/dist/mcp/mcp-client-types.js +0 -1
- package/vendor/tools/dist/mcp/mcp-http-client.d.ts +0 -31
- package/vendor/tools/dist/mcp/mcp-http-client.js +0 -243
- package/vendor/tools/dist/mcp/mcp-stdio-client.d.ts +0 -19
- package/vendor/tools/dist/mcp/mcp-stdio-client.js +0 -186
- package/vendor/tools/dist/mcp/mcp-stdio-frame-parser.d.ts +0 -7
- package/vendor/tools/dist/mcp/mcp-stdio-frame-parser.js +0 -77
- package/vendor/tools/dist/mcp/mcp-tool-id.d.ts +0 -25
- package/vendor/tools/dist/mcp/mcp-tool-id.js +0 -45
- package/vendor/tools/dist/mcp/require-mcp-server-name.d.ts +0 -5
- package/vendor/tools/dist/mcp/require-mcp-server-name.js +0 -22
- package/vendor/tools/dist/mcp/resolve-shell-option.d.ts +0 -6
- package/vendor/tools/dist/mcp/resolve-shell-option.js +0 -19
- package/vendor/tools/dist/mcp/wrap-harness-with-mcp.d.ts +0 -5
- package/vendor/tools/dist/mcp/wrap-harness-with-mcp.js +0 -27
- package/vendor/tools/dist/memory/atomic-write.d.ts +0 -4
- package/vendor/tools/dist/memory/atomic-write.js +0 -18
- package/vendor/tools/dist/memory/create-memory-store.d.ts +0 -21
- package/vendor/tools/dist/memory/create-memory-store.js +0 -203
- package/vendor/tools/dist/memory/markdown-sections.d.ts +0 -22
- package/vendor/tools/dist/memory/markdown-sections.js +0 -69
- package/vendor/tools/dist/memory/memory-paths.d.ts +0 -9
- package/vendor/tools/dist/memory/memory-paths.js +0 -28
- package/vendor/tools/dist/path-sandbox.d.ts +0 -21
- package/vendor/tools/dist/path-sandbox.js +0 -96
- package/vendor/tools/dist/permission.d.ts +0 -75
- package/vendor/tools/dist/permission.js +0 -264
- package/vendor/tools/dist/post-process.d.ts +0 -9
- package/vendor/tools/dist/post-process.js +0 -36
- package/vendor/tools/dist/ssrf-guard.d.ts +0 -22
- package/vendor/tools/dist/ssrf-guard.js +0 -119
- package/vendor/tools/package.json +0 -73
- package/vendor/websocket-bridge/dist/bridge-codec.d.ts +0 -3
- package/vendor/websocket-bridge/dist/bridge-codec.js +0 -26
- package/vendor/websocket-bridge/dist/bridge-frame.d.ts +0 -11
- package/vendor/websocket-bridge/dist/bridge-frame.js +0 -24
- package/vendor/websocket-bridge/dist/bridge-guards.d.ts +0 -4
- package/vendor/websocket-bridge/dist/bridge-guards.js +0 -17
- package/vendor/websocket-bridge/dist/bridge-subjects.d.ts +0 -10
- package/vendor/websocket-bridge/dist/bridge-subjects.js +0 -38
- package/vendor/websocket-bridge/dist/bridge-types.d.ts +0 -102
- package/vendor/websocket-bridge/dist/bridge-types.js +0 -2
- package/vendor/websocket-bridge/dist/create-client.d.ts +0 -5
- package/vendor/websocket-bridge/dist/create-client.js +0 -152
- package/vendor/websocket-bridge/dist/create-server.d.ts +0 -8
- package/vendor/websocket-bridge/dist/create-server.js +0 -134
- package/vendor/websocket-bridge/dist/testing/expect-type.d.ts +0 -3
- package/vendor/websocket-bridge/dist/testing/expect-type.js +0 -3
- package/vendor/websocket-bridge/dist/testing/sample-diagram-ws-config.d.ts +0 -27
- package/vendor/websocket-bridge/dist/testing/sample-diagram-ws-config.js +0 -12
- package/vendor/websocket-bridge/dist/testing/sample-ping-ws-config.d.ts +0 -17
- package/vendor/websocket-bridge/dist/testing/sample-ping-ws-config.js +0 -10
- package/vendor/websocket-bridge/dist/testing/transport-test-helpers.d.ts +0 -6
- package/vendor/websocket-bridge/dist/testing/transport-test-helpers.js +0 -34
- package/vendor/websocket-bridge/package.json +0 -34
|
@@ -1,128 +0,0 @@
|
|
|
1
|
-
import { assertUrlSafeForFetch } from './ssrf-guard.js';
|
|
2
|
-
const DEFAULT_TIMEOUT_MS = 30_000;
|
|
3
|
-
const DEFAULT_MAX_BYTES = 5_000_000;
|
|
4
|
-
const MAX_REDIRECTS = 5;
|
|
5
|
-
const headersToRecord = (headers) => {
|
|
6
|
-
const out = {};
|
|
7
|
-
headers.forEach((value, key) => {
|
|
8
|
-
out[key] = value;
|
|
9
|
-
});
|
|
10
|
-
return out;
|
|
11
|
-
};
|
|
12
|
-
const readBodyLimited = async (response, maxBytes) => {
|
|
13
|
-
if (response.body === null) {
|
|
14
|
-
return '';
|
|
15
|
-
}
|
|
16
|
-
const reader = response.body.getReader();
|
|
17
|
-
const decoder = new TextDecoder();
|
|
18
|
-
let total = 0;
|
|
19
|
-
let text = '';
|
|
20
|
-
for (;;) {
|
|
21
|
-
const { done, value } = await reader.read();
|
|
22
|
-
if (done) {
|
|
23
|
-
break;
|
|
24
|
-
}
|
|
25
|
-
if (value === undefined) {
|
|
26
|
-
continue;
|
|
27
|
-
}
|
|
28
|
-
total += value.byteLength;
|
|
29
|
-
if (total > maxBytes) {
|
|
30
|
-
await reader.cancel();
|
|
31
|
-
throw new Error(`Response exceeded maxBytes (${maxBytes}).`);
|
|
32
|
-
}
|
|
33
|
-
text += decoder.decode(value, { stream: true });
|
|
34
|
-
}
|
|
35
|
-
text += decoder.decode();
|
|
36
|
-
return text;
|
|
37
|
-
};
|
|
38
|
-
/**
|
|
39
|
-
* SSRF-guarded HTTP GET for crawl / Fetch URL nodes.
|
|
40
|
-
* Validates every redirect hop; truncates body at `maxBytes`.
|
|
41
|
-
*/
|
|
42
|
-
export const createWebFetch = (options = {}) => {
|
|
43
|
-
const fetchImpl = options.fetchImpl ?? fetch;
|
|
44
|
-
return async (request) => {
|
|
45
|
-
const timeoutMs = typeof request.timeoutMs === 'number' && request.timeoutMs > 0
|
|
46
|
-
? request.timeoutMs
|
|
47
|
-
: DEFAULT_TIMEOUT_MS;
|
|
48
|
-
const maxBytes = typeof request.maxBytes === 'number' && request.maxBytes > 0
|
|
49
|
-
? request.maxBytes
|
|
50
|
-
: DEFAULT_MAX_BYTES;
|
|
51
|
-
try {
|
|
52
|
-
let currentUrl = request.url;
|
|
53
|
-
for (let hop = 0; hop <= MAX_REDIRECTS; hop += 1) {
|
|
54
|
-
const safeUrl = await assertUrlSafeForFetch(currentUrl, {
|
|
55
|
-
...(options.allowedHosts !== undefined
|
|
56
|
-
? { allowedHosts: options.allowedHosts }
|
|
57
|
-
: {}),
|
|
58
|
-
});
|
|
59
|
-
const controller = new AbortController();
|
|
60
|
-
const timer = setTimeout(() => controller.abort(), timeoutMs);
|
|
61
|
-
try {
|
|
62
|
-
const response = await fetchImpl(safeUrl.toString(), {
|
|
63
|
-
method: 'GET',
|
|
64
|
-
redirect: 'manual',
|
|
65
|
-
signal: controller.signal,
|
|
66
|
-
headers: {
|
|
67
|
-
Accept: 'text/html,application/xhtml+xml,*/*;q=0.8',
|
|
68
|
-
'User-Agent': 'LangflowerCrawl/0.1',
|
|
69
|
-
},
|
|
70
|
-
});
|
|
71
|
-
if (response.status >= 300 &&
|
|
72
|
-
response.status < 400 &&
|
|
73
|
-
response.headers.has('location')) {
|
|
74
|
-
const location = response.headers.get('location');
|
|
75
|
-
if (location === null || location.length === 0) {
|
|
76
|
-
return {
|
|
77
|
-
ok: false,
|
|
78
|
-
status: response.status,
|
|
79
|
-
url: safeUrl.toString(),
|
|
80
|
-
headers: headersToRecord(response.headers),
|
|
81
|
-
body: '',
|
|
82
|
-
error: 'Redirect missing Location header.',
|
|
83
|
-
};
|
|
84
|
-
}
|
|
85
|
-
currentUrl = new URL(location, safeUrl).toString();
|
|
86
|
-
continue;
|
|
87
|
-
}
|
|
88
|
-
const body = await readBodyLimited(response, maxBytes);
|
|
89
|
-
return {
|
|
90
|
-
ok: response.ok,
|
|
91
|
-
status: response.status,
|
|
92
|
-
url: safeUrl.toString(),
|
|
93
|
-
headers: headersToRecord(response.headers),
|
|
94
|
-
body,
|
|
95
|
-
...(response.ok
|
|
96
|
-
? {}
|
|
97
|
-
: {
|
|
98
|
-
error: `HTTP ${response.status} ${response.statusText}`,
|
|
99
|
-
}),
|
|
100
|
-
};
|
|
101
|
-
}
|
|
102
|
-
finally {
|
|
103
|
-
clearTimeout(timer);
|
|
104
|
-
}
|
|
105
|
-
}
|
|
106
|
-
return {
|
|
107
|
-
ok: false,
|
|
108
|
-
status: 0,
|
|
109
|
-
url: currentUrl,
|
|
110
|
-
headers: {},
|
|
111
|
-
body: '',
|
|
112
|
-
error: `Too many redirects (>${MAX_REDIRECTS}).`,
|
|
113
|
-
};
|
|
114
|
-
}
|
|
115
|
-
catch (error) {
|
|
116
|
-
const message = error instanceof Error ? error.message : String(error);
|
|
117
|
-
return {
|
|
118
|
-
ok: false,
|
|
119
|
-
status: 0,
|
|
120
|
-
url: request.url,
|
|
121
|
-
headers: {},
|
|
122
|
-
body: '',
|
|
123
|
-
error: message,
|
|
124
|
-
};
|
|
125
|
-
}
|
|
126
|
-
};
|
|
127
|
-
};
|
|
128
|
-
//# sourceMappingURL=create-web-fetch.js.map
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
import { describe, expect, it, vi } from 'vitest';
|
|
2
|
-
import { createWebFetch } from './create-web-fetch.js';
|
|
3
|
-
describe('createWebFetch', () => {
|
|
4
|
-
it('returns body from a mocked public fetch (offline)', async () => {
|
|
5
|
-
const fetchImpl = vi.fn(async () => new Response('<html><body>Hi</body></html>', {
|
|
6
|
-
status: 200,
|
|
7
|
-
headers: { 'content-type': 'text/html' },
|
|
8
|
-
}));
|
|
9
|
-
// Public IP literal avoids DNS; fetch is mocked.
|
|
10
|
-
const webFetch = createWebFetch({ fetchImpl });
|
|
11
|
-
const result = await webFetch({ url: 'https://8.8.8.8/' });
|
|
12
|
-
expect(result.ok).toBe(true);
|
|
13
|
-
expect(result.status).toBe(200);
|
|
14
|
-
expect(result.body).toContain('Hi');
|
|
15
|
-
expect(fetchImpl).toHaveBeenCalled();
|
|
16
|
-
});
|
|
17
|
-
it('does not call fetch for blocked URLs', async () => {
|
|
18
|
-
const fetchImpl = vi.fn();
|
|
19
|
-
const webFetch = createWebFetch({ fetchImpl });
|
|
20
|
-
const result = await webFetch({ url: 'http://127.0.0.1/admin' });
|
|
21
|
-
expect(result.ok).toBe(false);
|
|
22
|
-
expect(result.error).toMatch(/Blocked/i);
|
|
23
|
-
expect(fetchImpl).not.toHaveBeenCalled();
|
|
24
|
-
});
|
|
25
|
-
it('re-validates redirect targets', async () => {
|
|
26
|
-
const fetchImpl = vi.fn(async (input) => {
|
|
27
|
-
const url = String(input);
|
|
28
|
-
if (url.includes('8.8.8.8')) {
|
|
29
|
-
return new Response(null, {
|
|
30
|
-
status: 302,
|
|
31
|
-
headers: { location: 'http://127.0.0.1/secret' },
|
|
32
|
-
});
|
|
33
|
-
}
|
|
34
|
-
return new Response('should-not-reach', { status: 200 });
|
|
35
|
-
});
|
|
36
|
-
const webFetch = createWebFetch({ fetchImpl });
|
|
37
|
-
const result = await webFetch({ url: 'https://8.8.8.8/' });
|
|
38
|
-
expect(result.ok).toBe(false);
|
|
39
|
-
expect(result.error).toMatch(/Blocked/i);
|
|
40
|
-
expect(fetchImpl).toHaveBeenCalledTimes(1);
|
|
41
|
-
});
|
|
42
|
-
});
|
|
43
|
-
//# sourceMappingURL=create-web-fetch.test.js.map
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
/** True when the address is loopback, private, link-local, or metadata. */
|
|
2
|
-
export declare const isBlockedIpAddress: (address: string) => boolean;
|
|
3
|
-
export type AssertUrlSafeOptions = {
|
|
4
|
-
readonly allowedHosts?: readonly string[];
|
|
5
|
-
/** When true, skip DNS resolution (hostname-only checks). */
|
|
6
|
-
readonly skipDns?: boolean;
|
|
7
|
-
};
|
|
8
|
-
/**
|
|
9
|
-
* Reject non-http(s) URLs, blocked hostnames, and (by default) private IPs
|
|
10
|
-
* after DNS resolution. Optional `allowedHosts` is an exact hostname allowlist.
|
|
11
|
-
*/
|
|
12
|
-
export declare const assertUrlSafeForFetch: (rawUrl: string, options?: AssertUrlSafeOptions) => Promise<URL>;
|
|
13
|
-
//# sourceMappingURL=ssrf-guard.d.ts.map
|
|
@@ -1,117 +0,0 @@
|
|
|
1
|
-
import dns from 'node:dns/promises';
|
|
2
|
-
import net from 'node:net';
|
|
3
|
-
const BLOCKED_HOSTNAMES = new Set([
|
|
4
|
-
'localhost',
|
|
5
|
-
'localhost.localdomain',
|
|
6
|
-
'metadata.google.internal',
|
|
7
|
-
]);
|
|
8
|
-
const isIpv4Private = (ip) => {
|
|
9
|
-
const parts = ip.split('.').map((part) => Number(part));
|
|
10
|
-
if (parts.length !== 4 ||
|
|
11
|
-
parts.some((part) => !Number.isInteger(part) || part < 0 || part > 255)) {
|
|
12
|
-
return false;
|
|
13
|
-
}
|
|
14
|
-
const a = parts[0] ?? 0;
|
|
15
|
-
const b = parts[1] ?? 0;
|
|
16
|
-
if (a === 10) {
|
|
17
|
-
return true;
|
|
18
|
-
}
|
|
19
|
-
if (a === 127) {
|
|
20
|
-
return true;
|
|
21
|
-
}
|
|
22
|
-
if (a === 0) {
|
|
23
|
-
return true;
|
|
24
|
-
}
|
|
25
|
-
if (a === 169 && b === 254) {
|
|
26
|
-
return true;
|
|
27
|
-
}
|
|
28
|
-
if (a === 172 && b >= 16 && b <= 31) {
|
|
29
|
-
return true;
|
|
30
|
-
}
|
|
31
|
-
if (a === 192 && b === 168) {
|
|
32
|
-
return true;
|
|
33
|
-
}
|
|
34
|
-
if (a === 100 && b >= 64 && b <= 127) {
|
|
35
|
-
return true;
|
|
36
|
-
}
|
|
37
|
-
return false;
|
|
38
|
-
};
|
|
39
|
-
const isIpv6Private = (ip) => {
|
|
40
|
-
const normalized = ip.toLowerCase();
|
|
41
|
-
if (normalized === '::1' || normalized === '::') {
|
|
42
|
-
return true;
|
|
43
|
-
}
|
|
44
|
-
if (normalized.startsWith('fc') || normalized.startsWith('fd')) {
|
|
45
|
-
return true;
|
|
46
|
-
}
|
|
47
|
-
if (normalized.startsWith('fe80:')) {
|
|
48
|
-
return true;
|
|
49
|
-
}
|
|
50
|
-
// IPv4-mapped IPv6 (:ffff:x.x.x.x)
|
|
51
|
-
const mapped = normalized.match(/^:ffff:(\d+\.\d+\.\d+\.\d+)$/i);
|
|
52
|
-
if (mapped?.[1] !== undefined) {
|
|
53
|
-
return isIpv4Private(mapped[1]);
|
|
54
|
-
}
|
|
55
|
-
return false;
|
|
56
|
-
};
|
|
57
|
-
/** True when the address is loopback, private, link-local, or metadata. */
|
|
58
|
-
export const isBlockedIpAddress = (address) => {
|
|
59
|
-
const family = net.isIP(address);
|
|
60
|
-
if (family === 4) {
|
|
61
|
-
return isIpv4Private(address);
|
|
62
|
-
}
|
|
63
|
-
if (family === 6) {
|
|
64
|
-
return isIpv6Private(address);
|
|
65
|
-
}
|
|
66
|
-
return true;
|
|
67
|
-
};
|
|
68
|
-
/**
|
|
69
|
-
* Reject non-http(s) URLs, blocked hostnames, and (by default) private IPs
|
|
70
|
-
* after DNS resolution. Optional `allowedHosts` is an exact hostname allowlist.
|
|
71
|
-
*/
|
|
72
|
-
export const assertUrlSafeForFetch = async (rawUrl, options = {}) => {
|
|
73
|
-
let parsed;
|
|
74
|
-
try {
|
|
75
|
-
parsed = new URL(rawUrl);
|
|
76
|
-
}
|
|
77
|
-
catch {
|
|
78
|
-
throw new Error(`Invalid URL: ${rawUrl}`);
|
|
79
|
-
}
|
|
80
|
-
if (parsed.protocol !== 'http:' && parsed.protocol !== 'https:') {
|
|
81
|
-
throw new Error(`Blocked URL protocol «${parsed.protocol}» (only http/https).`);
|
|
82
|
-
}
|
|
83
|
-
const hostname = parsed.hostname.toLowerCase();
|
|
84
|
-
if (hostname.length === 0) {
|
|
85
|
-
throw new Error('URL hostname is empty.');
|
|
86
|
-
}
|
|
87
|
-
if (BLOCKED_HOSTNAMES.has(hostname) ||
|
|
88
|
-
hostname.endsWith('.localhost') ||
|
|
89
|
-
hostname.endsWith('.local')) {
|
|
90
|
-
throw new Error(`Blocked hostname «${hostname}».`);
|
|
91
|
-
}
|
|
92
|
-
const allowed = options.allowedHosts?.map((host) => host.toLowerCase());
|
|
93
|
-
if (allowed !== undefined && allowed.length > 0) {
|
|
94
|
-
if (!allowed.includes(hostname)) {
|
|
95
|
-
throw new Error(`Hostname «${hostname}» is not in harness.allowedHosts.`);
|
|
96
|
-
}
|
|
97
|
-
}
|
|
98
|
-
if (net.isIP(hostname) !== 0) {
|
|
99
|
-
if (isBlockedIpAddress(hostname)) {
|
|
100
|
-
throw new Error(`Blocked IP address «${hostname}».`);
|
|
101
|
-
}
|
|
102
|
-
return parsed;
|
|
103
|
-
}
|
|
104
|
-
if (options.skipDns === true) {
|
|
105
|
-
return parsed;
|
|
106
|
-
}
|
|
107
|
-
const records = await dns.lookup(hostname, { all: true, verbatim: true });
|
|
108
|
-
if (records.length === 0) {
|
|
109
|
-
throw new Error(`DNS lookup failed for «${hostname}».`);
|
|
110
|
-
}
|
|
111
|
-
const blocked = records.find((record) => isBlockedIpAddress(record.address));
|
|
112
|
-
if (blocked !== undefined) {
|
|
113
|
-
throw new Error(`Blocked: «${hostname}» resolves to private/link-local address ${blocked.address}.`);
|
|
114
|
-
}
|
|
115
|
-
return parsed;
|
|
116
|
-
};
|
|
117
|
-
//# sourceMappingURL=ssrf-guard.js.map
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
import { describe, expect, it } from 'vitest';
|
|
2
|
-
import { assertUrlSafeForFetch, isBlockedIpAddress } from './ssrf-guard.js';
|
|
3
|
-
describe('isBlockedIpAddress', () => {
|
|
4
|
-
it.each([
|
|
5
|
-
'127.0.0.1',
|
|
6
|
-
'10.0.0.1',
|
|
7
|
-
'192.168.1.1',
|
|
8
|
-
'172.16.0.1',
|
|
9
|
-
'169.254.169.254',
|
|
10
|
-
'0.0.0.0',
|
|
11
|
-
'::1',
|
|
12
|
-
'fe80::1',
|
|
13
|
-
'fc00::1',
|
|
14
|
-
])('blocks %s', (ip) => {
|
|
15
|
-
expect(isBlockedIpAddress(ip)).toBe(true);
|
|
16
|
-
});
|
|
17
|
-
it.each(['8.8.8.8', '1.1.1.1', '2001:4860:4860::8888'])('allows public %s', (ip) => {
|
|
18
|
-
expect(isBlockedIpAddress(ip)).toBe(false);
|
|
19
|
-
});
|
|
20
|
-
});
|
|
21
|
-
describe('assertUrlSafeForFetch', () => {
|
|
22
|
-
it('rejects non-http protocols', async () => {
|
|
23
|
-
await expect(assertUrlSafeForFetch('file:///etc/passwd', { skipDns: true })).rejects.toThrow(/protocol/i);
|
|
24
|
-
});
|
|
25
|
-
it('rejects localhost hostnames without DNS', async () => {
|
|
26
|
-
await expect(assertUrlSafeForFetch('http://localhost/secret', { skipDns: true })).rejects.toThrow(/hostname/i);
|
|
27
|
-
await expect(assertUrlSafeForFetch('http://127.0.0.1/', { skipDns: true })).rejects.toThrow(/IP/i);
|
|
28
|
-
});
|
|
29
|
-
it('enforces allowedHosts allowlist', async () => {
|
|
30
|
-
await expect(assertUrlSafeForFetch('https://evil.example/x', {
|
|
31
|
-
skipDns: true,
|
|
32
|
-
allowedHosts: ['docs.example'],
|
|
33
|
-
})).rejects.toThrow(/allowedHosts/i);
|
|
34
|
-
await expect(assertUrlSafeForFetch('https://docs.example/x', {
|
|
35
|
-
skipDns: true,
|
|
36
|
-
allowedHosts: ['docs.example'],
|
|
37
|
-
})).resolves.toMatchObject({ hostname: 'docs.example' });
|
|
38
|
-
});
|
|
39
|
-
it('allows public hostnames when DNS skipped', async () => {
|
|
40
|
-
const url = await assertUrlSafeForFetch('https://example.com/path', {
|
|
41
|
-
skipDns: true,
|
|
42
|
-
});
|
|
43
|
-
expect(url.toString()).toBe('https://example.com/path');
|
|
44
|
-
});
|
|
45
|
-
});
|
|
46
|
-
//# sourceMappingURL=ssrf-guard.test.js.map
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { type TerminalExecutionProgressStatus } from '@langflower/shared/langflower.js';
|
|
2
|
-
import http from 'node:http';
|
|
3
|
-
export type CreateServerOptions = {
|
|
4
|
-
readonly projectDir: string;
|
|
5
|
-
readonly port?: number;
|
|
6
|
-
readonly uiDistPath?: string;
|
|
7
|
-
/** Fired once when a run settles naturally (`runner.done`). */
|
|
8
|
-
readonly onRunSettled?: (status: TerminalExecutionProgressStatus) => void;
|
|
9
|
-
};
|
|
10
|
-
export declare function createServer(options: CreateServerOptions): Promise<http.Server>;
|
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
import { hasCustomNodePacks } from '@langflower/compiler/compile-project-nodes';
|
|
2
|
-
import { langflowerWsConfig, resolveServerLogsEnabled, } from '@langflower/shared/langflower.js';
|
|
3
|
-
import { createServer as createWsBridge } from '@langflower/websocket-bridge/create-server';
|
|
4
|
-
import express from 'express';
|
|
5
|
-
import http from 'node:http';
|
|
6
|
-
import path from 'node:path';
|
|
7
|
-
import { attachLangflowerBridge } from './bridge/attach-langflower-bridge.js';
|
|
8
|
-
import { listenHttpServer } from './listen-http-server.js';
|
|
9
|
-
import { createServerContext } from './server-context.js';
|
|
10
|
-
/** Warm custom-node registry before accepting clients / opening the browser. */
|
|
11
|
-
const warmCustomPalette = async (context) => {
|
|
12
|
-
if (!(await hasCustomNodePacks(context.projectDir))) {
|
|
13
|
-
context.customPaletteService.applyEmptyOk();
|
|
14
|
-
return;
|
|
15
|
-
}
|
|
16
|
-
process.stdout.write('Compiling custom nodes ...');
|
|
17
|
-
const snapshot = await context.customPaletteService.update(context.projectDir);
|
|
18
|
-
console.log(' done');
|
|
19
|
-
if (snapshot.status === 'error' || snapshot.status === 'partial') {
|
|
20
|
-
const count = String(snapshot.errors.length);
|
|
21
|
-
console.warn(`Custom nodes compile ${snapshot.status}: ${count} pack error(s)`);
|
|
22
|
-
}
|
|
23
|
-
};
|
|
24
|
-
export async function createServer(options) {
|
|
25
|
-
const context = await createServerContext(options.projectDir);
|
|
26
|
-
await warmCustomPalette(context);
|
|
27
|
-
const app = express();
|
|
28
|
-
if (options.uiDistPath !== undefined) {
|
|
29
|
-
const uiRoot = path.resolve(options.uiDistPath);
|
|
30
|
-
app.use(express.static(uiRoot));
|
|
31
|
-
app.get('*', (_request, response) => {
|
|
32
|
-
response.sendFile(path.join(uiRoot, 'index.html'));
|
|
33
|
-
});
|
|
34
|
-
}
|
|
35
|
-
const toolConfig = await context.configService.read();
|
|
36
|
-
const langflowerConfig = await context.langflowerConfigService.read();
|
|
37
|
-
const port = options.port ?? toolConfig.port;
|
|
38
|
-
const httpServer = http.createServer(app);
|
|
39
|
-
const bridge = createWsBridge(langflowerWsConfig, { httpServer });
|
|
40
|
-
const detachBridge = attachLangflowerBridge(bridge, context, {
|
|
41
|
-
serverLogsEnabled: resolveServerLogsEnabled(langflowerConfig),
|
|
42
|
-
...(options.onRunSettled !== undefined
|
|
43
|
-
? { onRunSettled: options.onRunSettled }
|
|
44
|
-
: {}),
|
|
45
|
-
});
|
|
46
|
-
httpServer.on('close', () => {
|
|
47
|
-
void detachBridge();
|
|
48
|
-
bridge.close();
|
|
49
|
-
});
|
|
50
|
-
try {
|
|
51
|
-
await listenHttpServer(httpServer, port, '127.0.0.1');
|
|
52
|
-
}
|
|
53
|
-
catch (error) {
|
|
54
|
-
await detachBridge();
|
|
55
|
-
bridge.close();
|
|
56
|
-
httpServer.close();
|
|
57
|
-
throw error;
|
|
58
|
-
}
|
|
59
|
-
return httpServer;
|
|
60
|
-
}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import type { RunnerPermissionAskPayload, RunnerPermissionReplyPayload } from '@langflower/shared/langflower.js';
|
|
2
|
-
import type { PermissionAskRequest } from '@langflower/tools/permission';
|
|
3
|
-
/**
|
|
4
|
-
* Run-scoped registry for feed `permission.ask` pause/resume.
|
|
5
|
-
* `harness.invoke` awaits {@link requestPermission}; UI replies resolve it.
|
|
6
|
-
*/
|
|
7
|
-
export declare class PendingPermissionAsks {
|
|
8
|
-
private readonly pending;
|
|
9
|
-
list(): readonly RunnerPermissionAskPayload[];
|
|
10
|
-
requestPermission: (runId: string, nodeId: string, request: PermissionAskRequest, emitAsk: (payload: RunnerPermissionAskPayload) => void) => Promise<"allow" | "deny">;
|
|
11
|
-
reply: (payload: RunnerPermissionReplyPayload) => boolean;
|
|
12
|
-
/** Fail closed all outstanding asks (interrupt / run end). */
|
|
13
|
-
denyAll: (runId?: string) => void;
|
|
14
|
-
}
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Run-scoped registry for feed `permission.ask` pause/resume.
|
|
3
|
-
* `harness.invoke` awaits {@link requestPermission}; UI replies resolve it.
|
|
4
|
-
*/
|
|
5
|
-
export class PendingPermissionAsks {
|
|
6
|
-
pending = new Map();
|
|
7
|
-
list() {
|
|
8
|
-
return [...this.pending.values()].map((entry) => entry.payload);
|
|
9
|
-
}
|
|
10
|
-
requestPermission = (runId, nodeId, request, emitAsk) => {
|
|
11
|
-
const askId = crypto.randomUUID();
|
|
12
|
-
const payload = {
|
|
13
|
-
runId,
|
|
14
|
-
askId,
|
|
15
|
-
nodeId,
|
|
16
|
-
toolId: request.toolId,
|
|
17
|
-
detail: request.detail,
|
|
18
|
-
summary: request.summary,
|
|
19
|
-
};
|
|
20
|
-
return new Promise((resolve) => {
|
|
21
|
-
this.pending.set(askId, { payload, resolve });
|
|
22
|
-
emitAsk(payload);
|
|
23
|
-
});
|
|
24
|
-
};
|
|
25
|
-
reply = (payload) => {
|
|
26
|
-
const entry = this.pending.get(payload.askId);
|
|
27
|
-
if (entry === undefined) {
|
|
28
|
-
return false;
|
|
29
|
-
}
|
|
30
|
-
if (entry.payload.runId !== payload.runId) {
|
|
31
|
-
return false;
|
|
32
|
-
}
|
|
33
|
-
this.pending.delete(payload.askId);
|
|
34
|
-
entry.resolve(payload.decision === 'allow' ? 'allow' : 'deny');
|
|
35
|
-
return true;
|
|
36
|
-
};
|
|
37
|
-
/** Fail closed all outstanding asks (interrupt / run end). */
|
|
38
|
-
denyAll = (runId) => {
|
|
39
|
-
const entries = [...this.pending.entries()].filter(([, entry]) => runId === undefined || entry.payload.runId === runId);
|
|
40
|
-
for (const [askId, entry] of entries) {
|
|
41
|
-
this.pending.delete(askId);
|
|
42
|
-
entry.resolve('deny');
|
|
43
|
-
}
|
|
44
|
-
};
|
|
45
|
-
}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Thin server adapter for OpenCode-style harness permissions.
|
|
3
|
-
*
|
|
4
|
-
* Resolution logic lives in `@langflower/tools/permission`. This module wires
|
|
5
|
-
* project config into `createProjectHarness` and documents the injection point
|
|
6
|
-
* referenced by docs/CONFIG.md.
|
|
7
|
-
*/
|
|
8
|
-
import type { LangflowerHarnessConfig, LangflowerPermissionConfig } from '@langflower/shared/langflower.js';
|
|
9
|
-
import { type Harness, type PermissionAskRequest } from '@langflower/tools/create-project-harness';
|
|
10
|
-
import { resolvePermission, type PermissionDecision } from '@langflower/tools/permission';
|
|
11
|
-
export { resolvePermission };
|
|
12
|
-
export type CreatePermissionHarnessOptions = {
|
|
13
|
-
readonly projectRoot: string;
|
|
14
|
-
readonly permission?: LangflowerPermissionConfig;
|
|
15
|
-
readonly harness?: LangflowerHarnessConfig;
|
|
16
|
-
readonly requestPermission?: (request: PermissionAskRequest) => Promise<PermissionDecision>;
|
|
17
|
-
};
|
|
18
|
-
/**
|
|
19
|
-
* Build a project harness with runtime permission gating.
|
|
20
|
-
* Bash is enabled at the handler level; allow/ask/deny comes from policy.
|
|
21
|
-
*/
|
|
22
|
-
export declare const createPermissionAwareHarness: (options: CreatePermissionHarnessOptions) => Harness;
|
|
23
|
-
//# sourceMappingURL=permission.d.ts.map
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Thin server adapter for OpenCode-style harness permissions.
|
|
3
|
-
*
|
|
4
|
-
* Resolution logic lives in `@langflower/tools/permission`. This module wires
|
|
5
|
-
* project config into `createProjectHarness` and documents the injection point
|
|
6
|
-
* referenced by docs/CONFIG.md.
|
|
7
|
-
*/
|
|
8
|
-
import { createProjectHarness, } from '@langflower/tools/create-project-harness';
|
|
9
|
-
import { resolvePermission, } from '@langflower/tools/permission';
|
|
10
|
-
export { resolvePermission };
|
|
11
|
-
/**
|
|
12
|
-
* Build a project harness with runtime permission gating.
|
|
13
|
-
* Bash is enabled at the handler level; allow/ask/deny comes from policy.
|
|
14
|
-
*/
|
|
15
|
-
export const createPermissionAwareHarness = (options) => createProjectHarness({
|
|
16
|
-
projectRoot: options.projectRoot,
|
|
17
|
-
bashEnabled: true,
|
|
18
|
-
...(options.harness?.denyPaths !== undefined
|
|
19
|
-
? { denyPaths: options.harness.denyPaths }
|
|
20
|
-
: {}),
|
|
21
|
-
...(options.harness?.allowedRoots !== undefined
|
|
22
|
-
? { allowedRoots: options.harness.allowedRoots }
|
|
23
|
-
: {}),
|
|
24
|
-
...(options.permission !== undefined
|
|
25
|
-
? { permission: options.permission }
|
|
26
|
-
: {}),
|
|
27
|
-
...(options.requestPermission !== undefined
|
|
28
|
-
? { requestPermission: options.requestPermission }
|
|
29
|
-
: {}),
|
|
30
|
-
});
|
|
31
|
-
//# sourceMappingURL=permission.js.map
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
import { describe, expect, it } from 'vitest';
|
|
2
|
-
import { createPermissionAwareHarness, resolvePermission, } from './permission.js';
|
|
3
|
-
import { PendingPermissionAsks } from './pending-permission-asks.js';
|
|
4
|
-
import fs from 'node:fs/promises';
|
|
5
|
-
import os from 'node:os';
|
|
6
|
-
import path from 'node:path';
|
|
7
|
-
import { afterEach, beforeEach } from 'vitest';
|
|
8
|
-
describe('server harness permission adapter', () => {
|
|
9
|
-
let projectRoot;
|
|
10
|
-
beforeEach(async () => {
|
|
11
|
-
projectRoot = await fs.mkdtemp(path.join(os.tmpdir(), 'lf-perm-'));
|
|
12
|
-
});
|
|
13
|
-
afterEach(async () => {
|
|
14
|
-
await fs.rm(projectRoot, { recursive: true, force: true });
|
|
15
|
-
});
|
|
16
|
-
it('re-exports resolvePermission for CONFIG.md injection point', () => {
|
|
17
|
-
expect(resolvePermission(undefined, 'bash', 'rm -rf /')).toBe('deny');
|
|
18
|
-
});
|
|
19
|
-
it('write ask → allow completes; deny fails closed', async () => {
|
|
20
|
-
const pending = new PendingPermissionAsks();
|
|
21
|
-
const emitted = [];
|
|
22
|
-
let autoReply = 'deny';
|
|
23
|
-
const harness = createPermissionAwareHarness({
|
|
24
|
-
projectRoot,
|
|
25
|
-
permission: { write: { '*': 'ask' }, bash: { '*': 'ask' } },
|
|
26
|
-
requestPermission: (request) => pending.requestPermission('run-1', 'llm-1', request, (payload) => {
|
|
27
|
-
emitted.push(payload.summary);
|
|
28
|
-
pending.reply({
|
|
29
|
-
runId: payload.runId,
|
|
30
|
-
askId: payload.askId,
|
|
31
|
-
decision: autoReply,
|
|
32
|
-
});
|
|
33
|
-
}),
|
|
34
|
-
});
|
|
35
|
-
const denied = await harness.invoke({
|
|
36
|
-
toolId: 'write',
|
|
37
|
-
args: { path: 'a.txt', content: 'x' },
|
|
38
|
-
});
|
|
39
|
-
expect(denied.ok).toBe(false);
|
|
40
|
-
expect(emitted).toHaveLength(1);
|
|
41
|
-
autoReply = 'allow';
|
|
42
|
-
const allowed = await harness.invoke({
|
|
43
|
-
toolId: 'write',
|
|
44
|
-
args: { path: 'a.txt', content: 'ok' },
|
|
45
|
-
});
|
|
46
|
-
expect(allowed.ok).toBe(true);
|
|
47
|
-
expect(await fs.readFile(path.join(projectRoot, 'a.txt'), 'utf8')).toBe('ok');
|
|
48
|
-
});
|
|
49
|
-
});
|
|
50
|
-
//# sourceMappingURL=permission.test.js.map
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
export { createServer, type CreateServerOptions } from './create-server.js';
|
|
2
|
-
export { bootstrapProject } from './bootstrap/project-bootstrap.service.js';
|
|
3
|
-
export { createServerContext, type ServerContext } from './server-context.js';
|
|
4
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Split text into overlapping character windows (paragraph-aware when possible).
|
|
3
|
-
*/
|
|
4
|
-
export declare const chunkText: (text: string, options?: {
|
|
5
|
-
readonly maxChars?: number;
|
|
6
|
-
readonly overlap?: number;
|
|
7
|
-
}) => readonly string[];
|
|
8
|
-
//# sourceMappingURL=chunk-text.d.ts.map
|