deepline 0.3.421 → 0.3.423

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 (149) hide show
  1. package/dist/bundling-sources/sdk/src/client.ts +2 -2
  2. package/dist/bundling-sources/sdk/src/index.ts +2 -0
  3. package/dist/bundling-sources/sdk/src/play.ts +227 -184
  4. package/dist/bundling-sources/sdk/src/plays/local-file-discovery.ts +9 -2
  5. package/dist/bundling-sources/sdk/src/plays/local-play-execution.ts +1 -1
  6. package/dist/bundling-sources/sdk/src/release.ts +1 -1
  7. package/dist/bundling-sources/sdk/src/tool-calls.ts +3 -1
  8. package/dist/bundling-sources/sdk/src/types.ts +5 -5
  9. package/dist/bundling-sources/shared_libs/observability/scheduled-jobs.json +6 -6
  10. package/dist/bundling-sources/shared_libs/plays/authoring-contract.ts +37 -36
  11. package/dist/bundling-sources/shared_libs/plays/bundling/index.ts +179 -38
  12. package/dist/bundling-sources/shared_libs/plays/dataset.ts +2 -2
  13. package/dist/bundling-sources/shared_libs/plays/docflow.ts +4 -0
  14. package/dist/bundling-sources/shared_libs/plays/fetch-http-error.ts +1 -1
  15. package/dist/bundling-sources/shared_libs/plays/local-file-discovery.ts +12 -4
  16. package/dist/bundling-sources/shared_libs/plays/play-exports.ts +27 -5
  17. package/dist/bundling-sources/shared_libs/plays/script-entry.ts +992 -0
  18. package/dist/bundling-sources/shared_libs/plays/source-authoring-edition.ts +63 -0
  19. package/dist/bundling-sources/shared_libs/plays/tool-result-types.ts +8 -4
  20. package/dist/bundling-sources/shared_libs/plays/ts-ast.ts +2 -0
  21. package/dist/cli/{auth-56JTC4Q7.mjs → auth-L7Q53QKK.mjs} +4 -4
  22. package/dist/cli/auth-SUNY477Y.js +40 -0
  23. package/dist/cli/{billing-ZXOOZEUW.mjs → billing-IH7AKDR2.mjs} +4 -4
  24. package/dist/cli/{billing-C5LR6FA7.js → billing-QNP6YGI2.js} +73 -73
  25. package/dist/cli/{chunk-AARWVK4C.mjs → chunk-2BQUML3X.mjs} +792 -69
  26. package/dist/cli/{chunk-7SRVIWGT.js → chunk-2F5ULM2F.js} +1 -1
  27. package/dist/cli/{chunk-HP5FD2LI.js → chunk-2U3AMRHF.js} +8 -8
  28. package/dist/cli/{chunk-ERFN2QY4.mjs → chunk-3DNKFH2G.mjs} +1 -1
  29. package/dist/cli/{chunk-5F6W5NWV.mjs → chunk-44US3EL2.mjs} +5 -5
  30. package/dist/cli/{chunk-6UKY4LBW.js → chunk-4WT5RISA.js} +20 -20
  31. package/dist/cli/{chunk-QJV2ALPN.js → chunk-5DGR3TB6.js} +2 -2
  32. package/dist/cli/{chunk-UCI4QROZ.mjs → chunk-6FFORGD2.mjs} +2 -2
  33. package/dist/cli/{chunk-ZSVWCV3G.mjs → chunk-ARTGL3FM.mjs} +1 -1
  34. package/dist/cli/{chunk-FB5H5OOH.js → chunk-AVOBDFQ5.js} +11 -11
  35. package/dist/cli/{chunk-2WOVAVJ3.js → chunk-DRK6FYJU.js} +26 -26
  36. package/dist/cli/{chunk-63ILLN5H.mjs → chunk-DS7Y7X26.mjs} +2 -2
  37. package/dist/cli/{chunk-CTNA5QY2.mjs → chunk-EER67G2B.mjs} +43 -28
  38. package/dist/cli/{chunk-GIJ47TAV.js → chunk-EWWWOKX2.js} +6 -6
  39. package/dist/cli/{chunk-5E55HHW3.mjs → chunk-FJRFSBWO.mjs} +4 -4
  40. package/dist/cli/{chunk-27GJKC5Q.js → chunk-GXOQRZXG.js} +2 -2
  41. package/dist/cli/{chunk-RURYN2BE.mjs → chunk-H662SHPT.mjs} +28 -27
  42. package/dist/cli/{chunk-PKBPSMOT.js → chunk-INFLI36H.js} +43 -28
  43. package/dist/cli/{chunk-RJLFCJ23.mjs → chunk-IW5QK3K6.mjs} +3 -3
  44. package/dist/cli/{chunk-SPLOMS4N.mjs → chunk-JDAXVQV7.mjs} +1 -1
  45. package/dist/cli/{chunk-4PG4ARL2.mjs → chunk-KPKU53YO.mjs} +1 -1
  46. package/dist/cli/{chunk-IMZ56EOH.mjs → chunk-LXTSVUZN.mjs} +2 -2
  47. package/dist/cli/{chunk-F4V4JJED.mjs → chunk-MHG3NND4.mjs} +3 -3
  48. package/dist/cli/{chunk-IHG7UAHD.mjs → chunk-MLJBCS3E.mjs} +32 -13
  49. package/dist/cli/{chunk-5KYK4DGY.js → chunk-MMI2DXCW.js} +8 -8
  50. package/dist/cli/{chunk-VEYAPBS4.js → chunk-NA6SGG7X.js} +260 -259
  51. package/dist/cli/{chunk-AZGJNNNE.mjs → chunk-NFIZ5YED.mjs} +2 -2
  52. package/dist/cli/{chunk-WR4M5VWK.js → chunk-OMWO2JLC.js} +52 -52
  53. package/dist/cli/{chunk-EKQH4IUU.mjs → chunk-OPI7UCQG.mjs} +1 -1
  54. package/dist/cli/{chunk-2XKDLS5P.js → chunk-OZLMMMZH.js} +6 -6
  55. package/dist/cli/{chunk-ZLPT2RZ5.mjs → chunk-PH4BP6KM.mjs} +2 -2
  56. package/dist/cli/{chunk-NSJRLP7R.js → chunk-PQ4G6MKI.js} +16 -16
  57. package/dist/cli/{chunk-4NS4EZHN.mjs → chunk-QN6DG4JO.mjs} +2 -2
  58. package/dist/cli/{chunk-VC3E5HFO.mjs → chunk-QWJJMQNE.mjs} +1 -1
  59. package/dist/cli/{chunk-GEJDBXXM.js → chunk-QWRHGGUH.js} +1 -1
  60. package/dist/cli/{chunk-AD47BXN2.js → chunk-R2QWSSAG.js} +8 -8
  61. package/dist/cli/{chunk-JJQLBZEW.js → chunk-RAL75ND3.js} +2 -2
  62. package/dist/cli/{chunk-QADCFSGH.js → chunk-RDIN3NKA.js} +17 -17
  63. package/dist/cli/{chunk-7TSF7E3B.mjs → chunk-S6KG7JCR.mjs} +2 -2
  64. package/dist/cli/{chunk-BQR6UN3C.js → chunk-VUYUI35Q.js} +32 -13
  65. package/dist/cli/{chunk-C25ZYL6U.js → chunk-W42SSVM7.js} +4 -4
  66. package/dist/cli/{chunk-ZZBXD5VX.js → chunk-WJO7KIFT.js} +50 -50
  67. package/dist/cli/{chunk-VYLZS7X4.mjs → chunk-XSERB7H2.mjs} +1 -1
  68. package/dist/cli/{chunk-4I26IVFC.js → chunk-YCHR57TD.js} +35 -35
  69. package/dist/cli/{chunk-OQQOXSYA.js → chunk-YHRS6XTB.js} +845 -122
  70. package/dist/cli/{chunk-ZOL3CIKN.mjs → chunk-YNT7PJND.mjs} +3 -3
  71. package/dist/cli/command-docs.js +2 -2
  72. package/dist/cli/command-docs.mjs +1 -1
  73. package/dist/cli/{csv-EJ4QRLA2.mjs → csv-5KW7M6ZS.mjs} +3 -3
  74. package/dist/cli/{csv-G6H3U4XV.js → csv-GF7VRES5.js} +12 -12
  75. package/dist/cli/{db-WKQFXUWI.js → db-AEDXKB4F.js} +26 -26
  76. package/dist/cli/{db-PBIIALJ5.mjs → db-NN4JQAC4.mjs} +5 -5
  77. package/dist/cli/{describe-ZCU36ES2.js → describe-5RLXW332.js} +24 -24
  78. package/dist/cli/{describe-DMRK4UNO.mjs → describe-RX6VROHQ.mjs} +16 -16
  79. package/dist/cli/describe-core.d.mts +2 -2
  80. package/dist/cli/describe-core.d.ts +2 -2
  81. package/dist/cli/describe-core.js +4 -4
  82. package/dist/cli/describe-core.mjs +3 -3
  83. package/dist/cli/{executions-JAHW6GMA.mjs → executions-EJZ34VUB.mjs} +4 -4
  84. package/dist/cli/{executions-SBA3UYMH.js → executions-PGIGFDDS.js} +6 -6
  85. package/dist/cli/{feedback-PKBUYHMD.mjs → feedback-6MWOKE7H.mjs} +3 -3
  86. package/dist/cli/{feedback-QAE4V2NY.js → feedback-L2ODMANV.js} +7 -7
  87. package/dist/cli/git-2ZDCRTBD.js +24 -0
  88. package/dist/cli/{git-GAO3SJAQ.mjs → git-456RF3AT.mjs} +4 -4
  89. package/dist/cli/index.js +135 -135
  90. package/dist/cli/index.mjs +37 -37
  91. package/dist/cli/{legacy-noops-JCMVW5BL.js → legacy-noops-MDPB3MIS.js} +7 -7
  92. package/dist/cli/{legacy-noops-5PY2ZZF3.mjs → legacy-noops-ZPRBXQDE.mjs} +4 -4
  93. package/dist/cli/{monitors-YPS4LPDG.js → monitors-TXKR5XYW.js} +86 -86
  94. package/dist/cli/{monitors-GVYAZRMB.mjs → monitors-ZLP6A7FT.mjs} +6 -6
  95. package/dist/cli/{org-OBVAU6K7.js → org-73SQ3AT2.js} +64 -64
  96. package/dist/cli/{org-R7AKPKUB.mjs → org-YZ62BIGM.mjs} +4 -4
  97. package/dist/cli/{play-MTHQQHR6.js → play-M75EBXEV.js} +606 -567
  98. package/dist/cli/{play-3LFM2SV2.mjs → play-VCYQKCKF.mjs} +113 -74
  99. package/dist/cli/{providers-CTIROUI3.js → providers-GIINJPWQ.js} +7 -7
  100. package/dist/cli/{providers-IRICPDKU.mjs → providers-JLA6LST3.mjs} +4 -4
  101. package/dist/cli/{quickstart-5FBQVZ5B.mjs → quickstart-AHCU75GG.mjs} +3 -3
  102. package/dist/cli/{quickstart-OZDVFNF2.js → quickstart-HHHLYCHT.js} +5 -5
  103. package/dist/cli/{search-FYM47QFU.mjs → search-5GACUIAX.mjs} +5 -5
  104. package/dist/cli/search-W2PGBXQO.js +30 -0
  105. package/dist/cli/{secrets-43GJUDAE.js → secrets-PI7IPCOE.js} +13 -13
  106. package/dist/cli/{secrets-ENBXU3O3.mjs → secrets-S2NBKAEN.mjs} +4 -4
  107. package/dist/cli/{sessions-RXX5IHG6.js → sessions-BK4CSRFS.js} +5 -5
  108. package/dist/cli/{sessions-7IQJOH5Z.mjs → sessions-IBKYGTBD.mjs} +4 -4
  109. package/dist/cli/{settings-Z2CWWV7P.js → settings-2G7TUDM7.js} +75 -75
  110. package/dist/cli/{settings-EZGDTS3K.mjs → settings-JY6UN4KO.mjs} +8 -8
  111. package/dist/cli/{setup-N5UMUBBV.mjs → setup-HS5X3OSN.mjs} +7 -7
  112. package/dist/cli/{setup-2ON3TUXP.js → setup-R424FIBF.js} +42 -42
  113. package/dist/cli/skills-M3RZAN4A.js +29 -0
  114. package/dist/cli/{skills-4MR2Z2M5.mjs → skills-UIBUDTGN.mjs} +5 -5
  115. package/dist/cli/tools-K2GII2PA.js +44 -0
  116. package/dist/cli/{tools-MCEIWE3I.mjs → tools-SB4FREB6.mjs} +15 -15
  117. package/dist/cli/update-C2ORJRXN.js +31 -0
  118. package/dist/cli/{update-2JDBGLTX.mjs → update-NJSUE2YU.mjs} +7 -7
  119. package/dist/cli/{workflow-7DNBY4WJ.js → workflow-3AZWZ4J3.js} +19 -19
  120. package/dist/cli/{workflow-7UDXYU5Y.mjs → workflow-HBG76XYX.mjs} +9 -9
  121. package/dist/{client-CCWIUnk7.d.mts → client-BTUOYGID.d.mts} +10 -9
  122. package/dist/{client-vHqBm-OL.d.ts → client-C668iUhZ.d.ts} +10 -9
  123. package/dist/{compiler-manifest-lzWpbV3w.d.ts → compiler-manifest-DaFuA1ki.d.mts} +35 -32
  124. package/dist/{compiler-manifest-lzWpbV3w.d.mts → compiler-manifest-DaFuA1ki.d.ts} +35 -32
  125. package/dist/{index-CtNK-0nI.d.mts → index-0yS9ihly.d.mts} +10 -3
  126. package/dist/{index-C8Cy-YTm.d.ts → index-CRAScKPg.d.ts} +10 -3
  127. package/dist/index.d.mts +120 -150
  128. package/dist/index.d.ts +120 -150
  129. package/dist/index.js +77 -12
  130. package/dist/index.mjs +74 -9
  131. package/dist/install-integrity.json +99 -98
  132. package/dist/plays/bundle-play-file.d.mts +3 -3
  133. package/dist/plays/bundle-play-file.d.ts +3 -3
  134. package/dist/plays/bundle-play-file.mjs +1 -1
  135. package/dist/plays/play-description.d.mts +2 -2
  136. package/dist/plays/play-description.d.ts +2 -2
  137. package/dist/plays/run-request.d.mts +2 -2
  138. package/dist/plays/run-request.d.ts +2 -2
  139. package/dist/release.d.mts +1 -1
  140. package/dist/release.d.ts +1 -1
  141. package/dist/release.js +2 -2
  142. package/dist/release.mjs +1 -1
  143. package/package.json +1 -1
  144. package/dist/cli/auth-ZQMAF7W5.js +0 -40
  145. package/dist/cli/git-54INNT33.js +0 -24
  146. package/dist/cli/search-XIKHDZJ3.js +0 -30
  147. package/dist/cli/skills-2WIHNEOS.js +0 -29
  148. package/dist/cli/tools-YUUSOKYX.js +0 -44
  149. package/dist/cli/update-PWX4MJ3R.js +0 -31
package/dist/index.d.ts CHANGED
@@ -1,9 +1,9 @@
1
1
  /// <reference path="./text-imports.d.ts" />
2
- import { i as PlayAuthoringFetchResponse, T as ToolExecuteResult, B as BasicToolExecuteResult, j as PlayDataset, A as AsyncPlayRunRef$1, k as PlayAuthoringColumnMap, l as PlayAuthoringColumnResolver, m as PlayAuthoringRuntimeContext, n as PlayAuthoringConditionalStepResolver, o as PlayAuthoringCsvInput, p as PlayAuthoringCsvOptions, q as PlayAuthoringDatasetBuilder, r as PlayAuthoringDatasetColumnDefinition, s as PlayAuthoringDatasetColumnRunInput, t as PlayAuthoringReferenceLike, u as PlayReturnObject$1, v as PlayAuthoringDefineConfig, w as PlayAuthoringDefinedPlay, x as PlayAuthoringFetchOptions, y as PlayAuthoringFileInput, z as PlayAuthoringAsyncCallOptions, C as PlayAuthoringBindings, D as PlayAuthoringCallExecution, E as PlayAuthoringCallOptions, 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-lzWpbV3w.js';
3
- export { Y as BillingEntitlements, Z as DEEPLINE_EXTRACTOR_TARGETS, _ as DEEPLINE_EXTRACTOR_TARGET_DEFINITIONS, $ as DeeplineEmailStatusGetterValue, a0 as DeeplineExtractorTarget, a1 as DeeplineGetterValue, a2 as DeeplineGetterValueMap, a3 as JOB_CHANGE_STATUS_VALUES, a4 as JobChangeStatus, a5 as PHONE_STATUS_VALUES, a6 as PhoneStatus, a7 as PlayDatasetInput, a8 as PreviousCell, a9 as ProviderTransientError, aa as ProviderTransientErrorCategory, ab as ProviderUnavailableError, ac as ProviderUnavailableReason, ad as ToolExecutionErrorCategory, ae as ToolExecutionErrorOrigin, af as ToolExecutionFailureV1, ag as ToolExecutionNetworkKind, ah as ToolExecutionNetworkScope, ai as ToolExecutionPublicDetails, aj as ToolResultBilling, ak as getProviderUnavailableReason, al as isDeeplineExtractorTarget, am as isProviderUnavailable, an as isProviderWaterfallUnavailableError } from './compiler-manifest-lzWpbV3w.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-vHqBm-OL.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 ToolCategoryListing, b$ as ToolCategorySummary, c0 as ToolExecution, c1 as ToolRequestCondition, c2 as ToolRequestWarningRule, c3 as ToolSearchOptions, c4 as ToolSearchResult, c5 as WorkspaceCreateResult, c6 as WorkspacesNamespace, c7 as defineMonitor, c8 as isStopAllPlayRunsDryRunResult, c9 as planCustomerDbQuery } from './client-vHqBm-OL.js';
6
- import { b as BundledPlayFileSuccess } from './index-C8Cy-YTm.js';
2
+ import { i as PlayAuthoringFetchResponse, T as ToolExecuteResult, B as BasicToolExecuteResult, j as PlayDataset, A as AsyncPlayRunRef$1, k as PlayAuthoringColumnMap, l as PlayAuthoringColumnResolver, m as PlayAuthoringRuntimeContext, n as PlayAuthoringConditionalStepResolver, o as PlayAuthoringCsvInput, p as PlayAuthoringCsvOptions, q as PlayAuthoringDatasetBuilder, r as PlayAuthoringDatasetColumnDefinition, s as PlayAuthoringDatasetColumnRunInput, t as PlayAuthoringReferenceLike, u as PlayReturnObject$1, v as PlayAuthoringDefineConfig, w as PlayAuthoringDefinedPlay, x as PlayAuthoringFetchOptions, y as PlayAuthoringFileInput, z as PlayAuthoringAsyncCallOptions, C as PlayAuthoringBindings, D as PlayAuthoringCallExecution, E as PlayAuthoringCallOptions, 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-DaFuA1ki.js';
3
+ export { Y as BillingEntitlements, Z as DEEPLINE_EXTRACTOR_TARGETS, _ as DEEPLINE_EXTRACTOR_TARGET_DEFINITIONS, $ as DeeplineEmailStatusGetterValue, a0 as DeeplineExtractorTarget, a1 as DeeplineGetterValue, a2 as DeeplineGetterValueMap, a3 as JOB_CHANGE_STATUS_VALUES, a4 as JobChangeStatus, a5 as PHONE_STATUS_VALUES, a6 as PhoneStatus, a7 as PlayDatasetInput, a8 as PreviousCell, a9 as ProviderTransientError, aa as ProviderTransientErrorCategory, ab as ProviderUnavailableError, ac as ProviderUnavailableReason, ad as ToolExecutionErrorCategory, ae as ToolExecutionErrorOrigin, af as ToolExecutionFailureV1, ag as ToolExecutionNetworkKind, ah as ToolExecutionNetworkScope, ai as ToolExecutionPublicDetails, aj as ToolResultBilling, ak as getProviderUnavailableReason, al as isDeeplineExtractorTarget, am as isProviderUnavailable, an as isProviderWaterfallUnavailableError } from './compiler-manifest-DaFuA1ki.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-C668iUhZ.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 ToolCategoryListing, b$ as ToolCategorySummary, c0 as ToolExecution, c1 as ToolRequestCondition, c2 as ToolRequestWarningRule, c3 as ToolSearchOptions, c4 as ToolSearchResult, c5 as WorkspaceCreateResult, c6 as WorkspacesNamespace, c7 as defineMonitor, c8 as isStopAllPlayRunsDryRunResult, c9 as planCustomerDbQuery } from './client-C668iUhZ.js';
6
+ import { b as BundledPlayFileSuccess } from './index-CRAScKPg.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';
@@ -20,7 +20,7 @@ declare class CtxFetchAmbiguousWriteError extends Error {
20
20
  }
21
21
 
22
22
  /**
23
- * Edition 5+ `ctx.fetch` error for a non-2xx response. Its full readable body is secret-redacted; editions 1–4 retain `PlayFetchResponse { ok: false }`.
23
+ * Edition 5+ `deepline.fetch` error for a non-2xx response. Its full readable body is secret-redacted; editions 1–4 retain `PlayFetchResponse { ok: false }`.
24
24
  *
25
25
  * @sdkReference runtime 178 CtxFetchHttpError
26
26
  */
@@ -61,10 +61,13 @@ type RuntimeStepOptions = PlayAuthoringRuntimeStepOptions;
61
61
  type FetchOptions = PlayAuthoringFetchOptions;
62
62
  type PlayFetchResponse = PlayAuthoringFetchResponse;
63
63
  /**
64
- * Optional Play configuration, including triggers and runtime limits.
64
+ * Optional Play configuration, declared once at the top of the play file as
65
+ * an object literal: `export const config = { ... };`. Settings: `name`
66
+ * (defaults to the file name), `description`, `displayName`, `cron`,
67
+ * `webhook`, `sqlListeners`, `runtime`, `billing`, `compatibility`. It is
68
+ * read without running the play, so its values must be literals.
65
69
  *
66
- * A play can be triggered three ways, declared as the third argument to
67
- * {@link definePlay}:
70
+ * A play can be triggered three ways:
68
71
  * - `webhook` — an inbound HTTP call (with optional legacy HMAC or Standard
69
72
  * Webhooks signature verification).
70
73
  * - `cron` — a schedule.
@@ -73,17 +76,17 @@ type PlayFetchResponse = PlayAuthoringFetchResponse;
73
76
  * (e.g. run enrichment every time a watched company posts a new job). Each
74
77
  * listener binds to a monitor tool id + one of its output stream keys (see
75
78
  * `deepline monitors available <id>` for a tool's streams and row columns).
76
- * The changed row is delivered to the handler as the listener event's `after`.
79
+ * The changed row is delivered as the listener event's `after` in the play function's input.
77
80
  *
78
81
  * The default Play runtime is 30 minutes. For bounded long-running batches, add
79
82
  * `runtime: { timeout: '90m', size: 'standard' }`; duration values are whole minutes or hours, up to `4h`.
80
- * It differs from `ctx.tools.execute({ timeoutMs })`, which limits one provider call.
83
+ * It differs from `deepline.tools.execute({ timeoutMs })`, which limits one provider call.
81
84
  *
82
85
  * @example Webhook with HMAC verification. `secretEnv` is the Deepline Secret
83
86
  * name configured with `deepline secrets set`, retained as the legacy field
84
87
  * name for SDK compatibility.
85
88
  * ```typescript
86
- * definePlay('webhook-handler', handler, {
89
+ * export const config = {
87
90
  * webhook: {
88
91
  * hmac: {
89
92
  * algorithm: 'sha256',
@@ -93,12 +96,12 @@ type PlayFetchResponse = PlayAuthoringFetchResponse;
93
96
  * secretEnv: 'WEBHOOK_SECRET',
94
97
  * },
95
98
  * },
96
- * });
99
+ * };
97
100
  * ```
98
101
  *
99
102
  * @example Svix / Standard Webhooks verification with Deepline Secrets
100
103
  * ```typescript
101
- * definePlay('visitor-webhook', handler, {
104
+ * export const config = {
102
105
  * webhook: {
103
106
  * auth: {
104
107
  * type: 'standard-webhooks',
@@ -106,19 +109,17 @@ type PlayFetchResponse = PlayAuthoringFetchResponse;
106
109
  * signingSecrets: ['VECTOR_WEBHOOK_SECRET'],
107
110
  * },
108
111
  * },
109
- * });
112
+ * };
110
113
  * ```
111
114
  *
112
115
  * @example Cron schedule
113
116
  * ```typescript
114
- * definePlay('nightly-sync', handler, {
115
- * cron: { schedule: '0 2 * * *', timezone: 'UTC' },
116
- * });
117
+ * export const config = { cron: { schedule: '0 2 * * *', timezone: 'UTC' } };
117
118
  * ```
118
119
  *
119
120
  * @example Monitor-triggered (run a play on a monitor's output)
120
121
  * ```typescript
121
- * definePlay('on-new-job-opening', handler, {
122
+ * export const config = {
122
123
  * sqlListeners: [
123
124
  * {
124
125
  * id: 'jobs',
@@ -127,19 +128,19 @@ type PlayFetchResponse = PlayAuthoringFetchResponse;
127
128
  * operations: ['INSERT'],
128
129
  * },
129
130
  * ],
130
- * });
131
+ * };
131
132
  * ```
132
133
  *
133
- * @sdkReference runtime 030
134
+ * @sdkReference runtime 006 export const config
134
135
  */
135
136
  type PlayBindings<TInput = Record<string, unknown>> = PlayAuthoringBindings<TInput>;
136
137
  type SqlListenerOperation = PlaySqlListenerOperation;
137
138
  type SqlListenerDeclaration = PlaySqlListenerDeclaration;
138
139
  type SqlListenerEvent<T extends object = Record<string, unknown>> = PlaySqlListenerEvent<T>;
139
- /** @deprecated Pass a SQL string directly to ctx.customerDb.query. */
140
+ /** @deprecated Pass a SQL string directly to deepline.customerDb.query. */
140
141
  type SqlQuery = PlaySqlQuery;
141
142
  /**
142
- * Keyword-style request object for `ctx.tools.execute(...)`.
143
+ * Keyword-style request object for `deepline.tools.execute(...)`.
143
144
  *
144
145
  * The `tool` value comes from live tool discovery. The `id` is the stable
145
146
  * logical call name used for logs, metadata, and result-cache identity. Provider
@@ -178,7 +179,7 @@ type StepProgramResolver<Input, Return> = PlayAuthoringStepProgramResolver<Input
178
179
  type PlayStepProgramStep = PlayAuthoringStepProgramStep<DeeplinePlayRuntimeContext>;
179
180
  type ColumnResolver<Row, Value> = PlayAuthoringColumnResolver<Row, Value, DeeplinePlayRuntimeContext>;
180
181
  /**
181
- * Builder returned by `ctx.dataset(...)` for row-level durable columns.
182
+ * Builder returned by `deepline.dataset(...)` for row-level durable columns.
182
183
  *
183
184
  * @sdkReference runtime 070 .dataset(...).withColumn(name, resolver).run(options)
184
185
  */
@@ -198,57 +199,98 @@ type FileInput<TMetadata = unknown> = PlayAuthoringFileInput<TMetadata>;
198
199
  type CsvInput<TRow extends object = Record<string, unknown>> = PlayAuthoringCsvInput<TRow>;
199
200
  type ColumnMap<TRow extends object> = PlayAuthoringColumnMap<TRow>;
200
201
  /**
201
- * Options for loading a staged CSV with `ctx.csv(...)`.
202
+ * Options for loading a staged CSV with `deepline.csv(...)`.
202
203
  *
203
204
  * @sdkReference runtime 050
204
205
  */
205
206
  type CsvOptions = PlayAuthoringCsvOptions;
206
207
  /**
207
- * Runtime context available inside a play function.
208
- *
209
- * Provides methods for calling tools, processing data, and emitting logs.
210
- * This context is injected by the Temporal worker — you never construct it directly.
208
+ * The play runtime: every member of `deepline` except `config`, `input` and
209
+ * `output`. Use it to type a helper module's parameter; pass `deepline` in.
211
210
  *
212
211
  * @example
213
212
  * ```typescript
214
- * definePlay('example', async (ctx, input: { domain: string; csv: string }) => {
215
- * // Call a tool
216
- * const company = await ctx.tools.execute({
217
- * id: 'company_search',
218
- * tool: 'test_company_search',
213
+ * // enrich.ts
214
+ * import type { DeeplinePlayRuntimeContext } from 'deepline';
215
+ *
216
+ * export function lookUp(deepline: DeeplinePlayRuntimeContext, domain: string) {
217
+ * return deepline.tools.execute({
218
+ * id: 'company',
219
+ * tool: 'company_lookup',
220
+ * input: { domain },
221
+ * description: 'Look up the company.',
222
+ * });
223
+ * }
224
+ * ```
225
+ */
226
+ type DeeplinePlayRuntimeContext = PlayAuthoringRuntimeContext<'array'>;
227
+ /**
228
+ * `import deepline from 'deepline'` — the play runtime. A play is a
229
+ * `.play.ts` file that default-exports an async function of its input; the
230
+ * file name is the play name. The parameter's type is the input contract and
231
+ * the returned object is the result. Every
232
+ * runtime call below is `deepline.<name>`, including inside dataset resolvers
233
+ * and step bodies.
234
+ *
235
+ * ```ts
236
+ * import deepline from 'deepline';
237
+ *
238
+ * export default async function (input: { domain: string }) {
239
+ * const company = await deepline.tools.execute({
240
+ * id: 'company',
241
+ * tool: 'company_lookup',
219
242
  * input: { domain: input.domain },
220
- * description: 'Look up company details by domain.',
243
+ * description: 'Look up the company.',
244
+ * staleAfterSeconds: 0,
221
245
  * });
246
+ * return { company };
247
+ * }
248
+ * ```
222
249
  *
223
- * // Fan-out: process items with named columns
224
- * const enriched = await ctx
225
- * .dataset('companies', [{ domain: 'a.com' }, { domain: 'b.com' }])
226
- * .withColumn('company', (row, rowCtx) =>
227
- * rowCtx.tools.execute({
228
- * id: 'company_search',
229
- * tool: 'test_company_search',
230
- * input: { domain: row.domain },
231
- * description: 'Look up company details by domain.',
232
- * }))
233
- * .run({ description: 'Look up company details.' });
234
- *
235
- * // Load CSV data from a submitted play input field.
236
- * const leads = await ctx.csv(input.csv);
237
- *
238
- * // Emit a log line (visible in `play tail`)
239
- * ctx.log(`Loaded ${await leads.count()} leads`);
250
+ * ```bash
251
+ * deepline plays run lookup.play.ts --input '{"domain":"stripe.com"}'
252
+ * deepline plays run -e 'deepline.log("hello"); return { ok: true };'
253
+ * ```
240
254
  *
241
- * // Wait at least one second before continuing.
242
- * await ctx.sleep(1000);
255
+ * Compose with `import child from './child.play'` and
256
+ * `await deepline.runPlay('key', child, input, { description })`, or by name.
257
+ * `deepline` works only in the play file; pass it to helper modules as an
258
+ * argument typed {@link DeeplinePlayRuntimeContext}. The file exports only
259
+ * the play function and, optionally, its `config`.
243
260
  *
244
- * // Access submitted input through the handler's second argument.
245
- * ctx.log(`Running for ${input.domain}`);
261
+ * @sdkReference runtime 005 deepline
262
+ */
263
+ type ScriptPlayContext = DeeplinePlayRuntimeContext & {
264
+ /** The same settings as `export const config = { ... }`. */
265
+ config(config: PlayBindings & {
266
+ name?: string;
267
+ }): void;
268
+ /**
269
+ * The run's input. A play function receives it as its parameter instead;
270
+ * this is not called at the top of a play file.
271
+ */
272
+ input<TInput = Record<string, unknown>>(): TInput;
273
+ /**
274
+ * Sets the play's result; deepline calls after it fail. A play function
275
+ * returns its result instead; this is not called at the top of a play file.
276
+ */
277
+ output(result: PlayReturnObject): void;
278
+ };
279
+ /**
280
+ * Runs a play module's body with `deepline` bound to this run. The bundler
281
+ * wraps the module's code, and the dispatch to its default-exported play
282
+ * function, in this call, so the artifact keeps the runner's
283
+ * `(context, input) => result` contract.
246
284
  *
247
- * return { company, enriched };
248
- * });
249
- * ```
285
+ * @internal
250
286
  */
251
- type DeeplinePlayRuntimeContext = PlayAuthoringRuntimeContext<'array'>;
287
+ declare function runScriptPlay(context: DeeplinePlayRuntimeContext, input: unknown, body: () => Promise<unknown>): Promise<PlayReturnObject>;
288
+ /**
289
+ * The live play runtime for a script play. Inside a run it is that run's
290
+ * context (bound per async flow, so concurrent rows and steps keep their own
291
+ * scope); anywhere else, using it is a mistake worth a clear error.
292
+ */
293
+ declare const deepline: ScriptPlayContext;
252
294
  /**
253
295
  * Handle to a Play execution: inspect status, stream logs, await output, or cancel.
254
296
  * Like `deepline plays run` and `POST /api/v2/plays/run`, it returns a run id first.
@@ -259,7 +301,8 @@ type DeeplinePlayRuntimeContext = PlayAuthoringRuntimeContext<'array'>;
259
301
  *
260
302
  * @example
261
303
  * ```typescript
262
- * const job: PlayJob = await ctx.play('my-play').run({ domain: 'stripe.com' });
304
+ * const client = await Deepline.connect();
305
+ * const job: PlayJob = await client.play('my-play').run({ domain: 'stripe.com' });
263
306
  *
264
307
  * // Poll status
265
308
  * const status = await job.status();
@@ -328,8 +371,8 @@ interface PlayJob<TOutput = unknown> {
328
371
  *
329
372
  * @example
330
373
  * ```typescript
331
- * const ctx = await Deepline.connect();
332
- * const play = ctx.play<{ domain: string }, Company>('company-lookup');
374
+ * const client = await Deepline.connect();
375
+ * const play = client.play<{ domain: string }, Company>('company-lookup');
333
376
  *
334
377
  * // Get play definition
335
378
  * const detail = await play.get();
@@ -402,8 +445,8 @@ type DeeplineToolCallOptions = Pick<ExecuteToolRawOptions, 'timeout' | 'idempote
402
445
  * Tool/provider operations available from a connected {@link DeeplineContext}.
403
446
  *
404
447
  * This namespace is for regular SDK callers outside a play runtime. Inside a
405
- * `definePlay(...)` body, use `ctx.tools.execute({ id, tool, input, ... })`
406
- * so provider calls become durable runtime checkpoints.
448
+ * play, use `deepline.tools.execute({ id, tool, input, ... })` so provider
449
+ * calls become durable runtime checkpoints.
407
450
  *
408
451
  * @sdkReference tools 010 DeeplineContext.tools
409
452
  */
@@ -417,7 +460,7 @@ type DeeplineToolsNamespace = {
417
460
  /**
418
461
  * Execute a provider-backed tool from a regular SDK process.
419
462
  *
420
- * For durable play code, prefer `ctx.tools.execute(...)` because the play
463
+ * For durable play code, prefer `deepline.tools.execute(...)` because the play
421
464
  * runtime records the call under a stable id.
422
465
  */
423
466
  execute(toolId: string, input: Record<string, unknown>, options?: DeeplineToolCallOptions): Promise<DeeplineToolExecuteResult>;
@@ -447,7 +490,7 @@ type PrebuiltPlayRef = {
447
490
  readonly name: string;
448
491
  };
449
492
  type PlayReferenceLike<TInput extends Record<string, unknown> = Record<string, unknown>> = PlayAuthoringReferenceLike<TInput>;
450
- /** Branded durable identity returned by ctx.runPlayAsync. */
493
+ /** Branded durable identity returned by deepline.runPlayAsync. */
451
494
  type PlayRunId = PlayRunId$1;
452
495
  /** Serializable reference to an independently scheduled Play Run. */
453
496
  type AsyncPlayRunRef = AsyncPlayRunRef$1;
@@ -457,14 +500,9 @@ type PlayAsyncCallOptions = PlayAuthoringAsyncCallOptions;
457
500
  type PlayReturnObject = PlayReturnObject$1;
458
501
  type PlayInputContract<TInput> = PlayAuthoringInputContract<TInput>;
459
502
  /**
460
- * Object-form play definition accepted by `definePlay(config)`.
503
+ * Object-form config accepted by the older `definePlay(config)` form. Files
504
+ * that export `definePlay(...)` keep working; new plays use {@link deepline}.
461
505
  *
462
- * Use this form when the input contract should be explicit at definition time
463
- * through `defineInput<T>(schema)`, or when configuration reads clearer as one
464
- * object. The shorthand `definePlay(name, fn, bindings?)` is equivalent for
465
- * simple file-backed plays.
466
- *
467
- * @sdkReference runtime 020
468
506
  */
469
507
  type DefinePlayConfig<TInput, TOutput extends PlayReturnObject> = PlayAuthoringDefineConfig<TInput, TOutput, DeeplinePlayRuntimeContext>;
470
508
  declare function steps<TInput>(options?: StepProgramOptions): StepProgram<TInput, TInput, TInput>;
@@ -565,7 +603,7 @@ declare class DeeplineContext {
565
603
  * Play discovery and named-play handles.
566
604
  *
567
605
  * Use `plays.list()` for discovery and `plays.get(name)` when you prefer a
568
- * namespace spelling over `ctx.play(name)`.
606
+ * namespace spelling over `play(name)`.
569
607
  */
570
608
  get plays(): DeeplinePlaysNamespace;
571
609
  /**
@@ -573,7 +611,7 @@ declare class DeeplineContext {
573
611
  *
574
612
  * Known prebuilts are exposed by camel-cased aliases. Any other property is
575
613
  * converted into `prebuilt/<property>` so callers can pass the reference to
576
- * `ctx.runPlay(...)`.
614
+ * `deepline.runPlay(...)` inside a play.
577
615
  */
578
616
  get prebuilt(): Record<string, PrebuiltPlayRef>;
579
617
  /**
@@ -586,7 +624,7 @@ declare class DeeplineContext {
586
624
  *
587
625
  * @example
588
626
  * ```typescript
589
- * const play = ctx.play<{ domain: string }>('email-waterfall');
627
+ * const play = client.play<{ domain: string }>('email-waterfall');
590
628
  * const job = await play.run({ domain: 'stripe.com' });
591
629
  * const result = await job.get();
592
630
  * ```
@@ -595,8 +633,8 @@ declare class DeeplineContext {
595
633
  /**
596
634
  * Run a named or prebuilt play and wait for its output.
597
635
  *
598
- * This is the high-level SDK equivalent of `ctx.play(name).runSync(input)`.
599
- * Inside a Play, prefer `ctx.runPlay(key, playRef, input, options)`.
636
+ * This is the high-level SDK equivalent of `client.play(name).runSync(input)`.
637
+ * Inside a play, use `deepline.runPlay(key, playRef, input, options)`.
600
638
  * The runtime checkpoints the child run under a stable key.
601
639
  *
602
640
  * @param playOrRef - Play name or prebuilt/reference object.
@@ -646,12 +684,8 @@ declare class Deepline {
646
684
  }
647
685
  declare function defineInput<TInput>(schema: Record<string, unknown>): PlayInputContract<TInput>;
648
686
  /**
649
- * Define a play — a composable TypeScript workflow for the Deepline platform.
650
- *
651
- * The returned value is both a callable function and a named Play handle.
652
- * The Deepline runtime calls the function with a runtime context.
653
- * The handle provides `.run()`, `.versions()`, `.get()`, and `.publish()` for remote lifecycle operations.
654
- * Plays define repeatable data pipelines. The runtime executes them durably with automatic retries and timeouts.
687
+ * The older play form. Files that export `definePlay(...)` keep working; new
688
+ * plays are scripts that use {@link deepline}.
655
689
  *
656
690
  * @typeParam TInput - The input type accepted by the play
657
691
  * @typeParam TOutput - The return type of the play
@@ -660,70 +694,6 @@ declare function defineInput<TInput>(schema: Record<string, unknown>): PlayInput
660
694
  * @param fn - Play function.
661
695
  * @param bindings - Play configuration, including runtime limits and triggers.
662
696
  * @returns A {@link DefinedPlay} that is both callable and has lifecycle methods
663
- *
664
- * @example Basic play
665
- * ```typescript
666
- * import { definePlay } from 'deepline';
667
- *
668
- * export default definePlay('company-lookup', async (ctx, input: { domain: string }) => {
669
- * ctx.log(`Searching for ${input.domain}`);
670
- * const company = await ctx.tools.execute({
671
- * id: 'company_search',
672
- * tool: 'test_company_search',
673
- * input: { domain: input.domain },
674
- * description: 'Look up company details by domain.',
675
- * });
676
- * return company;
677
- * });
678
- * ```
679
- *
680
- * @example CSV processing play
681
- * ```typescript
682
- * export default definePlay('bulk-enrich', async (ctx, input: { csv: string }) => {
683
- * const leads = await ctx.csv(input.csv);
684
- * ctx.log(`Processing ${await leads.count()} rows`);
685
- * const results = await ctx
686
- * .dataset('companies', leads)
687
- * .withColumn('company', (row, ctx) =>
688
- * ctx.tools.execute({
689
- * id: 'company_search',
690
- * tool: 'test_company_search',
691
- * input: { domain: row.domain },
692
- * description: 'Look up company details by domain.',
693
- * }))
694
- * .run({ description: 'Enrich lead companies.' });
695
- * return results;
696
- * });
697
- * ```
698
- *
699
- * @example With cron binding
700
- * ```typescript
701
- * export default definePlay('daily-report', async (ctx) => {
702
- * const data = await ctx.tools.execute({
703
- * id: 'crm_export',
704
- * tool: 'crm_export',
705
- * input: { since: 'yesterday' },
706
- * description: 'Export yesterday CRM records.',
707
- * });
708
- * return data;
709
- * }, {
710
- * cron: { schedule: '0 9 * * *', timezone: 'America/New_York' },
711
- * });
712
- * ```
713
- *
714
- * @example Programmatic lifecycle
715
- * ```typescript
716
- * const myPlay = definePlay('my-play', handler);
717
- *
718
- * // Get play definition:
719
- * const detail = await myPlay.get();
720
- *
721
- * // Run remotely:
722
- * const result = await myPlay.runSync({ domain: 'stripe.com' });
723
- *
724
- * // Make the current draft live:
725
- * await myPlay.publish();
726
- * ```
727
697
  */
728
698
  declare function definePlay<TInput, TOutput extends PlayReturnObject>(config: DefinePlayConfig<TInput, TOutput>): DefinedPlay<TInput, TOutput>;
729
699
  /** @internal Contextually type unannotated monitor-event handlers as unknown. */
@@ -1102,4 +1072,4 @@ declare function writeCsvOutputFile(rows: Array<Record<string, unknown>>, stem:
1102
1072
  */
1103
1073
  declare function extractSummaryFields(payload: unknown): Record<string, Scalar>;
1104
1074
 
1105
- export { type AsyncPlayRunRef, AuthError, BillingNamespace, ClearPlayHistoryResult, type ColumnMap, type ColumnResolver, type ConditionalStepResolver, ConfigError, type CsvInput, type CsvOptions, CtxFetchAmbiguousWriteError, CtxFetchHttpError, CustomerDbQueryOutcomeUnknownError, type DatasetBuilder, type DatasetColumnDefinition, type DatasetColumnRunInput, Deepline, DeeplineClient, DeeplineClientOptions, DeeplineContext, DeeplineError, type DeeplineExecutionsNamespace, type DeeplineNamedPlay, type DeeplinePlayRuntimeContext, type DeeplinePlaysNamespace, type DeeplineToolCallOptions, type DeeplineToolExecuteResult, type DeeplineToolsNamespace, type DefinePlayConfig, type DefinedPlay, ExecutionByKeyResult, ExecutionRecovery, type FetchOptions, type FileInput, type LocalPlayGraph, PROD_URL, type PlayAsyncCallOptions, type PlayBindings, type PlayCallExecution, type PlayCallOptions, PlayDataset, type PlayFetchResponse, type PlayInputContract, type PlayJob, PlayListItem, type PlayReferenceLike, PlayRevisionSummary, type PlayRunId, PlayStatus, type PlayStepProgramStep, type PrebuiltPlayRef, PublishPlayVersionResult, RateLimitError, ResolvedConfig, RunObserveTransportUnavailableError, type RuntimeStepOptions, SDK_API_CONTRACT, SDK_VERSION, type SqlListenerDeclaration, type SqlListenerEvent, type SqlListenerOperation, type SqlQuery, type StepOptions, type StepProgram, type StepProgramResolver, type StepResolver, StopPlayRunResult, ToolDefinition, BasicToolExecuteResult as ToolExecuteResult, ToolExecutionError, ToolExecutionErrorOptions, type ToolExecutionRequest, ToolMetadata, ToolRateLimitError, defineInput, definePlay, defineWorkflow, extractSummaryFields, getDefinedPlayMetadata, pinLocalPlayImports, planLocalPlayExecution, readList, resolveConfig, runIf, steps, tryConvertToList, writeCsvOutputFile, writeJsonOutputFile };
1075
+ export { type AsyncPlayRunRef, AuthError, BillingNamespace, ClearPlayHistoryResult, type ColumnMap, type ColumnResolver, type ConditionalStepResolver, ConfigError, type CsvInput, type CsvOptions, CtxFetchAmbiguousWriteError, CtxFetchHttpError, CustomerDbQueryOutcomeUnknownError, type DatasetBuilder, type DatasetColumnDefinition, type DatasetColumnRunInput, Deepline, DeeplineClient, DeeplineClientOptions, DeeplineContext, DeeplineError, type DeeplineExecutionsNamespace, type DeeplineNamedPlay, type DeeplinePlayRuntimeContext, type DeeplinePlaysNamespace, type DeeplineToolCallOptions, type DeeplineToolExecuteResult, type DeeplineToolsNamespace, type DefinePlayConfig, type DefinedPlay, ExecutionByKeyResult, ExecutionRecovery, type FetchOptions, type FileInput, type LocalPlayGraph, PROD_URL, type PlayAsyncCallOptions, type PlayBindings, type PlayCallExecution, type PlayCallOptions, PlayDataset, type PlayFetchResponse, type PlayInputContract, type PlayJob, PlayListItem, type PlayReferenceLike, PlayRevisionSummary, type PlayRunId, PlayStatus, type PlayStepProgramStep, type PrebuiltPlayRef, PublishPlayVersionResult, RateLimitError, ResolvedConfig, RunObserveTransportUnavailableError, type RuntimeStepOptions, SDK_API_CONTRACT, SDK_VERSION, type ScriptPlayContext, type SqlListenerDeclaration, type SqlListenerEvent, type SqlListenerOperation, type SqlQuery, type StepOptions, type StepProgram, type StepProgramResolver, type StepResolver, StopPlayRunResult, ToolDefinition, BasicToolExecuteResult as ToolExecuteResult, ToolExecutionError, ToolExecutionErrorOptions, type ToolExecutionRequest, ToolMetadata, ToolRateLimitError, deepline, deepline as default, defineInput, definePlay, defineWorkflow, extractSummaryFields, getDefinedPlayMetadata, pinLocalPlayImports, planLocalPlayExecution, readList, resolveConfig, runIf, runScriptPlay, steps, tryConvertToList, writeCsvOutputFile, writeJsonOutputFile };