@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.
- package/dist/index.js +18 -23
- package/node_modules/@clawdbot/lobster/README.md +10 -0
- package/node_modules/@clawdbot/lobster/dist/src/cli.js +23 -7
- package/node_modules/@clawdbot/lobster/dist/src/cli.js.map +1 -1
- package/node_modules/@clawdbot/lobster/dist/src/commands/stdlib/ask.js +28 -5
- package/node_modules/@clawdbot/lobster/dist/src/commands/stdlib/ask.js.map +1 -1
- package/node_modules/@clawdbot/lobster/dist/src/commands/stdlib/llm_invoke.js +20 -5
- package/node_modules/@clawdbot/lobster/dist/src/commands/stdlib/llm_invoke.js.map +1 -1
- package/node_modules/@clawdbot/lobster/dist/src/commands/stdlib/state.js +3 -3
- package/node_modules/@clawdbot/lobster/dist/src/commands/stdlib/state.js.map +1 -1
- package/node_modules/@clawdbot/lobster/dist/src/core/cost_tracker.js +52 -6
- package/node_modules/@clawdbot/lobster/dist/src/core/cost_tracker.js.map +1 -1
- package/node_modules/@clawdbot/lobster/dist/src/core/retry.js +7 -3
- package/node_modules/@clawdbot/lobster/dist/src/core/retry.js.map +1 -1
- package/node_modules/@clawdbot/lobster/dist/src/core/tool_runtime.js +17 -8
- package/node_modules/@clawdbot/lobster/dist/src/core/tool_runtime.js.map +1 -1
- package/node_modules/@clawdbot/lobster/dist/src/input_request.js +430 -0
- package/node_modules/@clawdbot/lobster/dist/src/input_request.js.map +1 -0
- package/node_modules/@clawdbot/lobster/dist/src/pipeline_resume_state.js +50 -4
- package/node_modules/@clawdbot/lobster/dist/src/pipeline_resume_state.js.map +1 -1
- package/node_modules/@clawdbot/lobster/dist/src/runtime.js +160 -10
- package/node_modules/@clawdbot/lobster/dist/src/runtime.js.map +1 -1
- package/node_modules/@clawdbot/lobster/dist/src/sdk/Lobster.js +105 -12
- package/node_modules/@clawdbot/lobster/dist/src/sdk/Lobster.js.map +1 -1
- package/node_modules/@clawdbot/lobster/dist/src/sdk/primitives/diff.js +7 -6
- package/node_modules/@clawdbot/lobster/dist/src/sdk/primitives/diff.js.map +1 -1
- package/node_modules/@clawdbot/lobster/dist/src/sdk/primitives/state.js +43 -2
- package/node_modules/@clawdbot/lobster/dist/src/sdk/primitives/state.js.map +1 -1
- package/node_modules/@clawdbot/lobster/dist/src/sdk/runtime.js +82 -90
- package/node_modules/@clawdbot/lobster/dist/src/sdk/runtime.js.map +1 -1
- package/node_modules/@clawdbot/lobster/dist/src/state/store.js +166 -8
- package/node_modules/@clawdbot/lobster/dist/src/state/store.js.map +1 -1
- package/node_modules/@clawdbot/lobster/dist/src/workflows/file.js +216 -28
- package/node_modules/@clawdbot/lobster/dist/src/workflows/file.js.map +1 -1
- package/node_modules/@clawdbot/lobster/dist/test/approval_id.test.js +13 -0
- package/node_modules/@clawdbot/lobster/dist/test/approval_id.test.js.map +1 -1
- package/node_modules/@clawdbot/lobster/dist/test/cost_tracker.test.js +108 -3
- package/node_modules/@clawdbot/lobster/dist/test/cost_tracker.test.js.map +1 -1
- package/node_modules/@clawdbot/lobster/dist/test/for_each.test.js +17 -0
- package/node_modules/@clawdbot/lobster/dist/test/for_each.test.js.map +1 -1
- package/node_modules/@clawdbot/lobster/dist/test/llm_task_invoke.test.js +70 -1
- package/node_modules/@clawdbot/lobster/dist/test/llm_task_invoke.test.js.map +1 -1
- package/node_modules/@clawdbot/lobster/dist/test/parallel.test.js +13 -0
- package/node_modules/@clawdbot/lobster/dist/test/parallel.test.js.map +1 -1
- package/node_modules/@clawdbot/lobster/dist/test/request_input.test.js +946 -0
- package/node_modules/@clawdbot/lobster/dist/test/request_input.test.js.map +1 -0
- package/node_modules/@clawdbot/lobster/dist/test/sdk_lobster.test.js +118 -0
- package/node_modules/@clawdbot/lobster/dist/test/sdk_lobster.test.js.map +1 -1
- package/node_modules/@clawdbot/lobster/dist/test/state.test.js +268 -1
- package/node_modules/@clawdbot/lobster/dist/test/state.test.js.map +1 -1
- package/node_modules/@clawdbot/lobster/dist/test/step_retry.test.js +46 -2
- package/node_modules/@clawdbot/lobster/dist/test/step_retry.test.js.map +1 -1
- package/node_modules/@clawdbot/lobster/dist/test/workflow_file.test.js +503 -0
- package/node_modules/@clawdbot/lobster/dist/test/workflow_file.test.js.map +1 -1
- package/node_modules/@clawdbot/lobster/package.json +15 -9
- package/node_modules/typebox/build/compile/validator.d.mts +2 -7
- package/node_modules/typebox/build/compile/validator.mjs +6 -36
- package/node_modules/typebox/build/error/errors.d.mts +1 -7
- package/node_modules/typebox/build/format/_idna.mjs +36 -6
- package/node_modules/typebox/build/format/_puny.mjs +4 -1
- package/node_modules/typebox/build/format/uuid.d.mts +2 -2
- package/node_modules/typebox/build/format/uuid.mjs +3 -3
- package/node_modules/typebox/build/guard/emit.d.mts +0 -4
- package/node_modules/typebox/build/guard/emit.mjs +0 -8
- package/node_modules/typebox/build/guard/guard.d.mts +4 -8
- package/node_modules/typebox/build/guard/guard.mjs +5 -13
- package/node_modules/typebox/build/schema/engine/boolean.d.mts +3 -3
- package/node_modules/typebox/build/schema/engine/boolean.mjs +4 -4
- package/node_modules/typebox/build/schema/engine/index.d.mts +0 -1
- package/node_modules/typebox/build/schema/engine/index.mjs +0 -1
- package/node_modules/typebox/build/schema/engine/schema.mjs +5 -10
- package/node_modules/typebox/build/schema/engine/type.mjs +14 -18
- package/node_modules/typebox/build/schema/types/dependencies.mjs +1 -1
- package/node_modules/typebox/build/schema/types/index.d.mts +0 -1
- package/node_modules/typebox/build/schema/types/index.mjs +0 -1
- package/node_modules/typebox/build/schema/types/schema.d.mts +1 -1
- package/node_modules/typebox/build/schema/types/schema.mjs +2 -2
- package/node_modules/typebox/build/system/locale/ar_001.mjs +0 -1
- package/node_modules/typebox/build/system/locale/bn_BD.mjs +0 -1
- package/node_modules/typebox/build/system/locale/cs_CZ.mjs +0 -1
- package/node_modules/typebox/build/system/locale/de_DE.mjs +0 -1
- package/node_modules/typebox/build/system/locale/el_GR.mjs +0 -1
- package/node_modules/typebox/build/system/locale/en_US.mjs +0 -1
- package/node_modules/typebox/build/system/locale/es_419.mjs +0 -1
- package/node_modules/typebox/build/system/locale/es_AR.mjs +0 -1
- package/node_modules/typebox/build/system/locale/es_ES.mjs +0 -1
- package/node_modules/typebox/build/system/locale/es_MX.mjs +0 -1
- package/node_modules/typebox/build/system/locale/fa_IR.mjs +0 -1
- package/node_modules/typebox/build/system/locale/fil_PH.mjs +0 -1
- package/node_modules/typebox/build/system/locale/fr_CA.mjs +0 -1
- package/node_modules/typebox/build/system/locale/fr_FR.mjs +0 -1
- package/node_modules/typebox/build/system/locale/ha_NG.mjs +0 -1
- package/node_modules/typebox/build/system/locale/hi_IN.mjs +0 -1
- package/node_modules/typebox/build/system/locale/hu_HU.mjs +0 -1
- package/node_modules/typebox/build/system/locale/id_ID.mjs +0 -1
- package/node_modules/typebox/build/system/locale/it_IT.mjs +0 -1
- package/node_modules/typebox/build/system/locale/ja_JP.mjs +0 -1
- package/node_modules/typebox/build/system/locale/ko_KR.mjs +0 -1
- package/node_modules/typebox/build/system/locale/ms_MY.mjs +0 -1
- package/node_modules/typebox/build/system/locale/nl_NL.mjs +0 -1
- package/node_modules/typebox/build/system/locale/pl_PL.mjs +0 -1
- package/node_modules/typebox/build/system/locale/pt_BR.mjs +0 -1
- package/node_modules/typebox/build/system/locale/pt_PT.mjs +0 -1
- package/node_modules/typebox/build/system/locale/ro_RO.mjs +0 -1
- package/node_modules/typebox/build/system/locale/ru_RU.mjs +0 -1
- package/node_modules/typebox/build/system/locale/sv_SE.mjs +0 -1
- package/node_modules/typebox/build/system/locale/sw_TZ.mjs +0 -1
- package/node_modules/typebox/build/system/locale/th_TH.mjs +0 -1
- package/node_modules/typebox/build/system/locale/tr_TR.mjs +0 -1
- package/node_modules/typebox/build/system/locale/uk_UA.mjs +0 -1
- package/node_modules/typebox/build/system/locale/ur_PK.mjs +0 -1
- package/node_modules/typebox/build/system/locale/vi_VN.mjs +0 -1
- package/node_modules/typebox/build/system/locale/yo_NG.mjs +0 -1
- package/node_modules/typebox/build/system/locale/zh_Hans.mjs +0 -1
- package/node_modules/typebox/build/system/locale/zh_Hant.mjs +0 -1
- package/node_modules/typebox/build/system/memory/clone.d.mts +2 -3
- package/node_modules/typebox/build/system/memory/clone.mjs +73 -26
- package/node_modules/typebox/build/system/settings/settings.d.mts +15 -0
- package/node_modules/typebox/build/system/settings/settings.mjs +3 -1
- package/node_modules/typebox/build/type/action/_add_immutable.d.mts +11 -0
- package/node_modules/typebox/build/type/action/_add_immutable.mjs +11 -0
- package/node_modules/typebox/build/type/action/_add_optional.d.mts +11 -0
- package/node_modules/typebox/build/type/action/_add_optional.mjs +11 -0
- package/node_modules/typebox/build/type/action/_add_readonly.d.mts +11 -0
- package/node_modules/typebox/build/type/action/_add_readonly.mjs +11 -0
- package/node_modules/typebox/build/type/action/_remove_immutable.d.mts +11 -0
- package/node_modules/typebox/build/type/action/_remove_immutable.mjs +11 -0
- package/node_modules/typebox/build/type/action/_remove_optional.d.mts +11 -0
- package/node_modules/typebox/build/type/action/_remove_optional.mjs +11 -0
- package/node_modules/typebox/build/type/action/_remove_readonly.d.mts +11 -0
- package/node_modules/typebox/build/type/action/_remove_readonly.mjs +11 -0
- package/node_modules/typebox/build/type/action/conditional.d.mts +2 -3
- package/node_modules/typebox/build/type/action/conditional.mjs +2 -1
- package/node_modules/typebox/build/type/action/index.d.mts +7 -4
- package/node_modules/typebox/build/type/action/index.mjs +7 -4
- package/node_modules/typebox/build/type/action/mapped.d.mts +2 -3
- package/node_modules/typebox/build/type/action/mapped.mjs +2 -1
- package/node_modules/typebox/build/type/action/module.d.mts +8 -7
- package/node_modules/typebox/build/type/action/module.mjs +7 -6
- package/node_modules/typebox/build/type/action/readonly_object.d.mts +0 -5
- package/node_modules/typebox/build/type/action/readonly_object.mjs +0 -5
- package/node_modules/typebox/build/type/action/with.d.mts +11 -0
- package/node_modules/typebox/build/type/action/with.mjs +11 -0
- package/node_modules/typebox/build/type/engine/call/distribute_arguments.mjs +1 -1
- package/node_modules/typebox/build/type/engine/call/instantiate.d.mts +1 -3
- package/node_modules/typebox/build/type/engine/call/instantiate.mjs +3 -2
- package/node_modules/typebox/build/type/engine/call/resolve_arguments.mjs +2 -2
- package/node_modules/typebox/build/type/engine/constructor_parameters/instantiate.d.mts +3 -4
- package/node_modules/typebox/build/type/engine/constructor_parameters/instantiate.mjs +2 -1
- package/node_modules/typebox/build/type/engine/cyclic/candidates.d.mts +2 -3
- package/node_modules/typebox/build/type/engine/cyclic/candidates.mjs +3 -6
- package/node_modules/typebox/build/type/engine/cyclic/check.d.mts +6 -9
- package/node_modules/typebox/build/type/engine/cyclic/check.mjs +10 -16
- package/node_modules/typebox/build/type/engine/cyclic/dependencies.d.mts +1 -4
- package/node_modules/typebox/build/type/engine/cyclic/dependencies.mjs +9 -15
- package/node_modules/typebox/build/type/engine/cyclic/extends.d.mts +1 -4
- package/node_modules/typebox/build/type/engine/cyclic/extends.mjs +8 -14
- package/node_modules/typebox/build/type/engine/cyclic/instantiate.d.mts +2 -5
- package/node_modules/typebox/build/type/engine/cyclic/instantiate.mjs +3 -2
- package/node_modules/typebox/build/type/engine/enum/index.d.mts +0 -1
- package/node_modules/typebox/build/type/engine/enum/index.mjs +0 -1
- package/node_modules/typebox/build/type/engine/evaluate/broaden.d.mts +1 -2
- package/node_modules/typebox/build/type/engine/evaluate/broaden.mjs +2 -6
- package/node_modules/typebox/build/type/engine/evaluate/composite.d.mts +10 -6
- package/node_modules/typebox/build/type/engine/evaluate/composite.mjs +10 -6
- package/node_modules/typebox/build/type/engine/evaluate/distribute.d.mts +2 -1
- package/node_modules/typebox/build/type/engine/evaluate/distribute.mjs +3 -3
- package/node_modules/typebox/build/type/engine/evaluate/evaluate.d.mts +17 -5
- package/node_modules/typebox/build/type/engine/evaluate/evaluate.mjs +34 -8
- package/node_modules/typebox/build/type/engine/exclude/operation.d.mts +5 -6
- package/node_modules/typebox/build/type/engine/exclude/operation.mjs +11 -12
- package/node_modules/typebox/build/type/engine/extract/operation.d.mts +5 -6
- package/node_modules/typebox/build/type/engine/extract/operation.mjs +11 -12
- package/node_modules/typebox/build/type/engine/immutable/instantiate_add.d.mts +10 -0
- package/node_modules/typebox/build/type/engine/immutable/instantiate_add.mjs +14 -0
- package/node_modules/typebox/build/type/engine/immutable/instantiate_remove.d.mts +10 -0
- package/node_modules/typebox/build/type/engine/immutable/instantiate_remove.mjs +14 -0
- package/node_modules/typebox/build/type/engine/index.d.mts +2 -2
- package/node_modules/typebox/build/type/engine/index.mjs +2 -2
- package/node_modules/typebox/build/type/engine/indexable/from_dependent.d.mts +5 -0
- package/node_modules/typebox/build/type/engine/indexable/from_dependent.mjs +8 -0
- package/node_modules/typebox/build/type/engine/indexable/from_enum.d.mts +3 -3
- package/node_modules/typebox/build/type/engine/indexable/from_enum.mjs +4 -4
- package/node_modules/typebox/build/type/engine/indexable/from_template_literal.d.mts +2 -2
- package/node_modules/typebox/build/type/engine/indexable/from_template_literal.mjs +3 -3
- package/node_modules/typebox/build/type/engine/indexable/from_type.d.mts +3 -1
- package/node_modules/typebox/build/type/engine/indexable/from_type.mjs +9 -6
- package/node_modules/typebox/build/type/engine/indexed/instantiate.d.mts +2 -1
- package/node_modules/typebox/build/type/engine/indexed/instantiate.mjs +5 -2
- package/node_modules/typebox/build/type/engine/instantiate.d.mts +44 -31
- package/node_modules/typebox/build/type/engine/instantiate.mjs +82 -83
- package/node_modules/typebox/build/type/engine/interface/instantiate.d.mts +3 -6
- package/node_modules/typebox/build/type/engine/intrinsics/from_template_literal.d.mts +2 -2
- package/node_modules/typebox/build/type/engine/intrinsics/from_template_literal.mjs +3 -3
- package/node_modules/typebox/build/type/engine/keyof/instantiate.d.mts +2 -1
- package/node_modules/typebox/build/type/engine/keyof/instantiate.mjs +5 -1
- package/node_modules/typebox/build/type/engine/mapped/mapped_operation.d.mts +4 -4
- package/node_modules/typebox/build/type/engine/mapped/mapped_operation.mjs +3 -3
- package/node_modules/typebox/build/type/engine/mapped/mapped_variants.d.mts +5 -4
- package/node_modules/typebox/build/type/engine/mapped/mapped_variants.mjs +10 -5
- package/node_modules/typebox/build/type/engine/module/instantiate.d.mts +7 -9
- package/node_modules/typebox/build/type/engine/module/instantiate.mjs +17 -15
- package/node_modules/typebox/build/type/engine/object/from_dependent.d.mts +5 -0
- package/node_modules/typebox/build/type/engine/object/from_dependent.mjs +8 -0
- package/node_modules/typebox/build/type/engine/object/from_type.d.mts +3 -1
- package/node_modules/typebox/build/type/engine/object/from_type.mjs +8 -5
- package/node_modules/typebox/build/type/engine/object/from_union.mjs +2 -2
- package/node_modules/typebox/build/type/engine/optional/instantiate_add.d.mts +10 -0
- package/node_modules/typebox/build/type/engine/optional/instantiate_add.mjs +14 -0
- package/node_modules/typebox/build/type/engine/optional/instantiate_remove.d.mts +10 -0
- package/node_modules/typebox/build/type/engine/optional/instantiate_remove.mjs +14 -0
- package/node_modules/typebox/build/type/engine/parameters/instantiate.d.mts +3 -4
- package/node_modules/typebox/build/type/engine/parameters/instantiate.mjs +2 -1
- package/node_modules/typebox/build/type/engine/partial/from_dependent.d.mts +5 -0
- package/node_modules/typebox/build/type/engine/partial/from_dependent.mjs +8 -0
- package/node_modules/typebox/build/type/engine/partial/from_intersect.d.mts +1 -1
- package/node_modules/typebox/build/type/engine/partial/from_intersect.mjs +3 -2
- package/node_modules/typebox/build/type/engine/partial/from_object.d.mts +2 -2
- package/node_modules/typebox/build/type/engine/partial/from_object.mjs +2 -2
- package/node_modules/typebox/build/type/engine/partial/from_type.d.mts +3 -1
- package/node_modules/typebox/build/type/engine/partial/from_type.mjs +7 -4
- package/node_modules/typebox/build/type/engine/priority/index.d.mts +1 -0
- package/node_modules/typebox/build/type/engine/priority/index.mjs +1 -0
- package/node_modules/typebox/build/type/engine/priority/priority.d.mts +20 -0
- package/node_modules/typebox/build/type/engine/priority/priority.mjs +28 -0
- package/node_modules/typebox/build/type/engine/readonly/instantiate_add.d.mts +10 -0
- package/node_modules/typebox/build/type/engine/readonly/instantiate_add.mjs +14 -0
- package/node_modules/typebox/build/type/engine/readonly/instantiate_remove.d.mts +10 -0
- package/node_modules/typebox/build/type/engine/readonly/instantiate_remove.mjs +14 -0
- package/node_modules/typebox/build/type/engine/readonly_object/from_array.d.mts +2 -2
- package/node_modules/typebox/build/type/engine/readonly_object/from_array.mjs +2 -2
- package/node_modules/typebox/build/type/engine/readonly_object/from_dependent.d.mts +5 -0
- package/node_modules/typebox/build/type/engine/readonly_object/from_dependent.mjs +8 -0
- package/node_modules/typebox/build/type/engine/readonly_object/from_intersect.d.mts +1 -1
- package/node_modules/typebox/build/type/engine/readonly_object/from_intersect.mjs +3 -2
- package/node_modules/typebox/build/type/engine/readonly_object/from_object.d.mts +2 -2
- package/node_modules/typebox/build/type/engine/readonly_object/from_object.mjs +2 -2
- package/node_modules/typebox/build/type/engine/readonly_object/from_tuple.d.mts +2 -2
- package/node_modules/typebox/build/type/engine/readonly_object/from_tuple.mjs +2 -2
- package/node_modules/typebox/build/type/engine/readonly_object/from_type.d.mts +3 -1
- package/node_modules/typebox/build/type/engine/readonly_object/from_type.mjs +8 -5
- package/node_modules/typebox/build/type/engine/record/from_key_enum.d.mts +2 -2
- package/node_modules/typebox/build/type/engine/record/from_key_enum.mjs +2 -2
- package/node_modules/typebox/build/type/engine/record/from_key_template_literal.d.mts +2 -2
- package/node_modules/typebox/build/type/engine/record/from_key_template_literal.mjs +2 -2
- package/node_modules/typebox/build/type/engine/ref/instantiate.d.mts +3 -3
- package/node_modules/typebox/build/type/engine/ref/instantiate.mjs +6 -6
- package/node_modules/typebox/build/type/engine/required/from_dependent.d.mts +5 -0
- package/node_modules/typebox/build/type/engine/required/from_dependent.mjs +8 -0
- package/node_modules/typebox/build/type/engine/required/from_intersect.d.mts +1 -1
- package/node_modules/typebox/build/type/engine/required/from_intersect.mjs +3 -2
- package/node_modules/typebox/build/type/engine/required/from_object.d.mts +2 -2
- package/node_modules/typebox/build/type/engine/required/from_object.mjs +2 -2
- package/node_modules/typebox/build/type/engine/required/from_type.d.mts +3 -1
- package/node_modules/typebox/build/type/engine/required/from_type.mjs +7 -4
- package/node_modules/typebox/build/type/engine/template_literal/decode.mjs +3 -3
- package/node_modules/typebox/build/type/engine/template_literal/encode.d.mts +2 -2
- package/node_modules/typebox/build/type/engine/template_literal/encode.mjs +6 -6
- package/node_modules/typebox/build/type/engine/template_literal/is_finite.mjs +1 -1
- package/node_modules/typebox/build/type/engine/template_literal/is_pattern.mjs +1 -0
- package/node_modules/typebox/build/type/engine/this/expand_this.d.mts +1 -4
- package/node_modules/typebox/build/type/engine/this/expand_this.mjs +7 -13
- package/node_modules/typebox/build/type/engine/with/instantiate.d.mts +8 -0
- package/node_modules/typebox/build/type/engine/{options → with}/instantiate.mjs +5 -5
- package/node_modules/typebox/build/type/extends/dependent.d.mts +6 -0
- package/node_modules/typebox/build/type/extends/dependent.mjs +6 -0
- package/node_modules/typebox/build/type/extends/enum.d.mts +4 -4
- package/node_modules/typebox/build/type/extends/enum.mjs +3 -2
- package/node_modules/typebox/build/type/extends/extends_left.d.mts +5 -7
- package/node_modules/typebox/build/type/extends/extends_left.mjs +24 -27
- package/node_modules/typebox/build/type/extends/extends_right.d.mts +7 -5
- package/node_modules/typebox/build/type/extends/extends_right.mjs +20 -15
- package/node_modules/typebox/build/type/extends/inference.mjs +1 -1
- package/node_modules/typebox/build/type/extends/object.d.mts +8 -1
- package/node_modules/typebox/build/type/extends/object.mjs +25 -3
- package/node_modules/typebox/build/type/extends/parameters.mjs +2 -2
- package/node_modules/typebox/build/type/extends/record.d.mts +13 -0
- package/node_modules/typebox/build/type/extends/record.mjs +23 -0
- package/node_modules/typebox/build/type/extends/template_literal.d.mts +3 -3
- package/node_modules/typebox/build/type/extends/template_literal.mjs +3 -3
- package/node_modules/typebox/build/type/extends/tuple.d.mts +3 -6
- package/node_modules/typebox/build/type/extends/tuple.mjs +6 -5
- package/node_modules/typebox/build/type/extends/union.mjs +2 -2
- package/node_modules/typebox/build/type/script/mapping.d.mts +84 -99
- package/node_modules/typebox/build/type/script/mapping.mjs +81 -85
- package/node_modules/typebox/build/type/script/parser.d.mts +40 -40
- package/node_modules/typebox/build/type/script/parser.mjs +22 -22
- package/node_modules/typebox/build/type/script/script.d.mts +3 -4
- package/node_modules/typebox/build/type/script/script.mjs +3 -2
- package/node_modules/typebox/build/type/script/token/internal/guard.d.mts +1 -1
- package/node_modules/typebox/build/type/script/token/internal/guard.mjs +1 -1
- package/node_modules/typebox/build/type/script/token/internal/take.mjs +1 -1
- package/node_modules/typebox/build/type/script/token/until.mjs +2 -2
- package/node_modules/typebox/build/type/types/_codec.d.mts +12 -12
- package/node_modules/typebox/build/type/types/_codec.mjs +0 -1
- package/node_modules/typebox/build/type/types/_immutable.d.mts +2 -9
- package/node_modules/typebox/build/type/types/_immutable.mjs +2 -10
- package/node_modules/typebox/build/type/types/_optional.d.mts +2 -9
- package/node_modules/typebox/build/type/types/_optional.mjs +2 -11
- package/node_modules/typebox/build/type/types/_readonly.d.mts +2 -9
- package/node_modules/typebox/build/type/types/_readonly.mjs +2 -10
- package/node_modules/typebox/build/type/types/_refine.d.mts +8 -10
- package/node_modules/typebox/build/type/types/_refine.mjs +1 -2
- package/node_modules/typebox/build/type/types/call.d.mts +3 -3
- package/node_modules/typebox/build/type/types/call.mjs +3 -2
- package/node_modules/typebox/build/type/types/deferred.d.mts +1 -0
- package/node_modules/typebox/build/type/types/deferred.mjs +1 -1
- package/node_modules/typebox/build/type/types/dependent.d.mts +17 -0
- package/node_modules/typebox/build/type/types/dependent.mjs +24 -0
- package/node_modules/typebox/build/type/types/enum.d.mts +3 -1
- package/node_modules/typebox/build/type/types/enum.mjs +5 -0
- package/node_modules/typebox/build/type/types/index.d.mts +1 -4
- package/node_modules/typebox/build/type/types/index.mjs +1 -4
- package/node_modules/typebox/build/type/types/number.d.mts +1 -1
- package/node_modules/typebox/build/type/types/number.mjs +1 -1
- package/node_modules/typebox/build/type/types/record.d.mts +13 -7
- package/node_modules/typebox/build/type/types/record.mjs +15 -9
- package/node_modules/typebox/build/type/types/static.d.mts +2 -5
- package/node_modules/typebox/build/typebox.d.mts +4 -8
- package/node_modules/typebox/build/typebox.mjs +4 -8
- package/node_modules/typebox/build/value/clean/clean.mjs +4 -2
- package/node_modules/typebox/build/value/clean/from_intersect.mjs +2 -2
- package/node_modules/typebox/build/value/clean/from_type.mjs +8 -10
- package/node_modules/typebox/build/value/clean/from_union.d.mts +1 -1
- package/node_modules/typebox/build/value/clean/from_union.mjs +1 -2
- package/node_modules/typebox/build/value/clone/clone.mjs +2 -73
- package/node_modules/typebox/build/value/codec/decode.mjs +4 -2
- package/node_modules/typebox/build/value/codec/encode.mjs +4 -2
- package/node_modules/typebox/build/value/codec/from_array.mjs +1 -4
- package/node_modules/typebox/build/value/codec/from_object.mjs +1 -4
- package/node_modules/typebox/build/value/codec/from_record.mjs +2 -7
- package/node_modules/typebox/build/value/codec/from_tuple.mjs +1 -4
- package/node_modules/typebox/build/value/codec/from_union.mjs +2 -3
- package/node_modules/typebox/build/value/convert/from_enum.mjs +3 -4
- package/node_modules/typebox/build/value/convert/from_template_literal.d.mts +1 -1
- package/node_modules/typebox/build/value/convert/from_template_literal.mjs +2 -3
- package/node_modules/typebox/build/value/convert/from_type.mjs +19 -21
- package/node_modules/typebox/build/value/create/from_enum.mjs +2 -2
- package/node_modules/typebox/build/value/create/from_type.mjs +23 -31
- package/node_modules/typebox/build/value/default/from_object.mjs +1 -1
- package/node_modules/typebox/build/value/default/from_type.mjs +8 -10
- package/node_modules/typebox/build/value/index.d.mts +0 -1
- package/node_modules/typebox/build/value/index.mjs +0 -1
- package/node_modules/typebox/build/value/repair/from_enum.mjs +2 -3
- package/node_modules/typebox/build/value/repair/from_type.mjs +24 -22
- package/node_modules/typebox/build/value/shared/union_priority_sort.d.mts +6 -2
- package/node_modules/typebox/build/value/shared/union_priority_sort.mjs +62 -26
- package/node_modules/typebox/build/value/value.d.mts +0 -1
- package/node_modules/typebox/build/value/value.mjs +0 -1
- package/node_modules/typebox/package.json +25 -25
- package/node_modules/typebox/readme.md +97 -80
- package/npm-shrinkwrap.json +12 -12
- package/package.json +6 -6
- package/node_modules/typebox/build/schema/engine/_guard.d.mts +0 -6
- package/node_modules/typebox/build/schema/engine/_guard.mjs +0 -26
- package/node_modules/typebox/build/schema/types/_guard.d.mts +0 -10
- package/node_modules/typebox/build/schema/types/_guard.mjs +0 -16
- package/node_modules/typebox/build/type/action/_optional.d.mts +0 -19
- package/node_modules/typebox/build/type/action/_optional.mjs +0 -40
- package/node_modules/typebox/build/type/action/_readonly.d.mts +0 -19
- package/node_modules/typebox/build/type/action/_readonly.mjs +0 -40
- package/node_modules/typebox/build/type/action/awaited.d.mts +0 -15
- package/node_modules/typebox/build/type/action/awaited.mjs +0 -15
- package/node_modules/typebox/build/type/action/options.d.mts +0 -11
- package/node_modules/typebox/build/type/action/options.mjs +0 -11
- package/node_modules/typebox/build/type/engine/awaited/instantiate.d.mts +0 -11
- package/node_modules/typebox/build/type/engine/awaited/instantiate.mjs +0 -20
- package/node_modules/typebox/build/type/engine/enum/enum_to_union.d.mts +0 -14
- package/node_modules/typebox/build/type/engine/enum/enum_to_union.mjs +0 -24
- package/node_modules/typebox/build/type/engine/options/index.d.mts +0 -1
- package/node_modules/typebox/build/type/engine/options/index.mjs +0 -1
- package/node_modules/typebox/build/type/engine/options/instantiate.d.mts +0 -8
- package/node_modules/typebox/build/type/extends/async_iterator.d.mts +0 -7
- package/node_modules/typebox/build/type/extends/async_iterator.mjs +0 -9
- package/node_modules/typebox/build/type/extends/iterator.d.mts +0 -7
- package/node_modules/typebox/build/type/extends/iterator.mjs +0 -9
- package/node_modules/typebox/build/type/extends/promise.d.mts +0 -7
- package/node_modules/typebox/build/type/extends/promise.mjs +0 -9
- package/node_modules/typebox/build/type/types/async_iterator.d.mts +0 -20
- package/node_modules/typebox/build/type/types/async_iterator.mjs +0 -28
- package/node_modules/typebox/build/type/types/base.d.mts +0 -50
- package/node_modules/typebox/build/type/types/base.mjs +0 -84
- package/node_modules/typebox/build/type/types/iterator.d.mts +0 -20
- package/node_modules/typebox/build/type/types/iterator.mjs +0 -28
- package/node_modules/typebox/build/type/types/promise.d.mts +0 -21
- package/node_modules/typebox/build/type/types/promise.mjs +0 -29
- package/node_modules/typebox/build/value/clean/from_base.d.mts +0 -2
- package/node_modules/typebox/build/value/clean/from_base.mjs +0 -4
- package/node_modules/typebox/build/value/convert/from_base.d.mts +0 -2
- package/node_modules/typebox/build/value/convert/from_base.mjs +0 -4
- package/node_modules/typebox/build/value/create/from_async_iterator.d.mts +0 -2
- package/node_modules/typebox/build/value/create/from_async_iterator.mjs +0 -5
- package/node_modules/typebox/build/value/create/from_base.d.mts +0 -2
- package/node_modules/typebox/build/value/create/from_base.mjs +0 -4
- package/node_modules/typebox/build/value/create/from_iterator.d.mts +0 -2
- package/node_modules/typebox/build/value/create/from_iterator.mjs +0 -5
- package/node_modules/typebox/build/value/create/from_promise.d.mts +0 -2
- package/node_modules/typebox/build/value/create/from_promise.mjs +0 -5
- package/node_modules/typebox/build/value/default/from_base.d.mts +0 -2
- package/node_modules/typebox/build/value/default/from_base.mjs +0 -5
- package/node_modules/typebox/build/value/mutate/error.d.mts +0 -3
- package/node_modules/typebox/build/value/mutate/error.mjs +0 -6
- package/node_modules/typebox/build/value/mutate/from_array.d.mts +0 -2
- package/node_modules/typebox/build/value/mutate/from_array.mjs +0 -16
- package/node_modules/typebox/build/value/mutate/from_object.d.mts +0 -2
- package/node_modules/typebox/build/value/mutate/from_object.mjs +0 -40
- package/node_modules/typebox/build/value/mutate/from_unknown.d.mts +0 -2
- package/node_modules/typebox/build/value/mutate/from_unknown.mjs +0 -7
- package/node_modules/typebox/build/value/mutate/from_value.d.mts +0 -2
- package/node_modules/typebox/build/value/mutate/from_value.mjs +0 -12
- package/node_modules/typebox/build/value/mutate/index.d.mts +0 -1
- package/node_modules/typebox/build/value/mutate/index.mjs +0 -1
- package/node_modules/typebox/build/value/mutate/mutate.d.mts +0 -11
- package/node_modules/typebox/build/value/mutate/mutate.mjs +0 -41
- package/node_modules/typebox/build/value/repair/from_base.d.mts +0 -2
- package/node_modules/typebox/build/value/repair/from_base.mjs +0 -8
- /package/node_modules/typebox/build/type/engine/{awaited → with}/index.d.mts +0 -0
- /package/node_modules/typebox/build/type/engine/{awaited → with}/index.mjs +0 -0
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* SDK Runtime - Executes Lobster pipelines
|
|
3
3
|
*
|
|
4
|
-
* This
|
|
4
|
+
* This adapts SDK stages to the core runtime so command-level suspension rules
|
|
5
|
+
* stay identical across CLI, tool mode, and SDK entry points.
|
|
5
6
|
*/
|
|
7
|
+
import { runPipeline as runCorePipeline } from "../runtime.js";
|
|
6
8
|
/**
|
|
7
9
|
* @typedef {Object} StageResult
|
|
8
10
|
* @property {AsyncIterable|any[]} [output] - Output items
|
|
@@ -15,34 +17,6 @@
|
|
|
15
17
|
* @property {boolean} halted - Whether pipeline halted
|
|
16
18
|
* @property {Object|null} haltedAt - Stage where halt occurred
|
|
17
19
|
*/
|
|
18
|
-
/**
|
|
19
|
-
* Convert various inputs to an async iterable
|
|
20
|
-
* @param {any} input
|
|
21
|
-
* @returns {AsyncIterable}
|
|
22
|
-
*/
|
|
23
|
-
async function* toAsyncIterable(input) {
|
|
24
|
-
if (input === null || input === undefined) {
|
|
25
|
-
return;
|
|
26
|
-
}
|
|
27
|
-
if (Array.isArray(input)) {
|
|
28
|
-
for (const item of input) {
|
|
29
|
-
yield item;
|
|
30
|
-
}
|
|
31
|
-
return;
|
|
32
|
-
}
|
|
33
|
-
if (typeof input[Symbol.asyncIterator] === "function") {
|
|
34
|
-
yield* input;
|
|
35
|
-
return;
|
|
36
|
-
}
|
|
37
|
-
if (typeof input[Symbol.iterator] === "function") {
|
|
38
|
-
for (const item of input) {
|
|
39
|
-
yield item;
|
|
40
|
-
}
|
|
41
|
-
return;
|
|
42
|
-
}
|
|
43
|
-
// Single item
|
|
44
|
-
yield input;
|
|
45
|
-
}
|
|
46
20
|
/**
|
|
47
21
|
* Collect async iterable to array
|
|
48
22
|
* @param {AsyncIterable} iterable
|
|
@@ -55,6 +29,27 @@ async function collectItems(iterable) {
|
|
|
55
29
|
}
|
|
56
30
|
return items;
|
|
57
31
|
}
|
|
32
|
+
function normalizeSdkOutput(output) {
|
|
33
|
+
if (output === null || output === undefined)
|
|
34
|
+
return [];
|
|
35
|
+
if (Array.isArray(output))
|
|
36
|
+
return output;
|
|
37
|
+
if (typeof output?.[Symbol.asyncIterator] === "function" ||
|
|
38
|
+
typeof output?.[Symbol.iterator] === "function") {
|
|
39
|
+
return output;
|
|
40
|
+
}
|
|
41
|
+
return [output];
|
|
42
|
+
}
|
|
43
|
+
function createNullWritable() {
|
|
44
|
+
return {
|
|
45
|
+
write() {
|
|
46
|
+
return true;
|
|
47
|
+
},
|
|
48
|
+
end() {
|
|
49
|
+
return undefined;
|
|
50
|
+
},
|
|
51
|
+
};
|
|
52
|
+
}
|
|
58
53
|
/**
|
|
59
54
|
* Run a pipeline of stages
|
|
60
55
|
*
|
|
@@ -64,76 +59,73 @@ async function collectItems(iterable) {
|
|
|
64
59
|
* @param {any[]} [options.input] - Initial input items
|
|
65
60
|
* @returns {Promise<PipelineResult>}
|
|
66
61
|
*/
|
|
67
|
-
export async function runPipelineInternal({ stages, ctx, input = [] }) {
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
62
|
+
export async function runPipelineInternal({ stages, ctx, input = [], requestInputResume = undefined, }) {
|
|
63
|
+
const runtimeCtx = ctx ?? {};
|
|
64
|
+
const pipeline = stages.map((_stage, index) => ({
|
|
65
|
+
name: `sdk.stage.${index}`,
|
|
66
|
+
args: {},
|
|
67
|
+
raw: `sdk.stage.${index}`,
|
|
68
|
+
}));
|
|
69
|
+
const commands = new Map(stages.map((stage, index) => [
|
|
70
|
+
`sdk.stage.${index}`,
|
|
71
|
+
{
|
|
72
|
+
async run({ input, ctx }) {
|
|
73
|
+
const stageCtx = { ...runtimeCtx, ...ctx };
|
|
74
|
+
if (typeof stage === "function") {
|
|
75
|
+
const isGenerator = stage.constructor?.name === "AsyncGeneratorFunction" ||
|
|
76
|
+
stage.constructor?.name === "GeneratorFunction";
|
|
77
|
+
if (isGenerator) {
|
|
78
|
+
return { output: normalizeSdkOutput(stage(input, stageCtx)) };
|
|
79
|
+
}
|
|
80
|
+
const items = await collectItems(input);
|
|
81
|
+
return { output: normalizeSdkOutput(await stage(items, stageCtx)) };
|
|
82
|
+
}
|
|
83
|
+
if (typeof stage?.run === "function") {
|
|
84
|
+
const result = await stage.run({ input, ctx: stageCtx });
|
|
85
|
+
return result && "output" in result
|
|
86
|
+
? { ...result, output: normalizeSdkOutput(result.output) }
|
|
87
|
+
: result;
|
|
88
|
+
}
|
|
89
|
+
throw new Error(`Invalid stage at index ${index}: must be a function or have run() method`);
|
|
90
|
+
},
|
|
91
|
+
},
|
|
92
|
+
]));
|
|
93
|
+
const stdout = runtimeCtx.stdout ?? createNullWritable();
|
|
94
|
+
const stderr = runtimeCtx.stderr ?? createNullWritable();
|
|
95
|
+
return runCorePipeline({
|
|
96
|
+
pipeline,
|
|
97
|
+
registry: {
|
|
98
|
+
get(name) {
|
|
99
|
+
return commands.get(name);
|
|
100
|
+
},
|
|
101
|
+
},
|
|
102
|
+
stdin: runtimeCtx.stdin ?? { isTTY: false },
|
|
103
|
+
stdout,
|
|
104
|
+
stderr,
|
|
105
|
+
env: runtimeCtx.env ?? process.env,
|
|
106
|
+
mode: runtimeCtx.mode ?? "sdk",
|
|
107
|
+
cwd: runtimeCtx.cwd,
|
|
108
|
+
llmAdapters: runtimeCtx.llmAdapters,
|
|
109
|
+
signal: runtimeCtx.signal,
|
|
110
|
+
input: normalizeSdkOutput(input),
|
|
111
|
+
requestInputResume,
|
|
112
|
+
});
|
|
108
113
|
}
|
|
109
114
|
/**
|
|
110
115
|
* Re-export for compatibility with CLI runtime
|
|
111
116
|
*/
|
|
112
|
-
export async function runPipeline({ pipeline, registry, stdin, stdout, stderr, env, mode = "human", input, }) {
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
const command = registry.get(stage.name);
|
|
117
|
-
if (!command) {
|
|
118
|
-
throw new Error(`Unknown command: ${stage.name}`);
|
|
119
|
-
}
|
|
120
|
-
return {
|
|
121
|
-
run: async ({ input, ctx }) => {
|
|
122
|
-
return command.run({ input, args: stage.args, ctx });
|
|
123
|
-
},
|
|
124
|
-
};
|
|
125
|
-
});
|
|
126
|
-
const ctx = {
|
|
117
|
+
export async function runPipeline({ pipeline, registry, stdin, stdout, stderr, env, mode = "human", input, requestInputResume = undefined, requestInputEnabled = true, }) {
|
|
118
|
+
return runCorePipeline({
|
|
119
|
+
pipeline,
|
|
120
|
+
registry,
|
|
127
121
|
stdin,
|
|
128
122
|
stdout,
|
|
129
123
|
stderr,
|
|
130
124
|
env,
|
|
131
125
|
mode,
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
ctx,
|
|
136
|
-
input: input ? await collectItems(input) : [],
|
|
126
|
+
input,
|
|
127
|
+
requestInputResume,
|
|
128
|
+
requestInputEnabled,
|
|
137
129
|
});
|
|
138
130
|
}
|
|
139
131
|
//# sourceMappingURL=runtime.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"runtime.js","sourceRoot":"","sources":["../../../src/sdk/runtime.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"runtime.js","sourceRoot":"","sources":["../../../src/sdk/runtime.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,WAAW,IAAI,eAAe,EAAE,MAAM,eAAe,CAAC;AAE/D;;;;;GAKG;AAEH;;;;;GAKG;AAEH;;;;GAIG;AACH,KAAK,UAAU,YAAY,CAAC,QAAQ;IAClC,MAAM,KAAK,GAAG,EAAE,CAAC;IACjB,IAAI,KAAK,EAAE,MAAM,IAAI,IAAI,QAAQ,EAAE,CAAC;QAClC,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IACnB,CAAC;IACD,OAAO,KAAK,CAAC;AACf,CAAC;AAED,SAAS,kBAAkB,CAAC,MAAM;IAChC,IAAI,MAAM,KAAK,IAAI,IAAI,MAAM,KAAK,SAAS;QAAE,OAAO,EAAE,CAAC;IACvD,IAAI,KAAK,CAAC,OAAO,CAAC,MAAM,CAAC;QAAE,OAAO,MAAM,CAAC;IACzC,IACE,OAAO,MAAM,EAAE,CAAC,MAAM,CAAC,aAAa,CAAC,KAAK,UAAU;QACpD,OAAO,MAAM,EAAE,CAAC,MAAM,CAAC,QAAQ,CAAC,KAAK,UAAU,EAC/C,CAAC;QACD,OAAO,MAAM,CAAC;IAChB,CAAC;IACD,OAAO,CAAC,MAAM,CAAC,CAAC;AAClB,CAAC;AAED,SAAS,kBAAkB;IACzB,OAAO;QACL,KAAK;YACH,OAAO,IAAI,CAAC;QACd,CAAC;QACD,GAAG;YACD,OAAO,SAAS,CAAC;QACnB,CAAC;KACF,CAAC;AACJ,CAAC;AAED;;;;;;;;GAQG;AACH,MAAM,CAAC,KAAK,UAAU,mBAAmB,CAAC,EACxC,MAAM,EACN,GAAG,EACH,KAAK,GAAG,EAAE,EACV,kBAA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QAAQ;QACR,QAAQ;QACR,KAAK;QACL,MAAM;QACN,MAAM;QACN,GAAG;QACH,IAAI;QACJ,KAAK;QACL,kBAAkB;QAClB,mBAAmB;KACpB,CAAC,CAAC;AACL,CAAC"}
|
|
@@ -26,6 +26,156 @@ export function stableStringify(value) {
|
|
|
26
26
|
return v;
|
|
27
27
|
});
|
|
28
28
|
}
|
|
29
|
+
function isDirectorySyncUnsupportedError(err) {
|
|
30
|
+
return [
|
|
31
|
+
"EACCES",
|
|
32
|
+
"EBADF",
|
|
33
|
+
"EINVAL",
|
|
34
|
+
"EISDIR",
|
|
35
|
+
"ENOSYS",
|
|
36
|
+
"ENOTSUP",
|
|
37
|
+
"EOPNOTSUPP",
|
|
38
|
+
"EPERM",
|
|
39
|
+
].includes(err?.code);
|
|
40
|
+
}
|
|
41
|
+
async function syncParentDir(filePath) {
|
|
42
|
+
await syncDirectory(path.dirname(filePath));
|
|
43
|
+
}
|
|
44
|
+
async function syncDirectory(dir) {
|
|
45
|
+
let handle;
|
|
46
|
+
try {
|
|
47
|
+
handle = await fsp.open(dir, "r");
|
|
48
|
+
}
|
|
49
|
+
catch (err) {
|
|
50
|
+
if (isDirectorySyncUnsupportedError(err))
|
|
51
|
+
return;
|
|
52
|
+
throw err;
|
|
53
|
+
}
|
|
54
|
+
try {
|
|
55
|
+
await handle.sync();
|
|
56
|
+
}
|
|
57
|
+
catch (err) {
|
|
58
|
+
if (!isDirectorySyncUnsupportedError(err))
|
|
59
|
+
throw err;
|
|
60
|
+
}
|
|
61
|
+
finally {
|
|
62
|
+
if (handle)
|
|
63
|
+
await handle.close().catch(() => { });
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
async function syncCreatedDirectoryChain(firstCreated, finalDir) {
|
|
67
|
+
const final = path.resolve(finalDir);
|
|
68
|
+
let current = path.resolve(firstCreated);
|
|
69
|
+
await syncDirectory(path.dirname(current));
|
|
70
|
+
while (current !== final) {
|
|
71
|
+
await syncDirectory(current);
|
|
72
|
+
const relative = path.relative(current, final);
|
|
73
|
+
const next = relative.split(path.sep)[0];
|
|
74
|
+
if (!next || next === "..")
|
|
75
|
+
break;
|
|
76
|
+
current = path.join(current, next);
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
export async function ensureDirectory(dir) {
|
|
80
|
+
const created = await fsp.mkdir(dir, { recursive: true });
|
|
81
|
+
if (created)
|
|
82
|
+
await syncCreatedDirectoryChain(created, dir);
|
|
83
|
+
}
|
|
84
|
+
export function isJsonSyntaxError(err) {
|
|
85
|
+
return err instanceof SyntaxError;
|
|
86
|
+
}
|
|
87
|
+
function isLinkUnsupportedError(err) {
|
|
88
|
+
return ["ENOSYS", "ENOTSUP", "EOPNOTSUPP", "EPERM", "EXDEV"].includes(err?.code);
|
|
89
|
+
}
|
|
90
|
+
export function isAtomicExclusiveUnsupportedError(err) {
|
|
91
|
+
return err?.code === "ENOTSUP" && err?.cause && isLinkUnsupportedError(err.cause);
|
|
92
|
+
}
|
|
93
|
+
function isOptionalApprovalIndexPersistenceError(err) {
|
|
94
|
+
return (isAtomicExclusiveUnsupportedError(err) ||
|
|
95
|
+
["EACCES", "EDQUOT", "EIO", "ENOSPC", "EPERM", "EROFS"].includes(err?.code));
|
|
96
|
+
}
|
|
97
|
+
/**
|
|
98
|
+
* Write a file atomically: stage to a sibling temp file, fsync, then rename
|
|
99
|
+
* over the target. `rename(2)` is atomic on a single filesystem, so a reader
|
|
100
|
+
* (or a crash) never observes a truncated/partial file — it sees either the
|
|
101
|
+
* complete old content or the complete new content. Plain `fsp.writeFile`
|
|
102
|
+
* truncates the target up front, leaving a corruption window on SIGKILL/OOM/
|
|
103
|
+
* power loss. New state files are private by default; existing file modes are
|
|
104
|
+
* preserved across replacement. The temp file is removed on any failed path.
|
|
105
|
+
*/
|
|
106
|
+
export async function writeFileAtomic(filePath, data, options = {}) {
|
|
107
|
+
const renameFile = options.renameFile ?? fsp.rename;
|
|
108
|
+
const syncDir = options.syncParentDir ?? syncParentDir;
|
|
109
|
+
const dir = path.dirname(filePath);
|
|
110
|
+
const tmpPath = path.join(dir, `.${path.basename(filePath)}.${randomBytes(6).toString("hex")}.tmp`);
|
|
111
|
+
let mode = 0o600;
|
|
112
|
+
let handle;
|
|
113
|
+
let cleanup = true;
|
|
114
|
+
try {
|
|
115
|
+
try {
|
|
116
|
+
mode = (await fsp.stat(filePath)).mode & 0o777;
|
|
117
|
+
}
|
|
118
|
+
catch (err) {
|
|
119
|
+
if (err?.code !== "ENOENT")
|
|
120
|
+
throw err;
|
|
121
|
+
}
|
|
122
|
+
handle = await fsp.open(tmpPath, "wx", mode);
|
|
123
|
+
await handle.writeFile(data, "utf8");
|
|
124
|
+
await handle.chmod(mode);
|
|
125
|
+
await handle.sync();
|
|
126
|
+
await handle.close();
|
|
127
|
+
handle = undefined;
|
|
128
|
+
await renameFile(tmpPath, filePath);
|
|
129
|
+
await syncDir(filePath);
|
|
130
|
+
cleanup = false;
|
|
131
|
+
}
|
|
132
|
+
finally {
|
|
133
|
+
if (handle)
|
|
134
|
+
await handle.close().catch(() => { });
|
|
135
|
+
if (cleanup)
|
|
136
|
+
await fsp.rm(tmpPath, { force: true }).catch(() => { });
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
export async function writeFileAtomicExclusive(filePath, data, options = {}) {
|
|
140
|
+
const linkFile = options.linkFile ?? fsp.link;
|
|
141
|
+
const syncDir = options.syncParentDir ?? syncParentDir;
|
|
142
|
+
const dir = path.dirname(filePath);
|
|
143
|
+
const tmpPath = path.join(dir, `.${path.basename(filePath)}.${randomBytes(6).toString("hex")}.tmp`);
|
|
144
|
+
let handle;
|
|
145
|
+
try {
|
|
146
|
+
handle = await fsp.open(tmpPath, "wx", 0o600);
|
|
147
|
+
await handle.writeFile(data, "utf8");
|
|
148
|
+
await handle.chmod(0o600);
|
|
149
|
+
await handle.sync();
|
|
150
|
+
await handle.close();
|
|
151
|
+
handle = undefined;
|
|
152
|
+
try {
|
|
153
|
+
await linkFile(tmpPath, filePath);
|
|
154
|
+
}
|
|
155
|
+
catch (err) {
|
|
156
|
+
if (!isLinkUnsupportedError(err))
|
|
157
|
+
throw err;
|
|
158
|
+
const unsupported = new Error("Atomic exclusive file creation requires hard-link support on this filesystem");
|
|
159
|
+
unsupported.code = "ENOTSUP";
|
|
160
|
+
unsupported.cause = err;
|
|
161
|
+
throw unsupported;
|
|
162
|
+
}
|
|
163
|
+
try {
|
|
164
|
+
await fsp.unlink(tmpPath);
|
|
165
|
+
await syncDir(filePath);
|
|
166
|
+
}
|
|
167
|
+
catch (err) {
|
|
168
|
+
await fsp.unlink(filePath).catch(() => { });
|
|
169
|
+
await syncDir(filePath).catch(() => { });
|
|
170
|
+
throw err;
|
|
171
|
+
}
|
|
172
|
+
}
|
|
173
|
+
finally {
|
|
174
|
+
if (handle)
|
|
175
|
+
await handle.close().catch(() => { });
|
|
176
|
+
await fsp.rm(tmpPath, { force: true }).catch(() => { });
|
|
177
|
+
}
|
|
178
|
+
}
|
|
29
179
|
export async function readStateJson({ env, key }) {
|
|
30
180
|
const stateDir = defaultStateDir(env);
|
|
31
181
|
const filePath = keyToPath(stateDir, key);
|
|
@@ -42,8 +192,8 @@ export async function readStateJson({ env, key }) {
|
|
|
42
192
|
export async function writeStateJson({ env, key, value }) {
|
|
43
193
|
const stateDir = defaultStateDir(env);
|
|
44
194
|
const filePath = keyToPath(stateDir, key);
|
|
45
|
-
await
|
|
46
|
-
await
|
|
195
|
+
await ensureDirectory(stateDir);
|
|
196
|
+
await writeFileAtomic(filePath, JSON.stringify(value, null, 2) + "\n");
|
|
47
197
|
}
|
|
48
198
|
export async function deleteStateJson({ env, key }) {
|
|
49
199
|
const stateDir = defaultStateDir(env);
|
|
@@ -72,28 +222,30 @@ export function generateApprovalId() {
|
|
|
72
222
|
* Write a reverse-index file that maps approvalId → stateKey.
|
|
73
223
|
* Call this after writeStateJson to enable short-ID resume.
|
|
74
224
|
*/
|
|
75
|
-
export async function writeApprovalIndex({ env, stateKey, approvalId, }) {
|
|
225
|
+
export async function writeApprovalIndex({ env, stateKey, approvalId, options, }) {
|
|
76
226
|
const stateDir = defaultStateDir(env);
|
|
77
227
|
const safe = sanitizeApprovalId(approvalId);
|
|
78
228
|
if (!safe)
|
|
79
229
|
return;
|
|
80
|
-
await
|
|
230
|
+
await ensureDirectory(stateDir);
|
|
81
231
|
const indexPath = path.join(stateDir, `approval_${safe}.json`);
|
|
82
|
-
await
|
|
232
|
+
await writeFileAtomicExclusive(indexPath, JSON.stringify({ stateKey, createdAt: new Date().toISOString() }) + "\n", options);
|
|
83
233
|
}
|
|
84
234
|
/**
|
|
85
235
|
* Create a unique approval ID index without ever overwriting an existing mapping.
|
|
86
236
|
*/
|
|
87
|
-
export async function createApprovalIndex({ env, stateKey, }) {
|
|
237
|
+
export async function createApprovalIndex({ env, stateKey, options, }) {
|
|
88
238
|
for (let attempt = 0; attempt < 16; attempt++) {
|
|
89
239
|
const approvalId = generateApprovalId();
|
|
90
240
|
try {
|
|
91
|
-
await writeApprovalIndex({ env, stateKey, approvalId });
|
|
241
|
+
await writeApprovalIndex({ env, stateKey, approvalId, options });
|
|
92
242
|
return approvalId;
|
|
93
243
|
}
|
|
94
244
|
catch (err) {
|
|
95
245
|
if (err?.code === "EEXIST")
|
|
96
246
|
continue;
|
|
247
|
+
if (isOptionalApprovalIndexPersistenceError(err))
|
|
248
|
+
return null;
|
|
97
249
|
throw err;
|
|
98
250
|
}
|
|
99
251
|
}
|
|
@@ -117,6 +269,8 @@ export async function findStateKeyByApprovalId({ env, approvalId, }) {
|
|
|
117
269
|
catch (err) {
|
|
118
270
|
if (err?.code === "ENOENT")
|
|
119
271
|
return null;
|
|
272
|
+
if (isJsonSyntaxError(err))
|
|
273
|
+
return null;
|
|
120
274
|
throw err;
|
|
121
275
|
}
|
|
122
276
|
}
|
|
@@ -171,7 +325,11 @@ export async function cleanupApprovalIndexByStateKey({ env, stateKey, }) {
|
|
|
171
325
|
}
|
|
172
326
|
}
|
|
173
327
|
export async function diffAndStore({ env, key, value }) {
|
|
174
|
-
const before = await readStateJson({ env, key })
|
|
328
|
+
const before = await readStateJson({ env, key }).catch((err) => {
|
|
329
|
+
if (isJsonSyntaxError(err))
|
|
330
|
+
return null;
|
|
331
|
+
throw err;
|
|
332
|
+
});
|
|
175
333
|
const changed = stableStringify(before) !== stableStringify(value);
|
|
176
334
|
await writeStateJson({ env, key, value });
|
|
177
335
|
return { before, after: value, changed };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"store.js","sourceRoot":"","sources":["../../../src/state/store.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,SAAS,CAAC;AACzB,OAAO,IAAI,MAAM,WAAW,CAAC;AAC7B,OAAO,EAAE,QAAQ,IAAI,GAAG,EAAE,MAAM,SAAS,CAAC;AAC1C,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAE1C,MAAM,UAAU,eAAe,CAAC,GAAG;IACjC,OAAO,CACL,CAAC,GAAG,EAAE,iBAAiB,IAAI,MAAM,CAAC,GAAG,CAAC,iBAAiB,CAAC,CAAC,IAAI,EAAE,CAAC;QAChE,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC,OAAO,EAAE,EAAE,UAAU,EAAE,OAAO,CAAC,CAC7C,CAAC;AACJ,CAAC;AAED,MAAM,UAAU,SAAS,CAAC,QAAQ,EAAE,GAAG;IACrC,MAAM,IAAI,GAAG,MAAM,CAAC,GAAG,CAAC;SACrB,WAAW,EAAE;SACb,OAAO,CAAC,gBAAgB,EAAE,GAAG,CAAC;SAC9B,OAAO,CAAC,KAAK,EAAE,GAAG,CAAC;SACnB,OAAO,CAAC,UAAU,EAAE,EAAE,CAAC,CAAC;IAC3B,IAAI,CAAC,IAAI;QAAE,MAAM,IAAI,KAAK,CAAC,4BAA4B,CAAC,CAAC;IACzD,OAAO,IAAI,CAAC,IAAI,CAAC,QAAQ,EAAE,GAAG,IAAI,OAAO,CAAC,CAAC;AAC7C,CAAC;AAED,MA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