@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,66 @@
|
|
|
1
|
+
// ═══════════════════════════════════════════════════════════════════════════
|
|
2
|
+
// ── ENDPOINT_FETCH deliverable-spec payload ──
|
|
3
|
+
//
|
|
4
|
+
// Shape of the `fetchSpec` column on a DeliverableSpec row with
|
|
5
|
+
// `kind = ENDPOINT_FETCH`. The new `xema/endpoint-fetch@v1` activity
|
|
6
|
+
// (PR B) reads this object, performs one HTTP request per endpoint,
|
|
7
|
+
// and uploads one artifact per response to artifact-store-api.
|
|
8
|
+
//
|
|
9
|
+
// Host allowlist enforcement happens in the activity (same policy
|
|
10
|
+
// surface as `xema/http@v1`) — the spec itself just declares the
|
|
11
|
+
// intended endpoints.
|
|
12
|
+
// ═══════════════════════════════════════════════════════════════════════════
|
|
13
|
+
|
|
14
|
+
export enum HttpMethod {
|
|
15
|
+
GET = 'GET',
|
|
16
|
+
POST = 'POST',
|
|
17
|
+
PUT = 'PUT',
|
|
18
|
+
PATCH = 'PATCH',
|
|
19
|
+
DELETE = 'DELETE',
|
|
20
|
+
HEAD = 'HEAD',
|
|
21
|
+
OPTIONS = 'OPTIONS',
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
export enum FetchOutputKind {
|
|
25
|
+
/** Store the response body verbatim. */
|
|
26
|
+
Raw = 'raw',
|
|
27
|
+
/** Parse JSON + store the parsed value; fails the activity if the response isn't JSON. */
|
|
28
|
+
Json = 'json',
|
|
29
|
+
/** Compress + store as binary blob (for large payloads). */
|
|
30
|
+
Binary = 'binary',
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
export interface EndpointFetchEntry {
|
|
34
|
+
/** Human-readable key used as the artifact slug. Unique within the spec. */
|
|
35
|
+
readonly key: string;
|
|
36
|
+
/** Absolute URL or `${var}` template resolved from workflow `with:` inputs. */
|
|
37
|
+
readonly url: string;
|
|
38
|
+
readonly method: HttpMethod;
|
|
39
|
+
/**
|
|
40
|
+
* Optional header bag. Values may reference `${var}` from workflow
|
|
41
|
+
* inputs; the activity resolves them at dispatch time. Use for simple
|
|
42
|
+
* auth tokens; sensitive header values should come from a
|
|
43
|
+
* `headersRef` that points at a secret-manager entry.
|
|
44
|
+
*/
|
|
45
|
+
readonly headers: Readonly<Record<string, string>> | null;
|
|
46
|
+
/** Optional pointer to a header-bag secret: `secret://<ref>`. */
|
|
47
|
+
readonly headersRef: string | null;
|
|
48
|
+
/** JSON body for POST/PUT/PATCH; `null` for GET/HEAD/OPTIONS. */
|
|
49
|
+
readonly body: unknown;
|
|
50
|
+
readonly outputKind: FetchOutputKind;
|
|
51
|
+
/** Max bytes to store; activity truncates and adds a warning label if exceeded. */
|
|
52
|
+
readonly maxResponseBytes: number;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
export interface EndpointFetchSpec {
|
|
56
|
+
/** Schema version; bump on breaking changes. */
|
|
57
|
+
readonly schemaVersion: 1;
|
|
58
|
+
readonly entries: readonly EndpointFetchEntry[];
|
|
59
|
+
/**
|
|
60
|
+
* Maximum concurrency across entries. `null` = sequential; omitting is
|
|
61
|
+
* the safe default because many target endpoints rate-limit.
|
|
62
|
+
*/
|
|
63
|
+
readonly maxConcurrency: number | null;
|
|
64
|
+
/** Per-entry timeout in milliseconds. */
|
|
65
|
+
readonly timeoutMs: number;
|
|
66
|
+
}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
// ═══════════════════════════════════════════════════════════════════════════
|
|
2
|
+
// ── /workspace/deliverables/manifest.json ──
|
|
3
|
+
//
|
|
4
|
+
// Written by unit-worker / coordinator at turn finalization; harvested by
|
|
5
|
+
// the agent activity in PR B. Every page listed here MUST correspond to
|
|
6
|
+
// a file under `/workspace/deliverables/pages/<slug>.md` (or the
|
|
7
|
+
// appropriate extension for non-markdown specs). The orchestrator
|
|
8
|
+
// verifies that correspondence before uploading the pages as artifacts.
|
|
9
|
+
//
|
|
10
|
+
// Extends `packages/platform-common/src/schemas/xema/manifest.json`
|
|
11
|
+
// with: (a) per-page `kind`, (b) `deliverableSpecRef` for traceability,
|
|
12
|
+
// (c) content hashes for retry-determinism checks.
|
|
13
|
+
// ═══════════════════════════════════════════════════════════════════════════
|
|
14
|
+
|
|
15
|
+
export enum ManifestPageKind {
|
|
16
|
+
/** Markdown document page produced against a `DOCUMENT_TEMPLATE` spec. */
|
|
17
|
+
DocumentPage = 'document-page',
|
|
18
|
+
/** Structured JSON produced against a `ZOD_SCHEMA` or `JSON_SCHEMA` spec. */
|
|
19
|
+
StructuredJson = 'structured-json',
|
|
20
|
+
/** Binary asset (e.g. rendered docx, image). */
|
|
21
|
+
Asset = 'asset',
|
|
22
|
+
/** Output of a single endpoint fetch for `ENDPOINT_FETCH` specs. */
|
|
23
|
+
EndpointFetch = 'endpoint-fetch',
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
export enum ManifestStatus {
|
|
27
|
+
Complete = 'complete',
|
|
28
|
+
Partial = 'partial',
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
export interface ManifestPage {
|
|
32
|
+
readonly slug: string;
|
|
33
|
+
readonly title: string;
|
|
34
|
+
readonly parentSlug: string | null;
|
|
35
|
+
readonly kind: ManifestPageKind;
|
|
36
|
+
/** Relative path from `/workspace/deliverables/` to the page file. */
|
|
37
|
+
readonly path: string;
|
|
38
|
+
/** Sha256 of the page file contents at write time. */
|
|
39
|
+
readonly sha256: string;
|
|
40
|
+
readonly sizeBytes: number;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
export interface DeliverableManifest {
|
|
44
|
+
/** Schema version. 1 = current. Bumping requires migrating the biome finalizer. */
|
|
45
|
+
readonly schemaVersion: 1;
|
|
46
|
+
/** Deliverable-spec this manifest satisfies; `null` for generic/custom flows. */
|
|
47
|
+
readonly deliverableSpecRef: string | null;
|
|
48
|
+
readonly deliverableSpecVersion: string | null;
|
|
49
|
+
readonly pages: readonly ManifestPage[];
|
|
50
|
+
readonly status: ManifestStatus;
|
|
51
|
+
/** ISO-8601 timestamp the agent wrote this file. */
|
|
52
|
+
readonly finalizedAt: string;
|
|
53
|
+
}
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
// ═══════════════════════════════════════════════════════════════════════════
|
|
2
|
+
// ── Mount apply contract ──
|
|
3
|
+
//
|
|
4
|
+
// Wire types for `POST /workspace/mounts/apply` on `workspace-proxy`. The
|
|
5
|
+
// `OrchestratorAdapter.invoke()` boundary is the only call site; the worker
|
|
6
|
+
// never POSTs directly. See docs/architecture/workspace-proxy-mount-api.md
|
|
7
|
+
// for endpoint contract + lease + staging semantics.
|
|
8
|
+
// ═══════════════════════════════════════════════════════════════════════════
|
|
9
|
+
|
|
10
|
+
import type { WorkspaceMount, WorkspaceMountMode, WorkspaceMountPlan } from './workspace-layout';
|
|
11
|
+
|
|
12
|
+
/**
|
|
13
|
+
* Actor identity propagated from the dispatching API call all the way
|
|
14
|
+
* to the resolvers. `workspace-proxy` validates the JWT signature and
|
|
15
|
+
* matches its claims against `orgId` + `projectId` before invoking any
|
|
16
|
+
* resolver.
|
|
17
|
+
*
|
|
18
|
+
* Resolvers MUST forward `Authorization: Bearer <jwt>` + `X-Org-Id` +
|
|
19
|
+
* `X-Project-Id` to upstream Orval clients. Cross-tenant access is
|
|
20
|
+
* impossible without a forged JWT.
|
|
21
|
+
*/
|
|
22
|
+
export interface ActorContext {
|
|
23
|
+
/** Bearer JWT issued by Keycloak for the workflow-triggering user. */
|
|
24
|
+
readonly jwt: string;
|
|
25
|
+
readonly orgId: string;
|
|
26
|
+
readonly projectId: string;
|
|
27
|
+
readonly userId: string;
|
|
28
|
+
/** Correlation id threaded through logs + audit + downstream service calls. */
|
|
29
|
+
readonly correlationId: string;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
export enum MountApplyOutcome {
|
|
33
|
+
/** Plan was newly applied; bytes written to disk. */
|
|
34
|
+
Applied = 'applied',
|
|
35
|
+
/** Lease for this apply key already existed; no work performed. */
|
|
36
|
+
Idempotent = 'idempotent',
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
export enum MountApplyEntryStatus {
|
|
40
|
+
Resolved = 'resolved',
|
|
41
|
+
Applied = 'applied',
|
|
42
|
+
Failed = 'failed',
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
/**
|
|
46
|
+
* Per-entry result — surfaced to the worker so it can render the
|
|
47
|
+
* declared/resolved/applied diagnostic view in agent-run-context.
|
|
48
|
+
*
|
|
49
|
+
* `identity` is an opaque, scrubbed identifier (e.g. collection id,
|
|
50
|
+
* spec slug, repo ref) — NEVER a JWT, signed URL, or upstream payload.
|
|
51
|
+
*/
|
|
52
|
+
export interface MountApplyEntryResult {
|
|
53
|
+
readonly mountKey: string;
|
|
54
|
+
readonly slot: WorkspaceMount;
|
|
55
|
+
readonly relPath: string;
|
|
56
|
+
readonly mode: WorkspaceMountMode;
|
|
57
|
+
readonly sourceKind: string;
|
|
58
|
+
readonly identity: string;
|
|
59
|
+
readonly status: MountApplyEntryStatus;
|
|
60
|
+
readonly bytesWritten: number;
|
|
61
|
+
readonly latencyMs: number;
|
|
62
|
+
/** Present only when `status === Failed`. Closed-enum error code. */
|
|
63
|
+
readonly errorCode?: string;
|
|
64
|
+
/** Present only when `status === Failed`. Human-readable, no upstream payload. */
|
|
65
|
+
readonly errorMessage?: string;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
export interface MountApplyRequest {
|
|
69
|
+
readonly plan: WorkspaceMountPlan;
|
|
70
|
+
readonly actorContext: ActorContext;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
export interface MountApplyResponse {
|
|
74
|
+
readonly applyId: string;
|
|
75
|
+
readonly outcome: MountApplyOutcome;
|
|
76
|
+
readonly entries: readonly MountApplyEntryResult[];
|
|
77
|
+
readonly totalLatencyMs: number;
|
|
78
|
+
readonly totalBytesWritten: number;
|
|
79
|
+
}
|
|
@@ -0,0 +1,173 @@
|
|
|
1
|
+
// ═══════════════════════════════════════════════════════════════════════════
|
|
2
|
+
// ── WorkingFile primitive ──
|
|
3
|
+
//
|
|
4
|
+
// First-class AWP primitive for the "agent edits a single materialised
|
|
5
|
+
// file" pattern. The platform materialises each declared file at the
|
|
6
|
+
// composition-resolved path BEFORE the agent's first turn, surfaces the
|
|
7
|
+
// list on `context.json.workingFiles[]` (introspection) and as env vars
|
|
8
|
+
// (`XEMA_WORKING_FILE_PATH` for the first entry; full JSON in
|
|
9
|
+
// `XEMA_WORKING_FILES_JSON`), and narrows `authority.mayWriteWorkspace`
|
|
10
|
+
// to exactly these paths — write authority becomes a contract, not
|
|
11
|
+
// prompt prose.
|
|
12
|
+
//
|
|
13
|
+
// Source-kind is an OPEN enum: the kernel ships `kb-page` (knowledge-
|
|
14
|
+
// base-api page); biomes extend by registering a new source-kind +
|
|
15
|
+
// shipping a worker-side adapter. The worker's working-file engine
|
|
16
|
+
// dispatches by `sourceKind` — adding "git-file" or "blob" is a new
|
|
17
|
+
// adapter, not a refactor.
|
|
18
|
+
// ═══════════════════════════════════════════════════════════════════════════
|
|
19
|
+
|
|
20
|
+
/**
|
|
21
|
+
* Wire-format the materialised file is written in. Open list so biomes
|
|
22
|
+
* may add new formats (e.g. `xlsx`, `mermaid`) — the kernel ships only
|
|
23
|
+
* the universally-supported text shapes. The agent's edit tool reads the
|
|
24
|
+
* file as bytes regardless of `format`; the value is informational +
|
|
25
|
+
* drives the worker's content-type / file-extension projection.
|
|
26
|
+
*/
|
|
27
|
+
export const WORKING_FILE_FORMATS = [
|
|
28
|
+
'markdown',
|
|
29
|
+
'html',
|
|
30
|
+
'json',
|
|
31
|
+
'yaml',
|
|
32
|
+
'text',
|
|
33
|
+
] as const;
|
|
34
|
+
export type WorkingFileFormat = (typeof WORKING_FILE_FORMATS)[number];
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* Closed set of companion-binary formats a working-file binding can
|
|
38
|
+
* declare via `sourceRef.binaryFormat`. The kb-page adapter reads a
|
|
39
|
+
* sibling binary at `<dirname(path)>/<slug>.<ext>` after every settle
|
|
40
|
+
* and pushes it alongside the synopsis so the durable XLSX/PPTX/DOCX/PDF lives
|
|
41
|
+
* outside the worker container. Closed enum so a new format = adapter +
|
|
42
|
+
* server enum + this constant; no free-form strings.
|
|
43
|
+
*
|
|
44
|
+
* Synopsis-canonical kinds (MD/RICH) MUST NOT declare `binaryFormat` —
|
|
45
|
+
* the DSL compiler rejects unknown values.
|
|
46
|
+
*/
|
|
47
|
+
export const WORKING_FILE_BINARY_FORMATS = ['xlsx', 'pptx', 'docx', 'pdf'] as const;
|
|
48
|
+
export type WorkingFileBinaryFormat =
|
|
49
|
+
(typeof WORKING_FILE_BINARY_FORMATS)[number];
|
|
50
|
+
|
|
51
|
+
const BINARY_FORMAT_EXTENSIONS: Readonly<
|
|
52
|
+
Record<WorkingFileBinaryFormat, string>
|
|
53
|
+
> = {
|
|
54
|
+
xlsx: 'xlsx',
|
|
55
|
+
pptx: 'pptx',
|
|
56
|
+
docx: 'docx',
|
|
57
|
+
pdf: 'pdf',
|
|
58
|
+
};
|
|
59
|
+
|
|
60
|
+
export function workingFileBinaryExtension(
|
|
61
|
+
format: WorkingFileBinaryFormat,
|
|
62
|
+
): string {
|
|
63
|
+
return BINARY_FORMAT_EXTENSIONS[format];
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
export function isWorkingFileBinaryFormat(
|
|
67
|
+
value: string,
|
|
68
|
+
): value is WorkingFileBinaryFormat {
|
|
69
|
+
return (WORKING_FILE_BINARY_FORMATS as readonly string[]).includes(value);
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
/**
|
|
73
|
+
* File extension projected from `WorkingFileFormat`. Total over the
|
|
74
|
+
* closed kernel set so a new format addition is a compile-time error.
|
|
75
|
+
* The worker uses this to pick `<slug>.<ext>` when the composition's
|
|
76
|
+
* path template omits an explicit extension.
|
|
77
|
+
*/
|
|
78
|
+
const FORMAT_EXTENSIONS: Readonly<Record<WorkingFileFormat, string>> = {
|
|
79
|
+
markdown: 'md',
|
|
80
|
+
html: 'html',
|
|
81
|
+
json: 'json',
|
|
82
|
+
yaml: 'yaml',
|
|
83
|
+
text: 'txt',
|
|
84
|
+
};
|
|
85
|
+
|
|
86
|
+
export function workingFileExtension(format: WorkingFileFormat): string {
|
|
87
|
+
return FORMAT_EXTENSIONS[format];
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
/**
|
|
91
|
+
* Direction the platform syncs the materialised file in.
|
|
92
|
+
*
|
|
93
|
+
* - `down-only` — the platform writes the file (from the source); the
|
|
94
|
+
* agent may edit but the changes are pushed FROM agent TO source only.
|
|
95
|
+
* This is the default; rich documents use it (agent authors, user
|
|
96
|
+
* reviews tracked changes, no user co-edit).
|
|
97
|
+
* - `up-only` — read-only mount of the source content. The agent
|
|
98
|
+
* observes but does not write. Reserved for reference materials.
|
|
99
|
+
* - `bidirectional` — co-edit. Either side may write; the platform's
|
|
100
|
+
* adapter merges concurrent edits. Markdown documents use it (user
|
|
101
|
+
* types in the editor, agent edits the working file, the merge falls
|
|
102
|
+
* out of the document-sync loop).
|
|
103
|
+
*/
|
|
104
|
+
export const WORKING_FILE_SYNC_DIRECTIONS = [
|
|
105
|
+
'down-only',
|
|
106
|
+
'up-only',
|
|
107
|
+
'bidirectional',
|
|
108
|
+
] as const;
|
|
109
|
+
export type WorkingFileSyncDirection =
|
|
110
|
+
(typeof WORKING_FILE_SYNC_DIRECTIONS)[number];
|
|
111
|
+
|
|
112
|
+
/**
|
|
113
|
+
* Source the working file is materialised from. Open list — the kernel
|
|
114
|
+
* ships only `kb-page`; biomes may register additional kinds + ship a
|
|
115
|
+
* matching worker-side adapter. The platform validates that the string
|
|
116
|
+
* is non-empty and snake_case so new kinds cannot accidentally collide.
|
|
117
|
+
*
|
|
118
|
+
* Kernel-shipped kinds:
|
|
119
|
+
* - `kb-page` — knowledge-base-api page. `sourceRef` carries
|
|
120
|
+
* `{ pageId, versionId }` (versionId pins the base content).
|
|
121
|
+
*/
|
|
122
|
+
export type WorkingFileSourceKind = string;
|
|
123
|
+
|
|
124
|
+
/**
|
|
125
|
+
* Resolved working-file declaration projected onto the WorkspaceSpec and
|
|
126
|
+
* carried into the session bundle. Composition authors declare the
|
|
127
|
+
* authored shape (with `${input.x}` templating); resolution produces this
|
|
128
|
+
* concrete form with the bind inputs interpolated.
|
|
129
|
+
*
|
|
130
|
+
* INVARIANTS the worker engine relies on:
|
|
131
|
+
* - `path` is `/workspace/`-relative (no leading `/`, no `..` segments).
|
|
132
|
+
* The DSL schema enforces this at compile time.
|
|
133
|
+
* - `slug` is the human-stable identifier the agent sees; it MUST
|
|
134
|
+
* match the file's basename (sans extension) so the agent's mental
|
|
135
|
+
* model of `<slug>` and the on-disk file path stay aligned.
|
|
136
|
+
* - `sourceKind` is a non-empty snake_case string registered with the
|
|
137
|
+
* worker's working-file engine. Unknown kinds fail-fast at bundle
|
|
138
|
+
* apply — silent skip would let the agent boot without its file.
|
|
139
|
+
* - `sourceRef` is the kind-specific reference bag. Adapters re-
|
|
140
|
+
* validate their own required keys; the kernel only enforces that
|
|
141
|
+
* the bag is a string→string map.
|
|
142
|
+
*/
|
|
143
|
+
export interface WorkingFileBinding {
|
|
144
|
+
/** Human-stable identifier the agent sees (matches file basename). */
|
|
145
|
+
readonly slug: string;
|
|
146
|
+
/**
|
|
147
|
+
* Workspace-relative path the file is materialised at. Combined with
|
|
148
|
+
* `/workspace/` to form the on-disk absolute path inside the worker
|
|
149
|
+
* container.
|
|
150
|
+
*/
|
|
151
|
+
readonly path: string;
|
|
152
|
+
readonly format: WorkingFileFormat;
|
|
153
|
+
readonly syncDirection: WorkingFileSyncDirection;
|
|
154
|
+
readonly sourceKind: WorkingFileSourceKind;
|
|
155
|
+
/**
|
|
156
|
+
* Kind-specific reference bag. The worker's adapter for `sourceKind`
|
|
157
|
+
* reads the required keys (e.g. `pageId`, `versionId` for `kb-page`).
|
|
158
|
+
* Values are stringified at the composition layer so the wire shape is
|
|
159
|
+
* uniform — adapters parse / coerce as needed.
|
|
160
|
+
*/
|
|
161
|
+
readonly sourceRef: Readonly<Record<string, string>>;
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
/**
|
|
165
|
+
* Authored shape — same as the resolved binding but path / sourceRef
|
|
166
|
+
* values may carry `${input.x}` interpolation tokens. The composition
|
|
167
|
+
* resolution pass (in `agent-session-runtime` / `workflow-runtime-worker`)
|
|
168
|
+
* produces the resolved form by walking the strings with `interpolate`.
|
|
169
|
+
*
|
|
170
|
+
* Re-uses the resolved interface because the difference is purely
|
|
171
|
+
* lexical: the field set + types are identical.
|
|
172
|
+
*/
|
|
173
|
+
export type WorkingFileBindingInput = WorkingFileBinding;
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
// ═══════════════════════════════════════════════════════════════════════════
|
|
2
|
+
// ── Unified Xema workspace layout ──
|
|
3
|
+
//
|
|
4
|
+
// Every agent session runs inside a `/workspace/` tree with a fixed set of
|
|
5
|
+
// top-level mounts. Enforced at mount time by `workspace-proxy` and
|
|
6
|
+
// surfaced to the agent through `/workspace/AGENTS.md` +
|
|
7
|
+
// `/workspace/context.json`. These types are the TypeScript mirror of the
|
|
8
|
+
// runtime contract documented at
|
|
9
|
+
// `opencode-worker-config/runtime/AGENTS.md` §Workspace layout — the
|
|
10
|
+
// prose and the enum must stay in sync. Any new top-level mount goes in
|
|
11
|
+
// BOTH places in the same PR.
|
|
12
|
+
// ═══════════════════════════════════════════════════════════════════════════
|
|
13
|
+
|
|
14
|
+
import type { MountSource } from '../../workflow';
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* Top-level workspace mounts. Closed set — workspace-proxy rejects any
|
|
18
|
+
* mount request that isn't one of these keys. The values are the
|
|
19
|
+
* absolute paths inside the agent's container.
|
|
20
|
+
*/
|
|
21
|
+
export enum WorkspaceMount {
|
|
22
|
+
AgentsMd = '/workspace/AGENTS.md',
|
|
23
|
+
ContextJson = '/workspace/context.json',
|
|
24
|
+
SystemOverlay = '/workspace/.xema/system-overlay.md',
|
|
25
|
+
Inputs = '/workspace/inputs',
|
|
26
|
+
Tmp = '/workspace/tmp',
|
|
27
|
+
Deliverables = '/workspace/deliverables',
|
|
28
|
+
DeliverableSpecs = '/workspace/deliverable-specs',
|
|
29
|
+
References = '/workspace/references',
|
|
30
|
+
Repos = '/workspace/repos',
|
|
31
|
+
Uploads = '/workspace/uploads',
|
|
32
|
+
AgentBundles = '/workspace/.opencode/agents',
|
|
33
|
+
SkillBundles = '/workspace/.opencode/skills',
|
|
34
|
+
Commands = '/workspace/.opencode/command',
|
|
35
|
+
Instructions = '/workspace/.xema/instructions',
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
// `WorkspaceRole` is the role the running session takes. The canonical
|
|
39
|
+
// values + helpers live in `@xemahq/workflow-contracts:agent-role` —
|
|
40
|
+
// re-exported here as `WorkspaceRole` for back-compat with consumers
|
|
41
|
+
// that imported from this module. New code should import `AgentRunRole`
|
|
42
|
+
// directly from `@xemahq/workflow-contracts`.
|
|
43
|
+
export {
|
|
44
|
+
AGENT_RUN_ROLES as WORKSPACE_ROLES,
|
|
45
|
+
AGENT_RUN_ROLES_INTERACTIVE as WORKSPACE_ROLES_INTERACTIVE,
|
|
46
|
+
AGENT_RUN_ROLES_PIPELINE as WORKSPACE_ROLES_PIPELINE,
|
|
47
|
+
isAgentRunRole as isWorkspaceRole,
|
|
48
|
+
type AgentRunRole as WorkspaceRole,
|
|
49
|
+
} from '../../workflow';
|
|
50
|
+
|
|
51
|
+
/**
|
|
52
|
+
* Mount mode the worker requests. Read-only mounts are `chmod a-w` at
|
|
53
|
+
* attach-time so the kernel enforces immutability; writable mounts
|
|
54
|
+
* accept agent writes (off-manifest writes are simply ignored by the
|
|
55
|
+
* deliverable harvester).
|
|
56
|
+
*/
|
|
57
|
+
export enum WorkspaceMountMode {
|
|
58
|
+
ReadOnly = 'read-only',
|
|
59
|
+
ReadWrite = 'read-write',
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
/**
|
|
63
|
+
* Single mount-plan entry. The worker emits one of these per logical
|
|
64
|
+
* mount declared in the workflow YAML; `workspace-proxy` resolves
|
|
65
|
+
* `source` against the registered `MountResolver` and writes bytes onto
|
|
66
|
+
* disk under `${slot}/${relPath}` with the requested mode.
|
|
67
|
+
*
|
|
68
|
+
* `source` is a typed discriminator (see `MountSource` in
|
|
69
|
+
* `@xemahq/workflow-contracts`) — never an opaque URI string.
|
|
70
|
+
* Unknown discriminator values fail-fast at the proxy.
|
|
71
|
+
*/
|
|
72
|
+
export interface WorkspaceMountPlanEntry {
|
|
73
|
+
/**
|
|
74
|
+
* Opaque key the worker assigned to this mount, used for diagnostics
|
|
75
|
+
* + idempotency-aware deduplication of identical entries within an
|
|
76
|
+
* apply. e.g. `references.kb`, `repos.<repoName>`, `inputs`.
|
|
77
|
+
*/
|
|
78
|
+
readonly mountKey: string;
|
|
79
|
+
/** Top-level workspace slot. Closed enum. */
|
|
80
|
+
readonly slot: WorkspaceMount;
|
|
81
|
+
/**
|
|
82
|
+
* Relative path within the slot (no leading `/`, no `..`). Empty
|
|
83
|
+
* string means "the slot root". Validated against the slot's allowed
|
|
84
|
+
* sub-slots from `WorkspaceSpec` at the proxy.
|
|
85
|
+
*/
|
|
86
|
+
readonly relPath: string;
|
|
87
|
+
readonly mode: WorkspaceMountMode;
|
|
88
|
+
readonly source: MountSource;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
/**
|
|
92
|
+
* The full mount plan delivered to workspace-proxy ahead of the session
|
|
93
|
+
* start. `workspace-proxy` materializes the tree atomically per slot;
|
|
94
|
+
* partial failures roll back staging so the agent never sees a
|
|
95
|
+
* half-mounted workspace.
|
|
96
|
+
*/
|
|
97
|
+
export interface WorkspaceMountPlan {
|
|
98
|
+
/**
|
|
99
|
+
* Stable identifier for this apply attempt. Used by `workspace-proxy`
|
|
100
|
+
* to scope the staging directory + lease key. Must be unique per
|
|
101
|
+
* `(orgId, projectId, runId, stepId, logicalAttempt)` tuple — typically
|
|
102
|
+
* a sha256 of those.
|
|
103
|
+
*/
|
|
104
|
+
readonly applyId: string;
|
|
105
|
+
readonly entries: readonly WorkspaceMountPlanEntry[];
|
|
106
|
+
}
|