deepline 0.3.461 → 0.3.463

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 (297) hide show
  1. package/dist/bundling-sources/sdk/src/client-core.ts +7593 -0
  2. package/dist/bundling-sources/sdk/src/client.ts +8 -7366
  3. package/dist/bundling-sources/sdk/src/http-core.ts +1239 -0
  4. package/dist/bundling-sources/sdk/src/http.ts +6 -1231
  5. package/dist/bundling-sources/sdk/src/index.ts +4 -1
  6. package/dist/bundling-sources/sdk/src/play.ts +5 -5
  7. package/dist/bundling-sources/sdk/src/plays/client-core.ts +437 -0
  8. package/dist/bundling-sources/sdk/src/plays/client.ts +4 -421
  9. package/dist/bundling-sources/sdk/src/plays/input-example.ts +3 -4
  10. package/dist/bundling-sources/sdk/src/plays/play-description.ts +1 -1
  11. package/dist/bundling-sources/sdk/src/plays/run-request.ts +1 -1
  12. package/dist/bundling-sources/sdk/src/release.ts +1 -1
  13. package/dist/bundling-sources/sdk/src/server.ts +43 -0
  14. package/dist/bundling-sources/sdk/src/types.ts +15 -5
  15. package/dist/bundling-sources/shared_libs/integration-contracts/billing-entitlements.ts +15 -0
  16. package/dist/bundling-sources/shared_libs/monitors/billing/tamradar.ts +17 -17
  17. package/dist/bundling-sources/shared_libs/monitors/callback-security.ts +0 -307
  18. package/dist/bundling-sources/shared_libs/monitors/http-error-response.ts +3 -0
  19. package/dist/bundling-sources/shared_libs/monitors/lifecycle-notifications.ts +3 -2
  20. package/dist/bundling-sources/shared_libs/monitors/package.json +2 -0
  21. package/dist/bundling-sources/shared_libs/monitors/provider-callback-verification.ts +34 -0
  22. package/dist/bundling-sources/shared_libs/monitors/provider-monitor-batch-operation.ts +61 -0
  23. package/dist/bundling-sources/shared_libs/monitors/provider-monitor-upstream-identity.ts +122 -2
  24. package/dist/bundling-sources/shared_libs/monitors/signal-radars/inbound-dead-letter.ts +11 -1
  25. package/dist/bundling-sources/shared_libs/monitors/signal-radars/inbound-failure-codes.ts +24 -0
  26. package/dist/bundling-sources/shared_libs/observability/dlq.ts +32 -0
  27. package/dist/bundling-sources/shared_libs/observability/scheduled-jobs.json +57 -3
  28. package/dist/bundling-sources/shared_libs/observability/scheduled-work.ts +1 -0
  29. package/dist/bundling-sources/shared_libs/play-data-plane/r2.ts +66 -1
  30. package/dist/bundling-sources/shared_libs/play-data-plane/sheet-column-storage.ts +36 -7
  31. package/dist/bundling-sources/shared_libs/play-runtime/app-runtime-api.ts +250 -11
  32. package/dist/bundling-sources/shared_libs/play-runtime/array-input-store.ts +319 -0
  33. package/dist/bundling-sources/shared_libs/play-runtime/context.ts +991 -359
  34. package/dist/bundling-sources/shared_libs/play-runtime/ctx-types.ts +17 -0
  35. package/dist/bundling-sources/shared_libs/play-runtime/daytona-sandbox-janitor.ts +13 -0
  36. package/dist/bundling-sources/shared_libs/play-runtime/daytona-sandbox-reaper.ts +110 -0
  37. package/dist/bundling-sources/shared_libs/play-runtime/deployment/fly-machines.ts +155 -6
  38. package/dist/bundling-sources/shared_libs/play-runtime/deployment/fly-registry.ts +110 -6
  39. package/dist/bundling-sources/shared_libs/play-runtime/durable-receipt-execution.ts +127 -13
  40. package/dist/bundling-sources/shared_libs/play-runtime/execution-capabilities.ts +14 -1
  41. package/dist/bundling-sources/shared_libs/play-runtime/fixture-behavior.ts +57 -1
  42. package/dist/bundling-sources/shared_libs/play-runtime/free-company-lookup-batching.ts +218 -0
  43. package/dist/bundling-sources/shared_libs/play-runtime/gateway-postgres-admission.ts +42 -5
  44. package/dist/bundling-sources/shared_libs/play-runtime/governor/app-runtime-budget-state-backend.ts +6 -1
  45. package/dist/bundling-sources/shared_libs/play-runtime/governor/app-runtime-rate-state-backend.ts +92 -31
  46. package/dist/bundling-sources/shared_libs/play-runtime/governor/block-reserving-budget-state-backend.ts +69 -14
  47. package/dist/bundling-sources/shared_libs/play-runtime/governor/governor.ts +93 -23
  48. package/dist/bundling-sources/shared_libs/play-runtime/governor/in-memory-rate-state-backend.ts +15 -4
  49. package/dist/bundling-sources/shared_libs/play-runtime/governor/policy.ts +22 -18
  50. package/dist/bundling-sources/shared_libs/play-runtime/governor/rate-state-backend.ts +5 -0
  51. package/dist/bundling-sources/shared_libs/play-runtime/launch-identity.ts +2 -0
  52. package/dist/bundling-sources/shared_libs/play-runtime/map-memory-limits.ts +190 -14
  53. package/dist/bundling-sources/shared_libs/play-runtime/memory-ledger.ts +131 -0
  54. package/dist/bundling-sources/shared_libs/play-runtime/modal-runtime-config.ts +77 -2
  55. package/dist/bundling-sources/shared_libs/play-runtime/output-size-limits.ts +271 -2
  56. package/dist/bundling-sources/shared_libs/play-runtime/play-run-recovery-policy.ts +51 -0
  57. package/dist/bundling-sources/shared_libs/play-runtime/play-runs/sandbox-cleanup/contracts.ts +2 -0
  58. package/dist/bundling-sources/shared_libs/play-runtime/play-runs/sandbox-cleanup/job.ts +27 -1
  59. package/dist/bundling-sources/shared_libs/play-runtime/play-runtime-batching-registry.ts +2 -0
  60. package/dist/bundling-sources/shared_libs/play-runtime/protocol.ts +3 -0
  61. package/dist/bundling-sources/shared_libs/play-runtime/provider-text-for-log.ts +63 -0
  62. package/dist/bundling-sources/shared_libs/play-runtime/resource-governor.ts +19 -0
  63. package/dist/bundling-sources/shared_libs/play-runtime/run-ledger-event-transport.ts +112 -16
  64. package/dist/bundling-sources/shared_libs/play-runtime/run-ledger.ts +104 -2
  65. package/dist/bundling-sources/shared_libs/play-runtime/runner-app/index.ts +265 -151
  66. package/dist/bundling-sources/shared_libs/play-runtime/runner-app/runtime-gateway-transport.ts +17 -0
  67. package/dist/bundling-sources/shared_libs/play-runtime/runner-app/runtime-progress-push.ts +35 -14
  68. package/dist/bundling-sources/shared_libs/play-runtime/runner-app/runtime-sheet-persistence-retry.ts +12 -1
  69. package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/backends/daytona-control-transport.ts +4 -0
  70. package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/backends/daytona-labels.ts +36 -0
  71. package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/backends/daytona-launch-transport.ts +136 -70
  72. package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/backends/daytona-lifecycle.ts +237 -36
  73. package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/backends/daytona-runtime-watchdog.ts +148 -4
  74. package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/backends/daytona-session-execution.ts +6 -0
  75. package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/backends/daytona.ts +285 -32
  76. package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/backends/modal.ts +251 -56
  77. package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/runtime-sandbox-reconciliation.ts +29 -4
  78. package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/sandbox-create-outcome.ts +27 -0
  79. package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/types.ts +22 -1
  80. package/dist/bundling-sources/shared_libs/play-runtime/runtime-api.ts +1397 -382
  81. package/dist/bundling-sources/shared_libs/play-runtime/runtime-array-input-receipts.ts +920 -0
  82. package/dist/bundling-sources/shared_libs/play-runtime/runtime-constants.ts +16 -0
  83. package/dist/bundling-sources/shared_libs/play-runtime/runtime-environment.ts +38 -0
  84. package/dist/bundling-sources/shared_libs/play-runtime/runtime-flow.ts +6 -0
  85. package/dist/bundling-sources/shared_libs/play-runtime/runtime-incident-drills.ts +26 -1
  86. package/dist/bundling-sources/shared_libs/play-runtime/runtime-operation-contract.ts +30 -0
  87. package/dist/bundling-sources/shared_libs/play-runtime/runtime-receipt-store-adapter.ts +14 -3
  88. package/dist/bundling-sources/shared_libs/play-runtime/runtime-receipt-writer.ts +31 -4
  89. package/dist/bundling-sources/shared_libs/play-runtime/runtime-sheet-row-transition.ts +47 -0
  90. package/dist/bundling-sources/shared_libs/play-runtime/sandbox-compute-usage.ts +20 -7
  91. package/dist/bundling-sources/shared_libs/play-runtime/sandbox-runs/contract.ts +12 -0
  92. package/dist/bundling-sources/shared_libs/play-runtime/sandbox-runs/index.ts +9 -0
  93. package/dist/bundling-sources/shared_libs/play-runtime/sandbox-runs/runner-backend-adapter.ts +10 -0
  94. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backend.ts +4 -0
  95. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/absurd-runtime-worker.ts +1496 -320
  96. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/absurd-worker-required-env.ts +31 -1
  97. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/postgres.ts +1389 -129
  98. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/receipt-gateway.ts +36 -0
  99. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/run-ledger-dispatch-authority.ts +4 -0
  100. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/run-ledger-outbox-recovery.ts +162 -23
  101. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/runtime-event-search.ts +499 -115
  102. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/runtime-sandbox-capacity.ts +377 -9
  103. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/runtime-sandbox-ledger-reconciliation.ts +117 -8
  104. package/dist/bundling-sources/shared_libs/play-runtime/secret-resolution-retry-policy.ts +25 -0
  105. package/dist/bundling-sources/shared_libs/play-runtime/terminal-runtime-performance.ts +391 -0
  106. package/dist/bundling-sources/shared_libs/play-runtime/test-runtime-seams.ts +40 -0
  107. package/dist/bundling-sources/shared_libs/play-runtime/tool-call/index.ts +6 -0
  108. package/dist/bundling-sources/shared_libs/play-runtime/tool-call/mapped-calls.ts +171 -0
  109. package/dist/bundling-sources/shared_libs/play-runtime/tool-call/receipt-cohort.ts +16 -1
  110. package/dist/bundling-sources/shared_libs/play-runtime/tool-execute-retry-policy.ts +38 -12
  111. package/dist/bundling-sources/shared_libs/play-runtime/tool-result.ts +33 -9
  112. package/dist/bundling-sources/shared_libs/play-runtime/transport-error-diagnostics.ts +28 -0
  113. package/dist/bundling-sources/shared_libs/play-runtime/work-receipt-storage-contract.ts +55 -5
  114. package/dist/bundling-sources/shared_libs/plays/authoring-contract.ts +41 -1
  115. package/dist/bundling-sources/shared_libs/plays/contracts.ts +4 -0
  116. package/dist/bundling-sources/shared_libs/plays/dataset.ts +9 -3
  117. package/dist/bundling-sources/shared_libs/plays/deploy/manifest-contract.ts +2 -0
  118. package/dist/bundling-sources/shared_libs/plays/deploy/manifest.ts +3 -2
  119. package/dist/bundling-sources/shared_libs/plays/deploy/project-serializer.ts +2 -2
  120. package/dist/bundling-sources/shared_libs/plays/run-output-summary.ts +66 -0
  121. package/dist/bundling-sources/shared_libs/plays/script-entry.ts +1 -1
  122. package/dist/bundling-sources/shared_libs/product-notifications/catalog.ts +43 -1
  123. package/dist/bundling-sources/shared_libs/product-notifications/content.ts +9 -0
  124. package/dist/bundling-sources/shared_libs/product-notifications/email.ts +91 -13
  125. package/dist/bundling-sources/shared_libs/product-notifications/events.ts +3 -0
  126. package/dist/bundling-sources/shared_libs/product-notifications/slack-delivery.ts +41 -24
  127. package/dist/bundling-sources/shared_libs/security/attested-client-ip.ts +91 -0
  128. package/dist/bundling-sources/shared_libs/security/internal-actor.ts +0 -11
  129. package/dist/cli/{auth-6HJXNWUG.mjs → auth-LZLBR4C3.mjs} +5 -4
  130. package/dist/cli/auth-XPGKBJKB.js +41 -0
  131. package/dist/cli/{billing-6P5HO6QG.js → billing-6TJPNJQD.js} +152 -78
  132. package/dist/cli/{billing-MJ42N7YF.mjs → billing-OTOP5RE4.mjs} +84 -10
  133. package/dist/cli/{chunk-FCAZQ7WV.js → chunk-2NISBXMN.js} +52 -50
  134. package/dist/cli/{chunk-PNATXKLP.js → chunk-2ZIRCBYG.js} +6 -6
  135. package/dist/cli/{chunk-5FDKJQZE.js → chunk-3BOIOCNX.js} +1 -1
  136. package/dist/cli/chunk-3BVLLJ3H.mjs +1038 -0
  137. package/dist/cli/{chunk-FJZILBL7.mjs → chunk-3U5EAP6E.mjs} +5 -5
  138. package/dist/cli/{describe-FRAVCY5F.mjs → chunk-4YZKBBLZ.mjs} +19 -36
  139. package/dist/cli/{chunk-QWRHGGUH.js → chunk-5DRNNC72.js} +20 -2
  140. package/dist/cli/{chunk-Z2GUFYT6.js → chunk-5LEAXRHV.js} +11 -11
  141. package/dist/cli/{chunk-5MDIZX7M.js → chunk-5LHXOIPT.js} +8 -6
  142. package/dist/cli/{chunk-NMJ4D2WO.js → chunk-6PMCRYDA.js} +216 -91
  143. package/dist/cli/{chunk-EBU7LQ64.js → chunk-6V7KVRR5.js} +3 -3
  144. package/dist/cli/{chunk-MGXEUZHL.mjs → chunk-7D6X7IXW.mjs} +7 -5
  145. package/dist/cli/{chunk-SAZFZQRI.js → chunk-7FCYPAPP.js} +2 -2
  146. package/dist/cli/{chunk-ACCR7POB.js → chunk-7XYDDCQ2.js} +27 -27
  147. package/dist/cli/{chunk-5IYOUBFZ.js → chunk-ALZBANZI.js} +28 -54
  148. package/dist/cli/{chunk-3DNKFH2G.mjs → chunk-BAPTQDLF.mjs} +19 -1
  149. package/dist/cli/chunk-BGNWI3KH.js +827 -0
  150. package/dist/cli/{chunk-V7REJRDZ.mjs → chunk-C25QE4CH.mjs} +1 -1
  151. package/dist/cli/{chunk-FGMX4HUZ.js → chunk-CBZP6J3V.js} +29 -27
  152. package/dist/cli/{chunk-QEYHTIV4.mjs → chunk-CTQ56DXP.mjs} +10 -1
  153. package/dist/cli/{chunk-IHHLTHE7.mjs → chunk-CVQ7N5CV.mjs} +267 -38
  154. package/dist/cli/{chunk-7DH2FD7Y.mjs → chunk-D464JW3N.mjs} +5 -85
  155. package/dist/cli/{chunk-MEAIOXJL.mjs → chunk-DHXCBITQ.mjs} +7 -5
  156. package/dist/cli/chunk-F2RHUPVH.mjs +827 -0
  157. package/dist/cli/chunk-F6QV42MC.mjs +91 -0
  158. package/dist/cli/{chunk-OZBWRICM.js → chunk-FK2HNDCN.js} +2 -2
  159. package/dist/cli/{chunk-BGY2PLP7.mjs → chunk-GUT7CLOL.mjs} +23 -49
  160. package/dist/cli/{chunk-RY4IVOU3.mjs → chunk-I624J4H5.mjs} +16 -806
  161. package/dist/cli/{chunk-Z2XUZC34.js → chunk-IAYSWZDJ.js} +188 -76
  162. package/dist/cli/{chunk-FGLKOWSC.mjs → chunk-IKWRUNAP.mjs} +1 -1
  163. package/dist/cli/{chunk-KCCOQ5G5.js → chunk-JVDKZJUH.js} +511 -282
  164. package/dist/cli/{chunk-HDFRJ4IT.mjs → chunk-JVHOS3K3.mjs} +177 -65
  165. package/dist/cli/chunk-LYFKBLJI.mjs +1039 -0
  166. package/dist/cli/{chunk-SLEUWLJE.mjs → chunk-MSY22NQW.mjs} +5 -5
  167. package/dist/cli/{chunk-5FY72YOV.js → chunk-NAPTMYTY.js} +8 -8
  168. package/dist/cli/{chunk-O6QOMHCH.js → chunk-NDHJR2WZ.js} +37 -35
  169. package/dist/cli/{chunk-KXMNM4AQ.js → chunk-NMU3VR5U.js} +4 -5
  170. package/dist/cli/chunk-NTLI6P6Y.mjs +19 -0
  171. package/dist/cli/{chunk-RFONC4WJ.mjs → chunk-O3BJYD6D.mjs} +3 -3
  172. package/dist/cli/{describe-2WQY7ZCY.js → chunk-PVY4DPPF.js} +27 -44
  173. package/dist/cli/{chunk-WIYWSYDS.mjs → chunk-Q2EIZKVX.mjs} +3 -3
  174. package/dist/cli/{chunk-VZBCEA5S.mjs → chunk-RD6IQ2JY.mjs} +223 -92
  175. package/dist/cli/chunk-RGOUCIIZ.js +1039 -0
  176. package/dist/cli/{chunk-EIMG75BT.mjs → chunk-S3A4IXBQ.mjs} +4 -5
  177. package/dist/cli/{chunk-QIW7TVV6.mjs → chunk-S4XQCFES.mjs} +14 -12
  178. package/dist/cli/chunk-SKU6ECIY.js +19 -0
  179. package/dist/cli/{chunk-CRYOUPEB.js → chunk-TIRBDQ3W.js} +16 -16
  180. package/dist/cli/{chunk-G7L27KZB.mjs → chunk-TKAQR3IB.mjs} +31 -21
  181. package/dist/cli/{chunk-MDJPEGVN.js → chunk-UC4SFYNU.js} +392 -261
  182. package/dist/cli/{chunk-3BMLICF7.mjs → chunk-UIURR26V.mjs} +13 -8
  183. package/dist/cli/{chunk-TNMBPMMC.js → chunk-UROQDCVW.js} +13 -4
  184. package/dist/cli/{chunk-R64BGGRQ.mjs → chunk-VDGTTH7K.mjs} +2 -2
  185. package/dist/cli/chunk-VLEVVDWG.js +91 -0
  186. package/dist/cli/{chunk-R2GLGLDR.mjs → chunk-VPHN2HAL.mjs} +216 -91
  187. package/dist/cli/chunk-VY2GBNTX.js +1038 -0
  188. package/dist/cli/{chunk-CFUTOWE4.js → chunk-WG3KGAII.js} +8 -88
  189. package/dist/cli/{chunk-QAJAJPKK.mjs → chunk-WUMIYOXQ.mjs} +4 -2
  190. package/dist/cli/{chunk-SCIR5JXW.js → chunk-WUZS2HK6.js} +56 -51
  191. package/dist/cli/{chunk-T3MVIPHG.mjs → chunk-XDWS2JJT.mjs} +1 -1
  192. package/dist/cli/{chunk-KGQNIA37.js → chunk-XQCTG5OO.js} +44 -34
  193. package/dist/cli/{chunk-KVJ5VHW5.mjs → chunk-XW2JIYG7.mjs} +2 -2
  194. package/dist/cli/chunk-YGGIZ3VT.js +920 -0
  195. package/dist/cli/command-docs.d.mts +5 -0
  196. package/dist/cli/command-docs.d.ts +5 -0
  197. package/dist/cli/command-docs.js +2 -2
  198. package/dist/cli/command-docs.mjs +1 -1
  199. package/dist/cli/{csv-NX7NO3O6.js → csv-EH5QWR4O.js} +13 -12
  200. package/dist/cli/{csv-DQ6GW5B5.mjs → csv-OK45Z5XQ.mjs} +4 -3
  201. package/dist/cli/{db-R72DFMP6.js → db-3ESJKETS.js} +30 -27
  202. package/dist/cli/{db-2YP33M4K.mjs → db-6Z5E4HKN.mjs} +10 -7
  203. package/dist/cli/describe-PNDQB7YS.mjs +48 -0
  204. package/dist/cli/describe-QUF7VTTR.js +48 -0
  205. package/dist/cli/describe-core.d.mts +153 -5
  206. package/dist/cli/describe-core.d.ts +153 -5
  207. package/dist/cli/describe-core.js +9 -5
  208. package/dist/cli/describe-core.mjs +10 -6
  209. package/dist/cli/{executions-WFBU7L2Q.mjs → executions-2NTWQFEG.mjs} +7 -5
  210. package/dist/cli/{executions-ZLHD4QIT.js → executions-KUOBRX5V.js} +9 -7
  211. package/dist/cli/{feedback-CN3HJFVF.mjs → feedback-7RPRMSGY.mjs} +6 -5
  212. package/dist/cli/{feedback-NDV6TPHG.js → feedback-UPHAZJ4C.js} +10 -9
  213. package/dist/cli/getting-started.d.mts +6 -6
  214. package/dist/cli/getting-started.d.ts +6 -6
  215. package/dist/cli/getting-started.js +2 -2
  216. package/dist/cli/getting-started.mjs +1 -1
  217. package/dist/cli/{git-QAD6E3HW.mjs → git-SCYP6WSZ.mjs} +5 -4
  218. package/dist/cli/git-UH653WHV.js +25 -0
  219. package/dist/cli/index.js +152 -142
  220. package/dist/cli/index.mjs +56 -46
  221. package/dist/cli/{legacy-noops-KVC5QJ74.js → legacy-noops-7XMFCVRG.js} +8 -7
  222. package/dist/cli/{legacy-noops-TPTKNBI2.mjs → legacy-noops-A4KYAGI6.mjs} +5 -4
  223. package/dist/cli/{monitors-SV57JFLO.mjs → monitors-FLC5J7RI.mjs} +19 -6
  224. package/dist/cli/{monitors-KCROV6PJ.js → monitors-NZV6IX5H.js} +103 -90
  225. package/dist/cli/{org-NJYX5743.js → org-IZ7UP3XF.js} +70 -67
  226. package/dist/cli/{org-KX6QIR7A.mjs → org-LUETJ7Z5.mjs} +9 -6
  227. package/dist/cli/pages-22ML3O7O.js +252 -0
  228. package/dist/cli/pages-EUX5EAGF.mjs +252 -0
  229. package/dist/cli/{play-IQQ57L7Z.mjs → play-CDHPAKKM.mjs} +512 -1508
  230. package/dist/cli/{play-32L7EQN4.js → play-USJBQADG.js} +1090 -2086
  231. package/dist/cli/{providers-4WEC2EQN.mjs → providers-CCXZ3SQF.mjs} +7 -5
  232. package/dist/cli/{providers-ZQV6QLVQ.js → providers-WFEUNPGC.js} +10 -8
  233. package/dist/cli/{quickstart-HKUSFADF.js → quickstart-O4JSUORZ.js} +13 -12
  234. package/dist/cli/{quickstart-RQ76RIUE.mjs → quickstart-ZUULI635.mjs} +5 -4
  235. package/dist/cli/run-ISDJYJMU.js +443 -0
  236. package/dist/cli/run-QJ4NX5F5.mjs +443 -0
  237. package/dist/cli/{search-ZRAVFBZC.mjs → search-IX3XKZJ3.mjs} +8 -6
  238. package/dist/cli/search-TIFNLRPM.js +32 -0
  239. package/dist/cli/{secrets-CMJOVNVH.mjs → secrets-7VUDXTUZ.mjs} +7 -5
  240. package/dist/cli/{secrets-J3G5Y43U.js → secrets-ELQSNCTR.js} +16 -14
  241. package/dist/cli/{sessions-WY7VN4AE.js → sessions-A3FG3AZX.js} +6 -5
  242. package/dist/cli/{sessions-MDQYY5CB.mjs → sessions-VOIQ62GB.mjs} +5 -4
  243. package/dist/cli/{settings-4RWZPCT5.mjs → settings-S6N6EFBG.mjs} +14 -11
  244. package/dist/cli/{settings-HTNTFKCE.js → settings-ZTXQEMZI.js} +80 -77
  245. package/dist/cli/{setup-P3GYYZWG.mjs → setup-AYPIK4JE.mjs} +12 -10
  246. package/dist/cli/{setup-QGCAP62X.js → setup-Y3WOIFLS.js} +53 -51
  247. package/dist/cli/{skills-7NAE4ICL.mjs → skills-5SF5QWNI.mjs} +7 -6
  248. package/dist/cli/skills-MWFRMG3H.js +31 -0
  249. package/dist/cli/tools-3XNZ4J64.mjs +55 -0
  250. package/dist/cli/tools-XEC4OD3R.js +55 -0
  251. package/dist/cli/{update-GODLRKNB.mjs → update-3U4OVX5R.mjs} +9 -8
  252. package/dist/cli/update-DWYEYTZE.js +33 -0
  253. package/dist/cli/{workflow-4BXOUVEO.mjs → workflow-2M5JP7SA.mjs} +10 -8
  254. package/dist/cli/{workflow-AO3A6LXN.js → workflow-RM7H7555.js} +20 -18
  255. package/dist/client-DS2IWYZF.d.ts +10 -0
  256. package/dist/client-DTwnz_AW.d.mts +10 -0
  257. package/dist/{client-CYqG23K1.d.ts → client-core-B_6HAIBy.d.ts} +385 -12
  258. package/dist/{client-BbU5_j7n.d.mts → client-core-DzBSlY1U.d.mts} +385 -12
  259. package/dist/{compiler-manifest-CWz_sNOQ.d.ts → compiler-manifest-Dcyd3-Zd.d.mts} +43 -1
  260. package/dist/{compiler-manifest-CWz_sNOQ.d.mts → compiler-manifest-Dcyd3-Zd.d.ts} +43 -1
  261. package/dist/errors-d-sTrZhe.d.mts +142 -0
  262. package/dist/errors-yQwfgrcX.d.ts +142 -0
  263. package/dist/{index-BF2JB_Ug.d.mts → index-C6oXchjN.d.mts} +1 -1
  264. package/dist/{index-4NPXDzlD.d.ts → index-P56zy_z5.d.ts} +1 -1
  265. package/dist/index.d.mts +11 -147
  266. package/dist/index.d.ts +11 -147
  267. package/dist/index.js +16 -12
  268. package/dist/index.mjs +15 -11
  269. package/dist/install-integrity.json +141 -104
  270. package/dist/plays/bundle-play-file.d.mts +3 -3
  271. package/dist/plays/bundle-play-file.d.ts +3 -3
  272. package/dist/plays/bundle-play-file.mjs +2 -1
  273. package/dist/plays/play-description.d.mts +2 -2
  274. package/dist/plays/play-description.d.ts +2 -2
  275. package/dist/plays/play-description.js +2 -2
  276. package/dist/plays/play-description.mjs +1 -1
  277. package/dist/plays/run-request.d.mts +2 -2
  278. package/dist/plays/run-request.d.ts +2 -2
  279. package/dist/release.d.mts +1 -1
  280. package/dist/release.d.ts +1 -1
  281. package/dist/release.js +2 -2
  282. package/dist/release.mjs +1 -1
  283. package/dist/server.d.mts +17 -0
  284. package/dist/server.d.ts +17 -0
  285. package/dist/server.js +76 -0
  286. package/dist/server.mjs +76 -0
  287. package/package.json +6 -1
  288. package/dist/cli/auth-IACERYQH.js +0 -40
  289. package/dist/cli/chunk-PQUUWFXY.js +0 -95
  290. package/dist/cli/chunk-YBWAG72P.mjs +0 -95
  291. package/dist/cli/chunk-YQDUODZW.js +0 -1710
  292. package/dist/cli/git-JVI36ZFV.js +0 -24
  293. package/dist/cli/search-75X5LTDE.js +0 -30
  294. package/dist/cli/skills-BKJ53JOQ.js +0 -30
  295. package/dist/cli/tools-COWMIEJ6.mjs +0 -45
  296. package/dist/cli/tools-TASOCE7I.js +0 -45
  297. package/dist/cli/update-SJIKVME6.js +0 -32
@@ -1,7 +1,9 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } async function _asyncNullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return await 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 _chunk3KC45UVFjs = require('./chunk-3KC45UVF.js');
3
+ var _chunkVLEVVDWGjs = require('./chunk-VLEVVDWG.js');
4
+
4
5
 
6
+ var _chunk3KC45UVFjs = require('./chunk-3KC45UVF.js');
5
7
 
6
8
 
7
9
 
@@ -1769,9 +1771,10 @@ var PLAY_AUTHORING_CLOUD_TYPE_DECLARATIONS = [
1769
1771
  "};",
1770
1772
  "export type PlayReferenceLike<TInput extends Record<string, unknown> = Record<string, unknown>> = ({ readonly playName: string; readonly name?: string } | { readonly name: string; readonly playName?: string }) & { readonly __inputType?: TInput };",
1771
1773
  "export type BillingBenefitValues = { quickenrichUnlimited: { enabled: boolean; requestsPerMinute: number }; peopleSearch: { enabled: boolean; requestsPerMinute: number; profilesPerMonth: number; overageCreditsPerProfile?: number } };",
1772
- "export type BillingEntitlements = { org_id: string; as_of: number; plan: { sku: string; name: string; catalog_revision: string | null; included_credits: number; interval: 'month' | 'year' | null } | null; benefits: { quickenrichUnlimited?: { status: 'active' | 'past_due'; value: BillingBenefitValues['quickenrichUnlimited']; expiresAt?: number }; peopleSearch?: { status: 'active'; value: BillingBenefitValues['peopleSearch']; expiresAt?: number; usage: { month: string; periodStartsAt?: number; resetsAt?: number; resetsOn?: 'calendar_month' | 'billing_cycle'; limit: number; consumed: number; remaining: number } } }; effective_limits: { quickenrichUnlimited?: { baseline: number; effective: number; source: 'plan' | 'override'; override_expires_at?: number } } };",
1774
+ "export type BillingEntitlements = { org_id: string; as_of: number; plan: { sku: string; name: string; catalog_revision: string | null; included_credits: number; interval: 'month' | 'year' | null } | null; benefits: { quickenrichUnlimited?: { status: 'active' | 'past_due'; value: BillingBenefitValues['quickenrichUnlimited']; expiresAt?: number }; peopleSearch?: { status: 'active'; value: BillingBenefitValues['peopleSearch']; expiresAt?: number; usage: { month: string; periodStartsAt?: number; resetsAt?: number; resetsOn?: 'calendar_month' | 'billing_cycle'; limit: number; consumed: number; remaining: number } }; includedStorage?: { status: 'active'; usage: { limit: number; consumed: number; remaining: number; measuredDay: string; overageCharged: boolean } } }; effective_limits: { quickenrichUnlimited?: { baseline: number; effective: number; source: 'plan' | 'override'; override_expires_at?: number } } };",
1773
1775
  "export interface DeeplinePlayRuntimeContext {",
1774
1776
  " billing: { entitlements(): Promise<BillingEntitlements> };",
1777
+ " pages: { write(name: string, options: { public: boolean; content: unknown; contentType?: string; description?: string }): Promise<{ name: string; url: string; public: boolean; created: boolean; warnings: string[] }> };",
1775
1778
  " csv<T = Record<string, unknown>>(path: string | CsvInput<T & object>, options?: CsvOptions): Promise<PlayDataset<T>>;",
1776
1779
  " dataset<TSource extends PlayDatasetInput<object>>(key: string, items: TSource): DatasetBuilder<PlayDatasetRow<TSource> & object, PlayDatasetRow<TSource> & object>;",
1777
1780
  " map<TSource extends PlayDatasetInput<object>>(key: string, items: TSource, options?: DatasetDefinitionOptions<PlayDatasetRow<TSource> & object>): never;",
@@ -5704,88 +5707,6 @@ preserved-compatibility:${JSON.stringify(preservedCompatibility)}`}` + // A scri
5704
5707
  }
5705
5708
  }
5706
5709
 
5707
- // ../play-runtime/scheduler-backend.ts
5708
- var PLAY_SCHEDULER_BACKENDS = {
5709
- /**
5710
- * Postgres-native durable-execution scheduler (vendored Absurd engine). Runs
5711
- * on the battle-tested run-state store without an external workflow engine.
5712
- * Selected explicitly by the `absurd` profile.
5713
- */
5714
- absurd: "absurd",
5715
- inProcess: "in-process"
5716
- };
5717
-
5718
- // ../play-runtime/providers.ts
5719
- var PLAY_RUNTIME_PROVIDER_IDS = {
5720
- absurd: "absurd"
5721
- };
5722
- var PLAY_RUNTIME_PROVIDERS = {
5723
- absurd: {
5724
- id: PLAY_RUNTIME_PROVIDER_IDS.absurd,
5725
- scheduler: PLAY_SCHEDULER_BACKENDS.absurd,
5726
- // Server runs execute on Daytona; the local-dev/test shape swaps the runner
5727
- // axis to local_process (same as the local profile) via an explicit
5728
- // runtimeBackend override at submit while tests drive local_process.
5729
- runner: _chunkE4CABWXLjs.PLAY_RUNTIME_BACKENDS.daytona,
5730
- artifactKind: _chunkE4CABWXLjs.PLAY_ARTIFACT_KINDS.cjsNode20,
5731
- label: "Absurd (Postgres-native durable) scheduler + one-shot Daytona runner"
5732
- }
5733
- };
5734
- function defaultPlayRuntimeProvider() {
5735
- return PLAY_RUNTIME_PROVIDERS.absurd;
5736
- }
5737
- function resolvePlayRuntimeProvider(override) {
5738
- if (_optionalChain([override, 'optionalAccess', _158 => _158.trim, 'call', _159 => _159()])) {
5739
- const id = override.trim();
5740
- if (id in PLAY_RUNTIME_PROVIDERS) {
5741
- return PLAY_RUNTIME_PROVIDERS[id];
5742
- }
5743
- throw new Error(
5744
- `Unsupported play runtime provider "${id}". Expected one of: ${Object.keys(
5745
- PLAY_RUNTIME_PROVIDERS
5746
- ).join(", ")}.`
5747
- );
5748
- }
5749
- return defaultPlayRuntimeProvider();
5750
- }
5751
- function resolveEnabledPlayRuntimeProvider(override) {
5752
- return resolvePlayRuntimeProvider(override);
5753
- }
5754
-
5755
- // ../play-runtime/profiles.ts
5756
- var PLAY_EXECUTION_PROFILE_IDS = {
5757
- ...PLAY_RUNTIME_PROVIDER_IDS
5758
- };
5759
- var PLAY_EXECUTION_PROFILES = PLAY_RUNTIME_PROVIDERS;
5760
- function resolveExecutionProfile(override) {
5761
- try {
5762
- return resolvePlayRuntimeProvider(override);
5763
- } catch (error) {
5764
- if (_optionalChain([override, 'optionalAccess', _160 => _160.trim, 'call', _161 => _161()])) {
5765
- throw new Error(
5766
- `Unknown execution profile "${override.trim()}". Expected one of: ${Object.keys(
5767
- PLAY_EXECUTION_PROFILES
5768
- ).join(", ")}.`
5769
- );
5770
- }
5771
- throw error;
5772
- }
5773
- }
5774
- function resolveEnabledExecutionProfile(override) {
5775
- try {
5776
- return resolveEnabledPlayRuntimeProvider(override);
5777
- } catch (error) {
5778
- if (_optionalChain([override, 'optionalAccess', _162 => _162.trim, 'call', _163 => _163()]) && error instanceof Error && /Unsupported play runtime provider/.test(error.message)) {
5779
- throw new Error(
5780
- `Unknown execution profile "${override.trim()}". Expected one of: ${Object.keys(
5781
- PLAY_EXECUTION_PROFILES
5782
- ).join(", ")}.`
5783
- );
5784
- }
5785
- throw error;
5786
- }
5787
- }
5788
-
5789
5710
  // src/plays/local-file-discovery.ts
5790
5711
 
5791
5712
 
@@ -6002,7 +5923,7 @@ function localImportSpecifiers(sourceCode) {
6002
5923
  for (const match of source.matchAll(
6003
5924
  /\b(?:import|export)\s+(?!type\b)(?:[\s\S]*?\s+from\s*)?['"]([^'"]+)['"]/g
6004
5925
  )) {
6005
- if (_optionalChain([match, 'access', _164 => _164[1], 'optionalAccess', _165 => _165.startsWith, 'call', _166 => _166(".")])) specifiers.push(match[1]);
5926
+ if (_optionalChain([match, 'access', _158 => _158[1], 'optionalAccess', _159 => _159.startsWith, 'call', _160 => _160(".")])) specifiers.push(match[1]);
6006
5927
  }
6007
5928
  for (const match of source.matchAll(
6008
5929
  /\brequire\s*\(\s*(['"])(\.[^'"]*)\1\s*\)/g
@@ -6178,7 +6099,7 @@ function warnAboutNonDevelopmentBundling(filePath) {
6178
6099
  );
6179
6100
  }
6180
6101
  function defaultPlayBundleTarget() {
6181
- return resolveExecutionProfile(null).artifactKind;
6102
+ return _chunkVLEVVDWGjs.resolveExecutionProfile.call(void 0, null).artifactKind;
6182
6103
  }
6183
6104
  function createSdkPlayBundlingAdapter() {
6184
6105
  return {
@@ -6238,5 +6159,4 @@ async function bundleDeployPlayFile(entryFile, options) {
6238
6159
 
6239
6160
 
6240
6161
 
6241
-
6242
- exports.isAstNode = isAstNode; exports.parsePlaySourceForAnalysis = parsePlaySourceForAnalysis; exports.INLINE_PLAY_FILE = INLINE_PLAY_FILE; exports.inlinePlaySource = inlinePlaySource; exports.PLAY_DEFAULT_EXPORT = PLAY_DEFAULT_EXPORT; exports.listPlayFileExports = listPlayFileExports; exports.extractDefinedPlayName = extractDefinedPlayName; exports.resolveEnabledExecutionProfile = resolveEnabledExecutionProfile; exports.createSdkPlayBundlingAdapter = createSdkPlayBundlingAdapter; exports.bundlePlayFile = bundlePlayFile2; exports.bundleDeployPlayFile = bundleDeployPlayFile;
6162
+ exports.isAstNode = isAstNode; exports.parsePlaySourceForAnalysis = parsePlaySourceForAnalysis; exports.INLINE_PLAY_FILE = INLINE_PLAY_FILE; exports.inlinePlaySource = inlinePlaySource; exports.PLAY_DEFAULT_EXPORT = PLAY_DEFAULT_EXPORT; exports.listPlayFileExports = listPlayFileExports; exports.extractDefinedPlayName = extractDefinedPlayName; exports.createSdkPlayBundlingAdapter = createSdkPlayBundlingAdapter; exports.bundlePlayFile = bundlePlayFile2; exports.bundleDeployPlayFile = bundleDeployPlayFile;
@@ -1,9 +1,11 @@
1
1
  import {
2
2
  HttpClient,
3
- detectAgentRuntime,
4
3
  resolveCliCommandContext,
5
4
  resolveConfig
6
- } from "./chunk-RY4IVOU3.mjs";
5
+ } from "./chunk-F2RHUPVH.mjs";
6
+ import {
7
+ detectAgentRuntime
8
+ } from "./chunk-I624J4H5.mjs";
7
9
  import {
8
10
  DeeplineError,
9
11
  serializeToolExecutionFailure
@@ -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 _chunkTNMBPMMCjs = require('./chunk-TNMBPMMC.js');
3
+ var _chunkUROQDCVWjs = require('./chunk-UROQDCVW.js');
4
4
 
5
5
 
6
6
 
@@ -12,18 +12,21 @@ var _chunkTNMBPMMCjs = require('./chunk-TNMBPMMC.js');
12
12
 
13
13
 
14
14
 
15
+ var _chunkBGNWI3KHjs = require('./chunk-BGNWI3KH.js');
15
16
 
16
17
 
17
18
 
18
19
 
19
20
 
20
- var _chunkYQDUODZWjs = require('./chunk-YQDUODZW.js');
21
+
22
+
23
+ var _chunkYGGIZ3VTjs = require('./chunk-YGGIZ3VT.js');
21
24
 
22
25
 
23
26
  var _chunkDIAWYWT5js = require('./chunk-DIAWYWT5.js');
24
27
 
25
28
 
26
- var _chunk5FDKJQZEjs = require('./chunk-5FDKJQZE.js');
29
+ var _chunk3BOIOCNXjs = require('./chunk-3BOIOCNX.js');
27
30
 
28
31
  // src/compat.ts
29
32
  var _crypto = require('crypto');
@@ -58,7 +61,7 @@ function shouldSkipCompatibilityCheck() {
58
61
  return value === "1" || value === "true" || value === "yes";
59
62
  }
60
63
  function sdkCompatibilityCachePath(baseUrl, homeDir = _optionalChain([process, 'access', _7 => _7.env, 'access', _8 => _8.HOME, 'optionalAccess', _9 => _9.trim, 'call', _10 => _10()]) || _os.homedir.call(void 0, )) {
61
- return _path.join.call(void 0, _chunkYQDUODZWjs.sdkCliStateDirPath.call(void 0, baseUrl, homeDir), "compat-cache.json");
64
+ return _path.join.call(void 0, _chunkBGNWI3KHjs.sdkCliStateDirPath.call(void 0, baseUrl, homeDir), "compat-cache.json");
62
65
  }
63
66
  function legacySdkCompatibilityCachePath(homeDir = _optionalChain([process, 'access', _11 => _11.env, 'access', _12 => _12.HOME, 'optionalAccess', _13 => _13.trim, 'call', _14 => _14()]) || _os.homedir.call(void 0, )) {
64
67
  return _path.join.call(void 0, homeDir, ".cache", "deepline", "sdk-compat-cache.json");
@@ -66,9 +69,9 @@ function legacySdkCompatibilityCachePath(homeDir = _optionalChain([process, 'acc
66
69
  function compatibilityCacheKey(baseUrl, command, skillsVersion) {
67
70
  return JSON.stringify({
68
71
  baseUrl: baseUrl.replace(/\/$/, ""),
69
- version: _chunkYQDUODZWjs.SDK_VERSION,
70
- apiContract: _chunkYQDUODZWjs.SDK_API_CONTRACT,
71
- apiMajor: _chunkYQDUODZWjs.SDK_API_MAJOR,
72
+ version: _chunkYGGIZ3VTjs.SDK_VERSION,
73
+ apiContract: _chunkYGGIZ3VTjs.SDK_API_CONTRACT,
74
+ apiMajor: _chunkYGGIZ3VTjs.SDK_API_MAJOR,
72
75
  command: _optionalChain([command, 'optionalAccess', _15 => _15.trim, 'call', _16 => _16()]) || null,
73
76
  skillsVersion: _nullishCoalesce(skillsVersion, () => ( null))
74
77
  });
@@ -76,8 +79,8 @@ function compatibilityCacheKey(baseUrl, command, skillsVersion) {
76
79
  function legacyCompatibilityCacheKey(baseUrl, command) {
77
80
  return JSON.stringify({
78
81
  baseUrl: baseUrl.replace(/\/$/, ""),
79
- version: _chunkYQDUODZWjs.SDK_VERSION,
80
- apiContract: _chunkYQDUODZWjs.SDK_API_CONTRACT,
82
+ version: _chunkYGGIZ3VTjs.SDK_VERSION,
83
+ apiContract: _chunkYGGIZ3VTjs.SDK_API_CONTRACT,
81
84
  command: _optionalChain([command, 'optionalAccess', _17 => _17.trim, 'call', _18 => _18()]) || null
82
85
  });
83
86
  }
@@ -102,7 +105,7 @@ function isSavedWithin(savedAt, windowMs, now) {
102
105
  }
103
106
  var UPDATE_ADVISORY_INTERVAL_MS = 24 * 60 * 60 * 1e3;
104
107
  function claimUpdateAdvisory(baseUrl, now = Date.now()) {
105
- const path = _path.join.call(void 0, _chunkYQDUODZWjs.sdkCliStateDirPath.call(void 0, baseUrl), "update-advisory.json");
108
+ const path = _path.join.call(void 0, _chunkBGNWI3KHjs.sdkCliStateDirPath.call(void 0, baseUrl), "update-advisory.json");
106
109
  try {
107
110
  const { shownAt } = JSON.parse(_fs.readFileSync.call(void 0, path, "utf8"));
108
111
  if (isSavedWithin(shownAt, UPDATE_ADVISORY_INTERVAL_MS, now)) return false;
@@ -186,7 +189,7 @@ async function checkSdkCompatibility(baseUrl, options = {}) {
186
189
  );
187
190
  try {
188
191
  const url = new URL("/api/v2/sdk/compat", baseUrl);
189
- url.searchParams.set("version", _chunkYQDUODZWjs.SDK_VERSION);
192
+ url.searchParams.set("version", _chunkYGGIZ3VTjs.SDK_VERSION);
190
193
  if (_optionalChain([options, 'access', _27 => _27.command, 'optionalAccess', _28 => _28.trim, 'call', _29 => _29()])) {
191
194
  url.searchParams.set("command", options.command.trim());
192
195
  }
@@ -194,7 +197,7 @@ async function checkSdkCompatibility(baseUrl, options = {}) {
194
197
  url.searchParams.set("skills_version", _nullishCoalesce(options.skillsVersion, () => ( "")));
195
198
  url.searchParams.set(
196
199
  "skills_cli_capability",
197
- String(_chunk5FDKJQZEjs.SDK_RELEASE.packageCapabilities.skillsGuidance)
200
+ String(_chunk3BOIOCNXjs.SDK_RELEASE.packageCapabilities.skillsGuidance)
198
201
  );
199
202
  }
200
203
  if (options.catalog) {
@@ -206,14 +209,14 @@ async function checkSdkCompatibility(baseUrl, options = {}) {
206
209
  const response = await fetch(url, {
207
210
  method: "GET",
208
211
  headers: {
209
- ..._chunkYQDUODZWjs.deploymentProtectionHeaders.call(void 0, ),
210
- "User-Agent": `deepline-ts-sdk/${_chunkYQDUODZWjs.SDK_VERSION}`,
211
- "X-Deepline-SDK-Version": _chunkYQDUODZWjs.SDK_VERSION,
212
- "X-Deepline-API-Major": String(_chunkYQDUODZWjs.SDK_API_MAJOR),
213
- "X-Deepline-API-Contract": _chunkYQDUODZWjs.SDK_API_CONTRACT,
212
+ ..._chunkYGGIZ3VTjs.deploymentProtectionHeaders.call(void 0, ),
213
+ "User-Agent": `deepline-ts-sdk/${_chunkYGGIZ3VTjs.SDK_VERSION}`,
214
+ "X-Deepline-SDK-Version": _chunkYGGIZ3VTjs.SDK_VERSION,
215
+ "X-Deepline-API-Major": String(_chunkYGGIZ3VTjs.SDK_API_MAJOR),
216
+ "X-Deepline-API-Contract": _chunkYGGIZ3VTjs.SDK_API_CONTRACT,
214
217
  "X-Deepline-CLI-Update-Preferences": "1",
215
218
  "X-Deepline-CLI-Auto-Update-Capability": SDK_CLI_AUTO_UPDATE_CAPABILITY,
216
- ...options.catalog ? { Authorization: `Bearer ${_chunkYQDUODZWjs.resolveApiKeyForBaseUrl.call(void 0, baseUrl)}` } : {},
219
+ ...options.catalog ? { Authorization: `Bearer ${_chunkBGNWI3KHjs.resolveApiKeyForBaseUrl.call(void 0, baseUrl)}` } : {},
217
220
  ..._optionalChain([options, 'access', _30 => _30.catalog, 'optionalAccess', _31 => _31.cliInvocationId]) ? { "X-Deepline-CLI-Invocation-ID": options.catalog.cliInvocationId } : {}
218
221
  },
219
222
  signal: controller.signal
@@ -374,7 +377,7 @@ function skillsSourceUrl(baseUrl) {
374
377
  function buildSkillsAddArgs(baseUrl, skillName, options = {}) {
375
378
  const skillNames = Array.isArray(skillName) ? skillName : [skillName];
376
379
  const [firstSkillName, ...extraSkillNames] = skillNames;
377
- const agents = _nullishCoalesce(options.agents, () => ( _chunkYQDUODZWjs.DEFAULT_SKILL_AGENTS));
380
+ const agents = _nullishCoalesce(options.agents, () => ( _chunkBGNWI3KHjs.DEFAULT_SKILL_AGENTS));
378
381
  const values = {
379
382
  skills_index_url: skillsIndexUrl(baseUrl),
380
383
  skills_source_url: skillsSourceUrl(baseUrl),
@@ -593,7 +596,7 @@ function buildEnvironmentContext() {
593
596
  node_version: process.version,
594
597
  runtime: "Node.js",
595
598
  hostname: _os.hostname.call(void 0, ),
596
- agent_runtime: _chunkYQDUODZWjs.detectAgentRuntime.call(void 0, )
599
+ agent_runtime: _chunkYGGIZ3VTjs.detectAgentRuntime.call(void 0, )
597
600
  };
598
601
  for (const key of ["CLAUDE_CODE_REMOTE", "DEEPLINE_PLUGIN_MODE"]) {
599
602
  const normalized = _optionalChain([process, 'access', _42 => _42.env, 'access', _43 => _43[key], 'optionalAccess', _44 => _44.trim, 'call', _45 => _45()]);
@@ -614,16 +617,18 @@ function buildEnvironmentContext() {
614
617
  return context;
615
618
  }
616
619
  function failureReportHeaders(apiKey) {
620
+ const agentSessionId = _chunkYGGIZ3VTjs.agentSessionIdFromEnvironment.call(void 0, );
617
621
  return {
618
- ..._chunkYQDUODZWjs.deploymentProtectionHeaders.call(void 0, ),
622
+ ..._chunkYGGIZ3VTjs.deploymentProtectionHeaders.call(void 0, ),
623
+ ...agentSessionId ? { "X-Deepline-Agent-Session-Id": agentSessionId } : {},
619
624
  Authorization: `Bearer ${apiKey}`,
620
625
  "Content-Type": "application/json",
621
- "User-Agent": `deepline-ts-sdk/${_chunkYQDUODZWjs.SDK_VERSION}`,
626
+ "User-Agent": `deepline-ts-sdk/${_chunkYGGIZ3VTjs.SDK_VERSION}`,
622
627
  "X-Deepline-Client-Family": "sdk",
623
628
  "X-Deepline-CLI-Family": "sdk",
624
- "X-Deepline-Agent-Runtime": _chunkYQDUODZWjs.detectAgentRuntime.call(void 0, ),
625
- "X-Deepline-CLI-Version": _chunkYQDUODZWjs.SDK_VERSION,
626
- "X-Deepline-SDK-Version": _chunkYQDUODZWjs.SDK_VERSION
629
+ "X-Deepline-Agent-Runtime": _chunkYGGIZ3VTjs.detectAgentRuntime.call(void 0, ),
630
+ "X-Deepline-CLI-Version": _chunkYGGIZ3VTjs.SDK_VERSION,
631
+ "X-Deepline-SDK-Version": _chunkYGGIZ3VTjs.SDK_VERSION
627
632
  };
628
633
  }
629
634
  async function postFailureReport(input) {
@@ -651,7 +656,7 @@ async function maybeReportAutomaticSkillsSyncFailure(input) {
651
656
  if (isFailureReportingDisabled()) return false;
652
657
  let apiKey = "";
653
658
  try {
654
- apiKey = _chunkYQDUODZWjs.resolveApiKeyForBaseUrl.call(void 0, input.baseUrl);
659
+ apiKey = _chunkBGNWI3KHjs.resolveApiKeyForBaseUrl.call(void 0, input.baseUrl);
655
660
  } catch (e9) {
656
661
  return false;
657
662
  }
@@ -678,7 +683,7 @@ async function maybeReportAutomaticSkillsSyncFailure(input) {
678
683
  failure_code: failureCode2,
679
684
  failure_stage: failureStage,
680
685
  error_body: "Automatic Deepline skills installation failed.",
681
- cli_version: _chunkYQDUODZWjs.SDK_VERSION,
686
+ cli_version: _chunkYGGIZ3VTjs.SDK_VERSION,
682
687
  context: {
683
688
  environment: buildEnvironmentContext(),
684
689
  skills_sync: {
@@ -798,7 +803,7 @@ function buildFailureReport(input) {
798
803
  failure_kind: failureKind,
799
804
  failure_code: code,
800
805
  failure_stage: input.error === void 0 ? "command_exit" : "cli_main",
801
- cli_version: _chunkYQDUODZWjs.SDK_VERSION,
806
+ cli_version: _chunkYGGIZ3VTjs.SDK_VERSION,
802
807
  context: {
803
808
  base_url: redactFailureText(input.baseUrl, 400),
804
809
  command_summary: sanitizeCommand(input.argv),
@@ -818,8 +823,8 @@ async function maybeReportSdkCliFailure(input) {
818
823
  if (isServerLoggedPlayRunStartFailure(input)) return false;
819
824
  const exitCode = resolvedExitCode(input);
820
825
  if (!shouldReport({ exitCode, error: input.error })) return false;
821
- const baseUrl = _chunkYQDUODZWjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
822
- const apiKey = _chunkYQDUODZWjs.resolveApiKeyForBaseUrl.call(void 0, baseUrl);
826
+ const baseUrl = _chunkBGNWI3KHjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
827
+ const apiKey = _chunkBGNWI3KHjs.resolveApiKeyForBaseUrl.call(void 0, baseUrl);
823
828
  if (!apiKey) return false;
824
829
  return postFailureReport({
825
830
  baseUrl,
@@ -856,25 +861,25 @@ var CHECK_TIMEOUT_MS2 = 3e3;
856
861
  var INSTALLER_PROBE_TIMEOUT_MS = 1e3;
857
862
  var PUBLISHED_VERIFICATION_RETRY_MS = 5 * 6e4;
858
863
  function shouldSkipSkillsSync() {
859
- if (_chunkYQDUODZWjs.detectAgentRuntime.call(void 0, ) === "claude_cowork" || isCiEnvironment()) {
864
+ if (_chunkYGGIZ3VTjs.detectAgentRuntime.call(void 0, ) === "claude_cowork" || isCiEnvironment()) {
860
865
  return true;
861
866
  }
862
867
  const value = _optionalChain([process, 'access', _66 => _66.env, 'access', _67 => _67.DEEPLINE_SKIP_SKILLS_SYNC, 'optionalAccess', _68 => _68.trim, 'call', _69 => _69(), 'access', _70 => _70.toLowerCase, 'call', _71 => _71()]);
863
868
  return value === "1" || value === "true" || value === "yes" || value === "on";
864
869
  }
865
870
  function unavailableSkillsNoticePath(baseUrl) {
866
- return _path.join.call(void 0, _chunkYQDUODZWjs.sdkCliStateDirPath.call(void 0, baseUrl), "skills-sync-unavailable-version");
871
+ return _path.join.call(void 0, _chunkBGNWI3KHjs.sdkCliStateDirPath.call(void 0, baseUrl), "skills-sync-unavailable-version");
867
872
  }
868
873
  var SKILLS_SYNC_IN_PROGRESS_TTL_MS = 10 * 60 * 1e3;
869
874
  var SKILLS_SYNC_IN_PROGRESS_PID_CAP_MS = 6 * 60 * 60 * 1e3;
870
- var agentLeaseSegment = _chunkYQDUODZWjs.skillsAgentPathSegment;
875
+ var agentLeaseSegment = _chunkBGNWI3KHjs.skillsAgentPathSegment;
871
876
  function sortedLeaseAgents(agents) {
872
- const expanded = agents.includes("*") ? [...agents, ..._chunkYQDUODZWjs.KNOWN_SKILL_AGENTS] : agents;
877
+ const expanded = agents.includes("*") ? [...agents, ..._chunkBGNWI3KHjs.KNOWN_SKILL_AGENTS] : agents;
873
878
  return [...new Set(expanded)].sort((a, b) => a.localeCompare(b));
874
879
  }
875
880
  function inProgressSkillsSyncPath(baseUrl, agent) {
876
881
  return _path.join.call(void 0,
877
- _chunkYQDUODZWjs.sdkCliStateDirPath.call(void 0, baseUrl),
882
+ _chunkBGNWI3KHjs.sdkCliStateDirPath.call(void 0, baseUrl),
878
883
  `skills-sync-in-progress-${agentLeaseSegment(agent)}`
879
884
  );
880
885
  }
@@ -1033,7 +1038,7 @@ var SkillsStateUnavailableError = class extends Error {
1033
1038
  constructor(baseUrl, error) {
1034
1039
  const detail = error instanceof Error ? error.message : String(error);
1035
1040
  super(
1036
- `Could not save skills state in ${_chunkYQDUODZWjs.sdkCliStateDirPath.call(void 0, baseUrl)}: ${detail}`
1041
+ `Could not save skills state in ${_chunkBGNWI3KHjs.sdkCliStateDirPath.call(void 0, baseUrl)}: ${detail}`
1037
1042
  );
1038
1043
  this.name = "SkillsStateUnavailableError";
1039
1044
  }
@@ -1118,7 +1123,7 @@ function skillsInstallLeasePath(baseUrl, agents) {
1118
1123
  }
1119
1124
  function deferredSkillsNoticePath(baseUrl, agents) {
1120
1125
  return _path.join.call(void 0,
1121
- _chunkYQDUODZWjs.sdkCliStateDirPath.call(void 0, baseUrl),
1126
+ _chunkBGNWI3KHjs.sdkCliStateDirPath.call(void 0, baseUrl),
1122
1127
  `skills-sync-notice-${sortedLeaseAgents(agents).map(agentLeaseSegment).join("-")}`
1123
1128
  );
1124
1129
  }
@@ -1152,8 +1157,8 @@ function flushDeferredSkillsNotices(baseUrl, agents) {
1152
1157
  if (text.trim()) writeSdkSkillsStatusLine(text.trimEnd());
1153
1158
  }
1154
1159
  function flushDeferredSkillsSyncNotices(baseUrl) {
1155
- if (shouldSkipSkillsSync() || _chunkYQDUODZWjs.hasActivePluginSkills.call(void 0, )) return;
1156
- const agents = _chunkYQDUODZWjs.resolveAutoSyncSkillAgents.call(void 0, );
1160
+ if (shouldSkipSkillsSync() || _chunkBGNWI3KHjs.hasActivePluginSkills.call(void 0, )) return;
1161
+ const agents = _chunkBGNWI3KHjs.resolveAutoSyncSkillAgents.call(void 0, );
1157
1162
  if (agents.length === 0) return;
1158
1163
  flushDeferredSkillsNotices(baseUrl, agents);
1159
1164
  }
@@ -1169,7 +1174,7 @@ function spawnDetachedSkillsSyncChild(argv, onSpawnError) {
1169
1174
  }
1170
1175
  function failedSkillsSyncPath(baseUrl, agents) {
1171
1176
  return _path.join.call(void 0,
1172
- _chunkYQDUODZWjs.sdkCliStateDirPath.call(void 0, baseUrl),
1177
+ _chunkBGNWI3KHjs.sdkCliStateDirPath.call(void 0, baseUrl),
1173
1178
  `skills-sync-failed-${sortedLeaseAgents(agents).map(agentLeaseSegment).join("-")}-version`
1174
1179
  );
1175
1180
  }
@@ -1198,7 +1203,7 @@ function writeUnavailableSkillsNotice(baseUrl, remoteVersion, skillNames, reason
1198
1203
  if (hasMarkedSkillsSyncVersion(path, remoteVersion)) return;
1199
1204
  writeMarkedSkillsSyncVersion(path, remoteVersion);
1200
1205
  const probes = reason === "no-installer" ? _nullishCoalesce(knownProbes, () => ( probeInstallers())) : null;
1201
- const manualCommand = _optionalChain([probes, 'optionalAccess', _75 => _75.npx]) === "missing" && probes.bunx !== "missing" ? `bunx ${buildBunxSkillsInstallArgs(baseUrl, skillNames, _chunkYQDUODZWjs.DEFAULT_SKILL_AGENTS).map(shellQuote).join(" ")}` : `npx ${buildSkillsInstallArgs(baseUrl, skillNames).join(" ")}`;
1206
+ const manualCommand = _optionalChain([probes, 'optionalAccess', _75 => _75.npx]) === "missing" && probes.bunx !== "missing" ? `bunx ${buildBunxSkillsInstallArgs(baseUrl, skillNames, _chunkBGNWI3KHjs.DEFAULT_SKILL_AGENTS).map(shellQuote).join(" ")}` : `npx ${buildSkillsInstallArgs(baseUrl, skillNames).join(" ")}`;
1202
1207
  const explanation = reason === "unsupported-agent" ? "the detected agent has no automatic skills sync target. Automatic sync was skipped." : _optionalChain([probes, 'optionalAccess', _76 => _76.bunx]) === "missing" && probes.npx === "missing" ? "neither `bunx` nor `npx` was found on PATH. Make one available." : `installer version check failed for ${Object.entries(_nullishCoalesce(probes, () => ( {}))).filter(([, result]) => result === "failed").map(([command]) => `\`${command}\``).join(" and ")}. Check those commands with --version.`;
1203
1208
  notice(
1204
1209
  `Deepline agent skills are out of date, but ${explanation} To install manually, run:
@@ -1286,7 +1291,7 @@ function buildSdkSkillNames(v1SkillNames2) {
1286
1291
  return sortedUniqueSkillNames(v1SkillNames2);
1287
1292
  }
1288
1293
  function isDefaultAgentSet(agents) {
1289
- return agents.length === _chunkYQDUODZWjs.DEFAULT_SKILL_AGENTS.length && agents.every((agent, index) => agent === _chunkYQDUODZWjs.DEFAULT_SKILL_AGENTS[index]);
1294
+ return agents.length === _chunkBGNWI3KHjs.DEFAULT_SKILL_AGENTS.length && agents.every((agent, index) => agent === _chunkBGNWI3KHjs.DEFAULT_SKILL_AGENTS[index]);
1290
1295
  }
1291
1296
  function safeSkillFilePath(value) {
1292
1297
  if (typeof value !== "string" || !value) return false;
@@ -1443,10 +1448,10 @@ async function fetchSkillsUpdate(baseUrl, localVersion) {
1443
1448
  method: "POST",
1444
1449
  headers: { "Content-Type": "application/json" },
1445
1450
  body: JSON.stringify({
1446
- sdk_cli: { version: _chunkYQDUODZWjs.SDK_VERSION },
1451
+ sdk_cli: { version: _chunkYGGIZ3VTjs.SDK_VERSION },
1447
1452
  skills: {
1448
1453
  version: localVersion,
1449
- capability: _chunk5FDKJQZEjs.SDK_RELEASE.packageCapabilities.skillsGuidance
1454
+ capability: _chunk3BOIOCNXjs.SDK_RELEASE.packageCapabilities.skillsGuidance
1450
1455
  }
1451
1456
  }),
1452
1457
  signal: controller.signal
@@ -1485,7 +1490,7 @@ function probeInstallers(timeoutMs) {
1485
1490
  }
1486
1491
  function noInstallerProbePath(baseUrl) {
1487
1492
  return _path.join.call(void 0,
1488
- _chunkYQDUODZWjs.sdkCliStateDirPath.call(void 0, baseUrl),
1493
+ _chunkBGNWI3KHjs.sdkCliStateDirPath.call(void 0, baseUrl),
1489
1494
  "skills-sync-no-installer-unknown.json"
1490
1495
  );
1491
1496
  }
@@ -1564,7 +1569,7 @@ function temporarySkillsSyncSkipCommand() {
1564
1569
  function resolveSkillsInstallSpawn(install, platform2 = process.platform) {
1565
1570
  return resolveShellSpawn(install.command, install.args, platform2);
1566
1571
  }
1567
- function resolveSkillsInstallCommands(baseUrl, skillNames = DEFAULT_SDK_SKILL_NAMES, agents = _chunkYQDUODZWjs.DEFAULT_SKILL_AGENTS, knownProbes) {
1572
+ function resolveSkillsInstallCommands(baseUrl, skillNames = DEFAULT_SDK_SKILL_NAMES, agents = _chunkBGNWI3KHjs.DEFAULT_SKILL_AGENTS, knownProbes) {
1568
1573
  const commands = [];
1569
1574
  const probes = _nullishCoalesce(knownProbes, () => ( probeInstallers()));
1570
1575
  if (probes.bunx === "available") {
@@ -1706,7 +1711,7 @@ function runLegacySkillsCleanup(agents) {
1706
1711
  }
1707
1712
  }
1708
1713
  function writeSdkSkillsStatusLine(line) {
1709
- const progress = _chunkTNMBPMMCjs.getActiveCliProgress.call(void 0, );
1714
+ const progress = _chunkUROQDCVWjs.getActiveCliProgress.call(void 0, );
1710
1715
  if (progress) {
1711
1716
  progress.writeLine(line);
1712
1717
  return;
@@ -1716,11 +1721,11 @@ function writeSdkSkillsStatusLine(line) {
1716
1721
  }
1717
1722
  async function syncSdkSkillsIfNeeded(baseUrl, options = {}) {
1718
1723
  if (shouldSkipSkillsSync()) return;
1719
- const usingPluginSkills = _chunkYQDUODZWjs.hasActivePluginSkills.call(void 0, );
1724
+ const usingPluginSkills = _chunkBGNWI3KHjs.hasActivePluginSkills.call(void 0, );
1720
1725
  if (usingPluginSkills) {
1721
1726
  return;
1722
1727
  }
1723
- const agents = _chunkYQDUODZWjs.resolveAutoSyncSkillAgents.call(void 0, );
1728
+ const agents = _chunkBGNWI3KHjs.resolveAutoSyncSkillAgents.call(void 0, );
1724
1729
  if (options.mode === "detached" && agents.length > 0) {
1725
1730
  flushDeferredSkillsNotices(baseUrl, agents);
1726
1731
  }
@@ -1748,7 +1753,7 @@ async function syncSdkSkillsIfNeeded(baseUrl, options = {}) {
1748
1753
  return;
1749
1754
  }
1750
1755
  try {
1751
- const localVersion = _chunkYQDUODZWjs.readSdkSkillsLocalVersion.call(void 0, baseUrl);
1756
+ const localVersion = _chunkBGNWI3KHjs.readSdkSkillsLocalVersion.call(void 0, baseUrl);
1752
1757
  const update = options.update === void 0 ? claimedVersion ? { needsUpdate: true, remoteVersion: claimedVersion } : await fetchSkillsUpdate(baseUrl, localVersion) : options.update ? {
1753
1758
  needsUpdate: options.update.needs_update,
1754
1759
  remoteVersion: options.update.remote.version
@@ -1914,7 +1919,7 @@ async function runInlineSkillsSync(baseUrl, remoteVersion, agents, notices) {
1914
1919
  }
1915
1920
  }
1916
1921
  runLegacySkillsCleanup(agents);
1917
- if (!_chunkYQDUODZWjs.writeSdkSkillsLocalVersion.call(void 0, baseUrl, update.remoteVersion, agents)) {
1922
+ if (!_chunkBGNWI3KHjs.writeSdkSkillsLocalVersion.call(void 0, baseUrl, update.remoteVersion, agents)) {
1918
1923
  notice(
1919
1924
  "Deepline agent skills installed, but the local skills version could not be recorded. A later command will retry the refresh."
1920
1925
  );
@@ -49,7 +49,7 @@ var SDK_RELEASE = {
49
49
  // getters keep their established compatibility behavior.
50
50
  // 0.3.1 deprecated the legacy `deepline enrich` command in favor of Plays.
51
51
  // 0.3.90 is the first deliberately versioned SDK release for API v3.
52
- version: "0.3.461",
52
+ version: "0.3.463",
53
53
  updateSummary: {
54
54
  introducedIn: "0.3.90",
55
55
  summary: "Play grep now returns concise results with the matched fields and terms. Automatic CLI updates are enabled by default; use `deepline settings autoupdate off` to opt out, `deepline settings autoupdate on` to re-enable updates, or `deepline settings autoupdate pin <version>` to hold an exact release."