@stigmer/server 3.41.0 → 3.41.1-dev.20261003133619.g58ac1f23a411
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 +6 -6
- package/dist/archive/content-store.js +2 -2
- package/dist/archive/prefilter.d.ts +3 -3
- package/dist/archive/write.js +1 -1
- package/dist/artifactstorage/artifact-storage.d.ts +11 -11
- package/dist/artifactstorage/artifact-storage.d.ts.map +1 -1
- package/dist/artifactstorage/artifact-storage.js +12 -16
- package/dist/artifactstorage/artifact-storage.js.map +1 -1
- package/dist/artifactstorage/r2-storage.d.ts +3 -5
- package/dist/artifactstorage/r2-storage.d.ts.map +1 -1
- package/dist/artifactstorage/r2-storage.js +4 -6
- package/dist/artifactstorage/r2-storage.js.map +1 -1
- package/dist/authorization/authorizer.d.ts +1 -1
- package/dist/authorization/authorizer.js +1 -1
- package/dist/authorization/model/data/authorization-model.json +0 -120
- package/dist/authorization/model/execution-viewer.d.ts.map +1 -1
- package/dist/authorization/model/execution-viewer.js +1 -2
- package/dist/authorization/model/execution-viewer.js.map +1 -1
- package/dist/authorization/organization-directory.d.ts +1 -1
- package/dist/authorization/organization-directory.js +1 -1
- package/dist/authorization/stored-resources.d.ts +4 -0
- package/dist/authorization/stored-resources.d.ts.map +1 -0
- package/dist/authorization/stored-resources.js +39 -0
- package/dist/authorization/stored-resources.js.map +1 -0
- package/dist/authorization/trusted-local-authorizer.js +2 -2
- package/dist/boot/compose.d.ts +30 -14
- package/dist/boot/compose.d.ts.map +1 -1
- package/dist/boot/compose.js +132 -99
- package/dist/boot/compose.js.map +1 -1
- package/dist/boot/config.d.ts +46 -20
- package/dist/boot/config.d.ts.map +1 -1
- package/dist/boot/config.js +61 -8
- package/dist/boot/config.js.map +1 -1
- package/dist/boot/inprocess.d.ts +13 -5
- package/dist/boot/inprocess.d.ts.map +1 -1
- package/dist/boot/inprocess.js +29 -22
- package/dist/boot/inprocess.js.map +1 -1
- package/dist/boot/logger.d.ts +1 -1
- package/dist/boot/logger.js +1 -1
- package/dist/boot/ready-line.d.ts +36 -0
- package/dist/boot/ready-line.d.ts.map +1 -0
- package/dist/boot/ready-line.js +23 -0
- package/dist/boot/ready-line.js.map +1 -0
- package/dist/domain/agent/controller.d.ts +5 -5
- package/dist/domain/agent/controller.d.ts.map +1 -1
- package/dist/domain/agent/controller.js +7 -6
- package/dist/domain/agent/controller.js.map +1 -1
- package/dist/domain/agent/steps.d.ts +13 -12
- package/dist/domain/agent/steps.d.ts.map +1 -1
- package/dist/domain/agent/steps.js +29 -11
- package/dist/domain/agent/steps.js.map +1 -1
- package/dist/domain/agentchannel/channel-runtime.d.ts +6 -7
- package/dist/domain/agentchannel/channel-runtime.d.ts.map +1 -1
- package/dist/domain/agentchannel/constants.d.ts +10 -10
- package/dist/domain/agentchannel/constants.js +10 -10
- package/dist/domain/agentchannel/controller.d.ts +10 -10
- package/dist/domain/agentchannel/controller.d.ts.map +1 -1
- package/dist/domain/agentchannel/controller.js +17 -20
- package/dist/domain/agentchannel/controller.js.map +1 -1
- package/dist/domain/agentchannel/conversation.d.ts +4 -4
- package/dist/domain/agentchannel/message.d.ts +4 -4
- package/dist/domain/agentchannel/steps.d.ts +4 -4
- package/dist/domain/agentchannel/steps.d.ts.map +1 -1
- package/dist/domain/agentchannel/steps.js +10 -11
- package/dist/domain/agentchannel/steps.js.map +1 -1
- package/dist/domain/agentexecution/artifacts.d.ts +2 -2
- package/dist/domain/agentexecution/artifacts.d.ts.map +1 -1
- package/dist/domain/agentexecution/artifacts.js +7 -12
- package/dist/domain/agentexecution/artifacts.js.map +1 -1
- package/dist/domain/agentexecution/constants.d.ts +23 -3
- package/dist/domain/agentexecution/constants.d.ts.map +1 -1
- package/dist/domain/agentexecution/constants.js +30 -3
- package/dist/domain/agentexecution/constants.js.map +1 -1
- package/dist/domain/agentexecution/controller.d.ts +20 -13
- package/dist/domain/agentexecution/controller.d.ts.map +1 -1
- package/dist/domain/agentexecution/controller.js +24 -14
- package/dist/domain/agentexecution/controller.js.map +1 -1
- package/dist/domain/agentexecution/create-execution-context-step.d.ts +11 -12
- package/dist/domain/agentexecution/create-execution-context-step.d.ts.map +1 -1
- package/dist/domain/agentexecution/create-execution-context-step.js +67 -84
- package/dist/domain/agentexecution/create-execution-context-step.js.map +1 -1
- package/dist/domain/agentexecution/create-steps.d.ts +5 -6
- package/dist/domain/agentexecution/create-steps.d.ts.map +1 -1
- package/dist/domain/agentexecution/create-steps.js +7 -7
- package/dist/domain/agentexecution/create-steps.js.map +1 -1
- package/dist/domain/agentexecution/engine.d.ts +7 -8
- package/dist/domain/agentexecution/engine.d.ts.map +1 -1
- package/dist/domain/agentexecution/engine.js +2 -2
- package/dist/domain/agentexecution/engine.js.map +1 -1
- package/dist/domain/agentexecution/filereview/author.d.ts +3 -3
- package/dist/domain/agentexecution/filereview/author.js +4 -4
- package/dist/domain/agentexecution/filereview/author.js.map +1 -1
- package/dist/domain/agentexecution/filereview/autokeep.js +2 -2
- package/dist/domain/agentexecution/filereview/autokeep.js.map +1 -1
- package/dist/domain/agentexecution/filereview/gate.d.ts +1 -1
- package/dist/domain/agentexecution/filereview/gate.js +1 -1
- package/dist/domain/agentexecution/filereview/progress.d.ts.map +1 -1
- package/dist/domain/agentexecution/filereview/progress.js +1 -2
- package/dist/domain/agentexecution/filereview/progress.js.map +1 -1
- package/dist/domain/agentexecution/lifecycle.d.ts +18 -4
- package/dist/domain/agentexecution/lifecycle.d.ts.map +1 -1
- package/dist/domain/agentexecution/lifecycle.js +33 -36
- package/dist/domain/agentexecution/lifecycle.js.map +1 -1
- package/dist/domain/agentexecution/phases.d.ts +12 -0
- package/dist/domain/agentexecution/phases.d.ts.map +1 -1
- package/dist/domain/agentexecution/phases.js +22 -0
- package/dist/domain/agentexecution/phases.js.map +1 -1
- package/dist/domain/agentexecution/record-runner-lineage-labels.d.ts +1 -2
- package/dist/domain/agentexecution/record-runner-lineage-labels.d.ts.map +1 -1
- package/dist/domain/agentexecution/record-runner-lineage-labels.js.map +1 -1
- package/dist/domain/agentexecution/run-person.d.ts +45 -0
- package/dist/domain/agentexecution/run-person.d.ts.map +1 -0
- package/dist/domain/agentexecution/run-person.js +17 -0
- package/dist/domain/agentexecution/run-person.js.map +1 -0
- package/dist/domain/agentexecution/run-target.d.ts +1 -1
- package/dist/domain/agentexecution/session-binding.d.ts +6 -0
- package/dist/domain/agentexecution/session-binding.d.ts.map +1 -0
- package/dist/domain/agentexecution/session-binding.js +126 -0
- package/dist/domain/agentexecution/session-binding.js.map +1 -0
- package/dist/domain/agentexecution/status-observers.d.ts +2 -2
- package/dist/domain/agentexecution/status-observers.d.ts.map +1 -1
- package/dist/domain/agentexecution/status-observers.js +8 -9
- package/dist/domain/agentexecution/status-observers.js.map +1 -1
- package/dist/domain/agentexecution/steps.d.ts +2 -2
- package/dist/domain/agentexecution/steps.js +2 -2
- package/dist/domain/agentexecution/stream-broker.d.ts +1 -1
- package/dist/domain/agentexecution/submit-approval.d.ts +3 -3
- package/dist/domain/agentexecution/submit-approval.d.ts.map +1 -1
- package/dist/domain/agentexecution/submit-approval.js +4 -4
- package/dist/domain/agentexecution/submit-approval.js.map +1 -1
- package/dist/domain/agentexecution/submit-file-decision.d.ts +2 -2
- package/dist/domain/agentexecution/submit-file-decision.d.ts.map +1 -1
- package/dist/domain/agentexecution/submit-file-decision.js +1 -1
- package/dist/domain/agentexecution/submit-file-decision.js.map +1 -1
- package/dist/domain/agentexecution/subscribe.d.ts +1 -1
- package/dist/domain/agentexecution/subscribe.d.ts.map +1 -1
- package/dist/domain/agentexecution/subscribe.js +4 -5
- package/dist/domain/agentexecution/subscribe.js.map +1 -1
- package/dist/domain/agentexecution/temporal/config.d.ts +4 -5
- package/dist/domain/agentexecution/temporal/config.d.ts.map +1 -1
- package/dist/domain/agentexecution/temporal/config.js +4 -5
- package/dist/domain/agentexecution/temporal/config.js.map +1 -1
- package/dist/domain/agentexecution/update-status.d.ts +3 -3
- package/dist/domain/agentexecution/update-status.d.ts.map +1 -1
- package/dist/domain/agentexecution/update-status.js +10 -10
- package/dist/domain/agentexecution/update-status.js.map +1 -1
- package/dist/domain/agentexecution/usage.d.ts +4 -4
- package/dist/domain/agentexecution/usage.d.ts.map +1 -1
- package/dist/domain/agentexecution/usage.js +11 -11
- package/dist/domain/agentexecution/usage.js.map +1 -1
- package/dist/domain/agentinstance/controller.d.ts +6 -6
- package/dist/domain/agentinstance/controller.d.ts.map +1 -1
- package/dist/domain/agentinstance/controller.js +2 -2
- package/dist/domain/agentinstance/controller.js.map +1 -1
- package/dist/domain/agentinstance/steps.d.ts +2 -2
- package/dist/domain/agentinstance/steps.js +5 -5
- package/dist/domain/agentinstance/steps.js.map +1 -1
- package/dist/domain/agentshare/constants.d.ts +1 -1
- package/dist/domain/agentshare/constants.js +1 -1
- package/dist/domain/agentshare/controller.d.ts +5 -5
- package/dist/domain/agentshare/controller.d.ts.map +1 -1
- package/dist/domain/agentshare/controller.js +11 -13
- package/dist/domain/agentshare/controller.js.map +1 -1
- package/dist/domain/agentshare/steps.d.ts +1 -1
- package/dist/domain/agentshare/steps.d.ts.map +1 -1
- package/dist/domain/agentshare/steps.js +5 -6
- package/dist/domain/agentshare/steps.js.map +1 -1
- package/dist/domain/apikey/controller.d.ts +13 -16
- package/dist/domain/apikey/controller.d.ts.map +1 -1
- package/dist/domain/apikey/controller.js +8 -8
- package/dist/domain/apikey/controller.js.map +1 -1
- package/dist/domain/apikey/keymaterial.js +2 -2
- package/dist/domain/apikey/lookup.d.ts +1 -1
- package/dist/domain/apikey/lookup.d.ts.map +1 -1
- package/dist/domain/apikey/lookup.js +5 -6
- package/dist/domain/apikey/lookup.js.map +1 -1
- package/dist/domain/apikey/steps.d.ts +1 -2
- package/dist/domain/apikey/steps.d.ts.map +1 -1
- package/dist/domain/apikey/steps.js +9 -12
- package/dist/domain/apikey/steps.js.map +1 -1
- package/dist/domain/apikey/verifier.d.ts +3 -3
- package/dist/domain/apikey/verifier.d.ts.map +1 -1
- package/dist/domain/apikey/verifier.js +59 -21
- package/dist/domain/apikey/verifier.js.map +1 -1
- package/dist/domain/artifact/constants.d.ts +2 -2
- package/dist/domain/artifact/constants.js +2 -2
- package/dist/domain/artifact/controller.d.ts +1 -1
- package/dist/domain/artifact/controller.d.ts.map +1 -1
- package/dist/domain/artifact/controller.js +7 -10
- package/dist/domain/artifact/controller.js.map +1 -1
- package/dist/domain/artifact/file-server.d.ts +2 -2
- package/dist/domain/artifact/file-server.js +4 -4
- package/dist/domain/artifact/file-server.js.map +1 -1
- package/dist/domain/channelapp/constants.d.ts +1 -1
- package/dist/domain/channelapp/constants.js +1 -1
- package/dist/domain/channelapp/controller.d.ts +2 -2
- package/dist/domain/channelapp/controller.d.ts.map +1 -1
- package/dist/domain/channelapp/steps.js +3 -3
- package/dist/domain/environment/constants.d.ts +3 -3
- package/dist/domain/environment/constants.js +3 -3
- package/dist/domain/environment/controller.d.ts +3 -3
- package/dist/domain/environment/controller.d.ts.map +1 -1
- package/dist/domain/environment/controller.js +31 -3
- package/dist/domain/environment/controller.js.map +1 -1
- package/dist/domain/environment/personal.d.ts +18 -13
- package/dist/domain/environment/personal.d.ts.map +1 -1
- package/dist/domain/environment/personal.js +82 -32
- package/dist/domain/environment/personal.js.map +1 -1
- package/dist/domain/environment/resolution/resolution.js +2 -2
- package/dist/domain/environment/steps.d.ts +12 -10
- package/dist/domain/environment/steps.d.ts.map +1 -1
- package/dist/domain/environment/steps.js +14 -12
- package/dist/domain/environment/steps.js.map +1 -1
- package/dist/domain/executioncontext/constants.d.ts +2 -2
- package/dist/domain/executioncontext/constants.js +2 -2
- package/dist/domain/executioncontext/contexts-for-execution.d.ts +10 -0
- package/dist/domain/executioncontext/contexts-for-execution.d.ts.map +1 -0
- package/dist/domain/executioncontext/contexts-for-execution.js +31 -0
- package/dist/domain/executioncontext/contexts-for-execution.js.map +1 -0
- package/dist/domain/executioncontext/controller.d.ts +10 -3
- package/dist/domain/executioncontext/controller.d.ts.map +1 -1
- package/dist/domain/executioncontext/controller.js +8 -5
- package/dist/domain/executioncontext/controller.js.map +1 -1
- package/dist/domain/executioncontext/internal-delete.d.ts +27 -0
- package/dist/domain/executioncontext/internal-delete.d.ts.map +1 -0
- package/dist/domain/executioncontext/internal-delete.js +125 -0
- package/dist/domain/executioncontext/internal-delete.js.map +1 -0
- package/dist/domain/executioncontext/resolve-values-for-caller.d.ts +8 -6
- package/dist/domain/executioncontext/resolve-values-for-caller.d.ts.map +1 -1
- package/dist/domain/executioncontext/resolve-values-for-caller.js +3 -3
- package/dist/domain/executioncontext/resolve-values-for-caller.js.map +1 -1
- package/dist/domain/executioncontext/steps.d.ts +34 -11
- package/dist/domain/executioncontext/steps.d.ts.map +1 -1
- package/dist/domain/executioncontext/steps.js +63 -39
- package/dist/domain/executioncontext/steps.js.map +1 -1
- package/dist/domain/executioncontext/temporal/delete-execution-context.d.ts +15 -8
- package/dist/domain/executioncontext/temporal/delete-execution-context.d.ts.map +1 -1
- package/dist/domain/executioncontext/temporal/delete-execution-context.js +10 -63
- package/dist/domain/executioncontext/temporal/delete-execution-context.js.map +1 -1
- package/dist/domain/iampolicy/access-lists.js +1 -1
- package/dist/domain/iampolicy/constants.d.ts +13 -14
- package/dist/domain/iampolicy/constants.d.ts.map +1 -1
- package/dist/domain/iampolicy/constants.js +13 -14
- package/dist/domain/iampolicy/constants.js.map +1 -1
- package/dist/domain/iampolicy/controller.js +28 -28
- package/dist/domain/iampolicy/controller.js.map +1 -1
- package/dist/domain/iampolicy/display-resolver.d.ts.map +1 -1
- package/dist/domain/iampolicy/display-resolver.js +10 -29
- package/dist/domain/iampolicy/display-resolver.js.map +1 -1
- package/dist/domain/iampolicy/grant-path.d.ts +12 -4
- package/dist/domain/iampolicy/grant-path.d.ts.map +1 -1
- package/dist/domain/iampolicy/grant-path.js +37 -22
- package/dist/domain/iampolicy/grant-path.js.map +1 -1
- package/dist/domain/iampolicy/grant-scope.js +2 -2
- package/dist/domain/iampolicy/membership.d.ts +22 -24
- package/dist/domain/iampolicy/membership.d.ts.map +1 -1
- package/dist/domain/iampolicy/membership.js.map +1 -1
- package/dist/domain/iampolicy/permissions.d.ts +3 -3
- package/dist/domain/iampolicy/permissions.js +3 -3
- package/dist/domain/iampolicy/resource-store.js +5 -5
- package/dist/domain/iampolicy/role-lifecycle.js +10 -10
- package/dist/domain/iampolicy/roles.js +3 -3
- package/dist/domain/iampolicy/roles.js.map +1 -1
- package/dist/domain/iampolicy/specs.js +4 -4
- package/dist/domain/iampolicy/steps.d.ts +5 -6
- package/dist/domain/iampolicy/steps.d.ts.map +1 -1
- package/dist/domain/iampolicy/steps.js +7 -8
- package/dist/domain/iampolicy/steps.js.map +1 -1
- package/dist/domain/iampolicy/store-contract.d.ts.map +1 -1
- package/dist/domain/iampolicy/store-contract.js +5 -6
- package/dist/domain/iampolicy/store-contract.js.map +1 -1
- package/dist/domain/iampolicy/store.d.ts +3 -3
- package/dist/domain/iampolicy/wire-refusals.d.ts +1 -1
- package/dist/domain/iampolicy/wire-refusals.d.ts.map +1 -1
- package/dist/domain/iampolicy/wire-refusals.js +4 -5
- package/dist/domain/iampolicy/wire-refusals.js.map +1 -1
- package/dist/domain/identityaccount/actor.d.ts +45 -0
- package/dist/domain/identityaccount/actor.d.ts.map +1 -1
- package/dist/domain/identityaccount/actor.js +24 -4
- package/dist/domain/identityaccount/actor.js.map +1 -1
- package/dist/domain/identityaccount/constants.d.ts +15 -12
- package/dist/domain/identityaccount/constants.d.ts.map +1 -1
- package/dist/domain/identityaccount/constants.js +8 -5
- package/dist/domain/identityaccount/constants.js.map +1 -1
- package/dist/domain/identityaccount/controller.d.ts +3 -4
- package/dist/domain/identityaccount/controller.d.ts.map +1 -1
- package/dist/domain/identityaccount/controller.js +25 -21
- package/dist/domain/identityaccount/controller.js.map +1 -1
- package/dist/domain/identityaccount/operator.js +3 -3
- package/dist/domain/identityaccount/provisioning.js +5 -5
- package/dist/domain/identityaccount/resolve.d.ts +51 -22
- package/dist/domain/identityaccount/resolve.d.ts.map +1 -1
- package/dist/domain/identityaccount/resolve.js +38 -7
- package/dist/domain/identityaccount/resolve.js.map +1 -1
- package/dist/domain/identityaccount/resource-store.d.ts.map +1 -1
- package/dist/domain/identityaccount/resource-store.js +35 -13
- package/dist/domain/identityaccount/resource-store.js.map +1 -1
- package/dist/domain/identityaccount/steps.d.ts +5 -5
- package/dist/domain/identityaccount/steps.d.ts.map +1 -1
- package/dist/domain/identityaccount/steps.js +5 -5
- package/dist/domain/identityaccount/steps.js.map +1 -1
- package/dist/domain/identityaccount/store-contract.d.ts.map +1 -1
- package/dist/domain/identityaccount/store-contract.js +69 -5
- package/dist/domain/identityaccount/store-contract.js.map +1 -1
- package/dist/domain/identityaccount/store.d.ts +15 -5
- package/dist/domain/identityaccount/store.d.ts.map +1 -1
- package/dist/domain/identityaccount/store.js.map +1 -1
- package/dist/domain/mcpserver/complete-oauth-connect.d.ts.map +1 -1
- package/dist/domain/mcpserver/complete-oauth-connect.js +7 -8
- package/dist/domain/mcpserver/complete-oauth-connect.js.map +1 -1
- package/dist/domain/mcpserver/connect-sandbox.d.ts +1 -1
- package/dist/domain/mcpserver/connect-status.d.ts +2 -2
- package/dist/domain/mcpserver/connect-status.js +2 -2
- package/dist/domain/mcpserver/connect.d.ts +6 -7
- package/dist/domain/mcpserver/connect.d.ts.map +1 -1
- package/dist/domain/mcpserver/connect.js +10 -7
- package/dist/domain/mcpserver/connect.js.map +1 -1
- package/dist/domain/mcpserver/controller.d.ts +3 -3
- package/dist/domain/mcpserver/controller.d.ts.map +1 -1
- package/dist/domain/mcpserver/controller.js +8 -9
- package/dist/domain/mcpserver/controller.js.map +1 -1
- package/dist/domain/mcpserver/disconnect-oauth.js +1 -1
- package/dist/domain/mcpserver/disconnect-oauth.js.map +1 -1
- package/dist/domain/mcpserver/enabledtools/enabledtools.d.ts +2 -2
- package/dist/domain/mcpserver/engine.d.ts +2 -3
- package/dist/domain/mcpserver/engine.d.ts.map +1 -1
- package/dist/domain/mcpserver/engine.js +1 -2
- package/dist/domain/mcpserver/engine.js.map +1 -1
- package/dist/domain/mcpserver/get-oauth-grant-status.js +1 -1
- package/dist/domain/mcpserver/get-oauth-grant-status.js.map +1 -1
- package/dist/domain/mcpserver/initiate-oauth-connect.d.ts +1 -1
- package/dist/domain/mcpserver/initiate-oauth-connect.js +2 -2
- package/dist/domain/mcpserver/initiate-oauth-connect.js.map +1 -1
- package/dist/domain/mcpserver/oauth/managed-env.d.ts +5 -5
- package/dist/domain/mcpserver/oauth/managed-env.js +5 -5
- package/dist/domain/mcpserver/oauth/refresh.d.ts +2 -2
- package/dist/domain/mcpserver/oauth/token.d.ts +2 -2
- package/dist/domain/memory/constants.d.ts +5 -5
- package/dist/domain/memory/constants.js +5 -5
- package/dist/domain/memory/controller.d.ts +13 -15
- package/dist/domain/memory/controller.d.ts.map +1 -1
- package/dist/domain/memory/controller.js +12 -14
- package/dist/domain/memory/controller.js.map +1 -1
- package/dist/domain/memory/steps.d.ts +15 -15
- package/dist/domain/memory/steps.d.ts.map +1 -1
- package/dist/domain/memory/steps.js +19 -21
- package/dist/domain/memory/steps.js.map +1 -1
- package/dist/domain/oauthapp/controller.d.ts +2 -2
- package/dist/domain/oauthapp/controller.d.ts.map +1 -1
- package/dist/domain/oauthapp/refresolution.js +4 -4
- package/dist/domain/organization/controller.d.ts +7 -8
- package/dist/domain/organization/controller.d.ts.map +1 -1
- package/dist/domain/organization/controller.js +8 -8
- package/dist/domain/organization/controller.js.map +1 -1
- package/dist/domain/platform/controller.d.ts +4 -4
- package/dist/domain/platform/version.d.ts +1 -1
- package/dist/domain/platform/version.js +1 -1
- package/dist/domain/platformclient/constants.js +1 -1
- package/dist/domain/platformclient/constants.js.map +1 -1
- package/dist/domain/platformclient/controller.js +2 -2
- package/dist/domain/platformclient/controller.js.map +1 -1
- package/dist/domain/platformclient/mint.js +2 -2
- package/dist/domain/platformclient/mint.js.map +1 -1
- package/dist/domain/platformclient/resource-store.js +1 -1
- package/dist/domain/platformclient/store-contract.js +1 -1
- package/dist/domain/platformclient/store.d.ts +2 -2
- package/dist/domain/plugin/constants.d.ts +1 -1
- package/dist/domain/plugin/constants.js +1 -1
- package/dist/domain/schedule/clock.d.ts +2 -2
- package/dist/domain/schedule/clock.js +6 -6
- package/dist/domain/schedule/controller.d.ts +6 -6
- package/dist/domain/schedule/controller.d.ts.map +1 -1
- package/dist/domain/schedule/controller.js +7 -9
- package/dist/domain/schedule/controller.js.map +1 -1
- package/dist/domain/schedule/cron.d.ts +2 -2
- package/dist/domain/schedule/cron.js +4 -4
- package/dist/domain/schedule/list-runs.js +1 -1
- package/dist/domain/schedule/persist-update.js +1 -1
- package/dist/domain/schedule/resume.d.ts +3 -3
- package/dist/domain/schedule/resume.js +1 -1
- package/dist/domain/schedule/steps.d.ts +5 -5
- package/dist/domain/schedule/steps.js +6 -6
- package/dist/domain/schedule/steps.js.map +1 -1
- package/dist/domain/schedule/trigger.d.ts +5 -5
- package/dist/domain/schedule/trigger.d.ts.map +1 -1
- package/dist/domain/schedule/trigger.js +6 -7
- package/dist/domain/schedule/trigger.js.map +1 -1
- package/dist/domain/session/constants.d.ts +2 -2
- package/dist/domain/session/constants.js +2 -2
- package/dist/domain/session/controller.d.ts +5 -5
- package/dist/domain/session/controller.d.ts.map +1 -1
- package/dist/domain/session/controller.js +9 -9
- package/dist/domain/session/controller.js.map +1 -1
- package/dist/domain/session/run-target.d.ts +1 -1
- package/dist/domain/session/steps.d.ts +5 -2
- package/dist/domain/session/steps.d.ts.map +1 -1
- package/dist/domain/session/steps.js +15 -24
- package/dist/domain/session/steps.js.map +1 -1
- package/dist/domain/skill/controller.d.ts +2 -2
- package/dist/domain/skill/controller.d.ts.map +1 -1
- package/dist/domain/skill/controller.js +1 -1
- package/dist/domain/skill/push.d.ts +1 -1
- package/dist/domain/skill/push.js +1 -1
- package/dist/domain/skill/storage/artifact-storage.d.ts +4 -4
- package/dist/domain/skill/storage/frontmatter.d.ts.map +1 -1
- package/dist/domain/skill/storage/frontmatter.js +2 -3
- package/dist/domain/skill/storage/frontmatter.js.map +1 -1
- package/dist/domain/workflow/agent-call-references.d.ts +19 -5
- package/dist/domain/workflow/agent-call-references.d.ts.map +1 -1
- package/dist/domain/workflow/agent-call-references.js +28 -4
- package/dist/domain/workflow/agent-call-references.js.map +1 -1
- package/dist/domain/workflow/controller.d.ts +4 -4
- package/dist/domain/workflow/controller.d.ts.map +1 -1
- package/dist/domain/workflow/controller.js +12 -15
- package/dist/domain/workflow/controller.js.map +1 -1
- package/dist/domain/workflow/converter/converter.js +2 -2
- package/dist/domain/workflow/converter/converter.js.map +1 -1
- package/dist/domain/workflow/converter/task-converters.d.ts +1 -1
- package/dist/domain/workflow/converter/task-converters.js +3 -3
- package/dist/domain/workflow/converter/task-converters.js.map +1 -1
- package/dist/domain/workflow/registry/data/task-kind-registry.json +11 -11
- package/dist/domain/workflow/registry/document-catalog.d.ts +4 -5
- package/dist/domain/workflow/registry/document-catalog.d.ts.map +1 -1
- package/dist/domain/workflow/registry/document-catalog.js +1 -1
- package/dist/domain/workflow/registry/document-catalog.js.map +1 -1
- package/dist/domain/workflow/registry/model-catalog-provider.d.ts +4 -5
- package/dist/domain/workflow/registry/model-catalog-provider.d.ts.map +1 -1
- package/dist/domain/workflow/registry/model-catalog-provider.js +4 -5
- package/dist/domain/workflow/registry/model-catalog-provider.js.map +1 -1
- package/dist/domain/workflow/registry/model-registry-store.d.ts +6 -6
- package/dist/domain/workflow/registry/pin-validation.d.ts +4 -5
- package/dist/domain/workflow/registry/pin-validation.d.ts.map +1 -1
- package/dist/domain/workflow/registry/pin-validation.js +4 -5
- package/dist/domain/workflow/registry/pin-validation.js.map +1 -1
- package/dist/domain/workflow/steps.d.ts +5 -5
- package/dist/domain/workflow/steps.d.ts.map +1 -1
- package/dist/domain/workflow/steps.js +14 -6
- package/dist/domain/workflow/steps.js.map +1 -1
- package/dist/domain/workflow/validation/budget-warnings.js +1 -1
- package/dist/domain/workflow/validation/format-violation.d.ts +1 -1
- package/dist/domain/workflowexecution/constants.d.ts +6 -6
- package/dist/domain/workflowexecution/constants.js +6 -6
- package/dist/domain/workflowexecution/controller.d.ts +19 -12
- package/dist/domain/workflowexecution/controller.d.ts.map +1 -1
- package/dist/domain/workflowexecution/controller.js +10 -9
- package/dist/domain/workflowexecution/controller.js.map +1 -1
- package/dist/domain/workflowexecution/create-execution-context-step.d.ts +7 -0
- package/dist/domain/workflowexecution/create-execution-context-step.d.ts.map +1 -1
- package/dist/domain/workflowexecution/create-execution-context-step.js.map +1 -1
- package/dist/domain/workflowexecution/create-steps.d.ts +3 -3
- package/dist/domain/workflowexecution/create-steps.js +5 -5
- package/dist/domain/workflowexecution/create-steps.js.map +1 -1
- package/dist/domain/workflowexecution/engine.d.ts +13 -14
- package/dist/domain/workflowexecution/engine.d.ts.map +1 -1
- package/dist/domain/workflowexecution/engine.js +2 -2
- package/dist/domain/workflowexecution/engine.js.map +1 -1
- package/dist/domain/workflowexecution/get-event-log.d.ts +1 -1
- package/dist/domain/workflowexecution/get-event-log.d.ts.map +1 -1
- package/dist/domain/workflowexecution/get-event-log.js +1 -1
- package/dist/domain/workflowexecution/get-event-log.js.map +1 -1
- package/dist/domain/workflowexecution/get-execution-summary.d.ts +1 -1
- package/dist/domain/workflowexecution/get-execution-summary.d.ts.map +1 -1
- package/dist/domain/workflowexecution/get-execution-summary.js +3 -3
- package/dist/domain/workflowexecution/lifecycle.d.ts +20 -6
- package/dist/domain/workflowexecution/lifecycle.d.ts.map +1 -1
- package/dist/domain/workflowexecution/lifecycle.js +32 -41
- package/dist/domain/workflowexecution/lifecycle.js.map +1 -1
- package/dist/domain/workflowexecution/list-pending-approvals.js +1 -1
- package/dist/domain/workflowexecution/run-target.d.ts +1 -1
- package/dist/domain/workflowexecution/send-signal.d.ts +1 -1
- package/dist/domain/workflowexecution/send-signal.d.ts.map +1 -1
- package/dist/domain/workflowexecution/stream-broker.d.ts +7 -8
- package/dist/domain/workflowexecution/stream-broker.d.ts.map +1 -1
- package/dist/domain/workflowexecution/stream-broker.js.map +1 -1
- package/dist/domain/workflowexecution/submit-approval.d.ts +3 -3
- package/dist/domain/workflowexecution/submit-approval.d.ts.map +1 -1
- package/dist/domain/workflowexecution/submit-file-decision.d.ts +1 -1
- package/dist/domain/workflowexecution/submit-file-decision.d.ts.map +1 -1
- package/dist/domain/workflowexecution/submit-workflow-task-approval.d.ts +1 -1
- package/dist/domain/workflowexecution/submit-workflow-task-approval.d.ts.map +1 -1
- package/dist/domain/workflowexecution/subscribe-events.d.ts +1 -1
- package/dist/domain/workflowexecution/subscribe-events.d.ts.map +1 -1
- package/dist/domain/workflowexecution/subscribe-events.js +1 -1
- package/dist/domain/workflowexecution/subscribe-events.js.map +1 -1
- package/dist/domain/workflowexecution/subscribe.d.ts +1 -1
- package/dist/domain/workflowexecution/subscribe.d.ts.map +1 -1
- package/dist/domain/workflowexecution/subscribe.js +4 -5
- package/dist/domain/workflowexecution/subscribe.js.map +1 -1
- package/dist/domain/workflowexecution/temporal/config.d.ts +1 -1
- package/dist/domain/workflowexecution/temporal/config.js +1 -1
- package/dist/domain/workflowexecution/update-status.d.ts +2 -2
- package/dist/domain/workflowexecution/update-status.d.ts.map +1 -1
- package/dist/domain/workflowexecution/update-status.js +6 -6
- package/dist/domain/workflowexecution/update-status.js.map +1 -1
- package/dist/domain/workflowinstance/controller.d.ts +6 -6
- package/dist/domain/workflowinstance/controller.d.ts.map +1 -1
- package/dist/domain/workflowinstance/controller.js +7 -8
- package/dist/domain/workflowinstance/controller.js.map +1 -1
- package/dist/domain/workflowinstance/steps.d.ts +1 -1
- package/dist/domain/workflowinstance/steps.d.ts.map +1 -1
- package/dist/domain/workflowinstance/steps.js +1 -2
- package/dist/domain/workflowinstance/steps.js.map +1 -1
- package/dist/encryption/codec.d.ts +4 -4
- package/dist/encryption/encryption.d.ts +4 -4
- package/dist/encryption/encryption.d.ts.map +1 -1
- package/dist/encryption/encryption.js +6 -7
- package/dist/encryption/encryption.js.map +1 -1
- package/dist/encryption/errors.d.ts +1 -1
- package/dist/encryption/errors.js +1 -1
- package/dist/encryption/key-manager.js +1 -1
- package/dist/encryption/scope.d.ts +2 -3
- package/dist/encryption/scope.d.ts.map +1 -1
- package/dist/encryption/scope.js +2 -3
- package/dist/encryption/scope.js.map +1 -1
- package/dist/encryption/v1-codec.js +4 -4
- package/dist/envmerge/envmerge.d.ts +3 -3
- package/dist/extensions/authorization-queries.d.ts +9 -9
- package/dist/extensions/authorizer.d.ts +10 -12
- package/dist/extensions/authorizer.d.ts.map +1 -1
- package/dist/extensions/caller-guards.d.ts +4 -5
- package/dist/extensions/caller-guards.d.ts.map +1 -1
- package/dist/extensions/drivers.d.ts +47 -58
- package/dist/extensions/drivers.d.ts.map +1 -1
- package/dist/extensions/gate-slots.d.ts +13 -15
- package/dist/extensions/gate-slots.d.ts.map +1 -1
- package/dist/extensions/gate-slots.js +2 -2
- package/dist/extensions/gate-slots.js.map +1 -1
- package/dist/extensions/identity-federation.d.ts +1 -1
- package/dist/extensions/identity.d.ts +19 -16
- package/dist/extensions/identity.d.ts.map +1 -1
- package/dist/extensions/identity.js +9 -10
- package/dist/extensions/identity.js.map +1 -1
- package/dist/extensions/list-read-scope.d.ts +15 -15
- package/dist/extensions/list-read-scope.d.ts.map +1 -1
- package/dist/extensions/list-read-scope.js +3 -2
- package/dist/extensions/list-read-scope.js.map +1 -1
- package/dist/extensions/organization-directory.d.ts +2 -3
- package/dist/extensions/organization-directory.d.ts.map +1 -1
- package/dist/extensions/organization-directory.js.map +1 -1
- package/dist/extensions/policy-grant-scope.d.ts +5 -6
- package/dist/extensions/policy-grant-scope.d.ts.map +1 -1
- package/dist/extensions/registry.d.ts +39 -41
- package/dist/extensions/registry.d.ts.map +1 -1
- package/dist/extensions/registry.js +1 -1
- package/dist/extensions/registry.js.map +1 -1
- package/dist/extensions/resource-authorization.d.ts +24 -15
- package/dist/extensions/resource-authorization.d.ts.map +1 -1
- package/dist/extensions/schedule-fire-caller.d.ts +2 -2
- package/dist/extensions/status-hooks.d.ts +7 -8
- package/dist/extensions/status-hooks.d.ts.map +1 -1
- package/dist/gocompat/query-escape.d.ts +2 -2
- package/dist/gocompat/query-escape.js +2 -2
- package/dist/gocompat/trim.js +1 -1
- package/dist/identity/oidc-discovery.d.ts +1 -1
- package/dist/identity/oidc-discovery.js +1 -1
- package/dist/identity/oidc-userinfo.d.ts +1 -1
- package/dist/identity/oidc-verifier.d.ts +1 -1
- package/dist/identity/oidc-verifier.d.ts.map +1 -1
- package/dist/identity/oidc-verifier.js +29 -23
- package/dist/identity/oidc-verifier.js.map +1 -1
- package/dist/index.d.ts +30 -22
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +42 -36
- package/dist/index.js.map +1 -1
- package/dist/main.js +6 -1
- package/dist/main.js.map +1 -1
- package/dist/observability/rpc-metrics.d.ts +2 -2
- package/dist/observability/rpc-metrics.js +2 -2
- package/dist/pipeline/apiresource-meta.d.ts +2 -2
- package/dist/pipeline/apiresource-meta.js +7 -7
- package/dist/pipeline/chain.d.ts +5 -7
- package/dist/pipeline/chain.d.ts.map +1 -1
- package/dist/pipeline/chain.js.map +1 -1
- package/dist/pipeline/errors.d.ts +7 -0
- package/dist/pipeline/errors.d.ts.map +1 -1
- package/dist/pipeline/errors.js +9 -0
- package/dist/pipeline/errors.js.map +1 -1
- package/dist/pipeline/interceptors/auth.d.ts +16 -15
- package/dist/pipeline/interceptors/auth.d.ts.map +1 -1
- package/dist/pipeline/interceptors/auth.js +33 -34
- package/dist/pipeline/interceptors/auth.js.map +1 -1
- package/dist/pipeline/interceptors/error-boundary.d.ts +1 -1
- package/dist/pipeline/interceptors/error-boundary.d.ts.map +1 -1
- package/dist/pipeline/interceptors/error-boundary.js +7 -10
- package/dist/pipeline/interceptors/error-boundary.js.map +1 -1
- package/dist/pipeline/interceptors/protovalidate.d.ts.map +1 -1
- package/dist/pipeline/interceptors/protovalidate.js +4 -3
- package/dist/pipeline/interceptors/protovalidate.js.map +1 -1
- package/dist/pipeline/interceptors/request-metrics.d.ts.map +1 -1
- package/dist/pipeline/interceptors/request-metrics.js +2 -3
- package/dist/pipeline/interceptors/request-metrics.js.map +1 -1
- package/dist/pipeline/keyed-serializer.d.ts +48 -0
- package/dist/pipeline/keyed-serializer.d.ts.map +1 -0
- package/dist/pipeline/keyed-serializer.js +60 -0
- package/dist/pipeline/keyed-serializer.js.map +1 -0
- package/dist/pipeline/request-context.d.ts +2 -2
- package/dist/pipeline/request-context.d.ts.map +1 -1
- package/dist/pipeline/request-context.js +4 -4
- package/dist/pipeline/request-context.js.map +1 -1
- package/dist/pipeline/steps/authorization-tuples.d.ts +34 -16
- package/dist/pipeline/steps/authorization-tuples.d.ts.map +1 -1
- package/dist/pipeline/steps/authorization-tuples.js +46 -29
- package/dist/pipeline/steps/authorization-tuples.js.map +1 -1
- package/dist/pipeline/steps/authorize-run-target.d.ts +4 -4
- package/dist/pipeline/steps/authorize.d.ts +6 -7
- package/dist/pipeline/steps/authorize.d.ts.map +1 -1
- package/dist/pipeline/steps/authorize.js +21 -22
- package/dist/pipeline/steps/authorize.js.map +1 -1
- package/dist/pipeline/steps/defaults.d.ts +7 -7
- package/dist/pipeline/steps/defaults.js +9 -9
- package/dist/pipeline/steps/defaults.js.map +1 -1
- package/dist/pipeline/steps/delete.d.ts +1 -1
- package/dist/pipeline/steps/guard-memory-capture.d.ts +3 -4
- package/dist/pipeline/steps/guard-memory-capture.d.ts.map +1 -1
- package/dist/pipeline/steps/guard-memory-capture.js.map +1 -1
- package/dist/pipeline/steps/guard-reserved-labels.d.ts.map +1 -1
- package/dist/pipeline/steps/guard-reserved-labels.js +7 -8
- package/dist/pipeline/steps/guard-reserved-labels.js.map +1 -1
- package/dist/pipeline/steps/helpers.d.ts +0 -10
- package/dist/pipeline/steps/helpers.d.ts.map +1 -1
- package/dist/pipeline/steps/helpers.js +1 -30
- package/dist/pipeline/steps/helpers.js.map +1 -1
- package/dist/pipeline/steps/load-existing.d.ts +1 -1
- package/dist/pipeline/steps/load-for-apply.d.ts +1 -1
- package/dist/pipeline/steps/load-for-apply.js +1 -1
- package/dist/pipeline/steps/load-target.d.ts +1 -1
- package/dist/pipeline/steps/references.d.ts +87 -16
- package/dist/pipeline/steps/references.d.ts.map +1 -1
- package/dist/pipeline/steps/references.js +115 -12
- package/dist/pipeline/steps/references.js.map +1 -1
- package/dist/pipeline/steps/secret-cleanup.d.ts +2 -3
- package/dist/pipeline/steps/secret-cleanup.d.ts.map +1 -1
- package/dist/pipeline/steps/secret-cleanup.js.map +1 -1
- package/dist/pipeline/steps/server-stamped-reserved-labels.d.ts +1 -2
- 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 +1 -1
- package/dist/pipeline/steps/shapes.js +1 -1
- package/dist/query/activity/handler.d.ts +1 -1
- package/dist/query/activity/handler.js +3 -3
- package/dist/query/activity/handler.js.map +1 -1
- package/dist/query/search/controller.d.ts +1 -2
- package/dist/query/search/controller.d.ts.map +1 -1
- package/dist/query/search/controller.js.map +1 -1
- package/dist/query/search/criteria.d.ts +4 -4
- package/dist/query/search/criteria.js +4 -4
- package/dist/query/search/extractor.d.ts +2 -2
- package/dist/query/search/extractor.js +2 -2
- package/dist/query/search/handler.d.ts +1 -1
- package/dist/query/search/handler.js +1 -1
- package/dist/query/search/query-store.d.ts +2 -2
- package/dist/query/search/query-store.js +3 -3
- package/dist/query/search/query-store.js.map +1 -1
- package/dist/runnerauth/bound-execution.d.ts +2 -1
- package/dist/runnerauth/bound-execution.d.ts.map +1 -1
- package/dist/runnerauth/bound-execution.js +9 -9
- package/dist/runnerauth/bound-execution.js.map +1 -1
- package/dist/runnerauth/runner-credential-provider.d.ts +14 -20
- package/dist/runnerauth/runner-credential-provider.d.ts.map +1 -1
- package/dist/runnerauth/runner-credential-provider.js +1 -2
- package/dist/runnerauth/runner-credential-provider.js.map +1 -1
- package/dist/runnerauth/runnerauth.d.ts.map +1 -1
- package/dist/runnerauth/runnerauth.js +3 -4
- package/dist/runnerauth/runnerauth.js.map +1 -1
- package/dist/sandbox/builtins.d.ts.map +1 -1
- package/dist/sandbox/builtins.js +6 -3
- package/dist/sandbox/builtins.js.map +1 -1
- package/dist/sandbox/docker.d.ts +14 -1
- package/dist/sandbox/docker.d.ts.map +1 -1
- package/dist/sandbox/docker.js +63 -50
- package/dist/sandbox/docker.js.map +1 -1
- package/dist/sandbox/kubernetes.d.ts +1 -1
- package/dist/sandbox/kubernetes.d.ts.map +1 -1
- package/dist/sandbox/kubernetes.js +24 -13
- package/dist/sandbox/kubernetes.js.map +1 -1
- package/dist/sandbox/lane.d.ts +5 -5
- package/dist/sandbox/local-process.d.ts.map +1 -1
- package/dist/sandbox/local-process.js +8 -4
- package/dist/sandbox/local-process.js.map +1 -1
- package/dist/sandbox/naming.d.ts +20 -1
- package/dist/sandbox/naming.d.ts.map +1 -1
- package/dist/sandbox/naming.js +31 -3
- package/dist/sandbox/naming.js.map +1 -1
- package/dist/sandbox/provisioner.d.ts +77 -12
- package/dist/sandbox/provisioner.d.ts.map +1 -1
- package/dist/sandbox/provisioner.js +25 -1
- package/dist/sandbox/provisioner.js.map +1 -1
- package/dist/sandbox/runner-secret-names.d.ts +20 -0
- package/dist/sandbox/runner-secret-names.d.ts.map +1 -0
- package/dist/sandbox/runner-secret-names.js +33 -0
- package/dist/sandbox/runner-secret-names.js.map +1 -0
- package/dist/sandbox/session-activity.d.ts +10 -0
- package/dist/sandbox/session-activity.d.ts.map +1 -0
- package/dist/sandbox/session-activity.js +103 -0
- package/dist/sandbox/session-activity.js.map +1 -0
- package/dist/sandbox/steps.d.ts +1 -1
- package/dist/sandbox/steps.d.ts.map +1 -1
- package/dist/sandbox/steps.js +8 -10
- package/dist/sandbox/steps.js.map +1 -1
- package/dist/sandbox/substrate/__test-utils__/fake-gateway.d.ts +83 -0
- package/dist/sandbox/substrate/__test-utils__/fake-gateway.d.ts.map +1 -0
- package/dist/sandbox/substrate/__test-utils__/fake-gateway.js +240 -0
- package/dist/sandbox/substrate/__test-utils__/fake-gateway.js.map +1 -0
- package/dist/sandbox/substrate/builtin.d.ts +34 -0
- package/dist/sandbox/substrate/builtin.d.ts.map +1 -0
- package/dist/sandbox/substrate/builtin.js +33 -0
- package/dist/sandbox/substrate/builtin.js.map +1 -0
- package/dist/sandbox/substrate/config.d.ts +44 -0
- package/dist/sandbox/substrate/config.d.ts.map +1 -0
- package/dist/sandbox/substrate/config.js +133 -0
- package/dist/sandbox/substrate/config.js.map +1 -0
- package/dist/sandbox/substrate/delay.d.ts +7 -0
- package/dist/sandbox/substrate/delay.d.ts.map +1 -0
- package/dist/sandbox/substrate/delay.js +9 -0
- package/dist/sandbox/substrate/delay.js.map +1 -0
- package/dist/sandbox/substrate/driver.d.ts +233 -0
- package/dist/sandbox/substrate/driver.d.ts.map +1 -0
- package/dist/sandbox/substrate/driver.js +534 -0
- package/dist/sandbox/substrate/driver.js.map +1 -0
- package/dist/sandbox/substrate/egress.d.ts +6 -0
- package/dist/sandbox/substrate/egress.d.ts.map +1 -0
- package/dist/sandbox/substrate/egress.js +139 -0
- package/dist/sandbox/substrate/egress.js.map +1 -0
- package/dist/sandbox/substrate/gateway.d.ts +64 -0
- package/dist/sandbox/substrate/gateway.d.ts.map +1 -0
- package/dist/sandbox/substrate/gateway.js +310 -0
- package/dist/sandbox/substrate/gateway.js.map +1 -0
- package/dist/sandbox/substrate/gen/ateapipb/ateapi_pb.d.ts +4301 -0
- package/dist/sandbox/substrate/gen/ateapipb/ateapi_pb.d.ts.map +1 -0
- package/dist/sandbox/substrate/gen/ateapipb/ateapi_pb.js +818 -0
- package/dist/sandbox/substrate/gen/ateapipb/ateapi_pb.js.map +1 -0
- package/dist/sandbox/substrate/idle-decision.d.ts +30 -0
- package/dist/sandbox/substrate/idle-decision.d.ts.map +1 -0
- package/dist/sandbox/substrate/idle-decision.js +15 -0
- package/dist/sandbox/substrate/idle-decision.js.map +1 -0
- package/dist/sandbox/substrate/limits.d.ts +27 -0
- package/dist/sandbox/substrate/limits.d.ts.map +1 -0
- package/dist/sandbox/substrate/limits.js +27 -0
- package/dist/sandbox/substrate/limits.js.map +1 -0
- package/dist/sandbox/substrate/push.d.ts +43 -0
- package/dist/sandbox/substrate/push.d.ts.map +1 -0
- package/dist/sandbox/substrate/push.js +87 -0
- package/dist/sandbox/substrate/push.js.map +1 -0
- package/dist/sandbox/substrate/sweep.d.ts +70 -0
- package/dist/sandbox/substrate/sweep.d.ts.map +1 -0
- package/dist/sandbox/substrate/sweep.js +166 -0
- package/dist/sandbox/substrate/sweep.js.map +1 -0
- package/dist/sandbox/substrate/template.d.ts +49 -0
- package/dist/sandbox/substrate/template.d.ts.map +1 -0
- package/dist/sandbox/substrate/template.js +224 -0
- package/dist/sandbox/substrate/template.js.map +1 -0
- package/dist/store/interface.d.ts +28 -29
- package/dist/store/interface.d.ts.map +1 -1
- package/dist/store/interface.js +1 -1
- package/dist/store/interface.js.map +1 -1
- package/dist/store/logger.d.ts +2 -2
- package/dist/store/port-contract.d.ts +3 -3
- package/dist/store/port-contract.js +3 -3
- package/dist/store/postgres/migrations.d.ts +5 -6
- package/dist/store/postgres/migrations.d.ts.map +1 -1
- package/dist/store/postgres/migrations.js +9 -8
- package/dist/store/postgres/migrations.js.map +1 -1
- package/dist/store/postgres/store.d.ts +1 -1
- package/dist/store/postgres/store.d.ts.map +1 -1
- package/dist/store/postgres/store.js +18 -22
- package/dist/store/postgres/store.js.map +1 -1
- package/dist/store/postgres/tsquery.d.ts +3 -3
- package/dist/store/postgres/tsquery.js +3 -3
- package/dist/store/proto-fields.d.ts +7 -0
- package/dist/store/proto-fields.d.ts.map +1 -1
- package/dist/store/proto-fields.js +24 -1
- package/dist/store/proto-fields.js.map +1 -1
- package/dist/store/rfc3339.d.ts +2 -2
- package/dist/store/rfc3339.js +2 -2
- package/dist/store/sqlite/fts5.d.ts +5 -5
- package/dist/store/sqlite/fts5.js +5 -5
- package/dist/store/sqlite/migrations.d.ts +6 -6
- package/dist/store/sqlite/migrations.d.ts.map +1 -1
- package/dist/store/sqlite/migrations.js +6 -6
- package/dist/store/sqlite/migrations.js.map +1 -1
- package/dist/store/sqlite/store.d.ts +1 -1
- package/dist/store/sqlite/store.d.ts.map +1 -1
- package/dist/store/sqlite/store.js +20 -21
- package/dist/store/sqlite/store.js.map +1 -1
- package/dist/temporal/agentexecution/activities.d.ts +9 -1
- package/dist/temporal/agentexecution/activities.d.ts.map +1 -1
- package/dist/temporal/agentexecution/activities.js +21 -16
- package/dist/temporal/agentexecution/activities.js.map +1 -1
- package/dist/temporal/agentexecution/dispatch.js +1 -1
- package/dist/temporal/agentexecution/engine-client.d.ts +4 -4
- package/dist/temporal/agentexecution/engine-client.js +1 -1
- package/dist/temporal/agentexecution/names.d.ts +11 -12
- package/dist/temporal/agentexecution/names.d.ts.map +1 -1
- package/dist/temporal/agentexecution/names.js +11 -12
- package/dist/temporal/agentexecution/names.js.map +1 -1
- package/dist/temporal/agentexecution/worker.d.ts +10 -3
- package/dist/temporal/agentexecution/worker.d.ts.map +1 -1
- package/dist/temporal/agentexecution/worker.js +1 -0
- package/dist/temporal/agentexecution/worker.js.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 +26 -27
- package/dist/temporal/agentexecution/workflows/invoke-agent-execution.js.map +1 -1
- package/dist/temporal/manager.d.ts +8 -8
- package/dist/temporal/manager.js +9 -9
- package/dist/temporal/manager.js.map +1 -1
- package/dist/temporal/mcpserver/engine-client.d.ts +1 -1
- package/dist/temporal/mcpserver/names.d.ts +1 -2
- package/dist/temporal/mcpserver/names.d.ts.map +1 -1
- package/dist/temporal/mcpserver/names.js +1 -2
- package/dist/temporal/mcpserver/names.js.map +1 -1
- package/dist/temporal/payload-codec.d.ts +4 -5
- package/dist/temporal/payload-codec.d.ts.map +1 -1
- package/dist/temporal/payload-codec.js +1 -1
- package/dist/temporal/payload-codec.js.map +1 -1
- package/dist/temporal/runner-failure.js +2 -2
- package/dist/temporal/schedule/activities.js +4 -4
- package/dist/temporal/schedule/activities.js.map +1 -1
- package/dist/temporal/schedule/config.d.ts +7 -7
- package/dist/temporal/schedule/config.d.ts.map +1 -1
- package/dist/temporal/schedule/config.js +5 -5
- package/dist/temporal/schedule/config.js.map +1 -1
- package/dist/temporal/schedule/model-pinning.d.ts +1 -1
- package/dist/temporal/schedule/names.d.ts +1 -1
- package/dist/temporal/schedule/names.js +1 -1
- package/dist/temporal/schedule/reconciler.d.ts +5 -5
- package/dist/temporal/schedule/reconciler.js +2 -2
- package/dist/temporal/schedule/reconciler.js.map +1 -1
- package/dist/temporal/schedule/run-ledger.d.ts +2 -2
- package/dist/temporal/schedule/run-starter.d.ts +4 -4
- package/dist/temporal/schedule/run-starter.js +16 -16
- package/dist/temporal/schedule/run-starter.js.map +1 -1
- package/dist/temporal/schedule/syncer.d.ts +6 -7
- package/dist/temporal/schedule/syncer.d.ts.map +1 -1
- package/dist/temporal/schedule/syncer.js +1 -1
- package/dist/temporal/schedule/syncer.js.map +1 -1
- package/dist/temporal/schedule/workflows/tick.js +4 -4
- package/dist/temporal/workflow-source.d.ts +1 -1
- package/dist/temporal/workflow-source.d.ts.map +1 -1
- package/dist/temporal/workflow-source.js +3 -4
- package/dist/temporal/workflow-source.js.map +1 -1
- package/dist/temporal/workflowexecution/activities.d.ts +11 -4
- package/dist/temporal/workflowexecution/activities.d.ts.map +1 -1
- package/dist/temporal/workflowexecution/activities.js +12 -9
- package/dist/temporal/workflowexecution/activities.js.map +1 -1
- package/dist/temporal/workflowexecution/engine-client.d.ts +4 -5
- package/dist/temporal/workflowexecution/engine-client.d.ts.map +1 -1
- package/dist/temporal/workflowexecution/engine-client.js +2 -3
- package/dist/temporal/workflowexecution/engine-client.js.map +1 -1
- package/dist/temporal/workflowexecution/names.d.ts +8 -9
- package/dist/temporal/workflowexecution/names.d.ts.map +1 -1
- package/dist/temporal/workflowexecution/names.js +8 -9
- package/dist/temporal/workflowexecution/names.js.map +1 -1
- package/dist/temporal/workflowexecution/worker.d.ts +11 -4
- package/dist/temporal/workflowexecution/worker.d.ts.map +1 -1
- package/dist/temporal/workflowexecution/worker.js +1 -0
- package/dist/temporal/workflowexecution/worker.js.map +1 -1
- package/dist/temporal/workflowexecution/workflow-input.d.ts +4 -4
- package/dist/temporal/workflowexecution/workflows/invoke-workflow-execution.js +10 -10
- package/dist/temporal/workflowexecution/workflows/invoke-workflow-execution.js.map +1 -1
- package/dist/transport/console/assets.js +2 -2
- package/dist/transport/console/handler.d.ts +4 -4
- package/dist/transport/console/handler.js +6 -6
- package/dist/transport/console/resolver.d.ts +3 -4
- package/dist/transport/console/resolver.d.ts.map +1 -1
- package/dist/transport/console/resolver.js +15 -5
- package/dist/transport/console/resolver.js.map +1 -1
- package/dist/transport/constants.d.ts +3 -3
- package/dist/transport/constants.js +3 -3
- package/dist/transport/cors.d.ts +1 -1
- package/dist/transport/demux.d.ts +3 -3
- package/dist/transport/demux.js +1 -1
- package/dist/transport/registry/lanes.d.ts +2 -2
- package/dist/transport/registry/lanes.d.ts.map +1 -1
- package/dist/transport/server.d.ts +9 -10
- package/dist/transport/server.d.ts.map +1 -1
- package/dist/transport/server.js.map +1 -1
- package/package.json +12 -7
- package/src/archive/__tests__/prefilter.test.ts +1 -1
- package/src/archive/content-store.ts +2 -2
- package/src/archive/prefilter.ts +3 -3
- package/src/archive/write.ts +1 -1
- package/src/artifactstorage/__tests__/artifact-storage.test.ts +5 -5
- package/src/artifactstorage/__tests__/r2-storage.test.ts +2 -2
- package/src/artifactstorage/artifact-storage.ts +17 -21
- package/src/artifactstorage/r2-storage.ts +4 -6
- package/src/authorization/README.md +3 -3
- package/src/authorization/__tests__/{authorizer.test.ts → authorizer.postgres.test.ts} +1 -1
- package/src/authorization/__tests__/contract-support.ts +49 -0
- package/src/authorization/__tests__/{derived-tuples.test.ts → derived-tuples.postgres.test.ts} +2 -2
- package/src/authorization/__tests__/drivers.ts +1 -1
- package/src/authorization/__tests__/{list-read-scope.measure.test.ts → list-read-scope.load.test.ts} +14 -18
- package/src/authorization/__tests__/{list-read-scope.test.ts → list-read-scope.postgres.test.ts} +1 -2
- package/src/authorization/__tests__/stored-resources.postgres.test.ts +136 -0
- package/src/authorization/__tests__/wire-permissions.test.ts +111 -40
- package/src/authorization/authorizer.ts +1 -1
- package/src/authorization/derived-tuples.ts +1 -1
- package/src/authorization/model/__tests__/registry.test.ts +24 -0
- package/src/authorization/model/data/authorization-model.json +0 -120
- package/src/authorization/model/execution-viewer.ts +1 -2
- package/src/authorization/organization-directory.ts +1 -1
- package/src/authorization/stored-resources.ts +75 -0
- package/src/authorization/trusted-local-authorizer.ts +2 -2
- package/src/boot/__tests__/__fixtures__/verify-boot-entry.mjs +26 -0
- package/src/boot/__tests__/auth-enabled-composition.test.ts +113 -18
- package/src/boot/__tests__/compose.test.ts +78 -6
- package/src/boot/__tests__/config.test.ts +62 -5
- package/src/boot/__tests__/ready-line.test.ts +57 -0
- package/src/boot/__tests__/verify-boot.test.ts +52 -0
- package/src/boot/compose.ts +170 -114
- package/src/boot/config.ts +132 -28
- package/src/boot/inprocess.ts +42 -27
- package/src/boot/logger.ts +1 -1
- package/src/boot/ready-line.ts +55 -0
- package/src/domain/agent/__tests__/agent.test.ts +5 -5
- package/src/domain/agent/controller.ts +24 -11
- package/src/domain/agent/search-extractor.ts +1 -1
- package/src/domain/agent/steps.ts +39 -16
- package/src/domain/agentchannel/__tests__/agentchannel.test.ts +10 -10
- package/src/domain/agentchannel/__tests__/channel-runtime.test.ts +3 -3
- package/src/domain/agentchannel/channel-runtime.ts +6 -7
- package/src/domain/agentchannel/constants.ts +10 -10
- package/src/domain/agentchannel/controller.ts +27 -30
- package/src/domain/agentchannel/conversation.ts +4 -4
- package/src/domain/agentchannel/message.ts +4 -4
- package/src/domain/agentchannel/steps.ts +10 -11
- package/src/domain/agentexecution/__tests__/agentexecution.test.ts +17 -17
- package/src/domain/agentexecution/__tests__/artifacts.test.ts +2 -2
- package/src/domain/agentexecution/__tests__/create-execution-context-step.test.ts +63 -33
- package/src/domain/agentexecution/__tests__/create-steps.test.ts +6 -5
- package/src/domain/agentexecution/__tests__/engine-stub.ts +2 -1
- package/src/domain/agentexecution/__tests__/lifecycle.test.ts +319 -11
- package/src/domain/agentexecution/__tests__/personal-environment-reach.test.ts +336 -0
- package/src/domain/agentexecution/__tests__/read-authorization.test.ts +2 -2
- package/src/domain/agentexecution/__tests__/record-runner-lineage-labels.test.ts +2 -2
- package/src/domain/agentexecution/__tests__/run-gate.test.ts +2 -2
- package/src/domain/agentexecution/__tests__/run-target.test.ts +2 -2
- package/src/domain/agentexecution/__tests__/session-binding.test.ts +307 -0
- package/src/domain/agentexecution/__tests__/status-observers.test.ts +3 -3
- package/src/domain/agentexecution/__tests__/store-faults.test.ts +2 -0
- package/src/domain/agentexecution/__tests__/usage-scope.test.ts +68 -0
- package/src/domain/agentexecution/artifacts.ts +9 -14
- package/src/domain/agentexecution/constants.ts +32 -3
- package/src/domain/agentexecution/controller.ts +47 -27
- package/src/domain/agentexecution/create-execution-context-step.ts +91 -102
- package/src/domain/agentexecution/create-steps.ts +13 -15
- package/src/domain/agentexecution/engine.ts +16 -17
- package/src/domain/agentexecution/filereview/__tests__/autokeep.test.ts +147 -0
- package/src/domain/agentexecution/filereview/author.ts +4 -4
- package/src/domain/agentexecution/filereview/autokeep.ts +2 -2
- package/src/domain/agentexecution/filereview/gate.ts +1 -1
- package/src/domain/agentexecution/filereview/progress.ts +1 -2
- package/src/domain/agentexecution/lifecycle.ts +56 -51
- package/src/domain/agentexecution/phases.ts +23 -0
- package/src/domain/agentexecution/record-runner-lineage-labels.ts +1 -2
- package/src/domain/agentexecution/run-person.ts +54 -0
- package/src/domain/agentexecution/run-target.ts +1 -1
- package/src/domain/agentexecution/search-extractor.ts +1 -1
- package/src/domain/agentexecution/session-binding.ts +163 -0
- package/src/domain/agentexecution/status-observers.ts +8 -9
- package/src/domain/agentexecution/steps.ts +2 -2
- package/src/domain/agentexecution/stream-broker.ts +1 -1
- package/src/domain/agentexecution/submit-approval.ts +7 -7
- package/src/domain/agentexecution/submit-file-decision.ts +3 -3
- package/src/domain/agentexecution/subscribe.ts +5 -6
- package/src/domain/agentexecution/temporal/config.ts +4 -5
- package/src/domain/agentexecution/update-status.ts +13 -13
- package/src/domain/agentexecution/usage.ts +13 -13
- package/src/domain/agentinstance/__tests__/agentinstance.test.ts +40 -3
- package/src/domain/agentinstance/controller.ts +8 -8
- package/src/domain/agentinstance/search-extractor.ts +1 -1
- package/src/domain/agentinstance/steps.ts +7 -7
- package/src/domain/agentshare/__tests__/agentshare.test.ts +6 -6
- package/src/domain/agentshare/constants.ts +1 -1
- package/src/domain/agentshare/controller.ts +16 -18
- package/src/domain/agentshare/steps.ts +5 -6
- package/src/domain/apikey/__tests__/apikey.test.ts +5 -4
- package/src/domain/apikey/__tests__/verifier.test.ts +153 -29
- package/src/domain/apikey/controller.ts +21 -24
- package/src/domain/apikey/keymaterial.ts +2 -2
- package/src/domain/apikey/lookup.ts +5 -6
- package/src/domain/apikey/steps.ts +9 -12
- package/src/domain/apikey/verifier.ts +68 -29
- package/src/domain/artifact/__tests__/artifact.test.ts +4 -5
- package/src/domain/artifact/__tests__/file-server-host.test.ts +1 -1
- package/src/domain/artifact/constants.ts +2 -2
- package/src/domain/artifact/controller.ts +8 -11
- package/src/domain/artifact/file-server.ts +6 -6
- package/src/domain/channelapp/constants.ts +1 -1
- package/src/domain/channelapp/controller.ts +2 -2
- package/src/domain/channelapp/steps.ts +3 -3
- package/src/domain/environment/__tests__/environment.test.ts +48 -2
- package/src/domain/environment/__tests__/personal-uniqueness.test.ts +89 -0
- package/src/domain/environment/__tests__/personal.test.ts +271 -74
- package/src/domain/environment/constants.ts +3 -3
- package/src/domain/environment/controller.ts +37 -6
- package/src/domain/environment/personal.ts +103 -44
- package/src/domain/environment/resolution/resolution.ts +2 -2
- package/src/domain/environment/search-extractor.ts +1 -1
- package/src/domain/environment/steps.ts +15 -16
- package/src/domain/executioncontext/__tests__/executioncontext.test.ts +394 -76
- package/src/domain/executioncontext/__tests__/resolve-values-capability.test.ts +4 -4
- package/src/domain/executioncontext/constants.ts +2 -2
- package/src/domain/executioncontext/contexts-for-execution.ts +46 -0
- package/src/domain/executioncontext/controller.ts +18 -7
- package/src/domain/executioncontext/internal-delete.ts +174 -0
- package/src/domain/executioncontext/resolve-values-for-caller.ts +9 -7
- package/src/domain/executioncontext/search-extractor.ts +1 -1
- package/src/domain/executioncontext/steps.ts +81 -23
- package/src/domain/executioncontext/temporal/delete-execution-context.ts +10 -88
- package/src/domain/iampolicy/__tests__/access-lists.test.ts +1 -1
- package/src/domain/iampolicy/__tests__/constants.test.ts +8 -10
- package/src/domain/iampolicy/__tests__/controller.test.ts +23 -23
- package/src/domain/iampolicy/__tests__/display-resolver.test.ts +2 -2
- package/src/domain/iampolicy/__tests__/grant-path.test.ts +134 -15
- package/src/domain/iampolicy/__tests__/grant-scope.test.ts +2 -2
- package/src/domain/iampolicy/__tests__/iampolicy.test.ts +12 -13
- package/src/domain/iampolicy/__tests__/membership.test.ts +10 -11
- package/src/domain/iampolicy/__tests__/permissions.test.ts +1 -1
- package/src/domain/iampolicy/__tests__/{resource-store.test.ts → resource-store.postgres.test.ts} +3 -3
- package/src/domain/iampolicy/__tests__/role-lifecycle.test.ts +6 -7
- package/src/domain/iampolicy/__tests__/roles.test.ts +2 -2
- package/src/domain/iampolicy/__tests__/specs.test.ts +2 -2
- package/src/domain/iampolicy/__tests__/steps.test.ts +9 -9
- package/src/domain/iampolicy/__tests__/support.ts +29 -14
- package/src/domain/iampolicy/__tests__/wire-refusals.test.ts +3 -3
- package/src/domain/iampolicy/access-lists.ts +1 -1
- package/src/domain/iampolicy/constants.ts +13 -14
- package/src/domain/iampolicy/controller.ts +28 -28
- package/src/domain/iampolicy/display-resolver.ts +10 -40
- package/src/domain/iampolicy/grant-path.ts +50 -29
- package/src/domain/iampolicy/grant-scope.ts +2 -2
- package/src/domain/iampolicy/membership.ts +22 -24
- package/src/domain/iampolicy/permissions.ts +3 -3
- package/src/domain/iampolicy/resource-store.ts +5 -5
- package/src/domain/iampolicy/role-lifecycle.ts +10 -10
- package/src/domain/iampolicy/roles.ts +3 -3
- package/src/domain/iampolicy/specs.ts +4 -4
- package/src/domain/iampolicy/steps.ts +7 -8
- package/src/domain/iampolicy/store-contract.ts +5 -6
- package/src/domain/iampolicy/store.ts +3 -3
- package/src/domain/iampolicy/wire-refusals.ts +4 -5
- package/src/domain/identityaccount/__tests__/account-for-stamp.test.ts +22 -1
- package/src/domain/identityaccount/__tests__/actor.test.ts +193 -0
- package/src/domain/identityaccount/__tests__/constants.test.ts +1 -2
- package/src/domain/identityaccount/__tests__/identityaccount.test.ts +40 -16
- package/src/domain/identityaccount/__tests__/operator.test.ts +2 -2
- package/src/domain/identityaccount/__tests__/provisioning.test.ts +4 -4
- package/src/domain/identityaccount/__tests__/resolve.test.ts +113 -3
- package/src/domain/identityaccount/__tests__/{resource-store.test.ts → resource-store.postgres.test.ts} +4 -3
- package/src/domain/identityaccount/actor.ts +75 -4
- package/src/domain/identityaccount/constants.ts +15 -12
- package/src/domain/identityaccount/controller.ts +28 -25
- package/src/domain/identityaccount/operator.ts +3 -3
- package/src/domain/identityaccount/provisioning.ts +5 -5
- package/src/domain/identityaccount/resolve.ts +85 -32
- package/src/domain/identityaccount/resource-store.ts +40 -14
- package/src/domain/identityaccount/steps.ts +5 -5
- package/src/domain/identityaccount/store-contract.ts +97 -5
- package/src/domain/identityaccount/store.ts +15 -5
- package/src/domain/mcpserver/__tests__/connect-authorization.test.ts +2 -2
- package/src/domain/mcpserver/__tests__/connect.test.ts +71 -6
- package/src/domain/mcpserver/__tests__/mcpserver.test.ts +5 -5
- package/src/domain/mcpserver/__tests__/oauth-handshake.test.ts +6 -5
- package/src/domain/mcpserver/complete-oauth-connect.ts +7 -8
- package/src/domain/mcpserver/connect-sandbox.ts +1 -1
- package/src/domain/mcpserver/connect-status.ts +2 -2
- package/src/domain/mcpserver/connect.ts +17 -15
- package/src/domain/mcpserver/controller.ts +11 -12
- package/src/domain/mcpserver/disconnect-oauth.ts +1 -1
- package/src/domain/mcpserver/enabledtools/enabledtools.ts +2 -2
- package/src/domain/mcpserver/engine.ts +2 -3
- package/src/domain/mcpserver/get-oauth-grant-status.ts +1 -1
- package/src/domain/mcpserver/initiate-oauth-connect.ts +2 -2
- package/src/domain/mcpserver/oauth/__tests__/token-exchange.test.ts +1 -1
- package/src/domain/mcpserver/oauth/__tests__/token-refresh.test.ts +1 -1
- package/src/domain/mcpserver/oauth/managed-env.ts +9 -9
- package/src/domain/mcpserver/oauth/refresh.ts +2 -2
- package/src/domain/mcpserver/oauth/token.ts +2 -2
- package/src/domain/mcpserver/search-extractor.ts +1 -1
- package/src/domain/memory/__tests__/capture-credential.test.ts +2 -2
- package/src/domain/memory/__tests__/memory.test.ts +3 -3
- package/src/domain/memory/constants.ts +5 -5
- package/src/domain/memory/controller.ts +25 -29
- package/src/domain/memory/steps.ts +19 -21
- package/src/domain/oauthapp/__tests__/oauthapp.test.ts +1 -1
- package/src/domain/oauthapp/controller.ts +2 -2
- package/src/domain/oauthapp/refresolution.ts +4 -4
- package/src/domain/organization/__tests__/organization.test.ts +1 -1
- package/src/domain/organization/controller.ts +15 -16
- package/src/domain/organization/search-extractor.ts +1 -1
- package/src/domain/platform/__tests__/platform.test.ts +3 -3
- package/src/domain/platform/controller.ts +4 -4
- package/src/domain/platform/version.ts +1 -1
- package/src/domain/platformclient/__tests__/mint.test.ts +3 -3
- package/src/domain/platformclient/constants.ts +1 -1
- package/src/domain/platformclient/controller.ts +2 -2
- package/src/domain/platformclient/mint.ts +2 -2
- package/src/domain/platformclient/resource-store.ts +1 -1
- package/src/domain/platformclient/store-contract.ts +1 -1
- package/src/domain/platformclient/store.ts +2 -2
- package/src/domain/plugin/constants.ts +1 -1
- package/src/domain/schedule/__tests__/cron.test.ts +1 -1
- package/src/domain/schedule/__tests__/schedule.composed.test.ts +6 -6
- package/src/domain/schedule/clock.ts +6 -6
- package/src/domain/schedule/controller.ts +13 -15
- package/src/domain/schedule/cron.ts +4 -4
- package/src/domain/schedule/list-runs.ts +1 -1
- package/src/domain/schedule/persist-update.ts +1 -1
- package/src/domain/schedule/resume.ts +3 -3
- package/src/domain/schedule/steps.ts +6 -6
- package/src/domain/schedule/trigger.ts +8 -9
- package/src/domain/session/__tests__/run-gate.test.ts +2 -2
- package/src/domain/session/__tests__/run-target.test.ts +1 -1
- package/src/domain/session/__tests__/session.test.ts +1 -1
- package/src/domain/session/constants.ts +2 -2
- package/src/domain/session/controller.ts +20 -14
- package/src/domain/session/run-target.ts +1 -1
- package/src/domain/session/search-extractor.ts +1 -1
- package/src/domain/session/steps.ts +16 -24
- package/src/domain/skill/__tests__/artifact-storage.test.ts +1 -1
- package/src/domain/skill/__tests__/frontmatter.test.ts +1 -1
- package/src/domain/skill/__tests__/skill.test.ts +1 -1
- package/src/domain/skill/__tests__/zip-gate.test.ts +2 -2
- package/src/domain/skill/controller.ts +3 -3
- package/src/domain/skill/push.ts +1 -1
- package/src/domain/skill/search-extractor.ts +1 -1
- package/src/domain/skill/storage/artifact-storage.ts +4 -4
- package/src/domain/skill/storage/frontmatter.ts +2 -3
- package/src/domain/workflow/__tests__/agent-call-references.test.ts +168 -1
- package/src/domain/workflow/__tests__/workflow.test.ts +2 -2
- package/src/domain/workflow/agent-call-references.ts +49 -5
- package/src/domain/workflow/controller.ts +22 -19
- package/src/domain/workflow/converter/__tests__/converter.test.ts +6 -6
- package/src/domain/workflow/converter/converter.ts +2 -2
- package/src/domain/workflow/converter/task-converters.ts +4 -4
- package/src/domain/workflow/registry/__tests__/document-catalog.test.ts +2 -2
- package/src/domain/workflow/registry/__tests__/pin-validation.test.ts +2 -2
- package/src/domain/workflow/registry/data/task-kind-registry.json +11 -11
- package/src/domain/workflow/registry/document-catalog.ts +4 -5
- package/src/domain/workflow/registry/model-catalog-provider.ts +4 -5
- package/src/domain/workflow/registry/model-registry-store.ts +6 -6
- package/src/domain/workflow/registry/pin-validation.ts +4 -5
- package/src/domain/workflow/search-extractor.ts +1 -1
- package/src/domain/workflow/steps.ts +22 -10
- package/src/domain/workflow/validation/__tests__/budget-warnings.test.ts +1 -1
- package/src/domain/workflow/validation/__tests__/task-config-constraints.test.ts +1 -1
- package/src/domain/workflow/validation/budget-warnings.ts +1 -1
- package/src/domain/workflow/validation/format-violation.ts +1 -1
- package/src/domain/workflow/validation/model-validation.ts +2 -2
- package/src/domain/workflowexecution/__tests__/engine-stub.ts +1 -1
- package/src/domain/workflowexecution/__tests__/lifecycle.test.ts +236 -9
- package/src/domain/workflowexecution/__tests__/read-authorization.test.ts +2 -2
- package/src/domain/workflowexecution/__tests__/run-gate.test.ts +1 -1
- package/src/domain/workflowexecution/__tests__/run-target.test.ts +1 -1
- package/src/domain/workflowexecution/__tests__/store-faults.test.ts +2 -0
- package/src/domain/workflowexecution/__tests__/update-status.test.ts +3 -3
- package/src/domain/workflowexecution/__tests__/workflowexecution.test.ts +7 -6
- package/src/domain/workflowexecution/constants.ts +6 -6
- package/src/domain/workflowexecution/controller.ts +29 -21
- package/src/domain/workflowexecution/create-execution-context-step.ts +7 -0
- package/src/domain/workflowexecution/create-steps.ts +7 -7
- package/src/domain/workflowexecution/engine.ts +13 -14
- package/src/domain/workflowexecution/execution-filter.ts +1 -1
- package/src/domain/workflowexecution/get-event-log.ts +2 -2
- package/src/domain/workflowexecution/get-execution-summary.ts +4 -4
- package/src/domain/workflowexecution/lifecycle.ts +56 -60
- package/src/domain/workflowexecution/list-pending-approvals.ts +1 -1
- package/src/domain/workflowexecution/run-target.ts +1 -1
- package/src/domain/workflowexecution/search-extractor.ts +1 -1
- package/src/domain/workflowexecution/send-signal.ts +1 -1
- package/src/domain/workflowexecution/stream-broker.ts +7 -8
- package/src/domain/workflowexecution/submit-approval.ts +3 -3
- package/src/domain/workflowexecution/submit-file-decision.ts +1 -1
- package/src/domain/workflowexecution/submit-workflow-task-approval.ts +3 -3
- package/src/domain/workflowexecution/subscribe-events.ts +2 -2
- package/src/domain/workflowexecution/subscribe.ts +5 -6
- package/src/domain/workflowexecution/temporal/config.ts +1 -1
- package/src/domain/workflowexecution/update-status.ts +8 -8
- package/src/domain/workflowinstance/controller.ts +13 -14
- package/src/domain/workflowinstance/search-extractor.ts +1 -1
- package/src/domain/workflowinstance/steps.ts +3 -4
- package/src/encryption/__tests__/codec-seam.test.ts +2 -2
- package/src/encryption/__tests__/encryption.test.ts +7 -7
- package/src/encryption/__tests__/key-manager.test.ts +1 -1
- package/src/encryption/codec.ts +4 -4
- package/src/encryption/encryption.ts +6 -7
- package/src/encryption/errors.ts +1 -1
- package/src/encryption/key-manager.ts +1 -1
- package/src/encryption/scope.ts +2 -3
- package/src/encryption/v1-codec.ts +4 -4
- package/src/envmerge/envmerge.ts +3 -3
- package/src/extensions/__tests__/built-in-authorization-composed.test.ts +16 -17
- package/src/extensions/__tests__/composed-support.ts +2 -2
- package/src/extensions/__tests__/direct-handler-authorization.test.ts +9 -9
- package/src/extensions/__tests__/extension-composition.test.ts +344 -67
- package/src/extensions/__tests__/iam-policy-composed.test.ts +8 -8
- package/src/extensions/__tests__/iam-policy-points.test.ts +5 -5
- package/src/extensions/__tests__/identity-account-composed.test.ts +5 -5
- package/src/extensions/__tests__/identity-account-points.test.ts +1 -1
- package/src/extensions/__tests__/identity.test.ts +4 -4
- package/src/extensions/__tests__/list-read-scope-composed.test.ts +7 -7
- package/src/extensions/__tests__/list-read-scope.test.ts +5 -5
- package/src/extensions/__tests__/registry.test.ts +15 -15
- package/src/extensions/__tests__/role-reconciliation-composed.test.ts +2 -2
- package/src/extensions/__tests__/secret-cleanup-composed.test.ts +4 -4
- package/src/extensions/__tests__/tier-truthfulness.test.ts +13 -15
- package/src/extensions/authorization-queries.ts +9 -9
- package/src/extensions/authorizer.ts +10 -12
- package/src/extensions/caller-guards.ts +4 -5
- package/src/extensions/drivers.ts +47 -58
- package/src/extensions/gate-slots.ts +13 -15
- package/src/extensions/identity-federation.ts +1 -1
- package/src/extensions/identity.ts +25 -23
- package/src/extensions/list-read-scope.ts +15 -15
- package/src/extensions/organization-directory.ts +2 -3
- package/src/extensions/policy-grant-scope.ts +5 -6
- package/src/extensions/registry.ts +39 -41
- package/src/extensions/resource-authorization.ts +24 -15
- package/src/extensions/schedule-fire-caller.ts +2 -2
- package/src/extensions/status-hooks.ts +7 -8
- package/src/gocompat/__tests__/trim.test.ts +1 -1
- package/src/gocompat/query-escape.ts +2 -2
- package/src/gocompat/trim.ts +1 -1
- package/src/identity/__tests__/oidc-discovery.test.ts +2 -2
- package/src/identity/__tests__/oidc-userinfo.test.ts +1 -1
- package/src/identity/__tests__/oidc-verifier.test.ts +59 -12
- package/src/identity/oidc-discovery.ts +1 -1
- package/src/identity/oidc-userinfo.ts +1 -1
- package/src/identity/oidc-verifier.ts +31 -24
- package/src/index.ts +109 -62
- package/src/main.ts +8 -1
- package/src/observability/rpc-metrics.ts +2 -2
- package/src/pipeline/__tests__/billing-contract-rules.test.ts +1 -1
- package/src/pipeline/__tests__/chain.test.ts +4 -4
- package/src/pipeline/__tests__/errors.test.ts +4 -4
- package/src/pipeline/__tests__/grantable-roles-for.test.ts +7 -7
- package/src/pipeline/__tests__/inherited-authorization-parent.test.ts +1 -1
- package/src/pipeline/__tests__/keyed-serializer.test.ts +122 -0
- package/src/pipeline/__tests__/kind-by-enum-name.test.ts +2 -2
- package/src/pipeline/__tests__/kind-served-by-edition.test.ts +3 -4
- package/src/pipeline/__tests__/pipeline.test.ts +1 -1
- package/src/pipeline/__tests__/race-support.ts +37 -0
- package/src/pipeline/__tests__/router-transport.test.ts +4 -4
- package/src/pipeline/__tests__/steps.test.ts +8 -4
- package/src/pipeline/apiresource-meta.ts +7 -7
- package/src/pipeline/chain.ts +5 -7
- package/src/pipeline/errors.ts +10 -0
- package/src/pipeline/interceptors/__tests__/auth.test.ts +16 -16
- package/src/pipeline/interceptors/__tests__/error-boundary.test.ts +3 -3
- package/src/pipeline/interceptors/__tests__/request-metrics.test.ts +5 -5
- package/src/pipeline/interceptors/auth.ts +33 -34
- package/src/pipeline/interceptors/error-boundary.ts +7 -10
- package/src/pipeline/interceptors/protovalidate.ts +4 -3
- package/src/pipeline/interceptors/request-metrics.ts +2 -3
- package/src/pipeline/keyed-serializer.ts +64 -0
- package/src/pipeline/request-context.ts +4 -4
- package/src/pipeline/steps/__tests__/authorization-tuples.test.ts +80 -5
- package/src/pipeline/steps/__tests__/authorize-annotation-completeness.test.ts +10 -10
- package/src/pipeline/steps/__tests__/authorize-annotation-paths.test.ts +171 -0
- package/src/pipeline/steps/__tests__/authorize-run-target.test.ts +1 -1
- package/src/pipeline/steps/__tests__/authorize.test.ts +11 -11
- package/src/pipeline/steps/__tests__/derived-id.test.ts +1 -1
- package/src/pipeline/steps/__tests__/guard-memory-capture.test.ts +2 -2
- package/src/pipeline/steps/__tests__/guard-reserved-labels.test.ts +2 -2
- package/src/pipeline/steps/__tests__/references.test.ts +260 -8
- package/src/pipeline/steps/__tests__/secret-cleanup.test.ts +2 -2
- package/src/pipeline/steps/__tests__/server-stamped-reserved-labels.test.ts +2 -2
- package/src/pipeline/steps/authorization-tuples.ts +62 -36
- package/src/pipeline/steps/authorize-run-target.ts +4 -4
- package/src/pipeline/steps/authorize.ts +21 -22
- package/src/pipeline/steps/defaults.ts +9 -9
- package/src/pipeline/steps/delete.ts +1 -1
- package/src/pipeline/steps/guard-memory-capture.ts +3 -4
- package/src/pipeline/steps/guard-reserved-labels.ts +7 -8
- package/src/pipeline/steps/helpers.ts +1 -37
- package/src/pipeline/steps/load-existing.ts +1 -1
- package/src/pipeline/steps/load-for-apply.ts +1 -1
- package/src/pipeline/steps/load-target.ts +1 -1
- package/src/pipeline/steps/references.ts +198 -24
- package/src/pipeline/steps/secret-cleanup.ts +2 -3
- package/src/pipeline/steps/server-stamped-reserved-labels.ts +1 -2
- package/src/pipeline/steps/shapes.ts +1 -1
- package/src/query/README.md +1 -1
- package/src/query/__tests__/query-services.test.ts +4 -4
- package/src/query/activity/handler.ts +3 -3
- package/src/query/search/__tests__/criteria.test.ts +1 -1
- package/src/query/search/__tests__/query-store.test.ts +3 -3
- package/src/query/search/controller.ts +1 -2
- package/src/query/search/criteria.ts +4 -4
- package/src/query/search/extractor.ts +4 -4
- package/src/query/search/handler.ts +1 -1
- package/src/query/search/query-store.ts +5 -5
- package/src/runnerauth/__tests__/bound-execution.test.ts +36 -16
- package/src/runnerauth/__tests__/built-in-runner-credential-provider.test.ts +9 -8
- package/src/runnerauth/__tests__/runner-credential-provider.test.ts +1 -1
- package/src/runnerauth/__tests__/runner-subject-composed.test.ts +4 -4
- package/src/runnerauth/__tests__/runnerauth.test.ts +1 -1
- package/src/runnerauth/bound-execution.ts +16 -17
- package/src/runnerauth/runner-credential-provider.ts +14 -20
- package/src/runnerauth/runnerauth.ts +3 -4
- package/src/sandbox/__tests__/docker-ensure.test.ts +140 -0
- package/src/sandbox/__tests__/docker-run.test.ts +86 -0
- package/src/sandbox/__tests__/{docker.integration.test.ts → docker.test.ts} +13 -2
- package/src/sandbox/__tests__/kubernetes.test.ts +44 -4
- package/src/sandbox/__tests__/{local-process.integration.test.ts → local-process.test.ts} +7 -1
- package/src/sandbox/__tests__/provisioner.test.ts +60 -6
- package/src/sandbox/__tests__/session-activity.test.ts +289 -0
- package/src/sandbox/__tests__/steps.test.ts +5 -6
- package/src/sandbox/builtins.ts +6 -3
- package/src/sandbox/docker.ts +71 -48
- package/src/sandbox/kubernetes.ts +30 -12
- package/src/sandbox/lane.ts +5 -5
- package/src/sandbox/local-process.ts +8 -4
- package/src/sandbox/naming.ts +37 -3
- package/src/sandbox/provisioner.ts +93 -11
- package/src/sandbox/runner-secret-names.ts +32 -0
- package/src/sandbox/session-activity.ts +125 -0
- package/src/sandbox/steps.ts +8 -10
- package/src/sandbox/substrate/__test-utils__/fake-gateway.ts +348 -0
- package/src/sandbox/substrate/__tests__/builtin.test.ts +105 -0
- package/src/sandbox/substrate/__tests__/config.test.ts +149 -0
- package/src/sandbox/substrate/__tests__/delay.test.ts +15 -0
- package/src/sandbox/substrate/__tests__/driver.test.ts +1129 -0
- package/src/sandbox/substrate/__tests__/egress.test.ts +191 -0
- package/src/sandbox/substrate/__tests__/gateway.test.ts +451 -0
- package/src/sandbox/substrate/__tests__/idle-decision.test.ts +43 -0
- package/src/sandbox/substrate/__tests__/push.test.ts +109 -0
- package/src/sandbox/substrate/__tests__/sweep.test.ts +542 -0
- package/src/sandbox/substrate/__tests__/template.test.ts +291 -0
- package/src/sandbox/substrate/builtin.ts +81 -0
- package/src/sandbox/substrate/config.ts +199 -0
- package/src/sandbox/substrate/delay.ts +8 -0
- package/src/sandbox/substrate/driver.ts +917 -0
- package/src/sandbox/substrate/egress.ts +173 -0
- package/src/sandbox/substrate/gateway.ts +451 -0
- package/src/sandbox/substrate/gen/ateapipb/ateapi_pb.ts +4821 -0
- package/src/sandbox/substrate/idle-decision.ts +45 -0
- package/src/sandbox/substrate/limits.ts +27 -0
- package/src/sandbox/substrate/push.ts +118 -0
- package/src/sandbox/substrate/sweep.ts +290 -0
- package/src/sandbox/substrate/template.ts +290 -0
- package/src/store/README.md +9 -10
- package/src/store/__tests__/{list-index.measure.test.ts → list-index.load.test.ts} +4 -6
- package/src/store/__tests__/port-contract.test.ts +3 -3
- package/src/store/__tests__/store-contract.ts +26 -16
- package/src/store/interface.ts +34 -34
- package/src/store/logger.ts +2 -2
- package/src/store/port-contract.ts +3 -3
- package/src/store/postgres/__tests__/{migrations.test.ts → migrations.postgres.test.ts} +5 -1
- package/src/store/postgres/__tests__/{store-contract.test.ts → store-contract.postgres.test.ts} +3 -3
- package/src/store/postgres/__tests__/support.ts +2 -2
- package/src/store/postgres/__tests__/tsquery.test.ts +1 -1
- package/src/store/postgres/migrations.ts +14 -14
- package/src/store/postgres/store.ts +19 -21
- package/src/store/postgres/tsquery.ts +3 -3
- package/src/store/proto-fields.ts +29 -1
- package/src/store/rfc3339.ts +2 -2
- package/src/store/sqlite/__tests__/fixtures/go-v6-database.sql +1 -1
- package/src/store/sqlite/__tests__/fts5.test.ts +2 -2
- package/src/store/sqlite/__tests__/migrations.test.ts +13 -8
- package/src/store/sqlite/__tests__/store-contract.test.ts +2 -2
- package/src/store/sqlite/__tests__/store.test.ts +4 -4
- package/src/store/sqlite/__tests__/support.ts +3 -3
- package/src/store/sqlite/fts5.ts +5 -5
- package/src/store/sqlite/migrations.ts +10 -10
- package/src/store/sqlite/store.ts +27 -21
- package/src/temporal/README.md +3 -3
- package/src/temporal/__tests__/manager.test.ts +6 -5
- package/src/temporal/__tests__/payload-codec.test.ts +1 -1
- package/src/temporal/__tests__/sdk-log-workflows.ts +1 -1
- package/src/temporal/__tests__/sdk-logger.test.ts +1 -1
- package/src/temporal/agentexecution/__tests__/activities.test.ts +21 -5
- package/src/temporal/agentexecution/__tests__/{invoke-workflow.test.ts → invoke-workflow.temporal.test.ts} +12 -12
- package/src/temporal/agentexecution/__tests__/own-behalf-status-writes.test.ts +6 -3
- package/src/temporal/agentexecution/__tests__/replay.test.ts +4 -4
- package/src/temporal/agentexecution/activities.ts +34 -20
- package/src/temporal/agentexecution/dispatch.ts +1 -1
- package/src/temporal/agentexecution/engine-client.ts +4 -4
- package/src/temporal/agentexecution/names.ts +11 -12
- package/src/temporal/agentexecution/worker.ts +11 -3
- package/src/temporal/agentexecution/workflows/invoke-agent-execution.ts +28 -30
- package/src/temporal/manager.ts +12 -12
- package/src/temporal/mcpserver/engine-client.ts +1 -1
- package/src/temporal/mcpserver/names.ts +1 -2
- package/src/temporal/payload-codec.ts +4 -5
- package/src/temporal/runner-failure.ts +2 -2
- package/src/temporal/schedule/__tests__/reconciler.test.ts +4 -4
- package/src/temporal/schedule/__tests__/replay.test.ts +2 -2
- package/src/temporal/schedule/__tests__/run-starter.test.ts +2 -2
- package/src/temporal/schedule/__tests__/syncer.test.ts +1 -2
- package/src/temporal/schedule/__tests__/{tick-workflow.test.ts → tick-workflow.temporal.test.ts} +1 -2
- package/src/temporal/schedule/activities.ts +4 -4
- package/src/temporal/schedule/config.ts +5 -5
- package/src/temporal/schedule/model-pinning.ts +1 -1
- package/src/temporal/schedule/names.ts +1 -1
- package/src/temporal/schedule/reconciler.ts +6 -6
- package/src/temporal/schedule/run-ledger.ts +2 -2
- package/src/temporal/schedule/run-starter.ts +17 -17
- package/src/temporal/schedule/syncer.ts +6 -7
- package/src/temporal/schedule/workflows/tick.ts +4 -4
- package/src/temporal/workflow-source.ts +4 -5
- package/src/temporal/workflowexecution/__tests__/activities.test.ts +61 -2
- package/src/temporal/workflowexecution/__tests__/{invoke-workflow.test.ts → invoke-workflow.temporal.test.ts} +5 -4
- package/src/temporal/workflowexecution/__tests__/replay-histories/child-failed.json +3 -3
- package/src/temporal/workflowexecution/__tests__/replay.test.ts +1 -1
- package/src/temporal/workflowexecution/activities.ts +27 -16
- package/src/temporal/workflowexecution/engine-client.ts +4 -5
- package/src/temporal/workflowexecution/names.ts +8 -9
- package/src/temporal/workflowexecution/worker.ts +12 -4
- package/src/temporal/workflowexecution/workflow-input.ts +4 -4
- package/src/temporal/workflowexecution/workflows/invoke-workflow-execution.ts +10 -10
- package/src/transport/__tests__/demux.test.ts +10 -10
- package/src/transport/console/__tests__/handler.test.ts +11 -3
- package/src/transport/console/__tests__/resolver.test.ts +15 -2
- package/src/transport/console/assets.ts +2 -2
- package/src/transport/console/handler.ts +10 -10
- package/src/transport/console/resolver.ts +16 -5
- package/src/transport/constants.ts +3 -3
- package/src/transport/cors.ts +1 -1
- package/src/transport/demux.ts +4 -4
- package/src/transport/registry/__tests__/lanes.test.ts +4 -5
- package/src/transport/registry/lanes.ts +2 -2
- package/src/transport/server.ts +9 -10
- package/dist/authorization/resource-creators.d.ts +0 -4
- package/dist/authorization/resource-creators.d.ts.map +0 -1
- package/dist/authorization/resource-creators.js +0 -44
- package/dist/authorization/resource-creators.js.map +0 -1
- package/src/authorization/resource-creators.ts +0 -48
- /package/src/authorization/__tests__/{organization-directory.test.ts → organization-directory.postgres.test.ts} +0 -0
- /package/src/authorization/__tests__/{schedule-fire-caller.test.ts → schedule-fire-caller.postgres.test.ts} +0 -0
- /package/src/authorization/__tests__/{trusted-local-authorizer.test.ts → trusted-local-authorizer.postgres.test.ts} +0 -0
- /package/src/authorization/__tests__/{unit-owned-kinds.test.ts → unit-owned-kinds.postgres.test.ts} +0 -0
- /package/src/domain/platformclient/__tests__/{resource-store.test.ts → resource-store.postgres.test.ts} +0 -0
- /package/src/runnerauth/__tests__/{runner-subject-verifier.test.ts → runner-subject-verifier.postgres.test.ts} +0 -0
- /package/src/store/postgres/__tests__/{list-index-repair.test.ts → list-index-repair.postgres.test.ts} +0 -0
- /package/src/temporal/__tests__/{sdk-logger.e2e.test.ts → sdk-logger.temporal.test.ts} +0 -0
|
@@ -4,14 +4,14 @@
|
|
|
4
4
|
* client, so the FULL create pipeline runs (session auto-create, execution
|
|
5
5
|
* context, persist, workflow start). Where the cloud starter mints a
|
|
6
6
|
* schedule token and re-enters the pipeline behind FGA gates, OSS has no
|
|
7
|
-
* caller identity by design
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
*
|
|
11
|
-
*
|
|
7
|
+
* caller identity by design: the org is stamped from the schedule's own
|
|
8
|
+
* metadata. A composition gives fires an identity through the
|
|
9
|
+
* scheduleFireCaller driver point: when composed, every fire mints its
|
|
10
|
+
* caller and the create propagates it via the in-process caller header; a mint
|
|
11
|
+
* failure propagates like any infrastructure
|
|
12
12
|
* fault (the tick activity retries, the trigger surfaces it).
|
|
13
13
|
*
|
|
14
|
-
* Idempotency is the CLOCK's job here
|
|
14
|
+
* Idempotency is the CLOCK's job here: the OSS create
|
|
15
15
|
* pipeline deliberately has no duplicate check (it would tax every
|
|
16
16
|
* execution create in the product), so the starter looks up its own
|
|
17
17
|
* deterministic execution name before creating. Within one tick activity
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
* one reminder per fire, by construction.
|
|
20
20
|
*
|
|
21
21
|
* Serves BOTH fire paths: the tick's start-run activity (origin=cron) and
|
|
22
|
-
* the trigger RPC's direct-run step (origin=manual
|
|
22
|
+
* the trigger RPC's direct-run step (origin=manual).
|
|
23
23
|
*/
|
|
24
24
|
import { Code, ConnectError } from "@connectrpc/connect";
|
|
25
25
|
import { create } from "@bufbuild/protobuf";
|
|
@@ -69,11 +69,11 @@ export const SESSION_SUBJECT_PREFIX = "Scheduled run: ";
|
|
|
69
69
|
* key the cloud edition's scope step writes (Go ScheduleIDLabelKey).
|
|
70
70
|
*
|
|
71
71
|
* In OSS the label is also the environment-resolution key: the execution
|
|
72
|
-
* context step reads it to merge the schedule's environment_refs
|
|
73
|
-
*
|
|
72
|
+
* context step reads it to merge the schedule's environment_refs. Cloud
|
|
73
|
+
* deliberately resolves through the validated token claim
|
|
74
74
|
* instead — a client-suppliable label must not widen what a cloud sandbox
|
|
75
75
|
* reads — but OSS is single-user with no trust boundary, and it has no
|
|
76
|
-
* tokens to carry a claim
|
|
76
|
+
* tokens to carry a claim.
|
|
77
77
|
*/
|
|
78
78
|
export const SCHEDULE_ID_LABEL_KEY = "stigmer.ai/schedule-id";
|
|
79
79
|
|
|
@@ -91,7 +91,7 @@ export type RunOutcomeResult =
|
|
|
91
91
|
* starter needs (Go ExecutionCreator; satisfied through
|
|
92
92
|
* src/boot/inprocess.ts). `fireCaller`, when present, is the composed
|
|
93
93
|
* edition identity the fire acts as — the implementation propagates it
|
|
94
|
-
* through the
|
|
94
|
+
* through the in-process caller header; absent, the create enters as the
|
|
95
95
|
* `internal` class (the OSS default, byte-identical).
|
|
96
96
|
*/
|
|
97
97
|
export interface ScheduleExecutionCreator {
|
|
@@ -295,7 +295,7 @@ export class RunStarter {
|
|
|
295
295
|
return { kind: "started", executionId, alreadyExisted: true };
|
|
296
296
|
}
|
|
297
297
|
|
|
298
|
-
// The composed fire-caller mint
|
|
298
|
+
// The composed fire-caller mint: minted per fire,
|
|
299
299
|
// after the idempotency lookup (a found winner needs no credential)
|
|
300
300
|
// and before the create it authenticates. Failure is an
|
|
301
301
|
// infrastructure fault — thrown, so the tick activity retries under
|
|
@@ -457,7 +457,7 @@ export class RunStarter {
|
|
|
457
457
|
const executionConfig = create(ExecutionConfigSchema, {
|
|
458
458
|
approvalMode: ApprovalMode.UNATTENDED,
|
|
459
459
|
// The platform profile, then the schedule's own run_config CLAMPED
|
|
460
|
-
// by it
|
|
460
|
+
// by it: per field, min(owner, platform) when the
|
|
461
461
|
// platform cap is set; the owner value stands when the platform cap
|
|
462
462
|
// is unset. The owner can lower spend, never raise it past the
|
|
463
463
|
// platform.
|
|
@@ -494,12 +494,12 @@ export class RunStarter {
|
|
|
494
494
|
executionConfig.thinkingMode = runConfig.thinkingMode;
|
|
495
495
|
}
|
|
496
496
|
|
|
497
|
-
// The fresh per-fire session speaks the invocation's session half
|
|
498
|
-
//
|
|
497
|
+
// The fresh per-fire session speaks the invocation's session half:
|
|
498
|
+
// harness and workspace come from the owner's spec. An
|
|
499
499
|
// unspecified harness stays unset — the platform default applies (OSS:
|
|
500
500
|
// native). Workspace entries are git-only by write-time validation;
|
|
501
501
|
// credentials, when a repo is private, ride an org-shared environment
|
|
502
|
-
// holding GITHUB_TOKEN
|
|
502
|
+
// holding GITHUB_TOKEN.
|
|
503
503
|
const sessionSpec = create(SessionSpecSchema, {
|
|
504
504
|
subject: SESSION_SUBJECT_PREFIX + (schedule.metadata?.slug ?? ""),
|
|
505
505
|
workspaceEntries: invocation?.workspaceEntries ?? [],
|
|
@@ -521,7 +521,7 @@ export class RunStarter {
|
|
|
521
521
|
// own org is stamped directly — it is load-bearing for the session
|
|
522
522
|
// and execution context.
|
|
523
523
|
org: schedule.metadata?.org ?? "",
|
|
524
|
-
// The audit link
|
|
524
|
+
// The audit link AND this edition's
|
|
525
525
|
// environment-resolution key — see SCHEDULE_ID_LABEL_KEY.
|
|
526
526
|
labels: { [SCHEDULE_ID_LABEL_KEY]: schedule.metadata?.id ?? "" },
|
|
527
527
|
}),
|
|
@@ -12,18 +12,17 @@
|
|
|
12
12
|
* unrepresentable here.
|
|
13
13
|
*
|
|
14
14
|
* Status writes go through store.updateResource — the OSS equivalent of
|
|
15
|
-
* the cloud's targeted leaf patches
|
|
15
|
+
* the cloud's targeted leaf patches: SQLite stores one
|
|
16
16
|
* protobuf blob, so the atomic read-modify-write under the store's write
|
|
17
17
|
* lock is what keeps a concurrent `stigmer apply` from clobbering the
|
|
18
18
|
* stamp (and vice versa). status.next_fire_at is the contract's arming
|
|
19
19
|
* witness: stamped from Temporal's own answer when armed, cleared when the
|
|
20
20
|
* artifact is paused, absent while nothing has converged.
|
|
21
21
|
*
|
|
22
|
-
* Go's Clock/Syncer also carries a Trigger method (the
|
|
23
|
-
*
|
|
24
|
-
*
|
|
25
|
-
*
|
|
26
|
-
* plan gate; disclosed in the PR register).
|
|
22
|
+
* Go's Clock/Syncer also carries a Trigger method (the artifact-trigger
|
|
23
|
+
* lane); the trigger RPC runs through the direct-run path instead, which
|
|
24
|
+
* left it with zero production callers, so this port deliberately omits
|
|
25
|
+
* it.
|
|
27
26
|
*/
|
|
28
27
|
import type { Client, ScheduleDescription } from "@temporalio/client";
|
|
29
28
|
import { ScheduleAlreadyRunning, ScheduleNotFoundError } from "@temporalio/client";
|
|
@@ -45,7 +44,7 @@ import { ensureStatus } from "./status-writes.js";
|
|
|
45
44
|
/**
|
|
46
45
|
* The syncer's answer when no Temporal client exists right now (Go
|
|
47
46
|
* ErrTemporalUnavailable). Callers on the write path treat it as "converge
|
|
48
|
-
* later" (arming is best-effort
|
|
47
|
+
* later" (arming is best-effort).
|
|
49
48
|
*/
|
|
50
49
|
export class TemporalUnavailableError extends Error {
|
|
51
50
|
constructor() {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* The tick workflow — ports pkg/domain/schedule/temporal/tick_workflow.go:
|
|
3
|
-
* one schedule fire, spanning its run
|
|
3
|
+
* one schedule fire, spanning its run: record the
|
|
4
4
|
* fire, start the run, poll it to a terminal phase, record the verdict.
|
|
5
5
|
* Spanning is what makes the artifact's overlap SKIP genuinely mean "never
|
|
6
6
|
* start a run while the last is active", and the verdict is what feeds the
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
* WHY A TIMER-DRIVEN POLL AND NOT THE CALLBACK TOKEN — read before
|
|
10
10
|
* "fixing" this. The platform already uses async activity completion for
|
|
11
11
|
* call:agent, so the token is the tempting shape here too. It loses on
|
|
12
|
-
* grounds that are edition-neutral
|
|
12
|
+
* grounds that are edition-neutral: the token cannot be
|
|
13
13
|
* re-armed after a create-then-crash, and its completion fire is
|
|
14
14
|
* best-effort — two silent-hang modes on a surface where a hang is a
|
|
15
15
|
* silenced reminder. The poll holds no worker thread (the workflow is
|
|
@@ -20,11 +20,11 @@
|
|
|
20
20
|
* FORWARD CONSTRAINT: ticks live for minutes-to-an-hour once tracking is
|
|
21
21
|
* real, and OSS releases cut every 1-3 days — an in-flight tick WILL
|
|
22
22
|
* straddle a binary upgrade. Any behavioral change to this workflow body
|
|
23
|
-
* must be gated with patched()/deprecatePatch()
|
|
23
|
+
* must be gated with patched()/deprecatePatch(), and the
|
|
24
24
|
* replay gate (__tests__/replay.test.ts) must stay green against the
|
|
25
25
|
* committed histories.
|
|
26
26
|
*
|
|
27
|
-
* ERROR POSTURE
|
|
27
|
+
* ERROR POSTURE: Go's
|
|
28
28
|
* `return err` fails the WORKFLOW EXECUTION; a plain thrown Error in the
|
|
29
29
|
* TS sandbox fails only the workflow TASK and retries forever. Every Go
|
|
30
30
|
* error return is therefore an ApplicationFailure here. Cancellation
|
|
@@ -7,12 +7,11 @@
|
|
|
7
7
|
* Workflow code runs inside Temporal's deterministic sandbox and must be
|
|
8
8
|
* bundled separately from host code. Two production modes:
|
|
9
9
|
*
|
|
10
|
-
* 1. **Runtime** (
|
|
11
|
-
* sub-project 20260824.03): the worker bundles the compiled dist entry
|
|
10
|
+
* 1. **Runtime** (the operative mode): the worker bundles the compiled dist entry
|
|
12
11
|
* on boot via the SDK's built-in webpack. This is how conformance and
|
|
13
12
|
* the CLI-launched dev server boot — node_modules present, no native
|
|
14
13
|
* packaging needed.
|
|
15
|
-
* 2. **Prebuilt** (
|
|
14
|
+
* 2. **Prebuilt** (slim artifacts): the slim artifact
|
|
16
15
|
* cannot bundle at runtime (no webpack/@swc shipped), so the build
|
|
17
16
|
* emits the bundle next to main.js and this resolver finds it as a
|
|
18
17
|
* sibling — exactly the runner's discovery rule.
|
|
@@ -20,14 +19,14 @@
|
|
|
20
19
|
* Callers pass URLs relative to their own module (import.meta.url): in the
|
|
21
20
|
* tsc dist the sibling bundle never exists so dev builds always take the
|
|
22
21
|
* runtime path; in a slim artifact every module collapses into main.js and
|
|
23
|
-
* the sibling resolves next to it, where
|
|
22
|
+
* the sibling resolves next to it, where scripts/bundle-slim.mjs emits it.
|
|
24
23
|
*/
|
|
25
24
|
import { existsSync } from "node:fs";
|
|
26
25
|
import { fileURLToPath } from "node:url";
|
|
27
26
|
|
|
28
27
|
export type WorkflowSource =
|
|
29
28
|
| {
|
|
30
|
-
/** Pre-built bundle on disk (slim artifacts
|
|
29
|
+
/** Pre-built bundle on disk (slim artifacts). */
|
|
31
30
|
readonly kind: "prebuilt";
|
|
32
31
|
readonly codePath: string;
|
|
33
32
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Pins the worker's UpdateWorkflowExecutionStatus activity against Go's
|
|
3
3
|
* update_status_impl.go — the ACTIVITY merge, deliberately distinct from
|
|
4
|
-
* the RPC's applyUpdateStatusMerge
|
|
4
|
+
* the RPC's applyUpdateStatusMerge:
|
|
5
5
|
*
|
|
6
6
|
* - the statusAudit bump is UNCONDITIONAL (the RPC bumps only on phase
|
|
7
7
|
* transitions) — the pin that would catch a "consolidate the merges"
|
|
@@ -11,7 +11,9 @@
|
|
|
11
11
|
* - a missing execution is a wrapped ordinary error with Go's
|
|
12
12
|
* "workflow execution not found:" text, not a NotFound RPC error;
|
|
13
13
|
* - the persist rides the atomic updateResource and broadcasts through
|
|
14
|
-
* the domain broker after commit
|
|
14
|
+
* the domain broker after commit;
|
|
15
|
+
* - DeleteExecutionContext hands the run's context to the server's own
|
|
16
|
+
* delete edge (stigmer#1647), idempotently.
|
|
15
17
|
*/
|
|
16
18
|
import { mkdtempSync, rmSync } from "node:fs";
|
|
17
19
|
import { tmpdir } from "node:os";
|
|
@@ -29,6 +31,7 @@ import {
|
|
|
29
31
|
} from "@stigmer/protos/ai/stigmer/agentic/workflowexecution/v1/api_pb";
|
|
30
32
|
import type { WorkflowExecutionStatus } from "@stigmer/protos/ai/stigmer/agentic/workflowexecution/v1/api_pb";
|
|
31
33
|
import { ExecutionPhase } from "@stigmer/protos/ai/stigmer/agentic/workflowexecution/v1/enum_pb";
|
|
34
|
+
import { ExecutionContextSchema } from "@stigmer/protos/ai/stigmer/agentic/executioncontext/v1/api_pb";
|
|
32
35
|
import { ApiResourceKind } from "@stigmer/protos/ai/stigmer/commons/apiresource/apiresourcekind/api_resource_kind_pb";
|
|
33
36
|
|
|
34
37
|
import { createLogger } from "../../../boot/logger.js";
|
|
@@ -40,6 +43,7 @@ import {
|
|
|
40
43
|
createWorkflowExecutionActivities,
|
|
41
44
|
} from "../activities.js";
|
|
42
45
|
import { UPDATE_WORKFLOW_EXECUTION_STATUS_ACTIVITY_NAME } from "../names.js";
|
|
46
|
+
import { DELETE_EXECUTION_CONTEXT_ACTIVITY_NAME } from "../../../domain/executioncontext/temporal/delete-execution-context.js";
|
|
43
47
|
|
|
44
48
|
const silentLogger = createLogger({
|
|
45
49
|
level: "error",
|
|
@@ -165,6 +169,9 @@ describe("UpdateWorkflowExecutionStatus activity (real store)", () => {
|
|
|
165
169
|
logger: silentLogger,
|
|
166
170
|
broker,
|
|
167
171
|
sandboxTerminalObserver: () => {},
|
|
172
|
+
executionContextDeleter: () => ({
|
|
173
|
+
delete: () => Promise.reject(new Error("unused in this suite")),
|
|
174
|
+
}),
|
|
168
175
|
});
|
|
169
176
|
return activities[UPDATE_WORKFLOW_EXECUTION_STATUS_ACTIVITY_NAME] as (
|
|
170
177
|
executionId: string,
|
|
@@ -260,3 +267,55 @@ describe("UpdateWorkflowExecutionStatus activity (real store)", () => {
|
|
|
260
267
|
).rejects.toThrowError(/^workflow execution not found: /);
|
|
261
268
|
});
|
|
262
269
|
});
|
|
270
|
+
|
|
271
|
+
describe("DeleteExecutionContext activity (real store)", () => {
|
|
272
|
+
let dir: string;
|
|
273
|
+
let store: Store;
|
|
274
|
+
|
|
275
|
+
beforeAll(() => {
|
|
276
|
+
dir = mkdtempSync(path.join(tmpdir(), "wfexec-ec-activity-"));
|
|
277
|
+
store = SqliteStore.open(path.join(dir, "test.db"));
|
|
278
|
+
});
|
|
279
|
+
|
|
280
|
+
afterAll(async () => {
|
|
281
|
+
await store.close();
|
|
282
|
+
rmSync(dir, { recursive: true, force: true });
|
|
283
|
+
});
|
|
284
|
+
|
|
285
|
+
it("hands the execution's ExecutionContext to the server's delete edge, idempotently", async () => {
|
|
286
|
+
await store.saveResource(
|
|
287
|
+
ApiResourceKind.execution_context,
|
|
288
|
+
"ectx_wf_1",
|
|
289
|
+
ExecutionContextSchema,
|
|
290
|
+
create(ExecutionContextSchema, {
|
|
291
|
+
apiVersion: "agentic.stigmer.ai/v1",
|
|
292
|
+
kind: "ExecutionContext",
|
|
293
|
+
metadata: { id: "ectx_wf_1", name: "ec", org: "o" },
|
|
294
|
+
spec: { executionId: "wfe_del_1" },
|
|
295
|
+
}),
|
|
296
|
+
);
|
|
297
|
+
// The edge as a recording fake that removes the row the way the delete
|
|
298
|
+
// chain does (the chain itself: extension-composition.test.ts).
|
|
299
|
+
const deleted: string[] = [];
|
|
300
|
+
const activities = createWorkflowExecutionActivities({
|
|
301
|
+
store,
|
|
302
|
+
logger: silentLogger,
|
|
303
|
+
broker: new StreamBroker(silentLogger),
|
|
304
|
+
sandboxTerminalObserver: () => {},
|
|
305
|
+
executionContextDeleter: () => ({
|
|
306
|
+
delete: async (contextId) => {
|
|
307
|
+
deleted.push(contextId);
|
|
308
|
+
await store.deleteResource(ApiResourceKind.execution_context, contextId);
|
|
309
|
+
},
|
|
310
|
+
}),
|
|
311
|
+
});
|
|
312
|
+
const remove = activities[DELETE_EXECUTION_CONTEXT_ACTIVITY_NAME] as (
|
|
313
|
+
executionId: string,
|
|
314
|
+
) => Promise<void>;
|
|
315
|
+
|
|
316
|
+
await remove("wfe_del_1");
|
|
317
|
+
await expect(remove("wfe_del_1")).resolves.toBeUndefined();
|
|
318
|
+
|
|
319
|
+
expect(deleted, "one delete, through the edge").toEqual(["ectx_wf_1"]);
|
|
320
|
+
});
|
|
321
|
+
});
|
|
@@ -18,9 +18,10 @@
|
|
|
18
18
|
* task-specific channel with its payload; a malformed envelope is
|
|
19
19
|
* ignored without burning a relay.
|
|
20
20
|
*
|
|
21
|
-
* Follows
|
|
22
|
-
* the `temporal` CLI); every
|
|
23
|
-
* server cannot start — never a
|
|
21
|
+
* Follows the other Temporal suites' discipline:
|
|
22
|
+
* TestWorkflowEnvironment.createLocal (needs the `temporal` CLI); every
|
|
23
|
+
* test skips VISIBLY when the local test server cannot start — never a
|
|
24
|
+
* vacuous green.
|
|
24
25
|
* Delete-recorder pins are at-least-once-honest (oss#892): Temporal
|
|
25
26
|
* activities re-execute when a completion fails to commit, so the pin is
|
|
26
27
|
* identity + at-least-once, never an exact count.
|
|
@@ -171,7 +172,7 @@ function expectExecutionContextDeleted(executionId: string): void {
|
|
|
171
172
|
* Releases a holding stub child THROUGH the orchestrator's relay lane —
|
|
172
173
|
* the orchestrator has no test-release handler of its own; the envelope
|
|
173
174
|
* is exactly how any task-specific signal reaches the child in
|
|
174
|
-
* production
|
|
175
|
+
* production.
|
|
175
176
|
*/
|
|
176
177
|
async function releaseChild(
|
|
177
178
|
handle: import("@temporalio/client").WorkflowHandle,
|
|
@@ -253,7 +253,7 @@
|
|
|
253
253
|
"failure": {
|
|
254
254
|
"message": "child engine boom",
|
|
255
255
|
"source": "TypeScriptSDK",
|
|
256
|
-
"stackTrace": "ApplicationFailure: child engine boom\n at Function.create (/
|
|
256
|
+
"stackTrace": "ApplicationFailure: child engine boom\n at Function.create (/repo/backend/services/stigmer-server-ts/node_modules/@temporalio/common/src/failure.ts:227:11)\n at create (/repo/backend/services/stigmer-server-ts/src/temporal/workflowexecution/__tests__/test-workflows.ts:57:29)",
|
|
257
257
|
"applicationFailureInfo": {}
|
|
258
258
|
},
|
|
259
259
|
"namespace": "default",
|
|
@@ -645,13 +645,13 @@
|
|
|
645
645
|
"failure": {
|
|
646
646
|
"message": "Workflow execution failed",
|
|
647
647
|
"source": "TypeScriptSDK",
|
|
648
|
-
"stackTrace": "ApplicationFailure: Workflow execution failed\n at Function.create (/
|
|
648
|
+
"stackTrace": "ApplicationFailure: Workflow execution failed\n at Function.create (/repo/backend/services/stigmer-server-ts/node_modules/@temporalio/common/src/failure.ts:227:11)\n at create (/repo/backend/services/stigmer-server-ts/src/temporal/workflowexecution/workflows/invoke-workflow-execution.ts:205:29)",
|
|
649
649
|
"cause": {
|
|
650
650
|
"message": "Child Workflow execution failed",
|
|
651
651
|
"cause": {
|
|
652
652
|
"message": "child engine boom",
|
|
653
653
|
"source": "TypeScriptSDK",
|
|
654
|
-
"stackTrace": "ApplicationFailure: child engine boom\n at Function.create (/
|
|
654
|
+
"stackTrace": "ApplicationFailure: child engine boom\n at Function.create (/repo/backend/services/stigmer-server-ts/node_modules/@temporalio/common/src/failure.ts:227:11)\n at create (/repo/backend/services/stigmer-server-ts/src/temporal/workflowexecution/__tests__/test-workflows.ts:57:29)",
|
|
655
655
|
"applicationFailureInfo": {}
|
|
656
656
|
},
|
|
657
657
|
"childWorkflowExecutionFailureInfo": {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Replay determinism gate for the workflow-execution orchestrator — the
|
|
3
|
-
* twin of the agentexecution gate (see its header for the
|
|
3
|
+
* twin of the agentexecution gate (see its header for the
|
|
4
4
|
* discipline): committed histories from released workflow code must
|
|
5
5
|
* replay green on the CURRENT code; a red run means a change is not
|
|
6
6
|
* replay-safe for in-flight executions and needs patched(), never a
|
|
@@ -1,13 +1,15 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Server-side activity implementations for the workflow-execution worker —
|
|
3
3
|
* ports pkg/domain/workflowexecution/temporal/activities
|
|
4
|
-
* (update_status_impl.go) and registers
|
|
4
|
+
* (update_status_impl.go) and registers DeleteExecutionContext, the
|
|
5
|
+
* server's own delete of the run's context through the context's delete
|
|
6
|
+
* chain (domain/executioncontext/internal-delete.ts, stigmer#1647).
|
|
5
7
|
*
|
|
6
8
|
* UpdateWorkflowExecutionStatus deliberately does NOT reuse the domain's
|
|
7
9
|
* updateStatus RPC merge (the choice agentexecution's port made): in Go
|
|
8
10
|
* the two merges are DIFFERENT code with different semantics, and the
|
|
9
11
|
* differences are wire-visible for exactly the payloads this workflow
|
|
10
|
-
* sends
|
|
12
|
+
* sends:
|
|
11
13
|
*
|
|
12
14
|
* - The activity bumps statusAudit.updatedAt on EVERY call; the RPC
|
|
13
15
|
* bumps only on phase TRANSITIONS (the recents-sidebar rule). A
|
|
@@ -18,12 +20,12 @@
|
|
|
18
20
|
* ("workflow execution not found: …"), not the RPC's NotFound.
|
|
19
21
|
*
|
|
20
22
|
* What IS adopted from the domain: the atomic `updateResource` persist
|
|
21
|
-
* (
|
|
23
|
+
* (Go's activity is a load-then-save with the
|
|
22
24
|
* same lost-update window its RPC has; not ported) and the post-persist
|
|
23
25
|
* broadcast through the domain's StreamBroker (Go wires the same broker
|
|
24
26
|
* into both).
|
|
25
27
|
*
|
|
26
|
-
* Payload boundary
|
|
28
|
+
* Payload boundary: statuses cross
|
|
27
29
|
* as proto-JSON — the TS default payload converter cannot serialize the
|
|
28
30
|
* bigint int64 fields of typed messages. Server-internal payloads; only
|
|
29
31
|
* the activity NAMES are byte-pinned.
|
|
@@ -47,10 +49,9 @@ import { ApiResourceKind } from "@stigmer/protos/ai/stigmer/commons/apiresource/
|
|
|
47
49
|
|
|
48
50
|
import type { Logger } from "../../boot/logger.js";
|
|
49
51
|
import type { StreamBroker } from "../../domain/workflowexecution/stream-broker.js";
|
|
50
|
-
import {
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
} from "../../domain/executioncontext/temporal/delete-execution-context.js";
|
|
52
|
+
import { deleteExecutionContextForExecution } from "../../domain/executioncontext/internal-delete.js";
|
|
53
|
+
import type { ExecutionContextDeleter } from "../../domain/executioncontext/internal-delete.js";
|
|
54
|
+
import { DELETE_EXECUTION_CONTEXT_ACTIVITY_NAME } from "../../domain/executioncontext/temporal/delete-execution-context.js";
|
|
54
55
|
import type { WorkflowSandboxTerminalObserver } from "../../sandbox/steps.js";
|
|
55
56
|
import type { Store } from "../../store/interface.js";
|
|
56
57
|
import { UPDATE_WORKFLOW_EXECUTION_STATUS_ACTIVITY_NAME } from "./names.js";
|
|
@@ -60,12 +61,18 @@ export interface WorkflowExecutionActivityDeps {
|
|
|
60
61
|
readonly logger: Logger;
|
|
61
62
|
readonly broker: StreamBroker;
|
|
62
63
|
/**
|
|
63
|
-
* Fires the workflow-sandbox teardown on terminal transitions
|
|
64
|
-
*
|
|
65
|
-
*
|
|
66
|
-
* wires.
|
|
64
|
+
* Fires the workflow-sandbox teardown on terminal transitions — this
|
|
65
|
+
* activity is the orchestrator's failure/cancellation persist site, one
|
|
66
|
+
* of the three status write sites that fire it.
|
|
67
67
|
*/
|
|
68
68
|
readonly sandboxTerminalObserver: WorkflowSandboxTerminalObserver;
|
|
69
|
+
/**
|
|
70
|
+
* The server's own delete of a run's ExecutionContext, read per call:
|
|
71
|
+
* the context's delete chain over the in-process transport, which exists
|
|
72
|
+
* only once the routes do (the composition root's requireInProcess
|
|
73
|
+
* idiom).
|
|
74
|
+
*/
|
|
75
|
+
readonly executionContextDeleter: () => ExecutionContextDeleter;
|
|
69
76
|
}
|
|
70
77
|
|
|
71
78
|
/**
|
|
@@ -84,7 +91,7 @@ export function createWorkflowExecutionActivities(
|
|
|
84
91
|
* The orchestrator's status persist, invoked as a LOCAL activity
|
|
85
92
|
* (pause/resume handlers) AND a REGULAR activity (failure/
|
|
86
93
|
* cancellation paths) — one implementation serves both modes,
|
|
87
|
-
* exactly one named registration (see names.ts's
|
|
94
|
+
* exactly one named registration (see names.ts's note on why
|
|
88
95
|
* the NAME is load-bearing).
|
|
89
96
|
*/
|
|
90
97
|
[UPDATE_WORKFLOW_EXECUTION_STATUS_ACTIVITY_NAME]: async (
|
|
@@ -95,7 +102,7 @@ export function createWorkflowExecutionActivities(
|
|
|
95
102
|
|
|
96
103
|
let updated: WorkflowExecution;
|
|
97
104
|
// The phase BEFORE this merge, read under the write lock — the
|
|
98
|
-
// sandbox observer below keys on the transition
|
|
105
|
+
// sandbox observer below keys on the transition.
|
|
99
106
|
let previousPhase = ExecutionPhase.EXECUTION_PHASE_UNSPECIFIED;
|
|
100
107
|
try {
|
|
101
108
|
updated = await store.updateResource(
|
|
@@ -141,11 +148,15 @@ export function createWorkflowExecutionActivities(
|
|
|
141
148
|
);
|
|
142
149
|
},
|
|
143
150
|
|
|
144
|
-
/**
|
|
151
|
+
/** The server's own delete of the run's context, shared with the agent-execution worker exactly as in Go. */
|
|
145
152
|
[DELETE_EXECUTION_CONTEXT_ACTIVITY_NAME]: async (
|
|
146
153
|
executionId: string,
|
|
147
154
|
): Promise<void> => {
|
|
148
|
-
await deleteExecutionContextForExecution(
|
|
155
|
+
await deleteExecutionContextForExecution(
|
|
156
|
+
{ store, deleter: deps.executionContextDeleter, logger },
|
|
157
|
+
executionId,
|
|
158
|
+
"run-end",
|
|
159
|
+
);
|
|
149
160
|
},
|
|
150
161
|
};
|
|
151
162
|
}
|
|
@@ -5,10 +5,10 @@
|
|
|
5
5
|
* operations the lifecycle steps consume (lifecycle_steps.go: raw
|
|
6
6
|
* signal, cancel, terminate).
|
|
7
7
|
*
|
|
8
|
-
*
|
|
8
|
+
* The domain models the engine as the ConnectedWorkflowExecutionEngine seam
|
|
9
9
|
* (src/domain/workflowexecution/engine.ts); this module fills it.
|
|
10
10
|
* Dispatch-queue resolution lives INSIDE startInvokeWorkflow/
|
|
11
|
-
* signalWithStart (the seam's
|
|
11
|
+
* signalWithStart (the seam's boundary — Go's controller calls
|
|
12
12
|
* ResolveWorkflowTaskQueue immediately before Create/SignalWithStart).
|
|
13
13
|
* Unlike agentexecution's dispatch it is PURE (no store read), so there
|
|
14
14
|
* is no EngineDispatchError lane — Go's Create has no dispatch failure
|
|
@@ -185,7 +185,7 @@ export class TemporalWorkflowExecutionEngine
|
|
|
185
185
|
* The slim input with Go's omitempty shape (workflow-input.ts): zero
|
|
186
186
|
* values are omitted so TS-authored histories carry the same keys a
|
|
187
187
|
* Go-authored one would. The cloud-only fields are unmodeled (the
|
|
188
|
-
* seam's
|
|
188
|
+
* seam's boundary). The run credential is the one key minted
|
|
189
189
|
* here rather than copied from the caller (module header).
|
|
190
190
|
*/
|
|
191
191
|
private buildWorkflowInput(
|
|
@@ -231,8 +231,7 @@ export interface WorkflowExecutionEngineStateProviderDeps {
|
|
|
231
231
|
|
|
232
232
|
/**
|
|
233
233
|
* Builds the provider compose hands the workflowexecution registration —
|
|
234
|
-
*
|
|
235
|
-
* lambda.
|
|
234
|
+
* in place of a fixed `() => WORKFLOW_EXECUTION_ENGINE_DISCONNECTED`.
|
|
236
235
|
*
|
|
237
236
|
* Availability parity with Go (manager.ts module header): disconnected
|
|
238
237
|
* ONLY until the first successful connect; afterwards the engine wraps
|
|
@@ -4,19 +4,18 @@
|
|
|
4
4
|
* workflows/invoke_workflow.go, workflows/workflow_creator.go,
|
|
5
5
|
* activities/update_status.go, dispatch.go).
|
|
6
6
|
*
|
|
7
|
-
* Every value here is a byte-pinned cross-edition wire constant
|
|
7
|
+
* Every value here is a byte-pinned cross-edition wire constant.
|
|
8
8
|
* The orchestrator workflow NAME, its ID format, the child workflow ID,
|
|
9
9
|
* and the pause/resume/relaySignal channel names are canonically owned by
|
|
10
10
|
* the DOMAIN's constants module (src/domain/workflowexecution/
|
|
11
|
-
* constants.ts
|
|
11
|
+
* constants.ts, where the lifecycle steps read them) and re-exported
|
|
12
12
|
* here so the temporal slice has one import surface and the program has
|
|
13
13
|
* one definition.
|
|
14
14
|
*
|
|
15
15
|
* This module is imported by BOTH the workflow bundle and host code, so it
|
|
16
16
|
* must stay free of node built-ins and framework imports (the Temporal
|
|
17
|
-
* workflow sandbox bundler hard-fails on node imports
|
|
18
|
-
*
|
|
19
|
-
* module it re-exports from is import-free).
|
|
17
|
+
* workflow sandbox bundler hard-fails on node imports; the domain
|
|
18
|
+
* constants module it re-exports from is import-free).
|
|
20
19
|
*/
|
|
21
20
|
export {
|
|
22
21
|
INVOKE_WORKFLOW_EXECUTION_WORKFLOW_NAME,
|
|
@@ -40,8 +39,8 @@ export const CHILD_WORKFLOW_TYPE = "stigmer/workflow/execute-from-execution";
|
|
|
40
39
|
* The ONLY memo key this domain writes (workflow_creator.go); the
|
|
41
40
|
* workflow reads it back to place the child. Go also falls back to the
|
|
42
41
|
* legacy "activityTaskQueue" key for pre-migration in-flight histories —
|
|
43
|
-
* NOT ported: no Go-era history can replay on this server (
|
|
44
|
-
*
|
|
42
|
+
* NOT ported: no Go-era history can replay on this server (it started
|
|
43
|
+
* clean), so the legacy read would be dead code.
|
|
45
44
|
*/
|
|
46
45
|
export const MEMO_RUNNER_TASK_QUEUE = "runnerTaskQueue";
|
|
47
46
|
|
|
@@ -59,12 +58,12 @@ export const DEFAULT_RUNNER_TASK_QUEUE = "stigmer_runner";
|
|
|
59
58
|
* the Go-SDK RECORD_MARKER replay bug; the history shape is contract).
|
|
60
59
|
*
|
|
61
60
|
* The name is Go's UpdateWorkflowExecutionStatusActivityName constant.
|
|
62
|
-
* NOTE
|
|
61
|
+
* NOTE: Go's production worker registers this
|
|
63
62
|
* activity WITHOUT an explicit name, deriving "UpdateExecutionStatus"
|
|
64
63
|
* from the method — so Go's own orchestrator persists never resolve the
|
|
65
64
|
* activity and fail silently behind their best-effort call sites. This
|
|
66
65
|
* server registers AND invokes under the one constant name, making the
|
|
67
|
-
* lane work
|
|
66
|
+
* lane work.
|
|
68
67
|
*/
|
|
69
68
|
export const UPDATE_WORKFLOW_EXECUTION_STATUS_ACTIVITY_NAME =
|
|
70
69
|
"UpdateWorkflowExecutionStatus";
|
|
@@ -18,11 +18,12 @@
|
|
|
18
18
|
* workflow types from export names, so no explicit registration option
|
|
19
19
|
* exists or is needed.
|
|
20
20
|
*
|
|
21
|
-
* Workflow source: runtime bundling from the compiled entry
|
|
22
|
-
*
|
|
23
|
-
*
|
|
21
|
+
* Workflow source: runtime bundling from the compiled entry in a tsc
|
|
22
|
+
* build, and the prebuilt sibling bundle in a slim artifact (see
|
|
23
|
+
* workflow-source.ts).
|
|
24
24
|
*/
|
|
25
25
|
import type { Logger } from "../../boot/logger.js";
|
|
26
|
+
import type { ExecutionContextDeleter } from "../../domain/executioncontext/internal-delete.js";
|
|
26
27
|
import type { WorkflowExecutionTemporalConfig } from "../../domain/workflowexecution/temporal/config.js";
|
|
27
28
|
import type { StreamBroker } from "../../domain/workflowexecution/stream-broker.js";
|
|
28
29
|
import type { WorkflowSandboxTerminalObserver } from "../../sandbox/steps.js";
|
|
@@ -36,8 +37,14 @@ export interface WorkflowExecutionWorkerDeps {
|
|
|
36
37
|
readonly logger: Logger;
|
|
37
38
|
readonly broker: StreamBroker;
|
|
38
39
|
readonly temporalConfig: WorkflowExecutionTemporalConfig;
|
|
39
|
-
/** The activity persist site's sandbox teardown observer
|
|
40
|
+
/** The activity persist site's sandbox teardown observer. */
|
|
40
41
|
readonly sandboxTerminalObserver: WorkflowSandboxTerminalObserver;
|
|
42
|
+
/**
|
|
43
|
+
* The server's own delete of a run's ExecutionContext (the run-end
|
|
44
|
+
* activity): the context's delete chain over the in-process transport,
|
|
45
|
+
* resolved lazily because the worker is built before the routes exist.
|
|
46
|
+
*/
|
|
47
|
+
readonly executionContextDeleter: () => ExecutionContextDeleter;
|
|
41
48
|
}
|
|
42
49
|
|
|
43
50
|
export function newWorkflowExecutionWorkerFactory(
|
|
@@ -49,6 +56,7 @@ export function newWorkflowExecutionWorkerFactory(
|
|
|
49
56
|
logger: deps.logger,
|
|
50
57
|
broker: deps.broker,
|
|
51
58
|
sandboxTerminalObserver: deps.sandboxTerminalObserver,
|
|
59
|
+
executionContextDeleter: deps.executionContextDeleter,
|
|
52
60
|
});
|
|
53
61
|
|
|
54
62
|
const workflowSource = resolveWorkflowSource({
|
|
@@ -12,8 +12,8 @@
|
|
|
12
12
|
* cross-component contract with the runner's execute-from-execution.
|
|
13
13
|
*
|
|
14
14
|
* Go's callback_token / invoker_identity_account_id fields have no OSS
|
|
15
|
-
* producer (cloud-only lanes) and are not modeled — the seam's
|
|
16
|
-
*
|
|
15
|
+
* producer (cloud-only lanes) and are not modeled — the seam's boundary
|
|
16
|
+
* (src/domain/workflowexecution/engine.ts).
|
|
17
17
|
*
|
|
18
18
|
* Sandbox-shared module: type-only, no imports.
|
|
19
19
|
*/
|
|
@@ -45,8 +45,8 @@ export interface InvokeWorkflowExecutionWorkflowInput {
|
|
|
45
45
|
}
|
|
46
46
|
|
|
47
47
|
/**
|
|
48
|
-
* The relaySignal envelope (invoke_workflow_impl.go RelaySignalPayload
|
|
49
|
-
*
|
|
48
|
+
* The relaySignal envelope (invoke_workflow_impl.go RelaySignalPayload):
|
|
49
|
+
* an arbitrary signal to forward to the child, sent by the
|
|
50
50
|
* controller's sendSignal / submitWorkflowTaskApproval through
|
|
51
51
|
* SignalWithStart. JSON keys are the Go struct tags.
|
|
52
52
|
*/
|