deepline 0.3.45 → 0.3.47

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 (88) hide show
  1. package/dist/bundling-sources/sdk/src/client.ts +2 -3
  2. package/dist/bundling-sources/sdk/src/errors.ts +2 -2
  3. package/dist/bundling-sources/sdk/src/http.ts +1 -1
  4. package/dist/bundling-sources/sdk/src/play.ts +7 -10
  5. package/dist/bundling-sources/sdk/src/plays/bundle-play-file.ts +3 -3
  6. package/dist/bundling-sources/sdk/src/release.ts +3 -3
  7. package/dist/bundling-sources/sdk/src/version.ts +2 -2
  8. package/dist/bundling-sources/shared_libs/play-data-plane/contracts.ts +25 -0
  9. package/dist/bundling-sources/shared_libs/play-data-plane/index.ts +1 -0
  10. package/dist/bundling-sources/shared_libs/play-data-plane/sheet-contract.ts +1 -1
  11. package/dist/bundling-sources/shared_libs/play-runtime/app-runtime-api.ts +19 -19
  12. package/dist/bundling-sources/shared_libs/play-runtime/backend.ts +5 -6
  13. package/dist/bundling-sources/shared_libs/play-runtime/cell-staleness.ts +1 -66
  14. package/dist/bundling-sources/shared_libs/play-runtime/context.ts +11 -11
  15. package/dist/bundling-sources/shared_libs/play-runtime/ctx-types.ts +3 -3
  16. package/dist/bundling-sources/shared_libs/play-runtime/dataset-id.ts +4 -3
  17. package/dist/bundling-sources/shared_libs/play-runtime/durable-call-cache.ts +3 -4
  18. package/dist/bundling-sources/shared_libs/play-runtime/durable-receipt-execution.ts +2 -2
  19. package/dist/bundling-sources/shared_libs/play-runtime/email-status.ts +1 -275
  20. package/dist/bundling-sources/shared_libs/play-runtime/execution-ledger-store.ts +1 -1
  21. package/dist/bundling-sources/shared_libs/play-runtime/extractor-targets.ts +1 -106
  22. package/dist/bundling-sources/shared_libs/play-runtime/gateway-postgres-admission.ts +1 -2
  23. package/dist/bundling-sources/shared_libs/play-runtime/governor/in-memory-rate-state-backend.ts +13 -4
  24. package/dist/bundling-sources/shared_libs/play-runtime/live-events.ts +1 -5
  25. package/dist/bundling-sources/shared_libs/play-runtime/map-row-identity.ts +2 -3
  26. package/dist/bundling-sources/shared_libs/play-runtime/map-row-outcome.ts +2 -1
  27. package/dist/bundling-sources/shared_libs/play-runtime/modal-runtime-config.ts +1 -1
  28. package/dist/bundling-sources/shared_libs/play-runtime/output-size-limits.ts +1 -1
  29. package/dist/bundling-sources/shared_libs/play-runtime/projection.ts +5 -5
  30. package/dist/bundling-sources/shared_libs/play-runtime/protocol.ts +3 -3
  31. package/dist/bundling-sources/shared_libs/play-runtime/run-failure.ts +1 -1
  32. package/dist/bundling-sources/shared_libs/play-runtime/run-snapshot-stream.ts +1 -1
  33. package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/backends/daytona-lifecycle.ts +4 -4
  34. package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/backends/daytona-modal-fallback.ts +3 -3
  35. package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/backends/daytona-payload-transport.ts +8 -8
  36. package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/backends/daytona-session-execution.ts +1 -1
  37. package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/backends/daytona.ts +4 -4
  38. package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/backends/local-process.ts +7 -7
  39. package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/backends/modal.ts +7 -7
  40. package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/bundle.ts +13 -2
  41. package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/index.ts +2 -2
  42. package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/runner-events.ts +1 -1
  43. package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/runtime-sandbox-reconciliation.ts +1 -1
  44. package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/types.ts +2 -2
  45. package/dist/bundling-sources/shared_libs/play-runtime/runtime-actions.ts +1 -1
  46. package/dist/bundling-sources/shared_libs/play-runtime/runtime-api.ts +6 -3
  47. package/dist/bundling-sources/shared_libs/play-runtime/runtime-constants.ts +1 -1
  48. package/dist/bundling-sources/shared_libs/play-runtime/runtime-constraints.ts +1 -2
  49. package/dist/bundling-sources/shared_libs/play-runtime/runtime-env.ts +55 -0
  50. package/dist/bundling-sources/shared_libs/play-runtime/sandbox-runtime-limits.ts +1 -109
  51. package/dist/bundling-sources/shared_libs/play-runtime/step-program-dataset-builder.ts +1 -1
  52. package/dist/bundling-sources/shared_libs/play-runtime/test-runtime-seams.ts +1 -1
  53. package/dist/bundling-sources/shared_libs/play-runtime/tool-execute-retry-policy.ts +1 -1
  54. package/dist/bundling-sources/shared_libs/play-runtime/tool-execution-outcome.ts +6 -5
  55. package/dist/bundling-sources/shared_libs/play-runtime/tool-http-errors.ts +1 -1
  56. package/dist/bundling-sources/shared_libs/play-runtime/tool-result-types.ts +1 -206
  57. package/dist/bundling-sources/shared_libs/play-runtime/tool-result.ts +10 -7
  58. package/dist/bundling-sources/shared_libs/play-runtime/work-receipts.ts +1 -1
  59. package/dist/bundling-sources/shared_libs/plays/artifact-types.ts +8 -3
  60. package/dist/bundling-sources/shared_libs/plays/authoring-contract.ts +4 -4
  61. package/dist/bundling-sources/shared_libs/plays/bundling/index.ts +3 -6
  62. package/dist/bundling-sources/shared_libs/plays/cell-staleness.ts +66 -0
  63. package/dist/bundling-sources/shared_libs/plays/compiler-manifest.ts +1 -1
  64. package/dist/bundling-sources/shared_libs/plays/contracts.ts +2 -2
  65. package/dist/bundling-sources/shared_libs/plays/core.ts +466 -0
  66. package/dist/bundling-sources/shared_libs/plays/email-status.ts +287 -0
  67. package/dist/bundling-sources/shared_libs/plays/extractor-targets.ts +106 -0
  68. package/dist/bundling-sources/shared_libs/plays/row-identity.ts +1 -3
  69. package/dist/bundling-sources/shared_libs/plays/runtime-constraints.ts +2 -0
  70. package/dist/bundling-sources/shared_libs/plays/runtime-validation.ts +4 -2
  71. package/dist/bundling-sources/shared_libs/plays/sandbox-runtime-limits.ts +109 -0
  72. package/dist/bundling-sources/shared_libs/plays/tool-execution-error.ts +624 -0
  73. package/dist/bundling-sources/shared_libs/plays/tool-result-types.ts +206 -0
  74. package/dist/bundling-sources/shared_libs/security/safe-outbound-fetch.ts +1 -1
  75. package/dist/cli/index.js +181 -169
  76. package/dist/cli/index.mjs +189 -170
  77. package/dist/{compiler-manifest-DwYe2C2S.d.mts → compiler-manifest-BuoqasqI.d.mts} +585 -540
  78. package/dist/{compiler-manifest-DwYe2C2S.d.ts → compiler-manifest-BuoqasqI.d.ts} +585 -540
  79. package/dist/index.d.mts +9 -2
  80. package/dist/index.d.ts +9 -2
  81. package/dist/index.js +47 -40
  82. package/dist/index.mjs +47 -40
  83. package/dist/install-integrity.json +13 -3
  84. package/dist/plays/bundle-play-file.d.mts +4 -61
  85. package/dist/plays/bundle-play-file.d.ts +4 -61
  86. package/dist/plays/bundle-play-file.mjs +157 -155
  87. package/package.json +9 -6
  88. /package/dist/bundling-sources/shared_libs/{play-runtime → plays}/tool-response-contract.ts +0 -0
package/dist/index.d.mts CHANGED
@@ -1,6 +1,6 @@
1
1
  /// <reference path="./text-imports.d.ts" />
2
- import { e as PlayRuntimeBackendId, c as PlayCompilerManifest, D as DeeplineError, f as ToolExecutionError, g as ToolExecutionErrorOptions, h as PlayAuthoringColumnMap, i as PlayAuthoringColumnResolver, j as PlayAuthoringRuntimeContext, k as PlayAuthoringConditionalStepResolver, l as PlayAuthoringCsvInput, m as PlayAuthoringCsvOptions, n as PlayAuthoringDatasetBuilder, o as PlayAuthoringDatasetColumnDefinition, p as PlayAuthoringDatasetColumnRunInput, q as ToolExecuteResult, r as PlayAuthoringReferenceLike, s as PlayReturnObject$1, t as PlayAuthoringDefineConfig, u as PlayAuthoringDefinedPlay, v as PlayAuthoringFetchOptions, w as PlayAuthoringFileInput, x as PlayAuthoringBindings, y as PlayAuthoringCallExecution, z as PlayAuthoringCallOptions, A as PlayAuthoringFetchResponse, B as PlayAuthoringInputContract, C as PlayAuthoringStepProgramStep, E as PlayAuthoringRuntimeStepOptions, F as PlaySqlListenerDeclaration, G as PlaySqlListenerEvent, H as PlaySqlListenerOperation, I as PlaySqlQuery, J as PlayAuthoringStepOptions, K as PlayAuthoringStepProgram, L as PlayAuthoringStepProgramResolver, M as PlayAuthoringStepResolver, N as PlayToolExecutionRequest, O as PlayAuthoringStepProgramOptions } from './compiler-manifest-DwYe2C2S.mjs';
3
- export { Q as DEEPLINE_EXTRACTOR_TARGETS, R as DEEPLINE_EXTRACTOR_TARGET_DEFINITIONS, S as DeeplineEmailStatusGetterValue, U as DeeplineExtractorTarget, V as DeeplineGetterValue, W as DeeplineGetterValueMap, X as JOB_CHANGE_STATUS_VALUES, Y as JobChangeStatus, Z as PHONE_STATUS_VALUES, _ as PhoneStatus, $ as PlayDataset, a0 as PlayDatasetInput, a1 as PreviousCell, a2 as ProviderTransientError, a3 as ProviderTransientErrorCategory, a4 as ProviderUnavailableError, a5 as ProviderUnavailableReason, a6 as ToolExecutionErrorCategory, a7 as ToolExecutionErrorOrigin, a8 as ToolExecutionFailureV1, a9 as ToolExecutionNetworkKind, aa as ToolExecutionNetworkScope, ab as getProviderUnavailableReason, ac as isDeeplineExtractorTarget, ad as isProviderUnavailable, ae as isProviderWaterfallUnavailableError } from './compiler-manifest-DwYe2C2S.mjs';
2
+ import { c as PlayCompilerManifest, D as DeeplineError, T as ToolExecutionError, i as ToolExecutionErrorOptions, j as PlayAuthoringColumnMap, k as PlayAuthoringColumnResolver, l as PlayAuthoringRuntimeContext, m as PlayAuthoringConditionalStepResolver, n as PlayAuthoringCsvInput, o as PlayAuthoringCsvOptions, p as PlayAuthoringDatasetBuilder, q as PlayAuthoringDatasetColumnDefinition, r as PlayAuthoringDatasetColumnRunInput, s as ToolExecuteResult, t as PlayAuthoringReferenceLike, u as PlayReturnObject$1, v as PlayAuthoringDefineConfig, w as PlayAuthoringDefinedPlay, x as PlayAuthoringFetchOptions, y as PlayAuthoringFileInput, z as PlayAuthoringBindings, A as PlayAuthoringCallExecution, B as PlayAuthoringCallOptions, C as PlayAuthoringFetchResponse, E as PlayAuthoringInputContract, 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 } from './compiler-manifest-BuoqasqI.mjs';
3
+ export { S as DEEPLINE_EXTRACTOR_TARGETS, U as DEEPLINE_EXTRACTOR_TARGET_DEFINITIONS, V as DeeplineEmailStatusGetterValue, W as DeeplineExtractorTarget, X as DeeplineGetterValue, Y as DeeplineGetterValueMap, Z as JOB_CHANGE_STATUS_VALUES, _ as JobChangeStatus, $ as PHONE_STATUS_VALUES, a0 as PhoneStatus, a1 as PlayDataset, a2 as PlayDatasetInput, a3 as PreviousCell, a4 as ProviderTransientError, a5 as ProviderTransientErrorCategory, a6 as ProviderUnavailableError, a7 as ProviderUnavailableReason, a8 as ToolExecutionErrorCategory, a9 as ToolExecutionErrorOrigin, aa as ToolExecutionFailureV1, ab as ToolExecutionNetworkKind, ac as ToolExecutionNetworkScope, ad as getProviderUnavailableReason, ae as isDeeplineExtractorTarget, af as isProviderUnavailable, ag as isProviderWaterfallUnavailableError } from './compiler-manifest-BuoqasqI.mjs';
4
4
  import '@sinclair/typebox';
5
5
 
6
6
  declare const FIXTURE_BEHAVIOR_VERSION: 1;
@@ -37,6 +37,13 @@ type FixtureBehaviorV3 = {
37
37
  };
38
38
  type FixtureBehavior = FixtureBehaviorV1 | FixtureBehaviorV2 | FixtureBehaviorV3;
39
39
 
40
+ declare const PLAY_RUNTIME_BACKENDS: {
41
+ readonly localProcess: "local_process";
42
+ readonly daytona: "daytona";
43
+ readonly modal: "modal";
44
+ };
45
+ type PlayRuntimeBackendId = (typeof PLAY_RUNTIME_BACKENDS)[keyof typeof PLAY_RUNTIME_BACKENDS];
46
+
40
47
  type PlayRuntimeSelection = {
41
48
  environment: 'preview';
42
49
  /** Caller-named isolation scope inside a remote runtime environment. */
package/dist/index.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  /// <reference path="./text-imports.d.ts" />
2
- import { e as PlayRuntimeBackendId, c as PlayCompilerManifest, D as DeeplineError, f as ToolExecutionError, g as ToolExecutionErrorOptions, h as PlayAuthoringColumnMap, i as PlayAuthoringColumnResolver, j as PlayAuthoringRuntimeContext, k as PlayAuthoringConditionalStepResolver, l as PlayAuthoringCsvInput, m as PlayAuthoringCsvOptions, n as PlayAuthoringDatasetBuilder, o as PlayAuthoringDatasetColumnDefinition, p as PlayAuthoringDatasetColumnRunInput, q as ToolExecuteResult, r as PlayAuthoringReferenceLike, s as PlayReturnObject$1, t as PlayAuthoringDefineConfig, u as PlayAuthoringDefinedPlay, v as PlayAuthoringFetchOptions, w as PlayAuthoringFileInput, x as PlayAuthoringBindings, y as PlayAuthoringCallExecution, z as PlayAuthoringCallOptions, A as PlayAuthoringFetchResponse, B as PlayAuthoringInputContract, C as PlayAuthoringStepProgramStep, E as PlayAuthoringRuntimeStepOptions, F as PlaySqlListenerDeclaration, G as PlaySqlListenerEvent, H as PlaySqlListenerOperation, I as PlaySqlQuery, J as PlayAuthoringStepOptions, K as PlayAuthoringStepProgram, L as PlayAuthoringStepProgramResolver, M as PlayAuthoringStepResolver, N as PlayToolExecutionRequest, O as PlayAuthoringStepProgramOptions } from './compiler-manifest-DwYe2C2S.js';
3
- export { Q as DEEPLINE_EXTRACTOR_TARGETS, R as DEEPLINE_EXTRACTOR_TARGET_DEFINITIONS, S as DeeplineEmailStatusGetterValue, U as DeeplineExtractorTarget, V as DeeplineGetterValue, W as DeeplineGetterValueMap, X as JOB_CHANGE_STATUS_VALUES, Y as JobChangeStatus, Z as PHONE_STATUS_VALUES, _ as PhoneStatus, $ as PlayDataset, a0 as PlayDatasetInput, a1 as PreviousCell, a2 as ProviderTransientError, a3 as ProviderTransientErrorCategory, a4 as ProviderUnavailableError, a5 as ProviderUnavailableReason, a6 as ToolExecutionErrorCategory, a7 as ToolExecutionErrorOrigin, a8 as ToolExecutionFailureV1, a9 as ToolExecutionNetworkKind, aa as ToolExecutionNetworkScope, ab as getProviderUnavailableReason, ac as isDeeplineExtractorTarget, ad as isProviderUnavailable, ae as isProviderWaterfallUnavailableError } from './compiler-manifest-DwYe2C2S.js';
2
+ import { c as PlayCompilerManifest, D as DeeplineError, T as ToolExecutionError, i as ToolExecutionErrorOptions, j as PlayAuthoringColumnMap, k as PlayAuthoringColumnResolver, l as PlayAuthoringRuntimeContext, m as PlayAuthoringConditionalStepResolver, n as PlayAuthoringCsvInput, o as PlayAuthoringCsvOptions, p as PlayAuthoringDatasetBuilder, q as PlayAuthoringDatasetColumnDefinition, r as PlayAuthoringDatasetColumnRunInput, s as ToolExecuteResult, t as PlayAuthoringReferenceLike, u as PlayReturnObject$1, v as PlayAuthoringDefineConfig, w as PlayAuthoringDefinedPlay, x as PlayAuthoringFetchOptions, y as PlayAuthoringFileInput, z as PlayAuthoringBindings, A as PlayAuthoringCallExecution, B as PlayAuthoringCallOptions, C as PlayAuthoringFetchResponse, E as PlayAuthoringInputContract, 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 } from './compiler-manifest-BuoqasqI.js';
3
+ export { S as DEEPLINE_EXTRACTOR_TARGETS, U as DEEPLINE_EXTRACTOR_TARGET_DEFINITIONS, V as DeeplineEmailStatusGetterValue, W as DeeplineExtractorTarget, X as DeeplineGetterValue, Y as DeeplineGetterValueMap, Z as JOB_CHANGE_STATUS_VALUES, _ as JobChangeStatus, $ as PHONE_STATUS_VALUES, a0 as PhoneStatus, a1 as PlayDataset, a2 as PlayDatasetInput, a3 as PreviousCell, a4 as ProviderTransientError, a5 as ProviderTransientErrorCategory, a6 as ProviderUnavailableError, a7 as ProviderUnavailableReason, a8 as ToolExecutionErrorCategory, a9 as ToolExecutionErrorOrigin, aa as ToolExecutionFailureV1, ab as ToolExecutionNetworkKind, ac as ToolExecutionNetworkScope, ad as getProviderUnavailableReason, ae as isDeeplineExtractorTarget, af as isProviderUnavailable, ag as isProviderWaterfallUnavailableError } from './compiler-manifest-BuoqasqI.js';
4
4
  import '@sinclair/typebox';
5
5
 
6
6
  declare const FIXTURE_BEHAVIOR_VERSION: 1;
@@ -37,6 +37,13 @@ type FixtureBehaviorV3 = {
37
37
  };
38
38
  type FixtureBehavior = FixtureBehaviorV1 | FixtureBehaviorV2 | FixtureBehaviorV3;
39
39
 
40
+ declare const PLAY_RUNTIME_BACKENDS: {
41
+ readonly localProcess: "local_process";
42
+ readonly daytona: "daytona";
43
+ readonly modal: "modal";
44
+ };
45
+ type PlayRuntimeBackendId = (typeof PLAY_RUNTIME_BACKENDS)[keyof typeof PLAY_RUNTIME_BACKENDS];
46
+
40
47
  type PlayRuntimeSelection = {
41
48
  environment: 'preview';
42
49
  /** Caller-named isolation scope inside a remote runtime environment. */
package/dist/index.js CHANGED
@@ -88,7 +88,7 @@ var import_node_fs = require("fs");
88
88
  var import_node_os = require("os");
89
89
  var import_node_path = require("path");
90
90
 
91
- // ../shared_libs/tool-execution-error.ts
91
+ // ../plays/tool-execution-error.ts
92
92
  var DEEPLINE_ERROR_BRAND = Symbol.for("deepline.error.v1");
93
93
  var TOOL_EXECUTION_ERROR_BRAND = Symbol.for(
94
94
  "deepline.tool-execution-error.v1"
@@ -730,7 +730,7 @@ function resolveConfig(options) {
730
730
  };
731
731
  }
732
732
 
733
- // ../shared_libs/plays/artifact-contract-version.ts
733
+ // ../plays/artifact-contract-version.ts
734
734
  var CURRENT_PLAY_ARTIFACT_CONTRACT_VERSION = 2;
735
735
 
736
736
  // src/release.ts
@@ -779,7 +779,7 @@ var SDK_RELEASE = {
779
779
  // available at toolResponse.rawV2 while toolResponse.raw and all declared
780
780
  // getters keep their established compatibility behavior.
781
781
  // 0.3.1 deprecated the legacy `deepline enrich` command in favor of Plays.
782
- version: "0.3.45",
782
+ version: "0.3.47",
783
783
  updateSummary: "Automatic CLI updates are now enabled by default. To opt out, run `deepline settings autoupdate off`; use `deepline settings autoupdate on` to re-enable updates or `deepline settings autoupdate pin <version>` to hold an exact release. This release also adds raw-v2 tool responses at toolResponse.rawV2 while preserving existing toolResponse.raw and declared getters.",
784
784
  packageCapabilities: {
785
785
  updatePreferences: 1
@@ -1044,7 +1044,7 @@ function readSdkSkillsLocalVersion(baseUrl) {
1044
1044
  }
1045
1045
  }
1046
1046
 
1047
- // ../shared_libs/play-runtime/coordinator-headers.ts
1047
+ // ../play-runtime/coordinator-headers.ts
1048
1048
  var COORDINATOR_INTERNAL_TOKEN_HEADER = "x-deepline-internal-token";
1049
1049
  var COORDINATOR_URL_OVERRIDE_HEADER = "x-deepline-coordinator-url";
1050
1050
  var WORKER_CALLBACK_URL_OVERRIDE_HEADER = "x-deepline-worker-callback-url";
@@ -1054,7 +1054,7 @@ var ABSURD_RELEASE_OVERRIDE_HEADER = "x-deepline-absurd-release";
1054
1054
  var PREFERRED_RECEIPT_GATEWAY_MACHINE_ID_HEADER = "x-deepline-preferred-receipt-gateway-machine-id";
1055
1055
  var SYNTHETIC_RUN_HEADER = "x-deepline-synthetic-run";
1056
1056
 
1057
- // ../shared_libs/play-runtime/runtime-incident-drills.ts
1057
+ // ../play-runtime/runtime-incident-drills.ts
1058
1058
  var RUNTIME_TEST_FAULT_IDS = [
1059
1059
  "receipt_complete_write_fail",
1060
1060
  "receipt_fail_write_fail",
@@ -1302,7 +1302,7 @@ function runtimeTestFaultDrills() {
1302
1302
  return RUNTIME_INCIDENT_DRILL_CATALOG.filter(isRuntimeTestFaultDrill);
1303
1303
  }
1304
1304
 
1305
- // ../shared_libs/play-runtime/test-runtime-seams.ts
1305
+ // ../play-runtime/test-runtime-seams.ts
1306
1306
  var PLAY_RUNTIME_TEST_FAULT_HEADER = "x-deepline-test-fault";
1307
1307
  var SUPPORTED_RUNTIME_TEST_FAULTS = new Set(
1308
1308
  runtimeTestFaultDrills().map(({ id }) => id)
@@ -1917,7 +1917,7 @@ function withCoworkNetworkHint(message) {
1917
1917
  ${COWORK_NETWORK_HINT}`;
1918
1918
  }
1919
1919
 
1920
- // ../shared_libs/product-notifications/contract.ts
1920
+ // ../product-notifications/contract.ts
1921
1921
  var PRODUCT_NOTIFICATION_EVENT_CATALOG = [
1922
1922
  {
1923
1923
  id: "play.cron.succeeded",
@@ -1997,7 +1997,7 @@ function isTransientPlayStreamError(error) {
1997
1997
  );
1998
1998
  }
1999
1999
 
2000
- // ../shared_libs/play-runtime/live-events.ts
2000
+ // ../play-runtime/live-events.ts
2001
2001
  function resolveTimingWindow(input) {
2002
2002
  const startedAt = typeof input.startedAt === "number" && Number.isFinite(input.startedAt) ? input.startedAt : null;
2003
2003
  const completedAt = typeof input.completedAt === "number" && Number.isFinite(input.completedAt) ? input.completedAt : null;
@@ -2009,10 +2009,10 @@ function resolveTimingWindow(input) {
2009
2009
  };
2010
2010
  }
2011
2011
 
2012
- // ../shared_libs/play-runtime/run-failure.ts
2012
+ // ../play-runtime/run-failure.ts
2013
2013
  var PUBLIC_FAILURE_TEXT_BYTE_LIMIT = 64 * 1024;
2014
2014
 
2015
- // ../shared_libs/play-runtime/run-terminal-source.ts
2015
+ // ../play-runtime/run-terminal-source.ts
2016
2016
  var PLAY_RUN_LEDGER_EVENT_SOURCES = [
2017
2017
  "worker",
2018
2018
  "convex",
@@ -2025,7 +2025,7 @@ function normalizePlayRunLedgerTerminalSource(value) {
2025
2025
  ) ? value : null;
2026
2026
  }
2027
2027
 
2028
- // ../shared_libs/play-runtime/secret-redaction.ts
2028
+ // ../play-runtime/secret-redaction.ts
2029
2029
  var SECRET_REDACTION_PLACEHOLDER = "[REDACTED_SECRET]";
2030
2030
  var BEARER_TOKEN_RE = /\bBearer\s+[A-Za-z0-9._~+/=-]{12,}\b/g;
2031
2031
  var BASIC_CREDENTIAL_RE = /\bBasic\s+[A-Za-z0-9+/]{4,}={0,2}\b/g;
@@ -2158,7 +2158,7 @@ function createSecretRedactionContext(initialValues = []) {
2158
2158
  };
2159
2159
  }
2160
2160
 
2161
- // ../shared_libs/play-runtime/output-size-limits.ts
2161
+ // ../play-runtime/output-size-limits.ts
2162
2162
  var TERMINAL_RUN_RESULT_MAX_BYTES = 6 * 1024 * 1024;
2163
2163
  var LEDGER_TERMINAL_RESULT_MAX_BYTES = 256 * 1024;
2164
2164
  var CUSTOMER_OUTPUT_VALUE_MAX_BYTES = 5 * 1024 * 1024;
@@ -2171,10 +2171,10 @@ var RUNTIME_RECEIPT_WRITER_TARGET_BATCH_BYTES = 4 * 1024 * 1024;
2171
2171
  var RUNNER_POST_TERMINAL_DIAGNOSTIC_MAX_BYTES = 64 * 1024;
2172
2172
  var JSON_SIZE_LIMIT_REACHED = Symbol("JSON_SIZE_LIMIT_REACHED");
2173
2173
 
2174
- // ../shared_libs/play-runtime/ledger-safe-payload.ts
2174
+ // ../play-runtime/ledger-safe-payload.ts
2175
2175
  var ledgerIngressRedactor = createSecretRedactionContext();
2176
2176
 
2177
- // ../shared_libs/play-runtime/docflow-node-io.ts
2177
+ // ../play-runtime/docflow-node-io.ts
2178
2178
  var DOCFLOW_NODE_IO_LIMITS = {
2179
2179
  maxPaths: 16,
2180
2180
  maxDepth: 3,
@@ -2496,7 +2496,7 @@ function normalizePlayDocflowNodeIoState(value) {
2496
2496
  };
2497
2497
  }
2498
2498
 
2499
- // ../shared_libs/play-runtime/activity-observation.ts
2499
+ // ../play-runtime/activity-observation.ts
2500
2500
  function isRecord4(value) {
2501
2501
  return Boolean(value && typeof value === "object" && !Array.isArray(value));
2502
2502
  }
@@ -2771,7 +2771,7 @@ function projectPlayRunActivity(input) {
2771
2771
  return projection(fallback, now, normalizedStatus !== "waiting");
2772
2772
  }
2773
2773
 
2774
- // ../shared_libs/play-runtime/cell-provenance.ts
2774
+ // ../play-runtime/cell-provenance.ts
2775
2775
  function finiteNonNegativeInteger2(value) {
2776
2776
  if (typeof value !== "number" || !Number.isFinite(value) || value < 0) {
2777
2777
  return null;
@@ -2792,7 +2792,7 @@ function normalizeDatasetBornFrom(value) {
2792
2792
  return { table, rowCountIn };
2793
2793
  }
2794
2794
 
2795
- // ../shared_libs/play-runtime/run-ledger.ts
2795
+ // ../play-runtime/run-ledger.ts
2796
2796
  var LOG_TAIL_LIMIT = 100;
2797
2797
  function isRecord5(value) {
2798
2798
  return Boolean(value && typeof value === "object" && !Array.isArray(value));
@@ -3024,7 +3024,7 @@ function normalizeStepProgress(value) {
3024
3024
  };
3025
3025
  }
3026
3026
 
3027
- // ../shared_libs/play-runtime/run-lifecycle-policy.ts
3027
+ // ../play-runtime/run-lifecycle-policy.ts
3028
3028
  var TERMINAL_PLAY_RUN_STATUSES = /* @__PURE__ */ new Set([
3029
3029
  "completed",
3030
3030
  "failed",
@@ -3085,7 +3085,7 @@ function decodePlayRunPublicStatus(value) {
3085
3085
  }
3086
3086
  }
3087
3087
 
3088
- // ../shared_libs/play-runtime/run-snapshot-stream.ts
3088
+ // ../play-runtime/run-snapshot-stream.ts
3089
3089
  function normalizePlayRunLiveStatus(value) {
3090
3090
  return normalizePlayRunLifecycleStatus(value);
3091
3091
  }
@@ -3744,7 +3744,7 @@ async function* observeRunEvents(options) {
3744
3744
  }
3745
3745
  }
3746
3746
 
3747
- // ../shared_libs/integrations/theirstack-execution-policy.ts
3747
+ // ../../shared_libs/integrations/theirstack-execution-policy.ts
3748
3748
  var THEIRSTACK_SLOW_JOB_SEARCH_PROVIDER_TIMEOUT_MS = 135e3;
3749
3749
  var THEIRSTACK_SLOW_JOB_SEARCH_CLIENT_TIMEOUT_MS = 6e4 + THEIRSTACK_SLOW_JOB_SEARCH_PROVIDER_TIMEOUT_MS + 15e3;
3750
3750
  var THEIRSTACK_COMPANY_SEARCH_CLIENT_TIMEOUT_MS = 21e4;
@@ -3798,7 +3798,7 @@ function resolveTheirstackClientTimeoutMs(endpointId, payload) {
3798
3798
  return usesExtendedTheirstackJobSearchBudget(endpointId, payload) ? THEIRSTACK_SLOW_JOB_SEARCH_CLIENT_TIMEOUT_MS : null;
3799
3799
  }
3800
3800
 
3801
- // ../shared_libs/integrations/bettercontact-execution-policy.ts
3801
+ // ../../shared_libs/integrations/bettercontact-execution-policy.ts
3802
3802
  var BETTERCONTACT_LAUNCHER_CLIENT_TIMEOUT_MS = 12e4;
3803
3803
  var BETTERCONTACT_LAUNCHER_TOOL_IDS = /* @__PURE__ */ new Set([
3804
3804
  "bettercontact_enrich",
@@ -3808,15 +3808,17 @@ function usesExtendedBetterContactLauncherBudget(toolId) {
3808
3808
  return BETTERCONTACT_LAUNCHER_TOOL_IDS.has(toolId.trim().toLowerCase());
3809
3809
  }
3810
3810
 
3811
- // ../shared_libs/play-runtime/backend.ts
3811
+ // ../plays/artifact-types.ts
3812
+ var PLAY_ARTIFACT_KINDS = {
3813
+ cjsNode20: "cjs_node20"
3814
+ };
3815
+
3816
+ // ../play-runtime/backend.ts
3812
3817
  var PLAY_RUNTIME_BACKENDS = {
3813
3818
  localProcess: "local_process",
3814
3819
  daytona: "daytona",
3815
3820
  modal: "modal"
3816
3821
  };
3817
- var PLAY_ARTIFACT_KINDS = {
3818
- cjsNode20: "cjs_node20"
3819
- };
3820
3822
  var PLAY_BACKEND_DESCRIPTORS = {
3821
3823
  [PLAY_RUNTIME_BACKENDS.localProcess]: {
3822
3824
  id: PLAY_RUNTIME_BACKENDS.localProcess,
@@ -3835,7 +3837,7 @@ var PLAY_BACKEND_DESCRIPTORS = {
3835
3837
  }
3836
3838
  };
3837
3839
 
3838
- // ../shared_libs/play-runtime/runtime-environment.ts
3840
+ // ../play-runtime/runtime-environment.ts
3839
3841
  var PLAY_RUNTIME_ENVIRONMENTS = ["preview"];
3840
3842
  var PLAY_RUNTIME_NAMESPACE_PATTERN = /^[a-z][a-z0-9-]{0,30}$/;
3841
3843
  function normalizePlayRuntimeNamespace(value) {
@@ -3865,7 +3867,7 @@ function normalizePlayRuntimeEnvironment(value) {
3865
3867
  return typeof value === "string" && PLAY_RUNTIME_ENVIRONMENTS.includes(value) ? value : null;
3866
3868
  }
3867
3869
 
3868
- // ../shared_libs/play-runtime/tool-response-contract.ts
3870
+ // ../plays/tool-response-contract.ts
3869
3871
  var RAW_V2_TOOL_RESPONSE_CONTRACT = "raw-v2";
3870
3872
  function legacyRawFromToolResponseRawV2(rawV2, view, responseMeta) {
3871
3873
  const legacyRaw = view === "data" && rawV2 && typeof rawV2 === "object" && !Array.isArray(rawV2) ? rawV2.data : rawV2;
@@ -6799,7 +6801,7 @@ function defineMonitor(definition) {
6799
6801
  return definition;
6800
6802
  }
6801
6803
 
6802
- // ../shared_libs/plays/bootstrap-routes.ts
6804
+ // ../plays/bootstrap-routes.ts
6803
6805
  var DEEPLINE_TOOL_CATEGORIES = [
6804
6806
  "company_search",
6805
6807
  "people_search",
@@ -6884,7 +6886,7 @@ function formatPlayBootstrapFinderKindsForSentence() {
6884
6886
  return `${allButLast.join(", ")} or ${last}`;
6885
6887
  }
6886
6888
 
6887
- // ../shared_libs/play-runtime/email-status.ts
6889
+ // ../plays/email-status.ts
6888
6890
  function normalizeKey(value) {
6889
6891
  if (value == null) return null;
6890
6892
  if (typeof value === "boolean") return String(value);
@@ -6893,7 +6895,8 @@ function normalizeKey(value) {
6893
6895
  }
6894
6896
  function boolish(value) {
6895
6897
  if (typeof value === "boolean") return value;
6896
- if (typeof value === "number") return value === 1 ? true : value === 0 ? false : null;
6898
+ if (typeof value === "number")
6899
+ return value === 1 ? true : value === 0 ? false : null;
6897
6900
  if (typeof value !== "string") return null;
6898
6901
  const normalized = value.trim().toLowerCase();
6899
6902
  if (["true", "yes", "y", "1"].includes(normalized)) return true;
@@ -6924,11 +6927,15 @@ function mxClass(mxProvider, mxRecord) {
6924
6927
  if (/aspmx\.l\.google|google|g-suite|google workspace/.test(haystack)) {
6925
6928
  return "workspace_mailbox";
6926
6929
  }
6927
- if (/protection\.outlook|office365|microsoft|outlook|exchange online/.test(haystack)) {
6930
+ if (/protection\.outlook|office365|microsoft|outlook|exchange online/.test(
6931
+ haystack
6932
+ )) {
6928
6933
  return "workspace_mailbox";
6929
6934
  }
6930
- if (/gmail|yahoo|icloud|aol|hotmail/.test(haystack)) return "consumer_mailbox";
6931
- if (/postfix|exim|sendmail|zimbra|plesk|cpanel|mail\./.test(haystack)) return "on_prem";
6935
+ if (/gmail|yahoo|icloud|aol|hotmail/.test(haystack))
6936
+ return "consumer_mailbox";
6937
+ if (/postfix|exim|sendmail|zimbra|plesk|cpanel|mail\./.test(haystack))
6938
+ return "on_prem";
6932
6939
  return "unknown";
6933
6940
  }
6934
6941
  function entryForStatus(key, map) {
@@ -7003,7 +7010,7 @@ function buildEmailStatus({
7003
7010
  };
7004
7011
  }
7005
7012
 
7006
- // ../shared_libs/play-runtime/extractor-targets.ts
7013
+ // ../plays/extractor-targets.ts
7007
7014
  var JOB_CHANGE_STATUS_VALUES = [
7008
7015
  "moved",
7009
7016
  "no_change",
@@ -7055,7 +7062,7 @@ function isDeeplineExtractorTarget(value) {
7055
7062
  return value in DEEPLINE_EXTRACTOR_TARGET_DEFINITIONS;
7056
7063
  }
7057
7064
 
7058
- // ../shared_libs/plays/dataset.ts
7065
+ // ../plays/dataset.ts
7059
7066
  var PLAY_DATASET_BRAND2 = Symbol.for("deepline.play.dataset");
7060
7067
  var NODE_INSPECT_CUSTOM = Symbol.for("nodejs.util.inspect.custom");
7061
7068
  var residentRowsByDataset = /* @__PURE__ */ new WeakMap();
@@ -7412,7 +7419,7 @@ function createPlayDataset(rows, metadata) {
7412
7419
  });
7413
7420
  }
7414
7421
 
7415
- // ../shared_libs/plays/row-identity.ts
7422
+ // ../plays/row-identity.ts
7416
7423
  var POSTGRES_IDENTIFIER_MAX_LENGTH = 63;
7417
7424
  var MAP_KEY_NAMESPACE_MAX_LENGTH = POSTGRES_IDENTIFIER_MAX_LENGTH;
7418
7425
  var SHA256_INITIAL_HASH = [
@@ -7576,12 +7583,12 @@ function normalizeTableNamespace(value) {
7576
7583
  );
7577
7584
  }
7578
7585
 
7579
- // ../shared_libs/play-runtime/tool-result-paths.ts
7586
+ // ../play-runtime/tool-result-paths.ts
7580
7587
  function listNameFromDeclaredPath(path) {
7581
7588
  return String(path || "").split(".").filter(Boolean).at(-1)?.replace(/[^A-Za-z0-9_$]/g, "") || null;
7582
7589
  }
7583
7590
 
7584
- // ../shared_libs/play-runtime/tool-result.ts
7591
+ // ../play-runtime/tool-result.ts
7585
7592
  var SERIALIZED_TOOL_LIST_ROWS = Symbol("deepline.serialized_tool_list_rows");
7586
7593
  var DESCRIPTOR_SUFFIX = /_(status|type|score|count|id|verified|valid|confidence|quality|source)$/i;
7587
7594
  var COMPANY_SCOPED = /company/i;
@@ -8335,7 +8342,7 @@ function replaceAtPath(root, path, replacement) {
8335
8342
  return replace(root, 0);
8336
8343
  }
8337
8344
 
8338
- // ../shared_libs/play-runtime/query-result-dataset.ts
8345
+ // ../play-runtime/query-result-dataset.ts
8339
8346
  var QUERY_RESULT_DATASET_PAGE_SIZE = 1e3;
8340
8347
  function isCustomerDbDatasetTool(toolId) {
8341
8348
  return /^(?:customer_db_)?query_customer_db$/.test(toolId);
@@ -8350,7 +8357,7 @@ function isQueryResultDatasetTool(toolId) {
8350
8357
  return isCustomerDbDatasetTool(toolId) || isSnowflakeQueryDatasetTool(toolId) || isDatabricksQueryDatasetTool(toolId);
8351
8358
  }
8352
8359
 
8353
- // ../shared_libs/plays/input-contract-definition.ts
8360
+ // ../plays/input-contract-definition.ts
8354
8361
  function freezeInputSchema(schema) {
8355
8362
  const visited = /* @__PURE__ */ new WeakSet();
8356
8363
  const freeze = (value) => {