deepline 0.3.89 → 0.3.90

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.
Files changed (211) hide show
  1. package/contracts/install-commands.json +29 -0
  2. package/dist/bundling-sources/sdk/src/client.ts +120 -37
  3. package/dist/bundling-sources/sdk/src/index.ts +4 -0
  4. package/dist/bundling-sources/sdk/src/pagination.ts +25 -0
  5. package/dist/bundling-sources/sdk/src/plays/bundle-play-file.ts +1 -1
  6. package/dist/bundling-sources/sdk/src/release.ts +16 -9
  7. package/dist/bundling-sources/sdk/src/types.ts +23 -0
  8. package/dist/bundling-sources/shared_libs/monitors/analytics-public.ts +10 -0
  9. package/dist/bundling-sources/shared_libs/monitors/http-error-response.ts +3 -0
  10. package/dist/bundling-sources/shared_libs/monitors/inbound-queue.ts +4 -4
  11. package/dist/bundling-sources/shared_libs/monitors/inventory-reconciliation.ts +59 -0
  12. package/dist/bundling-sources/shared_libs/monitors/lifecycle-notifications.ts +7 -9
  13. package/dist/bundling-sources/shared_libs/monitors/package.json +7 -0
  14. package/dist/bundling-sources/shared_libs/monitors/provider-monitor-batch-operation.ts +44 -2
  15. package/dist/bundling-sources/shared_libs/monitors/provider-monitor-consumer-health.ts +2 -2
  16. package/dist/bundling-sources/shared_libs/monitors/provider-monitor-identity-claims.ts +2 -2
  17. package/dist/bundling-sources/shared_libs/monitors/provider-monitor-public-aliases.ts +1 -1
  18. package/dist/bundling-sources/shared_libs/monitors/signal-radars/inbound-dead-letter.ts +245 -0
  19. package/dist/bundling-sources/shared_libs/monitors/signal-radars/inbound-message.ts +38 -0
  20. package/dist/bundling-sources/shared_libs/monitors/signal-radars/inbound-queue-ack-probe.ts +94 -0
  21. package/dist/bundling-sources/shared_libs/monitors/signal-radars/inbound-queue-delivery.ts +60 -0
  22. package/dist/bundling-sources/shared_libs/monitors/signal-radars/inbound-queue.ts +60 -0
  23. package/dist/bundling-sources/shared_libs/monitors/snitcher-install-validation.ts +1 -1
  24. package/dist/bundling-sources/shared_libs/monitors/snitcher-ip2company.ts +2 -2
  25. package/dist/bundling-sources/shared_libs/monitors/snitcher-radar.ts +1 -1
  26. package/dist/bundling-sources/shared_libs/monitors/tracking-provider-integrations.ts +1 -1
  27. package/dist/bundling-sources/shared_libs/observability/build-context.ts +13 -0
  28. package/dist/bundling-sources/shared_libs/observability/log-metadata.ts +160 -0
  29. package/dist/bundling-sources/shared_libs/observability/request-context.ts +68 -0
  30. package/dist/bundling-sources/shared_libs/observability/scheduled-jobs.json +654 -0
  31. package/dist/bundling-sources/shared_libs/observability/scheduled-work-manual.ts +35 -0
  32. package/dist/bundling-sources/shared_libs/observability/scheduled-work.ts +5 -0
  33. package/dist/bundling-sources/shared_libs/play-data-plane/neon-constants.ts +9 -0
  34. package/dist/bundling-sources/shared_libs/play-data-plane/r2.ts +272 -0
  35. package/dist/bundling-sources/shared_libs/play-runtime/app-runtime-api.ts +45 -0
  36. package/dist/bundling-sources/shared_libs/play-runtime/async-operation.ts +66 -1
  37. package/dist/bundling-sources/shared_libs/play-runtime/async-play-invocation.ts +0 -1
  38. package/dist/bundling-sources/shared_libs/play-runtime/bounceban-batching.ts +137 -0
  39. package/dist/bundling-sources/shared_libs/play-runtime/context.ts +779 -140
  40. package/dist/bundling-sources/shared_libs/play-runtime/ctx-types.ts +46 -0
  41. package/dist/bundling-sources/shared_libs/play-runtime/daytona-payload-contract.ts +68 -0
  42. package/dist/bundling-sources/shared_libs/play-runtime/daytona-sandbox-janitor.ts +103 -0
  43. package/dist/bundling-sources/shared_libs/play-runtime/daytona-sandbox-reaper.ts +725 -0
  44. package/dist/bundling-sources/shared_libs/play-runtime/durable-call-cache.ts +29 -0
  45. package/dist/bundling-sources/shared_libs/play-runtime/execution-capabilities.ts +23 -0
  46. package/dist/bundling-sources/shared_libs/play-runtime/execution-gateway-invocation-fence.ts +442 -0
  47. package/dist/bundling-sources/shared_libs/play-runtime/execution-protocol.ts +3 -3
  48. package/dist/bundling-sources/shared_libs/play-runtime/fixture-behavior.ts +18 -0
  49. package/dist/bundling-sources/shared_libs/play-runtime/governor/app-runtime-rate-state-backend.ts +9 -0
  50. package/dist/bundling-sources/shared_libs/play-runtime/governor/policy.ts +1 -1
  51. package/dist/bundling-sources/shared_libs/play-runtime/governor/rate-state-backend.ts +1 -1
  52. package/dist/bundling-sources/shared_libs/play-runtime/integration-operation-reader-fence/contracts.ts +66 -0
  53. package/dist/bundling-sources/shared_libs/play-runtime/integration-operation-reader-fence/job.ts +145 -0
  54. package/dist/bundling-sources/shared_libs/play-runtime/integration-operation-reader-fence/ports.ts +21 -0
  55. package/dist/bundling-sources/shared_libs/play-runtime/integration-operation-reader-fence/postgres-store.ts +170 -0
  56. package/dist/bundling-sources/shared_libs/play-runtime/internal-bootstrap-token.ts +1322 -0
  57. package/dist/bundling-sources/shared_libs/play-runtime/internal-step-ids.ts +2 -2
  58. package/dist/bundling-sources/shared_libs/play-runtime/lane-retirement-gate.ts +1 -1
  59. package/dist/bundling-sources/shared_libs/play-runtime/launch-source-policy.ts +112 -0
  60. package/dist/bundling-sources/shared_libs/play-runtime/map-execution-frame.ts +8 -0
  61. package/dist/bundling-sources/shared_libs/play-runtime/perf-trace.ts +127 -0
  62. package/dist/bundling-sources/shared_libs/play-runtime/play-artifact-runtime-contract.ts +5 -0
  63. package/dist/bundling-sources/shared_libs/play-runtime/play-run-recovery-policy.ts +24 -1
  64. package/dist/bundling-sources/shared_libs/play-runtime/play-runs/admission/contracts.ts +56 -0
  65. package/dist/bundling-sources/shared_libs/play-runtime/play-runs/admission/index.ts +13 -0
  66. package/dist/bundling-sources/shared_libs/play-runtime/play-runs/admission/job.ts +41 -0
  67. package/dist/bundling-sources/shared_libs/play-runtime/play-runs/admission/ports.ts +17 -0
  68. package/dist/bundling-sources/shared_libs/play-runtime/play-runs/admission/postgres-adapter.ts +54 -0
  69. package/dist/bundling-sources/shared_libs/play-runtime/play-runs/attempts/contracts.ts +114 -0
  70. package/dist/bundling-sources/shared_libs/play-runtime/play-runs/attempts/engine-suspension.ts +108 -0
  71. package/dist/bundling-sources/shared_libs/play-runtime/play-runs/attempts/index.ts +36 -0
  72. package/dist/bundling-sources/shared_libs/play-runtime/play-runs/attempts/job.ts +97 -0
  73. package/dist/bundling-sources/shared_libs/play-runtime/play-runs/attempts/ports.ts +104 -0
  74. package/dist/bundling-sources/shared_libs/play-runtime/play-runs/attempts/postgres-fence-adapter.ts +263 -0
  75. package/dist/bundling-sources/shared_libs/play-runtime/play-runs/attempts/worker-terminal-projection.ts +64 -0
  76. package/dist/bundling-sources/shared_libs/play-runtime/play-runs/projection/contracts.ts +29 -0
  77. package/dist/bundling-sources/shared_libs/play-runtime/play-runs/projection/gateway-adapter.ts +56 -0
  78. package/dist/bundling-sources/shared_libs/play-runtime/play-runs/projection/index.ts +15 -0
  79. package/dist/bundling-sources/shared_libs/play-runtime/play-runs/projection/job.ts +65 -0
  80. package/dist/bundling-sources/shared_libs/play-runtime/play-runs/projection/ports.ts +17 -0
  81. package/dist/bundling-sources/shared_libs/play-runtime/play-runs/sandbox-cleanup/contracts.ts +42 -0
  82. package/dist/bundling-sources/shared_libs/play-runtime/play-runs/sandbox-cleanup/index.ts +17 -0
  83. package/dist/bundling-sources/shared_libs/play-runtime/play-runs/sandbox-cleanup/job.ts +142 -0
  84. package/dist/bundling-sources/shared_libs/play-runtime/play-runs/sandbox-cleanup/ports.ts +42 -0
  85. package/dist/bundling-sources/shared_libs/play-runtime/play-runs/sandbox-cleanup/postgres-adapter.ts +102 -0
  86. package/dist/bundling-sources/shared_libs/play-runtime/play-runs/terminal/contracts.ts +60 -0
  87. package/dist/bundling-sources/shared_libs/play-runtime/play-runs/terminal/index.ts +16 -0
  88. package/dist/bundling-sources/shared_libs/play-runtime/play-runs/terminal/job.ts +78 -0
  89. package/dist/bundling-sources/shared_libs/play-runtime/play-runs/terminal/ports.ts +54 -0
  90. package/dist/bundling-sources/shared_libs/play-runtime/play-runs/terminal/postgres-adapter.ts +71 -0
  91. package/dist/bundling-sources/shared_libs/play-runtime/play-runtime-batching-registry.ts +4 -0
  92. package/dist/bundling-sources/shared_libs/play-runtime/protocol.ts +2 -0
  93. package/dist/bundling-sources/shared_libs/play-runtime/receipt-status.ts +5 -8
  94. package/dist/bundling-sources/shared_libs/play-runtime/run-failure.ts +3 -5
  95. package/dist/bundling-sources/shared_libs/play-runtime/run-identity.ts +168 -0
  96. package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/backends/daytona-lifecycle.ts +72 -9
  97. package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/backends/daytona-payload-transport.ts +6 -12
  98. package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/backends/daytona.ts +19 -0
  99. package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/bundle.ts +0 -1
  100. package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/runtime-sandbox-reconciliation.ts +14 -44
  101. package/dist/bundling-sources/shared_libs/play-runtime/runtime-api.ts +57 -205
  102. package/dist/bundling-sources/shared_libs/play-runtime/runtime-authority.ts +201 -0
  103. package/dist/bundling-sources/shared_libs/play-runtime/runtime-env.ts +6 -0
  104. package/dist/bundling-sources/shared_libs/play-runtime/runtime-operation-contract.ts +67 -0
  105. package/dist/bundling-sources/shared_libs/play-runtime/runtime-release-environment.ts +2 -0
  106. package/dist/bundling-sources/shared_libs/play-runtime/runtime-sandbox-contract.ts +68 -0
  107. package/dist/bundling-sources/shared_libs/play-runtime/runtime-scheduler-topology.ts +14 -2
  108. package/dist/bundling-sources/shared_libs/play-runtime/runtime-telemetry.ts +108 -0
  109. package/dist/bundling-sources/shared_libs/play-runtime/sandbox-runs/contract.ts +4 -0
  110. package/dist/bundling-sources/shared_libs/play-runtime/sandbox-runs/runner-backend-adapter.ts +3 -0
  111. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backend.ts +7 -0
  112. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/absurd-deadline-reconciliation.ts +88 -0
  113. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/absurd-play-deploy-task.ts +124 -0
  114. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/absurd-play-run-task.ts +68 -0
  115. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/absurd-pool.ts +193 -0
  116. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/absurd-queue-lifecycle.ts +269 -0
  117. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/absurd-queue-suffix.ts +73 -0
  118. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/absurd-runtime-worker.ts +6642 -0
  119. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/absurd-shared.ts +897 -0
  120. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/absurd-worker-metrics.ts +120 -0
  121. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/absurd-worker-required-env.ts +76 -0
  122. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/absurd.ts +476 -0
  123. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/gateway-heavy-request-admission.ts +47 -0
  124. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/gateway-progress-registry.ts +147 -0
  125. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/index.ts +27 -0
  126. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/lazy.ts +50 -0
  127. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/play-run-recovery.ts +98 -0
  128. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/postgres-budget-state.ts +260 -0
  129. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/postgres-pool.ts +1416 -0
  130. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/postgres-progress.ts +1255 -0
  131. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/postgres-rate-state.ts +942 -0
  132. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/postgres.ts +14636 -0
  133. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/receipt-gateway.ts +888 -0
  134. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/run-ledger-outbox-recovery.ts +355 -0
  135. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/run-terminal-transition.ts +46 -0
  136. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/runner-push.ts +60 -0
  137. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/runtime-api-origin.ts +33 -0
  138. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/runtime-receipt-gateway-health.ts +64 -0
  139. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/runtime-sandbox-capacity.ts +835 -0
  140. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/runtime-sandbox-ledger-reconciliation.ts +1218 -0
  141. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/runtime-sandbox-operation.ts +207 -0
  142. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/runtime-scheduler-schema.ts +10 -0
  143. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/scheduler-capacity.ts +123 -0
  144. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/scheduler-launch-read-observability.ts +78 -0
  145. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/submit-admission.ts +169 -0
  146. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/terminal-contract.ts +20 -0
  147. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/worker-queue-metrics.ts +34 -0
  148. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/worker-resource-metrics.ts +249 -0
  149. package/dist/bundling-sources/shared_libs/play-runtime/sheet-attempt-sql.ts +7 -0
  150. package/dist/bundling-sources/shared_libs/play-runtime/step-progress.ts +296 -0
  151. package/dist/bundling-sources/shared_libs/play-runtime/tool-call/native-batch.ts +3 -3
  152. package/dist/bundling-sources/shared_libs/play-runtime/tool-call/runtime-step-receipts-adapter.ts +20 -1
  153. package/dist/bundling-sources/shared_libs/play-runtime/tool-execute-retry-policy.ts +60 -15
  154. package/dist/bundling-sources/shared_libs/play-runtime/tool-execution-outcome.ts +20 -0
  155. package/dist/bundling-sources/shared_libs/play-runtime/transient-service-error.ts +12 -0
  156. package/dist/bundling-sources/shared_libs/play-runtime/vercel-protection.ts +14 -1
  157. package/dist/bundling-sources/shared_libs/play-runtime/work-receipt-storage-contract.ts +165 -0
  158. package/dist/bundling-sources/shared_libs/play-runtime/work-receipts.ts +15 -23
  159. package/dist/bundling-sources/shared_libs/play-runtime/workflow-executor-auth.ts +169 -0
  160. package/dist/bundling-sources/shared_libs/play-runtime/zerobounce-batching.ts +122 -0
  161. package/dist/bundling-sources/shared_libs/plays/artifact-types.ts +2 -0
  162. package/dist/bundling-sources/shared_libs/plays/contracts.ts +2 -0
  163. package/dist/bundling-sources/shared_libs/plays/deployment-status.ts +1 -1
  164. package/dist/bundling-sources/shared_libs/plays/docflow.ts +1 -1
  165. package/dist/bundling-sources/shared_libs/plays/play-grep-search.ts +39 -0
  166. package/dist/bundling-sources/shared_libs/plays/share/copy.ts +271 -0
  167. package/dist/bundling-sources/shared_libs/plays/share/metrics.ts +140 -0
  168. package/dist/bundling-sources/shared_libs/plays/share/public-read-model.ts +86 -0
  169. package/dist/bundling-sources/shared_libs/plays/share/seo-quality.ts +181 -0
  170. package/dist/bundling-sources/shared_libs/plays/share/static-pipeline-summary.ts +658 -0
  171. package/dist/bundling-sources/shared_libs/plays/share/types.ts +197 -0
  172. package/dist/bundling-sources/shared_libs/plays/slack-hitl-timeout-error.ts +37 -0
  173. package/dist/bundling-sources/shared_libs/plays/static-pipeline.ts +6 -1
  174. package/dist/bundling-sources/shared_libs/plays/tool-result-types.ts +1 -1
  175. package/dist/bundling-sources/shared_libs/product-notifications/configuration.ts +7 -1
  176. package/dist/bundling-sources/shared_libs/product-notifications/default-policy.ts +3 -2
  177. package/dist/bundling-sources/shared_libs/product-notifications/overflow.ts +18 -0
  178. package/dist/bundling-sources/shared_libs/product-notifications/rolling-limit.ts +24 -0
  179. package/dist/bundling-sources/shared_libs/product-notifications/slack-delivery.ts +624 -0
  180. package/dist/bundling-sources/shared_libs/product-notifications/slack-payload.ts +140 -0
  181. package/dist/bundling-sources/shared_libs/product-notifications/slack-transport.ts +75 -0
  182. package/dist/bundling-sources/shared_libs/runtime-env.ts +6 -0
  183. package/dist/bundling-sources/shared_libs/security/email-blacklist.ts +42 -0
  184. package/dist/bundling-sources/shared_libs/security/header-safe-env.ts +10 -3
  185. package/dist/bundling-sources/shared_libs/security/slack-sanitize.ts +133 -0
  186. package/dist/cli/getting-started.d.mts +52 -0
  187. package/dist/cli/getting-started.d.ts +52 -0
  188. package/dist/cli/getting-started.js +65 -0
  189. package/dist/cli/getting-started.mjs +36 -0
  190. package/dist/cli/index.d.mts +9 -0
  191. package/dist/cli/index.d.ts +9 -0
  192. package/dist/cli/index.js +545 -264
  193. package/dist/cli/index.mjs +543 -271
  194. package/dist/{compiler-manifest-DsLbQaew.d.mts → compiler-manifest-BaJfE-5H.d.mts} +5 -3
  195. package/dist/{compiler-manifest-DsLbQaew.d.ts → compiler-manifest-BaJfE-5H.d.ts} +5 -3
  196. package/dist/index.d.mts +81 -148
  197. package/dist/index.d.ts +81 -148
  198. package/dist/index.js +83 -26
  199. package/dist/index.mjs +83 -26
  200. package/dist/install-integrity.json +130 -2
  201. package/dist/monitor-fleet-contract.d.mts +138 -0
  202. package/dist/monitor-fleet-contract.d.ts +138 -0
  203. package/dist/monitor-fleet-contract.js +404 -0
  204. package/dist/monitor-fleet-contract.mjs +367 -0
  205. package/dist/plays/bundle-play-file.d.mts +2 -2
  206. package/dist/plays/bundle-play-file.d.ts +2 -2
  207. package/dist/release.d.mts +255 -0
  208. package/dist/release.d.ts +255 -0
  209. package/dist/release.js +215 -0
  210. package/dist/release.mjs +188 -0
  211. package/package.json +21 -4
@@ -615,7 +615,7 @@ type PlayDatasetMaterializeOptions = {
615
615
  type ToolResultExecutionMetadata = {
616
616
  idempotent: true;
617
617
  cached: boolean;
618
- source: 'live' | 'checkpoint' | 'cache' | 'in_flight';
618
+ source: 'live' | 'checkpoint' | 'cache' | 'in_flight' | 'source_run';
619
619
  cacheKey?: string;
620
620
  receiptRole?: 'owner' | 'follower';
621
621
  receiptKey?: string;
@@ -2768,6 +2768,8 @@ type PlayArtifactCompatibility = {
2768
2768
  toolResponseContract?: ToolResponseContract;
2769
2769
  /** Missing preserves the receipt namespace of artifacts created before this revision existed. */
2770
2770
  toolResponseReceiptRevision?: string;
2771
+ /** Missing preserves Slack HITL's historical parked timeout behavior. */
2772
+ slackHitlTimeoutOutcome?: 'error';
2771
2773
  };
2772
2774
  /** The only executable Play artifact contract. */
2773
2775
  declare const PLAY_ARTIFACT_KINDS: {
@@ -2830,7 +2832,7 @@ type PlayDocflowEdge = {
2830
2832
  *
2831
2833
  * ABSENT — never `null` — when unrecorded, and that is load-bearing rather
2832
2834
  * than stylistic. `docflow` is whole-object serialized into
2833
- * `playStaticPipelineContractHash` (`src/lib/plays/artifact-storage.ts`),
2835
+ * `playStaticPipelineContractHash` (`apps/deepline-api/src/lib/plays/artifact-storage.ts`),
2834
2836
  * which is part of the immutable artifact storage key, and the canonicalizer
2835
2837
  * there drops `undefined` but HASHES `null`. Emitting `arm: null` on an
2836
2838
  * unannotated edge would change the contract hash of every diagrammed play
@@ -3153,4 +3155,4 @@ type PlayCompilerManifest = {
3153
3155
  authoringContract?: AdmittedPlayAuthoringContract;
3154
3156
  };
3155
3157
 
3156
- export { type DeeplineGetterValue as $, type AsyncPlayRunRef as A, type PlayAuthoringCallOptions as B, type PlayAuthoringFetchResponse as C, type PlayAuthoringInputContract as D, type PlayRunId as E, type PlayAuthoringStepProgramStep as F, type PlayAuthoringRuntimeStepOptions as G, type PlaySqlListenerDeclaration as H, type PlaySqlListenerEvent as I, type PlaySqlListenerOperation as J, type PlaySqlQuery as K, type PlayAuthoringStepOptions as L, type PlayAuthoringStepProgram as M, type PlayAuthoringStepProgramResolver as N, type PlayAuthoringStepResolver as O, type PlayArtifactKind as P, type PlayToolExecutionRequest as Q, type PlayAuthoringStepProgramOptions as R, DeeplineError as S, type ToolExecuteResult as T, ToolExecutionError as U, type ToolExecutionErrorOptions as V, CtxFetchHttpError as W, DEEPLINE_EXTRACTOR_TARGETS as X, DEEPLINE_EXTRACTOR_TARGET_DEFINITIONS as Y, type DeeplineEmailStatusGetterValue as Z, type DeeplineExtractorTarget as _, type PlayBundleArtifact as a, type DeeplineGetterValueMap as a0, JOB_CHANGE_STATUS_VALUES as a1, type JobChangeStatus as a2, PHONE_STATUS_VALUES as a3, type PhoneStatus as a4, type PlayDataset as a5, type PlayDatasetInput as a6, type PreviousCell as a7, ProviderTransientError as a8, type ProviderTransientErrorCategory as a9, type ProviderUnavailableError as aa, type ProviderUnavailableReason as ab, type ToolExecutionErrorCategory as ac, type ToolExecutionErrorOrigin as ad, type ToolExecutionFailureV1 as ae, type ToolExecutionNetworkKind as af, type ToolExecutionNetworkScope as ag, type ToolExecutionPublicDetails as ah, getProviderUnavailableReason as ai, isDeeplineExtractorTarget as aj, isProviderUnavailable as ak, isProviderWaterfallUnavailableError as al, type PlaySandboxRuntimeDeclaration as b, type PlayCompilerManifest as c, PLAY_ARTIFACT_KINDS as d, type PlayArtifactCompatibility as e, type PlayImportPolicy as f, type PlayPackageImport as g, type PlayRuntimeFeature as h, type PlayAuthoringColumnMap as i, type PlayAuthoringColumnResolver as j, type PlayAuthoringRuntimeContext as k, type PlayAuthoringConditionalStepResolver as l, type PlayAuthoringCsvInput as m, type PlayAuthoringCsvOptions as n, type PlayAuthoringDatasetBuilder as o, type PlayAuthoringDatasetColumnDefinition as p, type PlayAuthoringDatasetColumnRunInput as q, type PlayAuthoringReferenceLike as r, type PlayReturnObject as s, type PlayAuthoringDefineConfig as t, type PlayAuthoringDefinedPlay as u, type PlayAuthoringFetchOptions as v, type PlayAuthoringFileInput as w, type PlayAuthoringAsyncCallOptions as x, type PlayAuthoringBindings as y, type PlayAuthoringCallExecution as z };
3158
+ export { type PreviousCell as $, type AsyncPlayRunRef as A, type PlaySqlListenerOperation as B, type PlaySqlQuery as C, type PlayAuthoringStepOptions as D, type PlayAuthoringStepProgram as E, type PlayAuthoringStepProgramResolver as F, type PlayAuthoringStepResolver as G, type PlayToolExecutionRequest as H, type PlayAuthoringStepProgramOptions as I, DeeplineError as J, ToolExecutionError as K, type ToolExecutionErrorOptions as L, CtxFetchHttpError as M, DEEPLINE_EXTRACTOR_TARGETS as N, DEEPLINE_EXTRACTOR_TARGET_DEFINITIONS as O, type PlayCompilerManifest as P, type DeeplineEmailStatusGetterValue as Q, type DeeplineExtractorTarget as R, type DeeplineGetterValue as S, type ToolExecuteResult as T, type DeeplineGetterValueMap as U, JOB_CHANGE_STATUS_VALUES as V, type JobChangeStatus as W, PHONE_STATUS_VALUES as X, type PhoneStatus as Y, type PlayDataset as Z, type PlayDatasetInput as _, type PlayAuthoringColumnMap as a, ProviderTransientError as a0, type ProviderTransientErrorCategory as a1, type ProviderUnavailableError as a2, type ProviderUnavailableReason as a3, type ToolExecutionErrorCategory as a4, type ToolExecutionErrorOrigin as a5, type ToolExecutionFailureV1 as a6, type ToolExecutionNetworkKind as a7, type ToolExecutionNetworkScope as a8, type ToolExecutionPublicDetails as a9, getProviderUnavailableReason as aa, isDeeplineExtractorTarget as ab, isProviderUnavailable as ac, isProviderWaterfallUnavailableError as ad, type PlayArtifactKind as ae, type PlayBundleArtifact as af, type PlaySandboxRuntimeDeclaration as ag, PLAY_ARTIFACT_KINDS as ah, type PlayArtifactCompatibility as ai, type PlayImportPolicy as aj, type PlayPackageImport as ak, type PlayRuntimeFeature as al, type PlayAuthoringColumnResolver as b, type PlayAuthoringRuntimeContext as c, type PlayAuthoringConditionalStepResolver as d, type PlayAuthoringCsvInput as e, type PlayAuthoringCsvOptions as f, type PlayAuthoringDatasetBuilder as g, type PlayAuthoringDatasetColumnDefinition as h, type PlayAuthoringDatasetColumnRunInput as i, type PlayAuthoringReferenceLike as j, type PlayReturnObject as k, type PlayAuthoringDefineConfig as l, type PlayAuthoringDefinedPlay as m, type PlayAuthoringFetchOptions as n, type PlayAuthoringFileInput as o, type PlayAuthoringAsyncCallOptions as p, type PlayAuthoringBindings as q, type PlayAuthoringCallExecution as r, type PlayAuthoringCallOptions as s, type PlayAuthoringFetchResponse as t, type PlayAuthoringInputContract as u, type PlayRunId as v, type PlayAuthoringStepProgramStep as w, type PlayAuthoringRuntimeStepOptions as x, type PlaySqlListenerDeclaration as y, type PlaySqlListenerEvent as z };
@@ -615,7 +615,7 @@ type PlayDatasetMaterializeOptions = {
615
615
  type ToolResultExecutionMetadata = {
616
616
  idempotent: true;
617
617
  cached: boolean;
618
- source: 'live' | 'checkpoint' | 'cache' | 'in_flight';
618
+ source: 'live' | 'checkpoint' | 'cache' | 'in_flight' | 'source_run';
619
619
  cacheKey?: string;
620
620
  receiptRole?: 'owner' | 'follower';
621
621
  receiptKey?: string;
@@ -2768,6 +2768,8 @@ type PlayArtifactCompatibility = {
2768
2768
  toolResponseContract?: ToolResponseContract;
2769
2769
  /** Missing preserves the receipt namespace of artifacts created before this revision existed. */
2770
2770
  toolResponseReceiptRevision?: string;
2771
+ /** Missing preserves Slack HITL's historical parked timeout behavior. */
2772
+ slackHitlTimeoutOutcome?: 'error';
2771
2773
  };
2772
2774
  /** The only executable Play artifact contract. */
2773
2775
  declare const PLAY_ARTIFACT_KINDS: {
@@ -2830,7 +2832,7 @@ type PlayDocflowEdge = {
2830
2832
  *
2831
2833
  * ABSENT — never `null` — when unrecorded, and that is load-bearing rather
2832
2834
  * than stylistic. `docflow` is whole-object serialized into
2833
- * `playStaticPipelineContractHash` (`src/lib/plays/artifact-storage.ts`),
2835
+ * `playStaticPipelineContractHash` (`apps/deepline-api/src/lib/plays/artifact-storage.ts`),
2834
2836
  * which is part of the immutable artifact storage key, and the canonicalizer
2835
2837
  * there drops `undefined` but HASHES `null`. Emitting `arm: null` on an
2836
2838
  * unannotated edge would change the contract hash of every diagrammed play
@@ -3153,4 +3155,4 @@ type PlayCompilerManifest = {
3153
3155
  authoringContract?: AdmittedPlayAuthoringContract;
3154
3156
  };
3155
3157
 
3156
- export { type DeeplineGetterValue as $, type AsyncPlayRunRef as A, type PlayAuthoringCallOptions as B, type PlayAuthoringFetchResponse as C, type PlayAuthoringInputContract as D, type PlayRunId as E, type PlayAuthoringStepProgramStep as F, type PlayAuthoringRuntimeStepOptions as G, type PlaySqlListenerDeclaration as H, type PlaySqlListenerEvent as I, type PlaySqlListenerOperation as J, type PlaySqlQuery as K, type PlayAuthoringStepOptions as L, type PlayAuthoringStepProgram as M, type PlayAuthoringStepProgramResolver as N, type PlayAuthoringStepResolver as O, type PlayArtifactKind as P, type PlayToolExecutionRequest as Q, type PlayAuthoringStepProgramOptions as R, DeeplineError as S, type ToolExecuteResult as T, ToolExecutionError as U, type ToolExecutionErrorOptions as V, CtxFetchHttpError as W, DEEPLINE_EXTRACTOR_TARGETS as X, DEEPLINE_EXTRACTOR_TARGET_DEFINITIONS as Y, type DeeplineEmailStatusGetterValue as Z, type DeeplineExtractorTarget as _, type PlayBundleArtifact as a, type DeeplineGetterValueMap as a0, JOB_CHANGE_STATUS_VALUES as a1, type JobChangeStatus as a2, PHONE_STATUS_VALUES as a3, type PhoneStatus as a4, type PlayDataset as a5, type PlayDatasetInput as a6, type PreviousCell as a7, ProviderTransientError as a8, type ProviderTransientErrorCategory as a9, type ProviderUnavailableError as aa, type ProviderUnavailableReason as ab, type ToolExecutionErrorCategory as ac, type ToolExecutionErrorOrigin as ad, type ToolExecutionFailureV1 as ae, type ToolExecutionNetworkKind as af, type ToolExecutionNetworkScope as ag, type ToolExecutionPublicDetails as ah, getProviderUnavailableReason as ai, isDeeplineExtractorTarget as aj, isProviderUnavailable as ak, isProviderWaterfallUnavailableError as al, type PlaySandboxRuntimeDeclaration as b, type PlayCompilerManifest as c, PLAY_ARTIFACT_KINDS as d, type PlayArtifactCompatibility as e, type PlayImportPolicy as f, type PlayPackageImport as g, type PlayRuntimeFeature as h, type PlayAuthoringColumnMap as i, type PlayAuthoringColumnResolver as j, type PlayAuthoringRuntimeContext as k, type PlayAuthoringConditionalStepResolver as l, type PlayAuthoringCsvInput as m, type PlayAuthoringCsvOptions as n, type PlayAuthoringDatasetBuilder as o, type PlayAuthoringDatasetColumnDefinition as p, type PlayAuthoringDatasetColumnRunInput as q, type PlayAuthoringReferenceLike as r, type PlayReturnObject as s, type PlayAuthoringDefineConfig as t, type PlayAuthoringDefinedPlay as u, type PlayAuthoringFetchOptions as v, type PlayAuthoringFileInput as w, type PlayAuthoringAsyncCallOptions as x, type PlayAuthoringBindings as y, type PlayAuthoringCallExecution as z };
3158
+ export { type PreviousCell as $, type AsyncPlayRunRef as A, type PlaySqlListenerOperation as B, type PlaySqlQuery as C, type PlayAuthoringStepOptions as D, type PlayAuthoringStepProgram as E, type PlayAuthoringStepProgramResolver as F, type PlayAuthoringStepResolver as G, type PlayToolExecutionRequest as H, type PlayAuthoringStepProgramOptions as I, DeeplineError as J, ToolExecutionError as K, type ToolExecutionErrorOptions as L, CtxFetchHttpError as M, DEEPLINE_EXTRACTOR_TARGETS as N, DEEPLINE_EXTRACTOR_TARGET_DEFINITIONS as O, type PlayCompilerManifest as P, type DeeplineEmailStatusGetterValue as Q, type DeeplineExtractorTarget as R, type DeeplineGetterValue as S, type ToolExecuteResult as T, type DeeplineGetterValueMap as U, JOB_CHANGE_STATUS_VALUES as V, type JobChangeStatus as W, PHONE_STATUS_VALUES as X, type PhoneStatus as Y, type PlayDataset as Z, type PlayDatasetInput as _, type PlayAuthoringColumnMap as a, ProviderTransientError as a0, type ProviderTransientErrorCategory as a1, type ProviderUnavailableError as a2, type ProviderUnavailableReason as a3, type ToolExecutionErrorCategory as a4, type ToolExecutionErrorOrigin as a5, type ToolExecutionFailureV1 as a6, type ToolExecutionNetworkKind as a7, type ToolExecutionNetworkScope as a8, type ToolExecutionPublicDetails as a9, getProviderUnavailableReason as aa, isDeeplineExtractorTarget as ab, isProviderUnavailable as ac, isProviderWaterfallUnavailableError as ad, type PlayArtifactKind as ae, type PlayBundleArtifact as af, type PlaySandboxRuntimeDeclaration as ag, PLAY_ARTIFACT_KINDS as ah, type PlayArtifactCompatibility as ai, type PlayImportPolicy as aj, type PlayPackageImport as ak, type PlayRuntimeFeature as al, type PlayAuthoringColumnResolver as b, type PlayAuthoringRuntimeContext as c, type PlayAuthoringConditionalStepResolver as d, type PlayAuthoringCsvInput as e, type PlayAuthoringCsvOptions as f, type PlayAuthoringDatasetBuilder as g, type PlayAuthoringDatasetColumnDefinition as h, type PlayAuthoringDatasetColumnRunInput as i, type PlayAuthoringReferenceLike as j, type PlayReturnObject as k, type PlayAuthoringDefineConfig as l, type PlayAuthoringDefinedPlay as m, type PlayAuthoringFetchOptions as n, type PlayAuthoringFileInput as o, type PlayAuthoringAsyncCallOptions as p, type PlayAuthoringBindings as q, type PlayAuthoringCallExecution as r, type PlayAuthoringCallOptions as s, type PlayAuthoringFetchResponse as t, type PlayAuthoringInputContract as u, type PlayRunId as v, type PlayAuthoringStepProgramStep as w, type PlayAuthoringRuntimeStepOptions as x, type PlaySqlListenerDeclaration as y, type PlaySqlListenerEvent as z };
package/dist/index.d.mts 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-DsLbQaew.mjs';
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-DsLbQaew.mjs';
2
+ import { P as PlayCompilerManifest, A as AsyncPlayRunRef$1, a as PlayAuthoringColumnMap, b as PlayAuthoringColumnResolver, c as PlayAuthoringRuntimeContext, d as PlayAuthoringConditionalStepResolver, e as PlayAuthoringCsvInput, f as PlayAuthoringCsvOptions, g as PlayAuthoringDatasetBuilder, h as PlayAuthoringDatasetColumnDefinition, i as PlayAuthoringDatasetColumnRunInput, T as ToolExecuteResult, j as PlayAuthoringReferenceLike, k as PlayReturnObject$1, l as PlayAuthoringDefineConfig, m as PlayAuthoringDefinedPlay, n as PlayAuthoringFetchOptions, o as PlayAuthoringFileInput, p as PlayAuthoringAsyncCallOptions, q as PlayAuthoringBindings, r as PlayAuthoringCallExecution, s as PlayAuthoringCallOptions, t as PlayAuthoringFetchResponse, u as PlayAuthoringInputContract, v as PlayRunId$1, w as PlayAuthoringStepProgramStep, x as PlayAuthoringRuntimeStepOptions, y as PlaySqlListenerDeclaration, z as PlaySqlListenerEvent, B as PlaySqlListenerOperation, C as PlaySqlQuery, D as PlayAuthoringStepOptions, E as PlayAuthoringStepProgram, F as PlayAuthoringStepProgramResolver, G as PlayAuthoringStepResolver, H as PlayToolExecutionRequest, I as PlayAuthoringStepProgramOptions, J as DeeplineError, K as ToolExecutionError, L as ToolExecutionErrorOptions } from './compiler-manifest-BaJfE-5H.mjs';
3
+ export { M as CtxFetchHttpError, N as DEEPLINE_EXTRACTOR_TARGETS, O as DEEPLINE_EXTRACTOR_TARGET_DEFINITIONS, Q as DeeplineEmailStatusGetterValue, R as DeeplineExtractorTarget, S as DeeplineGetterValue, U as DeeplineGetterValueMap, V as JOB_CHANGE_STATUS_VALUES, W as JobChangeStatus, X as PHONE_STATUS_VALUES, Y as PhoneStatus, Z as PlayDataset, _ as PlayDatasetInput, $ as PreviousCell, a0 as ProviderTransientError, a1 as ProviderTransientErrorCategory, a2 as ProviderUnavailableError, a3 as ProviderUnavailableReason, a4 as ToolExecutionErrorCategory, a5 as ToolExecutionErrorOrigin, a6 as ToolExecutionFailureV1, a7 as ToolExecutionNetworkKind, a8 as ToolExecutionNetworkScope, a9 as ToolExecutionPublicDetails, aa as getProviderUnavailableReason, ab as isDeeplineExtractorTarget, ac as isProviderUnavailable, ad as isProviderWaterfallUnavailableError } from './compiler-manifest-BaJfE-5H.mjs';
4
+ import { MonitorFleetDefinition } from './monitor-fleet-contract.mjs';
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.mjs';
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';
@@ -1891,6 +1893,21 @@ interface PlayDefinitionDetail {
1891
1893
  /** Compatibility field for older readers. */
1892
1894
  currentPublishedVersion?: number | null;
1893
1895
  }
1896
+ type PlayCostEstimate = {
1897
+ status: 'available';
1898
+ source: 'observed' | 'static';
1899
+ unit: 'row' | 'run';
1900
+ lowCredits: number;
1901
+ highCredits: number;
1902
+ sampleRunCount: number;
1903
+ basedOnRunId: string | null;
1904
+ modelVersion: string;
1905
+ } | {
1906
+ status: 'unavailable';
1907
+ reason: 'ambiguous_output_unit' | 'unbounded_loop' | 'unresolved_tool' | 'mixed_run_and_row_costs';
1908
+ message: string;
1909
+ modelVersion: string;
1910
+ };
1894
1911
  interface PlayListItem {
1895
1912
  playKey?: string;
1896
1913
  reference?: string;
@@ -1920,6 +1937,7 @@ interface PlayListItem {
1920
1937
  liveRevision?: PlayRevisionSummary | null;
1921
1938
  aliases?: string[];
1922
1939
  triggerStatus?: PlayTriggerStatus;
1940
+ costEstimate?: PlayCostEstimate;
1923
1941
  }
1924
1942
  /** Additive live trigger state shared by list, get, and describe. */
1925
1943
  interface PlayTriggerStatus {
@@ -2602,134 +2620,6 @@ type MonitorControls = {
2602
2620
  */
2603
2621
  declare function defineMonitor<TPayload extends MonitorPayload = MonitorPayload>(definition: MonitorDefinition<TPayload>): MonitorDefinition<TPayload>;
2604
2622
 
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
2623
  interface PlayStagedFileRef {
2734
2624
  storageKind: 'r2';
2735
2625
  storageKey: string;
@@ -2931,6 +2821,32 @@ type RunsListOptions = {
2931
2821
  /** Zero-based page offset. Requires `play` because status-only inventory is not paginated. */
2932
2822
  offset?: number;
2933
2823
  };
2824
+ /** One server page; legacy runs.list continues to return an array. */
2825
+ type RunsListPage = {
2826
+ runs: PlayRunListItem[];
2827
+ total?: number;
2828
+ offset?: number;
2829
+ limit?: number;
2830
+ hasMore?: boolean;
2831
+ };
2832
+ type PlaysListOptions = {
2833
+ origin?: 'prebuilt' | 'owned';
2834
+ grep?: string;
2835
+ /**
2836
+ * @deprecated Grep is always evaluated by the Convex full-text index.
2837
+ * This retained option is ignored for source compatibility.
2838
+ */
2839
+ grepMode?: 'all' | 'any' | 'phrase';
2840
+ categories?: string | string[];
2841
+ includeToolCategories?: boolean;
2842
+ includeArchived?: boolean;
2843
+ includeCostEstimates?: boolean;
2844
+ };
2845
+ type PlaysListPage = {
2846
+ plays: PlayListItem[];
2847
+ cursor: string | null;
2848
+ hasMore: boolean;
2849
+ };
2934
2850
  /** Options for `client.runs.get(...)`. */
2935
2851
  type RunsGetOptions = {
2936
2852
  /** Return the raw status payload instead of the compact package. */
@@ -3047,11 +2963,8 @@ type PlaySecretCheck = {
3047
2963
  secret: PlaySecretMetadata | null;
3048
2964
  };
3049
2965
  /**
3050
- * Public runs namespace exposed as `client.runs`.
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.
2966
+ * `client.runs` mirrors `/api/v2/runs`: the preferred low-level surface for
2967
+ * polling, streaming, stopping, reading logs, and exporting durable dataset rows.
3055
2968
  *
3056
2969
  * @sdkReference client 020 client.runs
3057
2970
  */
@@ -3079,6 +2992,8 @@ type RunsNamespace = {
3079
2992
  }>;
3080
2993
  /** List runs for one play, optionally filtered by status. */
3081
2994
  list: (options: RunsListOptions) => Promise<PlayRunListItem[]>;
2995
+ /** Read one run page with total, offset, limit and completeness metadata. */
2996
+ listPage: (options: RunsListOptions) => Promise<RunsListPage>;
3082
2997
  /** Stream run events and return the latest/terminal run status. */
3083
2998
  tail: (runId: string, options?: RunsTailOptions) => Promise<PlayStatus>;
3084
2999
  /** Fetch persisted log lines for a run. */
@@ -3432,6 +3347,11 @@ type MonitorsHealth = {
3432
3347
  };
3433
3348
  converged: number;
3434
3349
  needs_repair: number;
3350
+ /**
3351
+ * Unknown records without an upstream resource id. Use the exact inventory
3352
+ * reconciler to align them; ordinary repair never guesses an identity.
3353
+ */
3354
+ alignment_required: number;
3435
3355
  /** Observed active, but nothing delivered inside `silent_window_days`. */
3436
3356
  silent: number;
3437
3357
  silent_window_days: number;
@@ -3457,6 +3377,15 @@ type MonitorsHealth = {
3457
3377
  next_attempt_at?: number;
3458
3378
  summary?: Record<string, unknown>;
3459
3379
  }>;
3380
+ /** Bounded sample explaining why normal audit did not settle the row. */
3381
+ unaudited_monitors: Array<{
3382
+ monitor_key: string;
3383
+ tool: string;
3384
+ observed: 'unknown' | null;
3385
+ observed_at: number | null;
3386
+ provider_resource_id: string | null;
3387
+ reason: 'not_yet_audited' | 'missing_provider_resource_id' | 'provider_observation_unknown';
3388
+ }>;
3460
3389
  };
3461
3390
  /** One bounded audit pass, from `POST /api/v2/monitors/audit`. */
3462
3391
  type MonitorsAuditResult = {
@@ -3592,6 +3521,8 @@ type MonitorsNamespace = {
3592
3521
  };
3593
3522
  /** One credit grant pool reported by the billing subscription status endpoint. */
3594
3523
  type BillingCreditPool = {
3524
+ /** Stable grant identity; optional when talking to an older server. */
3525
+ grant_id?: string;
3595
3526
  pool: string;
3596
3527
  credits_remaining: number;
3597
3528
  credits_granted: number;
@@ -3670,10 +3601,10 @@ type TargetBillingOperation = {
3670
3601
  next_action?: string | null;
3671
3602
  };
3672
3603
  type TargetBillingPlan = {
3673
- sku: 'payg-v1' | 'builder-v1' | 'team-v1';
3604
+ sku: 'payg-v1' | 'builder-v1' | 'growth-v1' | 'growth-canary-v1' | 'team-v1';
3674
3605
  name: string;
3675
3606
  recurring_price_usd: number;
3676
- interval: 'month';
3607
+ interval: 'month' | 'year';
3677
3608
  included_credits: number;
3678
3609
  purchased_credit_price_usd: number;
3679
3610
  };
@@ -4499,6 +4430,8 @@ declare class DeeplineClient {
4499
4430
  * ```
4500
4431
  */
4501
4432
  listRuns(options: RunsListOptions): Promise<PlayRunListItem[]>;
4433
+ /** Read one run page without discarding server pagination metadata. */
4434
+ listRunsPage(options: RunsListOptions): Promise<RunsListPage>;
4502
4435
  /**
4503
4436
  * Observe one run's live events. Uses the Convex Run Snapshot subscription
4504
4437
  * transport first (ADR-0008), then falls back to the canonical SSE stream
@@ -4603,19 +4536,19 @@ declare class DeeplineClient {
4603
4536
  reason?: string;
4604
4537
  }): Promise<StopAllPlayRunsResult>;
4605
4538
  /**
4606
- * List callable plays visible to the workspace.
4539
+ * List one page of callable plays; grep retains exhaustive matching results.
4540
+ * Use listPlaysPage to retain pagination metadata.
4607
4541
  *
4608
4542
  * Pass `origin: "prebuilt"` for Deepline-managed prebuilts or
4609
4543
  * `origin: "owned"` for org-owned plays.
4610
4544
  */
4611
- listPlays(options?: {
4612
- origin?: 'prebuilt' | 'owned';
4613
- grep?: string;
4614
- grepMode?: 'all' | 'any' | 'phrase';
4615
- categories?: string | string[];
4616
- includeToolCategories?: boolean;
4617
- includeArchived?: boolean;
4618
- }): Promise<PlayListItem[]>;
4545
+ listPlays(options?: PlaysListOptions): Promise<PlayListItem[]>;
4546
+ /** Read one bounded inventory page; cursor continues the same filters. */
4547
+ listPlaysPage(options?: PlaysListOptions & {
4548
+ limit?: number;
4549
+ cursor?: string | null;
4550
+ }): Promise<PlaysListPage>;
4551
+ private requestPlaysPage;
4619
4552
  /** Set whether an org-owned Play sorts before unpinned Plays. */
4620
4553
  setPlayPinned(playName: string, pinned: boolean): Promise<{
4621
4554
  name: string;
@@ -6061,4 +5994,4 @@ declare function writeCsvOutputFile(rows: Array<Record<string, unknown>>, stem:
6061
5994
  */
6062
5995
  declare function extractSummaryFields(payload: unknown): Record<string, Scalar>;
6063
5996
 
6064
- export { type AdmittedMonitorFleetAuthoringContract, 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, MONITOR_FLEET_AUTHORING_CONTRACT_CHANGELOG, MONITOR_FLEET_AUTHORING_CONTRACT_EDITION, MONITOR_FLEET_DOCUMENTATION, MONITOR_FLEET_FRONTIER_MAX_ROWS, MONITOR_FLEET_MAX_MEMBERS, type MonitorCheckResult, type MonitorControls, type MonitorDefinition, type MonitorDeleteResult, type MonitorDependents, type MonitorDeployResult, type MonitorDetail, type MonitorFleetAuthoringContractEdition, type MonitorFleetAuthoringContractResult, type MonitorFleetColumn, type MonitorFleetContractIssue, type MonitorFleetDeactivateOptions, type MonitorFleetDefinition, type MonitorFleetExpression, type MonitorFleetGetOptions, type MonitorFleetReactivateOptions, type MonitorFleetResult, type MonitorFleetStatus, type MonitorFleetSyncOptions, type MonitorFleetTemplate, 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 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 PrebuiltPlayRef, type PublishPlayVersionRequest, type PublishPlayVersionResult, RateLimitError, type ResolvedConfig, RunObserveTransportUnavailableError, type RunsListOptions, 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, admitMonitorFleetAuthoringContract, defineInput, defineMonitor, defineMonitorFleet, definePlay, defineWorkflow, extractSummaryFields, fleetColumn, fleetKey, formatPlayBootstrapFinderKinds, formatPlayBootstrapFinderKindsForSentence, formatPlayBootstrapTemplates, getDefinedPlayMetadata, isPlayBootstrapFinderKind, isPlayBootstrapTemplate, resolveConfig, runIf, steps, tryConvertToList, validateMonitorFleetDefinition, writeCsvOutputFile, writeJsonOutputFile };
5997
+ 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 };