@xoxoai/checkmate 0.4.27 → 0.5.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/README.md +259 -224
- package/bin/checkmate.js +1 -1
- package/dist/ai/client.d.ts +45 -30
- package/dist/ai/client.d.ts.map +1 -1
- package/dist/ai/client.js +198 -129
- package/dist/ai/client.js.map +1 -1
- package/dist/ai/message-handler.d.ts +5 -7
- package/dist/ai/message-handler.d.ts.map +1 -1
- package/dist/ai/message-handler.js +38 -21
- package/dist/ai/message-handler.js.map +1 -1
- package/dist/ai/message-history.d.ts +4 -6
- package/dist/ai/message-history.d.ts.map +1 -1
- package/dist/ai/message-history.js +18 -21
- package/dist/ai/message-history.js.map +1 -1
- package/dist/ai/rate-limit-policy.d.ts +5 -3
- package/dist/ai/rate-limit-policy.d.ts.map +1 -1
- package/dist/ai/rate-limit-policy.js +24 -7
- package/dist/ai/rate-limit-policy.js.map +1 -1
- package/dist/ai/tool-response-handler.d.ts +11 -16
- package/dist/ai/tool-response-handler.d.ts.map +1 -1
- package/dist/ai/tool-response-handler.js +59 -28
- package/dist/ai/tool-response-handler.js.map +1 -1
- package/dist/ai/turn-processor.d.ts +34 -0
- package/dist/ai/turn-processor.d.ts.map +1 -0
- package/dist/ai/turn-processor.js +107 -0
- package/dist/ai/turn-processor.js.map +1 -0
- package/dist/api/allocate-run-identity.d.ts +8 -0
- package/dist/api/allocate-run-identity.d.ts.map +1 -0
- package/dist/api/allocate-run-identity.js +10 -0
- package/dist/api/allocate-run-identity.js.map +1 -0
- package/dist/api/execute-prepared-run.d.ts +22 -0
- package/dist/api/execute-prepared-run.d.ts.map +1 -0
- package/dist/api/execute-prepared-run.js +160 -0
- package/dist/api/execute-prepared-run.js.map +1 -0
- package/dist/api/index.d.ts +25 -0
- package/dist/api/index.d.ts.map +1 -0
- package/dist/api/index.js +69 -0
- package/dist/api/index.js.map +1 -0
- package/dist/api/prepare-run.d.ts +44 -0
- package/dist/api/prepare-run.d.ts.map +1 -0
- package/dist/api/prepare-run.js +261 -0
- package/dist/api/prepare-run.js.map +1 -0
- package/dist/cli/diagnostic-relay.d.ts +6 -0
- package/dist/cli/diagnostic-relay.d.ts.map +1 -0
- package/dist/cli/diagnostic-relay.js +6 -0
- package/dist/cli/diagnostic-relay.js.map +1 -0
- package/dist/cli/main.d.ts +21 -0
- package/dist/cli/main.d.ts.map +1 -0
- package/dist/cli/main.js +166 -0
- package/dist/cli/main.js.map +1 -0
- package/dist/cli/protocol.d.ts +57 -0
- package/dist/cli/protocol.d.ts.map +1 -0
- package/dist/cli/protocol.js +116 -0
- package/dist/cli/protocol.js.map +1 -0
- package/dist/cli/reconcile-result.d.ts +13 -0
- package/dist/cli/reconcile-result.d.ts.map +1 -0
- package/dist/cli/reconcile-result.js +300 -0
- package/dist/cli/reconcile-result.js.map +1 -0
- package/dist/cli/run-parent.d.ts +37 -0
- package/dist/cli/run-parent.d.ts.map +1 -0
- package/dist/cli/run-parent.js +491 -0
- package/dist/cli/run-parent.js.map +1 -0
- package/dist/cli/signals.d.ts +36 -0
- package/dist/cli/signals.d.ts.map +1 -0
- package/dist/cli/signals.js +85 -0
- package/dist/cli/signals.js.map +1 -0
- package/dist/cli/static-commands.d.ts +11 -0
- package/dist/cli/static-commands.d.ts.map +1 -0
- package/dist/cli/static-commands.js +83 -0
- package/dist/cli/static-commands.js.map +1 -0
- package/dist/cli/worker-stream-guard.d.ts +20 -0
- package/dist/cli/worker-stream-guard.d.ts.map +1 -0
- package/dist/cli/worker-stream-guard.js +41 -0
- package/dist/cli/worker-stream-guard.js.map +1 -0
- package/dist/cli/worker.d.ts +3 -0
- package/dist/cli/worker.d.ts.map +1 -0
- package/dist/cli/worker.js +111 -0
- package/dist/cli/worker.js.map +1 -0
- package/dist/config/ingestion.d.ts +58 -0
- package/dist/config/ingestion.d.ts.map +1 -0
- package/dist/config/ingestion.js +283 -0
- package/dist/config/ingestion.js.map +1 -0
- package/dist/config/manifest.d.ts +20 -0
- package/dist/config/manifest.d.ts.map +1 -0
- package/dist/config/manifest.js +91 -0
- package/dist/config/manifest.js.map +1 -0
- package/dist/config/model-egress.d.ts +10 -0
- package/dist/config/model-egress.d.ts.map +1 -0
- package/dist/config/model-egress.js +62 -0
- package/dist/config/model-egress.js.map +1 -0
- package/dist/config/package-resolution.d.ts +4 -0
- package/dist/config/package-resolution.d.ts.map +1 -0
- package/dist/config/package-resolution.js +24 -0
- package/dist/config/package-resolution.js.map +1 -0
- package/dist/config/policy.d.ts +44 -0
- package/dist/config/policy.d.ts.map +1 -0
- package/dist/config/policy.js +141 -0
- package/dist/config/policy.js.map +1 -0
- package/dist/config/record.d.ts +4 -0
- package/dist/config/record.d.ts.map +1 -0
- package/dist/config/record.js +10 -0
- package/dist/config/record.js.map +1 -0
- package/dist/config/secrets.d.ts +11 -0
- package/dist/config/secrets.d.ts.map +1 -0
- package/dist/config/secrets.js +42 -0
- package/dist/config/secrets.js.map +1 -0
- package/dist/contracts/diagnostics.d.ts +4 -0
- package/dist/contracts/diagnostics.d.ts.map +1 -0
- package/dist/contracts/diagnostics.js +31 -0
- package/dist/contracts/diagnostics.js.map +1 -0
- package/dist/contracts/serialize.d.ts +2 -0
- package/dist/contracts/serialize.d.ts.map +1 -0
- package/dist/contracts/serialize.js +90 -0
- package/dist/contracts/serialize.js.map +1 -0
- package/dist/contracts/types.d.ts +316 -0
- package/dist/contracts/types.d.ts.map +1 -0
- package/dist/contracts/types.js +74 -0
- package/dist/contracts/types.js.map +1 -0
- package/dist/contracts/validator.d.ts +8 -0
- package/dist/contracts/validator.d.ts.map +1 -0
- package/dist/contracts/validator.js +71 -0
- package/dist/contracts/validator.js.map +1 -0
- package/dist/driver.d.ts +97 -0
- package/dist/driver.d.ts.map +1 -0
- package/dist/driver.js +24 -0
- package/dist/driver.js.map +1 -0
- package/dist/drivers/descriptor.d.ts +15 -0
- package/dist/drivers/descriptor.d.ts.map +1 -0
- package/dist/drivers/descriptor.js +122 -0
- package/dist/drivers/descriptor.js.map +1 -0
- package/dist/drivers/loader.d.ts +18 -0
- package/dist/drivers/loader.d.ts.map +1 -0
- package/dist/drivers/loader.js +97 -0
- package/dist/drivers/loader.js.map +1 -0
- package/dist/drivers/web/checkmate-driver.json +44 -0
- package/dist/drivers/web/index.d.ts +6 -0
- package/dist/drivers/web/index.d.ts.map +1 -0
- package/dist/drivers/web/index.js +27 -0
- package/dist/drivers/web/index.js.map +1 -0
- package/dist/drivers/web/session.d.ts +22 -0
- package/dist/drivers/web/session.d.ts.map +1 -0
- package/dist/drivers/web/session.js +130 -0
- package/dist/drivers/web/session.js.map +1 -0
- package/dist/drivers/web/tools/network-request-recorder.d.ts +46 -0
- package/dist/drivers/web/tools/network-request-recorder.d.ts.map +1 -0
- package/dist/drivers/web/tools/network-request-recorder.js +164 -0
- package/dist/drivers/web/tools/network-request-recorder.js.map +1 -0
- package/dist/{tools/browser → drivers/web/tools}/screenshot-service.d.ts +1 -1
- package/dist/drivers/web/tools/screenshot-service.d.ts.map +1 -0
- package/dist/drivers/web/tools/screenshot-service.js.map +1 -0
- package/dist/drivers/web/tools/snapshot-filter/index.d.ts.map +1 -0
- package/dist/drivers/web/tools/snapshot-filter/index.js.map +1 -0
- package/dist/drivers/web/tools/snapshot-filter/semantic-scorer.d.ts.map +1 -0
- package/dist/drivers/web/tools/snapshot-filter/semantic-scorer.js.map +1 -0
- package/dist/drivers/web/tools/snapshot-filter/snapshot-filter.d.ts +5 -0
- package/dist/drivers/web/tools/snapshot-filter/snapshot-filter.d.ts.map +1 -0
- package/dist/drivers/web/tools/snapshot-filter/snapshot-filter.js +56 -0
- package/dist/drivers/web/tools/snapshot-filter/snapshot-filter.js.map +1 -0
- package/dist/drivers/web/tools/snapshot-filter/tree-reconstructor.d.ts.map +1 -0
- package/dist/drivers/web/tools/snapshot-filter/tree-reconstructor.js.map +1 -0
- package/dist/drivers/web/tools/snapshot-service.d.ts +31 -0
- package/dist/drivers/web/tools/snapshot-service.d.ts.map +1 -0
- package/dist/{tools/browser → drivers/web/tools}/snapshot-service.js +36 -7
- package/dist/drivers/web/tools/snapshot-service.js.map +1 -0
- package/dist/drivers/web/tools/tool.d.ts +76 -0
- package/dist/drivers/web/tools/tool.d.ts.map +1 -0
- package/dist/drivers/web/tools/tool.js +562 -0
- package/dist/drivers/web/tools/tool.js.map +1 -0
- package/dist/drivers/web/tools/transient-state-tracker.d.ts +26 -0
- package/dist/drivers/web/tools/transient-state-tracker.d.ts.map +1 -0
- package/dist/{tools/browser → drivers/web/tools}/transient-state-tracker.js +54 -19
- package/dist/drivers/web/tools/transient-state-tracker.js.map +1 -0
- package/dist/drivers/web/tools/types.d.ts +11 -0
- package/dist/drivers/web/tools/types.d.ts.map +1 -0
- package/dist/drivers/web/tools/types.js +2 -0
- package/dist/drivers/web/tools/types.js.map +1 -0
- package/dist/evidence/atomic-file.d.ts +23 -0
- package/dist/evidence/atomic-file.d.ts.map +1 -0
- package/dist/evidence/atomic-file.js +104 -0
- package/dist/evidence/atomic-file.js.map +1 -0
- package/dist/evidence/layout.d.ts +30 -0
- package/dist/evidence/layout.d.ts.map +1 -0
- package/dist/evidence/layout.js +152 -0
- package/dist/evidence/layout.js.map +1 -0
- package/dist/evidence/retention.d.ts +5 -0
- package/dist/evidence/retention.d.ts.map +1 -0
- package/dist/evidence/retention.js +10 -0
- package/dist/evidence/retention.js.map +1 -0
- package/dist/evidence/store.d.ts +101 -0
- package/dist/evidence/store.d.ts.map +1 -0
- package/dist/evidence/store.js +375 -0
- package/dist/evidence/store.js.map +1 -0
- package/dist/evidence/terminal-finalizer.d.ts +19 -0
- package/dist/evidence/terminal-finalizer.d.ts.map +1 -0
- package/dist/evidence/terminal-finalizer.js +56 -0
- package/dist/evidence/terminal-finalizer.js.map +1 -0
- package/dist/index.d.ts +8 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +11 -1
- package/dist/index.js.map +1 -1
- package/dist/logging/invocation-logger.d.ts +4 -0
- package/dist/logging/invocation-logger.d.ts.map +1 -0
- package/dist/logging/invocation-logger.js +25 -0
- package/dist/logging/invocation-logger.js.map +1 -0
- package/dist/logging/types.d.ts +8 -0
- package/dist/logging/types.d.ts.map +1 -0
- package/dist/logging/types.js +7 -0
- package/dist/logging/types.js.map +1 -0
- package/dist/redaction/diagnostic-sanitizer.d.ts +7 -0
- package/dist/redaction/diagnostic-sanitizer.d.ts.map +1 -0
- package/dist/redaction/diagnostic-sanitizer.js +42 -0
- package/dist/redaction/diagnostic-sanitizer.js.map +1 -0
- package/dist/redaction/redactor.d.ts +40 -0
- package/dist/redaction/redactor.d.ts.map +1 -0
- package/dist/redaction/redactor.js +176 -0
- package/dist/redaction/redactor.js.map +1 -0
- package/dist/redaction/scrub.d.ts +29 -0
- package/dist/redaction/scrub.d.ts.map +1 -0
- package/dist/redaction/scrub.js +54 -0
- package/dist/redaction/scrub.js.map +1 -0
- package/dist/runtime/config.d.ts +15 -0
- package/dist/runtime/config.d.ts.map +1 -0
- package/dist/runtime/config.js +2 -0
- package/dist/runtime/config.js.map +1 -0
- package/dist/runtime/driver-boundary.d.ts +16 -0
- package/dist/runtime/driver-boundary.d.ts.map +1 -0
- package/dist/runtime/driver-boundary.js +71 -0
- package/dist/runtime/driver-boundary.js.map +1 -0
- package/dist/runtime/driver-session.d.ts +9 -0
- package/dist/runtime/driver-session.d.ts.map +1 -0
- package/dist/runtime/driver-session.js +64 -0
- package/dist/runtime/driver-session.js.map +1 -0
- package/dist/runtime/internal-step-evidence.d.ts +30 -0
- package/dist/runtime/internal-step-evidence.d.ts.map +1 -0
- package/dist/runtime/internal-step-evidence.js +82 -0
- package/dist/runtime/internal-step-evidence.js.map +1 -0
- package/dist/runtime/result-adapter.d.ts +9 -0
- package/dist/runtime/result-adapter.d.ts.map +1 -0
- package/dist/runtime/result-adapter.js +77 -0
- package/dist/runtime/result-adapter.js.map +1 -0
- package/dist/runtime/runner.d.ts +35 -88
- package/dist/runtime/runner.d.ts.map +1 -1
- package/dist/runtime/runner.js +60 -74
- package/dist/runtime/runner.js.map +1 -1
- package/dist/runtime/scenario-control.d.ts +40 -0
- package/dist/runtime/scenario-control.d.ts.map +1 -0
- package/dist/runtime/scenario-control.js +94 -0
- package/dist/runtime/scenario-control.js.map +1 -0
- package/dist/runtime/scenario-runner.d.ts +39 -0
- package/dist/runtime/scenario-runner.d.ts.map +1 -0
- package/dist/runtime/scenario-runner.js +273 -0
- package/dist/runtime/scenario-runner.js.map +1 -0
- package/dist/runtime/scenario-state.d.ts +55 -0
- package/dist/runtime/scenario-state.d.ts.map +1 -0
- package/dist/runtime/scenario-state.js +128 -0
- package/dist/runtime/scenario-state.js.map +1 -0
- package/dist/runtime/step-execution.d.ts +24 -14
- package/dist/runtime/step-execution.d.ts.map +1 -1
- package/dist/runtime/step-execution.js +130 -36
- package/dist/runtime/step-execution.js.map +1 -1
- package/dist/runtime/text.d.ts +10 -0
- package/dist/runtime/text.d.ts.map +1 -0
- package/dist/runtime/text.js +25 -0
- package/dist/runtime/text.js.map +1 -0
- package/dist/runtime/types.d.ts +50 -76
- package/dist/runtime/types.d.ts.map +1 -1
- package/dist/runtime/usage-tracker.d.ts +37 -0
- package/dist/runtime/usage-tracker.d.ts.map +1 -0
- package/dist/runtime/usage-tracker.js +110 -0
- package/dist/runtime/usage-tracker.js.map +1 -0
- package/dist/tools/define-agent-tool.d.ts +3 -28
- package/dist/tools/define-agent-tool.d.ts.map +1 -1
- package/dist/tools/define-agent-tool.js +3 -28
- package/dist/tools/define-agent-tool.js.map +1 -1
- package/dist/tools/dispatcher.d.ts +11 -3
- package/dist/tools/dispatcher.d.ts.map +1 -1
- package/dist/tools/dispatcher.js +50 -8
- package/dist/tools/dispatcher.js.map +1 -1
- package/dist/tools/registry.d.ts +8 -10
- package/dist/tools/registry.d.ts.map +1 -1
- package/dist/tools/registry.js +19 -11
- package/dist/tools/registry.js.map +1 -1
- package/dist/tools/step/result-tool.d.ts.map +1 -1
- package/dist/tools/step/result-tool.js +8 -6
- package/dist/tools/step/result-tool.js.map +1 -1
- package/dist/tools/tool-contract.d.ts +1 -1
- package/dist/tools/tool-contract.d.ts.map +1 -1
- package/dist/tools/tool-contract.js.map +1 -1
- package/dist/tools/types.d.ts +77 -6
- package/dist/tools/types.d.ts.map +1 -1
- package/dist/tools/types.js.map +1 -1
- package/docs/CLI.md +59 -0
- package/docs/CONFIGURATION.md +91 -0
- package/docs/DRIVERS.md +75 -0
- package/docs/EVIDENCE.md +62 -0
- package/package.json +51 -59
- package/schemas/checkmate-config.v1.json +176 -0
- package/schemas/describe-result.v1.json +414 -0
- package/schemas/driver-descriptor.v1.json +66 -0
- package/schemas/run-request.v1.json +67 -0
- package/schemas/run-result.v1.json +333 -0
- package/schemas/validation-result.v1.json +86 -0
- package/dist/ai/response-processor.d.ts +0 -20
- package/dist/ai/response-processor.d.ts.map +0 -1
- package/dist/ai/response-processor.js +0 -62
- package/dist/ai/response-processor.js.map +0 -1
- package/dist/ai/token-pricing.d.ts +0 -13
- package/dist/ai/token-pricing.d.ts.map +0 -1
- package/dist/ai/token-pricing.js +0 -348
- package/dist/ai/token-pricing.js.map +0 -1
- package/dist/ai/token-tracker.d.ts +0 -33
- package/dist/ai/token-tracker.d.ts.map +0 -1
- package/dist/ai/token-tracker.js +0 -138
- package/dist/ai/token-tracker.js.map +0 -1
- package/dist/cli/create-examples.d.ts +0 -21
- package/dist/cli/create-examples.d.ts.map +0 -1
- package/dist/cli/create-examples.js +0 -116
- package/dist/cli/create-examples.js.map +0 -1
- package/dist/cli.d.ts +0 -15
- package/dist/cli.d.ts.map +0 -1
- package/dist/cli.js +0 -69
- package/dist/cli.js.map +0 -1
- package/dist/config/runtime-config.d.ts +0 -21
- package/dist/config/runtime-config.d.ts.map +0 -1
- package/dist/config/runtime-config.js +0 -98
- package/dist/config/runtime-config.js.map +0 -1
- package/dist/core.d.ts +0 -8
- package/dist/core.d.ts.map +0 -1
- package/dist/core.js +0 -4
- package/dist/core.js.map +0 -1
- package/dist/integrations/salesforce/authenticator.d.ts +0 -27
- package/dist/integrations/salesforce/authenticator.d.ts.map +0 -1
- package/dist/integrations/salesforce/authenticator.js +0 -27
- package/dist/integrations/salesforce/authenticator.js.map +0 -1
- package/dist/integrations/salesforce/cli-handler.d.ts +0 -14
- package/dist/integrations/salesforce/cli-handler.d.ts.map +0 -1
- package/dist/integrations/salesforce/cli-handler.js +0 -50
- package/dist/integrations/salesforce/cli-handler.js.map +0 -1
- package/dist/logging/index.d.ts +0 -2
- package/dist/logging/index.d.ts.map +0 -1
- package/dist/logging/index.js +0 -4
- package/dist/logging/index.js.map +0 -1
- package/dist/logging/logger.d.ts +0 -5
- package/dist/logging/logger.d.ts.map +0 -1
- package/dist/logging/logger.js +0 -15
- package/dist/logging/logger.js.map +0 -1
- package/dist/playwright.d.ts +0 -102
- package/dist/playwright.d.ts.map +0 -1
- package/dist/playwright.js +0 -116
- package/dist/playwright.js.map +0 -1
- package/dist/runtime/extension.d.ts +0 -274
- package/dist/runtime/extension.d.ts.map +0 -1
- package/dist/runtime/extension.js +0 -171
- package/dist/runtime/extension.js.map +0 -1
- package/dist/salesforce.d.ts +0 -71
- package/dist/salesforce.d.ts.map +0 -1
- package/dist/salesforce.js +0 -73
- package/dist/salesforce.js.map +0 -1
- package/dist/tools/browser/screenshot-service.d.ts.map +0 -1
- package/dist/tools/browser/screenshot-service.js.map +0 -1
- package/dist/tools/browser/snapshot-filter/index.d.ts.map +0 -1
- package/dist/tools/browser/snapshot-filter/index.js.map +0 -1
- package/dist/tools/browser/snapshot-filter/semantic-scorer.d.ts.map +0 -1
- package/dist/tools/browser/snapshot-filter/semantic-scorer.js.map +0 -1
- package/dist/tools/browser/snapshot-filter/snapshot-filter.d.ts +0 -4
- package/dist/tools/browser/snapshot-filter/snapshot-filter.d.ts.map +0 -1
- package/dist/tools/browser/snapshot-filter/snapshot-filter.js +0 -57
- package/dist/tools/browser/snapshot-filter/snapshot-filter.js.map +0 -1
- package/dist/tools/browser/snapshot-filter/tree-reconstructor.d.ts.map +0 -1
- package/dist/tools/browser/snapshot-filter/tree-reconstructor.js.map +0 -1
- package/dist/tools/browser/snapshot-service.d.ts +0 -19
- package/dist/tools/browser/snapshot-service.d.ts.map +0 -1
- package/dist/tools/browser/snapshot-service.js.map +0 -1
- package/dist/tools/browser/tool.d.ts +0 -34
- package/dist/tools/browser/tool.d.ts.map +0 -1
- package/dist/tools/browser/tool.js +0 -226
- package/dist/tools/browser/tool.js.map +0 -1
- package/dist/tools/browser/transient-state-tracker.d.ts +0 -16
- package/dist/tools/browser/transient-state-tracker.d.ts.map +0 -1
- package/dist/tools/browser/transient-state-tracker.js.map +0 -1
- package/dist/tools/salesforce/login-tool.d.ts +0 -7
- package/dist/tools/salesforce/login-tool.d.ts.map +0 -1
- package/dist/tools/salesforce/login-tool.js +0 -25
- package/dist/tools/salesforce/login-tool.js.map +0 -1
- package/docs/EXTENSIONS.md +0 -232
- package/docs/GUIDE.md +0 -465
- package/docs/ROADMAP.md +0 -47
- package/playwright.config.ts +0 -39
- package/test/examples/salesforce/trial-dev-org.spec.ts +0 -82
- package/test/examples/web/website-testing.spec.ts +0 -281
- /package/dist/{tools/browser → drivers/web/tools}/screenshot-service.js +0 -0
- /package/dist/{tools/browser → drivers/web/tools}/snapshot-filter/index.d.ts +0 -0
- /package/dist/{tools/browser → drivers/web/tools}/snapshot-filter/index.js +0 -0
- /package/dist/{tools/browser → drivers/web/tools}/snapshot-filter/semantic-scorer.d.ts +0 -0
- /package/dist/{tools/browser → drivers/web/tools}/snapshot-filter/semantic-scorer.js +0 -0
- /package/dist/{tools/browser → drivers/web/tools}/snapshot-filter/tree-reconstructor.d.ts +0 -0
- /package/dist/{tools/browser → drivers/web/tools}/snapshot-filter/tree-reconstructor.js +0 -0
|
@@ -0,0 +1,414 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://checkmate.dev/schemas/describe-result.v1.json",
|
|
4
|
+
"title": "Checkmate description result version 1",
|
|
5
|
+
"oneOf": [{ "$ref": "#/$defs/available" }, { "$ref": "#/$defs/unavailable" }],
|
|
6
|
+
"$defs": {
|
|
7
|
+
"diagnostic": {
|
|
8
|
+
"type": "object",
|
|
9
|
+
"additionalProperties": false,
|
|
10
|
+
"required": ["code", "path", "message"],
|
|
11
|
+
"properties": {
|
|
12
|
+
"code": { "type": "string", "minLength": 1 },
|
|
13
|
+
"path": { "type": "string", "pattern": "^(?:/(?:[^~/]|~[01])*)*$" },
|
|
14
|
+
"message": { "type": "string", "minLength": 1 }
|
|
15
|
+
}
|
|
16
|
+
},
|
|
17
|
+
"effectiveLimits": {
|
|
18
|
+
"type": "object",
|
|
19
|
+
"additionalProperties": false,
|
|
20
|
+
"required": [
|
|
21
|
+
"scenarioTimeoutMs",
|
|
22
|
+
"stepTimeoutMs",
|
|
23
|
+
"turnsPerStep",
|
|
24
|
+
"requestTimeoutMs",
|
|
25
|
+
"maxRetries",
|
|
26
|
+
"loopMaxRepetitions",
|
|
27
|
+
"cleanupTimeoutMs"
|
|
28
|
+
],
|
|
29
|
+
"properties": {
|
|
30
|
+
"scenarioTimeoutMs": { "type": "integer", "minimum": 1 },
|
|
31
|
+
"stepTimeoutMs": { "type": "integer", "minimum": 1 },
|
|
32
|
+
"turnsPerStep": { "type": "integer", "minimum": 1 },
|
|
33
|
+
"requestTimeoutMs": { "type": "integer", "minimum": 1 },
|
|
34
|
+
"maxRetries": { "type": "integer", "minimum": 0 },
|
|
35
|
+
"loopMaxRepetitions": { "type": "integer", "minimum": 1 },
|
|
36
|
+
"cleanupTimeoutMs": { "type": "integer", "minimum": 1 },
|
|
37
|
+
"budgetTokens": { "type": "integer", "minimum": 1 }
|
|
38
|
+
}
|
|
39
|
+
},
|
|
40
|
+
"contractReference": {
|
|
41
|
+
"enum": [
|
|
42
|
+
{
|
|
43
|
+
"id": "checkmate-config",
|
|
44
|
+
"schemaVersion": 1,
|
|
45
|
+
"schemaPath": "./schemas/checkmate-config.v1.json"
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
"id": "run-request",
|
|
49
|
+
"schemaVersion": 1,
|
|
50
|
+
"schemaPath": "./schemas/run-request.v1.json"
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
"id": "run-result",
|
|
54
|
+
"schemaVersion": 1,
|
|
55
|
+
"schemaPath": "./schemas/run-result.v1.json"
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
"id": "validation-result",
|
|
59
|
+
"schemaVersion": 1,
|
|
60
|
+
"schemaPath": "./schemas/validation-result.v1.json"
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
"id": "describe-result",
|
|
64
|
+
"schemaVersion": 1,
|
|
65
|
+
"schemaPath": "./schemas/describe-result.v1.json"
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
"id": "driver-descriptor",
|
|
69
|
+
"schemaVersion": 1,
|
|
70
|
+
"schemaPath": "./schemas/driver-descriptor.v1.json"
|
|
71
|
+
}
|
|
72
|
+
]
|
|
73
|
+
},
|
|
74
|
+
"describedPolicy": {
|
|
75
|
+
"type": "object",
|
|
76
|
+
"additionalProperties": false,
|
|
77
|
+
"required": ["id", "limits", "evidence", "drivers", "requiredSecretBindings"],
|
|
78
|
+
"properties": {
|
|
79
|
+
"id": { "type": "string", "minLength": 1 },
|
|
80
|
+
"limits": { "$ref": "#/$defs/effectiveLimits" },
|
|
81
|
+
"evidence": {
|
|
82
|
+
"type": "object",
|
|
83
|
+
"additionalProperties": false,
|
|
84
|
+
"required": ["retention", "redaction", "allowOpaque"],
|
|
85
|
+
"properties": {
|
|
86
|
+
"retention": { "enum": ["on", "retain-on-failure", "off"] },
|
|
87
|
+
"redaction": { "enum": ["on", "off"] },
|
|
88
|
+
"allowOpaque": { "type": "boolean" }
|
|
89
|
+
}
|
|
90
|
+
},
|
|
91
|
+
"drivers": {
|
|
92
|
+
"type": "array",
|
|
93
|
+
"items": {
|
|
94
|
+
"type": "object",
|
|
95
|
+
"additionalProperties": false,
|
|
96
|
+
"required": ["id", "allowedTools"],
|
|
97
|
+
"properties": {
|
|
98
|
+
"id": { "type": "string", "minLength": 1 },
|
|
99
|
+
"allowedTools": {
|
|
100
|
+
"oneOf": [
|
|
101
|
+
{ "const": "*" },
|
|
102
|
+
{
|
|
103
|
+
"type": "array",
|
|
104
|
+
"uniqueItems": true,
|
|
105
|
+
"items": { "type": "string", "minLength": 1 }
|
|
106
|
+
}
|
|
107
|
+
]
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
},
|
|
112
|
+
"requiredSecretBindings": {
|
|
113
|
+
"type": "array",
|
|
114
|
+
"uniqueItems": true,
|
|
115
|
+
"items": { "type": "string", "minLength": 1 }
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
},
|
|
119
|
+
"describedDriver": {
|
|
120
|
+
"type": "object",
|
|
121
|
+
"additionalProperties": false,
|
|
122
|
+
"required": [
|
|
123
|
+
"id",
|
|
124
|
+
"contractVersion",
|
|
125
|
+
"targetSchema",
|
|
126
|
+
"settingsSchema",
|
|
127
|
+
"requiredSecretSlots",
|
|
128
|
+
"tools",
|
|
129
|
+
"evidenceKinds"
|
|
130
|
+
],
|
|
131
|
+
"properties": {
|
|
132
|
+
"id": { "type": "string", "minLength": 1 },
|
|
133
|
+
"contractVersion": { "const": 1 },
|
|
134
|
+
"targetSchema": { "type": "object" },
|
|
135
|
+
"settingsSchema": { "type": "object" },
|
|
136
|
+
"requiredSecretSlots": {
|
|
137
|
+
"type": "array",
|
|
138
|
+
"uniqueItems": true,
|
|
139
|
+
"items": { "type": "string", "minLength": 1 }
|
|
140
|
+
},
|
|
141
|
+
"tools": {
|
|
142
|
+
"type": "array",
|
|
143
|
+
"items": {
|
|
144
|
+
"type": "object",
|
|
145
|
+
"additionalProperties": false,
|
|
146
|
+
"required": ["name"],
|
|
147
|
+
"properties": { "name": { "type": "string", "minLength": 1 } }
|
|
148
|
+
}
|
|
149
|
+
},
|
|
150
|
+
"evidenceKinds": {
|
|
151
|
+
"type": "array",
|
|
152
|
+
"items": {
|
|
153
|
+
"type": "object",
|
|
154
|
+
"additionalProperties": false,
|
|
155
|
+
"required": ["kind", "mediaType", "content"],
|
|
156
|
+
"properties": {
|
|
157
|
+
"kind": { "type": "string", "minLength": 1 },
|
|
158
|
+
"mediaType": { "type": "string", "minLength": 1 },
|
|
159
|
+
"content": { "enum": ["text", "opaque"] }
|
|
160
|
+
}
|
|
161
|
+
}
|
|
162
|
+
}
|
|
163
|
+
}
|
|
164
|
+
},
|
|
165
|
+
"routeRule": {
|
|
166
|
+
"enum": [
|
|
167
|
+
{
|
|
168
|
+
"reason": "scenario-complete",
|
|
169
|
+
"category": "passed",
|
|
170
|
+
"exitCode": 0,
|
|
171
|
+
"retry": "never",
|
|
172
|
+
"mutation": "read-result-target-mutation",
|
|
173
|
+
"nextAction": "continue"
|
|
174
|
+
},
|
|
175
|
+
{
|
|
176
|
+
"reason": "failed-expectation",
|
|
177
|
+
"category": "app",
|
|
178
|
+
"exitCode": 1,
|
|
179
|
+
"retry": "repair-then-new-run",
|
|
180
|
+
"mutation": "read-result-target-mutation",
|
|
181
|
+
"nextAction": "inspect-evidence-and-verify-sut-or-expectation"
|
|
182
|
+
},
|
|
183
|
+
{
|
|
184
|
+
"reason": "loop-detected",
|
|
185
|
+
"category": "model",
|
|
186
|
+
"exitCode": 2,
|
|
187
|
+
"retry": "repair-then-new-run",
|
|
188
|
+
"mutation": "read-result-target-mutation",
|
|
189
|
+
"nextAction": "repair-model-policy-or-egress"
|
|
190
|
+
},
|
|
191
|
+
{
|
|
192
|
+
"reason": "turn-cap-exceeded",
|
|
193
|
+
"category": "model",
|
|
194
|
+
"exitCode": 2,
|
|
195
|
+
"retry": "repair-then-new-run",
|
|
196
|
+
"mutation": "read-result-target-mutation",
|
|
197
|
+
"nextAction": "repair-model-policy-or-egress"
|
|
198
|
+
},
|
|
199
|
+
{
|
|
200
|
+
"reason": "step-timeout",
|
|
201
|
+
"category": "model",
|
|
202
|
+
"exitCode": 2,
|
|
203
|
+
"retry": "repair-then-new-run",
|
|
204
|
+
"mutation": "read-result-target-mutation",
|
|
205
|
+
"nextAction": "repair-model-policy-or-egress"
|
|
206
|
+
},
|
|
207
|
+
{
|
|
208
|
+
"reason": "scenario-timeout",
|
|
209
|
+
"category": "infra",
|
|
210
|
+
"exitCode": 3,
|
|
211
|
+
"retry": "repair-then-new-run",
|
|
212
|
+
"mutation": "read-result-target-mutation",
|
|
213
|
+
"nextAction": "repair-environment-and-inspect-target"
|
|
214
|
+
},
|
|
215
|
+
{
|
|
216
|
+
"reason": "tool-error",
|
|
217
|
+
"category": "infra",
|
|
218
|
+
"exitCode": 3,
|
|
219
|
+
"retry": "repair-then-new-run",
|
|
220
|
+
"mutation": "read-result-target-mutation",
|
|
221
|
+
"nextAction": "repair-environment-and-inspect-target"
|
|
222
|
+
},
|
|
223
|
+
{
|
|
224
|
+
"reason": "provider-error",
|
|
225
|
+
"category": "infra",
|
|
226
|
+
"exitCode": 3,
|
|
227
|
+
"retry": "repair-then-new-run",
|
|
228
|
+
"mutation": "read-result-target-mutation",
|
|
229
|
+
"nextAction": "repair-environment-and-inspect-target"
|
|
230
|
+
},
|
|
231
|
+
{
|
|
232
|
+
"reason": "token-budget-exceeded",
|
|
233
|
+
"category": "infra",
|
|
234
|
+
"exitCode": 3,
|
|
235
|
+
"retry": "repair-then-new-run",
|
|
236
|
+
"mutation": "read-result-target-mutation",
|
|
237
|
+
"nextAction": "repair-environment-and-inspect-target"
|
|
238
|
+
},
|
|
239
|
+
{
|
|
240
|
+
"reason": "interrupted",
|
|
241
|
+
"category": "infra",
|
|
242
|
+
"exitCode": 3,
|
|
243
|
+
"retry": "repair-then-new-run",
|
|
244
|
+
"mutation": "read-result-target-mutation",
|
|
245
|
+
"nextAction": "repair-environment-and-inspect-target"
|
|
246
|
+
},
|
|
247
|
+
{
|
|
248
|
+
"reason": "driver-load-failed",
|
|
249
|
+
"category": "infra",
|
|
250
|
+
"exitCode": 3,
|
|
251
|
+
"retry": "repair-then-new-run",
|
|
252
|
+
"mutation": "read-result-target-mutation",
|
|
253
|
+
"nextAction": "repair-environment-and-inspect-target"
|
|
254
|
+
},
|
|
255
|
+
{
|
|
256
|
+
"reason": "driver-start-failed",
|
|
257
|
+
"category": "infra",
|
|
258
|
+
"exitCode": 3,
|
|
259
|
+
"retry": "repair-then-new-run",
|
|
260
|
+
"mutation": "read-result-target-mutation",
|
|
261
|
+
"nextAction": "repair-environment-and-inspect-target"
|
|
262
|
+
},
|
|
263
|
+
{
|
|
264
|
+
"reason": "driver-teardown-failed",
|
|
265
|
+
"category": "infra",
|
|
266
|
+
"exitCode": 3,
|
|
267
|
+
"retry": "repair-then-new-run",
|
|
268
|
+
"mutation": "read-result-target-mutation",
|
|
269
|
+
"nextAction": "repair-environment-and-inspect-target"
|
|
270
|
+
},
|
|
271
|
+
{
|
|
272
|
+
"reason": "evidence-write-failed",
|
|
273
|
+
"category": "infra",
|
|
274
|
+
"exitCode": 3,
|
|
275
|
+
"retry": "repair-then-new-run",
|
|
276
|
+
"mutation": "read-result-target-mutation",
|
|
277
|
+
"nextAction": "repair-output-and-inspect-target"
|
|
278
|
+
},
|
|
279
|
+
{
|
|
280
|
+
"reason": "result-write-failed",
|
|
281
|
+
"category": "infra",
|
|
282
|
+
"exitCode": 3,
|
|
283
|
+
"retry": "repair-then-new-run",
|
|
284
|
+
"mutation": "read-result-target-mutation",
|
|
285
|
+
"nextAction": "repair-output-and-inspect-target"
|
|
286
|
+
},
|
|
287
|
+
{
|
|
288
|
+
"reason": "internal-error",
|
|
289
|
+
"category": "infra",
|
|
290
|
+
"exitCode": 3,
|
|
291
|
+
"retry": "repair-then-new-run",
|
|
292
|
+
"mutation": "read-result-target-mutation",
|
|
293
|
+
"nextAction": "repair-environment-and-inspect-target"
|
|
294
|
+
},
|
|
295
|
+
{
|
|
296
|
+
"reason": "invalid-invocation",
|
|
297
|
+
"category": "invalid",
|
|
298
|
+
"exitCode": 4,
|
|
299
|
+
"retry": "repair-then-new-run",
|
|
300
|
+
"mutation": "not-attempted",
|
|
301
|
+
"nextAction": "repair-request-or-configuration"
|
|
302
|
+
},
|
|
303
|
+
{
|
|
304
|
+
"reason": "pre-execution-error",
|
|
305
|
+
"category": "infra",
|
|
306
|
+
"exitCode": 3,
|
|
307
|
+
"retry": "repair-then-new-run",
|
|
308
|
+
"mutation": "not-attempted",
|
|
309
|
+
"nextAction": "repair-environment-and-start-new-run"
|
|
310
|
+
},
|
|
311
|
+
{
|
|
312
|
+
"reason": "parent-containment",
|
|
313
|
+
"category": "infra",
|
|
314
|
+
"exitCode": 3,
|
|
315
|
+
"retry": "repair-then-new-run",
|
|
316
|
+
"mutation": "read-result-target-mutation",
|
|
317
|
+
"nextAction": "repair-environment-and-inspect-target"
|
|
318
|
+
}
|
|
319
|
+
]
|
|
320
|
+
},
|
|
321
|
+
"onboarding": {
|
|
322
|
+
"type": "object",
|
|
323
|
+
"additionalProperties": false,
|
|
324
|
+
"required": ["workflow", "commands", "routing", "evidence"],
|
|
325
|
+
"properties": {
|
|
326
|
+
"workflow": {
|
|
327
|
+
"type": "array",
|
|
328
|
+
"minItems": 5,
|
|
329
|
+
"maxItems": 5,
|
|
330
|
+
"prefixItems": [
|
|
331
|
+
{ "const": "describe" },
|
|
332
|
+
{ "const": "author-request" },
|
|
333
|
+
{ "const": "validate" },
|
|
334
|
+
{ "const": "run" },
|
|
335
|
+
{ "const": "route-result" }
|
|
336
|
+
],
|
|
337
|
+
"items": false
|
|
338
|
+
},
|
|
339
|
+
"commands": {
|
|
340
|
+
"type": "object",
|
|
341
|
+
"additionalProperties": false,
|
|
342
|
+
"required": ["validate", "runFile", "runStdin"],
|
|
343
|
+
"properties": {
|
|
344
|
+
"validate": { "const": "checkmate validate <request.json>" },
|
|
345
|
+
"runFile": { "const": "checkmate run <request.json>" },
|
|
346
|
+
"runStdin": { "const": "checkmate run -" }
|
|
347
|
+
}
|
|
348
|
+
},
|
|
349
|
+
"routing": {
|
|
350
|
+
"type": "array",
|
|
351
|
+
"minItems": 19,
|
|
352
|
+
"maxItems": 19,
|
|
353
|
+
"uniqueItems": true,
|
|
354
|
+
"items": { "$ref": "#/$defs/routeRule" }
|
|
355
|
+
},
|
|
356
|
+
"evidence": {
|
|
357
|
+
"type": "object",
|
|
358
|
+
"additionalProperties": false,
|
|
359
|
+
"required": ["pathBase", "followReferencesOnly", "retentionIsPolicyDependent", "inspectCompletenessState"],
|
|
360
|
+
"properties": {
|
|
361
|
+
"pathBase": { "const": "invocation-root" },
|
|
362
|
+
"followReferencesOnly": { "const": true },
|
|
363
|
+
"retentionIsPolicyDependent": { "const": true },
|
|
364
|
+
"inspectCompletenessState": { "const": true }
|
|
365
|
+
}
|
|
366
|
+
}
|
|
367
|
+
}
|
|
368
|
+
},
|
|
369
|
+
"available": {
|
|
370
|
+
"type": "object",
|
|
371
|
+
"additionalProperties": false,
|
|
372
|
+
"required": ["kind", "schemaVersion", "status", "contracts", "environment", "onboarding", "diagnostics"],
|
|
373
|
+
"properties": {
|
|
374
|
+
"kind": { "const": "describe-result" },
|
|
375
|
+
"schemaVersion": { "const": 1 },
|
|
376
|
+
"status": { "const": "available" },
|
|
377
|
+
"contracts": {
|
|
378
|
+
"type": "array",
|
|
379
|
+
"minItems": 6,
|
|
380
|
+
"maxItems": 6,
|
|
381
|
+
"uniqueItems": true,
|
|
382
|
+
"items": { "$ref": "#/$defs/contractReference" }
|
|
383
|
+
},
|
|
384
|
+
"environment": {
|
|
385
|
+
"type": "object",
|
|
386
|
+
"additionalProperties": false,
|
|
387
|
+
"required": ["defaultPolicy", "policies", "drivers"],
|
|
388
|
+
"properties": {
|
|
389
|
+
"defaultPolicy": { "type": "string", "minLength": 1 },
|
|
390
|
+
"policies": { "type": "array", "items": { "$ref": "#/$defs/describedPolicy" } },
|
|
391
|
+
"drivers": { "type": "array", "items": { "$ref": "#/$defs/describedDriver" } }
|
|
392
|
+
}
|
|
393
|
+
},
|
|
394
|
+
"onboarding": { "$ref": "#/$defs/onboarding" },
|
|
395
|
+
"diagnostics": { "type": "array", "maxItems": 0 }
|
|
396
|
+
}
|
|
397
|
+
},
|
|
398
|
+
"unavailable": {
|
|
399
|
+
"type": "object",
|
|
400
|
+
"additionalProperties": false,
|
|
401
|
+
"required": ["kind", "schemaVersion", "status", "diagnostics"],
|
|
402
|
+
"properties": {
|
|
403
|
+
"kind": { "const": "describe-result" },
|
|
404
|
+
"schemaVersion": { "const": 1 },
|
|
405
|
+
"status": { "enum": ["invalid", "error"] },
|
|
406
|
+
"diagnostics": {
|
|
407
|
+
"type": "array",
|
|
408
|
+
"minItems": 1,
|
|
409
|
+
"items": { "$ref": "#/$defs/diagnostic" }
|
|
410
|
+
}
|
|
411
|
+
}
|
|
412
|
+
}
|
|
413
|
+
}
|
|
414
|
+
}
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://checkmate.dev/schemas/driver-descriptor.v1.json",
|
|
4
|
+
"title": "Checkmate driver descriptor version 1",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"additionalProperties": false,
|
|
7
|
+
"required": [
|
|
8
|
+
"schemaVersion",
|
|
9
|
+
"id",
|
|
10
|
+
"driverContractVersion",
|
|
11
|
+
"targetSchema",
|
|
12
|
+
"settingsSchema",
|
|
13
|
+
"requiredSecretSlots",
|
|
14
|
+
"tools",
|
|
15
|
+
"evidenceKinds"
|
|
16
|
+
],
|
|
17
|
+
"properties": {
|
|
18
|
+
"schemaVersion": { "const": 1 },
|
|
19
|
+
"id": { "$ref": "#/$defs/id" },
|
|
20
|
+
"driverContractVersion": { "const": 1 },
|
|
21
|
+
"targetSchema": { "type": "object" },
|
|
22
|
+
"settingsSchema": { "type": "object" },
|
|
23
|
+
"requiredSecretSlots": {
|
|
24
|
+
"type": "array",
|
|
25
|
+
"uniqueItems": true,
|
|
26
|
+
"items": { "$ref": "#/$defs/id" }
|
|
27
|
+
},
|
|
28
|
+
"tools": {
|
|
29
|
+
"type": "array",
|
|
30
|
+
"uniqueItems": true,
|
|
31
|
+
"items": {
|
|
32
|
+
"type": "object",
|
|
33
|
+
"additionalProperties": false,
|
|
34
|
+
"required": ["name"],
|
|
35
|
+
"properties": { "name": { "$ref": "#/$defs/id" } }
|
|
36
|
+
}
|
|
37
|
+
},
|
|
38
|
+
"evidenceKinds": {
|
|
39
|
+
"type": "array",
|
|
40
|
+
"uniqueItems": true,
|
|
41
|
+
"items": {
|
|
42
|
+
"type": "object",
|
|
43
|
+
"additionalProperties": false,
|
|
44
|
+
"required": ["kind", "mediaType", "content"],
|
|
45
|
+
"properties": {
|
|
46
|
+
"kind": { "$ref": "#/$defs/id" },
|
|
47
|
+
"mediaType": {
|
|
48
|
+
"type": "string",
|
|
49
|
+
"minLength": 1,
|
|
50
|
+
"maxLength": 256,
|
|
51
|
+
"pattern": "^(?!.*[\\u0000-\\u001f]).*$"
|
|
52
|
+
},
|
|
53
|
+
"content": { "enum": ["text", "opaque"] }
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
},
|
|
58
|
+
"$defs": {
|
|
59
|
+
"id": {
|
|
60
|
+
"type": "string",
|
|
61
|
+
"minLength": 1,
|
|
62
|
+
"maxLength": 128,
|
|
63
|
+
"pattern": "^(?!.*[\\u0000-\\u001f]).*$"
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
}
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://checkmate.dev/schemas/run-request.v1.json",
|
|
4
|
+
"title": "Checkmate run request version 1",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"additionalProperties": false,
|
|
7
|
+
"required": ["schemaVersion", "scenario"],
|
|
8
|
+
"properties": {
|
|
9
|
+
"schemaVersion": { "const": 1 },
|
|
10
|
+
"scenario": {
|
|
11
|
+
"type": "object",
|
|
12
|
+
"additionalProperties": false,
|
|
13
|
+
"required": ["id", "driver", "steps"],
|
|
14
|
+
"properties": {
|
|
15
|
+
"id": { "$ref": "#/$defs/id" },
|
|
16
|
+
"name": {
|
|
17
|
+
"type": "string",
|
|
18
|
+
"minLength": 1,
|
|
19
|
+
"maxLength": 256,
|
|
20
|
+
"pattern": "^(?!.*[\\u0000-\\u001f]).*$"
|
|
21
|
+
},
|
|
22
|
+
"driver": {
|
|
23
|
+
"type": "object",
|
|
24
|
+
"additionalProperties": false,
|
|
25
|
+
"required": ["id", "target"],
|
|
26
|
+
"properties": {
|
|
27
|
+
"id": { "$ref": "#/$defs/id" },
|
|
28
|
+
"target": { "type": "object" }
|
|
29
|
+
}
|
|
30
|
+
},
|
|
31
|
+
"policy": { "$ref": "#/$defs/id" },
|
|
32
|
+
"limits": {
|
|
33
|
+
"type": "object",
|
|
34
|
+
"additionalProperties": false,
|
|
35
|
+
"minProperties": 1,
|
|
36
|
+
"properties": {
|
|
37
|
+
"timeoutMs": { "type": "integer", "minimum": 1 },
|
|
38
|
+
"budgetTokens": { "type": "integer", "minimum": 1 }
|
|
39
|
+
}
|
|
40
|
+
},
|
|
41
|
+
"steps": {
|
|
42
|
+
"type": "array",
|
|
43
|
+
"minItems": 1,
|
|
44
|
+
"maxItems": 100,
|
|
45
|
+
"items": {
|
|
46
|
+
"type": "object",
|
|
47
|
+
"additionalProperties": false,
|
|
48
|
+
"required": ["id", "action", "expect"],
|
|
49
|
+
"properties": {
|
|
50
|
+
"id": { "$ref": "#/$defs/id" },
|
|
51
|
+
"action": { "type": "string", "minLength": 1, "maxLength": 16384 },
|
|
52
|
+
"expect": { "type": "string", "minLength": 1, "maxLength": 16384 }
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
},
|
|
59
|
+
"$defs": {
|
|
60
|
+
"id": {
|
|
61
|
+
"type": "string",
|
|
62
|
+
"minLength": 1,
|
|
63
|
+
"maxLength": 128,
|
|
64
|
+
"pattern": "^(?!.*[\\u0000-\\u001f]).*$"
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
}
|