deepline 0.3.524 → 0.3.525

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 (172) hide show
  1. package/dist/bundling-sources/sdk/src/client-core.ts +8 -0
  2. package/dist/bundling-sources/sdk/src/http-core.ts +14 -0
  3. package/dist/bundling-sources/sdk/src/plays/play-description.ts +1 -0
  4. package/dist/bundling-sources/sdk/src/release.ts +1 -1
  5. package/dist/bundling-sources/sdk/src/types.ts +10 -0
  6. package/dist/bundling-sources/shared_libs/observability/dlq.ts +19 -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/play-runtime/context.ts +38 -0
  10. package/dist/bundling-sources/shared_libs/play-runtime/freshness-receipt-execution.ts +94 -9
  11. package/dist/bundling-sources/shared_libs/play-runtime/run-retry-summary.ts +202 -0
  12. package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/backends/modal.ts +60 -8
  13. package/dist/bundling-sources/shared_libs/play-runtime/runtime-telemetry.ts +112 -0
  14. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/absurd-runtime-worker.ts +39 -1
  15. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/durable-run-sql.ts +13 -5
  16. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/play-run-recovery.ts +10 -1
  17. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/run-retry-facts.ts +62 -0
  18. package/dist/cli/auth-K7PMRXNG.js +43 -0
  19. package/dist/cli/{auth-QXJMVLPN.mjs → auth-TH3VGYBK.mjs} +5 -5
  20. package/dist/cli/{billing-SNSIFM4B.mjs → billing-CMHFI2LN.mjs} +8 -8
  21. package/dist/cli/{billing-N5R4HTHT.js → billing-TWKVUFU2.js} +83 -83
  22. package/dist/cli/{chunk-TZTWH53O.js → chunk-2WFVLOB7.js} +1 -1
  23. package/dist/cli/{chunk-BXVYVIMB.js → chunk-4UWXFXQF.js} +3 -3
  24. package/dist/cli/{chunk-II3BJKCH.mjs → chunk-5BSGWIQD.mjs} +2 -2
  25. package/dist/cli/{chunk-WOEPDSO3.js → chunk-5JFAQUZS.js} +26 -26
  26. package/dist/cli/{chunk-RVHUW4TN.js → chunk-5YAJGRWB.js} +17 -17
  27. package/dist/cli/{chunk-ITJ7NB2D.mjs → chunk-7AOFSZJM.mjs} +3 -1
  28. package/dist/cli/{chunk-RIX26ZJD.mjs → chunk-7C4F4TLR.mjs} +1 -1
  29. package/dist/cli/{chunk-RTDX5NNN.mjs → chunk-7OF3A4KJ.mjs} +3 -3
  30. package/dist/cli/{chunk-2ZWNIS54.js → chunk-AVDEYOVP.js} +269 -269
  31. package/dist/cli/{chunk-GJYLC4JB.mjs → chunk-BNH4Y35W.mjs} +2 -2
  32. package/dist/cli/{chunk-I75VRGQG.js → chunk-CKTRQSRA.js} +22 -22
  33. package/dist/cli/{chunk-R457IMHJ.mjs → chunk-CLTL7ZJI.mjs} +1 -1
  34. package/dist/cli/{chunk-7E6B7VMS.js → chunk-CQSANB3V.js} +5 -5
  35. package/dist/cli/{chunk-7OQGZBDG.js → chunk-CWRL6IQP.js} +13 -6
  36. package/dist/cli/{chunk-HLAFGQPV.mjs → chunk-CZNEQMJR.mjs} +5 -2
  37. package/dist/cli/{chunk-7QM6DNR4.js → chunk-DYS3KWYF.js} +11 -11
  38. package/dist/cli/{chunk-GMO3JDZA.mjs → chunk-EP6YH6QJ.mjs} +2 -2
  39. package/dist/cli/{chunk-V4RJ57MA.js → chunk-ESWM2JW4.js} +2 -2
  40. package/dist/cli/{chunk-YGOI5ZE5.mjs → chunk-ETHVJ2ZE.mjs} +1 -1
  41. package/dist/cli/{chunk-3WWTBQHC.mjs → chunk-GCLNX72G.mjs} +2 -2
  42. package/dist/cli/{chunk-R2VZVHJP.mjs → chunk-GESIFFQX.mjs} +1 -1
  43. package/dist/cli/{chunk-BXIQD2IY.mjs → chunk-IMO3HXWZ.mjs} +1 -1
  44. package/dist/cli/{chunk-2ZX7XSAQ.mjs → chunk-JVWSIA2V.mjs} +4 -4
  45. package/dist/cli/{chunk-YXVYPYIP.js → chunk-KBOSALBI.js} +10 -10
  46. package/dist/cli/{chunk-RUULUCBP.js → chunk-KEZ3KBWW.js} +10 -10
  47. package/dist/cli/{chunk-YCIXY66B.mjs → chunk-KPINGHIF.mjs} +2 -2
  48. package/dist/cli/{chunk-KKPBCB6D.mjs → chunk-LAMGJQDY.mjs} +2 -2
  49. package/dist/cli/{chunk-OCT4SUJA.js → chunk-LE537GBC.js} +13 -6
  50. package/dist/cli/{chunk-HTYT2OHB.js → chunk-LXKH4MKH.js} +6 -6
  51. package/dist/cli/{chunk-EO55Y4QW.mjs → chunk-M43ZYNDA.mjs} +5 -5
  52. package/dist/cli/{chunk-PFKKZVFK.js → chunk-MHBSRNI7.js} +41 -41
  53. package/dist/cli/{chunk-ANKD3AIR.js → chunk-MRUFGOJR.js} +2 -2
  54. package/dist/cli/{chunk-Z4MOEQSY.js → chunk-N4MMU3QF.js} +21 -21
  55. package/dist/cli/{chunk-ATATJNJ6.js → chunk-NB2ECLQE.js} +9 -9
  56. package/dist/cli/{chunk-YKFW3NNA.mjs → chunk-NO4URKKT.mjs} +5 -5
  57. package/dist/cli/{chunk-66N76YZG.js → chunk-NRBCETWL.js} +44 -44
  58. package/dist/cli/{chunk-OQ5G7RFQ.mjs → chunk-OWQF6WVH.mjs} +10 -3
  59. package/dist/cli/{chunk-CH7JVSA7.mjs → chunk-OXFIJYN3.mjs} +8 -8
  60. package/dist/cli/{chunk-EQNAQENZ.js → chunk-P62LON53.js} +2 -2
  61. package/dist/cli/{chunk-NMU3VR5U.js → chunk-PMH4GLMD.js} +1 -0
  62. package/dist/cli/{chunk-S3A4IXBQ.mjs → chunk-PSX3WHIH.mjs} +1 -0
  63. package/dist/cli/{chunk-V7KUBDEB.js → chunk-QR7VYYNM.js} +144 -141
  64. package/dist/cli/{chunk-KSQXBLRW.mjs → chunk-RMZ6CISE.mjs} +3 -3
  65. package/dist/cli/{chunk-GTGJBZVH.js → chunk-S5LUY3KJ.js} +7 -7
  66. package/dist/cli/{chunk-SF4QJVBE.js → chunk-TFEGJEYO.js} +3 -3
  67. package/dist/cli/{chunk-VHTVXS5A.js → chunk-TO72GW5I.js} +16 -16
  68. package/dist/cli/{chunk-WCVIPZWX.mjs → chunk-TXSBPBHB.mjs} +5 -5
  69. package/dist/cli/{chunk-MW3YMPD2.mjs → chunk-U4M32NFS.mjs} +1 -1
  70. package/dist/cli/{chunk-NUC7ZVDG.mjs → chunk-UQYKSOGO.mjs} +5 -5
  71. package/dist/cli/{chunk-536TGWR6.mjs → chunk-UXF3ODJJ.mjs} +2 -2
  72. package/dist/cli/{chunk-LRWDZDBS.js → chunk-V2GN4PLK.js} +5 -5
  73. package/dist/cli/{chunk-SMWFOGUT.js → chunk-V65J64FL.js} +53 -53
  74. package/dist/cli/{chunk-V2YIBBVT.mjs → chunk-VYIAWAKJ.mjs} +1 -1
  75. package/dist/cli/{chunk-JDIQBZ6O.js → chunk-WA3FG7DH.js} +14 -14
  76. package/dist/cli/{chunk-XURWFEXM.mjs → chunk-WEYFSBAD.mjs} +13 -6
  77. package/dist/cli/{chunk-T43FF5PF.mjs → chunk-WGRDOPAK.mjs} +2 -2
  78. package/dist/cli/{chunk-NTLBZUHD.js → chunk-XYIECA7M.js} +4 -2
  79. package/dist/cli/{chunk-FXTV5B3D.mjs → chunk-YC7FKAJ4.mjs} +12 -12
  80. package/dist/cli/{chunk-BN5VKY4X.js → chunk-ZS2WHWWL.js} +7 -7
  81. package/dist/cli/{chunk-PFKWKWUJ.mjs → chunk-ZWFTHEPT.mjs} +2 -2
  82. package/dist/cli/command-docs.js +2 -2
  83. package/dist/cli/command-docs.mjs +1 -1
  84. package/dist/cli/{csv-Q2LWKXAV.js → csv-5JHWVJ5N.js} +13 -13
  85. package/dist/cli/{csv-HT2JBCW2.mjs → csv-OO554TPX.mjs} +4 -4
  86. package/dist/cli/{db-XEV4WEE4.js → db-CYQJ4OXF.js} +28 -28
  87. package/dist/cli/{db-CS3XQ2LX.mjs → db-SQKJ6RKU.mjs} +7 -7
  88. package/dist/cli/describe-N7AKTUQV.mjs +50 -0
  89. package/dist/cli/describe-PASXOL3R.js +50 -0
  90. package/dist/cli/describe-core.d.mts +4 -2
  91. package/dist/cli/describe-core.d.ts +4 -2
  92. package/dist/cli/describe-core.js +5 -5
  93. package/dist/cli/describe-core.mjs +4 -4
  94. package/dist/cli/{executions-L6XFG5MP.mjs → executions-F34DORW6.mjs} +7 -7
  95. package/dist/cli/{executions-JCC34WAD.js → executions-K7EGCRKX.js} +9 -9
  96. package/dist/cli/{feedback-AWBDO5I6.mjs → feedback-GQHKCS66.mjs} +5 -5
  97. package/dist/cli/{feedback-HV2M2G7N.js → feedback-NOQVCA3Q.js} +10 -10
  98. package/dist/cli/{git-S4LRXTRX.mjs → git-2EEITXDB.mjs} +5 -5
  99. package/dist/cli/git-UU4YFJ2Q.js +25 -0
  100. package/dist/cli/index.js +145 -145
  101. package/dist/cli/index.mjs +44 -44
  102. package/dist/cli/{legacy-noops-7MOKBL4O.mjs → legacy-noops-JHMY5XRB.mjs} +6 -6
  103. package/dist/cli/{legacy-noops-RGSZUD6V.js → legacy-noops-RFNHQ7RG.js} +9 -9
  104. package/dist/cli/{monitors-XQNXDZPQ.mjs → monitors-RDMP6SPZ.mjs} +8 -8
  105. package/dist/cli/{monitors-JEFM2C5W.js → monitors-UKRZ4BDK.js} +101 -101
  106. package/dist/cli/{org-GYLA5V32.js → org-OX7TYTHV.js} +87 -87
  107. package/dist/cli/{org-KTMJZGTN.mjs → org-RF3G4KMB.mjs} +7 -7
  108. package/dist/cli/{pages-WOMU2T2O.mjs → pages-FBM3MGSP.mjs} +7 -7
  109. package/dist/cli/{pages-RY4U7OCL.js → pages-MKQT5LFV.js} +19 -19
  110. package/dist/cli/{play-2Q6MWJ3D.js → play-OOVX2DMV.js} +756 -707
  111. package/dist/cli/{play-KOYGGNYS.mjs → play-YWC2UORM.mjs} +151 -102
  112. package/dist/cli/{providers-HOIRHMN2.js → providers-2CGZYLER.js} +10 -10
  113. package/dist/cli/{providers-7YKDITJC.mjs → providers-3PEQESIU.mjs} +7 -7
  114. package/dist/cli/{quickstart-OWCJOSQA.js → quickstart-6AANHKQZ.js} +6 -6
  115. package/dist/cli/{quickstart-RDXHSMVX.mjs → quickstart-KVB36SOW.mjs} +4 -4
  116. package/dist/cli/{run-MT2ABKO5.js → run-NJ7WV5TK.js} +46 -46
  117. package/dist/cli/{run-RT73NDP5.mjs → run-QC23NRKO.mjs} +27 -27
  118. package/dist/cli/{search-CJPKIGSA.mjs → search-7BMFFZI2.mjs} +9 -9
  119. package/dist/cli/search-NH4DTXUK.js +33 -0
  120. package/dist/cli/{search-output-AREMA544.mjs → search-output-CALZ4ZI2.mjs} +4 -4
  121. package/dist/cli/{search-output-OSBZ7WK6.js → search-output-XC2AVBFX.js} +6 -6
  122. package/dist/cli/{secrets-BTIY2FEJ.mjs → secrets-7ZHA57DI.mjs} +7 -7
  123. package/dist/cli/{secrets-OV6KH633.js → secrets-VHU4B2D4.js} +16 -16
  124. package/dist/cli/sessions-2TE5JWVP.js +18 -0
  125. package/dist/cli/{sessions-3CO3ZFOD.mjs → sessions-YYULWFZE.mjs} +6 -6
  126. package/dist/cli/{settings-7BQIC7QN.mjs → settings-AVY4NNHI.mjs} +14 -14
  127. package/dist/cli/{settings-LBIECYDB.js → settings-WV77QJGD.js} +87 -87
  128. package/dist/cli/{setup-XPTSNNES.mjs → setup-AOUJ3RMU.mjs} +10 -10
  129. package/dist/cli/{setup-QZE7QR3F.js → setup-GE5TLTC4.js} +50 -50
  130. package/dist/cli/{skills-TGGKIQLT.mjs → skills-FVWO2G66.mjs} +8 -8
  131. package/dist/cli/skills-OL7LD6QX.js +37 -0
  132. package/dist/cli/{tools-MKIFX2TQ.mjs → tools-URE655B4.mjs} +20 -20
  133. package/dist/cli/tools-VQ5JO6DI.js +57 -0
  134. package/dist/cli/{update-5R3D3WNH.mjs → update-5B4G4345.mjs} +10 -10
  135. package/dist/cli/update-7ZOIOTZN.js +35 -0
  136. package/dist/cli/{views-VHKDHHUP.mjs → views-GSECJ5IK.mjs} +7 -7
  137. package/dist/cli/{views-VPWEINIA.js → views-IC762HEQ.js} +19 -19
  138. package/dist/cli/{workflow-D5DF65N6.mjs → workflow-6UQM565I.mjs} +8 -8
  139. package/dist/cli/{workflow-7K2VEQ4V.js → workflow-EME7ZEOV.js} +18 -18
  140. package/dist/{client-C5_6W8yd.d.mts → client-Bd2meveV.d.mts} +1 -1
  141. package/dist/{client-iXW4TOat.d.ts → client-CBCVhL8U.d.ts} +1 -1
  142. package/dist/{client-core-Dob428Z4.d.mts → client-core-CGj8V9mw.d.mts} +67 -0
  143. package/dist/{client-core-B-GPfmaC.d.ts → client-core-CsRRWCFy.d.ts} +67 -0
  144. package/dist/index.d.mts +3 -3
  145. package/dist/index.d.ts +3 -3
  146. package/dist/index.js +10 -10
  147. package/dist/index.mjs +7 -7
  148. package/dist/install-integrity.json +120 -118
  149. package/dist/plays/play-description.d.mts +1 -1
  150. package/dist/plays/play-description.d.ts +1 -1
  151. package/dist/plays/play-description.js +2 -2
  152. package/dist/plays/play-description.mjs +1 -1
  153. package/dist/plays/run-request.d.mts +1 -1
  154. package/dist/plays/run-request.d.ts +1 -1
  155. package/dist/release.d.mts +1 -1
  156. package/dist/release.d.ts +1 -1
  157. package/dist/release.js +2 -2
  158. package/dist/release.mjs +1 -1
  159. package/dist/server.d.mts +2 -2
  160. package/dist/server.d.ts +2 -2
  161. package/dist/server.js +6 -6
  162. package/dist/server.mjs +4 -4
  163. package/package.json +1 -1
  164. package/dist/cli/auth-OKPHHMMP.js +0 -43
  165. package/dist/cli/describe-5G5NXO5E.js +0 -50
  166. package/dist/cli/describe-OUTXLDGZ.mjs +0 -50
  167. package/dist/cli/git-GDPTG52F.js +0 -25
  168. package/dist/cli/search-7VBA6IGS.js +0 -33
  169. package/dist/cli/sessions-B3WNEWRW.js +0 -18
  170. package/dist/cli/skills-TXBRTWEV.js +0 -37
  171. package/dist/cli/tools-RZJV4X3J.js +0 -57
  172. package/dist/cli/update-YWGGPWUA.js +0 -35
@@ -17,12 +17,12 @@ var _chunkXNYIZMNQjs = require('./chunk-XNYIZMNQ.js');
17
17
  var _chunkSQWET4SLjs = require('./chunk-SQWET4SL.js');
18
18
 
19
19
 
20
- var _chunkTZTWH53Ojs = require('./chunk-TZTWH53O.js');
20
+ var _chunk2WFVLOB7js = require('./chunk-2WFVLOB7.js');
21
21
 
22
22
  // src/version.ts
23
- var SDK_VERSION = _chunkTZTWH53Ojs.SDK_RELEASE.version;
24
- var SDK_API_MAJOR = _chunkTZTWH53Ojs.SDK_RELEASE.contracts.api.currentMajor;
25
- var SDK_API_CONTRACT = _nullishCoalesce(_chunkTZTWH53Ojs.SDK_RELEASE.contracts.api.legacyWireIds[0], () => ( `api-v${SDK_API_MAJOR}`));
23
+ var SDK_VERSION = _chunk2WFVLOB7js.SDK_RELEASE.version;
24
+ var SDK_API_MAJOR = _chunk2WFVLOB7js.SDK_RELEASE.contracts.api.currentMajor;
25
+ var SDK_API_CONTRACT = _nullishCoalesce(_chunk2WFVLOB7js.SDK_RELEASE.contracts.api.legacyWireIds[0], () => ( `api-v${SDK_API_MAJOR}`));
26
26
 
27
27
  // src/agent-runtime.ts
28
28
  var _os = require('os');
@@ -153,6 +153,11 @@ var COWORK_NETWORK_HINT = "Claude Cowork appears to be running Deepline in a net
153
153
  var REQUEST_TIMEOUT_MARKER = Symbol("deeplineRequestTimeout");
154
154
  var REQUEST_ABORT_MARKER = Symbol("deeplineRequestAbort");
155
155
  var MAX_AUTOMATIC_RETRY_WAIT_MS = 3e4;
156
+ function deploymentProtectionRedirect(headers) {
157
+ return Object.keys(headers).some(
158
+ (name) => name.toLowerCase() === "x-vercel-protection-bypass"
159
+ ) ? "manual" : void 0;
160
+ }
156
161
  function requestCancelledError(signal) {
157
162
  const error = withErrorCause(new Error("Request aborted"), signal.reason);
158
163
  error[REQUEST_ABORT_MARKER] = true;
@@ -469,7 +474,8 @@ var HttpClient = class {
469
474
  method,
470
475
  headers,
471
476
  body: requestBody,
472
- signal: controller.signal
477
+ signal: controller.signal,
478
+ redirect: deploymentProtectionRedirect(headers)
473
479
  });
474
480
  networkPhase = "reading_body";
475
481
  _optionalChain([options, 'optionalAccess', _130 => _130.onResponse, 'optionalCall', _131 => _131(response)]);
@@ -701,7 +707,8 @@ var HttpClient = class {
701
707
  method,
702
708
  headers,
703
709
  body: _optionalChain([options, 'optionalAccess', _153 => _153.body]) !== void 0 ? JSON.stringify(options.body) : void 0,
704
- signal: _optionalChain([options, 'optionalAccess', _154 => _154.signal])
710
+ signal: _optionalChain([options, 'optionalAccess', _154 => _154.signal]),
711
+ redirect: deploymentProtectionRedirect(headers)
705
712
  });
706
713
  _optionalChain([options, 'optionalAccess', _155 => _155.onResponse, 'optionalCall', _156 => _156(response)]);
707
714
  if (!response.ok) {
@@ -1,11 +1,11 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true}); 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 _chunkANKD3AIRjs = require('./chunk-ANKD3AIR.js');
3
+ var _chunkMRUFGOJRjs = require('./chunk-MRUFGOJR.js');
4
4
 
5
5
 
6
6
 
7
7
 
8
- var _chunk66N76YZGjs = require('./chunk-66N76YZG.js');
8
+ var _chunkNRBCETWLjs = require('./chunk-NRBCETWL.js');
9
9
 
10
10
  // src/cli/play-run-admission.ts
11
11
  function usesInlinePlayAdmission(command, args) {
@@ -18,11 +18,11 @@ function usesCliPlayAdmission(command, args) {
18
18
  }
19
19
  async function checkPlayRunCompatibility(baseUrl, maintenancePolicy = "configured", signal) {
20
20
  _optionalChain([signal, 'optionalAccess', _ => _.throwIfAborted, 'call', _2 => _2()]);
21
- if (maintenancePolicy !== "off") _chunk66N76YZGjs.flushDeferredSkillsSyncNotices.call(void 0, baseUrl);
22
- const compatibility = await _chunkANKD3AIRjs.traceCliSpan.call(void 0,
21
+ if (maintenancePolicy !== "off") _chunkNRBCETWLjs.flushDeferredSkillsSyncNotices.call(void 0, baseUrl);
22
+ const compatibility = await _chunkMRUFGOJRjs.traceCliSpan.call(void 0,
23
23
  "cli.sdk_compatibility",
24
24
  { baseUrl, command: "plays run" },
25
- () => _chunk66N76YZGjs.checkSdkCompatibility.call(void 0, baseUrl, {
25
+ () => _chunkNRBCETWLjs.checkSdkCompatibility.call(void 0, baseUrl, {
26
26
  command: "plays run",
27
27
  persistCache: maintenancePolicy !== "off",
28
28
  signal
@@ -30,7 +30,7 @@ async function checkPlayRunCompatibility(baseUrl, maintenancePolicy = "configure
30
30
  );
31
31
  _optionalChain([signal, 'optionalAccess', _3 => _3.throwIfAborted, 'call', _4 => _4()]);
32
32
  if (compatibility.error) throw compatibility.error;
33
- _chunk66N76YZGjs.enforceSdkCompatibilityResponse.call(void 0, compatibility.response, {
33
+ _chunkNRBCETWLjs.enforceSdkCompatibilityResponse.call(void 0, compatibility.response, {
34
34
  quietAdvisory: true
35
35
  });
36
36
  }
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  getActiveCliProgress
3
- } from "./chunk-BXIQD2IY.mjs";
3
+ } from "./chunk-IMO3HXWZ.mjs";
4
4
  import {
5
5
  maybeReportAutomaticSkillsSyncFailure
6
- } from "./chunk-T43FF5PF.mjs";
6
+ } from "./chunk-WGRDOPAK.mjs";
7
7
  import {
8
8
  DEFAULT_SKILL_AGENTS,
9
9
  KNOWN_SKILL_AGENTS,
@@ -14,17 +14,17 @@ import {
14
14
  sdkCliStateDirPath,
15
15
  skillsAgentPathSegment,
16
16
  writeSdkSkillsLocalVersion
17
- } from "./chunk-MW3YMPD2.mjs";
17
+ } from "./chunk-U4M32NFS.mjs";
18
18
  import {
19
19
  SDK_API_CONTRACT,
20
20
  SDK_API_MAJOR,
21
21
  SDK_VERSION,
22
22
  deploymentProtectionHeaders,
23
23
  detectAgentRuntime
24
- } from "./chunk-OQ5G7RFQ.mjs";
24
+ } from "./chunk-OWQF6WVH.mjs";
25
25
  import {
26
26
  SDK_RELEASE
27
- } from "./chunk-RIX26ZJD.mjs";
27
+ } from "./chunk-7C4F4TLR.mjs";
28
28
 
29
29
  // src/compat.ts
30
30
  import { randomUUID } from "crypto";
@@ -11,20 +11,20 @@
11
11
 
12
12
 
13
13
 
14
- var _chunk66N76YZGjs = require('./chunk-66N76YZG.js');
14
+ var _chunkNRBCETWLjs = require('./chunk-NRBCETWL.js');
15
15
 
16
16
 
17
- var _chunkGTGJBZVHjs = require('./chunk-GTGJBZVH.js');
17
+ var _chunkS5LUY3KJjs = require('./chunk-S5LUY3KJ.js');
18
18
 
19
19
 
20
20
 
21
21
 
22
22
 
23
- var _chunkSF4QJVBEjs = require('./chunk-SF4QJVBE.js');
23
+ var _chunkTFEGJEYOjs = require('./chunk-TFEGJEYO.js');
24
24
 
25
25
 
26
26
 
27
- var _chunkOCT4SUJAjs = require('./chunk-OCT4SUJA.js');
27
+ var _chunkLE537GBCjs = require('./chunk-LE537GBC.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 = _chunkSF4QJVBEjs.resolveProjectPinTarget.call(void 0, );
148
+ const target = _chunkTFEGJEYOjs.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, () => ( _chunkOCT4SUJAjs.detectAgentRuntime.call(void 0, )));
159
+ const runtime = _nullishCoalesce(input.runtime, () => ( _chunkLE537GBCjs.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, _chunkSF4QJVBEjs.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, _chunkTFEGJEYOjs.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 = [..._chunk66N76YZGjs.LEGACY_SKILL_NAMES_TO_REMOVE].sort(
178
+ const legacyNames = [..._chunkNRBCETWLjs.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=${_chunk66N76YZGjs.SKILLS_NPX_PACKAGE}`,
192
+ `--package=${_chunkNRBCETWLjs.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=${_chunk66N76YZGjs.SKILLS_NPX_PACKAGE}`,
208
+ `--package=${_chunkNRBCETWLjs.SKILLS_NPX_PACKAGE}`,
209
209
  "--",
210
210
  "skills",
211
211
  "add",
212
- _chunk66N76YZGjs.skillsSourceUrl.call(void 0, input.baseUrl),
212
+ _chunkNRBCETWLjs.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 = _chunk66N76YZGjs.resolveShellSpawn.call(void 0,
249
+ const plan = _chunkNRBCETWLjs.resolveShellSpawn.call(void 0,
250
250
  command,
251
251
  args,
252
252
  process.platform,
@@ -268,7 +268,7 @@ function runProcess(command, args, cwd) {
268
268
  child.kill("SIGTERM");
269
269
  reject(
270
270
  new Error(
271
- `${_chunk66N76YZGjs.SKILLS_NPX_PACKAGE} timed out after ${SKILLS_PROCESS_TIMEOUT_MS}ms.`
271
+ `${_chunkNRBCETWLjs.SKILLS_NPX_PACKAGE} timed out after ${SKILLS_PROCESS_TIMEOUT_MS}ms.`
272
272
  )
273
273
  );
274
274
  }, SKILLS_PROCESS_TIMEOUT_MS);
@@ -279,7 +279,7 @@ function runProcess(command, args, cwd) {
279
279
  child.once("close", (code) => {
280
280
  clearTimeout(timeout);
281
281
  if (code && stderr.trim()) {
282
- process.stderr.write(`${_chunk66N76YZGjs.SKILLS_NPX_PACKAGE} exited ${code}.
282
+ process.stderr.write(`${_chunkNRBCETWLjs.SKILLS_NPX_PACKAGE} exited ${code}.
283
283
  `);
284
284
  }
285
285
  resolve(_nullishCoalesce(code, () => ( 1)));
@@ -287,7 +287,7 @@ function runProcess(command, args, cwd) {
287
287
  });
288
288
  }
289
289
  async function showSkills(options, name) {
290
- const baseUrl = _chunkSF4QJVBEjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
290
+ const baseUrl = _chunkTFEGJEYOjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
291
291
  const url = name ? `${baseUrl}/.well-known/skills/${encodeURIComponent(name)}/SKILL.md` : `${baseUrl}/.well-known/skills/index.json`;
292
292
  try {
293
293
  const response = await fetch(url, {
@@ -300,7 +300,7 @@ async function showSkills(options, name) {
300
300
  }
301
301
  if (name) {
302
302
  const markdown = await response.text();
303
- _chunkGTGJBZVHjs.printCommandEnvelope.call(void 0,
303
+ _chunkS5LUY3KJjs.printCommandEnvelope.call(void 0,
304
304
  { ok: true, status: "completed", skill: { name, markdown } },
305
305
  { json: options.json, text: markdown }
306
306
  );
@@ -310,7 +310,7 @@ async function showSkills(options, name) {
310
310
  const skills = (_nullishCoalesce(index.skills, () => ( []))).filter(
311
311
  (skill) => skill.install_surface === "v1" && skill.name
312
312
  );
313
- _chunkGTGJBZVHjs.printCommandEnvelope.call(void 0,
313
+ _chunkS5LUY3KJjs.printCommandEnvelope.call(void 0,
314
314
  {
315
315
  ok: true,
316
316
  status: "completed",
@@ -327,7 +327,7 @@ Read one with: deepline skills show <name>
327
327
  );
328
328
  return 0;
329
329
  } catch (error) {
330
- _chunkGTGJBZVHjs.printCommandEnvelope.call(void 0,
330
+ _chunkS5LUY3KJjs.printCommandEnvelope.call(void 0,
331
331
  {
332
332
  ok: false,
333
333
  status: "failed",
@@ -350,7 +350,7 @@ async function runSkillsCommand(options, dependencies = {}) {
350
350
  scope = normalizeScope(options.scope);
351
351
  root = scope === "local" ? resolveLocalRoot() : null;
352
352
  } catch (error) {
353
- _chunkGTGJBZVHjs.printCommandEnvelope.call(void 0,
353
+ _chunkS5LUY3KJjs.printCommandEnvelope.call(void 0,
354
354
  {
355
355
  ok: false,
356
356
  status: "failed",
@@ -362,22 +362,22 @@ async function runSkillsCommand(options, dependencies = {}) {
362
362
  );
363
363
  return 2;
364
364
  }
365
- const baseUrl = _chunkSF4QJVBEjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
365
+ const baseUrl = _chunkTFEGJEYOjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
366
366
  const catalog = {
367
- skillNames: [..._chunk66N76YZGjs.DEFAULT_SDK_SKILL_NAMES],
368
- version: _chunkOCT4SUJAjs.SDK_VERSION
367
+ skillNames: [..._chunkNRBCETWLjs.DEFAULT_SDK_SKILL_NAMES],
368
+ version: _chunkLE537GBCjs.SDK_VERSION
369
369
  };
370
370
  const agents = options.agent ? [options.agent] : detectSkillsAgents({ scope, root });
371
371
  const plan = buildSkillsPlan({ baseUrl, scope, root, agents, ...catalog });
372
372
  if (options.dryRun) {
373
- _chunkGTGJBZVHjs.printCommandEnvelope.call(void 0,
373
+ _chunkS5LUY3KJjs.printCommandEnvelope.call(void 0,
374
374
  { ok: true, status: "planned", dryRun: true, ...plan },
375
375
  { json: options.json }
376
376
  );
377
377
  return 0;
378
378
  }
379
- if (isSkillsPlanCurrent(plan, readSkillsInstallState(plan.statePath)) && !_chunk66N76YZGjs.hasFailedAutomaticSkillsSync.call(void 0, baseUrl, agents)) {
380
- _chunkGTGJBZVHjs.printCommandEnvelope.call(void 0,
379
+ if (isSkillsPlanCurrent(plan, readSkillsInstallState(plan.statePath)) && !_chunkNRBCETWLjs.hasFailedAutomaticSkillsSync.call(void 0, baseUrl, agents)) {
380
+ _chunkS5LUY3KJjs.printCommandEnvelope.call(void 0,
381
381
  {
382
382
  ok: true,
383
383
  status: "current",
@@ -409,10 +409,10 @@ async function runSkillsCommand(options, dependencies = {}) {
409
409
  }
410
410
  if (scope === "local" && root) {
411
411
  const managedNames = [
412
- .../* @__PURE__ */ new Set([...plan.skillNames, ..._chunk66N76YZGjs.LEGACY_SKILL_NAMES_TO_REMOVE])
412
+ .../* @__PURE__ */ new Set([...plan.skillNames, ..._chunkNRBCETWLjs.LEGACY_SKILL_NAMES_TO_REMOVE])
413
413
  ];
414
414
  const agentRoots = workspaceSkillRootsForAgents(plan.agents);
415
- _chunkSF4QJVBEjs.ensureProjectPrivatePathsIgnored.call(void 0, root, [
415
+ _chunkTFEGJEYOjs.ensureProjectPrivatePathsIgnored.call(void 0, root, [
416
416
  ".deepline/",
417
417
  ...agentRoots.flatMap(
418
418
  (agentRoot) => managedNames.map((name) => `${agentRoot}/skills/${name}/`)
@@ -421,7 +421,7 @@ async function runSkillsCommand(options, dependencies = {}) {
421
421
  }
422
422
  let lease;
423
423
  try {
424
- lease = scope === "global" ? await _chunk66N76YZGjs.acquireSkillsInstallLease.call(void 0, baseUrl, agents, plan.version, {
424
+ lease = scope === "global" ? await _chunkNRBCETWLjs.acquireSkillsInstallLease.call(void 0, baseUrl, agents, plan.version, {
425
425
  waitMs: _nullishCoalesce(dependencies.installLeaseWaitMs, () => ( SKILLS_INSTALL_LEASE_WAIT_MS)),
426
426
  onWait: () => process.stderr.write(
427
427
  "Waiting for a background Deepline skills refresh to finish...\n"
@@ -429,8 +429,8 @@ async function runSkillsCommand(options, dependencies = {}) {
429
429
  }) : { release: () => {
430
430
  } };
431
431
  } catch (error) {
432
- if (!(error instanceof _chunk66N76YZGjs.SkillsStateUnavailableError)) throw error;
433
- _chunkGTGJBZVHjs.printCommandEnvelope.call(void 0,
432
+ if (!(error instanceof _chunkNRBCETWLjs.SkillsStateUnavailableError)) throw error;
433
+ _chunkS5LUY3KJjs.printCommandEnvelope.call(void 0,
434
434
  {
435
435
  ok: false,
436
436
  status: "failed",
@@ -446,7 +446,7 @@ async function runSkillsCommand(options, dependencies = {}) {
446
446
  return 5;
447
447
  }
448
448
  if (!lease) {
449
- _chunkGTGJBZVHjs.printCommandEnvelope.call(void 0,
449
+ _chunkS5LUY3KJjs.printCommandEnvelope.call(void 0,
450
450
  {
451
451
  ok: false,
452
452
  status: "failed",
@@ -455,7 +455,7 @@ async function runSkillsCommand(options, dependencies = {}) {
455
455
  scope,
456
456
  agents,
457
457
  message: "A background Deepline skills refresh is still running for these agents.",
458
- next: `Retry in a moment: deepline skills install --scope ${scope}. If no refresh is running, remove ${_chunk66N76YZGjs.skillsInstallLeasePath.call(void 0, baseUrl, agents)}`
458
+ next: `Retry in a moment: deepline skills install --scope ${scope}. If no refresh is running, remove ${_chunkNRBCETWLjs.skillsInstallLeasePath.call(void 0, baseUrl, agents)}`
459
459
  },
460
460
  { json: options.json }
461
461
  );
@@ -504,7 +504,7 @@ async function runSkillsInstallWithLease(input) {
504
504
  }
505
505
  }
506
506
  } catch (error) {
507
- _chunkGTGJBZVHjs.printCommandEnvelope.call(void 0,
507
+ _chunkS5LUY3KJjs.printCommandEnvelope.call(void 0,
508
508
  {
509
509
  ok: false,
510
510
  status: "failed",
@@ -520,7 +520,7 @@ async function runSkillsInstallWithLease(input) {
520
520
  return 5;
521
521
  }
522
522
  if (missing.length > 0) {
523
- _chunkGTGJBZVHjs.printCommandEnvelope.call(void 0,
523
+ _chunkS5LUY3KJjs.printCommandEnvelope.call(void 0,
524
524
  {
525
525
  ok: false,
526
526
  status: "failed",
@@ -560,7 +560,7 @@ async function runSkillsInstallWithLease(input) {
560
560
  {
561
561
  schemaVersion: 1,
562
562
  installedAt: (/* @__PURE__ */ new Date()).toISOString(),
563
- cliVersion: _chunkOCT4SUJAjs.SDK_VERSION,
563
+ cliVersion: _chunkLE537GBCjs.SDK_VERSION,
564
564
  scope,
565
565
  agents,
566
566
  skillsVersion: plan.version,
@@ -573,9 +573,9 @@ async function runSkillsInstallWithLease(input) {
573
573
  "utf8"
574
574
  );
575
575
  if (scope === "global") {
576
- _chunk66N76YZGjs.clearFailedAutomaticSkillsSync.call(void 0, baseUrl, agents);
576
+ _chunkNRBCETWLjs.clearFailedAutomaticSkillsSync.call(void 0, baseUrl, agents);
577
577
  }
578
- _chunkGTGJBZVHjs.printCommandEnvelope.call(void 0,
578
+ _chunkS5LUY3KJjs.printCommandEnvelope.call(void 0,
579
579
  {
580
580
  ok: true,
581
581
  status: "complete",
@@ -624,7 +624,7 @@ Examples:
624
624
  "after",
625
625
  `
626
626
  Notes:
627
- This command reinstalls current Deepline-managed skills using ${_chunk66N76YZGjs.SKILLS_NPX_PACKAGE},
627
+ This command reinstalls current Deepline-managed skills using ${_chunkNRBCETWLjs.SKILLS_NPX_PACKAGE},
628
628
  then removes legacy Deepline skill names. Local scope writes into the resolved
629
629
  persistent project.
630
630
 
@@ -636,13 +636,13 @@ Examples:
636
636
  ).action(async (options) => {
637
637
  process.exitCode = await runSkillsCommand(options);
638
638
  });
639
- program.command(_chunk66N76YZGjs.SKILLS_AUTO_SYNC_COMMAND, { hidden: true }).description("Refresh Deepline agent skills in the background.").option(
639
+ program.command(_chunkNRBCETWLjs.SKILLS_AUTO_SYNC_COMMAND, { hidden: true }).description("Refresh Deepline agent skills in the background.").option(
640
640
  "--claim <token>",
641
641
  "Owner token of the leases this child was started for."
642
642
  ).action(async (options) => {
643
643
  const claim = _optionalChain([options, 'access', _9 => _9.claim, 'optionalAccess', _10 => _10.trim, 'call', _11 => _11()]);
644
644
  if (!claim) {
645
- _chunkGTGJBZVHjs.printCommandEnvelope.call(void 0,
645
+ _chunkS5LUY3KJjs.printCommandEnvelope.call(void 0,
646
646
  {
647
647
  ok: false,
648
648
  status: "failed",
@@ -655,7 +655,7 @@ Examples:
655
655
  process.exitCode = 2;
656
656
  return;
657
657
  }
658
- await _chunk66N76YZGjs.syncSdkSkillsIfNeeded.call(void 0, _chunkSF4QJVBEjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, ""), {
658
+ await _chunkNRBCETWLjs.syncSdkSkillsIfNeeded.call(void 0, _chunkTFEGJEYOjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, ""), {
659
659
  mode: "inline",
660
660
  notices: "defer",
661
661
  claim
@@ -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(); } }
2
2
 
3
- var _chunkGTGJBZVHjs = require('./chunk-GTGJBZVH.js');
3
+ var _chunkS5LUY3KJjs = require('./chunk-S5LUY3KJ.js');
4
4
 
5
5
  // src/cli/maintenance-policy.ts
6
6
  var _commander = require('commander');
@@ -33,7 +33,7 @@ function recordCliTrace(event) {
33
33
  sinceStartMs: now - cliTraceStartedAt,
34
34
  ...event
35
35
  };
36
- _chunkGTGJBZVHjs.writeRawStderr.call(void 0, `[cli-trace] ${JSON.stringify(payload)}
36
+ _chunkS5LUY3KJjs.writeRawStderr.call(void 0, `[cli-trace] ${JSON.stringify(payload)}
37
37
  `);
38
38
  }
39
39
  async function traceCliSpan(phase, fields, run) {
@@ -1,31 +1,31 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } }
2
2
 
3
- var _chunk2ZWNIS54js = require('./chunk-2ZWNIS54.js');
3
+ var _chunkAVDEYOVPjs = require('./chunk-AVDEYOVP.js');
4
4
 
5
5
 
6
- var _chunkYXVYPYIPjs = require('./chunk-YXVYPYIP.js');
6
+ var _chunkKBOSALBIjs = require('./chunk-KBOSALBI.js');
7
7
 
8
8
 
9
9
 
10
10
 
11
- var _chunkRVHUW4TNjs = require('./chunk-RVHUW4TN.js');
11
+ var _chunk5YAJGRWBjs = require('./chunk-5YAJGRWB.js');
12
12
 
13
13
 
14
- var _chunkNTLBZUHDjs = require('./chunk-NTLBZUHD.js');
14
+ var _chunkXYIECA7Mjs = require('./chunk-XYIECA7M.js');
15
15
 
16
16
 
17
- var _chunkLRWDZDBSjs = require('./chunk-LRWDZDBS.js');
17
+ var _chunkV2GN4PLKjs = require('./chunk-V2GN4PLK.js');
18
18
 
19
19
 
20
20
 
21
- var _chunkJDIQBZ6Ojs = require('./chunk-JDIQBZ6O.js');
21
+ var _chunkWA3FG7DHjs = require('./chunk-WA3FG7DH.js');
22
22
 
23
23
 
24
- var _chunkGTGJBZVHjs = require('./chunk-GTGJBZVH.js');
24
+ var _chunkS5LUY3KJjs = require('./chunk-S5LUY3KJ.js');
25
25
 
26
26
 
27
27
 
28
- var _chunkSF4QJVBEjs = require('./chunk-SF4QJVBE.js');
28
+ var _chunkTFEGJEYOjs = require('./chunk-TFEGJEYO.js');
29
29
 
30
30
  // src/cli/commands/describe.ts
31
31
  var _fs = require('fs');
@@ -34,14 +34,14 @@ var _path = require('path');
34
34
  // src/cli/doc-read-reporting.ts
35
35
  var REPORT_TIMEOUT_MS = 1e3;
36
36
  async function reportDocRead(docId) {
37
- if (_chunkJDIQBZ6Ojs.isFailureReportingDisabled.call(void 0, )) return;
37
+ if (_chunkWA3FG7DHjs.isFailureReportingDisabled.call(void 0, )) return;
38
38
  try {
39
- const baseUrl = _chunkSF4QJVBEjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
40
- const apiKey = _chunkSF4QJVBEjs.resolveApiKeyForBaseUrl.call(void 0, baseUrl);
39
+ const baseUrl = _chunkTFEGJEYOjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
40
+ const apiKey = _chunkTFEGJEYOjs.resolveApiKeyForBaseUrl.call(void 0, baseUrl);
41
41
  if (!apiKey) return;
42
42
  await fetch(new URL("/api/v2/telemetry/doc-read", baseUrl), {
43
43
  method: "POST",
44
- headers: _chunkJDIQBZ6Ojs.failureReportHeaders.call(void 0, apiKey),
44
+ headers: _chunkWA3FG7DHjs.failureReportHeaders.call(void 0, apiKey),
45
45
  body: JSON.stringify({ doc_id: docId }),
46
46
  signal: AbortSignal.timeout(REPORT_TIMEOUT_MS)
47
47
  });
@@ -54,16 +54,16 @@ function nothingNamed(name) {
54
54
  return `Nothing named "${name}". Search for it: deepline search ${JSON.stringify(name.replace(/[-_./]+/g, " "))}`;
55
55
  }
56
56
  function findNamed2(name, options) {
57
- return _chunkRVHUW4TNjs.findNamed.call(void 0, name, options, _chunkRVHUW4TNjs.describeLookupsFor.call(void 0, new (0, _chunkLRWDZDBSjs.DeeplineClient)()));
57
+ return _chunk5YAJGRWBjs.findNamed.call(void 0, name, options, _chunk5YAJGRWBjs.describeLookupsFor.call(void 0, new (0, _chunkV2GN4PLKjs.DeeplineClient)()));
58
58
  }
59
59
  async function describeAnything(name, options, onMissing) {
60
- const client = new (0, _chunkLRWDZDBSjs.DeeplineClient)();
61
- const lookups = _chunkRVHUW4TNjs.describeLookupsFor.call(void 0, client);
62
- const outcome = await _chunkRVHUW4TNjs.describeName.call(void 0, name, options, {
60
+ const client = new (0, _chunkV2GN4PLKjs.DeeplineClient)();
61
+ const lookups = _chunk5YAJGRWBjs.describeLookupsFor.call(void 0, client);
62
+ const outcome = await _chunk5YAJGRWBjs.describeName.call(void 0, name, options, {
63
63
  ...lookups,
64
64
  // `tools describe` has already fetched the tool for its compatibility check.
65
65
  tool: async (toolName) => _nullishCoalesce(options.fetchedTool, () => ( lookups.tool(toolName))),
66
- seedStarterScript: _chunk2ZWNIS54js.seedToolListScript
66
+ seedStarterScript: _chunkAVDEYOVPjs.seedToolListScript
67
67
  });
68
68
  if (outcome.status === "missing") {
69
69
  if (onMissing) return onMissing();
@@ -89,18 +89,18 @@ function deliver(envelope, lines, { json, out }) {
89
89
  ` : text;
90
90
  _fs.writeFileSync.call(void 0, path, content);
91
91
  const bytes = Buffer.byteLength(content);
92
- _chunkGTGJBZVHjs.printCommandEnvelope.call(void 0,
92
+ _chunkS5LUY3KJjs.printCommandEnvelope.call(void 0,
93
93
  { path, bytes },
94
94
  { json, text: `Wrote ${path} (${bytes} bytes)
95
95
  ` }
96
96
  );
97
97
  return 0;
98
98
  }
99
- _chunkGTGJBZVHjs.printCommandEnvelope.call(void 0, envelope, { json, text });
99
+ _chunkS5LUY3KJjs.printCommandEnvelope.call(void 0, envelope, { json, text });
100
100
  return 0;
101
101
  }
102
102
  function registerDescribeCommand(program) {
103
- _chunkYXVYPYIPjs.addDescribeOptions.call(void 0, program.command("describe <name>")).option("--web-url", "Print only a play's play page URL").description(
103
+ _chunkKBOSALBIjs.addDescribeOptions.call(void 0, program.command("describe <name>")).option("--web-url", "Print only a play's play page URL").description(
104
104
  "Describe anything search returns: a tool, monitor type, or play."
105
105
  ).addHelpText(
106
106
  "after",
@@ -141,7 +141,7 @@ Schema size and format:
141
141
  by default; the output names them, and --verbose shows them.
142
142
  --fields email,miss_reason shows only the fields you name, plus every
143
143
  required input, and names the rest. Use it when you know what you need.
144
- A schema over ${_chunkNTLBZUHDjs.SCHEMA_LINE_LIMIT} lines is folded: deeper objects show only their field
144
+ A schema over ${_chunkXYIECA7Mjs.SCHEMA_LINE_LIMIT} lines is folded: deeper objects show only their field
145
145
  names. A shape used more than once is printed once under Types.
146
146
  --full-schema the normal output, with the schema not folded
147
147
  --schema-only only the schema, not folded, and nothing else
@@ -3,7 +3,7 @@
3
3
  var _chunkVLEVVDWGjs = require('./chunk-VLEVVDWG.js');
4
4
 
5
5
 
6
- var _chunkV7KUBDEBjs = require('./chunk-V7KUBDEB.js');
6
+ var _chunkQR7VYYNMjs = require('./chunk-QR7VYYNM.js');
7
7
 
8
8
 
9
9
  var _chunk2KHUFWTKjs = require('./chunk-2KHUFWTK.js');
@@ -11,7 +11,7 @@ var _chunk2KHUFWTKjs = require('./chunk-2KHUFWTK.js');
11
11
 
12
12
 
13
13
 
14
- var _chunkGTGJBZVHjs = require('./chunk-GTGJBZVH.js');
14
+ var _chunkS5LUY3KJjs = require('./chunk-S5LUY3KJ.js');
15
15
 
16
16
 
17
17
  var _chunkSQWET4SLjs = require('./chunk-SQWET4SL.js');
@@ -581,7 +581,7 @@ function parseInputFlagValue(raw) {
581
581
  return raw;
582
582
  }
583
583
  function parsePlayRunOptions(args, initialInput = null) {
584
- const selection = _chunkGTGJBZVHjs.parseJsonFields.call(void 0, args, "run");
584
+ const selection = _chunkS5LUY3KJjs.parseJsonFields.call(void 0, args, "run");
585
585
  args = selection.args;
586
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.";
587
587
  let filePath = null;
@@ -593,7 +593,7 @@ function parsePlayRunOptions(args, initialInput = null) {
593
593
  let revisionSelector = null;
594
594
  const watch = !args.includes("--no-wait");
595
595
  const dryRun = args.includes("--dry-run");
596
- let jsonOutput = dryRun ? _chunkGTGJBZVHjs.argsWantJson.call(void 0, args) : watch ? args.includes("--json") : _chunkGTGJBZVHjs.argsWantJson.call(void 0, args);
596
+ let jsonOutput = dryRun ? _chunkS5LUY3KJjs.argsWantJson.call(void 0, args) : watch ? args.includes("--json") : _chunkS5LUY3KJjs.argsWantJson.call(void 0, args);
597
597
  const fullJson = args.includes("--full");
598
598
  const force = args.includes("--force") || args.includes("--from-start");
599
599
  const forceToolRefresh = args.includes("--force-tool-refresh") || args.includes("--refresh-cache");
@@ -656,7 +656,7 @@ function parsePlayRunOptions(args, initialInput = null) {
656
656
  "--log-level requires one of: debug, info, warn, error."
657
657
  );
658
658
  }
659
- const parsed = _chunkV7KUBDEBjs.parseLogLevel.call(void 0, value);
659
+ const parsed = _chunkQR7VYYNMjs.parseLogLevel.call(void 0, value);
660
660
  if (!parsed) {
661
661
  throw new Error(
662
662
  `Unsupported --log-level ${JSON.stringify(value)}. Use debug, info, warn, or error.`
@@ -974,7 +974,7 @@ function resolvePlayRunCliOptions(target, options, inputArgs = [], maintenancePo
974
974
  const hasExplicitLogLevel = options.logLevel !== void 0 || inputArgs.some(
975
975
  (arg) => arg === "--log-level" || arg.startsWith("--log-level=")
976
976
  );
977
- let logLevel = options.logLevel === void 0 ? base.logLevel : _chunkV7KUBDEBjs.parseLogLevel.call(void 0, options.logLevel);
977
+ let logLevel = options.logLevel === void 0 ? base.logLevel : _chunkQR7VYYNMjs.parseLogLevel.call(void 0, options.logLevel);
978
978
  if (!logLevel)
979
979
  throw new Error("--log-level requires one of: debug, info, warn, error.");
980
980
  const debugAlias = options.logs || options.debug === true || inputArgs.some(
@@ -988,13 +988,13 @@ function resolvePlayRunCliOptions(target, options, inputArgs = [], maintenancePo
988
988
  if (debugAlias || debugMapLatency && logLevel === "info")
989
989
  logLevel = "debug";
990
990
  const fullJson = _nullishCoalesce(options.full, () => ( base.fullJson));
991
- const jsonFields = options.json === void 0 ? base.jsonFields : _chunkGTGJBZVHjs.parseJsonFields.call(void 0,
992
- [...fullJson ? ["--full"] : [], ..._chunkGTGJBZVHjs.jsonFieldArgs.call(void 0, options.json)],
991
+ const jsonFields = options.json === void 0 ? base.jsonFields : _chunkS5LUY3KJjs.parseJsonFields.call(void 0,
992
+ [...fullJson ? ["--full"] : [], ..._chunkS5LUY3KJjs.jsonFieldArgs.call(void 0, options.json)],
993
993
  "run"
994
994
  ).fields;
995
995
  const watch = options.wait === false ? false : base.watch;
996
996
  const explicitJson = options.json !== void 0 ? options.json !== false : base.jsonOutput;
997
- const jsonOutput = dryRun || !watch ? explicitJson || _chunkGTGJBZVHjs.argsWantJson.call(void 0, []) : explicitJson;
997
+ const jsonOutput = dryRun || !watch ? explicitJson || _chunkS5LUY3KJjs.argsWantJson.call(void 0, []) : explicitJson;
998
998
  const verboseLogs = Boolean(
999
999
  debugAlias || logLevel === "debug" || debugMapLatency
1000
1000
  );
@@ -1,19 +1,19 @@
1
1
  import {
2
2
  npmSupportsAllowScripts,
3
3
  readNpmVersion
4
- } from "./chunk-YGOI5ZE5.mjs";
4
+ } from "./chunk-ETHVJ2ZE.mjs";
5
5
  import {
6
6
  runSkillsCommand
7
- } from "./chunk-2ZX7XSAQ.mjs";
7
+ } from "./chunk-JVWSIA2V.mjs";
8
8
  import {
9
9
  resolveShellSpawn
10
- } from "./chunk-EO55Y4QW.mjs";
10
+ } from "./chunk-M43ZYNDA.mjs";
11
11
  import {
12
12
  printCommandEnvelope
13
- } from "./chunk-3WWTBQHC.mjs";
13
+ } from "./chunk-GCLNX72G.mjs";
14
14
  import {
15
15
  autoDetectBaseUrl
16
- } from "./chunk-MW3YMPD2.mjs";
16
+ } from "./chunk-U4M32NFS.mjs";
17
17
 
18
18
  // src/cli/commands/update.ts
19
19
  import { spawn, spawnSync } from "child_process";