deepline 0.3.575 → 0.3.576
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 +13 -1
- package/dist/bundling-sources/shared_libs/play-runtime/context.ts +145 -0
- package/dist/bundling-sources/shared_libs/play-runtime/durable-runs-rollout.ts +17 -0
- package/dist/bundling-sources/shared_libs/play-runtime/experiment-switches.ts +8 -0
- package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/backends/modal.ts +153 -10
- package/dist/bundling-sources/shared_libs/play-runtime/runtime-speed-profile.ts +41 -5
- package/dist/cli/{agents-ULGDKUTM.mjs → agents-BLJR2Y3X.mjs} +35 -4
- package/dist/cli/{agents-BCLO3KQJ.js → agents-CJQ7KBFT.js} +61 -30
- package/dist/cli/auth-GSDYP4ZN.js +44 -0
- package/dist/cli/{auth-4WCL7A6W.mjs → auth-SLZIRCPE.mjs} +5 -5
- package/dist/cli/{billing-7JQ6EUQU.mjs → billing-6Q4SK5KF.mjs} +9 -9
- package/dist/cli/{billing-BF5LVXOM.js → billing-IECMVARO.js} +102 -102
- package/dist/cli/{chunk-2T7XOKVL.mjs → chunk-2UHEJPSS.mjs} +5 -5
- package/dist/cli/{chunk-AO56MZ7D.js → chunk-36254433.js} +3 -3
- package/dist/cli/{chunk-EZIXKNKM.js → chunk-45POZK3F.js} +3 -3
- package/dist/cli/{chunk-5H6254MJ.js → chunk-4KIIXV5Z.js} +16 -16
- package/dist/cli/{chunk-GQZFZG6R.mjs → chunk-5VABOJ4M.mjs} +2 -2
- package/dist/cli/{chunk-TTBZ7QXX.mjs → chunk-66K7F7LR.mjs} +1 -1
- package/dist/cli/{chunk-HEOM3FAC.js → chunk-6JQZC6HX.js} +20 -20
- package/dist/cli/{chunk-XFV353R2.js → chunk-6RY5COUY.js} +23 -23
- package/dist/cli/{chunk-RHRRY2BX.mjs → chunk-7DI34I73.mjs} +3 -3
- package/dist/cli/{chunk-ZYSJND73.js → chunk-ANPHEXTT.js} +9 -9
- package/dist/cli/{chunk-JGLCK2XF.mjs → chunk-AUR24RQB.mjs} +2 -2
- package/dist/cli/{chunk-FDCU3VAJ.mjs → chunk-AZFSCPYK.mjs} +18 -1
- package/dist/cli/{chunk-YNAXKA23.js → chunk-BRPUB6UA.js} +5 -5
- package/dist/cli/{chunk-BM536WWR.mjs → chunk-CUIFDMNP.mjs} +11 -1
- package/dist/cli/{chunk-SYQTBHRX.mjs → chunk-D5LWYP2H.mjs} +3 -3
- package/dist/cli/{chunk-ZQXJYO5P.js → chunk-DGY4EYIX.js} +5 -5
- package/dist/cli/{chunk-2UM3I2MY.js → chunk-E4M4QZBP.js} +11 -1
- package/dist/cli/{chunk-V5XLENWK.js → chunk-EQO77FQZ.js} +5 -5
- package/dist/cli/{chunk-H6JMRLAZ.js → chunk-F4H26PP6.js} +100 -100
- package/dist/cli/{chunk-MN7JLH2T.mjs → chunk-GI57Q7JU.mjs} +2 -2
- package/dist/cli/{chunk-ZS6DT4LD.js → chunk-GZ7KYGYE.js} +15 -15
- package/dist/cli/{chunk-TMFR2B45.mjs → chunk-HE53AI2E.mjs} +3 -3
- package/dist/cli/{chunk-6IKLITVH.js → chunk-HHMO3CON.js} +6 -6
- package/dist/cli/{chunk-X47J55ZJ.mjs → chunk-JPFAD6G6.mjs} +2 -2
- package/dist/cli/{chunk-EV3OPDHF.js → chunk-JSIOLCTK.js} +20 -20
- package/dist/cli/{chunk-QKP3WYSZ.mjs → chunk-KQTZO6NT.mjs} +2 -2
- package/dist/cli/{chunk-636GD4IR.js → chunk-L6H72AIX.js} +2 -2
- package/dist/cli/{chunk-IAJ65IDZ.mjs → chunk-LKC7PHDX.mjs} +4 -4
- package/dist/cli/{chunk-HO76C7AE.js → chunk-M23G33MH.js} +2 -2
- package/dist/cli/{chunk-KNCNFL76.js → chunk-MDJ4LPQ5.js} +4 -4
- package/dist/cli/{chunk-DMPGJCNZ.js → chunk-MXPCTF57.js} +18 -1
- package/dist/cli/{chunk-FXXERR52.js → chunk-NQFZ7FYN.js} +10 -10
- package/dist/cli/{chunk-MWLOBURN.mjs → chunk-OMVBBAQP.mjs} +2 -2
- package/dist/cli/{chunk-737Y7QGT.js → chunk-OXRG325T.js} +41 -41
- package/dist/cli/{chunk-CVY4MBXH.mjs → chunk-PU5VCDCJ.mjs} +5 -5
- package/dist/cli/{chunk-5VSHQG5E.js → chunk-PYFMNPTA.js} +8 -8
- package/dist/cli/{chunk-IOWLFWWG.mjs → chunk-QCD7BQ5Z.mjs} +2 -2
- package/dist/cli/{chunk-QEDRUURT.mjs → chunk-R5NKLZL2.mjs} +1 -1
- package/dist/cli/{chunk-E4RYSSXX.mjs → chunk-S4IW4NAI.mjs} +1 -1
- package/dist/cli/{chunk-7DLAJ6JJ.js → chunk-SBZSJQEI.js} +53 -53
- package/dist/cli/{chunk-BQUAE6LQ.mjs → chunk-SY3OKOI5.mjs} +1 -1
- package/dist/cli/{chunk-NF722E6C.mjs → chunk-TZHS2W5Z.mjs} +1 -1
- package/dist/cli/{chunk-AS5XGOZY.js → chunk-UD6M2ZTY.js} +2 -2
- package/dist/cli/{chunk-56N3XAT6.mjs → chunk-UGIH4462.mjs} +5 -5
- package/dist/cli/{chunk-PQYDO72W.js → chunk-V25CXBR2.js} +26 -26
- package/dist/cli/{chunk-GB4IZ5TV.js → chunk-WDWV77SJ.js} +13 -13
- package/dist/cli/{chunk-G4WPDCXA.js → chunk-WPGZ6V36.js} +48 -48
- package/dist/cli/{chunk-UQZP7XBQ.mjs → chunk-X5V6S5KI.mjs} +5 -5
- package/dist/cli/{chunk-IBYMGR5Y.mjs → chunk-XJNJ3BWU.mjs} +1 -1
- package/dist/cli/{chunk-G2H6SQQY.js → chunk-Y4A6Y5EY.js} +7 -7
- package/dist/cli/{chunk-5D7OJY4W.mjs → chunk-YHM64N5C.mjs} +1 -1
- package/dist/cli/{chunk-H3CG72RZ.mjs → chunk-ZIGMC2X4.mjs} +11 -11
- package/dist/cli/{chunk-3PVKXUSJ.mjs → chunk-ZRC52APB.mjs} +1 -1
- package/dist/cli/{chunk-BONMEBWZ.mjs → chunk-ZYN6S6G2.mjs} +4 -4
- package/dist/cli/command-docs.js +2 -2
- package/dist/cli/command-docs.mjs +1 -1
- package/dist/cli/{concurrent-runs-help-HITK6EOO.mjs → concurrent-runs-help-H3SA7J6H.mjs} +6 -6
- package/dist/cli/concurrent-runs-help-PB7GT6F2.js +22 -0
- package/dist/cli/{csv-RS7XHQ4P.js → csv-6DEKR3QQ.js} +13 -13
- package/dist/cli/{csv-V2T23MXT.mjs → csv-ICXI7JAS.mjs} +4 -4
- package/dist/cli/{db-WFIVRPKY.js → db-AG7INMLP.js} +27 -27
- package/dist/cli/{db-OQ4RNTGE.mjs → db-VI7T5E6O.mjs} +6 -6
- package/dist/cli/describe-LMHIG3DP.js +50 -0
- package/dist/cli/{describe-AXV2EEX3.mjs → describe-S6NFWWGK.mjs} +18 -18
- package/dist/cli/{executions-5H2RIWZ3.js → executions-M5R5QHIA.js} +8 -8
- package/dist/cli/{executions-THP5ZDBQ.mjs → executions-MK7H4Q2H.mjs} +6 -6
- package/dist/cli/{feedback-UOI6UEGA.js → feedback-L3L4FEQL.js} +14 -14
- package/dist/cli/{feedback-2EJPILGE.mjs → feedback-ZHATL2XF.mjs} +6 -6
- package/dist/cli/{git-DI3LJIAT.mjs → git-W5DHNH2Q.mjs} +5 -5
- package/dist/cli/git-WYNCLDHD.js +26 -0
- package/dist/cli/index.js +148 -148
- package/dist/cli/index.mjs +47 -47
- package/dist/cli/{integrations-DJYS5VRK.mjs → integrations-73YSN2LI.mjs} +7 -7
- package/dist/cli/{integrations-TYN2BSQ6.js → integrations-IBWNO3YP.js} +29 -29
- package/dist/cli/{legacy-noops-Z457BB6O.mjs → legacy-noops-4LFZJTDX.mjs} +6 -6
- package/dist/cli/{legacy-noops-GXQHNLGJ.js → legacy-noops-AE6DBYJM.js} +9 -9
- package/dist/cli/{mcp-WMBOOTQL.js → mcp-BKL6M6OI.js} +24 -24
- package/dist/cli/{mcp-NAW3GFNN.mjs → mcp-E6PTSNDE.mjs} +4 -4
- package/dist/cli/{monitors-A7NYAXSJ.mjs → monitors-MXJ27KQK.mjs} +7 -7
- package/dist/cli/{monitors-OOQVE7XR.js → monitors-SW7ZCPPT.js} +100 -100
- package/dist/cli/{org-7YCDUSZE.mjs → org-HYAJ2MIK.mjs} +6 -6
- package/dist/cli/{org-D2AMIVBS.js → org-XJ44KZ5I.js} +121 -121
- package/dist/cli/{outcomes-2FKZDJSQ.js → outcomes-PTXGG4BZ.js} +14 -14
- package/dist/cli/{outcomes-TNTKCUEO.mjs → outcomes-PUMAXRGD.mjs} +6 -6
- package/dist/cli/{play-NWKHCHVZ.js → play-EPDZ3GDV.js} +336 -336
- package/dist/cli/{play-L6CVHSN4.mjs → play-QN3X6IAE.mjs} +19 -19
- package/dist/cli/{providers-PZGOI5CN.js → providers-GNJFGNDH.js} +9 -9
- package/dist/cli/{providers-22LO747B.mjs → providers-JIN5UQ7Z.mjs} +6 -6
- package/dist/cli/{quickstart-3ZRVKGMH.mjs → quickstart-4EBFHGB7.mjs} +4 -4
- package/dist/cli/{quickstart-LLWOC2GR.js → quickstart-YH6NNC5I.js} +6 -6
- package/dist/cli/{run-SNF23STR.js → run-4DRF7KQJ.js} +44 -44
- package/dist/cli/{run-D46W2GUA.mjs → run-5467KBCP.mjs} +23 -23
- package/dist/cli/search-B2KCWPUV.js +32 -0
- package/dist/cli/{search-XWVCICIX.mjs → search-ZERTOGH6.mjs} +7 -7
- package/dist/cli/{search-output-YM5QXFQQ.mjs → search-output-OAVJXRFO.mjs} +4 -4
- package/dist/cli/{search-output-36GHD67U.js → search-output-OMNZN2LP.js} +6 -6
- package/dist/cli/{secrets-UXCIHG5I.js → secrets-7XK2BGYX.js} +15 -15
- package/dist/cli/{secrets-7PTZEFRC.mjs → secrets-KAVDYB4P.mjs} +6 -6
- package/dist/cli/sessions-PUQURPPC.js +23 -0
- package/dist/cli/{sessions-DTXJKRP4.mjs → sessions-TNPI6XWB.mjs} +6 -6
- package/dist/cli/{settings-74B6UOS4.mjs → settings-KUABXRAJ.mjs} +12 -12
- package/dist/cli/{settings-EYSDZE37.js → settings-RQ3Z3JCM.js} +85 -85
- package/dist/cli/{setup-2QRZ36CH.mjs → setup-6IX6BSS7.mjs} +9 -9
- package/dist/cli/{setup-E7PVXBPL.js → setup-TDOWNKYN.js} +49 -49
- package/dist/cli/skills-AACRY2TV.js +37 -0
- package/dist/cli/{skills-2WZ7N3UW.mjs → skills-Z6NBJ4KP.mjs} +7 -7
- package/dist/cli/{tools-YK5SCUZD.mjs → tools-LQKFWK7J.mjs} +17 -17
- package/dist/cli/tools-OTYA4722.js +57 -0
- package/dist/cli/update-JTGMI6OJ.js +37 -0
- package/dist/cli/{update-563YQK53.mjs → update-RUB4EIKW.mjs} +9 -9
- package/dist/cli/{views-ISNCRZUP.mjs → views-D7WY5QPR.mjs} +6 -6
- package/dist/cli/{views-OLPS6TPG.js → views-FFLXLAGC.js} +21 -21
- package/dist/cli/{workflow-B3ZKU3OR.mjs → workflow-BV2OTEQD.mjs} +7 -7
- package/dist/cli/{workflow-CUSCTYMW.js → workflow-QW7QVODA.js} +17 -17
- package/dist/index.js +9 -9
- package/dist/index.mjs +6 -6
- package/dist/install-integrity.json +116 -116
- package/dist/release.d.mts +9 -1
- package/dist/release.d.ts +9 -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-DXUHEL5I.js +0 -44
- package/dist/cli/concurrent-runs-help-JLWY54WL.js +0 -22
- package/dist/cli/describe-33PBWO5O.js +0 -50
- package/dist/cli/git-2OPYEPYW.js +0 -26
- package/dist/cli/search-H57MZPLF.js +0 -32
- package/dist/cli/sessions-JJZMQSH4.js +0 -23
- package/dist/cli/skills-RIF2DCZI.js +0 -37
- package/dist/cli/tools-7VRQ4GSI.js +0 -57
- package/dist/cli/update-CMZAIAES.js +0 -37
|
@@ -1,18 +1,18 @@
|
|
|
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; } var _class; var _class2;
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunkJSIOLCTKjs = require('./chunk-JSIOLCTK.js');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
8
|
-
require('./chunk-
|
|
7
|
+
var _chunk36254433js = require('./chunk-36254433.js');
|
|
8
|
+
require('./chunk-MDJ4LPQ5.js');
|
|
9
9
|
require('./chunk-6VLFQZK6.js');
|
|
10
10
|
require('./chunk-XNYIZMNQ.js');
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
var _chunkLFQJW4S2js = require('./chunk-LFQJW4S2.js');
|
|
14
14
|
require('./chunk-CFJFUVX2.js');
|
|
15
|
-
require('./chunk-
|
|
15
|
+
require('./chunk-E4M4QZBP.js');
|
|
16
16
|
require('./chunk-OG64RBAC.js');
|
|
17
17
|
require('./chunk-COGTRVWW.js');
|
|
18
18
|
|
|
@@ -31,6 +31,17 @@ var MODEL_PROVIDER_NAMES = {
|
|
|
31
31
|
openai: "OpenAI",
|
|
32
32
|
anthropic: "Anthropic"
|
|
33
33
|
};
|
|
34
|
+
var WAKE_STATUS_WORDS = {
|
|
35
|
+
woken: "started a turn",
|
|
36
|
+
nothing_waiting: "found nothing waiting",
|
|
37
|
+
throttled: "was held back: the hourly turn limit was reached",
|
|
38
|
+
not_woken: "started nothing: the agent was not available"
|
|
39
|
+
};
|
|
40
|
+
function describeOwnedOutcome(owned) {
|
|
41
|
+
const watch = owned.watch ? `watch ${owned.watch.key} (ring ${owned.watch.ringState}${owned.watch.lastRingError ? `, last error: ${owned.watch.lastRingError}` : ""})` : `no watch${owned.refusal ? `: ${owned.refusal}` : ""}`;
|
|
42
|
+
const last = owned.lastWake ? `last ring ${new Date(owned.lastWake.at).toISOString()} ${WAKE_STATUS_WORDS[owned.lastWake.status]}${owned.lastWake.what.length > 0 ? ` (${owned.lastWake.what.join(", ")})` : ""}` : "never rung";
|
|
43
|
+
return `${owned.outcome} \u2014 as ${owned.agent}; ${watch}; ${last}; ${owned.turnsInWindow} of ${owned.turnLimit} turns this hour`;
|
|
44
|
+
}
|
|
34
45
|
var REPLIES_MAX_LIMIT = 100;
|
|
35
46
|
var REPLIES_INVALID_CURSOR = "DEEPLINE_AGENT_REPLIES_INVALID_CURSOR";
|
|
36
47
|
var FEEDBACK_MAX_LIMIT = 100;
|
|
@@ -139,7 +150,7 @@ function describeOverview(overview) {
|
|
|
139
150
|
];
|
|
140
151
|
}
|
|
141
152
|
function print(payload, title, lines, options) {
|
|
142
|
-
|
|
153
|
+
_chunkJSIOLCTKjs.printCommandEnvelope.call(void 0,
|
|
143
154
|
{ ...payload, render: { sections: [{ title, lines }] } },
|
|
144
155
|
{ json: options.json }
|
|
145
156
|
);
|
|
@@ -233,7 +244,7 @@ async function readModelKey() {
|
|
|
233
244
|
return Buffer.concat(chunks).toString("utf8").trim();
|
|
234
245
|
}
|
|
235
246
|
async function sendTestMessage(input2) {
|
|
236
|
-
const { http } =
|
|
247
|
+
const { http } = _chunkJSIOLCTKjs.getAuthedHttpClient.call(void 0, );
|
|
237
248
|
return http.post(
|
|
238
249
|
`${AGENT_PATH}/test`,
|
|
239
250
|
{
|
|
@@ -324,7 +335,7 @@ async function handleChat(channelId, options) {
|
|
|
324
335
|
threadId = reply.threadId;
|
|
325
336
|
const text = describeReply(channelId, reply, true).map((line2) => `agent> ${line2}
|
|
326
337
|
`).join("");
|
|
327
|
-
|
|
338
|
+
_chunkJSIOLCTKjs.printCommandEnvelope.call(void 0, reply, { json: false, text });
|
|
328
339
|
}
|
|
329
340
|
} finally {
|
|
330
341
|
rl.close();
|
|
@@ -334,7 +345,7 @@ function registerWorkspaceCommands(agents, readKey) {
|
|
|
334
345
|
agents.command("list").description(
|
|
335
346
|
"Show whether agents are on, their model billing, every agent with its channels, and the skill library."
|
|
336
347
|
).option("--json", "Emit JSON output").action(async (options) => {
|
|
337
|
-
const { http } =
|
|
348
|
+
const { http } = _chunkJSIOLCTKjs.getAuthedHttpClient.call(void 0, );
|
|
338
349
|
const overview = await http.get(AGENT_PATH);
|
|
339
350
|
print(overview, "deepline agents", describeOverview(overview), options);
|
|
340
351
|
});
|
|
@@ -345,7 +356,7 @@ function registerWorkspaceCommands(agents, readKey) {
|
|
|
345
356
|
printDryRun("POST", `${AGENT_PATH}/enable`, {}, options);
|
|
346
357
|
return;
|
|
347
358
|
}
|
|
348
|
-
const { http } =
|
|
359
|
+
const { http } = _chunkJSIOLCTKjs.getAuthedHttpClient.call(void 0, );
|
|
349
360
|
const result = await http.post(
|
|
350
361
|
`${AGENT_PATH}/enable`,
|
|
351
362
|
{}
|
|
@@ -367,7 +378,7 @@ function registerWorkspaceCommands(agents, readKey) {
|
|
|
367
378
|
printDryRun("POST", `${AGENT_PATH}/disable`, {}, options);
|
|
368
379
|
return;
|
|
369
380
|
}
|
|
370
|
-
const { http } =
|
|
381
|
+
const { http } = _chunkJSIOLCTKjs.getAuthedHttpClient.call(void 0, );
|
|
371
382
|
const result = await http.post(
|
|
372
383
|
`${AGENT_PATH}/disable`,
|
|
373
384
|
{}
|
|
@@ -399,7 +410,7 @@ function registerWorkspaceCommands(agents, readKey) {
|
|
|
399
410
|
}
|
|
400
411
|
const apiKey = await readKey();
|
|
401
412
|
if (!apiKey) throw new AgentUsageError("No key was given.");
|
|
402
|
-
const { http } =
|
|
413
|
+
const { http } = _chunkJSIOLCTKjs.getAuthedHttpClient.call(void 0, );
|
|
403
414
|
const overview = await http.put(`${AGENT_PATH}/billing`, {
|
|
404
415
|
mode: "own_key",
|
|
405
416
|
provider: _nullishCoalesce(options.provider, () => ( keyProvider(apiKey))),
|
|
@@ -411,7 +422,7 @@ function registerWorkspaceCommands(agents, readKey) {
|
|
|
411
422
|
agents.command("models").description(
|
|
412
423
|
"List the models an agent or one of its channels can run on, and which your workspace\u2019s key can run."
|
|
413
424
|
).option("--json", "Emit JSON output").action(async (options) => {
|
|
414
|
-
const { http } =
|
|
425
|
+
const { http } = _chunkJSIOLCTKjs.getAuthedHttpClient.call(void 0, );
|
|
415
426
|
const result = await http.get(
|
|
416
427
|
`${AGENT_PATH}/models`
|
|
417
428
|
);
|
|
@@ -432,10 +443,30 @@ function registerWorkspaceCommands(agents, readKey) {
|
|
|
432
443
|
options
|
|
433
444
|
);
|
|
434
445
|
});
|
|
446
|
+
agents.command("outcomes").description(
|
|
447
|
+
"List the outcomes Bot by Deepline owns by default (those with no home channel), with what woke it last on each."
|
|
448
|
+
).option("--json", "Emit JSON output").action(async (options) => {
|
|
449
|
+
const { http } = _chunkJSIOLCTKjs.getAuthedHttpClient.call(void 0, );
|
|
450
|
+
const result = await http.get(
|
|
451
|
+
`${AGENT_PATH}/outcomes`
|
|
452
|
+
);
|
|
453
|
+
print(
|
|
454
|
+
result,
|
|
455
|
+
"outcomes Bot by Deepline owns",
|
|
456
|
+
result.owners.length === 0 ? [
|
|
457
|
+
"None. Bot by Deepline owns every outcome with no home channel while agents are on (deepline agents enable) and this deployment can be rung."
|
|
458
|
+
] : [
|
|
459
|
+
...result.owners.map(describeOwnedOutcome),
|
|
460
|
+
...result.more ? ["More outcomes than are listed here."] : [],
|
|
461
|
+
"The watch and what waits for it: deepline outcomes watches list <outcome>"
|
|
462
|
+
],
|
|
463
|
+
options
|
|
464
|
+
);
|
|
465
|
+
});
|
|
435
466
|
}
|
|
436
467
|
function registerAgentCommands(agents) {
|
|
437
468
|
agents.command("get").description("Show one agent: its instructions, skills and channels.").argument("<name>", "Agent name").option("--json", "Emit JSON output").action(async (name, options) => {
|
|
438
|
-
const { http } =
|
|
469
|
+
const { http } = _chunkJSIOLCTKjs.getAuthedHttpClient.call(void 0, );
|
|
439
470
|
const result = await http.get(
|
|
440
471
|
`${AGENT_PATH}/agents/${encodeURIComponent(requireArgument(name, "an agent name"))}`
|
|
441
472
|
);
|
|
@@ -465,7 +496,7 @@ function registerAgentCommands(agents) {
|
|
|
465
496
|
printDryRun("POST", `${AGENT_PATH}/agents`, body, options);
|
|
466
497
|
return;
|
|
467
498
|
}
|
|
468
|
-
const { http } =
|
|
499
|
+
const { http } = _chunkJSIOLCTKjs.getAuthedHttpClient.call(void 0, );
|
|
469
500
|
const result = await http.post(
|
|
470
501
|
`${AGENT_PATH}/agents`,
|
|
471
502
|
body
|
|
@@ -509,7 +540,7 @@ function registerAgentCommands(agents) {
|
|
|
509
540
|
printDryRun("PATCH", path, body, options);
|
|
510
541
|
return;
|
|
511
542
|
}
|
|
512
|
-
const { http } =
|
|
543
|
+
const { http } = _chunkJSIOLCTKjs.getAuthedHttpClient.call(void 0, );
|
|
513
544
|
const result = await http.patch(path, body);
|
|
514
545
|
print(result, "agent updated", describeAgent(result.agent), options);
|
|
515
546
|
}
|
|
@@ -522,7 +553,7 @@ function registerAgentCommands(agents) {
|
|
|
522
553
|
printDryRun("DELETE", path, null, options);
|
|
523
554
|
return;
|
|
524
555
|
}
|
|
525
|
-
const { http } =
|
|
556
|
+
const { http } = _chunkJSIOLCTKjs.getAuthedHttpClient.call(void 0, );
|
|
526
557
|
const result = await http.delete(path);
|
|
527
558
|
print(
|
|
528
559
|
result,
|
|
@@ -565,7 +596,7 @@ function registerChannelCommands(agents) {
|
|
|
565
596
|
printDryRun("POST", `${AGENT_PATH}/channels`, body, options);
|
|
566
597
|
return;
|
|
567
598
|
}
|
|
568
|
-
const { http } =
|
|
599
|
+
const { http } = _chunkJSIOLCTKjs.getAuthedHttpClient.call(void 0, );
|
|
569
600
|
const result = await http.post(`${AGENT_PATH}/channels`, body);
|
|
570
601
|
print(
|
|
571
602
|
result,
|
|
@@ -617,7 +648,7 @@ function registerChannelCommands(agents) {
|
|
|
617
648
|
printDryRun("PATCH", path, body, options);
|
|
618
649
|
return;
|
|
619
650
|
}
|
|
620
|
-
const { http } =
|
|
651
|
+
const { http } = _chunkJSIOLCTKjs.getAuthedHttpClient.call(void 0, );
|
|
621
652
|
const result = await http.patch(path, body);
|
|
622
653
|
print(
|
|
623
654
|
result,
|
|
@@ -645,7 +676,7 @@ function registerChannelCommands(agents) {
|
|
|
645
676
|
printDryRun("DELETE", path, null, options);
|
|
646
677
|
return;
|
|
647
678
|
}
|
|
648
|
-
const { http } =
|
|
679
|
+
const { http } = _chunkJSIOLCTKjs.getAuthedHttpClient.call(void 0, );
|
|
649
680
|
const result = await http.delete(path);
|
|
650
681
|
print(
|
|
651
682
|
result,
|
|
@@ -681,7 +712,7 @@ function registerSlackCommands(agents) {
|
|
|
681
712
|
slack.command("install").description(
|
|
682
713
|
"Print a link that adds the agent to a Slack workspace (owners and admins). Open it, pick the Slack workspace and approve."
|
|
683
714
|
).option("--json", "Emit JSON output").action(async (options) => {
|
|
684
|
-
const { http } =
|
|
715
|
+
const { http } = _chunkJSIOLCTKjs.getAuthedHttpClient.call(void 0, );
|
|
685
716
|
const result = await http.post(
|
|
686
717
|
`${AGENT_PATH}/slack/install`,
|
|
687
718
|
{}
|
|
@@ -700,7 +731,7 @@ function registerSlackCommands(agents) {
|
|
|
700
731
|
slack.command("link").description(
|
|
701
732
|
"Say which Slack user you are, with the code from the link the agent showed you in Slack. Your clicks there (answering an ask, connecting a channel) are then made as you."
|
|
702
733
|
).argument("<code>", "The code from the link, or the whole link").option("--json", "Emit JSON output").action(async (code, options) => {
|
|
703
|
-
const { http } =
|
|
734
|
+
const { http } = _chunkJSIOLCTKjs.getAuthedHttpClient.call(void 0, );
|
|
704
735
|
const result = await http.post(`${AGENT_PATH}/slack/link`, { code: slackLinkCode(code) });
|
|
705
736
|
print(
|
|
706
737
|
result,
|
|
@@ -714,7 +745,7 @@ function registerSlackCommands(agents) {
|
|
|
714
745
|
slack.command("unlink").description(
|
|
715
746
|
"Forget which Slack user you are in this workspace. Your clicks in Slack decide nothing until you link again."
|
|
716
747
|
).option("--json", "Emit JSON output").action(async (options) => {
|
|
717
|
-
const { http } =
|
|
748
|
+
const { http } = _chunkJSIOLCTKjs.getAuthedHttpClient.call(void 0, );
|
|
718
749
|
const result = await http.delete(
|
|
719
750
|
`${AGENT_PATH}/slack/link`
|
|
720
751
|
);
|
|
@@ -730,7 +761,7 @@ function registerSlackCommands(agents) {
|
|
|
730
761
|
slack.command("status").description(
|
|
731
762
|
"List the Slack workspaces this workspace installed the agent in."
|
|
732
763
|
).option("--json", "Emit JSON output").action(async (options) => {
|
|
733
|
-
const { http } =
|
|
764
|
+
const { http } = _chunkJSIOLCTKjs.getAuthedHttpClient.call(void 0, );
|
|
734
765
|
const result = await http.get(
|
|
735
766
|
`${AGENT_PATH}/slack/installations`
|
|
736
767
|
);
|
|
@@ -749,7 +780,7 @@ function registerSkillCommands(agents) {
|
|
|
749
780
|
"The workspace\u2019s skill library: markdown an agent loads when its description matches the task."
|
|
750
781
|
);
|
|
751
782
|
skills.command("get").description("Show one library skill with its markdown.").argument("<name>", "Skill name").option("--json", "Emit JSON output").action(async (name, options) => {
|
|
752
|
-
const { http } =
|
|
783
|
+
const { http } = _chunkJSIOLCTKjs.getAuthedHttpClient.call(void 0, );
|
|
753
784
|
const result = await http.get(
|
|
754
785
|
`${AGENT_PATH}/skills/${encodeURIComponent(requireArgument(name, "a skill name"))}`
|
|
755
786
|
);
|
|
@@ -787,7 +818,7 @@ function registerSkillCommands(agents) {
|
|
|
787
818
|
printDryRun("PUT", path, body, options);
|
|
788
819
|
return;
|
|
789
820
|
}
|
|
790
|
-
const { http } =
|
|
821
|
+
const { http } = _chunkJSIOLCTKjs.getAuthedHttpClient.call(void 0, );
|
|
791
822
|
const result = await http.put(path, body);
|
|
792
823
|
print(
|
|
793
824
|
result,
|
|
@@ -810,7 +841,7 @@ function registerSkillCommands(agents) {
|
|
|
810
841
|
printDryRun("DELETE", path, null, options);
|
|
811
842
|
return;
|
|
812
843
|
}
|
|
813
|
-
const { http } =
|
|
844
|
+
const { http } = _chunkJSIOLCTKjs.getAuthedHttpClient.call(void 0, );
|
|
814
845
|
const result = await http.delete(path);
|
|
815
846
|
print(
|
|
816
847
|
result,
|
|
@@ -864,7 +895,7 @@ function registerFeedbackCommand(agents) {
|
|
|
864
895
|
params.set("cursor", requireArgument(options.cursor, "--cursor"));
|
|
865
896
|
}
|
|
866
897
|
const query = params.toString();
|
|
867
|
-
const { http } =
|
|
898
|
+
const { http } = _chunkJSIOLCTKjs.getAuthedHttpClient.call(void 0, );
|
|
868
899
|
const page = await http.get(
|
|
869
900
|
`${AGENT_PATH}/feedback${query ? `?${query}` : ""}`
|
|
870
901
|
).catch((error) => {
|
|
@@ -927,7 +958,7 @@ function registerRepliesCommand(agents) {
|
|
|
927
958
|
params.set("cursor", requireArgument(options.cursor, "--cursor"));
|
|
928
959
|
}
|
|
929
960
|
const query = params.toString();
|
|
930
|
-
const { http } =
|
|
961
|
+
const { http } = _chunkJSIOLCTKjs.getAuthedHttpClient.call(void 0, );
|
|
931
962
|
const page = await http.get(`${AGENT_PATH}/replies${query ? `?${query}` : ""}`).catch((error) => {
|
|
932
963
|
if (error instanceof _chunkLFQJW4S2js.DeeplineError && error.code === REPLIES_INVALID_CURSOR) {
|
|
933
964
|
throw new AgentUsageError(`--cursor: ${error.message}`);
|
|
@@ -953,13 +984,13 @@ function registerActivityCommand(agents) {
|
|
|
953
984
|
agents.command("activity").description(
|
|
954
985
|
"Sum each agent's replies over the last 7 days: how many, how they ended, median time, tokens and the last reply."
|
|
955
986
|
).option("--json", "Emit JSON output").action(async (options) => {
|
|
956
|
-
const { http } =
|
|
987
|
+
const { http } = _chunkJSIOLCTKjs.getAuthedHttpClient.call(void 0, );
|
|
957
988
|
const activity = await http.get(`${AGENT_PATH}/activity`);
|
|
958
989
|
print(activity, "agent activity", describeActivity(activity), options);
|
|
959
990
|
});
|
|
960
991
|
}
|
|
961
992
|
function registerAgentsCommands(program, readKey = readModelKey) {
|
|
962
|
-
const agents = program.command("agents", { hidden: !
|
|
993
|
+
const agents = program.command("agents", { hidden: !_chunk36254433js.cliFeatureEnabled.call(void 0, AGENT_FEATURE) }).description(
|
|
963
994
|
"Deepline agents in Slack: create agents with instructions and skills, bind channels to them, and talk to them."
|
|
964
995
|
);
|
|
965
996
|
registerWorkspaceCommands(agents, readKey);
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
var _chunkSBZSJQEIjs = require('./chunk-SBZSJQEI.js');
|
|
18
|
+
require('./chunk-JSIOLCTK.js');
|
|
19
|
+
require('./chunk-36254433.js');
|
|
20
|
+
require('./chunk-MDJ4LPQ5.js');
|
|
21
|
+
require('./chunk-6VLFQZK6.js');
|
|
22
|
+
require('./chunk-XNYIZMNQ.js');
|
|
23
|
+
require('./chunk-LFQJW4S2.js');
|
|
24
|
+
require('./chunk-CFJFUVX2.js');
|
|
25
|
+
require('./chunk-E4M4QZBP.js');
|
|
26
|
+
require('./chunk-OG64RBAC.js');
|
|
27
|
+
require('./chunk-COGTRVWW.js');
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
exports.EXIT_WORKSPACE_MISMATCH = _chunkSBZSJQEIjs.EXIT_WORKSPACE_MISMATCH; exports.authStatusLine = _chunkSBZSJQEIjs.authStatusLine; exports.clearPendingClaim = _chunkSBZSJQEIjs.clearPendingClaim; exports.clearSatisfiedPendingClaim = _chunkSBZSJQEIjs.clearSatisfiedPendingClaim; exports.handleRegister = _chunkSBZSJQEIjs.handleRegister; exports.handleStatus = _chunkSBZSJQEIjs.handleStatus; exports.handleWait = _chunkSBZSJQEIjs.handleWait; exports.httpJson = _chunkSBZSJQEIjs.httpJson; exports.readPendingAuthClaim = _chunkSBZSJQEIjs.readPendingAuthClaim; exports.readStatusBanner = _chunkSBZSJQEIjs.readStatusBanner; exports.registerAuthCommands = _chunkSBZSJQEIjs.registerAuthCommands; exports.reportApprovalLinkShown = _chunkSBZSJQEIjs.reportApprovalLinkShown; exports.reportSetupCompleted = _chunkSBZSJQEIjs.reportSetupCompleted; exports.resolvePendingAuthClaimForResume = _chunkSBZSJQEIjs.resolvePendingAuthClaimForResume; exports.statusBannerLine = _chunkSBZSJQEIjs.statusBannerLine;
|
|
@@ -14,15 +14,15 @@ import {
|
|
|
14
14
|
reportSetupCompleted,
|
|
15
15
|
resolvePendingAuthClaimForResume,
|
|
16
16
|
statusBannerLine
|
|
17
|
-
} from "./chunk-
|
|
18
|
-
import "./chunk-
|
|
19
|
-
import "./chunk-
|
|
20
|
-
import "./chunk-
|
|
17
|
+
} from "./chunk-HE53AI2E.mjs";
|
|
18
|
+
import "./chunk-JPFAD6G6.mjs";
|
|
19
|
+
import "./chunk-ZRC52APB.mjs";
|
|
20
|
+
import "./chunk-XJNJ3BWU.mjs";
|
|
21
21
|
import "./chunk-ASB47RXJ.mjs";
|
|
22
22
|
import "./chunk-DLIRSHV6.mjs";
|
|
23
23
|
import "./chunk-Z3A2S3QM.mjs";
|
|
24
24
|
import "./chunk-2MGZAI54.mjs";
|
|
25
|
-
import "./chunk-
|
|
25
|
+
import "./chunk-CUIFDMNP.mjs";
|
|
26
26
|
import "./chunk-WZYKRD7T.mjs";
|
|
27
27
|
import "./chunk-KRD6H754.mjs";
|
|
28
28
|
export {
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
import {
|
|
2
2
|
concurrentRunsLine
|
|
3
|
-
} from "./chunk-
|
|
4
|
-
import "./chunk-
|
|
3
|
+
} from "./chunk-KQTZO6NT.mjs";
|
|
4
|
+
import "./chunk-HE53AI2E.mjs";
|
|
5
5
|
import {
|
|
6
6
|
DeeplineClient
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-QCD7BQ5Z.mjs";
|
|
8
8
|
import {
|
|
9
9
|
PUBLIC_PLAN_SKUS,
|
|
10
10
|
iterateCursorPages,
|
|
11
11
|
requireBillingIdempotencyKey
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-R5NKLZL2.mjs";
|
|
13
13
|
import "./chunk-FZHMNK6F.mjs";
|
|
14
14
|
import "./chunk-5TYLSS4Q.mjs";
|
|
15
15
|
import "./chunk-PSX3WHIH.mjs";
|
|
16
16
|
import {
|
|
17
17
|
PLAY_RUNTIME_PRICING_NOTE
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-AZFSCPYK.mjs";
|
|
19
19
|
import {
|
|
20
20
|
PRICING_PAGE_NOTE
|
|
21
21
|
} from "./chunk-HECXJBED.mjs";
|
|
@@ -32,9 +32,9 @@ import {
|
|
|
32
32
|
openInBrowser,
|
|
33
33
|
printCommandEnvelope,
|
|
34
34
|
shouldEmitJson
|
|
35
|
-
} from "./chunk-
|
|
36
|
-
import "./chunk-
|
|
37
|
-
import "./chunk-
|
|
35
|
+
} from "./chunk-JPFAD6G6.mjs";
|
|
36
|
+
import "./chunk-ZRC52APB.mjs";
|
|
37
|
+
import "./chunk-XJNJ3BWU.mjs";
|
|
38
38
|
import {
|
|
39
39
|
AuthError,
|
|
40
40
|
ConfigError
|
|
@@ -44,7 +44,7 @@ import {
|
|
|
44
44
|
DeeplineError
|
|
45
45
|
} from "./chunk-Z3A2S3QM.mjs";
|
|
46
46
|
import "./chunk-2MGZAI54.mjs";
|
|
47
|
-
import "./chunk-
|
|
47
|
+
import "./chunk-CUIFDMNP.mjs";
|
|
48
48
|
import "./chunk-WZYKRD7T.mjs";
|
|
49
49
|
import "./chunk-KRD6H754.mjs";
|
|
50
50
|
|