deepline 0.3.573 → 0.3.575
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.
- package/dist/bundling-sources/sdk/src/config.ts +19 -0
- package/dist/bundling-sources/sdk/src/play.ts +7 -4
- package/dist/bundling-sources/sdk/src/release.ts +1 -1
- package/dist/bundling-sources/sdk/src/types.ts +8 -0
- package/dist/bundling-sources/shared_libs/observability/scheduled-jobs.json +0 -18
- package/dist/bundling-sources/shared_libs/play-runtime/app-runtime-api.ts +8 -0
- package/dist/bundling-sources/shared_libs/play-runtime/builtin-pacing.ts +18 -0
- package/dist/bundling-sources/shared_libs/play-runtime/context.ts +4 -1
- package/dist/bundling-sources/shared_libs/play-runtime/deployment/commands/roll-receipt-gateway.ts +1 -1
- package/dist/bundling-sources/shared_libs/play-runtime/deployment/vercel-fly-rollback-alignment.ts +0 -14
- package/dist/bundling-sources/shared_libs/play-runtime/governor/governor.ts +4 -0
- package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/backends/daytona-launch-transport.ts +43 -7
- package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/backends/daytona-payload-transport.ts +56 -20
- package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/backends/modal.ts +45 -7
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/postgres.ts +6 -66
- package/dist/cli/agents-BCLO3KQJ.js +996 -0
- package/dist/cli/agents-ULGDKUTM.mjs +996 -0
- package/dist/cli/{auth-XX3HLRQ2.mjs → auth-4WCL7A6W.mjs} +5 -5
- package/dist/cli/auth-DXUHEL5I.js +44 -0
- package/dist/cli/{billing-QASEPOBL.mjs → billing-7JQ6EUQU.mjs} +10 -10
- package/dist/cli/{billing-6TY2HMC6.js → billing-BF5LVXOM.js} +106 -106
- package/dist/cli/{chunk-NUH56LTU.mjs → chunk-2T7XOKVL.mjs} +5 -5
- package/dist/cli/{chunk-KQZBN7TB.js → chunk-2UM3I2MY.js} +1 -1
- package/dist/cli/{chunk-MQOJ7SP4.mjs → chunk-3PVKXUSJ.mjs} +9 -1
- package/dist/cli/{chunk-6JTJP3WO.mjs → chunk-56N3XAT6.mjs} +5 -5
- package/dist/cli/{chunk-T2QI52F2.mjs → chunk-5D7OJY4W.mjs} +1 -1
- package/dist/cli/{chunk-JAW75RAO.js → chunk-5H6254MJ.js} +27 -20
- package/dist/cli/{chunk-N3VZTISZ.js → chunk-5VSHQG5E.js} +8 -8
- package/dist/cli/{chunk-KART6FR6.js → chunk-636GD4IR.js} +2 -2
- package/dist/cli/{chunk-XWO4J34B.js → chunk-6IKLITVH.js} +6 -6
- package/dist/cli/{chunk-Z6KWSBOX.js → chunk-737Y7QGT.js} +41 -41
- package/dist/cli/{chunk-XVFRNNL2.js → chunk-7DLAJ6JJ.js} +53 -53
- package/dist/cli/{chunk-GWPXWKQR.js → chunk-AO56MZ7D.js} +15 -7
- package/dist/cli/{chunk-DIZI5YGW.js → chunk-AS5XGOZY.js} +2 -2
- package/dist/cli/{chunk-ESKNCTFI.mjs → chunk-BM536WWR.mjs} +1 -1
- package/dist/cli/{chunk-LPYUGPTF.mjs → chunk-BONMEBWZ.mjs} +4 -4
- package/dist/cli/{chunk-4LWBURSS.mjs → chunk-BQUAE6LQ.mjs} +1 -1
- package/dist/cli/{chunk-QDQOXHXQ.mjs → chunk-CVY4MBXH.mjs} +5 -5
- package/dist/cli/{chunk-N6KF6X3D.js → chunk-DMPGJCNZ.js} +177 -6
- package/dist/cli/{chunk-ENHQBPR5.mjs → chunk-DWUESXDD.mjs} +4 -3
- package/dist/cli/{chunk-5NEJOCOK.mjs → chunk-E4RYSSXX.mjs} +2 -2
- package/dist/cli/{chunk-IZK2BLBW.js → chunk-EV3OPDHF.js} +20 -20
- package/dist/cli/{chunk-YKHXWO7N.js → chunk-EZIXKNKM.js} +3 -3
- package/dist/cli/{chunk-64MOX3SN.mjs → chunk-FDCU3VAJ.mjs} +174 -3
- package/dist/cli/{chunk-X3BGF6UU.js → chunk-FXXERR52.js} +10 -10
- package/dist/cli/{chunk-BM4GE67C.mjs → chunk-FYKHAT2F.mjs} +81 -7
- package/dist/cli/{chunk-UNTBQY64.js → chunk-G2H6SQQY.js} +11 -11
- package/dist/cli/{chunk-WQEGXOUT.js → chunk-G4WPDCXA.js} +48 -48
- package/dist/cli/{chunk-OG3YWDYA.js → chunk-GB4IZ5TV.js} +13 -13
- package/dist/cli/{chunk-N5VL6BHF.mjs → chunk-GQZFZG6R.mjs} +2 -2
- package/dist/cli/{chunk-JCVAVHDP.mjs → chunk-H3CG72RZ.mjs} +21 -16
- package/dist/cli/{chunk-FXLVMWWA.js → chunk-H6JMRLAZ.js} +280 -275
- package/dist/cli/{chunk-UBTEDSIK.js → chunk-HEOM3FAC.js} +20 -20
- package/dist/cli/{chunk-CY3BUFMG.js → chunk-HO76C7AE.js} +2 -2
- package/dist/cli/{chunk-XAIXTB74.mjs → chunk-IAJ65IDZ.mjs} +4 -4
- package/dist/cli/{chunk-ENLJ67CZ.mjs → chunk-IBYMGR5Y.mjs} +1 -1
- package/dist/cli/{chunk-4K6UVILG.mjs → chunk-IOWLFWWG.mjs} +2 -2
- package/dist/cli/{chunk-NJTTRJ32.mjs → chunk-JGLCK2XF.mjs} +2 -2
- package/dist/cli/{chunk-DLWVJ66I.js → chunk-KNCNFL76.js} +4 -4
- package/dist/cli/{chunk-XLN4Z654.mjs → chunk-MN7JLH2T.mjs} +2 -2
- package/dist/cli/{chunk-IXCGWJJZ.mjs → chunk-MWLOBURN.mjs} +2 -2
- package/dist/cli/{chunk-6ASDTHEN.js → chunk-MXK4M7HP.js} +21 -17
- package/dist/cli/{chunk-C52RRBYB.mjs → chunk-NF722E6C.mjs} +1 -1
- package/dist/cli/{chunk-TNCJ2J76.js → chunk-PQYDO72W.js} +26 -26
- package/dist/cli/{chunk-PW3PADXI.mjs → chunk-QEDRUURT.mjs} +1 -1
- package/dist/cli/{chunk-QFDT35HF.mjs → chunk-QKP3WYSZ.mjs} +3 -3
- package/dist/cli/{chunk-M2UJWUWX.mjs → chunk-RHRRY2BX.mjs} +3 -3
- package/dist/cli/{chunk-HUJMFETO.mjs → chunk-RW3URFZK.mjs} +7 -3
- package/dist/cli/{chunk-TBLP7HDL.js → chunk-SKHUWQZE.js} +10 -9
- package/dist/cli/{chunk-WSXRJ2RZ.mjs → chunk-SYQTBHRX.mjs} +3 -3
- package/dist/cli/{chunk-ANSHNREL.mjs → chunk-TMFR2B45.mjs} +3 -3
- package/dist/cli/{chunk-5MCC4D25.mjs → chunk-TTBZ7QXX.mjs} +1 -1
- package/dist/cli/{chunk-ROSPYLDN.mjs → chunk-UQZP7XBQ.mjs} +17 -10
- package/dist/cli/{chunk-TJSKDOXN.js → chunk-V5XLENWK.js} +7 -7
- package/dist/cli/{chunk-DSE45YP4.mjs → chunk-X47J55ZJ.mjs} +2 -2
- package/dist/cli/{chunk-FUVVTHXE.js → chunk-XFV353R2.js} +23 -23
- package/dist/cli/{chunk-OPD6XUIG.js → chunk-YNAXKA23.js} +5 -5
- package/dist/cli/{chunk-LHPYCJNL.js → chunk-ZO65VJRJ.js} +87 -13
- package/dist/cli/{chunk-2USXCXPZ.js → chunk-ZQXJYO5P.js} +5 -5
- package/dist/cli/{chunk-UZLTBBAG.js → chunk-ZS6DT4LD.js} +15 -15
- package/dist/cli/{chunk-KQLIG4YR.js → chunk-ZYSJND73.js} +9 -9
- package/dist/cli/command-docs.js +3 -3
- package/dist/cli/command-docs.mjs +2 -2
- package/dist/cli/{concurrent-runs-help-IILHMHBX.mjs → concurrent-runs-help-HITK6EOO.mjs} +7 -7
- package/dist/cli/concurrent-runs-help-JLWY54WL.js +22 -0
- package/dist/cli/{csv-OSJQVDAS.js → csv-RS7XHQ4P.js} +13 -13
- package/dist/cli/{csv-VGYW2PQZ.mjs → csv-V2T23MXT.mjs} +4 -4
- package/dist/cli/{db-3IQYT3WD.mjs → db-OQ4RNTGE.mjs} +6 -6
- package/dist/cli/{db-2IMS6K2F.js → db-WFIVRPKY.js} +27 -27
- package/dist/cli/describe-33PBWO5O.js +50 -0
- package/dist/cli/{describe-IGJ4CHUC.mjs → describe-AXV2EEX3.mjs} +21 -21
- package/dist/cli/describe-core.d.mts +13 -2
- package/dist/cli/describe-core.d.ts +13 -2
- package/dist/cli/describe-core.js +4 -4
- package/dist/cli/describe-core.mjs +3 -3
- package/dist/cli/{executions-VOJN4NPF.js → executions-5H2RIWZ3.js} +8 -8
- package/dist/cli/{executions-6F3PLVCR.mjs → executions-THP5ZDBQ.mjs} +6 -6
- package/dist/cli/{feedback-BP5G27DT.mjs → feedback-2EJPILGE.mjs} +6 -6
- package/dist/cli/{feedback-5N7GKSMC.js → feedback-UOI6UEGA.js} +14 -14
- package/dist/cli/git-2OPYEPYW.js +26 -0
- package/dist/cli/{git-FHNCP7QA.mjs → git-DI3LJIAT.mjs} +5 -5
- package/dist/cli/index.js +152 -148
- package/dist/cli/index.mjs +51 -47
- package/dist/cli/{integrations-KKCEEWDU.mjs → integrations-DJYS5VRK.mjs} +7 -7
- package/dist/cli/{integrations-JZV55BZT.js → integrations-TYN2BSQ6.js} +29 -29
- package/dist/cli/{legacy-noops-OVOHF47E.js → legacy-noops-GXQHNLGJ.js} +9 -9
- package/dist/cli/{legacy-noops-YOPWDLRG.mjs → legacy-noops-Z457BB6O.mjs} +6 -6
- package/dist/cli/{mcp-SJAXFYTI.mjs → mcp-NAW3GFNN.mjs} +4 -4
- package/dist/cli/{mcp-F2XGBA6W.js → mcp-WMBOOTQL.js} +24 -24
- package/dist/cli/{monitors-PFH3FQLD.mjs → monitors-A7NYAXSJ.mjs} +7 -7
- package/dist/cli/{monitors-RQRNQRYB.js → monitors-OOQVE7XR.js} +100 -100
- package/dist/cli/{org-PZC6SUZD.mjs → org-7YCDUSZE.mjs} +6 -6
- package/dist/cli/{org-WPOEKMTG.js → org-D2AMIVBS.js} +121 -121
- package/dist/cli/{outcomes-EXOCNHOC.js → outcomes-2FKZDJSQ.js} +17 -15
- package/dist/cli/{outcomes-ZS7XD3KQ.mjs → outcomes-TNTKCUEO.mjs} +9 -7
- package/dist/cli/{play-UKSRFVIU.mjs → play-L6CVHSN4.mjs} +88 -33
- package/dist/cli/{play-JS2TEEE7.js → play-NWKHCHVZ.js} +393 -338
- package/dist/cli/{providers-U6IODPMJ.mjs → providers-22LO747B.mjs} +6 -6
- package/dist/cli/{providers-3U4MWBLU.js → providers-PZGOI5CN.js} +9 -9
- package/dist/cli/{quickstart-G5QN5CUE.mjs → quickstart-3ZRVKGMH.mjs} +4 -4
- package/dist/cli/{quickstart-SHBAEDX6.js → quickstart-LLWOC2GR.js} +6 -6
- package/dist/cli/{run-3ZOJ6V7C.mjs → run-D46W2GUA.mjs} +48 -27
- package/dist/cli/{run-SZRKNLUT.js → run-SNF23STR.js} +70 -49
- package/dist/cli/search-H57MZPLF.js +32 -0
- package/dist/cli/{search-2VX5WNMJ.mjs → search-XWVCICIX.mjs} +7 -7
- package/dist/cli/{search-output-WGDHYYHX.js → search-output-36GHD67U.js} +12 -9
- package/dist/cli/{search-output-U5N2O6IA.mjs → search-output-YM5QXFQQ.mjs} +9 -6
- package/dist/cli/{secrets-SQKP5ILO.mjs → secrets-7PTZEFRC.mjs} +6 -6
- package/dist/cli/{secrets-UITJOGVQ.js → secrets-UXCIHG5I.js} +15 -15
- package/dist/cli/{sessions-LSXO2OKX.mjs → sessions-DTXJKRP4.mjs} +6 -6
- package/dist/cli/sessions-JJZMQSH4.js +23 -0
- package/dist/cli/{settings-YGYRDPOK.mjs → settings-74B6UOS4.mjs} +12 -12
- package/dist/cli/{settings-VZI675JG.js → settings-EYSDZE37.js} +85 -85
- package/dist/cli/{setup-GXGXRWKN.mjs → setup-2QRZ36CH.mjs} +9 -9
- package/dist/cli/{setup-OJ33NOWK.js → setup-E7PVXBPL.js} +49 -49
- package/dist/cli/{skills-3VDYIFAX.mjs → skills-2WZ7N3UW.mjs} +7 -7
- package/dist/cli/skills-RIF2DCZI.js +37 -0
- package/dist/cli/tools-7VRQ4GSI.js +57 -0
- package/dist/cli/{tools-3TKEGDBP.mjs → tools-YK5SCUZD.mjs} +19 -19
- package/dist/cli/{update-K6A4QXTC.mjs → update-563YQK53.mjs} +9 -9
- package/dist/cli/update-CMZAIAES.js +37 -0
- package/dist/cli/{views-2PPIVWDK.mjs → views-ISNCRZUP.mjs} +6 -6
- package/dist/cli/{views-SGGO77XS.js → views-OLPS6TPG.js} +21 -21
- package/dist/cli/{workflow-JTG6QEFO.mjs → workflow-B3ZKU3OR.mjs} +7 -7
- package/dist/cli/{workflow-YSFOOTPB.js → workflow-CUSCTYMW.js} +17 -17
- package/dist/{client-DCnExziW.d.ts → client-BrdMPFCM.d.ts} +1 -1
- package/dist/{client-ClJlqkKt.d.mts → client-CF-bsrtI.d.mts} +1 -1
- package/dist/{client-core-DAOPQnGD.d.mts → client-core-DM1ZedOG.d.mts} +8 -0
- package/dist/{client-core-BKq5ZNAl.d.ts → client-core-rMoUWSYM.d.ts} +8 -0
- package/dist/index.d.mts +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/index.js +9 -9
- package/dist/index.mjs +6 -6
- package/dist/install-integrity.json +128 -126
- package/dist/plays/play-description.d.mts +1 -1
- package/dist/plays/play-description.d.ts +1 -1
- package/dist/plays/run-request.d.mts +1 -1
- package/dist/plays/run-request.d.ts +1 -1
- package/dist/release.d.mts +1 -1
- package/dist/release.d.ts +1 -1
- package/dist/release.js +2 -2
- package/dist/release.mjs +1 -1
- package/dist/server.d.mts +2 -2
- package/dist/server.d.ts +2 -2
- package/dist/server.js +5 -5
- package/dist/server.mjs +3 -3
- package/package.json +1 -1
- package/dist/cli/auth-DGR7ZQJL.js +0 -44
- package/dist/cli/concurrent-runs-help-HEIDXAM2.js +0 -22
- package/dist/cli/describe-LBU4I6SU.js +0 -50
- package/dist/cli/git-JUSPUUOH.js +0 -26
- package/dist/cli/search-TAFMLK4K.js +0 -32
- package/dist/cli/sessions-RA6FBIHJ.js +0 -23
- package/dist/cli/skills-J5QVWKLQ.js +0 -37
- package/dist/cli/tools-3PQXQGXL.js +0 -57
- package/dist/cli/update-CA3DZ75E.js +0 -37
- /package/dist/cli/{chunk-2RIKOPIM.mjs → chunk-HECXJBED.mjs} +0 -0
- /package/dist/cli/{chunk-H4ALLC2X.js → chunk-TJCENACZ.js} +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
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
|
-
${
|
|
455
|
+
${_chunkTJCENACZjs.PRICING_PAGE_NOTE}
|
|
456
456
|
Cost:
|
|
457
457
|
Free to check.
|
|
458
458
|
[[cli:
|
|
@@ -636,7 +636,9 @@ Input:
|
|
|
636
636
|
--input-file input.json. A play that reads a CSV takes its path:
|
|
637
637
|
--input '{"csv":"leads.csv"}'. -e '<code>' runs code as a play body.
|
|
638
638
|
<play>@latest runs the newest revision; deepline/<id> runs Deepline's
|
|
639
|
-
version when your org has one with the same name.
|
|
639
|
+
version when your org has one with the same name. --example <name> starts
|
|
640
|
+
from a named example input the play declares (describe lists them);
|
|
641
|
+
--input fields replace the example's.
|
|
640
642
|
Examples:
|
|
641
643
|
deepline run hunter_email_verifier --input '{"email":"a@b.com"}'
|
|
642
644
|
deepline run person-to-email-batch --input '{"csv":"leads.csv"}' --dry-run
|
|
@@ -1075,7 +1077,12 @@ Input:
|
|
|
1075
1077
|
[[cli:
|
|
1076
1078
|
Output (JSON):
|
|
1077
1079
|
Bare: one entry per category with its tool count. With a category: one row
|
|
1078
|
-
per tool with required inputs and a pricing hint.
|
|
1080
|
+
per tool with required inputs and a pricing hint in Deepline credits. A tool
|
|
1081
|
+
that runs on your own provider key (one you connected, or one the tool
|
|
1082
|
+
requires) shows "0 (your key)": no Deepline charge. JSON keeps billingSource
|
|
1083
|
+
own_provider_credentials (free when the tool is free on Deepline) and
|
|
1084
|
+
billingSourceLabel "your key". An unconnected one also says it needs a
|
|
1085
|
+
connection. Never truncated.
|
|
1079
1086
|
]]
|
|
1080
1087
|
Cost:
|
|
1081
1088
|
Free.
|
|
@@ -1786,7 +1793,7 @@ Concurrency:
|
|
|
1786
1793
|
deepline billing entitlements shows this org's plan and limit and
|
|
1787
1794
|
every plan's limit; this help prints them too when you are signed in.
|
|
1788
1795
|
]]
|
|
1789
|
-
${
|
|
1796
|
+
${_chunkTJCENACZjs.PRICING_PAGE_NOTE}
|
|
1790
1797
|
Cost:
|
|
1791
1798
|
Spends Deepline credits through the play's tool calls. Validation errors
|
|
1792
1799
|
(missing column, bad input) fail before any spend.
|
|
@@ -2037,7 +2044,7 @@ Concurrency:
|
|
|
2037
2044
|
deepline billing entitlements shows this org's plan and limit and
|
|
2038
2045
|
every plan's limit; this help prints them too when you are signed in.
|
|
2039
2046
|
]]
|
|
2040
|
-
${
|
|
2047
|
+
${_chunkTJCENACZjs.PRICING_PAGE_NOTE}
|
|
2041
2048
|
Cost:
|
|
2042
2049
|
Free.
|
|
2043
2050
|
Avoid:
|
|
@@ -4267,6 +4274,170 @@ Errors (code):
|
|
|
4267
4274
|
name_invalid, play_invalid, input_invalid, forbidden, views_not_enabled.
|
|
4268
4275
|
Cost:
|
|
4269
4276
|
Free.
|
|
4277
|
+
`
|
|
4278
|
+
},
|
|
4279
|
+
agents: {
|
|
4280
|
+
rolloutFeature: "agent",
|
|
4281
|
+
core: `
|
|
4282
|
+
Purpose:
|
|
4283
|
+
Deepline agents in Slack. Members create agents, each with instructions and
|
|
4284
|
+
skills from the workspace's skill library, and bind Slack channels to them.
|
|
4285
|
+
An agent answers @mentions in its channels and works in this workspace
|
|
4286
|
+
through the shared deepline-agent service account (role member), the way your
|
|
4287
|
+
own coding agent works with Deepline.
|
|
4288
|
+
Set up once (owners and admins):
|
|
4289
|
+
1. Turn agents on: [[agents enable]]. The first run creates the service
|
|
4290
|
+
account. Run it again to give an account made with the run role the
|
|
4291
|
+
member role, which writing to an outcome needs. [[agents disable]]
|
|
4292
|
+
turns every agent off.
|
|
4293
|
+
2. Set the model key every agent runs on: [[agents billing set]] reads an
|
|
4294
|
+
OpenAI or Anthropic API key from piped stdin (deepline agents billing
|
|
4295
|
+
set < key.txt) or a hidden prompt. An sk-ant- key is Anthropic's; pass
|
|
4296
|
+
--provider openai|anthropic to say so outright. With an OpenAI key the
|
|
4297
|
+
agents run on gpt-6.1-sol, with an Anthropic key on claude-opus-5-5. It
|
|
4298
|
+
is stored encrypted and never shown again; setting another key replaces
|
|
4299
|
+
it. Admins can also set it on the Integrations page.
|
|
4300
|
+
3. Add the agent to your Slack workspace: [[agents slack install]] prints
|
|
4301
|
+
an "Add to Slack" link. Open it in a browser signed in to Deepline as
|
|
4302
|
+
you, pick the Slack workspace and approve; the link works once, for 15
|
|
4303
|
+
minutes, and only for you. The agent posts under this workspace's
|
|
4304
|
+
logo (a panda if it has none); a Slack workspace installed before
|
|
4305
|
+
that needs installing again. Each Slack workspace gets its own
|
|
4306
|
+
bot token, stored encrypted, and only this workspace's channels answer
|
|
4307
|
+
there. A Slack workspace already connected to another Deepline
|
|
4308
|
+
workspace is refused. [[agents slack status]] lists where the agent is
|
|
4309
|
+
installed. Removing the app in Slack takes it out of that Slack
|
|
4310
|
+
workspace; installing again brings its channels back.
|
|
4311
|
+
Make an agent (members with the run grant):
|
|
4312
|
+
1. Optionally add skills to the library:
|
|
4313
|
+
[[agents skills set icp --file SKILL.md]]. A skill is markdown with a
|
|
4314
|
+
description of when to load it (frontmatter or --description). Any
|
|
4315
|
+
agent may use it; replacing it changes every agent that does.
|
|
4316
|
+
2. Create the agent: [[agents create pipeline --instructions "Answer pipeline questions" --skills icp]].
|
|
4317
|
+
Instructions say what it does and never does (at most 8,000
|
|
4318
|
+
characters); at most 10 skills.
|
|
4319
|
+
3. Invite the agent's Slack app to a channel, then bind it:
|
|
4320
|
+
[[agents channels add pipeline C0123456789]]. A channel answers with one
|
|
4321
|
+
agent; to move it, remove it first.
|
|
4322
|
+
4. Try it without Slack: [[agents test C0123456789 "who are our top accounts?"]]
|
|
4323
|
+
or [[agents chat C0123456789]]. To play several people in one thread,
|
|
4324
|
+
name each with --as:
|
|
4325
|
+
[[agents test C0123456789 "narrow that to HubSpot users" --thread <id> --as priya]].
|
|
4326
|
+
Only an agent's or skill's creator, or an admin, changes or deletes it:
|
|
4327
|
+
[[agents update pipeline --skills icp,territories]], [[agents delete pipeline]],
|
|
4328
|
+
[[agents channels remove C0123456789]], [[agents skills delete icp]].
|
|
4329
|
+
Models:
|
|
4330
|
+
One key serves every agent, so your agents run on the models of that
|
|
4331
|
+
key's provider. An agent runs on the provider's default unless it is given
|
|
4332
|
+
a model, and a channel runs on its agent's model unless it is given its
|
|
4333
|
+
own. [[agents models]] lists the models and which your workspace's key can
|
|
4334
|
+
run. A model of the other provider is refused.
|
|
4335
|
+
- An agent's model, everywhere it answers: [[agents update pipeline --model sonnet]]
|
|
4336
|
+
("default" returns it to the default).
|
|
4337
|
+
- One channel's model: [[agents channels set C0123456789 --model opus]]
|
|
4338
|
+
("default" follows the agent again). Anyone the agent answers in a
|
|
4339
|
+
channel can also ask it there ("switch to Sonnet"): that changes that
|
|
4340
|
+
channel only, and Deepline keeps who asked.
|
|
4341
|
+
The next step the agent takes runs on the new model.
|
|
4342
|
+
Outcomes (needs the outcomes rollout):
|
|
4343
|
+
An agent can work toward an outcome in a channel:
|
|
4344
|
+
[[agents channels add pipeline C0123456789 --outcome enrichment-coverage]],
|
|
4345
|
+
or on a channel already bound,
|
|
4346
|
+
[[agents channels set C0123456789 --outcome enrichment-coverage]]. The
|
|
4347
|
+
channel becomes the outcome's home, one per outcome. The agent joins the
|
|
4348
|
+
outcome under its own name, says in the channel what it is working toward,
|
|
4349
|
+
reads the outcome when a turn starts and writes what matters back to it.
|
|
4350
|
+
Between mentions it is woken there when something on the outcome concerns
|
|
4351
|
+
it: a schedule it set firing, a task made for it, an ask a person answered.
|
|
4352
|
+
--linked binds one more channel to the same outcome: the agent answers
|
|
4353
|
+
there with the outcome in view and is woken only in the home channel.
|
|
4354
|
+
[[agents channels set C0123456789 --no-outcome]] takes the outcome off.
|
|
4355
|
+
You need member access to the outcome, and so does the agent: an admin
|
|
4356
|
+
raises the agents' service account once, with
|
|
4357
|
+
[[org service-accounts set-role <service-account-id> member]] (the id is in
|
|
4358
|
+
[[org service-accounts list]]). Until then attaching says so and changes
|
|
4359
|
+
nothing on the outcome.
|
|
4360
|
+
A paused outcome still wakes its agent when something reaches it; the
|
|
4361
|
+
agent is told the outcome is paused and decides what is worth doing.
|
|
4362
|
+
From Slack:
|
|
4363
|
+
Inviting the agent's app to a channel no agent answers in, or mentioning
|
|
4364
|
+
it there, posts a card that asks which outcome the channel is for. Picking
|
|
4365
|
+
one and pressing Connect does what channels add --outcome does: the channel
|
|
4366
|
+
becomes the outcome's home, or a linked channel when the outcome has a
|
|
4367
|
+
home already. "Only answer questions" binds the channel with no outcome.
|
|
4368
|
+
When the agent needs a person to decide, it opens an ask on the outcome
|
|
4369
|
+
and the ask appears in the channel with a button for each option. A click
|
|
4370
|
+
answers the ask on the outcome, the same as [[outcomes asks answer]].
|
|
4371
|
+
Both are done as a Deepline member, so the first click shows you, alone,
|
|
4372
|
+
a link that says which member you are. Open it signed in to Deepline, or
|
|
4373
|
+
pass it to [[agents slack link <code>]]; [[agents slack unlink]] forgets
|
|
4374
|
+
it. Your grants are read at each click: connecting needs the run grant,
|
|
4375
|
+
an outcome and answering an ask need member access.
|
|
4376
|
+
Feedback:
|
|
4377
|
+
Each answer the agent posts in Slack carries Helpful / Not helpful buttons.
|
|
4378
|
+
[[agents feedback]] lists the ratings, newest first; --agent pipeline keeps
|
|
4379
|
+
one agent's, --limit sets the page size (at most 100) and --cursor reads
|
|
4380
|
+
the next page, with the same --agent. A cursor the list did not print
|
|
4381
|
+
exits 2. A person's later click replaces their rating.
|
|
4382
|
+
Replies:
|
|
4383
|
+
Each turn the agent finishes in Slack is recorded: its channel and
|
|
4384
|
+
thread, how it ended, how long it took, its tool calls and tokens, never
|
|
4385
|
+
the message text or who asked. [[agents replies]] lists them newest first,
|
|
4386
|
+
with each reply's ratings; it takes --agent, --limit (at most 100) and
|
|
4387
|
+
--cursor as feedback does. [[agents activity]] sums each agent's last
|
|
4388
|
+
7 days.
|
|
4389
|
+
Direct messages:
|
|
4390
|
+
The agent works only in its channels. A direct message to it gets a reply
|
|
4391
|
+
naming the channels where it answers.
|
|
4392
|
+
Confirmations:
|
|
4393
|
+
When a Deepline tool spends credits or changes data, the agent says what
|
|
4394
|
+
will run and the expected credits, and goes ahead once you say so in the
|
|
4395
|
+
thread. Only the person whose mention started the turn answers the
|
|
4396
|
+
agent's questions, with the buttons or in words; anyone else who clicks
|
|
4397
|
+
is told who can.
|
|
4398
|
+
Output (JSON):
|
|
4399
|
+
list prints workspace {lifecycle, billing {provider (openai, anthropic),
|
|
4400
|
+
keyLast4} or null} (null before
|
|
4401
|
+
enable), agents[] {name, instructions, skillNames, model (null: the
|
|
4402
|
+
default), ownerUserId, updatedByUserId, conversations[] {platform,
|
|
4403
|
+
conversationId, conversationName, createdByUserId, createdAt, model (null:
|
|
4404
|
+
its agent's), outcome {slug, role (home, linked), agentKey, watching} or
|
|
4405
|
+
null}} and skills[] {name, description, markdownLength}. get, create,
|
|
4406
|
+
update and channels add print agent; created, changed or removed says
|
|
4407
|
+
whether anything changed. models prints default and models[] {id, label,
|
|
4408
|
+
provider, aliases, available}. channels set prints model {model {id,
|
|
4409
|
+
label, provider}, from (conversation, agent), changed} and outcome
|
|
4410
|
+
{changed, agentName, conversation, woken}; channels add --outcome prints
|
|
4411
|
+
that outcome too.
|
|
4412
|
+
feedback prints feedback[] {agentName (null once deleted), platform,
|
|
4413
|
+
conversationId, conversationName, threadTs, messageTs, raterId, rating
|
|
4414
|
+
(helpful, not_helpful), updatedAt} and cursor (null on the last page).
|
|
4415
|
+
replies prints replies[] {id, agentName, platform, conversationId,
|
|
4416
|
+
conversationName, threadTs, outcome (completed, failed, cancelled),
|
|
4417
|
+
durationMs, toolCalls, inputTokens, outputTokens, finishedAt, ratings
|
|
4418
|
+
(null when no buttons were posted; {counted: true, helpful, notHelpful};
|
|
4419
|
+
or {counted: false} past 100 ratings)} and cursor. activity prints days,
|
|
4420
|
+
since, readLimit and agents[] {agentName, lastReplyAt, window {replies,
|
|
4421
|
+
failed, cancelled, perDay[] (oldest day first), medianDurationMs,
|
|
4422
|
+
inputTokens, outputTokens}, or window null past readLimit replies}.
|
|
4423
|
+
test prints threadId, status (replied, awaiting_answer, failed), reply,
|
|
4424
|
+
question {prompt, options} and error; failed exits 5. Answer a question
|
|
4425
|
+
with test on the same --thread, sending an option or your own answer.
|
|
4426
|
+
slack install prints installUrl, redirectUri, scopes and expiresAt. slack
|
|
4427
|
+
status prints installations[] {teamId, teamName, status (installed,
|
|
4428
|
+
uninstalled), scopes, installedAt, installedByUserId, uninstalledAt,
|
|
4429
|
+
uninstallReason (app_uninstalled, tokens_revoked)}; never a token.
|
|
4430
|
+
slack link prints linked, created, slackTeamId and slackUserId; slack
|
|
4431
|
+
unlink prints removed.
|
|
4432
|
+
Cost:
|
|
4433
|
+
Model calls are billed to the workspace's OpenAI or Anthropic key, never
|
|
4434
|
+
to Deepline credits. Tools an agent calls spend Deepline credits as they
|
|
4435
|
+
would for you. A turn an outcome wakes the agent for is a turn like any
|
|
4436
|
+
other.
|
|
4437
|
+
Avoid:
|
|
4438
|
+
Do not pass the model key as an argument; it is refused. Do not bind a
|
|
4439
|
+
channel the agent's Slack app is not in, or one in a Slack workspace this
|
|
4440
|
+
workspace has not installed it in; both are refused.
|
|
4270
4441
|
`
|
|
4271
4442
|
},
|
|
4272
4443
|
"sessions send": {
|
|
@@ -2,7 +2,7 @@ import {
|
|
|
2
2
|
rateLimitSummary,
|
|
3
3
|
schemaField,
|
|
4
4
|
schemaFields
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-FYKHAT2F.mjs";
|
|
6
6
|
import {
|
|
7
7
|
exampleInputFileLine,
|
|
8
8
|
exampleJsonInput,
|
|
@@ -468,8 +468,9 @@ function describedTool(tool, requestedToolId) {
|
|
|
468
468
|
description,
|
|
469
469
|
cost: [
|
|
470
470
|
stringField(cost, "displayText"),
|
|
471
|
-
// "Free (free)" says the same thing twice
|
|
472
|
-
|
|
471
|
+
// "Free (free)" says the same thing twice, as does "Uses your provided
|
|
472
|
+
// key. No Deepline charge. (your key)".
|
|
473
|
+
stringField(cost, "billingSource") === "own_provider_credentials" || billing.toLowerCase() === stringField(cost, "displayText").toLowerCase() || billing === "your key" ? "" : billing && `(${billing})`,
|
|
473
474
|
observedMaxText(cost) && `\u2014 ${observedMaxText(cost)}`
|
|
474
475
|
].filter(Boolean).join(" ") || void 0,
|
|
475
476
|
guidance: [
|
|
@@ -2,14 +2,14 @@ import {
|
|
|
2
2
|
SCHEMA_LINE_LIMIT,
|
|
3
3
|
fieldBlockLines,
|
|
4
4
|
schemaFields
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-FYKHAT2F.mjs";
|
|
6
6
|
import {
|
|
7
7
|
csvSafeJsonString,
|
|
8
8
|
csvStringFromRows,
|
|
9
9
|
formatCliFailureDiagnostic,
|
|
10
10
|
markJsonOutputHandled,
|
|
11
11
|
writeRawStderr
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-X47J55ZJ.mjs";
|
|
13
13
|
|
|
14
14
|
// src/cli/describe-options.ts
|
|
15
15
|
function addDescribeOptions(command, options = {}) {
|
|
@@ -4,14 +4,14 @@
|
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkAO56MZ7Djs = require('./chunk-AO56MZ7D.js');
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
|
|
14
|
-
var
|
|
14
|
+
var _chunkKNCNFL76js = require('./chunk-KNCNFL76.js');
|
|
15
15
|
|
|
16
16
|
|
|
17
17
|
|
|
@@ -331,7 +331,7 @@ function buildEnvironmentContext() {
|
|
|
331
331
|
node_version: process.version,
|
|
332
332
|
runtime: "Node.js",
|
|
333
333
|
hostname: _os.hostname.call(void 0, ),
|
|
334
|
-
agent_runtime:
|
|
334
|
+
agent_runtime: _chunkKNCNFL76js.detectAgentRuntime.call(void 0, )
|
|
335
335
|
};
|
|
336
336
|
for (const key of ["CLAUDE_CODE_REMOTE", "DEEPLINE_PLUGIN_MODE"]) {
|
|
337
337
|
const normalized = _optionalChain([process, 'access', _6 => _6.env, 'access', _7 => _7[key], 'optionalAccess', _8 => _8.trim, 'call', _9 => _9()]);
|
|
@@ -352,18 +352,18 @@ function buildEnvironmentContext() {
|
|
|
352
352
|
return context;
|
|
353
353
|
}
|
|
354
354
|
function failureReportHeaders(apiKey) {
|
|
355
|
-
const agentSessionId =
|
|
355
|
+
const agentSessionId = _chunkKNCNFL76js.agentSessionIdFromEnvironment.call(void 0, );
|
|
356
356
|
return {
|
|
357
|
-
...
|
|
357
|
+
..._chunkKNCNFL76js.deploymentProtectionHeaders.call(void 0, ),
|
|
358
358
|
...agentSessionId ? { "X-Deepline-Agent-Session-Id": agentSessionId } : {},
|
|
359
359
|
Authorization: `Bearer ${apiKey}`,
|
|
360
360
|
"Content-Type": "application/json",
|
|
361
|
-
"User-Agent": `deepline-ts-sdk/${
|
|
361
|
+
"User-Agent": `deepline-ts-sdk/${_chunkKNCNFL76js.SDK_VERSION}`,
|
|
362
362
|
"X-Deepline-Client-Family": "sdk",
|
|
363
363
|
"X-Deepline-CLI-Family": "sdk",
|
|
364
|
-
"X-Deepline-Agent-Runtime":
|
|
365
|
-
"X-Deepline-CLI-Version":
|
|
366
|
-
"X-Deepline-SDK-Version":
|
|
364
|
+
"X-Deepline-Agent-Runtime": _chunkKNCNFL76js.detectAgentRuntime.call(void 0, ),
|
|
365
|
+
"X-Deepline-CLI-Version": _chunkKNCNFL76js.SDK_VERSION,
|
|
366
|
+
"X-Deepline-SDK-Version": _chunkKNCNFL76js.SDK_VERSION
|
|
367
367
|
};
|
|
368
368
|
}
|
|
369
369
|
async function postFailureReport(input) {
|
|
@@ -391,7 +391,7 @@ async function maybeReportAutomaticSkillsSyncFailure(input) {
|
|
|
391
391
|
if (isFailureReportingDisabled()) return false;
|
|
392
392
|
let apiKey = "";
|
|
393
393
|
try {
|
|
394
|
-
apiKey =
|
|
394
|
+
apiKey = _chunkAO56MZ7Djs.resolveApiKeyForBaseUrl.call(void 0, input.baseUrl);
|
|
395
395
|
} catch (e2) {
|
|
396
396
|
return false;
|
|
397
397
|
}
|
|
@@ -418,7 +418,7 @@ async function maybeReportAutomaticSkillsSyncFailure(input) {
|
|
|
418
418
|
failure_code: failureCode2,
|
|
419
419
|
failure_stage: failureStage,
|
|
420
420
|
error_body: "Automatic Deepline skills installation failed.",
|
|
421
|
-
cli_version:
|
|
421
|
+
cli_version: _chunkKNCNFL76js.SDK_VERSION,
|
|
422
422
|
context: {
|
|
423
423
|
environment: buildEnvironmentContext(),
|
|
424
424
|
skills_sync: {
|
|
@@ -538,7 +538,7 @@ function buildFailureReport(input) {
|
|
|
538
538
|
failure_kind: failureKind,
|
|
539
539
|
failure_code: code,
|
|
540
540
|
failure_stage: input.error === void 0 ? "command_exit" : "cli_main",
|
|
541
|
-
cli_version:
|
|
541
|
+
cli_version: _chunkKNCNFL76js.SDK_VERSION,
|
|
542
542
|
context: {
|
|
543
543
|
base_url: redactFailureText(input.baseUrl, 400),
|
|
544
544
|
command_summary: sanitizeCommand(input.argv),
|
|
@@ -558,8 +558,8 @@ async function maybeReportSdkCliFailure(input) {
|
|
|
558
558
|
if (isServerLoggedPlayRunStartFailure(input)) return false;
|
|
559
559
|
const exitCode = resolvedExitCode(input);
|
|
560
560
|
if (!shouldReport({ exitCode, error: input.error })) return false;
|
|
561
|
-
const baseUrl =
|
|
562
|
-
const apiKey =
|
|
561
|
+
const baseUrl = _chunkAO56MZ7Djs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
|
|
562
|
+
const apiKey = _chunkAO56MZ7Djs.resolveApiKeyForBaseUrl.call(void 0, baseUrl);
|
|
563
563
|
if (!apiKey) return false;
|
|
564
564
|
return postFailureReport({
|
|
565
565
|
baseUrl,
|
|
@@ -914,8 +914,8 @@ var BROWSER_OPEN_COOLDOWN_MS = 3e4;
|
|
|
914
914
|
var SAME_URL_BROWSER_OPEN_COOLDOWN_MS = 5 * 6e4;
|
|
915
915
|
var defaultBrowserCommandRunner = childProcess;
|
|
916
916
|
function getAuthedHttpClient() {
|
|
917
|
-
const config =
|
|
918
|
-
return { config, http: new (0,
|
|
917
|
+
const config = _chunkAO56MZ7Djs.resolveConfig.call(void 0, );
|
|
918
|
+
return { config, http: new (0, _chunkAO56MZ7Djs.HttpClient)(config) };
|
|
919
919
|
}
|
|
920
920
|
function stableOsUserId() {
|
|
921
921
|
try {
|
|
@@ -1256,7 +1256,7 @@ function collectLocalEnvInfo() {
|
|
|
1256
1256
|
os: `${process.platform} ${process.arch}`,
|
|
1257
1257
|
node_version: process.version,
|
|
1258
1258
|
home_dir: homeDir,
|
|
1259
|
-
agent_runtime:
|
|
1259
|
+
agent_runtime: _chunkKNCNFL76js.detectAgentRuntime.call(void 0, )
|
|
1260
1260
|
};
|
|
1261
1261
|
const env = process.env;
|
|
1262
1262
|
const optional = {
|
|
@@ -1503,9 +1503,9 @@ function markdownTableFromRows(rows, preferredColumns = []) {
|
|
|
1503
1503
|
}
|
|
1504
1504
|
function withAgentCommandContext(value) {
|
|
1505
1505
|
const valueRecord = value !== null && typeof value === "object" && !Array.isArray(value) ? value : null;
|
|
1506
|
-
return
|
|
1506
|
+
return _chunkKNCNFL76js.detectAgentRuntime.call(void 0, ) !== "unknown" && valueRecord && !Object.prototype.hasOwnProperty.call(valueRecord, "command_context") ? {
|
|
1507
1507
|
...valueRecord,
|
|
1508
|
-
command_context:
|
|
1508
|
+
command_context: _chunkAO56MZ7Djs.resolveCliCommandContext.call(void 0, )
|
|
1509
1509
|
} : value;
|
|
1510
1510
|
}
|
|
1511
1511
|
function printJson(value, fields, options = {}) {
|
|
@@ -1677,7 +1677,7 @@ function errorToJsonPayload(error) {
|
|
|
1677
1677
|
...upstreamResponse ? { upstreamResponse } : {},
|
|
1678
1678
|
...Object.keys(details).length > 0 ? { details } : {}
|
|
1679
1679
|
};
|
|
1680
|
-
const retry = cliRetryGuidance(payloadError,
|
|
1680
|
+
const retry = cliRetryGuidance(payloadError, _chunkKNCNFL76js.readToolFailureHint.call(void 0, error));
|
|
1681
1681
|
return {
|
|
1682
1682
|
ok: false,
|
|
1683
1683
|
status: "failed",
|
|
@@ -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
|
|
3
|
+
var _chunkEV3OPDHFjs = require('./chunk-EV3OPDHF.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 && !
|
|
22
|
+
this.enabled = enabled && !_chunkEV3OPDHFjs.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 (
|
|
62
|
+
if (_chunkEV3OPDHFjs.isJsonOutputMode.call(void 0, )) return;
|
|
63
63
|
if (!this.enabled) {
|
|
64
64
|
process.stderr.write(`${line}
|
|
65
65
|
`);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
PRICING_PAGE_NOTE
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-HECXJBED.mjs";
|
|
4
4
|
import {
|
|
5
5
|
PLAY_SANDBOX_COMPUTE_RATE_MULTIPLIERS
|
|
6
6
|
} from "./chunk-LRZGS6RZ.mjs";
|
|
@@ -636,7 +636,9 @@ Input:
|
|
|
636
636
|
--input-file input.json. A play that reads a CSV takes its path:
|
|
637
637
|
--input '{"csv":"leads.csv"}'. -e '<code>' runs code as a play body.
|
|
638
638
|
<play>@latest runs the newest revision; deepline/<id> runs Deepline's
|
|
639
|
-
version when your org has one with the same name.
|
|
639
|
+
version when your org has one with the same name. --example <name> starts
|
|
640
|
+
from a named example input the play declares (describe lists them);
|
|
641
|
+
--input fields replace the example's.
|
|
640
642
|
Examples:
|
|
641
643
|
deepline run hunter_email_verifier --input '{"email":"a@b.com"}'
|
|
642
644
|
deepline run person-to-email-batch --input '{"csv":"leads.csv"}' --dry-run
|
|
@@ -1075,7 +1077,12 @@ Input:
|
|
|
1075
1077
|
[[cli:
|
|
1076
1078
|
Output (JSON):
|
|
1077
1079
|
Bare: one entry per category with its tool count. With a category: one row
|
|
1078
|
-
per tool with required inputs and a pricing hint.
|
|
1080
|
+
per tool with required inputs and a pricing hint in Deepline credits. A tool
|
|
1081
|
+
that runs on your own provider key (one you connected, or one the tool
|
|
1082
|
+
requires) shows "0 (your key)": no Deepline charge. JSON keeps billingSource
|
|
1083
|
+
own_provider_credentials (free when the tool is free on Deepline) and
|
|
1084
|
+
billingSourceLabel "your key". An unconnected one also says it needs a
|
|
1085
|
+
connection. Never truncated.
|
|
1079
1086
|
]]
|
|
1080
1087
|
Cost:
|
|
1081
1088
|
Free.
|
|
@@ -4267,6 +4274,170 @@ Errors (code):
|
|
|
4267
4274
|
name_invalid, play_invalid, input_invalid, forbidden, views_not_enabled.
|
|
4268
4275
|
Cost:
|
|
4269
4276
|
Free.
|
|
4277
|
+
`
|
|
4278
|
+
},
|
|
4279
|
+
agents: {
|
|
4280
|
+
rolloutFeature: "agent",
|
|
4281
|
+
core: `
|
|
4282
|
+
Purpose:
|
|
4283
|
+
Deepline agents in Slack. Members create agents, each with instructions and
|
|
4284
|
+
skills from the workspace's skill library, and bind Slack channels to them.
|
|
4285
|
+
An agent answers @mentions in its channels and works in this workspace
|
|
4286
|
+
through the shared deepline-agent service account (role member), the way your
|
|
4287
|
+
own coding agent works with Deepline.
|
|
4288
|
+
Set up once (owners and admins):
|
|
4289
|
+
1. Turn agents on: [[agents enable]]. The first run creates the service
|
|
4290
|
+
account. Run it again to give an account made with the run role the
|
|
4291
|
+
member role, which writing to an outcome needs. [[agents disable]]
|
|
4292
|
+
turns every agent off.
|
|
4293
|
+
2. Set the model key every agent runs on: [[agents billing set]] reads an
|
|
4294
|
+
OpenAI or Anthropic API key from piped stdin (deepline agents billing
|
|
4295
|
+
set < key.txt) or a hidden prompt. An sk-ant- key is Anthropic's; pass
|
|
4296
|
+
--provider openai|anthropic to say so outright. With an OpenAI key the
|
|
4297
|
+
agents run on gpt-6.1-sol, with an Anthropic key on claude-opus-5-5. It
|
|
4298
|
+
is stored encrypted and never shown again; setting another key replaces
|
|
4299
|
+
it. Admins can also set it on the Integrations page.
|
|
4300
|
+
3. Add the agent to your Slack workspace: [[agents slack install]] prints
|
|
4301
|
+
an "Add to Slack" link. Open it in a browser signed in to Deepline as
|
|
4302
|
+
you, pick the Slack workspace and approve; the link works once, for 15
|
|
4303
|
+
minutes, and only for you. The agent posts under this workspace's
|
|
4304
|
+
logo (a panda if it has none); a Slack workspace installed before
|
|
4305
|
+
that needs installing again. Each Slack workspace gets its own
|
|
4306
|
+
bot token, stored encrypted, and only this workspace's channels answer
|
|
4307
|
+
there. A Slack workspace already connected to another Deepline
|
|
4308
|
+
workspace is refused. [[agents slack status]] lists where the agent is
|
|
4309
|
+
installed. Removing the app in Slack takes it out of that Slack
|
|
4310
|
+
workspace; installing again brings its channels back.
|
|
4311
|
+
Make an agent (members with the run grant):
|
|
4312
|
+
1. Optionally add skills to the library:
|
|
4313
|
+
[[agents skills set icp --file SKILL.md]]. A skill is markdown with a
|
|
4314
|
+
description of when to load it (frontmatter or --description). Any
|
|
4315
|
+
agent may use it; replacing it changes every agent that does.
|
|
4316
|
+
2. Create the agent: [[agents create pipeline --instructions "Answer pipeline questions" --skills icp]].
|
|
4317
|
+
Instructions say what it does and never does (at most 8,000
|
|
4318
|
+
characters); at most 10 skills.
|
|
4319
|
+
3. Invite the agent's Slack app to a channel, then bind it:
|
|
4320
|
+
[[agents channels add pipeline C0123456789]]. A channel answers with one
|
|
4321
|
+
agent; to move it, remove it first.
|
|
4322
|
+
4. Try it without Slack: [[agents test C0123456789 "who are our top accounts?"]]
|
|
4323
|
+
or [[agents chat C0123456789]]. To play several people in one thread,
|
|
4324
|
+
name each with --as:
|
|
4325
|
+
[[agents test C0123456789 "narrow that to HubSpot users" --thread <id> --as priya]].
|
|
4326
|
+
Only an agent's or skill's creator, or an admin, changes or deletes it:
|
|
4327
|
+
[[agents update pipeline --skills icp,territories]], [[agents delete pipeline]],
|
|
4328
|
+
[[agents channels remove C0123456789]], [[agents skills delete icp]].
|
|
4329
|
+
Models:
|
|
4330
|
+
One key serves every agent, so your agents run on the models of that
|
|
4331
|
+
key's provider. An agent runs on the provider's default unless it is given
|
|
4332
|
+
a model, and a channel runs on its agent's model unless it is given its
|
|
4333
|
+
own. [[agents models]] lists the models and which your workspace's key can
|
|
4334
|
+
run. A model of the other provider is refused.
|
|
4335
|
+
- An agent's model, everywhere it answers: [[agents update pipeline --model sonnet]]
|
|
4336
|
+
("default" returns it to the default).
|
|
4337
|
+
- One channel's model: [[agents channels set C0123456789 --model opus]]
|
|
4338
|
+
("default" follows the agent again). Anyone the agent answers in a
|
|
4339
|
+
channel can also ask it there ("switch to Sonnet"): that changes that
|
|
4340
|
+
channel only, and Deepline keeps who asked.
|
|
4341
|
+
The next step the agent takes runs on the new model.
|
|
4342
|
+
Outcomes (needs the outcomes rollout):
|
|
4343
|
+
An agent can work toward an outcome in a channel:
|
|
4344
|
+
[[agents channels add pipeline C0123456789 --outcome enrichment-coverage]],
|
|
4345
|
+
or on a channel already bound,
|
|
4346
|
+
[[agents channels set C0123456789 --outcome enrichment-coverage]]. The
|
|
4347
|
+
channel becomes the outcome's home, one per outcome. The agent joins the
|
|
4348
|
+
outcome under its own name, says in the channel what it is working toward,
|
|
4349
|
+
reads the outcome when a turn starts and writes what matters back to it.
|
|
4350
|
+
Between mentions it is woken there when something on the outcome concerns
|
|
4351
|
+
it: a schedule it set firing, a task made for it, an ask a person answered.
|
|
4352
|
+
--linked binds one more channel to the same outcome: the agent answers
|
|
4353
|
+
there with the outcome in view and is woken only in the home channel.
|
|
4354
|
+
[[agents channels set C0123456789 --no-outcome]] takes the outcome off.
|
|
4355
|
+
You need member access to the outcome, and so does the agent: an admin
|
|
4356
|
+
raises the agents' service account once, with
|
|
4357
|
+
[[org service-accounts set-role <service-account-id> member]] (the id is in
|
|
4358
|
+
[[org service-accounts list]]). Until then attaching says so and changes
|
|
4359
|
+
nothing on the outcome.
|
|
4360
|
+
A paused outcome still wakes its agent when something reaches it; the
|
|
4361
|
+
agent is told the outcome is paused and decides what is worth doing.
|
|
4362
|
+
From Slack:
|
|
4363
|
+
Inviting the agent's app to a channel no agent answers in, or mentioning
|
|
4364
|
+
it there, posts a card that asks which outcome the channel is for. Picking
|
|
4365
|
+
one and pressing Connect does what channels add --outcome does: the channel
|
|
4366
|
+
becomes the outcome's home, or a linked channel when the outcome has a
|
|
4367
|
+
home already. "Only answer questions" binds the channel with no outcome.
|
|
4368
|
+
When the agent needs a person to decide, it opens an ask on the outcome
|
|
4369
|
+
and the ask appears in the channel with a button for each option. A click
|
|
4370
|
+
answers the ask on the outcome, the same as [[outcomes asks answer]].
|
|
4371
|
+
Both are done as a Deepline member, so the first click shows you, alone,
|
|
4372
|
+
a link that says which member you are. Open it signed in to Deepline, or
|
|
4373
|
+
pass it to [[agents slack link <code>]]; [[agents slack unlink]] forgets
|
|
4374
|
+
it. Your grants are read at each click: connecting needs the run grant,
|
|
4375
|
+
an outcome and answering an ask need member access.
|
|
4376
|
+
Feedback:
|
|
4377
|
+
Each answer the agent posts in Slack carries Helpful / Not helpful buttons.
|
|
4378
|
+
[[agents feedback]] lists the ratings, newest first; --agent pipeline keeps
|
|
4379
|
+
one agent's, --limit sets the page size (at most 100) and --cursor reads
|
|
4380
|
+
the next page, with the same --agent. A cursor the list did not print
|
|
4381
|
+
exits 2. A person's later click replaces their rating.
|
|
4382
|
+
Replies:
|
|
4383
|
+
Each turn the agent finishes in Slack is recorded: its channel and
|
|
4384
|
+
thread, how it ended, how long it took, its tool calls and tokens, never
|
|
4385
|
+
the message text or who asked. [[agents replies]] lists them newest first,
|
|
4386
|
+
with each reply's ratings; it takes --agent, --limit (at most 100) and
|
|
4387
|
+
--cursor as feedback does. [[agents activity]] sums each agent's last
|
|
4388
|
+
7 days.
|
|
4389
|
+
Direct messages:
|
|
4390
|
+
The agent works only in its channels. A direct message to it gets a reply
|
|
4391
|
+
naming the channels where it answers.
|
|
4392
|
+
Confirmations:
|
|
4393
|
+
When a Deepline tool spends credits or changes data, the agent says what
|
|
4394
|
+
will run and the expected credits, and goes ahead once you say so in the
|
|
4395
|
+
thread. Only the person whose mention started the turn answers the
|
|
4396
|
+
agent's questions, with the buttons or in words; anyone else who clicks
|
|
4397
|
+
is told who can.
|
|
4398
|
+
Output (JSON):
|
|
4399
|
+
list prints workspace {lifecycle, billing {provider (openai, anthropic),
|
|
4400
|
+
keyLast4} or null} (null before
|
|
4401
|
+
enable), agents[] {name, instructions, skillNames, model (null: the
|
|
4402
|
+
default), ownerUserId, updatedByUserId, conversations[] {platform,
|
|
4403
|
+
conversationId, conversationName, createdByUserId, createdAt, model (null:
|
|
4404
|
+
its agent's), outcome {slug, role (home, linked), agentKey, watching} or
|
|
4405
|
+
null}} and skills[] {name, description, markdownLength}. get, create,
|
|
4406
|
+
update and channels add print agent; created, changed or removed says
|
|
4407
|
+
whether anything changed. models prints default and models[] {id, label,
|
|
4408
|
+
provider, aliases, available}. channels set prints model {model {id,
|
|
4409
|
+
label, provider}, from (conversation, agent), changed} and outcome
|
|
4410
|
+
{changed, agentName, conversation, woken}; channels add --outcome prints
|
|
4411
|
+
that outcome too.
|
|
4412
|
+
feedback prints feedback[] {agentName (null once deleted), platform,
|
|
4413
|
+
conversationId, conversationName, threadTs, messageTs, raterId, rating
|
|
4414
|
+
(helpful, not_helpful), updatedAt} and cursor (null on the last page).
|
|
4415
|
+
replies prints replies[] {id, agentName, platform, conversationId,
|
|
4416
|
+
conversationName, threadTs, outcome (completed, failed, cancelled),
|
|
4417
|
+
durationMs, toolCalls, inputTokens, outputTokens, finishedAt, ratings
|
|
4418
|
+
(null when no buttons were posted; {counted: true, helpful, notHelpful};
|
|
4419
|
+
or {counted: false} past 100 ratings)} and cursor. activity prints days,
|
|
4420
|
+
since, readLimit and agents[] {agentName, lastReplyAt, window {replies,
|
|
4421
|
+
failed, cancelled, perDay[] (oldest day first), medianDurationMs,
|
|
4422
|
+
inputTokens, outputTokens}, or window null past readLimit replies}.
|
|
4423
|
+
test prints threadId, status (replied, awaiting_answer, failed), reply,
|
|
4424
|
+
question {prompt, options} and error; failed exits 5. Answer a question
|
|
4425
|
+
with test on the same --thread, sending an option or your own answer.
|
|
4426
|
+
slack install prints installUrl, redirectUri, scopes and expiresAt. slack
|
|
4427
|
+
status prints installations[] {teamId, teamName, status (installed,
|
|
4428
|
+
uninstalled), scopes, installedAt, installedByUserId, uninstalledAt,
|
|
4429
|
+
uninstallReason (app_uninstalled, tokens_revoked)}; never a token.
|
|
4430
|
+
slack link prints linked, created, slackTeamId and slackUserId; slack
|
|
4431
|
+
unlink prints removed.
|
|
4432
|
+
Cost:
|
|
4433
|
+
Model calls are billed to the workspace's OpenAI or Anthropic key, never
|
|
4434
|
+
to Deepline credits. Tools an agent calls spend Deepline credits as they
|
|
4435
|
+
would for you. A turn an outcome wakes the agent for is a turn like any
|
|
4436
|
+
other.
|
|
4437
|
+
Avoid:
|
|
4438
|
+
Do not pass the model key as an argument; it is refused. Do not bind a
|
|
4439
|
+
channel the agent's Slack app is not in, or one in a Slack workspace this
|
|
4440
|
+
workspace has not installed it in; both are refused.
|
|
4270
4441
|
`
|
|
4271
4442
|
},
|
|
4272
4443
|
"sessions send": {
|