langflower 0.1.0 → 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.
Files changed (922) hide show
  1. package/bin/langflower.js +15 -1
  2. package/dist/chunk-526FJL62.js +307 -0
  3. package/dist/chunk-CVTPGIZE.js +344 -0
  4. package/dist/chunk-EAZMCX37.js +44 -0
  5. package/dist/chunk-PYLGT66P.js +126 -0
  6. package/dist/chunk-WQZHA5FM.js +1444 -0
  7. package/dist/chunk-WV2YWHOC.js +623 -0
  8. package/dist/chunk-YOTMWWRH.js +2041 -0
  9. package/dist/index.js +80236 -1
  10. package/package.json +1 -8
  11. package/ui-dist/{chunk-UG3GFV4Y.js → chunk-BKIP5WRK.js} +1 -1
  12. package/ui-dist/chunk-EZTB7Q33.js +4 -0
  13. package/ui-dist/index.html +2 -2
  14. package/ui-dist/main-X5M7PU3P.js +317 -0
  15. package/ui-dist/styles-VA3HMZK7.css +1 -0
  16. package/vendor/node-sdk/dist/node-factory/define-reactive-node/define-reactive-node.d.ts +1 -0
  17. package/vendor/node-sdk/dist/node-factory/define-reactive-node/define-reactive-node.js +1 -0
  18. package/vendor/node-sdk/dist/node-factory/define-reactive-node/resolve-secret.d.ts +28 -0
  19. package/vendor/node-sdk/dist/node-factory/define-reactive-node/resolve-secret.js +76 -0
  20. package/vendor/node-sdk/dist/node-factory/define-reactive-node/types.d.ts +7 -3
  21. package/vendor/node-sdk/dist/testing/create-node-harness.d.ts +4 -0
  22. package/vendor/node-sdk/dist/testing/create-node-harness.js +5 -0
  23. package/vendor/server/skeleton/schemas/langflower-config.schema.json +5 -1
  24. package/vendor/server/skeleton/skills/langflower-helper/SKILL.md +14 -1
  25. package/vendor/server/skeleton/skills/langflower-helper/architecture.md +9 -2
  26. package/vendor/server/skeleton/skills/langflower-helper/layout.md +20 -19
  27. package/vendor/server/skeleton/skills/langflower-workflow-writer/SKILL.md +3 -1
  28. package/dist/cli.d.ts +0 -1
  29. package/dist/cli.js +0 -13
  30. package/dist/create-fake-skill-case-runner.d.ts +0 -9
  31. package/dist/create-fake-skill-case-runner.js +0 -73
  32. package/dist/create-fake-skill-case-runner.test.d.ts +0 -1
  33. package/dist/create-fake-skill-case-runner.test.js +0 -60
  34. package/dist/eval-command.d.ts +0 -2
  35. package/dist/eval-command.js +0 -66
  36. package/dist/index.d.ts +0 -1
  37. package/dist/start-command.d.ts +0 -5
  38. package/dist/start-command.js +0 -110
  39. package/dist/start-command.test.d.ts +0 -1
  40. package/dist/start-command.test.js +0 -17
  41. package/ui-dist/chunk-QI4IYILJ.js +0 -4
  42. package/ui-dist/main-ODIDCCNX.js +0 -315
  43. package/ui-dist/styles-2JMBAQC3.css +0 -1
  44. package/vendor/common-nodes/dist/ai/build-effective-system-prompt.d.ts +0 -9
  45. package/vendor/common-nodes/dist/ai/build-effective-system-prompt.js +0 -21
  46. package/vendor/common-nodes/dist/ai/chat-completion-stream.d.ts +0 -53
  47. package/vendor/common-nodes/dist/ai/chat-completion-stream.js +0 -1
  48. package/vendor/common-nodes/dist/ai/chat-input/node.d.ts +0 -25
  49. package/vendor/common-nodes/dist/ai/chat-input/node.js +0 -39
  50. package/vendor/common-nodes/dist/ai/critique/node.d.ts +0 -588
  51. package/vendor/common-nodes/dist/ai/critique/node.js +0 -240
  52. package/vendor/common-nodes/dist/ai/define-llm-node/default-llm-ports.d.ts +0 -28
  53. package/vendor/common-nodes/dist/ai/define-llm-node/default-llm-ports.js +0 -59
  54. package/vendor/common-nodes/dist/ai/define-llm-node/define-llm-node.d.ts +0 -45
  55. package/vendor/common-nodes/dist/ai/define-llm-node/define-llm-node.js +0 -48
  56. package/vendor/common-nodes/dist/ai/fake-llm/node.d.ts +0 -571
  57. package/vendor/common-nodes/dist/ai/fake-llm/node.js +0 -207
  58. package/vendor/common-nodes/dist/ai/fake-mcp-server/node.d.ts +0 -26
  59. package/vendor/common-nodes/dist/ai/fake-mcp-server/node.js +0 -67
  60. package/vendor/common-nodes/dist/ai/fake-tool-registration/node.d.ts +0 -26
  61. package/vendor/common-nodes/dist/ai/fake-tool-registration/node.js +0 -57
  62. package/vendor/common-nodes/dist/ai/features/chat-completion-stream.d.ts +0 -53
  63. package/vendor/common-nodes/dist/ai/features/chat-completion-stream.js +0 -1
  64. package/vendor/common-nodes/dist/ai/features/llm-loop/autokick-recovery.d.ts +0 -13
  65. package/vendor/common-nodes/dist/ai/features/llm-loop/autokick-recovery.js +0 -17
  66. package/vendor/common-nodes/dist/ai/features/llm-loop/classify-llm-failure.d.ts +0 -2
  67. package/vendor/common-nodes/dist/ai/features/llm-loop/classify-llm-failure.js +0 -113
  68. package/vendor/common-nodes/dist/ai/features/llm-loop/dead-loop-detector.d.ts +0 -28
  69. package/vendor/common-nodes/dist/ai/features/llm-loop/dead-loop-detector.js +0 -194
  70. package/vendor/common-nodes/dist/ai/features/llm-loop/live-get-tools.d.ts +0 -9
  71. package/vendor/common-nodes/dist/ai/features/llm-loop/live-get-tools.js +0 -21
  72. package/vendor/common-nodes/dist/ai/features/llm-loop/llm-loop-reducer.d.ts +0 -2
  73. package/vendor/common-nodes/dist/ai/features/llm-loop/llm-loop-reducer.js +0 -204
  74. package/vendor/common-nodes/dist/ai/features/llm-loop/llm-loop-types.d.ts +0 -120
  75. package/vendor/common-nodes/dist/ai/features/llm-loop/llm-loop-types.js +0 -39
  76. package/vendor/common-nodes/dist/ai/features/llm-loop/normalize-llm-recovery-policy.d.ts +0 -2
  77. package/vendor/common-nodes/dist/ai/features/llm-loop/normalize-llm-recovery-policy.js +0 -59
  78. package/vendor/common-nodes/dist/ai/features/llm-loop/operators/normalize-tool-result.d.ts +0 -1
  79. package/vendor/common-nodes/dist/ai/features/llm-loop/operators/normalize-tool-result.js +0 -7
  80. package/vendor/common-nodes/dist/ai/features/llm-loop/operators/observe-provider-stream.d.ts +0 -43
  81. package/vendor/common-nodes/dist/ai/features/llm-loop/operators/observe-provider-stream.js +0 -96
  82. package/vendor/common-nodes/dist/ai/features/llm-loop/run-agent-loop.d.ts +0 -29
  83. package/vendor/common-nodes/dist/ai/features/llm-loop/run-agent-loop.js +0 -44
  84. package/vendor/common-nodes/dist/ai/features/llm-loop/run-llm-loop.d.ts +0 -74
  85. package/vendor/common-nodes/dist/ai/features/llm-loop/run-llm-loop.js +0 -658
  86. package/vendor/common-nodes/dist/ai/features/llm-role-preset.d.ts +0 -69
  87. package/vendor/common-nodes/dist/ai/features/llm-role-preset.js +0 -265
  88. package/vendor/common-nodes/dist/ai/features/llm-session/llm-session-shell.d.ts +0 -141
  89. package/vendor/common-nodes/dist/ai/features/llm-session/llm-session-shell.js +0 -225
  90. package/vendor/common-nodes/dist/ai/features/llm-session/run-session-machine.d.ts +0 -32
  91. package/vendor/common-nodes/dist/ai/features/llm-session/run-session-machine.js +0 -118
  92. package/vendor/common-nodes/dist/ai/features/openai/context-length-error.d.ts +0 -14
  93. package/vendor/common-nodes/dist/ai/features/openai/context-length-error.js +0 -63
  94. package/vendor/common-nodes/dist/ai/features/openai/create-chat-completion-stream.d.ts +0 -19
  95. package/vendor/common-nodes/dist/ai/features/openai/create-chat-completion-stream.js +0 -182
  96. package/vendor/common-nodes/dist/ai/features/openai/list-provider-models.d.ts +0 -28
  97. package/vendor/common-nodes/dist/ai/features/openai/list-provider-models.js +0 -52
  98. package/vendor/common-nodes/dist/ai/features/openai/llm-context-compaction.d.ts +0 -31
  99. package/vendor/common-nodes/dist/ai/features/openai/llm-context-compaction.js +0 -326
  100. package/vendor/common-nodes/dist/ai/features/openai/normalize-compaction-params.d.ts +0 -14
  101. package/vendor/common-nodes/dist/ai/features/openai/normalize-compaction-params.js +0 -21
  102. package/vendor/common-nodes/dist/ai/features/openai/prepare-chat-completion.d.ts +0 -30
  103. package/vendor/common-nodes/dist/ai/features/openai/prepare-chat-completion.js +0 -132
  104. package/vendor/common-nodes/dist/ai/features/path-choice/control-tools.d.ts +0 -20
  105. package/vendor/common-nodes/dist/ai/features/path-choice/control-tools.js +0 -70
  106. package/vendor/common-nodes/dist/ai/features/path-choice/run-reactive-path-choice-loop.d.ts +0 -32
  107. package/vendor/common-nodes/dist/ai/features/path-choice/run-reactive-path-choice-loop.js +0 -93
  108. package/vendor/common-nodes/dist/ai/features/prompt/build-effective-system-prompt.d.ts +0 -9
  109. package/vendor/common-nodes/dist/ai/features/prompt/build-effective-system-prompt.js +0 -21
  110. package/vendor/common-nodes/dist/ai/features/prompt/normalize-max-iterations.d.ts +0 -13
  111. package/vendor/common-nodes/dist/ai/features/prompt/normalize-max-iterations.js +0 -23
  112. package/vendor/common-nodes/dist/ai/features/prompt/resolve-chat-provider-model.d.ts +0 -10
  113. package/vendor/common-nodes/dist/ai/features/prompt/resolve-chat-provider-model.js +0 -8
  114. package/vendor/common-nodes/dist/ai/features/run-host-services.d.ts +0 -64
  115. package/vendor/common-nodes/dist/ai/features/run-host-services.js +0 -29
  116. package/vendor/common-nodes/dist/ai/features/scripted-chat-completion-stream.d.ts +0 -17
  117. package/vendor/common-nodes/dist/ai/features/scripted-chat-completion-stream.js +0 -61
  118. package/vendor/common-nodes/dist/ai/features/sub-agent-protocol.d.ts +0 -40
  119. package/vendor/common-nodes/dist/ai/features/sub-agent-protocol.js +0 -44
  120. package/vendor/common-nodes/dist/ai/features/ui-schema/llm-compaction-ui-schema.d.ts +0 -14
  121. package/vendor/common-nodes/dist/ai/features/ui-schema/llm-compaction-ui-schema.js +0 -18
  122. package/vendor/common-nodes/dist/ai/features/ui-schema/llm-panel-ui-schema.d.ts +0 -80
  123. package/vendor/common-nodes/dist/ai/features/ui-schema/llm-panel-ui-schema.js +0 -76
  124. package/vendor/common-nodes/dist/ai/features/ui-schema/llm-recovery-ui-schema.d.ts +0 -113
  125. package/vendor/common-nodes/dist/ai/features/ui-schema/llm-recovery-ui-schema.js +0 -131
  126. package/vendor/common-nodes/dist/ai/features/wait-for-subagent-result.d.ts +0 -7
  127. package/vendor/common-nodes/dist/ai/features/wait-for-subagent-result.js +0 -31
  128. package/vendor/common-nodes/dist/ai/filter-enabled-registrations.d.ts +0 -9
  129. package/vendor/common-nodes/dist/ai/filter-enabled-registrations.js +0 -18
  130. package/vendor/common-nodes/dist/ai/flatten-mcp-server-configs.d.ts +0 -7
  131. package/vendor/common-nodes/dist/ai/flatten-mcp-server-configs.js +0 -21
  132. package/vendor/common-nodes/dist/ai/inventory-tool-round.d.ts +0 -33
  133. package/vendor/common-nodes/dist/ai/inventory-tool-round.js +0 -215
  134. package/vendor/common-nodes/dist/ai/llm-compaction-ui-schema.d.ts +0 -14
  135. package/vendor/common-nodes/dist/ai/llm-compaction-ui-schema.js +0 -18
  136. package/vendor/common-nodes/dist/ai/llm-loop/autokick-recovery.d.ts +0 -13
  137. package/vendor/common-nodes/dist/ai/llm-loop/autokick-recovery.js +0 -17
  138. package/vendor/common-nodes/dist/ai/llm-loop/classify-llm-failure.d.ts +0 -2
  139. package/vendor/common-nodes/dist/ai/llm-loop/classify-llm-failure.js +0 -113
  140. package/vendor/common-nodes/dist/ai/llm-loop/dead-loop-detector.d.ts +0 -28
  141. package/vendor/common-nodes/dist/ai/llm-loop/dead-loop-detector.js +0 -194
  142. package/vendor/common-nodes/dist/ai/llm-loop/llm-loop-reducer.d.ts +0 -2
  143. package/vendor/common-nodes/dist/ai/llm-loop/llm-loop-reducer.js +0 -216
  144. package/vendor/common-nodes/dist/ai/llm-loop/llm-loop-types.d.ts +0 -125
  145. package/vendor/common-nodes/dist/ai/llm-loop/llm-loop-types.js +0 -39
  146. package/vendor/common-nodes/dist/ai/llm-loop/normalize-llm-recovery-policy.d.ts +0 -2
  147. package/vendor/common-nodes/dist/ai/llm-loop/normalize-llm-recovery-policy.js +0 -59
  148. package/vendor/common-nodes/dist/ai/llm-loop/operators/normalize-tool-result.d.ts +0 -1
  149. package/vendor/common-nodes/dist/ai/llm-loop/operators/normalize-tool-result.js +0 -7
  150. package/vendor/common-nodes/dist/ai/llm-loop/operators/observe-provider-stream.d.ts +0 -43
  151. package/vendor/common-nodes/dist/ai/llm-loop/operators/observe-provider-stream.js +0 -96
  152. package/vendor/common-nodes/dist/ai/llm-loop/run-agent-loop.d.ts +0 -31
  153. package/vendor/common-nodes/dist/ai/llm-loop/run-agent-loop.js +0 -57
  154. package/vendor/common-nodes/dist/ai/llm-loop/run-llm-loop.d.ts +0 -79
  155. package/vendor/common-nodes/dist/ai/llm-loop/run-llm-loop.js +0 -637
  156. package/vendor/common-nodes/dist/ai/llm-panel-ui-schema.d.ts +0 -80
  157. package/vendor/common-nodes/dist/ai/llm-panel-ui-schema.js +0 -76
  158. package/vendor/common-nodes/dist/ai/llm-recovery-ui-schema.d.ts +0 -113
  159. package/vendor/common-nodes/dist/ai/llm-recovery-ui-schema.js +0 -131
  160. package/vendor/common-nodes/dist/ai/llm-role-preset.d.ts +0 -69
  161. package/vendor/common-nodes/dist/ai/llm-role-preset.js +0 -265
  162. package/vendor/common-nodes/dist/ai/llm-session/run-session-machine.d.ts +0 -21
  163. package/vendor/common-nodes/dist/ai/llm-session/run-session-machine.js +0 -118
  164. package/vendor/common-nodes/dist/ai/llm-session-shell.d.ts +0 -147
  165. package/vendor/common-nodes/dist/ai/llm-session-shell.js +0 -189
  166. package/vendor/common-nodes/dist/ai/mcp-server/node.d.ts +0 -26
  167. package/vendor/common-nodes/dist/ai/mcp-server/node.js +0 -68
  168. package/vendor/common-nodes/dist/ai/mcp-server-config.d.ts +0 -16
  169. package/vendor/common-nodes/dist/ai/mcp-server-config.js +0 -2
  170. package/vendor/common-nodes/dist/ai/mcp-tool-id.d.ts +0 -11
  171. package/vendor/common-nodes/dist/ai/mcp-tool-id.js +0 -30
  172. package/vendor/common-nodes/dist/ai/merge-tool-inventory.d.ts +0 -10
  173. package/vendor/common-nodes/dist/ai/merge-tool-inventory.js +0 -26
  174. package/vendor/common-nodes/dist/ai/nodes/critique/node.d.ts +0 -588
  175. package/vendor/common-nodes/dist/ai/nodes/critique/node.js +0 -231
  176. package/vendor/common-nodes/dist/ai/nodes/fake-llm/node.d.ts +0 -571
  177. package/vendor/common-nodes/dist/ai/nodes/fake-llm/node.js +0 -207
  178. package/vendor/common-nodes/dist/ai/nodes/openai-llm/node.d.ts +0 -587
  179. package/vendor/common-nodes/dist/ai/nodes/openai-llm/node.js +0 -88
  180. package/vendor/common-nodes/dist/ai/nodes/review/node.d.ts +0 -593
  181. package/vendor/common-nodes/dist/ai/nodes/review/node.js +0 -233
  182. package/vendor/common-nodes/dist/ai/nodes/sub-agent/node.d.ts +0 -630
  183. package/vendor/common-nodes/dist/ai/nodes/sub-agent/node.js +0 -457
  184. package/vendor/common-nodes/dist/ai/normalize-max-iterations.d.ts +0 -13
  185. package/vendor/common-nodes/dist/ai/normalize-max-iterations.js +0 -23
  186. package/vendor/common-nodes/dist/ai/openai/context-length-error.d.ts +0 -14
  187. package/vendor/common-nodes/dist/ai/openai/context-length-error.js +0 -63
  188. package/vendor/common-nodes/dist/ai/openai/create-chat-completion-stream.d.ts +0 -19
  189. package/vendor/common-nodes/dist/ai/openai/create-chat-completion-stream.js +0 -182
  190. package/vendor/common-nodes/dist/ai/openai/create-embedding.d.ts +0 -18
  191. package/vendor/common-nodes/dist/ai/openai/create-embedding.js +0 -43
  192. package/vendor/common-nodes/dist/ai/openai/list-provider-models.d.ts +0 -28
  193. package/vendor/common-nodes/dist/ai/openai/list-provider-models.js +0 -52
  194. package/vendor/common-nodes/dist/ai/openai/llm-context-compaction.d.ts +0 -31
  195. package/vendor/common-nodes/dist/ai/openai/llm-context-compaction.js +0 -326
  196. package/vendor/common-nodes/dist/ai/openai/normalize-compaction-params.d.ts +0 -14
  197. package/vendor/common-nodes/dist/ai/openai/normalize-compaction-params.js +0 -21
  198. package/vendor/common-nodes/dist/ai/openai/prepare-chat-completion.d.ts +0 -30
  199. package/vendor/common-nodes/dist/ai/openai/prepare-chat-completion.js +0 -132
  200. package/vendor/common-nodes/dist/ai/openai-llm/node.d.ts +0 -587
  201. package/vendor/common-nodes/dist/ai/openai-llm/node.js +0 -88
  202. package/vendor/common-nodes/dist/ai/path-choice/control-tools.d.ts +0 -20
  203. package/vendor/common-nodes/dist/ai/path-choice/control-tools.js +0 -70
  204. package/vendor/common-nodes/dist/ai/path-choice/run-path-choice-tool-loop.d.ts +0 -54
  205. package/vendor/common-nodes/dist/ai/path-choice/run-path-choice-tool-loop.js +0 -242
  206. package/vendor/common-nodes/dist/ai/path-choice/run-reactive-path-choice-loop.d.ts +0 -35
  207. package/vendor/common-nodes/dist/ai/path-choice/run-reactive-path-choice-loop.js +0 -106
  208. package/vendor/common-nodes/dist/ai/resolve-chat-provider-model.d.ts +0 -10
  209. package/vendor/common-nodes/dist/ai/resolve-chat-provider-model.js +0 -8
  210. package/vendor/common-nodes/dist/ai/resolve-mcp-inventory.d.ts +0 -8
  211. package/vendor/common-nodes/dist/ai/resolve-mcp-inventory.js +0 -43
  212. package/vendor/common-nodes/dist/ai/review/node.d.ts +0 -593
  213. package/vendor/common-nodes/dist/ai/review/node.js +0 -240
  214. package/vendor/common-nodes/dist/ai/review/review-control-tools.d.ts +0 -20
  215. package/vendor/common-nodes/dist/ai/review/review-control-tools.js +0 -70
  216. package/vendor/common-nodes/dist/ai/review/run-review-tool-loop.d.ts +0 -44
  217. package/vendor/common-nodes/dist/ai/review/run-review-tool-loop.js +0 -193
  218. package/vendor/common-nodes/dist/ai/run-host-services.d.ts +0 -32
  219. package/vendor/common-nodes/dist/ai/run-host-services.js +0 -11
  220. package/vendor/common-nodes/dist/ai/run-internal-tool-loop.d.ts +0 -39
  221. package/vendor/common-nodes/dist/ai/run-internal-tool-loop.js +0 -138
  222. package/vendor/common-nodes/dist/ai/scripted-chat-completion-stream.d.ts +0 -17
  223. package/vendor/common-nodes/dist/ai/scripted-chat-completion-stream.js +0 -61
  224. package/vendor/common-nodes/dist/ai/sub-agent/node.d.ts +0 -630
  225. package/vendor/common-nodes/dist/ai/sub-agent/node.js +0 -302
  226. package/vendor/common-nodes/dist/ai/sub-agent-protocol.d.ts +0 -39
  227. package/vendor/common-nodes/dist/ai/sub-agent-protocol.js +0 -43
  228. package/vendor/common-nodes/dist/ai/tool-handler-context.d.ts +0 -4
  229. package/vendor/common-nodes/dist/ai/tool-handler-context.js +0 -16
  230. package/vendor/common-nodes/dist/ai/tool-registration.d.ts +0 -6
  231. package/vendor/common-nodes/dist/ai/tool-registration.js +0 -33
  232. package/vendor/common-nodes/dist/ai/wait-for-subagent-result.d.ts +0 -6
  233. package/vendor/common-nodes/dist/ai/wait-for-subagent-result.js +0 -30
  234. package/vendor/common-nodes/dist/catalog.d.ts +0 -6
  235. package/vendor/common-nodes/dist/catalog.js +0 -95
  236. package/vendor/common-nodes/dist/compile-custom-nodes/node.d.ts +0 -21
  237. package/vendor/common-nodes/dist/compile-custom-nodes/node.js +0 -45
  238. package/vendor/common-nodes/dist/crawl/crawl/node.d.ts +0 -99
  239. package/vendor/common-nodes/dist/crawl/crawl/node.js +0 -128
  240. package/vendor/common-nodes/dist/crawl/crawl-tools/node.d.ts +0 -20
  241. package/vendor/common-nodes/dist/crawl/crawl-tools/node.js +0 -17
  242. package/vendor/common-nodes/dist/crawl/extract-links/node.d.ts +0 -22
  243. package/vendor/common-nodes/dist/crawl/extract-links/node.js +0 -45
  244. package/vendor/common-nodes/dist/crawl/fetch-url/node.d.ts +0 -56
  245. package/vendor/common-nodes/dist/crawl/fetch-url/node.js +0 -89
  246. package/vendor/common-nodes/dist/crawl/html/extract-links.d.ts +0 -3
  247. package/vendor/common-nodes/dist/crawl/html/extract-links.js +0 -36
  248. package/vendor/common-nodes/dist/crawl/html/html-to-text.d.ts +0 -3
  249. package/vendor/common-nodes/dist/crawl/html/html-to-text.js +0 -36
  250. package/vendor/common-nodes/dist/crawl/html/index.d.ts +0 -3
  251. package/vendor/common-nodes/dist/crawl/html/index.js +0 -3
  252. package/vendor/common-nodes/dist/crawl/save-page/node.d.ts +0 -21
  253. package/vendor/common-nodes/dist/crawl/save-page/node.js +0 -71
  254. package/vendor/common-nodes/dist/crawl/tool-defs.d.ts +0 -81
  255. package/vendor/common-nodes/dist/crawl/tool-defs.js +0 -56
  256. package/vendor/common-nodes/dist/embeddings/create-embedding.d.ts +0 -39
  257. package/vendor/common-nodes/dist/embeddings/create-embedding.js +0 -154
  258. package/vendor/common-nodes/dist/embeddings/embed-provider/node.d.ts +0 -53
  259. package/vendor/common-nodes/dist/embeddings/embed-provider/node.js +0 -126
  260. package/vendor/common-nodes/dist/embeddings/embed-similarity/node.d.ts +0 -20
  261. package/vendor/common-nodes/dist/embeddings/embed-similarity/node.js +0 -81
  262. package/vendor/common-nodes/dist/embeddings/embed-text/node.d.ts +0 -53
  263. package/vendor/common-nodes/dist/embeddings/embed-text/node.js +0 -91
  264. package/vendor/common-nodes/dist/embeddings/from-embedding.d.ts +0 -8
  265. package/vendor/common-nodes/dist/embeddings/from-embedding.js +0 -24
  266. package/vendor/common-nodes/dist/embeddings/resolve-embedding-provider-model.d.ts +0 -11
  267. package/vendor/common-nodes/dist/embeddings/resolve-embedding-provider-model.js +0 -8
  268. package/vendor/common-nodes/dist/flow/checkpoint/node.d.ts +0 -23
  269. package/vendor/common-nodes/dist/flow/checkpoint/node.js +0 -44
  270. package/vendor/common-nodes/dist/flow/delay/node.d.ts +0 -22
  271. package/vendor/common-nodes/dist/flow/delay/node.js +0 -46
  272. package/vendor/common-nodes/dist/flow/loop/node.d.ts +0 -22
  273. package/vendor/common-nodes/dist/flow/loop/node.js +0 -51
  274. package/vendor/common-nodes/dist/flow/map-collect-body.d.ts +0 -21
  275. package/vendor/common-nodes/dist/flow/map-collect-body.js +0 -73
  276. package/vendor/common-nodes/dist/flow/merge/node.d.ts +0 -17
  277. package/vendor/common-nodes/dist/flow/merge/node.js +0 -31
  278. package/vendor/common-nodes/dist/flow/repeat/node.d.ts +0 -20
  279. package/vendor/common-nodes/dist/flow/repeat/node.js +0 -65
  280. package/vendor/common-nodes/dist/flow/router/build-router-definition.d.ts +0 -20
  281. package/vendor/common-nodes/dist/flow/router/build-router-definition.js +0 -23
  282. package/vendor/common-nodes/dist/flow/router/node.d.ts +0 -17
  283. package/vendor/common-nodes/dist/flow/router/node.js +0 -20
  284. package/vendor/common-nodes/dist/flow/router/router-constants.d.ts +0 -2
  285. package/vendor/common-nodes/dist/flow/router/router-constants.js +0 -2
  286. package/vendor/common-nodes/dist/hitl/approval-choice/node.d.ts +0 -23
  287. package/vendor/common-nodes/dist/hitl/approval-choice/node.js +0 -71
  288. package/vendor/common-nodes/dist/hitl/ask-user/node.d.ts +0 -23
  289. package/vendor/common-nodes/dist/hitl/ask-user/node.js +0 -40
  290. package/vendor/common-nodes/dist/hitl/chat-input/node.d.ts +0 -20
  291. package/vendor/common-nodes/dist/hitl/chat-input/node.js +0 -43
  292. package/vendor/common-nodes/dist/hitl/hitl-required-role.d.ts +0 -38
  293. package/vendor/common-nodes/dist/hitl/hitl-required-role.js +0 -21
  294. package/vendor/common-nodes/dist/hitl/review-gate/node.d.ts +0 -17
  295. package/vendor/common-nodes/dist/hitl/review-gate/node.js +0 -70
  296. package/vendor/common-nodes/dist/kb/chunk-text.d.ts +0 -8
  297. package/vendor/common-nodes/dist/kb/chunk-text.js +0 -52
  298. package/vendor/common-nodes/dist/kb/cosine.d.ts +0 -3
  299. package/vendor/common-nodes/dist/kb/cosine.js +0 -21
  300. package/vendor/common-nodes/dist/kb/kb-apply-curation/node.d.ts +0 -25
  301. package/vendor/common-nodes/dist/kb/kb-apply-curation/node.js +0 -38
  302. package/vendor/common-nodes/dist/kb/kb-contradict/node.d.ts +0 -25
  303. package/vendor/common-nodes/dist/kb/kb-contradict/node.js +0 -70
  304. package/vendor/common-nodes/dist/kb/kb-dedupe/node.d.ts +0 -25
  305. package/vendor/common-nodes/dist/kb/kb-dedupe/node.js +0 -61
  306. package/vendor/common-nodes/dist/kb/kb-delete/node.d.ts +0 -24
  307. package/vendor/common-nodes/dist/kb/kb-delete/node.js +0 -60
  308. package/vendor/common-nodes/dist/kb/kb-embed/node.d.ts +0 -26
  309. package/vendor/common-nodes/dist/kb/kb-embed/node.js +0 -52
  310. package/vendor/common-nodes/dist/kb/kb-ingest/node.d.ts +0 -25
  311. package/vendor/common-nodes/dist/kb/kb-ingest/node.js +0 -68
  312. package/vendor/common-nodes/dist/kb/kb-list/node.d.ts +0 -24
  313. package/vendor/common-nodes/dist/kb/kb-list/node.js +0 -42
  314. package/vendor/common-nodes/dist/kb/kb-paths.d.ts +0 -8
  315. package/vendor/common-nodes/dist/kb/kb-paths.js +0 -19
  316. package/vendor/common-nodes/dist/kb/kb-search/node.d.ts +0 -24
  317. package/vendor/common-nodes/dist/kb/kb-search/node.js +0 -60
  318. package/vendor/common-nodes/dist/kb/kb-store.d.ts +0 -57
  319. package/vendor/common-nodes/dist/kb/kb-store.js +0 -290
  320. package/vendor/common-nodes/dist/kb/kb-tools/node.d.ts +0 -25
  321. package/vendor/common-nodes/dist/kb/kb-tools/node.js +0 -14
  322. package/vendor/common-nodes/dist/kb/local-embed.d.ts +0 -9
  323. package/vendor/common-nodes/dist/kb/local-embed.js +0 -41
  324. package/vendor/common-nodes/dist/kb/parse-string-list.d.ts +0 -3
  325. package/vendor/common-nodes/dist/kb/parse-string-list.js +0 -25
  326. package/vendor/common-nodes/dist/kb/tool-defs.d.ts +0 -85
  327. package/vendor/common-nodes/dist/kb/tool-defs.js +0 -67
  328. package/vendor/common-nodes/dist/langflower-tools/emit-registration-tools.d.ts +0 -18
  329. package/vendor/common-nodes/dist/langflower-tools/emit-registration-tools.js +0 -29
  330. package/vendor/common-nodes/dist/langflower-tools/node.d.ts +0 -20
  331. package/vendor/common-nodes/dist/langflower-tools/node.js +0 -81
  332. package/vendor/common-nodes/dist/logic/assert/node.d.ts +0 -20
  333. package/vendor/common-nodes/dist/logic/assert/node.js +0 -56
  334. package/vendor/common-nodes/dist/logic/compare/evaluate-compare.d.ts +0 -28
  335. package/vendor/common-nodes/dist/logic/compare/evaluate-compare.js +0 -60
  336. package/vendor/common-nodes/dist/logic/compare/node.d.ts +0 -107
  337. package/vendor/common-nodes/dist/logic/compare/node.js +0 -46
  338. package/vendor/common-nodes/dist/logic/gate/node.d.ts +0 -17
  339. package/vendor/common-nodes/dist/logic/gate/node.js +0 -41
  340. package/vendor/common-nodes/dist/logic/if/node.d.ts +0 -17
  341. package/vendor/common-nodes/dist/logic/if/node.js +0 -46
  342. package/vendor/common-nodes/dist/logic/switch/build-switch-definition.d.ts +0 -18
  343. package/vendor/common-nodes/dist/logic/switch/build-switch-definition.js +0 -30
  344. package/vendor/common-nodes/dist/logic/switch/node.d.ts +0 -87
  345. package/vendor/common-nodes/dist/logic/switch/node.js +0 -75
  346. package/vendor/common-nodes/dist/logic/switch/switch-constants.d.ts +0 -15
  347. package/vendor/common-nodes/dist/logic/switch/switch-constants.js +0 -24
  348. package/vendor/common-nodes/dist/logic/switch/switch-rules.d.ts +0 -6
  349. package/vendor/common-nodes/dist/logic/switch/switch-rules.js +0 -43
  350. package/vendor/common-nodes/dist/mcp/build-mcp-handle.d.ts +0 -13
  351. package/vendor/common-nodes/dist/mcp/build-mcp-handle.js +0 -65
  352. package/vendor/common-nodes/dist/mcp/build-mcp-transport.d.ts +0 -14
  353. package/vendor/common-nodes/dist/mcp/build-mcp-transport.js +0 -56
  354. package/vendor/common-nodes/dist/mcp/collect-mcp-tool-registrations.d.ts +0 -7
  355. package/vendor/common-nodes/dist/mcp/collect-mcp-tool-registrations.js +0 -19
  356. package/vendor/common-nodes/dist/mcp/create-system-mcp-transports.d.ts +0 -48
  357. package/vendor/common-nodes/dist/mcp/create-system-mcp-transports.js +0 -124
  358. package/vendor/common-nodes/dist/mcp/flatten-mcp-handles.d.ts +0 -6
  359. package/vendor/common-nodes/dist/mcp/flatten-mcp-handles.js +0 -21
  360. package/vendor/common-nodes/dist/mcp/flatten-mcp-server-configs.d.ts +0 -7
  361. package/vendor/common-nodes/dist/mcp/flatten-mcp-server-configs.js +0 -21
  362. package/vendor/common-nodes/dist/mcp/flatten-mcp-transports.d.ts +0 -7
  363. package/vendor/common-nodes/dist/mcp/flatten-mcp-transports.js +0 -22
  364. package/vendor/common-nodes/dist/mcp/format-mcp-connect-error.d.ts +0 -10
  365. package/vendor/common-nodes/dist/mcp/format-mcp-connect-error.js +0 -18
  366. package/vendor/common-nodes/dist/mcp/mcp-http/node.d.ts +0 -22
  367. package/vendor/common-nodes/dist/mcp/mcp-http/node.js +0 -104
  368. package/vendor/common-nodes/dist/mcp/mcp-server/node.d.ts +0 -26
  369. package/vendor/common-nodes/dist/mcp/mcp-server/node.js +0 -68
  370. package/vendor/common-nodes/dist/mcp/mcp-server-config.d.ts +0 -2
  371. package/vendor/common-nodes/dist/mcp/mcp-server-config.js +0 -2
  372. package/vendor/common-nodes/dist/mcp/mcp-stdio/node.d.ts +0 -22
  373. package/vendor/common-nodes/dist/mcp/mcp-stdio/node.js +0 -93
  374. package/vendor/common-nodes/dist/mcp/resolve-agent-mcp-inventory.d.ts +0 -13
  375. package/vendor/common-nodes/dist/mcp/resolve-agent-mcp-inventory.js +0 -17
  376. package/vendor/common-nodes/dist/mcp/resolve-mcp-inventory.d.ts +0 -8
  377. package/vendor/common-nodes/dist/mcp/resolve-mcp-inventory.js +0 -43
  378. package/vendor/common-nodes/dist/memory/memory/node.d.ts +0 -79
  379. package/vendor/common-nodes/dist/memory/memory/node.js +0 -76
  380. package/vendor/common-nodes/dist/memory/memory-tools/node.d.ts +0 -20
  381. package/vendor/common-nodes/dist/memory/memory-tools/node.js +0 -17
  382. package/vendor/common-nodes/dist/memory/tool-defs.d.ts +0 -48
  383. package/vendor/common-nodes/dist/memory/tool-defs.js +0 -45
  384. package/vendor/common-nodes/dist/obsidian/build-moc/node.d.ts +0 -26
  385. package/vendor/common-nodes/dist/obsidian/build-moc/node.js +0 -52
  386. package/vendor/common-nodes/dist/obsidian/build-moc.d.ts +0 -13
  387. package/vendor/common-nodes/dist/obsidian/build-moc.js +0 -57
  388. package/vendor/common-nodes/dist/obsidian/frontmatter/node.d.ts +0 -27
  389. package/vendor/common-nodes/dist/obsidian/frontmatter/node.js +0 -66
  390. package/vendor/common-nodes/dist/obsidian/frontmatter.d.ts +0 -26
  391. package/vendor/common-nodes/dist/obsidian/frontmatter.js +0 -142
  392. package/vendor/common-nodes/dist/obsidian/wikilink-rewrite/node.d.ts +0 -26
  393. package/vendor/common-nodes/dist/obsidian/wikilink-rewrite/node.js +0 -51
  394. package/vendor/common-nodes/dist/obsidian/wikilinks.d.ts +0 -22
  395. package/vendor/common-nodes/dist/obsidian/wikilinks.js +0 -84
  396. package/vendor/common-nodes/dist/output/finish/node.d.ts +0 -17
  397. package/vendor/common-nodes/dist/output/finish/node.js +0 -34
  398. package/vendor/common-nodes/dist/output/preview/node.d.ts +0 -17
  399. package/vendor/common-nodes/dist/output/preview/node.js +0 -48
  400. package/vendor/common-nodes/dist/primitives/boolean/node.d.ts +0 -17
  401. package/vendor/common-nodes/dist/primitives/boolean/node.js +0 -31
  402. package/vendor/common-nodes/dist/primitives/number/node.d.ts +0 -17
  403. package/vendor/common-nodes/dist/primitives/number/node.js +0 -31
  404. package/vendor/common-nodes/dist/primitives/string/node.d.ts +0 -17
  405. package/vendor/common-nodes/dist/primitives/string/node.js +0 -31
  406. package/vendor/common-nodes/dist/primitives/string-multiline/node.d.ts +0 -17
  407. package/vendor/common-nodes/dist/primitives/string-multiline/node.js +0 -31
  408. package/vendor/common-nodes/dist/resolve-workflow-node-definition.d.ts +0 -7
  409. package/vendor/common-nodes/dist/resolve-workflow-node-definition.js +0 -3
  410. package/vendor/common-nodes/dist/text/append-file/node.d.ts +0 -20
  411. package/vendor/common-nodes/dist/text/append-file/node.js +0 -68
  412. package/vendor/common-nodes/dist/text/concat/node.d.ts +0 -17
  413. package/vendor/common-nodes/dist/text/concat/node.js +0 -38
  414. package/vendor/common-nodes/dist/text/read-file/node.d.ts +0 -20
  415. package/vendor/common-nodes/dist/text/read-file/node.js +0 -57
  416. package/vendor/common-nodes/dist/text/split-paced/node.d.ts +0 -21
  417. package/vendor/common-nodes/dist/text/split-paced/node.js +0 -93
  418. package/vendor/common-nodes/dist/text/write-file/node.d.ts +0 -19
  419. package/vendor/common-nodes/dist/text/write-file/node.js +0 -60
  420. package/vendor/common-nodes/dist/tools/collect-agent-tool-handles.d.ts +0 -12
  421. package/vendor/common-nodes/dist/tools/collect-agent-tool-handles.js +0 -42
  422. package/vendor/common-nodes/dist/tools/filter-enabled-registrations.d.ts +0 -8
  423. package/vendor/common-nodes/dist/tools/filter-enabled-registrations.js +0 -17
  424. package/vendor/common-nodes/dist/tools/inventory-tool-round.d.ts +0 -20
  425. package/vendor/common-nodes/dist/tools/inventory-tool-round.js +0 -91
  426. package/vendor/common-nodes/dist/tools/merge-tool-inventory.d.ts +0 -10
  427. package/vendor/common-nodes/dist/tools/merge-tool-inventory.js +0 -26
  428. package/vendor/common-nodes/dist/tools/run-internal-tool-loop.d.ts +0 -55
  429. package/vendor/common-nodes/dist/tools/run-internal-tool-loop.js +0 -360
  430. package/vendor/common-nodes/dist/tools/tool-collection/node.d.ts +0 -20
  431. package/vendor/common-nodes/dist/tools/tool-collection/node.js +0 -45
  432. package/vendor/common-nodes/dist/tools/tool-registration.d.ts +0 -6
  433. package/vendor/common-nodes/dist/tools/tool-registration.js +0 -33
  434. package/vendor/common-nodes/package.json +0 -48
  435. package/vendor/compiler/dist/bundle-pack.d.ts +0 -18
  436. package/vendor/compiler/dist/bundle-pack.js +0 -98
  437. package/vendor/compiler/dist/cache-key.d.ts +0 -5
  438. package/vendor/compiler/dist/cache-key.js +0 -35
  439. package/vendor/compiler/dist/compile-project-nodes.d.ts +0 -14
  440. package/vendor/compiler/dist/compile-project-nodes.js +0 -143
  441. package/vendor/compiler/dist/compile-types.d.ts +0 -22
  442. package/vendor/compiler/dist/compile-types.js +0 -1
  443. package/vendor/compiler/dist/discover-packs.d.ts +0 -6
  444. package/vendor/compiler/dist/discover-packs.js +0 -93
  445. package/vendor/compiler/dist/format-compilation-errors.d.ts +0 -17
  446. package/vendor/compiler/dist/format-compilation-errors.js +0 -62
  447. package/vendor/compiler/dist/resolve-host-types.d.ts +0 -27
  448. package/vendor/compiler/dist/resolve-host-types.js +0 -185
  449. package/vendor/compiler/dist/typecheck-pack.d.ts +0 -20
  450. package/vendor/compiler/dist/typecheck-pack.js +0 -102
  451. package/vendor/compiler/dist/validate-default-export.d.ts +0 -9
  452. package/vendor/compiler/dist/validate-default-export.js +0 -40
  453. package/vendor/compiler/dist/write-compilation-errors.d.ts +0 -4
  454. package/vendor/compiler/dist/write-compilation-errors.js +0 -27
  455. package/vendor/compiler/package.json +0 -26
  456. package/vendor/eval/dist/eval-pack-types.d.ts +0 -14
  457. package/vendor/eval/dist/eval-pack-types.js +0 -1
  458. package/vendor/eval/dist/load-pack.d.ts +0 -5
  459. package/vendor/eval/dist/load-pack.js +0 -97
  460. package/vendor/eval/dist/load-skill-via-read.d.ts +0 -6
  461. package/vendor/eval/dist/load-skill-via-read.js +0 -14
  462. package/vendor/eval/dist/run-eval-suite.d.ts +0 -46
  463. package/vendor/eval/dist/run-eval-suite.js +0 -90
  464. package/vendor/eval/dist/score-case.d.ts +0 -2
  465. package/vendor/eval/dist/score-case.js +0 -10
  466. package/vendor/eval/package.json +0 -21
  467. package/vendor/server/dist/bootstrap/copy-force.d.ts +0 -7
  468. package/vendor/server/dist/bootstrap/copy-force.js +0 -18
  469. package/vendor/server/dist/bootstrap/copy-if-missing.d.ts +0 -7
  470. package/vendor/server/dist/bootstrap/copy-if-missing.js +0 -32
  471. package/vendor/server/dist/bootstrap/project-bootstrap.service.d.ts +0 -17
  472. package/vendor/server/dist/bootstrap/project-bootstrap.service.js +0 -82
  473. package/vendor/server/dist/bootstrap/project-bootstrap.service.test.d.ts +0 -2
  474. package/vendor/server/dist/bootstrap/project-bootstrap.service.test.js +0 -20
  475. package/vendor/server/dist/bootstrap/resolve-skeleton-root.d.ts +0 -8
  476. package/vendor/server/dist/bootstrap/resolve-skeleton-root.js +0 -34
  477. package/vendor/server/dist/bootstrap/seed-skeleton.d.ts +0 -15
  478. package/vendor/server/dist/bootstrap/seed-skeleton.js +0 -70
  479. package/vendor/server/dist/bridge/attach-langflower-bridge.d.ts +0 -19
  480. package/vendor/server/dist/bridge/attach-langflower-bridge.js +0 -79
  481. package/vendor/server/dist/bridge/bind-embed-context.d.ts +0 -7
  482. package/vendor/server/dist/bridge/bind-embed-context.js +0 -16
  483. package/vendor/server/dist/bridge/bind-llm-context.d.ts +0 -13
  484. package/vendor/server/dist/bridge/bind-llm-context.js +0 -30
  485. package/vendor/server/dist/bridge/bridge-event-log.d.ts +0 -12
  486. package/vendor/server/dist/bridge/bridge-event-log.js +0 -114
  487. package/vendor/server/dist/bridge/bridge-outbound.d.ts +0 -4
  488. package/vendor/server/dist/bridge/bridge-outbound.js +0 -14
  489. package/vendor/server/dist/bridge/build-execution-context.d.ts +0 -31
  490. package/vendor/server/dist/bridge/build-execution-context.js +0 -223
  491. package/vendor/server/dist/bridge/build-execution-context.test.d.ts +0 -2
  492. package/vendor/server/dist/bridge/build-execution-context.test.js +0 -126
  493. package/vendor/server/dist/bridge/build-langflower-config-snapshot.d.ts +0 -6
  494. package/vendor/server/dist/bridge/build-langflower-config-snapshot.js +0 -17
  495. package/vendor/server/dist/bridge/client-index.d.ts +0 -5
  496. package/vendor/server/dist/bridge/client-index.js +0 -16
  497. package/vendor/server/dist/bridge/emit-bootstrap.d.ts +0 -16
  498. package/vendor/server/dist/bridge/emit-bootstrap.js +0 -82
  499. package/vendor/server/dist/bridge/forward-runner-event.d.ts +0 -4
  500. package/vendor/server/dist/bridge/forward-runner-event.js +0 -12
  501. package/vendor/server/dist/bridge/forward-runner-event.test.d.ts +0 -2
  502. package/vendor/server/dist/bridge/forward-runner-event.test.js +0 -91
  503. package/vendor/server/dist/bridge/get-live-wired-tools.d.ts +0 -13
  504. package/vendor/server/dist/bridge/get-live-wired-tools.js +0 -83
  505. package/vendor/server/dist/bridge/inbound-guards.d.ts +0 -2
  506. package/vendor/server/dist/bridge/inbound-guards.js +0 -4
  507. package/vendor/server/dist/bridge/langflower-bridge.types.d.ts +0 -4
  508. package/vendor/server/dist/bridge/langflower-bridge.types.js +0 -1
  509. package/vendor/server/dist/bridge/langflower-tools-rpc.d.ts +0 -7
  510. package/vendor/server/dist/bridge/langflower-tools-rpc.js +0 -29
  511. package/vendor/server/dist/bridge/push-models-catalog.d.ts +0 -12
  512. package/vendor/server/dist/bridge/push-models-catalog.js +0 -31
  513. package/vendor/server/dist/bridge/same-canvas-viewport.d.ts +0 -3
  514. package/vendor/server/dist/bridge/same-canvas-viewport.js +0 -5
  515. package/vendor/server/dist/bridge/settings-draft-controller.d.ts +0 -14
  516. package/vendor/server/dist/bridge/settings-draft-controller.js +0 -205
  517. package/vendor/server/dist/bridge/wire-config-handlers.d.ts +0 -11
  518. package/vendor/server/dist/bridge/wire-config-handlers.js +0 -51
  519. package/vendor/server/dist/bridge/wire-custom-palette-handlers.d.ts +0 -5
  520. package/vendor/server/dist/bridge/wire-custom-palette-handlers.js +0 -8
  521. package/vendor/server/dist/bridge/wire-editor-handlers.d.ts +0 -12
  522. package/vendor/server/dist/bridge/wire-editor-handlers.js +0 -254
  523. package/vendor/server/dist/bridge/wire-models-handlers.d.ts +0 -5
  524. package/vendor/server/dist/bridge/wire-models-handlers.js +0 -23
  525. package/vendor/server/dist/bridge/wire-palette-handlers.d.ts +0 -4
  526. package/vendor/server/dist/bridge/wire-palette-handlers.js +0 -9
  527. package/vendor/server/dist/bridge/wire-project-bootstrap-handlers.d.ts +0 -9
  528. package/vendor/server/dist/bridge/wire-project-bootstrap-handlers.js +0 -63
  529. package/vendor/server/dist/bridge/wire-runner-handlers.d.ts +0 -10
  530. package/vendor/server/dist/bridge/wire-runner-handlers.js +0 -302
  531. package/vendor/server/dist/bridge/wire-workflow-handlers.d.ts +0 -5
  532. package/vendor/server/dist/bridge/wire-workflow-handlers.js +0 -245
  533. package/vendor/server/dist/bridge/wrap-builtin-tool-handles.d.ts +0 -10
  534. package/vendor/server/dist/bridge/wrap-builtin-tool-handles.js +0 -42
  535. package/vendor/server/dist/checkpoint/list-resumable-checkpoints.d.ts +0 -4
  536. package/vendor/server/dist/checkpoint/list-resumable-checkpoints.js +0 -11
  537. package/vendor/server/dist/checkpoint/resolve-checkpoint-boundary.d.ts +0 -11
  538. package/vendor/server/dist/checkpoint/resolve-checkpoint-boundary.js +0 -31
  539. package/vendor/server/dist/checkpoint/run-checkpoint-session.d.ts +0 -41
  540. package/vendor/server/dist/checkpoint/run-checkpoint-session.js +0 -170
  541. package/vendor/server/dist/checkpoint/workflow-checkpoint-store.d.ts +0 -23
  542. package/vendor/server/dist/checkpoint/workflow-checkpoint-store.js +0 -177
  543. package/vendor/server/dist/checkpoint/workflow-checkpoint-store.test.d.ts +0 -2
  544. package/vendor/server/dist/checkpoint/workflow-checkpoint-store.test.js +0 -60
  545. package/vendor/server/dist/config/config.service.d.ts +0 -9
  546. package/vendor/server/dist/config/config.service.js +0 -31
  547. package/vendor/server/dist/config/langflower-config.service.d.ts +0 -37
  548. package/vendor/server/dist/config/langflower-config.service.js +0 -390
  549. package/vendor/server/dist/config/langflower-config.service.test.d.ts +0 -2
  550. package/vendor/server/dist/config/langflower-config.service.test.js +0 -111
  551. package/vendor/server/dist/config/redact-langflower-config.d.ts +0 -8
  552. package/vendor/server/dist/config/redact-langflower-config.js +0 -42
  553. package/vendor/server/dist/config/redact-langflower-config.test.d.ts +0 -2
  554. package/vendor/server/dist/config/redact-langflower-config.test.js +0 -69
  555. package/vendor/server/dist/config/resolve-draft-provider-credentials.d.ts +0 -18
  556. package/vendor/server/dist/config/resolve-draft-provider-credentials.js +0 -60
  557. package/vendor/server/dist/config/resolve-global-langflower-config-path.d.ts +0 -5
  558. package/vendor/server/dist/config/resolve-global-langflower-config-path.js +0 -18
  559. package/vendor/server/dist/config/resolve-provider-credentials.d.ts +0 -20
  560. package/vendor/server/dist/config/resolve-provider-credentials.js +0 -59
  561. package/vendor/server/dist/config/resolve-provider-credentials.test.d.ts +0 -2
  562. package/vendor/server/dist/config/resolve-provider-credentials.test.js +0 -63
  563. package/vendor/server/dist/crawl/create-crawl-context.d.ts +0 -6
  564. package/vendor/server/dist/crawl/create-crawl-context.js +0 -33
  565. package/vendor/server/dist/crawl/create-crawl-context.test.d.ts +0 -2
  566. package/vendor/server/dist/crawl/create-crawl-context.test.js +0 -30
  567. package/vendor/server/dist/crawl/create-web-fetch.d.ts +0 -12
  568. package/vendor/server/dist/crawl/create-web-fetch.js +0 -128
  569. package/vendor/server/dist/crawl/create-web-fetch.test.d.ts +0 -2
  570. package/vendor/server/dist/crawl/create-web-fetch.test.js +0 -43
  571. package/vendor/server/dist/crawl/ssrf-guard.d.ts +0 -13
  572. package/vendor/server/dist/crawl/ssrf-guard.js +0 -117
  573. package/vendor/server/dist/crawl/ssrf-guard.test.d.ts +0 -2
  574. package/vendor/server/dist/crawl/ssrf-guard.test.js +0 -46
  575. package/vendor/server/dist/create-server.d.ts +0 -10
  576. package/vendor/server/dist/create-server.js +0 -60
  577. package/vendor/server/dist/harness/pending-permission-asks.d.ts +0 -14
  578. package/vendor/server/dist/harness/pending-permission-asks.js +0 -45
  579. package/vendor/server/dist/harness/permission.d.ts +0 -23
  580. package/vendor/server/dist/harness/permission.js +0 -31
  581. package/vendor/server/dist/harness/permission.test.d.ts +0 -2
  582. package/vendor/server/dist/harness/permission.test.js +0 -50
  583. package/vendor/server/dist/index.d.ts +0 -4
  584. package/vendor/server/dist/index.js +0 -4
  585. package/vendor/server/dist/kb/chunk-text.d.ts +0 -8
  586. package/vendor/server/dist/kb/chunk-text.js +0 -52
  587. package/vendor/server/dist/kb/cosine.d.ts +0 -3
  588. package/vendor/server/dist/kb/cosine.js +0 -21
  589. package/vendor/server/dist/kb/create-kb-context.d.ts +0 -6
  590. package/vendor/server/dist/kb/create-kb-context.js +0 -46
  591. package/vendor/server/dist/kb/kb-paths.d.ts +0 -8
  592. package/vendor/server/dist/kb/kb-paths.js +0 -19
  593. package/vendor/server/dist/kb/kb-store.d.ts +0 -41
  594. package/vendor/server/dist/kb/kb-store.js +0 -250
  595. package/vendor/server/dist/kb/kb-store.test.d.ts +0 -2
  596. package/vendor/server/dist/kb/kb-store.test.js +0 -94
  597. package/vendor/server/dist/kb/local-embed.d.ts +0 -8
  598. package/vendor/server/dist/kb/local-embed.js +0 -41
  599. package/vendor/server/dist/listen-http-server.d.ts +0 -6
  600. package/vendor/server/dist/listen-http-server.js +0 -18
  601. package/vendor/server/dist/llm/create-chat-completion-stream.d.ts +0 -8
  602. package/vendor/server/dist/llm/create-chat-completion-stream.js +0 -125
  603. package/vendor/server/dist/llm/create-chat-completion-stream.test.d.ts +0 -2
  604. package/vendor/server/dist/llm/create-chat-completion-stream.test.js +0 -72
  605. package/vendor/server/dist/llm/create-embedding.d.ts +0 -9
  606. package/vendor/server/dist/llm/create-embedding.js +0 -51
  607. package/vendor/server/dist/llm/list-provider-models.d.ts +0 -29
  608. package/vendor/server/dist/llm/list-provider-models.js +0 -55
  609. package/vendor/server/dist/llm/list-provider-models.test.d.ts +0 -2
  610. package/vendor/server/dist/llm/list-provider-models.test.js +0 -97
  611. package/vendor/server/dist/mcp/create-mcp-runtime.d.ts +0 -21
  612. package/vendor/server/dist/mcp/create-mcp-runtime.js +0 -167
  613. package/vendor/server/dist/mcp/create-mcp-runtime.test.d.ts +0 -2
  614. package/vendor/server/dist/mcp/create-mcp-runtime.test.js +0 -69
  615. package/vendor/server/dist/mcp/mcp-stdio-client.d.ts +0 -32
  616. package/vendor/server/dist/mcp/mcp-stdio-client.js +0 -183
  617. package/vendor/server/dist/mcp/mcp-tool-id.d.ts +0 -5
  618. package/vendor/server/dist/mcp/mcp-tool-id.js +0 -5
  619. package/vendor/server/dist/mcp/openai-mcp-tool-loop.test.d.ts +0 -2
  620. package/vendor/server/dist/mcp/openai-mcp-tool-loop.test.js +0 -189
  621. package/vendor/server/dist/mcp/wrap-harness-with-mcp.d.ts +0 -5
  622. package/vendor/server/dist/mcp/wrap-harness-with-mcp.js +0 -14
  623. package/vendor/server/dist/palette/compile-and-hot-swap-custom-nodes.d.ts +0 -10
  624. package/vendor/server/dist/palette/compile-and-hot-swap-custom-nodes.js +0 -23
  625. package/vendor/server/dist/palette/custom-node-registry.d.ts +0 -10
  626. package/vendor/server/dist/palette/custom-node-registry.js +0 -19
  627. package/vendor/server/dist/palette/custom-palette.service.d.ts +0 -12
  628. package/vendor/server/dist/palette/custom-palette.service.js +0 -63
  629. package/vendor/server/dist/palette/palette.service.d.ts +0 -13
  630. package/vendor/server/dist/palette/palette.service.js +0 -28
  631. package/vendor/server/dist/server-context.d.ts +0 -18
  632. package/vendor/server/dist/server-context.js +0 -29
  633. package/vendor/server/dist/session/build-selected-node-payload.d.ts +0 -9
  634. package/vendor/server/dist/session/build-selected-node-payload.js +0 -20
  635. package/vendor/server/dist/session/build-session-bootstrap.d.ts +0 -7
  636. package/vendor/server/dist/session/build-session-bootstrap.js +0 -23
  637. package/vendor/server/dist/session/clear-feed-while-running.test.d.ts +0 -2
  638. package/vendor/server/dist/session/clear-feed-while-running.test.js +0 -41
  639. package/vendor/server/dist/session/langflower-session.d.ts +0 -38
  640. package/vendor/server/dist/session/langflower-session.js +0 -92
  641. package/vendor/server/dist/session/reset-session-execution-feed.d.ts +0 -6
  642. package/vendor/server/dist/session/reset-session-execution-feed.js +0 -8
  643. package/vendor/server/dist/session/settings-draft-session.d.ts +0 -24
  644. package/vendor/server/dist/session/settings-draft-session.js +0 -82
  645. package/vendor/server/dist/skills/is-safe-skill-id.d.ts +0 -2
  646. package/vendor/server/dist/skills/is-safe-skill-id.js +0 -7
  647. package/vendor/server/dist/skills/list-skills.d.ts +0 -2
  648. package/vendor/server/dist/skills/list-skills.js +0 -36
  649. package/vendor/server/dist/skills/list-skills.test.d.ts +0 -2
  650. package/vendor/server/dist/skills/list-skills.test.js +0 -46
  651. package/vendor/server/dist/skills/parse-skill-markdown.d.ts +0 -7
  652. package/vendor/server/dist/skills/parse-skill-markdown.js +0 -50
  653. package/vendor/server/dist/skills/parse-skill-markdown.test.d.ts +0 -2
  654. package/vendor/server/dist/skills/parse-skill-markdown.test.js +0 -33
  655. package/vendor/server/dist/skills/read-agents-markdown.d.ts +0 -2
  656. package/vendor/server/dist/skills/read-agents-markdown.js +0 -13
  657. package/vendor/server/dist/skills/read-skill-markdown.d.ts +0 -2
  658. package/vendor/server/dist/skills/read-skill-markdown.js +0 -17
  659. package/vendor/server/dist/skills/read-skill-markdown.test.d.ts +0 -2
  660. package/vendor/server/dist/skills/read-skill-markdown.test.js +0 -31
  661. package/vendor/server/dist/skills/with-skills-catalog.d.ts +0 -3
  662. package/vendor/server/dist/skills/with-skills-catalog.js +0 -6
  663. package/vendor/server/dist/skills/with-skills-catalog.test.d.ts +0 -2
  664. package/vendor/server/dist/skills/with-skills-catalog.test.js +0 -40
  665. package/vendor/server/dist/utils/parse-jsonc.d.ts +0 -2
  666. package/vendor/server/dist/utils/parse-jsonc.js +0 -7
  667. package/vendor/server/dist/workflow/activate-workflow-in-session.d.ts +0 -26
  668. package/vendor/server/dist/workflow/activate-workflow-in-session.js +0 -69
  669. package/vendor/server/dist/workflow/apply-editor-mutation.d.ts +0 -67
  670. package/vendor/server/dist/workflow/apply-editor-mutation.js +0 -527
  671. package/vendor/server/dist/workflow/apply-editor-mutation.test.d.ts +0 -2
  672. package/vendor/server/dist/workflow/apply-editor-mutation.test.js +0 -397
  673. package/vendor/server/dist/workflow/bind-workflow-graph.d.ts +0 -11
  674. package/vendor/server/dist/workflow/bind-workflow-graph.js +0 -16
  675. package/vendor/server/dist/workflow/build-save-current-payload.d.ts +0 -3
  676. package/vendor/server/dist/workflow/build-save-current-payload.js +0 -17
  677. package/vendor/server/dist/workflow/build-save-current-payload.test.d.ts +0 -2
  678. package/vendor/server/dist/workflow/build-save-current-payload.test.js +0 -44
  679. package/vendor/server/dist/workflow/copy-workflow-to-session.d.ts +0 -8
  680. package/vendor/server/dist/workflow/copy-workflow-to-session.js +0 -32
  681. package/vendor/server/dist/workflow/copy-workflow-to-session.test.d.ts +0 -2
  682. package/vendor/server/dist/workflow/copy-workflow-to-session.test.js +0 -72
  683. package/vendor/server/dist/workflow/create-empty-workflow-in-session.d.ts +0 -4
  684. package/vendor/server/dist/workflow/create-empty-workflow-in-session.js +0 -34
  685. package/vendor/server/dist/workflow/create-empty-workflow-in-session.test.d.ts +0 -2
  686. package/vendor/server/dist/workflow/create-empty-workflow-in-session.test.js +0 -54
  687. package/vendor/server/dist/workflow/load-workflow-into-session.d.ts +0 -15
  688. package/vendor/server/dist/workflow/load-workflow-into-session.js +0 -43
  689. package/vendor/server/dist/workflow/rename-active-workflow.d.ts +0 -14
  690. package/vendor/server/dist/workflow/rename-active-workflow.js +0 -60
  691. package/vendor/server/dist/workflow/rename-active-workflow.test.d.ts +0 -2
  692. package/vendor/server/dist/workflow/rename-active-workflow.test.js +0 -111
  693. package/vendor/server/dist/workflow/repair-workflow-graph.d.ts +0 -12
  694. package/vendor/server/dist/workflow/repair-workflow-graph.js +0 -62
  695. package/vendor/server/dist/workflow/repro-bypass.test.d.ts +0 -2
  696. package/vendor/server/dist/workflow/repro-bypass.test.js +0 -63
  697. package/vendor/server/dist/workflow/workflow-document.d.ts +0 -21
  698. package/vendor/server/dist/workflow/workflow-document.js +0 -58
  699. package/vendor/server/dist/workflow/workflow-id.d.ts +0 -2
  700. package/vendor/server/dist/workflow/workflow-id.js +0 -19
  701. package/vendor/server/dist/workflow/workflow-id.test.d.ts +0 -2
  702. package/vendor/server/dist/workflow/workflow-id.test.js +0 -23
  703. package/vendor/server/dist/workflow/workflow-persisted-inputs.d.ts +0 -13
  704. package/vendor/server/dist/workflow/workflow-persisted-inputs.js +0 -71
  705. package/vendor/server/dist/workflow/workflow.service.d.ts +0 -37
  706. package/vendor/server/dist/workflow/workflow.service.js +0 -161
  707. package/vendor/server/dist/workflow/workflow.service.test.d.ts +0 -2
  708. package/vendor/server/dist/workflow/workflow.service.test.js +0 -57
  709. package/vendor/server/package.json +0 -35
  710. package/vendor/shared/dist/checkpoint/json-value.d.ts +0 -7
  711. package/vendor/shared/dist/checkpoint/json-value.js +0 -52
  712. package/vendor/shared/dist/checkpoint/json-value.test.d.ts +0 -1
  713. package/vendor/shared/dist/checkpoint/json-value.test.js +0 -22
  714. package/vendor/shared/dist/checkpoint/workflow-fingerprint.d.ts +0 -11
  715. package/vendor/shared/dist/checkpoint/workflow-fingerprint.js +0 -17
  716. package/vendor/shared/dist/checkpoint/workflow-fingerprint.test.d.ts +0 -1
  717. package/vendor/shared/dist/checkpoint/workflow-fingerprint.test.js +0 -54
  718. package/vendor/shared/dist/constants/defaults.d.ts +0 -16
  719. package/vendor/shared/dist/constants/defaults.js +0 -25
  720. package/vendor/shared/dist/execution/derive-run-settle-outcome.d.ts +0 -16
  721. package/vendor/shared/dist/execution/derive-run-settle-outcome.js +0 -48
  722. package/vendor/shared/dist/execution/derive-run-settle-outcome.test.d.ts +0 -1
  723. package/vendor/shared/dist/execution/derive-run-settle-outcome.test.js +0 -46
  724. package/vendor/shared/dist/langflower-bus-config.d.ts +0 -484
  725. package/vendor/shared/dist/langflower-bus-config.js +0 -635
  726. package/vendor/shared/dist/langflower-config/mcp-tool-id.d.ts +0 -23
  727. package/vendor/shared/dist/langflower-config/mcp-tool-id.js +0 -43
  728. package/vendor/shared/dist/langflower-config/merge-langflower-config-layers.d.ts +0 -6
  729. package/vendor/shared/dist/langflower-config/merge-langflower-config-layers.js +0 -18
  730. package/vendor/shared/dist/langflower-config/merge-langflower-config-layers.test.d.ts +0 -1
  731. package/vendor/shared/dist/langflower-config/merge-langflower-config-layers.test.js +0 -44
  732. package/vendor/shared/dist/langflower-config/merge-provider-model-options.d.ts +0 -7
  733. package/vendor/shared/dist/langflower-config/merge-provider-model-options.js +0 -17
  734. package/vendor/shared/dist/langflower-config/merge-provider-model-options.test.d.ts +0 -1
  735. package/vendor/shared/dist/langflower-config/merge-provider-model-options.test.js +0 -22
  736. package/vendor/shared/dist/langflower-config/parse-default-chat-model.d.ts +0 -14
  737. package/vendor/shared/dist/langflower-config/parse-default-chat-model.js +0 -38
  738. package/vendor/shared/dist/langflower-config/parse-default-chat-model.test.d.ts +0 -1
  739. package/vendor/shared/dist/langflower-config/parse-default-chat-model.test.js +0 -41
  740. package/vendor/shared/dist/langflower-config/resolve-server-logs-enabled.d.ts +0 -6
  741. package/vendor/shared/dist/langflower-config/resolve-server-logs-enabled.js +0 -5
  742. package/vendor/shared/dist/langflower-config/resolve-server-logs-enabled.test.d.ts +0 -1
  743. package/vendor/shared/dist/langflower-config/resolve-server-logs-enabled.test.js +0 -11
  744. package/vendor/shared/dist/langflower-config/resolve-ui-schema-options.d.ts +0 -18
  745. package/vendor/shared/dist/langflower-config/resolve-ui-schema-options.js +0 -61
  746. package/vendor/shared/dist/langflower-config/resolve-ui-schema-options.test.d.ts +0 -1
  747. package/vendor/shared/dist/langflower-config/resolve-ui-schema-options.test.js +0 -37
  748. package/vendor/shared/dist/langflower-config/resolve-wired-tool-options.d.ts +0 -40
  749. package/vendor/shared/dist/langflower-config/resolve-wired-tool-options.js +0 -139
  750. package/vendor/shared/dist/langflower-config/resolve-wired-tool-options.test.d.ts +0 -1
  751. package/vendor/shared/dist/langflower-config/resolve-wired-tool-options.test.js +0 -253
  752. package/vendor/shared/dist/langflower-config/settings-draft.d.ts +0 -49
  753. package/vendor/shared/dist/langflower-config/settings-draft.js +0 -151
  754. package/vendor/shared/dist/langflower-ws-waits.d.ts +0 -58
  755. package/vendor/shared/dist/langflower-ws-waits.js +0 -121
  756. package/vendor/shared/dist/langflower.d.ts +0 -30
  757. package/vendor/shared/dist/langflower.js +0 -13
  758. package/vendor/shared/dist/types/config.d.ts +0 -4
  759. package/vendor/shared/dist/types/config.js +0 -1
  760. package/vendor/shared/dist/types/langflower-bootstrap.d.ts +0 -71
  761. package/vendor/shared/dist/types/langflower-bootstrap.js +0 -1
  762. package/vendor/shared/dist/types/langflower-config.d.ts +0 -263
  763. package/vendor/shared/dist/types/langflower-config.js +0 -1
  764. package/vendor/shared/dist/types/langflower-custom-palette.d.ts +0 -21
  765. package/vendor/shared/dist/types/langflower-custom-palette.js +0 -1
  766. package/vendor/shared/dist/types/langflower-editor.d.ts +0 -96
  767. package/vendor/shared/dist/types/langflower-editor.js +0 -1
  768. package/vendor/shared/dist/types/langflower-palette.d.ts +0 -25
  769. package/vendor/shared/dist/types/langflower-palette.js +0 -1
  770. package/vendor/shared/dist/types/langflower-project-bootstrap.d.ts +0 -11
  771. package/vendor/shared/dist/types/langflower-project-bootstrap.js +0 -1
  772. package/vendor/shared/dist/types/langflower-server.d.ts +0 -4
  773. package/vendor/shared/dist/types/langflower-server.js +0 -1
  774. package/vendor/shared/dist/types/langflower-workflow.d.ts +0 -146
  775. package/vendor/shared/dist/types/langflower-workflow.js +0 -12
  776. package/vendor/shared/dist/types/workflow-checkpoint.d.ts +0 -60
  777. package/vendor/shared/dist/types/workflow-checkpoint.js +0 -9
  778. package/vendor/shared/package.json +0 -74
  779. package/vendor/tools/dist/builtin-schemas.d.ts +0 -10
  780. package/vendor/tools/dist/builtin-schemas.js +0 -144
  781. package/vendor/tools/dist/builtins/apply-post-process.d.ts +0 -1
  782. package/vendor/tools/dist/builtins/apply-post-process.js +0 -9
  783. package/vendor/tools/dist/builtins/args.d.ts +0 -3
  784. package/vendor/tools/dist/builtins/args.js +0 -14
  785. package/vendor/tools/dist/builtins/bash/tool.d.ts +0 -25
  786. package/vendor/tools/dist/builtins/bash/tool.js +0 -72
  787. package/vendor/tools/dist/builtins/catalog.d.ts +0 -228
  788. package/vendor/tools/dist/builtins/catalog.js +0 -24
  789. package/vendor/tools/dist/builtins/command-exists.d.ts +0 -5
  790. package/vendor/tools/dist/builtins/command-exists.js +0 -27
  791. package/vendor/tools/dist/builtins/create/tool.d.ts +0 -25
  792. package/vendor/tools/dist/builtins/create/tool.js +0 -56
  793. package/vendor/tools/dist/builtins/delete/tool.d.ts +0 -21
  794. package/vendor/tools/dist/builtins/delete/tool.js +0 -44
  795. package/vendor/tools/dist/builtins/edit/tool.d.ts +0 -29
  796. package/vendor/tools/dist/builtins/edit/tool.js +0 -68
  797. package/vendor/tools/dist/builtins/fence.d.ts +0 -4
  798. package/vendor/tools/dist/builtins/fence.js +0 -6
  799. package/vendor/tools/dist/builtins/glob/tool.d.ts +0 -33
  800. package/vendor/tools/dist/builtins/glob/tool.js +0 -77
  801. package/vendor/tools/dist/builtins/grep/search.d.ts +0 -43
  802. package/vendor/tools/dist/builtins/grep/search.js +0 -315
  803. package/vendor/tools/dist/builtins/grep/tool.d.ts +0 -36
  804. package/vendor/tools/dist/builtins/grep/tool.js +0 -66
  805. package/vendor/tools/dist/builtins/read/tool.d.ts +0 -41
  806. package/vendor/tools/dist/builtins/read/tool.js +0 -96
  807. package/vendor/tools/dist/builtins/spawn-capture.d.ts +0 -15
  808. package/vendor/tools/dist/builtins/spawn-capture.js +0 -42
  809. package/vendor/tools/dist/builtins/types.d.ts +0 -16
  810. package/vendor/tools/dist/builtins/types.js +0 -1
  811. package/vendor/tools/dist/builtins/walk-files.d.ts +0 -16
  812. package/vendor/tools/dist/builtins/walk-files.js +0 -100
  813. package/vendor/tools/dist/builtins/write/tool.d.ts +0 -25
  814. package/vendor/tools/dist/builtins/write/tool.js +0 -40
  815. package/vendor/tools/dist/create-crawl-context.d.ts +0 -22
  816. package/vendor/tools/dist/create-crawl-context.js +0 -34
  817. package/vendor/tools/dist/create-memory-context.d.ts +0 -12
  818. package/vendor/tools/dist/create-memory-context.js +0 -84
  819. package/vendor/tools/dist/create-project-files-context.d.ts +0 -19
  820. package/vendor/tools/dist/create-project-files-context.js +0 -75
  821. package/vendor/tools/dist/create-project-harness.d.ts +0 -33
  822. package/vendor/tools/dist/create-project-harness.js +0 -64
  823. package/vendor/tools/dist/create-web-fetch.d.ts +0 -27
  824. package/vendor/tools/dist/create-web-fetch.js +0 -164
  825. package/vendor/tools/dist/domain/args.d.ts +0 -3
  826. package/vendor/tools/dist/domain/args.js +0 -22
  827. package/vendor/tools/dist/domain/create-domain-handlers.d.ts +0 -22
  828. package/vendor/tools/dist/domain/create-domain-handlers.js +0 -223
  829. package/vendor/tools/dist/domain/domain-tool-configs.d.ts +0 -30
  830. package/vendor/tools/dist/domain/domain-tool-configs.js +0 -299
  831. package/vendor/tools/dist/domain/html.d.ts +0 -4
  832. package/vendor/tools/dist/domain/html.js +0 -68
  833. package/vendor/tools/dist/domain/run-bfs-crawl.d.ts +0 -57
  834. package/vendor/tools/dist/domain/run-bfs-crawl.js +0 -112
  835. package/vendor/tools/dist/gate-tool-call.d.ts +0 -17
  836. package/vendor/tools/dist/gate-tool-call.js +0 -35
  837. package/vendor/tools/dist/gitignore.d.ts +0 -4
  838. package/vendor/tools/dist/gitignore.js +0 -94
  839. package/vendor/tools/dist/handlers.d.ts +0 -16
  840. package/vendor/tools/dist/handlers.js +0 -367
  841. package/vendor/tools/dist/harness-types.d.ts +0 -33
  842. package/vendor/tools/dist/harness-types.js +0 -4
  843. package/vendor/tools/dist/kb/chunk-text.d.ts +0 -8
  844. package/vendor/tools/dist/kb/chunk-text.js +0 -52
  845. package/vendor/tools/dist/kb/cosine.d.ts +0 -3
  846. package/vendor/tools/dist/kb/cosine.js +0 -21
  847. package/vendor/tools/dist/kb/create-kb-context.d.ts +0 -62
  848. package/vendor/tools/dist/kb/create-kb-context.js +0 -78
  849. package/vendor/tools/dist/kb/kb-curation.d.ts +0 -69
  850. package/vendor/tools/dist/kb/kb-curation.js +0 -364
  851. package/vendor/tools/dist/kb/kb-paths.d.ts +0 -8
  852. package/vendor/tools/dist/kb/kb-paths.js +0 -19
  853. package/vendor/tools/dist/kb/kb-store.d.ts +0 -41
  854. package/vendor/tools/dist/kb/kb-store.js +0 -246
  855. package/vendor/tools/dist/kb/local-embed.d.ts +0 -8
  856. package/vendor/tools/dist/kb/local-embed.js +0 -41
  857. package/vendor/tools/dist/mcp/build-mcp-handle.d.ts +0 -12
  858. package/vendor/tools/dist/mcp/build-mcp-handle.js +0 -56
  859. package/vendor/tools/dist/mcp/create-mcp-runtime.d.ts +0 -29
  860. package/vendor/tools/dist/mcp/create-mcp-runtime.js +0 -161
  861. package/vendor/tools/dist/mcp/create-system-mcp-handles.d.ts +0 -52
  862. package/vendor/tools/dist/mcp/create-system-mcp-handles.js +0 -127
  863. package/vendor/tools/dist/mcp/env-with-shell-com-spec.d.ts +0 -5
  864. package/vendor/tools/dist/mcp/env-with-shell-com-spec.js +0 -18
  865. package/vendor/tools/dist/mcp/format-mcp-connect-error.d.ts +0 -9
  866. package/vendor/tools/dist/mcp/format-mcp-connect-error.js +0 -13
  867. package/vendor/tools/dist/mcp/mcp-client-types.d.ts +0 -17
  868. package/vendor/tools/dist/mcp/mcp-client-types.js +0 -1
  869. package/vendor/tools/dist/mcp/mcp-http-client.d.ts +0 -31
  870. package/vendor/tools/dist/mcp/mcp-http-client.js +0 -243
  871. package/vendor/tools/dist/mcp/mcp-stdio-client.d.ts +0 -19
  872. package/vendor/tools/dist/mcp/mcp-stdio-client.js +0 -186
  873. package/vendor/tools/dist/mcp/mcp-stdio-frame-parser.d.ts +0 -7
  874. package/vendor/tools/dist/mcp/mcp-stdio-frame-parser.js +0 -77
  875. package/vendor/tools/dist/mcp/mcp-tool-id.d.ts +0 -25
  876. package/vendor/tools/dist/mcp/mcp-tool-id.js +0 -45
  877. package/vendor/tools/dist/mcp/require-mcp-server-name.d.ts +0 -5
  878. package/vendor/tools/dist/mcp/require-mcp-server-name.js +0 -22
  879. package/vendor/tools/dist/mcp/resolve-shell-option.d.ts +0 -6
  880. package/vendor/tools/dist/mcp/resolve-shell-option.js +0 -19
  881. package/vendor/tools/dist/mcp/wrap-harness-with-mcp.d.ts +0 -5
  882. package/vendor/tools/dist/mcp/wrap-harness-with-mcp.js +0 -27
  883. package/vendor/tools/dist/memory/atomic-write.d.ts +0 -4
  884. package/vendor/tools/dist/memory/atomic-write.js +0 -18
  885. package/vendor/tools/dist/memory/create-memory-store.d.ts +0 -21
  886. package/vendor/tools/dist/memory/create-memory-store.js +0 -203
  887. package/vendor/tools/dist/memory/markdown-sections.d.ts +0 -22
  888. package/vendor/tools/dist/memory/markdown-sections.js +0 -69
  889. package/vendor/tools/dist/memory/memory-paths.d.ts +0 -9
  890. package/vendor/tools/dist/memory/memory-paths.js +0 -28
  891. package/vendor/tools/dist/path-sandbox.d.ts +0 -21
  892. package/vendor/tools/dist/path-sandbox.js +0 -96
  893. package/vendor/tools/dist/permission.d.ts +0 -75
  894. package/vendor/tools/dist/permission.js +0 -264
  895. package/vendor/tools/dist/post-process.d.ts +0 -9
  896. package/vendor/tools/dist/post-process.js +0 -36
  897. package/vendor/tools/dist/ssrf-guard.d.ts +0 -22
  898. package/vendor/tools/dist/ssrf-guard.js +0 -119
  899. package/vendor/tools/package.json +0 -74
  900. package/vendor/websocket-bridge/dist/bridge-codec.d.ts +0 -3
  901. package/vendor/websocket-bridge/dist/bridge-codec.js +0 -26
  902. package/vendor/websocket-bridge/dist/bridge-frame.d.ts +0 -11
  903. package/vendor/websocket-bridge/dist/bridge-frame.js +0 -24
  904. package/vendor/websocket-bridge/dist/bridge-guards.d.ts +0 -4
  905. package/vendor/websocket-bridge/dist/bridge-guards.js +0 -17
  906. package/vendor/websocket-bridge/dist/bridge-subjects.d.ts +0 -10
  907. package/vendor/websocket-bridge/dist/bridge-subjects.js +0 -38
  908. package/vendor/websocket-bridge/dist/bridge-types.d.ts +0 -102
  909. package/vendor/websocket-bridge/dist/bridge-types.js +0 -2
  910. package/vendor/websocket-bridge/dist/create-client.d.ts +0 -5
  911. package/vendor/websocket-bridge/dist/create-client.js +0 -152
  912. package/vendor/websocket-bridge/dist/create-server.d.ts +0 -8
  913. package/vendor/websocket-bridge/dist/create-server.js +0 -134
  914. package/vendor/websocket-bridge/dist/testing/expect-type.d.ts +0 -3
  915. package/vendor/websocket-bridge/dist/testing/expect-type.js +0 -3
  916. package/vendor/websocket-bridge/dist/testing/sample-diagram-ws-config.d.ts +0 -27
  917. package/vendor/websocket-bridge/dist/testing/sample-diagram-ws-config.js +0 -12
  918. package/vendor/websocket-bridge/dist/testing/sample-ping-ws-config.d.ts +0 -17
  919. package/vendor/websocket-bridge/dist/testing/sample-ping-ws-config.js +0 -10
  920. package/vendor/websocket-bridge/dist/testing/transport-test-helpers.d.ts +0 -6
  921. package/vendor/websocket-bridge/dist/testing/transport-test-helpers.js +0 -34
  922. package/vendor/websocket-bridge/package.json +0 -34
@@ -1,16 +0,0 @@
1
- /** Always skip these directory names (ts-scan-style), even with --no-ignore. */
2
- export declare const WALK_EXCLUDE_DIR_NAMES: readonly ["node_modules", "dist", "build", ".git"];
3
- export declare const globToRegExp: (pattern: string) => RegExp;
4
- export type WalkFilesOptions = {
5
- readonly respectGitignore?: boolean;
6
- readonly signal?: AbortSignal;
7
- /** Stop collecting after this many files (default unlimited). */
8
- readonly maxFiles?: number;
9
- /** Yield to the event loop every N directory entries (default 32). */
10
- readonly yieldEvery?: number;
11
- };
12
- /**
13
- * Async recursive file walk. Third arg may be `respectGitignore` boolean
14
- * (legacy) or {@link WalkFilesOptions}.
15
- */
16
- export declare const walkFiles: (root: string, dir: string, options?: boolean | WalkFilesOptions) => Promise<readonly string[]>;
@@ -1,100 +0,0 @@
1
- import fs from 'node:fs/promises';
2
- import path from 'node:path';
3
- import { loadGitIgnoreMatcher } from '../gitignore.js';
4
- /** Always skip these directory names (ts-scan-style), even with --no-ignore. */
5
- export const WALK_EXCLUDE_DIR_NAMES = [
6
- 'node_modules',
7
- 'dist',
8
- 'build',
9
- '.git',
10
- ];
11
- export const globToRegExp = (pattern) => {
12
- const escaped = pattern
13
- .replace(/\\/g, '/')
14
- .replace(/[.+^${}()|[\]\\]/g, '\\$&')
15
- .replace(/\*\*/g, '::DOUBLESTAR::')
16
- .replace(/\*/g, '[^/]*')
17
- .replace(/\?/g, '[^/]')
18
- .replace(/::DOUBLESTAR::/g, '.*');
19
- return new RegExp(`^${escaped}$`);
20
- };
21
- const normalizeOptions = (options) => typeof options === 'boolean' ? { respectGitignore: options } : options;
22
- const yieldEventLoop = () => new Promise((resolve) => {
23
- setImmediate(resolve);
24
- });
25
- const throwIfAborted = (signal) => {
26
- if (signal?.aborted) {
27
- throw new Error('aborted');
28
- }
29
- };
30
- /**
31
- * Async recursive file walk. Third arg may be `respectGitignore` boolean
32
- * (legacy) or {@link WalkFilesOptions}.
33
- */
34
- export const walkFiles = async (root, dir, options = true) => {
35
- const opts = normalizeOptions(options);
36
- const respectGitignore = opts.respectGitignore !== false;
37
- const yieldEvery = opts.yieldEvery ?? 32;
38
- const matcher = respectGitignore
39
- ? await loadGitIgnoreMatcher(root)
40
- : { ignores: () => false };
41
- const out = [];
42
- const visitedDirs = new Set();
43
- let steps = 0;
44
- const visit = async (absoluteDir) => {
45
- throwIfAborted(opts.signal);
46
- let realDir;
47
- try {
48
- realDir = await fs.realpath(absoluteDir);
49
- }
50
- catch {
51
- return;
52
- }
53
- if (visitedDirs.has(realDir)) {
54
- return;
55
- }
56
- visitedDirs.add(realDir);
57
- let entries;
58
- try {
59
- entries = await fs.readdir(absoluteDir, { withFileTypes: true });
60
- }
61
- catch {
62
- return;
63
- }
64
- for (const entry of entries) {
65
- throwIfAborted(opts.signal);
66
- steps += 1;
67
- if (steps % yieldEvery === 0) {
68
- await yieldEventLoop();
69
- throwIfAborted(opts.signal);
70
- }
71
- if (entry.isDirectory() &&
72
- WALK_EXCLUDE_DIR_NAMES.includes(entry.name)) {
73
- continue;
74
- }
75
- const absolute = path.join(absoluteDir, entry.name);
76
- const relative = path
77
- .relative(root, absolute)
78
- .split(path.sep)
79
- .join('/');
80
- if (matcher.ignores(relative, entry.isDirectory())) {
81
- continue;
82
- }
83
- if (entry.isSymbolicLink()) {
84
- continue;
85
- }
86
- if (entry.isDirectory()) {
87
- await visit(absolute);
88
- }
89
- else if (entry.isFile()) {
90
- out.push(relative);
91
- if (opts.maxFiles !== undefined &&
92
- out.length >= opts.maxFiles) {
93
- return;
94
- }
95
- }
96
- }
97
- };
98
- await visit(dir);
99
- return out;
100
- };
@@ -1,25 +0,0 @@
1
- import type { HandlerContext } from '../types.js';
2
- export declare const writeTool: {
3
- readonly id: "write";
4
- readonly registration: {
5
- readonly toolId: "write";
6
- readonly name: "write";
7
- readonly description: "Write or overwrite a file (creates parent directories). Prefer create for new-only files.";
8
- readonly inputSchema: {
9
- readonly type: "object";
10
- readonly properties: {
11
- readonly path: {
12
- readonly type: "string";
13
- readonly description: "Project-relative file path";
14
- };
15
- readonly content: {
16
- readonly type: "string";
17
- readonly description: "Full file contents";
18
- };
19
- };
20
- readonly required: readonly ["path", "content"];
21
- readonly additionalProperties: false;
22
- };
23
- };
24
- readonly invoke: (ctx: HandlerContext, args: Readonly<Record<string, unknown>>) => Promise<string>;
25
- };
@@ -1,40 +0,0 @@
1
- import fs from 'node:fs/promises';
2
- import path from 'node:path';
3
- import { resolveProjectPath } from '../../path-sandbox.js';
4
- import { asString } from '../args.js';
5
- import { fenceOptions } from '../fence.js';
6
- const invoke = async (ctx, args) => {
7
- const userPath = asString(args, 'path');
8
- const content = asString(args, 'content');
9
- if (userPath === undefined || content === undefined) {
10
- throw new Error('write requires string arguments «path» and «content».');
11
- }
12
- const absolute = resolveProjectPath(ctx.projectRoot, userPath, fenceOptions(ctx));
13
- await fs.mkdir(path.dirname(absolute), { recursive: true });
14
- await fs.writeFile(absolute, content, 'utf8');
15
- return `Wrote «${userPath}» (${content.length} chars).`;
16
- };
17
- export const writeTool = {
18
- id: 'write',
19
- registration: {
20
- toolId: 'write',
21
- name: 'write',
22
- description: 'Write or overwrite a file (creates parent directories). Prefer create for new-only files.',
23
- inputSchema: {
24
- type: 'object',
25
- properties: {
26
- path: {
27
- type: 'string',
28
- description: 'Project-relative file path',
29
- },
30
- content: {
31
- type: 'string',
32
- description: 'Full file contents',
33
- },
34
- },
35
- required: ['path', 'content'],
36
- additionalProperties: false,
37
- },
38
- },
39
- invoke,
40
- };
@@ -1,22 +0,0 @@
1
- /** Structural match for node-sdk `CrawlSavedPage`. */
2
- export type CrawlSavedPage = {
3
- readonly url: string;
4
- readonly html: string;
5
- readonly text: string;
6
- readonly title?: string;
7
- readonly savedPath: string;
8
- };
9
- /** Structural match for node-sdk `CrawlContext`. */
10
- export type CrawlContext = {
11
- readonly runId: string;
12
- readonly savePage: (page: {
13
- readonly url: string;
14
- readonly html: string;
15
- readonly text: string;
16
- readonly title?: string;
17
- }) => Promise<CrawlSavedPage>;
18
- };
19
- /**
20
- * Persist crawl pages under `<project>/.langflower/crawl/{runId}/`.
21
- */
22
- export declare const createCrawlContext: (projectDir: string, runId: string) => CrawlContext;
@@ -1,34 +0,0 @@
1
- import fs from 'node:fs/promises';
2
- import path from 'node:path';
3
- const sanitizeSegment = (value) => value.replace(/[^a-zA-Z0-9._-]+/g, '_').slice(0, 80);
4
- /**
5
- * Persist crawl pages under `<project>/.langflower/crawl/{runId}/`.
6
- */
7
- export const createCrawlContext = (projectDir, runId) => {
8
- const safeRunId = sanitizeSegment(runId || 'run');
9
- const rootDir = path.join(projectDir, '.langflower', 'crawl', safeRunId);
10
- let sequence = 0;
11
- return {
12
- runId: safeRunId,
13
- savePage: async (page) => {
14
- await fs.mkdir(rootDir, { recursive: true });
15
- sequence += 1;
16
- const stem = `${String(sequence).padStart(4, '0')}-${sanitizeSegment(page.url)}`;
17
- const fileName = `${stem}.json`;
18
- const savedPath = path.join(rootDir, fileName);
19
- const record = {
20
- url: page.url,
21
- html: page.html,
22
- text: page.text,
23
- ...(page.title !== undefined && page.title.length > 0
24
- ? { title: page.title }
25
- : {}),
26
- savedPath: path
27
- .relative(projectDir, savedPath)
28
- .replace(/\\/g, '/'),
29
- };
30
- await fs.writeFile(savedPath, `${JSON.stringify(record, null, 2)}\n`, 'utf8');
31
- return record;
32
- },
33
- };
34
- };
@@ -1,12 +0,0 @@
1
- export type MemoryContext = {
2
- readonly runId: string;
3
- readonly get: (key: string) => Promise<string | undefined>;
4
- readonly set: (key: string, value: string) => Promise<void>;
5
- readonly list: () => Promise<readonly string[]>;
6
- readonly delete: (key: string) => Promise<boolean>;
7
- };
8
- /**
9
- * Run-scoped key/value store under `.langflower/runs/{runId}/memory/`.
10
- */
11
- export declare const createMemoryContext: (projectDir: string, runId: string) => MemoryContext;
12
- //# sourceMappingURL=create-memory-context.d.ts.map
@@ -1,84 +0,0 @@
1
- import fs from 'node:fs/promises';
2
- import path from 'node:path';
3
- const sanitizeKey = (key) => {
4
- const trimmed = key.trim();
5
- if (trimmed.length === 0) {
6
- throw new Error('Memory key is required.');
7
- }
8
- if (trimmed.includes('..') ||
9
- trimmed.includes('/') ||
10
- trimmed.includes('\\')) {
11
- throw new Error(`Invalid memory key «${key}».`);
12
- }
13
- return trimmed.replace(/[^a-zA-Z0-9._-]+/g, '_').slice(0, 120);
14
- };
15
- const sanitizeRunId = (runId) => (runId || 'run').replace(/[^a-zA-Z0-9._-]+/g, '_').slice(0, 80);
16
- /**
17
- * Run-scoped key/value store under `.langflower/runs/{runId}/memory/`.
18
- */
19
- export const createMemoryContext = (projectDir, runId) => {
20
- const safeRunId = sanitizeRunId(runId);
21
- const rootDir = path.join(projectDir, '.langflower', 'runs', safeRunId, 'memory');
22
- const filePath = (key) => path.join(rootDir, `${sanitizeKey(key)}.txt`);
23
- return {
24
- runId: safeRunId,
25
- get: async (key) => {
26
- try {
27
- return await fs.readFile(filePath(key), 'utf8');
28
- }
29
- catch (error) {
30
- const code = error !== null &&
31
- typeof error === 'object' &&
32
- 'code' in error
33
- ? String(error.code)
34
- : '';
35
- if (code === 'ENOENT') {
36
- return undefined;
37
- }
38
- throw error;
39
- }
40
- },
41
- set: async (key, value) => {
42
- await fs.mkdir(rootDir, { recursive: true });
43
- await fs.writeFile(filePath(key), value, 'utf8');
44
- },
45
- list: async () => {
46
- try {
47
- const entries = await fs.readdir(rootDir);
48
- return entries
49
- .filter((name) => name.endsWith('.txt'))
50
- .map((name) => name.slice(0, -'.txt'.length))
51
- .sort((a, b) => a.localeCompare(b));
52
- }
53
- catch (error) {
54
- const code = error !== null &&
55
- typeof error === 'object' &&
56
- 'code' in error
57
- ? String(error.code)
58
- : '';
59
- if (code === 'ENOENT') {
60
- return [];
61
- }
62
- throw error;
63
- }
64
- },
65
- delete: async (key) => {
66
- try {
67
- await fs.unlink(filePath(key));
68
- return true;
69
- }
70
- catch (error) {
71
- const code = error !== null &&
72
- typeof error === 'object' &&
73
- 'code' in error
74
- ? String(error.code)
75
- : '';
76
- if (code === 'ENOENT') {
77
- return false;
78
- }
79
- throw error;
80
- }
81
- },
82
- };
83
- };
84
- //# sourceMappingURL=create-memory-context.js.map
@@ -1,19 +0,0 @@
1
- /**
2
- * Permission-free project file I/O for palette graph nodes (Text Read/Write/Append).
3
- * Author placing the node is the allow decision — no HITL ask.
4
- * Absolute paths are rejected; only project-relative paths under the fence.
5
- */
6
- export type ProjectFilesContext = {
7
- readonly read: (relativePath: string) => Promise<string>;
8
- readonly write: (relativePath: string, content: string) => Promise<void>;
9
- readonly append: (relativePath: string, content: string, delimiter: string) => Promise<void>;
10
- };
11
- export type CreateProjectFilesContextOptions = {
12
- readonly projectRoot: string;
13
- readonly denyPaths?: readonly string[];
14
- };
15
- /**
16
- * Project-root file helpers for graph nodes. Fence + deny list only —
17
- * no permission gate (unlike harness builtins).
18
- */
19
- export declare const createProjectFilesContext: (options: CreateProjectFilesContextOptions) => ProjectFilesContext;
@@ -1,75 +0,0 @@
1
- import fs from 'node:fs/promises';
2
- import path from 'node:path';
3
- import { formatNotFound, resolveProjectPath } from './path-sandbox.js';
4
- const assertProjectRelativePath = (userPath) => {
5
- const trimmed = userPath.trim();
6
- if (trimmed.length === 0) {
7
- throw new Error('Path is required.');
8
- }
9
- if (path.isAbsolute(trimmed)) {
10
- throw new Error(`Absolute paths are not allowed: «${userPath}». Use a path relative to the project root.`);
11
- }
12
- return trimmed;
13
- };
14
- const resolveRelativeUnderProject = (projectRoot, userPath, denyPaths) => {
15
- const relative = assertProjectRelativePath(userPath);
16
- return resolveProjectPath(projectRoot, relative, {
17
- ...(denyPaths !== undefined ? { denyPaths } : {}),
18
- allowedRoots: [],
19
- });
20
- };
21
- /**
22
- * Project-root file helpers for graph nodes. Fence + deny list only —
23
- * no permission gate (unlike harness builtins).
24
- */
25
- export const createProjectFilesContext = (options) => {
26
- const projectRoot = options.projectRoot;
27
- const denyPaths = options.denyPaths;
28
- const resolve = (userPath) => resolveRelativeUnderProject(projectRoot, userPath, denyPaths);
29
- return {
30
- read: async (relativePath) => {
31
- const absolute = resolve(relativePath);
32
- try {
33
- return await fs.readFile(absolute, 'utf8');
34
- }
35
- catch (error) {
36
- const code = error !== null &&
37
- typeof error === 'object' &&
38
- 'code' in error
39
- ? String(error.code)
40
- : '';
41
- if (code === 'ENOENT') {
42
- throw new Error(await formatNotFound(absolute, relativePath.trim()));
43
- }
44
- throw error;
45
- }
46
- },
47
- write: async (relativePath, content) => {
48
- const absolute = resolve(relativePath);
49
- await fs.mkdir(path.dirname(absolute), { recursive: true });
50
- await fs.writeFile(absolute, content, 'utf8');
51
- },
52
- append: async (relativePath, content, delimiter) => {
53
- const absolute = resolve(relativePath);
54
- let existing = '';
55
- try {
56
- existing = await fs.readFile(absolute, 'utf8');
57
- }
58
- catch (error) {
59
- const code = error !== null &&
60
- typeof error === 'object' &&
61
- 'code' in error
62
- ? String(error.code)
63
- : '';
64
- if (code !== 'ENOENT') {
65
- throw error;
66
- }
67
- }
68
- const next = existing.length === 0
69
- ? content
70
- : `${existing}${delimiter}${content}`;
71
- await fs.mkdir(path.dirname(absolute), { recursive: true });
72
- await fs.writeFile(absolute, next, 'utf8');
73
- },
74
- };
75
- };
@@ -1,33 +0,0 @@
1
- import type { Harness, ToolInvokeCall, ToolInvokeResult } from './harness-types.js';
2
- import { type PermissionAskRequest, type PermissionConfig, type PermissionDecision } from './permission.js';
3
- export type { Harness, ToolInvokeCall, ToolInvokeResult };
4
- export type { BuiltinToolRegistration } from './harness-types.js';
5
- export type { PermissionAskRequest, PermissionConfig };
6
- export type CreateHarnessOptions = {
7
- readonly projectRoot: string;
8
- readonly denyPaths?: readonly string[];
9
- /**
10
- * Absolute (or project-relative) directories trusted outside the project
11
- * root — e.g. an Obsidian vault (`harness.allowedRoots` in jsonc).
12
- */
13
- readonly allowedRoots?: readonly string[];
14
- /**
15
- * When false (default), bash handler refuses even after permission allow.
16
- * Server sets true and relies on {@link permission} for ask/deny.
17
- */
18
- readonly bashEnabled?: boolean;
19
- /** OpenCode-style rules from `langflower.jsonc` (merged over defaults). */
20
- readonly permission?: PermissionConfig;
21
- /**
22
- * Called when policy resolves to `ask`. Return allow/deny.
23
- * Missing callback + ask → fail closed (deny).
24
- */
25
- readonly requestPermission?: (request: PermissionAskRequest) => Promise<PermissionDecision>;
26
- };
27
- /**
28
- * Project-root sandboxed harness for Langflower **builtin** agent tools.
29
- * Domain/custom tools expose `ToolHandle.invoke` (imported from
30
- * `@langflower/tools` domain configs) — not via a hidden toolId registry here.
31
- */
32
- export declare const createProjectHarness: (options: CreateHarnessOptions) => Harness;
33
- export { BUILTIN_TOOL_IDS, isBuiltinToolId } from './builtins/catalog.js';
@@ -1,64 +0,0 @@
1
- import { BUILTIN_REGISTRATIONS, BUILTIN_TOOL_IDS, invokeBuiltin, isBuiltinToolId, } from './builtins/catalog.js';
2
- import { deniedToolResult, gateToolCall } from './gate-tool-call.js';
3
- import { DEFAULT_PERMISSION_CONFIG, permissionDetailForCall, } from './permission.js';
4
- /**
5
- * Project-root sandboxed harness for Langflower **builtin** agent tools.
6
- * Domain/custom tools expose `ToolHandle.invoke` (imported from
7
- * `@langflower/tools` domain configs) — not via a hidden toolId registry here.
8
- */
9
- export const createProjectHarness = (options) => {
10
- const ctx = {
11
- projectRoot: options.projectRoot,
12
- denyPaths: options.denyPaths ?? [],
13
- allowedRoots: options.allowedRoots ?? [],
14
- bashEnabled: options.bashEnabled === true,
15
- };
16
- const permission = {
17
- ...DEFAULT_PERMISSION_CONFIG,
18
- ...(options.permission ?? {}),
19
- };
20
- const grants = new Set();
21
- const gate = (toolId, detail) => gateToolCall({
22
- toolId,
23
- detail,
24
- grants,
25
- permission,
26
- ...(options.requestPermission !== undefined
27
- ? { requestPermission: options.requestPermission }
28
- : {}),
29
- });
30
- return {
31
- listBuiltinRegistrations: () => BUILTIN_REGISTRATIONS,
32
- authorize: async (call) => {
33
- const toolId = call.toolId.trim();
34
- const detail = permissionDetailForCall(toolId, call.args);
35
- return gate(toolId, detail);
36
- },
37
- invoke: async (call) => {
38
- const toolId = call.toolId.trim();
39
- if (!isBuiltinToolId(toolId)) {
40
- return {
41
- ok: false,
42
- text: `Unknown builtin tool «${call.toolId}». Available: ${BUILTIN_TOOL_IDS.join(', ')}. Domain/custom tools must expose registration.handler (import from @langflower/tools), not harness toolId lookup.`,
43
- };
44
- }
45
- const detail = permissionDetailForCall(toolId, call.args);
46
- const access = await gate(toolId, detail);
47
- if (access === 'deny') {
48
- return deniedToolResult(toolId, detail);
49
- }
50
- try {
51
- const invokeCtx = call.signal === undefined
52
- ? ctx
53
- : { ...ctx, signal: call.signal };
54
- const text = await invokeBuiltin(toolId, invokeCtx, call.args);
55
- return { ok: true, text };
56
- }
57
- catch (error) {
58
- const text = error instanceof Error ? error.message : String(error);
59
- return { ok: false, text };
60
- }
61
- },
62
- };
63
- };
64
- export { BUILTIN_TOOL_IDS, isBuiltinToolId } from './builtins/catalog.js';
@@ -1,27 +0,0 @@
1
- /** Options for SSRF-guarded HTTP GET (`createWebFetch`). */
2
- export type WebFetchRequest = {
3
- readonly url: string;
4
- readonly timeoutMs?: number;
5
- readonly maxBytes?: number;
6
- };
7
- /** Result of one `createWebFetch` call. */
8
- export type WebFetchResult = {
9
- readonly ok: boolean;
10
- readonly status: number;
11
- readonly url: string;
12
- readonly headers: Readonly<Record<string, string>>;
13
- readonly body: string;
14
- readonly error?: string;
15
- };
16
- export type CreateWebFetchOptions = {
17
- readonly allowedHosts?: readonly string[];
18
- /** Injected for tests; defaults to undici `fetch` with DNS pin. */
19
- readonly fetchImpl?: typeof fetch;
20
- };
21
- /**
22
- * SSRF-guarded HTTP GET for crawl / Fetch URL nodes.
23
- * Validates every redirect hop; truncates body at `maxBytes`.
24
- * Default path pins DNS via undici Agent; injected `fetchImpl` skips pin
25
- * (tests) but still runs {@link assertUrlSafeForFetch} per hop.
26
- */
27
- export declare const createWebFetch: (options?: CreateWebFetchOptions) => ((request: WebFetchRequest) => Promise<WebFetchResult>);