deepline 0.3.461 → 0.3.463

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 (297) hide show
  1. package/dist/bundling-sources/sdk/src/client-core.ts +7593 -0
  2. package/dist/bundling-sources/sdk/src/client.ts +8 -7366
  3. package/dist/bundling-sources/sdk/src/http-core.ts +1239 -0
  4. package/dist/bundling-sources/sdk/src/http.ts +6 -1231
  5. package/dist/bundling-sources/sdk/src/index.ts +4 -1
  6. package/dist/bundling-sources/sdk/src/play.ts +5 -5
  7. package/dist/bundling-sources/sdk/src/plays/client-core.ts +437 -0
  8. package/dist/bundling-sources/sdk/src/plays/client.ts +4 -421
  9. package/dist/bundling-sources/sdk/src/plays/input-example.ts +3 -4
  10. package/dist/bundling-sources/sdk/src/plays/play-description.ts +1 -1
  11. package/dist/bundling-sources/sdk/src/plays/run-request.ts +1 -1
  12. package/dist/bundling-sources/sdk/src/release.ts +1 -1
  13. package/dist/bundling-sources/sdk/src/server.ts +43 -0
  14. package/dist/bundling-sources/sdk/src/types.ts +15 -5
  15. package/dist/bundling-sources/shared_libs/integration-contracts/billing-entitlements.ts +15 -0
  16. package/dist/bundling-sources/shared_libs/monitors/billing/tamradar.ts +17 -17
  17. package/dist/bundling-sources/shared_libs/monitors/callback-security.ts +0 -307
  18. package/dist/bundling-sources/shared_libs/monitors/http-error-response.ts +3 -0
  19. package/dist/bundling-sources/shared_libs/monitors/lifecycle-notifications.ts +3 -2
  20. package/dist/bundling-sources/shared_libs/monitors/package.json +2 -0
  21. package/dist/bundling-sources/shared_libs/monitors/provider-callback-verification.ts +34 -0
  22. package/dist/bundling-sources/shared_libs/monitors/provider-monitor-batch-operation.ts +61 -0
  23. package/dist/bundling-sources/shared_libs/monitors/provider-monitor-upstream-identity.ts +122 -2
  24. package/dist/bundling-sources/shared_libs/monitors/signal-radars/inbound-dead-letter.ts +11 -1
  25. package/dist/bundling-sources/shared_libs/monitors/signal-radars/inbound-failure-codes.ts +24 -0
  26. package/dist/bundling-sources/shared_libs/observability/dlq.ts +32 -0
  27. package/dist/bundling-sources/shared_libs/observability/scheduled-jobs.json +57 -3
  28. package/dist/bundling-sources/shared_libs/observability/scheduled-work.ts +1 -0
  29. package/dist/bundling-sources/shared_libs/play-data-plane/r2.ts +66 -1
  30. package/dist/bundling-sources/shared_libs/play-data-plane/sheet-column-storage.ts +36 -7
  31. package/dist/bundling-sources/shared_libs/play-runtime/app-runtime-api.ts +250 -11
  32. package/dist/bundling-sources/shared_libs/play-runtime/array-input-store.ts +319 -0
  33. package/dist/bundling-sources/shared_libs/play-runtime/context.ts +991 -359
  34. package/dist/bundling-sources/shared_libs/play-runtime/ctx-types.ts +17 -0
  35. package/dist/bundling-sources/shared_libs/play-runtime/daytona-sandbox-janitor.ts +13 -0
  36. package/dist/bundling-sources/shared_libs/play-runtime/daytona-sandbox-reaper.ts +110 -0
  37. package/dist/bundling-sources/shared_libs/play-runtime/deployment/fly-machines.ts +155 -6
  38. package/dist/bundling-sources/shared_libs/play-runtime/deployment/fly-registry.ts +110 -6
  39. package/dist/bundling-sources/shared_libs/play-runtime/durable-receipt-execution.ts +127 -13
  40. package/dist/bundling-sources/shared_libs/play-runtime/execution-capabilities.ts +14 -1
  41. package/dist/bundling-sources/shared_libs/play-runtime/fixture-behavior.ts +57 -1
  42. package/dist/bundling-sources/shared_libs/play-runtime/free-company-lookup-batching.ts +218 -0
  43. package/dist/bundling-sources/shared_libs/play-runtime/gateway-postgres-admission.ts +42 -5
  44. package/dist/bundling-sources/shared_libs/play-runtime/governor/app-runtime-budget-state-backend.ts +6 -1
  45. package/dist/bundling-sources/shared_libs/play-runtime/governor/app-runtime-rate-state-backend.ts +92 -31
  46. package/dist/bundling-sources/shared_libs/play-runtime/governor/block-reserving-budget-state-backend.ts +69 -14
  47. package/dist/bundling-sources/shared_libs/play-runtime/governor/governor.ts +93 -23
  48. package/dist/bundling-sources/shared_libs/play-runtime/governor/in-memory-rate-state-backend.ts +15 -4
  49. package/dist/bundling-sources/shared_libs/play-runtime/governor/policy.ts +22 -18
  50. package/dist/bundling-sources/shared_libs/play-runtime/governor/rate-state-backend.ts +5 -0
  51. package/dist/bundling-sources/shared_libs/play-runtime/launch-identity.ts +2 -0
  52. package/dist/bundling-sources/shared_libs/play-runtime/map-memory-limits.ts +190 -14
  53. package/dist/bundling-sources/shared_libs/play-runtime/memory-ledger.ts +131 -0
  54. package/dist/bundling-sources/shared_libs/play-runtime/modal-runtime-config.ts +77 -2
  55. package/dist/bundling-sources/shared_libs/play-runtime/output-size-limits.ts +271 -2
  56. package/dist/bundling-sources/shared_libs/play-runtime/play-run-recovery-policy.ts +51 -0
  57. package/dist/bundling-sources/shared_libs/play-runtime/play-runs/sandbox-cleanup/contracts.ts +2 -0
  58. package/dist/bundling-sources/shared_libs/play-runtime/play-runs/sandbox-cleanup/job.ts +27 -1
  59. package/dist/bundling-sources/shared_libs/play-runtime/play-runtime-batching-registry.ts +2 -0
  60. package/dist/bundling-sources/shared_libs/play-runtime/protocol.ts +3 -0
  61. package/dist/bundling-sources/shared_libs/play-runtime/provider-text-for-log.ts +63 -0
  62. package/dist/bundling-sources/shared_libs/play-runtime/resource-governor.ts +19 -0
  63. package/dist/bundling-sources/shared_libs/play-runtime/run-ledger-event-transport.ts +112 -16
  64. package/dist/bundling-sources/shared_libs/play-runtime/run-ledger.ts +104 -2
  65. package/dist/bundling-sources/shared_libs/play-runtime/runner-app/index.ts +265 -151
  66. package/dist/bundling-sources/shared_libs/play-runtime/runner-app/runtime-gateway-transport.ts +17 -0
  67. package/dist/bundling-sources/shared_libs/play-runtime/runner-app/runtime-progress-push.ts +35 -14
  68. package/dist/bundling-sources/shared_libs/play-runtime/runner-app/runtime-sheet-persistence-retry.ts +12 -1
  69. package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/backends/daytona-control-transport.ts +4 -0
  70. package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/backends/daytona-labels.ts +36 -0
  71. package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/backends/daytona-launch-transport.ts +136 -70
  72. package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/backends/daytona-lifecycle.ts +237 -36
  73. package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/backends/daytona-runtime-watchdog.ts +148 -4
  74. package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/backends/daytona-session-execution.ts +6 -0
  75. package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/backends/daytona.ts +285 -32
  76. package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/backends/modal.ts +251 -56
  77. package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/runtime-sandbox-reconciliation.ts +29 -4
  78. package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/sandbox-create-outcome.ts +27 -0
  79. package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/types.ts +22 -1
  80. package/dist/bundling-sources/shared_libs/play-runtime/runtime-api.ts +1397 -382
  81. package/dist/bundling-sources/shared_libs/play-runtime/runtime-array-input-receipts.ts +920 -0
  82. package/dist/bundling-sources/shared_libs/play-runtime/runtime-constants.ts +16 -0
  83. package/dist/bundling-sources/shared_libs/play-runtime/runtime-environment.ts +38 -0
  84. package/dist/bundling-sources/shared_libs/play-runtime/runtime-flow.ts +6 -0
  85. package/dist/bundling-sources/shared_libs/play-runtime/runtime-incident-drills.ts +26 -1
  86. package/dist/bundling-sources/shared_libs/play-runtime/runtime-operation-contract.ts +30 -0
  87. package/dist/bundling-sources/shared_libs/play-runtime/runtime-receipt-store-adapter.ts +14 -3
  88. package/dist/bundling-sources/shared_libs/play-runtime/runtime-receipt-writer.ts +31 -4
  89. package/dist/bundling-sources/shared_libs/play-runtime/runtime-sheet-row-transition.ts +47 -0
  90. package/dist/bundling-sources/shared_libs/play-runtime/sandbox-compute-usage.ts +20 -7
  91. package/dist/bundling-sources/shared_libs/play-runtime/sandbox-runs/contract.ts +12 -0
  92. package/dist/bundling-sources/shared_libs/play-runtime/sandbox-runs/index.ts +9 -0
  93. package/dist/bundling-sources/shared_libs/play-runtime/sandbox-runs/runner-backend-adapter.ts +10 -0
  94. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backend.ts +4 -0
  95. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/absurd-runtime-worker.ts +1496 -320
  96. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/absurd-worker-required-env.ts +31 -1
  97. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/postgres.ts +1389 -129
  98. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/receipt-gateway.ts +36 -0
  99. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/run-ledger-dispatch-authority.ts +4 -0
  100. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/run-ledger-outbox-recovery.ts +162 -23
  101. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/runtime-event-search.ts +499 -115
  102. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/runtime-sandbox-capacity.ts +377 -9
  103. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/runtime-sandbox-ledger-reconciliation.ts +117 -8
  104. package/dist/bundling-sources/shared_libs/play-runtime/secret-resolution-retry-policy.ts +25 -0
  105. package/dist/bundling-sources/shared_libs/play-runtime/terminal-runtime-performance.ts +391 -0
  106. package/dist/bundling-sources/shared_libs/play-runtime/test-runtime-seams.ts +40 -0
  107. package/dist/bundling-sources/shared_libs/play-runtime/tool-call/index.ts +6 -0
  108. package/dist/bundling-sources/shared_libs/play-runtime/tool-call/mapped-calls.ts +171 -0
  109. package/dist/bundling-sources/shared_libs/play-runtime/tool-call/receipt-cohort.ts +16 -1
  110. package/dist/bundling-sources/shared_libs/play-runtime/tool-execute-retry-policy.ts +38 -12
  111. package/dist/bundling-sources/shared_libs/play-runtime/tool-result.ts +33 -9
  112. package/dist/bundling-sources/shared_libs/play-runtime/transport-error-diagnostics.ts +28 -0
  113. package/dist/bundling-sources/shared_libs/play-runtime/work-receipt-storage-contract.ts +55 -5
  114. package/dist/bundling-sources/shared_libs/plays/authoring-contract.ts +41 -1
  115. package/dist/bundling-sources/shared_libs/plays/contracts.ts +4 -0
  116. package/dist/bundling-sources/shared_libs/plays/dataset.ts +9 -3
  117. package/dist/bundling-sources/shared_libs/plays/deploy/manifest-contract.ts +2 -0
  118. package/dist/bundling-sources/shared_libs/plays/deploy/manifest.ts +3 -2
  119. package/dist/bundling-sources/shared_libs/plays/deploy/project-serializer.ts +2 -2
  120. package/dist/bundling-sources/shared_libs/plays/run-output-summary.ts +66 -0
  121. package/dist/bundling-sources/shared_libs/plays/script-entry.ts +1 -1
  122. package/dist/bundling-sources/shared_libs/product-notifications/catalog.ts +43 -1
  123. package/dist/bundling-sources/shared_libs/product-notifications/content.ts +9 -0
  124. package/dist/bundling-sources/shared_libs/product-notifications/email.ts +91 -13
  125. package/dist/bundling-sources/shared_libs/product-notifications/events.ts +3 -0
  126. package/dist/bundling-sources/shared_libs/product-notifications/slack-delivery.ts +41 -24
  127. package/dist/bundling-sources/shared_libs/security/attested-client-ip.ts +91 -0
  128. package/dist/bundling-sources/shared_libs/security/internal-actor.ts +0 -11
  129. package/dist/cli/{auth-6HJXNWUG.mjs → auth-LZLBR4C3.mjs} +5 -4
  130. package/dist/cli/auth-XPGKBJKB.js +41 -0
  131. package/dist/cli/{billing-6P5HO6QG.js → billing-6TJPNJQD.js} +152 -78
  132. package/dist/cli/{billing-MJ42N7YF.mjs → billing-OTOP5RE4.mjs} +84 -10
  133. package/dist/cli/{chunk-FCAZQ7WV.js → chunk-2NISBXMN.js} +52 -50
  134. package/dist/cli/{chunk-PNATXKLP.js → chunk-2ZIRCBYG.js} +6 -6
  135. package/dist/cli/{chunk-5FDKJQZE.js → chunk-3BOIOCNX.js} +1 -1
  136. package/dist/cli/chunk-3BVLLJ3H.mjs +1038 -0
  137. package/dist/cli/{chunk-FJZILBL7.mjs → chunk-3U5EAP6E.mjs} +5 -5
  138. package/dist/cli/{describe-FRAVCY5F.mjs → chunk-4YZKBBLZ.mjs} +19 -36
  139. package/dist/cli/{chunk-QWRHGGUH.js → chunk-5DRNNC72.js} +20 -2
  140. package/dist/cli/{chunk-Z2GUFYT6.js → chunk-5LEAXRHV.js} +11 -11
  141. package/dist/cli/{chunk-5MDIZX7M.js → chunk-5LHXOIPT.js} +8 -6
  142. package/dist/cli/{chunk-NMJ4D2WO.js → chunk-6PMCRYDA.js} +216 -91
  143. package/dist/cli/{chunk-EBU7LQ64.js → chunk-6V7KVRR5.js} +3 -3
  144. package/dist/cli/{chunk-MGXEUZHL.mjs → chunk-7D6X7IXW.mjs} +7 -5
  145. package/dist/cli/{chunk-SAZFZQRI.js → chunk-7FCYPAPP.js} +2 -2
  146. package/dist/cli/{chunk-ACCR7POB.js → chunk-7XYDDCQ2.js} +27 -27
  147. package/dist/cli/{chunk-5IYOUBFZ.js → chunk-ALZBANZI.js} +28 -54
  148. package/dist/cli/{chunk-3DNKFH2G.mjs → chunk-BAPTQDLF.mjs} +19 -1
  149. package/dist/cli/chunk-BGNWI3KH.js +827 -0
  150. package/dist/cli/{chunk-V7REJRDZ.mjs → chunk-C25QE4CH.mjs} +1 -1
  151. package/dist/cli/{chunk-FGMX4HUZ.js → chunk-CBZP6J3V.js} +29 -27
  152. package/dist/cli/{chunk-QEYHTIV4.mjs → chunk-CTQ56DXP.mjs} +10 -1
  153. package/dist/cli/{chunk-IHHLTHE7.mjs → chunk-CVQ7N5CV.mjs} +267 -38
  154. package/dist/cli/{chunk-7DH2FD7Y.mjs → chunk-D464JW3N.mjs} +5 -85
  155. package/dist/cli/{chunk-MEAIOXJL.mjs → chunk-DHXCBITQ.mjs} +7 -5
  156. package/dist/cli/chunk-F2RHUPVH.mjs +827 -0
  157. package/dist/cli/chunk-F6QV42MC.mjs +91 -0
  158. package/dist/cli/{chunk-OZBWRICM.js → chunk-FK2HNDCN.js} +2 -2
  159. package/dist/cli/{chunk-BGY2PLP7.mjs → chunk-GUT7CLOL.mjs} +23 -49
  160. package/dist/cli/{chunk-RY4IVOU3.mjs → chunk-I624J4H5.mjs} +16 -806
  161. package/dist/cli/{chunk-Z2XUZC34.js → chunk-IAYSWZDJ.js} +188 -76
  162. package/dist/cli/{chunk-FGLKOWSC.mjs → chunk-IKWRUNAP.mjs} +1 -1
  163. package/dist/cli/{chunk-KCCOQ5G5.js → chunk-JVDKZJUH.js} +511 -282
  164. package/dist/cli/{chunk-HDFRJ4IT.mjs → chunk-JVHOS3K3.mjs} +177 -65
  165. package/dist/cli/chunk-LYFKBLJI.mjs +1039 -0
  166. package/dist/cli/{chunk-SLEUWLJE.mjs → chunk-MSY22NQW.mjs} +5 -5
  167. package/dist/cli/{chunk-5FY72YOV.js → chunk-NAPTMYTY.js} +8 -8
  168. package/dist/cli/{chunk-O6QOMHCH.js → chunk-NDHJR2WZ.js} +37 -35
  169. package/dist/cli/{chunk-KXMNM4AQ.js → chunk-NMU3VR5U.js} +4 -5
  170. package/dist/cli/chunk-NTLI6P6Y.mjs +19 -0
  171. package/dist/cli/{chunk-RFONC4WJ.mjs → chunk-O3BJYD6D.mjs} +3 -3
  172. package/dist/cli/{describe-2WQY7ZCY.js → chunk-PVY4DPPF.js} +27 -44
  173. package/dist/cli/{chunk-WIYWSYDS.mjs → chunk-Q2EIZKVX.mjs} +3 -3
  174. package/dist/cli/{chunk-VZBCEA5S.mjs → chunk-RD6IQ2JY.mjs} +223 -92
  175. package/dist/cli/chunk-RGOUCIIZ.js +1039 -0
  176. package/dist/cli/{chunk-EIMG75BT.mjs → chunk-S3A4IXBQ.mjs} +4 -5
  177. package/dist/cli/{chunk-QIW7TVV6.mjs → chunk-S4XQCFES.mjs} +14 -12
  178. package/dist/cli/chunk-SKU6ECIY.js +19 -0
  179. package/dist/cli/{chunk-CRYOUPEB.js → chunk-TIRBDQ3W.js} +16 -16
  180. package/dist/cli/{chunk-G7L27KZB.mjs → chunk-TKAQR3IB.mjs} +31 -21
  181. package/dist/cli/{chunk-MDJPEGVN.js → chunk-UC4SFYNU.js} +392 -261
  182. package/dist/cli/{chunk-3BMLICF7.mjs → chunk-UIURR26V.mjs} +13 -8
  183. package/dist/cli/{chunk-TNMBPMMC.js → chunk-UROQDCVW.js} +13 -4
  184. package/dist/cli/{chunk-R64BGGRQ.mjs → chunk-VDGTTH7K.mjs} +2 -2
  185. package/dist/cli/chunk-VLEVVDWG.js +91 -0
  186. package/dist/cli/{chunk-R2GLGLDR.mjs → chunk-VPHN2HAL.mjs} +216 -91
  187. package/dist/cli/chunk-VY2GBNTX.js +1038 -0
  188. package/dist/cli/{chunk-CFUTOWE4.js → chunk-WG3KGAII.js} +8 -88
  189. package/dist/cli/{chunk-QAJAJPKK.mjs → chunk-WUMIYOXQ.mjs} +4 -2
  190. package/dist/cli/{chunk-SCIR5JXW.js → chunk-WUZS2HK6.js} +56 -51
  191. package/dist/cli/{chunk-T3MVIPHG.mjs → chunk-XDWS2JJT.mjs} +1 -1
  192. package/dist/cli/{chunk-KGQNIA37.js → chunk-XQCTG5OO.js} +44 -34
  193. package/dist/cli/{chunk-KVJ5VHW5.mjs → chunk-XW2JIYG7.mjs} +2 -2
  194. package/dist/cli/chunk-YGGIZ3VT.js +920 -0
  195. package/dist/cli/command-docs.d.mts +5 -0
  196. package/dist/cli/command-docs.d.ts +5 -0
  197. package/dist/cli/command-docs.js +2 -2
  198. package/dist/cli/command-docs.mjs +1 -1
  199. package/dist/cli/{csv-NX7NO3O6.js → csv-EH5QWR4O.js} +13 -12
  200. package/dist/cli/{csv-DQ6GW5B5.mjs → csv-OK45Z5XQ.mjs} +4 -3
  201. package/dist/cli/{db-R72DFMP6.js → db-3ESJKETS.js} +30 -27
  202. package/dist/cli/{db-2YP33M4K.mjs → db-6Z5E4HKN.mjs} +10 -7
  203. package/dist/cli/describe-PNDQB7YS.mjs +48 -0
  204. package/dist/cli/describe-QUF7VTTR.js +48 -0
  205. package/dist/cli/describe-core.d.mts +153 -5
  206. package/dist/cli/describe-core.d.ts +153 -5
  207. package/dist/cli/describe-core.js +9 -5
  208. package/dist/cli/describe-core.mjs +10 -6
  209. package/dist/cli/{executions-WFBU7L2Q.mjs → executions-2NTWQFEG.mjs} +7 -5
  210. package/dist/cli/{executions-ZLHD4QIT.js → executions-KUOBRX5V.js} +9 -7
  211. package/dist/cli/{feedback-CN3HJFVF.mjs → feedback-7RPRMSGY.mjs} +6 -5
  212. package/dist/cli/{feedback-NDV6TPHG.js → feedback-UPHAZJ4C.js} +10 -9
  213. package/dist/cli/getting-started.d.mts +6 -6
  214. package/dist/cli/getting-started.d.ts +6 -6
  215. package/dist/cli/getting-started.js +2 -2
  216. package/dist/cli/getting-started.mjs +1 -1
  217. package/dist/cli/{git-QAD6E3HW.mjs → git-SCYP6WSZ.mjs} +5 -4
  218. package/dist/cli/git-UH653WHV.js +25 -0
  219. package/dist/cli/index.js +152 -142
  220. package/dist/cli/index.mjs +56 -46
  221. package/dist/cli/{legacy-noops-KVC5QJ74.js → legacy-noops-7XMFCVRG.js} +8 -7
  222. package/dist/cli/{legacy-noops-TPTKNBI2.mjs → legacy-noops-A4KYAGI6.mjs} +5 -4
  223. package/dist/cli/{monitors-SV57JFLO.mjs → monitors-FLC5J7RI.mjs} +19 -6
  224. package/dist/cli/{monitors-KCROV6PJ.js → monitors-NZV6IX5H.js} +103 -90
  225. package/dist/cli/{org-NJYX5743.js → org-IZ7UP3XF.js} +70 -67
  226. package/dist/cli/{org-KX6QIR7A.mjs → org-LUETJ7Z5.mjs} +9 -6
  227. package/dist/cli/pages-22ML3O7O.js +252 -0
  228. package/dist/cli/pages-EUX5EAGF.mjs +252 -0
  229. package/dist/cli/{play-IQQ57L7Z.mjs → play-CDHPAKKM.mjs} +512 -1508
  230. package/dist/cli/{play-32L7EQN4.js → play-USJBQADG.js} +1090 -2086
  231. package/dist/cli/{providers-4WEC2EQN.mjs → providers-CCXZ3SQF.mjs} +7 -5
  232. package/dist/cli/{providers-ZQV6QLVQ.js → providers-WFEUNPGC.js} +10 -8
  233. package/dist/cli/{quickstart-HKUSFADF.js → quickstart-O4JSUORZ.js} +13 -12
  234. package/dist/cli/{quickstart-RQ76RIUE.mjs → quickstart-ZUULI635.mjs} +5 -4
  235. package/dist/cli/run-ISDJYJMU.js +443 -0
  236. package/dist/cli/run-QJ4NX5F5.mjs +443 -0
  237. package/dist/cli/{search-ZRAVFBZC.mjs → search-IX3XKZJ3.mjs} +8 -6
  238. package/dist/cli/search-TIFNLRPM.js +32 -0
  239. package/dist/cli/{secrets-CMJOVNVH.mjs → secrets-7VUDXTUZ.mjs} +7 -5
  240. package/dist/cli/{secrets-J3G5Y43U.js → secrets-ELQSNCTR.js} +16 -14
  241. package/dist/cli/{sessions-WY7VN4AE.js → sessions-A3FG3AZX.js} +6 -5
  242. package/dist/cli/{sessions-MDQYY5CB.mjs → sessions-VOIQ62GB.mjs} +5 -4
  243. package/dist/cli/{settings-4RWZPCT5.mjs → settings-S6N6EFBG.mjs} +14 -11
  244. package/dist/cli/{settings-HTNTFKCE.js → settings-ZTXQEMZI.js} +80 -77
  245. package/dist/cli/{setup-P3GYYZWG.mjs → setup-AYPIK4JE.mjs} +12 -10
  246. package/dist/cli/{setup-QGCAP62X.js → setup-Y3WOIFLS.js} +53 -51
  247. package/dist/cli/{skills-7NAE4ICL.mjs → skills-5SF5QWNI.mjs} +7 -6
  248. package/dist/cli/skills-MWFRMG3H.js +31 -0
  249. package/dist/cli/tools-3XNZ4J64.mjs +55 -0
  250. package/dist/cli/tools-XEC4OD3R.js +55 -0
  251. package/dist/cli/{update-GODLRKNB.mjs → update-3U4OVX5R.mjs} +9 -8
  252. package/dist/cli/update-DWYEYTZE.js +33 -0
  253. package/dist/cli/{workflow-4BXOUVEO.mjs → workflow-2M5JP7SA.mjs} +10 -8
  254. package/dist/cli/{workflow-AO3A6LXN.js → workflow-RM7H7555.js} +20 -18
  255. package/dist/client-DS2IWYZF.d.ts +10 -0
  256. package/dist/client-DTwnz_AW.d.mts +10 -0
  257. package/dist/{client-CYqG23K1.d.ts → client-core-B_6HAIBy.d.ts} +385 -12
  258. package/dist/{client-BbU5_j7n.d.mts → client-core-DzBSlY1U.d.mts} +385 -12
  259. package/dist/{compiler-manifest-CWz_sNOQ.d.ts → compiler-manifest-Dcyd3-Zd.d.mts} +43 -1
  260. package/dist/{compiler-manifest-CWz_sNOQ.d.mts → compiler-manifest-Dcyd3-Zd.d.ts} +43 -1
  261. package/dist/errors-d-sTrZhe.d.mts +142 -0
  262. package/dist/errors-yQwfgrcX.d.ts +142 -0
  263. package/dist/{index-BF2JB_Ug.d.mts → index-C6oXchjN.d.mts} +1 -1
  264. package/dist/{index-4NPXDzlD.d.ts → index-P56zy_z5.d.ts} +1 -1
  265. package/dist/index.d.mts +11 -147
  266. package/dist/index.d.ts +11 -147
  267. package/dist/index.js +16 -12
  268. package/dist/index.mjs +15 -11
  269. package/dist/install-integrity.json +141 -104
  270. package/dist/plays/bundle-play-file.d.mts +3 -3
  271. package/dist/plays/bundle-play-file.d.ts +3 -3
  272. package/dist/plays/bundle-play-file.mjs +2 -1
  273. package/dist/plays/play-description.d.mts +2 -2
  274. package/dist/plays/play-description.d.ts +2 -2
  275. package/dist/plays/play-description.js +2 -2
  276. package/dist/plays/play-description.mjs +1 -1
  277. package/dist/plays/run-request.d.mts +2 -2
  278. package/dist/plays/run-request.d.ts +2 -2
  279. package/dist/release.d.mts +1 -1
  280. package/dist/release.d.ts +1 -1
  281. package/dist/release.js +2 -2
  282. package/dist/release.mjs +1 -1
  283. package/dist/server.d.mts +17 -0
  284. package/dist/server.d.ts +17 -0
  285. package/dist/server.js +76 -0
  286. package/dist/server.mjs +76 -0
  287. package/package.json +6 -1
  288. package/dist/cli/auth-IACERYQH.js +0 -40
  289. package/dist/cli/chunk-PQUUWFXY.js +0 -95
  290. package/dist/cli/chunk-YBWAG72P.mjs +0 -95
  291. package/dist/cli/chunk-YQDUODZW.js +0 -1710
  292. package/dist/cli/git-JVI36ZFV.js +0 -24
  293. package/dist/cli/search-75X5LTDE.js +0 -30
  294. package/dist/cli/skills-BKJ53JOQ.js +0 -30
  295. package/dist/cli/tools-COWMIEJ6.mjs +0 -45
  296. package/dist/cli/tools-TASOCE7I.js +0 -45
  297. package/dist/cli/update-SJIKVME6.js +0 -32
@@ -4,9 +4,8 @@ var CONVENTIONS = `
4
4
  Conventions (apply to every command):
5
5
  Output mode: readable text by default. Add --json for machine-readable
6
6
  output: stdout is one JSON document, including errors and notices;
7
- stderr stays empty. tools execute is the exception: it prints JSON;
8
- --output-format csv prints a readable summary and writes the rows to a
9
- CSV file.
7
+ stderr stays empty. run is the exception: it saves the data to a file
8
+ and prints a receipt naming it, as JSON under --json.
10
9
  Streams: without --json, stdout carries only the command result. Progress,
11
10
  update notices, skills-sync notes, and warnings go to stderr.
12
11
  Piping JSON: pass --json only when a program parses the output. Under
@@ -25,7 +24,7 @@ Conventions (apply to every tool):
25
24
  ]]
26
25
  Ids: play references look like prebuilt/person-to-phone-batch or
27
26
  <workspace-slug>/my-play; run ids look like
28
- play/<play-ref>/run/<timestamp>-<suffix> and are printed by [[plays run]].
27
+ play/<play-ref>/run/<timestamp>-<suffix> and are printed by [[cli:run]][[mcp:deepline_run_play]].
29
28
  [[cli:
30
29
  Large results: prefer the narrower command over post-processing a big
31
30
  payload: runs export for rows, billing usage --run-id for cost,
@@ -56,18 +55,18 @@ What Deepline is for:
56
55
  phones, research accounts, and keep durable, resumable runs of that work.
57
56
  Three nouns cover almost everything:
58
57
  tools one provider or API operation (search, enrich, verify). Atomic,
59
- priced per call. Discover with [[search]], inspect with [[tools
60
- describe]], call with [[tools execute]].
61
- plays a durable workflow, usually a prebuilt waterfall over a CSV. Discover
62
- with [[search]], read the contract with [[cli:describe]][[mcp:deepline_describe_play]], start with
63
- [[plays run]].
58
+ priced per call.
59
+ plays a durable workflow, usually a prebuilt waterfall over a CSV.
60
+ runs one execution of a play: status, rows, logs, and cost.
64
61
  [[cli:
65
- runs one execution of a play: status, rows, logs, cost, and export.
66
- Inspect with runs get, download rows with runs export.
62
+ Find a tool or play with search, read its contract with describe, and run
63
+ it with run. Read a run again with runs get.
67
64
  ]]
68
65
  [[mcp:
69
- runs one execution of a play: status, rows, logs, and cost. Inspect
70
- with deepline_get_run, read rows with deepline_read_play_output.
66
+ Find a tool or play with deepline_search, read its contract with
67
+ deepline_describe_tool or deepline_describe_play, and run it with
68
+ deepline_execute_tool or deepline_run_play. Read a run with
69
+ deepline_get_run and its rows with deepline_read_play_output.
71
70
  ]]
72
71
 
73
72
  The agent path for a typical task:
@@ -78,10 +77,10 @@ The agent path for a typical task:
78
77
  2. deepline search "<input you have -> result you need>"
79
78
  one search over prebuilt plays, tools, your
80
79
  workspace's plays, and monitor types
81
- 3. deepline describe <ref> read required input, CSV columns, output
82
- 4. deepline plays run <ref> --input '{"csv":"file.csv"}' waits, prints run id
83
- 5. deepline runs export <run-id> --out result.csv rows as CSV
84
- 6. deepline billing usage --run-id <run-id> what it cost
80
+ 3. deepline describe <id> required input, CSV columns, output, price
81
+ 4. deepline run <id> --input '{"csv":"file.csv"}' --csv-out result.csv
82
+ waits, saves the rows, prints a receipt
83
+ with the run id and what it cost
85
84
  ]]
86
85
  [[mcp:
87
86
  1. deepline_auth_status the connected workspace
@@ -93,7 +92,8 @@ The agent path for a typical task:
93
92
  5. deepline_read_play_output the result rows, a page at a time
94
93
  6. deepline_billing_usage with run_id what it cost
95
94
  ]]
96
- Use [[tools execute]] only when no play covers the job or for one-off lookups.
95
+ Run a play for work over rows; run a tool for a single lookup or when no
96
+ play covers the job.
97
97
  ${CONVENTIONS}`,
98
98
  verbose: `
99
99
  Working rules:
@@ -101,25 +101,23 @@ Working rules:
101
101
  company domains -> each company's lead investors"]].
102
102
  Results are ranked for what you have and what you need, and each one
103
103
  names its kind: prebuilt play, tool, custom play, or monitor type.
104
- A CSV goes through the batch form of a prebuilt play, never one
104
+ A CSV goes through the batch form of a prebuilt play, in one run for the
105
105
  [[cli:
106
- single-record run per row: plays run prebuilt/<play>-batch --input
107
- '{"csv":"leads.csv"}', then runs export <run-id> --out <path>. Work
106
+ whole file: run prebuilt/<play>-batch --input '{"csv":"leads.csv"}'
107
+ --csv-out <path>. Work
108
108
  ]]
109
109
  [[mcp:
110
- single-record run per row: deepline_run_play with play
111
- prebuilt/<play>-batch, the CSV rows in input_file, and inputs
112
- {"csv": "<input_file.path>"}. Read the rows with
113
- deepline_read_play_output. Work
114
- ]]
115
- emails: person-to-email-batch takes the whole file in one run. Each row
116
- tries its LinkedIn profile first and falls through to name and company
117
- domain, so do not split the file or run a second pass. Phones: a known
118
- person -> person-to-phone-batch.
110
+ whole file: deepline_run_play with play prebuilt/<play>-batch, the CSV
111
+ rows in input_file, and inputs {"csv": "<input_file.path>"}. Read the
112
+ rows with deepline_read_play_output. Work
113
+ ]]
114
+ emails: person-to-email-batch. Each row tries its LinkedIn profile first
115
+ and falls through to name and company domain, so one pass covers the
116
+ file. Phones: a known person -> person-to-phone-batch.
119
117
  The balance is a ceiling, not a budget to use up. Before each paid call,
120
118
  [[cli:
121
- estimate its cost: the price from describe <tool> or
122
- plays list --show-cost, times the results or rows you will request. Take
119
+ estimate its cost: run <id> --dry-run shows the price, times the results
120
+ or rows you will request. Take
123
121
  ]]
124
122
  [[mcp:
125
123
  estimate its cost: the price from deepline_describe_tool or
@@ -310,12 +308,18 @@ When:
310
308
  Input:
311
309
  --run-id <run-id> scopes the spend to one play run. --limit and --cursor
312
310
  page the recent-call list. --json prints JSON.
311
+ --events reads raw usage-event history instead of the spend summary. Combine
312
+ it with --run-id, --limit (1\u2013500), and --cursor; not --offset or --request-id.
313
+ Follow next_cursor until null, even when entries is empty.
313
314
  ]]
314
315
  [[cli:
315
316
  Output (JSON):
316
317
  balance, usage.last_30_days_usage_credits, usage.month_spent_credits, and
317
318
  with --run-id: run.spent_credits, run.rough_usd_spent, run.event_count.
318
319
  render.sections includes a "Run spend: N Deepline Credits" line.
320
+ With --events: org_id, run_id, entries, next_cursor, and next.page. Entries
321
+ retain original run attribution and nullable recorded Deepline credits;
322
+ raw event history is not final settlement evidence.
319
323
  ]]
320
324
  [[mcp:
321
325
  Output:
@@ -354,43 +358,32 @@ Cases:
354
358
  search: {
355
359
  core: `
356
360
  Purpose:
357
- One ranked search across everything Deepline can run: provider tools,
358
- prebuilt plays, plays this workspace created, and monitor types. Each
359
- result names its kind.
361
+ Find the play, tool, or monitor for a task. One search covers all of them.
360
362
  When:
361
- First, for any task where you do not already know the exact play or tool.
362
- Search once with the task; there is no separate search for plays and for
363
- tools.
364
- [[cli:
363
+ First, whenever you do not already know what to run.
365
364
  Input:
366
- One argument: the task as a sentence, written as the input you have ->
367
- the result you need, for example "50 company domains -> each one's lead
368
- investors". Do not send keywords; the sentence is what ranks the results.
369
- --type narrows to tools, prebuilts, custom, plays (prebuilts
370
- and custom), or monitors, and --exclude leaves kinds out; both take a
371
- comma-separated list. --categories <a,b> and --search_terms <a,b> filter
372
- tools and work without a task. --limit (1-50) and --offset page.
365
+ The task as one sentence. For work on data, write what you have -> what
366
+ you need. Sentences rank better than keywords.
367
+ Examples:
368
+ [[cli:
369
+ deepline search "first name, last name and company domain -> verified work email"
370
+ deepline search "50 company domains -> each one's lead investors"
371
+ deepline search "company domain -> contacts in sales leadership" --type plays
372
+ deepline search "upload a contact list as a Meta ads audience"
373
+ ]]
374
+ [[mcp:
375
+ query "first name, last name and company domain -> verified work email"
376
+ query "50 company domains -> each one's lead investors"
377
+ query "company domain -> contacts in sales leadership"
378
+ query "upload a contact list as a Meta ads audience"
373
379
  ]]
374
380
  Output:
375
- [[cli:A readable ranked list by default; read that form. With
376
- --json: ]]results[] where each item has id, kind (tool, prebuilt_play,
377
- custom_play, monitor_type), displayName, and description. A tool adds
378
- provider, categories, inputFields, pricing, connected, and executeCommand;
379
- a play adds reference, inputFields, describeCommand, and runCommand. Also
380
- kinds, count, total, next_offset when there is another page, and
381
- render.sections.
381
+ A ranked list. Each result has an id, its kind, what it does, and its price.
382
382
  Cost:
383
383
  Free.
384
384
  Next:
385
- [[cli:describe]][[mcp:deepline_describe_tool or deepline_describe_play]] <id> reads any result, whatever its kind. Then [[plays run]] for a
386
- play, [[tools execute]] for a tool. When a play and a tool both fit a job with
387
- rows, take the play.
388
- Avoid:
389
- Do not hardcode a provider list; [[search]] returns what this workspace can
390
- call now. Do not run anything from search output alone; describe it first.
391
- [[cli:
392
- tools search and plays search are deprecated aliases of this command.
393
- ]]
385
+ [[cli:describe]][[mcp:deepline_describe_tool or deepline_describe_play]] <id> before running anything, then
386
+ [[cli:run <id>]][[mcp:deepline_execute_tool or deepline_run_play]] to run it. When both fit, take the play.
394
387
  `
395
388
  },
396
389
  describe: {
@@ -413,7 +406,7 @@ Input:
413
406
  A tool lists its features, such as the model an AI tool runs;
414
407
  --feature <name>[=<value>] describes one.
415
408
  A play your workspace created is shown instead of a Deepline tool or
416
- prebuilt play of the same name; --prebuilt shows the Deepline one.
409
+ prebuilt play of the same name; deepline/<name> shows the Deepline one.
417
410
  ]]
418
411
  [[cli:
419
412
  Output:
@@ -423,6 +416,26 @@ Output:
423
416
  ]]
424
417
  Cost:
425
418
  Free.
419
+ `
420
+ },
421
+ run: {
422
+ core: `
423
+ Purpose:
424
+ Run a tool, a play or a play file by name, or code inline with -e, with
425
+ one JSON input. Every kind answers with the same receipt.
426
+ When:
427
+ After describe, once you know the inputs. --dry-run checks the input and
428
+ the price first. -e runs a few lines that call tools without writing a
429
+ play file.
430
+ Output:
431
+ The data in a file, and a receipt with what ran, its cost, and the values
432
+ that came back. --json prints the receipt as JSON.
433
+ Next:
434
+ Read the data file the receipt names. deepline runs get <id> reads the
435
+ run or tool call again.
436
+ Cost:
437
+ Spends credits as the tool or play does. Running an interrupted call again
438
+ replays it at no extra cost.
426
439
  `
427
440
  },
428
441
  tools: {
@@ -432,15 +445,15 @@ Purpose:
432
445
  company, verify an email), priced per call in Deepline credits.
433
446
  When:
434
447
  For one-off lookups, candidate searches, or when search finds no play
435
- for the job. For CSV-shaped work use a play instead: plays retry,
436
- reuse completed rows, and export.
448
+ for the job. CSV-shaped work goes through a play, which retries, reuses
449
+ completed rows, and exports.
437
450
  The sequence:
438
451
  [[search <words>]] ranked tools and plays for an intent
439
452
  [[cli:describe <id>]][[mcp:deepline_describe_tool]] required input fields, pricing, output shape
440
- [[tools execute <id> --input '{...}']] run it
453
+ [[cli:run <id> --input '{...}']][[mcp:deepline_execute_tool]] run it
441
454
  Cost:
442
- search, describe, list, and grep are free. execute can spend credits; the
443
- price is in [[cli:describe <id>]][[mcp:deepline_describe_tool]].
455
+ search, describe, list, and grep are free. Running a tool can spend
456
+ credits; [[cli:run <id> --dry-run]][[mcp:deepline_describe_tool]] shows the price.
444
457
  `
445
458
  },
446
459
  "tools connect": {
@@ -449,6 +462,10 @@ Purpose:
449
462
  Connect a provider to the active workspace. Requires an owner or admin.
450
463
  Input:
451
464
  --credentials-file <path> saves a private JSON object of credential strings.
465
+ A provider that takes one API key reads {"api_key": "..."}; a file with one
466
+ field is accepted whatever the field is named. A multi-field provider (for
467
+ example a warehouse) rejects a missing field and lists its accepted field
468
+ names in the error.
452
469
  --oauth prints an authorization URL. Open it in a browser signed into the
453
470
  same Deepline workspace and finish provider consent.
454
471
  HubSpot: --preset read-crm, update-crm, marketing, sales-sequences, tickets, or all.
@@ -463,7 +480,8 @@ Output:
463
480
  completed connection. The browser must finish authorization.
464
481
  Cost:
465
482
  Does not spend Deepline credits.
466
- Example:
483
+ Examples:
484
+ deepline tools connect heyreach --credentials-file ./heyreach.json
467
485
  deepline tools connect hubspot --oauth --preset read-crm
468
486
  `
469
487
  },
@@ -576,12 +594,11 @@ Output fields:
576
594
  connect them. With byok optional and nothing
577
595
  connected, Deepline's managed credentials are used.
578
596
  extractors / targetGetters JSON paths the CLI uses to turn the raw provider
579
- response into rows; the same paths appear in tools
580
- execute output as output_preview.listSourcePath.
597
+ response into rows.
581
598
  usageGuidance provider-specific notes worth reading once.
582
599
  ]]
583
600
  Related:
584
- [[tools execute <id>]][[cli: --input @file.json]] uses the same schema; runtime output
601
+ [[cli:run <id> --input-file input.json]][[mcp:deepline_execute_tool]] takes the same schema; runtime output
585
602
  help for authoring a play appears under runtimeOutputHelp.
586
603
  `
587
604
  },
@@ -672,18 +689,17 @@ When:
672
689
  [[cli:
673
690
  The sequence:
674
691
  search "<input you have -> result you need>" find the play
675
- describe <ref> required input, CSV columns, output fields
692
+ describe <ref> required input, CSV columns, output fields
676
693
  plays list --show-cost per-row or per-run credit estimate
677
- plays run <ref> --input '{"csv":"file.csv"}' start and wait
678
- runs export <run-id> --out out.csv rows
694
+ run <ref> --input '{"csv":"file.csv"}' --csv-out out.csv run it, save rows
679
695
  Writing a play:
680
696
  Start from code that already works, not a blank file.
681
697
  plays get prebuilt/<name> --source --out my.play.ts
682
698
  copy the closest prebuilt and edit the copy
683
699
  plays check my.play.ts validate after every edit; free
684
- plays run my.play.ts --input '{...}' run the local file
685
- plays publish my.play.ts make it live for plays run <name> and triggers
686
- plays run -e "<code>" run code inline as a play function's body
700
+ run my.play.ts --input '{...}' run the local file
701
+ plays publish my.play.ts make it live for run <name> and triggers
702
+ run -e "<code>" run code inline as a play function's body
687
703
  (input holds --input), like python -c
688
704
  A play is a default-exported async function of its input; the file name
689
705
  is its default name:
@@ -868,7 +884,8 @@ Pricing a run:
868
884
  [[cli:
869
885
  Output fields:
870
886
  costEstimate.source "observed" (from past runs; shown with ~) or
871
- "static" (from the play's declared tools).
887
+ "static" (a hand-written range or the play's
888
+ declared tools).
872
889
  costEstimate.sampleRunCount how many runs the observation is based on.
873
890
  observedCost avgCredits, medianCredits, maxCredits per unit across
874
891
  all workspaces' runs, or status "unavailable" with
@@ -1144,13 +1161,13 @@ Cost:
1144
1161
  "plays set-live": {
1145
1162
  core: `
1146
1163
  Purpose:
1147
- Make one version of a play live, so [[plays run <name>]], triggers, and
1164
+ Make one version of a play live, so [[cli:run <name>]][[mcp:deepline_run_play]], triggers, and
1148
1165
  deepline.runPlay callers use it.[[cli: A local .play.ts file is bundled, validated,
1149
1166
  saved as a revision, and promoted in one step; a saved play promotes one
1150
1167
  of its existing revisions.]][[mcp: It promotes one of a saved play's existing
1151
1168
  revisions; deepline_publish_play saves and promotes a new file graph.]]
1152
1169
  When:
1153
- After iterating on [[cli:a local file with plays run ./file.play.ts]][[mcp:a play with deepline_run_inline_play]], once its
1170
+ After iterating on [[cli:a local file with run ./file.play.ts]][[mcp:a play with deepline_run_inline_play]], once its
1154
1171
  result is right. Running [[cli:a local file]][[mcp:a play inline]] never publishes it.
1155
1172
  [[cli:
1156
1173
  Input:
@@ -1175,8 +1192,8 @@ Avoid:
1175
1192
  "plays publish": {
1176
1193
  core: `
1177
1194
  Purpose:
1178
- Publish [[cli:a local .play.ts file]][[mcp:an inline .play.ts file graph]] or promote a saved revision, so [[plays run
1179
- <name>]], triggers, and deepline.runPlay callers use it. The same operation as
1195
+ Publish [[cli:a local .play.ts file]][[mcp:an inline .play.ts file graph]] or promote a saved revision, so [[cli:run
1196
+ <name>]][[mcp:deepline_run_play]], triggers, and deepline.runPlay callers use it. The same operation as
1180
1197
  [[plays set-live]].
1181
1198
  When:
1182
1199
  Once a play [[cli:run by file path]][[mcp:run inline]] gives the right result. Running [[cli:a local file]][[mcp:a play inline]]
@@ -1225,7 +1242,7 @@ Which command:
1225
1242
  active run
1226
1243
  ]]
1227
1244
  Ids:
1228
- play/<play-ref>/run/<timestamp>-<suffix>, printed by [[plays run]] as runId.
1245
+ play/<play-ref>/run/<timestamp>-<suffix>, printed in [[cli:run's receipt as Id]][[mcp:deepline_run_play's result as runId]].
1229
1246
  Cost:
1230
1247
  All of these are free; a run's spend was charged while it ran.
1231
1248
  `
@@ -1332,6 +1349,9 @@ Input:
1332
1349
  returned more than one (default: the returned dataset, usually
1333
1350
  result.rows). --metadata-out <path.json> writes the export metadata. --json
1334
1351
  prints the receipt as JSON; it does not change the file format.
1352
+ --summary counts keeps exact row counts while skipping column aggregates
1353
+ during retrieval; every saved row and column is still exported. The default
1354
+ --summary full includes column aggregates.
1335
1355
  To parse the receipt, add --json; stdout is then one JSON document.
1336
1356
  ]]
1337
1357
  Output (JSON):
@@ -1388,9 +1408,9 @@ Cost:
1388
1408
  Avoid:
1389
1409
  runs[].id is the public run id that [[runs get]], watch, export and stop
1390
1410
  accept. runId and workflowId are older names for it; temporalRunId is a
1391
- backend identifier and not a run id. Use the id [[plays run]] returned for
1392
- your own run: the latest entry here may belong to another invocation that
1393
- started at the same time.
1411
+ backend identifier and not a run id. Use the id your own run returned:
1412
+ the latest entry here may belong to another invocation that started at the
1413
+ same time.
1394
1414
  `
1395
1415
  },
1396
1416
  "runs logs": {
@@ -1468,8 +1488,8 @@ Avoid:
1468
1488
  Purpose:
1469
1489
  Follow an active run until it ends, polling its status every two seconds.
1470
1490
  When:
1471
- Only for a run started with --no-wait that you want to watch. plays run
1472
- already waits, and runs get answers "is it done". runs tail is an alias.
1491
+ For a run started with run --timeout 0, or one run stopped waiting for.
1492
+ runs get answers "is it done". runs tail is an alias.
1473
1493
  [[cli:
1474
1494
  Input:
1475
1495
  The run id. --compact shows step transitions only; --json prints one
@@ -1531,7 +1551,7 @@ Input:
1531
1551
  The run id. --json.
1532
1552
  ]]
1533
1553
  Output (JSON):
1534
- The new run's package, as [[plays run]] prints.
1554
+ The new run's package, as plays run --json prints.
1535
1555
  Cost:
1536
1556
  Spends credits only for rows that were not completed before.
1537
1557
  `
@@ -1572,7 +1592,7 @@ Purpose:
1572
1592
  Inspect a local CSV before running a play over it: headers, fill rates,
1573
1593
  sample values, or a row range.
1574
1594
  When:
1575
- Before [[plays run]], to confirm the file has the columns describe requires
1595
+ Before [[cli:run]][[mcp:deepline_run_play]], to confirm the file has the columns describe requires
1576
1596
  and to count rows for pricing. Free and local.
1577
1597
  [[cli:
1578
1598
  Input:
@@ -1615,6 +1635,111 @@ Cost:
1615
1635
  Avoid:
1616
1636
  Do not guess table names; a run's dataset table is named in [[runs get]]
1617
1637
  under datasets[].storage.
1638
+ `
1639
+ },
1640
+ pages: {
1641
+ rolloutFeature: "hosted-pages",
1642
+ core: `
1643
+ Purpose:
1644
+ Publish a document at a stable URL on your workspace's subdomain of
1645
+ deepline.page, and decide who can open it. A page is one named document:
1646
+ HTML, JSON, CSV, Markdown, text, SVG, an image, or a PDF, up to 3 MB.
1647
+ When:
1648
+ To share a report, dashboard, or result with people, from a terminal or at
1649
+ the end of a Play. Writing the same name again replaces the page and keeps
1650
+ its URL, so a Play that runs daily can keep one page current.
1651
+ The sequence:
1652
+ 1. Write it. From a terminal: [[pages write <name> --file report.html
1653
+ --private]]. From a Play: ctx.pages.write(name, { public: false,
1654
+ content }). The URL, https://<label>.deepline.page/p/<name>, is in the
1655
+ output and stays the same for every write.
1656
+ 2. Choose who can open it. Every write must say private or public:
1657
+ private Workspace members, after signing in to Deepline.
1658
+ link Anyone holding a URL from [[pages links create <name>]]. A link
1659
+ opens one page, shows its current content, and expires
1660
+ (--expires-in 7d) or lasts until revoked (--permanent).
1661
+ public Anyone with the URL. Needs public pages enabled for the
1662
+ workspace; [[pages list]] says whether they are. A private page
1663
+ becomes public only through [[pages set-public <name>]], never
1664
+ through a write.
1665
+ 3. Manage it: [[pages list]], [[pages get <name>]],
1666
+ [[pages set-private <name>]], [[pages links list <name>]],
1667
+ [[pages links revoke <name> <link-id>]], [[pages delete <name>]]. The
1668
+ Pages section of the dashboard has the same actions.
1669
+ What visitors see:
1670
+ HTML, SVG, and XML open in a sandbox under a "Hosted on Deepline" tab.
1671
+ Scripts, forms, and https requests work. A link to another site asks the
1672
+ visitor before it opens. Other types, and requests from curl or code, get
1673
+ the bytes exactly as written.
1674
+ Cost:
1675
+ Free. Each new page counts toward the plan's page limit, which
1676
+ [[pages list]] prints; replacing a page does not.
1677
+ Avoid:
1678
+ Do not put secrets or credentials in a page, even a private one: anyone with
1679
+ a link sees everything on it. Do not write a new name per run to keep
1680
+ history; use one name so the URL stays stable.
1681
+ `
1682
+ },
1683
+ "pages write": {
1684
+ rolloutFeature: "hosted-pages",
1685
+ core: `
1686
+ Purpose:
1687
+ Create a page, or replace all of its content and its description.
1688
+ [[cli:
1689
+ Input:
1690
+ <name>: 1-63 lowercase letters, digits, or hyphens, starting and ending
1691
+ with a letter or digit. --file <path> (required, up to 3 MB). Exactly one
1692
+ of --private or --public. --content-type <type> overrides the type taken
1693
+ from the extension (.html .htm .json .csv .md .txt .svg .png .jpg .jpeg
1694
+ .gif .webp .pdf; anything else is application/octet-stream).
1695
+ --description <text>. --json prints JSON.
1696
+ ]]
1697
+ Output (JSON):
1698
+ name, url, public (who can open it after this write), revision (increases
1699
+ only when the content changes), created (true for a new page), and
1700
+ warnings[] (for example, a request for public that kept a page private).
1701
+ Visibility:
1702
+ --private makes a public page private at once. --public publishes a new
1703
+ page. On a page that is already private, --public writes the content, keeps
1704
+ the page private, and adds a warning; run [[pages set-public <name>]] to
1705
+ publish it. Without public pages enabled, --public fails with
1706
+ public_pages_not_enabled and writes nothing.
1707
+ Errors (code):
1708
+ name_invalid, content_type_invalid, description_too_long,
1709
+ document_too_large, page_limit_reached, page_deleting,
1710
+ public_pages_not_enabled, pages_not_enabled.
1711
+ Cost:
1712
+ Free. Repeating a write is safe.
1713
+ Avoid:
1714
+ Do not use --public for something only your team should see. Write it
1715
+ --private and share it with [[pages links create <name>]].
1716
+ `
1717
+ },
1718
+ "pages links create": {
1719
+ rolloutFeature: "hosted-pages",
1720
+ core: `
1721
+ Purpose:
1722
+ Create a URL that opens one page without signing in.
1723
+ When:
1724
+ To share a private page with someone outside the workspace, or for a limited
1725
+ time. Works without public pages enabled.
1726
+ [[cli:
1727
+ Input:
1728
+ <name>, then exactly one of --expires-in <duration> (30m, 12h, 7d) or
1729
+ --permanent. --label <text> says who the link is for. --json prints JSON.
1730
+ ]]
1731
+ Output (JSON):
1732
+ url (printed once and never again; Deepline keeps only a hash), id (pass it
1733
+ to [[pages links revoke <name> <link-id>]]), label, expires_at (null when
1734
+ permanent), created_at.
1735
+ Behavior:
1736
+ The link always shows the page's current content, keeps working after
1737
+ writes, and stops at once when revoked or when the page is deleted. A page
1738
+ can have up to 100 links; [[pages links list <name>]] lists them.
1739
+ Cost:
1740
+ Free.
1741
+ Avoid:
1742
+ Do not post a link anywhere public: it opens the page for anyone holding it.
1618
1743
  `
1619
1744
  },
1620
1745
  "sessions send": {