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
@@ -4,21 +4,21 @@
4
4
 
5
5
 
6
6
 
7
- var _chunk7RSIFA72js = require('./chunk-7RSIFA72.js');
7
+ var _chunk7SERLBNRjs = require('./chunk-7SERLBNR.js');
8
8
 
9
9
 
10
10
 
11
- var _chunkCOGREZAOjs = require('./chunk-COGREZAO.js');
11
+ var _chunk2B5B5KAWjs = require('./chunk-2B5B5KAW.js');
12
12
 
13
13
 
14
14
 
15
- var _chunkZDQFBJPOjs = require('./chunk-ZDQFBJPO.js');
15
+ var _chunkXLIHTJVMjs = require('./chunk-XLIHTJVM.js');
16
16
 
17
17
 
18
- var _chunkUDXULACQjs = require('./chunk-UDXULACQ.js');
18
+ var _chunkMLABYI4Mjs = require('./chunk-MLABYI4M.js');
19
19
 
20
20
 
21
- var _chunkPACD5DGCjs = require('./chunk-PACD5DGC.js');
21
+ var _chunkAGLR6QVNjs = require('./chunk-AGLR6QVN.js');
22
22
 
23
23
  // src/cli/compatibility-catalog.ts
24
24
  var readers = /* @__PURE__ */ new WeakMap();
@@ -45,7 +45,7 @@ function trustedAutoUpdateRegistryUrl(baseUrl) {
45
45
  async function reportAutoUpdateEvent(input) {
46
46
  let apiKey = "";
47
47
  try {
48
- apiKey = _chunkUDXULACQjs.resolveApiKeyForBaseUrl.call(void 0, input.baseUrl);
48
+ apiKey = _chunkMLABYI4Mjs.resolveApiKeyForBaseUrl.call(void 0, input.baseUrl);
49
49
  } catch (e2) {
50
50
  return;
51
51
  }
@@ -61,15 +61,15 @@ async function reportAutoUpdateEvent(input) {
61
61
  headers: {
62
62
  Authorization: `Bearer ${apiKey}`,
63
63
  "Content-Type": "application/json",
64
- "User-Agent": `deepline-ts-sdk/${_chunkPACD5DGCjs.SDK_VERSION}`,
64
+ "User-Agent": `deepline-ts-sdk/${_chunkAGLR6QVNjs.SDK_VERSION}`,
65
65
  "X-Deepline-Client-Family": "sdk",
66
66
  "X-Deepline-CLI-Family": "sdk",
67
- "X-Deepline-CLI-Version": _chunkPACD5DGCjs.SDK_VERSION,
68
- "X-Deepline-SDK-Version": _chunkPACD5DGCjs.SDK_VERSION
67
+ "X-Deepline-CLI-Version": _chunkAGLR6QVNjs.SDK_VERSION,
68
+ "X-Deepline-SDK-Version": _chunkAGLR6QVNjs.SDK_VERSION
69
69
  },
70
70
  body: JSON.stringify({
71
71
  event: input.event,
72
- current_version: _optionalChain([input, 'access', _4 => _4.response, 'access', _5 => _5.current, 'optionalAccess', _6 => _6.trim, 'call', _7 => _7()]) || _chunkPACD5DGCjs.SDK_VERSION,
72
+ current_version: _optionalChain([input, 'access', _4 => _4.response, 'access', _5 => _5.current, 'optionalAccess', _6 => _6.trim, 'call', _7 => _7()]) || _chunkAGLR6QVNjs.SDK_VERSION,
73
73
  target_version: input.response.latest,
74
74
  reason: _optionalChain([input, 'access', _8 => _8.response, 'access', _9 => _9.auto_update, 'optionalAccess', _10 => _10.reason]),
75
75
  command: _nullishCoalesce(input.response.command, () => ( null)),
@@ -88,13 +88,13 @@ function envTruthy(name) {
88
88
  return value === "1" || value === "true" || value === "yes";
89
89
  }
90
90
  function shouldSkipSelfUpdate(policy) {
91
- return policy === "off" || envTruthy("DEEPLINE_SKIP_SELF_UPDATE") || envTruthy("DEEPLINE_NO_AUTO_UPDATE") || envTruthy("DEEPLINE_SKIP_SDK_AUTO_UPDATE") || envTruthy("DEEPLINE_DISABLE_AUTO_UPDATE") || !_chunk7RSIFA72js.shouldRunCliAutoUpdate.call(void 0, ) || _chunkCOGREZAOjs.isCiEnvironment.call(void 0, );
91
+ return policy === "off" || envTruthy("DEEPLINE_SKIP_SELF_UPDATE") || envTruthy("DEEPLINE_NO_AUTO_UPDATE") || envTruthy("DEEPLINE_SKIP_SDK_AUTO_UPDATE") || envTruthy("DEEPLINE_DISABLE_AUTO_UPDATE") || !_chunk7SERLBNRjs.shouldRunCliAutoUpdate.call(void 0, ) || _chunk2B5B5KAWjs.isCiEnvironment.call(void 0, );
92
92
  }
93
93
  function isDowngradeAutoUpdateResponse(response) {
94
94
  const target = _optionalChain([response, 'optionalAccess', _17 => _17.latest, 'optionalAccess', _18 => _18.trim, 'call', _19 => _19()]);
95
- const current = _optionalChain([response, 'optionalAccess', _20 => _20.current, 'optionalAccess', _21 => _21.trim, 'call', _22 => _22()]) || _chunkPACD5DGCjs.SDK_VERSION;
95
+ const current = _optionalChain([response, 'optionalAccess', _20 => _20.current, 'optionalAccess', _21 => _21.trim, 'call', _22 => _22()]) || _chunkAGLR6QVNjs.SDK_VERSION;
96
96
  if (!target) return false;
97
- return _chunk7RSIFA72js.compareUpdateVersions.call(void 0, target, current) < 0;
97
+ return _chunk7SERLBNRjs.compareUpdateVersions.call(void 0, target, current) < 0;
98
98
  }
99
99
  function relaunchCurrentCommand(plan, runtime = {}) {
100
100
  return new Promise((resolve) => {
@@ -148,7 +148,7 @@ async function maybeAutoUpdateAndRelaunch(response, baseUrl, policy = "configure
148
148
  }
149
149
  if (isDowngradeAutoUpdateResponse(response)) {
150
150
  const target = response.latest;
151
- const current = _optionalChain([response, 'access', _26 => _26.current, 'optionalAccess', _27 => _27.trim, 'call', _28 => _28()]) || _chunkPACD5DGCjs.SDK_VERSION;
151
+ const current = _optionalChain([response, 'access', _26 => _26.current, 'optionalAccess', _27 => _27.trim, 'call', _28 => _28()]) || _chunkAGLR6QVNjs.SDK_VERSION;
152
152
  process.stderr.write(
153
153
  `Deepline SDK/CLI auto-update refused: server advertised older ${target} than current ${current}. Continuing without mutating the CLI.
154
154
  `
@@ -156,21 +156,21 @@ async function maybeAutoUpdateAndRelaunch(response, baseUrl, policy = "configure
156
156
  return false;
157
157
  }
158
158
  const packageSpec = response.latest ? `deepline@${response.latest}` : void 0;
159
- const plan = _chunk7RSIFA72js.resolveUpdatePlan.call(void 0, {
159
+ const plan = _chunk7SERLBNRjs.resolveUpdatePlan.call(void 0, {
160
160
  packageSpec,
161
161
  requireVerifiedNpmOwnership: true,
162
162
  npmFallbackRegistryUrl: trustedAutoUpdateRegistryUrl(baseUrl)
163
163
  });
164
- if (!_chunk7RSIFA72js.canAutomaticallyApplyUpdatePlan.call(void 0, plan)) {
164
+ if (!_chunk7SERLBNRjs.canAutomaticallyApplyUpdatePlan.call(void 0, plan)) {
165
165
  return false;
166
166
  }
167
167
  if (!autoUpdate.required && autoUpdate.reason !== "rollback_forced") {
168
168
  deferredAutoUpdate = async () => {
169
169
  await applyAutoUpdate(response, baseUrl, plan, "next_command");
170
170
  };
171
- if (_chunkZDQFBJPOjs.isJsonOutputMode.call(void 0, )) {
171
+ if (_chunkXLIHTJVMjs.isJsonOutputMode.call(void 0, )) {
172
172
  const target = _optionalChain([response, 'access', _29 => _29.latest, 'optionalAccess', _30 => _30.trim, 'call', _31 => _31()]);
173
- _chunkZDQFBJPOjs.addJsonNotice.call(void 0, {
173
+ _chunkXLIHTJVMjs.addJsonNotice.call(void 0, {
174
174
  code: "sdk_update_queued",
175
175
  message: `Deepline SDK/CLI update${target ? ` to ${target}` : ""} is queued after this command; the next command will use it if installation succeeds.`
176
176
  });
@@ -183,7 +183,7 @@ async function maybeAutoUpdateAndRelaunch(response, baseUrl, policy = "configure
183
183
  return true;
184
184
  }
185
185
  async function applyAutoUpdate(response, baseUrl, plan, takesEffect) {
186
- if (!_chunk7RSIFA72js.canAutomaticallyApplyUpdatePlan.call(void 0, plan)) return false;
186
+ if (!_chunk7SERLBNRjs.canAutomaticallyApplyUpdatePlan.call(void 0, plan)) return false;
187
187
  const autoUpdate = response.auto_update;
188
188
  const label = _optionalChain([autoUpdate, 'optionalAccess', _32 => _32.reason]) === "rollback_forced" ? "has a server rollback pending and needs the latest rollback-aware CLI" : _optionalChain([autoUpdate, 'optionalAccess', _33 => _33.reason]) === "deprecated" ? "is deprecated and will update automatically" : _optionalChain([autoUpdate, 'optionalAccess', _34 => _34.required]) ? "requires an update" : "has an update available and will update automatically";
189
189
  process.stderr.write(
@@ -196,7 +196,7 @@ async function applyAutoUpdate(response, baseUrl, plan, takesEffect) {
196
196
  event: "started",
197
197
  installKind: plan.kind
198
198
  });
199
- const updateResult = await _chunk7RSIFA72js.runAutomaticUpdatePlan.call(void 0, plan);
199
+ const updateResult = await _chunk7SERLBNRjs.runAutomaticUpdatePlan.call(void 0, plan);
200
200
  if (updateResult.status === "skipped_previous_failure") {
201
201
  void reportAutoUpdateEvent({
202
202
  baseUrl,
@@ -234,7 +234,7 @@ async function applyAutoUpdate(response, baseUrl, plan, takesEffect) {
234
234
  exitCode: 0
235
235
  });
236
236
  try {
237
- await _chunkCOGREZAOjs.syncSdkSkillsIfNeeded.call(void 0, baseUrl, {
237
+ await _chunk2B5B5KAWjs.syncSdkSkillsIfNeeded.call(void 0, baseUrl, {
238
238
  mode: "detached",
239
239
  update: _optionalChain([response, 'access', _36 => _36.skills, 'optionalAccess', _37 => _37.requires_cli_update]) ? void 0 : response.skills,
240
240
  afterCliUpdate: {
@@ -261,7 +261,7 @@ var _crypto = require('crypto');
261
261
  var TOOL_EXECUTE_PROGRESS_INTERVAL_MS = 15e3;
262
262
  var activeToolExecuteCommand = null;
263
263
  function progressLine(line) {
264
- if (!_chunkZDQFBJPOjs.isJsonOutputMode.call(void 0, )) console.error(line);
264
+ if (!_chunkXLIHTJVMjs.isJsonOutputMode.call(void 0, )) console.error(line);
265
265
  }
266
266
  function beginToolExecuteCommand() {
267
267
  if (activeToolExecuteCommand) return activeToolExecuteCommand.invocationId;
@@ -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(); } } 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
- var _chunkCOGREZAOjs = require('./chunk-COGREZAO.js');
3
+ var _chunk2B5B5KAWjs = require('./chunk-2B5B5KAW.js');
4
4
 
5
5
  // src/cli/npm-script-policy.ts
6
6
  var _child_process = require('child_process');
@@ -13,7 +13,7 @@ function npmSupportsAllowScripts(version) {
13
13
  }
14
14
  function readNpmVersion(env) {
15
15
  try {
16
- const plan = _chunkCOGREZAOjs.resolveShellSpawn.call(void 0, "npm", ["--version"], process.platform, env);
16
+ const plan = _chunk2B5B5KAWjs.resolveShellSpawn.call(void 0, "npm", ["--version"], process.platform, env);
17
17
  const result = _child_process.spawnSync.call(void 0, plan.command, plan.args, {
18
18
  windowsHide: true,
19
19
  encoding: "utf8",
@@ -6,6 +6,9 @@ var TOOL_EXECUTION_ERROR_BRAND = Symbol.for(
6
6
  var PROVIDER_TRANSIENT_ERROR_BRAND = Symbol.for(
7
7
  "deepline.provider-transient-error.v1"
8
8
  );
9
+ var PROVIDER_REJECTED_ERROR_BRAND = Symbol.for(
10
+ "deepline.provider-rejected-error.v1"
11
+ );
9
12
  var LEGACY_TOOL_EXECUTION_ERROR_SCHEMA_VERSION = 0;
10
13
  var TOOL_EXECUTION_ERROR_SCHEMA_VERSION = 1;
11
14
  var SUPPORTED_TOOL_EXECUTION_ERROR_SCHEMA_VERSIONS = [
@@ -135,6 +138,9 @@ var ToolExecutionError = class _ToolExecutionError extends DeeplineError {
135
138
  if (isProviderTransientFailure(options)) {
136
139
  applyBrand(this, PROVIDER_TRANSIENT_ERROR_BRAND);
137
140
  }
141
+ if (isProviderRejectionFailure(options)) {
142
+ applyBrand(this, PROVIDER_REJECTED_ERROR_BRAND);
143
+ }
138
144
  }
139
145
  static [Symbol.hasInstance](value) {
140
146
  if (this !== _ToolExecutionError) return nativeInstanceOf(this, value);
@@ -147,6 +153,14 @@ function brandAsToolExecutionError(value) {
147
153
  function isProviderTransientFailure(input) {
148
154
  return input.origin === "provider" && (input.category === "rate_limit" || input.category === "network" || input.category === "upstream");
149
155
  }
156
+ var PROVIDER_REJECTION_CODES = [
157
+ "UPSTREAM_BAD_INPUT",
158
+ "UPSTREAM_NOT_FOUND"
159
+ ];
160
+ function isProviderRejectionFailure(input) {
161
+ const code = input.code ?? "";
162
+ return isProviderTransientFailure(input) && input.category === "upstream" && PROVIDER_REJECTION_CODES.includes(code);
163
+ }
150
164
  var ProviderTransientError = class _ProviderTransientError extends ToolExecutionError {
151
165
  /** Provider attribution is guaranteed for this subtype. */
152
166
  origin = "provider";
@@ -166,6 +180,26 @@ var ProviderTransientError = class _ProviderTransientError extends ToolExecution
166
180
  return hasBrand(value, PROVIDER_TRANSIENT_ERROR_BRAND);
167
181
  }
168
182
  };
183
+ var ProviderRejectedError = class _ProviderRejectedError extends ProviderTransientError {
184
+ /** Constructed by Deepline when a provider rejects the request. */
185
+ constructor(message, options) {
186
+ super(message, { ...options, category: "upstream" });
187
+ this.name = "ProviderRejectedError";
188
+ applyBrand(this, PROVIDER_REJECTED_ERROR_BRAND);
189
+ }
190
+ static [Symbol.hasInstance](value) {
191
+ if (this !== _ProviderRejectedError) return nativeInstanceOf(this, value);
192
+ if (hasBrand(value, PROVIDER_REJECTED_ERROR_BRAND)) return true;
193
+ if (!hasBrand(value, TOOL_EXECUTION_ERROR_BRAND)) return false;
194
+ const fields = value;
195
+ return isProviderRejectionFailure({
196
+ origin: fields.origin,
197
+ category: fields.category,
198
+ retryable: fields.retryable === true,
199
+ code: typeof fields.code === "string" ? fields.code : null
200
+ });
201
+ }
202
+ };
169
203
  function getProviderUnavailableReason(error) {
170
204
  if (error instanceof ProviderTransientError) return error.category;
171
205
  if (error instanceof ToolExecutionError && error.origin === "deepline" && error.category === "rate_limit") {
@@ -345,6 +379,12 @@ function deserializeToolExecutionFailure(message, value, acceptedSchemaVersion)
345
379
  }
346
380
  const failure = normalizeToolExecutionFailure(value);
347
381
  if (!failure) return null;
382
+ if (isProviderRejectionFailure(failure)) {
383
+ return new ProviderRejectedError(message, {
384
+ ...failure,
385
+ code: failure.code
386
+ });
387
+ }
348
388
  if (isProviderTransientFailure(failure)) {
349
389
  return new ProviderTransientError(message, failure);
350
390
  }
@@ -362,6 +402,7 @@ export {
362
402
  brandAsToolExecutionError,
363
403
  isProviderTransientFailure,
364
404
  ProviderTransientError,
405
+ ProviderRejectedError,
365
406
  getProviderUnavailableReason,
366
407
  isProviderUnavailable,
367
408
  isProviderWaterfallUnavailableError,
@@ -2,7 +2,7 @@ import {
2
2
  addDescribeOptions,
3
3
  recordApiResponse,
4
4
  writeExecutionOutput
5
- } from "./chunk-BIIJATTX.mjs";
5
+ } from "./chunk-SG3LUONJ.mjs";
6
6
  import {
7
7
  registerIntegrationBalanceCommand,
8
8
  registerIntegrationConnectCommand,
@@ -11,16 +11,17 @@ import {
11
11
  registerLegacyHubSpotMembersCommand,
12
12
  registerLegacyWorkspaceConnectionCommand,
13
13
  registerWorkspaceConnectionListCommand
14
- } from "./chunk-S7IZWGUA.mjs";
14
+ } from "./chunk-NDNHYONK.mjs";
15
15
  import {
16
16
  recentSearchRef,
17
17
  registerDeprecatedSearchCommand
18
- } from "./chunk-VWLHRZFG.mjs";
18
+ } from "./chunk-55F6HNOY.mjs";
19
19
  import {
20
20
  Capability,
21
21
  arrayField,
22
22
  formatModelDescription,
23
23
  isMonitorTypeTool,
24
+ isMonitorVariantIndex,
24
25
  isPlayLikeTool,
25
26
  isRecord,
26
27
  observedMaxText,
@@ -36,10 +37,10 @@ import {
36
37
  toolInputFieldsForDisplay,
37
38
  toolMetadataJsonForDescribe,
38
39
  toolOutputFieldsForDisplay
39
- } from "./chunk-WEHCBH5R.mjs";
40
+ } from "./chunk-UEVKMZLR.mjs";
40
41
  import {
41
42
  rateLimitQualifier
42
- } from "./chunk-GGGAEVCX.mjs";
43
+ } from "./chunk-E7WZOX2A.mjs";
43
44
  import {
44
45
  shellQuote
45
46
  } from "./chunk-OVDNJAJN.mjs";
@@ -55,31 +56,29 @@ import {
55
56
  } from "./chunk-FIVKWNMT.mjs";
56
57
  import {
57
58
  DeeplineClient
58
- } from "./chunk-3T65J5RG.mjs";
59
+ } from "./chunk-QI5S5HWB.mjs";
59
60
  import {
60
61
  validateExecutionIdempotencyKey
61
- } from "./chunk-ZMNGZ6XS.mjs";
62
- import {
63
- stableStringify
64
- } from "./chunk-UBKA33KY.mjs";
62
+ } from "./chunk-LH5PZKER.mjs";
65
63
  import {
66
64
  beginToolExecuteCommand,
67
65
  getToolExecuteInvocationId,
68
66
  maybeAutoUpdateAndRelaunch,
69
67
  registerCompatibilityCatalog,
70
68
  runToolExecuteStage
71
- } from "./chunk-W425ERWN.mjs";
69
+ } from "./chunk-DZA7RFGL.mjs";
72
70
  import {
73
71
  isCliTraceEnabled,
74
72
  recordCliTrace,
75
73
  resolveCliMaintenancePolicy
76
- } from "./chunk-GVYLCCKN.mjs";
74
+ } from "./chunk-CAEBJOYU.mjs";
77
75
  import {
78
76
  checkSdkCompatibility,
79
77
  enforceSdkCompatibilityResponse,
80
78
  flushDeferredSkillsSyncNotices,
79
+ requireSdkCompatibility,
81
80
  syncSdkSkillsIfNeeded
82
- } from "./chunk-I4VKGNAQ.mjs";
81
+ } from "./chunk-A7DLBE5K.mjs";
83
82
  import {
84
83
  errorToJsonPayload,
85
84
  printCommandEnvelope,
@@ -88,15 +87,18 @@ import {
88
87
  printJsonError,
89
88
  renderCommandEnvelopeText,
90
89
  shouldEmitJson
91
- } from "./chunk-GGB3JYCW.mjs";
90
+ } from "./chunk-AGICYWGN.mjs";
92
91
  import {
93
92
  readSdkSkillsLocalVersion,
94
93
  resolveConfig,
95
94
  sdkCliStateDirPath
96
- } from "./chunk-V6SCP4B7.mjs";
95
+ } from "./chunk-LFOERUQY.mjs";
97
96
  import {
98
97
  DeeplineError
99
- } from "./chunk-JL2OTMSG.mjs";
98
+ } from "./chunk-Z3A2S3QM.mjs";
99
+ import {
100
+ stableStringify
101
+ } from "./chunk-2MGZAI54.mjs";
100
102
 
101
103
  // src/cli/commands/tools.ts
102
104
  import { Option } from "commander";
@@ -829,7 +831,7 @@ Common commands:
829
831
  Output:
830
832
  deepline describe shows a tool's contract and price, and deepline run runs
831
833
  it. The receipt's billing command (next.billing with --json) gives a call's
832
- exact charge. Workspace balance changes also include other callers'
834
+ exact charge. Org balance changes also include other callers'
833
835
  activity.
834
836
  `
835
837
  );
@@ -932,15 +934,15 @@ Examples:
932
934
  deepline describe hunter_email_verifier --feature byok
933
935
  deepline tools describe deeplineagent --model openai/gpt-5.6-luna
934
936
  deepline tools describe ai_inference --estimate-payload @payload.json
935
- deepline tools describe ai_evaluate --estimate-payload @payload.json
937
+ deepline tools describe ai_decision --estimate-payload @payload.json
936
938
  deepline run hunter_email_verifier --input '{"email":"a@b.com"}'
937
939
  `
938
940
  ).option("--json", "Emit JSON output").option(
939
941
  "--model <model>",
940
- "For language tools, include AI Gateway metadata; for ai_evaluate, set the quote payload model"
942
+ "For language tools, include AI Gateway metadata; for ai_decision, set the quote payload model"
941
943
  ).option(
942
944
  "--estimate-payload <payload>",
943
- "Quote an ai_evaluate, ai_inference, or deeplineagent JSON payload (inline or @file)"
945
+ "Quote an ai_decision, ai_inference, or deeplineagent JSON payload (inline or @file)"
944
946
  ).option("--pricing-only", "Only print pricing and billing semantics").option(
945
947
  "--examples-only",
946
948
  "Only print input payload and full Deepline execution response examples"
@@ -977,7 +979,7 @@ Examples:
977
979
  process.exitCode = await narrowView();
978
980
  return;
979
981
  }
980
- const { describeAnything } = await import("./describe-YGMQBV44.mjs");
982
+ const { describeAnything } = await import("./describe-PHQ33AGS.mjs");
981
983
  process.exitCode = await describeAnything(
982
984
  toolId,
983
985
  {
@@ -997,7 +999,7 @@ Examples:
997
999
  { json: false }
998
1000
  )
999
1001
  );
1000
- tools.command("execute <toolId>", { hidden: true }).alias("call").description("Execute a tool by id.").option("--connection <name>", "Use an exact named workspace connection").addHelpText(
1002
+ tools.command("execute <toolId>", { hidden: true }).alias("call").description("Execute a tool by id.").option("--connection <name>", "Use an exact named org connection").addHelpText(
1001
1003
  "after",
1002
1004
  `
1003
1005
  Notes:
@@ -1007,7 +1009,7 @@ Notes:
1007
1009
  stable result payload plus output preview and debugging helpers.
1008
1010
  Read pricing first with deepline describe <toolId>.
1009
1011
  Use the returned next.billing command to look up this execution's exact charge;
1010
- workspace balance changes also include other callers' activity.
1012
+ org balance changes also include other callers' activity.
1011
1013
  --timeout sets this CLI request's HTTP deadline; it does not cancel provider work.
1012
1014
 
1013
1015
  Examples:
@@ -1127,11 +1129,13 @@ async function getTool(toolId, options = {}, compatibilityMetadata) {
1127
1129
  }
1128
1130
  throw error;
1129
1131
  }
1132
+ const resolvedToolId = typeof tool.toolId === "string" && tool.toolId ? tool.toolId : toolId;
1130
1133
  let inferenceQuote = null;
1131
1134
  if (options.estimatePayload) {
1132
- if (toolId !== "deeplineagent" && toolId !== "ai_inference" && toolId !== "ai_evaluate") {
1135
+ const quoteToolId = resolvedToolId;
1136
+ if (quoteToolId !== "deeplineagent" && quoteToolId !== "ai_inference" && quoteToolId !== "ai_evaluate") {
1133
1137
  console.error(
1134
- "--estimate-payload is only supported for ai_evaluate, deeplineagent, and ai_inference."
1138
+ "--estimate-payload is only supported for ai_decision, deeplineagent, and ai_inference."
1135
1139
  );
1136
1140
  return 2;
1137
1141
  }
@@ -1142,10 +1146,13 @@ async function getTool(toolId, options = {}, compatibilityMetadata) {
1142
1146
  if (options.model && estimatePayload.model === void 0) {
1143
1147
  estimatePayload.model = options.model;
1144
1148
  }
1145
- inferenceQuote = await client.quoteInferenceTool(toolId, estimatePayload);
1149
+ inferenceQuote = await client.quoteInferenceTool(
1150
+ quoteToolId,
1151
+ estimatePayload
1152
+ );
1146
1153
  }
1147
- const modelDescription = options.model && (toolId === "deeplineagent" || toolId === "ai_inference") ? await client.describeModel(options.model) : null;
1148
- if (options.model && !modelDescription && toolId !== "ai_evaluate") {
1154
+ const modelDescription = options.model && (resolvedToolId === "deeplineagent" || resolvedToolId === "ai_inference") ? await client.describeModel(options.model) : null;
1155
+ if (options.model && !modelDescription && resolvedToolId !== "ai_evaluate") {
1149
1156
  console.error(
1150
1157
  "--model is only supported for deeplineagent and ai_inference."
1151
1158
  );
@@ -1183,7 +1190,7 @@ async function getTool(toolId, options = {}, compatibilityMetadata) {
1183
1190
  );
1184
1191
  return 0;
1185
1192
  }
1186
- if ((options.schemaOnly || options.examplesOnly || options.gettersOnly) && !isMonitorTypeTool(tool) && !isPlayLikeTool(tool) && (options.json || options.contractJson)) {
1193
+ if ((options.schemaOnly || options.examplesOnly || options.gettersOnly) && !isMonitorTypeTool(tool) && !isMonitorVariantIndex(tool) && !isPlayLikeTool(tool) && (options.json || options.contractJson)) {
1187
1194
  const contract = toolContractJsonForDescribe(
1188
1195
  tool,
1189
1196
  toolId,
@@ -1599,6 +1606,16 @@ function printToolExamplesOnly(tool, requestedToolId) {
1599
1606
  printMonitorTypeDeploy(tool);
1600
1607
  return;
1601
1608
  }
1609
+ if (isMonitorVariantIndex(tool)) {
1610
+ console.log(
1611
+ `${requestedToolId} is deployed as one monitor type per radar type. Describe one for its example:`
1612
+ );
1613
+ for (const variant of arrayField(tool, "variants").filter(isRecord)) {
1614
+ const describeCommand = stringField(variant, "describeCommand");
1615
+ if (describeCommand) console.log(` ${describeCommand}`);
1616
+ }
1617
+ return;
1618
+ }
1602
1619
  if (isPlayLikeTool(tool)) {
1603
1620
  printPlayLikeToolUsage(tool, requestedToolId);
1604
1621
  return;
@@ -2523,14 +2540,24 @@ async function executeToolForReceipt(input) {
2523
2540
  });
2524
2541
  key = recovery.idempotencyKey ?? null;
2525
2542
  retryKey = recovery;
2526
- const response = await client.executeTool(toolId, params, {
2543
+ const warnings = [];
2544
+ const call = (idempotencyKey) => client.executeTool(toolId, params, {
2527
2545
  responseIntent,
2528
2546
  ...input.timeoutMs !== void 0 ? { timeout: input.timeoutMs } : {},
2529
2547
  ...metadata.executionMetadata?.retrySafeTransientHttp === true ? { maxRetries: 2, retryApiErrors: true } : {},
2530
- ...key ? { idempotencyKey: key } : {},
2548
+ ...idempotencyKey ? { idempotencyKey } : {},
2531
2549
  searchRef: recentSearchRef(toolId),
2532
2550
  cliInvocationId,
2533
2551
  onResponseReceived: recordApiResponse
2552
+ });
2553
+ const response = await call(key).catch((error) => {
2554
+ if (!key || !refusedRetryKey(error)) throw error;
2555
+ recovery.discard();
2556
+ key = null;
2557
+ const warning = `${toolId} cannot be resumed with a retry key, so this call runs without one. If it is interrupted, running it again calls the provider again.`;
2558
+ warnings.push(warning);
2559
+ console.error(warning);
2560
+ return call(null);
2534
2561
  }).catch((error) => {
2535
2562
  const guidance = toolGuidanceLines(metadata.guidance);
2536
2563
  if (guidance.length)
@@ -2543,9 +2570,13 @@ async function executeToolForReceipt(input) {
2543
2570
  metadata,
2544
2571
  response,
2545
2572
  output,
2546
- warnings: recovery.resumed ? [
2547
- "Resumed an interrupted call with its saved retry key; it was not charged again. --fresh calls the provider again."
2548
- ] : []
2573
+ warnings: [
2574
+ ...warnings,
2575
+ // Only a call that still carries its saved key was replayed.
2576
+ ...recovery.resumed && key ? [
2577
+ "Resumed an interrupted call with its saved retry key; it was not charged again. --fresh calls the provider again."
2578
+ ] : []
2579
+ ]
2549
2580
  });
2550
2581
  await recovery.acknowledgeDelivery();
2551
2582
  return code;
@@ -2569,9 +2600,24 @@ async function executeToolForReceipt(input) {
2569
2600
  return 1;
2570
2601
  }
2571
2602
  }
2603
+ function refusedRetryKey(error) {
2604
+ return error instanceof DeeplineError && error.statusCode === 422 && error.code === "IDEMPOTENCY_NOT_SUPPORTED" && // The server's own answer to the keyed POST carries its response body.
2605
+ // The SDK raises the same code locally when a recovery read finds no
2606
+ // support after a POST that may have been dispatched; that one must keep
2607
+ // its key and report an unknown outcome, never call again.
2608
+ serverBodyHasCode(error.details?.response, "IDEMPOTENCY_NOT_SUPPORTED");
2609
+ }
2610
+ function serverBodyHasCode(body, code) {
2611
+ if (!body || typeof body !== "object") return false;
2612
+ const record = body;
2613
+ if (record.code === code) return true;
2614
+ return serverBodyHasCode(record.error, code);
2615
+ }
2572
2616
  function answeredWithFailure(error) {
2573
2617
  return error instanceof DeeplineError && typeof error.statusCode === "number" && error.statusCode < 500 && // A request timeout says nothing about whether the call went through.
2574
- error.statusCode !== 408 && error.code !== "EXECUTION_OUTCOME_UNKNOWN";
2618
+ error.statusCode !== 408 && error.code !== "EXECUTION_OUTCOME_UNKNOWN" && // The SDK's own "no recovery support" after a keyed POST is not the
2619
+ // server's answer: that POST may have run, so its key must survive.
2620
+ !(error.code === "IDEMPOTENCY_NOT_SUPPORTED" && !serverBodyHasCode(error.details?.response, "IDEMPOTENCY_NOT_SUPPORTED"));
2575
2621
  }
2576
2622
  async function getToolExecutionReceipt(key, output) {
2577
2623
  const client = new DeeplineClient();
@@ -2753,31 +2799,31 @@ async function executeTool(toolId, options, compatibilityMetadata, deferCompatib
2753
2799
  if (maintenancePolicy !== "off") {
2754
2800
  flushDeferredSkillsSyncNotices(baseUrl);
2755
2801
  }
2756
- const compatibility = deferredCompatibility ? await deferredCompatibility.result : await runToolExecuteStage(
2802
+ const preflight = deferredCompatibility ? await deferredCompatibility.result.catch(() => null) : null;
2803
+ const compatibilityResponse = preflight?.live === true ? preflight.response : await runToolExecuteStage(
2757
2804
  "SDK compatibility",
2758
- () => checkSdkCompatibility(baseUrl, {
2805
+ () => requireSdkCompatibility(baseUrl, {
2759
2806
  command: "tools execute",
2760
2807
  skillsVersion: readSdkSkillsLocalVersion(baseUrl),
2761
2808
  persistCache: maintenancePolicy !== "off"
2762
2809
  })
2763
2810
  );
2764
- if (compatibility.error) throw compatibility.error;
2765
2811
  metadata = deferredCompatibility?.readMetadata() ?? metadata;
2766
2812
  if (maintenancePolicy !== "off" && await maybeAutoUpdateAndRelaunch(
2767
- compatibility.response,
2813
+ compatibilityResponse,
2768
2814
  baseUrl,
2769
2815
  maintenancePolicy
2770
2816
  )) {
2771
2817
  return void 0;
2772
2818
  }
2773
- enforceSdkCompatibilityResponse(compatibility.response, {
2819
+ enforceSdkCompatibilityResponse(compatibilityResponse, {
2774
2820
  quietAdvisory: wantsJson
2775
2821
  });
2776
2822
  if (maintenancePolicy !== "off") {
2777
2823
  await runToolExecuteStage(
2778
2824
  "agent skills sync",
2779
2825
  () => syncSdkSkillsIfNeeded(baseUrl, {
2780
- update: compatibility.response?.skills,
2826
+ update: compatibilityResponse?.skills,
2781
2827
  mode: "detached"
2782
2828
  })
2783
2829
  );