@stigmer/server 3.15.3-dev.20260914100347 → 3.15.3-dev.20260916211208
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/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 +157 -32
- 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 +62 -20
- 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/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 +26 -0
- package/dist/domain/identityaccount/actor.d.ts.map +1 -0
- package/dist/domain/identityaccount/actor.js +17 -0
- package/dist/domain/identityaccount/actor.js.map +1 -0
- 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/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 +101 -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/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 +75 -11
- package/dist/extensions/list-read-scope.d.ts.map +1 -1
- package/dist/extensions/list-read-scope.js +40 -7
- 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/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 +21 -0
- package/dist/pipeline/apiresource-meta.d.ts.map +1 -1
- package/dist/pipeline/apiresource-meta.js +28 -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/authorization-tuples.d.ts.map +1 -1
- package/dist/pipeline/steps/authorization-tuples.js +7 -26
- package/dist/pipeline/steps/authorization-tuples.js.map +1 -1
- 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-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/shapes.d.ts +18 -0
- package/dist/pipeline/steps/shapes.d.ts.map +1 -1
- package/dist/pipeline/steps/shapes.js +29 -0
- package/dist/pipeline/steps/shapes.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/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/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__/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/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 +91 -0
- package/src/authorization/store-test-kit.ts +454 -0
- package/src/authorization/tuples.ts +190 -0
- package/src/boot/compose.ts +175 -38
- package/src/boot/inprocess.ts +108 -30
- package/src/domain/agent/controller.ts +11 -0
- 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/actor.ts +44 -0
- package/src/domain/mcpserver/controller.ts +11 -0
- 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 +681 -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 +149 -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/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 +35 -0
- package/src/extensions/__tests__/list-read-scope.test.ts +245 -3
- 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 +116 -16
- 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/index.ts +51 -1
- package/src/pipeline/__tests__/inherited-authorization-parent.test.ts +51 -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 +37 -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 +3 -9
- 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/authorization-tuples.ts +7 -28
- package/src/pipeline/steps/delete.ts +11 -3
- package/src/pipeline/steps/duplicate.ts +8 -2
- 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/shapes.ts +31 -0
- 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/temporal/schedule/__tests__/run-starter.test.ts +86 -24
- package/src/temporal/schedule/run-starter.ts +31 -8
- 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
|
@@ -95,7 +95,9 @@ function newSession(
|
|
|
95
95
|
status: {
|
|
96
96
|
audit: {
|
|
97
97
|
specAudit: {
|
|
98
|
-
createdAt: {
|
|
98
|
+
createdAt: {
|
|
99
|
+
seconds: BigInt(opts?.createdAtSeconds ?? 1_700_000_000),
|
|
100
|
+
},
|
|
99
101
|
},
|
|
100
102
|
},
|
|
101
103
|
},
|
|
@@ -432,7 +434,12 @@ describe("rebuildIndex", () => {
|
|
|
432
434
|
const adopted = SqliteStore.open(fixture.dbPath);
|
|
433
435
|
try {
|
|
434
436
|
const project = create(ProjectSchema, {
|
|
435
|
-
metadata: {
|
|
437
|
+
metadata: {
|
|
438
|
+
id: "prj_1",
|
|
439
|
+
name: "billing",
|
|
440
|
+
slug: "billing",
|
|
441
|
+
org: "acme",
|
|
442
|
+
},
|
|
436
443
|
spec: { description: "the billing project" },
|
|
437
444
|
status: {
|
|
438
445
|
audit: { specAudit: { createdAt: { seconds: 1_700_000_000n } } },
|
|
@@ -78,15 +78,17 @@ describe("SearchableResourceRegistry (Go registry_test.go)", () => {
|
|
|
78
78
|
|
|
79
79
|
it("supportedKinds sorts by the kind NAME string (Go's kind.String() sort)", () => {
|
|
80
80
|
const registry = newSearchableResourceRegistry();
|
|
81
|
-
const names = registry
|
|
81
|
+
const names = registry
|
|
82
|
+
.supportedKinds()
|
|
83
|
+
.map((kind) => ApiResourceKind[kind]);
|
|
82
84
|
expect(names).toEqual([...names].sort((a, b) => a.localeCompare(b)));
|
|
83
85
|
});
|
|
84
86
|
|
|
85
87
|
it("validateExpectedKinds warns with the missing kinds (never throws)", () => {
|
|
86
88
|
const logger = testLogger();
|
|
87
|
-
new SearchableResourceRegistry([
|
|
88
|
-
|
|
89
|
-
);
|
|
89
|
+
new SearchableResourceRegistry([
|
|
90
|
+
agentSearchExtractor,
|
|
91
|
+
]).validateExpectedKinds(logger);
|
|
90
92
|
expect(logger.warns).toHaveLength(1);
|
|
91
93
|
const missing = logger.warns[0]?.missing_kinds as string[];
|
|
92
94
|
expect(missing).toContain("skill");
|
|
@@ -27,6 +27,7 @@ import { environmentSearchExtractor } from "../../domain/environment/search-extr
|
|
|
27
27
|
import { executionContextSearchExtractor } from "../../domain/executioncontext/search-extractor.js";
|
|
28
28
|
import { mcpServerSearchExtractor } from "../../domain/mcpserver/search-extractor.js";
|
|
29
29
|
import { organizationSearchExtractor } from "../../domain/organization/search-extractor.js";
|
|
30
|
+
import { pluginSearchExtractor } from "../../domain/plugin/search-extractor.js";
|
|
30
31
|
import { projectSearchExtractor } from "../../domain/project/search-extractor.js";
|
|
31
32
|
import { sessionSearchExtractor } from "../../domain/session/search-extractor.js";
|
|
32
33
|
import { skillSearchExtractor } from "../../domain/skill/search-extractor.js";
|
|
@@ -39,7 +40,10 @@ import type { SearchableExtractor } from "./extractor.js";
|
|
|
39
40
|
|
|
40
41
|
/** Go SearchableResourceRegistry — kind → extractor, read-only after build. */
|
|
41
42
|
export class SearchableResourceRegistry {
|
|
42
|
-
private readonly extractors: ReadonlyMap<
|
|
43
|
+
private readonly extractors: ReadonlyMap<
|
|
44
|
+
ApiResourceKind,
|
|
45
|
+
SearchableExtractor
|
|
46
|
+
>;
|
|
43
47
|
|
|
44
48
|
constructor(extractors: readonly SearchableExtractor[]) {
|
|
45
49
|
const map = new Map<ApiResourceKind, SearchableExtractor>();
|
|
@@ -111,6 +115,7 @@ export function newSearchableResourceRegistry(): SearchableResourceRegistry {
|
|
|
111
115
|
executionContextSearchExtractor,
|
|
112
116
|
mcpServerSearchExtractor,
|
|
113
117
|
organizationSearchExtractor,
|
|
118
|
+
pluginSearchExtractor,
|
|
114
119
|
projectSearchExtractor,
|
|
115
120
|
sessionSearchExtractor,
|
|
116
121
|
skillSearchExtractor,
|
|
@@ -26,6 +26,7 @@ import { Harness } from "@stigmer/protos/ai/stigmer/agentic/session/v1/enum_pb";
|
|
|
26
26
|
import { ApiResourceKind } from "@stigmer/protos/ai/stigmer/commons/apiresource/apiresourcekind/api_resource_kind_pb";
|
|
27
27
|
|
|
28
28
|
import { createLogger } from "../../../boot/logger.js";
|
|
29
|
+
import { ScheduleFireCallerRefusedError } from "../../../extensions/schedule-fire-caller.js";
|
|
29
30
|
import { SqliteStore } from "../../../store/sqlite/store.js";
|
|
30
31
|
import { ScheduleTemporalConfig } from "../config.js";
|
|
31
32
|
import {
|
|
@@ -37,7 +38,11 @@ import {
|
|
|
37
38
|
scheduledExecutionName,
|
|
38
39
|
} from "../run-starter.js";
|
|
39
40
|
|
|
40
|
-
const silentLogger = createLogger({
|
|
41
|
+
const silentLogger = createLogger({
|
|
42
|
+
level: "error",
|
|
43
|
+
pretty: false,
|
|
44
|
+
write: () => {},
|
|
45
|
+
});
|
|
41
46
|
|
|
42
47
|
const NOMINAL = new Date("2026-08-25T09:30:00Z");
|
|
43
48
|
|
|
@@ -49,13 +54,15 @@ describe("scheduledExecutionName — THE idempotency key (byte-pinned)", () => {
|
|
|
49
54
|
});
|
|
50
55
|
|
|
51
56
|
it("truncates the nominal time to whole seconds", () => {
|
|
52
|
-
expect(
|
|
53
|
-
"
|
|
54
|
-
);
|
|
57
|
+
expect(
|
|
58
|
+
scheduledExecutionName("sch_x", new Date("2026-08-25T09:30:00.999Z")),
|
|
59
|
+
).toBe("sch-x-20260825t093000z");
|
|
55
60
|
});
|
|
56
61
|
|
|
57
62
|
it("every character is slug-shaped (the name IS the execution's slug)", () => {
|
|
58
|
-
expect(scheduledExecutionName("sch_01ABC", NOMINAL)).toMatch(
|
|
63
|
+
expect(scheduledExecutionName("sch_01ABC", NOMINAL)).toMatch(
|
|
64
|
+
/^[a-z0-9-]+$/,
|
|
65
|
+
);
|
|
59
66
|
});
|
|
60
67
|
});
|
|
61
68
|
|
|
@@ -71,7 +78,11 @@ function scheduleWith(overrides?: {
|
|
|
71
78
|
slug?: string;
|
|
72
79
|
}): Schedule {
|
|
73
80
|
return create(ScheduleSchema, {
|
|
74
|
-
metadata: {
|
|
81
|
+
metadata: {
|
|
82
|
+
id: "sch_01test",
|
|
83
|
+
org: "acme",
|
|
84
|
+
slug: overrides?.slug ?? "daily",
|
|
85
|
+
},
|
|
75
86
|
spec: {
|
|
76
87
|
cron: "0 9 * * *",
|
|
77
88
|
timeZone: overrides?.timeZone ?? "Asia/Kolkata",
|
|
@@ -109,16 +120,18 @@ describe("composeMessage — the fire-context line (byte contract)", () => {
|
|
|
109
120
|
});
|
|
110
121
|
|
|
111
122
|
it("an unloadable zone degrades to UTC (a slightly wrong-timezone reminder beats a dead fire)", () => {
|
|
112
|
-
expect(
|
|
123
|
+
expect(
|
|
124
|
+
composeMessage(scheduleWith({ timeZone: "Mars/Olympus" }), NOMINAL),
|
|
125
|
+
).toBe(
|
|
113
126
|
"Do the morning rounds\n\n(Scheduled fire time: Tuesday, 2026-08-25 09:30 (UTC))",
|
|
114
127
|
);
|
|
115
128
|
});
|
|
116
129
|
|
|
117
130
|
it("uses h23 hours (Go's 15 layout: 00-23, never 24)", () => {
|
|
118
131
|
const midnight = new Date("2026-08-25T00:05:00Z");
|
|
119
|
-
expect(
|
|
120
|
-
|
|
121
|
-
);
|
|
132
|
+
expect(
|
|
133
|
+
composeMessage(scheduleWith({ timeZone: "UTC" }), midnight),
|
|
134
|
+
).toContain("Tuesday, 2026-08-25 00:05 (UTC)");
|
|
122
135
|
});
|
|
123
136
|
});
|
|
124
137
|
|
|
@@ -176,7 +189,9 @@ describe("RunStarter.startRun — against a real store", () => {
|
|
|
176
189
|
rmSync(dir, { recursive: true, force: true });
|
|
177
190
|
});
|
|
178
191
|
|
|
179
|
-
function starter(
|
|
192
|
+
function starter(
|
|
193
|
+
create_: (execution: AgentExecution) => Promise<AgentExecution>,
|
|
194
|
+
) {
|
|
180
195
|
return new RunStarter({
|
|
181
196
|
store,
|
|
182
197
|
config,
|
|
@@ -208,14 +223,20 @@ describe("RunStarter.startRun — against a real store", () => {
|
|
|
208
223
|
expect(seen?.metadata?.labels[SCHEDULE_ID_LABEL_KEY]).toBe("sch_01test");
|
|
209
224
|
expect(seen?.spec?.agentId).toBe("agt_01helper");
|
|
210
225
|
expect(seen?.spec?.message).toContain("(Scheduled fire time: ");
|
|
211
|
-
expect(seen?.spec?.sessionSpec?.subject).toBe(
|
|
212
|
-
|
|
226
|
+
expect(seen?.spec?.sessionSpec?.subject).toBe(
|
|
227
|
+
`${SESSION_SUBJECT_PREFIX}daily`,
|
|
228
|
+
);
|
|
229
|
+
expect(seen?.spec?.executionConfig?.approvalMode).toBe(
|
|
230
|
+
ApprovalMode.UNATTENDED,
|
|
231
|
+
);
|
|
213
232
|
// Platform profile applies when the owner set nothing.
|
|
214
233
|
expect(seen?.spec?.executionConfig?.maxToolRounds).toBe(20);
|
|
215
234
|
expect(seen?.spec?.executionConfig?.maxCostUsd).toBe(1.0);
|
|
216
235
|
// Unset tier/model stay unset (never stamped).
|
|
217
236
|
expect(seen?.spec?.executionConfig?.modelName).toBe("");
|
|
218
|
-
expect(seen?.spec?.executionConfig?.serviceTier).toBe(
|
|
237
|
+
expect(seen?.spec?.executionConfig?.serviceTier).toBe(
|
|
238
|
+
ServiceTier.UNSPECIFIED,
|
|
239
|
+
);
|
|
219
240
|
|
|
220
241
|
// Success stamped last_execution_id on the row.
|
|
221
242
|
const row = await store.getResource(
|
|
@@ -333,11 +354,41 @@ describe("RunStarter.startRun — against a real store", () => {
|
|
|
333
354
|
},
|
|
334
355
|
logger: silentLogger,
|
|
335
356
|
});
|
|
336
|
-
await expect(
|
|
357
|
+
await expect(
|
|
358
|
+
runStarter.startRun(scheduleWith(), NOMINAL),
|
|
359
|
+
).rejects.toThrow(
|
|
337
360
|
/mint schedule fire caller for sch_01test: account provisioning unavailable/,
|
|
338
361
|
);
|
|
339
362
|
});
|
|
340
363
|
|
|
364
|
+
it("answers `refused` when the mint's failure is the seam's deterministic refusal — the streak counts it, no retry", async () => {
|
|
365
|
+
let created = 0;
|
|
366
|
+
const runStarter = new RunStarter({
|
|
367
|
+
store,
|
|
368
|
+
config,
|
|
369
|
+
executions: {
|
|
370
|
+
create: async () => {
|
|
371
|
+
created += 1;
|
|
372
|
+
throw new Error("create must not run when the mint refused");
|
|
373
|
+
},
|
|
374
|
+
},
|
|
375
|
+
fireCallerMint: {
|
|
376
|
+
mintFireCaller: async () => {
|
|
377
|
+
throw new ScheduleFireCallerRefusedError(
|
|
378
|
+
"schedule sch_01test was created by nobody this server recognizes as a person",
|
|
379
|
+
);
|
|
380
|
+
},
|
|
381
|
+
},
|
|
382
|
+
logger: silentLogger,
|
|
383
|
+
});
|
|
384
|
+
expect(await runStarter.startRun(scheduleWith(), NOMINAL)).toEqual({
|
|
385
|
+
kind: "refused",
|
|
386
|
+
reason:
|
|
387
|
+
"schedule sch_01test was created by nobody this server recognizes as a person",
|
|
388
|
+
});
|
|
389
|
+
expect(created).toBe(0);
|
|
390
|
+
});
|
|
391
|
+
|
|
341
392
|
it("never mints on the idempotent path (the winner needs no credential)", async () => {
|
|
342
393
|
await store.saveResource(
|
|
343
394
|
ApiResourceKind.agent_execution,
|
|
@@ -372,7 +423,10 @@ describe("RunStarter.startRun — against a real store", () => {
|
|
|
372
423
|
executionId: "aex_01winner",
|
|
373
424
|
alreadyExisted: true,
|
|
374
425
|
});
|
|
375
|
-
await store.deleteResource(
|
|
426
|
+
await store.deleteResource(
|
|
427
|
+
ApiResourceKind.agent_execution,
|
|
428
|
+
"aex_01winner",
|
|
429
|
+
);
|
|
376
430
|
});
|
|
377
431
|
});
|
|
378
432
|
|
|
@@ -410,13 +464,19 @@ describe("RunStarter.startRun — against a real store", () => {
|
|
|
410
464
|
Code.NotFound,
|
|
411
465
|
Code.InvalidArgument,
|
|
412
466
|
Code.ResourceExhausted,
|
|
413
|
-
])(
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
467
|
+
])(
|
|
468
|
+
"maps the launch-gate code %s to a refused outcome (the streak counts it)",
|
|
469
|
+
async (code) => {
|
|
470
|
+
const runStarter = starter(async () => {
|
|
471
|
+
throw new ConnectError("gate refused this run", code);
|
|
472
|
+
});
|
|
473
|
+
const outcome = await runStarter.startRun(scheduleWith(), NOMINAL);
|
|
474
|
+
expect(outcome).toEqual({
|
|
475
|
+
kind: "refused",
|
|
476
|
+
reason: "gate refused this run",
|
|
477
|
+
});
|
|
478
|
+
},
|
|
479
|
+
);
|
|
420
480
|
|
|
421
481
|
it("rethrows infrastructure codes so the activity retries", async () => {
|
|
422
482
|
const runStarter = starter(async () => {
|
|
@@ -463,7 +523,9 @@ describe("RunStarter.startRun — against a real store", () => {
|
|
|
463
523
|
let seen: AgentExecution | undefined;
|
|
464
524
|
const runStarter = starter(async (execution) => {
|
|
465
525
|
seen = execution;
|
|
466
|
-
return create(AgentExecutionSchema, {
|
|
526
|
+
return create(AgentExecutionSchema, {
|
|
527
|
+
metadata: { id: "aex_01x", org: "acme" },
|
|
528
|
+
});
|
|
467
529
|
});
|
|
468
530
|
await runStarter.startRun(
|
|
469
531
|
scheduleWith({
|
|
@@ -48,6 +48,7 @@ import { ApiResourceMetadataSchema } from "@stigmer/protos/ai/stigmer/commons/ap
|
|
|
48
48
|
import type { Logger } from "../../boot/logger.js";
|
|
49
49
|
import type { CallerIdentity } from "../../extensions/identity.js";
|
|
50
50
|
import type { ScheduleFireCallerMint } from "../../extensions/schedule-fire-caller.js";
|
|
51
|
+
import { ScheduleFireCallerRefusedError } from "../../extensions/schedule-fire-caller.js";
|
|
51
52
|
import { findResourceBySlug } from "../../pipeline/steps/helpers.js";
|
|
52
53
|
import { ResourceNotFoundError } from "../../store/interface.js";
|
|
53
54
|
import type { Store } from "../../store/interface.js";
|
|
@@ -152,7 +153,9 @@ function fireContextLine(
|
|
|
152
153
|
let zone = requestedZone;
|
|
153
154
|
let parts: Intl.DateTimeFormatPart[];
|
|
154
155
|
try {
|
|
155
|
-
parts = fireContextFormatter(zone === "" ? "UTC" : zone).formatToParts(
|
|
156
|
+
parts = fireContextFormatter(zone === "" ? "UTC" : zone).formatToParts(
|
|
157
|
+
nominal,
|
|
158
|
+
);
|
|
156
159
|
if (zone === "") {
|
|
157
160
|
zone = "UTC";
|
|
158
161
|
}
|
|
@@ -209,7 +212,7 @@ export interface RunStarterDeps {
|
|
|
209
212
|
readonly store: Store;
|
|
210
213
|
readonly config: ScheduleTemporalConfig;
|
|
211
214
|
readonly executions: ScheduleExecutionCreator;
|
|
212
|
-
/** The composed fire-caller mint, or undefined (the
|
|
215
|
+
/** The composed fire-caller mint, or undefined (the trusted-local internal lane). */
|
|
213
216
|
readonly fireCallerMint?: ScheduleFireCallerMint;
|
|
214
217
|
readonly logger: Logger;
|
|
215
218
|
}
|
|
@@ -280,10 +283,13 @@ export class RunStarter {
|
|
|
280
283
|
}
|
|
281
284
|
if (existing !== undefined) {
|
|
282
285
|
const executionId = existing.metadata?.id ?? "";
|
|
283
|
-
logger.info(
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
286
|
+
logger.info(
|
|
287
|
+
"Schedule fire already has its execution (idempotent retry)",
|
|
288
|
+
{
|
|
289
|
+
schedule_id: scheduleId,
|
|
290
|
+
execution_id: executionId,
|
|
291
|
+
},
|
|
292
|
+
);
|
|
287
293
|
await this.stampLastExecutionId(scheduleId, executionId);
|
|
288
294
|
return { kind: "started", executionId, alreadyExisted: true };
|
|
289
295
|
}
|
|
@@ -292,7 +298,11 @@ export class RunStarter {
|
|
|
292
298
|
// after the idempotency lookup (a found winner needs no credential)
|
|
293
299
|
// and before the create it authenticates. Failure is an
|
|
294
300
|
// infrastructure fault — thrown, so the tick activity retries under
|
|
295
|
-
// the deterministic name and a manual trigger surfaces it
|
|
301
|
+
// the deterministic name and a manual trigger surfaces it — unless
|
|
302
|
+
// the driver says the refusal is deterministic (the seam's own typed
|
|
303
|
+
// error: this fire can act as nobody, and no retry changes that), in
|
|
304
|
+
// which case it is a `refused` outcome like a launch gate's: the
|
|
305
|
+
// streak counts it and pauses the schedule with the reason.
|
|
296
306
|
let fireCaller: CallerIdentity | undefined;
|
|
297
307
|
if (this.deps.fireCallerMint !== undefined) {
|
|
298
308
|
try {
|
|
@@ -301,6 +311,14 @@ export class RunStarter {
|
|
|
301
311
|
scheduleId,
|
|
302
312
|
);
|
|
303
313
|
} catch (error) {
|
|
314
|
+
if (error instanceof ScheduleFireCallerRefusedError) {
|
|
315
|
+
logger.error("Schedule fire refused by the fire-caller mint", {
|
|
316
|
+
schedule_id: scheduleId,
|
|
317
|
+
org,
|
|
318
|
+
reason: error.message,
|
|
319
|
+
});
|
|
320
|
+
return { kind: "refused", reason: error.message };
|
|
321
|
+
}
|
|
304
322
|
throw new Error(
|
|
305
323
|
`mint schedule fire caller for ${scheduleId}: ${error instanceof Error ? error.message : String(error)}`,
|
|
306
324
|
{ cause: error },
|
|
@@ -311,7 +329,12 @@ export class RunStarter {
|
|
|
311
329
|
let created: AgentExecution;
|
|
312
330
|
try {
|
|
313
331
|
created = await this.deps.executions.create(
|
|
314
|
-
this.buildExecutionRequest(
|
|
332
|
+
this.buildExecutionRequest(
|
|
333
|
+
schedule,
|
|
334
|
+
resolved.agent,
|
|
335
|
+
executionName,
|
|
336
|
+
nominalFireTime,
|
|
337
|
+
),
|
|
315
338
|
fireCaller,
|
|
316
339
|
);
|
|
317
340
|
} catch (error) {
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"prefilter.d.ts","sourceRoot":"","sources":["../../../../src/domain/skill/storage/prefilter.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BG;AACH,OAAO,KAAK,EAAE,kBAAkB,EAAE,M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