deepline 0.3.552 → 0.3.554

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 (323) hide show
  1. package/dist/bundling-sources/sdk/src/client-core.ts +107 -12
  2. package/dist/bundling-sources/sdk/src/compat.ts +239 -87
  3. package/dist/bundling-sources/sdk/src/config.ts +113 -2
  4. package/dist/bundling-sources/sdk/src/errors.ts +2 -0
  5. package/dist/bundling-sources/sdk/src/http-core.ts +118 -8
  6. package/dist/bundling-sources/sdk/src/index.ts +2 -0
  7. package/dist/bundling-sources/sdk/src/integrations.ts +6 -4
  8. package/dist/bundling-sources/sdk/src/play.ts +3 -0
  9. package/dist/bundling-sources/sdk/src/plays/run-request.ts +1 -1
  10. package/dist/bundling-sources/sdk/src/release.ts +1 -1
  11. package/dist/bundling-sources/sdk/src/runs/watch-polling.ts +8 -1
  12. package/dist/bundling-sources/sdk/src/tool-calls.ts +2 -1
  13. package/dist/bundling-sources/sdk/src/tool-failure-hint.ts +104 -0
  14. package/dist/bundling-sources/sdk/src/types.ts +9 -1
  15. package/dist/bundling-sources/shared_libs/integration-contracts/billing-entitlements.ts +4 -2
  16. package/dist/bundling-sources/shared_libs/integration-contracts/billing-plan-skus.ts +25 -0
  17. package/dist/bundling-sources/shared_libs/monitors/action-actor.ts +2 -0
  18. package/dist/bundling-sources/shared_libs/monitors/billing/credit-recovery.ts +58 -4
  19. package/dist/bundling-sources/shared_libs/monitors/billing/policy-builders.ts +8 -0
  20. package/dist/bundling-sources/shared_libs/monitors/billing/pricing.ts +11 -0
  21. package/dist/bundling-sources/shared_libs/monitors/billing/types.ts +13 -0
  22. package/dist/bundling-sources/shared_libs/monitors/deactivation-reasons.ts +103 -5
  23. package/dist/bundling-sources/shared_libs/monitors/fleets/converge-admission.ts +133 -0
  24. package/dist/bundling-sources/shared_libs/monitors/fleets/fence-attention.ts +165 -0
  25. package/dist/bundling-sources/shared_libs/monitors/fleets/fence-release.ts +726 -0
  26. package/dist/bundling-sources/shared_libs/monitors/fleets/fence-walk.ts +274 -0
  27. package/dist/bundling-sources/shared_libs/monitors/fleets/issues.ts +1 -0
  28. package/dist/bundling-sources/shared_libs/monitors/fleets/limits.ts +28 -0
  29. package/dist/bundling-sources/shared_libs/monitors/fleets/provider-bulk-wait.ts +126 -0
  30. package/dist/bundling-sources/shared_libs/monitors/fleets/shared-payload.ts +189 -0
  31. package/dist/bundling-sources/shared_libs/monitors/http-error-response.ts +28 -0
  32. package/dist/bundling-sources/shared_libs/monitors/inbound-publish-key.ts +4 -0
  33. package/dist/bundling-sources/shared_libs/monitors/inventory-counter-errors.ts +25 -0
  34. package/dist/bundling-sources/shared_libs/monitors/org-monitor-limits.ts +65 -0
  35. package/dist/bundling-sources/shared_libs/monitors/package.json +9 -0
  36. package/dist/bundling-sources/shared_libs/monitors/provider-callback-verification.ts +152 -1
  37. package/dist/bundling-sources/shared_libs/monitors/provider-monitor-batch-operation.ts +6 -0
  38. package/dist/bundling-sources/shared_libs/monitors/provider-monitor-capability.ts +390 -10
  39. package/dist/bundling-sources/shared_libs/monitors/provider-monitor-errors.ts +34 -0
  40. package/dist/bundling-sources/shared_libs/monitors/provider-monitor-identity-claims.ts +66 -30
  41. package/dist/bundling-sources/shared_libs/monitors/provider-monitor-state.ts +30 -0
  42. package/dist/bundling-sources/shared_libs/monitors/provider-resource-failure.ts +26 -3
  43. package/dist/bundling-sources/shared_libs/monitors/signal-radars/inbound-dead-letter.ts +41 -13
  44. package/dist/bundling-sources/shared_libs/monitors/signal-radars/raw-receipt-causes.ts +219 -0
  45. package/dist/bundling-sources/shared_libs/monitors/snitcher-ip2company.ts +21 -10
  46. package/dist/bundling-sources/shared_libs/monitors/starter-templates.ts +13 -0
  47. package/dist/bundling-sources/shared_libs/monitors/tracking-provider-guidance.ts +6 -0
  48. package/dist/bundling-sources/shared_libs/monitors/tracking-provider-integrations.ts +13 -0
  49. package/dist/bundling-sources/shared_libs/observability/dlq.ts +1 -1
  50. package/dist/bundling-sources/shared_libs/observability/log-metadata.ts +5 -3
  51. package/dist/bundling-sources/shared_libs/observability/queue-health.ts +10 -1
  52. package/dist/bundling-sources/shared_libs/observability/queue-item-connectors.ts +1 -0
  53. package/dist/bundling-sources/shared_libs/observability/redaction.ts +24 -1
  54. package/dist/bundling-sources/shared_libs/observability/scheduled-jobs.json +168 -41
  55. package/dist/bundling-sources/shared_libs/observability/scheduled-work-manual.ts +1 -2
  56. package/dist/bundling-sources/shared_libs/play-data-plane/preview-r2-oidc.ts +188 -0
  57. package/dist/bundling-sources/shared_libs/play-data-plane/r2.ts +170 -16
  58. package/dist/bundling-sources/shared_libs/play-data-plane/runtime-sheet-storage-contract.ts +5 -0
  59. package/dist/bundling-sources/shared_libs/play-runtime/app-runtime-api.ts +68 -2
  60. package/dist/bundling-sources/shared_libs/play-runtime/context.ts +444 -39
  61. package/dist/bundling-sources/shared_libs/play-runtime/ctx-fetch-caller-deadline.ts +200 -0
  62. package/dist/bundling-sources/shared_libs/play-runtime/ctx-types.ts +6 -0
  63. package/dist/bundling-sources/shared_libs/play-runtime/deployment/runtime-topology.ts +21 -1
  64. package/dist/bundling-sources/shared_libs/play-runtime/durable-call-cache.ts +3 -2
  65. package/dist/bundling-sources/shared_libs/play-runtime/durable-summary-events.ts +70 -2
  66. package/dist/bundling-sources/shared_libs/play-runtime/durable-tool-identity.ts +3 -3
  67. package/dist/bundling-sources/shared_libs/play-runtime/execution-capabilities.ts +16 -0
  68. package/dist/bundling-sources/shared_libs/play-runtime/experiment-switches.ts +72 -0
  69. package/dist/bundling-sources/shared_libs/play-runtime/fixture-behavior.ts +1 -0
  70. package/dist/bundling-sources/shared_libs/play-runtime/governor/policy.ts +7 -1
  71. package/dist/bundling-sources/shared_libs/play-runtime/internal-bootstrap-token.ts +62 -0
  72. package/dist/bundling-sources/shared_libs/play-runtime/map-memory-limits.ts +74 -3
  73. package/dist/bundling-sources/shared_libs/play-runtime/output-size-limits.ts +31 -3
  74. package/dist/bundling-sources/shared_libs/play-runtime/play-http-request.ts +6 -0
  75. package/dist/bundling-sources/shared_libs/play-runtime/protocol.ts +8 -0
  76. package/dist/bundling-sources/shared_libs/play-runtime/query-result-dataset.ts +19 -0
  77. package/dist/bundling-sources/shared_libs/play-runtime/resource-governor.ts +39 -2
  78. package/dist/bundling-sources/shared_libs/play-runtime/run-failure.ts +9 -1
  79. package/dist/bundling-sources/shared_libs/play-runtime/run-identity.ts +33 -0
  80. package/dist/bundling-sources/shared_libs/play-runtime/run-ledger-projection-contract.ts +24 -0
  81. package/dist/bundling-sources/shared_libs/play-runtime/runner-app/index.ts +254 -44
  82. package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/backends/daytona-payload-transport.ts +87 -6
  83. package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/backends/modal.ts +241 -10
  84. package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/early-sandbox-egress.ts +161 -14
  85. package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/early-sandbox.ts +16 -3
  86. package/dist/bundling-sources/shared_libs/play-runtime/runtime-api-compression.ts +37 -0
  87. package/dist/bundling-sources/shared_libs/play-runtime/runtime-api-paths.ts +9 -0
  88. package/dist/bundling-sources/shared_libs/play-runtime/runtime-api.ts +259 -52
  89. package/dist/bundling-sources/shared_libs/play-runtime/runtime-authority.ts +13 -0
  90. package/dist/bundling-sources/shared_libs/play-runtime/runtime-constants.ts +30 -0
  91. package/dist/bundling-sources/shared_libs/play-runtime/runtime-operation-contract.ts +62 -1
  92. package/dist/bundling-sources/shared_libs/play-runtime/runtime-scheduler-topology.ts +36 -0
  93. package/dist/bundling-sources/shared_libs/play-runtime/runtime-sheet-row-transition.ts +36 -0
  94. package/dist/bundling-sources/shared_libs/play-runtime/runtime-speed-profile.ts +206 -2
  95. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/absurd-pool.ts +42 -0
  96. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/absurd-runtime-worker.ts +185 -64
  97. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/absurd-worker-slot-ledger.ts +157 -0
  98. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/early-sandbox-lane.ts +110 -2
  99. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/early-sandbox-listener-hint.ts +323 -0
  100. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/executor-attempt-standing.ts +72 -0
  101. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/integration-operation-value-storage.ts +23 -4
  102. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/postgres-workspace-purge.ts +199 -0
  103. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/postgres.ts +632 -66
  104. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/run-ledger-outbox-recovery.ts +517 -16
  105. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/runtime-api-origin.ts +1 -1
  106. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/runtime-receipt-value-storage.ts +9 -0
  107. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/runtime-worker-wake.ts +599 -2
  108. package/dist/bundling-sources/shared_libs/play-runtime/secret-resolution-retry-policy.ts +26 -1
  109. package/dist/bundling-sources/shared_libs/play-runtime/startup-read-tool-ids.ts +60 -0
  110. package/dist/bundling-sources/shared_libs/play-runtime/test-runtime-seams.ts +51 -0
  111. package/dist/bundling-sources/shared_libs/play-runtime/tool-call-retry-facts.ts +2 -0
  112. package/dist/bundling-sources/shared_libs/play-runtime/tool-execute-retry-policy.ts +113 -3
  113. package/dist/bundling-sources/shared_libs/play-runtime/tool-http-errors.ts +5 -7
  114. package/dist/bundling-sources/shared_libs/play-runtime/work-receipt-storage-contract.ts +2 -0
  115. package/dist/bundling-sources/shared_libs/play-runtime/workflow-executor-auth.ts +3 -0
  116. package/dist/bundling-sources/shared_libs/plays/authoring-contract.ts +40 -5
  117. package/dist/bundling-sources/shared_libs/plays/deploy/api-client.ts +3 -0
  118. package/dist/bundling-sources/shared_libs/plays/deploy/control-plane-types.ts +16 -0
  119. package/dist/bundling-sources/shared_libs/plays/deploy/run-deployment.ts +10 -41
  120. package/dist/bundling-sources/shared_libs/plays/extension-bridge.ts +33 -0
  121. package/dist/bundling-sources/shared_libs/plays/row-identity.ts +18 -1
  122. package/dist/bundling-sources/shared_libs/plays/tool-execution-error.ts +108 -0
  123. package/dist/bundling-sources/shared_libs/plays/trigger-config-contract.ts +14 -0
  124. package/dist/bundling-sources/shared_libs/product-notifications/catalog.ts +171 -0
  125. package/dist/bundling-sources/shared_libs/product-notifications/events.ts +27 -1
  126. package/dist/bundling-sources/shared_libs/security/email-blacklist.ts +9 -24
  127. package/dist/bundling-sources/shared_libs/security/secret-redaction.ts +178 -5
  128. package/dist/bundling-sources/shared_libs/security/signup-email-dns-screen.ts +148 -0
  129. package/dist/bundling-sources/shared_libs/tool-execution-error.ts +108 -0
  130. package/dist/cli/{auth-KVSBJZOX.mjs → auth-HJUNW7T2.mjs} +8 -7
  131. package/dist/cli/auth-SP6SKZJZ.js +44 -0
  132. package/dist/cli/{billing-FQREA7UA.js → billing-4TSA5HEC.js} +297 -161
  133. package/dist/cli/{billing-54RHFEBI.mjs → billing-SJYRJAQ2.mjs} +197 -61
  134. package/dist/cli/{chunk-4MK42735.js → chunk-2HMN5H54.js} +215 -130
  135. package/dist/cli/{chunk-UBKA33KY.mjs → chunk-2MGZAI54.mjs} +17 -0
  136. package/dist/cli/{chunk-EOPEYCY7.mjs → chunk-2ORPFQUA.mjs} +18 -18
  137. package/dist/cli/{chunk-RQZQVFCJ.js → chunk-2OVHNHCF.js} +2 -2
  138. package/dist/cli/{chunk-QX7LFGJR.mjs → chunk-33WRQSQ2.mjs} +1874 -91
  139. package/dist/cli/{chunk-UPMRIVZB.js → chunk-3IKGZ4CG.js} +74 -13
  140. package/dist/cli/{chunk-EUPVF4SU.mjs → chunk-3Z4VFCXO.mjs} +8 -8
  141. package/dist/cli/{chunk-GKYAYLRI.js → chunk-4DOFGIEJ.js} +27 -31
  142. package/dist/cli/{chunk-4TALT2M3.mjs → chunk-52Q5KETX.mjs} +69 -3
  143. package/dist/cli/{chunk-RBEUVDZF.js → chunk-5CYZHOKI.js} +249 -107
  144. package/dist/cli/{chunk-LX35AXTN.mjs → chunk-5TYLSS4Q.mjs} +6 -6
  145. package/dist/cli/{chunk-IYSTRCLX.mjs → chunk-62AUAWQV.mjs} +4 -4
  146. package/dist/cli/{chunk-ZIAXDBXX.mjs → chunk-62HWJXST.mjs} +17 -21
  147. package/dist/cli/{chunk-QY3ZNU6Z.mjs → chunk-6EXOAT6T.mjs} +2 -2
  148. package/dist/cli/{chunk-EITMD3A5.js → chunk-6VLFQZK6.js} +8 -8
  149. package/dist/cli/{chunk-ADRC5I3R.js → chunk-7OWI736E.js} +30 -30
  150. package/dist/cli/{chunk-NURW5XH4.mjs → chunk-ASB47RXJ.mjs} +1 -1
  151. package/dist/cli/{chunk-PTVD2GVQ.mjs → chunk-B6HO2XWH.mjs} +13 -13
  152. package/dist/cli/{chunk-YJHE3O5M.mjs → chunk-BOZAP2EM.mjs} +141 -56
  153. package/dist/cli/chunk-BVXIGOBZ.js +32 -0
  154. package/dist/cli/{chunk-XDVT3GOM.js → chunk-CFJFUVX2.js} +18 -1
  155. package/dist/cli/{chunk-WE5HES3H.mjs → chunk-D6Z6POKE.mjs} +151 -43
  156. package/dist/cli/{chunk-AZQ264ID.mjs → chunk-DSKSFFK2.mjs} +1 -1
  157. package/dist/cli/{chunk-SHLFOPD6.js → chunk-DUBXUAAO.js} +5 -5
  158. package/dist/cli/{chunk-V436Z54K.js → chunk-E2G2DNAB.js} +3 -1
  159. package/dist/cli/{chunk-HO3XK3R7.js → chunk-E74KGKFZ.js} +8 -8
  160. package/dist/cli/{chunk-77AAAGVB.js → chunk-ECHKAC7M.js} +2 -2
  161. package/dist/cli/{chunk-KWSH5T7K.js → chunk-EN5NHCCQ.js} +21 -21
  162. package/dist/cli/{chunk-6RZOWL2V.mjs → chunk-F7CMRKSK.mjs} +1 -1
  163. package/dist/cli/{chunk-JWUAX6OP.js → chunk-FBAFX43W.js} +11 -11
  164. package/dist/cli/{chunk-AQWQ2BFX.mjs → chunk-FXQ3JKE3.mjs} +1 -1
  165. package/dist/cli/{chunk-QPKH23EC.mjs → chunk-GA2M3G3Y.mjs} +5 -5
  166. package/dist/cli/{chunk-G4O75EXF.js → chunk-GHT2NDL7.js} +18 -18
  167. package/dist/cli/{chunk-MF2GHZDO.js → chunk-GRZENGNE.js} +2 -2
  168. package/dist/cli/{chunk-4UUR4TCH.js → chunk-IVZKMJUK.js} +1875 -92
  169. package/dist/cli/{chunk-FTJLJCE5.mjs → chunk-KVBQY4ST.mjs} +3 -3
  170. package/dist/cli/{chunk-S5S355UY.mjs → chunk-KZHBDMGF.mjs} +12 -12
  171. package/dist/cli/{chunk-BBTKAASQ.js → chunk-LFQJW4S2.js} +42 -1
  172. package/dist/cli/{chunk-6ZORHRKB.mjs → chunk-LRZGS6RZ.mjs} +2 -0
  173. package/dist/cli/{chunk-2WFPHBR4.js → chunk-LY5MMXFF.js} +47 -29
  174. package/dist/cli/{chunk-BAIST2BR.js → chunk-M7STM3MZ.js} +36 -36
  175. package/dist/cli/{chunk-SL6MYJYM.js → chunk-MJTVX4QK.js} +35 -35
  176. package/dist/cli/{chunk-45PVGZST.js → chunk-OPTV7D2V.js} +508 -361
  177. package/dist/cli/{chunk-PFO3ISXA.js → chunk-OVEYWO4H.js} +174 -129
  178. package/dist/cli/{chunk-BGBJV26E.mjs → chunk-PC2FTUCP.mjs} +4 -4
  179. package/dist/cli/{chunk-WLN3SUIA.js → chunk-PQQMPUCZ.js} +3 -3
  180. package/dist/cli/{chunk-HYC4MKGK.mjs → chunk-Q7ACILL2.mjs} +5 -5
  181. package/dist/cli/{chunk-CBV7AKWM.js → chunk-R6DZ6NQ2.js} +5 -5
  182. package/dist/cli/{chunk-57VZVF5D.mjs → chunk-RBBTCYQB.mjs} +3 -3
  183. package/dist/cli/{chunk-F2LH7TGF.js → chunk-RTHMGSZX.js} +21 -21
  184. package/dist/cli/{chunk-YLTMXJFC.mjs → chunk-S6W6SJ6E.mjs} +158 -16
  185. package/dist/cli/chunk-STXDSVQZ.mjs +32 -0
  186. package/dist/cli/{chunk-WEHCBH5R.mjs → chunk-TGUQET3O.mjs} +67 -6
  187. package/dist/cli/{chunk-IHRKLXZN.js → chunk-TJ6HLN56.js} +5 -5
  188. package/dist/cli/{chunk-3FD5EQ62.js → chunk-TOO3YM5N.js} +6 -7
  189. package/dist/cli/{chunk-QILKGXYF.mjs → chunk-UBBYHB2B.mjs} +2 -2
  190. package/dist/cli/{chunk-6PRW5UBA.mjs → chunk-UC4BDZKI.mjs} +299 -69
  191. package/dist/cli/{chunk-634ZDA3F.js → chunk-UNNOZKRT.js} +1 -1
  192. package/dist/cli/{chunk-IDVVIXPJ.js → chunk-UOT7HPBH.js} +41 -41
  193. package/dist/cli/{chunk-6YCA5NKJ.js → chunk-UYCZFQYQ.js} +12 -12
  194. package/dist/cli/{chunk-7IKQKKNX.js → chunk-VIUUTEHY.js} +90 -24
  195. package/dist/cli/{chunk-Z5TSLLOW.mjs → chunk-VLO5NFH2.mjs} +63 -18
  196. package/dist/cli/{chunk-U7QRMBIY.mjs → chunk-VQ75KX7G.mjs} +5 -5
  197. package/dist/cli/{chunk-4NQF6KJ3.js → chunk-VV4XGZ24.js} +13 -13
  198. package/dist/cli/{chunk-FSIVF2SI.mjs → chunk-VZGLIK5U.mjs} +1 -1
  199. package/dist/cli/{chunk-S46HWQKO.js → chunk-W6CZDTIR.js} +69 -69
  200. package/dist/cli/{chunk-XVB7V4N7.js → chunk-WL7P32PI.js} +161 -53
  201. package/dist/cli/{chunk-DJ2JDK4O.mjs → chunk-XD3MFTHA.mjs} +1 -1
  202. package/dist/cli/{chunk-GGGAEVCX.mjs → chunk-XFZX6FNM.mjs} +40 -22
  203. package/dist/cli/{chunk-AWJPDPMA.mjs → chunk-XU6QNM4D.mjs} +1 -1
  204. package/dist/cli/{chunk-QAORXEY3.mjs → chunk-YCOGPOUX.mjs} +6 -7
  205. package/dist/cli/{chunk-VQALXEXO.js → chunk-YQKCH4R7.js} +348 -118
  206. package/dist/cli/{chunk-6O5HOODW.mjs → chunk-YY55NYAH.mjs} +207 -60
  207. package/dist/cli/{chunk-JL2OTMSG.mjs → chunk-Z3A2S3QM.mjs} +41 -0
  208. package/dist/cli/command-docs.js +3 -3
  209. package/dist/cli/command-docs.mjs +2 -2
  210. package/dist/cli/{concurrent-runs-help-Q4KPAUJX.mjs → concurrent-runs-help-O3Q5IPLF.mjs} +9 -8
  211. package/dist/cli/concurrent-runs-help-ZFRZWX5V.js +22 -0
  212. package/dist/cli/{csv-F5VAGX4K.js → csv-4ZQ2RATI.js} +16 -15
  213. package/dist/cli/{csv-2PTVDNO6.mjs → csv-Y3BFPEM6.mjs} +7 -6
  214. package/dist/cli/{db-IEDXAUF7.mjs → db-3JYY4JNN.mjs} +17 -17
  215. package/dist/cli/{db-Z3OIUFMM.js → db-VEIFS4M7.js} +45 -45
  216. package/dist/cli/describe-EVJ4MFVU.mjs +50 -0
  217. package/dist/cli/describe-FG625QPF.js +50 -0
  218. package/dist/cli/describe-core.d.mts +3 -3
  219. package/dist/cli/describe-core.d.ts +3 -3
  220. package/dist/cli/describe-core.js +7 -7
  221. package/dist/cli/describe-core.mjs +6 -6
  222. package/dist/cli/{executions-H6H5655J.js → executions-HPZXOOVX.js} +12 -12
  223. package/dist/cli/{executions-R3LP74QN.mjs → executions-PCXZKEHM.mjs} +10 -10
  224. package/dist/cli/{feedback-WL3MRVT5.mjs → feedback-Y6VKZNY6.mjs} +9 -8
  225. package/dist/cli/{feedback-VFOUR66B.js → feedback-ZKFHFVL6.js} +17 -16
  226. package/dist/cli/git-RUBMALLH.js +26 -0
  227. package/dist/cli/{git-YX2J4GCI.mjs → git-UMPR2QYC.mjs} +8 -7
  228. package/dist/cli/index.js +170 -158
  229. package/dist/cli/index.mjs +60 -48
  230. package/dist/cli/{integrations-E2JZYKHS.js → integrations-3GQCTRTF.js} +23 -27
  231. package/dist/cli/{integrations-5ZK5KLVP.mjs → integrations-V3TM6XAB.mjs} +15 -19
  232. package/dist/cli/{legacy-noops-SMN3GSXY.mjs → legacy-noops-JZBUD7ZE.mjs} +9 -8
  233. package/dist/cli/{legacy-noops-3VW4IJTH.js → legacy-noops-VYCO7NGW.js} +12 -11
  234. package/dist/cli/{mcp-UQV2K4EW.js → mcp-4OIWTCE6.js} +121 -48
  235. package/dist/cli/{mcp-V6MGCYAG.mjs → mcp-PH4KZ76P.mjs} +100 -27
  236. package/dist/cli/{monitors-R3BBDCRC.js → monitors-E2A6VPBY.js} +221 -186
  237. package/dist/cli/{monitors-GGKS5W6M.mjs → monitors-SSMGIDGX.mjs} +58 -23
  238. package/dist/cli/org-SFDKSK5D.mjs +2289 -0
  239. package/dist/cli/org-WUDZGWBT.js +2289 -0
  240. package/dist/cli/outcomes-QT7LQBPK.mjs +2865 -0
  241. package/dist/cli/outcomes-Y7SZTLSL.js +2865 -0
  242. package/dist/cli/{play-MDWPR4XG.mjs → play-EK7KSFPL.mjs} +376 -106
  243. package/dist/cli/{play-2MVO27VO.js → play-GDNHCRRR.js} +1150 -880
  244. package/dist/cli/{providers-AKDYFZJZ.mjs → providers-FVZLRXAU.mjs} +10 -10
  245. package/dist/cli/{providers-2AACRUZH.js → providers-ZKOSECLV.js} +13 -13
  246. package/dist/cli/{quickstart-H6IV3PV3.js → quickstart-KSDKIXYD.js} +9 -8
  247. package/dist/cli/{quickstart-QDGRJFZY.mjs → quickstart-UJZ6PIQV.mjs} +7 -6
  248. package/dist/cli/{run-RTSQNGRD.mjs → run-E7MZ7P35.mjs} +35 -33
  249. package/dist/cli/{run-2634REDK.js → run-PD2BBG6S.js} +55 -53
  250. package/dist/cli/run-identity-LMLFMACS.js +31 -0
  251. package/dist/cli/{run-identity-MRNCEGV2.mjs → run-identity-MAZ7ANH5.mjs} +9 -3
  252. package/dist/cli/search-TKSPTPHA.js +32 -0
  253. package/dist/cli/{search-6AOJ4XPP.mjs → search-VTFUFTOY.mjs} +11 -11
  254. package/dist/cli/{search-output-S5ODBL5E.js → search-output-G2AGDCOY.js} +13 -12
  255. package/dist/cli/{search-output-6ADMTOU5.mjs → search-output-PFVXQCWA.mjs} +10 -9
  256. package/dist/cli/{secrets-TFIFBFB3.mjs → secrets-7CIMEMX7.mjs} +11 -11
  257. package/dist/cli/{secrets-LHCIIHMT.js → secrets-BCOQ4U7U.js} +20 -20
  258. package/dist/cli/sessions-4CO556VD.js +23 -0
  259. package/dist/cli/{sessions-WHBVUHVW.mjs → sessions-IUCQZEF7.mjs} +9 -8
  260. package/dist/cli/{settings-EBONWL5C.mjs → settings-KZN62UQK.mjs} +16 -16
  261. package/dist/cli/{settings-CP4FVK2W.js → settings-REL4736M.js} +89 -89
  262. package/dist/cli/{setup-I5AZE3IU.mjs → setup-2P7OG3OU.mjs} +22 -24
  263. package/dist/cli/{setup-LFGHTNLQ.js → setup-2XIVBBCS.js} +62 -64
  264. package/dist/cli/skills-JYT5DEY6.js +37 -0
  265. package/dist/cli/{skills-W76AO5XE.mjs → skills-VIGNDJKI.mjs} +10 -9
  266. package/dist/cli/tools-NTVUQ2TG.js +57 -0
  267. package/dist/cli/{tools-7IJHGF6W.mjs → tools-W3QT5EJY.mjs} +24 -24
  268. package/dist/cli/{update-GFOPZTHY.mjs → update-GZVBVMY3.mjs} +14 -11
  269. package/dist/cli/update-TWJZPUZM.js +37 -0
  270. package/dist/cli/{views-D4NX4SBG.mjs → views-BOGEH424.mjs} +47 -49
  271. package/dist/cli/{views-BPL2TQJ4.js → views-TOLJNLSV.js} +62 -64
  272. package/dist/cli/{workflow-ZYNAUCKC.js → workflow-ENWFRK5M.js} +23 -23
  273. package/dist/cli/{workflow-YXP42FUI.mjs → workflow-VDG2FDQV.mjs} +13 -13
  274. package/dist/{client-CyXGrO4D.d.mts → client-B8f7RNF8.d.mts} +1 -1
  275. package/dist/{client-Bf3IpUKN.d.ts → client-C5TgXmJQ.d.ts} +1 -1
  276. package/dist/{client-core-BxsLnXlm.d.mts → client-core-SLLGBTht.d.mts} +268 -23
  277. package/dist/{client-core-BWd0lX0Z.d.ts → client-core-p0sOxnkl.d.ts} +268 -23
  278. package/dist/{compiler-manifest-BqwVrOri.d.ts → compiler-manifest-D_zZEh9Q.d.mts} +70 -5
  279. package/dist/{compiler-manifest-BqwVrOri.d.mts → compiler-manifest-D_zZEh9Q.d.ts} +70 -5
  280. package/dist/{errors-BU8FB99X.d.mts → errors-CZCrBFrQ.d.mts} +1 -1
  281. package/dist/{errors-DfVN_FUG.d.ts → errors-DsUkLrdZ.d.ts} +1 -1
  282. package/dist/{index-BGnvtYGc.d.ts → index-B6RTOZGC.d.ts} +1 -1
  283. package/dist/{index-DjZgwpGw.d.mts → index-DeOVrEmX.d.mts} +1 -1
  284. package/dist/index.d.mts +7 -7
  285. package/dist/index.d.ts +7 -7
  286. package/dist/index.js +66 -55
  287. package/dist/index.mjs +25 -14
  288. package/dist/install-integrity.json +163 -144
  289. package/dist/plays/bundle-play-file.d.mts +3 -3
  290. package/dist/plays/bundle-play-file.d.ts +3 -3
  291. package/dist/plays/bundle-play-file.mjs +23 -4
  292. package/dist/plays/csv-data-input.js +3 -3
  293. package/dist/plays/csv-data-input.mjs +2 -2
  294. package/dist/plays/play-description.d.mts +2 -2
  295. package/dist/plays/play-description.d.ts +2 -2
  296. package/dist/plays/run-request.d.mts +2 -2
  297. package/dist/plays/run-request.d.ts +2 -2
  298. package/dist/plays/run-request.js +4 -4
  299. package/dist/plays/run-request.mjs +3 -3
  300. package/dist/release.d.mts +1 -1
  301. package/dist/release.d.ts +1 -1
  302. package/dist/release.js +2 -2
  303. package/dist/release.mjs +1 -1
  304. package/dist/server.d.mts +4 -4
  305. package/dist/server.d.ts +4 -4
  306. package/dist/server.js +15 -13
  307. package/dist/server.mjs +9 -7
  308. package/package.json +1 -1
  309. package/dist/cli/auth-MMNVWATX.js +0 -43
  310. package/dist/cli/chunk-AID3OYVJ.js +0 -8
  311. package/dist/cli/chunk-OVDNJAJN.mjs +0 -8
  312. package/dist/cli/concurrent-runs-help-FQAIHKKC.js +0 -21
  313. package/dist/cli/describe-QDANCTS3.mjs +0 -50
  314. package/dist/cli/describe-VUTT5ZKU.js +0 -50
  315. package/dist/cli/git-ETB3GH3K.js +0 -25
  316. package/dist/cli/org-GRYVMNSW.js +0 -1282
  317. package/dist/cli/org-Z37NGJV4.mjs +0 -1282
  318. package/dist/cli/run-identity-G257GQED.js +0 -25
  319. package/dist/cli/search-VTW2YNBS.js +0 -32
  320. package/dist/cli/sessions-CJ4FJ2WB.js +0 -22
  321. package/dist/cli/skills-R7EBXREW.js +0 -36
  322. package/dist/cli/tools-V7U2BDXM.js +0 -57
  323. package/dist/cli/update-4COPZETK.js +0 -34
@@ -0,0 +1,37 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
+
3
+
4
+
5
+
6
+
7
+
8
+
9
+
10
+
11
+ var _chunkWL7P32PIjs = require('./chunk-WL7P32PI.js');
12
+ require('./chunk-ECHKAC7M.js');
13
+ require('./chunk-UOT7HPBH.js');
14
+ require('./chunk-2HMN5H54.js');
15
+ require('./chunk-PQQMPUCZ.js');
16
+ require('./chunk-YQKCH4R7.js');
17
+ require('./chunk-VIUUTEHY.js');
18
+ require('./chunk-5CYZHOKI.js');
19
+ require('./chunk-6VLFQZK6.js');
20
+ require('./chunk-XNYIZMNQ.js');
21
+ require('./chunk-LFQJW4S2.js');
22
+ require('./chunk-CFJFUVX2.js');
23
+ require('./chunk-UNNOZKRT.js');
24
+ require('./chunk-OG64RBAC.js');
25
+ require('./chunk-RLX5ZFNX.js');
26
+ require('./chunk-COGTRVWW.js');
27
+
28
+
29
+
30
+
31
+
32
+
33
+
34
+
35
+
36
+
37
+ exports.canAutomaticallyApplyUpdatePlan = _chunkWL7P32PIjs.canAutomaticallyApplyUpdatePlan; exports.compareUpdateVersions = _chunkWL7P32PIjs.compareUpdateVersions; exports.publishedVersionSupportsPin = _chunkWL7P32PIjs.publishedVersionSupportsPin; exports.registerUpdateCommand = _chunkWL7P32PIjs.registerUpdateCommand; exports.resolveInstalledVersionIfLatest = _chunkWL7P32PIjs.resolveInstalledVersionIfLatest; exports.resolveUpdatePlan = _chunkWL7P32PIjs.resolveUpdatePlan; exports.runAutomaticUpdatePlan = _chunkWL7P32PIjs.runAutomaticUpdatePlan; exports.runUpdateCommand = _chunkWL7P32PIjs.runUpdateCommand; exports.runUpdatePlan = _chunkWL7P32PIjs.runUpdatePlan;
@@ -1,22 +1,22 @@
1
1
  import {
2
2
  DeeplineClient
3
- } from "./chunk-QY3ZNU6Z.mjs";
4
- import "./chunk-Z5TSLLOW.mjs";
3
+ } from "./chunk-6EXOAT6T.mjs";
4
+ import "./chunk-VLO5NFH2.mjs";
5
5
  import "./chunk-FZHMNK6F.mjs";
6
- import "./chunk-LX35AXTN.mjs";
6
+ import "./chunk-5TYLSS4Q.mjs";
7
7
  import "./chunk-PSX3WHIH.mjs";
8
- import "./chunk-UBKA33KY.mjs";
9
8
  import {
10
9
  printCommandEnvelope
11
- } from "./chunk-6PRW5UBA.mjs";
10
+ } from "./chunk-UC4BDZKI.mjs";
12
11
  import {
13
12
  cliFeatureEnabled
14
- } from "./chunk-4TALT2M3.mjs";
15
- import "./chunk-YLTMXJFC.mjs";
16
- import "./chunk-NURW5XH4.mjs";
13
+ } from "./chunk-52Q5KETX.mjs";
14
+ import "./chunk-S6W6SJ6E.mjs";
15
+ import "./chunk-ASB47RXJ.mjs";
17
16
  import "./chunk-DLIRSHV6.mjs";
18
- import "./chunk-JL2OTMSG.mjs";
19
- import "./chunk-AQWQ2BFX.mjs";
17
+ import "./chunk-Z3A2S3QM.mjs";
18
+ import "./chunk-2MGZAI54.mjs";
19
+ import "./chunk-FXQ3JKE3.mjs";
20
20
  import "./chunk-WZYKRD7T.mjs";
21
21
  import "./chunk-KRD6H754.mjs";
22
22
 
@@ -47,11 +47,22 @@ async function readJsonOption(value, flag) {
47
47
  throw new Error(`${flag} takes JSON, or @path to a JSON file.`);
48
48
  }
49
49
  }
50
+ var VIEW_ACCESS_WORDS = {
51
+ workspace: "workspace-only (people in the view's workspace)",
52
+ org: "org-visible (every org member)",
53
+ public: "public"
54
+ };
55
+ function parseViewAccess(value) {
56
+ if (value === "workspace" || value === "org" || value === "public") {
57
+ return value;
58
+ }
59
+ throw new Error("Access is workspace, org, or public.");
60
+ }
50
61
  function viewLines(view) {
51
62
  return [
52
63
  view.name,
53
64
  ` ${view.url}`,
54
- ` id ${view.id} \xB7 Play ${view.play} \xB7 ${view.access === "public" ? "public" : "workspace members"}`,
65
+ ` id ${view.id} \xB7 Play ${view.play} \xB7 ${VIEW_ACCESS_WORDS[view.access] ?? view.access}`,
55
66
  ...view.description ? [` ${view.description}`] : []
56
67
  ];
57
68
  }
@@ -67,7 +78,7 @@ Examples:
67
78
  deepline views set-access <id> public
68
79
  `
69
80
  );
70
- views.command("list").description("List this workspace's views.").option("--cursor <cursor>", "Continue from a previous page of results").option("--limit <n>", "Results per request, up to 100", Number).option("--json", "Emit raw JSON response").action(
81
+ views.command("list").description("List this org's views.").option("--cursor <cursor>", "Continue from a previous page of results").option("--limit <n>", "Results per request, up to 100", Number).option("--json", "Emit raw JSON response").action(
71
82
  async (options) => run(async () => {
72
83
  const result = await new DeeplineClient().listViews({
73
84
  cursor: options.cursor,
@@ -91,10 +102,7 @@ Examples:
91
102
  ]);
92
103
  })
93
104
  );
94
- views.command("create").description("Create a view that shows a Play's runs at a fixed URL.").requiredOption("--name <name>", "View name").requiredOption(
95
- "--play <play>",
96
- "Play in this workspace, or prebuilt/<name>"
97
- ).option(
105
+ views.command("create").description("Create a view that shows a Play's runs at a fixed URL.").requiredOption("--name <name>", "View name").requiredOption("--play <play>", "Play in this org, or prebuilt/<name>").option(
98
106
  "--input <json>",
99
107
  "Saved input Refresh runs the Play with (JSON or @file)"
100
108
  ).option("--description <text>", "What the view is").option("--json", "Emit raw JSON response").addHelpText(
@@ -123,9 +131,7 @@ Examples:
123
131
  ]);
124
132
  })
125
133
  );
126
- views.command("edit <id>").description(
127
- "Change a view's name, Play, saved input, or description."
128
- ).option("--name <name>", "New name").option("--play <play>", "Play in this workspace, or prebuilt/<name>").option(
134
+ views.command("edit <id>").description("Change a view's name, Play, saved input, or description.").option("--name <name>", "New name").option("--play <play>", "Play in this org, or prebuilt/<name>").option(
129
135
  "--input <json>",
130
136
  "Saved input Refresh runs the Play with (JSON or @file)"
131
137
  ).option("--description <text>", "What the view is").option("--json", "Emit raw JSON response").action(
@@ -142,17 +148,10 @@ Examples:
142
148
  } : {}
143
149
  };
144
150
  if (Object.keys(fields).length === 0) {
145
- throw new Error(
146
- "Nothing to change. See: deepline views edit --help"
147
- );
151
+ throw new Error("Nothing to change. See: deepline views edit --help");
148
152
  }
149
153
  const view = await new DeeplineClient().updateView(id, fields);
150
- print(
151
- "views edit",
152
- options.json,
153
- view,
154
- viewLines(view)
155
- );
154
+ print("views edit", options.json, view, viewLines(view));
156
155
  })
157
156
  );
158
157
  views.command("runs <id>").description("List runs of the view's Play, newest first.").option("--limit <n>", "Runs to list, up to 100", Number).option("--json", "Emit raw JSON response").action(
@@ -184,33 +183,27 @@ Examples:
184
183
  })
185
184
  );
186
185
  views.command("set-access <id> <access>").description(
187
- "Choose who can open a view: workspace or public. Public shows every run of its Play to anyone with the link."
186
+ "Choose who can open a view: workspace (people in the view's workspace; a view in a named workspace only), org (every org member), or public. Public shows every run of its Play to anyone with the link. Refreshing and managing a view stay with its workspace."
188
187
  ).option("--json", "Emit raw JSON response").action(
189
188
  async (id, access, options) => run(async () => {
190
- if (access !== "workspace" && access !== "public") {
191
- throw new Error("Access is workspace or public.");
192
- }
193
189
  const view = await new DeeplineClient().setViewAccess(
194
190
  id,
195
- access
196
- );
197
- print(
198
- "views set-access",
199
- options.json,
200
- view,
201
- viewLines(view)
191
+ parseViewAccess(access)
202
192
  );
193
+ print("views set-access", options.json, view, viewLines(view));
203
194
  })
204
195
  );
205
196
  const links = views.command("links").description(
206
- "Share a view with people outside the workspace through signed links, which can expire, be revoked, and be emailed from Deepline."
197
+ "Share a view with people outside the org through signed links, which can expire, be revoked, and be emailed from Deepline."
207
198
  );
208
199
  function linkLine(link) {
209
200
  const expires = link.expires_at === null ? "no expiry" : `expires ${new Date(link.expires_at).toISOString()}`;
210
201
  const sent = link.sent_to.length ? ` \xB7 sent to ${link.sent_to.join(", ")}` : "";
211
202
  return `${link.id} ${link.status} ${link.label ?? "(no label)"} ${expires}${sent}`;
212
203
  }
213
- links.command("list <id>", { isDefault: true }).description("List a view's share links. Their URLs are shown only once, when created.").option("--json", "Emit raw JSON response").action(
204
+ links.command("list <id>", { isDefault: true }).description(
205
+ "List a view's share links. Their URLs are shown only once, when created."
206
+ ).option("--json", "Emit raw JSON response").action(
214
207
  async (id, options) => run(async () => {
215
208
  const result = await new DeeplineClient().listViewShareLinks(id);
216
209
  print(
@@ -223,7 +216,13 @@ Examples:
223
216
  );
224
217
  links.command("create <id>").description(
225
218
  "Create a share link. Whoever holds it can open the view, see every run and its input, but not refresh it or start Plays. The URL is printed once; keep it."
226
- ).requiredOption("--expires <expiry>", "How long the link lasts: 1d, 7d, 30d or never").option("--label <label>", "What the link is for, shown in the list").option("--email <emails>", "Comma-separated addresses Deepline emails the link to").option("--json", "Emit raw JSON response").action(
219
+ ).requiredOption(
220
+ "--expires <expiry>",
221
+ "How long the link lasts: 1d, 7d, 30d or never"
222
+ ).option("--label <label>", "What the link is for, shown in the list").option(
223
+ "--email <emails>",
224
+ "Comma-separated addresses Deepline emails the link to"
225
+ ).option("--json", "Emit raw JSON response").action(
227
226
  async (id, options) => run(async () => {
228
227
  const emails = options.email ? String(options.email).split(",").map((email) => email.trim()).filter(Boolean) : void 0;
229
228
  const link = await new DeeplineClient().createViewShareLink(id, {
@@ -249,15 +248,13 @@ Examples:
249
248
  views.command("delete <id>").description("Delete a view. Its Play and runs are not touched.").option("--json", "Emit raw JSON response").action(
250
249
  async (id, options) => run(async () => {
251
250
  const result = await new DeeplineClient().deleteView(id);
252
- print("views delete", options.json, result, [
253
- `Deleted view ${id}.`
254
- ]);
251
+ print("views delete", options.json, result, [`Deleted view ${id}.`]);
255
252
  })
256
253
  );
257
254
  const permissions = views.command("permissions").description(
258
255
  "Show or change who may create, edit, delete, publish, and refresh views."
259
256
  );
260
- permissions.command("get", { isDefault: true }).description("Show the workspace's view rules and what you may do.").option("--json", "Emit raw JSON response").action(
257
+ permissions.command("get", { isDefault: true }).description("Show the org's view rules and what you may do.").option("--json", "Emit raw JSON response").action(
261
258
  async (options) => run(async () => {
262
259
  const result = await new DeeplineClient().getViewPermissions();
263
260
  print("views permissions", options.json, result, [
@@ -277,9 +274,10 @@ Examples:
277
274
  "setAccess",
278
275
  "refresh"
279
276
  ];
280
- permissions.command("set").description(
281
- "Change view rules (admins only). Each is members or admins."
282
- ).option("--create <level>", "Create views").option("--edit <level>", "Edit views").option("--delete <level>", "Delete views").option("--set-access <level>", "Make views public or workspace-only, and manage share links").option("--refresh <level>", "Refresh views and start Plays from them").option("--json", "Emit raw JSON response").action(
277
+ permissions.command("set").description("Change view rules (admins only). Each is members or admins.").option("--create <level>", "Create views").option("--edit <level>", "Edit views").option("--delete <level>", "Delete views").option(
278
+ "--set-access <level>",
279
+ "Change who can open views (workspace, org or public), and manage share links"
280
+ ).option("--refresh <level>", "Refresh views and start Plays from them").option("--json", "Emit raw JSON response").action(
283
281
  async (options) => run(async () => {
284
282
  const rules = {};
285
283
  for (const verb of verbs) {
@@ -1,22 +1,22 @@
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 _chunkSHLFOPD6js = require('./chunk-SHLFOPD6.js');
4
- require('./chunk-PFO3ISXA.js');
3
+ var _chunkDUBXUAAOjs = require('./chunk-DUBXUAAO.js');
4
+ require('./chunk-OVEYWO4H.js');
5
5
  require('./chunk-4WAM6TLD.js');
6
- require('./chunk-SL6MYJYM.js');
6
+ require('./chunk-MJTVX4QK.js');
7
7
  require('./chunk-PMH4GLMD.js');
8
- require('./chunk-XDVT3GOM.js');
9
8
 
10
9
 
11
- var _chunkVQALXEXOjs = require('./chunk-VQALXEXO.js');
10
+ var _chunkYQKCH4R7js = require('./chunk-YQKCH4R7.js');
12
11
 
13
12
 
14
- var _chunk7IKQKKNXjs = require('./chunk-7IKQKKNX.js');
15
- require('./chunk-RBEUVDZF.js');
16
- require('./chunk-EITMD3A5.js');
13
+ var _chunkVIUUTEHYjs = require('./chunk-VIUUTEHY.js');
14
+ require('./chunk-5CYZHOKI.js');
15
+ require('./chunk-6VLFQZK6.js');
17
16
  require('./chunk-XNYIZMNQ.js');
18
- require('./chunk-BBTKAASQ.js');
19
- require('./chunk-634ZDA3F.js');
17
+ require('./chunk-LFQJW4S2.js');
18
+ require('./chunk-CFJFUVX2.js');
19
+ require('./chunk-UNNOZKRT.js');
20
20
  require('./chunk-OG64RBAC.js');
21
21
  require('./chunk-COGTRVWW.js');
22
22
 
@@ -24,7 +24,7 @@ require('./chunk-COGTRVWW.js');
24
24
  var _promises = require('fs/promises');
25
25
  var VIEWS_FEATURE = "views";
26
26
  function print(command, json, data, lines) {
27
- _chunkVQALXEXOjs.printCommandEnvelope.call(void 0,
27
+ _chunkYQKCH4R7js.printCommandEnvelope.call(void 0,
28
28
  { command, ...data, render: { sections: [{ title: command, lines }] } },
29
29
  { json: Boolean(json), text: `${lines.join("\n")}
30
30
  ` }
@@ -47,16 +47,27 @@ async function readJsonOption(value, flag) {
47
47
  throw new Error(`${flag} takes JSON, or @path to a JSON file.`);
48
48
  }
49
49
  }
50
+ var VIEW_ACCESS_WORDS = {
51
+ workspace: "workspace-only (people in the view's workspace)",
52
+ org: "org-visible (every org member)",
53
+ public: "public"
54
+ };
55
+ function parseViewAccess(value) {
56
+ if (value === "workspace" || value === "org" || value === "public") {
57
+ return value;
58
+ }
59
+ throw new Error("Access is workspace, org, or public.");
60
+ }
50
61
  function viewLines(view) {
51
62
  return [
52
63
  view.name,
53
64
  ` ${view.url}`,
54
- ` id ${view.id} \xB7 Play ${view.play} \xB7 ${view.access === "public" ? "public" : "workspace members"}`,
65
+ ` id ${view.id} \xB7 Play ${view.play} \xB7 ${_nullishCoalesce(VIEW_ACCESS_WORDS[view.access], () => ( view.access))}`,
55
66
  ...view.description ? [` ${view.description}`] : []
56
67
  ];
57
68
  }
58
69
  function registerViewsCommands(program) {
59
- const views = program.command("views", { hidden: !_chunk7IKQKKNXjs.cliFeatureEnabled.call(void 0, VIEWS_FEATURE) }).description(
70
+ const views = program.command("views", { hidden: !_chunkVIUUTEHYjs.cliFeatureEnabled.call(void 0, VIEWS_FEATURE) }).description(
60
71
  "Show what a Play returns at a fixed URL on views.deepline.com."
61
72
  ).addHelpText(
62
73
  "after",
@@ -67,9 +78,9 @@ Examples:
67
78
  deepline views set-access <id> public
68
79
  `
69
80
  );
70
- views.command("list").description("List this workspace's views.").option("--cursor <cursor>", "Continue from a previous page of results").option("--limit <n>", "Results per request, up to 100", Number).option("--json", "Emit raw JSON response").action(
81
+ views.command("list").description("List this org's views.").option("--cursor <cursor>", "Continue from a previous page of results").option("--limit <n>", "Results per request, up to 100", Number).option("--json", "Emit raw JSON response").action(
71
82
  async (options) => run(async () => {
72
- const result = await new (0, _chunkSHLFOPD6js.DeeplineClient)().listViews({
83
+ const result = await new (0, _chunkDUBXUAAOjs.DeeplineClient)().listViews({
73
84
  cursor: options.cursor,
74
85
  limit: options.limit
75
86
  });
@@ -84,17 +95,14 @@ Examples:
84
95
  );
85
96
  views.command("get <id>").description("Show one view and what you may do with it.").option("--json", "Emit raw JSON response").action(
86
97
  async (id, options) => run(async () => {
87
- const view = await new (0, _chunkSHLFOPD6js.DeeplineClient)().getView(id);
98
+ const view = await new (0, _chunkDUBXUAAOjs.DeeplineClient)().getView(id);
88
99
  print("views get", options.json, view, [
89
100
  ...viewLines(view),
90
101
  ` saved input ${JSON.stringify(view.input)}`
91
102
  ]);
92
103
  })
93
104
  );
94
- views.command("create").description("Create a view that shows a Play's runs at a fixed URL.").requiredOption("--name <name>", "View name").requiredOption(
95
- "--play <play>",
96
- "Play in this workspace, or prebuilt/<name>"
97
- ).option(
105
+ views.command("create").description("Create a view that shows a Play's runs at a fixed URL.").requiredOption("--name <name>", "View name").requiredOption("--play <play>", "Play in this org, or prebuilt/<name>").option(
98
106
  "--input <json>",
99
107
  "Saved input Refresh runs the Play with (JSON or @file)"
100
108
  ).option("--description <text>", "What the view is").option("--json", "Emit raw JSON response").addHelpText(
@@ -106,7 +114,7 @@ Examples:
106
114
  `
107
115
  ).action(
108
116
  async (options) => run(async () => {
109
- const view = await new (0, _chunkSHLFOPD6js.DeeplineClient)().createView({
117
+ const view = await new (0, _chunkDUBXUAAOjs.DeeplineClient)().createView({
110
118
  name: options.name,
111
119
  play: options.play,
112
120
  ...options.input !== void 0 ? {
@@ -123,9 +131,7 @@ Examples:
123
131
  ]);
124
132
  })
125
133
  );
126
- views.command("edit <id>").description(
127
- "Change a view's name, Play, saved input, or description."
128
- ).option("--name <name>", "New name").option("--play <play>", "Play in this workspace, or prebuilt/<name>").option(
134
+ views.command("edit <id>").description("Change a view's name, Play, saved input, or description.").option("--name <name>", "New name").option("--play <play>", "Play in this org, or prebuilt/<name>").option(
129
135
  "--input <json>",
130
136
  "Saved input Refresh runs the Play with (JSON or @file)"
131
137
  ).option("--description <text>", "What the view is").option("--json", "Emit raw JSON response").action(
@@ -142,22 +148,15 @@ Examples:
142
148
  } : {}
143
149
  };
144
150
  if (Object.keys(fields).length === 0) {
145
- throw new Error(
146
- "Nothing to change. See: deepline views edit --help"
147
- );
151
+ throw new Error("Nothing to change. See: deepline views edit --help");
148
152
  }
149
- const view = await new (0, _chunkSHLFOPD6js.DeeplineClient)().updateView(id, fields);
150
- print(
151
- "views edit",
152
- options.json,
153
- view,
154
- viewLines(view)
155
- );
153
+ const view = await new (0, _chunkDUBXUAAOjs.DeeplineClient)().updateView(id, fields);
154
+ print("views edit", options.json, view, viewLines(view));
156
155
  })
157
156
  );
158
157
  views.command("runs <id>").description("List runs of the view's Play, newest first.").option("--limit <n>", "Runs to list, up to 100", Number).option("--json", "Emit raw JSON response").action(
159
158
  async (id, options) => run(async () => {
160
- const result = await new (0, _chunkSHLFOPD6js.DeeplineClient)().listViewRuns(id, {
159
+ const result = await new (0, _chunkDUBXUAAOjs.DeeplineClient)().listViewRuns(id, {
161
160
  limit: options.limit
162
161
  });
163
162
  print("views runs", options.json, result, [
@@ -176,7 +175,7 @@ Examples:
176
175
  ).option("--json", "Emit raw JSON response").action(
177
176
  async (id, options) => run(async () => {
178
177
  const input = options.input !== void 0 ? await readJsonOption(options.input, "--input") : void 0;
179
- const started = await new (0, _chunkSHLFOPD6js.DeeplineClient)().refreshView(id, input);
178
+ const started = await new (0, _chunkDUBXUAAOjs.DeeplineClient)().refreshView(id, input);
180
179
  print("views refresh", options.json, started, [
181
180
  `Started run ${started.workflowId}.`,
182
181
  `Watch it: deepline runs get ${started.workflowId}`
@@ -184,35 +183,29 @@ Examples:
184
183
  })
185
184
  );
186
185
  views.command("set-access <id> <access>").description(
187
- "Choose who can open a view: workspace or public. Public shows every run of its Play to anyone with the link."
186
+ "Choose who can open a view: workspace (people in the view's workspace; a view in a named workspace only), org (every org member), or public. Public shows every run of its Play to anyone with the link. Refreshing and managing a view stay with its workspace."
188
187
  ).option("--json", "Emit raw JSON response").action(
189
188
  async (id, access, options) => run(async () => {
190
- if (access !== "workspace" && access !== "public") {
191
- throw new Error("Access is workspace or public.");
192
- }
193
- const view = await new (0, _chunkSHLFOPD6js.DeeplineClient)().setViewAccess(
189
+ const view = await new (0, _chunkDUBXUAAOjs.DeeplineClient)().setViewAccess(
194
190
  id,
195
- access
196
- );
197
- print(
198
- "views set-access",
199
- options.json,
200
- view,
201
- viewLines(view)
191
+ parseViewAccess(access)
202
192
  );
193
+ print("views set-access", options.json, view, viewLines(view));
203
194
  })
204
195
  );
205
196
  const links = views.command("links").description(
206
- "Share a view with people outside the workspace through signed links, which can expire, be revoked, and be emailed from Deepline."
197
+ "Share a view with people outside the org through signed links, which can expire, be revoked, and be emailed from Deepline."
207
198
  );
208
199
  function linkLine(link) {
209
200
  const expires = link.expires_at === null ? "no expiry" : `expires ${new Date(link.expires_at).toISOString()}`;
210
201
  const sent = link.sent_to.length ? ` \xB7 sent to ${link.sent_to.join(", ")}` : "";
211
202
  return `${link.id} ${link.status} ${_nullishCoalesce(link.label, () => ( "(no label)"))} ${expires}${sent}`;
212
203
  }
213
- links.command("list <id>", { isDefault: true }).description("List a view's share links. Their URLs are shown only once, when created.").option("--json", "Emit raw JSON response").action(
204
+ links.command("list <id>", { isDefault: true }).description(
205
+ "List a view's share links. Their URLs are shown only once, when created."
206
+ ).option("--json", "Emit raw JSON response").action(
214
207
  async (id, options) => run(async () => {
215
- const result = await new (0, _chunkSHLFOPD6js.DeeplineClient)().listViewShareLinks(id);
208
+ const result = await new (0, _chunkDUBXUAAOjs.DeeplineClient)().listViewShareLinks(id);
216
209
  print(
217
210
  "views links list",
218
211
  options.json,
@@ -223,10 +216,16 @@ Examples:
223
216
  );
224
217
  links.command("create <id>").description(
225
218
  "Create a share link. Whoever holds it can open the view, see every run and its input, but not refresh it or start Plays. The URL is printed once; keep it."
226
- ).requiredOption("--expires <expiry>", "How long the link lasts: 1d, 7d, 30d or never").option("--label <label>", "What the link is for, shown in the list").option("--email <emails>", "Comma-separated addresses Deepline emails the link to").option("--json", "Emit raw JSON response").action(
219
+ ).requiredOption(
220
+ "--expires <expiry>",
221
+ "How long the link lasts: 1d, 7d, 30d or never"
222
+ ).option("--label <label>", "What the link is for, shown in the list").option(
223
+ "--email <emails>",
224
+ "Comma-separated addresses Deepline emails the link to"
225
+ ).option("--json", "Emit raw JSON response").action(
227
226
  async (id, options) => run(async () => {
228
227
  const emails = options.email ? String(options.email).split(",").map((email) => email.trim()).filter(Boolean) : void 0;
229
- const link = await new (0, _chunkSHLFOPD6js.DeeplineClient)().createViewShareLink(id, {
228
+ const link = await new (0, _chunkDUBXUAAOjs.DeeplineClient)().createViewShareLink(id, {
230
229
  expires: options.expires,
231
230
  ...options.label ? { label: options.label } : {},
232
231
  ...emails ? { emails } : {}
@@ -242,24 +241,22 @@ Examples:
242
241
  );
243
242
  links.command("revoke <id> <linkId>").description("Revoke a share link. It stops opening the view at once.").option("--json", "Emit raw JSON response").action(
244
243
  async (id, linkId, options) => run(async () => {
245
- const link = await new (0, _chunkSHLFOPD6js.DeeplineClient)().revokeViewShareLink(id, linkId);
244
+ const link = await new (0, _chunkDUBXUAAOjs.DeeplineClient)().revokeViewShareLink(id, linkId);
246
245
  print("views links revoke", options.json, link, [linkLine(link)]);
247
246
  })
248
247
  );
249
248
  views.command("delete <id>").description("Delete a view. Its Play and runs are not touched.").option("--json", "Emit raw JSON response").action(
250
249
  async (id, options) => run(async () => {
251
- const result = await new (0, _chunkSHLFOPD6js.DeeplineClient)().deleteView(id);
252
- print("views delete", options.json, result, [
253
- `Deleted view ${id}.`
254
- ]);
250
+ const result = await new (0, _chunkDUBXUAAOjs.DeeplineClient)().deleteView(id);
251
+ print("views delete", options.json, result, [`Deleted view ${id}.`]);
255
252
  })
256
253
  );
257
254
  const permissions = views.command("permissions").description(
258
255
  "Show or change who may create, edit, delete, publish, and refresh views."
259
256
  );
260
- permissions.command("get", { isDefault: true }).description("Show the workspace's view rules and what you may do.").option("--json", "Emit raw JSON response").action(
257
+ permissions.command("get", { isDefault: true }).description("Show the org's view rules and what you may do.").option("--json", "Emit raw JSON response").action(
261
258
  async (options) => run(async () => {
262
- const result = await new (0, _chunkSHLFOPD6js.DeeplineClient)().getViewPermissions();
259
+ const result = await new (0, _chunkDUBXUAAOjs.DeeplineClient)().getViewPermissions();
263
260
  print("views permissions", options.json, result, [
264
261
  ...Object.entries(result.rules).map(
265
262
  ([verb, level]) => `${verb}: ${level}`
@@ -277,9 +274,10 @@ Examples:
277
274
  "setAccess",
278
275
  "refresh"
279
276
  ];
280
- permissions.command("set").description(
281
- "Change view rules (admins only). Each is members or admins."
282
- ).option("--create <level>", "Create views").option("--edit <level>", "Edit views").option("--delete <level>", "Delete views").option("--set-access <level>", "Make views public or workspace-only, and manage share links").option("--refresh <level>", "Refresh views and start Plays from them").option("--json", "Emit raw JSON response").action(
277
+ permissions.command("set").description("Change view rules (admins only). Each is members or admins.").option("--create <level>", "Create views").option("--edit <level>", "Edit views").option("--delete <level>", "Delete views").option(
278
+ "--set-access <level>",
279
+ "Change who can open views (workspace, org or public), and manage share links"
280
+ ).option("--refresh <level>", "Refresh views and start Plays from them").option("--json", "Emit raw JSON response").action(
283
281
  async (options) => run(async () => {
284
282
  const rules = {};
285
283
  for (const verb of verbs) {
@@ -297,7 +295,7 @@ Examples:
297
295
  "Pass at least one rule. See: deepline views permissions set --help"
298
296
  );
299
297
  }
300
- const result = await new (0, _chunkSHLFOPD6js.DeeplineClient)().setViewPermissions(rules);
298
+ const result = await new (0, _chunkDUBXUAAOjs.DeeplineClient)().setViewPermissions(rules);
301
299
  print(
302
300
  "views permissions set",
303
301
  options.json,
@@ -6,24 +6,24 @@ var _chunk3XX5TEA4js = require('./chunk-3XX5TEA4.js');
6
6
  var _chunk3KC45UVFjs = require('./chunk-3KC45UVF.js');
7
7
 
8
8
 
9
- var _chunkSHLFOPD6js = require('./chunk-SHLFOPD6.js');
10
- require('./chunk-PFO3ISXA.js');
9
+ var _chunkDUBXUAAOjs = require('./chunk-DUBXUAAO.js');
10
+ require('./chunk-OVEYWO4H.js');
11
11
  require('./chunk-4WAM6TLD.js');
12
- require('./chunk-SL6MYJYM.js');
12
+ require('./chunk-MJTVX4QK.js');
13
13
  require('./chunk-PMH4GLMD.js');
14
- require('./chunk-XDVT3GOM.js');
15
14
 
16
15
 
17
16
 
18
17
 
19
18
 
20
- var _chunkVQALXEXOjs = require('./chunk-VQALXEXO.js');
21
- require('./chunk-7IKQKKNX.js');
22
- require('./chunk-RBEUVDZF.js');
23
- require('./chunk-EITMD3A5.js');
19
+ var _chunkYQKCH4R7js = require('./chunk-YQKCH4R7.js');
20
+ require('./chunk-VIUUTEHY.js');
21
+ require('./chunk-5CYZHOKI.js');
22
+ require('./chunk-6VLFQZK6.js');
24
23
  require('./chunk-XNYIZMNQ.js');
25
- require('./chunk-BBTKAASQ.js');
26
- require('./chunk-634ZDA3F.js');
24
+ require('./chunk-LFQJW4S2.js');
25
+ require('./chunk-CFJFUVX2.js');
26
+ require('./chunk-UNNOZKRT.js');
27
27
  require('./chunk-OG64RBAC.js');
28
28
  require('./chunk-COGTRVWW.js');
29
29
 
@@ -1629,18 +1629,18 @@ function noticeToStderr(command) {
1629
1629
  );
1630
1630
  }
1631
1631
  function emitPassThrough(command, payload, options) {
1632
- const json = _chunkVQALXEXOjs.shouldEmitJson.call(void 0, options.json);
1632
+ const json = _chunkYQKCH4R7js.shouldEmitJson.call(void 0, options.json);
1633
1633
  const deprecation = migrationDeprecation(command);
1634
1634
  if (json) {
1635
1635
  const enriched = payload && typeof payload === "object" && !Array.isArray(payload) ? { ...payload, deprecation } : { result: payload, deprecation };
1636
- _chunkVQALXEXOjs.printJson.call(void 0, enriched);
1636
+ _chunkYQKCH4R7js.printJson.call(void 0, enriched);
1637
1637
  return;
1638
1638
  }
1639
- _chunkVQALXEXOjs.printJson.call(void 0, payload);
1639
+ _chunkYQKCH4R7js.printJson.call(void 0, payload);
1640
1640
  noticeToStderr(command);
1641
1641
  }
1642
1642
  function client() {
1643
- return new (0, _chunkSHLFOPD6js.DeeplineClient)();
1643
+ return new (0, _chunkDUBXUAAOjs.DeeplineClient)();
1644
1644
  }
1645
1645
  function clientWithTimeout(timeoutSeconds) {
1646
1646
  if (!timeoutSeconds) return client();
@@ -1648,7 +1648,7 @@ function clientWithTimeout(timeoutSeconds) {
1648
1648
  if (!Number.isFinite(seconds) || seconds <= 0) {
1649
1649
  throw new Error("--timeout must be a positive number of seconds.");
1650
1650
  }
1651
- return new (0, _chunkSHLFOPD6js.DeeplineClient)({ timeout: seconds * 1e3 });
1651
+ return new (0, _chunkDUBXUAAOjs.DeeplineClient)({ timeout: seconds * 1e3 });
1652
1652
  }
1653
1653
  function readStatus(payload) {
1654
1654
  if (!payload || typeof payload !== "object") return null;
@@ -1702,7 +1702,7 @@ async function transformOne(api, workflowId, outDir, publish) {
1702
1702
  await _promises.writeFile.call(void 0, file, compiled.sourceCode, "utf8");
1703
1703
  let published = false;
1704
1704
  if (publish) {
1705
- const { handlePlayPublish } = await Promise.resolve().then(() => _interopRequireWildcard(require("./play-2MVO27VO.js")));
1705
+ const { handlePlayPublish } = await Promise.resolve().then(() => _interopRequireWildcard(require("./play-GDNHCRRR.js")));
1706
1706
  const code = await handlePlayPublish([file]);
1707
1707
  if (code !== 0) {
1708
1708
  return {
@@ -1777,10 +1777,10 @@ async function handleTransform(id, options) {
1777
1777
  for (const workflowId of ids) {
1778
1778
  outcomes.push(await transformOne(api, workflowId, outDir, publish));
1779
1779
  }
1780
- _chunkVQALXEXOjs.printCommandEnvelope.call(void 0,
1780
+ _chunkYQKCH4R7js.printCommandEnvelope.call(void 0,
1781
1781
  { outcomes, deprecation: null },
1782
1782
  {
1783
- json: _chunkVQALXEXOjs.shouldEmitJson.call(void 0, options.json),
1783
+ json: _chunkYQKCH4R7js.shouldEmitJson.call(void 0, options.json),
1784
1784
  text: renderTransformReport(outcomes)
1785
1785
  }
1786
1786
  );
@@ -1801,11 +1801,11 @@ async function handleDelete(id, options) {
1801
1801
  }
1802
1802
  async function handleDisable(id, options) {
1803
1803
  const result = await client().disableWorkflow(id);
1804
- _chunkVQALXEXOjs.printJson.call(void 0, result);
1804
+ _chunkYQKCH4R7js.printJson.call(void 0, result);
1805
1805
  }
1806
1806
  async function handleEnable(id, options) {
1807
1807
  const result = await client().enableWorkflow(id);
1808
- _chunkVQALXEXOjs.printJson.call(void 0, result);
1808
+ _chunkYQKCH4R7js.printJson.call(void 0, result);
1809
1809
  }
1810
1810
  async function handleApply(options) {
1811
1811
  const body = await readJsonOption(options.payload, options.file);
@@ -1870,7 +1870,7 @@ async function handleTail(id, runId, options) {
1870
1870
  if (status && TERMINAL_RUN_STATUSES.has(status) || Date.now() > deadline) {
1871
1871
  return;
1872
1872
  }
1873
- await _chunkVQALXEXOjs.sleep.call(void 0, intervalMs);
1873
+ await _chunkYQKCH4R7js.sleep.call(void 0, intervalMs);
1874
1874
  }
1875
1875
  }
1876
1876
  function registerWorkflowCommands(program) {
@@ -1894,7 +1894,7 @@ deepline-monitors skill has a monitor-triggered example.
1894
1894
  `
1895
1895
  );
1896
1896
  withJsonOption(
1897
- workflows.command("transform [id]").description("Compile a workflow into a reviewable V2 play (.play.ts).").option("--all", "Transform every workflow in the workspace").option("--out <dir>", "Output directory for generated plays", "./plays").option("--publish", "Publish each clean play immediately")
1897
+ workflows.command("transform [id]").description("Compile a workflow into a reviewable V2 play (.play.ts).").option("--all", "Transform every workflow in the org").option("--out <dir>", "Output directory for generated plays", "./plays").option("--publish", "Publish each clean play immediately")
1898
1898
  ).addHelpText(
1899
1899
  "after",
1900
1900
  `
@@ -1911,7 +1911,7 @@ Notes:
1911
1911
  process.exitCode = await handleTransform(id, options);
1912
1912
  });
1913
1913
  withJsonOption(
1914
- workflows.command("list").description("List workspace workflows.").option("--limit <n>", "Max workflows to return")
1914
+ workflows.command("list").description("List org workflows.").option("--limit <n>", "Max workflows to return")
1915
1915
  ).action(handleList);
1916
1916
  withJsonOption(
1917
1917
  workflows.command("get <id>").description(