deepline 0.3.572 → 0.3.574

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 (170) hide show
  1. package/dist/bundling-sources/sdk/src/config.ts +19 -0
  2. package/dist/bundling-sources/sdk/src/play.ts +7 -4
  3. package/dist/bundling-sources/sdk/src/release.ts +1 -1
  4. package/dist/bundling-sources/sdk/src/types.ts +8 -0
  5. package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/backends/daytona-launch-transport.ts +43 -7
  6. package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/backends/daytona-payload-transport.ts +56 -20
  7. package/dist/bundling-sources/shared_libs/play-runtime/runtime-speed-profile.ts +4 -3
  8. package/dist/cli/agents-6WN5LYUP.mjs +833 -0
  9. package/dist/cli/agents-7ZZSF4FS.js +833 -0
  10. package/dist/cli/{auth-YUDM3YOC.mjs → auth-I2QVO677.mjs} +5 -5
  11. package/dist/cli/auth-UKPV5U2B.js +44 -0
  12. package/dist/cli/{billing-F3ZGOWKL.js → billing-44QFBUWA.js} +106 -106
  13. package/dist/cli/{billing-O7WUC4TU.mjs → billing-YPH4GEWU.mjs} +10 -10
  14. package/dist/cli/{chunk-ITQPBWDS.js → chunk-2QYU57RG.js} +15 -7
  15. package/dist/cli/{chunk-LBNP52C4.js → chunk-2RPRSTHD.js} +5 -5
  16. package/dist/cli/{chunk-I4WKB3HO.mjs → chunk-2TMAKJBT.mjs} +2 -2
  17. package/dist/cli/{chunk-PQ6PM4V6.mjs → chunk-4T2U72SP.mjs} +1 -1
  18. package/dist/cli/{chunk-HYCJNHZ4.js → chunk-5E2PAGF5.js} +27 -20
  19. package/dist/cli/{chunk-W3HLZ24Q.js → chunk-6B5EZOI3.js} +10 -10
  20. package/dist/cli/{chunk-YOST7EJF.js → chunk-6GZIT3TH.js} +20 -20
  21. package/dist/cli/{chunk-72WI67H4.mjs → chunk-7334X74C.mjs} +2 -2
  22. package/dist/cli/{chunk-PI4TKE2B.js → chunk-7GQU46SZ.js} +26 -26
  23. package/dist/cli/{chunk-NOKSEYMS.js → chunk-7UR57HPJ.js} +1 -1
  24. package/dist/cli/{chunk-6ASDTHEN.js → chunk-AFPGYZBH.js} +21 -17
  25. package/dist/cli/{chunk-V2W7GX2I.mjs → chunk-B2XLIQPH.mjs} +3 -3
  26. package/dist/cli/{chunk-XNJXRS3B.js → chunk-BUBOZKH2.js} +2 -2
  27. package/dist/cli/{chunk-K4LAEKHS.js → chunk-D6ZVRKJ2.js} +41 -41
  28. package/dist/cli/{chunk-5VUD7HGD.js → chunk-DG56RWI2.js} +2 -2
  29. package/dist/cli/{chunk-UKD5ZBQD.js → chunk-DOZIWA66.js} +7 -7
  30. package/dist/cli/{chunk-EKWDSE6H.mjs → chunk-DX646HO7.mjs} +4 -4
  31. package/dist/cli/{chunk-43GCEVHO.js → chunk-ECLCRE5P.js} +3 -3
  32. package/dist/cli/{chunk-UUYB6IXC.js → chunk-G2HW2SAP.js} +13 -13
  33. package/dist/cli/{chunk-BWWDU6FN.mjs → chunk-G7OR3GVD.mjs} +5 -5
  34. package/dist/cli/{chunk-UQWYDNGB.mjs → chunk-GMQZFWQU.mjs} +17 -10
  35. package/dist/cli/{chunk-VGPHXXPI.js → chunk-H7PVSG3L.js} +15 -15
  36. package/dist/cli/{chunk-EL4LME5Y.js → chunk-I62ZBEKH.js} +48 -48
  37. package/dist/cli/{chunk-QA733N7N.mjs → chunk-IA2LTIWO.mjs} +2 -2
  38. package/dist/cli/{chunk-FGBX2WVJ.js → chunk-IB225ZK4.js} +4 -4
  39. package/dist/cli/{chunk-VZ4S5JRC.js → chunk-ID3LGPOE.js} +23 -23
  40. package/dist/cli/{chunk-LHPYCJNL.js → chunk-IXYVHTRZ.js} +19 -6
  41. package/dist/cli/{chunk-64MOX3SN.mjs → chunk-JCO226JM.mjs} +111 -2
  42. package/dist/cli/{chunk-SJI56XPM.mjs → chunk-JY7RKJ65.mjs} +21 -16
  43. package/dist/cli/{chunk-N6KF6X3D.js → chunk-KSHZY52O.js} +114 -5
  44. package/dist/cli/{chunk-BM4GE67C.mjs → chunk-L2NXB4WG.mjs} +19 -6
  45. package/dist/cli/{chunk-UFUXGMHL.mjs → chunk-LCAXLGAY.mjs} +2 -2
  46. package/dist/cli/{chunk-AHNJGA6Z.js → chunk-LJLM4BUL.js} +6 -6
  47. package/dist/cli/{chunk-EKIWY5DD.mjs → chunk-LLSCFLFU.mjs} +1 -1
  48. package/dist/cli/{chunk-OUVQKSVC.mjs → chunk-MAMGREBW.mjs} +1 -1
  49. package/dist/cli/{chunk-CYW6PE3G.mjs → chunk-MGF3MK27.mjs} +5 -5
  50. package/dist/cli/{chunk-PZGK6EEB.js → chunk-N6I3BB2O.js} +280 -275
  51. package/dist/cli/{chunk-4W5EFHHY.js → chunk-NDDGFX4X.js} +11 -11
  52. package/dist/cli/{chunk-RIA73OAZ.mjs → chunk-NRVEVKXR.mjs} +2 -2
  53. package/dist/cli/{chunk-UY6Z3XWW.mjs → chunk-OH6WOID2.mjs} +2 -2
  54. package/dist/cli/{chunk-GX4VZL4Z.mjs → chunk-OIZUFRTE.mjs} +3 -3
  55. package/dist/cli/{chunk-3SFLY3T3.js → chunk-PP5RMEQQ.js} +5 -5
  56. package/dist/cli/{chunk-UMP76GYQ.mjs → chunk-PW6NKI2A.mjs} +3 -3
  57. package/dist/cli/{chunk-ENHQBPR5.mjs → chunk-Q3A53SWK.mjs} +4 -3
  58. package/dist/cli/{chunk-X6F4XOT2.mjs → chunk-QPSBV4FD.mjs} +2 -2
  59. package/dist/cli/{chunk-6R57HEPF.mjs → chunk-S22FSNNC.mjs} +1 -1
  60. package/dist/cli/{chunk-XVQE6IBS.js → chunk-SLXCVPN7.js} +2 -2
  61. package/dist/cli/{chunk-AJO3I3LL.mjs → chunk-SRUNYWQ2.mjs} +9 -1
  62. package/dist/cli/{chunk-5EMYPLTW.js → chunk-UXIUAIL2.js} +53 -53
  63. package/dist/cli/{chunk-MVQ5XGRO.mjs → chunk-VGIDPJXM.mjs} +3 -3
  64. package/dist/cli/{chunk-PRDCU7BY.js → chunk-VLUBEMWM.js} +20 -20
  65. package/dist/cli/{chunk-W3RHISD6.js → chunk-VYSUJMB5.js} +8 -8
  66. package/dist/cli/{chunk-W742U53L.mjs → chunk-W6UCS3O6.mjs} +5 -5
  67. package/dist/cli/{chunk-Q6H5RRTG.mjs → chunk-X7RKCAMX.mjs} +4 -4
  68. package/dist/cli/{chunk-TBLP7HDL.js → chunk-XMBTAPHR.js} +10 -9
  69. package/dist/cli/{chunk-EDAG7ZU4.mjs → chunk-XVBEEGI4.mjs} +1 -1
  70. package/dist/cli/{chunk-JJEN7TRR.mjs → chunk-YR4REP4D.mjs} +1 -1
  71. package/dist/cli/{chunk-QMIMGKR2.js → chunk-Z3XFXFRT.js} +9 -9
  72. package/dist/cli/{chunk-JEI7PHET.mjs → chunk-ZFXDD7VM.mjs} +1 -1
  73. package/dist/cli/{chunk-HUJMFETO.mjs → chunk-ZTCP5BHH.mjs} +7 -3
  74. package/dist/cli/command-docs.js +3 -3
  75. package/dist/cli/command-docs.mjs +2 -2
  76. package/dist/cli/concurrent-runs-help-BFVCUJF4.js +22 -0
  77. package/dist/cli/{concurrent-runs-help-5BKCGFGL.mjs → concurrent-runs-help-ROQM6UB3.mjs} +7 -7
  78. package/dist/cli/{csv-7ZAWND7L.js → csv-FWGSY4GE.js} +13 -13
  79. package/dist/cli/{csv-MO5WZZDN.mjs → csv-R7GV33BC.mjs} +4 -4
  80. package/dist/cli/{db-36LX7JBQ.js → db-OCH35YJG.js} +27 -27
  81. package/dist/cli/{db-OYMULINA.mjs → db-UWXA4RRV.mjs} +6 -6
  82. package/dist/cli/describe-6OI5K2SH.js +50 -0
  83. package/dist/cli/{describe-JLAERB6X.mjs → describe-QI4HMUGE.mjs} +21 -21
  84. package/dist/cli/describe-core.d.mts +4 -2
  85. package/dist/cli/describe-core.d.ts +4 -2
  86. package/dist/cli/describe-core.js +4 -4
  87. package/dist/cli/describe-core.mjs +3 -3
  88. package/dist/cli/{executions-AQ32J4BZ.js → executions-7CFGC24E.js} +8 -8
  89. package/dist/cli/{executions-IZAB2XNC.mjs → executions-YF3KMZZN.mjs} +6 -6
  90. package/dist/cli/{feedback-WA6EBE5H.mjs → feedback-DWIWBS7O.mjs} +6 -6
  91. package/dist/cli/{feedback-3IV54HOH.js → feedback-YCZHHSBS.js} +14 -14
  92. package/dist/cli/git-TGLNZRS3.js +26 -0
  93. package/dist/cli/{git-OSLU6HIK.mjs → git-XCGMQQOD.mjs} +5 -5
  94. package/dist/cli/index.js +152 -148
  95. package/dist/cli/index.mjs +51 -47
  96. package/dist/cli/{integrations-WOXFOC4M.mjs → integrations-5ABAJBSW.mjs} +7 -7
  97. package/dist/cli/{integrations-65SYNL53.js → integrations-IEZA3TGK.js} +29 -29
  98. package/dist/cli/{legacy-noops-3SGXDAV6.js → legacy-noops-KNFLJ5P2.js} +9 -9
  99. package/dist/cli/{legacy-noops-4FNG2JY3.mjs → legacy-noops-OZMY73Y3.mjs} +6 -6
  100. package/dist/cli/{mcp-PX27RHCY.js → mcp-NLQAO7KP.js} +24 -24
  101. package/dist/cli/{mcp-RZLWMZHH.mjs → mcp-WSPFKQPZ.mjs} +4 -4
  102. package/dist/cli/{monitors-F5BLGS4R.js → monitors-BJYOB4S3.js} +100 -100
  103. package/dist/cli/{monitors-VK2LW7VU.mjs → monitors-LPKFFTOX.mjs} +7 -7
  104. package/dist/cli/{org-7AEBTN6Y.mjs → org-RYPMUYUW.mjs} +6 -6
  105. package/dist/cli/{org-UU3V7U4K.js → org-WIVHI4WT.js} +121 -121
  106. package/dist/cli/{outcomes-BWERSUJL.mjs → outcomes-FADJYC4I.mjs} +9 -7
  107. package/dist/cli/{outcomes-GCTBGPMK.js → outcomes-QKX7IE3O.js} +17 -15
  108. package/dist/cli/{play-TX3RAAYS.mjs → play-4ZKK5Q7U.mjs} +88 -33
  109. package/dist/cli/{play-7NBCCL26.js → play-ID73J3NP.js} +393 -338
  110. package/dist/cli/{providers-KFWZXDCV.mjs → providers-LURYBSNO.mjs} +6 -6
  111. package/dist/cli/{providers-IL2IVKHB.js → providers-WCCGYGW6.js} +9 -9
  112. package/dist/cli/{quickstart-RAMDGRRI.mjs → quickstart-KCCSEE5J.mjs} +4 -4
  113. package/dist/cli/{quickstart-MPA6TUK5.js → quickstart-LVPOU25V.js} +6 -6
  114. package/dist/cli/{run-WBUSXBUS.js → run-2QMJRCVA.js} +48 -48
  115. package/dist/cli/{run-QNJSKPBN.mjs → run-XXK7DDUF.mjs} +26 -26
  116. package/dist/cli/search-AQSAXA6D.js +32 -0
  117. package/dist/cli/{search-2X4P2FXR.mjs → search-ZYAWW3CK.mjs} +7 -7
  118. package/dist/cli/{search-output-MNJ4AQLV.mjs → search-output-N45AIOB4.mjs} +9 -6
  119. package/dist/cli/{search-output-P2WNCHA3.js → search-output-YNXAZSKT.js} +12 -9
  120. package/dist/cli/{secrets-XX54OU22.mjs → secrets-7Q3AOUAS.mjs} +6 -6
  121. package/dist/cli/{secrets-K5CNDUVR.js → secrets-MHT27L2M.js} +15 -15
  122. package/dist/cli/{sessions-C4GQ6ZVO.mjs → sessions-6QKOM7M3.mjs} +6 -6
  123. package/dist/cli/sessions-RGD7L4LC.js +23 -0
  124. package/dist/cli/{settings-7HBTADGW.mjs → settings-NPVIDENI.mjs} +12 -12
  125. package/dist/cli/{settings-QP3DVFPS.js → settings-OP7Q6YX6.js} +85 -85
  126. package/dist/cli/{setup-VPDAKY2G.mjs → setup-OOT3EIMF.mjs} +9 -9
  127. package/dist/cli/{setup-X6J7U6B4.js → setup-RT6GHL3W.js} +49 -49
  128. package/dist/cli/skills-ERAA734H.js +37 -0
  129. package/dist/cli/{skills-UGY6W4AC.mjs → skills-TEXI4CLZ.mjs} +7 -7
  130. package/dist/cli/tools-D5SZSIIH.js +57 -0
  131. package/dist/cli/{tools-SVBUAHDD.mjs → tools-G5L36M3X.mjs} +19 -19
  132. package/dist/cli/update-WZ6527EF.js +37 -0
  133. package/dist/cli/{update-SDNKNDNW.mjs → update-YNKQTE4D.mjs} +9 -9
  134. package/dist/cli/{views-M6RBPC65.mjs → views-IQFMUMLU.mjs} +6 -6
  135. package/dist/cli/{views-JBFSHQBU.js → views-OVQ5AQAU.js} +21 -21
  136. package/dist/cli/{workflow-UAMTGHQC.js → workflow-RCBYXIFZ.js} +17 -17
  137. package/dist/cli/{workflow-RYVRAIHV.mjs → workflow-Y5IFMI7N.mjs} +7 -7
  138. package/dist/{client-DCnExziW.d.ts → client-BrdMPFCM.d.ts} +1 -1
  139. package/dist/{client-ClJlqkKt.d.mts → client-CF-bsrtI.d.mts} +1 -1
  140. package/dist/{client-core-DAOPQnGD.d.mts → client-core-DM1ZedOG.d.mts} +8 -0
  141. package/dist/{client-core-BKq5ZNAl.d.ts → client-core-rMoUWSYM.d.ts} +8 -0
  142. package/dist/index.d.mts +3 -3
  143. package/dist/index.d.ts +3 -3
  144. package/dist/index.js +9 -9
  145. package/dist/index.mjs +6 -6
  146. package/dist/install-integrity.json +128 -126
  147. package/dist/plays/play-description.d.mts +1 -1
  148. package/dist/plays/play-description.d.ts +1 -1
  149. package/dist/plays/run-request.d.mts +1 -1
  150. package/dist/plays/run-request.d.ts +1 -1
  151. package/dist/release.d.mts +1 -1
  152. package/dist/release.d.ts +1 -1
  153. package/dist/release.js +2 -2
  154. package/dist/release.mjs +1 -1
  155. package/dist/server.d.mts +2 -2
  156. package/dist/server.d.ts +2 -2
  157. package/dist/server.js +5 -5
  158. package/dist/server.mjs +3 -3
  159. package/package.json +1 -1
  160. package/dist/cli/auth-PXIVGUVZ.js +0 -44
  161. package/dist/cli/concurrent-runs-help-KGELXJIQ.js +0 -22
  162. package/dist/cli/describe-AVGE4MH6.js +0 -50
  163. package/dist/cli/git-VOFO6V5W.js +0 -26
  164. package/dist/cli/search-CJHG3VA4.js +0 -32
  165. package/dist/cli/sessions-3RMRBBJZ.js +0 -23
  166. package/dist/cli/skills-JUGXGSX2.js +0 -37
  167. package/dist/cli/tools-ZEI42NSP.js +0 -57
  168. package/dist/cli/update-VC4UEGMR.js +0 -37
  169. /package/dist/cli/{chunk-2RIKOPIM.mjs → chunk-HECXJBED.mjs} +0 -0
  170. /package/dist/cli/{chunk-H4ALLC2X.js → chunk-TJCENACZ.js} +0 -0
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  PRICING_PAGE_NOTE
3
- } from "./chunk-2RIKOPIM.mjs";
3
+ } from "./chunk-HECXJBED.mjs";
4
4
  import {
5
5
  PLAY_SANDBOX_COMPUTE_RATE_MULTIPLIERS
6
6
  } from "./chunk-LRZGS6RZ.mjs";
@@ -1075,7 +1075,12 @@ Input:
1075
1075
  [[cli:
1076
1076
  Output (JSON):
1077
1077
  Bare: one entry per category with its tool count. With a category: one row
1078
- per tool with required inputs and a pricing hint. Never truncated.
1078
+ per tool with required inputs and a pricing hint in Deepline credits. A tool
1079
+ that runs on your own provider key (one you connected, or one the tool
1080
+ requires) shows "0 (your key)": no Deepline charge. JSON keeps billingSource
1081
+ own_provider_credentials (free when the tool is free on Deepline) and
1082
+ billingSourceLabel "your key". An unconnected one also says it needs a
1083
+ connection. Never truncated.
1079
1084
  ]]
1080
1085
  Cost:
1081
1086
  Free.
@@ -4267,6 +4272,110 @@ Errors (code):
4267
4272
  name_invalid, play_invalid, input_invalid, forbidden, views_not_enabled.
4268
4273
  Cost:
4269
4274
  Free.
4275
+ `
4276
+ },
4277
+ agents: {
4278
+ rolloutFeature: "agent",
4279
+ core: `
4280
+ Purpose:
4281
+ Deepline agents in Slack. Members create agents, each with instructions and
4282
+ skills from the workspace's skill library, and bind Slack channels to them.
4283
+ An agent answers @mentions in its channels and works in this workspace
4284
+ through the shared deepline-agent service account (role run), the way your
4285
+ own coding agent works with Deepline.
4286
+ Set up once (owners and admins):
4287
+ 1. Turn agents on: [[agents enable]]. The first run creates the service
4288
+ account. [[agents disable]] turns every agent off.
4289
+ 2. Set the model key every agent runs on: [[agents billing set]] reads an
4290
+ OpenAI or Anthropic API key from piped stdin (deepline agents billing
4291
+ set < key.txt) or a hidden prompt. An sk-ant- key is Anthropic's; pass
4292
+ --provider openai|anthropic to say so outright. With an OpenAI key the
4293
+ agents run on gpt-6.1-sol, with an Anthropic key on claude-opus-5-5. It
4294
+ is stored encrypted and never shown again; setting another key replaces
4295
+ it. Admins can also set it on the Integrations page.
4296
+ 3. Add the agent to your Slack workspace: [[agents slack install]] prints
4297
+ an "Add to Slack" link. Open it in a browser signed in to Deepline as
4298
+ you, pick the Slack workspace and approve; the link works once, for 15
4299
+ minutes, and only for you. Each Slack workspace gets its own
4300
+ bot token, stored encrypted, and only this workspace's channels answer
4301
+ there. A Slack workspace already connected to another Deepline
4302
+ workspace is refused. [[agents slack status]] lists where the agent is
4303
+ installed. Removing the app in Slack takes it out of that Slack
4304
+ workspace; installing again brings its channels back.
4305
+ Make an agent (members with the run grant):
4306
+ 1. Optionally add skills to the library:
4307
+ [[agents skills set icp --file SKILL.md]]. A skill is markdown with a
4308
+ description of when to load it (frontmatter or --description). Any
4309
+ agent may use it; replacing it changes every agent that does.
4310
+ 2. Create the agent: [[agents create pipeline --instructions "Answer pipeline questions" --skills icp]].
4311
+ Instructions say what it does and never does (at most 8,000
4312
+ characters); at most 10 skills.
4313
+ 3. Invite the agent's Slack app to a channel, then bind it:
4314
+ [[agents channels add pipeline C0123456789]]. A channel answers with one
4315
+ agent; to move it, remove it first.
4316
+ 4. Try it without Slack: [[agents test C0123456789 "who are our top accounts?"]]
4317
+ or [[agents chat C0123456789]]. To play several people in one thread,
4318
+ name each with --as:
4319
+ [[agents test C0123456789 "narrow that to HubSpot users" --thread <id> --as priya]].
4320
+ Only an agent's or skill's creator, or an admin, changes or deletes it:
4321
+ [[agents update pipeline --skills icp,territories]], [[agents delete pipeline]],
4322
+ [[agents channels remove C0123456789]], [[agents skills delete icp]].
4323
+ Feedback:
4324
+ Each answer the agent posts in Slack carries Helpful / Not helpful buttons.
4325
+ [[agents feedback]] lists the ratings, newest first; --agent pipeline keeps
4326
+ one agent's, --limit sets the page size (at most 100) and --cursor reads
4327
+ the next page, with the same --agent. A cursor the list did not print
4328
+ exits 2. A person's later click replaces their rating.
4329
+ Replies:
4330
+ Each turn the agent finishes in Slack is recorded: its channel and
4331
+ thread, how it ended, how long it took, its tool calls and tokens, never
4332
+ the message text or who asked. [[agents replies]] lists them newest first,
4333
+ with each reply's ratings; it takes --agent, --limit (at most 100) and
4334
+ --cursor as feedback does. [[agents activity]] sums each agent's last
4335
+ 7 days.
4336
+ Direct messages:
4337
+ The agent works only in its channels. A direct message to it gets a reply
4338
+ naming the channels where it answers.
4339
+ Confirmations:
4340
+ When a Deepline tool spends credits or changes data, the agent says what
4341
+ will run and the expected credits, and goes ahead once you say so in the
4342
+ thread. Only the person whose mention started the turn answers the
4343
+ agent's questions, with the buttons or in words; anyone else who clicks
4344
+ is told who can.
4345
+ Output (JSON):
4346
+ list prints workspace {lifecycle, billing {provider (openai, anthropic),
4347
+ keyLast4} or null} (null before
4348
+ enable), agents[] {name, instructions, skillNames, ownerUserId,
4349
+ updatedByUserId, conversations[] {platform, conversationId,
4350
+ conversationName, createdByUserId, createdAt}} and skills[]
4351
+ {name, description, markdownLength}. get, create, update and channels add
4352
+ print agent; created, changed or removed says whether anything changed.
4353
+ feedback prints feedback[] {agentName (null once deleted), platform,
4354
+ conversationId, conversationName, threadTs, messageTs, raterId, rating
4355
+ (helpful, not_helpful), updatedAt} and cursor (null on the last page).
4356
+ replies prints replies[] {id, agentName, platform, conversationId,
4357
+ conversationName, threadTs, outcome (completed, failed, cancelled),
4358
+ durationMs, toolCalls, inputTokens, outputTokens, finishedAt, ratings
4359
+ (null when no buttons were posted; {counted: true, helpful, notHelpful};
4360
+ or {counted: false} past 100 ratings)} and cursor. activity prints days,
4361
+ since, readLimit and agents[] {agentName, lastReplyAt, window {replies,
4362
+ failed, cancelled, perDay[] (oldest day first), medianDurationMs,
4363
+ inputTokens, outputTokens}, or window null past readLimit replies}.
4364
+ test prints threadId, status (replied, awaiting_answer, failed), reply,
4365
+ question {prompt, options} and error; failed exits 5. Answer a question
4366
+ with test on the same --thread, sending an option or your own answer.
4367
+ slack install prints installUrl, redirectUri, scopes and expiresAt. slack
4368
+ status prints installations[] {teamId, teamName, status (installed,
4369
+ uninstalled), scopes, installedAt, installedByUserId, uninstalledAt,
4370
+ uninstallReason (app_uninstalled, tokens_revoked)}; never a token.
4371
+ Cost:
4372
+ Model calls are billed to the workspace's OpenAI or Anthropic key, never
4373
+ to Deepline credits. Tools an agent calls spend Deepline credits as they
4374
+ would for you.
4375
+ Avoid:
4376
+ Do not pass the model key as an argument; it is refused. Do not bind a
4377
+ channel the agent's Slack app is not in, or one in a Slack workspace this
4378
+ workspace has not installed it in; both are refused.
4270
4379
  `
4271
4380
  },
4272
4381
  "sessions send": {
@@ -2,7 +2,7 @@ import {
2
2
  addDescribeOptions,
3
3
  recordApiResponse,
4
4
  writeExecutionOutput
5
- } from "./chunk-QA733N7N.mjs";
5
+ } from "./chunk-IA2LTIWO.mjs";
6
6
  import {
7
7
  registerIntegrationBalanceCommand,
8
8
  registerIntegrationConnectCommand,
@@ -11,11 +11,11 @@ import {
11
11
  registerLegacyHubSpotMembersCommand,
12
12
  registerLegacyWorkspaceConnectionCommand,
13
13
  registerWorkspaceConnectionListCommand
14
- } from "./chunk-MVQ5XGRO.mjs";
14
+ } from "./chunk-VGIDPJXM.mjs";
15
15
  import {
16
16
  recentSearchRef,
17
17
  registerDeprecatedSearchCommand
18
- } from "./chunk-Q6H5RRTG.mjs";
18
+ } from "./chunk-X7RKCAMX.mjs";
19
19
  import {
20
20
  Capability,
21
21
  arrayField,
@@ -37,10 +37,10 @@ import {
37
37
  toolInputFieldsForDisplay,
38
38
  toolMetadataJsonForDescribe,
39
39
  toolOutputFieldsForDisplay
40
- } from "./chunk-ENHQBPR5.mjs";
40
+ } from "./chunk-Q3A53SWK.mjs";
41
41
  import {
42
42
  rateLimitQualifier
43
- } from "./chunk-BM4GE67C.mjs";
43
+ } from "./chunk-L2NXB4WG.mjs";
44
44
  import {
45
45
  shellArgument,
46
46
  shellQuote
@@ -57,29 +57,29 @@ import {
57
57
  } from "./chunk-FIVKWNMT.mjs";
58
58
  import {
59
59
  DeeplineClient
60
- } from "./chunk-UFUXGMHL.mjs";
60
+ } from "./chunk-LCAXLGAY.mjs";
61
61
  import {
62
62
  validateExecutionIdempotencyKey
63
- } from "./chunk-PQ6PM4V6.mjs";
63
+ } from "./chunk-4T2U72SP.mjs";
64
64
  import {
65
65
  beginToolExecuteCommand,
66
66
  getToolExecuteInvocationId,
67
67
  maybeAutoUpdateAndRelaunch,
68
68
  registerCompatibilityCatalog,
69
69
  runToolExecuteStage
70
- } from "./chunk-BWWDU6FN.mjs";
70
+ } from "./chunk-G7OR3GVD.mjs";
71
71
  import {
72
72
  isCliTraceEnabled,
73
73
  recordCliTrace,
74
74
  resolveCliMaintenancePolicy
75
- } from "./chunk-6R57HEPF.mjs";
75
+ } from "./chunk-S22FSNNC.mjs";
76
76
  import {
77
77
  checkSdkCompatibility,
78
78
  enforceSdkCompatibilityResponse,
79
79
  flushDeferredSkillsSyncNotices,
80
80
  requireSdkCompatibility,
81
81
  syncSdkSkillsIfNeeded
82
- } from "./chunk-CYW6PE3G.mjs";
82
+ } from "./chunk-MGF3MK27.mjs";
83
83
  import {
84
84
  errorToJsonPayload,
85
85
  printCommandEnvelope,
@@ -88,12 +88,12 @@ import {
88
88
  printJsonError,
89
89
  renderCommandEnvelopeText,
90
90
  shouldEmitJson
91
- } from "./chunk-I4WKB3HO.mjs";
91
+ } from "./chunk-2TMAKJBT.mjs";
92
92
  import {
93
93
  readSdkSkillsLocalVersion,
94
94
  resolveConfig,
95
95
  sdkCliStateDirPath
96
- } from "./chunk-AJO3I3LL.mjs";
96
+ } from "./chunk-SRUNYWQ2.mjs";
97
97
  import {
98
98
  DeeplineError
99
99
  } from "./chunk-Z3A2S3QM.mjs";
@@ -529,6 +529,9 @@ function notConnectedSuffix(tool) {
529
529
  });
530
530
  return message ? ` - \u26A0 ${message}` : "";
531
531
  }
532
+ function runsOnOwnKey(tool) {
533
+ return tool.billingSource === "own_provider_credentials" || tool.billingSource === "free";
534
+ }
532
535
  function shortPricingHint(tool) {
533
536
  const pricing = recordField(
534
537
  tool,
@@ -536,6 +539,7 @@ function shortPricingHint(tool) {
536
539
  );
537
540
  const credits = numberField(pricing, "creditsPerUnit", "credits_per_unit");
538
541
  const unit = stringField(pricing, "unit");
542
+ if (runsOnOwnKey(tool)) return "0 (your key)";
539
543
  if (credits !== null) {
540
544
  return `${formatDecimal(credits)} cr/${unit || "unit"}`;
541
545
  }
@@ -654,6 +658,7 @@ async function listToolsInCategory(category, emitJson) {
654
658
  provider: tool.provider,
655
659
  required: requiredInputIds(tool),
656
660
  pricing: shortPricingHint(tool),
661
+ ...tool.billingSource ? { billingSource: tool.billingSource } : {},
657
662
  description: firstSentence(tool.description),
658
663
  notConnected: notConnectedSuffix(tool)
659
664
  })).sort((a, b) => a.id.localeCompare(b.id));
@@ -1052,7 +1057,7 @@ Examples:
1052
1057
  process.exitCode = await narrowView();
1053
1058
  return;
1054
1059
  }
1055
- const { describeAnything } = await import("./describe-JLAERB6X.mjs");
1060
+ const { describeAnything } = await import("./describe-QI4HMUGE.mjs");
1056
1061
  process.exitCode = await describeAnything(
1057
1062
  toolId,
1058
1063
  {
@@ -1852,11 +1857,11 @@ function listedToolDescription(tool) {
1852
1857
  }
1853
1858
  function formatListedToolCost(tool) {
1854
1859
  const record = tool;
1855
- if (stringField(record, "billingSource", "billing_source") === "free") {
1856
- return "Cost: Free";
1857
- }
1858
1860
  const pricing = recordField(record, "pricing");
1859
1861
  const displayText = stringField(pricing, "displayText", "display_text");
1862
+ if (stringField(record, "billingSource", "billing_source") === "free") {
1863
+ return `Cost: ${displayText || "Free"}`;
1864
+ }
1860
1865
  return displayText ? `Cost: ${displayText}` : "";
1861
1866
  }
1862
1867
  function printToolOutputArrayShape(tool) {
@@ -1,6 +1,6 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunkH4ALLC2Xjs = require('./chunk-H4ALLC2X.js');
3
+ var _chunkTJCENACZjs = require('./chunk-TJCENACZ.js');
4
4
 
5
5
 
6
6
  var _chunkE2G2DNABjs = require('./chunk-E2G2DNAB.js');
@@ -452,7 +452,7 @@ Output:
452
452
  Database and sandbox charges share included compute by dollar value.
453
453
  Usage is shown in standard sandbox minutes at your current rate and in credits.
454
454
  ${PLAY_RUNTIME_PRICING_NOTE}
455
- ${_chunkH4ALLC2Xjs.PRICING_PAGE_NOTE}
455
+ ${_chunkTJCENACZjs.PRICING_PAGE_NOTE}
456
456
  Cost:
457
457
  Free to check.
458
458
  [[cli:
@@ -1075,7 +1075,12 @@ Input:
1075
1075
  [[cli:
1076
1076
  Output (JSON):
1077
1077
  Bare: one entry per category with its tool count. With a category: one row
1078
- per tool with required inputs and a pricing hint. Never truncated.
1078
+ per tool with required inputs and a pricing hint in Deepline credits. A tool
1079
+ that runs on your own provider key (one you connected, or one the tool
1080
+ requires) shows "0 (your key)": no Deepline charge. JSON keeps billingSource
1081
+ own_provider_credentials (free when the tool is free on Deepline) and
1082
+ billingSourceLabel "your key". An unconnected one also says it needs a
1083
+ connection. Never truncated.
1079
1084
  ]]
1080
1085
  Cost:
1081
1086
  Free.
@@ -1786,7 +1791,7 @@ Concurrency:
1786
1791
  deepline billing entitlements shows this org's plan and limit and
1787
1792
  every plan's limit; this help prints them too when you are signed in.
1788
1793
  ]]
1789
- ${_chunkH4ALLC2Xjs.PRICING_PAGE_NOTE}
1794
+ ${_chunkTJCENACZjs.PRICING_PAGE_NOTE}
1790
1795
  Cost:
1791
1796
  Spends Deepline credits through the play's tool calls. Validation errors
1792
1797
  (missing column, bad input) fail before any spend.
@@ -2037,7 +2042,7 @@ Concurrency:
2037
2042
  deepline billing entitlements shows this org's plan and limit and
2038
2043
  every plan's limit; this help prints them too when you are signed in.
2039
2044
  ]]
2040
- ${_chunkH4ALLC2Xjs.PRICING_PAGE_NOTE}
2045
+ ${_chunkTJCENACZjs.PRICING_PAGE_NOTE}
2041
2046
  Cost:
2042
2047
  Free.
2043
2048
  Avoid:
@@ -4267,6 +4272,110 @@ Errors (code):
4267
4272
  name_invalid, play_invalid, input_invalid, forbidden, views_not_enabled.
4268
4273
  Cost:
4269
4274
  Free.
4275
+ `
4276
+ },
4277
+ agents: {
4278
+ rolloutFeature: "agent",
4279
+ core: `
4280
+ Purpose:
4281
+ Deepline agents in Slack. Members create agents, each with instructions and
4282
+ skills from the workspace's skill library, and bind Slack channels to them.
4283
+ An agent answers @mentions in its channels and works in this workspace
4284
+ through the shared deepline-agent service account (role run), the way your
4285
+ own coding agent works with Deepline.
4286
+ Set up once (owners and admins):
4287
+ 1. Turn agents on: [[agents enable]]. The first run creates the service
4288
+ account. [[agents disable]] turns every agent off.
4289
+ 2. Set the model key every agent runs on: [[agents billing set]] reads an
4290
+ OpenAI or Anthropic API key from piped stdin (deepline agents billing
4291
+ set < key.txt) or a hidden prompt. An sk-ant- key is Anthropic's; pass
4292
+ --provider openai|anthropic to say so outright. With an OpenAI key the
4293
+ agents run on gpt-6.1-sol, with an Anthropic key on claude-opus-5-5. It
4294
+ is stored encrypted and never shown again; setting another key replaces
4295
+ it. Admins can also set it on the Integrations page.
4296
+ 3. Add the agent to your Slack workspace: [[agents slack install]] prints
4297
+ an "Add to Slack" link. Open it in a browser signed in to Deepline as
4298
+ you, pick the Slack workspace and approve; the link works once, for 15
4299
+ minutes, and only for you. Each Slack workspace gets its own
4300
+ bot token, stored encrypted, and only this workspace's channels answer
4301
+ there. A Slack workspace already connected to another Deepline
4302
+ workspace is refused. [[agents slack status]] lists where the agent is
4303
+ installed. Removing the app in Slack takes it out of that Slack
4304
+ workspace; installing again brings its channels back.
4305
+ Make an agent (members with the run grant):
4306
+ 1. Optionally add skills to the library:
4307
+ [[agents skills set icp --file SKILL.md]]. A skill is markdown with a
4308
+ description of when to load it (frontmatter or --description). Any
4309
+ agent may use it; replacing it changes every agent that does.
4310
+ 2. Create the agent: [[agents create pipeline --instructions "Answer pipeline questions" --skills icp]].
4311
+ Instructions say what it does and never does (at most 8,000
4312
+ characters); at most 10 skills.
4313
+ 3. Invite the agent's Slack app to a channel, then bind it:
4314
+ [[agents channels add pipeline C0123456789]]. A channel answers with one
4315
+ agent; to move it, remove it first.
4316
+ 4. Try it without Slack: [[agents test C0123456789 "who are our top accounts?"]]
4317
+ or [[agents chat C0123456789]]. To play several people in one thread,
4318
+ name each with --as:
4319
+ [[agents test C0123456789 "narrow that to HubSpot users" --thread <id> --as priya]].
4320
+ Only an agent's or skill's creator, or an admin, changes or deletes it:
4321
+ [[agents update pipeline --skills icp,territories]], [[agents delete pipeline]],
4322
+ [[agents channels remove C0123456789]], [[agents skills delete icp]].
4323
+ Feedback:
4324
+ Each answer the agent posts in Slack carries Helpful / Not helpful buttons.
4325
+ [[agents feedback]] lists the ratings, newest first; --agent pipeline keeps
4326
+ one agent's, --limit sets the page size (at most 100) and --cursor reads
4327
+ the next page, with the same --agent. A cursor the list did not print
4328
+ exits 2. A person's later click replaces their rating.
4329
+ Replies:
4330
+ Each turn the agent finishes in Slack is recorded: its channel and
4331
+ thread, how it ended, how long it took, its tool calls and tokens, never
4332
+ the message text or who asked. [[agents replies]] lists them newest first,
4333
+ with each reply's ratings; it takes --agent, --limit (at most 100) and
4334
+ --cursor as feedback does. [[agents activity]] sums each agent's last
4335
+ 7 days.
4336
+ Direct messages:
4337
+ The agent works only in its channels. A direct message to it gets a reply
4338
+ naming the channels where it answers.
4339
+ Confirmations:
4340
+ When a Deepline tool spends credits or changes data, the agent says what
4341
+ will run and the expected credits, and goes ahead once you say so in the
4342
+ thread. Only the person whose mention started the turn answers the
4343
+ agent's questions, with the buttons or in words; anyone else who clicks
4344
+ is told who can.
4345
+ Output (JSON):
4346
+ list prints workspace {lifecycle, billing {provider (openai, anthropic),
4347
+ keyLast4} or null} (null before
4348
+ enable), agents[] {name, instructions, skillNames, ownerUserId,
4349
+ updatedByUserId, conversations[] {platform, conversationId,
4350
+ conversationName, createdByUserId, createdAt}} and skills[]
4351
+ {name, description, markdownLength}. get, create, update and channels add
4352
+ print agent; created, changed or removed says whether anything changed.
4353
+ feedback prints feedback[] {agentName (null once deleted), platform,
4354
+ conversationId, conversationName, threadTs, messageTs, raterId, rating
4355
+ (helpful, not_helpful), updatedAt} and cursor (null on the last page).
4356
+ replies prints replies[] {id, agentName, platform, conversationId,
4357
+ conversationName, threadTs, outcome (completed, failed, cancelled),
4358
+ durationMs, toolCalls, inputTokens, outputTokens, finishedAt, ratings
4359
+ (null when no buttons were posted; {counted: true, helpful, notHelpful};
4360
+ or {counted: false} past 100 ratings)} and cursor. activity prints days,
4361
+ since, readLimit and agents[] {agentName, lastReplyAt, window {replies,
4362
+ failed, cancelled, perDay[] (oldest day first), medianDurationMs,
4363
+ inputTokens, outputTokens}, or window null past readLimit replies}.
4364
+ test prints threadId, status (replied, awaiting_answer, failed), reply,
4365
+ question {prompt, options} and error; failed exits 5. Answer a question
4366
+ with test on the same --thread, sending an option or your own answer.
4367
+ slack install prints installUrl, redirectUri, scopes and expiresAt. slack
4368
+ status prints installations[] {teamId, teamName, status (installed,
4369
+ uninstalled), scopes, installedAt, installedByUserId, uninstalledAt,
4370
+ uninstallReason (app_uninstalled, tokens_revoked)}; never a token.
4371
+ Cost:
4372
+ Model calls are billed to the workspace's OpenAI or Anthropic key, never
4373
+ to Deepline credits. Tools an agent calls spend Deepline credits as they
4374
+ would for you.
4375
+ Avoid:
4376
+ Do not pass the model key as an argument; it is refused. Do not bind a
4377
+ channel the agent's Slack app is not in, or one in a Slack workspace this
4378
+ workspace has not installed it in; both are refused.
4270
4379
  `
4271
4380
  },
4272
4381
  "sessions send": {
@@ -852,14 +852,27 @@ function describedJson(described, view) {
852
852
  ...hidden.length ? { hidden } : {}
853
853
  };
854
854
  }
855
- function buildPlayDashboardUrl(baseUrl, playName) {
856
- const trimmedBase = baseUrl.replace(/\/$/, "");
857
- const encodedPlayName = encodeURIComponent(playName);
858
- return `${trimmedBase}/dashboard/plays/${encodedPlayName}`;
855
+ var DASHBOARD_WORKSPACE_PARAM = "workspace";
856
+ function buildDashboardUrl(baseUrl, path, orgId) {
857
+ const url = `${baseUrl.replace(/\/$/, "")}${path}`;
858
+ if (!orgId) return url;
859
+ const param = new URLSearchParams({ [DASHBOARD_WORKSPACE_PARAM]: orgId });
860
+ return `${url}${url.includes("?") ? "&" : "?"}${param.toString()}`;
861
+ }
862
+ function buildPlayDashboardUrl(baseUrl, playName, orgId) {
863
+ return buildDashboardUrl(
864
+ baseUrl,
865
+ `/dashboard/plays/${encodeURIComponent(playName)}`,
866
+ orgId
867
+ );
859
868
  }
860
- function buildPlayRunUrl(baseUrl, playName, runId) {
869
+ function buildPlayRunUrl(baseUrl, playName, runId, orgId) {
861
870
  const params = new URLSearchParams({ runId });
862
- return `${buildPlayDashboardUrl(baseUrl, playName)}?${params.toString()}`;
871
+ return buildDashboardUrl(
872
+ baseUrl,
873
+ `/dashboard/plays/${encodeURIComponent(playName)}?${params.toString()}`,
874
+ orgId
875
+ );
863
876
  }
864
877
  function describedPlay(play) {
865
878
  const reference = play.reference || play.name;
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  DeeplineClient
3
- } from "./chunk-PQ6PM4V6.mjs";
3
+ } from "./chunk-4T2U72SP.mjs";
4
4
  import {
5
5
  HttpClient,
6
6
  resolveConfig
7
- } from "./chunk-AJO3I3LL.mjs";
7
+ } from "./chunk-SRUNYWQ2.mjs";
8
8
 
9
9
  // src/client.ts
10
10
  var DeeplineClient2 = class extends DeeplineClient {
@@ -1,11 +1,11 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
2
2
 
3
- var _chunkXVQE6IBSjs = require('./chunk-XVQE6IBS.js');
3
+ var _chunkSLXCVPN7js = require('./chunk-SLXCVPN7.js');
4
4
 
5
5
 
6
6
 
7
7
 
8
- var _chunkEL4LME5Yjs = require('./chunk-EL4LME5Y.js');
8
+ var _chunkI62ZBEKHjs = require('./chunk-I62ZBEKH.js');
9
9
 
10
10
  // src/cli/play-run-admission.ts
11
11
  function usesInlinePlayAdmission(command, args) {
@@ -18,18 +18,18 @@ function usesCliPlayAdmission(command, args) {
18
18
  }
19
19
  async function checkPlayRunCompatibility(baseUrl, maintenancePolicy = "configured", signal) {
20
20
  _optionalChain([signal, 'optionalAccess', _ => _.throwIfAborted, 'call', _2 => _2()]);
21
- if (maintenancePolicy !== "off") _chunkEL4LME5Yjs.flushDeferredSkillsSyncNotices.call(void 0, baseUrl);
22
- const compatibility = await _chunkXVQE6IBSjs.traceCliSpan.call(void 0,
21
+ if (maintenancePolicy !== "off") _chunkI62ZBEKHjs.flushDeferredSkillsSyncNotices.call(void 0, baseUrl);
22
+ const compatibility = await _chunkSLXCVPN7js.traceCliSpan.call(void 0,
23
23
  "cli.sdk_compatibility",
24
24
  { baseUrl, command: "plays run" },
25
- () => _chunkEL4LME5Yjs.requireSdkCompatibility.call(void 0, baseUrl, {
25
+ () => _chunkI62ZBEKHjs.requireSdkCompatibility.call(void 0, baseUrl, {
26
26
  command: "plays run",
27
27
  persistCache: maintenancePolicy !== "off",
28
28
  signal
29
29
  })
30
30
  );
31
31
  _optionalChain([signal, 'optionalAccess', _3 => _3.throwIfAborted, 'call', _4 => _4()]);
32
- _chunkEL4LME5Yjs.enforceSdkCompatibilityResponse.call(void 0, compatibility, {
32
+ _chunkI62ZBEKHjs.enforceSdkCompatibilityResponse.call(void 0, compatibility, {
33
33
  quietAdvisory: true
34
34
  });
35
35
  }
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  printCommandEnvelope
3
- } from "./chunk-I4WKB3HO.mjs";
3
+ } from "./chunk-2TMAKJBT.mjs";
4
4
 
5
5
  // src/cli/feedback-preferences.ts
6
6
  import {
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  resolveShellSpawn
3
- } from "./chunk-CYW6PE3G.mjs";
3
+ } from "./chunk-MGF3MK27.mjs";
4
4
 
5
5
  // src/cli/npm-script-policy.ts
6
6
  import { spawnSync } from "child_process";
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  getActiveCliProgress
3
- } from "./chunk-JJEN7TRR.mjs";
3
+ } from "./chunk-YR4REP4D.mjs";
4
4
  import {
5
5
  maybeReportAutomaticSkillsSyncFailure
6
- } from "./chunk-I4WKB3HO.mjs";
6
+ } from "./chunk-2TMAKJBT.mjs";
7
7
  import {
8
8
  DEFAULT_MAX_RETRIES,
9
9
  DEFAULT_SKILL_AGENTS,
@@ -18,20 +18,20 @@ import {
18
18
  sdkCliStateDirPath,
19
19
  skillsAgentPathSegment,
20
20
  writeSdkSkillsLocalVersion
21
- } from "./chunk-AJO3I3LL.mjs";
21
+ } from "./chunk-SRUNYWQ2.mjs";
22
22
  import {
23
23
  SDK_API_CONTRACT,
24
24
  SDK_API_MAJOR,
25
25
  SDK_VERSION,
26
26
  deploymentProtectionHeaders,
27
27
  detectAgentRuntime
28
- } from "./chunk-JEI7PHET.mjs";
28
+ } from "./chunk-ZFXDD7VM.mjs";
29
29
  import {
30
30
  DeeplineError
31
31
  } from "./chunk-Z3A2S3QM.mjs";
32
32
  import {
33
33
  SDK_RELEASE
34
- } from "./chunk-EDAG7ZU4.mjs";
34
+ } from "./chunk-XVBEEGI4.mjs";
35
35
 
36
36
  // src/compat.ts
37
37
  import { randomUUID } from "crypto";