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
@@ -1,19 +1,23 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
2
2
 
3
3
 
4
- var _chunk77AAAGVBjs = require('./chunk-77AAAGVB.js');
4
+ var _chunkECHKAC7Mjs = require('./chunk-ECHKAC7M.js');
5
5
 
6
6
 
7
- var _chunkIDVVIXPJjs = require('./chunk-IDVVIXPJ.js');
7
+ var _chunkUOT7HPBHjs = require('./chunk-UOT7HPBH.js');
8
8
 
9
9
 
10
- var _chunk4MK42735js = require('./chunk-4MK42735.js');
10
+ var _chunk2HMN5H54js = require('./chunk-2HMN5H54.js');
11
11
 
12
12
 
13
- var _chunkVQALXEXOjs = require('./chunk-VQALXEXO.js');
13
+ var _chunkYQKCH4R7js = require('./chunk-YQKCH4R7.js');
14
14
 
15
15
 
16
- var _chunk7IKQKKNXjs = require('./chunk-7IKQKKNX.js');
16
+
17
+
18
+
19
+
20
+ var _chunkVIUUTEHYjs = require('./chunk-VIUUTEHY.js');
17
21
 
18
22
  // src/cli/commands/update.ts
19
23
  var _child_process = require('child_process');
@@ -495,7 +499,7 @@ function normalizedNpmPrefix(value) {
495
499
  }
496
500
  function resolveNpmGlobalPrefix(env) {
497
501
  try {
498
- const plan = _chunk4MK42735js.resolveShellSpawn.call(void 0,
502
+ const plan = _chunk2HMN5H54js.resolveShellSpawn.call(void 0,
499
503
  "npm",
500
504
  ["prefix", "-g"],
501
505
  process.platform,
@@ -557,8 +561,8 @@ function resolveUpdatePlan(options = {}) {
557
561
  const npmGlobalPrefix = options.npmGlobalPrefix !== void 0 ? options.npmGlobalPrefix : resolveNpmGlobalPrefix(env);
558
562
  const hasVerifiedNpmOwnership = inferredInstallPrefix !== null && normalizedNpmPrefix(inferredInstallPrefix) === normalizedNpmPrefix(npmGlobalPrefix);
559
563
  const installPrefix = options.requireVerifiedNpmOwnership ? hasVerifiedNpmOwnership ? inferredInstallPrefix : null : inferredInstallPrefix;
560
- const npmVersion = options.npmVersion === void 0 ? _chunk77AAAGVBjs.readNpmVersion.call(void 0, env) : options.npmVersion;
561
- const npmGlobalInstallFlags = _chunk77AAAGVBjs.npmSupportsAllowScripts.call(void 0, npmVersion) ? [...NPM_SDK_INSTALL_COMMON_FLAGS, "--allow-scripts=esbuild"] : NPM_SDK_INSTALL_COMMON_FLAGS;
564
+ const npmVersion = options.npmVersion === void 0 ? _chunkECHKAC7Mjs.readNpmVersion.call(void 0, env) : options.npmVersion;
565
+ const npmGlobalInstallFlags = _chunkECHKAC7Mjs.npmSupportsAllowScripts.call(void 0, npmVersion) ? [...NPM_SDK_INSTALL_COMMON_FLAGS, "--allow-scripts=esbuild"] : NPM_SDK_INSTALL_COMMON_FLAGS;
562
566
  const args = installPrefix ? [
563
567
  "install",
564
568
  "-g",
@@ -568,7 +572,7 @@ function resolveUpdatePlan(options = {}) {
568
572
  packageSpec
569
573
  ] : ["install", "-g", ...npmGlobalInstallFlags, packageSpec];
570
574
  const fallbackRegistryUrl = options.npmFallbackRegistryUrl !== void 0 ? options.npmFallbackRegistryUrl : publicNpmFallbackRegistryUrl(
571
- _optionalChain([env, 'access', _22 => _22.DEEPLINE_HOST_URL, 'optionalAccess', _23 => _23.trim, 'call', _24 => _24()]) || _chunk7IKQKKNXjs.autoDetectBaseUrl.call(void 0, )
575
+ _optionalChain([env, 'access', _22 => _22.DEEPLINE_HOST_URL, 'optionalAccess', _23 => _23.trim, 'call', _24 => _24()]) || _chunkVIUUTEHYjs.autoDetectBaseUrl.call(void 0, )
572
576
  );
573
577
  return {
574
578
  kind: "npm-global",
@@ -817,7 +821,7 @@ function sidecarInstallFailure(versionDir) {
817
821
  function runCommand(command, args, env = process.env) {
818
822
  return new Promise((resolveResult) => {
819
823
  let output = "";
820
- const plan = _chunk4MK42735js.resolveShellSpawn.call(void 0, command, args, process.platform, env);
824
+ const plan = _chunk2HMN5H54js.resolveShellSpawn.call(void 0, command, args, process.platform, env);
821
825
  const child = _child_process.spawn.call(void 0, plan.command, plan.args, {
822
826
  windowsHide: true,
823
827
  stdio: ["inherit", "pipe", "pipe"],
@@ -1163,52 +1167,130 @@ function normalizePinnedVersion(value) {
1163
1167
  const normalized = _nullishCoalesce(_optionalChain([value, 'optionalAccess', _37 => _37.trim, 'call', _38 => _38(), 'access', _39 => _39.replace, 'call', _40 => _40(/^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(), _chunkVIUUTEHYjs.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: _chunkVIUUTEHYjs.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 (e16) {
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: _optionalChain([metadata, 'optionalAccess', _41 => _41.deepline, 'optionalAccess', _42 => _42.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 = _nullishCoalesce(retry.maxRetries, () => ( _chunkVIUUTEHYjs.DEFAULT_MAX_RETRIES));
1223
+ const backoffMs = _nullishCoalesce(retry.backoffMs, () => ( _chunkVIUUTEHYjs.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 _optionalChain([metadata, 'access', _41 => _41.deepline, 'optionalAccess', _42 => _42.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 _nullishCoalesce(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 _optionalChain([metadata, 'optionalAccess', _43 => _43.version]) === "string" && parseSemver(metadata.version) ? metadata.version : null;
1256
+ } catch (e17) {
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 (e18) {
1271
+ return null;
1272
+ }
1273
+ if (!parseSemver(installedVersion)) return null;
1274
+ const registryUrls = plan.kind === "python-sidecar" ? [plan.registryUrl] : [
1275
+ _nullishCoalesce(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
- const detectBaseUrl = _nullishCoalesce(dependencies.detectBaseUrl, () => ( _chunk7IKQKKNXjs.autoDetectBaseUrl));
1286
+ const detectBaseUrl = _nullishCoalesce(dependencies.detectBaseUrl, () => ( _chunkVIUUTEHYjs.autoDetectBaseUrl));
1205
1287
  const resolvePlan = _nullishCoalesce(dependencies.resolvePlan, () => ( resolveUpdatePlan));
1206
1288
  const runPlan = _nullishCoalesce(dependencies.runPlan, () => ( runUpdatePlan));
1207
1289
  const syncSkills = _nullishCoalesce(dependencies.syncSkillsIfNeeded, () => ( (async () => {
1208
1290
  const originalWrite = process.stdout.write.bind(process.stdout);
1209
1291
  process.stdout.write = (() => true);
1210
1292
  try {
1211
- const exitCode = await _chunkIDVVIXPJjs.runSkillsCommand.call(void 0, { json: true });
1293
+ const exitCode = await _chunkUOT7HPBHjs.runSkillsCommand.call(void 0, { json: true });
1212
1294
  if (exitCode !== 0) {
1213
1295
  throw new Error(
1214
1296
  `Deepline skills update failed with exit ${exitCode}.`
@@ -1222,6 +1304,7 @@ async function runUpdateCommand(options, dependencies = {}) {
1222
1304
  const setPinnedVersion = _nullishCoalesce(dependencies.setPinnedVersion, () => ( setCliPinnedVersion));
1223
1305
  const clearPinnedVersion = _nullishCoalesce(dependencies.clearPinnedVersion, () => ( clearCliPinnedVersion));
1224
1306
  const targetSupportsPin = _nullishCoalesce(dependencies.targetSupportsPin, () => ( publishedVersionSupportsPin));
1307
+ const resolveUpToDateVersion = _nullishCoalesce(dependencies.resolveUpToDateVersion, () => ( resolveInstalledVersionIfLatest));
1225
1308
  const pinnedVersion = options.pin ? normalizePinnedVersion(options.pin) : null;
1226
1309
  if (options.pin && !pinnedVersion) {
1227
1310
  stderr.write(
@@ -1279,11 +1362,20 @@ async function runUpdateCommand(options, dependencies = {}) {
1279
1362
  ]
1280
1363
  };
1281
1364
  if (options.json && !options.executeWithJson) {
1282
- _chunkVQALXEXOjs.printCommandEnvelope.call(void 0, { ...plan, render }, { json: true });
1365
+ const upToDateVersion2 = pinnedVersion || options.force ? null : await resolveUpToDateVersion(plan);
1366
+ _chunkYQKCH4R7js.printCommandEnvelope.call(void 0,
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) {
1286
- _chunkVQALXEXOjs.printCommandEnvelope.call(void 0,
1378
+ _chunkYQKCH4R7js.printCommandEnvelope.call(void 0,
1287
1379
  {
1288
1380
  ...plan,
1289
1381
  render: {
@@ -1296,14 +1388,22 @@ async function runUpdateCommand(options, dependencies = {}) {
1296
1388
  return 0;
1297
1389
  }
1298
1390
  if (plan.kind === "source" || plan.kind === "homebrew") {
1299
- _chunkVQALXEXOjs.printCommandEnvelope.call(void 0, { ...plan, render }, { json: false });
1391
+ _chunkYQKCH4R7js.printCommandEnvelope.call(void 0, { ...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);
@@ -1326,10 +1426,12 @@ To retry with full installer output, run: deepline skills install
1326
1426
  );
1327
1427
  }
1328
1428
  if (options.executeWithJson && options.json) {
1329
- _chunkVQALXEXOjs.printCommandEnvelope.call(void 0,
1429
+ _chunkYQKCH4R7js.printCommandEnvelope.call(void 0,
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
  }
@@ -1373,4 +1480,5 @@ Examples:
1373
1480
 
1374
1481
 
1375
1482
 
1376
- exports.readCliUpdatePreferences = readCliUpdatePreferences; exports.setCliAutoUpdateEnabled = setCliAutoUpdateEnabled; exports.shouldRunCliAutoUpdate = shouldRunCliAutoUpdate; exports.canAutomaticallyApplyUpdatePlan = canAutomaticallyApplyUpdatePlan; exports.resolveUpdatePlan = resolveUpdatePlan; exports.runAutomaticUpdatePlan = runAutomaticUpdatePlan; exports.compareUpdateVersions = compareUpdateVersions; exports.runUpdatePlan = runUpdatePlan; exports.publishedVersionSupportsPin = publishedVersionSupportsPin; exports.runUpdateCommand = runUpdateCommand; exports.registerUpdateCommand = registerUpdateCommand;
1483
+
1484
+ exports.readCliUpdatePreferences = readCliUpdatePreferences; exports.setCliAutoUpdateEnabled = setCliAutoUpdateEnabled; exports.shouldRunCliAutoUpdate = shouldRunCliAutoUpdate; exports.canAutomaticallyApplyUpdatePlan = canAutomaticallyApplyUpdatePlan; exports.resolveUpdatePlan = resolveUpdatePlan; exports.runAutomaticUpdatePlan = runAutomaticUpdatePlan; exports.compareUpdateVersions = compareUpdateVersions; exports.runUpdatePlan = runUpdatePlan; exports.publishedVersionSupportsPin = publishedVersionSupportsPin; exports.resolveInstalledVersionIfLatest = resolveInstalledVersionIfLatest; exports.runUpdateCommand = runUpdateCommand; exports.registerUpdateCommand = registerUpdateCommand;
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  resolveShellSpawn
3
- } from "./chunk-YJHE3O5M.mjs";
3
+ } from "./chunk-BOZAP2EM.mjs";
4
4
 
5
5
  // src/cli/npm-script-policy.ts
6
6
  import { spawnSync } from "child_process";
@@ -1,6 +1,7 @@
1
1
  import {
2
- shellQuote
3
- } from "./chunk-OVDNJAJN.mjs";
2
+ exampleInputFileLine,
3
+ exampleJsonInput
4
+ } from "./chunk-STXDSVQZ.mjs";
4
5
  import {
5
6
  cloneEditStarter
6
7
  } from "./chunk-PSX3WHIH.mjs";
@@ -61,6 +62,7 @@ function schemaType(schema) {
61
62
  type: schema.enum.map((value) => JSON.stringify(value)).join(" | ")
62
63
  };
63
64
  }
65
+ if (schema.const !== void 0) return { type: JSON.stringify(schema.const) };
64
66
  const alternatives = [schema.anyOf, schema.oneOf].find(Array.isArray);
65
67
  if (alternatives) {
66
68
  const parts = alternatives.map((option) => schemaType(isRecord(option) ? option : {})).sort((a, b) => Number(a.type === "null") - Number(b.type === "null"));
@@ -589,24 +591,25 @@ function examples(described, options) {
589
591
  const required = described.inputs.filter((field) => field.required);
590
592
  const shown = options.verbose ? described.inputs : required.length ? required : described.inputs.slice(0, 1);
591
593
  const inputSchema = runner.inputSchema;
592
- let input;
594
+ let inputValue;
593
595
  try {
594
- input = JSON.stringify(
595
- Object.fromEntries(
596
- shown.map((field) => [
597
- field.name,
598
- exampleValue(
599
- field,
600
- propertySchema(inputSchema, field.name),
601
- inputSchema
602
- )
603
- ])
604
- )
596
+ inputValue = Object.fromEntries(
597
+ shown.map((field) => [
598
+ field.name,
599
+ exampleValue(
600
+ field,
601
+ propertySchema(inputSchema, field.name),
602
+ inputSchema
603
+ )
604
+ ])
605
605
  );
606
606
  } catch (error) {
607
607
  if (!(error instanceof InputFileExampleRequired)) throw error;
608
608
  }
609
- const inputArgument = input === void 0 ? "--input-file input.json" : `--input ${shellQuote(input)}`;
609
+ const input = inputValue && JSON.stringify(inputValue);
610
+ const jsonInput = input === void 0 ? void 0 : exampleJsonInput(input, options.platform);
611
+ const inputArgument = jsonInput?.argument ?? "--input-file input.json";
612
+ const inputFile = jsonInput?.file ? { inputFile: jsonInput.file } : {};
610
613
  const inputExpression = input ?? "input";
611
614
  const read = options.verbose ? described.outputs : described.outputs.filter((field) => !field.secondary).slice(0, 1);
612
615
  const reads = (expression) => read.flatMap((field) => {
@@ -628,6 +631,8 @@ function examples(described, options) {
628
631
  const readNames = returnedNames((field) => field.read);
629
632
  return {
630
633
  cli: `deepline run ${runner.toolId} ${inputArgument}`,
634
+ ...inputValue ? { input: inputValue } : {},
635
+ ...inputFile,
631
636
  play: playFunction(
632
637
  [
633
638
  "const result = await deepline.tools.execute({",
@@ -645,6 +650,8 @@ function examples(described, options) {
645
650
  }
646
651
  return {
647
652
  cli: `deepline run ${runner.reference} ${inputArgument}`,
653
+ ...inputValue ? { input: inputValue } : {},
654
+ ...inputFile,
648
655
  play: playFunction(
649
656
  [
650
657
  `const output = await deepline.runPlay('${safeIdentifier(runner.reference.replace(/^.*\//, ""))}', '${runner.reference}', ${inputExpression});`,
@@ -679,7 +686,7 @@ function discoveryAuthLines(auth) {
679
686
  ]);
680
687
  }
681
688
  function describedLines(described, view) {
682
- const { cli, play } = examples(described, view);
689
+ const { cli, play, inputFile } = examples(described, view);
683
690
  const explanation = EXPLANATIONS[described.runner.via];
684
691
  const indented = (text) => text.split("\n").map((line) => ` ${line}`);
685
692
  const section = (lines) => lines.length ? ["", ...lines] : [];
@@ -692,7 +699,7 @@ function describedLines(described, view) {
692
699
  ...described.rateLimit ? [`Rate limit: ${described.rateLimit}`] : [],
693
700
  ...described.toolUsage?.effect ? [`Effect: ${described.toolUsage.effect}`] : [],
694
701
  ...described.auth ? discoveryAuthLines(described.auth) : [],
695
- ...!described.auth && described.credentialStatus === "requires_connection" ? ["Connection: Provider credentials are missing in this workspace."] : [],
702
+ ...!described.auth && described.credentialStatus === "requires_connection" ? ["Connection: Provider credentials are missing in this org."] : [],
696
703
  ...described.byok ? byokLines(described.byok) : [],
697
704
  ...described.connectCommand ? [`Get a shareable link: ${described.connectCommand}`] : [],
698
705
  ...featureLines(described.id, described.features ?? []),
@@ -709,6 +716,7 @@ function describedLines(described, view) {
709
716
  ...section(
710
717
  view.cli ? [
711
718
  "Run from the CLI:",
719
+ ...inputFile ? indented(exampleInputFileLine(inputFile)) : [],
712
720
  ...indented(cli),
713
721
  ...view.explain ? indented(explanation.cli) : []
714
722
  ] : []
@@ -761,17 +769,17 @@ function describedJson(described, view) {
761
769
  ["rowOutputs", described.rowOutputs, false]
762
770
  ];
763
771
  const hidden = view.secondary ? [] : sections.flatMap(
764
- ([, fields, input]) => (fields ?? []).filter((field) => field.secondary && !(input && field.required)).map((field) => field.name)
772
+ ([, fields, input2]) => (fields ?? []).filter((field) => field.secondary && !(input2 && field.required)).map((field) => field.name)
765
773
  );
766
774
  const shapes = namedShapes(sections.flatMap(([, fields]) => fields ?? []));
767
775
  const used = /* @__PURE__ */ new Set();
768
776
  const blocks = Object.fromEntries(
769
777
  sections.flatMap(
770
- ([key, fields, input]) => fields?.length ? [
778
+ ([key, fields, input2]) => fields?.length ? [
771
779
  [
772
780
  key,
773
781
  jsonFields(fields, {
774
- input,
782
+ input: input2,
775
783
  secondary: view.secondary,
776
784
  shapes,
777
785
  used
@@ -792,7 +800,9 @@ function describedJson(described, view) {
792
800
  })
793
801
  };
794
802
  }
795
- const { cli, play } = examples(described, { verbose: view.verbose });
803
+ const { cli, play, input, inputFile } = examples(described, {
804
+ verbose: view.verbose
805
+ });
796
806
  return {
797
807
  kind: described.kind,
798
808
  id: described.id,
@@ -811,9 +821,17 @@ function describedJson(described, view) {
811
821
  ...described.features?.length ? { features: described.features } : {},
812
822
  ...described.guidance.length ? { guidance: described.guidance } : {},
813
823
  ...blocks,
824
+ // The input that takes the CSV whose columns are rowInputs.
825
+ ...described.csvInput ? { csvInput: described.csvInput } : {},
814
826
  ...used.size ? { types } : {},
815
827
  ...described.exclusive ? { exclusive: described.exclusive } : {},
816
- run: { cli, ...play ? { play } : {} },
828
+ run: {
829
+ cli,
830
+ ...play ? { play } : {},
831
+ ...input ? { input } : {},
832
+ // On Windows `cli` reads `input` from this file instead of inline.
833
+ ...inputFile ? { inputFile: inputFile.path } : {}
834
+ },
817
835
  ...described.source ? { source: described.source } : {},
818
836
  ...hidden.length ? { hidden } : {}
819
837
  };
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  printCommandEnvelope
3
- } from "./chunk-6PRW5UBA.mjs";
3
+ } from "./chunk-UC4BDZKI.mjs";
4
4
 
5
5
  // src/cli/feedback-preferences.ts
6
6
  import {
@@ -1,11 +1,11 @@
1
1
  import {
2
2
  traceCliSpan
3
- } from "./chunk-6RZOWL2V.mjs";
3
+ } from "./chunk-F7CMRKSK.mjs";
4
4
  import {
5
- checkSdkCompatibility,
6
5
  enforceSdkCompatibilityResponse,
7
- flushDeferredSkillsSyncNotices
8
- } from "./chunk-YJHE3O5M.mjs";
6
+ flushDeferredSkillsSyncNotices,
7
+ requireSdkCompatibility
8
+ } from "./chunk-BOZAP2EM.mjs";
9
9
 
10
10
  // src/cli/play-run-admission.ts
11
11
  function usesInlinePlayAdmission(command, args) {
@@ -22,15 +22,14 @@ async function checkPlayRunCompatibility(baseUrl, maintenancePolicy = "configure
22
22
  const compatibility = await traceCliSpan(
23
23
  "cli.sdk_compatibility",
24
24
  { baseUrl, command: "plays run" },
25
- () => checkSdkCompatibility(baseUrl, {
25
+ () => requireSdkCompatibility(baseUrl, {
26
26
  command: "plays run",
27
27
  persistCache: maintenancePolicy !== "off",
28
28
  signal
29
29
  })
30
30
  );
31
31
  signal?.throwIfAborted();
32
- if (compatibility.error) throw compatibility.error;
33
- enforceSdkCompatibilityResponse(compatibility.response, {
32
+ enforceSdkCompatibilityResponse(compatibility, {
34
33
  quietAdvisory: true
35
34
  });
36
35
  }