@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,154 @@
|
|
|
1
|
+
import { create, fromBinary } from "@bufbuild/protobuf";
|
|
2
|
+
import { ApiResourceKind } from "@stigmer/protos/ai/stigmer/commons/apiresource/apiresourcekind/api_resource_kind_pb";
|
|
3
|
+
import { ApiKeySchema } from "@stigmer/protos/ai/stigmer/iam/apikey/v1/api_pb";
|
|
4
|
+
import { ApiKeyCommandController } from "@stigmer/protos/ai/stigmer/iam/apikey/v1/command_pb";
|
|
5
|
+
import { ApiKeyQueryController } from "@stigmer/protos/ai/stigmer/iam/apikey/v1/query_pb";
|
|
6
|
+
import { ApiKeysSchema } from "@stigmer/protos/ai/stigmer/iam/apikey/v1/io_pb";
|
|
7
|
+
import { restrictListByReadScope } from "../../extensions/list-read-scope.js";
|
|
8
|
+
import { internalError } from "../../pipeline/errors.js";
|
|
9
|
+
import { apiResourceKindKey } from "../../pipeline/interceptors/apiresource.js";
|
|
10
|
+
import { callerIdentityOf } from "../../pipeline/interceptors/auth.js";
|
|
11
|
+
import { newPipeline } from "../../pipeline/pipeline.js";
|
|
12
|
+
import { RequestContext } from "../../pipeline/request-context.js";
|
|
13
|
+
import { newAuthorizeStep } from "../../pipeline/steps/authorize.js";
|
|
14
|
+
import { newGuardReservedLabelsStep } from "../../pipeline/steps/guard-reserved-labels.js";
|
|
15
|
+
import { newBuildUpdateStateStep } from "../../pipeline/steps/build-update-state.js";
|
|
16
|
+
import { newBuildNewStateStep } from "../../pipeline/steps/defaults.js";
|
|
17
|
+
import { newDeleteResourceStep, newExtractResourceIdStep, newLoadExistingForDeleteStep, } from "../../pipeline/steps/delete.js";
|
|
18
|
+
import { newCheckDuplicateStep } from "../../pipeline/steps/duplicate.js";
|
|
19
|
+
import { EXISTING_RESOURCE_KEY, newLoadExistingStep, } from "../../pipeline/steps/load-existing.js";
|
|
20
|
+
import { TARGET_RESOURCE_KEY, newLoadTargetStep, } from "../../pipeline/steps/load-target.js";
|
|
21
|
+
import { newCleanupIamPoliciesStep, newCreateAuthorizationTuplesStep, } from "../../pipeline/steps/authorization-tuples.js";
|
|
22
|
+
import { newPersistStep } from "../../pipeline/steps/persist.js";
|
|
23
|
+
import { newResolveSlugStep } from "../../pipeline/steps/slug.js";
|
|
24
|
+
import { newValidateVisibilityStep } from "../../pipeline/steps/validate-visibility.js";
|
|
25
|
+
import { newValidateProtoStep } from "../../pipeline/steps/validation.js";
|
|
26
|
+
import { newGenerateApiKeyStep, newLoadByKeyHashStep, newPreserveKeyMaterialStep, newReplaceHashWithPlainTextStep, } from "./steps.js";
|
|
27
|
+
/** Registers both apikey services on the router (routes stage). */
|
|
28
|
+
export function registerApiKeyServices(router, deps) {
|
|
29
|
+
router.service(ApiKeyCommandController, {
|
|
30
|
+
create: (apiKey, ctx) => createApiKey(deps, apiKey, ctx),
|
|
31
|
+
update: (apiKey, ctx) => update(deps, apiKey, ctx),
|
|
32
|
+
delete: (apiKeyId, ctx) => deleteApiKey(deps, apiKeyId, ctx),
|
|
33
|
+
});
|
|
34
|
+
router.service(ApiKeyQueryController, {
|
|
35
|
+
get: (apiKeyId, ctx) => get(deps, apiKeyId, ctx),
|
|
36
|
+
getByKeyHash: (apiKeyHash, ctx) => getByKeyHash(deps, apiKeyHash, ctx),
|
|
37
|
+
findAll: (empty, ctx) => findAll(deps, empty, ctx),
|
|
38
|
+
});
|
|
39
|
+
}
|
|
40
|
+
function kindOf(ctx) {
|
|
41
|
+
return ctx.values.get(apiResourceKindKey);
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* Create — the Java ApiKeyCreateHandler chain: the canonical create steps,
|
|
45
|
+
* GenerateApiKey after BuildNewState, ReplaceHashWithPlainText after
|
|
46
|
+
* Persist (the response's one plaintext look; the store keeps the hash).
|
|
47
|
+
*/
|
|
48
|
+
async function createApiKey(deps, apiKey, ctx) {
|
|
49
|
+
const reqCtx = new RequestContext(ApiKeySchema, apiKey, callerIdentityOf(ctx), kindOf(ctx));
|
|
50
|
+
await newPipeline("apikey-create", deps.logger)
|
|
51
|
+
.addStep(newAuthorizeStep(ApiKeyCommandController.method.create, deps.authorizer))
|
|
52
|
+
.addStep(newValidateProtoStep())
|
|
53
|
+
.addStep(newValidateVisibilityStep())
|
|
54
|
+
.addStep(newResolveSlugStep())
|
|
55
|
+
.addStep(newCheckDuplicateStep(deps.store))
|
|
56
|
+
.addStep(newBuildNewStateStep())
|
|
57
|
+
.addStep(newGuardReservedLabelsStep(deps.authorizer))
|
|
58
|
+
.addStep(newGenerateApiKeyStep())
|
|
59
|
+
.addStep(newPersistStep(deps.store))
|
|
60
|
+
.addStep(newCreateAuthorizationTuplesStep(deps.authorizationLifecycle, deps.logger))
|
|
61
|
+
.addStep(newReplaceHashWithPlainTextStep())
|
|
62
|
+
.build()
|
|
63
|
+
.execute(reqCtx);
|
|
64
|
+
return reqCtx.newState;
|
|
65
|
+
}
|
|
66
|
+
/**
|
|
67
|
+
* Update — the canonical update chain plus PreserveKeyMaterial (ruling
|
|
68
|
+
* Q9): expiry fields are the only client-mutable spec surface.
|
|
69
|
+
*/
|
|
70
|
+
async function update(deps, apiKey, ctx) {
|
|
71
|
+
const reqCtx = new RequestContext(ApiKeySchema, apiKey, callerIdentityOf(ctx), kindOf(ctx));
|
|
72
|
+
await newPipeline("apikey-update", deps.logger)
|
|
73
|
+
.addStep(newAuthorizeStep(ApiKeyCommandController.method.update, deps.authorizer))
|
|
74
|
+
.addStep(newValidateProtoStep())
|
|
75
|
+
.addStep(newResolveSlugStep())
|
|
76
|
+
.addStep(newLoadExistingStep(deps.store))
|
|
77
|
+
.addStep(newBuildUpdateStateStep())
|
|
78
|
+
.addStep(newPreserveKeyMaterialStep())
|
|
79
|
+
.addStep(newPersistStep(deps.store))
|
|
80
|
+
.build()
|
|
81
|
+
.execute(reqCtx);
|
|
82
|
+
return reqCtx.newState;
|
|
83
|
+
}
|
|
84
|
+
/** Delete — returns the pre-delete resource (the canonical delete chain). */
|
|
85
|
+
async function deleteApiKey(deps, apiKeyId, ctx) {
|
|
86
|
+
const reqCtx = new RequestContext(ApiKeyCommandController.method.delete.input, apiKeyId, callerIdentityOf(ctx), kindOf(ctx));
|
|
87
|
+
await newPipeline("apikey-delete", deps.logger)
|
|
88
|
+
.addStep(newAuthorizeStep(ApiKeyCommandController.method.delete, deps.authorizer))
|
|
89
|
+
.addStep(newValidateProtoStep())
|
|
90
|
+
.addStep(newExtractResourceIdStep())
|
|
91
|
+
.addStep(newLoadExistingForDeleteStep(deps.store, ApiKeySchema))
|
|
92
|
+
.addStep(newDeleteResourceStep(deps.store))
|
|
93
|
+
.addStep(newCleanupIamPoliciesStep(deps.authorizationLifecycle, deps.logger))
|
|
94
|
+
.build()
|
|
95
|
+
.execute(reqCtx);
|
|
96
|
+
const deleted = reqCtx.get(EXISTING_RESOURCE_KEY);
|
|
97
|
+
if (deleted === undefined) {
|
|
98
|
+
throw internalError(new Error("delete pipeline completed without a loaded resource"), "deleted api key not found in context");
|
|
99
|
+
}
|
|
100
|
+
return deleted;
|
|
101
|
+
}
|
|
102
|
+
/** Get — LoadTarget by id; NotFound when absent. */
|
|
103
|
+
async function get(deps, apiKeyId, ctx) {
|
|
104
|
+
const reqCtx = new RequestContext(ApiKeyQueryController.method.get.input, apiKeyId, callerIdentityOf(ctx), kindOf(ctx));
|
|
105
|
+
await newPipeline("apikey-get", deps.logger)
|
|
106
|
+
.addStep(newAuthorizeStep(ApiKeyQueryController.method.get, deps.authorizer))
|
|
107
|
+
.addStep(newValidateProtoStep())
|
|
108
|
+
.addStep(newLoadTargetStep(deps.store, ApiKeySchema))
|
|
109
|
+
.build()
|
|
110
|
+
.execute(reqCtx);
|
|
111
|
+
return reqCtx.get(TARGET_RESOURCE_KEY);
|
|
112
|
+
}
|
|
113
|
+
/**
|
|
114
|
+
* GetByKeyHash — the verifier-facing lookup, also served on the wire
|
|
115
|
+
* (Java ApiKeyGetByKeyHashHandler; the cloud gates it behind a
|
|
116
|
+
* platform-admin FGA check inside the handler — OSS's permissive
|
|
117
|
+
* single-team posture serves it openly, ruling Q5).
|
|
118
|
+
*/
|
|
119
|
+
async function getByKeyHash(deps, apiKeyHash, ctx) {
|
|
120
|
+
const reqCtx = new RequestContext(ApiKeyQueryController.method.getByKeyHash.input, apiKeyHash, callerIdentityOf(ctx), kindOf(ctx));
|
|
121
|
+
await newPipeline("apikey-get-by-key-hash", deps.logger)
|
|
122
|
+
.addStep(newAuthorizeStep(ApiKeyQueryController.method.getByKeyHash, deps.authorizer))
|
|
123
|
+
.addStep(newValidateProtoStep())
|
|
124
|
+
.addStep(newLoadByKeyHashStep(deps.store))
|
|
125
|
+
.build()
|
|
126
|
+
.execute(reqCtx);
|
|
127
|
+
return reqCtx.get(TARGET_RESOURCE_KEY);
|
|
128
|
+
}
|
|
129
|
+
/**
|
|
130
|
+
* FindAll — every stored key under the scope-less single-team posture
|
|
131
|
+
* (ruling Q5); with a composed ListReadScope (20260830.01, census lane
|
|
132
|
+
* 9) the list narrows to the caller's can_view keys — the Java
|
|
133
|
+
* ApiKeyFindAllHandler baseline (no guest arm, no org intersection).
|
|
134
|
+
* Stored hashes ride the response exactly as the cloud's do — the
|
|
135
|
+
* plaintext exists nowhere.
|
|
136
|
+
*/
|
|
137
|
+
async function findAll(deps, empty, ctx) {
|
|
138
|
+
const identity = callerIdentityOf(ctx);
|
|
139
|
+
const reqCtx = new RequestContext(ApiKeyQueryController.method.findAll.input, empty, identity, kindOf(ctx));
|
|
140
|
+
await newPipeline("apikey-find-all", deps.logger)
|
|
141
|
+
.addStep(newAuthorizeStep(ApiKeyQueryController.method.findAll, deps.authorizer))
|
|
142
|
+
.build()
|
|
143
|
+
.execute(reqCtx);
|
|
144
|
+
let rows;
|
|
145
|
+
try {
|
|
146
|
+
rows = await deps.store.listResources(ApiResourceKind.api_key);
|
|
147
|
+
}
|
|
148
|
+
catch (error) {
|
|
149
|
+
throw internalError(error, "failed to list api keys");
|
|
150
|
+
}
|
|
151
|
+
const entries = await restrictListByReadScope(deps.listReadScope, identity, ApiResourceKind.api_key, rows.map((row) => fromBinary(ApiKeySchema, row)), "");
|
|
152
|
+
return create(ApiKeysSchema, { entries });
|
|
153
|
+
}
|
|
154
|
+
//# sourceMappingURL=controller.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"controller.js","sourceRoot":"","sources":["../../../src/domain/apikey/controller.ts"],"names":[],"mappings":"AAyBA,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAGxD,OAAO,EAAE,eAAe,EAAE,MAAM,qFAAqF,CAAC;AACtH,OAAO,EAAE,YAAY,EAAE,MAAM,iDAAiD,CAAC;AAE/E,OAAO,EAAE,uBAAuB,EAAE,MAAM,qDAAqD,CAAC;AAC9F,OAAO,EAAE,qBAAqB,EAAE,MAAM,mDAAmD,CAAC;AAC1F,OAAO,EAAE,aAAa,EAAE,MAAM,gDAAgD,CAAC;AAU/E,OAAO,EAAE,uBAAuB,EAAE,MAAM,qCAAqC,CAAC;AAE9E,OAAO,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAC;AACzD,OAAO,EAAE,kBAAkB,EAAE,MAAM,4CAA4C,CAAC;AAChF,OAAO,EAAE,gBAAgB,EAAE,MAAM,qCAAqC,CAAC;AACvE,OAAO,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAC;AACzD,OAAO,EAAE,cAAc,EAAE,MAAM,mCAAmC,CAAC;AACnE,OAAO,EAAE,gBAAgB,EAAE,MAAM,mCAAmC,CAAC;AACrE,OAAO,EAAE,0BAA0B,EAAE,MAAM,+CAA+C,CAAC;AAC3F,OAAO,EAAE,uBAAuB,EAAE,MAAM,4CAA4C,CAAC;AACrF,OAAO,EAAE,oBAAoB,EAAE,MAAM,kCAAkC,CAAC;AACxE,OAAO,EACL,qBAAqB,EACrB,wBAAwB,EACxB,4BAA4B,GAC7B,MAAM,gCAAgC,CAAC;AACxC,OAAO,EAAE,qBAAqB,EAAE,MAAM,mCAAmC,CAAC;AAC1E,OAAO,EACL,qBAAqB,EACrB,mBAAmB,GACpB,MAAM,uCAAuC,CAAC;AAC/C,OAAO,EACL,mBAAmB,EACnB,iBAAiB,GAClB,MAAM,qCAAqC,CAAC;AAC7C,OAAO,EACL,yBAAyB,EACzB,gCAAgC,GACjC,MAAM,8CAA8C,CAAC;AACtD,OAAO,EAAE,cAAc,EAAE,MAAM,iCAAiC,CAAC;AACjE,OAAO,EAAE,kBAAkB,EAAE,MAAM,8BAA8B,CAAC;AAClE,OAAO,EAAE,yBAAyB,EAAE,MAAM,6CAA6C,CAAC;AACxF,OAAO,EAAE,oBAAoB,EAAE,MAAM,oCAAoC,CAAC;AAE1E,OAAO,EACL,qBAAqB,EACrB,oBAAoB,EACpB,0BAA0B,EAC1B,+BAA+B,GAChC,MAAM,YAAY,CAAC;AAapB,mEAAmE;AACnE,MAAM,UAAU,sBAAsB,CACpC,MAAqB,EACrB,IAA0B;IAE1B,MAAM,CAAC,OAAO,CAAC,uBAAuB,EAAE;QACtC,MAAM,EAAE,CAAC,MAAM,EAAE,GAAG,EAAE,EAAE,CAAC,YAAY,CAAC,IAAI,EAAE,MAAM,EAAE,GAAG,CAAC;QACxD,MAAM,EAAE,CAAC,MAAM,EAAE,GAAG,EAAE,EAAE,CAAC,MAAM,CAAC,IAAI,EAAE,MAAM,EAAE,GAAG,CAAC;QAClD,MAAM,EAAE,CAAC,QAAQ,EAAE,GAAG,EAAE,EAAE,CAAC,YAAY,CAAC,IAAI,EAAE,QAAQ,EAAE,GAAG,CAAC;KAC7D,CAAC,CAAC;IACH,MAAM,CAAC,OAAO,CAAC,qBAAqB,EAAE;QACpC,GAAG,EAAE,CAAC,QAAQ,EAAE,GAAG,EAAE,EAAE,CAAC,GAAG,CAAC,IAAI,EAAE,QAAQ,EAAE,GAAG,CAAC;QAChD,YAAY,EAAE,CAAC,UAAU,EAAE,GAAG,EAAE,EAAE,CAAC,YAAY,CAAC,IAAI,EAAE,UAAU,EAAE,GAAG,CAAC;QACtE,OAAO,EAAE,CAAC,KAAK,EAAE,GAAG,EAAE,EAAE,CAAC,OAAO,CAAC,IAAI,EAAE,KAAK,EAAE,GAAG,CAAC;KACnD,CAAC,CAAC;AACL,CAAC;AAED,SAAS,MAAM,CAAC,GAAmB;IACjC,OAAO,GAAG,CAAC,MAAM,CAAC,GAAG,CAAC,kBAAkB,CAAC,CAAC;AAC5C,CAAC;AAED;;;;GAIG;AACH,KAAK,UAAU,YAAY,CACzB,IAA0B,EAC1B,MAAc,EACd,GAAmB;IAEnB,MAAM,MAAM,GAAG,IAAI,cAAc,CAC/B,YAAY,EACZ,MAAM,EACN,gBAAgB,CAAC,GAAG,CAAC,EACrB,MAAM,CAAC,GAAG,CAAC,CACZ,CAAC;IACF,MAAM,WAAW,CAAsB,eAAe,EAAE,IAAI,CAAC,MAAM,CAAC;SACjE,OAAO,CACN,gBAAgB,CAAC,uBAAuB,CAAC,MAAM,CAAC,MAAM,EAAE,IAAI,CAAC,UAAU,CAAC,CACzE;SACA,OAAO,CAAC,oBAAoB,EAAE,CAAC;SAC/B,OAAO,CAAC,yBAAyB,EAAE,CAAC;SACpC,OAAO,CAAC,kBAAkB,EAAE,CAAC;SAC7B,OAAO,CAAC,qBAAqB,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;SAC1C,OAAO,CAAC,oBAAoB,EAAE,CAAC;SAC/B,OAAO,CAAC,0BAA0B,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;SACpD,OAAO,CAAC,qBAAqB,EAAE,CAAC;SAChC,OAAO,CAAC,cAAc,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;SACnC,OAAO,CACN,gCAAgC,CAC9B,IAAI,CAAC,sBAAsB,EAC3B,IAAI,CAAC,MAAM,CACZ,CACF;SACA,OAAO,CAAC,+BAA+B,EAAE,CAAC;SAC1C,KAAK,EAAE;SACP,OAAO,CAAC,MAAM,CAAC,CAAC;IACnB,OAAO,MAAM,CAAC,QAAQ,CAAC;AACzB,CAAC;AAED;;;GAGG;AACH,KAAK,UAAU,MAAM,CACnB,IAA0B,EAC1B,MAAc,EACd,GAAmB;IAEnB,MAAM,MAAM,GAAG,IAAI,cAAc,CAC/B,YAAY,EACZ,MAAM,EACN,gBAAgB,CAAC,GAAG,CAAC,EACrB,MAAM,CAAC,GAAG,CAAC,CACZ,CAAC;IACF,MAAM,WAAW,CAAsB,eAAe,EAAE,IAAI,CAAC,MAAM,CAAC;SACjE,OAAO,CACN,gBAAgB,CAAC,uBAAuB,CAAC,MAAM,CAAC,MAAM,EAAE,IAAI,CAAC,UAAU,CAAC,CACzE;SACA,OAAO,CAAC,oBAAoB,EAAE,CAAC;SAC/B,OAAO,CAAC,kBAAkB,EAAE,CAAC;SAC7B,OAAO,CAAC,mBAAmB,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;SACxC,OAAO,CAAC,uBAAuB,EAAE,CAAC;SAClC,OAAO,CAAC,0BAA0B,EAAE,CAAC;SACrC,OAAO,CAAC,cAAc,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;SACnC,KAAK,EAAE;SACP,OAAO,CAAC,MAAM,CAAC,CAAC;IACnB,OAAO,MAAM,CAAC,QAAQ,CAAC;AACzB,CAAC;AAED,6EAA6E;AAC7E,KAAK,UAAU,YAAY,CACzB,IAA0B,EAC1B,QAAkB,EAClB,GAAmB;IAEnB,MAAM,MAAM,GAAG,IAAI,cAAc,CAC/B,uBAAuB,CAAC,MAAM,CAAC,MAAM,CAAC,KAAK,EAC3C,QAAQ,EACR,gBAAgB,CAAC,GAAG,CAAC,EACrB,MAAM,CAAC,GAAG,CAAC,CACZ,CAAC;IACF,MAAM,WAAW,CACf,eAAe,EACf,IAAI,CAAC,MAAM,CACZ;SACE,OAAO,CACN,gBAAgB,CAAC,uBAAuB,CAAC,MAAM,CAAC,MAAM,EAAE,IAAI,CAAC,UAAU,CAAC,CACzE;SACA,OAAO,CAAC,oBAAoB,EAAE,CAAC;SAC/B,OAAO,CAAC,wBAAwB,EAAE,CAAC;SACnC,OAAO,CAAC,4BAA4B,CAAC,IAAI,CAAC,KAAK,EAAE,YAAY,CAAC,CAAC;SAC/D,OAAO,CAAC,qBAAqB,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;SAC1C,OAAO,CACN,yBAAyB,CAAC,IAAI,CAAC,sBAAsB,EAAE,IAAI,CAAC,MAAM,CAAC,CACpE;SACA,KAAK,EAAE;SACP,OAAO,CAAC,MAAM,CAAC,CAAC;IAEnB,MAAM,OAAO,GAAG,MAAM,CAAC,GAAG,CAAC,qBAAqB,CAAC,CAAC;IAClD,IAAI,OAAO,KAAK,SAAS,EAAE,CAAC;QAC1B,MAAM,aAAa,CACjB,IAAI,KAAK,CAAC,qDAAqD,CAAC,EAChE,sCAAsC,CACvC,CAAC;IACJ,CAAC;IACD,OAAO,OAAiB,CAAC;AAC3B,CAAC;AAED,oDAAoD;AACpD,KAAK,UAAU,GAAG,CAChB,IAA0B,EAC1B,QAAkB,EAClB,GAAmB;IAEnB,MAAM,MAAM,GAAG,IAAI,cAAc,CAC/B,qBAAqB,CAAC,MAAM,CAAC,GAAG,CAAC,KAAK,EACtC,QAAQ,EACR,gBAAgB,CAAC,GAAG,CAAC,EACrB,MAAM,CAAC,GAAG,CAAC,CACZ,CAAC;IACF,MAAM,WAAW,CACf,YAAY,EACZ,IAAI,CAAC,MAAM,CACZ;SACE,OAAO,CACN,gBAAgB,CAAC,qBAAqB,CAAC,MAAM,CAAC,GAAG,EAAE,IAAI,CAAC,UAAU,CAAC,CACpE;SACA,OAAO,CAAC,oBAAoB,EAAE,CAAC;SAC/B,OAAO,CAAC,iBAAiB,CAAC,IAAI,CAAC,KAAK,EAAE,YAAY,CAAC,CAAC;SACpD,KAAK,EAAE;SACP,OAAO,CAAC,MAAM,CAAC,CAAC;IACnB,OAAO,MAAM,CAAC,GAAG,CAAC,mBAAmB,CAAW,CAAC;AACnD,CAAC;AAED;;;;;GAKG;AACH,KAAK,UAAU,YAAY,CACzB,IAA0B,EAC1B,UAAsB,EACtB,GAAmB;IAEnB,MAAM,MAAM,GAAG,IAAI,cAAc,CAC/B,qBAAqB,CAAC,MAAM,CAAC,YAAY,CAAC,KAAK,EAC/C,UAAU,EACV,gBAAgB,CAAC,GAAG,CAAC,EACrB,MAAM,CAAC,GAAG,CAAC,CACZ,CAAC;IACF,MAAM,WAAW,CACf,wBAAwB,EACxB,IAAI,CAAC,MAAM,CACZ;SACE,OAAO,CACN,gBAAgB,CACd,qBAAqB,CAAC,MAAM,CAAC,YAAY,EACzC,IAAI,CAAC,UAAU,CAChB,CACF;SACA,OAAO,CAAC,oBAAoB,EAAE,CAAC;SAC/B,OAAO,CAAC,oBAAoB,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;SACzC,KAAK,EAAE;SACP,OAAO,CAAC,MAAM,CAAC,CAAC;IACnB,OAAO,MAAM,CAAC,GAAG,CAAC,mBAAmB,CAAW,CAAC;AACnD,CAAC;AAED;;;;;;;GAOG;AACH,KAAK,UAAU,OAAO,CACpB,IAA0B,EAC1B,KAAY,EACZ,GAAmB;IAEnB,MAAM,QAAQ,GAAG,gBAAgB,CAAC,GAAG,CAAC,CAAC;IACvC,MAAM,MAAM,GAAG,IAAI,cAAc,CAC/B,qBAAqB,CAAC,MAAM,CAAC,OAAO,CAAC,KAAK,EAC1C,KAAK,EACL,QAAQ,EACR,MAAM,CAAC,GAAG,CAAC,CACZ,CAAC;IACF,MAAM,WAAW,CACf,iBAAiB,EACjB,IAAI,CAAC,MAAM,CACZ;SACE,OAAO,CACN,gBAAgB,CAAC,qBAAqB,CAAC,MAAM,CAAC,OAAO,EAAE,IAAI,CAAC,UAAU,CAAC,CACxE;SACA,KAAK,EAAE;SACP,OAAO,CAAC,MAAM,CAAC,CAAC;IAEnB,IAAI,IAAkB,CAAC;IACvB,IAAI,CAAC;QACH,IAAI,GAAG,MAAM,IAAI,CAAC,KAAK,CAAC,aAAa,CAAC,eAAe,CAAC,OAAO,CAAC,CAAC;IACjE,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QACf,MAAM,aAAa,CAAC,KAAK,EAAE,yBAAyB,CAAC,CAAC;IACxD,CAAC;IACD,MAAM,OAAO,GAAG,MAAM,uBAAuB,CAC3C,IAAI,CAAC,aAAa,EAClB,QAAQ,EACR,eAAe,CAAC,OAAO,EACvB,IAAI,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,UAAU,CAAC,YAAY,EAAE,GAAG,CAAC,CAAC,EAChD,EAAE,CACH,CAAC;IACF,OAAO,MAAM,CAAC,aAAa,EAAE,EAAE,OAAO,EAAE,CAAC,CAAC;AAC5C,CAAC"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/** The plaintext prefix — Java ApiKeyConstants.API_KEY_PREFIX. */
|
|
2
|
+
export declare const API_KEY_PREFIX = "stk_";
|
|
3
|
+
/** Random bytes per key — Java ApiKeyGenerator.TOKEN_BYTES (256 bits). */
|
|
4
|
+
export declare const API_KEY_TOKEN_BYTES = 32;
|
|
5
|
+
/** Fingerprint length — Java ApiKeyFingerprintExtractor (last 6 chars). */
|
|
6
|
+
export declare const API_KEY_FINGERPRINT_LENGTH = 6;
|
|
7
|
+
/** A fresh plaintext API key: `stk_` + Base64URL(32 random bytes). */
|
|
8
|
+
export declare function generateApiKeyPlaintext(): string;
|
|
9
|
+
/**
|
|
10
|
+
* The storage hash of a plaintext key — Java ApiKeyHasher.hash. Throws on
|
|
11
|
+
* an empty input exactly as the Java hasher does (a programming error at
|
|
12
|
+
* the call site, never a client-visible arm).
|
|
13
|
+
*/
|
|
14
|
+
export declare function hashApiKey(plaintext: string): string;
|
|
15
|
+
/** The display fingerprint — Java ApiKeyFingerprintExtractor.extract. */
|
|
16
|
+
export declare function fingerprintOf(plaintext: string): string;
|
|
17
|
+
/**
|
|
18
|
+
* Whether a presented bearer token is an API key — the `stk_` prefix,
|
|
19
|
+
* case-insensitive (Java OpaqueTokenAuthenticationProvider's
|
|
20
|
+
* startsWithIgnoreCase claim rule).
|
|
21
|
+
*/
|
|
22
|
+
export declare function isApiKeyToken(token: string): boolean;
|
|
23
|
+
//# sourceMappingURL=keymaterial.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"keymaterial.d.ts","sourceRoot":"","sources":["../../../src/domain/apikey/keymaterial.ts"],"names":[],"mappings":"AAuBA,kEAAkE;AAClE,eAAO,MAAM,cAAc,SAAS,CAAC;AAErC,0EAA0E;AAC1E,eAAO,MAAM,mBAAmB,KAAK,CAAC;AAEtC,2EAA2E;AAC3E,eAAO,MAAM,0BAA0B,IAAI,CAAC;AAE5C,sEAAsE;AACtE,wBAAgB,uBAAuB,IAAI,MAAM,CAEhD;AAED;;;;GAIG;AACH,wBAAgB,UAAU,CAAC,SAAS,EAAE,MAAM,GAAG,MAAM,CAKpD;AAED,yEAAyE;AACzE,wBAAgB,aAAa,CAAC,SAAS,EAAE,MAAM,GAAG,MAAM,CAKvD;AAED;;;;GAIG;AACH,wBAAgB,aAAa,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAEpD"}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* API-key material — generation, hashing, fingerprinting (O3, 20260827.06;
|
|
3
|
+
* DD-003 owner ruling: apikey wholly OSS). Ports the cloud Java library
|
|
4
|
+
* (api-authentication/apikey/library: ApiKeyGenerator, ApiKeyHasher,
|
|
5
|
+
* ApiKeyFingerprintExtractor) byte-format-for-byte-format — every value
|
|
6
|
+
* this module produces is cross-edition wire/storage contract:
|
|
7
|
+
*
|
|
8
|
+
* - plaintext: `stk_` + Base64URL(32 SecureRandom bytes), no padding
|
|
9
|
+
* ("stk" = stigmer-key; 256 bits of entropy).
|
|
10
|
+
* - stored hash: SHA-256 of the UTF-8 plaintext, Base64URL, no padding
|
|
11
|
+
* (NOT hex — spec.proto's "SHA-256/Bcrypt" aside is stale; the Java
|
|
12
|
+
* hasher is plain SHA-256 and stored hashes must keep matching after
|
|
13
|
+
* the cloud converges onto this module).
|
|
14
|
+
* - fingerprint: the LAST 6 characters of the plaintext (the whole
|
|
15
|
+
* plaintext when shorter — the Java extractor's degenerate arm).
|
|
16
|
+
*
|
|
17
|
+
* Prefix claim is case-insensitive (Java startsWithIgnoreCase): the
|
|
18
|
+
* verifier chain uses it to decide "this is an API key" vs "let the next
|
|
19
|
+
* verifier look" — a recognized-but-invalid key must then throw, never
|
|
20
|
+
* pass (extensions/identity.ts contract).
|
|
21
|
+
*/
|
|
22
|
+
import { createHash, randomBytes } from "node:crypto";
|
|
23
|
+
/** The plaintext prefix — Java ApiKeyConstants.API_KEY_PREFIX. */
|
|
24
|
+
export const API_KEY_PREFIX = "stk_";
|
|
25
|
+
/** Random bytes per key — Java ApiKeyGenerator.TOKEN_BYTES (256 bits). */
|
|
26
|
+
export const API_KEY_TOKEN_BYTES = 32;
|
|
27
|
+
/** Fingerprint length — Java ApiKeyFingerprintExtractor (last 6 chars). */
|
|
28
|
+
export const API_KEY_FINGERPRINT_LENGTH = 6;
|
|
29
|
+
/** A fresh plaintext API key: `stk_` + Base64URL(32 random bytes). */
|
|
30
|
+
export function generateApiKeyPlaintext() {
|
|
31
|
+
return API_KEY_PREFIX + randomBytes(API_KEY_TOKEN_BYTES).toString("base64url");
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* The storage hash of a plaintext key — Java ApiKeyHasher.hash. Throws on
|
|
35
|
+
* an empty input exactly as the Java hasher does (a programming error at
|
|
36
|
+
* the call site, never a client-visible arm).
|
|
37
|
+
*/
|
|
38
|
+
export function hashApiKey(plaintext) {
|
|
39
|
+
if (plaintext === "") {
|
|
40
|
+
throw new Error("token must not be null or empty");
|
|
41
|
+
}
|
|
42
|
+
return createHash("sha256").update(plaintext, "utf8").digest("base64url");
|
|
43
|
+
}
|
|
44
|
+
/** The display fingerprint — Java ApiKeyFingerprintExtractor.extract. */
|
|
45
|
+
export function fingerprintOf(plaintext) {
|
|
46
|
+
if (plaintext.length <= API_KEY_FINGERPRINT_LENGTH) {
|
|
47
|
+
return plaintext;
|
|
48
|
+
}
|
|
49
|
+
return plaintext.slice(-API_KEY_FINGERPRINT_LENGTH);
|
|
50
|
+
}
|
|
51
|
+
/**
|
|
52
|
+
* Whether a presented bearer token is an API key — the `stk_` prefix,
|
|
53
|
+
* case-insensitive (Java OpaqueTokenAuthenticationProvider's
|
|
54
|
+
* startsWithIgnoreCase claim rule).
|
|
55
|
+
*/
|
|
56
|
+
export function isApiKeyToken(token) {
|
|
57
|
+
return token.slice(0, API_KEY_PREFIX.length).toLowerCase() === API_KEY_PREFIX;
|
|
58
|
+
}
|
|
59
|
+
//# sourceMappingURL=keymaterial.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"keymaterial.js","sourceRoot":"","sources":["../../../src/domain/apikey/keymaterial.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,OAAO,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAEtD,kEAAkE;AAClE,MAAM,CAAC,MAAM,cAAc,GAAG,MAAM,CAAC;AAErC,0EAA0E;AAC1E,MAAM,CAAC,MAAM,mBAAmB,GAAG,EAAE,CAAC;AAEtC,2EAA2E;AAC3E,MAAM,CAAC,MAAM,0BAA0B,GAAG,CAAC,CAAC;AAE5C,sEAAsE;AACtE,MAAM,UAAU,uBAAuB;IACrC,OAAO,cAAc,GAAG,WAAW,CAAC,mBAAmB,CAAC,CAAC,QAAQ,CAAC,WAAW,CAAC,CAAC;AACjF,CAAC;AAED;;;;GAIG;AACH,MAAM,UAAU,UAAU,CAAC,SAAiB;IAC1C,IAAI,SAAS,KAAK,EAAE,EAAE,CAAC;QACrB,MAAM,IAAI,KAAK,CAAC,iCAAiC,CAAC,CAAC;IACrD,CAAC;IACD,OAAO,UAAU,CAAC,QAAQ,CAAC,CAAC,MAAM,CAAC,SAAS,EAAE,MAAM,CAAC,CAAC,MAAM,CAAC,WAAW,CAAC,CAAC;AAC5E,CAAC;AAED,yEAAyE;AACzE,MAAM,UAAU,aAAa,CAAC,SAAiB;IAC7C,IAAI,SAAS,CAAC,MAAM,IAAI,0BAA0B,EAAE,CAAC;QACnD,OAAO,SAAS,CAAC;IACnB,CAAC;IACD,OAAO,SAAS,CAAC,KAAK,CAAC,CAAC,0BAA0B,CAAC,CAAC;AACtD,CAAC;AAED;;;;GAIG;AACH,MAAM,UAAU,aAAa,CAAC,KAAa;IACzC,OAAO,KAAK,CAAC,KAAK,CAAC,CAAC,EAAE,cAAc,CAAC,MAAM,CAAC,CAAC,WAAW,EAAE,KAAK,cAAc,CAAC;AAChF,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { ApiKey } from "@stigmer/protos/ai/stigmer/iam/apikey/v1/api_pb";
|
|
2
|
+
import type { Store } from "../../store/interface.js";
|
|
3
|
+
/**
|
|
4
|
+
* The ApiKey resource whose spec.key_hash equals `keyHash`, or undefined
|
|
5
|
+
* when none exists. Store faults other than the typed not-found rethrow
|
|
6
|
+
* (the ratified store-fault mapping — an infrastructure fault must never
|
|
7
|
+
* read as "unknown key").
|
|
8
|
+
*/
|
|
9
|
+
export declare function findApiKeyByHash(store: Store, keyHash: string): Promise<ApiKey | undefined>;
|
|
10
|
+
//# sourceMappingURL=lookup.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"lookup.d.ts","sourceRoot":"","sources":["../../../src/domain/apikey/lookup.ts"],"names":[],"mappings":"AAgBA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,iDAAiD,CAAC;AAI9E,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,0BAA0B,CAAC;AAEtD;;;;;GAKG;AACH,wBAAsB,gBAAgB,CACpC,KAAK,EAAE,KAAK,EACZ,OAAO,EAAE,MAAM,GACd,OAAO,CAAC,MAAM,GAAG,SAAS,CAAC,CAc7B"}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* API-key lookup by stored hash — the ONE read path shared by the
|
|
3
|
+
* getByKeyHash RPC and the identity chassis's apikey verifier (O3,
|
|
4
|
+
* 20260827.06). The verifier deliberately calls this module, never the
|
|
5
|
+
* RPC: an in-process auth hop for every request would be the cloud
|
|
6
|
+
* edition's chicken-and-egg machinery (inProcessChannelAsSystem) ported
|
|
7
|
+
* without its reason — the OSS store is right here.
|
|
8
|
+
*
|
|
9
|
+
* Lookup rides Store.findByField ("spec.keyHash"), the sanctioned
|
|
10
|
+
* secondary-lookup surface: indexability is guaranteed at the interface
|
|
11
|
+
* and physical indexing is the driver's concern (D2 §3). No cache, on
|
|
12
|
+
* purpose — a direct read makes key deletion take effect on the very next
|
|
13
|
+
* request, where the cloud's Redis introspector holds revoked keys for up
|
|
14
|
+
* to its 1h TTL (server-internal posture, not wire contract).
|
|
15
|
+
*/
|
|
16
|
+
import { ApiKeySchema } from "@stigmer/protos/ai/stigmer/iam/apikey/v1/api_pb";
|
|
17
|
+
import { ApiResourceKind } from "@stigmer/protos/ai/stigmer/commons/apiresource/apiresourcekind/api_resource_kind_pb";
|
|
18
|
+
import { ResourceNotFoundError } from "../../store/interface.js";
|
|
19
|
+
/**
|
|
20
|
+
* The ApiKey resource whose spec.key_hash equals `keyHash`, or undefined
|
|
21
|
+
* when none exists. Store faults other than the typed not-found rethrow
|
|
22
|
+
* (the ratified store-fault mapping — an infrastructure fault must never
|
|
23
|
+
* read as "unknown key").
|
|
24
|
+
*/
|
|
25
|
+
export async function findApiKeyByHash(store, keyHash) {
|
|
26
|
+
try {
|
|
27
|
+
return await store.findByField(ApiResourceKind.api_key, "spec.keyHash", keyHash, ApiKeySchema);
|
|
28
|
+
}
|
|
29
|
+
catch (error) {
|
|
30
|
+
if (error instanceof ResourceNotFoundError) {
|
|
31
|
+
return undefined;
|
|
32
|
+
}
|
|
33
|
+
throw error;
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
//# sourceMappingURL=lookup.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"lookup.js","sourceRoot":"","sources":["../../../src/domain/apikey/lookup.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AACH,OAAO,EAAE,YAAY,EAAE,MAAM,iDAAiD,CAAC;AAE/E,OAAO,EAAE,eAAe,EAAE,MAAM,qFAAqF,CAAC;AAEtH,OAAO,EAAE,qBAAqB,EAAE,MAAM,0BAA0B,CAAC;AAGjE;;;;;GAKG;AACH,MAAM,CAAC,KAAK,UAAU,gBAAgB,CACpC,KAAY,EACZ,OAAe;IAEf,IAAI,CAAC;QACH,OAAO,MAAM,KAAK,CAAC,WAAW,CAC5B,eAAe,CAAC,OAAO,EACvB,cAAc,EACd,OAAO,EACP,YAAY,CACb,CAAC;IACJ,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QACf,IAAI,KAAK,YAAY,qBAAqB,EAAE,CAAC;YAC3C,OAAO,SAAS,CAAC;QACnB,CAAC;QACD,MAAM,KAAK,CAAC;IACd,CAAC;AACH,CAAC"}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import type { ApiKeySchema } from "@stigmer/protos/ai/stigmer/iam/apikey/v1/api_pb";
|
|
2
|
+
import type { ApiKeyHashSchema } from "@stigmer/protos/ai/stigmer/iam/apikey/v1/io_pb";
|
|
3
|
+
import type { PipelineStep } from "../../pipeline/pipeline.js";
|
|
4
|
+
import type { Store } from "../../store/interface.js";
|
|
5
|
+
/**
|
|
6
|
+
* Context key parking the plaintext between GenerateApiKey and
|
|
7
|
+
* ReplaceHashWithPlainText — the Java handler's API_KEY_PLAINTEXT
|
|
8
|
+
* Context.Key, name kept verbatim.
|
|
9
|
+
*/
|
|
10
|
+
export declare const API_KEY_PLAINTEXT_KEY = "API_KEY_PLAINTEXT";
|
|
11
|
+
type ApiKeyDesc = typeof ApiKeySchema;
|
|
12
|
+
/** Mints the key material onto newState.spec; parks the plaintext. */
|
|
13
|
+
export declare function newGenerateApiKeyStep(): PipelineStep<ApiKeyDesc>;
|
|
14
|
+
/**
|
|
15
|
+
* Swaps the plaintext into the response's spec.key_hash after Persist —
|
|
16
|
+
* the store row keeps the hash; the client gets its one look. The
|
|
17
|
+
* INTERNAL copy is the Java step's, byte-pinned.
|
|
18
|
+
*/
|
|
19
|
+
export declare function newReplaceHashWithPlainTextStep(): PipelineStep<ApiKeyDesc>;
|
|
20
|
+
/**
|
|
21
|
+
* Restores key material from the stored resource after BuildUpdateState —
|
|
22
|
+
* expiry fields (expires_at, never_expires) remain the only client-mutable
|
|
23
|
+
* spec surface (ruling Q9; the module header carries the security
|
|
24
|
+
* rationale).
|
|
25
|
+
*/
|
|
26
|
+
export declare function newPreserveKeyMaterialStep(): PipelineStep<ApiKeyDesc>;
|
|
27
|
+
/**
|
|
28
|
+
* Java ApiKeyGetByKeyHashHandler's NOT_FOUND copy — byte-pinned
|
|
29
|
+
* cross-edition contract (no id in the message, deliberately: the input
|
|
30
|
+
* IS the hash and echoing hashes into error copy invites log scraping).
|
|
31
|
+
*/
|
|
32
|
+
export declare const API_KEY_NOT_FOUND_BY_HASH_MESSAGE = "ApiKey not found";
|
|
33
|
+
/**
|
|
34
|
+
* Loads the key whose spec.key_hash equals the input hash into the
|
|
35
|
+
* TargetResource slot (Java ApiKeyGetByKeyHashHandler: the input is used
|
|
36
|
+
* as-is — already hashed — and the stored resource returns unmodified,
|
|
37
|
+
* hash in place; the secret is only ever visible in the create response).
|
|
38
|
+
*/
|
|
39
|
+
export declare function newLoadByKeyHashStep(store: Store): PipelineStep<typeof ApiKeyHashSchema>;
|
|
40
|
+
export {};
|
|
41
|
+
//# sourceMappingURL=steps.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"steps.d.ts","sourceRoot":"","sources":["../../../src/domain/apikey/steps.ts"],"names":[],"mappings":"AA6BA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iDAAiD,CAAC;AACpF,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,gDAAgD,CAAC;AAGvF,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAI/D,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,0BAA0B,CAAC;AAQtD;;;;GAIG;AACH,eAAO,MAAM,qBAAqB,sBAAsB,CAAC;AAEzD,KAAK,UAAU,GAAG,OAAO,YAAY,CAAC;AAEtC,sEAAsE;AACtE,wBAAgB,qBAAqB,IAAI,YAAY,CAAC,UAAU,CAAC,CAiBhE;AAED;;;;GAIG;AACH,wBAAgB,+BAA+B,IAAI,YAAY,CAAC,UAAU,CAAC,CAqB1E;AAED;;;;;GAKG;AACH,wBAAgB,0BAA0B,IAAI,YAAY,CAAC,UAAU,CAAC,CAsBrE;AAED;;;;GAIG;AACH,eAAO,MAAM,iCAAiC,qBAAqB,CAAC;AAEpE;;;;;GAKG;AACH,wBAAgB,oBAAoB,CAClC,KAAK,EAAE,KAAK,GACX,YAAY,CAAC,OAAO,gBAAgB,CAAC,CAWvC"}
|
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* ApiKey domain steps (O3, 20260827.06) — the three steps the canonical
|
|
3
|
+
* chains do not provide, mirroring the cloud Java handlers' domain steps:
|
|
4
|
+
*
|
|
5
|
+
* - GenerateApiKey (Java ApiKeyCreateHandler.GenerateApiKey): mints the
|
|
6
|
+
* plaintext AFTER BuildNewState, stores hash + fingerprint on the
|
|
7
|
+
* spec, and parks the plaintext under the context key for the
|
|
8
|
+
* response step. The client can never choose key material — whatever
|
|
9
|
+
* spec.key_hash/fingerprint the request carried is overwritten.
|
|
10
|
+
* - ReplaceHashWithPlainText (Java ApiKeyCreateHandler): AFTER Persist,
|
|
11
|
+
* swaps the plaintext into spec.key_hash of the RESPONSE only. This
|
|
12
|
+
* is the ONLY time the plaintext ever leaves the server; the store
|
|
13
|
+
* and audit rows hold the hash. The INTERNAL copy is byte-pinned to
|
|
14
|
+
* the Java step's.
|
|
15
|
+
* - PreserveKeyMaterial (O3 gate ruling Q9): update keeps spec.key_hash
|
|
16
|
+
* and spec.fingerprint from the STORED resource, so only the expiry
|
|
17
|
+
* fields are client-mutable. Ruling Q9's original impersonation
|
|
18
|
+
* rationale was corrected by stigmer-cloud#544's execution: the Java
|
|
19
|
+
* pipeline's computed-field clearing already strips both fields from
|
|
20
|
+
* every update request (forgery never persisted) — but nothing
|
|
21
|
+
* restored them, so every Java update persisted EMPTY key material
|
|
22
|
+
* and bricked the key. Both editions now strip-and-restore: this
|
|
23
|
+
* step here, ApiKeyUpdateHandler.PreserveKeyMaterial there. The
|
|
24
|
+
* shared contract is pinned by the apikey conformance suite's
|
|
25
|
+
* update-immutability arm.
|
|
26
|
+
*/
|
|
27
|
+
import { Code, ConnectError } from "@connectrpc/connect";
|
|
28
|
+
import { internalError } from "../../pipeline/errors.js";
|
|
29
|
+
import { EXISTING_RESOURCE_KEY } from "../../pipeline/steps/load-existing.js";
|
|
30
|
+
import { TARGET_RESOURCE_KEY } from "../../pipeline/steps/load-target.js";
|
|
31
|
+
import { fingerprintOf, generateApiKeyPlaintext, hashApiKey, } from "./keymaterial.js";
|
|
32
|
+
import { findApiKeyByHash } from "./lookup.js";
|
|
33
|
+
/**
|
|
34
|
+
* Context key parking the plaintext between GenerateApiKey and
|
|
35
|
+
* ReplaceHashWithPlainText — the Java handler's API_KEY_PLAINTEXT
|
|
36
|
+
* Context.Key, name kept verbatim.
|
|
37
|
+
*/
|
|
38
|
+
export const API_KEY_PLAINTEXT_KEY = "API_KEY_PLAINTEXT";
|
|
39
|
+
/** Mints the key material onto newState.spec; parks the plaintext. */
|
|
40
|
+
export function newGenerateApiKeyStep() {
|
|
41
|
+
return {
|
|
42
|
+
name: "GenerateApiKey",
|
|
43
|
+
execute(ctx) {
|
|
44
|
+
const resource = ctx.newState;
|
|
45
|
+
if (resource.spec === undefined) {
|
|
46
|
+
throw internalError(new Error("spec is nil after BuildNewState"), "generate api key");
|
|
47
|
+
}
|
|
48
|
+
const plaintext = generateApiKeyPlaintext();
|
|
49
|
+
resource.spec.keyHash = hashApiKey(plaintext);
|
|
50
|
+
resource.spec.fingerprint = fingerprintOf(plaintext);
|
|
51
|
+
ctx.set(API_KEY_PLAINTEXT_KEY, plaintext);
|
|
52
|
+
},
|
|
53
|
+
};
|
|
54
|
+
}
|
|
55
|
+
/**
|
|
56
|
+
* Swaps the plaintext into the response's spec.key_hash after Persist —
|
|
57
|
+
* the store row keeps the hash; the client gets its one look. The
|
|
58
|
+
* INTERNAL copy is the Java step's, byte-pinned.
|
|
59
|
+
*/
|
|
60
|
+
export function newReplaceHashWithPlainTextStep() {
|
|
61
|
+
return {
|
|
62
|
+
name: "ReplaceHashWithPlainText",
|
|
63
|
+
execute(ctx) {
|
|
64
|
+
const plaintext = ctx.get(API_KEY_PLAINTEXT_KEY);
|
|
65
|
+
if (typeof plaintext !== "string" || plaintext === "") {
|
|
66
|
+
throw internalError(new Error("plaintext API key not found in context"), "Failed to retrieve generated API key");
|
|
67
|
+
}
|
|
68
|
+
const resource = ctx.newState;
|
|
69
|
+
if (resource.spec === undefined) {
|
|
70
|
+
throw internalError(new Error("spec is nil after Persist"), "replace hash with plaintext");
|
|
71
|
+
}
|
|
72
|
+
resource.spec.keyHash = plaintext;
|
|
73
|
+
},
|
|
74
|
+
};
|
|
75
|
+
}
|
|
76
|
+
/**
|
|
77
|
+
* Restores key material from the stored resource after BuildUpdateState —
|
|
78
|
+
* expiry fields (expires_at, never_expires) remain the only client-mutable
|
|
79
|
+
* spec surface (ruling Q9; the module header carries the security
|
|
80
|
+
* rationale).
|
|
81
|
+
*/
|
|
82
|
+
export function newPreserveKeyMaterialStep() {
|
|
83
|
+
return {
|
|
84
|
+
name: "PreserveKeyMaterial",
|
|
85
|
+
execute(ctx) {
|
|
86
|
+
const existing = ctx.get(EXISTING_RESOURCE_KEY);
|
|
87
|
+
if (existing === undefined) {
|
|
88
|
+
throw internalError(new Error("existing resource not in context - LoadExisting must run first"), "preserve key material");
|
|
89
|
+
}
|
|
90
|
+
const resource = ctx.newState;
|
|
91
|
+
if (resource.spec === undefined || existing.spec === undefined) {
|
|
92
|
+
throw internalError(new Error("spec is nil on update"), "preserve key material");
|
|
93
|
+
}
|
|
94
|
+
resource.spec.keyHash = existing.spec.keyHash;
|
|
95
|
+
resource.spec.fingerprint = existing.spec.fingerprint;
|
|
96
|
+
},
|
|
97
|
+
};
|
|
98
|
+
}
|
|
99
|
+
/**
|
|
100
|
+
* Java ApiKeyGetByKeyHashHandler's NOT_FOUND copy — byte-pinned
|
|
101
|
+
* cross-edition contract (no id in the message, deliberately: the input
|
|
102
|
+
* IS the hash and echoing hashes into error copy invites log scraping).
|
|
103
|
+
*/
|
|
104
|
+
export const API_KEY_NOT_FOUND_BY_HASH_MESSAGE = "ApiKey not found";
|
|
105
|
+
/**
|
|
106
|
+
* Loads the key whose spec.key_hash equals the input hash into the
|
|
107
|
+
* TargetResource slot (Java ApiKeyGetByKeyHashHandler: the input is used
|
|
108
|
+
* as-is — already hashed — and the stored resource returns unmodified,
|
|
109
|
+
* hash in place; the secret is only ever visible in the create response).
|
|
110
|
+
*/
|
|
111
|
+
export function newLoadByKeyHashStep(store) {
|
|
112
|
+
return {
|
|
113
|
+
name: "LoadByKeyHash",
|
|
114
|
+
async execute(ctx) {
|
|
115
|
+
const found = await findApiKeyByHash(store, ctx.input.value);
|
|
116
|
+
if (found === undefined) {
|
|
117
|
+
throw new ConnectError(API_KEY_NOT_FOUND_BY_HASH_MESSAGE, Code.NotFound);
|
|
118
|
+
}
|
|
119
|
+
ctx.set(TARGET_RESOURCE_KEY, found);
|
|
120
|
+
},
|
|
121
|
+
};
|
|
122
|
+
}
|
|
123
|
+
//# sourceMappingURL=steps.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"steps.js","sourceRoot":"","sources":["../../../src/domain/apikey/steps.ts"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { IdentityVerifier } from "../../extensions/identity.js";
|
|
2
|
+
import type { Store } from "../../store/interface.js";
|
|
3
|
+
/** Java classifyAuthError's fallback arm — the unknown/revoked-key copy. */
|
|
4
|
+
export declare const INVALID_TOKEN_MESSAGE = "invalid token";
|
|
5
|
+
/** Java classifyAuthError's "expired" arm. */
|
|
6
|
+
export declare const TOKEN_EXPIRED_MESSAGE = "token has expired";
|
|
7
|
+
export declare function newApiKeyIdentityVerifier(store: Store): IdentityVerifier;
|
|
8
|
+
//# sourceMappingURL=verifier.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"verifier.d.ts","sourceRoot":"","sources":["../../../src/domain/apikey/verifier.ts"],"names":[],"mappings":"AA6BA,OAAO,KAAK,EAEV,gBAAgB,EACjB,MAAM,8BAA8B,CAAC;AACtC,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,0BAA0B,CAAC;AAItD,4EAA4E;AAC5E,eAAO,MAAM,qBAAqB,kBAAkB,CAAC;AAErD,8CAA8C;AAC9C,eAAO,MAAM,qBAAqB,sBAAsB,CAAC;AAEzD,wBAAgB,yBAAyB,CAAC,KAAK,EAAE,KAAK,GAAG,gBAAgB,CAgCxE"}
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The API-token identity verifier (O3, 20260827.06) — the first OSS entry
|
|
3
|
+
* on the chassis's verifier chain, the TS rendering of the cloud's
|
|
4
|
+
* OpaqueTokenAuthenticationProvider + RedisApiKeyIntrospector pair minus
|
|
5
|
+
* the cache (lookup.ts carries the no-cache rationale: instant
|
|
6
|
+
* revocation).
|
|
7
|
+
*
|
|
8
|
+
* Claim rule: the `stk_` prefix, case-insensitive (the Java provider's
|
|
9
|
+
* startsWithIgnoreCase). Everything else passes to the next verifier.
|
|
10
|
+
* A recognized token that fails verification THROWS (identity.ts
|
|
11
|
+
* contract) with the wire copy the Java interceptor's classifyAuthError
|
|
12
|
+
* produces for the introspector's failures, byte-pinned:
|
|
13
|
+
*
|
|
14
|
+
* - unknown/revoked key → "invalid token" (Java: the introspector's
|
|
15
|
+
* "revoked or unknown" description classifies to the fallback arm);
|
|
16
|
+
* - expired key → "token has expired" (the "expired" keyword arm).
|
|
17
|
+
*
|
|
18
|
+
* Identity: the key authenticates AS ITS OWNING USER (the verified Java
|
|
19
|
+
* posture — an API-key principal is indistinguishable downstream from a
|
|
20
|
+
* JWT login). The owner is the key's creator,
|
|
21
|
+
* status.audit.spec_audit.created_by (the Java owner extractor's actual
|
|
22
|
+
* read), whose actor row also carries the email/displayName the audit
|
|
23
|
+
* seam wants. Expiry is "expires_at set and past"; never_expires is
|
|
24
|
+
* deliberately not read — Java parity (never-expiring keys leave
|
|
25
|
+
* expires_at unset).
|
|
26
|
+
*/
|
|
27
|
+
import { Code, ConnectError } from "@connectrpc/connect";
|
|
28
|
+
import { timestampDate } from "@bufbuild/protobuf/wkt";
|
|
29
|
+
import { hashApiKey, isApiKeyToken } from "./keymaterial.js";
|
|
30
|
+
import { findApiKeyByHash } from "./lookup.js";
|
|
31
|
+
/** Java classifyAuthError's fallback arm — the unknown/revoked-key copy. */
|
|
32
|
+
export const INVALID_TOKEN_MESSAGE = "invalid token";
|
|
33
|
+
/** Java classifyAuthError's "expired" arm. */
|
|
34
|
+
export const TOKEN_EXPIRED_MESSAGE = "token has expired";
|
|
35
|
+
export function newApiKeyIdentityVerifier(store) {
|
|
36
|
+
return {
|
|
37
|
+
name: "apikey",
|
|
38
|
+
async verify(token) {
|
|
39
|
+
if (!isApiKeyToken(token)) {
|
|
40
|
+
return null;
|
|
41
|
+
}
|
|
42
|
+
const key = await findApiKeyByHash(store, hashApiKey(token));
|
|
43
|
+
if (key === undefined) {
|
|
44
|
+
throw new ConnectError(INVALID_TOKEN_MESSAGE, Code.Unauthenticated);
|
|
45
|
+
}
|
|
46
|
+
const expiresAt = key.spec?.expiresAt;
|
|
47
|
+
if (expiresAt !== undefined && timestampDate(expiresAt) <= new Date()) {
|
|
48
|
+
throw new ConnectError(TOKEN_EXPIRED_MESSAGE, Code.Unauthenticated);
|
|
49
|
+
}
|
|
50
|
+
const owner = key.status?.audit?.specAudit?.createdBy;
|
|
51
|
+
if (owner === undefined || owner.id === "") {
|
|
52
|
+
// A key without creator attribution cannot authenticate as anyone —
|
|
53
|
+
// fail closed with the fallback copy (unreachable for keys created
|
|
54
|
+
// through the pipeline; guards hand-seeded or corrupted rows).
|
|
55
|
+
throw new ConnectError(INVALID_TOKEN_MESSAGE, Code.Unauthenticated);
|
|
56
|
+
}
|
|
57
|
+
return {
|
|
58
|
+
identityId: owner.id,
|
|
59
|
+
callerClass: "user",
|
|
60
|
+
issuer: "",
|
|
61
|
+
rawToken: token,
|
|
62
|
+
...(owner.email !== "" ? { email: owner.email } : {}),
|
|
63
|
+
...(owner.displayName !== "" ? { displayName: owner.displayName } : {}),
|
|
64
|
+
};
|
|
65
|
+
},
|
|
66
|
+
};
|
|
67
|
+
}
|
|
68
|
+
//# sourceMappingURL=verifier.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"verifier.js","sourceRoot":"","sources":["../../../src/domain/apikey/verifier.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,OAAO,EAAE,IAAI,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AACzD,OAAO,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AAOvD,OAAO,EAAE,UAAU,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAC7D,OAAO,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAE/C,4EAA4E;AAC5E,MAAM,CAAC,MAAM,qBAAqB,GAAG,eAAe,CAAC;AAErD,8CAA8C;AAC9C,MAAM,CAAC,MAAM,qBAAqB,GAAG,mBAAmB,CAAC;AAEzD,MAAM,UAAU,yBAAyB,CAAC,KAAY;IACpD,OAAO;QACL,IAAI,EAAE,QAAQ;QACd,KAAK,CAAC,MAAM,CAAC,KAAa;YACxB,IAAI,CAAC,aAAa,CAAC,KAAK,CAAC,EAAE,CAAC;gBAC1B,OAAO,IAAI,CAAC;YACd,CAAC;YACD,MAAM,GAAG,GAAG,MAAM,gBAAgB,CAAC,KAAK,EAAE,UAAU,CAAC,KAAK,CAAC,CAAC,CAAC;YAC7D,IAAI,GAAG,KAAK,SAAS,EAAE,CAAC;gBACtB,MAAM,IAAI,YAAY,CAAC,qBAAqB,EAAE,IAAI,CAAC,eAAe,CAAC,CAAC;YACtE,CAAC;YACD,MAAM,SAAS,GAAG,GAAG,CAAC,IAAI,EAAE,SAAS,CAAC;YACtC,IAAI,SAAS,KAAK,SAAS,IAAI,aAAa,CAAC,SAAS,CAAC,IAAI,IAAI,IAAI,EAAE,EAAE,CAAC;gBACtE,MAAM,IAAI,YAAY,CAAC,qBAAqB,EAAE,IAAI,CAAC,eAAe,CAAC,CAAC;YACtE,CAAC;YACD,MAAM,KAAK,GAAG,GAAG,CAAC,MAAM,EAAE,KAAK,EAAE,SAAS,EAAE,SAAS,CAAC;YACtD,IAAI,KAAK,KAAK,SAAS,IAAI,KAAK,CAAC,EAAE,KAAK,EAAE,EAAE,CAAC;gBAC3C,oEAAoE;gBACpE,mEAAmE;gBACnE,+DAA+D;gBAC/D,MAAM,IAAI,YAAY,CAAC,qBAAqB,EAAE,IAAI,CAAC,eAAe,CAAC,CAAC;YACtE,CAAC;YACD,OAAO;gBACL,UAAU,EAAE,KAAK,CAAC,EAAE;gBACpB,WAAW,EAAE,MAAM;gBACnB,MAAM,EAAE,EAAE;gBACV,QAAQ,EAAE,KAAK;gBACf,GAAG,CAAC,KAAK,CAAC,KAAK,KAAK,EAAE,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,KAAK,CAAC,KAAK,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;gBACrD,GAAG,CAAC,KAAK,CAAC,WAAW,KAAK,EAAE,CAAC,CAAC,CAAC,EAAE,WAAW,EAAE,KAAK,CAAC,WAAW,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;aACxE,CAAC;QACJ,CAAC;KACF,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Artifact domain constants — byte-pinned values and wire copy from
|
|
3
|
+
* pkg/domain/artifact. The error formats are asserted by the conformance
|
|
4
|
+
* suite (get NotFound copy, deleted-blob copy) and shown verbatim by
|
|
5
|
+
* clients — never reword.
|
|
6
|
+
*/
|
|
7
|
+
/** Go kind string on the built resource. */
|
|
8
|
+
export declare const ARTIFACT_KIND = "Artifact";
|
|
9
|
+
/**
|
|
10
|
+
* Go maxContentBytes (50 MB): the domain-level content cap →
|
|
11
|
+
* ResourceExhausted. Sits BEHIND the transport's 10MB message cap, so it
|
|
12
|
+
* is not wire-assertable from the reference client — the arm stays
|
|
13
|
+
* unit-level in both editions (the wave-2 S1 amendment).
|
|
14
|
+
*/
|
|
15
|
+
export declare const MAX_CONTENT_BYTES: number;
|
|
16
|
+
/** Go defaultTTLDays: expires_at defaults ~30 days out. */
|
|
17
|
+
export declare const DEFAULT_TTL_DAYS = 30;
|
|
18
|
+
/** Go permanentTTLMarker: retention.ttl_days = -1 means never expires. */
|
|
19
|
+
export declare const PERMANENT_TTL_MARKER = -1;
|
|
20
|
+
/**
|
|
21
|
+
* Go DefaultMaxContentBytes (512 KB): getContent's default/implicit cap,
|
|
22
|
+
* matching AgentExecutionController.GetArtifactContent so the two
|
|
23
|
+
* content-read endpoints behave identically from a client's perspective.
|
|
24
|
+
*/
|
|
25
|
+
export declare const DEFAULT_MAX_CONTENT_BYTES: bigint;
|
|
26
|
+
/**
|
|
27
|
+
* Go downloadURLExpiration (7 days — the R2 maximum). Reported as
|
|
28
|
+
* ttl_seconds UNCONDITIONALLY, even by the local backend whose URLs never
|
|
29
|
+
* expire — the ratified P3 wire pin.
|
|
30
|
+
*/
|
|
31
|
+
export declare const DOWNLOAD_URL_EXPIRATION_MS: number;
|
|
32
|
+
/** Go: status.Errorf(codes.NotFound, "Artifact not found: %s", id). */
|
|
33
|
+
export declare function artifactNotFoundMessage(artifactId: string): string;
|
|
34
|
+
/** Go: "artifact blob has been deleted: %s" (FailedPrecondition). */
|
|
35
|
+
export declare function artifactBlobDeletedMessage(artifactId: string): string;
|
|
36
|
+
//# sourceMappingURL=constants.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../src/domain/artifact/constants.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,4CAA4C;AAC5C,eAAO,MAAM,aAAa,aAAa,CAAC;AAExC;;;;;GAKG;AACH,eAAO,MAAM,iBAAiB,QAAmB,CAAC;AAElD,2DAA2D;AAC3D,eAAO,MAAM,gBAAgB,KAAK,CAAC;AAEnC,0EAA0E;AAC1E,eAAO,MAAM,oBAAoB,KAAK,CAAC;AAEvC;;;;GAIG;AACH,eAAO,MAAM,yBAAyB,QAAe,CAAC;AAEtD;;;;GAIG;AACH,eAAO,MAAM,0BAA0B,QAA0B,CAAC;AAElE,uEAAuE;AACvE,wBAAgB,uBAAuB,CAAC,UAAU,EAAE,MAAM,GAAG,MAAM,CAElE;AAED,qEAAqE;AACrE,wBAAgB,0BAA0B,CAAC,UAAU,EAAE,MAAM,GAAG,MAAM,CAErE"}
|