@atolis-hq/wake 0.4.2 → 0.4.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +9 -0
- package/dist/src/activities/agent/agent-activity-definition.d.ts +9 -0
- package/dist/src/activities/agent/agent-activity.d.ts +51 -0
- package/dist/src/activities/agent/agent-result.d.ts +43 -0
- package/dist/src/activities/contracts/activity.d.ts +184 -0
- package/dist/src/activities/contracts/config.d.ts +3 -0
- package/dist/src/activities/contracts/decision-claim-schema.d.ts +35 -0
- package/dist/src/activities/contracts/decision-claim-schema.js +42 -0
- package/dist/src/activities/contracts/event-factory.d.ts +6 -0
- package/dist/src/activities/contracts/event-factory.js +40 -0
- package/dist/src/activities/contracts/event-integrity.d.ts +61 -0
- package/dist/src/activities/contracts/event-integrity.js +50 -0
- package/dist/src/activities/contracts/event-schema.d.ts +2803 -0
- package/dist/src/activities/contracts/event-schema.js +67 -121
- package/dist/src/activities/contracts/events.d.ts +153 -0
- package/dist/src/activities/contracts/events.js +4 -4
- package/dist/src/activities/contracts/identifiers.d.ts +5 -0
- package/dist/src/activities/contracts/registry.d.ts +19 -0
- package/dist/src/activities/contracts/streams.d.ts +13 -0
- package/dist/src/activities/contracts/vocabulary.d.ts +69 -0
- package/dist/src/activities/index.d.ts +23 -0
- package/dist/src/activities/index.js +1 -0
- package/dist/src/activities/issue/complete.d.ts +26 -0
- package/dist/src/activities/issue/complete.js +5 -5
- package/dist/src/activities/pr/activity-support.d.ts +38 -0
- package/dist/src/activities/pr/activity-support.js +1 -1
- package/dist/src/activities/pr/application.d.ts +17 -0
- package/dist/src/activities/pr/application.js +6 -6
- package/dist/src/activities/pr/approve.d.ts +7 -0
- package/dist/src/activities/pr/approve.js +8 -3
- package/dist/src/activities/pr/capability.d.ts +2 -0
- package/dist/src/activities/pr/contracts.d.ts +133 -0
- package/dist/src/activities/pr/decision-claim.d.ts +26 -0
- package/dist/src/activities/pr/decision-claim.js +50 -30
- package/dist/src/activities/pr/event-data.d.ts +21 -0
- package/dist/src/activities/pr/event-data.js +101 -0
- package/dist/src/activities/pr/intent.d.ts +12 -0
- package/dist/src/activities/pr/intent.js +5 -5
- package/dist/src/activities/pr/merge-authority-gate.d.ts +13 -0
- package/dist/src/activities/pr/merge-authority-gate.js +1 -1
- package/dist/src/activities/pr/merge.d.ts +7 -0
- package/dist/src/activities/pr/merge.js +8 -3
- package/dist/src/activities/pr/policy.d.ts +13 -0
- package/dist/src/activities/pr/projection.d.ts +5 -0
- package/dist/src/activities/pr/projection.js +18 -17
- package/dist/src/activities/pr/vocabulary.d.ts +34 -0
- package/dist/src/activities/review/authorization.d.ts +9 -0
- package/dist/src/activities/review/contracts.d.ts +46 -0
- package/dist/src/activities/review/signals.d.ts +2 -0
- package/dist/src/bootstrap/activation-scheduler-serialiser.d.ts +3 -0
- package/dist/src/bootstrap/activation-scheduler-serialiser.js +8 -0
- package/dist/src/bootstrap/activity-registry.d.ts +4 -0
- package/dist/src/bootstrap/analytics-projection.d.ts +12 -0
- package/dist/src/bootstrap/analytics-projection.js +3 -3
- package/dist/src/bootstrap/board-projection.d.ts +56 -0
- package/dist/src/bootstrap/board-projection.js +156 -71
- package/dist/src/bootstrap/composition-root.d.ts +76 -0
- package/dist/src/bootstrap/composition-root.js +20 -13
- package/dist/src/bootstrap/config/load-config.d.ts +6 -0
- package/dist/src/bootstrap/config/root-schema.d.ts +443 -0
- package/dist/src/bootstrap/event-processor-runtime.d.ts +22 -0
- package/dist/src/bootstrap/event-processor-runtime.js +88 -0
- package/dist/src/bootstrap/external-ref.d.ts +3 -0
- package/dist/src/bootstrap/fake-provider-files.d.ts +3 -0
- package/dist/src/bootstrap/fake-scenarios.d.ts +3 -0
- package/dist/src/bootstrap/index.d.ts +27 -0
- package/dist/src/bootstrap/index.js +2 -28
- package/dist/src/bootstrap/initialise.d.ts +4 -0
- package/dist/src/bootstrap/initialise.js +8 -16
- package/dist/src/bootstrap/integration-runtime.d.ts +48 -0
- package/dist/src/bootstrap/integration-runtime.js +36 -54
- package/dist/src/bootstrap/paths.d.ts +12 -0
- package/dist/src/bootstrap/persistence-composition.d.ts +21 -0
- package/dist/src/bootstrap/persistence-composition.js +12 -4
- package/dist/src/bootstrap/projection-runtime.d.ts +16 -0
- package/dist/src/bootstrap/projection-runtime.js +50 -23
- package/dist/src/bootstrap/resource-transition-evidence.d.ts +11 -0
- package/dist/src/bootstrap/runner-quota-reporter.d.ts +6 -0
- package/dist/src/bootstrap/runner-quota-reporter.js +16 -11
- package/dist/src/bootstrap/runner-registry.d.ts +3 -0
- package/dist/src/bootstrap/runner-tick-adapter.d.ts +16 -0
- package/dist/src/bootstrap/runner-tick-adapter.js +57 -0
- package/dist/src/bootstrap/schedule-checkpoint-store.d.ts +9 -0
- package/dist/src/bootstrap/self-update-application.d.ts +54 -0
- package/dist/src/bootstrap/self-update-failure-log.d.ts +17 -0
- package/dist/src/bootstrap/source-update-port.d.ts +8 -0
- package/dist/src/bootstrap/status-publish-activity.d.ts +7 -0
- package/dist/src/bootstrap/status-publish-activity.js +4 -5
- package/dist/src/bootstrap/surface-api-applications.d.ts +18 -0
- package/dist/src/bootstrap/surface-api-applications.js +104 -57
- package/dist/src/bootstrap/surface-api-execution-applications.d.ts +3 -0
- package/dist/src/bootstrap/surface-api-execution-applications.js +3 -3
- package/dist/src/bootstrap/surface-api-metadata.d.ts +4 -0
- package/dist/src/bootstrap/surface-api-metadata.js +1 -1
- package/dist/src/bootstrap/surface-api-projection-pages.d.ts +12 -0
- package/dist/src/bootstrap/surface-api-run-context.d.ts +12 -0
- package/dist/src/bootstrap/surface-api-transcripts.d.ts +10 -0
- package/dist/src/bootstrap/surface-api-work-applications.d.ts +3 -0
- package/dist/src/bootstrap/surface-api-work-applications.js +3 -3
- package/dist/src/bootstrap/surface-api-workflow-diagrams.d.ts +11 -0
- package/dist/src/bootstrap/surface-api-workflow-diagrams.js +2 -2
- package/dist/src/bootstrap/surface-applications.d.ts +10 -0
- package/dist/src/bootstrap/surface-cli-applications.d.ts +33 -0
- package/dist/src/bootstrap/surface-cli-applications.js +151 -65
- package/dist/src/bootstrap/transcript-retention.d.ts +11 -0
- package/dist/src/bootstrap/update-ledger.d.ts +9 -0
- package/dist/src/bootstrap/update-maintenance-lease.d.ts +24 -0
- package/dist/src/bootstrap/update-maintenance-lease.js +1 -1
- package/dist/src/bootstrap/version.d.ts +13 -0
- package/dist/src/bootstrap/version.js +1 -1
- package/dist/src/control-plane/application/activation-scheduler-ports.d.ts +71 -0
- package/dist/src/control-plane/application/activation-scheduler-subscriber.d.ts +42 -0
- package/dist/src/control-plane/application/activation-scheduler-subscriber.js +111 -0
- package/dist/src/control-plane/application/activation-scheduler.d.ts +8 -0
- package/dist/src/control-plane/application/activation-scheduler.js +165 -0
- package/dist/src/control-plane/application/advance-once-dispatch.d.ts +46 -0
- package/dist/src/control-plane/application/advance-once-dispatch.js +6 -7
- package/dist/src/control-plane/application/advance-once.d.ts +5 -0
- package/dist/src/control-plane/application/advance-once.js +4 -158
- package/dist/src/control-plane/application/control-plane-projection.d.ts +21 -0
- package/dist/src/control-plane/application/control-plane-projection.js +27 -5
- package/dist/src/control-plane/application/control-plane-service.d.ts +12 -0
- package/dist/src/control-plane/application/control-plane-service.js +28 -9
- package/dist/src/control-plane/application/execution-reconciliation.d.ts +21 -0
- package/dist/src/control-plane/application/intake-pipeline.d.ts +18 -0
- package/dist/src/control-plane/application/intake-pipeline.js +8 -18
- package/dist/src/control-plane/application/runner-control-service.d.ts +12 -0
- package/dist/src/control-plane/application/runner-control-service.js +35 -13
- package/dist/src/control-plane/application/runner-pipeline.d.ts +24 -0
- package/dist/src/control-plane/application/runner-pipeline.js +23 -41
- package/dist/src/control-plane/application/schedule-service.d.ts +31 -0
- package/dist/src/control-plane/application/schedule-service.js +1 -1
- package/dist/src/control-plane/application/work-cancellation-policy.d.ts +20 -0
- package/dist/src/control-plane/application/work-cancellation-policy.js +1 -1
- package/dist/src/control-plane/contracts/commands.d.ts +20 -0
- package/dist/src/control-plane/contracts/config.d.ts +30 -0
- package/dist/src/control-plane/contracts/config.js +7 -1
- package/dist/src/control-plane/contracts/event-factory.d.ts +6 -0
- package/dist/src/control-plane/contracts/event-factory.js +14 -0
- package/dist/src/control-plane/contracts/events.d.ts +36 -0
- package/dist/src/control-plane/contracts/events.js +42 -47
- package/dist/src/control-plane/contracts/streams.d.ts +6 -0
- package/dist/src/control-plane/contracts/views.d.ts +28 -0
- package/dist/src/control-plane/domain/dispatch-policy.d.ts +18 -0
- package/dist/src/control-plane/domain/quota-policy.d.ts +21 -0
- package/dist/src/control-plane/domain/runner-quota.d.ts +2 -0
- package/dist/src/control-plane/domain/schedule-policy.d.ts +8 -0
- package/dist/src/control-plane/index.d.ts +24 -0
- package/dist/src/control-plane/index.js +3 -0
- package/dist/src/control-plane/infrastructure/intake-host.d.ts +19 -0
- package/dist/src/control-plane/infrastructure/intake-host.js +2 -3
- package/dist/src/control-plane/infrastructure/resident-host.d.ts +16 -0
- package/dist/src/control-plane/infrastructure/resident-host.js +3 -1
- package/dist/src/control-plane/infrastructure/tick-host.d.ts +6 -0
- package/dist/src/control-plane/infrastructure/tick-host.js +2 -2
- package/dist/src/conversations/application/conversation-projection.d.ts +3 -0
- package/dist/src/conversations/application/conversation-repository.d.ts +13 -0
- package/dist/src/conversations/application/conversation-repository.js +1 -1
- package/dist/src/conversations/application/conversation-service.d.ts +16 -0
- package/dist/src/conversations/application/conversation-service.js +32 -27
- package/dist/src/conversations/contracts/commands.d.ts +33 -0
- package/dist/src/conversations/contracts/event-factory.d.ts +6 -0
- package/dist/src/conversations/contracts/event-factory.js +18 -0
- package/dist/src/conversations/contracts/events.d.ts +42 -0
- package/dist/src/conversations/contracts/events.js +37 -24
- package/dist/src/conversations/contracts/identifiers.d.ts +5 -0
- package/dist/src/conversations/contracts/streams.d.ts +7 -0
- package/dist/src/conversations/contracts/views.d.ts +49 -0
- package/dist/src/conversations/contracts/vocabulary.d.ts +5 -0
- package/dist/src/conversations/domain/conversation.d.ts +4 -0
- package/dist/src/conversations/domain/conversation.js +8 -7
- package/dist/src/conversations/index.d.ts +9 -0
- package/dist/src/conversations/index.js +1 -0
- package/dist/src/execution/application/activation-claim.d.ts +23 -0
- package/dist/src/execution/application/activation-claim.js +8 -9
- package/dist/src/execution/application/active-run-cancellation.d.ts +4 -0
- package/dist/src/execution/application/active-run-cancellation.js +2 -2
- package/dist/src/execution/application/execution-activity.d.ts +61 -0
- package/dist/src/execution/application/execution-activity.js +4 -1
- package/dist/src/execution/application/execution-projection.d.ts +11 -0
- package/dist/src/execution/application/execution-projection.js +8 -4
- package/dist/src/execution/application/execution-service.d.ts +33 -0
- package/dist/src/execution/application/execution-service.js +288 -59
- package/dist/src/execution/application/execution-validation.d.ts +8 -0
- package/dist/src/execution/application/execution-validation.js +3 -2
- package/dist/src/execution/application/recovery-service.d.ts +52 -0
- package/dist/src/execution/application/recovery-service.js +32 -17
- package/dist/src/execution/application/run-lifecycle.d.ts +75 -0
- package/dist/src/execution/application/run-lifecycle.js +130 -62
- package/dist/src/execution/application/run-liveness-service.d.ts +14 -0
- package/dist/src/execution/application/run-liveness-service.js +68 -30
- package/dist/src/execution/application/run-repository.d.ts +18 -0
- package/dist/src/execution/application/run-repository.js +2 -2
- package/dist/src/execution/contracts/commands.d.ts +30 -0
- package/dist/src/execution/contracts/config.d.ts +94 -0
- package/dist/src/execution/contracts/control-plane.d.ts +10 -0
- package/dist/src/execution/contracts/event-factory.d.ts +10 -0
- package/dist/src/execution/contracts/event-factory.js +20 -31
- package/dist/src/execution/contracts/events.d.ts +198 -0
- package/dist/src/execution/contracts/events.js +152 -129
- package/dist/src/execution/contracts/identifiers.d.ts +3 -0
- package/dist/src/execution/contracts/liveness.d.ts +17 -0
- package/dist/src/execution/contracts/results.d.ts +23 -0
- package/dist/src/execution/contracts/runner.d.ts +78 -0
- package/dist/src/execution/contracts/streams.d.ts +12 -0
- package/dist/src/execution/contracts/views.d.ts +42 -0
- package/dist/src/execution/contracts/vocabulary.d.ts +50 -0
- package/dist/src/execution/contracts/vocabulary.js +4 -0
- package/dist/src/execution/contracts/workspace.d.ts +48 -0
- package/dist/src/execution/domain/run-result.d.ts +2 -0
- package/dist/src/execution/domain/run.d.ts +3 -0
- package/dist/src/execution/domain/run.js +72 -22
- package/dist/src/execution/index.d.ts +34 -0
- package/dist/src/execution/infrastructure/agent-runner-adapter.d.ts +2 -0
- package/dist/src/execution/infrastructure/codex-stop-hook.d.ts +13 -0
- package/dist/src/execution/infrastructure/process-execution.d.ts +23 -0
- package/dist/src/execution/infrastructure/prompt-templates.d.ts +15 -0
- package/dist/src/execution/infrastructure/runner-memory-profile.d.ts +11 -0
- package/dist/src/execution/infrastructure/runners/claude.d.ts +34 -0
- package/dist/src/execution/infrastructure/runners/codex.d.ts +13 -0
- package/dist/src/execution/infrastructure/runners/command.d.ts +3 -0
- package/dist/src/execution/infrastructure/runners/cursor.d.ts +12 -0
- package/dist/src/execution/infrastructure/runners/fake-scenarios.d.ts +35 -0
- package/dist/src/execution/infrastructure/runners/fake.d.ts +8 -0
- package/dist/src/execution/infrastructure/runners/registry.d.ts +14 -0
- package/dist/src/execution/infrastructure/transcript-store.d.ts +48 -0
- package/dist/src/execution/infrastructure/transcripts.d.ts +1 -0
- package/dist/src/execution/infrastructure/workspace/fake-workspace.d.ts +36 -0
- package/dist/src/execution/infrastructure/workspace/fake-workspace.js +2 -0
- package/dist/src/execution/infrastructure/workspace/git-workspace.d.ts +29 -0
- package/dist/src/execution/infrastructure/workspace/git-workspace.js +21 -11
- package/dist/src/execution/infrastructure/workspace/prepare-workspace.d.ts +3 -0
- package/dist/src/execution/infrastructure/workspace/prepare-workspace.js +4 -2
- package/dist/src/integrations/application/adapter-health-tracker.d.ts +17 -0
- package/dist/src/integrations/application/agent-run-publication-reactor.d.ts +25 -0
- package/dist/src/integrations/application/agent-run-publication-reactor.js +36 -20
- package/dist/src/integrations/application/artifact-registration-reactor.d.ts +32 -0
- package/dist/src/integrations/application/artifact-registration-reactor.js +43 -35
- package/dist/src/integrations/application/poll-service.d.ts +13 -0
- package/dist/src/integrations/application/poll-service.js +2 -2
- package/dist/src/integrations/application/terminal-agent-run-report.d.ts +33 -0
- package/dist/src/integrations/application/work-admission.d.ts +30 -0
- package/dist/src/integrations/application/work-conclusion.d.ts +13 -0
- package/dist/src/integrations/contracts/artifact-event-factory.d.ts +6 -0
- package/dist/src/integrations/contracts/artifact-event-factory.js +8 -0
- package/dist/src/integrations/contracts/artifact-events.d.ts +31 -0
- package/dist/src/integrations/contracts/artifact-events.js +24 -24
- package/dist/src/integrations/contracts/artifact-vocabulary.d.ts +11 -0
- package/dist/src/integrations/contracts/config.d.ts +13 -0
- package/dist/src/integrations/contracts/identifiers.d.ts +3 -0
- package/dist/src/integrations/contracts/intake-rules.d.ts +15 -0
- package/dist/src/integrations/contracts/intake.d.ts +15 -0
- package/dist/src/integrations/contracts/outcome-vocabulary.d.ts +6 -0
- package/dist/src/integrations/contracts/provider.d.ts +105 -0
- package/dist/src/integrations/contracts/reply-routing.d.ts +31 -0
- package/dist/src/integrations/contracts/streams.d.ts +12 -0
- package/dist/src/integrations/delivery/application/delivery-outcome-reactor.d.ts +24 -0
- package/dist/src/integrations/delivery/application/delivery-outcome-reactor.js +151 -73
- package/dist/src/integrations/delivery/application/delivery-projector.d.ts +5 -0
- package/dist/src/integrations/delivery/application/delivery-projector.js +52 -52
- package/dist/src/integrations/delivery/application/delivery-service.d.ts +40 -0
- package/dist/src/integrations/delivery/application/delivery-service.js +15 -16
- package/dist/src/integrations/delivery/contracts/commands.d.ts +7 -0
- package/dist/src/integrations/delivery/contracts/config.d.ts +25 -0
- package/dist/src/integrations/delivery/contracts/event-factory.d.ts +11 -0
- package/dist/src/integrations/delivery/contracts/event-factory.js +20 -9
- package/dist/src/integrations/delivery/contracts/events.d.ts +46 -0
- package/dist/src/integrations/delivery/contracts/events.js +33 -18
- package/dist/src/integrations/delivery/contracts/intents.d.ts +54 -0
- package/dist/src/integrations/delivery/contracts/intents.js +21 -14
- package/dist/src/integrations/delivery/contracts/views.d.ts +47 -0
- package/dist/src/integrations/delivery/contracts/vocabulary.d.ts +25 -0
- package/dist/src/integrations/fake/durable-delivery-provider.d.ts +29 -0
- package/dist/src/integrations/fake/external-sink.d.ts +5 -0
- package/dist/src/integrations/fake/external-source.d.ts +30 -0
- package/dist/src/integrations/fake/external-source.js +1 -3
- package/dist/src/integrations/fake/inbound-translator.d.ts +16 -0
- package/dist/src/integrations/fake/inbound-translator.js +22 -10
- package/dist/src/integrations/fake/provider.d.ts +38 -0
- package/dist/src/integrations/fake/provider.js +3 -1
- package/dist/src/integrations/github/application/agent-context-reader.d.ts +6 -0
- package/dist/src/integrations/github/application/agent-context-reader.js +10 -7
- package/dist/src/integrations/github/application/agent-run-comment.d.ts +22 -0
- package/dist/src/integrations/github/application/comment-history-reader.d.ts +25 -0
- package/dist/src/integrations/github/application/comment-history-reader.js +36 -32
- package/dist/src/integrations/github/application/delivery-marker.d.ts +2 -0
- package/dist/src/integrations/github/application/inbound-comment-syntax.d.ts +8 -0
- package/dist/src/integrations/github/application/inbound-context.d.ts +3 -0
- package/dist/src/integrations/github/application/inbound-context.js +4 -4
- package/dist/src/integrations/github/application/inbound-review-signals.d.ts +21 -0
- package/dist/src/integrations/github/application/inbound-review-signals.js +30 -25
- package/dist/src/integrations/github/application/inbound-translator.d.ts +103 -0
- package/dist/src/integrations/github/application/inbound-translator.js +149 -160
- package/dist/src/integrations/github/application/inbound-watch-gate-signals.d.ts +10 -0
- package/dist/src/integrations/github/application/inbound-watch-gate-signals.js +4 -4
- package/dist/src/integrations/github/application/intake-policy.d.ts +7 -0
- package/dist/src/integrations/github/application/operator-retry-command.d.ts +1 -0
- package/dist/src/integrations/github/application/outbound-translator.d.ts +19 -0
- package/dist/src/integrations/github/application/poll-service.d.ts +11 -0
- package/dist/src/integrations/github/application/poll-service.js +11 -2
- package/dist/src/integrations/github/application/pull-request-translation.d.ts +5 -0
- package/dist/src/integrations/github/application/reply-target-selector.d.ts +8 -0
- package/dist/src/integrations/github/application/resource-links.d.ts +2 -0
- package/dist/src/integrations/github/application/review-command-translator.d.ts +14 -0
- package/dist/src/integrations/github/application/wake-labels.d.ts +29 -0
- package/dist/src/integrations/github/contracts/check-evidence.d.ts +1 -0
- package/dist/src/integrations/github/contracts/config.d.ts +81 -0
- package/dist/src/integrations/github/contracts/event-factory.d.ts +6 -0
- package/dist/src/integrations/github/contracts/event-factory.js +26 -0
- package/dist/src/integrations/github/contracts/events.d.ts +135 -0
- package/dist/src/integrations/github/contracts/events.js +118 -132
- package/dist/src/integrations/github/contracts/external-key.d.ts +8 -0
- package/dist/src/integrations/github/contracts/issue-query.d.ts +5 -0
- package/dist/src/integrations/github/contracts/payloads.d.ts +74 -0
- package/dist/src/integrations/github/contracts/vocabulary.d.ts +64 -0
- package/dist/src/integrations/github/index.d.ts +34 -0
- package/dist/src/integrations/github/index.js +1 -0
- package/dist/src/integrations/github/infrastructure/adapter-health-registry.d.ts +11 -0
- package/dist/src/integrations/github/infrastructure/bounded-fetch.d.ts +10 -0
- package/dist/src/integrations/github/infrastructure/client-reads.d.ts +255 -0
- package/dist/src/integrations/github/infrastructure/client.d.ts +263 -0
- package/dist/src/integrations/github/infrastructure/comment-source.d.ts +7 -0
- package/dist/src/integrations/github/infrastructure/content-fingerprint.d.ts +2 -0
- package/dist/src/integrations/github/infrastructure/delivery.d.ts +6 -0
- package/dist/src/integrations/github/infrastructure/etag-cache.d.ts +29 -0
- package/dist/src/integrations/github/infrastructure/gh-auth.d.ts +4 -0
- package/dist/src/integrations/github/infrastructure/issue-source.d.ts +20 -0
- package/dist/src/integrations/github/infrastructure/issue-source.js +10 -6
- package/dist/src/integrations/github/infrastructure/poll-watermark.d.ts +12 -0
- package/dist/src/integrations/github/infrastructure/pr-source.d.ts +16 -0
- package/dist/src/integrations/github/infrastructure/pr-source.js +6 -4
- package/dist/src/integrations/github/infrastructure/request-coordinator.d.ts +13 -0
- package/dist/src/integrations/github/infrastructure/review-source.d.ts +10 -0
- package/dist/src/integrations/github/infrastructure/review-source.js +29 -25
- package/dist/src/integrations/github/infrastructure/source-contracts.d.ts +22 -0
- package/dist/src/integrations/github/infrastructure/source.d.ts +12 -0
- package/dist/src/integrations/github/infrastructure/source.js +3 -5
- package/dist/src/integrations/github/provider.d.ts +3 -0
- package/dist/src/integrations/github/provider.js +14 -12
- package/dist/src/integrations/index.d.ts +32 -0
- package/dist/src/integrations/index.js +1 -0
- package/dist/src/kernel/contracts/clock.d.ts +3 -0
- package/dist/src/kernel/contracts/id-generator.d.ts +3 -0
- package/dist/src/kernel/contracts/identifiers.d.ts +7 -0
- package/dist/src/kernel/contracts/identifiers.js +1 -8
- package/dist/src/kernel/contracts/relations.d.ts +14 -0
- package/dist/src/kernel/contracts/schema.d.ts +3 -0
- package/dist/src/kernel/contracts/vocabulary.d.ts +7 -0
- package/dist/src/kernel/domain/match-mode.d.ts +2 -0
- package/dist/src/kernel/domain/relation.d.ts +9 -0
- package/dist/src/kernel/index.d.ts +10 -0
- package/dist/src/kernel/index.js +0 -11
- package/dist/src/kernel/infrastructure/system-clock.d.ts +4 -0
- package/dist/src/kernel/infrastructure/ulid-id-generator.d.ts +4 -0
- package/dist/src/main.d.ts +14 -0
- package/dist/src/node_modules/@atolis-hq/eventing/LICENSE +201 -0
- package/dist/src/node_modules/@atolis-hq/eventing/README.md +41 -0
- package/dist/src/node_modules/@atolis-hq/eventing/dist/contracts/commands.d.ts +9 -0
- package/dist/src/node_modules/@atolis-hq/eventing/dist/contracts/commands.d.ts.map +1 -0
- package/dist/src/node_modules/@atolis-hq/eventing/dist/contracts/event-envelope.d.ts +13 -0
- package/dist/src/node_modules/@atolis-hq/eventing/dist/contracts/event-envelope.d.ts.map +1 -0
- package/dist/src/{kernel/domain → node_modules/@atolis-hq/eventing/dist/contracts}/event-envelope.js +4 -4
- package/dist/src/node_modules/@atolis-hq/eventing/dist/contracts/event-schema.d.ts +83 -0
- package/dist/src/node_modules/@atolis-hq/eventing/dist/contracts/event-schema.d.ts.map +1 -0
- package/dist/src/{kernel → node_modules/@atolis-hq/eventing/dist}/contracts/event-schema.js +21 -5
- package/dist/src/node_modules/@atolis-hq/eventing/dist/contracts/events.d.ts +46 -0
- package/dist/src/node_modules/@atolis-hq/eventing/dist/contracts/events.d.ts.map +1 -0
- package/dist/src/node_modules/@atolis-hq/eventing/dist/contracts/events.js +10 -0
- package/dist/src/node_modules/@atolis-hq/eventing/dist/contracts/identifiers.d.ts +11 -0
- package/dist/src/node_modules/@atolis-hq/eventing/dist/contracts/identifiers.d.ts.map +1 -0
- package/dist/src/node_modules/@atolis-hq/eventing/dist/contracts/identifiers.js +8 -0
- package/dist/src/node_modules/@atolis-hq/eventing/dist/contracts/processor-state-store.d.ts +11 -0
- package/dist/src/node_modules/@atolis-hq/eventing/dist/contracts/processor-state-store.d.ts.map +1 -0
- package/dist/src/node_modules/@atolis-hq/eventing/dist/index.d.ts +19 -0
- package/dist/src/node_modules/@atolis-hq/eventing/dist/index.d.ts.map +1 -0
- package/dist/src/node_modules/@atolis-hq/eventing/dist/index.js +17 -0
- package/dist/src/node_modules/@atolis-hq/eventing/dist/memory/in-memory-checkpoint-store.d.ts +8 -0
- package/dist/src/node_modules/@atolis-hq/eventing/dist/memory/in-memory-checkpoint-store.d.ts.map +1 -0
- package/dist/src/node_modules/@atolis-hq/eventing/dist/memory/in-memory-event-journal.d.ts +19 -0
- package/dist/src/node_modules/@atolis-hq/eventing/dist/memory/in-memory-event-journal.d.ts.map +1 -0
- package/dist/src/node_modules/@atolis-hq/eventing/dist/memory/in-memory-event-journal.js +82 -0
- package/dist/src/node_modules/@atolis-hq/eventing/dist/memory/in-memory-processor-run-serialiser.d.ts +6 -0
- package/dist/src/node_modules/@atolis-hq/eventing/dist/memory/in-memory-processor-run-serialiser.d.ts.map +1 -0
- package/dist/src/node_modules/@atolis-hq/eventing/dist/memory/in-memory-processor-run-serialiser.js +26 -0
- package/dist/src/node_modules/@atolis-hq/eventing/dist/memory/in-memory-processor-state-store.d.ts +8 -0
- package/dist/src/node_modules/@atolis-hq/eventing/dist/memory/in-memory-processor-state-store.d.ts.map +1 -0
- package/dist/src/node_modules/@atolis-hq/eventing/dist/memory/in-memory-processor-state-store.js +20 -0
- package/dist/src/node_modules/@atolis-hq/eventing/dist/memory/in-memory-projection-store.d.ts +9 -0
- package/dist/src/node_modules/@atolis-hq/eventing/dist/memory/in-memory-projection-store.d.ts.map +1 -0
- package/dist/src/{persistence → node_modules/@atolis-hq/eventing/dist}/memory/in-memory-projection-store.js +2 -1
- package/dist/src/node_modules/@atolis-hq/eventing/dist/memory/in-process-journal-change-signal.d.ts +10 -0
- package/dist/src/node_modules/@atolis-hq/eventing/dist/memory/in-process-journal-change-signal.d.ts.map +1 -0
- package/dist/src/{kernel/infrastructure/journal-change-signal.js → node_modules/@atolis-hq/eventing/dist/memory/in-process-journal-change-signal.js} +5 -2
- package/dist/src/node_modules/@atolis-hq/eventing/dist/memory.d.ts +7 -0
- package/dist/src/node_modules/@atolis-hq/eventing/dist/memory.d.ts.map +1 -0
- package/dist/src/node_modules/@atolis-hq/eventing/dist/memory.js +6 -0
- package/dist/src/node_modules/@atolis-hq/eventing/dist/projections/projection-processor.d.ts +20 -0
- package/dist/src/node_modules/@atolis-hq/eventing/dist/projections/projection-processor.d.ts.map +1 -0
- package/dist/src/node_modules/@atolis-hq/eventing/dist/projections/projection-processor.js +83 -0
- package/dist/src/node_modules/@atolis-hq/eventing/dist/projections/projection-store.d.ts +22 -0
- package/dist/src/node_modules/@atolis-hq/eventing/dist/projections/projection-store.d.ts.map +1 -0
- package/dist/src/node_modules/@atolis-hq/eventing/dist/runtime/cached-journal-view.d.ts +8 -0
- package/dist/src/node_modules/@atolis-hq/eventing/dist/runtime/cached-journal-view.d.ts.map +1 -0
- package/dist/src/node_modules/@atolis-hq/eventing/dist/runtime/cached-journal-view.js +24 -0
- package/dist/src/node_modules/@atolis-hq/eventing/dist/runtime/clock.d.ts +4 -0
- package/dist/src/node_modules/@atolis-hq/eventing/dist/runtime/clock.d.ts.map +1 -0
- package/dist/src/node_modules/@atolis-hq/eventing/dist/runtime/event-processor-host.d.ts +39 -0
- package/dist/src/node_modules/@atolis-hq/eventing/dist/runtime/event-processor-host.d.ts.map +1 -0
- package/dist/src/node_modules/@atolis-hq/eventing/dist/runtime/event-processor-host.js +168 -0
- package/dist/src/node_modules/@atolis-hq/eventing/dist/runtime/processor-health.d.ts +43 -0
- package/dist/src/node_modules/@atolis-hq/eventing/dist/runtime/processor-health.d.ts.map +1 -0
- package/dist/src/node_modules/@atolis-hq/eventing/dist/runtime/processor-health.js +66 -0
- package/dist/src/node_modules/@atolis-hq/eventing/dist/runtime/processor-run-serialiser.d.ts +2 -0
- package/dist/src/node_modules/@atolis-hq/eventing/dist/runtime/processor-run-serialiser.d.ts.map +1 -0
- package/dist/src/node_modules/@atolis-hq/eventing/dist/runtime/processor-run-serialiser.js +1 -0
- package/dist/src/node_modules/@atolis-hq/eventing/dist/runtime/processor-validation.d.ts +7 -0
- package/dist/src/node_modules/@atolis-hq/eventing/dist/runtime/processor-validation.d.ts.map +1 -0
- package/dist/src/node_modules/@atolis-hq/eventing/dist/runtime/processor-validation.js +43 -0
- package/dist/src/node_modules/@atolis-hq/eventing/dist/store/checkpoint-store.d.ts +6 -0
- package/dist/src/node_modules/@atolis-hq/eventing/dist/store/checkpoint-store.d.ts.map +1 -0
- package/dist/src/node_modules/@atolis-hq/eventing/dist/store/checkpoint-store.js +1 -0
- package/dist/src/node_modules/@atolis-hq/eventing/dist/store/event-journal.d.ts +14 -0
- package/dist/src/node_modules/@atolis-hq/eventing/dist/store/event-journal.d.ts.map +1 -0
- package/dist/src/node_modules/@atolis-hq/eventing/dist/subscriptions/event-processor.d.ts +49 -0
- package/dist/src/node_modules/@atolis-hq/eventing/dist/subscriptions/event-processor.d.ts.map +1 -0
- package/dist/src/node_modules/@atolis-hq/eventing/dist/subscriptions/event-processor.js +17 -0
- package/dist/src/node_modules/@atolis-hq/eventing/dist/subscriptions/journal-change-signal.d.ts +6 -0
- package/dist/src/node_modules/@atolis-hq/eventing/dist/subscriptions/journal-change-signal.d.ts.map +1 -0
- package/dist/src/node_modules/@atolis-hq/eventing/dist/subscriptions/journal-change-signal.js +1 -0
- package/dist/src/node_modules/@atolis-hq/eventing/package.json +42 -0
- package/dist/src/node_modules/@atolis-hq/eventing-filesystem/LICENSE +201 -0
- package/dist/src/node_modules/@atolis-hq/eventing-filesystem/README.md +40 -0
- package/dist/src/node_modules/@atolis-hq/eventing-filesystem/dist/atomic-write.d.ts +23 -0
- package/dist/src/node_modules/@atolis-hq/eventing-filesystem/dist/atomic-write.d.ts.map +1 -0
- package/dist/src/node_modules/@atolis-hq/eventing-filesystem/dist/atomic-write.js +54 -0
- package/dist/src/node_modules/@atolis-hq/eventing-filesystem/dist/event-record-codec.d.ts +4 -0
- package/dist/src/node_modules/@atolis-hq/eventing-filesystem/dist/event-record-codec.d.ts.map +1 -0
- package/dist/src/node_modules/@atolis-hq/eventing-filesystem/dist/event-record-codec.js +50 -0
- package/dist/src/node_modules/@atolis-hq/eventing-filesystem/dist/file-checkpoint-store.d.ts +17 -0
- package/dist/src/node_modules/@atolis-hq/eventing-filesystem/dist/file-checkpoint-store.d.ts.map +1 -0
- package/dist/src/node_modules/@atolis-hq/eventing-filesystem/dist/file-checkpoint-store.js +99 -0
- package/dist/src/node_modules/@atolis-hq/eventing-filesystem/dist/file-event-journal.d.ts +51 -0
- package/dist/src/node_modules/@atolis-hq/eventing-filesystem/dist/file-event-journal.d.ts.map +1 -0
- package/dist/src/{persistence/filesystem → node_modules/@atolis-hq/eventing-filesystem/dist}/file-event-journal.js +185 -103
- package/dist/src/node_modules/@atolis-hq/eventing-filesystem/dist/file-lock.d.ts +34 -0
- package/dist/src/node_modules/@atolis-hq/eventing-filesystem/dist/file-lock.d.ts.map +1 -0
- package/dist/src/{persistence/filesystem → node_modules/@atolis-hq/eventing-filesystem/dist}/file-lock.js +10 -1
- package/dist/src/node_modules/@atolis-hq/eventing-filesystem/dist/file-processor-run-serialiser.d.ts +9 -0
- package/dist/src/node_modules/@atolis-hq/eventing-filesystem/dist/file-processor-run-serialiser.d.ts.map +1 -0
- package/dist/src/node_modules/@atolis-hq/eventing-filesystem/dist/file-processor-run-serialiser.js +82 -0
- package/dist/src/node_modules/@atolis-hq/eventing-filesystem/dist/file-processor-state-store.d.ts +12 -0
- package/dist/src/node_modules/@atolis-hq/eventing-filesystem/dist/file-processor-state-store.d.ts.map +1 -0
- package/dist/src/node_modules/@atolis-hq/eventing-filesystem/dist/file-processor-state-store.js +127 -0
- package/dist/src/node_modules/@atolis-hq/eventing-filesystem/dist/file-projection-store.d.ts +19 -0
- package/dist/src/node_modules/@atolis-hq/eventing-filesystem/dist/file-projection-store.d.ts.map +1 -0
- package/dist/src/node_modules/@atolis-hq/eventing-filesystem/dist/file-projection-store.js +219 -0
- package/dist/src/node_modules/@atolis-hq/eventing-filesystem/dist/index.d.ts +7 -0
- package/dist/src/node_modules/@atolis-hq/eventing-filesystem/dist/index.d.ts.map +1 -0
- package/dist/src/node_modules/@atolis-hq/eventing-filesystem/dist/index.js +6 -0
- package/dist/src/node_modules/@atolis-hq/eventing-filesystem/dist/processor-state-paths.d.ts +10 -0
- package/dist/src/node_modules/@atolis-hq/eventing-filesystem/dist/processor-state-paths.d.ts.map +1 -0
- package/dist/src/node_modules/@atolis-hq/eventing-filesystem/dist/processor-state-paths.js +27 -0
- package/dist/src/node_modules/@atolis-hq/eventing-filesystem/dist/processor-state-record.d.ts +8 -0
- package/dist/src/node_modules/@atolis-hq/eventing-filesystem/dist/processor-state-record.d.ts.map +1 -0
- package/dist/src/node_modules/@atolis-hq/eventing-filesystem/dist/processor-state-record.js +28 -0
- package/dist/src/node_modules/@atolis-hq/eventing-filesystem/dist/storage-name.d.ts +6 -0
- package/dist/src/node_modules/@atolis-hq/eventing-filesystem/dist/storage-name.d.ts.map +1 -0
- package/dist/src/node_modules/@atolis-hq/eventing-filesystem/dist/storage-name.js +34 -0
- package/dist/src/node_modules/@atolis-hq/eventing-filesystem/package.json +38 -0
- package/dist/src/orchestration/application/accept-activity-outcome.d.ts +18 -0
- package/dist/src/orchestration/application/accept-signal.d.ts +14 -0
- package/dist/src/orchestration/application/advance-workflow.d.ts +50 -0
- package/dist/src/orchestration/application/advance-workflow.js +7 -12
- package/dist/src/orchestration/application/coordination-claims.d.ts +17 -0
- package/dist/src/orchestration/application/coordination-claims.js +17 -20
- package/dist/src/orchestration/application/durable-append.d.ts +17 -0
- package/dist/src/orchestration/application/durable-append.js +1 -1
- package/dist/src/orchestration/application/group-budget-recorder.d.ts +9 -0
- package/dist/src/orchestration/application/group-budget-recorder.js +9 -6
- package/dist/src/orchestration/application/orchestration-projection.d.ts +6 -0
- package/dist/src/orchestration/application/orchestration-projection.js +6 -7
- package/dist/src/orchestration/application/orchestration-repository.d.ts +23 -0
- package/dist/src/orchestration/application/orchestration-repository.js +2 -2
- package/dist/src/orchestration/application/orchestration-service.d.ts +93 -0
- package/dist/src/orchestration/application/orchestration-service.js +10 -1
- package/dist/src/orchestration/application/pull-request-transition-evidence.d.ts +3 -0
- package/dist/src/orchestration/application/pull-request-transition-evidence.js +10 -10
- package/dist/src/orchestration/application/reactor-command-context.d.ts +5 -0
- package/dist/src/orchestration/application/reactor-command-context.js +9 -0
- package/dist/src/orchestration/application/request-child.d.ts +29 -0
- package/dist/src/orchestration/application/request-child.js +26 -10
- package/dist/src/orchestration/application/resource-transition-evidence.d.ts +18 -0
- package/dist/src/orchestration/application/resource-transition-matching.d.ts +19 -0
- package/dist/src/orchestration/application/resource-transition-matching.js +9 -3
- package/dist/src/orchestration/application/resource-transition-reactor.d.ts +16 -0
- package/dist/src/orchestration/application/resource-transition-reactor.js +21 -42
- package/dist/src/orchestration/application/signal-reactor.d.ts +11 -0
- package/dist/src/orchestration/application/start-workflow.d.ts +18 -0
- package/dist/src/orchestration/application/start-workflow.js +3 -4
- package/dist/src/orchestration/application/trigger-workflow-instance.d.ts +12 -0
- package/dist/src/orchestration/application/trigger-workflow-instance.js +1 -1
- package/dist/src/orchestration/application/watch-child-transitions.d.ts +2 -0
- package/dist/src/orchestration/application/watch-matching.d.ts +13 -0
- package/dist/src/orchestration/application/watch-matching.js +3 -3
- package/dist/src/orchestration/application/watch-reactor.d.ts +42 -0
- package/dist/src/orchestration/application/watch-reactor.js +36 -35
- package/dist/src/orchestration/application/workflow-definition-registry.d.ts +32 -0
- package/dist/src/orchestration/application/workflow-definition-registry.js +13 -11
- package/dist/src/orchestration/contracts/activity-outcome.d.ts +15 -0
- package/dist/src/orchestration/contracts/commands.d.ts +30 -0
- package/dist/src/orchestration/contracts/config.d.ts +356 -0
- package/dist/src/orchestration/contracts/event-decoder.d.ts +262 -0
- package/dist/src/orchestration/contracts/event-decoder.js +88 -64
- package/dist/src/orchestration/contracts/event-factory.d.ts +6 -0
- package/dist/src/orchestration/contracts/event-factory.js +64 -0
- package/dist/src/orchestration/contracts/events.d.ts +233 -0
- package/dist/src/orchestration/contracts/identifiers.d.ts +15 -0
- package/dist/src/orchestration/contracts/streams.d.ts +28 -0
- package/dist/src/orchestration/contracts/views.d.ts +68 -0
- package/dist/src/orchestration/contracts/vocabulary.d.ts +34 -0
- package/dist/src/orchestration/domain/activation-policy.d.ts +60 -0
- package/dist/src/orchestration/domain/activation-policy.js +34 -19
- package/dist/src/orchestration/domain/approval-defaults.d.ts +8 -0
- package/dist/src/orchestration/domain/child-policy.d.ts +20 -0
- package/dist/src/orchestration/domain/compiler.d.ts +3 -0
- package/dist/src/orchestration/domain/coordination-events.d.ts +18 -0
- package/dist/src/orchestration/domain/coordination-events.js +25 -11
- package/dist/src/orchestration/domain/decision-events.d.ts +33 -0
- package/dist/src/orchestration/domain/decision-events.js +26 -15
- package/dist/src/orchestration/domain/interpreter.d.ts +14 -0
- package/dist/src/orchestration/domain/interpreter.js +4 -1
- package/dist/src/orchestration/domain/operator-retry-policy.d.ts +14 -0
- package/dist/src/orchestration/domain/operator-retry-policy.js +29 -11
- package/dist/src/orchestration/domain/resource-transition-compiler.d.ts +8 -0
- package/dist/src/orchestration/domain/retry-policy.d.ts +7 -0
- package/dist/src/orchestration/domain/retry-policy.js +7 -4
- package/dist/src/orchestration/domain/runner-quota-retry-policy.d.ts +10 -0
- package/dist/src/orchestration/domain/runner-quota-retry-policy.js +21 -15
- package/dist/src/orchestration/domain/signal-policy.d.ts +11 -0
- package/dist/src/orchestration/domain/signal-policy.js +18 -7
- package/dist/src/orchestration/domain/supplemental-policy.d.ts +11 -0
- package/dist/src/orchestration/domain/supplemental-policy.js +29 -14
- package/dist/src/orchestration/domain/transition.d.ts +16 -0
- package/dist/src/orchestration/domain/transition.js +46 -28
- package/dist/src/orchestration/domain/workflow-graph.d.ts +4 -0
- package/dist/src/orchestration/domain/workflow-instance-events.d.ts +44 -0
- package/dist/src/orchestration/domain/workflow-instance.d.ts +7 -0
- package/dist/src/orchestration/domain/workflow-instance.js +29 -9
- package/dist/src/orchestration/domain/workflow-selector.d.ts +15 -0
- package/dist/src/orchestration/index.d.ts +27 -0
- package/dist/src/orchestration/index.js +1 -0
- package/dist/src/resources/application/lookup-projections.d.ts +6 -0
- package/dist/src/resources/application/lookup-projections.js +15 -15
- package/dist/src/resources/application/resource-correlation-retry.d.ts +16 -0
- package/dist/src/resources/application/resource-correlation-retry.js +39 -44
- package/dist/src/resources/application/resource-event-support.d.ts +12 -0
- package/dist/src/resources/application/resource-event-support.js +17 -0
- package/dist/src/resources/application/resource-lookup.d.ts +17 -0
- package/dist/src/resources/application/resource-lookup.js +9 -9
- package/dist/src/resources/application/resource-projections.d.ts +4 -0
- package/dist/src/resources/application/resource-projections.js +32 -24
- package/dist/src/resources/application/resource-repository.d.ts +16 -0
- package/dist/src/resources/application/resource-repository.js +3 -3
- package/dist/src/resources/application/resource-service.d.ts +34 -0
- package/dist/src/resources/application/resource-service.js +73 -52
- package/dist/src/resources/contracts/commands.d.ts +23 -0
- package/dist/src/resources/contracts/config.d.ts +3 -0
- package/dist/src/resources/contracts/event-factory.d.ts +6 -0
- package/dist/src/resources/contracts/event-factory.js +32 -0
- package/dist/src/resources/contracts/events.d.ts +79 -0
- package/dist/src/resources/contracts/events.js +94 -102
- package/dist/src/resources/contracts/identifiers.d.ts +7 -0
- package/dist/src/resources/contracts/streams.d.ts +8 -0
- package/dist/src/resources/contracts/views.d.ts +35 -0
- package/dist/src/resources/contracts/vocabulary.d.ts +50 -0
- package/dist/src/resources/domain/correlation.d.ts +6 -0
- package/dist/src/resources/domain/resource.d.ts +8 -0
- package/dist/src/resources/domain/resource.js +24 -21
- package/dist/src/resources/index.d.ts +15 -0
- package/dist/src/resources/index.js +1 -0
- package/dist/src/surfaces/api/contracts/activities.d.ts +1 -0
- package/dist/src/surfaces/api/contracts/board.d.ts +46 -0
- package/dist/src/surfaces/api/contracts/board.js +1 -1
- package/dist/src/surfaces/api/contracts/common.d.ts +43 -0
- package/dist/src/surfaces/api/contracts/control-plane.d.ts +37 -0
- package/dist/src/surfaces/api/contracts/events.d.ts +13 -0
- package/dist/src/surfaces/api/contracts/execution.d.ts +67 -0
- package/dist/src/surfaces/api/contracts/index.d.ts +14 -0
- package/dist/src/surfaces/api/contracts/observability.d.ts +10 -0
- package/dist/src/surfaces/api/contracts/orchestration.d.ts +16 -0
- package/dist/src/surfaces/api/contracts/resources.d.ts +10 -0
- package/dist/src/surfaces/api/contracts/status.d.ts +4 -0
- package/dist/src/surfaces/api/contracts/system.d.ts +32 -0
- package/dist/src/surfaces/api/contracts/transport-values.d.ts +50 -0
- package/dist/src/surfaces/api/contracts/transport-values.js +6 -0
- package/dist/src/surfaces/api/contracts/work.d.ts +74 -0
- package/dist/src/surfaces/api/contracts/workflow-diagram.d.ts +64 -0
- package/dist/src/surfaces/api/http-server.d.ts +33 -0
- package/dist/src/surfaces/api/http-server.js +2 -2
- package/dist/src/surfaces/api/presenters/activities.d.ts +1 -0
- package/dist/src/surfaces/api/presenters/board.d.ts +2 -0
- package/dist/src/surfaces/api/presenters/control-plane.d.ts +1 -0
- package/dist/src/surfaces/api/presenters/events.d.ts +1 -0
- package/dist/src/surfaces/api/presenters/execution.d.ts +3 -0
- package/dist/src/surfaces/api/presenters/execution.js +5 -2
- package/dist/src/surfaces/api/presenters/observability.d.ts +1 -0
- package/dist/src/surfaces/api/presenters/orchestration.d.ts +3 -0
- package/dist/src/surfaces/api/presenters/resources.d.ts +3 -0
- package/dist/src/surfaces/api/presenters/status.d.ts +2 -0
- package/dist/src/surfaces/api/presenters/system.d.ts +2 -0
- package/dist/src/surfaces/api/presenters/work.d.ts +4 -0
- package/dist/src/surfaces/api/problem-details.d.ts +2 -0
- package/dist/src/surfaces/api/router.d.ts +8 -0
- package/dist/src/surfaces/api/routes/activities.d.ts +1 -0
- package/dist/src/surfaces/api/routes/applications.d.ts +88 -0
- package/dist/src/surfaces/api/routes/commands.d.ts +3 -0
- package/dist/src/surfaces/api/routes/commands.js +1 -3
- package/dist/src/surfaces/api/routes/control-plane.d.ts +1 -0
- package/dist/src/surfaces/api/routes/control-plane.js +0 -1
- package/dist/src/surfaces/api/routes/events.d.ts +1 -0
- package/dist/src/surfaces/api/routes/execution.d.ts +1 -0
- package/dist/src/surfaces/api/routes/index.d.ts +4 -0
- package/dist/src/surfaces/api/routes/observability.d.ts +1 -0
- package/dist/src/surfaces/api/routes/orchestration.d.ts +1 -0
- package/dist/src/surfaces/api/routes/pagination.d.ts +5 -0
- package/dist/src/surfaces/api/routes/read.d.ts +3 -0
- package/dist/src/surfaces/api/routes/resources.d.ts +1 -0
- package/dist/src/surfaces/api/routes/responses.d.ts +15 -0
- package/dist/src/surfaces/api/routes/system.d.ts +1 -0
- package/dist/src/surfaces/api/routes/work.d.ts +1 -0
- package/dist/src/surfaces/auth/credentials.d.ts +22 -0
- package/dist/src/surfaces/auth/credentials.js +8 -12
- package/dist/src/surfaces/auth/vocabulary.d.ts +9 -0
- package/dist/src/surfaces/cli/commands/api.d.ts +4 -0
- package/dist/src/surfaces/cli/commands/audit.d.ts +16 -0
- package/dist/src/surfaces/cli/commands/audit.js +11 -2
- package/dist/src/surfaces/cli/commands/correlate.d.ts +7 -0
- package/dist/src/surfaces/cli/commands/doctor.d.ts +24 -0
- package/dist/src/surfaces/cli/commands/init.d.ts +2 -0
- package/dist/src/surfaces/cli/commands/sandbox-entrypoint.d.ts +43 -0
- package/dist/src/surfaces/cli/commands/sandbox-setup.d.ts +9 -0
- package/dist/src/surfaces/cli/commands/sandbox.d.ts +16 -0
- package/dist/src/surfaces/cli/commands/self-update.d.ts +15 -0
- package/dist/src/surfaces/cli/commands/smoke.d.ts +14 -0
- package/dist/src/surfaces/cli/commands/start.d.ts +5 -0
- package/dist/src/surfaces/cli/commands/stop.d.ts +11 -0
- package/dist/src/surfaces/cli/commands/tick.d.ts +5 -0
- package/dist/src/surfaces/cli/commands/ui.d.ts +5 -0
- package/dist/src/surfaces/cli/commands/validate-state.d.ts +13 -0
- package/dist/src/surfaces/cli/infrastructure/docker-cli.d.ts +66 -0
- package/dist/src/surfaces/cli/infrastructure/docker-invocation.d.ts +14 -0
- package/dist/src/surfaces/cli/infrastructure/process-log.d.ts +35 -0
- package/dist/src/surfaces/cli/infrastructure/resident-start.d.ts +10 -0
- package/dist/src/surfaces/cli/main.d.ts +115 -0
- package/dist/src/surfaces/cli/usage.d.ts +1 -0
- package/dist/src/surfaces/contracts/config.d.ts +51 -0
- package/dist/src/surfaces/index.d.ts +49 -0
- package/dist/src/surfaces/web-assets/assets/index-D9xGa5tD.css +1 -0
- package/dist/src/surfaces/web-assets/assets/index-qai1Ymhv.js +1179 -0
- package/dist/src/surfaces/web-assets/index.html +2 -2
- package/dist/src/surfaces/web-host/asset-source.d.ts +9 -0
- package/dist/src/surfaces/web-host/packaged-assets.d.ts +8 -0
- package/dist/src/work/application/work-projection.d.ts +3 -0
- package/dist/src/work/application/work-projection.js +4 -4
- package/dist/src/work/application/work-repository.d.ts +15 -0
- package/dist/src/work/application/work-repository.js +2 -2
- package/dist/src/work/application/work-service.d.ts +18 -0
- package/dist/src/work/application/work-service.js +70 -31
- package/dist/src/work/contracts/commands.d.ts +15 -0
- package/dist/src/work/contracts/config.d.ts +3 -0
- package/dist/src/work/contracts/event-factory.d.ts +6 -0
- package/dist/src/work/contracts/event-factory.js +26 -0
- package/dist/src/work/contracts/events.d.ts +46 -0
- package/dist/src/work/contracts/events.js +54 -60
- package/dist/src/work/contracts/identifiers.d.ts +3 -0
- package/dist/src/work/contracts/streams.d.ts +8 -0
- package/dist/src/work/contracts/views.d.ts +18 -0
- package/dist/src/work/contracts/vocabulary.d.ts +7 -0
- package/dist/src/work/domain/work-item.d.ts +3 -0
- package/dist/src/work/domain/work-item.js +10 -7
- package/dist/src/work/index.d.ts +12 -0
- package/dist/src/work/index.js +1 -0
- package/docker/Dockerfile +9 -7
- package/docker/Dockerfile.packaged +4 -6
- package/package.json +24 -24
- package/dist/src/activities/pr/event-drafts.js +0 -66
- package/dist/src/kernel/contracts/events.js +0 -11
- package/dist/src/kernel/infrastructure/cached-journal-view.js +0 -27
- package/dist/src/persistence/application/projection-runner.js +0 -128
- package/dist/src/persistence/filesystem/file-checkpoint-store.js +0 -50
- package/dist/src/persistence/filesystem/file-projection-store.js +0 -137
- package/dist/src/persistence/index.js +0 -8
- package/dist/src/persistence/memory/in-memory-event-journal.js +0 -99
- package/dist/src/surfaces/web-assets/assets/index-B0ofn_L5.css +0 -1
- package/dist/src/surfaces/web-assets/assets/index-DFBhpSSX.js +0 -1179
- /package/dist/src/control-plane/application/{advance-once-ports.js → activation-scheduler-ports.js} +0 -0
- /package/dist/src/{kernel → node_modules/@atolis-hq/eventing/dist}/contracts/commands.js +0 -0
- /package/dist/src/{kernel/contracts/checkpoint-store.js → node_modules/@atolis-hq/eventing/dist/contracts/processor-state-store.js} +0 -0
- /package/dist/src/{persistence → node_modules/@atolis-hq/eventing/dist}/memory/in-memory-checkpoint-store.js +0 -0
- /package/dist/src/{kernel/contracts → node_modules/@atolis-hq/eventing/dist/projections}/projection-store.js +0 -0
- /package/dist/src/{kernel/contracts/journal-change-signal.js → node_modules/@atolis-hq/eventing/dist/runtime/clock.js} +0 -0
- /package/dist/src/{kernel/contracts → node_modules/@atolis-hq/eventing/dist/store}/event-journal.js +0 -0
|
@@ -0,0 +1,263 @@
|
|
|
1
|
+
import { MergeMethod, ProviderPermission, PullRequestState } from '../../../activities/index.js';
|
|
2
|
+
import type { GitHubIssueQueryFilters } from '../contracts/issue-query.js';
|
|
3
|
+
import { GitHubOutboundAction } from '../contracts/vocabulary.js';
|
|
4
|
+
export declare function redactGitHubRequestMessage(message: unknown): string;
|
|
5
|
+
export declare function createGitHubClient(token: string): {
|
|
6
|
+
authenticatedLogin: () => Promise<string>;
|
|
7
|
+
collaboratorPermission: (owner: string, repo: string, login: string) => Promise<ProviderPermission>;
|
|
8
|
+
getIssueLabelsFresh: (owner: string, repo: string, issueNumber: number) => Promise<string[]>;
|
|
9
|
+
getIssue: (owner: string, repo: string, issueNumber: number) => Promise<{
|
|
10
|
+
id: string;
|
|
11
|
+
state: string;
|
|
12
|
+
}>;
|
|
13
|
+
setIssueLabels: (owner: string, repo: string, issueNumber: number, labels: readonly string[]) => Promise<void>;
|
|
14
|
+
deliver: (command: GitHubDeliveryCommand) => Promise<string>;
|
|
15
|
+
listIssues: (owner: string, repo: string, maxResults: number, since?: string, filters?: GitHubIssueQueryFilters) => Promise<readonly import("../index.js").GitHubIssuePayload[]>;
|
|
16
|
+
listPullRequests: (owner: string, repo: string, maxResults: number) => Promise<(Omit<{
|
|
17
|
+
url: string;
|
|
18
|
+
id: number;
|
|
19
|
+
node_id: string;
|
|
20
|
+
html_url: string;
|
|
21
|
+
diff_url: string;
|
|
22
|
+
patch_url: string;
|
|
23
|
+
issue_url: string;
|
|
24
|
+
commits_url: string;
|
|
25
|
+
review_comments_url: string;
|
|
26
|
+
review_comment_url: string;
|
|
27
|
+
comments_url: string;
|
|
28
|
+
statuses_url: string;
|
|
29
|
+
number: number;
|
|
30
|
+
state: string;
|
|
31
|
+
locked: boolean;
|
|
32
|
+
title: string;
|
|
33
|
+
user: import("@octokit/openapi-types").components["schemas"]["nullable-simple-user"];
|
|
34
|
+
body: string | null;
|
|
35
|
+
labels: {
|
|
36
|
+
id: number;
|
|
37
|
+
node_id: string;
|
|
38
|
+
url: string;
|
|
39
|
+
name: string;
|
|
40
|
+
description: string;
|
|
41
|
+
color: string;
|
|
42
|
+
default: boolean;
|
|
43
|
+
}[];
|
|
44
|
+
milestone: import("@octokit/openapi-types").components["schemas"]["nullable-milestone"];
|
|
45
|
+
active_lock_reason?: string | null;
|
|
46
|
+
created_at: string;
|
|
47
|
+
updated_at: string;
|
|
48
|
+
closed_at: string | null;
|
|
49
|
+
merged_at: string | null;
|
|
50
|
+
merge_commit_sha: string | null;
|
|
51
|
+
assignee: import("@octokit/openapi-types").components["schemas"]["nullable-simple-user"];
|
|
52
|
+
assignees?: import("@octokit/openapi-types").components["schemas"]["simple-user"][] | null;
|
|
53
|
+
requested_reviewers?: import("@octokit/openapi-types").components["schemas"]["simple-user"][] | null;
|
|
54
|
+
requested_teams?: import("@octokit/openapi-types").components["schemas"]["team"][] | null;
|
|
55
|
+
head: {
|
|
56
|
+
label: string;
|
|
57
|
+
ref: string;
|
|
58
|
+
repo: import("@octokit/openapi-types").components["schemas"]["repository"];
|
|
59
|
+
sha: string;
|
|
60
|
+
user: import("@octokit/openapi-types").components["schemas"]["nullable-simple-user"];
|
|
61
|
+
};
|
|
62
|
+
base: {
|
|
63
|
+
label: string;
|
|
64
|
+
ref: string;
|
|
65
|
+
repo: import("@octokit/openapi-types").components["schemas"]["repository"];
|
|
66
|
+
sha: string;
|
|
67
|
+
user: import("@octokit/openapi-types").components["schemas"]["nullable-simple-user"];
|
|
68
|
+
};
|
|
69
|
+
_links: {
|
|
70
|
+
comments: import("@octokit/openapi-types").components["schemas"]["link"];
|
|
71
|
+
commits: import("@octokit/openapi-types").components["schemas"]["link"];
|
|
72
|
+
statuses: import("@octokit/openapi-types").components["schemas"]["link"];
|
|
73
|
+
html: import("@octokit/openapi-types").components["schemas"]["link"];
|
|
74
|
+
issue: import("@octokit/openapi-types").components["schemas"]["link"];
|
|
75
|
+
review_comments: import("@octokit/openapi-types").components["schemas"]["link"];
|
|
76
|
+
review_comment: import("@octokit/openapi-types").components["schemas"]["link"];
|
|
77
|
+
self: import("@octokit/openapi-types").components["schemas"]["link"];
|
|
78
|
+
};
|
|
79
|
+
author_association: import("@octokit/openapi-types").components["schemas"]["author-association"];
|
|
80
|
+
auto_merge: import("@octokit/openapi-types").components["schemas"]["auto-merge"];
|
|
81
|
+
draft?: boolean;
|
|
82
|
+
}, "state"> & {
|
|
83
|
+
readonly state: typeof PullRequestState.Open | typeof PullRequestState.Closed;
|
|
84
|
+
})[]>;
|
|
85
|
+
listIssueComments: (owner: string, repo: string, issueNumber: number, pageSize: number, since?: string, maxResults?: number) => Promise<readonly import("../index.js").GitHubIssueCommentPayload[]>;
|
|
86
|
+
listReviewComments: (owner: string, repo: string, pullNumber: number, pageSize: number, maxResults?: number) => Promise<readonly import("../index.js").GitHubIssueCommentPayload[]>;
|
|
87
|
+
getIssueLabels: (owner: string, repo: string, issueNumber: number) => Promise<readonly string[]>;
|
|
88
|
+
getPullRequest: (owner: string, repo: string, pullNumber: number) => Promise<{
|
|
89
|
+
url: string;
|
|
90
|
+
id: number;
|
|
91
|
+
node_id: string;
|
|
92
|
+
html_url: string;
|
|
93
|
+
diff_url: string;
|
|
94
|
+
patch_url: string;
|
|
95
|
+
issue_url: string;
|
|
96
|
+
commits_url: string;
|
|
97
|
+
review_comments_url: string;
|
|
98
|
+
review_comment_url: string;
|
|
99
|
+
comments_url: string;
|
|
100
|
+
statuses_url: string;
|
|
101
|
+
number: number;
|
|
102
|
+
state: "open" | "closed";
|
|
103
|
+
locked: boolean;
|
|
104
|
+
title: string;
|
|
105
|
+
user: import("@octokit/openapi-types").components["schemas"]["simple-user"];
|
|
106
|
+
body: string | null;
|
|
107
|
+
labels: {
|
|
108
|
+
id: number;
|
|
109
|
+
node_id: string;
|
|
110
|
+
url: string;
|
|
111
|
+
name: string;
|
|
112
|
+
description: string | null;
|
|
113
|
+
color: string;
|
|
114
|
+
default: boolean;
|
|
115
|
+
}[];
|
|
116
|
+
milestone: import("@octokit/openapi-types").components["schemas"]["nullable-milestone"];
|
|
117
|
+
active_lock_reason?: string | null;
|
|
118
|
+
created_at: string;
|
|
119
|
+
updated_at: string;
|
|
120
|
+
closed_at: string | null;
|
|
121
|
+
merged_at: string | null;
|
|
122
|
+
merge_commit_sha: string | null;
|
|
123
|
+
assignee: import("@octokit/openapi-types").components["schemas"]["nullable-simple-user"];
|
|
124
|
+
assignees?: import("@octokit/openapi-types").components["schemas"]["simple-user"][] | null;
|
|
125
|
+
requested_reviewers?: import("@octokit/openapi-types").components["schemas"]["simple-user"][] | null;
|
|
126
|
+
requested_teams?: import("@octokit/openapi-types").components["schemas"]["team-simple"][] | null;
|
|
127
|
+
head: {
|
|
128
|
+
label: string;
|
|
129
|
+
ref: string;
|
|
130
|
+
repo: import("@octokit/openapi-types").components["schemas"]["repository"];
|
|
131
|
+
sha: string;
|
|
132
|
+
user: import("@octokit/openapi-types").components["schemas"]["simple-user"];
|
|
133
|
+
};
|
|
134
|
+
base: {
|
|
135
|
+
label: string;
|
|
136
|
+
ref: string;
|
|
137
|
+
repo: import("@octokit/openapi-types").components["schemas"]["repository"];
|
|
138
|
+
sha: string;
|
|
139
|
+
user: import("@octokit/openapi-types").components["schemas"]["simple-user"];
|
|
140
|
+
};
|
|
141
|
+
_links: {
|
|
142
|
+
comments: import("@octokit/openapi-types").components["schemas"]["link"];
|
|
143
|
+
commits: import("@octokit/openapi-types").components["schemas"]["link"];
|
|
144
|
+
statuses: import("@octokit/openapi-types").components["schemas"]["link"];
|
|
145
|
+
html: import("@octokit/openapi-types").components["schemas"]["link"];
|
|
146
|
+
issue: import("@octokit/openapi-types").components["schemas"]["link"];
|
|
147
|
+
review_comments: import("@octokit/openapi-types").components["schemas"]["link"];
|
|
148
|
+
review_comment: import("@octokit/openapi-types").components["schemas"]["link"];
|
|
149
|
+
self: import("@octokit/openapi-types").components["schemas"]["link"];
|
|
150
|
+
};
|
|
151
|
+
author_association: import("@octokit/openapi-types").components["schemas"]["author-association"];
|
|
152
|
+
auto_merge: import("@octokit/openapi-types").components["schemas"]["auto-merge"];
|
|
153
|
+
draft?: boolean;
|
|
154
|
+
merged: boolean;
|
|
155
|
+
mergeable: boolean | null;
|
|
156
|
+
rebaseable?: boolean | null;
|
|
157
|
+
mergeable_state: string;
|
|
158
|
+
merged_by: import("@octokit/openapi-types").components["schemas"]["nullable-simple-user"];
|
|
159
|
+
comments: number;
|
|
160
|
+
review_comments: number;
|
|
161
|
+
maintainer_can_modify: boolean;
|
|
162
|
+
commits: number;
|
|
163
|
+
additions: number;
|
|
164
|
+
deletions: number;
|
|
165
|
+
changed_files: number;
|
|
166
|
+
}>;
|
|
167
|
+
listReviews: (owner: string, repo: string, pullNumber: number, pageSize: number, maxResults?: number) => Promise<{
|
|
168
|
+
user?: {
|
|
169
|
+
name?: string | null;
|
|
170
|
+
email?: string | null;
|
|
171
|
+
login: string;
|
|
172
|
+
id: number;
|
|
173
|
+
node_id: string;
|
|
174
|
+
avatar_url: string;
|
|
175
|
+
gravatar_id: string | null;
|
|
176
|
+
url: string;
|
|
177
|
+
html_url: string;
|
|
178
|
+
followers_url: string;
|
|
179
|
+
following_url: string;
|
|
180
|
+
gists_url: string;
|
|
181
|
+
starred_url: string;
|
|
182
|
+
subscriptions_url: string;
|
|
183
|
+
organizations_url: string;
|
|
184
|
+
repos_url: string;
|
|
185
|
+
events_url: string;
|
|
186
|
+
received_events_url: string;
|
|
187
|
+
type: string;
|
|
188
|
+
site_admin: boolean;
|
|
189
|
+
starred_at?: string;
|
|
190
|
+
user_view_type?: string;
|
|
191
|
+
} | null;
|
|
192
|
+
id: number;
|
|
193
|
+
state: string;
|
|
194
|
+
body: string;
|
|
195
|
+
commit_id: string;
|
|
196
|
+
submitted_at: string;
|
|
197
|
+
}[]>;
|
|
198
|
+
listCheckRunsForRef: (owner: string, repo: string, ref: string, maxResults?: number) => Promise<readonly {
|
|
199
|
+
id: number;
|
|
200
|
+
head_sha: string;
|
|
201
|
+
node_id: string;
|
|
202
|
+
external_id: string | null;
|
|
203
|
+
url: string;
|
|
204
|
+
html_url: string | null;
|
|
205
|
+
details_url: string | null;
|
|
206
|
+
status: "queued" | "in_progress" | "completed" | "waiting" | "requested" | "pending";
|
|
207
|
+
conclusion: "success" | "failure" | "neutral" | "cancelled" | "skipped" | "timed_out" | "action_required" | null;
|
|
208
|
+
started_at: string | null;
|
|
209
|
+
completed_at: string | null;
|
|
210
|
+
output: {
|
|
211
|
+
title: string | null;
|
|
212
|
+
summary: string | null;
|
|
213
|
+
text: string | null;
|
|
214
|
+
annotations_count: number;
|
|
215
|
+
annotations_url: string;
|
|
216
|
+
};
|
|
217
|
+
name: string;
|
|
218
|
+
check_suite: {
|
|
219
|
+
id: number;
|
|
220
|
+
} | null;
|
|
221
|
+
app: import("@octokit/openapi-types").components["schemas"]["nullable-integration"];
|
|
222
|
+
pull_requests: import("@octokit/openapi-types").components["schemas"]["pull-request-minimal"][];
|
|
223
|
+
deployment?: import("@octokit/openapi-types").components["schemas"]["deployment-simple"];
|
|
224
|
+
}[]>;
|
|
225
|
+
listPullRequestFiles: (owner: string, repo: string, pullNumber: number, maxResults?: number) => Promise<readonly string[]>;
|
|
226
|
+
getCombinedStatusForRef: (owner: string, repo: string, ref: string, maxResults?: number) => Promise<readonly {
|
|
227
|
+
description: string | null;
|
|
228
|
+
id: number;
|
|
229
|
+
node_id: string;
|
|
230
|
+
state: string;
|
|
231
|
+
context: string;
|
|
232
|
+
target_url: string | null;
|
|
233
|
+
required?: boolean | null;
|
|
234
|
+
avatar_url: string | null;
|
|
235
|
+
url: string;
|
|
236
|
+
created_at: string;
|
|
237
|
+
updated_at: string;
|
|
238
|
+
}[]>;
|
|
239
|
+
branch: (owner: string, repo: string, name: string) => Promise<{
|
|
240
|
+
name: string;
|
|
241
|
+
commit: import("@octokit/openapi-types").components["schemas"]["commit"];
|
|
242
|
+
_links: {
|
|
243
|
+
html: string;
|
|
244
|
+
self: string;
|
|
245
|
+
};
|
|
246
|
+
protected: boolean;
|
|
247
|
+
protection: import("@octokit/openapi-types").components["schemas"]["branch-protection"];
|
|
248
|
+
protection_url: string;
|
|
249
|
+
pattern?: string;
|
|
250
|
+
required_approving_review_count?: number;
|
|
251
|
+
}>;
|
|
252
|
+
};
|
|
253
|
+
interface GitHubDeliveryCommand {
|
|
254
|
+
readonly owner: string;
|
|
255
|
+
readonly repo: string;
|
|
256
|
+
readonly issue_number?: number;
|
|
257
|
+
readonly pull_number?: number;
|
|
258
|
+
readonly action: GitHubOutboundAction;
|
|
259
|
+
readonly idempotencyKey: string;
|
|
260
|
+
readonly body?: string;
|
|
261
|
+
readonly merge_method?: MergeMethod;
|
|
262
|
+
}
|
|
263
|
+
export {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { issueCommentObservation } from './issue-source.js';
|
|
2
|
+
import { type PollBatch } from './poll-watermark.js';
|
|
3
|
+
import { githubReviewObservation } from './review-source.js';
|
|
4
|
+
import type { RepositoryPollContext } from './source-contracts.js';
|
|
5
|
+
export declare function reviewCommentEventsFor(context: RepositoryPollContext, pullRequests: readonly Parameters<typeof githubReviewObservation>[0]['pullRequest'][]): Promise<PollBatch>;
|
|
6
|
+
export declare function reviewEventsFor(context: RepositoryPollContext, pullRequests: readonly Parameters<typeof githubReviewObservation>[0]['pullRequest'][]): Promise<PollBatch>;
|
|
7
|
+
export declare function issueCommentEventsFor(context: RepositoryPollContext, issues: readonly Parameters<typeof issueCommentObservation>[0]['issue'][], since: string | undefined): Promise<PollBatch>;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { ExternalDeliveryAdapter } from '../../delivery/contracts/config.js';
|
|
2
|
+
import type { DeliveryIntentView } from '../../delivery/contracts/views.js';
|
|
3
|
+
export declare function createGitHubDelivery(deliver: (intent: DeliveryIntentView, idempotencyKey: string) => Promise<string>, reconcileIssue?: (intent: DeliveryIntentView) => Promise<string | null>, precondition?: (intent: DeliveryIntentView) => Promise<{
|
|
4
|
+
readonly allowed: boolean;
|
|
5
|
+
readonly reason?: string;
|
|
6
|
+
}>): ExternalDeliveryAdapter;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
type EtagCache = Map<string, {
|
|
2
|
+
readonly etag: string;
|
|
3
|
+
readonly data: unknown;
|
|
4
|
+
}>;
|
|
5
|
+
export declare const createEtagCache: () => EtagCache;
|
|
6
|
+
export declare function fetchWithEtag<T>(input: {
|
|
7
|
+
readonly cache: EtagCache;
|
|
8
|
+
readonly key: string;
|
|
9
|
+
readonly request: (headers?: {
|
|
10
|
+
readonly 'if-none-match': string;
|
|
11
|
+
}) => Promise<{
|
|
12
|
+
readonly data: T;
|
|
13
|
+
readonly etag?: string;
|
|
14
|
+
}>;
|
|
15
|
+
}): Promise<T>;
|
|
16
|
+
export declare function fetchPaginatedWithEtag<T>(input: {
|
|
17
|
+
readonly cache: EtagCache;
|
|
18
|
+
readonly key: string;
|
|
19
|
+
readonly maxResults?: number;
|
|
20
|
+
readonly pages: (headers?: {
|
|
21
|
+
readonly 'if-none-match': string;
|
|
22
|
+
}) => AsyncIterable<{
|
|
23
|
+
readonly data: readonly T[];
|
|
24
|
+
readonly headers?: {
|
|
25
|
+
readonly etag?: string;
|
|
26
|
+
};
|
|
27
|
+
}>;
|
|
28
|
+
}): Promise<readonly T[]>;
|
|
29
|
+
export {};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { type ReviewerAuthorizationEvidence } from '../../../activities/index.js';
|
|
2
|
+
import type { AdapterId } from '../../contracts/identifiers.js';
|
|
3
|
+
import { GitHubEventType, type GitHubAdapterEventData } from '../contracts/events.js';
|
|
4
|
+
import { type GitHubIssueCommentPayload, type GitHubIssuePayload } from '../contracts/payloads.js';
|
|
5
|
+
export declare function issueObservation(input: {
|
|
6
|
+
readonly repository: string;
|
|
7
|
+
readonly issue: GitHubIssuePayload;
|
|
8
|
+
readonly adapter?: AdapterId;
|
|
9
|
+
}): Extract<GitHubAdapterEventData, {
|
|
10
|
+
eventType: typeof GitHubEventType.WorkObserved;
|
|
11
|
+
}>;
|
|
12
|
+
export declare function issueCommentObservation(input: {
|
|
13
|
+
readonly repository: string;
|
|
14
|
+
readonly issue: Pick<GitHubIssuePayload, 'number'>;
|
|
15
|
+
readonly comment: GitHubIssueCommentPayload;
|
|
16
|
+
readonly authorization?: ReviewerAuthorizationEvidence;
|
|
17
|
+
readonly adapter?: AdapterId;
|
|
18
|
+
}): Extract<GitHubAdapterEventData, {
|
|
19
|
+
eventType: typeof GitHubEventType.CommentObserved;
|
|
20
|
+
}> | null;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
+
import { EventActorKind, EventSourceKind } from '@atolis-hq/eventing';
|
|
1
2
|
import { PullRequestState, ReviewActorKind, } from '../../../activities/index.js';
|
|
2
|
-
import { createEventDraft, EventActorKind, EventSourceKind } from '../../../kernel/index.js';
|
|
3
3
|
import { ExternalWorkOutcome } from '../../contracts/outcome-vocabulary.js';
|
|
4
|
-
import {
|
|
4
|
+
import { createGitHubEventData } from '../contracts/event-factory.js';
|
|
5
5
|
import { GitHubEventType } from '../contracts/events.js';
|
|
6
6
|
import { formatGitHubResourceKey } from '../contracts/external-key.js';
|
|
7
7
|
import { gitHubAssigneeLogins, gitHubLabelNames, } from '../contracts/payloads.js';
|
|
@@ -30,7 +30,7 @@ export function issueObservation(input) {
|
|
|
30
30
|
labels: withoutWakeMarkers(labels),
|
|
31
31
|
assignees: [...assignees].sort(),
|
|
32
32
|
});
|
|
33
|
-
|
|
33
|
+
const event = createGitHubEventData({
|
|
34
34
|
eventId: `github:issue:${key}:${fingerprint}`,
|
|
35
35
|
eventType: GitHubEventType.WorkObserved,
|
|
36
36
|
occurredAt: input.issue.updated_at,
|
|
@@ -38,7 +38,6 @@ export function issueObservation(input) {
|
|
|
38
38
|
causationId: `github:${key}:${fingerprint}`,
|
|
39
39
|
actor: { kind: EventActorKind.Integration, id: 'github' },
|
|
40
40
|
source: { kind: EventSourceKind.Adapter, id: input.adapter ?? GitHubAdapter },
|
|
41
|
-
stream: integrationStream(input.adapter ?? GitHubAdapter),
|
|
42
41
|
payload: {
|
|
43
42
|
externalKey: key,
|
|
44
43
|
kind: 'issue',
|
|
@@ -53,6 +52,9 @@ export function issueObservation(input) {
|
|
|
53
52
|
raw: { number: input.issue.number },
|
|
54
53
|
},
|
|
55
54
|
});
|
|
55
|
+
if (event.eventType !== GitHubEventType.WorkObserved)
|
|
56
|
+
throw new Error(`Expected GitHub WorkObserved event data, received ${event.eventType}`);
|
|
57
|
+
return event;
|
|
56
58
|
}
|
|
57
59
|
function issueOutcome(issue) {
|
|
58
60
|
if (issue.state !== PullRequestState.Closed)
|
|
@@ -76,7 +78,7 @@ export function issueCommentObservation(input) {
|
|
|
76
78
|
number: input.issue.number,
|
|
77
79
|
});
|
|
78
80
|
const location = commentLocation(input.comment);
|
|
79
|
-
|
|
81
|
+
const event = createGitHubEventData({
|
|
80
82
|
eventId: `github:issue-comment:${key}:${input.comment.id}:${input.comment.updated_at}`,
|
|
81
83
|
eventType: GitHubEventType.CommentObserved,
|
|
82
84
|
occurredAt: input.comment.updated_at,
|
|
@@ -84,7 +86,6 @@ export function issueCommentObservation(input) {
|
|
|
84
86
|
causationId: `github:issue-comment:${input.comment.id}`,
|
|
85
87
|
actor: { kind: EventActorKind.Integration, id: 'github' },
|
|
86
88
|
source: { kind: EventSourceKind.Adapter, id: input.adapter ?? GitHubAdapter },
|
|
87
|
-
stream: integrationStream(input.adapter ?? GitHubAdapter),
|
|
88
89
|
payload: {
|
|
89
90
|
reviewKind: 'issue',
|
|
90
91
|
externalKey: key,
|
|
@@ -99,6 +100,9 @@ export function issueCommentObservation(input) {
|
|
|
99
100
|
raw: { id: input.comment.id },
|
|
100
101
|
},
|
|
101
102
|
});
|
|
103
|
+
if (event.eventType !== GitHubEventType.CommentObserved)
|
|
104
|
+
throw new Error(`Expected GitHub CommentObserved event data, received ${event.eventType}`);
|
|
105
|
+
return event;
|
|
102
106
|
}
|
|
103
107
|
function commentLocation(comment) {
|
|
104
108
|
if (comment.path === undefined ||
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { CheckpointStore } from '@atolis-hq/eventing';
|
|
2
|
+
import type { AdapterId } from '../../contracts/identifiers.js';
|
|
3
|
+
import type { GitHubAdapterEventData } from '../contracts/events.js';
|
|
4
|
+
export interface PollBatch {
|
|
5
|
+
readonly drafts: readonly GitHubAdapterEventData[];
|
|
6
|
+
readonly succeeded: boolean;
|
|
7
|
+
}
|
|
8
|
+
export declare function mergeBatches(batches: readonly PollBatch[]): PollBatch;
|
|
9
|
+
export declare function watermarkCheckpoint(adapter: AdapterId | undefined, repository: string): string;
|
|
10
|
+
export declare function loadWatermark(checkpoints: CheckpointStore | undefined, adapter: AdapterId | undefined, owner: string, repo: string): Promise<number>;
|
|
11
|
+
export declare function overlapSince(watermark: number, overlapMs: number): string | undefined;
|
|
12
|
+
export declare function reportPartialPollFailure(repository: string, query: string): void;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { AdapterId } from '../../contracts/identifiers.js';
|
|
2
|
+
import type { ExternalEventSource } from '../application/poll-service.js';
|
|
3
|
+
import { type GitHubCheckRunPayload, type GitHubCommitStatusPayload, type GitHubPullRequestPayload } from '../contracts/payloads.js';
|
|
4
|
+
export interface GitHubPullRequestSourceClient {
|
|
5
|
+
listPullRequests(owner: string, repo: string, maxResults: number): Promise<readonly GitHubPullRequestPayload[]>;
|
|
6
|
+
listCheckRunsForRef(owner: string, repo: string, ref: string, maxResults?: number): Promise<readonly GitHubCheckRunPayload[]>;
|
|
7
|
+
getCombinedStatusForRef(owner: string, repo: string, ref: string, maxResults?: number): Promise<readonly GitHubCommitStatusPayload[]>;
|
|
8
|
+
listPullRequestFiles(owner: string, repo: string, pullNumber: number, maxResults?: number): Promise<readonly string[]>;
|
|
9
|
+
}
|
|
10
|
+
export declare function createGitHubPullRequestSource(input: {
|
|
11
|
+
readonly client: GitHubPullRequestSourceClient;
|
|
12
|
+
readonly repository: string;
|
|
13
|
+
readonly maxResults: number;
|
|
14
|
+
readonly maxConcurrency?: number;
|
|
15
|
+
readonly adapter?: AdapterId;
|
|
16
|
+
}): ExternalEventSource;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
+
import { EventActorKind, EventSourceKind } from '@atolis-hq/eventing';
|
|
1
2
|
import { createHash } from 'node:crypto';
|
|
2
3
|
import { PullRequestCheckState, PullRequestState, ReviewActorKind, } from '../../../activities/index.js';
|
|
3
|
-
import { createEventDraft, EventActorKind, EventSourceKind } from '../../../kernel/index.js';
|
|
4
|
-
import { integrationStream } from '../../contracts/streams.js';
|
|
5
4
|
import { boundedDiagnosticEvidence } from '../contracts/check-evidence.js';
|
|
5
|
+
import { createGitHubEventData } from '../contracts/event-factory.js';
|
|
6
6
|
import { GitHubEventType } from '../contracts/events.js';
|
|
7
7
|
import { formatGitHubResourceKey } from '../contracts/external-key.js';
|
|
8
8
|
import { gitHubAssigneeLogins, gitHubLabelNames, } from '../contracts/payloads.js';
|
|
@@ -66,7 +66,7 @@ function pullRequestObservation(input) {
|
|
|
66
66
|
},
|
|
67
67
|
};
|
|
68
68
|
const fingerprint = evidenceFingerprint(payload, input.evidence);
|
|
69
|
-
|
|
69
|
+
const event = createGitHubEventData({
|
|
70
70
|
eventId: `github:pr:${key}:${fingerprint}`,
|
|
71
71
|
eventType: GitHubEventType.WorkObserved,
|
|
72
72
|
occurredAt: pullRequest.updated_at,
|
|
@@ -74,9 +74,11 @@ function pullRequestObservation(input) {
|
|
|
74
74
|
causationId: `github:${key}:${fingerprint}`,
|
|
75
75
|
actor: { kind: EventActorKind.Integration, id: 'github' },
|
|
76
76
|
source: { kind: EventSourceKind.Adapter, id: input.adapter ?? GitHubAdapter },
|
|
77
|
-
stream: integrationStream(input.adapter ?? GitHubAdapter),
|
|
78
77
|
payload,
|
|
79
78
|
});
|
|
79
|
+
if (event.eventType !== GitHubEventType.WorkObserved)
|
|
80
|
+
throw new Error(`Expected GitHub WorkObserved event data, received ${event.eventType}`);
|
|
81
|
+
return event;
|
|
80
82
|
}
|
|
81
83
|
function normalizeCheckEvidence(checkRuns, statuses) {
|
|
82
84
|
const states = [
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export interface GitHubRequestCoordinator {
|
|
2
|
+
run<Value>(request: () => Promise<Value>): Promise<Value>;
|
|
3
|
+
}
|
|
4
|
+
interface GitHubRequestCoordinatorOptions {
|
|
5
|
+
readonly maxConcurrent: number;
|
|
6
|
+
readonly now?: () => number;
|
|
7
|
+
}
|
|
8
|
+
export declare class GitHubRequestCooldownError extends Error {
|
|
9
|
+
readonly retryAt: number;
|
|
10
|
+
constructor(retryAt: number);
|
|
11
|
+
}
|
|
12
|
+
export declare function createGitHubRequestCoordinator(options: GitHubRequestCoordinatorOptions): GitHubRequestCoordinator;
|
|
13
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { GitHubEventType, type GitHubAdapterEventData } from '../contracts/events.js';
|
|
2
|
+
import type { GitHubPullRequestPayload, GitHubReviewPayload } from '../contracts/payloads.js';
|
|
3
|
+
export declare function githubReviewObservation(input: {
|
|
4
|
+
readonly repository: string;
|
|
5
|
+
readonly pullRequest: GitHubPullRequestPayload;
|
|
6
|
+
readonly review: GitHubReviewPayload;
|
|
7
|
+
readonly authorizedReviewers: readonly string[];
|
|
8
|
+
}): readonly Extract<GitHubAdapterEventData, {
|
|
9
|
+
eventType: typeof GitHubEventType.CommentObserved;
|
|
10
|
+
}>[];
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
+
import { EventActorKind, EventSourceKind } from '@atolis-hq/eventing';
|
|
1
2
|
import { ReviewActorKind, ReviewerAuthorizationSource } from '../../../activities/index.js';
|
|
2
|
-
import {
|
|
3
|
-
import { integrationStream } from '../../contracts/streams.js';
|
|
3
|
+
import { createGitHubEventData } from '../contracts/event-factory.js';
|
|
4
4
|
import { GitHubEventType } from '../contracts/events.js';
|
|
5
5
|
import { formatGitHubResourceKey } from '../contracts/external-key.js';
|
|
6
|
-
import {
|
|
6
|
+
import { GitHubBuiltInCommand, GitHubReviewState, UnknownGitHubIdentity, } from '../contracts/vocabulary.js';
|
|
7
7
|
export function githubReviewObservation(input) {
|
|
8
8
|
const body = input.review.body?.trim();
|
|
9
9
|
const command = reviewCommand(input.review.state);
|
|
@@ -12,29 +12,33 @@ export function githubReviewObservation(input) {
|
|
|
12
12
|
...parseRepository(input.repository),
|
|
13
13
|
number: input.pullRequest.number,
|
|
14
14
|
});
|
|
15
|
-
const draft = (eventId, content) =>
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
15
|
+
const draft = (eventId, content) => {
|
|
16
|
+
const event = createGitHubEventData({
|
|
17
|
+
eventId,
|
|
18
|
+
eventType: GitHubEventType.CommentObserved,
|
|
19
|
+
occurredAt: input.review.submitted_at,
|
|
20
|
+
correlationId: `github:${key}`,
|
|
21
|
+
causationId: `github:review:${input.review.id}`,
|
|
22
|
+
actor: { kind: EventActorKind.Integration, id: 'github' },
|
|
23
|
+
source: { kind: EventSourceKind.Adapter, id: 'github' },
|
|
24
|
+
payload: {
|
|
25
|
+
externalKey: key,
|
|
26
|
+
reviewKind: 'formal',
|
|
27
|
+
body: content,
|
|
28
|
+
revision: input.review.commit_id,
|
|
29
|
+
actor: {
|
|
30
|
+
id: actorId,
|
|
31
|
+
kind: input.review.user?.type === 'Bot' ? ReviewActorKind.Bot : ReviewActorKind.Human,
|
|
32
|
+
},
|
|
33
|
+
resourceAuthorId: input.pullRequest.user?.login ?? UnknownGitHubIdentity,
|
|
34
|
+
authorization: configuredAuthorization(actorId, input.authorizedReviewers),
|
|
35
|
+
raw: { reviewId: input.review.id, state: input.review.state },
|
|
32
36
|
},
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
}
|
|
37
|
+
});
|
|
38
|
+
if (event.eventType !== GitHubEventType.CommentObserved)
|
|
39
|
+
throw new Error(`Expected GitHub CommentObserved event data, received ${event.eventType}`);
|
|
40
|
+
return event;
|
|
41
|
+
};
|
|
38
42
|
return [
|
|
39
43
|
...(body === undefined || body.length === 0
|
|
40
44
|
? []
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import type { ProviderPermission } from '../../../activities/index.js';
|
|
2
|
+
import type { AdapterId } from '../../contracts/identifiers.js';
|
|
3
|
+
import type { GitHubConfig } from '../contracts/config.js';
|
|
4
|
+
import type { GitHubIssueQueryFilters } from '../contracts/issue-query.js';
|
|
5
|
+
import type { GitHubIssueCommentPayload, GitHubReviewPayload } from '../contracts/payloads.js';
|
|
6
|
+
import type { issueObservation } from './issue-source.js';
|
|
7
|
+
import type { GitHubPullRequestSourceClient } from './pr-source.js';
|
|
8
|
+
export interface GitHubSourceClient extends GitHubPullRequestSourceClient {
|
|
9
|
+
listIssues(owner: string, repo: string, maxResults: number, since?: string, filters?: GitHubIssueQueryFilters): Promise<readonly Parameters<typeof issueObservation>[0]['issue'][]>;
|
|
10
|
+
listIssueComments(owner: string, repo: string, issueNumber: number, pageSize: number, since?: string, maxResults?: number): Promise<readonly GitHubIssueCommentPayload[]>;
|
|
11
|
+
listReviews(owner: string, repo: string, pullNumber: number, pageSize: number, maxResults?: number): Promise<readonly GitHubReviewPayload[]>;
|
|
12
|
+
listReviewComments?(owner: string, repo: string, pullNumber: number, pageSize: number, maxResults?: number): Promise<readonly GitHubIssueCommentPayload[]>;
|
|
13
|
+
collaboratorPermission?(owner: string, repo: string, login: string): Promise<ProviderPermission>;
|
|
14
|
+
}
|
|
15
|
+
export interface RepositoryPollContext {
|
|
16
|
+
readonly client: GitHubSourceClient;
|
|
17
|
+
readonly config: GitHubConfig;
|
|
18
|
+
readonly adapter: AdapterId | undefined;
|
|
19
|
+
readonly owner: string;
|
|
20
|
+
readonly repo: string;
|
|
21
|
+
readonly repository: string;
|
|
22
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { CheckpointStore } from '@atolis-hq/eventing';
|
|
2
|
+
import type { AdapterId } from '../../contracts/identifiers.js';
|
|
3
|
+
import type { ExternalEventSource } from '../../contracts/intake.js';
|
|
4
|
+
import type { GitHubConfig } from '../contracts/config.js';
|
|
5
|
+
import { type GitHubAdapterHealthRegistry } from './adapter-health-registry.js';
|
|
6
|
+
import { type GitHubRequestCoordinator } from './request-coordinator.js';
|
|
7
|
+
import type { GitHubSourceClient } from './source-contracts.js';
|
|
8
|
+
export declare function createGitHubSource(config: GitHubConfig, client: GitHubSourceClient, adapter?: AdapterId, requests?: GitHubRequestCoordinator, state?: {
|
|
9
|
+
readonly checkpoints?: CheckpointStore;
|
|
10
|
+
readonly now?: () => number;
|
|
11
|
+
readonly health?: GitHubAdapterHealthRegistry;
|
|
12
|
+
}): ExternalEventSource;
|
|
@@ -10,11 +10,9 @@ export function createGitHubSource(config, client, adapter, requests = createGit
|
|
|
10
10
|
maxConcurrent: config.polling.maxConcurrent,
|
|
11
11
|
}), state) {
|
|
12
12
|
const health = state?.health ?? createGitHubAdapterHealthRegistry(config.repositories);
|
|
13
|
-
//
|
|
14
|
-
//
|
|
15
|
-
//
|
|
16
|
-
// a single process lifetime — it's a perf optimization, not a correctness dependency,
|
|
17
|
-
// so it's safe for it to reset on restart.
|
|
13
|
+
// Event ids are content fingerprints (see issue-source.ts/pr-source.ts), and the polling
|
|
14
|
+
// persistence boundary deduplicates them durably. This cache avoids returning unchanged
|
|
15
|
+
// work observations within one process lifetime, so it is only a performance optimization.
|
|
18
16
|
const lastEventIds = new Map();
|
|
19
17
|
const pendingWatermarks = new Map();
|
|
20
18
|
const now = state?.now ?? Date.now;
|