deepline 0.3.546 → 0.3.548

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 (204) hide show
  1. package/dist/bundling-sources/sdk/src/client-core.ts +13 -0
  2. package/dist/bundling-sources/sdk/src/index.ts +7 -1
  3. package/dist/bundling-sources/sdk/src/integrations.ts +17 -7
  4. package/dist/bundling-sources/sdk/src/play.ts +71 -0
  5. package/dist/bundling-sources/sdk/src/release.ts +1 -1
  6. package/dist/bundling-sources/sdk/src/runs/watch-polling.ts +13 -4
  7. package/dist/bundling-sources/sdk/src/types.ts +33 -0
  8. package/dist/bundling-sources/shared_libs/integration-contracts/calendar-delegation.ts +7 -0
  9. package/dist/bundling-sources/shared_libs/monitors/provider-monitor-batch-operation.ts +2 -0
  10. package/dist/bundling-sources/shared_libs/monitors/tracking-provider-guidance.ts +1 -0
  11. package/dist/bundling-sources/shared_libs/observability/scheduled-jobs.json +19 -1
  12. package/dist/bundling-sources/shared_libs/play-data-plane/r2.ts +17 -2
  13. package/dist/bundling-sources/shared_libs/play-runtime/async-operation.ts +57 -5
  14. package/dist/bundling-sources/shared_libs/play-runtime/context.ts +295 -52
  15. package/dist/bundling-sources/shared_libs/play-runtime/ctx-types.ts +10 -1
  16. package/dist/bundling-sources/shared_libs/play-runtime/docflow-decision-tracker.ts +135 -0
  17. package/dist/bundling-sources/shared_libs/play-runtime/docflow-fail-open.ts +177 -0
  18. package/dist/bundling-sources/shared_libs/play-runtime/docflow-node-io.ts +99 -2
  19. package/dist/bundling-sources/shared_libs/play-runtime/durable-runs-rollout.ts +16 -10
  20. package/dist/bundling-sources/shared_libs/play-runtime/fenced-call-diagnostics.ts +211 -0
  21. package/dist/bundling-sources/shared_libs/play-runtime/runtime-capacity-policy.ts +52 -14
  22. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/absurd-runtime-worker.ts +68 -2
  23. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/postgres-progress.ts +18 -0
  24. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/postgres.ts +68 -0
  25. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/runtime-sandbox-capacity.ts +100 -3
  26. package/dist/bundling-sources/shared_libs/play-runtime/tool-cache-policy.ts +9 -1
  27. package/dist/bundling-sources/shared_libs/play-runtime/tool-result.ts +48 -0
  28. package/dist/bundling-sources/shared_libs/plays/authoring-contract.ts +6 -1
  29. package/dist/bundling-sources/shared_libs/plays/bundling/index.ts +716 -51
  30. package/dist/bundling-sources/shared_libs/plays/docflow-decision-arms.ts +146 -0
  31. package/dist/bundling-sources/shared_libs/plays/docflow-flow-order.ts +94 -0
  32. package/dist/bundling-sources/shared_libs/plays/docflow-unreached-reason.ts +10 -1
  33. package/dist/bundling-sources/shared_libs/plays/docflow.ts +787 -117
  34. package/dist/bundling-sources/shared_libs/plays/share/static-pipeline-summary.ts +8 -2
  35. package/dist/bundling-sources/shared_libs/plays/static-pipeline.ts +6 -0
  36. package/dist/bundling-sources/shared_libs/plays/trigger-config-contract.ts +13 -0
  37. package/dist/bundling-sources/shared_libs/product-notifications/billing-sales.ts +25 -0
  38. package/dist/bundling-sources/shared_libs/security/email-blacklist.ts +3 -0
  39. package/dist/bundling-sources/shared_libs/security/email-domain.ts +24 -0
  40. package/dist/bundling-sources/shared_libs/security/secret-redaction.ts +56 -0
  41. package/dist/cli/auth-7UJFY5BY.js +43 -0
  42. package/dist/cli/{auth-KFWG72AZ.mjs → auth-YOOVLLUL.mjs} +5 -5
  43. package/dist/cli/{billing-MMZ336HO.mjs → billing-2NCNX6L2.mjs} +10 -10
  44. package/dist/cli/{billing-OQVOAZ4S.js → billing-HETIOUD6.js} +96 -96
  45. package/dist/cli/{chunk-JVOUQFHT.js → chunk-2OG2KBYJ.js} +1 -1
  46. package/dist/cli/{chunk-JA633HRV.mjs → chunk-3QRU6RY7.mjs} +3 -3
  47. package/dist/cli/{chunk-TI6DTURF.js → chunk-4WAM6TLD.js} +7 -1
  48. package/dist/cli/{chunk-RO66FPTS.mjs → chunk-53QLWPZK.mjs} +1 -1
  49. package/dist/cli/{chunk-6LG7MLJ2.js → chunk-5OJOFUMO.js} +44 -44
  50. package/dist/cli/{chunk-F2VEFMU5.js → chunk-5XFJBIQT.js} +13 -13
  51. package/dist/cli/{chunk-UQJBV5PM.js → chunk-5XXPP3PR.js} +10 -10
  52. package/dist/cli/{chunk-6FBDTYR2.mjs → chunk-64BFUBXX.mjs} +2 -2
  53. package/dist/cli/{chunk-VAT2SXFF.js → chunk-6GIZNOXQ.js} +12 -12
  54. package/dist/cli/{chunk-7MY7KWJS.mjs → chunk-7AJ5V3BK.mjs} +1 -1
  55. package/dist/cli/{chunk-MEGHIX4M.js → chunk-7H6TQ6W2.js} +5 -5
  56. package/dist/cli/{chunk-PMDHY2YK.js → chunk-7JIOJLTS.js} +7 -7
  57. package/dist/cli/{chunk-EEJHB76U.js → chunk-7UJZWI5Z.js} +12 -12
  58. package/dist/cli/{chunk-X5KOHDJN.mjs → chunk-ATTURFOV.mjs} +1 -1
  59. package/dist/cli/{chunk-SH32HL7I.js → chunk-AUYBBFPT.js} +53 -53
  60. package/dist/cli/{chunk-JCWNF44W.js → chunk-BDBEEV6X.js} +22 -22
  61. package/dist/cli/{chunk-WKHPLBJK.js → chunk-BWJZ4NQJ.js} +15 -15
  62. package/dist/cli/{chunk-2JHYYB3F.js → chunk-CSPHSNBW.js} +3 -3
  63. package/dist/cli/{chunk-4AZLGNXV.js → chunk-CXZLHBNK.js} +4 -4
  64. package/dist/cli/{chunk-J65HJCJO.mjs → chunk-F4ON5COB.mjs} +2 -2
  65. package/dist/cli/{chunk-KUK7ARXA.mjs → chunk-FMQA7UZZ.mjs} +2 -2
  66. package/dist/cli/{chunk-UREAIHUU.mjs → chunk-FUUYWEF4.mjs} +3 -3
  67. package/dist/cli/{chunk-HXIR3VQL.mjs → chunk-FZHMNK6F.mjs} +7 -1
  68. package/dist/cli/{chunk-PU3ZAG6V.mjs → chunk-GCEGQ7TQ.mjs} +1 -1
  69. package/dist/cli/{chunk-BLYW6FFB.js → chunk-GJA2PRHJ.js} +2 -2
  70. package/dist/cli/{chunk-TBWYZOSV.js → chunk-GUIYFOG2.js} +3 -3
  71. package/dist/cli/{chunk-BTFUAGHC.js → chunk-HDLMX7SG.js} +16 -16
  72. package/dist/cli/{chunk-VTK3HGMN.mjs → chunk-HIMZ57QD.mjs} +5 -5
  73. package/dist/cli/{chunk-JYG4XZLT.js → chunk-HTZIJORU.js} +99 -99
  74. package/dist/cli/{chunk-VPERQ3U6.mjs → chunk-HU3DDLGD.mjs} +5 -5
  75. package/dist/cli/{chunk-H7Q5IDO3.js → chunk-I2JIWKCQ.js} +20 -20
  76. package/dist/cli/{chunk-MXQP7CXZ.js → chunk-IIWXBRDK.js} +3 -3
  77. package/dist/cli/{chunk-MI7X6V6V.mjs → chunk-IQBXX54G.mjs} +3 -3
  78. package/dist/cli/{chunk-SYTWWVIQ.js → chunk-JQWX377P.js} +5 -5
  79. package/dist/cli/{chunk-Z3UEBFIN.js → chunk-LAVPP6WD.js} +41 -41
  80. package/dist/cli/{chunk-JCH4UNNS.js → chunk-M2OZORIH.js} +2 -2
  81. package/dist/cli/{chunk-Z7SXGOIQ.mjs → chunk-MF7PCM6C.mjs} +1 -1
  82. package/dist/cli/{chunk-7ZW67ME6.mjs → chunk-MQSKSISW.mjs} +1 -1
  83. package/dist/cli/{chunk-JARZ47OP.mjs → chunk-MWQ4WWZF.mjs} +2 -2
  84. package/dist/cli/{chunk-EEG46QZY.mjs → chunk-NFMX7BRF.mjs} +2 -2
  85. package/dist/cli/{chunk-VXTTAYOT.mjs → chunk-OGDQFVCP.mjs} +3 -3
  86. package/dist/cli/{chunk-3DUNNZB6.mjs → chunk-OQCYSLML.mjs} +4 -4
  87. package/dist/cli/{chunk-5W4ENHWM.js → chunk-PVE3A2BO.js} +285 -264
  88. package/dist/cli/{chunk-F5YQXCP3.js → chunk-PVQCX6KQ.js} +50 -7
  89. package/dist/cli/{chunk-GYTSDSQD.mjs → chunk-QQBRXMZM.mjs} +11 -11
  90. package/dist/cli/{chunk-6Y5TU3R7.mjs → chunk-QZ74ZC55.mjs} +1 -1
  91. package/dist/cli/{chunk-5OEFXAKP.mjs → chunk-RMCCB3XY.mjs} +50 -7
  92. package/dist/cli/{chunk-5V7NZKGG.js → chunk-T3RDWG5J.js} +2 -2
  93. package/dist/cli/{chunk-OAKWSLKS.mjs → chunk-TKGFHRHE.mjs} +28 -7
  94. package/dist/cli/{chunk-HJR2DDJS.mjs → chunk-U35ZLVBA.mjs} +2 -2
  95. package/dist/cli/{chunk-ND7SFRQL.js → chunk-U7HJXE6Y.js} +2 -2
  96. package/dist/cli/{chunk-LX2TC3HO.mjs → chunk-UBQQR56I.mjs} +4 -4
  97. package/dist/cli/{chunk-5VNQMVCU.js → chunk-VK2GSTRN.js} +26 -26
  98. package/dist/cli/{chunk-K2XELBPF.mjs → chunk-VSACOMIA.mjs} +5 -5
  99. package/dist/cli/{chunk-IVWU7SJC.js → chunk-WI4MCR7M.js} +5 -5
  100. package/dist/cli/{chunk-LIJKRDDG.js → chunk-WIHQAZPV.js} +6 -6
  101. package/dist/cli/{chunk-LHE2TSV6.mjs → chunk-WVZF4DU7.mjs} +1 -1
  102. package/dist/cli/{chunk-2HSZCQMT.mjs → chunk-WYT3H6JD.mjs} +1 -1
  103. package/dist/cli/{chunk-GOOF7E2B.mjs → chunk-XKEBQVCP.mjs} +5 -5
  104. package/dist/cli/{chunk-P7A3H6G5.mjs → chunk-XU3D2KFR.mjs} +1 -1
  105. package/dist/cli/command-docs.js +2 -2
  106. package/dist/cli/command-docs.mjs +1 -1
  107. package/dist/cli/concurrent-runs-help-A2IQVZRJ.js +21 -0
  108. package/dist/cli/{concurrent-runs-help-C2O5YKQA.mjs → concurrent-runs-help-FDCCZ45D.mjs} +6 -6
  109. package/dist/cli/{csv-Z4DNGR54.mjs → csv-GJYLQ52D.mjs} +4 -4
  110. package/dist/cli/{csv-MJDNOIQJ.js → csv-OCEQWZO3.js} +13 -13
  111. package/dist/cli/{db-4RL2BNOF.mjs → db-5MA2UUHQ.mjs} +7 -7
  112. package/dist/cli/{db-S5QVPK5E.js → db-G5QGXFAX.js} +28 -28
  113. package/dist/cli/{describe-L4P5SZLQ.mjs → describe-4DOJ4DHA.mjs} +19 -19
  114. package/dist/cli/describe-SD7DRTBW.js +50 -0
  115. package/dist/cli/describe-core.d.mts +4 -4
  116. package/dist/cli/describe-core.d.ts +4 -4
  117. package/dist/cli/{executions-RR6O3XK5.mjs → executions-C7SMBHHB.mjs} +7 -7
  118. package/dist/cli/{executions-MFZ2Z36O.js → executions-IYEVUPJI.js} +9 -9
  119. package/dist/cli/{feedback-YDAG7VH2.js → feedback-GYAF46GA.js} +14 -14
  120. package/dist/cli/{feedback-EQBQ3ABB.mjs → feedback-XUU2UKM6.mjs} +6 -6
  121. package/dist/cli/git-7YYVMY6L.js +25 -0
  122. package/dist/cli/{git-YGLCCU35.mjs → git-WVCMK5AH.mjs} +5 -5
  123. package/dist/cli/index.js +146 -146
  124. package/dist/cli/index.mjs +45 -45
  125. package/dist/cli/{integrations-FWYXSBHK.mjs → integrations-FXADGAX2.mjs} +11 -9
  126. package/dist/cli/{integrations-IQXYMRMW.js → integrations-YYBJJFVX.js} +19 -17
  127. package/dist/cli/{legacy-noops-I4YRIX5F.mjs → legacy-noops-LJY7LDUE.mjs} +6 -6
  128. package/dist/cli/{legacy-noops-U7LI7UXC.js → legacy-noops-REZCYES2.js} +9 -9
  129. package/dist/cli/{mcp-GX2UKKWU.js → mcp-L5PURE5S.js} +24 -24
  130. package/dist/cli/{mcp-QJBMB6VS.mjs → mcp-XSB3ZJFR.mjs} +4 -4
  131. package/dist/cli/{monitors-WCJYINGX.js → monitors-I5EIHSGV.js} +119 -101
  132. package/dist/cli/{monitors-Z6EGKYJP.mjs → monitors-UBPF2OLO.mjs} +26 -8
  133. package/dist/cli/{org-NNHICBR2.mjs → org-PHHIN2ER.mjs} +7 -7
  134. package/dist/cli/{org-7SKG423N.js → org-SGSTGGUD.js} +89 -89
  135. package/dist/cli/{play-CXDFPJ7Z.mjs → play-LEJNJLWY.mjs} +295 -67
  136. package/dist/cli/{play-4P4DTG3Q.js → play-WQEKMANL.js} +897 -669
  137. package/dist/cli/{providers-VQLQ7DTR.mjs → providers-3W26ZDAV.mjs} +7 -7
  138. package/dist/cli/{providers-EE4TUE3O.js → providers-RSDXBXIS.js} +10 -10
  139. package/dist/cli/{quickstart-IYNJRB5G.mjs → quickstart-LGJD2M36.mjs} +4 -4
  140. package/dist/cli/{quickstart-RVXHK4WA.js → quickstart-U3QX4EMI.js} +6 -6
  141. package/dist/cli/{run-R3F34KU3.js → run-F2UPZUJS.js} +45 -45
  142. package/dist/cli/{run-VBQPPMEX.mjs → run-YWZ3W5HK.mjs} +25 -25
  143. package/dist/cli/search-K6ANAXLF.js +32 -0
  144. package/dist/cli/{search-B7R62HX5.mjs → search-O2OJH3PY.mjs} +8 -8
  145. package/dist/cli/{search-output-LNQQXIGZ.mjs → search-output-H5BF6SJ3.mjs} +4 -4
  146. package/dist/cli/{search-output-LWHWEPOT.js → search-output-W7OCBYBU.js} +6 -6
  147. package/dist/cli/{secrets-NM3VAJLO.mjs → secrets-65XCAA7U.mjs} +7 -7
  148. package/dist/cli/{secrets-QBOZ7WTD.js → secrets-BN4GYVRI.js} +16 -16
  149. package/dist/cli/sessions-M52QWLA6.js +22 -0
  150. package/dist/cli/{sessions-R5BSIJ4I.mjs → sessions-SVEVESCQ.mjs} +6 -6
  151. package/dist/cli/{settings-POYWKNRD.js → settings-7YMDAFCN.js} +86 -86
  152. package/dist/cli/{settings-S4PN7WLY.mjs → settings-HAU2NP2H.mjs} +13 -13
  153. package/dist/cli/{setup-PFLXVBTL.mjs → setup-5RXHZ6YI.mjs} +9 -9
  154. package/dist/cli/{setup-VHB4Z654.js → setup-G37QXQGM.js} +49 -49
  155. package/dist/cli/{skills-W2TELEU7.mjs → skills-Q7A3XFAU.mjs} +7 -7
  156. package/dist/cli/skills-ZK4D5BJW.js +36 -0
  157. package/dist/cli/tools-DBZTLYFM.js +57 -0
  158. package/dist/cli/{tools-M4FA6N3Y.mjs → tools-ZG4NYRGB.mjs} +18 -18
  159. package/dist/cli/{update-W7LIHEA7.mjs → update-2CMZTZCL.mjs} +9 -9
  160. package/dist/cli/update-LC5HGEEH.js +34 -0
  161. package/dist/cli/{views-KTVPV6UP.mjs → views-A6IIY4OQ.mjs} +7 -7
  162. package/dist/cli/{views-DJXAGD7V.js → views-XUMDMDIE.js} +22 -22
  163. package/dist/cli/{workflow-NVZDJKH2.js → workflow-4EEW6MCD.js} +18 -18
  164. package/dist/cli/{workflow-LGKCRODX.mjs → workflow-74MYISHU.mjs} +8 -8
  165. package/dist/{client-Tp1LSULB.d.mts → client-D1uWA2Vc.d.mts} +1 -1
  166. package/dist/{client-CCyWJqAI.d.ts → client-Hz7SsBXs.d.ts} +1 -1
  167. package/dist/{client-core-BpYiYEfu.d.ts → client-core-D3Ad7Flt.d.ts} +554 -504
  168. package/dist/{client-core-D8eCZz3O.d.mts → client-core-Db_e63Hb.d.mts} +554 -504
  169. package/dist/{compiler-manifest-EBWEUj0b.d.ts → compiler-manifest-BqwVrOri.d.mts} +38 -18
  170. package/dist/{compiler-manifest-EBWEUj0b.d.mts → compiler-manifest-BqwVrOri.d.ts} +38 -18
  171. package/dist/{errors-CParKUQR.d.mts → errors-BU8FB99X.d.mts} +1 -1
  172. package/dist/{errors-Qt0OTA7_.d.ts → errors-DfVN_FUG.d.ts} +1 -1
  173. package/dist/{index-CoqDkIw0.d.ts → index-BGnvtYGc.d.ts} +6 -1
  174. package/dist/{index-BMUVCNp7.d.mts → index-DjZgwpGw.d.mts} +6 -1
  175. package/dist/index.d.mts +28 -8
  176. package/dist/index.d.ts +28 -8
  177. package/dist/index.js +64 -39
  178. package/dist/index.mjs +32 -7
  179. package/dist/install-integrity.json +133 -128
  180. package/dist/plays/bundle-play-file.d.mts +3 -3
  181. package/dist/plays/bundle-play-file.d.ts +3 -3
  182. package/dist/plays/bundle-play-file.mjs +620 -124
  183. package/dist/plays/play-description.d.mts +3 -3
  184. package/dist/plays/play-description.d.ts +3 -3
  185. package/dist/plays/run-request.d.mts +2 -2
  186. package/dist/plays/run-request.d.ts +2 -2
  187. package/dist/release.d.mts +1 -1
  188. package/dist/release.d.ts +1 -1
  189. package/dist/release.js +2 -2
  190. package/dist/release.mjs +1 -1
  191. package/dist/server.d.mts +4 -4
  192. package/dist/server.d.ts +4 -4
  193. package/dist/server.js +6 -6
  194. package/dist/server.mjs +4 -4
  195. package/package.json +1 -1
  196. package/dist/cli/auth-W32GMYND.js +0 -43
  197. package/dist/cli/concurrent-runs-help-6QT7ZR4W.js +0 -21
  198. package/dist/cli/describe-VLU2LUDJ.js +0 -50
  199. package/dist/cli/git-E6W44F5M.js +0 -25
  200. package/dist/cli/search-UUVFXZRA.js +0 -32
  201. package/dist/cli/sessions-K3PD73Q2.js +0 -22
  202. package/dist/cli/skills-QNE2EYT3.js +0 -36
  203. package/dist/cli/tools-3RLI4HGF.js +0 -57
  204. package/dist/cli/update-UT6KIW2W.js +0 -34
package/dist/index.js CHANGED
@@ -3,7 +3,7 @@
3
3
 
4
4
 
5
5
 
6
- var _chunkIVWU7SJCjs = require('./cli/chunk-IVWU7SJC.js');
6
+ var _chunkWI4MCR7Mjs = require('./cli/chunk-WI4MCR7M.js');
7
7
 
8
8
 
9
9
 
@@ -12,7 +12,7 @@ var _chunkIVWU7SJCjs = require('./cli/chunk-IVWU7SJC.js');
12
12
  var _chunkHGFFYVXNjs = require('./cli/chunk-HGFFYVXN.js');
13
13
 
14
14
 
15
- var _chunkSYTWWVIQjs = require('./cli/chunk-SYTWWVIQ.js');
15
+ var _chunkJQWX377Pjs = require('./cli/chunk-JQWX377P.js');
16
16
 
17
17
 
18
18
 
@@ -37,10 +37,10 @@ var _chunkVKKVSFRDjs = require('./cli/chunk-VKKVSFRD.js');
37
37
 
38
38
 
39
39
 
40
- var _chunk5W4ENHWMjs = require('./cli/chunk-5W4ENHWM.js');
40
+ var _chunkPVE3A2BOjs = require('./cli/chunk-PVE3A2BO.js');
41
41
 
42
42
 
43
- var _chunkTI6DTURFjs = require('./cli/chunk-TI6DTURF.js');
43
+ var _chunk4WAM6TLDjs = require('./cli/chunk-4WAM6TLD.js');
44
44
  require('./cli/chunk-SL6MYJYM.js');
45
45
  require('./cli/chunk-PMH4GLMD.js');
46
46
 
@@ -69,11 +69,11 @@ var _chunkU2LVWCTDjs = require('./cli/chunk-U2LVWCTD.js');
69
69
 
70
70
 
71
71
 
72
- var _chunkMXQP7CXZjs = require('./cli/chunk-MXQP7CXZ.js');
72
+ var _chunkIIWXBRDKjs = require('./cli/chunk-IIWXBRDK.js');
73
73
 
74
74
 
75
75
 
76
- var _chunk4AZLGNXVjs = require('./cli/chunk-4AZLGNXV.js');
76
+ var _chunkCXZLHBNKjs = require('./cli/chunk-CXZLHBNK.js');
77
77
 
78
78
 
79
79
 
@@ -90,7 +90,7 @@ require('./cli/chunk-XNYIZMNQ.js');
90
90
 
91
91
 
92
92
  var _chunkBBTKAASQjs = require('./cli/chunk-BBTKAASQ.js');
93
- require('./cli/chunk-JVOUQFHT.js');
93
+ require('./cli/chunk-2OG2KBYJ.js');
94
94
  require('./cli/chunk-OG64RBAC.js');
95
95
  require('./cli/chunk-COGTRVWW.js');
96
96
 
@@ -571,7 +571,7 @@ function projectToolResultListGetters(result, policy) {
571
571
  `List getter ${name} cannot return a complete array: its rows are lazy or the retained response is incomplete. Use readList(result, ${JSON.stringify(original.path)}) to read the explicit dataset; never treat its preview as complete.`
572
572
  );
573
573
  }
574
- const canonicalRaw = Object.hasOwn(result.toolResponse, "rawV2") ? _chunkTI6DTURFjs.legacyRawFromToolResponseRawV2.call(void 0,
574
+ const canonicalRaw = Object.hasOwn(result.toolResponse, "rawV2") ? _chunk4WAM6TLDjs.legacyRawFromToolResponseRawV2.call(void 0,
575
575
  result.toolResponse.rawV2,
576
576
  _nullishCoalesce(result.toolResponse.view, () => ( "rawV2"))
577
577
  ) : result.toolResponse.raw;
@@ -1840,6 +1840,29 @@ function createPlayInputContract(schema) {
1840
1840
 
1841
1841
  // src/play.ts
1842
1842
  var scriptRuns = new (0, _async_hooks.AsyncLocalStorage)();
1843
+ var docflowRunContexts = null;
1844
+ function __deeplineRunWithDocflowContext(context, body) {
1845
+ docflowRunContexts ??= new (0, _async_hooks.AsyncLocalStorage)();
1846
+ return docflowRunContexts.run(context, body);
1847
+ }
1848
+ function __deeplineCurrentDocflowContext() {
1849
+ const context = _nullishCoalesce(_nullishCoalesce(_optionalChain([docflowRunContexts, 'optionalAccess', _78 => _78.getStore, 'call', _79 => _79()]), () => ( _optionalChain([scriptRuns, 'access', _80 => _80.getStore, 'call', _81 => _81(), 'optionalAccess', _82 => _82.context]))), () => ( null));
1850
+ if (!context) return null;
1851
+ let observe;
1852
+ try {
1853
+ if (Reflect.get(context, "__deeplineDocflowHelperObservation") !== true)
1854
+ return null;
1855
+ observe = Reflect.get(context, "__deeplineObserveDocflowNode");
1856
+ } catch (e4) {
1857
+ return null;
1858
+ }
1859
+ if (typeof observe !== "function") return null;
1860
+ return {
1861
+ __deeplineObserveDocflowNode: (nodeId, inputCaptures, outputPaths, execute) => observe.call(context, nodeId, inputCaptures, outputPaths, execute, {
1862
+ origin: "helper"
1863
+ })
1864
+ };
1865
+ }
1843
1866
  var latestScriptRun = null;
1844
1867
  var scriptCalls = {
1845
1868
  // Read statically before the run; nothing to do while it executes.
@@ -1922,7 +1945,7 @@ var DeeplineStepProgram = (_class3 = class _DeeplineStepProgram {
1922
1945
  "steps().step(name, ...) requires a non-empty step name."
1923
1946
  );
1924
1947
  }
1925
- const stepResolver = _optionalChain([options, 'optionalAccess', _78 => _78.runIf]) && !isConditionalStepResolver(resolver) ? new DeeplineConditionalStepResolver(
1948
+ const stepResolver = _optionalChain([options, 'optionalAccess', _83 => _83.runIf]) && !isConditionalStepResolver(resolver) ? new DeeplineConditionalStepResolver(
1926
1949
  options.runIf,
1927
1950
  resolver,
1928
1951
  null
@@ -1932,9 +1955,9 @@ var DeeplineStepProgram = (_class3 = class _DeeplineStepProgram {
1932
1955
  ...this.steps,
1933
1956
  {
1934
1957
  name,
1935
- ..._optionalChain([options, 'optionalAccess', _79 => _79.recompute]) === true ? { recompute: true } : {},
1936
- ..._optionalChain([options, 'optionalAccess', _80 => _80.recomputeOnError]) === true ? { recomputeOnError: true } : {},
1937
- ...typeof _optionalChain([options, 'optionalAccess', _81 => _81.staleAfterSeconds]) === "number" ? { staleAfterSeconds: options.staleAfterSeconds } : {},
1958
+ ..._optionalChain([options, 'optionalAccess', _84 => _84.recompute]) === true ? { recompute: true } : {},
1959
+ ..._optionalChain([options, 'optionalAccess', _85 => _85.recomputeOnError]) === true ? { recomputeOnError: true } : {},
1960
+ ...typeof _optionalChain([options, 'optionalAccess', _86 => _86.staleAfterSeconds]) === "number" ? { staleAfterSeconds: options.staleAfterSeconds } : {},
1938
1961
  resolver: stepResolver
1939
1962
  }
1940
1963
  ],
@@ -1974,13 +1997,13 @@ var DeeplinePlayJobImpl = class {
1974
1997
  return this.client.getPlayStatus(this.id);
1975
1998
  }
1976
1999
  async tail(options) {
1977
- const intervalMs = _nullishCoalesce(_optionalChain([options, 'optionalAccess', _82 => _82.intervalMs]), () => ( 500));
1978
- const onLog = _nullishCoalesce(_optionalChain([options, 'optionalAccess', _83 => _83.onLog]), () => ( ((line) => console.log(line))));
2000
+ const intervalMs = _nullishCoalesce(_optionalChain([options, 'optionalAccess', _87 => _87.intervalMs]), () => ( 500));
2001
+ const onLog = _nullishCoalesce(_optionalChain([options, 'optionalAccess', _88 => _88.onLog]), () => ( ((line) => console.log(line))));
1979
2002
  const terminalStates = /* @__PURE__ */ new Set(["completed", "failed", "cancelled"]);
1980
2003
  let lastLogIndex = 0;
1981
2004
  while (true) {
1982
2005
  const status = await this.status();
1983
- const logs = _nullishCoalesce(_optionalChain([status, 'access', _84 => _84.progress, 'optionalAccess', _85 => _85.logs]), () => ( []));
2006
+ const logs = _nullishCoalesce(_optionalChain([status, 'access', _89 => _89.progress, 'optionalAccess', _90 => _90.logs]), () => ( []));
1984
2007
  for (let index = lastLogIndex; index < logs.length; index += 1) {
1985
2008
  onLog(logs[index]);
1986
2009
  }
@@ -1992,14 +2015,14 @@ var DeeplinePlayJobImpl = class {
1992
2015
  }
1993
2016
  }
1994
2017
  async get(options) {
1995
- const intervalMs = _nullishCoalesce(_optionalChain([options, 'optionalAccess', _86 => _86.intervalMs]), () => ( 500));
2018
+ const intervalMs = _nullishCoalesce(_optionalChain([options, 'optionalAccess', _91 => _91.intervalMs]), () => ( 500));
1996
2019
  const terminalStates = /* @__PURE__ */ new Set(["completed", "failed", "cancelled"]);
1997
2020
  while (true) {
1998
2021
  const status = await this.status();
1999
2022
  if (terminalStates.has(status.status)) {
2000
2023
  if (status.status !== "completed") {
2001
2024
  throw new (0, _chunkBBTKAASQjs.DeeplineError)(
2002
- _optionalChain([status, 'access', _87 => _87.progress, 'optionalAccess', _88 => _88.error]) || `Play run ${this.id} ended with ${status.status}.`
2025
+ _optionalChain([status, 'access', _92 => _92.progress, 'optionalAccess', _93 => _93.error]) || `Play run ${this.id} ended with ${status.status}.`
2003
2026
  );
2004
2027
  }
2005
2028
  if (status.package) {
@@ -2030,8 +2053,8 @@ function createNamedPlayHandle(clientFactory, name) {
2030
2053
  const client = clientFactory();
2031
2054
  const started = await client.startPlayRun({
2032
2055
  name,
2033
- ..._optionalChain([options, 'optionalAccess', _89 => _89.revisionId]) ? { revisionId: options.revisionId } : {},
2034
- ..._optionalChain([options, 'optionalAccess', _90 => _90.profile]) ? { profile: options.profile } : {},
2056
+ ..._optionalChain([options, 'optionalAccess', _94 => _94.revisionId]) ? { revisionId: options.revisionId } : {},
2057
+ ..._optionalChain([options, 'optionalAccess', _95 => _95.profile]) ? { profile: options.profile } : {},
2035
2058
  input
2036
2059
  });
2037
2060
  return new DeeplinePlayJobImpl(client, started.workflowId);
@@ -2057,7 +2080,7 @@ var DeeplineContext = class {
2057
2080
  * @param options - Optional SDK client configuration.
2058
2081
  */
2059
2082
  constructor(options) {
2060
- this.client = new (0, _chunkSYTWWVIQjs.DeeplineClient)(options);
2083
+ this.client = new (0, _chunkJQWX377Pjs.DeeplineClient)(options);
2061
2084
  }
2062
2085
  /**
2063
2086
  * Tool operations namespace.
@@ -2322,15 +2345,15 @@ function stableHash(value) {
2322
2345
  function attachSdkQueryResultDatasetResult(toolId, result, options) {
2323
2346
  if (!options || !isQueryResultDatasetTool(toolId)) return result;
2324
2347
  const raw = isRecord2(result.toolResponse.raw) ? result.toolResponse.raw : null;
2325
- const dataset = isRecord2(_optionalChain([raw, 'optionalAccess', _91 => _91.dataset])) ? raw.dataset : null;
2326
- const totalRows = finiteNonNegativeInteger(_optionalChain([dataset, 'optionalAccess', _92 => _92.total_rows]));
2327
- const sql = typeof options.input.sql === "string" ? options.input.sql : typeof options.input.query === "string" ? options.input.query : typeof _optionalChain([raw, 'optionalAccess', _93 => _93.sql]) === "string" ? raw.sql : null;
2348
+ const dataset = isRecord2(_optionalChain([raw, 'optionalAccess', _96 => _96.dataset])) ? raw.dataset : null;
2349
+ const totalRows = finiteNonNegativeInteger(_optionalChain([dataset, 'optionalAccess', _97 => _97.total_rows]));
2350
+ const sql = typeof options.input.sql === "string" ? options.input.sql : typeof options.input.query === "string" ? options.input.query : typeof _optionalChain([raw, 'optionalAccess', _98 => _98.sql]) === "string" ? raw.sql : null;
2328
2351
  if (!dataset || totalRows === null || !sql) {
2329
2352
  return result;
2330
2353
  }
2331
2354
  const datasetLimit = _nullishCoalesce(finitePositiveInteger(dataset.returned_limit), () => ( totalRows));
2332
2355
  const effectiveCount = Math.min(totalRows, datasetLimit);
2333
- const rawRows = rowsFromUnknown(_optionalChain([raw, 'optionalAccess', _94 => _94.rows]));
2356
+ const rawRows = rowsFromUnknown(_optionalChain([raw, 'optionalAccess', _99 => _99.rows]));
2334
2357
  const previewRows = rawRows.slice(0, 25);
2335
2358
  const fetchPage = async (offset, limit) => {
2336
2359
  if (limit <= 0 || offset >= totalRows) return [];
@@ -2354,8 +2377,8 @@ function attachSdkQueryResultDatasetResult(toolId, result, options) {
2354
2377
  } : {}
2355
2378
  }
2356
2379
  });
2357
- const pageRaw = isRecord2(_optionalChain([response, 'access', _95 => _95.toolResponse, 'optionalAccess', _96 => _96.raw])) ? response.toolResponse.raw : null;
2358
- return rowsFromUnknown(_optionalChain([pageRaw, 'optionalAccess', _97 => _97.rows]));
2380
+ const pageRaw = isRecord2(_optionalChain([response, 'access', _100 => _100.toolResponse, 'optionalAccess', _101 => _101.raw])) ? response.toolResponse.raw : null;
2381
+ return rowsFromUnknown(_optionalChain([pageRaw, 'optionalAccess', _102 => _102.rows]));
2359
2382
  };
2360
2383
  const collectRows = async (limit) => {
2361
2384
  const target = Math.min(_nullishCoalesce(limit, () => ( totalRows)), totalRows, datasetLimit);
@@ -2407,10 +2430,10 @@ function attachSdkQueryResultDatasetResult(toolId, result, options) {
2407
2430
  });
2408
2431
  }
2409
2432
  function toolExecutionEnvelopeToResult(fallbackToolId, response, options) {
2410
- const raw = _nullishCoalesce(_optionalChain([response, 'access', _98 => _98.toolResponse, 'optionalAccess', _99 => _99.raw]), () => ( null));
2411
- const rawV2 = _optionalChain([response, 'access', _100 => _100.toolResponse, 'optionalAccess', _101 => _101.rawV2]);
2412
- const view = _optionalChain([response, 'access', _102 => _102.toolResponse, 'optionalAccess', _103 => _103.view]);
2413
- const meta = _optionalChain([response, 'access', _104 => _104.toolResponse, 'optionalAccess', _105 => _105.meta]);
2433
+ const raw = _nullishCoalesce(_optionalChain([response, 'access', _103 => _103.toolResponse, 'optionalAccess', _104 => _104.raw]), () => ( null));
2434
+ const rawV2 = _optionalChain([response, 'access', _105 => _105.toolResponse, 'optionalAccess', _106 => _106.rawV2]);
2435
+ const view = _optionalChain([response, 'access', _107 => _107.toolResponse, 'optionalAccess', _108 => _108.view]);
2436
+ const meta = _optionalChain([response, 'access', _109 => _109.toolResponse, 'optionalAccess', _110 => _110.meta]);
2414
2437
  const metadata = isRecord2(response._metadata) ? response._metadata.tool : null;
2415
2438
  const toolMetadata = isRecord2(metadata) ? metadata : {};
2416
2439
  const result = projectToolResultListGetters(
@@ -2469,11 +2492,11 @@ function definePlay(nameOrConfig, maybeFn, maybeBindings) {
2469
2492
  name: nameOrConfig,
2470
2493
  fn: maybeFn,
2471
2494
  bindings: maybeBindings,
2472
- description: _optionalChain([maybeBindings, 'optionalAccess', _106 => _106.description]),
2495
+ description: _optionalChain([maybeBindings, 'optionalAccess', _111 => _111.description]),
2473
2496
  inputSchema: void 0,
2474
- billing: _optionalChain([maybeBindings, 'optionalAccess', _107 => _107.billing]),
2475
- runtime: _optionalChain([maybeBindings, 'optionalAccess', _108 => _108.runtime]),
2476
- compatibility: _optionalChain([maybeBindings, 'optionalAccess', _109 => _109.compatibility])
2497
+ billing: _optionalChain([maybeBindings, 'optionalAccess', _112 => _112.billing]),
2498
+ runtime: _optionalChain([maybeBindings, 'optionalAccess', _113 => _113.runtime]),
2499
+ compatibility: _optionalChain([maybeBindings, 'optionalAccess', _114 => _114.compatibility])
2477
2500
  } : {
2478
2501
  name: nameOrConfig.id,
2479
2502
  fn: nameOrConfig.run,
@@ -2484,13 +2507,13 @@ function definePlay(nameOrConfig, maybeFn, maybeBindings) {
2484
2507
  description: nameOrConfig.description,
2485
2508
  inputSchema: nameOrConfig.input.schema,
2486
2509
  billing: nameOrConfig.billing,
2487
- runtime: _nullishCoalesce(nameOrConfig.runtime, () => ( _optionalChain([nameOrConfig, 'access', _110 => _110.bindings, 'optionalAccess', _111 => _111.runtime]))),
2488
- compatibility: _nullishCoalesce(nameOrConfig.compatibility, () => ( _optionalChain([nameOrConfig, 'access', _112 => _112.bindings, 'optionalAccess', _113 => _113.compatibility])))
2510
+ runtime: _nullishCoalesce(nameOrConfig.runtime, () => ( _optionalChain([nameOrConfig, 'access', _115 => _115.bindings, 'optionalAccess', _116 => _116.runtime]))),
2511
+ compatibility: _nullishCoalesce(nameOrConfig.compatibility, () => ( _optionalChain([nameOrConfig, 'access', _117 => _117.bindings, 'optionalAccess', _118 => _118.compatibility])))
2489
2512
  };
2490
2513
  const name = config.name;
2491
2514
  const fn = config.fn;
2492
2515
  const bindings = config.bindings;
2493
- const description = _optionalChain([config, 'access', _114 => _114.description, 'optionalAccess', _115 => _115.trim, 'call', _116 => _116()]);
2516
+ const description = _optionalChain([config, 'access', _119 => _119.description, 'optionalAccess', _120 => _120.trim, 'call', _121 => _121()]);
2494
2517
  const billing = config.billing;
2495
2518
  const inputSchema = config.inputSchema;
2496
2519
  const runtime = config.runtime;
@@ -2555,7 +2578,7 @@ function definePlay(nameOrConfig, maybeFn, maybeBindings) {
2555
2578
  writable: false
2556
2579
  });
2557
2580
  const handle = createNamedPlayHandle(
2558
- () => _chunkIVWU7SJCjs.createPlayClient.call(void 0, ),
2581
+ () => _chunkWI4MCR7Mjs.createPlayClient.call(void 0, ),
2559
2582
  name
2560
2583
  );
2561
2584
  for (const key of [
@@ -2719,4 +2742,6 @@ var DEEPLINE_TOOL_CATEGORIES = [
2719
2742
 
2720
2743
 
2721
2744
 
2722
- exports.AuthError = _chunkEITMD3A5js.AuthError; exports.ConfigError = _chunkEITMD3A5js.ConfigError; exports.CtxFetchAmbiguousWriteError = _chunkVKKVSFRDjs.CtxFetchAmbiguousWriteError; exports.CtxFetchHttpError = _chunkVKKVSFRDjs.CtxFetchHttpError; exports.CustomerDbQueryOutcomeUnknownError = _chunkEITMD3A5js.CustomerDbQueryOutcomeUnknownError; exports.DEEPLINE_EXTRACTOR_TARGETS = _chunkBLMB4N63js.DEEPLINE_EXTRACTOR_TARGETS; exports.DEEPLINE_EXTRACTOR_TARGET_DEFINITIONS = _chunkBLMB4N63js.DEEPLINE_EXTRACTOR_TARGET_DEFINITIONS; exports.DEEPLINE_TOOL_CATEGORIES = DEEPLINE_TOOL_CATEGORIES; exports.Deepline = Deepline; exports.DeeplineClient = _chunkSYTWWVIQjs.DeeplineClient; exports.DeeplineContext = DeeplineContext; exports.DeeplineError = _chunkBBTKAASQjs.DeeplineError; exports.JOB_CHANGE_STATUS_VALUES = _chunkBLMB4N63js.JOB_CHANGE_STATUS_VALUES; exports.MONITOR_FLEET_AUTHORING_CONTRACT_CHANGELOG = _chunkWOQO3GV4js.MONITOR_FLEET_AUTHORING_CONTRACT_CHANGELOG; exports.MONITOR_FLEET_AUTHORING_CONTRACT_EDITION = _chunkWOQO3GV4js.MONITOR_FLEET_AUTHORING_CONTRACT_EDITION; exports.MONITOR_FLEET_DOCUMENTATION = _chunkWOQO3GV4js.MONITOR_FLEET_DOCUMENTATION; exports.MONITOR_FLEET_FRONTIER_MAX_ROWS = _chunkWOQO3GV4js.MONITOR_FLEET_FRONTIER_MAX_ROWS; exports.MONITOR_FLEET_MAX_MEMBERS = _chunkWOQO3GV4js.MONITOR_FLEET_MAX_MEMBERS; exports.MONITOR_JOB_PHASES = _chunk5W4ENHWMjs.MONITOR_JOB_PHASES; exports.MONITOR_JOB_RECONCILIATION_STATES = _chunk5W4ENHWMjs.MONITOR_JOB_RECONCILIATION_STATES; exports.MONITOR_JOB_STATES = _chunk5W4ENHWMjs.MONITOR_JOB_STATES; exports.PHONE_STATUS_VALUES = _chunkBLMB4N63js.PHONE_STATUS_VALUES; exports.PROD_URL = _chunkMXQP7CXZjs.PROD_URL; exports.ProviderTransientError = _chunkBBTKAASQjs.ProviderTransientError; exports.RateLimitError = _chunkEITMD3A5js.RateLimitError; exports.RunEventQueryInputError = _chunk5W4ENHWMjs.RunEventQueryInputError; exports.RunObserveTransportUnavailableError = RunObserveTransportUnavailableError; exports.SDK_API_CONTRACT = _chunk4AZLGNXVjs.SDK_API_CONTRACT; exports.SDK_VERSION = _chunk4AZLGNXVjs.SDK_VERSION; exports.ToolExecutionError = _chunkBBTKAASQjs.ToolExecutionError; exports.ToolRateLimitError = _chunkEITMD3A5js.ToolRateLimitError; exports.admitMonitorFleetAuthoringContract = _chunkWOQO3GV4js.admitMonitorFleetAuthoringContract; exports.deepline = deepline; exports.default = deepline; exports.defineInput = defineInput; exports.defineMonitor = defineMonitor; exports.defineMonitorFleet = _chunkWOQO3GV4js.defineMonitorFleet; exports.definePlay = definePlay; exports.defineWorkflow = defineWorkflow; exports.extractSummaryFields = _chunkHGFFYVXNjs.extractSummaryFields; exports.fleetColumn = _chunkWOQO3GV4js.fleetColumn; exports.fleetKey = _chunkWOQO3GV4js.fleetKey; exports.getDefinedPlayMetadata = getDefinedPlayMetadata; exports.getProviderUnavailableReason = _chunkBBTKAASQjs.getProviderUnavailableReason; exports.isDeeplineExtractorTarget = _chunkBLMB4N63js.isDeeplineExtractorTarget; exports.isProviderUnavailable = _chunkBBTKAASQjs.isProviderUnavailable; exports.isProviderWaterfallUnavailableError = _chunkBBTKAASQjs.isProviderWaterfallUnavailableError; exports.isStopAllPlayRunsDryRunResult = _chunk5W4ENHWMjs.isStopAllPlayRunsDryRunResult; exports.lintMonitorBatchInput = _chunkU2LVWCTDjs.lintMonitorBatchInput; exports.lintMonitorFleetInput = _chunkWOQO3GV4js.lintMonitorFleetInput; exports.lintMonitorSpecTemplate = _chunkU2LVWCTDjs.lintMonitorSpecTemplate; exports.pinLocalPlayImports = _chunkIVWU7SJCjs.pinLocalPlayImports; exports.planCustomerDbQuery = _chunk5W4ENHWMjs.planCustomerDbQuery; exports.planLocalPlayExecution = _chunkIVWU7SJCjs.planLocalPlayExecution; exports.readList = readList; exports.renderMonitorSpecTemplate = _chunkU2LVWCTDjs.renderMonitorSpecTemplate; exports.resolveConfig = _chunkMXQP7CXZjs.resolveConfig; exports.runIf = runIf; exports.runScriptPlay = runScriptPlay; exports.steps = steps; exports.tryConvertToList = _chunkHGFFYVXNjs.tryConvertToList; exports.validateMonitorFleetDefinition = _chunkWOQO3GV4js.validateMonitorFleetDefinition; exports.writeCsvOutputFile = _chunkHGFFYVXNjs.writeCsvOutputFile; exports.writeJsonOutputFile = _chunkHGFFYVXNjs.writeJsonOutputFile;
2745
+
2746
+
2747
+ exports.AuthError = _chunkEITMD3A5js.AuthError; exports.ConfigError = _chunkEITMD3A5js.ConfigError; exports.CtxFetchAmbiguousWriteError = _chunkVKKVSFRDjs.CtxFetchAmbiguousWriteError; exports.CtxFetchHttpError = _chunkVKKVSFRDjs.CtxFetchHttpError; exports.CustomerDbQueryOutcomeUnknownError = _chunkEITMD3A5js.CustomerDbQueryOutcomeUnknownError; exports.DEEPLINE_EXTRACTOR_TARGETS = _chunkBLMB4N63js.DEEPLINE_EXTRACTOR_TARGETS; exports.DEEPLINE_EXTRACTOR_TARGET_DEFINITIONS = _chunkBLMB4N63js.DEEPLINE_EXTRACTOR_TARGET_DEFINITIONS; exports.DEEPLINE_TOOL_CATEGORIES = DEEPLINE_TOOL_CATEGORIES; exports.Deepline = Deepline; exports.DeeplineClient = _chunkJQWX377Pjs.DeeplineClient; exports.DeeplineContext = DeeplineContext; exports.DeeplineError = _chunkBBTKAASQjs.DeeplineError; exports.JOB_CHANGE_STATUS_VALUES = _chunkBLMB4N63js.JOB_CHANGE_STATUS_VALUES; exports.MONITOR_FLEET_AUTHORING_CONTRACT_CHANGELOG = _chunkWOQO3GV4js.MONITOR_FLEET_AUTHORING_CONTRACT_CHANGELOG; exports.MONITOR_FLEET_AUTHORING_CONTRACT_EDITION = _chunkWOQO3GV4js.MONITOR_FLEET_AUTHORING_CONTRACT_EDITION; exports.MONITOR_FLEET_DOCUMENTATION = _chunkWOQO3GV4js.MONITOR_FLEET_DOCUMENTATION; exports.MONITOR_FLEET_FRONTIER_MAX_ROWS = _chunkWOQO3GV4js.MONITOR_FLEET_FRONTIER_MAX_ROWS; exports.MONITOR_FLEET_MAX_MEMBERS = _chunkWOQO3GV4js.MONITOR_FLEET_MAX_MEMBERS; exports.MONITOR_JOB_PHASES = _chunkPVE3A2BOjs.MONITOR_JOB_PHASES; exports.MONITOR_JOB_RECONCILIATION_STATES = _chunkPVE3A2BOjs.MONITOR_JOB_RECONCILIATION_STATES; exports.MONITOR_JOB_STATES = _chunkPVE3A2BOjs.MONITOR_JOB_STATES; exports.PHONE_STATUS_VALUES = _chunkBLMB4N63js.PHONE_STATUS_VALUES; exports.PROD_URL = _chunkIIWXBRDKjs.PROD_URL; exports.ProviderTransientError = _chunkBBTKAASQjs.ProviderTransientError; exports.RateLimitError = _chunkEITMD3A5js.RateLimitError; exports.RunEventQueryInputError = _chunkPVE3A2BOjs.RunEventQueryInputError; exports.RunObserveTransportUnavailableError = RunObserveTransportUnavailableError; exports.SDK_API_CONTRACT = _chunkCXZLHBNKjs.SDK_API_CONTRACT; exports.SDK_VERSION = _chunkCXZLHBNKjs.SDK_VERSION; exports.ToolExecutionError = _chunkBBTKAASQjs.ToolExecutionError; exports.ToolRateLimitError = _chunkEITMD3A5js.ToolRateLimitError; exports.__deeplineCurrentDocflowContext = __deeplineCurrentDocflowContext; exports.__deeplineRunWithDocflowContext = __deeplineRunWithDocflowContext; exports.admitMonitorFleetAuthoringContract = _chunkWOQO3GV4js.admitMonitorFleetAuthoringContract; exports.deepline = deepline; exports.default = deepline; exports.defineInput = defineInput; exports.defineMonitor = defineMonitor; exports.defineMonitorFleet = _chunkWOQO3GV4js.defineMonitorFleet; exports.definePlay = definePlay; exports.defineWorkflow = defineWorkflow; exports.extractSummaryFields = _chunkHGFFYVXNjs.extractSummaryFields; exports.fleetColumn = _chunkWOQO3GV4js.fleetColumn; exports.fleetKey = _chunkWOQO3GV4js.fleetKey; exports.getDefinedPlayMetadata = getDefinedPlayMetadata; exports.getProviderUnavailableReason = _chunkBBTKAASQjs.getProviderUnavailableReason; exports.isDeeplineExtractorTarget = _chunkBLMB4N63js.isDeeplineExtractorTarget; exports.isProviderUnavailable = _chunkBBTKAASQjs.isProviderUnavailable; exports.isProviderWaterfallUnavailableError = _chunkBBTKAASQjs.isProviderWaterfallUnavailableError; exports.isStopAllPlayRunsDryRunResult = _chunkPVE3A2BOjs.isStopAllPlayRunsDryRunResult; exports.lintMonitorBatchInput = _chunkU2LVWCTDjs.lintMonitorBatchInput; exports.lintMonitorFleetInput = _chunkWOQO3GV4js.lintMonitorFleetInput; exports.lintMonitorSpecTemplate = _chunkU2LVWCTDjs.lintMonitorSpecTemplate; exports.pinLocalPlayImports = _chunkWI4MCR7Mjs.pinLocalPlayImports; exports.planCustomerDbQuery = _chunkPVE3A2BOjs.planCustomerDbQuery; exports.planLocalPlayExecution = _chunkWI4MCR7Mjs.planLocalPlayExecution; exports.readList = readList; exports.renderMonitorSpecTemplate = _chunkU2LVWCTDjs.renderMonitorSpecTemplate; exports.resolveConfig = _chunkIIWXBRDKjs.resolveConfig; exports.runIf = runIf; exports.runScriptPlay = runScriptPlay; exports.steps = steps; exports.tryConvertToList = _chunkHGFFYVXNjs.tryConvertToList; exports.validateMonitorFleetDefinition = _chunkWOQO3GV4js.validateMonitorFleetDefinition; exports.writeCsvOutputFile = _chunkHGFFYVXNjs.writeCsvOutputFile; exports.writeJsonOutputFile = _chunkHGFFYVXNjs.writeJsonOutputFile;
package/dist/index.mjs CHANGED
@@ -3,7 +3,7 @@ import {
3
3
  createPlayClient,
4
4
  pinLocalPlayImports,
5
5
  planLocalPlayExecution
6
- } from "./cli/chunk-6FBDTYR2.mjs";
6
+ } from "./cli/chunk-64BFUBXX.mjs";
7
7
  import {
8
8
  extractSummaryFields,
9
9
  tryConvertToList,
@@ -12,7 +12,7 @@ import {
12
12
  } from "./cli/chunk-FIVKWNMT.mjs";
13
13
  import {
14
14
  DeeplineClient
15
- } from "./cli/chunk-HJR2DDJS.mjs";
15
+ } from "./cli/chunk-U35ZLVBA.mjs";
16
16
  import {
17
17
  DEEPLINE_EXTRACTOR_TARGETS,
18
18
  DEEPLINE_EXTRACTOR_TARGET_DEFINITIONS,
@@ -37,10 +37,10 @@ import {
37
37
  RunEventQueryInputError,
38
38
  isStopAllPlayRunsDryRunResult,
39
39
  planCustomerDbQuery
40
- } from "./cli/chunk-OAKWSLKS.mjs";
40
+ } from "./cli/chunk-TKGFHRHE.mjs";
41
41
  import {
42
42
  legacyRawFromToolResponseRawV2
43
- } from "./cli/chunk-HXIR3VQL.mjs";
43
+ } from "./cli/chunk-FZHMNK6F.mjs";
44
44
  import "./cli/chunk-LX35AXTN.mjs";
45
45
  import "./cli/chunk-PSX3WHIH.mjs";
46
46
  import {
@@ -69,11 +69,11 @@ import {
69
69
  import {
70
70
  PROD_URL,
71
71
  resolveConfig
72
- } from "./cli/chunk-6Y5TU3R7.mjs";
72
+ } from "./cli/chunk-QZ74ZC55.mjs";
73
73
  import {
74
74
  SDK_API_CONTRACT,
75
75
  SDK_VERSION
76
- } from "./cli/chunk-RO66FPTS.mjs";
76
+ } from "./cli/chunk-53QLWPZK.mjs";
77
77
  import {
78
78
  AuthError,
79
79
  ConfigError,
@@ -90,7 +90,7 @@ import {
90
90
  isProviderUnavailable,
91
91
  isProviderWaterfallUnavailableError
92
92
  } from "./cli/chunk-JL2OTMSG.mjs";
93
- import "./cli/chunk-7MY7KWJS.mjs";
93
+ import "./cli/chunk-7AJ5V3BK.mjs";
94
94
  import "./cli/chunk-WZYKRD7T.mjs";
95
95
  import "./cli/chunk-KRD6H754.mjs";
96
96
 
@@ -1840,6 +1840,29 @@ function createPlayInputContract(schema) {
1840
1840
 
1841
1841
  // src/play.ts
1842
1842
  var scriptRuns = new AsyncLocalStorage();
1843
+ var docflowRunContexts = null;
1844
+ function __deeplineRunWithDocflowContext(context, body) {
1845
+ docflowRunContexts ??= new AsyncLocalStorage();
1846
+ return docflowRunContexts.run(context, body);
1847
+ }
1848
+ function __deeplineCurrentDocflowContext() {
1849
+ const context = docflowRunContexts?.getStore() ?? scriptRuns.getStore()?.context ?? null;
1850
+ if (!context) return null;
1851
+ let observe;
1852
+ try {
1853
+ if (Reflect.get(context, "__deeplineDocflowHelperObservation") !== true)
1854
+ return null;
1855
+ observe = Reflect.get(context, "__deeplineObserveDocflowNode");
1856
+ } catch {
1857
+ return null;
1858
+ }
1859
+ if (typeof observe !== "function") return null;
1860
+ return {
1861
+ __deeplineObserveDocflowNode: (nodeId, inputCaptures, outputPaths, execute) => observe.call(context, nodeId, inputCaptures, outputPaths, execute, {
1862
+ origin: "helper"
1863
+ })
1864
+ };
1865
+ }
1843
1866
  var latestScriptRun = null;
1844
1867
  var scriptCalls = {
1845
1868
  // Read statically before the run; nothing to do while it executes.
@@ -2686,6 +2709,8 @@ export {
2686
2709
  SDK_VERSION,
2687
2710
  ToolExecutionError,
2688
2711
  ToolRateLimitError,
2712
+ __deeplineCurrentDocflowContext,
2713
+ __deeplineRunWithDocflowContext,
2689
2714
  admitMonitorFleetAuthoringContract,
2690
2715
  deepline,
2691
2716
  deepline as default,