@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,1301 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The staged composition root (D2 §2, ratified against Go's two-phase
|
|
3
|
+
* nil-then-inject wiring): plain functions building the graph in
|
|
4
|
+
* dependency order — config → storage → temporal → controllers → routes →
|
|
5
|
+
* listen. Every dependency is a required parameter; a missing one is a
|
|
6
|
+
* compile error or a loud boot throw, NEVER a silent no-op (the Go bug
|
|
7
|
+
* class the inventory flags).
|
|
8
|
+
*
|
|
9
|
+
* Scaffold stage: the storage and temporal stages are seams (src/store/,
|
|
10
|
+
* src/temporal/ — sub-project #4 and the execution cluster fill them); the
|
|
11
|
+
* served surface is the health service and the registry lanes.
|
|
12
|
+
*
|
|
13
|
+
* Boot ordering is contract (Go server.go:739-743, 806, 839-843): health
|
|
14
|
+
* flips SERVING only when wiring is complete, and the port binds AFTER
|
|
15
|
+
* that — the CLI's serverGate TCP probe treats port-bind as readiness.
|
|
16
|
+
* Shutdown is the reverse (grpc lib Stop): NOT_SERVING first, then drain.
|
|
17
|
+
*
|
|
18
|
+
* Extensions (DD-006, sub-project 20260826.09/O1): the optional
|
|
19
|
+
* `extensions` units resolve FIRST — a bad registry aborts boot before any
|
|
20
|
+
* stage has side effects — and their contributions ride the existing
|
|
21
|
+
* stages (services in the one routes closure, workers on the manager's
|
|
22
|
+
* factory list, the edition into the platform controller). With no
|
|
23
|
+
* extensions composed, every stage below behaves byte-identically to
|
|
24
|
+
* before the parameter existed; the conformance rosters pin that.
|
|
25
|
+
*/
|
|
26
|
+
import { mkdirSync } from "node:fs";
|
|
27
|
+
import path from "node:path";
|
|
28
|
+
|
|
29
|
+
import type { ConnectRouter, Transport } from "@connectrpc/connect";
|
|
30
|
+
|
|
31
|
+
import { HealthCheckResponse_ServingStatus as ServingStatus } from "@stigmer/protos/grpc/health/v1/health_pb";
|
|
32
|
+
|
|
33
|
+
import { registerAgentServices } from "../domain/agent/controller.js";
|
|
34
|
+
import {
|
|
35
|
+
newConfigFromEnv,
|
|
36
|
+
ROUTING_SESSION,
|
|
37
|
+
} from "../domain/agentexecution/temporal/config.js";
|
|
38
|
+
import { registerAgentExecutionServices } from "../domain/agentexecution/controller.js";
|
|
39
|
+
import {
|
|
40
|
+
LocalArtifactStorage,
|
|
41
|
+
newArtifactStorage,
|
|
42
|
+
} from "../artifactstorage/artifact-storage.js";
|
|
43
|
+
import type { ArtifactStorage } from "../artifactstorage/artifact-storage.js";
|
|
44
|
+
import { StreamBroker } from "../domain/agentexecution/stream-broker.js";
|
|
45
|
+
import { newExecutionEngineStateProvider } from "../temporal/agentexecution/engine-client.js";
|
|
46
|
+
import { newMcpServerEngineStateProvider } from "../temporal/mcpserver/engine-client.js";
|
|
47
|
+
import { newAgentExecutionWorkerFactory } from "../temporal/agentexecution/worker.js";
|
|
48
|
+
import { TemporalManager } from "../temporal/manager.js";
|
|
49
|
+
import { loadServerPayloadCodecs } from "../temporal/payload-codec.js";
|
|
50
|
+
import type { Client as TemporalClient } from "@temporalio/client";
|
|
51
|
+
|
|
52
|
+
import { ScheduleArtifact } from "../temporal/schedule/artifact.js";
|
|
53
|
+
import { newScheduleConfigFromEnv } from "../temporal/schedule/config.js";
|
|
54
|
+
import { ScheduleReconciler } from "../temporal/schedule/reconciler.js";
|
|
55
|
+
import { RunStarter } from "../temporal/schedule/run-starter.js";
|
|
56
|
+
import { ScheduleSyncer } from "../temporal/schedule/syncer.js";
|
|
57
|
+
import { newScheduleWorkerFactory } from "../temporal/schedule/worker.js";
|
|
58
|
+
import { registerScheduleServices } from "../domain/schedule/controller.js";
|
|
59
|
+
import { RuntimeResolutionService } from "../domain/environment/resolution/resolution.js";
|
|
60
|
+
import { ManagedEnvironmentService } from "../domain/mcpserver/oauth/managed-env.js";
|
|
61
|
+
import { registerAgentInstanceServices } from "../domain/agentinstance/controller.js";
|
|
62
|
+
import { registerAgentChannelServices } from "../domain/agentchannel/controller.js";
|
|
63
|
+
import { registerChannelConversationServices } from "../domain/agentchannel/conversation.js";
|
|
64
|
+
import { registerChannelMessageServices } from "../domain/agentchannel/message.js";
|
|
65
|
+
import { registerAgentShareServices } from "../domain/agentshare/controller.js";
|
|
66
|
+
import { registerApiKeyServices } from "../domain/apikey/controller.js";
|
|
67
|
+
import { newApiKeyIdentityVerifier } from "../domain/apikey/verifier.js";
|
|
68
|
+
import type { IdentityVerifier } from "../extensions/identity.js";
|
|
69
|
+
import { registerArtifactServices } from "../domain/artifact/controller.js";
|
|
70
|
+
import { newOidcIdentityVerifier } from "../identity/oidc-verifier.js";
|
|
71
|
+
import {
|
|
72
|
+
createArtifactFileServer,
|
|
73
|
+
warnOnLegacyArtifactLayout,
|
|
74
|
+
} from "../domain/artifact/file-server.js";
|
|
75
|
+
import { registerChannelAppServices } from "../domain/channelapp/controller.js";
|
|
76
|
+
import { registerEnvironmentServices } from "../domain/environment/controller.js";
|
|
77
|
+
import { registerExecutionContextServices } from "../domain/executioncontext/controller.js";
|
|
78
|
+
import { registerGitHubServices } from "../domain/github/controller.js";
|
|
79
|
+
import { registerMemoryServices } from "../domain/memory/controller.js";
|
|
80
|
+
import { registerOAuthAppServices } from "../domain/oauthapp/controller.js";
|
|
81
|
+
import { registerOrganizationServices } from "../domain/organization/controller.js";
|
|
82
|
+
import { registerMcpServerServices } from "../domain/mcpserver/controller.js";
|
|
83
|
+
import { registerPlatformServices } from "../domain/platform/controller.js";
|
|
84
|
+
import { registerProjectServices } from "../domain/project/controller.js";
|
|
85
|
+
import { registerSessionServices } from "../domain/session/controller.js";
|
|
86
|
+
import { registerSkillServices } from "../domain/skill/controller.js";
|
|
87
|
+
import {
|
|
88
|
+
DEFAULT_SLOT_TTL_MS,
|
|
89
|
+
MAX_ZIP_SIZE,
|
|
90
|
+
} from "../domain/skill/constants.js";
|
|
91
|
+
import { newSkillArtifactStorage } from "../domain/skill/storage/artifact-storage.js";
|
|
92
|
+
import {
|
|
93
|
+
newSkillTransferLane,
|
|
94
|
+
uploadUrl as skillUploadUrl,
|
|
95
|
+
} from "../domain/skill/transfer/handler.js";
|
|
96
|
+
import { UploadSlots } from "../domain/skill/transfer/slots.js";
|
|
97
|
+
import {
|
|
98
|
+
DEFAULT_WRITE_VERSION,
|
|
99
|
+
ENCRYPTION_KEY_ENV_VAR,
|
|
100
|
+
ENCRYPTION_KEY_FILE_NAME,
|
|
101
|
+
ENCRYPTION_WRITE_VERSION_ENV_VAR,
|
|
102
|
+
SecretService,
|
|
103
|
+
StaticKeySecretCodec,
|
|
104
|
+
} from "../encryption/encryption.js";
|
|
105
|
+
import type { SecretCodec } from "../encryption/codec.js";
|
|
106
|
+
import { getOrCreateNamedKey } from "../encryption/key-manager.js";
|
|
107
|
+
import { V1_VERSION } from "../encryption/v1-codec.js";
|
|
108
|
+
import { registerActivityServices } from "../query/activity/controller.js";
|
|
109
|
+
import { ActivityHandler } from "../query/activity/handler.js";
|
|
110
|
+
import { registerSearchServices } from "../query/search/controller.js";
|
|
111
|
+
import { SearchHandler } from "../query/search/handler.js";
|
|
112
|
+
import { SqliteSearchQueryStore } from "../query/search/query-store.js";
|
|
113
|
+
import { newSearchableResourceRegistry } from "../query/search/registry.js";
|
|
114
|
+
import {
|
|
115
|
+
initRpcMetrics,
|
|
116
|
+
metricsExportPosture,
|
|
117
|
+
} from "../observability/rpc-metrics.js";
|
|
118
|
+
import { buildInterceptorChain } from "../pipeline/chain.js";
|
|
119
|
+
import { createVerifierChainInterceptor } from "../pipeline/interceptors/auth.js";
|
|
120
|
+
import { createErrorBoundaryInterceptor } from "../pipeline/interceptors/error-boundary.js";
|
|
121
|
+
import { createRequestMetricsInterceptor } from "../pipeline/interceptors/request-metrics.js";
|
|
122
|
+
import { newPermissiveSingleTeamAuthorizer } from "../pipeline/steps/authorize.js";
|
|
123
|
+
import { newExecutionScopedRunnerCredentialProvider } from "../runnerauth/runner-credential-provider.js";
|
|
124
|
+
import { RunnerAuthService } from "../runnerauth/runnerauth.js";
|
|
125
|
+
import { PostgresStore } from "../store/postgres/store.js";
|
|
126
|
+
import { SqliteStore } from "../store/sqlite/store.js";
|
|
127
|
+
import type { Store } from "../store/interface.js";
|
|
128
|
+
import { resolveExtensions } from "../extensions/registry.js";
|
|
129
|
+
import type { ServerExtension } from "../extensions/registry.js";
|
|
130
|
+
import { registerWorkflowServices } from "../domain/workflow/controller.js";
|
|
131
|
+
import {
|
|
132
|
+
bundledModelRegistryDocument,
|
|
133
|
+
bundledTaskKindRegistryDocument,
|
|
134
|
+
} from "../domain/workflow/registry/bundled.js";
|
|
135
|
+
import type { ModelCatalogProvider } from "../domain/workflow/registry/model-catalog-provider.js";
|
|
136
|
+
import { ModelRegistryStore } from "../domain/workflow/registry/model-registry-store.js";
|
|
137
|
+
import { InProcessValidator } from "../domain/workflow/validation/validator.js";
|
|
138
|
+
import { registerWorkflowInstanceServices } from "../domain/workflowinstance/controller.js";
|
|
139
|
+
import { registerWorkflowExecutionServices } from "../domain/workflowexecution/controller.js";
|
|
140
|
+
import { StreamBroker as WorkflowExecutionStreamBroker } from "../domain/workflowexecution/stream-broker.js";
|
|
141
|
+
import {
|
|
142
|
+
newWorkflowExecutionConfigFromEnv,
|
|
143
|
+
WORKFLOW_ROUTING_EXECUTION,
|
|
144
|
+
} from "../domain/workflowexecution/temporal/config.js";
|
|
145
|
+
import { builtInSandboxProvisionerFactories } from "../sandbox/builtins.js";
|
|
146
|
+
import { newSandboxLane } from "../sandbox/lane.js";
|
|
147
|
+
import { newSandboxProvisioner } from "../sandbox/provisioner.js";
|
|
148
|
+
import { newWorkflowSandboxTerminalObserver } from "../sandbox/steps.js";
|
|
149
|
+
import { newWorkflowExecutionEngineStateProvider } from "../temporal/workflowexecution/engine-client.js";
|
|
150
|
+
import { newWorkflowExecutionWorkerFactory } from "../temporal/workflowexecution/worker.js";
|
|
151
|
+
import { HealthState, registerHealthService } from "../transport/health.js";
|
|
152
|
+
import { resolveConsoleAssets } from "../transport/console/assets.js";
|
|
153
|
+
import { createConsoleLane } from "../transport/console/handler.js";
|
|
154
|
+
import { createRegistryLanes } from "../transport/registry/lanes.js";
|
|
155
|
+
import { createUnifiedPortServer } from "../transport/server.js";
|
|
156
|
+
import type { ServerConfig } from "./config.js";
|
|
157
|
+
import { createInProcessClients } from "./inprocess.js";
|
|
158
|
+
import type { InProcessClients } from "./inprocess.js";
|
|
159
|
+
import type { Logger } from "./logger.js";
|
|
160
|
+
|
|
161
|
+
export interface ComposedServer {
|
|
162
|
+
healthState: HealthState;
|
|
163
|
+
/** The persistence layer (exposed for tests; domain code gets it injected). */
|
|
164
|
+
store: Store;
|
|
165
|
+
/**
|
|
166
|
+
* The composed secret-encryption facade — the SAME instance every
|
|
167
|
+
* domain seals and opens with (one facade per composition, the Go
|
|
168
|
+
* one-pointer posture). Exposed for compositions whose extensions run
|
|
169
|
+
* maintenance lanes over stored ciphertext — the secret-convergence
|
|
170
|
+
* sweep's reencrypt door and the encryption-state census (convergence
|
|
171
|
+
* 20260830.04 Stage 3, gate ruling G2): a twin facade built from the
|
|
172
|
+
* same codec map would duplicate KEK caches and silently drift from
|
|
173
|
+
* the boot-resolved write version.
|
|
174
|
+
*/
|
|
175
|
+
secrets: SecretService;
|
|
176
|
+
/**
|
|
177
|
+
* The Temporal lifecycle manager (exposed for composed tests asserting
|
|
178
|
+
* engine-state behavior). Health semantics are unchanged by it: a down
|
|
179
|
+
* engine never flips gRPC health — that is the engine-unavailable
|
|
180
|
+
* posture the agentexecution suites pin.
|
|
181
|
+
*/
|
|
182
|
+
temporalManager: TemporalManager;
|
|
183
|
+
/**
|
|
184
|
+
* The runner-token service (exposed for boot tests and for the
|
|
185
|
+
* executioncontext decrypt-lane tests, which mint scope-bound tokens
|
|
186
|
+
* against the SAME key the server verifies with; the platform exchange
|
|
187
|
+
* RPC — the mint side — lands with its own sub-project).
|
|
188
|
+
*/
|
|
189
|
+
runnerAuthService: RunnerAuthService;
|
|
190
|
+
/**
|
|
191
|
+
* The agentexecution broadcast fabric (exposed for tests and, with #18,
|
|
192
|
+
* the Temporal worker's recovery broadcasts — Go's GetStreamBroker).
|
|
193
|
+
* UpdateStatus is the production writer.
|
|
194
|
+
*/
|
|
195
|
+
agentExecutionStreamBroker: StreamBroker;
|
|
196
|
+
/**
|
|
197
|
+
* The workflowexecution broadcast fabric (exposed for tests and for the
|
|
198
|
+
* Temporal worker's persist broadcasts, #21 — Go's GetStreamBroker).
|
|
199
|
+
* UpdateStatus, the lifecycle RPCs, and the worker's activities are the
|
|
200
|
+
* production writers.
|
|
201
|
+
*/
|
|
202
|
+
workflowExecutionStreamBroker: WorkflowExecutionStreamBroker;
|
|
203
|
+
/**
|
|
204
|
+
* The in-process router transport — the same routes and interceptor
|
|
205
|
+
* chain as the serving router EXCEPT the position-1 identity source
|
|
206
|
+
* (DD-002's bufconn shape; O2 ruling Q4: this lane stamps the internal
|
|
207
|
+
* caller class, the serving chain runs the verifier chassis). Exposed
|
|
208
|
+
* because it is the one lane that reaches EVERY registered service,
|
|
209
|
+
* extension services included (blueprint 20260826.02/03 §8):
|
|
210
|
+
* compositions build clients to their extension services over it, and
|
|
211
|
+
* the O1 extension suite proves both-router visibility through it.
|
|
212
|
+
*/
|
|
213
|
+
inProcessTransport: Transport;
|
|
214
|
+
/**
|
|
215
|
+
* The composed identity-verifier chain in serving order — the OSS
|
|
216
|
+
* lanes the posture composed (apikey, oidc) then every extension's, in
|
|
217
|
+
* unit order — for a composition's extension-owned HTTP edges to run
|
|
218
|
+
* through `authenticateBearerToken` (stigmer#991). Exposed rather than
|
|
219
|
+
* rebuilt at the edge because the OSS entries are constructed HERE from
|
|
220
|
+
* the store and the config; an edge that rebuilt the list would drop
|
|
221
|
+
* them or reorder them, and both are the drift DD-007 rules out.
|
|
222
|
+
*/
|
|
223
|
+
identityVerifiers: ReadonlyArray<IdentityVerifier>;
|
|
224
|
+
/** Completes wiring, flips SERVING, binds the port; returns the bound port. */
|
|
225
|
+
start(): Promise<number>;
|
|
226
|
+
/** NOT_SERVING first, stop background work, drain connections. */
|
|
227
|
+
shutdown(): Promise<void>;
|
|
228
|
+
}
|
|
229
|
+
|
|
230
|
+
export interface ComposeOptions {
|
|
231
|
+
config: ServerConfig;
|
|
232
|
+
logger: Logger;
|
|
233
|
+
/**
|
|
234
|
+
* Named extension units composed into this server (DD-006). Omitted or
|
|
235
|
+
* empty means plain OSS — byte-identical wire behavior, pinned by the
|
|
236
|
+
* conformance rosters.
|
|
237
|
+
*/
|
|
238
|
+
extensions?: ReadonlyArray<ServerExtension>;
|
|
239
|
+
/** Test seam forwarded to the model-registry upstream fetch. */
|
|
240
|
+
fetchImpl?: typeof fetch;
|
|
241
|
+
/** Test seam: bind an ephemeral port instead of config.grpcPort. */
|
|
242
|
+
portOverride?: number;
|
|
243
|
+
host?: string;
|
|
244
|
+
}
|
|
245
|
+
|
|
246
|
+
export async function composeServer(
|
|
247
|
+
options: ComposeOptions,
|
|
248
|
+
): Promise<ComposedServer> {
|
|
249
|
+
const { config, logger } = options;
|
|
250
|
+
|
|
251
|
+
// Stage: extensions — resolves and validates BEFORE any stage has side
|
|
252
|
+
// effects (DD-006 §2b: a bad registry is a loud boot throw, never a
|
|
253
|
+
// partially-wired server). The empty set resolves to explicit defaults
|
|
254
|
+
// and logs nothing, keeping today's boot output stable.
|
|
255
|
+
const extensions = resolveExtensions(options.extensions);
|
|
256
|
+
if (extensions.unitNames.length > 0) {
|
|
257
|
+
logger.info("extension units composed", {
|
|
258
|
+
units: extensions.unitNames.join(", "),
|
|
259
|
+
});
|
|
260
|
+
}
|
|
261
|
+
// The ONE composed Authorizer (DD-007 §3): an extension's registration
|
|
262
|
+
// or the OSS permissive single-team default. Resolved here, handed to
|
|
263
|
+
// every controller as an explicit dependency — the Authorize step at
|
|
264
|
+
// position 1 of every chain calls it (O2).
|
|
265
|
+
const authorizer =
|
|
266
|
+
extensions.authorizer ?? newPermissiveSingleTeamAuthorizer();
|
|
267
|
+
// The C2 tuple-lifecycle driver (ruling Q2): undefined = the three
|
|
268
|
+
// shared tuple steps (CreateAuthorizationTuples / CleanupIamPolicies /
|
|
269
|
+
// UpdateVisibilityTuples) no-op — OSS behavior byte-identical. Handed
|
|
270
|
+
// to every resource controller as an explicit dependency, the same
|
|
271
|
+
// threading as the authorizer.
|
|
272
|
+
const authorizationLifecycle =
|
|
273
|
+
extensions.drivers.resourceAuthorizationLifecycle;
|
|
274
|
+
|
|
275
|
+
// Stage: storage — the driver selection seam (DD-010): DATABASE_URL
|
|
276
|
+
// present → Postgres (async connect + advisory-locked migrations), else
|
|
277
|
+
// sqlite on DB_PATH (migrations v1–v7, incl. adopting a Go-created
|
|
278
|
+
// database — D2 §3 schema continuity). Postgres wins when both are set:
|
|
279
|
+
// DB_PATH always has a default value, so no other precedence could ever
|
|
280
|
+
// select Postgres (config.ts documents the contract). A failure here is
|
|
281
|
+
// a loud boot throw, never a degraded server. The operator identity
|
|
282
|
+
// (#400) is installed by main.ts — once per PROCESS, before any writer
|
|
283
|
+
// exists — not here: composeServer is re-entrant for tests, the
|
|
284
|
+
// identity seam deliberately is not.
|
|
285
|
+
let store: Store;
|
|
286
|
+
if (config.databaseUrl !== "") {
|
|
287
|
+
store = await PostgresStore.open(config.databaseUrl, logger);
|
|
288
|
+
logger.info("storage driver selected", { driver: "postgres" });
|
|
289
|
+
} else {
|
|
290
|
+
store = SqliteStore.open(config.dbPath, logger);
|
|
291
|
+
logger.info("storage driver selected", {
|
|
292
|
+
driver: "sqlite",
|
|
293
|
+
dbPath: config.dbPath,
|
|
294
|
+
});
|
|
295
|
+
}
|
|
296
|
+
|
|
297
|
+
// Stage: keys — the ratified fail-loud boot ASYMMETRY (D2 cross-domain
|
|
298
|
+
// invariants; Go server.go:277-293):
|
|
299
|
+
//
|
|
300
|
+
// - Encryption key failure → WARN and continue with a keyless
|
|
301
|
+
// pass-through v1 codec. Plaintext at rest is tolerable (the write
|
|
302
|
+
// steps WARN per request, oss#394); refusing to boot over it is not.
|
|
303
|
+
// - Runner-token key failure → FATAL (throw). The EC read RPCs redact
|
|
304
|
+
// by default, so a server that cannot mint runner tokens would hand
|
|
305
|
+
// every execution redaction markers instead of its secrets — the
|
|
306
|
+
// exact silent-junk failure the oss#405 fail-loud doctrine forbids.
|
|
307
|
+
// (The verify side is live: the executioncontext decrypt lane. The
|
|
308
|
+
// mint side — the platform exchange RPC — arrives with its
|
|
309
|
+
// sub-project.)
|
|
310
|
+
//
|
|
311
|
+
// The versioned-codec seam (20260830.04 Stage 1, ruling Q2): the
|
|
312
|
+
// built-in v1 codec installs HERE, never in the registry (the
|
|
313
|
+
// default-lives-with-the-consumer doctrine), and merges with the
|
|
314
|
+
// extension-registered codecs. The write version resolves FAIL-FAST:
|
|
315
|
+
// naming a version with no codec is a boot throw (deliberately outside
|
|
316
|
+
// the WARN-degrade catch — only the KEY ladder degrades; a
|
|
317
|
+
// misconfigured write version must never silently write v1). The env
|
|
318
|
+
// vars stay off ServerConfig, the key-manager posture: no config entry
|
|
319
|
+
// exists before the code that reads it.
|
|
320
|
+
let v1Key: Buffer | undefined;
|
|
321
|
+
try {
|
|
322
|
+
v1Key = getOrCreateNamedKey(
|
|
323
|
+
ENCRYPTION_KEY_ENV_VAR,
|
|
324
|
+
ENCRYPTION_KEY_FILE_NAME,
|
|
325
|
+
);
|
|
326
|
+
} catch (error) {
|
|
327
|
+
logger.warn(
|
|
328
|
+
"Failed to initialize encryption - secret values will be stored in plaintext",
|
|
329
|
+
{ error: error instanceof Error ? error.message : String(error) },
|
|
330
|
+
);
|
|
331
|
+
v1Key = undefined;
|
|
332
|
+
}
|
|
333
|
+
const secretCodecs = new Map<string, SecretCodec>([
|
|
334
|
+
[V1_VERSION, new StaticKeySecretCodec(v1Key)],
|
|
335
|
+
...extensions.drivers.secretCodecs,
|
|
336
|
+
]);
|
|
337
|
+
// Blank normalizes to the default — a rollback lever must be robust to
|
|
338
|
+
// sloppy unsetting (the cloud EncryptionConfig contract).
|
|
339
|
+
const writeVersionValue = process.env[ENCRYPTION_WRITE_VERSION_ENV_VAR] ?? "";
|
|
340
|
+
const secretService = SecretService.withCodecs({
|
|
341
|
+
codecs: secretCodecs,
|
|
342
|
+
writeVersion:
|
|
343
|
+
writeVersionValue === "" ? DEFAULT_WRITE_VERSION : writeVersionValue,
|
|
344
|
+
});
|
|
345
|
+
logger.info("secret encryption configured", {
|
|
346
|
+
writeVersion:
|
|
347
|
+
writeVersionValue === "" ? DEFAULT_WRITE_VERSION : writeVersionValue,
|
|
348
|
+
registeredCodecs: [...secretCodecs.keys()].sort(),
|
|
349
|
+
});
|
|
350
|
+
const runnerAuthService = RunnerAuthService.fromEnv();
|
|
351
|
+
// The runner-credential seam (§6c, O5): the composed provider, or the
|
|
352
|
+
// OSS execution-scoped default over the service above. The concrete
|
|
353
|
+
// service is constructed and exposed UNCONDITIONALLY either way — its
|
|
354
|
+
// boot-fatal key posture is the ratified cross-domain invariant, and the
|
|
355
|
+
// boot/EC-decrypt tests mint against the server's own key through it.
|
|
356
|
+
const runnerCredentials =
|
|
357
|
+
extensions.drivers.runnerCredentialProvider ??
|
|
358
|
+
newExecutionScopedRunnerCredentialProvider(runnerAuthService);
|
|
359
|
+
|
|
360
|
+
// Stage: temporal (#18). Construction is sync and connection-free —
|
|
361
|
+
// initialConnect/startWorkers/startHealthMonitor run in start(), all
|
|
362
|
+
// NON-fatal (Go server.go: the server boots and serves with the engine
|
|
363
|
+
// unavailable; the health monitor keeps retrying). The one boot-fatal
|
|
364
|
+
// arm is a PRESENT-but-malformed payload-encryption key: an operator
|
|
365
|
+
// who set the key intended runner history to be encrypted, and failing
|
|
366
|
+
// on the first runner payload read would be worse than failing here.
|
|
367
|
+
//
|
|
368
|
+
// The agent-execution temporal config lives with the controllers stage
|
|
369
|
+
// (not here) because the session update pipeline's execution-target
|
|
370
|
+
// immutability step must resolve UNSPECIFIED through the SAME default
|
|
371
|
+
// dispatch uses — one definition, so policy and dispatch can never
|
|
372
|
+
// disagree (oss#397).
|
|
373
|
+
const temporalConfig = newConfigFromEnv();
|
|
374
|
+
// The workflow-execution twin (#21) — its config has no policy
|
|
375
|
+
// consumer, so it lives here with the temporal stage.
|
|
376
|
+
const workflowExecutionTemporalConfig = newWorkflowExecutionConfigFromEnv();
|
|
377
|
+
// The sandbox lane (§6d, O6): the configured driver — built-in tier or
|
|
378
|
+
// composition-registered — or the default external-runner posture
|
|
379
|
+
// (SANDBOX_PROVISIONER_TYPE unset: no driver constructed, the ensure
|
|
380
|
+
// steps short-circuit, an operator-managed runner polls the queues).
|
|
381
|
+
// Selection is loud-fail inside newSandboxProvisioner; the routing
|
|
382
|
+
// coherence check lives HERE because both temporal configs do — a
|
|
383
|
+
// provisioner that no routing mode can ever dispatch to is dark
|
|
384
|
+
// configuration, the validateR2Config class of boot fault.
|
|
385
|
+
const sandboxProvisioner = newSandboxProvisioner(
|
|
386
|
+
config.sandboxProvisionerType,
|
|
387
|
+
{
|
|
388
|
+
config: {
|
|
389
|
+
backendEndpoint: config.sandboxBackendEndpoint,
|
|
390
|
+
temporalAddress: config.sandboxTemporalAddress,
|
|
391
|
+
runnerImage: config.sandboxRunnerImage,
|
|
392
|
+
runnerCommand: config.sandboxRunnerCommand,
|
|
393
|
+
kubernetesNamespace: config.sandboxKubernetesNamespace,
|
|
394
|
+
},
|
|
395
|
+
logger,
|
|
396
|
+
},
|
|
397
|
+
builtInSandboxProvisionerFactories(),
|
|
398
|
+
extensions.drivers.sandboxProvisionerDrivers,
|
|
399
|
+
);
|
|
400
|
+
if (
|
|
401
|
+
sandboxProvisioner !== undefined &&
|
|
402
|
+
temporalConfig.activityRouting !== ROUTING_SESSION &&
|
|
403
|
+
workflowExecutionTemporalConfig.workflowActivityRouting !==
|
|
404
|
+
WORKFLOW_ROUTING_EXECUTION
|
|
405
|
+
) {
|
|
406
|
+
throw new Error(
|
|
407
|
+
`SANDBOX_PROVISIONER_TYPE='${config.sandboxProvisionerType}' requires a per-queue routing mode — set STIGMER_ACTIVITY_ROUTING=session and/or STIGMER_WORKFLOW_ACTIVITY_ROUTING=execution (a provisioner no dispatch can reach must fail loudly, not sit dark)`,
|
|
408
|
+
);
|
|
409
|
+
}
|
|
410
|
+
const sandboxLane = newSandboxLane(sandboxProvisioner, runnerCredentials);
|
|
411
|
+
if (sandboxLane.enabled) {
|
|
412
|
+
logger.info("sandbox provisioner composed", {
|
|
413
|
+
type: config.sandboxProvisionerType,
|
|
414
|
+
});
|
|
415
|
+
}
|
|
416
|
+
// ONE terminal observer instance feeds all three workflow-execution
|
|
417
|
+
// status write sites (the UpdateStatus RPC, the orchestrator's persist
|
|
418
|
+
// activity, the lifecycle persists) — gate ruling Q3b.
|
|
419
|
+
const workflowSandboxTerminalObserver = newWorkflowSandboxTerminalObserver(
|
|
420
|
+
sandboxLane,
|
|
421
|
+
logger,
|
|
422
|
+
);
|
|
423
|
+
const healthState = new HealthState();
|
|
424
|
+
// The model catalog (DD-008, O5): ONE provider instance feeds workflow
|
|
425
|
+
// validation, the pin checks, and the transport's registry lane, so the
|
|
426
|
+
// pickers and validation can never drift (DD-004) — on either arm. With
|
|
427
|
+
// no extension provider composed, the OSS domain-owned ModelRegistryStore
|
|
428
|
+
// (workflow-family DD-A, restoring Go's ownership) is constructed and
|
|
429
|
+
// this root owns its refresh lifecycle; with one composed, the OSS store
|
|
430
|
+
// and its hourly upstream refresh are never built — a substituted
|
|
431
|
+
// composition must not keep fetching registry data nobody reads.
|
|
432
|
+
let modelCatalog: ModelCatalogProvider;
|
|
433
|
+
let ossModelRegistryStore: ModelRegistryStore | undefined;
|
|
434
|
+
if (extensions.drivers.modelCatalogProvider !== undefined) {
|
|
435
|
+
modelCatalog = extensions.drivers.modelCatalogProvider;
|
|
436
|
+
} else {
|
|
437
|
+
ossModelRegistryStore = new ModelRegistryStore({
|
|
438
|
+
bundledDocument: bundledModelRegistryDocument(),
|
|
439
|
+
upstreamOrigin: config.modelRegistryUpstream,
|
|
440
|
+
refreshEnabled: config.modelRegistryRefreshEnabled,
|
|
441
|
+
logger,
|
|
442
|
+
fetchImpl: options.fetchImpl,
|
|
443
|
+
});
|
|
444
|
+
modelCatalog = ossModelRegistryStore;
|
|
445
|
+
}
|
|
446
|
+
const registryLanes = createRegistryLanes({
|
|
447
|
+
taskKindRegistryDocument: bundledTaskKindRegistryDocument(),
|
|
448
|
+
modelRegistryStore: modelCatalog,
|
|
449
|
+
});
|
|
450
|
+
// The Layer-2 workflow validator reads the composed catalog provider
|
|
451
|
+
// per validation call, keeping validation and the served pickers in
|
|
452
|
+
// lockstep (DD-004).
|
|
453
|
+
const workflowValidator = new InProcessValidator(modelCatalog, logger);
|
|
454
|
+
// ONE broker spans both routers AND the Temporal worker's activities:
|
|
455
|
+
// the worker's status persists broadcast through the same fabric, so
|
|
456
|
+
// recovery/fallback updates reach externally-connected subscribe
|
|
457
|
+
// streams (Go's GetStreamBroker seam).
|
|
458
|
+
const agentExecutionStreamBroker = new StreamBroker(logger);
|
|
459
|
+
// The workflowexecution twin (domain-local per that sub-project's
|
|
460
|
+
// DD-002); #21's activities broadcast through it the same way.
|
|
461
|
+
const workflowExecutionStreamBroker = new WorkflowExecutionStreamBroker(
|
|
462
|
+
logger,
|
|
463
|
+
);
|
|
464
|
+
// Stage: schedule clock (#22) — Go server.go 578–592 injection order:
|
|
465
|
+
// config → artifact → syncer → run starter → (worker below) →
|
|
466
|
+
// reconciler. The client provider closes over `temporalManager`,
|
|
467
|
+
// declared just below — legal and deliberate: the manager's factory list
|
|
468
|
+
// must include the schedule worker at construction, while the syncer and
|
|
469
|
+
// reconciler only READ the client at call time, long after boot (a call
|
|
470
|
+
// before initialization would throw loudly, the composition-root idiom).
|
|
471
|
+
const scheduleTemporalConfig = newScheduleConfigFromEnv();
|
|
472
|
+
const scheduleClientProvider = (): TemporalClient | undefined =>
|
|
473
|
+
temporalManager.getClient();
|
|
474
|
+
const scheduleArtifact = new ScheduleArtifact(scheduleTemporalConfig);
|
|
475
|
+
const scheduleSyncer = new ScheduleSyncer(
|
|
476
|
+
scheduleClientProvider,
|
|
477
|
+
store,
|
|
478
|
+
scheduleArtifact,
|
|
479
|
+
logger,
|
|
480
|
+
);
|
|
481
|
+
// Every fire enters the FULL execution create pipeline through the
|
|
482
|
+
// in-process agentexecution client (Go server.go 581: the RunStarter's
|
|
483
|
+
// ExecutionCreator edge). The composed scheduleFireCaller driver
|
|
484
|
+
// (stigmer-cloud#572), when present, gives each fire its edition
|
|
485
|
+
// identity — propagated by the creator's asCaller lane.
|
|
486
|
+
const scheduleRunStarter = new RunStarter({
|
|
487
|
+
store,
|
|
488
|
+
config: scheduleTemporalConfig,
|
|
489
|
+
executions: {
|
|
490
|
+
create: (execution, fireCaller) =>
|
|
491
|
+
requireInProcess().scheduleExecutionCreator.create(
|
|
492
|
+
execution,
|
|
493
|
+
fireCaller,
|
|
494
|
+
),
|
|
495
|
+
},
|
|
496
|
+
fireCallerMint: extensions.drivers.scheduleFireCaller,
|
|
497
|
+
logger,
|
|
498
|
+
});
|
|
499
|
+
const scheduleReconciler = new ScheduleReconciler(
|
|
500
|
+
scheduleClientProvider,
|
|
501
|
+
store,
|
|
502
|
+
scheduleSyncer,
|
|
503
|
+
scheduleTemporalConfig,
|
|
504
|
+
logger,
|
|
505
|
+
);
|
|
506
|
+
// The manager owns the connection lifecycle; one factory per domain
|
|
507
|
+
// worker (Go createWorkers' list) — agent-execution (#18),
|
|
508
|
+
// workflow-execution (#21), and the schedule clock (#22).
|
|
509
|
+
const temporalManager = new TemporalManager({
|
|
510
|
+
hostPort: config.temporalHostPort,
|
|
511
|
+
namespace: config.temporalNamespace,
|
|
512
|
+
logger,
|
|
513
|
+
// The composed provider's optional resolvePayloadKey capability rides
|
|
514
|
+
// the decode codec (C4 Stage 2): database-resident rpk_ keys for
|
|
515
|
+
// desktop-runner histories. Absent → env keys only, today's behavior.
|
|
516
|
+
payloadCodecs: loadServerPayloadCodecs(
|
|
517
|
+
runnerCredentials.resolvePayloadKey?.bind(runnerCredentials),
|
|
518
|
+
),
|
|
519
|
+
workerFactories: [
|
|
520
|
+
newAgentExecutionWorkerFactory({
|
|
521
|
+
store,
|
|
522
|
+
logger,
|
|
523
|
+
// The worker's own-behalf status writes ride the in-process
|
|
524
|
+
// transport (stigmer#979) — the same lane as the RunStarter's
|
|
525
|
+
// create edge above, resolved lazily for the same boot-ordering
|
|
526
|
+
// reason. The lane's position 1 mints the internal caller class
|
|
527
|
+
// the Authorize step honors, and its handler IS the runner's
|
|
528
|
+
// updateStatus path, so the composed Authorizer, the O4 status
|
|
529
|
+
// hooks, and the broadcast reach the workflow's terminal writes
|
|
530
|
+
// by construction — the worker composes none of them itself.
|
|
531
|
+
statusWriter: () => requireInProcess().executionStatusWriter,
|
|
532
|
+
temporalConfig,
|
|
533
|
+
}),
|
|
534
|
+
newWorkflowExecutionWorkerFactory({
|
|
535
|
+
store,
|
|
536
|
+
logger,
|
|
537
|
+
broker: workflowExecutionStreamBroker,
|
|
538
|
+
temporalConfig: workflowExecutionTemporalConfig,
|
|
539
|
+
sandboxTerminalObserver: workflowSandboxTerminalObserver,
|
|
540
|
+
}),
|
|
541
|
+
newScheduleWorkerFactory({
|
|
542
|
+
store,
|
|
543
|
+
config: scheduleTemporalConfig,
|
|
544
|
+
syncer: scheduleSyncer,
|
|
545
|
+
runStarter: scheduleRunStarter,
|
|
546
|
+
logger,
|
|
547
|
+
}),
|
|
548
|
+
// Extension workers append after the OSS set — their own queues,
|
|
549
|
+
// the Java worker-per-queue split as precedent (blueprint §8).
|
|
550
|
+
...extensions.workers,
|
|
551
|
+
],
|
|
552
|
+
});
|
|
553
|
+
// The provider IS the injection mechanism (no Go-style creator
|
|
554
|
+
// re-injection): controllers observe the manager's CURRENT client at
|
|
555
|
+
// request time, so reconnects propagate with zero re-wiring.
|
|
556
|
+
const executionEngineState = newExecutionEngineStateProvider({
|
|
557
|
+
manager: temporalManager,
|
|
558
|
+
config: temporalConfig,
|
|
559
|
+
store,
|
|
560
|
+
logger,
|
|
561
|
+
});
|
|
562
|
+
// The workflow-execution twin: the same provider-is-the-injection
|
|
563
|
+
// mechanism, filling the seam #20 left disconnected.
|
|
564
|
+
const workflowExecutionEngineState = newWorkflowExecutionEngineStateProvider({
|
|
565
|
+
manager: temporalManager,
|
|
566
|
+
config: workflowExecutionTemporalConfig,
|
|
567
|
+
logger,
|
|
568
|
+
});
|
|
569
|
+
// The artifact blob store (Go server.go 349: shared by agentexecution
|
|
570
|
+
// attachments, the artifact domain (#13), and skill push (#8)). The r2
|
|
571
|
+
// arm landed with #13; the health probe runs in start(), matching Go's
|
|
572
|
+
// boot check. Since O5 the factory consults the composition's registered
|
|
573
|
+
// drivers for non-built-in types (§6b).
|
|
574
|
+
const artifactStorage = newArtifactStorage(
|
|
575
|
+
{
|
|
576
|
+
type: config.artifactStorageType,
|
|
577
|
+
localBasePath: config.artifactLocalBasePath,
|
|
578
|
+
localServeUrl: config.artifactLocalServeUrl,
|
|
579
|
+
r2Bucket: config.r2Bucket,
|
|
580
|
+
r2Endpoint: config.r2Endpoint,
|
|
581
|
+
r2AccessKeyId: config.r2AccessKeyId,
|
|
582
|
+
r2SecretAccessKey: config.r2SecretAccessKey,
|
|
583
|
+
r2Region: config.r2Region,
|
|
584
|
+
},
|
|
585
|
+
extensions.drivers.artifactStorageDrivers,
|
|
586
|
+
);
|
|
587
|
+
// The artifact download lane: a SECOND loopback listener on
|
|
588
|
+
// ARTIFACT_HTTP_PORT, local storage only (Go server.go 849–870) —
|
|
589
|
+
// deliberately not a unified-port lane. Lifecycle rides start()/
|
|
590
|
+
// shutdown().
|
|
591
|
+
const artifactFileServer =
|
|
592
|
+
config.artifactStorageType === "local"
|
|
593
|
+
? createArtifactFileServer({
|
|
594
|
+
basePath: config.artifactLocalBasePath,
|
|
595
|
+
logger,
|
|
596
|
+
})
|
|
597
|
+
: undefined;
|
|
598
|
+
// The skill artifact store + transfer lane (Go server.go:318-340). The
|
|
599
|
+
// store is content-addressed and never-GC at {storagePath}/skills/;
|
|
600
|
+
// the slots registry wipes {storagePath}/skills-staging at boot (orphans
|
|
601
|
+
// from a dead process are useless — the registry died with it). On OSS
|
|
602
|
+
// the lane is ALWAYS configured (Go wires it unconditionally too): the
|
|
603
|
+
// FailedPrecondition lane-absent arms exist for construction-order
|
|
604
|
+
// safety, and the capability matrix pins skillArtifactTransferLane=true.
|
|
605
|
+
//
|
|
606
|
+
// Since O5 the store is the skill-domain port over a PER-DOMAIN blob
|
|
607
|
+
// driver (§6b, Q2/Q2b rulings): skill keeps its own root and its own
|
|
608
|
+
// backend knob (SKILL_ARTIFACT_STORAGE_TYPE), so an r2-configured
|
|
609
|
+
// deployment changes nothing for skill artifacts until it opts in
|
|
610
|
+
// explicitly, and the Go-written skills/ directory keeps serving in
|
|
611
|
+
// place on the default arm.
|
|
612
|
+
const skillUploadSlots = new UploadSlots(
|
|
613
|
+
path.join(config.storagePath, "skills-staging"),
|
|
614
|
+
DEFAULT_SLOT_TTL_MS,
|
|
615
|
+
MAX_ZIP_SIZE,
|
|
616
|
+
);
|
|
617
|
+
const skillStorageDriver = ((): ArtifactStorage => {
|
|
618
|
+
const skillType =
|
|
619
|
+
config.skillArtifactStorageType === ""
|
|
620
|
+
? "local"
|
|
621
|
+
: config.skillArtifactStorageType;
|
|
622
|
+
if (skillType === "local") {
|
|
623
|
+
// Go layout invariant: {storagePath}/skills exists from boot with
|
|
624
|
+
// 0755 (the retired LocalFileStorage constructor's mkdir; the
|
|
625
|
+
// generic driver only creates directories on demand).
|
|
626
|
+
mkdirSync(path.join(config.storagePath, "skills"), {
|
|
627
|
+
recursive: true,
|
|
628
|
+
mode: 0o755,
|
|
629
|
+
});
|
|
630
|
+
// The local presigned-PUT arm rides the skill transfer lane's slot
|
|
631
|
+
// mechanism (§6b Q1 ruling: one upload surface, no new lane). The
|
|
632
|
+
// slots stage inside THIS driver's root, so a minted stagingKey
|
|
633
|
+
// reads back through the same instance; the empty serve URL is the
|
|
634
|
+
// honest state — skill downloads ride the transfer lane, never
|
|
635
|
+
// getSignedUrl.
|
|
636
|
+
return new LocalArtifactStorage(config.storagePath, "", {
|
|
637
|
+
mint: (declaredSizeBytes) => skillUploadSlots.mint(declaredSizeBytes),
|
|
638
|
+
uploadUrl: (ref) => skillUploadUrl(config.skillTransferBaseUrl, ref),
|
|
639
|
+
stagedKey: (ref) =>
|
|
640
|
+
`skills-staging/${skillUploadSlots.stagedFileName(ref)}`,
|
|
641
|
+
});
|
|
642
|
+
}
|
|
643
|
+
// Non-local skill backends share the artifact store's R2 settings for
|
|
644
|
+
// the built-in arm and the composition's registered drivers beyond it.
|
|
645
|
+
return newArtifactStorage(
|
|
646
|
+
{
|
|
647
|
+
type: skillType,
|
|
648
|
+
localBasePath: config.storagePath,
|
|
649
|
+
localServeUrl: "",
|
|
650
|
+
r2Bucket: config.r2Bucket,
|
|
651
|
+
r2Endpoint: config.r2Endpoint,
|
|
652
|
+
r2AccessKeyId: config.r2AccessKeyId,
|
|
653
|
+
r2SecretAccessKey: config.r2SecretAccessKey,
|
|
654
|
+
r2Region: config.r2Region,
|
|
655
|
+
},
|
|
656
|
+
extensions.drivers.artifactStorageDrivers,
|
|
657
|
+
);
|
|
658
|
+
})();
|
|
659
|
+
const skillArtifactStorage = newSkillArtifactStorage(skillStorageDriver);
|
|
660
|
+
const skillTransferLane = newSkillTransferLane(
|
|
661
|
+
skillUploadSlots,
|
|
662
|
+
skillArtifactStorage,
|
|
663
|
+
logger,
|
|
664
|
+
);
|
|
665
|
+
// The console lane (lane 4, DD-012): present only when a static export
|
|
666
|
+
// is bundled (slim artifacts) or configured (STIGMER_CONSOLE_DIR) —
|
|
667
|
+
// "not bundled" is a modeled state, logged once, with the router
|
|
668
|
+
// behaving exactly as it did before the lane existed.
|
|
669
|
+
const consoleAssets = resolveConsoleAssets(config.consoleDir, logger);
|
|
670
|
+
if (consoleAssets !== undefined) {
|
|
671
|
+
logger.info("web console serving from unified port", {
|
|
672
|
+
dir: consoleAssets.root,
|
|
673
|
+
files: consoleAssets.fileCount,
|
|
674
|
+
});
|
|
675
|
+
} else {
|
|
676
|
+
logger.debug("no web console export bundled; console lane disabled");
|
|
677
|
+
}
|
|
678
|
+
const consoleLane =
|
|
679
|
+
consoleAssets !== undefined
|
|
680
|
+
? createConsoleLane({
|
|
681
|
+
assets: consoleAssets,
|
|
682
|
+
grpcPort: options.portOverride ?? config.grpcPort,
|
|
683
|
+
logger,
|
|
684
|
+
})
|
|
685
|
+
: undefined;
|
|
686
|
+
// The search read side (#14): the 13-kind extractor registry, the query
|
|
687
|
+
// store over the driver's index read (OD-3 — no DB() escape hatch), and
|
|
688
|
+
// the CQRS handler. Registry validation is warn-only, Go server.go:509's
|
|
689
|
+
// posture — run ONCE here rather than inside routes(), which executes
|
|
690
|
+
// twice (serving router + in-process router).
|
|
691
|
+
const searchRegistry = newSearchableResourceRegistry();
|
|
692
|
+
searchRegistry.validateExpectedKinds(logger);
|
|
693
|
+
const searchQueryStore = new SqliteSearchQueryStore(
|
|
694
|
+
store,
|
|
695
|
+
searchRegistry,
|
|
696
|
+
logger,
|
|
697
|
+
);
|
|
698
|
+
const searchHandler = new SearchHandler(
|
|
699
|
+
searchQueryStore,
|
|
700
|
+
logger,
|
|
701
|
+
extensions.drivers.listReadScope,
|
|
702
|
+
);
|
|
703
|
+
// The activity recents feed (#14) — pure reads over listResources.
|
|
704
|
+
const activityHandler = new ActivityHandler(
|
|
705
|
+
store,
|
|
706
|
+
logger,
|
|
707
|
+
extensions.drivers.listReadScope,
|
|
708
|
+
);
|
|
709
|
+
// The environment runtime-resolution service (#5) — the decrypt-for-
|
|
710
|
+
// execution path the EC builder uses to resolve environment_refs (the
|
|
711
|
+
// RPC surface redacts secret values, oss#405).
|
|
712
|
+
const environmentResolution = new RuntimeResolutionService(
|
|
713
|
+
store,
|
|
714
|
+
secretService,
|
|
715
|
+
logger,
|
|
716
|
+
);
|
|
717
|
+
// The managed-environment lifecycle — OAuth token access for the EC
|
|
718
|
+
// builder's injection (server.go 732–735) plus the create/delete halves
|
|
719
|
+
// the connect/OAuth slice mints and tears environments with (#19).
|
|
720
|
+
// Rides the environment in-process client so encryption, validation,
|
|
721
|
+
// and audit ride the environment pipeline. ONE instance shared by
|
|
722
|
+
// agentexecution and mcpserver — Go builds two, both stateless over the
|
|
723
|
+
// same client, so sharing is behavior-identical.
|
|
724
|
+
const managedEnvService = new ManagedEnvironmentService(
|
|
725
|
+
{
|
|
726
|
+
getSecretValue: (input) =>
|
|
727
|
+
requireInProcess().executionEnvironmentReader.getSecretValue(input),
|
|
728
|
+
updateVariables: (request) =>
|
|
729
|
+
requireInProcess().executionEnvironmentReader.updateVariables(request),
|
|
730
|
+
create: (environment, caller) =>
|
|
731
|
+
requireInProcess().executionEnvironmentReader.create(
|
|
732
|
+
environment,
|
|
733
|
+
caller,
|
|
734
|
+
),
|
|
735
|
+
delete: (input) =>
|
|
736
|
+
requireInProcess().executionEnvironmentReader.delete(input),
|
|
737
|
+
},
|
|
738
|
+
logger,
|
|
739
|
+
);
|
|
740
|
+
// The mcpserver connect-engine provider — the same manager-backed
|
|
741
|
+
// request-time idiom as executionEngineState above; the connect lanes
|
|
742
|
+
// start the RUNNER's workflow, so no worker factory is added here.
|
|
743
|
+
const mcpServerEngineState = newMcpServerEngineStateProvider({
|
|
744
|
+
manager: temporalManager,
|
|
745
|
+
config: temporalConfig,
|
|
746
|
+
logger,
|
|
747
|
+
});
|
|
748
|
+
// WARN-degrade, not boot-fatal (Go server.go:722-729): every OAuth RPC
|
|
749
|
+
// except initiateOAuthConnect works without the redirect URI, and
|
|
750
|
+
// initiate refuses with the pinned FailedPrecondition copy.
|
|
751
|
+
if (config.oauthRedirectUri === "") {
|
|
752
|
+
logger.warn(
|
|
753
|
+
"STIGMER_OAUTH_REDIRECT_URI is not set — OAuth Connect flows for MCP servers are unavailable (initiateOAuthConnect will refuse)",
|
|
754
|
+
);
|
|
755
|
+
}
|
|
756
|
+
// The SAME `routes` function registers every service on BOTH the serving
|
|
757
|
+
// router and the in-process router transport (createInProcessClients).
|
|
758
|
+
// Handlers are stateless over the same store, so the two routers behave
|
|
759
|
+
// as one server — Go's single-server bufconn shape. Chain traversal on
|
|
760
|
+
// internal calls is the point (DD-002): an in-process apply/get is
|
|
761
|
+
// validated, logged, and kind-tagged exactly like an external one — the
|
|
762
|
+
// one deliberate difference is position 1 (O2): internal calls carry the
|
|
763
|
+
// internal caller class, wire calls the verifier chassis's identity.
|
|
764
|
+
//
|
|
765
|
+
// requireInProcess breaks the routes↔clients definition cycle: the lazy
|
|
766
|
+
// domain providers are only invoked at request time, after boot
|
|
767
|
+
// completes, so the throw is the composition-root loudness idiom — never
|
|
768
|
+
// expected to fire.
|
|
769
|
+
let inProcess: InProcessClients | undefined;
|
|
770
|
+
function requireInProcess(): InProcessClients {
|
|
771
|
+
if (inProcess === undefined) {
|
|
772
|
+
throw new Error("in-process clients not wired (boot ordering bug)");
|
|
773
|
+
}
|
|
774
|
+
return inProcess;
|
|
775
|
+
}
|
|
776
|
+
const routes = (router: ConnectRouter): void => {
|
|
777
|
+
registerHealthService(router, healthState);
|
|
778
|
+
// The O4 extension points ride the same explicit-deps pattern the
|
|
779
|
+
// authorizer established: the three slot-hosting domains receive the
|
|
780
|
+
// merged gateSteps; agentexecution additionally receives the
|
|
781
|
+
// status-transition hooks (both empty in the no-extension composition).
|
|
782
|
+
registerOrganizationServices(router, {
|
|
783
|
+
store,
|
|
784
|
+
logger,
|
|
785
|
+
authorizer,
|
|
786
|
+
gateSteps: extensions.gateSteps,
|
|
787
|
+
authorizationLifecycle,
|
|
788
|
+
organizationDirectory: extensions.drivers.organizationDirectory,
|
|
789
|
+
});
|
|
790
|
+
// ApiKey is the first domain born AFTER the Go port (O3, 20260827.06 —
|
|
791
|
+
// DD-003: the apikey contract is wholly OSS), so it has no Go
|
|
792
|
+
// registration order to mirror; it registers with the tenancy/IAM
|
|
793
|
+
// family at the top. The chassis's apikey VERIFIER shares this
|
|
794
|
+
// domain's lookup module — not the RPC (domain/apikey/lookup.ts).
|
|
795
|
+
registerApiKeyServices(router, {
|
|
796
|
+
store,
|
|
797
|
+
logger,
|
|
798
|
+
authorizer,
|
|
799
|
+
authorizationLifecycle,
|
|
800
|
+
listReadScope: extensions.drivers.listReadScope,
|
|
801
|
+
});
|
|
802
|
+
registerEnvironmentServices(router, {
|
|
803
|
+
store,
|
|
804
|
+
logger,
|
|
805
|
+
authorizer,
|
|
806
|
+
secretService,
|
|
807
|
+
authorizationLifecycle,
|
|
808
|
+
listReadScope: extensions.drivers.listReadScope,
|
|
809
|
+
});
|
|
810
|
+
// OAuthApp reuses the environment's SecretService instance — Go wires
|
|
811
|
+
// ONE encryption service for both (server.go 302–307).
|
|
812
|
+
registerOAuthAppServices(router, {
|
|
813
|
+
store,
|
|
814
|
+
secretService,
|
|
815
|
+
logger,
|
|
816
|
+
authorizer,
|
|
817
|
+
authorizationLifecycle,
|
|
818
|
+
});
|
|
819
|
+
registerExecutionContextServices(router, {
|
|
820
|
+
store,
|
|
821
|
+
logger,
|
|
822
|
+
authorizer,
|
|
823
|
+
secretService,
|
|
824
|
+
runnerAuthService: runnerCredentials,
|
|
825
|
+
authorizationLifecycle,
|
|
826
|
+
});
|
|
827
|
+
registerAgentServices(router, {
|
|
828
|
+
store,
|
|
829
|
+
logger,
|
|
830
|
+
authorizer,
|
|
831
|
+
authorizationLifecycle,
|
|
832
|
+
agentInstanceApplier: () => requireInProcess().agentInstanceApplier,
|
|
833
|
+
});
|
|
834
|
+
registerAgentInstanceServices(router, {
|
|
835
|
+
store,
|
|
836
|
+
logger,
|
|
837
|
+
authorizer,
|
|
838
|
+
authorizationLifecycle,
|
|
839
|
+
parentAgentLoader: () => requireInProcess().parentAgentLoader,
|
|
840
|
+
listReadScope: extensions.drivers.listReadScope,
|
|
841
|
+
});
|
|
842
|
+
registerSessionServices(router, {
|
|
843
|
+
store,
|
|
844
|
+
logger,
|
|
845
|
+
authorizer,
|
|
846
|
+
temporalConfig,
|
|
847
|
+
agentInstanceCreator: () => requireInProcess().agentInstanceCreator,
|
|
848
|
+
gateSteps: extensions.gateSteps,
|
|
849
|
+
sandboxLane,
|
|
850
|
+
authorizationLifecycle,
|
|
851
|
+
listReadScope: extensions.drivers.listReadScope,
|
|
852
|
+
});
|
|
853
|
+
// The sharing/channel family registers after the agent family, as in
|
|
854
|
+
// Go server.go (agent 378 → agentshare 384 → agentchannel 391 →
|
|
855
|
+
// channelmessage 399 → channelconversation 408 → channelapp 416).
|
|
856
|
+
// ChannelApp shares the ONE SecretService instance with Environment —
|
|
857
|
+
// one key, one enc:v1: format (Go wires the same pointer).
|
|
858
|
+
registerAgentShareServices(router, {
|
|
859
|
+
store,
|
|
860
|
+
logger,
|
|
861
|
+
authorizer,
|
|
862
|
+
authorizationLifecycle,
|
|
863
|
+
listReadScope: extensions.drivers.listReadScope,
|
|
864
|
+
});
|
|
865
|
+
registerAgentChannelServices(router, {
|
|
866
|
+
store,
|
|
867
|
+
logger,
|
|
868
|
+
authorizer,
|
|
869
|
+
authorizationLifecycle,
|
|
870
|
+
listReadScope: extensions.drivers.listReadScope,
|
|
871
|
+
// The SAME domain-owned registry instance the workflow validator
|
|
872
|
+
// and the registry lanes read — the channel model-pin rule
|
|
873
|
+
// (stigmer/stigmer#774) can never drift from the served pickers.
|
|
874
|
+
modelRegistry: modelCatalog,
|
|
875
|
+
// DD-004's serving seam (C3): undefined = the byte-pinned refusal
|
|
876
|
+
// posture; a composed runtime serves install + write/delete hooks.
|
|
877
|
+
channelRuntime: extensions.drivers.channelRuntime,
|
|
878
|
+
});
|
|
879
|
+
registerChannelMessageServices(router, extensions.drivers.channelRuntime);
|
|
880
|
+
registerChannelConversationServices(
|
|
881
|
+
router,
|
|
882
|
+
extensions.drivers.channelRuntime,
|
|
883
|
+
);
|
|
884
|
+
registerChannelAppServices(router, {
|
|
885
|
+
store,
|
|
886
|
+
logger,
|
|
887
|
+
authorizer,
|
|
888
|
+
secretService,
|
|
889
|
+
authorizationLifecycle,
|
|
890
|
+
});
|
|
891
|
+
// Schedule registers between channelapp and memory (Go server.go
|
|
892
|
+
// 417 → 426 → 436). The clock and runner ride constant providers —
|
|
893
|
+
// production wiring always has both (Go SetClock/SetRunner beside the
|
|
894
|
+
// manager); the provider SHAPE exists for embedded/test assemblies
|
|
895
|
+
// that skip Temporal wiring, where undefined degrades per DD-015 D-A.
|
|
896
|
+
registerScheduleServices(router, {
|
|
897
|
+
store,
|
|
898
|
+
logger,
|
|
899
|
+
authorizer,
|
|
900
|
+
modelRegistry: modelCatalog,
|
|
901
|
+
clock: () => scheduleSyncer,
|
|
902
|
+
runner: () => scheduleRunStarter,
|
|
903
|
+
authorizationLifecycle,
|
|
904
|
+
listReadScope: extensions.drivers.listReadScope,
|
|
905
|
+
});
|
|
906
|
+
registerMemoryServices(router, {
|
|
907
|
+
store,
|
|
908
|
+
logger,
|
|
909
|
+
authorizer,
|
|
910
|
+
authorizationLifecycle,
|
|
911
|
+
listReadScope: extensions.drivers.listReadScope,
|
|
912
|
+
runnerCredentialProvider: runnerCredentials,
|
|
913
|
+
});
|
|
914
|
+
registerAgentExecutionServices(router, {
|
|
915
|
+
store,
|
|
916
|
+
logger,
|
|
917
|
+
authorizer,
|
|
918
|
+
authorizationLifecycle,
|
|
919
|
+
listReadScope: extensions.drivers.listReadScope,
|
|
920
|
+
runnerCredentialProvider: runnerCredentials,
|
|
921
|
+
broker: agentExecutionStreamBroker,
|
|
922
|
+
engineState: executionEngineState,
|
|
923
|
+
modelRegistry: modelCatalog,
|
|
924
|
+
artifactStorage,
|
|
925
|
+
gateSteps: extensions.gateSteps,
|
|
926
|
+
statusObservers: extensions.statusObservers,
|
|
927
|
+
responseDecorators: extensions.responseDecorators,
|
|
928
|
+
sandboxLane,
|
|
929
|
+
temporalConfig,
|
|
930
|
+
agentLoader: () => requireInProcess().executionAgentLoader,
|
|
931
|
+
agentInstanceCreator: () =>
|
|
932
|
+
requireInProcess().executionAgentInstanceCreator,
|
|
933
|
+
sessionCreator: () => requireInProcess().executionSessionCreator,
|
|
934
|
+
executionContextBuilder: {
|
|
935
|
+
store,
|
|
936
|
+
logger,
|
|
937
|
+
agentLoader: () => requireInProcess().executionAgentLoader,
|
|
938
|
+
agentInstanceLoader: () =>
|
|
939
|
+
requireInProcess().executionAgentInstanceLoader,
|
|
940
|
+
sessionLoader: () => requireInProcess().executionSessionLoader,
|
|
941
|
+
environmentReader: () => requireInProcess().executionEnvironmentReader,
|
|
942
|
+
environmentResolution,
|
|
943
|
+
executionContextCreator: () =>
|
|
944
|
+
requireInProcess().executionContextCreator,
|
|
945
|
+
managedEnvService,
|
|
946
|
+
},
|
|
947
|
+
});
|
|
948
|
+
registerWorkflowServices(router, {
|
|
949
|
+
store,
|
|
950
|
+
logger,
|
|
951
|
+
authorizer,
|
|
952
|
+
authorizationLifecycle,
|
|
953
|
+
validator: workflowValidator,
|
|
954
|
+
workflowInstanceCreator: () => requireInProcess().workflowInstanceCreator,
|
|
955
|
+
});
|
|
956
|
+
registerWorkflowInstanceServices(router, {
|
|
957
|
+
store,
|
|
958
|
+
logger,
|
|
959
|
+
authorizer,
|
|
960
|
+
authorizationLifecycle,
|
|
961
|
+
parentWorkflowLoader: () => requireInProcess().parentWorkflowLoader,
|
|
962
|
+
listReadScope: extensions.drivers.listReadScope,
|
|
963
|
+
});
|
|
964
|
+
registerWorkflowExecutionServices(router, {
|
|
965
|
+
store,
|
|
966
|
+
logger,
|
|
967
|
+
authorizer,
|
|
968
|
+
authorizationLifecycle,
|
|
969
|
+
listReadScope: extensions.drivers.listReadScope,
|
|
970
|
+
gateSteps: extensions.gateSteps,
|
|
971
|
+
engineState: workflowExecutionEngineState,
|
|
972
|
+
broker: workflowExecutionStreamBroker,
|
|
973
|
+
sandboxLane,
|
|
974
|
+
temporalConfig: workflowExecutionTemporalConfig,
|
|
975
|
+
sandboxTerminalObserver: workflowSandboxTerminalObserver,
|
|
976
|
+
workflowInstanceCreator: () =>
|
|
977
|
+
requireInProcess().workflowExecutionInstanceCreator,
|
|
978
|
+
approvalForwarder: () =>
|
|
979
|
+
requireInProcess().workflowExecutionApprovalForwarder,
|
|
980
|
+
fileDecisionForwarder: () =>
|
|
981
|
+
requireInProcess().workflowExecutionFileDecisionForwarder,
|
|
982
|
+
executionContextBuilder: {
|
|
983
|
+
store,
|
|
984
|
+
logger,
|
|
985
|
+
workflowInstanceLoader: () =>
|
|
986
|
+
requireInProcess().workflowExecutionInstanceLoader,
|
|
987
|
+
environmentResolution,
|
|
988
|
+
executionContextCreator: () =>
|
|
989
|
+
requireInProcess().workflowExecutionContextCreator,
|
|
990
|
+
},
|
|
991
|
+
});
|
|
992
|
+
// The whole surface: the CRUD slice (D4 #9) plus the connect/OAuth
|
|
993
|
+
// slice (D4 #19). All connect deps are wired unconditionally per the
|
|
994
|
+
// composition-root idiom — engine availability is the modeled state
|
|
995
|
+
// the provider answers at request time, and the managed-env service
|
|
996
|
+
// has no Temporal dependency (DB-1, sub-project 20260825.02).
|
|
997
|
+
registerMcpServerServices(router, {
|
|
998
|
+
store,
|
|
999
|
+
logger,
|
|
1000
|
+
authorizer,
|
|
1001
|
+
authorizationLifecycle,
|
|
1002
|
+
connect: {
|
|
1003
|
+
store,
|
|
1004
|
+
logger,
|
|
1005
|
+
authorizer,
|
|
1006
|
+
engineState: mcpServerEngineState,
|
|
1007
|
+
environmentReader: {
|
|
1008
|
+
list: (request) =>
|
|
1009
|
+
requireInProcess().executionEnvironmentReader.list(request),
|
|
1010
|
+
getSecretValue: (input) =>
|
|
1011
|
+
requireInProcess().executionEnvironmentReader.getSecretValue(input),
|
|
1012
|
+
},
|
|
1013
|
+
executionContext: {
|
|
1014
|
+
create: (ec) =>
|
|
1015
|
+
requireInProcess().connectExecutionContextClient.create(ec),
|
|
1016
|
+
delete: (input) =>
|
|
1017
|
+
requireInProcess().connectExecutionContextClient.delete(input),
|
|
1018
|
+
},
|
|
1019
|
+
runnerAuth: runnerCredentials,
|
|
1020
|
+
managedEnv: managedEnvService,
|
|
1021
|
+
// The SAME grant-store instance agentexecution's session-time
|
|
1022
|
+
// token injection reads (Go server.go:732-735 shares it too).
|
|
1023
|
+
oauthGrants: store.oauthGrants,
|
|
1024
|
+
pendingOAuthStates: store.pendingOAuthStates,
|
|
1025
|
+
secretService,
|
|
1026
|
+
oauthRedirectUri: config.oauthRedirectUri,
|
|
1027
|
+
},
|
|
1028
|
+
});
|
|
1029
|
+
registerSkillServices(router, {
|
|
1030
|
+
store,
|
|
1031
|
+
logger,
|
|
1032
|
+
authorizer,
|
|
1033
|
+
authorizationLifecycle,
|
|
1034
|
+
artifactStorage: skillArtifactStorage,
|
|
1035
|
+
// The agentexecution blob store (server.go:362-363) — read side of
|
|
1036
|
+
// pushFromExecutionArtifact.
|
|
1037
|
+
executionArtifactStorage: artifactStorage,
|
|
1038
|
+
transferLane: {
|
|
1039
|
+
slots: skillUploadSlots,
|
|
1040
|
+
baseUrl: config.skillTransferBaseUrl,
|
|
1041
|
+
},
|
|
1042
|
+
});
|
|
1043
|
+
// Artifact CRUD shares the ONE blob store with agentexecution's
|
|
1044
|
+
// attachment lanes (Go server.go 347–374).
|
|
1045
|
+
registerArtifactServices(router, {
|
|
1046
|
+
store,
|
|
1047
|
+
artifactStorage,
|
|
1048
|
+
logger,
|
|
1049
|
+
authorizer,
|
|
1050
|
+
});
|
|
1051
|
+
// Project registers after all four reconciled kinds (agent, workflow,
|
|
1052
|
+
// mcpserver, skill) — the last Class A domain. The lazy deleter
|
|
1053
|
+
// provider replaces Go's SetReconciliationService late-bind
|
|
1054
|
+
// (server.go 478 registration + 635–648 injection): orphan deletes
|
|
1055
|
+
// route through the in-process command clients' FULL pipelines.
|
|
1056
|
+
registerProjectServices(router, {
|
|
1057
|
+
store,
|
|
1058
|
+
logger,
|
|
1059
|
+
authorizer,
|
|
1060
|
+
authorizationLifecycle,
|
|
1061
|
+
orphanDeleter: () => requireInProcess().projectOrphanDeleter,
|
|
1062
|
+
});
|
|
1063
|
+
// The two CQRS query services register between the domains and the
|
|
1064
|
+
// github/platform tail, mirroring Go's registration order
|
|
1065
|
+
// (server.go: project 478 → organization 487 → search 493 →
|
|
1066
|
+
// activity 513 → github 524 → platform 530).
|
|
1067
|
+
registerSearchServices(router, { handler: searchHandler, logger });
|
|
1068
|
+
registerActivityServices(router, { handler: activityHandler, logger });
|
|
1069
|
+
// GitHub broker: config-only, no store (Go server.go 524–528).
|
|
1070
|
+
registerGitHubServices(router, {
|
|
1071
|
+
clientId: config.gitHubOAuthClientId,
|
|
1072
|
+
clientSecret: config.gitHubOAuthClientSecret,
|
|
1073
|
+
logger,
|
|
1074
|
+
fetchImpl: options.fetchImpl,
|
|
1075
|
+
});
|
|
1076
|
+
// Platform registers LAST of all controllers (Go server.go 530–535).
|
|
1077
|
+
registerPlatformServices(router, {
|
|
1078
|
+
temporalHostPort: config.temporalHostPort,
|
|
1079
|
+
temporalNamespace: config.temporalNamespace,
|
|
1080
|
+
runnerAuthService: runnerCredentials,
|
|
1081
|
+
edition: extensions.edition,
|
|
1082
|
+
logger,
|
|
1083
|
+
});
|
|
1084
|
+
// Extension services register after the whole OSS set, inside the ONE
|
|
1085
|
+
// routes closure — so the serving router AND the in-process transport
|
|
1086
|
+
// see them by construction (blueprint §2a; DD-002's parity doctrine
|
|
1087
|
+
// extends to extension services unchanged).
|
|
1088
|
+
for (const registerExtensionServices of extensions.services) {
|
|
1089
|
+
registerExtensionServices(router);
|
|
1090
|
+
}
|
|
1091
|
+
};
|
|
1092
|
+
const inProcessWiring = createInProcessClients(routes, logger);
|
|
1093
|
+
inProcess = inProcessWiring.clients;
|
|
1094
|
+
|
|
1095
|
+
// The require-authentication posture has two sources OR'd here: the
|
|
1096
|
+
// OSS OIDC issuer (O3 rulings Q1+Q2) and a composed unit's declaration
|
|
1097
|
+
// (registry point, entry 20260904.02). Neither source = the OSS
|
|
1098
|
+
// trusted-local posture, byte-identical wire behavior.
|
|
1099
|
+
const authEnabled = config.oidcIssuer !== "";
|
|
1100
|
+
const requireAuthentication =
|
|
1101
|
+
authEnabled || extensions.requireAuthentication !== undefined;
|
|
1102
|
+
// What the posture registers, in Java's ProviderManager order (opaque
|
|
1103
|
+
// keys first — the cheapest claim — then the JWT lanes), ahead of the
|
|
1104
|
+
// extension entries ("OSS entries first", the registry contract):
|
|
1105
|
+
// - the API-key verifier rides the POSTURE, not the issuer
|
|
1106
|
+
// (stigmer#984): the apikey domain is open-source tier and mints
|
|
1107
|
+
// `stk_` keys in every composition, so any composition with an
|
|
1108
|
+
// authentication posture must honor the keys it issues. Gating it on
|
|
1109
|
+
// the issuer left a posture-declaring composition minting keys
|
|
1110
|
+
// nothing verified.
|
|
1111
|
+
// - the OIDC verifier rides the ISSUER alone: it resolves callers to
|
|
1112
|
+
// the token's `sub`, which is the wrong principal for a composition
|
|
1113
|
+
// whose own lanes resolve users to their account ids — that is why a
|
|
1114
|
+
// declared posture never borrows the issuer knob.
|
|
1115
|
+
// The runner's credential in either posture is an operator-minted API
|
|
1116
|
+
// token via STIGMER_TOKEN (O3 ruling Q3) — no runner-specific verifier.
|
|
1117
|
+
const identityVerifiers = [
|
|
1118
|
+
...(requireAuthentication ? [newApiKeyIdentityVerifier(store)] : []),
|
|
1119
|
+
...(authEnabled
|
|
1120
|
+
? [
|
|
1121
|
+
newOidcIdentityVerifier({
|
|
1122
|
+
issuer: config.oidcIssuer,
|
|
1123
|
+
audience: config.oidcAudience,
|
|
1124
|
+
}),
|
|
1125
|
+
]
|
|
1126
|
+
: []),
|
|
1127
|
+
...extensions.identityVerifiers,
|
|
1128
|
+
];
|
|
1129
|
+
// A declared posture whose unit registers no verifier OF ITS OWN is a
|
|
1130
|
+
// boot fault, not a running server. The API-key lane alone cannot admit
|
|
1131
|
+
// the first caller — minting a key requires an authenticated caller, so
|
|
1132
|
+
// an apikey-only chain locks everyone out forever (O3 ruling Q1's
|
|
1133
|
+
// first-key bootstrap problem, which is why apikey-only mode was
|
|
1134
|
+
// deferred). The same class as a misconfigured registry (DD-006 §2b),
|
|
1135
|
+
// caught before any side effect.
|
|
1136
|
+
if (
|
|
1137
|
+
extensions.requireAuthentication !== undefined &&
|
|
1138
|
+
extensions.identityVerifiers.length === 0
|
|
1139
|
+
) {
|
|
1140
|
+
throw new Error(
|
|
1141
|
+
`extension '${extensions.requireAuthentication.declaredBy}' declares the require-authentication posture, but registers no identity verifier of its own — the OSS API-key lane alone cannot admit the first caller (nobody could mint a key), so every non-public request would be refused; register a verifier or omit the declaration`,
|
|
1142
|
+
);
|
|
1143
|
+
}
|
|
1144
|
+
const postureSources = [
|
|
1145
|
+
...(authEnabled ? ["oidc-issuer"] : []),
|
|
1146
|
+
...(extensions.requireAuthentication !== undefined
|
|
1147
|
+
? [`extension '${extensions.requireAuthentication.declaredBy}'`]
|
|
1148
|
+
: []),
|
|
1149
|
+
];
|
|
1150
|
+
logger.info("authentication posture resolved", {
|
|
1151
|
+
posture: requireAuthentication ? "required" : "trusted-local",
|
|
1152
|
+
source: postureSources.length > 0 ? postureSources.join(" + ") : "none",
|
|
1153
|
+
verifiers: identityVerifiers.map((v) => v.name).join(", "),
|
|
1154
|
+
});
|
|
1155
|
+
|
|
1156
|
+
const server = createUnifiedPortServer({
|
|
1157
|
+
logger,
|
|
1158
|
+
routes,
|
|
1159
|
+
// The serving chain's position-1 identity source is the verifier
|
|
1160
|
+
// chassis over the composed verifiers (O2; zero verifiers and no
|
|
1161
|
+
// declared posture = trusted-local, byte-identical wire behavior)
|
|
1162
|
+
// under the resolved require-authentication posture (issuer OR unit
|
|
1163
|
+
// declaration, above), followed by the composed caller guards
|
|
1164
|
+
// (20260902.02; zero guards = today's behavior). The in-process
|
|
1165
|
+
// transport above carries its own
|
|
1166
|
+
// position-1 source — the internal caller class only it can mint
|
|
1167
|
+
// (ruling Q4), and NO guards: the in-process exemption is structural
|
|
1168
|
+
// (caller-guards.ts). The serving-only pair: position 0 is the error
|
|
1169
|
+
// boundary (20260830.03) — the raw-error conversion net plus the
|
|
1170
|
+
// composed visitor sanitizer — and the request-metrics emitter sits
|
|
1171
|
+
// just inside the identity source (20260909.02, Java's position). Both
|
|
1172
|
+
// are SERVING chain only, so in-process hops keep full diagnostics
|
|
1173
|
+
// and are never counted as requests, by construction.
|
|
1174
|
+
interceptors: buildInterceptorChain(
|
|
1175
|
+
logger,
|
|
1176
|
+
createVerifierChainInterceptor(
|
|
1177
|
+
identityVerifiers,
|
|
1178
|
+
extensions.callerGuards,
|
|
1179
|
+
logger,
|
|
1180
|
+
requireAuthentication,
|
|
1181
|
+
),
|
|
1182
|
+
{
|
|
1183
|
+
errorBoundary: createErrorBoundaryInterceptor(
|
|
1184
|
+
logger,
|
|
1185
|
+
extensions.drivers.visitorErrorPolicy,
|
|
1186
|
+
),
|
|
1187
|
+
requestMetrics: createRequestMetricsInterceptor(),
|
|
1188
|
+
},
|
|
1189
|
+
),
|
|
1190
|
+
taskKindRegistryLane: registryLanes.taskKindRegistryLane,
|
|
1191
|
+
modelRegistryLane: registryLanes.modelRegistryLane,
|
|
1192
|
+
skillTransferLane,
|
|
1193
|
+
consoleLane,
|
|
1194
|
+
});
|
|
1195
|
+
|
|
1196
|
+
return {
|
|
1197
|
+
healthState,
|
|
1198
|
+
store,
|
|
1199
|
+
secrets: secretService,
|
|
1200
|
+
temporalManager,
|
|
1201
|
+
runnerAuthService,
|
|
1202
|
+
agentExecutionStreamBroker,
|
|
1203
|
+
workflowExecutionStreamBroker,
|
|
1204
|
+
inProcessTransport: inProcessWiring.transport,
|
|
1205
|
+
identityVerifiers,
|
|
1206
|
+
|
|
1207
|
+
async start(): Promise<number> {
|
|
1208
|
+
// Temporal boot is NON-fatal end to end (Go server.go): a failed
|
|
1209
|
+
// initial connect leaves the engine unavailable and the monitor
|
|
1210
|
+
// retrying; a failed worker start is a warning. Health below flips
|
|
1211
|
+
// SERVING regardless — engine availability is modeled in the
|
|
1212
|
+
// agentexecution domain, never in gRPC health.
|
|
1213
|
+
const connected = await temporalManager.initialConnect();
|
|
1214
|
+
if (connected) {
|
|
1215
|
+
await temporalManager.startWorkers();
|
|
1216
|
+
}
|
|
1217
|
+
temporalManager.startHealthMonitor();
|
|
1218
|
+
// Schedule reconciliation: an immediate boot pass (the dev server may
|
|
1219
|
+
// have restarted with empty state while the daemon was down), the
|
|
1220
|
+
// periodic loop, and the reconnect kick — Go server.go 763–764.
|
|
1221
|
+
const kickScheduleReconcile = scheduleReconciler.startReconciliation();
|
|
1222
|
+
temporalManager.addReconnectHook(kickScheduleReconcile);
|
|
1223
|
+
// Artifact storage must be reachable and writable before the server
|
|
1224
|
+
// answers (Go server.go boots-fatal on the same probe).
|
|
1225
|
+
await artifactStorage.health();
|
|
1226
|
+
// Rebuild the search index before the port binds (Go
|
|
1227
|
+
// server.go:617): the index is separate from the resources table,
|
|
1228
|
+
// and rebuilding here makes every resource — including seedpack
|
|
1229
|
+
// rows bootstrapped into an earlier database — discoverable the
|
|
1230
|
+
// moment the server accepts connections. Warn-only: a partial
|
|
1231
|
+
// rebuild degrades search, never boot.
|
|
1232
|
+
try {
|
|
1233
|
+
const indexed = await searchQueryStore.rebuildIndex();
|
|
1234
|
+
logger.info("Search index rebuilt at startup", { indexed });
|
|
1235
|
+
} catch (error) {
|
|
1236
|
+
logger.warn("Failed to rebuild search index at startup", {
|
|
1237
|
+
error: error instanceof Error ? error.message : String(error),
|
|
1238
|
+
});
|
|
1239
|
+
}
|
|
1240
|
+
// The request counter is born at zero before the port binds (Java's
|
|
1241
|
+
// constructor add(0); the heartbeat's premise), and the boot says
|
|
1242
|
+
// whether anything will export it: the emitter is library
|
|
1243
|
+
// instrumentation on @opentelemetry/api, so "exporting" is the
|
|
1244
|
+
// host's meter provider (the cloud composition's bootstrap) and
|
|
1245
|
+
// "inert" is the OSS default until an export bootstrap exists —
|
|
1246
|
+
// two states an operator must be able to tell apart in the log.
|
|
1247
|
+
await initRpcMetrics();
|
|
1248
|
+
logger.info("request metrics", {
|
|
1249
|
+
posture: await metricsExportPosture(),
|
|
1250
|
+
instruments:
|
|
1251
|
+
"stigmer.grpc.request.count, stigmer.grpc.request.duration",
|
|
1252
|
+
});
|
|
1253
|
+
// Wiring complete → SERVING → background refresh → bind. The port
|
|
1254
|
+
// must be the LAST observable effect (serverGate contract).
|
|
1255
|
+
healthState.setOverall(ServingStatus.SERVING);
|
|
1256
|
+
// Undefined when an extension provider substituted the catalog —
|
|
1257
|
+
// that implementation owns its own freshness.
|
|
1258
|
+
ossModelRegistryStore?.startRefresh();
|
|
1259
|
+
const port = await server.listen(
|
|
1260
|
+
options.portOverride ?? config.grpcPort,
|
|
1261
|
+
options.host,
|
|
1262
|
+
);
|
|
1263
|
+
logger.info("stigmer-server listening", { port });
|
|
1264
|
+
// The artifact file server binds AFTER the main server, exactly Go's
|
|
1265
|
+
// boot order; a bind failure is logged but NOT fatal (Go's
|
|
1266
|
+
// ListenAndServe goroutine logs and dies while the server runs on).
|
|
1267
|
+
if (artifactFileServer !== undefined) {
|
|
1268
|
+
await warnOnLegacyArtifactLayout(config.artifactLocalBasePath, logger);
|
|
1269
|
+
try {
|
|
1270
|
+
await artifactFileServer.listen(
|
|
1271
|
+
config.artifactHttpPort,
|
|
1272
|
+
config.artifactHttpHost,
|
|
1273
|
+
);
|
|
1274
|
+
} catch (error) {
|
|
1275
|
+
logger.error("Artifact HTTP file server failed", {
|
|
1276
|
+
error: error instanceof Error ? error.message : String(error),
|
|
1277
|
+
});
|
|
1278
|
+
}
|
|
1279
|
+
}
|
|
1280
|
+
return port;
|
|
1281
|
+
},
|
|
1282
|
+
|
|
1283
|
+
async shutdown(): Promise<void> {
|
|
1284
|
+
healthState.setOverall(ServingStatus.NOT_SERVING);
|
|
1285
|
+
ossModelRegistryStore?.stopRefresh();
|
|
1286
|
+
await artifactFileServer?.shutdown();
|
|
1287
|
+
// The reconciler stops before the manager: a pass mid-flight may
|
|
1288
|
+
// still call through the manager's client, and nothing may fire
|
|
1289
|
+
// after shutdown (the #18 close-race lesson).
|
|
1290
|
+
await scheduleReconciler.stop();
|
|
1291
|
+
// Workers stop before the transport drains: an in-flight activity
|
|
1292
|
+
// may still write through the store, which closes LAST.
|
|
1293
|
+
await temporalManager.close();
|
|
1294
|
+
await server.shutdown();
|
|
1295
|
+
// The store closes LAST: in-flight handlers drained above may still
|
|
1296
|
+
// be mid-write (Go closes the store after grpcServer.Stop too).
|
|
1297
|
+
await store.close();
|
|
1298
|
+
logger.info("stigmer-server stopped");
|
|
1299
|
+
},
|
|
1300
|
+
};
|
|
1301
|
+
}
|