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
@@ -11,20 +11,20 @@
11
11
 
12
12
 
13
13
 
14
- var _chunk4MK42735js = require('./chunk-4MK42735.js');
14
+ var _chunk2HMN5H54js = require('./chunk-2HMN5H54.js');
15
15
 
16
16
 
17
- var _chunkVQALXEXOjs = require('./chunk-VQALXEXO.js');
17
+ var _chunkYQKCH4R7js = require('./chunk-YQKCH4R7.js');
18
18
 
19
19
 
20
20
 
21
21
 
22
22
 
23
- var _chunk7IKQKKNXjs = require('./chunk-7IKQKKNX.js');
23
+ var _chunkVIUUTEHYjs = require('./chunk-VIUUTEHY.js');
24
24
 
25
25
 
26
26
 
27
- var _chunkRBEUVDZFjs = require('./chunk-RBEUVDZF.js');
27
+ var _chunk5CYZHOKIjs = require('./chunk-5CYZHOKI.js');
28
28
 
29
29
 
30
30
  var _chunkRLX5ZFNXjs = require('./chunk-RLX5ZFNX.js');
@@ -145,7 +145,7 @@ function inferActiveSkillsScope(entrypoint = _nullishCoalesce(process.argv[1], (
145
145
  return /[\\/]\.deepline[\\/]runtime[\\/]/.test(entrypoint) ? "local" : "global";
146
146
  }
147
147
  function resolveLocalRoot() {
148
- const target = _chunk7IKQKKNXjs.resolveProjectPinTarget.call(void 0, );
148
+ const target = _chunkVIUUTEHYjs.resolveProjectPinTarget.call(void 0, );
149
149
  if (!target.ok) {
150
150
  throw new Error(
151
151
  `Cowork project folder is ambiguous. Candidate folders: ${target.candidates.join(
@@ -156,7 +156,7 @@ function resolveLocalRoot() {
156
156
  return target.dir;
157
157
  }
158
158
  function detectSkillsAgents(input) {
159
- const runtime = _nullishCoalesce(input.runtime, () => ( _chunkRBEUVDZFjs.detectAgentRuntime.call(void 0, )));
159
+ const runtime = _nullishCoalesce(input.runtime, () => ( _chunk5CYZHOKIjs.detectAgentRuntime.call(void 0, )));
160
160
  const knownAgent = RUNTIME_TO_SKILLS_AGENT[runtime];
161
161
  if (knownAgent) return [knownAgent];
162
162
  const roots = [
@@ -171,11 +171,11 @@ function detectSkillsAgents(input) {
171
171
  return detected.length > 0 ? detected : ["*"];
172
172
  }
173
173
  function skillsStatePathForScope(baseUrl, scope, root) {
174
- return scope === "local" && root ? _path.join.call(void 0, root, ".deepline", "setup", "skills.json") : _path.join.call(void 0, _chunk7IKQKKNXjs.sdkCliStateDirPath.call(void 0, baseUrl), "skills-install.json");
174
+ return scope === "local" && root ? _path.join.call(void 0, root, ".deepline", "setup", "skills.json") : _path.join.call(void 0, _chunkVIUUTEHYjs.sdkCliStateDirPath.call(void 0, baseUrl), "skills-install.json");
175
175
  }
176
176
  function buildSkillsPlan(input) {
177
177
  const scopeArgs = input.scope === "global" ? ["--global"] : [];
178
- const legacyNames = [..._chunk4MK42735js.LEGACY_SKILL_NAMES_TO_REMOVE].sort(
178
+ const legacyNames = [..._chunk2HMN5H54js.LEGACY_SKILL_NAMES_TO_REMOVE].sort(
179
179
  (a, b) => a.localeCompare(b)
180
180
  );
181
181
  return {
@@ -189,7 +189,7 @@ function buildSkillsPlan(input) {
189
189
  args: [
190
190
  "exec",
191
191
  "--yes",
192
- `--package=${_chunk4MK42735js.SKILLS_NPX_PACKAGE}`,
192
+ `--package=${_chunk2HMN5H54js.SKILLS_NPX_PACKAGE}`,
193
193
  "--",
194
194
  "skills",
195
195
  "remove",
@@ -205,11 +205,11 @@ function buildSkillsPlan(input) {
205
205
  args: [
206
206
  "exec",
207
207
  "--yes",
208
- `--package=${_chunk4MK42735js.SKILLS_NPX_PACKAGE}`,
208
+ `--package=${_chunk2HMN5H54js.SKILLS_NPX_PACKAGE}`,
209
209
  "--",
210
210
  "skills",
211
211
  "add",
212
- _chunk4MK42735js.skillsSourceUrl.call(void 0, input.baseUrl),
212
+ _chunk2HMN5H54js.skillsSourceUrl.call(void 0, input.baseUrl),
213
213
  "--agent",
214
214
  ...input.agents,
215
215
  ...scopeArgs,
@@ -246,7 +246,7 @@ function readSkillsInstallState(path) {
246
246
  }
247
247
  function runProcess(command, args, cwd) {
248
248
  return new Promise((resolve, reject) => {
249
- const plan = _chunk4MK42735js.resolveShellSpawn.call(void 0,
249
+ const plan = _chunk2HMN5H54js.resolveShellSpawn.call(void 0,
250
250
  command,
251
251
  args,
252
252
  process.platform,
@@ -269,7 +269,7 @@ function runProcess(command, args, cwd) {
269
269
  child.kill("SIGTERM");
270
270
  reject(
271
271
  new Error(
272
- `${_chunk4MK42735js.SKILLS_NPX_PACKAGE} timed out after ${SKILLS_PROCESS_TIMEOUT_MS}ms.`
272
+ `${_chunk2HMN5H54js.SKILLS_NPX_PACKAGE} timed out after ${SKILLS_PROCESS_TIMEOUT_MS}ms.`
273
273
  )
274
274
  );
275
275
  }, SKILLS_PROCESS_TIMEOUT_MS);
@@ -280,7 +280,7 @@ function runProcess(command, args, cwd) {
280
280
  child.once("close", (code) => {
281
281
  clearTimeout(timeout);
282
282
  if (code && stderr.trim()) {
283
- process.stderr.write(`${_chunk4MK42735js.SKILLS_NPX_PACKAGE} exited ${code}.
283
+ process.stderr.write(`${_chunk2HMN5H54js.SKILLS_NPX_PACKAGE} exited ${code}.
284
284
  `);
285
285
  }
286
286
  resolve(_nullishCoalesce(code, () => ( 1)));
@@ -288,7 +288,7 @@ function runProcess(command, args, cwd) {
288
288
  });
289
289
  }
290
290
  async function showSkills(options, name) {
291
- const baseUrl = _chunk7IKQKKNXjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
291
+ const baseUrl = _chunkVIUUTEHYjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
292
292
  const url = name ? `${baseUrl}/.well-known/skills/${encodeURIComponent(name)}/SKILL.md` : `${baseUrl}/.well-known/skills/index.json`;
293
293
  try {
294
294
  const response = await fetch(url, {
@@ -301,7 +301,7 @@ async function showSkills(options, name) {
301
301
  }
302
302
  if (name) {
303
303
  const markdown = await response.text();
304
- _chunkVQALXEXOjs.printCommandEnvelope.call(void 0,
304
+ _chunkYQKCH4R7js.printCommandEnvelope.call(void 0,
305
305
  { ok: true, status: "completed", skill: { name, markdown } },
306
306
  { json: options.json, text: markdown }
307
307
  );
@@ -311,7 +311,7 @@ async function showSkills(options, name) {
311
311
  const skills = (_nullishCoalesce(index.skills, () => ( []))).filter(
312
312
  (skill) => skill.install_surface === "v1" && skill.name
313
313
  );
314
- _chunkVQALXEXOjs.printCommandEnvelope.call(void 0,
314
+ _chunkYQKCH4R7js.printCommandEnvelope.call(void 0,
315
315
  {
316
316
  ok: true,
317
317
  status: "completed",
@@ -328,7 +328,7 @@ Read one with: deepline skills show <name>
328
328
  );
329
329
  return 0;
330
330
  } catch (error) {
331
- _chunkVQALXEXOjs.printCommandEnvelope.call(void 0,
331
+ _chunkYQKCH4R7js.printCommandEnvelope.call(void 0,
332
332
  {
333
333
  ok: false,
334
334
  status: "failed",
@@ -351,7 +351,7 @@ async function runSkillsCommand(options, dependencies = {}) {
351
351
  scope = normalizeScope(options.scope);
352
352
  root = scope === "local" ? resolveLocalRoot() : null;
353
353
  } catch (error) {
354
- _chunkVQALXEXOjs.printCommandEnvelope.call(void 0,
354
+ _chunkYQKCH4R7js.printCommandEnvelope.call(void 0,
355
355
  {
356
356
  ok: false,
357
357
  status: "failed",
@@ -363,22 +363,22 @@ async function runSkillsCommand(options, dependencies = {}) {
363
363
  );
364
364
  return 2;
365
365
  }
366
- const baseUrl = _chunk7IKQKKNXjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
366
+ const baseUrl = _chunkVIUUTEHYjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
367
367
  const catalog = {
368
- skillNames: [..._chunk4MK42735js.DEFAULT_SDK_SKILL_NAMES],
369
- version: _chunkRBEUVDZFjs.SDK_VERSION
368
+ skillNames: [..._chunk2HMN5H54js.DEFAULT_SDK_SKILL_NAMES],
369
+ version: _chunk5CYZHOKIjs.SDK_VERSION
370
370
  };
371
371
  const agents = options.agent ? [options.agent] : detectSkillsAgents({ scope, root });
372
372
  const plan = buildSkillsPlan({ baseUrl, scope, root, agents, ...catalog });
373
373
  if (options.dryRun) {
374
- _chunkVQALXEXOjs.printCommandEnvelope.call(void 0,
374
+ _chunkYQKCH4R7js.printCommandEnvelope.call(void 0,
375
375
  { ok: true, status: "planned", dryRun: true, ...plan },
376
376
  { json: options.json }
377
377
  );
378
378
  return 0;
379
379
  }
380
- if (isSkillsPlanCurrent(plan, readSkillsInstallState(plan.statePath)) && !_chunk4MK42735js.hasFailedAutomaticSkillsSync.call(void 0, baseUrl, agents)) {
381
- _chunkVQALXEXOjs.printCommandEnvelope.call(void 0,
380
+ if (isSkillsPlanCurrent(plan, readSkillsInstallState(plan.statePath)) && !_chunk2HMN5H54js.hasFailedAutomaticSkillsSync.call(void 0, baseUrl, agents)) {
381
+ _chunkYQKCH4R7js.printCommandEnvelope.call(void 0,
382
382
  {
383
383
  ok: true,
384
384
  status: "current",
@@ -410,10 +410,10 @@ async function runSkillsCommand(options, dependencies = {}) {
410
410
  }
411
411
  if (scope === "local" && root) {
412
412
  const managedNames = [
413
- .../* @__PURE__ */ new Set([...plan.skillNames, ..._chunk4MK42735js.LEGACY_SKILL_NAMES_TO_REMOVE])
413
+ .../* @__PURE__ */ new Set([...plan.skillNames, ..._chunk2HMN5H54js.LEGACY_SKILL_NAMES_TO_REMOVE])
414
414
  ];
415
415
  const agentRoots = workspaceSkillRootsForAgents(plan.agents);
416
- _chunk7IKQKKNXjs.ensureProjectPrivatePathsIgnored.call(void 0, root, [
416
+ _chunkVIUUTEHYjs.ensureProjectPrivatePathsIgnored.call(void 0, root, [
417
417
  ".deepline/",
418
418
  ...agentRoots.flatMap(
419
419
  (agentRoot) => managedNames.map((name) => `${agentRoot}/skills/${name}/`)
@@ -422,7 +422,7 @@ async function runSkillsCommand(options, dependencies = {}) {
422
422
  }
423
423
  let lease;
424
424
  try {
425
- lease = scope === "global" ? await _chunk4MK42735js.acquireSkillsInstallLease.call(void 0, baseUrl, agents, plan.version, {
425
+ lease = scope === "global" ? await _chunk2HMN5H54js.acquireSkillsInstallLease.call(void 0, baseUrl, agents, plan.version, {
426
426
  waitMs: _nullishCoalesce(dependencies.installLeaseWaitMs, () => ( SKILLS_INSTALL_LEASE_WAIT_MS)),
427
427
  onWait: () => process.stderr.write(
428
428
  "Waiting for a background Deepline skills refresh to finish...\n"
@@ -430,8 +430,8 @@ async function runSkillsCommand(options, dependencies = {}) {
430
430
  }) : { release: () => {
431
431
  } };
432
432
  } catch (error) {
433
- if (!(error instanceof _chunk4MK42735js.SkillsStateUnavailableError)) throw error;
434
- _chunkVQALXEXOjs.printCommandEnvelope.call(void 0,
433
+ if (!(error instanceof _chunk2HMN5H54js.SkillsStateUnavailableError)) throw error;
434
+ _chunkYQKCH4R7js.printCommandEnvelope.call(void 0,
435
435
  {
436
436
  ok: false,
437
437
  status: "failed",
@@ -447,7 +447,7 @@ async function runSkillsCommand(options, dependencies = {}) {
447
447
  return 5;
448
448
  }
449
449
  if (!lease) {
450
- _chunkVQALXEXOjs.printCommandEnvelope.call(void 0,
450
+ _chunkYQKCH4R7js.printCommandEnvelope.call(void 0,
451
451
  {
452
452
  ok: false,
453
453
  status: "failed",
@@ -456,7 +456,7 @@ async function runSkillsCommand(options, dependencies = {}) {
456
456
  scope,
457
457
  agents,
458
458
  message: "A background Deepline skills refresh is still running for these agents.",
459
- next: `Retry in a moment: deepline skills install --scope ${scope}. If no refresh is running, remove ${_chunk4MK42735js.skillsInstallLeasePath.call(void 0, baseUrl, agents)}`
459
+ next: `Retry in a moment: deepline skills install --scope ${scope}. If no refresh is running, remove ${_chunk2HMN5H54js.skillsInstallLeasePath.call(void 0, baseUrl, agents)}`
460
460
  },
461
461
  { json: options.json }
462
462
  );
@@ -505,7 +505,7 @@ async function runSkillsInstallWithLease(input) {
505
505
  }
506
506
  }
507
507
  } catch (error) {
508
- _chunkVQALXEXOjs.printCommandEnvelope.call(void 0,
508
+ _chunkYQKCH4R7js.printCommandEnvelope.call(void 0,
509
509
  {
510
510
  ok: false,
511
511
  status: "failed",
@@ -521,7 +521,7 @@ async function runSkillsInstallWithLease(input) {
521
521
  return 5;
522
522
  }
523
523
  if (missing.length > 0) {
524
- _chunkVQALXEXOjs.printCommandEnvelope.call(void 0,
524
+ _chunkYQKCH4R7js.printCommandEnvelope.call(void 0,
525
525
  {
526
526
  ok: false,
527
527
  status: "failed",
@@ -561,7 +561,7 @@ async function runSkillsInstallWithLease(input) {
561
561
  {
562
562
  schemaVersion: 1,
563
563
  installedAt: (/* @__PURE__ */ new Date()).toISOString(),
564
- cliVersion: _chunkRBEUVDZFjs.SDK_VERSION,
564
+ cliVersion: _chunk5CYZHOKIjs.SDK_VERSION,
565
565
  scope,
566
566
  agents,
567
567
  skillsVersion: plan.version,
@@ -574,9 +574,9 @@ async function runSkillsInstallWithLease(input) {
574
574
  "utf8"
575
575
  );
576
576
  if (scope === "global") {
577
- _chunk4MK42735js.clearFailedAutomaticSkillsSync.call(void 0, baseUrl, agents);
577
+ _chunk2HMN5H54js.clearFailedAutomaticSkillsSync.call(void 0, baseUrl, agents);
578
578
  }
579
- _chunkVQALXEXOjs.printCommandEnvelope.call(void 0,
579
+ _chunkYQKCH4R7js.printCommandEnvelope.call(void 0,
580
580
  {
581
581
  ok: true,
582
582
  status: "complete",
@@ -625,7 +625,7 @@ Examples:
625
625
  "after",
626
626
  `
627
627
  Notes:
628
- This command reinstalls current Deepline-managed skills using ${_chunk4MK42735js.SKILLS_NPX_PACKAGE},
628
+ This command reinstalls current Deepline-managed skills using ${_chunk2HMN5H54js.SKILLS_NPX_PACKAGE},
629
629
  then removes legacy Deepline skill names. Local scope writes into the resolved
630
630
  persistent project.
631
631
 
@@ -637,13 +637,13 @@ Examples:
637
637
  ).action(async (options) => {
638
638
  process.exitCode = await runSkillsCommand(options);
639
639
  });
640
- program.command(_chunk4MK42735js.SKILLS_AUTO_SYNC_COMMAND, { hidden: true }).description("Refresh Deepline agent skills in the background.").option(
640
+ program.command(_chunk2HMN5H54js.SKILLS_AUTO_SYNC_COMMAND, { hidden: true }).description("Refresh Deepline agent skills in the background.").option(
641
641
  "--claim <token>",
642
642
  "Owner token of the leases this child was started for."
643
643
  ).action(async (options) => {
644
644
  const claim = _optionalChain([options, 'access', _9 => _9.claim, 'optionalAccess', _10 => _10.trim, 'call', _11 => _11()]);
645
645
  if (!claim) {
646
- _chunkVQALXEXOjs.printCommandEnvelope.call(void 0,
646
+ _chunkYQKCH4R7js.printCommandEnvelope.call(void 0,
647
647
  {
648
648
  ok: false,
649
649
  status: "failed",
@@ -656,7 +656,7 @@ Examples:
656
656
  process.exitCode = 2;
657
657
  return;
658
658
  }
659
- await _chunk4MK42735js.syncSdkSkillsIfNeeded.call(void 0, _chunk7IKQKKNXjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, ""), {
659
+ await _chunk2HMN5H54js.syncSdkSkillsIfNeeded.call(void 0, _chunkVIUUTEHYjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, ""), {
660
660
  mode: "inline",
661
661
  notices: "defer",
662
662
  claim
@@ -2,20 +2,20 @@
2
2
 
3
3
 
4
4
 
5
- var _chunk2WFPHBR4js = require('./chunk-2WFPHBR4.js');
5
+ var _chunkLY5MMXFFjs = require('./chunk-LY5MMXFF.js');
6
6
 
7
7
 
8
8
 
9
9
 
10
10
 
11
11
 
12
- var _chunkVQALXEXOjs = require('./chunk-VQALXEXO.js');
12
+ var _chunkYQKCH4R7js = require('./chunk-YQKCH4R7.js');
13
13
 
14
14
  // src/cli/describe-options.ts
15
15
  function addDescribeOptions(command, options = {}) {
16
16
  command.option(
17
17
  "--prebuilt",
18
- "Show the Deepline tool or play, not a play your workspace created under the same name"
18
+ "Show the Deepline tool or play, not a play your org created under the same name"
19
19
  ).option("--tool", "Same as --prebuilt").option(
20
20
  "--verbose",
21
21
  "Show secondary fields, and fill in every input and read every output in the examples"
@@ -27,7 +27,7 @@ function addDescribeOptions(command, options = {}) {
27
27
  "Show only the in-play example, and explain how it takes inputs and returns outputs"
28
28
  ).option("--no-example", "Hide the run examples").option(
29
29
  "--full-schema",
30
- `Print every field: a long schema unfolded (over ${_chunk2WFPHBR4js.SCHEMA_LINE_LIMIT} lines), list rows, and a tool's raw response`
30
+ `Print every field: a long schema unfolded (over ${_chunkLY5MMXFFjs.SCHEMA_LINE_LIMIT} lines), list rows, and a tool's raw response`
31
31
  ).option(
32
32
  "--fields <names>",
33
33
  "Show only these fields, comma-separated, plus every required input"
@@ -250,7 +250,7 @@ function projectRunDatasetCell(value) {
250
250
  const logicalValue = parseSerializedDatasetValue(value);
251
251
  if (logicalValue === null || logicalValue === void 0) return logicalValue;
252
252
  if (typeof logicalValue === "object") {
253
- return _chunkVQALXEXOjs.csvSafeJsonString.call(void 0, canonicalDatasetJson(logicalValue));
253
+ return _chunkYQKCH4R7js.csvSafeJsonString.call(void 0, canonicalDatasetJson(logicalValue));
254
254
  }
255
255
  return logicalValue;
256
256
  }
@@ -642,7 +642,7 @@ function csvText(rows, columns = []) {
642
642
  rows: rows.map((row) => record(row) ? row : { value: row }),
643
643
  columns
644
644
  });
645
- return _chunkVQALXEXOjs.csvStringFromRows.call(void 0, projection.rows, projection.columns);
645
+ return _chunkYQKCH4R7js.csvStringFromRows.call(void 0, projection.rows, projection.columns);
646
646
  }
647
647
  function writeExecutionOutput(result, options, { skipReceiptFile = false } = {}) {
648
648
  let temp;
@@ -769,7 +769,7 @@ function writeExecutionOutput(result, options, { skipReceiptFile = false } = {})
769
769
  };
770
770
  if (options.receiptOut && !skipReceiptFile) {
771
771
  persist(options.receiptOut, jsonText(receipt));
772
- _chunkVQALXEXOjs.markJsonOutputHandled.call(void 0, );
772
+ _chunkYQKCH4R7js.markJsonOutputHandled.call(void 0, );
773
773
  } else {
774
774
  printReceipt(receipt, options, {
775
775
  data: hasData ? result.data : void 0,
@@ -872,9 +872,9 @@ function annotated(schema, values) {
872
872
  function shapeLines(title, data) {
873
873
  const schema = annotated(observedSchema(data), [data]);
874
874
  const block = (heading, fieldSchema) => {
875
- const { lines, folded } = _chunk2WFPHBR4js.fieldBlockLines.call(void 0,
875
+ const { lines, folded } = _chunkLY5MMXFFjs.fieldBlockLines.call(void 0,
876
876
  heading,
877
- _chunk2WFPHBR4js.schemaFields.call(void 0, fieldSchema)
877
+ _chunkLY5MMXFFjs.schemaFields.call(void 0, fieldSchema)
878
878
  );
879
879
  return [
880
880
  ...lines,
@@ -937,7 +937,7 @@ function receiptText(receipt, options, extra) {
937
937
  problems.push(
938
938
  `Error: ${record(error) && typeof error.message === "string" ? error.message : JSON.stringify(error)}`
939
939
  );
940
- const diagnostic = _chunkVQALXEXOjs.formatCliFailureDiagnostic.call(void 0, error);
940
+ const diagnostic = _chunkYQKCH4R7js.formatCliFailureDiagnostic.call(void 0, error);
941
941
  if (diagnostic) problems.push(...diagnostic.split("\n"));
942
942
  if (record(error) && typeof error.recoveryFile === "string") {
943
943
  problems.push(
@@ -1030,8 +1030,8 @@ function printReceipt(receipt, options, extra) {
1030
1030
  const text = options.receiptJson ? `${JSON.stringify(receipt, null, 2)}
1031
1031
  ` : receiptText(receipt, options, extra);
1032
1032
  if (options.receiptOut !== void 0) {
1033
- _chunkVQALXEXOjs.writeRawStderr.call(void 0, text);
1034
- _chunkVQALXEXOjs.markJsonOutputHandled.call(void 0, );
1033
+ _chunkYQKCH4R7js.writeRawStderr.call(void 0, text);
1034
+ _chunkYQKCH4R7js.markJsonOutputHandled.call(void 0, );
1035
1035
  } else {
1036
1036
  (dataOnStdout(options) ? process.stderr : process.stdout).write(text);
1037
1037
  }
@@ -1,10 +1,10 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
2
2
 
3
3
 
4
- var _chunkRBEUVDZFjs = require('./chunk-RBEUVDZF.js');
4
+ var _chunk5CYZHOKIjs = require('./chunk-5CYZHOKI.js');
5
5
 
6
6
 
7
- var _chunkEITMD3A5js = require('./chunk-EITMD3A5.js');
7
+ var _chunk6VLFQZK6js = require('./chunk-6VLFQZK6.js');
8
8
 
9
9
  // src/config.ts
10
10
 
@@ -23,9 +23,21 @@ var API_KEY_ENV = "DEEPLINE_API_KEY";
23
23
  var ACTIVE_ORG_ID_ENV = "DEEPLINE_ACTIVE_ORG_ID";
24
24
  var ACTIVE_ORG_NAME_ENV = "DEEPLINE_ACTIVE_ORG_NAME";
25
25
  var FEATURES_ENV = "DEEPLINE_FEATURES";
26
+ var WORKSPACE_ID_ENV = "DEEPLINE_WORKSPACE_ID";
26
27
  var PROD_URL = "https://code.deepline.com";
27
28
  var DEFAULT_TIMEOUT = 6e4;
28
29
  var DEFAULT_MAX_RETRIES = 3;
30
+ var TRANSIENT_HTTP_STATUSES = /* @__PURE__ */ new Set([
31
+ 408,
32
+ 425,
33
+ 429,
34
+ 502,
35
+ 503,
36
+ 504
37
+ ]);
38
+ function defaultRetryBackoffMs(retry) {
39
+ return Math.min(1e3 * 2 ** (retry - 1), 3e4);
40
+ }
29
41
  var PROJECT_DEEPLINE_ENV_FILE = ".env.deepline";
30
42
  var COWORK_IGNORED_WORKSPACE_DIRS = /* @__PURE__ */ new Set([
31
43
  ".auto-memory",
@@ -48,7 +60,8 @@ var CLI_ENV_ALLOWED_KEYS = /* @__PURE__ */ new Set([
48
60
  API_KEY_ENV,
49
61
  ACTIVE_ORG_ID_ENV,
50
62
  ACTIVE_ORG_NAME_ENV,
51
- FEATURES_ENV
63
+ FEATURES_ENV,
64
+ WORKSPACE_ID_ENV
52
65
  ]);
53
66
  function featureEnvValues(data) {
54
67
  if (!Array.isArray(data.features)) return {};
@@ -281,6 +294,10 @@ function mergePersistedEnvValues(existing, values) {
281
294
  delete merged[ACTIVE_ORG_ID_ENV];
282
295
  delete merged[ACTIVE_ORG_NAME_ENV];
283
296
  delete merged[FEATURES_ENV];
297
+ delete merged[WORKSPACE_ID_ENV];
298
+ }
299
+ if (values[WORKSPACE_ID_ENV] === void 0 && values[ACTIVE_ORG_ID_ENV] !== void 0 && values[ACTIVE_ORG_ID_ENV] !== existing[ACTIVE_ORG_ID_ENV]) {
300
+ delete merged[WORKSPACE_ID_ENV];
284
301
  }
285
302
  if (values[FEATURES_ENV] === "") {
286
303
  delete merged[FEATURES_ENV];
@@ -382,36 +399,79 @@ function resolveBaseUrlOnly(options) {
382
399
  _optionalChain([options, 'optionalAccess', _36 => _36.baseUrl, 'optionalAccess', _37 => _37.trim, 'call', _38 => _38()]) || autoDetectBaseUrl()
383
400
  );
384
401
  if (!baseUrl) {
385
- throw new (0, _chunkEITMD3A5js.ConfigError)(
402
+ throw new (0, _chunk6VLFQZK6js.ConfigError)(
386
403
  `Invalid ${HOST_URL_ENV}. Expected an http(s) URL such as https://code.deepline.com.`
387
404
  );
388
405
  }
389
406
  return baseUrl;
390
407
  }
408
+ function resolveCredentialEnvFile(config, startDir = process.cwd()) {
409
+ const apiKey = config.apiKey.trim();
410
+ if (!apiKey || _optionalChain([process, 'access', _39 => _39.env, 'access', _40 => _40[API_KEY_ENV], 'optionalAccess', _41 => _41.trim, 'call', _42 => _42()])) return null;
411
+ const folder = getResolvedProjectAuthSource(config.baseUrl, apiKey, startDir);
412
+ if (folder) {
413
+ return { scope: "folder", filePath: folder.filePath, env: folder.env };
414
+ }
415
+ const filePath = sdkCliEnvFilePath(config.baseUrl);
416
+ const env = parseEnvFile(filePath);
417
+ return (_nullishCoalesce(env[API_KEY_ENV], () => ( ""))).trim() === apiKey ? { scope: "global", filePath, env } : null;
418
+ }
419
+ function resolveCliWorkspace(config, explicitWorkspace) {
420
+ const option = _optionalChain([explicitWorkspace, 'optionalAccess', _43 => _43.trim, 'call', _44 => _44()]);
421
+ if (option) return { workspaceId: option, source: "option" };
422
+ const env = _optionalChain([process, 'access', _45 => _45.env, 'access', _46 => _46[WORKSPACE_ID_ENV], 'optionalAccess', _47 => _47.trim, 'call', _48 => _48()]);
423
+ if (env) return { workspaceId: env, source: "env" };
424
+ const saved = _optionalChain([resolveCredentialEnvFile, 'call', _49 => _49(config), 'optionalAccess', _50 => _50.env, 'access', _51 => _51[WORKSPACE_ID_ENV], 'optionalAccess', _52 => _52.trim, 'call', _53 => _53()]);
425
+ if (saved) return { workspaceId: saved, source: "saved" };
426
+ return { workspaceId: null, source: "default" };
427
+ }
428
+ function saveCliWorkspace(config, workspaceId) {
429
+ const target = resolveCredentialEnvFile(config);
430
+ if (!target) {
431
+ throw new (0, _chunk6VLFQZK6js.ConfigError)(
432
+ `${API_KEY_ENV} comes from the environment, so there is no saved auth to add a workspace to. Set ${WORKSPACE_ID_ENV} for that invocation instead.`
433
+ );
434
+ }
435
+ const values = { [WORKSPACE_ID_ENV]: _nullishCoalesce(workspaceId, () => ( "")) };
436
+ if (target.scope === "folder") {
437
+ mergeProjectEnvFile(target.filePath, values);
438
+ } else {
439
+ saveHostEnvValues(config.baseUrl, values);
440
+ }
441
+ return { scope: target.scope, filePath: target.filePath };
442
+ }
443
+ function workspaceConfig(baseUrl, apiKey, explicitWorkspace) {
444
+ const { workspaceId } = resolveCliWorkspace(
445
+ { baseUrl, apiKey },
446
+ explicitWorkspace
447
+ );
448
+ return workspaceId ? { workspace: workspaceId } : {};
449
+ }
391
450
  function resolveConfig(options) {
392
451
  const baseUrl = normalizeBaseUrl(
393
- _optionalChain([options, 'optionalAccess', _39 => _39.baseUrl, 'optionalAccess', _40 => _40.trim, 'call', _41 => _41()]) || autoDetectBaseUrl()
452
+ _optionalChain([options, 'optionalAccess', _54 => _54.baseUrl, 'optionalAccess', _55 => _55.trim, 'call', _56 => _56()]) || autoDetectBaseUrl()
394
453
  );
395
454
  if (!baseUrl) {
396
- throw new (0, _chunkEITMD3A5js.ConfigError)(
455
+ throw new (0, _chunk6VLFQZK6js.ConfigError)(
397
456
  `Invalid ${HOST_URL_ENV}. Expected an http(s) URL such as https://code.deepline.com.`
398
457
  );
399
458
  }
400
- const apiKey = resolveApiKeyForBaseUrl(baseUrl, _optionalChain([options, 'optionalAccess', _42 => _42.apiKey]));
459
+ const apiKey = resolveApiKeyForBaseUrl(baseUrl, _optionalChain([options, 'optionalAccess', _57 => _57.apiKey]));
401
460
  if (!apiKey) {
402
- throw new (0, _chunkEITMD3A5js.ConfigError)(
461
+ throw new (0, _chunk6VLFQZK6js.ConfigError)(
403
462
  `No API key found. Set ${API_KEY_ENV}, add it to .env.deepline, or run: deepline auth register`
404
463
  );
405
464
  }
406
465
  return {
407
466
  apiKey,
408
467
  baseUrl,
409
- timeout: _nullishCoalesce(_optionalChain([options, 'optionalAccess', _43 => _43.timeout]), () => ( DEFAULT_TIMEOUT)),
410
- maxRetries: _nullishCoalesce(_optionalChain([options, 'optionalAccess', _44 => _44.maxRetries]), () => ( DEFAULT_MAX_RETRIES)),
468
+ timeout: _nullishCoalesce(_optionalChain([options, 'optionalAccess', _58 => _58.timeout]), () => ( DEFAULT_TIMEOUT)),
469
+ maxRetries: _nullishCoalesce(_optionalChain([options, 'optionalAccess', _59 => _59.maxRetries]), () => ( DEFAULT_MAX_RETRIES)),
470
+ ...workspaceConfig(baseUrl, apiKey, _optionalChain([options, 'optionalAccess', _60 => _60.workspace])),
411
471
  // Pass through untouched: the transport owns case-insensitive merging so
412
472
  // there is exactly one place that decides which header wins.
413
- ..._optionalChain([options, 'optionalAccess', _45 => _45.headers]) ? { headers: { ...options.headers } } : {},
414
- ..._optionalChain([options, 'optionalAccess', _46 => _46.environment]) ? { environment: options.environment } : {}
473
+ ..._optionalChain([options, 'optionalAccess', _61 => _61.headers]) ? { headers: { ...options.headers } } : {},
474
+ ..._optionalChain([options, 'optionalAccess', _62 => _62.environment]) ? { environment: options.environment } : {}
415
475
  };
416
476
  }
417
477
  function mergeProjectEnvFile(filePath, values) {
@@ -481,7 +541,7 @@ function findNearestGitCommonDir(startDir) {
481
541
  const match = _fs.readFileSync.call(void 0, candidate, "utf8").match(
482
542
  /^gitdir:\s*(.+)$/m
483
543
  );
484
- const rawGitDir = _optionalChain([match, 'optionalAccess', _47 => _47[1], 'optionalAccess', _48 => _48.trim, 'call', _49 => _49()]);
544
+ const rawGitDir = _optionalChain([match, 'optionalAccess', _63 => _63[1], 'optionalAccess', _64 => _64.trim, 'call', _65 => _65()]);
485
545
  if (rawGitDir) {
486
546
  const gitDir = _path.isAbsolute.call(void 0, rawGitDir) ? rawGitDir : _path.resolve.call(void 0, _path.dirname.call(void 0, candidate), rawGitDir);
487
547
  const commonDirPath = _path.join.call(void 0, gitDir, "commondir");
@@ -502,7 +562,7 @@ function findNearestGitCommonDir(startDir) {
502
562
  function saveProjectDeeplineEnvValues(values, startDir = process.cwd()) {
503
563
  const target = resolveProjectPinTarget(startDir);
504
564
  if (!target.ok) {
505
- throw new (0, _chunkEITMD3A5js.ConfigError)(
565
+ throw new (0, _chunk6VLFQZK6js.ConfigError)(
506
566
  `Cowork project folder is ambiguous. Candidate folders: ${target.candidates.join(
507
567
  ", "
508
568
  )}. Set CLAUDE_PROJECT_DIR or cd into the intended project folder before running this command.`
@@ -553,7 +613,7 @@ function findNearestProjectMarkerDir(startDir) {
553
613
  }
554
614
  }
555
615
  function resolveCliAuthProvenance(config, startDir = process.cwd()) {
556
- const envApiKey = _optionalChain([process, 'access', _50 => _50.env, 'access', _51 => _51[API_KEY_ENV], 'optionalAccess', _52 => _52.trim, 'call', _53 => _53()]);
616
+ const envApiKey = _optionalChain([process, 'access', _66 => _66.env, 'access', _67 => _67[API_KEY_ENV], 'optionalAccess', _68 => _68.trim, 'call', _69 => _69()]);
557
617
  const folderAuth = getResolvedProjectAuthSource(
558
618
  config.baseUrl,
559
619
  config.apiKey,
@@ -583,13 +643,13 @@ function resolveCliAuthProvenance(config, startDir = process.cwd()) {
583
643
  return {
584
644
  scope: envApiKey ? "env" : folderAuth ? "folder" : "global",
585
645
  project,
586
- folderAuthPath: _nullishCoalesce(_optionalChain([folderAuth, 'optionalAccess', _54 => _54.filePath]), () => ( null))
646
+ folderAuthPath: _nullishCoalesce(_optionalChain([folderAuth, 'optionalAccess', _70 => _70.filePath]), () => ( null))
587
647
  };
588
648
  }
589
649
  function activeOrganizationFromEnv(env) {
590
- const orgId = _optionalChain([env, 'access', _55 => _55[ACTIVE_ORG_ID_ENV], 'optionalAccess', _56 => _56.trim, 'call', _57 => _57()]);
650
+ const orgId = _optionalChain([env, 'access', _71 => _71[ACTIVE_ORG_ID_ENV], 'optionalAccess', _72 => _72.trim, 'call', _73 => _73()]);
591
651
  if (!orgId) return null;
592
- const orgName = _optionalChain([env, 'access', _58 => _58[ACTIVE_ORG_NAME_ENV], 'optionalAccess', _59 => _59.trim, 'call', _60 => _60()]) || null;
652
+ const orgName = _optionalChain([env, 'access', _74 => _74[ACTIVE_ORG_NAME_ENV], 'optionalAccess', _75 => _75.trim, 'call', _76 => _76()]) || null;
593
653
  return { org_id: orgId, org_name: orgName };
594
654
  }
595
655
  function resolveCliCommandContext(inputConfig, requestedScope) {
@@ -607,7 +667,7 @@ function resolveCliCommandContext(inputConfig, requestedScope) {
607
667
  }
608
668
  const contextForScope = (scope) => {
609
669
  if (scope === "env") {
610
- const processApiKey = _optionalChain([process, 'access', _61 => _61.env, 'access', _62 => _62[API_KEY_ENV], 'optionalAccess', _63 => _63.trim, 'call', _64 => _64()]);
670
+ const processApiKey = _optionalChain([process, 'access', _77 => _77.env, 'access', _78 => _78[API_KEY_ENV], 'optionalAccess', _79 => _79.trim, 'call', _80 => _80()]);
611
671
  return processApiKey && processApiKey === config.apiKey ? {
612
672
  active_organization: activeOrganizationFromEnv(process.env),
613
673
  auth_scope: "env",
@@ -656,11 +716,11 @@ function resolveCliCommandContext(inputConfig, requestedScope) {
656
716
 
657
717
 
658
718
  function activePluginSkillsDir() {
659
- const pluginMode = _optionalChain([process, 'access', _65 => _65.env, 'access', _66 => _66.DEEPLINE_PLUGIN_MODE, 'optionalAccess', _67 => _67.trim, 'call', _68 => _68(), 'access', _69 => _69.toLowerCase, 'call', _70 => _70()]);
719
+ const pluginMode = _optionalChain([process, 'access', _81 => _81.env, 'access', _82 => _82.DEEPLINE_PLUGIN_MODE, 'optionalAccess', _83 => _83.trim, 'call', _84 => _84(), 'access', _85 => _85.toLowerCase, 'call', _86 => _86()]);
660
720
  if (pluginMode !== "true" && pluginMode !== "1" && pluginMode !== "yes" && pluginMode !== "on") {
661
721
  return "";
662
722
  }
663
- const dir = _nullishCoalesce(_optionalChain([process, 'access', _71 => _71.env, 'access', _72 => _72.DEEPLINE_PLUGIN_SKILLS_DIR, 'optionalAccess', _73 => _73.trim, 'call', _74 => _74()]), () => ( ""));
723
+ const dir = _nullishCoalesce(_optionalChain([process, 'access', _87 => _87.env, 'access', _88 => _88.DEEPLINE_PLUGIN_SKILLS_DIR, 'optionalAccess', _89 => _89.trim, 'call', _90 => _90()]), () => ( ""));
664
724
  return dir && _fs.existsSync.call(void 0, dir) ? dir : "";
665
725
  }
666
726
  function hasActivePluginSkills() {
@@ -711,7 +771,7 @@ function readSkillsVersionFile(path) {
711
771
  }
712
772
  }
713
773
  function resolveAutoSyncSkillAgents() {
714
- switch (_chunkRBEUVDZFjs.detectAgentRuntime.call(void 0, )) {
774
+ switch (_chunk5CYZHOKIjs.detectAgentRuntime.call(void 0, )) {
715
775
  case "codex":
716
776
  return ["codex"];
717
777
  case "claude_code":
@@ -781,7 +841,7 @@ function writeSdkSkillsLocalVersion(baseUrl, version, agents) {
781
841
  }
782
842
 
783
843
  // src/http.ts
784
- var HttpClient2 = class extends _chunkRBEUVDZFjs.HttpClient {
844
+ var HttpClient2 = class extends _chunk5CYZHOKIjs.HttpClient {
785
845
  constructor(config) {
786
846
  super(config, readSdkSkillsLocalVersion);
787
847
  }
@@ -824,4 +884,10 @@ var HttpClient2 = class extends _chunkRBEUVDZFjs.HttpClient {
824
884
 
825
885
 
826
886
 
827
- exports.HOST_URL_ENV = HOST_URL_ENV; exports.API_KEY_ENV = API_KEY_ENV; exports.ACTIVE_ORG_ID_ENV = ACTIVE_ORG_ID_ENV; exports.ACTIVE_ORG_NAME_ENV = ACTIVE_ORG_NAME_ENV; exports.FEATURES_ENV = FEATURES_ENV; exports.PROD_URL = PROD_URL; exports.featureEnvValues = featureEnvValues; exports.storedHostApiKey = storedHostApiKey; exports.storedHostFeatures = storedHostFeatures; exports.cliFeatureEnabled = cliFeatureEnabled; exports.baseUrlSlug = baseUrlSlug; exports.sdkCliStateDirPath = sdkCliStateDirPath; exports.hostConfigDirPath = hostConfigDirPath; exports.hostEnvFilePath = hostEnvFilePath; exports.saveHostEnvValues = saveHostEnvValues; exports.autoDetectBaseUrl = autoDetectBaseUrl; exports.resolveApiKeyForBaseUrl = resolveApiKeyForBaseUrl; exports.resolveProjectApiKeyForBaseUrl = resolveProjectApiKeyForBaseUrl; exports.resolveGlobalApiKeyForBaseUrl = resolveGlobalApiKeyForBaseUrl; exports.getResolvedProjectAuthSource = getResolvedProjectAuthSource; exports.resolveBaseUrlOnly = resolveBaseUrlOnly; exports.resolveConfig = resolveConfig; exports.ensureProjectPrivatePathsIgnored = ensureProjectPrivatePathsIgnored; exports.saveProjectDeeplineEnvValues = saveProjectDeeplineEnvValues; exports.resolveProjectPinTarget = resolveProjectPinTarget; exports.getActiveProjectAuthSource = getActiveProjectAuthSource; exports.resolveCliAuthProvenance = resolveCliAuthProvenance; exports.resolveCliCommandContext = resolveCliCommandContext; exports.hasActivePluginSkills = hasActivePluginSkills; exports.KNOWN_SKILL_AGENTS = KNOWN_SKILL_AGENTS; exports.DEFAULT_SKILL_AGENTS = DEFAULT_SKILL_AGENTS; exports.skillsAgentPathSegment = skillsAgentPathSegment; exports.resolveAutoSyncSkillAgents = resolveAutoSyncSkillAgents; exports.readSdkSkillsLocalVersion = readSdkSkillsLocalVersion; exports.writeSdkSkillsLocalVersion = writeSdkSkillsLocalVersion; exports.HttpClient = HttpClient2;
887
+
888
+
889
+
890
+
891
+
892
+
893
+ exports.HOST_URL_ENV = HOST_URL_ENV; exports.API_KEY_ENV = API_KEY_ENV; exports.ACTIVE_ORG_ID_ENV = ACTIVE_ORG_ID_ENV; exports.ACTIVE_ORG_NAME_ENV = ACTIVE_ORG_NAME_ENV; exports.FEATURES_ENV = FEATURES_ENV; exports.PROD_URL = PROD_URL; exports.DEFAULT_TIMEOUT = DEFAULT_TIMEOUT; exports.DEFAULT_MAX_RETRIES = DEFAULT_MAX_RETRIES; exports.TRANSIENT_HTTP_STATUSES = TRANSIENT_HTTP_STATUSES; exports.defaultRetryBackoffMs = defaultRetryBackoffMs; exports.featureEnvValues = featureEnvValues; exports.storedHostApiKey = storedHostApiKey; exports.storedHostFeatures = storedHostFeatures; exports.cliFeatureEnabled = cliFeatureEnabled; exports.baseUrlSlug = baseUrlSlug; exports.sdkCliStateDirPath = sdkCliStateDirPath; exports.hostConfigDirPath = hostConfigDirPath; exports.hostEnvFilePath = hostEnvFilePath; exports.saveHostEnvValues = saveHostEnvValues; exports.autoDetectBaseUrl = autoDetectBaseUrl; exports.resolveApiKeyForBaseUrl = resolveApiKeyForBaseUrl; exports.resolveProjectApiKeyForBaseUrl = resolveProjectApiKeyForBaseUrl; exports.resolveGlobalApiKeyForBaseUrl = resolveGlobalApiKeyForBaseUrl; exports.getResolvedProjectAuthSource = getResolvedProjectAuthSource; exports.resolveBaseUrlOnly = resolveBaseUrlOnly; exports.resolveCliWorkspace = resolveCliWorkspace; exports.saveCliWorkspace = saveCliWorkspace; exports.resolveConfig = resolveConfig; exports.ensureProjectPrivatePathsIgnored = ensureProjectPrivatePathsIgnored; exports.saveProjectDeeplineEnvValues = saveProjectDeeplineEnvValues; exports.resolveProjectPinTarget = resolveProjectPinTarget; exports.getActiveProjectAuthSource = getActiveProjectAuthSource; exports.resolveCliAuthProvenance = resolveCliAuthProvenance; exports.resolveCliCommandContext = resolveCliCommandContext; exports.hasActivePluginSkills = hasActivePluginSkills; exports.KNOWN_SKILL_AGENTS = KNOWN_SKILL_AGENTS; exports.DEFAULT_SKILL_AGENTS = DEFAULT_SKILL_AGENTS; exports.skillsAgentPathSegment = skillsAgentPathSegment; exports.resolveAutoSyncSkillAgents = resolveAutoSyncSkillAgents; exports.readSdkSkillsLocalVersion = readSdkSkillsLocalVersion; exports.writeSdkSkillsLocalVersion = writeSdkSkillsLocalVersion; exports.HttpClient = HttpClient2;