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.mjs CHANGED
@@ -11,7 +11,7 @@ import {
11
11
  import { homedir } from "os";
12
12
  import { dirname, isAbsolute, join, resolve } from "path";
13
13
 
14
- // ../shared_libs/tool-execution-error.ts
14
+ // ../plays/tool-execution-error.ts
15
15
  var DEEPLINE_ERROR_BRAND = Symbol.for("deepline.error.v1");
16
16
  var TOOL_EXECUTION_ERROR_BRAND = Symbol.for(
17
17
  "deepline.tool-execution-error.v1"
@@ -653,7 +653,7 @@ function resolveConfig(options) {
653
653
  };
654
654
  }
655
655
 
656
- // ../shared_libs/plays/artifact-contract-version.ts
656
+ // ../plays/artifact-contract-version.ts
657
657
  var CURRENT_PLAY_ARTIFACT_CONTRACT_VERSION = 2;
658
658
 
659
659
  // src/release.ts
@@ -702,7 +702,7 @@ var SDK_RELEASE = {
702
702
  // available at toolResponse.rawV2 while toolResponse.raw and all declared
703
703
  // getters keep their established compatibility behavior.
704
704
  // 0.3.1 deprecated the legacy `deepline enrich` command in favor of Plays.
705
- version: "0.3.45",
705
+ version: "0.3.47",
706
706
  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.",
707
707
  packageCapabilities: {
708
708
  updatePreferences: 1
@@ -967,7 +967,7 @@ function readSdkSkillsLocalVersion(baseUrl) {
967
967
  }
968
968
  }
969
969
 
970
- // ../shared_libs/play-runtime/coordinator-headers.ts
970
+ // ../play-runtime/coordinator-headers.ts
971
971
  var COORDINATOR_INTERNAL_TOKEN_HEADER = "x-deepline-internal-token";
972
972
  var COORDINATOR_URL_OVERRIDE_HEADER = "x-deepline-coordinator-url";
973
973
  var WORKER_CALLBACK_URL_OVERRIDE_HEADER = "x-deepline-worker-callback-url";
@@ -977,7 +977,7 @@ var ABSURD_RELEASE_OVERRIDE_HEADER = "x-deepline-absurd-release";
977
977
  var PREFERRED_RECEIPT_GATEWAY_MACHINE_ID_HEADER = "x-deepline-preferred-receipt-gateway-machine-id";
978
978
  var SYNTHETIC_RUN_HEADER = "x-deepline-synthetic-run";
979
979
 
980
- // ../shared_libs/play-runtime/runtime-incident-drills.ts
980
+ // ../play-runtime/runtime-incident-drills.ts
981
981
  var RUNTIME_TEST_FAULT_IDS = [
982
982
  "receipt_complete_write_fail",
983
983
  "receipt_fail_write_fail",
@@ -1225,7 +1225,7 @@ function runtimeTestFaultDrills() {
1225
1225
  return RUNTIME_INCIDENT_DRILL_CATALOG.filter(isRuntimeTestFaultDrill);
1226
1226
  }
1227
1227
 
1228
- // ../shared_libs/play-runtime/test-runtime-seams.ts
1228
+ // ../play-runtime/test-runtime-seams.ts
1229
1229
  var PLAY_RUNTIME_TEST_FAULT_HEADER = "x-deepline-test-fault";
1230
1230
  var SUPPORTED_RUNTIME_TEST_FAULTS = new Set(
1231
1231
  runtimeTestFaultDrills().map(({ id }) => id)
@@ -1840,7 +1840,7 @@ function withCoworkNetworkHint(message) {
1840
1840
  ${COWORK_NETWORK_HINT}`;
1841
1841
  }
1842
1842
 
1843
- // ../shared_libs/product-notifications/contract.ts
1843
+ // ../product-notifications/contract.ts
1844
1844
  var PRODUCT_NOTIFICATION_EVENT_CATALOG = [
1845
1845
  {
1846
1846
  id: "play.cron.succeeded",
@@ -1920,7 +1920,7 @@ function isTransientPlayStreamError(error) {
1920
1920
  );
1921
1921
  }
1922
1922
 
1923
- // ../shared_libs/play-runtime/live-events.ts
1923
+ // ../play-runtime/live-events.ts
1924
1924
  function resolveTimingWindow(input) {
1925
1925
  const startedAt = typeof input.startedAt === "number" && Number.isFinite(input.startedAt) ? input.startedAt : null;
1926
1926
  const completedAt = typeof input.completedAt === "number" && Number.isFinite(input.completedAt) ? input.completedAt : null;
@@ -1932,10 +1932,10 @@ function resolveTimingWindow(input) {
1932
1932
  };
1933
1933
  }
1934
1934
 
1935
- // ../shared_libs/play-runtime/run-failure.ts
1935
+ // ../play-runtime/run-failure.ts
1936
1936
  var PUBLIC_FAILURE_TEXT_BYTE_LIMIT = 64 * 1024;
1937
1937
 
1938
- // ../shared_libs/play-runtime/run-terminal-source.ts
1938
+ // ../play-runtime/run-terminal-source.ts
1939
1939
  var PLAY_RUN_LEDGER_EVENT_SOURCES = [
1940
1940
  "worker",
1941
1941
  "convex",
@@ -1948,7 +1948,7 @@ function normalizePlayRunLedgerTerminalSource(value) {
1948
1948
  ) ? value : null;
1949
1949
  }
1950
1950
 
1951
- // ../shared_libs/play-runtime/secret-redaction.ts
1951
+ // ../play-runtime/secret-redaction.ts
1952
1952
  var SECRET_REDACTION_PLACEHOLDER = "[REDACTED_SECRET]";
1953
1953
  var BEARER_TOKEN_RE = /\bBearer\s+[A-Za-z0-9._~+/=-]{12,}\b/g;
1954
1954
  var BASIC_CREDENTIAL_RE = /\bBasic\s+[A-Za-z0-9+/]{4,}={0,2}\b/g;
@@ -2081,7 +2081,7 @@ function createSecretRedactionContext(initialValues = []) {
2081
2081
  };
2082
2082
  }
2083
2083
 
2084
- // ../shared_libs/play-runtime/output-size-limits.ts
2084
+ // ../play-runtime/output-size-limits.ts
2085
2085
  var TERMINAL_RUN_RESULT_MAX_BYTES = 6 * 1024 * 1024;
2086
2086
  var LEDGER_TERMINAL_RESULT_MAX_BYTES = 256 * 1024;
2087
2087
  var CUSTOMER_OUTPUT_VALUE_MAX_BYTES = 5 * 1024 * 1024;
@@ -2094,10 +2094,10 @@ var RUNTIME_RECEIPT_WRITER_TARGET_BATCH_BYTES = 4 * 1024 * 1024;
2094
2094
  var RUNNER_POST_TERMINAL_DIAGNOSTIC_MAX_BYTES = 64 * 1024;
2095
2095
  var JSON_SIZE_LIMIT_REACHED = Symbol("JSON_SIZE_LIMIT_REACHED");
2096
2096
 
2097
- // ../shared_libs/play-runtime/ledger-safe-payload.ts
2097
+ // ../play-runtime/ledger-safe-payload.ts
2098
2098
  var ledgerIngressRedactor = createSecretRedactionContext();
2099
2099
 
2100
- // ../shared_libs/play-runtime/docflow-node-io.ts
2100
+ // ../play-runtime/docflow-node-io.ts
2101
2101
  var DOCFLOW_NODE_IO_LIMITS = {
2102
2102
  maxPaths: 16,
2103
2103
  maxDepth: 3,
@@ -2419,7 +2419,7 @@ function normalizePlayDocflowNodeIoState(value) {
2419
2419
  };
2420
2420
  }
2421
2421
 
2422
- // ../shared_libs/play-runtime/activity-observation.ts
2422
+ // ../play-runtime/activity-observation.ts
2423
2423
  function isRecord4(value) {
2424
2424
  return Boolean(value && typeof value === "object" && !Array.isArray(value));
2425
2425
  }
@@ -2694,7 +2694,7 @@ function projectPlayRunActivity(input) {
2694
2694
  return projection(fallback, now, normalizedStatus !== "waiting");
2695
2695
  }
2696
2696
 
2697
- // ../shared_libs/play-runtime/cell-provenance.ts
2697
+ // ../play-runtime/cell-provenance.ts
2698
2698
  function finiteNonNegativeInteger2(value) {
2699
2699
  if (typeof value !== "number" || !Number.isFinite(value) || value < 0) {
2700
2700
  return null;
@@ -2715,7 +2715,7 @@ function normalizeDatasetBornFrom(value) {
2715
2715
  return { table, rowCountIn };
2716
2716
  }
2717
2717
 
2718
- // ../shared_libs/play-runtime/run-ledger.ts
2718
+ // ../play-runtime/run-ledger.ts
2719
2719
  var LOG_TAIL_LIMIT = 100;
2720
2720
  function isRecord5(value) {
2721
2721
  return Boolean(value && typeof value === "object" && !Array.isArray(value));
@@ -2947,7 +2947,7 @@ function normalizeStepProgress(value) {
2947
2947
  };
2948
2948
  }
2949
2949
 
2950
- // ../shared_libs/play-runtime/run-lifecycle-policy.ts
2950
+ // ../play-runtime/run-lifecycle-policy.ts
2951
2951
  var TERMINAL_PLAY_RUN_STATUSES = /* @__PURE__ */ new Set([
2952
2952
  "completed",
2953
2953
  "failed",
@@ -3008,7 +3008,7 @@ function decodePlayRunPublicStatus(value) {
3008
3008
  }
3009
3009
  }
3010
3010
 
3011
- // ../shared_libs/play-runtime/run-snapshot-stream.ts
3011
+ // ../play-runtime/run-snapshot-stream.ts
3012
3012
  function normalizePlayRunLiveStatus(value) {
3013
3013
  return normalizePlayRunLifecycleStatus(value);
3014
3014
  }
@@ -3667,7 +3667,7 @@ async function* observeRunEvents(options) {
3667
3667
  }
3668
3668
  }
3669
3669
 
3670
- // ../shared_libs/integrations/theirstack-execution-policy.ts
3670
+ // ../../shared_libs/integrations/theirstack-execution-policy.ts
3671
3671
  var THEIRSTACK_SLOW_JOB_SEARCH_PROVIDER_TIMEOUT_MS = 135e3;
3672
3672
  var THEIRSTACK_SLOW_JOB_SEARCH_CLIENT_TIMEOUT_MS = 6e4 + THEIRSTACK_SLOW_JOB_SEARCH_PROVIDER_TIMEOUT_MS + 15e3;
3673
3673
  var THEIRSTACK_COMPANY_SEARCH_CLIENT_TIMEOUT_MS = 21e4;
@@ -3721,7 +3721,7 @@ function resolveTheirstackClientTimeoutMs(endpointId, payload) {
3721
3721
  return usesExtendedTheirstackJobSearchBudget(endpointId, payload) ? THEIRSTACK_SLOW_JOB_SEARCH_CLIENT_TIMEOUT_MS : null;
3722
3722
  }
3723
3723
 
3724
- // ../shared_libs/integrations/bettercontact-execution-policy.ts
3724
+ // ../../shared_libs/integrations/bettercontact-execution-policy.ts
3725
3725
  var BETTERCONTACT_LAUNCHER_CLIENT_TIMEOUT_MS = 12e4;
3726
3726
  var BETTERCONTACT_LAUNCHER_TOOL_IDS = /* @__PURE__ */ new Set([
3727
3727
  "bettercontact_enrich",
@@ -3731,15 +3731,17 @@ function usesExtendedBetterContactLauncherBudget(toolId) {
3731
3731
  return BETTERCONTACT_LAUNCHER_TOOL_IDS.has(toolId.trim().toLowerCase());
3732
3732
  }
3733
3733
 
3734
- // ../shared_libs/play-runtime/backend.ts
3734
+ // ../plays/artifact-types.ts
3735
+ var PLAY_ARTIFACT_KINDS = {
3736
+ cjsNode20: "cjs_node20"
3737
+ };
3738
+
3739
+ // ../play-runtime/backend.ts
3735
3740
  var PLAY_RUNTIME_BACKENDS = {
3736
3741
  localProcess: "local_process",
3737
3742
  daytona: "daytona",
3738
3743
  modal: "modal"
3739
3744
  };
3740
- var PLAY_ARTIFACT_KINDS = {
3741
- cjsNode20: "cjs_node20"
3742
- };
3743
3745
  var PLAY_BACKEND_DESCRIPTORS = {
3744
3746
  [PLAY_RUNTIME_BACKENDS.localProcess]: {
3745
3747
  id: PLAY_RUNTIME_BACKENDS.localProcess,
@@ -3758,7 +3760,7 @@ var PLAY_BACKEND_DESCRIPTORS = {
3758
3760
  }
3759
3761
  };
3760
3762
 
3761
- // ../shared_libs/play-runtime/runtime-environment.ts
3763
+ // ../play-runtime/runtime-environment.ts
3762
3764
  var PLAY_RUNTIME_ENVIRONMENTS = ["preview"];
3763
3765
  var PLAY_RUNTIME_NAMESPACE_PATTERN = /^[a-z][a-z0-9-]{0,30}$/;
3764
3766
  function normalizePlayRuntimeNamespace(value) {
@@ -3788,7 +3790,7 @@ function normalizePlayRuntimeEnvironment(value) {
3788
3790
  return typeof value === "string" && PLAY_RUNTIME_ENVIRONMENTS.includes(value) ? value : null;
3789
3791
  }
3790
3792
 
3791
- // ../shared_libs/play-runtime/tool-response-contract.ts
3793
+ // ../plays/tool-response-contract.ts
3792
3794
  var RAW_V2_TOOL_RESPONSE_CONTRACT = "raw-v2";
3793
3795
  function legacyRawFromToolResponseRawV2(rawV2, view, responseMeta) {
3794
3796
  const legacyRaw = view === "data" && rawV2 && typeof rawV2 === "object" && !Array.isArray(rawV2) ? rawV2.data : rawV2;
@@ -6722,7 +6724,7 @@ function defineMonitor(definition) {
6722
6724
  return definition;
6723
6725
  }
6724
6726
 
6725
- // ../shared_libs/plays/bootstrap-routes.ts
6727
+ // ../plays/bootstrap-routes.ts
6726
6728
  var DEEPLINE_TOOL_CATEGORIES = [
6727
6729
  "company_search",
6728
6730
  "people_search",
@@ -6807,7 +6809,7 @@ function formatPlayBootstrapFinderKindsForSentence() {
6807
6809
  return `${allButLast.join(", ")} or ${last}`;
6808
6810
  }
6809
6811
 
6810
- // ../shared_libs/play-runtime/email-status.ts
6812
+ // ../plays/email-status.ts
6811
6813
  function normalizeKey(value) {
6812
6814
  if (value == null) return null;
6813
6815
  if (typeof value === "boolean") return String(value);
@@ -6816,7 +6818,8 @@ function normalizeKey(value) {
6816
6818
  }
6817
6819
  function boolish(value) {
6818
6820
  if (typeof value === "boolean") return value;
6819
- if (typeof value === "number") return value === 1 ? true : value === 0 ? false : null;
6821
+ if (typeof value === "number")
6822
+ return value === 1 ? true : value === 0 ? false : null;
6820
6823
  if (typeof value !== "string") return null;
6821
6824
  const normalized = value.trim().toLowerCase();
6822
6825
  if (["true", "yes", "y", "1"].includes(normalized)) return true;
@@ -6847,11 +6850,15 @@ function mxClass(mxProvider, mxRecord) {
6847
6850
  if (/aspmx\.l\.google|google|g-suite|google workspace/.test(haystack)) {
6848
6851
  return "workspace_mailbox";
6849
6852
  }
6850
- if (/protection\.outlook|office365|microsoft|outlook|exchange online/.test(haystack)) {
6853
+ if (/protection\.outlook|office365|microsoft|outlook|exchange online/.test(
6854
+ haystack
6855
+ )) {
6851
6856
  return "workspace_mailbox";
6852
6857
  }
6853
- if (/gmail|yahoo|icloud|aol|hotmail/.test(haystack)) return "consumer_mailbox";
6854
- if (/postfix|exim|sendmail|zimbra|plesk|cpanel|mail\./.test(haystack)) return "on_prem";
6858
+ if (/gmail|yahoo|icloud|aol|hotmail/.test(haystack))
6859
+ return "consumer_mailbox";
6860
+ if (/postfix|exim|sendmail|zimbra|plesk|cpanel|mail\./.test(haystack))
6861
+ return "on_prem";
6855
6862
  return "unknown";
6856
6863
  }
6857
6864
  function entryForStatus(key, map) {
@@ -6926,7 +6933,7 @@ function buildEmailStatus({
6926
6933
  };
6927
6934
  }
6928
6935
 
6929
- // ../shared_libs/play-runtime/extractor-targets.ts
6936
+ // ../plays/extractor-targets.ts
6930
6937
  var JOB_CHANGE_STATUS_VALUES = [
6931
6938
  "moved",
6932
6939
  "no_change",
@@ -6978,7 +6985,7 @@ function isDeeplineExtractorTarget(value) {
6978
6985
  return value in DEEPLINE_EXTRACTOR_TARGET_DEFINITIONS;
6979
6986
  }
6980
6987
 
6981
- // ../shared_libs/plays/dataset.ts
6988
+ // ../plays/dataset.ts
6982
6989
  var PLAY_DATASET_BRAND2 = Symbol.for("deepline.play.dataset");
6983
6990
  var NODE_INSPECT_CUSTOM = Symbol.for("nodejs.util.inspect.custom");
6984
6991
  var residentRowsByDataset = /* @__PURE__ */ new WeakMap();
@@ -7335,7 +7342,7 @@ function createPlayDataset(rows, metadata) {
7335
7342
  });
7336
7343
  }
7337
7344
 
7338
- // ../shared_libs/plays/row-identity.ts
7345
+ // ../plays/row-identity.ts
7339
7346
  var POSTGRES_IDENTIFIER_MAX_LENGTH = 63;
7340
7347
  var MAP_KEY_NAMESPACE_MAX_LENGTH = POSTGRES_IDENTIFIER_MAX_LENGTH;
7341
7348
  var SHA256_INITIAL_HASH = [
@@ -7499,12 +7506,12 @@ function normalizeTableNamespace(value) {
7499
7506
  );
7500
7507
  }
7501
7508
 
7502
- // ../shared_libs/play-runtime/tool-result-paths.ts
7509
+ // ../play-runtime/tool-result-paths.ts
7503
7510
  function listNameFromDeclaredPath(path) {
7504
7511
  return String(path || "").split(".").filter(Boolean).at(-1)?.replace(/[^A-Za-z0-9_$]/g, "") || null;
7505
7512
  }
7506
7513
 
7507
- // ../shared_libs/play-runtime/tool-result.ts
7514
+ // ../play-runtime/tool-result.ts
7508
7515
  var SERIALIZED_TOOL_LIST_ROWS = Symbol("deepline.serialized_tool_list_rows");
7509
7516
  var DESCRIPTOR_SUFFIX = /_(status|type|score|count|id|verified|valid|confidence|quality|source)$/i;
7510
7517
  var COMPANY_SCOPED = /company/i;
@@ -8258,7 +8265,7 @@ function replaceAtPath(root, path, replacement) {
8258
8265
  return replace(root, 0);
8259
8266
  }
8260
8267
 
8261
- // ../shared_libs/play-runtime/query-result-dataset.ts
8268
+ // ../play-runtime/query-result-dataset.ts
8262
8269
  var QUERY_RESULT_DATASET_PAGE_SIZE = 1e3;
8263
8270
  function isCustomerDbDatasetTool(toolId) {
8264
8271
  return /^(?:customer_db_)?query_customer_db$/.test(toolId);
@@ -8273,7 +8280,7 @@ function isQueryResultDatasetTool(toolId) {
8273
8280
  return isCustomerDbDatasetTool(toolId) || isSnowflakeQueryDatasetTool(toolId) || isDatabricksQueryDatasetTool(toolId);
8274
8281
  }
8275
8282
 
8276
- // ../shared_libs/plays/input-contract-definition.ts
8283
+ // ../plays/input-contract-definition.ts
8277
8284
  function freezeInputSchema(schema) {
8278
8285
  const visited = /* @__PURE__ */ new WeakSet();
8279
8286
  const freeze = (value) => {
@@ -31,6 +31,7 @@
31
31
  "dist/bundling-sources/shared_libs/observability/tracing.ts",
32
32
  "dist/bundling-sources/shared_libs/observability/worker-telemetry.ts",
33
33
  "dist/bundling-sources/shared_libs/play-data-plane/column-names.ts",
34
+ "dist/bundling-sources/shared_libs/play-data-plane/contracts.ts",
34
35
  "dist/bundling-sources/shared_libs/play-data-plane/index.ts",
35
36
  "dist/bundling-sources/shared_libs/play-data-plane/sheet-contract.ts",
36
37
  "dist/bundling-sources/shared_libs/play-runtime/activity-observation.ts",
@@ -146,6 +147,7 @@
146
147
  "dist/bundling-sources/shared_libs/play-runtime/runtime-constants.ts",
147
148
  "dist/bundling-sources/shared_libs/play-runtime/runtime-constraints.ts",
148
149
  "dist/bundling-sources/shared_libs/play-runtime/runtime-contract.ts",
150
+ "dist/bundling-sources/shared_libs/play-runtime/runtime-env.ts",
149
151
  "dist/bundling-sources/shared_libs/play-runtime/runtime-environment.ts",
150
152
  "dist/bundling-sources/shared_libs/play-runtime/runtime-incident-drills.ts",
151
153
  "dist/bundling-sources/shared_libs/play-runtime/runtime-infra-mode.ts",
@@ -193,7 +195,6 @@
193
195
  "dist/bundling-sources/shared_libs/play-runtime/tool-execute-retry-policy.ts",
194
196
  "dist/bundling-sources/shared_libs/play-runtime/tool-execution-outcome.ts",
195
197
  "dist/bundling-sources/shared_libs/play-runtime/tool-http-errors.ts",
196
- "dist/bundling-sources/shared_libs/play-runtime/tool-response-contract.ts",
197
198
  "dist/bundling-sources/shared_libs/play-runtime/tool-result-paths.ts",
198
199
  "dist/bundling-sources/shared_libs/play-runtime/tool-result-types.ts",
199
200
  "dist/bundling-sources/shared_libs/play-runtime/tool-result.ts",
@@ -212,28 +213,37 @@
212
213
  "dist/bundling-sources/shared_libs/plays/bootstrap-routes.ts",
213
214
  "dist/bundling-sources/shared_libs/plays/bundling/index.ts",
214
215
  "dist/bundling-sources/shared_libs/plays/bundling/limits.ts",
216
+ "dist/bundling-sources/shared_libs/plays/cell-staleness.ts",
215
217
  "dist/bundling-sources/shared_libs/plays/compiler-manifest.ts",
216
218
  "dist/bundling-sources/shared_libs/plays/contracts.ts",
219
+ "dist/bundling-sources/shared_libs/plays/core.ts",
217
220
  "dist/bundling-sources/shared_libs/plays/dataset-summary.ts",
218
221
  "dist/bundling-sources/shared_libs/plays/dataset.ts",
219
222
  "dist/bundling-sources/shared_libs/plays/definition.ts",
220
223
  "dist/bundling-sources/shared_libs/plays/docflow-binding-owner.ts",
221
224
  "dist/bundling-sources/shared_libs/plays/docflow-binding.ts",
222
225
  "dist/bundling-sources/shared_libs/plays/docflow.ts",
226
+ "dist/bundling-sources/shared_libs/plays/email-status.ts",
223
227
  "dist/bundling-sources/shared_libs/plays/enrich-compat-adapter.ts",
224
228
  "dist/bundling-sources/shared_libs/plays/enrich-play-compiler.ts",
229
+ "dist/bundling-sources/shared_libs/plays/extractor-targets.ts",
225
230
  "dist/bundling-sources/shared_libs/plays/file-refs.ts",
226
231
  "dist/bundling-sources/shared_libs/plays/input-contract-definition.ts",
227
232
  "dist/bundling-sources/shared_libs/plays/input-contract.ts",
228
233
  "dist/bundling-sources/shared_libs/plays/play-exports.ts",
229
234
  "dist/bundling-sources/shared_libs/plays/resolve-static-pipeline.ts",
230
235
  "dist/bundling-sources/shared_libs/plays/row-identity.ts",
236
+ "dist/bundling-sources/shared_libs/plays/runtime-constraints.ts",
231
237
  "dist/bundling-sources/shared_libs/plays/runtime-validation.ts",
238
+ "dist/bundling-sources/shared_libs/plays/sandbox-runtime-limits.ts",
232
239
  "dist/bundling-sources/shared_libs/plays/secret-guardrails.ts",
233
240
  "dist/bundling-sources/shared_libs/plays/static-pipeline-storage-codec.ts",
234
241
  "dist/bundling-sources/shared_libs/plays/static-pipeline.ts",
235
242
  "dist/bundling-sources/shared_libs/plays/tool-category-descriptions.ts",
236
243
  "dist/bundling-sources/shared_libs/plays/tool-codegen.ts",
244
+ "dist/bundling-sources/shared_libs/plays/tool-execution-error.ts",
245
+ "dist/bundling-sources/shared_libs/plays/tool-response-contract.ts",
246
+ "dist/bundling-sources/shared_libs/plays/tool-result-types.ts",
237
247
  "dist/bundling-sources/shared_libs/plays/ts-ast.ts",
238
248
  "dist/bundling-sources/shared_libs/plays/user-code-safety.ts",
239
249
  "dist/bundling-sources/shared_libs/product-notifications/contract.ts",
@@ -247,8 +257,8 @@
247
257
  "dist/cli/index.js",
248
258
  "dist/cli/index.mjs",
249
259
  "dist/cli/text-imports.d.ts",
250
- "dist/compiler-manifest-DwYe2C2S.d.mts",
251
- "dist/compiler-manifest-DwYe2C2S.d.ts",
260
+ "dist/compiler-manifest-BuoqasqI.d.mts",
261
+ "dist/compiler-manifest-BuoqasqI.d.ts",
252
262
  "dist/helpers.d.mts",
253
263
  "dist/helpers.d.ts",
254
264
  "dist/helpers.js",
@@ -1,65 +1,8 @@
1
1
  /// <reference path="./text-imports.d.ts" />
2
- import { T as ToolExecutionErrorSchemaVersion, P as PlayAuthoringContractEdition, a as PlayArtifactKind$1, b as PlaySandboxRuntimeDeclaration, c as PlayCompilerManifest } from '../compiler-manifest-DwYe2C2S.mjs';
3
- export { d as PLAY_ARTIFACT_KINDS } from '../compiler-manifest-DwYe2C2S.mjs';
2
+ import { P as PlayArtifactKind, a as PlayBundleArtifact, b as PlaySandboxRuntimeDeclaration, c as PlayCompilerManifest } from '../compiler-manifest-BuoqasqI.mjs';
3
+ export { d as PLAY_ARTIFACT_KINDS, e as PlayArtifactCompatibility, f as PlayImportPolicy, g as PlayPackageImport, h as PlayRuntimeFeature } from '../compiler-manifest-BuoqasqI.mjs';
4
4
  import '@sinclair/typebox';
5
5
 
6
- /**
7
- * Public tool-response contracts shared by the API, SDK, Play bundler, and
8
- * runtime. This is a versioned response transformation contract: a change to
9
- * the persisted public tool-result shape must introduce a new value here and
10
- * have newly built Play artifacts select it. Receipt-cache revisions are
11
- * intentionally separate: ordinary response-contract changes do not refresh
12
- * durable receipts unless the response transformation changed as well.
13
- */
14
- declare const V2_TOOL_RESPONSE_CONTRACT: "v2-tool-response";
15
- declare const RAW_V2_TOOL_RESPONSE_CONTRACT: "raw-v2";
16
- type ToolResponseContract = typeof V2_TOOL_RESPONSE_CONTRACT | typeof RAW_V2_TOOL_RESPONSE_CONTRACT;
17
-
18
- type PlayPackageImport = {
19
- name: string;
20
- version: string | null;
21
- };
22
- type PlayImportPolicy = {
23
- localFiles: string[];
24
- nodeBuiltins: string[];
25
- packages: PlayPackageImport[];
26
- };
27
- type PlayRuntimeFeature = 'artifact_storage' | 'checkpoint_resume' | 'durable_sleep' | 'packaged_files';
28
- type PlayArtifactCompatibility = {
29
- apiVersion: number;
30
- artifactVersion: number;
31
- minRunnerVersion: number;
32
- runtimeFeatures: PlayRuntimeFeature[];
33
- runtimeBackend?: string | null;
34
- /** Missing preserves the legacy schema used before this field existed. */
35
- toolErrorSchemaVersion?: ToolExecutionErrorSchemaVersion;
36
- /** Missing preserves edition 1 for artifacts created before authoring contracts were pinned. */
37
- authoringContractEdition?: PlayAuthoringContractEdition;
38
- /** Missing preserves the raw-only V2 execute response contract. */
39
- toolResponseContract?: ToolResponseContract;
40
- /** Missing preserves the receipt namespace of artifacts created before this revision existed. */
41
- toolResponseReceiptRevision?: string;
42
- };
43
- /** The only executable Play artifact contract. */
44
- type PlayArtifactKind = 'cjs_node20';
45
- type PlayBundleArtifact = {
46
- codeFormat: 'cjs_module';
47
- /** Defaults to cjs_node20 when not present on legacy Node artifacts. */
48
- artifactKind?: PlayArtifactKind;
49
- entryFile: string;
50
- virtualFilename: string;
51
- sourceHash: string;
52
- graphHash: string;
53
- artifactHash: string;
54
- sourceMapHash: string;
55
- bundledCode: string;
56
- sourceMap: string;
57
- importPolicy: PlayImportPolicy;
58
- compatibility: PlayArtifactCompatibility;
59
- generatedAt: number;
60
- cacheHit: boolean;
61
- };
62
-
63
6
  type ImportedPlayDependency = {
64
7
  filePath: string;
65
8
  playName: string;
@@ -121,11 +64,11 @@ type BundledPlayFileResult = BundledPlayFileSuccess | BundledPlayFileFailure;
121
64
  declare function extractDefinedPlayName(sourceCode: string): string | null;
122
65
  type BundlePlayFileOptions = {
123
66
  /** Must be `cjs_node20`; retained as an explicit compile-contract assertion. */
124
- target?: PlayArtifactKind$1;
67
+ target?: PlayArtifactKind;
125
68
  exportName?: string;
126
69
  };
127
70
 
128
71
  declare function createSdkPlayBundlingAdapter(): PlayBundlingAdapter;
129
72
  declare function bundlePlayFile(filePath: string, options?: BundlePlayFileOptions): Promise<BundledPlayFileResult>;
130
73
 
131
- export { type BundlePlayFileOptions, type BundledPlayFileResult, type BundledPlayFileSuccess, type ImportedPlayDependency, type PlayArtifactCompatibility, type PlayBundleArtifact, type PlayImportPolicy, type PlayLocalFileDiscoveryError, type PlayLocalFileReference, type PlayPackageImport, type PlayRuntimeFeature, bundlePlayFile, createSdkPlayBundlingAdapter, extractDefinedPlayName };
74
+ export { type BundlePlayFileOptions, type BundledPlayFileResult, type BundledPlayFileSuccess, type ImportedPlayDependency, PlayBundleArtifact, type PlayLocalFileDiscoveryError, type PlayLocalFileReference, bundlePlayFile, createSdkPlayBundlingAdapter, extractDefinedPlayName };
@@ -1,65 +1,8 @@
1
1
  /// <reference path="./text-imports.d.ts" />
2
- import { T as ToolExecutionErrorSchemaVersion, P as PlayAuthoringContractEdition, a as PlayArtifactKind$1, b as PlaySandboxRuntimeDeclaration, c as PlayCompilerManifest } from '../compiler-manifest-DwYe2C2S.js';
3
- export { d as PLAY_ARTIFACT_KINDS } from '../compiler-manifest-DwYe2C2S.js';
2
+ import { P as PlayArtifactKind, a as PlayBundleArtifact, b as PlaySandboxRuntimeDeclaration, c as PlayCompilerManifest } from '../compiler-manifest-BuoqasqI.js';
3
+ export { d as PLAY_ARTIFACT_KINDS, e as PlayArtifactCompatibility, f as PlayImportPolicy, g as PlayPackageImport, h as PlayRuntimeFeature } from '../compiler-manifest-BuoqasqI.js';
4
4
  import '@sinclair/typebox';
5
5
 
6
- /**
7
- * Public tool-response contracts shared by the API, SDK, Play bundler, and
8
- * runtime. This is a versioned response transformation contract: a change to
9
- * the persisted public tool-result shape must introduce a new value here and
10
- * have newly built Play artifacts select it. Receipt-cache revisions are
11
- * intentionally separate: ordinary response-contract changes do not refresh
12
- * durable receipts unless the response transformation changed as well.
13
- */
14
- declare const V2_TOOL_RESPONSE_CONTRACT: "v2-tool-response";
15
- declare const RAW_V2_TOOL_RESPONSE_CONTRACT: "raw-v2";
16
- type ToolResponseContract = typeof V2_TOOL_RESPONSE_CONTRACT | typeof RAW_V2_TOOL_RESPONSE_CONTRACT;
17
-
18
- type PlayPackageImport = {
19
- name: string;
20
- version: string | null;
21
- };
22
- type PlayImportPolicy = {
23
- localFiles: string[];
24
- nodeBuiltins: string[];
25
- packages: PlayPackageImport[];
26
- };
27
- type PlayRuntimeFeature = 'artifact_storage' | 'checkpoint_resume' | 'durable_sleep' | 'packaged_files';
28
- type PlayArtifactCompatibility = {
29
- apiVersion: number;
30
- artifactVersion: number;
31
- minRunnerVersion: number;
32
- runtimeFeatures: PlayRuntimeFeature[];
33
- runtimeBackend?: string | null;
34
- /** Missing preserves the legacy schema used before this field existed. */
35
- toolErrorSchemaVersion?: ToolExecutionErrorSchemaVersion;
36
- /** Missing preserves edition 1 for artifacts created before authoring contracts were pinned. */
37
- authoringContractEdition?: PlayAuthoringContractEdition;
38
- /** Missing preserves the raw-only V2 execute response contract. */
39
- toolResponseContract?: ToolResponseContract;
40
- /** Missing preserves the receipt namespace of artifacts created before this revision existed. */
41
- toolResponseReceiptRevision?: string;
42
- };
43
- /** The only executable Play artifact contract. */
44
- type PlayArtifactKind = 'cjs_node20';
45
- type PlayBundleArtifact = {
46
- codeFormat: 'cjs_module';
47
- /** Defaults to cjs_node20 when not present on legacy Node artifacts. */
48
- artifactKind?: PlayArtifactKind;
49
- entryFile: string;
50
- virtualFilename: string;
51
- sourceHash: string;
52
- graphHash: string;
53
- artifactHash: string;
54
- sourceMapHash: string;
55
- bundledCode: string;
56
- sourceMap: string;
57
- importPolicy: PlayImportPolicy;
58
- compatibility: PlayArtifactCompatibility;
59
- generatedAt: number;
60
- cacheHit: boolean;
61
- };
62
-
63
6
  type ImportedPlayDependency = {
64
7
  filePath: string;
65
8
  playName: string;
@@ -121,11 +64,11 @@ type BundledPlayFileResult = BundledPlayFileSuccess | BundledPlayFileFailure;
121
64
  declare function extractDefinedPlayName(sourceCode: string): string | null;
122
65
  type BundlePlayFileOptions = {
123
66
  /** Must be `cjs_node20`; retained as an explicit compile-contract assertion. */
124
- target?: PlayArtifactKind$1;
67
+ target?: PlayArtifactKind;
125
68
  exportName?: string;
126
69
  };
127
70
 
128
71
  declare function createSdkPlayBundlingAdapter(): PlayBundlingAdapter;
129
72
  declare function bundlePlayFile(filePath: string, options?: BundlePlayFileOptions): Promise<BundledPlayFileResult>;
130
73
 
131
- export { type BundlePlayFileOptions, type BundledPlayFileResult, type BundledPlayFileSuccess, type ImportedPlayDependency, type PlayArtifactCompatibility, type PlayBundleArtifact, type PlayImportPolicy, type PlayLocalFileDiscoveryError, type PlayLocalFileReference, type PlayPackageImport, type PlayRuntimeFeature, bundlePlayFile, createSdkPlayBundlingAdapter, extractDefinedPlayName };
74
+ export { type BundlePlayFileOptions, type BundledPlayFileResult, type BundledPlayFileSuccess, type ImportedPlayDependency, PlayBundleArtifact, type PlayLocalFileDiscoveryError, type PlayLocalFileReference, bundlePlayFile, createSdkPlayBundlingAdapter, extractDefinedPlayName };