deepline 0.3.89 → 0.3.91
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/contracts/install-commands.json +29 -0
- package/dist/bundling-sources/sdk/src/client.ts +221 -43
- package/dist/bundling-sources/sdk/src/index.ts +4 -0
- package/dist/bundling-sources/sdk/src/monitor-fleet-contract.ts +2 -556
- package/dist/bundling-sources/sdk/src/monitor-fleets.ts +2 -2
- package/dist/bundling-sources/sdk/src/pagination.ts +25 -0
- package/dist/bundling-sources/sdk/src/plays/bundle-play-file.ts +1 -1
- package/dist/bundling-sources/sdk/src/release.ts +11 -9
- package/dist/bundling-sources/sdk/src/types.ts +29 -1
- package/dist/bundling-sources/shared_libs/integration-contracts/monitor-fleet-contract.ts +549 -0
- package/dist/bundling-sources/shared_libs/monitors/analytics-public.ts +10 -0
- package/dist/bundling-sources/shared_libs/monitors/fleets/errors.ts +96 -0
- package/dist/bundling-sources/shared_libs/monitors/fleets/limits.ts +8 -0
- package/dist/bundling-sources/shared_libs/monitors/fleets/plan.ts +320 -0
- package/dist/bundling-sources/shared_libs/monitors/fleets/verdict.ts +106 -0
- package/dist/bundling-sources/shared_libs/monitors/http-error-response.ts +8 -1
- package/dist/bundling-sources/shared_libs/monitors/inbound-queue.ts +4 -4
- package/dist/bundling-sources/shared_libs/monitors/inventory-reconciliation.ts +59 -0
- package/dist/bundling-sources/shared_libs/monitors/lifecycle-notifications.ts +7 -9
- package/dist/bundling-sources/shared_libs/monitors/monitor-fleet-limits.ts +2 -12
- package/dist/bundling-sources/shared_libs/monitors/package.json +113 -4
- package/dist/bundling-sources/shared_libs/monitors/provider-monitor-batch-operation.ts +56 -9
- package/dist/bundling-sources/shared_libs/monitors/provider-monitor-consumer-health.ts +2 -2
- package/dist/bundling-sources/shared_libs/monitors/provider-monitor-identity-claims.ts +2 -2
- package/dist/bundling-sources/shared_libs/monitors/provider-monitor-public-aliases.ts +1 -1
- package/dist/bundling-sources/shared_libs/monitors/signal-radars/inbound-dead-letter.ts +245 -0
- package/dist/bundling-sources/shared_libs/monitors/signal-radars/inbound-message.ts +38 -0
- package/dist/bundling-sources/shared_libs/monitors/signal-radars/inbound-queue-ack-probe.ts +94 -0
- package/dist/bundling-sources/shared_libs/monitors/signal-radars/inbound-queue-delivery.ts +60 -0
- package/dist/bundling-sources/shared_libs/monitors/signal-radars/inbound-queue.ts +60 -0
- package/dist/bundling-sources/shared_libs/monitors/snitcher-install-validation.ts +1 -1
- package/dist/bundling-sources/shared_libs/monitors/snitcher-ip2company.ts +2 -2
- package/dist/bundling-sources/shared_libs/monitors/snitcher-radar.ts +1 -1
- package/dist/bundling-sources/shared_libs/monitors/tracking-provider-integrations.ts +1 -1
- package/dist/bundling-sources/shared_libs/observability/build-context.ts +13 -0
- package/dist/bundling-sources/shared_libs/observability/log-metadata.ts +160 -0
- package/dist/bundling-sources/shared_libs/observability/request-context.ts +68 -0
- package/dist/bundling-sources/shared_libs/observability/scheduled-jobs.json +690 -0
- package/dist/bundling-sources/shared_libs/observability/scheduled-work-manual.ts +35 -0
- package/dist/bundling-sources/shared_libs/observability/scheduled-work.ts +5 -0
- package/dist/bundling-sources/shared_libs/play-data-plane/neon-constants.ts +9 -0
- package/dist/bundling-sources/shared_libs/play-data-plane/r2.ts +272 -0
- package/dist/bundling-sources/shared_libs/play-runtime/app-runtime-api.ts +46 -1
- package/dist/bundling-sources/shared_libs/play-runtime/async-operation.ts +66 -1
- package/dist/bundling-sources/shared_libs/play-runtime/async-play-invocation.ts +0 -1
- package/dist/bundling-sources/shared_libs/play-runtime/bounceban-batching.ts +137 -0
- package/dist/bundling-sources/shared_libs/play-runtime/context.ts +779 -140
- package/dist/bundling-sources/shared_libs/play-runtime/ctx-types.ts +46 -0
- package/dist/bundling-sources/shared_libs/play-runtime/daytona-payload-contract.ts +68 -0
- package/dist/bundling-sources/shared_libs/play-runtime/daytona-sandbox-janitor.ts +103 -0
- package/dist/bundling-sources/shared_libs/play-runtime/daytona-sandbox-reaper.ts +725 -0
- package/dist/bundling-sources/shared_libs/play-runtime/db-session-lease-store.ts +578 -0
- package/dist/bundling-sources/shared_libs/play-runtime/deployment/commands/roll-execution-relay.ts +521 -0
- package/dist/bundling-sources/shared_libs/play-runtime/deployment/commands/roll-receipt-gateway.ts +1378 -0
- package/dist/bundling-sources/shared_libs/play-runtime/deployment/commands/runtime-topology.ts +1024 -0
- package/dist/bundling-sources/shared_libs/play-runtime/deployment/fly-gateway-route-probe.ts +193 -0
- package/dist/bundling-sources/shared_libs/play-runtime/deployment/fly-machine-lifecycle.ts +104 -0
- package/dist/bundling-sources/shared_libs/play-runtime/deployment/fly-machines.ts +1844 -0
- package/dist/bundling-sources/shared_libs/play-runtime/deployment/fly-registry.ts +21 -0
- package/dist/bundling-sources/shared_libs/play-runtime/deployment/process-tree.ts +40 -0
- package/dist/bundling-sources/shared_libs/play-runtime/deployment/runtime-gateway-drain.ts +262 -0
- package/dist/bundling-sources/shared_libs/play-runtime/deployment/runtime-surface.ts +98 -0
- package/dist/bundling-sources/shared_libs/play-runtime/deployment/runtime-topology.ts +303 -0
- package/dist/bundling-sources/shared_libs/play-runtime/deployment/runtime-tuple-publication-guardian.ts +70 -0
- package/dist/bundling-sources/shared_libs/play-runtime/deployment/runtime-tuple-recovery.ts +519 -0
- package/dist/bundling-sources/shared_libs/play-runtime/deployment/vercel-fly-rollback-alignment.ts +280 -0
- package/dist/bundling-sources/shared_libs/play-runtime/deployment/vercel-production-gate.ts +159 -0
- package/dist/bundling-sources/shared_libs/play-runtime/durable-call-cache.ts +29 -0
- package/dist/bundling-sources/shared_libs/play-runtime/execution-capabilities.ts +23 -0
- package/dist/bundling-sources/shared_libs/play-runtime/execution-gateway-invocation-fence.ts +442 -0
- package/dist/bundling-sources/shared_libs/play-runtime/execution-protocol.ts +3 -3
- package/dist/bundling-sources/shared_libs/play-runtime/fixture-behavior.ts +18 -0
- package/dist/bundling-sources/shared_libs/play-runtime/governor/app-runtime-rate-state-backend.ts +9 -0
- package/dist/bundling-sources/shared_libs/play-runtime/governor/policy.ts +1 -1
- package/dist/bundling-sources/shared_libs/play-runtime/governor/rate-state-backend.ts +1 -1
- package/dist/bundling-sources/shared_libs/play-runtime/integration-operation-reader-fence/contracts.ts +66 -0
- package/dist/bundling-sources/shared_libs/play-runtime/integration-operation-reader-fence/job.ts +145 -0
- package/dist/bundling-sources/shared_libs/play-runtime/integration-operation-reader-fence/memory-store.ts +114 -0
- package/dist/bundling-sources/shared_libs/play-runtime/integration-operation-reader-fence/ports.ts +21 -0
- package/dist/bundling-sources/shared_libs/play-runtime/integration-operation-reader-fence/postgres-store.ts +170 -0
- package/dist/bundling-sources/shared_libs/play-runtime/internal-bootstrap-token.ts +1322 -0
- package/dist/bundling-sources/shared_libs/play-runtime/internal-step-ids.ts +2 -2
- package/dist/bundling-sources/shared_libs/play-runtime/lane-retirement-gate.ts +1 -1
- package/dist/bundling-sources/shared_libs/play-runtime/launch-source-policy.ts +112 -0
- package/dist/bundling-sources/shared_libs/play-runtime/map-execution-frame.ts +8 -0
- package/dist/bundling-sources/shared_libs/play-runtime/perf-trace.ts +127 -0
- package/dist/bundling-sources/shared_libs/play-runtime/play-artifact-runtime-contract.ts +5 -0
- package/dist/bundling-sources/shared_libs/play-runtime/play-run-recovery-policy.ts +24 -1
- package/dist/bundling-sources/shared_libs/play-runtime/play-runs/admission/contracts.ts +56 -0
- package/dist/bundling-sources/shared_libs/play-runtime/play-runs/admission/index.ts +13 -0
- package/dist/bundling-sources/shared_libs/play-runtime/play-runs/admission/job.ts +41 -0
- package/dist/bundling-sources/shared_libs/play-runtime/play-runs/admission/ports.ts +17 -0
- package/dist/bundling-sources/shared_libs/play-runtime/play-runs/admission/postgres-adapter.ts +54 -0
- package/dist/bundling-sources/shared_libs/play-runtime/play-runs/attempts/contracts.ts +114 -0
- package/dist/bundling-sources/shared_libs/play-runtime/play-runs/attempts/engine-suspension.ts +108 -0
- package/dist/bundling-sources/shared_libs/play-runtime/play-runs/attempts/index.ts +36 -0
- package/dist/bundling-sources/shared_libs/play-runtime/play-runs/attempts/job.ts +97 -0
- package/dist/bundling-sources/shared_libs/play-runtime/play-runs/attempts/ports.ts +104 -0
- package/dist/bundling-sources/shared_libs/play-runtime/play-runs/attempts/postgres-fence-adapter.ts +263 -0
- package/dist/bundling-sources/shared_libs/play-runtime/play-runs/attempts/worker-terminal-projection.ts +64 -0
- package/dist/bundling-sources/shared_libs/play-runtime/play-runs/projection/contracts.ts +29 -0
- package/dist/bundling-sources/shared_libs/play-runtime/play-runs/projection/gateway-adapter.ts +56 -0
- package/dist/bundling-sources/shared_libs/play-runtime/play-runs/projection/index.ts +15 -0
- package/dist/bundling-sources/shared_libs/play-runtime/play-runs/projection/job.ts +65 -0
- package/dist/bundling-sources/shared_libs/play-runtime/play-runs/projection/ports.ts +17 -0
- package/dist/bundling-sources/shared_libs/play-runtime/play-runs/sandbox-cleanup/contracts.ts +42 -0
- package/dist/bundling-sources/shared_libs/play-runtime/play-runs/sandbox-cleanup/index.ts +17 -0
- package/dist/bundling-sources/shared_libs/play-runtime/play-runs/sandbox-cleanup/job.ts +142 -0
- package/dist/bundling-sources/shared_libs/play-runtime/play-runs/sandbox-cleanup/ports.ts +42 -0
- package/dist/bundling-sources/shared_libs/play-runtime/play-runs/sandbox-cleanup/postgres-adapter.ts +102 -0
- package/dist/bundling-sources/shared_libs/play-runtime/play-runs/terminal/contracts.ts +60 -0
- package/dist/bundling-sources/shared_libs/play-runtime/play-runs/terminal/index.ts +16 -0
- package/dist/bundling-sources/shared_libs/play-runtime/play-runs/terminal/job.ts +78 -0
- package/dist/bundling-sources/shared_libs/play-runtime/play-runs/terminal/ports.ts +54 -0
- package/dist/bundling-sources/shared_libs/play-runtime/play-runs/terminal/postgres-adapter.ts +71 -0
- package/dist/bundling-sources/shared_libs/play-runtime/play-runtime-batching-registry.ts +4 -0
- package/dist/bundling-sources/shared_libs/play-runtime/protocol.ts +2 -0
- package/dist/bundling-sources/shared_libs/play-runtime/receipt-status.ts +5 -8
- package/dist/bundling-sources/shared_libs/play-runtime/run-failure.ts +3 -5
- package/dist/bundling-sources/shared_libs/play-runtime/run-identity.ts +168 -0
- package/dist/bundling-sources/shared_libs/play-runtime/run-ledger.ts +44 -5
- package/dist/bundling-sources/shared_libs/play-runtime/runner-app/child-play-resolver.ts +26 -0
- package/dist/bundling-sources/shared_libs/play-runtime/runner-app/index.ts +3662 -0
- package/dist/bundling-sources/shared_libs/play-runtime/runner-app/progress-sidecar.ts +47 -0
- package/dist/bundling-sources/shared_libs/play-runtime/runner-app/runtime-deadline.ts +84 -0
- package/dist/bundling-sources/shared_libs/play-runtime/runner-app/runtime-gateway-transport.ts +91 -0
- package/dist/bundling-sources/shared_libs/play-runtime/runner-app/runtime-heartbeat.ts +424 -0
- package/dist/bundling-sources/shared_libs/play-runtime/runner-app/runtime-progress-push.ts +321 -0
- package/dist/bundling-sources/shared_libs/play-runtime/runner-app/runtime-sheet-persistence-retry.ts +110 -0
- package/dist/bundling-sources/shared_libs/play-runtime/runner-app/runtime-terminal-push.ts +625 -0
- package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/backends/daytona-lifecycle.ts +72 -9
- package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/backends/daytona-payload-transport.ts +6 -12
- package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/backends/daytona.ts +19 -0
- package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/bundle.ts +0 -1
- package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/runtime-sandbox-reconciliation.ts +14 -44
- package/dist/bundling-sources/shared_libs/play-runtime/runtime-api.ts +103 -208
- package/dist/bundling-sources/shared_libs/play-runtime/runtime-authority.ts +201 -0
- package/dist/bundling-sources/shared_libs/play-runtime/runtime-env.ts +6 -0
- package/dist/bundling-sources/shared_libs/play-runtime/runtime-operation-contract.ts +67 -0
- package/dist/bundling-sources/shared_libs/play-runtime/runtime-release-environment.ts +2 -0
- package/dist/bundling-sources/shared_libs/play-runtime/runtime-sandbox-contract.ts +68 -0
- package/dist/bundling-sources/shared_libs/play-runtime/runtime-scheduler-topology.ts +14 -2
- package/dist/bundling-sources/shared_libs/play-runtime/runtime-telemetry.ts +108 -0
- package/dist/bundling-sources/shared_libs/play-runtime/sandbox-runs/contract.ts +4 -0
- package/dist/bundling-sources/shared_libs/play-runtime/sandbox-runs/runner-backend-adapter.ts +3 -0
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backend.ts +7 -0
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/absurd-deadline-reconciliation.ts +88 -0
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/absurd-play-deploy-task.ts +124 -0
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/absurd-play-run-task.ts +68 -0
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/absurd-pool.ts +193 -0
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/absurd-queue-lifecycle.ts +269 -0
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/absurd-queue-suffix.ts +73 -0
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/absurd-runtime-worker.ts +6642 -0
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/absurd-shared.ts +897 -0
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/absurd-worker-metrics.ts +120 -0
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/absurd-worker-required-env.ts +76 -0
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/absurd.ts +476 -0
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/gateway-heavy-request-admission.ts +47 -0
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/gateway-progress-registry.ts +147 -0
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/index.ts +27 -0
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/lazy.ts +50 -0
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/play-run-recovery.ts +98 -0
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/postgres-budget-state.ts +260 -0
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/postgres-pool.ts +1416 -0
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/postgres-progress.ts +1255 -0
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/postgres-rate-state.ts +942 -0
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/postgres.ts +14636 -0
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/receipt-gateway.ts +888 -0
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/run-ledger-outbox-recovery.ts +355 -0
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/run-terminal-transition.ts +46 -0
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/runner-push.ts +60 -0
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/runtime-api-origin.ts +33 -0
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/runtime-receipt-gateway-health.ts +64 -0
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/runtime-sandbox-capacity.ts +835 -0
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/runtime-sandbox-ledger-reconciliation.ts +1218 -0
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/runtime-sandbox-operation.ts +207 -0
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/runtime-scheduler-schema.ts +10 -0
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/scheduler-capacity.ts +123 -0
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/scheduler-launch-read-observability.ts +78 -0
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/submit-admission.ts +169 -0
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/terminal-contract.ts +20 -0
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/worker-queue-metrics.ts +34 -0
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/worker-resource-metrics.ts +249 -0
- package/dist/bundling-sources/shared_libs/play-runtime/sheet-attempt-sql.ts +7 -0
- package/dist/bundling-sources/shared_libs/play-runtime/step-progress.ts +296 -0
- package/dist/bundling-sources/shared_libs/play-runtime/tool-call/native-batch.ts +3 -3
- package/dist/bundling-sources/shared_libs/play-runtime/tool-call/runtime-step-receipts-adapter.ts +20 -1
- package/dist/bundling-sources/shared_libs/play-runtime/tool-execute-retry-policy.ts +60 -15
- package/dist/bundling-sources/shared_libs/play-runtime/tool-execution-outcome.ts +20 -0
- package/dist/bundling-sources/shared_libs/play-runtime/transient-service-error.ts +12 -0
- package/dist/bundling-sources/shared_libs/play-runtime/vercel-protection.ts +14 -1
- package/dist/bundling-sources/shared_libs/play-runtime/webhook-receipt-retry.ts +50 -0
- package/dist/bundling-sources/shared_libs/play-runtime/work-receipt-storage-contract.ts +165 -0
- package/dist/bundling-sources/shared_libs/play-runtime/work-receipts.ts +15 -23
- package/dist/bundling-sources/shared_libs/play-runtime/workflow-executor-auth.ts +169 -0
- package/dist/bundling-sources/shared_libs/play-runtime/zerobounce-batching.ts +122 -0
- package/dist/bundling-sources/shared_libs/plays/artifact-types.ts +2 -0
- package/dist/bundling-sources/shared_libs/plays/bundling/repository-adapter.ts +24 -0
- package/dist/bundling-sources/shared_libs/plays/child-run-projection.ts +174 -0
- package/dist/bundling-sources/shared_libs/plays/contracts.ts +2 -0
- package/dist/bundling-sources/shared_libs/plays/deploy/api-client.ts +267 -0
- package/dist/bundling-sources/shared_libs/plays/deploy/control-plane-types.ts +73 -0
- package/dist/bundling-sources/shared_libs/plays/deploy/manifest.ts +162 -0
- package/dist/bundling-sources/shared_libs/plays/deploy/project-serializer.ts +87 -0
- package/dist/bundling-sources/shared_libs/plays/deploy/source-file-path.ts +26 -0
- package/dist/bundling-sources/shared_libs/plays/deploy/target-paths.ts +36 -0
- package/dist/bundling-sources/shared_libs/plays/deployment-status.ts +1 -1
- package/dist/bundling-sources/shared_libs/plays/docflow.ts +1 -1
- package/dist/bundling-sources/shared_libs/plays/launch/input-contract.ts +400 -0
- package/dist/bundling-sources/shared_libs/plays/launch/prepare.ts +96 -0
- package/dist/bundling-sources/shared_libs/plays/local-file-discovery.ts +385 -0
- package/dist/bundling-sources/shared_libs/plays/play-grep-search.ts +112 -0
- package/dist/bundling-sources/shared_libs/plays/play-reference.ts +117 -0
- package/dist/bundling-sources/shared_libs/plays/run-input-summary.ts +260 -0
- package/dist/bundling-sources/shared_libs/plays/run-summary-types.ts +49 -0
- package/dist/bundling-sources/shared_libs/plays/secrets/errors.ts +19 -0
- package/dist/bundling-sources/shared_libs/plays/share/copy.ts +271 -0
- package/dist/bundling-sources/shared_libs/plays/share/metrics.ts +140 -0
- package/dist/bundling-sources/shared_libs/plays/share/public-read-model.ts +86 -0
- package/dist/bundling-sources/shared_libs/plays/share/seo-quality.ts +181 -0
- package/dist/bundling-sources/shared_libs/plays/share/static-pipeline-summary.ts +658 -0
- package/dist/bundling-sources/shared_libs/plays/share/types.ts +197 -0
- package/dist/bundling-sources/shared_libs/plays/sheet-filter.ts +347 -0
- package/dist/bundling-sources/shared_libs/plays/slack-hitl-timeout-error.ts +37 -0
- package/dist/bundling-sources/shared_libs/plays/standard-webhooks.ts +117 -0
- package/dist/bundling-sources/shared_libs/plays/static-pipeline.ts +6 -1
- package/dist/bundling-sources/shared_libs/plays/status-result.ts +388 -0
- package/dist/bundling-sources/shared_libs/plays/tool-result-types.ts +1 -1
- package/dist/bundling-sources/shared_libs/plays/transform-factor-structure.ts +377 -0
- package/dist/bundling-sources/shared_libs/plays/webhook-payload.ts +113 -0
- package/dist/bundling-sources/shared_libs/product-notifications/configuration.ts +7 -1
- package/dist/bundling-sources/shared_libs/product-notifications/default-policy.ts +3 -2
- package/dist/bundling-sources/shared_libs/product-notifications/overflow.ts +18 -0
- package/dist/bundling-sources/shared_libs/product-notifications/rolling-limit.ts +24 -0
- package/dist/bundling-sources/shared_libs/product-notifications/slack-delivery.ts +624 -0
- package/dist/bundling-sources/shared_libs/product-notifications/slack-payload.ts +140 -0
- package/dist/bundling-sources/shared_libs/product-notifications/slack-transport.ts +75 -0
- package/dist/bundling-sources/shared_libs/runtime-env.ts +6 -0
- package/dist/bundling-sources/shared_libs/security/email-blacklist.ts +42 -0
- package/dist/bundling-sources/shared_libs/security/header-safe-env.ts +10 -3
- package/dist/bundling-sources/shared_libs/security/slack-sanitize.ts +133 -0
- package/dist/cli/getting-started.d.mts +52 -0
- package/dist/cli/getting-started.d.ts +52 -0
- package/dist/cli/getting-started.js +65 -0
- package/dist/cli/getting-started.mjs +36 -0
- package/dist/cli/index.d.mts +9 -0
- package/dist/cli/index.d.ts +9 -0
- package/dist/cli/index.js +895 -407
- package/dist/cli/index.mjs +893 -414
- package/dist/{compiler-manifest-DsLbQaew.d.mts → compiler-manifest-x14KL83E.d.mts} +4 -2
- package/dist/{compiler-manifest-DsLbQaew.d.ts → compiler-manifest-x14KL83E.d.ts} +4 -2
- package/dist/index.d.mts +124 -154
- package/dist/index.d.ts +124 -154
- package/dist/index.js +132 -28
- package/dist/index.mjs +132 -28
- package/dist/install-integrity.json +182 -2
- package/dist/monitor-fleet-contract.d.mts +131 -0
- package/dist/monitor-fleet-contract.d.ts +131 -0
- package/dist/monitor-fleet-contract.js +406 -0
- package/dist/monitor-fleet-contract.mjs +367 -0
- package/dist/plays/bundle-play-file.d.mts +2 -2
- package/dist/plays/bundle-play-file.d.ts +2 -2
- package/dist/release.d.mts +255 -0
- package/dist/release.d.ts +255 -0
- package/dist/release.js +210 -0
- package/dist/release.mjs +183 -0
- package/package.json +21 -4
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
/// <reference path="./text-imports.d.ts" />
|
|
2
|
-
import { c as PlayCompilerManifest, A as AsyncPlayRunRef$1, i as PlayAuthoringColumnMap, j as PlayAuthoringColumnResolver, k as PlayAuthoringRuntimeContext, l as PlayAuthoringConditionalStepResolver, m as PlayAuthoringCsvInput, n as PlayAuthoringCsvOptions, o as PlayAuthoringDatasetBuilder, p as PlayAuthoringDatasetColumnDefinition, q as PlayAuthoringDatasetColumnRunInput, T as ToolExecuteResult, r as PlayAuthoringReferenceLike, s as PlayReturnObject$1, t as PlayAuthoringDefineConfig, u as PlayAuthoringDefinedPlay, v as PlayAuthoringFetchOptions, w as PlayAuthoringFileInput, x as PlayAuthoringAsyncCallOptions, y as PlayAuthoringBindings, z as PlayAuthoringCallExecution, B as PlayAuthoringCallOptions, C as PlayAuthoringFetchResponse, D as PlayAuthoringInputContract, E as PlayRunId$1, F as PlayAuthoringStepProgramStep, G as PlayAuthoringRuntimeStepOptions, H as PlaySqlListenerDeclaration, I as PlaySqlListenerEvent, J as PlaySqlListenerOperation, K as PlaySqlQuery, L as PlayAuthoringStepOptions, M as PlayAuthoringStepProgram, N as PlayAuthoringStepProgramResolver, O as PlayAuthoringStepResolver, Q as PlayToolExecutionRequest, R as PlayAuthoringStepProgramOptions, S as DeeplineError, U as ToolExecutionError, V as ToolExecutionErrorOptions } from './compiler-manifest-
|
|
3
|
-
export { W as CtxFetchHttpError, X as DEEPLINE_EXTRACTOR_TARGETS, Y as DEEPLINE_EXTRACTOR_TARGET_DEFINITIONS, Z as DeeplineEmailStatusGetterValue, _ as DeeplineExtractorTarget, $ as DeeplineGetterValue, a0 as DeeplineGetterValueMap, a1 as JOB_CHANGE_STATUS_VALUES, a2 as JobChangeStatus, a3 as PHONE_STATUS_VALUES, a4 as PhoneStatus, a5 as PlayDataset, a6 as PlayDatasetInput, a7 as PreviousCell, a8 as ProviderTransientError, a9 as ProviderTransientErrorCategory, aa as ProviderUnavailableError, ab as ProviderUnavailableReason, ac as ToolExecutionErrorCategory, ad as ToolExecutionErrorOrigin, ae as ToolExecutionFailureV1, af as ToolExecutionNetworkKind, ag as ToolExecutionNetworkScope, ah as ToolExecutionPublicDetails, ai as getProviderUnavailableReason, aj as isDeeplineExtractorTarget, ak as isProviderUnavailable, al as isProviderWaterfallUnavailableError } from './compiler-manifest-
|
|
2
|
+
import { c as PlayCompilerManifest, A as AsyncPlayRunRef$1, i as PlayAuthoringColumnMap, j as PlayAuthoringColumnResolver, k as PlayAuthoringRuntimeContext, l as PlayAuthoringConditionalStepResolver, m as PlayAuthoringCsvInput, n as PlayAuthoringCsvOptions, o as PlayAuthoringDatasetBuilder, p as PlayAuthoringDatasetColumnDefinition, q as PlayAuthoringDatasetColumnRunInput, T as ToolExecuteResult, r as PlayAuthoringReferenceLike, s as PlayReturnObject$1, t as PlayAuthoringDefineConfig, u as PlayAuthoringDefinedPlay, v as PlayAuthoringFetchOptions, w as PlayAuthoringFileInput, x as PlayAuthoringAsyncCallOptions, y as PlayAuthoringBindings, z as PlayAuthoringCallExecution, B as PlayAuthoringCallOptions, C as PlayAuthoringFetchResponse, D as PlayAuthoringInputContract, E as PlayRunId$1, F as PlayAuthoringStepProgramStep, G as PlayAuthoringRuntimeStepOptions, H as PlaySqlListenerDeclaration, I as PlaySqlListenerEvent, J as PlaySqlListenerOperation, K as PlaySqlQuery, L as PlayAuthoringStepOptions, M as PlayAuthoringStepProgram, N as PlayAuthoringStepProgramResolver, O as PlayAuthoringStepResolver, Q as PlayToolExecutionRequest, R as PlayAuthoringStepProgramOptions, S as DeeplineError, U as ToolExecutionError, V as ToolExecutionErrorOptions } from './compiler-manifest-x14KL83E.js';
|
|
3
|
+
export { W as CtxFetchHttpError, X as DEEPLINE_EXTRACTOR_TARGETS, Y as DEEPLINE_EXTRACTOR_TARGET_DEFINITIONS, Z as DeeplineEmailStatusGetterValue, _ as DeeplineExtractorTarget, $ as DeeplineGetterValue, a0 as DeeplineGetterValueMap, a1 as JOB_CHANGE_STATUS_VALUES, a2 as JobChangeStatus, a3 as PHONE_STATUS_VALUES, a4 as PhoneStatus, a5 as PlayDataset, a6 as PlayDatasetInput, a7 as PreviousCell, a8 as ProviderTransientError, a9 as ProviderTransientErrorCategory, aa as ProviderUnavailableError, ab as ProviderUnavailableReason, ac as ToolExecutionErrorCategory, ad as ToolExecutionErrorOrigin, ae as ToolExecutionFailureV1, af as ToolExecutionNetworkKind, ag as ToolExecutionNetworkScope, ah as ToolExecutionPublicDetails, ai as getProviderUnavailableReason, aj as isDeeplineExtractorTarget, ak as isProviderUnavailable, al as isProviderWaterfallUnavailableError } from './compiler-manifest-x14KL83E.js';
|
|
4
|
+
import { MonitorFleetDefinition } from './monitor-fleet-contract.js';
|
|
5
|
+
export { AdmittedMonitorFleetAuthoringContract, MONITOR_FLEET_AUTHORING_CONTRACT_CHANGELOG, MONITOR_FLEET_AUTHORING_CONTRACT_EDITION, MONITOR_FLEET_DOCUMENTATION, MONITOR_FLEET_FRONTIER_MAX_ROWS, MONITOR_FLEET_MAX_MEMBERS, MonitorFleetAuthoringContractEdition, MonitorFleetAuthoringContractResult, MonitorFleetColumn, MonitorFleetContractIssue, MonitorFleetExpression, MonitorFleetTemplate, admitMonitorFleetAuthoringContract, defineMonitorFleet, fleetColumn, fleetKey, validateMonitorFleetDefinition } from './monitor-fleet-contract.js';
|
|
4
6
|
import '@sinclair/typebox';
|
|
5
7
|
|
|
6
8
|
type ProductNotificationFactValue = string | number | boolean;
|
|
@@ -40,7 +42,7 @@ type ProductNotificationTrigger = {
|
|
|
40
42
|
type ProductNotificationDeliveryTiming = {
|
|
41
43
|
mode: 'immediate';
|
|
42
44
|
} | {
|
|
43
|
-
mode: 'immediate_first' | 'digest_only';
|
|
45
|
+
mode: 'immediate_first' | 'digest_only' | 'rolling_limit';
|
|
44
46
|
windowMs: number;
|
|
45
47
|
};
|
|
46
48
|
type ProductNotificationRepeatMode = 'on_enter' | 'every_match';
|
|
@@ -157,6 +159,11 @@ type FixtureBehaviorV3 = {
|
|
|
157
159
|
};
|
|
158
160
|
type FixtureBehavior = FixtureBehaviorV1 | FixtureBehaviorV2 | FixtureBehaviorV3;
|
|
159
161
|
|
|
162
|
+
type PlayGrepMatch = {
|
|
163
|
+
field: 'name' | 'description' | 'provider' | 'source';
|
|
164
|
+
terms: string[];
|
|
165
|
+
};
|
|
166
|
+
|
|
160
167
|
declare const PLAY_RUNTIME_BACKENDS: {
|
|
161
168
|
readonly localProcess: "local_process";
|
|
162
169
|
readonly daytona: "daytona";
|
|
@@ -1395,6 +1402,9 @@ type PlayRunDatasetActions = {
|
|
|
1395
1402
|
};
|
|
1396
1403
|
exportCsv?: PlayRunExportAction & {
|
|
1397
1404
|
scope?: {
|
|
1405
|
+
kind: 'database';
|
|
1406
|
+
mutability: 'current';
|
|
1407
|
+
} | {
|
|
1398
1408
|
kind: 'run';
|
|
1399
1409
|
runId: string;
|
|
1400
1410
|
};
|
|
@@ -1891,6 +1901,21 @@ interface PlayDefinitionDetail {
|
|
|
1891
1901
|
/** Compatibility field for older readers. */
|
|
1892
1902
|
currentPublishedVersion?: number | null;
|
|
1893
1903
|
}
|
|
1904
|
+
type PlayCostEstimate = {
|
|
1905
|
+
status: 'available';
|
|
1906
|
+
source: 'observed' | 'static';
|
|
1907
|
+
unit: 'row' | 'run';
|
|
1908
|
+
lowCredits: number;
|
|
1909
|
+
highCredits: number;
|
|
1910
|
+
sampleRunCount: number;
|
|
1911
|
+
basedOnRunId: string | null;
|
|
1912
|
+
modelVersion: string;
|
|
1913
|
+
} | {
|
|
1914
|
+
status: 'unavailable';
|
|
1915
|
+
reason: 'ambiguous_output_unit' | 'unbounded_loop' | 'unresolved_tool' | 'mixed_run_and_row_costs';
|
|
1916
|
+
message: string;
|
|
1917
|
+
modelVersion: string;
|
|
1918
|
+
};
|
|
1894
1919
|
interface PlayListItem {
|
|
1895
1920
|
playKey?: string;
|
|
1896
1921
|
reference?: string;
|
|
@@ -1920,6 +1945,9 @@ interface PlayListItem {
|
|
|
1920
1945
|
liveRevision?: PlayRevisionSummary | null;
|
|
1921
1946
|
aliases?: string[];
|
|
1922
1947
|
triggerStatus?: PlayTriggerStatus;
|
|
1948
|
+
costEstimate?: PlayCostEstimate;
|
|
1949
|
+
/** Indexed fields that matched a grep query. */
|
|
1950
|
+
matches?: PlayGrepMatch[];
|
|
1923
1951
|
}
|
|
1924
1952
|
/** Additive live trigger state shared by list, get, and describe. */
|
|
1925
1953
|
interface PlayTriggerStatus {
|
|
@@ -2602,134 +2630,6 @@ type MonitorControls = {
|
|
|
2602
2630
|
*/
|
|
2603
2631
|
declare function defineMonitor<TPayload extends MonitorPayload = MonitorPayload>(definition: MonitorDefinition<TPayload>): MonitorDefinition<TPayload>;
|
|
2604
2632
|
|
|
2605
|
-
/**
|
|
2606
|
-
* The fleet member ceiling, mirrored — deliberately a literal.
|
|
2607
|
-
*
|
|
2608
|
-
* The canonical declaration is packages/monitors/monitor-fleet-limits.ts,
|
|
2609
|
-
* which the Convex commit mutation reads to size its transaction. This package
|
|
2610
|
-
* cannot import it: the workspace-architecture ratchet forbids NEW shared_libs
|
|
2611
|
-
* imports from packages absolutely (only relocations of pre-existing edges
|
|
2612
|
-
* pass CI), because shared_libs is being migrated into workspace packages.
|
|
2613
|
-
* Until a monitors package exists, the two copies are held equal by
|
|
2614
|
-
* tests/lib/monitors/monitor-fleet-limits-mirror.test.ts — change one without
|
|
2615
|
-
* the other and that test names both files.
|
|
2616
|
-
*/
|
|
2617
|
-
declare const MONITOR_FLEET_MAX_MEMBERS = 1000;
|
|
2618
|
-
declare const MONITOR_FLEET_FRONTIER_MAX_ROWS = 10000;
|
|
2619
|
-
/**
|
|
2620
|
-
* Fleet definitions are admitted once and executed many times. Keep the
|
|
2621
|
-
* edition beside the definition just as Plays keep their authoring-contract
|
|
2622
|
-
* edition: a future syntax change can add a reader without reinterpreting a
|
|
2623
|
-
* stored Fleet under new rules.
|
|
2624
|
-
*/
|
|
2625
|
-
declare const MONITOR_FLEET_AUTHORING_CONTRACT_EDITION: 1;
|
|
2626
|
-
declare const SUPPORTED_MONITOR_FLEET_AUTHORING_CONTRACT_EDITIONS: readonly [1];
|
|
2627
|
-
type MonitorFleetAuthoringContractEdition = (typeof SUPPORTED_MONITOR_FLEET_AUTHORING_CONTRACT_EDITIONS)[number];
|
|
2628
|
-
declare const MONITOR_FLEET_AUTHORING_CONTRACT_CHANGELOG: readonly [{
|
|
2629
|
-
readonly edition: 1;
|
|
2630
|
-
readonly changed: "Initial Fleet JSON contract: bounded sticky table membership, one daily sync, and a seven-day removal grace.";
|
|
2631
|
-
readonly compatibilityOwner: "Monitors Runtime";
|
|
2632
|
-
readonly newWritesEnd: null;
|
|
2633
|
-
readonly readerRemoval: null;
|
|
2634
|
-
}];
|
|
2635
|
-
/**
|
|
2636
|
-
* Public, machine-readable guidance for every Monitor Fleet authoring
|
|
2637
|
-
* surface. SDK clients may render this directly; the CLI uses the same fixed
|
|
2638
|
-
* policy values in its help rather than maintaining another contract.
|
|
2639
|
-
*/
|
|
2640
|
-
declare const MONITOR_FLEET_DOCUMENTATION: {
|
|
2641
|
-
readonly summary: "A Monitor Fleet keeps one bounded, sticky set of ordinary monitors aligned with Customer DB rows.";
|
|
2642
|
-
readonly authoredFields: {
|
|
2643
|
-
readonly id: "Stable lowercase fleet id used by sync, get, and deactivate.";
|
|
2644
|
-
readonly source: "Customer DB table, unique row key, and optional equality filters that select candidate rows.";
|
|
2645
|
-
readonly member: "Ordinary monitor tool, stable key template, and payload evaluated for each selected source row.";
|
|
2646
|
-
readonly selection: "Deterministic ranking and an active-member limit between 1 and 1,000.";
|
|
2647
|
-
};
|
|
2648
|
-
readonly fixedPolicy: {
|
|
2649
|
-
readonly cadence: "daily";
|
|
2650
|
-
readonly membership: "sticky";
|
|
2651
|
-
readonly removalGrace: "7d";
|
|
2652
|
-
readonly onRemoved: "deactivate";
|
|
2653
|
-
readonly ownership: "A Fleet may adopt a same-tool ordinary monitor with its deterministic member key. The first Fleet claim wins; another Fleet or a different tool receives a conflict.";
|
|
2654
|
-
readonly billing: "No Fleet fee, permit, or renewal. Dry-run reports ordinary monitor lifecycle charges due now.";
|
|
2655
|
-
};
|
|
2656
|
-
readonly stickyMembership: "Ranking fills vacancies but never replaces a current member merely because another row ranks higher.";
|
|
2657
|
-
readonly columnExpression: "Use { \"$fleet\": \"column\", \"name\": \"column_name\" } in a member key or payload to read a value from each source row.";
|
|
2658
|
-
};
|
|
2659
|
-
type MonitorFleetColumn = {
|
|
2660
|
-
$fleet: 'column';
|
|
2661
|
-
name: string;
|
|
2662
|
-
};
|
|
2663
|
-
type MonitorFleetTemplate = {
|
|
2664
|
-
$fleet: 'template';
|
|
2665
|
-
parts: Array<string | MonitorFleetColumn>;
|
|
2666
|
-
};
|
|
2667
|
-
type MonitorFleetExpression = MonitorFleetColumn | MonitorFleetTemplate;
|
|
2668
|
-
type MonitorFleetDefinition = {
|
|
2669
|
-
/** Stable lowercase fleet id, used by CLI and API lifecycle commands. */
|
|
2670
|
-
id: string;
|
|
2671
|
-
/** Customer DB rows that may become members. */
|
|
2672
|
-
source: {
|
|
2673
|
-
kind: 'customer_db_table';
|
|
2674
|
-
schema: string;
|
|
2675
|
-
table: string;
|
|
2676
|
-
key: {
|
|
2677
|
-
column: string;
|
|
2678
|
-
type: 'text' | 'uuid' | 'int4' | 'int8';
|
|
2679
|
-
};
|
|
2680
|
-
where?: Record<string, string | number | boolean | null>;
|
|
2681
|
-
};
|
|
2682
|
-
/** One ordinary monitor definition, evaluated once for each selected row. */
|
|
2683
|
-
member: {
|
|
2684
|
-
tool: string;
|
|
2685
|
-
key: MonitorFleetTemplate;
|
|
2686
|
-
payload: Record<string, unknown>;
|
|
2687
|
-
};
|
|
2688
|
-
/**
|
|
2689
|
-
* Bounded deterministic candidate selection. Membership is intentionally
|
|
2690
|
-
* sticky: ranking chooses vacant slots but does not replace existing members
|
|
2691
|
-
* merely because another row's score changed.
|
|
2692
|
-
*/
|
|
2693
|
-
selection: {
|
|
2694
|
-
limit: number;
|
|
2695
|
-
orderBy: Array<{
|
|
2696
|
-
column: string;
|
|
2697
|
-
direction: 'asc' | 'desc';
|
|
2698
|
-
}>;
|
|
2699
|
-
membership: 'sticky';
|
|
2700
|
-
};
|
|
2701
|
-
};
|
|
2702
|
-
type MonitorFleetContractIssue = {
|
|
2703
|
-
path: string;
|
|
2704
|
-
code: string;
|
|
2705
|
-
message: string;
|
|
2706
|
-
};
|
|
2707
|
-
/** The durable, validated snapshot that a Fleet sync is allowed to execute. */
|
|
2708
|
-
type AdmittedMonitorFleetAuthoringContract = {
|
|
2709
|
-
edition: MonitorFleetAuthoringContractEdition;
|
|
2710
|
-
definition: MonitorFleetDefinition;
|
|
2711
|
-
};
|
|
2712
|
-
type MonitorFleetAuthoringContractResult = {
|
|
2713
|
-
valid: boolean;
|
|
2714
|
-
contract?: AdmittedMonitorFleetAuthoringContract;
|
|
2715
|
-
issues: MonitorFleetContractIssue[];
|
|
2716
|
-
};
|
|
2717
|
-
declare function fleetColumn(name: string): MonitorFleetColumn;
|
|
2718
|
-
declare function fleetKey(...parts: Array<string | MonitorFleetColumn>): MonitorFleetTemplate;
|
|
2719
|
-
declare function defineMonitorFleet<const T extends MonitorFleetDefinition>(definition: T): T;
|
|
2720
|
-
declare function validateMonitorFleetDefinition(value: unknown): {
|
|
2721
|
-
valid: boolean;
|
|
2722
|
-
definition?: MonitorFleetDefinition;
|
|
2723
|
-
issues: MonitorFleetContractIssue[];
|
|
2724
|
-
};
|
|
2725
|
-
/**
|
|
2726
|
-
* Compile JSON into the exact authoring snapshot persisted by a Fleet. This
|
|
2727
|
-
* does not inspect the Customer DB or provider; use
|
|
2728
|
-
* `fleets sync --file <fleet.json> --dry-run` for that environment-aware
|
|
2729
|
-
* preflight, which returns the real plan and the credits due.
|
|
2730
|
-
*/
|
|
2731
|
-
declare function admitMonitorFleetAuthoringContract(value: unknown, edition?: number): MonitorFleetAuthoringContractResult;
|
|
2732
|
-
|
|
2733
2633
|
interface PlayStagedFileRef {
|
|
2734
2634
|
storageKind: 'r2';
|
|
2735
2635
|
storageKey: string;
|
|
@@ -2931,6 +2831,32 @@ type RunsListOptions = {
|
|
|
2931
2831
|
/** Zero-based page offset. Requires `play` because status-only inventory is not paginated. */
|
|
2932
2832
|
offset?: number;
|
|
2933
2833
|
};
|
|
2834
|
+
/** One server page; legacy runs.list continues to return an array. */
|
|
2835
|
+
type RunsListPage = {
|
|
2836
|
+
runs: PlayRunListItem[];
|
|
2837
|
+
total?: number;
|
|
2838
|
+
offset?: number;
|
|
2839
|
+
limit?: number;
|
|
2840
|
+
hasMore?: boolean;
|
|
2841
|
+
};
|
|
2842
|
+
type PlaysListOptions = {
|
|
2843
|
+
origin?: 'prebuilt' | 'owned';
|
|
2844
|
+
grep?: string;
|
|
2845
|
+
/**
|
|
2846
|
+
* @deprecated Grep is always evaluated by the Convex full-text index.
|
|
2847
|
+
* This retained option is ignored for source compatibility.
|
|
2848
|
+
*/
|
|
2849
|
+
grepMode?: 'all' | 'any' | 'phrase';
|
|
2850
|
+
categories?: string | string[];
|
|
2851
|
+
includeToolCategories?: boolean;
|
|
2852
|
+
includeArchived?: boolean;
|
|
2853
|
+
includeCostEstimates?: boolean;
|
|
2854
|
+
};
|
|
2855
|
+
type PlaysListPage = {
|
|
2856
|
+
plays: PlayListItem[];
|
|
2857
|
+
cursor: string | null;
|
|
2858
|
+
hasMore: boolean;
|
|
2859
|
+
};
|
|
2934
2860
|
/** Options for `client.runs.get(...)`. */
|
|
2935
2861
|
type RunsGetOptions = {
|
|
2936
2862
|
/** Return the raw status payload instead of the compact package. */
|
|
@@ -3033,6 +2959,7 @@ type PlaySecretMetadata = {
|
|
|
3033
2959
|
scope: 'org' | 'play';
|
|
3034
2960
|
playName?: string;
|
|
3035
2961
|
name: string;
|
|
2962
|
+
note?: string;
|
|
3036
2963
|
status: string;
|
|
3037
2964
|
hasValue: boolean;
|
|
3038
2965
|
createdAt: number;
|
|
@@ -3047,11 +2974,8 @@ type PlaySecretCheck = {
|
|
|
3047
2974
|
secret: PlaySecretMetadata | null;
|
|
3048
2975
|
};
|
|
3049
2976
|
/**
|
|
3050
|
-
*
|
|
3051
|
-
*
|
|
3052
|
-
* This namespace mirrors the canonical `/api/v2/runs` resource family and is
|
|
3053
|
-
* the preferred low-level surface for polling, streaming, stopping, reading
|
|
3054
|
-
* logs, and exporting durable dataset rows.
|
|
2977
|
+
* `client.runs` mirrors `/api/v2/runs`: the preferred low-level surface for
|
|
2978
|
+
* polling, streaming, stopping, reading logs, and exporting durable dataset rows.
|
|
3055
2979
|
*
|
|
3056
2980
|
* @sdkReference client 020 client.runs
|
|
3057
2981
|
*/
|
|
@@ -3079,6 +3003,8 @@ type RunsNamespace = {
|
|
|
3079
3003
|
}>;
|
|
3080
3004
|
/** List runs for one play, optionally filtered by status. */
|
|
3081
3005
|
list: (options: RunsListOptions) => Promise<PlayRunListItem[]>;
|
|
3006
|
+
/** Read one run page with total, offset, limit and completeness metadata. */
|
|
3007
|
+
listPage: (options: RunsListOptions) => Promise<RunsListPage>;
|
|
3082
3008
|
/** Stream run events and return the latest/terminal run status. */
|
|
3083
3009
|
tail: (runId: string, options?: RunsTailOptions) => Promise<PlayStatus>;
|
|
3084
3010
|
/** Fetch persisted log lines for a run. */
|
|
@@ -3350,7 +3276,7 @@ type MonitorBatchOperationResult = {
|
|
|
3350
3276
|
rejoined?: boolean;
|
|
3351
3277
|
operation: {
|
|
3352
3278
|
runId: string;
|
|
3353
|
-
kind: 'audit' | 'deactivate' | 'reactivate' | 'deploy' | 'repair';
|
|
3279
|
+
kind: 'audit' | 'converge' | 'deactivate' | 'reactivate' | 'deploy' | 'repair';
|
|
3354
3280
|
state: 'running' | 'retry_scheduled' | 'completed' | 'failed';
|
|
3355
3281
|
dryRun: boolean;
|
|
3356
3282
|
scope: unknown;
|
|
@@ -3432,6 +3358,11 @@ type MonitorsHealth = {
|
|
|
3432
3358
|
};
|
|
3433
3359
|
converged: number;
|
|
3434
3360
|
needs_repair: number;
|
|
3361
|
+
/**
|
|
3362
|
+
* Unknown records without an upstream resource id. Use the exact inventory
|
|
3363
|
+
* reconciler to align them; ordinary repair never guesses an identity.
|
|
3364
|
+
*/
|
|
3365
|
+
alignment_required: number;
|
|
3435
3366
|
/** Observed active, but nothing delivered inside `silent_window_days`. */
|
|
3436
3367
|
silent: number;
|
|
3437
3368
|
silent_window_days: number;
|
|
@@ -3451,12 +3382,21 @@ type MonitorsHealth = {
|
|
|
3451
3382
|
/** Bounded current durable monitor work, if the server supports it. */
|
|
3452
3383
|
batch_operations?: Array<{
|
|
3453
3384
|
run_id: string;
|
|
3454
|
-
kind: 'audit' | 'deactivate' | 'reactivate' | 'repair' | 'deploy';
|
|
3385
|
+
kind: 'audit' | 'converge' | 'deactivate' | 'reactivate' | 'repair' | 'deploy';
|
|
3455
3386
|
state: 'running' | 'retry_scheduled';
|
|
3456
3387
|
updated_at: number;
|
|
3457
3388
|
next_attempt_at?: number;
|
|
3458
3389
|
summary?: Record<string, unknown>;
|
|
3459
3390
|
}>;
|
|
3391
|
+
/** Bounded sample explaining why normal audit did not settle the row. */
|
|
3392
|
+
unaudited_monitors: Array<{
|
|
3393
|
+
monitor_key: string;
|
|
3394
|
+
tool: string;
|
|
3395
|
+
observed: 'unknown' | null;
|
|
3396
|
+
observed_at: number | null;
|
|
3397
|
+
provider_resource_id: string | null;
|
|
3398
|
+
reason: 'not_yet_audited' | 'missing_provider_resource_id' | 'provider_observation_unknown';
|
|
3399
|
+
}>;
|
|
3460
3400
|
};
|
|
3461
3401
|
/** One bounded audit pass, from `POST /api/v2/monitors/audit`. */
|
|
3462
3402
|
type MonitorsAuditResult = {
|
|
@@ -3592,6 +3532,8 @@ type MonitorsNamespace = {
|
|
|
3592
3532
|
};
|
|
3593
3533
|
/** One credit grant pool reported by the billing subscription status endpoint. */
|
|
3594
3534
|
type BillingCreditPool = {
|
|
3535
|
+
/** Stable grant identity; optional when talking to an older server. */
|
|
3536
|
+
grant_id?: string;
|
|
3595
3537
|
pool: string;
|
|
3596
3538
|
credits_remaining: number;
|
|
3597
3539
|
credits_granted: number;
|
|
@@ -3670,12 +3612,13 @@ type TargetBillingOperation = {
|
|
|
3670
3612
|
next_action?: string | null;
|
|
3671
3613
|
};
|
|
3672
3614
|
type TargetBillingPlan = {
|
|
3673
|
-
sku: 'payg-v1' | 'builder-v1' | 'team-v1';
|
|
3615
|
+
sku: 'payg-v1' | 'builder-v1' | 'growth-v1' | 'growth-canary-v1' | 'team-v1';
|
|
3674
3616
|
name: string;
|
|
3675
3617
|
recurring_price_usd: number;
|
|
3676
|
-
interval: 'month';
|
|
3618
|
+
interval: 'month' | 'year';
|
|
3677
3619
|
included_credits: number;
|
|
3678
3620
|
purchased_credit_price_usd: number;
|
|
3621
|
+
acquisition_enabled: boolean;
|
|
3679
3622
|
};
|
|
3680
3623
|
type TargetBillingPlansResult = {
|
|
3681
3624
|
org_id: string;
|
|
@@ -3683,6 +3626,7 @@ type TargetBillingPlansResult = {
|
|
|
3683
3626
|
current_plan_sku: string;
|
|
3684
3627
|
pending_plan_sku: string | null;
|
|
3685
3628
|
acquisition_enabled: boolean;
|
|
3629
|
+
enabled_offer_keys: TargetBillingPlan['sku'][];
|
|
3686
3630
|
};
|
|
3687
3631
|
type TargetBillingStatusResult = {
|
|
3688
3632
|
org_id: string;
|
|
@@ -3710,6 +3654,8 @@ type TargetAutoRechargeResult = {
|
|
|
3710
3654
|
threshold_credits: number | null;
|
|
3711
3655
|
refill_to_credits: number | null;
|
|
3712
3656
|
rolling_limit_cents: null;
|
|
3657
|
+
purchase_limit_cents?: number | null;
|
|
3658
|
+
rolling_committed_cents?: number;
|
|
3713
3659
|
};
|
|
3714
3660
|
type TargetAutoRechargeUpdateOptions = {
|
|
3715
3661
|
enabled: false;
|
|
@@ -3718,6 +3664,8 @@ type TargetAutoRechargeUpdateOptions = {
|
|
|
3718
3664
|
enabled: true;
|
|
3719
3665
|
thresholdCredits: number;
|
|
3720
3666
|
refillToCredits: number;
|
|
3667
|
+
/** Maximum automatic purchases in a rolling 30-day window, in USD cents. */
|
|
3668
|
+
purchaseLimitCents?: number | null;
|
|
3721
3669
|
idempotencyKey: string;
|
|
3722
3670
|
};
|
|
3723
3671
|
type TargetBillingMutationResult = {
|
|
@@ -3829,10 +3777,8 @@ type WorkspacesNamespace = {
|
|
|
3829
3777
|
}) => Promise<WorkspaceCreateResult>;
|
|
3830
3778
|
};
|
|
3831
3779
|
/**
|
|
3832
|
-
* Public billing namespace
|
|
3833
|
-
*
|
|
3834
|
-
* Carries plans, subscription state, cancellation, and invoice/receipt history
|
|
3835
|
-
* so CLI commands and programmatic callers share one surface.
|
|
3780
|
+
* Public `client.billing` namespace for CLI commands and programmatic callers.
|
|
3781
|
+
* Covers plans, subscription state, cancellation, and invoice/receipt history.
|
|
3836
3782
|
*
|
|
3837
3783
|
* @sdkReference client 030 client.billing
|
|
3838
3784
|
*/
|
|
@@ -3868,6 +3814,14 @@ type BillingNamespace = {
|
|
|
3868
3814
|
/** Read and manage the Metronome-backed automatic recharge configuration. */
|
|
3869
3815
|
autoRecharge: {
|
|
3870
3816
|
get: () => Promise<TargetAutoRechargeResult>;
|
|
3817
|
+
trigger: (options?: {
|
|
3818
|
+
idempotencyKey: string;
|
|
3819
|
+
}) => Promise<{
|
|
3820
|
+
data: {
|
|
3821
|
+
status: string;
|
|
3822
|
+
operation_id?: string;
|
|
3823
|
+
};
|
|
3824
|
+
}>;
|
|
3871
3825
|
update: (options: TargetAutoRechargeUpdateOptions) => Promise<TargetAutoRechargeResult>;
|
|
3872
3826
|
};
|
|
3873
3827
|
/** Buy Deepline credits through a payment-gated Metronome commit. */
|
|
@@ -3875,6 +3829,12 @@ type BillingNamespace = {
|
|
|
3875
3829
|
credits: number;
|
|
3876
3830
|
idempotencyKey: string;
|
|
3877
3831
|
}) => Promise<TargetBillingMutationResult>;
|
|
3832
|
+
/** Inspect or retire the original purchase intent without starting a payment. */
|
|
3833
|
+
recoverCreditPurchase: (options: {
|
|
3834
|
+
credits: number;
|
|
3835
|
+
orgId: string;
|
|
3836
|
+
idempotencyKey: string;
|
|
3837
|
+
}) => Promise<TargetBillingMutationResult>;
|
|
3878
3838
|
/** Start, change, cancel, or undo a target plan transition. */
|
|
3879
3839
|
transitionPlan: (options: TargetBillingPlanTransitionOptions) => Promise<TargetBillingMutationResult>;
|
|
3880
3840
|
/** Create a Stripe-hosted billing Portal session. */
|
|
@@ -3965,6 +3925,8 @@ declare class DeeplineClient {
|
|
|
3965
3925
|
inspectSecret(name: string, options?: {
|
|
3966
3926
|
playName?: string;
|
|
3967
3927
|
}): Promise<PlaySecretCheck>;
|
|
3928
|
+
/** Add, replace, or clear the non-sensitive note attached to one secret. */
|
|
3929
|
+
updateSecretNote(secretId: string, note: string): Promise<PlaySecretMetadata>;
|
|
3968
3930
|
/**
|
|
3969
3931
|
* List all available tools.
|
|
3970
3932
|
*
|
|
@@ -4499,6 +4461,8 @@ declare class DeeplineClient {
|
|
|
4499
4461
|
* ```
|
|
4500
4462
|
*/
|
|
4501
4463
|
listRuns(options: RunsListOptions): Promise<PlayRunListItem[]>;
|
|
4464
|
+
/** Read one run page without discarding server pagination metadata. */
|
|
4465
|
+
listRunsPage(options: RunsListOptions): Promise<RunsListPage>;
|
|
4502
4466
|
/**
|
|
4503
4467
|
* Observe one run's live events. Uses the Convex Run Snapshot subscription
|
|
4504
4468
|
* transport first (ADR-0008), then falls back to the canonical SSE stream
|
|
@@ -4603,19 +4567,19 @@ declare class DeeplineClient {
|
|
|
4603
4567
|
reason?: string;
|
|
4604
4568
|
}): Promise<StopAllPlayRunsResult>;
|
|
4605
4569
|
/**
|
|
4606
|
-
* List callable plays
|
|
4570
|
+
* List one page of callable plays; grep retains exhaustive matching results.
|
|
4571
|
+
* Use listPlaysPage to retain pagination metadata.
|
|
4607
4572
|
*
|
|
4608
4573
|
* Pass `origin: "prebuilt"` for Deepline-managed prebuilts or
|
|
4609
4574
|
* `origin: "owned"` for org-owned plays.
|
|
4610
4575
|
*/
|
|
4611
|
-
listPlays(options?:
|
|
4612
|
-
|
|
4613
|
-
|
|
4614
|
-
|
|
4615
|
-
|
|
4616
|
-
|
|
4617
|
-
|
|
4618
|
-
}): Promise<PlayListItem[]>;
|
|
4576
|
+
listPlays(options?: PlaysListOptions): Promise<PlayListItem[]>;
|
|
4577
|
+
/** Read one bounded inventory page; cursor continues the same filters. */
|
|
4578
|
+
listPlaysPage(options?: PlaysListOptions & {
|
|
4579
|
+
limit?: number;
|
|
4580
|
+
cursor?: string | null;
|
|
4581
|
+
}): Promise<PlaysListPage>;
|
|
4582
|
+
private requestPlaysPage;
|
|
4619
4583
|
/** Set whether an org-owned Play sorts before unpinned Plays. */
|
|
4620
4584
|
setPlayPinned(playName: string, pinned: boolean): Promise<{
|
|
4621
4585
|
name: string;
|
|
@@ -4941,6 +4905,12 @@ declare class DeeplineClient {
|
|
|
4941
4905
|
credits: number;
|
|
4942
4906
|
idempotencyKey: string;
|
|
4943
4907
|
}): Promise<TargetBillingMutationResult>;
|
|
4908
|
+
/** Recover only the original workspace, credit amount, and purchase key; never charge. */
|
|
4909
|
+
recoverTargetBillingCreditPurchase(options: {
|
|
4910
|
+
credits: number;
|
|
4911
|
+
orgId: string;
|
|
4912
|
+
idempotencyKey: string;
|
|
4913
|
+
}): Promise<TargetBillingMutationResult>;
|
|
4944
4914
|
/**
|
|
4945
4915
|
* Start, change, cancel, or restore a target plan through one idempotent
|
|
4946
4916
|
* commercial operation.
|
|
@@ -6061,4 +6031,4 @@ declare function writeCsvOutputFile(rows: Array<Record<string, unknown>>, stem:
|
|
|
6061
6031
|
*/
|
|
6062
6032
|
declare function extractSummaryFields(payload: unknown): Record<string, Scalar>;
|
|
6063
6033
|
|
|
6064
|
-
export { type
|
|
6034
|
+
export { type AsyncPlayRunRef, AuthError, type BillingCreditPool, type BillingInvoiceEntry, type BillingInvoicesResult, type BillingNamespace, type BillingPaymentMethodSummary, type BillingSubscriptionCancelResult, type BillingSubscriptionStatus, type BillingTopUpResult, type ClearPlayHistoryRequest, type ClearPlayHistoryResult, type ColumnMap, type ColumnResolver, type ConditionalStepResolver, ConfigError, type CreateNotificationGroupInput, type CreateNotificationGroupResult, type CsvInput, type CsvOptions, type CustomerDbQueryResult, DEEPLINE_TOOL_CATEGORIES, type DatasetBuilder, type DatasetColumnDefinition, type DatasetColumnRunInput, type DbNamespace, Deepline, DeeplineClient, type DeeplineClientOptions, DeeplineContext, DeeplineError, type DeeplineNamedPlay, type DeeplinePlayRuntimeContext, type DeeplinePlaysNamespace, type DeeplineToolCategory, type DeeplineToolsNamespace, type DefinePlayConfig, type DefinedPlay, type FetchOptions, type FileInput, type IngestionStorageRepairResult, type LiveEventEnvelope, type MonitorCheckResult, type MonitorControls, type MonitorDefinition, type MonitorDeleteResult, type MonitorDependents, type MonitorDeployResult, type MonitorDetail, type MonitorFleetDeactivateOptions, MonitorFleetDefinition, type MonitorFleetGetOptions, type MonitorFleetReactivateOptions, type MonitorFleetResult, type MonitorFleetStatus, type MonitorFleetSyncOptions, type MonitorFleetWaitOptions, type MonitorFleetsNamespace, type MonitorListEntry, type MonitorPayload, type MonitorReactivateResult, type MonitorSpec, type MonitorUpdateChangeSummary, type MonitorUpdateResult, type MonitorsAccessStatus, type MonitorsAvailableOptions, type MonitorsAvailableResult, type MonitorsListOptions, type MonitorsListResult, type MonitorsNamespace, PLAY_BOOTSTRAP_COMPANY_FIELDS, PLAY_BOOTSTRAP_COMPANY_PROVIDER_CATEGORY, PLAY_BOOTSTRAP_CONTACT_FIELDS, PLAY_BOOTSTRAP_FINDER_KINDS, PLAY_BOOTSTRAP_OUTPUT_FIELD_BY_FINDER, PLAY_BOOTSTRAP_PEOPLE_PROVIDER_CATEGORY, PLAY_BOOTSTRAP_PROVIDER_CATEGORY_BY_FINDER, PLAY_BOOTSTRAP_SOURCE_KINDS, PLAY_BOOTSTRAP_STAGE_KINDS, PLAY_BOOTSTRAP_TEMPLATES, PROD_URL, type PlayActivityObservation, type PlayActivityState, type PlayActivityTarget, type PlayAsyncCallOptions, type PlayBindings, type PlayBootstrapEntityKind, type PlayBootstrapFinderKind, type PlayCallExecution, type PlayCallOptions, type PlayCostEstimate, type PlayFetchResponse, type PlayInputContract, type PlayJob, type PlayListItem, type PlayLiveEvent, type PlayReferenceLike, type PlayRevisionSummary, type PlayRunActionPackage, type PlayRunActivityProjection, type PlayRunDatasetActions, type PlayRunId, type PlayRunPackage, type PlayRunResult, type PlayRunStart, type PlaySheetRow, type PlaySheetRowsResult, type PlayStatus, type PlayStepProgramStep, type PlaysListOptions, type PlaysListPage, type PrebuiltPlayRef, type PublishPlayVersionRequest, type PublishPlayVersionResult, RateLimitError, type ResolvedConfig, RunObserveTransportUnavailableError, type RunsListOptions, type RunsListPage, type RunsLogsOptions, type RunsLogsResult, type RunsNamespace, type RunsTailOptions, type RuntimeStepOptions, SDK_API_CONTRACT, SDK_VERSION, type SqlListenerDeclaration, type SqlListenerEvent, type SqlListenerOperation, type SqlQuery, type StartPlayRunRequest, type StepOptions, type StepProgram, type StepProgramResolver, type StepResolver, type StopPlayRunResult, type ToolDefinition, ToolExecuteResult, type ToolExecution, ToolExecutionError, ToolExecutionErrorOptions, type ToolExecutionRequest, type ToolMetadata, ToolRateLimitError, type ToolSearchOptions, type ToolSearchResult, type WorkspaceCreateResult, type WorkspacesNamespace, defineInput, defineMonitor, definePlay, defineWorkflow, extractSummaryFields, formatPlayBootstrapFinderKinds, formatPlayBootstrapFinderKindsForSentence, formatPlayBootstrapTemplates, getDefinedPlayMetadata, isPlayBootstrapFinderKind, isPlayBootstrapTemplate, resolveConfig, runIf, steps, tryConvertToList, writeCsvOutputFile, writeJsonOutputFile };
|