@stigmer/server 3.14.0-dev.20260910084630
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/LICENSE +190 -0
- package/README.md +93 -0
- package/dist/artifactstorage/artifact-storage.d.ts +185 -0
- package/dist/artifactstorage/artifact-storage.d.ts.map +1 -0
- package/dist/artifactstorage/artifact-storage.js +298 -0
- package/dist/artifactstorage/artifact-storage.js.map +1 -0
- package/dist/artifactstorage/r2-storage.d.ts +55 -0
- package/dist/artifactstorage/r2-storage.d.ts.map +1 -0
- package/dist/artifactstorage/r2-storage.js +225 -0
- package/dist/artifactstorage/r2-storage.js.map +1 -0
- package/dist/boot/compose.d.ts +97 -0
- package/dist/boot/compose.d.ts.map +1 -0
- package/dist/boot/compose.js +1037 -0
- package/dist/boot/compose.js.map +1 -0
- package/dist/boot/config.d.ts +205 -0
- package/dist/boot/config.d.ts.map +1 -0
- package/dist/boot/config.js +205 -0
- package/dist/boot/config.js.map +1 -0
- package/dist/boot/inprocess.d.ts +101 -0
- package/dist/boot/inprocess.d.ts.map +1 -0
- package/dist/boot/inprocess.js +226 -0
- package/dist/boot/inprocess.js.map +1 -0
- package/dist/boot/logger.d.ts +65 -0
- package/dist/boot/logger.d.ts.map +1 -0
- package/dist/boot/logger.js +61 -0
- package/dist/boot/logger.js.map +1 -0
- package/dist/domain/agent/controller.d.ts +40 -0
- package/dist/domain/agent/controller.d.ts.map +1 -0
- package/dist/domain/agent/controller.js +278 -0
- package/dist/domain/agent/controller.js.map +1 -0
- package/dist/domain/agent/defaultagent.d.ts +37 -0
- package/dist/domain/agent/defaultagent.d.ts.map +1 -0
- package/dist/domain/agent/defaultagent.js +104 -0
- package/dist/domain/agent/defaultagent.js.map +1 -0
- package/dist/domain/agent/search-extractor.d.ts +3 -0
- package/dist/domain/agent/search-extractor.d.ts.map +1 -0
- package/dist/domain/agent/search-extractor.js +50 -0
- package/dist/domain/agent/search-extractor.js.map +1 -0
- package/dist/domain/agent/steps.d.ts +81 -0
- package/dist/domain/agent/steps.d.ts.map +1 -0
- package/dist/domain/agent/steps.js +482 -0
- package/dist/domain/agent/steps.js.map +1 -0
- package/dist/domain/agentchannel/channel-runtime.d.ts +137 -0
- package/dist/domain/agentchannel/channel-runtime.d.ts.map +1 -0
- package/dist/domain/agentchannel/channel-runtime.js +2 -0
- package/dist/domain/agentchannel/channel-runtime.js.map +1 -0
- package/dist/domain/agentchannel/constants.d.ts +77 -0
- package/dist/domain/agentchannel/constants.d.ts.map +1 -0
- package/dist/domain/agentchannel/constants.js +90 -0
- package/dist/domain/agentchannel/constants.js.map +1 -0
- package/dist/domain/agentchannel/controller.d.ts +57 -0
- package/dist/domain/agentchannel/controller.d.ts.map +1 -0
- package/dist/domain/agentchannel/controller.js +377 -0
- package/dist/domain/agentchannel/controller.js.map +1 -0
- package/dist/domain/agentchannel/conversation.d.ts +45 -0
- package/dist/domain/agentchannel/conversation.d.ts.map +1 -0
- package/dist/domain/agentchannel/conversation.js +69 -0
- package/dist/domain/agentchannel/conversation.js.map +1 -0
- package/dist/domain/agentchannel/message.d.ts +48 -0
- package/dist/domain/agentchannel/message.d.ts.map +1 -0
- package/dist/domain/agentchannel/message.js +40 -0
- package/dist/domain/agentchannel/message.js.map +1 -0
- package/dist/domain/agentchannel/steps.d.ts +79 -0
- package/dist/domain/agentchannel/steps.d.ts.map +1 -0
- package/dist/domain/agentchannel/steps.js +264 -0
- package/dist/domain/agentchannel/steps.js.map +1 -0
- package/dist/domain/agentexecution/approval/author.d.ts +57 -0
- package/dist/domain/agentexecution/approval/author.d.ts.map +1 -0
- package/dist/domain/agentexecution/approval/author.js +194 -0
- package/dist/domain/agentexecution/approval/author.js.map +1 -0
- package/dist/domain/agentexecution/approval/compute-from-events.d.ts +10 -0
- package/dist/domain/agentexecution/approval/compute-from-events.d.ts.map +1 -0
- package/dist/domain/agentexecution/approval/compute-from-events.js +80 -0
- package/dist/domain/agentexecution/approval/compute-from-events.js.map +1 -0
- package/dist/domain/agentexecution/approval/compute.d.ts +26 -0
- package/dist/domain/agentexecution/approval/compute.d.ts.map +1 -0
- package/dist/domain/agentexecution/approval/compute.js +118 -0
- package/dist/domain/agentexecution/approval/compute.js.map +1 -0
- package/dist/domain/agentexecution/approval/emit.d.ts +70 -0
- package/dist/domain/agentexecution/approval/emit.d.ts.map +1 -0
- package/dist/domain/agentexecution/approval/emit.js +212 -0
- package/dist/domain/agentexecution/approval/emit.js.map +1 -0
- package/dist/domain/agentexecution/approval/lease-scope.d.ts +37 -0
- package/dist/domain/agentexecution/approval/lease-scope.d.ts.map +1 -0
- package/dist/domain/agentexecution/approval/lease-scope.js +26 -0
- package/dist/domain/agentexecution/approval/lease-scope.js.map +1 -0
- package/dist/domain/agentexecution/approval/preserve.d.ts +4 -0
- package/dist/domain/agentexecution/approval/preserve.d.ts.map +1 -0
- package/dist/domain/agentexecution/approval/preserve.js +62 -0
- package/dist/domain/agentexecution/approval/preserve.js.map +1 -0
- package/dist/domain/agentexecution/approval/project.d.ts +9 -0
- package/dist/domain/agentexecution/approval/project.d.ts.map +1 -0
- package/dist/domain/agentexecution/approval/project.js +105 -0
- package/dist/domain/agentexecution/approval/project.js.map +1 -0
- package/dist/domain/agentexecution/approval/tool-category.d.ts +22 -0
- package/dist/domain/agentexecution/approval/tool-category.d.ts.map +1 -0
- package/dist/domain/agentexecution/approval/tool-category.js +55 -0
- package/dist/domain/agentexecution/approval/tool-category.js.map +1 -0
- package/dist/domain/agentexecution/artifacts.d.ts +50 -0
- package/dist/domain/agentexecution/artifacts.d.ts.map +1 -0
- package/dist/domain/agentexecution/artifacts.js +376 -0
- package/dist/domain/agentexecution/artifacts.js.map +1 -0
- package/dist/domain/agentexecution/constants.d.ts +24 -0
- package/dist/domain/agentexecution/constants.d.ts.map +1 -0
- package/dist/domain/agentexecution/constants.js +26 -0
- package/dist/domain/agentexecution/constants.js.map +1 -0
- package/dist/domain/agentexecution/controller.d.ts +102 -0
- package/dist/domain/agentexecution/controller.d.ts.map +1 -0
- package/dist/domain/agentexecution/controller.js +256 -0
- package/dist/domain/agentexecution/controller.js.map +1 -0
- package/dist/domain/agentexecution/create-execution-context-step.d.ts +104 -0
- package/dist/domain/agentexecution/create-execution-context-step.d.ts.map +1 -0
- package/dist/domain/agentexecution/create-execution-context-step.js +756 -0
- package/dist/domain/agentexecution/create-execution-context-step.js.map +1 -0
- package/dist/domain/agentexecution/create-steps.d.ts +159 -0
- package/dist/domain/agentexecution/create-steps.d.ts.map +1 -0
- package/dist/domain/agentexecution/create-steps.js +660 -0
- package/dist/domain/agentexecution/create-steps.js.map +1 -0
- package/dist/domain/agentexecution/engine.d.ts +100 -0
- package/dist/domain/agentexecution/engine.d.ts.map +1 -0
- package/dist/domain/agentexecution/engine.js +49 -0
- package/dist/domain/agentexecution/engine.js.map +1 -0
- package/dist/domain/agentexecution/filereview/author.d.ts +119 -0
- package/dist/domain/agentexecution/filereview/author.d.ts.map +1 -0
- package/dist/domain/agentexecution/filereview/author.js +257 -0
- package/dist/domain/agentexecution/filereview/author.js.map +1 -0
- package/dist/domain/agentexecution/filereview/autokeep.d.ts +20 -0
- package/dist/domain/agentexecution/filereview/autokeep.d.ts.map +1 -0
- package/dist/domain/agentexecution/filereview/autokeep.js +189 -0
- package/dist/domain/agentexecution/filereview/autokeep.js.map +1 -0
- package/dist/domain/agentexecution/filereview/cas-blob.d.ts +23 -0
- package/dist/domain/agentexecution/filereview/cas-blob.d.ts.map +1 -0
- package/dist/domain/agentexecution/filereview/cas-blob.js +45 -0
- package/dist/domain/agentexecution/filereview/cas-blob.js.map +1 -0
- package/dist/domain/agentexecution/filereview/digest.d.ts +16 -0
- package/dist/domain/agentexecution/filereview/digest.d.ts.map +1 -0
- package/dist/domain/agentexecution/filereview/digest.js +52 -0
- package/dist/domain/agentexecution/filereview/digest.js.map +1 -0
- package/dist/domain/agentexecution/filereview/gate.d.ts +38 -0
- package/dist/domain/agentexecution/filereview/gate.d.ts.map +1 -0
- package/dist/domain/agentexecution/filereview/gate.js +45 -0
- package/dist/domain/agentexecution/filereview/gate.js.map +1 -0
- package/dist/domain/agentexecution/filereview/progress.d.ts +3 -0
- package/dist/domain/agentexecution/filereview/progress.d.ts.map +1 -0
- package/dist/domain/agentexecution/filereview/progress.js +37 -0
- package/dist/domain/agentexecution/filereview/progress.js.map +1 -0
- package/dist/domain/agentexecution/filereview/project.d.ts +9 -0
- package/dist/domain/agentexecution/filereview/project.d.ts.map +1 -0
- package/dist/domain/agentexecution/filereview/project.js +152 -0
- package/dist/domain/agentexecution/filereview/project.js.map +1 -0
- package/dist/domain/agentexecution/lifecycle.d.ts +74 -0
- package/dist/domain/agentexecution/lifecycle.d.ts.map +1 -0
- package/dist/domain/agentexecution/lifecycle.js +570 -0
- package/dist/domain/agentexecution/lifecycle.js.map +1 -0
- package/dist/domain/agentexecution/phases.d.ts +22 -0
- package/dist/domain/agentexecution/phases.d.ts.map +1 -0
- package/dist/domain/agentexecution/phases.js +36 -0
- package/dist/domain/agentexecution/phases.js.map +1 -0
- package/dist/domain/agentexecution/record-runner-lineage-labels.d.ts +42 -0
- package/dist/domain/agentexecution/record-runner-lineage-labels.d.ts.map +1 -0
- package/dist/domain/agentexecution/record-runner-lineage-labels.js +38 -0
- package/dist/domain/agentexecution/record-runner-lineage-labels.js.map +1 -0
- package/dist/domain/agentexecution/search-extractor.d.ts +3 -0
- package/dist/domain/agentexecution/search-extractor.d.ts.map +1 -0
- package/dist/domain/agentexecution/search-extractor.js +48 -0
- package/dist/domain/agentexecution/search-extractor.js.map +1 -0
- package/dist/domain/agentexecution/status-observers.d.ts +26 -0
- package/dist/domain/agentexecution/status-observers.d.ts.map +1 -0
- package/dist/domain/agentexecution/status-observers.js +83 -0
- package/dist/domain/agentexecution/status-observers.js.map +1 -0
- package/dist/domain/agentexecution/steps.d.ts +51 -0
- package/dist/domain/agentexecution/steps.d.ts.map +1 -0
- package/dist/domain/agentexecution/steps.js +160 -0
- package/dist/domain/agentexecution/steps.js.map +1 -0
- package/dist/domain/agentexecution/stream-broker.d.ts +63 -0
- package/dist/domain/agentexecution/stream-broker.d.ts.map +1 -0
- package/dist/domain/agentexecution/stream-broker.js +87 -0
- package/dist/domain/agentexecution/stream-broker.js.map +1 -0
- package/dist/domain/agentexecution/submit-approval.d.ts +41 -0
- package/dist/domain/agentexecution/submit-approval.d.ts.map +1 -0
- package/dist/domain/agentexecution/submit-approval.js +393 -0
- package/dist/domain/agentexecution/submit-approval.js.map +1 -0
- package/dist/domain/agentexecution/submit-file-decision.d.ts +21 -0
- package/dist/domain/agentexecution/submit-file-decision.d.ts.map +1 -0
- package/dist/domain/agentexecution/submit-file-decision.js +286 -0
- package/dist/domain/agentexecution/submit-file-decision.js.map +1 -0
- package/dist/domain/agentexecution/subscribe.d.ts +16 -0
- package/dist/domain/agentexecution/subscribe.d.ts.map +1 -0
- package/dist/domain/agentexecution/subscribe.js +120 -0
- package/dist/domain/agentexecution/subscribe.js.map +1 -0
- package/dist/domain/agentexecution/temporal/config.d.ts +99 -0
- package/dist/domain/agentexecution/temporal/config.d.ts.map +1 -0
- package/dist/domain/agentexecution/temporal/config.js +106 -0
- package/dist/domain/agentexecution/temporal/config.js.map +1 -0
- package/dist/domain/agentexecution/tool-call-settle.d.ts +31 -0
- package/dist/domain/agentexecution/tool-call-settle.d.ts.map +1 -0
- package/dist/domain/agentexecution/tool-call-settle.js +36 -0
- package/dist/domain/agentexecution/tool-call-settle.js.map +1 -0
- package/dist/domain/agentexecution/update-status.d.ts +45 -0
- package/dist/domain/agentexecution/update-status.d.ts.map +1 -0
- package/dist/domain/agentexecution/update-status.js +381 -0
- package/dist/domain/agentexecution/update-status.js.map +1 -0
- package/dist/domain/agentexecution/usage.d.ts +114 -0
- package/dist/domain/agentexecution/usage.d.ts.map +1 -0
- package/dist/domain/agentexecution/usage.js +675 -0
- package/dist/domain/agentexecution/usage.js.map +1 -0
- package/dist/domain/agentexecution/validate-service-tier.d.ts +29 -0
- package/dist/domain/agentexecution/validate-service-tier.d.ts.map +1 -0
- package/dist/domain/agentexecution/validate-service-tier.js +39 -0
- package/dist/domain/agentexecution/validate-service-tier.js.map +1 -0
- package/dist/domain/agentexecution/validate-thinking-mode.d.ts +32 -0
- package/dist/domain/agentexecution/validate-thinking-mode.d.ts.map +1 -0
- package/dist/domain/agentexecution/validate-thinking-mode.js +41 -0
- package/dist/domain/agentexecution/validate-thinking-mode.js.map +1 -0
- package/dist/domain/agentinstance/controller.d.ts +47 -0
- package/dist/domain/agentinstance/controller.d.ts.map +1 -0
- package/dist/domain/agentinstance/controller.js +278 -0
- package/dist/domain/agentinstance/controller.js.map +1 -0
- package/dist/domain/agentinstance/defaultinstance.d.ts +24 -0
- package/dist/domain/agentinstance/defaultinstance.d.ts.map +1 -0
- package/dist/domain/agentinstance/defaultinstance.js +74 -0
- package/dist/domain/agentinstance/defaultinstance.js.map +1 -0
- package/dist/domain/agentinstance/search-extractor.d.ts +3 -0
- package/dist/domain/agentinstance/search-extractor.d.ts.map +1 -0
- package/dist/domain/agentinstance/search-extractor.js +43 -0
- package/dist/domain/agentinstance/search-extractor.js.map +1 -0
- package/dist/domain/agentinstance/steps.d.ts +77 -0
- package/dist/domain/agentinstance/steps.d.ts.map +1 -0
- package/dist/domain/agentinstance/steps.js +261 -0
- package/dist/domain/agentinstance/steps.js.map +1 -0
- package/dist/domain/agentshare/constants.d.ts +47 -0
- package/dist/domain/agentshare/constants.d.ts.map +1 -0
- package/dist/domain/agentshare/constants.js +56 -0
- package/dist/domain/agentshare/constants.js.map +1 -0
- package/dist/domain/agentshare/controller.d.ts +42 -0
- package/dist/domain/agentshare/controller.d.ts.map +1 -0
- package/dist/domain/agentshare/controller.js +535 -0
- package/dist/domain/agentshare/controller.js.map +1 -0
- package/dist/domain/agentshare/steps.d.ts +84 -0
- package/dist/domain/agentshare/steps.d.ts.map +1 -0
- package/dist/domain/agentshare/steps.js +363 -0
- package/dist/domain/agentshare/steps.js.map +1 -0
- package/dist/domain/apikey/controller.d.ts +43 -0
- package/dist/domain/apikey/controller.d.ts.map +1 -0
- package/dist/domain/apikey/controller.js +154 -0
- package/dist/domain/apikey/controller.js.map +1 -0
- package/dist/domain/apikey/keymaterial.d.ts +23 -0
- package/dist/domain/apikey/keymaterial.d.ts.map +1 -0
- package/dist/domain/apikey/keymaterial.js +59 -0
- package/dist/domain/apikey/keymaterial.js.map +1 -0
- package/dist/domain/apikey/lookup.d.ts +10 -0
- package/dist/domain/apikey/lookup.d.ts.map +1 -0
- package/dist/domain/apikey/lookup.js +36 -0
- package/dist/domain/apikey/lookup.js.map +1 -0
- package/dist/domain/apikey/steps.d.ts +41 -0
- package/dist/domain/apikey/steps.d.ts.map +1 -0
- package/dist/domain/apikey/steps.js +123 -0
- package/dist/domain/apikey/steps.js.map +1 -0
- package/dist/domain/apikey/verifier.d.ts +8 -0
- package/dist/domain/apikey/verifier.d.ts.map +1 -0
- package/dist/domain/apikey/verifier.js +68 -0
- package/dist/domain/apikey/verifier.js.map +1 -0
- package/dist/domain/artifact/constants.d.ts +36 -0
- package/dist/domain/artifact/constants.d.ts.map +1 -0
- package/dist/domain/artifact/constants.js +40 -0
- package/dist/domain/artifact/constants.js.map +1 -0
- package/dist/domain/artifact/controller.d.ts +15 -0
- package/dist/domain/artifact/controller.d.ts.map +1 -0
- package/dist/domain/artifact/controller.js +468 -0
- package/dist/domain/artifact/controller.js.map +1 -0
- package/dist/domain/artifact/file-server.d.ts +29 -0
- package/dist/domain/artifact/file-server.d.ts.map +1 -0
- package/dist/domain/artifact/file-server.js +173 -0
- package/dist/domain/artifact/file-server.js.map +1 -0
- package/dist/domain/channelapp/constants.d.ts +45 -0
- package/dist/domain/channelapp/constants.d.ts.map +1 -0
- package/dist/domain/channelapp/constants.js +54 -0
- package/dist/domain/channelapp/constants.js.map +1 -0
- package/dist/domain/channelapp/controller.d.ts +41 -0
- package/dist/domain/channelapp/controller.d.ts.map +1 -0
- package/dist/domain/channelapp/controller.js +237 -0
- package/dist/domain/channelapp/controller.js.map +1 -0
- package/dist/domain/channelapp/steps.d.ts +72 -0
- package/dist/domain/channelapp/steps.d.ts.map +1 -0
- package/dist/domain/channelapp/steps.js +285 -0
- package/dist/domain/channelapp/steps.js.map +1 -0
- package/dist/domain/environment/constants.d.ts +48 -0
- package/dist/domain/environment/constants.d.ts.map +1 -0
- package/dist/domain/environment/constants.js +57 -0
- package/dist/domain/environment/constants.js.map +1 -0
- package/dist/domain/environment/controller.d.ts +40 -0
- package/dist/domain/environment/controller.d.ts.map +1 -0
- package/dist/domain/environment/controller.js +429 -0
- package/dist/domain/environment/controller.js.map +1 -0
- package/dist/domain/environment/redact.d.ts +43 -0
- package/dist/domain/environment/redact.d.ts.map +1 -0
- package/dist/domain/environment/redact.js +54 -0
- package/dist/domain/environment/redact.js.map +1 -0
- package/dist/domain/environment/resolution/resolution.d.ts +47 -0
- package/dist/domain/environment/resolution/resolution.d.ts.map +1 -0
- package/dist/domain/environment/resolution/resolution.js +120 -0
- package/dist/domain/environment/resolution/resolution.js.map +1 -0
- package/dist/domain/environment/search-extractor.d.ts +3 -0
- package/dist/domain/environment/search-extractor.d.ts.map +1 -0
- package/dist/domain/environment/search-extractor.js +43 -0
- package/dist/domain/environment/search-extractor.js.map +1 -0
- package/dist/domain/environment/steps.d.ts +141 -0
- package/dist/domain/environment/steps.d.ts.map +1 -0
- package/dist/domain/environment/steps.js +445 -0
- package/dist/domain/environment/steps.js.map +1 -0
- package/dist/domain/executioncontext/constants.d.ts +36 -0
- package/dist/domain/executioncontext/constants.d.ts.map +1 -0
- package/dist/domain/executioncontext/constants.js +42 -0
- package/dist/domain/executioncontext/constants.js.map +1 -0
- package/dist/domain/executioncontext/controller.d.ts +63 -0
- package/dist/domain/executioncontext/controller.d.ts.map +1 -0
- package/dist/domain/executioncontext/controller.js +189 -0
- package/dist/domain/executioncontext/controller.js.map +1 -0
- package/dist/domain/executioncontext/redact.d.ts +28 -0
- package/dist/domain/executioncontext/redact.d.ts.map +1 -0
- package/dist/domain/executioncontext/redact.js +32 -0
- package/dist/domain/executioncontext/redact.js.map +1 -0
- package/dist/domain/executioncontext/resolve-values-for-caller.d.ts +72 -0
- package/dist/domain/executioncontext/resolve-values-for-caller.d.ts.map +1 -0
- package/dist/domain/executioncontext/resolve-values-for-caller.js +130 -0
- package/dist/domain/executioncontext/resolve-values-for-caller.js.map +1 -0
- package/dist/domain/executioncontext/search-extractor.d.ts +3 -0
- package/dist/domain/executioncontext/search-extractor.d.ts.map +1 -0
- package/dist/domain/executioncontext/search-extractor.js +43 -0
- package/dist/domain/executioncontext/search-extractor.js.map +1 -0
- package/dist/domain/executioncontext/steps.d.ts +104 -0
- package/dist/domain/executioncontext/steps.d.ts.map +1 -0
- package/dist/domain/executioncontext/steps.js +216 -0
- package/dist/domain/executioncontext/steps.js.map +1 -0
- package/dist/domain/executioncontext/temporal/delete-execution-context.d.ts +11 -0
- package/dist/domain/executioncontext/temporal/delete-execution-context.d.ts.map +1 -0
- package/dist/domain/executioncontext/temporal/delete-execution-context.js +71 -0
- package/dist/domain/executioncontext/temporal/delete-execution-context.js.map +1 -0
- package/dist/domain/github/controller.d.ts +12 -0
- package/dist/domain/github/controller.d.ts.map +1 -0
- package/dist/domain/github/controller.js +141 -0
- package/dist/domain/github/controller.js.map +1 -0
- package/dist/domain/mcpserver/complete-oauth-connect.d.ts +23 -0
- package/dist/domain/mcpserver/complete-oauth-connect.d.ts.map +1 -0
- package/dist/domain/mcpserver/complete-oauth-connect.js +232 -0
- package/dist/domain/mcpserver/complete-oauth-connect.js.map +1 -0
- package/dist/domain/mcpserver/connect-status.d.ts +100 -0
- package/dist/domain/mcpserver/connect-status.d.ts.map +1 -0
- package/dist/domain/mcpserver/connect-status.js +219 -0
- package/dist/domain/mcpserver/connect-status.js.map +1 -0
- package/dist/domain/mcpserver/connect.d.ts +235 -0
- package/dist/domain/mcpserver/connect.d.ts.map +1 -0
- package/dist/domain/mcpserver/connect.js +805 -0
- package/dist/domain/mcpserver/connect.js.map +1 -0
- package/dist/domain/mcpserver/controller.d.ts +19 -0
- package/dist/domain/mcpserver/controller.d.ts.map +1 -0
- package/dist/domain/mcpserver/controller.js +344 -0
- package/dist/domain/mcpserver/controller.js.map +1 -0
- package/dist/domain/mcpserver/disconnect-oauth.d.ts +5 -0
- package/dist/domain/mcpserver/disconnect-oauth.d.ts.map +1 -0
- package/dist/domain/mcpserver/disconnect-oauth.js +82 -0
- package/dist/domain/mcpserver/disconnect-oauth.js.map +1 -0
- package/dist/domain/mcpserver/enabledtools/enabledtools.d.ts +63 -0
- package/dist/domain/mcpserver/enabledtools/enabledtools.d.ts.map +1 -0
- package/dist/domain/mcpserver/enabledtools/enabledtools.js +46 -0
- package/dist/domain/mcpserver/enabledtools/enabledtools.js.map +1 -0
- package/dist/domain/mcpserver/engine.d.ts +171 -0
- package/dist/domain/mcpserver/engine.d.ts.map +1 -0
- package/dist/domain/mcpserver/engine.js +27 -0
- package/dist/domain/mcpserver/engine.js.map +1 -0
- package/dist/domain/mcpserver/get-oauth-grant-status.d.ts +20 -0
- package/dist/domain/mcpserver/get-oauth-grant-status.d.ts.map +1 -0
- package/dist/domain/mcpserver/get-oauth-grant-status.js +77 -0
- package/dist/domain/mcpserver/get-oauth-grant-status.js.map +1 -0
- package/dist/domain/mcpserver/initiate-oauth-connect.d.ts +52 -0
- package/dist/domain/mcpserver/initiate-oauth-connect.d.ts.map +1 -0
- package/dist/domain/mcpserver/initiate-oauth-connect.js +331 -0
- package/dist/domain/mcpserver/initiate-oauth-connect.js.map +1 -0
- package/dist/domain/mcpserver/oauth/dcr.d.ts +17 -0
- package/dist/domain/mcpserver/oauth/dcr.d.ts.map +1 -0
- package/dist/domain/mcpserver/oauth/dcr.js +62 -0
- package/dist/domain/mcpserver/oauth/dcr.js.map +1 -0
- package/dist/domain/mcpserver/oauth/discovery.d.ts +37 -0
- package/dist/domain/mcpserver/oauth/discovery.d.ts.map +1 -0
- package/dist/domain/mcpserver/oauth/discovery.js +93 -0
- package/dist/domain/mcpserver/oauth/discovery.js.map +1 -0
- package/dist/domain/mcpserver/oauth/managed-env.d.ts +69 -0
- package/dist/domain/mcpserver/oauth/managed-env.d.ts.map +1 -0
- package/dist/domain/mcpserver/oauth/managed-env.js +111 -0
- package/dist/domain/mcpserver/oauth/managed-env.js.map +1 -0
- package/dist/domain/mcpserver/oauth/pkce.d.ts +14 -0
- package/dist/domain/mcpserver/oauth/pkce.d.ts.map +1 -0
- package/dist/domain/mcpserver/oauth/pkce.js +22 -0
- package/dist/domain/mcpserver/oauth/pkce.js.map +1 -0
- package/dist/domain/mcpserver/oauth/preflight.d.ts +31 -0
- package/dist/domain/mcpserver/oauth/preflight.d.ts.map +1 -0
- package/dist/domain/mcpserver/oauth/preflight.js +82 -0
- package/dist/domain/mcpserver/oauth/preflight.js.map +1 -0
- package/dist/domain/mcpserver/oauth/refresh.d.ts +34 -0
- package/dist/domain/mcpserver/oauth/refresh.d.ts.map +1 -0
- package/dist/domain/mcpserver/oauth/refresh.js +74 -0
- package/dist/domain/mcpserver/oauth/refresh.js.map +1 -0
- package/dist/domain/mcpserver/oauth/token.d.ts +32 -0
- package/dist/domain/mcpserver/oauth/token.d.ts.map +1 -0
- package/dist/domain/mcpserver/oauth/token.js +112 -0
- package/dist/domain/mcpserver/oauth/token.js.map +1 -0
- package/dist/domain/mcpserver/oauth/truncate-body.d.ts +8 -0
- package/dist/domain/mcpserver/oauth/truncate-body.d.ts.map +1 -0
- package/dist/domain/mcpserver/oauth/truncate-body.js +11 -0
- package/dist/domain/mcpserver/oauth/truncate-body.js.map +1 -0
- package/dist/domain/mcpserver/search-extractor.d.ts +3 -0
- package/dist/domain/mcpserver/search-extractor.d.ts.map +1 -0
- package/dist/domain/mcpserver/search-extractor.js +45 -0
- package/dist/domain/mcpserver/search-extractor.js.map +1 -0
- package/dist/domain/mcpserver/start-connect.d.ts +38 -0
- package/dist/domain/mcpserver/start-connect.d.ts.map +1 -0
- package/dist/domain/mcpserver/start-connect.js +175 -0
- package/dist/domain/mcpserver/start-connect.js.map +1 -0
- package/dist/domain/mcpserver/steps.d.ts +63 -0
- package/dist/domain/mcpserver/steps.d.ts.map +1 -0
- package/dist/domain/mcpserver/steps.js +144 -0
- package/dist/domain/mcpserver/steps.js.map +1 -0
- package/dist/domain/memory/constants.d.ts +47 -0
- package/dist/domain/memory/constants.d.ts.map +1 -0
- package/dist/domain/memory/constants.js +49 -0
- package/dist/domain/memory/constants.js.map +1 -0
- package/dist/domain/memory/controller.d.ts +79 -0
- package/dist/domain/memory/controller.d.ts.map +1 -0
- package/dist/domain/memory/controller.js +250 -0
- package/dist/domain/memory/controller.js.map +1 -0
- package/dist/domain/memory/steps.d.ts +161 -0
- package/dist/domain/memory/steps.d.ts.map +1 -0
- package/dist/domain/memory/steps.js +468 -0
- package/dist/domain/memory/steps.js.map +1 -0
- package/dist/domain/oauthapp/constants.d.ts +32 -0
- package/dist/domain/oauthapp/constants.d.ts.map +1 -0
- package/dist/domain/oauthapp/constants.js +35 -0
- package/dist/domain/oauthapp/constants.js.map +1 -0
- package/dist/domain/oauthapp/controller.d.ts +42 -0
- package/dist/domain/oauthapp/controller.d.ts.map +1 -0
- package/dist/domain/oauthapp/controller.js +232 -0
- package/dist/domain/oauthapp/controller.js.map +1 -0
- package/dist/domain/oauthapp/refresolution/refresolution.d.ts +12 -0
- package/dist/domain/oauthapp/refresolution/refresolution.d.ts.map +1 -0
- package/dist/domain/oauthapp/refresolution/refresolution.js +79 -0
- package/dist/domain/oauthapp/refresolution/refresolution.js.map +1 -0
- package/dist/domain/oauthapp/refresolution.d.ts +12 -0
- package/dist/domain/oauthapp/refresolution.d.ts.map +1 -0
- package/dist/domain/oauthapp/refresolution.js +83 -0
- package/dist/domain/oauthapp/refresolution.js.map +1 -0
- package/dist/domain/oauthapp/steps.d.ts +47 -0
- package/dist/domain/oauthapp/steps.d.ts.map +1 -0
- package/dist/domain/oauthapp/steps.js +169 -0
- package/dist/domain/oauthapp/steps.js.map +1 -0
- package/dist/domain/organization/controller.d.ts +46 -0
- package/dist/domain/organization/controller.d.ts.map +1 -0
- package/dist/domain/organization/controller.js +323 -0
- package/dist/domain/organization/controller.js.map +1 -0
- package/dist/domain/organization/search-extractor.d.ts +3 -0
- package/dist/domain/organization/search-extractor.d.ts.map +1 -0
- package/dist/domain/organization/search-extractor.js +43 -0
- package/dist/domain/organization/search-extractor.js.map +1 -0
- package/dist/domain/organization/steps.d.ts +30 -0
- package/dist/domain/organization/steps.d.ts.map +1 -0
- package/dist/domain/organization/steps.js +89 -0
- package/dist/domain/organization/steps.js.map +1 -0
- package/dist/domain/platform/controller.d.ts +60 -0
- package/dist/domain/platform/controller.d.ts.map +1 -0
- package/dist/domain/platform/controller.js +172 -0
- package/dist/domain/platform/controller.js.map +1 -0
- package/dist/domain/platform/version.d.ts +15 -0
- package/dist/domain/platform/version.d.ts.map +1 -0
- package/dist/domain/platform/version.js +18 -0
- package/dist/domain/platform/version.js.map +1 -0
- package/dist/domain/project/controller.d.ts +48 -0
- package/dist/domain/project/controller.d.ts.map +1 -0
- package/dist/domain/project/controller.js +192 -0
- package/dist/domain/project/controller.js.map +1 -0
- package/dist/domain/project/reconcile.d.ts +77 -0
- package/dist/domain/project/reconcile.d.ts.map +1 -0
- package/dist/domain/project/reconcile.js +175 -0
- package/dist/domain/project/reconcile.js.map +1 -0
- package/dist/domain/project/search-extractor.d.ts +3 -0
- package/dist/domain/project/search-extractor.d.ts.map +1 -0
- package/dist/domain/project/search-extractor.js +43 -0
- package/dist/domain/project/search-extractor.js.map +1 -0
- package/dist/domain/schedule/clock.d.ts +54 -0
- package/dist/domain/schedule/clock.d.ts.map +1 -0
- package/dist/domain/schedule/clock.js +143 -0
- package/dist/domain/schedule/clock.js.map +1 -0
- package/dist/domain/schedule/controller.d.ts +67 -0
- package/dist/domain/schedule/controller.d.ts.map +1 -0
- package/dist/domain/schedule/controller.js +383 -0
- package/dist/domain/schedule/controller.js.map +1 -0
- package/dist/domain/schedule/cron.d.ts +29 -0
- package/dist/domain/schedule/cron.d.ts.map +1 -0
- package/dist/domain/schedule/cron.js +130 -0
- package/dist/domain/schedule/cron.js.map +1 -0
- package/dist/domain/schedule/list-runs.d.ts +24 -0
- package/dist/domain/schedule/list-runs.d.ts.map +1 -0
- package/dist/domain/schedule/list-runs.js +203 -0
- package/dist/domain/schedule/list-runs.js.map +1 -0
- package/dist/domain/schedule/persist-update.d.ts +5 -0
- package/dist/domain/schedule/persist-update.d.ts.map +1 -0
- package/dist/domain/schedule/persist-update.js +62 -0
- package/dist/domain/schedule/persist-update.js.map +1 -0
- package/dist/domain/schedule/resume.d.ts +33 -0
- package/dist/domain/schedule/resume.d.ts.map +1 -0
- package/dist/domain/schedule/resume.js +82 -0
- package/dist/domain/schedule/resume.js.map +1 -0
- package/dist/domain/schedule/steps.d.ts +96 -0
- package/dist/domain/schedule/steps.d.ts.map +1 -0
- package/dist/domain/schedule/steps.js +208 -0
- package/dist/domain/schedule/steps.js.map +1 -0
- package/dist/domain/schedule/trigger.d.ts +59 -0
- package/dist/domain/schedule/trigger.d.ts.map +1 -0
- package/dist/domain/schedule/trigger.js +195 -0
- package/dist/domain/schedule/trigger.js.map +1 -0
- package/dist/domain/session/controller.d.ts +66 -0
- package/dist/domain/session/controller.d.ts.map +1 -0
- package/dist/domain/session/controller.js +282 -0
- package/dist/domain/session/controller.js.map +1 -0
- package/dist/domain/session/search-extractor.d.ts +3 -0
- package/dist/domain/session/search-extractor.d.ts.map +1 -0
- package/dist/domain/session/search-extractor.js +43 -0
- package/dist/domain/session/search-extractor.js.map +1 -0
- package/dist/domain/session/steps.d.ts +96 -0
- package/dist/domain/session/steps.d.ts.map +1 -0
- package/dist/domain/session/steps.js +592 -0
- package/dist/domain/session/steps.js.map +1 -0
- package/dist/domain/skill/constants.d.ts +64 -0
- package/dist/domain/skill/constants.d.ts.map +1 -0
- package/dist/domain/skill/constants.js +64 -0
- package/dist/domain/skill/constants.js.map +1 -0
- package/dist/domain/skill/controller.d.ts +38 -0
- package/dist/domain/skill/controller.d.ts.map +1 -0
- package/dist/domain/skill/controller.js +476 -0
- package/dist/domain/skill/controller.js.map +1 -0
- package/dist/domain/skill/push.d.ts +97 -0
- package/dist/domain/skill/push.d.ts.map +1 -0
- package/dist/domain/skill/push.js +485 -0
- package/dist/domain/skill/push.js.map +1 -0
- package/dist/domain/skill/search-extractor.d.ts +3 -0
- package/dist/domain/skill/search-extractor.d.ts.map +1 -0
- package/dist/domain/skill/search-extractor.js +44 -0
- package/dist/domain/skill/search-extractor.js.map +1 -0
- package/dist/domain/skill/storage/artifact-storage.d.ts +33 -0
- package/dist/domain/skill/storage/artifact-storage.d.ts.map +1 -0
- package/dist/domain/skill/storage/artifact-storage.js +106 -0
- package/dist/domain/skill/storage/artifact-storage.js.map +1 -0
- package/dist/domain/skill/storage/frontmatter.d.ts +16 -0
- package/dist/domain/skill/storage/frontmatter.d.ts.map +1 -0
- package/dist/domain/skill/storage/frontmatter.js +143 -0
- package/dist/domain/skill/storage/frontmatter.js.map +1 -0
- package/dist/domain/skill/storage/prefilter.d.ts +77 -0
- package/dist/domain/skill/storage/prefilter.d.ts.map +1 -0
- package/dist/domain/skill/storage/prefilter.js +127 -0
- package/dist/domain/skill/storage/prefilter.js.map +1 -0
- package/dist/domain/skill/storage/zip-gate.d.ts +20 -0
- package/dist/domain/skill/storage/zip-gate.d.ts.map +1 -0
- package/dist/domain/skill/storage/zip-gate.js +186 -0
- package/dist/domain/skill/storage/zip-gate.js.map +1 -0
- package/dist/domain/skill/transfer/handler.d.ts +36 -0
- package/dist/domain/skill/transfer/handler.d.ts.map +1 -0
- package/dist/domain/skill/transfer/handler.js +120 -0
- package/dist/domain/skill/transfer/handler.js.map +1 -0
- package/dist/domain/skill/transfer/slots.d.ts +79 -0
- package/dist/domain/skill/transfer/slots.d.ts.map +1 -0
- package/dist/domain/skill/transfer/slots.js +216 -0
- package/dist/domain/skill/transfer/slots.js.map +1 -0
- package/dist/domain/skill/version-resolution.d.ts +16 -0
- package/dist/domain/skill/version-resolution.d.ts.map +1 -0
- package/dist/domain/skill/version-resolution.js +254 -0
- package/dist/domain/skill/version-resolution.js.map +1 -0
- package/dist/domain/workflow/controller.d.ts +45 -0
- package/dist/domain/workflow/controller.d.ts.map +1 -0
- package/dist/domain/workflow/controller.js +751 -0
- package/dist/domain/workflow/controller.js.map +1 -0
- package/dist/domain/workflow/converter/converter.d.ts +8 -0
- package/dist/domain/workflow/converter/converter.d.ts.map +1 -0
- package/dist/domain/workflow/converter/converter.js +122 -0
- package/dist/domain/workflow/converter/converter.js.map +1 -0
- package/dist/domain/workflow/converter/task-converters.d.ts +30 -0
- package/dist/domain/workflow/converter/task-converters.d.ts.map +1 -0
- package/dist/domain/workflow/converter/task-converters.js +608 -0
- package/dist/domain/workflow/converter/task-converters.js.map +1 -0
- package/dist/domain/workflow/converter/types.d.ts +13 -0
- package/dist/domain/workflow/converter/types.d.ts.map +1 -0
- package/dist/domain/workflow/converter/types.js +2 -0
- package/dist/domain/workflow/converter/types.js.map +1 -0
- package/dist/domain/workflow/converter/unmarshal.d.ts +39 -0
- package/dist/domain/workflow/converter/unmarshal.d.ts.map +1 -0
- package/dist/domain/workflow/converter/unmarshal.js +165 -0
- package/dist/domain/workflow/converter/unmarshal.js.map +1 -0
- package/dist/domain/workflow/registry/bundled.d.ts +3 -0
- package/dist/domain/workflow/registry/bundled.d.ts.map +1 -0
- package/dist/domain/workflow/registry/bundled.js +21 -0
- package/dist/domain/workflow/registry/bundled.js.map +1 -0
- package/dist/domain/workflow/registry/data/model-registry.json +1236 -0
- package/dist/domain/workflow/registry/data/task-kind-registry.json +3177 -0
- package/dist/domain/workflow/registry/document-catalog.d.ts +68 -0
- package/dist/domain/workflow/registry/document-catalog.d.ts.map +1 -0
- package/dist/domain/workflow/registry/document-catalog.js +238 -0
- package/dist/domain/workflow/registry/document-catalog.js.map +1 -0
- package/dist/domain/workflow/registry/model-catalog-provider.d.ts +108 -0
- package/dist/domain/workflow/registry/model-catalog-provider.d.ts.map +1 -0
- package/dist/domain/workflow/registry/model-catalog-provider.js +34 -0
- package/dist/domain/workflow/registry/model-catalog-provider.js.map +1 -0
- package/dist/domain/workflow/registry/model-registry-store.d.ts +151 -0
- package/dist/domain/workflow/registry/model-registry-store.d.ts.map +1 -0
- package/dist/domain/workflow/registry/model-registry-store.js +196 -0
- package/dist/domain/workflow/registry/model-registry-store.js.map +1 -0
- package/dist/domain/workflow/registry/pin-validation.d.ts +67 -0
- package/dist/domain/workflow/registry/pin-validation.d.ts.map +1 -0
- package/dist/domain/workflow/registry/pin-validation.js +151 -0
- package/dist/domain/workflow/registry/pin-validation.js.map +1 -0
- package/dist/domain/workflow/search-extractor.d.ts +3 -0
- package/dist/domain/workflow/search-extractor.d.ts.map +1 -0
- package/dist/domain/workflow/search-extractor.js +44 -0
- package/dist/domain/workflow/search-extractor.js.map +1 -0
- package/dist/domain/workflow/steps.d.ts +72 -0
- package/dist/domain/workflow/steps.d.ts.map +1 -0
- package/dist/domain/workflow/steps.js +536 -0
- package/dist/domain/workflow/steps.js.map +1 -0
- package/dist/domain/workflow/validation/budget-warnings.d.ts +3 -0
- package/dist/domain/workflow/validation/budget-warnings.d.ts.map +1 -0
- package/dist/domain/workflow/validation/budget-warnings.js +109 -0
- package/dist/domain/workflow/validation/budget-warnings.js.map +1 -0
- package/dist/domain/workflow/validation/crossref.d.ts +31 -0
- package/dist/domain/workflow/validation/crossref.d.ts.map +1 -0
- package/dist/domain/workflow/validation/crossref.js +338 -0
- package/dist/domain/workflow/validation/crossref.js.map +1 -0
- package/dist/domain/workflow/validation/expression-warnings.d.ts +3 -0
- package/dist/domain/workflow/validation/expression-warnings.d.ts.map +1 -0
- package/dist/domain/workflow/validation/expression-warnings.js +78 -0
- package/dist/domain/workflow/validation/expression-warnings.js.map +1 -0
- package/dist/domain/workflow/validation/format-violation.d.ts +23 -0
- package/dist/domain/workflow/validation/format-violation.d.ts.map +1 -0
- package/dist/domain/workflow/validation/format-violation.js +37 -0
- package/dist/domain/workflow/validation/format-violation.js.map +1 -0
- package/dist/domain/workflow/validation/human-input-validation.d.ts +3 -0
- package/dist/domain/workflow/validation/human-input-validation.d.ts.map +1 -0
- package/dist/domain/workflow/validation/human-input-validation.js +78 -0
- package/dist/domain/workflow/validation/human-input-validation.js.map +1 -0
- package/dist/domain/workflow/validation/model-validation.d.ts +13 -0
- package/dist/domain/workflow/validation/model-validation.d.ts.map +1 -0
- package/dist/domain/workflow/validation/model-validation.js +175 -0
- package/dist/domain/workflow/validation/model-validation.js.map +1 -0
- package/dist/domain/workflow/validation/task-config-constraints.d.ts +7 -0
- package/dist/domain/workflow/validation/task-config-constraints.d.ts.map +1 -0
- package/dist/domain/workflow/validation/task-config-constraints.js +126 -0
- package/dist/domain/workflow/validation/task-config-constraints.js.map +1 -0
- package/dist/domain/workflow/validation/validator.d.ts +11 -0
- package/dist/domain/workflow/validation/validator.d.ts.map +1 -0
- package/dist/domain/workflow/validation/validator.js +116 -0
- package/dist/domain/workflow/validation/validator.js.map +1 -0
- package/dist/domain/workflowexecution/constants.d.ts +83 -0
- package/dist/domain/workflowexecution/constants.d.ts.map +1 -0
- package/dist/domain/workflowexecution/constants.js +87 -0
- package/dist/domain/workflowexecution/constants.js.map +1 -0
- package/dist/domain/workflowexecution/controller.d.ts +95 -0
- package/dist/domain/workflowexecution/controller.d.ts.map +1 -0
- package/dist/domain/workflowexecution/controller.js +270 -0
- package/dist/domain/workflowexecution/controller.js.map +1 -0
- package/dist/domain/workflowexecution/create-execution-context-step.d.ts +30 -0
- package/dist/domain/workflowexecution/create-execution-context-step.d.ts.map +1 -0
- package/dist/domain/workflowexecution/create-execution-context-step.js +141 -0
- package/dist/domain/workflowexecution/create-execution-context-step.js.map +1 -0
- package/dist/domain/workflowexecution/create-steps.d.ts +70 -0
- package/dist/domain/workflowexecution/create-steps.d.ts.map +1 -0
- package/dist/domain/workflowexecution/create-steps.js +254 -0
- package/dist/domain/workflowexecution/create-steps.js.map +1 -0
- package/dist/domain/workflowexecution/engine.d.ts +131 -0
- package/dist/domain/workflowexecution/engine.d.ts.map +1 -0
- package/dist/domain/workflowexecution/engine.js +38 -0
- package/dist/domain/workflowexecution/engine.js.map +1 -0
- package/dist/domain/workflowexecution/execution-filter.d.ts +38 -0
- package/dist/domain/workflowexecution/execution-filter.d.ts.map +1 -0
- package/dist/domain/workflowexecution/execution-filter.js +177 -0
- package/dist/domain/workflowexecution/execution-filter.js.map +1 -0
- package/dist/domain/workflowexecution/get-event-log.d.ts +16 -0
- package/dist/domain/workflowexecution/get-event-log.d.ts.map +1 -0
- package/dist/domain/workflowexecution/get-event-log.js +95 -0
- package/dist/domain/workflowexecution/get-event-log.js.map +1 -0
- package/dist/domain/workflowexecution/get-execution-summary.d.ts +20 -0
- package/dist/domain/workflowexecution/get-execution-summary.d.ts.map +1 -0
- package/dist/domain/workflowexecution/get-execution-summary.js +212 -0
- package/dist/domain/workflowexecution/get-execution-summary.js.map +1 -0
- package/dist/domain/workflowexecution/lifecycle.d.ts +80 -0
- package/dist/domain/workflowexecution/lifecycle.d.ts.map +1 -0
- package/dist/domain/workflowexecution/lifecycle.js +560 -0
- package/dist/domain/workflowexecution/lifecycle.js.map +1 -0
- package/dist/domain/workflowexecution/list-pending-approvals.d.ts +13 -0
- package/dist/domain/workflowexecution/list-pending-approvals.d.ts.map +1 -0
- package/dist/domain/workflowexecution/list-pending-approvals.js +69 -0
- package/dist/domain/workflowexecution/list-pending-approvals.js.map +1 -0
- package/dist/domain/workflowexecution/normalize-workflow-ref-step.d.ts +6 -0
- package/dist/domain/workflowexecution/normalize-workflow-ref-step.d.ts.map +1 -0
- package/dist/domain/workflowexecution/normalize-workflow-ref-step.js +54 -0
- package/dist/domain/workflowexecution/normalize-workflow-ref-step.js.map +1 -0
- package/dist/domain/workflowexecution/pin-workflow-version-step.d.ts +8 -0
- package/dist/domain/workflowexecution/pin-workflow-version-step.d.ts.map +1 -0
- package/dist/domain/workflowexecution/pin-workflow-version-step.js +81 -0
- package/dist/domain/workflowexecution/pin-workflow-version-step.js.map +1 -0
- package/dist/domain/workflowexecution/queries.d.ts +10 -0
- package/dist/domain/workflowexecution/queries.d.ts.map +1 -0
- package/dist/domain/workflowexecution/queries.js +40 -0
- package/dist/domain/workflowexecution/queries.js.map +1 -0
- package/dist/domain/workflowexecution/search-extractor.d.ts +3 -0
- package/dist/domain/workflowexecution/search-extractor.d.ts.map +1 -0
- package/dist/domain/workflowexecution/search-extractor.js +44 -0
- package/dist/domain/workflowexecution/search-extractor.js.map +1 -0
- package/dist/domain/workflowexecution/send-signal.d.ts +16 -0
- package/dist/domain/workflowexecution/send-signal.d.ts.map +1 -0
- package/dist/domain/workflowexecution/send-signal.js +189 -0
- package/dist/domain/workflowexecution/send-signal.js.map +1 -0
- package/dist/domain/workflowexecution/stream-broker.d.ts +70 -0
- package/dist/domain/workflowexecution/stream-broker.d.ts.map +1 -0
- package/dist/domain/workflowexecution/stream-broker.js +87 -0
- package/dist/domain/workflowexecution/stream-broker.js.map +1 -0
- package/dist/domain/workflowexecution/submit-approval.d.ts +40 -0
- package/dist/domain/workflowexecution/submit-approval.d.ts.map +1 -0
- package/dist/domain/workflowexecution/submit-approval.js +105 -0
- package/dist/domain/workflowexecution/submit-approval.js.map +1 -0
- package/dist/domain/workflowexecution/submit-file-decision.d.ts +26 -0
- package/dist/domain/workflowexecution/submit-file-decision.d.ts.map +1 -0
- package/dist/domain/workflowexecution/submit-file-decision.js +118 -0
- package/dist/domain/workflowexecution/submit-file-decision.js.map +1 -0
- package/dist/domain/workflowexecution/submit-workflow-task-approval.d.ts +16 -0
- package/dist/domain/workflowexecution/submit-workflow-task-approval.d.ts.map +1 -0
- package/dist/domain/workflowexecution/submit-workflow-task-approval.js +119 -0
- package/dist/domain/workflowexecution/submit-workflow-task-approval.js.map +1 -0
- package/dist/domain/workflowexecution/subscribe-events.d.ts +14 -0
- package/dist/domain/workflowexecution/subscribe-events.d.ts.map +1 -0
- package/dist/domain/workflowexecution/subscribe-events.js +155 -0
- package/dist/domain/workflowexecution/subscribe-events.js.map +1 -0
- package/dist/domain/workflowexecution/subscribe.d.ts +24 -0
- package/dist/domain/workflowexecution/subscribe.d.ts.map +1 -0
- package/dist/domain/workflowexecution/subscribe.js +124 -0
- package/dist/domain/workflowexecution/subscribe.js.map +1 -0
- package/dist/domain/workflowexecution/temporal/config.d.ts +108 -0
- package/dist/domain/workflowexecution/temporal/config.d.ts.map +1 -0
- package/dist/domain/workflowexecution/temporal/config.js +111 -0
- package/dist/domain/workflowexecution/temporal/config.js.map +1 -0
- package/dist/domain/workflowexecution/update-status.d.ts +41 -0
- package/dist/domain/workflowexecution/update-status.d.ts.map +1 -0
- package/dist/domain/workflowexecution/update-status.js +280 -0
- package/dist/domain/workflowexecution/update-status.js.map +1 -0
- package/dist/domain/workflowinstance/controller.d.ts +44 -0
- package/dist/domain/workflowinstance/controller.d.ts.map +1 -0
- package/dist/domain/workflowinstance/controller.js +387 -0
- package/dist/domain/workflowinstance/controller.js.map +1 -0
- package/dist/domain/workflowinstance/defaultinstance.d.ts +23 -0
- package/dist/domain/workflowinstance/defaultinstance.d.ts.map +1 -0
- package/dist/domain/workflowinstance/defaultinstance.js +58 -0
- package/dist/domain/workflowinstance/defaultinstance.js.map +1 -0
- package/dist/domain/workflowinstance/search-extractor.d.ts +3 -0
- package/dist/domain/workflowinstance/search-extractor.d.ts.map +1 -0
- package/dist/domain/workflowinstance/search-extractor.js +44 -0
- package/dist/domain/workflowinstance/search-extractor.js.map +1 -0
- package/dist/domain/workflowinstance/steps.d.ts +57 -0
- package/dist/domain/workflowinstance/steps.d.ts.map +1 -0
- package/dist/domain/workflowinstance/steps.js +143 -0
- package/dist/domain/workflowinstance/steps.js.map +1 -0
- package/dist/encryption/codec.d.ts +102 -0
- package/dist/encryption/codec.d.ts.map +1 -0
- package/dist/encryption/codec.js +2 -0
- package/dist/encryption/codec.js.map +1 -0
- package/dist/encryption/encryption.d.ts +210 -0
- package/dist/encryption/encryption.d.ts.map +1 -0
- package/dist/encryption/encryption.js +418 -0
- package/dist/encryption/encryption.js.map +1 -0
- package/dist/encryption/errors.d.ts +66 -0
- package/dist/encryption/errors.d.ts.map +1 -0
- package/dist/encryption/errors.js +83 -0
- package/dist/encryption/errors.js.map +1 -0
- package/dist/encryption/key-manager.d.ts +23 -0
- package/dist/encryption/key-manager.d.ts.map +1 -0
- package/dist/encryption/key-manager.js +130 -0
- package/dist/encryption/key-manager.js.map +1 -0
- package/dist/encryption/scope.d.ts +80 -0
- package/dist/encryption/scope.d.ts.map +1 -0
- package/dist/encryption/scope.js +133 -0
- package/dist/encryption/scope.js.map +1 -0
- package/dist/encryption/v1-codec.d.ts +36 -0
- package/dist/encryption/v1-codec.d.ts.map +1 -0
- package/dist/encryption/v1-codec.js +120 -0
- package/dist/encryption/v1-codec.js.map +1 -0
- package/dist/envmerge/envmerge.d.ts +45 -0
- package/dist/envmerge/envmerge.d.ts.map +1 -0
- package/dist/envmerge/envmerge.js +88 -0
- package/dist/envmerge/envmerge.js.map +1 -0
- package/dist/extensions/authorizer.d.ts +70 -0
- package/dist/extensions/authorizer.d.ts.map +1 -0
- package/dist/extensions/authorizer.js +2 -0
- package/dist/extensions/authorizer.js.map +1 -0
- package/dist/extensions/caller-guards.d.ts +56 -0
- package/dist/extensions/caller-guards.d.ts.map +1 -0
- package/dist/extensions/caller-guards.js +2 -0
- package/dist/extensions/caller-guards.js.map +1 -0
- package/dist/extensions/drivers.d.ts +140 -0
- package/dist/extensions/drivers.d.ts.map +1 -0
- package/dist/extensions/drivers.js +2 -0
- package/dist/extensions/drivers.js.map +1 -0
- package/dist/extensions/gate-slots.d.ts +68 -0
- package/dist/extensions/gate-slots.d.ts.map +1 -0
- package/dist/extensions/gate-slots.js +32 -0
- package/dist/extensions/gate-slots.js.map +1 -0
- package/dist/extensions/identity.d.ts +91 -0
- package/dist/extensions/identity.d.ts.map +1 -0
- package/dist/extensions/identity.js +16 -0
- package/dist/extensions/identity.js.map +1 -0
- package/dist/extensions/list-read-scope.d.ts +108 -0
- package/dist/extensions/list-read-scope.d.ts.map +1 -0
- package/dist/extensions/list-read-scope.js +31 -0
- package/dist/extensions/list-read-scope.js.map +1 -0
- package/dist/extensions/organization-directory.d.ts +49 -0
- package/dist/extensions/organization-directory.d.ts.map +1 -0
- package/dist/extensions/organization-directory.js +6 -0
- package/dist/extensions/organization-directory.js.map +1 -0
- package/dist/extensions/registry.d.ts +221 -0
- package/dist/extensions/registry.d.ts.map +1 -0
- package/dist/extensions/registry.js +230 -0
- package/dist/extensions/registry.js.map +1 -0
- package/dist/extensions/resource-authorization.d.ts +135 -0
- package/dist/extensions/resource-authorization.d.ts.map +1 -0
- package/dist/extensions/resource-authorization.js +2 -0
- package/dist/extensions/resource-authorization.js.map +1 -0
- package/dist/extensions/schedule-fire-caller.d.ts +33 -0
- package/dist/extensions/schedule-fire-caller.d.ts.map +1 -0
- package/dist/extensions/schedule-fire-caller.js +2 -0
- package/dist/extensions/schedule-fire-caller.js.map +1 -0
- package/dist/extensions/status-hooks.d.ts +47 -0
- package/dist/extensions/status-hooks.d.ts.map +1 -0
- package/dist/extensions/status-hooks.js +2 -0
- package/dist/extensions/status-hooks.js.map +1 -0
- package/dist/gocompat/query-escape.d.ts +22 -0
- package/dist/gocompat/query-escape.d.ts.map +1 -0
- package/dist/gocompat/query-escape.js +42 -0
- package/dist/gocompat/query-escape.js.map +1 -0
- package/dist/gocompat/trim.d.ts +10 -0
- package/dist/gocompat/trim.d.ts.map +1 -0
- package/dist/gocompat/trim.js +31 -0
- package/dist/gocompat/trim.js.map +1 -0
- package/dist/identity/oidc-verifier.d.ts +14 -0
- package/dist/identity/oidc-verifier.d.ts.map +1 -0
- package/dist/identity/oidc-verifier.js +136 -0
- package/dist/identity/oidc-verifier.js.map +1 -0
- package/dist/index.d.ts +98 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +143 -0
- package/dist/index.js.map +1 -0
- package/dist/main.d.ts +2 -0
- package/dist/main.d.ts.map +1 -0
- package/dist/main.js +62 -0
- package/dist/main.js.map +1 -0
- package/dist/observability/rpc-metrics.d.ts +89 -0
- package/dist/observability/rpc-metrics.d.ts.map +1 -0
- package/dist/observability/rpc-metrics.js +151 -0
- package/dist/observability/rpc-metrics.js.map +1 -0
- package/dist/pipeline/apiresource-labels.d.ts +52 -0
- package/dist/pipeline/apiresource-labels.d.ts.map +1 -0
- package/dist/pipeline/apiresource-labels.js +39 -0
- package/dist/pipeline/apiresource-labels.js.map +1 -0
- package/dist/pipeline/apiresource-meta.d.ts +35 -0
- package/dist/pipeline/apiresource-meta.d.ts.map +1 -0
- package/dist/pipeline/apiresource-meta.js +114 -0
- package/dist/pipeline/apiresource-meta.js.map +1 -0
- package/dist/pipeline/chain.d.ts +45 -0
- package/dist/pipeline/chain.d.ts.map +1 -0
- package/dist/pipeline/chain.js +14 -0
- package/dist/pipeline/chain.js.map +1 -0
- package/dist/pipeline/errors.d.ts +83 -0
- package/dist/pipeline/errors.d.ts.map +1 -0
- package/dist/pipeline/errors.js +129 -0
- package/dist/pipeline/errors.js.map +1 -0
- package/dist/pipeline/interceptors/apiresource.d.ts +10 -0
- package/dist/pipeline/interceptors/apiresource.d.ts.map +1 -0
- package/dist/pipeline/interceptors/apiresource.js +38 -0
- package/dist/pipeline/interceptors/apiresource.js.map +1 -0
- package/dist/pipeline/interceptors/auth.d.ts +138 -0
- package/dist/pipeline/interceptors/auth.d.ts.map +1 -0
- package/dist/pipeline/interceptors/auth.js +371 -0
- package/dist/pipeline/interceptors/auth.js.map +1 -0
- package/dist/pipeline/interceptors/error-boundary.d.ts +48 -0
- package/dist/pipeline/interceptors/error-boundary.d.ts.map +1 -0
- package/dist/pipeline/interceptors/error-boundary.js +185 -0
- package/dist/pipeline/interceptors/error-boundary.js.map +1 -0
- package/dist/pipeline/interceptors/logging.d.ts +4 -0
- package/dist/pipeline/interceptors/logging.d.ts.map +1 -0
- package/dist/pipeline/interceptors/logging.js +68 -0
- package/dist/pipeline/interceptors/logging.js.map +1 -0
- package/dist/pipeline/interceptors/protovalidate.d.ts +3 -0
- package/dist/pipeline/interceptors/protovalidate.d.ts.map +1 -0
- package/dist/pipeline/interceptors/protovalidate.js +50 -0
- package/dist/pipeline/interceptors/protovalidate.js.map +1 -0
- package/dist/pipeline/interceptors/request-metrics.d.ts +5 -0
- package/dist/pipeline/interceptors/request-metrics.d.ts.map +1 -0
- package/dist/pipeline/interceptors/request-metrics.js +99 -0
- package/dist/pipeline/interceptors/request-metrics.js.map +1 -0
- package/dist/pipeline/pipeline.d.ts +36 -0
- package/dist/pipeline/pipeline.d.ts.map +1 -0
- package/dist/pipeline/pipeline.js +93 -0
- package/dist/pipeline/pipeline.js.map +1 -0
- package/dist/pipeline/request-context.d.ts +39 -0
- package/dist/pipeline/request-context.d.ts.map +1 -0
- package/dist/pipeline/request-context.js +76 -0
- package/dist/pipeline/request-context.js.map +1 -0
- package/dist/pipeline/steps/authorization-tuples.d.ts +105 -0
- package/dist/pipeline/steps/authorization-tuples.d.ts.map +1 -0
- package/dist/pipeline/steps/authorization-tuples.js +315 -0
- package/dist/pipeline/steps/authorization-tuples.js.map +1 -0
- package/dist/pipeline/steps/authorize.d.ts +61 -0
- package/dist/pipeline/steps/authorize.d.ts.map +1 -0
- package/dist/pipeline/steps/authorize.js +221 -0
- package/dist/pipeline/steps/authorize.js.map +1 -0
- package/dist/pipeline/steps/build-update-state.d.ts +4 -0
- package/dist/pipeline/steps/build-update-state.d.ts.map +1 -0
- package/dist/pipeline/steps/build-update-state.js +93 -0
- package/dist/pipeline/steps/build-update-state.js.map +1 -0
- package/dist/pipeline/steps/defaults.d.ts +97 -0
- package/dist/pipeline/steps/defaults.d.ts.map +1 -0
- package/dist/pipeline/steps/defaults.js +251 -0
- package/dist/pipeline/steps/defaults.js.map +1 -0
- package/dist/pipeline/steps/delete.d.ts +21 -0
- package/dist/pipeline/steps/delete.d.ts.map +1 -0
- package/dist/pipeline/steps/delete.js +60 -0
- package/dist/pipeline/steps/delete.js.map +1 -0
- package/dist/pipeline/steps/duplicate.d.ts +12 -0
- package/dist/pipeline/steps/duplicate.d.ts.map +1 -0
- package/dist/pipeline/steps/duplicate.js +31 -0
- package/dist/pipeline/steps/duplicate.js.map +1 -0
- package/dist/pipeline/steps/guard-memory-capture.d.ts +61 -0
- package/dist/pipeline/steps/guard-memory-capture.d.ts.map +1 -0
- package/dist/pipeline/steps/guard-memory-capture.js +83 -0
- package/dist/pipeline/steps/guard-memory-capture.js.map +1 -0
- package/dist/pipeline/steps/guard-reserved-labels.d.ts +13 -0
- package/dist/pipeline/steps/guard-reserved-labels.d.ts.map +1 -0
- package/dist/pipeline/steps/guard-reserved-labels.js +138 -0
- package/dist/pipeline/steps/guard-reserved-labels.js.map +1 -0
- package/dist/pipeline/steps/helpers.d.ts +38 -0
- package/dist/pipeline/steps/helpers.d.ts.map +1 -0
- package/dist/pipeline/steps/helpers.js +122 -0
- package/dist/pipeline/steps/helpers.js.map +1 -0
- package/dist/pipeline/steps/index-search.d.ts +23 -0
- package/dist/pipeline/steps/index-search.d.ts.map +1 -0
- package/dist/pipeline/steps/index-search.js +56 -0
- package/dist/pipeline/steps/index-search.js.map +1 -0
- package/dist/pipeline/steps/load-by-reference.d.ts +12 -0
- package/dist/pipeline/steps/load-by-reference.d.ts.map +1 -0
- package/dist/pipeline/steps/load-by-reference.js +29 -0
- package/dist/pipeline/steps/load-by-reference.js.map +1 -0
- package/dist/pipeline/steps/load-existing.d.ts +19 -0
- package/dist/pipeline/steps/load-existing.d.ts.map +1 -0
- package/dist/pipeline/steps/load-existing.js +44 -0
- package/dist/pipeline/steps/load-existing.js.map +1 -0
- package/dist/pipeline/steps/load-for-apply.d.ts +21 -0
- package/dist/pipeline/steps/load-for-apply.d.ts.map +1 -0
- package/dist/pipeline/steps/load-for-apply.js +60 -0
- package/dist/pipeline/steps/load-for-apply.js.map +1 -0
- package/dist/pipeline/steps/load-target.d.ts +20 -0
- package/dist/pipeline/steps/load-target.d.ts.map +1 -0
- package/dist/pipeline/steps/load-target.js +29 -0
- package/dist/pipeline/steps/load-target.js.map +1 -0
- package/dist/pipeline/steps/persist.d.ts +9 -0
- package/dist/pipeline/steps/persist.d.ts.map +1 -0
- package/dist/pipeline/steps/persist.js +23 -0
- package/dist/pipeline/steps/persist.js.map +1 -0
- package/dist/pipeline/steps/references.d.ts +22 -0
- package/dist/pipeline/steps/references.d.ts.map +1 -0
- package/dist/pipeline/steps/references.js +128 -0
- package/dist/pipeline/steps/references.js.map +1 -0
- package/dist/pipeline/steps/secret-cleanup.d.ts +47 -0
- package/dist/pipeline/steps/secret-cleanup.d.ts.map +1 -0
- package/dist/pipeline/steps/secret-cleanup.js +56 -0
- package/dist/pipeline/steps/secret-cleanup.js.map +1 -0
- package/dist/pipeline/steps/server-stamped-reserved-labels.d.ts +36 -0
- package/dist/pipeline/steps/server-stamped-reserved-labels.d.ts.map +1 -0
- package/dist/pipeline/steps/server-stamped-reserved-labels.js +25 -0
- package/dist/pipeline/steps/server-stamped-reserved-labels.js.map +1 -0
- package/dist/pipeline/steps/shapes.d.ts +43 -0
- package/dist/pipeline/steps/shapes.d.ts.map +1 -0
- package/dist/pipeline/steps/shapes.js +69 -0
- package/dist/pipeline/steps/shapes.js.map +1 -0
- package/dist/pipeline/steps/slug.d.ts +18 -0
- package/dist/pipeline/steps/slug.d.ts.map +1 -0
- package/dist/pipeline/steps/slug.js +34 -0
- package/dist/pipeline/steps/slug.js.map +1 -0
- package/dist/pipeline/steps/validate-visibility.d.ts +29 -0
- package/dist/pipeline/steps/validate-visibility.d.ts.map +1 -0
- package/dist/pipeline/steps/validate-visibility.js +52 -0
- package/dist/pipeline/steps/validate-visibility.js.map +1 -0
- package/dist/pipeline/steps/validation.d.ts +6 -0
- package/dist/pipeline/steps/validation.d.ts.map +1 -0
- package/dist/pipeline/steps/validation.js +35 -0
- package/dist/pipeline/steps/validation.js.map +1 -0
- package/dist/pipeline/steps/visibility-gates.d.ts +19 -0
- package/dist/pipeline/steps/visibility-gates.d.ts.map +1 -0
- package/dist/pipeline/steps/visibility-gates.js +134 -0
- package/dist/pipeline/steps/visibility-gates.js.map +1 -0
- package/dist/query/activity/controller.d.ts +28 -0
- package/dist/query/activity/controller.d.ts.map +1 -0
- package/dist/query/activity/controller.js +20 -0
- package/dist/query/activity/controller.js.map +1 -0
- package/dist/query/activity/handler.d.ts +84 -0
- package/dist/query/activity/handler.d.ts.map +1 -0
- package/dist/query/activity/handler.js +269 -0
- package/dist/query/activity/handler.js.map +1 -0
- package/dist/query/search/controller.d.ts +33 -0
- package/dist/query/search/controller.d.ts.map +1 -0
- package/dist/query/search/controller.js +43 -0
- package/dist/query/search/controller.js.map +1 -0
- package/dist/query/search/criteria.d.ts +95 -0
- package/dist/query/search/criteria.d.ts.map +1 -0
- package/dist/query/search/criteria.js +172 -0
- package/dist/query/search/criteria.js.map +1 -0
- package/dist/query/search/extractor.d.ts +45 -0
- package/dist/query/search/extractor.d.ts.map +1 -0
- package/dist/query/search/extractor.js +52 -0
- package/dist/query/search/extractor.js.map +1 -0
- package/dist/query/search/handler.d.ts +27 -0
- package/dist/query/search/handler.d.ts.map +1 -0
- package/dist/query/search/handler.js +86 -0
- package/dist/query/search/handler.js.map +1 -0
- package/dist/query/search/paged-result.d.ts +25 -0
- package/dist/query/search/paged-result.d.ts.map +1 -0
- package/dist/query/search/paged-result.js +26 -0
- package/dist/query/search/paged-result.js.map +1 -0
- package/dist/query/search/query-store.d.ts +38 -0
- package/dist/query/search/query-store.d.ts.map +1 -0
- package/dist/query/search/query-store.js +186 -0
- package/dist/query/search/query-store.js.map +1 -0
- package/dist/query/search/registry.d.ts +51 -0
- package/dist/query/search/registry.d.ts.map +1 -0
- package/dist/query/search/registry.js +108 -0
- package/dist/query/search/registry.js.map +1 -0
- package/dist/runnerauth/runner-credential-provider.d.ts +279 -0
- package/dist/runnerauth/runner-credential-provider.d.ts.map +1 -0
- package/dist/runnerauth/runner-credential-provider.js +28 -0
- package/dist/runnerauth/runner-credential-provider.js.map +1 -0
- package/dist/runnerauth/runnerauth.d.ts +87 -0
- package/dist/runnerauth/runnerauth.d.ts.map +1 -0
- package/dist/runnerauth/runnerauth.js +203 -0
- package/dist/runnerauth/runnerauth.js.map +1 -0
- package/dist/sandbox/builtins.d.ts +3 -0
- package/dist/sandbox/builtins.d.ts.map +1 -0
- package/dist/sandbox/builtins.js +18 -0
- package/dist/sandbox/builtins.js.map +1 -0
- package/dist/sandbox/docker.d.ts +3 -0
- package/dist/sandbox/docker.d.ts.map +1 -0
- package/dist/sandbox/docker.js +168 -0
- package/dist/sandbox/docker.js.map +1 -0
- package/dist/sandbox/kubernetes.d.ts +27 -0
- package/dist/sandbox/kubernetes.d.ts.map +1 -0
- package/dist/sandbox/kubernetes.js +378 -0
- package/dist/sandbox/kubernetes.js.map +1 -0
- package/dist/sandbox/lane.d.ts +53 -0
- package/dist/sandbox/lane.d.ts.map +1 -0
- package/dist/sandbox/lane.js +34 -0
- package/dist/sandbox/lane.js.map +1 -0
- package/dist/sandbox/local-process.d.ts +3 -0
- package/dist/sandbox/local-process.d.ts.map +1 -0
- package/dist/sandbox/local-process.js +155 -0
- package/dist/sandbox/local-process.js.map +1 -0
- package/dist/sandbox/naming.d.ts +11 -0
- package/dist/sandbox/naming.d.ts.map +1 -0
- package/dist/sandbox/naming.js +33 -0
- package/dist/sandbox/naming.js.map +1 -0
- package/dist/sandbox/provisioner.d.ts +138 -0
- package/dist/sandbox/provisioner.d.ts.map +1 -0
- package/dist/sandbox/provisioner.js +31 -0
- package/dist/sandbox/provisioner.js.map +1 -0
- package/dist/sandbox/steps.d.ts +92 -0
- package/dist/sandbox/steps.d.ts.map +1 -0
- package/dist/sandbox/steps.js +267 -0
- package/dist/sandbox/steps.js.map +1 -0
- package/dist/store/interface.d.ts +585 -0
- package/dist/store/interface.d.ts.map +1 -0
- package/dist/store/interface.js +51 -0
- package/dist/store/interface.js.map +1 -0
- package/dist/store/logger.d.ts +13 -0
- package/dist/store/logger.d.ts.map +1 -0
- package/dist/store/logger.js +3 -0
- package/dist/store/logger.js.map +1 -0
- package/dist/store/postgres/migrations.d.ts +60 -0
- package/dist/store/postgres/migrations.d.ts.map +1 -0
- package/dist/store/postgres/migrations.js +242 -0
- package/dist/store/postgres/migrations.js.map +1 -0
- package/dist/store/postgres/store.d.ts +69 -0
- package/dist/store/postgres/store.d.ts.map +1 -0
- package/dist/store/postgres/store.js +873 -0
- package/dist/store/postgres/store.js.map +1 -0
- package/dist/store/postgres/tsquery.d.ts +54 -0
- package/dist/store/postgres/tsquery.d.ts.map +1 -0
- package/dist/store/postgres/tsquery.js +78 -0
- package/dist/store/postgres/tsquery.js.map +1 -0
- package/dist/store/proto-fields.d.ts +42 -0
- package/dist/store/proto-fields.d.ts.map +1 -0
- package/dist/store/proto-fields.js +171 -0
- package/dist/store/proto-fields.js.map +1 -0
- package/dist/store/rfc3339.d.ts +11 -0
- package/dist/store/rfc3339.d.ts.map +1 -0
- package/dist/store/rfc3339.js +13 -0
- package/dist/store/rfc3339.js.map +1 -0
- package/dist/store/sqlite/fts5.d.ts +40 -0
- package/dist/store/sqlite/fts5.d.ts.map +1 -0
- package/dist/store/sqlite/fts5.js +68 -0
- package/dist/store/sqlite/fts5.js.map +1 -0
- package/dist/store/sqlite/migrations.d.ts +50 -0
- package/dist/store/sqlite/migrations.d.ts.map +1 -0
- package/dist/store/sqlite/migrations.js +291 -0
- package/dist/store/sqlite/migrations.js.map +1 -0
- package/dist/store/sqlite/store.d.ts +64 -0
- package/dist/store/sqlite/store.d.ts.map +1 -0
- package/dist/store/sqlite/store.js +874 -0
- package/dist/store/sqlite/store.js.map +1 -0
- package/dist/temporal/agentexecution/activities.d.ts +45 -0
- package/dist/temporal/agentexecution/activities.d.ts.map +1 -0
- package/dist/temporal/agentexecution/activities.js +158 -0
- package/dist/temporal/agentexecution/activities.js.map +1 -0
- package/dist/temporal/agentexecution/dispatch.d.ts +24 -0
- package/dist/temporal/agentexecution/dispatch.d.ts.map +1 -0
- package/dist/temporal/agentexecution/dispatch.js +106 -0
- package/dist/temporal/agentexecution/dispatch.js.map +1 -0
- package/dist/temporal/agentexecution/engine-client.d.ts +63 -0
- package/dist/temporal/agentexecution/engine-client.d.ts.map +1 -0
- package/dist/temporal/agentexecution/engine-client.js +144 -0
- package/dist/temporal/agentexecution/engine-client.js.map +1 -0
- package/dist/temporal/agentexecution/names.d.ts +82 -0
- package/dist/temporal/agentexecution/names.d.ts.map +1 -0
- package/dist/temporal/agentexecution/names.js +88 -0
- package/dist/temporal/agentexecution/names.js.map +1 -0
- package/dist/temporal/agentexecution/runner-result.d.ts +27 -0
- package/dist/temporal/agentexecution/runner-result.d.ts.map +1 -0
- package/dist/temporal/agentexecution/runner-result.js +50 -0
- package/dist/temporal/agentexecution/runner-result.js.map +1 -0
- package/dist/temporal/agentexecution/worker.d.ts +40 -0
- package/dist/temporal/agentexecution/worker.d.ts.map +1 -0
- package/dist/temporal/agentexecution/worker.js +37 -0
- package/dist/temporal/agentexecution/worker.js.map +1 -0
- package/dist/temporal/agentexecution/workflow-input.d.ts +41 -0
- package/dist/temporal/agentexecution/workflow-input.d.ts.map +1 -0
- package/dist/temporal/agentexecution/workflow-input.js +2 -0
- package/dist/temporal/agentexecution/workflow-input.js.map +1 -0
- package/dist/temporal/agentexecution/workflows/index.d.ts +16 -0
- package/dist/temporal/agentexecution/workflows/index.d.ts.map +1 -0
- package/dist/temporal/agentexecution/workflows/index.js +16 -0
- package/dist/temporal/agentexecution/workflows/index.js.map +1 -0
- package/dist/temporal/agentexecution/workflows/invoke-agent-execution.d.ts +3 -0
- package/dist/temporal/agentexecution/workflows/invoke-agent-execution.d.ts.map +1 -0
- package/dist/temporal/agentexecution/workflows/invoke-agent-execution.js +1091 -0
- package/dist/temporal/agentexecution/workflows/invoke-agent-execution.js.map +1 -0
- package/dist/temporal/manager.d.ts +175 -0
- package/dist/temporal/manager.d.ts.map +1 -0
- package/dist/temporal/manager.js +465 -0
- package/dist/temporal/manager.js.map +1 -0
- package/dist/temporal/mcpserver/engine-client.d.ts +48 -0
- package/dist/temporal/mcpserver/engine-client.d.ts.map +1 -0
- package/dist/temporal/mcpserver/engine-client.js +211 -0
- package/dist/temporal/mcpserver/engine-client.js.map +1 -0
- package/dist/temporal/mcpserver/names.d.ts +20 -0
- package/dist/temporal/mcpserver/names.d.ts.map +1 -0
- package/dist/temporal/mcpserver/names.js +22 -0
- package/dist/temporal/mcpserver/names.js.map +1 -0
- package/dist/temporal/payload-codec.d.ts +71 -0
- package/dist/temporal/payload-codec.d.ts.map +1 -0
- package/dist/temporal/payload-codec.js +57 -0
- package/dist/temporal/payload-codec.js.map +1 -0
- package/dist/temporal/runner-failure.d.ts +13 -0
- package/dist/temporal/runner-failure.d.ts.map +1 -0
- package/dist/temporal/runner-failure.js +65 -0
- package/dist/temporal/runner-failure.js.map +1 -0
- package/dist/temporal/schedule/activities.d.ts +22 -0
- package/dist/temporal/schedule/activities.d.ts.map +1 -0
- package/dist/temporal/schedule/activities.js +350 -0
- package/dist/temporal/schedule/activities.js.map +1 -0
- package/dist/temporal/schedule/artifact.d.ts +61 -0
- package/dist/temporal/schedule/artifact.d.ts.map +1 -0
- package/dist/temporal/schedule/artifact.js +119 -0
- package/dist/temporal/schedule/artifact.js.map +1 -0
- package/dist/temporal/schedule/config.d.ts +153 -0
- package/dist/temporal/schedule/config.d.ts.map +1 -0
- package/dist/temporal/schedule/config.js +186 -0
- package/dist/temporal/schedule/config.js.map +1 -0
- package/dist/temporal/schedule/model-pinning.d.ts +31 -0
- package/dist/temporal/schedule/model-pinning.d.ts.map +1 -0
- package/dist/temporal/schedule/model-pinning.js +18 -0
- package/dist/temporal/schedule/model-pinning.js.map +1 -0
- package/dist/temporal/schedule/names.d.ts +105 -0
- package/dist/temporal/schedule/names.d.ts.map +1 -0
- package/dist/temporal/schedule/names.js +72 -0
- package/dist/temporal/schedule/names.js.map +1 -0
- package/dist/temporal/schedule/reconciler.d.ts +94 -0
- package/dist/temporal/schedule/reconciler.d.ts.map +1 -0
- package/dist/temporal/schedule/reconciler.js +254 -0
- package/dist/temporal/schedule/reconciler.js.map +1 -0
- package/dist/temporal/schedule/run-ledger.d.ts +67 -0
- package/dist/temporal/schedule/run-ledger.d.ts.map +1 -0
- package/dist/temporal/schedule/run-ledger.js +154 -0
- package/dist/temporal/schedule/run-ledger.js.map +1 -0
- package/dist/temporal/schedule/run-starter.d.ts +122 -0
- package/dist/temporal/schedule/run-starter.d.ts.map +1 -0
- package/dist/temporal/schedule/run-starter.js +406 -0
- package/dist/temporal/schedule/run-starter.js.map +1 -0
- package/dist/temporal/schedule/status-writes.d.ts +14 -0
- package/dist/temporal/schedule/status-writes.d.ts.map +1 -0
- package/dist/temporal/schedule/status-writes.js +43 -0
- package/dist/temporal/schedule/status-writes.js.map +1 -0
- package/dist/temporal/schedule/syncer.d.ts +77 -0
- package/dist/temporal/schedule/syncer.d.ts.map +1 -0
- package/dist/temporal/schedule/syncer.js +161 -0
- package/dist/temporal/schedule/syncer.js.map +1 -0
- package/dist/temporal/schedule/worker.d.ts +36 -0
- package/dist/temporal/schedule/worker.d.ts.map +1 -0
- package/dist/temporal/schedule/worker.js +37 -0
- package/dist/temporal/schedule/worker.js.map +1 -0
- package/dist/temporal/schedule/workflows/index.d.ts +12 -0
- package/dist/temporal/schedule/workflows/index.d.ts.map +1 -0
- package/dist/temporal/schedule/workflows/index.js +12 -0
- package/dist/temporal/schedule/workflows/index.js.map +1 -0
- package/dist/temporal/schedule/workflows/tick.d.ts +24 -0
- package/dist/temporal/schedule/workflows/tick.d.ts.map +1 -0
- package/dist/temporal/schedule/workflows/tick.js +283 -0
- package/dist/temporal/schedule/workflows/tick.js.map +1 -0
- package/dist/temporal/workflow-source.d.ts +22 -0
- package/dist/temporal/workflow-source.d.ts.map +1 -0
- package/dist/temporal/workflow-source.js +44 -0
- package/dist/temporal/workflow-source.js.map +1 -0
- package/dist/temporal/workflowexecution/activities.d.ts +34 -0
- package/dist/temporal/workflowexecution/activities.d.ts.map +1 -0
- package/dist/temporal/workflowexecution/activities.js +145 -0
- package/dist/temporal/workflowexecution/activities.js.map +1 -0
- package/dist/temporal/workflowexecution/dispatch.d.ts +38 -0
- package/dist/temporal/workflowexecution/dispatch.d.ts.map +1 -0
- package/dist/temporal/workflowexecution/dispatch.js +28 -0
- package/dist/temporal/workflowexecution/dispatch.js.map +1 -0
- package/dist/temporal/workflowexecution/engine-client.d.ts +67 -0
- package/dist/temporal/workflowexecution/engine-client.d.ts.map +1 -0
- package/dist/temporal/workflowexecution/engine-client.js +145 -0
- package/dist/temporal/workflowexecution/engine-client.js.map +1 -0
- package/dist/temporal/workflowexecution/names.d.ts +69 -0
- package/dist/temporal/workflowexecution/names.d.ts.map +1 -0
- package/dist/temporal/workflowexecution/names.js +71 -0
- package/dist/temporal/workflowexecution/names.js.map +1 -0
- package/dist/temporal/workflowexecution/worker.d.ts +40 -0
- package/dist/temporal/workflowexecution/worker.d.ts.map +1 -0
- package/dist/temporal/workflowexecution/worker.js +37 -0
- package/dist/temporal/workflowexecution/worker.js.map +1 -0
- package/dist/temporal/workflowexecution/workflow-input.d.ts +42 -0
- package/dist/temporal/workflowexecution/workflow-input.d.ts.map +1 -0
- package/dist/temporal/workflowexecution/workflow-input.js +2 -0
- package/dist/temporal/workflowexecution/workflow-input.js.map +1 -0
- package/dist/temporal/workflowexecution/workflows/index.d.ts +16 -0
- package/dist/temporal/workflowexecution/workflows/index.d.ts.map +1 -0
- package/dist/temporal/workflowexecution/workflows/index.js +16 -0
- package/dist/temporal/workflowexecution/workflows/index.js.map +1 -0
- package/dist/temporal/workflowexecution/workflows/invoke-workflow-execution.d.ts +3 -0
- package/dist/temporal/workflowexecution/workflows/invoke-workflow-execution.d.ts.map +1 -0
- package/dist/temporal/workflowexecution/workflows/invoke-workflow-execution.js +430 -0
- package/dist/temporal/workflowexecution/workflows/invoke-workflow-execution.js.map +1 -0
- package/dist/transport/console/assets.d.ts +16 -0
- package/dist/transport/console/assets.d.ts.map +1 -0
- package/dist/transport/console/assets.js +66 -0
- package/dist/transport/console/assets.js.map +1 -0
- package/dist/transport/console/handler.d.ts +20 -0
- package/dist/transport/console/handler.d.ts.map +1 -0
- package/dist/transport/console/handler.js +252 -0
- package/dist/transport/console/handler.js.map +1 -0
- package/dist/transport/console/resolver.d.ts +66 -0
- package/dist/transport/console/resolver.d.ts.map +1 -0
- package/dist/transport/console/resolver.js +163 -0
- package/dist/transport/console/resolver.js.map +1 -0
- package/dist/transport/constants.d.ts +44 -0
- package/dist/transport/constants.d.ts.map +1 -0
- package/dist/transport/constants.js +44 -0
- package/dist/transport/constants.js.map +1 -0
- package/dist/transport/cors.d.ts +51 -0
- package/dist/transport/cors.d.ts.map +1 -0
- package/dist/transport/cors.js +67 -0
- package/dist/transport/cors.js.map +1 -0
- package/dist/transport/demux.d.ts +61 -0
- package/dist/transport/demux.d.ts.map +1 -0
- package/dist/transport/demux.js +107 -0
- package/dist/transport/demux.js.map +1 -0
- package/dist/transport/health.d.ts +15 -0
- package/dist/transport/health.d.ts.map +1 -0
- package/dist/transport/health.js +105 -0
- package/dist/transport/health.js.map +1 -0
- package/dist/transport/lanes.d.ts +13 -0
- package/dist/transport/lanes.d.ts.map +1 -0
- package/dist/transport/lanes.js +2 -0
- package/dist/transport/lanes.js.map +1 -0
- package/dist/transport/registry/lanes.d.ts +35 -0
- package/dist/transport/registry/lanes.d.ts.map +1 -0
- package/dist/transport/registry/lanes.js +26 -0
- package/dist/transport/registry/lanes.js.map +1 -0
- package/dist/transport/server.d.ts +63 -0
- package/dist/transport/server.d.ts.map +1 -0
- package/dist/transport/server.js +137 -0
- package/dist/transport/server.js.map +1 -0
- package/package.json +92 -0
- package/src/artifactstorage/__tests__/artifact-storage.test.ts +356 -0
- package/src/artifactstorage/__tests__/r2-storage.test.ts +144 -0
- package/src/artifactstorage/artifact-storage.ts +453 -0
- package/src/artifactstorage/r2-storage.ts +279 -0
- package/src/boot/__tests__/auth-enabled-composition.test.ts +245 -0
- package/src/boot/__tests__/compose.test.ts +97 -0
- package/src/boot/__tests__/config.test.ts +82 -0
- package/src/boot/__tests__/logger.test.ts +147 -0
- package/src/boot/compose.ts +1301 -0
- package/src/boot/config.ts +495 -0
- package/src/boot/inprocess.ts +415 -0
- package/src/boot/logger.ts +111 -0
- package/src/domain/agent/__tests__/agent.test.ts +522 -0
- package/src/domain/agent/controller.ts +557 -0
- package/src/domain/agent/defaultagent.ts +135 -0
- package/src/domain/agent/search-extractor.ts +72 -0
- package/src/domain/agent/steps.ts +691 -0
- package/src/domain/agentchannel/__tests__/agentchannel.test.ts +1025 -0
- package/src/domain/agentchannel/__tests__/channel-runtime.test.ts +548 -0
- package/src/domain/agentchannel/channel-runtime.ts +211 -0
- package/src/domain/agentchannel/constants.ts +112 -0
- package/src/domain/agentchannel/controller.ts +742 -0
- package/src/domain/agentchannel/conversation.ts +147 -0
- package/src/domain/agentchannel/message.ts +92 -0
- package/src/domain/agentchannel/steps.ts +371 -0
- package/src/domain/agentexecution/__tests__/agentexecution.test.ts +1502 -0
- package/src/domain/agentexecution/__tests__/artifacts.test.ts +600 -0
- package/src/domain/agentexecution/__tests__/create-execution-context-step.test.ts +286 -0
- package/src/domain/agentexecution/__tests__/create-steps.test.ts +984 -0
- package/src/domain/agentexecution/__tests__/engine-stub.ts +20 -0
- package/src/domain/agentexecution/__tests__/engine.test.ts +67 -0
- package/src/domain/agentexecution/__tests__/lifecycle.test.ts +1221 -0
- package/src/domain/agentexecution/__tests__/read-authorization.test.ts +128 -0
- package/src/domain/agentexecution/__tests__/record-runner-lineage-labels.test.ts +136 -0
- package/src/domain/agentexecution/__tests__/status-observers.test.ts +164 -0
- package/src/domain/agentexecution/__tests__/stream-broker.test.ts +119 -0
- package/src/domain/agentexecution/__tests__/update-status.test.ts +369 -0
- package/src/domain/agentexecution/__tests__/usage.test.ts +186 -0
- package/src/domain/agentexecution/__tests__/validate-service-tier.test.ts +117 -0
- package/src/domain/agentexecution/__tests__/validate-thinking-mode.test.ts +143 -0
- package/src/domain/agentexecution/approval/__tests__/corpus-support.ts +100 -0
- package/src/domain/agentexecution/approval/__tests__/lease-scope-corpus.test.ts +78 -0
- package/src/domain/agentexecution/approval/__tests__/policy-source-corpus.test.ts +49 -0
- package/src/domain/agentexecution/approval/__tests__/scenarios-corpus.test.ts +73 -0
- package/src/domain/agentexecution/approval/__tests__/sequence-corpus.test.ts +279 -0
- package/src/domain/agentexecution/approval/author.ts +280 -0
- package/src/domain/agentexecution/approval/compute-from-events.ts +92 -0
- package/src/domain/agentexecution/approval/compute.ts +143 -0
- package/src/domain/agentexecution/approval/emit.ts +274 -0
- package/src/domain/agentexecution/approval/lease-scope.ts +53 -0
- package/src/domain/agentexecution/approval/preserve.ts +88 -0
- package/src/domain/agentexecution/approval/project.ts +139 -0
- package/src/domain/agentexecution/approval/tool-category.ts +58 -0
- package/src/domain/agentexecution/artifacts.ts +512 -0
- package/src/domain/agentexecution/constants.ts +30 -0
- package/src/domain/agentexecution/controller.ts +594 -0
- package/src/domain/agentexecution/create-execution-context-step.ts +1094 -0
- package/src/domain/agentexecution/create-steps.ts +919 -0
- package/src/domain/agentexecution/engine.ts +156 -0
- package/src/domain/agentexecution/filereview/__tests__/file-review-corpus.test.ts +198 -0
- package/src/domain/agentexecution/filereview/author.ts +338 -0
- package/src/domain/agentexecution/filereview/autokeep.ts +249 -0
- package/src/domain/agentexecution/filereview/cas-blob.ts +52 -0
- package/src/domain/agentexecution/filereview/digest.ts +58 -0
- package/src/domain/agentexecution/filereview/gate.ts +68 -0
- package/src/domain/agentexecution/filereview/progress.ts +51 -0
- package/src/domain/agentexecution/filereview/project.ts +171 -0
- package/src/domain/agentexecution/lifecycle.ts +884 -0
- package/src/domain/agentexecution/phases.ts +39 -0
- package/src/domain/agentexecution/record-runner-lineage-labels.ts +76 -0
- package/src/domain/agentexecution/search-extractor.ts +70 -0
- package/src/domain/agentexecution/status-observers.ts +108 -0
- package/src/domain/agentexecution/steps.ts +218 -0
- package/src/domain/agentexecution/stream-broker.ts +126 -0
- package/src/domain/agentexecution/submit-approval.ts +584 -0
- package/src/domain/agentexecution/submit-file-decision.ts +477 -0
- package/src/domain/agentexecution/subscribe.ts +165 -0
- package/src/domain/agentexecution/temporal/config.ts +119 -0
- package/src/domain/agentexecution/tool-call-settle.ts +75 -0
- package/src/domain/agentexecution/update-status.ts +534 -0
- package/src/domain/agentexecution/usage.ts +987 -0
- package/src/domain/agentexecution/validate-service-tier.ts +76 -0
- package/src/domain/agentexecution/validate-thinking-mode.ts +90 -0
- package/src/domain/agentinstance/__tests__/agentinstance.test.ts +344 -0
- package/src/domain/agentinstance/controller.ts +629 -0
- package/src/domain/agentinstance/defaultinstance.ts +87 -0
- package/src/domain/agentinstance/search-extractor.ts +61 -0
- package/src/domain/agentinstance/steps.ts +377 -0
- package/src/domain/agentshare/__tests__/agentshare.test.ts +897 -0
- package/src/domain/agentshare/constants.ts +72 -0
- package/src/domain/agentshare/controller.ts +927 -0
- package/src/domain/agentshare/steps.ts +459 -0
- package/src/domain/apikey/__tests__/apikey.test.ts +253 -0
- package/src/domain/apikey/__tests__/verifier.test.ts +180 -0
- package/src/domain/apikey/controller.ts +330 -0
- package/src/domain/apikey/keymaterial.ts +65 -0
- package/src/domain/apikey/lookup.ts +46 -0
- package/src/domain/apikey/steps.ts +159 -0
- package/src/domain/apikey/verifier.ts +76 -0
- package/src/domain/artifact/__tests__/artifact.test.ts +410 -0
- package/src/domain/artifact/__tests__/file-server-host.test.ts +59 -0
- package/src/domain/artifact/constants.ts +47 -0
- package/src/domain/artifact/controller.ts +685 -0
- package/src/domain/artifact/file-server.ts +213 -0
- package/src/domain/channelapp/__tests__/channelapp.test.ts +684 -0
- package/src/domain/channelapp/constants.ts +66 -0
- package/src/domain/channelapp/controller.ts +474 -0
- package/src/domain/channelapp/steps.ts +409 -0
- package/src/domain/environment/__tests__/environment.test.ts +672 -0
- package/src/domain/environment/constants.ts +67 -0
- package/src/domain/environment/controller.ts +836 -0
- package/src/domain/environment/redact.ts +75 -0
- package/src/domain/environment/resolution/__tests__/resolution.test.ts +209 -0
- package/src/domain/environment/resolution/resolution.ts +155 -0
- package/src/domain/environment/search-extractor.ts +63 -0
- package/src/domain/environment/steps.ts +621 -0
- package/src/domain/executioncontext/__tests__/executioncontext.test.ts +790 -0
- package/src/domain/executioncontext/__tests__/resolve-values-capability.test.ts +130 -0
- package/src/domain/executioncontext/constants.ts +51 -0
- package/src/domain/executioncontext/controller.ts +414 -0
- package/src/domain/executioncontext/redact.ts +42 -0
- package/src/domain/executioncontext/resolve-values-for-caller.ts +236 -0
- package/src/domain/executioncontext/search-extractor.ts +61 -0
- package/src/domain/executioncontext/steps.ts +283 -0
- package/src/domain/executioncontext/temporal/delete-execution-context.ts +96 -0
- package/src/domain/github/__tests__/github.test.ts +196 -0
- package/src/domain/github/controller.ts +203 -0
- package/src/domain/mcpserver/__tests__/connect-authorization.test.ts +261 -0
- package/src/domain/mcpserver/__tests__/connect.test.ts +629 -0
- package/src/domain/mcpserver/__tests__/mcpserver.test.ts +446 -0
- package/src/domain/mcpserver/__tests__/oauth-handshake.test.ts +635 -0
- package/src/domain/mcpserver/__tests__/seal-unseal.test.ts +110 -0
- package/src/domain/mcpserver/complete-oauth-connect.ts +338 -0
- package/src/domain/mcpserver/connect-status.ts +302 -0
- package/src/domain/mcpserver/connect.ts +1208 -0
- package/src/domain/mcpserver/controller.ts +609 -0
- package/src/domain/mcpserver/disconnect-oauth.ts +106 -0
- package/src/domain/mcpserver/enabledtools/__tests__/enabledtools.test.ts +75 -0
- package/src/domain/mcpserver/enabledtools/enabledtools.ts +93 -0
- package/src/domain/mcpserver/engine.ts +176 -0
- package/src/domain/mcpserver/get-oauth-grant-status.ts +105 -0
- package/src/domain/mcpserver/initiate-oauth-connect.ts +487 -0
- package/src/domain/mcpserver/oauth/__tests__/dcr.test.ts +90 -0
- package/src/domain/mcpserver/oauth/__tests__/discovery.test.ts +150 -0
- package/src/domain/mcpserver/oauth/__tests__/pkce.test.ts +34 -0
- package/src/domain/mcpserver/oauth/__tests__/preflight.test.ts +75 -0
- package/src/domain/mcpserver/oauth/__tests__/token-exchange.test.ts +167 -0
- package/src/domain/mcpserver/oauth/__tests__/token-refresh.test.ts +345 -0
- package/src/domain/mcpserver/oauth/dcr.ts +92 -0
- package/src/domain/mcpserver/oauth/discovery.ts +142 -0
- package/src/domain/mcpserver/oauth/managed-env.ts +175 -0
- package/src/domain/mcpserver/oauth/pkce.ts +28 -0
- package/src/domain/mcpserver/oauth/preflight.ts +107 -0
- package/src/domain/mcpserver/oauth/refresh.ts +118 -0
- package/src/domain/mcpserver/oauth/token.ts +187 -0
- package/src/domain/mcpserver/oauth/truncate-body.ts +11 -0
- package/src/domain/mcpserver/search-extractor.ts +63 -0
- package/src/domain/mcpserver/start-connect.ts +309 -0
- package/src/domain/mcpserver/steps.ts +185 -0
- package/src/domain/memory/__tests__/capture-credential.test.ts +84 -0
- package/src/domain/memory/__tests__/memory.test.ts +483 -0
- package/src/domain/memory/constants.ts +60 -0
- package/src/domain/memory/controller.ts +495 -0
- package/src/domain/memory/steps.ts +588 -0
- package/src/domain/oauthapp/__tests__/oauthapp.test.ts +487 -0
- package/src/domain/oauthapp/__tests__/refresolution.test.ts +86 -0
- package/src/domain/oauthapp/constants.ts +46 -0
- package/src/domain/oauthapp/controller.ts +469 -0
- package/src/domain/oauthapp/refresolution/refresolution.ts +94 -0
- package/src/domain/oauthapp/refresolution.ts +98 -0
- package/src/domain/oauthapp/steps.ts +249 -0
- package/src/domain/organization/__tests__/organization.test.ts +194 -0
- package/src/domain/organization/controller.ts +588 -0
- package/src/domain/organization/search-extractor.ts +61 -0
- package/src/domain/organization/steps.ts +100 -0
- package/src/domain/platform/__tests__/platform.test.ts +377 -0
- package/src/domain/platform/controller.ts +283 -0
- package/src/domain/platform/version.ts +21 -0
- package/src/domain/project/__tests__/project.composed.test.ts +381 -0
- package/src/domain/project/__tests__/reconcile.test.ts +401 -0
- package/src/domain/project/controller.ts +387 -0
- package/src/domain/project/reconcile.ts +291 -0
- package/src/domain/project/search-extractor.ts +71 -0
- package/src/domain/schedule/__tests__/cron.test.ts +166 -0
- package/src/domain/schedule/__tests__/schedule.composed.test.ts +525 -0
- package/src/domain/schedule/clock.ts +192 -0
- package/src/domain/schedule/controller.ts +753 -0
- package/src/domain/schedule/cron.ts +150 -0
- package/src/domain/schedule/list-runs.ts +245 -0
- package/src/domain/schedule/persist-update.ts +76 -0
- package/src/domain/schedule/resume.ts +122 -0
- package/src/domain/schedule/steps.ts +281 -0
- package/src/domain/schedule/trigger.ts +283 -0
- package/src/domain/session/__tests__/session.test.ts +782 -0
- package/src/domain/session/controller.ts +586 -0
- package/src/domain/session/search-extractor.ts +61 -0
- package/src/domain/session/steps.ts +872 -0
- package/src/domain/skill/__tests__/artifact-storage.test.ts +82 -0
- package/src/domain/skill/__tests__/frontmatter.test.ts +124 -0
- package/src/domain/skill/__tests__/prefilter.test.ts +163 -0
- package/src/domain/skill/__tests__/push-degradation.test.ts +171 -0
- package/src/domain/skill/__tests__/skill.test.ts +600 -0
- package/src/domain/skill/__tests__/slots.test.ts +132 -0
- package/src/domain/skill/__tests__/zip-gate.test.ts +194 -0
- package/src/domain/skill/constants.ts +77 -0
- package/src/domain/skill/controller.ts +848 -0
- package/src/domain/skill/push.ts +617 -0
- package/src/domain/skill/search-extractor.ts +61 -0
- package/src/domain/skill/storage/artifact-storage.ts +139 -0
- package/src/domain/skill/storage/frontmatter.ts +181 -0
- package/src/domain/skill/storage/prefilter.ts +200 -0
- package/src/domain/skill/storage/zip-gate.ts +244 -0
- package/src/domain/skill/transfer/handler.ts +185 -0
- package/src/domain/skill/transfer/slots.ts +253 -0
- package/src/domain/skill/version-resolution.ts +336 -0
- package/src/domain/workflow/__tests__/workflow.test.ts +410 -0
- package/src/domain/workflow/controller.ts +1244 -0
- package/src/domain/workflow/converter/__tests__/converter.test.ts +924 -0
- package/src/domain/workflow/converter/converter.ts +149 -0
- package/src/domain/workflow/converter/task-converters.ts +750 -0
- package/src/domain/workflow/converter/types.ts +15 -0
- package/src/domain/workflow/converter/unmarshal.ts +200 -0
- package/src/domain/workflow/registry/__tests__/document-catalog.test.ts +116 -0
- package/src/domain/workflow/registry/__tests__/model-registry-store.test.ts +274 -0
- package/src/domain/workflow/registry/__tests__/pin-validation.test.ts +105 -0
- package/src/domain/workflow/registry/bundled.ts +22 -0
- package/src/domain/workflow/registry/data/model-registry.json +1236 -0
- package/src/domain/workflow/registry/data/task-kind-registry.json +3177 -0
- package/src/domain/workflow/registry/document-catalog.ts +355 -0
- package/src/domain/workflow/registry/model-catalog-provider.ts +134 -0
- package/src/domain/workflow/registry/model-registry-store.ts +298 -0
- package/src/domain/workflow/registry/pin-validation.ts +175 -0
- package/src/domain/workflow/search-extractor.ts +63 -0
- package/src/domain/workflow/steps.ts +711 -0
- package/src/domain/workflow/validation/__tests__/budget-warnings.test.ts +143 -0
- package/src/domain/workflow/validation/__tests__/crossref.test.ts +181 -0
- package/src/domain/workflow/validation/__tests__/expression-warnings.test.ts +81 -0
- package/src/domain/workflow/validation/__tests__/human-input-validation.test.ts +61 -0
- package/src/domain/workflow/validation/__tests__/model-validation.test.ts +232 -0
- package/src/domain/workflow/validation/__tests__/task-config-constraints.test.ts +149 -0
- package/src/domain/workflow/validation/__tests__/validator.test.ts +138 -0
- package/src/domain/workflow/validation/budget-warnings.ts +162 -0
- package/src/domain/workflow/validation/crossref.ts +410 -0
- package/src/domain/workflow/validation/expression-warnings.ts +103 -0
- package/src/domain/workflow/validation/format-violation.ts +61 -0
- package/src/domain/workflow/validation/human-input-validation.ts +93 -0
- package/src/domain/workflow/validation/model-validation.ts +262 -0
- package/src/domain/workflow/validation/task-config-constraints.ts +150 -0
- package/src/domain/workflow/validation/validator.ts +142 -0
- package/src/domain/workflowexecution/__tests__/create-steps.test.ts +385 -0
- package/src/domain/workflowexecution/__tests__/engine-stub.ts +64 -0
- package/src/domain/workflowexecution/__tests__/execution-filter.test.ts +390 -0
- package/src/domain/workflowexecution/__tests__/lifecycle.test.ts +617 -0
- package/src/domain/workflowexecution/__tests__/list-read-scope-summaries.test.ts +193 -0
- package/src/domain/workflowexecution/__tests__/read-authorization.test.ts +166 -0
- package/src/domain/workflowexecution/__tests__/send-signal.test.ts +327 -0
- package/src/domain/workflowexecution/__tests__/stream-broker.test.ts +100 -0
- package/src/domain/workflowexecution/__tests__/subscribe.test.ts +204 -0
- package/src/domain/workflowexecution/__tests__/update-status.test.ts +576 -0
- package/src/domain/workflowexecution/__tests__/workflowexecution.test.ts +1407 -0
- package/src/domain/workflowexecution/constants.ts +102 -0
- package/src/domain/workflowexecution/controller.ts +564 -0
- package/src/domain/workflowexecution/create-execution-context-step.ts +233 -0
- package/src/domain/workflowexecution/create-steps.ts +380 -0
- package/src/domain/workflowexecution/engine.ts +170 -0
- package/src/domain/workflowexecution/execution-filter.ts +255 -0
- package/src/domain/workflowexecution/get-event-log.ts +139 -0
- package/src/domain/workflowexecution/get-execution-summary.ts +318 -0
- package/src/domain/workflowexecution/lifecycle.ts +951 -0
- package/src/domain/workflowexecution/list-pending-approvals.ts +120 -0
- package/src/domain/workflowexecution/normalize-workflow-ref-step.ts +79 -0
- package/src/domain/workflowexecution/pin-workflow-version-step.ts +114 -0
- package/src/domain/workflowexecution/queries.ts +48 -0
- package/src/domain/workflowexecution/search-extractor.ts +63 -0
- package/src/domain/workflowexecution/send-signal.ts +306 -0
- package/src/domain/workflowexecution/stream-broker.ts +133 -0
- package/src/domain/workflowexecution/submit-approval.ts +201 -0
- package/src/domain/workflowexecution/submit-file-decision.ts +194 -0
- package/src/domain/workflowexecution/submit-workflow-task-approval.ts +219 -0
- package/src/domain/workflowexecution/subscribe-events.ts +218 -0
- package/src/domain/workflowexecution/subscribe.ts +172 -0
- package/src/domain/workflowexecution/temporal/config.ts +129 -0
- package/src/domain/workflowexecution/update-status.ts +396 -0
- package/src/domain/workflowinstance/controller.ts +829 -0
- package/src/domain/workflowinstance/defaultinstance.ts +71 -0
- package/src/domain/workflowinstance/search-extractor.ts +62 -0
- package/src/domain/workflowinstance/steps.ts +209 -0
- package/src/encryption/__tests__/codec-seam.test.ts +363 -0
- package/src/encryption/__tests__/encryption.test.ts +237 -0
- package/src/encryption/__tests__/fixtures/go-ciphertext.json +40 -0
- package/src/encryption/__tests__/key-manager.test.ts +127 -0
- package/src/encryption/codec.ts +113 -0
- package/src/encryption/encryption.ts +525 -0
- package/src/encryption/errors.ts +86 -0
- package/src/encryption/key-manager.ts +156 -0
- package/src/encryption/scope.ts +152 -0
- package/src/encryption/v1-codec.ts +143 -0
- package/src/envmerge/__tests__/envmerge.test.ts +350 -0
- package/src/envmerge/envmerge.ts +115 -0
- package/src/extensions/__tests__/direct-handler-authorization.test.ts +308 -0
- package/src/extensions/__tests__/extension-composition.test.ts +1124 -0
- package/src/extensions/__tests__/list-read-scope-composed.test.ts +276 -0
- package/src/extensions/__tests__/list-read-scope.test.ts +151 -0
- package/src/extensions/__tests__/registry.test.ts +669 -0
- package/src/extensions/__tests__/secret-cleanup-composed.test.ts +356 -0
- package/src/extensions/authorizer.ts +64 -0
- package/src/extensions/caller-guards.ts +61 -0
- package/src/extensions/drivers.ts +146 -0
- package/src/extensions/gate-slots.ts +95 -0
- package/src/extensions/identity.ts +99 -0
- package/src/extensions/list-read-scope.ts +143 -0
- package/src/extensions/organization-directory.ts +54 -0
- package/src/extensions/registry.ts +544 -0
- package/src/extensions/resource-authorization.ts +145 -0
- package/src/extensions/schedule-fire-caller.ts +33 -0
- package/src/extensions/status-hooks.ts +55 -0
- package/src/gocompat/__tests__/query-escape.test.ts +35 -0
- package/src/gocompat/__tests__/trim.test.ts +46 -0
- package/src/gocompat/query-escape.ts +41 -0
- package/src/gocompat/trim.ts +38 -0
- package/src/identity/__tests__/oidc-verifier.test.ts +205 -0
- package/src/identity/oidc-verifier.ts +172 -0
- package/src/index.ts +351 -0
- package/src/main.ts +67 -0
- package/src/observability/__tests__/in-memory-meter.ts +101 -0
- package/src/observability/rpc-metrics.ts +203 -0
- package/src/pipeline/__tests__/apiresource-labels.test.ts +67 -0
- package/src/pipeline/__tests__/chain.test.ts +199 -0
- package/src/pipeline/__tests__/pipeline.test.ts +141 -0
- package/src/pipeline/__tests__/router-transport.test.ts +172 -0
- package/src/pipeline/__tests__/steps.test.ts +621 -0
- package/src/pipeline/__tests__/support.ts +20 -0
- package/src/pipeline/apiresource-labels.ts +60 -0
- package/src/pipeline/apiresource-meta.ts +136 -0
- package/src/pipeline/chain.ts +63 -0
- package/src/pipeline/errors.ts +146 -0
- package/src/pipeline/interceptors/__tests__/auth.test.ts +649 -0
- package/src/pipeline/interceptors/__tests__/error-boundary.test.ts +358 -0
- package/src/pipeline/interceptors/__tests__/request-metrics.test.ts +573 -0
- package/src/pipeline/interceptors/apiresource.ts +43 -0
- package/src/pipeline/interceptors/auth.ts +431 -0
- package/src/pipeline/interceptors/error-boundary.ts +246 -0
- package/src/pipeline/interceptors/logging.ts +71 -0
- package/src/pipeline/interceptors/protovalidate.ts +68 -0
- package/src/pipeline/interceptors/request-metrics.ts +114 -0
- package/src/pipeline/pipeline.ts +111 -0
- package/src/pipeline/request-context.ts +92 -0
- package/src/pipeline/steps/__tests__/authorization-tuples.test.ts +318 -0
- package/src/pipeline/steps/__tests__/authorize.test.ts +500 -0
- package/src/pipeline/steps/__tests__/guard-memory-capture.test.ts +222 -0
- package/src/pipeline/steps/__tests__/guard-reserved-labels.test.ts +190 -0
- package/src/pipeline/steps/__tests__/secret-cleanup.test.ts +237 -0
- package/src/pipeline/steps/__tests__/server-stamped-reserved-labels.test.ts +56 -0
- package/src/pipeline/steps/__tests__/visibility-gates.test.ts +187 -0
- package/src/pipeline/steps/authorization-tuples.ts +467 -0
- package/src/pipeline/steps/authorize.ts +302 -0
- package/src/pipeline/steps/build-update-state.ts +148 -0
- package/src/pipeline/steps/defaults.ts +355 -0
- package/src/pipeline/steps/delete.ts +98 -0
- package/src/pipeline/steps/duplicate.ts +55 -0
- package/src/pipeline/steps/guard-memory-capture.ts +154 -0
- package/src/pipeline/steps/guard-reserved-labels.ts +171 -0
- package/src/pipeline/steps/helpers.ts +154 -0
- package/src/pipeline/steps/index-search.ts +90 -0
- package/src/pipeline/steps/load-by-reference.ts +56 -0
- package/src/pipeline/steps/load-existing.ts +73 -0
- package/src/pipeline/steps/load-for-apply.ts +82 -0
- package/src/pipeline/steps/load-target.ts +56 -0
- package/src/pipeline/steps/persist.ts +41 -0
- package/src/pipeline/steps/references.ts +172 -0
- package/src/pipeline/steps/secret-cleanup.ts +109 -0
- package/src/pipeline/steps/server-stamped-reserved-labels.ts +56 -0
- package/src/pipeline/steps/shapes.ts +102 -0
- package/src/pipeline/steps/slug.ts +48 -0
- package/src/pipeline/steps/validate-visibility.ts +93 -0
- package/src/pipeline/steps/validation.ts +45 -0
- package/src/pipeline/steps/visibility-gates.ts +171 -0
- package/src/query/README.md +16 -0
- package/src/query/__tests__/query-services.test.ts +211 -0
- package/src/query/activity/__tests__/handler.test.ts +333 -0
- package/src/query/activity/controller.ts +53 -0
- package/src/query/activity/handler.ts +341 -0
- package/src/query/search/__tests__/controller.test.ts +147 -0
- package/src/query/search/__tests__/criteria.test.ts +185 -0
- package/src/query/search/__tests__/paged-result.test.ts +60 -0
- package/src/query/search/__tests__/query-store.test.ts +478 -0
- package/src/query/search/__tests__/registry.test.ts +103 -0
- package/src/query/search/controller.ts +93 -0
- package/src/query/search/criteria.ts +204 -0
- package/src/query/search/extractor.ts +93 -0
- package/src/query/search/handler.ts +125 -0
- package/src/query/search/paged-result.ts +54 -0
- package/src/query/search/query-store.ts +254 -0
- package/src/query/search/registry.ts +121 -0
- package/src/runnerauth/__tests__/runner-credential-provider.test.ts +86 -0
- package/src/runnerauth/__tests__/runnerauth.test.ts +186 -0
- package/src/runnerauth/runner-credential-provider.ts +328 -0
- package/src/runnerauth/runnerauth.ts +251 -0
- package/src/sandbox/__tests__/docker.integration.test.ts +103 -0
- package/src/sandbox/__tests__/kubernetes.test.ts +228 -0
- package/src/sandbox/__tests__/local-process.integration.test.ts +124 -0
- package/src/sandbox/__tests__/provisioner.test.ts +145 -0
- package/src/sandbox/__tests__/steps.test.ts +648 -0
- package/src/sandbox/builtins.ts +22 -0
- package/src/sandbox/docker.ts +206 -0
- package/src/sandbox/kubernetes.ts +478 -0
- package/src/sandbox/lane.ts +89 -0
- package/src/sandbox/local-process.ts +188 -0
- package/src/sandbox/naming.ts +38 -0
- package/src/sandbox/provisioner.ts +175 -0
- package/src/sandbox/steps.ts +395 -0
- package/src/store/README.md +40 -0
- package/src/store/__tests__/proto-fields.test.ts +84 -0
- package/src/store/__tests__/store-contract.ts +1587 -0
- package/src/store/__tests__/support.ts +33 -0
- package/src/store/interface.ts +835 -0
- package/src/store/logger.ts +13 -0
- package/src/store/postgres/__tests__/migrations.test.ts +175 -0
- package/src/store/postgres/__tests__/store-contract.test.ts +129 -0
- package/src/store/postgres/__tests__/support.ts +67 -0
- package/src/store/postgres/__tests__/tsquery.test.ts +76 -0
- package/src/store/postgres/migrations.ts +298 -0
- package/src/store/postgres/store.ts +1396 -0
- package/src/store/postgres/tsquery.ts +80 -0
- package/src/store/proto-fields.ts +212 -0
- package/src/store/rfc3339.ts +12 -0
- package/src/store/sqlite/__tests__/fixtures/go-v6-database.sql +150 -0
- package/src/store/sqlite/__tests__/fts5.test.ts +83 -0
- package/src/store/sqlite/__tests__/migrations.test.ts +308 -0
- package/src/store/sqlite/__tests__/store-contract.test.ts +41 -0
- package/src/store/sqlite/__tests__/store.test.ts +105 -0
- package/src/store/sqlite/__tests__/support.ts +62 -0
- package/src/store/sqlite/fts5.ts +70 -0
- package/src/store/sqlite/migrations.ts +359 -0
- package/src/store/sqlite/store.ts +1401 -0
- package/src/temporal/README.md +17 -0
- package/src/temporal/__tests__/manager.test.ts +325 -0
- package/src/temporal/__tests__/payload-codec.test.ts +178 -0
- package/src/temporal/__tests__/runner-failure.test.ts +66 -0
- package/src/temporal/agentexecution/__tests__/activities.test.ts +352 -0
- package/src/temporal/agentexecution/__tests__/dispatch.test.ts +336 -0
- package/src/temporal/agentexecution/__tests__/engine-client.test.ts +320 -0
- package/src/temporal/agentexecution/__tests__/invoke-workflow.test.ts +845 -0
- package/src/temporal/agentexecution/__tests__/own-behalf-status-writes.test.ts +305 -0
- package/src/temporal/agentexecution/__tests__/replay-histories/happy-completed.json +568 -0
- package/src/temporal/agentexecution/__tests__/replay-histories/hitl-approval-parented.json +1070 -0
- package/src/temporal/agentexecution/__tests__/replay-histories/hitl-approval.json +864 -0
- package/src/temporal/agentexecution/__tests__/replay-histories/pause-resume.json +915 -0
- package/src/temporal/agentexecution/__tests__/replay.test.ts +64 -0
- package/src/temporal/agentexecution/activities.ts +252 -0
- package/src/temporal/agentexecution/dispatch.ts +148 -0
- package/src/temporal/agentexecution/engine-client.ts +230 -0
- package/src/temporal/agentexecution/names.ts +104 -0
- package/src/temporal/agentexecution/runner-result.ts +58 -0
- package/src/temporal/agentexecution/worker.ts +85 -0
- package/src/temporal/agentexecution/workflow-input.ts +40 -0
- package/src/temporal/agentexecution/workflows/index.ts +15 -0
- package/src/temporal/agentexecution/workflows/invoke-agent-execution.ts +1495 -0
- package/src/temporal/manager.ts +593 -0
- package/src/temporal/mcpserver/engine-client.ts +273 -0
- package/src/temporal/mcpserver/names.ts +23 -0
- package/src/temporal/payload-codec.ts +92 -0
- package/src/temporal/runner-failure.ts +71 -0
- package/src/temporal/schedule/__tests__/activities.test.ts +301 -0
- package/src/temporal/schedule/__tests__/artifact.test.ts +144 -0
- package/src/temporal/schedule/__tests__/config.test.ts +137 -0
- package/src/temporal/schedule/__tests__/reconciler.test.ts +345 -0
- package/src/temporal/schedule/__tests__/replay-histories/tick-completed-run.json +726 -0
- package/src/temporal/schedule/__tests__/replay-histories/tick-skipped-disabled.json +280 -0
- package/src/temporal/schedule/__tests__/replay-histories/tick-start-failed.json +592 -0
- package/src/temporal/schedule/__tests__/replay.test.ts +55 -0
- package/src/temporal/schedule/__tests__/run-starter.test.ts +482 -0
- package/src/temporal/schedule/__tests__/syncer.test.ts +195 -0
- package/src/temporal/schedule/__tests__/tick-workflow.test.ts +368 -0
- package/src/temporal/schedule/activities.ts +544 -0
- package/src/temporal/schedule/artifact.ts +137 -0
- package/src/temporal/schedule/config.ts +186 -0
- package/src/temporal/schedule/model-pinning.ts +47 -0
- package/src/temporal/schedule/names.ts +168 -0
- package/src/temporal/schedule/reconciler.ts +332 -0
- package/src/temporal/schedule/run-ledger.ts +233 -0
- package/src/temporal/schedule/run-starter.ts +560 -0
- package/src/temporal/schedule/status-writes.ts +50 -0
- package/src/temporal/schedule/syncer.ts +208 -0
- package/src/temporal/schedule/worker.ts +81 -0
- package/src/temporal/schedule/workflows/index.ts +11 -0
- package/src/temporal/schedule/workflows/tick.ts +394 -0
- package/src/temporal/workflow-source.ts +72 -0
- package/src/temporal/workflowexecution/__tests__/activities.test.ts +262 -0
- package/src/temporal/workflowexecution/__tests__/dispatch.test.ts +98 -0
- package/src/temporal/workflowexecution/__tests__/engine-client.test.ts +268 -0
- package/src/temporal/workflowexecution/__tests__/invoke-workflow.test.ts +354 -0
- package/src/temporal/workflowexecution/__tests__/replay-histories/child-failed.json +678 -0
- package/src/temporal/workflowexecution/__tests__/replay-histories/happy-completed.json +504 -0
- package/src/temporal/workflowexecution/__tests__/replay-histories/pause-resume.json +1116 -0
- package/src/temporal/workflowexecution/__tests__/replay.test.ts +57 -0
- package/src/temporal/workflowexecution/__tests__/test-workflows.ts +90 -0
- package/src/temporal/workflowexecution/activities.ts +209 -0
- package/src/temporal/workflowexecution/dispatch.ts +70 -0
- package/src/temporal/workflowexecution/engine-client.ts +242 -0
- package/src/temporal/workflowexecution/names.ts +84 -0
- package/src/temporal/workflowexecution/worker.ts +85 -0
- package/src/temporal/workflowexecution/workflow-input.ts +42 -0
- package/src/temporal/workflowexecution/workflows/index.ts +15 -0
- package/src/temporal/workflowexecution/workflows/invoke-workflow-execution.ts +574 -0
- package/src/transport/__tests__/demux.test.ts +213 -0
- package/src/transport/__tests__/server.test.ts +146 -0
- package/src/transport/console/__tests__/handler.test.ts +281 -0
- package/src/transport/console/__tests__/nginx-equivalence.test.ts +144 -0
- package/src/transport/console/__tests__/resolver.test.ts +181 -0
- package/src/transport/console/assets.ts +80 -0
- package/src/transport/console/handler.ts +309 -0
- package/src/transport/console/resolver.ts +199 -0
- package/src/transport/constants.ts +47 -0
- package/src/transport/cors.ts +119 -0
- package/src/transport/demux.ts +190 -0
- package/src/transport/health.ts +127 -0
- package/src/transport/lanes.ts +17 -0
- package/src/transport/registry/__tests__/lanes.test.ts +131 -0
- package/src/transport/registry/lanes.ts +65 -0
- package/src/transport/server.ts +238 -0
|
@@ -0,0 +1,286 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* SubmitFileDecision — ports controller/submit_file_decision.go: the
|
|
3
|
+
* backend-owned writer of FILE_DECIDED events on the append-only
|
|
4
|
+
* file_review stream (apply-then-review HITL). FileChangeSet.decisions is
|
|
5
|
+
* the derived projection; the runner's reconcile applies the approved
|
|
6
|
+
* bytes — this RPC records the decision and enforces that
|
|
7
|
+
* expected_digest still matches the captured content the user reviewed
|
|
8
|
+
* ("what you approve is what gets applied").
|
|
9
|
+
*
|
|
10
|
+
* Chain mirrors the approval pipeline: ValidateProto → LoadExisting →
|
|
11
|
+
* ValidateDecision → RecordFileDecision → SignalWorkflow →
|
|
12
|
+
* BuildResponse. The signal is the SAME approvalGateResolved — the HITL
|
|
13
|
+
* gate is unified, so a turn blocked on file review (and possibly tool
|
|
14
|
+
* approvals too) resumes through one signal and one wait. Unlike
|
|
15
|
+
* approvals, a file REJECT has no immediate-resume shortcut — every file
|
|
16
|
+
* in the set must be decided (or one CHANGE_SET-scoped decision cover
|
|
17
|
+
* them) before the runner reconciles.
|
|
18
|
+
*
|
|
19
|
+
* Idempotency: a decision with the same deterministic event id already on
|
|
20
|
+
* the stream is a no-op answering current state.
|
|
21
|
+
*/
|
|
22
|
+
import { create } from "@bufbuild/protobuf";
|
|
23
|
+
import { ConnectError } from "@connectrpc/connect";
|
|
24
|
+
import { AgentExecutionSchema, AgentExecutionStatusSchema, } from "@stigmer/protos/ai/stigmer/agentic/agentexecution/v1/api_pb";
|
|
25
|
+
import { AgentExecutionCommandController } from "@stigmer/protos/ai/stigmer/agentic/agentexecution/v1/command_pb";
|
|
26
|
+
import { ExecutionPhase, ExecutionPhaseSchema, FileDecisionAction, FileDecisionActionSchema, FileDecisionScope, FileDecisionScopeSchema, FileReviewEventType, MessageType, } from "@stigmer/protos/ai/stigmer/agentic/agentexecution/v1/enum_pb";
|
|
27
|
+
import { AgentMessageSchema } from "@stigmer/protos/ai/stigmer/agentic/agentexecution/v1/message_pb";
|
|
28
|
+
import { ApiResourceKind } from "@stigmer/protos/ai/stigmer/commons/apiresource/apiresourcekind/api_resource_kind_pb";
|
|
29
|
+
import { enumToJson } from "@bufbuild/protobuf";
|
|
30
|
+
import { failedPreconditionError, internalError, invalidArgumentError, notFoundError, unavailableError, } from "../../pipeline/errors.js";
|
|
31
|
+
import { newPipeline } from "../../pipeline/pipeline.js";
|
|
32
|
+
import { RequestContext } from "../../pipeline/request-context.js";
|
|
33
|
+
import { newAuthorizeStep } from "../../pipeline/steps/authorize.js";
|
|
34
|
+
import { newValidateProtoStep } from "../../pipeline/steps/validation.js";
|
|
35
|
+
import { ResourceNotFoundError } from "../../store/interface.js";
|
|
36
|
+
import { EngineWorkflowNotFoundError } from "./engine.js";
|
|
37
|
+
import { buildFileDecision, eventId as fileReviewEventId, findChange, findChangeSet, approveBlockedReason, recordFileDecisionEvent, targetDigest, } from "./filereview/author.js";
|
|
38
|
+
import { countAwaitingReview, gateResolved } from "./filereview/gate.js";
|
|
39
|
+
import { projectFileChangeSets } from "./filereview/project.js";
|
|
40
|
+
import { notifyStatusObservers } from "./status-observers.js";
|
|
41
|
+
import { settleInterruptedToolCalls } from "./tool-call-settle.js";
|
|
42
|
+
// Go's key strings, verbatim.
|
|
43
|
+
const FILE_DECISION_IDEMPOTENT_KEY = "isIdempotentFileDecision";
|
|
44
|
+
const TARGET_RESOURCE_KEY = "targetResource";
|
|
45
|
+
export async function submitFileDecision(deps, input, identity) {
|
|
46
|
+
const reqCtx = new RequestContext(AgentExecutionCommandController.method.submitFileDecision.input, input, identity, ApiResourceKind.agent_execution);
|
|
47
|
+
await newPipeline("agent-execution-submit-file-decision", deps.logger)
|
|
48
|
+
.addStep(newAuthorizeStep(AgentExecutionCommandController.method.submitFileDecision, deps.authorizer))
|
|
49
|
+
.addStep(newValidateProtoStep())
|
|
50
|
+
.addStep({
|
|
51
|
+
name: "LoadExisting",
|
|
52
|
+
async execute(ctx) {
|
|
53
|
+
const executionId = ctx.input.agentExecutionId;
|
|
54
|
+
if (executionId === "") {
|
|
55
|
+
throw invalidArgumentError("agent_execution_id is required");
|
|
56
|
+
}
|
|
57
|
+
let execution;
|
|
58
|
+
try {
|
|
59
|
+
execution = await deps.store.getResource(ApiResourceKind.agent_execution, executionId, AgentExecutionSchema);
|
|
60
|
+
}
|
|
61
|
+
catch (error) {
|
|
62
|
+
if (error instanceof ResourceNotFoundError) {
|
|
63
|
+
throw notFoundError("agent_execution", executionId);
|
|
64
|
+
}
|
|
65
|
+
throw internalError(error, "failed to load agent execution");
|
|
66
|
+
}
|
|
67
|
+
ctx.set(TARGET_RESOURCE_KEY, execution);
|
|
68
|
+
},
|
|
69
|
+
})
|
|
70
|
+
.addStep({
|
|
71
|
+
name: "ValidateDecision",
|
|
72
|
+
execute(ctx) {
|
|
73
|
+
const execution = ctx.get(TARGET_RESOURCE_KEY);
|
|
74
|
+
validateFileDecisionTarget(execution, ctx.input);
|
|
75
|
+
// Idempotency: the same deterministic event id already on the
|
|
76
|
+
// stream means this exact decision was recorded.
|
|
77
|
+
if (streamHasFileDecision(execution.status?.fileReviewEventStream, ctx.input)) {
|
|
78
|
+
deps.logger.info("IDEMPOTENT: file decision already recorded", {
|
|
79
|
+
executionId: execution.metadata?.id ?? "",
|
|
80
|
+
changeSetId: ctx.input.changeSetId,
|
|
81
|
+
fileChangeId: ctx.input.fileChangeId,
|
|
82
|
+
});
|
|
83
|
+
ctx.set(FILE_DECISION_IDEMPOTENT_KEY, true);
|
|
84
|
+
}
|
|
85
|
+
},
|
|
86
|
+
})
|
|
87
|
+
.addStep({
|
|
88
|
+
name: "RecordFileDecision",
|
|
89
|
+
async execute(ctx) {
|
|
90
|
+
if (ctx.get(FILE_DECISION_IDEMPOTENT_KEY) === true) {
|
|
91
|
+
return;
|
|
92
|
+
}
|
|
93
|
+
const executionId = ctx.input.agentExecutionId;
|
|
94
|
+
const now = new Date().toISOString().replace(/\.\d{3}Z$/, "Z");
|
|
95
|
+
// OSS is single-user with no multi-tenant auth context, so the
|
|
96
|
+
// reviewer is empty; the Cloud edition populates reviewer_id from
|
|
97
|
+
// the authenticated caller.
|
|
98
|
+
const reviewerId = "";
|
|
99
|
+
let updated;
|
|
100
|
+
try {
|
|
101
|
+
updated = await deps.store.updateResource(ApiResourceKind.agent_execution, executionId, AgentExecutionSchema, (execution) => {
|
|
102
|
+
// Re-validate under the write lock against the
|
|
103
|
+
// freshly-loaded state (guards against a capture/decision
|
|
104
|
+
// that landed between the pre-lock validation and this
|
|
105
|
+
// update).
|
|
106
|
+
validateFileDecisionTarget(execution, ctx.input);
|
|
107
|
+
if (execution.status === undefined) {
|
|
108
|
+
execution.status = create(AgentExecutionStatusSchema);
|
|
109
|
+
}
|
|
110
|
+
const decision = buildFileDecision(ctx.input.changeSetId, ctx.input.fileChangeId, ctx.input.scope, ctx.input.action, ctx.input.expectedDigest, reviewerId, now, ctx.input.reason, ctx.input.acknowledgeUnreviewable);
|
|
111
|
+
recordFileDecisionEvent(execution.status, executionId, decision);
|
|
112
|
+
// Recompute file_change_sets from the authored ledger via
|
|
113
|
+
// the single projection seam, so the new decision reflects
|
|
114
|
+
// immediately and consistently with the source of truth.
|
|
115
|
+
execution.status.fileChangeSets = projectFileChangeSets(execution.status.phase, execution.status.fileReviewEventStream);
|
|
116
|
+
});
|
|
117
|
+
}
|
|
118
|
+
catch (error) {
|
|
119
|
+
if (error instanceof ResourceNotFoundError) {
|
|
120
|
+
throw notFoundError("agent_execution", executionId);
|
|
121
|
+
}
|
|
122
|
+
// A precondition failure re-detected under the lock is already a
|
|
123
|
+
// status error (client fault); surface it verbatim rather than
|
|
124
|
+
// masking it as INTERNAL.
|
|
125
|
+
if (error instanceof ConnectError) {
|
|
126
|
+
throw error;
|
|
127
|
+
}
|
|
128
|
+
throw internalError(error, "failed to persist file decision");
|
|
129
|
+
}
|
|
130
|
+
deps.broker.broadcast(updated);
|
|
131
|
+
ctx.set(TARGET_RESOURCE_KEY, updated);
|
|
132
|
+
},
|
|
133
|
+
})
|
|
134
|
+
.addStep({
|
|
135
|
+
name: "SignalWorkflow",
|
|
136
|
+
async execute(ctx) {
|
|
137
|
+
if (ctx.get(FILE_DECISION_IDEMPOTENT_KEY) === true) {
|
|
138
|
+
deps.logger.debug("Skipping workflow signal for idempotent file decision");
|
|
139
|
+
return;
|
|
140
|
+
}
|
|
141
|
+
const engine = deps.engineState();
|
|
142
|
+
if (!engine.connected) {
|
|
143
|
+
deps.logger.warn("Workflow creator not available - skipping Temporal signal");
|
|
144
|
+
return;
|
|
145
|
+
}
|
|
146
|
+
const execution = ctx.get(TARGET_RESOURCE_KEY);
|
|
147
|
+
const executionId = execution.metadata?.id ?? "";
|
|
148
|
+
const status = execution.status;
|
|
149
|
+
// Resume only when the WHOLE gate is clear: no change set awaiting
|
|
150
|
+
// review and no tool approval pending.
|
|
151
|
+
if (status === undefined || !gateResolved(status)) {
|
|
152
|
+
deps.logger.info("File decision recorded, HITL gate not yet resolved — waiting", {
|
|
153
|
+
executionId,
|
|
154
|
+
changeSetId: ctx.input.changeSetId,
|
|
155
|
+
pendingApprovalsRemaining: status?.pendingApprovals.length ?? 0,
|
|
156
|
+
changeSetsAwaitingReview: countAwaitingReview(status?.fileChangeSets ?? []),
|
|
157
|
+
});
|
|
158
|
+
return;
|
|
159
|
+
}
|
|
160
|
+
deps.logger.info("HITL gate resolved by file decision — sending approvalGateResolved signal", { executionId, changeSetId: ctx.input.changeSetId });
|
|
161
|
+
try {
|
|
162
|
+
await engine.engine.signalApprovalGateResolved(executionId);
|
|
163
|
+
}
|
|
164
|
+
catch (error) {
|
|
165
|
+
if (error instanceof EngineWorkflowNotFoundError) {
|
|
166
|
+
deps.logger.warn("Workflow not found - reconciling stale execution status to FAILED", { executionId });
|
|
167
|
+
await reconcileStaleFileReviewExecution(deps, execution);
|
|
168
|
+
throw failedPreconditionError(`workflow not running for execution ${executionId} - the backing workflow has terminated unexpectedly and the execution has been marked as failed`);
|
|
169
|
+
}
|
|
170
|
+
throw unavailableError(`failed to signal workflow: ${error instanceof Error ? error.message : String(error)}`);
|
|
171
|
+
}
|
|
172
|
+
deps.logger.info("Successfully sent approvalGateResolved signal to workflow", { executionId });
|
|
173
|
+
},
|
|
174
|
+
})
|
|
175
|
+
.addStep({
|
|
176
|
+
name: "BuildResponse",
|
|
177
|
+
execute(ctx) {
|
|
178
|
+
const execution = ctx.get(TARGET_RESOURCE_KEY);
|
|
179
|
+
deps.logger.info("AUDIT: File decision submitted", {
|
|
180
|
+
executionId: execution.metadata?.id ?? "",
|
|
181
|
+
org: execution.metadata?.org ?? "",
|
|
182
|
+
changeSetId: ctx.input.changeSetId,
|
|
183
|
+
fileChangeId: ctx.input.fileChangeId,
|
|
184
|
+
scope: enumToJson(FileDecisionScopeSchema, ctx.input.scope),
|
|
185
|
+
action: enumToJson(FileDecisionActionSchema, ctx.input.action),
|
|
186
|
+
});
|
|
187
|
+
},
|
|
188
|
+
})
|
|
189
|
+
.build()
|
|
190
|
+
.execute(reqCtx);
|
|
191
|
+
return reqCtx.get(TARGET_RESOURCE_KEY);
|
|
192
|
+
}
|
|
193
|
+
/**
|
|
194
|
+
* Enforces the preconditions against the current projection: non-terminal
|
|
195
|
+
* execution, change set (and file) existence, the FILE-scope
|
|
196
|
+
* file_change_id requirement, the APPROVE completeness gate, and the
|
|
197
|
+
* expected_digest enforcement gate. Shared by the pre-lock validate step
|
|
198
|
+
* and the under-lock re-check (Go validateFileDecisionTarget).
|
|
199
|
+
*/
|
|
200
|
+
function validateFileDecisionTarget(execution, input) {
|
|
201
|
+
const executionId = execution.metadata?.id ?? "";
|
|
202
|
+
const phase = execution.status?.phase ?? ExecutionPhase.EXECUTION_PHASE_UNSPECIFIED;
|
|
203
|
+
const changeSets = projectFileChangeSets(phase, execution.status?.fileReviewEventStream);
|
|
204
|
+
if (changeSets.length === 0) {
|
|
205
|
+
throw failedPreconditionError(`execution ${executionId} has no actionable file change sets (phase ${enumToJson(ExecutionPhaseSchema, phase)})`);
|
|
206
|
+
}
|
|
207
|
+
const cs = findChangeSet(changeSets, input.changeSetId);
|
|
208
|
+
if (cs === undefined) {
|
|
209
|
+
throw failedPreconditionError(`change set ${input.changeSetId} not found for execution ${executionId}`);
|
|
210
|
+
}
|
|
211
|
+
if (input.scope === FileDecisionScope.FILE) {
|
|
212
|
+
if (input.fileChangeId === "") {
|
|
213
|
+
throw invalidArgumentError("file_change_id is required for FILE scope");
|
|
214
|
+
}
|
|
215
|
+
if (findChange(cs, input.fileChangeId) === undefined) {
|
|
216
|
+
throw failedPreconditionError(`file change ${input.fileChangeId} not found in change set ${input.changeSetId}`);
|
|
217
|
+
}
|
|
218
|
+
}
|
|
219
|
+
// Completeness precondition: a non-COMPLETE diff can never be approved
|
|
220
|
+
// as if complete. Gated before the digest check and only for APPROVE,
|
|
221
|
+
// so an unreviewable change stays discardable (REJECT) and the turn can
|
|
222
|
+
// still resume.
|
|
223
|
+
if (input.action === FileDecisionAction.APPROVE) {
|
|
224
|
+
const reason = approveBlockedReason(cs, input.scope, input.fileChangeId, input.acknowledgeUnreviewable);
|
|
225
|
+
if (reason !== "") {
|
|
226
|
+
throw failedPreconditionError(reason);
|
|
227
|
+
}
|
|
228
|
+
}
|
|
229
|
+
const target = targetDigest(cs, input.scope, input.fileChangeId);
|
|
230
|
+
if (input.expectedDigest !== target) {
|
|
231
|
+
throw invalidArgumentError(`expected_digest mismatch for change set ${input.changeSetId}: the captured content changed since it was reviewed`);
|
|
232
|
+
}
|
|
233
|
+
}
|
|
234
|
+
function streamHasFileDecision(stream, input) {
|
|
235
|
+
let scopeId = input.changeSetId;
|
|
236
|
+
if (input.scope === FileDecisionScope.FILE) {
|
|
237
|
+
scopeId = input.fileChangeId;
|
|
238
|
+
}
|
|
239
|
+
const id = fileReviewEventId(input.changeSetId, scopeId, FileReviewEventType.FILE_DECIDED);
|
|
240
|
+
return (stream?.events ?? []).some((ev) => ev.eventId === id);
|
|
241
|
+
}
|
|
242
|
+
/**
|
|
243
|
+
* Marks an execution FAILED when its backing workflow is gone — the
|
|
244
|
+
* file-review twin of the approval path's reconcile; BOTH append-only
|
|
245
|
+
* ledgers are preserved verbatim for the audit trail, the projections
|
|
246
|
+
* left empty (terminal).
|
|
247
|
+
*/
|
|
248
|
+
async function reconcileStaleFileReviewExecution(deps, execution) {
|
|
249
|
+
const executionId = execution.metadata?.id ?? "";
|
|
250
|
+
const reconciled = create(AgentExecutionSchema, {
|
|
251
|
+
apiVersion: execution.apiVersion,
|
|
252
|
+
kind: execution.kind,
|
|
253
|
+
metadata: execution.metadata,
|
|
254
|
+
spec: execution.spec,
|
|
255
|
+
status: {
|
|
256
|
+
phase: ExecutionPhase.EXECUTION_FAILED,
|
|
257
|
+
error: "Workflow backing this execution is no longer running. Execution has been marked as failed.",
|
|
258
|
+
messages: execution.status?.messages ?? [],
|
|
259
|
+
audit: execution.status?.audit,
|
|
260
|
+
approvalEventStream: execution.status?.approvalEventStream,
|
|
261
|
+
fileReviewEventStream: execution.status?.fileReviewEventStream,
|
|
262
|
+
},
|
|
263
|
+
});
|
|
264
|
+
reconciled.status?.messages.push(create(AgentMessageSchema, {
|
|
265
|
+
type: MessageType.MESSAGE_SYSTEM,
|
|
266
|
+
content: "The workflow backing this execution is no longer running. This can happen due to infrastructure issues or manual termination. The execution has been marked as failed.",
|
|
267
|
+
}));
|
|
268
|
+
// Any in-flight tool call is still non-terminal; this write
|
|
269
|
+
// terminalizes the execution, so settle them (issue #207).
|
|
270
|
+
settleInterruptedToolCalls(reconciled.status, new Date().toISOString().replace(/\.\d{3}Z$/, "Z"));
|
|
271
|
+
try {
|
|
272
|
+
await deps.store.saveResource(ApiResourceKind.agent_execution, executionId, AgentExecutionSchema, reconciled);
|
|
273
|
+
}
|
|
274
|
+
catch (error) {
|
|
275
|
+
deps.logger.error("Failed to reconcile stale execution status - execution will remain in WAITING_FOR_APPROVAL until next attempt", {
|
|
276
|
+
executionId,
|
|
277
|
+
error: error instanceof Error ? error.message : String(error),
|
|
278
|
+
});
|
|
279
|
+
return;
|
|
280
|
+
}
|
|
281
|
+
deps.logger.info("RECONCILIATION: Updated stale file-review execution status to FAILED", { executionId });
|
|
282
|
+
// O4 site 5 of 5 (status-observers.ts): the reconcile's →FAILED stamp
|
|
283
|
+
// is a persisted terminal transition.
|
|
284
|
+
await notifyStatusObservers(deps, reconciled, execution.status?.phase ?? ExecutionPhase.EXECUTION_PHASE_UNSPECIFIED, ExecutionPhase.EXECUTION_FAILED);
|
|
285
|
+
}
|
|
286
|
+
//# sourceMappingURL=submit-file-decision.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"submit-file-decision.js","sourceRoot":"","sources":["../../../src/domain/agentexecution/submit-file-decision.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,OAAO,EAAE,MAAM,EAAE,MAAM,oBAAoB,CAAC;AAC5C,OAAO,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AAGnD,OAAO,EACL,oBAAoB,EACpB,0BAA0B,GAC3B,MAAM,6DAA6D,CAAC;AACrE,OAAO,EAAE,+BAA+B,EAAE,MAAM,iEAAiE,CAAC;AAClH,OAAO,EACL,cAAc,EACd,oBAAoB,EACpB,kBAAkB,EAClB,wBAAwB,EACxB,iBAAiB,EACjB,uBAAuB,EACvB,mBAAmB,EACnB,WAAW,GACZ,MAAM,8DAA8D,CAAC;AAGtE,OAAO,EAAE,kBAAkB,EAAE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AI,EACJ,UAAU,EACV,SAAS,CAAC,MAAM,EAAE,KAAK,IAAI,cAAc,CAAC,2BAA2B,EACrE,cAAc,CAAC,gBAAgB,CAChC,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { HandlerContext } from "@connectrpc/connect";
|
|
2
|
+
import type { AgentExecution } from "@stigmer/protos/ai/stigmer/agentic/agentexecution/v1/api_pb";
|
|
3
|
+
import type { AgentExecutionId } from "@stigmer/protos/ai/stigmer/agentic/agentexecution/v1/io_pb";
|
|
4
|
+
import type { Logger } from "../../boot/logger.js";
|
|
5
|
+
import type { Authorizer } from "../../extensions/authorizer.js";
|
|
6
|
+
import type { Store } from "../../store/interface.js";
|
|
7
|
+
import type { StreamBroker } from "./stream-broker.js";
|
|
8
|
+
export interface SubscribeDeps {
|
|
9
|
+
readonly store: Store;
|
|
10
|
+
readonly logger: Logger;
|
|
11
|
+
readonly broker: StreamBroker;
|
|
12
|
+
/** The composed authorization seam — the pre-stream check below (C2 Stage 4). */
|
|
13
|
+
readonly authorizer: Authorizer;
|
|
14
|
+
}
|
|
15
|
+
export declare function subscribeExecution(deps: SubscribeDeps, executionId: AgentExecutionId, context: HandlerContext): AsyncGenerator<AgentExecution>;
|
|
16
|
+
//# sourceMappingURL=subscribe.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"subscribe.d.ts","sourceRoot":"","sources":["../../../src/domain/agentexecution/subscribe.ts"],"names":[],"mappings":"AAkCA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAG1D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,6DAA6D,CAAC;AAElG,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,4DAA4D,CAAC;AAKnG,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,sBAAsB,CAAC;AACnD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,gCAAgC,CAAC;AAOjE,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,0BAA0B,CAAC;AAGtD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAEvD,MAAM,WAAW,aAAa;IAC5B,QAAQ,CAAC,KAAK,EAAE,KAAK,CAAC;IACtB,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,MAAM,EAAE,YAAY,CAAC;IAC9B,iFAAiF;IACjF,QAAQ,CAAC,UAAU,EAAE,UAAU,CAAC;CACjC;AAED,wBAAuB,kBAAkB,CACvC,IAAI,EAAE,aAAa,EACnB,WAAW,EAAE,gBAAgB,EAC7B,OAAO,EAAE,cAAc,GACtB,cAAc,CAAC,cAAc,CAAC,CA+FhC"}
|
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Subscribe — ports controller/subscribe.go: the real-time execution
|
|
3
|
+
* stream (ADR 011 read path). The first DOMAIN server-streaming RPC on
|
|
4
|
+
* the TS server; the generator shape follows transport/health.ts watch,
|
|
5
|
+
* the transport's proven streaming idiom.
|
|
6
|
+
*
|
|
7
|
+
* Go drives the stream from inside a two-step pipeline by smuggling the
|
|
8
|
+
* gRPC stream object through the request context; ConnectRPC models
|
|
9
|
+
* server streams as async generators, which cannot yield from inside the
|
|
10
|
+
* pipeline executor — so the validate step collapses to the same guard
|
|
11
|
+
* inline and the StreamExecution step's body IS this generator. Every
|
|
12
|
+
* delivery rule ports verbatim:
|
|
13
|
+
*
|
|
14
|
+
* - REGISTER-BEFORE-SNAPSHOT (the gap fix): the broker registration
|
|
15
|
+
* happens before the snapshot read. Store writes serialize under the
|
|
16
|
+
* per-resource write lock and UpdateStatus broadcasts only after its
|
|
17
|
+
* persist commits, so any commit the snapshot missed broadcasts after
|
|
18
|
+
* our registration — nothing lands in the old lossy window.
|
|
19
|
+
* - The overlap frame (a commit the snapshot DID observe) arrives
|
|
20
|
+
* value-equal to the snapshot; the consecutive-duplicate guard drops
|
|
21
|
+
* it (Go sameFrame/proto.Equal) so clients never re-render an
|
|
22
|
+
* identical state.
|
|
23
|
+
* - The stream ends on a terminal BROADCAST frame; a terminal SNAPSHOT
|
|
24
|
+
* leaves the stream open (Go sends the snapshot and parks in the
|
|
25
|
+
* loop). Faithful port.
|
|
26
|
+
* - Subscribe's terminal set is COMPLETED/FAILED/CANCELLED — it OMITS
|
|
27
|
+
* TERMINATED, so a stream over a terminated execution never
|
|
28
|
+
* self-closes. Known Go quirk, ported byte-faithfully; disclosed as a
|
|
29
|
+
* both-editions issue candidate at the sub-project wrap-up.
|
|
30
|
+
* - Registration and the loop share one owner so the unsubscribe fires
|
|
31
|
+
* on every exit path (Go's defer → the generator's finally, which
|
|
32
|
+
* ConnectRPC runs on client disconnect too).
|
|
33
|
+
*/
|
|
34
|
+
import { equals } from "@bufbuild/protobuf";
|
|
35
|
+
import { AgentExecutionSchema } from "@stigmer/protos/ai/stigmer/agentic/agentexecution/v1/api_pb";
|
|
36
|
+
import { ExecutionPhase } from "@stigmer/protos/ai/stigmer/agentic/agentexecution/v1/enum_pb";
|
|
37
|
+
import { ApiResourceKind } from "@stigmer/protos/ai/stigmer/commons/apiresource/apiresourcekind/api_resource_kind_pb";
|
|
38
|
+
import { AgentExecutionQueryController } from "@stigmer/protos/ai/stigmer/agentic/agentexecution/v1/query_pb";
|
|
39
|
+
import { callerIdentityOf } from "../../pipeline/interceptors/auth.js";
|
|
40
|
+
import { invalidArgumentError, notFoundError, } from "../../pipeline/errors.js";
|
|
41
|
+
import { authorizeDirect } from "../../pipeline/steps/authorize.js";
|
|
42
|
+
import { isTranscriptTerminalPhase } from "./phases.js";
|
|
43
|
+
export async function* subscribeExecution(deps, executionId, context) {
|
|
44
|
+
// Go ValidateSubscribeInputStep.
|
|
45
|
+
if (executionId.value === "") {
|
|
46
|
+
throw invalidArgumentError("execution id is required");
|
|
47
|
+
}
|
|
48
|
+
// The annotation's can_view check, once at subscription start — the
|
|
49
|
+
// Java AgentExecutionSubscribeHandler order (validate → authorize).
|
|
50
|
+
// The composed authorizer's guest-isolation arm rides this same check
|
|
51
|
+
// (the G2 per-visitor cookie match), matching Java's GuestVisitorScope
|
|
52
|
+
// filter on this stream. C2 Stage 4.
|
|
53
|
+
await authorizeDirect(AgentExecutionQueryController.method.subscribe, deps.authorizer, callerIdentityOf(context), executionId);
|
|
54
|
+
const id = executionId.value;
|
|
55
|
+
deps.logger.info("Starting execution subscription", { executionId: id });
|
|
56
|
+
// Register FIRST so no broadcast can slip through the window before the
|
|
57
|
+
// snapshot read (the happens-before argument in the module header).
|
|
58
|
+
const subscription = deps.broker.subscribe(id);
|
|
59
|
+
try {
|
|
60
|
+
let snapshot;
|
|
61
|
+
try {
|
|
62
|
+
snapshot = await deps.store.getResource(ApiResourceKind.agent_execution, id, AgentExecutionSchema);
|
|
63
|
+
}
|
|
64
|
+
catch {
|
|
65
|
+
// Go converts every load failure here to the same NotFound.
|
|
66
|
+
throw notFoundError("AgentExecution", id);
|
|
67
|
+
}
|
|
68
|
+
yield snapshot;
|
|
69
|
+
deps.logger.debug("Sent initial execution state, streaming live updates", {
|
|
70
|
+
executionId: id,
|
|
71
|
+
});
|
|
72
|
+
// The consecutive-duplicate anchor (Go lastSent).
|
|
73
|
+
let lastSent = snapshot;
|
|
74
|
+
const abort = new Promise((resolve) => {
|
|
75
|
+
context.signal.addEventListener("abort", () => resolve(), {
|
|
76
|
+
once: true,
|
|
77
|
+
});
|
|
78
|
+
});
|
|
79
|
+
while (!context.signal.aborted) {
|
|
80
|
+
if (subscription.closed) {
|
|
81
|
+
// Go's closed-channel arm: end quietly.
|
|
82
|
+
deps.logger.warn("Updates channel closed unexpectedly", {
|
|
83
|
+
executionId: id,
|
|
84
|
+
});
|
|
85
|
+
return;
|
|
86
|
+
}
|
|
87
|
+
if (subscription.queue.length === 0) {
|
|
88
|
+
await Promise.race([
|
|
89
|
+
abort,
|
|
90
|
+
new Promise((resolve) => (subscription.notify = resolve)),
|
|
91
|
+
]);
|
|
92
|
+
subscription.notify = undefined;
|
|
93
|
+
continue;
|
|
94
|
+
}
|
|
95
|
+
const updated = subscription.queue.shift();
|
|
96
|
+
if (updated === undefined) {
|
|
97
|
+
continue;
|
|
98
|
+
}
|
|
99
|
+
// Suppress the at-or-before-snapshot overlap frame (and any other
|
|
100
|
+
// exact repeat) so the client never re-renders an identical state.
|
|
101
|
+
if (equals(AgentExecutionSchema, updated, lastSent)) {
|
|
102
|
+
continue;
|
|
103
|
+
}
|
|
104
|
+
yield updated;
|
|
105
|
+
lastSent = updated;
|
|
106
|
+
// Subscribe's close set is the NARROW transcript-terminal set
|
|
107
|
+
// (phases.ts) — TERMINATED absent, the disclosed quirk.
|
|
108
|
+
const phase = updated.status?.phase ?? ExecutionPhase.EXECUTION_PHASE_UNSPECIFIED;
|
|
109
|
+
if (isTranscriptTerminalPhase(phase)) {
|
|
110
|
+
deps.logger.info("Execution reached terminal state, ending subscription", { executionId: id, phase: ExecutionPhase[phase] });
|
|
111
|
+
return;
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
deps.logger.info("Subscription cancelled by client", { executionId: id });
|
|
115
|
+
}
|
|
116
|
+
finally {
|
|
117
|
+
deps.broker.unsubscribe(id, subscription);
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
//# sourceMappingURL=subscribe.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"subscribe.js","sourceRoot":"","sources":["../../../src/domain/agentexecution/subscribe.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgCG;AACH,OAAO,EAAE,MAAM,EAAE,MAAM,oBAAoB,CAAC;AAG5C,OAAO,EAAE,oBAAoB,EAAE,MAAM,6DAA6D,CAAC;AAEnG,OAAO,EAAE,cAAc,EAAE,MAAM,8DAA8D,CAAC;AAE9F,OAAO,EAAE,eAAe,EAAE,MAAM,qFAAqF,CAAC;AAEtH,OAAO,EAAE,6BAA6B,EAAE,MAAM,+DA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CAAC;YAEnB,8DAA8D;YAC9D,wDAAwD;YACxD,MAAM,KAAK,GACT,OAAO,CAAC,MAAM,EAAE,KAAK,IAAI,cAAc,CAAC,2BAA2B,CAAC;YACtE,IAAI,yBAAyB,CAAC,KAAK,CAAC,EAAE,CAAC;gBACrC,IAAI,CAAC,MAAM,CAAC,IAAI,CACd,uDAAuD,EACvD,EAAE,WAAW,EAAE,EAAE,EAAE,KAAK,EAAE,cAAc,CAAC,KAAK,CAAC,EAAE,CAClD,CAAC;gBACF,OAAO;YACT,CAAC;QACH,CAAC;QACD,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,kCAAkC,EAAE,EAAE,WAAW,EAAE,EAAE,EAAE,CAAC,CAAC;IAC5E,CAAC;YAAS,CAAC;QACT,IAAI,CAAC,MAAM,CAAC,WAAW,CAAC,EAAE,EAAE,YAAY,CAAC,CAAC;IAC5C,CAAC;AACH,CAAC"}
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Agent-execution Temporal config — ports
|
|
3
|
+
* pkg/domain/agentexecution/temporal/config.go: the queue names, routing
|
|
4
|
+
* mode, and default execution target for agent-execution dispatch.
|
|
5
|
+
*
|
|
6
|
+
* resolveExecutionTarget is the SINGLE definition of the
|
|
7
|
+
* UNSPECIFIED-resolution rule (oss#397) — dispatch (the agentexecution
|
|
8
|
+
* domain, #17/#18) and policy enforcement (the session update pipeline's
|
|
9
|
+
* execution-target immutability step) must both use it rather than
|
|
10
|
+
* re-deriving the default, so they can never disagree about where an
|
|
11
|
+
* execution runs. Mirrors the cloud edition's
|
|
12
|
+
* AgentExecutionTemporalConfig.resolveExecutionTarget.
|
|
13
|
+
*
|
|
14
|
+
* This module is the first resident of the agentexecution domain directory
|
|
15
|
+
* (the domain itself is a later sub-project); the tree corresponds to Go's,
|
|
16
|
+
* same precedent as src/domain/mcpserver/enabledtools/.
|
|
17
|
+
*/
|
|
18
|
+
import { ExecutionTarget } from "@stigmer/protos/ai/stigmer/agentic/session/v1/enum_pb";
|
|
19
|
+
/**
|
|
20
|
+
* Routes all activities to the shared global queue (runnerQueue, default
|
|
21
|
+
* stigmer_runner) — the default for OSS local development where a single
|
|
22
|
+
* runner polls one queue for all sessions (Go RoutingGlobal).
|
|
23
|
+
*/
|
|
24
|
+
export declare const ROUTING_GLOBAL = "global";
|
|
25
|
+
/**
|
|
26
|
+
* Derives a per-session task queue (session:{session_id}) for each
|
|
27
|
+
* execution — for deployments where each session has a dedicated runner
|
|
28
|
+
* (desktop app with embedded runners, or cloud sandboxes; Go
|
|
29
|
+
* RoutingSession).
|
|
30
|
+
*/
|
|
31
|
+
export declare const ROUTING_SESSION = "session";
|
|
32
|
+
/**
|
|
33
|
+
* Resolves UNSPECIFIED to LOCAL — OSS/self-hosted deployments (Go
|
|
34
|
+
* DefaultExecutionTargetLocal).
|
|
35
|
+
*/
|
|
36
|
+
export declare const DEFAULT_EXECUTION_TARGET_LOCAL = "local";
|
|
37
|
+
/**
|
|
38
|
+
* Resolves UNSPECIFIED to CLOUD — the managed cloud service (Go
|
|
39
|
+
* DefaultExecutionTargetCloud).
|
|
40
|
+
*/
|
|
41
|
+
export declare const DEFAULT_EXECUTION_TARGET_CLOUD = "cloud";
|
|
42
|
+
/**
|
|
43
|
+
* Configuration for agent-execution Temporal workers (Go temporal.Config).
|
|
44
|
+
*
|
|
45
|
+
* Queue architecture:
|
|
46
|
+
* - stigmerQueue: server workflows on agent_execution_stigmer
|
|
47
|
+
* - runnerQueue: unified-runner activities on stigmer_runner (global) or
|
|
48
|
+
* session:{id} (per-session)
|
|
49
|
+
*/
|
|
50
|
+
export declare class AgentExecutionTemporalConfig {
|
|
51
|
+
/** Task queue for server workflows. Default: agent_execution_stigmer. */
|
|
52
|
+
readonly stigmerQueue: string;
|
|
53
|
+
/**
|
|
54
|
+
* Default task queue for runner activities (stigmer_runner). In global
|
|
55
|
+
* routing mode all activities route here; in session routing mode it is
|
|
56
|
+
* the fallback when the session id is empty.
|
|
57
|
+
*/
|
|
58
|
+
readonly runnerQueue: string;
|
|
59
|
+
/** ROUTING_GLOBAL or ROUTING_SESSION. */
|
|
60
|
+
readonly activityRouting: string;
|
|
61
|
+
/**
|
|
62
|
+
* Resolves EXECUTION_TARGET_UNSPECIFIED on sessions:
|
|
63
|
+
* DEFAULT_EXECUTION_TARGET_LOCAL (client's runner polls the queue) or
|
|
64
|
+
* DEFAULT_EXECUTION_TARGET_CLOUD (server provisions a sandbox).
|
|
65
|
+
*/
|
|
66
|
+
readonly defaultExecutionTarget: string;
|
|
67
|
+
constructor(
|
|
68
|
+
/** Task queue for server workflows. Default: agent_execution_stigmer. */
|
|
69
|
+
stigmerQueue: string,
|
|
70
|
+
/**
|
|
71
|
+
* Default task queue for runner activities (stigmer_runner). In global
|
|
72
|
+
* routing mode all activities route here; in session routing mode it is
|
|
73
|
+
* the fallback when the session id is empty.
|
|
74
|
+
*/
|
|
75
|
+
runnerQueue: string,
|
|
76
|
+
/** ROUTING_GLOBAL or ROUTING_SESSION. */
|
|
77
|
+
activityRouting: string,
|
|
78
|
+
/**
|
|
79
|
+
* Resolves EXECUTION_TARGET_UNSPECIFIED on sessions:
|
|
80
|
+
* DEFAULT_EXECUTION_TARGET_LOCAL (client's runner polls the queue) or
|
|
81
|
+
* DEFAULT_EXECUTION_TARGET_CLOUD (server provisions a sandbox).
|
|
82
|
+
*/
|
|
83
|
+
defaultExecutionTarget: string);
|
|
84
|
+
/**
|
|
85
|
+
* Resolves a session's execution_target to its effective target:
|
|
86
|
+
* UNSPECIFIED becomes the configured default (LOCAL on OSS/self-hosted,
|
|
87
|
+
* CLOUD on the managed cloud service); explicit values pass through
|
|
88
|
+
* unchanged (Go Config.ResolveExecutionTarget).
|
|
89
|
+
*/
|
|
90
|
+
resolveExecutionTarget(target: ExecutionTarget): ExecutionTarget;
|
|
91
|
+
}
|
|
92
|
+
/**
|
|
93
|
+
* Builds the config from environment variables with Go NewConfig's
|
|
94
|
+
* defaults. Env-derived strings only — no Temporal connection is made
|
|
95
|
+
* here (the temporal seam stays empty until the execution cluster
|
|
96
|
+
* sub-projects land).
|
|
97
|
+
*/
|
|
98
|
+
export declare function newConfigFromEnv(): AgentExecutionTemporalConfig;
|
|
99
|
+
//# sourceMappingURL=config.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../../../src/domain/agentexecution/temporal/config.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AACH,OAAO,EAAE,eAAe,EAAE,MAAM,uDAAuD,CAAC;AAExF;;;;GAIG;AACH,eAAO,MAAM,cAAc,WAAW,CAAC;AAEvC;;;;;GAKG;AACH,eAAO,MAAM,eAAe,YAAY,CAAC;AAEzC;;;GAGG;AACH,eAAO,MAAM,8BAA8B,UAAU,CAAC;AAEtD;;;GAGG;AACH,eAAO,MAAM,8BAA8B,UAAU,CAAC;AAEtD;;;;;;;GAOG;AACH,qBAAa,4BAA4B;IAErC,yEAAyE;IACzE,QAAQ,CAAC,YAAY,EAAE,MAAM;IAC7B;;;;OAIG;IACH,QAAQ,CAAC,WAAW,EAAE,MAAM;IAC5B,yCAAyC;IACzC,QAAQ,CAAC,eAAe,EAAE,MAAM;IAChC;;;;OAIG;IACH,QAAQ,CAAC,sBAAsB,EAAE,MAAM;;IAfvC,yEAAyE;IAChE,YAAY,EAAE,MAAM;IAC7B;;;;OAIG;IACM,WAAW,EAAE,MAAM;IAC5B,yCAAyC;IAChC,eAAe,EAAE,MAAM;IAChC;;;;OAIG;IACM,sBAAsB,EAAE,MAAM;IAGzC;;;;;OAKG;IACH,sBAAsB,CAAC,MAAM,EAAE,eAAe,GAAG,eAAe;CASjE;AAED;;;;;GAKG;AACH,wBAAgB,gBAAgB,IAAI,4BAA4B,CAgB/D"}
|