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
@@ -2,7 +2,7 @@ import {
2
2
  addDescribeOptions,
3
3
  recordApiResponse,
4
4
  writeExecutionOutput
5
- } from "./chunk-FTJLJCE5.mjs";
5
+ } from "./chunk-KVBQY4ST.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-ZIAXDBXX.mjs";
14
+ } from "./chunk-62HWJXST.mjs";
15
15
  import {
16
16
  recentSearchRef,
17
17
  registerDeprecatedSearchCommand
18
- } from "./chunk-QPKH23EC.mjs";
18
+ } from "./chunk-GA2M3G3Y.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,13 +37,14 @@ import {
36
37
  toolInputFieldsForDisplay,
37
38
  toolMetadataJsonForDescribe,
38
39
  toolOutputFieldsForDisplay
39
- } from "./chunk-WEHCBH5R.mjs";
40
+ } from "./chunk-TGUQET3O.mjs";
40
41
  import {
41
42
  rateLimitQualifier
42
- } from "./chunk-GGGAEVCX.mjs";
43
+ } from "./chunk-XFZX6FNM.mjs";
43
44
  import {
45
+ shellArgument,
44
46
  shellQuote
45
- } from "./chunk-OVDNJAJN.mjs";
47
+ } from "./chunk-STXDSVQZ.mjs";
46
48
  import {
47
49
  playToolListGetterMode
48
50
  } from "./chunk-FR2ILQ4G.mjs";
@@ -55,31 +57,29 @@ import {
55
57
  } from "./chunk-FIVKWNMT.mjs";
56
58
  import {
57
59
  DeeplineClient
58
- } from "./chunk-QY3ZNU6Z.mjs";
60
+ } from "./chunk-6EXOAT6T.mjs";
59
61
  import {
60
62
  validateExecutionIdempotencyKey
61
- } from "./chunk-Z5TSLLOW.mjs";
62
- import {
63
- stableStringify
64
- } from "./chunk-UBKA33KY.mjs";
63
+ } from "./chunk-VLO5NFH2.mjs";
65
64
  import {
66
65
  beginToolExecuteCommand,
67
66
  getToolExecuteInvocationId,
68
67
  maybeAutoUpdateAndRelaunch,
69
68
  registerCompatibilityCatalog,
70
69
  runToolExecuteStage
71
- } from "./chunk-PTVD2GVQ.mjs";
70
+ } from "./chunk-B6HO2XWH.mjs";
72
71
  import {
73
72
  isCliTraceEnabled,
74
73
  recordCliTrace,
75
74
  resolveCliMaintenancePolicy
76
- } from "./chunk-6RZOWL2V.mjs";
75
+ } from "./chunk-F7CMRKSK.mjs";
77
76
  import {
78
77
  checkSdkCompatibility,
79
78
  enforceSdkCompatibilityResponse,
80
79
  flushDeferredSkillsSyncNotices,
80
+ requireSdkCompatibility,
81
81
  syncSdkSkillsIfNeeded
82
- } from "./chunk-YJHE3O5M.mjs";
82
+ } from "./chunk-BOZAP2EM.mjs";
83
83
  import {
84
84
  errorToJsonPayload,
85
85
  printCommandEnvelope,
@@ -88,15 +88,18 @@ import {
88
88
  printJsonError,
89
89
  renderCommandEnvelopeText,
90
90
  shouldEmitJson
91
- } from "./chunk-6PRW5UBA.mjs";
91
+ } from "./chunk-UC4BDZKI.mjs";
92
92
  import {
93
93
  readSdkSkillsLocalVersion,
94
94
  resolveConfig,
95
95
  sdkCliStateDirPath
96
- } from "./chunk-4TALT2M3.mjs";
96
+ } from "./chunk-52Q5KETX.mjs";
97
97
  import {
98
98
  DeeplineError
99
- } from "./chunk-JL2OTMSG.mjs";
99
+ } from "./chunk-Z3A2S3QM.mjs";
100
+ import {
101
+ stableStringify
102
+ } from "./chunk-2MGZAI54.mjs";
100
103
 
101
104
  // src/cli/commands/tools.ts
102
105
  import { Option } from "commander";
@@ -347,6 +350,81 @@ function toolConnectionStatusMessage(input) {
347
350
  return null;
348
351
  }
349
352
 
353
+ // src/cli/tool-param-flags.ts
354
+ var NUMBER_TEXT = /^-?(?:0|[1-9]\d*)(?:\.\d+)?(?:[eE][+-]?\d+)?$/;
355
+ function couldBeTyped(value) {
356
+ return value === "true" || value === "false" || NUMBER_TEXT.test(value);
357
+ }
358
+ function parseParamFlags(entries) {
359
+ const params = {};
360
+ for (const entry of entries) {
361
+ const eqIdx = entry.indexOf("=");
362
+ if (eqIdx <= 0) {
363
+ throw new Error(
364
+ `--param ${JSON.stringify(entry)} must be key=value, for example -p email=a@b.com. Use --input for a JSON object.`
365
+ );
366
+ }
367
+ params[entry.slice(0, eqIdx)] = entry.slice(eqIdx + 1);
368
+ }
369
+ return {
370
+ params,
371
+ typedCandidates: Object.entries(params).filter(([, value]) => couldBeTyped(value)).map(([key]) => key)
372
+ };
373
+ }
374
+ function isRecord2(value) {
375
+ return typeof value === "object" && value !== null && !Array.isArray(value);
376
+ }
377
+ function declaredTypes(schema, types = /* @__PURE__ */ new Set()) {
378
+ if (!isRecord2(schema)) return types;
379
+ const { type } = schema;
380
+ if (typeof type === "string") types.add(type);
381
+ if (Array.isArray(type)) {
382
+ for (const entry of type) if (typeof entry === "string") types.add(entry);
383
+ }
384
+ for (const key of ["anyOf", "oneOf", "allOf"]) {
385
+ const variants = schema[key];
386
+ if (Array.isArray(variants)) {
387
+ for (const variant of variants) declaredTypes(variant, types);
388
+ }
389
+ }
390
+ const values = [
391
+ ...Array.isArray(schema.enum) ? schema.enum : [],
392
+ ..."const" in schema ? [schema.const] : []
393
+ ];
394
+ for (const value of values) {
395
+ if (typeof value === "string") types.add("string");
396
+ if (typeof value === "boolean") types.add("boolean");
397
+ if (typeof value === "number") types.add("number");
398
+ }
399
+ return types;
400
+ }
401
+ function typedParamValue(inputSchema, key, text) {
402
+ const wrapped = inputSchema?.jsonSchema;
403
+ const root = isRecord2(wrapped) ? wrapped : inputSchema;
404
+ const properties = root?.properties;
405
+ if (!isRecord2(properties)) return text;
406
+ const types = declaredTypes(properties[key]);
407
+ if (types.size === 0 || types.has("string")) return text;
408
+ if (types.has("boolean") && (text === "true" || text === "false")) {
409
+ return text === "true";
410
+ }
411
+ if (NUMBER_TEXT.test(text)) {
412
+ const number = Number(text);
413
+ if (!Number.isFinite(number)) return text;
414
+ if (types.has("number")) return number;
415
+ if (types.has("integer") && Number.isInteger(number)) return number;
416
+ }
417
+ return text;
418
+ }
419
+
420
+ // src/cli/json-file-text.ts
421
+ function jsonFileText(bytes) {
422
+ if (bytes[0] === 255 && bytes[1] === 254) {
423
+ return new TextDecoder("utf-16le").decode(bytes.subarray(2));
424
+ }
425
+ return new TextDecoder("utf-8").decode(bytes).replace(/^/, "");
426
+ }
427
+
350
428
  // src/cli/commands/tools.ts
351
429
  var TOOL_EXECUTE_PREFLIGHT_TIMEOUT_MS = 750;
352
430
  var TOOL_COMMAND_TEMPLATES = {
@@ -378,9 +456,6 @@ function parseGrepTerms(query, mode) {
378
456
  const matches = trimmed.match(/"([^"]+)"|'([^']+)'|\S+/g) ?? [];
379
457
  return matches.map((term) => term.replace(/^["']|["']$/g, "").trim()).filter(Boolean);
380
458
  }
381
- function shellCommandArg(value) {
382
- return `'${value.replace(/'/g, `'\\''`)}'`;
383
- }
384
459
  function zeroMatchToolGuidance(options) {
385
460
  const categories = options.categories ?? [];
386
461
  const query = options.query?.trim() ?? "";
@@ -393,12 +468,12 @@ function zeroMatchToolGuidance(options) {
393
468
  ...query ? [
394
469
  {
395
470
  label: "Use ranked semantic search for intent-style queries",
396
- command: `deepline search -- ${shellCommandArg(query)}`
471
+ command: `deepline search -- ${shellArgument(query)}`
397
472
  },
398
473
  ...options.mode === "all" ? [
399
474
  {
400
475
  label: "Relax grep from AND to OR matching",
401
- command: `deepline tools grep --mode any -- ${shellCommandArg(query)}`
476
+ command: `deepline tools grep --mode any -- ${shellArgument(query)}`
402
477
  }
403
478
  ] : []
404
479
  ] : [],
@@ -829,7 +904,7 @@ Common commands:
829
904
  Output:
830
905
  deepline describe shows a tool's contract and price, and deepline run runs
831
906
  it. The receipt's billing command (next.billing with --json) gives a call's
832
- exact charge. Workspace balance changes also include other callers'
907
+ exact charge. Org balance changes also include other callers'
833
908
  activity.
834
909
  `
835
910
  );
@@ -932,15 +1007,15 @@ Examples:
932
1007
  deepline describe hunter_email_verifier --feature byok
933
1008
  deepline tools describe deeplineagent --model openai/gpt-5.6-luna
934
1009
  deepline tools describe ai_inference --estimate-payload @payload.json
935
- deepline tools describe ai_evaluate --estimate-payload @payload.json
1010
+ deepline tools describe ai_decision --estimate-payload @payload.json
936
1011
  deepline run hunter_email_verifier --input '{"email":"a@b.com"}'
937
1012
  `
938
1013
  ).option("--json", "Emit JSON output").option(
939
1014
  "--model <model>",
940
- "For language tools, include AI Gateway metadata; for ai_evaluate, set the quote payload model"
1015
+ "For language tools, include AI Gateway metadata; for ai_decision, set the quote payload model"
941
1016
  ).option(
942
1017
  "--estimate-payload <payload>",
943
- "Quote an ai_evaluate, ai_inference, or deeplineagent JSON payload (inline or @file)"
1018
+ "Quote an ai_decision, ai_inference, or deeplineagent JSON payload (inline or @file)"
944
1019
  ).option("--pricing-only", "Only print pricing and billing semantics").option(
945
1020
  "--examples-only",
946
1021
  "Only print input payload and full Deepline execution response examples"
@@ -977,7 +1052,7 @@ Examples:
977
1052
  process.exitCode = await narrowView();
978
1053
  return;
979
1054
  }
980
- const { describeAnything } = await import("./describe-QDANCTS3.mjs");
1055
+ const { describeAnything } = await import("./describe-EVJ4MFVU.mjs");
981
1056
  process.exitCode = await describeAnything(
982
1057
  toolId,
983
1058
  {
@@ -997,7 +1072,7 @@ Examples:
997
1072
  { json: false }
998
1073
  )
999
1074
  );
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(
1075
+ 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
1076
  "after",
1002
1077
  `
1003
1078
  Notes:
@@ -1007,7 +1082,7 @@ Notes:
1007
1082
  stable result payload plus output preview and debugging helpers.
1008
1083
  Read pricing first with deepline describe <toolId>.
1009
1084
  Use the returned next.billing command to look up this execution's exact charge;
1010
- workspace balance changes also include other callers' activity.
1085
+ org balance changes also include other callers' activity.
1011
1086
  --timeout sets this CLI request's HTTP deadline; it does not cancel provider work.
1012
1087
 
1013
1088
  Examples:
@@ -1127,11 +1202,13 @@ async function getTool(toolId, options = {}, compatibilityMetadata) {
1127
1202
  }
1128
1203
  throw error;
1129
1204
  }
1205
+ const resolvedToolId = typeof tool.toolId === "string" && tool.toolId ? tool.toolId : toolId;
1130
1206
  let inferenceQuote = null;
1131
1207
  if (options.estimatePayload) {
1132
- if (toolId !== "deeplineagent" && toolId !== "ai_inference" && toolId !== "ai_evaluate") {
1208
+ const quoteToolId = resolvedToolId;
1209
+ if (quoteToolId !== "deeplineagent" && quoteToolId !== "ai_inference" && quoteToolId !== "ai_evaluate") {
1133
1210
  console.error(
1134
- "--estimate-payload is only supported for ai_evaluate, deeplineagent, and ai_inference."
1211
+ "--estimate-payload is only supported for ai_decision, deeplineagent, and ai_inference."
1135
1212
  );
1136
1213
  return 2;
1137
1214
  }
@@ -1142,10 +1219,13 @@ async function getTool(toolId, options = {}, compatibilityMetadata) {
1142
1219
  if (options.model && estimatePayload.model === void 0) {
1143
1220
  estimatePayload.model = options.model;
1144
1221
  }
1145
- inferenceQuote = await client.quoteInferenceTool(toolId, estimatePayload);
1222
+ inferenceQuote = await client.quoteInferenceTool(
1223
+ quoteToolId,
1224
+ estimatePayload
1225
+ );
1146
1226
  }
1147
- const modelDescription = options.model && (toolId === "deeplineagent" || toolId === "ai_inference") ? await client.describeModel(options.model) : null;
1148
- if (options.model && !modelDescription && toolId !== "ai_evaluate") {
1227
+ const modelDescription = options.model && (resolvedToolId === "deeplineagent" || resolvedToolId === "ai_inference") ? await client.describeModel(options.model) : null;
1228
+ if (options.model && !modelDescription && resolvedToolId !== "ai_evaluate") {
1149
1229
  console.error(
1150
1230
  "--model is only supported for deeplineagent and ai_inference."
1151
1231
  );
@@ -1183,7 +1263,7 @@ async function getTool(toolId, options = {}, compatibilityMetadata) {
1183
1263
  );
1184
1264
  return 0;
1185
1265
  }
1186
- if ((options.schemaOnly || options.examplesOnly || options.gettersOnly) && !isMonitorTypeTool(tool) && !isPlayLikeTool(tool) && (options.json || options.contractJson)) {
1266
+ if ((options.schemaOnly || options.examplesOnly || options.gettersOnly) && !isMonitorTypeTool(tool) && !isMonitorVariantIndex(tool) && !isPlayLikeTool(tool) && (options.json || options.contractJson)) {
1187
1267
  const contract = toolContractJsonForDescribe(
1188
1268
  tool,
1189
1269
  toolId,
@@ -1599,6 +1679,16 @@ function printToolExamplesOnly(tool, requestedToolId) {
1599
1679
  printMonitorTypeDeploy(tool);
1600
1680
  return;
1601
1681
  }
1682
+ if (isMonitorVariantIndex(tool)) {
1683
+ console.log(
1684
+ `${requestedToolId} is deployed as one monitor type per radar type. Describe one for its example:`
1685
+ );
1686
+ for (const variant of arrayField(tool, "variants").filter(isRecord)) {
1687
+ const describeCommand = stringField(variant, "describeCommand");
1688
+ if (describeCommand) console.log(` ${describeCommand}`);
1689
+ }
1690
+ return;
1691
+ }
1602
1692
  if (isPlayLikeTool(tool)) {
1603
1693
  printPlayLikeToolUsage(tool, requestedToolId);
1604
1694
  return;
@@ -2017,10 +2107,7 @@ function readJsonArgument(raw, flagName) {
2017
2107
  throw new Error(`Invalid ${flagName} value: empty @file path.`);
2018
2108
  }
2019
2109
  try {
2020
- return readFileSync2(resolveAtFilePath(filePath), "utf8").replace(
2021
- /^\uFEFF/,
2022
- ""
2023
- );
2110
+ return jsonFileText(readFileSync2(resolveAtFilePath(filePath)));
2024
2111
  } catch (error) {
2025
2112
  const message = error instanceof Error ? error.message : String(error);
2026
2113
  throw new Error(
@@ -2064,28 +2151,32 @@ function parseExecuteOptions(toolId, options, output) {
2064
2151
  `Usage: deepline tools execute <toolId> [--param key=value ...] [--input '{"k":"v"}'] [--timeout <duration>] [--recover | --idempotency-key <key>] [--recovery-timeout-ms <ms>] [--out rows.csv] [--output-format auto|csv|csv_file|json|json_file] [--no-preview]`
2065
2152
  );
2066
2153
  }
2067
- const params = {};
2154
+ const paramFlags = parseParamFlags(options.param ?? []);
2155
+ const jsonParams = {};
2068
2156
  let outputFormat = output.requested ? "json" : "auto";
2069
2157
  let recoveryTimeoutMs;
2070
- for (const kv of options.param ?? []) {
2071
- const eqIdx = kv.indexOf("=");
2072
- if (eqIdx > 0) params[kv.slice(0, eqIdx)] = kv.slice(eqIdx + 1);
2073
- }
2074
2158
  if (output.legacyInput !== void 0) {
2075
2159
  Object.assign(
2076
- params,
2160
+ jsonParams,
2077
2161
  parseJsonObjectArgument(output.legacyInput, "--json")
2078
2162
  );
2079
2163
  }
2080
2164
  if (options.input !== void 0) {
2081
- Object.assign(params, parseJsonObjectArgument(options.input, "--input"));
2165
+ Object.assign(
2166
+ jsonParams,
2167
+ parseJsonObjectArgument(options.input, "--input")
2168
+ );
2082
2169
  }
2083
2170
  if (options.payload !== void 0) {
2084
2171
  Object.assign(
2085
- params,
2172
+ jsonParams,
2086
2173
  parseJsonObjectArgument(options.payload, "--payload")
2087
2174
  );
2088
2175
  }
2176
+ const params = {
2177
+ ...paramFlags.params,
2178
+ ...jsonParams
2179
+ };
2089
2180
  if (options.outputFormat !== void 0) {
2090
2181
  outputFormat = normalizeOutputFormat(options.outputFormat);
2091
2182
  }
@@ -2107,6 +2198,10 @@ function parseExecuteOptions(toolId, options, output) {
2107
2198
  return {
2108
2199
  toolId,
2109
2200
  params,
2201
+ // -p values a JSON flag did not replace, which may need a typed value.
2202
+ typedParamCandidates: paramFlags.typedCandidates.filter(
2203
+ (key) => !Object.hasOwn(jsonParams, key)
2204
+ ),
2110
2205
  outputFormat,
2111
2206
  noPreview: options.preview === false,
2112
2207
  outPath: options.out !== void 0 ? resolve(options.out) : null,
@@ -2523,14 +2618,24 @@ async function executeToolForReceipt(input) {
2523
2618
  });
2524
2619
  key = recovery.idempotencyKey ?? null;
2525
2620
  retryKey = recovery;
2526
- const response = await client.executeTool(toolId, params, {
2621
+ const warnings = [];
2622
+ const call = (idempotencyKey) => client.executeTool(toolId, params, {
2527
2623
  responseIntent,
2528
2624
  ...input.timeoutMs !== void 0 ? { timeout: input.timeoutMs } : {},
2529
2625
  ...metadata.executionMetadata?.retrySafeTransientHttp === true ? { maxRetries: 2, retryApiErrors: true } : {},
2530
- ...key ? { idempotencyKey: key } : {},
2626
+ ...idempotencyKey ? { idempotencyKey } : {},
2531
2627
  searchRef: recentSearchRef(toolId),
2532
2628
  cliInvocationId,
2533
2629
  onResponseReceived: recordApiResponse
2630
+ });
2631
+ const response = await call(key).catch((error) => {
2632
+ if (!key || !refusedRetryKey(error)) throw error;
2633
+ recovery.discard();
2634
+ key = null;
2635
+ 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.`;
2636
+ warnings.push(warning);
2637
+ console.error(warning);
2638
+ return call(null);
2534
2639
  }).catch((error) => {
2535
2640
  const guidance = toolGuidanceLines(metadata.guidance);
2536
2641
  if (guidance.length)
@@ -2543,9 +2648,13 @@ async function executeToolForReceipt(input) {
2543
2648
  metadata,
2544
2649
  response,
2545
2650
  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
- ] : []
2651
+ warnings: [
2652
+ ...warnings,
2653
+ // Only a call that still carries its saved key was replayed.
2654
+ ...recovery.resumed && key ? [
2655
+ "Resumed an interrupted call with its saved retry key; it was not charged again. --fresh calls the provider again."
2656
+ ] : []
2657
+ ]
2549
2658
  });
2550
2659
  await recovery.acknowledgeDelivery();
2551
2660
  return code;
@@ -2569,9 +2678,24 @@ async function executeToolForReceipt(input) {
2569
2678
  return 1;
2570
2679
  }
2571
2680
  }
2681
+ function refusedRetryKey(error) {
2682
+ 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.
2683
+ // The SDK raises the same code locally when a recovery read finds no
2684
+ // support after a POST that may have been dispatched; that one must keep
2685
+ // its key and report an unknown outcome, never call again.
2686
+ serverBodyHasCode(error.details?.response, "IDEMPOTENCY_NOT_SUPPORTED");
2687
+ }
2688
+ function serverBodyHasCode(body, code) {
2689
+ if (!body || typeof body !== "object") return false;
2690
+ const record = body;
2691
+ if (record.code === code) return true;
2692
+ return serverBodyHasCode(record.error, code);
2693
+ }
2572
2694
  function answeredWithFailure(error) {
2573
2695
  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";
2696
+ error.statusCode !== 408 && error.code !== "EXECUTION_OUTCOME_UNKNOWN" && // The SDK's own "no recovery support" after a keyed POST is not the
2697
+ // server's answer: that POST may have run, so its key must survive.
2698
+ !(error.code === "IDEMPOTENCY_NOT_SUPPORTED" && !serverBodyHasCode(error.details?.response, "IDEMPOTENCY_NOT_SUPPORTED"));
2575
2699
  }
2576
2700
  async function getToolExecutionReceipt(key, output) {
2577
2701
  const client = new DeeplineClient();
@@ -2650,6 +2774,28 @@ async function executeTool(toolId, options, compatibilityMetadata, deferCompatib
2650
2774
  }
2651
2775
  return assertExecutableToolMetadata(parsed.toolId, metadata);
2652
2776
  };
2777
+ const commandParams = { ...parsed.params };
2778
+ if (parsed.typedParamCandidates.length > 0) {
2779
+ let toolMetadata;
2780
+ try {
2781
+ toolMetadata = await readMetadata();
2782
+ } catch (error) {
2783
+ if (error instanceof DeeplineError && error.code === "PLAY_ALIAS_USED_AS_TOOL") {
2784
+ if (wantsJson) printJsonError(error);
2785
+ else console.error(error.message);
2786
+ return 2;
2787
+ }
2788
+ }
2789
+ if (toolMetadata) {
2790
+ for (const key of parsed.typedParamCandidates) {
2791
+ parsed.params[key] = typedParamValue(
2792
+ toolMetadata.inputSchema,
2793
+ key,
2794
+ String(parsed.params[key])
2795
+ );
2796
+ }
2797
+ }
2798
+ }
2653
2799
  let executionWarningsPrinted = false;
2654
2800
  if (deferredCompatibility) {
2655
2801
  let preflightCompatibility;
@@ -2702,7 +2848,7 @@ async function executeTool(toolId, options, compatibilityMetadata, deferCompatib
2702
2848
  const responseIntent = parsed.outPath || parsed.outputFormat === "csv" || parsed.outputFormat === "csv_file" ? "row_artifact" : "raw";
2703
2849
  const recovery = ToolCallRecovery.open({
2704
2850
  toolId: parsed.toolId,
2705
- params: parsed.params,
2851
+ params: commandParams,
2706
2852
  responseIntent,
2707
2853
  recover: parsed.recover,
2708
2854
  idempotencyKey: parsed.idempotencyKey
@@ -2753,31 +2899,31 @@ async function executeTool(toolId, options, compatibilityMetadata, deferCompatib
2753
2899
  if (maintenancePolicy !== "off") {
2754
2900
  flushDeferredSkillsSyncNotices(baseUrl);
2755
2901
  }
2756
- const compatibility = deferredCompatibility ? await deferredCompatibility.result : await runToolExecuteStage(
2902
+ const preflight = deferredCompatibility ? await deferredCompatibility.result.catch(() => null) : null;
2903
+ const compatibilityResponse = preflight?.live === true ? preflight.response : await runToolExecuteStage(
2757
2904
  "SDK compatibility",
2758
- () => checkSdkCompatibility(baseUrl, {
2905
+ () => requireSdkCompatibility(baseUrl, {
2759
2906
  command: "tools execute",
2760
2907
  skillsVersion: readSdkSkillsLocalVersion(baseUrl),
2761
2908
  persistCache: maintenancePolicy !== "off"
2762
2909
  })
2763
2910
  );
2764
- if (compatibility.error) throw compatibility.error;
2765
2911
  metadata = deferredCompatibility?.readMetadata() ?? metadata;
2766
2912
  if (maintenancePolicy !== "off" && await maybeAutoUpdateAndRelaunch(
2767
- compatibility.response,
2913
+ compatibilityResponse,
2768
2914
  baseUrl,
2769
2915
  maintenancePolicy
2770
2916
  )) {
2771
2917
  return void 0;
2772
2918
  }
2773
- enforceSdkCompatibilityResponse(compatibility.response, {
2919
+ enforceSdkCompatibilityResponse(compatibilityResponse, {
2774
2920
  quietAdvisory: wantsJson
2775
2921
  });
2776
2922
  if (maintenancePolicy !== "off") {
2777
2923
  await runToolExecuteStage(
2778
2924
  "agent skills sync",
2779
2925
  () => syncSdkSkillsIfNeeded(baseUrl, {
2780
- update: compatibility.response?.skills,
2926
+ update: compatibilityResponse?.skills,
2781
2927
  mode: "detached"
2782
2928
  })
2783
2929
  );
@@ -3092,6 +3238,7 @@ inspect: ${inspection.inspect}
3092
3238
  }
3093
3239
 
3094
3240
  export {
3241
+ jsonFileText,
3095
3242
  registerToolsCommands,
3096
3243
  printMonitorTypeContract,
3097
3244
  printCompactToolContract,
@@ -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,
@@ -7,9 +7,9 @@
7
7
 
8
8
 
9
9
 
10
- var _chunk4UUR4TCHjs = require('./chunk-4UUR4TCH.js');
10
+ var _chunkIVZKMJUKjs = require('./chunk-IVZKMJUK.js');
11
11
  require('./chunk-H4ALLC2X.js');
12
- require('./chunk-V436Z54K.js');
12
+ require('./chunk-E2G2DNAB.js');
13
13
  require('./chunk-YGCKMI5P.js');
14
14
  require('./chunk-COGTRVWW.js');
15
15
 
@@ -21,4 +21,4 @@ require('./chunk-COGTRVWW.js');
21
21
 
22
22
 
23
23
 
24
- exports.CLI_DOC_SURFACE = _chunk4UUR4TCHjs.CLI_DOC_SURFACE; exports.COMMAND_DOCS = _chunk4UUR4TCHjs.COMMAND_DOCS; exports.PLAY_RUNTIME_PRICING_NOTE = _chunk4UUR4TCHjs.PLAY_RUNTIME_PRICING_NOTE; exports.commandDocKey = _chunk4UUR4TCHjs.commandDocKey; exports.helpDetailFromArgv = _chunk4UUR4TCHjs.helpDetailFromArgv; exports.renderActionExplanation = _chunk4UUR4TCHjs.renderActionExplanation; exports.renderCommandExplanation = _chunk4UUR4TCHjs.renderCommandExplanation; exports.renderDocText = _chunk4UUR4TCHjs.renderDocText;
24
+ exports.CLI_DOC_SURFACE = _chunkIVZKMJUKjs.CLI_DOC_SURFACE; exports.COMMAND_DOCS = _chunkIVZKMJUKjs.COMMAND_DOCS; exports.PLAY_RUNTIME_PRICING_NOTE = _chunkIVZKMJUKjs.PLAY_RUNTIME_PRICING_NOTE; exports.commandDocKey = _chunkIVZKMJUKjs.commandDocKey; exports.helpDetailFromArgv = _chunkIVZKMJUKjs.helpDetailFromArgv; exports.renderActionExplanation = _chunkIVZKMJUKjs.renderActionExplanation; exports.renderCommandExplanation = _chunkIVZKMJUKjs.renderCommandExplanation; exports.renderDocText = _chunkIVZKMJUKjs.renderDocText;
@@ -7,9 +7,9 @@ import {
7
7
  renderActionExplanation,
8
8
  renderCommandExplanation,
9
9
  renderDocText
10
- } from "./chunk-QX7LFGJR.mjs";
10
+ } from "./chunk-33WRQSQ2.mjs";
11
11
  import "./chunk-2RIKOPIM.mjs";
12
- import "./chunk-6ZORHRKB.mjs";
12
+ import "./chunk-LRZGS6RZ.mjs";
13
13
  import "./chunk-7I4B6V2S.mjs";
14
14
  import "./chunk-KRD6H754.mjs";
15
15
  export {
@@ -2,16 +2,17 @@ import {
2
2
  CONCURRENT_RUNS_HELP_COMMANDS,
3
3
  concurrentRunsHelpStatus,
4
4
  concurrentRunsLine
5
- } from "./chunk-HYC4MKGK.mjs";
6
- import "./chunk-EOPEYCY7.mjs";
5
+ } from "./chunk-Q7ACILL2.mjs";
6
+ import "./chunk-2ORPFQUA.mjs";
7
7
  import "./chunk-2RIKOPIM.mjs";
8
- import "./chunk-6PRW5UBA.mjs";
9
- import "./chunk-4TALT2M3.mjs";
10
- import "./chunk-YLTMXJFC.mjs";
11
- import "./chunk-NURW5XH4.mjs";
8
+ import "./chunk-UC4BDZKI.mjs";
9
+ import "./chunk-52Q5KETX.mjs";
10
+ import "./chunk-S6W6SJ6E.mjs";
11
+ import "./chunk-ASB47RXJ.mjs";
12
12
  import "./chunk-DLIRSHV6.mjs";
13
- import "./chunk-JL2OTMSG.mjs";
14
- import "./chunk-AQWQ2BFX.mjs";
13
+ import "./chunk-Z3A2S3QM.mjs";
14
+ import "./chunk-2MGZAI54.mjs";
15
+ import "./chunk-FXQ3JKE3.mjs";
15
16
  import "./chunk-WZYKRD7T.mjs";
16
17
  import "./chunk-KRD6H754.mjs";
17
18
  export {