deepline 0.3.406 → 0.3.408

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 (130) hide show
  1. package/dist/bundling-sources/sdk/src/client.ts +56 -57
  2. package/dist/bundling-sources/sdk/src/play.ts +21 -5
  3. package/dist/bundling-sources/sdk/src/release.ts +1 -1
  4. package/dist/bundling-sources/sdk/src/types.ts +27 -3
  5. package/dist/bundling-sources/shared_libs/play-runtime/admission-timings.ts +64 -0
  6. package/dist/bundling-sources/shared_libs/play-runtime/context.ts +11 -1
  7. package/dist/bundling-sources/shared_libs/play-runtime/modal-runtime-config.ts +1 -4
  8. package/dist/bundling-sources/shared_libs/play-runtime/play-runs/projection/gateway-adapter.ts +4 -0
  9. package/dist/bundling-sources/shared_libs/play-runtime/runner-app/index.ts +2 -0
  10. package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/backends/local-process.ts +15 -6
  11. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/absurd-runtime-worker.ts +1 -0
  12. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/postgres.ts +275 -73
  13. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/run-ledger-outbox-recovery.ts +22 -4
  14. package/dist/bundling-sources/shared_libs/play-runtime/tool-http-errors.ts +10 -4
  15. package/dist/bundling-sources/shared_libs/play-runtime/tool-result.ts +72 -0
  16. package/dist/bundling-sources/shared_libs/play-runtime/webhook-receipt-source-commit-retry.ts +90 -0
  17. package/dist/bundling-sources/shared_libs/play-runtime/worker-api-types.ts +5 -0
  18. package/dist/bundling-sources/shared_libs/plays/authoring-contract.ts +6 -1
  19. package/dist/bundling-sources/shared_libs/plays/tool-result-types.ts +6 -0
  20. package/dist/cli/auth-3GB2K636.js +40 -0
  21. package/dist/cli/{auth-U7LIMXIS.mjs → auth-UVD3CUBB.mjs} +4 -4
  22. package/dist/cli/{billing-KGGS3444.mjs → billing-BZVTXXLM.mjs} +23 -16
  23. package/dist/cli/{billing-5ABVIJFU.js → billing-BZVYAF6T.js} +92 -85
  24. package/dist/cli/{chunk-KPU53YBB.js → chunk-2XXXFPTD.js} +67 -67
  25. package/dist/cli/{chunk-FQBKK5DG.js → chunk-3ZB6IIA7.js} +26 -26
  26. package/dist/cli/{chunk-5IGBBYXH.mjs → chunk-4CFULMRB.mjs} +73 -4
  27. package/dist/cli/{chunk-OPHLT4TM.mjs → chunk-4QFT5LGV.mjs} +2 -2
  28. package/dist/cli/{chunk-W2BAO4OR.js → chunk-4RNDKFNQ.js} +2 -2
  29. package/dist/cli/{chunk-GAMFK2ZP.mjs → chunk-67RWR34T.mjs} +10 -3
  30. package/dist/cli/{chunk-APLRSERF.js → chunk-AUMD2VXP.js} +60 -63
  31. package/dist/cli/{chunk-N6DJQQ2S.js → chunk-BRJUESQV.js} +50 -50
  32. package/dist/cli/{chunk-W3ZNQE5Y.js → chunk-D6FFBSM5.js} +1 -1
  33. package/dist/cli/{chunk-AYHLUHE5.js → chunk-E3PJF6YP.js} +6 -2
  34. package/dist/cli/{chunk-IE6IKRQA.js → chunk-ECVLPS67.js} +15 -15
  35. package/dist/cli/{chunk-QJBJZVG6.js → chunk-HQY2SG3K.js} +15 -8
  36. package/dist/cli/{chunk-2OFPPAUY.mjs → chunk-I3DHIXVJ.mjs} +4 -4
  37. package/dist/cli/{chunk-RXDJKAM2.mjs → chunk-IOHRWLQE.mjs} +6 -6
  38. package/dist/cli/{chunk-2MLY2ZBT.mjs → chunk-IWBXJDZA.mjs} +2 -2
  39. package/dist/cli/{chunk-URWF7NGQ.js → chunk-J5PTX66Y.js} +28 -14
  40. package/dist/cli/{chunk-7ZMVAV2B.mjs → chunk-LOYISF7S.mjs} +55 -58
  41. package/dist/cli/{chunk-T7YF4MQH.mjs → chunk-MJELBQBU.mjs} +4 -4
  42. package/dist/cli/{chunk-WJYPBHTE.js → chunk-OSFWFV72.js} +11 -4
  43. package/dist/cli/{chunk-ZI2ZNDJK.mjs → chunk-PYZZMAJQ.mjs} +28 -14
  44. package/dist/cli/{chunk-N43PX2CA.js → chunk-Q3LFI3VH.js} +8 -8
  45. package/dist/cli/{chunk-NYDRX6JJ.js → chunk-Q3PUHXOY.js} +99 -30
  46. package/dist/cli/{chunk-YSAZVLJD.js → chunk-QUAQX3FQ.js} +4 -4
  47. package/dist/cli/{chunk-4REBZQNK.js → chunk-RWCY6YI2.js} +53 -53
  48. package/dist/cli/{chunk-CGX4NSS3.mjs → chunk-SD7MXAJA.mjs} +1 -1
  49. package/dist/cli/{chunk-UFS752TU.mjs → chunk-SJVVBWRL.mjs} +5 -1
  50. package/dist/cli/{chunk-V3OTRWVK.mjs → chunk-URACNNLO.mjs} +2 -2
  51. package/dist/cli/{chunk-WXLOW623.mjs → chunk-WPAB4DCU.mjs} +14 -7
  52. package/dist/cli/{chunk-42RUJLQI.mjs → chunk-WTT6CLED.mjs} +1 -1
  53. package/dist/cli/{chunk-YLV6PT6B.mjs → chunk-XXLXOUUU.mjs} +1 -1
  54. package/dist/cli/{chunk-77UGRG6X.mjs → chunk-YMOFWHGO.mjs} +3 -3
  55. package/dist/cli/{chunk-EKS2FXL5.js → chunk-ZBABPK6Y.js} +8 -8
  56. package/dist/cli/command-docs.js +2 -2
  57. package/dist/cli/command-docs.mjs +1 -1
  58. package/dist/cli/{csv-HXJAAW3H.mjs → csv-WPSXG6ZZ.mjs} +3 -3
  59. package/dist/cli/{csv-U36TIOKU.js → csv-XLGLHJ6P.js} +12 -12
  60. package/dist/cli/{db-T5MLQQWJ.js → db-5PTNJG4X.js} +25 -25
  61. package/dist/cli/{db-GRWD3JAC.mjs → db-ABS57ABJ.mjs} +4 -4
  62. package/dist/cli/{describe-NFX6THJE.js → describe-EZS6PQXA.js} +11 -11
  63. package/dist/cli/{describe-HXFEIZFO.mjs → describe-PVWQJ2PB.mjs} +7 -7
  64. package/dist/cli/describe-core.d.mts +2 -2
  65. package/dist/cli/describe-core.d.ts +2 -2
  66. package/dist/cli/{executions-KBHTDL3A.js → executions-FNTAFQ7Y.js} +6 -6
  67. package/dist/cli/{executions-YGOS5E44.mjs → executions-OKJGATQZ.mjs} +4 -4
  68. package/dist/cli/{feedback-VP3GWJIH.js → feedback-6YBOMSUA.js} +7 -7
  69. package/dist/cli/{feedback-NEQGCSHB.mjs → feedback-W27HDMRR.mjs} +3 -3
  70. package/dist/cli/git-YKUXXJOR.js +24 -0
  71. package/dist/cli/{git-JJ3CHOTL.mjs → git-YOOUEL6M.mjs} +4 -4
  72. package/dist/cli/index.js +204 -127
  73. package/dist/cli/index.mjs +124 -47
  74. package/dist/cli/{legacy-noops-ITTD33ZN.js → legacy-noops-2VZ7XT6C.js} +7 -7
  75. package/dist/cli/{legacy-noops-A6KGBODU.mjs → legacy-noops-V6OKW7VR.mjs} +4 -4
  76. package/dist/cli/{monitors-DXVP5YFC.js → monitors-FBWGVIUS.js} +84 -84
  77. package/dist/cli/{monitors-NGEXCUEY.mjs → monitors-P2YYWTWT.mjs} +4 -4
  78. package/dist/cli/{org-C4ZTOSQC.js → org-3XUSVX5T.js} +64 -64
  79. package/dist/cli/{org-34DBJSFP.mjs → org-DVMG6H3C.mjs} +4 -4
  80. package/dist/cli/{play-SVLQKZBG.mjs → play-GNC5CQAS.mjs} +70 -18
  81. package/dist/cli/{play-5FWTZCHN.js → play-YG5L4BWQ.js} +345 -293
  82. package/dist/cli/{providers-QWR2HRNY.js → providers-7PSWG2OV.js} +7 -7
  83. package/dist/cli/{providers-RQTSGYE4.mjs → providers-JR33SLWL.mjs} +4 -4
  84. package/dist/cli/{quickstart-DHFNEMGY.js → quickstart-FDVZ5BL3.js} +5 -5
  85. package/dist/cli/{quickstart-W5UHZAEU.mjs → quickstart-VUOBQYIQ.mjs} +3 -3
  86. package/dist/cli/{search-U4AJC3FH.mjs → search-JZYLO33K.mjs} +5 -5
  87. package/dist/cli/search-PPPYC5OZ.js +30 -0
  88. package/dist/cli/{secrets-YSMQ7CVZ.mjs → secrets-3MCYBT4I.mjs} +4 -4
  89. package/dist/cli/{secrets-HH4H7BLE.js → secrets-VS266FVA.js} +13 -13
  90. package/dist/cli/{sessions-URONRCTV.mjs → sessions-ELLLT23E.mjs} +4 -4
  91. package/dist/cli/{sessions-AJZXYUCJ.js → sessions-TEHEWW7O.js} +5 -5
  92. package/dist/cli/{settings-QAW62BH4.js → settings-7364NMMA.js} +75 -75
  93. package/dist/cli/{settings-KGAMW4MN.mjs → settings-PZCKAFII.mjs} +8 -8
  94. package/dist/cli/{setup-P54DPBFO.mjs → setup-A7GQ4KIA.mjs} +7 -7
  95. package/dist/cli/{setup-KAMFU5VE.js → setup-PMWYLCT6.js} +42 -42
  96. package/dist/cli/skills-SYS7VRRK.js +29 -0
  97. package/dist/cli/{skills-UMWRJ6TL.mjs → skills-WS6BIFPQ.mjs} +5 -5
  98. package/dist/cli/{tools-HN4EFVY7.mjs → tools-BR4DOZA2.mjs} +7 -7
  99. package/dist/cli/{tools-HX3BHT55.js → tools-KK4BKVQR.js} +8 -8
  100. package/dist/cli/update-2IV5JTX2.js +29 -0
  101. package/dist/cli/{update-7AFQCJ75.mjs → update-D2B7UNFT.mjs} +7 -7
  102. package/dist/cli/{workflow-7EHU5ZPX.js → workflow-6ODTCYXU.js} +15 -15
  103. package/dist/cli/{workflow-ARDO4VHU.mjs → workflow-PQXC2R47.mjs} +5 -5
  104. package/dist/{client-Db1jFLpF.d.ts → client-BcvhDfJJ.d.ts} +80 -58
  105. package/dist/{client-Buv1_ktG.d.mts → client-Z9Pye1Wm.d.mts} +80 -58
  106. package/dist/{compiler-manifest-N77W75Py.d.ts → compiler-manifest-Ycx-hoAr.d.mts} +8 -1
  107. package/dist/{compiler-manifest-N77W75Py.d.mts → compiler-manifest-Ycx-hoAr.d.ts} +8 -1
  108. package/dist/{index-3WOfyVhW.d.mts → index-CZXgiN3E.d.mts} +1 -1
  109. package/dist/{index-CtIJFTCl.d.ts → index-NPG5pqxQ.d.ts} +1 -1
  110. package/dist/index.d.mts +13 -10
  111. package/dist/index.d.ts +13 -10
  112. package/dist/index.js +28 -11
  113. package/dist/index.mjs +25 -8
  114. package/dist/install-integrity.json +86 -84
  115. package/dist/plays/bundle-play-file.d.mts +3 -3
  116. package/dist/plays/bundle-play-file.d.ts +3 -3
  117. package/dist/plays/play-description.d.mts +2 -2
  118. package/dist/plays/play-description.d.ts +2 -2
  119. package/dist/plays/run-request.d.mts +2 -2
  120. package/dist/plays/run-request.d.ts +2 -2
  121. package/dist/release.d.mts +1 -1
  122. package/dist/release.d.ts +1 -1
  123. package/dist/release.js +2 -2
  124. package/dist/release.mjs +1 -1
  125. package/package.json +1 -1
  126. package/dist/cli/auth-K5QAZH42.js +0 -40
  127. package/dist/cli/git-63RYCZSI.js +0 -24
  128. package/dist/cli/search-YAYYU3WD.js +0 -30
  129. package/dist/cli/skills-M2GGHYJU.js +0 -29
  130. package/dist/cli/update-I23NN5QI.js +0 -29
package/dist/index.d.mts CHANGED
@@ -1,9 +1,9 @@
1
1
  /// <reference path="./text-imports.d.ts" />
2
- import { T as ToolExecuteResult, B as BasicToolExecuteResult, i as PlayDataset, A as AsyncPlayRunRef$1, 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 PlayAuthoringReferenceLike, t as PlayReturnObject$1, u as PlayAuthoringDefineConfig, v as PlayAuthoringDefinedPlay, w as PlayAuthoringFetchOptions, x as PlayAuthoringFileInput, y as PlayAuthoringAsyncCallOptions, z as PlayAuthoringBindings, C as PlayAuthoringCallExecution, D as PlayAuthoringCallOptions, E as PlayAuthoringFetchResponse, F as PlayAuthoringInputContract, G as PlayRunId$1, H as PlayAuthoringStepProgramStep, I as PlayAuthoringRuntimeStepOptions, J as PlaySqlListenerDeclaration, K as PlaySqlListenerEvent, L as PlaySqlListenerOperation, M as PlaySqlQuery, N as PlayAuthoringStepOptions, O as PlayAuthoringStepProgram, Q as PlayAuthoringStepProgramResolver, R as PlayAuthoringStepResolver, S as PlayToolExecutionRequest, U as PlayAuthoringStepProgramOptions, V as DeeplineError, W as ToolExecutionError, X as ToolExecutionErrorOptions } from './compiler-manifest-N77W75Py.mjs';
3
- export { Y as BillingEntitlements, Z as CtxFetchHttpError, _ as DEEPLINE_EXTRACTOR_TARGETS, $ as DEEPLINE_EXTRACTOR_TARGET_DEFINITIONS, a0 as DeeplineEmailStatusGetterValue, a1 as DeeplineExtractorTarget, a2 as DeeplineGetterValue, a3 as DeeplineGetterValueMap, a4 as JOB_CHANGE_STATUS_VALUES, a5 as JobChangeStatus, a6 as PHONE_STATUS_VALUES, a7 as PhoneStatus, a8 as PlayDatasetInput, a9 as PreviousCell, aa as ProviderTransientError, ab as ProviderTransientErrorCategory, ac as ProviderUnavailableError, ad as ProviderUnavailableReason, ae as ToolExecutionErrorCategory, af as ToolExecutionErrorOrigin, ag as ToolExecutionFailureV1, ah as ToolExecutionNetworkKind, ai as ToolExecutionNetworkScope, aj as ToolExecutionPublicDetails, ak as ToolResultBilling, al as getProviderUnavailableReason, am as isDeeplineExtractorTarget, an as isProviderUnavailable, ao as isProviderWaterfallUnavailableError } from './compiler-manifest-N77W75Py.mjs';
4
- import { b as DeeplineClientOptions, B as BillingNamespace, T as ToolDefinition, c as ToolMetadata, E as ExecuteToolRawOptions, d as ExecutionRecovery, e as ExecutionByKeyResult, f as PlayListItem, g as PlayDetail, h as PlayRunListItem, i as PlayRevisionSummary, j as PublishPlayVersionResult, C as ClearPlayHistoryResult, k as PlayStatus, l as StopPlayRunResult, a as DeeplineClient, R as ResolvedConfig } from './client-Buv1_ktG.mjs';
5
- export { m as BillingCreditPool, n as BillingInvoiceEntry, o as BillingInvoicesResult, p as BillingPaymentMethodSummary, q as BillingQuoteRequest, r as BillingQuoteResult, s as BillingRecentUsageEntry, t as BillingSubscriptionCancelResult, u as BillingSubscriptionStatus, v as BillingTopUpReceipt, w as BillingTopUpResult, x as BillingUsageEvent, y as BillingUsageOptions, z as BillingUsageResult, A as ChildRunSummary, F as ClearPlayHistoryRequest, G as CreateNotificationGroupInput, H as CreateNotificationGroupResult, I as CustomerDbQueryOptions, J as CustomerDbQueryPlan, K as CustomerDbQueryResult, L as DEEPLINE_TOOL_CATEGORIES, M as DbNamespace, N as DeeplineToolCategory, O as IngestionStorageRepairResult, Q as LegacyMonitorStatusFilter, U as LiveEventEnvelope, V as MONITOR_JOB_PHASES, W as MONITOR_JOB_RECONCILIATION_STATES, X as MONITOR_JOB_STATES, Y as MonitorBatchNamespace, Z as MonitorCheckResult, _ as MonitorDefinition, $ as MonitorDeleteResult, a0 as MonitorDependents, a1 as MonitorDeployResult, a2 as MonitorDetail, a3 as MonitorFleetDeactivateOptions, a4 as MonitorFleetGetOptions, a5 as MonitorFleetReactivateOptions, a6 as MonitorFleetResult, a7 as MonitorFleetStatus, a8 as MonitorFleetSyncOptions, a9 as MonitorFleetWaitOptions, aa as MonitorFleetsNamespace, ab as MonitorJobDeployOptions, ac as MonitorJobLogsOptions, ad as MonitorJobPhase, ae as MonitorJobReconciliationState, af as MonitorJobResult, ag as MonitorJobState, ah as MonitorJobWaitOptions, ai as MonitorJobsNamespace, aj as MonitorListEntry, ak as MonitorPayload, al as MonitorReactivateResult, am as MonitorSpec, an as MonitorState, ao as MonitorStateFilter, ap as MonitorUpdateChangeSummary, aq as MonitorUpdateResult, ar as MonitorsAccessStatus, as as MonitorsAvailableOptions, at as MonitorsAvailableResult, au as MonitorsListOptions, av as MonitorsListResult, aw as MonitorsNamespace, ax as NormalizedRunEventQuery, ay as PlayActivityObservation, az as PlayActivityState, aA as PlayActivityTarget, aB as PlayCostEstimate, aC as PlayCronTriggerConfig, aD as PlayDescriptionOptions, aE as PlayLiveEvent, aF as PlayPath, aG as PlayRunActionPackage, aH as PlayRunActivityProjection, aI as PlayRunDatasetActions, aJ as PlayRunPackage, aK as PlayRunResult, aL as PlayRunRowHistoryOptions, aM as PlayRunStart, aN as PlaySettings, aO as PlaySettingsPatch, aP as PlaySettingsPathsPage, aQ as PlaySettingsResult, aR as PlaySheetRow, aS as PlaySheetRowsResult, aT as PlayTriggerConfigUpdate, aU as PlayTriggerConfigUpdateResult, aV as PlayTriggerConfigView, aW as PlayWebhookAuthConfig, aX as PlayWebhookTriggerConfig, aY as PlaysActivityResponse, aZ as PlaysListOptions, a_ as PlaysListPage, a$ as PublishPlayVersionRequest, b0 as RerunOptions, b1 as RerunPlayRunResult, b2 as RunChildrenPage, b3 as RunEventCountResult, b4 as RunEventField, b5 as RunEventFieldDescriptor, b6 as RunEventFieldOperators, b7 as RunEventFieldsResult, b8 as RunEventGroupValue, b9 as RunEventMeasure, ba as RunEventQueryCriteria, bb as RunEventQueryEvent, bc as RunEventQueryInputError, bd as RunEventQueryOptions, be as RunEventQueryPage, bf as RunEventQueryRetention, bg as RunEventScalar, bh as RunEventSummaryOptions, bi as RunEventSummaryResult, bj as RunEventWhere, bk as RunLifecycleStatus, bl as RunToolReceiptResult, bm as RunToolReceiptsResponse, bn as RunsChildrenOptions, bo as RunsEventPayload, bp as RunsEventSearchEntry, bq as RunsEventSearchOptions, br as RunsEventSearchResult, bs as RunsEventsCountResult, bt as RunsEventsCriteria, bu as RunsEventsFieldsOptions, bv as RunsEventsListOptions, bw as RunsEventsListResult, bx as RunsEventsNamespace, by as RunsEventsSummaryOptions, bz as RunsEventsSummaryResult, bA as RunsHistoryItem, bB as RunsHistoryOptions, bC as RunsHistoryPage, bD as RunsListOptions, bE as RunsListPage, bF as RunsLogCriteria, bG as RunsLogsCountResult, bH as RunsLogsNamespace, bI as RunsLogsOptions, bJ as RunsLogsQueryOptions, bK as RunsLogsQueryResult, bL as RunsLogsResult, bM as RunsLogsSummaryOptions, bN as RunsLogsSummaryResult, bO as RunsNamespace, bP as RunsTailOptions, bQ as RunsWatchOptions, bR as SearchOptions, bS as SearchResult, bT as SearchResultItem, S as SearchType, bU as StartPlayRunRequest, bV as StopAllCandidate, bW as StopAllPlayRunsDryRunResult, bX as StopAllPlayRunsResult, bY as StopAllPlayRunsStopResult, bZ as StopAllRunsOptions, b_ as ToolExecution, b$ as ToolRequestCondition, c0 as ToolRequestWarningRule, c1 as ToolSearchOptions, c2 as ToolSearchResult, c3 as WorkspaceCreateResult, c4 as WorkspacesNamespace, c5 as defineMonitor, c6 as isStopAllPlayRunsDryRunResult, c7 as planCustomerDbQuery } from './client-Buv1_ktG.mjs';
6
- import { b as BundledPlayFileSuccess } from './index-3WOfyVhW.mjs';
2
+ import { T as ToolExecuteResult, B as BasicToolExecuteResult, i as PlayDataset, A as AsyncPlayRunRef$1, 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 PlayAuthoringReferenceLike, t as PlayReturnObject$1, u as PlayAuthoringDefineConfig, v as PlayAuthoringDefinedPlay, w as PlayAuthoringFetchOptions, x as PlayAuthoringFileInput, y as PlayAuthoringAsyncCallOptions, z as PlayAuthoringBindings, C as PlayAuthoringCallExecution, D as PlayAuthoringCallOptions, E as PlayAuthoringFetchResponse, F as PlayAuthoringInputContract, G as PlayRunId$1, H as PlayAuthoringStepProgramStep, I as PlayAuthoringRuntimeStepOptions, J as PlaySqlListenerDeclaration, K as PlaySqlListenerEvent, L as PlaySqlListenerOperation, M as PlaySqlQuery, N as PlayAuthoringStepOptions, O as PlayAuthoringStepProgram, Q as PlayAuthoringStepProgramResolver, R as PlayAuthoringStepResolver, S as PlayToolExecutionRequest, U as PlayAuthoringStepProgramOptions, V as DeeplineError, W as ToolExecutionError, X as ToolExecutionErrorOptions } from './compiler-manifest-Ycx-hoAr.mjs';
3
+ export { Y as BillingEntitlements, Z as CtxFetchHttpError, _ as DEEPLINE_EXTRACTOR_TARGETS, $ as DEEPLINE_EXTRACTOR_TARGET_DEFINITIONS, a0 as DeeplineEmailStatusGetterValue, a1 as DeeplineExtractorTarget, a2 as DeeplineGetterValue, a3 as DeeplineGetterValueMap, a4 as JOB_CHANGE_STATUS_VALUES, a5 as JobChangeStatus, a6 as PHONE_STATUS_VALUES, a7 as PhoneStatus, a8 as PlayDatasetInput, a9 as PreviousCell, aa as ProviderTransientError, ab as ProviderTransientErrorCategory, ac as ProviderUnavailableError, ad as ProviderUnavailableReason, ae as ToolExecutionErrorCategory, af as ToolExecutionErrorOrigin, ag as ToolExecutionFailureV1, ah as ToolExecutionNetworkKind, ai as ToolExecutionNetworkScope, aj as ToolExecutionPublicDetails, ak as ToolResultBilling, al as getProviderUnavailableReason, am as isDeeplineExtractorTarget, an as isProviderUnavailable, ao as isProviderWaterfallUnavailableError } from './compiler-manifest-Ycx-hoAr.mjs';
4
+ import { b as DeeplineClientOptions, B as BillingNamespace, T as ToolDefinition, c as ToolMetadata, E as ExecuteToolRawOptions, d as ExecutionRecovery, e as ExecutionByKeyResult, f as PlayListItem, g as PlayDetail, h as PlayRunListItem, i as PlayRevisionSummary, j as PublishPlayVersionResult, C as ClearPlayHistoryResult, k as PlayStatus, l as StopPlayRunResult, a as DeeplineClient, R as ResolvedConfig } from './client-Z9Pye1Wm.mjs';
5
+ export { m as BillingCreditPool, n as BillingInvoiceEntry, o as BillingInvoicesResult, p as BillingPaymentMethodSummary, q as BillingQuoteRequest, r as BillingQuoteResult, s as BillingRecentUsageEntry, t as BillingSubscriptionCancelResult, u as BillingSubscriptionStatus, v as BillingTopUpReceipt, w as BillingTopUpResult, x as BillingUsageEvent, y as BillingUsageOptions, z as BillingUsageResult, A as ChildRunSummary, F as ClearPlayHistoryRequest, G as CreateNotificationGroupInput, H as CreateNotificationGroupResult, I as CustomerDbQueryOptions, J as CustomerDbQueryPlan, K as CustomerDbQueryResult, L as DEEPLINE_TOOL_CATEGORIES, M as DbNamespace, N as DeeplineToolCategory, O as IngestionStorageRepairResult, Q as LegacyMonitorStatusFilter, U as LiveEventEnvelope, V as MONITOR_JOB_PHASES, W as MONITOR_JOB_RECONCILIATION_STATES, X as MONITOR_JOB_STATES, Y as MonitorBatchNamespace, Z as MonitorCheckResult, _ as MonitorDefinition, $ as MonitorDeleteResult, a0 as MonitorDependents, a1 as MonitorDeployResult, a2 as MonitorDetail, a3 as MonitorFleetDeactivateOptions, a4 as MonitorFleetGetOptions, a5 as MonitorFleetReactivateOptions, a6 as MonitorFleetResult, a7 as MonitorFleetStatus, a8 as MonitorFleetSyncOptions, a9 as MonitorFleetWaitOptions, aa as MonitorFleetsNamespace, ab as MonitorJobDeployOptions, ac as MonitorJobLogsOptions, ad as MonitorJobPhase, ae as MonitorJobReconciliationState, af as MonitorJobResult, ag as MonitorJobState, ah as MonitorJobWaitOptions, ai as MonitorJobsNamespace, aj as MonitorListEntry, ak as MonitorPayload, al as MonitorReactivateResult, am as MonitorSpec, an as MonitorState, ao as MonitorStateFilter, ap as MonitorUpdateChangeSummary, aq as MonitorUpdateResult, ar as MonitorsAccessStatus, as as MonitorsAvailableOptions, at as MonitorsAvailableResult, au as MonitorsListOptions, av as MonitorsListResult, aw as MonitorsNamespace, ax as NormalizedRunEventQuery, ay as PlayActivityObservation, az as PlayActivityState, aA as PlayActivityTarget, aB as PlayCostEstimate, aC as PlayCronTriggerConfig, aD as PlayDescriptionOptions, aE as PlayLiveEvent, aF as PlayPath, aG as PlayRunActionPackage, aH as PlayRunActivityProjection, aI as PlayRunDatasetActions, aJ as PlayRunPackage, aK as PlayRunResult, aL as PlayRunRowHistoryOptions, aM as PlayRunStart, aN as PlaySettings, aO as PlaySettingsPatch, aP as PlaySettingsPathsPage, aQ as PlaySettingsResult, aR as PlaySheetRow, aS as PlaySheetRowsResult, aT as PlayTriggerConfigUpdate, aU as PlayTriggerConfigUpdateResult, aV as PlayTriggerConfigView, aW as PlayWebhookAuthConfig, aX as PlayWebhookTriggerConfig, aY as PlaysActivityResponse, aZ as PlaysListOptions, a_ as PlaysListPage, a$ as PublishPlayVersionRequest, b0 as RerunOptions, b1 as RerunPlayRunResult, b2 as RunChildrenPage, b3 as RunEventCountResult, b4 as RunEventField, b5 as RunEventFieldDescriptor, b6 as RunEventFieldOperators, b7 as RunEventFieldsResult, b8 as RunEventGroupValue, b9 as RunEventMeasure, ba as RunEventQueryCriteria, bb as RunEventQueryEvent, bc as RunEventQueryInputError, bd as RunEventQueryOptions, be as RunEventQueryPage, bf as RunEventQueryRetention, bg as RunEventScalar, bh as RunEventSummaryOptions, bi as RunEventSummaryResult, bj as RunEventWhere, bk as RunLifecycleStatus, bl as RunToolReceiptResult, bm as RunToolReceiptsResponse, bn as RunsChildrenOptions, bo as RunsEventPayload, bp as RunsEventSearchEntry, bq as RunsEventSearchOptions, br as RunsEventSearchResult, bs as RunsEventsCountResult, bt as RunsEventsCriteria, bu as RunsEventsFieldsOptions, bv as RunsEventsListOptions, bw as RunsEventsListResult, bx as RunsEventsNamespace, by as RunsEventsSummaryOptions, bz as RunsEventsSummaryResult, bA as RunsHistoryItem, bB as RunsHistoryOptions, bC as RunsHistoryPage, bD as RunsListOptions, bE as RunsListPage, bF as RunsLogCriteria, bG as RunsLogsCountResult, bH as RunsLogsNamespace, bI as RunsLogsOptions, bJ as RunsLogsQueryOptions, bK as RunsLogsQueryResult, bL as RunsLogsResult, bM as RunsLogsSummaryOptions, bN as RunsLogsSummaryResult, bO as RunsNamespace, bP as RunsTailOptions, bQ as RunsWatchOptions, bR as SearchOptions, bS as SearchResult, bT as SearchResultItem, S as SearchType, bU as StartPlayRunRequest, bV as StopAllCandidate, bW as StopAllPlayRunsDryRunResult, bX as StopAllPlayRunsResult, bY as StopAllPlayRunsStopResult, bZ as StopAllRunsOptions, b_ as ToolExecution, b$ as ToolRequestCondition, c0 as ToolRequestWarningRule, c1 as ToolSearchOptions, c2 as ToolSearchResult, c3 as WorkspaceCreateResult, c4 as WorkspacesNamespace, c5 as defineMonitor, c6 as isStopAllPlayRunsDryRunResult, c7 as planCustomerDbQuery } from './client-Z9Pye1Wm.mjs';
6
+ import { b as BundledPlayFileSuccess } from './index-CZXgiN3E.mjs';
7
7
  export { BatchMonitorInput, MonitorInputIssue, MonitorSpec as MonitorInputSpec, lintMonitorBatchInput, lintMonitorSpecTemplate, renderMonitorSpecTemplate } from './monitor-input-contract.mjs';
8
8
  export { AdmittedMonitorFleetAuthoringContract, MONITOR_FLEET_AUTHORING_CONTRACT_CHANGELOG, MONITOR_FLEET_AUTHORING_CONTRACT_EDITION, MONITOR_FLEET_DOCUMENTATION, MONITOR_FLEET_FRONTIER_MAX_ROWS, MONITOR_FLEET_MAX_MEMBERS, MonitorFleetAuthoringContractEdition, MonitorFleetAuthoringContractResult, MonitorFleetColumn, MonitorFleetContractIssue, MonitorFleetDefinition, MonitorFleetExpression, MonitorFleetTemplate, admitMonitorFleetAuthoringContract, defineMonitorFleet, fleetColumn, fleetKey, lintMonitorFleetInput, validateMonitorFleetDefinition } from './monitor-fleet-contract.mjs';
9
9
  import '@sinclair/typebox';
@@ -26,8 +26,8 @@ type PlayFetchResponse = PlayAuthoringFetchResponse;
26
26
  * A play can be triggered three ways, declared as the third argument to
27
27
  * {@link definePlay}:
28
28
  * - `webhook` — an inbound HTTP call (with optional legacy HMAC or Standard
29
- * Webhooks signature verification);
30
- * - `cron` — a schedule; or
29
+ * Webhooks signature verification).
30
+ * - `cron` — a schedule.
31
31
  * - `sqlListeners` — a **monitor**: the play runs whenever a monitor writes a new
32
32
  * row to its output stream. This is how you build a play "on top of" a monitor
33
33
  * (e.g. run enrichment every time a watched company posts a new job). Each
@@ -558,8 +558,8 @@ declare class DeeplineContext {
558
558
  * Run a named or prebuilt play and wait for its output.
559
559
  *
560
560
  * This is the high-level SDK equivalent of `ctx.play(name).runSync(input)`.
561
- * Inside a play runtime, prefer the in-play `ctx.runPlay(key, playRef, input,
562
- * options)` form so the child run is checkpointed under a stable key.
561
+ * Inside a Play, prefer `ctx.runPlay(key, playRef, input, options)`.
562
+ * The runtime checkpoints the child run under a stable key.
563
563
  *
564
564
  * @param playOrRef - Play name or prebuilt/reference object.
565
565
  * @param input - JSON input passed to the play.
@@ -610,7 +610,10 @@ declare function defineInput<TInput>(schema: Record<string, unknown>): PlayInput
610
610
  /**
611
611
  * Define a play — a composable TypeScript workflow for the Deepline platform.
612
612
  *
613
- * The returned value is both a callable function, invoked by the Deepline runtime with a runtime context, and a named play handle carrying `.run()`, `.versions()`, `.get()` and `.publish()` for remote lifecycle management. Plays are the primary abstraction for repeatable data pipelines and execute durably, with automatic retries and timeouts.
613
+ * The returned value is both a callable function and a named Play handle.
614
+ * The Deepline runtime calls the function with a runtime context.
615
+ * The handle provides `.run()`, `.versions()`, `.get()`, and `.publish()` for remote lifecycle operations.
616
+ * Plays define repeatable data pipelines. The runtime executes them durably with automatic retries and timeouts.
614
617
  *
615
618
  * @typeParam TInput - The input type accepted by the play
616
619
  * @typeParam TOutput - The return type of the play
package/dist/index.d.ts CHANGED
@@ -1,9 +1,9 @@
1
1
  /// <reference path="./text-imports.d.ts" />
2
- import { T as ToolExecuteResult, B as BasicToolExecuteResult, i as PlayDataset, A as AsyncPlayRunRef$1, 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 PlayAuthoringReferenceLike, t as PlayReturnObject$1, u as PlayAuthoringDefineConfig, v as PlayAuthoringDefinedPlay, w as PlayAuthoringFetchOptions, x as PlayAuthoringFileInput, y as PlayAuthoringAsyncCallOptions, z as PlayAuthoringBindings, C as PlayAuthoringCallExecution, D as PlayAuthoringCallOptions, E as PlayAuthoringFetchResponse, F as PlayAuthoringInputContract, G as PlayRunId$1, H as PlayAuthoringStepProgramStep, I as PlayAuthoringRuntimeStepOptions, J as PlaySqlListenerDeclaration, K as PlaySqlListenerEvent, L as PlaySqlListenerOperation, M as PlaySqlQuery, N as PlayAuthoringStepOptions, O as PlayAuthoringStepProgram, Q as PlayAuthoringStepProgramResolver, R as PlayAuthoringStepResolver, S as PlayToolExecutionRequest, U as PlayAuthoringStepProgramOptions, V as DeeplineError, W as ToolExecutionError, X as ToolExecutionErrorOptions } from './compiler-manifest-N77W75Py.js';
3
- export { Y as BillingEntitlements, Z as CtxFetchHttpError, _ as DEEPLINE_EXTRACTOR_TARGETS, $ as DEEPLINE_EXTRACTOR_TARGET_DEFINITIONS, a0 as DeeplineEmailStatusGetterValue, a1 as DeeplineExtractorTarget, a2 as DeeplineGetterValue, a3 as DeeplineGetterValueMap, a4 as JOB_CHANGE_STATUS_VALUES, a5 as JobChangeStatus, a6 as PHONE_STATUS_VALUES, a7 as PhoneStatus, a8 as PlayDatasetInput, a9 as PreviousCell, aa as ProviderTransientError, ab as ProviderTransientErrorCategory, ac as ProviderUnavailableError, ad as ProviderUnavailableReason, ae as ToolExecutionErrorCategory, af as ToolExecutionErrorOrigin, ag as ToolExecutionFailureV1, ah as ToolExecutionNetworkKind, ai as ToolExecutionNetworkScope, aj as ToolExecutionPublicDetails, ak as ToolResultBilling, al as getProviderUnavailableReason, am as isDeeplineExtractorTarget, an as isProviderUnavailable, ao as isProviderWaterfallUnavailableError } from './compiler-manifest-N77W75Py.js';
4
- import { b as DeeplineClientOptions, B as BillingNamespace, T as ToolDefinition, c as ToolMetadata, E as ExecuteToolRawOptions, d as ExecutionRecovery, e as ExecutionByKeyResult, f as PlayListItem, g as PlayDetail, h as PlayRunListItem, i as PlayRevisionSummary, j as PublishPlayVersionResult, C as ClearPlayHistoryResult, k as PlayStatus, l as StopPlayRunResult, a as DeeplineClient, R as ResolvedConfig } from './client-Db1jFLpF.js';
5
- export { m as BillingCreditPool, n as BillingInvoiceEntry, o as BillingInvoicesResult, p as BillingPaymentMethodSummary, q as BillingQuoteRequest, r as BillingQuoteResult, s as BillingRecentUsageEntry, t as BillingSubscriptionCancelResult, u as BillingSubscriptionStatus, v as BillingTopUpReceipt, w as BillingTopUpResult, x as BillingUsageEvent, y as BillingUsageOptions, z as BillingUsageResult, A as ChildRunSummary, F as ClearPlayHistoryRequest, G as CreateNotificationGroupInput, H as CreateNotificationGroupResult, I as CustomerDbQueryOptions, J as CustomerDbQueryPlan, K as CustomerDbQueryResult, L as DEEPLINE_TOOL_CATEGORIES, M as DbNamespace, N as DeeplineToolCategory, O as IngestionStorageRepairResult, Q as LegacyMonitorStatusFilter, U as LiveEventEnvelope, V as MONITOR_JOB_PHASES, W as MONITOR_JOB_RECONCILIATION_STATES, X as MONITOR_JOB_STATES, Y as MonitorBatchNamespace, Z as MonitorCheckResult, _ as MonitorDefinition, $ as MonitorDeleteResult, a0 as MonitorDependents, a1 as MonitorDeployResult, a2 as MonitorDetail, a3 as MonitorFleetDeactivateOptions, a4 as MonitorFleetGetOptions, a5 as MonitorFleetReactivateOptions, a6 as MonitorFleetResult, a7 as MonitorFleetStatus, a8 as MonitorFleetSyncOptions, a9 as MonitorFleetWaitOptions, aa as MonitorFleetsNamespace, ab as MonitorJobDeployOptions, ac as MonitorJobLogsOptions, ad as MonitorJobPhase, ae as MonitorJobReconciliationState, af as MonitorJobResult, ag as MonitorJobState, ah as MonitorJobWaitOptions, ai as MonitorJobsNamespace, aj as MonitorListEntry, ak as MonitorPayload, al as MonitorReactivateResult, am as MonitorSpec, an as MonitorState, ao as MonitorStateFilter, ap as MonitorUpdateChangeSummary, aq as MonitorUpdateResult, ar as MonitorsAccessStatus, as as MonitorsAvailableOptions, at as MonitorsAvailableResult, au as MonitorsListOptions, av as MonitorsListResult, aw as MonitorsNamespace, ax as NormalizedRunEventQuery, ay as PlayActivityObservation, az as PlayActivityState, aA as PlayActivityTarget, aB as PlayCostEstimate, aC as PlayCronTriggerConfig, aD as PlayDescriptionOptions, aE as PlayLiveEvent, aF as PlayPath, aG as PlayRunActionPackage, aH as PlayRunActivityProjection, aI as PlayRunDatasetActions, aJ as PlayRunPackage, aK as PlayRunResult, aL as PlayRunRowHistoryOptions, aM as PlayRunStart, aN as PlaySettings, aO as PlaySettingsPatch, aP as PlaySettingsPathsPage, aQ as PlaySettingsResult, aR as PlaySheetRow, aS as PlaySheetRowsResult, aT as PlayTriggerConfigUpdate, aU as PlayTriggerConfigUpdateResult, aV as PlayTriggerConfigView, aW as PlayWebhookAuthConfig, aX as PlayWebhookTriggerConfig, aY as PlaysActivityResponse, aZ as PlaysListOptions, a_ as PlaysListPage, a$ as PublishPlayVersionRequest, b0 as RerunOptions, b1 as RerunPlayRunResult, b2 as RunChildrenPage, b3 as RunEventCountResult, b4 as RunEventField, b5 as RunEventFieldDescriptor, b6 as RunEventFieldOperators, b7 as RunEventFieldsResult, b8 as RunEventGroupValue, b9 as RunEventMeasure, ba as RunEventQueryCriteria, bb as RunEventQueryEvent, bc as RunEventQueryInputError, bd as RunEventQueryOptions, be as RunEventQueryPage, bf as RunEventQueryRetention, bg as RunEventScalar, bh as RunEventSummaryOptions, bi as RunEventSummaryResult, bj as RunEventWhere, bk as RunLifecycleStatus, bl as RunToolReceiptResult, bm as RunToolReceiptsResponse, bn as RunsChildrenOptions, bo as RunsEventPayload, bp as RunsEventSearchEntry, bq as RunsEventSearchOptions, br as RunsEventSearchResult, bs as RunsEventsCountResult, bt as RunsEventsCriteria, bu as RunsEventsFieldsOptions, bv as RunsEventsListOptions, bw as RunsEventsListResult, bx as RunsEventsNamespace, by as RunsEventsSummaryOptions, bz as RunsEventsSummaryResult, bA as RunsHistoryItem, bB as RunsHistoryOptions, bC as RunsHistoryPage, bD as RunsListOptions, bE as RunsListPage, bF as RunsLogCriteria, bG as RunsLogsCountResult, bH as RunsLogsNamespace, bI as RunsLogsOptions, bJ as RunsLogsQueryOptions, bK as RunsLogsQueryResult, bL as RunsLogsResult, bM as RunsLogsSummaryOptions, bN as RunsLogsSummaryResult, bO as RunsNamespace, bP as RunsTailOptions, bQ as RunsWatchOptions, bR as SearchOptions, bS as SearchResult, bT as SearchResultItem, S as SearchType, bU as StartPlayRunRequest, bV as StopAllCandidate, bW as StopAllPlayRunsDryRunResult, bX as StopAllPlayRunsResult, bY as StopAllPlayRunsStopResult, bZ as StopAllRunsOptions, b_ as ToolExecution, b$ as ToolRequestCondition, c0 as ToolRequestWarningRule, c1 as ToolSearchOptions, c2 as ToolSearchResult, c3 as WorkspaceCreateResult, c4 as WorkspacesNamespace, c5 as defineMonitor, c6 as isStopAllPlayRunsDryRunResult, c7 as planCustomerDbQuery } from './client-Db1jFLpF.js';
6
- import { b as BundledPlayFileSuccess } from './index-CtIJFTCl.js';
2
+ import { T as ToolExecuteResult, B as BasicToolExecuteResult, i as PlayDataset, A as AsyncPlayRunRef$1, 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 PlayAuthoringReferenceLike, t as PlayReturnObject$1, u as PlayAuthoringDefineConfig, v as PlayAuthoringDefinedPlay, w as PlayAuthoringFetchOptions, x as PlayAuthoringFileInput, y as PlayAuthoringAsyncCallOptions, z as PlayAuthoringBindings, C as PlayAuthoringCallExecution, D as PlayAuthoringCallOptions, E as PlayAuthoringFetchResponse, F as PlayAuthoringInputContract, G as PlayRunId$1, H as PlayAuthoringStepProgramStep, I as PlayAuthoringRuntimeStepOptions, J as PlaySqlListenerDeclaration, K as PlaySqlListenerEvent, L as PlaySqlListenerOperation, M as PlaySqlQuery, N as PlayAuthoringStepOptions, O as PlayAuthoringStepProgram, Q as PlayAuthoringStepProgramResolver, R as PlayAuthoringStepResolver, S as PlayToolExecutionRequest, U as PlayAuthoringStepProgramOptions, V as DeeplineError, W as ToolExecutionError, X as ToolExecutionErrorOptions } from './compiler-manifest-Ycx-hoAr.js';
3
+ export { Y as BillingEntitlements, Z as CtxFetchHttpError, _ as DEEPLINE_EXTRACTOR_TARGETS, $ as DEEPLINE_EXTRACTOR_TARGET_DEFINITIONS, a0 as DeeplineEmailStatusGetterValue, a1 as DeeplineExtractorTarget, a2 as DeeplineGetterValue, a3 as DeeplineGetterValueMap, a4 as JOB_CHANGE_STATUS_VALUES, a5 as JobChangeStatus, a6 as PHONE_STATUS_VALUES, a7 as PhoneStatus, a8 as PlayDatasetInput, a9 as PreviousCell, aa as ProviderTransientError, ab as ProviderTransientErrorCategory, ac as ProviderUnavailableError, ad as ProviderUnavailableReason, ae as ToolExecutionErrorCategory, af as ToolExecutionErrorOrigin, ag as ToolExecutionFailureV1, ah as ToolExecutionNetworkKind, ai as ToolExecutionNetworkScope, aj as ToolExecutionPublicDetails, ak as ToolResultBilling, al as getProviderUnavailableReason, am as isDeeplineExtractorTarget, an as isProviderUnavailable, ao as isProviderWaterfallUnavailableError } from './compiler-manifest-Ycx-hoAr.js';
4
+ import { b as DeeplineClientOptions, B as BillingNamespace, T as ToolDefinition, c as ToolMetadata, E as ExecuteToolRawOptions, d as ExecutionRecovery, e as ExecutionByKeyResult, f as PlayListItem, g as PlayDetail, h as PlayRunListItem, i as PlayRevisionSummary, j as PublishPlayVersionResult, C as ClearPlayHistoryResult, k as PlayStatus, l as StopPlayRunResult, a as DeeplineClient, R as ResolvedConfig } from './client-BcvhDfJJ.js';
5
+ export { m as BillingCreditPool, n as BillingInvoiceEntry, o as BillingInvoicesResult, p as BillingPaymentMethodSummary, q as BillingQuoteRequest, r as BillingQuoteResult, s as BillingRecentUsageEntry, t as BillingSubscriptionCancelResult, u as BillingSubscriptionStatus, v as BillingTopUpReceipt, w as BillingTopUpResult, x as BillingUsageEvent, y as BillingUsageOptions, z as BillingUsageResult, A as ChildRunSummary, F as ClearPlayHistoryRequest, G as CreateNotificationGroupInput, H as CreateNotificationGroupResult, I as CustomerDbQueryOptions, J as CustomerDbQueryPlan, K as CustomerDbQueryResult, L as DEEPLINE_TOOL_CATEGORIES, M as DbNamespace, N as DeeplineToolCategory, O as IngestionStorageRepairResult, Q as LegacyMonitorStatusFilter, U as LiveEventEnvelope, V as MONITOR_JOB_PHASES, W as MONITOR_JOB_RECONCILIATION_STATES, X as MONITOR_JOB_STATES, Y as MonitorBatchNamespace, Z as MonitorCheckResult, _ as MonitorDefinition, $ as MonitorDeleteResult, a0 as MonitorDependents, a1 as MonitorDeployResult, a2 as MonitorDetail, a3 as MonitorFleetDeactivateOptions, a4 as MonitorFleetGetOptions, a5 as MonitorFleetReactivateOptions, a6 as MonitorFleetResult, a7 as MonitorFleetStatus, a8 as MonitorFleetSyncOptions, a9 as MonitorFleetWaitOptions, aa as MonitorFleetsNamespace, ab as MonitorJobDeployOptions, ac as MonitorJobLogsOptions, ad as MonitorJobPhase, ae as MonitorJobReconciliationState, af as MonitorJobResult, ag as MonitorJobState, ah as MonitorJobWaitOptions, ai as MonitorJobsNamespace, aj as MonitorListEntry, ak as MonitorPayload, al as MonitorReactivateResult, am as MonitorSpec, an as MonitorState, ao as MonitorStateFilter, ap as MonitorUpdateChangeSummary, aq as MonitorUpdateResult, ar as MonitorsAccessStatus, as as MonitorsAvailableOptions, at as MonitorsAvailableResult, au as MonitorsListOptions, av as MonitorsListResult, aw as MonitorsNamespace, ax as NormalizedRunEventQuery, ay as PlayActivityObservation, az as PlayActivityState, aA as PlayActivityTarget, aB as PlayCostEstimate, aC as PlayCronTriggerConfig, aD as PlayDescriptionOptions, aE as PlayLiveEvent, aF as PlayPath, aG as PlayRunActionPackage, aH as PlayRunActivityProjection, aI as PlayRunDatasetActions, aJ as PlayRunPackage, aK as PlayRunResult, aL as PlayRunRowHistoryOptions, aM as PlayRunStart, aN as PlaySettings, aO as PlaySettingsPatch, aP as PlaySettingsPathsPage, aQ as PlaySettingsResult, aR as PlaySheetRow, aS as PlaySheetRowsResult, aT as PlayTriggerConfigUpdate, aU as PlayTriggerConfigUpdateResult, aV as PlayTriggerConfigView, aW as PlayWebhookAuthConfig, aX as PlayWebhookTriggerConfig, aY as PlaysActivityResponse, aZ as PlaysListOptions, a_ as PlaysListPage, a$ as PublishPlayVersionRequest, b0 as RerunOptions, b1 as RerunPlayRunResult, b2 as RunChildrenPage, b3 as RunEventCountResult, b4 as RunEventField, b5 as RunEventFieldDescriptor, b6 as RunEventFieldOperators, b7 as RunEventFieldsResult, b8 as RunEventGroupValue, b9 as RunEventMeasure, ba as RunEventQueryCriteria, bb as RunEventQueryEvent, bc as RunEventQueryInputError, bd as RunEventQueryOptions, be as RunEventQueryPage, bf as RunEventQueryRetention, bg as RunEventScalar, bh as RunEventSummaryOptions, bi as RunEventSummaryResult, bj as RunEventWhere, bk as RunLifecycleStatus, bl as RunToolReceiptResult, bm as RunToolReceiptsResponse, bn as RunsChildrenOptions, bo as RunsEventPayload, bp as RunsEventSearchEntry, bq as RunsEventSearchOptions, br as RunsEventSearchResult, bs as RunsEventsCountResult, bt as RunsEventsCriteria, bu as RunsEventsFieldsOptions, bv as RunsEventsListOptions, bw as RunsEventsListResult, bx as RunsEventsNamespace, by as RunsEventsSummaryOptions, bz as RunsEventsSummaryResult, bA as RunsHistoryItem, bB as RunsHistoryOptions, bC as RunsHistoryPage, bD as RunsListOptions, bE as RunsListPage, bF as RunsLogCriteria, bG as RunsLogsCountResult, bH as RunsLogsNamespace, bI as RunsLogsOptions, bJ as RunsLogsQueryOptions, bK as RunsLogsQueryResult, bL as RunsLogsResult, bM as RunsLogsSummaryOptions, bN as RunsLogsSummaryResult, bO as RunsNamespace, bP as RunsTailOptions, bQ as RunsWatchOptions, bR as SearchOptions, bS as SearchResult, bT as SearchResultItem, S as SearchType, bU as StartPlayRunRequest, bV as StopAllCandidate, bW as StopAllPlayRunsDryRunResult, bX as StopAllPlayRunsResult, bY as StopAllPlayRunsStopResult, bZ as StopAllRunsOptions, b_ as ToolExecution, b$ as ToolRequestCondition, c0 as ToolRequestWarningRule, c1 as ToolSearchOptions, c2 as ToolSearchResult, c3 as WorkspaceCreateResult, c4 as WorkspacesNamespace, c5 as defineMonitor, c6 as isStopAllPlayRunsDryRunResult, c7 as planCustomerDbQuery } from './client-BcvhDfJJ.js';
6
+ import { b as BundledPlayFileSuccess } from './index-NPG5pqxQ.js';
7
7
  export { BatchMonitorInput, MonitorInputIssue, MonitorSpec as MonitorInputSpec, lintMonitorBatchInput, lintMonitorSpecTemplate, renderMonitorSpecTemplate } from './monitor-input-contract.js';
8
8
  export { AdmittedMonitorFleetAuthoringContract, MONITOR_FLEET_AUTHORING_CONTRACT_CHANGELOG, MONITOR_FLEET_AUTHORING_CONTRACT_EDITION, MONITOR_FLEET_DOCUMENTATION, MONITOR_FLEET_FRONTIER_MAX_ROWS, MONITOR_FLEET_MAX_MEMBERS, MonitorFleetAuthoringContractEdition, MonitorFleetAuthoringContractResult, MonitorFleetColumn, MonitorFleetContractIssue, MonitorFleetDefinition, MonitorFleetExpression, MonitorFleetTemplate, admitMonitorFleetAuthoringContract, defineMonitorFleet, fleetColumn, fleetKey, lintMonitorFleetInput, validateMonitorFleetDefinition } from './monitor-fleet-contract.js';
9
9
  import '@sinclair/typebox';
@@ -26,8 +26,8 @@ type PlayFetchResponse = PlayAuthoringFetchResponse;
26
26
  * A play can be triggered three ways, declared as the third argument to
27
27
  * {@link definePlay}:
28
28
  * - `webhook` — an inbound HTTP call (with optional legacy HMAC or Standard
29
- * Webhooks signature verification);
30
- * - `cron` — a schedule; or
29
+ * Webhooks signature verification).
30
+ * - `cron` — a schedule.
31
31
  * - `sqlListeners` — a **monitor**: the play runs whenever a monitor writes a new
32
32
  * row to its output stream. This is how you build a play "on top of" a monitor
33
33
  * (e.g. run enrichment every time a watched company posts a new job). Each
@@ -558,8 +558,8 @@ declare class DeeplineContext {
558
558
  * Run a named or prebuilt play and wait for its output.
559
559
  *
560
560
  * This is the high-level SDK equivalent of `ctx.play(name).runSync(input)`.
561
- * Inside a play runtime, prefer the in-play `ctx.runPlay(key, playRef, input,
562
- * options)` form so the child run is checkpointed under a stable key.
561
+ * Inside a Play, prefer `ctx.runPlay(key, playRef, input, options)`.
562
+ * The runtime checkpoints the child run under a stable key.
563
563
  *
564
564
  * @param playOrRef - Play name or prebuilt/reference object.
565
565
  * @param input - JSON input passed to the play.
@@ -610,7 +610,10 @@ declare function defineInput<TInput>(schema: Record<string, unknown>): PlayInput
610
610
  /**
611
611
  * Define a play — a composable TypeScript workflow for the Deepline platform.
612
612
  *
613
- * The returned value is both a callable function, invoked by the Deepline runtime with a runtime context, and a named play handle carrying `.run()`, `.versions()`, `.get()` and `.publish()` for remote lifecycle management. Plays are the primary abstraction for repeatable data pipelines and execute durably, with automatic retries and timeouts.
613
+ * The returned value is both a callable function and a named Play handle.
614
+ * The Deepline runtime calls the function with a runtime context.
615
+ * The handle provides `.run()`, `.versions()`, `.get()`, and `.publish()` for remote lifecycle operations.
616
+ * Plays define repeatable data pipelines. The runtime executes them durably with automatic retries and timeouts.
614
617
  *
615
618
  * @typeParam TInput - The input type accepted by the play
616
619
  * @typeParam TOutput - The return type of the play
package/dist/index.js CHANGED
@@ -28,7 +28,7 @@ var _chunkZ4VNJOF7js = require('./cli/chunk-Z4VNJOF7.js');
28
28
 
29
29
 
30
30
 
31
- var _chunkAPLRSERFjs = require('./cli/chunk-APLRSERF.js');
31
+ var _chunkAUMD2VXPjs = require('./cli/chunk-AUMD2VXP.js');
32
32
 
33
33
 
34
34
  var _chunkS6R3OX7Bjs = require('./cli/chunk-S6R3OX7B.js');
@@ -62,7 +62,7 @@ var _chunkIF75RD6Ujs = require('./cli/chunk-IF75RD6U.js');
62
62
 
63
63
 
64
64
 
65
- var _chunkYSAZVLJDjs = require('./cli/chunk-YSAZVLJD.js');
65
+ var _chunkQUAQX3FQjs = require('./cli/chunk-QUAQX3FQ.js');
66
66
 
67
67
 
68
68
 
@@ -79,7 +79,7 @@ require('./cli/chunk-XNYIZMNQ.js');
79
79
 
80
80
 
81
81
  var _chunk7P5AA3SNjs = require('./cli/chunk-7P5AA3SN.js');
82
- require('./cli/chunk-W3ZNQE5Y.js');
82
+ require('./cli/chunk-D6FFBSM5.js');
83
83
  require('./cli/chunk-OG64RBAC.js');
84
84
  require('./cli/chunk-COGTRVWW.js');
85
85
 
@@ -748,7 +748,8 @@ function candidateResultPaths(path) {
748
748
  const candidates = [
749
749
  providerPath,
750
750
  normalizeResultPath(path),
751
- toV2RawToolOutputPathPreservingProviderData(path)
751
+ toV2RawToolOutputPathPreservingProviderData(path),
752
+ ...path.startsWith("result.data.") ? [`toolResponse.raw.${path.slice("result.data.".length)}`] : []
752
753
  ];
753
754
  return candidates.filter(
754
755
  (candidate, index, all) => candidate.length > 0 && all.indexOf(candidate) === index
@@ -1048,7 +1049,7 @@ function coerceToEnum(value, descriptor) {
1048
1049
  if (!normalized) return value;
1049
1050
  return descriptor.enum.includes(normalized) ? normalized : value;
1050
1051
  }
1051
- function resolveListRows(result, listExtractorPaths) {
1052
+ function resolveListRows(result, listExtractorPaths, aliases) {
1052
1053
  const lists = {};
1053
1054
  for (const rawPath of _nullishCoalesce(listExtractorPaths, () => ( []))) {
1054
1055
  const listName = listNameFromDeclaredPath(rawPath);
@@ -1079,6 +1080,9 @@ function resolveListRows(result, listExtractorPaths) {
1079
1080
  }
1080
1081
  lists[listName] = resolved;
1081
1082
  }
1083
+ for (const [alias, source] of Object.entries(_nullishCoalesce(aliases, () => ( {})))) {
1084
+ if (!lists[alias] && lists[source]) lists[alias] = lists[source];
1085
+ }
1082
1086
  return lists;
1083
1087
  }
1084
1088
  function deriveListKeys(input) {
@@ -1349,7 +1353,8 @@ function createToolExecuteResult(input) {
1349
1353
  );
1350
1354
  const resolvedLists = resolveListRows(
1351
1355
  resultRoot,
1352
- input.metadata.listExtractorPaths
1356
+ input.metadata.listExtractorPaths,
1357
+ input.metadata.listExtractorAliases
1353
1358
  );
1354
1359
  const lists = buildLists(resolvedLists, input.metadata);
1355
1360
  const metadata = {
@@ -1357,6 +1362,7 @@ function createToolExecuteResult(input) {
1357
1362
  execution: input.execution,
1358
1363
  targets,
1359
1364
  listExtractorPaths: [..._nullishCoalesce(input.metadata.listExtractorPaths, () => ( []))],
1365
+ ...input.metadata.listExtractorAliases ? { listExtractorAliases: { ...input.metadata.listExtractorAliases } } : {},
1360
1366
  ...input.metadata.extractors ? { extractors: input.metadata.extractors } : {},
1361
1367
  lists
1362
1368
  };
@@ -1709,7 +1715,7 @@ var DeeplineContext = class {
1709
1715
  * @param options - Optional SDK client configuration.
1710
1716
  */
1711
1717
  constructor(options) {
1712
- this.client = new (0, _chunkAPLRSERFjs.DeeplineClient)(options);
1718
+ this.client = new (0, _chunkAUMD2VXPjs.DeeplineClient)(options);
1713
1719
  }
1714
1720
  /**
1715
1721
  * Tool operations namespace.
@@ -1825,8 +1831,8 @@ var DeeplineContext = class {
1825
1831
  * Run a named or prebuilt play and wait for its output.
1826
1832
  *
1827
1833
  * This is the high-level SDK equivalent of `ctx.play(name).runSync(input)`.
1828
- * Inside a play runtime, prefer the in-play `ctx.runPlay(key, playRef, input,
1829
- * options)` form so the child run is checkpointed under a stable key.
1834
+ * Inside a Play, prefer `ctx.runPlay(key, playRef, input, options)`.
1835
+ * The runtime checkpoints the child run under a stable key.
1830
1836
  *
1831
1837
  * @param playOrRef - Play name or prebuilt/reference object.
1832
1838
  * @param input - JSON input passed to the play.
@@ -1879,6 +1885,14 @@ function stringArrayRecord(value) {
1879
1885
  function stringArray(value) {
1880
1886
  return Array.isArray(value) ? value.map(String) : [];
1881
1887
  }
1888
+ function listAliasRecord(value) {
1889
+ if (!isRecord2(value)) return void 0;
1890
+ return Object.fromEntries(
1891
+ Object.entries(value).filter(
1892
+ (entry) => typeof entry[1] === "string" && entry[1].length > 0
1893
+ )
1894
+ );
1895
+ }
1882
1896
  function emailStatusExtractorConfig(value) {
1883
1897
  if (!isRecord2(value)) return void 0;
1884
1898
  const readPaths = (key) => {
@@ -2075,6 +2089,9 @@ function toolExecutionEnvelopeToResult(fallbackToolId, response, options) {
2075
2089
  extractors: extractorDescriptorRecord(toolMetadata.extractors),
2076
2090
  targetGetters: stringArrayRecord(toolMetadata.targetGetters),
2077
2091
  listExtractorPaths: stringArray(toolMetadata.listExtractorPaths),
2092
+ listExtractorAliases: listAliasRecord(
2093
+ toolMetadata.listExtractorAliases
2094
+ ),
2078
2095
  listIdentityGetters: stringArrayRecord(
2079
2096
  toolMetadata.listIdentityGetters
2080
2097
  )
@@ -2194,7 +2211,7 @@ function definePlay(nameOrConfig, maybeFn, maybeBindings) {
2194
2211
  writable: false
2195
2212
  });
2196
2213
  const handle = createNamedPlayHandle(
2197
- () => new (0, _chunkAPLRSERFjs.DeeplineClient)(),
2214
+ () => new (0, _chunkAUMD2VXPjs.DeeplineClient)(),
2198
2215
  name
2199
2216
  );
2200
2217
  for (const key of [
@@ -2354,4 +2371,4 @@ var DEEPLINE_TOOL_CATEGORIES = [
2354
2371
 
2355
2372
 
2356
2373
 
2357
- exports.AuthError = _chunkQ2E4E4FJjs.AuthError; exports.ConfigError = _chunkQ2E4E4FJjs.ConfigError; exports.CtxFetchHttpError = _chunkZ4VNJOF7js.CtxFetchHttpError; exports.CustomerDbQueryOutcomeUnknownError = _chunkQ2E4E4FJjs.CustomerDbQueryOutcomeUnknownError; exports.DEEPLINE_EXTRACTOR_TARGETS = _chunkNA4T3B62js.DEEPLINE_EXTRACTOR_TARGETS; exports.DEEPLINE_EXTRACTOR_TARGET_DEFINITIONS = _chunkNA4T3B62js.DEEPLINE_EXTRACTOR_TARGET_DEFINITIONS; exports.DEEPLINE_TOOL_CATEGORIES = DEEPLINE_TOOL_CATEGORIES; exports.Deepline = Deepline; exports.DeeplineClient = _chunkAPLRSERFjs.DeeplineClient; exports.DeeplineContext = DeeplineContext; exports.DeeplineError = _chunk7P5AA3SNjs.DeeplineError; exports.JOB_CHANGE_STATUS_VALUES = _chunkNA4T3B62js.JOB_CHANGE_STATUS_VALUES; exports.MONITOR_FLEET_AUTHORING_CONTRACT_CHANGELOG = _chunkC374C22Yjs.MONITOR_FLEET_AUTHORING_CONTRACT_CHANGELOG; exports.MONITOR_FLEET_AUTHORING_CONTRACT_EDITION = _chunkC374C22Yjs.MONITOR_FLEET_AUTHORING_CONTRACT_EDITION; exports.MONITOR_FLEET_DOCUMENTATION = _chunkC374C22Yjs.MONITOR_FLEET_DOCUMENTATION; exports.MONITOR_FLEET_FRONTIER_MAX_ROWS = _chunkC374C22Yjs.MONITOR_FLEET_FRONTIER_MAX_ROWS; exports.MONITOR_FLEET_MAX_MEMBERS = _chunkC374C22Yjs.MONITOR_FLEET_MAX_MEMBERS; exports.MONITOR_JOB_PHASES = _chunkAPLRSERFjs.MONITOR_JOB_PHASES; exports.MONITOR_JOB_RECONCILIATION_STATES = _chunkAPLRSERFjs.MONITOR_JOB_RECONCILIATION_STATES; exports.MONITOR_JOB_STATES = _chunkAPLRSERFjs.MONITOR_JOB_STATES; exports.PHONE_STATUS_VALUES = _chunkNA4T3B62js.PHONE_STATUS_VALUES; exports.PROD_URL = _chunkYSAZVLJDjs.PROD_URL; exports.ProviderTransientError = _chunk7P5AA3SNjs.ProviderTransientError; exports.RateLimitError = _chunkQ2E4E4FJjs.RateLimitError; exports.RunEventQueryInputError = _chunkAPLRSERFjs.RunEventQueryInputError; exports.RunObserveTransportUnavailableError = RunObserveTransportUnavailableError; exports.SDK_API_CONTRACT = _chunkYSAZVLJDjs.SDK_API_CONTRACT; exports.SDK_VERSION = _chunkYSAZVLJDjs.SDK_VERSION; exports.ToolExecutionError = _chunk7P5AA3SNjs.ToolExecutionError; exports.ToolRateLimitError = _chunkQ2E4E4FJjs.ToolRateLimitError; exports.admitMonitorFleetAuthoringContract = _chunkC374C22Yjs.admitMonitorFleetAuthoringContract; exports.defineInput = defineInput; exports.defineMonitor = defineMonitor; exports.defineMonitorFleet = _chunkC374C22Yjs.defineMonitorFleet; exports.definePlay = definePlay; exports.defineWorkflow = defineWorkflow; exports.extractSummaryFields = _chunkHGFFYVXNjs.extractSummaryFields; exports.fleetColumn = _chunkC374C22Yjs.fleetColumn; exports.fleetKey = _chunkC374C22Yjs.fleetKey; exports.getDefinedPlayMetadata = getDefinedPlayMetadata; exports.getProviderUnavailableReason = _chunk7P5AA3SNjs.getProviderUnavailableReason; exports.isDeeplineExtractorTarget = _chunkNA4T3B62js.isDeeplineExtractorTarget; exports.isProviderUnavailable = _chunk7P5AA3SNjs.isProviderUnavailable; exports.isProviderWaterfallUnavailableError = _chunk7P5AA3SNjs.isProviderWaterfallUnavailableError; exports.isStopAllPlayRunsDryRunResult = _chunkAPLRSERFjs.isStopAllPlayRunsDryRunResult; exports.lintMonitorBatchInput = _chunkIF75RD6Ujs.lintMonitorBatchInput; exports.lintMonitorFleetInput = _chunkC374C22Yjs.lintMonitorFleetInput; exports.lintMonitorSpecTemplate = _chunkIF75RD6Ujs.lintMonitorSpecTemplate; exports.pinLocalPlayImports = _chunkGEJDBXXMjs.pinLocalPlayImports; exports.planCustomerDbQuery = _chunkAPLRSERFjs.planCustomerDbQuery; exports.planLocalPlayExecution = _chunkGEJDBXXMjs.planLocalPlayExecution; exports.readList = readList; exports.renderMonitorSpecTemplate = _chunkIF75RD6Ujs.renderMonitorSpecTemplate; exports.resolveConfig = _chunkYSAZVLJDjs.resolveConfig; exports.runIf = runIf; exports.steps = steps; exports.tryConvertToList = _chunkHGFFYVXNjs.tryConvertToList; exports.validateMonitorFleetDefinition = _chunkC374C22Yjs.validateMonitorFleetDefinition; exports.writeCsvOutputFile = _chunkHGFFYVXNjs.writeCsvOutputFile; exports.writeJsonOutputFile = _chunkHGFFYVXNjs.writeJsonOutputFile;
2374
+ exports.AuthError = _chunkQ2E4E4FJjs.AuthError; exports.ConfigError = _chunkQ2E4E4FJjs.ConfigError; exports.CtxFetchHttpError = _chunkZ4VNJOF7js.CtxFetchHttpError; exports.CustomerDbQueryOutcomeUnknownError = _chunkQ2E4E4FJjs.CustomerDbQueryOutcomeUnknownError; exports.DEEPLINE_EXTRACTOR_TARGETS = _chunkNA4T3B62js.DEEPLINE_EXTRACTOR_TARGETS; exports.DEEPLINE_EXTRACTOR_TARGET_DEFINITIONS = _chunkNA4T3B62js.DEEPLINE_EXTRACTOR_TARGET_DEFINITIONS; exports.DEEPLINE_TOOL_CATEGORIES = DEEPLINE_TOOL_CATEGORIES; exports.Deepline = Deepline; exports.DeeplineClient = _chunkAUMD2VXPjs.DeeplineClient; exports.DeeplineContext = DeeplineContext; exports.DeeplineError = _chunk7P5AA3SNjs.DeeplineError; exports.JOB_CHANGE_STATUS_VALUES = _chunkNA4T3B62js.JOB_CHANGE_STATUS_VALUES; exports.MONITOR_FLEET_AUTHORING_CONTRACT_CHANGELOG = _chunkC374C22Yjs.MONITOR_FLEET_AUTHORING_CONTRACT_CHANGELOG; exports.MONITOR_FLEET_AUTHORING_CONTRACT_EDITION = _chunkC374C22Yjs.MONITOR_FLEET_AUTHORING_CONTRACT_EDITION; exports.MONITOR_FLEET_DOCUMENTATION = _chunkC374C22Yjs.MONITOR_FLEET_DOCUMENTATION; exports.MONITOR_FLEET_FRONTIER_MAX_ROWS = _chunkC374C22Yjs.MONITOR_FLEET_FRONTIER_MAX_ROWS; exports.MONITOR_FLEET_MAX_MEMBERS = _chunkC374C22Yjs.MONITOR_FLEET_MAX_MEMBERS; exports.MONITOR_JOB_PHASES = _chunkAUMD2VXPjs.MONITOR_JOB_PHASES; exports.MONITOR_JOB_RECONCILIATION_STATES = _chunkAUMD2VXPjs.MONITOR_JOB_RECONCILIATION_STATES; exports.MONITOR_JOB_STATES = _chunkAUMD2VXPjs.MONITOR_JOB_STATES; exports.PHONE_STATUS_VALUES = _chunkNA4T3B62js.PHONE_STATUS_VALUES; exports.PROD_URL = _chunkQUAQX3FQjs.PROD_URL; exports.ProviderTransientError = _chunk7P5AA3SNjs.ProviderTransientError; exports.RateLimitError = _chunkQ2E4E4FJjs.RateLimitError; exports.RunEventQueryInputError = _chunkAUMD2VXPjs.RunEventQueryInputError; exports.RunObserveTransportUnavailableError = RunObserveTransportUnavailableError; exports.SDK_API_CONTRACT = _chunkQUAQX3FQjs.SDK_API_CONTRACT; exports.SDK_VERSION = _chunkQUAQX3FQjs.SDK_VERSION; exports.ToolExecutionError = _chunk7P5AA3SNjs.ToolExecutionError; exports.ToolRateLimitError = _chunkQ2E4E4FJjs.ToolRateLimitError; exports.admitMonitorFleetAuthoringContract = _chunkC374C22Yjs.admitMonitorFleetAuthoringContract; exports.defineInput = defineInput; exports.defineMonitor = defineMonitor; exports.defineMonitorFleet = _chunkC374C22Yjs.defineMonitorFleet; exports.definePlay = definePlay; exports.defineWorkflow = defineWorkflow; exports.extractSummaryFields = _chunkHGFFYVXNjs.extractSummaryFields; exports.fleetColumn = _chunkC374C22Yjs.fleetColumn; exports.fleetKey = _chunkC374C22Yjs.fleetKey; exports.getDefinedPlayMetadata = getDefinedPlayMetadata; exports.getProviderUnavailableReason = _chunk7P5AA3SNjs.getProviderUnavailableReason; exports.isDeeplineExtractorTarget = _chunkNA4T3B62js.isDeeplineExtractorTarget; exports.isProviderUnavailable = _chunk7P5AA3SNjs.isProviderUnavailable; exports.isProviderWaterfallUnavailableError = _chunk7P5AA3SNjs.isProviderWaterfallUnavailableError; exports.isStopAllPlayRunsDryRunResult = _chunkAUMD2VXPjs.isStopAllPlayRunsDryRunResult; exports.lintMonitorBatchInput = _chunkIF75RD6Ujs.lintMonitorBatchInput; exports.lintMonitorFleetInput = _chunkC374C22Yjs.lintMonitorFleetInput; exports.lintMonitorSpecTemplate = _chunkIF75RD6Ujs.lintMonitorSpecTemplate; exports.pinLocalPlayImports = _chunkGEJDBXXMjs.pinLocalPlayImports; exports.planCustomerDbQuery = _chunkAUMD2VXPjs.planCustomerDbQuery; exports.planLocalPlayExecution = _chunkGEJDBXXMjs.planLocalPlayExecution; exports.readList = readList; exports.renderMonitorSpecTemplate = _chunkIF75RD6Ujs.renderMonitorSpecTemplate; exports.resolveConfig = _chunkQUAQX3FQjs.resolveConfig; exports.runIf = runIf; exports.steps = steps; exports.tryConvertToList = _chunkHGFFYVXNjs.tryConvertToList; exports.validateMonitorFleetDefinition = _chunkC374C22Yjs.validateMonitorFleetDefinition; exports.writeCsvOutputFile = _chunkHGFFYVXNjs.writeCsvOutputFile; exports.writeJsonOutputFile = _chunkHGFFYVXNjs.writeJsonOutputFile;
package/dist/index.mjs CHANGED
@@ -28,7 +28,7 @@ import {
28
28
  RunEventQueryInputError,
29
29
  isStopAllPlayRunsDryRunResult,
30
30
  planCustomerDbQuery
31
- } from "./cli/chunk-7ZMVAV2B.mjs";
31
+ } from "./cli/chunk-LOYISF7S.mjs";
32
32
  import {
33
33
  legacyRawFromToolResponseRawV2
34
34
  } from "./cli/chunk-6IKARAYD.mjs";
@@ -62,7 +62,7 @@ import {
62
62
  SDK_API_CONTRACT,
63
63
  SDK_VERSION,
64
64
  resolveConfig
65
- } from "./cli/chunk-CGX4NSS3.mjs";
65
+ } from "./cli/chunk-SD7MXAJA.mjs";
66
66
  import {
67
67
  AuthError,
68
68
  ConfigError,
@@ -79,7 +79,7 @@ import {
79
79
  isProviderUnavailable,
80
80
  isProviderWaterfallUnavailableError
81
81
  } from "./cli/chunk-NXGCO4JB.mjs";
82
- import "./cli/chunk-42RUJLQI.mjs";
82
+ import "./cli/chunk-WTT6CLED.mjs";
83
83
  import "./cli/chunk-WZYKRD7T.mjs";
84
84
  import "./cli/chunk-KRD6H754.mjs";
85
85
 
@@ -748,7 +748,8 @@ function candidateResultPaths(path) {
748
748
  const candidates = [
749
749
  providerPath,
750
750
  normalizeResultPath(path),
751
- toV2RawToolOutputPathPreservingProviderData(path)
751
+ toV2RawToolOutputPathPreservingProviderData(path),
752
+ ...path.startsWith("result.data.") ? [`toolResponse.raw.${path.slice("result.data.".length)}`] : []
752
753
  ];
753
754
  return candidates.filter(
754
755
  (candidate, index, all) => candidate.length > 0 && all.indexOf(candidate) === index
@@ -1048,7 +1049,7 @@ function coerceToEnum(value, descriptor) {
1048
1049
  if (!normalized) return value;
1049
1050
  return descriptor.enum.includes(normalized) ? normalized : value;
1050
1051
  }
1051
- function resolveListRows(result, listExtractorPaths) {
1052
+ function resolveListRows(result, listExtractorPaths, aliases) {
1052
1053
  const lists = {};
1053
1054
  for (const rawPath of listExtractorPaths ?? []) {
1054
1055
  const listName = listNameFromDeclaredPath(rawPath);
@@ -1079,6 +1080,9 @@ function resolveListRows(result, listExtractorPaths) {
1079
1080
  }
1080
1081
  lists[listName] = resolved;
1081
1082
  }
1083
+ for (const [alias, source] of Object.entries(aliases ?? {})) {
1084
+ if (!lists[alias] && lists[source]) lists[alias] = lists[source];
1085
+ }
1082
1086
  return lists;
1083
1087
  }
1084
1088
  function deriveListKeys(input) {
@@ -1349,7 +1353,8 @@ function createToolExecuteResult(input) {
1349
1353
  );
1350
1354
  const resolvedLists = resolveListRows(
1351
1355
  resultRoot,
1352
- input.metadata.listExtractorPaths
1356
+ input.metadata.listExtractorPaths,
1357
+ input.metadata.listExtractorAliases
1353
1358
  );
1354
1359
  const lists = buildLists(resolvedLists, input.metadata);
1355
1360
  const metadata = {
@@ -1357,6 +1362,7 @@ function createToolExecuteResult(input) {
1357
1362
  execution: input.execution,
1358
1363
  targets,
1359
1364
  listExtractorPaths: [...input.metadata.listExtractorPaths ?? []],
1365
+ ...input.metadata.listExtractorAliases ? { listExtractorAliases: { ...input.metadata.listExtractorAliases } } : {},
1360
1366
  ...input.metadata.extractors ? { extractors: input.metadata.extractors } : {},
1361
1367
  lists
1362
1368
  };
@@ -1825,8 +1831,8 @@ var DeeplineContext = class {
1825
1831
  * Run a named or prebuilt play and wait for its output.
1826
1832
  *
1827
1833
  * This is the high-level SDK equivalent of `ctx.play(name).runSync(input)`.
1828
- * Inside a play runtime, prefer the in-play `ctx.runPlay(key, playRef, input,
1829
- * options)` form so the child run is checkpointed under a stable key.
1834
+ * Inside a Play, prefer `ctx.runPlay(key, playRef, input, options)`.
1835
+ * The runtime checkpoints the child run under a stable key.
1830
1836
  *
1831
1837
  * @param playOrRef - Play name or prebuilt/reference object.
1832
1838
  * @param input - JSON input passed to the play.
@@ -1879,6 +1885,14 @@ function stringArrayRecord(value) {
1879
1885
  function stringArray(value) {
1880
1886
  return Array.isArray(value) ? value.map(String) : [];
1881
1887
  }
1888
+ function listAliasRecord(value) {
1889
+ if (!isRecord2(value)) return void 0;
1890
+ return Object.fromEntries(
1891
+ Object.entries(value).filter(
1892
+ (entry) => typeof entry[1] === "string" && entry[1].length > 0
1893
+ )
1894
+ );
1895
+ }
1882
1896
  function emailStatusExtractorConfig(value) {
1883
1897
  if (!isRecord2(value)) return void 0;
1884
1898
  const readPaths = (key) => {
@@ -2075,6 +2089,9 @@ function toolExecutionEnvelopeToResult(fallbackToolId, response, options) {
2075
2089
  extractors: extractorDescriptorRecord(toolMetadata.extractors),
2076
2090
  targetGetters: stringArrayRecord(toolMetadata.targetGetters),
2077
2091
  listExtractorPaths: stringArray(toolMetadata.listExtractorPaths),
2092
+ listExtractorAliases: listAliasRecord(
2093
+ toolMetadata.listExtractorAliases
2094
+ ),
2078
2095
  listIdentityGetters: stringArrayRecord(
2079
2096
  toolMetadata.listIdentityGetters
2080
2097
  )