deepline 0.3.501 → 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 (210) 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 +20 -2
  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/deployment/vercel-fly-rollback-alignment.ts +29 -14
  15. package/dist/bundling-sources/shared_libs/play-runtime/durable-receipt-execution.ts +20 -2
  16. package/dist/bundling-sources/shared_libs/play-runtime/durable-runs-rollout.ts +46 -0
  17. package/dist/bundling-sources/shared_libs/play-runtime/execution-gateway-invocation-fence.ts +80 -4
  18. package/dist/bundling-sources/shared_libs/play-runtime/fixture-egress-fetch.ts +95 -0
  19. package/dist/bundling-sources/shared_libs/play-runtime/freshness-receipt-execution.ts +292 -45
  20. package/dist/bundling-sources/shared_libs/play-runtime/internal-bootstrap-token.ts +15 -0
  21. package/dist/bundling-sources/shared_libs/play-runtime/launch-identity.ts +3 -0
  22. package/dist/bundling-sources/shared_libs/play-runtime/play-http-request.ts +7 -3
  23. package/dist/bundling-sources/shared_libs/play-runtime/play-runtime-semantics.ts +31 -1
  24. package/dist/bundling-sources/shared_libs/play-runtime/post-code-recovery-policy.ts +231 -0
  25. package/dist/bundling-sources/shared_libs/play-runtime/prebuilt-result-quality.ts +264 -0
  26. package/dist/bundling-sources/shared_libs/play-runtime/protocol.ts +9 -0
  27. package/dist/bundling-sources/shared_libs/play-runtime/run-ending-event.ts +55 -0
  28. package/dist/bundling-sources/shared_libs/play-runtime/run-ledger.ts +126 -0
  29. package/dist/bundling-sources/shared_libs/play-runtime/runner-app/index.ts +70 -1
  30. package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/backends/daytona-launch-transport.ts +2 -9
  31. package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/backends/daytona-lifecycle.ts +51 -19
  32. package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/backends/local-process.ts +9 -4
  33. package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/backends/modal.ts +2 -0
  34. package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/runtime-sandbox-reconciliation.ts +2 -0
  35. package/dist/bundling-sources/shared_libs/play-runtime/runtime-actions.ts +12 -1
  36. package/dist/bundling-sources/shared_libs/play-runtime/runtime-authority.ts +3 -0
  37. package/dist/bundling-sources/shared_libs/play-runtime/runtime-gateway-oidc.ts +30 -8
  38. package/dist/bundling-sources/shared_libs/play-runtime/runtime-incident-drills.ts +42 -0
  39. package/dist/bundling-sources/shared_libs/play-runtime/runtime-operation-contract.ts +7 -0
  40. package/dist/bundling-sources/shared_libs/play-runtime/runtime-receipt-store-adapter.ts +26 -1
  41. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backend.ts +13 -0
  42. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/absurd-deadline-reconciliation.ts +53 -0
  43. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/absurd-runtime-worker.ts +631 -19
  44. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/durable-run-inventory.ts +719 -0
  45. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/durable-run-sql.ts +206 -0
  46. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/latest-cache-result.ts +83 -0
  47. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/postgres.ts +1453 -160
  48. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/receipt-gateway.ts +61 -0
  49. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/runtime-event-search.ts +29 -8
  50. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/runtime-queue-health.ts +27 -2
  51. package/dist/bundling-sources/shared_libs/play-runtime/test-runtime-seams.ts +45 -0
  52. package/dist/bundling-sources/shared_libs/play-runtime/tool-cache-policy.ts +18 -0
  53. package/dist/bundling-sources/shared_libs/play-runtime/tool-execute-retry-policy.ts +129 -14
  54. package/dist/bundling-sources/shared_libs/play-runtime/workflow-executor-auth.ts +2 -0
  55. package/dist/bundling-sources/shared_libs/plays/authoring-contract.ts +10 -1
  56. package/dist/bundling-sources/shared_libs/product-notifications/slack-delivery.ts +2 -0
  57. package/dist/cli/{auth-6ECHXOI4.mjs → auth-IC4WLSE3.mjs} +5 -5
  58. package/dist/cli/auth-ZCMSXZO4.js +43 -0
  59. package/dist/cli/{billing-75NZYRXA.mjs → billing-2VOV64SD.mjs} +6 -6
  60. package/dist/cli/{billing-QRR7O6BD.js → billing-LWQOII22.js} +79 -79
  61. package/dist/cli/{chunk-N2TJJNCW.js → chunk-2626LTU3.js} +291 -273
  62. package/dist/cli/{chunk-VL72UKNW.js → chunk-26RSSTCF.js} +26 -26
  63. package/dist/cli/{chunk-HDKXSHGA.js → chunk-2K2QBLYO.js} +53 -53
  64. package/dist/cli/{chunk-463ZOO2L.js → chunk-33JUK73X.js} +7 -7
  65. package/dist/cli/{chunk-KTOAJP4N.js → chunk-3CXHK4TW.js} +10 -10
  66. package/dist/cli/{chunk-YPTZJ7LO.js → chunk-4IIYSBEP.js} +70 -13
  67. package/dist/cli/{chunk-VTDAJZIJ.mjs → chunk-5GI6NKOE.mjs} +20 -1
  68. package/dist/cli/{chunk-TFFJ2PRN.mjs → chunk-5M5WSFRZ.mjs} +70 -13
  69. package/dist/cli/{chunk-5S7MLAI7.mjs → chunk-6XTE6C3W.mjs} +41 -23
  70. package/dist/cli/{chunk-7L6QNHUL.mjs → chunk-7HEDCIR3.mjs} +1 -1
  71. package/dist/cli/{chunk-C5R3UH5V.mjs → chunk-7MJYZ33I.mjs} +2 -6
  72. package/dist/cli/{chunk-TOE7LHEA.js → chunk-A2C6ONWA.js} +6 -6
  73. package/dist/cli/{chunk-QQ3JJYE2.js → chunk-AARF4SOW.js} +17 -13
  74. package/dist/cli/{chunk-APAHMCGR.js → chunk-B3X4YWQ6.js} +53 -53
  75. package/dist/cli/{chunk-J74N375S.mjs → chunk-BI2Q45SY.mjs} +4 -4
  76. package/dist/cli/{chunk-GBICEYUA.js → chunk-BN5VKY4X.js} +141 -20
  77. package/dist/cli/{chunk-UR7JOSLT.js → chunk-C5RQTTLP.js} +26 -7
  78. package/dist/cli/{chunk-ZUOKIBLJ.mjs → chunk-D27HP3HS.mjs} +2 -2
  79. package/dist/cli/{chunk-UJRN6YP6.mjs → chunk-DPI5OYVU.mjs} +10 -6
  80. package/dist/cli/{chunk-MSLXAVVK.mjs → chunk-EDMV4JT5.mjs} +2 -2
  81. package/dist/cli/{chunk-ZUQHQGC5.mjs → chunk-EQ3WMKFY.mjs} +5 -5
  82. package/dist/cli/{chunk-5X4AUFYW.js → chunk-F73PD2XD.js} +7 -7
  83. package/dist/cli/{chunk-O3DDVP7Z.mjs → chunk-FHJ54BHH.mjs} +2 -2
  84. package/dist/cli/{chunk-SV2TEZ2M.js → chunk-FIUTDSJX.js} +5 -4
  85. package/dist/cli/{chunk-W6JTHVPF.js → chunk-FVDTERO2.js} +21 -21
  86. package/dist/cli/{chunk-CJJ7JBM2.js → chunk-FZHOWPSN.js} +23 -21
  87. package/dist/cli/{chunk-WJUDAHIQ.mjs → chunk-GIHNEYBG.mjs} +1 -1
  88. package/dist/cli/{chunk-V5NHEYU7.mjs → chunk-GLZBFBJS.mjs} +5 -5
  89. package/dist/cli/{chunk-VVEMPC2I.js → chunk-HRTDCXHI.js} +2 -2
  90. package/dist/cli/{chunk-BOFCF4L7.js → chunk-HS63YBT5.js} +3 -3
  91. package/dist/cli/{chunk-4OXHLTCP.js → chunk-IIP46RVC.js} +1 -1
  92. package/dist/cli/{chunk-SAW3FBCA.mjs → chunk-ITJ7NB2D.mjs} +6 -0
  93. package/dist/cli/{chunk-NA3J3F2Z.mjs → chunk-J6RBOLK7.mjs} +1 -1
  94. package/dist/cli/{chunk-PXIF74UJ.mjs → chunk-JJVN7OIX.mjs} +4 -4
  95. package/dist/cli/{chunk-T7E3XEPG.mjs → chunk-JPDD4Y53.mjs} +10 -8
  96. package/dist/cli/{chunk-OKOXB3LY.mjs → chunk-K7NFFQFU.mjs} +2 -2
  97. package/dist/cli/{chunk-66XDYH5T.mjs → chunk-KGLVATEB.mjs} +2 -2
  98. package/dist/cli/{chunk-EHVFBD36.mjs → chunk-KPBBT6OS.mjs} +2 -1
  99. package/dist/cli/{chunk-MADTHS56.mjs → chunk-L3TZV625.mjs} +1 -1
  100. package/dist/cli/{chunk-FS7XYDOF.js → chunk-MJQOG4TZ.js} +16 -16
  101. package/dist/cli/{chunk-JO5FFSR7.js → chunk-NTLBZUHD.js} +6 -0
  102. package/dist/cli/{chunk-EKZQ5LQO.js → chunk-PVA3MWCO.js} +3 -3
  103. package/dist/cli/{chunk-PNF2ZU4R.js → chunk-QIEYEY6Z.js} +8 -8
  104. package/dist/cli/{chunk-KSHAFYYG.mjs → chunk-R2VZVHJP.mjs} +127 -6
  105. package/dist/cli/{chunk-XEBFJ2PH.js → chunk-RVOBFO7C.js} +41 -41
  106. package/dist/cli/{chunk-RU5ROUFO.js → chunk-TCQYWZFS.js} +5 -5
  107. package/dist/cli/{chunk-I42EOZKQ.js → chunk-TMQUMILM.js} +19 -23
  108. package/dist/cli/{chunk-EOO7OSS4.mjs → chunk-URZNSJE2.mjs} +4 -4
  109. package/dist/cli/{chunk-Z6AUOV7D.mjs → chunk-VC5B462T.mjs} +2 -2
  110. package/dist/cli/{chunk-EKF4DKUA.js → chunk-WHP3FJ7T.js} +5 -5
  111. package/dist/cli/{chunk-VD2374K7.mjs → chunk-WS274KID.mjs} +1 -1
  112. package/dist/cli/{chunk-T4U245E4.mjs → chunk-XYZZZLN6.mjs} +2 -2
  113. package/dist/cli/{chunk-J6SVNKRP.js → chunk-YXGPMTAK.js} +2 -2
  114. package/dist/cli/{chunk-RFV7PPLS.mjs → chunk-ZEQPCEV4.mjs} +3 -3
  115. package/dist/cli/command-docs.js +2 -2
  116. package/dist/cli/command-docs.mjs +1 -1
  117. package/dist/cli/{csv-RZJ4SOIL.mjs → csv-2TXOI3UE.mjs} +4 -4
  118. package/dist/cli/{csv-JXX2LXK5.js → csv-NEWCNOSZ.js} +13 -13
  119. package/dist/cli/{db-T2KJNONM.js → db-J3IJS4OG.js} +27 -27
  120. package/dist/cli/{db-MUTT2NWI.mjs → db-PX7EQEIG.mjs} +6 -6
  121. package/dist/cli/{describe-K3UMAAVO.mjs → describe-GQHGTZSL.mjs} +20 -21
  122. package/dist/cli/describe-LE7EZCL4.js +49 -0
  123. package/dist/cli/describe-core.d.mts +8 -4
  124. package/dist/cli/describe-core.d.ts +8 -4
  125. package/dist/cli/describe-core.js +4 -5
  126. package/dist/cli/describe-core.mjs +3 -4
  127. package/dist/cli/{executions-PHS4R2OX.mjs → executions-FFKK24RY.mjs} +6 -6
  128. package/dist/cli/{executions-7HSLDRHR.js → executions-RO3TJUXL.js} +8 -8
  129. package/dist/cli/{feedback-BJZRM637.js → feedback-XRR4HIS6.js} +8 -8
  130. package/dist/cli/{feedback-RWMDCIDF.mjs → feedback-ZTO56SRL.mjs} +4 -4
  131. package/dist/cli/git-26AH4XIO.js +25 -0
  132. package/dist/cli/{git-YW6VHYZG.mjs → git-FIPBVFYZ.mjs} +5 -5
  133. package/dist/cli/index.js +142 -142
  134. package/dist/cli/index.mjs +42 -42
  135. package/dist/cli/{legacy-noops-5UBSUPGG.mjs → legacy-noops-AMD2NWHF.mjs} +5 -5
  136. package/dist/cli/{legacy-noops-2WUV2XD7.js → legacy-noops-MTBBGM27.js} +8 -8
  137. package/dist/cli/{monitors-HWOQO3OK.mjs → monitors-24LDKDJX.mjs} +7 -7
  138. package/dist/cli/{monitors-YZZRKSTG.js → monitors-42PIGLBF.js} +95 -95
  139. package/dist/cli/{org-NCXT6RB4.mjs → org-4B7SCFRL.mjs} +6 -6
  140. package/dist/cli/{org-JY7HLHBA.js → org-GQMCA3MN.js} +72 -72
  141. package/dist/cli/{pages-QJO53QAT.mjs → pages-PD5EGL2R.mjs} +6 -6
  142. package/dist/cli/{pages-6ZOHXL6X.js → pages-RL2M62GJ.js} +18 -18
  143. package/dist/cli/{play-SQRS7JN3.mjs → play-5V54VTUR.mjs} +132 -26
  144. package/dist/cli/{play-TAYGSR35.js → play-FST6ZAHW.js} +447 -341
  145. package/dist/cli/{providers-4Q5LOIQ5.js → providers-HBUUPN7J.js} +9 -9
  146. package/dist/cli/{providers-3IR3N5DT.mjs → providers-N5YVCKPL.mjs} +6 -6
  147. package/dist/cli/{quickstart-ITNUZENY.js → quickstart-4QIQNSHG.js} +6 -6
  148. package/dist/cli/{quickstart-KCZCYO6B.mjs → quickstart-NJDDVTQR.mjs} +4 -4
  149. package/dist/cli/{run-YQ57LMKN.js → run-FGOKCG4J.js} +44 -45
  150. package/dist/cli/{run-JCWRWDSK.mjs → run-JHI5MTHD.mjs} +25 -26
  151. package/dist/cli/search-CTKSEVSO.js +32 -0
  152. package/dist/cli/{search-FUM27HQP.mjs → search-EWIZBIY2.mjs} +7 -7
  153. package/dist/cli/{search-output-EWEYT34M.mjs → search-output-NAK3MWBH.mjs} +53 -75
  154. package/dist/cli/{search-output-XAMWKRJH.js → search-output-TMQTRC2W.js} +58 -80
  155. package/dist/cli/{secrets-2IRRRZBL.js → secrets-5TSUEOJB.js} +15 -15
  156. package/dist/cli/{secrets-YTI4IAKR.mjs → secrets-ONQVW5SR.mjs} +6 -6
  157. package/dist/cli/{sessions-EFS4KUPF.mjs → sessions-B7F5O3ZR.mjs} +5 -5
  158. package/dist/cli/{sessions-HWTRDXBQ.js → sessions-BSGE5EET.js} +6 -6
  159. package/dist/cli/{settings-FRVEIOKR.js → settings-47LARBRU.js} +78 -78
  160. package/dist/cli/{settings-NTOO42DY.mjs → settings-SGGFQV5R.mjs} +11 -11
  161. package/dist/cli/{setup-PAVQPALX.mjs → setup-ATGNXQUK.mjs} +9 -9
  162. package/dist/cli/{setup-6ZIOAE2V.js → setup-BNFZFXO6.js} +49 -49
  163. package/dist/cli/skills-6RD25MVM.js +36 -0
  164. package/dist/cli/{skills-3O3XTPUM.mjs → skills-CIMBRM5R.mjs} +7 -7
  165. package/dist/cli/{tools-7QSB65UL.mjs → tools-DTDXAULX.mjs} +18 -19
  166. package/dist/cli/tools-TDZH4XHS.js +56 -0
  167. package/dist/cli/{update-T6CYS5ZT.mjs → update-EOIJBJCO.mjs} +9 -9
  168. package/dist/cli/update-Y32VT4VL.js +34 -0
  169. package/dist/cli/{workflow-OMSXZ73T.mjs → workflow-IWXUJPWY.mjs} +7 -7
  170. package/dist/cli/{workflow-4KMJBMGX.js → workflow-V5VKPICQ.js} +17 -17
  171. package/dist/{client-Bn8FwKGO.d.ts → client-CIwenMFS.d.ts} +1 -1
  172. package/dist/{client-CfNRmjLK.d.mts → client-DYAfJpaN.d.mts} +1 -1
  173. package/dist/{client-core-B91EV0WS.d.ts → client-core-CRjtyMAI.d.ts} +25 -2
  174. package/dist/{client-core-BG8Cgrmk.d.mts → client-core-DlzP8vEs.d.mts} +25 -2
  175. package/dist/{compiler-manifest-DlXDyndN.d.ts → compiler-manifest-DaJrA2KV.d.mts} +1 -1
  176. package/dist/{compiler-manifest-DlXDyndN.d.mts → compiler-manifest-DaJrA2KV.d.ts} +1 -1
  177. package/dist/{errors-BtriA2ld.d.mts → errors-BKnSYueU.d.mts} +1 -1
  178. package/dist/{errors-DmcLykM7.d.ts → errors-KLga4bLr.d.ts} +1 -1
  179. package/dist/{index-DI0sR_fX.d.mts → index-C-8AFpWy.d.mts} +1 -1
  180. package/dist/{index--Jw-slHY.d.ts → index-C5nAZ-VS.d.ts} +1 -1
  181. package/dist/index.d.mts +7 -7
  182. package/dist/index.d.ts +7 -7
  183. package/dist/index.js +9 -9
  184. package/dist/index.mjs +6 -6
  185. package/dist/install-integrity.json +124 -118
  186. package/dist/plays/bundle-play-file.d.mts +3 -3
  187. package/dist/plays/bundle-play-file.d.ts +3 -3
  188. package/dist/plays/bundle-play-file.mjs +8 -1
  189. package/dist/plays/play-description.d.mts +2 -2
  190. package/dist/plays/play-description.d.ts +2 -2
  191. package/dist/plays/run-request.d.mts +2 -2
  192. package/dist/plays/run-request.d.ts +2 -2
  193. package/dist/release.d.mts +1 -1
  194. package/dist/release.d.ts +1 -1
  195. package/dist/release.js +2 -2
  196. package/dist/release.mjs +1 -1
  197. package/dist/server.d.mts +4 -4
  198. package/dist/server.d.ts +4 -4
  199. package/dist/server.js +5 -5
  200. package/dist/server.mjs +3 -3
  201. package/package.json +1 -1
  202. package/dist/cli/auth-VP7PMXKQ.js +0 -43
  203. package/dist/cli/chunk-XK5DMLZE.js +0 -111
  204. package/dist/cli/chunk-XRDXNAAY.mjs +0 -111
  205. package/dist/cli/describe-SEXUJLE4.js +0 -50
  206. package/dist/cli/git-VNS7UQWN.js +0 -25
  207. package/dist/cli/search-I425FRTK.js +0 -32
  208. package/dist/cli/skills-6ZNMO2PR.js +0 -36
  209. package/dist/cli/tools-DPV2JES6.js +0 -57
  210. package/dist/cli/update-Q5GUDEAW.js +0 -34
@@ -1,18 +1,15 @@
1
1
  import {
2
2
  DEFAULT_SUMMARY_WIDTH
3
3
  } from "./chunk-5AEDYVB6.mjs";
4
- import {
5
- observedMaxText
6
- } from "./chunk-XRDXNAAY.mjs";
7
4
  import {
8
5
  renderCommandEnvelopeText
9
- } from "./chunk-66XDYH5T.mjs";
10
- import "./chunk-MADTHS56.mjs";
11
- import "./chunk-EHVFBD36.mjs";
6
+ } from "./chunk-KGLVATEB.mjs";
7
+ import "./chunk-L3TZV625.mjs";
8
+ import "./chunk-KPBBT6OS.mjs";
12
9
  import "./chunk-4QF2K7TM.mjs";
13
10
  import "./chunk-DLIRSHV6.mjs";
14
11
  import "./chunk-HBL4PM5Q.mjs";
15
- import "./chunk-7L6QNHUL.mjs";
12
+ import "./chunk-7HEDCIR3.mjs";
16
13
  import "./chunk-WZYKRD7T.mjs";
17
14
  import {
18
15
  __commonJS,
@@ -5735,67 +5732,35 @@ function clipSummary(value, width) {
5735
5732
  const characters = Array.from(value.replace(/\s+/gu, " ").trim());
5736
5733
  return characters.length <= width ? characters.join("") : `${characters.slice(0, width - 1).join("")}\u2026`;
5737
5734
  }
5738
- function pricingDisplay(item, noteWidth) {
5735
+ function toolPrice(item) {
5739
5736
  const pricing = item.pricing;
5740
- const observedCost = item.observedCost;
5741
- if (observedCost) {
5742
- return observedCost.status === "available" ? {
5743
- cost: `${observedCost.avgCredits}/${observedCost.unit} (observed)`,
5744
- notes: []
5745
- } : {
5746
- cost: observedCost.typical ? `${observedCost.typical.lowCredits}\u2013${observedCost.typical.highCredits}/${observedCost.typical.unit} (typical)` : "no data yet",
5747
- notes: [`Cost: ${observedCost.displayText}`]
5748
- };
5749
- }
5750
- if (!pricing)
5751
- return { cost: item.kind === "tool" ? "unknown" : "\u2014", notes: [] };
5737
+ if (!pricing) return item.kind === "tool" ? "unknown" : "\u2014";
5738
+ if (item.billingSource === "own_provider_credentials") return "0 (byok)";
5739
+ if (pricing.benefit?.status === "included")
5740
+ return typeof pricing.benefit.remaining === "number" ? `0 (${pricing.benefit.remaining.toLocaleString("en-US")} free left)*` : "0 (included)*";
5741
+ if (pricing.benefit?.status === "unavailable")
5742
+ return "inclusion unavailable*";
5743
+ if (pricing.benefit?.status === "exhausted" && typeof pricing.creditsPerUnit === "number")
5744
+ return `${pricing.creditsPerUnit}/${pricing.unit ?? "result"}*`;
5752
5745
  const range = pricing.estimatedRange;
5753
- if (range && item.billingSource !== "own_provider_credentials") {
5754
- return {
5755
- cost: `${range.minCreditsPerUnit}\u2013${range.maxCreditsPerUnit}/${pricing.unit} (estimate)`,
5756
- notes: [range.scope]
5757
- };
5758
- }
5746
+ if (range)
5747
+ return `${range.minCreditsPerUnit}\u2013${range.maxCreditsPerUnit}/${pricing.unit} (estimate)*`;
5759
5748
  const observed = pricing.observedReference;
5760
- if (observed) {
5761
- return {
5762
- cost: `${observed.creditsPerCall}/call (observed)`,
5763
- notes: [
5764
- `Observed reference: ${observed.sampleSize} call(s), ${observed.observedAt}; ${observed.inputMode} Not a quote.`
5765
- ]
5766
- };
5767
- }
5768
- if (item.billingSource === "own_provider_credentials") {
5769
- return {
5770
- cost: "0 (own credentials)",
5771
- notes: ["Your provider quota still applies."]
5772
- };
5773
- }
5749
+ if (observed) return `${observed.creditsPerCall}/call (observed)*`;
5774
5750
  const observedAvg = pricing.observedMax;
5775
- if (observedAvg?.avgCreditsPerCall && observedAvg.sampleCount) {
5776
- return {
5777
- cost: `variable, ${observedAvg.avgCreditsPerCall} avg`,
5778
- notes: []
5779
- };
5780
- }
5751
+ if (observedAvg?.avgCreditsPerCall && observedAvg.sampleCount)
5752
+ return `variable, ${observedAvg.avgCreditsPerCall} avg*`;
5781
5753
  const display = pricing.displayText ?? "";
5754
+ const footnote = pricing.summary || pricing.details?.length || pricing.observedMax ? "*" : "";
5782
5755
  const rate = display.match(
5783
- /^([\d.,]+) Deepline credits(?: \/ \$[\d.,]+)? per (call|result|page)( \(estimate\))?$/
5756
+ /^([\d.,]+) Deepline credits(?: \/ \$[\d.,]+)? per (call|result|page|basic profile)( \(estimate\))?$/
5784
5757
  );
5785
- if (rate)
5786
- return {
5787
- cost: `${rate[1]}/${rate[2]}${rate[3] ?? ""}${pricing.summary || pricing.details?.length ? "*" : ""}`,
5788
- notes: []
5789
- };
5790
- if (pricing.creditsPerUnit === 0 && /^Free\b/.test(display)) {
5791
- return { cost: "0 (free)", notes: [] };
5792
- }
5758
+ if (rate) return `${rate[1]}/${rate[2]}${rate[3] ?? ""}${footnote}`;
5759
+ if (pricing.creditsPerUnit === 0 && /^Free\b/.test(display))
5760
+ return `0 (free)${footnote}`;
5793
5761
  if (!display || display === "Pricing unavailable.")
5794
- return { cost: "unknown", notes: [] };
5795
- return {
5796
- cost: pricing.unit === "usage" ? "usage-based" : "variable",
5797
- notes: display ? [clipSummary(display, noteWidth)] : []
5798
- };
5762
+ return `unknown${footnote}`;
5763
+ return pricing.unit === "usage" ? "usage-based*" : "variable*";
5799
5764
  }
5800
5765
  var RATE_WINDOW_UNITS = {
5801
5766
  1e3: "s",
@@ -5823,13 +5788,18 @@ function latencyDisplay(ms) {
5823
5788
  return `${(ms / 6e4).toFixed(1)}min`;
5824
5789
  }
5825
5790
  function searchRow(item, summaryWidth) {
5826
- const { cost, notes } = pricingDisplay(item, summaryWidth);
5827
- const observedMax = item.billingSource === "own_provider_credentials" || item.pricing?.observedMax?.avgCreditsPerCall ? "" : observedMaxText(item.pricing);
5828
- if (observedMax)
5829
- notes.push(`${observedMax[0].toUpperCase()}${observedMax.slice(1)}.`);
5830
- if (item.credentialStatus === "requires_connection") {
5831
- notes.push("Requires your credentials \u2014 not connected (connect to use).");
5832
- } else if (item.connected === false && item.credentialStatus === "managed") {
5791
+ const observedCost = item.observedCost;
5792
+ const notes = [];
5793
+ let cost;
5794
+ if (!observedCost) {
5795
+ cost = toolPrice(item);
5796
+ } else if (observedCost.status === "available") {
5797
+ cost = `${observedCost.avgCredits}/${observedCost.unit} (observed)`;
5798
+ } else {
5799
+ cost = observedCost.typical ? `${observedCost.typical.lowCredits}\u2013${observedCost.typical.highCredits}/${observedCost.typical.unit} (typical)` : "no data yet";
5800
+ notes.push(`Cost: ${observedCost.displayText}`);
5801
+ }
5802
+ if (item.connected === false && item.credentialStatus === "managed") {
5833
5803
  notes.push("Temporarily unavailable.");
5834
5804
  }
5835
5805
  return {
@@ -5876,22 +5846,30 @@ function renderSearchResults(result, summaryWidth = DEFAULT_SUMMARY_WIDTH) {
5876
5846
  { header: "SUMMARY", value: (row) => row.summary }
5877
5847
  ];
5878
5848
  const render = result.render;
5879
- const title = render?.sections?.[0]?.title ?? `${result.total ?? rows.length} matches \u2014 showing ${rows.length}`;
5849
+ const sections = render?.sections ?? [];
5850
+ const resultIndex = sections[0]?.title === "ignored categories" ? 1 : 0;
5851
+ const title = sections[resultIndex]?.title ?? `${result.total ?? rows.length} matches \u2014 showing ${rows.length}`;
5880
5852
  const remaining = {
5881
- sections: render?.sections?.slice(1),
5853
+ sections: sections.filter((_, index) => index !== resultIndex),
5882
5854
  actions: render?.actions
5883
5855
  };
5884
5856
  const followUps = remaining.sections?.length || remaining.actions?.length ? `
5885
5857
  ${renderCommandEnvelopeText({ render: remaining })}` : "";
5886
- const notes = rows.flatMap(
5887
- (row) => row.notes.map((note) => ` ${row.id}: ${note}`)
5858
+ const missingConnections = /* @__PURE__ */ new Set();
5859
+ for (const item of result.results) {
5860
+ if (item.credentialStatus !== "requires_connection") continue;
5861
+ const provider = typeof item.provider === "string" && item.provider.trim();
5862
+ missingConnections.add(provider || item.id);
5863
+ }
5864
+ const notes = [...missingConnections].map(
5865
+ (provider) => ` ${provider}: Not connected. Connect to use tools that require your credentials. See deepline describe <toolId> for setup.`
5866
+ );
5867
+ notes.push(
5868
+ ...rows.flatMap((row) => row.notes.map((note) => ` ${row.id}: ${note}`))
5888
5869
  );
5889
5870
  const details = [
5890
5871
  ...notes.length ? ["Notes", ...notes, ""] : [],
5891
- ...rows.some((row) => row.cost.endsWith("*")) ? [
5892
- "* Additional pricing conditions apply; see full pricing before execution."
5893
- ] : [],
5894
- "Full descriptions and pricing: deepline describe <toolId>."
5872
+ rows.some((row) => row.cost.endsWith("*")) ? "* See deepline describe <toolId> for full pricing information." : "Full descriptions and pricing: deepline describe <toolId>."
5895
5873
  ].join("\n");
5896
5874
  return `${title}
5897
5875
 
@@ -3,16 +3,13 @@
3
3
  var _chunkD3BCSAN7js = require('./chunk-D3BCSAN7.js');
4
4
 
5
5
 
6
- var _chunkXK5DMLZEjs = require('./chunk-XK5DMLZE.js');
7
-
8
-
9
- var _chunk5X4AUFYWjs = require('./chunk-5X4AUFYW.js');
10
- require('./chunk-BOFCF4L7.js');
11
- require('./chunk-SV2TEZ2M.js');
6
+ var _chunkF73PD2XDjs = require('./chunk-F73PD2XD.js');
7
+ require('./chunk-HS63YBT5.js');
8
+ require('./chunk-FIUTDSJX.js');
12
9
  require('./chunk-ALJJRZNJ.js');
13
10
  require('./chunk-XNYIZMNQ.js');
14
11
  require('./chunk-DIAWYWT5.js');
15
- require('./chunk-4OXHLTCP.js');
12
+ require('./chunk-IIP46RVC.js');
16
13
  require('./chunk-OG64RBAC.js');
17
14
 
18
15
 
@@ -5735,67 +5732,35 @@ function clipSummary(value, width) {
5735
5732
  const characters = Array.from(value.replace(/\s+/gu, " ").trim());
5736
5733
  return characters.length <= width ? characters.join("") : `${characters.slice(0, width - 1).join("")}\u2026`;
5737
5734
  }
5738
- function pricingDisplay(item, noteWidth) {
5735
+ function toolPrice(item) {
5739
5736
  const pricing = item.pricing;
5740
- const observedCost = item.observedCost;
5741
- if (observedCost) {
5742
- return observedCost.status === "available" ? {
5743
- cost: `${observedCost.avgCredits}/${observedCost.unit} (observed)`,
5744
- notes: []
5745
- } : {
5746
- cost: observedCost.typical ? `${observedCost.typical.lowCredits}\u2013${observedCost.typical.highCredits}/${observedCost.typical.unit} (typical)` : "no data yet",
5747
- notes: [`Cost: ${observedCost.displayText}`]
5748
- };
5749
- }
5750
- if (!pricing)
5751
- return { cost: item.kind === "tool" ? "unknown" : "\u2014", notes: [] };
5737
+ if (!pricing) return item.kind === "tool" ? "unknown" : "\u2014";
5738
+ if (item.billingSource === "own_provider_credentials") return "0 (byok)";
5739
+ if (_optionalChain([pricing, 'access', _2 => _2.benefit, 'optionalAccess', _3 => _3.status]) === "included")
5740
+ return typeof pricing.benefit.remaining === "number" ? `0 (${pricing.benefit.remaining.toLocaleString("en-US")} free left)*` : "0 (included)*";
5741
+ if (_optionalChain([pricing, 'access', _4 => _4.benefit, 'optionalAccess', _5 => _5.status]) === "unavailable")
5742
+ return "inclusion unavailable*";
5743
+ if (_optionalChain([pricing, 'access', _6 => _6.benefit, 'optionalAccess', _7 => _7.status]) === "exhausted" && typeof pricing.creditsPerUnit === "number")
5744
+ return `${pricing.creditsPerUnit}/${_nullishCoalesce(pricing.unit, () => ( "result"))}*`;
5752
5745
  const range = pricing.estimatedRange;
5753
- if (range && item.billingSource !== "own_provider_credentials") {
5754
- return {
5755
- cost: `${range.minCreditsPerUnit}\u2013${range.maxCreditsPerUnit}/${pricing.unit} (estimate)`,
5756
- notes: [range.scope]
5757
- };
5758
- }
5746
+ if (range)
5747
+ return `${range.minCreditsPerUnit}\u2013${range.maxCreditsPerUnit}/${pricing.unit} (estimate)*`;
5759
5748
  const observed = pricing.observedReference;
5760
- if (observed) {
5761
- return {
5762
- cost: `${observed.creditsPerCall}/call (observed)`,
5763
- notes: [
5764
- `Observed reference: ${observed.sampleSize} call(s), ${observed.observedAt}; ${observed.inputMode} Not a quote.`
5765
- ]
5766
- };
5767
- }
5768
- if (item.billingSource === "own_provider_credentials") {
5769
- return {
5770
- cost: "0 (own credentials)",
5771
- notes: ["Your provider quota still applies."]
5772
- };
5773
- }
5749
+ if (observed) return `${observed.creditsPerCall}/call (observed)*`;
5774
5750
  const observedAvg = pricing.observedMax;
5775
- if (_optionalChain([observedAvg, 'optionalAccess', _2 => _2.avgCreditsPerCall]) && observedAvg.sampleCount) {
5776
- return {
5777
- cost: `variable, ${observedAvg.avgCreditsPerCall} avg`,
5778
- notes: []
5779
- };
5780
- }
5751
+ if (_optionalChain([observedAvg, 'optionalAccess', _8 => _8.avgCreditsPerCall]) && observedAvg.sampleCount)
5752
+ return `variable, ${observedAvg.avgCreditsPerCall} avg*`;
5781
5753
  const display = _nullishCoalesce(pricing.displayText, () => ( ""));
5754
+ const footnote = pricing.summary || _optionalChain([pricing, 'access', _9 => _9.details, 'optionalAccess', _10 => _10.length]) || pricing.observedMax ? "*" : "";
5782
5755
  const rate = display.match(
5783
- /^([\d.,]+) Deepline credits(?: \/ \$[\d.,]+)? per (call|result|page)( \(estimate\))?$/
5756
+ /^([\d.,]+) Deepline credits(?: \/ \$[\d.,]+)? per (call|result|page|basic profile)( \(estimate\))?$/
5784
5757
  );
5785
- if (rate)
5786
- return {
5787
- cost: `${rate[1]}/${rate[2]}${_nullishCoalesce(rate[3], () => ( ""))}${pricing.summary || _optionalChain([pricing, 'access', _3 => _3.details, 'optionalAccess', _4 => _4.length]) ? "*" : ""}`,
5788
- notes: []
5789
- };
5790
- if (pricing.creditsPerUnit === 0 && /^Free\b/.test(display)) {
5791
- return { cost: "0 (free)", notes: [] };
5792
- }
5758
+ if (rate) return `${rate[1]}/${rate[2]}${_nullishCoalesce(rate[3], () => ( ""))}${footnote}`;
5759
+ if (pricing.creditsPerUnit === 0 && /^Free\b/.test(display))
5760
+ return `0 (free)${footnote}`;
5793
5761
  if (!display || display === "Pricing unavailable.")
5794
- return { cost: "unknown", notes: [] };
5795
- return {
5796
- cost: pricing.unit === "usage" ? "usage-based" : "variable",
5797
- notes: display ? [clipSummary(display, noteWidth)] : []
5798
- };
5762
+ return `unknown${footnote}`;
5763
+ return pricing.unit === "usage" ? "usage-based*" : "variable*";
5799
5764
  }
5800
5765
  var RATE_WINDOW_UNITS = {
5801
5766
  1e3: "s",
@@ -5804,7 +5769,7 @@ var RATE_WINDOW_UNITS = {
5804
5769
  };
5805
5770
  function rateLimitDisplay(item) {
5806
5771
  const limits = (Array.isArray(item.rateLimits) ? item.rateLimits : []).filter(
5807
- (limit) => typeof _optionalChain([limit, 'optionalAccess', _5 => _5.requestsPerWindow]) === "number" && typeof _optionalChain([limit, 'optionalAccess', _6 => _6.windowMs]) === "number" && limit.windowMs > 0
5772
+ (limit) => typeof _optionalChain([limit, 'optionalAccess', _11 => _11.requestsPerWindow]) === "number" && typeof _optionalChain([limit, 'optionalAccess', _12 => _12.windowMs]) === "number" && limit.windowMs > 0
5808
5773
  );
5809
5774
  const [tightest] = limits.sort(
5810
5775
  (a, b) => a.requestsPerWindow / a.windowMs - b.requestsPerWindow / b.windowMs
@@ -5823,13 +5788,18 @@ function latencyDisplay(ms) {
5823
5788
  return `${(ms / 6e4).toFixed(1)}min`;
5824
5789
  }
5825
5790
  function searchRow(item, summaryWidth) {
5826
- const { cost, notes } = pricingDisplay(item, summaryWidth);
5827
- const observedMax = item.billingSource === "own_provider_credentials" || _optionalChain([item, 'access', _7 => _7.pricing, 'optionalAccess', _8 => _8.observedMax, 'optionalAccess', _9 => _9.avgCreditsPerCall]) ? "" : _chunkXK5DMLZEjs.observedMaxText.call(void 0, item.pricing);
5828
- if (observedMax)
5829
- notes.push(`${observedMax[0].toUpperCase()}${observedMax.slice(1)}.`);
5830
- if (item.credentialStatus === "requires_connection") {
5831
- notes.push("Requires your credentials \u2014 not connected (connect to use).");
5832
- } else if (item.connected === false && item.credentialStatus === "managed") {
5791
+ const observedCost = item.observedCost;
5792
+ const notes = [];
5793
+ let cost;
5794
+ if (!observedCost) {
5795
+ cost = toolPrice(item);
5796
+ } else if (observedCost.status === "available") {
5797
+ cost = `${observedCost.avgCredits}/${observedCost.unit} (observed)`;
5798
+ } else {
5799
+ cost = observedCost.typical ? `${observedCost.typical.lowCredits}\u2013${observedCost.typical.highCredits}/${observedCost.typical.unit} (typical)` : "no data yet";
5800
+ notes.push(`Cost: ${observedCost.displayText}`);
5801
+ }
5802
+ if (item.connected === false && item.credentialStatus === "managed") {
5833
5803
  notes.push("Temporarily unavailable.");
5834
5804
  }
5835
5805
  return {
@@ -5857,7 +5827,7 @@ var OPTIONAL_COLUMNS = [
5857
5827
  ];
5858
5828
  function renderSearchResults(result, summaryWidth = _chunkD3BCSAN7js.DEFAULT_SUMMARY_WIDTH) {
5859
5829
  if (result.results.length === 0)
5860
- return _chunk5X4AUFYWjs.renderCommandEnvelopeText.call(void 0, result);
5830
+ return _chunkF73PD2XDjs.renderCommandEnvelopeText.call(void 0, result);
5861
5831
  const rows = result.results.map((item) => searchRow(item, summaryWidth));
5862
5832
  const kinds = new Set(rows.map((row) => row.kind));
5863
5833
  const onlyTools = kinds.size === 1 && kinds.has("tool");
@@ -5876,22 +5846,30 @@ function renderSearchResults(result, summaryWidth = _chunkD3BCSAN7js.DEFAULT_SUM
5876
5846
  { header: "SUMMARY", value: (row) => row.summary }
5877
5847
  ];
5878
5848
  const render = result.render;
5879
- const title = _nullishCoalesce(_optionalChain([render, 'optionalAccess', _10 => _10.sections, 'optionalAccess', _11 => _11[0], 'optionalAccess', _12 => _12.title]), () => ( `${_nullishCoalesce(result.total, () => ( rows.length))} matches \u2014 showing ${rows.length}`));
5849
+ const sections = _nullishCoalesce(_optionalChain([render, 'optionalAccess', _13 => _13.sections]), () => ( []));
5850
+ const resultIndex = _optionalChain([sections, 'access', _14 => _14[0], 'optionalAccess', _15 => _15.title]) === "ignored categories" ? 1 : 0;
5851
+ const title = _nullishCoalesce(_optionalChain([sections, 'access', _16 => _16[resultIndex], 'optionalAccess', _17 => _17.title]), () => ( `${_nullishCoalesce(result.total, () => ( rows.length))} matches \u2014 showing ${rows.length}`));
5880
5852
  const remaining = {
5881
- sections: _optionalChain([render, 'optionalAccess', _13 => _13.sections, 'optionalAccess', _14 => _14.slice, 'call', _15 => _15(1)]),
5882
- actions: _optionalChain([render, 'optionalAccess', _16 => _16.actions])
5853
+ sections: sections.filter((_, index) => index !== resultIndex),
5854
+ actions: _optionalChain([render, 'optionalAccess', _18 => _18.actions])
5883
5855
  };
5884
- const followUps = _optionalChain([remaining, 'access', _17 => _17.sections, 'optionalAccess', _18 => _18.length]) || _optionalChain([remaining, 'access', _19 => _19.actions, 'optionalAccess', _20 => _20.length]) ? `
5885
- ${_chunk5X4AUFYWjs.renderCommandEnvelopeText.call(void 0, { render: remaining })}` : "";
5886
- const notes = rows.flatMap(
5887
- (row) => row.notes.map((note) => ` ${row.id}: ${note}`)
5856
+ const followUps = _optionalChain([remaining, 'access', _19 => _19.sections, 'optionalAccess', _20 => _20.length]) || _optionalChain([remaining, 'access', _21 => _21.actions, 'optionalAccess', _22 => _22.length]) ? `
5857
+ ${_chunkF73PD2XDjs.renderCommandEnvelopeText.call(void 0, { render: remaining })}` : "";
5858
+ const missingConnections = /* @__PURE__ */ new Set();
5859
+ for (const item of result.results) {
5860
+ if (item.credentialStatus !== "requires_connection") continue;
5861
+ const provider = typeof item.provider === "string" && item.provider.trim();
5862
+ missingConnections.add(provider || item.id);
5863
+ }
5864
+ const notes = [...missingConnections].map(
5865
+ (provider) => ` ${provider}: Not connected. Connect to use tools that require your credentials. See deepline describe <toolId> for setup.`
5866
+ );
5867
+ notes.push(
5868
+ ...rows.flatMap((row) => row.notes.map((note) => ` ${row.id}: ${note}`))
5888
5869
  );
5889
5870
  const details = [
5890
5871
  ...notes.length ? ["Notes", ...notes, ""] : [],
5891
- ...rows.some((row) => row.cost.endsWith("*")) ? [
5892
- "* Additional pricing conditions apply; see full pricing before execution."
5893
- ] : [],
5894
- "Full descriptions and pricing: deepline describe <toolId>."
5872
+ rows.some((row) => row.cost.endsWith("*")) ? "* See deepline describe <toolId> for full pricing information." : "Full descriptions and pricing: deepline describe <toolId>."
5895
5873
  ].join("\n");
5896
5874
  return `${title}
5897
5875
 
@@ -1,7 +1,7 @@
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 _chunkRU5ROUFOjs = require('./chunk-RU5ROUFO.js');
4
- require('./chunk-UR7JOSLT.js');
3
+ var _chunkTCQYWZFSjs = require('./chunk-TCQYWZFS.js');
4
+ require('./chunk-C5RQTTLP.js');
5
5
  require('./chunk-E4CABWXL.js');
6
6
  require('./chunk-RNSHCJME.js');
7
7
  require('./chunk-NMU3VR5U.js');
@@ -9,13 +9,13 @@ require('./chunk-WSGXBROE.js');
9
9
 
10
10
 
11
11
 
12
- var _chunk5X4AUFYWjs = require('./chunk-5X4AUFYW.js');
13
- require('./chunk-BOFCF4L7.js');
14
- require('./chunk-SV2TEZ2M.js');
12
+ var _chunkF73PD2XDjs = require('./chunk-F73PD2XD.js');
13
+ require('./chunk-HS63YBT5.js');
14
+ require('./chunk-FIUTDSJX.js');
15
15
  require('./chunk-ALJJRZNJ.js');
16
16
  require('./chunk-XNYIZMNQ.js');
17
17
  require('./chunk-DIAWYWT5.js');
18
- require('./chunk-4OXHLTCP.js');
18
+ require('./chunk-IIP46RVC.js');
19
19
  require('./chunk-OG64RBAC.js');
20
20
  require('./chunk-COGTRVWW.js');
21
21
 
@@ -207,9 +207,9 @@ function preventShellHistoryLeak(forbidden) {
207
207
  }
208
208
  }
209
209
  async function handleList(options) {
210
- const client = new (0, _chunkRU5ROUFOjs.DeeplineClient)();
210
+ const client = new (0, _chunkTCQYWZFSjs.DeeplineClient)();
211
211
  const secrets = await client.listSecrets();
212
- _chunk5X4AUFYWjs.printCommandEnvelope.call(void 0,
212
+ _chunkF73PD2XDjs.printCommandEnvelope.call(void 0,
213
213
  {
214
214
  secrets,
215
215
  count: secrets.length,
@@ -227,14 +227,14 @@ async function handleList(options) {
227
227
  }
228
228
  async function handleCheck(nameInput, options) {
229
229
  const name = normalizeSecretName(nameInput);
230
- const client = new (0, _chunkRU5ROUFOjs.DeeplineClient)();
230
+ const client = new (0, _chunkTCQYWZFSjs.DeeplineClient)();
231
231
  const playName = options.play === void 0 ? void 0 : normalizePlaySelector(options.play);
232
232
  const check = playName !== void 0 ? await client.inspectSecret(name, { playName }) : null;
233
233
  const secret = check ? check.secret : await client.checkSecret(name);
234
234
  const ok = check ? check.ok : Boolean(secret);
235
235
  const quotedPlay = `'${(_nullishCoalesce(options.play, () => ( "PLAY"))).replace(/'/g, `'"'"'`)}'`;
236
236
  const scopeHint = check ? _optionalChain([secret, 'optionalAccess', _3 => _3.scope]) === "play" ? check.reason === "disabled" ? `The Play-scoped secret is disabled and no active org fallback is available. Restore it with: deepline secrets set ${name} --scope play --play ${quotedPlay}` : `The active Play-scoped secret takes precedence over the org secret.${ok ? "" : ` Restore it with: deepline secrets set ${name} --scope play --play ${quotedPlay}`}` : `No Play override.${ok ? " The org secret is available." : ` Set or rotate the org secret with: deepline secrets set ${name}`}` : `Metadata only. Verify effective scope and active version with: deepline secrets check ${name} --play <play-name>`;
237
- _chunk5X4AUFYWjs.printCommandEnvelope.call(void 0,
237
+ _chunkF73PD2XDjs.printCommandEnvelope.call(void 0,
238
238
  {
239
239
  ok,
240
240
  name,
@@ -262,7 +262,7 @@ async function handleSet(nameInput, forbidden, options) {
262
262
  const name = normalizeSecretName(nameInput);
263
263
  const { scope, playName } = resolveSecretWriteScope(options);
264
264
  const value = await readSecretValueFromOptions(options);
265
- const { http } = _chunk5X4AUFYWjs.getAuthedHttpClient.call(void 0, );
265
+ const { http } = _chunkF73PD2XDjs.getAuthedHttpClient.call(void 0, );
266
266
  const response = await http.post(
267
267
  "/api/v2/secrets",
268
268
  {
@@ -274,7 +274,7 @@ async function handleSet(nameInput, forbidden, options) {
274
274
  }
275
275
  );
276
276
  const secret = response.secret;
277
- _chunk5X4AUFYWjs.printCommandEnvelope.call(void 0,
277
+ _chunkF73PD2XDjs.printCommandEnvelope.call(void 0,
278
278
  {
279
279
  ok: true,
280
280
  secret,
@@ -302,7 +302,7 @@ async function handleNote(secretId, noteInput, options) {
302
302
  }
303
303
  const note = options.clear ? "" : noteInput;
304
304
  if (options.dryRun) {
305
- _chunk5X4AUFYWjs.printCommandEnvelope.call(void 0,
305
+ _chunkF73PD2XDjs.printCommandEnvelope.call(void 0,
306
306
  {
307
307
  ok: true,
308
308
  dryRun: true,
@@ -323,9 +323,9 @@ async function handleNote(secretId, noteInput, options) {
323
323
  );
324
324
  return;
325
325
  }
326
- const client = new (0, _chunkRU5ROUFOjs.DeeplineClient)();
326
+ const client = new (0, _chunkTCQYWZFSjs.DeeplineClient)();
327
327
  const secret = await client.updateSecretNote(secretId, note);
328
- _chunk5X4AUFYWjs.printCommandEnvelope.call(void 0,
328
+ _chunkF73PD2XDjs.printCommandEnvelope.call(void 0,
329
329
  {
330
330
  ok: true,
331
331
  secret,
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  DeeplineClient
3
- } from "./chunk-ZUOKIBLJ.mjs";
4
- import "./chunk-VTDAJZIJ.mjs";
3
+ } from "./chunk-D27HP3HS.mjs";
4
+ import "./chunk-5GI6NKOE.mjs";
5
5
  import "./chunk-L2VKAASU.mjs";
6
6
  import "./chunk-N4TR6QRI.mjs";
7
7
  import "./chunk-S3A4IXBQ.mjs";
@@ -9,13 +9,13 @@ import "./chunk-BMCRTI6Z.mjs";
9
9
  import {
10
10
  getAuthedHttpClient,
11
11
  printCommandEnvelope
12
- } from "./chunk-66XDYH5T.mjs";
13
- import "./chunk-MADTHS56.mjs";
14
- import "./chunk-EHVFBD36.mjs";
12
+ } from "./chunk-KGLVATEB.mjs";
13
+ import "./chunk-L3TZV625.mjs";
14
+ import "./chunk-KPBBT6OS.mjs";
15
15
  import "./chunk-4QF2K7TM.mjs";
16
16
  import "./chunk-DLIRSHV6.mjs";
17
17
  import "./chunk-HBL4PM5Q.mjs";
18
- import "./chunk-7L6QNHUL.mjs";
18
+ import "./chunk-7HEDCIR3.mjs";
19
19
  import "./chunk-WZYKRD7T.mjs";
20
20
  import "./chunk-KRD6H754.mjs";
21
21
 
@@ -1,14 +1,14 @@
1
1
  import {
2
2
  registerSessionSendRenderCommands,
3
3
  registerSessionsCommands
4
- } from "./chunk-Z6AUOV7D.mjs";
5
- import "./chunk-66XDYH5T.mjs";
6
- import "./chunk-MADTHS56.mjs";
7
- import "./chunk-EHVFBD36.mjs";
4
+ } from "./chunk-VC5B462T.mjs";
5
+ import "./chunk-KGLVATEB.mjs";
6
+ import "./chunk-L3TZV625.mjs";
7
+ import "./chunk-KPBBT6OS.mjs";
8
8
  import "./chunk-4QF2K7TM.mjs";
9
9
  import "./chunk-DLIRSHV6.mjs";
10
10
  import "./chunk-HBL4PM5Q.mjs";
11
- import "./chunk-7L6QNHUL.mjs";
11
+ import "./chunk-7HEDCIR3.mjs";
12
12
  import "./chunk-WZYKRD7T.mjs";
13
13
  import "./chunk-KRD6H754.mjs";
14
14
  export {
@@ -1,17 +1,17 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
3
 
4
- var _chunkPNF2ZU4Rjs = require('./chunk-PNF2ZU4R.js');
5
- require('./chunk-5X4AUFYW.js');
6
- require('./chunk-BOFCF4L7.js');
7
- require('./chunk-SV2TEZ2M.js');
4
+ var _chunkQIEYEY6Zjs = require('./chunk-QIEYEY6Z.js');
5
+ require('./chunk-F73PD2XD.js');
6
+ require('./chunk-HS63YBT5.js');
7
+ require('./chunk-FIUTDSJX.js');
8
8
  require('./chunk-ALJJRZNJ.js');
9
9
  require('./chunk-XNYIZMNQ.js');
10
10
  require('./chunk-DIAWYWT5.js');
11
- require('./chunk-4OXHLTCP.js');
11
+ require('./chunk-IIP46RVC.js');
12
12
  require('./chunk-OG64RBAC.js');
13
13
  require('./chunk-COGTRVWW.js');
14
14
 
15
15
 
16
16
 
17
- exports.registerSessionSendRenderCommands = _chunkPNF2ZU4Rjs.registerSessionSendRenderCommands; exports.registerSessionsCommands = _chunkPNF2ZU4Rjs.registerSessionsCommands;
17
+ exports.registerSessionSendRenderCommands = _chunkQIEYEY6Zjs.registerSessionSendRenderCommands; exports.registerSessionsCommands = _chunkQIEYEY6Zjs.registerSessionsCommands;