@executioncontrolprotocol/core 0.10.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 +42 -0
- package/dist/bindings/extension.d.ts +19 -0
- package/dist/bindings/extension.d.ts.map +1 -0
- package/dist/bindings/extension.js +32 -0
- package/dist/bindings/extension.js.map +1 -0
- package/dist/bindings/harness.d.ts +24 -0
- package/dist/bindings/harness.d.ts.map +1 -0
- package/dist/bindings/harness.js +44 -0
- package/dist/bindings/harness.js.map +1 -0
- package/dist/bindings/policy.d.ts +19 -0
- package/dist/bindings/policy.d.ts.map +1 -0
- package/dist/bindings/policy.js +32 -0
- package/dist/bindings/policy.js.map +1 -0
- package/dist/bindings/runtime.d.ts +19 -0
- package/dist/bindings/runtime.d.ts.map +1 -0
- package/dist/bindings/runtime.js +32 -0
- package/dist/bindings/runtime.js.map +1 -0
- package/dist/bindings/step.d.ts +34 -0
- package/dist/bindings/step.d.ts.map +1 -0
- package/dist/bindings/step.js +59 -0
- package/dist/bindings/step.js.map +1 -0
- package/dist/browser-runtime-entry.d.ts +52 -0
- package/dist/browser-runtime-entry.d.ts.map +1 -0
- package/dist/browser-runtime-entry.js +45 -0
- package/dist/browser-runtime-entry.js.map +1 -0
- package/dist/browser.d.ts +20 -0
- package/dist/browser.d.ts.map +1 -0
- package/dist/browser.js +20 -0
- package/dist/browser.js.map +1 -0
- package/dist/compile/compile-harness-artifact.d.ts +30 -0
- package/dist/compile/compile-harness-artifact.d.ts.map +1 -0
- package/dist/compile/compile-harness-artifact.js +43 -0
- package/dist/compile/compile-harness-artifact.js.map +1 -0
- package/dist/compile/entry.d.ts +3 -0
- package/dist/compile/entry.d.ts.map +1 -0
- package/dist/compile/entry.js +3 -0
- package/dist/compile/entry.js.map +1 -0
- package/dist/compile/evaluate-browser.d.ts +5 -0
- package/dist/compile/evaluate-browser.d.ts.map +1 -0
- package/dist/compile/evaluate-browser.js +15 -0
- package/dist/compile/evaluate-browser.js.map +1 -0
- package/dist/compile/evaluate-harness-artifact.d.ts +3 -0
- package/dist/compile/evaluate-harness-artifact.d.ts.map +1 -0
- package/dist/compile/evaluate-harness-artifact.js +17 -0
- package/dist/compile/evaluate-harness-artifact.js.map +1 -0
- package/dist/compile/evaluate.d.ts +5 -0
- package/dist/compile/evaluate.d.ts.map +1 -0
- package/dist/compile/evaluate.js +20 -0
- package/dist/compile/evaluate.js.map +1 -0
- package/dist/compile/extract-harness-artifact.d.ts +9 -0
- package/dist/compile/extract-harness-artifact.d.ts.map +1 -0
- package/dist/compile/extract-harness-artifact.js +33 -0
- package/dist/compile/extract-harness-artifact.js.map +1 -0
- package/dist/compile/extract-workflow-module.d.ts +4 -0
- package/dist/compile/extract-workflow-module.d.ts.map +1 -0
- package/dist/compile/extract-workflow-module.js +20 -0
- package/dist/compile/extract-workflow-module.js.map +1 -0
- package/dist/compile/index.browser.d.ts +18 -0
- package/dist/compile/index.browser.d.ts.map +1 -0
- package/dist/compile/index.browser.js +50 -0
- package/dist/compile/index.browser.js.map +1 -0
- package/dist/compile/index.d.ts +17 -0
- package/dist/compile/index.d.ts.map +1 -0
- package/dist/compile/index.js +49 -0
- package/dist/compile/index.js.map +1 -0
- package/dist/compile/prepare-browser-source.d.ts +3 -0
- package/dist/compile/prepare-browser-source.d.ts.map +1 -0
- package/dist/compile/prepare-browser-source.js +21 -0
- package/dist/compile/prepare-browser-source.js.map +1 -0
- package/dist/compile/transpile-browser.d.ts +21 -0
- package/dist/compile/transpile-browser.d.ts.map +1 -0
- package/dist/compile/transpile-browser.js +93 -0
- package/dist/compile/transpile-browser.js.map +1 -0
- package/dist/compile/transpile.d.ts +10 -0
- package/dist/compile/transpile.d.ts.map +1 -0
- package/dist/compile/transpile.js +85 -0
- package/dist/compile/transpile.js.map +1 -0
- package/dist/compile/types.d.ts +24 -0
- package/dist/compile/types.d.ts.map +1 -0
- package/dist/compile/types.js +2 -0
- package/dist/compile/types.js.map +1 -0
- package/dist/config-schema/index.d.ts +4 -0
- package/dist/config-schema/index.d.ts.map +1 -0
- package/dist/config-schema/index.js +2 -0
- package/dist/config-schema/index.js.map +1 -0
- package/dist/definitions/capability.d.ts +26 -0
- package/dist/definitions/capability.d.ts.map +1 -0
- package/dist/definitions/capability.js +49 -0
- package/dist/definitions/capability.js.map +1 -0
- package/dist/definitions/extension.d.ts +30 -0
- package/dist/definitions/extension.d.ts.map +1 -0
- package/dist/definitions/extension.js +64 -0
- package/dist/definitions/extension.js.map +1 -0
- package/dist/definitions/hook.d.ts +11 -0
- package/dist/definitions/hook.d.ts.map +1 -0
- package/dist/definitions/hook.js +13 -0
- package/dist/definitions/hook.js.map +1 -0
- package/dist/definitions/index.d.ts +7 -0
- package/dist/definitions/index.d.ts.map +1 -0
- package/dist/definitions/index.js +6 -0
- package/dist/definitions/index.js.map +1 -0
- package/dist/definitions/policy.d.ts +23 -0
- package/dist/definitions/policy.d.ts.map +1 -0
- package/dist/definitions/policy.js +50 -0
- package/dist/definitions/policy.js.map +1 -0
- package/dist/definitions/runtime.d.ts +22 -0
- package/dist/definitions/runtime.d.ts.map +1 -0
- package/dist/definitions/runtime.js +48 -0
- package/dist/definitions/runtime.js.map +1 -0
- package/dist/definitions/types.d.ts +50 -0
- package/dist/definitions/types.d.ts.map +1 -0
- package/dist/definitions/types.js +2 -0
- package/dist/definitions/types.js.map +1 -0
- package/dist/encoding/contracts.d.ts +17 -0
- package/dist/encoding/contracts.d.ts.map +1 -0
- package/dist/encoding/contracts.js +41 -0
- package/dist/encoding/contracts.js.map +1 -0
- package/dist/encoding/decode-builder.d.ts +17 -0
- package/dist/encoding/decode-builder.d.ts.map +1 -0
- package/dist/encoding/decode-builder.js +98 -0
- package/dist/encoding/decode-builder.js.map +1 -0
- package/dist/encoding/encode-builder.d.ts +19 -0
- package/dist/encoding/encode-builder.d.ts.map +1 -0
- package/dist/encoding/encode-builder.js +76 -0
- package/dist/encoding/encode-builder.js.map +1 -0
- package/dist/encoding/errors.d.ts +25 -0
- package/dist/encoding/errors.d.ts.map +1 -0
- package/dist/encoding/errors.js +20 -0
- package/dist/encoding/errors.js.map +1 -0
- package/dist/encoding/index.d.ts +10 -0
- package/dist/encoding/index.d.ts.map +1 -0
- package/dist/encoding/index.js +10 -0
- package/dist/encoding/index.js.map +1 -0
- package/dist/encoding/invoke-utility.d.ts +14 -0
- package/dist/encoding/invoke-utility.d.ts.map +1 -0
- package/dist/encoding/invoke-utility.js +50 -0
- package/dist/encoding/invoke-utility.js.map +1 -0
- package/dist/encoding/json-codec.d.ts +38 -0
- package/dist/encoding/json-codec.d.ts.map +1 -0
- package/dist/encoding/json-codec.js +108 -0
- package/dist/encoding/json-codec.js.map +1 -0
- package/dist/encoding/normalize-workflow.d.ts +7 -0
- package/dist/encoding/normalize-workflow.d.ts.map +1 -0
- package/dist/encoding/normalize-workflow.js +109 -0
- package/dist/encoding/normalize-workflow.js.map +1 -0
- package/dist/encoding/resolve.d.ts +13 -0
- package/dist/encoding/resolve.d.ts.map +1 -0
- package/dist/encoding/resolve.js +48 -0
- package/dist/encoding/resolve.js.map +1 -0
- package/dist/encoding/schemas.d.ts +398 -0
- package/dist/encoding/schemas.d.ts.map +1 -0
- package/dist/encoding/schemas.js +74 -0
- package/dist/encoding/schemas.js.map +1 -0
- package/dist/encoding/strip-harness-typescript-output.d.ts +7 -0
- package/dist/encoding/strip-harness-typescript-output.d.ts.map +1 -0
- package/dist/encoding/strip-harness-typescript-output.js +40 -0
- package/dist/encoding/strip-harness-typescript-output.js.map +1 -0
- package/dist/encoding/strip-markdown-fences.d.ts +6 -0
- package/dist/encoding/strip-markdown-fences.d.ts.map +1 -0
- package/dist/encoding/strip-markdown-fences.js +23 -0
- package/dist/encoding/strip-markdown-fences.js.map +1 -0
- package/dist/encoding/utility-context.d.ts +29 -0
- package/dist/encoding/utility-context.d.ts.map +1 -0
- package/dist/encoding/utility-context.js +33 -0
- package/dist/encoding/utility-context.js.map +1 -0
- package/dist/environment/bindings.d.ts +69 -0
- package/dist/environment/bindings.d.ts.map +1 -0
- package/dist/environment/bindings.js +39 -0
- package/dist/environment/bindings.js.map +1 -0
- package/dist/environment/config-resolver.d.ts +33 -0
- package/dist/environment/config-resolver.d.ts.map +1 -0
- package/dist/environment/config-resolver.js +100 -0
- package/dist/environment/config-resolver.js.map +1 -0
- package/dist/environment/describe.d.ts +6 -0
- package/dist/environment/describe.d.ts.map +1 -0
- package/dist/environment/describe.js +132 -0
- package/dist/environment/describe.js.map +1 -0
- package/dist/environment/ecp.d.ts +58 -0
- package/dist/environment/ecp.d.ts.map +1 -0
- package/dist/environment/ecp.js +49 -0
- package/dist/environment/ecp.js.map +1 -0
- package/dist/environment/encoding-host.d.ts +17 -0
- package/dist/environment/encoding-host.d.ts.map +1 -0
- package/dist/environment/encoding-host.js +2 -0
- package/dist/environment/encoding-host.js.map +1 -0
- package/dist/environment/environment.d.ts +94 -0
- package/dist/environment/environment.d.ts.map +1 -0
- package/dist/environment/environment.js +370 -0
- package/dist/environment/environment.js.map +1 -0
- package/dist/environment/search.d.ts +4 -0
- package/dist/environment/search.d.ts.map +1 -0
- package/dist/environment/search.js +80 -0
- package/dist/environment/search.js.map +1 -0
- package/dist/feedback/collect.d.ts +32 -0
- package/dist/feedback/collect.d.ts.map +1 -0
- package/dist/feedback/collect.js +97 -0
- package/dist/feedback/collect.js.map +1 -0
- package/dist/feedback/index.d.ts +2 -0
- package/dist/feedback/index.d.ts.map +1 -0
- package/dist/feedback/index.js +2 -0
- package/dist/feedback/index.js.map +1 -0
- package/dist/fluent/encode-fluent.d.ts +10 -0
- package/dist/fluent/encode-fluent.d.ts.map +1 -0
- package/dist/fluent/encode-fluent.js +58 -0
- package/dist/fluent/encode-fluent.js.map +1 -0
- package/dist/fluent/index.d.ts +3 -0
- package/dist/fluent/index.d.ts.map +1 -0
- package/dist/fluent/index.js +3 -0
- package/dist/fluent/index.js.map +1 -0
- package/dist/fluent/render-expr.d.ts +7 -0
- package/dist/fluent/render-expr.d.ts.map +1 -0
- package/dist/fluent/render-expr.js +14 -0
- package/dist/fluent/render-expr.js.map +1 -0
- package/dist/fluent/render-node.d.ts +6 -0
- package/dist/fluent/render-node.d.ts.map +1 -0
- package/dist/fluent/render-node.js +92 -0
- package/dist/fluent/render-node.js.map +1 -0
- package/dist/fluent/render-value.d.ts +22 -0
- package/dist/fluent/render-value.d.ts.map +1 -0
- package/dist/fluent/render-value.js +47 -0
- package/dist/fluent/render-value.js.map +1 -0
- package/dist/fluent/render-workflow.d.ts +16 -0
- package/dist/fluent/render-workflow.d.ts.map +1 -0
- package/dist/fluent/render-workflow.js +41 -0
- package/dist/fluent/render-workflow.js.map +1 -0
- package/dist/formats/format-fluent.d.ts +3 -0
- package/dist/formats/format-fluent.d.ts.map +1 -0
- package/dist/formats/format-fluent.js +17 -0
- package/dist/formats/format-fluent.js.map +1 -0
- package/dist/formats/format-json.d.ts +3 -0
- package/dist/formats/format-json.d.ts.map +1 -0
- package/dist/formats/format-json.js +73 -0
- package/dist/formats/format-json.js.map +1 -0
- package/dist/formats/register-core-formats.d.ts +7 -0
- package/dist/formats/register-core-formats.d.ts.map +1 -0
- package/dist/formats/register-core-formats.js +20 -0
- package/dist/formats/register-core-formats.js.map +1 -0
- package/dist/harness/authoring/classified-intent.d.ts +46 -0
- package/dist/harness/authoring/classified-intent.d.ts.map +1 -0
- package/dist/harness/authoring/classified-intent.js +229 -0
- package/dist/harness/authoring/classified-intent.js.map +1 -0
- package/dist/harness/authoring/context-policy.d.ts +45 -0
- package/dist/harness/authoring/context-policy.d.ts.map +1 -0
- package/dist/harness/authoring/context-policy.js +132 -0
- package/dist/harness/authoring/context-policy.js.map +1 -0
- package/dist/harness/authoring/encode-prompt-text.d.ts +7 -0
- package/dist/harness/authoring/encode-prompt-text.d.ts.map +1 -0
- package/dist/harness/authoring/encode-prompt-text.js +13 -0
- package/dist/harness/authoring/encode-prompt-text.js.map +1 -0
- package/dist/harness/authoring/environment-question.d.ts +6 -0
- package/dist/harness/authoring/environment-question.d.ts.map +1 -0
- package/dist/harness/authoring/environment-question.js +11 -0
- package/dist/harness/authoring/environment-question.js.map +1 -0
- package/dist/harness/authoring/index.d.ts +18 -0
- package/dist/harness/authoring/index.d.ts.map +1 -0
- package/dist/harness/authoring/index.js +17 -0
- package/dist/harness/authoring/index.js.map +1 -0
- package/dist/harness/authoring/normalize-create-eql-output.d.ts +27 -0
- package/dist/harness/authoring/normalize-create-eql-output.d.ts.map +1 -0
- package/dist/harness/authoring/normalize-create-eql-output.js +284 -0
- package/dist/harness/authoring/normalize-create-eql-output.js.map +1 -0
- package/dist/harness/authoring/normalize-intent-eql-output.d.ts +7 -0
- package/dist/harness/authoring/normalize-intent-eql-output.d.ts.map +1 -0
- package/dist/harness/authoring/normalize-intent-eql-output.js +59 -0
- package/dist/harness/authoring/normalize-intent-eql-output.js.map +1 -0
- package/dist/harness/authoring/normalize-patch-eql-output.d.ts +28 -0
- package/dist/harness/authoring/normalize-patch-eql-output.d.ts.map +1 -0
- package/dist/harness/authoring/normalize-patch-eql-output.js +200 -0
- package/dist/harness/authoring/normalize-patch-eql-output.js.map +1 -0
- package/dist/harness/authoring/normalize-workflow-output.d.ts +6 -0
- package/dist/harness/authoring/normalize-workflow-output.d.ts.map +1 -0
- package/dist/harness/authoring/normalize-workflow-output.js +51 -0
- package/dist/harness/authoring/normalize-workflow-output.js.map +1 -0
- package/dist/harness/authoring/presentation.d.ts +51 -0
- package/dist/harness/authoring/presentation.d.ts.map +1 -0
- package/dist/harness/authoring/presentation.js +131 -0
- package/dist/harness/authoring/presentation.js.map +1 -0
- package/dist/harness/authoring/recover-structured-patch.d.ts +21 -0
- package/dist/harness/authoring/recover-structured-patch.d.ts.map +1 -0
- package/dist/harness/authoring/recover-structured-patch.js +197 -0
- package/dist/harness/authoring/recover-structured-patch.js.map +1 -0
- package/dist/harness/authoring/repair-workflow-json.d.ts +16 -0
- package/dist/harness/authoring/repair-workflow-json.d.ts.map +1 -0
- package/dist/harness/authoring/repair-workflow-json.js +183 -0
- package/dist/harness/authoring/repair-workflow-json.js.map +1 -0
- package/dist/harness/authoring/safe-reply.d.ts +44 -0
- package/dist/harness/authoring/safe-reply.d.ts.map +1 -0
- package/dist/harness/authoring/safe-reply.js +187 -0
- package/dist/harness/authoring/safe-reply.js.map +1 -0
- package/dist/harness/authoring/summarize-capability-schema.d.ts +20 -0
- package/dist/harness/authoring/summarize-capability-schema.d.ts.map +1 -0
- package/dist/harness/authoring/summarize-capability-schema.js +137 -0
- package/dist/harness/authoring/summarize-capability-schema.js.map +1 -0
- package/dist/harness/authoring/summarize-environment.d.ts +43 -0
- package/dist/harness/authoring/summarize-environment.d.ts.map +1 -0
- package/dist/harness/authoring/summarize-environment.js +164 -0
- package/dist/harness/authoring/summarize-environment.js.map +1 -0
- package/dist/harness/authoring/summarize-run-context.d.ts +28 -0
- package/dist/harness/authoring/summarize-run-context.d.ts.map +1 -0
- package/dist/harness/authoring/summarize-run-context.js +40 -0
- package/dist/harness/authoring/summarize-run-context.js.map +1 -0
- package/dist/harness/authoring/summarize-workflow.d.ts +35 -0
- package/dist/harness/authoring/summarize-workflow.d.ts.map +1 -0
- package/dist/harness/authoring/summarize-workflow.js +109 -0
- package/dist/harness/authoring/summarize-workflow.js.map +1 -0
- package/dist/harness/call-model.d.ts +15 -0
- package/dist/harness/call-model.d.ts.map +1 -0
- package/dist/harness/call-model.js +59 -0
- package/dist/harness/call-model.js.map +1 -0
- package/dist/harness/context.d.ts +28 -0
- package/dist/harness/context.d.ts.map +1 -0
- package/dist/harness/context.js +19 -0
- package/dist/harness/context.js.map +1 -0
- package/dist/harness/define-harness.d.ts +37 -0
- package/dist/harness/define-harness.d.ts.map +1 -0
- package/dist/harness/define-harness.js +88 -0
- package/dist/harness/define-harness.js.map +1 -0
- package/dist/harness/definitions/test-minimal-harness.d.ts +13 -0
- package/dist/harness/definitions/test-minimal-harness.d.ts.map +1 -0
- package/dist/harness/definitions/test-minimal-harness.js +45 -0
- package/dist/harness/definitions/test-minimal-harness.js.map +1 -0
- package/dist/harness/execute-harness.d.ts +9 -0
- package/dist/harness/execute-harness.d.ts.map +1 -0
- package/dist/harness/execute-harness.js +138 -0
- package/dist/harness/execute-harness.js.map +1 -0
- package/dist/harness/format-resolve.d.ts +26 -0
- package/dist/harness/format-resolve.d.ts.map +1 -0
- package/dist/harness/format-resolve.js +50 -0
- package/dist/harness/format-resolve.js.map +1 -0
- package/dist/harness/harness-catalog.d.ts +41 -0
- package/dist/harness/harness-catalog.d.ts.map +1 -0
- package/dist/harness/harness-catalog.js +66 -0
- package/dist/harness/harness-catalog.js.map +1 -0
- package/dist/harness/index.d.ts +11 -0
- package/dist/harness/index.d.ts.map +1 -0
- package/dist/harness/index.js +9 -0
- package/dist/harness/index.js.map +1 -0
- package/dist/harness/prompts/build-repair-hint.d.ts +7 -0
- package/dist/harness/prompts/build-repair-hint.d.ts.map +1 -0
- package/dist/harness/prompts/build-repair-hint.js +24 -0
- package/dist/harness/prompts/build-repair-hint.js.map +1 -0
- package/dist/harness/prompts/build-system-prompt.d.ts +7 -0
- package/dist/harness/prompts/build-system-prompt.d.ts.map +1 -0
- package/dist/harness/prompts/build-system-prompt.js +97 -0
- package/dist/harness/prompts/build-system-prompt.js.map +1 -0
- package/dist/harness/prompts/eql-primer.d.ts +13 -0
- package/dist/harness/prompts/eql-primer.d.ts.map +1 -0
- package/dist/harness/prompts/eql-primer.js +171 -0
- package/dist/harness/prompts/eql-primer.js.map +1 -0
- package/dist/harness/prompts/fixtures-root.d.ts +5 -0
- package/dist/harness/prompts/fixtures-root.d.ts.map +1 -0
- package/dist/harness/prompts/fixtures-root.js +7 -0
- package/dist/harness/prompts/fixtures-root.js.map +1 -0
- package/dist/harness/prompts/harness-prompt-fixture-schema.d.ts +95 -0
- package/dist/harness/prompts/harness-prompt-fixture-schema.d.ts.map +1 -0
- package/dist/harness/prompts/harness-prompt-fixture-schema.js +28 -0
- package/dist/harness/prompts/harness-prompt-fixture-schema.js.map +1 -0
- package/dist/harness/prompts/identity-primer.d.ts +6 -0
- package/dist/harness/prompts/identity-primer.d.ts.map +1 -0
- package/dist/harness/prompts/identity-primer.js +9 -0
- package/dist/harness/prompts/identity-primer.js.map +1 -0
- package/dist/harness/prompts/index.d.ts +7 -0
- package/dist/harness/prompts/index.d.ts.map +1 -0
- package/dist/harness/prompts/index.js +7 -0
- package/dist/harness/prompts/index.js.map +1 -0
- package/dist/harness/prompts/load-schema-example.browser.d.ts +11 -0
- package/dist/harness/prompts/load-schema-example.browser.d.ts.map +1 -0
- package/dist/harness/prompts/load-schema-example.browser.js +70 -0
- package/dist/harness/prompts/load-schema-example.browser.js.map +1 -0
- package/dist/harness/prompts/load-schema-example.d.ts +11 -0
- package/dist/harness/prompts/load-schema-example.d.ts.map +1 -0
- package/dist/harness/prompts/load-schema-example.js +22 -0
- package/dist/harness/prompts/load-schema-example.js.map +1 -0
- package/dist/harness/prompts/load-schema-example.node.d.ts +7 -0
- package/dist/harness/prompts/load-schema-example.node.d.ts.map +1 -0
- package/dist/harness/prompts/load-schema-example.node.js +38 -0
- package/dist/harness/prompts/load-schema-example.node.js.map +1 -0
- package/dist/harness/prompts/schema-example-files.d.ts +7 -0
- package/dist/harness/prompts/schema-example-files.d.ts.map +1 -0
- package/dist/harness/prompts/schema-example-files.js +12 -0
- package/dist/harness/prompts/schema-example-files.js.map +1 -0
- package/dist/harness/prompts/typescript-primer.d.ts +11 -0
- package/dist/harness/prompts/typescript-primer.d.ts.map +1 -0
- package/dist/harness/prompts/typescript-primer.js +55 -0
- package/dist/harness/prompts/typescript-primer.js.map +1 -0
- package/dist/harness/repair-loop-timing.d.ts +17 -0
- package/dist/harness/repair-loop-timing.d.ts.map +1 -0
- package/dist/harness/repair-loop-timing.js +89 -0
- package/dist/harness/repair-loop-timing.js.map +1 -0
- package/dist/harness/resolve-harness-binding.d.ts +10 -0
- package/dist/harness/resolve-harness-binding.d.ts.map +1 -0
- package/dist/harness/resolve-harness-binding.js +14 -0
- package/dist/harness/resolve-harness-binding.js.map +1 -0
- package/dist/harness/run-model-repair-loop.d.ts +45 -0
- package/dist/harness/run-model-repair-loop.d.ts.map +1 -0
- package/dist/harness/run-model-repair-loop.js +57 -0
- package/dist/harness/run-model-repair-loop.js.map +1 -0
- package/dist/harness/types.d.ts +34 -0
- package/dist/harness/types.d.ts.map +1 -0
- package/dist/harness/types.js +2 -0
- package/dist/harness/types.js.map +1 -0
- package/dist/helpers/browser.d.ts +12 -0
- package/dist/helpers/browser.d.ts.map +1 -0
- package/dist/helpers/browser.js +12 -0
- package/dist/helpers/browser.js.map +1 -0
- package/dist/helpers/env.d.ts +12 -0
- package/dist/helpers/env.d.ts.map +1 -0
- package/dist/helpers/env.js +12 -0
- package/dist/helpers/env.js.map +1 -0
- package/dist/helpers/expr.d.ts +12 -0
- package/dist/helpers/expr.d.ts.map +1 -0
- package/dist/helpers/expr.js +15 -0
- package/dist/helpers/expr.js.map +1 -0
- package/dist/helpers/ref.d.ts +12 -0
- package/dist/helpers/ref.d.ts.map +1 -0
- package/dist/helpers/ref.js +13 -0
- package/dist/helpers/ref.js.map +1 -0
- package/dist/helpers/secrets.d.ts +12 -0
- package/dist/helpers/secrets.d.ts.map +1 -0
- package/dist/helpers/secrets.js +12 -0
- package/dist/helpers/secrets.js.map +1 -0
- package/dist/helpers/state.d.ts +12 -0
- package/dist/helpers/state.d.ts.map +1 -0
- package/dist/helpers/state.js +15 -0
- package/dist/helpers/state.js.map +1 -0
- package/dist/image/image-ref.d.ts +28 -0
- package/dist/image/image-ref.d.ts.map +1 -0
- package/dist/image/image-ref.js +75 -0
- package/dist/image/image-ref.js.map +1 -0
- package/dist/index.d.ts +50 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +44 -0
- package/dist/index.js.map +1 -0
- package/dist/invoke/execute-invoke.d.ts +9 -0
- package/dist/invoke/execute-invoke.d.ts.map +1 -0
- package/dist/invoke/execute-invoke.js +137 -0
- package/dist/invoke/execute-invoke.js.map +1 -0
- package/dist/invoke/index.d.ts +3 -0
- package/dist/invoke/index.d.ts.map +1 -0
- package/dist/invoke/index.js +3 -0
- package/dist/invoke/index.js.map +1 -0
- package/dist/invoke/invoke-builder.d.ts +17 -0
- package/dist/invoke/invoke-builder.d.ts.map +1 -0
- package/dist/invoke/invoke-builder.js +24 -0
- package/dist/invoke/invoke-builder.js.map +1 -0
- package/dist/loaders/files.d.ts +13 -0
- package/dist/loaders/files.d.ts.map +1 -0
- package/dist/loaders/files.js +64 -0
- package/dist/loaders/files.js.map +1 -0
- package/dist/loaders/index.d.ts +2 -0
- package/dist/loaders/index.d.ts.map +1 -0
- package/dist/loaders/index.js +2 -0
- package/dist/loaders/index.js.map +1 -0
- package/dist/node.d.ts +8 -0
- package/dist/node.d.ts.map +1 -0
- package/dist/node.js +8 -0
- package/dist/node.js.map +1 -0
- package/dist/patch/apply-patch.d.ts +8 -0
- package/dist/patch/apply-patch.d.ts.map +1 -0
- package/dist/patch/apply-patch.js +286 -0
- package/dist/patch/apply-patch.js.map +1 -0
- package/dist/patch/index.d.ts +7 -0
- package/dist/patch/index.d.ts.map +1 -0
- package/dist/patch/index.js +7 -0
- package/dist/patch/index.js.map +1 -0
- package/dist/patch/normalize-input.d.ts +15 -0
- package/dist/patch/normalize-input.d.ts.map +1 -0
- package/dist/patch/normalize-input.js +68 -0
- package/dist/patch/normalize-input.js.map +1 -0
- package/dist/patch/patch-builder.d.ts +14 -0
- package/dist/patch/patch-builder.d.ts.map +1 -0
- package/dist/patch/patch-builder.js +22 -0
- package/dist/patch/patch-builder.js.map +1 -0
- package/dist/patch/patch-document.d.ts +61 -0
- package/dist/patch/patch-document.d.ts.map +1 -0
- package/dist/patch/patch-document.js +16 -0
- package/dist/patch/patch-document.js.map +1 -0
- package/dist/patch/resolve-path.d.ts +21 -0
- package/dist/patch/resolve-path.d.ts.map +1 -0
- package/dist/patch/resolve-path.js +45 -0
- package/dist/patch/resolve-path.js.map +1 -0
- package/dist/patch/step-index.d.ts +14 -0
- package/dist/patch/step-index.d.ts.map +1 -0
- package/dist/patch/step-index.js +44 -0
- package/dist/patch/step-index.js.map +1 -0
- package/dist/registry/ensure-bound-extensions.d.ts +9 -0
- package/dist/registry/ensure-bound-extensions.d.ts.map +1 -0
- package/dist/registry/ensure-bound-extensions.js +31 -0
- package/dist/registry/ensure-bound-extensions.js.map +1 -0
- package/dist/registry/errors.d.ts +13 -0
- package/dist/registry/errors.d.ts.map +1 -0
- package/dist/registry/errors.js +19 -0
- package/dist/registry/errors.js.map +1 -0
- package/dist/registry/extension-catalog.d.ts +31 -0
- package/dist/registry/extension-catalog.d.ts.map +1 -0
- package/dist/registry/extension-catalog.js +50 -0
- package/dist/registry/extension-catalog.js.map +1 -0
- package/dist/registry/namespace.d.ts +11 -0
- package/dist/registry/namespace.d.ts.map +1 -0
- package/dist/registry/namespace.js +19 -0
- package/dist/registry/namespace.js.map +1 -0
- package/dist/registry/registry.d.ts +45 -0
- package/dist/registry/registry.d.ts.map +1 -0
- package/dist/registry/registry.js +95 -0
- package/dist/registry/registry.js.map +1 -0
- package/dist/runtime/commit.d.ts +11 -0
- package/dist/runtime/commit.d.ts.map +1 -0
- package/dist/runtime/commit.js +44 -0
- package/dist/runtime/commit.js.map +1 -0
- package/dist/runtime/context.d.ts +91 -0
- package/dist/runtime/context.d.ts.map +1 -0
- package/dist/runtime/context.js +32 -0
- package/dist/runtime/context.js.map +1 -0
- package/dist/runtime/executor.d.ts +17 -0
- package/dist/runtime/executor.d.ts.map +1 -0
- package/dist/runtime/executor.js +2 -0
- package/dist/runtime/executor.js.map +1 -0
- package/dist/runtime/in-memory-executor.d.ts +10 -0
- package/dist/runtime/in-memory-executor.d.ts.map +1 -0
- package/dist/runtime/in-memory-executor.js +328 -0
- package/dist/runtime/in-memory-executor.js.map +1 -0
- package/dist/runtime/lifecycle.d.ts +6 -0
- package/dist/runtime/lifecycle.d.ts.map +1 -0
- package/dist/runtime/lifecycle.js +10 -0
- package/dist/runtime/lifecycle.js.map +1 -0
- package/dist/runtime/mutation-records.d.ts +4 -0
- package/dist/runtime/mutation-records.d.ts.map +1 -0
- package/dist/runtime/mutation-records.js +28 -0
- package/dist/runtime/mutation-records.js.map +1 -0
- package/dist/runtime/policy-engine.d.ts +13 -0
- package/dist/runtime/policy-engine.d.ts.map +1 -0
- package/dist/runtime/policy-engine.js +46 -0
- package/dist/runtime/policy-engine.js.map +1 -0
- package/dist/runtime/resolve-input.d.ts +4 -0
- package/dist/runtime/resolve-input.d.ts.map +1 -0
- package/dist/runtime/resolve-input.js +46 -0
- package/dist/runtime/resolve-input.js.map +1 -0
- package/dist/runtime/store.d.ts +38 -0
- package/dist/runtime/store.d.ts.map +1 -0
- package/dist/runtime/store.js +97 -0
- package/dist/runtime/store.js.map +1 -0
- package/dist/testing/index.d.ts +7 -0
- package/dist/testing/index.d.ts.map +1 -0
- package/dist/testing/index.js +7 -0
- package/dist/testing/index.js.map +1 -0
- package/dist/testing/test-extension.d.ts +5 -0
- package/dist/testing/test-extension.d.ts.map +1 -0
- package/dist/testing/test-extension.js +52 -0
- package/dist/testing/test-extension.js.map +1 -0
- package/dist/testing/test-lifecycle-extension.d.ts +12 -0
- package/dist/testing/test-lifecycle-extension.d.ts.map +1 -0
- package/dist/testing/test-lifecycle-extension.js +65 -0
- package/dist/testing/test-lifecycle-extension.js.map +1 -0
- package/dist/testing/test-model-generate.d.ts +15 -0
- package/dist/testing/test-model-generate.d.ts.map +1 -0
- package/dist/testing/test-model-generate.js +71 -0
- package/dist/testing/test-model-generate.js.map +1 -0
- package/dist/util/path.d.ts +16 -0
- package/dist/util/path.d.ts.map +1 -0
- package/dist/util/path.js +116 -0
- package/dist/util/path.js.map +1 -0
- package/dist/util/slug.d.ts +3 -0
- package/dist/util/slug.d.ts.map +1 -0
- package/dist/util/slug.js +9 -0
- package/dist/util/slug.js.map +1 -0
- package/dist/validate/environment.d.ts +5 -0
- package/dist/validate/environment.d.ts.map +1 -0
- package/dist/validate/environment.js +30 -0
- package/dist/validate/environment.js.map +1 -0
- package/dist/validate/harness.d.ts +11 -0
- package/dist/validate/harness.d.ts.map +1 -0
- package/dist/validate/harness.js +72 -0
- package/dist/validate/harness.js.map +1 -0
- package/dist/validate/workflow-schema.d.ts +350 -0
- package/dist/validate/workflow-schema.d.ts.map +1 -0
- package/dist/validate/workflow-schema.js +152 -0
- package/dist/validate/workflow-schema.js.map +1 -0
- package/dist/validate/workflow.d.ts +7 -0
- package/dist/validate/workflow.d.ts.map +1 -0
- package/dist/validate/workflow.js +139 -0
- package/dist/validate/workflow.js.map +1 -0
- package/dist/validate/zod-mapper.d.ts +5 -0
- package/dist/validate/zod-mapper.d.ts.map +1 -0
- package/dist/validate/zod-mapper.js +10 -0
- package/dist/validate/zod-mapper.js.map +1 -0
- package/dist/workflow/assign-unique-step-ids.d.ts +7 -0
- package/dist/workflow/assign-unique-step-ids.d.ts.map +1 -0
- package/dist/workflow/assign-unique-step-ids.js +58 -0
- package/dist/workflow/assign-unique-step-ids.js.map +1 -0
- package/dist/workflow/builder.d.ts +35 -0
- package/dist/workflow/builder.d.ts.map +1 -0
- package/dist/workflow/builder.js +63 -0
- package/dist/workflow/builder.js.map +1 -0
- package/dist/workflow/flow.d.ts +36 -0
- package/dist/workflow/flow.d.ts.map +1 -0
- package/dist/workflow/flow.js +51 -0
- package/dist/workflow/flow.js.map +1 -0
- package/fixtures/schema-examples/harness-reply.output.eql +3 -0
- package/fixtures/schema-examples/harness-reply.output.json +11 -0
- package/fixtures/schema-examples/intent.output.eql +1 -0
- package/fixtures/schema-examples/intent.output.json +4 -0
- package/fixtures/schema-examples/patch.output.eql +4 -0
- package/fixtures/schema-examples/patch.output.json +12 -0
- package/fixtures/schema-examples/patch.repair-neutral.eql +4 -0
- package/fixtures/schema-examples/workflow.output.eql +5 -0
- package/fixtures/schema-examples/workflow.output.json +18 -0
- package/package.json +115 -0
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
/** Whether filename indicates TypeScript. */
|
|
2
|
+
export function isTypeScriptFile(filename) {
|
|
3
|
+
return /\.tsx?$/i.test(filename);
|
|
4
|
+
}
|
|
5
|
+
async function loadEsbuild() {
|
|
6
|
+
try {
|
|
7
|
+
return await import("esbuild");
|
|
8
|
+
}
|
|
9
|
+
catch {
|
|
10
|
+
throw new Error("esbuild is required to compile TypeScript workflow sources. Run: npm install esbuild");
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
/** Transpile TS to ESM using esbuild (Node host). */
|
|
14
|
+
export async function transpileWorkflowSource(source, filename) {
|
|
15
|
+
if (!isTypeScriptFile(filename))
|
|
16
|
+
return source;
|
|
17
|
+
const esbuild = await loadEsbuild();
|
|
18
|
+
const result = await esbuild.transform(source, {
|
|
19
|
+
loader: filename.endsWith(".tsx") ? "tsx" : "ts",
|
|
20
|
+
format: "esm",
|
|
21
|
+
target: "es2022",
|
|
22
|
+
});
|
|
23
|
+
return result.code;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Bundle workflow module with dependencies (Node host).
|
|
27
|
+
* Resolves `@executioncontrolprotocol/core` and extension imports.
|
|
28
|
+
*/
|
|
29
|
+
export async function bundleWorkflowSource(source, filename, resolveDir) {
|
|
30
|
+
const { dirname, join } = await import("node:path");
|
|
31
|
+
const { fileURLToPath } = await import("node:url");
|
|
32
|
+
const esbuild = await loadEsbuild();
|
|
33
|
+
const repoRoot = join(dirname(fileURLToPath(import.meta.url)), "../../../..");
|
|
34
|
+
const loader = filename.endsWith(".tsx")
|
|
35
|
+
? "tsx"
|
|
36
|
+
: filename.endsWith(".ts")
|
|
37
|
+
? "ts"
|
|
38
|
+
: "js";
|
|
39
|
+
const result = await esbuild.build({
|
|
40
|
+
stdin: {
|
|
41
|
+
contents: source,
|
|
42
|
+
loader,
|
|
43
|
+
resolveDir,
|
|
44
|
+
sourcefile: filename,
|
|
45
|
+
},
|
|
46
|
+
bundle: true,
|
|
47
|
+
format: "esm",
|
|
48
|
+
platform: "node",
|
|
49
|
+
target: "node22",
|
|
50
|
+
write: false,
|
|
51
|
+
packages: "bundle",
|
|
52
|
+
alias: {
|
|
53
|
+
"@executioncontrolprotocol/core/compile": join(repoRoot, "packages/core/dist/compile/entry.js"),
|
|
54
|
+
"@executioncontrolprotocol/core/loaders": join(repoRoot, "packages/core/dist/loaders/index.js"),
|
|
55
|
+
"@executioncontrolprotocol/core/browser": join(repoRoot, "packages/core/dist/browser.js"),
|
|
56
|
+
"@executioncontrolprotocol/core": join(repoRoot, "packages/core/dist/index.js"),
|
|
57
|
+
"@executioncontrolprotocol/core/testing": join(repoRoot, "packages/core/dist/testing/index.js"),
|
|
58
|
+
"@executioncontrolprotocol/node": join(repoRoot, "packages/runtimes/node/dist/index.js"),
|
|
59
|
+
"@executioncontrolprotocol/browser": join(repoRoot, "packages/runtimes/browser/dist/index.js"),
|
|
60
|
+
"@executioncontrolprotocol/types": join(repoRoot, "packages/types/dist/index.js"),
|
|
61
|
+
"@executioncontrolprotocol/policies": join(repoRoot, "packages/policies/dist/index.js"),
|
|
62
|
+
"@executioncontrolprotocol/format-toon": join(repoRoot, "packages/extensions/format-toon/dist/index.js"),
|
|
63
|
+
"@executioncontrolprotocol/secrets": join(repoRoot, "packages/extensions/secrets/dist/index.js"),
|
|
64
|
+
"@executioncontrolprotocol/browser-secrets": join(repoRoot, "packages/extensions/browser-secrets/dist/index.js"),
|
|
65
|
+
"@executioncontrolprotocol/process-env": join(repoRoot, "packages/extensions/process-env/dist/index.js"),
|
|
66
|
+
},
|
|
67
|
+
external: ["@napi-rs/keyring"],
|
|
68
|
+
plugins: [
|
|
69
|
+
{
|
|
70
|
+
name: "ecp-keyring-external",
|
|
71
|
+
setup(build) {
|
|
72
|
+
build.onResolve({ filter: /^@napi-rs\/keyring/ }, (args) => ({
|
|
73
|
+
path: args.path,
|
|
74
|
+
external: true,
|
|
75
|
+
}));
|
|
76
|
+
},
|
|
77
|
+
},
|
|
78
|
+
],
|
|
79
|
+
});
|
|
80
|
+
const file = result.outputFiles?.[0];
|
|
81
|
+
if (!file)
|
|
82
|
+
throw new Error("esbuild produced no output");
|
|
83
|
+
return file.text;
|
|
84
|
+
}
|
|
85
|
+
//# sourceMappingURL=transpile.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"transpile.js","sourceRoot":"","sources":["../../src/compile/transpile.ts"],"names":[],"mappings":"AAAA,6CAA6C;AAC7C,MAAM,UAAU,gBAAgB,CAAC,QAAgB;IAC/C,OAAO,UAAU,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAA;AAClC,CAAC;AAED,KAAK,UAAU,WAAW;IACxB,IAAI,CAAC;QACH,OAAO,MAAM,MAAM,CAAC,SAAS,CAAC,CAAA;IAChC,CAAC;IAAC,MAAM,CAAC;QACP,MAAM,IAAI,KAAK,CACb,sFAAsF,CACvF,CAAA;IACH,CAAC;AACH,CAAC;AAED,qDAAqD;AACrD,MAAM,CAAC,KAAK,UAAU,uBAAuB,CAC3C,MAAc,EACd,QAAgB;IAEhB,IAAI,CAAC,gBAAgB,CAAC,QAAQ,CAAC;QAAE,OAAO,MAAM,CAAA;IAE9C,MAAM,OAAO,GAAG,MAAM,WAAW,EAAE,CAAA;IACnC,MAAM,MAAM,GAAG,MAAM,OAAO,CAAC,SAAS,CAAC,MAAM,EAAE;QAC7C,MAAM,EAAE,QAAQ,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,IAAI;QAChD,MAAM,EAAE,KAAK;QACb,MAAM,EAAE,QAAQ;KACjB,CAAC,CAAA;IACF,OAAO,MAAM,CAAC,IAAI,CAAA;AACpB,CAAC;AAED;;;GAGG;AACH,MAAM,CAAC,KAAK,UAAU,oBAAoB,CACxC,MAAc,EACd,QAAgB,EAChB,UAAkB;IAElB,MAAM,EAAE,OAAO,EAAE,IAAI,EAAE,GAAG,MAAM,MAAM,CAAC,WAAW,CAAC,CAAA;IACnD,MAAM,EAAE,aAAa,EAAE,GAAG,MAAM,MAAM,CAAC,UAAU,CAAC,CAAA;IACl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,uCAAuC,EAAE,IAAI,CAAC,QAAQ,EAAE,+CAA+C,CAAC;YACxG,mCAAmC,EAAE,IAAI,CAAC,QAAQ,EAAE,2CAA2C,CAAC;YAChG,2CAA2C,EAAE,IAAI,CAAC,QAAQ,EAAE,mDAAmD,CAAC;YAChH,uCAAuC,EAAE,IAAI,CAAC,QAAQ,EAAE,+CAA+C,CAAC;SACzG;QACD,QAAQ,EAAE,CAAC,kBAAkB,CAAC;QAC9B,OAAO,EAAE;YACP;gBACE,IAAI,EAAE,sBAAsB;gBAC5B,KAAK,CAAC,KAAK;oBACT,KAAK,CAAC,SAAS,CAAC,EAAE,MAAM,EAAE,oBAAoB,EAAE,EAAE,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC;wBAC3D,IAAI,EAAE,IAAI,CAAC,IAAI;wBACf,QAAQ,EAAE,IAAI;qBACf,CAAC,CAAC,CAAA;gBACL,CAAC;aACF;SACF;KACF,CAAC,CAAA;IACF,MAAM,IAAI,GAAG,MAAM,CAAC,WAAW,EAAE,CAAC,CAAC,CAAC,CAAA;IACpC,IAAI,CAAC,IAAI;QAAE,MAAM,IAAI,KAAK,CAAC,4BAA4B,CAAC,CAAA;IACxD,OAAO,IAAI,CAAC,IAAI,CAAA;AAClB,CAAC"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import type { ValidationResult, WorkflowManifest } from "@executioncontrolprotocol/types";
|
|
2
|
+
/** Transpile or syntax error. @category Compile */
|
|
3
|
+
export interface CompileDiagnostic {
|
|
4
|
+
message: string;
|
|
5
|
+
line?: number;
|
|
6
|
+
column?: number;
|
|
7
|
+
filename?: string;
|
|
8
|
+
}
|
|
9
|
+
/** Result of compiling workflow source. @category Compile */
|
|
10
|
+
export interface CompileWorkflowResult {
|
|
11
|
+
ok: boolean;
|
|
12
|
+
manifest?: WorkflowManifest;
|
|
13
|
+
compileErrors?: CompileDiagnostic[];
|
|
14
|
+
validation?: ValidationResult;
|
|
15
|
+
}
|
|
16
|
+
/** Options for compileWorkflowSource. @category Compile */
|
|
17
|
+
export interface CompileWorkflowSourceOptions {
|
|
18
|
+
source: string;
|
|
19
|
+
filename?: string;
|
|
20
|
+
format?: "esm";
|
|
21
|
+
/** Browser demo: resolve @executioncontrolprotocol imports via globalThis.__ecpWorkflowShim. */
|
|
22
|
+
resolveImports?: "browser-global";
|
|
23
|
+
}
|
|
24
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/compile/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,MAAM,iCAAiC,CAAA;AAEzF,mDAAmD;AACnD,MAAM,WAAW,iBAAiB;IAChC,OAAO,EAAE,MAAM,CAAA;IACf,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,QAAQ,CAAC,EAAE,MAAM,CAAA;CAClB;AAED,6DAA6D;AAC7D,MAAM,WAAW,qBAAqB;IACpC,EAAE,EAAE,OAAO,CAAA;IACX,QAAQ,CAAC,EAAE,gBAAgB,CAAA;IAC3B,aAAa,CAAC,EAAE,iBAAiB,EAAE,CAAA;IACnC,UAAU,CAAC,EAAE,gBAAgB,CAAA;CAC9B;AAED,2DAA2D;AAC3D,MAAM,WAAW,4BAA4B;IAC3C,MAAM,EAAE,MAAM,CAAA;IACd,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,MAAM,CAAC,EAAE,KAAK,CAAA;IACd,gGAAgG;IAChG,cAAc,CAAC,EAAE,gBAAgB,CAAA;CAClC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/compile/types.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/config-schema/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,4EAA4E;AAC5E,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/config-schema/index.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import type { NamespacedId } from "@executioncontrolprotocol/types";
|
|
2
|
+
import type { z } from "zod";
|
|
3
|
+
import type { CapabilityDefinition, CapabilityHandler } from "./types.js";
|
|
4
|
+
/** Fluent capability builder. @category Definitions */
|
|
5
|
+
export declare class CapabilityBuilder {
|
|
6
|
+
private readonly extensionId;
|
|
7
|
+
private readonly name;
|
|
8
|
+
private inputSchema?;
|
|
9
|
+
private outputSchema?;
|
|
10
|
+
private handlerFn?;
|
|
11
|
+
constructor(extensionId: NamespacedId, name: string);
|
|
12
|
+
/** Set input Zod schema. */
|
|
13
|
+
withInput<T extends z.ZodType<unknown>>(schema: T): this;
|
|
14
|
+
/** Set output Zod schema. */
|
|
15
|
+
withOutput<T extends z.ZodType<unknown>>(schema: T): this;
|
|
16
|
+
/** Set capability handler. */
|
|
17
|
+
withHandler(handler: CapabilityHandler): CapabilityDefinition;
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* Define a capability (use inside extension; prefer `capabilityFor`).
|
|
21
|
+
* @category Definitions
|
|
22
|
+
*/
|
|
23
|
+
export declare function capability(name: string): CapabilityBuilder;
|
|
24
|
+
/** Bind capability builder to extension id. @category Definitions */
|
|
25
|
+
export declare function capabilityFor(extensionId: NamespacedId, name: string): CapabilityBuilder;
|
|
26
|
+
//# sourceMappingURL=capability.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"capability.d.ts","sourceRoot":"","sources":["../../src/definitions/capability.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAgB,YAAY,EAAE,MAAM,iCAAiC,CAAA;AACjF,OAAO,KAAK,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAC5B,OAAO,KAAK,EAAE,oBAAoB,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAA;AAEzE,uDAAuD;AACvD,qBAAa,iBAAiB;IAM1B,OAAO,CAAC,QAAQ,CAAC,WAAW;IAC5B,OAAO,CAAC,QAAQ,CAAC,IAAI;IANvB,OAAO,CAAC,WAAW,CAAC,CAAoB;IACxC,OAAO,CAAC,YAAY,CAAC,CAAoB;IACzC,OAAO,CAAC,SAAS,CAAC,CAAmB;gBAGlB,WAAW,EAAE,YAAY,EACzB,IAAI,EAAE,MAAM;IAG/B,4BAA4B;IAC5B,SAAS,CAAC,CAAC,SAAS,CAAC,CAAC,OAAO,CAAC,OAAO,CAAC,EAAE,MAAM,EAAE,CAAC,GAAG,IAAI;IAKxD,6BAA6B;IAC7B,UAAU,CAAC,CAAC,SAAS,CAAC,CAAC,OAAO,CAAC,OAAO,CAAC,EAAE,MAAM,EAAE,CAAC,GAAG,IAAI;IAKzD,8BAA8B;IAC9B,WAAW,CAAC,OAAO,EAAE,iBAAiB,GAAG,oBAAoB;CAc9D;AAED;;;GAGG;AACH,wBAAgB,UAAU,CAAC,IAAI,EAAE,MAAM,GAAG,iBAAiB,CAE1D;AAED,qEAAqE;AACrE,wBAAgB,aAAa,CAC3B,WAAW,EAAE,YAAY,EACzB,IAAI,EAAE,MAAM,GACX,iBAAiB,CAEnB"}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
/** Fluent capability builder. @category Definitions */
|
|
2
|
+
export class CapabilityBuilder {
|
|
3
|
+
extensionId;
|
|
4
|
+
name;
|
|
5
|
+
inputSchema;
|
|
6
|
+
outputSchema;
|
|
7
|
+
handlerFn;
|
|
8
|
+
constructor(extensionId, name) {
|
|
9
|
+
this.extensionId = extensionId;
|
|
10
|
+
this.name = name;
|
|
11
|
+
}
|
|
12
|
+
/** Set input Zod schema. */
|
|
13
|
+
withInput(schema) {
|
|
14
|
+
this.inputSchema = schema;
|
|
15
|
+
return this;
|
|
16
|
+
}
|
|
17
|
+
/** Set output Zod schema. */
|
|
18
|
+
withOutput(schema) {
|
|
19
|
+
this.outputSchema = schema;
|
|
20
|
+
return this;
|
|
21
|
+
}
|
|
22
|
+
/** Set capability handler. */
|
|
23
|
+
withHandler(handler) {
|
|
24
|
+
this.handlerFn = handler;
|
|
25
|
+
const id = `${this.extensionId}.${this.name}`;
|
|
26
|
+
if (!this.handlerFn) {
|
|
27
|
+
throw new Error(`Capability ${id} requires a handler`);
|
|
28
|
+
}
|
|
29
|
+
return {
|
|
30
|
+
name: this.name,
|
|
31
|
+
id,
|
|
32
|
+
inputSchema: this.inputSchema,
|
|
33
|
+
outputSchema: this.outputSchema,
|
|
34
|
+
handler: this.handlerFn,
|
|
35
|
+
};
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
* Define a capability (use inside extension; prefer `capabilityFor`).
|
|
40
|
+
* @category Definitions
|
|
41
|
+
*/
|
|
42
|
+
export function capability(name) {
|
|
43
|
+
return new CapabilityBuilder("@executioncontrolprotocol/placeholder", name);
|
|
44
|
+
}
|
|
45
|
+
/** Bind capability builder to extension id. @category Definitions */
|
|
46
|
+
export function capabilityFor(extensionId, name) {
|
|
47
|
+
return new CapabilityBuilder(extensionId, name);
|
|
48
|
+
}
|
|
49
|
+
//# sourceMappingURL=capability.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"capability.js","sourceRoot":"","sources":["../../src/definitions/capability.ts"],"names":[],"mappings":"AAIA,uDAAuD;AACvD,MAAM,OAAO,iBAAiB;IAMT;IACA;IANX,WAAW,CAAqB;IAChC,YAAY,CAAqB;IACjC,SAAS,CAAoB;IAErC,YACmB,WAAyB,EACzB,IAAY;QADZ,gBAAW,GAAX,WAAW,CAAc;QACzB,SAAI,GAAJ,IAAI,CAAQ;IAC5B,CAAC;IAEJ,4BAA4B;IAC5B,SAAS,CAA+B,MAAS;QAC/C,IAAI,CAAC,WAAW,GAAG,MAAM,CAAA;QACzB,OAAO,IAAI,CAAA;IACb,CAAC;IAED,6BAA6B;IAC7B,UAAU,CAA+B,MAAS;QAChD,IAAI,CAAC,YAAY,GAAG,MAAM,CAAA;QAC1B,OAAO,IAAI,CAAA;IACb,CAAC;IAED,8BAA8B;IAC9B,WAAW,CAAC,OAA0B;QACpC,IAAI,CAAC,SAAS,GAAG,OAAO,CAAA;QACxB,MAAM,EAAE,GAAG,GAAG,IAAI,CAAC,WAAW,IAAI,IAAI,CAAC,IAAI,EAAkB,CAAA;QAC7D,IAAI,CAAC,IAAI,CAAC,SAAS,EAAE,CAAC;YACpB,MAAM,IAAI,KAAK,CAAC,cAAc,EAAE,qBAAqB,CAAC,CAAA;QACxD,CAAC;QACD,OAAO;YACL,IAAI,EAAE,IAAI,CAAC,IAAI;YACf,EAAE;YACF,WAAW,EAAE,IAAI,CAAC,WAAW;YAC7B,YAAY,EAAE,IAAI,CAAC,YAAY;YAC/B,OAAO,EAAE,IAAI,CAAC,SAAS;SACxB,CAAA;IACH,CAAC;CACF;AAED;;;GAGG;AACH,MAAM,UAAU,UAAU,CAAC,IAAY;IACrC,OAAO,IAAI,iBAAiB,CAAC,uCAAuD,EAAE,IAAI,CAAC,CAAA;AAC7F,CAAC;AAED,qEAAqE;AACrE,MAAM,UAAU,aAAa,CAC3B,WAAyB,EACzB,IAAY;IAEZ,OAAO,IAAI,iBAAiB,CAAC,WAAW,EAAE,IAAI,CAAC,CAAA;AACjD,CAAC"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import type { NamespacedId } from "@executioncontrolprotocol/types";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
import type { CapabilityDefinition, ExtensionDefinition, HookDefinition } from "./types.js";
|
|
4
|
+
import type { ConfigSchema } from "../config-schema/index.js";
|
|
5
|
+
/** Fluent extension definition builder. @category Definitions */
|
|
6
|
+
export declare class ExtensionDefinitionBuilder {
|
|
7
|
+
private readonly namespace;
|
|
8
|
+
private readonly name;
|
|
9
|
+
private configSchema?;
|
|
10
|
+
private capabilities;
|
|
11
|
+
private hooks;
|
|
12
|
+
private supportedRuntimes?;
|
|
13
|
+
constructor(namespace: string, name: string);
|
|
14
|
+
/** Restrict this extension to specific runtime hosts. Omit for universal support. */
|
|
15
|
+
withSupportedRuntimes(runtimes: NamespacedId[]): this;
|
|
16
|
+
/** Set extension config Zod schema. */
|
|
17
|
+
withConfig(schema: ConfigSchema | z.ZodRawShape): this;
|
|
18
|
+
/** Register capability definitions. */
|
|
19
|
+
withCapabilities(caps: CapabilityDefinition[]): this;
|
|
20
|
+
/** Register lifecycle hooks. */
|
|
21
|
+
withHooks(hooks: HookDefinition[]): this;
|
|
22
|
+
/** Build extension definition. */
|
|
23
|
+
build(): ExtensionDefinition;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Define an extension.
|
|
27
|
+
* @category Definitions
|
|
28
|
+
*/
|
|
29
|
+
export declare function defineExtension(namespace: string, name: string): ExtensionDefinitionBuilder;
|
|
30
|
+
//# sourceMappingURL=extension.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"extension.d.ts","sourceRoot":"","sources":["../../src/definitions/extension.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iCAAiC,CAAA;AACnE,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AACvB,OAAO,KAAK,EACV,oBAAoB,EACpB,mBAAmB,EACnB,cAAc,EACf,MAAM,YAAY,CAAA;AACnB,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAA;AAO7D,iEAAiE;AACjE,qBAAa,0BAA0B;IAOnC,OAAO,CAAC,QAAQ,CAAC,SAAS;IAC1B,OAAO,CAAC,QAAQ,CAAC,IAAI;IAPvB,OAAO,CAAC,YAAY,CAAC,CAAc;IACnC,OAAO,CAAC,YAAY,CAA6B;IACjD,OAAO,CAAC,KAAK,CAAuB;IACpC,OAAO,CAAC,iBAAiB,CAAC,CAAgB;gBAGvB,SAAS,EAAE,MAAM,EACjB,IAAI,EAAE,MAAM;IAG/B,qFAAqF;IACrF,qBAAqB,CAAC,QAAQ,EAAE,YAAY,EAAE,GAAG,IAAI;IAKrD,uCAAuC;IACvC,UAAU,CAAC,MAAM,EAAE,YAAY,GAAG,CAAC,CAAC,WAAW,GAAG,IAAI;IAStD,uCAAuC;IACvC,gBAAgB,CAAC,IAAI,EAAE,oBAAoB,EAAE,GAAG,IAAI;IAKpD,gCAAgC;IAChC,SAAS,CAAC,KAAK,EAAE,cAAc,EAAE,GAAG,IAAI;IAKxC,kCAAkC;IAClC,KAAK,IAAI,mBAAmB;CAY7B;AAED;;;GAGG;AACH,wBAAgB,eAAe,CAC7B,SAAS,EAAE,MAAM,EACjB,IAAI,EAAE,MAAM,GACX,0BAA0B,CAE5B"}
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
function toId(namespace, name) {
|
|
3
|
+
const ns = namespace.startsWith("@") ? namespace : `@${namespace}`;
|
|
4
|
+
return `${ns}/${name}`;
|
|
5
|
+
}
|
|
6
|
+
/** Fluent extension definition builder. @category Definitions */
|
|
7
|
+
export class ExtensionDefinitionBuilder {
|
|
8
|
+
namespace;
|
|
9
|
+
name;
|
|
10
|
+
configSchema;
|
|
11
|
+
capabilities = [];
|
|
12
|
+
hooks = [];
|
|
13
|
+
supportedRuntimes;
|
|
14
|
+
constructor(namespace, name) {
|
|
15
|
+
this.namespace = namespace;
|
|
16
|
+
this.name = name;
|
|
17
|
+
}
|
|
18
|
+
/** Restrict this extension to specific runtime hosts. Omit for universal support. */
|
|
19
|
+
withSupportedRuntimes(runtimes) {
|
|
20
|
+
this.supportedRuntimes = runtimes;
|
|
21
|
+
return this;
|
|
22
|
+
}
|
|
23
|
+
/** Set extension config Zod schema. */
|
|
24
|
+
withConfig(schema) {
|
|
25
|
+
if ("safeParse" in schema) {
|
|
26
|
+
this.configSchema = schema;
|
|
27
|
+
}
|
|
28
|
+
else {
|
|
29
|
+
this.configSchema = z.object(schema);
|
|
30
|
+
}
|
|
31
|
+
return this;
|
|
32
|
+
}
|
|
33
|
+
/** Register capability definitions. */
|
|
34
|
+
withCapabilities(caps) {
|
|
35
|
+
this.capabilities = caps;
|
|
36
|
+
return this;
|
|
37
|
+
}
|
|
38
|
+
/** Register lifecycle hooks. */
|
|
39
|
+
withHooks(hooks) {
|
|
40
|
+
this.hooks = hooks;
|
|
41
|
+
return this;
|
|
42
|
+
}
|
|
43
|
+
/** Build extension definition. */
|
|
44
|
+
build() {
|
|
45
|
+
const id = toId(this.namespace, this.name);
|
|
46
|
+
return {
|
|
47
|
+
id,
|
|
48
|
+
namespace: this.namespace,
|
|
49
|
+
name: this.name,
|
|
50
|
+
configSchema: this.configSchema,
|
|
51
|
+
capabilities: this.capabilities,
|
|
52
|
+
hooks: this.hooks,
|
|
53
|
+
supportedRuntimes: this.supportedRuntimes,
|
|
54
|
+
};
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
/**
|
|
58
|
+
* Define an extension.
|
|
59
|
+
* @category Definitions
|
|
60
|
+
*/
|
|
61
|
+
export function defineExtension(namespace, name) {
|
|
62
|
+
return new ExtensionDefinitionBuilder(namespace, name);
|
|
63
|
+
}
|
|
64
|
+
//# sourceMappingURL=extension.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"extension.js","sourceRoot":"","sources":["../../src/definitions/extension.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAQvB,SAAS,IAAI,CAAC,SAAiB,EAAE,IAAY;IAC3C,MAAM,EAAE,GAAG,SAAS,CAAC,UAAU,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,IAA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AY,EAAE,IAAI,CAAC,YAAY;YAC/B,KAAK,EAAE,IAAI,CAAC,KAAK;YACjB,iBAAiB,EAAE,IAAI,CAAC,iBAAiB;SAC1C,CAAA;IACH,CAAC;CACF;AAED;;;GAGG;AACH,MAAM,UAAU,eAAe,CAC7B,SAAiB,EACjB,IAAY;IAEZ,OAAO,IAAI,0BAA0B,CAAC,SAAS,EAAE,IAAI,CAAC,CAAA;AACxD,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { LifecycleEvent } from "@executioncontrolprotocol/types";
|
|
2
|
+
import type { HookDefinition, HookHandler } from "./types.js";
|
|
3
|
+
/**
|
|
4
|
+
* Define a lifecycle hook.
|
|
5
|
+
* @category Definitions
|
|
6
|
+
*/
|
|
7
|
+
export declare function hook(event: LifecycleEvent, handler: HookHandler, options?: {
|
|
8
|
+
priority?: number;
|
|
9
|
+
target?: string;
|
|
10
|
+
}): HookDefinition;
|
|
11
|
+
//# sourceMappingURL=hook.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"hook.d.ts","sourceRoot":"","sources":["../../src/definitions/hook.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,iCAAiC,CAAA;AACrE,OAAO,KAAK,EAAE,cAAc,EAAE,WAAW,EAAE,MAAM,YAAY,CAAA;AAE7D;;;GAGG;AACH,wBAAgB,IAAI,CAClB,KAAK,EAAE,cAAc,EACrB,OAAO,EAAE,WAAW,EACpB,OAAO,CAAC,EAAE;IAAE,QAAQ,CAAC,EAAE,MAAM,CAAC;IAAC,MAAM,CAAC,EAAE,MAAM,CAAA;CAAE,GAC/C,cAAc,CAOhB"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Define a lifecycle hook.
|
|
3
|
+
* @category Definitions
|
|
4
|
+
*/
|
|
5
|
+
export function hook(event, handler, options) {
|
|
6
|
+
return {
|
|
7
|
+
event,
|
|
8
|
+
handler,
|
|
9
|
+
...(options?.priority !== undefined ? { priority: options.priority } : {}),
|
|
10
|
+
...(options?.target !== undefined ? { target: options.target } : {}),
|
|
11
|
+
};
|
|
12
|
+
}
|
|
13
|
+
//# sourceMappingURL=hook.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"hook.js","sourceRoot":"","sources":["../../src/definitions/hook.ts"],"names":[],"mappings":"AAGA;;;GAGG;AACH,MAAM,UAAU,IAAI,CAClB,KAAqB,EACrB,OAAoB,EACpB,OAAgD;IAEhD,OAAO;QACL,KAAK;QACL,OAAO;QACP,GAAG,CAAC,OAAO,EAAE,QAAQ,KAAK,SAAS,CAAC,CAAC,CAAC,EAAE,QAAQ,EAAE,OAAO,CAAC,QAAQ,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;QAC1E,GAAG,CAAC,OAAO,EAAE,MAAM,KAAK,SAAS,CAAC,CAAC,CAAC,EAAE,MAAM,EAAE,OAAO,CAAC,MAAM,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;KACrE,CAAA;AACH,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export { defineExtension } from "./extension.js";
|
|
2
|
+
export { defineRuntime } from "./runtime.js";
|
|
3
|
+
export { definePolicy } from "./policy.js";
|
|
4
|
+
export { capability, capabilityFor } from "./capability.js";
|
|
5
|
+
export { hook } from "./hook.js";
|
|
6
|
+
export type { CapabilityDefinition, ExtensionDefinition, RuntimeDefinition, PolicyDefinition, HookDefinition, CapabilityHandler, HookHandler, } from "./types.js";
|
|
7
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/definitions/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAA;AAChD,OAAO,EAAE,aAAa,EAAE,MAAM,cAAc,CAAA;AAC5C,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAA;AAC1C,OAAO,EAAE,UAAU,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAA;AAC3D,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAA;AAChC,YAAY,EACV,oBAAoB,EACpB,mBAAmB,EACnB,iBAAiB,EACjB,gBAAgB,EAChB,cAAc,EACd,iBAAiB,EACjB,WAAW,GACZ,MAAM,YAAY,CAAA"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export { defineExtension } from "./extension.js";
|
|
2
|
+
export { defineRuntime } from "./runtime.js";
|
|
3
|
+
export { definePolicy } from "./policy.js";
|
|
4
|
+
export { capability, capabilityFor } from "./capability.js";
|
|
5
|
+
export { hook } from "./hook.js";
|
|
6
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/definitions/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAA;AAChD,OAAO,EAAE,aAAa,EAAE,MAAM,cAAc,CAAA;AAC5C,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAA;AAC1C,OAAO,EAAE,UAAU,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAA;AAC3D,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAA"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
import type { HookDefinition, PolicyDefinition } from "./types.js";
|
|
3
|
+
import type { ConfigSchema } from "../config-schema/index.js";
|
|
4
|
+
/** Fluent policy definition builder. @category Definitions */
|
|
5
|
+
export declare class PolicyDefinitionBuilder {
|
|
6
|
+
private readonly namespace;
|
|
7
|
+
private readonly name;
|
|
8
|
+
private configSchema?;
|
|
9
|
+
private hooks;
|
|
10
|
+
constructor(namespace: string, name: string);
|
|
11
|
+
/** Set policy config schema. */
|
|
12
|
+
withConfig(schema: ConfigSchema | z.ZodRawShape): this;
|
|
13
|
+
/** Register policy hooks. */
|
|
14
|
+
withHooks(hooks: HookDefinition[]): this;
|
|
15
|
+
/** Build policy definition. */
|
|
16
|
+
build(): PolicyDefinition;
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* Define a policy.
|
|
20
|
+
* @category Definitions
|
|
21
|
+
*/
|
|
22
|
+
export declare function definePolicy(namespace: string, name: string): PolicyDefinitionBuilder;
|
|
23
|
+
//# sourceMappingURL=policy.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"policy.d.ts","sourceRoot":"","sources":["../../src/definitions/policy.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AACvB,OAAO,KAAK,EAAE,cAAc,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAA;AAClE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAA;AAO7D,8DAA8D;AAC9D,qBAAa,uBAAuB;IAKhC,OAAO,CAAC,QAAQ,CAAC,SAAS;IAC1B,OAAO,CAAC,QAAQ,CAAC,IAAI;IALvB,OAAO,CAAC,YAAY,CAAC,CAAc;IACnC,OAAO,CAAC,KAAK,CAAuB;gBAGjB,SAAS,EAAE,MAAM,EACjB,IAAI,EAAE,MAAM;IAG/B,gCAAgC;IAChC,UAAU,CAAC,MAAM,EAAE,YAAY,GAAG,CAAC,CAAC,WAAW,GAAG,IAAI;IAStD,6BAA6B;IAC7B,SAAS,CAAC,KAAK,EAAE,cAAc,EAAE,GAAG,IAAI;IAKxC,+BAA+B;IAC/B,KAAK,IAAI,gBAAgB;CAU1B;AAED;;;GAGG;AACH,wBAAgB,YAAY,CAC1B,SAAS,EAAE,MAAM,EACjB,IAAI,EAAE,MAAM,GACX,uBAAuB,CAEzB"}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
function toId(namespace, name) {
|
|
3
|
+
const ns = namespace.startsWith("@") ? namespace : `@${namespace}`;
|
|
4
|
+
return `${ns}/${name}`;
|
|
5
|
+
}
|
|
6
|
+
/** Fluent policy definition builder. @category Definitions */
|
|
7
|
+
export class PolicyDefinitionBuilder {
|
|
8
|
+
namespace;
|
|
9
|
+
name;
|
|
10
|
+
configSchema;
|
|
11
|
+
hooks = [];
|
|
12
|
+
constructor(namespace, name) {
|
|
13
|
+
this.namespace = namespace;
|
|
14
|
+
this.name = name;
|
|
15
|
+
}
|
|
16
|
+
/** Set policy config schema. */
|
|
17
|
+
withConfig(schema) {
|
|
18
|
+
if ("safeParse" in schema) {
|
|
19
|
+
this.configSchema = schema;
|
|
20
|
+
}
|
|
21
|
+
else {
|
|
22
|
+
this.configSchema = z.object(schema);
|
|
23
|
+
}
|
|
24
|
+
return this;
|
|
25
|
+
}
|
|
26
|
+
/** Register policy hooks. */
|
|
27
|
+
withHooks(hooks) {
|
|
28
|
+
this.hooks = hooks;
|
|
29
|
+
return this;
|
|
30
|
+
}
|
|
31
|
+
/** Build policy definition. */
|
|
32
|
+
build() {
|
|
33
|
+
const id = toId(this.namespace, this.name);
|
|
34
|
+
return {
|
|
35
|
+
id,
|
|
36
|
+
namespace: this.namespace,
|
|
37
|
+
name: this.name,
|
|
38
|
+
configSchema: this.configSchema,
|
|
39
|
+
hooks: this.hooks,
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* Define a policy.
|
|
45
|
+
* @category Definitions
|
|
46
|
+
*/
|
|
47
|
+
export function definePolicy(namespace, name) {
|
|
48
|
+
return new PolicyDefinitionBuilder(namespace, name);
|
|
49
|
+
}
|
|
50
|
+
//# sourceMappingURL=policy.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"policy.js","sourceRoot":"","sources":["../../src/definitions/policy.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAIvB,SAAS,I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EAAE,IAAI,CAAC,CAAA;AACrD,CAAC"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
import type { RuntimeDefinition } from "./types.js";
|
|
3
|
+
import type { ConfigSchema } from "../config-schema/index.js";
|
|
4
|
+
import type { RuntimeExecutor } from "../runtime/executor.js";
|
|
5
|
+
/** Fluent runtime definition builder. @category Definitions */
|
|
6
|
+
export declare class RuntimeDefinitionBuilder {
|
|
7
|
+
private readonly namespace;
|
|
8
|
+
private readonly name;
|
|
9
|
+
private configSchema?;
|
|
10
|
+
private executorFn?;
|
|
11
|
+
constructor(namespace: string, name: string);
|
|
12
|
+
/** Set runtime config schema. */
|
|
13
|
+
withConfig(schema: ConfigSchema | z.ZodRawShape): this;
|
|
14
|
+
/** Set runtime executor. */
|
|
15
|
+
withExecutor(executor: RuntimeExecutor): RuntimeDefinition;
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* Define a runtime adapter.
|
|
19
|
+
* @category Definitions
|
|
20
|
+
*/
|
|
21
|
+
export declare function defineRuntime(namespace: string, name: string): RuntimeDefinitionBuilder;
|
|
22
|
+
//# sourceMappingURL=runtime.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"runtime.d.ts","sourceRoot":"","sources":["../../src/definitions/runtime.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AACvB,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAA;AACnD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAA;AAC7D,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAA;AAO7D,+DAA+D;AAC/D,qBAAa,wBAAwB;IAKjC,OAAO,CAAC,QAAQ,CAAC,SAAS;IAC1B,OAAO,CAAC,QAAQ,CAAC,IAAI;IALvB,OAAO,CAAC,YAAY,CAAC,CAAc;IACnC,OAAO,CAAC,UAAU,CAAC,CAAiB;gBAGjB,SAAS,EAAE,MAAM,EACjB,IAAI,EAAE,MAAM;IAG/B,iCAAiC;IACjC,UAAU,CAAC,MAAM,EAAE,YAAY,GAAG,CAAC,CAAC,WAAW,GAAG,IAAI;IAStD,4BAA4B;IAC5B,YAAY,CAAC,QAAQ,EAAE,eAAe,GAAG,iBAAiB;CAa3D;AAED;;;GAGG;AACH,wBAAgB,aAAa,CAC3B,SAAS,EAAE,MAAM,EACjB,IAAI,EAAE,MAAM,GACX,wBAAwB,CAE1B"}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
function toId(namespace, name) {
|
|
3
|
+
const ns = namespace.startsWith("@") ? namespace : `@${namespace}`;
|
|
4
|
+
return `${ns}/${name}`;
|
|
5
|
+
}
|
|
6
|
+
/** Fluent runtime definition builder. @category Definitions */
|
|
7
|
+
export class RuntimeDefinitionBuilder {
|
|
8
|
+
namespace;
|
|
9
|
+
name;
|
|
10
|
+
configSchema;
|
|
11
|
+
executorFn;
|
|
12
|
+
constructor(namespace, name) {
|
|
13
|
+
this.namespace = namespace;
|
|
14
|
+
this.name = name;
|
|
15
|
+
}
|
|
16
|
+
/** Set runtime config schema. */
|
|
17
|
+
withConfig(schema) {
|
|
18
|
+
if ("safeParse" in schema) {
|
|
19
|
+
this.configSchema = schema;
|
|
20
|
+
}
|
|
21
|
+
else {
|
|
22
|
+
this.configSchema = z.object(schema);
|
|
23
|
+
}
|
|
24
|
+
return this;
|
|
25
|
+
}
|
|
26
|
+
/** Set runtime executor. */
|
|
27
|
+
withExecutor(executor) {
|
|
28
|
+
if (!this.executorFn && !executor) {
|
|
29
|
+
throw new Error("Runtime requires an executor");
|
|
30
|
+
}
|
|
31
|
+
const id = toId(this.namespace, this.name);
|
|
32
|
+
return {
|
|
33
|
+
id,
|
|
34
|
+
namespace: this.namespace,
|
|
35
|
+
name: this.name,
|
|
36
|
+
configSchema: this.configSchema,
|
|
37
|
+
executor: executor ?? this.executorFn,
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
/**
|
|
42
|
+
* Define a runtime adapter.
|
|
43
|
+
* @category Definitions
|
|
44
|
+
*/
|
|
45
|
+
export function defineRuntime(namespace, name) {
|
|
46
|
+
return new RuntimeDefinitionBuilder(namespace, name);
|
|
47
|
+
}
|
|
48
|
+
//# sourceMappingURL=runtime.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"runtime.js","sourceRoot":"","sources":["../../src/definitions/runtime.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAKvB,SAAS,IAAI,CAAC,SAAiB,EAAE,IAAY;IAC3C,MAAM,EAAE,GAAG,SAAS,CAAC,UAAU,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,IAAI,SAAS,EAAE,CAAA;IAClE,OAAO,GAAG,EAAE,IAAI,IAAI,EAAkB,CAAA;AACxC,CAAC;AAED,+DAA+D;AAC/D,MAAM,OAAO,wBAAwB;IAKhB;IACA;IALX,YAAY,CAAe;IAC3B,UAAU,CAAkB;IAEpC,YACmB,SAAiB,EACjB,IAAY;QADZ,cAAS,GAAT,SAAS,CAAQ;QACjB,SAAI,GAAJ,IAAI,CAAQ;IAC5B,CAAC;IAEJ,iCAAiC;IACjC,UAAU,CAAC,MAAoC;QAC7C,IAAI,WAAW,IAAI,MAAM,EAAE,CAAC;YAC1B,IAAI,CAAC,YAAY,GAAG,MAAsB,CAAA;QAC5C,CAAC;aAAM,CAAC;YACN,IAAI,CAAC,YAAY,GAAG,CAAC,CAAC,MAAM,CAAC,MAAM,CAAiB,CAAA;QACtD,CAAC;QACD,OAAO,IAAI,CAAA;IACb,CAAC;IAED,4BAA4B;IAC5B,YAAY,CAAC,QAAyB;QACpC,IAAI,CAAC,IAAI,CAAC,UAAU,IAAI,CAAC,QAAQ,EAAE,CAAC;YAClC,MAAM,IAAI,KAAK,CAAC,8BAA8B,CAAC,CAAA;QACjD,CAAC;QACD,MAAM,EAAE,GAAG,IAAI,CAAC,IAAI,CAAC,SAAS,EAAE,IAAI,CAAC,IAAI,CAAC,CAAA;QAC1C,OAAO;YACL,EAAE;YACF,SAAS,EAAE,IAAI,CAAC,SAAS;YACzB,IAAI,EAAE,IAAI,CAAC,IAAI;YACf,YAAY,EAAE,IAAI,CAAC,YAAY;YAC/B,QAAQ,EAAE,QAAQ,IAAI,IAAI,CAAC,UAAW;SACvC,CAAA;IACH,CAAC;CACF;AAED;;;GAGG;AACH,MAAM,UAAU,aAAa,CAC3B,SAAiB,EACjB,IAAY;IAEZ,OAAO,IAAI,wBAAwB,CAAC,SAAS,EAAE,IAAI,CAAC,CAAA;AACtD,CAAC"}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import type { CapabilityId, LifecycleEvent, NamespacedId } from "@executioncontrolprotocol/types";
|
|
2
|
+
import type { z } from "zod";
|
|
3
|
+
import type { ConfigSchema } from "../config-schema/index.js";
|
|
4
|
+
/** Capability handler signature. @category Definitions */
|
|
5
|
+
export type CapabilityHandler<TInput = unknown, TOutput = unknown> = (input: TInput, ctx: import("../runtime/context.js").CapabilityContext) => Promise<TOutput> | TOutput;
|
|
6
|
+
/** Hook handler signature. @category Definitions */
|
|
7
|
+
export type HookHandler = (ctx: import("../runtime/context.js").LifecycleContext) => Promise<void | unknown> | void | unknown;
|
|
8
|
+
/** Registered capability definition. @category Definitions */
|
|
9
|
+
export interface CapabilityDefinition {
|
|
10
|
+
name: string;
|
|
11
|
+
id: CapabilityId;
|
|
12
|
+
inputSchema?: z.ZodType<unknown>;
|
|
13
|
+
outputSchema?: z.ZodType<unknown>;
|
|
14
|
+
handler: CapabilityHandler;
|
|
15
|
+
}
|
|
16
|
+
/** Hook definition on extension/policy. @category Definitions */
|
|
17
|
+
export interface HookDefinition {
|
|
18
|
+
event: LifecycleEvent;
|
|
19
|
+
handler: HookHandler;
|
|
20
|
+
priority?: number;
|
|
21
|
+
target?: string;
|
|
22
|
+
}
|
|
23
|
+
/** Extension definition. @category Definitions */
|
|
24
|
+
export interface ExtensionDefinition {
|
|
25
|
+
id: NamespacedId;
|
|
26
|
+
namespace: string;
|
|
27
|
+
name: string;
|
|
28
|
+
configSchema?: ConfigSchema;
|
|
29
|
+
capabilities: CapabilityDefinition[];
|
|
30
|
+
hooks: HookDefinition[];
|
|
31
|
+
/** When set, extension may only be bound to these runtimes. Omit = all runtimes. */
|
|
32
|
+
supportedRuntimes?: NamespacedId[];
|
|
33
|
+
}
|
|
34
|
+
/** Runtime definition. @category Definitions */
|
|
35
|
+
export interface RuntimeDefinition {
|
|
36
|
+
id: NamespacedId;
|
|
37
|
+
namespace: string;
|
|
38
|
+
name: string;
|
|
39
|
+
configSchema?: ConfigSchema;
|
|
40
|
+
executor: import("../runtime/executor.js").RuntimeExecutor;
|
|
41
|
+
}
|
|
42
|
+
/** Policy definition. @category Definitions */
|
|
43
|
+
export interface PolicyDefinition {
|
|
44
|
+
id: NamespacedId;
|
|
45
|
+
namespace: string;
|
|
46
|
+
name: string;
|
|
47
|
+
configSchema?: ConfigSchema;
|
|
48
|
+
hooks: HookDefinition[];
|
|
49
|
+
}
|
|
50
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/definitions/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,YAAY,EACZ,cAAc,EACd,YAAY,EACb,MAAM,iCAAiC,CAAA;AACxC,OAAO,KAAK,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAC5B,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAA;AAE7D,0DAA0D;AAC1D,MAAM,MAAM,iBAAiB,CAAC,MAAM,GAAG,OAAO,EAAE,OAAO,GAAG,OAAO,IAAI,CACnE,KAAK,EAAE,MAAM,EACb,GAAG,EAAE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