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
package/dist/index.js CHANGED
@@ -1328,7 +1328,7 @@ var SDK_RELEASE = {
1328
1328
  // getters keep their established compatibility behavior.
1329
1329
  // 0.3.1 deprecated the legacy `deepline enrich` command in favor of Plays.
1330
1330
  // 0.3.90 is the first deliberately versioned SDK release for API v3.
1331
- version: "0.3.283",
1331
+ version: "0.3.285",
1332
1332
  updateSummary: "Play grep now returns concise results with the matched fields and terms. Automatic CLI updates are enabled by default; use `deepline settings autoupdate off` to opt out, `deepline settings autoupdate on` to re-enable updates, or `deepline settings autoupdate pin <version>` to hold an exact release.",
1333
1333
  packageCapabilities: {
1334
1334
  updatePreferences: 1
@@ -1669,6 +1669,7 @@ var RUNTIME_TEST_FAULT_IDS = [
1669
1669
  "receipt_fail_write_fail",
1670
1670
  "worker_receipt_complete_write_fail",
1671
1671
  "invocation_response_delivery_abort",
1672
+ "execution_upstream_response_loss",
1672
1673
  "receipt_gateway_hold_ms",
1673
1674
  "receipt_claim_query_hold_once_ms",
1674
1675
  "receipt_claim_response_timeout",
@@ -1809,6 +1810,29 @@ var RUNTIME_INCIDENT_DRILL_CATALOG = [
1809
1810
  target: "invocation-delivery-replay-e2e"
1810
1811
  }
1811
1812
  },
1813
+ {
1814
+ id: "execution_upstream_response_loss",
1815
+ description: "Lose the first response of each keyed execution after the upstream app durably stores it.",
1816
+ topologies: ["preview_fly"],
1817
+ control: {
1818
+ kind: "runtime_test_fault",
1819
+ defaultValue: 1,
1820
+ valueMeaning: "occurrence"
1821
+ },
1822
+ expected: {
1823
+ outcome: "The same invocation recovers the stored response without repeating provider work or customer charges, and every row retains its usable result.",
1824
+ safetyFacts: [
1825
+ "same_logical_run",
1826
+ "bounded_provider_execution",
1827
+ "all_rows_settle_once",
1828
+ "no_false_success"
1829
+ ]
1830
+ },
1831
+ verification: {
1832
+ kind: "preview_black_box",
1833
+ target: "101-agent-heavy-gateway-load-e2e"
1834
+ }
1835
+ },
1812
1836
  {
1813
1837
  id: "receipt_gateway_hold_ms",
1814
1838
  description: "Hold one checked-out receipt-gateway scheduler client.",
package/dist/index.mjs CHANGED
@@ -1232,7 +1232,7 @@ var SDK_RELEASE = {
1232
1232
  // getters keep their established compatibility behavior.
1233
1233
  // 0.3.1 deprecated the legacy `deepline enrich` command in favor of Plays.
1234
1234
  // 0.3.90 is the first deliberately versioned SDK release for API v3.
1235
- version: "0.3.283",
1235
+ version: "0.3.285",
1236
1236
  updateSummary: "Play grep now returns concise results with the matched fields and terms. Automatic CLI updates are enabled by default; use `deepline settings autoupdate off` to opt out, `deepline settings autoupdate on` to re-enable updates, or `deepline settings autoupdate pin <version>` to hold an exact release.",
1237
1237
  packageCapabilities: {
1238
1238
  updatePreferences: 1
@@ -1573,6 +1573,7 @@ var RUNTIME_TEST_FAULT_IDS = [
1573
1573
  "receipt_fail_write_fail",
1574
1574
  "worker_receipt_complete_write_fail",
1575
1575
  "invocation_response_delivery_abort",
1576
+ "execution_upstream_response_loss",
1576
1577
  "receipt_gateway_hold_ms",
1577
1578
  "receipt_claim_query_hold_once_ms",
1578
1579
  "receipt_claim_response_timeout",
@@ -1713,6 +1714,29 @@ var RUNTIME_INCIDENT_DRILL_CATALOG = [
1713
1714
  target: "invocation-delivery-replay-e2e"
1714
1715
  }
1715
1716
  },
1717
+ {
1718
+ id: "execution_upstream_response_loss",
1719
+ description: "Lose the first response of each keyed execution after the upstream app durably stores it.",
1720
+ topologies: ["preview_fly"],
1721
+ control: {
1722
+ kind: "runtime_test_fault",
1723
+ defaultValue: 1,
1724
+ valueMeaning: "occurrence"
1725
+ },
1726
+ expected: {
1727
+ outcome: "The same invocation recovers the stored response without repeating provider work or customer charges, and every row retains its usable result.",
1728
+ safetyFacts: [
1729
+ "same_logical_run",
1730
+ "bounded_provider_execution",
1731
+ "all_rows_settle_once",
1732
+ "no_false_success"
1733
+ ]
1734
+ },
1735
+ verification: {
1736
+ kind: "preview_black_box",
1737
+ target: "101-agent-heavy-gateway-load-e2e"
1738
+ }
1739
+ },
1716
1740
  {
1717
1741
  id: "receipt_gateway_hold_ms",
1718
1742
  description: "Hold one checked-out receipt-gateway scheduler client.",
@@ -596,8 +596,8 @@
596
596
  "dist/cli/index.js",
597
597
  "dist/cli/index.mjs",
598
598
  "dist/cli/text-imports.d.ts",
599
- "dist/client-B0AjIkgb.d.mts",
600
- "dist/client-BCXQ_Ftc.d.ts",
599
+ "dist/client-Cl-zj2oS.d.mts",
600
+ "dist/client-T2jVnZrq.d.ts",
601
601
  "dist/compiler-manifest-B1zo3igW.d.mts",
602
602
  "dist/compiler-manifest-B1zo3igW.d.ts",
603
603
  "dist/helpers.d.mts",
@@ -1,6 +1,6 @@
1
1
  /// <reference path="./text-imports.d.ts" />
2
2
  export { S as DeeplineError } from '../compiler-manifest-B1zo3igW.mjs';
3
- export { bE as CSV_DATA_INPUT_KEY, bF as FileInputBinding, bG as LocalFileInput, bH as MintStagedFileUpload, bI as PLAY_FILES_STAGE_MINT_PATH, bJ as PLAY_FILES_STAGE_PATH, bK as PLAY_RUN_START_PATH, bL as PLAY_RUN_START_STREAM_PATH, bM as PlayRunHttp, bN as ResolvedStartPlayRunRequest, bO as STAGE_LEGACY_MULTIPART_MAX_BYTES, bP as StagedFileCodec, bQ as StagedFileInputs, bR as StagedFileUpload, bS as buildNamedPlayRunRequest, bT as buildPlayRunStartBody, bU as createSessionPlayRunHttp, bV as createStagedFileUpload, bW as fileInputBindingsFromPlaySchema, bX as fileInputBindingsFromStaticPipeline, bY as getDottedInputValue, bZ as isPlayRunPackage, b_ as mintStagedPlayFileUploads, b$ as normalizePlayRunStart, c0 as playRunFileInputBindings, c1 as setDottedInputValue, c2 as stageFileInputs, c3 as stagePlayFiles, c4 as stagedFileContentType, c5 as startPlayRun, c6 as webStagedFileCodec } from '../client-B0AjIkgb.mjs';
3
+ export { bE as CSV_DATA_INPUT_KEY, bF as FileInputBinding, bG as LocalFileInput, bH as MintStagedFileUpload, bI as PLAY_FILES_STAGE_MINT_PATH, bJ as PLAY_FILES_STAGE_PATH, bK as PLAY_RUN_START_PATH, bL as PLAY_RUN_START_STREAM_PATH, bM as PlayRunHttp, bN as ResolvedStartPlayRunRequest, bO as STAGE_LEGACY_MULTIPART_MAX_BYTES, bP as StagedFileCodec, bQ as StagedFileInputs, bR as StagedFileUpload, bS as buildNamedPlayRunRequest, bT as buildPlayRunStartBody, bU as createSessionPlayRunHttp, bV as createStagedFileUpload, bW as fileInputBindingsFromPlaySchema, bX as fileInputBindingsFromStaticPipeline, bY as getDottedInputValue, bZ as isPlayRunPackage, b_ as mintStagedPlayFileUploads, b$ as normalizePlayRunStart, c0 as playRunFileInputBindings, c1 as setDottedInputValue, c2 as stageFileInputs, c3 as stagePlayFiles, c4 as stagedFileContentType, c5 as startPlayRun, c6 as webStagedFileCodec } from '../client-Cl-zj2oS.mjs';
4
4
  import '@sinclair/typebox';
5
5
  import 'zod';
6
6
  import '../monitor-fleet-contract.mjs';
@@ -1,6 +1,6 @@
1
1
  /// <reference path="./text-imports.d.ts" />
2
2
  export { S as DeeplineError } from '../compiler-manifest-B1zo3igW.js';
3
- export { bE as CSV_DATA_INPUT_KEY, bF as FileInputBinding, bG as LocalFileInput, bH as MintStagedFileUpload, bI as PLAY_FILES_STAGE_MINT_PATH, bJ as PLAY_FILES_STAGE_PATH, bK as PLAY_RUN_START_PATH, bL as PLAY_RUN_START_STREAM_PATH, bM as PlayRunHttp, bN as ResolvedStartPlayRunRequest, bO as STAGE_LEGACY_MULTIPART_MAX_BYTES, bP as StagedFileCodec, bQ as StagedFileInputs, bR as StagedFileUpload, bS as buildNamedPlayRunRequest, bT as buildPlayRunStartBody, bU as createSessionPlayRunHttp, bV as createStagedFileUpload, bW as fileInputBindingsFromPlaySchema, bX as fileInputBindingsFromStaticPipeline, bY as getDottedInputValue, bZ as isPlayRunPackage, b_ as mintStagedPlayFileUploads, b$ as normalizePlayRunStart, c0 as playRunFileInputBindings, c1 as setDottedInputValue, c2 as stageFileInputs, c3 as stagePlayFiles, c4 as stagedFileContentType, c5 as startPlayRun, c6 as webStagedFileCodec } from '../client-BCXQ_Ftc.js';
3
+ export { bE as CSV_DATA_INPUT_KEY, bF as FileInputBinding, bG as LocalFileInput, bH as MintStagedFileUpload, bI as PLAY_FILES_STAGE_MINT_PATH, bJ as PLAY_FILES_STAGE_PATH, bK as PLAY_RUN_START_PATH, bL as PLAY_RUN_START_STREAM_PATH, bM as PlayRunHttp, bN as ResolvedStartPlayRunRequest, bO as STAGE_LEGACY_MULTIPART_MAX_BYTES, bP as StagedFileCodec, bQ as StagedFileInputs, bR as StagedFileUpload, bS as buildNamedPlayRunRequest, bT as buildPlayRunStartBody, bU as createSessionPlayRunHttp, bV as createStagedFileUpload, bW as fileInputBindingsFromPlaySchema, bX as fileInputBindingsFromStaticPipeline, bY as getDottedInputValue, bZ as isPlayRunPackage, b_ as mintStagedPlayFileUploads, b$ as normalizePlayRunStart, c0 as playRunFileInputBindings, c1 as setDottedInputValue, c2 as stageFileInputs, c3 as stagePlayFiles, c4 as stagedFileContentType, c5 as startPlayRun, c6 as webStagedFileCodec } from '../client-T2jVnZrq.js';
4
4
  import '@sinclair/typebox';
5
5
  import 'zod';
6
6
  import '../monitor-fleet-contract.js';
@@ -149,7 +149,7 @@ type SdkRelease = {
149
149
  supportPolicy: SdkSupportPolicy;
150
150
  };
151
151
  declare const SDK_RELEASE: {
152
- readonly version: "0.3.283";
152
+ readonly version: "0.3.285";
153
153
  readonly updateSummary: "Play grep now returns concise results with the matched fields and terms. Automatic CLI updates are enabled by default; use `deepline settings autoupdate off` to opt out, `deepline settings autoupdate on` to re-enable updates, or `deepline settings autoupdate pin <version>` to hold an exact release.";
154
154
  readonly packageCapabilities: {
155
155
  readonly updatePreferences: 1;
package/dist/release.d.ts CHANGED
@@ -149,7 +149,7 @@ type SdkRelease = {
149
149
  supportPolicy: SdkSupportPolicy;
150
150
  };
151
151
  declare const SDK_RELEASE: {
152
- readonly version: "0.3.283";
152
+ readonly version: "0.3.285";
153
153
  readonly updateSummary: "Play grep now returns concise results with the matched fields and terms. Automatic CLI updates are enabled by default; use `deepline settings autoupdate off` to opt out, `deepline settings autoupdate on` to re-enable updates, or `deepline settings autoupdate pin <version>` to hold an exact release.";
154
154
  readonly packageCapabilities: {
155
155
  readonly updatePreferences: 1;
package/dist/release.js CHANGED
@@ -74,7 +74,7 @@ var SDK_RELEASE = {
74
74
  // getters keep their established compatibility behavior.
75
75
  // 0.3.1 deprecated the legacy `deepline enrich` command in favor of Plays.
76
76
  // 0.3.90 is the first deliberately versioned SDK release for API v3.
77
- version: "0.3.283",
77
+ version: "0.3.285",
78
78
  updateSummary: "Play grep now returns concise results with the matched fields and terms. Automatic CLI updates are enabled by default; use `deepline settings autoupdate off` to opt out, `deepline settings autoupdate on` to re-enable updates, or `deepline settings autoupdate pin <version>` to hold an exact release.",
79
79
  packageCapabilities: {
80
80
  updatePreferences: 1
package/dist/release.mjs CHANGED
@@ -48,7 +48,7 @@ var SDK_RELEASE = {
48
48
  // getters keep their established compatibility behavior.
49
49
  // 0.3.1 deprecated the legacy `deepline enrich` command in favor of Plays.
50
50
  // 0.3.90 is the first deliberately versioned SDK release for API v3.
51
- version: "0.3.283",
51
+ version: "0.3.285",
52
52
  updateSummary: "Play grep now returns concise results with the matched fields and terms. Automatic CLI updates are enabled by default; use `deepline settings autoupdate off` to opt out, `deepline settings autoupdate on` to re-enable updates, or `deepline settings autoupdate pin <version>` to hold an exact release.",
53
53
  packageCapabilities: {
54
54
  updatePreferences: 1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "deepline",
3
- "version": "0.3.283",
3
+ "version": "0.3.285",
4
4
  "description": "GTM data CLI and TypeScript SDK for coding agents",
5
5
  "license": "MIT",
6
6
  "homepage": "https://code.deepline.com",