@xemahq/kernel-contracts 0.1.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/dist/agent-composition/index.d.ts +7 -0
- package/dist/agent-composition/index.d.ts.map +1 -0
- package/dist/agent-composition/index.js +23 -0
- package/dist/agent-composition/index.js.map +1 -0
- package/dist/agent-composition/lib/capability-layer.d.ts +11 -0
- package/dist/agent-composition/lib/capability-layer.d.ts.map +1 -0
- package/dist/agent-composition/lib/capability-layer.js +10 -0
- package/dist/agent-composition/lib/capability-layer.js.map +1 -0
- package/dist/agent-composition/lib/composition-limits-schema.d.ts +4 -0
- package/dist/agent-composition/lib/composition-limits-schema.d.ts.map +1 -0
- package/dist/agent-composition/lib/composition-limits-schema.js +13 -0
- package/dist/agent-composition/lib/composition-limits-schema.js.map +1 -0
- package/dist/agent-composition/lib/composition-workspace.d.ts +35 -0
- package/dist/agent-composition/lib/composition-workspace.d.ts.map +1 -0
- package/dist/agent-composition/lib/composition-workspace.js +9 -0
- package/dist/agent-composition/lib/composition-workspace.js.map +1 -0
- package/dist/agent-composition/lib/composition.d.ts +66 -0
- package/dist/agent-composition/lib/composition.d.ts.map +1 -0
- package/dist/agent-composition/lib/composition.js +18 -0
- package/dist/agent-composition/lib/composition.js.map +1 -0
- package/dist/agent-composition/lib/intrinsic-floor.d.ts +15 -0
- package/dist/agent-composition/lib/intrinsic-floor.d.ts.map +1 -0
- package/dist/agent-composition/lib/intrinsic-floor.js +22 -0
- package/dist/agent-composition/lib/intrinsic-floor.js.map +1 -0
- package/dist/agent-composition/lib/model-resolution-matrix.d.ts +38 -0
- package/dist/agent-composition/lib/model-resolution-matrix.d.ts.map +1 -0
- package/dist/agent-composition/lib/model-resolution-matrix.js +12 -0
- package/dist/agent-composition/lib/model-resolution-matrix.js.map +1 -0
- package/dist/agent-workspace/awp-spec.json +225 -0
- package/dist/agent-workspace/index.d.ts +12 -0
- package/dist/agent-workspace/index.d.ts.map +1 -0
- package/dist/agent-workspace/index.js +28 -0
- package/dist/agent-workspace/index.js.map +1 -0
- package/dist/agent-workspace/lib/agent-run-context.d.ts +12 -0
- package/dist/agent-workspace/lib/agent-run-context.d.ts.map +1 -0
- package/dist/agent-workspace/lib/agent-run-context.js +3 -0
- package/dist/agent-workspace/lib/agent-run-context.js.map +1 -0
- package/dist/agent-workspace/lib/agent-tool-defaults.d.ts +21 -0
- package/dist/agent-workspace/lib/agent-tool-defaults.d.ts.map +1 -0
- package/dist/agent-workspace/lib/agent-tool-defaults.js +111 -0
- package/dist/agent-workspace/lib/agent-tool-defaults.js.map +1 -0
- package/dist/agent-workspace/lib/awp-v1.d.ts +15 -0
- package/dist/agent-workspace/lib/awp-v1.d.ts.map +1 -0
- package/dist/agent-workspace/lib/awp-v1.js +197 -0
- package/dist/agent-workspace/lib/awp-v1.js.map +1 -0
- package/dist/agent-workspace/lib/context-json.d.ts +35 -0
- package/dist/agent-workspace/lib/context-json.d.ts.map +1 -0
- package/dist/agent-workspace/lib/context-json.js +3 -0
- package/dist/agent-workspace/lib/context-json.js.map +1 -0
- package/dist/agent-workspace/lib/deliverable-spec-ref.d.ts +10 -0
- package/dist/agent-workspace/lib/deliverable-spec-ref.d.ts.map +1 -0
- package/dist/agent-workspace/lib/deliverable-spec-ref.js +33 -0
- package/dist/agent-workspace/lib/deliverable-spec-ref.js.map +1 -0
- package/dist/agent-workspace/lib/endpoint-fetch-spec.d.ts +31 -0
- package/dist/agent-workspace/lib/endpoint-fetch-spec.d.ts.map +1 -0
- package/dist/agent-workspace/lib/endpoint-fetch-spec.js +20 -0
- package/dist/agent-workspace/lib/endpoint-fetch-spec.js.map +1 -0
- package/dist/agent-workspace/lib/manifest.d.ts +28 -0
- package/dist/agent-workspace/lib/manifest.d.ts.map +1 -0
- package/dist/agent-workspace/lib/manifest.js +16 -0
- package/dist/agent-workspace/lib/manifest.js.map +1 -0
- package/dist/agent-workspace/lib/mount-apply.d.ts +42 -0
- package/dist/agent-workspace/lib/mount-apply.d.ts.map +1 -0
- package/dist/agent-workspace/lib/mount-apply.js +15 -0
- package/dist/agent-workspace/lib/mount-apply.js.map +1 -0
- package/dist/agent-workspace/lib/working-file.d.ts +20 -0
- package/dist/agent-workspace/lib/working-file.d.ts.map +1 -0
- package/dist/agent-workspace/lib/working-file.js +42 -0
- package/dist/agent-workspace/lib/working-file.js.map +1 -0
- package/dist/agent-workspace/lib/workspace-layout.d.ts +34 -0
- package/dist/agent-workspace/lib/workspace-layout.d.ts.map +1 -0
- package/dist/agent-workspace/lib/workspace-layout.js +31 -0
- package/dist/agent-workspace/lib/workspace-layout.js.map +1 -0
- package/dist/agent-workspace/lib/workspace-spec.d.ts +61 -0
- package/dist/agent-workspace/lib/workspace-spec.d.ts.map +1 -0
- package/dist/agent-workspace/lib/workspace-spec.js +19 -0
- package/dist/agent-workspace/lib/workspace-spec.js.map +1 -0
- package/dist/biome/index.d.ts +11 -0
- package/dist/biome/index.d.ts.map +1 -0
- package/dist/biome/index.js +27 -0
- package/dist/biome/index.js.map +1 -0
- package/dist/biome/lib/biome-api.d.ts +12 -0
- package/dist/biome/lib/biome-api.d.ts.map +1 -0
- package/dist/biome/lib/biome-api.js +14 -0
- package/dist/biome/lib/biome-api.js.map +1 -0
- package/dist/biome/lib/biome-capability-refs.d.ts +11 -0
- package/dist/biome/lib/biome-capability-refs.d.ts.map +1 -0
- package/dist/biome/lib/biome-capability-refs.js +12 -0
- package/dist/biome/lib/biome-capability-refs.js.map +1 -0
- package/dist/biome/lib/biome-engines.d.ts +6 -0
- package/dist/biome/lib/biome-engines.d.ts.map +1 -0
- package/dist/biome/lib/biome-engines.js +8 -0
- package/dist/biome/lib/biome-engines.js.map +1 -0
- package/dist/biome/lib/biome-lifecycle-hooks.d.ts +10 -0
- package/dist/biome/lib/biome-lifecycle-hooks.d.ts.map +1 -0
- package/dist/biome/lib/biome-lifecycle-hooks.js +12 -0
- package/dist/biome/lib/biome-lifecycle-hooks.js.map +1 -0
- package/dist/biome/lib/biome-lifecycle.d.ts +12 -0
- package/dist/biome/lib/biome-lifecycle.d.ts.map +1 -0
- package/dist/biome/lib/biome-lifecycle.js +16 -0
- package/dist/biome/lib/biome-lifecycle.js.map +1 -0
- package/dist/biome/lib/biome-manifest.d.ts +36 -0
- package/dist/biome/lib/biome-manifest.d.ts.map +1 -0
- package/dist/biome/lib/biome-manifest.js +38 -0
- package/dist/biome/lib/biome-manifest.js.map +1 -0
- package/dist/biome/lib/biome-permissions.d.ts +9 -0
- package/dist/biome/lib/biome-permissions.d.ts.map +1 -0
- package/dist/biome/lib/biome-permissions.js +11 -0
- package/dist/biome/lib/biome-permissions.js.map +1 -0
- package/dist/biome/lib/biome-scope.d.ts +9 -0
- package/dist/biome/lib/biome-scope.d.ts.map +1 -0
- package/dist/biome/lib/biome-scope.js +13 -0
- package/dist/biome/lib/biome-scope.js.map +1 -0
- package/dist/biome/lib/biome-trust-tier.d.ts +11 -0
- package/dist/biome/lib/biome-trust-tier.d.ts.map +1 -0
- package/dist/biome/lib/biome-trust-tier.js +15 -0
- package/dist/biome/lib/biome-trust-tier.js.map +1 -0
- package/dist/biome/lib/trust-tier-policies.d.ts +8 -0
- package/dist/biome/lib/trust-tier-policies.d.ts.map +1 -0
- package/dist/biome/lib/trust-tier-policies.js +66 -0
- package/dist/biome/lib/trust-tier-policies.js.map +1 -0
- package/dist/capability/index.d.ts +9 -0
- package/dist/capability/index.d.ts.map +1 -0
- package/dist/capability/index.js +25 -0
- package/dist/capability/index.js.map +1 -0
- package/dist/capability/lib/capability-contribution.d.ts +18 -0
- package/dist/capability/lib/capability-contribution.d.ts.map +1 -0
- package/dist/capability/lib/capability-contribution.js +23 -0
- package/dist/capability/lib/capability-contribution.js.map +1 -0
- package/dist/capability/lib/capability-grant.d.ts +22 -0
- package/dist/capability/lib/capability-grant.d.ts.map +1 -0
- package/dist/capability/lib/capability-grant.js +27 -0
- package/dist/capability/lib/capability-grant.js.map +1 -0
- package/dist/capability/lib/capability-policy.d.ts +12 -0
- package/dist/capability/lib/capability-policy.d.ts.map +1 -0
- package/dist/capability/lib/capability-policy.js +14 -0
- package/dist/capability/lib/capability-policy.js.map +1 -0
- package/dist/capability/lib/capability-ref.d.ts +19 -0
- package/dist/capability/lib/capability-ref.d.ts.map +1 -0
- package/dist/capability/lib/capability-ref.js +63 -0
- package/dist/capability/lib/capability-ref.js.map +1 -0
- package/dist/capability/lib/errors.d.ts +60 -0
- package/dist/capability/lib/errors.d.ts.map +1 -0
- package/dist/capability/lib/errors.js +73 -0
- package/dist/capability/lib/errors.js.map +1 -0
- package/dist/capability/lib/meta-tool.d.ts +77 -0
- package/dist/capability/lib/meta-tool.d.ts.map +1 -0
- package/dist/capability/lib/meta-tool.js +76 -0
- package/dist/capability/lib/meta-tool.js.map +1 -0
- package/dist/capability/lib/permission-profile.d.ts +35 -0
- package/dist/capability/lib/permission-profile.d.ts.map +1 -0
- package/dist/capability/lib/permission-profile.js +38 -0
- package/dist/capability/lib/permission-profile.js.map +1 -0
- package/dist/capability/lib/shell-command-descriptor.d.ts +19 -0
- package/dist/capability/lib/shell-command-descriptor.d.ts.map +1 -0
- package/dist/capability/lib/shell-command-descriptor.js +20 -0
- package/dist/capability/lib/shell-command-descriptor.js.map +1 -0
- package/dist/contribution/index.d.ts +5 -0
- package/dist/contribution/index.d.ts.map +1 -0
- package/dist/contribution/index.js +21 -0
- package/dist/contribution/index.js.map +1 -0
- package/dist/contribution/lib/contribution-kind.d.ts +44 -0
- package/dist/contribution/lib/contribution-kind.d.ts.map +1 -0
- package/dist/contribution/lib/contribution-kind.js +47 -0
- package/dist/contribution/lib/contribution-kind.js.map +1 -0
- package/dist/contribution/lib/contribution-source.d.ts +11 -0
- package/dist/contribution/lib/contribution-source.d.ts.map +1 -0
- package/dist/contribution/lib/contribution-source.js +14 -0
- package/dist/contribution/lib/contribution-source.js.map +1 -0
- package/dist/contribution/lib/contribution.d.ts +36 -0
- package/dist/contribution/lib/contribution.d.ts.map +1 -0
- package/dist/contribution/lib/contribution.js +56 -0
- package/dist/contribution/lib/contribution.js.map +1 -0
- package/dist/contribution/lib/registry.d.ts +25 -0
- package/dist/contribution/lib/registry.d.ts.map +1 -0
- package/dist/contribution/lib/registry.js +54 -0
- package/dist/contribution/lib/registry.js.map +1 -0
- package/dist/document-templates/index.d.ts +3 -0
- package/dist/document-templates/index.d.ts.map +1 -0
- package/dist/document-templates/index.js +19 -0
- package/dist/document-templates/index.js.map +1 -0
- package/dist/document-templates/lib/document-template.d.ts +24 -0
- package/dist/document-templates/lib/document-template.d.ts.map +1 -0
- package/dist/document-templates/lib/document-template.js +10 -0
- package/dist/document-templates/lib/document-template.js.map +1 -0
- package/dist/document-templates/lib/index.d.ts +3 -0
- package/dist/document-templates/lib/index.d.ts.map +1 -0
- package/dist/document-templates/lib/index.js +19 -0
- package/dist/document-templates/lib/index.js.map +1 -0
- package/dist/document-templates/lib/rendering-shape.d.ts +7 -0
- package/dist/document-templates/lib/rendering-shape.d.ts.map +1 -0
- package/dist/document-templates/lib/rendering-shape.js +20 -0
- package/dist/document-templates/lib/rendering-shape.js.map +1 -0
- package/dist/document-themes/index.d.ts +3 -0
- package/dist/document-themes/index.d.ts.map +1 -0
- package/dist/document-themes/index.js +19 -0
- package/dist/document-themes/index.js.map +1 -0
- package/dist/document-themes/lib/component-vocabulary.d.ts +16 -0
- package/dist/document-themes/lib/component-vocabulary.d.ts.map +1 -0
- package/dist/document-themes/lib/component-vocabulary.js +55 -0
- package/dist/document-themes/lib/component-vocabulary.js.map +1 -0
- package/dist/document-themes/lib/document-theme.d.ts +57 -0
- package/dist/document-themes/lib/document-theme.d.ts.map +1 -0
- package/dist/document-themes/lib/document-theme.js +10 -0
- package/dist/document-themes/lib/document-theme.js.map +1 -0
- package/dist/document-themes/lib/index.d.ts +3 -0
- package/dist/document-themes/lib/index.d.ts.map +1 -0
- package/dist/document-themes/lib/index.js +19 -0
- package/dist/document-themes/lib/index.js.map +1 -0
- package/dist/entitlement/index.d.ts +2 -0
- package/dist/entitlement/index.d.ts.map +1 -0
- package/dist/entitlement/index.js +18 -0
- package/dist/entitlement/index.js.map +1 -0
- package/dist/entitlement/lib/entitlement.d.ts +25 -0
- package/dist/entitlement/lib/entitlement.d.ts.map +1 -0
- package/dist/entitlement/lib/entitlement.js +54 -0
- package/dist/entitlement/lib/entitlement.js.map +1 -0
- package/dist/execution-context/index.d.ts +4 -0
- package/dist/execution-context/index.d.ts.map +1 -0
- package/dist/execution-context/index.js +20 -0
- package/dist/execution-context/index.js.map +1 -0
- package/dist/execution-context/lib/caller.d.ts +19 -0
- package/dist/execution-context/lib/caller.d.ts.map +1 -0
- package/dist/execution-context/lib/caller.js +22 -0
- package/dist/execution-context/lib/caller.js.map +1 -0
- package/dist/execution-context/lib/execution-context.d.ts +60 -0
- package/dist/execution-context/lib/execution-context.d.ts.map +1 -0
- package/dist/execution-context/lib/execution-context.js +58 -0
- package/dist/execution-context/lib/execution-context.js.map +1 -0
- package/dist/execution-context/lib/subject.d.ts +3 -0
- package/dist/execution-context/lib/subject.d.ts.map +1 -0
- package/dist/execution-context/lib/subject.js +11 -0
- package/dist/execution-context/lib/subject.js.map +1 -0
- package/dist/execution-environment/index.d.ts +4 -0
- package/dist/execution-environment/index.d.ts.map +1 -0
- package/dist/execution-environment/index.js +20 -0
- package/dist/execution-environment/index.js.map +1 -0
- package/dist/execution-environment/lib/approval-rule.d.ts +10 -0
- package/dist/execution-environment/lib/approval-rule.d.ts.map +1 -0
- package/dist/execution-environment/lib/approval-rule.js +12 -0
- package/dist/execution-environment/lib/approval-rule.js.map +1 -0
- package/dist/execution-environment/lib/built-in-environments.d.ts +16 -0
- package/dist/execution-environment/lib/built-in-environments.d.ts.map +1 -0
- package/dist/execution-environment/lib/built-in-environments.js +33 -0
- package/dist/execution-environment/lib/built-in-environments.js.map +1 -0
- package/dist/execution-environment/lib/execution-environment.d.ts +58 -0
- package/dist/execution-environment/lib/execution-environment.d.ts.map +1 -0
- package/dist/execution-environment/lib/execution-environment.js +89 -0
- package/dist/execution-environment/lib/execution-environment.js.map +1 -0
- package/dist/kernel-state/index.d.ts +4 -0
- package/dist/kernel-state/index.d.ts.map +1 -0
- package/dist/kernel-state/index.js +20 -0
- package/dist/kernel-state/index.js.map +1 -0
- package/dist/kernel-state/lib/adapter-kind.d.ts +5 -0
- package/dist/kernel-state/lib/adapter-kind.d.ts.map +1 -0
- package/dist/kernel-state/lib/adapter-kind.js +9 -0
- package/dist/kernel-state/lib/adapter-kind.js.map +1 -0
- package/dist/kernel-state/lib/kernel-state.d.ts +37 -0
- package/dist/kernel-state/lib/kernel-state.d.ts.map +1 -0
- package/dist/kernel-state/lib/kernel-state.js +9 -0
- package/dist/kernel-state/lib/kernel-state.js.map +1 -0
- package/dist/kernel-state/lib/key-grammar.d.ts +16 -0
- package/dist/kernel-state/lib/key-grammar.d.ts.map +1 -0
- package/dist/kernel-state/lib/key-grammar.js +56 -0
- package/dist/kernel-state/lib/key-grammar.js.map +1 -0
- package/dist/llm-gateway/index.d.ts +3 -0
- package/dist/llm-gateway/index.d.ts.map +1 -0
- package/dist/llm-gateway/index.js +19 -0
- package/dist/llm-gateway/index.js.map +1 -0
- package/dist/llm-gateway/lib/caller.d.ts +14 -0
- package/dist/llm-gateway/lib/caller.d.ts.map +1 -0
- package/dist/llm-gateway/lib/caller.js +11 -0
- package/dist/llm-gateway/lib/caller.js.map +1 -0
- package/dist/llm-gateway/lib/errors.d.ts +27 -0
- package/dist/llm-gateway/lib/errors.d.ts.map +1 -0
- package/dist/llm-gateway/lib/errors.js +36 -0
- package/dist/llm-gateway/lib/errors.js.map +1 -0
- package/dist/mcp-tool/index.d.ts +7 -0
- package/dist/mcp-tool/index.d.ts.map +1 -0
- package/dist/mcp-tool/index.js +23 -0
- package/dist/mcp-tool/index.js.map +1 -0
- package/dist/mcp-tool/lib/mcp-protocol.d.ts +75 -0
- package/dist/mcp-tool/lib/mcp-protocol.d.ts.map +1 -0
- package/dist/mcp-tool/lib/mcp-protocol.js +19 -0
- package/dist/mcp-tool/lib/mcp-protocol.js.map +1 -0
- package/dist/mcp-tool/lib/mcp-server-config.d.ts +8 -0
- package/dist/mcp-tool/lib/mcp-server-config.d.ts.map +1 -0
- package/dist/mcp-tool/lib/mcp-server-config.js +3 -0
- package/dist/mcp-tool/lib/mcp-server-config.js.map +1 -0
- package/dist/mcp-tool/lib/provider-kind.d.ts +10 -0
- package/dist/mcp-tool/lib/provider-kind.d.ts.map +1 -0
- package/dist/mcp-tool/lib/provider-kind.js +14 -0
- package/dist/mcp-tool/lib/provider-kind.js.map +1 -0
- package/dist/mcp-tool/lib/resolver-scope.d.ts +16 -0
- package/dist/mcp-tool/lib/resolver-scope.d.ts.map +1 -0
- package/dist/mcp-tool/lib/resolver-scope.js +12 -0
- package/dist/mcp-tool/lib/resolver-scope.js.map +1 -0
- package/dist/mcp-tool/lib/tool-provider.d.ts +21 -0
- package/dist/mcp-tool/lib/tool-provider.d.ts.map +1 -0
- package/dist/mcp-tool/lib/tool-provider.js +3 -0
- package/dist/mcp-tool/lib/tool-provider.js.map +1 -0
- package/dist/mcp-tool/lib/tool-selection.d.ts +34 -0
- package/dist/mcp-tool/lib/tool-selection.d.ts.map +1 -0
- package/dist/mcp-tool/lib/tool-selection.js +18 -0
- package/dist/mcp-tool/lib/tool-selection.js.map +1 -0
- package/dist/object/index.d.ts +5 -0
- package/dist/object/index.d.ts.map +1 -0
- package/dist/object/index.js +21 -0
- package/dist/object/index.js.map +1 -0
- package/dist/object/lib/object-lifecycle.d.ts +8 -0
- package/dist/object/lib/object-lifecycle.d.ts.map +1 -0
- package/dist/object/lib/object-lifecycle.js +12 -0
- package/dist/object/lib/object-lifecycle.js.map +1 -0
- package/dist/object/lib/xema-object-kind.d.ts +43 -0
- package/dist/object/lib/xema-object-kind.d.ts.map +1 -0
- package/dist/object/lib/xema-object-kind.js +47 -0
- package/dist/object/lib/xema-object-kind.js.map +1 -0
- package/dist/object/lib/xema-object-ref.d.ts +20 -0
- package/dist/object/lib/xema-object-ref.d.ts.map +1 -0
- package/dist/object/lib/xema-object-ref.js +133 -0
- package/dist/object/lib/xema-object-ref.js.map +1 -0
- package/dist/object/lib/xema-object.d.ts +24 -0
- package/dist/object/lib/xema-object.d.ts.map +1 -0
- package/dist/object/lib/xema-object.js +24 -0
- package/dist/object/lib/xema-object.js.map +1 -0
- package/dist/policy/index.d.ts +4 -0
- package/dist/policy/index.d.ts.map +1 -0
- package/dist/policy/index.js +20 -0
- package/dist/policy/index.js.map +1 -0
- package/dist/policy/lib/obligations.d.ts +91 -0
- package/dist/policy/lib/obligations.d.ts.map +1 -0
- package/dist/policy/lib/obligations.js +76 -0
- package/dist/policy/lib/obligations.js.map +1 -0
- package/dist/policy/lib/policy.d.ts +29 -0
- package/dist/policy/lib/policy.d.ts.map +1 -0
- package/dist/policy/lib/policy.js +32 -0
- package/dist/policy/lib/policy.js.map +1 -0
- package/dist/policy/lib/route-hints.d.ts +11 -0
- package/dist/policy/lib/route-hints.d.ts.map +1 -0
- package/dist/policy/lib/route-hints.js +15 -0
- package/dist/policy/lib/route-hints.js.map +1 -0
- package/dist/runner/index.d.ts +12 -0
- package/dist/runner/index.d.ts.map +1 -0
- package/dist/runner/index.js +28 -0
- package/dist/runner/index.js.map +1 -0
- package/dist/runner/lib/dispatch.d.ts +13 -0
- package/dist/runner/lib/dispatch.d.ts.map +1 -0
- package/dist/runner/lib/dispatch.js +15 -0
- package/dist/runner/lib/dispatch.js.map +1 -0
- package/dist/runner/lib/input-hash.d.ts +2 -0
- package/dist/runner/lib/input-hash.d.ts.map +1 -0
- package/dist/runner/lib/input-hash.js +37 -0
- package/dist/runner/lib/input-hash.js.map +1 -0
- package/dist/runner/lib/job-token.d.ts +22 -0
- package/dist/runner/lib/job-token.d.ts.map +1 -0
- package/dist/runner/lib/job-token.js +3 -0
- package/dist/runner/lib/job-token.js.map +1 -0
- package/dist/runner/lib/runner-attestation.d.ts +10 -0
- package/dist/runner/lib/runner-attestation.d.ts.map +1 -0
- package/dist/runner/lib/runner-attestation.js +5 -0
- package/dist/runner/lib/runner-attestation.js.map +1 -0
- package/dist/runner/lib/runner-job.d.ts +26 -0
- package/dist/runner/lib/runner-job.d.ts.map +1 -0
- package/dist/runner/lib/runner-job.js +36 -0
- package/dist/runner/lib/runner-job.js.map +1 -0
- package/dist/runner/lib/runner-kind.d.ts +2 -0
- package/dist/runner/lib/runner-kind.d.ts.map +1 -0
- package/dist/runner/lib/runner-kind.js +7 -0
- package/dist/runner/lib/runner-kind.js.map +1 -0
- package/dist/runner/lib/runner-mode.d.ts +5 -0
- package/dist/runner/lib/runner-mode.d.ts.map +1 -0
- package/dist/runner/lib/runner-mode.js +9 -0
- package/dist/runner/lib/runner-mode.js.map +1 -0
- package/dist/runner/lib/runner-plane.d.ts +19 -0
- package/dist/runner/lib/runner-plane.d.ts.map +1 -0
- package/dist/runner/lib/runner-plane.js +31 -0
- package/dist/runner/lib/runner-plane.js.map +1 -0
- package/dist/runner/lib/runner-registration.d.ts +60 -0
- package/dist/runner/lib/runner-registration.d.ts.map +1 -0
- package/dist/runner/lib/runner-registration.js +62 -0
- package/dist/runner/lib/runner-registration.js.map +1 -0
- package/dist/runner/lib/runner.d.ts +24 -0
- package/dist/runner/lib/runner.d.ts.map +1 -0
- package/dist/runner/lib/runner.js +26 -0
- package/dist/runner/lib/runner.js.map +1 -0
- package/dist/runner/lib/runtime-isolation.d.ts +10 -0
- package/dist/runner/lib/runtime-isolation.d.ts.map +1 -0
- package/dist/runner/lib/runtime-isolation.js +23 -0
- package/dist/runner/lib/runtime-isolation.js.map +1 -0
- package/dist/search-source/index.d.ts +5 -0
- package/dist/search-source/index.d.ts.map +1 -0
- package/dist/search-source/index.js +21 -0
- package/dist/search-source/index.js.map +1 -0
- package/dist/search-source/lib/indexable-document.d.ts +40 -0
- package/dist/search-source/lib/indexable-document.d.ts.map +1 -0
- package/dist/search-source/lib/indexable-document.js +26 -0
- package/dist/search-source/lib/indexable-document.js.map +1 -0
- package/dist/search-source/lib/search-index-event.d.ts +52 -0
- package/dist/search-source/lib/search-index-event.d.ts.map +1 -0
- package/dist/search-source/lib/search-index-event.js +29 -0
- package/dist/search-source/lib/search-index-event.js.map +1 -0
- package/dist/search-source/lib/search-replay.d.ts +46 -0
- package/dist/search-source/lib/search-replay.d.ts.map +1 -0
- package/dist/search-source/lib/search-replay.js +36 -0
- package/dist/search-source/lib/search-replay.js.map +1 -0
- package/dist/search-source/lib/search-source-descriptor.d.ts +15 -0
- package/dist/search-source/lib/search-source-descriptor.d.ts.map +1 -0
- package/dist/search-source/lib/search-source-descriptor.js +3 -0
- package/dist/search-source/lib/search-source-descriptor.js.map +1 -0
- package/dist/service-registry/index.d.ts +4 -0
- package/dist/service-registry/index.d.ts.map +1 -0
- package/dist/service-registry/index.js +20 -0
- package/dist/service-registry/index.js.map +1 -0
- package/dist/service-registry/lib/inject-service.d.ts +6 -0
- package/dist/service-registry/lib/inject-service.d.ts.map +1 -0
- package/dist/service-registry/lib/inject-service.js +5 -0
- package/dist/service-registry/lib/inject-service.js.map +1 -0
- package/dist/service-registry/lib/service-descriptor.d.ts +28 -0
- package/dist/service-registry/lib/service-descriptor.d.ts.map +1 -0
- package/dist/service-registry/lib/service-descriptor.js +17 -0
- package/dist/service-registry/lib/service-descriptor.js.map +1 -0
- package/dist/service-registry/lib/service-registry-client.d.ts +30 -0
- package/dist/service-registry/lib/service-registry-client.d.ts.map +1 -0
- package/dist/service-registry/lib/service-registry-client.js +3 -0
- package/dist/service-registry/lib/service-registry-client.js.map +1 -0
- package/dist/skill/index.d.ts +5 -0
- package/dist/skill/index.d.ts.map +1 -0
- package/dist/skill/index.js +21 -0
- package/dist/skill/index.js.map +1 -0
- package/dist/skill/lib/skill-enums.d.ts +41 -0
- package/dist/skill/lib/skill-enums.d.ts.map +1 -0
- package/dist/skill/lib/skill-enums.js +54 -0
- package/dist/skill/lib/skill-enums.js.map +1 -0
- package/dist/skill/lib/skill-governance.d.ts +106 -0
- package/dist/skill/lib/skill-governance.d.ts.map +1 -0
- package/dist/skill/lib/skill-governance.js +61 -0
- package/dist/skill/lib/skill-governance.js.map +1 -0
- package/dist/skill/lib/skill-source.d.ts +14 -0
- package/dist/skill/lib/skill-source.d.ts.map +1 -0
- package/dist/skill/lib/skill-source.js +3 -0
- package/dist/skill/lib/skill-source.js.map +1 -0
- package/dist/skill/lib/skill.d.ts +52 -0
- package/dist/skill/lib/skill.d.ts.map +1 -0
- package/dist/skill/lib/skill.js +3 -0
- package/dist/skill/lib/skill.js.map +1 -0
- package/dist/space/index.d.ts +4 -0
- package/dist/space/index.d.ts.map +1 -0
- package/dist/space/index.js +20 -0
- package/dist/space/index.js.map +1 -0
- package/dist/space/lib/space-ref-parser.d.ts +8 -0
- package/dist/space/lib/space-ref-parser.d.ts.map +1 -0
- package/dist/space/lib/space-ref-parser.js +149 -0
- package/dist/space/lib/space-ref-parser.js.map +1 -0
- package/dist/space/lib/space-traversal.d.ts +3 -0
- package/dist/space/lib/space-traversal.d.ts.map +1 -0
- package/dist/space/lib/space-traversal.js +56 -0
- package/dist/space/lib/space-traversal.js.map +1 -0
- package/dist/space/lib/space.d.ts +53 -0
- package/dist/space/lib/space.d.ts.map +1 -0
- package/dist/space/lib/space.js +98 -0
- package/dist/space/lib/space.js.map +1 -0
- package/dist/subject/index.d.ts +3 -0
- package/dist/subject/index.d.ts.map +1 -0
- package/dist/subject/index.js +19 -0
- package/dist/subject/index.js.map +1 -0
- package/dist/subject/lib/subject.d.ts +29 -0
- package/dist/subject/lib/subject.d.ts.map +1 -0
- package/dist/subject/lib/subject.js +47 -0
- package/dist/subject/lib/subject.js.map +1 -0
- package/dist/subject/lib/token-class.d.ts +11 -0
- package/dist/subject/lib/token-class.d.ts.map +1 -0
- package/dist/subject/lib/token-class.js +15 -0
- package/dist/subject/lib/token-class.js.map +1 -0
- package/dist/workflow/index.d.ts +31 -0
- package/dist/workflow/index.d.ts.map +1 -0
- package/dist/workflow/index.js +47 -0
- package/dist/workflow/index.js.map +1 -0
- package/dist/workflow/lib/action-ref.d.ts +12 -0
- package/dist/workflow/lib/action-ref.d.ts.map +1 -0
- package/dist/workflow/lib/action-ref.js +3 -0
- package/dist/workflow/lib/action-ref.js.map +1 -0
- package/dist/workflow/lib/activity-outputs.d.ts +14 -0
- package/dist/workflow/lib/activity-outputs.d.ts.map +1 -0
- package/dist/workflow/lib/activity-outputs.js +3 -0
- package/dist/workflow/lib/activity-outputs.js.map +1 -0
- package/dist/workflow/lib/agent-role.d.ts +6 -0
- package/dist/workflow/lib/agent-role.d.ts.map +1 -0
- package/dist/workflow/lib/agent-role.js +41 -0
- package/dist/workflow/lib/agent-role.js.map +1 -0
- package/dist/workflow/lib/artifact-ref.d.ts +21 -0
- package/dist/workflow/lib/artifact-ref.d.ts.map +1 -0
- package/dist/workflow/lib/artifact-ref.js +38 -0
- package/dist/workflow/lib/artifact-ref.js.map +1 -0
- package/dist/workflow/lib/briefcase.d.ts +107 -0
- package/dist/workflow/lib/briefcase.d.ts.map +1 -0
- package/dist/workflow/lib/briefcase.js +62 -0
- package/dist/workflow/lib/briefcase.js.map +1 -0
- package/dist/workflow/lib/canonical-concepts/canonical-concept-registry.d.ts +18 -0
- package/dist/workflow/lib/canonical-concepts/canonical-concept-registry.d.ts.map +1 -0
- package/dist/workflow/lib/canonical-concepts/canonical-concept-registry.js +45 -0
- package/dist/workflow/lib/canonical-concepts/canonical-concept-registry.js.map +1 -0
- package/dist/workflow/lib/canonical-concepts/concepts/change-intent.concepts.d.ts +3 -0
- package/dist/workflow/lib/canonical-concepts/concepts/change-intent.concepts.d.ts.map +1 -0
- package/dist/workflow/lib/canonical-concepts/concepts/change-intent.concepts.js +79 -0
- package/dist/workflow/lib/canonical-concepts/concepts/change-intent.concepts.js.map +1 -0
- package/dist/workflow/lib/canonical-concepts/concepts/concern.concepts.d.ts +3 -0
- package/dist/workflow/lib/canonical-concepts/concepts/concern.concepts.d.ts.map +1 -0
- package/dist/workflow/lib/canonical-concepts/concepts/concern.concepts.js +133 -0
- package/dist/workflow/lib/canonical-concepts/concepts/concern.concepts.js.map +1 -0
- package/dist/workflow/lib/canonical-concepts/concepts/domain.concepts.d.ts +3 -0
- package/dist/workflow/lib/canonical-concepts/concepts/domain.concepts.d.ts.map +1 -0
- package/dist/workflow/lib/canonical-concepts/concepts/domain.concepts.js +116 -0
- package/dist/workflow/lib/canonical-concepts/concepts/domain.concepts.js.map +1 -0
- package/dist/workflow/lib/canonical-concepts/concepts/index.d.ts +8 -0
- package/dist/workflow/lib/canonical-concepts/concepts/index.d.ts.map +1 -0
- package/dist/workflow/lib/canonical-concepts/concepts/index.js +18 -0
- package/dist/workflow/lib/canonical-concepts/concepts/index.js.map +1 -0
- package/dist/workflow/lib/canonical-concepts/concepts/technology.concepts.d.ts +3 -0
- package/dist/workflow/lib/canonical-concepts/concepts/technology.concepts.d.ts.map +1 -0
- package/dist/workflow/lib/canonical-concepts/concepts/technology.concepts.js +462 -0
- package/dist/workflow/lib/canonical-concepts/concepts/technology.concepts.js.map +1 -0
- package/dist/workflow/lib/canonical-concepts/index.d.ts +3 -0
- package/dist/workflow/lib/canonical-concepts/index.d.ts.map +1 -0
- package/dist/workflow/lib/canonical-concepts/index.js +16 -0
- package/dist/workflow/lib/canonical-concepts/index.js.map +1 -0
- package/dist/workflow/lib/catalog-taxonomies.d.ts +41 -0
- package/dist/workflow/lib/catalog-taxonomies.d.ts.map +1 -0
- package/dist/workflow/lib/catalog-taxonomies.js +3475 -0
- package/dist/workflow/lib/catalog-taxonomies.js.map +1 -0
- package/dist/workflow/lib/compiled-run.d.ts +118 -0
- package/dist/workflow/lib/compiled-run.d.ts.map +1 -0
- package/dist/workflow/lib/compiled-run.js +3 -0
- package/dist/workflow/lib/compiled-run.js.map +1 -0
- package/dist/workflow/lib/compiled-working-file.d.ts +11 -0
- package/dist/workflow/lib/compiled-working-file.d.ts.map +1 -0
- package/dist/workflow/lib/compiled-working-file.js +3 -0
- package/dist/workflow/lib/compiled-working-file.js.map +1 -0
- package/dist/workflow/lib/compiled-workspace-manifest.d.ts +101 -0
- package/dist/workflow/lib/compiled-workspace-manifest.d.ts.map +1 -0
- package/dist/workflow/lib/compiled-workspace-manifest.js +3 -0
- package/dist/workflow/lib/compiled-workspace-manifest.js.map +1 -0
- package/dist/workflow/lib/concurrency-group.d.ts +6 -0
- package/dist/workflow/lib/concurrency-group.d.ts.map +1 -0
- package/dist/workflow/lib/concurrency-group.js +3 -0
- package/dist/workflow/lib/concurrency-group.js.map +1 -0
- package/dist/workflow/lib/deliverable-result.d.ts +124 -0
- package/dist/workflow/lib/deliverable-result.d.ts.map +1 -0
- package/dist/workflow/lib/deliverable-result.js +27 -0
- package/dist/workflow/lib/deliverable-result.js.map +1 -0
- package/dist/workflow/lib/domain-tag.d.ts +2 -0
- package/dist/workflow/lib/domain-tag.d.ts.map +1 -0
- package/dist/workflow/lib/domain-tag.js +3 -0
- package/dist/workflow/lib/domain-tag.js.map +1 -0
- package/dist/workflow/lib/enums.d.ts +138 -0
- package/dist/workflow/lib/enums.d.ts.map +1 -0
- package/dist/workflow/lib/enums.js +166 -0
- package/dist/workflow/lib/enums.js.map +1 -0
- package/dist/workflow/lib/errors.d.ts +35 -0
- package/dist/workflow/lib/errors.d.ts.map +1 -0
- package/dist/workflow/lib/errors.js +62 -0
- package/dist/workflow/lib/errors.js.map +1 -0
- package/dist/workflow/lib/job-run.d.ts +32 -0
- package/dist/workflow/lib/job-run.d.ts.map +1 -0
- package/dist/workflow/lib/job-run.js +3 -0
- package/dist/workflow/lib/job-run.js.map +1 -0
- package/dist/workflow/lib/model-ref.d.ts +40 -0
- package/dist/workflow/lib/model-ref.d.ts.map +1 -0
- package/dist/workflow/lib/model-ref.js +34 -0
- package/dist/workflow/lib/model-ref.js.map +1 -0
- package/dist/workflow/lib/mount-plan.d.ts +105 -0
- package/dist/workflow/lib/mount-plan.d.ts.map +1 -0
- package/dist/workflow/lib/mount-plan.js +3 -0
- package/dist/workflow/lib/mount-plan.js.map +1 -0
- package/dist/workflow/lib/phase-report.d.ts +9 -0
- package/dist/workflow/lib/phase-report.d.ts.map +1 -0
- package/dist/workflow/lib/phase-report.js +30 -0
- package/dist/workflow/lib/phase-report.js.map +1 -0
- package/dist/workflow/lib/platform-task-queue.d.ts +17 -0
- package/dist/workflow/lib/platform-task-queue.d.ts.map +1 -0
- package/dist/workflow/lib/platform-task-queue.js +33 -0
- package/dist/workflow/lib/platform-task-queue.js.map +1 -0
- package/dist/workflow/lib/review-subject/index.d.ts +5 -0
- package/dist/workflow/lib/review-subject/index.d.ts.map +1 -0
- package/dist/workflow/lib/review-subject/index.js +8 -0
- package/dist/workflow/lib/review-subject/index.js.map +1 -0
- package/dist/workflow/lib/review-subject/kinds.d.ts +5 -0
- package/dist/workflow/lib/review-subject/kinds.d.ts.map +1 -0
- package/dist/workflow/lib/review-subject/kinds.js +9 -0
- package/dist/workflow/lib/review-subject/kinds.js.map +1 -0
- package/dist/workflow/lib/review-subject/narrow.d.ts +5 -0
- package/dist/workflow/lib/review-subject/narrow.d.ts.map +1 -0
- package/dist/workflow/lib/review-subject/narrow.js +79 -0
- package/dist/workflow/lib/review-subject/narrow.js.map +1 -0
- package/dist/workflow/lib/review-subject/producers/artifact-ref.d.ts +9 -0
- package/dist/workflow/lib/review-subject/producers/artifact-ref.d.ts.map +1 -0
- package/dist/workflow/lib/review-subject/producers/artifact-ref.js +16 -0
- package/dist/workflow/lib/review-subject/producers/artifact-ref.js.map +1 -0
- package/dist/workflow/lib/review-subject/producers/string.d.ts +7 -0
- package/dist/workflow/lib/review-subject/producers/string.d.ts.map +1 -0
- package/dist/workflow/lib/review-subject/producers/string.js +11 -0
- package/dist/workflow/lib/review-subject/producers/string.js.map +1 -0
- package/dist/workflow/lib/role-capability.d.ts +16 -0
- package/dist/workflow/lib/role-capability.d.ts.map +1 -0
- package/dist/workflow/lib/role-capability.js +19 -0
- package/dist/workflow/lib/role-capability.js.map +1 -0
- package/dist/workflow/lib/run-progress.d.ts +100 -0
- package/dist/workflow/lib/run-progress.d.ts.map +1 -0
- package/dist/workflow/lib/run-progress.js +96 -0
- package/dist/workflow/lib/run-progress.js.map +1 -0
- package/dist/workflow/lib/sampling-profiles.d.ts +18 -0
- package/dist/workflow/lib/sampling-profiles.d.ts.map +1 -0
- package/dist/workflow/lib/sampling-profiles.js +56 -0
- package/dist/workflow/lib/sampling-profiles.js.map +1 -0
- package/dist/workflow/lib/snapshot-ref.d.ts +10 -0
- package/dist/workflow/lib/snapshot-ref.d.ts.map +1 -0
- package/dist/workflow/lib/snapshot-ref.js +3 -0
- package/dist/workflow/lib/snapshot-ref.js.map +1 -0
- package/dist/workflow/lib/temporal-namespace.d.ts +5 -0
- package/dist/workflow/lib/temporal-namespace.d.ts.map +1 -0
- package/dist/workflow/lib/temporal-namespace.js +34 -0
- package/dist/workflow/lib/temporal-namespace.js.map +1 -0
- package/dist/workflow/lib/trigger-payload.d.ts +35 -0
- package/dist/workflow/lib/trigger-payload.d.ts.map +1 -0
- package/dist/workflow/lib/trigger-payload.js +3 -0
- package/dist/workflow/lib/trigger-payload.js.map +1 -0
- package/dist/workflow/lib/variable-requirement.d.ts +18 -0
- package/dist/workflow/lib/variable-requirement.d.ts.map +1 -0
- package/dist/workflow/lib/variable-requirement.js +3 -0
- package/dist/workflow/lib/variable-requirement.js.map +1 -0
- package/dist/workflow/lib/work-item-payloads.d.ts +114 -0
- package/dist/workflow/lib/work-item-payloads.d.ts.map +1 -0
- package/dist/workflow/lib/work-item-payloads.js +60 -0
- package/dist/workflow/lib/work-item-payloads.js.map +1 -0
- package/dist/workflow/lib/workflow-stage.d.ts +11 -0
- package/dist/workflow/lib/workflow-stage.d.ts.map +1 -0
- package/dist/workflow/lib/workflow-stage.js +28 -0
- package/dist/workflow/lib/workflow-stage.js.map +1 -0
- package/dist/workflow/lib/workspace-manifest-enums.d.ts +42 -0
- package/dist/workflow/lib/workspace-manifest-enums.d.ts.map +1 -0
- package/dist/workflow/lib/workspace-manifest-enums.js +80 -0
- package/dist/workflow/lib/workspace-manifest-enums.js.map +1 -0
- package/package.json +173 -0
- package/src/agent-composition/index.ts +17 -0
- package/src/agent-composition/lib/capability-layer.ts +46 -0
- package/src/agent-composition/lib/composition-limits-schema.ts +38 -0
- package/src/agent-composition/lib/composition-workspace.ts +210 -0
- package/src/agent-composition/lib/composition.ts +205 -0
- package/src/agent-composition/lib/intrinsic-floor.ts +50 -0
- package/src/agent-composition/lib/model-resolution-matrix.ts +112 -0
- package/src/agent-workspace/index.ts +27 -0
- package/src/agent-workspace/lib/agent-run-context.ts +44 -0
- package/src/agent-workspace/lib/agent-tool-defaults.ts +252 -0
- package/src/agent-workspace/lib/awp-v1.ts +289 -0
- package/src/agent-workspace/lib/context-json.ts +92 -0
- package/src/agent-workspace/lib/deliverable-spec-ref.ts +60 -0
- package/src/agent-workspace/lib/endpoint-fetch-spec.ts +66 -0
- package/src/agent-workspace/lib/manifest.ts +53 -0
- package/src/agent-workspace/lib/mount-apply.ts +79 -0
- package/src/agent-workspace/lib/working-file.ts +173 -0
- package/src/agent-workspace/lib/workspace-layout.ts +106 -0
- package/src/agent-workspace/lib/workspace-spec.ts +212 -0
- package/src/biome/index.ts +10 -0
- package/src/biome/lib/biome-api.ts +33 -0
- package/src/biome/lib/biome-capability-refs.ts +29 -0
- package/src/biome/lib/biome-engines.ts +18 -0
- package/src/biome/lib/biome-lifecycle-hooks.ts +28 -0
- package/src/biome/lib/biome-lifecycle.ts +29 -0
- package/src/biome/lib/biome-manifest.ts +102 -0
- package/src/biome/lib/biome-permissions.ts +35 -0
- package/src/biome/lib/biome-scope.ts +19 -0
- package/src/biome/lib/biome-trust-tier.ts +21 -0
- package/src/biome/lib/trust-tier-policies.ts +99 -0
- package/src/capability/index.ts +8 -0
- package/src/capability/lib/capability-contribution.ts +99 -0
- package/src/capability/lib/capability-grant.ts +90 -0
- package/src/capability/lib/capability-policy.ts +37 -0
- package/src/capability/lib/capability-ref.ts +138 -0
- package/src/capability/lib/errors.ts +180 -0
- package/src/capability/lib/meta-tool.ts +213 -0
- package/src/capability/lib/permission-profile.ts +91 -0
- package/src/capability/lib/shell-command-descriptor.ts +66 -0
- package/src/contribution/index.ts +4 -0
- package/src/contribution/lib/contribution-kind.ts +132 -0
- package/src/contribution/lib/contribution-source.ts +29 -0
- package/src/contribution/lib/contribution.ts +209 -0
- package/src/contribution/lib/registry.ts +100 -0
- package/src/document-templates/index.ts +24 -0
- package/src/document-templates/lib/document-template.ts +88 -0
- package/src/document-templates/lib/index.ts +2 -0
- package/src/document-templates/lib/rendering-shape.ts +48 -0
- package/src/document-themes/index.ts +21 -0
- package/src/document-themes/lib/component-vocabulary.ts +100 -0
- package/src/document-themes/lib/document-theme.ts +110 -0
- package/src/document-themes/lib/index.ts +2 -0
- package/src/entitlement/index.ts +1 -0
- package/src/entitlement/lib/entitlement.ts +142 -0
- package/src/execution-context/index.ts +3 -0
- package/src/execution-context/lib/caller.ts +46 -0
- package/src/execution-context/lib/execution-context.ts +205 -0
- package/src/execution-context/lib/subject.ts +17 -0
- package/src/execution-environment/index.ts +3 -0
- package/src/execution-environment/lib/approval-rule.ts +32 -0
- package/src/execution-environment/lib/built-in-environments.ts +89 -0
- package/src/execution-environment/lib/execution-environment.ts +266 -0
- package/src/kernel-state/index.ts +3 -0
- package/src/kernel-state/lib/adapter-kind.ts +18 -0
- package/src/kernel-state/lib/kernel-state.ts +139 -0
- package/src/kernel-state/lib/key-grammar.ts +105 -0
- package/src/llm-gateway/index.ts +2 -0
- package/src/llm-gateway/lib/caller.ts +48 -0
- package/src/llm-gateway/lib/errors.ts +111 -0
- package/src/mcp-tool/index.ts +6 -0
- package/src/mcp-tool/lib/mcp-protocol.ts +94 -0
- package/src/mcp-tool/lib/mcp-server-config.ts +17 -0
- package/src/mcp-tool/lib/provider-kind.ts +35 -0
- package/src/mcp-tool/lib/resolver-scope.ts +32 -0
- package/src/mcp-tool/lib/tool-provider.ts +62 -0
- package/src/mcp-tool/lib/tool-selection.ts +48 -0
- package/src/object/index.ts +4 -0
- package/src/object/lib/object-lifecycle.ts +22 -0
- package/src/object/lib/xema-object-kind.ts +73 -0
- package/src/object/lib/xema-object-ref.ts +233 -0
- package/src/object/lib/xema-object.ts +81 -0
- package/src/policy/index.ts +3 -0
- package/src/policy/lib/obligations.ts +155 -0
- package/src/policy/lib/policy.ts +104 -0
- package/src/policy/lib/route-hints.ts +51 -0
- package/src/runner/index.ts +11 -0
- package/src/runner/lib/dispatch.ts +61 -0
- package/src/runner/lib/input-hash.ts +66 -0
- package/src/runner/lib/job-token.ts +80 -0
- package/src/runner/lib/runner-attestation.ts +53 -0
- package/src/runner/lib/runner-job.ts +90 -0
- package/src/runner/lib/runner-kind.ts +10 -0
- package/src/runner/lib/runner-mode.ts +16 -0
- package/src/runner/lib/runner-plane.ts +101 -0
- package/src/runner/lib/runner-registration.ts +204 -0
- package/src/runner/lib/runner.ts +103 -0
- package/src/runner/lib/runtime-isolation.ts +53 -0
- package/src/search-source/index.ts +4 -0
- package/src/search-source/lib/indexable-document.ts +70 -0
- package/src/search-source/lib/search-index-event.ts +56 -0
- package/src/search-source/lib/search-replay.ts +96 -0
- package/src/search-source/lib/search-source-descriptor.ts +50 -0
- package/src/service-registry/index.ts +3 -0
- package/src/service-registry/lib/inject-service.ts +25 -0
- package/src/service-registry/lib/service-descriptor.ts +75 -0
- package/src/service-registry/lib/service-registry-client.ts +107 -0
- package/src/skill/index.ts +15 -0
- package/src/skill/lib/skill-enums.ts +124 -0
- package/src/skill/lib/skill-governance.ts +281 -0
- package/src/skill/lib/skill-source.ts +41 -0
- package/src/skill/lib/skill.ts +150 -0
- package/src/space/index.ts +3 -0
- package/src/space/lib/space-ref-parser.ts +198 -0
- package/src/space/lib/space-traversal.ts +55 -0
- package/src/space/lib/space.ts +173 -0
- package/src/subject/index.ts +2 -0
- package/src/subject/lib/subject.ts +111 -0
- package/src/subject/lib/token-class.ts +27 -0
- package/src/workflow/index.ts +45 -0
- package/src/workflow/lib/action-ref.ts +48 -0
- package/src/workflow/lib/activity-outputs.ts +105 -0
- package/src/workflow/lib/agent-role.ts +136 -0
- package/src/workflow/lib/artifact-ref.ts +93 -0
- package/src/workflow/lib/briefcase.ts +194 -0
- package/src/workflow/lib/canonical-concepts/canonical-concept-registry.ts +99 -0
- package/src/workflow/lib/canonical-concepts/concepts/change-intent.concepts.ts +124 -0
- package/src/workflow/lib/canonical-concepts/concepts/concern.concepts.ts +194 -0
- package/src/workflow/lib/canonical-concepts/concepts/domain.concepts.ts +205 -0
- package/src/workflow/lib/canonical-concepts/concepts/index.ts +15 -0
- package/src/workflow/lib/canonical-concepts/concepts/technology.concepts.ts +667 -0
- package/src/workflow/lib/canonical-concepts/index.ts +2 -0
- package/src/workflow/lib/catalog-taxonomies.ts +3695 -0
- package/src/workflow/lib/compiled-run.ts +376 -0
- package/src/workflow/lib/compiled-working-file.ts +35 -0
- package/src/workflow/lib/compiled-workspace-manifest.ts +185 -0
- package/src/workflow/lib/concurrency-group.ts +17 -0
- package/src/workflow/lib/deliverable-result.ts +238 -0
- package/src/workflow/lib/domain-tag.ts +48 -0
- package/src/workflow/lib/enums.ts +288 -0
- package/src/workflow/lib/errors.ts +171 -0
- package/src/workflow/lib/job-run.ts +65 -0
- package/src/workflow/lib/model-ref.ts +118 -0
- package/src/workflow/lib/mount-plan.ts +230 -0
- package/src/workflow/lib/phase-report.ts +67 -0
- package/src/workflow/lib/platform-task-queue.ts +83 -0
- package/src/workflow/lib/review-subject/index.ts +15 -0
- package/src/workflow/lib/review-subject/kinds.ts +31 -0
- package/src/workflow/lib/review-subject/narrow.ts +123 -0
- package/src/workflow/lib/review-subject/producers/artifact-ref.ts +33 -0
- package/src/workflow/lib/review-subject/producers/string.ts +24 -0
- package/src/workflow/lib/role-capability.ts +80 -0
- package/src/workflow/lib/run-progress.ts +254 -0
- package/src/workflow/lib/sampling-profiles.ts +153 -0
- package/src/workflow/lib/snapshot-ref.ts +27 -0
- package/src/workflow/lib/temporal-namespace.ts +78 -0
- package/src/workflow/lib/trigger-payload.ts +69 -0
- package/src/workflow/lib/variable-requirement.ts +66 -0
- package/src/workflow/lib/work-item-payloads.ts +139 -0
- package/src/workflow/lib/workflow-stage.ts +89 -0
- package/src/workflow/lib/workspace-manifest-enums.ts +143 -0
|
@@ -0,0 +1,376 @@
|
|
|
1
|
+
import type { CompiledWorkspaceManifest } from './compiled-workspace-manifest';
|
|
2
|
+
|
|
3
|
+
import type { ActionRef } from './action-ref';
|
|
4
|
+
import type { Briefcase } from './briefcase';
|
|
5
|
+
import type { ConcurrencyGroup } from './concurrency-group';
|
|
6
|
+
import { MatrixStrategyKind, type PermissionResource, type PermissionScope } from './enums';
|
|
7
|
+
import type { MountPlan } from './mount-plan';
|
|
8
|
+
import type { SnapshotRef } from './snapshot-ref';
|
|
9
|
+
import type { TriggerPayload } from './trigger-payload';
|
|
10
|
+
import type { WorkflowVariableRequirement } from './variable-requirement';
|
|
11
|
+
|
|
12
|
+
/**
|
|
13
|
+
* Pre-resolved manifest source for `xema/agent`-shaped jobs. The
|
|
14
|
+
* workflow-dsl compiler emits exactly one variant per agent step:
|
|
15
|
+
*
|
|
16
|
+
* • `ref` — long-form `with.compositionRef: <slug>` (or
|
|
17
|
+
* `<slug>@<version>`) that the activity resolves at boot via
|
|
18
|
+
* llm-registry-api's Agent Composition `GET /compositions/resolve/
|
|
19
|
+
* :ref`, reconstructing the compiled workspace manifest from the
|
|
20
|
+
* resolved composition's `workspace.mountLayout` block.
|
|
21
|
+
* • `inline` — short-form `with.mounts` whose agent metadata
|
|
22
|
+
* (`agentSlug`, `groupKey`, `deliverableSpecRef`, every entry in
|
|
23
|
+
* `mounts`) is fully literal at compile time. The compiler runs
|
|
24
|
+
* `compileManifest()` once and embeds the result so the worker
|
|
25
|
+
* skips both the DB round-trip and the runtime synthesis step.
|
|
26
|
+
* • `inline-deferred` — short-form whose agent metadata still
|
|
27
|
+
* contains `${{ … }}` expressions; the worker synthesizes the
|
|
28
|
+
* inline manifest after expression evaluation.
|
|
29
|
+
*
|
|
30
|
+
* `null` for non-agent actions (compileManifestSource short-circuits
|
|
31
|
+
* when the action manifest's `inputs.properties` lacks both
|
|
32
|
+
* `compositionRef` and `mounts`).
|
|
33
|
+
*/
|
|
34
|
+
export type CompiledManifestSource =
|
|
35
|
+
| { readonly kind: 'ref'; readonly ref: string }
|
|
36
|
+
| { readonly kind: 'inline'; readonly compiled: CompiledWorkspaceManifest }
|
|
37
|
+
| { readonly kind: 'inline-deferred' };
|
|
38
|
+
|
|
39
|
+
/**
|
|
40
|
+
* A CompiledRun is the IMMUTABLE semantic expansion of a workflow definition
|
|
41
|
+
* for one execution. Produced by `@xemahq/workflow-dsl` at run
|
|
42
|
+
* start, written to the snapshot store, referenced by {@link SnapshotRef}
|
|
43
|
+
* as the input to `rootRunWorkflow`.
|
|
44
|
+
*
|
|
45
|
+
* Rules that must hold for every CompiledRun:
|
|
46
|
+
* 1. The same (workflowDefinitionVersionSha256, triggerPayload) always
|
|
47
|
+
* produces the same CompiledRun modulo `snapshotCreatedAt`. Determinism
|
|
48
|
+
* is a hard invariant — the runtime relies on it for replay semantics.
|
|
49
|
+
* 2. Unknown fields are forbidden (additionalProperties=false at schema
|
|
50
|
+
* level). A CompiledRun with unrecognized fields must fail to load.
|
|
51
|
+
* 3. Every referenced action/reusable-workflow version is pinned at
|
|
52
|
+
* compile time. The worker does not re-resolve.
|
|
53
|
+
* 4. Dynamic matrix jobs carry enough metadata for runtime expansion but
|
|
54
|
+
* do NOT emit child entries — the root workflow spawns those.
|
|
55
|
+
*/
|
|
56
|
+
export interface CompiledRun {
|
|
57
|
+
/** Schema version of this CompiledRun shape. Bumped on breaking changes. */
|
|
58
|
+
readonly compiledRunVersion: 1;
|
|
59
|
+
|
|
60
|
+
/** Workflow slug@version the compilation started from. */
|
|
61
|
+
readonly workflowRef: WorkflowRef;
|
|
62
|
+
|
|
63
|
+
/** Immutable copy of the trigger that produced this run. */
|
|
64
|
+
readonly trigger: TriggerPayload;
|
|
65
|
+
|
|
66
|
+
/** Validated inputs bound from `on.<trigger>.inputs` schemas + defaults applied. */
|
|
67
|
+
readonly inputs: Readonly<Record<string, unknown>>;
|
|
68
|
+
|
|
69
|
+
/** Top-level `vars` block, fully resolved (no expressions left). */
|
|
70
|
+
readonly vars: Readonly<Record<string, unknown>>;
|
|
71
|
+
|
|
72
|
+
/**
|
|
73
|
+
* Run-scoped ephemeral context object synthesized from the dispatch
|
|
74
|
+
* request (uploads, references, vars, optional MCP tool additions).
|
|
75
|
+
* Propagated to every activity / child-workflow via
|
|
76
|
+
* `ActionBaseInput.briefcase`. `undefined` only for legacy runs
|
|
77
|
+
* compiled before this field existed; new dispatches synthesize at
|
|
78
|
+
* least an `emptyBriefcase()` so consumers can safely assume the
|
|
79
|
+
* field's presence after this PR.
|
|
80
|
+
*
|
|
81
|
+
* Distinct from workspace manifests: a manifest declares the agent's
|
|
82
|
+
* static workspace shape; the Briefcase carries the per-run contents
|
|
83
|
+
* that fill those slots.
|
|
84
|
+
*/
|
|
85
|
+
readonly briefcase?: Briefcase;
|
|
86
|
+
|
|
87
|
+
/**
|
|
88
|
+
* Wallet names the workflow declared via `requires.wallets`. Preserved
|
|
89
|
+
* for audit / display ("this run used the `aws-production` wallet").
|
|
90
|
+
* Note: dispatch-time additional wallets are NOT included here — they
|
|
91
|
+
* live on the trigger payload alongside dispatch inputs.
|
|
92
|
+
*/
|
|
93
|
+
readonly requiredWallets: readonly string[];
|
|
94
|
+
|
|
95
|
+
/**
|
|
96
|
+
* Flat list of every variable key the workflow references — derived
|
|
97
|
+
* from the union of the declared wallets' contents at compile time.
|
|
98
|
+
* The engine fails fast at dispatch if any non-optional entry is
|
|
99
|
+
* unresolvable; the worker treats this as a defensive contract for
|
|
100
|
+
* the values it receives in the input payload.
|
|
101
|
+
*/
|
|
102
|
+
readonly requiredVariables: readonly WorkflowVariableRequirement[];
|
|
103
|
+
|
|
104
|
+
/** Declared permissions, resolved to a concrete (resource, scope) map. */
|
|
105
|
+
readonly permissions: Readonly<Record<PermissionResource, PermissionScope>>;
|
|
106
|
+
|
|
107
|
+
/** Resolved concurrency group, or null if the workflow declares none. */
|
|
108
|
+
readonly concurrency: ConcurrencyGroup | null;
|
|
109
|
+
|
|
110
|
+
/** Default retry + timeout (merged with per-job overrides at runtime). */
|
|
111
|
+
readonly defaults: CompiledDefaults;
|
|
112
|
+
|
|
113
|
+
/**
|
|
114
|
+
* All jobs in DAG order (topological sort). Each job carries its resolved
|
|
115
|
+
* `needs` edges so the worker can build the dependency graph without
|
|
116
|
+
* re-parsing. Jobs form a DAG — cycles are rejected at compile time.
|
|
117
|
+
*/
|
|
118
|
+
readonly jobs: readonly CompiledJob[];
|
|
119
|
+
|
|
120
|
+
/** When this CompiledRun was produced. ISO-8601 UTC. */
|
|
121
|
+
readonly snapshotCreatedAt: string;
|
|
122
|
+
|
|
123
|
+
/** sha256 of the canonical-JSON serialization of this CompiledRun, excluding this field. */
|
|
124
|
+
readonly snapshotSha256: string;
|
|
125
|
+
|
|
126
|
+
/** Version hash of the source workflow definition — authoritative at audit time. */
|
|
127
|
+
readonly workflowDefinitionVersionSha256: string;
|
|
128
|
+
|
|
129
|
+
/**
|
|
130
|
+
* `on.workflow_call.outputs` mapping for reusable workflows: outputName →
|
|
131
|
+
* already-stripped expression body (no `${{ }}` wrapper). Evaluated by
|
|
132
|
+
* the runtime against the inner workflow's final `needs.*` once the
|
|
133
|
+
* child `rootRunWorkflow` returns, projecting inner job outputs into
|
|
134
|
+
* the externally-visible call outputs that the parent's job-level
|
|
135
|
+
* `outputs:` block consumes via `job.outputs.*`.
|
|
136
|
+
*
|
|
137
|
+
* Empty object for non-reusable workflows. Reusable workflows whose
|
|
138
|
+
* authors omit `on.workflow_call.outputs` also produce an empty map —
|
|
139
|
+
* the parent will see `job.outputs = {}` and any `outputs:` projection
|
|
140
|
+
* referencing missing fields will fail fast at evaluation.
|
|
141
|
+
*/
|
|
142
|
+
readonly workflowCallOutputs: Readonly<Record<string, string>>;
|
|
143
|
+
|
|
144
|
+
/**
|
|
145
|
+
* Workflow-level `outputs:` block — top-level named outputs declared
|
|
146
|
+
* on the workflow document. Each entry references a `(fromJob,
|
|
147
|
+
* fromOutput)` pair and declares the kind of value it surfaces
|
|
148
|
+
* (deliverable artifact, structured JSON, plain text).
|
|
149
|
+
*
|
|
150
|
+
* Consumers:
|
|
151
|
+
* - Biome `mcpWorkflowTools[].outputProjection.slug` cross-
|
|
152
|
+
* reference (the slug must match a key here at biome boot).
|
|
153
|
+
* - `RunResponseDto.deliverables` projection — built by walking
|
|
154
|
+
* this map against the producing JobRun outputs.
|
|
155
|
+
* - Future `workflow_call` composition surfaces.
|
|
156
|
+
*
|
|
157
|
+
* Empty for workflows without an `outputs:` declaration.
|
|
158
|
+
*/
|
|
159
|
+
readonly workflowOutputs: Readonly<Record<string, WorkflowOutputDescriptor>>;
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
/** Compiled, validated workflow-level output descriptor. */
|
|
163
|
+
export type WorkflowOutputDescriptor =
|
|
164
|
+
| {
|
|
165
|
+
readonly kind: 'deliverable';
|
|
166
|
+
readonly slug: string;
|
|
167
|
+
readonly fromJob: string;
|
|
168
|
+
readonly fromOutput: string;
|
|
169
|
+
readonly description?: string;
|
|
170
|
+
readonly deliverableSpecRef: string;
|
|
171
|
+
}
|
|
172
|
+
| {
|
|
173
|
+
readonly kind: 'structured';
|
|
174
|
+
readonly slug: string;
|
|
175
|
+
readonly fromJob: string;
|
|
176
|
+
readonly fromOutput: string;
|
|
177
|
+
readonly description?: string;
|
|
178
|
+
readonly schemaRef?: string;
|
|
179
|
+
}
|
|
180
|
+
| {
|
|
181
|
+
readonly kind: 'text';
|
|
182
|
+
readonly slug: string;
|
|
183
|
+
readonly fromJob: string;
|
|
184
|
+
readonly fromOutput: string;
|
|
185
|
+
readonly description?: string;
|
|
186
|
+
};
|
|
187
|
+
|
|
188
|
+
export interface WorkflowRef {
|
|
189
|
+
/** Workflow slug (unique within an org). */
|
|
190
|
+
readonly slug: string;
|
|
191
|
+
/** Semantic version, resolved from the `@ver` reference. */
|
|
192
|
+
readonly version: string;
|
|
193
|
+
/** True if this is a system-seeded workflow (read-only), false if UI-authored. */
|
|
194
|
+
readonly isSystem: boolean;
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
export interface CompiledDefaults {
|
|
198
|
+
/** Retry policy inherited by jobs unless overridden. */
|
|
199
|
+
readonly retry: CompiledRetryPolicy;
|
|
200
|
+
/** Default job-level timeout in milliseconds. */
|
|
201
|
+
readonly timeoutMs: number;
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
export interface CompiledRetryPolicy {
|
|
205
|
+
readonly maxAttempts: number;
|
|
206
|
+
readonly initialIntervalMs: number;
|
|
207
|
+
readonly backoffCoefficient: number;
|
|
208
|
+
readonly maximumIntervalMs: number;
|
|
209
|
+
/** Non-retryable error type codes (consumed by the Temporal activity retry policy). */
|
|
210
|
+
readonly nonRetryableErrorTypes: readonly string[];
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
export interface CompiledJob {
|
|
214
|
+
/** Stable logical key (as authored in YAML). Unique per CompiledRun. */
|
|
215
|
+
readonly jobKey: string;
|
|
216
|
+
/** Optional human-readable title; falls back to jobKey in UIs. */
|
|
217
|
+
readonly title: string | null;
|
|
218
|
+
/** Upstream jobKeys this job depends on (must form a DAG). */
|
|
219
|
+
readonly needs: readonly string[];
|
|
220
|
+
/**
|
|
221
|
+
* Upstream matrix jobKeys whose `outputs` should be flattened into a plain
|
|
222
|
+
* array for THIS job's expression context. For every key in this list,
|
|
223
|
+
* `needs.<key>.outputs` is reshaped from `{ kind: 'matrix', outputs: [...] }`
|
|
224
|
+
* to the raw `[...]` array before `with:`, `if:`, and `outputs:` are
|
|
225
|
+
* evaluated. Enables the synthesizer / coordinator pattern without forcing
|
|
226
|
+
* authors to know the matrix envelope shape. Empty array when not declared.
|
|
227
|
+
*/
|
|
228
|
+
readonly matrixGather: readonly string[];
|
|
229
|
+
/**
|
|
230
|
+
* Gating expression EVALUATED at runtime with actual `needs` outputs bound.
|
|
231
|
+
* Null = always run. Expression is already validated to belong to the
|
|
232
|
+
* closed subset by the compiler; evaluator trusts it.
|
|
233
|
+
*/
|
|
234
|
+
readonly ifExpression: string | null;
|
|
235
|
+
/** Strategy for this job: single, compile-time static matrix, or runtime-dynamic. */
|
|
236
|
+
readonly strategy: CompiledStrategy;
|
|
237
|
+
/** Resolved action / reusable workflow reference. Never re-resolved at runtime. */
|
|
238
|
+
readonly action: ActionRef;
|
|
239
|
+
/** Pre-compiled mount plan (NEW: expansion already done). */
|
|
240
|
+
readonly mountPlan: MountPlan;
|
|
241
|
+
/**
|
|
242
|
+
* Pre-resolved workspace-manifest source for agent-shaped jobs.
|
|
243
|
+
* `null` for non-agent actions and reusable-workflow jobs.
|
|
244
|
+
*/
|
|
245
|
+
readonly manifestSource: CompiledManifestSource | null;
|
|
246
|
+
/**
|
|
247
|
+
* Raw `with:` arguments passed to the action/reusable workflow. Values
|
|
248
|
+
* may still contain expression references (`${{ matrix.x }}` etc.) that
|
|
249
|
+
* the worker evaluates per-matrix-entry.
|
|
250
|
+
*/
|
|
251
|
+
readonly with: Readonly<Record<string, unknown>>;
|
|
252
|
+
/**
|
|
253
|
+
* Declarative outputs: outputName → already-stripped expression body
|
|
254
|
+
* (no `${{ }}` wrapper). Evaluated at job completion against an
|
|
255
|
+
* expression context whose `job.outputs.*` is bound to the raw
|
|
256
|
+
* dispatch result (activity return value, child-workflow result, or —
|
|
257
|
+
* for reusable workflows — the projection produced by
|
|
258
|
+
* `CompiledRun.workflowCallOutputs`). The resulting projected map is
|
|
259
|
+
* what downstream jobs observe via `needs.<jobKey>.outputs.*`.
|
|
260
|
+
*
|
|
261
|
+
* Empty object means "no projection" — downstream jobs see the raw
|
|
262
|
+
* dispatch result directly.
|
|
263
|
+
*/
|
|
264
|
+
readonly outputs: Readonly<Record<string, string>>;
|
|
265
|
+
/** Retry policy — job-level override of defaults.retry. */
|
|
266
|
+
readonly retry: CompiledRetryPolicy;
|
|
267
|
+
/** Job-level timeout in milliseconds — overrides defaults.timeoutMs. */
|
|
268
|
+
readonly timeoutMs: number;
|
|
269
|
+
/** Permissions this job needs. Must be a subset of the workflow's permissions. */
|
|
270
|
+
readonly permissions: Readonly<Record<PermissionResource, PermissionScope>>;
|
|
271
|
+
/**
|
|
272
|
+
* When `action.isReusableWorkflow === true`, the nested CompiledRun for
|
|
273
|
+
* the reusable workflow body — pre-compiled by the engine at parent
|
|
274
|
+
* compile time. The worker dispatches the reusable via
|
|
275
|
+
* `executeChild('rootRunWorkflow', { args: [{ runId, compiledRun: this }] })`
|
|
276
|
+
* and merges its `jobOutputs` into the parent's `needs.<jobKey>.outputs`.
|
|
277
|
+
* Null for non-reusable jobs. Cycles are rejected at compile time.
|
|
278
|
+
*/
|
|
279
|
+
readonly reusableCompiledRun: CompiledRun | null;
|
|
280
|
+
/**
|
|
281
|
+
* Compile-time pins for every `needs.<X>.outputs.<...>.<payload-field>`
|
|
282
|
+
* reach-in this job authors. Each pin records the upstream job whose
|
|
283
|
+
* artifact payload will be reached into AND the deliverable-spec
|
|
284
|
+
* version the compiler resolved at compile time. The runtime
|
|
285
|
+
* pre-fetcher asserts the fetched artifact's `schemaVersion` matches
|
|
286
|
+
* `specVersion` — fail-fast on spec drift between the producer's emit
|
|
287
|
+
* and the consumer's compile (per plan "Risks and mitigations").
|
|
288
|
+
*
|
|
289
|
+
* Empty array when the job has no typed reach-ins (the common case
|
|
290
|
+
* for non-agent jobs or jobs whose upstream specs are
|
|
291
|
+
* expression-shaped). Indexing/keying produces one pin per (upstream
|
|
292
|
+
* job, output access form) — multiple `<field>` accesses on the same
|
|
293
|
+
* upstream collapse to one pin since the spec binding is per-job.
|
|
294
|
+
*/
|
|
295
|
+
readonly payloadReachIns: readonly PayloadReachInPin[];
|
|
296
|
+
}
|
|
297
|
+
|
|
298
|
+
/**
|
|
299
|
+
* One compile-time pin recording the spec a payload reach-in expects to
|
|
300
|
+
* fetch against. The runtime pre-fetcher reads these to validate that
|
|
301
|
+
* the artifact the producer actually emitted carries the same
|
|
302
|
+
* `schemaVersion` the compiler bound against — fail-fast on drift.
|
|
303
|
+
*
|
|
304
|
+
* The compiler emits at most one pin per `(consumerJob, upstreamJob)`
|
|
305
|
+
* pair because the deliverable-spec binding on an upstream activity is
|
|
306
|
+
* job-level today (`with.deliverableSpecRef`). When per-output spec
|
|
307
|
+
* bindings land (plan §B), this shape extends with `outputName` and the
|
|
308
|
+
* cardinality changes to `(consumerJob, upstreamJob, outputName)`.
|
|
309
|
+
*/
|
|
310
|
+
export interface PayloadReachInPin {
|
|
311
|
+
/** Dotted authoring path the reach-in appeared at (for diagnostics). */
|
|
312
|
+
readonly fieldPath: string;
|
|
313
|
+
/** Upstream job whose artifact the runtime will fetch. */
|
|
314
|
+
readonly upstreamJobKey: string;
|
|
315
|
+
/**
|
|
316
|
+
* Output name on the upstream activity this pin governs. When the
|
|
317
|
+
* upstream activity manifest declared per-output `outputBindings`,
|
|
318
|
+
* the pin is keyed by `(upstreamJobKey, outputName)`; otherwise the
|
|
319
|
+
* pin covers every reach-in on that upstream (job-level spec from
|
|
320
|
+
* `with.deliverableSpecRef`) and `outputName` is `null`.
|
|
321
|
+
*/
|
|
322
|
+
readonly outputName: string | null;
|
|
323
|
+
/** Spec reference as authored (e.g. `agent-summary@1.0.0`). */
|
|
324
|
+
readonly specRef: string;
|
|
325
|
+
/** Spec version segment parsed off `specRef` (e.g. `1.0.0`). */
|
|
326
|
+
readonly specVersion: string;
|
|
327
|
+
}
|
|
328
|
+
|
|
329
|
+
export type CompiledStrategy =
|
|
330
|
+
| CompiledSingleStrategy
|
|
331
|
+
| CompiledStaticMatrixStrategy
|
|
332
|
+
| CompiledDynamicMatrixStrategy;
|
|
333
|
+
|
|
334
|
+
export interface CompiledSingleStrategy {
|
|
335
|
+
readonly kind: MatrixStrategyKind.SINGLE;
|
|
336
|
+
}
|
|
337
|
+
|
|
338
|
+
/**
|
|
339
|
+
* Matrix known at compile time — already fully expanded into a list of
|
|
340
|
+
* concrete bindings. Each element is one job run.
|
|
341
|
+
*/
|
|
342
|
+
export interface CompiledStaticMatrixStrategy {
|
|
343
|
+
readonly kind: MatrixStrategyKind.STATIC;
|
|
344
|
+
readonly entries: readonly Readonly<Record<string, unknown>>[];
|
|
345
|
+
readonly maxParallel: number;
|
|
346
|
+
}
|
|
347
|
+
|
|
348
|
+
/**
|
|
349
|
+
* Matrix expanded at runtime. `fromExpression` is the expression the root
|
|
350
|
+
* workflow evaluates once upstream outputs are available; it must resolve
|
|
351
|
+
* to an array of bindings. `maxParallel` caps concurrent child spawns.
|
|
352
|
+
* The compile-time cardinality cap (plan §5) is enforced at runtime by
|
|
353
|
+
* rejecting arrays > maxEntries.
|
|
354
|
+
*/
|
|
355
|
+
export interface CompiledDynamicMatrixStrategy {
|
|
356
|
+
readonly kind: MatrixStrategyKind.DYNAMIC;
|
|
357
|
+
readonly fromExpression: string;
|
|
358
|
+
readonly maxParallel: number;
|
|
359
|
+
readonly maxEntries: number;
|
|
360
|
+
/** Name of the variable each entry binds to inside the job (e.g. `matrix.changeUnit`). */
|
|
361
|
+
readonly bindingName: string;
|
|
362
|
+
/**
|
|
363
|
+
* Optional dotted path on each bound entry whose value becomes the
|
|
364
|
+
* key in `needs.<thisJob>.outputs.byKey`. Lets per-CU downstream
|
|
365
|
+
* matrices reference the matching upstream iteration via
|
|
366
|
+
* `needs.X.outputs.byKey[matrix.<binding>.<keyBy>].field`. `null` =
|
|
367
|
+
* no keyed map exposed (positional + matrixGather still work).
|
|
368
|
+
*/
|
|
369
|
+
readonly keyBy: string | null;
|
|
370
|
+
}
|
|
371
|
+
|
|
372
|
+
/**
|
|
373
|
+
* Re-export of {@link SnapshotRef} for callers that only import compiled-run.
|
|
374
|
+
* Keeps the dependency direction one-way.
|
|
375
|
+
*/
|
|
376
|
+
export type { SnapshotRef };
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
// ═══════════════════════════════════════════════════════════════════════════
|
|
2
|
+
// ── Compiled working-file declaration ──
|
|
3
|
+
//
|
|
4
|
+
// The post-interpolation form of a `WorkingFileBinding` (declared in
|
|
5
|
+
// `@xemahq/agent-workspace-contracts`). The manifest DSL compile step
|
|
6
|
+
// resolves any `${input.x}` tokens in `path` / `sourceRef` values
|
|
7
|
+
// against the caller's bind inputs before producing this shape, so
|
|
8
|
+
// downstream consumers (session-bundle composer, workspace-proxy
|
|
9
|
+
// working-file engine) receive concrete strings.
|
|
10
|
+
//
|
|
11
|
+
// Restated here (rather than re-exported from agent-workspace-contracts)
|
|
12
|
+
// to keep workflow-contracts dependency-free from the AWP package — the
|
|
13
|
+
// shape is identical by design.
|
|
14
|
+
// ═══════════════════════════════════════════════════════════════════════════
|
|
15
|
+
|
|
16
|
+
export type CompiledWorkingFileFormat =
|
|
17
|
+
| 'markdown'
|
|
18
|
+
| 'html'
|
|
19
|
+
| 'json'
|
|
20
|
+
| 'yaml'
|
|
21
|
+
| 'text';
|
|
22
|
+
|
|
23
|
+
export type CompiledWorkingFileSyncDirection =
|
|
24
|
+
| 'down-only'
|
|
25
|
+
| 'up-only'
|
|
26
|
+
| 'bidirectional';
|
|
27
|
+
|
|
28
|
+
export interface CompiledWorkingFile {
|
|
29
|
+
readonly slug: string;
|
|
30
|
+
readonly path: string;
|
|
31
|
+
readonly format: CompiledWorkingFileFormat;
|
|
32
|
+
readonly syncDirection: CompiledWorkingFileSyncDirection;
|
|
33
|
+
readonly sourceKind: string;
|
|
34
|
+
readonly sourceRef: Readonly<Record<string, string>>;
|
|
35
|
+
}
|
|
@@ -0,0 +1,185 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Compiled output types for WorkspaceManifest — produced by
|
|
3
|
+
* `@xemahq/workspace-manifest-dsl`'s `compileManifest()` and embedded
|
|
4
|
+
* in {@link CompiledRun} for inline-agent steps.
|
|
5
|
+
*
|
|
6
|
+
* Defined here (rather than in workspace-manifest-dsl) to avoid a
|
|
7
|
+
* circular dependency: workspace-manifest-dsl → agent-workspace-contracts
|
|
8
|
+
* → workflow-contracts → workspace-manifest-dsl.
|
|
9
|
+
*/
|
|
10
|
+
|
|
11
|
+
import type { ToolSelectionEntry } from '../../mcp-tool';
|
|
12
|
+
|
|
13
|
+
import type { AgentRunRole } from './agent-role';
|
|
14
|
+
import type { CompiledWorkingFile } from './compiled-working-file';
|
|
15
|
+
|
|
16
|
+
// Re-export so callers walking `CompiledWorkspaceManifest.workingFiles`
|
|
17
|
+
// pull the entry type from the same module they got the manifest from.
|
|
18
|
+
export type {
|
|
19
|
+
CompiledWorkingFile,
|
|
20
|
+
CompiledWorkingFileFormat,
|
|
21
|
+
CompiledWorkingFileSyncDirection,
|
|
22
|
+
} from './compiled-working-file';
|
|
23
|
+
import type { ModelRef, SubAgentBinding } from './model-ref';
|
|
24
|
+
import type {
|
|
25
|
+
CredentialKind,
|
|
26
|
+
ManifestSurface,
|
|
27
|
+
OutputSurfaceKind,
|
|
28
|
+
ToolsetKey,
|
|
29
|
+
} from './workspace-manifest-enums';
|
|
30
|
+
|
|
31
|
+
export interface CompiledWorkspaceManifest {
|
|
32
|
+
readonly slug: string;
|
|
33
|
+
readonly version: string;
|
|
34
|
+
readonly surfaceCompat: readonly ManifestSurface[];
|
|
35
|
+
readonly display: CompiledManifestDisplay;
|
|
36
|
+
readonly agent: CompiledManifestAgent;
|
|
37
|
+
readonly mounts: Record<string, CompiledMountDeclaration>;
|
|
38
|
+
readonly skills: readonly CompiledManifestSkillRef[];
|
|
39
|
+
/**
|
|
40
|
+
* Default MCP tool selection (resolved at boot via mcp-gateway-api
|
|
41
|
+
* `POST /mcp-resolve`). Sessions may override per-instance.
|
|
42
|
+
*/
|
|
43
|
+
readonly toolSelection: readonly ToolSelectionEntry[];
|
|
44
|
+
readonly credentials: readonly CompiledManifestCredential[];
|
|
45
|
+
readonly permissions: CompiledManifestPermissions;
|
|
46
|
+
readonly persistence: CompiledManifestPersistence;
|
|
47
|
+
readonly outputSurface: CompiledManifestOutputSurface;
|
|
48
|
+
readonly seedFiles: readonly CompiledSeedFile[];
|
|
49
|
+
readonly env: readonly { readonly name: string; readonly value: string }[];
|
|
50
|
+
/**
|
|
51
|
+
* Working files the platform materialises before the agent's first
|
|
52
|
+
* turn (see `WorkingFileBinding` in `@xemahq/agent-workspace-contracts`).
|
|
53
|
+
* Compiled with `${input.x}` tokens already interpolated against the
|
|
54
|
+
* caller's bind inputs. Empty when the source manifest declared no
|
|
55
|
+
* working files.
|
|
56
|
+
*/
|
|
57
|
+
readonly workingFiles: readonly CompiledWorkingFile[];
|
|
58
|
+
/**
|
|
59
|
+
* Distinct template names the manifest references via `seedFiles[].template`.
|
|
60
|
+
* Callers resolve these against the templates table (with the appropriate
|
|
61
|
+
* scope ladder) before mounting.
|
|
62
|
+
*/
|
|
63
|
+
readonly requiredTemplateNames: readonly string[];
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
export interface CompiledManifestAgent {
|
|
67
|
+
readonly slug: string;
|
|
68
|
+
readonly groupKey: string;
|
|
69
|
+
/**
|
|
70
|
+
* Canonical {@link AgentRunRole}. Validated by the DSL's
|
|
71
|
+
* `ManifestAgentBlockSchema` at compile time, so the runtime can
|
|
72
|
+
* trust the value without re-checking.
|
|
73
|
+
*/
|
|
74
|
+
readonly role: AgentRunRole;
|
|
75
|
+
readonly deliverableSpecRef?: string;
|
|
76
|
+
readonly defaultModel?: ModelRef;
|
|
77
|
+
readonly subAgents: readonly SubAgentBinding[];
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
export interface CompiledManifestDisplay {
|
|
81
|
+
readonly title?: string;
|
|
82
|
+
readonly blurb?: string;
|
|
83
|
+
readonly icon?: string;
|
|
84
|
+
readonly category?: string;
|
|
85
|
+
readonly badges: readonly string[];
|
|
86
|
+
readonly sortOrder?: number;
|
|
87
|
+
readonly hidden: boolean;
|
|
88
|
+
readonly ctaText?: string;
|
|
89
|
+
readonly curated: boolean;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
export interface CompiledManifestSkillRef {
|
|
93
|
+
readonly slug: string;
|
|
94
|
+
readonly version?: string;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
export interface CompiledManifestCredential {
|
|
98
|
+
readonly name: string;
|
|
99
|
+
readonly kind: CredentialKind;
|
|
100
|
+
readonly sourceRef: string;
|
|
101
|
+
readonly required: boolean;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
export interface CompiledManifestPermissions {
|
|
105
|
+
readonly tools: {
|
|
106
|
+
readonly allow: readonly ToolsetKey[];
|
|
107
|
+
readonly deny: readonly ToolsetKey[];
|
|
108
|
+
};
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
/**
|
|
112
|
+
* Compiled per-slot persistence policy override. Mirrors the manifest
|
|
113
|
+
* source shape — every field is already validated against closed-set
|
|
114
|
+
* enums at compile time, so consumers (agent-session-api session
|
|
115
|
+
* lifecycle, in particular) can read these without re-validating.
|
|
116
|
+
*/
|
|
117
|
+
export interface CompiledSlotPersistenceOverride {
|
|
118
|
+
readonly kind: 'git-push';
|
|
119
|
+
readonly branchPrefix: string;
|
|
120
|
+
readonly branchSuffix?: import('./workspace-manifest-enums').ManifestGitPushBranchSuffix;
|
|
121
|
+
readonly concurrencyMode?: import('./workspace-manifest-enums').ManifestGitPushConcurrencyMode;
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
export interface CompiledManifestPersistence {
|
|
125
|
+
readonly paths: readonly string[];
|
|
126
|
+
/**
|
|
127
|
+
* Per-slot persistence policy overrides. Keyed by AWP slot key. Empty
|
|
128
|
+
* when the manifest doesn't override any slot. Consumed by the session
|
|
129
|
+
* lifecycle to override the kernel default policy at runtime.
|
|
130
|
+
*/
|
|
131
|
+
readonly overrides: Readonly<Record<string, CompiledSlotPersistenceOverride>>;
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
export type CompiledManifestOutputSurfaceMode = 'single' | 'multi';
|
|
135
|
+
|
|
136
|
+
export interface CompiledManifestOutputSurface {
|
|
137
|
+
readonly kind: OutputSurfaceKind;
|
|
138
|
+
readonly port?: number;
|
|
139
|
+
readonly healthPath?: string;
|
|
140
|
+
readonly autoOpen: boolean;
|
|
141
|
+
/**
|
|
142
|
+
* `'single'` (default) — one preview process pinned to `port`.
|
|
143
|
+
* `'multi'` — workspace-proxy preview supervisor discovers app
|
|
144
|
+
* targets and emits one gateway route per detected app; the
|
|
145
|
+
* top-level `port` is unused.
|
|
146
|
+
*/
|
|
147
|
+
readonly mode: CompiledManifestOutputSurfaceMode;
|
|
148
|
+
/**
|
|
149
|
+
* Workspace-relative directory served as a static site. Present
|
|
150
|
+
* and meaningful only when `kind === 'static'`. The DSL schema
|
|
151
|
+
* enforces the cross-field rule (required when `kind === 'static'`).
|
|
152
|
+
*/
|
|
153
|
+
readonly root?: string;
|
|
154
|
+
/**
|
|
155
|
+
* Default document served for directory requests in a `static`
|
|
156
|
+
* surface. Defaults to `index.html` at compile time; absent for
|
|
157
|
+
* other kinds.
|
|
158
|
+
*/
|
|
159
|
+
readonly defaultDocument?: string;
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
export interface CompiledMountDeclaration {
|
|
163
|
+
readonly enabled: boolean;
|
|
164
|
+
readonly mode?: 'read-only' | 'read-write';
|
|
165
|
+
readonly config: Readonly<Record<string, unknown>>;
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
/**
|
|
169
|
+
* A compiled seed file. The `source` discriminator separates inline
|
|
170
|
+
* literal content (already base64-encoded by the compiler) from named
|
|
171
|
+
* templates (resolved + rendered downstream).
|
|
172
|
+
*/
|
|
173
|
+
export interface CompiledSeedFile {
|
|
174
|
+
readonly slot: string;
|
|
175
|
+
readonly relPath: string;
|
|
176
|
+
readonly source: CompiledSeedFileSource;
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
export type CompiledSeedFileSource =
|
|
180
|
+
| { readonly kind: 'inline'; readonly bytesBase64: string }
|
|
181
|
+
| {
|
|
182
|
+
readonly kind: 'template';
|
|
183
|
+
readonly name: string;
|
|
184
|
+
readonly vars: Readonly<Record<string, unknown>>;
|
|
185
|
+
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { ConcurrencyMode } from './enums';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Concurrency declaration resolved at compile time. The engine acquires a
|
|
5
|
+
* Postgres-backed lease on `leaseKey` before starting the run; the
|
|
6
|
+
* `mode` drives collision behavior (queue vs cancel vs skip vs allow).
|
|
7
|
+
*
|
|
8
|
+
* `leaseKey` is the deterministic expansion of the authored `group`
|
|
9
|
+
* expression with trigger/inputs bound in. The engine NEVER re-evaluates
|
|
10
|
+
* the expression at runtime — collisions must be detectable via string
|
|
11
|
+
* equality on leaseKey alone. This is load-bearing for horizontal scaling:
|
|
12
|
+
* two engine replicas can both inspect the same lease row.
|
|
13
|
+
*/
|
|
14
|
+
export interface ConcurrencyGroup {
|
|
15
|
+
readonly leaseKey: string;
|
|
16
|
+
readonly mode: ConcurrencyMode;
|
|
17
|
+
}
|