deepline 0.3.551 → 0.3.553

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 (324) hide show
  1. package/dist/bundling-sources/sdk/src/client-core.ts +130 -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 +124 -10
  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 +66 -30
  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 +11 -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-monitor-upstream-identity.ts +80 -13
  43. package/dist/bundling-sources/shared_libs/monitors/provider-resource-failure.ts +26 -3
  44. package/dist/bundling-sources/shared_libs/monitors/signal-radars/inbound-dead-letter.ts +41 -13
  45. package/dist/bundling-sources/shared_libs/monitors/signal-radars/raw-receipt-causes.ts +219 -0
  46. package/dist/bundling-sources/shared_libs/monitors/snitcher-ip2company.ts +21 -10
  47. package/dist/bundling-sources/shared_libs/monitors/starter-templates.ts +13 -0
  48. package/dist/bundling-sources/shared_libs/monitors/tamradar-countries.ts +285 -0
  49. package/dist/bundling-sources/shared_libs/monitors/tracking-provider-guidance.ts +6 -0
  50. package/dist/bundling-sources/shared_libs/monitors/tracking-provider-integrations.ts +13 -0
  51. package/dist/bundling-sources/shared_libs/observability/dlq.ts +1 -1
  52. package/dist/bundling-sources/shared_libs/observability/log-metadata.ts +5 -3
  53. package/dist/bundling-sources/shared_libs/observability/queue-health.ts +10 -1
  54. package/dist/bundling-sources/shared_libs/observability/queue-item-connectors.ts +1 -0
  55. package/dist/bundling-sources/shared_libs/observability/redaction.ts +24 -1
  56. package/dist/bundling-sources/shared_libs/observability/scheduled-jobs.json +312 -41
  57. package/dist/bundling-sources/shared_libs/observability/scheduled-work-manual.ts +1 -2
  58. package/dist/bundling-sources/shared_libs/play-data-plane/preview-r2-oidc.ts +188 -0
  59. package/dist/bundling-sources/shared_libs/play-data-plane/r2.ts +170 -16
  60. package/dist/bundling-sources/shared_libs/play-data-plane/runtime-sheet-storage-contract.ts +5 -0
  61. package/dist/bundling-sources/shared_libs/play-runtime/app-runtime-api.ts +68 -2
  62. package/dist/bundling-sources/shared_libs/play-runtime/context.ts +568 -26
  63. package/dist/bundling-sources/shared_libs/play-runtime/ctx-fetch-caller-deadline.ts +200 -0
  64. package/dist/bundling-sources/shared_libs/play-runtime/ctx-types.ts +6 -0
  65. package/dist/bundling-sources/shared_libs/play-runtime/deployment/runtime-topology.ts +21 -1
  66. package/dist/bundling-sources/shared_libs/play-runtime/durable-call-cache.ts +3 -2
  67. package/dist/bundling-sources/shared_libs/play-runtime/durable-runs-rollout.ts +14 -2
  68. package/dist/bundling-sources/shared_libs/play-runtime/durable-summary-events.ts +70 -2
  69. package/dist/bundling-sources/shared_libs/play-runtime/durable-tool-identity.ts +3 -3
  70. package/dist/bundling-sources/shared_libs/play-runtime/execution-capabilities.ts +16 -0
  71. package/dist/bundling-sources/shared_libs/play-runtime/experiment-switches.ts +92 -16
  72. package/dist/bundling-sources/shared_libs/play-runtime/fixture-behavior.ts +1 -0
  73. package/dist/bundling-sources/shared_libs/play-runtime/governor/policy.ts +7 -1
  74. package/dist/bundling-sources/shared_libs/play-runtime/internal-bootstrap-token.ts +62 -0
  75. package/dist/bundling-sources/shared_libs/play-runtime/map-memory-limits.ts +74 -3
  76. package/dist/bundling-sources/shared_libs/play-runtime/output-size-limits.ts +31 -3
  77. package/dist/bundling-sources/shared_libs/play-runtime/play-http-request.ts +6 -0
  78. package/dist/bundling-sources/shared_libs/play-runtime/protocol.ts +8 -0
  79. package/dist/bundling-sources/shared_libs/play-runtime/query-result-dataset.ts +19 -0
  80. package/dist/bundling-sources/shared_libs/play-runtime/resource-governor.ts +39 -2
  81. package/dist/bundling-sources/shared_libs/play-runtime/run-failure.ts +9 -1
  82. package/dist/bundling-sources/shared_libs/play-runtime/run-identity.ts +33 -0
  83. package/dist/bundling-sources/shared_libs/play-runtime/run-ledger-projection-contract.ts +24 -0
  84. package/dist/bundling-sources/shared_libs/play-runtime/runner-app/index.ts +300 -57
  85. package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/backends/daytona-payload-transport.ts +87 -6
  86. package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/backends/modal.ts +241 -10
  87. package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/early-sandbox-egress.ts +161 -14
  88. package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/early-sandbox.ts +16 -3
  89. package/dist/bundling-sources/shared_libs/play-runtime/runtime-api-compression.ts +37 -0
  90. package/dist/bundling-sources/shared_libs/play-runtime/runtime-api-paths.ts +9 -0
  91. package/dist/bundling-sources/shared_libs/play-runtime/runtime-api.ts +298 -46
  92. package/dist/bundling-sources/shared_libs/play-runtime/runtime-authority.ts +13 -0
  93. package/dist/bundling-sources/shared_libs/play-runtime/runtime-constants.ts +39 -0
  94. package/dist/bundling-sources/shared_libs/play-runtime/runtime-operation-contract.ts +62 -1
  95. package/dist/bundling-sources/shared_libs/play-runtime/runtime-scheduler-topology.ts +36 -0
  96. package/dist/bundling-sources/shared_libs/play-runtime/runtime-sheet-row-transition.ts +36 -0
  97. package/dist/bundling-sources/shared_libs/play-runtime/runtime-speed-profile.ts +206 -2
  98. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/absurd-pool.ts +42 -0
  99. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/absurd-runtime-worker.ts +185 -64
  100. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/absurd-worker-slot-ledger.ts +157 -0
  101. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/early-sandbox-lane.ts +110 -2
  102. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/early-sandbox-listener-hint.ts +323 -0
  103. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/executor-attempt-standing.ts +72 -0
  104. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/integration-operation-value-storage.ts +23 -4
  105. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/postgres-rate-state.ts +32 -10
  106. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/postgres-workspace-purge.ts +199 -0
  107. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/postgres.ts +632 -66
  108. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/run-ledger-outbox-recovery.ts +517 -16
  109. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/runtime-api-origin.ts +1 -1
  110. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/runtime-receipt-value-storage.ts +9 -0
  111. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/runtime-worker-wake.ts +599 -2
  112. package/dist/bundling-sources/shared_libs/play-runtime/secret-resolution-retry-policy.ts +26 -1
  113. package/dist/bundling-sources/shared_libs/play-runtime/startup-read-tool-ids.ts +60 -0
  114. package/dist/bundling-sources/shared_libs/play-runtime/test-runtime-seams.ts +51 -0
  115. package/dist/bundling-sources/shared_libs/play-runtime/tool-call-retry-facts.ts +2 -0
  116. package/dist/bundling-sources/shared_libs/play-runtime/tool-execute-retry-policy.ts +113 -3
  117. package/dist/bundling-sources/shared_libs/play-runtime/tool-http-errors.ts +5 -7
  118. package/dist/bundling-sources/shared_libs/play-runtime/tool-result.ts +37 -7
  119. package/dist/bundling-sources/shared_libs/play-runtime/work-receipt-storage-contract.ts +2 -0
  120. package/dist/bundling-sources/shared_libs/play-runtime/workflow-executor-auth.ts +3 -0
  121. package/dist/bundling-sources/shared_libs/plays/authoring-contract.ts +40 -5
  122. package/dist/bundling-sources/shared_libs/plays/deploy/api-client.ts +3 -0
  123. package/dist/bundling-sources/shared_libs/plays/deploy/control-plane-types.ts +16 -0
  124. package/dist/bundling-sources/shared_libs/plays/deploy/run-deployment.ts +10 -41
  125. package/dist/bundling-sources/shared_libs/plays/extension-bridge.ts +33 -0
  126. package/dist/bundling-sources/shared_libs/plays/row-identity.ts +18 -1
  127. package/dist/bundling-sources/shared_libs/plays/tool-execution-error.ts +108 -0
  128. package/dist/bundling-sources/shared_libs/plays/trigger-config-contract.ts +14 -0
  129. package/dist/bundling-sources/shared_libs/product-notifications/catalog.ts +171 -0
  130. package/dist/bundling-sources/shared_libs/product-notifications/events.ts +27 -1
  131. package/dist/bundling-sources/shared_libs/security/email-blacklist.ts +9 -24
  132. package/dist/bundling-sources/shared_libs/security/secret-redaction.ts +178 -5
  133. package/dist/bundling-sources/shared_libs/security/signup-email-dns-screen.ts +148 -0
  134. package/dist/bundling-sources/shared_libs/tool-execution-error.ts +108 -0
  135. package/dist/cli/{auth-E7BH4GMJ.mjs → auth-I3QAU4RV.mjs} +8 -7
  136. package/dist/cli/auth-MQCN7WGZ.js +44 -0
  137. package/dist/cli/{billing-OXKU462W.mjs → billing-3IC54OQQ.mjs} +202 -59
  138. package/dist/cli/{billing-DNQAZGX7.js → billing-YGFFVAIC.js} +302 -159
  139. package/dist/cli/{chunk-COGREZAO.js → chunk-2B5B5KAW.js} +210 -128
  140. package/dist/cli/{chunk-UBKA33KY.mjs → chunk-2MGZAI54.mjs} +17 -0
  141. package/dist/cli/{chunk-T2B5BVZE.js → chunk-3NTP2OSG.js} +13 -13
  142. package/dist/cli/{chunk-FOTGUFVK.mjs → chunk-45OAVGU6.mjs} +5 -5
  143. package/dist/cli/{chunk-54EEYLTF.js → chunk-4747TPLV.js} +3 -3
  144. package/dist/cli/{chunk-CLRAANWH.mjs → chunk-4BFTDNHU.mjs} +1 -1
  145. package/dist/cli/{chunk-BGBJV26E.mjs → chunk-4HYNMXXF.mjs} +4 -4
  146. package/dist/cli/{chunk-5S6PHKRV.mjs → chunk-4SMCFQ23.mjs} +1 -1
  147. package/dist/cli/{chunk-VWLHRZFG.mjs → chunk-55F6HNOY.mjs} +5 -5
  148. package/dist/cli/{chunk-LX35AXTN.mjs → chunk-5TYLSS4Q.mjs} +6 -6
  149. package/dist/cli/{chunk-VTGG2RT3.js → chunk-6NE3RRRY.js} +1 -1
  150. package/dist/cli/{chunk-EITMD3A5.js → chunk-6VLFQZK6.js} +8 -8
  151. package/dist/cli/{chunk-MNSTCJMX.mjs → chunk-72V4PDH5.mjs} +18 -18
  152. package/dist/cli/{chunk-ZCDKE4UH.js → chunk-74RES4DS.js} +5 -5
  153. package/dist/cli/{chunk-WKBHUB6R.js → chunk-7GEMELKI.js} +366 -320
  154. package/dist/cli/{chunk-C4CUZH57.js → chunk-7O6J6A7P.js} +1871 -92
  155. package/dist/cli/{chunk-7RSIFA72.js → chunk-7SERLBNR.js} +161 -53
  156. package/dist/cli/{chunk-3G6QZACZ.js → chunk-7YRJ5UC4.js} +21 -21
  157. package/dist/cli/{chunk-I4VKGNAQ.mjs → chunk-A7DLBE5K.mjs} +136 -54
  158. package/dist/cli/{chunk-GGB3JYCW.mjs → chunk-AGICYWGN.mjs} +299 -69
  159. package/dist/cli/{chunk-44KSACJW.mjs → chunk-AGIQDA2T.mjs} +12 -12
  160. package/dist/cli/{chunk-PACD5DGC.js → chunk-AGLR6QVN.js} +255 -109
  161. package/dist/cli/{chunk-NURW5XH4.mjs → chunk-ASB47RXJ.mjs} +1 -1
  162. package/dist/cli/{chunk-4OMAGJ6U.js → chunk-BVDKFS2T.js} +2 -2
  163. package/dist/cli/{chunk-LPJPCGT3.js → chunk-CACFJODG.js} +190 -134
  164. package/dist/cli/{chunk-GVYLCCKN.mjs → chunk-CAEBJOYU.mjs} +1 -1
  165. package/dist/cli/{chunk-XDVT3GOM.js → chunk-CFJFUVX2.js} +18 -1
  166. package/dist/cli/{chunk-POLUE7D5.js → chunk-DP2VH7CO.js} +12 -12
  167. package/dist/cli/{chunk-D6M5HFBB.mjs → chunk-DP64MD6U.mjs} +1 -1
  168. package/dist/cli/{chunk-W425ERWN.mjs → chunk-DZA7RFGL.mjs} +5 -5
  169. package/dist/cli/{chunk-R7J7CJPZ.js → chunk-E2G2DNAB.js} +4 -1
  170. package/dist/cli/{chunk-GGGAEVCX.mjs → chunk-E7WZOX2A.mjs} +22 -18
  171. package/dist/cli/{chunk-44I675YK.js → chunk-FM7LPUPA.js} +41 -41
  172. package/dist/cli/{chunk-2UXDHFSF.mjs → chunk-GAVZ4EOD.mjs} +1 -1
  173. package/dist/cli/{chunk-Z2FIOG3V.js → chunk-HEBO3XNZ.js} +27 -31
  174. package/dist/cli/{chunk-6PWJKMFQ.mjs → chunk-HSJ6X2AQ.mjs} +4 -4
  175. package/dist/cli/{chunk-UPMRIVZB.js → chunk-HVI55MTK.js} +61 -10
  176. package/dist/cli/{chunk-KWSH5T7K.js → chunk-IH6GDNKW.js} +21 -21
  177. package/dist/cli/{chunk-3KYBDAR3.js → chunk-IMX7J4DU.js} +8 -8
  178. package/dist/cli/{chunk-HEHVGEZV.mjs → chunk-INEMTYMT.mjs} +8 -8
  179. package/dist/cli/{chunk-5VVSEU67.js → chunk-IUOGII7D.js} +6 -7
  180. package/dist/cli/{chunk-MXGA6JFI.mjs → chunk-JJGWHITQ.mjs} +5 -5
  181. package/dist/cli/{chunk-QM6Y6S4E.js → chunk-JLGP5XAJ.js} +5 -5
  182. package/dist/cli/{chunk-V6SCP4B7.mjs → chunk-LFOERUQY.mjs} +69 -3
  183. package/dist/cli/{chunk-BBTKAASQ.js → chunk-LFQJW4S2.js} +42 -1
  184. package/dist/cli/{chunk-ZMNGZ6XS.mjs → chunk-LH5PZKER.mjs} +80 -24
  185. package/dist/cli/{chunk-MR5LTVHD.js → chunk-LRDHPOZW.js} +69 -69
  186. package/dist/cli/{chunk-5LUF4LAR.mjs → chunk-LRZGS6RZ.mjs} +3 -0
  187. package/dist/cli/{chunk-SL6MYJYM.js → chunk-MJTVX4QK.js} +35 -35
  188. package/dist/cli/{chunk-UDXULACQ.js → chunk-MLABYI4M.js} +90 -24
  189. package/dist/cli/{chunk-S7IZWGUA.mjs → chunk-NDNHYONK.mjs} +17 -21
  190. package/dist/cli/{chunk-4D3WIZST.mjs → chunk-OTV2UUKW.mjs} +164 -18
  191. package/dist/cli/{chunk-XYE5XPGF.js → chunk-Q6Z6N3A7.js} +18 -18
  192. package/dist/cli/{chunk-7WQNWJQW.mjs → chunk-QG6JIWUL.mjs} +151 -43
  193. package/dist/cli/{chunk-3T65J5RG.mjs → chunk-QI5S5HWB.mjs} +2 -2
  194. package/dist/cli/{chunk-CBV7AKWM.js → chunk-R6DZ6NQ2.js} +5 -5
  195. package/dist/cli/{chunk-PM7MO62Y.mjs → chunk-RMNOZKRI.mjs} +3 -3
  196. package/dist/cli/{chunk-NMWGZD6Y.js → chunk-RTV4RF7N.js} +36 -36
  197. package/dist/cli/{chunk-CQ6JYQSW.js → chunk-SBH4CKPN.js} +11 -11
  198. package/dist/cli/{chunk-BIIJATTX.mjs → chunk-SG3LUONJ.mjs} +3 -3
  199. package/dist/cli/{chunk-2WFPHBR4.js → chunk-TFEXSHPM.js} +22 -18
  200. package/dist/cli/{chunk-5IL7SC45.mjs → chunk-TN4TY6TT.mjs} +6 -7
  201. package/dist/cli/{chunk-WEHCBH5R.mjs → chunk-UEVKMZLR.mjs} +54 -3
  202. package/dist/cli/{chunk-RE5MJBEV.mjs → chunk-UVQJYV76.mjs} +2 -2
  203. package/dist/cli/{chunk-FSIVF2SI.mjs → chunk-VZGLIK5U.mjs} +1 -1
  204. package/dist/cli/{chunk-W2ZWQUHT.js → chunk-WOCHZCUJ.js} +2 -2
  205. package/dist/cli/{chunk-ZDQFBJPO.js → chunk-XLIHTJVM.js} +348 -118
  206. package/dist/cli/{chunk-2ZYRBMQM.js → chunk-Y6SP3JMI.js} +22 -22
  207. package/dist/cli/{chunk-PPSDCN6C.js → chunk-YUA6HA6D.js} +2 -2
  208. package/dist/cli/{chunk-JL2OTMSG.mjs → chunk-Z3A2S3QM.mjs} +41 -0
  209. package/dist/cli/{chunk-E64HFB4L.mjs → chunk-Z6XPSHKM.mjs} +87 -41
  210. package/dist/cli/{chunk-7DOQ3OEX.mjs → chunk-Z7AOIHFE.mjs} +1870 -91
  211. package/dist/cli/command-docs.js +3 -3
  212. package/dist/cli/command-docs.mjs +2 -2
  213. package/dist/cli/concurrent-runs-help-CFJH4KXV.js +22 -0
  214. package/dist/cli/{concurrent-runs-help-C6L6I5OR.mjs → concurrent-runs-help-DNV2X5AZ.mjs} +9 -8
  215. package/dist/cli/{csv-QMF4FWE7.js → csv-SA6ELJY6.js} +16 -15
  216. package/dist/cli/{csv-SYSDXFEM.mjs → csv-ZXZGHWOM.mjs} +7 -6
  217. package/dist/cli/{db-Q7HURWRZ.mjs → db-A54SP6AD.mjs} +16 -16
  218. package/dist/cli/{db-YSHPPA4H.js → db-JHFEIQBU.js} +43 -43
  219. package/dist/cli/describe-PHQ33AGS.mjs +50 -0
  220. package/dist/cli/describe-RHJ4XRFI.js +50 -0
  221. package/dist/cli/describe-core.d.mts +3 -3
  222. package/dist/cli/describe-core.d.ts +3 -3
  223. package/dist/cli/describe-core.js +6 -6
  224. package/dist/cli/describe-core.mjs +5 -5
  225. package/dist/cli/{executions-G7U3VUXN.mjs → executions-HL2M2DFU.mjs} +10 -10
  226. package/dist/cli/{executions-MWBC5TAW.js → executions-TLFZRHBJ.js} +12 -12
  227. package/dist/cli/{feedback-SD55OY6H.js → feedback-5UEX5UZK.js} +17 -16
  228. package/dist/cli/{feedback-GMHIFLBJ.mjs → feedback-QMBTNXVG.mjs} +9 -8
  229. package/dist/cli/git-4JWOOHBG.js +26 -0
  230. package/dist/cli/{git-HPE45OPD.mjs → git-LKGXVIVC.mjs} +8 -7
  231. package/dist/cli/index.js +170 -158
  232. package/dist/cli/index.mjs +60 -48
  233. package/dist/cli/{integrations-HFKVBY6G.js → integrations-6RUTLMN7.js} +23 -27
  234. package/dist/cli/{integrations-2W4MGIQR.mjs → integrations-FGGRVUJ7.mjs} +15 -19
  235. package/dist/cli/{legacy-noops-SXVNDEXN.js → legacy-noops-J3Z7QRWZ.js} +12 -11
  236. package/dist/cli/{legacy-noops-GZYKNU2Z.mjs → legacy-noops-YIPRMVXZ.mjs} +9 -8
  237. package/dist/cli/{mcp-PJRHQHHU.js → mcp-6LWFP7RW.js} +121 -48
  238. package/dist/cli/{mcp-BWA6KULG.mjs → mcp-CHDYFO7F.mjs} +100 -27
  239. package/dist/cli/{monitors-K2WSI6CR.js → monitors-STM6A7OU.js} +221 -186
  240. package/dist/cli/{monitors-SYQKCATO.mjs → monitors-UGRY2BXI.mjs} +58 -23
  241. package/dist/cli/org-3SYOUQCX.mjs +2289 -0
  242. package/dist/cli/org-ZOBSNSIB.js +2289 -0
  243. package/dist/cli/outcomes-H4YYAT5X.js +2865 -0
  244. package/dist/cli/outcomes-Z3P2JE67.mjs +2865 -0
  245. package/dist/cli/{play-SZXY2F2S.js → play-SM4CW2GS.js} +1116 -846
  246. package/dist/cli/{play-TTMABJEI.mjs → play-SN5YWLS7.mjs} +375 -105
  247. package/dist/cli/{providers-GQIOMRQO.mjs → providers-WZ4YBR5Y.mjs} +10 -10
  248. package/dist/cli/{providers-YDHCTZAF.js → providers-WZARYMCF.js} +13 -13
  249. package/dist/cli/{quickstart-PHSSMKCA.mjs → quickstart-2575BNKA.mjs} +7 -6
  250. package/dist/cli/{quickstart-BNYOXQXG.js → quickstart-PS4YHQJ6.js} +9 -8
  251. package/dist/cli/{run-GFIAZXVL.js → run-FLZ6OTM7.js} +51 -51
  252. package/dist/cli/{run-74C3C75C.mjs → run-ZUHCZOJS.mjs} +31 -31
  253. package/dist/cli/run-identity-LMLFMACS.js +31 -0
  254. package/dist/cli/{run-identity-MRNCEGV2.mjs → run-identity-MAZ7ANH5.mjs} +9 -3
  255. package/dist/cli/{search-3SWUB7KX.mjs → search-HLPPKQEO.mjs} +11 -11
  256. package/dist/cli/search-JJWVHR3N.js +32 -0
  257. package/dist/cli/{search-output-K2SWHVHQ.mjs → search-output-PDAXNOGP.mjs} +9 -8
  258. package/dist/cli/{search-output-6JF3S4TP.js → search-output-RXJLU36B.js} +12 -11
  259. package/dist/cli/{secrets-2M4XWEKE.mjs → secrets-CGELYQ3H.mjs} +11 -11
  260. package/dist/cli/{secrets-2SAKLH2H.js → secrets-QJNG7G2Y.js} +20 -20
  261. package/dist/cli/sessions-DHTBT2GN.js +23 -0
  262. package/dist/cli/{sessions-A64BCXTO.mjs → sessions-ELMWVR4M.mjs} +9 -8
  263. package/dist/cli/{settings-HV64WIJF.js → settings-44I44P5F.js} +89 -89
  264. package/dist/cli/{settings-SVGEC3FI.mjs → settings-RR3LZXL7.mjs} +16 -16
  265. package/dist/cli/{setup-EDC3NEJ3.mjs → setup-KGWRWH4B.mjs} +20 -19
  266. package/dist/cli/{setup-FHXOLQGQ.js → setup-KTEYOCJO.js} +60 -59
  267. package/dist/cli/skills-EPZPEXI2.js +37 -0
  268. package/dist/cli/{skills-3HGHZMXB.mjs → skills-FPRID2I5.mjs} +10 -9
  269. package/dist/cli/tools-IGQQ5TML.js +57 -0
  270. package/dist/cli/{tools-P2QS6A6Q.mjs → tools-PI4WMDLY.mjs} +23 -23
  271. package/dist/cli/update-4RNCVYGE.js +37 -0
  272. package/dist/cli/{update-552BYQM4.mjs → update-VJOJAZ7B.mjs} +14 -11
  273. package/dist/cli/{views-PA25NAE3.js → views-NTUOLNQU.js} +62 -64
  274. package/dist/cli/{views-LD5HXJYY.mjs → views-OVPSINZO.mjs} +47 -49
  275. package/dist/cli/{workflow-FIDBUQV6.js → workflow-2UDYDM6F.js} +23 -23
  276. package/dist/cli/{workflow-LDYFGBYP.mjs → workflow-7OEFNXZC.mjs} +13 -13
  277. package/dist/{client-DuDFiJDU.d.mts → client-B8f7RNF8.d.mts} +1 -1
  278. package/dist/{client-t9HZAkFD.d.ts → client-C5TgXmJQ.d.ts} +1 -1
  279. package/dist/{client-core-DydMQOft.d.mts → client-core-SLLGBTht.d.mts} +285 -23
  280. package/dist/{client-core-CJRzLanv.d.ts → client-core-p0sOxnkl.d.ts} +285 -23
  281. package/dist/{compiler-manifest-BqwVrOri.d.mts → compiler-manifest-D_zZEh9Q.d.mts} +70 -5
  282. package/dist/{compiler-manifest-BqwVrOri.d.ts → compiler-manifest-D_zZEh9Q.d.ts} +70 -5
  283. package/dist/{errors-BU8FB99X.d.mts → errors-CZCrBFrQ.d.mts} +1 -1
  284. package/dist/{errors-DfVN_FUG.d.ts → errors-DsUkLrdZ.d.ts} +1 -1
  285. package/dist/{index-BGnvtYGc.d.ts → index-B6RTOZGC.d.ts} +1 -1
  286. package/dist/{index-DjZgwpGw.d.mts → index-DeOVrEmX.d.mts} +1 -1
  287. package/dist/index.d.mts +7 -7
  288. package/dist/index.d.ts +7 -7
  289. package/dist/index.js +66 -55
  290. package/dist/index.mjs +25 -14
  291. package/dist/install-integrity.json +162 -142
  292. package/dist/plays/bundle-play-file.d.mts +3 -3
  293. package/dist/plays/bundle-play-file.d.ts +3 -3
  294. package/dist/plays/bundle-play-file.mjs +23 -4
  295. package/dist/plays/csv-data-input.js +3 -3
  296. package/dist/plays/csv-data-input.mjs +2 -2
  297. package/dist/plays/play-description.d.mts +2 -2
  298. package/dist/plays/play-description.d.ts +2 -2
  299. package/dist/plays/run-request.d.mts +2 -2
  300. package/dist/plays/run-request.d.ts +2 -2
  301. package/dist/plays/run-request.js +4 -4
  302. package/dist/plays/run-request.mjs +3 -3
  303. package/dist/release.d.mts +1 -1
  304. package/dist/release.d.ts +1 -1
  305. package/dist/release.js +2 -2
  306. package/dist/release.mjs +1 -1
  307. package/dist/server.d.mts +4 -4
  308. package/dist/server.d.ts +4 -4
  309. package/dist/server.js +15 -13
  310. package/dist/server.mjs +9 -7
  311. package/package.json +1 -1
  312. package/dist/cli/auth-B4PI7GVY.js +0 -43
  313. package/dist/cli/concurrent-runs-help-JEFQZTJI.js +0 -21
  314. package/dist/cli/describe-PXTSBJTL.js +0 -50
  315. package/dist/cli/describe-YGMQBV44.mjs +0 -50
  316. package/dist/cli/git-I3JV7IGH.js +0 -25
  317. package/dist/cli/org-5KD7X7IA.mjs +0 -1282
  318. package/dist/cli/org-YQ2CR32B.js +0 -1282
  319. package/dist/cli/run-identity-G257GQED.js +0 -25
  320. package/dist/cli/search-2RRRF4LW.js +0 -32
  321. package/dist/cli/sessions-SBH27JNW.js +0 -22
  322. package/dist/cli/skills-Y3SRLOYD.js +0 -36
  323. package/dist/cli/tools-OFYPUPUV.js +0 -57
  324. package/dist/cli/update-SOUSCLB7.js +0 -34
@@ -1,19 +1,23 @@
1
1
  import {
2
2
  npmSupportsAllowScripts,
3
3
  readNpmVersion
4
- } from "./chunk-5S6PHKRV.mjs";
4
+ } from "./chunk-4SMCFQ23.mjs";
5
5
  import {
6
6
  runSkillsCommand
7
- } from "./chunk-6PWJKMFQ.mjs";
7
+ } from "./chunk-HSJ6X2AQ.mjs";
8
8
  import {
9
9
  resolveShellSpawn
10
- } from "./chunk-I4VKGNAQ.mjs";
10
+ } from "./chunk-A7DLBE5K.mjs";
11
11
  import {
12
12
  printCommandEnvelope
13
- } from "./chunk-GGB3JYCW.mjs";
13
+ } from "./chunk-AGICYWGN.mjs";
14
14
  import {
15
- autoDetectBaseUrl
16
- } from "./chunk-V6SCP4B7.mjs";
15
+ DEFAULT_MAX_RETRIES,
16
+ DEFAULT_TIMEOUT,
17
+ TRANSIENT_HTTP_STATUSES,
18
+ autoDetectBaseUrl,
19
+ defaultRetryBackoffMs
20
+ } from "./chunk-LFOERUQY.mjs";
17
21
 
18
22
  // src/cli/commands/update.ts
19
23
  import { spawn, spawnSync } from "child_process";
@@ -1163,43 +1167,121 @@ function normalizePinnedVersion(value) {
1163
1167
  const normalized = value?.trim().replace(/^v/, "") ?? "";
1164
1168
  return /^\d+\.\d+\.\d+(?:-[0-9A-Za-z.-]+)?$/.test(normalized) ? normalized : null;
1165
1169
  }
1166
- async function publishedVersionSupportsPin(version, fallbackRegistryUrl) {
1170
+ async function readPinMetadata(registryUrl, version) {
1171
+ const controller = new AbortController();
1172
+ const timeout = setTimeout(() => controller.abort(), DEFAULT_TIMEOUT);
1173
+ try {
1174
+ const response = await fetch(
1175
+ new URL(
1176
+ `deepline/${encodeURIComponent(version)}`,
1177
+ registryUrl.endsWith("/") ? registryUrl : `${registryUrl}/`
1178
+ ),
1179
+ {
1180
+ headers: { accept: "application/json" },
1181
+ signal: controller.signal
1182
+ }
1183
+ );
1184
+ if (response.status === 404) return { kind: "answer", supportsPin: false };
1185
+ if (!response.ok) {
1186
+ return {
1187
+ kind: "miss",
1188
+ transient: TRANSIENT_HTTP_STATUSES.has(response.status),
1189
+ error: new Error(`${registryUrl} returned HTTP ${response.status}`)
1190
+ };
1191
+ }
1192
+ const text = await response.text();
1193
+ let metadata;
1194
+ try {
1195
+ metadata = JSON.parse(text);
1196
+ } catch {
1197
+ return {
1198
+ kind: "miss",
1199
+ transient: false,
1200
+ error: new Error(`${registryUrl} returned malformed package metadata`)
1201
+ };
1202
+ }
1203
+ return {
1204
+ kind: "answer",
1205
+ supportsPin: metadata?.deepline?.updatePreferences === 1
1206
+ };
1207
+ } catch (error) {
1208
+ return {
1209
+ kind: "miss",
1210
+ transient: true,
1211
+ error: error instanceof Error ? error : new Error(String(error))
1212
+ };
1213
+ } finally {
1214
+ clearTimeout(timeout);
1215
+ }
1216
+ }
1217
+ async function publishedVersionSupportsPin(version, fallbackRegistryUrl, retry = {}) {
1167
1218
  const registryUrls = [
1168
1219
  "https://registry.npmjs.org/",
1169
1220
  ...fallbackRegistryUrl ? [fallbackRegistryUrl] : []
1170
1221
  ];
1222
+ const maxRetries = retry.maxRetries ?? DEFAULT_MAX_RETRIES;
1223
+ const backoffMs = retry.backoffMs ?? defaultRetryBackoffMs;
1171
1224
  let lastError = null;
1172
- for (const registryUrl of registryUrls) {
1173
- const controller = new AbortController();
1174
- const timeout = setTimeout(() => controller.abort(), 3e3);
1175
- try {
1176
- const response = await fetch(
1177
- new URL(
1178
- `deepline/${encodeURIComponent(version)}`,
1179
- registryUrl.endsWith("/") ? registryUrl : `${registryUrl}/`
1180
- ),
1181
- {
1182
- headers: { accept: "application/json" },
1183
- signal: controller.signal
1184
- }
1185
- );
1186
- if (response.status === 404) return false;
1187
- if (!response.ok) {
1188
- lastError = new Error(
1189
- `${registryUrl} returned HTTP ${response.status}`
1190
- );
1191
- continue;
1192
- }
1193
- const metadata = await response.json();
1194
- return metadata.deepline?.updatePreferences === 1;
1195
- } catch (error) {
1196
- lastError = error instanceof Error ? error : new Error(String(error));
1197
- } finally {
1198
- clearTimeout(timeout);
1225
+ for (let round = 1; ; round += 1) {
1226
+ let transientOnly = true;
1227
+ for (const registryUrl of registryUrls) {
1228
+ const read = await readPinMetadata(registryUrl, version);
1229
+ if (read.kind === "answer") return read.supportsPin;
1230
+ lastError = read.error;
1231
+ if (!read.transient) transientOnly = false;
1199
1232
  }
1233
+ if (!transientOnly || round > maxRetries) break;
1234
+ await new Promise((resolve3) => setTimeout(resolve3, backoffMs(round)));
1200
1235
  }
1201
1236
  throw lastError ?? new Error("No npm registry was available");
1202
1237
  }
1238
+ var PUBLISHED_LATEST_READ_TIMEOUT_MS = 5e3;
1239
+ async function readPublishedLatestVersion(registryUrl) {
1240
+ const controller = new AbortController();
1241
+ const timeout = setTimeout(
1242
+ () => controller.abort(),
1243
+ PUBLISHED_LATEST_READ_TIMEOUT_MS
1244
+ );
1245
+ try {
1246
+ const response = await fetch(
1247
+ new URL(
1248
+ "deepline/latest",
1249
+ registryUrl.endsWith("/") ? registryUrl : `${registryUrl}/`
1250
+ ),
1251
+ { headers: { accept: "application/json" }, signal: controller.signal }
1252
+ );
1253
+ if (!response.ok) return null;
1254
+ const metadata = await response.json();
1255
+ return typeof metadata?.version === "string" && parseSemver(metadata.version) ? metadata.version : null;
1256
+ } catch {
1257
+ return null;
1258
+ } finally {
1259
+ clearTimeout(timeout);
1260
+ }
1261
+ }
1262
+ async function resolveInstalledVersionIfLatest(plan) {
1263
+ if (plan.kind !== "npm-global" && plan.kind !== "python-sidecar") {
1264
+ return null;
1265
+ }
1266
+ if (autoUpdatePackageSpec(plan) !== "deepline@latest") return null;
1267
+ let installedVersion = "";
1268
+ try {
1269
+ installedVersion = installedUpdateVersion(resolveUpdateInstallation(plan));
1270
+ } catch {
1271
+ return null;
1272
+ }
1273
+ if (!parseSemver(installedVersion)) return null;
1274
+ const registryUrls = plan.kind === "python-sidecar" ? [plan.registryUrl] : [
1275
+ plan.primaryRegistryUrl ?? "https://registry.npmjs.org/",
1276
+ ...plan.fallbackRegistryUrl ? [plan.fallbackRegistryUrl] : []
1277
+ ];
1278
+ for (const registryUrl of registryUrls) {
1279
+ const latestVersion = await readPublishedLatestVersion(registryUrl);
1280
+ if (!latestVersion) continue;
1281
+ return compareUpdateVersions(installedVersion, latestVersion) === 0 ? installedVersion : null;
1282
+ }
1283
+ return null;
1284
+ }
1203
1285
  async function runUpdateCommand(options, dependencies = {}) {
1204
1286
  const detectBaseUrl = dependencies.detectBaseUrl ?? autoDetectBaseUrl;
1205
1287
  const resolvePlan = dependencies.resolvePlan ?? resolveUpdatePlan;
@@ -1222,6 +1304,7 @@ async function runUpdateCommand(options, dependencies = {}) {
1222
1304
  const setPinnedVersion = dependencies.setPinnedVersion ?? setCliPinnedVersion;
1223
1305
  const clearPinnedVersion = dependencies.clearPinnedVersion ?? clearCliPinnedVersion;
1224
1306
  const targetSupportsPin = dependencies.targetSupportsPin ?? publishedVersionSupportsPin;
1307
+ const resolveUpToDateVersion = dependencies.resolveUpToDateVersion ?? resolveInstalledVersionIfLatest;
1225
1308
  const pinnedVersion = options.pin ? normalizePinnedVersion(options.pin) : null;
1226
1309
  if (options.pin && !pinnedVersion) {
1227
1310
  stderr.write(
@@ -1279,7 +1362,16 @@ async function runUpdateCommand(options, dependencies = {}) {
1279
1362
  ]
1280
1363
  };
1281
1364
  if (options.json && !options.executeWithJson) {
1282
- printCommandEnvelope({ ...plan, render }, { json: true });
1365
+ const upToDateVersion2 = pinnedVersion || options.force ? null : await resolveUpToDateVersion(plan);
1366
+ printCommandEnvelope(
1367
+ {
1368
+ ...plan,
1369
+ updated: false,
1370
+ ...upToDateVersion2 ? { upToDate: true, version: upToDateVersion2 } : {},
1371
+ render
1372
+ },
1373
+ { json: true }
1374
+ );
1283
1375
  return 0;
1284
1376
  }
1285
1377
  if (options.printCommand) {
@@ -1299,11 +1391,19 @@ async function runUpdateCommand(options, dependencies = {}) {
1299
1391
  printCommandEnvelope({ ...plan, render }, { json: false });
1300
1392
  return 0;
1301
1393
  }
1302
- stderr.write(`Updating Deepline SDK/CLI with: ${plan.manualCommand}
1394
+ const upToDateVersion = pinnedVersion || options.force ? null : await resolveUpToDateVersion(plan);
1395
+ if (upToDateVersion) {
1396
+ stderr.write(
1397
+ `Deepline CLI is already up to date (${upToDateVersion}). Run deepline update --force to reinstall it.
1398
+ `
1399
+ );
1400
+ } else {
1401
+ stderr.write(`Updating Deepline SDK/CLI with: ${plan.manualCommand}
1303
1402
  `);
1304
- const updateExitCode = await runPlan(plan);
1305
- if (updateExitCode !== 0) {
1306
- return updateExitCode;
1403
+ const updateExitCode = await runPlan(plan);
1404
+ if (updateExitCode !== 0) {
1405
+ return updateExitCode;
1406
+ }
1307
1407
  }
1308
1408
  if (pinnedVersion) {
1309
1409
  setPinnedVersion(pinnedVersion);
@@ -1329,7 +1429,9 @@ To retry with full installer output, run: deepline skills install
1329
1429
  printCommandEnvelope(
1330
1430
  {
1331
1431
  ok: true,
1332
- pinnedVersion
1432
+ pinnedVersion,
1433
+ updated: !upToDateVersion,
1434
+ ...upToDateVersion ? { version: upToDateVersion } : {}
1333
1435
  },
1334
1436
  { json: true }
1335
1437
  );
@@ -1341,7 +1443,9 @@ function registerUpdateCommand(program) {
1341
1443
  "after",
1342
1444
  `
1343
1445
  Notes:
1344
- For the published npm CLI, this runs npm install -g deepline@latest.
1446
+ For the published npm CLI, this runs npm install -g deepline@latest, unless
1447
+ the installed version is already the latest published one. Use --force to
1448
+ reinstall anyway.
1345
1449
  Automatic updates are enabled by default and run before normal commands.
1346
1450
  Configure automatic updates with deepline settings autoupdate.
1347
1451
  For a Homebrew installation, this prints brew upgrade deepline; Homebrew
@@ -1354,9 +1458,12 @@ Notes:
1354
1458
  Examples:
1355
1459
  deepline update
1356
1460
  deepline update --print-command
1357
- deepline update
1461
+ deepline update --force
1358
1462
  `
1359
- ).option("--print-command", "Print the update command without running it").option("--json", "Emit the resolved update plan as JSON").action(async (options) => {
1463
+ ).option("--print-command", "Print the update command without running it").option("--json", "Emit the resolved update plan as JSON").option(
1464
+ "--force",
1465
+ "Reinstall even when the installed CLI is already the latest version"
1466
+ ).action(async (options) => {
1360
1467
  process.exitCode = await runUpdateCommand(options);
1361
1468
  });
1362
1469
  }
@@ -1371,6 +1478,7 @@ export {
1371
1478
  compareUpdateVersions,
1372
1479
  runUpdatePlan,
1373
1480
  publishedVersionSupportsPin,
1481
+ resolveInstalledVersionIfLatest,
1374
1482
  runUpdateCommand,
1375
1483
  registerUpdateCommand
1376
1484
  };
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  DeeplineClient
3
- } from "./chunk-ZMNGZ6XS.mjs";
3
+ } from "./chunk-LH5PZKER.mjs";
4
4
  import {
5
5
  HttpClient,
6
6
  resolveConfig
7
- } from "./chunk-V6SCP4B7.mjs";
7
+ } from "./chunk-LFOERUQY.mjs";
8
8
 
9
9
  // src/client.ts
10
10
  var DeeplineClient2 = class extends DeeplineClient {
@@ -1,6 +1,6 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } }
2
2
 
3
- var _chunkBBTKAASQjs = require('./chunk-BBTKAASQ.js');
3
+ var _chunkLFQJW4S2js = require('./chunk-LFQJW4S2.js');
4
4
 
5
5
  // node_modules/csv-parse/dist/esm/sync.js
6
6
  var global$1 = typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {};
@@ -3000,7 +3000,7 @@ function parseCsvDataInput(source, content, options = {}) {
3000
3000
  } : {}
3001
3001
  });
3002
3002
  } catch (error) {
3003
- throw new (0, _chunkBBTKAASQjs.DeeplineError)(
3003
+ throw new (0, _chunkLFQJW4S2js.DeeplineError)(
3004
3004
  `Input ${source.inputPath} could not be parsed as CSV (${source.value}): ${error instanceof Error ? error.message : String(error)}. This usually means an unclosed quote or ragged quoting. No run was created.`,
3005
3005
  void 0,
3006
3006
  "PLAY_INPUT_FILE_PREFLIGHT",
@@ -3008,7 +3008,7 @@ function parseCsvDataInput(source, content, options = {}) {
3008
3008
  );
3009
3009
  }
3010
3010
  if (records.length === 0) {
3011
- throw new (0, _chunkBBTKAASQjs.DeeplineError)(
3011
+ throw new (0, _chunkLFQJW4S2js.DeeplineError)(
3012
3012
  `${source.value} is empty: it has no header row and no data rows. No run was created.`,
3013
3013
  void 0,
3014
3014
  "PLAY_INPUT_FILE_PREFLIGHT",
@@ -3023,7 +3023,7 @@ function parseCsvDataInput(source, content, options = {}) {
3023
3023
  if (name.length === 0) continue;
3024
3024
  const prior = seen.get(name);
3025
3025
  if (prior) {
3026
- throw new (0, _chunkBBTKAASQjs.DeeplineError)(
3026
+ throw new (0, _chunkLFQJW4S2js.DeeplineError)(
3027
3027
  `Input ${source.inputPath} (${source.value}) has a duplicate CSV header "${name}" (columns ${prior.index + 1} and ${i + 1}). The second column would silently overwrite the first. Rename one of them. No run was created.`,
3028
3028
  void 0,
3029
3029
  "PLAY_INPUT_FILE_PREFLIGHT",
@@ -3039,7 +3039,7 @@ function parseCsvDataInput(source, content, options = {}) {
3039
3039
  seen.set(name, { index: i, raw });
3040
3040
  }
3041
3041
  if (records.length - 1 < 1) {
3042
- throw new (0, _chunkBBTKAASQjs.DeeplineError)(
3042
+ throw new (0, _chunkLFQJW4S2js.DeeplineError)(
3043
3043
  `${source.value} has a header row but no data rows. No run was created.`,
3044
3044
  void 0,
3045
3045
  "PLAY_INPUT_FILE_PREFLIGHT",
@@ -1,15 +1,15 @@
1
1
  import {
2
2
  rejectRestrictedFeedback
3
- } from "./chunk-D6M5HFBB.mjs";
3
+ } from "./chunk-DP64MD6U.mjs";
4
4
  import {
5
5
  getAuthedHttpClient,
6
6
  printCommandEnvelope
7
- } from "./chunk-GGB3JYCW.mjs";
7
+ } from "./chunk-AGICYWGN.mjs";
8
8
  import {
9
9
  agentSessionIdFromEnvironment,
10
10
  claudeProjectsRoots,
11
11
  coworkTranscriptFromEnvironment
12
- } from "./chunk-4D3WIZST.mjs";
12
+ } from "./chunk-OTV2UUKW.mjs";
13
13
 
14
14
  // src/cli/commands/sessions.ts
15
15
  import {
@@ -2,10 +2,10 @@
2
2
 
3
3
 
4
4
 
5
- var _chunkZDQFBJPOjs = require('./chunk-ZDQFBJPO.js');
5
+ var _chunkXLIHTJVMjs = require('./chunk-XLIHTJVM.js');
6
6
 
7
7
 
8
- var _chunkUDXULACQjs = require('./chunk-UDXULACQ.js');
8
+ var _chunkMLABYI4Mjs = require('./chunk-MLABYI4M.js');
9
9
 
10
10
  // src/cli/commands/git.ts
11
11
  function shellQuote(value) {
@@ -32,11 +32,11 @@ function renderDeployment(deployment) {
32
32
  return `${deployment.id} ${source} (${kind}) - ${deployment.status}${suffix}`;
33
33
  }
34
34
  async function handleList(options) {
35
- const { http } = _chunkZDQFBJPOjs.getAuthedHttpClient.call(void 0, );
35
+ const { http } = _chunkXLIHTJVMjs.getAuthedHttpClient.call(void 0, );
36
36
  const payload = await http.get(
37
37
  `/api/v2/play-projects${options.all ? "?includeDisabled=1" : ""}`
38
38
  );
39
- _chunkZDQFBJPOjs.printCommandEnvelope.call(void 0,
39
+ _chunkXLIHTJVMjs.printCommandEnvelope.call(void 0,
40
40
  {
41
41
  projects: payload.projects,
42
42
  count: payload.projects.length,
@@ -73,14 +73,14 @@ function describeInstallationStatus(installation) {
73
73
  }
74
74
  }
75
75
  async function handleStatus(options) {
76
- const { http } = _chunkZDQFBJPOjs.getAuthedHttpClient.call(void 0, );
76
+ const { http } = _chunkXLIHTJVMjs.getAuthedHttpClient.call(void 0, );
77
77
  const payload = await http.get("/api/v2/github/installation");
78
78
  const installation = payload.installation;
79
79
  const others = (_nullishCoalesce(payload.installations, () => ( []))).filter(
80
80
  (row) => row.installationId !== _optionalChain([installation, 'optionalAccess', _7 => _7.installationId])
81
81
  );
82
82
  const lines = installation ? describeInstallationStatus(installation) : [
83
- "No GitHub installation is connected to this workspace. Run `deepline git connect`."
83
+ "No GitHub installation is connected to this org. Run `deepline git connect`."
84
84
  ];
85
85
  for (const other of others) {
86
86
  lines.push(
@@ -136,7 +136,7 @@ async function handleStatus(options) {
136
136
  )
137
137
  );
138
138
  }
139
- _chunkZDQFBJPOjs.printCommandEnvelope.call(void 0,
139
+ _chunkXLIHTJVMjs.printCommandEnvelope.call(void 0,
140
140
  {
141
141
  installation,
142
142
  installations: _nullishCoalesce(payload.installations, () => ( [])),
@@ -147,10 +147,10 @@ async function handleStatus(options) {
147
147
  );
148
148
  }
149
149
  async function handleRepos(options) {
150
- const { http } = _chunkZDQFBJPOjs.getAuthedHttpClient.call(void 0, );
150
+ const { http } = _chunkXLIHTJVMjs.getAuthedHttpClient.call(void 0, );
151
151
  const query = options.installation ? `?installationId=${encodeURIComponent(options.installation)}` : "";
152
152
  const payload = await http.get(`/api/v2/github/repos${query}`);
153
- _chunkZDQFBJPOjs.printCommandEnvelope.call(void 0,
153
+ _chunkXLIHTJVMjs.printCommandEnvelope.call(void 0,
154
154
  {
155
155
  installation: payload.installation,
156
156
  repositories: payload.repositories,
@@ -171,7 +171,7 @@ async function handleRepos(options) {
171
171
  }
172
172
  async function resolveRepoId(repo, installation) {
173
173
  if (/^\d+$/.test(repo)) return Number(repo);
174
- const { http } = _chunkZDQFBJPOjs.getAuthedHttpClient.call(void 0, );
174
+ const { http } = _chunkXLIHTJVMjs.getAuthedHttpClient.call(void 0, );
175
175
  const query = installation ? `?installationId=${encodeURIComponent(installation)}` : "";
176
176
  const payload = await http.get(
177
177
  `/api/v2/github/repos${query}`
@@ -181,14 +181,14 @@ async function resolveRepoId(repo, installation) {
181
181
  );
182
182
  if (!match) {
183
183
  throw new Error(
184
- `Repo "${repo}" is not accessible to the workspace's GitHub installation. Run \`deepline git repos\` to list what is.`
184
+ `Repo "${repo}" is not accessible to the org's GitHub installation. Run \`deepline git repos\` to list what is.`
185
185
  );
186
186
  }
187
187
  return match.repoId;
188
188
  }
189
189
  async function handleLink(repo, options) {
190
190
  const repoId = await resolveRepoId(repo, options.installation);
191
- const { http } = _chunkZDQFBJPOjs.getAuthedHttpClient.call(void 0, );
191
+ const { http } = _chunkXLIHTJVMjs.getAuthedHttpClient.call(void 0, );
192
192
  const payload = await http.post("/api/v2/play-projects", {
193
193
  repoId,
194
194
  ...options.installation !== void 0 ? { installationId: options.installation } : {},
@@ -197,7 +197,7 @@ async function handleLink(repo, options) {
197
197
  ...options.branch !== void 0 ? { productionBranch: options.branch } : {},
198
198
  ...options.prChecks !== void 0 ? { checkOnPullRequest: options.prChecks } : {}
199
199
  });
200
- _chunkZDQFBJPOjs.printCommandEnvelope.call(void 0,
200
+ _chunkXLIHTJVMjs.printCommandEnvelope.call(void 0,
201
201
  {
202
202
  project: payload.project,
203
203
  render: {
@@ -210,7 +210,7 @@ async function handleLink(repo, options) {
210
210
  (warning) => `WARNING: ${warning}`
211
211
  ),
212
212
  "Pushes to the production branch now register and promote changed plays.",
213
- "Anyone who can push to this repo can change what runs in this workspace."
213
+ "Anyone who can push to this repo can change what runs in this org."
214
214
  ]
215
215
  }
216
216
  ]
@@ -220,11 +220,11 @@ async function handleLink(repo, options) {
220
220
  );
221
221
  }
222
222
  async function handleGet(id, options) {
223
- const { http } = _chunkZDQFBJPOjs.getAuthedHttpClient.call(void 0, );
223
+ const { http } = _chunkXLIHTJVMjs.getAuthedHttpClient.call(void 0, );
224
224
  const payload = await http.get(
225
225
  `/api/v2/play-projects/${encodeURIComponent(id)}`
226
226
  );
227
- _chunkZDQFBJPOjs.printCommandEnvelope.call(void 0,
227
+ _chunkXLIHTJVMjs.printCommandEnvelope.call(void 0,
228
228
  {
229
229
  project: payload.project,
230
230
  render: {
@@ -240,7 +240,7 @@ async function handleGet(id, options) {
240
240
  );
241
241
  }
242
242
  async function handleSet(id, options) {
243
- const { http } = _chunkZDQFBJPOjs.getAuthedHttpClient.call(void 0, );
243
+ const { http } = _chunkXLIHTJVMjs.getAuthedHttpClient.call(void 0, );
244
244
  const payload = await http.patch(
245
245
  `/api/v2/play-projects/${encodeURIComponent(id)}`,
246
246
  {
@@ -251,7 +251,7 @@ async function handleSet(id, options) {
251
251
  ...options.disabled !== void 0 ? { disabled: options.disabled } : {}
252
252
  }
253
253
  );
254
- _chunkZDQFBJPOjs.printCommandEnvelope.call(void 0,
254
+ _chunkXLIHTJVMjs.printCommandEnvelope.call(void 0,
255
255
  {
256
256
  project: payload.project,
257
257
  render: {
@@ -264,9 +264,9 @@ async function handleSet(id, options) {
264
264
  );
265
265
  }
266
266
  async function handleUnlink(id, options) {
267
- const { http } = _chunkZDQFBJPOjs.getAuthedHttpClient.call(void 0, );
267
+ const { http } = _chunkXLIHTJVMjs.getAuthedHttpClient.call(void 0, );
268
268
  await http.delete(`/api/v2/play-projects/${encodeURIComponent(id)}`);
269
- _chunkZDQFBJPOjs.printCommandEnvelope.call(void 0,
269
+ _chunkXLIHTJVMjs.printCommandEnvelope.call(void 0,
270
270
  {
271
271
  ok: true,
272
272
  id,
@@ -286,10 +286,10 @@ async function handleUnlink(id, options) {
286
286
  );
287
287
  }
288
288
  async function handleConnect(options) {
289
- const baseUrl = _chunkUDXULACQjs.resolveBaseUrlOnly.call(void 0, );
289
+ const baseUrl = _chunkMLABYI4Mjs.resolveBaseUrlOnly.call(void 0, );
290
290
  const connectUrl = `${baseUrl.replace(/\/$/, "")}/api/v2/github/connect`;
291
- const opened = _chunkZDQFBJPOjs.openInBrowser.call(void 0, connectUrl);
292
- _chunkZDQFBJPOjs.printCommandEnvelope.call(void 0,
291
+ const opened = _chunkXLIHTJVMjs.openInBrowser.call(void 0, connectUrl);
292
+ _chunkXLIHTJVMjs.printCommandEnvelope.call(void 0,
293
293
  {
294
294
  connectUrl,
295
295
  browser: opened,
@@ -298,9 +298,9 @@ async function handleConnect(options) {
298
298
  {
299
299
  title: "connect GitHub",
300
300
  lines: [
301
- "Git deploys is in beta and requires workspace enablement. Contact the Deepline team to request enablement if interested.",
301
+ "Git deploys is in beta and requires org enablement. Contact the Deepline team to request enablement if interested.",
302
302
  opened === "opened" ? `Opened ${connectUrl} in your browser.` : `Open ${connectUrl} in your browser.`,
303
- "Sign in as a workspace admin if prompted, approve the GitHub",
303
+ "Sign in as an org admin if prompted, approve the GitHub",
304
304
  "installation, then return here and run `deepline git repos`."
305
305
  ]
306
306
  }
@@ -311,7 +311,7 @@ async function handleConnect(options) {
311
311
  );
312
312
  }
313
313
  async function handleDeploymentsList(options) {
314
- const { http } = _chunkZDQFBJPOjs.getAuthedHttpClient.call(void 0, );
314
+ const { http } = _chunkXLIHTJVMjs.getAuthedHttpClient.call(void 0, );
315
315
  const query = new URLSearchParams();
316
316
  if (options.repo) query.set("projectId", options.repo);
317
317
  if (options.limit) query.set("limit", options.limit);
@@ -319,7 +319,7 @@ async function handleDeploymentsList(options) {
319
319
  const payload = await http.get(
320
320
  `/api/v2/deployments${suffix}`
321
321
  );
322
- _chunkZDQFBJPOjs.printCommandEnvelope.call(void 0,
322
+ _chunkXLIHTJVMjs.printCommandEnvelope.call(void 0,
323
323
  {
324
324
  deployments: payload.deployments,
325
325
  count: payload.deployments.length,
@@ -363,12 +363,12 @@ function renderDeploymentMonitorLines(results) {
363
363
  ]);
364
364
  }
365
365
  async function handleDeploymentGet(id, options) {
366
- const { http } = _chunkZDQFBJPOjs.getAuthedHttpClient.call(void 0, );
366
+ const { http } = _chunkXLIHTJVMjs.getAuthedHttpClient.call(void 0, );
367
367
  const payload = await http.get(`/api/v2/deployments/${encodeURIComponent(id)}`);
368
368
  const playLines = renderDeploymentPlayLines(payload.deployment.results);
369
369
  const monitorLines = renderDeploymentMonitorLines(payload.deployment.results);
370
370
  const repository = _nullishCoalesce(_optionalChain([payload, 'access', _10 => _10.project, 'optionalAccess', _11 => _11.repoFullName]), () => ( payload.deployment.repoFullName));
371
- _chunkZDQFBJPOjs.printCommandEnvelope.call(void 0,
371
+ _chunkXLIHTJVMjs.printCommandEnvelope.call(void 0,
372
372
  {
373
373
  deployment: payload.deployment,
374
374
  project: payload.project,
@@ -387,9 +387,9 @@ async function handleDeploymentGet(id, options) {
387
387
  );
388
388
  }
389
389
  async function handleDeploymentCancel(id, options) {
390
- const { http } = _chunkZDQFBJPOjs.getAuthedHttpClient.call(void 0, );
390
+ const { http } = _chunkXLIHTJVMjs.getAuthedHttpClient.call(void 0, );
391
391
  const payload = await http.post(`/api/v2/deployments/${encodeURIComponent(id)}/cancel`, {});
392
- _chunkZDQFBJPOjs.printCommandEnvelope.call(void 0,
392
+ _chunkXLIHTJVMjs.printCommandEnvelope.call(void 0,
393
393
  {
394
394
  cancelled: payload.cancelled,
395
395
  deployment: payload.deployment,
@@ -414,8 +414,8 @@ function registerGitCommands(program) {
414
414
  ).addHelpText(
415
415
  "after",
416
416
  `
417
- Git deploys is in beta and requires workspace enablement.
418
- If it is not enabled for your workspace, contact the Deepline team to request
417
+ Git deploys is in beta and requires org enablement.
418
+ If it is not enabled for your org, contact the Deepline team to request
419
419
  enablement.
420
420
 
421
421
  Examples:
@@ -437,9 +437,9 @@ Guide: https://deepline.com/docs/sdk-v2/git-deploys
437
437
  );
438
438
  git.command("connect").description("Connect a GitHub installation (browser step).").option("--json", "Emit JSON output").action(async (options) => handleConnect(options));
439
439
  git.command("status").description(
440
- "Show the workspace's GitHub installation and whether it is still usable."
440
+ "Show the org's GitHub installation and whether it is still usable."
441
441
  ).option("--json", "Emit JSON output").action(async (options) => handleStatus(options));
442
- git.command("repos").description("List repos the workspace's GitHub installation can reach.").option(
442
+ git.command("repos").description("List repos the org's GitHub installation can reach.").option(
443
443
  "--installation <id>",
444
444
  "GitHub installation id (required when several are connected)"
445
445
  ).option("--json", "Emit JSON output").action(
@@ -448,7 +448,7 @@ Guide: https://deepline.com/docs/sdk-v2/git-deploys
448
448
  git.command("list").description("List linked repositories.").option("--all", "Include unlinked repositories").option("--json", "Emit JSON output").action(
449
449
  async (options) => handleList(options)
450
450
  );
451
- git.command("link").description("Link a repository to this workspace for deploy-on-push.").argument("<repo>", "Repo full name (owner/name) or numeric repo id").option("--root-dir <path>", "Base path inside the repo for this link").option("--branch <name>", "Production branch (default: repo default)").option(
451
+ git.command("link").description("Link a repository to this org for deploy-on-push.").argument("<repo>", "Repo full name (owner/name) or numeric repo id").option("--root-dir <path>", "Base path inside the repo for this link").option("--branch <name>", "Production branch (default: repo default)").option(
452
452
  "--manifest <file>",
453
453
  "Manifest file name under the base path (default: deepline.json)"
454
454
  ).option(