deepline 0.3.502 → 0.3.503

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (204) hide show
  1. package/dist/bundling-sources/sdk/src/client-core.ts +26 -0
  2. package/dist/bundling-sources/sdk/src/index.ts +1 -0
  3. package/dist/bundling-sources/sdk/src/release.ts +1 -1
  4. package/dist/bundling-sources/sdk/src/types.ts +9 -0
  5. package/dist/bundling-sources/shared_libs/monitors/starter-templates.ts +0 -8
  6. package/dist/bundling-sources/shared_libs/observability/dlq.ts +174 -0
  7. package/dist/bundling-sources/shared_libs/observability/queue-health.ts +9 -0
  8. package/dist/bundling-sources/shared_libs/observability/queue-item-connectors.ts +1 -0
  9. package/dist/bundling-sources/shared_libs/observability/scheduled-jobs.json +18 -0
  10. package/dist/bundling-sources/shared_libs/play-runtime/activity-observation.ts +20 -0
  11. package/dist/bundling-sources/shared_libs/play-runtime/app-runtime-api.ts +62 -2
  12. package/dist/bundling-sources/shared_libs/play-runtime/context.ts +667 -62
  13. package/dist/bundling-sources/shared_libs/play-runtime/ctx-types.ts +55 -0
  14. package/dist/bundling-sources/shared_libs/play-runtime/durable-receipt-execution.ts +20 -2
  15. package/dist/bundling-sources/shared_libs/play-runtime/durable-runs-rollout.ts +46 -0
  16. package/dist/bundling-sources/shared_libs/play-runtime/execution-gateway-invocation-fence.ts +80 -4
  17. package/dist/bundling-sources/shared_libs/play-runtime/fixture-egress-fetch.ts +95 -0
  18. package/dist/bundling-sources/shared_libs/play-runtime/freshness-receipt-execution.ts +292 -45
  19. package/dist/bundling-sources/shared_libs/play-runtime/internal-bootstrap-token.ts +15 -0
  20. package/dist/bundling-sources/shared_libs/play-runtime/launch-identity.ts +3 -0
  21. package/dist/bundling-sources/shared_libs/play-runtime/play-http-request.ts +7 -3
  22. package/dist/bundling-sources/shared_libs/play-runtime/play-runtime-semantics.ts +31 -1
  23. package/dist/bundling-sources/shared_libs/play-runtime/post-code-recovery-policy.ts +231 -0
  24. package/dist/bundling-sources/shared_libs/play-runtime/protocol.ts +4 -0
  25. package/dist/bundling-sources/shared_libs/play-runtime/run-ending-event.ts +55 -0
  26. package/dist/bundling-sources/shared_libs/play-runtime/run-ledger.ts +126 -0
  27. package/dist/bundling-sources/shared_libs/play-runtime/runner-app/index.ts +38 -1
  28. package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/backends/daytona-launch-transport.ts +2 -9
  29. package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/backends/daytona-lifecycle.ts +51 -19
  30. package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/backends/local-process.ts +9 -4
  31. package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/backends/modal.ts +2 -0
  32. package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/runtime-sandbox-reconciliation.ts +2 -0
  33. package/dist/bundling-sources/shared_libs/play-runtime/runtime-actions.ts +12 -1
  34. package/dist/bundling-sources/shared_libs/play-runtime/runtime-authority.ts +3 -0
  35. package/dist/bundling-sources/shared_libs/play-runtime/runtime-incident-drills.ts +42 -0
  36. package/dist/bundling-sources/shared_libs/play-runtime/runtime-operation-contract.ts +7 -0
  37. package/dist/bundling-sources/shared_libs/play-runtime/runtime-receipt-store-adapter.ts +26 -1
  38. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backend.ts +13 -0
  39. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/absurd-deadline-reconciliation.ts +53 -0
  40. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/absurd-runtime-worker.ts +631 -19
  41. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/durable-run-inventory.ts +719 -0
  42. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/durable-run-sql.ts +206 -0
  43. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/latest-cache-result.ts +83 -0
  44. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/postgres.ts +1432 -157
  45. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/receipt-gateway.ts +61 -0
  46. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/runtime-event-search.ts +29 -8
  47. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/runtime-queue-health.ts +27 -2
  48. package/dist/bundling-sources/shared_libs/play-runtime/test-runtime-seams.ts +45 -0
  49. package/dist/bundling-sources/shared_libs/play-runtime/tool-cache-policy.ts +18 -0
  50. package/dist/bundling-sources/shared_libs/play-runtime/tool-execute-retry-policy.ts +129 -14
  51. package/dist/bundling-sources/shared_libs/play-runtime/workflow-executor-auth.ts +2 -0
  52. package/dist/bundling-sources/shared_libs/plays/authoring-contract.ts +10 -1
  53. package/dist/cli/{auth-EFHLOVG4.mjs → auth-IC4WLSE3.mjs} +5 -5
  54. package/dist/cli/auth-ZCMSXZO4.js +43 -0
  55. package/dist/cli/{billing-Q5XKEYPP.mjs → billing-2VOV64SD.mjs} +6 -6
  56. package/dist/cli/{billing-SKT2VE34.js → billing-LWQOII22.js} +79 -79
  57. package/dist/cli/{chunk-TAK3MVXY.js → chunk-2626LTU3.js} +284 -267
  58. package/dist/cli/{chunk-OEUMXKR5.js → chunk-26RSSTCF.js} +26 -26
  59. package/dist/cli/{chunk-JFBJLNBI.js → chunk-2K2QBLYO.js} +53 -53
  60. package/dist/cli/{chunk-32YQBJON.js → chunk-33JUK73X.js} +7 -7
  61. package/dist/cli/{chunk-X5MGQ7UT.js → chunk-3CXHK4TW.js} +10 -10
  62. package/dist/cli/{chunk-YPTZJ7LO.js → chunk-4IIYSBEP.js} +70 -13
  63. package/dist/cli/{chunk-HIVRCTDR.mjs → chunk-5GI6NKOE.mjs} +20 -1
  64. package/dist/cli/{chunk-TFFJ2PRN.mjs → chunk-5M5WSFRZ.mjs} +70 -13
  65. package/dist/cli/{chunk-4CCMD7QM.mjs → chunk-6XTE6C3W.mjs} +32 -15
  66. package/dist/cli/{chunk-OFBLT2LQ.mjs → chunk-7HEDCIR3.mjs} +1 -1
  67. package/dist/cli/{chunk-DRBD4IYQ.mjs → chunk-7MJYZ33I.mjs} +2 -6
  68. package/dist/cli/{chunk-JL6H4H3G.js → chunk-A2C6ONWA.js} +6 -6
  69. package/dist/cli/{chunk-DKAMCJIT.js → chunk-AARF4SOW.js} +17 -13
  70. package/dist/cli/{chunk-QNELA7SX.js → chunk-B3X4YWQ6.js} +53 -53
  71. package/dist/cli/{chunk-NZXB27TP.mjs → chunk-BI2Q45SY.mjs} +4 -4
  72. package/dist/cli/{chunk-FVM4PS5Q.js → chunk-BN5VKY4X.js} +25 -12
  73. package/dist/cli/{chunk-UOANF3DR.js → chunk-C5RQTTLP.js} +26 -7
  74. package/dist/cli/{chunk-YWOQYYYS.mjs → chunk-D27HP3HS.mjs} +2 -2
  75. package/dist/cli/{chunk-NXVYLX3F.mjs → chunk-DPI5OYVU.mjs} +10 -6
  76. package/dist/cli/{chunk-R5F7JXT4.mjs → chunk-EDMV4JT5.mjs} +2 -2
  77. package/dist/cli/{chunk-MYUISF3P.mjs → chunk-EQ3WMKFY.mjs} +5 -5
  78. package/dist/cli/{chunk-YDXEXVBV.js → chunk-F73PD2XD.js} +7 -7
  79. package/dist/cli/{chunk-L5CTJY74.mjs → chunk-FHJ54BHH.mjs} +2 -2
  80. package/dist/cli/{chunk-EUWRKWT4.js → chunk-FIUTDSJX.js} +5 -4
  81. package/dist/cli/{chunk-WKFAX2K7.js → chunk-FVDTERO2.js} +21 -21
  82. package/dist/cli/{chunk-Q3NM6ZL3.js → chunk-FZHOWPSN.js} +23 -21
  83. package/dist/cli/{chunk-NKLM4J4X.mjs → chunk-GIHNEYBG.mjs} +1 -1
  84. package/dist/cli/{chunk-7ZYSXSJJ.mjs → chunk-GLZBFBJS.mjs} +5 -5
  85. package/dist/cli/{chunk-DYHTXGLX.js → chunk-HRTDCXHI.js} +2 -2
  86. package/dist/cli/{chunk-JLYDLK6X.js → chunk-HS63YBT5.js} +3 -3
  87. package/dist/cli/{chunk-LA3UYRVZ.js → chunk-IIP46RVC.js} +1 -1
  88. package/dist/cli/{chunk-SAW3FBCA.mjs → chunk-ITJ7NB2D.mjs} +6 -0
  89. package/dist/cli/{chunk-54QXWK3C.mjs → chunk-J6RBOLK7.mjs} +1 -1
  90. package/dist/cli/{chunk-YL2CCF6T.mjs → chunk-JJVN7OIX.mjs} +4 -4
  91. package/dist/cli/{chunk-4WTC5SSN.mjs → chunk-JPDD4Y53.mjs} +10 -8
  92. package/dist/cli/{chunk-HMZF2CSP.mjs → chunk-K7NFFQFU.mjs} +2 -2
  93. package/dist/cli/{chunk-2MVIS2UI.mjs → chunk-KGLVATEB.mjs} +2 -2
  94. package/dist/cli/{chunk-3MJSWVQ2.mjs → chunk-KPBBT6OS.mjs} +2 -1
  95. package/dist/cli/{chunk-W5CHE5Q2.mjs → chunk-L3TZV625.mjs} +1 -1
  96. package/dist/cli/{chunk-GINKIZ7S.js → chunk-MJQOG4TZ.js} +16 -16
  97. package/dist/cli/{chunk-JO5FFSR7.js → chunk-NTLBZUHD.js} +6 -0
  98. package/dist/cli/{chunk-QOJBRCAS.js → chunk-PVA3MWCO.js} +3 -3
  99. package/dist/cli/{chunk-OVZOMSH2.js → chunk-QIEYEY6Z.js} +8 -8
  100. package/dist/cli/{chunk-JFUXUSKB.mjs → chunk-R2VZVHJP.mjs} +15 -2
  101. package/dist/cli/{chunk-2S2F6YSI.js → chunk-RVOBFO7C.js} +41 -41
  102. package/dist/cli/{chunk-XMKUJ44Z.js → chunk-TCQYWZFS.js} +5 -5
  103. package/dist/cli/{chunk-FWDAEWCD.js → chunk-TMQUMILM.js} +19 -23
  104. package/dist/cli/{chunk-3KEZVGGV.mjs → chunk-URZNSJE2.mjs} +4 -4
  105. package/dist/cli/{chunk-MP5QY4A2.mjs → chunk-VC5B462T.mjs} +2 -2
  106. package/dist/cli/{chunk-IL666WJE.js → chunk-WHP3FJ7T.js} +5 -5
  107. package/dist/cli/{chunk-ZNB6GR3P.mjs → chunk-WS274KID.mjs} +1 -1
  108. package/dist/cli/{chunk-Z2H7OQ6E.mjs → chunk-XYZZZLN6.mjs} +2 -2
  109. package/dist/cli/{chunk-AJL2Q6IQ.js → chunk-YXGPMTAK.js} +2 -2
  110. package/dist/cli/{chunk-2JS3H6H6.mjs → chunk-ZEQPCEV4.mjs} +3 -3
  111. package/dist/cli/command-docs.js +2 -2
  112. package/dist/cli/command-docs.mjs +1 -1
  113. package/dist/cli/{csv-6AEPKKCO.mjs → csv-2TXOI3UE.mjs} +4 -4
  114. package/dist/cli/{csv-OXGSCV75.js → csv-NEWCNOSZ.js} +13 -13
  115. package/dist/cli/{db-6NVHDUZY.js → db-J3IJS4OG.js} +27 -27
  116. package/dist/cli/{db-K3KRK4CZ.mjs → db-PX7EQEIG.mjs} +6 -6
  117. package/dist/cli/{describe-P3ZJS7TQ.mjs → describe-GQHGTZSL.mjs} +20 -20
  118. package/dist/cli/describe-LE7EZCL4.js +49 -0
  119. package/dist/cli/describe-core.d.mts +8 -4
  120. package/dist/cli/describe-core.d.ts +8 -4
  121. package/dist/cli/describe-core.js +4 -4
  122. package/dist/cli/describe-core.mjs +3 -3
  123. package/dist/cli/{executions-I7XW6WWK.mjs → executions-FFKK24RY.mjs} +6 -6
  124. package/dist/cli/{executions-2C2FFG52.js → executions-RO3TJUXL.js} +8 -8
  125. package/dist/cli/{feedback-47B57A5Y.js → feedback-XRR4HIS6.js} +8 -8
  126. package/dist/cli/{feedback-RSTNBJAI.mjs → feedback-ZTO56SRL.mjs} +4 -4
  127. package/dist/cli/git-26AH4XIO.js +25 -0
  128. package/dist/cli/{git-3G5AFKBT.mjs → git-FIPBVFYZ.mjs} +5 -5
  129. package/dist/cli/index.js +142 -142
  130. package/dist/cli/index.mjs +42 -42
  131. package/dist/cli/{legacy-noops-NQ262TKL.mjs → legacy-noops-AMD2NWHF.mjs} +5 -5
  132. package/dist/cli/{legacy-noops-P665PBG4.js → legacy-noops-MTBBGM27.js} +8 -8
  133. package/dist/cli/{monitors-KUPZODZS.mjs → monitors-24LDKDJX.mjs} +7 -7
  134. package/dist/cli/{monitors-IPWAD7LS.js → monitors-42PIGLBF.js} +95 -95
  135. package/dist/cli/{org-ZCQGEM3L.mjs → org-4B7SCFRL.mjs} +6 -6
  136. package/dist/cli/{org-WFC3N672.js → org-GQMCA3MN.js} +72 -72
  137. package/dist/cli/{pages-VE66IU7B.mjs → pages-PD5EGL2R.mjs} +6 -6
  138. package/dist/cli/{pages-N5BNC67L.js → pages-RL2M62GJ.js} +18 -18
  139. package/dist/cli/{play-EIMDIAJB.mjs → play-5V54VTUR.mjs} +132 -26
  140. package/dist/cli/{play-NKIRJSKX.js → play-FST6ZAHW.js} +447 -341
  141. package/dist/cli/{providers-XU3AGY2F.js → providers-HBUUPN7J.js} +9 -9
  142. package/dist/cli/{providers-KDTJ63ED.mjs → providers-N5YVCKPL.mjs} +6 -6
  143. package/dist/cli/{quickstart-OSCHOSXU.js → quickstart-4QIQNSHG.js} +6 -6
  144. package/dist/cli/{quickstart-TXFXUODF.mjs → quickstart-NJDDVTQR.mjs} +4 -4
  145. package/dist/cli/{run-ET2KVTPK.js → run-FGOKCG4J.js} +44 -44
  146. package/dist/cli/{run-ODGML35U.mjs → run-JHI5MTHD.mjs} +25 -25
  147. package/dist/cli/search-CTKSEVSO.js +32 -0
  148. package/dist/cli/{search-DK67K6PR.mjs → search-EWIZBIY2.mjs} +7 -7
  149. package/dist/cli/{search-output-6SOKQTCW.mjs → search-output-NAK3MWBH.mjs} +5 -5
  150. package/dist/cli/{search-output-KXP4FA62.js → search-output-TMQTRC2W.js} +7 -7
  151. package/dist/cli/{secrets-WPS6NMNK.js → secrets-5TSUEOJB.js} +15 -15
  152. package/dist/cli/{secrets-C6SYTMU7.mjs → secrets-ONQVW5SR.mjs} +6 -6
  153. package/dist/cli/{sessions-PXVOH34X.mjs → sessions-B7F5O3ZR.mjs} +5 -5
  154. package/dist/cli/{sessions-IP562J5Z.js → sessions-BSGE5EET.js} +6 -6
  155. package/dist/cli/{settings-SUDUIVMY.js → settings-47LARBRU.js} +78 -78
  156. package/dist/cli/{settings-FBUQGYVJ.mjs → settings-SGGFQV5R.mjs} +11 -11
  157. package/dist/cli/{setup-JSIMTR73.mjs → setup-ATGNXQUK.mjs} +9 -9
  158. package/dist/cli/{setup-I5H6IOEY.js → setup-BNFZFXO6.js} +49 -49
  159. package/dist/cli/skills-6RD25MVM.js +36 -0
  160. package/dist/cli/{skills-FJQ3LX6N.mjs → skills-CIMBRM5R.mjs} +7 -7
  161. package/dist/cli/{tools-IGBK4BVE.mjs → tools-DTDXAULX.mjs} +18 -18
  162. package/dist/cli/tools-TDZH4XHS.js +56 -0
  163. package/dist/cli/{update-7MTT6F5K.mjs → update-EOIJBJCO.mjs} +9 -9
  164. package/dist/cli/update-Y32VT4VL.js +34 -0
  165. package/dist/cli/{workflow-PM2J2OU3.mjs → workflow-IWXUJPWY.mjs} +7 -7
  166. package/dist/cli/{workflow-UX3ZX6BQ.js → workflow-V5VKPICQ.js} +17 -17
  167. package/dist/{client-Bn8FwKGO.d.ts → client-CIwenMFS.d.ts} +1 -1
  168. package/dist/{client-CfNRmjLK.d.mts → client-DYAfJpaN.d.mts} +1 -1
  169. package/dist/{client-core-B91EV0WS.d.ts → client-core-CRjtyMAI.d.ts} +25 -2
  170. package/dist/{client-core-BG8Cgrmk.d.mts → client-core-DlzP8vEs.d.mts} +25 -2
  171. package/dist/{compiler-manifest-DlXDyndN.d.mts → compiler-manifest-DaJrA2KV.d.mts} +1 -1
  172. package/dist/{compiler-manifest-DlXDyndN.d.ts → compiler-manifest-DaJrA2KV.d.ts} +1 -1
  173. package/dist/{errors-BtriA2ld.d.mts → errors-BKnSYueU.d.mts} +1 -1
  174. package/dist/{errors-DmcLykM7.d.ts → errors-KLga4bLr.d.ts} +1 -1
  175. package/dist/{index-DI0sR_fX.d.mts → index-C-8AFpWy.d.mts} +1 -1
  176. package/dist/{index--Jw-slHY.d.ts → index-C5nAZ-VS.d.ts} +1 -1
  177. package/dist/index.d.mts +7 -7
  178. package/dist/index.d.ts +7 -7
  179. package/dist/index.js +9 -9
  180. package/dist/index.mjs +6 -6
  181. package/dist/install-integrity.json +123 -116
  182. package/dist/plays/bundle-play-file.d.mts +3 -3
  183. package/dist/plays/bundle-play-file.d.ts +3 -3
  184. package/dist/plays/bundle-play-file.mjs +8 -1
  185. package/dist/plays/play-description.d.mts +2 -2
  186. package/dist/plays/play-description.d.ts +2 -2
  187. package/dist/plays/run-request.d.mts +2 -2
  188. package/dist/plays/run-request.d.ts +2 -2
  189. package/dist/release.d.mts +1 -1
  190. package/dist/release.d.ts +1 -1
  191. package/dist/release.js +2 -2
  192. package/dist/release.mjs +1 -1
  193. package/dist/server.d.mts +4 -4
  194. package/dist/server.d.ts +4 -4
  195. package/dist/server.js +5 -5
  196. package/dist/server.mjs +3 -3
  197. package/package.json +1 -1
  198. package/dist/cli/auth-VM3IKP5F.js +0 -43
  199. package/dist/cli/describe-JOUAXXPE.js +0 -49
  200. package/dist/cli/git-OPKIC6JQ.js +0 -25
  201. package/dist/cli/search-6U54Y3OK.js +0 -32
  202. package/dist/cli/skills-VHININXC.js +0 -36
  203. package/dist/cli/tools-XMBMHVKF.js +0 -56
  204. package/dist/cli/update-H7JVW43I.js +0 -34
@@ -673,7 +673,9 @@ function describedLines(described, view) {
673
673
  ...described.cost ? [`Cost: ${described.cost}`] : [],
674
674
  ...described.guidance.map((line) => `Guidance: ${line}`),
675
675
  ...described.rateLimit ? [`Rate limit: ${described.rateLimit}`] : [],
676
+ ...described.credentialStatus === "requires_connection" ? ["Connection: Provider credentials are missing in this workspace."] : [],
676
677
  ...described.byok ? byokLines(described.byok) : [],
678
+ ...described.connectCommand ? [`Get a shareable link: ${described.connectCommand}`] : [],
677
679
  ...featureLines(described.id, described.features ?? []),
678
680
  ...schemaLines(described, {
679
681
  full: view.fullSchema,
@@ -775,11 +777,15 @@ function describedJson(described, view) {
775
777
  return {
776
778
  kind: described.kind,
777
779
  id: described.id,
780
+ ...described.provider ? { provider: described.provider } : {},
778
781
  ...described.displayName ? { displayName: described.displayName } : {},
779
782
  ...described.description ? { description: described.description } : {},
780
783
  ...described.cost ? { cost: described.cost } : {},
781
784
  ...described.rateLimit ? { rateLimit: described.rateLimit } : {},
782
785
  ...described.byok ? { byok: described.byok } : {},
786
+ ...described.connected !== void 0 ? { connected: described.connected } : {},
787
+ ...described.credentialStatus ? { credentialStatus: described.credentialStatus } : {},
788
+ ...described.connectCommand ? { connectCommand: described.connectCommand } : {},
783
789
  ...described.features?.length ? { features: described.features } : {},
784
790
  ...described.guidance.length ? { guidance: described.guidance } : {},
785
791
  ...blocks,
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  resolveShellSpawn
3
- } from "./chunk-NZXB27TP.mjs";
3
+ } from "./chunk-BI2Q45SY.mjs";
4
4
 
5
5
  // src/cli/npm-script-policy.ts
6
6
  import { spawnSync } from "child_process";
@@ -11,20 +11,20 @@ import {
11
11
  skillsInstallLeasePath,
12
12
  skillsSourceUrl,
13
13
  syncSdkSkillsIfNeeded
14
- } from "./chunk-NZXB27TP.mjs";
14
+ } from "./chunk-BI2Q45SY.mjs";
15
15
  import {
16
16
  printCommandEnvelope
17
- } from "./chunk-2MVIS2UI.mjs";
17
+ } from "./chunk-KGLVATEB.mjs";
18
18
  import {
19
19
  autoDetectBaseUrl,
20
20
  ensureProjectPrivatePathsIgnored,
21
21
  resolveProjectPinTarget,
22
22
  sdkCliStateDirPath
23
- } from "./chunk-W5CHE5Q2.mjs";
23
+ } from "./chunk-L3TZV625.mjs";
24
24
  import {
25
25
  SDK_VERSION,
26
26
  detectAgentRuntime
27
- } from "./chunk-3MJSWVQ2.mjs";
27
+ } from "./chunk-KPBBT6OS.mjs";
28
28
  import {
29
29
  DEEPLINE_GTM_GLOBAL_SKILL_ROOTS
30
30
  } from "./chunk-5JPKRDFC.mjs";
@@ -1,31 +1,31 @@
1
1
  import {
2
2
  seedToolListScript
3
- } from "./chunk-4CCMD7QM.mjs";
3
+ } from "./chunk-6XTE6C3W.mjs";
4
4
  import {
5
5
  addDescribeOptions
6
- } from "./chunk-L5CTJY74.mjs";
6
+ } from "./chunk-FHJ54BHH.mjs";
7
7
  import {
8
8
  describeLookupsFor,
9
9
  describeName,
10
10
  findNamed
11
- } from "./chunk-DRBD4IYQ.mjs";
11
+ } from "./chunk-7MJYZ33I.mjs";
12
12
  import {
13
13
  SCHEMA_LINE_LIMIT
14
- } from "./chunk-SAW3FBCA.mjs";
14
+ } from "./chunk-ITJ7NB2D.mjs";
15
15
  import {
16
16
  DeeplineClient
17
- } from "./chunk-YWOQYYYS.mjs";
17
+ } from "./chunk-D27HP3HS.mjs";
18
18
  import {
19
19
  failureReportHeaders,
20
20
  isFailureReportingDisabled
21
- } from "./chunk-NZXB27TP.mjs";
21
+ } from "./chunk-BI2Q45SY.mjs";
22
22
  import {
23
23
  printCommandEnvelope
24
- } from "./chunk-2MVIS2UI.mjs";
24
+ } from "./chunk-KGLVATEB.mjs";
25
25
  import {
26
26
  autoDetectBaseUrl,
27
27
  resolveApiKeyForBaseUrl
28
- } from "./chunk-W5CHE5Q2.mjs";
28
+ } from "./chunk-L3TZV625.mjs";
29
29
 
30
30
  // src/cli/commands/describe.ts
31
31
  import { writeFileSync } from "fs";
@@ -120,6 +120,8 @@ When a name is taken twice:
120
120
  What it prints:
121
121
  The same sections for every kind: what it is, cost, inputs, outputs, then
122
122
  an example of running it from the CLI and from inside a play.
123
+ Tools missing provider credentials show the connection step, including the
124
+ dashboard link and command when available.
123
125
 
124
126
  Examples in the output:
125
127
  (default) required inputs filled in, first output read
@@ -1,11 +1,11 @@
1
1
  import {
2
2
  traceCliSpan
3
- } from "./chunk-ZNB6GR3P.mjs";
3
+ } from "./chunk-WS274KID.mjs";
4
4
  import {
5
5
  checkSdkCompatibility,
6
6
  enforceSdkCompatibilityResponse,
7
7
  flushDeferredSkillsSyncNotices
8
- } from "./chunk-NZXB27TP.mjs";
8
+ } from "./chunk-BI2Q45SY.mjs";
9
9
 
10
10
  // src/cli/play-run-admission.ts
11
11
  function usesInlinePlayAdmission(command, args) {
@@ -2,10 +2,10 @@ import {
2
2
  HttpClient,
3
3
  resolveCliCommandContext,
4
4
  resolveConfig
5
- } from "./chunk-W5CHE5Q2.mjs";
5
+ } from "./chunk-L3TZV625.mjs";
6
6
  import {
7
7
  detectAgentRuntime
8
- } from "./chunk-3MJSWVQ2.mjs";
8
+ } from "./chunk-KPBBT6OS.mjs";
9
9
  import {
10
10
  DeeplineError,
11
11
  serializeToolExecutionFailure
@@ -16,7 +16,7 @@ import {
16
16
  } from "./chunk-HBL4PM5Q.mjs";
17
17
  import {
18
18
  SDK_RELEASE
19
- } from "./chunk-OFBLT2LQ.mjs";
19
+ } from "./chunk-7HEDCIR3.mjs";
20
20
 
21
21
  // src/version.ts
22
22
  var SDK_VERSION = SDK_RELEASE.version;
@@ -130,6 +130,7 @@ import { createHash } from "crypto";
130
130
  var PLAY_RUNTIME_TEST_FAULT_HEADER = "x-deepline-test-fault";
131
131
  var MAX_RUNTIME_TEST_POLICY_MS = 10 * 6e4;
132
132
  var MAX_RUNNER_HEARTBEAT_SILENCE_MS = 10 * 6e4;
133
+ var FENCE_COMMIT_ABANDON_MAX_MS = 10 * 6e4;
133
134
 
134
135
  // ../integration-contracts/execute-retry-contract.ts
135
136
  var EXECUTE_RETRY_POLICY_HEADER = "x-deepline-execute-retry-policy";
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  HttpClient,
3
3
  detectAgentRuntime
4
- } from "./chunk-3MJSWVQ2.mjs";
4
+ } from "./chunk-KPBBT6OS.mjs";
5
5
  import {
6
6
  ConfigError
7
7
  } from "./chunk-4QF2K7TM.mjs";
@@ -1,19 +1,19 @@
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
3
 
4
- var _chunkDYHTXGLXjs = require('./chunk-DYHTXGLX.js');
4
+ var _chunkHRTDCXHIjs = require('./chunk-HRTDCXHI.js');
5
5
 
6
6
 
7
- var _chunk2S2F6YSIjs = require('./chunk-2S2F6YSI.js');
7
+ var _chunkRVOBFO7Cjs = require('./chunk-RVOBFO7C.js');
8
8
 
9
9
 
10
- var _chunkQNELA7SXjs = require('./chunk-QNELA7SX.js');
10
+ var _chunkB3X4YWQ6js = require('./chunk-B3X4YWQ6.js');
11
11
 
12
12
 
13
- var _chunkYDXEXVBVjs = require('./chunk-YDXEXVBV.js');
13
+ var _chunkF73PD2XDjs = require('./chunk-F73PD2XD.js');
14
14
 
15
15
 
16
- var _chunkJLYDLK6Xjs = require('./chunk-JLYDLK6X.js');
16
+ var _chunkHS63YBT5js = require('./chunk-HS63YBT5.js');
17
17
 
18
18
  // src/cli/commands/update.ts
19
19
  var _child_process = require('child_process');
@@ -495,7 +495,7 @@ function normalizedNpmPrefix(value) {
495
495
  }
496
496
  function resolveNpmGlobalPrefix(env) {
497
497
  try {
498
- const plan = _chunkQNELA7SXjs.resolveShellSpawn.call(void 0,
498
+ const plan = _chunkB3X4YWQ6js.resolveShellSpawn.call(void 0,
499
499
  "npm",
500
500
  ["prefix", "-g"],
501
501
  process.platform,
@@ -556,8 +556,8 @@ function resolveUpdatePlan(options = {}) {
556
556
  const npmGlobalPrefix = options.npmGlobalPrefix !== void 0 ? options.npmGlobalPrefix : resolveNpmGlobalPrefix(env);
557
557
  const hasVerifiedNpmOwnership = inferredInstallPrefix !== null && normalizedNpmPrefix(inferredInstallPrefix) === normalizedNpmPrefix(npmGlobalPrefix);
558
558
  const installPrefix = options.requireVerifiedNpmOwnership ? hasVerifiedNpmOwnership ? inferredInstallPrefix : null : inferredInstallPrefix;
559
- const npmVersion = options.npmVersion === void 0 ? _chunkDYHTXGLXjs.readNpmVersion.call(void 0, env) : options.npmVersion;
560
- const npmGlobalInstallFlags = _chunkDYHTXGLXjs.npmSupportsAllowScripts.call(void 0, npmVersion) ? [...NPM_SDK_INSTALL_COMMON_FLAGS, "--allow-scripts=esbuild"] : NPM_SDK_INSTALL_COMMON_FLAGS;
559
+ const npmVersion = options.npmVersion === void 0 ? _chunkHRTDCXHIjs.readNpmVersion.call(void 0, env) : options.npmVersion;
560
+ const npmGlobalInstallFlags = _chunkHRTDCXHIjs.npmSupportsAllowScripts.call(void 0, npmVersion) ? [...NPM_SDK_INSTALL_COMMON_FLAGS, "--allow-scripts=esbuild"] : NPM_SDK_INSTALL_COMMON_FLAGS;
561
561
  const args = installPrefix ? [
562
562
  "install",
563
563
  "-g",
@@ -567,7 +567,7 @@ function resolveUpdatePlan(options = {}) {
567
567
  packageSpec
568
568
  ] : ["install", "-g", ...npmGlobalInstallFlags, packageSpec];
569
569
  const fallbackRegistryUrl = options.npmFallbackRegistryUrl !== void 0 ? options.npmFallbackRegistryUrl : publicNpmFallbackRegistryUrl(
570
- _optionalChain([env, 'access', _22 => _22.DEEPLINE_HOST_URL, 'optionalAccess', _23 => _23.trim, 'call', _24 => _24()]) || _chunkJLYDLK6Xjs.autoDetectBaseUrl.call(void 0, )
570
+ _optionalChain([env, 'access', _22 => _22.DEEPLINE_HOST_URL, 'optionalAccess', _23 => _23.trim, 'call', _24 => _24()]) || _chunkHS63YBT5js.autoDetectBaseUrl.call(void 0, )
571
571
  );
572
572
  return {
573
573
  kind: "npm-global",
@@ -816,7 +816,7 @@ function sidecarInstallFailure(versionDir) {
816
816
  function runCommand(command, args, env = process.env) {
817
817
  return new Promise((resolveResult) => {
818
818
  let output = "";
819
- const plan = _chunkQNELA7SXjs.resolveShellSpawn.call(void 0, command, args, process.platform, env);
819
+ const plan = _chunkB3X4YWQ6js.resolveShellSpawn.call(void 0, command, args, process.platform, env);
820
820
  const child = _child_process.spawn.call(void 0, plan.command, plan.args, {
821
821
  stdio: ["inherit", "pipe", "pipe"],
822
822
  shell: plan.shell,
@@ -1199,14 +1199,14 @@ async function publishedVersionSupportsPin(version, fallbackRegistryUrl) {
1199
1199
  throw _nullishCoalesce(lastError, () => ( new Error("No npm registry was available")));
1200
1200
  }
1201
1201
  async function runUpdateCommand(options, dependencies = {}) {
1202
- const detectBaseUrl = _nullishCoalesce(dependencies.detectBaseUrl, () => ( _chunkJLYDLK6Xjs.autoDetectBaseUrl));
1202
+ const detectBaseUrl = _nullishCoalesce(dependencies.detectBaseUrl, () => ( _chunkHS63YBT5js.autoDetectBaseUrl));
1203
1203
  const resolvePlan = _nullishCoalesce(dependencies.resolvePlan, () => ( resolveUpdatePlan));
1204
1204
  const runPlan = _nullishCoalesce(dependencies.runPlan, () => ( runUpdatePlan));
1205
1205
  const syncSkills = _nullishCoalesce(dependencies.syncSkillsIfNeeded, () => ( (async () => {
1206
1206
  const originalWrite = process.stdout.write.bind(process.stdout);
1207
1207
  process.stdout.write = (() => true);
1208
1208
  try {
1209
- const exitCode = await _chunk2S2F6YSIjs.runSkillsCommand.call(void 0, { json: true });
1209
+ const exitCode = await _chunkRVOBFO7Cjs.runSkillsCommand.call(void 0, { json: true });
1210
1210
  if (exitCode !== 0) {
1211
1211
  throw new Error(
1212
1212
  `Deepline skills update failed with exit ${exitCode}.`
@@ -1277,11 +1277,11 @@ async function runUpdateCommand(options, dependencies = {}) {
1277
1277
  ]
1278
1278
  };
1279
1279
  if (options.json && !options.executeWithJson) {
1280
- _chunkYDXEXVBVjs.printCommandEnvelope.call(void 0, { ...plan, render }, { json: true });
1280
+ _chunkF73PD2XDjs.printCommandEnvelope.call(void 0, { ...plan, render }, { json: true });
1281
1281
  return 0;
1282
1282
  }
1283
1283
  if (options.printCommand) {
1284
- _chunkYDXEXVBVjs.printCommandEnvelope.call(void 0,
1284
+ _chunkF73PD2XDjs.printCommandEnvelope.call(void 0,
1285
1285
  {
1286
1286
  ...plan,
1287
1287
  render: {
@@ -1294,7 +1294,7 @@ async function runUpdateCommand(options, dependencies = {}) {
1294
1294
  return 0;
1295
1295
  }
1296
1296
  if (plan.kind === "source" || plan.kind === "homebrew") {
1297
- _chunkYDXEXVBVjs.printCommandEnvelope.call(void 0, { ...plan, render }, { json: false });
1297
+ _chunkF73PD2XDjs.printCommandEnvelope.call(void 0, { ...plan, render }, { json: false });
1298
1298
  return 0;
1299
1299
  }
1300
1300
  stderr.write(`Updating Deepline SDK/CLI with: ${plan.manualCommand}
@@ -1324,7 +1324,7 @@ To retry with full installer output, run: deepline skills install
1324
1324
  );
1325
1325
  }
1326
1326
  if (options.executeWithJson && options.json) {
1327
- _chunkYDXEXVBVjs.printCommandEnvelope.call(void 0,
1327
+ _chunkF73PD2XDjs.printCommandEnvelope.call(void 0,
1328
1328
  {
1329
1329
  ok: true,
1330
1330
  pinnedVersion
@@ -673,7 +673,9 @@ function describedLines(described, view) {
673
673
  ...described.cost ? [`Cost: ${described.cost}`] : [],
674
674
  ...described.guidance.map((line) => `Guidance: ${line}`),
675
675
  ...described.rateLimit ? [`Rate limit: ${described.rateLimit}`] : [],
676
+ ...described.credentialStatus === "requires_connection" ? ["Connection: Provider credentials are missing in this workspace."] : [],
676
677
  ...described.byok ? byokLines(described.byok) : [],
678
+ ...described.connectCommand ? [`Get a shareable link: ${described.connectCommand}`] : [],
677
679
  ...featureLines(described.id, _nullishCoalesce(described.features, () => ( []))),
678
680
  ...schemaLines(described, {
679
681
  full: view.fullSchema,
@@ -775,11 +777,15 @@ function describedJson(described, view) {
775
777
  return {
776
778
  kind: described.kind,
777
779
  id: described.id,
780
+ ...described.provider ? { provider: described.provider } : {},
778
781
  ...described.displayName ? { displayName: described.displayName } : {},
779
782
  ...described.description ? { description: described.description } : {},
780
783
  ...described.cost ? { cost: described.cost } : {},
781
784
  ...described.rateLimit ? { rateLimit: described.rateLimit } : {},
782
785
  ...described.byok ? { byok: described.byok } : {},
786
+ ...described.connected !== void 0 ? { connected: described.connected } : {},
787
+ ...described.credentialStatus ? { credentialStatus: described.credentialStatus } : {},
788
+ ...described.connectCommand ? { connectCommand: described.connectCommand } : {},
783
789
  ..._optionalChain([described, 'access', _14 => _14.features, 'optionalAccess', _15 => _15.length]) ? { features: described.features } : {},
784
790
  ...described.guidance.length ? { guidance: described.guidance } : {},
785
791
  ...blocks,
@@ -1,6 +1,6 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; } var _class;
2
2
 
3
- var _chunkYDXEXVBVjs = require('./chunk-YDXEXVBV.js');
3
+ var _chunkF73PD2XDjs = require('./chunk-F73PD2XD.js');
4
4
 
5
5
  // src/cli/progress.ts
6
6
  var _worker_threads = require('worker_threads');
@@ -19,7 +19,7 @@ var CliProgress = (_class = class {
19
19
  __init9() {this.quiet = false}
20
20
  // --json output is one JSON document: progress never renders under it.
21
21
  constructor(enabled) {;_class.prototype.__init.call(this);_class.prototype.__init2.call(this);_class.prototype.__init3.call(this);_class.prototype.__init4.call(this);_class.prototype.__init5.call(this);_class.prototype.__init6.call(this);_class.prototype.__init7.call(this);_class.prototype.__init8.call(this);_class.prototype.__init9.call(this);
22
- this.enabled = enabled && !_chunkYDXEXVBVjs.isJsonOutputMode.call(void 0, );
22
+ this.enabled = enabled && !_chunkF73PD2XDjs.isJsonOutputMode.call(void 0, );
23
23
  }
24
24
  setLogWriter(writer) {
25
25
  this.logWriter = writer;
@@ -59,7 +59,7 @@ var CliProgress = (_class = class {
59
59
  this.logWriter(line);
60
60
  return;
61
61
  }
62
- if (_chunkYDXEXVBVjs.isJsonOutputMode.call(void 0, )) return;
62
+ if (_chunkF73PD2XDjs.isJsonOutputMode.call(void 0, )) return;
63
63
  if (!this.enabled) {
64
64
  process.stderr.write(`${line}
65
65
  `);
@@ -1,10 +1,10 @@
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
3
 
4
- var _chunkYDXEXVBVjs = require('./chunk-YDXEXVBV.js');
4
+ var _chunkF73PD2XDjs = require('./chunk-F73PD2XD.js');
5
5
 
6
6
 
7
- var _chunkEUWRKWT4js = require('./chunk-EUWRKWT4.js');
7
+ var _chunkFIUTDSJXjs = require('./chunk-FIUTDSJX.js');
8
8
 
9
9
  // src/cli/commands/sessions.ts
10
10
 
@@ -139,7 +139,7 @@ function currentSessionFile(agent) {
139
139
  const newestFirst = listSessionFiles(agent).sort(
140
140
  (a, b) => b.mtimeMs - a.mtimeMs
141
141
  );
142
- const sessionId = _chunkEUWRKWT4js.agentSessionIdFromEnvironment.call(void 0,
142
+ const sessionId = _chunkFIUTDSJXjs.agentSessionIdFromEnvironment.call(void 0,
143
143
  process.env,
144
144
  agent === "auto" ? void 0 : agent === "claude" ? "claude_code" : "codex"
145
145
  );
@@ -451,7 +451,7 @@ function buildSessionUploadContent(raw) {
451
451
  return { encodedContent: encoded, needsChunking: true };
452
452
  }
453
453
  async function uploadPayload(path, payload) {
454
- const { http } = _chunkYDXEXVBVjs.getAuthedHttpClient.call(void 0, );
454
+ const { http } = _chunkF73PD2XDjs.getAuthedHttpClient.call(void 0, );
455
455
  return await http.post(path, payload);
456
456
  }
457
457
  async function uploadChunkedSessions(sessions, options) {
@@ -484,7 +484,7 @@ async function uploadChunkedSessions(sessions, options) {
484
484
  ...options.rating ? { rating: options.rating } : {}
485
485
  });
486
486
  const sessionIds = sessions.map((session) => session.sessionId);
487
- _chunkYDXEXVBVjs.printCommandEnvelope.call(void 0,
487
+ _chunkF73PD2XDjs.printCommandEnvelope.call(void 0,
488
488
  {
489
489
  ...response,
490
490
  ok: true,
@@ -516,7 +516,7 @@ async function handleSessionsSend(options) {
516
516
  filename: _path.basename.call(void 0, filePath),
517
517
  ...rating ? { rating } : {}
518
518
  });
519
- _chunkYDXEXVBVjs.printCommandEnvelope.call(void 0,
519
+ _chunkF73PD2XDjs.printCommandEnvelope.call(void 0,
520
520
  {
521
521
  ...response2,
522
522
  ok: true,
@@ -566,7 +566,7 @@ async function handleSessionsSend(options) {
566
566
  ...rating ? { rating } : {}
567
567
  });
568
568
  const sessionIds = built.map((session) => session.sessionId);
569
- _chunkYDXEXVBVjs.printCommandEnvelope.call(void 0,
569
+ _chunkF73PD2XDjs.printCommandEnvelope.call(void 0,
570
570
  {
571
571
  ...response,
572
572
  ok: true,
@@ -674,7 +674,7 @@ ${refreshMeta}
674
674
  </body>
675
675
  </html>`;
676
676
  _fs.writeFileSync.call(void 0, outputPath, html, "utf8");
677
- _chunkYDXEXVBVjs.printCommandEnvelope.call(void 0,
677
+ _chunkF73PD2XDjs.printCommandEnvelope.call(void 0,
678
678
  {
679
679
  ok: true,
680
680
  file: outputPath,
@@ -2,7 +2,7 @@ import {
2
2
  rateLimitSummary,
3
3
  schemaField,
4
4
  schemaFields
5
- } from "./chunk-SAW3FBCA.mjs";
5
+ } from "./chunk-ITJ7NB2D.mjs";
6
6
  import {
7
7
  playToolListGetterMode
8
8
  } from "./chunk-FR2ILQ4G.mjs";
@@ -395,9 +395,18 @@ function describedTool(tool, requestedToolId) {
395
395
  };
396
396
  });
397
397
  const playReference = isPlayLikeTool(tool) ? playReferenceForTool(tool) : null;
398
+ const { byok } = tool;
399
+ const credentialStatus = stringField(
400
+ tool,
401
+ "credentialStatus",
402
+ "credential_status"
403
+ );
404
+ const provider = stringField(tool, "provider");
405
+ const connectCommand = credentialStatus === "requires_connection" && (!byok || byok.setupUrl) && /^[a-z0-9][a-z0-9_-]*$/.test(provider) ? `deepline tools connect ${provider} --link --json` : void 0;
398
406
  return {
399
407
  kind: "tool",
400
408
  id: String(contract.toolId),
409
+ ...provider ? { provider } : {},
401
410
  displayName,
402
411
  description,
403
412
  cost: [
@@ -418,6 +427,10 @@ function describedTool(tool, requestedToolId) {
418
427
  recordField(contract, "executionMetadata").configuredRateLimits
419
428
  )
420
429
  ),
430
+ ...byok?.required === true ? { byok } : {},
431
+ ...typeof tool.connected === "boolean" ? { connected: tool.connected } : {},
432
+ ...credentialStatus ? { credentialStatus } : {},
433
+ ...connectCommand ? { connectCommand } : {},
421
434
  inputs: schemaFields(inputSchema),
422
435
  outputs: [...lists, ...values].map(({ field }) => field),
423
436
  rawResponse: schemaFields(outputSchema),
@@ -495,7 +508,7 @@ function toolMetadataJsonForDescribe(tool, requestedToolId, seedStarterScript) {
495
508
  deepline_usd_per_credit: _snakeDeeplineUsdPerCredit,
496
509
  deepline_pricing_summary: _snakeDeeplinePricingSummary,
497
510
  deepline_pricing_details: _snakeDeeplinePricingDetails,
498
- // BYOK is shown only on request, via describe --feature byok.
511
+ // The shared description adds BYOK when the tool needs its own credentials.
499
512
  byok: _byok,
500
513
  ...publicTool
501
514
  } = tool;