deepline 0.3.534 → 0.3.536

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 (235) hide show
  1. package/dist/bundling-sources/sdk/src/client-core.ts +254 -147
  2. package/dist/bundling-sources/sdk/src/index.ts +4 -0
  3. package/dist/bundling-sources/sdk/src/plays/local-file-discovery.ts +27 -1
  4. package/dist/bundling-sources/sdk/src/plays/run-request.ts +16 -5
  5. package/dist/bundling-sources/sdk/src/release.ts +1 -1
  6. package/dist/bundling-sources/sdk/src/types.ts +2 -23
  7. package/dist/bundling-sources/shared_libs/integration-contracts/monitor-fleet-contract.ts +26 -14
  8. package/dist/bundling-sources/shared_libs/integration-contracts/monitor-input-contract.ts +33 -8
  9. package/dist/bundling-sources/shared_libs/monitors/fleets/count-drift-alert.ts +121 -0
  10. package/dist/bundling-sources/shared_libs/monitors/fleets/limits.ts +8 -0
  11. package/dist/bundling-sources/shared_libs/monitors/fleets/plan.ts +14 -82
  12. package/dist/bundling-sources/shared_libs/monitors/package.json +1 -0
  13. package/dist/bundling-sources/shared_libs/observability/scheduled-jobs.json +4 -4
  14. package/dist/bundling-sources/shared_libs/play-data-plane/r2.ts +0 -26
  15. package/dist/bundling-sources/shared_libs/play-runtime/activity-observation.ts +36 -0
  16. package/dist/bundling-sources/shared_libs/play-runtime/app-runtime-api.ts +21 -31
  17. package/dist/bundling-sources/shared_libs/play-runtime/call-requeue-state-machine.ts +420 -0
  18. package/dist/bundling-sources/shared_libs/play-runtime/context.ts +727 -102
  19. package/dist/bundling-sources/shared_libs/play-runtime/ctx-types.ts +26 -0
  20. package/dist/bundling-sources/shared_libs/play-runtime/durable-retry-policy.ts +624 -0
  21. package/dist/bundling-sources/shared_libs/play-runtime/durable-runs-rollout.ts +12 -10
  22. package/dist/bundling-sources/shared_libs/play-runtime/durable-summary-events.ts +3 -1
  23. package/dist/bundling-sources/shared_libs/play-runtime/governor/app-runtime-rate-state-backend.ts +71 -2
  24. package/dist/bundling-sources/shared_libs/play-runtime/governor/governor.ts +60 -1
  25. package/dist/bundling-sources/shared_libs/play-runtime/governor/rate-state-backend.ts +2 -0
  26. package/dist/bundling-sources/shared_libs/play-runtime/launch-identity.ts +1 -0
  27. package/dist/bundling-sources/shared_libs/play-runtime/map-memory-limits.ts +372 -10
  28. package/dist/bundling-sources/shared_libs/play-runtime/memory-ledger.ts +15 -2
  29. package/dist/bundling-sources/shared_libs/play-runtime/output-size-limits.ts +21 -0
  30. package/dist/bundling-sources/shared_libs/play-runtime/prebuilt-result-quality.ts +1 -1
  31. package/dist/bundling-sources/shared_libs/play-runtime/protocol.ts +6 -0
  32. package/dist/bundling-sources/shared_libs/play-runtime/provider-capacity/fixture-capacity-simulator.ts +1 -0
  33. package/dist/bundling-sources/shared_libs/play-runtime/provider-capacity/gradient2-concurrency-controller.ts +41 -0
  34. package/dist/bundling-sources/shared_libs/play-runtime/provider-capacity/provider-capacity-policy.ts +6 -0
  35. package/dist/bundling-sources/shared_libs/play-runtime/provider-capacity/provider-concurrency-policy.ts +9 -0
  36. package/dist/bundling-sources/shared_libs/play-runtime/provider-no-progress.ts +6 -2
  37. package/dist/bundling-sources/shared_libs/play-runtime/resource-governor.ts +17 -0
  38. package/dist/bundling-sources/shared_libs/play-runtime/run-failure.ts +2 -2
  39. package/dist/bundling-sources/shared_libs/play-runtime/run-ledger.ts +5 -2
  40. package/dist/bundling-sources/shared_libs/play-runtime/runner-app/runtime-tool-hooks.ts +63 -3
  41. package/dist/bundling-sources/shared_libs/play-runtime/runtime-operation-contract.ts +7 -0
  42. package/dist/bundling-sources/shared_libs/play-runtime/sandbox-compute-usage.ts +31 -0
  43. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backend.ts +6 -0
  44. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/absurd-runtime-worker.ts +26 -1
  45. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/postgres-rate-scope.ts +11 -4
  46. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/postgres-rate-state.ts +73 -18
  47. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/postgres.ts +169 -2
  48. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/runtime-sandbox-capacity.ts +26 -4
  49. package/dist/bundling-sources/shared_libs/play-runtime/tool-execute-retry-policy.ts +90 -49
  50. package/dist/bundling-sources/shared_libs/plays/authoring-contract.ts +136 -30
  51. package/dist/bundling-sources/shared_libs/plays/launch/input-contract.ts +13 -1
  52. package/dist/bundling-sources/shared_libs/plays/local-file-discovery.ts +68 -1
  53. package/dist/bundling-sources/shared_libs/plays/share/static-pipeline-summary.ts +63 -13
  54. package/dist/bundling-sources/shared_libs/product-notifications/configuration-draft.ts +57 -1
  55. package/dist/bundling-sources/shared_libs/product-notifications/configuration.ts +22 -9
  56. package/dist/cli/auth-6XQKFOLG.js +43 -0
  57. package/dist/cli/{auth-MHQYIMVX.mjs → auth-KCTCUO7P.mjs} +7 -7
  58. package/dist/cli/{billing-YQLNP4S5.js → billing-4VBGZ3CT.js} +273 -112
  59. package/dist/cli/{billing-LX2PSBJ4.mjs → billing-OOJHKLNS.mjs} +185 -24
  60. package/dist/cli/{chunk-DGKTHWWH.js → chunk-2B4IOGFD.js} +406 -382
  61. package/dist/cli/{chunk-MQORQ7WL.js → chunk-2FCSUOYN.js} +55 -55
  62. package/dist/cli/{chunk-T2N3B7IQ.js → chunk-2GJZLIKW.js} +8 -8
  63. package/dist/cli/{chunk-6IFZPEJE.mjs → chunk-2YWJS76L.mjs} +1 -1
  64. package/dist/cli/{chunk-E7TP25I2.mjs → chunk-3PCYV6ZJ.mjs} +2 -2
  65. package/dist/cli/{chunk-LGRZCHKC.js → chunk-4E5JXZ3W.js} +18 -20
  66. package/dist/cli/{chunk-R4RG4FV5.mjs → chunk-4KWD3MX2.mjs} +13 -10
  67. package/dist/cli/{chunk-SUWTLXCV.js → chunk-6BBGUQJJ.js} +67 -146
  68. package/dist/cli/{chunk-JBBJDFUJ.js → chunk-6VUGBQZQ.js} +5 -5
  69. package/dist/cli/{chunk-2P3NVX65.mjs → chunk-AB2GBOD4.mjs} +40 -27
  70. package/dist/cli/{chunk-62SOZ67Y.mjs → chunk-ANUKBZ6W.mjs} +475 -11
  71. package/dist/cli/{chunk-MG6YL4M7.mjs → chunk-BASLYGXK.mjs} +101 -77
  72. package/dist/cli/{chunk-SQWET4SL.js → chunk-BBTKAASQ.js} +2 -1
  73. package/dist/cli/{chunk-NRO3NTVO.js → chunk-CBV7AKWM.js} +5 -5
  74. package/dist/cli/{chunk-RH3YRMUY.js → chunk-CIDN5K23.js} +1 -1
  75. package/dist/cli/{chunk-QNHHZ63P.mjs → chunk-CQBIO6HW.mjs} +1 -1
  76. package/dist/cli/{chunk-2KHUFWTK.js → chunk-CQDQNZGH.js} +42 -37
  77. package/dist/cli/{chunk-UWNVFAFN.js → chunk-CWSLUNA6.js} +33 -33
  78. package/dist/cli/{chunk-5FXMEEF4.mjs → chunk-CXTW7SRW.mjs} +67 -146
  79. package/dist/cli/{chunk-O53LHONF.mjs → chunk-DA2I2M7D.mjs} +2 -2
  80. package/dist/cli/{chunk-EYXUAJAU.mjs → chunk-DQHUJMCL.mjs} +5 -5
  81. package/dist/cli/{chunk-7GFR5Y4J.mjs → chunk-DUYAMLOC.mjs} +1 -1
  82. package/dist/cli/{chunk-OMVVHX4U.mjs → chunk-E24UGPGG.mjs} +13 -15
  83. package/dist/cli/{chunk-STR5LXK4.mjs → chunk-FSIVF2SI.mjs} +1 -1
  84. package/dist/cli/{chunk-KJVY7V2X.mjs → chunk-GF32SBST.mjs} +1 -1
  85. package/dist/cli/{chunk-AK622KIG.mjs → chunk-GHLDCLSC.mjs} +1 -1
  86. package/dist/cli/{chunk-A6HNT4EE.js → chunk-GTVZKY3F.js} +2 -2
  87. package/dist/cli/{chunk-BXIUZM5N.mjs → chunk-HAJQGP5V.mjs} +2 -2
  88. package/dist/cli/{chunk-6CEUQYMB.js → chunk-HWDKRN7L.js} +3 -3
  89. package/dist/cli/{chunk-5YAJGRWB.js → chunk-IPVRMYWT.js} +7 -7
  90. package/dist/cli/{chunk-ZPGGW27Q.mjs → chunk-JL2OTMSG.mjs} +1 -0
  91. package/dist/cli/{chunk-WR4WETRU.mjs → chunk-JUHDJNSI.mjs} +4 -4
  92. package/dist/cli/{chunk-TQH3533L.mjs → chunk-KPQHUVYW.mjs} +5 -5
  93. package/dist/cli/{chunk-V7SCRUFQ.js → chunk-KWYGWO4Y.js} +9 -6
  94. package/dist/cli/{chunk-DZS4JC7I.js → chunk-LDGZFDUB.js} +2 -2
  95. package/dist/cli/{chunk-EGTUOYYG.js → chunk-LN6RXDTB.js} +523 -59
  96. package/dist/cli/{chunk-DQ5ADV2J.mjs → chunk-LZXZQPA2.mjs} +4 -1
  97. package/dist/cli/{chunk-MYSKWJMA.js → chunk-MSP4DTSD.js} +13 -13
  98. package/dist/cli/{chunk-BNH4Y35W.mjs → chunk-OLH2PHMC.mjs} +2 -2
  99. package/dist/cli/{chunk-NNAE7E23.mjs → chunk-OUDTOMZC.mjs} +7 -9
  100. package/dist/cli/{chunk-GESIFFQX.mjs → chunk-OVX3Q5Q3.mjs} +1 -1
  101. package/dist/cli/{chunk-ENCA6O2D.mjs → chunk-PNY3BWHP.mjs} +2 -2
  102. package/dist/cli/{chunk-KSA2XE4T.js → chunk-Q4MNUOS4.js} +316 -303
  103. package/dist/cli/{chunk-GTXSUPCJ.js → chunk-Q5CXV3E3.js} +2 -2
  104. package/dist/cli/{chunk-VAG5YKP6.mjs → chunk-RVSSQPQO.mjs} +1 -1
  105. package/dist/cli/{chunk-VE7ZPLN2.js → chunk-SLPJ3LXI.js} +22 -22
  106. package/dist/cli/{chunk-IX45S5VC.js → chunk-TX5TUHJN.js} +17 -19
  107. package/dist/cli/{chunk-IF75RD6U.js → chunk-U2LVWCTD.js} +18 -6
  108. package/dist/cli/{chunk-ZS2WHWWL.js → chunk-UNDLNT3V.js} +1 -1
  109. package/dist/cli/{chunk-NDFNBJGL.js → chunk-VBDZIMWD.js} +26 -26
  110. package/dist/cli/{chunk-GVGQ6NZW.js → chunk-W7AEIGZR.js} +41 -41
  111. package/dist/cli/{chunk-WDNRPZED.mjs → chunk-WC5M3JXE.mjs} +2 -2
  112. package/dist/cli/{chunk-C374C22Y.js → chunk-WOQO3GV4.js} +14 -11
  113. package/dist/cli/{chunk-MQX363YF.js → chunk-XBAH3TKU.js} +5 -5
  114. package/dist/cli/{chunk-BDWZBMGV.mjs → chunk-XJD2GYUP.mjs} +5 -5
  115. package/dist/cli/{chunk-XRZJKHUA.mjs → chunk-XVZRJJDS.mjs} +4 -4
  116. package/dist/cli/{chunk-TVINIDHB.js → chunk-Y2NTPYGS.js} +17 -17
  117. package/dist/cli/{chunk-6GTGWZJG.mjs → chunk-YBMHOH6H.mjs} +4 -4
  118. package/dist/cli/{chunk-TG2UB3A5.mjs → chunk-YRLAUGQY.mjs} +3 -3
  119. package/dist/cli/{chunk-FKD3KL5Q.mjs → chunk-Z2XA6YU4.mjs} +10 -5
  120. package/dist/cli/{chunk-KXQCUX3X.mjs → chunk-Z7UIOGW4.mjs} +3 -3
  121. package/dist/cli/{chunk-HCD36BP6.js → chunk-ZEV2Y56V.js} +44 -44
  122. package/dist/cli/{chunk-MI6ZP7XI.mjs → chunk-ZG7BOECV.mjs} +18 -6
  123. package/dist/cli/{chunk-XBK6WCVA.js → chunk-ZILSRDIN.js} +8 -8
  124. package/dist/cli/{chunk-B2AS3R5W.js → chunk-ZISEH7OL.js} +16 -16
  125. package/dist/cli/{chunk-HPJAE6PP.js → chunk-ZZ4MF2GI.js} +6 -6
  126. package/dist/cli/command-docs.js +2 -2
  127. package/dist/cli/command-docs.mjs +1 -1
  128. package/dist/cli/{csv-U3M2G76R.js → csv-2V2DIFNG.js} +15 -15
  129. package/dist/cli/{csv-4ID4E5W3.mjs → csv-P3HLK4GO.mjs} +6 -6
  130. package/dist/cli/{db-IHAQIKEQ.js → db-MREAQVW6.js} +36 -36
  131. package/dist/cli/{db-LHX5BBCZ.mjs → db-ZYOY3QRQ.mjs} +9 -9
  132. package/dist/cli/describe-IKZFOADR.mjs +49 -0
  133. package/dist/cli/describe-WW3OQRLP.js +49 -0
  134. package/dist/cli/describe-core.d.mts +3 -3
  135. package/dist/cli/describe-core.d.ts +3 -3
  136. package/dist/cli/describe-core.js +5 -5
  137. package/dist/cli/describe-core.mjs +4 -4
  138. package/dist/cli/{executions-CJ5LV23G.js → executions-H5IJ7QSQ.js} +11 -11
  139. package/dist/cli/{executions-UJ6JZUL5.mjs → executions-KTSY5M34.mjs} +9 -9
  140. package/dist/cli/{feedback-TGUBVGRP.js → feedback-724QK3Z5.js} +16 -16
  141. package/dist/cli/{feedback-YGTPJBRJ.mjs → feedback-WWJRIXEU.mjs} +8 -8
  142. package/dist/cli/git-PHYRD56H.js +25 -0
  143. package/dist/cli/{git-3DOTQHJO.mjs → git-R5VRG7X6.mjs} +7 -7
  144. package/dist/cli/index.js +151 -157
  145. package/dist/cli/index.mjs +51 -57
  146. package/dist/cli/{legacy-noops-BHEHVFHI.js → legacy-noops-C6GDEGPU.js} +11 -11
  147. package/dist/cli/{legacy-noops-RBBYRVLG.mjs → legacy-noops-PWZ5XLAO.mjs} +8 -8
  148. package/dist/cli/{monitors-XECKLAXA.js → monitors-VAVQ4WCE.js} +125 -122
  149. package/dist/cli/{monitors-5AJCG6IV.mjs → monitors-WQSKMHAP.mjs} +19 -16
  150. package/dist/cli/{org-DOBAIYWG.js → org-CWWRWXZQ.js} +89 -89
  151. package/dist/cli/{org-ZAAIEZKB.mjs → org-MAL4QPVF.mjs} +9 -9
  152. package/dist/cli/{play-KLYRMQPF.mjs → play-ILW6MSNG.mjs} +174 -80
  153. package/dist/cli/{play-E74VN6B7.js → play-WJOWK5PQ.js} +690 -596
  154. package/dist/cli/{providers-XTQXV5LB.mjs → providers-4V2NMLZZ.mjs} +9 -9
  155. package/dist/cli/{providers-APZ6SOSK.js → providers-W662ANCH.js} +12 -12
  156. package/dist/cli/{quickstart-S6WN6NWW.js → quickstart-BW6EBUYX.js} +8 -8
  157. package/dist/cli/{quickstart-X7RHHQCH.mjs → quickstart-C22BR743.mjs} +6 -6
  158. package/dist/cli/{run-3YLIJJ57.js → run-KW7KW4FX.js} +50 -53
  159. package/dist/cli/{run-TZPBBSPX.mjs → run-SPAU5IMW.mjs} +31 -34
  160. package/dist/cli/search-HLE54W5G.js +32 -0
  161. package/dist/cli/{search-VLHE2CMZ.mjs → search-XPC75HLM.mjs} +10 -11
  162. package/dist/cli/{search-output-73BYB7UE.mjs → search-output-JKYJSEPM.mjs} +6 -6
  163. package/dist/cli/{search-output-GCT7PQIT.js → search-output-VJYE7USJ.js} +8 -8
  164. package/dist/cli/{secrets-RLOTGKQZ.mjs → secrets-OJG73GXQ.mjs} +9 -9
  165. package/dist/cli/{secrets-J6CEKXKQ.js → secrets-YB57KGSB.js} +18 -18
  166. package/dist/cli/{sessions-7HZ7OZ62.mjs → sessions-7ZL37BW4.mjs} +8 -8
  167. package/dist/cli/sessions-VEBYZIEU.js +22 -0
  168. package/dist/cli/{settings-WRV5XEZC.js → settings-A7DD2ZYE.js} +88 -89
  169. package/dist/cli/{settings-72K5YCIS.mjs → settings-RKSQB7FA.mjs} +15 -16
  170. package/dist/cli/{setup-KQFY6WT4.mjs → setup-NXDUTITY.mjs} +11 -12
  171. package/dist/cli/{setup-QVXWT2EQ.js → setup-S3K5YU62.js} +51 -52
  172. package/dist/cli/skills-NVQ744CN.js +36 -0
  173. package/dist/cli/{skills-C3K3E473.mjs → skills-VMFAIDO6.mjs} +9 -10
  174. package/dist/cli/{tools-4A2OH6MB.mjs → tools-52NTHBSJ.mjs} +20 -21
  175. package/dist/cli/tools-SBDUL3WB.js +56 -0
  176. package/dist/cli/update-HHVFZPCV.js +34 -0
  177. package/dist/cli/{update-BS6USKPR.mjs → update-SAKBEKMV.mjs} +11 -12
  178. package/dist/cli/{views-WB6GFTRX.mjs → views-ACRV7MD6.mjs} +54 -10
  179. package/dist/cli/{views-4NZGAXHL.js → views-C3GJOBDG.js} +66 -22
  180. package/dist/cli/{workflow-2D4WX55R.mjs → workflow-CS22E7TC.mjs} +10 -10
  181. package/dist/cli/{workflow-L2QTQZYV.js → workflow-ZNWCZEGN.js} +20 -20
  182. package/dist/{client-DoUVSkqC.d.mts → client-BlLYQDNo.d.mts} +1 -1
  183. package/dist/{client-DQm56zMs.d.ts → client-DSQlkIDO.d.ts} +1 -1
  184. package/dist/{client-core-C7KkUIE_.d.ts → client-core-CDwapXy5.d.ts} +167 -108
  185. package/dist/{client-core-CPlwsC1Q.d.mts → client-core-rX7n2H8U.d.mts} +167 -108
  186. package/dist/{compiler-manifest-DsxsQP-T.d.mts → compiler-manifest-BHNC4RL-.d.mts} +58 -21
  187. package/dist/{compiler-manifest-DsxsQP-T.d.ts → compiler-manifest-BHNC4RL-.d.ts} +58 -21
  188. package/dist/{errors-qdJUVQ3g.d.mts → errors-D7sPXrvB.d.mts} +1 -1
  189. package/dist/{errors-Bk5h1D-C.d.ts → errors-lhtIWG5Z.d.ts} +1 -1
  190. package/dist/{index-bL66eHYz.d.ts → index-CQTBHXHr.d.ts} +1 -1
  191. package/dist/{index-PaupwX1B.d.mts → index-NaDZq2xf.d.mts} +1 -1
  192. package/dist/index.d.mts +7 -7
  193. package/dist/index.d.ts +7 -7
  194. package/dist/index.js +15 -15
  195. package/dist/index.mjs +11 -11
  196. package/dist/install-integrity.json +131 -132
  197. package/dist/monitor-fleet-contract.d.mts +17 -11
  198. package/dist/monitor-fleet-contract.d.ts +17 -11
  199. package/dist/monitor-fleet-contract.js +3 -3
  200. package/dist/monitor-fleet-contract.mjs +2 -2
  201. package/dist/monitor-input-contract.js +2 -2
  202. package/dist/monitor-input-contract.mjs +1 -1
  203. package/dist/plays/bundle-play-file.d.mts +3 -3
  204. package/dist/plays/bundle-play-file.d.ts +3 -3
  205. package/dist/plays/bundle-play-file.mjs +67 -3
  206. package/dist/plays/csv-data-input.js +3 -3
  207. package/dist/plays/csv-data-input.mjs +2 -2
  208. package/dist/plays/play-description.d.mts +2 -2
  209. package/dist/plays/play-description.d.ts +2 -2
  210. package/dist/plays/run-request.d.mts +2 -2
  211. package/dist/plays/run-request.d.ts +2 -2
  212. package/dist/plays/run-request.js +3 -3
  213. package/dist/plays/run-request.mjs +2 -2
  214. package/dist/release.d.mts +1 -1
  215. package/dist/release.d.ts +1 -1
  216. package/dist/release.js +2 -2
  217. package/dist/release.mjs +1 -1
  218. package/dist/server.d.mts +4 -4
  219. package/dist/server.d.ts +4 -4
  220. package/dist/server.js +12 -12
  221. package/dist/server.mjs +6 -6
  222. package/package.json +1 -1
  223. package/dist/cli/auth-UP2RGPI6.js +0 -43
  224. package/dist/cli/chunk-5LZ5VSOK.mjs +0 -405
  225. package/dist/cli/chunk-D3J2Y2BP.js +0 -405
  226. package/dist/cli/describe-CI4MREFF.mjs +0 -50
  227. package/dist/cli/describe-IVTSD7ST.js +0 -50
  228. package/dist/cli/git-R3W25XIF.js +0 -25
  229. package/dist/cli/pages-FUOSF6BE.mjs +0 -266
  230. package/dist/cli/pages-TLC2N6L7.js +0 -266
  231. package/dist/cli/search-NB5CBALV.js +0 -33
  232. package/dist/cli/sessions-SFCZSB77.js +0 -22
  233. package/dist/cli/skills-WIJEHVLA.js +0 -37
  234. package/dist/cli/tools-VMMERMLO.js +0 -57
  235. package/dist/cli/update-54WZQDTS.js +0 -35
@@ -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 _chunkHCD36BP6js = require('./chunk-HCD36BP6.js');
3
+ var _chunkZEV2Y56Vjs = require('./chunk-ZEV2Y56V.js');
4
4
 
5
5
  // src/cli/npm-script-policy.ts
6
6
  var _child_process = require('child_process');
@@ -13,7 +13,7 @@ function npmSupportsAllowScripts(version) {
13
13
  }
14
14
  function readNpmVersion(env) {
15
15
  try {
16
- const plan = _chunkHCD36BP6js.resolveShellSpawn.call(void 0, "npm", ["--version"], process.platform, env);
16
+ const plan = _chunkZEV2Y56Vjs.resolveShellSpawn.call(void 0, "npm", ["--version"], process.platform, env);
17
17
  const result = _child_process.spawnSync.call(void 0, plan.command, plan.args, {
18
18
  encoding: "utf8",
19
19
  env,
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  printCommandEnvelope
3
- } from "./chunk-62SOZ67Y.mjs";
3
+ } from "./chunk-ANUKBZ6W.mjs";
4
4
 
5
5
  // src/cli/feedback-preferences.ts
6
6
  import {
@@ -4,21 +4,21 @@
4
4
 
5
5
 
6
6
 
7
- var _chunkB2AS3R5Wjs = require('./chunk-B2AS3R5W.js');
7
+ var _chunkZISEH7OLjs = require('./chunk-ZISEH7OL.js');
8
8
 
9
9
 
10
10
 
11
- var _chunkHCD36BP6js = require('./chunk-HCD36BP6.js');
11
+ var _chunkZEV2Y56Vjs = require('./chunk-ZEV2Y56V.js');
12
12
 
13
13
 
14
14
 
15
- var _chunkEGTUOYYGjs = require('./chunk-EGTUOYYG.js');
15
+ var _chunkLN6RXDTBjs = require('./chunk-LN6RXDTB.js');
16
16
 
17
17
 
18
- var _chunkXBK6WCVAjs = require('./chunk-XBK6WCVA.js');
18
+ var _chunkZILSRDINjs = require('./chunk-ZILSRDIN.js');
19
19
 
20
20
 
21
- var _chunkUWNVFAFNjs = require('./chunk-UWNVFAFN.js');
21
+ var _chunkCWSLUNA6js = require('./chunk-CWSLUNA6.js');
22
22
 
23
23
  // src/cli/compatibility-catalog.ts
24
24
  var readers = /* @__PURE__ */ new WeakMap();
@@ -45,7 +45,7 @@ function trustedAutoUpdateRegistryUrl(baseUrl) {
45
45
  async function reportAutoUpdateEvent(input) {
46
46
  let apiKey = "";
47
47
  try {
48
- apiKey = _chunkXBK6WCVAjs.resolveApiKeyForBaseUrl.call(void 0, input.baseUrl);
48
+ apiKey = _chunkZILSRDINjs.resolveApiKeyForBaseUrl.call(void 0, input.baseUrl);
49
49
  } catch (e2) {
50
50
  return;
51
51
  }
@@ -61,15 +61,15 @@ async function reportAutoUpdateEvent(input) {
61
61
  headers: {
62
62
  Authorization: `Bearer ${apiKey}`,
63
63
  "Content-Type": "application/json",
64
- "User-Agent": `deepline-ts-sdk/${_chunkUWNVFAFNjs.SDK_VERSION}`,
64
+ "User-Agent": `deepline-ts-sdk/${_chunkCWSLUNA6js.SDK_VERSION}`,
65
65
  "X-Deepline-Client-Family": "sdk",
66
66
  "X-Deepline-CLI-Family": "sdk",
67
- "X-Deepline-CLI-Version": _chunkUWNVFAFNjs.SDK_VERSION,
68
- "X-Deepline-SDK-Version": _chunkUWNVFAFNjs.SDK_VERSION
67
+ "X-Deepline-CLI-Version": _chunkCWSLUNA6js.SDK_VERSION,
68
+ "X-Deepline-SDK-Version": _chunkCWSLUNA6js.SDK_VERSION
69
69
  },
70
70
  body: JSON.stringify({
71
71
  event: input.event,
72
- current_version: _optionalChain([input, 'access', _4 => _4.response, 'access', _5 => _5.current, 'optionalAccess', _6 => _6.trim, 'call', _7 => _7()]) || _chunkUWNVFAFNjs.SDK_VERSION,
72
+ current_version: _optionalChain([input, 'access', _4 => _4.response, 'access', _5 => _5.current, 'optionalAccess', _6 => _6.trim, 'call', _7 => _7()]) || _chunkCWSLUNA6js.SDK_VERSION,
73
73
  target_version: input.response.latest,
74
74
  reason: _optionalChain([input, 'access', _8 => _8.response, 'access', _9 => _9.auto_update, 'optionalAccess', _10 => _10.reason]),
75
75
  command: _nullishCoalesce(input.response.command, () => ( null)),
@@ -88,13 +88,13 @@ function envTruthy(name) {
88
88
  return value === "1" || value === "true" || value === "yes";
89
89
  }
90
90
  function shouldSkipSelfUpdate(policy) {
91
- return policy === "off" || envTruthy("DEEPLINE_SKIP_SELF_UPDATE") || envTruthy("DEEPLINE_NO_AUTO_UPDATE") || envTruthy("DEEPLINE_SKIP_SDK_AUTO_UPDATE") || envTruthy("DEEPLINE_DISABLE_AUTO_UPDATE") || !_chunkB2AS3R5Wjs.shouldRunCliAutoUpdate.call(void 0, ) || _chunkHCD36BP6js.isCiEnvironment.call(void 0, );
91
+ return policy === "off" || envTruthy("DEEPLINE_SKIP_SELF_UPDATE") || envTruthy("DEEPLINE_NO_AUTO_UPDATE") || envTruthy("DEEPLINE_SKIP_SDK_AUTO_UPDATE") || envTruthy("DEEPLINE_DISABLE_AUTO_UPDATE") || !_chunkZISEH7OLjs.shouldRunCliAutoUpdate.call(void 0, ) || _chunkZEV2Y56Vjs.isCiEnvironment.call(void 0, );
92
92
  }
93
93
  function isDowngradeAutoUpdateResponse(response) {
94
94
  const target = _optionalChain([response, 'optionalAccess', _17 => _17.latest, 'optionalAccess', _18 => _18.trim, 'call', _19 => _19()]);
95
- const current = _optionalChain([response, 'optionalAccess', _20 => _20.current, 'optionalAccess', _21 => _21.trim, 'call', _22 => _22()]) || _chunkUWNVFAFNjs.SDK_VERSION;
95
+ const current = _optionalChain([response, 'optionalAccess', _20 => _20.current, 'optionalAccess', _21 => _21.trim, 'call', _22 => _22()]) || _chunkCWSLUNA6js.SDK_VERSION;
96
96
  if (!target) return false;
97
- return _chunkB2AS3R5Wjs.compareUpdateVersions.call(void 0, target, current) < 0;
97
+ return _chunkZISEH7OLjs.compareUpdateVersions.call(void 0, target, current) < 0;
98
98
  }
99
99
  function relaunchCurrentCommand(plan, runtime = {}) {
100
100
  return new Promise((resolve) => {
@@ -147,7 +147,7 @@ async function maybeAutoUpdateAndRelaunch(response, baseUrl, policy = "configure
147
147
  }
148
148
  if (isDowngradeAutoUpdateResponse(response)) {
149
149
  const target = response.latest;
150
- const current = _optionalChain([response, 'access', _26 => _26.current, 'optionalAccess', _27 => _27.trim, 'call', _28 => _28()]) || _chunkUWNVFAFNjs.SDK_VERSION;
150
+ const current = _optionalChain([response, 'access', _26 => _26.current, 'optionalAccess', _27 => _27.trim, 'call', _28 => _28()]) || _chunkCWSLUNA6js.SDK_VERSION;
151
151
  process.stderr.write(
152
152
  `Deepline SDK/CLI auto-update refused: server advertised older ${target} than current ${current}. Continuing without mutating the CLI.
153
153
  `
@@ -155,21 +155,21 @@ async function maybeAutoUpdateAndRelaunch(response, baseUrl, policy = "configure
155
155
  return false;
156
156
  }
157
157
  const packageSpec = response.latest ? `deepline@${response.latest}` : void 0;
158
- const plan = _chunkB2AS3R5Wjs.resolveUpdatePlan.call(void 0, {
158
+ const plan = _chunkZISEH7OLjs.resolveUpdatePlan.call(void 0, {
159
159
  packageSpec,
160
160
  requireVerifiedNpmOwnership: true,
161
161
  npmFallbackRegistryUrl: trustedAutoUpdateRegistryUrl(baseUrl)
162
162
  });
163
- if (!_chunkB2AS3R5Wjs.canAutomaticallyApplyUpdatePlan.call(void 0, plan)) {
163
+ if (!_chunkZISEH7OLjs.canAutomaticallyApplyUpdatePlan.call(void 0, plan)) {
164
164
  return false;
165
165
  }
166
166
  if (!autoUpdate.required && autoUpdate.reason !== "rollback_forced") {
167
167
  deferredAutoUpdate = async () => {
168
168
  await applyAutoUpdate(response, baseUrl, plan, "next_command");
169
169
  };
170
- if (_chunkEGTUOYYGjs.isJsonOutputMode.call(void 0, )) {
170
+ if (_chunkLN6RXDTBjs.isJsonOutputMode.call(void 0, )) {
171
171
  const target = _optionalChain([response, 'access', _29 => _29.latest, 'optionalAccess', _30 => _30.trim, 'call', _31 => _31()]);
172
- _chunkEGTUOYYGjs.addJsonNotice.call(void 0, {
172
+ _chunkLN6RXDTBjs.addJsonNotice.call(void 0, {
173
173
  code: "sdk_update_queued",
174
174
  message: `Deepline SDK/CLI update${target ? ` to ${target}` : ""} is queued after this command; the next command will use it if installation succeeds.`
175
175
  });
@@ -182,7 +182,7 @@ async function maybeAutoUpdateAndRelaunch(response, baseUrl, policy = "configure
182
182
  return true;
183
183
  }
184
184
  async function applyAutoUpdate(response, baseUrl, plan, takesEffect) {
185
- if (!_chunkB2AS3R5Wjs.canAutomaticallyApplyUpdatePlan.call(void 0, plan)) return false;
185
+ if (!_chunkZISEH7OLjs.canAutomaticallyApplyUpdatePlan.call(void 0, plan)) return false;
186
186
  const autoUpdate = response.auto_update;
187
187
  const label = _optionalChain([autoUpdate, 'optionalAccess', _32 => _32.reason]) === "rollback_forced" ? "has a server rollback pending and needs the latest rollback-aware CLI" : _optionalChain([autoUpdate, 'optionalAccess', _33 => _33.reason]) === "deprecated" ? "is deprecated and will update automatically" : _optionalChain([autoUpdate, 'optionalAccess', _34 => _34.required]) ? "requires an update" : "has an update available and will update automatically";
188
188
  process.stderr.write(
@@ -195,7 +195,7 @@ async function applyAutoUpdate(response, baseUrl, plan, takesEffect) {
195
195
  event: "started",
196
196
  installKind: plan.kind
197
197
  });
198
- const updateResult = await _chunkB2AS3R5Wjs.runAutomaticUpdatePlan.call(void 0, plan);
198
+ const updateResult = await _chunkZISEH7OLjs.runAutomaticUpdatePlan.call(void 0, plan);
199
199
  if (updateResult.status === "skipped_previous_failure") {
200
200
  void reportAutoUpdateEvent({
201
201
  baseUrl,
@@ -233,7 +233,7 @@ async function applyAutoUpdate(response, baseUrl, plan, takesEffect) {
233
233
  exitCode: 0
234
234
  });
235
235
  try {
236
- await _chunkHCD36BP6js.syncSdkSkillsIfNeeded.call(void 0, baseUrl, {
236
+ await _chunkZEV2Y56Vjs.syncSdkSkillsIfNeeded.call(void 0, baseUrl, {
237
237
  mode: "detached",
238
238
  update: _optionalChain([response, 'access', _36 => _36.skills, 'optionalAccess', _37 => _37.requires_cli_update]) ? void 0 : response.skills,
239
239
  afterCliUpdate: {
@@ -260,7 +260,7 @@ var _crypto = require('crypto');
260
260
  var TOOL_EXECUTE_PROGRESS_INTERVAL_MS = 15e3;
261
261
  var activeToolExecuteCommand = null;
262
262
  function progressLine(line) {
263
- if (!_chunkEGTUOYYGjs.isJsonOutputMode.call(void 0, )) console.error(line);
263
+ if (!_chunkLN6RXDTBjs.isJsonOutputMode.call(void 0, )) console.error(line);
264
264
  }
265
265
  function beginToolExecuteCommand() {
266
266
  if (activeToolExecuteCommand) return activeToolExecuteCommand.invocationId;
@@ -3,18 +3,16 @@
3
3
  var _chunkD3BCSAN7js = require('./chunk-D3BCSAN7.js');
4
4
 
5
5
 
6
- var _chunkMQX363YFjs = require('./chunk-MQX363YF.js');
6
+ var _chunkXBAH3TKUjs = require('./chunk-XBAH3TKU.js');
7
7
 
8
8
 
9
- var _chunkD3J2Y2BPjs = require('./chunk-D3J2Y2BP.js');
10
9
 
11
10
 
11
+ var _chunkLN6RXDTBjs = require('./chunk-LN6RXDTB.js');
12
12
 
13
- var _chunkEGTUOYYGjs = require('./chunk-EGTUOYYG.js');
14
13
 
15
14
 
16
-
17
- var _chunkXBK6WCVAjs = require('./chunk-XBK6WCVA.js');
15
+ var _chunkZILSRDINjs = require('./chunk-ZILSRDIN.js');
18
16
 
19
17
  // src/cli/commands/search.ts
20
18
  var _commander = require('commander');
@@ -24,7 +22,7 @@ var _fs = require('fs');
24
22
  var _path = require('path');
25
23
  var SEARCH_REF_TTL_MS = 15 * 6e4;
26
24
  function lastSearchPath() {
27
- return _path.join.call(void 0, _chunkXBK6WCVAjs.sdkCliStateDirPath.call(void 0, _chunkXBK6WCVAjs.resolveConfig.call(void 0, ).baseUrl), "last-search.json");
25
+ return _path.join.call(void 0, _chunkZILSRDINjs.sdkCliStateDirPath.call(void 0, _chunkZILSRDINjs.resolveConfig.call(void 0, ).baseUrl), "last-search.json");
28
26
  }
29
27
  function rememberSearchRef(searchRef) {
30
28
  writeSearchRefs({ searchRef });
@@ -65,7 +63,7 @@ var SEARCH_TYPES = [
65
63
  "custom",
66
64
  "docs"
67
65
  ];
68
- var USAGE = 'Usage: deepline search "<task>" ["<task>" ...] [--type <types>] [--json]';
66
+ var USAGE = 'Usage: deepline search "<task>" ["<task>" ...] [--json]';
69
67
  function parseTypes(flag, raw) {
70
68
  const names = (_nullishCoalesce(raw, () => ( ""))).split(",").map((name) => name.trim().toLowerCase()).filter(Boolean);
71
69
  const unknown = names.filter(
@@ -134,9 +132,9 @@ async function runSearch(queryInputs, options, types, exclude = []) {
134
132
  console.error("--summary-width must be an integer of at least 2.");
135
133
  return 1;
136
134
  }
137
- const client = new (0, _chunkMQX363YFjs.DeeplineClient)();
135
+ const client = new (0, _chunkXBAH3TKUjs.DeeplineClient)();
138
136
  const json = options.json === true;
139
- const renderer = json ? void 0 : await Promise.resolve().then(() => _interopRequireWildcard(require("./search-output-GCT7PQIT.js")));
137
+ const renderer = json ? void 0 : await Promise.resolve().then(() => _interopRequireWildcard(require("./search-output-VJYE7USJ.js")));
140
138
  const searches = [];
141
139
  const chunks = [];
142
140
  const refs = /* @__PURE__ */ new Map();
@@ -159,7 +157,7 @@ async function runSearch(queryInputs, options, types, exclude = []) {
159
157
  const text = _optionalChain([renderer, 'optionalAccess', _12 => _12.renderSearchResults, 'call', _13 => _13(result, summaryWidth)]);
160
158
  if (!multiple) {
161
159
  if (searchRef) rememberSearchRef(searchRef);
162
- _chunkEGTUOYYGjs.printCommandEnvelope.call(void 0, result, { json, text });
160
+ _chunkLN6RXDTBjs.printCommandEnvelope.call(void 0, result, { json, text });
163
161
  return 0;
164
162
  }
165
163
  searches.push({ ...result, query });
@@ -173,8 +171,8 @@ ${text}`);
173
171
  }
174
172
  } catch (error) {
175
173
  if (!multiple) throw error;
176
- const payload = _chunkEGTUOYYGjs.errorToJsonPayload.call(void 0, error);
177
- const queryExitCode = _nullishCoalesce(payload.exitCode, () => ( _chunkD3J2Y2BPjs.resolveSdkCliFailureExitCode.call(void 0, error)));
174
+ const payload = _chunkLN6RXDTBjs.errorToJsonPayload.call(void 0, error);
175
+ const queryExitCode = _nullishCoalesce(payload.exitCode, () => ( _chunkLN6RXDTBjs.resolveSdkCliFailureExitCode.call(void 0, error)));
178
176
  searches.push({ ...payload, query, exitCode: queryExitCode });
179
177
  if (!json) {
180
178
  console.error(`${JSON.stringify(query)}: ${payload.error.message}`);
@@ -186,7 +184,7 @@ Search failed.
186
184
  }
187
185
  }
188
186
  rememberSearchRefsByTool(refs);
189
- _chunkEGTUOYYGjs.printCommandEnvelope.call(void 0,
187
+ _chunkLN6RXDTBjs.printCommandEnvelope.call(void 0,
190
188
  { searches },
191
189
  {
192
190
  json,
@@ -198,21 +196,21 @@ Search failed.
198
196
  function registerDeprecatedSearchCommand(parent, typesFor) {
199
197
  const name = `deepline ${parent.name()} search`;
200
198
  addSearchOptions(
201
- parent.command("search [task]").description(`Deprecated. Use deepline search --type <types>.`).addHelpText(
199
+ parent.command("search [task]").description(`Deprecated. Use deepline search.`).addHelpText(
202
200
  "after",
203
201
  `
204
202
  Notes:
205
- Deprecated alias for the unified search. It runs deepline search with the
206
- matching --type and returns the same results envelope.
203
+ Deprecated alias for the unified search. It runs deepline search for the
204
+ matching kinds and returns the same results envelope.
207
205
 
208
206
  Examples:
209
- deepline search "name and company domain -> work email" --type ${typesFor({}).join(",")}
207
+ deepline search "name and company domain -> work email"
210
208
  `
211
209
  ).option("--all", "Include plays your workspace created").option("--compact", "Accepted for compatibility; results are compact")
212
210
  ).action(async (query, options) => {
213
211
  const types = typesFor(options);
214
212
  console.error(
215
- `${name} is deprecated. Use: deepline search${query ? ` ${JSON.stringify(query)}` : ""} --type ${types.join(",")}`
213
+ `${name} is deprecated. Use: deepline search${query ? ` ${JSON.stringify(query)}` : ""}`
216
214
  );
217
215
  process.exitCode = await runSearch(
218
216
  query === void 0 ? [] : [query],
@@ -227,7 +225,7 @@ function registerSearchCommand(program) {
227
225
  "Search tools, monitors, plays, and docs together, ranked by intent."
228
226
  ).option(
229
227
  "--type <types>",
230
- "Only these kinds, comma-separated: tools, plays, monitors, docs",
228
+ "Only these kinds, comma-separated: tools (or plays, the same), monitors, docs",
231
229
  appendCsv
232
230
  ).option(
233
231
  "--exclude <types>",
@@ -303,15 +303,27 @@ function lintMonitorSpecTemplate(value, path = "monitor") {
303
303
  const ordered = issues.sort(issueOrder);
304
304
  return ordered.some((issue) => issue.severity === "error") ? { issues: ordered } : { normalized, issues: ordered };
305
305
  }
306
+ var COMPILED_TEMPLATES = /* @__PURE__ */ new Map();
307
+ var COMPILED_TEMPLATES_MAX = 1e3;
308
+ function compiledTemplate(source) {
309
+ const cached = COMPILED_TEMPLATES.get(source);
310
+ if (cached) return cached;
311
+ if (COMPILED_TEMPLATES.size >= COMPILED_TEMPLATES_MAX) {
312
+ COMPILED_TEMPLATES.clear();
313
+ }
314
+ const compiled = _handlebars2.default.compile(source, {
315
+ noEscape: true,
316
+ strict: true,
317
+ knownHelpersOnly: true,
318
+ preventIndent: true
319
+ });
320
+ COMPILED_TEMPLATES.set(source, compiled);
321
+ return compiled;
322
+ }
306
323
  function renderValue(value, row) {
307
324
  if (typeof value === "string" && value.includes("{{")) {
308
325
  const context = Object.assign(/* @__PURE__ */ Object.create(null), row);
309
- return _handlebars2.default.compile(value, {
310
- noEscape: true,
311
- strict: true,
312
- knownHelpersOnly: true,
313
- preventIndent: true
314
- })(context, {
326
+ return compiledTemplate(value)(context, {
315
327
  allowProtoMethodsByDefault: false,
316
328
  allowProtoPropertiesByDefault: false,
317
329
  helpers: /* @__PURE__ */ Object.create(null),
@@ -145,7 +145,7 @@ function playReferenceForTool(tool) {
145
145
  return null;
146
146
  }
147
147
  function playSearchCommandForToolId(toolId) {
148
- return `deepline search --type prebuilts ${JSON.stringify(toolId.replace(/_/g, " "))}`;
148
+ return `deepline search ${JSON.stringify(toolId.replace(/_/g, " "))}`;
149
149
  }
150
150
  function playRunCommandForTool(tool, toolId, input) {
151
151
  const playReference = playReferenceForTool(tool);
@@ -2,10 +2,10 @@
2
2
 
3
3
 
4
4
 
5
- var _chunkEGTUOYYGjs = require('./chunk-EGTUOYYG.js');
5
+ var _chunkLN6RXDTBjs = require('./chunk-LN6RXDTB.js');
6
6
 
7
7
 
8
- var _chunkXBK6WCVAjs = require('./chunk-XBK6WCVA.js');
8
+ var _chunkZILSRDINjs = require('./chunk-ZILSRDIN.js');
9
9
 
10
10
  // src/cli/commands/git.ts
11
11
  function shellQuote(value) {
@@ -32,11 +32,11 @@ function renderDeployment(deployment) {
32
32
  return `${deployment.id} ${source} (${kind}) - ${deployment.status}${suffix}`;
33
33
  }
34
34
  async function handleList(options) {
35
- const { http } = _chunkEGTUOYYGjs.getAuthedHttpClient.call(void 0, );
35
+ const { http } = _chunkLN6RXDTBjs.getAuthedHttpClient.call(void 0, );
36
36
  const payload = await http.get(
37
37
  `/api/v2/play-projects${options.all ? "?includeDisabled=1" : ""}`
38
38
  );
39
- _chunkEGTUOYYGjs.printCommandEnvelope.call(void 0,
39
+ _chunkLN6RXDTBjs.printCommandEnvelope.call(void 0,
40
40
  {
41
41
  projects: payload.projects,
42
42
  count: payload.projects.length,
@@ -73,7 +73,7 @@ function describeInstallationStatus(installation) {
73
73
  }
74
74
  }
75
75
  async function handleStatus(options) {
76
- const { http } = _chunkEGTUOYYGjs.getAuthedHttpClient.call(void 0, );
76
+ const { http } = _chunkLN6RXDTBjs.getAuthedHttpClient.call(void 0, );
77
77
  const payload = await http.get("/api/v2/github/installation");
78
78
  const installation = payload.installation;
79
79
  const others = (_nullishCoalesce(payload.installations, () => ( []))).filter(
@@ -136,7 +136,7 @@ async function handleStatus(options) {
136
136
  )
137
137
  );
138
138
  }
139
- _chunkEGTUOYYGjs.printCommandEnvelope.call(void 0,
139
+ _chunkLN6RXDTBjs.printCommandEnvelope.call(void 0,
140
140
  {
141
141
  installation,
142
142
  installations: _nullishCoalesce(payload.installations, () => ( [])),
@@ -147,10 +147,10 @@ async function handleStatus(options) {
147
147
  );
148
148
  }
149
149
  async function handleRepos(options) {
150
- const { http } = _chunkEGTUOYYGjs.getAuthedHttpClient.call(void 0, );
150
+ const { http } = _chunkLN6RXDTBjs.getAuthedHttpClient.call(void 0, );
151
151
  const query = options.installation ? `?installationId=${encodeURIComponent(options.installation)}` : "";
152
152
  const payload = await http.get(`/api/v2/github/repos${query}`);
153
- _chunkEGTUOYYGjs.printCommandEnvelope.call(void 0,
153
+ _chunkLN6RXDTBjs.printCommandEnvelope.call(void 0,
154
154
  {
155
155
  installation: payload.installation,
156
156
  repositories: payload.repositories,
@@ -171,7 +171,7 @@ async function handleRepos(options) {
171
171
  }
172
172
  async function resolveRepoId(repo, installation) {
173
173
  if (/^\d+$/.test(repo)) return Number(repo);
174
- const { http } = _chunkEGTUOYYGjs.getAuthedHttpClient.call(void 0, );
174
+ const { http } = _chunkLN6RXDTBjs.getAuthedHttpClient.call(void 0, );
175
175
  const query = installation ? `?installationId=${encodeURIComponent(installation)}` : "";
176
176
  const payload = await http.get(
177
177
  `/api/v2/github/repos${query}`
@@ -188,7 +188,7 @@ async function resolveRepoId(repo, installation) {
188
188
  }
189
189
  async function handleLink(repo, options) {
190
190
  const repoId = await resolveRepoId(repo, options.installation);
191
- const { http } = _chunkEGTUOYYGjs.getAuthedHttpClient.call(void 0, );
191
+ const { http } = _chunkLN6RXDTBjs.getAuthedHttpClient.call(void 0, );
192
192
  const payload = await http.post("/api/v2/play-projects", {
193
193
  repoId,
194
194
  ...options.installation !== void 0 ? { installationId: options.installation } : {},
@@ -197,7 +197,7 @@ async function handleLink(repo, options) {
197
197
  ...options.branch !== void 0 ? { productionBranch: options.branch } : {},
198
198
  ...options.prChecks !== void 0 ? { checkOnPullRequest: options.prChecks } : {}
199
199
  });
200
- _chunkEGTUOYYGjs.printCommandEnvelope.call(void 0,
200
+ _chunkLN6RXDTBjs.printCommandEnvelope.call(void 0,
201
201
  {
202
202
  project: payload.project,
203
203
  render: {
@@ -220,11 +220,11 @@ async function handleLink(repo, options) {
220
220
  );
221
221
  }
222
222
  async function handleGet(id, options) {
223
- const { http } = _chunkEGTUOYYGjs.getAuthedHttpClient.call(void 0, );
223
+ const { http } = _chunkLN6RXDTBjs.getAuthedHttpClient.call(void 0, );
224
224
  const payload = await http.get(
225
225
  `/api/v2/play-projects/${encodeURIComponent(id)}`
226
226
  );
227
- _chunkEGTUOYYGjs.printCommandEnvelope.call(void 0,
227
+ _chunkLN6RXDTBjs.printCommandEnvelope.call(void 0,
228
228
  {
229
229
  project: payload.project,
230
230
  render: {
@@ -240,7 +240,7 @@ async function handleGet(id, options) {
240
240
  );
241
241
  }
242
242
  async function handleSet(id, options) {
243
- const { http } = _chunkEGTUOYYGjs.getAuthedHttpClient.call(void 0, );
243
+ const { http } = _chunkLN6RXDTBjs.getAuthedHttpClient.call(void 0, );
244
244
  const payload = await http.patch(
245
245
  `/api/v2/play-projects/${encodeURIComponent(id)}`,
246
246
  {
@@ -251,7 +251,7 @@ async function handleSet(id, options) {
251
251
  ...options.disabled !== void 0 ? { disabled: options.disabled } : {}
252
252
  }
253
253
  );
254
- _chunkEGTUOYYGjs.printCommandEnvelope.call(void 0,
254
+ _chunkLN6RXDTBjs.printCommandEnvelope.call(void 0,
255
255
  {
256
256
  project: payload.project,
257
257
  render: {
@@ -264,9 +264,9 @@ async function handleSet(id, options) {
264
264
  );
265
265
  }
266
266
  async function handleUnlink(id, options) {
267
- const { http } = _chunkEGTUOYYGjs.getAuthedHttpClient.call(void 0, );
267
+ const { http } = _chunkLN6RXDTBjs.getAuthedHttpClient.call(void 0, );
268
268
  await http.delete(`/api/v2/play-projects/${encodeURIComponent(id)}`);
269
- _chunkEGTUOYYGjs.printCommandEnvelope.call(void 0,
269
+ _chunkLN6RXDTBjs.printCommandEnvelope.call(void 0,
270
270
  {
271
271
  ok: true,
272
272
  id,
@@ -286,10 +286,10 @@ async function handleUnlink(id, options) {
286
286
  );
287
287
  }
288
288
  async function handleConnect(options) {
289
- const baseUrl = _chunkXBK6WCVAjs.resolveBaseUrlOnly.call(void 0, );
289
+ const baseUrl = _chunkZILSRDINjs.resolveBaseUrlOnly.call(void 0, );
290
290
  const connectUrl = `${baseUrl.replace(/\/$/, "")}/api/v2/github/connect`;
291
- const opened = _chunkEGTUOYYGjs.openInBrowser.call(void 0, connectUrl);
292
- _chunkEGTUOYYGjs.printCommandEnvelope.call(void 0,
291
+ const opened = _chunkLN6RXDTBjs.openInBrowser.call(void 0, connectUrl);
292
+ _chunkLN6RXDTBjs.printCommandEnvelope.call(void 0,
293
293
  {
294
294
  connectUrl,
295
295
  browser: opened,
@@ -311,7 +311,7 @@ async function handleConnect(options) {
311
311
  );
312
312
  }
313
313
  async function handleDeploymentsList(options) {
314
- const { http } = _chunkEGTUOYYGjs.getAuthedHttpClient.call(void 0, );
314
+ const { http } = _chunkLN6RXDTBjs.getAuthedHttpClient.call(void 0, );
315
315
  const query = new URLSearchParams();
316
316
  if (options.repo) query.set("projectId", options.repo);
317
317
  if (options.limit) query.set("limit", options.limit);
@@ -319,7 +319,7 @@ async function handleDeploymentsList(options) {
319
319
  const payload = await http.get(
320
320
  `/api/v2/deployments${suffix}`
321
321
  );
322
- _chunkEGTUOYYGjs.printCommandEnvelope.call(void 0,
322
+ _chunkLN6RXDTBjs.printCommandEnvelope.call(void 0,
323
323
  {
324
324
  deployments: payload.deployments,
325
325
  count: payload.deployments.length,
@@ -363,12 +363,12 @@ function renderDeploymentMonitorLines(results) {
363
363
  ]);
364
364
  }
365
365
  async function handleDeploymentGet(id, options) {
366
- const { http } = _chunkEGTUOYYGjs.getAuthedHttpClient.call(void 0, );
366
+ const { http } = _chunkLN6RXDTBjs.getAuthedHttpClient.call(void 0, );
367
367
  const payload = await http.get(`/api/v2/deployments/${encodeURIComponent(id)}`);
368
368
  const playLines = renderDeploymentPlayLines(payload.deployment.results);
369
369
  const monitorLines = renderDeploymentMonitorLines(payload.deployment.results);
370
370
  const repository = _nullishCoalesce(_optionalChain([payload, 'access', _10 => _10.project, 'optionalAccess', _11 => _11.repoFullName]), () => ( payload.deployment.repoFullName));
371
- _chunkEGTUOYYGjs.printCommandEnvelope.call(void 0,
371
+ _chunkLN6RXDTBjs.printCommandEnvelope.call(void 0,
372
372
  {
373
373
  deployment: payload.deployment,
374
374
  project: payload.project,
@@ -387,9 +387,9 @@ async function handleDeploymentGet(id, options) {
387
387
  );
388
388
  }
389
389
  async function handleDeploymentCancel(id, options) {
390
- const { http } = _chunkEGTUOYYGjs.getAuthedHttpClient.call(void 0, );
390
+ const { http } = _chunkLN6RXDTBjs.getAuthedHttpClient.call(void 0, );
391
391
  const payload = await http.post(`/api/v2/deployments/${encodeURIComponent(id)}/cancel`, {});
392
- _chunkEGTUOYYGjs.printCommandEnvelope.call(void 0,
392
+ _chunkLN6RXDTBjs.printCommandEnvelope.call(void 0,
393
393
  {
394
394
  cancelled: payload.cancelled,
395
395
  deployment: payload.deployment,