langflower 0.1.0 → 0.1.2
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 +74 -105
- package/bin/langflower.js +15 -1
- package/dist/chunk-AO33IM2J.js +307 -0
- package/dist/chunk-CVTPGIZE.js +344 -0
- package/dist/chunk-EAZMCX37.js +44 -0
- package/dist/chunk-NIRPHJLO.js +1505 -0
- package/dist/chunk-PYLGT66P.js +126 -0
- package/dist/chunk-WV2YWHOC.js +623 -0
- package/dist/chunk-YOTMWWRH.js +2041 -0
- package/dist/index.js +80453 -1
- package/package.json +1 -8
- package/ui-dist/{chunk-UG3GFV4Y.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-JJURZFKA.js +318 -0
- package/ui-dist/styles-VA3HMZK7.css +1 -0
- package/vendor/node-sdk/dist/node-factory/define-reactive-node/define-reactive-node.d.ts +1 -0
- package/vendor/node-sdk/dist/node-factory/define-reactive-node/define-reactive-node.js +1 -0
- 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/types.d.ts +7 -3
- package/vendor/node-sdk/dist/node-factory/define-tool-registrations/define-tool-registrations.d.ts +6 -6
- package/vendor/node-sdk/dist/node-factory/define-tool-registrations/define-tool-registrations.js +6 -6
- package/vendor/node-sdk/dist/testing/create-node-harness.d.ts +4 -0
- package/vendor/node-sdk/dist/testing/create-node-harness.js +5 -0
- package/vendor/server/skeleton/schemas/langflower-config.schema.json +5 -1
- package/vendor/server/skeleton/skills/langflower-helper/SKILL.md +46 -11
- package/vendor/server/skeleton/skills/langflower-helper/architecture.md +14 -3
- package/vendor/server/skeleton/skills/langflower-helper/layout.md +32 -29
- package/vendor/server/skeleton/skills/langflower-node-writer/SKILL.md +69 -0
- package/vendor/server/skeleton/skills/langflower-workflow-writer/SKILL.md +18 -3
- package/vendor/server/skeleton/skills/spec-architect/SKILL.md +232 -0
- package/vendor/server/skeleton/workflows/advanced-coder.json +1 -0
- package/vendor/server/skeleton/workflows/simple-coder.json +1 -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-QI4IYILJ.js +0 -4
- package/ui-dist/main-ODIDCCNX.js +0 -315
- package/ui-dist/styles-2JMBAQC3.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 -225
- package/vendor/common-nodes/dist/ai/features/llm-session/run-session-machine.d.ts +0 -32
- 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 -64
- 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 -231
- 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 -207
- 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 -88
- package/vendor/common-nodes/dist/ai/nodes/review/node.d.ts +0 -593
- package/vendor/common-nodes/dist/ai/nodes/review/node.js +0 -233
- 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 -457
- 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 -95
- 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 -128
- package/vendor/common-nodes/dist/crawl/crawl-tools/node.d.ts +0 -20
- package/vendor/common-nodes/dist/crawl/crawl-tools/node.js +0 -17
- package/vendor/common-nodes/dist/crawl/extract-links/node.d.ts +0 -22
- package/vendor/common-nodes/dist/crawl/extract-links/node.js +0 -45
- package/vendor/common-nodes/dist/crawl/fetch-url/node.d.ts +0 -56
- package/vendor/common-nodes/dist/crawl/fetch-url/node.js +0 -89
- 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 -71
- 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/embeddings/create-embedding.d.ts +0 -39
- package/vendor/common-nodes/dist/embeddings/create-embedding.js +0 -154
- package/vendor/common-nodes/dist/embeddings/embed-provider/node.d.ts +0 -53
- package/vendor/common-nodes/dist/embeddings/embed-provider/node.js +0 -126
- package/vendor/common-nodes/dist/embeddings/embed-similarity/node.d.ts +0 -20
- package/vendor/common-nodes/dist/embeddings/embed-similarity/node.js +0 -81
- package/vendor/common-nodes/dist/embeddings/embed-text/node.d.ts +0 -53
- package/vendor/common-nodes/dist/embeddings/embed-text/node.js +0 -91
- package/vendor/common-nodes/dist/embeddings/from-embedding.d.ts +0 -8
- package/vendor/common-nodes/dist/embeddings/from-embedding.js +0 -24
- package/vendor/common-nodes/dist/embeddings/resolve-embedding-provider-model.d.ts +0 -11
- package/vendor/common-nodes/dist/embeddings/resolve-embedding-provider-model.js +0 -8
- package/vendor/common-nodes/dist/flow/checkpoint/node.d.ts +0 -23
- package/vendor/common-nodes/dist/flow/checkpoint/node.js +0 -44
- package/vendor/common-nodes/dist/flow/delay/node.d.ts +0 -22
- package/vendor/common-nodes/dist/flow/delay/node.js +0 -46
- package/vendor/common-nodes/dist/flow/loop/node.d.ts +0 -22
- package/vendor/common-nodes/dist/flow/loop/node.js +0 -51
- 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 -31
- package/vendor/common-nodes/dist/flow/repeat/node.d.ts +0 -20
- package/vendor/common-nodes/dist/flow/repeat/node.js +0 -65
- 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 -20
- 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 -43
- 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 -70
- 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 -81
- package/vendor/common-nodes/dist/logic/assert/node.d.ts +0 -20
- package/vendor/common-nodes/dist/logic/assert/node.js +0 -56
- 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 -46
- package/vendor/common-nodes/dist/logic/gate/node.d.ts +0 -17
- package/vendor/common-nodes/dist/logic/gate/node.js +0 -41
- package/vendor/common-nodes/dist/logic/if/node.d.ts +0 -17
- package/vendor/common-nodes/dist/logic/if/node.js +0 -46
- 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 -75
- 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 -104
- 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 -93
- 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 -17
- 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 -34
- package/vendor/common-nodes/dist/output/preview/node.d.ts +0 -17
- package/vendor/common-nodes/dist/output/preview/node.js +0 -48
- package/vendor/common-nodes/dist/primitives/boolean/node.d.ts +0 -17
- package/vendor/common-nodes/dist/primitives/boolean/node.js +0 -31
- package/vendor/common-nodes/dist/primitives/number/node.d.ts +0 -17
- package/vendor/common-nodes/dist/primitives/number/node.js +0 -31
- package/vendor/common-nodes/dist/primitives/string/node.d.ts +0 -17
- package/vendor/common-nodes/dist/primitives/string/node.js +0 -31
- package/vendor/common-nodes/dist/primitives/string-multiline/node.d.ts +0 -17
- package/vendor/common-nodes/dist/primitives/string-multiline/node.js +0 -31
- 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 -68
- package/vendor/common-nodes/dist/text/concat/node.d.ts +0 -17
- package/vendor/common-nodes/dist/text/concat/node.js +0 -38
- package/vendor/common-nodes/dist/text/read-file/node.d.ts +0 -20
- package/vendor/common-nodes/dist/text/read-file/node.js +0 -57
- package/vendor/common-nodes/dist/text/split-paced/node.d.ts +0 -21
- package/vendor/common-nodes/dist/text/split-paced/node.js +0 -93
- package/vendor/common-nodes/dist/text/write-file/node.d.ts +0 -19
- package/vendor/common-nodes/dist/text/write-file/node.js +0 -60
- 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 -45
- 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 -48
- 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 -70
- 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-embed-context.d.ts +0 -7
- package/vendor/server/dist/bridge/bind-embed-context.js +0 -16
- 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 -223
- 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 -82
- 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 -205
- package/vendor/server/dist/bridge/wire-config-handlers.d.ts +0 -11
- package/vendor/server/dist/bridge/wire-config-handlers.js +0 -51
- 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 -254
- 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 -37
- package/vendor/server/dist/config/langflower-config.service.js +0 -390
- 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 -23
- 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 -38
- package/vendor/server/dist/session/langflower-session.js +0 -92
- 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 -527
- 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 -71
- 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 -484
- package/vendor/shared/dist/langflower-bus-config.js +0 -635
- 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 -44
- 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 -49
- package/vendor/shared/dist/langflower-config/settings-draft.js +0 -151
- 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 -71
- package/vendor/shared/dist/types/langflower-bootstrap.js +0 -1
- package/vendor/shared/dist/types/langflower-config.d.ts +0 -263
- 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 -25
- 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 -12
- package/vendor/tools/dist/mcp/build-mcp-handle.js +0 -56
- 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 -52
- package/vendor/tools/dist/mcp/create-system-mcp-handles.js +0 -127
- 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 -74
- 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,299 +0,0 @@
|
|
|
1
|
-
import { createCrawlContext } from '../create-crawl-context.js';
|
|
2
|
-
import { createMemoryStore } from '../memory/create-memory-store.js';
|
|
3
|
-
import { createWebFetch } from '../create-web-fetch.js';
|
|
4
|
-
import { asNumber, asString, requireString } from './args.js';
|
|
5
|
-
import { extractHtmlTitle, extractLinks, htmlToText } from './html.js';
|
|
6
|
-
import { runBfsCrawl } from './run-bfs-crawl.js';
|
|
7
|
-
const json = (value) => `${JSON.stringify(value, null, 2)}\n`;
|
|
8
|
-
const requireWebFetch = (ctx) => ctx.webFetch ??
|
|
9
|
-
createWebFetch({
|
|
10
|
-
...(ctx.allowedHosts !== undefined
|
|
11
|
-
? { allowedHosts: ctx.allowedHosts }
|
|
12
|
-
: {}),
|
|
13
|
-
});
|
|
14
|
-
const fetchPage = async (webFetch, url, timeoutMs, maxBytes) => {
|
|
15
|
-
const result = await webFetch({
|
|
16
|
-
url,
|
|
17
|
-
...(timeoutMs !== undefined ? { timeoutMs } : {}),
|
|
18
|
-
...(maxBytes !== undefined ? { maxBytes } : {}),
|
|
19
|
-
});
|
|
20
|
-
if (!result.ok) {
|
|
21
|
-
throw new Error(result.error ??
|
|
22
|
-
`Fetch failed for ${url} (status ${result.status}).`);
|
|
23
|
-
}
|
|
24
|
-
const text = htmlToText(result.body);
|
|
25
|
-
const title = extractHtmlTitle(result.body);
|
|
26
|
-
return {
|
|
27
|
-
url: result.url,
|
|
28
|
-
html: result.body,
|
|
29
|
-
text,
|
|
30
|
-
...(title !== undefined ? { title } : {}),
|
|
31
|
-
status: result.status,
|
|
32
|
-
};
|
|
33
|
-
};
|
|
34
|
-
export const CRAWL_TOOL_CONFIGS = [
|
|
35
|
-
{
|
|
36
|
-
toolId: 'crawl_fetch',
|
|
37
|
-
description: 'HTTP GET a URL via SSRF-guarded fetch; returns status, title, and plain text.',
|
|
38
|
-
inputSchema: {
|
|
39
|
-
type: 'object',
|
|
40
|
-
properties: {
|
|
41
|
-
url: { type: 'string', description: 'Absolute http(s) URL' },
|
|
42
|
-
timeoutMs: { type: 'number' },
|
|
43
|
-
maxBytes: { type: 'number' },
|
|
44
|
-
},
|
|
45
|
-
required: ['url'],
|
|
46
|
-
},
|
|
47
|
-
handler: async (args, ctx) => {
|
|
48
|
-
const page = await fetchPage(requireWebFetch(ctx), requireString(args, 'url'), asNumber(args, 'timeoutMs'), asNumber(args, 'maxBytes'));
|
|
49
|
-
return json({
|
|
50
|
-
url: page.url,
|
|
51
|
-
status: page.status,
|
|
52
|
-
title: page.title ?? null,
|
|
53
|
-
text: page.text,
|
|
54
|
-
htmlChars: page.html.length,
|
|
55
|
-
});
|
|
56
|
-
},
|
|
57
|
-
},
|
|
58
|
-
{
|
|
59
|
-
toolId: 'crawl_extract_links',
|
|
60
|
-
description: 'Extract absolute href links from HTML for a base URL.',
|
|
61
|
-
inputSchema: {
|
|
62
|
-
type: 'object',
|
|
63
|
-
properties: {
|
|
64
|
-
html: { type: 'string' },
|
|
65
|
-
baseUrl: { type: 'string' },
|
|
66
|
-
},
|
|
67
|
-
required: ['html', 'baseUrl'],
|
|
68
|
-
},
|
|
69
|
-
handler: async (args) => {
|
|
70
|
-
const html = requireString(args, 'html');
|
|
71
|
-
const baseUrl = requireString(args, 'baseUrl');
|
|
72
|
-
const links = extractLinks(html, baseUrl);
|
|
73
|
-
return json({ count: links.length, links });
|
|
74
|
-
},
|
|
75
|
-
},
|
|
76
|
-
{
|
|
77
|
-
toolId: 'crawl_save_page',
|
|
78
|
-
description: 'Persist a crawled page under .langflower/crawl/{runId}/.',
|
|
79
|
-
inputSchema: {
|
|
80
|
-
type: 'object',
|
|
81
|
-
properties: {
|
|
82
|
-
url: { type: 'string' },
|
|
83
|
-
html: { type: 'string' },
|
|
84
|
-
text: { type: 'string' },
|
|
85
|
-
title: { type: 'string' },
|
|
86
|
-
},
|
|
87
|
-
required: ['url'],
|
|
88
|
-
},
|
|
89
|
-
handler: async (args, ctx) => {
|
|
90
|
-
const url = requireString(args, 'url');
|
|
91
|
-
const html = asString(args, 'html') ?? '';
|
|
92
|
-
const text = asString(args, 'text') ?? htmlToText(html);
|
|
93
|
-
const title = asString(args, 'title');
|
|
94
|
-
const saved = await createCrawlContext(ctx.projectDir, ctx.runId).savePage({
|
|
95
|
-
url,
|
|
96
|
-
html,
|
|
97
|
-
text,
|
|
98
|
-
...(title !== undefined && title.length > 0 ? { title } : {}),
|
|
99
|
-
});
|
|
100
|
-
return json(saved);
|
|
101
|
-
},
|
|
102
|
-
},
|
|
103
|
-
{
|
|
104
|
-
toolId: 'crawl_bfs',
|
|
105
|
-
description: 'Breadth-first crawl from a start URL (same-host by default); optionally saves pages.',
|
|
106
|
-
inputSchema: {
|
|
107
|
-
type: 'object',
|
|
108
|
-
properties: {
|
|
109
|
-
url: { type: 'string' },
|
|
110
|
-
maxPages: { type: 'number', description: '1–50; default 5' },
|
|
111
|
-
maxDepth: {
|
|
112
|
-
type: 'number',
|
|
113
|
-
description: 'Optional link-expansion depth cap (0 = seed only). Omit for unlimited (default).',
|
|
114
|
-
},
|
|
115
|
-
sameHostOnly: { type: 'boolean', default: true },
|
|
116
|
-
save: { type: 'boolean', default: true },
|
|
117
|
-
},
|
|
118
|
-
required: ['url'],
|
|
119
|
-
},
|
|
120
|
-
handler: async (args, ctx) => {
|
|
121
|
-
const webFetch = requireWebFetch(ctx);
|
|
122
|
-
const crawl = createCrawlContext(ctx.projectDir, ctx.runId);
|
|
123
|
-
const startUrl = requireString(args, 'url');
|
|
124
|
-
const maxPages = Math.min(Math.max(1, Math.floor(asNumber(args, 'maxPages') ?? 5)), 50);
|
|
125
|
-
const maxDepthRaw = asNumber(args, 'maxDepth');
|
|
126
|
-
const maxDepth = maxDepthRaw === undefined
|
|
127
|
-
? undefined
|
|
128
|
-
: Math.min(Math.max(0, Math.floor(maxDepthRaw)), 5);
|
|
129
|
-
const sameHostOnly = args.sameHostOnly !== false;
|
|
130
|
-
const save = args.save !== false;
|
|
131
|
-
const crawled = await runBfsCrawl({
|
|
132
|
-
startUrl,
|
|
133
|
-
maxPages,
|
|
134
|
-
sameHostOnly,
|
|
135
|
-
failureMode: 'record',
|
|
136
|
-
enqueueBudget: 'unlimited',
|
|
137
|
-
webFetch,
|
|
138
|
-
...(maxDepth !== undefined ? { maxDepth } : {}),
|
|
139
|
-
...(save ? { savePage: crawl.savePage } : {}),
|
|
140
|
-
});
|
|
141
|
-
const pages = crawled.map((page) => page.ok
|
|
142
|
-
? {
|
|
143
|
-
url: page.url,
|
|
144
|
-
title: page.title ?? null,
|
|
145
|
-
textChars: page.text.length,
|
|
146
|
-
}
|
|
147
|
-
: {
|
|
148
|
-
url: page.url,
|
|
149
|
-
error: page.error,
|
|
150
|
-
});
|
|
151
|
-
return json({
|
|
152
|
-
startUrl,
|
|
153
|
-
visited: pages.length,
|
|
154
|
-
pages,
|
|
155
|
-
});
|
|
156
|
-
},
|
|
157
|
-
},
|
|
158
|
-
];
|
|
159
|
-
export const MEMORY_TOOL_CONFIGS = [
|
|
160
|
-
{
|
|
161
|
-
toolId: 'get_memory_tree',
|
|
162
|
-
description: 'Returns the structure of the memory directory including file names and their top-level Markdown headings to understand where information is stored.',
|
|
163
|
-
inputSchema: {
|
|
164
|
-
type: 'object',
|
|
165
|
-
properties: {},
|
|
166
|
-
required: [],
|
|
167
|
-
},
|
|
168
|
-
handler: async (_args, ctx) => {
|
|
169
|
-
const tree = await createMemoryStore(ctx.projectDir).getTree();
|
|
170
|
-
return json({ root: '.langflower/memory', files: tree });
|
|
171
|
-
},
|
|
172
|
-
},
|
|
173
|
-
{
|
|
174
|
-
toolId: 'read_memory_section',
|
|
175
|
-
description: 'Reads the content of a memory file. Can optionally target a specific Markdown heading section.',
|
|
176
|
-
inputSchema: {
|
|
177
|
-
type: 'object',
|
|
178
|
-
properties: {
|
|
179
|
-
file_path: {
|
|
180
|
-
type: 'string',
|
|
181
|
-
description: "Relative path to the file inside the memory folder, e.g., 'core/project_summary.md'",
|
|
182
|
-
},
|
|
183
|
-
heading: {
|
|
184
|
-
type: 'string',
|
|
185
|
-
description: "Optional Markdown heading (e.g., '## Architecture' or 'Database Schema'). If omitted, the entire file is returned.",
|
|
186
|
-
},
|
|
187
|
-
},
|
|
188
|
-
required: ['file_path'],
|
|
189
|
-
},
|
|
190
|
-
handler: async (args, ctx) => {
|
|
191
|
-
const filePath = requireString(args, 'file_path');
|
|
192
|
-
const heading = asString(args, 'heading')?.trim();
|
|
193
|
-
const content = await createMemoryStore(ctx.projectDir).readSection(filePath, heading !== undefined && heading.length > 0
|
|
194
|
-
? heading
|
|
195
|
-
: undefined);
|
|
196
|
-
return json({ file_path: filePath, content });
|
|
197
|
-
},
|
|
198
|
-
},
|
|
199
|
-
{
|
|
200
|
-
toolId: 'search_memory_grep',
|
|
201
|
-
description: 'Performs a fast, deterministic regex/keyword search across all files in the memory directory. Returns matching lines with file paths.',
|
|
202
|
-
inputSchema: {
|
|
203
|
-
type: 'object',
|
|
204
|
-
properties: {
|
|
205
|
-
query: {
|
|
206
|
-
type: 'string',
|
|
207
|
-
description: "The search term or regular expression pattern (e.g., 'auth-tokens' or '#todo').",
|
|
208
|
-
},
|
|
209
|
-
},
|
|
210
|
-
required: ['query'],
|
|
211
|
-
},
|
|
212
|
-
handler: async (args, ctx) => {
|
|
213
|
-
const query = requireString(args, 'query');
|
|
214
|
-
const hits = await createMemoryStore(ctx.projectDir).searchGrep(query);
|
|
215
|
-
return json({
|
|
216
|
-
query,
|
|
217
|
-
hits,
|
|
218
|
-
count: hits.length,
|
|
219
|
-
});
|
|
220
|
-
},
|
|
221
|
-
},
|
|
222
|
-
{
|
|
223
|
-
toolId: 'append_memory_log',
|
|
224
|
-
description: 'Appends a new text entry or bullet point strictly to the end of a memory file. Use this for logging events, history, or chronological notes.',
|
|
225
|
-
inputSchema: {
|
|
226
|
-
type: 'object',
|
|
227
|
-
properties: {
|
|
228
|
-
file_path: {
|
|
229
|
-
type: 'string',
|
|
230
|
-
description: "Relative path to the file inside the memory folder, e.g., 'history/2026-07-daily.md'",
|
|
231
|
-
},
|
|
232
|
-
content: {
|
|
233
|
-
type: 'string',
|
|
234
|
-
description: "The text content to append. Include necessary Markdown formatting (e.g., '- New event description').",
|
|
235
|
-
},
|
|
236
|
-
},
|
|
237
|
-
required: ['file_path', 'content'],
|
|
238
|
-
},
|
|
239
|
-
handler: async (args, ctx) => {
|
|
240
|
-
const filePath = requireString(args, 'file_path');
|
|
241
|
-
const content = requireString(args, 'content');
|
|
242
|
-
await createMemoryStore(ctx.projectDir).appendLog(filePath, content);
|
|
243
|
-
return json({ file_path: filePath, ok: true });
|
|
244
|
-
},
|
|
245
|
-
},
|
|
246
|
-
{
|
|
247
|
-
toolId: 'update_memory_section',
|
|
248
|
-
description: 'Updates or creates a specific Markdown heading section with new content. Replaces the old section content entirely. Keeps the rest of the file untouched.',
|
|
249
|
-
inputSchema: {
|
|
250
|
-
type: 'object',
|
|
251
|
-
properties: {
|
|
252
|
-
file_path: {
|
|
253
|
-
type: 'string',
|
|
254
|
-
description: "Relative path to the file inside the memory folder, e.g., 'core/project_summary.md'",
|
|
255
|
-
},
|
|
256
|
-
heading: {
|
|
257
|
-
type: 'string',
|
|
258
|
-
description: "The exact title of the Markdown section to update (e.g., '## Dependencies'). If it doesn't exist, it will be created.",
|
|
259
|
-
},
|
|
260
|
-
new_content: {
|
|
261
|
-
type: 'string',
|
|
262
|
-
description: 'The new markdown body for this section. Do not include the heading itself here, only the content beneath it.',
|
|
263
|
-
},
|
|
264
|
-
},
|
|
265
|
-
required: ['file_path', 'heading', 'new_content'],
|
|
266
|
-
},
|
|
267
|
-
handler: async (args, ctx) => {
|
|
268
|
-
const filePath = requireString(args, 'file_path');
|
|
269
|
-
const heading = requireString(args, 'heading');
|
|
270
|
-
const newContent = requireString(args, 'new_content');
|
|
271
|
-
await createMemoryStore(ctx.projectDir).updateSection(filePath, heading, newContent);
|
|
272
|
-
return json({ file_path: filePath, heading, ok: true });
|
|
273
|
-
},
|
|
274
|
-
},
|
|
275
|
-
{
|
|
276
|
-
toolId: 'create_memory_file',
|
|
277
|
-
description: 'Creates a new empty memory file or initializes it with basic top-level structure. Fails if the file already exists.',
|
|
278
|
-
inputSchema: {
|
|
279
|
-
type: 'object',
|
|
280
|
-
properties: {
|
|
281
|
-
file_path: {
|
|
282
|
-
type: 'string',
|
|
283
|
-
description: "Relative path for the new file, e.g., 'context/feature_auth.md'",
|
|
284
|
-
},
|
|
285
|
-
initial_content: {
|
|
286
|
-
type: 'string',
|
|
287
|
-
description: 'Optional initial markdown template or description to write into the file.',
|
|
288
|
-
},
|
|
289
|
-
},
|
|
290
|
-
required: ['file_path'],
|
|
291
|
-
},
|
|
292
|
-
handler: async (args, ctx) => {
|
|
293
|
-
const filePath = requireString(args, 'file_path');
|
|
294
|
-
const initial = asString(args, 'initial_content');
|
|
295
|
-
await createMemoryStore(ctx.projectDir).createFile(filePath, initial);
|
|
296
|
-
return json({ file_path: filePath, ok: true });
|
|
297
|
-
},
|
|
298
|
-
},
|
|
299
|
-
];
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
export declare const htmlToText: (html: string) => string;
|
|
2
|
-
export declare const extractHtmlTitle: (html: string) => string | undefined;
|
|
3
|
-
export declare const extractLinks: (html: string, baseUrl: string) => readonly string[];
|
|
4
|
-
export declare const isSameHost: (leftUrl: string, rightUrl: string) => boolean;
|
|
@@ -1,68 +0,0 @@
|
|
|
1
|
-
const BLOCK_TAGS = /<(script|style|noscript|svg|iframe)[^>]*>[\s\S]*?<\/\1>/gi;
|
|
2
|
-
const TAG_PATTERN = /<[^>]+>/g;
|
|
3
|
-
const WHITESPACE_PATTERN = /\s+/g;
|
|
4
|
-
const ENTITY_MAP = {
|
|
5
|
-
amp: '&',
|
|
6
|
-
lt: '<',
|
|
7
|
-
gt: '>',
|
|
8
|
-
quot: '"',
|
|
9
|
-
apos: "'",
|
|
10
|
-
nbsp: ' ',
|
|
11
|
-
};
|
|
12
|
-
const decodeBasicEntities = (text) => text.replace(/&(#x?[0-9a-fA-F]+|\w+);/g, (match, entity) => {
|
|
13
|
-
if (entity.startsWith('#x')) {
|
|
14
|
-
const code = Number.parseInt(entity.slice(2), 16);
|
|
15
|
-
return Number.isFinite(code) ? String.fromCodePoint(code) : match;
|
|
16
|
-
}
|
|
17
|
-
if (entity.startsWith('#')) {
|
|
18
|
-
const code = Number.parseInt(entity.slice(1), 10);
|
|
19
|
-
return Number.isFinite(code) ? String.fromCodePoint(code) : match;
|
|
20
|
-
}
|
|
21
|
-
return ENTITY_MAP[entity] ?? match;
|
|
22
|
-
});
|
|
23
|
-
export const htmlToText = (html) => {
|
|
24
|
-
const withoutBlocks = html.replace(BLOCK_TAGS, ' ');
|
|
25
|
-
const withoutTags = withoutBlocks.replace(TAG_PATTERN, ' ');
|
|
26
|
-
const decoded = decodeBasicEntities(withoutTags);
|
|
27
|
-
return decoded.replace(WHITESPACE_PATTERN, ' ').trim();
|
|
28
|
-
};
|
|
29
|
-
export const extractHtmlTitle = (html) => {
|
|
30
|
-
const match = html.match(/<title[^>]*>([\s\S]*?)<\/title>/i);
|
|
31
|
-
const title = match?.[1] !== undefined ? htmlToText(match[1]) : '';
|
|
32
|
-
return title.length > 0 ? title : undefined;
|
|
33
|
-
};
|
|
34
|
-
const resolveLink = (baseUrl, href) => {
|
|
35
|
-
const trimmed = href.trim();
|
|
36
|
-
if (trimmed.length === 0 ||
|
|
37
|
-
trimmed.startsWith('#') ||
|
|
38
|
-
trimmed.startsWith('mailto:') ||
|
|
39
|
-
trimmed.startsWith('javascript:')) {
|
|
40
|
-
return null;
|
|
41
|
-
}
|
|
42
|
-
try {
|
|
43
|
-
return new URL(trimmed, baseUrl).toString();
|
|
44
|
-
}
|
|
45
|
-
catch {
|
|
46
|
-
return null;
|
|
47
|
-
}
|
|
48
|
-
};
|
|
49
|
-
export const extractLinks = (html, baseUrl) => {
|
|
50
|
-
const links = new Set();
|
|
51
|
-
const pattern = /\shref\s*=\s*(?:"([^"]*)"|'([^']*)'|([^\s>]+))/gi;
|
|
52
|
-
for (const match of html.matchAll(pattern)) {
|
|
53
|
-
const href = match[1] ?? match[2] ?? match[3] ?? '';
|
|
54
|
-
const resolved = resolveLink(baseUrl, href);
|
|
55
|
-
if (resolved !== null) {
|
|
56
|
-
links.add(resolved);
|
|
57
|
-
}
|
|
58
|
-
}
|
|
59
|
-
return [...links].sort((left, right) => left.localeCompare(right));
|
|
60
|
-
};
|
|
61
|
-
export const isSameHost = (leftUrl, rightUrl) => {
|
|
62
|
-
try {
|
|
63
|
-
return new URL(leftUrl).hostname === new URL(rightUrl).hostname;
|
|
64
|
-
}
|
|
65
|
-
catch {
|
|
66
|
-
return false;
|
|
67
|
-
}
|
|
68
|
-
};
|
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
import type { WebFetchRequest, WebFetchResult } from '../create-web-fetch.js';
|
|
2
|
-
export type BfsCrawlSavePage = (page: {
|
|
3
|
-
readonly url: string;
|
|
4
|
-
readonly html: string;
|
|
5
|
-
readonly text: string;
|
|
6
|
-
readonly title?: string;
|
|
7
|
-
}) => Promise<{
|
|
8
|
-
readonly savedPath: string;
|
|
9
|
-
}>;
|
|
10
|
-
/**
|
|
11
|
-
* How failed fetches join the result list:
|
|
12
|
-
* - `skip` — graph Crawl: empty `!ok` bodies omitted; `!ok` with body still
|
|
13
|
-
* processed; unexpected `webFetch` throws propagate.
|
|
14
|
-
* - `record` — `crawl_bfs` tool: `!ok` or throw → `{ ok: false, error }`, continue.
|
|
15
|
-
*/
|
|
16
|
-
export type BfsCrawlFailureMode = 'skip' | 'record';
|
|
17
|
-
/**
|
|
18
|
-
* Whether the frontier may grow past `maxPages`:
|
|
19
|
-
* - `maxPages` — graph: stop enqueueing when `pages + queue` would exceed cap.
|
|
20
|
-
* - `unlimited` — tool: enqueue freely; only processed pages hit `maxPages`.
|
|
21
|
-
*/
|
|
22
|
-
export type BfsCrawlEnqueueBudget = 'maxPages' | 'unlimited';
|
|
23
|
-
export type RunBfsCrawlOptions = {
|
|
24
|
-
readonly startUrl: string;
|
|
25
|
-
readonly maxPages: number;
|
|
26
|
-
/** Cap link expansion depth (`0` = seed only). Omit for no depth limit. */
|
|
27
|
-
readonly maxDepth?: number;
|
|
28
|
-
/** Default `true`. */
|
|
29
|
-
readonly sameHostOnly?: boolean;
|
|
30
|
-
readonly timeoutMs?: number;
|
|
31
|
-
readonly maxBytes?: number;
|
|
32
|
-
readonly webFetch: (request: WebFetchRequest) => Promise<WebFetchResult>;
|
|
33
|
-
readonly savePage?: BfsCrawlSavePage;
|
|
34
|
-
readonly failureMode: BfsCrawlFailureMode;
|
|
35
|
-
/** Default `maxPages`. */
|
|
36
|
-
readonly enqueueBudget?: BfsCrawlEnqueueBudget;
|
|
37
|
-
};
|
|
38
|
-
export type BfsCrawlPage = {
|
|
39
|
-
readonly ok: true;
|
|
40
|
-
readonly url: string;
|
|
41
|
-
readonly status: number;
|
|
42
|
-
readonly html: string;
|
|
43
|
-
readonly text: string;
|
|
44
|
-
readonly title?: string;
|
|
45
|
-
readonly savedPath?: string;
|
|
46
|
-
readonly depth: number;
|
|
47
|
-
} | {
|
|
48
|
-
readonly ok: false;
|
|
49
|
-
readonly url: string;
|
|
50
|
-
readonly error: string;
|
|
51
|
-
readonly depth: number;
|
|
52
|
-
};
|
|
53
|
-
/**
|
|
54
|
-
* Shared BFS crawl used by graph `common-crawl` and agent `crawl_bfs`.
|
|
55
|
-
* Contracts differ via options — not forked algorithms.
|
|
56
|
-
*/
|
|
57
|
-
export declare const runBfsCrawl: (options: RunBfsCrawlOptions) => Promise<readonly BfsCrawlPage[]>;
|
|
@@ -1,112 +0,0 @@
|
|
|
1
|
-
import { extractHtmlTitle, extractLinks, htmlToText, isSameHost, } from './html.js';
|
|
2
|
-
const fetchErrorMessage = (url, fetched) => fetched.error ?? `Fetch failed for ${url} (status ${fetched.status}).`;
|
|
3
|
-
/**
|
|
4
|
-
* Shared BFS crawl used by graph `common-crawl` and agent `crawl_bfs`.
|
|
5
|
-
* Contracts differ via options — not forked algorithms.
|
|
6
|
-
*/
|
|
7
|
-
export const runBfsCrawl = async (options) => {
|
|
8
|
-
const sameHostOnly = options.sameHostOnly !== false;
|
|
9
|
-
const enqueueBudget = options.enqueueBudget ?? 'maxPages';
|
|
10
|
-
const visited = new Set();
|
|
11
|
-
const scheduled = new Set([options.startUrl]);
|
|
12
|
-
const queue = [{ url: options.startUrl, depth: 0 }];
|
|
13
|
-
const pages = [];
|
|
14
|
-
const mayEnqueue = () => {
|
|
15
|
-
if (enqueueBudget === 'unlimited') {
|
|
16
|
-
return true;
|
|
17
|
-
}
|
|
18
|
-
return pages.length + queue.length < options.maxPages;
|
|
19
|
-
};
|
|
20
|
-
while (queue.length > 0 && pages.length < options.maxPages) {
|
|
21
|
-
const next = queue.shift();
|
|
22
|
-
if (next === undefined) {
|
|
23
|
-
break;
|
|
24
|
-
}
|
|
25
|
-
if (visited.has(next.url)) {
|
|
26
|
-
continue;
|
|
27
|
-
}
|
|
28
|
-
visited.add(next.url);
|
|
29
|
-
let fetched;
|
|
30
|
-
try {
|
|
31
|
-
fetched = await options.webFetch({
|
|
32
|
-
url: next.url,
|
|
33
|
-
...(options.timeoutMs !== undefined
|
|
34
|
-
? { timeoutMs: options.timeoutMs }
|
|
35
|
-
: {}),
|
|
36
|
-
...(options.maxBytes !== undefined
|
|
37
|
-
? { maxBytes: options.maxBytes }
|
|
38
|
-
: {}),
|
|
39
|
-
});
|
|
40
|
-
}
|
|
41
|
-
catch (error) {
|
|
42
|
-
if (options.failureMode === 'skip') {
|
|
43
|
-
throw error;
|
|
44
|
-
}
|
|
45
|
-
pages.push({
|
|
46
|
-
ok: false,
|
|
47
|
-
url: next.url,
|
|
48
|
-
error: error instanceof Error ? error.message : String(error),
|
|
49
|
-
depth: next.depth,
|
|
50
|
-
});
|
|
51
|
-
continue;
|
|
52
|
-
}
|
|
53
|
-
if (!fetched.ok) {
|
|
54
|
-
if (options.failureMode === 'record') {
|
|
55
|
-
pages.push({
|
|
56
|
-
ok: false,
|
|
57
|
-
url: next.url,
|
|
58
|
-
error: fetchErrorMessage(next.url, fetched),
|
|
59
|
-
depth: next.depth,
|
|
60
|
-
});
|
|
61
|
-
continue;
|
|
62
|
-
}
|
|
63
|
-
if (fetched.body.length === 0) {
|
|
64
|
-
continue;
|
|
65
|
-
}
|
|
66
|
-
}
|
|
67
|
-
const text = htmlToText(fetched.body);
|
|
68
|
-
const title = extractHtmlTitle(fetched.body);
|
|
69
|
-
const pageUrl = fetched.url || next.url;
|
|
70
|
-
let savedPath;
|
|
71
|
-
if (options.savePage !== undefined) {
|
|
72
|
-
const saved = await options.savePage({
|
|
73
|
-
url: pageUrl,
|
|
74
|
-
html: fetched.body,
|
|
75
|
-
text,
|
|
76
|
-
...(title !== undefined ? { title } : {}),
|
|
77
|
-
});
|
|
78
|
-
savedPath = saved.savedPath;
|
|
79
|
-
}
|
|
80
|
-
pages.push({
|
|
81
|
-
ok: true,
|
|
82
|
-
url: pageUrl,
|
|
83
|
-
status: fetched.status,
|
|
84
|
-
html: fetched.body,
|
|
85
|
-
text,
|
|
86
|
-
depth: next.depth,
|
|
87
|
-
...(title !== undefined ? { title } : {}),
|
|
88
|
-
...(savedPath !== undefined ? { savedPath } : {}),
|
|
89
|
-
});
|
|
90
|
-
if (options.maxDepth !== undefined && next.depth >= options.maxDepth) {
|
|
91
|
-
continue;
|
|
92
|
-
}
|
|
93
|
-
const links = extractLinks(fetched.body, pageUrl);
|
|
94
|
-
const candidates = links.filter((link) => {
|
|
95
|
-
if (scheduled.has(link)) {
|
|
96
|
-
return false;
|
|
97
|
-
}
|
|
98
|
-
if (sameHostOnly && !isSameHost(options.startUrl, link)) {
|
|
99
|
-
return false;
|
|
100
|
-
}
|
|
101
|
-
return true;
|
|
102
|
-
});
|
|
103
|
-
for (const link of candidates) {
|
|
104
|
-
if (!mayEnqueue()) {
|
|
105
|
-
break;
|
|
106
|
-
}
|
|
107
|
-
scheduled.add(link);
|
|
108
|
-
queue.push({ url: link, depth: next.depth + 1 });
|
|
109
|
-
}
|
|
110
|
-
}
|
|
111
|
-
return pages;
|
|
112
|
-
};
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import type { ToolInvokeResult } from './harness-types.js';
|
|
2
|
-
import { type PermissionAskRequest, type PermissionConfig, type PermissionDecision } from './permission.js';
|
|
3
|
-
export type GateToolCallOptions = {
|
|
4
|
-
readonly toolId: string;
|
|
5
|
-
readonly detail: string;
|
|
6
|
-
readonly grants: Set<string>;
|
|
7
|
-
readonly permission: PermissionConfig;
|
|
8
|
-
readonly requestPermission?: (request: PermissionAskRequest) => Promise<PermissionDecision>;
|
|
9
|
-
/**
|
|
10
|
-
* When the tool id has no entry in `permission`, use this decision
|
|
11
|
-
* instead of {@link resolvePermission} (MCP tools → `'ask'`).
|
|
12
|
-
*/
|
|
13
|
-
readonly whenMissingToolConfig?: PermissionDecision;
|
|
14
|
-
};
|
|
15
|
-
export declare const deniedToolResult: (toolId: string, detail: string) => ToolInvokeResult;
|
|
16
|
-
/** Shared ask/grant/deny sequencing for project harness + MCP runtime. */
|
|
17
|
-
export declare const gateToolCall: (options: GateToolCallOptions) => Promise<"allow" | "deny">;
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import { formatPermissionDeniedText, grantKeyForCall, permissionAskSummary, resolvePermission, } from './permission.js';
|
|
2
|
-
export const deniedToolResult = (toolId, detail) => ({
|
|
3
|
-
ok: false,
|
|
4
|
-
text: formatPermissionDeniedText(toolId, detail),
|
|
5
|
-
});
|
|
6
|
-
/** Shared ask/grant/deny sequencing for project harness + MCP runtime. */
|
|
7
|
-
export const gateToolCall = async (options) => {
|
|
8
|
-
const { toolId, detail, grants, permission, requestPermission, whenMissingToolConfig, } = options;
|
|
9
|
-
const key = grantKeyForCall(toolId, detail);
|
|
10
|
-
if (grants.has(key)) {
|
|
11
|
-
return 'allow';
|
|
12
|
-
}
|
|
13
|
-
const decision = whenMissingToolConfig !== undefined && permission[toolId] === undefined
|
|
14
|
-
? whenMissingToolConfig
|
|
15
|
-
: resolvePermission(permission, toolId, detail);
|
|
16
|
-
if (decision === 'allow') {
|
|
17
|
-
return 'allow';
|
|
18
|
-
}
|
|
19
|
-
if (decision === 'deny') {
|
|
20
|
-
return 'deny';
|
|
21
|
-
}
|
|
22
|
-
if (requestPermission === undefined) {
|
|
23
|
-
return 'deny';
|
|
24
|
-
}
|
|
25
|
-
const reply = await requestPermission({
|
|
26
|
-
toolId,
|
|
27
|
-
detail,
|
|
28
|
-
summary: permissionAskSummary(toolId, detail),
|
|
29
|
-
});
|
|
30
|
-
if (reply === 'allow') {
|
|
31
|
-
grants.add(key);
|
|
32
|
-
return 'allow';
|
|
33
|
-
}
|
|
34
|
-
return 'deny';
|
|
35
|
-
};
|