@openclaw/lobster 2026.7.1-beta.2 → 2026.7.1-beta.4

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 (418) hide show
  1. package/dist/index.js +18 -23
  2. package/node_modules/@clawdbot/lobster/README.md +10 -0
  3. package/node_modules/@clawdbot/lobster/dist/src/cli.js +23 -7
  4. package/node_modules/@clawdbot/lobster/dist/src/cli.js.map +1 -1
  5. package/node_modules/@clawdbot/lobster/dist/src/commands/stdlib/ask.js +28 -5
  6. package/node_modules/@clawdbot/lobster/dist/src/commands/stdlib/ask.js.map +1 -1
  7. package/node_modules/@clawdbot/lobster/dist/src/commands/stdlib/llm_invoke.js +20 -5
  8. package/node_modules/@clawdbot/lobster/dist/src/commands/stdlib/llm_invoke.js.map +1 -1
  9. package/node_modules/@clawdbot/lobster/dist/src/commands/stdlib/state.js +3 -3
  10. package/node_modules/@clawdbot/lobster/dist/src/commands/stdlib/state.js.map +1 -1
  11. package/node_modules/@clawdbot/lobster/dist/src/core/cost_tracker.js +52 -6
  12. package/node_modules/@clawdbot/lobster/dist/src/core/cost_tracker.js.map +1 -1
  13. package/node_modules/@clawdbot/lobster/dist/src/core/retry.js +7 -3
  14. package/node_modules/@clawdbot/lobster/dist/src/core/retry.js.map +1 -1
  15. package/node_modules/@clawdbot/lobster/dist/src/core/tool_runtime.js +17 -8
  16. package/node_modules/@clawdbot/lobster/dist/src/core/tool_runtime.js.map +1 -1
  17. package/node_modules/@clawdbot/lobster/dist/src/input_request.js +430 -0
  18. package/node_modules/@clawdbot/lobster/dist/src/input_request.js.map +1 -0
  19. package/node_modules/@clawdbot/lobster/dist/src/pipeline_resume_state.js +50 -4
  20. package/node_modules/@clawdbot/lobster/dist/src/pipeline_resume_state.js.map +1 -1
  21. package/node_modules/@clawdbot/lobster/dist/src/runtime.js +160 -10
  22. package/node_modules/@clawdbot/lobster/dist/src/runtime.js.map +1 -1
  23. package/node_modules/@clawdbot/lobster/dist/src/sdk/Lobster.js +105 -12
  24. package/node_modules/@clawdbot/lobster/dist/src/sdk/Lobster.js.map +1 -1
  25. package/node_modules/@clawdbot/lobster/dist/src/sdk/primitives/diff.js +7 -6
  26. package/node_modules/@clawdbot/lobster/dist/src/sdk/primitives/diff.js.map +1 -1
  27. package/node_modules/@clawdbot/lobster/dist/src/sdk/primitives/state.js +43 -2
  28. package/node_modules/@clawdbot/lobster/dist/src/sdk/primitives/state.js.map +1 -1
  29. package/node_modules/@clawdbot/lobster/dist/src/sdk/runtime.js +82 -90
  30. package/node_modules/@clawdbot/lobster/dist/src/sdk/runtime.js.map +1 -1
  31. package/node_modules/@clawdbot/lobster/dist/src/state/store.js +166 -8
  32. package/node_modules/@clawdbot/lobster/dist/src/state/store.js.map +1 -1
  33. package/node_modules/@clawdbot/lobster/dist/src/workflows/file.js +216 -28
  34. package/node_modules/@clawdbot/lobster/dist/src/workflows/file.js.map +1 -1
  35. package/node_modules/@clawdbot/lobster/dist/test/approval_id.test.js +13 -0
  36. package/node_modules/@clawdbot/lobster/dist/test/approval_id.test.js.map +1 -1
  37. package/node_modules/@clawdbot/lobster/dist/test/cost_tracker.test.js +108 -3
  38. package/node_modules/@clawdbot/lobster/dist/test/cost_tracker.test.js.map +1 -1
  39. package/node_modules/@clawdbot/lobster/dist/test/for_each.test.js +17 -0
  40. package/node_modules/@clawdbot/lobster/dist/test/for_each.test.js.map +1 -1
  41. package/node_modules/@clawdbot/lobster/dist/test/llm_task_invoke.test.js +70 -1
  42. package/node_modules/@clawdbot/lobster/dist/test/llm_task_invoke.test.js.map +1 -1
  43. package/node_modules/@clawdbot/lobster/dist/test/parallel.test.js +13 -0
  44. package/node_modules/@clawdbot/lobster/dist/test/parallel.test.js.map +1 -1
  45. package/node_modules/@clawdbot/lobster/dist/test/request_input.test.js +946 -0
  46. package/node_modules/@clawdbot/lobster/dist/test/request_input.test.js.map +1 -0
  47. package/node_modules/@clawdbot/lobster/dist/test/sdk_lobster.test.js +118 -0
  48. package/node_modules/@clawdbot/lobster/dist/test/sdk_lobster.test.js.map +1 -1
  49. package/node_modules/@clawdbot/lobster/dist/test/state.test.js +268 -1
  50. package/node_modules/@clawdbot/lobster/dist/test/state.test.js.map +1 -1
  51. package/node_modules/@clawdbot/lobster/dist/test/step_retry.test.js +46 -2
  52. package/node_modules/@clawdbot/lobster/dist/test/step_retry.test.js.map +1 -1
  53. package/node_modules/@clawdbot/lobster/dist/test/workflow_file.test.js +503 -0
  54. package/node_modules/@clawdbot/lobster/dist/test/workflow_file.test.js.map +1 -1
  55. package/node_modules/@clawdbot/lobster/package.json +15 -9
  56. package/node_modules/typebox/build/compile/validator.d.mts +2 -7
  57. package/node_modules/typebox/build/compile/validator.mjs +6 -36
  58. package/node_modules/typebox/build/error/errors.d.mts +1 -7
  59. package/node_modules/typebox/build/format/_idna.mjs +36 -6
  60. package/node_modules/typebox/build/format/_puny.mjs +4 -1
  61. package/node_modules/typebox/build/format/uuid.d.mts +2 -2
  62. package/node_modules/typebox/build/format/uuid.mjs +3 -3
  63. package/node_modules/typebox/build/guard/emit.d.mts +0 -4
  64. package/node_modules/typebox/build/guard/emit.mjs +0 -8
  65. package/node_modules/typebox/build/guard/guard.d.mts +4 -8
  66. package/node_modules/typebox/build/guard/guard.mjs +5 -13
  67. package/node_modules/typebox/build/schema/engine/boolean.d.mts +3 -3
  68. package/node_modules/typebox/build/schema/engine/boolean.mjs +4 -4
  69. package/node_modules/typebox/build/schema/engine/index.d.mts +0 -1
  70. package/node_modules/typebox/build/schema/engine/index.mjs +0 -1
  71. package/node_modules/typebox/build/schema/engine/schema.mjs +5 -10
  72. package/node_modules/typebox/build/schema/engine/type.mjs +14 -18
  73. package/node_modules/typebox/build/schema/types/dependencies.mjs +1 -1
  74. package/node_modules/typebox/build/schema/types/index.d.mts +0 -1
  75. package/node_modules/typebox/build/schema/types/index.mjs +0 -1
  76. package/node_modules/typebox/build/schema/types/schema.d.mts +1 -1
  77. package/node_modules/typebox/build/schema/types/schema.mjs +2 -2
  78. package/node_modules/typebox/build/system/locale/ar_001.mjs +0 -1
  79. package/node_modules/typebox/build/system/locale/bn_BD.mjs +0 -1
  80. package/node_modules/typebox/build/system/locale/cs_CZ.mjs +0 -1
  81. package/node_modules/typebox/build/system/locale/de_DE.mjs +0 -1
  82. package/node_modules/typebox/build/system/locale/el_GR.mjs +0 -1
  83. package/node_modules/typebox/build/system/locale/en_US.mjs +0 -1
  84. package/node_modules/typebox/build/system/locale/es_419.mjs +0 -1
  85. package/node_modules/typebox/build/system/locale/es_AR.mjs +0 -1
  86. package/node_modules/typebox/build/system/locale/es_ES.mjs +0 -1
  87. package/node_modules/typebox/build/system/locale/es_MX.mjs +0 -1
  88. package/node_modules/typebox/build/system/locale/fa_IR.mjs +0 -1
  89. package/node_modules/typebox/build/system/locale/fil_PH.mjs +0 -1
  90. package/node_modules/typebox/build/system/locale/fr_CA.mjs +0 -1
  91. package/node_modules/typebox/build/system/locale/fr_FR.mjs +0 -1
  92. package/node_modules/typebox/build/system/locale/ha_NG.mjs +0 -1
  93. package/node_modules/typebox/build/system/locale/hi_IN.mjs +0 -1
  94. package/node_modules/typebox/build/system/locale/hu_HU.mjs +0 -1
  95. package/node_modules/typebox/build/system/locale/id_ID.mjs +0 -1
  96. package/node_modules/typebox/build/system/locale/it_IT.mjs +0 -1
  97. package/node_modules/typebox/build/system/locale/ja_JP.mjs +0 -1
  98. package/node_modules/typebox/build/system/locale/ko_KR.mjs +0 -1
  99. package/node_modules/typebox/build/system/locale/ms_MY.mjs +0 -1
  100. package/node_modules/typebox/build/system/locale/nl_NL.mjs +0 -1
  101. package/node_modules/typebox/build/system/locale/pl_PL.mjs +0 -1
  102. package/node_modules/typebox/build/system/locale/pt_BR.mjs +0 -1
  103. package/node_modules/typebox/build/system/locale/pt_PT.mjs +0 -1
  104. package/node_modules/typebox/build/system/locale/ro_RO.mjs +0 -1
  105. package/node_modules/typebox/build/system/locale/ru_RU.mjs +0 -1
  106. package/node_modules/typebox/build/system/locale/sv_SE.mjs +0 -1
  107. package/node_modules/typebox/build/system/locale/sw_TZ.mjs +0 -1
  108. package/node_modules/typebox/build/system/locale/th_TH.mjs +0 -1
  109. package/node_modules/typebox/build/system/locale/tr_TR.mjs +0 -1
  110. package/node_modules/typebox/build/system/locale/uk_UA.mjs +0 -1
  111. package/node_modules/typebox/build/system/locale/ur_PK.mjs +0 -1
  112. package/node_modules/typebox/build/system/locale/vi_VN.mjs +0 -1
  113. package/node_modules/typebox/build/system/locale/yo_NG.mjs +0 -1
  114. package/node_modules/typebox/build/system/locale/zh_Hans.mjs +0 -1
  115. package/node_modules/typebox/build/system/locale/zh_Hant.mjs +0 -1
  116. package/node_modules/typebox/build/system/memory/clone.d.mts +2 -3
  117. package/node_modules/typebox/build/system/memory/clone.mjs +73 -26
  118. package/node_modules/typebox/build/system/settings/settings.d.mts +15 -0
  119. package/node_modules/typebox/build/system/settings/settings.mjs +3 -1
  120. package/node_modules/typebox/build/type/action/_add_immutable.d.mts +11 -0
  121. package/node_modules/typebox/build/type/action/_add_immutable.mjs +11 -0
  122. package/node_modules/typebox/build/type/action/_add_optional.d.mts +11 -0
  123. package/node_modules/typebox/build/type/action/_add_optional.mjs +11 -0
  124. package/node_modules/typebox/build/type/action/_add_readonly.d.mts +11 -0
  125. package/node_modules/typebox/build/type/action/_add_readonly.mjs +11 -0
  126. package/node_modules/typebox/build/type/action/_remove_immutable.d.mts +11 -0
  127. package/node_modules/typebox/build/type/action/_remove_immutable.mjs +11 -0
  128. package/node_modules/typebox/build/type/action/_remove_optional.d.mts +11 -0
  129. package/node_modules/typebox/build/type/action/_remove_optional.mjs +11 -0
  130. package/node_modules/typebox/build/type/action/_remove_readonly.d.mts +11 -0
  131. package/node_modules/typebox/build/type/action/_remove_readonly.mjs +11 -0
  132. package/node_modules/typebox/build/type/action/conditional.d.mts +2 -3
  133. package/node_modules/typebox/build/type/action/conditional.mjs +2 -1
  134. package/node_modules/typebox/build/type/action/index.d.mts +7 -4
  135. package/node_modules/typebox/build/type/action/index.mjs +7 -4
  136. package/node_modules/typebox/build/type/action/mapped.d.mts +2 -3
  137. package/node_modules/typebox/build/type/action/mapped.mjs +2 -1
  138. package/node_modules/typebox/build/type/action/module.d.mts +8 -7
  139. package/node_modules/typebox/build/type/action/module.mjs +7 -6
  140. package/node_modules/typebox/build/type/action/readonly_object.d.mts +0 -5
  141. package/node_modules/typebox/build/type/action/readonly_object.mjs +0 -5
  142. package/node_modules/typebox/build/type/action/with.d.mts +11 -0
  143. package/node_modules/typebox/build/type/action/with.mjs +11 -0
  144. package/node_modules/typebox/build/type/engine/call/distribute_arguments.mjs +1 -1
  145. package/node_modules/typebox/build/type/engine/call/instantiate.d.mts +1 -3
  146. package/node_modules/typebox/build/type/engine/call/instantiate.mjs +3 -2
  147. package/node_modules/typebox/build/type/engine/call/resolve_arguments.mjs +2 -2
  148. package/node_modules/typebox/build/type/engine/constructor_parameters/instantiate.d.mts +3 -4
  149. package/node_modules/typebox/build/type/engine/constructor_parameters/instantiate.mjs +2 -1
  150. package/node_modules/typebox/build/type/engine/cyclic/candidates.d.mts +2 -3
  151. package/node_modules/typebox/build/type/engine/cyclic/candidates.mjs +3 -6
  152. package/node_modules/typebox/build/type/engine/cyclic/check.d.mts +6 -9
  153. package/node_modules/typebox/build/type/engine/cyclic/check.mjs +10 -16
  154. package/node_modules/typebox/build/type/engine/cyclic/dependencies.d.mts +1 -4
  155. package/node_modules/typebox/build/type/engine/cyclic/dependencies.mjs +9 -15
  156. package/node_modules/typebox/build/type/engine/cyclic/extends.d.mts +1 -4
  157. package/node_modules/typebox/build/type/engine/cyclic/extends.mjs +8 -14
  158. package/node_modules/typebox/build/type/engine/cyclic/instantiate.d.mts +2 -5
  159. package/node_modules/typebox/build/type/engine/cyclic/instantiate.mjs +3 -2
  160. package/node_modules/typebox/build/type/engine/enum/index.d.mts +0 -1
  161. package/node_modules/typebox/build/type/engine/enum/index.mjs +0 -1
  162. package/node_modules/typebox/build/type/engine/evaluate/broaden.d.mts +1 -2
  163. package/node_modules/typebox/build/type/engine/evaluate/broaden.mjs +2 -6
  164. package/node_modules/typebox/build/type/engine/evaluate/composite.d.mts +10 -6
  165. package/node_modules/typebox/build/type/engine/evaluate/composite.mjs +10 -6
  166. package/node_modules/typebox/build/type/engine/evaluate/distribute.d.mts +2 -1
  167. package/node_modules/typebox/build/type/engine/evaluate/distribute.mjs +3 -3
  168. package/node_modules/typebox/build/type/engine/evaluate/evaluate.d.mts +17 -5
  169. package/node_modules/typebox/build/type/engine/evaluate/evaluate.mjs +34 -8
  170. package/node_modules/typebox/build/type/engine/exclude/operation.d.mts +5 -6
  171. package/node_modules/typebox/build/type/engine/exclude/operation.mjs +11 -12
  172. package/node_modules/typebox/build/type/engine/extract/operation.d.mts +5 -6
  173. package/node_modules/typebox/build/type/engine/extract/operation.mjs +11 -12
  174. package/node_modules/typebox/build/type/engine/immutable/instantiate_add.d.mts +10 -0
  175. package/node_modules/typebox/build/type/engine/immutable/instantiate_add.mjs +14 -0
  176. package/node_modules/typebox/build/type/engine/immutable/instantiate_remove.d.mts +10 -0
  177. package/node_modules/typebox/build/type/engine/immutable/instantiate_remove.mjs +14 -0
  178. package/node_modules/typebox/build/type/engine/index.d.mts +2 -2
  179. package/node_modules/typebox/build/type/engine/index.mjs +2 -2
  180. package/node_modules/typebox/build/type/engine/indexable/from_dependent.d.mts +5 -0
  181. package/node_modules/typebox/build/type/engine/indexable/from_dependent.mjs +8 -0
  182. package/node_modules/typebox/build/type/engine/indexable/from_enum.d.mts +3 -3
  183. package/node_modules/typebox/build/type/engine/indexable/from_enum.mjs +4 -4
  184. package/node_modules/typebox/build/type/engine/indexable/from_template_literal.d.mts +2 -2
  185. package/node_modules/typebox/build/type/engine/indexable/from_template_literal.mjs +3 -3
  186. package/node_modules/typebox/build/type/engine/indexable/from_type.d.mts +3 -1
  187. package/node_modules/typebox/build/type/engine/indexable/from_type.mjs +9 -6
  188. package/node_modules/typebox/build/type/engine/indexed/instantiate.d.mts +2 -1
  189. package/node_modules/typebox/build/type/engine/indexed/instantiate.mjs +5 -2
  190. package/node_modules/typebox/build/type/engine/instantiate.d.mts +44 -31
  191. package/node_modules/typebox/build/type/engine/instantiate.mjs +82 -83
  192. package/node_modules/typebox/build/type/engine/interface/instantiate.d.mts +3 -6
  193. package/node_modules/typebox/build/type/engine/intrinsics/from_template_literal.d.mts +2 -2
  194. package/node_modules/typebox/build/type/engine/intrinsics/from_template_literal.mjs +3 -3
  195. package/node_modules/typebox/build/type/engine/keyof/instantiate.d.mts +2 -1
  196. package/node_modules/typebox/build/type/engine/keyof/instantiate.mjs +5 -1
  197. package/node_modules/typebox/build/type/engine/mapped/mapped_operation.d.mts +4 -4
  198. package/node_modules/typebox/build/type/engine/mapped/mapped_operation.mjs +3 -3
  199. package/node_modules/typebox/build/type/engine/mapped/mapped_variants.d.mts +5 -4
  200. package/node_modules/typebox/build/type/engine/mapped/mapped_variants.mjs +10 -5
  201. package/node_modules/typebox/build/type/engine/module/instantiate.d.mts +7 -9
  202. package/node_modules/typebox/build/type/engine/module/instantiate.mjs +17 -15
  203. package/node_modules/typebox/build/type/engine/object/from_dependent.d.mts +5 -0
  204. package/node_modules/typebox/build/type/engine/object/from_dependent.mjs +8 -0
  205. package/node_modules/typebox/build/type/engine/object/from_type.d.mts +3 -1
  206. package/node_modules/typebox/build/type/engine/object/from_type.mjs +8 -5
  207. package/node_modules/typebox/build/type/engine/object/from_union.mjs +2 -2
  208. package/node_modules/typebox/build/type/engine/optional/instantiate_add.d.mts +10 -0
  209. package/node_modules/typebox/build/type/engine/optional/instantiate_add.mjs +14 -0
  210. package/node_modules/typebox/build/type/engine/optional/instantiate_remove.d.mts +10 -0
  211. package/node_modules/typebox/build/type/engine/optional/instantiate_remove.mjs +14 -0
  212. package/node_modules/typebox/build/type/engine/parameters/instantiate.d.mts +3 -4
  213. package/node_modules/typebox/build/type/engine/parameters/instantiate.mjs +2 -1
  214. package/node_modules/typebox/build/type/engine/partial/from_dependent.d.mts +5 -0
  215. package/node_modules/typebox/build/type/engine/partial/from_dependent.mjs +8 -0
  216. package/node_modules/typebox/build/type/engine/partial/from_intersect.d.mts +1 -1
  217. package/node_modules/typebox/build/type/engine/partial/from_intersect.mjs +3 -2
  218. package/node_modules/typebox/build/type/engine/partial/from_object.d.mts +2 -2
  219. package/node_modules/typebox/build/type/engine/partial/from_object.mjs +2 -2
  220. package/node_modules/typebox/build/type/engine/partial/from_type.d.mts +3 -1
  221. package/node_modules/typebox/build/type/engine/partial/from_type.mjs +7 -4
  222. package/node_modules/typebox/build/type/engine/priority/index.d.mts +1 -0
  223. package/node_modules/typebox/build/type/engine/priority/index.mjs +1 -0
  224. package/node_modules/typebox/build/type/engine/priority/priority.d.mts +20 -0
  225. package/node_modules/typebox/build/type/engine/priority/priority.mjs +28 -0
  226. package/node_modules/typebox/build/type/engine/readonly/instantiate_add.d.mts +10 -0
  227. package/node_modules/typebox/build/type/engine/readonly/instantiate_add.mjs +14 -0
  228. package/node_modules/typebox/build/type/engine/readonly/instantiate_remove.d.mts +10 -0
  229. package/node_modules/typebox/build/type/engine/readonly/instantiate_remove.mjs +14 -0
  230. package/node_modules/typebox/build/type/engine/readonly_object/from_array.d.mts +2 -2
  231. package/node_modules/typebox/build/type/engine/readonly_object/from_array.mjs +2 -2
  232. package/node_modules/typebox/build/type/engine/readonly_object/from_dependent.d.mts +5 -0
  233. package/node_modules/typebox/build/type/engine/readonly_object/from_dependent.mjs +8 -0
  234. package/node_modules/typebox/build/type/engine/readonly_object/from_intersect.d.mts +1 -1
  235. package/node_modules/typebox/build/type/engine/readonly_object/from_intersect.mjs +3 -2
  236. package/node_modules/typebox/build/type/engine/readonly_object/from_object.d.mts +2 -2
  237. package/node_modules/typebox/build/type/engine/readonly_object/from_object.mjs +2 -2
  238. package/node_modules/typebox/build/type/engine/readonly_object/from_tuple.d.mts +2 -2
  239. package/node_modules/typebox/build/type/engine/readonly_object/from_tuple.mjs +2 -2
  240. package/node_modules/typebox/build/type/engine/readonly_object/from_type.d.mts +3 -1
  241. package/node_modules/typebox/build/type/engine/readonly_object/from_type.mjs +8 -5
  242. package/node_modules/typebox/build/type/engine/record/from_key_enum.d.mts +2 -2
  243. package/node_modules/typebox/build/type/engine/record/from_key_enum.mjs +2 -2
  244. package/node_modules/typebox/build/type/engine/record/from_key_template_literal.d.mts +2 -2
  245. package/node_modules/typebox/build/type/engine/record/from_key_template_literal.mjs +2 -2
  246. package/node_modules/typebox/build/type/engine/ref/instantiate.d.mts +3 -3
  247. package/node_modules/typebox/build/type/engine/ref/instantiate.mjs +6 -6
  248. package/node_modules/typebox/build/type/engine/required/from_dependent.d.mts +5 -0
  249. package/node_modules/typebox/build/type/engine/required/from_dependent.mjs +8 -0
  250. package/node_modules/typebox/build/type/engine/required/from_intersect.d.mts +1 -1
  251. package/node_modules/typebox/build/type/engine/required/from_intersect.mjs +3 -2
  252. package/node_modules/typebox/build/type/engine/required/from_object.d.mts +2 -2
  253. package/node_modules/typebox/build/type/engine/required/from_object.mjs +2 -2
  254. package/node_modules/typebox/build/type/engine/required/from_type.d.mts +3 -1
  255. package/node_modules/typebox/build/type/engine/required/from_type.mjs +7 -4
  256. package/node_modules/typebox/build/type/engine/template_literal/decode.mjs +3 -3
  257. package/node_modules/typebox/build/type/engine/template_literal/encode.d.mts +2 -2
  258. package/node_modules/typebox/build/type/engine/template_literal/encode.mjs +6 -6
  259. package/node_modules/typebox/build/type/engine/template_literal/is_finite.mjs +1 -1
  260. package/node_modules/typebox/build/type/engine/template_literal/is_pattern.mjs +1 -0
  261. package/node_modules/typebox/build/type/engine/this/expand_this.d.mts +1 -4
  262. package/node_modules/typebox/build/type/engine/this/expand_this.mjs +7 -13
  263. package/node_modules/typebox/build/type/engine/with/instantiate.d.mts +8 -0
  264. package/node_modules/typebox/build/type/engine/{options → with}/instantiate.mjs +5 -5
  265. package/node_modules/typebox/build/type/extends/dependent.d.mts +6 -0
  266. package/node_modules/typebox/build/type/extends/dependent.mjs +6 -0
  267. package/node_modules/typebox/build/type/extends/enum.d.mts +4 -4
  268. package/node_modules/typebox/build/type/extends/enum.mjs +3 -2
  269. package/node_modules/typebox/build/type/extends/extends_left.d.mts +5 -7
  270. package/node_modules/typebox/build/type/extends/extends_left.mjs +24 -27
  271. package/node_modules/typebox/build/type/extends/extends_right.d.mts +7 -5
  272. package/node_modules/typebox/build/type/extends/extends_right.mjs +20 -15
  273. package/node_modules/typebox/build/type/extends/inference.mjs +1 -1
  274. package/node_modules/typebox/build/type/extends/object.d.mts +8 -1
  275. package/node_modules/typebox/build/type/extends/object.mjs +25 -3
  276. package/node_modules/typebox/build/type/extends/parameters.mjs +2 -2
  277. package/node_modules/typebox/build/type/extends/record.d.mts +13 -0
  278. package/node_modules/typebox/build/type/extends/record.mjs +23 -0
  279. package/node_modules/typebox/build/type/extends/template_literal.d.mts +3 -3
  280. package/node_modules/typebox/build/type/extends/template_literal.mjs +3 -3
  281. package/node_modules/typebox/build/type/extends/tuple.d.mts +3 -6
  282. package/node_modules/typebox/build/type/extends/tuple.mjs +6 -5
  283. package/node_modules/typebox/build/type/extends/union.mjs +2 -2
  284. package/node_modules/typebox/build/type/script/mapping.d.mts +84 -99
  285. package/node_modules/typebox/build/type/script/mapping.mjs +81 -85
  286. package/node_modules/typebox/build/type/script/parser.d.mts +40 -40
  287. package/node_modules/typebox/build/type/script/parser.mjs +22 -22
  288. package/node_modules/typebox/build/type/script/script.d.mts +3 -4
  289. package/node_modules/typebox/build/type/script/script.mjs +3 -2
  290. package/node_modules/typebox/build/type/script/token/internal/guard.d.mts +1 -1
  291. package/node_modules/typebox/build/type/script/token/internal/guard.mjs +1 -1
  292. package/node_modules/typebox/build/type/script/token/internal/take.mjs +1 -1
  293. package/node_modules/typebox/build/type/script/token/until.mjs +2 -2
  294. package/node_modules/typebox/build/type/types/_codec.d.mts +12 -12
  295. package/node_modules/typebox/build/type/types/_codec.mjs +0 -1
  296. package/node_modules/typebox/build/type/types/_immutable.d.mts +2 -9
  297. package/node_modules/typebox/build/type/types/_immutable.mjs +2 -10
  298. package/node_modules/typebox/build/type/types/_optional.d.mts +2 -9
  299. package/node_modules/typebox/build/type/types/_optional.mjs +2 -11
  300. package/node_modules/typebox/build/type/types/_readonly.d.mts +2 -9
  301. package/node_modules/typebox/build/type/types/_readonly.mjs +2 -10
  302. package/node_modules/typebox/build/type/types/_refine.d.mts +8 -10
  303. package/node_modules/typebox/build/type/types/_refine.mjs +1 -2
  304. package/node_modules/typebox/build/type/types/call.d.mts +3 -3
  305. package/node_modules/typebox/build/type/types/call.mjs +3 -2
  306. package/node_modules/typebox/build/type/types/deferred.d.mts +1 -0
  307. package/node_modules/typebox/build/type/types/deferred.mjs +1 -1
  308. package/node_modules/typebox/build/type/types/dependent.d.mts +17 -0
  309. package/node_modules/typebox/build/type/types/dependent.mjs +24 -0
  310. package/node_modules/typebox/build/type/types/enum.d.mts +3 -1
  311. package/node_modules/typebox/build/type/types/enum.mjs +5 -0
  312. package/node_modules/typebox/build/type/types/index.d.mts +1 -4
  313. package/node_modules/typebox/build/type/types/index.mjs +1 -4
  314. package/node_modules/typebox/build/type/types/number.d.mts +1 -1
  315. package/node_modules/typebox/build/type/types/number.mjs +1 -1
  316. package/node_modules/typebox/build/type/types/record.d.mts +13 -7
  317. package/node_modules/typebox/build/type/types/record.mjs +15 -9
  318. package/node_modules/typebox/build/type/types/static.d.mts +2 -5
  319. package/node_modules/typebox/build/typebox.d.mts +4 -8
  320. package/node_modules/typebox/build/typebox.mjs +4 -8
  321. package/node_modules/typebox/build/value/clean/clean.mjs +4 -2
  322. package/node_modules/typebox/build/value/clean/from_intersect.mjs +2 -2
  323. package/node_modules/typebox/build/value/clean/from_type.mjs +8 -10
  324. package/node_modules/typebox/build/value/clean/from_union.d.mts +1 -1
  325. package/node_modules/typebox/build/value/clean/from_union.mjs +1 -2
  326. package/node_modules/typebox/build/value/clone/clone.mjs +2 -73
  327. package/node_modules/typebox/build/value/codec/decode.mjs +4 -2
  328. package/node_modules/typebox/build/value/codec/encode.mjs +4 -2
  329. package/node_modules/typebox/build/value/codec/from_array.mjs +1 -4
  330. package/node_modules/typebox/build/value/codec/from_object.mjs +1 -4
  331. package/node_modules/typebox/build/value/codec/from_record.mjs +2 -7
  332. package/node_modules/typebox/build/value/codec/from_tuple.mjs +1 -4
  333. package/node_modules/typebox/build/value/codec/from_union.mjs +2 -3
  334. package/node_modules/typebox/build/value/convert/from_enum.mjs +3 -4
  335. package/node_modules/typebox/build/value/convert/from_template_literal.d.mts +1 -1
  336. package/node_modules/typebox/build/value/convert/from_template_literal.mjs +2 -3
  337. package/node_modules/typebox/build/value/convert/from_type.mjs +19 -21
  338. package/node_modules/typebox/build/value/create/from_enum.mjs +2 -2
  339. package/node_modules/typebox/build/value/create/from_type.mjs +23 -31
  340. package/node_modules/typebox/build/value/default/from_object.mjs +1 -1
  341. package/node_modules/typebox/build/value/default/from_type.mjs +8 -10
  342. package/node_modules/typebox/build/value/index.d.mts +0 -1
  343. package/node_modules/typebox/build/value/index.mjs +0 -1
  344. package/node_modules/typebox/build/value/repair/from_enum.mjs +2 -3
  345. package/node_modules/typebox/build/value/repair/from_type.mjs +24 -22
  346. package/node_modules/typebox/build/value/shared/union_priority_sort.d.mts +6 -2
  347. package/node_modules/typebox/build/value/shared/union_priority_sort.mjs +62 -26
  348. package/node_modules/typebox/build/value/value.d.mts +0 -1
  349. package/node_modules/typebox/build/value/value.mjs +0 -1
  350. package/node_modules/typebox/package.json +25 -25
  351. package/node_modules/typebox/readme.md +97 -80
  352. package/npm-shrinkwrap.json +12 -12
  353. package/package.json +6 -6
  354. package/node_modules/typebox/build/schema/engine/_guard.d.mts +0 -6
  355. package/node_modules/typebox/build/schema/engine/_guard.mjs +0 -26
  356. package/node_modules/typebox/build/schema/types/_guard.d.mts +0 -10
  357. package/node_modules/typebox/build/schema/types/_guard.mjs +0 -16
  358. package/node_modules/typebox/build/type/action/_optional.d.mts +0 -19
  359. package/node_modules/typebox/build/type/action/_optional.mjs +0 -40
  360. package/node_modules/typebox/build/type/action/_readonly.d.mts +0 -19
  361. package/node_modules/typebox/build/type/action/_readonly.mjs +0 -40
  362. package/node_modules/typebox/build/type/action/awaited.d.mts +0 -15
  363. package/node_modules/typebox/build/type/action/awaited.mjs +0 -15
  364. package/node_modules/typebox/build/type/action/options.d.mts +0 -11
  365. package/node_modules/typebox/build/type/action/options.mjs +0 -11
  366. package/node_modules/typebox/build/type/engine/awaited/instantiate.d.mts +0 -11
  367. package/node_modules/typebox/build/type/engine/awaited/instantiate.mjs +0 -20
  368. package/node_modules/typebox/build/type/engine/enum/enum_to_union.d.mts +0 -14
  369. package/node_modules/typebox/build/type/engine/enum/enum_to_union.mjs +0 -24
  370. package/node_modules/typebox/build/type/engine/options/index.d.mts +0 -1
  371. package/node_modules/typebox/build/type/engine/options/index.mjs +0 -1
  372. package/node_modules/typebox/build/type/engine/options/instantiate.d.mts +0 -8
  373. package/node_modules/typebox/build/type/extends/async_iterator.d.mts +0 -7
  374. package/node_modules/typebox/build/type/extends/async_iterator.mjs +0 -9
  375. package/node_modules/typebox/build/type/extends/iterator.d.mts +0 -7
  376. package/node_modules/typebox/build/type/extends/iterator.mjs +0 -9
  377. package/node_modules/typebox/build/type/extends/promise.d.mts +0 -7
  378. package/node_modules/typebox/build/type/extends/promise.mjs +0 -9
  379. package/node_modules/typebox/build/type/types/async_iterator.d.mts +0 -20
  380. package/node_modules/typebox/build/type/types/async_iterator.mjs +0 -28
  381. package/node_modules/typebox/build/type/types/base.d.mts +0 -50
  382. package/node_modules/typebox/build/type/types/base.mjs +0 -84
  383. package/node_modules/typebox/build/type/types/iterator.d.mts +0 -20
  384. package/node_modules/typebox/build/type/types/iterator.mjs +0 -28
  385. package/node_modules/typebox/build/type/types/promise.d.mts +0 -21
  386. package/node_modules/typebox/build/type/types/promise.mjs +0 -29
  387. package/node_modules/typebox/build/value/clean/from_base.d.mts +0 -2
  388. package/node_modules/typebox/build/value/clean/from_base.mjs +0 -4
  389. package/node_modules/typebox/build/value/convert/from_base.d.mts +0 -2
  390. package/node_modules/typebox/build/value/convert/from_base.mjs +0 -4
  391. package/node_modules/typebox/build/value/create/from_async_iterator.d.mts +0 -2
  392. package/node_modules/typebox/build/value/create/from_async_iterator.mjs +0 -5
  393. package/node_modules/typebox/build/value/create/from_base.d.mts +0 -2
  394. package/node_modules/typebox/build/value/create/from_base.mjs +0 -4
  395. package/node_modules/typebox/build/value/create/from_iterator.d.mts +0 -2
  396. package/node_modules/typebox/build/value/create/from_iterator.mjs +0 -5
  397. package/node_modules/typebox/build/value/create/from_promise.d.mts +0 -2
  398. package/node_modules/typebox/build/value/create/from_promise.mjs +0 -5
  399. package/node_modules/typebox/build/value/default/from_base.d.mts +0 -2
  400. package/node_modules/typebox/build/value/default/from_base.mjs +0 -5
  401. package/node_modules/typebox/build/value/mutate/error.d.mts +0 -3
  402. package/node_modules/typebox/build/value/mutate/error.mjs +0 -6
  403. package/node_modules/typebox/build/value/mutate/from_array.d.mts +0 -2
  404. package/node_modules/typebox/build/value/mutate/from_array.mjs +0 -16
  405. package/node_modules/typebox/build/value/mutate/from_object.d.mts +0 -2
  406. package/node_modules/typebox/build/value/mutate/from_object.mjs +0 -40
  407. package/node_modules/typebox/build/value/mutate/from_unknown.d.mts +0 -2
  408. package/node_modules/typebox/build/value/mutate/from_unknown.mjs +0 -7
  409. package/node_modules/typebox/build/value/mutate/from_value.d.mts +0 -2
  410. package/node_modules/typebox/build/value/mutate/from_value.mjs +0 -12
  411. package/node_modules/typebox/build/value/mutate/index.d.mts +0 -1
  412. package/node_modules/typebox/build/value/mutate/index.mjs +0 -1
  413. package/node_modules/typebox/build/value/mutate/mutate.d.mts +0 -11
  414. package/node_modules/typebox/build/value/mutate/mutate.mjs +0 -41
  415. package/node_modules/typebox/build/value/repair/from_base.d.mts +0 -2
  416. package/node_modules/typebox/build/value/repair/from_base.mjs +0 -8
  417. /package/node_modules/typebox/build/type/engine/{awaited → with}/index.d.mts +0 -0
  418. /package/node_modules/typebox/build/type/engine/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,EAAE,EAAE,GAAG,EAAE,CAAC,EAAE,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAE,IAAI,EAAE;aAC1D;SACF;KACF,CAAC;IACF,MAAM,GAAG,CAAC,SAAS,CAAC,QAAQ,EAAE,IAAI,CAAC,SAAS,CAAC,QAAQ,EAAE,IAAI,EAAE,CAAC,CAAC,EAAE,MAAM,CAAC,CAAC;IAEzE,MAAM,YAAY,GAAa,EAAE,CAAC;IAClC,MAAM,MAAM,GAAG,IAAI,WAAW,EAAE,CAAC;IACjC,MAAM,CAAC,EAAE,CAAC,MAAM,EAAE,CAAC,CAAS,EAAE,EAAE,CAAC,YAAY,CAAC,IAAI,CAAC,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,CAAC;IAElE,MAAM,eAAe,CAAC;QACpB,QAAQ;QACR,GAAG,EAAE;YACH,KAAK,EAAE,OAAO,CAAC,KAAK;YACpB,MAAM,EAAE,OAAO,CAAC,MAAM;YACtB,MAAM;YACN,GAAG,EAAE,EAAE,GAAG,OAAO,CAAC,GAAG,EAAE,iBAAiB,EAAE,QAAQ,EAAE;YACpD,IAAI,EAAE,MAAM;YACZ,MAAM,EAAE,IAAI;SACb;KACF,CAAC,CAAC;IAEH,MAAM,MAAM,GAAG,YAAY,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;IACrC,MAAM,CAAC,EAAE,CAAC,MAAM,CAAC,QAAQ,CAAC,QAAQ,CAAC,EAAE,0BAA0B,CAAC,CAAC;IACjE,MAAM,CAAC,EAAE,CAAC,MAAM,CAAC,QAAQ,CAAC,YAAY,CAAC,EAAE,0BAA0B,CAAC,CAAC;IACrE,MAAM,CAAC,EAAE,CAAC,MAAM,CAAC,QAAQ,CAAC,aAAa,CAAC,EAAE,0BAA0B,CAAC,CAAC;AACxE,CAAC,CAAC,CAAC"}
@@ -7,6 +7,13 @@ import os from "node:os";
7
7
  import { createDefaultRegistry } from "../src/commands/registry.js";
8
8
  import { runWorkflowFile } from "../src/workflows/file.js";
9
9
  import { decodeResumeToken } from "../src/resume.js";
10
+ import { readStateJson } from "../src/state/store.js";
11
+ function streamOf(items) {
12
+ return (async function* () {
13
+ for (const item of items)
14
+ yield item;
15
+ })();
16
+ }
10
17
  test("workflow file runs with approval and resume", async () => {
11
18
  const workflow = {
12
19
  name: "sample",
@@ -246,6 +253,502 @@ test("workflow file input steps pause and resume with structured responses", asy
246
253
  assert.equal(resumed.status, "ok");
247
254
  assert.deepEqual(resumed.output, [{ decision: "approve", subject: "hello" }]);
248
255
  });
256
+ test("workflow pipeline command input pauses and resumes the same pipeline step", async () => {
257
+ const schema = JSON.stringify({
258
+ type: "object",
259
+ properties: { decision: { type: "string", enum: ["approve", "reject"] } },
260
+ required: ["decision"],
261
+ });
262
+ const workflow = {
263
+ steps: [
264
+ {
265
+ id: "draft",
266
+ run: "node -e \"process.stdout.write(JSON.stringify({text:'hello'}))\"",
267
+ },
268
+ {
269
+ id: "review",
270
+ pipeline: `ask --subject-from-stdin --prompt 'Review draft?' --schema ${JSON.stringify(schema)} | pick decision`,
271
+ stdin: "$draft.json",
272
+ },
273
+ {
274
+ id: "finish",
275
+ run: 'node -e "process.stdout.write(JSON.stringify({decision:process.env.DECISION}))"',
276
+ env: {
277
+ DECISION: "$review.json.decision",
278
+ },
279
+ },
280
+ ],
281
+ };
282
+ const tmpDir = await fsp.mkdtemp(path.join(os.tmpdir(), "lobster-workflow-pipeline-input-"));
283
+ const stateDir = path.join(tmpDir, "state");
284
+ const filePath = path.join(tmpDir, "workflow.lobster");
285
+ await fsp.writeFile(filePath, JSON.stringify(workflow, null, 2), "utf8");
286
+ const env = { ...process.env, LOBSTER_STATE_DIR: stateDir };
287
+ const first = await runWorkflowFile({
288
+ filePath,
289
+ ctx: {
290
+ stdin: process.stdin,
291
+ stdout: process.stdout,
292
+ stderr: process.stderr,
293
+ env,
294
+ mode: "tool",
295
+ registry: createDefaultRegistry(),
296
+ },
297
+ });
298
+ assert.equal(first.status, "needs_input");
299
+ assert.deepEqual(first.requiresInput?.subject, { text: '{"text":"hello"}' });
300
+ const payload = decodeResumeToken(first.requiresInput?.resumeToken ?? "");
301
+ assert.equal(payload.kind, "workflow-file");
302
+ const state = (await readStateJson({ env, key: payload.stateKey }));
303
+ assert.equal(state.resumeAtIndex, 1);
304
+ assert.equal(state.inputKind, "pipeline_command");
305
+ assert.equal(state.inputStepId, "review");
306
+ assert.equal(state.pipelineInput.resumeAtIndex, 0);
307
+ assert.deepEqual(state.pipelineInput.items, [{ text: "hello" }]);
308
+ assert.deepEqual(state.pipelineInput.commandInput.pending.suspendedState, {
309
+ type: "ask",
310
+ subject: { text: '{"text":"hello"}' },
311
+ });
312
+ const resumed = await runWorkflowFile({
313
+ filePath,
314
+ ctx: {
315
+ stdin: process.stdin,
316
+ stdout: process.stdout,
317
+ stderr: process.stderr,
318
+ env,
319
+ mode: "tool",
320
+ registry: createDefaultRegistry(),
321
+ },
322
+ resume: payload,
323
+ response: { decision: "approve" },
324
+ });
325
+ assert.equal(resumed.status, "ok");
326
+ assert.deepEqual(resumed.output, [{ decision: "approve" }]);
327
+ });
328
+ test("workflow pipeline requestInput resume invariant bypasses on_error", async () => {
329
+ const schema = {
330
+ type: "object",
331
+ properties: { decision: { type: "string" } },
332
+ required: ["decision"],
333
+ };
334
+ let calls = 0;
335
+ let sideEffects = 0;
336
+ const choose = {
337
+ name: "choose",
338
+ async run({ ctx }) {
339
+ calls += 1;
340
+ if (calls > 1)
341
+ return { output: streamOf([{ skipped: true }]) };
342
+ await ctx.requestInput({ prompt: "Review?", responseSchema: schema });
343
+ return { output: streamOf([]) };
344
+ },
345
+ };
346
+ const side = {
347
+ name: "side",
348
+ async run() {
349
+ sideEffects += 1;
350
+ return { output: streamOf([{ sideEffects }]) };
351
+ },
352
+ };
353
+ const registry = {
354
+ get(name) {
355
+ return name === "choose" ? choose : name === "side" ? side : undefined;
356
+ },
357
+ list() {
358
+ return ["choose", "side"];
359
+ },
360
+ };
361
+ const workflow = {
362
+ name: "sample",
363
+ steps: [
364
+ {
365
+ id: "review",
366
+ pipeline: "choose",
367
+ on_error: "continue",
368
+ },
369
+ {
370
+ id: "side",
371
+ pipeline: "side",
372
+ },
373
+ ],
374
+ };
375
+ const tmpDir = await fsp.mkdtemp(path.join(os.tmpdir(), "lobster-workflow-pipeline-invariant-"));
376
+ const stateDir = path.join(tmpDir, "state");
377
+ const filePath = path.join(tmpDir, "workflow.lobster");
378
+ await fsp.writeFile(filePath, JSON.stringify(workflow, null, 2), "utf8");
379
+ const env = { ...process.env, LOBSTER_STATE_DIR: stateDir };
380
+ const first = await runWorkflowFile({
381
+ filePath,
382
+ ctx: {
383
+ stdin: process.stdin,
384
+ stdout: process.stdout,
385
+ stderr: process.stderr,
386
+ env,
387
+ mode: "tool",
388
+ registry,
389
+ },
390
+ });
391
+ assert.equal(first.status, "needs_input");
392
+ const payload = decodeResumeToken(first.requiresInput?.resumeToken ?? "");
393
+ assert.equal(payload.kind, "workflow-file");
394
+ await assert.rejects(runWorkflowFile({
395
+ filePath,
396
+ ctx: {
397
+ stdin: process.stdin,
398
+ stdout: process.stdout,
399
+ stderr: process.stderr,
400
+ env,
401
+ mode: "tool",
402
+ registry,
403
+ },
404
+ resume: payload,
405
+ response: { decision: "approve" },
406
+ }), /not consumed/);
407
+ assert.equal(sideEffects, 0);
408
+ await fsp.access(path.join(stateDir, `${payload.stateKey}.json`));
409
+ });
410
+ test("workflow pipeline requestInput resume rejects changed pipeline", async () => {
411
+ const schema = {
412
+ type: "object",
413
+ properties: { decision: { type: "string" } },
414
+ required: ["decision"],
415
+ };
416
+ let sideEffects = 0;
417
+ const choose = {
418
+ name: "choose",
419
+ async run({ ctx }) {
420
+ const response = await ctx.requestInput({ prompt: "Review?", responseSchema: schema });
421
+ return { output: streamOf([{ decision: response.decision }]) };
422
+ },
423
+ };
424
+ const side = {
425
+ name: "side",
426
+ async run({ input }) {
427
+ sideEffects += 1;
428
+ return { output: input };
429
+ },
430
+ };
431
+ const registry = {
432
+ get(name) {
433
+ return name === "choose" ? choose : name === "side" ? side : undefined;
434
+ },
435
+ list() {
436
+ return ["choose", "side"];
437
+ },
438
+ };
439
+ const workflow = {
440
+ name: "sample",
441
+ steps: [
442
+ {
443
+ id: "review",
444
+ pipeline: "choose | side",
445
+ },
446
+ ],
447
+ };
448
+ const tmpDir = await fsp.mkdtemp(path.join(os.tmpdir(), "lobster-workflow-pipeline-change-"));
449
+ const stateDir = path.join(tmpDir, "state");
450
+ const filePath = path.join(tmpDir, "workflow.lobster");
451
+ await fsp.writeFile(filePath, JSON.stringify(workflow, null, 2), "utf8");
452
+ const env = { ...process.env, LOBSTER_STATE_DIR: stateDir };
453
+ const first = await runWorkflowFile({
454
+ filePath,
455
+ ctx: {
456
+ stdin: process.stdin,
457
+ stdout: process.stdout,
458
+ stderr: process.stderr,
459
+ env,
460
+ mode: "tool",
461
+ registry,
462
+ },
463
+ });
464
+ assert.equal(first.status, "needs_input");
465
+ const payload = decodeResumeToken(first.requiresInput?.resumeToken ?? "");
466
+ assert.equal(payload.kind, "workflow-file");
467
+ workflow.steps[0].pipeline = "choose";
468
+ await fsp.writeFile(filePath, JSON.stringify(workflow, null, 2), "utf8");
469
+ await assert.rejects(runWorkflowFile({
470
+ filePath,
471
+ ctx: {
472
+ stdin: process.stdin,
473
+ stdout: process.stdout,
474
+ stderr: process.stderr,
475
+ env,
476
+ mode: "tool",
477
+ registry,
478
+ },
479
+ resume: payload,
480
+ response: { decision: "approve" },
481
+ }), /pipeline changed/);
482
+ assert.equal(sideEffects, 0);
483
+ await fsp.access(path.join(stateDir, `${payload.stateKey}.json`));
484
+ });
485
+ test("workflow pipeline requestInput keeps full pipeline across repeated suspensions", async () => {
486
+ const schema = {
487
+ type: "object",
488
+ properties: { decision: { type: "string" } },
489
+ required: ["decision"],
490
+ };
491
+ const produce = {
492
+ name: "produce",
493
+ async run() {
494
+ return { output: streamOf([{ id: 1 }]) };
495
+ },
496
+ };
497
+ const choose = {
498
+ name: "choose",
499
+ async run({ ctx }) {
500
+ const first = await ctx.requestInput({
501
+ prompt: "First?",
502
+ responseSchema: schema,
503
+ suspendedState: { phase: "first" },
504
+ });
505
+ const second = await ctx.requestInput({
506
+ prompt: `Second after ${first.decision}`,
507
+ responseSchema: schema,
508
+ suspendedState: { phase: "second" },
509
+ });
510
+ return { output: streamOf([{ first: first.decision, second: second.decision }]) };
511
+ },
512
+ };
513
+ const registry = {
514
+ get(name) {
515
+ return name === "produce" ? produce : name === "choose" ? choose : undefined;
516
+ },
517
+ list() {
518
+ return ["produce", "choose"];
519
+ },
520
+ };
521
+ const workflow = {
522
+ name: "sample",
523
+ steps: [
524
+ {
525
+ id: "review",
526
+ pipeline: "produce | choose",
527
+ },
528
+ ],
529
+ };
530
+ const tmpDir = await fsp.mkdtemp(path.join(os.tmpdir(), "lobster-workflow-pipeline-repeat-"));
531
+ const stateDir = path.join(tmpDir, "state");
532
+ const filePath = path.join(tmpDir, "workflow.lobster");
533
+ await fsp.writeFile(filePath, JSON.stringify(workflow, null, 2), "utf8");
534
+ const env = { ...process.env, LOBSTER_STATE_DIR: stateDir };
535
+ const first = await runWorkflowFile({
536
+ filePath,
537
+ ctx: {
538
+ stdin: process.stdin,
539
+ stdout: process.stdout,
540
+ stderr: process.stderr,
541
+ env,
542
+ mode: "tool",
543
+ registry,
544
+ },
545
+ });
546
+ assert.equal(first.status, "needs_input");
547
+ const firstPayload = decodeResumeToken(first.requiresInput?.resumeToken ?? "");
548
+ assert.equal(firstPayload.kind, "workflow-file");
549
+ const second = await runWorkflowFile({
550
+ filePath,
551
+ ctx: {
552
+ stdin: process.stdin,
553
+ stdout: process.stdout,
554
+ stderr: process.stderr,
555
+ env,
556
+ mode: "tool",
557
+ registry,
558
+ },
559
+ resume: firstPayload,
560
+ response: { decision: "approve" },
561
+ });
562
+ assert.equal(second.status, "needs_input");
563
+ const secondPayload = decodeResumeToken(second.requiresInput?.resumeToken ?? "");
564
+ assert.equal(secondPayload.kind, "workflow-file");
565
+ const state = (await readStateJson({ env, key: secondPayload.stateKey }));
566
+ assert.equal(state.pipelineInput.resumeAtIndex, 1);
567
+ assert.equal(state.pipelineInput.pipeline.length, 2);
568
+ const done = await runWorkflowFile({
569
+ filePath,
570
+ ctx: {
571
+ stdin: process.stdin,
572
+ stdout: process.stdout,
573
+ stderr: process.stderr,
574
+ env,
575
+ mode: "tool",
576
+ registry,
577
+ },
578
+ resume: secondPayload,
579
+ response: { decision: "ship" },
580
+ });
581
+ assert.equal(done.status, "ok");
582
+ assert.deepEqual(done.output, [{ first: "approve", second: "ship" }]);
583
+ });
584
+ test("workflow pipeline requestInput resume rejects condition bypass", async () => {
585
+ const schema = {
586
+ type: "object",
587
+ properties: { decision: { type: "string" } },
588
+ required: ["decision"],
589
+ };
590
+ let sideEffects = 0;
591
+ const choose = {
592
+ name: "choose",
593
+ async run({ ctx }) {
594
+ const response = await ctx.requestInput({ prompt: "Review?", responseSchema: schema });
595
+ return { output: streamOf([{ decision: response.decision }]) };
596
+ },
597
+ };
598
+ const side = {
599
+ name: "side",
600
+ async run() {
601
+ sideEffects += 1;
602
+ return { output: streamOf([{ sideEffects }]) };
603
+ },
604
+ };
605
+ const registry = {
606
+ get(name) {
607
+ return name === "choose" ? choose : name === "side" ? side : undefined;
608
+ },
609
+ list() {
610
+ return ["choose", "side"];
611
+ },
612
+ };
613
+ const workflow = {
614
+ name: "sample",
615
+ steps: [
616
+ {
617
+ id: "gate",
618
+ run: 'node -e "process.stdout.write(JSON.stringify({ok:true}))"',
619
+ },
620
+ {
621
+ id: "review",
622
+ pipeline: "choose",
623
+ condition: "$gate.json.ok",
624
+ },
625
+ {
626
+ id: "side",
627
+ pipeline: "side",
628
+ },
629
+ ],
630
+ };
631
+ const tmpDir = await fsp.mkdtemp(path.join(os.tmpdir(), "lobster-workflow-pipeline-condition-"));
632
+ const stateDir = path.join(tmpDir, "state");
633
+ const filePath = path.join(tmpDir, "workflow.lobster");
634
+ await fsp.writeFile(filePath, JSON.stringify(workflow, null, 2), "utf8");
635
+ const env = { ...process.env, LOBSTER_STATE_DIR: stateDir };
636
+ const first = await runWorkflowFile({
637
+ filePath,
638
+ ctx: {
639
+ stdin: process.stdin,
640
+ stdout: process.stdout,
641
+ stderr: process.stderr,
642
+ env,
643
+ mode: "tool",
644
+ registry,
645
+ },
646
+ });
647
+ assert.equal(first.status, "needs_input");
648
+ const payload = decodeResumeToken(first.requiresInput?.resumeToken ?? "");
649
+ assert.equal(payload.kind, "workflow-file");
650
+ workflow.steps[1].condition = "$gate.json.missing";
651
+ await fsp.writeFile(filePath, JSON.stringify(workflow, null, 2), "utf8");
652
+ await assert.rejects(runWorkflowFile({
653
+ filePath,
654
+ ctx: {
655
+ stdin: process.stdin,
656
+ stdout: process.stdout,
657
+ stderr: process.stderr,
658
+ env,
659
+ mode: "tool",
660
+ registry,
661
+ },
662
+ resume: payload,
663
+ response: { decision: "approve" },
664
+ }), /condition changed/);
665
+ assert.equal(sideEffects, 0);
666
+ await fsp.access(path.join(stateDir, `${payload.stateKey}.json`));
667
+ });
668
+ test("workflow pipeline command input preserves replayable stdin without suspended state", async () => {
669
+ const schema = {
670
+ type: "object",
671
+ properties: { decision: { type: "string" } },
672
+ required: ["decision"],
673
+ };
674
+ const reviewCommand = {
675
+ name: "review_input",
676
+ async run({ input, ctx }) {
677
+ const response = await ctx.requestInput({ prompt: "Review?", responseSchema: schema });
678
+ const items = [];
679
+ for await (const item of input)
680
+ items.push(item);
681
+ return { output: streamOf([{ items, decision: response.decision }]) };
682
+ },
683
+ };
684
+ const registry = {
685
+ get(name) {
686
+ return name === reviewCommand.name ? reviewCommand : undefined;
687
+ },
688
+ list() {
689
+ return [reviewCommand.name];
690
+ },
691
+ };
692
+ async function runCase({ sourceStep, stdin, prefix, }) {
693
+ const steps = [
694
+ ...(sourceStep ? [sourceStep] : []),
695
+ {
696
+ id: "review",
697
+ pipeline: "review_input",
698
+ ...(stdin ? { stdin } : null),
699
+ },
700
+ ];
701
+ const tmpDir = await fsp.mkdtemp(path.join(os.tmpdir(), prefix));
702
+ const stateDir = path.join(tmpDir, "state");
703
+ const filePath = path.join(tmpDir, "workflow.lobster");
704
+ await fsp.writeFile(filePath, JSON.stringify({ name: "sample", steps }, null, 2), "utf8");
705
+ const env = { ...process.env, LOBSTER_STATE_DIR: stateDir };
706
+ const first = await runWorkflowFile({
707
+ filePath,
708
+ ctx: {
709
+ stdin: process.stdin,
710
+ stdout: process.stdout,
711
+ stderr: process.stderr,
712
+ env,
713
+ mode: "tool",
714
+ registry,
715
+ },
716
+ });
717
+ assert.equal(first.status, "needs_input");
718
+ const payload = decodeResumeToken(first.requiresInput?.resumeToken ?? "");
719
+ assert.equal(payload.kind, "workflow-file");
720
+ const state = (await readStateJson({ env, key: payload.stateKey }));
721
+ const resumed = await runWorkflowFile({
722
+ filePath,
723
+ ctx: {
724
+ stdin: process.stdin,
725
+ stdout: process.stdout,
726
+ stderr: process.stderr,
727
+ env,
728
+ mode: "tool",
729
+ registry,
730
+ },
731
+ resume: payload,
732
+ response: { decision: "approve" },
733
+ });
734
+ return { state, resumed };
735
+ }
736
+ const noStdin = await runCase({ prefix: "lobster-workflow-pipeline-no-stdin-" });
737
+ assert.deepEqual(noStdin.state.pipelineInput.items, []);
738
+ assert.equal(noStdin.resumed.status, "ok");
739
+ assert.deepEqual(noStdin.resumed.output, [{ items: [], decision: "approve" }]);
740
+ const withArrayStdin = await runCase({
741
+ prefix: "lobster-workflow-pipeline-array-stdin-",
742
+ sourceStep: {
743
+ id: "draft",
744
+ run: 'node -e "process.stdout.write(JSON.stringify([{id:1}]))"',
745
+ },
746
+ stdin: "$draft.json",
747
+ });
748
+ assert.deepEqual(withArrayStdin.state.pipelineInput.items, [{ id: 1 }]);
749
+ assert.equal(withArrayStdin.resumed.status, "ok");
750
+ assert.deepEqual(withArrayStdin.resumed.output, [{ items: [{ id: 1 }], decision: "approve" }]);
751
+ });
249
752
  test("workflow input resumes preserve the full subject even when the tool envelope preview is truncated", async () => {
250
753
  const longText = "x".repeat(250_000);
251
754
  const workflow = {