@stigmer/server 3.15.3-dev.20260914121148 → 3.16.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -3
- package/dist/archive/content-store.d.ts +35 -0
- package/dist/archive/content-store.d.ts.map +1 -0
- package/dist/archive/content-store.js +98 -0
- package/dist/archive/content-store.js.map +1 -0
- package/dist/archive/inflate.d.ts +22 -0
- package/dist/archive/inflate.d.ts.map +1 -0
- package/dist/archive/inflate.js +75 -0
- package/dist/archive/inflate.js.map +1 -0
- package/dist/archive/limits.d.ts +33 -0
- package/dist/archive/limits.d.ts.map +1 -0
- package/dist/archive/limits.js +31 -0
- package/dist/archive/limits.js.map +1 -0
- package/dist/archive/open.d.ts +24 -0
- package/dist/archive/open.d.ts.map +1 -0
- package/dist/archive/open.js +93 -0
- package/dist/archive/open.js.map +1 -0
- package/dist/{domain/skill/storage → archive}/prefilter.d.ts +5 -0
- package/dist/archive/prefilter.d.ts.map +1 -0
- package/dist/archive/prefilter.js.map +1 -0
- package/dist/archive/write.d.ts +8 -0
- package/dist/archive/write.d.ts.map +1 -0
- package/dist/archive/write.js +44 -0
- package/dist/archive/write.js.map +1 -0
- package/dist/authorization/authorizer.d.ts +98 -0
- package/dist/authorization/authorizer.d.ts.map +1 -0
- package/dist/authorization/authorizer.js +156 -0
- package/dist/authorization/authorizer.js.map +1 -0
- package/dist/authorization/derived-tuples.d.ts +42 -0
- package/dist/authorization/derived-tuples.d.ts.map +1 -0
- package/dist/authorization/derived-tuples.js +240 -0
- package/dist/authorization/derived-tuples.js.map +1 -0
- package/dist/authorization/evaluator.d.ts +66 -0
- package/dist/authorization/evaluator.d.ts.map +1 -0
- package/dist/authorization/evaluator.js +153 -0
- package/dist/authorization/evaluator.js.map +1 -0
- package/dist/authorization/facts.d.ts +29 -0
- package/dist/authorization/facts.d.ts.map +1 -0
- package/dist/authorization/facts.js +17 -0
- package/dist/authorization/facts.js.map +1 -0
- package/dist/authorization/lane-admission.d.ts +50 -0
- package/dist/authorization/lane-admission.d.ts.map +1 -0
- package/dist/authorization/lane-admission.js +13 -0
- package/dist/authorization/lane-admission.js.map +1 -0
- package/dist/authorization/list-read-scope.d.ts +18 -0
- package/dist/authorization/list-read-scope.d.ts.map +1 -0
- package/dist/authorization/list-read-scope.js +155 -0
- package/dist/authorization/list-read-scope.js.map +1 -0
- package/dist/authorization/model/agent.d.ts +2 -0
- package/dist/authorization/model/agent.d.ts.map +1 -0
- package/dist/authorization/model/agent.js +42 -0
- package/dist/authorization/model/agent.js.map +1 -0
- package/dist/authorization/model/agent_channel.d.ts +2 -0
- package/dist/authorization/model/agent_channel.d.ts.map +1 -0
- package/dist/authorization/model/agent_channel.js +38 -0
- package/dist/authorization/model/agent_channel.js.map +1 -0
- package/dist/authorization/model/agent_execution.d.ts +2 -0
- package/dist/authorization/model/agent_execution.d.ts.map +1 -0
- package/dist/authorization/model/agent_execution.js +25 -0
- package/dist/authorization/model/agent_execution.js.map +1 -0
- package/dist/authorization/model/agent_instance.d.ts +2 -0
- package/dist/authorization/model/agent_instance.d.ts.map +1 -0
- package/dist/authorization/model/agent_instance.js +47 -0
- package/dist/authorization/model/agent_instance.js.map +1 -0
- package/dist/authorization/model/agent_share.d.ts +2 -0
- package/dist/authorization/model/agent_share.d.ts.map +1 -0
- package/dist/authorization/model/agent_share.js +29 -0
- package/dist/authorization/model/agent_share.js.map +1 -0
- package/dist/authorization/model/api_key.d.ts +2 -0
- package/dist/authorization/model/api_key.d.ts.map +1 -0
- package/dist/authorization/model/api_key.js +27 -0
- package/dist/authorization/model/api_key.js.map +1 -0
- package/dist/authorization/model/artifact.d.ts +2 -0
- package/dist/authorization/model/artifact.d.ts.map +1 -0
- package/dist/authorization/model/artifact.js +27 -0
- package/dist/authorization/model/artifact.js.map +1 -0
- package/dist/authorization/model/channel_app.d.ts +2 -0
- package/dist/authorization/model/channel_app.d.ts.map +1 -0
- package/dist/authorization/model/channel_app.js +28 -0
- package/dist/authorization/model/channel_app.js.map +1 -0
- package/dist/authorization/model/default-of.d.ts +38 -0
- package/dist/authorization/model/default-of.d.ts.map +1 -0
- package/dist/authorization/model/default-of.js +39 -0
- package/dist/authorization/model/default-of.js.map +1 -0
- package/dist/authorization/model/environment.d.ts +2 -0
- package/dist/authorization/model/environment.d.ts.map +1 -0
- package/dist/authorization/model/environment.js +33 -0
- package/dist/authorization/model/environment.js.map +1 -0
- package/dist/authorization/model/execution_context.d.ts +2 -0
- package/dist/authorization/model/execution_context.d.ts.map +1 -0
- package/dist/authorization/model/execution_context.js +19 -0
- package/dist/authorization/model/execution_context.js.map +1 -0
- package/dist/authorization/model/iam_policy.d.ts +2 -0
- package/dist/authorization/model/iam_policy.d.ts.map +1 -0
- package/dist/authorization/model/iam_policy.js +31 -0
- package/dist/authorization/model/iam_policy.js.map +1 -0
- package/dist/authorization/model/identity_account.d.ts +2 -0
- package/dist/authorization/model/identity_account.d.ts.map +1 -0
- package/dist/authorization/model/identity_account.js +25 -0
- package/dist/authorization/model/identity_account.js.map +1 -0
- package/dist/authorization/model/index.d.ts +36 -0
- package/dist/authorization/model/index.d.ts.map +1 -0
- package/dist/authorization/model/index.js +72 -0
- package/dist/authorization/model/index.js.map +1 -0
- package/dist/authorization/model/mcp_server.d.ts +2 -0
- package/dist/authorization/model/mcp_server.d.ts.map +1 -0
- package/dist/authorization/model/mcp_server.js +37 -0
- package/dist/authorization/model/mcp_server.js.map +1 -0
- package/dist/authorization/model/memory.d.ts +2 -0
- package/dist/authorization/model/memory.d.ts.map +1 -0
- package/dist/authorization/model/memory.js +26 -0
- package/dist/authorization/model/memory.js.map +1 -0
- package/dist/authorization/model/oauth_app.d.ts +2 -0
- package/dist/authorization/model/oauth_app.d.ts.map +1 -0
- package/dist/authorization/model/oauth_app.js +30 -0
- package/dist/authorization/model/oauth_app.js.map +1 -0
- package/dist/authorization/model/organization.d.ts +2 -0
- package/dist/authorization/model/organization.d.ts.map +1 -0
- package/dist/authorization/model/organization.js +54 -0
- package/dist/authorization/model/organization.js.map +1 -0
- package/dist/authorization/model/plugin.d.ts +2 -0
- package/dist/authorization/model/plugin.d.ts.map +1 -0
- package/dist/authorization/model/plugin.js +44 -0
- package/dist/authorization/model/plugin.js.map +1 -0
- package/dist/authorization/model/project.d.ts +2 -0
- package/dist/authorization/model/project.d.ts.map +1 -0
- package/dist/authorization/model/project.js +32 -0
- package/dist/authorization/model/project.js.map +1 -0
- package/dist/authorization/model/rewrite.d.ts +127 -0
- package/dist/authorization/model/rewrite.d.ts.map +1 -0
- package/dist/authorization/model/rewrite.js +82 -0
- package/dist/authorization/model/rewrite.js.map +1 -0
- package/dist/authorization/model/schedule.d.ts +2 -0
- package/dist/authorization/model/schedule.d.ts.map +1 -0
- package/dist/authorization/model/schedule.js +29 -0
- package/dist/authorization/model/schedule.js.map +1 -0
- package/dist/authorization/model/session.d.ts +2 -0
- package/dist/authorization/model/session.d.ts.map +1 -0
- package/dist/authorization/model/session.js +38 -0
- package/dist/authorization/model/session.js.map +1 -0
- package/dist/authorization/model/skill.d.ts +2 -0
- package/dist/authorization/model/skill.d.ts.map +1 -0
- package/dist/authorization/model/skill.js +38 -0
- package/dist/authorization/model/skill.js.map +1 -0
- package/dist/authorization/model/workflow.d.ts +2 -0
- package/dist/authorization/model/workflow.d.ts.map +1 -0
- package/dist/authorization/model/workflow.js +38 -0
- package/dist/authorization/model/workflow.js.map +1 -0
- package/dist/authorization/model/workflow_execution.d.ts +2 -0
- package/dist/authorization/model/workflow_execution.d.ts.map +1 -0
- package/dist/authorization/model/workflow_execution.js +32 -0
- package/dist/authorization/model/workflow_execution.js.map +1 -0
- package/dist/authorization/model/workflow_instance.d.ts +2 -0
- package/dist/authorization/model/workflow_instance.d.ts.map +1 -0
- package/dist/authorization/model/workflow_instance.js +92 -0
- package/dist/authorization/model/workflow_instance.js.map +1 -0
- package/dist/authorization/organization-directory.d.ts +13 -0
- package/dist/authorization/organization-directory.d.ts.map +1 -0
- package/dist/authorization/organization-directory.js +83 -0
- package/dist/authorization/organization-directory.js.map +1 -0
- package/dist/authorization/person.d.ts +42 -0
- package/dist/authorization/person.d.ts.map +1 -0
- package/dist/authorization/person.js +19 -0
- package/dist/authorization/person.js.map +1 -0
- package/dist/authorization/posture.d.ts +38 -0
- package/dist/authorization/posture.d.ts.map +1 -0
- package/dist/authorization/posture.js +7 -0
- package/dist/authorization/posture.js.map +1 -0
- package/dist/authorization/schedule-fire-caller.d.ts +12 -0
- package/dist/authorization/schedule-fire-caller.d.ts.map +1 -0
- package/dist/authorization/schedule-fire-caller.js +67 -0
- package/dist/authorization/schedule-fire-caller.js.map +1 -0
- package/dist/authorization/store-test-kit.d.ts +68 -0
- package/dist/authorization/store-test-kit.d.ts.map +1 -0
- package/dist/authorization/store-test-kit.js +311 -0
- package/dist/authorization/store-test-kit.js.map +1 -0
- package/dist/authorization/tuples.d.ts +115 -0
- package/dist/authorization/tuples.d.ts.map +1 -0
- package/dist/authorization/tuples.js +83 -0
- package/dist/authorization/tuples.js.map +1 -0
- package/dist/boot/compose.d.ts.map +1 -1
- package/dist/boot/compose.js +220 -43
- package/dist/boot/compose.js.map +1 -1
- package/dist/boot/inprocess.d.ts +12 -0
- package/dist/boot/inprocess.d.ts.map +1 -1
- package/dist/boot/inprocess.js +68 -21
- package/dist/boot/inprocess.js.map +1 -1
- package/dist/domain/agent/controller.d.ts.map +1 -1
- package/dist/domain/agent/controller.js +9 -0
- package/dist/domain/agent/controller.js.map +1 -1
- package/dist/domain/executioncontext/resolve-values-for-caller.d.ts +33 -14
- package/dist/domain/executioncontext/resolve-values-for-caller.d.ts.map +1 -1
- package/dist/domain/executioncontext/resolve-values-for-caller.js +32 -8
- package/dist/domain/executioncontext/resolve-values-for-caller.js.map +1 -1
- package/dist/domain/iampolicy/constants.d.ts +11 -0
- package/dist/domain/iampolicy/constants.d.ts.map +1 -1
- package/dist/domain/iampolicy/constants.js +11 -0
- package/dist/domain/iampolicy/constants.js.map +1 -1
- package/dist/domain/iampolicy/membership.d.ts +72 -1
- package/dist/domain/iampolicy/membership.d.ts.map +1 -1
- package/dist/domain/iampolicy/membership.js +141 -56
- package/dist/domain/iampolicy/membership.js.map +1 -1
- package/dist/domain/identityaccount/actor.d.ts +41 -0
- package/dist/domain/identityaccount/actor.d.ts.map +1 -0
- package/dist/domain/identityaccount/actor.js +34 -0
- package/dist/domain/identityaccount/actor.js.map +1 -0
- package/dist/domain/identityaccount/resolve.d.ts +19 -0
- package/dist/domain/identityaccount/resolve.d.ts.map +1 -1
- package/dist/domain/identityaccount/resolve.js +12 -0
- package/dist/domain/identityaccount/resolve.js.map +1 -1
- package/dist/domain/mcpserver/connect-execution-id.d.ts +5 -0
- package/dist/domain/mcpserver/connect-execution-id.d.ts.map +1 -0
- package/dist/domain/mcpserver/connect-execution-id.js +32 -0
- package/dist/domain/mcpserver/connect-execution-id.js.map +1 -0
- package/dist/domain/mcpserver/connect.d.ts +28 -2
- package/dist/domain/mcpserver/connect.d.ts.map +1 -1
- package/dist/domain/mcpserver/connect.js +27 -7
- package/dist/domain/mcpserver/connect.js.map +1 -1
- package/dist/domain/mcpserver/controller.d.ts.map +1 -1
- package/dist/domain/mcpserver/controller.js +9 -0
- package/dist/domain/mcpserver/controller.js.map +1 -1
- package/dist/domain/mcpserver/engine.d.ts +9 -3
- package/dist/domain/mcpserver/engine.d.ts.map +1 -1
- package/dist/domain/mcpserver/engine.js.map +1 -1
- package/dist/domain/mcpserver/start-connect.js +1 -1
- package/dist/domain/mcpserver/start-connect.js.map +1 -1
- package/dist/domain/platform/controller.d.ts +24 -11
- package/dist/domain/platform/controller.d.ts.map +1 -1
- package/dist/domain/platform/controller.js.map +1 -1
- package/dist/domain/plugin/archive.d.ts +37 -0
- package/dist/domain/plugin/archive.d.ts.map +1 -0
- package/dist/domain/plugin/archive.js +50 -0
- package/dist/domain/plugin/archive.js.map +1 -0
- package/dist/domain/plugin/constants.d.ts +38 -0
- package/dist/domain/plugin/constants.d.ts.map +1 -0
- package/dist/domain/plugin/constants.js +46 -0
- package/dist/domain/plugin/constants.js.map +1 -0
- package/dist/domain/plugin/controller.d.ts +25 -0
- package/dist/domain/plugin/controller.d.ts.map +1 -0
- package/dist/domain/plugin/controller.js +493 -0
- package/dist/domain/plugin/controller.js.map +1 -0
- package/dist/domain/plugin/materialize/agent.d.ts +13 -0
- package/dist/domain/plugin/materialize/agent.d.ts.map +1 -0
- package/dist/domain/plugin/materialize/agent.js +128 -0
- package/dist/domain/plugin/materialize/agent.js.map +1 -0
- package/dist/domain/plugin/materialize/default-agent-instructions.d.ts +22 -0
- package/dist/domain/plugin/materialize/default-agent-instructions.d.ts.map +1 -0
- package/dist/domain/plugin/materialize/default-agent-instructions.js +31 -0
- package/dist/domain/plugin/materialize/default-agent-instructions.js.map +1 -0
- package/dist/domain/plugin/materialize/identity.d.ts +28 -0
- package/dist/domain/plugin/materialize/identity.d.ts.map +1 -0
- package/dist/domain/plugin/materialize/identity.js +40 -0
- package/dist/domain/plugin/materialize/identity.js.map +1 -0
- package/dist/domain/plugin/materialize/mcp-servers.d.ts +15 -0
- package/dist/domain/plugin/materialize/mcp-servers.d.ts.map +1 -0
- package/dist/domain/plugin/materialize/mcp-servers.js +131 -0
- package/dist/domain/plugin/materialize/mcp-servers.js.map +1 -0
- package/dist/domain/plugin/materialize/plan.d.ts +24 -0
- package/dist/domain/plugin/materialize/plan.d.ts.map +1 -0
- package/dist/domain/plugin/materialize/plan.js +77 -0
- package/dist/domain/plugin/materialize/plan.js.map +1 -0
- package/dist/domain/plugin/materialize/ports.d.ts +42 -0
- package/dist/domain/plugin/materialize/ports.d.ts.map +1 -0
- package/dist/domain/plugin/materialize/ports.js +2 -0
- package/dist/domain/plugin/materialize/ports.js.map +1 -0
- package/dist/domain/plugin/materialize/skills.d.ts +12 -0
- package/dist/domain/plugin/materialize/skills.d.ts.map +1 -0
- package/dist/domain/plugin/materialize/skills.js +44 -0
- package/dist/domain/plugin/materialize/skills.js.map +1 -0
- package/dist/domain/plugin/materialize/workflows.d.ts +15 -0
- package/dist/domain/plugin/materialize/workflows.d.ts.map +1 -0
- package/dist/domain/plugin/materialize/workflows.js +31 -0
- package/dist/domain/plugin/materialize/workflows.js.map +1 -0
- package/dist/domain/plugin/members.d.ts +42 -0
- package/dist/domain/plugin/members.d.ts.map +1 -0
- package/dist/domain/plugin/members.js +97 -0
- package/dist/domain/plugin/members.js.map +1 -0
- package/dist/domain/plugin/overlay/documents.d.ts +31 -0
- package/dist/domain/plugin/overlay/documents.d.ts.map +1 -0
- package/dist/domain/plugin/overlay/documents.js +38 -0
- package/dist/domain/plugin/overlay/documents.js.map +1 -0
- package/dist/domain/plugin/overlay/parse.d.ts +16 -0
- package/dist/domain/plugin/overlay/parse.d.ts.map +1 -0
- package/dist/domain/plugin/overlay/parse.js +79 -0
- package/dist/domain/plugin/overlay/parse.js.map +1 -0
- package/dist/domain/plugin/overlay/sanitize.d.ts +10 -0
- package/dist/domain/plugin/overlay/sanitize.d.ts.map +1 -0
- package/dist/domain/plugin/overlay/sanitize.js +103 -0
- package/dist/domain/plugin/overlay/sanitize.js.map +1 -0
- package/dist/domain/plugin/push.d.ts +133 -0
- package/dist/domain/plugin/push.d.ts.map +1 -0
- package/dist/domain/plugin/push.js +800 -0
- package/dist/domain/plugin/push.js.map +1 -0
- package/dist/domain/plugin/search-extractor.d.ts +3 -0
- package/dist/domain/plugin/search-extractor.d.ts.map +1 -0
- package/dist/domain/plugin/search-extractor.js +41 -0
- package/dist/domain/plugin/search-extractor.js.map +1 -0
- package/dist/domain/skill/constants.d.ts +6 -11
- package/dist/domain/skill/constants.d.ts.map +1 -1
- package/dist/domain/skill/constants.js +6 -11
- package/dist/domain/skill/constants.js.map +1 -1
- package/dist/domain/skill/controller.d.ts.map +1 -1
- package/dist/domain/skill/controller.js +33 -30
- package/dist/domain/skill/controller.js.map +1 -1
- package/dist/domain/skill/push.d.ts +9 -10
- package/dist/domain/skill/push.d.ts.map +1 -1
- package/dist/domain/skill/push.js +53 -122
- package/dist/domain/skill/push.js.map +1 -1
- package/dist/domain/skill/search-extractor.d.ts.map +1 -1
- package/dist/domain/skill/search-extractor.js.map +1 -1
- package/dist/domain/skill/storage/artifact-storage.d.ts +26 -29
- package/dist/domain/skill/storage/artifact-storage.d.ts.map +1 -1
- package/dist/domain/skill/storage/artifact-storage.js +6 -103
- package/dist/domain/skill/storage/artifact-storage.js.map +1 -1
- package/dist/domain/skill/storage/zip-gate.d.ts +1 -2
- package/dist/domain/skill/storage/zip-gate.d.ts.map +1 -1
- package/dist/domain/skill/storage/zip-gate.js +56 -126
- package/dist/domain/skill/storage/zip-gate.js.map +1 -1
- package/dist/domain/skill/version-resolution.d.ts +5 -5
- package/dist/domain/skill/version-resolution.d.ts.map +1 -1
- package/dist/domain/skill/version-resolution.js +34 -216
- package/dist/domain/skill/version-resolution.js.map +1 -1
- package/dist/domain/workflow/controller.d.ts.map +1 -1
- package/dist/domain/workflow/controller.js +30 -3
- package/dist/domain/workflow/controller.js.map +1 -1
- package/dist/domain/workflow/registry/data/task-kind-registry.json +1 -0
- package/dist/domain/workflowexecution/phases.d.ts +21 -0
- package/dist/domain/workflowexecution/phases.d.ts.map +1 -0
- package/dist/domain/workflowexecution/phases.js +31 -0
- package/dist/domain/workflowexecution/phases.js.map +1 -0
- package/dist/extensions/authorizer.d.ts +10 -5
- package/dist/extensions/authorizer.d.ts.map +1 -1
- package/dist/extensions/drivers.d.ts +4 -1
- package/dist/extensions/drivers.d.ts.map +1 -1
- package/dist/extensions/list-read-scope.d.ts +47 -20
- package/dist/extensions/list-read-scope.d.ts.map +1 -1
- package/dist/extensions/list-read-scope.js +20 -24
- package/dist/extensions/list-read-scope.js.map +1 -1
- package/dist/extensions/organization-directory.d.ts +13 -9
- package/dist/extensions/organization-directory.d.ts.map +1 -1
- package/dist/extensions/organization-directory.js.map +1 -1
- package/dist/extensions/resource-authorization.d.ts +33 -0
- package/dist/extensions/resource-authorization.d.ts.map +1 -1
- package/dist/extensions/schedule-fire-caller.d.ts +45 -18
- package/dist/extensions/schedule-fire-caller.d.ts.map +1 -1
- package/dist/extensions/schedule-fire-caller.js +12 -1
- package/dist/extensions/schedule-fire-caller.js.map +1 -1
- package/dist/identity/oidc-verifier.js +8 -1
- package/dist/identity/oidc-verifier.js.map +1 -1
- package/dist/index.d.ts +10 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +8 -0
- package/dist/index.js.map +1 -1
- package/dist/pipeline/apiresource-labels.d.ts +23 -3
- package/dist/pipeline/apiresource-labels.d.ts.map +1 -1
- package/dist/pipeline/apiresource-labels.js +20 -0
- package/dist/pipeline/apiresource-labels.js.map +1 -1
- package/dist/pipeline/apiresource-meta.d.ts +15 -0
- package/dist/pipeline/apiresource-meta.d.ts.map +1 -1
- package/dist/pipeline/apiresource-meta.js +34 -0
- package/dist/pipeline/apiresource-meta.js.map +1 -1
- package/dist/pipeline/errors.d.ts.map +1 -1
- package/dist/pipeline/errors.js.map +1 -1
- package/dist/pipeline/steps/authorization-facts.d.ts +12 -0
- package/dist/pipeline/steps/authorization-facts.d.ts.map +1 -0
- package/dist/pipeline/steps/authorization-facts.js +100 -0
- package/dist/pipeline/steps/authorization-facts.js.map +1 -0
- package/dist/pipeline/steps/delete.d.ts.map +1 -1
- package/dist/pipeline/steps/delete.js +1 -1
- package/dist/pipeline/steps/delete.js.map +1 -1
- package/dist/pipeline/steps/duplicate.d.ts.map +1 -1
- package/dist/pipeline/steps/duplicate.js.map +1 -1
- package/dist/pipeline/steps/guard-memory-capture.d.ts.map +1 -1
- package/dist/pipeline/steps/guard-memory-capture.js +5 -3
- package/dist/pipeline/steps/guard-memory-capture.js.map +1 -1
- package/dist/pipeline/steps/guard-plugin-managed.d.ts +12 -0
- package/dist/pipeline/steps/guard-plugin-managed.d.ts.map +1 -0
- package/dist/pipeline/steps/guard-plugin-managed.js +96 -0
- package/dist/pipeline/steps/guard-plugin-managed.js.map +1 -0
- package/dist/pipeline/steps/guard-reserved-labels.d.ts +16 -2
- package/dist/pipeline/steps/guard-reserved-labels.d.ts.map +1 -1
- package/dist/pipeline/steps/guard-reserved-labels.js +11 -7
- package/dist/pipeline/steps/guard-reserved-labels.js.map +1 -1
- package/dist/pipeline/steps/helpers.d.ts.map +1 -1
- package/dist/pipeline/steps/helpers.js.map +1 -1
- package/dist/pipeline/steps/index-search.d.ts.map +1 -1
- package/dist/pipeline/steps/index-search.js.map +1 -1
- package/dist/pipeline/steps/load-existing.d.ts.map +1 -1
- package/dist/pipeline/steps/load-existing.js +1 -1
- package/dist/pipeline/steps/load-existing.js.map +1 -1
- package/dist/pipeline/steps/references.d.ts +16 -0
- package/dist/pipeline/steps/references.d.ts.map +1 -1
- package/dist/pipeline/steps/references.js +18 -0
- package/dist/pipeline/steps/references.js.map +1 -1
- package/dist/pipeline/steps/resolve-artifact-source.d.ts +35 -0
- package/dist/pipeline/steps/resolve-artifact-source.d.ts.map +1 -0
- package/dist/pipeline/steps/resolve-artifact-source.js +27 -0
- package/dist/pipeline/steps/resolve-artifact-source.js.map +1 -0
- package/dist/pipeline/steps/server-stamped-reserved-labels.d.ts.map +1 -1
- package/dist/pipeline/steps/server-stamped-reserved-labels.js.map +1 -1
- package/dist/pipeline/steps/slug.d.ts.map +1 -1
- package/dist/pipeline/steps/slug.js.map +1 -1
- package/dist/pipeline/steps/validate-visibility.d.ts +9 -0
- package/dist/pipeline/steps/validate-visibility.d.ts.map +1 -1
- package/dist/pipeline/steps/validate-visibility.js +6 -1
- package/dist/pipeline/steps/validate-visibility.js.map +1 -1
- package/dist/pipeline/steps/validation.d.ts.map +1 -1
- package/dist/pipeline/steps/validation.js.map +1 -1
- package/dist/pipeline/steps/version-archive.d.ts +63 -0
- package/dist/pipeline/steps/version-archive.d.ts.map +1 -0
- package/dist/pipeline/steps/version-archive.js +129 -0
- package/dist/pipeline/steps/version-archive.js.map +1 -0
- package/dist/pipeline/steps/version-history.d.ts +49 -0
- package/dist/pipeline/steps/version-history.d.ts.map +1 -0
- package/dist/pipeline/steps/version-history.js +229 -0
- package/dist/pipeline/steps/version-history.js.map +1 -0
- package/dist/pipeline/steps/visibility-gates.d.ts +8 -0
- package/dist/pipeline/steps/visibility-gates.d.ts.map +1 -1
- package/dist/pipeline/steps/visibility-gates.js +7 -2
- package/dist/pipeline/steps/visibility-gates.js.map +1 -1
- package/dist/query/search/registry.d.ts.map +1 -1
- package/dist/query/search/registry.js +2 -0
- package/dist/query/search/registry.js.map +1 -1
- package/dist/runnerauth/bound-execution.d.ts +27 -0
- package/dist/runnerauth/bound-execution.d.ts.map +1 -0
- package/dist/runnerauth/bound-execution.js +137 -0
- package/dist/runnerauth/bound-execution.js.map +1 -0
- package/dist/runnerauth/built-in-runner-credential-provider.d.ts +28 -0
- package/dist/runnerauth/built-in-runner-credential-provider.d.ts.map +1 -0
- package/dist/runnerauth/built-in-runner-credential-provider.js +217 -0
- package/dist/runnerauth/built-in-runner-credential-provider.js.map +1 -0
- package/dist/runnerauth/constants.d.ts +63 -0
- package/dist/runnerauth/constants.d.ts.map +1 -0
- package/dist/runnerauth/constants.js +63 -0
- package/dist/runnerauth/constants.js.map +1 -0
- package/dist/runnerauth/dispatch-credential.d.ts +38 -0
- package/dist/runnerauth/dispatch-credential.d.ts.map +1 -0
- package/dist/runnerauth/dispatch-credential.js +17 -0
- package/dist/runnerauth/dispatch-credential.js.map +1 -0
- package/dist/runnerauth/runner-credential-provider.d.ts +49 -11
- package/dist/runnerauth/runner-credential-provider.d.ts.map +1 -1
- package/dist/runnerauth/runner-credential-provider.js +16 -4
- package/dist/runnerauth/runner-credential-provider.js.map +1 -1
- package/dist/runnerauth/runner-subject-verifier.d.ts +14 -0
- package/dist/runnerauth/runner-subject-verifier.d.ts.map +1 -0
- package/dist/runnerauth/runner-subject-verifier.js +115 -0
- package/dist/runnerauth/runner-subject-verifier.js.map +1 -0
- package/dist/runnerauth/runnerauth.d.ts +33 -4
- package/dist/runnerauth/runnerauth.d.ts.map +1 -1
- package/dist/runnerauth/runnerauth.js +131 -35
- package/dist/runnerauth/runnerauth.js.map +1 -1
- package/dist/temporal/agentexecution/engine-client.d.ts +13 -0
- package/dist/temporal/agentexecution/engine-client.d.ts.map +1 -1
- package/dist/temporal/agentexecution/engine-client.js +10 -2
- package/dist/temporal/agentexecution/engine-client.js.map +1 -1
- package/dist/temporal/agentexecution/workflow-input.d.ts +13 -0
- package/dist/temporal/agentexecution/workflow-input.d.ts.map +1 -1
- package/dist/temporal/agentexecution/workflows/invoke-agent-execution.d.ts.map +1 -1
- package/dist/temporal/agentexecution/workflows/invoke-agent-execution.js +35 -31
- package/dist/temporal/agentexecution/workflows/invoke-agent-execution.js.map +1 -1
- package/dist/temporal/schedule/run-starter.d.ts +1 -1
- package/dist/temporal/schedule/run-starter.d.ts.map +1 -1
- package/dist/temporal/schedule/run-starter.js +14 -1
- package/dist/temporal/schedule/run-starter.js.map +1 -1
- package/dist/temporal/workflowexecution/engine-client.d.ts +24 -0
- package/dist/temporal/workflowexecution/engine-client.d.ts.map +1 -1
- package/dist/temporal/workflowexecution/engine-client.js +26 -19
- package/dist/temporal/workflowexecution/engine-client.js.map +1 -1
- package/dist/temporal/workflowexecution/workflow-input.d.ts +14 -0
- package/dist/temporal/workflowexecution/workflow-input.d.ts.map +1 -1
- package/package.json +5 -4
- package/src/archive/__tests__/archive.test.ts +233 -0
- package/src/{domain/skill → archive}/__tests__/prefilter.test.ts +1 -1
- package/src/archive/content-store.ts +132 -0
- package/src/archive/inflate.ts +107 -0
- package/src/archive/limits.ts +42 -0
- package/src/archive/open.ts +131 -0
- package/src/{domain/skill/storage → archive}/prefilter.ts +5 -0
- package/src/archive/write.ts +54 -0
- package/src/authorization/README.md +124 -0
- package/src/authorization/__tests__/authorizer.test.ts +719 -0
- package/src/authorization/__tests__/derived-tuples.test.ts +802 -0
- package/src/authorization/__tests__/drivers.ts +70 -0
- package/src/authorization/__tests__/evaluator.test.ts +359 -0
- package/src/authorization/__tests__/facts.test.ts +155 -0
- package/src/authorization/__tests__/fixtures/fga/agent-channel-owner.fga.yaml +112 -0
- package/src/authorization/__tests__/fixtures/fga/agent-share-owner.fga.yaml +109 -0
- package/src/authorization/__tests__/fixtures/fga/artifact-org-and-owner.fga.yaml +128 -0
- package/src/authorization/__tests__/fixtures/fga/blueprint-private-visibility.fga.yaml +410 -0
- package/src/authorization/__tests__/fixtures/fga/channel-app-owner.fga.yaml +125 -0
- package/src/authorization/__tests__/fixtures/fga/channel-participation.fga.yaml +201 -0
- package/src/authorization/__tests__/fixtures/fga/channel-session-visibility.fga.yaml +187 -0
- package/src/authorization/__tests__/fixtures/fga/cross-org-share-creation.fga.yaml +98 -0
- package/src/authorization/__tests__/fixtures/fga/default-instance-inheritance.fga.yaml +271 -0
- package/src/authorization/__tests__/fixtures/fga/memory-subject-only.fga.yaml +72 -0
- package/src/authorization/__tests__/fixtures/fga/org-admin-owner-inheritance.fga.yaml +328 -0
- package/src/authorization/__tests__/fixtures/fga/org-shared-environment.fga.yaml +144 -0
- package/src/authorization/__tests__/fixtures/fga/platform-visibility.fga.yaml +223 -0
- package/src/authorization/__tests__/fixtures/fga/provider-standing-viewer.fga.yaml +40 -0
- package/src/authorization/__tests__/fixtures/fga/public-visibility-setter.fga.yaml +52 -0
- package/src/authorization/__tests__/fixtures/fga/reserved-label-writer.fga.yaml +41 -0
- package/src/authorization/__tests__/fixtures/fga/schedule-owner.fga.yaml +113 -0
- package/src/authorization/__tests__/fixtures/fga/schedule-session-visibility.fga.yaml +214 -0
- package/src/authorization/__tests__/fixtures/fga/session-personal-resource.fga.yaml +117 -0
- package/src/authorization/__tests__/fixtures/fga/workflow-execution-sharing.fga.yaml +192 -0
- package/src/authorization/__tests__/lane-admission.test.ts +115 -0
- package/src/authorization/__tests__/list-read-scope.measure.test.ts +317 -0
- package/src/authorization/__tests__/list-read-scope.test.ts +796 -0
- package/src/authorization/__tests__/organization-directory.test.ts +236 -0
- package/src/authorization/__tests__/person.test.ts +114 -0
- package/src/authorization/__tests__/posture.test.ts +25 -0
- package/src/authorization/__tests__/schedule-fire-caller.test.ts +134 -0
- package/src/authorization/__tests__/store-tests.test.ts +306 -0
- package/src/authorization/__tests__/support.ts +101 -0
- package/src/authorization/__tests__/tuples.test.ts +62 -0
- package/src/authorization/__tests__/wire-permissions.test.ts +154 -0
- package/src/authorization/authorizer.ts +208 -0
- package/src/authorization/derived-tuples.ts +384 -0
- package/src/authorization/evaluator.ts +283 -0
- package/src/authorization/facts.ts +47 -0
- package/src/authorization/lane-admission.ts +73 -0
- package/src/authorization/list-read-scope.ts +216 -0
- package/src/authorization/model/__tests__/registry.test.ts +317 -0
- package/src/authorization/model/agent.ts +64 -0
- package/src/authorization/model/agent_channel.ts +49 -0
- package/src/authorization/model/agent_execution.ts +33 -0
- package/src/authorization/model/agent_instance.ts +66 -0
- package/src/authorization/model/agent_share.ts +40 -0
- package/src/authorization/model/api_key.ts +28 -0
- package/src/authorization/model/artifact.ts +38 -0
- package/src/authorization/model/channel_app.ts +39 -0
- package/src/authorization/model/default-of.ts +99 -0
- package/src/authorization/model/environment.ts +48 -0
- package/src/authorization/model/execution_context.ts +20 -0
- package/src/authorization/model/iam_policy.ts +42 -0
- package/src/authorization/model/identity_account.ts +26 -0
- package/src/authorization/model/index.ts +108 -0
- package/src/authorization/model/mcp_server.ts +59 -0
- package/src/authorization/model/memory.ts +27 -0
- package/src/authorization/model/oauth_app.ts +42 -0
- package/src/authorization/model/organization.ts +55 -0
- package/src/authorization/model/plugin.ts +66 -0
- package/src/authorization/model/project.ts +47 -0
- package/src/authorization/model/rewrite.ts +213 -0
- package/src/authorization/model/schedule.ts +40 -0
- package/src/authorization/model/session.ts +50 -0
- package/src/authorization/model/skill.ts +60 -0
- package/src/authorization/model/workflow.ts +60 -0
- package/src/authorization/model/workflow_execution.ts +44 -0
- package/src/authorization/model/workflow_instance.ts +122 -0
- package/src/authorization/organization-directory.ts +114 -0
- package/src/authorization/person.ts +68 -0
- package/src/authorization/posture.ts +49 -0
- package/src/authorization/schedule-fire-caller.ts +87 -0
- package/src/authorization/store-test-kit.ts +454 -0
- package/src/authorization/tuples.ts +190 -0
- package/src/boot/compose.ts +246 -52
- package/src/boot/inprocess.ts +115 -31
- package/src/domain/agent/controller.ts +11 -0
- package/src/domain/executioncontext/__tests__/executioncontext.test.ts +104 -0
- package/src/domain/executioncontext/__tests__/resolve-values-capability.test.ts +33 -4
- package/src/domain/executioncontext/resolve-values-for-caller.ts +79 -22
- package/src/domain/iampolicy/__tests__/membership.test.ts +357 -3
- package/src/domain/iampolicy/constants.ts +12 -0
- package/src/domain/iampolicy/membership.ts +221 -66
- package/src/domain/identityaccount/__tests__/account-for-stamp.test.ts +111 -0
- package/src/domain/identityaccount/actor.ts +84 -0
- package/src/domain/identityaccount/resolve.ts +31 -0
- package/src/domain/mcpserver/__tests__/connect.test.ts +17 -2
- package/src/domain/mcpserver/connect-execution-id.ts +34 -0
- package/src/domain/mcpserver/connect.ts +38 -3
- package/src/domain/mcpserver/controller.ts +11 -0
- package/src/domain/mcpserver/engine.ts +9 -3
- package/src/domain/mcpserver/start-connect.ts +1 -1
- package/src/domain/platform/controller.ts +24 -11
- package/src/domain/plugin/__tests__/materialize.test.ts +303 -0
- package/src/domain/plugin/__tests__/overlay-parse.test.ts +85 -0
- package/src/domain/plugin/__tests__/plugin.test.ts +796 -0
- package/src/domain/plugin/__tests__/sanitize.test.ts +174 -0
- package/src/domain/plugin/archive.ts +89 -0
- package/src/domain/plugin/constants.ts +53 -0
- package/src/domain/plugin/controller.ts +913 -0
- package/src/domain/plugin/materialize/agent.ts +186 -0
- package/src/domain/plugin/materialize/default-agent-instructions.ts +59 -0
- package/src/domain/plugin/materialize/identity.ts +67 -0
- package/src/domain/plugin/materialize/mcp-servers.ts +175 -0
- package/src/domain/plugin/materialize/plan.ts +124 -0
- package/src/domain/plugin/materialize/ports.ts +53 -0
- package/src/domain/plugin/materialize/skills.ts +68 -0
- package/src/domain/plugin/materialize/workflows.ts +51 -0
- package/src/domain/plugin/members.ts +180 -0
- package/src/domain/plugin/overlay/documents.ts +78 -0
- package/src/domain/plugin/overlay/parse.ts +115 -0
- package/src/domain/plugin/overlay/sanitize.ts +151 -0
- package/src/domain/plugin/push.ts +1062 -0
- package/src/domain/plugin/search-extractor.ts +60 -0
- package/src/domain/skill/constants.ts +11 -14
- package/src/domain/skill/controller.ts +44 -36
- package/src/domain/skill/push.ts +61 -156
- package/src/domain/skill/search-extractor.ts +3 -1
- package/src/domain/skill/storage/artifact-storage.ts +23 -124
- package/src/domain/skill/storage/zip-gate.ts +58 -154
- package/src/domain/skill/version-resolution.ts +67 -269
- package/src/domain/workflow/controller.ts +38 -4
- package/src/domain/workflow/registry/data/task-kind-registry.json +1 -0
- package/src/domain/workflowexecution/__tests__/phases.test.ts +58 -0
- package/src/domain/workflowexecution/phases.ts +33 -0
- package/src/extensions/__tests__/built-in-authorization-composed.test.ts +835 -0
- package/src/extensions/__tests__/composed-support.ts +32 -1
- package/src/extensions/__tests__/extension-composition.test.ts +42 -1
- package/src/extensions/__tests__/list-read-scope.test.ts +137 -33
- package/src/extensions/__tests__/role-reconciliation-composed.test.ts +209 -0
- package/src/extensions/__tests__/tier-truthfulness.test.ts +6 -14
- package/src/extensions/authorizer.ts +10 -5
- package/src/extensions/drivers.ts +4 -1
- package/src/extensions/list-read-scope.ts +67 -45
- package/src/extensions/organization-directory.ts +13 -9
- package/src/extensions/resource-authorization.ts +34 -0
- package/src/extensions/schedule-fire-caller.ts +49 -18
- package/src/identity/__tests__/oidc-verifier.test.ts +22 -0
- package/src/identity/oidc-verifier.ts +8 -1
- package/src/index.ts +51 -1
- package/src/pipeline/__tests__/kind-by-id-prefix.test.ts +75 -0
- package/src/pipeline/__tests__/router-transport.test.ts +1 -3
- package/src/pipeline/apiresource-labels.ts +31 -3
- package/src/pipeline/apiresource-meta.ts +41 -0
- package/src/pipeline/errors.ts +5 -5
- package/src/pipeline/steps/__tests__/authorize-annotation-completeness.test.ts +1 -20
- package/src/pipeline/steps/__tests__/guard-memory-capture.test.ts +58 -44
- package/src/pipeline/steps/__tests__/guard-plugin-managed.test.ts +151 -0
- package/src/pipeline/steps/__tests__/guard-reserved-labels.test.ts +83 -8
- package/src/pipeline/steps/authorization-facts.ts +131 -0
- package/src/pipeline/steps/delete.ts +11 -3
- package/src/pipeline/steps/duplicate.ts +8 -2
- package/src/pipeline/steps/guard-memory-capture.ts +5 -3
- package/src/pipeline/steps/guard-plugin-managed.ts +133 -0
- package/src/pipeline/steps/guard-reserved-labels.ts +29 -8
- package/src/pipeline/steps/helpers.ts +4 -1
- package/src/pipeline/steps/index-search.ts +28 -15
- package/src/pipeline/steps/load-existing.ts +12 -3
- package/src/pipeline/steps/references.ts +36 -2
- package/src/pipeline/steps/resolve-artifact-source.ts +66 -0
- package/src/pipeline/steps/server-stamped-reserved-labels.ts +2 -1
- package/src/pipeline/steps/slug.ts +7 -2
- package/src/pipeline/steps/validate-visibility.ts +9 -2
- package/src/pipeline/steps/validation.ts +3 -1
- package/src/pipeline/steps/version-archive.ts +225 -0
- package/src/pipeline/steps/version-history.ts +362 -0
- package/src/pipeline/steps/visibility-gates.ts +12 -9
- package/src/query/README.md +1 -1
- package/src/query/search/__tests__/criteria.test.ts +6 -7
- package/src/query/search/__tests__/query-store.test.ts +9 -2
- package/src/query/search/__tests__/registry.test.ts +6 -4
- package/src/query/search/registry.ts +6 -1
- package/src/runnerauth/__tests__/bound-execution.test.ts +334 -0
- package/src/runnerauth/__tests__/built-in-runner-credential-provider.test.ts +516 -0
- package/src/runnerauth/__tests__/dispatch-credential.test.ts +94 -0
- package/src/runnerauth/__tests__/runner-credential-provider.test.ts +27 -0
- package/src/runnerauth/__tests__/runner-subject-composed.test.ts +497 -0
- package/src/runnerauth/__tests__/runner-subject-verifier.test.ts +541 -0
- package/src/runnerauth/bound-execution.ts +270 -0
- package/src/runnerauth/built-in-runner-credential-provider.ts +300 -0
- package/src/runnerauth/constants.ts +74 -0
- package/src/runnerauth/dispatch-credential.ts +63 -0
- package/src/runnerauth/runner-credential-provider.ts +60 -11
- package/src/runnerauth/runner-subject-verifier.ts +152 -0
- package/src/runnerauth/runnerauth.ts +148 -38
- package/src/temporal/agentexecution/__tests__/engine-client.test.ts +107 -38
- package/src/temporal/agentexecution/__tests__/invoke-workflow.test.ts +105 -2
- package/src/temporal/agentexecution/engine-client.ts +27 -2
- package/src/temporal/agentexecution/workflow-input.ts +13 -0
- package/src/temporal/agentexecution/workflows/invoke-agent-execution.ts +90 -44
- package/src/temporal/schedule/__tests__/run-starter.test.ts +86 -24
- package/src/temporal/schedule/run-starter.ts +31 -8
- package/src/temporal/workflowexecution/__tests__/engine-client.test.ts +139 -33
- package/src/temporal/workflowexecution/engine-client.ts +48 -21
- package/src/temporal/workflowexecution/workflow-input.ts +14 -0
- package/dist/domain/skill/storage/prefilter.d.ts.map +0 -1
- package/dist/domain/skill/storage/prefilter.js.map +0 -1
- /package/dist/{domain/skill/storage → archive}/prefilter.js +0 -0
|
@@ -7,10 +7,14 @@
|
|
|
7
7
|
* ValidateProto → ResolveArtifactSource → BuildInitialSkill →
|
|
8
8
|
* ExtractAndHashArtifact → ResolveSlugForPush → FindExistingBySlug →
|
|
9
9
|
* GenerateIDIfNeeded → CheckAndStoreArtifact → PopulateSkillFields →
|
|
10
|
-
* ArchiveCurrentSkill → StoreSkill →
|
|
10
|
+
* GuardReservedLabels → ArchiveCurrentSkill → StoreSkill →
|
|
11
|
+
* IndexSkillSearch
|
|
11
12
|
*
|
|
12
|
-
* Step names and context keys are Go's, verbatim
|
|
13
|
-
*
|
|
13
|
+
* Step names and context keys are Go's, verbatim; GuardReservedLabels
|
|
14
|
+
* joined when PushSkillRequest gained `labels` (a plugin materialises its
|
|
15
|
+
* skills with the plugin label through this chain, so the chain must run
|
|
16
|
+
* the same reserved-namespace guard every other write boundary runs). The
|
|
17
|
+
* load-bearing semantics, all preserved:
|
|
14
18
|
* - exactly one artifact source (inline bytes XOR upload ref — proto
|
|
15
19
|
* CEL); a staged ref is consumed (retired) whatever happens downstream;
|
|
16
20
|
* - content addressing: same bytes = same SHA-256 = one stored copy;
|
|
@@ -37,56 +41,36 @@ import { ApiResourceMetadataSchema, ApiResourceMetadataVersionSchema, } from "@s
|
|
|
37
41
|
import { ApiResourceAuditSchema } from "@stigmer/protos/ai/stigmer/commons/apiresource/status_pb";
|
|
38
42
|
import { ApiResourceVisibility } from "@stigmer/protos/ai/stigmer/commons/apiresource/enum_pb";
|
|
39
43
|
import { defaultVisibilityFor, getIdPrefix, } from "../../pipeline/apiresource-meta.js";
|
|
40
|
-
import {
|
|
44
|
+
import { internalError, invalidArgumentError } from "../../pipeline/errors.js";
|
|
41
45
|
import { diffVisibilityShapes, resolveResourceCreatedEvent, } from "../../pipeline/steps/authorization-tuples.js";
|
|
42
46
|
import { generateId, setAuditFieldsForCreate, setAuditFieldsForUpdate, } from "../../pipeline/steps/defaults.js";
|
|
43
47
|
import { findResourceBySlug } from "../../pipeline/steps/helpers.js";
|
|
44
48
|
import { generateSlug } from "../../pipeline/steps/slug.js";
|
|
45
|
-
import {
|
|
49
|
+
import { ARTIFACT_BYTES_KEY, newResolveArtifactSourceStep as newSharedResolveArtifactSourceStep, } from "../../pipeline/steps/resolve-artifact-source.js";
|
|
50
|
+
import { newArchiveCurrentVersionStep } from "../../pipeline/steps/version-archive.js";
|
|
46
51
|
import { TRANSFER_LANE_NOT_CONFIGURED } from "./constants.js";
|
|
47
52
|
import { skillSearchExtractor } from "./search-extractor.js";
|
|
48
53
|
import { extractSkillMd } from "./storage/zip-gate.js";
|
|
49
54
|
// Context keys for the push operation (Go push.go, verbatim).
|
|
50
55
|
export const SKILL_KEY = "skill";
|
|
51
|
-
export
|
|
56
|
+
export { ARTIFACT_BYTES_KEY };
|
|
52
57
|
export const EXTRACT_RESULT_KEY = "extractResult";
|
|
53
58
|
export const ARTIFACT_STORAGE_KEY_KEY = "artifactStorageKey";
|
|
54
59
|
export const EXISTING_SKILL_KEY = "existingSkill";
|
|
55
60
|
export const SHOULD_CREATE_SKILL_KEY = "shouldCreateSkill";
|
|
56
61
|
/**
|
|
57
|
-
* ResolveArtifactSource —
|
|
58
|
-
*
|
|
59
|
-
*
|
|
60
|
-
* consumed HERE, which retires the single-use reference regardless of how
|
|
61
|
-
* the rest of the pipeline fares. Downstream steps read ARTIFACT_BYTES_KEY
|
|
62
|
-
* and never touch the request's artifact field, so the two sources are
|
|
63
|
-
* indistinguishable past this point.
|
|
62
|
+
* ResolveArtifactSource — the shared step bound to PushSkillRequest's two
|
|
63
|
+
* sources and the skill lane's FailedPrecondition copy (see
|
|
64
|
+
* pipeline/steps/resolve-artifact-source.ts for the semantics).
|
|
64
65
|
*/
|
|
65
66
|
export function newResolveArtifactSourceStep(slots) {
|
|
66
|
-
return {
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
}
|
|
74
|
-
if (slots === undefined) {
|
|
75
|
-
throw failedPreconditionError(TRANSFER_LANE_NOT_CONFIGURED);
|
|
76
|
-
}
|
|
77
|
-
let data;
|
|
78
|
-
try {
|
|
79
|
-
data = await slots.consume(req.artifactUploadRef);
|
|
80
|
-
}
|
|
81
|
-
catch (error) {
|
|
82
|
-
// The reference is client-supplied state, not server fault:
|
|
83
|
-
// unknown, expired, already consumed, or minted-but-never-uploaded
|
|
84
|
-
// all mean the client must re-mint and re-upload.
|
|
85
|
-
throw invalidArgumentError(`artifact_upload_ref not usable: ${error instanceof Error ? error.message : String(error)} — request a new upload URL via createArtifactUploadUrl`);
|
|
86
|
-
}
|
|
87
|
-
ctx.set(ARTIFACT_BYTES_KEY, data);
|
|
88
|
-
},
|
|
89
|
-
};
|
|
67
|
+
return newSharedResolveArtifactSourceStep(slots, {
|
|
68
|
+
source: (req) => ({
|
|
69
|
+
artifact: req.artifact,
|
|
70
|
+
artifactUploadRef: req.artifactUploadRef,
|
|
71
|
+
}),
|
|
72
|
+
laneNotConfigured: TRANSFER_LANE_NOT_CONFIGURED,
|
|
73
|
+
});
|
|
90
74
|
}
|
|
91
75
|
/**
|
|
92
76
|
* BuildInitialSkill — the Skill scaffold from the request. Name, ID, and
|
|
@@ -98,10 +82,16 @@ export function newBuildInitialSkillStep() {
|
|
|
98
82
|
name: "BuildInitialSkill",
|
|
99
83
|
execute(ctx) {
|
|
100
84
|
const req = ctx.input;
|
|
85
|
+
// The request's labels ARE the skill's labels (replace, never merge):
|
|
86
|
+
// a push is the skill's definition. GuardReservedLabels, spliced after
|
|
87
|
+
// FindExistingBySlug, judges them against the stored skill's.
|
|
101
88
|
const skill = create(SkillSchema, {
|
|
102
89
|
apiVersion: "agentic.stigmer.ai/v1",
|
|
103
90
|
kind: "Skill",
|
|
104
|
-
metadata: create(ApiResourceMetadataSchema, {
|
|
91
|
+
metadata: create(ApiResourceMetadataSchema, {
|
|
92
|
+
org: req.org,
|
|
93
|
+
labels: { ...req.labels },
|
|
94
|
+
}),
|
|
105
95
|
spec: create(SkillSpecSchema, { tag: req.tag }),
|
|
106
96
|
status: create(SkillStatusSchema, { state: SkillState.READY }),
|
|
107
97
|
});
|
|
@@ -247,6 +237,12 @@ export function newPopulateSkillFieldsStep() {
|
|
|
247
237
|
skill.spec.skillMd = extractResult.content;
|
|
248
238
|
skill.spec.name = extractResult.name;
|
|
249
239
|
skill.spec.description = extractResult.description;
|
|
240
|
+
// A push IS the skill's definition: the labels it carries are the
|
|
241
|
+
// labels the skill has (replace, never merge), so a re-push that
|
|
242
|
+
// omits a label removes it — the apply chains' BuildUpdateState
|
|
243
|
+
// posture. The reserved namespace is judged by GuardReservedLabels
|
|
244
|
+
// right after this step, against the stored skill's labels.
|
|
245
|
+
skill.metadata.labels = { ...req.labels };
|
|
250
246
|
if (skill.metadata.visibility ===
|
|
251
247
|
ApiResourceVisibility.api_resource_visibility_unspecified) {
|
|
252
248
|
skill.metadata.visibility = defaultVisibilityFor(ctx.apiResourceKind);
|
|
@@ -290,94 +286,29 @@ export function newPopulateSkillFieldsStep() {
|
|
|
290
286
|
* ArchiveCurrentSkill — the versioning heart (#341/#475): repoint or
|
|
291
287
|
* archive, then the single-holder tag assignment, each with its safe
|
|
292
288
|
* degradation (see the module doc). Runs AFTER PopulateSkillFields so the
|
|
293
|
-
* archived snapshot is the fully-populated head.
|
|
289
|
+
* archived snapshot is the fully-populated head. The mechanism is the
|
|
290
|
+
* shared version-archive step; this binding says where a skill keeps its
|
|
291
|
+
* hash (status.version_hash, mirrored in metadata.version.id) and its tag
|
|
292
|
+
* (spec.tag).
|
|
294
293
|
*/
|
|
295
294
|
export function newArchiveCurrentSkillStep(store, logger) {
|
|
296
|
-
return {
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
// Repoint, never duplicate: if this content was ever archived, the
|
|
307
|
-
// head simply repoints to the existing row and only the tag
|
|
308
|
-
// assignment below still runs. An unexpected lookup failure degrades
|
|
309
|
-
// to archiving anyway — a possible duplicate row beats a failed push
|
|
310
|
-
// (readers resolve duplicates newest-wins).
|
|
311
|
-
let alreadyArchived = false;
|
|
312
|
-
try {
|
|
313
|
-
await store.getAuditByHash(ctx.apiResourceKind, skillId, versionHash, SkillSchema);
|
|
314
|
-
alreadyArchived = true;
|
|
315
|
-
}
|
|
316
|
-
catch (error) {
|
|
317
|
-
if (!(error instanceof AuditNotFoundError)) {
|
|
318
|
-
logger.warn("Could not check for an existing archived skill version — archiving anyway", {
|
|
319
|
-
skillId,
|
|
320
|
-
versionHash,
|
|
321
|
-
error: error instanceof Error ? error.message : String(error),
|
|
322
|
-
});
|
|
323
|
-
}
|
|
324
|
-
}
|
|
325
|
-
if (!alreadyArchived) {
|
|
326
|
-
// Archive the snapshot tagless: the tag lives only in the audit
|
|
327
|
-
// tag column (the source of truth), assigned below through the
|
|
328
|
-
// single-holder primitive — a later tag move never rewrites this
|
|
329
|
-
// immutable content.
|
|
330
|
-
try {
|
|
331
|
-
await store.saveAudit(ctx.apiResourceKind, skillId, SkillSchema, skill, versionHash, "");
|
|
332
|
-
}
|
|
333
|
-
catch (error) {
|
|
334
|
-
logger.error("Failed to archive skill version — reverting the version hash to maintain the audit-resolvability invariant", {
|
|
335
|
-
skillId,
|
|
336
|
-
versionHash,
|
|
337
|
-
error: error instanceof Error ? error.message : String(error),
|
|
338
|
-
});
|
|
339
|
-
// Revert: the persisted head must never reference an audit entry
|
|
340
|
-
// that does not exist. The push still succeeds, but without
|
|
341
|
-
// version tracking for this apply.
|
|
342
|
-
skill.status.versionHash = "";
|
|
343
|
-
if (skill.metadata?.version !== undefined) {
|
|
344
|
-
skill.metadata.version.id = "";
|
|
345
|
-
}
|
|
346
|
-
return;
|
|
347
|
-
}
|
|
348
|
-
}
|
|
349
|
-
// Assign the requested tag through setAuditTag — the single-holder
|
|
350
|
-
// primitive — so the head version (freshly archived or repointed-to)
|
|
351
|
-
// becomes the tag's sole holder; any prior holder is cleared.
|
|
352
|
-
if (tag !== "") {
|
|
353
|
-
try {
|
|
354
|
-
await store.setAuditTag(ctx.apiResourceKind, skillId, versionHash, tag);
|
|
355
|
-
}
|
|
356
|
-
catch (error) {
|
|
357
|
-
logger.error("Archived skill version but failed to assign its tag — clearing the live tag to stay consistent with the audit column", {
|
|
358
|
-
skillId,
|
|
359
|
-
versionHash,
|
|
360
|
-
tag,
|
|
361
|
-
error: error instanceof Error ? error.message : String(error),
|
|
362
|
-
});
|
|
363
|
-
// The audit head is now untagged; keep the live head consistent
|
|
364
|
-
// so get / getByReference never advertise a tag the store cannot
|
|
365
|
-
// resolve.
|
|
366
|
-
skill.spec.tag = "";
|
|
367
|
-
}
|
|
368
|
-
}
|
|
369
|
-
if (alreadyArchived) {
|
|
370
|
-
logger.info("Skill version content already archived — repointed head without a new history row", { skillId, versionHash, tag });
|
|
371
|
-
}
|
|
372
|
-
else {
|
|
373
|
-
logger.info("Archived skill version to audit history", {
|
|
374
|
-
skillId,
|
|
375
|
-
versionHash,
|
|
376
|
-
tag,
|
|
377
|
-
});
|
|
295
|
+
return newArchiveCurrentVersionStep(store, logger, {
|
|
296
|
+
stepName: "ArchiveCurrentSkill",
|
|
297
|
+
resourceKey: SKILL_KEY,
|
|
298
|
+
schema: SkillSchema,
|
|
299
|
+
noun: "skill",
|
|
300
|
+
headHashOf: (skill) => skill.status?.versionHash ?? "",
|
|
301
|
+
clearHeadHash: (skill) => {
|
|
302
|
+
skill.status.versionHash = "";
|
|
303
|
+
if (skill.metadata?.version !== undefined) {
|
|
304
|
+
skill.metadata.version.id = "";
|
|
378
305
|
}
|
|
379
306
|
},
|
|
380
|
-
|
|
307
|
+
liveTagOf: (skill) => skill.spec?.tag ?? "",
|
|
308
|
+
clearLiveTag: (skill) => {
|
|
309
|
+
skill.spec.tag = "";
|
|
310
|
+
},
|
|
311
|
+
});
|
|
381
312
|
}
|
|
382
313
|
/** StoreSkill — persists the fully populated head. */
|
|
383
314
|
export function newStoreSkillStep(store) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"push.js","sourceRoot":"","sources":["../../../src/domain/skill/push.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;AACH,OAAO,EAAE,MAAM,EAAE,MAAM,oBAAoB,CAAC;AAE5C,OAAO,EAAE,WAAW,EAAE,MAAM,oDAAoD,CAAC;AAGjF,OAAO,EAAE,eAAe,EAAE,MAAM,qDAAqD,CAAC;AACtF,OAAO,EACL,UAAU,EACV,iBAAiB,GAClB,MAAM,uDAAuD,CAAC;AAC/D,OAAO,EACL,yBAAyB,EACzB,gCAAgC,GACjC,MAAM,4DAA4D,CAAC;AACpE,OAAO,EAAE,sBAAsB,EAAE,MAAM,0DAA0D,CAAC;AAClG,OAAO,EAAE,qBAAqB,EAAE,MAAM,wDAAwD,CAAC;AAI/F,OAAO,EACL,oBAAoB,EACpB,WAAW,GACZ,MAAM,oCAAoC,CAAC;AAC5C,OAAO,EACL,uBAAuB,EACvB,aAAa,EACb,oBAAoB,GAC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AAI,KAAK,KAAK,SAAS,EAAE,CAAC;gBACxB,MAAM,CAAC,IAAI,CACT,0DAA0D,EAC1D;oBACE,EAAE,EAAE,KAAK,CAAC,QAAQ,EAAE,EAAE,IAAI,EAAE;iBAC7B,CACF,CAAC;gBACF,OAAO;YACT,CAAC;YACD,IAAI,CAAC;gBACH,MAAM,KAAK,CAAC,iBAAiB,CAC3B,GAAG,CAAC,eAAe,EACnB,KAAK,CAAC,QAAS,CAAC,EAAE,EAClB,KAAK,CACN,CAAC;YACJ,CAAC;YAAC,OAAO,KAAK,EAAE,CAAC;gBACf,MAAM,CAAC,IAAI,CACT,+DAA+D,EAC/D;oBACE,EAAE,EAAE,KAAK,CAAC,QAAQ,EAAE,EAAE,IAAI,EAAE;oBAC5B,KAAK,EAAE,KAAK,YAAY,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC;iBAC9D,CACF,CAAC;YACJ,CAAC;QACH,CAAC;KACF,CAAC;AACJ,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"search-extractor.d.ts","sourceRoot":"","sources":["../../../src/domain/skill/search-extractor.ts"],"names":[],"mappings":"AAiBA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,iCAAiC,CAAC;AAE3E,eAAO,MAAM,oBAAoB,EAAE,
|
|
1
|
+
{"version":3,"file":"search-extractor.d.ts","sourceRoot":"","sources":["../../../src/domain/skill/search-extractor.ts"],"names":[],"mappings":"AAiBA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,iCAAiC,CAAC;AAE3E,eAAO,MAAM,oBAAoB,EAAE,mBA2ClC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"search-extractor.js","sourceRoot":"","sources":["../../../src/domain/skill/search-extractor.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,WAAW,EAAE,MAAM,oDAAoD,CAAC;AAEjF,OAAO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AAC,QAAQ,CAAC;QAChC,IAAI,QAAQ,KAAK,SAAS,EAAE,CAAC;YAC3B,OAAO,SAAS,CAAC;QACnB,CAAC;QACD,OAAO;YACL,IAAI,EAAE,QAAQ,CAAC,IAAI;YACnB,wDAAwD;YACxD,WAAW,EAAE,KAAK,CAAC,IAAI,EAAE,WAAW,IAAI,EAAE;YAC1C,+DAA+D;YAC/D,kCAAkC;YAClC,IAAI,EAAE,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC;YAC7B,GAAG,EAAE,QAAQ,CAAC,GAAG;YACjB,0DAA0D;YAC1D,UAAU,EAAE,qBAAqB,CAAC,QAAQ,CAAC,UAAU,CAAC,IAAI,EAAE;YAC5D,SAAS,EAAE,MAAM,CACf,KAAK,CAAC,MAAM,EAAE,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,OAAO,IAAI,EAAE,CACzD;SACF,CAAC;IACJ,CAAC;CACF,CAAC"}
|
|
@@ -1,33 +1,30 @@
|
|
|
1
|
-
import type { ArtifactStorage } from "../../../artifactstorage/artifact-storage.js";
|
|
2
|
-
/**
|
|
3
|
-
* Storage abstraction for skill artifacts (Go ArtifactStorage). The
|
|
4
|
-
* interface exists for the same reason as Go's: cloud uses R2 behind the
|
|
5
|
-
* identical surface, and the controller must not know which one it holds.
|
|
6
|
-
*/
|
|
7
|
-
export interface SkillArtifactStorage {
|
|
8
|
-
/** Saves an artifact under its content hash; returns the storage key. */
|
|
9
|
-
store(hash: string, data: Uint8Array): Promise<string>;
|
|
10
|
-
/** Loads an artifact by storage key; throws ArtifactNotFoundError if absent. */
|
|
11
|
-
get(storageKey: string): Promise<Uint8Array>;
|
|
12
|
-
/** Whether an artifact with this content hash already exists (dedupe). */
|
|
13
|
-
exists(hash: string): Promise<boolean>;
|
|
14
|
-
/** The storage key for a hash, without storing ("skills/<hash>.zip"). */
|
|
15
|
-
getStorageKey(hash: string): string;
|
|
16
|
-
/** The stored artifact's byte size via stat — never loads content. */
|
|
17
|
-
size(storageKey: string): Promise<number>;
|
|
18
|
-
}
|
|
19
1
|
/**
|
|
20
|
-
*
|
|
21
|
-
*
|
|
22
|
-
*
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
*
|
|
29
|
-
*
|
|
30
|
-
*
|
|
2
|
+
* Skill artifact store — the `skills/` instance of the content-addressed
|
|
3
|
+
* archive store (src/archive/content-store.ts). Artifacts live at
|
|
4
|
+
* {storagePath}/skills/{sha256}.zip, byte-identical to the retired Go
|
|
5
|
+
* server's paths: at cutover the TS server inherited a Go-written storage
|
|
6
|
+
* directory and serves its artifacts in place. Write-once, never
|
|
7
|
+
* garbage-collected (OD-5): there is deliberately NO delete method, so the
|
|
8
|
+
* storage keys listVersions exposes stay downloadable.
|
|
9
|
+
*
|
|
10
|
+
* Since O5 (20260827.02, blueprint 03 §6b) this is a DOMAIN PORT over the
|
|
11
|
+
* one ArtifactStorage blob driver (the Q2 gate ruling); the compose root
|
|
12
|
+
* hands it a PER-DOMAIN driver instance rooted at storagePath (Q2b), so
|
|
13
|
+
* skill artifacts never silently follow the generic artifact store's
|
|
14
|
+
* backend selection. The port's implementation moved to src/archive when
|
|
15
|
+
* plugins needed the identical shape under `plugins/`; the names exported
|
|
16
|
+
* here are the skill domain's and every consumer keeps them.
|
|
17
|
+
*
|
|
18
|
+
* Proven by __tests__/artifact-storage.test.ts and the skill conformance
|
|
19
|
+
* suite's getArtifact/round-trip tests.
|
|
31
20
|
*/
|
|
21
|
+
import type { ArtifactStorage } from "../../../artifactstorage/artifact-storage.js";
|
|
22
|
+
import type { ContentAddressedArchiveStore } from "../../../archive/content-store.js";
|
|
23
|
+
export { ArtifactNotFoundError } from "../../../archive/content-store.js";
|
|
24
|
+
/** Storage abstraction for skill artifacts (Go ArtifactStorage). */
|
|
25
|
+
export type SkillArtifactStorage = ContentAddressedArchiveStore;
|
|
26
|
+
/** The key prefix shared with cloud R2 and the download lane's containment check. */
|
|
27
|
+
export declare const SKILL_ARTIFACT_KEY_PREFIX = "skills/";
|
|
28
|
+
/** The skill store over a blob driver: "skills/<hash>.zip". */
|
|
32
29
|
export declare function newSkillArtifactStorage(driver: ArtifactStorage): SkillArtifactStorage;
|
|
33
30
|
//# sourceMappingURL=artifact-storage.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"artifact-storage.d.ts","sourceRoot":"","sources":["../../../../src/domain/skill/storage/artifact-storage.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"artifact-storage.d.ts","sourceRoot":"","sources":["../../../../src/domain/skill/storage/artifact-storage.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AACH,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,8CAA8C,CAAC;AACpF,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,mCAAmC,CAAC;AAGtF,OAAO,EAAE,qBAAqB,EAAE,MAAM,mCAAmC,CAAC;AAE1E,oEAAoE;AACpE,MAAM,MAAM,oBAAoB,GAAG,4BAA4B,CAAC;AAEhE,qFAAqF;AACrF,eAAO,MAAM,yBAAyB,YAAY,CAAC;AAEnD,+DAA+D;AAC/D,wBAAgB,uBAAuB,CACrC,MAAM,EAAE,eAAe,GACtB,oBAAoB,CAEtB"}
|
|
@@ -1,106 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
* serve its artifacts in place. There is deliberately NO delete method on
|
|
7
|
-
* the interface: historical versions stay downloadable through the storage
|
|
8
|
-
* keys listVersions exposes.
|
|
9
|
-
*
|
|
10
|
-
* Since O5 (20260827.02, blueprint 03 §6b) this is a DOMAIN PORT layered
|
|
11
|
-
* over the one ArtifactStorage blob driver (the Q2 gate ruling): the
|
|
12
|
-
* driver stores blobs; this module owns the keys, the write-once posture,
|
|
13
|
-
* and the not-found vocabulary. The compose root hands it a PER-DOMAIN
|
|
14
|
-
* driver instance rooted at storagePath (the Q2b ruling) — skill artifacts
|
|
15
|
-
* never silently follow the generic artifact store's backend selection.
|
|
16
|
-
*
|
|
17
|
-
* Proven by __tests__/artifact-storage.test.ts and the skill conformance
|
|
18
|
-
* suite's getArtifact/round-trip tests.
|
|
19
|
-
*/
|
|
20
|
-
import path from "node:path";
|
|
21
|
-
import { ArtifactStorageNotFoundError } from "../../../artifactstorage/artifact-storage.js";
|
|
22
|
-
/**
|
|
23
|
-
* A storage key that addresses nothing inside the store — missing file OR
|
|
24
|
-
* a traversal-shaped key (both render as Go's "artifact not found: %s";
|
|
25
|
-
* distinguishing them would tell a probing caller which escapes exist).
|
|
26
|
-
*/
|
|
27
|
-
export class ArtifactNotFoundError extends Error {
|
|
28
|
-
constructor(storageKey) {
|
|
29
|
-
super(`artifact not found: ${storageKey}`);
|
|
30
|
-
this.name = "ArtifactNotFoundError";
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
/** Skill artifacts are zip archives; the driver stores the honest type. */
|
|
34
|
-
const SKILL_ARTIFACT_CONTENT_TYPE = "application/zip";
|
|
35
|
-
/**
|
|
36
|
-
* The skill store over a blob driver. Object-literal factory rather than a
|
|
37
|
-
* class: all state is the captured driver, and the seam-adapter shape
|
|
38
|
-
* matches runner-credential-provider.ts (the O5 house style for ports).
|
|
39
|
-
*/
|
|
1
|
+
import { newContentAddressedArchiveStore } from "../../../archive/content-store.js";
|
|
2
|
+
export { ArtifactNotFoundError } from "../../../archive/content-store.js";
|
|
3
|
+
/** The key prefix shared with cloud R2 and the download lane's containment check. */
|
|
4
|
+
export const SKILL_ARTIFACT_KEY_PREFIX = "skills/";
|
|
5
|
+
/** The skill store over a blob driver: "skills/<hash>.zip". */
|
|
40
6
|
export function newSkillArtifactStorage(driver) {
|
|
41
|
-
return
|
|
42
|
-
/**
|
|
43
|
-
* "skills/<hash>.zip" — the relative key format shared with cloud R2.
|
|
44
|
-
* Deliberately a LITERAL forward-slash join, not path.join: the key is
|
|
45
|
-
* a wire-visible identifier (status.artifact_storage_key, download
|
|
46
|
-
* URLs, the lane's "skills/" prefix check), and Windows support
|
|
47
|
-
* arrives only through this server (#24) — path.join would mint
|
|
48
|
-
* backslash keys there that the download lane could never serve.
|
|
49
|
-
*/
|
|
50
|
-
getStorageKey(hash) {
|
|
51
|
-
return `skills/${hash}.zip`;
|
|
52
|
-
},
|
|
53
|
-
async store(hash, data) {
|
|
54
|
-
const storageKey = this.getStorageKey(hash);
|
|
55
|
-
await driver.upload(storageKey, data, SKILL_ARTIFACT_CONTENT_TYPE);
|
|
56
|
-
return storageKey;
|
|
57
|
-
},
|
|
58
|
-
async get(storageKey) {
|
|
59
|
-
if (keyEscapesStore(storageKey)) {
|
|
60
|
-
throw new ArtifactNotFoundError(storageKey);
|
|
61
|
-
}
|
|
62
|
-
try {
|
|
63
|
-
return await driver.download(storageKey);
|
|
64
|
-
}
|
|
65
|
-
catch (error) {
|
|
66
|
-
if (error instanceof ArtifactStorageNotFoundError) {
|
|
67
|
-
throw new ArtifactNotFoundError(storageKey);
|
|
68
|
-
}
|
|
69
|
-
throw new Error(`failed to read artifact: ${error instanceof Error ? error.message : String(error)}`);
|
|
70
|
-
}
|
|
71
|
-
},
|
|
72
|
-
async exists(hash) {
|
|
73
|
-
return driver.exists(this.getStorageKey(hash));
|
|
74
|
-
},
|
|
75
|
-
async size(storageKey) {
|
|
76
|
-
if (keyEscapesStore(storageKey)) {
|
|
77
|
-
throw new ArtifactNotFoundError(storageKey);
|
|
78
|
-
}
|
|
79
|
-
try {
|
|
80
|
-
return await driver.size(storageKey);
|
|
81
|
-
}
|
|
82
|
-
catch (error) {
|
|
83
|
-
if (error instanceof ArtifactStorageNotFoundError) {
|
|
84
|
-
throw new ArtifactNotFoundError(storageKey);
|
|
85
|
-
}
|
|
86
|
-
throw new Error(`failed to stat artifact: ${error instanceof Error ? error.message : String(error)}`);
|
|
87
|
-
}
|
|
88
|
-
},
|
|
89
|
-
};
|
|
90
|
-
}
|
|
91
|
-
/**
|
|
92
|
-
* The domain's own traversal guard (Go resolveWithinRoot, kept HERE per
|
|
93
|
-
* "the domain owns keys"): a client-supplied storage key that resolves
|
|
94
|
-
* outside the store addresses nothing inside it, and must collapse to the
|
|
95
|
-
* same not-found as a missing file BEFORE the driver sees it — the
|
|
96
|
-
* driver's own containment refusal is a distinguishable error, and
|
|
97
|
-
* distinguishing them would tell a probing caller which escapes exist.
|
|
98
|
-
* Lexical, against a fixed virtual root, so the judgment is identical on
|
|
99
|
-
* every backend rather than an accident of the local driver's directory.
|
|
100
|
-
*/
|
|
101
|
-
function keyEscapesStore(storageKey) {
|
|
102
|
-
const virtualRoot = path.resolve(path.sep, "skill-store");
|
|
103
|
-
const resolved = path.resolve(virtualRoot, storageKey);
|
|
104
|
-
return (resolved !== virtualRoot && !resolved.startsWith(virtualRoot + path.sep));
|
|
7
|
+
return newContentAddressedArchiveStore(driver, SKILL_ARTIFACT_KEY_PREFIX);
|
|
105
8
|
}
|
|
106
9
|
//# sourceMappingURL=artifact-storage.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"artifact-storage.js","sourceRoot":"","sources":["../../../../src/domain/skill/storage/artifact-storage.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"artifact-storage.js","sourceRoot":"","sources":["../../../../src/domain/skill/storage/artifact-storage.ts"],"names":[],"mappings":"AAsBA,OAAO,EAAE,+BAA+B,EAAE,MAAM,mCAAmC,CAAC;AAEpF,OAAO,EAAE,qBAAqB,EAAE,MAAM,mCAAmC,CAAC;AAK1E,qFAAqF;AACrF,MAAM,CAAC,MAAM,yBAAyB,GAAG,SAAS,CAAC;AAEnD,+DAA+D;AAC/D,MAAM,UAAU,uBAAuB,CACrC,MAAuB;IAEvB,OAAO,+BAA+B,CAAC,MAAM,EAAE,yBAAyB,CAAC,CAAC;AAC5E,CAAC"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
export { calculateHash } from "../../../archive/open.js";
|
|
1
2
|
/** Result of a successful gate pass (Go ExtractSkillMdResult). */
|
|
2
3
|
export interface ExtractSkillMdResult {
|
|
3
4
|
/** Full SKILL.md content, frontmatter included. */
|
|
@@ -15,6 +16,4 @@ export interface ExtractSkillMdResult {
|
|
|
15
16
|
* push pipeline owns the gRPC code.
|
|
16
17
|
*/
|
|
17
18
|
export declare function extractSkillMd(zipData: Uint8Array): ExtractSkillMdResult;
|
|
18
|
-
/** SHA-256 hex of the artifact bytes (Go CalculateHash). */
|
|
19
|
-
export declare function calculateHash(data: Uint8Array): string;
|
|
20
19
|
//# sourceMappingURL=zip-gate.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"zip-gate.d.ts","sourceRoot":"","sources":["../../../../src/domain/skill/storage/zip-gate.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"zip-gate.d.ts","sourceRoot":"","sources":["../../../../src/domain/skill/storage/zip-gate.ts"],"names":[],"mappings":"AA0CA,OAAO,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAC;AAEzD,kEAAkE;AAClE,MAAM,WAAW,oBAAoB;IACnC,mDAAmD;IACnD,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IACzB,yEAAyE;IACzE,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,0DAA0D;IAC1D,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,mDAAmD;IACnD,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC;CAC9B;AAED;;;;GAIG;AACH,wBAAgB,cAAc,CAAC,OAAO,EAAE,UAAU,GAAG,oBAAoB,CAwCxE"}
|