deepline 0.3.574 → 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/release.ts +1 -1
- 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/modal.ts +45 -7
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/postgres.ts +6 -66
- package/dist/cli/{agents-7ZZSF4FS.js → agents-BCLO3KQJ.js} +204 -41
- package/dist/cli/{agents-6WN5LYUP.mjs → agents-ULGDKUTM.mjs} +182 -19
- package/dist/cli/{auth-I2QVO677.mjs → auth-4WCL7A6W.mjs} +5 -5
- package/dist/cli/auth-DXUHEL5I.js +44 -0
- package/dist/cli/{billing-YPH4GEWU.mjs → billing-7JQ6EUQU.mjs} +9 -9
- package/dist/cli/{billing-44QFBUWA.js → billing-BF5LVXOM.js} +102 -102
- package/dist/cli/{chunk-MGF3MK27.mjs → chunk-2T7XOKVL.mjs} +5 -5
- package/dist/cli/{chunk-7UR57HPJ.js → chunk-2UM3I2MY.js} +1 -1
- package/dist/cli/{chunk-SRUNYWQ2.mjs → chunk-3PVKXUSJ.mjs} +1 -1
- package/dist/cli/{chunk-W6UCS3O6.mjs → chunk-56N3XAT6.mjs} +5 -5
- package/dist/cli/{chunk-LLSCFLFU.mjs → chunk-5D7OJY4W.mjs} +1 -1
- package/dist/cli/{chunk-5E2PAGF5.js → chunk-5H6254MJ.js} +21 -21
- package/dist/cli/{chunk-VYSUJMB5.js → chunk-5VSHQG5E.js} +8 -8
- package/dist/cli/{chunk-SLXCVPN7.js → chunk-636GD4IR.js} +2 -2
- package/dist/cli/{chunk-LJLM4BUL.js → chunk-6IKLITVH.js} +6 -6
- package/dist/cli/{chunk-D6ZVRKJ2.js → chunk-737Y7QGT.js} +41 -41
- package/dist/cli/{chunk-UXIUAIL2.js → chunk-7DLAJ6JJ.js} +53 -53
- package/dist/cli/{chunk-2QYU57RG.js → chunk-AO56MZ7D.js} +3 -3
- package/dist/cli/{chunk-BUBOZKH2.js → chunk-AS5XGOZY.js} +2 -2
- package/dist/cli/{chunk-XVBEEGI4.mjs → chunk-BM536WWR.mjs} +1 -1
- package/dist/cli/{chunk-DX646HO7.mjs → chunk-BONMEBWZ.mjs} +4 -4
- package/dist/cli/{chunk-S22FSNNC.mjs → chunk-BQUAE6LQ.mjs} +1 -1
- package/dist/cli/{chunk-G7OR3GVD.mjs → chunk-CVY4MBXH.mjs} +5 -5
- package/dist/cli/{chunk-KSHZY52O.js → chunk-DMPGJCNZ.js} +72 -10
- package/dist/cli/{chunk-Q3A53SWK.mjs → chunk-DWUESXDD.mjs} +1 -1
- package/dist/cli/{chunk-IA2LTIWO.mjs → chunk-E4RYSSXX.mjs} +2 -2
- package/dist/cli/{chunk-VLUBEMWM.js → chunk-EV3OPDHF.js} +20 -20
- package/dist/cli/{chunk-ECLCRE5P.js → chunk-EZIXKNKM.js} +3 -3
- package/dist/cli/{chunk-JCO226JM.mjs → chunk-FDCU3VAJ.mjs} +72 -10
- package/dist/cli/{chunk-6B5EZOI3.js → chunk-FXXERR52.js} +10 -10
- package/dist/cli/{chunk-L2NXB4WG.mjs → chunk-FYKHAT2F.mjs} +64 -3
- package/dist/cli/{chunk-NDDGFX4X.js → chunk-G2H6SQQY.js} +11 -11
- package/dist/cli/{chunk-I62ZBEKH.js → chunk-G4WPDCXA.js} +48 -48
- package/dist/cli/{chunk-G2HW2SAP.js → chunk-GB4IZ5TV.js} +13 -13
- package/dist/cli/{chunk-7334X74C.mjs → chunk-GQZFZG6R.mjs} +2 -2
- package/dist/cli/{chunk-JY7RKJ65.mjs → chunk-H3CG72RZ.mjs} +13 -13
- package/dist/cli/{chunk-N6I3BB2O.js → chunk-H6JMRLAZ.js} +274 -274
- package/dist/cli/{chunk-6GZIT3TH.js → chunk-HEOM3FAC.js} +20 -20
- package/dist/cli/{chunk-DG56RWI2.js → chunk-HO76C7AE.js} +2 -2
- package/dist/cli/{chunk-X7RKCAMX.mjs → chunk-IAJ65IDZ.mjs} +4 -4
- package/dist/cli/{chunk-ZFXDD7VM.mjs → chunk-IBYMGR5Y.mjs} +1 -1
- package/dist/cli/{chunk-LCAXLGAY.mjs → chunk-IOWLFWWG.mjs} +2 -2
- package/dist/cli/{chunk-NRVEVKXR.mjs → chunk-JGLCK2XF.mjs} +2 -2
- package/dist/cli/{chunk-IB225ZK4.js → chunk-KNCNFL76.js} +4 -4
- package/dist/cli/{chunk-QPSBV4FD.mjs → chunk-MN7JLH2T.mjs} +2 -2
- package/dist/cli/{chunk-OH6WOID2.mjs → chunk-MWLOBURN.mjs} +2 -2
- package/dist/cli/{chunk-AFPGYZBH.js → chunk-MXK4M7HP.js} +17 -17
- package/dist/cli/{chunk-MAMGREBW.mjs → chunk-NF722E6C.mjs} +1 -1
- package/dist/cli/{chunk-7GQU46SZ.js → chunk-PQYDO72W.js} +26 -26
- package/dist/cli/{chunk-4T2U72SP.mjs → chunk-QEDRUURT.mjs} +1 -1
- package/dist/cli/{chunk-B2XLIQPH.mjs → chunk-QKP3WYSZ.mjs} +2 -2
- package/dist/cli/{chunk-VGIDPJXM.mjs → chunk-RHRRY2BX.mjs} +3 -3
- package/dist/cli/{chunk-ZTCP5BHH.mjs → chunk-RW3URFZK.mjs} +2 -2
- package/dist/cli/{chunk-XMBTAPHR.js → chunk-SKHUWQZE.js} +7 -7
- package/dist/cli/{chunk-OIZUFRTE.mjs → chunk-SYQTBHRX.mjs} +3 -3
- package/dist/cli/{chunk-PW6NKI2A.mjs → chunk-TMFR2B45.mjs} +3 -3
- package/dist/cli/{chunk-YR4REP4D.mjs → chunk-TTBZ7QXX.mjs} +1 -1
- package/dist/cli/{chunk-GMQZFWQU.mjs → chunk-UQZP7XBQ.mjs} +7 -7
- package/dist/cli/{chunk-DOZIWA66.js → chunk-V5XLENWK.js} +5 -5
- package/dist/cli/{chunk-2TMAKJBT.mjs → chunk-X47J55ZJ.mjs} +2 -2
- package/dist/cli/{chunk-ID3LGPOE.js → chunk-XFV353R2.js} +23 -23
- package/dist/cli/{chunk-2RPRSTHD.js → chunk-YNAXKA23.js} +5 -5
- package/dist/cli/{chunk-IXYVHTRZ.js → chunk-ZO65VJRJ.js} +70 -9
- package/dist/cli/{chunk-PP5RMEQQ.js → chunk-ZQXJYO5P.js} +5 -5
- package/dist/cli/{chunk-H7PVSG3L.js → chunk-ZS6DT4LD.js} +15 -15
- package/dist/cli/{chunk-Z3XFXFRT.js → chunk-ZYSJND73.js} +9 -9
- package/dist/cli/command-docs.js +2 -2
- package/dist/cli/command-docs.mjs +1 -1
- package/dist/cli/{concurrent-runs-help-ROQM6UB3.mjs → concurrent-runs-help-HITK6EOO.mjs} +6 -6
- package/dist/cli/concurrent-runs-help-JLWY54WL.js +22 -0
- package/dist/cli/{csv-FWGSY4GE.js → csv-RS7XHQ4P.js} +13 -13
- package/dist/cli/{csv-R7GV33BC.mjs → csv-V2T23MXT.mjs} +4 -4
- package/dist/cli/{db-UWXA4RRV.mjs → db-OQ4RNTGE.mjs} +6 -6
- package/dist/cli/{db-OCH35YJG.js → db-WFIVRPKY.js} +27 -27
- package/dist/cli/describe-33PBWO5O.js +50 -0
- package/dist/cli/{describe-QI4HMUGE.mjs → describe-AXV2EEX3.mjs} +21 -21
- package/dist/cli/describe-core.d.mts +10 -1
- package/dist/cli/describe-core.d.ts +10 -1
- package/dist/cli/describe-core.js +4 -4
- package/dist/cli/describe-core.mjs +3 -3
- package/dist/cli/{executions-7CFGC24E.js → executions-5H2RIWZ3.js} +8 -8
- package/dist/cli/{executions-YF3KMZZN.mjs → executions-THP5ZDBQ.mjs} +6 -6
- package/dist/cli/{feedback-DWIWBS7O.mjs → feedback-2EJPILGE.mjs} +6 -6
- package/dist/cli/{feedback-YCZHHSBS.js → feedback-UOI6UEGA.js} +14 -14
- package/dist/cli/git-2OPYEPYW.js +26 -0
- package/dist/cli/{git-XCGMQQOD.mjs → git-DI3LJIAT.mjs} +5 -5
- package/dist/cli/index.js +148 -148
- package/dist/cli/index.mjs +47 -47
- package/dist/cli/{integrations-5ABAJBSW.mjs → integrations-DJYS5VRK.mjs} +7 -7
- package/dist/cli/{integrations-IEZA3TGK.js → integrations-TYN2BSQ6.js} +29 -29
- package/dist/cli/{legacy-noops-KNFLJ5P2.js → legacy-noops-GXQHNLGJ.js} +9 -9
- package/dist/cli/{legacy-noops-OZMY73Y3.mjs → legacy-noops-Z457BB6O.mjs} +6 -6
- package/dist/cli/{mcp-WSPFKQPZ.mjs → mcp-NAW3GFNN.mjs} +4 -4
- package/dist/cli/{mcp-NLQAO7KP.js → mcp-WMBOOTQL.js} +24 -24
- package/dist/cli/{monitors-LPKFFTOX.mjs → monitors-A7NYAXSJ.mjs} +7 -7
- package/dist/cli/{monitors-BJYOB4S3.js → monitors-OOQVE7XR.js} +100 -100
- package/dist/cli/{org-RYPMUYUW.mjs → org-7YCDUSZE.mjs} +6 -6
- package/dist/cli/{org-WIVHI4WT.js → org-D2AMIVBS.js} +121 -121
- package/dist/cli/{outcomes-QKX7IE3O.js → outcomes-2FKZDJSQ.js} +14 -14
- package/dist/cli/{outcomes-FADJYC4I.mjs → outcomes-TNTKCUEO.mjs} +6 -6
- package/dist/cli/{play-4ZKK5Q7U.mjs → play-L6CVHSN4.mjs} +20 -20
- package/dist/cli/{play-ID73J3NP.js → play-NWKHCHVZ.js} +349 -349
- package/dist/cli/{providers-LURYBSNO.mjs → providers-22LO747B.mjs} +6 -6
- package/dist/cli/{providers-WCCGYGW6.js → providers-PZGOI5CN.js} +9 -9
- package/dist/cli/{quickstart-KCCSEE5J.mjs → quickstart-3ZRVKGMH.mjs} +4 -4
- package/dist/cli/{quickstart-LVPOU25V.js → quickstart-LLWOC2GR.js} +6 -6
- package/dist/cli/{run-XXK7DDUF.mjs → run-D46W2GUA.mjs} +48 -27
- package/dist/cli/{run-2QMJRCVA.js → run-SNF23STR.js} +70 -49
- package/dist/cli/search-H57MZPLF.js +32 -0
- package/dist/cli/{search-ZYAWW3CK.mjs → search-XWVCICIX.mjs} +7 -7
- package/dist/cli/{search-output-YNXAZSKT.js → search-output-36GHD67U.js} +8 -8
- package/dist/cli/{search-output-N45AIOB4.mjs → search-output-YM5QXFQQ.mjs} +5 -5
- package/dist/cli/{secrets-7Q3AOUAS.mjs → secrets-7PTZEFRC.mjs} +6 -6
- package/dist/cli/{secrets-MHT27L2M.js → secrets-UXCIHG5I.js} +15 -15
- package/dist/cli/{sessions-6QKOM7M3.mjs → sessions-DTXJKRP4.mjs} +6 -6
- package/dist/cli/sessions-JJZMQSH4.js +23 -0
- package/dist/cli/{settings-NPVIDENI.mjs → settings-74B6UOS4.mjs} +12 -12
- package/dist/cli/{settings-OP7Q6YX6.js → settings-EYSDZE37.js} +85 -85
- package/dist/cli/{setup-OOT3EIMF.mjs → setup-2QRZ36CH.mjs} +9 -9
- package/dist/cli/{setup-RT6GHL3W.js → setup-E7PVXBPL.js} +49 -49
- package/dist/cli/{skills-TEXI4CLZ.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-G5L36M3X.mjs → tools-YK5SCUZD.mjs} +19 -19
- package/dist/cli/{update-YNKQTE4D.mjs → update-563YQK53.mjs} +9 -9
- package/dist/cli/update-CMZAIAES.js +37 -0
- package/dist/cli/{views-IQFMUMLU.mjs → views-ISNCRZUP.mjs} +6 -6
- package/dist/cli/{views-OVQ5AQAU.js → views-OLPS6TPG.js} +21 -21
- package/dist/cli/{workflow-Y5IFMI7N.mjs → workflow-B3ZKU3OR.mjs} +7 -7
- package/dist/cli/{workflow-RCBYXIFZ.js → workflow-CUSCTYMW.js} +17 -17
- package/dist/index.js +9 -9
- package/dist/index.mjs +6 -6
- package/dist/install-integrity.json +122 -122
- 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.js +5 -5
- package/dist/server.mjs +3 -3
- package/package.json +1 -1
- package/dist/cli/auth-UKPV5U2B.js +0 -44
- package/dist/cli/concurrent-runs-help-BFVCUJF4.js +0 -22
- package/dist/cli/describe-6OI5K2SH.js +0 -50
- package/dist/cli/git-TGLNZRS3.js +0 -26
- package/dist/cli/search-AQSAXA6D.js +0 -32
- package/dist/cli/sessions-RGD7L4LC.js +0 -23
- package/dist/cli/skills-ERAA734H.js +0 -37
- package/dist/cli/tools-D5SZSIIH.js +0 -57
- package/dist/cli/update-WZ6527EF.js +0 -37
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var _chunkEV3OPDHFjs = require('./chunk-EV3OPDHF.js');
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
|
|
@@ -22,14 +22,14 @@ var _chunkVLUBEMWMjs = require('./chunk-VLUBEMWM.js');
|
|
|
22
22
|
|
|
23
23
|
|
|
24
24
|
|
|
25
|
-
var
|
|
25
|
+
var _chunkAO56MZ7Djs = require('./chunk-AO56MZ7D.js');
|
|
26
26
|
|
|
27
27
|
|
|
28
28
|
|
|
29
29
|
|
|
30
30
|
|
|
31
31
|
|
|
32
|
-
var
|
|
32
|
+
var _chunkKNCNFL76js = require('./chunk-KNCNFL76.js');
|
|
33
33
|
|
|
34
34
|
|
|
35
35
|
var _chunkLFQJW4S2js = require('./chunk-LFQJW4S2.js');
|
|
@@ -60,7 +60,7 @@ function statusBannerLine(value) {
|
|
|
60
60
|
return `Service notice: ${banner.message}`;
|
|
61
61
|
}
|
|
62
62
|
function envFilePath(baseUrl) {
|
|
63
|
-
return
|
|
63
|
+
return _chunkAO56MZ7Djs.hostEnvFilePath.call(void 0, baseUrl);
|
|
64
64
|
}
|
|
65
65
|
function normalizeAuthScope(value) {
|
|
66
66
|
if (!value || value === "global") return "global";
|
|
@@ -73,7 +73,7 @@ function parseAuthScope(args) {
|
|
|
73
73
|
}
|
|
74
74
|
function pendingClaimPath(baseUrl, scope) {
|
|
75
75
|
if (scope === "folder") {
|
|
76
|
-
const target =
|
|
76
|
+
const target = _chunkAO56MZ7Djs.resolveProjectPinTarget.call(void 0, );
|
|
77
77
|
if (!target.ok) {
|
|
78
78
|
throw new Error(
|
|
79
79
|
`Cowork project folder is ambiguous. Candidate folders: ${target.candidates.join(
|
|
@@ -83,10 +83,10 @@ function pendingClaimPath(baseUrl, scope) {
|
|
|
83
83
|
}
|
|
84
84
|
return _path.join.call(void 0, target.dir, ".deepline", "setup", "pending-auth.json");
|
|
85
85
|
}
|
|
86
|
-
return `${
|
|
86
|
+
return `${_chunkAO56MZ7Djs.hostConfigDirPath.call(void 0, baseUrl)}/pending-auth.json`;
|
|
87
87
|
}
|
|
88
88
|
function legacyPendingClaimTokenPath(baseUrl) {
|
|
89
|
-
return `${
|
|
89
|
+
return `${_chunkAO56MZ7Djs.hostConfigDirPath.call(void 0, baseUrl)}/pending-claim-token`;
|
|
90
90
|
}
|
|
91
91
|
function savePendingClaim(baseUrl, claim) {
|
|
92
92
|
const filePath = pendingClaimPath(baseUrl, claim.scope);
|
|
@@ -191,21 +191,21 @@ function parseRegisterWaitMode(args) {
|
|
|
191
191
|
function shouldWaitForRegisterClaim(mode) {
|
|
192
192
|
if (mode === "yes") return true;
|
|
193
193
|
if (mode === "no") return false;
|
|
194
|
-
return
|
|
194
|
+
return _chunkKNCNFL76js.detectAgentRuntime.call(void 0, ) !== "claude_cowork";
|
|
195
195
|
}
|
|
196
196
|
function saveEnvValues(values, baseUrl, scope) {
|
|
197
197
|
const filtered = {
|
|
198
|
-
...values[
|
|
199
|
-
...values[
|
|
200
|
-
...values[
|
|
201
|
-
...Object.prototype.hasOwnProperty.call(values,
|
|
198
|
+
...values[_chunkAO56MZ7Djs.HOST_URL_ENV] ? { [_chunkAO56MZ7Djs.HOST_URL_ENV]: values[_chunkAO56MZ7Djs.HOST_URL_ENV] } : {},
|
|
199
|
+
...values[_chunkAO56MZ7Djs.API_KEY_ENV] ? { [_chunkAO56MZ7Djs.API_KEY_ENV]: values[_chunkAO56MZ7Djs.API_KEY_ENV] } : {},
|
|
200
|
+
...values[_chunkAO56MZ7Djs.ACTIVE_ORG_ID_ENV] ? { [_chunkAO56MZ7Djs.ACTIVE_ORG_ID_ENV]: values[_chunkAO56MZ7Djs.ACTIVE_ORG_ID_ENV] } : {},
|
|
201
|
+
...Object.prototype.hasOwnProperty.call(values, _chunkAO56MZ7Djs.ACTIVE_ORG_NAME_ENV) ? { [_chunkAO56MZ7Djs.ACTIVE_ORG_NAME_ENV]: values[_chunkAO56MZ7Djs.ACTIVE_ORG_NAME_ENV] } : {},
|
|
202
202
|
// An explicit empty list must reach the store: it clears a stale line.
|
|
203
|
-
...Object.prototype.hasOwnProperty.call(values,
|
|
203
|
+
...Object.prototype.hasOwnProperty.call(values, _chunkAO56MZ7Djs.FEATURES_ENV) ? { [_chunkAO56MZ7Djs.FEATURES_ENV]: values[_chunkAO56MZ7Djs.FEATURES_ENV] } : {}
|
|
204
204
|
};
|
|
205
205
|
if (scope === "folder") {
|
|
206
|
-
|
|
206
|
+
_chunkAO56MZ7Djs.saveProjectDeeplineEnvValues.call(void 0, filtered);
|
|
207
207
|
} else {
|
|
208
|
-
|
|
208
|
+
_chunkAO56MZ7Djs.saveHostEnvValues.call(void 0, baseUrl, filtered);
|
|
209
209
|
}
|
|
210
210
|
}
|
|
211
211
|
function activeOrgEnvValues(data) {
|
|
@@ -213,21 +213,21 @@ function activeOrgEnvValues(data) {
|
|
|
213
213
|
if (!orgId) return {};
|
|
214
214
|
const orgName = typeof data.org_name === "string" ? data.org_name.trim() : "";
|
|
215
215
|
return {
|
|
216
|
-
[
|
|
217
|
-
[
|
|
218
|
-
...
|
|
216
|
+
[_chunkAO56MZ7Djs.ACTIVE_ORG_ID_ENV]: orgId,
|
|
217
|
+
[_chunkAO56MZ7Djs.ACTIVE_ORG_NAME_ENV]: orgName,
|
|
218
|
+
..._chunkAO56MZ7Djs.featureEnvValues.call(void 0, data)
|
|
219
219
|
};
|
|
220
220
|
}
|
|
221
221
|
async function httpJson(method, url, apiKey, body, timeoutMs = AUTH_HTTP_TIMEOUT_MS) {
|
|
222
222
|
const headers = {
|
|
223
223
|
"Content-Type": "application/json",
|
|
224
|
-
"User-Agent": `deepline-ts-sdk/${
|
|
224
|
+
"User-Agent": `deepline-ts-sdk/${_chunkKNCNFL76js.SDK_VERSION}`,
|
|
225
225
|
"X-Deepline-Client-Family": "sdk",
|
|
226
226
|
"X-Deepline-CLI-Family": "sdk",
|
|
227
|
-
"X-Deepline-Agent-Runtime":
|
|
228
|
-
"X-Deepline-CLI-Version":
|
|
229
|
-
"X-Deepline-SDK-Version":
|
|
230
|
-
"X-Deepline-API-Contract":
|
|
227
|
+
"X-Deepline-Agent-Runtime": _chunkKNCNFL76js.detectAgentRuntime.call(void 0, ),
|
|
228
|
+
"X-Deepline-CLI-Version": _chunkKNCNFL76js.SDK_VERSION,
|
|
229
|
+
"X-Deepline-SDK-Version": _chunkKNCNFL76js.SDK_VERSION,
|
|
230
|
+
"X-Deepline-API-Contract": _chunkKNCNFL76js.SDK_API_CONTRACT
|
|
231
231
|
};
|
|
232
232
|
if (apiKey) headers["Authorization"] = `Bearer ${apiKey}`;
|
|
233
233
|
const bypassToken = _optionalChain([process, 'access', _7 => _7.env, 'access', _8 => _8.VERCEL_PROTECTION_BYPASS_TOKEN, 'optionalAccess', _9 => _9.trim, 'call', _10 => _10()]);
|
|
@@ -266,10 +266,10 @@ async function httpJson(method, url, apiKey, body, timeoutMs = AUTH_HTTP_TIMEOUT
|
|
|
266
266
|
if (failure.name === "AbortError" || failure.name === "TimeoutError") {
|
|
267
267
|
throw failure;
|
|
268
268
|
}
|
|
269
|
-
const causeCode =
|
|
269
|
+
const causeCode = _chunkKNCNFL76js.networkCauseCode.call(void 0, failure);
|
|
270
270
|
throw Object.assign(
|
|
271
271
|
new (0, _chunkLFQJW4S2js.DeeplineError)(
|
|
272
|
-
|
|
272
|
+
_chunkKNCNFL76js.connectionFailureMessage.call(void 0, new URL(url).origin, failure),
|
|
273
273
|
void 0,
|
|
274
274
|
"NETWORK_ERROR",
|
|
275
275
|
causeCode ? { causeCode } : void 0
|
|
@@ -286,7 +286,7 @@ async function readStatusBanner(baseUrl) {
|
|
|
286
286
|
return _optionalChain([response, 'optionalAccess', _11 => _11.status]) === 200 ? _nullishCoalesce(response.data.banner, () => ( null)) : null;
|
|
287
287
|
}
|
|
288
288
|
async function reportSetupCompleted(input) {
|
|
289
|
-
const apiKey = input.authScope === "folder" ?
|
|
289
|
+
const apiKey = input.authScope === "folder" ? _chunkAO56MZ7Djs.resolveProjectApiKeyForBaseUrl.call(void 0, input.baseUrl) : _chunkAO56MZ7Djs.resolveGlobalApiKeyForBaseUrl.call(void 0, input.baseUrl);
|
|
290
290
|
if (!apiKey) return;
|
|
291
291
|
try {
|
|
292
292
|
await httpJson(
|
|
@@ -415,7 +415,7 @@ function endClaimPollOnRefusal(status, data, baseUrl, authScope) {
|
|
|
415
415
|
return EXIT_SERVER;
|
|
416
416
|
}
|
|
417
417
|
async function handleRegister(args, options) {
|
|
418
|
-
const baseUrl =
|
|
418
|
+
const baseUrl = _chunkAO56MZ7Djs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
|
|
419
419
|
let orgName = "";
|
|
420
420
|
let orgId = "";
|
|
421
421
|
let agentName = "";
|
|
@@ -486,14 +486,14 @@ async function handleRegister(args, options) {
|
|
|
486
486
|
savePendingClaim(baseUrl, pendingClaim);
|
|
487
487
|
saveEnvValues(
|
|
488
488
|
{
|
|
489
|
-
[
|
|
489
|
+
[_chunkAO56MZ7Djs.HOST_URL_ENV]: baseUrl
|
|
490
490
|
},
|
|
491
491
|
baseUrl,
|
|
492
492
|
authScope
|
|
493
493
|
);
|
|
494
494
|
}
|
|
495
495
|
if (claimUrl && !_optionalChain([options, 'optionalAccess', _16 => _16.delegatedApproval])) {
|
|
496
|
-
const shouldOpen = waitMode !== "no" &&
|
|
496
|
+
const shouldOpen = waitMode !== "no" && _chunkKNCNFL76js.detectAgentRuntime.call(void 0, ) !== "claude_cowork";
|
|
497
497
|
console.log(" Open this approval page in your browser:");
|
|
498
498
|
console.log(` ${claimUrl}`);
|
|
499
499
|
if (pendingClaim.device) {
|
|
@@ -501,7 +501,7 @@ async function handleRegister(args, options) {
|
|
|
501
501
|
` Click Approve if the page shows ${pendingClaim.device.userCode}.`
|
|
502
502
|
);
|
|
503
503
|
}
|
|
504
|
-
const opened = shouldOpen &&
|
|
504
|
+
const opened = shouldOpen && _chunkEV3OPDHFjs.openInBrowser.call(void 0, claimUrl) === "opened";
|
|
505
505
|
if (claimToken && pendingClaim.approvalLinkReporting) {
|
|
506
506
|
await reportApprovalLinkShown(
|
|
507
507
|
baseUrl,
|
|
@@ -554,8 +554,8 @@ async function handleRegister(args, options) {
|
|
|
554
554
|
if (apiKey) {
|
|
555
555
|
saveEnvValues(
|
|
556
556
|
{
|
|
557
|
-
[
|
|
558
|
-
[
|
|
557
|
+
[_chunkAO56MZ7Djs.HOST_URL_ENV]: baseUrl,
|
|
558
|
+
[_chunkAO56MZ7Djs.API_KEY_ENV]: apiKey,
|
|
559
559
|
...activeOrgEnvValues(statusData)
|
|
560
560
|
},
|
|
561
561
|
baseUrl,
|
|
@@ -577,7 +577,7 @@ async function handleRegister(args, options) {
|
|
|
577
577
|
}
|
|
578
578
|
}
|
|
579
579
|
async function handleWait(args, options) {
|
|
580
|
-
const baseUrl =
|
|
580
|
+
const baseUrl = _chunkAO56MZ7Djs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
|
|
581
581
|
let timeoutSeconds = 300;
|
|
582
582
|
let requestedScope;
|
|
583
583
|
if (args.includes("--auth-scope")) {
|
|
@@ -601,7 +601,7 @@ async function handleWait(args, options) {
|
|
|
601
601
|
const authScope = resumed.scope;
|
|
602
602
|
const claimToken = _nullishCoalesce(_optionalChain([pendingClaim, 'optionalAccess', _18 => _18.claimToken]), () => ( ""));
|
|
603
603
|
if (!pendingClaim) {
|
|
604
|
-
const scopedApiKey = authScope === "folder" ?
|
|
604
|
+
const scopedApiKey = authScope === "folder" ? _chunkAO56MZ7Djs.resolveProjectApiKeyForBaseUrl.call(void 0, baseUrl) : _chunkAO56MZ7Djs.resolveGlobalApiKeyForBaseUrl.call(void 0, baseUrl);
|
|
605
605
|
if (scopedApiKey) {
|
|
606
606
|
if (!_optionalChain([options, 'optionalAccess', _19 => _19.quiet])) console.log("Already connected.");
|
|
607
607
|
return EXIT_OK;
|
|
@@ -664,8 +664,8 @@ async function handleWait(args, options) {
|
|
|
664
664
|
if (apiKey) {
|
|
665
665
|
saveEnvValues(
|
|
666
666
|
{
|
|
667
|
-
[
|
|
668
|
-
[
|
|
667
|
+
[_chunkAO56MZ7Djs.HOST_URL_ENV]: baseUrl,
|
|
668
|
+
[_chunkAO56MZ7Djs.API_KEY_ENV]: apiKey,
|
|
669
669
|
...activeOrgEnvValues(data)
|
|
670
670
|
},
|
|
671
671
|
baseUrl,
|
|
@@ -695,8 +695,8 @@ async function handleWait(args, options) {
|
|
|
695
695
|
return EXIT_AUTH;
|
|
696
696
|
}
|
|
697
697
|
async function authStatusLine(timeoutMs = 3e3) {
|
|
698
|
-
const baseUrl =
|
|
699
|
-
const apiKey =
|
|
698
|
+
const baseUrl = _chunkAO56MZ7Djs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
|
|
699
|
+
const apiKey = _chunkAO56MZ7Djs.resolveApiKeyForBaseUrl.call(void 0, baseUrl);
|
|
700
700
|
if (!apiKey) return `Auth: not connected (${baseUrl})`;
|
|
701
701
|
try {
|
|
702
702
|
const { status, data } = await httpJson(
|
|
@@ -719,9 +719,9 @@ async function authStatusLine(timeoutMs = 3e3) {
|
|
|
719
719
|
}
|
|
720
720
|
}
|
|
721
721
|
async function handleStatus(args) {
|
|
722
|
-
const baseUrl =
|
|
722
|
+
const baseUrl = _chunkAO56MZ7Djs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
|
|
723
723
|
const reveal = args.includes("--reveal");
|
|
724
|
-
const jsonOutput =
|
|
724
|
+
const jsonOutput = _chunkEV3OPDHFjs.argsWantJson.call(void 0, args);
|
|
725
725
|
const hasExplicitAuthScope = args.includes("--auth-scope");
|
|
726
726
|
let authScope = null;
|
|
727
727
|
if (hasExplicitAuthScope) {
|
|
@@ -762,14 +762,14 @@ async function handleStatus(args) {
|
|
|
762
762
|
};
|
|
763
763
|
hostLines.push(`Host: ${baseUrl} (unreachable)`);
|
|
764
764
|
}
|
|
765
|
-
const apiKey = authScope === "folder" ?
|
|
765
|
+
const apiKey = authScope === "folder" ? _chunkAO56MZ7Djs.resolveProjectApiKeyForBaseUrl.call(void 0, baseUrl) : authScope === "global" ? _chunkAO56MZ7Djs.resolveGlobalApiKeyForBaseUrl.call(void 0, baseUrl) : _chunkAO56MZ7Djs.resolveApiKeyForBaseUrl.call(void 0, baseUrl);
|
|
766
766
|
if (!apiKey) {
|
|
767
767
|
const { claim: pendingClaim } = resolvePendingAuthClaimForResume(
|
|
768
768
|
baseUrl,
|
|
769
769
|
_nullishCoalesce(authScope, () => ( void 0))
|
|
770
770
|
);
|
|
771
771
|
if (pendingClaim) {
|
|
772
|
-
|
|
772
|
+
_chunkEV3OPDHFjs.printCommandEnvelope.call(void 0,
|
|
773
773
|
{
|
|
774
774
|
..._nullishCoalesce(hostStatusPayload, () => ( { host: baseUrl })),
|
|
775
775
|
status: "pending",
|
|
@@ -799,7 +799,7 @@ async function handleStatus(args) {
|
|
|
799
799
|
);
|
|
800
800
|
return EXIT_OK;
|
|
801
801
|
}
|
|
802
|
-
|
|
802
|
+
_chunkEV3OPDHFjs.printCommandEnvelope.call(void 0,
|
|
803
803
|
{
|
|
804
804
|
..._nullishCoalesce(hostStatusPayload, () => ( { host: baseUrl })),
|
|
805
805
|
status: "not connected",
|
|
@@ -832,7 +832,7 @@ async function handleStatus(args) {
|
|
|
832
832
|
}
|
|
833
833
|
);
|
|
834
834
|
if (status === 401 || status === 403) {
|
|
835
|
-
|
|
835
|
+
_chunkEV3OPDHFjs.printCommandEnvelope.call(void 0,
|
|
836
836
|
{
|
|
837
837
|
..._nullishCoalesce(hostStatusPayload, () => ( { host: baseUrl })),
|
|
838
838
|
status: "unauthorized",
|
|
@@ -859,7 +859,7 @@ async function handleStatus(args) {
|
|
|
859
859
|
console.error(`Auth status error (status ${status}).`);
|
|
860
860
|
return EXIT_SERVER;
|
|
861
861
|
}
|
|
862
|
-
const resolvedAuthScope = _nullishCoalesce(authScope, () => ( (
|
|
862
|
+
const resolvedAuthScope = _nullishCoalesce(authScope, () => ( (_chunkAO56MZ7Djs.getResolvedProjectAuthSource.call(void 0, baseUrl, apiKey) ? "folder" : "global")));
|
|
863
863
|
clearSatisfiedPendingClaim(
|
|
864
864
|
baseUrl,
|
|
865
865
|
resolvedAuthScope,
|
|
@@ -887,28 +887,28 @@ async function handleStatus(args) {
|
|
|
887
887
|
if (apiKeyResp) {
|
|
888
888
|
saveEnvValues(
|
|
889
889
|
{
|
|
890
|
-
[
|
|
891
|
-
[
|
|
890
|
+
[_chunkAO56MZ7Djs.HOST_URL_ENV]: baseUrl,
|
|
891
|
+
[_chunkAO56MZ7Djs.API_KEY_ENV]: apiKeyResp,
|
|
892
892
|
...activeOrgEnvValues(data)
|
|
893
893
|
},
|
|
894
894
|
baseUrl,
|
|
895
895
|
resolvedAuthScope
|
|
896
896
|
);
|
|
897
897
|
if (resolvedAuthScope === "folder") {
|
|
898
|
-
const target =
|
|
898
|
+
const target = _chunkAO56MZ7Djs.resolveProjectPinTarget.call(void 0, );
|
|
899
899
|
savedApiKeyPath = target.ok ? _path.join.call(void 0, target.dir, ".env.deepline") : null;
|
|
900
900
|
} else {
|
|
901
901
|
savedApiKeyPath = envFilePath(baseUrl);
|
|
902
902
|
}
|
|
903
903
|
}
|
|
904
|
-
} else if (resolvedAuthScope === "folder" ||
|
|
905
|
-
saveEnvValues(
|
|
904
|
+
} else if (resolvedAuthScope === "folder" || _chunkAO56MZ7Djs.storedHostApiKey.call(void 0, baseUrl) === apiKey) {
|
|
905
|
+
saveEnvValues(_chunkAO56MZ7Djs.featureEnvValues.call(void 0, data), baseUrl, resolvedAuthScope);
|
|
906
906
|
}
|
|
907
|
-
|
|
907
|
+
_chunkEV3OPDHFjs.printCommandEnvelope.call(void 0,
|
|
908
908
|
{
|
|
909
909
|
...payload,
|
|
910
|
-
...
|
|
911
|
-
command_context:
|
|
910
|
+
..._chunkKNCNFL76js.detectAgentRuntime.call(void 0, ) !== "unknown" ? {
|
|
911
|
+
command_context: _chunkAO56MZ7Djs.resolveCliCommandContext.call(void 0,
|
|
912
912
|
{ baseUrl, apiKey },
|
|
913
913
|
resolvedAuthScope
|
|
914
914
|
)
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunkKNCNFL76js = require('./chunk-KNCNFL76.js');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
var _chunk6VLFQZK6js = require('./chunk-6VLFQZK6.js');
|
|
@@ -778,7 +778,7 @@ function readSkillsVersionFile(path) {
|
|
|
778
778
|
}
|
|
779
779
|
}
|
|
780
780
|
function resolveAutoSyncSkillAgents() {
|
|
781
|
-
switch (
|
|
781
|
+
switch (_chunkKNCNFL76js.detectAgentRuntime.call(void 0, )) {
|
|
782
782
|
case "codex":
|
|
783
783
|
return ["codex"];
|
|
784
784
|
case "claude_code":
|
|
@@ -848,7 +848,7 @@ function writeSdkSkillsLocalVersion(baseUrl, version, agents) {
|
|
|
848
848
|
}
|
|
849
849
|
|
|
850
850
|
// src/http.ts
|
|
851
|
-
var HttpClient2 = class extends
|
|
851
|
+
var HttpClient2 = class extends _chunkKNCNFL76js.HttpClient {
|
|
852
852
|
constructor(config) {
|
|
853
853
|
super(config, readSdkSkillsLocalVersion);
|
|
854
854
|
}
|
|
@@ -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; }
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkEV3OPDHFjs = require('./chunk-EV3OPDHF.js');
|
|
4
4
|
|
|
5
5
|
// src/cli/feedback-preferences.ts
|
|
6
6
|
|
|
@@ -57,7 +57,7 @@ function rejectRestrictedFeedback(options) {
|
|
|
57
57
|
const code = restriction === "off" ? "FEEDBACK_DISABLED" : "FEEDBACK_APPROVAL_REQUIRED";
|
|
58
58
|
const message = restriction === "off" ? 'Feedback is in mode "off". Do not ask the user if they want to send feedback. Use --requested only if they explicitly request it without being prompted.' : "Ask the user if they wish to send feedback. If they agree, rerun the send command with --requested. To change the setting, run deepline settings feedback --help. Agents must get user approval before turning feedback on.";
|
|
59
59
|
if (options.json) {
|
|
60
|
-
|
|
60
|
+
_chunkEV3OPDHFjs.printCommandEnvelope.call(void 0,
|
|
61
61
|
{ ok: false, code, exitCode: 2, message },
|
|
62
62
|
{ json: true }
|
|
63
63
|
);
|
|
@@ -49,7 +49,7 @@ var SDK_RELEASE = {
|
|
|
49
49
|
// getters keep their established compatibility behavior.
|
|
50
50
|
// 0.3.1 deprecated the legacy `deepline enrich` command in favor of Plays.
|
|
51
51
|
// 0.3.90 is the first deliberately versioned SDK release for API v3.
|
|
52
|
-
version: "0.3.
|
|
52
|
+
version: "0.3.575",
|
|
53
53
|
updateSummary: {
|
|
54
54
|
introducedIn: "0.3.90",
|
|
55
55
|
summary: "Play grep now returns concise results with the matched fields and terms. Automatic CLI updates are enabled by default; use `deepline settings autoupdate off` to opt out, `deepline settings autoupdate on` to re-enable updates, or `deepline settings autoupdate pin <version>` to hold an exact release."
|
|
@@ -11,20 +11,20 @@ import {
|
|
|
11
11
|
skillsInstallLeasePath,
|
|
12
12
|
skillsSourceUrl,
|
|
13
13
|
syncSdkSkillsIfNeeded
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-2T7XOKVL.mjs";
|
|
15
15
|
import {
|
|
16
16
|
printCommandEnvelope
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-X47J55ZJ.mjs";
|
|
18
18
|
import {
|
|
19
19
|
autoDetectBaseUrl,
|
|
20
20
|
ensureProjectPrivatePathsIgnored,
|
|
21
21
|
resolveProjectPinTarget,
|
|
22
22
|
sdkCliStateDirPath
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-3PVKXUSJ.mjs";
|
|
24
24
|
import {
|
|
25
25
|
SDK_VERSION,
|
|
26
26
|
detectAgentRuntime
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-IBYMGR5Y.mjs";
|
|
28
28
|
import {
|
|
29
29
|
DEEPLINE_GTM_GLOBAL_SKILL_ROOTS
|
|
30
30
|
} from "./chunk-5JPKRDFC.mjs";
|
|
@@ -4,22 +4,22 @@ import {
|
|
|
4
4
|
resolveUpdatePlan,
|
|
5
5
|
runAutomaticUpdatePlan,
|
|
6
6
|
shouldRunCliAutoUpdate
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-56N3XAT6.mjs";
|
|
8
8
|
import {
|
|
9
9
|
isCiEnvironment,
|
|
10
10
|
resolveShellSpawn,
|
|
11
11
|
syncSdkSkillsIfNeeded
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-2T7XOKVL.mjs";
|
|
13
13
|
import {
|
|
14
14
|
addJsonNotice,
|
|
15
15
|
isJsonOutputMode
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-X47J55ZJ.mjs";
|
|
17
17
|
import {
|
|
18
18
|
resolveApiKeyForBaseUrl
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-3PVKXUSJ.mjs";
|
|
20
20
|
import {
|
|
21
21
|
SDK_VERSION
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-IBYMGR5Y.mjs";
|
|
23
23
|
|
|
24
24
|
// src/cli/compatibility-catalog.ts
|
|
25
25
|
var readers = /* @__PURE__ */ new WeakMap();
|
|
@@ -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
|
|
@@ -4281,11 +4283,13 @@ Purpose:
|
|
|
4281
4283
|
Deepline agents in Slack. Members create agents, each with instructions and
|
|
4282
4284
|
skills from the workspace's skill library, and bind Slack channels to them.
|
|
4283
4285
|
An agent answers @mentions in its channels and works in this workspace
|
|
4284
|
-
through the shared deepline-agent service account (role
|
|
4286
|
+
through the shared deepline-agent service account (role member), the way your
|
|
4285
4287
|
own coding agent works with Deepline.
|
|
4286
4288
|
Set up once (owners and admins):
|
|
4287
4289
|
1. Turn agents on: [[agents enable]]. The first run creates the service
|
|
4288
|
-
account.
|
|
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.
|
|
4289
4293
|
2. Set the model key every agent runs on: [[agents billing set]] reads an
|
|
4290
4294
|
OpenAI or Anthropic API key from piped stdin (deepline agents billing
|
|
4291
4295
|
set < key.txt) or a hidden prompt. An sk-ant- key is Anthropic's; pass
|
|
@@ -4296,7 +4300,9 @@ Set up once (owners and admins):
|
|
|
4296
4300
|
3. Add the agent to your Slack workspace: [[agents slack install]] prints
|
|
4297
4301
|
an "Add to Slack" link. Open it in a browser signed in to Deepline as
|
|
4298
4302
|
you, pick the Slack workspace and approve; the link works once, for 15
|
|
4299
|
-
minutes, and only for you.
|
|
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
|
|
4300
4306
|
bot token, stored encrypted, and only this workspace's channels answer
|
|
4301
4307
|
there. A Slack workspace already connected to another Deepline
|
|
4302
4308
|
workspace is refused. [[agents slack status]] lists where the agent is
|
|
@@ -4320,6 +4326,53 @@ Make an agent (members with the run grant):
|
|
|
4320
4326
|
Only an agent's or skill's creator, or an admin, changes or deletes it:
|
|
4321
4327
|
[[agents update pipeline --skills icp,territories]], [[agents delete pipeline]],
|
|
4322
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.
|
|
4323
4376
|
Feedback:
|
|
4324
4377
|
Each answer the agent posts in Slack carries Helpful / Not helpful buttons.
|
|
4325
4378
|
[[agents feedback]] lists the ratings, newest first; --agent pipeline keeps
|
|
@@ -4345,11 +4398,17 @@ Confirmations:
|
|
|
4345
4398
|
Output (JSON):
|
|
4346
4399
|
list prints workspace {lifecycle, billing {provider (openai, anthropic),
|
|
4347
4400
|
keyLast4} or null} (null before
|
|
4348
|
-
enable), agents[] {name, instructions, skillNames,
|
|
4349
|
-
updatedByUserId, conversations[] {platform,
|
|
4350
|
-
conversationName, createdByUserId, createdAt
|
|
4351
|
-
|
|
4352
|
-
|
|
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.
|
|
4353
4412
|
feedback prints feedback[] {agentName (null once deleted), platform,
|
|
4354
4413
|
conversationId, conversationName, threadTs, messageTs, raterId, rating
|
|
4355
4414
|
(helpful, not_helpful), updatedAt} and cursor (null on the last page).
|
|
@@ -4368,10 +4427,13 @@ Output (JSON):
|
|
|
4368
4427
|
status prints installations[] {teamId, teamName, status (installed,
|
|
4369
4428
|
uninstalled), scopes, installedAt, installedByUserId, uninstalledAt,
|
|
4370
4429
|
uninstallReason (app_uninstalled, tokens_revoked)}; never a token.
|
|
4430
|
+
slack link prints linked, created, slackTeamId and slackUserId; slack
|
|
4431
|
+
unlink prints removed.
|
|
4371
4432
|
Cost:
|
|
4372
4433
|
Model calls are billed to the workspace's OpenAI or Anthropic key, never
|
|
4373
4434
|
to Deepline credits. Tools an agent calls spend Deepline credits as they
|
|
4374
|
-
would for you.
|
|
4435
|
+
would for you. A turn an outcome wakes the agent for is a turn like any
|
|
4436
|
+
other.
|
|
4375
4437
|
Avoid:
|
|
4376
4438
|
Do not pass the model key as an argument; it is refused. Do not bind a
|
|
4377
4439
|
channel the agent's Slack app is not in, or one in a Slack workspace this
|
|
@@ -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 = {}) {
|