deepline 0.3.535 → 0.3.536

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 (229) hide show
  1. package/dist/bundling-sources/sdk/src/client-core.ts +232 -147
  2. package/dist/bundling-sources/sdk/src/index.ts +4 -0
  3. package/dist/bundling-sources/sdk/src/plays/local-file-discovery.ts +27 -1
  4. package/dist/bundling-sources/sdk/src/plays/run-request.ts +16 -5
  5. package/dist/bundling-sources/sdk/src/release.ts +1 -1
  6. package/dist/bundling-sources/sdk/src/types.ts +2 -23
  7. package/dist/bundling-sources/shared_libs/integration-contracts/monitor-fleet-contract.ts +26 -14
  8. package/dist/bundling-sources/shared_libs/integration-contracts/monitor-input-contract.ts +33 -8
  9. package/dist/bundling-sources/shared_libs/monitors/fleets/count-drift-alert.ts +121 -0
  10. package/dist/bundling-sources/shared_libs/monitors/fleets/limits.ts +8 -0
  11. package/dist/bundling-sources/shared_libs/monitors/fleets/plan.ts +14 -82
  12. package/dist/bundling-sources/shared_libs/monitors/package.json +1 -0
  13. package/dist/bundling-sources/shared_libs/observability/scheduled-jobs.json +4 -4
  14. package/dist/bundling-sources/shared_libs/play-data-plane/r2.ts +0 -26
  15. package/dist/bundling-sources/shared_libs/play-runtime/activity-observation.ts +36 -0
  16. package/dist/bundling-sources/shared_libs/play-runtime/app-runtime-api.ts +21 -31
  17. package/dist/bundling-sources/shared_libs/play-runtime/context.ts +88 -96
  18. package/dist/bundling-sources/shared_libs/play-runtime/durable-runs-rollout.ts +12 -10
  19. package/dist/bundling-sources/shared_libs/play-runtime/durable-summary-events.ts +3 -1
  20. package/dist/bundling-sources/shared_libs/play-runtime/governor/app-runtime-rate-state-backend.ts +71 -2
  21. package/dist/bundling-sources/shared_libs/play-runtime/governor/governor.ts +9 -0
  22. package/dist/bundling-sources/shared_libs/play-runtime/governor/rate-state-backend.ts +2 -0
  23. package/dist/bundling-sources/shared_libs/play-runtime/launch-identity.ts +1 -0
  24. package/dist/bundling-sources/shared_libs/play-runtime/map-memory-limits.ts +127 -9
  25. package/dist/bundling-sources/shared_libs/play-runtime/memory-ledger.ts +15 -2
  26. package/dist/bundling-sources/shared_libs/play-runtime/prebuilt-result-quality.ts +1 -1
  27. package/dist/bundling-sources/shared_libs/play-runtime/protocol.ts +6 -0
  28. package/dist/bundling-sources/shared_libs/play-runtime/provider-capacity/fixture-capacity-simulator.ts +1 -0
  29. package/dist/bundling-sources/shared_libs/play-runtime/provider-capacity/gradient2-concurrency-controller.ts +41 -0
  30. package/dist/bundling-sources/shared_libs/play-runtime/provider-capacity/provider-capacity-policy.ts +6 -0
  31. package/dist/bundling-sources/shared_libs/play-runtime/provider-capacity/provider-concurrency-policy.ts +9 -0
  32. package/dist/bundling-sources/shared_libs/play-runtime/resource-governor.ts +7 -0
  33. package/dist/bundling-sources/shared_libs/play-runtime/run-failure.ts +2 -2
  34. package/dist/bundling-sources/shared_libs/play-runtime/run-ledger.ts +5 -2
  35. package/dist/bundling-sources/shared_libs/play-runtime/runner-app/runtime-tool-hooks.ts +8 -3
  36. package/dist/bundling-sources/shared_libs/play-runtime/runtime-operation-contract.ts +7 -0
  37. package/dist/bundling-sources/shared_libs/play-runtime/sandbox-compute-usage.ts +31 -0
  38. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backend.ts +6 -0
  39. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/absurd-runtime-worker.ts +26 -1
  40. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/postgres-rate-scope.ts +11 -4
  41. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/postgres-rate-state.ts +73 -18
  42. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/postgres.ts +169 -2
  43. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/runtime-sandbox-capacity.ts +26 -4
  44. package/dist/bundling-sources/shared_libs/play-runtime/tool-execute-retry-policy.ts +84 -49
  45. package/dist/bundling-sources/shared_libs/plays/authoring-contract.ts +37 -32
  46. package/dist/bundling-sources/shared_libs/plays/launch/input-contract.ts +13 -1
  47. package/dist/bundling-sources/shared_libs/plays/local-file-discovery.ts +68 -1
  48. package/dist/bundling-sources/shared_libs/product-notifications/configuration-draft.ts +57 -1
  49. package/dist/bundling-sources/shared_libs/product-notifications/configuration.ts +22 -9
  50. package/dist/cli/auth-6XQKFOLG.js +43 -0
  51. package/dist/cli/{auth-ZCTMB5RA.mjs → auth-KCTCUO7P.mjs} +7 -7
  52. package/dist/cli/{billing-GVFKZQH3.js → billing-4VBGZ3CT.js} +273 -112
  53. package/dist/cli/{billing-OU2ZHL72.mjs → billing-OOJHKLNS.mjs} +185 -24
  54. package/dist/cli/{chunk-FGN75ZN6.js → chunk-2B4IOGFD.js} +390 -382
  55. package/dist/cli/{chunk-KOZBZPRM.js → chunk-2FCSUOYN.js} +55 -55
  56. package/dist/cli/{chunk-T2N3B7IQ.js → chunk-2GJZLIKW.js} +8 -8
  57. package/dist/cli/{chunk-AUEUAPVS.mjs → chunk-2YWJS76L.mjs} +1 -1
  58. package/dist/cli/{chunk-W5YJYU4G.mjs → chunk-3PCYV6ZJ.mjs} +2 -2
  59. package/dist/cli/{chunk-UUQ2OXMH.js → chunk-4E5JXZ3W.js} +18 -20
  60. package/dist/cli/{chunk-R4RG4FV5.mjs → chunk-4KWD3MX2.mjs} +13 -10
  61. package/dist/cli/{chunk-XSOTEVOB.js → chunk-6BBGUQJJ.js} +50 -141
  62. package/dist/cli/{chunk-PHLNYBAA.js → chunk-6VUGBQZQ.js} +5 -5
  63. package/dist/cli/{chunk-G2DLG32W.mjs → chunk-AB2GBOD4.mjs} +40 -27
  64. package/dist/cli/{chunk-JWWYLGUT.mjs → chunk-ANUKBZ6W.mjs} +475 -11
  65. package/dist/cli/{chunk-FZKPPB5P.mjs → chunk-BASLYGXK.mjs} +85 -77
  66. package/dist/cli/{chunk-SQWET4SL.js → chunk-BBTKAASQ.js} +2 -1
  67. package/dist/cli/{chunk-NRO3NTVO.js → chunk-CBV7AKWM.js} +5 -5
  68. package/dist/cli/{chunk-PI5R65OQ.js → chunk-CIDN5K23.js} +1 -1
  69. package/dist/cli/{chunk-QNHHZ63P.mjs → chunk-CQBIO6HW.mjs} +1 -1
  70. package/dist/cli/{chunk-2KHUFWTK.js → chunk-CQDQNZGH.js} +42 -37
  71. package/dist/cli/{chunk-D4MHCCIR.js → chunk-CWSLUNA6.js} +33 -33
  72. package/dist/cli/{chunk-E3CLOVG5.mjs → chunk-CXTW7SRW.mjs} +50 -141
  73. package/dist/cli/{chunk-H6SWS5CG.mjs → chunk-DA2I2M7D.mjs} +2 -2
  74. package/dist/cli/{chunk-WAIBM6KX.mjs → chunk-DQHUJMCL.mjs} +5 -5
  75. package/dist/cli/{chunk-DWPY6ZID.mjs → chunk-DUYAMLOC.mjs} +1 -1
  76. package/dist/cli/{chunk-K53NKWZO.mjs → chunk-E24UGPGG.mjs} +13 -15
  77. package/dist/cli/{chunk-STR5LXK4.mjs → chunk-FSIVF2SI.mjs} +1 -1
  78. package/dist/cli/{chunk-7R5DAANG.mjs → chunk-GF32SBST.mjs} +1 -1
  79. package/dist/cli/{chunk-7CWSAEYS.mjs → chunk-GHLDCLSC.mjs} +1 -1
  80. package/dist/cli/{chunk-ZUVE63Y7.js → chunk-GTVZKY3F.js} +2 -2
  81. package/dist/cli/{chunk-J75DANZY.mjs → chunk-HAJQGP5V.mjs} +2 -2
  82. package/dist/cli/{chunk-RFQWSH6I.js → chunk-HWDKRN7L.js} +3 -3
  83. package/dist/cli/{chunk-5YAJGRWB.js → chunk-IPVRMYWT.js} +7 -7
  84. package/dist/cli/{chunk-ZPGGW27Q.mjs → chunk-JL2OTMSG.mjs} +1 -0
  85. package/dist/cli/{chunk-K76AEBFY.mjs → chunk-JUHDJNSI.mjs} +4 -4
  86. package/dist/cli/{chunk-R2KKEHJN.mjs → chunk-KPQHUVYW.mjs} +5 -5
  87. package/dist/cli/{chunk-6LHX33VN.js → chunk-KWYGWO4Y.js} +9 -6
  88. package/dist/cli/{chunk-7PXP2FQK.js → chunk-LDGZFDUB.js} +2 -2
  89. package/dist/cli/{chunk-KWGXHPHL.js → chunk-LN6RXDTB.js} +523 -59
  90. package/dist/cli/{chunk-TCVCFZP6.mjs → chunk-LZXZQPA2.mjs} +4 -1
  91. package/dist/cli/{chunk-2D6SWQTK.js → chunk-MSP4DTSD.js} +13 -13
  92. package/dist/cli/{chunk-BNH4Y35W.mjs → chunk-OLH2PHMC.mjs} +2 -2
  93. package/dist/cli/{chunk-QYBAHYP4.mjs → chunk-OUDTOMZC.mjs} +7 -9
  94. package/dist/cli/{chunk-GESIFFQX.mjs → chunk-OVX3Q5Q3.mjs} +1 -1
  95. package/dist/cli/{chunk-6TYRRNXY.mjs → chunk-PNY3BWHP.mjs} +2 -2
  96. package/dist/cli/{chunk-DYIWDUY4.js → chunk-Q4MNUOS4.js} +316 -303
  97. package/dist/cli/{chunk-5EKNDNFQ.js → chunk-Q5CXV3E3.js} +2 -2
  98. package/dist/cli/{chunk-W6T23EUC.mjs → chunk-RVSSQPQO.mjs} +1 -1
  99. package/dist/cli/{chunk-WNNA4L6Z.js → chunk-SLPJ3LXI.js} +22 -22
  100. package/dist/cli/{chunk-K3IPGMGP.js → chunk-TX5TUHJN.js} +17 -19
  101. package/dist/cli/{chunk-IF75RD6U.js → chunk-U2LVWCTD.js} +18 -6
  102. package/dist/cli/{chunk-ZS2WHWWL.js → chunk-UNDLNT3V.js} +1 -1
  103. package/dist/cli/{chunk-4NLRWKZB.js → chunk-VBDZIMWD.js} +26 -26
  104. package/dist/cli/{chunk-DAPKLYST.js → chunk-W7AEIGZR.js} +41 -41
  105. package/dist/cli/{chunk-LVISZFYO.mjs → chunk-WC5M3JXE.mjs} +2 -2
  106. package/dist/cli/{chunk-C374C22Y.js → chunk-WOQO3GV4.js} +14 -11
  107. package/dist/cli/{chunk-243O3FH5.js → chunk-XBAH3TKU.js} +5 -5
  108. package/dist/cli/{chunk-DFJODFMC.mjs → chunk-XJD2GYUP.mjs} +5 -5
  109. package/dist/cli/{chunk-BF65LB7X.mjs → chunk-XVZRJJDS.mjs} +4 -4
  110. package/dist/cli/{chunk-OM732MGV.js → chunk-Y2NTPYGS.js} +17 -17
  111. package/dist/cli/{chunk-YFZLZNTH.mjs → chunk-YBMHOH6H.mjs} +4 -4
  112. package/dist/cli/{chunk-RKY4LBX3.mjs → chunk-YRLAUGQY.mjs} +3 -3
  113. package/dist/cli/{chunk-FKD3KL5Q.mjs → chunk-Z2XA6YU4.mjs} +10 -5
  114. package/dist/cli/{chunk-JQQG4QL4.mjs → chunk-Z7UIOGW4.mjs} +3 -3
  115. package/dist/cli/{chunk-HYBZWSSH.js → chunk-ZEV2Y56V.js} +44 -44
  116. package/dist/cli/{chunk-MI6ZP7XI.mjs → chunk-ZG7BOECV.mjs} +18 -6
  117. package/dist/cli/{chunk-HWPOXCCK.js → chunk-ZILSRDIN.js} +8 -8
  118. package/dist/cli/{chunk-CIDATNTY.js → chunk-ZISEH7OL.js} +16 -16
  119. package/dist/cli/{chunk-KA6ZERJL.js → chunk-ZZ4MF2GI.js} +6 -6
  120. package/dist/cli/command-docs.js +2 -2
  121. package/dist/cli/command-docs.mjs +1 -1
  122. package/dist/cli/{csv-CD55KEIO.js → csv-2V2DIFNG.js} +15 -15
  123. package/dist/cli/{csv-CLPVMIRF.mjs → csv-P3HLK4GO.mjs} +6 -6
  124. package/dist/cli/{db-MQKLDAEO.js → db-MREAQVW6.js} +36 -36
  125. package/dist/cli/{db-AU4SMWUN.mjs → db-ZYOY3QRQ.mjs} +9 -9
  126. package/dist/cli/describe-IKZFOADR.mjs +49 -0
  127. package/dist/cli/describe-WW3OQRLP.js +49 -0
  128. package/dist/cli/describe-core.d.mts +3 -3
  129. package/dist/cli/describe-core.d.ts +3 -3
  130. package/dist/cli/describe-core.js +5 -5
  131. package/dist/cli/describe-core.mjs +4 -4
  132. package/dist/cli/{executions-77GOLWRM.js → executions-H5IJ7QSQ.js} +11 -11
  133. package/dist/cli/{executions-TFIJPUX7.mjs → executions-KTSY5M34.mjs} +9 -9
  134. package/dist/cli/{feedback-OV5YAL3A.js → feedback-724QK3Z5.js} +16 -16
  135. package/dist/cli/{feedback-2WRSZ5WL.mjs → feedback-WWJRIXEU.mjs} +8 -8
  136. package/dist/cli/git-PHYRD56H.js +25 -0
  137. package/dist/cli/{git-VNS4ATLZ.mjs → git-R5VRG7X6.mjs} +7 -7
  138. package/dist/cli/index.js +151 -157
  139. package/dist/cli/index.mjs +51 -57
  140. package/dist/cli/{legacy-noops-HDOB5C6F.js → legacy-noops-C6GDEGPU.js} +11 -11
  141. package/dist/cli/{legacy-noops-C732QDCY.mjs → legacy-noops-PWZ5XLAO.mjs} +8 -8
  142. package/dist/cli/{monitors-5IUMHH3E.js → monitors-VAVQ4WCE.js} +125 -122
  143. package/dist/cli/{monitors-2LYEFXOU.mjs → monitors-WQSKMHAP.mjs} +19 -16
  144. package/dist/cli/{org-ADW2EVAC.js → org-CWWRWXZQ.js} +89 -89
  145. package/dist/cli/{org-G4YGZPHS.mjs → org-MAL4QPVF.mjs} +9 -9
  146. package/dist/cli/{play-7GQ56C2D.mjs → play-ILW6MSNG.mjs} +123 -76
  147. package/dist/cli/{play-EHSOSSHT.js → play-WJOWK5PQ.js} +641 -594
  148. package/dist/cli/{providers-WL3YTCSV.mjs → providers-4V2NMLZZ.mjs} +9 -9
  149. package/dist/cli/{providers-PWCF6OOO.js → providers-W662ANCH.js} +12 -12
  150. package/dist/cli/{quickstart-ZKI5MURA.js → quickstart-BW6EBUYX.js} +8 -8
  151. package/dist/cli/{quickstart-323XOPGI.mjs → quickstart-C22BR743.mjs} +6 -6
  152. package/dist/cli/{run-XZPWA6JS.js → run-KW7KW4FX.js} +50 -53
  153. package/dist/cli/{run-ZCNZU3K2.mjs → run-SPAU5IMW.mjs} +31 -34
  154. package/dist/cli/search-HLE54W5G.js +32 -0
  155. package/dist/cli/{search-CVLVSFMJ.mjs → search-XPC75HLM.mjs} +10 -11
  156. package/dist/cli/{search-output-6PY6RN2R.mjs → search-output-JKYJSEPM.mjs} +6 -6
  157. package/dist/cli/{search-output-7HRSSRBS.js → search-output-VJYE7USJ.js} +8 -8
  158. package/dist/cli/{secrets-6S2ZWDIM.mjs → secrets-OJG73GXQ.mjs} +9 -9
  159. package/dist/cli/{secrets-IYD5VKY4.js → secrets-YB57KGSB.js} +18 -18
  160. package/dist/cli/{sessions-GVEX5TUJ.mjs → sessions-7ZL37BW4.mjs} +8 -8
  161. package/dist/cli/sessions-VEBYZIEU.js +22 -0
  162. package/dist/cli/{settings-CANK4HJQ.js → settings-A7DD2ZYE.js} +88 -89
  163. package/dist/cli/{settings-BN5MJZ3C.mjs → settings-RKSQB7FA.mjs} +15 -16
  164. package/dist/cli/{setup-JNMSCCU4.mjs → setup-NXDUTITY.mjs} +11 -12
  165. package/dist/cli/{setup-YSGKGLSJ.js → setup-S3K5YU62.js} +51 -52
  166. package/dist/cli/skills-NVQ744CN.js +36 -0
  167. package/dist/cli/{skills-QCQN2UM2.mjs → skills-VMFAIDO6.mjs} +9 -10
  168. package/dist/cli/{tools-CDPOID7V.mjs → tools-52NTHBSJ.mjs} +20 -21
  169. package/dist/cli/tools-SBDUL3WB.js +56 -0
  170. package/dist/cli/update-HHVFZPCV.js +34 -0
  171. package/dist/cli/{update-D3ZERUQ3.mjs → update-SAKBEKMV.mjs} +11 -12
  172. package/dist/cli/{views-RDZRWQBQ.mjs → views-ACRV7MD6.mjs} +54 -10
  173. package/dist/cli/{views-4NV2KQKA.js → views-C3GJOBDG.js} +66 -22
  174. package/dist/cli/{workflow-2CG3TVCG.mjs → workflow-CS22E7TC.mjs} +10 -10
  175. package/dist/cli/{workflow-RABJCAZC.js → workflow-ZNWCZEGN.js} +20 -20
  176. package/dist/{client-DhSvMO3A.d.mts → client-BlLYQDNo.d.mts} +1 -1
  177. package/dist/{client-oGNJMQFd.d.ts → client-DSQlkIDO.d.ts} +1 -1
  178. package/dist/{client-core-CdWH6Sii.d.ts → client-core-CDwapXy5.d.ts} +159 -108
  179. package/dist/{client-core-CVG1Et-4.d.mts → client-core-rX7n2H8U.d.mts} +159 -108
  180. package/dist/{compiler-manifest-D2ZlBGxj.d.ts → compiler-manifest-BHNC4RL-.d.mts} +15 -22
  181. package/dist/{compiler-manifest-D2ZlBGxj.d.mts → compiler-manifest-BHNC4RL-.d.ts} +15 -22
  182. package/dist/{errors-B-gOQdj-.d.mts → errors-D7sPXrvB.d.mts} +1 -1
  183. package/dist/{errors-CB0KAmmV.d.ts → errors-lhtIWG5Z.d.ts} +1 -1
  184. package/dist/{index-c3nvUGCS.d.ts → index-CQTBHXHr.d.ts} +1 -1
  185. package/dist/{index-BbJADro4.d.mts → index-NaDZq2xf.d.mts} +1 -1
  186. package/dist/index.d.mts +7 -7
  187. package/dist/index.d.ts +7 -7
  188. package/dist/index.js +15 -15
  189. package/dist/index.mjs +11 -11
  190. package/dist/install-integrity.json +129 -132
  191. package/dist/monitor-fleet-contract.d.mts +17 -11
  192. package/dist/monitor-fleet-contract.d.ts +17 -11
  193. package/dist/monitor-fleet-contract.js +3 -3
  194. package/dist/monitor-fleet-contract.mjs +2 -2
  195. package/dist/monitor-input-contract.js +2 -2
  196. package/dist/monitor-input-contract.mjs +1 -1
  197. package/dist/plays/bundle-play-file.d.mts +3 -3
  198. package/dist/plays/bundle-play-file.d.ts +3 -3
  199. package/dist/plays/bundle-play-file.mjs +17 -5
  200. package/dist/plays/csv-data-input.js +3 -3
  201. package/dist/plays/csv-data-input.mjs +2 -2
  202. package/dist/plays/play-description.d.mts +2 -2
  203. package/dist/plays/play-description.d.ts +2 -2
  204. package/dist/plays/run-request.d.mts +2 -2
  205. package/dist/plays/run-request.d.ts +2 -2
  206. package/dist/plays/run-request.js +3 -3
  207. package/dist/plays/run-request.mjs +2 -2
  208. package/dist/release.d.mts +1 -1
  209. package/dist/release.d.ts +1 -1
  210. package/dist/release.js +2 -2
  211. package/dist/release.mjs +1 -1
  212. package/dist/server.d.mts +4 -4
  213. package/dist/server.d.ts +4 -4
  214. package/dist/server.js +12 -12
  215. package/dist/server.mjs +6 -6
  216. package/package.json +1 -1
  217. package/dist/cli/auth-VDCU3T6A.js +0 -43
  218. package/dist/cli/chunk-4QELPWUW.mjs +0 -405
  219. package/dist/cli/chunk-T7RBM2WX.js +0 -405
  220. package/dist/cli/describe-5BFNHT5V.js +0 -50
  221. package/dist/cli/describe-AWJUXE2U.mjs +0 -50
  222. package/dist/cli/git-HGMX52XU.js +0 -25
  223. package/dist/cli/pages-KXKWSCEV.mjs +0 -266
  224. package/dist/cli/pages-VTJGAI2D.js +0 -266
  225. package/dist/cli/search-J6EY7DQN.js +0 -33
  226. package/dist/cli/sessions-7HPIVSQ4.js +0 -22
  227. package/dist/cli/skills-WDGSSKJZ.js +0 -37
  228. package/dist/cli/tools-URNVXSTZ.js +0 -57
  229. package/dist/cli/update-Q6JW32IA.js +0 -35
@@ -20,7 +20,7 @@ import {
20
20
  stagePlayFiles,
21
21
  startPlayRun,
22
22
  submitPreparedPlayRunAdmission
23
- } from "./chunk-FKD3KL5Q.mjs";
23
+ } from "./chunk-Z2XA6YU4.mjs";
24
24
  import {
25
25
  describePlayDetail,
26
26
  describePlayListItem
@@ -31,16 +31,16 @@ import {
31
31
  RETAINED_PIPELINE_RECEIVERS_HEADER,
32
32
  RUNTIME_ENVIRONMENT_TOKEN_HEADER,
33
33
  SDK_API_MAJOR
34
- } from "./chunk-RKY4LBX3.mjs";
34
+ } from "./chunk-YRLAUGQY.mjs";
35
35
  import {
36
36
  CustomerDbQueryOutcomeUnknownError
37
- } from "./chunk-QNHHZ63P.mjs";
37
+ } from "./chunk-CQBIO6HW.mjs";
38
38
  import {
39
39
  DeeplineError,
40
40
  TOOL_EXECUTION_ERROR_SCHEMA_HEADER,
41
41
  TOOL_EXECUTION_ERROR_SCHEMA_VERSION,
42
42
  ToolExecutionError
43
- } from "./chunk-ZPGGW27Q.mjs";
43
+ } from "./chunk-JL2OTMSG.mjs";
44
44
 
45
45
  // src/pagination.ts
46
46
  async function* iterateCursorPages(fetchPage) {
@@ -3537,7 +3537,7 @@ var DeeplineClient = class _DeeplineClient {
3537
3537
  usageEvent: (requestId) => this.getBillingUsageEvent(requestId),
3538
3538
  usageEvents: (options) => this.getBillingUsageEvents(options),
3539
3539
  usage: (options) => this.getBillingUsage(options),
3540
- targetPlans: () => this.getTargetBillingPlans(),
3540
+ targetPlans: (options) => this.getTargetBillingPlans(options),
3541
3541
  targetStatus: () => this.getTargetBillingStatus(),
3542
3542
  autoRecharge: {
3543
3543
  get: () => this.getTargetAutoRecharge(),
@@ -3552,6 +3552,37 @@ var DeeplineClient = class _DeeplineClient {
3552
3552
  ),
3553
3553
  update: (options) => this.updateTargetAutoRecharge(options)
3554
3554
  },
3555
+ cards: {
3556
+ list: (options) => {
3557
+ const query = new URLSearchParams();
3558
+ if (options?.limit !== void 0) {
3559
+ query.set("limit", String(options.limit));
3560
+ }
3561
+ if (options?.cursor) query.set("cursor", options.cursor);
3562
+ const suffix = query.size > 0 ? `?${query.toString()}` : "";
3563
+ return this.http.get(
3564
+ `/api/v2/billing/payment-methods${suffix}`
3565
+ );
3566
+ },
3567
+ add: (options) => this.http.post(
3568
+ "/api/v2/billing/payment-method/setup",
3569
+ { make_default: options?.makeDefault === true }
3570
+ ),
3571
+ setDefault: (options) => this.http.post(
3572
+ "/api/v2/billing/payment-methods/default",
3573
+ {
3574
+ card_id: options.cardId,
3575
+ change_id: options.changeId ?? globalThis.crypto.randomUUID()
3576
+ }
3577
+ ),
3578
+ remove: (options) => this.http.post(
3579
+ "/api/v2/billing/payment-methods/remove",
3580
+ {
3581
+ card_id: options.cardId,
3582
+ change_id: options.changeId ?? globalThis.crypto.randomUUID()
3583
+ }
3584
+ )
3585
+ },
3555
3586
  purchaseCredits: (options) => this.purchaseTargetBillingCredits(options),
3556
3587
  recoverCreditPurchase: (options) => this.recoverTargetBillingCreditPurchase(options),
3557
3588
  transitionPlan: (options) => this.transitionTargetBillingPlan(options),
@@ -3677,75 +3708,6 @@ var DeeplineClient = class _DeeplineClient {
3677
3708
  // ——————————————————————————————————————————————————————————
3678
3709
  // Secrets
3679
3710
  // ——————————————————————————————————————————————————————————
3680
- /** List this workspace's hosted pages, newest update first. */
3681
- async listPages(input) {
3682
- const params = new URLSearchParams();
3683
- if (input?.cursor) params.set("cursor", input.cursor);
3684
- if (input?.limit) params.set("limit", String(input.limit));
3685
- const query = params.size > 0 ? `?${params}` : "";
3686
- return await this.http.get(`/api/v2/pages${query}`);
3687
- }
3688
- /** Read one hosted page's metadata. */
3689
- async getPage(name) {
3690
- return await this.http.get(
3691
- `/api/v2/pages/${encodeURIComponent(name)}`
3692
- );
3693
- }
3694
- /** Replace a page's whole content. `public` says who the write is for. */
3695
- async writePage(name, input) {
3696
- return await this.http.put(
3697
- `/api/v2/pages/${encodeURIComponent(name)}`,
3698
- {
3699
- public: input.public,
3700
- content_base64: input.contentBase64,
3701
- content_type: input.contentType,
3702
- description: input.description
3703
- }
3704
- );
3705
- }
3706
- /** Delete a page, its content, and its links. Safe to repeat. */
3707
- async deletePage(name) {
3708
- return await this.http.delete(
3709
- `/api/v2/pages/${encodeURIComponent(name)}`
3710
- );
3711
- }
3712
- /** Replace the origins allowed to read this page in a browser when public. */
3713
- async setPageAllowedOrigins(name, origins) {
3714
- return await this.http.put(
3715
- `/api/v2/pages/${encodeURIComponent(name)}/origins`,
3716
- { allowed_origins: origins }
3717
- );
3718
- }
3719
- /** The explicit way to change who can see an existing page. */
3720
- async setPageVisibility(name, isPublic) {
3721
- return await this.http.post(
3722
- `/api/v2/pages/${encodeURIComponent(name)}/visibility`,
3723
- { public: isPublic }
3724
- );
3725
- }
3726
- /** List a page's links. Their URLs cannot be shown again. */
3727
- async listPageLinks(name) {
3728
- return await this.http.get(
3729
- `/api/v2/pages/${encodeURIComponent(name)}/links`
3730
- );
3731
- }
3732
- /** The returned URL is shown once. Either expiry or `permanent` is required. */
3733
- async createPageLink(name, input) {
3734
- return await this.http.post(
3735
- `/api/v2/pages/${encodeURIComponent(name)}/links`,
3736
- {
3737
- expires_in_seconds: input.expiresInSeconds,
3738
- permanent: input.permanent,
3739
- label: input.label
3740
- }
3741
- );
3742
- }
3743
- /** Stop a link working. Safe to repeat. */
3744
- async revokePageLink(name, linkId) {
3745
- return await this.http.delete(
3746
- `/api/v2/pages/${encodeURIComponent(name)}/links/${encodeURIComponent(linkId)}`
3747
- );
3748
- }
3749
3711
  // ——————————————————————————————————————————————————————————
3750
3712
  // Views
3751
3713
  // ——————————————————————————————————————————————————————————
@@ -3781,6 +3743,32 @@ var DeeplineClient = class _DeeplineClient {
3781
3743
  { access }
3782
3744
  );
3783
3745
  }
3746
+ /** The view's share links, newest first. Their tokens are never returned. */
3747
+ async listViewShareLinks(id) {
3748
+ return await this.http.get(
3749
+ `/api/v2/views/${encodeURIComponent(id)}/links`
3750
+ );
3751
+ }
3752
+ /**
3753
+ * Create a share link. `url` in the result is the only copy of the link;
3754
+ * keep it. With `emails`, Deepline also emails it to those people, except
3755
+ * `not_emailed` addresses that bounced or complained before. One
3756
+ * Idempotency-Key per call, so a retried request returns the same link
3757
+ * (with `url: null`) instead of making and emailing a second one.
3758
+ */
3759
+ async createViewShareLink(id, input) {
3760
+ return await this.http.post(
3761
+ `/api/v2/views/${encodeURIComponent(id)}/links`,
3762
+ input,
3763
+ { "Idempotency-Key": `view-link-${globalThis.crypto.randomUUID()}` }
3764
+ );
3765
+ }
3766
+ /** Revoke a share link. It stops opening the view at once. */
3767
+ async revokeViewShareLink(id, linkId) {
3768
+ return await this.http.delete(
3769
+ `/api/v2/views/${encodeURIComponent(id)}/links/${encodeURIComponent(linkId)}`
3770
+ );
3771
+ }
3784
3772
  /** Every run of the view's Play, newest first. */
3785
3773
  async listViewRuns(id, input) {
3786
3774
  const params = new URLSearchParams();
@@ -5570,6 +5558,13 @@ var DeeplineClient = class _DeeplineClient {
5570
5558
  async listWorkspaceIntegrationConnections() {
5571
5559
  return this.http.get("/api/v2/integrations/connections");
5572
5560
  }
5561
+ /** List workspace members' personal HubSpot connection status as an admin. */
5562
+ async listPersonalHubSpotMembers(cursor) {
5563
+ const path = "/api/v2/integrations/connections/hubspot-members";
5564
+ return this.http.get(
5565
+ cursor ? `${path}?${new URLSearchParams({ cursor })}` : path
5566
+ );
5567
+ }
5573
5568
  /** Manage a workspace-owned OAuth connection. Consent completes in the browser. */
5574
5569
  async manageWorkspaceIntegrationConnection(input) {
5575
5570
  return this.http.post("/api/v2/integrations/connections", {
@@ -6455,8 +6450,10 @@ var DeeplineClient = class _DeeplineClient {
6455
6450
  );
6456
6451
  }
6457
6452
  /** List the reviewed target plans and whether new acquisition is enabled. */
6458
- async getTargetBillingPlans() {
6459
- return this.http.get("/api/v2/billing/plans");
6453
+ async getTargetBillingPlans(options) {
6454
+ return this.http.get(
6455
+ options?.promoCode ? `/api/v2/billing/plans?promo_code=${encodeURIComponent(options.promoCode)}` : "/api/v2/billing/plans"
6456
+ );
6460
6457
  }
6461
6458
  /** Read the workspace's normalized target plan, payment, and balance state. */
6462
6459
  async getTargetBillingStatus() {
@@ -6547,7 +6544,8 @@ var DeeplineClient = class _DeeplineClient {
6547
6544
  {
6548
6545
  action: options.action,
6549
6546
  ...options.action === "start_or_change" && options.billingEmail ? { billing_email: options.billingEmail } : {},
6550
- ...options.targetPlanSku ? { target_plan_sku: options.targetPlanSku } : {}
6547
+ ...options.targetPlanSku ? { target_plan_sku: options.targetPlanSku } : {},
6548
+ ...options.action === "start_or_change" && options.promoCode ? { promo_code: options.promoCode } : {}
6551
6549
  },
6552
6550
  { "Idempotency-Key": idempotencyKey },
6553
6551
  { maxRetries: 0, exactUrlOnly: true }
@@ -7128,6 +7126,13 @@ var DeeplineClient = class _DeeplineClient {
7128
7126
  "Idempotency-Key": idempotencyKey?.trim() || this.monitorFleetIdempotencyKey(operation)
7129
7127
  };
7130
7128
  }
7129
+ /**
7130
+ * Fleet writes plan against the whole fleet inside one request, so they
7131
+ * wait as long as the server lets those routes run (300 s) plus transit,
7132
+ * not the client's default. A ten-thousand-member deploy took 62 s; giving
7133
+ * up at 60 s reported a timeout for a plan the server then committed.
7134
+ */
7135
+ static MONITOR_FLEET_WRITE_TIMEOUT_MS = 31e4;
7131
7136
  monitorFleetPath(fleetId) {
7132
7137
  return `/api/v2/monitors/fleets/${encodeURIComponent(fleetId)}`;
7133
7138
  }
@@ -7153,6 +7158,7 @@ var DeeplineClient = class _DeeplineClient {
7153
7158
  {
7154
7159
  method: "PUT",
7155
7160
  body,
7161
+ timeout: _DeeplineClient.MONITOR_FLEET_WRITE_TIMEOUT_MS,
7156
7162
  headers: this.monitorFleetHeaders("sync", options?.idempotencyKey),
7157
7163
  maxRetries: 0,
7158
7164
  exactUrlOnly: true
@@ -7216,6 +7222,7 @@ var DeeplineClient = class _DeeplineClient {
7216
7222
  {
7217
7223
  method: "DELETE",
7218
7224
  body: options?.dryRun ? { dry_run: true } : {},
7225
+ timeout: _DeeplineClient.MONITOR_FLEET_WRITE_TIMEOUT_MS,
7219
7226
  headers: this.monitorFleetHeaders(
7220
7227
  "deactivate",
7221
7228
  options?.idempotencyKey
@@ -7231,6 +7238,7 @@ var DeeplineClient = class _DeeplineClient {
7231
7238
  {
7232
7239
  method: "POST",
7233
7240
  body: {},
7241
+ timeout: _DeeplineClient.MONITOR_FLEET_WRITE_TIMEOUT_MS,
7234
7242
  headers: this.monitorFleetHeaders(
7235
7243
  "reactivate",
7236
7244
  options?.idempotencyKey
@@ -368,4 +368,5 @@ function deserializeToolExecutionFailure(message, value, acceptedSchemaVersion)
368
368
 
369
369
 
370
370
 
371
- exports.TOOL_EXECUTION_ERROR_SCHEMA_VERSION = TOOL_EXECUTION_ERROR_SCHEMA_VERSION; exports.SUPPORTED_TOOL_EXECUTION_ERROR_SCHEMA_VERSIONS = SUPPORTED_TOOL_EXECUTION_ERROR_SCHEMA_VERSIONS; exports.TOOL_EXECUTION_ERROR_SCHEMA_HEADER = TOOL_EXECUTION_ERROR_SCHEMA_HEADER; exports.readToolUpstreamResponse = readToolUpstreamResponse; exports.attachToolUpstreamResponse = attachToolUpstreamResponse; exports.DeeplineError = DeeplineError; exports.ToolExecutionError = ToolExecutionError; exports.brandAsToolExecutionError = brandAsToolExecutionError; exports.isProviderTransientFailure = isProviderTransientFailure; exports.ProviderTransientError = ProviderTransientError; exports.getProviderUnavailableReason = getProviderUnavailableReason; exports.isProviderUnavailable = isProviderUnavailable; exports.isProviderWaterfallUnavailableError = isProviderWaterfallUnavailableError; exports.brandAsProviderTransientError = brandAsProviderTransientError; exports.serializeToolExecutionFailure = serializeToolExecutionFailure; exports.deserializeToolExecutionFailure = deserializeToolExecutionFailure;
371
+
372
+ exports.TOOL_EXECUTION_ERROR_SCHEMA_VERSION = TOOL_EXECUTION_ERROR_SCHEMA_VERSION; exports.SUPPORTED_TOOL_EXECUTION_ERROR_SCHEMA_VERSIONS = SUPPORTED_TOOL_EXECUTION_ERROR_SCHEMA_VERSIONS; exports.TOOL_EXECUTION_ERROR_SCHEMA_HEADER = TOOL_EXECUTION_ERROR_SCHEMA_HEADER; exports.readToolUpstreamResponse = readToolUpstreamResponse; exports.attachToolUpstreamResponse = attachToolUpstreamResponse; exports.DeeplineError = DeeplineError; exports.ToolExecutionError = ToolExecutionError; exports.brandAsToolExecutionError = brandAsToolExecutionError; exports.isProviderTransientFailure = isProviderTransientFailure; exports.ProviderTransientError = ProviderTransientError; exports.getProviderUnavailableReason = getProviderUnavailableReason; exports.isProviderUnavailable = isProviderUnavailable; exports.isProviderWaterfallUnavailableError = isProviderWaterfallUnavailableError; exports.brandAsProviderTransientError = brandAsProviderTransientError; exports.normalizeToolExecutionFailure = normalizeToolExecutionFailure; exports.serializeToolExecutionFailure = serializeToolExecutionFailure; exports.deserializeToolExecutionFailure = deserializeToolExecutionFailure;
@@ -1,6 +1,6 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } }
2
2
 
3
- var _chunkSQWET4SLjs = require('./chunk-SQWET4SL.js');
3
+ var _chunkBBTKAASQjs = require('./chunk-BBTKAASQ.js');
4
4
 
5
5
  // node_modules/csv-parse/dist/esm/sync.js
6
6
  var global$1 = typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {};
@@ -3000,7 +3000,7 @@ function parseCsvDataInput(source, content, options = {}) {
3000
3000
  } : {}
3001
3001
  });
3002
3002
  } catch (error) {
3003
- throw new (0, _chunkSQWET4SLjs.DeeplineError)(
3003
+ throw new (0, _chunkBBTKAASQjs.DeeplineError)(
3004
3004
  `Input ${source.inputPath} could not be parsed as CSV (${source.value}): ${error instanceof Error ? error.message : String(error)}. This usually means an unclosed quote or ragged quoting. No run was created.`,
3005
3005
  void 0,
3006
3006
  "PLAY_INPUT_FILE_PREFLIGHT",
@@ -3008,7 +3008,7 @@ function parseCsvDataInput(source, content, options = {}) {
3008
3008
  );
3009
3009
  }
3010
3010
  if (records.length === 0) {
3011
- throw new (0, _chunkSQWET4SLjs.DeeplineError)(
3011
+ throw new (0, _chunkBBTKAASQjs.DeeplineError)(
3012
3012
  `${source.value} is empty: it has no header row and no data rows. No run was created.`,
3013
3013
  void 0,
3014
3014
  "PLAY_INPUT_FILE_PREFLIGHT",
@@ -3023,7 +3023,7 @@ function parseCsvDataInput(source, content, options = {}) {
3023
3023
  if (name.length === 0) continue;
3024
3024
  const prior = seen.get(name);
3025
3025
  if (prior) {
3026
- throw new (0, _chunkSQWET4SLjs.DeeplineError)(
3026
+ throw new (0, _chunkBBTKAASQjs.DeeplineError)(
3027
3027
  `Input ${source.inputPath} (${source.value}) has a duplicate CSV header "${name}" (columns ${prior.index + 1} and ${i + 1}). The second column would silently overwrite the first. Rename one of them. No run was created.`,
3028
3028
  void 0,
3029
3029
  "PLAY_INPUT_FILE_PREFLIGHT",
@@ -3039,7 +3039,7 @@ function parseCsvDataInput(source, content, options = {}) {
3039
3039
  seen.set(name, { index: i, raw });
3040
3040
  }
3041
3041
  if (records.length - 1 < 1) {
3042
- throw new (0, _chunkSQWET4SLjs.DeeplineError)(
3042
+ throw new (0, _chunkBBTKAASQjs.DeeplineError)(
3043
3043
  `${source.value} has a header row but no data rows. No run was created.`,
3044
3044
  void 0,
3045
3045
  "PLAY_INPUT_FILE_PREFLIGHT",
@@ -49,7 +49,7 @@ var SDK_RELEASE = {
49
49
  // getters keep their established compatibility behavior.
50
50
  // 0.3.1 deprecated the legacy `deepline enrich` command in favor of Plays.
51
51
  // 0.3.90 is the first deliberately versioned SDK release for API v3.
52
- version: "0.3.535",
52
+ version: "0.3.536",
53
53
  updateSummary: {
54
54
  introducedIn: "0.3.90",
55
55
  summary: "Play grep now returns concise results with the matched fields and terms. Automatic CLI updates are enabled by default; use `deepline settings autoupdate off` to opt out, `deepline settings autoupdate on` to re-enable updates, or `deepline settings autoupdate pin <version>` to hold an exact release."
@@ -3,7 +3,7 @@ import {
3
3
  brandAsProviderTransientError,
4
4
  brandAsToolExecutionError,
5
5
  isProviderTransientFailure
6
- } from "./chunk-ZPGGW27Q.mjs";
6
+ } from "./chunk-JL2OTMSG.mjs";
7
7
 
8
8
  // src/errors.ts
9
9
  var CustomerDbQueryOutcomeUnknownError = class extends DeeplineError {
@@ -8,7 +8,7 @@ var _chunkXDVT3GOMjs = require('./chunk-XDVT3GOM.js');
8
8
  var _chunkXNYIZMNQjs = require('./chunk-XNYIZMNQ.js');
9
9
 
10
10
 
11
- var _chunkSQWET4SLjs = require('./chunk-SQWET4SL.js');
11
+ var _chunkBBTKAASQjs = require('./chunk-BBTKAASQ.js');
12
12
 
13
13
  // ../play-data-plane/column-names.ts
14
14
  var POSTGRES_IDENTIFIER_MAX_BYTES = 63;
@@ -164,7 +164,7 @@ async function awaitWithAbort(value, signal) {
164
164
  removeAbortListener();
165
165
  }
166
166
  }
167
- var CliPlayAdmissionUnsupportedError = class extends _chunkSQWET4SLjs.DeeplineError {
167
+ var CliPlayAdmissionUnsupportedError = class extends _chunkBBTKAASQjs.DeeplineError {
168
168
  constructor(status) {
169
169
  super(
170
170
  "This server does not support CLI Play admission.",
@@ -173,7 +173,7 @@ var CliPlayAdmissionUnsupportedError = class extends _chunkSQWET4SLjs.DeeplineEr
173
173
  );
174
174
  }
175
175
  };
176
- var CliPlayAdmissionCallerIntentV2UnsupportedError = class extends _chunkSQWET4SLjs.DeeplineError {
176
+ var CliPlayAdmissionCallerIntentV2UnsupportedError = class extends _chunkBBTKAASQjs.DeeplineError {
177
177
  constructor(status) {
178
178
  super(
179
179
  "This server does not support versioned CLI Play admission.",
@@ -230,7 +230,7 @@ async function preparePlayRunAdmission(http, request, onSubmission, options) {
230
230
  };
231
231
  const callerIntentV2 = _optionalChain([options, 'optionalAccess', _15 => _15.callerIntentV2]) === true;
232
232
  if (callerIntentV2 && (onSubmission || request.maxTotalCredits !== void 0)) {
233
- throw new (0, _chunkSQWET4SLjs.DeeplineError)(
233
+ throw new (0, _chunkBBTKAASQjs.DeeplineError)(
234
234
  "Versioned CLI Play admission requires a new, unjournaled run without a strict total budget.",
235
235
  409,
236
236
  "CLI_PLAY_CALLER_INTENT_V2_INELIGIBLE"
@@ -241,14 +241,14 @@ async function preparePlayRunAdmission(http, request, onSubmission, options) {
241
241
  const supportsCallerIntent = callerIntentV2 || _optionalChain([capability, 'optionalAccess', _16 => _16.admissionContract]) === "caller-intent-v1";
242
242
  assertAdmissionActive();
243
243
  if (supportsCallerIntent && !callerIntentV2 && (!_optionalChain([capability, 'optionalAccess', _17 => _17.orgId]) || request.admissionOrgId && request.admissionOrgId !== capability.orgId)) {
244
- throw new (0, _chunkSQWET4SLjs.DeeplineError)(
244
+ throw new (0, _chunkBBTKAASQjs.DeeplineError)(
245
245
  "The admission workspace could not be pinned to this request; execution was not submitted.",
246
246
  409,
247
247
  "PLAY_RUN_ADMISSION_TENANT_CONFLICT"
248
248
  );
249
249
  }
250
250
  if (request.workflowId && !supportsCallerIntent) {
251
- throw new (0, _chunkSQWET4SLjs.DeeplineError)(
251
+ throw new (0, _chunkBBTKAASQjs.DeeplineError)(
252
252
  "This server has not enabled caller-owned admission recovery. Do not retry an ambiguous start.",
253
253
  409,
254
254
  "PLAY_RUN_ADMISSION_RECOVERY_UNSUPPORTED"
@@ -256,20 +256,20 @@ async function preparePlayRunAdmission(http, request, onSubmission, options) {
256
256
  }
257
257
  if (request.maxTotalCredits !== void 0 && _optionalChain([capability, 'optionalAccess', _18 => _18.strictTotalBudget]) === "unbounded-v1") {
258
258
  if (request.maxTotalCredits === 0) {
259
- throw new (0, _chunkSQWET4SLjs.DeeplineError)(
259
+ throw new (0, _chunkBBTKAASQjs.DeeplineError)(
260
260
  "A zero-credit total budget cannot admit a Play: sandbox compute is billed even when provider tools are free.",
261
261
  422,
262
262
  "PLAY_TOTAL_BUDGET_COMPUTE_REQUIRED"
263
263
  );
264
264
  }
265
- throw new (0, _chunkSQWET4SLjs.DeeplineError)(
265
+ throw new (0, _chunkBBTKAASQjs.DeeplineError)(
266
266
  "A strict total Play budget cannot currently be admitted: provider operations, Customer DB compute, and additional sandbox sessions do not have a finite admitted upper bound.",
267
267
  422,
268
268
  "PLAY_TOTAL_BUDGET_UNBOUNDED"
269
269
  );
270
270
  }
271
271
  if (request.maxTotalCredits !== void 0 && _optionalChain([capability, 'optionalAccess', _19 => _19.strictTotalBudget]) !== "fail-closed-v1") {
272
- throw new (0, _chunkSQWET4SLjs.DeeplineError)(
272
+ throw new (0, _chunkBBTKAASQjs.DeeplineError)(
273
273
  "This server cannot honor a strict total Play budget. Execution was not submitted.",
274
274
  409,
275
275
  "PLAY_TOTAL_BUDGET_UNSUPPORTED"
@@ -286,7 +286,7 @@ async function preparePlayRunAdmission(http, request, onSubmission, options) {
286
286
  const workflowId = supportsCallerIntent ? _nullishCoalesce(request.workflowId, () => ( _chunkXDVT3GOMjs.buildCallerPlayWorkflowId.call(void 0, _nullishCoalesce(request.name, () => ( "play")), wireBody))) : void 0;
287
287
  const submittedBody = workflowId ? { workflowId, ...wireBody } : wireBody;
288
288
  if (workflowId && !_chunkXDVT3GOMjs.callerPlayWorkflowIdMatchesRequest.call(void 0, workflowId, submittedBody)) {
289
- throw new (0, _chunkSQWET4SLjs.DeeplineError)(
289
+ throw new (0, _chunkBBTKAASQjs.DeeplineError)(
290
290
  "workflowId must be the caller run ID of this same immutable request.",
291
291
  400,
292
292
  "PLAY_RUN_START_INTENT_CONFLICT"
@@ -294,7 +294,7 @@ async function preparePlayRunAdmission(http, request, onSubmission, options) {
294
294
  }
295
295
  if (onSubmission) {
296
296
  if (!workflowId || !_optionalChain([capability, 'optionalAccess', _20 => _20.orgId])) {
297
- throw new (0, _chunkSQWET4SLjs.DeeplineError)(
297
+ throw new (0, _chunkBBTKAASQjs.DeeplineError)(
298
298
  "This server cannot persist a recoverable submission intent. Execution was not submitted.",
299
299
  409,
300
300
  "PLAY_RUN_ADMISSION_RECOVERY_UNSUPPORTED"
@@ -318,14 +318,14 @@ async function readPlayRunAdmissionCapability(http, options) {
318
318
  options
319
319
  );
320
320
  } catch (error) {
321
- if (!(error instanceof _chunkSQWET4SLjs.DeeplineError) || ![404, 405].includes(_nullishCoalesce(error.statusCode, () => ( 0)))) {
321
+ if (!(error instanceof _chunkBBTKAASQjs.DeeplineError) || ![404, 405].includes(_nullishCoalesce(error.statusCode, () => ( 0)))) {
322
322
  throw error;
323
323
  }
324
324
  }
325
325
  if (capability && !["caller-intent-v1", "unsupported"].includes(
326
326
  _nullishCoalesce(capability.admissionContract, () => ( ""))
327
327
  )) {
328
- throw new (0, _chunkSQWET4SLjs.DeeplineError)(
328
+ throw new (0, _chunkBBTKAASQjs.DeeplineError)(
329
329
  "The server admission capability response is unknown; execution was not submitted.",
330
330
  503,
331
331
  "PLAY_RUN_ADMISSION_CAPABILITY_UNKNOWN"
@@ -378,22 +378,22 @@ async function submitPreparedPlayRunAdmission(http, submittedBody, workflowId, s
378
378
  }
379
379
  );
380
380
  } catch (error) {
381
- if (_optionalChain([options, 'optionalAccess', _27 => _27.callerIntentV2]) && !callerIntentV2Supported && error instanceof _chunkSQWET4SLjs.DeeplineError && (error.statusCode === 404 || error.statusCode === 405)) {
381
+ if (_optionalChain([options, 'optionalAccess', _27 => _27.callerIntentV2]) && !callerIntentV2Supported && error instanceof _chunkBBTKAASQjs.DeeplineError && (error.statusCode === 404 || error.statusCode === 405)) {
382
382
  throw new CliPlayAdmissionCallerIntentV2UnsupportedError(
383
383
  error.statusCode
384
384
  );
385
385
  }
386
- if (_optionalChain([options, 'optionalAccess', _28 => _28.cliAdmission]) && !cliAdmissionSupported && error instanceof _chunkSQWET4SLjs.DeeplineError && (error.statusCode === 404 || error.statusCode === 405)) {
386
+ if (_optionalChain([options, 'optionalAccess', _28 => _28.cliAdmission]) && !cliAdmissionSupported && error instanceof _chunkBBTKAASQjs.DeeplineError && (error.statusCode === 404 || error.statusCode === 405)) {
387
387
  throw new CliPlayAdmissionUnsupportedError(error.statusCode);
388
388
  }
389
- if (error instanceof _chunkSQWET4SLjs.DeeplineError && ["NETWORK_TIMEOUT", "NETWORK_ERROR", "FETCH_FAILED"].includes(
389
+ if (error instanceof _chunkBBTKAASQjs.DeeplineError && ["NETWORK_TIMEOUT", "NETWORK_ERROR", "FETCH_FAILED"].includes(
390
390
  _nullishCoalesce(error.code, () => ( ""))
391
391
  ) || error instanceof TypeError || error instanceof Error && ["AbortError", "TimeoutError"].includes(error.name)) {
392
392
  const originalMessage = error instanceof Error ? error.message : "Transport failed";
393
- const failure = new (0, _chunkSQWET4SLjs.DeeplineError)(
393
+ const failure = new (0, _chunkBBTKAASQjs.DeeplineError)(
394
394
  workflowId ? `${originalMessage} Admission outcome is unknown for ${workflowId}. Inspect this run before retrying; reuse this workflowId for the same immutable request.` : `${originalMessage} Admission outcome is unknown. This server did not prove caller-owned recovery support; inspect existing runs before starting again.`,
395
- error instanceof _chunkSQWET4SLjs.DeeplineError ? error.statusCode : void 0,
396
- error instanceof _chunkSQWET4SLjs.DeeplineError ? error.code : "NETWORK_ERROR",
395
+ error instanceof _chunkBBTKAASQjs.DeeplineError ? error.statusCode : void 0,
396
+ error instanceof _chunkBBTKAASQjs.DeeplineError ? error.code : "NETWORK_ERROR",
397
397
  {
398
398
  ...workflowId ? { runId: workflowId, workflowId } : {},
399
399
  admissionState: "unknown",
@@ -409,7 +409,7 @@ async function submitPreparedPlayRunAdmission(http, submittedBody, workflowId, s
409
409
  throw error;
410
410
  }
411
411
  if (_optionalChain([options, 'optionalAccess', _29 => _29.callerIntentV2]) && !callerIntentV2Supported) {
412
- throw new (0, _chunkSQWET4SLjs.DeeplineError)(
412
+ throw new (0, _chunkBBTKAASQjs.DeeplineError)(
413
413
  "The versioned CLI Play admission response did not prove its contract. Inspect this run before submitting again.",
414
414
  void 0,
415
415
  "PLAY_RUN_ADMISSION_CONTRACT_UNKNOWN",
@@ -422,7 +422,7 @@ async function submitPreparedPlayRunAdmission(http, submittedBody, workflowId, s
422
422
  }
423
423
  const started = normalizePlayRunStart(response);
424
424
  if (_optionalChain([options, 'optionalAccess', _30 => _30.cliAdmission]) && (!started.workflowId || started.workflowId === "pending")) {
425
- throw new (0, _chunkSQWET4SLjs.DeeplineError)(
425
+ throw new (0, _chunkBBTKAASQjs.DeeplineError)(
426
426
  "Play admission returned no run id. Check recent runs before submitting again.",
427
427
  void 0,
428
428
  "PLAY_START_MISSING_RUN_ID"
@@ -480,11 +480,16 @@ function stringMetadata(metadata, key) {
480
480
  function fileInputBindingsFromPlaySchema(inputSchema) {
481
481
  const csvInput = schemaMetadata(inputSchema, "csvInput");
482
482
  if (!csvInput) return [];
483
- return [
484
- {
485
- inputPath: _nullishCoalesce(stringMetadata(csvInput, "inputField"), () => ( CSV_DATA_INPUT_KEY))
486
- }
483
+ const listed = _optionalChain([inputSchema, 'optionalAccess', _34 => _34.csvInputFields]);
484
+ const fields = [
485
+ _nullishCoalesce(stringMetadata(csvInput, "inputField"), () => ( CSV_DATA_INPUT_KEY)),
486
+ ...Array.isArray(listed) ? listed.filter(
487
+ (field) => typeof field === "string" && field.trim().length > 0
488
+ ) : []
487
489
  ];
490
+ return [...new Set(fields.map((field) => field.trim()))].map((inputPath) => ({
491
+ inputPath
492
+ }));
488
493
  }
489
494
  function fileInputBindingsFromStaticPipeline(staticPipeline) {
490
495
  if (!staticPipeline || typeof staticPipeline !== "object" || Array.isArray(staticPipeline)) {
@@ -572,10 +577,10 @@ function stagedUploadIdentity(logicalPath, contentHash) {
572
577
  return `${contentHash}:${logicalPath}`;
573
578
  }
574
579
  function isStagedUploadMintUnsupported(error) {
575
- return error instanceof _chunkSQWET4SLjs.DeeplineError && error.statusCode === 404;
580
+ return error instanceof _chunkBBTKAASQjs.DeeplineError && error.statusCode === 404;
576
581
  }
577
582
  function isStagedUploadDirectEgressDenied(error) {
578
- return error instanceof _chunkSQWET4SLjs.DeeplineError && error.code === "STAGED_FILE_UPLOAD_EGRESS_DENIED";
583
+ return error instanceof _chunkBBTKAASQjs.DeeplineError && error.code === "STAGED_FILE_UPLOAD_EGRESS_DENIED";
579
584
  }
580
585
  function formatMegabytes(bytes) {
581
586
  return `${(bytes / (1024 * 1024)).toFixed(1)} MB`;
@@ -605,8 +610,8 @@ async function uploadStagedFileToPresignedUrl(input) {
605
610
  return;
606
611
  }
607
612
  const text = await response.text().catch(() => "");
608
- const egressDenied = response.status === 403 && _optionalChain([response, 'access', _34 => _34.headers, 'access', _35 => _35.get, 'call', _36 => _36("x-deny-reason"), 'optionalAccess', _37 => _37.trim, 'call', _38 => _38(), 'access', _39 => _39.toLowerCase, 'call', _40 => _40()]) === "host_not_allowed";
609
- lastError = new (0, _chunkSQWET4SLjs.DeeplineError)(
613
+ const egressDenied = response.status === 403 && _optionalChain([response, 'access', _35 => _35.headers, 'access', _36 => _36.get, 'call', _37 => _37("x-deny-reason"), 'optionalAccess', _38 => _38.trim, 'call', _39 => _39(), 'access', _40 => _40.toLowerCase, 'call', _41 => _41()]) === "host_not_allowed";
614
+ lastError = new (0, _chunkBBTKAASQjs.DeeplineError)(
610
615
  `Direct storage upload of ${input.logicalPath} failed: ${response.status} ${text.slice(0, 200)}`,
611
616
  response.status,
612
617
  egressDenied ? "STAGED_FILE_UPLOAD_EGRESS_DENIED" : "STAGED_FILE_UPLOAD_FAILED",
@@ -616,7 +621,7 @@ async function uploadStagedFileToPresignedUrl(input) {
616
621
  break;
617
622
  }
618
623
  } catch (error) {
619
- lastError = error instanceof TypeError ? new (0, _chunkSQWET4SLjs.DeeplineError)(
624
+ lastError = error instanceof TypeError ? new (0, _chunkBBTKAASQjs.DeeplineError)(
620
625
  `Direct storage upload of ${input.logicalPath} could not reach the storage endpoint: ${error.message}`,
621
626
  void 0,
622
627
  "STAGED_FILE_UPLOAD_EGRESS_DENIED",
@@ -627,7 +632,7 @@ async function uploadStagedFileToPresignedUrl(input) {
627
632
  await sleep(250 * attempt);
628
633
  }
629
634
  }
630
- throw lastError instanceof Error ? lastError : new (0, _chunkSQWET4SLjs.DeeplineError)(
635
+ throw lastError instanceof Error ? lastError : new (0, _chunkBBTKAASQjs.DeeplineError)(
631
636
  `Direct storage upload of ${input.logicalPath} failed.`,
632
637
  void 0,
633
638
  "STAGED_FILE_UPLOAD_FAILED",
@@ -642,7 +647,7 @@ async function stagePlayFilesViaMultipart(http, files, reason = "mint-unsupporte
642
647
  for (const file of files) {
643
648
  if (file.bytes > STAGE_LEGACY_MULTIPART_MAX_BYTES) {
644
649
  const reasonMessage = reason === "direct-egress-denied" ? "direct storage is blocked by this environment's network egress policy" : "the connected Deepline server does not support direct-to-storage uploads";
645
- throw new (0, _chunkSQWET4SLjs.DeeplineError)(
650
+ throw new (0, _chunkBBTKAASQjs.DeeplineError)(
646
651
  `Cannot stage ${file.logicalPath} (${formatMegabytes(file.bytes)}): ${reasonMessage}, and this file exceeds the ~4.5MB request-body limit the legacy upload path is subject to.`,
647
652
  413,
648
653
  "STAGED_FILE_TOO_LARGE_FOR_LEGACY_UPLOAD",
@@ -716,7 +721,7 @@ async function stagePlayFiles(http, files) {
716
721
  stagedUploadIdentity(file.logicalPath, file.contentHash)
717
722
  );
718
723
  if (!upload) {
719
- throw new (0, _chunkSQWET4SLjs.DeeplineError)(
724
+ throw new (0, _chunkBBTKAASQjs.DeeplineError)(
720
725
  `The staging server did not return an upload target for ${file.logicalPath}.`,
721
726
  void 0,
722
727
  "STAGED_FILE_MINT_INCOMPLETE"
@@ -752,7 +757,7 @@ async function stagePlayFiles(http, files) {
752
757
  "direct-egress-denied"
753
758
  );
754
759
  if (!ref) {
755
- throw new (0, _chunkSQWET4SLjs.DeeplineError)(
760
+ throw new (0, _chunkBBTKAASQjs.DeeplineError)(
756
761
  `The staging server did not return an upload target for ${result.fallbackFile.logicalPath}.`,
757
762
  void 0,
758
763
  "STAGED_FILE_MINT_INCOMPLETE"
@@ -780,7 +785,7 @@ async function stageFileInputs(input) {
780
785
  if (localFiles.length === 0) {
781
786
  return { inputFile: null, packagedFiles: [] };
782
787
  }
783
- _optionalChain([input, 'access', _41 => _41.onStaging, 'optionalCall', _42 => _42(localFiles.length)]);
788
+ _optionalChain([input, 'access', _42 => _42.onStaging, 'optionalCall', _43 => _43(localFiles.length)]);
784
789
  const uploads = await Promise.all(
785
790
  localFiles.map(
786
791
  async ({ file }) => createStagedFileUpload(file.logicalPath, await file.read(), input.codec)
@@ -820,7 +825,7 @@ function createSessionPlayRunHttp(fetchImpl = (...args) => fetch(...args)) {
820
825
  } catch (e) {
821
826
  }
822
827
  if (!response.ok) {
823
- throw new (0, _chunkSQWET4SLjs.DeeplineError)(
828
+ throw new (0, _chunkBBTKAASQjs.DeeplineError)(
824
829
  _chunkXNYIZMNQjs.apiErrorMessage.call(void 0, parsed, response.status),
825
830
  response.status,
826
831
  _chunkXNYIZMNQjs.apiErrorCodeFromResponse.call(void 0, parsed),
@@ -835,7 +840,7 @@ function createSessionPlayRunHttp(fetchImpl = (...args) => fetch(...args)) {
835
840
  method: "POST",
836
841
  headers: { "content-type": "application/json", ...headers },
837
842
  body: JSON.stringify(body),
838
- ..._optionalChain([options, 'optionalAccess', _43 => _43.signal]) ? { signal: options.signal } : {}
843
+ ..._optionalChain([options, 'optionalAccess', _44 => _44.signal]) ? { signal: options.signal } : {}
839
844
  }),
840
845
  postFormData: (path, formData) => send(path, {
841
846
  method: "POST",