deepline 0.3.283 → 0.3.285

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 (35) hide show
  1. package/dist/bundling-sources/sdk/src/release.ts +1 -1
  2. package/dist/bundling-sources/shared_libs/play-runtime/activity-observation.ts +26 -2
  3. package/dist/bundling-sources/shared_libs/play-runtime/batch-runtime.ts +7 -0
  4. package/dist/bundling-sources/shared_libs/play-runtime/context.ts +817 -2236
  5. package/dist/bundling-sources/shared_libs/play-runtime/ctx-types.ts +19 -6
  6. package/dist/bundling-sources/shared_libs/play-runtime/durable-receipt-execution.ts +127 -789
  7. package/dist/bundling-sources/shared_libs/play-runtime/run-ledger.ts +180 -14
  8. package/dist/bundling-sources/shared_libs/play-runtime/runner-app/index.ts +1 -0
  9. package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/backends/daytona.ts +3 -22
  10. package/dist/bundling-sources/shared_libs/play-runtime/runtime-incident-drills.ts +26 -0
  11. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/absurd-runtime-worker.ts +50 -8
  12. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/postgres-progress.ts +122 -18
  13. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/postgres.ts +218 -41
  14. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/runtime-sandbox-capacity.ts +20 -2
  15. package/dist/bundling-sources/shared_libs/play-runtime/test-runtime-seams.ts +13 -2
  16. package/dist/bundling-sources/shared_libs/play-runtime/tool-call/receipt-cohort.ts +181 -326
  17. package/dist/bundling-sources/shared_libs/play-runtime/tool-call/runtime-step-receipts-adapter.ts +38 -151
  18. package/dist/bundling-sources/shared_libs/play-runtime/worker-api-types.ts +8 -0
  19. package/dist/bundling-sources/shared_libs/security/secret-redaction.ts +89 -1
  20. package/dist/cli/index.js +28 -3
  21. package/dist/cli/index.mjs +28 -3
  22. package/dist/{client-B0AjIkgb.d.mts → client-Cl-zj2oS.d.mts} +4 -0
  23. package/dist/{client-BCXQ_Ftc.d.ts → client-T2jVnZrq.d.ts} +4 -0
  24. package/dist/index.d.mts +2 -2
  25. package/dist/index.d.ts +2 -2
  26. package/dist/index.js +25 -1
  27. package/dist/index.mjs +25 -1
  28. package/dist/install-integrity.json +2 -2
  29. package/dist/plays/run-request.d.mts +1 -1
  30. package/dist/plays/run-request.d.ts +1 -1
  31. package/dist/release.d.mts +1 -1
  32. package/dist/release.d.ts +1 -1
  33. package/dist/release.js +1 -1
  34. package/dist/release.mjs +1 -1
  35. package/package.json +1 -1
@@ -71,10 +71,11 @@ export interface RowState {
71
71
  }
72
72
 
73
73
  export interface ToolCallRequest {
74
+ /** Internal delivery identity, unique for each invocation. */
74
75
  callId: string;
75
76
  /**
76
- * Stable per-run call identity used to fence a forced provider operation
77
- * when receipt coordination deliberately has no active lease.
77
+ * Replay-stable per-run invocation identity, independent of the completed
78
+ * result cache and the author-supplied call id.
78
79
  */
79
80
  logicalCallId?: string;
80
81
  cacheKey: string;
@@ -626,6 +627,12 @@ export type PlayExecutionEvent =
626
627
  completedRows: number;
627
628
  failedRows: number;
628
629
  totalRows?: number;
630
+ /** Rows whose resolver began, including rows awaiting a tool or receipt. */
631
+ startedRows?: number;
632
+ /** Admitted row resolvers still executing; this is not an HTTP count. */
633
+ activeRows?: number;
634
+ /** Input rows whose resolver has not started yet. */
635
+ waitingRows?: number;
629
636
  /** Rows whose Runtime Sheet write lost to a newer write; not failures. */
630
637
  supersededRows?: number;
631
638
  /**
@@ -1180,6 +1187,15 @@ export interface ContextOptions {
1180
1187
  executionGovernor?: PlayExecutionGovernor;
1181
1188
  }
1182
1189
 
1190
+ export interface ProviderRetryCursor {
1191
+ invocationAttempt: number;
1192
+ retryFromInvocationAttempt: number;
1193
+ /** Preserve an outgoing invocation's fence across mixed-worker resumes. */
1194
+ legacyProviderOperationKey?: string;
1195
+ legacyTransportReceiptKey?: string;
1196
+ legacyProviderOperationForceRefreshIdentities?: readonly string[];
1197
+ }
1198
+
1183
1199
  export interface PlayCheckpoint {
1184
1200
  /** Last completed runner invocation within the current scheduler attempt. */
1185
1201
  workCounterInvocationAttempt?: number;
@@ -1190,10 +1206,7 @@ export interface PlayCheckpoint {
1190
1206
  */
1191
1207
  durableCallCacheEpochMs?: number;
1192
1208
  /** Retry identity for a provider-owned 429 while its map row is suspended. */
1193
- providerRetryCursors?: Record<
1194
- string,
1195
- { invocationAttempt: number; retryFromInvocationAttempt: number }
1196
- >;
1209
+ providerRetryCursors?: Record<string, ProviderRetryCursor>;
1197
1210
  /** First provider hold per credential scope, retained across durable resumes. */
1198
1211
  providerNoProgressStartedAtMsByScope?: Record<string, number>;
1199
1212
  /** Waterfall batches that have completed: key = `${toolName}:${provider}`, value = results array. */