@methodts/runtime 0.1.0
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/dist/__fixtures__/executor-fixtures.d.ts +10 -0
- package/dist/__fixtures__/executor-fixtures.d.ts.map +1 -0
- package/dist/__fixtures__/executor-fixtures.js +36 -0
- package/dist/__fixtures__/executor-fixtures.js.map +1 -0
- package/dist/architecture.test.d.ts +2 -0
- package/dist/architecture.test.d.ts.map +1 -0
- package/dist/architecture.test.js +143 -0
- package/dist/architecture.test.js.map +1 -0
- package/dist/config/cost-governor-config.d.ts +40 -0
- package/dist/config/cost-governor-config.d.ts.map +1 -0
- package/dist/config/cost-governor-config.js +48 -0
- package/dist/config/cost-governor-config.js.map +1 -0
- package/dist/config/index.d.ts +7 -0
- package/dist/config/index.d.ts.map +1 -0
- package/dist/config/index.js +6 -0
- package/dist/config/index.js.map +1 -0
- package/dist/config/sessions-config.d.ts +29 -0
- package/dist/config/sessions-config.d.ts.map +1 -0
- package/dist/config/sessions-config.js +37 -0
- package/dist/config/sessions-config.js.map +1 -0
- package/dist/config/strategies-config.d.ts +38 -0
- package/dist/config/strategies-config.d.ts.map +1 -0
- package/dist/config/strategies-config.js +41 -0
- package/dist/config/strategies-config.js.map +1 -0
- package/dist/cost-governor/backpressure-queue.d.ts +20 -0
- package/dist/cost-governor/backpressure-queue.d.ts.map +1 -0
- package/dist/cost-governor/backpressure-queue.js +78 -0
- package/dist/cost-governor/backpressure-queue.js.map +1 -0
- package/dist/cost-governor/backpressure-queue.test.d.ts +2 -0
- package/dist/cost-governor/backpressure-queue.test.d.ts.map +1 -0
- package/dist/cost-governor/backpressure-queue.test.js +48 -0
- package/dist/cost-governor/backpressure-queue.test.js.map +1 -0
- package/dist/cost-governor/cost-events.d.ts +65 -0
- package/dist/cost-governor/cost-events.d.ts.map +1 -0
- package/dist/cost-governor/cost-events.js +48 -0
- package/dist/cost-governor/cost-events.js.map +1 -0
- package/dist/cost-governor/cost-governor-app-id.test.d.ts +19 -0
- package/dist/cost-governor/cost-governor-app-id.test.d.ts.map +1 -0
- package/dist/cost-governor/cost-governor-app-id.test.js +201 -0
- package/dist/cost-governor/cost-governor-app-id.test.js.map +1 -0
- package/dist/cost-governor/cost-oracle-impl.d.ts +19 -0
- package/dist/cost-governor/cost-oracle-impl.d.ts.map +1 -0
- package/dist/cost-governor/cost-oracle-impl.js +52 -0
- package/dist/cost-governor/cost-oracle-impl.js.map +1 -0
- package/dist/cost-governor/estimator.d.ts +22 -0
- package/dist/cost-governor/estimator.d.ts.map +1 -0
- package/dist/cost-governor/estimator.js +119 -0
- package/dist/cost-governor/estimator.js.map +1 -0
- package/dist/cost-governor/estimator.test.d.ts +2 -0
- package/dist/cost-governor/estimator.test.d.ts.map +1 -0
- package/dist/cost-governor/estimator.test.js +141 -0
- package/dist/cost-governor/estimator.test.js.map +1 -0
- package/dist/cost-governor/index.d.ts +75 -0
- package/dist/cost-governor/index.d.ts.map +1 -0
- package/dist/cost-governor/index.js +120 -0
- package/dist/cost-governor/index.js.map +1 -0
- package/dist/cost-governor/observations-store.d.ts +49 -0
- package/dist/cost-governor/observations-store.d.ts.map +1 -0
- package/dist/cost-governor/observations-store.js +179 -0
- package/dist/cost-governor/observations-store.js.map +1 -0
- package/dist/cost-governor/observations-store.test.d.ts +2 -0
- package/dist/cost-governor/observations-store.test.d.ts.map +1 -0
- package/dist/cost-governor/observations-store.test.js +191 -0
- package/dist/cost-governor/observations-store.test.js.map +1 -0
- package/dist/cost-governor/percentile.d.ts +17 -0
- package/dist/cost-governor/percentile.d.ts.map +1 -0
- package/dist/cost-governor/percentile.js +33 -0
- package/dist/cost-governor/percentile.js.map +1 -0
- package/dist/cost-governor/percentile.test.d.ts +2 -0
- package/dist/cost-governor/percentile.test.d.ts.map +1 -0
- package/dist/cost-governor/percentile.test.js +46 -0
- package/dist/cost-governor/percentile.test.js.map +1 -0
- package/dist/cost-governor/rate-governor-impl.d.ts +73 -0
- package/dist/cost-governor/rate-governor-impl.d.ts.map +1 -0
- package/dist/cost-governor/rate-governor-impl.js +148 -0
- package/dist/cost-governor/rate-governor-impl.js.map +1 -0
- package/dist/cost-governor/signature-builder.d.ts +22 -0
- package/dist/cost-governor/signature-builder.d.ts.map +1 -0
- package/dist/cost-governor/signature-builder.js +43 -0
- package/dist/cost-governor/signature-builder.js.map +1 -0
- package/dist/cost-governor/signature-builder.test.d.ts +2 -0
- package/dist/cost-governor/signature-builder.test.d.ts.map +1 -0
- package/dist/cost-governor/signature-builder.test.js +58 -0
- package/dist/cost-governor/signature-builder.test.js.map +1 -0
- package/dist/cost-governor/token-bucket.d.ts +57 -0
- package/dist/cost-governor/token-bucket.d.ts.map +1 -0
- package/dist/cost-governor/token-bucket.js +109 -0
- package/dist/cost-governor/token-bucket.js.map +1 -0
- package/dist/cost-governor/token-bucket.test.d.ts +2 -0
- package/dist/cost-governor/token-bucket.test.d.ts.map +1 -0
- package/dist/cost-governor/token-bucket.test.js +67 -0
- package/dist/cost-governor/token-bucket.test.js.map +1 -0
- package/dist/dlq/cortex-dlq-observer.d.ts +22 -0
- package/dist/dlq/cortex-dlq-observer.d.ts.map +1 -0
- package/dist/dlq/cortex-dlq-observer.js +29 -0
- package/dist/dlq/cortex-dlq-observer.js.map +1 -0
- package/dist/dlq/dlq-observer.test.d.ts +8 -0
- package/dist/dlq/dlq-observer.test.d.ts.map +1 -0
- package/dist/dlq/dlq-observer.test.js +103 -0
- package/dist/dlq/dlq-observer.test.js.map +1 -0
- package/dist/dlq/index.d.ts +6 -0
- package/dist/dlq/index.d.ts.map +1 -0
- package/dist/dlq/index.js +6 -0
- package/dist/dlq/index.js.map +1 -0
- package/dist/event-bus/adapters.d.ts +50 -0
- package/dist/event-bus/adapters.d.ts.map +1 -0
- package/dist/event-bus/adapters.js +51 -0
- package/dist/event-bus/adapters.js.map +1 -0
- package/dist/event-bus/adapters.test.d.ts +5 -0
- package/dist/event-bus/adapters.test.d.ts.map +1 -0
- package/dist/event-bus/adapters.test.js +73 -0
- package/dist/event-bus/adapters.test.js.map +1 -0
- package/dist/event-bus/agent-event-adapter.d.ts +22 -0
- package/dist/event-bus/agent-event-adapter.d.ts.map +1 -0
- package/dist/event-bus/agent-event-adapter.js +49 -0
- package/dist/event-bus/agent-event-adapter.js.map +1 -0
- package/dist/event-bus/agent-event-adapter.test.d.ts +5 -0
- package/dist/event-bus/agent-event-adapter.test.d.ts.map +1 -0
- package/dist/event-bus/agent-event-adapter.test.js +170 -0
- package/dist/event-bus/agent-event-adapter.test.js.map +1 -0
- package/dist/event-bus/channel-sink.d.ts +71 -0
- package/dist/event-bus/channel-sink.d.ts.map +1 -0
- package/dist/event-bus/channel-sink.js +159 -0
- package/dist/event-bus/channel-sink.js.map +1 -0
- package/dist/event-bus/channel-sink.test.d.ts +5 -0
- package/dist/event-bus/channel-sink.test.d.ts.map +1 -0
- package/dist/event-bus/channel-sink.test.js +234 -0
- package/dist/event-bus/channel-sink.test.js.map +1 -0
- package/dist/event-bus/event-types.snapshot.test.d.ts +27 -0
- package/dist/event-bus/event-types.snapshot.test.d.ts.map +1 -0
- package/dist/event-bus/event-types.snapshot.test.js +165 -0
- package/dist/event-bus/event-types.snapshot.test.js.map +1 -0
- package/dist/event-bus/genesis-sink.d.ts +55 -0
- package/dist/event-bus/genesis-sink.d.ts.map +1 -0
- package/dist/event-bus/genesis-sink.js +141 -0
- package/dist/event-bus/genesis-sink.js.map +1 -0
- package/dist/event-bus/genesis-sink.test.d.ts +5 -0
- package/dist/event-bus/genesis-sink.test.d.ts.map +1 -0
- package/dist/event-bus/genesis-sink.test.js +160 -0
- package/dist/event-bus/genesis-sink.test.js.map +1 -0
- package/dist/event-bus/in-memory-event-bus.d.ts +60 -0
- package/dist/event-bus/in-memory-event-bus.d.ts.map +1 -0
- package/dist/event-bus/in-memory-event-bus.js +274 -0
- package/dist/event-bus/in-memory-event-bus.js.map +1 -0
- package/dist/event-bus/in-memory-event-bus.test.d.ts +5 -0
- package/dist/event-bus/in-memory-event-bus.test.d.ts.map +1 -0
- package/dist/event-bus/in-memory-event-bus.test.js +457 -0
- package/dist/event-bus/in-memory-event-bus.test.js.map +1 -0
- package/dist/event-bus/index.d.ts +22 -0
- package/dist/event-bus/index.d.ts.map +1 -0
- package/dist/event-bus/index.js +17 -0
- package/dist/event-bus/index.js.map +1 -0
- package/dist/event-bus/persistence-sink.d.ts +74 -0
- package/dist/event-bus/persistence-sink.d.ts.map +1 -0
- package/dist/event-bus/persistence-sink.js +193 -0
- package/dist/event-bus/persistence-sink.js.map +1 -0
- package/dist/event-bus/persistence-sink.test.d.ts +6 -0
- package/dist/event-bus/persistence-sink.test.d.ts.map +1 -0
- package/dist/event-bus/persistence-sink.test.js +319 -0
- package/dist/event-bus/persistence-sink.test.js.map +1 -0
- package/dist/event-bus/session-checkpoint-sink.d.ts +91 -0
- package/dist/event-bus/session-checkpoint-sink.d.ts.map +1 -0
- package/dist/event-bus/session-checkpoint-sink.js +107 -0
- package/dist/event-bus/session-checkpoint-sink.js.map +1 -0
- package/dist/event-bus/session-checkpoint-sink.test.d.ts +5 -0
- package/dist/event-bus/session-checkpoint-sink.test.d.ts.map +1 -0
- package/dist/event-bus/session-checkpoint-sink.test.js +215 -0
- package/dist/event-bus/session-checkpoint-sink.test.js.map +1 -0
- package/dist/event-bus/webhook-connector.d.ts +59 -0
- package/dist/event-bus/webhook-connector.d.ts.map +1 -0
- package/dist/event-bus/webhook-connector.js +191 -0
- package/dist/event-bus/webhook-connector.js.map +1 -0
- package/dist/event-bus/webhook-connector.test.d.ts +5 -0
- package/dist/event-bus/webhook-connector.test.d.ts.map +1 -0
- package/dist/event-bus/webhook-connector.test.js +214 -0
- package/dist/event-bus/webhook-connector.test.js.map +1 -0
- package/dist/executors/cortex-job-backed-executor.d.ts +137 -0
- package/dist/executors/cortex-job-backed-executor.d.ts.map +1 -0
- package/dist/executors/cortex-job-backed-executor.js +441 -0
- package/dist/executors/cortex-job-backed-executor.js.map +1 -0
- package/dist/executors/cortex-job-backed-executor.test.d.ts +13 -0
- package/dist/executors/cortex-job-backed-executor.test.d.ts.map +1 -0
- package/dist/executors/cortex-job-backed-executor.test.js +303 -0
- package/dist/executors/cortex-job-backed-executor.test.js.map +1 -0
- package/dist/executors/index.d.ts +9 -0
- package/dist/executors/index.d.ts.map +1 -0
- package/dist/executors/index.js +9 -0
- package/dist/executors/index.js.map +1 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +13 -0
- package/dist/index.js.map +1 -0
- package/dist/ports/checkpoint-sink.d.ts +69 -0
- package/dist/ports/checkpoint-sink.d.ts.map +1 -0
- package/dist/ports/checkpoint-sink.js +16 -0
- package/dist/ports/checkpoint-sink.js.map +1 -0
- package/dist/ports/checkpoint.d.ts +68 -0
- package/dist/ports/checkpoint.d.ts.map +1 -0
- package/dist/ports/checkpoint.js +14 -0
- package/dist/ports/checkpoint.js.map +1 -0
- package/dist/ports/continuation-envelope-cross-app.test.d.ts +10 -0
- package/dist/ports/continuation-envelope-cross-app.test.d.ts.map +1 -0
- package/dist/ports/continuation-envelope-cross-app.test.js +95 -0
- package/dist/ports/continuation-envelope-cross-app.test.js.map +1 -0
- package/dist/ports/continuation-envelope.d.ts +199 -0
- package/dist/ports/continuation-envelope.d.ts.map +1 -0
- package/dist/ports/continuation-envelope.js +69 -0
- package/dist/ports/continuation-envelope.js.map +1 -0
- package/dist/ports/conversation.d.ts +64 -0
- package/dist/ports/conversation.d.ts.map +1 -0
- package/dist/ports/conversation.js +19 -0
- package/dist/ports/conversation.js.map +1 -0
- package/dist/ports/cost-oracle.d.ts +26 -0
- package/dist/ports/cost-oracle.d.ts.map +1 -0
- package/dist/ports/cost-oracle.js +9 -0
- package/dist/ports/cost-oracle.js.map +1 -0
- package/dist/ports/cross-app-invoker.d.ts +198 -0
- package/dist/ports/cross-app-invoker.d.ts.map +1 -0
- package/dist/ports/cross-app-invoker.js +157 -0
- package/dist/ports/cross-app-invoker.js.map +1 -0
- package/dist/ports/dlq-observer.d.ts +40 -0
- package/dist/ports/dlq-observer.d.ts.map +1 -0
- package/dist/ports/dlq-observer.js +20 -0
- package/dist/ports/dlq-observer.js.map +1 -0
- package/dist/ports/event-bus.d.ts +169 -0
- package/dist/ports/event-bus.d.ts.map +1 -0
- package/dist/ports/event-bus.js +20 -0
- package/dist/ports/event-bus.js.map +1 -0
- package/dist/ports/event-reader.d.ts +21 -0
- package/dist/ports/event-reader.d.ts.map +1 -0
- package/dist/ports/event-reader.js +12 -0
- package/dist/ports/event-reader.js.map +1 -0
- package/dist/ports/event-rotator.d.ts +39 -0
- package/dist/ports/event-rotator.d.ts.map +1 -0
- package/dist/ports/event-rotator.js +15 -0
- package/dist/ports/event-rotator.js.map +1 -0
- package/dist/ports/file-system.d.ts +48 -0
- package/dist/ports/file-system.d.ts.map +1 -0
- package/dist/ports/file-system.js +10 -0
- package/dist/ports/file-system.js.map +1 -0
- package/dist/ports/historical-observations.d.ts +39 -0
- package/dist/ports/historical-observations.d.ts.map +1 -0
- package/dist/ports/historical-observations.js +12 -0
- package/dist/ports/historical-observations.js.map +1 -0
- package/dist/ports/in-memory-source.d.ts +46 -0
- package/dist/ports/in-memory-source.d.ts.map +1 -0
- package/dist/ports/in-memory-source.js +69 -0
- package/dist/ports/in-memory-source.js.map +1 -0
- package/dist/ports/index.d.ts +32 -0
- package/dist/ports/index.d.ts.map +1 -0
- package/dist/ports/index.js +10 -0
- package/dist/ports/index.js.map +1 -0
- package/dist/ports/job-backed-executor.d.ts +139 -0
- package/dist/ports/job-backed-executor.d.ts.map +1 -0
- package/dist/ports/job-backed-executor.js +56 -0
- package/dist/ports/job-backed-executor.js.map +1 -0
- package/dist/ports/methodology-source.d.ts +95 -0
- package/dist/ports/methodology-source.d.ts.map +1 -0
- package/dist/ports/methodology-source.js +26 -0
- package/dist/ports/methodology-source.js.map +1 -0
- package/dist/ports/native-session-discovery.d.ts +20 -0
- package/dist/ports/native-session-discovery.d.ts.map +1 -0
- package/dist/ports/native-session-discovery.js +13 -0
- package/dist/ports/native-session-discovery.js.map +1 -0
- package/dist/ports/projection-store.d.ts +48 -0
- package/dist/ports/projection-store.d.ts.map +1 -0
- package/dist/ports/projection-store.js +17 -0
- package/dist/ports/projection-store.js.map +1 -0
- package/dist/ports/projection.d.ts +29 -0
- package/dist/ports/projection.d.ts.map +1 -0
- package/dist/ports/projection.js +13 -0
- package/dist/ports/projection.js.map +1 -0
- package/dist/ports/rate-governor.d.ts +17 -0
- package/dist/ports/rate-governor.d.ts.map +1 -0
- package/dist/ports/rate-governor.js +11 -0
- package/dist/ports/rate-governor.js.map +1 -0
- package/dist/ports/schedule-client.d.ts +29 -0
- package/dist/ports/schedule-client.d.ts.map +1 -0
- package/dist/ports/schedule-client.js +2 -0
- package/dist/ports/schedule-client.js.map +1 -0
- package/dist/ports/session-pool.d.ts +162 -0
- package/dist/ports/session-pool.d.ts.map +1 -0
- package/dist/ports/session-pool.js +21 -0
- package/dist/ports/session-pool.js.map +1 -0
- package/dist/ports/session-store-errors.d.ts +22 -0
- package/dist/ports/session-store-errors.d.ts.map +1 -0
- package/dist/ports/session-store-errors.js +29 -0
- package/dist/ports/session-store-errors.js.map +1 -0
- package/dist/ports/session-store-types.d.ts +132 -0
- package/dist/ports/session-store-types.d.ts.map +1 -0
- package/dist/ports/session-store-types.js +14 -0
- package/dist/ports/session-store-types.js.map +1 -0
- package/dist/ports/session-store.d.ts +69 -0
- package/dist/ports/session-store.d.ts.map +1 -0
- package/dist/ports/session-store.js +23 -0
- package/dist/ports/session-store.js.map +1 -0
- package/dist/ports/yaml-loader.d.ts +15 -0
- package/dist/ports/yaml-loader.d.ts.map +1 -0
- package/dist/ports/yaml-loader.js +13 -0
- package/dist/ports/yaml-loader.js.map +1 -0
- package/dist/scheduling/index.d.ts +6 -0
- package/dist/scheduling/index.d.ts.map +1 -0
- package/dist/scheduling/index.js +6 -0
- package/dist/scheduling/index.js.map +1 -0
- package/dist/scheduling/scheduled-pact.d.ts +97 -0
- package/dist/scheduling/scheduled-pact.d.ts.map +1 -0
- package/dist/scheduling/scheduled-pact.js +89 -0
- package/dist/scheduling/scheduled-pact.js.map +1 -0
- package/dist/sessions/__tests__/cognitive-modules.test.d.ts +10 -0
- package/dist/sessions/__tests__/cognitive-modules.test.d.ts.map +1 -0
- package/dist/sessions/__tests__/cognitive-modules.test.js +535 -0
- package/dist/sessions/__tests__/cognitive-modules.test.js.map +1 -0
- package/dist/sessions/__tests__/cognitive-provider.test.d.ts +13 -0
- package/dist/sessions/__tests__/cognitive-provider.test.d.ts.map +1 -0
- package/dist/sessions/__tests__/cognitive-provider.test.js +331 -0
- package/dist/sessions/__tests__/cognitive-provider.test.js.map +1 -0
- package/dist/sessions/__tests__/cognitive-sink.test.d.ts +19 -0
- package/dist/sessions/__tests__/cognitive-sink.test.d.ts.map +1 -0
- package/dist/sessions/__tests__/cognitive-sink.test.js +334 -0
- package/dist/sessions/__tests__/cognitive-sink.test.js.map +1 -0
- package/dist/sessions/__tests__/runtime-tools.test.d.ts +2 -0
- package/dist/sessions/__tests__/runtime-tools.test.d.ts.map +1 -0
- package/dist/sessions/__tests__/runtime-tools.test.js +83 -0
- package/dist/sessions/__tests__/runtime-tools.test.js.map +1 -0
- package/dist/sessions/auto-retro.d.ts +29 -0
- package/dist/sessions/auto-retro.d.ts.map +1 -0
- package/dist/sessions/auto-retro.js +181 -0
- package/dist/sessions/auto-retro.js.map +1 -0
- package/dist/sessions/auto-retro.test.d.ts +2 -0
- package/dist/sessions/auto-retro.test.d.ts.map +1 -0
- package/dist/sessions/auto-retro.test.js +361 -0
- package/dist/sessions/auto-retro.test.js.map +1 -0
- package/dist/sessions/channels.d.ts +55 -0
- package/dist/sessions/channels.d.ts.map +1 -0
- package/dist/sessions/channels.js +118 -0
- package/dist/sessions/channels.js.map +1 -0
- package/dist/sessions/channels.test.d.ts +2 -0
- package/dist/sessions/channels.test.d.ts.map +1 -0
- package/dist/sessions/channels.test.js +285 -0
- package/dist/sessions/channels.test.js.map +1 -0
- package/dist/sessions/cognitive-modules.d.ts +100 -0
- package/dist/sessions/cognitive-modules.d.ts.map +1 -0
- package/dist/sessions/cognitive-modules.js +458 -0
- package/dist/sessions/cognitive-modules.js.map +1 -0
- package/dist/sessions/cognitive-provider.d.ts +42 -0
- package/dist/sessions/cognitive-provider.d.ts.map +1 -0
- package/dist/sessions/cognitive-provider.js +208 -0
- package/dist/sessions/cognitive-provider.js.map +1 -0
- package/dist/sessions/cognitive-sink.d.ts +73 -0
- package/dist/sessions/cognitive-sink.d.ts.map +1 -0
- package/dist/sessions/cognitive-sink.js +154 -0
- package/dist/sessions/cognitive-sink.js.map +1 -0
- package/dist/sessions/diagnostics.d.ts +70 -0
- package/dist/sessions/diagnostics.d.ts.map +1 -0
- package/dist/sessions/diagnostics.js +129 -0
- package/dist/sessions/diagnostics.js.map +1 -0
- package/dist/sessions/diagnostics.test.d.ts +2 -0
- package/dist/sessions/diagnostics.test.d.ts.map +1 -0
- package/dist/sessions/diagnostics.test.js +135 -0
- package/dist/sessions/diagnostics.test.js.map +1 -0
- package/dist/sessions/index.d.ts +32 -0
- package/dist/sessions/index.d.ts.map +1 -0
- package/dist/sessions/index.js +33 -0
- package/dist/sessions/index.js.map +1 -0
- package/dist/sessions/pool.d.ts +218 -0
- package/dist/sessions/pool.d.ts.map +1 -0
- package/dist/sessions/pool.js +991 -0
- package/dist/sessions/pool.js.map +1 -0
- package/dist/sessions/pool.test.d.ts +2 -0
- package/dist/sessions/pool.test.d.ts.map +1 -0
- package/dist/sessions/pool.test.js +633 -0
- package/dist/sessions/pool.test.js.map +1 -0
- package/dist/sessions/print-session.d.ts +142 -0
- package/dist/sessions/print-session.d.ts.map +1 -0
- package/dist/sessions/print-session.js +325 -0
- package/dist/sessions/print-session.js.map +1 -0
- package/dist/sessions/print-session.test.d.ts +2 -0
- package/dist/sessions/print-session.test.d.ts.map +1 -0
- package/dist/sessions/print-session.test.js +418 -0
- package/dist/sessions/print-session.test.js.map +1 -0
- package/dist/sessions/runtime-tools.d.ts +22 -0
- package/dist/sessions/runtime-tools.d.ts.map +1 -0
- package/dist/sessions/runtime-tools.js +162 -0
- package/dist/sessions/runtime-tools.js.map +1 -0
- package/dist/sessions/scope-hook.d.ts +77 -0
- package/dist/sessions/scope-hook.d.ts.map +1 -0
- package/dist/sessions/scope-hook.js +323 -0
- package/dist/sessions/scope-hook.js.map +1 -0
- package/dist/sessions/scope-hook.test.d.ts +2 -0
- package/dist/sessions/scope-hook.test.d.ts.map +1 -0
- package/dist/sessions/scope-hook.test.js +249 -0
- package/dist/sessions/scope-hook.test.js.map +1 -0
- package/dist/sessions/session-store/checkpoint-sink-impl.d.ts +16 -0
- package/dist/sessions/session-store/checkpoint-sink-impl.d.ts.map +1 -0
- package/dist/sessions/session-store/checkpoint-sink-impl.js +191 -0
- package/dist/sessions/session-store/checkpoint-sink-impl.js.map +1 -0
- package/dist/sessions/session-store/checkpoint-sink-impl.test.d.ts +5 -0
- package/dist/sessions/session-store/checkpoint-sink-impl.test.d.ts.map +1 -0
- package/dist/sessions/session-store/checkpoint-sink-impl.test.js +137 -0
- package/dist/sessions/session-store/checkpoint-sink-impl.test.js.map +1 -0
- package/dist/sessions/session-store/conformance.d.ts +59 -0
- package/dist/sessions/session-store/conformance.d.ts.map +1 -0
- package/dist/sessions/session-store/conformance.js +172 -0
- package/dist/sessions/session-store/conformance.js.map +1 -0
- package/dist/sessions/session-store/conformance.test.d.ts +7 -0
- package/dist/sessions/session-store/conformance.test.d.ts.map +1 -0
- package/dist/sessions/session-store/conformance.test.js +22 -0
- package/dist/sessions/session-store/conformance.test.js.map +1 -0
- package/dist/sessions/session-store/in-memory-session-store.d.ts +23 -0
- package/dist/sessions/session-store/in-memory-session-store.d.ts.map +1 -0
- package/dist/sessions/session-store/in-memory-session-store.js +197 -0
- package/dist/sessions/session-store/in-memory-session-store.js.map +1 -0
- package/dist/sessions/session-store/in-memory-session-store.test.d.ts +6 -0
- package/dist/sessions/session-store/in-memory-session-store.test.d.ts.map +1 -0
- package/dist/sessions/session-store/in-memory-session-store.test.js +183 -0
- package/dist/sessions/session-store/in-memory-session-store.test.js.map +1 -0
- package/dist/sessions/session-store/index.d.ts +20 -0
- package/dist/sessions/session-store/index.d.ts.map +1 -0
- package/dist/sessions/session-store/index.js +15 -0
- package/dist/sessions/session-store/index.js.map +1 -0
- package/dist/sessions/session-store/resume.d.ts +88 -0
- package/dist/sessions/session-store/resume.d.ts.map +1 -0
- package/dist/sessions/session-store/resume.js +96 -0
- package/dist/sessions/session-store/resume.js.map +1 -0
- package/dist/sessions/session-store/resume.test.d.ts +5 -0
- package/dist/sessions/session-store/resume.test.d.ts.map +1 -0
- package/dist/sessions/session-store/resume.test.js +119 -0
- package/dist/sessions/session-store/resume.test.js.map +1 -0
- package/dist/sessions/spawn-queue.d.ts +28 -0
- package/dist/sessions/spawn-queue.d.ts.map +1 -0
- package/dist/sessions/spawn-queue.js +63 -0
- package/dist/sessions/spawn-queue.js.map +1 -0
- package/dist/sessions/spawn-queue.test.d.ts +2 -0
- package/dist/sessions/spawn-queue.test.d.ts.map +1 -0
- package/dist/sessions/spawn-queue.test.js +65 -0
- package/dist/sessions/spawn-queue.test.js.map +1 -0
- package/dist/sessions/types.d.ts +16 -0
- package/dist/sessions/types.d.ts.map +1 -0
- package/dist/sessions/types.js +11 -0
- package/dist/sessions/types.js.map +1 -0
- package/dist/sessions/worktree-stale.test.d.ts +2 -0
- package/dist/sessions/worktree-stale.test.d.ts.map +1 -0
- package/dist/sessions/worktree-stale.test.js +468 -0
- package/dist/sessions/worktree-stale.test.js.map +1 -0
- package/dist/strategy/artifact-store.d.ts +12 -0
- package/dist/strategy/artifact-store.d.ts.map +1 -0
- package/dist/strategy/artifact-store.js +12 -0
- package/dist/strategy/artifact-store.js.map +1 -0
- package/dist/strategy/artifact-store.test.d.ts +2 -0
- package/dist/strategy/artifact-store.test.d.ts.map +1 -0
- package/dist/strategy/artifact-store.test.js +170 -0
- package/dist/strategy/artifact-store.test.js.map +1 -0
- package/dist/strategy/context-load-executor.d.ts +23 -0
- package/dist/strategy/context-load-executor.d.ts.map +1 -0
- package/dist/strategy/context-load-executor.js +87 -0
- package/dist/strategy/context-load-executor.js.map +1 -0
- package/dist/strategy/context-load-executor.test.d.ts +16 -0
- package/dist/strategy/context-load-executor.test.d.ts.map +1 -0
- package/dist/strategy/context-load-executor.test.js +158 -0
- package/dist/strategy/context-load-executor.test.js.map +1 -0
- package/dist/strategy/cortex-cross-app-invoker.stub.d.ts +65 -0
- package/dist/strategy/cortex-cross-app-invoker.stub.d.ts.map +1 -0
- package/dist/strategy/cortex-cross-app-invoker.stub.js +68 -0
- package/dist/strategy/cortex-cross-app-invoker.stub.js.map +1 -0
- package/dist/strategy/cross-app-node-executor.d.ts +54 -0
- package/dist/strategy/cross-app-node-executor.d.ts.map +1 -0
- package/dist/strategy/cross-app-node-executor.js +98 -0
- package/dist/strategy/cross-app-node-executor.js.map +1 -0
- package/dist/strategy/cross-app-node-executor.test.d.ts +13 -0
- package/dist/strategy/cross-app-node-executor.test.d.ts.map +1 -0
- package/dist/strategy/cross-app-node-executor.test.js +160 -0
- package/dist/strategy/cross-app-node-executor.test.js.map +1 -0
- package/dist/strategy/gates.d.ts +13 -0
- package/dist/strategy/gates.d.ts.map +1 -0
- package/dist/strategy/gates.js +13 -0
- package/dist/strategy/gates.js.map +1 -0
- package/dist/strategy/gates.test.d.ts +2 -0
- package/dist/strategy/gates.test.d.ts.map +1 -0
- package/dist/strategy/gates.test.js +299 -0
- package/dist/strategy/gates.test.js.map +1 -0
- package/dist/strategy/human-approval-resolver.d.ts +23 -0
- package/dist/strategy/human-approval-resolver.d.ts.map +1 -0
- package/dist/strategy/human-approval-resolver.js +94 -0
- package/dist/strategy/human-approval-resolver.js.map +1 -0
- package/dist/strategy/human-approval-resolver.test.d.ts +16 -0
- package/dist/strategy/human-approval-resolver.test.d.ts.map +1 -0
- package/dist/strategy/human-approval-resolver.test.js +200 -0
- package/dist/strategy/human-approval-resolver.test.js.map +1 -0
- package/dist/strategy/in-process-cross-app-invoker.d.ts +105 -0
- package/dist/strategy/in-process-cross-app-invoker.d.ts.map +1 -0
- package/dist/strategy/in-process-cross-app-invoker.js +206 -0
- package/dist/strategy/in-process-cross-app-invoker.js.map +1 -0
- package/dist/strategy/in-process-cross-app-invoker.test.d.ts +15 -0
- package/dist/strategy/in-process-cross-app-invoker.test.d.ts.map +1 -0
- package/dist/strategy/in-process-cross-app-invoker.test.js +190 -0
- package/dist/strategy/in-process-cross-app-invoker.test.js.map +1 -0
- package/dist/strategy/index.d.ts +29 -0
- package/dist/strategy/index.d.ts.map +1 -0
- package/dist/strategy/index.js +29 -0
- package/dist/strategy/index.js.map +1 -0
- package/dist/strategy/pacta-strategy.d.ts +97 -0
- package/dist/strategy/pacta-strategy.d.ts.map +1 -0
- package/dist/strategy/pacta-strategy.js +117 -0
- package/dist/strategy/pacta-strategy.js.map +1 -0
- package/dist/strategy/pacta-strategy.test.d.ts +2 -0
- package/dist/strategy/pacta-strategy.test.d.ts.map +1 -0
- package/dist/strategy/pacta-strategy.test.js +234 -0
- package/dist/strategy/pacta-strategy.test.js.map +1 -0
- package/dist/strategy/retro-generator.d.ts +18 -0
- package/dist/strategy/retro-generator.d.ts.map +1 -0
- package/dist/strategy/retro-generator.js +22 -0
- package/dist/strategy/retro-generator.js.map +1 -0
- package/dist/strategy/retro-writer.d.ts +25 -0
- package/dist/strategy/retro-writer.d.ts.map +1 -0
- package/dist/strategy/retro-writer.js +65 -0
- package/dist/strategy/retro-writer.js.map +1 -0
- package/dist/strategy/strategy-executor.d.ts +39 -0
- package/dist/strategy/strategy-executor.d.ts.map +1 -0
- package/dist/strategy/strategy-executor.js +253 -0
- package/dist/strategy/strategy-executor.js.map +1 -0
- package/dist/strategy/strategy-executor.test.d.ts +8 -0
- package/dist/strategy/strategy-executor.test.d.ts.map +1 -0
- package/dist/strategy/strategy-executor.test.js +1301 -0
- package/dist/strategy/strategy-executor.test.js.map +1 -0
- package/dist/strategy/strategy-parser.d.ts +30 -0
- package/dist/strategy/strategy-parser.d.ts.map +1 -0
- package/dist/strategy/strategy-parser.js +30 -0
- package/dist/strategy/strategy-parser.js.map +1 -0
- package/dist/strategy/sub-strategy-source.d.ts +27 -0
- package/dist/strategy/sub-strategy-source.d.ts.map +1 -0
- package/dist/strategy/sub-strategy-source.js +77 -0
- package/dist/strategy/sub-strategy-source.js.map +1 -0
- package/dist/strategy/types.d.ts +12 -0
- package/dist/strategy/types.d.ts.map +1 -0
- package/dist/strategy/types.js +9 -0
- package/dist/strategy/types.js.map +1 -0
- package/package.json +87 -0
|
@@ -0,0 +1,190 @@
|
|
|
1
|
+
// SPDX-License-Identifier: Apache-2.0
|
|
2
|
+
/**
|
|
3
|
+
* Tests for InProcessCrossAppInvoker (PRD-067 Track A simulator).
|
|
4
|
+
*
|
|
5
|
+
* Covers:
|
|
6
|
+
* - Basic register + invoke happy path
|
|
7
|
+
* - Idempotency caching
|
|
8
|
+
* - Depth-cap rejection (G-DELEGATION-DEPTH-CAP)
|
|
9
|
+
* - Unknown target app / operation (simulator analogue of allowlist failure)
|
|
10
|
+
* - Allowlist override (G-TARGET-ALLOWLIST)
|
|
11
|
+
* - Target handler throws → wrapped as CrossAppTargetError (G-FAILURE-ISOLATION)
|
|
12
|
+
* - capabilities() reports registered apps
|
|
13
|
+
* - assertCrossAppTargetsAllowed compose-time check
|
|
14
|
+
*/
|
|
15
|
+
import { describe, it } from 'node:test';
|
|
16
|
+
import assert from 'node:assert/strict';
|
|
17
|
+
import { CrossAppDelegationDepthExceededError, CrossAppTargetError, CrossAppTargetNotDeclaredError, CrossAppTargetUnknownError, NullCrossAppInvoker, CrossAppNotConfiguredError, assertCrossAppTargetsAllowed, CROSS_APP_DEFAULT_MAX_DELEGATION_DEPTH, } from '../ports/cross-app-invoker.js';
|
|
18
|
+
import { InProcessCrossAppInvoker } from './in-process-cross-app-invoker.js';
|
|
19
|
+
function delegation(currentDepth = 0) {
|
|
20
|
+
return {
|
|
21
|
+
parentToken: 'test-token',
|
|
22
|
+
currentDepth,
|
|
23
|
+
originatingRequestId: 'req-test',
|
|
24
|
+
};
|
|
25
|
+
}
|
|
26
|
+
describe('InProcessCrossAppInvoker', () => {
|
|
27
|
+
it('dispatches a registered operation and returns typed output', async () => {
|
|
28
|
+
const invoker = new InProcessCrossAppInvoker();
|
|
29
|
+
invoker.registerApp('feature-dev-agent', {
|
|
30
|
+
commission_fix: (input) => ({
|
|
31
|
+
pr_url: `https://example/pr?label=${input.label}`,
|
|
32
|
+
effort: 'S',
|
|
33
|
+
}),
|
|
34
|
+
});
|
|
35
|
+
const result = await invoker.invoke({
|
|
36
|
+
targetAppId: 'feature-dev-agent',
|
|
37
|
+
operation: 'commission_fix',
|
|
38
|
+
input: { label: 'defect' },
|
|
39
|
+
delegation: delegation(1),
|
|
40
|
+
caller: { sessionId: 's1', nodeId: 'commission' },
|
|
41
|
+
});
|
|
42
|
+
assert.equal(result.output.pr_url, 'https://example/pr?label=defect');
|
|
43
|
+
assert.equal(result.output.effort, 'S');
|
|
44
|
+
assert.ok(result.targetDecisionId.startsWith('in-proc-decision-'));
|
|
45
|
+
assert.equal(result.callerCostUsd, 0);
|
|
46
|
+
assert.ok(result.latencyMs >= 0);
|
|
47
|
+
});
|
|
48
|
+
it('caches results by idempotency key', async () => {
|
|
49
|
+
const invoker = new InProcessCrossAppInvoker();
|
|
50
|
+
let callCount = 0;
|
|
51
|
+
invoker.registerApp('worker', {
|
|
52
|
+
do: () => {
|
|
53
|
+
callCount += 1;
|
|
54
|
+
return { callCount };
|
|
55
|
+
},
|
|
56
|
+
});
|
|
57
|
+
const req = {
|
|
58
|
+
targetAppId: 'worker',
|
|
59
|
+
operation: 'do',
|
|
60
|
+
input: {},
|
|
61
|
+
idempotencyKey: 'fixed-key',
|
|
62
|
+
delegation: delegation(0),
|
|
63
|
+
caller: { sessionId: 's', nodeId: 'n' },
|
|
64
|
+
};
|
|
65
|
+
const r1 = await invoker.invoke(req);
|
|
66
|
+
const r2 = await invoker.invoke(req);
|
|
67
|
+
assert.equal(callCount, 1, 'handler must run once for same idempotency key');
|
|
68
|
+
assert.deepEqual(r1.output, r2.output);
|
|
69
|
+
assert.equal(r1.targetDecisionId, r2.targetDecisionId);
|
|
70
|
+
invoker.clearIdempotencyCache();
|
|
71
|
+
await invoker.invoke(req);
|
|
72
|
+
assert.equal(callCount, 2, 'clearIdempotencyCache allows re-execution');
|
|
73
|
+
});
|
|
74
|
+
it('rejects when delegation depth >= max (G-DELEGATION-DEPTH-CAP)', async () => {
|
|
75
|
+
const invoker = new InProcessCrossAppInvoker();
|
|
76
|
+
invoker.registerApp('a', { op: () => ({}) });
|
|
77
|
+
await assert.rejects(() => invoker.invoke({
|
|
78
|
+
targetAppId: 'a',
|
|
79
|
+
operation: 'op',
|
|
80
|
+
input: {},
|
|
81
|
+
delegation: delegation(CROSS_APP_DEFAULT_MAX_DELEGATION_DEPTH),
|
|
82
|
+
caller: { sessionId: 's', nodeId: 'n' },
|
|
83
|
+
}), CrossAppDelegationDepthExceededError);
|
|
84
|
+
});
|
|
85
|
+
it('throws CrossAppTargetUnknownError for unknown app or operation', async () => {
|
|
86
|
+
const invoker = new InProcessCrossAppInvoker();
|
|
87
|
+
invoker.registerApp('known', { op1: () => ({}) });
|
|
88
|
+
await assert.rejects(() => invoker.invoke({
|
|
89
|
+
targetAppId: 'missing',
|
|
90
|
+
operation: 'op',
|
|
91
|
+
input: {},
|
|
92
|
+
delegation: delegation(),
|
|
93
|
+
caller: { sessionId: 's', nodeId: 'n' },
|
|
94
|
+
}), CrossAppTargetUnknownError);
|
|
95
|
+
await assert.rejects(() => invoker.invoke({
|
|
96
|
+
targetAppId: 'known',
|
|
97
|
+
operation: 'missing-op',
|
|
98
|
+
input: {},
|
|
99
|
+
delegation: delegation(),
|
|
100
|
+
caller: { sessionId: 's', nodeId: 'n' },
|
|
101
|
+
}), CrossAppTargetUnknownError);
|
|
102
|
+
});
|
|
103
|
+
it('wraps target handler throws as CrossAppTargetError (G-FAILURE-ISOLATION)', async () => {
|
|
104
|
+
const invoker = new InProcessCrossAppInvoker();
|
|
105
|
+
invoker.registerApp('bad', {
|
|
106
|
+
boom: () => {
|
|
107
|
+
throw new Error('target exploded');
|
|
108
|
+
},
|
|
109
|
+
});
|
|
110
|
+
await assert.rejects(() => invoker.invoke({
|
|
111
|
+
targetAppId: 'bad',
|
|
112
|
+
operation: 'boom',
|
|
113
|
+
input: {},
|
|
114
|
+
delegation: delegation(),
|
|
115
|
+
caller: { sessionId: 's', nodeId: 'n' },
|
|
116
|
+
}), (err) => {
|
|
117
|
+
assert.ok(err instanceof CrossAppTargetError);
|
|
118
|
+
assert.equal(err.targetAppId, 'bad');
|
|
119
|
+
assert.equal(err.operation, 'boom');
|
|
120
|
+
assert.ok(err.targetDecisionId.startsWith('in-proc-decision-'));
|
|
121
|
+
return true;
|
|
122
|
+
});
|
|
123
|
+
});
|
|
124
|
+
it('capabilities() reports registered apps as allowed set', () => {
|
|
125
|
+
const invoker = new InProcessCrossAppInvoker();
|
|
126
|
+
invoker.registerApp('alpha', { o: () => ({}) });
|
|
127
|
+
invoker.registerApp('beta', { o: () => ({}) });
|
|
128
|
+
const caps = invoker.capabilities();
|
|
129
|
+
assert.equal(caps.enabled, true);
|
|
130
|
+
assert.equal(caps.maxDelegationDepth, CROSS_APP_DEFAULT_MAX_DELEGATION_DEPTH);
|
|
131
|
+
assert.deepEqual([...(caps.allowedTargetAppIds ?? [])].sort(), ['alpha', 'beta']);
|
|
132
|
+
});
|
|
133
|
+
it('honors allowedTargetAppIdsOverride (models manifest-declared apps not yet registered)', async () => {
|
|
134
|
+
const invoker = new InProcessCrossAppInvoker({
|
|
135
|
+
allowedTargetAppIdsOverride: new Set(['only-this-one']),
|
|
136
|
+
});
|
|
137
|
+
invoker.registerApp('only-this-one', { op: () => ({ ok: true }) });
|
|
138
|
+
// Target NOT in override → unknown (manifest hasn't declared it).
|
|
139
|
+
await assert.rejects(() => invoker.invoke({
|
|
140
|
+
targetAppId: 'other',
|
|
141
|
+
operation: 'op',
|
|
142
|
+
input: {},
|
|
143
|
+
delegation: delegation(),
|
|
144
|
+
caller: { sessionId: 's', nodeId: 'n' },
|
|
145
|
+
}), CrossAppTargetUnknownError);
|
|
146
|
+
// Target IN override → dispatches.
|
|
147
|
+
const result = await invoker.invoke({
|
|
148
|
+
targetAppId: 'only-this-one',
|
|
149
|
+
operation: 'op',
|
|
150
|
+
input: {},
|
|
151
|
+
delegation: delegation(),
|
|
152
|
+
caller: { sessionId: 's', nodeId: 'n' },
|
|
153
|
+
});
|
|
154
|
+
assert.deepEqual(result.output, { ok: true });
|
|
155
|
+
});
|
|
156
|
+
});
|
|
157
|
+
describe('NullCrossAppInvoker + assertCrossAppTargetsAllowed', () => {
|
|
158
|
+
it('NullCrossAppInvoker.invoke throws CrossAppNotConfiguredError', async () => {
|
|
159
|
+
const invoker = new NullCrossAppInvoker();
|
|
160
|
+
await assert.rejects(() => invoker.invoke({
|
|
161
|
+
targetAppId: 'x',
|
|
162
|
+
operation: 'y',
|
|
163
|
+
input: {},
|
|
164
|
+
delegation: delegation(),
|
|
165
|
+
caller: { sessionId: 's', nodeId: 'n' },
|
|
166
|
+
}), CrossAppNotConfiguredError);
|
|
167
|
+
assert.equal(invoker.capabilities().enabled, false);
|
|
168
|
+
});
|
|
169
|
+
it('assertCrossAppTargetsAllowed skips check when allowedTargetAppIds undefined', () => {
|
|
170
|
+
const permissive = {
|
|
171
|
+
invoke: async () => {
|
|
172
|
+
throw new Error('not used');
|
|
173
|
+
},
|
|
174
|
+
capabilities: () => ({
|
|
175
|
+
enabled: true,
|
|
176
|
+
maxDelegationDepth: 2,
|
|
177
|
+
allowedTargetAppIds: undefined,
|
|
178
|
+
}),
|
|
179
|
+
};
|
|
180
|
+
assert.doesNotThrow(() => assertCrossAppTargetsAllowed(permissive, ['anything', 'goes']));
|
|
181
|
+
});
|
|
182
|
+
it('assertCrossAppTargetsAllowed rejects undeclared targets (G-TARGET-ALLOWLIST)', () => {
|
|
183
|
+
const invoker = new InProcessCrossAppInvoker();
|
|
184
|
+
invoker.registerApp('declared', { op: () => ({}) });
|
|
185
|
+
assert.throws(() => assertCrossAppTargetsAllowed(invoker, ['declared', 'undeclared']), CrossAppTargetNotDeclaredError);
|
|
186
|
+
// All-declared case passes
|
|
187
|
+
assert.doesNotThrow(() => assertCrossAppTargetsAllowed(invoker, ['declared']));
|
|
188
|
+
});
|
|
189
|
+
});
|
|
190
|
+
//# sourceMappingURL=in-process-cross-app-invoker.test.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"in-process-cross-app-invoker.test.js","sourceRoot":"","sources":["../../src/strategy/in-process-cross-app-invoker.test.ts"],"names":[],"mappings":"AAAA,sCAAsC;AACtC;;;;;;;;;;;;GAYG;AAEH,OAAO,EAAE,QAAQ,EAAE,EAAE,EAAE,MAAM,WAAW,CAAC;AACzC,OAAO,MAAM,MAAM,oBAAoB,CAAC;AAExC,OAAO,EACL,oCAAoC,EACpC,mBAAmB,EACnB,8BAA8B,EAC9B,0BAA0B,EAC1B,mBAAmB,EACnB,0BAA0B,EAC1B,4BAA4B,EAC5B,sCAAsC,GAEvC,MAAM,+BAA+B,CAAC;AACvC,OAAO,EAAE,wBAAwB,EAAE,MAAM,mCAAmC,CAAC;AAE7E,SAAS,UAAU,CAAC,YAAY,GAAG,CAAC;IAClC,OAAO;QACL,WAAW,EAAE,YAAY;QACzB,YAAY;QACZ,oBAAoB,EAAE,UAAU;KACjC,CAAC;AACJ,CAAC;AAED,QAAQ,CAAC,0BAA0B,EAAE,GAAG,EAAE;IACxC,EAAE,CAAC,4DAA4D,EAAE,KAAK,IAAI,EAAE;QAC1E,MAAM,OAAO,GAAG,IAAI,wBAAwB,EAAE,CAAC;QAC/C,OAAO,CAAC,WAAW,CAAC,mBAAmB,EAAE;YACvC,cAAc,EAAE,CAAC,KAAwB,EAAE,EAAE,CAAC,CAAC;gBAC7C,MAAM,EAAE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4B,CAAC,OAAO,EAAE,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC;IACjF,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @methodts/runtime/strategy — strategy executor + adapters (PRD-057 / S2 §3.2).
|
|
3
|
+
*
|
|
4
|
+
* Public surface frozen by S2 §3.2. Both consumers (@methodts/bridge and the
|
|
5
|
+
* forthcoming @methodts/agent-runtime) depend on this subpath.
|
|
6
|
+
*/
|
|
7
|
+
export { StrategyExecutor } from './strategy-executor.js';
|
|
8
|
+
export type { NodeStatus, NodeResult, OversightEvent, ExecutionStateSnapshot, ExecutionState, StrategyExecutionResult, StrategyExecutorConfig, SubStrategySource, HumanApprovalResolver, ContextLoadExecutor, SemanticNodeExecutor, CrossAppNodeExecutor, } from './strategy-executor.js';
|
|
9
|
+
export { FsSubStrategySource } from './sub-strategy-source.js';
|
|
10
|
+
export { EventBusHumanApprovalResolver } from './human-approval-resolver.js';
|
|
11
|
+
export { ContextLoadExecutorImpl } from './context-load-executor.js';
|
|
12
|
+
export { saveRetro, setRetroWriterFs } from './retro-writer.js';
|
|
13
|
+
export { generateRetro, computeCriticalPath, retroToYaml, setRetroGeneratorYaml, } from './retro-generator.js';
|
|
14
|
+
export type { StrategyRetro } from './retro-generator.js';
|
|
15
|
+
export { parseStrategyYaml, parseStrategyObject, validateStrategyDAG, topologicalSort, setStrategyParserYaml, } from './strategy-parser.js';
|
|
16
|
+
export type { StrategyYaml, MethodologyNodeConfig, ScriptNodeConfig, StrategyNode, OversightRule, StrategyGate, StrategyDAG, StrategyValidationResult, StrategyNodeConfig, SubStrategyResult, HumanApprovalContext, HumanApprovalDecision, } from './strategy-parser.js';
|
|
17
|
+
export { evaluateGateExpression, evaluateGate, buildRetryFeedback, getDefaultRetries, getDefaultTimeout, } from './gates.js';
|
|
18
|
+
export type { GateType, GateConfig, GateContext, GateResult } from './gates.js';
|
|
19
|
+
export { InMemoryArtifactStore, createArtifactStore } from './artifact-store.js';
|
|
20
|
+
export type { ArtifactVersion, ArtifactBundle, ArtifactStore } from './artifact-store.js';
|
|
21
|
+
export { buildPactFromStrategyConfig, resolveStepPact, validatePactPipeline, } from './pacta-strategy.js';
|
|
22
|
+
export type { PactStrategyConfig, PactStrategyPipeline } from './pacta-strategy.js';
|
|
23
|
+
export { InProcessCrossAppInvoker } from './in-process-cross-app-invoker.js';
|
|
24
|
+
export type { InProcessCrossAppHandler, InProcessCrossAppInvokerOptions, } from './in-process-cross-app-invoker.js';
|
|
25
|
+
export { CortexCrossAppInvoker, CortexCrossAppInvokerNotImplementedError, } from './cortex-cross-app-invoker.stub.js';
|
|
26
|
+
export type { CortexCrossAppInvokerOptions } from './cortex-cross-app-invoker.stub.js';
|
|
27
|
+
export { CrossAppNodeExecutorImpl, applyInputProjection, applyOutputMerge, } from './cross-app-node-executor.js';
|
|
28
|
+
export type { CrossAppNodeExecutorOptions } from './cross-app-node-executor.js';
|
|
29
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/strategy/index.ts"],"names":[],"mappings":"AACA;;;;;GAKG;AAGH,OAAO,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAC1D,YAAY,EACV,UAAU,EACV,UAAU,EACV,cAAc,EACd,sBAAsB,EACtB,cAAc,EACd,uBAAuB,EACvB,sBAAsB,EACtB,iBAAiB,EACjB,qBAAqB,EACrB,mBAAmB,EACnB,oBAAoB,EACpB,oBAAoB,GACrB,MAAM,wBAAwB,CAAC;AAGhC,OAAO,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAC/D,OAAO,EAAE,6BAA6B,EAAE,MAAM,8BAA8B,CAAC;AAC7E,OAAO,EAAE,uBAAuB,EAAE,MAAM,4BAA4B,CAAC;AAGrE,OAAO,EAAE,SAAS,EAAE,gBAAgB,E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B,EACpB,gBAAgB,GACjB,MAAM,8BAA8B,CAAC;AACtC,YAAY,EAAE,2BAA2B,EAAE,MAAM,8BAA8B,CAAC"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
// SPDX-License-Identifier: Apache-2.0
|
|
2
|
+
/**
|
|
3
|
+
* @methodts/runtime/strategy — strategy executor + adapters (PRD-057 / S2 §3.2).
|
|
4
|
+
*
|
|
5
|
+
* Public surface frozen by S2 §3.2. Both consumers (@methodts/bridge and the
|
|
6
|
+
* forthcoming @methodts/agent-runtime) depend on this subpath.
|
|
7
|
+
*/
|
|
8
|
+
// ── StrategyExecutor + types ────────────────────────────────────
|
|
9
|
+
export { StrategyExecutor } from './strategy-executor.js';
|
|
10
|
+
// ── Reusable adapter implementations (opt-in — consumers may roll their own) ──
|
|
11
|
+
export { FsSubStrategySource } from './sub-strategy-source.js';
|
|
12
|
+
export { EventBusHumanApprovalResolver } from './human-approval-resolver.js';
|
|
13
|
+
export { ContextLoadExecutorImpl } from './context-load-executor.js';
|
|
14
|
+
// ── Retro machinery ─────────────────────────────────────────────
|
|
15
|
+
export { saveRetro, setRetroWriterFs } from './retro-writer.js';
|
|
16
|
+
export { generateRetro, computeCriticalPath, retroToYaml, setRetroGeneratorYaml, } from './retro-generator.js';
|
|
17
|
+
// ── Strategy DAG parser (pass-through; actual parser lives in methodts) ──────
|
|
18
|
+
export { parseStrategyYaml, parseStrategyObject, validateStrategyDAG, topologicalSort, setStrategyParserYaml, } from './strategy-parser.js';
|
|
19
|
+
// ── Gates ───────────────────────────────────────────────────────
|
|
20
|
+
export { evaluateGateExpression, evaluateGate, buildRetryFeedback, getDefaultRetries, getDefaultTimeout, } from './gates.js';
|
|
21
|
+
// ── Artifact Store ──────────────────────────────────────────────
|
|
22
|
+
export { InMemoryArtifactStore, createArtifactStore } from './artifact-store.js';
|
|
23
|
+
// ── Pacta strategy helpers ──────────────────────────────────────
|
|
24
|
+
export { buildPactFromStrategyConfig, resolveStepPact, validatePactPipeline, } from './pacta-strategy.js';
|
|
25
|
+
// ── Cross-app (PRD-067, Track A) ────────────────────────────────
|
|
26
|
+
export { InProcessCrossAppInvoker } from './in-process-cross-app-invoker.js';
|
|
27
|
+
export { CortexCrossAppInvoker, CortexCrossAppInvokerNotImplementedError, } from './cortex-cross-app-invoker.stub.js';
|
|
28
|
+
export { CrossAppNodeExecutorImpl, applyInputProjection, applyOutputMerge, } from './cross-app-node-executor.js';
|
|
29
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/strategy/index.ts"],"names":[],"mappings":"AAAA,sCAAsC;AACtC;;;;;GAKG;AAEH,mEAAmE;AACnE,OAAO,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAgB1D,iFAAiF;AACjF,OAAO,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAC/D,OAAO,EAAE,6BAA6B,EAAE,MAAM,8BAA8B,CAAC;AAC7E,OAAO,EAAE,uBAAuB,EAAE,MAAM,4BAA4B,CAAC;AAErE,mEAAmE;AACnE,OAAO,EAAE,SAAS,EAAE,gBAAgB,EAAE,MAAM,mBAAmB,CAAC;AAChE,OAAO,EACL,aAAa,EACb,mBAAmB,EACnB,WAAW,EACX,qBAAqB,GACtB,MAAM,sBAAsB,CAAC;AAG9B,gFAAgF;AAChF,OAAO,EACL,iBAAiB,EACjB,mBAAmB,EACnB,mBAAmB,EACnB,eAAe,EACf,qBAAqB,GACtB,MAAM,sBAAsB,CAAC;AAgB9B,mEAAmE;AACnE,OAAO,EACL,sBAAsB,EACtB,YAAY,EACZ,kBAAkB,EAClB,iBAAiB,EACjB,iBAAiB,GAClB,MAAM,YAAY,CAAC;AAGpB,mEAAmE;AACnE,OAAO,EAAE,qBAAqB,EAAE,mBAAmB,EAAE,MAAM,qBAAqB,CAAC;AAGjF,mEAAmE;AACnE,OAAO,EACL,2BAA2B,EAC3B,eAAe,EACf,oBAAoB,GACrB,MAAM,qBAAqB,CAAC;AAG7B,mEAAmE;AACnE,OAAO,EAAE,wBAAwB,EAAE,MAAM,mCAAmC,CAAC;AAK7E,OAAO,EACL,qBAAqB,EACrB,wCAAwC,GACzC,MAAM,oCAAoC,CAAC;AAE5C,OAAO,EACL,wBAAwB,EACxB,oBAAoB,EACpB,gBAAgB,GACjB,MAAM,8BAA8B,CAAC"}
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Pacta-Strategy Integration (Spike)
|
|
3
|
+
*
|
|
4
|
+
* Provides a utility to define Pact-based agent constraints for strategy
|
|
5
|
+
* pipeline steps. A strategy node can declare a PactStrategyConfig that
|
|
6
|
+
* specifies budget, scope, and reasoning constraints for the agent that
|
|
7
|
+
* executes that step.
|
|
8
|
+
*
|
|
9
|
+
* This is ADDITIVE — the existing strategy executor is not modified.
|
|
10
|
+
*
|
|
11
|
+
* PRD-057 / S2 §3.2 / C2: moved from @methodts/bridge/domains/strategies/.
|
|
12
|
+
*/
|
|
13
|
+
import type { Pact } from '@methodts/pacta';
|
|
14
|
+
/**
|
|
15
|
+
* Pact configuration for a single strategy pipeline step.
|
|
16
|
+
*
|
|
17
|
+
* This is the bridge between strategy YAML node declarations and
|
|
18
|
+
* Pacta's typed contracts. A strategy author declares constraints
|
|
19
|
+
* in the strategy file; this configuration maps them to a Pact.
|
|
20
|
+
*/
|
|
21
|
+
export interface PactStrategyConfig {
|
|
22
|
+
/** Human-readable label for the step */
|
|
23
|
+
label: string;
|
|
24
|
+
/** Budget constraints for this step's agent */
|
|
25
|
+
budget?: {
|
|
26
|
+
/** Maximum cost in USD */
|
|
27
|
+
maxCostUsd?: number;
|
|
28
|
+
/** Maximum wall-clock time in ms */
|
|
29
|
+
maxDurationMs?: number;
|
|
30
|
+
/** Maximum agent turns */
|
|
31
|
+
maxTurns?: number;
|
|
32
|
+
/** Maximum tokens */
|
|
33
|
+
maxTokens?: number;
|
|
34
|
+
/** What happens when budget is exhausted */
|
|
35
|
+
onExhaustion?: 'stop' | 'warn' | 'error';
|
|
36
|
+
};
|
|
37
|
+
/** Scope constraints for this step's agent */
|
|
38
|
+
scope?: {
|
|
39
|
+
/** Allowed tools */
|
|
40
|
+
allowedTools?: string[];
|
|
41
|
+
/** Denied tools */
|
|
42
|
+
deniedTools?: string[];
|
|
43
|
+
/** Allowed filesystem paths */
|
|
44
|
+
allowedPaths?: string[];
|
|
45
|
+
/** Model to use */
|
|
46
|
+
model?: string;
|
|
47
|
+
/** Permission handling */
|
|
48
|
+
permissionMode?: 'ask' | 'auto' | 'deny';
|
|
49
|
+
};
|
|
50
|
+
/** Reasoning configuration for this step's agent */
|
|
51
|
+
reasoning?: {
|
|
52
|
+
/** Effort level */
|
|
53
|
+
effort?: 'low' | 'medium' | 'high';
|
|
54
|
+
/** Enable think tool */
|
|
55
|
+
thinkTool?: boolean;
|
|
56
|
+
/** Enable planning between actions */
|
|
57
|
+
planBetweenActions?: boolean;
|
|
58
|
+
/** Enable self-reflection on failure */
|
|
59
|
+
reflectOnFailure?: boolean;
|
|
60
|
+
};
|
|
61
|
+
}
|
|
62
|
+
/**
|
|
63
|
+
* Build a Pacta Pact from a strategy step configuration.
|
|
64
|
+
*
|
|
65
|
+
* Converts the strategy-level config into a Pact contract that can
|
|
66
|
+
* be passed to createAgent(). Defaults to oneshot mode (strategy
|
|
67
|
+
* steps are fire-and-forget by nature).
|
|
68
|
+
*/
|
|
69
|
+
export declare function buildPactFromStrategyConfig(config: PactStrategyConfig): Pact;
|
|
70
|
+
/**
|
|
71
|
+
* A collection of PactStrategyConfigs for an entire strategy pipeline.
|
|
72
|
+
*
|
|
73
|
+
* Maps step labels to their Pact configurations. The strategy executor
|
|
74
|
+
* can look up constraints for each node before spawning an agent.
|
|
75
|
+
*/
|
|
76
|
+
export interface PactStrategyPipeline {
|
|
77
|
+
/** Strategy name */
|
|
78
|
+
name: string;
|
|
79
|
+
/** Default constraints applied to all steps (overridden by step-specific) */
|
|
80
|
+
defaults?: Omit<PactStrategyConfig, 'label'>;
|
|
81
|
+
/** Per-step configurations keyed by step label */
|
|
82
|
+
steps: Record<string, PactStrategyConfig>;
|
|
83
|
+
}
|
|
84
|
+
/**
|
|
85
|
+
* Resolve the Pact for a specific strategy step.
|
|
86
|
+
*
|
|
87
|
+
* Merges pipeline defaults with step-specific overrides. Step-level
|
|
88
|
+
* values take precedence over pipeline defaults.
|
|
89
|
+
*/
|
|
90
|
+
export declare function resolveStepPact(pipeline: PactStrategyPipeline, stepLabel: string): Pact;
|
|
91
|
+
/**
|
|
92
|
+
* Validate a PactStrategyPipeline for basic constraint consistency.
|
|
93
|
+
*
|
|
94
|
+
* Returns a list of warnings (non-blocking) for suspicious configurations.
|
|
95
|
+
*/
|
|
96
|
+
export declare function validatePactPipeline(pipeline: PactStrategyPipeline): string[];
|
|
97
|
+
//# sourceMappingURL=pacta-strategy.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pacta-strategy.d.ts","sourceRoot":"","sources":["../../src/strategy/pacta-strategy.ts"],"names":[],"mappings":"AACA;;;;;;;;;;;GAWG;AAEH,OAAO,KAAK,EACV,IAAI,EAIL,MAAM,iBAAiB,CAAC;AAIzB;;;;;;GAMG;AACH,MAAM,WAAW,kBAAkB;IACjC,wCAAwC;IACxC,KAAK,EAAE,MAAM,CAAC;IAEd,+CAA+C;IAC/C,MAAM,CAAC,EAAE;QACP,0BAA0B;QAC1B,UAAU,CAAC,EAAE,MAAM,CAAC;QACpB,oCAAoC;QACpC,aAAa,CAAC,EAAE,MAAM,CAAC;QACvB,0BAA0B;QAC1B,QAAQ,CAAC,EAAE,MAAM,CAAC;QAClB,qBAAqB;QACrB,SAAS,CAAC,EAAE,MAAM,CAAC;QACnB,4CAA4C;QAC5C,YAAY,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,OAAO,CAAC;KAC1C,CAAC;IAEF,8CAA8C;IAC9C,KAAK,CAAC,EAAE;QACN,oB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strategy Integration (Spike)
|
|
4
|
+
*
|
|
5
|
+
* Provides a utility to define Pact-based agent constraints for strategy
|
|
6
|
+
* pipeline steps. A strategy node can declare a PactStrategyConfig that
|
|
7
|
+
* specifies budget, scope, and reasoning constraints for the agent that
|
|
8
|
+
* executes that step.
|
|
9
|
+
*
|
|
10
|
+
* This is ADDITIVE — the existing strategy executor is not modified.
|
|
11
|
+
*
|
|
12
|
+
* PRD-057 / S2 §3.2 / C2: moved from @methodts/bridge/domains/strategies/.
|
|
13
|
+
*/
|
|
14
|
+
// ── Pact Builder ────────────────────────────────────────────────
|
|
15
|
+
/**
|
|
16
|
+
* Build a Pacta Pact from a strategy step configuration.
|
|
17
|
+
*
|
|
18
|
+
* Converts the strategy-level config into a Pact contract that can
|
|
19
|
+
* be passed to createAgent(). Defaults to oneshot mode (strategy
|
|
20
|
+
* steps are fire-and-forget by nature).
|
|
21
|
+
*/
|
|
22
|
+
export function buildPactFromStrategyConfig(config) {
|
|
23
|
+
const budget = config.budget
|
|
24
|
+
? {
|
|
25
|
+
maxCostUsd: config.budget.maxCostUsd,
|
|
26
|
+
maxDurationMs: config.budget.maxDurationMs,
|
|
27
|
+
maxTurns: config.budget.maxTurns,
|
|
28
|
+
maxTokens: config.budget.maxTokens,
|
|
29
|
+
onExhaustion: config.budget.onExhaustion,
|
|
30
|
+
}
|
|
31
|
+
: undefined;
|
|
32
|
+
const scope = config.scope
|
|
33
|
+
? {
|
|
34
|
+
allowedTools: config.scope.allowedTools,
|
|
35
|
+
deniedTools: config.scope.deniedTools,
|
|
36
|
+
allowedPaths: config.scope.allowedPaths,
|
|
37
|
+
model: config.scope.model,
|
|
38
|
+
permissionMode: config.scope.permissionMode,
|
|
39
|
+
}
|
|
40
|
+
: undefined;
|
|
41
|
+
const reasoning = config.reasoning
|
|
42
|
+
? {
|
|
43
|
+
effort: config.reasoning.effort,
|
|
44
|
+
thinkTool: config.reasoning.thinkTool,
|
|
45
|
+
planBetweenActions: config.reasoning.planBetweenActions,
|
|
46
|
+
reflectOnFailure: config.reasoning.reflectOnFailure,
|
|
47
|
+
}
|
|
48
|
+
: undefined;
|
|
49
|
+
return {
|
|
50
|
+
mode: { type: 'oneshot' },
|
|
51
|
+
budget,
|
|
52
|
+
scope,
|
|
53
|
+
reasoning,
|
|
54
|
+
};
|
|
55
|
+
}
|
|
56
|
+
/**
|
|
57
|
+
* Resolve the Pact for a specific strategy step.
|
|
58
|
+
*
|
|
59
|
+
* Merges pipeline defaults with step-specific overrides. Step-level
|
|
60
|
+
* values take precedence over pipeline defaults.
|
|
61
|
+
*/
|
|
62
|
+
export function resolveStepPact(pipeline, stepLabel) {
|
|
63
|
+
const stepConfig = pipeline.steps[stepLabel];
|
|
64
|
+
if (!stepConfig) {
|
|
65
|
+
// No step-specific config — use defaults or empty pact
|
|
66
|
+
if (pipeline.defaults) {
|
|
67
|
+
return buildPactFromStrategyConfig({
|
|
68
|
+
label: stepLabel,
|
|
69
|
+
...pipeline.defaults,
|
|
70
|
+
});
|
|
71
|
+
}
|
|
72
|
+
return { mode: { type: 'oneshot' } };
|
|
73
|
+
}
|
|
74
|
+
// Merge defaults with step-specific config (step wins)
|
|
75
|
+
const merged = {
|
|
76
|
+
label: stepConfig.label,
|
|
77
|
+
budget: {
|
|
78
|
+
...pipeline.defaults?.budget,
|
|
79
|
+
...stepConfig.budget,
|
|
80
|
+
},
|
|
81
|
+
scope: {
|
|
82
|
+
...pipeline.defaults?.scope,
|
|
83
|
+
...stepConfig.scope,
|
|
84
|
+
},
|
|
85
|
+
reasoning: {
|
|
86
|
+
...pipeline.defaults?.reasoning,
|
|
87
|
+
...stepConfig.reasoning,
|
|
88
|
+
},
|
|
89
|
+
};
|
|
90
|
+
return buildPactFromStrategyConfig(merged);
|
|
91
|
+
}
|
|
92
|
+
/**
|
|
93
|
+
* Validate a PactStrategyPipeline for basic constraint consistency.
|
|
94
|
+
*
|
|
95
|
+
* Returns a list of warnings (non-blocking) for suspicious configurations.
|
|
96
|
+
*/
|
|
97
|
+
export function validatePactPipeline(pipeline) {
|
|
98
|
+
const warnings = [];
|
|
99
|
+
for (const [label, config] of Object.entries(pipeline.steps)) {
|
|
100
|
+
// Warn if budget is very low (likely a misconfiguration)
|
|
101
|
+
if (config.budget?.maxCostUsd !== undefined && config.budget.maxCostUsd <= 0) {
|
|
102
|
+
warnings.push(`Step "${label}": maxCostUsd <= 0 — agent will be immediately budget-exhausted`);
|
|
103
|
+
}
|
|
104
|
+
if (config.budget?.maxTurns !== undefined && config.budget.maxTurns <= 0) {
|
|
105
|
+
warnings.push(`Step "${label}": maxTurns <= 0 — agent cannot execute any actions`);
|
|
106
|
+
}
|
|
107
|
+
if (config.budget?.maxDurationMs !== undefined && config.budget.maxDurationMs <= 0) {
|
|
108
|
+
warnings.push(`Step "${label}": maxDurationMs <= 0 — agent will immediately timeout`);
|
|
109
|
+
}
|
|
110
|
+
// Warn if scope allows nothing
|
|
111
|
+
if (config.scope?.allowedTools && config.scope.allowedTools.length === 0) {
|
|
112
|
+
warnings.push(`Step "${label}": empty allowedTools — agent has no tools available`);
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
return warnings;
|
|
116
|
+
}
|
|
117
|
+
//# sourceMappingURL=pacta-strategy.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pacta-strategy.js","sourceRoot":"","sources":["../../src/strategy/pacta-strategy.ts"],"names":[],"mappings":"AAAA,sCAAsC;AACtC;;;;;;;;;;;GAWG;AA+DH,mEAAmE;AAEnE;;;;;;GAMG;AACH,MAAM,UAAU,2BAA2B,CAAC,MAA0B;IACpE,MAAM,MAAM,GAA+B,MAAM,CAAC,MAAM;QACtD,CAAC,CAAC;YACE,UAAU,EAAE,MAAM,CAAC,MAAM,CAAC,UAAU;YACpC,aAAa,EAAE,MAAM,CAAC,MAAM,CAAC,aAAa;YAC1C,QAAQ,EAAE,MAAM,CAAC,MAAM,CAAC,QAAQ;YAChC,SAAS,EAAE,MAAM,CAAC,MAA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