deepline 0.3.460 → 0.3.462

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 (297) hide show
  1. package/dist/bundling-sources/sdk/src/client-core.ts +7593 -0
  2. package/dist/bundling-sources/sdk/src/client.ts +8 -7366
  3. package/dist/bundling-sources/sdk/src/http-core.ts +1239 -0
  4. package/dist/bundling-sources/sdk/src/http.ts +6 -1231
  5. package/dist/bundling-sources/sdk/src/index.ts +4 -1
  6. package/dist/bundling-sources/sdk/src/play.ts +5 -5
  7. package/dist/bundling-sources/sdk/src/plays/client-core.ts +437 -0
  8. package/dist/bundling-sources/sdk/src/plays/client.ts +4 -421
  9. package/dist/bundling-sources/sdk/src/plays/input-example.ts +3 -4
  10. package/dist/bundling-sources/sdk/src/plays/play-description.ts +1 -1
  11. package/dist/bundling-sources/sdk/src/plays/run-request.ts +1 -1
  12. package/dist/bundling-sources/sdk/src/release.ts +1 -1
  13. package/dist/bundling-sources/sdk/src/server.ts +43 -0
  14. package/dist/bundling-sources/sdk/src/types.ts +15 -5
  15. package/dist/bundling-sources/shared_libs/integration-contracts/billing-entitlements.ts +15 -0
  16. package/dist/bundling-sources/shared_libs/monitors/billing/state.ts +28 -0
  17. package/dist/bundling-sources/shared_libs/monitors/callback-security.ts +0 -307
  18. package/dist/bundling-sources/shared_libs/monitors/http-error-response.ts +3 -0
  19. package/dist/bundling-sources/shared_libs/monitors/lifecycle-notifications.ts +3 -2
  20. package/dist/bundling-sources/shared_libs/monitors/package.json +2 -0
  21. package/dist/bundling-sources/shared_libs/monitors/provider-callback-verification.ts +34 -0
  22. package/dist/bundling-sources/shared_libs/monitors/provider-monitor-batch-operation.ts +59 -0
  23. package/dist/bundling-sources/shared_libs/monitors/provider-monitor-upstream-identity.ts +94 -1
  24. package/dist/bundling-sources/shared_libs/monitors/signal-radars/inbound-dead-letter.ts +35 -1
  25. package/dist/bundling-sources/shared_libs/monitors/signal-radars/inbound-failure-codes.ts +24 -0
  26. package/dist/bundling-sources/shared_libs/observability/dlq.ts +32 -0
  27. package/dist/bundling-sources/shared_libs/observability/scheduled-jobs.json +57 -3
  28. package/dist/bundling-sources/shared_libs/observability/scheduled-work.ts +1 -0
  29. package/dist/bundling-sources/shared_libs/play-data-plane/r2.ts +66 -1
  30. package/dist/bundling-sources/shared_libs/play-data-plane/sheet-column-storage.ts +36 -7
  31. package/dist/bundling-sources/shared_libs/play-runtime/app-runtime-api.ts +250 -11
  32. package/dist/bundling-sources/shared_libs/play-runtime/array-input-store.ts +319 -0
  33. package/dist/bundling-sources/shared_libs/play-runtime/context.ts +991 -359
  34. package/dist/bundling-sources/shared_libs/play-runtime/ctx-types.ts +17 -0
  35. package/dist/bundling-sources/shared_libs/play-runtime/daytona-sandbox-janitor.ts +13 -0
  36. package/dist/bundling-sources/shared_libs/play-runtime/daytona-sandbox-reaper.ts +110 -0
  37. package/dist/bundling-sources/shared_libs/play-runtime/deployment/fly-machines.ts +155 -6
  38. package/dist/bundling-sources/shared_libs/play-runtime/deployment/fly-registry.ts +110 -6
  39. package/dist/bundling-sources/shared_libs/play-runtime/durable-receipt-execution.ts +127 -13
  40. package/dist/bundling-sources/shared_libs/play-runtime/execution-capabilities.ts +14 -1
  41. package/dist/bundling-sources/shared_libs/play-runtime/fixture-behavior.ts +57 -1
  42. package/dist/bundling-sources/shared_libs/play-runtime/free-company-lookup-batching.ts +218 -0
  43. package/dist/bundling-sources/shared_libs/play-runtime/gateway-postgres-admission.ts +42 -5
  44. package/dist/bundling-sources/shared_libs/play-runtime/governor/app-runtime-budget-state-backend.ts +6 -1
  45. package/dist/bundling-sources/shared_libs/play-runtime/governor/app-runtime-rate-state-backend.ts +92 -31
  46. package/dist/bundling-sources/shared_libs/play-runtime/governor/block-reserving-budget-state-backend.ts +69 -14
  47. package/dist/bundling-sources/shared_libs/play-runtime/governor/governor.ts +93 -23
  48. package/dist/bundling-sources/shared_libs/play-runtime/governor/in-memory-rate-state-backend.ts +15 -4
  49. package/dist/bundling-sources/shared_libs/play-runtime/governor/policy.ts +22 -18
  50. package/dist/bundling-sources/shared_libs/play-runtime/governor/rate-state-backend.ts +5 -0
  51. package/dist/bundling-sources/shared_libs/play-runtime/launch-identity.ts +2 -0
  52. package/dist/bundling-sources/shared_libs/play-runtime/map-memory-limits.ts +190 -14
  53. package/dist/bundling-sources/shared_libs/play-runtime/memory-ledger.ts +131 -0
  54. package/dist/bundling-sources/shared_libs/play-runtime/modal-runtime-config.ts +77 -2
  55. package/dist/bundling-sources/shared_libs/play-runtime/output-size-limits.ts +271 -2
  56. package/dist/bundling-sources/shared_libs/play-runtime/play-run-recovery-policy.ts +51 -0
  57. package/dist/bundling-sources/shared_libs/play-runtime/play-runs/sandbox-cleanup/contracts.ts +2 -0
  58. package/dist/bundling-sources/shared_libs/play-runtime/play-runs/sandbox-cleanup/job.ts +27 -1
  59. package/dist/bundling-sources/shared_libs/play-runtime/play-runtime-batching-registry.ts +2 -0
  60. package/dist/bundling-sources/shared_libs/play-runtime/protocol.ts +3 -0
  61. package/dist/bundling-sources/shared_libs/play-runtime/provider-text-for-log.ts +63 -0
  62. package/dist/bundling-sources/shared_libs/play-runtime/resource-governor.ts +19 -0
  63. package/dist/bundling-sources/shared_libs/play-runtime/run-ledger-event-transport.ts +112 -16
  64. package/dist/bundling-sources/shared_libs/play-runtime/run-ledger.ts +104 -2
  65. package/dist/bundling-sources/shared_libs/play-runtime/runner-app/index.ts +265 -151
  66. package/dist/bundling-sources/shared_libs/play-runtime/runner-app/runtime-gateway-transport.ts +17 -0
  67. package/dist/bundling-sources/shared_libs/play-runtime/runner-app/runtime-progress-push.ts +35 -14
  68. package/dist/bundling-sources/shared_libs/play-runtime/runner-app/runtime-sheet-persistence-retry.ts +12 -1
  69. package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/backends/daytona-control-transport.ts +4 -0
  70. package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/backends/daytona-labels.ts +36 -0
  71. package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/backends/daytona-launch-transport.ts +136 -70
  72. package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/backends/daytona-lifecycle.ts +237 -36
  73. package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/backends/daytona-runtime-watchdog.ts +148 -4
  74. package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/backends/daytona-session-execution.ts +6 -0
  75. package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/backends/daytona.ts +285 -32
  76. package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/backends/modal.ts +251 -56
  77. package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/runtime-sandbox-reconciliation.ts +29 -4
  78. package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/sandbox-create-outcome.ts +27 -0
  79. package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/types.ts +22 -1
  80. package/dist/bundling-sources/shared_libs/play-runtime/runtime-api.ts +1397 -382
  81. package/dist/bundling-sources/shared_libs/play-runtime/runtime-array-input-receipts.ts +920 -0
  82. package/dist/bundling-sources/shared_libs/play-runtime/runtime-constants.ts +16 -0
  83. package/dist/bundling-sources/shared_libs/play-runtime/runtime-environment.ts +38 -0
  84. package/dist/bundling-sources/shared_libs/play-runtime/runtime-flow.ts +6 -0
  85. package/dist/bundling-sources/shared_libs/play-runtime/runtime-incident-drills.ts +26 -1
  86. package/dist/bundling-sources/shared_libs/play-runtime/runtime-operation-contract.ts +30 -0
  87. package/dist/bundling-sources/shared_libs/play-runtime/runtime-receipt-store-adapter.ts +14 -3
  88. package/dist/bundling-sources/shared_libs/play-runtime/runtime-receipt-writer.ts +31 -4
  89. package/dist/bundling-sources/shared_libs/play-runtime/runtime-sheet-row-transition.ts +47 -0
  90. package/dist/bundling-sources/shared_libs/play-runtime/sandbox-compute-usage.ts +20 -7
  91. package/dist/bundling-sources/shared_libs/play-runtime/sandbox-runs/contract.ts +12 -0
  92. package/dist/bundling-sources/shared_libs/play-runtime/sandbox-runs/index.ts +9 -0
  93. package/dist/bundling-sources/shared_libs/play-runtime/sandbox-runs/runner-backend-adapter.ts +10 -0
  94. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backend.ts +4 -0
  95. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/absurd-runtime-worker.ts +1496 -320
  96. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/absurd-worker-required-env.ts +31 -1
  97. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/postgres.ts +1389 -129
  98. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/receipt-gateway.ts +36 -0
  99. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/run-ledger-dispatch-authority.ts +4 -0
  100. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/run-ledger-outbox-recovery.ts +162 -23
  101. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/runtime-event-search.ts +499 -115
  102. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/runtime-sandbox-capacity.ts +377 -9
  103. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/runtime-sandbox-ledger-reconciliation.ts +117 -8
  104. package/dist/bundling-sources/shared_libs/play-runtime/secret-resolution-retry-policy.ts +25 -0
  105. package/dist/bundling-sources/shared_libs/play-runtime/terminal-runtime-performance.ts +391 -0
  106. package/dist/bundling-sources/shared_libs/play-runtime/test-runtime-seams.ts +40 -0
  107. package/dist/bundling-sources/shared_libs/play-runtime/tool-call/index.ts +6 -0
  108. package/dist/bundling-sources/shared_libs/play-runtime/tool-call/mapped-calls.ts +171 -0
  109. package/dist/bundling-sources/shared_libs/play-runtime/tool-call/receipt-cohort.ts +16 -1
  110. package/dist/bundling-sources/shared_libs/play-runtime/tool-execute-retry-policy.ts +26 -3
  111. package/dist/bundling-sources/shared_libs/play-runtime/tool-result.ts +16 -2
  112. package/dist/bundling-sources/shared_libs/play-runtime/transport-error-diagnostics.ts +28 -0
  113. package/dist/bundling-sources/shared_libs/play-runtime/work-receipt-storage-contract.ts +55 -5
  114. package/dist/bundling-sources/shared_libs/plays/authoring-contract.ts +41 -1
  115. package/dist/bundling-sources/shared_libs/plays/contracts.ts +4 -0
  116. package/dist/bundling-sources/shared_libs/plays/dataset.ts +9 -3
  117. package/dist/bundling-sources/shared_libs/plays/deploy/manifest-contract.ts +2 -0
  118. package/dist/bundling-sources/shared_libs/plays/deploy/manifest.ts +3 -2
  119. package/dist/bundling-sources/shared_libs/plays/deploy/project-serializer.ts +2 -2
  120. package/dist/bundling-sources/shared_libs/plays/run-output-summary.ts +66 -0
  121. package/dist/bundling-sources/shared_libs/plays/script-entry.ts +1 -1
  122. package/dist/bundling-sources/shared_libs/product-notifications/catalog.ts +43 -1
  123. package/dist/bundling-sources/shared_libs/product-notifications/content.ts +9 -0
  124. package/dist/bundling-sources/shared_libs/product-notifications/email.ts +91 -13
  125. package/dist/bundling-sources/shared_libs/product-notifications/events.ts +3 -0
  126. package/dist/bundling-sources/shared_libs/product-notifications/slack-delivery.ts +41 -24
  127. package/dist/bundling-sources/shared_libs/security/attested-client-ip.ts +91 -0
  128. package/dist/bundling-sources/shared_libs/security/internal-actor.ts +0 -11
  129. package/dist/cli/{auth-HKA6ZVHQ.mjs → auth-JDLEY7VU.mjs} +5 -4
  130. package/dist/cli/auth-UXKY6TCC.js +41 -0
  131. package/dist/cli/{billing-MTO2ZZ3G.js → billing-HXAXB3XZ.js} +152 -78
  132. package/dist/cli/{billing-26G44S5N.mjs → billing-SDHLBLMV.mjs} +84 -10
  133. package/dist/cli/{chunk-BHGII2D6.js → chunk-3ACMRZRV.js} +8 -6
  134. package/dist/cli/{chunk-S4Q2XCGM.mjs → chunk-3KZCFOZ6.mjs} +1 -1
  135. package/dist/cli/chunk-4KQ6SIBC.mjs +1038 -0
  136. package/dist/cli/{chunk-Z2GUFYT6.js → chunk-5LEAXRHV.js} +11 -11
  137. package/dist/cli/{chunk-XAYO3Q2X.mjs → chunk-6NNVJDVR.mjs} +7 -5
  138. package/dist/cli/{chunk-NMJ4D2WO.js → chunk-6PMCRYDA.js} +216 -91
  139. package/dist/cli/{chunk-OMM54B3X.mjs → chunk-6RNQGWFD.mjs} +16 -806
  140. package/dist/cli/{chunk-EBU7LQ64.js → chunk-6V7KVRR5.js} +3 -3
  141. package/dist/cli/{chunk-RDPTDDKX.js → chunk-7LFIMWMW.js} +2 -2
  142. package/dist/cli/chunk-7MJ6VI2T.mjs +19 -0
  143. package/dist/cli/chunk-7SWNPNML.js +1039 -0
  144. package/dist/cli/{chunk-CTRPCARW.mjs → chunk-7U3XNPOA.mjs} +267 -38
  145. package/dist/cli/{chunk-RBTTUYZZ.js → chunk-7VZHXVOQ.js} +1 -1
  146. package/dist/cli/{chunk-YVBWO647.mjs → chunk-AT636LLU.mjs} +2 -2
  147. package/dist/cli/{chunk-VTODQWQA.js → chunk-BGTPIMSM.js} +392 -261
  148. package/dist/cli/{chunk-KADIT5NV.mjs → chunk-CKSOY47X.mjs} +2 -2
  149. package/dist/cli/{chunk-7DH2FD7Y.mjs → chunk-D464JW3N.mjs} +5 -85
  150. package/dist/cli/chunk-D6DXOUTO.mjs +827 -0
  151. package/dist/cli/{describe-QW54QQNB.js → chunk-EM4TXCCI.js} +27 -44
  152. package/dist/cli/chunk-F6QV42MC.mjs +91 -0
  153. package/dist/cli/chunk-FKVYR3QA.mjs +1039 -0
  154. package/dist/cli/{chunk-LMAULZLF.js → chunk-GEGW5HPZ.js} +29 -27
  155. package/dist/cli/{chunk-M52JQSLK.js → chunk-HUB3CCM2.js} +13 -4
  156. package/dist/cli/{chunk-YHTQM5XI.js → chunk-I6VHOU5O.js} +27 -27
  157. package/dist/cli/{chunk-Z2XUZC34.js → chunk-IAYSWZDJ.js} +188 -76
  158. package/dist/cli/chunk-JF3TLIMQ.js +19 -0
  159. package/dist/cli/{chunk-HDFRJ4IT.mjs → chunk-JVHOS3K3.mjs} +177 -65
  160. package/dist/cli/{chunk-LAWEURCT.mjs → chunk-LFXLQEZN.mjs} +1 -1
  161. package/dist/cli/{chunk-2PBN4SZE.js → chunk-LROWFPGN.js} +16 -16
  162. package/dist/cli/{chunk-SLEUWLJE.mjs → chunk-MSY22NQW.mjs} +5 -5
  163. package/dist/cli/{chunk-LVJOFUU7.mjs → chunk-MUUQZIOF.mjs} +23 -49
  164. package/dist/cli/{chunk-2XHWOQF4.js → chunk-NBLSCHKK.js} +52 -50
  165. package/dist/cli/{chunk-526R2HON.mjs → chunk-NHRWZPWZ.mjs} +4 -2
  166. package/dist/cli/{chunk-KXMNM4AQ.js → chunk-NMU3VR5U.js} +4 -5
  167. package/dist/cli/{chunk-W3BE3CHK.mjs → chunk-O2RX5A66.mjs} +14 -12
  168. package/dist/cli/{chunk-UKFZT7RF.js → chunk-OMQ23IXL.js} +2 -2
  169. package/dist/cli/{chunk-LJTFZOHU.js → chunk-OPJAJBD4.js} +28 -54
  170. package/dist/cli/{chunk-MLFR6DVF.mjs → chunk-PHSEINNH.mjs} +5 -5
  171. package/dist/cli/{chunk-3DNKFH2G.mjs → chunk-PKHVSIJG.mjs} +19 -1
  172. package/dist/cli/{chunk-WIYWSYDS.mjs → chunk-Q2EIZKVX.mjs} +3 -3
  173. package/dist/cli/{chunk-VJAEA4CS.js → chunk-QJZ6WNWD.js} +8 -8
  174. package/dist/cli/{chunk-EIMG75BT.mjs → chunk-S3A4IXBQ.mjs} +4 -5
  175. package/dist/cli/{chunk-RZSTT45F.mjs → chunk-S42YIQNE.mjs} +13 -8
  176. package/dist/cli/{chunk-YULBYKAK.mjs → chunk-S6UAJR6V.mjs} +3 -3
  177. package/dist/cli/{chunk-G7L27KZB.mjs → chunk-TKAQR3IB.mjs} +31 -21
  178. package/dist/cli/{chunk-QWRHGGUH.js → chunk-UAJFWWZE.js} +20 -2
  179. package/dist/cli/{chunk-ZR2RLI4O.mjs → chunk-UDRPEZ5F.mjs} +223 -92
  180. package/dist/cli/{chunk-QGAWTBIR.js → chunk-ULK7JGGI.js} +511 -282
  181. package/dist/cli/chunk-V335HGX5.js +1038 -0
  182. package/dist/cli/{chunk-NH6JSJW6.mjs → chunk-V3MEA7NB.mjs} +7 -5
  183. package/dist/cli/{chunk-NRGGFVVB.js → chunk-VFGVXXZP.js} +37 -35
  184. package/dist/cli/chunk-VLEVVDWG.js +91 -0
  185. package/dist/cli/{chunk-R2GLGLDR.mjs → chunk-VPHN2HAL.mjs} +216 -91
  186. package/dist/cli/{chunk-CFUTOWE4.js → chunk-WG3KGAII.js} +8 -88
  187. package/dist/cli/{describe-TOMIAT37.mjs → chunk-WIY6U6GD.mjs} +19 -36
  188. package/dist/cli/{chunk-YS2YBSJB.js → chunk-XANRM3QA.js} +6 -6
  189. package/dist/cli/{chunk-KGQNIA37.js → chunk-XQCTG5OO.js} +44 -34
  190. package/dist/cli/{chunk-EJGBLXDZ.mjs → chunk-XZAFIOUQ.mjs} +1 -1
  191. package/dist/cli/chunk-Y4DPU4OM.js +827 -0
  192. package/dist/cli/chunk-YT5EODJO.js +920 -0
  193. package/dist/cli/{chunk-2WRO2UJ5.js → chunk-ZGQSFYD2.js} +56 -51
  194. package/dist/cli/{chunk-OJ6RUKVT.mjs → chunk-ZUK6LIJB.mjs} +10 -1
  195. package/dist/cli/command-docs.d.mts +5 -0
  196. package/dist/cli/command-docs.d.ts +5 -0
  197. package/dist/cli/command-docs.js +2 -2
  198. package/dist/cli/command-docs.mjs +1 -1
  199. package/dist/cli/{csv-6FNFYJUC.js → csv-C56GSCEU.js} +13 -12
  200. package/dist/cli/{csv-MDHT4BKK.mjs → csv-L54JS7TF.mjs} +4 -3
  201. package/dist/cli/{db-D6AMVOEW.js → db-MOGRMZTA.js} +30 -27
  202. package/dist/cli/{db-74O3RFWY.mjs → db-YVBUW2DX.mjs} +10 -7
  203. package/dist/cli/describe-KYEULWPG.js +48 -0
  204. package/dist/cli/describe-NLZKKT7C.mjs +48 -0
  205. package/dist/cli/describe-core.d.mts +153 -5
  206. package/dist/cli/describe-core.d.ts +153 -5
  207. package/dist/cli/describe-core.js +9 -5
  208. package/dist/cli/describe-core.mjs +10 -6
  209. package/dist/cli/{executions-N4FMGVSC.js → executions-A7L4ULPP.js} +9 -7
  210. package/dist/cli/{executions-PVSF4HUF.mjs → executions-ZBGSTT37.mjs} +7 -5
  211. package/dist/cli/{feedback-OB7NANZW.mjs → feedback-G6GU37FD.mjs} +6 -5
  212. package/dist/cli/{feedback-WFSPCAI2.js → feedback-OHLY7RYD.js} +10 -9
  213. package/dist/cli/getting-started.d.mts +6 -6
  214. package/dist/cli/getting-started.d.ts +6 -6
  215. package/dist/cli/getting-started.js +2 -2
  216. package/dist/cli/getting-started.mjs +1 -1
  217. package/dist/cli/git-P76N4NDQ.js +25 -0
  218. package/dist/cli/{git-FHUSPAEU.mjs → git-PKZW3QD5.mjs} +5 -4
  219. package/dist/cli/index.js +152 -142
  220. package/dist/cli/index.mjs +56 -46
  221. package/dist/cli/{legacy-noops-ECHNA5HN.js → legacy-noops-5LM3D724.js} +8 -7
  222. package/dist/cli/{legacy-noops-HMK4BSCI.mjs → legacy-noops-LJJYG6YA.mjs} +5 -4
  223. package/dist/cli/{monitors-U7VQ3EZM.mjs → monitors-72QV4ALO.mjs} +19 -6
  224. package/dist/cli/{monitors-XLLFNENH.js → monitors-UX3H5DC2.js} +103 -90
  225. package/dist/cli/{org-6H3USO5M.mjs → org-6RRRKOCP.mjs} +9 -6
  226. package/dist/cli/{org-QX6ER2HN.js → org-IF7ISUVB.js} +70 -67
  227. package/dist/cli/pages-3SU3HKL7.js +252 -0
  228. package/dist/cli/pages-DXDYYKEK.mjs +252 -0
  229. package/dist/cli/{play-MOB2WYOR.mjs → play-AHASKRLA.mjs} +512 -1508
  230. package/dist/cli/{play-WNB7HBZK.js → play-EUIUVLUH.js} +1090 -2086
  231. package/dist/cli/{providers-CXEZ23E2.mjs → providers-GWGE3WY3.mjs} +7 -5
  232. package/dist/cli/{providers-7M3DISKX.js → providers-V5WU4VXJ.js} +10 -8
  233. package/dist/cli/{quickstart-ZFCHKHF6.mjs → quickstart-OXKQ5ZST.mjs} +5 -4
  234. package/dist/cli/{quickstart-CLJT4AZL.js → quickstart-QP65I5PF.js} +13 -12
  235. package/dist/cli/run-6MM72IGL.mjs +443 -0
  236. package/dist/cli/run-F3FTYS56.js +443 -0
  237. package/dist/cli/search-OYKOOI7A.js +32 -0
  238. package/dist/cli/{search-FVYWYIC3.mjs → search-ZMEBVJZB.mjs} +8 -6
  239. package/dist/cli/{secrets-YRLKZQS5.js → secrets-ACND5N6A.js} +16 -14
  240. package/dist/cli/{secrets-WAMPTQFC.mjs → secrets-XRCJFF3L.mjs} +7 -5
  241. package/dist/cli/{sessions-IQ332BJH.mjs → sessions-RTK3CEW6.mjs} +5 -4
  242. package/dist/cli/{sessions-44J6WIVU.js → sessions-ZGRJPCFF.js} +6 -5
  243. package/dist/cli/{settings-4IJR2I2T.js → settings-PD5KWQQZ.js} +80 -77
  244. package/dist/cli/{settings-22S6NIFQ.mjs → settings-XDRBPRDE.mjs} +14 -11
  245. package/dist/cli/{setup-OZUPKKPW.mjs → setup-3HPYAOCC.mjs} +12 -10
  246. package/dist/cli/{setup-3FWSRNOX.js → setup-E2Q6PXHC.js} +53 -51
  247. package/dist/cli/{skills-5CW3NFP3.mjs → skills-OOQFMPOV.mjs} +7 -6
  248. package/dist/cli/skills-XYWV52KB.js +31 -0
  249. package/dist/cli/tools-ASCDZJCK.js +55 -0
  250. package/dist/cli/tools-C5ZT3UIC.mjs +55 -0
  251. package/dist/cli/update-5RQSEIFM.js +33 -0
  252. package/dist/cli/{update-IBULOV7P.mjs → update-ZWJTADIW.mjs} +9 -8
  253. package/dist/cli/{workflow-MVZT7MWT.mjs → workflow-23NMPAJ7.mjs} +10 -8
  254. package/dist/cli/{workflow-Z7FW6GT2.js → workflow-TCXU5YJV.js} +20 -18
  255. package/dist/client-DS2IWYZF.d.ts +10 -0
  256. package/dist/client-DTwnz_AW.d.mts +10 -0
  257. package/dist/{client-CYqG23K1.d.ts → client-core-B_6HAIBy.d.ts} +385 -12
  258. package/dist/{client-BbU5_j7n.d.mts → client-core-DzBSlY1U.d.mts} +385 -12
  259. package/dist/{compiler-manifest-CWz_sNOQ.d.mts → compiler-manifest-Dcyd3-Zd.d.mts} +43 -1
  260. package/dist/{compiler-manifest-CWz_sNOQ.d.ts → compiler-manifest-Dcyd3-Zd.d.ts} +43 -1
  261. package/dist/errors-d-sTrZhe.d.mts +142 -0
  262. package/dist/errors-yQwfgrcX.d.ts +142 -0
  263. package/dist/{index-BF2JB_Ug.d.mts → index-C6oXchjN.d.mts} +1 -1
  264. package/dist/{index-4NPXDzlD.d.ts → index-P56zy_z5.d.ts} +1 -1
  265. package/dist/index.d.mts +11 -147
  266. package/dist/index.d.ts +11 -147
  267. package/dist/index.js +15 -11
  268. package/dist/index.mjs +14 -10
  269. package/dist/install-integrity.json +141 -104
  270. package/dist/plays/bundle-play-file.d.mts +3 -3
  271. package/dist/plays/bundle-play-file.d.ts +3 -3
  272. package/dist/plays/bundle-play-file.mjs +2 -1
  273. package/dist/plays/play-description.d.mts +2 -2
  274. package/dist/plays/play-description.d.ts +2 -2
  275. package/dist/plays/play-description.js +2 -2
  276. package/dist/plays/play-description.mjs +1 -1
  277. package/dist/plays/run-request.d.mts +2 -2
  278. package/dist/plays/run-request.d.ts +2 -2
  279. package/dist/release.d.mts +1 -1
  280. package/dist/release.d.ts +1 -1
  281. package/dist/release.js +2 -2
  282. package/dist/release.mjs +1 -1
  283. package/dist/server.d.mts +17 -0
  284. package/dist/server.d.ts +17 -0
  285. package/dist/server.js +76 -0
  286. package/dist/server.mjs +76 -0
  287. package/package.json +6 -1
  288. package/dist/cli/auth-VDOCNR7H.js +0 -40
  289. package/dist/cli/chunk-PQUUWFXY.js +0 -95
  290. package/dist/cli/chunk-QJLKYYPX.js +0 -1710
  291. package/dist/cli/chunk-YBWAG72P.mjs +0 -95
  292. package/dist/cli/git-4PMBJSH5.js +0 -24
  293. package/dist/cli/search-4CCQCTVD.js +0 -30
  294. package/dist/cli/skills-LMNM6B5F.js +0 -30
  295. package/dist/cli/tools-AGBBDJ7P.js +0 -45
  296. package/dist/cli/tools-NOPBDRGW.mjs +0 -45
  297. package/dist/cli/update-U3W6USVD.js +0 -32
@@ -3,11 +3,13 @@
3
3
  var _chunkAID3OYVJjs = require('./chunk-AID3OYVJ.js');
4
4
 
5
5
 
6
+ var _chunkJF3TLIMQjs = require('./chunk-JF3TLIMQ.js');
6
7
 
7
- var _chunkVTODQWQAjs = require('./chunk-VTODQWQA.js');
8
+
9
+ var _chunkBGTPIMSMjs = require('./chunk-BGTPIMSM.js');
8
10
  require('./chunk-E4CABWXL.js');
9
11
  require('./chunk-JKVRBCZL.js');
10
- require('./chunk-KXMNM4AQ.js');
12
+ require('./chunk-NMU3VR5U.js');
11
13
  require('./chunk-XDVT3GOM.js');
12
14
 
13
15
 
@@ -18,8 +20,9 @@ require('./chunk-XDVT3GOM.js');
18
20
 
19
21
 
20
22
 
21
- var _chunkBHGII2D6js = require('./chunk-BHGII2D6.js');
22
- require('./chunk-QJLKYYPX.js');
23
+ var _chunk3ACMRZRVjs = require('./chunk-3ACMRZRV.js');
24
+ require('./chunk-Y4DPU4OM.js');
25
+ require('./chunk-YT5EODJO.js');
23
26
 
24
27
 
25
28
  var _chunkALJJRZNJjs = require('./chunk-ALJJRZNJ.js');
@@ -27,7 +30,7 @@ require('./chunk-XNYIZMNQ.js');
27
30
 
28
31
 
29
32
  var _chunkDIAWYWT5js = require('./chunk-DIAWYWT5.js');
30
- require('./chunk-RBTTUYZZ.js');
33
+ require('./chunk-7VZHXVOQ.js');
31
34
  require('./chunk-OG64RBAC.js');
32
35
  require('./chunk-COGTRVWW.js');
33
36
 
@@ -50,8 +53,8 @@ function formatCell(value) {
50
53
  return text.length > 80 ? `${text.slice(0, 77)}...` : text;
51
54
  }
52
55
  function tableLines(result) {
53
- const rows = _chunkBHGII2D6js.dataExportRows.call(void 0, customerDbRows(result));
54
- const responseColumns = _chunkBHGII2D6js.dataExportColumns.call(void 0,
56
+ const rows = _chunk3ACMRZRVjs.dataExportRows.call(void 0, customerDbRows(result));
57
+ const responseColumns = _chunk3ACMRZRVjs.dataExportColumns.call(void 0,
55
58
  rows,
56
59
  customerDbColumnNames(result)
57
60
  );
@@ -97,7 +100,7 @@ function tableLines(result) {
97
100
  return lines;
98
101
  }
99
102
  function customerDbRows(result) {
100
- return _chunkBHGII2D6js.recordRows.call(void 0, result.rows);
103
+ return _chunk3ACMRZRVjs.recordRows.call(void 0, result.rows);
101
104
  }
102
105
  function customerDbColumnNames(result) {
103
106
  return result.columns.map((column) => column.name).filter(Boolean);
@@ -150,7 +153,7 @@ function writeCustomerDbCsv(result, outPath) {
150
153
  const resolved = _path.resolve.call(void 0, outPath);
151
154
  _fs.writeFileSync.call(void 0,
152
155
  resolved,
153
- _chunkBHGII2D6js.dataExportCsvString.call(void 0, customerDbRows(result), customerDbColumnNames(result)),
156
+ _chunk3ACMRZRVjs.dataExportCsvString.call(void 0, customerDbRows(result), customerDbColumnNames(result)),
154
157
  "utf-8"
155
158
  );
156
159
  return resolved;
@@ -191,18 +194,18 @@ function dbQueryExportEnvelope(input) {
191
194
  function renderDbQueryResult(result, query, options) {
192
195
  const { sql, maxRows, operationKey } = query;
193
196
  const { format, out: outPath, json: explicitJsonOutput = false } = options;
194
- const jsonOutput = explicitJsonOutput || _chunkBHGII2D6js.shouldEmitJson.call(void 0, );
197
+ const jsonOutput = explicitJsonOutput || _chunk3ACMRZRVjs.shouldEmitJson.call(void 0, );
195
198
  const toolPayload = JSON.stringify({
196
199
  sql,
197
200
  result_mode: "rows",
198
201
  ...maxRows ? { max_rows: maxRows } : {},
199
202
  ...operationKey !== void 0 ? { operation_key: operationKey } : {}
200
203
  });
201
- const toolCommand = `deepline tools execute query_customer_db --payload ${_chunkAID3OYVJjs.shellQuote.call(void 0, toolPayload)} --json`;
204
+ const toolCommand = `deepline run query_customer_db --input ${_chunkAID3OYVJjs.shellQuote.call(void 0, toolPayload)}`;
202
205
  if (format === "csv") {
203
206
  if (outPath) {
204
207
  const exportedPath = writeCustomerDbCsv(result, outPath);
205
- _chunkBHGII2D6js.printCommandEnvelope.call(void 0,
208
+ _chunk3ACMRZRVjs.printCommandEnvelope.call(void 0,
206
209
  dbQueryExportEnvelope({
207
210
  result,
208
211
  format,
@@ -218,7 +221,7 @@ function renderDbQueryResult(result, query, options) {
218
221
  );
219
222
  return;
220
223
  }
221
- _chunkBHGII2D6js.printCommandEnvelope.call(void 0,
224
+ _chunk3ACMRZRVjs.printCommandEnvelope.call(void 0,
222
225
  dbQueryExportEnvelope({
223
226
  result,
224
227
  format,
@@ -228,7 +231,7 @@ function renderDbQueryResult(result, query, options) {
228
231
  }),
229
232
  {
230
233
  json: explicitJsonOutput,
231
- text: _chunkBHGII2D6js.dataExportCsvString.call(void 0,
234
+ text: _chunk3ACMRZRVjs.dataExportCsvString.call(void 0,
232
235
  customerDbRows(result),
233
236
  customerDbColumnNames(result)
234
237
  )
@@ -237,14 +240,14 @@ function renderDbQueryResult(result, query, options) {
237
240
  return;
238
241
  }
239
242
  if (format === "markdown") {
240
- const content = _chunkBHGII2D6js.markdownTableFromRows.call(void 0,
243
+ const content = _chunk3ACMRZRVjs.markdownTableFromRows.call(void 0,
241
244
  customerDbRows(result),
242
245
  customerDbColumnNames(result)
243
246
  );
244
247
  if (outPath) {
245
248
  const exportedPath = _path.resolve.call(void 0, outPath);
246
249
  _fs.writeFileSync.call(void 0, exportedPath, content, "utf-8");
247
- _chunkBHGII2D6js.printCommandEnvelope.call(void 0,
250
+ _chunk3ACMRZRVjs.printCommandEnvelope.call(void 0,
248
251
  dbQueryExportEnvelope({
249
252
  result,
250
253
  format,
@@ -260,7 +263,7 @@ function renderDbQueryResult(result, query, options) {
260
263
  );
261
264
  return;
262
265
  }
263
- _chunkBHGII2D6js.printCommandEnvelope.call(void 0,
266
+ _chunk3ACMRZRVjs.printCommandEnvelope.call(void 0,
264
267
  dbQueryExportEnvelope({
265
268
  result,
266
269
  format,
@@ -275,7 +278,7 @@ function renderDbQueryResult(result, query, options) {
275
278
  );
276
279
  return;
277
280
  }
278
- _chunkBHGII2D6js.printCommandEnvelope.call(void 0,
281
+ _chunk3ACMRZRVjs.printCommandEnvelope.call(void 0,
279
282
  {
280
283
  ...result,
281
284
  next: {
@@ -349,9 +352,9 @@ async function runDbQueryCommand(options) {
349
352
  ...maxRows === void 0 ? {} : { maxRows },
350
353
  ...operationKey === void 0 ? {} : { operationKey }
351
354
  };
352
- const plan = _chunkVTODQWQAjs.planCustomerDbQuery.call(void 0, query);
355
+ const plan = _chunkBGTPIMSMjs.planCustomerDbQuery.call(void 0, query);
353
356
  if (options.dryRun) {
354
- _chunkBHGII2D6js.printCommandEnvelope.call(void 0,
357
+ _chunk3ACMRZRVjs.printCommandEnvelope.call(void 0,
355
358
  {
356
359
  dryRun: true,
357
360
  ...plan,
@@ -364,11 +367,11 @@ async function runDbQueryCommand(options) {
364
367
  ...out === void 0 ? {} : { file: _path.resolve.call(void 0, out) }
365
368
  }
366
369
  },
367
- { json: options.json || _chunkBHGII2D6js.shouldEmitJson.call(void 0, ) }
370
+ { json: options.json || _chunk3ACMRZRVjs.shouldEmitJson.call(void 0, ) }
368
371
  );
369
372
  return 0;
370
373
  }
371
- const client = new (0, _chunkVTODQWQAjs.DeeplineClient)();
374
+ const client = new (0, _chunkJF3TLIMQjs.DeeplineClient)();
372
375
  const result = await client.db.query(query);
373
376
  renderDbQueryResult(result, query, {
374
377
  format,
@@ -377,8 +380,8 @@ async function runDbQueryCommand(options) {
377
380
  });
378
381
  return 0;
379
382
  } catch (error) {
380
- if (error instanceof _chunkALJJRZNJjs.CustomerDbQueryOutcomeUnknownError && (options.json || _chunkBHGII2D6js.shouldEmitJson.call(void 0, ))) {
381
- _chunkBHGII2D6js.printCommandEnvelope.call(void 0,
383
+ if (error instanceof _chunkALJJRZNJjs.CustomerDbQueryOutcomeUnknownError && (options.json || _chunk3ACMRZRVjs.shouldEmitJson.call(void 0, ))) {
384
+ _chunk3ACMRZRVjs.printCommandEnvelope.call(void 0,
382
385
  {
383
386
  ok: false,
384
387
  error: {
@@ -426,8 +429,8 @@ function dbRepairPlainText(result) {
426
429
  async function handleDbRepair(args) {
427
430
  const providerIndex = args.indexOf("--provider");
428
431
  const provider = providerIndex >= 0 ? _optionalChain([args, 'access', _9 => _9[providerIndex + 1], 'optionalAccess', _10 => _10.trim, 'call', _11 => _11()]) : void 0;
429
- const jsonOutput = _chunkBHGII2D6js.argsWantJson.call(void 0, args);
430
- const client = new (0, _chunkVTODQWQAjs.DeeplineClient)();
432
+ const jsonOutput = _chunk3ACMRZRVjs.argsWantJson.call(void 0, args);
433
+ const client = new (0, _chunkJF3TLIMQjs.DeeplineClient)();
431
434
  let result;
432
435
  try {
433
436
  result = await client.repairIngestionStorage(
@@ -443,7 +446,7 @@ async function handleDbRepair(args) {
443
446
  console.error(errorMessage2(error));
444
447
  return 1;
445
448
  }
446
- _chunkBHGII2D6js.printCommandEnvelope.call(void 0,
449
+ _chunk3ACMRZRVjs.printCommandEnvelope.call(void 0,
447
450
  {
448
451
  command: "db repair",
449
452
  status: result.status,
@@ -2,12 +2,14 @@ import {
2
2
  shellQuote
3
3
  } from "./chunk-OVDNJAJN.mjs";
4
4
  import {
5
- DeeplineClient,
5
+ DeeplineClient
6
+ } from "./chunk-7MJ6VI2T.mjs";
7
+ import {
6
8
  planCustomerDbQuery
7
- } from "./chunk-ZR2RLI4O.mjs";
9
+ } from "./chunk-UDRPEZ5F.mjs";
8
10
  import "./chunk-L2VKAASU.mjs";
9
11
  import "./chunk-FAG4DFUC.mjs";
10
- import "./chunk-EIMG75BT.mjs";
12
+ import "./chunk-S3A4IXBQ.mjs";
11
13
  import "./chunk-UBKA33KY.mjs";
12
14
  import {
13
15
  argsWantJson,
@@ -18,8 +20,9 @@ import {
18
20
  printCommandEnvelope,
19
21
  recordRows,
20
22
  shouldEmitJson
21
- } from "./chunk-526R2HON.mjs";
22
- import "./chunk-OMM54B3X.mjs";
23
+ } from "./chunk-NHRWZPWZ.mjs";
24
+ import "./chunk-D6DXOUTO.mjs";
25
+ import "./chunk-6RNQGWFD.mjs";
23
26
  import {
24
27
  CustomerDbQueryOutcomeUnknownError
25
28
  } from "./chunk-4QF2K7TM.mjs";
@@ -27,7 +30,7 @@ import "./chunk-DLIRSHV6.mjs";
27
30
  import {
28
31
  DeeplineError
29
32
  } from "./chunk-HBL4PM5Q.mjs";
30
- import "./chunk-EJGBLXDZ.mjs";
33
+ import "./chunk-XZAFIOUQ.mjs";
31
34
  import "./chunk-WZYKRD7T.mjs";
32
35
  import "./chunk-KRD6H754.mjs";
33
36
 
@@ -198,7 +201,7 @@ function renderDbQueryResult(result, query, options) {
198
201
  ...maxRows ? { max_rows: maxRows } : {},
199
202
  ...operationKey !== void 0 ? { operation_key: operationKey } : {}
200
203
  });
201
- const toolCommand = `deepline tools execute query_customer_db --payload ${shellQuote(toolPayload)} --json`;
204
+ const toolCommand = `deepline run query_customer_db --input ${shellQuote(toolPayload)}`;
202
205
  if (format === "csv") {
203
206
  if (outPath) {
204
207
  const exportedPath = writeCustomerDbCsv(result, outPath);
@@ -0,0 +1,48 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
+
3
+
4
+
5
+
6
+ var _chunkEM4TXCCIjs = require('./chunk-EM4TXCCI.js');
7
+ require('./chunk-ULK7JGGI.js');
8
+ require('./chunk-7SWNPNML.js');
9
+ require('./chunk-OPJAJBD4.js');
10
+
11
+
12
+ var _chunkXQCTG5OOjs = require('./chunk-XQCTG5OO.js');
13
+ require('./chunk-5LEAXRHV.js');
14
+ require('./chunk-IAYSWZDJ.js');
15
+ require('./chunk-AID3OYVJ.js');
16
+ require('./chunk-ZM2YPJQJ.js');
17
+ require('./chunk-J33TSWO5.js');
18
+ require('./chunk-HGFFYVXN.js');
19
+ require('./chunk-JF3TLIMQ.js');
20
+ require('./chunk-NA4T3B62.js');
21
+ require('./chunk-BGTPIMSM.js');
22
+ require('./chunk-E4CABWXL.js');
23
+ require('./chunk-JKVRBCZL.js');
24
+ require('./chunk-NMU3VR5U.js');
25
+ require('./chunk-XDVT3GOM.js');
26
+ require('./chunk-GEGW5HPZ.js');
27
+ require('./chunk-LROWFPGN.js');
28
+ require('./chunk-OMQ23IXL.js');
29
+ require('./chunk-VFGVXXZP.js');
30
+ require('./chunk-7LFIMWMW.js');
31
+ require('./chunk-ZGQSFYD2.js');
32
+ require('./chunk-HUB3CCM2.js');
33
+ require('./chunk-3ACMRZRV.js');
34
+ require('./chunk-Y4DPU4OM.js');
35
+ require('./chunk-YT5EODJO.js');
36
+ require('./chunk-ALJJRZNJ.js');
37
+ require('./chunk-XNYIZMNQ.js');
38
+ require('./chunk-DIAWYWT5.js');
39
+ require('./chunk-7VZHXVOQ.js');
40
+ require('./chunk-OG64RBAC.js');
41
+ require('./chunk-COGTRVWW.js');
42
+
43
+
44
+
45
+
46
+
47
+
48
+ exports.DEEPLINE_NAMESPACE = _chunkXQCTG5OOjs.DEEPLINE_NAMESPACE; exports.describeAnything = _chunkEM4TXCCIjs.describeAnything; exports.findNamed = _chunkEM4TXCCIjs.findNamed; exports.nothingNamed = _chunkEM4TXCCIjs.nothingNamed; exports.registerDescribeCommand = _chunkEM4TXCCIjs.registerDescribeCommand;
@@ -0,0 +1,48 @@
1
+ import {
2
+ describeAnything,
3
+ findNamed,
4
+ nothingNamed,
5
+ registerDescribeCommand
6
+ } from "./chunk-WIY6U6GD.mjs";
7
+ import "./chunk-7U3XNPOA.mjs";
8
+ import "./chunk-FKVYR3QA.mjs";
9
+ import "./chunk-MUUQZIOF.mjs";
10
+ import {
11
+ DEEPLINE_NAMESPACE
12
+ } from "./chunk-TKAQR3IB.mjs";
13
+ import "./chunk-MSY22NQW.mjs";
14
+ import "./chunk-JVHOS3K3.mjs";
15
+ import "./chunk-OVDNJAJN.mjs";
16
+ import "./chunk-LJ5747UC.mjs";
17
+ import "./chunk-FR2ILQ4G.mjs";
18
+ import "./chunk-FIVKWNMT.mjs";
19
+ import "./chunk-7MJ6VI2T.mjs";
20
+ import "./chunk-TXZVVBQZ.mjs";
21
+ import "./chunk-UDRPEZ5F.mjs";
22
+ import "./chunk-L2VKAASU.mjs";
23
+ import "./chunk-FAG4DFUC.mjs";
24
+ import "./chunk-S3A4IXBQ.mjs";
25
+ import "./chunk-UBKA33KY.mjs";
26
+ import "./chunk-O2RX5A66.mjs";
27
+ import "./chunk-PHSEINNH.mjs";
28
+ import "./chunk-3KZCFOZ6.mjs";
29
+ import "./chunk-V3MEA7NB.mjs";
30
+ import "./chunk-LFXLQEZN.mjs";
31
+ import "./chunk-S42YIQNE.mjs";
32
+ import "./chunk-ZUK6LIJB.mjs";
33
+ import "./chunk-NHRWZPWZ.mjs";
34
+ import "./chunk-D6DXOUTO.mjs";
35
+ import "./chunk-6RNQGWFD.mjs";
36
+ import "./chunk-4QF2K7TM.mjs";
37
+ import "./chunk-DLIRSHV6.mjs";
38
+ import "./chunk-HBL4PM5Q.mjs";
39
+ import "./chunk-XZAFIOUQ.mjs";
40
+ import "./chunk-WZYKRD7T.mjs";
41
+ import "./chunk-KRD6H754.mjs";
42
+ export {
43
+ DEEPLINE_NAMESPACE,
44
+ describeAnything,
45
+ findNamed,
46
+ nothingNamed,
47
+ registerDescribeCommand
48
+ };
@@ -1,10 +1,132 @@
1
1
  /// <reference path="./text-imports.d.ts" />
2
- import { T as ToolDefinition, D as DeeplineAgentModelDescription, P as PlayDescription, S as SearchType, a as DeeplineClient } from '../client-BbU5_j7n.mjs';
3
- import '../compiler-manifest-CWz_sNOQ.mjs';
2
+ import { D as DeeplineClient } from '../client-DTwnz_AW.mjs';
3
+ import { cQ as ToolDefinition, L as DeeplineAgentModelDescription, b9 as PlayDescription, ct as SearchType } from '../client-core-DzBSlY1U.mjs';
4
+ import '../compiler-manifest-Dcyd3-Zd.mjs';
4
5
  import '@sinclair/typebox';
5
6
  import 'zod';
6
7
  import '../monitor-fleet-contract.mjs';
7
8
 
9
+ /**
10
+ * One description of anything Deepline can run, and the one way it is shown.
11
+ *
12
+ * The catalog describes a tool, a monitor type and a play in different words,
13
+ * but a reader asks the same things of each: what it is, what it costs, what
14
+ * goes in, what comes out, and how to run it. Each kind is translated into a
15
+ * `Described` once; everything `deepline describe` prints is derived from it.
16
+ */
17
+ type DescribedKind = 'tool' | 'monitor_type' | 'prebuilt_play' | 'custom_play';
18
+ type Field = {
19
+ name: string;
20
+ /** A TypeScript-like type: `string | null`, `"a" | "b"`, `string[]`, `{}[]`. */
21
+ type: string;
22
+ required: boolean;
23
+ example?: unknown;
24
+ description?: string;
25
+ /** For an output: the expression a play reads it with. */
26
+ read?: string;
27
+ /**
28
+ * For a tool output: where it is in `tools execute --json`, tried in order.
29
+ * When `in` names a list output, the paths are within each of its rows.
30
+ */
31
+ paths?: string[];
32
+ in?: string;
33
+ /** The object's own fields, when `type` contains a shape. */
34
+ fields?: Field[];
35
+ /** The name the shape goes by, such as `EmailStatus`; it is defined once under Types. */
36
+ shape?: string;
37
+ /** Another object whose fields this one also has, printed as `...name`. */
38
+ spread?: string;
39
+ /**
40
+ * Show only the names of `fields` unless the whole schema is asked for. Set
41
+ * where the shape is background, as the rows of a list are when each column
42
+ * worth reading is already an output of its own.
43
+ */
44
+ summarized?: boolean;
45
+ /**
46
+ * Detail a caller can do without: diagnostics, attempt logs, echoes of
47
+ * input. Left out of the default view, which stays enough to call the thing
48
+ * and use its result.
49
+ */
50
+ secondary?: boolean;
51
+ /** What the field is, as a field catalog id such as `person.email.work.value`. */
52
+ means?: string;
53
+ };
54
+ /** How the thing is run, which is what its examples are built from. */
55
+ type Runner =
56
+ /** `inputSchema` gives the bounds its example numbers start from. */
57
+ {
58
+ via: 'tool';
59
+ toolId: string;
60
+ inputSchema?: unknown;
61
+ } | {
62
+ via: 'play';
63
+ reference: string;
64
+ inputSchema?: unknown;
65
+ } | {
66
+ via: 'monitor';
67
+ deploy: string;
68
+ };
69
+ type Byok = {
70
+ supported?: boolean;
71
+ required?: boolean;
72
+ setup?: string;
73
+ setupUrl?: string;
74
+ };
75
+ /** A part of a tool with its own description; `describe --feature` shows it. */
76
+ type DescribedFeature = {
77
+ name: string;
78
+ summary: string;
79
+ /** For an input feature, the value described when none is given. */
80
+ defaultValue?: string;
81
+ };
82
+ type Described = {
83
+ kind: DescribedKind;
84
+ id: string;
85
+ displayName?: string;
86
+ description?: string;
87
+ cost?: string;
88
+ guidance: string[];
89
+ rateLimit?: string;
90
+ /** Whether a tool can run on the workspace's own provider credentials; only on request. */
91
+ byok?: Byok;
92
+ /** For a tool: the parts of it `describe --feature` can describe. */
93
+ features?: DescribedFeature[];
94
+ inputs: Field[];
95
+ outputs: Field[];
96
+ /**
97
+ * For a play that returns rows: the CSV columns it reads from each row, if
98
+ * it takes a CSV, and the columns of each row it returns. Its `inputs` and
99
+ * `outputs` only say that it takes a file and returns rows; the text output
100
+ * types the `csvInput` input and the `rows` output with these columns.
101
+ */
102
+ rowInputs?: Field[];
103
+ rowOutputs?: Field[];
104
+ /** The input that takes the CSV whose rows are `rowInputs`. */
105
+ csvInput?: string;
106
+ /**
107
+ * True when each returned row keeps the source row's columns and the play
108
+ * adds `rowOutputs` to them; false when the play builds new rows.
109
+ */
110
+ rowOutputsAddToSource?: boolean;
111
+ /**
112
+ * For a tool: the provider response its outputs are read from, at
113
+ * `result.toolResponse.rawV2`. Shown only with the full schema, since the
114
+ * outputs above are what a play normally reads.
115
+ */
116
+ rawResponse?: Field[];
117
+ runner: Runner;
118
+ /** For a play: the command that saves its source to a file. */
119
+ source?: string;
120
+ /**
121
+ * An input that cannot be given with others: a CSV play takes either its
122
+ * CSV or the per-row values the CSV replaces, never both.
123
+ */
124
+ exclusive?: {
125
+ field: string;
126
+ with: string[];
127
+ };
128
+ };
129
+
8
130
  /**
9
131
  * How `deepline describe` presents a tool: its contract, the JSON record,
10
132
  * and the shared `Described` form. Pure, so the CLI and MCP describe a tool
@@ -27,6 +149,10 @@ type SeededScript = {
27
149
  windowsCopyCommand: string;
28
150
  };
29
151
 
152
+ type FeatureView = {
153
+ details: unknown;
154
+ lines: string[];
155
+ };
30
156
  type FeatureDependencies = {
31
157
  describeModel(model: string): Promise<DeeplineAgentModelDescription>;
32
158
  };
@@ -41,6 +167,17 @@ type FeatureDependencies = {
41
167
  */
42
168
  /** The `--type` name that selects each kind; `plays` is `prebuilts` plus `custom`. */
43
169
  type KindFilter = Exclude<SearchType, 'plays'>;
170
+ /** A described thing plus the record the catalog holds for it, for `--json`. */
171
+ type Match = {
172
+ described: Described;
173
+ record: Record<string, unknown>;
174
+ /** The JSON Schemas `--schema-only --json` prints. */
175
+ schemas: Record<string, unknown>;
176
+ /** Describes one of `described.features` at a value; null for any other name. */
177
+ feature?: (name: string, value?: string) => Promise<FeatureView> | null;
178
+ /** A tool's own metadata, so running it does not fetch it again. */
179
+ tool?: CliToolMetadata;
180
+ };
44
181
  type DescribeOptions = {
45
182
  /** Set by `tools describe` and `plays describe` to limit what a name may be. */
46
183
  kinds?: readonly KindFilter[];
@@ -70,6 +207,8 @@ type DescribeLookups = FeatureDependencies & {
70
207
  /** Where a list tool's starter Play is written; only a local CLI has one. */
71
208
  seedStarterScript?: SeedStarterScript;
72
209
  };
210
+ /** The prefix that names something Deepline maintains: `deepline/<name>`. */
211
+ declare const DEEPLINE_NAMESPACE = "deepline/";
73
212
  /** Describe's lookups over an SDK client, as the CLI and MCP both read. */
74
213
  declare function describeLookupsFor(client: Pick<DeeplineClient, 'describePlay' | 'getTool' | 'describeModel' | 'baseUrl'>): DescribeLookups;
75
214
  /**
@@ -89,12 +228,21 @@ type DescribeOutcome = {
89
228
  exitCode: number;
90
229
  };
91
230
  /**
92
- * Describe whatever `name` is: anything `deepline search` returns. Tool ids,
231
+ * Find whatever `name` is: anything `deepline search` returns. Tool ids,
93
232
  * monitor type ids and prebuilt play names never collide (the catalog build
94
233
  * rejects a release where they do), so a bare name has at most one
95
234
  * Deepline-maintained meaning. A play the workspace created under the same
96
- * name wins unless `custom` is excluded, and the output says so.
235
+ * name wins unless `custom` is excluded; `shadowed` is what it hides.
236
+ * `deepline/<name>` names the Deepline tool or play, never a workspace play.
237
+ */
238
+ declare function findNamed(reference: string, options: Pick<DescribeOptions, 'kinds' | 'prebuilt' | 'tool'>, lookups: DescribeLookups): Promise<{
239
+ chosen?: Match;
240
+ shadowed?: Match;
241
+ }>;
242
+ /**
243
+ * Describe whatever `name` is; see findNamed for how a name resolves. When a
244
+ * workspace play hides a Deepline-maintained one, the output says so.
97
245
  */
98
246
  declare function describeName(name: string, options: DescribeOptions, lookups: DescribeLookups): Promise<DescribeOutcome>;
99
247
 
100
- export { type CliToolMetadata, type DescribeLookups, type DescribeOptions, type DescribeOutcome, type KindFilter, PlayDescription, describeLookupsFor, describeName };
248
+ export { type CliToolMetadata, DEEPLINE_NAMESPACE, type DescribeLookups, type DescribeOptions, type DescribeOutcome, type KindFilter, type Match, PlayDescription, describeLookupsFor, describeName, findNamed };