deepline 0.3.535 → 0.3.537

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 +22 -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-ZCTMB5RA.mjs → auth-4SUPGDIM.mjs} +7 -7
  51. package/dist/cli/auth-Y2K2ZYYA.js +43 -0
  52. package/dist/cli/{billing-OU2ZHL72.mjs → billing-5JUA3ZM3.mjs} +185 -24
  53. package/dist/cli/{billing-GVFKZQH3.js → billing-SQU726P7.js} +273 -112
  54. package/dist/cli/{chunk-T2N3B7IQ.js → chunk-2GJZLIKW.js} +8 -8
  55. package/dist/cli/{chunk-ZUVE63Y7.js → chunk-2Q7VXTMS.js} +2 -2
  56. package/dist/cli/{chunk-WAIBM6KX.mjs → chunk-37AZHCTP.mjs} +5 -5
  57. package/dist/cli/{chunk-D4MHCCIR.js → chunk-3PMCQ3LK.js} +33 -33
  58. package/dist/cli/{chunk-R4RG4FV5.mjs → chunk-4KWD3MX2.mjs} +13 -10
  59. package/dist/cli/{chunk-PI5R65OQ.js → chunk-5EOEJKSV.js} +1 -1
  60. package/dist/cli/{chunk-XSOTEVOB.js → chunk-6BBGUQJJ.js} +50 -141
  61. package/dist/cli/{chunk-OM732MGV.js → chunk-ALHKB3AE.js} +17 -17
  62. package/dist/cli/{chunk-6LHX33VN.js → chunk-AVQET3NR.js} +9 -6
  63. package/dist/cli/{chunk-W6T23EUC.mjs → chunk-AX2OAXDL.mjs} +1 -1
  64. package/dist/cli/{chunk-SQWET4SL.js → chunk-BBTKAASQ.js} +2 -1
  65. package/dist/cli/{chunk-G2DLG32W.mjs → chunk-BFHR7IC2.mjs} +40 -27
  66. package/dist/cli/{chunk-KWGXHPHL.js → chunk-BGXEMTIG.js} +523 -59
  67. package/dist/cli/{chunk-AUEUAPVS.mjs → chunk-BRRCWUOW.mjs} +1 -1
  68. package/dist/cli/{chunk-QYBAHYP4.mjs → chunk-C37VELBR.mjs} +7 -9
  69. package/dist/cli/{chunk-H6SWS5CG.mjs → chunk-C3XD2WHM.mjs} +2 -2
  70. package/dist/cli/{chunk-NRO3NTVO.js → chunk-CBV7AKWM.js} +5 -5
  71. package/dist/cli/{chunk-CIDATNTY.js → chunk-CFND2ACL.js} +16 -16
  72. package/dist/cli/{chunk-J75DANZY.mjs → chunk-CGDW2CRR.mjs} +2 -2
  73. package/dist/cli/{chunk-RFQWSH6I.js → chunk-CHIGEDAE.js} +3 -3
  74. package/dist/cli/{chunk-QNHHZ63P.mjs → chunk-CQBIO6HW.mjs} +1 -1
  75. package/dist/cli/{chunk-2KHUFWTK.js → chunk-CQDQNZGH.js} +42 -37
  76. package/dist/cli/{chunk-E3CLOVG5.mjs → chunk-CXTW7SRW.mjs} +50 -141
  77. package/dist/cli/{chunk-4NLRWKZB.js → chunk-D77W6Q67.js} +26 -26
  78. package/dist/cli/{chunk-JWWYLGUT.mjs → chunk-EEFSUCYP.mjs} +475 -11
  79. package/dist/cli/{chunk-STR5LXK4.mjs → chunk-FSIVF2SI.mjs} +1 -1
  80. package/dist/cli/{chunk-6TYRRNXY.mjs → chunk-GI3V4D7K.mjs} +2 -2
  81. package/dist/cli/{chunk-DFJODFMC.mjs → chunk-GPMS6OPX.mjs} +5 -5
  82. package/dist/cli/{chunk-5YAJGRWB.js → chunk-IPVRMYWT.js} +7 -7
  83. package/dist/cli/{chunk-DAPKLYST.js → chunk-IQOIT6E3.js} +41 -41
  84. package/dist/cli/{chunk-ZPGGW27Q.mjs → chunk-JL2OTMSG.mjs} +1 -0
  85. package/dist/cli/{chunk-FGN75ZN6.js → chunk-JMHYDDBQ.js} +390 -382
  86. package/dist/cli/{chunk-KA6ZERJL.js → chunk-JS2SBCWD.js} +6 -6
  87. package/dist/cli/{chunk-W5YJYU4G.mjs → chunk-K4WJ4BYO.mjs} +2 -2
  88. package/dist/cli/{chunk-LVISZFYO.mjs → chunk-KH27B2HJ.mjs} +2 -2
  89. package/dist/cli/{chunk-UUQ2OXMH.js → chunk-KULT6O5K.js} +18 -20
  90. package/dist/cli/{chunk-YFZLZNTH.mjs → chunk-L3JVGNAT.mjs} +4 -4
  91. package/dist/cli/{chunk-HYBZWSSH.js → chunk-L6QAIZNZ.js} +44 -44
  92. package/dist/cli/{chunk-TCVCFZP6.mjs → chunk-NU7B5X6J.mjs} +4 -1
  93. package/dist/cli/{chunk-7PXP2FQK.js → chunk-NXGLJGPB.js} +2 -2
  94. package/dist/cli/{chunk-BNH4Y35W.mjs → chunk-OLH2PHMC.mjs} +2 -2
  95. package/dist/cli/{chunk-GESIFFQX.mjs → chunk-OVX3Q5Q3.mjs} +1 -1
  96. package/dist/cli/{chunk-2D6SWQTK.js → chunk-PJ4ZGZAN.js} +13 -13
  97. package/dist/cli/{chunk-HWPOXCCK.js → chunk-PU42VOBI.js} +8 -8
  98. package/dist/cli/{chunk-RKY4LBX3.mjs → chunk-QDBGPRR2.mjs} +3 -3
  99. package/dist/cli/{chunk-KOZBZPRM.js → chunk-QPDLG7DQ.js} +55 -55
  100. package/dist/cli/{chunk-DWPY6ZID.mjs → chunk-R7JYG6XO.mjs} +1 -1
  101. package/dist/cli/{chunk-K76AEBFY.mjs → chunk-RMVZTBI5.mjs} +4 -4
  102. package/dist/cli/{chunk-IF75RD6U.js → chunk-U2LVWCTD.js} +18 -6
  103. package/dist/cli/{chunk-WNNA4L6Z.js → chunk-UGA5KI4A.js} +22 -22
  104. package/dist/cli/{chunk-ZS2WHWWL.js → chunk-UNDLNT3V.js} +1 -1
  105. package/dist/cli/{chunk-7CWSAEYS.mjs → chunk-V5IIBG2E.mjs} +1 -1
  106. package/dist/cli/{chunk-BF65LB7X.mjs → chunk-VP2K5B3R.mjs} +4 -4
  107. package/dist/cli/{chunk-DYIWDUY4.js → chunk-VRYX2BR4.js} +316 -303
  108. package/dist/cli/{chunk-R2KKEHJN.mjs → chunk-W3J3LT22.mjs} +5 -5
  109. package/dist/cli/{chunk-PHLNYBAA.js → chunk-WBFOV5HT.js} +5 -5
  110. package/dist/cli/{chunk-5EKNDNFQ.js → chunk-WBTYWJLN.js} +2 -2
  111. package/dist/cli/{chunk-C374C22Y.js → chunk-WOQO3GV4.js} +14 -11
  112. package/dist/cli/{chunk-K3IPGMGP.js → chunk-XDS26J7Z.js} +17 -19
  113. package/dist/cli/{chunk-JQQG4QL4.mjs → chunk-Y6AMMXWS.mjs} +3 -3
  114. package/dist/cli/{chunk-7R5DAANG.mjs → chunk-Z2PPB3IO.mjs} +1 -1
  115. package/dist/cli/{chunk-FKD3KL5Q.mjs → chunk-Z2XA6YU4.mjs} +10 -5
  116. package/dist/cli/{chunk-243O3FH5.js → chunk-ZFSB7GXF.js} +5 -5
  117. package/dist/cli/{chunk-MI6ZP7XI.mjs → chunk-ZG7BOECV.mjs} +18 -6
  118. package/dist/cli/{chunk-FZKPPB5P.mjs → chunk-ZHPSJ3LJ.mjs} +85 -77
  119. package/dist/cli/{chunk-K53NKWZO.mjs → chunk-ZUAMXZXC.mjs} +13 -15
  120. package/dist/cli/command-docs.js +2 -2
  121. package/dist/cli/command-docs.mjs +1 -1
  122. package/dist/cli/{csv-CLPVMIRF.mjs → csv-HZP6QMG7.mjs} +6 -6
  123. package/dist/cli/{csv-CD55KEIO.js → csv-JITYN27L.js} +15 -15
  124. package/dist/cli/{db-MQKLDAEO.js → db-FYSRB7O4.js} +36 -36
  125. package/dist/cli/{db-AU4SMWUN.mjs → db-QRIRTOMM.mjs} +9 -9
  126. package/dist/cli/describe-LSOHOLFI.js +49 -0
  127. package/dist/cli/describe-REXJVJC3.mjs +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-TFIJPUX7.mjs → executions-53KJAFOW.mjs} +9 -9
  133. package/dist/cli/{executions-77GOLWRM.js → executions-BSTF4DDS.js} +11 -11
  134. package/dist/cli/{feedback-OV5YAL3A.js → feedback-6MW3QOXX.js} +16 -16
  135. package/dist/cli/{feedback-2WRSZ5WL.mjs → feedback-CWUJJF3J.mjs} +8 -8
  136. package/dist/cli/{git-VNS4ATLZ.mjs → git-CKVZTJFS.mjs} +7 -7
  137. package/dist/cli/git-S7SWUZ3T.js +25 -0
  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-QBL4PNGB.js} +11 -11
  141. package/dist/cli/{legacy-noops-C732QDCY.mjs → legacy-noops-USTBRFRX.mjs} +8 -8
  142. package/dist/cli/{monitors-2LYEFXOU.mjs → monitors-6UCG5D7W.mjs} +19 -16
  143. package/dist/cli/{monitors-5IUMHH3E.js → monitors-VCR6SUZD.js} +125 -122
  144. package/dist/cli/{org-G4YGZPHS.mjs → org-GSRBOJVO.mjs} +9 -9
  145. package/dist/cli/{org-ADW2EVAC.js → org-HPILTEG4.js} +89 -89
  146. package/dist/cli/{play-7GQ56C2D.mjs → play-QRTYQNG4.mjs} +123 -76
  147. package/dist/cli/{play-EHSOSSHT.js → play-TK7WOP5H.js} +641 -594
  148. package/dist/cli/{providers-PWCF6OOO.js → providers-HEXNJ5QC.js} +12 -12
  149. package/dist/cli/{providers-WL3YTCSV.mjs → providers-OAQJWVBS.mjs} +9 -9
  150. package/dist/cli/{quickstart-323XOPGI.mjs → quickstart-FFVHTPSP.mjs} +6 -6
  151. package/dist/cli/{quickstart-ZKI5MURA.js → quickstart-PYZTFXZX.js} +8 -8
  152. package/dist/cli/{run-XZPWA6JS.js → run-4DWJXJRO.js} +50 -53
  153. package/dist/cli/{run-ZCNZU3K2.mjs → run-HLN6YYZH.mjs} +31 -34
  154. package/dist/cli/search-WERQBC6V.js +32 -0
  155. package/dist/cli/{search-CVLVSFMJ.mjs → search-ZHRCXGEL.mjs} +10 -11
  156. package/dist/cli/{search-output-7HRSSRBS.js → search-output-2KY6PFDH.js} +8 -8
  157. package/dist/cli/{search-output-6PY6RN2R.mjs → search-output-N7QXACVK.mjs} +6 -6
  158. package/dist/cli/{secrets-6S2ZWDIM.mjs → secrets-FKMWBLHU.mjs} +9 -9
  159. package/dist/cli/{secrets-IYD5VKY4.js → secrets-WXQ7XO5C.js} +18 -18
  160. package/dist/cli/{sessions-GVEX5TUJ.mjs → sessions-3YDTEDA5.mjs} +8 -8
  161. package/dist/cli/sessions-LXQ4Q6BS.js +22 -0
  162. package/dist/cli/{settings-CANK4HJQ.js → settings-67TWLQ6E.js} +88 -89
  163. package/dist/cli/{settings-BN5MJZ3C.mjs → settings-JTPASUZN.mjs} +15 -16
  164. package/dist/cli/{setup-YSGKGLSJ.js → setup-KUERQJUX.js} +51 -52
  165. package/dist/cli/{setup-JNMSCCU4.mjs → setup-VYNGXUJ6.mjs} +11 -12
  166. package/dist/cli/skills-EFRLHY3F.js +36 -0
  167. package/dist/cli/{skills-QCQN2UM2.mjs → skills-KI4KYHH6.mjs} +9 -10
  168. package/dist/cli/tools-C3EIGFFP.js +56 -0
  169. package/dist/cli/{tools-CDPOID7V.mjs → tools-UQDJS2RS.mjs} +20 -21
  170. package/dist/cli/{update-D3ZERUQ3.mjs → update-7FQQUBOD.mjs} +11 -12
  171. package/dist/cli/update-KCY72RXH.js +34 -0
  172. package/dist/cli/{views-RDZRWQBQ.mjs → views-JAM4MNNV.mjs} +54 -10
  173. package/dist/cli/{views-4NV2KQKA.js → views-MJK7JGZG.js} +66 -22
  174. package/dist/cli/{workflow-RABJCAZC.js → workflow-AQPRIWQX.js} +20 -20
  175. package/dist/cli/{workflow-2CG3TVCG.mjs → workflow-TQRV5FGO.mjs} +10 -10
  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
@@ -151,10 +151,10 @@ export const PLAY_AUTHORING_CONTRACT_CHANGELOG =
151
151
  */
152
152
  export const PLAY_AUTHORING_RUNTIME_CAPABILITIES = [
153
153
  {
154
- capability: 'Hosted pages',
155
- surface: '`deepline.pages.write`',
154
+ capability: 'Views',
155
+ surface: '`deepline.views.list`',
156
156
  contract:
157
- 'A write replaces the whole page and must set `public`. The first write sets who can see the page. A later write can make a public page private but never a private page public; that takes `deepline pages set-public <name>`, and `deepline plays check` warns when code asks for it. A completed write is safe to repeat.',
157
+ "Lists this Play's views in its workspace, most recently changed first. Each has `url`, which opens the view at its latest run, and `runUrl`, which opens it at the run that asked; send `runUrl` from the run so the link shows its result. `access` says who can open them. The read is fresh on every call and is not a durable receipt.",
158
158
  },
159
159
  {
160
160
  capability: 'Durable external I/O',
@@ -216,6 +216,7 @@ export const PLAY_AUTHORING_CONTRACT_ISSUE_CODES = [
216
216
  'play_authoring_slack_action_wait_result_ignored',
217
217
  'play_authoring_slack_action_wait_unbounded_loop',
218
218
  'play_authoring_tool_deprecated',
219
+ 'play_authoring_prebuilt_deprecated',
219
220
  'play_authoring_tool_response_raw_deprecated',
220
221
  'play_authoring_replay_unsafe_nondeterminism',
221
222
  'play_authoring_row_sleep_unsupported',
@@ -1536,7 +1537,7 @@ export const PLAY_AUTHORING_DOCUMENTATION = {
1536
1537
  },
1537
1538
  runId: {
1538
1539
  semantics:
1539
- 'deepline.run.rootId is the submitted run: it is stable while Deepline retries or resumes that run, and a separately submitted run receives a new one. deepline.run.id names the Play invocation; it equals rootId in a submitted run, but inside an inline deepline.runPlay child it is the child\'s composition id, which repeats in every parent run that makes the same call with the same input.',
1540
+ "deepline.run.rootId is the submitted run: it is stable while Deepline retries or resumes that run, and a separately submitted run receives a new one. deepline.run.id names the Play invocation; it equals rootId in a submitted run, but inside an inline deepline.runPlay child it is the child's composition id, which repeats in every parent run that makes the same call with the same input.",
1540
1541
  use: 'Build external idempotency keys from deepline.run.rootId plus whatever names the operation, such as a batch index or record id. It is correct in a submitted run and inside an inline child.',
1541
1542
  },
1542
1543
  staticCallKeys: {
@@ -1557,27 +1558,30 @@ export const PLAY_AUTHORING_DOCUMENTATION = {
1557
1558
  export const PLAY_AUTHORING_STATIC_FETCH_KEY_HINT =
1558
1559
  `${PLAY_AUTHORING_DOCUMENTATION.staticCallKeys.workaround} Do not compute the key.` as const;
1559
1560
 
1560
- /** The complete customer-authored `ctx` Interface shared by every Adapter. */
1561
- export type PlayAuthoringPageWriteOptions = {
1562
- /**
1563
- * Who can see the page. Taken from the first write. A later write cannot make
1564
- * a private page public: run `deepline pages set-public <name>` for that.
1565
- */
1566
- public: boolean;
1567
- /** Replaces the page's whole content. A non-string is stored as JSON. */
1568
- content: unknown;
1569
- /** Defaults to text, JSON, or binary according to `content`. */
1570
- contentType?: string;
1571
- description?: string;
1572
- };
1561
+ /**
1562
+ * Hosted pages (`deepline.pages.write`) were removed before launch. `plays
1563
+ * check` refuses code that calls it, and Plays bundled earlier fail with this
1564
+ * message when they reach the call.
1565
+ */
1566
+ export function hostedPagesRemovedMessage(name?: unknown): string {
1567
+ const call =
1568
+ typeof name === 'string' && name
1569
+ ? `deepline.pages.write("${name}")`
1570
+ : 'deepline.pages.write';
1571
+ return `${call} is no longer supported: hosted pages were removed. Remove the call from this Play.`;
1572
+ }
1573
1573
 
1574
- export type PlayAuthoringPageWriteResult = {
1574
+ /** The complete customer-authored `ctx` Interface shared by every Adapter. */
1575
+ /** A view of the running Play, as `deepline.views.list()` returns it. */
1576
+ export type PlayAuthoringViewLink = {
1577
+ id: string;
1575
1578
  name: string;
1579
+ /** Opens the view at its latest run. */
1576
1580
  url: string;
1577
- /** Who can actually see the page after this write. */
1578
- public: boolean;
1579
- created: boolean;
1580
- warnings: string[];
1581
+ /** Opens the view at this run, for a link sent from the run itself. */
1582
+ runUrl: string;
1583
+ /** Who can open the links: workspace members, or anyone. */
1584
+ access: 'workspace' | 'public';
1581
1585
  };
1582
1586
 
1583
1587
  export interface PlayAuthoringRuntimeContext<
@@ -1592,15 +1596,14 @@ export interface PlayAuthoringRuntimeContext<
1592
1596
  entitlements(): Promise<BillingEntitlements>;
1593
1597
  };
1594
1598
 
1595
- pages: {
1599
+ views: {
1596
1600
  /**
1597
- * Replace a named page in this workspace and return its URL.
1598
- * @sdkReference runtime 181 deepline.pages.write(name, options)
1601
+ * List this Play's views in its workspace, most recently changed first, each with a link
1602
+ * to the view and a link to it at this run. Fresh on every call; not a
1603
+ * durable receipt.
1604
+ * @sdkReference runtime 182 deepline.views.list()
1599
1605
  */
1600
- write(
1601
- name: string,
1602
- options: PlayAuthoringPageWriteOptions,
1603
- ): Promise<PlayAuthoringPageWriteResult>;
1606
+ list(): Promise<PlayAuthoringViewLink[]>;
1604
1607
  };
1605
1608
 
1606
1609
  /**
@@ -2396,7 +2399,9 @@ export const PLAY_AUTHORING_FIELD_REGISTRY = {
2396
2399
  'ctx.tools.execute.retry': {
2397
2400
  schema: Type.Object(
2398
2401
  {
2399
- maximumAttempts: Type.Optional(Type.Integer({ minimum: 1, maximum: 65 })),
2402
+ maximumAttempts: Type.Optional(
2403
+ Type.Integer({ minimum: 1, maximum: 65 }),
2404
+ ),
2400
2405
  initialIntervalMs: Type.Optional(
2401
2406
  Type.Integer({ minimum: 1_000, maximum: 86_400_000 }),
2402
2407
  ),
@@ -2431,7 +2436,7 @@ export const PLAY_AUTHORING_FIELD_REGISTRY = {
2431
2436
  resolution: 'runtime-allowed',
2432
2437
  issueCode: 'play_authoring_durable_policy_invalid',
2433
2438
  description:
2434
- "Optional retry policy for this call, like a durable-execution activity retry policy. Omitted fields take the live Durable retry policy for the failure's class. maximumAttempts counts every request the provider receives for the call, the first included, in-call resends and durable retries alike (1 to 65); initialIntervalMs, backoffCoefficient and maximumIntervalMs set the durable wait before each retry (1 s to 24 h; the coefficient 1 to 10); nonRetryable lists failure classes that reach the Play after the first attempt. The Play sees the error only after the retries are spent. Where the Play handles the failure itself, such as a waterfall leg that falls back, set a small maximumAttempts (for example 3) so the call never waits on a durable retry. Setting retry (an empty object takes the class defaults) is what makes a call retry durably for now; a call without it keeps its earlier behaviour.",
2439
+ "Optional retry policy for this call, like a durable-execution activity retry policy. Omitted fields take the live Durable retry policy for the failure's class. maximumAttempts counts every request the provider receives for the call, the first included, in-call resends and durable retries alike (1 to 65); initialIntervalMs, backoffCoefficient and maximumIntervalMs set the durable wait before each retry (1 s to 24 h; the coefficient 1 to 10); nonRetryable lists failure classes that reach the Play after the first attempt. The Play sees the error only after the retries are spent. Where the Play handles the failure itself, such as a waterfall leg that falls back, set a small maximumAttempts (for example 3) so the call never waits on a durable retry.",
2435
2440
  errorMessage:
2436
2441
  'retry must be an object with maximumAttempts (1-65), initialIntervalMs and maximumIntervalMs (1000-86400000 ms), backoffCoefficient (1-10) and nonRetryable (failure classes), and nothing else.',
2437
2442
  },
@@ -3626,7 +3631,7 @@ export const PLAY_AUTHORING_CLOUD_TYPE_DECLARATIONS = [
3626
3631
  "export type BillingEntitlements = { org_id: string; as_of: number; plan: { sku: string; name: string; catalog_revision: string | null; included_credits: number; interval: 'month' | 'year' | null } | null; benefits: { quickenrichUnlimited?: { status: 'active' | 'past_due'; value: BillingBenefitValues['quickenrichUnlimited']; expiresAt?: number }; peopleSearch?: { status: 'active'; value: BillingBenefitValues['peopleSearch']; expiresAt?: number; usage: { month: string; periodStartsAt?: number; resetsAt?: number; resetsOn?: 'calendar_month' | 'billing_cycle'; limit: number; consumed: number; remaining: number } }; includedStorage?: { status: 'active'; usage: { limit: number; consumed: number; remaining: number; measuredDay: string; overageCharged: boolean } } }; effective_limits: { quickenrichUnlimited?: { baseline: number; effective: number; source: 'plan' | 'override'; override_expires_at?: number } } };",
3627
3632
  'export interface DeeplinePlayRuntimeContext {',
3628
3633
  ' billing: { entitlements(): Promise<BillingEntitlements> };',
3629
- ' pages: { write(name: string, options: { public: boolean; content: unknown; contentType?: string; description?: string }): Promise<{ name: string; url: string; public: boolean; created: boolean; warnings: string[] }> };',
3634
+ " views: { list(): Promise<Array<{ id: string; name: string; url: string; runUrl: string; access: 'workspace' | 'public' }>> };",
3630
3635
  ' csv<T = Record<string, unknown>>(path: string | CsvInput<T & object>, options?: CsvOptions): Promise<PlayDataset<T>>;',
3631
3636
  ' dataset<TSource extends PlayDatasetInput<object>>(key: string, items: TSource): DatasetBuilder<PlayDatasetRow<TSource> & object, PlayDatasetRow<TSource> & object>;',
3632
3637
  ' map<TSource extends PlayDatasetInput<object>>(key: string, items: TSource, options?: DatasetDefinitionOptions<PlayDatasetRow<TSource> & object>): never;',
@@ -97,9 +97,21 @@ function csvRowDataKeys(
97
97
  ? Object.keys(rowSchema.properties)
98
98
  : [];
99
99
  const candidates = rowFields.length > 0 ? rowFields : Object.keys(properties);
100
+ // A Play's other `CsvInput` fields are files of their own, not row data.
101
+ const csvFiles = new Set(
102
+ Array.isArray(schema.csvInputFields)
103
+ ? schema.csvInputFields.filter(
104
+ (field): field is string => typeof field === 'string',
105
+ )
106
+ : [],
107
+ );
100
108
  return new Set(
101
109
  candidates.filter(
102
- (key) => key in properties && key !== csvKey && !controls.has(key),
110
+ (key) =>
111
+ key in properties &&
112
+ key !== csvKey &&
113
+ !controls.has(key) &&
114
+ !csvFiles.has(key),
103
115
  ),
104
116
  );
105
117
  }
@@ -129,6 +129,65 @@ function isRuntimeInputExpression(node: ts.Expression): boolean {
129
129
  return referencesInputIdentifier(node);
130
130
  }
131
131
 
132
+ function containsStringLiteral(node: ts.Node): boolean {
133
+ return (
134
+ ts.isStringLiteralLike(node) ||
135
+ ts.isTemplateExpression(node) ||
136
+ node.getChildren().some(containsStringLiteral)
137
+ );
138
+ }
139
+
140
+ /**
141
+ * Variable names the file initializes from an expression holding a string
142
+ * literal (`'a.csv'`, `('a.csv')`, `'a.csv' as const`, `DIR + '/a.csv'`),
143
+ * anywhere, in any scope.
144
+ */
145
+ function collectStringLiteralBindings(
146
+ sourceFile: ts.SourceFile,
147
+ ): ReadonlySet<string> {
148
+ const names = new Set<string>();
149
+ const visit = (node: ts.Node): void => {
150
+ if (
151
+ ts.isVariableDeclaration(node) &&
152
+ ts.isIdentifier(node.name) &&
153
+ node.initializer &&
154
+ containsStringLiteral(node.initializer)
155
+ ) {
156
+ names.add(node.name.text);
157
+ }
158
+ ts.forEachChild(node, visit);
159
+ };
160
+ visit(sourceFile);
161
+ return names;
162
+ }
163
+
164
+ /**
165
+ * A plain variable (`csv`, `csv!`, `path as CsvInput<Row>`) holds a runtime
166
+ * value, such as a destructured `CsvInput` field or a helper's parameter,
167
+ * unless the file binds a string literal to that name. Then it is a local path
168
+ * this pass cannot follow, and stays an error.
169
+ */
170
+ function isRuntimeVariableExpression(
171
+ node: ts.Expression,
172
+ constants: ConstMap,
173
+ stringLiteralBindings: ReadonlySet<string>,
174
+ ): boolean {
175
+ let value = node;
176
+ while (
177
+ ts.isParenthesizedExpression(value) ||
178
+ ts.isNonNullExpression(value) ||
179
+ ts.isAsExpression(value) ||
180
+ ts.isSatisfiesExpression(value)
181
+ ) {
182
+ value = value.expression;
183
+ }
184
+ return (
185
+ ts.isIdentifier(value) &&
186
+ !constants.has(value.text) &&
187
+ !stringLiteralBindings.has(value.text)
188
+ );
189
+ }
190
+
132
191
  function resolveStringExpression(
133
192
  node: ts.Expression,
134
193
  constants: ConstMap,
@@ -290,6 +349,7 @@ export async function discoverPackagedLocalFiles(
290
349
  ts.ScriptKind.TS,
291
350
  );
292
351
  const constants = collectTopLevelStringConstants(sourceFile);
352
+ const stringLiteralBindings = collectStringLiteralBindings(sourceFile);
293
353
  const runtimeNames = playRuntimeNames(sourceCode);
294
354
  const childVisits: Promise<void>[] = [];
295
355
 
@@ -302,7 +362,14 @@ export async function discoverPackagedLocalFiles(
302
362
  message:
303
363
  'ctx.csv() requires a file path string or input reference.',
304
364
  });
305
- } else if (!isRuntimeInputExpression(argument)) {
365
+ } else if (
366
+ !isRuntimeInputExpression(argument) &&
367
+ !isRuntimeVariableExpression(
368
+ argument,
369
+ constants,
370
+ stringLiteralBindings,
371
+ )
372
+ ) {
306
373
  const resolvedPath = resolveStringExpression(argument, constants);
307
374
  if (resolvedPath == null) {
308
375
  unresolved.push({
@@ -14,7 +14,10 @@ import {
14
14
  normalizeProductNotificationEmailList,
15
15
  productNotificationValuesEqual,
16
16
  } from './configuration';
17
- import { PRODUCT_NOTIFICATION_SHADOW_TYPES } from './catalog';
17
+ import {
18
+ PRODUCT_NOTIFICATION_SHADOW_TYPES,
19
+ PRODUCT_NOTIFICATION_TYPE_CATALOG,
20
+ } from './catalog';
18
21
  export {
19
22
  createProductNotificationRule,
20
23
  type ProductNotificationPlayFailureSettings as PlayFailureOptions,
@@ -327,6 +330,19 @@ export function buildProductNotificationGroupOperations(
327
330
  continue;
328
331
  // Older editors omit this rule. Its single-rule toggle sends an explicit setting.
329
332
  if (rule.ruleKey === INCLUDED_ALLOWANCE_RULE_KEY) continue;
333
+ // In a customized group, a default rule with no workspace row arrived
334
+ // after the group's last save, and a draft loaded before that omits it.
335
+ // That is not the workspace removing it: the editor turns a single-rule
336
+ // type off with `enabled: false`. Only a type that allows several rules
337
+ // is removed by omission.
338
+ if (
339
+ savedGroup?.configMode === 'replace_default' &&
340
+ rule.source === 'default' &&
341
+ !PRODUCT_NOTIFICATION_TYPE_CATALOG.some(
342
+ (type) => type.id === rule.notificationType && type.allowMultiple,
343
+ )
344
+ )
345
+ continue;
330
346
  if (
331
347
  rule.configMode === 'default' ||
332
348
  rule.configMode === 'replace_default'
@@ -459,6 +475,46 @@ export function buildProductNotificationGroupOperations(
459
475
  });
460
476
  }
461
477
  }
478
+ // Saving a customized group is a snapshot: a rule that arrived since the
479
+ // last save, and that the draft shows, gets a row holding the value shown,
480
+ // so a later change to the group (switching it back on, say) cannot flip
481
+ // it. A rule the draft never showed stays inherited, so replaying the same
482
+ // older draft after its save stays a no-op.
483
+ if (savedGroup?.configMode === 'replace_default' && operations.length > 0) {
484
+ for (const saved of savedRules) {
485
+ const rule = draft.rules.find(
486
+ (candidate) => candidate.ruleKey === saved.ruleKey,
487
+ );
488
+ if (
489
+ !rule ||
490
+ saved.source !== 'default' ||
491
+ operations.some(
492
+ (operation) =>
493
+ (operation.kind === 'put_rule' &&
494
+ operation.rule.ruleKey === saved.ruleKey) ||
495
+ (operation.kind === 'remove_rule' &&
496
+ operation.ruleKey === saved.ruleKey),
497
+ )
498
+ )
499
+ continue;
500
+ operations.push({
501
+ kind: 'put_rule',
502
+ rule: {
503
+ ruleKey: rule.ruleKey,
504
+ groupKey: rule.groupKey,
505
+ enabled: rule.enabled,
506
+ notificationType: rule.notificationType,
507
+ eventName: rule.eventName,
508
+ eventFilter: rule.eventFilter,
509
+ trigger: rule.trigger,
510
+ repeatMode: rule.repeatMode,
511
+ conditionGeneration: rule.conditionGeneration,
512
+ configMode: 'replace_default',
513
+ defaultKey: rule.ruleKey,
514
+ },
515
+ });
516
+ }
517
+ }
462
518
  return operations;
463
519
  }
464
520
 
@@ -418,11 +418,28 @@ export function resolveEffectiveProductNotificationConfiguration(input: {
418
418
  const ruleOverrides = new Map(
419
419
  input.rules.map((rule) => [rule.ruleKey, rule]),
420
420
  );
421
+ const replacedDefaultGroups = input.groups.filter(
422
+ (group) =>
423
+ group.configMode === 'replace_default' && group.groupKey !== 'shadow',
424
+ );
421
425
  const replacedDefaultGroupKeys = new Set(
422
- input.groups
426
+ replacedDefaultGroups.map((group) => group.groupKey),
427
+ );
428
+ // A customized group saved a row for every rule it showed, and removing one
429
+ // leaves a `disable_default` row. So a default rule with no row there was
430
+ // added after the save: it reaches the group, off when the workspace has
431
+ // switched the group, or every rule it saved there, off.
432
+ const customizedGroupsInheritingOff = new Set(
433
+ replacedDefaultGroups
423
434
  .filter(
424
435
  (group) =>
425
- group.configMode === 'replace_default' && group.groupKey !== 'shadow',
436
+ !group.enabled ||
437
+ input.rules.every(
438
+ (rule) =>
439
+ rule.groupKey !== group.groupKey ||
440
+ !rule.enabled ||
441
+ rule.configMode === 'disable_default',
442
+ ),
426
443
  )
427
444
  .map((group) => group.groupKey),
428
445
  );
@@ -543,19 +560,15 @@ export function resolveEffectiveProductNotificationConfiguration(input: {
543
560
  ProductNotificationWorkspaceRule,
544
561
  EffectiveProductNotificationRule
545
562
  >({
546
- defaults: input.policy.rules.filter(
547
- (rule) =>
548
- // An existing group snapshot predates this newly added default.
549
- rule.ruleKey === INCLUDED_ALLOWANCE_RULE_KEY ||
550
- !replacedDefaultGroupKeys.has(rule.groupKey) ||
551
- ruleOverrides.has(rule.ruleKey),
552
- ),
563
+ defaults: input.policy.rules,
553
564
  overrides: input.rules,
554
565
  keyName: 'ruleKey',
555
566
  label: 'rule',
556
567
  defaultVersion: input.policy.version,
557
568
  fromDefault: (value, version) => ({
558
569
  ...withoutLegacyRuleEmission(value),
570
+ enabled:
571
+ value.enabled && !customizedGroupsInheritingOff.has(value.groupKey),
559
572
  repeatMode: normalizeProductNotificationRepeatMode(value.repeatMode),
560
573
  conditionGeneration: normalizeProductNotificationConditionGeneration(
561
574
  value.conditionGeneration,
@@ -14,14 +14,14 @@ import {
14
14
  reportSetupCompleted,
15
15
  resolvePendingAuthClaimForResume,
16
16
  statusBannerLine
17
- } from "./chunk-BF65LB7X.mjs";
18
- import "./chunk-JWWYLGUT.mjs";
19
- import "./chunk-W5YJYU4G.mjs";
20
- import "./chunk-RKY4LBX3.mjs";
21
- import "./chunk-QNHHZ63P.mjs";
17
+ } from "./chunk-VP2K5B3R.mjs";
18
+ import "./chunk-EEFSUCYP.mjs";
19
+ import "./chunk-K4WJ4BYO.mjs";
20
+ import "./chunk-QDBGPRR2.mjs";
21
+ import "./chunk-CQBIO6HW.mjs";
22
22
  import "./chunk-DLIRSHV6.mjs";
23
- import "./chunk-ZPGGW27Q.mjs";
24
- import "./chunk-7CWSAEYS.mjs";
23
+ import "./chunk-JL2OTMSG.mjs";
24
+ import "./chunk-V5IIBG2E.mjs";
25
25
  import "./chunk-WZYKRD7T.mjs";
26
26
  import "./chunk-KRD6H754.mjs";
27
27
  export {
@@ -0,0 +1,43 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
+
3
+
4
+
5
+
6
+
7
+
8
+
9
+
10
+
11
+
12
+
13
+
14
+
15
+
16
+
17
+ var _chunkQPDLG7DQjs = require('./chunk-QPDLG7DQ.js');
18
+ require('./chunk-BGXEMTIG.js');
19
+ require('./chunk-PU42VOBI.js');
20
+ require('./chunk-3PMCQ3LK.js');
21
+ require('./chunk-2GJZLIKW.js');
22
+ require('./chunk-XNYIZMNQ.js');
23
+ require('./chunk-BBTKAASQ.js');
24
+ require('./chunk-5EOEJKSV.js');
25
+ require('./chunk-OG64RBAC.js');
26
+ require('./chunk-COGTRVWW.js');
27
+
28
+
29
+
30
+
31
+
32
+
33
+
34
+
35
+
36
+
37
+
38
+
39
+
40
+
41
+
42
+
43
+ exports.EXIT_WORKSPACE_MISMATCH = _chunkQPDLG7DQjs.EXIT_WORKSPACE_MISMATCH; exports.authStatusLine = _chunkQPDLG7DQjs.authStatusLine; exports.clearPendingClaim = _chunkQPDLG7DQjs.clearPendingClaim; exports.clearSatisfiedPendingClaim = _chunkQPDLG7DQjs.clearSatisfiedPendingClaim; exports.handleRegister = _chunkQPDLG7DQjs.handleRegister; exports.handleStatus = _chunkQPDLG7DQjs.handleStatus; exports.handleWait = _chunkQPDLG7DQjs.handleWait; exports.httpJson = _chunkQPDLG7DQjs.httpJson; exports.readPendingAuthClaim = _chunkQPDLG7DQjs.readPendingAuthClaim; exports.readStatusBanner = _chunkQPDLG7DQjs.readStatusBanner; exports.registerAuthCommands = _chunkQPDLG7DQjs.registerAuthCommands; exports.reportApprovalLinkShown = _chunkQPDLG7DQjs.reportApprovalLinkShown; exports.reportSetupCompleted = _chunkQPDLG7DQjs.reportSetupCompleted; exports.resolvePendingAuthClaimForResume = _chunkQPDLG7DQjs.resolvePendingAuthClaimForResume; exports.statusBannerLine = _chunkQPDLG7DQjs.statusBannerLine;