@executioncontrolprotocol/core 0.14.0 → 0.50.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +25 -36
- package/dist/bindings/extension.d.ts +15 -1
- package/dist/bindings/extension.d.ts.map +1 -1
- package/dist/bindings/extension.js +23 -0
- package/dist/bindings/extension.js.map +1 -1
- package/dist/bindings/policy.d.ts +15 -1
- package/dist/bindings/policy.d.ts.map +1 -1
- package/dist/bindings/policy.js +23 -0
- package/dist/bindings/policy.js.map +1 -1
- package/dist/bindings/step.d.ts +3 -3
- package/dist/bindings/step.d.ts.map +1 -1
- package/dist/compile/extract-workflow-module.d.ts +18 -2
- package/dist/compile/extract-workflow-module.d.ts.map +1 -1
- package/dist/compile/extract-workflow-module.js +39 -10
- package/dist/compile/extract-workflow-module.js.map +1 -1
- package/dist/compile/index.d.ts +4 -13
- package/dist/compile/index.d.ts.map +1 -1
- package/dist/compile/index.js +1 -48
- package/dist/compile/index.js.map +1 -1
- package/dist/compile/types.d.ts +1 -1
- package/dist/compile/types.d.ts.map +1 -1
- package/dist/definitions/capability.d.ts +3 -2
- package/dist/definitions/capability.d.ts.map +1 -1
- package/dist/definitions/capability.js +4 -3
- package/dist/definitions/capability.js.map +1 -1
- package/dist/definitions/environment.d.ts +38 -0
- package/dist/definitions/environment.d.ts.map +1 -0
- package/dist/definitions/environment.js +77 -0
- package/dist/definitions/environment.js.map +1 -0
- package/dist/definitions/extension.d.ts +16 -4
- package/dist/definitions/extension.d.ts.map +1 -1
- package/dist/definitions/extension.js +27 -6
- package/dist/definitions/extension.js.map +1 -1
- package/dist/definitions/hook.d.ts +1 -1
- package/dist/definitions/hook.d.ts.map +1 -1
- package/dist/definitions/index.d.ts +2 -2
- package/dist/definitions/index.d.ts.map +1 -1
- package/dist/definitions/index.js +1 -1
- package/dist/definitions/index.js.map +1 -1
- package/dist/definitions/policy.d.ts +8 -0
- package/dist/definitions/policy.d.ts.map +1 -1
- package/dist/definitions/policy.js +16 -0
- package/dist/definitions/policy.js.map +1 -1
- package/dist/definitions/types.d.ts +23 -5
- package/dist/definitions/types.d.ts.map +1 -1
- package/dist/encoding/contracts.js +1 -1
- package/dist/encoding/contracts.js.map +1 -1
- package/dist/encoding/decode-builder.d.ts +1 -1
- package/dist/encoding/decode-builder.d.ts.map +1 -1
- package/dist/encoding/decode-builder.js +1 -9
- package/dist/encoding/decode-builder.js.map +1 -1
- package/dist/encoding/encode-builder.d.ts +1 -1
- package/dist/encoding/encode-builder.d.ts.map +1 -1
- package/dist/encoding/encode-builder.js +1 -1
- package/dist/encoding/encode-builder.js.map +1 -1
- package/dist/encoding/errors.d.ts +2 -2
- package/dist/encoding/errors.d.ts.map +1 -1
- package/dist/encoding/invoke-utility.d.ts +1 -1
- package/dist/encoding/invoke-utility.d.ts.map +1 -1
- package/dist/encoding/invoke-utility.js +1 -1
- package/dist/encoding/invoke-utility.js.map +1 -1
- package/dist/encoding/json-codec.d.ts +1 -1
- package/dist/encoding/json-codec.d.ts.map +1 -1
- package/dist/encoding/json-codec.js +1 -1
- package/dist/encoding/json-codec.js.map +1 -1
- package/dist/encoding/normalize-workflow.d.ts +1 -1
- package/dist/encoding/normalize-workflow.d.ts.map +1 -1
- package/dist/encoding/resolve.js +1 -1
- package/dist/encoding/resolve.js.map +1 -1
- package/dist/encoding/schemas.d.ts +20 -20
- package/dist/encoding/schemas.js +1 -1
- package/dist/encoding/schemas.js.map +1 -1
- package/dist/environment/bindings.d.ts +4 -14
- package/dist/environment/bindings.d.ts.map +1 -1
- package/dist/environment/bindings.js +2 -7
- package/dist/environment/bindings.js.map +1 -1
- package/dist/environment/config-resolver.d.ts +1 -3
- package/dist/environment/config-resolver.d.ts.map +1 -1
- package/dist/environment/config-resolver.js +13 -19
- package/dist/environment/config-resolver.js.map +1 -1
- package/dist/environment/describe.d.ts +1 -1
- package/dist/environment/describe.d.ts.map +1 -1
- package/dist/environment/describe.js +32 -24
- package/dist/environment/describe.js.map +1 -1
- package/dist/environment/ecp.d.ts +2 -12
- package/dist/environment/ecp.d.ts.map +1 -1
- package/dist/environment/ecp.js +1 -8
- package/dist/environment/ecp.js.map +1 -1
- package/dist/environment/environment.d.ts +71 -48
- package/dist/environment/environment.d.ts.map +1 -1
- package/dist/environment/environment.js +165 -159
- package/dist/environment/environment.js.map +1 -1
- package/dist/environment/search.d.ts +1 -1
- package/dist/environment/search.d.ts.map +1 -1
- package/dist/environment/search.js +10 -7
- package/dist/environment/search.js.map +1 -1
- package/dist/environment/validate-binding-config.d.ts +12 -0
- package/dist/environment/validate-binding-config.d.ts.map +1 -0
- package/dist/environment/validate-binding-config.js +43 -0
- package/dist/environment/validate-binding-config.js.map +1 -0
- package/dist/file/file-ref.d.ts +1 -1
- package/dist/file/file-ref.d.ts.map +1 -1
- package/dist/file/file-ref.js +1 -1
- package/dist/file/file-ref.js.map +1 -1
- package/dist/fluent/encode-fluent.d.ts +1 -1
- package/dist/fluent/encode-fluent.d.ts.map +1 -1
- package/dist/fluent/encode-fluent.js +1 -1
- package/dist/fluent/encode-fluent.js.map +1 -1
- package/dist/fluent/render-expr.d.ts +1 -1
- package/dist/fluent/render-expr.d.ts.map +1 -1
- package/dist/fluent/render-node.d.ts +1 -1
- package/dist/fluent/render-node.d.ts.map +1 -1
- package/dist/fluent/render-value.d.ts +1 -2
- package/dist/fluent/render-value.d.ts.map +1 -1
- package/dist/fluent/render-value.js +0 -5
- package/dist/fluent/render-value.js.map +1 -1
- package/dist/fluent/render-workflow.d.ts +1 -1
- package/dist/fluent/render-workflow.d.ts.map +1 -1
- package/dist/fluent/render-workflow.js +0 -2
- package/dist/fluent/render-workflow.js.map +1 -1
- package/dist/formats/format-fluent.d.ts.map +1 -1
- package/dist/formats/format-fluent.js +10 -8
- package/dist/formats/format-fluent.js.map +1 -1
- package/dist/formats/format-json.d.ts.map +1 -1
- package/dist/formats/format-json.js +22 -27
- package/dist/formats/format-json.js.map +1 -1
- package/dist/formats/register-core-formats.d.ts +2 -1
- package/dist/formats/register-core-formats.d.ts.map +1 -1
- package/dist/formats/register-core-formats.js +2 -4
- package/dist/formats/register-core-formats.js.map +1 -1
- package/dist/helpers/env.d.ts +1 -1
- package/dist/helpers/env.d.ts.map +1 -1
- package/dist/helpers/expr.d.ts +1 -1
- package/dist/helpers/expr.d.ts.map +1 -1
- package/dist/{harness/authoring/to-provider-chat-turns.d.ts → helpers/provider-chat-turns.d.ts} +7 -7
- package/dist/helpers/provider-chat-turns.d.ts.map +1 -0
- package/dist/{harness/authoring/to-provider-chat-turns.js → helpers/provider-chat-turns.js} +4 -4
- package/dist/helpers/provider-chat-turns.js.map +1 -0
- package/dist/helpers/ref.d.ts +1 -1
- package/dist/helpers/ref.d.ts.map +1 -1
- package/dist/helpers/secrets.d.ts +1 -1
- package/dist/helpers/secrets.d.ts.map +1 -1
- package/dist/helpers/state.d.ts +1 -1
- package/dist/helpers/state.d.ts.map +1 -1
- package/dist/index.d.ts +20 -20
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +18 -19
- package/dist/index.js.map +1 -1
- package/dist/invoke/execute-invoke.d.ts +2 -2
- package/dist/invoke/execute-invoke.d.ts.map +1 -1
- package/dist/invoke/execute-invoke.js +5 -19
- package/dist/invoke/execute-invoke.js.map +1 -1
- package/dist/invoke/invoke-builder.d.ts +1 -3
- package/dist/invoke/invoke-builder.d.ts.map +1 -1
- package/dist/invoke/invoke-builder.js +1 -6
- package/dist/invoke/invoke-builder.js.map +1 -1
- package/dist/media/index.d.ts +1 -1
- package/dist/media/index.d.ts.map +1 -1
- package/dist/media/index.js +1 -1
- package/dist/media/index.js.map +1 -1
- package/dist/media/resolve-file.d.ts +11 -1
- package/dist/media/resolve-file.d.ts.map +1 -1
- package/dist/media/resolve-file.js +11 -6
- package/dist/media/resolve-file.js.map +1 -1
- package/dist/media/write-media.d.ts +1 -1
- package/dist/media/write-media.d.ts.map +1 -1
- package/dist/media/write-media.js +1 -1
- package/dist/media/write-media.js.map +1 -1
- package/dist/patch/apply-patch.d.ts +2 -2
- package/dist/patch/apply-patch.d.ts.map +1 -1
- package/dist/patch/apply-patch.js +1 -1
- package/dist/patch/apply-patch.js.map +1 -1
- package/dist/patch/normalize-input.d.ts +1 -1
- package/dist/patch/normalize-input.d.ts.map +1 -1
- package/dist/patch/normalize-input.js +1 -1
- package/dist/patch/normalize-input.js.map +1 -1
- package/dist/patch/patch-builder.d.ts +1 -1
- package/dist/patch/patch-builder.d.ts.map +1 -1
- package/dist/patch/patch-builder.js.map +1 -1
- package/dist/patch/patch-document.d.ts +2 -2
- package/dist/patch/resolve-path.d.ts +2 -2
- package/dist/patch/resolve-path.d.ts.map +1 -1
- package/dist/patch/resolve-path.js +1 -1
- package/dist/patch/resolve-path.js.map +1 -1
- package/dist/patch/step-index.d.ts +1 -1
- package/dist/patch/step-index.d.ts.map +1 -1
- package/dist/policies/registry-control.d.ts +20 -0
- package/dist/policies/registry-control.d.ts.map +1 -0
- package/dist/policies/registry-control.js +72 -0
- package/dist/policies/registry-control.js.map +1 -0
- package/dist/registry/ensure-bound-extensions.d.ts +1 -1
- package/dist/registry/ensure-bound-extensions.js +2 -2
- package/dist/registry/ensure-bound-extensions.js.map +1 -1
- package/dist/registry/errors.d.ts +1 -1
- package/dist/registry/errors.d.ts.map +1 -1
- package/dist/registry/errors.js +2 -1
- package/dist/registry/errors.js.map +1 -1
- package/dist/registry/extension-catalog.d.ts +3 -18
- package/dist/registry/extension-catalog.d.ts.map +1 -1
- package/dist/registry/extension-catalog.js +3 -25
- package/dist/registry/extension-catalog.js.map +1 -1
- package/dist/registry/registry.d.ts +8 -9
- package/dist/registry/registry.d.ts.map +1 -1
- package/dist/registry/registry.js +9 -10
- package/dist/registry/registry.js.map +1 -1
- package/dist/runtime/capability-execution.d.ts +9 -8
- package/dist/runtime/capability-execution.d.ts.map +1 -1
- package/dist/runtime/capability-execution.js +11 -11
- package/dist/runtime/capability-execution.js.map +1 -1
- package/dist/runtime/commit.d.ts +2 -2
- package/dist/runtime/commit.d.ts.map +1 -1
- package/dist/runtime/context.d.ts +18 -4
- package/dist/runtime/context.d.ts.map +1 -1
- package/dist/runtime/context.js.map +1 -1
- package/dist/runtime/dispatch-capability.d.ts +1 -1
- package/dist/runtime/dispatch-capability.d.ts.map +1 -1
- package/dist/runtime/dispatch-capability.js +3 -3
- package/dist/runtime/dispatch-capability.js.map +1 -1
- package/dist/runtime/executor.d.ts +11 -5
- package/dist/runtime/executor.d.ts.map +1 -1
- package/dist/runtime/in-memory-executor.d.ts +1 -1
- package/dist/runtime/in-memory-executor.d.ts.map +1 -1
- package/dist/runtime/in-memory-executor.js +144 -27
- package/dist/runtime/in-memory-executor.js.map +1 -1
- package/dist/runtime/lifecycle.d.ts +1 -1
- package/dist/runtime/lifecycle.d.ts.map +1 -1
- package/dist/runtime/mutation-records.d.ts +1 -1
- package/dist/runtime/mutation-records.d.ts.map +1 -1
- package/dist/runtime/policy-engine.d.ts +3 -2
- package/dist/runtime/policy-engine.d.ts.map +1 -1
- package/dist/runtime/policy-engine.js +12 -3
- package/dist/runtime/policy-engine.js.map +1 -1
- package/dist/runtime/remote-invoke.d.ts +15 -2
- package/dist/runtime/remote-invoke.d.ts.map +1 -1
- package/dist/runtime/remote-invoke.js +34 -2
- package/dist/runtime/remote-invoke.js.map +1 -1
- package/dist/runtime/resolve-input.d.ts +1 -1
- package/dist/runtime/resolve-input.d.ts.map +1 -1
- package/dist/runtime/resolve-input.js +6 -0
- package/dist/runtime/resolve-input.js.map +1 -1
- package/dist/runtime/runtime-ids.d.ts +4 -4
- package/dist/runtime/runtime-ids.d.ts.map +1 -1
- package/dist/runtime/runtime-ids.js +4 -4
- package/dist/runtime/runtime-ids.js.map +1 -1
- package/dist/runtime/step-order.d.ts +32 -0
- package/dist/runtime/step-order.d.ts.map +1 -0
- package/dist/runtime/step-order.js +85 -0
- package/dist/runtime/step-order.js.map +1 -0
- package/dist/runtime/store.d.ts +1 -1
- package/dist/runtime/store.d.ts.map +1 -1
- package/dist/schema/json-schema.js +1 -1
- package/dist/schema/json-schema.js.map +1 -1
- package/dist/schema/workflow-io.d.ts +1 -1
- package/dist/schema/workflow-io.d.ts.map +1 -1
- package/dist/schemas/decode.result.json +155 -0
- package/dist/schemas/encode.result.json +162 -0
- package/dist/schemas/environment.describe.json +362 -0
- package/dist/schemas/environment.manifest.json +159 -0
- package/dist/schemas/environment.search.json +72 -0
- package/dist/schemas/patch.json +104 -0
- package/dist/schemas/patch.result.json +260 -0
- package/dist/schemas/requirements.json +102 -0
- package/dist/schemas/run.journal.json +142 -0
- package/dist/schemas/run.request.json +491 -0
- package/dist/schemas/run.result.json +230 -0
- package/dist/schemas/validation.result.json +89 -0
- package/dist/schemas/workflow.manifest.json +457 -0
- package/dist/testing/index.d.ts +2 -2
- package/dist/testing/index.d.ts.map +1 -1
- package/dist/testing/index.js +2 -2
- package/dist/testing/index.js.map +1 -1
- package/dist/testing/test-extension.d.ts +3 -2
- package/dist/testing/test-extension.d.ts.map +1 -1
- package/dist/testing/test-extension.js +39 -51
- package/dist/testing/test-extension.js.map +1 -1
- package/dist/testing/test-lifecycle-extension.d.ts +5 -4
- package/dist/testing/test-lifecycle-extension.d.ts.map +1 -1
- package/dist/testing/test-lifecycle-extension.js +28 -25
- package/dist/testing/test-lifecycle-extension.js.map +1 -1
- package/dist/types/capabilities.d.ts +39 -0
- package/dist/types/capabilities.d.ts.map +1 -0
- package/dist/types/capabilities.js +2 -0
- package/dist/types/capabilities.js.map +1 -0
- package/dist/types/capability-execution.d.ts +5 -0
- package/dist/types/capability-execution.d.ts.map +1 -0
- package/dist/types/capability-execution.js +3 -0
- package/dist/types/capability-execution.js.map +1 -0
- package/dist/types/capability-metadata.d.ts +216 -0
- package/dist/types/capability-metadata.d.ts.map +1 -0
- package/dist/types/capability-metadata.js +138 -0
- package/dist/types/capability-metadata.js.map +1 -0
- package/dist/types/encoding.d.ts +103 -0
- package/dist/types/encoding.d.ts.map +1 -0
- package/dist/types/encoding.js +29 -0
- package/dist/types/encoding.js.map +1 -0
- package/dist/types/environment.d.ts +155 -0
- package/dist/types/environment.d.ts.map +1 -0
- package/dist/types/environment.js +2 -0
- package/dist/types/environment.js.map +1 -0
- package/dist/types/errors.d.ts +93 -0
- package/dist/types/errors.d.ts.map +1 -0
- package/dist/types/errors.js +89 -0
- package/dist/types/errors.js.map +1 -0
- package/dist/types/file-ref.d.ts +84 -0
- package/dist/types/file-ref.d.ts.map +1 -0
- package/dist/types/file-ref.js +117 -0
- package/dist/types/file-ref.js.map +1 -0
- package/dist/types/image-output.d.ts +32 -0
- package/dist/types/image-output.d.ts.map +1 -0
- package/dist/types/image-output.js +11 -0
- package/dist/types/image-output.js.map +1 -0
- package/dist/types/index.d.ts +36 -0
- package/dist/types/index.d.ts.map +1 -0
- package/dist/types/index.js +13 -0
- package/dist/types/index.js.map +1 -0
- package/dist/types/invoke.d.ts +51 -0
- package/dist/types/invoke.d.ts.map +1 -0
- package/dist/types/invoke.js +32 -0
- package/dist/types/invoke.js.map +1 -0
- package/dist/types/journal.d.ts +113 -0
- package/dist/types/journal.d.ts.map +1 -0
- package/dist/types/journal.js +3 -0
- package/dist/types/journal.js.map +1 -0
- package/dist/types/lifecycle.d.ts +27 -0
- package/dist/types/lifecycle.d.ts.map +1 -0
- package/dist/types/lifecycle.js +2 -0
- package/dist/types/lifecycle.js.map +1 -0
- package/dist/types/model.d.ts +102 -0
- package/dist/types/model.d.ts.map +1 -0
- package/dist/types/model.js +51 -0
- package/dist/types/model.js.map +1 -0
- package/dist/types/patch-errors.d.ts +11 -0
- package/dist/types/patch-errors.d.ts.map +1 -0
- package/dist/types/patch-errors.js +9 -0
- package/dist/types/patch-errors.js.map +1 -0
- package/dist/types/patch.d.ts +51 -0
- package/dist/types/patch.d.ts.map +1 -0
- package/dist/types/patch.js +2 -0
- package/dist/types/patch.js.map +1 -0
- package/dist/types/registry.d.ts +24 -0
- package/dist/types/registry.d.ts.map +1 -0
- package/dist/types/registry.js +2 -0
- package/dist/types/registry.js.map +1 -0
- package/dist/types/requirements.d.ts +42 -0
- package/dist/types/requirements.d.ts.map +1 -0
- package/dist/types/requirements.js +2 -0
- package/dist/types/requirements.js.map +1 -0
- package/dist/types/run-events.d.ts +32 -0
- package/dist/types/run-events.d.ts.map +1 -0
- package/dist/types/run-events.js +8 -0
- package/dist/types/run-events.js.map +1 -0
- package/dist/types/run.d.ts +48 -0
- package/dist/types/run.d.ts.map +1 -0
- package/dist/types/run.js +2 -0
- package/dist/types/run.js.map +1 -0
- package/dist/types/schema.d.ts +58 -0
- package/dist/types/schema.d.ts.map +1 -0
- package/dist/types/schema.js +2 -0
- package/dist/types/schema.js.map +1 -0
- package/dist/types/store.d.ts +30 -0
- package/dist/types/store.d.ts.map +1 -0
- package/dist/types/store.js +2 -0
- package/dist/types/store.js.map +1 -0
- package/dist/types/validation.d.ts +20 -0
- package/dist/types/validation.d.ts.map +1 -0
- package/dist/types/validation.js +2 -0
- package/dist/types/validation.js.map +1 -0
- package/dist/types/version.d.ts +5 -0
- package/dist/types/version.d.ts.map +1 -0
- package/dist/types/version.js +3 -0
- package/dist/types/version.js.map +1 -0
- package/dist/types/workflow.d.ts +80 -0
- package/dist/types/workflow.d.ts.map +1 -0
- package/dist/types/workflow.js +2 -0
- package/dist/types/workflow.js.map +1 -0
- package/dist/util/semver-range.d.ts +6 -0
- package/dist/util/semver-range.d.ts.map +1 -0
- package/dist/util/semver-range.js +9 -0
- package/dist/util/semver-range.js.map +1 -0
- package/dist/validate/environment.d.ts +5 -2
- package/dist/validate/environment.d.ts.map +1 -1
- package/dist/validate/environment.js +38 -19
- package/dist/validate/environment.js.map +1 -1
- package/dist/validate/workflow-schema.d.ts +17 -31
- package/dist/validate/workflow-schema.d.ts.map +1 -1
- package/dist/validate/workflow-schema.js +1 -10
- package/dist/validate/workflow-schema.js.map +1 -1
- package/dist/validate/workflow.d.ts +1 -1
- package/dist/validate/workflow.d.ts.map +1 -1
- package/dist/validate/workflow.js +2 -11
- package/dist/validate/workflow.js.map +1 -1
- package/dist/validate/zod-mapper.d.ts +1 -1
- package/dist/validate/zod-mapper.d.ts.map +1 -1
- package/dist/workflow/assign-unique-step-ids.d.ts +1 -1
- package/dist/workflow/assign-unique-step-ids.d.ts.map +1 -1
- package/dist/workflow/builder.d.ts +17 -1
- package/dist/workflow/builder.d.ts.map +1 -1
- package/dist/workflow/builder.js +27 -1
- package/dist/workflow/builder.js.map +1 -1
- package/dist/workflow/flow.d.ts +2 -2
- package/dist/workflow/flow.d.ts.map +1 -1
- package/dist/workflow/requirements.d.ts +34 -0
- package/dist/workflow/requirements.d.ts.map +1 -0
- package/dist/workflow/requirements.js +135 -0
- package/dist/workflow/requirements.js.map +1 -0
- package/package.json +13 -86
- package/dist/bindings/harness.d.ts +0 -24
- package/dist/bindings/harness.d.ts.map +0 -1
- package/dist/bindings/harness.js +0 -44
- package/dist/bindings/harness.js.map +0 -1
- package/dist/bindings/runtime.d.ts +0 -19
- package/dist/bindings/runtime.d.ts.map +0 -1
- package/dist/bindings/runtime.js +0 -32
- package/dist/bindings/runtime.js.map +0 -1
- package/dist/browser-runtime-entry.d.ts +0 -61
- package/dist/browser-runtime-entry.d.ts.map +0 -1
- package/dist/browser-runtime-entry.js +0 -54
- package/dist/browser-runtime-entry.js.map +0 -1
- package/dist/browser.d.ts +0 -20
- package/dist/browser.d.ts.map +0 -1
- package/dist/browser.js +0 -20
- package/dist/browser.js.map +0 -1
- package/dist/compile/compile-harness-artifact.d.ts +0 -30
- package/dist/compile/compile-harness-artifact.d.ts.map +0 -1
- package/dist/compile/compile-harness-artifact.js +0 -43
- package/dist/compile/compile-harness-artifact.js.map +0 -1
- package/dist/compile/entry.d.ts +0 -3
- package/dist/compile/entry.d.ts.map +0 -1
- package/dist/compile/entry.js +0 -3
- package/dist/compile/entry.js.map +0 -1
- package/dist/compile/evaluate-browser.d.ts +0 -7
- package/dist/compile/evaluate-browser.d.ts.map +0 -1
- package/dist/compile/evaluate-browser.js +0 -26
- package/dist/compile/evaluate-browser.js.map +0 -1
- package/dist/compile/evaluate-harness-artifact.d.ts +0 -3
- package/dist/compile/evaluate-harness-artifact.d.ts.map +0 -1
- package/dist/compile/evaluate-harness-artifact.js +0 -17
- package/dist/compile/evaluate-harness-artifact.js.map +0 -1
- package/dist/compile/evaluate.d.ts +0 -5
- package/dist/compile/evaluate.d.ts.map +0 -1
- package/dist/compile/evaluate.js +0 -20
- package/dist/compile/evaluate.js.map +0 -1
- package/dist/compile/extract-harness-artifact.d.ts +0 -9
- package/dist/compile/extract-harness-artifact.d.ts.map +0 -1
- package/dist/compile/extract-harness-artifact.js +0 -33
- package/dist/compile/extract-harness-artifact.js.map +0 -1
- package/dist/compile/index.browser.d.ts +0 -49
- package/dist/compile/index.browser.d.ts.map +0 -1
- package/dist/compile/index.browser.js +0 -93
- package/dist/compile/index.browser.js.map +0 -1
- package/dist/compile/prepare-browser-source.d.ts +0 -3
- package/dist/compile/prepare-browser-source.d.ts.map +0 -1
- package/dist/compile/prepare-browser-source.js +0 -25
- package/dist/compile/prepare-browser-source.js.map +0 -1
- package/dist/compile/transpile-browser.d.ts +0 -44
- package/dist/compile/transpile-browser.d.ts.map +0 -1
- package/dist/compile/transpile-browser.js +0 -120
- package/dist/compile/transpile-browser.js.map +0 -1
- package/dist/compile/transpile.d.ts +0 -27
- package/dist/compile/transpile.d.ts.map +0 -1
- package/dist/compile/transpile.js +0 -150
- package/dist/compile/transpile.js.map +0 -1
- package/dist/definitions/runtime.d.ts +0 -22
- package/dist/definitions/runtime.d.ts.map +0 -1
- package/dist/definitions/runtime.js +0 -48
- package/dist/definitions/runtime.js.map +0 -1
- package/dist/encoding/strip-harness-typescript-output.d.ts +0 -7
- package/dist/encoding/strip-harness-typescript-output.d.ts.map +0 -1
- package/dist/encoding/strip-harness-typescript-output.js +0 -40
- package/dist/encoding/strip-harness-typescript-output.js.map +0 -1
- package/dist/encoding/strip-markdown-fences.d.ts +0 -6
- package/dist/encoding/strip-markdown-fences.d.ts.map +0 -1
- package/dist/encoding/strip-markdown-fences.js +0 -23
- package/dist/encoding/strip-markdown-fences.js.map +0 -1
- package/dist/feedback/collect.d.ts +0 -32
- package/dist/feedback/collect.d.ts.map +0 -1
- package/dist/feedback/collect.js +0 -97
- package/dist/feedback/collect.js.map +0 -1
- package/dist/feedback/index.d.ts +0 -2
- package/dist/feedback/index.d.ts.map +0 -1
- package/dist/feedback/index.js +0 -2
- package/dist/feedback/index.js.map +0 -1
- package/dist/harness/authoring/chat-result.d.ts +0 -19
- package/dist/harness/authoring/chat-result.d.ts.map +0 -1
- package/dist/harness/authoring/chat-result.js +0 -56
- package/dist/harness/authoring/chat-result.js.map +0 -1
- package/dist/harness/authoring/classified-intent.d.ts +0 -46
- package/dist/harness/authoring/classified-intent.d.ts.map +0 -1
- package/dist/harness/authoring/classified-intent.js +0 -261
- package/dist/harness/authoring/classified-intent.js.map +0 -1
- package/dist/harness/authoring/context-policy.d.ts +0 -47
- package/dist/harness/authoring/context-policy.d.ts.map +0 -1
- package/dist/harness/authoring/context-policy.js +0 -160
- package/dist/harness/authoring/context-policy.js.map +0 -1
- package/dist/harness/authoring/describe-for-prompt.d.ts +0 -19
- package/dist/harness/authoring/describe-for-prompt.d.ts.map +0 -1
- package/dist/harness/authoring/describe-for-prompt.js +0 -105
- package/dist/harness/authoring/describe-for-prompt.js.map +0 -1
- package/dist/harness/authoring/encode-prompt-text.d.ts +0 -7
- package/dist/harness/authoring/encode-prompt-text.d.ts.map +0 -1
- package/dist/harness/authoring/encode-prompt-text.js +0 -13
- package/dist/harness/authoring/encode-prompt-text.js.map +0 -1
- package/dist/harness/authoring/environment-question.d.ts +0 -6
- package/dist/harness/authoring/environment-question.d.ts.map +0 -1
- package/dist/harness/authoring/environment-question.js +0 -11
- package/dist/harness/authoring/environment-question.js.map +0 -1
- package/dist/harness/authoring/index.d.ts +0 -23
- package/dist/harness/authoring/index.d.ts.map +0 -1
- package/dist/harness/authoring/index.js +0 -22
- package/dist/harness/authoring/index.js.map +0 -1
- package/dist/harness/authoring/normalize-create-eql-output.d.ts +0 -27
- package/dist/harness/authoring/normalize-create-eql-output.d.ts.map +0 -1
- package/dist/harness/authoring/normalize-create-eql-output.js +0 -284
- package/dist/harness/authoring/normalize-create-eql-output.js.map +0 -1
- package/dist/harness/authoring/normalize-intent-eql-output.d.ts +0 -7
- package/dist/harness/authoring/normalize-intent-eql-output.d.ts.map +0 -1
- package/dist/harness/authoring/normalize-intent-eql-output.js +0 -59
- package/dist/harness/authoring/normalize-intent-eql-output.js.map +0 -1
- package/dist/harness/authoring/normalize-patch-eql-output.d.ts +0 -28
- package/dist/harness/authoring/normalize-patch-eql-output.d.ts.map +0 -1
- package/dist/harness/authoring/normalize-patch-eql-output.js +0 -202
- package/dist/harness/authoring/normalize-patch-eql-output.js.map +0 -1
- package/dist/harness/authoring/normalize-workflow-output.d.ts +0 -6
- package/dist/harness/authoring/normalize-workflow-output.d.ts.map +0 -1
- package/dist/harness/authoring/normalize-workflow-output.js +0 -51
- package/dist/harness/authoring/normalize-workflow-output.js.map +0 -1
- package/dist/harness/authoring/patch-clear-intent.d.ts +0 -17
- package/dist/harness/authoring/patch-clear-intent.d.ts.map +0 -1
- package/dist/harness/authoring/patch-clear-intent.js +0 -46
- package/dist/harness/authoring/patch-clear-intent.js.map +0 -1
- package/dist/harness/authoring/presentation.d.ts +0 -57
- package/dist/harness/authoring/presentation.d.ts.map +0 -1
- package/dist/harness/authoring/presentation.js +0 -137
- package/dist/harness/authoring/presentation.js.map +0 -1
- package/dist/harness/authoring/recover-structured-patch.d.ts +0 -21
- package/dist/harness/authoring/recover-structured-patch.d.ts.map +0 -1
- package/dist/harness/authoring/recover-structured-patch.js +0 -230
- package/dist/harness/authoring/recover-structured-patch.js.map +0 -1
- package/dist/harness/authoring/repair-workflow-json.d.ts +0 -16
- package/dist/harness/authoring/repair-workflow-json.d.ts.map +0 -1
- package/dist/harness/authoring/repair-workflow-json.js +0 -183
- package/dist/harness/authoring/repair-workflow-json.js.map +0 -1
- package/dist/harness/authoring/safe-reply.d.ts +0 -71
- package/dist/harness/authoring/safe-reply.d.ts.map +0 -1
- package/dist/harness/authoring/safe-reply.js +0 -291
- package/dist/harness/authoring/safe-reply.js.map +0 -1
- package/dist/harness/authoring/summarize-capability-schema.d.ts +0 -20
- package/dist/harness/authoring/summarize-capability-schema.d.ts.map +0 -1
- package/dist/harness/authoring/summarize-capability-schema.js +0 -141
- package/dist/harness/authoring/summarize-capability-schema.js.map +0 -1
- package/dist/harness/authoring/summarize-environment.d.ts +0 -77
- package/dist/harness/authoring/summarize-environment.d.ts.map +0 -1
- package/dist/harness/authoring/summarize-environment.js +0 -298
- package/dist/harness/authoring/summarize-environment.js.map +0 -1
- package/dist/harness/authoring/summarize-probe-context.d.ts +0 -31
- package/dist/harness/authoring/summarize-probe-context.d.ts.map +0 -1
- package/dist/harness/authoring/summarize-probe-context.js +0 -134
- package/dist/harness/authoring/summarize-probe-context.js.map +0 -1
- package/dist/harness/authoring/summarize-run-context.d.ts +0 -28
- package/dist/harness/authoring/summarize-run-context.d.ts.map +0 -1
- package/dist/harness/authoring/summarize-run-context.js +0 -40
- package/dist/harness/authoring/summarize-run-context.js.map +0 -1
- package/dist/harness/authoring/summarize-workflow.d.ts +0 -37
- package/dist/harness/authoring/summarize-workflow.d.ts.map +0 -1
- package/dist/harness/authoring/summarize-workflow.js +0 -148
- package/dist/harness/authoring/summarize-workflow.js.map +0 -1
- package/dist/harness/authoring/to-provider-chat-turns.d.ts.map +0 -1
- package/dist/harness/authoring/to-provider-chat-turns.js.map +0 -1
- package/dist/harness/call-model.d.ts +0 -15
- package/dist/harness/call-model.d.ts.map +0 -1
- package/dist/harness/call-model.js +0 -59
- package/dist/harness/call-model.js.map +0 -1
- package/dist/harness/context.d.ts +0 -28
- package/dist/harness/context.d.ts.map +0 -1
- package/dist/harness/context.js +0 -19
- package/dist/harness/context.js.map +0 -1
- package/dist/harness/define-harness.d.ts +0 -37
- package/dist/harness/define-harness.d.ts.map +0 -1
- package/dist/harness/define-harness.js +0 -88
- package/dist/harness/define-harness.js.map +0 -1
- package/dist/harness/definitions/test-minimal-harness.d.ts +0 -13
- package/dist/harness/definitions/test-minimal-harness.d.ts.map +0 -1
- package/dist/harness/definitions/test-minimal-harness.js +0 -45
- package/dist/harness/definitions/test-minimal-harness.js.map +0 -1
- package/dist/harness/execute-harness.d.ts +0 -9
- package/dist/harness/execute-harness.d.ts.map +0 -1
- package/dist/harness/execute-harness.js +0 -142
- package/dist/harness/execute-harness.js.map +0 -1
- package/dist/harness/format-resolve.d.ts +0 -26
- package/dist/harness/format-resolve.d.ts.map +0 -1
- package/dist/harness/format-resolve.js +0 -50
- package/dist/harness/format-resolve.js.map +0 -1
- package/dist/harness/harness-catalog.d.ts +0 -41
- package/dist/harness/harness-catalog.d.ts.map +0 -1
- package/dist/harness/harness-catalog.js +0 -66
- package/dist/harness/harness-catalog.js.map +0 -1
- package/dist/harness/index.d.ts +0 -11
- package/dist/harness/index.d.ts.map +0 -1
- package/dist/harness/index.js +0 -9
- package/dist/harness/index.js.map +0 -1
- package/dist/harness/prompts/build-repair-hint.d.ts +0 -8
- package/dist/harness/prompts/build-repair-hint.d.ts.map +0 -1
- package/dist/harness/prompts/build-repair-hint.js +0 -28
- package/dist/harness/prompts/build-repair-hint.js.map +0 -1
- package/dist/harness/prompts/build-system-prompt.d.ts +0 -7
- package/dist/harness/prompts/build-system-prompt.d.ts.map +0 -1
- package/dist/harness/prompts/build-system-prompt.js +0 -97
- package/dist/harness/prompts/build-system-prompt.js.map +0 -1
- package/dist/harness/prompts/eql-primer.d.ts +0 -14
- package/dist/harness/prompts/eql-primer.d.ts.map +0 -1
- package/dist/harness/prompts/eql-primer.js +0 -221
- package/dist/harness/prompts/eql-primer.js.map +0 -1
- package/dist/harness/prompts/fixtures-root.d.ts +0 -5
- package/dist/harness/prompts/fixtures-root.d.ts.map +0 -1
- package/dist/harness/prompts/fixtures-root.js +0 -7
- package/dist/harness/prompts/fixtures-root.js.map +0 -1
- package/dist/harness/prompts/harness-prompt-fixture-schema.d.ts +0 -95
- package/dist/harness/prompts/harness-prompt-fixture-schema.d.ts.map +0 -1
- package/dist/harness/prompts/harness-prompt-fixture-schema.js +0 -28
- package/dist/harness/prompts/harness-prompt-fixture-schema.js.map +0 -1
- package/dist/harness/prompts/identity-primer.d.ts +0 -6
- package/dist/harness/prompts/identity-primer.d.ts.map +0 -1
- package/dist/harness/prompts/identity-primer.js +0 -9
- package/dist/harness/prompts/identity-primer.js.map +0 -1
- package/dist/harness/prompts/index.d.ts +0 -7
- package/dist/harness/prompts/index.d.ts.map +0 -1
- package/dist/harness/prompts/index.js +0 -7
- package/dist/harness/prompts/index.js.map +0 -1
- package/dist/harness/prompts/load-schema-example.browser.d.ts +0 -11
- package/dist/harness/prompts/load-schema-example.browser.d.ts.map +0 -1
- package/dist/harness/prompts/load-schema-example.browser.js +0 -70
- package/dist/harness/prompts/load-schema-example.browser.js.map +0 -1
- package/dist/harness/prompts/load-schema-example.d.ts +0 -11
- package/dist/harness/prompts/load-schema-example.d.ts.map +0 -1
- package/dist/harness/prompts/load-schema-example.js +0 -22
- package/dist/harness/prompts/load-schema-example.js.map +0 -1
- package/dist/harness/prompts/load-schema-example.node.d.ts +0 -7
- package/dist/harness/prompts/load-schema-example.node.d.ts.map +0 -1
- package/dist/harness/prompts/load-schema-example.node.js +0 -38
- package/dist/harness/prompts/load-schema-example.node.js.map +0 -1
- package/dist/harness/prompts/schema-example-files.d.ts +0 -7
- package/dist/harness/prompts/schema-example-files.d.ts.map +0 -1
- package/dist/harness/prompts/schema-example-files.js +0 -12
- package/dist/harness/prompts/schema-example-files.js.map +0 -1
- package/dist/harness/prompts/typescript-primer.d.ts +0 -11
- package/dist/harness/prompts/typescript-primer.d.ts.map +0 -1
- package/dist/harness/prompts/typescript-primer.js +0 -80
- package/dist/harness/prompts/typescript-primer.js.map +0 -1
- package/dist/harness/repair-loop-timing.d.ts +0 -17
- package/dist/harness/repair-loop-timing.d.ts.map +0 -1
- package/dist/harness/repair-loop-timing.js +0 -89
- package/dist/harness/repair-loop-timing.js.map +0 -1
- package/dist/harness/resolve-harness-binding.d.ts +0 -10
- package/dist/harness/resolve-harness-binding.d.ts.map +0 -1
- package/dist/harness/resolve-harness-binding.js +0 -14
- package/dist/harness/resolve-harness-binding.js.map +0 -1
- package/dist/harness/run-model-repair-loop.d.ts +0 -45
- package/dist/harness/run-model-repair-loop.d.ts.map +0 -1
- package/dist/harness/run-model-repair-loop.js +0 -57
- package/dist/harness/run-model-repair-loop.js.map +0 -1
- package/dist/harness/types.d.ts +0 -34
- package/dist/harness/types.d.ts.map +0 -1
- package/dist/harness/types.js +0 -2
- package/dist/harness/types.js.map +0 -1
- package/dist/helpers/browser.d.ts +0 -12
- package/dist/helpers/browser.d.ts.map +0 -1
- package/dist/helpers/browser.js +0 -12
- package/dist/helpers/browser.js.map +0 -1
- package/dist/loaders/files.d.ts +0 -13
- package/dist/loaders/files.d.ts.map +0 -1
- package/dist/loaders/files.js +0 -66
- package/dist/loaders/files.js.map +0 -1
- package/dist/loaders/index.d.ts +0 -2
- package/dist/loaders/index.d.ts.map +0 -1
- package/dist/loaders/index.js +0 -2
- package/dist/loaders/index.js.map +0 -1
- package/dist/loaders/read-media-file.d.ts +0 -6
- package/dist/loaders/read-media-file.d.ts.map +0 -1
- package/dist/loaders/read-media-file.js +0 -10
- package/dist/loaders/read-media-file.js.map +0 -1
- package/dist/node.d.ts +0 -8
- package/dist/node.d.ts.map +0 -1
- package/dist/node.js +0 -8
- package/dist/node.js.map +0 -1
- package/dist/runtime/test-session-state.d.ts +0 -23
- package/dist/runtime/test-session-state.d.ts.map +0 -1
- package/dist/runtime/test-session-state.js +0 -62
- package/dist/runtime/test-session-state.js.map +0 -1
- package/dist/test-session/index.d.ts +0 -2
- package/dist/test-session/index.d.ts.map +0 -1
- package/dist/test-session/index.js +0 -2
- package/dist/test-session/index.js.map +0 -1
- package/dist/test-session/test-session.d.ts +0 -36
- package/dist/test-session/test-session.d.ts.map +0 -1
- package/dist/test-session/test-session.js +0 -115
- package/dist/test-session/test-session.js.map +0 -1
- package/dist/testing/test-model-generate.d.ts +0 -15
- package/dist/testing/test-model-generate.d.ts.map +0 -1
- package/dist/testing/test-model-generate.js +0 -71
- package/dist/testing/test-model-generate.js.map +0 -1
- package/dist/validate/harness.d.ts +0 -11
- package/dist/validate/harness.d.ts.map +0 -1
- package/dist/validate/harness.js +0 -72
- package/dist/validate/harness.js.map +0 -1
package/dist/node.d.ts
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Node host conveniences: file loaders and workflow compile (native esbuild).
|
|
3
|
-
* Import from `@executioncontrolprotocol/core/node` in Node runtimes; browser apps use `@executioncontrolprotocol/core/browser`.
|
|
4
|
-
* @packageDocumentation
|
|
5
|
-
*/
|
|
6
|
-
export * from "./loaders/index.js";
|
|
7
|
-
export { compileWorkflowSource, compileAndValidateWorkflowSource, extractWorkflowFromModule, compileHarnessArtifactSource, extractArtifactFromModule, type CompileWorkflowResult, type CompileWorkflowSourceOptions, type CompileDiagnostic, type CompileHarnessArtifactResult, type CompileHarnessArtifactSourceOptions, type HarnessArtifactSchema, } from "./compile/entry.js";
|
|
8
|
-
//# sourceMappingURL=node.d.ts.map
|
package/dist/node.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"node.d.ts","sourceRoot":"","sources":["../src/node.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,cAAc,oBAAoB,CAAA;AAClC,OAAO,EACL,qBAAqB,EACrB,gCAAgC,EAChC,yBAAyB,EACzB,4BAA4B,EAC5B,yBAAyB,EACzB,KAAK,qBAAqB,EAC1B,KAAK,4BAA4B,EACjC,KAAK,iBAAiB,EACtB,KAAK,4BAA4B,EACjC,KAAK,mCAAmC,EACxC,KAAK,qBAAqB,GAC3B,MAAM,oBAAoB,CAAA"}
|
package/dist/node.js
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Node host conveniences: file loaders and workflow compile (native esbuild).
|
|
3
|
-
* Import from `@executioncontrolprotocol/core/node` in Node runtimes; browser apps use `@executioncontrolprotocol/core/browser`.
|
|
4
|
-
* @packageDocumentation
|
|
5
|
-
*/
|
|
6
|
-
export * from "./loaders/index.js";
|
|
7
|
-
export { compileWorkflowSource, compileAndValidateWorkflowSource, extractWorkflowFromModule, compileHarnessArtifactSource, extractArtifactFromModule, } from "./compile/entry.js";
|
|
8
|
-
//# sourceMappingURL=node.js.map
|
package/dist/node.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"node.js","sourceRoot":"","sources":["../src/node.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,cAAc,oBAAoB,CAAA;AAClC,OAAO,EACL,qBAAqB,EACrB,gCAAgC,EAChC,yBAAyB,EACzB,4BAA4B,EAC5B,yBAAyB,GAO1B,MAAM,oBAAoB,CAAA"}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import type { StepNode, StepRunRecord, WorkflowManifest, WorkflowNode } from "@executioncontrolprotocol/types";
|
|
2
|
-
/**
|
|
3
|
-
* Flatten leaf steps in document-order DFS (test order).
|
|
4
|
-
* @category Test
|
|
5
|
-
*/
|
|
6
|
-
export declare function flattenTestStepOrder(nodes: WorkflowNode[]): StepNode[];
|
|
7
|
-
/**
|
|
8
|
-
* Find a leaf step by id in test order.
|
|
9
|
-
* @category Test
|
|
10
|
-
*/
|
|
11
|
-
export declare function findTestStep(workflow: WorkflowManifest, stepId: string): StepNode | undefined;
|
|
12
|
-
/**
|
|
13
|
-
* Clear history and `.as` state keys for steps after `stepId` in test order.
|
|
14
|
-
* Does not modify the target step or earlier steps.
|
|
15
|
-
* @category Test
|
|
16
|
-
*/
|
|
17
|
-
export declare function clearDownstreamTestState(workflow: WorkflowManifest, state: Record<string, unknown>, history: Record<string, StepRunRecord>, stepId: string): void;
|
|
18
|
-
/**
|
|
19
|
-
* Whether `stepId` is the last leaf step in test order.
|
|
20
|
-
* @category Test
|
|
21
|
-
*/
|
|
22
|
-
export declare function isLastTestStep(workflow: WorkflowManifest, stepId: string): boolean;
|
|
23
|
-
//# sourceMappingURL=test-session-state.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"test-session-state.d.ts","sourceRoot":"","sources":["../../src/runtime/test-session-state.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,QAAQ,EACR,aAAa,EACb,gBAAgB,EAChB,YAAY,EACb,MAAM,iCAAiC,CAAA;AAExC;;;GAGG;AACH,wBAAgB,oBAAoB,CAAC,KAAK,EAAE,YAAY,EAAE,GAAG,QAAQ,EAAE,CAiBtE;AAED;;;GAGG;AACH,wBAAgB,YAAY,CAC1B,QAAQ,EAAE,gBAAgB,EAC1B,MAAM,EAAE,MAAM,GACb,QAAQ,GAAG,SAAS,CAEtB;AAED;;;;GAIG;AACH,wBAAgB,wBAAwB,CACtC,QAAQ,EAAE,gBAAgB,EAC1B,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAC9B,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,aAAa,CAAC,EACtC,MAAM,EAAE,MAAM,GACb,IAAI,CAaN;AAED;;;GAGG;AACH,wBAAgB,cAAc,CAAC,QAAQ,EAAE,gBAAgB,EAAE,MAAM,EAAE,MAAM,GAAG,OAAO,CAGlF"}
|
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Flatten leaf steps in document-order DFS (test order).
|
|
3
|
-
* @category Test
|
|
4
|
-
*/
|
|
5
|
-
export function flattenTestStepOrder(nodes) {
|
|
6
|
-
const out = [];
|
|
7
|
-
const walk = (list) => {
|
|
8
|
-
for (const node of list) {
|
|
9
|
-
if (node.type === "parallel") {
|
|
10
|
-
for (const branch of node.branches)
|
|
11
|
-
walk(branch);
|
|
12
|
-
}
|
|
13
|
-
else if (node.type === "branch") {
|
|
14
|
-
for (const b of node.branches)
|
|
15
|
-
walk(b.steps);
|
|
16
|
-
}
|
|
17
|
-
else if (node.type === "loop") {
|
|
18
|
-
walk(node.steps);
|
|
19
|
-
}
|
|
20
|
-
else {
|
|
21
|
-
out.push(node);
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
};
|
|
25
|
-
walk(nodes);
|
|
26
|
-
return out;
|
|
27
|
-
}
|
|
28
|
-
/**
|
|
29
|
-
* Find a leaf step by id in test order.
|
|
30
|
-
* @category Test
|
|
31
|
-
*/
|
|
32
|
-
export function findTestStep(workflow, stepId) {
|
|
33
|
-
return flattenTestStepOrder(workflow.steps).find((s) => s.id === stepId);
|
|
34
|
-
}
|
|
35
|
-
/**
|
|
36
|
-
* Clear history and `.as` state keys for steps after `stepId` in test order.
|
|
37
|
-
* Does not modify the target step or earlier steps.
|
|
38
|
-
* @category Test
|
|
39
|
-
*/
|
|
40
|
-
export function clearDownstreamTestState(workflow, state, history, stepId) {
|
|
41
|
-
const order = flattenTestStepOrder(workflow.steps);
|
|
42
|
-
const idx = order.findIndex((s) => s.id === stepId);
|
|
43
|
-
if (idx < 0) {
|
|
44
|
-
throw new Error(`Unknown step id for test clear-downstream: ${stepId}`);
|
|
45
|
-
}
|
|
46
|
-
for (let i = idx + 1; i < order.length; i++) {
|
|
47
|
-
const step = order[i];
|
|
48
|
-
delete history[step.id];
|
|
49
|
-
if (step.as !== undefined) {
|
|
50
|
-
delete state[step.as];
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
|
-
/**
|
|
55
|
-
* Whether `stepId` is the last leaf step in test order.
|
|
56
|
-
* @category Test
|
|
57
|
-
*/
|
|
58
|
-
export function isLastTestStep(workflow, stepId) {
|
|
59
|
-
const order = flattenTestStepOrder(workflow.steps);
|
|
60
|
-
return order.length > 0 && order[order.length - 1].id === stepId;
|
|
61
|
-
}
|
|
62
|
-
//# sourceMappingURL=test-session-state.js.map
|
|
@@ -1 +0,0 @@
|
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B,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAA;IAClD,MAAM,GAAG,GAAG,KAAK,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,EAAE,KAAK,MAAM,CAAC,CAAA;IACnD,IAAI,GAAG,GAAG,CAAC,EAAE,CAAC;QACZ,MAAM,IAAI,KAAK,CAAC,8CAA8C,MAAM,EAAE,CAAC,CAAA;IACzE,CAAC;IACD,KAAK,IAAI,CAAC,GAAG,GAAG,GAAG,CAAC,EAAE,CAAC,GAAG,KAAK,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE,CAAC;QAC5C,MAAM,IAAI,GAAG,KAAK,CAAC,CAAC,CAAE,CAAA;QACtB,OAAO,OAAO,CAAC,IAAI,CAAC,EAAE,CAAC,CAAA;QACvB,IAAI,IAAI,CAAC,EAAE,KAAK,SAAS,EAAE,CAAC;YAC1B,OAAO,KAAK,CAAC,IAAI,CAAC,EAAE,CAAC,CAAA;QACvB,CAAC;IACH,CAAC;AACH,CAAC;AAED;;;GAGG;AACH,MAAM,UAAU,cAAc,CAAC,QAA0B,EAAE,MAAc;IACvE,MAAM,KAAK,GAAG,oBAAoB,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAA;IAClD,OAAO,KAAK,CAAC,MAAM,GAAG,CAAC,IAAI,KAAK,CAAC,KAAK,CAAC,MAAM,GAAG,CAAC,CAAE,CAAC,EAAE,KAAK,MAAM,CAAA;AACnE,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/test-session/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,wBAAwB,EACxB,kBAAkB,EAClB,KAAK,WAAW,EAChB,KAAK,kBAAkB,EACvB,KAAK,uBAAuB,GAC7B,MAAM,mBAAmB,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/test-session/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,wBAAwB,EACxB,kBAAkB,GAInB,MAAM,mBAAmB,CAAA"}
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import type { TestSessionSnapshot, WorkflowManifest } from "@executioncontrolprotocol/types";
|
|
2
|
-
import type { Environment } from "../environment/environment.js";
|
|
3
|
-
/** Options for starting a test session. @category Test */
|
|
4
|
-
export interface TestSessionStartOptions {
|
|
5
|
-
/** Workflow input seed. */
|
|
6
|
-
input?: Record<string, unknown>;
|
|
7
|
-
}
|
|
8
|
-
/** Fluent builder for {@link TestSession}. @category Test */
|
|
9
|
-
export interface TestSessionBuilder {
|
|
10
|
-
/** Set start options. */
|
|
11
|
-
with(options: TestSessionStartOptions): this;
|
|
12
|
-
/** Create an idle session (does not execute steps). */
|
|
13
|
-
start(): Promise<TestSession>;
|
|
14
|
-
}
|
|
15
|
-
/** In-process workflow test session (run-to / rerun). @category Test */
|
|
16
|
-
export interface TestSession {
|
|
17
|
-
/** Session id. */
|
|
18
|
-
readonly id: string;
|
|
19
|
-
/** Serializable snapshot. */
|
|
20
|
-
snapshot(): TestSessionSnapshot;
|
|
21
|
-
/** Inclusive run through `stepId`, then pause (or complete if last). */
|
|
22
|
-
runTo(stepId: string): Promise<TestSessionSnapshot>;
|
|
23
|
-
/** Rerun one step; clear downstream history and `.as` keys. */
|
|
24
|
-
rerun(stepId: string): Promise<TestSessionSnapshot>;
|
|
25
|
-
}
|
|
26
|
-
/**
|
|
27
|
-
* Create a test session builder bound to an environment.
|
|
28
|
-
* @category Test
|
|
29
|
-
*/
|
|
30
|
-
export declare function createTestSessionBuilder(env: Environment, workflow: WorkflowManifest): TestSessionBuilder;
|
|
31
|
-
/**
|
|
32
|
-
* Restore a test session from a snapshot.
|
|
33
|
-
* @category Test
|
|
34
|
-
*/
|
|
35
|
-
export declare function restoreTestSession(env: Environment, snapshot: TestSessionSnapshot): Promise<TestSession>;
|
|
36
|
-
//# sourceMappingURL=test-session.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"test-session.d.ts","sourceRoot":"","sources":["../../src/test-session/test-session.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EACV,mBAAmB,EAEnB,gBAAgB,EACjB,MAAM,iCAAiC,CAAA;AACxC,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,+BAA+B,CAAA;AAOhE,0DAA0D;AAC1D,MAAM,WAAW,uBAAuB;IACtC,2BAA2B;IAC3B,KAAK,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;CAChC;AAED,6DAA6D;AAC7D,MAAM,WAAW,kBAAkB;IACjC,yBAAyB;IACzB,IAAI,CAAC,OAAO,EAAE,uBAAuB,GAAG,IAAI,CAAA;IAC5C,uDAAuD;IACvD,KAAK,IAAI,OAAO,CAAC,WAAW,CAAC,CAAA;CAC9B;AAED,wEAAwE;AACxE,MAAM,WAAW,WAAW;IAC1B,kBAAkB;IAClB,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAA;IACnB,6BAA6B;IAC7B,QAAQ,IAAI,mBAAmB,CAAA;IAC/B,wEAAwE;IACxE,KAAK,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,mBAAmB,CAAC,CAAA;IACnD,+DAA+D;IAC/D,KAAK,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,mBAAmB,CAAC,CAAA;CACpD;AAED;;;GAGG;AACH,wBAAgB,wBAAwB,CACtC,GAAG,EAAE,WAAW,EAChB,QAAQ,EAAE,gBAAgB,GACzB,kBAAkB,CA2BpB;AAED;;;GAGG;AACH,wBAAsB,kBAAkB,CACtC,GAAG,EAAE,WAAW,EAChB,QAAQ,EAAE,mBAAmB,GAC5B,OAAO,CAAC,WAAW,CAAC,CAUtB"}
|
|
@@ -1,115 +0,0 @@
|
|
|
1
|
-
import { LATEST_ECP_VERSION } from "@executioncontrolprotocol/types";
|
|
2
|
-
import { clearDownstreamTestState, findTestStep, isLastTestStep, } from "../runtime/test-session-state.js";
|
|
3
|
-
/**
|
|
4
|
-
* Create a test session builder bound to an environment.
|
|
5
|
-
* @category Test
|
|
6
|
-
*/
|
|
7
|
-
export function createTestSessionBuilder(env, workflow) {
|
|
8
|
-
let input = {};
|
|
9
|
-
const builder = {
|
|
10
|
-
with(options) {
|
|
11
|
-
input = options.input ?? {};
|
|
12
|
-
return builder;
|
|
13
|
-
},
|
|
14
|
-
async start() {
|
|
15
|
-
await env.ensureBoundExtensionsRegistered();
|
|
16
|
-
await env.ensureReady();
|
|
17
|
-
const sessionId = globalThis.crypto.randomUUID();
|
|
18
|
-
const snap = {
|
|
19
|
-
schema: "@executioncontrolprotocol.test.session",
|
|
20
|
-
version: LATEST_ECP_VERSION,
|
|
21
|
-
sessionId,
|
|
22
|
-
workflow,
|
|
23
|
-
input: { ...input },
|
|
24
|
-
state: { ...input },
|
|
25
|
-
history: {},
|
|
26
|
-
status: "idle",
|
|
27
|
-
};
|
|
28
|
-
return new TestSessionImpl(env, snap);
|
|
29
|
-
},
|
|
30
|
-
};
|
|
31
|
-
return builder;
|
|
32
|
-
}
|
|
33
|
-
/**
|
|
34
|
-
* Restore a test session from a snapshot.
|
|
35
|
-
* @category Test
|
|
36
|
-
*/
|
|
37
|
-
export async function restoreTestSession(env, snapshot) {
|
|
38
|
-
await env.ensureBoundExtensionsRegistered();
|
|
39
|
-
await env.ensureReady();
|
|
40
|
-
return new TestSessionImpl(env, {
|
|
41
|
-
...snapshot,
|
|
42
|
-
state: { ...snapshot.state },
|
|
43
|
-
history: { ...snapshot.history },
|
|
44
|
-
input: { ...snapshot.input },
|
|
45
|
-
workflow: snapshot.workflow,
|
|
46
|
-
});
|
|
47
|
-
}
|
|
48
|
-
class TestSessionImpl {
|
|
49
|
-
env;
|
|
50
|
-
snap;
|
|
51
|
-
constructor(env, snap) {
|
|
52
|
-
this.env = env;
|
|
53
|
-
this.snap = snap;
|
|
54
|
-
}
|
|
55
|
-
get id() {
|
|
56
|
-
return this.snap.sessionId;
|
|
57
|
-
}
|
|
58
|
-
snapshot() {
|
|
59
|
-
return {
|
|
60
|
-
...this.snap,
|
|
61
|
-
state: { ...this.snap.state },
|
|
62
|
-
history: { ...this.snap.history },
|
|
63
|
-
input: { ...this.snap.input },
|
|
64
|
-
};
|
|
65
|
-
}
|
|
66
|
-
async runTo(stepId) {
|
|
67
|
-
if (!findTestStep(this.snap.workflow, stepId)) {
|
|
68
|
-
throw new Error(`Unknown step id: ${stepId}`);
|
|
69
|
-
}
|
|
70
|
-
const result = await this.env.ecpTestExecute(this.snap.workflow, {
|
|
71
|
-
input: this.snap.input,
|
|
72
|
-
seedState: this.snap.state,
|
|
73
|
-
seedHistory: this.snap.history,
|
|
74
|
-
stopAfterStepId: stepId,
|
|
75
|
-
});
|
|
76
|
-
this.applyRunResult(result, stepId);
|
|
77
|
-
return this.snapshot();
|
|
78
|
-
}
|
|
79
|
-
async rerun(stepId) {
|
|
80
|
-
if (!findTestStep(this.snap.workflow, stepId)) {
|
|
81
|
-
throw new Error(`Unknown step id: ${stepId}`);
|
|
82
|
-
}
|
|
83
|
-
const state = { ...this.snap.state };
|
|
84
|
-
const history = { ...this.snap.history };
|
|
85
|
-
clearDownstreamTestState(this.snap.workflow, state, history, stepId);
|
|
86
|
-
const result = await this.env.ecpTestExecute(this.snap.workflow, {
|
|
87
|
-
input: this.snap.input,
|
|
88
|
-
seedState: state,
|
|
89
|
-
seedHistory: history,
|
|
90
|
-
onlyStepId: stepId,
|
|
91
|
-
});
|
|
92
|
-
this.applyRunResult(result, stepId);
|
|
93
|
-
return this.snapshot();
|
|
94
|
-
}
|
|
95
|
-
applyRunResult(result, cursorStepId) {
|
|
96
|
-
this.snap = {
|
|
97
|
-
...this.snap,
|
|
98
|
-
state: result.state ?? {},
|
|
99
|
-
history: result.history ?? {},
|
|
100
|
-
cursor: cursorStepId,
|
|
101
|
-
status: mapRunStatusToSession(result.run.status, this.snap.workflow, cursorStepId),
|
|
102
|
-
};
|
|
103
|
-
}
|
|
104
|
-
}
|
|
105
|
-
function mapRunStatusToSession(runStatus, workflow, cursorStepId) {
|
|
106
|
-
if (runStatus === "failed" || runStatus === "cancelled")
|
|
107
|
-
return "failed";
|
|
108
|
-
if (runStatus === "completed" || isLastTestStep(workflow, cursorStepId)) {
|
|
109
|
-
return "completed";
|
|
110
|
-
}
|
|
111
|
-
if (runStatus === "paused")
|
|
112
|
-
return "paused";
|
|
113
|
-
return "paused";
|
|
114
|
-
}
|
|
115
|
-
//# sourceMappingURL=test-session.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"test-session.js","sourceRoot":"","sources":["../../src/test-session/test-session.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAA;AAOpE,OAAO,EACL,wBAAwB,EACxB,YAAY,EACZ,cAAc,GACf,MAAM,kCAAkC,CAAA;AA4BzC;;;GAGG;AACH,MAAM,UAAU,wBAAwB,CACtC,GAAgB,EAChB,QAA0B;IAE1B,IAAI,KAAK,GAA4B,EAAE,CAAA;IAEvC,MAAM,OAAO,GAAuB;QAClC,IAAI,CAAC,OAAgC;YACnC,KAAK,GAAG,OAAO,CAAC,KAAK,IAAI,EAAE,CAAA;YAC3B,OAAO,OAAO,CAAA;QAChB,CAAC;QACD,KAAK,CAAC,KAAK;YACT,MAAM,GAAG,CAAC,+BAA+B,EAAE,CAAA;YAC3C,MAAM,GAAG,CAAC,WAAW,EAAE,CAAA;YACvB,MAAM,SAAS,GAAG,UAAU,CAAC,MAAM,CAAC,UAAU,EAAE,CAAA;YAChD,MAAM,IAAI,GAAwB;gBAChC,MAAM,EAAE,wCAAwC;gBAChD,OAAO,EAAE,kBAAkB;gBAC3B,SAAS;gBACT,QAAQ;gBACR,KAAK,EAAE,EAAE,GAAG,KAAK,EAAE;gBACnB,KAAK,EAAE,EAAE,GAAG,KAAK,EAAE;gBACnB,OAAO,EAAE,EAAE;gBACX,MAAM,EAAE,M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QACnC,OAAO,IAAI,CAAC,QAAQ,EAAE,CAAA;IACxB,CAAC;IAEO,cAAc,CACpB,MAA0D,EAC1D,YAAoB;QAEpB,IAAI,CAAC,IAAI,GAAG;YACV,GAAG,IAAI,CAAC,IAAI;YACZ,KAAK,EAAE,MAAM,CAAC,KAAK,IAAI,EAAE;YACzB,OAAO,EAAE,MAAM,CAAC,OAAO,IAAI,EAAE;YAC7B,MAAM,EAAE,YAAY;YACpB,MAAM,EAAE,qBAAqB,CAAC,MAAM,CAAC,GAAG,CAAC,MAAM,EAAE,IAAI,CAAC,IAAI,CAAC,QAAQ,EAAE,YAAY,CAAC;SACnF,CAAA;IACH,CAAC;CACF;AAED,SAAS,qBAAqB,CAC5B,SAAiB,EACjB,QAA0B,EAC1B,YAAoB;IAEpB,IAAI,SAAS,KAAK,QAAQ,IAAI,SAAS,KAAK,WAAW;QAAE,OAAO,QAAQ,CAAA;IACxE,IAAI,SAAS,KAAK,WAAW,IAAI,cAAc,CAAC,QAAQ,EAAE,YAAY,CAAC,EAAE,CAAC;QACxE,OAAO,WAAW,CAAA;IACpB,CAAC;IACD,IAAI,SAAS,KAAK,QAAQ;QAAE,OAAO,QAAQ,CAAA;IAC3C,OAAO,QAAQ,CAAA;AACjB,CAAC"}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
/** Deterministic model generate handler for framework unit tests. @category Testing */
|
|
2
|
-
export interface TestModelGenerateInput {
|
|
3
|
-
/** User prompt text. */
|
|
4
|
-
prompt?: string;
|
|
5
|
-
/** Optional system prompt. */
|
|
6
|
-
system?: string;
|
|
7
|
-
}
|
|
8
|
-
/**
|
|
9
|
-
* Deterministic generate handler for `@executioncontrolprotocol/test.generate`.
|
|
10
|
-
* @category Testing
|
|
11
|
-
*/
|
|
12
|
-
export declare function testModelGenerateHandler(input: TestModelGenerateInput): {
|
|
13
|
-
text: string;
|
|
14
|
-
};
|
|
15
|
-
//# sourceMappingURL=test-model-generate.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"test-model-generate.d.ts","sourceRoot":"","sources":["../../src/testing/test-model-generate.ts"],"names":[],"mappings":"AAAA,uFAAuF;AAEvF,MAAM,WAAW,sBAAsB;IACrC,wBAAwB;IACxB,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,8BAA8B;IAC9B,MAAM,CAAC,EAAE,MAAM,CAAA;CAChB;AAoCD;;;GAGG;AACH,wBAAgB,wBAAwB,CAAC,KAAK,EAAE,sBAAsB,GAAG;IAAE,IAAI,EAAE,MAAM,CAAA;CAAE,CA8BxF"}
|
|
@@ -1,71 +0,0 @@
|
|
|
1
|
-
/** Deterministic model generate handler for framework unit tests. @category Testing */
|
|
2
|
-
function testIntentResponse(prompt) {
|
|
3
|
-
const lower = prompt.toLowerCase();
|
|
4
|
-
let intent = "general";
|
|
5
|
-
if (/create.*workflow|new workflow|sends.*email|build a workflow/.test(lower)) {
|
|
6
|
-
intent = "workflow-create";
|
|
7
|
-
}
|
|
8
|
-
else if (/update|patch|change.*step|modify.*workflow|failed on|help me fix/.test(lower)) {
|
|
9
|
-
intent = "workflow-patch";
|
|
10
|
-
}
|
|
11
|
-
else if (/what is ecp|how does|how do|execution control protocol/.test(lower)) {
|
|
12
|
-
intent = "faq";
|
|
13
|
-
}
|
|
14
|
-
return `INTENT ${intent}`;
|
|
15
|
-
}
|
|
16
|
-
function testAssistantResponse(prompt) {
|
|
17
|
-
const msgMatch = prompt.match(/User message:\s*(.+?)(?:\n|$)/i);
|
|
18
|
-
const message = (msgMatch?.[1] ?? prompt).toLowerCase();
|
|
19
|
-
if (/what is ecp|execution control protocol/.test(message)) {
|
|
20
|
-
return 'REPLY\n ANSWER "ECP is the Execution Control Protocol: portable workflows run in governed environments that bind tools, models, policies, and runtimes."';
|
|
21
|
-
}
|
|
22
|
-
if (/what can you do|what are you good at/.test(message)) {
|
|
23
|
-
return 'REPLY\n ANSWER "I build and patch ECP workflows, answer ECP questions, and explain capabilities registered in this environment. I cannot install extensions."';
|
|
24
|
-
}
|
|
25
|
-
if (/register|install.*extension/.test(message)) {
|
|
26
|
-
return 'REPLY\n ANSWER "I cannot register or install extensions. I can list loaded capabilities and help you build workflows with them."';
|
|
27
|
-
}
|
|
28
|
-
if (/capabilit|extensions?|plugins?/.test(message)) {
|
|
29
|
-
return 'REPLY\n ANSWER "Loaded capabilities include @executioncontrolprotocol/test.echo and @executioncontrolprotocol/test.summarize, @executioncontrolprotocol/test.validate, @executioncontrolprotocol/test.notify, @executioncontrolprotocol/test.translate."\n CITATION extension @executioncontrolprotocol/test "@executioncontrolprotocol/test.echo"';
|
|
30
|
-
}
|
|
31
|
-
if (/error|fail|fix/.test(message)) {
|
|
32
|
-
return 'REPLY\n ANSWER "The echo step failed with an error; patch the echo step input to recover."\n CITATION step echo "Failed echo step in run context."';
|
|
33
|
-
}
|
|
34
|
-
return 'REPLY\n ANSWER "I am the ECP assistant. Ask about workflows, ECP, or available capabilities."';
|
|
35
|
-
}
|
|
36
|
-
/**
|
|
37
|
-
* Deterministic generate handler for `@executioncontrolprotocol/test.generate`.
|
|
38
|
-
* @category Testing
|
|
39
|
-
*/
|
|
40
|
-
export function testModelGenerateHandler(input) {
|
|
41
|
-
const prompt = input.prompt ?? "";
|
|
42
|
-
const system = input.system ?? "";
|
|
43
|
-
if (/intent router/i.test(system)) {
|
|
44
|
-
return { text: testIntentResponse(prompt) };
|
|
45
|
-
}
|
|
46
|
-
if (/ECP assistant|harness\.reply|REPLY block/i.test(system)) {
|
|
47
|
-
return { text: testAssistantResponse(prompt) };
|
|
48
|
-
}
|
|
49
|
-
if (prompt.includes("User message:")) {
|
|
50
|
-
return { text: testIntentResponse(prompt) };
|
|
51
|
-
}
|
|
52
|
-
if (prompt.includes("@executioncontrolprotocol.patch") || /PATCH\s+WORKFLOW/i.test(prompt)) {
|
|
53
|
-
return {
|
|
54
|
-
text: [
|
|
55
|
-
"PATCH WORKFLOW echo-test",
|
|
56
|
-
"UPDATE STEP echo",
|
|
57
|
-
' WITH value = "patched"',
|
|
58
|
-
].join("\n"),
|
|
59
|
-
};
|
|
60
|
-
}
|
|
61
|
-
return {
|
|
62
|
-
text: [
|
|
63
|
-
'WORKFLOW demo-generated "Demo generated"',
|
|
64
|
-
"STEP echo USES @executioncontrolprotocol/test.echo",
|
|
65
|
-
' LABEL "Demo Echo"',
|
|
66
|
-
' WITH value = "hello"',
|
|
67
|
-
" AS echo",
|
|
68
|
-
].join("\n"),
|
|
69
|
-
};
|
|
70
|
-
}
|
|
71
|
-
//# sourceMappingURL=test-model-generate.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"test-model-generate.js","sourceRoot":"","sources":["../../src/testing/test-model-generate.ts"],"names":[],"mappings":"AAAA,uFAAuF;AASvF,SAAS,kBAAkB,CAAC,MAAc;IACxC,MAAM,KAAK,GAAG,MAAM,CAAC,WAAW,EAAE,CAAA;IAClC,IAAI,MAAM,GAAG,SAAS,CAAA;IACtB,IAAI,6DAA6D,CAAC,IAAI,CAAC,KAAK,CAAC,EAAE,CAAC;QAC9E,MAAM,GAAG,iBAAiB,CAAA;IAC5B,CAAC;SAAM,IAAI,kEAAkE,CAAC,IAAI,CAAC,KAAK,CAAC,EAAE,CAAC;QAC1F,MAAM,GAAG,gBAAgB,CAAA;IAC3B,CAAC;SAAM,IAAI,wDAAwD,CAAC,IAAI,CAAC,KAAK,CAAC,EAAE,CAAC;QAChF,MAAM,GAAG,KAAK,CAAA;IAChB,CAAC;IACD,OAAO,UAAU,MAAM,EAAE,CAAA;AAC3B,CAAC;AAED,SAAS,qBAAqB,CAAC,MAAc;IAC3C,MAAM,QAAQ,GAAG,MAAM,CAAC,KAAK,CAAC,gCAAgC,CAAC,CAAA;IAC/D,MAAM,OAAO,GAAG,CAAC,QAAQ,EAAE,CAAC,CAAC,CAAC,IAAI,MAAM,CAAC,CAAC,WAAW,EAAE,CAAA;IACvD,IAAI,wCAAwC,CAAC,IAAI,CAAC,OAAO,CAAC,EAAE,CA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BAA0B;gBAC1B,kBAAkB;gBAClB,0BAA0B;aAC3B,CAAC,IAAI,CAAC,IAAI,CAAC;SACb,CAAA;IACH,CAAC;IACD,OAAO;QACL,IAAI,EAAE;YACJ,0CAA0C;YAC1C,oDAAoD;YACpD,qBAAqB;YACrB,wBAAwB;YACxB,WAAW;SACZ,CAAC,IAAI,CAAC,IAAI,CAAC;KACb,CAAA;AACH,CAAC"}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { ECP_CORE_FORMATTER_IDS, type ValidationResult } from "@executioncontrolprotocol/types";
|
|
2
|
-
import type { Registry } from "../registry/registry.js";
|
|
3
|
-
import type { ResolvedBindings } from "../environment/bindings.js";
|
|
4
|
-
/**
|
|
5
|
-
* Validate harness bindings against registry and environment extensions.
|
|
6
|
-
* @category Harness
|
|
7
|
-
*/
|
|
8
|
-
export declare function validateHarnessBindings(registry: Registry, bindings: ResolvedBindings): ValidationResult;
|
|
9
|
-
/** Known core formatter ids for tests. @internal */
|
|
10
|
-
export { ECP_CORE_FORMATTER_IDS };
|
|
11
|
-
//# sourceMappingURL=harness.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"harness.d.ts","sourceRoot":"","sources":["../../src/validate/harness.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,sBAAsB,EAKtB,KAAK,gBAAgB,EACtB,MAAM,iCAAiC,CAAA;AACxC,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,yBAAyB,CAAA;AACvD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,4BAA4B,CAAA;AAalE;;;GAGG;AACH,wBAAgB,uBAAuB,CACrC,QAAQ,EAAE,QAAQ,EAClB,QAAQ,EAAE,gBAAgB,GACzB,gBAAgB,CA6GlB;AAED,oDAAoD;AACpD,OAAO,EAAE,sBAAsB,EAAE,CAAA"}
|
package/dist/validate/harness.js
DELETED
|
@@ -1,72 +0,0 @@
|
|
|
1
|
-
import { ECP_CORE_FORMATTER_IDS, ECP_HARNESS_ERROR_CODES, ECP_MODEL_CAPABILITY_NAME, } from "@executioncontrolprotocol/types";
|
|
2
|
-
import { getCatalogedHarness } from "../harness/harness-catalog.js";
|
|
3
|
-
import { isCoreFormatterId, isFormatterRegistered } from "../harness/format-resolve.js";
|
|
4
|
-
import { emptyValidationResult } from "./workflow-schema.js";
|
|
5
|
-
function issue(code, message, path) {
|
|
6
|
-
return { severity: "error", code, message, ...(path ? { path } : {}) };
|
|
7
|
-
}
|
|
8
|
-
function isBoundExtension(bindings, extId) {
|
|
9
|
-
return bindings.extensions.some((e) => e.id === extId);
|
|
10
|
-
}
|
|
11
|
-
/**
|
|
12
|
-
* Validate harness bindings against registry and environment extensions.
|
|
13
|
-
* @category Harness
|
|
14
|
-
*/
|
|
15
|
-
export function validateHarnessBindings(registry, bindings) {
|
|
16
|
-
const result = emptyValidationResult(true);
|
|
17
|
-
const harnesses = bindings.harnesses ?? [];
|
|
18
|
-
for (let i = 0; i < harnesses.length; i++) {
|
|
19
|
-
const b = harnesses[i];
|
|
20
|
-
const path = `harnesses[${i}]`;
|
|
21
|
-
const def = getCatalogedHarness(b.id);
|
|
22
|
-
if (!def) {
|
|
23
|
-
result.valid = false;
|
|
24
|
-
result.errors.push(issue(ECP_HARNESS_ERROR_CODES.UNKNOWN_HARNESS, `Harness ${b.id} is not registered.`, `${path}.id`));
|
|
25
|
-
continue;
|
|
26
|
-
}
|
|
27
|
-
if (!b.uses) {
|
|
28
|
-
result.valid = false;
|
|
29
|
-
result.errors.push(issue(ECP_HARNESS_ERROR_CODES.UNKNOWN_HARNESS_PROVIDER, `Harness ${b.id} requires .uses(provider.generate).`, `${path}.uses`));
|
|
30
|
-
continue;
|
|
31
|
-
}
|
|
32
|
-
const providerExtId = b.uses.replace(/\.[^.]+$/, "");
|
|
33
|
-
const capName = b.uses.split(".").pop();
|
|
34
|
-
if (capName !== ECP_MODEL_CAPABILITY_NAME) {
|
|
35
|
-
result.valid = false;
|
|
36
|
-
result.errors.push(issue(ECP_HARNESS_ERROR_CODES.HARNESS_PROVIDER_CONTRACT_MISMATCH, `Harness provider ${b.uses} must end with .${ECP_MODEL_CAPABILITY_NAME}.`, `${path}.uses`));
|
|
37
|
-
}
|
|
38
|
-
if (!isBoundExtension(bindings, providerExtId)) {
|
|
39
|
-
result.valid = false;
|
|
40
|
-
result.errors.push(issue(ECP_HARNESS_ERROR_CODES.UNKNOWN_HARNESS_PROVIDER, `Harness ${b.id} uses ${b.uses}, but ${providerExtId} is not bound in this environment.`, `${path}.uses`));
|
|
41
|
-
}
|
|
42
|
-
else if (!registry.getCapability(b.uses)) {
|
|
43
|
-
result.valid = false;
|
|
44
|
-
result.errors.push(issue(ECP_HARNESS_ERROR_CODES.UNKNOWN_HARNESS_PROVIDER, `Capability ${b.uses} is not registered.`, `${path}.uses`));
|
|
45
|
-
}
|
|
46
|
-
const output = b.config.output;
|
|
47
|
-
const formatId = output?.format;
|
|
48
|
-
if (formatId) {
|
|
49
|
-
if (!isFormatterRegistered(formatId)) {
|
|
50
|
-
result.valid = false;
|
|
51
|
-
result.errors.push(issue(ECP_HARNESS_ERROR_CODES.UNKNOWN_OUTPUT_FORMAT, `Formatter ${formatId} is not registered.`, `${path}.config.output.format`));
|
|
52
|
-
}
|
|
53
|
-
else if (!isCoreFormatterId(formatId) && !isBoundExtension(bindings, formatId)) {
|
|
54
|
-
result.valid = false;
|
|
55
|
-
result.errors.push(issue(ECP_HARNESS_ERROR_CODES.UNKNOWN_OUTPUT_FORMAT, `Harness ${b.id} references ${formatId}, but that formatter is not bound.`, `${path}.config.output.format`));
|
|
56
|
-
}
|
|
57
|
-
}
|
|
58
|
-
const descriptorFormat = b.config.context
|
|
59
|
-
?.descriptorFormat;
|
|
60
|
-
if (descriptorFormat &&
|
|
61
|
-
!isCoreFormatterId(descriptorFormat) &&
|
|
62
|
-
!isFormatterRegistered(descriptorFormat)) {
|
|
63
|
-
result.valid = false;
|
|
64
|
-
result.errors.push(issue(ECP_HARNESS_ERROR_CODES.UNKNOWN_OUTPUT_FORMAT, `Unknown descriptor format ${descriptorFormat}.`, `${path}.config.context.descriptorFormat`));
|
|
65
|
-
}
|
|
66
|
-
}
|
|
67
|
-
result.schema = "@executioncontrolprotocol.validation.result";
|
|
68
|
-
return result;
|
|
69
|
-
}
|
|
70
|
-
/** Known core formatter ids for tests. @internal */
|
|
71
|
-
export { ECP_CORE_FORMATTER_IDS };
|
|
72
|
-
//# sourceMappingURL=harness.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"harness.js","sourceRoot":"","sources":["../../src/validate/harness.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,sBAAsB,EACtB,uBAAuB,EACvB,yBAAyB,GAI1B,MAAM,iCAAiC,CAAA;AAGxC,OAAO,EAAE,mBAAmB,EAAE,MAAM,+BAA+B,CAAA;AACnE,OAAO,EAAE,iBAAiB,EAAE,qBAAqB,EAAE,MAAM,8BAA8B,CAAA;AACvF,OAAO,EAAE,qBAAqB,EAAE,MAAM,sBAAsB,CAAA;AAE5D,SAAS,KAAK,CAAC,IAAY,EAAE,OAAe,EAAE,IAAa;IACzD,OAAO,EAAE,QAAQ,EAAE,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,GAAG,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,IAAI,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,CAAA;AACxE,CAAC;AAED,SAAS,gBAAgB,CAAC,QAA0B,EAAE,KAAa;IACjE,OAAO,QAAQ,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,EAAE,KAAK,KAAK,CAAC,CAAA;AACxD,CAAC;AAED;;;GAGG;AACH,MAAM,UAAU,uBAAuB,CACrC,QAAkB,EAClB,QAA0B;IAE1B,MAAM,MAAM,GAAG,qBAAqB,CAAC,IAAI,CAAC,CAAA;IAC1C,MAAM,SAAS,GAAG,QAAQ,CAAC,SAAS,IAAI,E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