deepline 0.3.502 → 0.3.503

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 (204) hide show
  1. package/dist/bundling-sources/sdk/src/client-core.ts +26 -0
  2. package/dist/bundling-sources/sdk/src/index.ts +1 -0
  3. package/dist/bundling-sources/sdk/src/release.ts +1 -1
  4. package/dist/bundling-sources/sdk/src/types.ts +9 -0
  5. package/dist/bundling-sources/shared_libs/monitors/starter-templates.ts +0 -8
  6. package/dist/bundling-sources/shared_libs/observability/dlq.ts +174 -0
  7. package/dist/bundling-sources/shared_libs/observability/queue-health.ts +9 -0
  8. package/dist/bundling-sources/shared_libs/observability/queue-item-connectors.ts +1 -0
  9. package/dist/bundling-sources/shared_libs/observability/scheduled-jobs.json +18 -0
  10. package/dist/bundling-sources/shared_libs/play-runtime/activity-observation.ts +20 -0
  11. package/dist/bundling-sources/shared_libs/play-runtime/app-runtime-api.ts +62 -2
  12. package/dist/bundling-sources/shared_libs/play-runtime/context.ts +667 -62
  13. package/dist/bundling-sources/shared_libs/play-runtime/ctx-types.ts +55 -0
  14. package/dist/bundling-sources/shared_libs/play-runtime/durable-receipt-execution.ts +20 -2
  15. package/dist/bundling-sources/shared_libs/play-runtime/durable-runs-rollout.ts +46 -0
  16. package/dist/bundling-sources/shared_libs/play-runtime/execution-gateway-invocation-fence.ts +80 -4
  17. package/dist/bundling-sources/shared_libs/play-runtime/fixture-egress-fetch.ts +95 -0
  18. package/dist/bundling-sources/shared_libs/play-runtime/freshness-receipt-execution.ts +292 -45
  19. package/dist/bundling-sources/shared_libs/play-runtime/internal-bootstrap-token.ts +15 -0
  20. package/dist/bundling-sources/shared_libs/play-runtime/launch-identity.ts +3 -0
  21. package/dist/bundling-sources/shared_libs/play-runtime/play-http-request.ts +7 -3
  22. package/dist/bundling-sources/shared_libs/play-runtime/play-runtime-semantics.ts +31 -1
  23. package/dist/bundling-sources/shared_libs/play-runtime/post-code-recovery-policy.ts +231 -0
  24. package/dist/bundling-sources/shared_libs/play-runtime/protocol.ts +4 -0
  25. package/dist/bundling-sources/shared_libs/play-runtime/run-ending-event.ts +55 -0
  26. package/dist/bundling-sources/shared_libs/play-runtime/run-ledger.ts +126 -0
  27. package/dist/bundling-sources/shared_libs/play-runtime/runner-app/index.ts +38 -1
  28. package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/backends/daytona-launch-transport.ts +2 -9
  29. package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/backends/daytona-lifecycle.ts +51 -19
  30. package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/backends/local-process.ts +9 -4
  31. package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/backends/modal.ts +2 -0
  32. package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/runtime-sandbox-reconciliation.ts +2 -0
  33. package/dist/bundling-sources/shared_libs/play-runtime/runtime-actions.ts +12 -1
  34. package/dist/bundling-sources/shared_libs/play-runtime/runtime-authority.ts +3 -0
  35. package/dist/bundling-sources/shared_libs/play-runtime/runtime-incident-drills.ts +42 -0
  36. package/dist/bundling-sources/shared_libs/play-runtime/runtime-operation-contract.ts +7 -0
  37. package/dist/bundling-sources/shared_libs/play-runtime/runtime-receipt-store-adapter.ts +26 -1
  38. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backend.ts +13 -0
  39. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/absurd-deadline-reconciliation.ts +53 -0
  40. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/absurd-runtime-worker.ts +631 -19
  41. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/durable-run-inventory.ts +719 -0
  42. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/durable-run-sql.ts +206 -0
  43. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/latest-cache-result.ts +83 -0
  44. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/postgres.ts +1432 -157
  45. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/receipt-gateway.ts +61 -0
  46. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/runtime-event-search.ts +29 -8
  47. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/runtime-queue-health.ts +27 -2
  48. package/dist/bundling-sources/shared_libs/play-runtime/test-runtime-seams.ts +45 -0
  49. package/dist/bundling-sources/shared_libs/play-runtime/tool-cache-policy.ts +18 -0
  50. package/dist/bundling-sources/shared_libs/play-runtime/tool-execute-retry-policy.ts +129 -14
  51. package/dist/bundling-sources/shared_libs/play-runtime/workflow-executor-auth.ts +2 -0
  52. package/dist/bundling-sources/shared_libs/plays/authoring-contract.ts +10 -1
  53. package/dist/cli/{auth-EFHLOVG4.mjs → auth-IC4WLSE3.mjs} +5 -5
  54. package/dist/cli/auth-ZCMSXZO4.js +43 -0
  55. package/dist/cli/{billing-Q5XKEYPP.mjs → billing-2VOV64SD.mjs} +6 -6
  56. package/dist/cli/{billing-SKT2VE34.js → billing-LWQOII22.js} +79 -79
  57. package/dist/cli/{chunk-TAK3MVXY.js → chunk-2626LTU3.js} +284 -267
  58. package/dist/cli/{chunk-OEUMXKR5.js → chunk-26RSSTCF.js} +26 -26
  59. package/dist/cli/{chunk-JFBJLNBI.js → chunk-2K2QBLYO.js} +53 -53
  60. package/dist/cli/{chunk-32YQBJON.js → chunk-33JUK73X.js} +7 -7
  61. package/dist/cli/{chunk-X5MGQ7UT.js → chunk-3CXHK4TW.js} +10 -10
  62. package/dist/cli/{chunk-YPTZJ7LO.js → chunk-4IIYSBEP.js} +70 -13
  63. package/dist/cli/{chunk-HIVRCTDR.mjs → chunk-5GI6NKOE.mjs} +20 -1
  64. package/dist/cli/{chunk-TFFJ2PRN.mjs → chunk-5M5WSFRZ.mjs} +70 -13
  65. package/dist/cli/{chunk-4CCMD7QM.mjs → chunk-6XTE6C3W.mjs} +32 -15
  66. package/dist/cli/{chunk-OFBLT2LQ.mjs → chunk-7HEDCIR3.mjs} +1 -1
  67. package/dist/cli/{chunk-DRBD4IYQ.mjs → chunk-7MJYZ33I.mjs} +2 -6
  68. package/dist/cli/{chunk-JL6H4H3G.js → chunk-A2C6ONWA.js} +6 -6
  69. package/dist/cli/{chunk-DKAMCJIT.js → chunk-AARF4SOW.js} +17 -13
  70. package/dist/cli/{chunk-QNELA7SX.js → chunk-B3X4YWQ6.js} +53 -53
  71. package/dist/cli/{chunk-NZXB27TP.mjs → chunk-BI2Q45SY.mjs} +4 -4
  72. package/dist/cli/{chunk-FVM4PS5Q.js → chunk-BN5VKY4X.js} +25 -12
  73. package/dist/cli/{chunk-UOANF3DR.js → chunk-C5RQTTLP.js} +26 -7
  74. package/dist/cli/{chunk-YWOQYYYS.mjs → chunk-D27HP3HS.mjs} +2 -2
  75. package/dist/cli/{chunk-NXVYLX3F.mjs → chunk-DPI5OYVU.mjs} +10 -6
  76. package/dist/cli/{chunk-R5F7JXT4.mjs → chunk-EDMV4JT5.mjs} +2 -2
  77. package/dist/cli/{chunk-MYUISF3P.mjs → chunk-EQ3WMKFY.mjs} +5 -5
  78. package/dist/cli/{chunk-YDXEXVBV.js → chunk-F73PD2XD.js} +7 -7
  79. package/dist/cli/{chunk-L5CTJY74.mjs → chunk-FHJ54BHH.mjs} +2 -2
  80. package/dist/cli/{chunk-EUWRKWT4.js → chunk-FIUTDSJX.js} +5 -4
  81. package/dist/cli/{chunk-WKFAX2K7.js → chunk-FVDTERO2.js} +21 -21
  82. package/dist/cli/{chunk-Q3NM6ZL3.js → chunk-FZHOWPSN.js} +23 -21
  83. package/dist/cli/{chunk-NKLM4J4X.mjs → chunk-GIHNEYBG.mjs} +1 -1
  84. package/dist/cli/{chunk-7ZYSXSJJ.mjs → chunk-GLZBFBJS.mjs} +5 -5
  85. package/dist/cli/{chunk-DYHTXGLX.js → chunk-HRTDCXHI.js} +2 -2
  86. package/dist/cli/{chunk-JLYDLK6X.js → chunk-HS63YBT5.js} +3 -3
  87. package/dist/cli/{chunk-LA3UYRVZ.js → chunk-IIP46RVC.js} +1 -1
  88. package/dist/cli/{chunk-SAW3FBCA.mjs → chunk-ITJ7NB2D.mjs} +6 -0
  89. package/dist/cli/{chunk-54QXWK3C.mjs → chunk-J6RBOLK7.mjs} +1 -1
  90. package/dist/cli/{chunk-YL2CCF6T.mjs → chunk-JJVN7OIX.mjs} +4 -4
  91. package/dist/cli/{chunk-4WTC5SSN.mjs → chunk-JPDD4Y53.mjs} +10 -8
  92. package/dist/cli/{chunk-HMZF2CSP.mjs → chunk-K7NFFQFU.mjs} +2 -2
  93. package/dist/cli/{chunk-2MVIS2UI.mjs → chunk-KGLVATEB.mjs} +2 -2
  94. package/dist/cli/{chunk-3MJSWVQ2.mjs → chunk-KPBBT6OS.mjs} +2 -1
  95. package/dist/cli/{chunk-W5CHE5Q2.mjs → chunk-L3TZV625.mjs} +1 -1
  96. package/dist/cli/{chunk-GINKIZ7S.js → chunk-MJQOG4TZ.js} +16 -16
  97. package/dist/cli/{chunk-JO5FFSR7.js → chunk-NTLBZUHD.js} +6 -0
  98. package/dist/cli/{chunk-QOJBRCAS.js → chunk-PVA3MWCO.js} +3 -3
  99. package/dist/cli/{chunk-OVZOMSH2.js → chunk-QIEYEY6Z.js} +8 -8
  100. package/dist/cli/{chunk-JFUXUSKB.mjs → chunk-R2VZVHJP.mjs} +15 -2
  101. package/dist/cli/{chunk-2S2F6YSI.js → chunk-RVOBFO7C.js} +41 -41
  102. package/dist/cli/{chunk-XMKUJ44Z.js → chunk-TCQYWZFS.js} +5 -5
  103. package/dist/cli/{chunk-FWDAEWCD.js → chunk-TMQUMILM.js} +19 -23
  104. package/dist/cli/{chunk-3KEZVGGV.mjs → chunk-URZNSJE2.mjs} +4 -4
  105. package/dist/cli/{chunk-MP5QY4A2.mjs → chunk-VC5B462T.mjs} +2 -2
  106. package/dist/cli/{chunk-IL666WJE.js → chunk-WHP3FJ7T.js} +5 -5
  107. package/dist/cli/{chunk-ZNB6GR3P.mjs → chunk-WS274KID.mjs} +1 -1
  108. package/dist/cli/{chunk-Z2H7OQ6E.mjs → chunk-XYZZZLN6.mjs} +2 -2
  109. package/dist/cli/{chunk-AJL2Q6IQ.js → chunk-YXGPMTAK.js} +2 -2
  110. package/dist/cli/{chunk-2JS3H6H6.mjs → chunk-ZEQPCEV4.mjs} +3 -3
  111. package/dist/cli/command-docs.js +2 -2
  112. package/dist/cli/command-docs.mjs +1 -1
  113. package/dist/cli/{csv-6AEPKKCO.mjs → csv-2TXOI3UE.mjs} +4 -4
  114. package/dist/cli/{csv-OXGSCV75.js → csv-NEWCNOSZ.js} +13 -13
  115. package/dist/cli/{db-6NVHDUZY.js → db-J3IJS4OG.js} +27 -27
  116. package/dist/cli/{db-K3KRK4CZ.mjs → db-PX7EQEIG.mjs} +6 -6
  117. package/dist/cli/{describe-P3ZJS7TQ.mjs → describe-GQHGTZSL.mjs} +20 -20
  118. package/dist/cli/describe-LE7EZCL4.js +49 -0
  119. package/dist/cli/describe-core.d.mts +8 -4
  120. package/dist/cli/describe-core.d.ts +8 -4
  121. package/dist/cli/describe-core.js +4 -4
  122. package/dist/cli/describe-core.mjs +3 -3
  123. package/dist/cli/{executions-I7XW6WWK.mjs → executions-FFKK24RY.mjs} +6 -6
  124. package/dist/cli/{executions-2C2FFG52.js → executions-RO3TJUXL.js} +8 -8
  125. package/dist/cli/{feedback-47B57A5Y.js → feedback-XRR4HIS6.js} +8 -8
  126. package/dist/cli/{feedback-RSTNBJAI.mjs → feedback-ZTO56SRL.mjs} +4 -4
  127. package/dist/cli/git-26AH4XIO.js +25 -0
  128. package/dist/cli/{git-3G5AFKBT.mjs → git-FIPBVFYZ.mjs} +5 -5
  129. package/dist/cli/index.js +142 -142
  130. package/dist/cli/index.mjs +42 -42
  131. package/dist/cli/{legacy-noops-NQ262TKL.mjs → legacy-noops-AMD2NWHF.mjs} +5 -5
  132. package/dist/cli/{legacy-noops-P665PBG4.js → legacy-noops-MTBBGM27.js} +8 -8
  133. package/dist/cli/{monitors-KUPZODZS.mjs → monitors-24LDKDJX.mjs} +7 -7
  134. package/dist/cli/{monitors-IPWAD7LS.js → monitors-42PIGLBF.js} +95 -95
  135. package/dist/cli/{org-ZCQGEM3L.mjs → org-4B7SCFRL.mjs} +6 -6
  136. package/dist/cli/{org-WFC3N672.js → org-GQMCA3MN.js} +72 -72
  137. package/dist/cli/{pages-VE66IU7B.mjs → pages-PD5EGL2R.mjs} +6 -6
  138. package/dist/cli/{pages-N5BNC67L.js → pages-RL2M62GJ.js} +18 -18
  139. package/dist/cli/{play-EIMDIAJB.mjs → play-5V54VTUR.mjs} +132 -26
  140. package/dist/cli/{play-NKIRJSKX.js → play-FST6ZAHW.js} +447 -341
  141. package/dist/cli/{providers-XU3AGY2F.js → providers-HBUUPN7J.js} +9 -9
  142. package/dist/cli/{providers-KDTJ63ED.mjs → providers-N5YVCKPL.mjs} +6 -6
  143. package/dist/cli/{quickstart-OSCHOSXU.js → quickstart-4QIQNSHG.js} +6 -6
  144. package/dist/cli/{quickstart-TXFXUODF.mjs → quickstart-NJDDVTQR.mjs} +4 -4
  145. package/dist/cli/{run-ET2KVTPK.js → run-FGOKCG4J.js} +44 -44
  146. package/dist/cli/{run-ODGML35U.mjs → run-JHI5MTHD.mjs} +25 -25
  147. package/dist/cli/search-CTKSEVSO.js +32 -0
  148. package/dist/cli/{search-DK67K6PR.mjs → search-EWIZBIY2.mjs} +7 -7
  149. package/dist/cli/{search-output-6SOKQTCW.mjs → search-output-NAK3MWBH.mjs} +5 -5
  150. package/dist/cli/{search-output-KXP4FA62.js → search-output-TMQTRC2W.js} +7 -7
  151. package/dist/cli/{secrets-WPS6NMNK.js → secrets-5TSUEOJB.js} +15 -15
  152. package/dist/cli/{secrets-C6SYTMU7.mjs → secrets-ONQVW5SR.mjs} +6 -6
  153. package/dist/cli/{sessions-PXVOH34X.mjs → sessions-B7F5O3ZR.mjs} +5 -5
  154. package/dist/cli/{sessions-IP562J5Z.js → sessions-BSGE5EET.js} +6 -6
  155. package/dist/cli/{settings-SUDUIVMY.js → settings-47LARBRU.js} +78 -78
  156. package/dist/cli/{settings-FBUQGYVJ.mjs → settings-SGGFQV5R.mjs} +11 -11
  157. package/dist/cli/{setup-JSIMTR73.mjs → setup-ATGNXQUK.mjs} +9 -9
  158. package/dist/cli/{setup-I5H6IOEY.js → setup-BNFZFXO6.js} +49 -49
  159. package/dist/cli/skills-6RD25MVM.js +36 -0
  160. package/dist/cli/{skills-FJQ3LX6N.mjs → skills-CIMBRM5R.mjs} +7 -7
  161. package/dist/cli/{tools-IGBK4BVE.mjs → tools-DTDXAULX.mjs} +18 -18
  162. package/dist/cli/tools-TDZH4XHS.js +56 -0
  163. package/dist/cli/{update-7MTT6F5K.mjs → update-EOIJBJCO.mjs} +9 -9
  164. package/dist/cli/update-Y32VT4VL.js +34 -0
  165. package/dist/cli/{workflow-PM2J2OU3.mjs → workflow-IWXUJPWY.mjs} +7 -7
  166. package/dist/cli/{workflow-UX3ZX6BQ.js → workflow-V5VKPICQ.js} +17 -17
  167. package/dist/{client-Bn8FwKGO.d.ts → client-CIwenMFS.d.ts} +1 -1
  168. package/dist/{client-CfNRmjLK.d.mts → client-DYAfJpaN.d.mts} +1 -1
  169. package/dist/{client-core-B91EV0WS.d.ts → client-core-CRjtyMAI.d.ts} +25 -2
  170. package/dist/{client-core-BG8Cgrmk.d.mts → client-core-DlzP8vEs.d.mts} +25 -2
  171. package/dist/{compiler-manifest-DlXDyndN.d.mts → compiler-manifest-DaJrA2KV.d.mts} +1 -1
  172. package/dist/{compiler-manifest-DlXDyndN.d.ts → compiler-manifest-DaJrA2KV.d.ts} +1 -1
  173. package/dist/{errors-BtriA2ld.d.mts → errors-BKnSYueU.d.mts} +1 -1
  174. package/dist/{errors-DmcLykM7.d.ts → errors-KLga4bLr.d.ts} +1 -1
  175. package/dist/{index-DI0sR_fX.d.mts → index-C-8AFpWy.d.mts} +1 -1
  176. package/dist/{index--Jw-slHY.d.ts → index-C5nAZ-VS.d.ts} +1 -1
  177. package/dist/index.d.mts +7 -7
  178. package/dist/index.d.ts +7 -7
  179. package/dist/index.js +9 -9
  180. package/dist/index.mjs +6 -6
  181. package/dist/install-integrity.json +123 -116
  182. package/dist/plays/bundle-play-file.d.mts +3 -3
  183. package/dist/plays/bundle-play-file.d.ts +3 -3
  184. package/dist/plays/bundle-play-file.mjs +8 -1
  185. package/dist/plays/play-description.d.mts +2 -2
  186. package/dist/plays/play-description.d.ts +2 -2
  187. package/dist/plays/run-request.d.mts +2 -2
  188. package/dist/plays/run-request.d.ts +2 -2
  189. package/dist/release.d.mts +1 -1
  190. package/dist/release.d.ts +1 -1
  191. package/dist/release.js +2 -2
  192. package/dist/release.mjs +1 -1
  193. package/dist/server.d.mts +4 -4
  194. package/dist/server.d.ts +4 -4
  195. package/dist/server.js +5 -5
  196. package/dist/server.mjs +3 -3
  197. package/package.json +1 -1
  198. package/dist/cli/auth-VM3IKP5F.js +0 -43
  199. package/dist/cli/describe-JOUAXXPE.js +0 -49
  200. package/dist/cli/git-OPKIC6JQ.js +0 -25
  201. package/dist/cli/search-6U54Y3OK.js +0 -32
  202. package/dist/cli/skills-VHININXC.js +0 -36
  203. package/dist/cli/tools-XMBMHVKF.js +0 -56
  204. package/dist/cli/update-H7JVW43I.js +0 -34
@@ -3,7 +3,7 @@
3
3
  var _chunkVLEVVDWGjs = require('./chunk-VLEVVDWG.js');
4
4
 
5
5
 
6
- var _chunkUOANF3DRjs = require('./chunk-UOANF3DR.js');
6
+ var _chunkC5RQTTLPjs = require('./chunk-C5RQTTLP.js');
7
7
 
8
8
 
9
9
  var _chunkRNSHCJMEjs = require('./chunk-RNSHCJME.js');
@@ -11,7 +11,7 @@ var _chunkRNSHCJMEjs = require('./chunk-RNSHCJME.js');
11
11
 
12
12
 
13
13
 
14
- var _chunkYDXEXVBVjs = require('./chunk-YDXEXVBV.js');
14
+ var _chunkF73PD2XDjs = require('./chunk-F73PD2XD.js');
15
15
 
16
16
 
17
17
  var _chunkDIAWYWT5js = require('./chunk-DIAWYWT5.js');
@@ -458,7 +458,9 @@ var PLAY_RUN_RESERVED_BOOLEAN_FLAGS = /* @__PURE__ */ new Set([
458
458
  "--debug",
459
459
  "--full",
460
460
  "--force",
461
+ "--from-start",
461
462
  "--force-tool-refresh",
463
+ "--refresh-cache",
462
464
  "--open",
463
465
  "--debug-map-latency"
464
466
  ]);
@@ -579,7 +581,7 @@ function parseInputFlagValue(raw) {
579
581
  return raw;
580
582
  }
581
583
  function parsePlayRunOptions(args, initialInput = null) {
582
- const selection = _chunkYDXEXVBVjs.parseJsonFields.call(void 0, args, "run");
584
+ const selection = _chunkF73PD2XDjs.parseJsonFields.call(void 0, args, "run");
583
585
  args = selection.args;
584
586
  const usage = "Usage: deepline plays run <play-name> [--input '{...}'] [--run-id-file <path>] [--no-wait] [--tail-timeout-ms 30000] [--force] [--open] [--full] [--<input> value]\n deepline plays run <play-file.ts> [--input '{...}'] [--run-id-file <path>] [--no-wait] [--tail-timeout-ms 30000] [--force] [--open] [--full] [--<input> value]\n deepline plays run --file <play-file.ts> [--input '{...}'] [--profile <id>] [--run-id-file <path>] [--no-wait] [--tail-timeout-ms 30000] [--force] [--open] [--full] [--<input> value]\n deepline plays run --name <name> [--input '{...}'] [--profile <id>] [--live|--latest|--revision-id <id>] [--run-id-file <path>] [--no-wait] [--tail-timeout-ms 30000] [--force] [--open] [--json] [--full] [--<input> value]\n Runs use the Absurd CJS runtime.\n --header '<name>: <value>' may repeat; each is sent on every request for this run.\n Unknown --<input> value flags, such as --limit 5, are passed into play input.\nRun `deepline plays run --help` for idempotent call caching and deepline.dataset guidance.";
585
587
  let filePath = null;
@@ -591,10 +593,10 @@ function parsePlayRunOptions(args, initialInput = null) {
591
593
  let revisionSelector = null;
592
594
  const watch = !args.includes("--no-wait");
593
595
  const dryRun = args.includes("--dry-run");
594
- let jsonOutput = dryRun ? _chunkYDXEXVBVjs.argsWantJson.call(void 0, args) : watch ? args.includes("--json") : _chunkYDXEXVBVjs.argsWantJson.call(void 0, args);
596
+ let jsonOutput = dryRun ? _chunkF73PD2XDjs.argsWantJson.call(void 0, args) : watch ? args.includes("--json") : _chunkF73PD2XDjs.argsWantJson.call(void 0, args);
595
597
  const fullJson = args.includes("--full");
596
- const force = args.includes("--force");
597
- const forceToolRefresh = args.includes("--force-tool-refresh");
598
+ const force = args.includes("--force") || args.includes("--from-start");
599
+ const forceToolRefresh = args.includes("--force-tool-refresh") || args.includes("--refresh-cache");
598
600
  const open = args.includes("--open");
599
601
  const debugMapLatency = args.includes("--debug-map-latency");
600
602
  let logLevel = "info";
@@ -654,7 +656,7 @@ function parsePlayRunOptions(args, initialInput = null) {
654
656
  "--log-level requires one of: debug, info, warn, error."
655
657
  );
656
658
  }
657
- const parsed = _chunkUOANF3DRjs.parseLogLevel.call(void 0, value);
659
+ const parsed = _chunkC5RQTTLPjs.parseLogLevel.call(void 0, value);
658
660
  if (!parsed) {
659
661
  throw new Error(
660
662
  `Unsupported --log-level ${JSON.stringify(value)}. Use debug, info, warn, or error.`
@@ -972,7 +974,7 @@ function resolvePlayRunCliOptions(target, options, inputArgs = [], maintenancePo
972
974
  const hasExplicitLogLevel = options.logLevel !== void 0 || inputArgs.some(
973
975
  (arg) => arg === "--log-level" || arg.startsWith("--log-level=")
974
976
  );
975
- let logLevel = options.logLevel === void 0 ? base.logLevel : _chunkUOANF3DRjs.parseLogLevel.call(void 0, options.logLevel);
977
+ let logLevel = options.logLevel === void 0 ? base.logLevel : _chunkC5RQTTLPjs.parseLogLevel.call(void 0, options.logLevel);
976
978
  if (!logLevel)
977
979
  throw new Error("--log-level requires one of: debug, info, warn, error.");
978
980
  const debugAlias = options.logs || options.debug === true || inputArgs.some(
@@ -986,13 +988,13 @@ function resolvePlayRunCliOptions(target, options, inputArgs = [], maintenancePo
986
988
  if (debugAlias || debugMapLatency && logLevel === "info")
987
989
  logLevel = "debug";
988
990
  const fullJson = _nullishCoalesce(options.full, () => ( base.fullJson));
989
- const jsonFields = options.json === void 0 ? base.jsonFields : _chunkYDXEXVBVjs.parseJsonFields.call(void 0,
990
- [...fullJson ? ["--full"] : [], ..._chunkYDXEXVBVjs.jsonFieldArgs.call(void 0, options.json)],
991
+ const jsonFields = options.json === void 0 ? base.jsonFields : _chunkF73PD2XDjs.parseJsonFields.call(void 0,
992
+ [...fullJson ? ["--full"] : [], ..._chunkF73PD2XDjs.jsonFieldArgs.call(void 0, options.json)],
991
993
  "run"
992
994
  ).fields;
993
995
  const watch = options.wait === false ? false : base.watch;
994
996
  const explicitJson = options.json !== void 0 ? options.json !== false : base.jsonOutput;
995
- const jsonOutput = dryRun || !watch ? explicitJson || _chunkYDXEXVBVjs.argsWantJson.call(void 0, []) : explicitJson;
997
+ const jsonOutput = dryRun || !watch ? explicitJson || _chunkF73PD2XDjs.argsWantJson.call(void 0, []) : explicitJson;
996
998
  const verboseLogs = Boolean(
997
999
  debugAlias || logLevel === "debug" || debugMapLatency
998
1000
  );
@@ -1017,8 +1019,10 @@ function resolvePlayRunCliOptions(target, options, inputArgs = [], maintenancePo
1017
1019
  fullJson,
1018
1020
  jsonFields,
1019
1021
  waitTimeoutMs,
1020
- force: _nullishCoalesce(options.force, () => ( base.force)),
1021
- forceToolRefresh: _nullishCoalesce(options.forceToolRefresh, () => ( base.forceToolRefresh)),
1022
+ // The new names are aliases: an explicit legacy value still wins, exactly
1023
+ // as before, and an unset option inherits the base run's choice.
1024
+ force: _nullishCoalesce(_nullishCoalesce(options.force, () => ( (options.fromStart || void 0))), () => ( base.force)),
1025
+ forceToolRefresh: _nullishCoalesce(_nullishCoalesce(options.forceToolRefresh, () => ( (options.refreshCache || void 0))), () => ( base.forceToolRefresh)),
1022
1026
  maxConcurrentExternalCalls: externalCalls,
1023
1027
  maxConcurrentRows: rows,
1024
1028
  maxCredits,
@@ -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 _chunkQOJBRCASjs = require('./chunk-QOJBRCAS.js');
3
+ var _chunkPVA3MWCOjs = require('./chunk-PVA3MWCO.js');
4
4
 
5
5
 
6
6
 
@@ -12,7 +12,7 @@ var _chunkQOJBRCASjs = require('./chunk-QOJBRCAS.js');
12
12
 
13
13
 
14
14
 
15
- var _chunkJLYDLK6Xjs = require('./chunk-JLYDLK6X.js');
15
+ var _chunkHS63YBT5js = require('./chunk-HS63YBT5.js');
16
16
 
17
17
 
18
18
 
@@ -20,13 +20,13 @@ var _chunkJLYDLK6Xjs = require('./chunk-JLYDLK6X.js');
20
20
 
21
21
 
22
22
 
23
- var _chunkEUWRKWT4js = require('./chunk-EUWRKWT4.js');
23
+ var _chunkFIUTDSJXjs = require('./chunk-FIUTDSJX.js');
24
24
 
25
25
 
26
26
  var _chunkDIAWYWT5js = require('./chunk-DIAWYWT5.js');
27
27
 
28
28
 
29
- var _chunkLA3UYRVZjs = require('./chunk-LA3UYRVZ.js');
29
+ var _chunkIIP46RVCjs = require('./chunk-IIP46RVC.js');
30
30
 
31
31
  // src/compat.ts
32
32
  var _crypto = require('crypto');
@@ -61,7 +61,7 @@ function shouldSkipCompatibilityCheck() {
61
61
  return value === "1" || value === "true" || value === "yes";
62
62
  }
63
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, )) {
64
- return _path.join.call(void 0, _chunkJLYDLK6Xjs.sdkCliStateDirPath.call(void 0, baseUrl, homeDir), "compat-cache.json");
64
+ return _path.join.call(void 0, _chunkHS63YBT5js.sdkCliStateDirPath.call(void 0, baseUrl, homeDir), "compat-cache.json");
65
65
  }
66
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, )) {
67
67
  return _path.join.call(void 0, homeDir, ".cache", "deepline", "sdk-compat-cache.json");
@@ -69,9 +69,9 @@ function legacySdkCompatibilityCachePath(homeDir = _optionalChain([process, 'acc
69
69
  function compatibilityCacheKey(baseUrl, command, skillsVersion) {
70
70
  return JSON.stringify({
71
71
  baseUrl: baseUrl.replace(/\/$/, ""),
72
- version: _chunkEUWRKWT4js.SDK_VERSION,
73
- apiContract: _chunkEUWRKWT4js.SDK_API_CONTRACT,
74
- apiMajor: _chunkEUWRKWT4js.SDK_API_MAJOR,
72
+ version: _chunkFIUTDSJXjs.SDK_VERSION,
73
+ apiContract: _chunkFIUTDSJXjs.SDK_API_CONTRACT,
74
+ apiMajor: _chunkFIUTDSJXjs.SDK_API_MAJOR,
75
75
  command: _optionalChain([command, 'optionalAccess', _15 => _15.trim, 'call', _16 => _16()]) || null,
76
76
  skillsVersion: _nullishCoalesce(skillsVersion, () => ( null))
77
77
  });
@@ -79,8 +79,8 @@ function compatibilityCacheKey(baseUrl, command, skillsVersion) {
79
79
  function legacyCompatibilityCacheKey(baseUrl, command) {
80
80
  return JSON.stringify({
81
81
  baseUrl: baseUrl.replace(/\/$/, ""),
82
- version: _chunkEUWRKWT4js.SDK_VERSION,
83
- apiContract: _chunkEUWRKWT4js.SDK_API_CONTRACT,
82
+ version: _chunkFIUTDSJXjs.SDK_VERSION,
83
+ apiContract: _chunkFIUTDSJXjs.SDK_API_CONTRACT,
84
84
  command: _optionalChain([command, 'optionalAccess', _17 => _17.trim, 'call', _18 => _18()]) || null
85
85
  });
86
86
  }
@@ -105,7 +105,7 @@ function isSavedWithin(savedAt, windowMs, now) {
105
105
  }
106
106
  var UPDATE_ADVISORY_INTERVAL_MS = 24 * 60 * 60 * 1e3;
107
107
  function claimUpdateAdvisory(baseUrl, now = Date.now()) {
108
- const path = _path.join.call(void 0, _chunkJLYDLK6Xjs.sdkCliStateDirPath.call(void 0, baseUrl), "update-advisory.json");
108
+ const path = _path.join.call(void 0, _chunkHS63YBT5js.sdkCliStateDirPath.call(void 0, baseUrl), "update-advisory.json");
109
109
  try {
110
110
  const { shownAt } = JSON.parse(_fs.readFileSync.call(void 0, path, "utf8"));
111
111
  if (isSavedWithin(shownAt, UPDATE_ADVISORY_INTERVAL_MS, now)) return false;
@@ -192,7 +192,7 @@ async function checkSdkCompatibility(baseUrl, options = {}) {
192
192
  );
193
193
  try {
194
194
  const url = new URL("/api/v2/sdk/compat", baseUrl);
195
- url.searchParams.set("version", _chunkEUWRKWT4js.SDK_VERSION);
195
+ url.searchParams.set("version", _chunkFIUTDSJXjs.SDK_VERSION);
196
196
  if (_optionalChain([options, 'access', _34 => _34.command, 'optionalAccess', _35 => _35.trim, 'call', _36 => _36()])) {
197
197
  url.searchParams.set("command", options.command.trim());
198
198
  }
@@ -200,7 +200,7 @@ async function checkSdkCompatibility(baseUrl, options = {}) {
200
200
  url.searchParams.set("skills_version", _nullishCoalesce(options.skillsVersion, () => ( "")));
201
201
  url.searchParams.set(
202
202
  "skills_cli_capability",
203
- String(_chunkLA3UYRVZjs.SDK_RELEASE.packageCapabilities.skillsGuidance)
203
+ String(_chunkIIP46RVCjs.SDK_RELEASE.packageCapabilities.skillsGuidance)
204
204
  );
205
205
  }
206
206
  if (options.catalog) {
@@ -212,14 +212,14 @@ async function checkSdkCompatibility(baseUrl, options = {}) {
212
212
  const response = await fetch(url, {
213
213
  method: "GET",
214
214
  headers: {
215
- ..._chunkEUWRKWT4js.deploymentProtectionHeaders.call(void 0, ),
216
- "User-Agent": `deepline-ts-sdk/${_chunkEUWRKWT4js.SDK_VERSION}`,
217
- "X-Deepline-SDK-Version": _chunkEUWRKWT4js.SDK_VERSION,
218
- "X-Deepline-API-Major": String(_chunkEUWRKWT4js.SDK_API_MAJOR),
219
- "X-Deepline-API-Contract": _chunkEUWRKWT4js.SDK_API_CONTRACT,
215
+ ..._chunkFIUTDSJXjs.deploymentProtectionHeaders.call(void 0, ),
216
+ "User-Agent": `deepline-ts-sdk/${_chunkFIUTDSJXjs.SDK_VERSION}`,
217
+ "X-Deepline-SDK-Version": _chunkFIUTDSJXjs.SDK_VERSION,
218
+ "X-Deepline-API-Major": String(_chunkFIUTDSJXjs.SDK_API_MAJOR),
219
+ "X-Deepline-API-Contract": _chunkFIUTDSJXjs.SDK_API_CONTRACT,
220
220
  "X-Deepline-CLI-Update-Preferences": "1",
221
221
  "X-Deepline-CLI-Auto-Update-Capability": SDK_CLI_AUTO_UPDATE_CAPABILITY,
222
- ...options.catalog ? { Authorization: `Bearer ${_chunkJLYDLK6Xjs.resolveApiKeyForBaseUrl.call(void 0, baseUrl)}` } : {},
222
+ ...options.catalog ? { Authorization: `Bearer ${_chunkHS63YBT5js.resolveApiKeyForBaseUrl.call(void 0, baseUrl)}` } : {},
223
223
  ..._optionalChain([options, 'access', _37 => _37.catalog, 'optionalAccess', _38 => _38.cliInvocationId]) ? { "X-Deepline-CLI-Invocation-ID": options.catalog.cliInvocationId } : {}
224
224
  },
225
225
  signal: controller.signal
@@ -432,7 +432,7 @@ function buildEnvironmentContext() {
432
432
  node_version: process.version,
433
433
  runtime: "Node.js",
434
434
  hostname: _os.hostname.call(void 0, ),
435
- agent_runtime: _chunkEUWRKWT4js.detectAgentRuntime.call(void 0, )
435
+ agent_runtime: _chunkFIUTDSJXjs.detectAgentRuntime.call(void 0, )
436
436
  };
437
437
  for (const key of ["CLAUDE_CODE_REMOTE", "DEEPLINE_PLUGIN_MODE"]) {
438
438
  const normalized = _optionalChain([process, 'access', _57 => _57.env, 'access', _58 => _58[key], 'optionalAccess', _59 => _59.trim, 'call', _60 => _60()]);
@@ -453,18 +453,18 @@ function buildEnvironmentContext() {
453
453
  return context;
454
454
  }
455
455
  function failureReportHeaders(apiKey) {
456
- const agentSessionId = _chunkEUWRKWT4js.agentSessionIdFromEnvironment.call(void 0, );
456
+ const agentSessionId = _chunkFIUTDSJXjs.agentSessionIdFromEnvironment.call(void 0, );
457
457
  return {
458
- ..._chunkEUWRKWT4js.deploymentProtectionHeaders.call(void 0, ),
458
+ ..._chunkFIUTDSJXjs.deploymentProtectionHeaders.call(void 0, ),
459
459
  ...agentSessionId ? { "X-Deepline-Agent-Session-Id": agentSessionId } : {},
460
460
  Authorization: `Bearer ${apiKey}`,
461
461
  "Content-Type": "application/json",
462
- "User-Agent": `deepline-ts-sdk/${_chunkEUWRKWT4js.SDK_VERSION}`,
462
+ "User-Agent": `deepline-ts-sdk/${_chunkFIUTDSJXjs.SDK_VERSION}`,
463
463
  "X-Deepline-Client-Family": "sdk",
464
464
  "X-Deepline-CLI-Family": "sdk",
465
- "X-Deepline-Agent-Runtime": _chunkEUWRKWT4js.detectAgentRuntime.call(void 0, ),
466
- "X-Deepline-CLI-Version": _chunkEUWRKWT4js.SDK_VERSION,
467
- "X-Deepline-SDK-Version": _chunkEUWRKWT4js.SDK_VERSION
465
+ "X-Deepline-Agent-Runtime": _chunkFIUTDSJXjs.detectAgentRuntime.call(void 0, ),
466
+ "X-Deepline-CLI-Version": _chunkFIUTDSJXjs.SDK_VERSION,
467
+ "X-Deepline-SDK-Version": _chunkFIUTDSJXjs.SDK_VERSION
468
468
  };
469
469
  }
470
470
  async function postFailureReport(input) {
@@ -492,7 +492,7 @@ async function maybeReportAutomaticSkillsSyncFailure(input) {
492
492
  if (isFailureReportingDisabled()) return false;
493
493
  let apiKey = "";
494
494
  try {
495
- apiKey = _chunkJLYDLK6Xjs.resolveApiKeyForBaseUrl.call(void 0, input.baseUrl);
495
+ apiKey = _chunkHS63YBT5js.resolveApiKeyForBaseUrl.call(void 0, input.baseUrl);
496
496
  } catch (e8) {
497
497
  return false;
498
498
  }
@@ -519,7 +519,7 @@ async function maybeReportAutomaticSkillsSyncFailure(input) {
519
519
  failure_code: failureCode2,
520
520
  failure_stage: failureStage,
521
521
  error_body: "Automatic Deepline skills installation failed.",
522
- cli_version: _chunkEUWRKWT4js.SDK_VERSION,
522
+ cli_version: _chunkFIUTDSJXjs.SDK_VERSION,
523
523
  context: {
524
524
  environment: buildEnvironmentContext(),
525
525
  skills_sync: {
@@ -639,7 +639,7 @@ function buildFailureReport(input) {
639
639
  failure_kind: failureKind,
640
640
  failure_code: code,
641
641
  failure_stage: input.error === void 0 ? "command_exit" : "cli_main",
642
- cli_version: _chunkEUWRKWT4js.SDK_VERSION,
642
+ cli_version: _chunkFIUTDSJXjs.SDK_VERSION,
643
643
  context: {
644
644
  base_url: redactFailureText(input.baseUrl, 400),
645
645
  command_summary: sanitizeCommand(input.argv),
@@ -659,8 +659,8 @@ async function maybeReportSdkCliFailure(input) {
659
659
  if (isServerLoggedPlayRunStartFailure(input)) return false;
660
660
  const exitCode = resolvedExitCode(input);
661
661
  if (!shouldReport({ exitCode, error: input.error })) return false;
662
- const baseUrl = _chunkJLYDLK6Xjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
663
- const apiKey = _chunkJLYDLK6Xjs.resolveApiKeyForBaseUrl.call(void 0, baseUrl);
662
+ const baseUrl = _chunkHS63YBT5js.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
663
+ const apiKey = _chunkHS63YBT5js.resolveApiKeyForBaseUrl.call(void 0, baseUrl);
664
664
  if (!apiKey) return false;
665
665
  return postFailureReport({
666
666
  baseUrl,
@@ -770,7 +770,7 @@ function skillsSourceUrl(baseUrl) {
770
770
  function buildSkillsAddArgs(baseUrl, skillName, options = {}) {
771
771
  const skillNames = Array.isArray(skillName) ? skillName : [skillName];
772
772
  const [firstSkillName, ...extraSkillNames] = skillNames;
773
- const agents = _nullishCoalesce(options.agents, () => ( _chunkJLYDLK6Xjs.DEFAULT_SKILL_AGENTS));
773
+ const agents = _nullishCoalesce(options.agents, () => ( _chunkHS63YBT5js.DEFAULT_SKILL_AGENTS));
774
774
  const values = {
775
775
  skills_index_url: skillsIndexUrl(baseUrl),
776
776
  skills_source_url: skillsSourceUrl(baseUrl),
@@ -872,25 +872,25 @@ var CHECK_TIMEOUT_MS2 = 3e3;
872
872
  var INSTALLER_PROBE_TIMEOUT_MS = 1e3;
873
873
  var PUBLISHED_VERIFICATION_RETRY_MS = 5 * 6e4;
874
874
  function shouldSkipSkillsSync() {
875
- if (_chunkEUWRKWT4js.detectAgentRuntime.call(void 0, ) === "claude_cowork" || isCiEnvironment()) {
875
+ if (_chunkFIUTDSJXjs.detectAgentRuntime.call(void 0, ) === "claude_cowork" || isCiEnvironment()) {
876
876
  return true;
877
877
  }
878
878
  const value = _optionalChain([process, 'access', _81 => _81.env, 'access', _82 => _82.DEEPLINE_SKIP_SKILLS_SYNC, 'optionalAccess', _83 => _83.trim, 'call', _84 => _84(), 'access', _85 => _85.toLowerCase, 'call', _86 => _86()]);
879
879
  return value === "1" || value === "true" || value === "yes" || value === "on";
880
880
  }
881
881
  function unavailableSkillsNoticePath(baseUrl) {
882
- return _path.join.call(void 0, _chunkJLYDLK6Xjs.sdkCliStateDirPath.call(void 0, baseUrl), "skills-sync-unavailable-version");
882
+ return _path.join.call(void 0, _chunkHS63YBT5js.sdkCliStateDirPath.call(void 0, baseUrl), "skills-sync-unavailable-version");
883
883
  }
884
884
  var SKILLS_SYNC_IN_PROGRESS_TTL_MS = 10 * 60 * 1e3;
885
885
  var SKILLS_SYNC_IN_PROGRESS_PID_CAP_MS = 6 * 60 * 60 * 1e3;
886
- var agentLeaseSegment = _chunkJLYDLK6Xjs.skillsAgentPathSegment;
886
+ var agentLeaseSegment = _chunkHS63YBT5js.skillsAgentPathSegment;
887
887
  function sortedLeaseAgents(agents) {
888
- const expanded = agents.includes("*") ? [...agents, ..._chunkJLYDLK6Xjs.KNOWN_SKILL_AGENTS] : agents;
888
+ const expanded = agents.includes("*") ? [...agents, ..._chunkHS63YBT5js.KNOWN_SKILL_AGENTS] : agents;
889
889
  return [...new Set(expanded)].sort((a, b) => a.localeCompare(b));
890
890
  }
891
891
  function inProgressSkillsSyncPath(baseUrl, agent) {
892
892
  return _path.join.call(void 0,
893
- _chunkJLYDLK6Xjs.sdkCliStateDirPath.call(void 0, baseUrl),
893
+ _chunkHS63YBT5js.sdkCliStateDirPath.call(void 0, baseUrl),
894
894
  `skills-sync-in-progress-${agentLeaseSegment(agent)}`
895
895
  );
896
896
  }
@@ -1049,7 +1049,7 @@ var SkillsStateUnavailableError = class extends Error {
1049
1049
  constructor(baseUrl, error) {
1050
1050
  const detail = error instanceof Error ? error.message : String(error);
1051
1051
  super(
1052
- `Could not save skills state in ${_chunkJLYDLK6Xjs.sdkCliStateDirPath.call(void 0, baseUrl)}: ${detail}`
1052
+ `Could not save skills state in ${_chunkHS63YBT5js.sdkCliStateDirPath.call(void 0, baseUrl)}: ${detail}`
1053
1053
  );
1054
1054
  this.name = "SkillsStateUnavailableError";
1055
1055
  }
@@ -1134,7 +1134,7 @@ function skillsInstallLeasePath(baseUrl, agents) {
1134
1134
  }
1135
1135
  function deferredSkillsNoticePath(baseUrl, agents) {
1136
1136
  return _path.join.call(void 0,
1137
- _chunkJLYDLK6Xjs.sdkCliStateDirPath.call(void 0, baseUrl),
1137
+ _chunkHS63YBT5js.sdkCliStateDirPath.call(void 0, baseUrl),
1138
1138
  `skills-sync-notice-${sortedLeaseAgents(agents).map(agentLeaseSegment).join("-")}`
1139
1139
  );
1140
1140
  }
@@ -1168,8 +1168,8 @@ function flushDeferredSkillsNotices(baseUrl, agents) {
1168
1168
  if (text.trim()) writeSdkSkillsStatusLine(text.trimEnd());
1169
1169
  }
1170
1170
  function flushDeferredSkillsSyncNotices(baseUrl) {
1171
- if (shouldSkipSkillsSync() || _chunkJLYDLK6Xjs.hasActivePluginSkills.call(void 0, )) return;
1172
- const agents = _chunkJLYDLK6Xjs.resolveAutoSyncSkillAgents.call(void 0, );
1171
+ if (shouldSkipSkillsSync() || _chunkHS63YBT5js.hasActivePluginSkills.call(void 0, )) return;
1172
+ const agents = _chunkHS63YBT5js.resolveAutoSyncSkillAgents.call(void 0, );
1173
1173
  if (agents.length === 0) return;
1174
1174
  flushDeferredSkillsNotices(baseUrl, agents);
1175
1175
  }
@@ -1185,7 +1185,7 @@ function spawnDetachedSkillsSyncChild(argv, onSpawnError) {
1185
1185
  }
1186
1186
  function failedSkillsSyncPath(baseUrl, agents) {
1187
1187
  return _path.join.call(void 0,
1188
- _chunkJLYDLK6Xjs.sdkCliStateDirPath.call(void 0, baseUrl),
1188
+ _chunkHS63YBT5js.sdkCliStateDirPath.call(void 0, baseUrl),
1189
1189
  `skills-sync-failed-${sortedLeaseAgents(agents).map(agentLeaseSegment).join("-")}-version`
1190
1190
  );
1191
1191
  }
@@ -1214,7 +1214,7 @@ function writeUnavailableSkillsNotice(baseUrl, remoteVersion, skillNames, reason
1214
1214
  if (hasMarkedSkillsSyncVersion(path, remoteVersion)) return;
1215
1215
  writeMarkedSkillsSyncVersion(path, remoteVersion);
1216
1216
  const probes = reason === "no-installer" ? _nullishCoalesce(knownProbes, () => ( probeInstallers())) : null;
1217
- const manualCommand = _optionalChain([probes, 'optionalAccess', _90 => _90.npx]) === "missing" && probes.bunx !== "missing" ? `bunx ${buildBunxSkillsInstallArgs(baseUrl, skillNames, _chunkJLYDLK6Xjs.DEFAULT_SKILL_AGENTS).map(shellQuote).join(" ")}` : `npx ${buildSkillsInstallArgs(baseUrl, skillNames).join(" ")}`;
1217
+ const manualCommand = _optionalChain([probes, 'optionalAccess', _90 => _90.npx]) === "missing" && probes.bunx !== "missing" ? `bunx ${buildBunxSkillsInstallArgs(baseUrl, skillNames, _chunkHS63YBT5js.DEFAULT_SKILL_AGENTS).map(shellQuote).join(" ")}` : `npx ${buildSkillsInstallArgs(baseUrl, skillNames).join(" ")}`;
1218
1218
  const explanation = reason === "unsupported-agent" ? "the detected agent has no automatic skills sync target. Automatic sync was skipped." : _optionalChain([probes, 'optionalAccess', _91 => _91.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.`;
1219
1219
  notice(
1220
1220
  `Deepline agent skills are out of date, but ${explanation} To install manually, run:
@@ -1302,7 +1302,7 @@ function buildSdkSkillNames(v1SkillNames2) {
1302
1302
  return sortedUniqueSkillNames(v1SkillNames2);
1303
1303
  }
1304
1304
  function isDefaultAgentSet(agents) {
1305
- return agents.length === _chunkJLYDLK6Xjs.DEFAULT_SKILL_AGENTS.length && agents.every((agent, index) => agent === _chunkJLYDLK6Xjs.DEFAULT_SKILL_AGENTS[index]);
1305
+ return agents.length === _chunkHS63YBT5js.DEFAULT_SKILL_AGENTS.length && agents.every((agent, index) => agent === _chunkHS63YBT5js.DEFAULT_SKILL_AGENTS[index]);
1306
1306
  }
1307
1307
  function safeSkillFilePath(value) {
1308
1308
  if (typeof value !== "string" || !value) return false;
@@ -1459,10 +1459,10 @@ async function fetchSkillsUpdate(baseUrl, localVersion) {
1459
1459
  method: "POST",
1460
1460
  headers: { "Content-Type": "application/json" },
1461
1461
  body: JSON.stringify({
1462
- sdk_cli: { version: _chunkEUWRKWT4js.SDK_VERSION },
1462
+ sdk_cli: { version: _chunkFIUTDSJXjs.SDK_VERSION },
1463
1463
  skills: {
1464
1464
  version: localVersion,
1465
- capability: _chunkLA3UYRVZjs.SDK_RELEASE.packageCapabilities.skillsGuidance
1465
+ capability: _chunkIIP46RVCjs.SDK_RELEASE.packageCapabilities.skillsGuidance
1466
1466
  }
1467
1467
  }),
1468
1468
  signal: controller.signal
@@ -1501,7 +1501,7 @@ function probeInstallers(timeoutMs) {
1501
1501
  }
1502
1502
  function noInstallerProbePath(baseUrl) {
1503
1503
  return _path.join.call(void 0,
1504
- _chunkJLYDLK6Xjs.sdkCliStateDirPath.call(void 0, baseUrl),
1504
+ _chunkHS63YBT5js.sdkCliStateDirPath.call(void 0, baseUrl),
1505
1505
  "skills-sync-no-installer-unknown.json"
1506
1506
  );
1507
1507
  }
@@ -1580,7 +1580,7 @@ function temporarySkillsSyncSkipCommand() {
1580
1580
  function resolveSkillsInstallSpawn(install, platform2 = process.platform) {
1581
1581
  return resolveShellSpawn(install.command, install.args, platform2);
1582
1582
  }
1583
- function resolveSkillsInstallCommands(baseUrl, skillNames = DEFAULT_SDK_SKILL_NAMES, agents = _chunkJLYDLK6Xjs.DEFAULT_SKILL_AGENTS, knownProbes) {
1583
+ function resolveSkillsInstallCommands(baseUrl, skillNames = DEFAULT_SDK_SKILL_NAMES, agents = _chunkHS63YBT5js.DEFAULT_SKILL_AGENTS, knownProbes) {
1584
1584
  const commands = [];
1585
1585
  const probes = _nullishCoalesce(knownProbes, () => ( probeInstallers()));
1586
1586
  if (probes.bunx === "available") {
@@ -1722,7 +1722,7 @@ function runLegacySkillsCleanup(agents) {
1722
1722
  }
1723
1723
  }
1724
1724
  function writeSdkSkillsStatusLine(line) {
1725
- const progress = _chunkQOJBRCASjs.getActiveCliProgress.call(void 0, );
1725
+ const progress = _chunkPVA3MWCOjs.getActiveCliProgress.call(void 0, );
1726
1726
  if (progress) {
1727
1727
  progress.writeLine(line);
1728
1728
  return;
@@ -1732,11 +1732,11 @@ function writeSdkSkillsStatusLine(line) {
1732
1732
  }
1733
1733
  async function syncSdkSkillsIfNeeded(baseUrl, options = {}) {
1734
1734
  if (shouldSkipSkillsSync()) return;
1735
- const usingPluginSkills = _chunkJLYDLK6Xjs.hasActivePluginSkills.call(void 0, );
1735
+ const usingPluginSkills = _chunkHS63YBT5js.hasActivePluginSkills.call(void 0, );
1736
1736
  if (usingPluginSkills) {
1737
1737
  return;
1738
1738
  }
1739
- const agents = _chunkJLYDLK6Xjs.resolveAutoSyncSkillAgents.call(void 0, );
1739
+ const agents = _chunkHS63YBT5js.resolveAutoSyncSkillAgents.call(void 0, );
1740
1740
  if (options.mode === "detached" && agents.length > 0) {
1741
1741
  flushDeferredSkillsNotices(baseUrl, agents);
1742
1742
  }
@@ -1764,7 +1764,7 @@ async function syncSdkSkillsIfNeeded(baseUrl, options = {}) {
1764
1764
  return;
1765
1765
  }
1766
1766
  try {
1767
- const localVersion = _chunkJLYDLK6Xjs.readSdkSkillsLocalVersion.call(void 0, baseUrl);
1767
+ const localVersion = _chunkHS63YBT5js.readSdkSkillsLocalVersion.call(void 0, baseUrl);
1768
1768
  const update = options.update === void 0 ? claimedVersion ? { needsUpdate: true, remoteVersion: claimedVersion } : await fetchSkillsUpdate(baseUrl, localVersion) : options.update ? {
1769
1769
  needsUpdate: options.update.needs_update,
1770
1770
  remoteVersion: options.update.remote.version
@@ -1930,7 +1930,7 @@ async function runInlineSkillsSync(baseUrl, remoteVersion, agents, notices) {
1930
1930
  }
1931
1931
  }
1932
1932
  runLegacySkillsCleanup(agents);
1933
- if (!_chunkJLYDLK6Xjs.writeSdkSkillsLocalVersion.call(void 0, baseUrl, update.remoteVersion, agents)) {
1933
+ if (!_chunkHS63YBT5js.writeSdkSkillsLocalVersion.call(void 0, baseUrl, update.remoteVersion, agents)) {
1934
1934
  notice(
1935
1935
  "Deepline agent skills installed, but the local skills version could not be recorded. A later command will retry the refresh."
1936
1936
  );
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  getActiveCliProgress
3
- } from "./chunk-NKLM4J4X.mjs";
3
+ } from "./chunk-GIHNEYBG.mjs";
4
4
  import {
5
5
  DEFAULT_SKILL_AGENTS,
6
6
  KNOWN_SKILL_AGENTS,
@@ -12,7 +12,7 @@ import {
12
12
  sdkCliStateDirPath,
13
13
  skillsAgentPathSegment,
14
14
  writeSdkSkillsLocalVersion
15
- } from "./chunk-W5CHE5Q2.mjs";
15
+ } from "./chunk-L3TZV625.mjs";
16
16
  import {
17
17
  SDK_API_CONTRACT,
18
18
  SDK_API_MAJOR,
@@ -20,13 +20,13 @@ import {
20
20
  agentSessionIdFromEnvironment,
21
21
  deploymentProtectionHeaders,
22
22
  detectAgentRuntime
23
- } from "./chunk-3MJSWVQ2.mjs";
23
+ } from "./chunk-KPBBT6OS.mjs";
24
24
  import {
25
25
  DeeplineError
26
26
  } from "./chunk-HBL4PM5Q.mjs";
27
27
  import {
28
28
  SDK_RELEASE
29
- } from "./chunk-OFBLT2LQ.mjs";
29
+ } from "./chunk-7HEDCIR3.mjs";
30
30
 
31
31
  // src/compat.ts
32
32
  import { randomUUID } from "crypto";
@@ -2,7 +2,7 @@
2
2
 
3
3
 
4
4
 
5
- var _chunkJO5FFSR7js = require('./chunk-JO5FFSR7.js');
5
+ var _chunkNTLBZUHDjs = require('./chunk-NTLBZUHD.js');
6
6
 
7
7
 
8
8
  var _chunkJ33TSWO5js = require('./chunk-J33TSWO5.js');
@@ -280,7 +280,7 @@ function extractorValueType(name) {
280
280
  }
281
281
  const named = NAMED_VALUE_SHAPES[definition.valueKind];
282
282
  if (!named) return { type: "string" };
283
- const { type, fields } = _chunkJO5FFSR7js.schemaField.call(void 0, name, named.schema, true);
283
+ const { type, fields } = _chunkNTLBZUHDjs.schemaField.call(void 0, name, named.schema, true);
284
284
  return { type, ...fields ? { fields } : {}, shape: named.shape };
285
285
  }
286
286
  function jsonSchemaOf(wrapper) {
@@ -317,7 +317,7 @@ function describedTool(tool, requestedToolId) {
317
317
  description,
318
318
  cost: stringField(recordField(tool, "pricing"), "displayText") || void 0,
319
319
  guidance: [],
320
- inputs: _chunkJO5FFSR7js.schemaFields.call(void 0,
320
+ inputs: _chunkNTLBZUHDjs.schemaFields.call(void 0,
321
321
  recordField(tool, "payload_schema", "payloadSchema")
322
322
  ),
323
323
  outputs: [],
@@ -354,7 +354,7 @@ function describedTool(tool, requestedToolId) {
354
354
  (path) => path.replace(/^toolResponse\.raw\./, "")
355
355
  );
356
356
  const node = roots.flatMap((root) => paths.map((path) => schemaNodeAt(root, path))).find(isRecord);
357
- const { fields, ...typed } = _chunkJO5FFSR7js.schemaField.call(void 0, name, node, true);
357
+ const { fields, ...typed } = _chunkNTLBZUHDjs.schemaField.call(void 0, name, node, true);
358
358
  const valueType = stringField(_nullishCoalesce(details.get(name), () => ( {})), "valueType");
359
359
  const deepline = kind === "extractedValues" ? extractorValueType(name) : void 0;
360
360
  const known = typed.type !== "unknown" ? void 0 : kind === "extractedLists" ? { type: "object[]" } : deepline;
@@ -395,9 +395,18 @@ function describedTool(tool, requestedToolId) {
395
395
  };
396
396
  });
397
397
  const playReference = isPlayLikeTool(tool) ? playReferenceForTool(tool) : null;
398
+ const { byok } = tool;
399
+ const credentialStatus = stringField(
400
+ tool,
401
+ "credentialStatus",
402
+ "credential_status"
403
+ );
404
+ const provider = stringField(tool, "provider");
405
+ const connectCommand = credentialStatus === "requires_connection" && (!byok || byok.setupUrl) && /^[a-z0-9][a-z0-9_-]*$/.test(provider) ? `deepline tools connect ${provider} --link --json` : void 0;
398
406
  return {
399
407
  kind: "tool",
400
408
  id: String(contract.toolId),
409
+ ...provider ? { provider } : {},
401
410
  displayName,
402
411
  description,
403
412
  cost: [
@@ -414,13 +423,17 @@ function describedTool(tool, requestedToolId) {
414
423
  ],
415
424
  rateLimit: withPlanRateLimit(
416
425
  recordField(recordField(tool, "pricing"), "benefit").requestsPerMinute,
417
- _chunkJO5FFSR7js.rateLimitSummary.call(void 0,
426
+ _chunkNTLBZUHDjs.rateLimitSummary.call(void 0,
418
427
  recordField(contract, "executionMetadata").configuredRateLimits
419
428
  )
420
429
  ),
421
- inputs: _chunkJO5FFSR7js.schemaFields.call(void 0, inputSchema),
430
+ ..._optionalChain([byok, 'optionalAccess', _4 => _4.required]) === true ? { byok } : {},
431
+ ...typeof tool.connected === "boolean" ? { connected: tool.connected } : {},
432
+ ...credentialStatus ? { credentialStatus } : {},
433
+ ...connectCommand ? { connectCommand } : {},
434
+ inputs: _chunkNTLBZUHDjs.schemaFields.call(void 0, inputSchema),
422
435
  outputs: [...lists, ...values].map(({ field }) => field),
423
- rawResponse: _chunkJO5FFSR7js.schemaFields.call(void 0, outputSchema),
436
+ rawResponse: _chunkNTLBZUHDjs.schemaFields.call(void 0, outputSchema),
424
437
  runner: playReference ? { via: "play", reference: playReference } : { via: "tool", toolId: String(contract.toolId), inputSchema }
425
438
  };
426
439
  }
@@ -495,7 +508,7 @@ function toolMetadataJsonForDescribe(tool, requestedToolId, seedStarterScript) {
495
508
  deepline_usd_per_credit: _snakeDeeplineUsdPerCredit,
496
509
  deepline_pricing_summary: _snakeDeeplinePricingSummary,
497
510
  deepline_pricing_details: _snakeDeeplinePricingDetails,
498
- // BYOK is shown only on request, via describe --feature byok.
511
+ // The shared description adds BYOK when the tool needs its own credentials.
499
512
  byok: _byok,
500
513
  ...publicTool
501
514
  } = tool;
@@ -586,9 +599,9 @@ function toolInputFieldsForDisplay(inputSchema) {
586
599
  );
587
600
  return fields.map((field) => {
588
601
  const jsonSchemaField = typeof field.name === "string" ? jsonSchemaFields.get(field.name) : void 0;
589
- const minItems = typeof field.minItems === "number" ? field.minItems : _optionalChain([jsonSchemaField, 'optionalAccess', _4 => _4.minItems]);
590
- const maxItems = typeof field.maxItems === "number" ? field.maxItems : _optionalChain([jsonSchemaField, 'optionalAccess', _5 => _5.maxItems]);
591
- const items = isRecord(field.items) ? field.items : _optionalChain([jsonSchemaField, 'optionalAccess', _6 => _6.items]);
602
+ const minItems = typeof field.minItems === "number" ? field.minItems : _optionalChain([jsonSchemaField, 'optionalAccess', _5 => _5.minItems]);
603
+ const maxItems = typeof field.maxItems === "number" ? field.maxItems : _optionalChain([jsonSchemaField, 'optionalAccess', _6 => _6.maxItems]);
604
+ const items = isRecord(field.items) ? field.items : _optionalChain([jsonSchemaField, 'optionalAccess', _7 => _7.items]);
592
605
  return {
593
606
  ...field,
594
607
  ...isRecord(items) ? { items } : {},
@@ -826,7 +839,7 @@ function formatModelDescription(description) {
826
839
  function appendNamespace(lines, namespace) {
827
840
  lines.push(`- ${namespace.provider} (${namespace.sourceSymbol})`);
828
841
  for (const field of namespace.fields) {
829
- const values = _optionalChain([field, 'access', _7 => _7.enumValues, 'optionalAccess', _8 => _8.length]) ? ` (${field.enumValues.map((value) => JSON.stringify(value)).join(" | ")})` : "";
842
+ const values = _optionalChain([field, 'access', _8 => _8.enumValues, 'optionalAccess', _9 => _9.length]) ? ` (${field.enumValues.map((value) => JSON.stringify(value)).join(" | ")})` : "";
830
843
  lines.push(
831
844
  ` - ${field.name}: ${field.type}${values} - ${field.description}`
832
845
  );