deepline 0.3.183 → 0.3.185

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 (34) hide show
  1. package/dist/bundling-sources/sdk/src/release.ts +1 -1
  2. package/dist/bundling-sources/shared_libs/play-runtime/app-runtime-api.ts +53 -0
  3. package/dist/bundling-sources/shared_libs/play-runtime/context.ts +751 -193
  4. package/dist/bundling-sources/shared_libs/play-runtime/ctx-types.ts +4 -0
  5. package/dist/bundling-sources/shared_libs/play-runtime/durable-receipt-execution.ts +3 -1
  6. package/dist/bundling-sources/shared_libs/play-runtime/fixture-behavior.ts +1 -0
  7. package/dist/bundling-sources/shared_libs/play-runtime/governor/app-runtime-rate-state-backend.ts +437 -150
  8. package/dist/bundling-sources/shared_libs/play-runtime/governor/governor.ts +47 -4
  9. package/dist/bundling-sources/shared_libs/play-runtime/governor/policy.ts +3 -1
  10. package/dist/bundling-sources/shared_libs/play-runtime/governor/rate-state-backend.ts +18 -0
  11. package/dist/bundling-sources/shared_libs/play-runtime/map-execution-frame.ts +3 -0
  12. package/dist/bundling-sources/shared_libs/play-runtime/protocol.ts +22 -2
  13. package/dist/bundling-sources/shared_libs/play-runtime/resource-governor.ts +6 -1
  14. package/dist/bundling-sources/shared_libs/play-runtime/run-failure.ts +11 -5
  15. package/dist/bundling-sources/shared_libs/play-runtime/runtime-flow.ts +102 -12
  16. package/dist/bundling-sources/shared_libs/play-runtime/runtime-operation-contract.ts +8 -0
  17. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/absurd-runtime-worker.ts +136 -28
  18. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/postgres-rate-scope.ts +80 -0
  19. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/postgres-rate-state.ts +897 -207
  20. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/postgres.ts +33 -1
  21. package/dist/bundling-sources/shared_libs/play-runtime/suspension.ts +21 -0
  22. package/dist/bundling-sources/shared_libs/play-runtime/tool-execute-retry-policy.ts +120 -34
  23. package/dist/bundling-sources/shared_libs/play-runtime/tool-result.ts +82 -2
  24. package/dist/bundling-sources/shared_libs/plays/tool-result-types.ts +7 -2
  25. package/dist/cli/index.js +28 -3
  26. package/dist/cli/index.mjs +28 -3
  27. package/dist/index.js +1 -1
  28. package/dist/index.mjs +1 -1
  29. package/dist/install-integrity.json +1 -0
  30. package/dist/release.d.mts +1 -1
  31. package/dist/release.d.ts +1 -1
  32. package/dist/release.js +1 -1
  33. package/dist/release.mjs +1 -1
  34. package/package.json +1 -1
@@ -485,6 +485,8 @@ export interface MapExecutionFrame {
485
485
  suspendedInputRows?: Array<{
486
486
  inputIndex: number;
487
487
  data: Record<string, unknown>;
488
+ /** Digest of the authored input before Runtime Sheet outputs were merged. */
489
+ authoredInputDigest?: string;
488
490
  }>;
489
491
  completedRowsCount?: number;
490
492
  pendingRowsCount?: number;
@@ -1191,6 +1193,8 @@ export interface PlayCheckpoint {
1191
1193
  kind: 'integration_event';
1192
1194
  eventKey: string;
1193
1195
  timeoutMs: number;
1196
+ /** Original absolute expiry; old checkpoints may omit it. */
1197
+ eventExpiresAtMs?: number;
1194
1198
  provider?: string;
1195
1199
  toolId?: string;
1196
1200
  messageRef?: {
@@ -19,6 +19,7 @@ import type { DurableReceiptRecoverySource } from './tool-execution-outcome';
19
19
  import {
20
20
  isPlayExecutionSuspendedError,
21
21
  isPlayRowExecutionSuspendedError,
22
+ PlayRowProviderBackpressureError,
22
23
  } from './suspension';
23
24
  import type { WorkReceiptFailureKind } from './work-receipts';
24
25
  import {
@@ -1548,7 +1549,8 @@ export async function executeWithDurableRuntimeReceipt<T>(input: {
1548
1549
  }
1549
1550
  if (
1550
1551
  isPlayExecutionSuspendedError(error) ||
1551
- isPlayRowExecutionSuspendedError(error)
1552
+ isPlayRowExecutionSuspendedError(error) ||
1553
+ error instanceof PlayRowProviderBackpressureError
1552
1554
  ) {
1553
1555
  const released = await input.store.release(
1554
1556
  input.receiptKey,
@@ -55,6 +55,7 @@ const FIXTURE_MODE_BYPASS_PROVIDERS = new Set([
55
55
  // even when the surrounding Play runs in fixture mode.
56
56
  'test_receipt',
57
57
  'test_retry',
58
+ 'test_retry_after',
58
59
  'test_unhinted',
59
60
  ]);
60
61