deepline 0.3.581 → 0.3.583
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 +4 -4
- package/dist/bundling-sources/shared_libs/observability/scheduled-work-manual.ts +1 -0
- package/dist/bundling-sources/shared_libs/play-runtime/internal-bootstrap-token.ts +14 -0
- package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/early-sandbox.ts +53 -6
- package/dist/bundling-sources/shared_libs/play-runtime/runtime-operation-contract.ts +14 -0
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/absurd-runtime-worker.ts +69 -0
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/early-sandbox-lane.ts +33 -4
- package/dist/cli/{agents-VDQSVDSM.mjs → agents-G344SPW2.mjs} +68 -4
- package/dist/cli/{agents-UDTRMWPA.js → agents-ZPDXVPEE.js} +95 -31
- package/dist/cli/{auth-SRN5FXUQ.mjs → auth-V66RP2A6.mjs} +5 -5
- package/dist/cli/auth-VU6VIPVY.js +44 -0
- package/dist/cli/{billing-PR2SIEJM.mjs → billing-BTMGZJCR.mjs} +9 -9
- package/dist/cli/{billing-HGHIOFSA.js → billing-ROYUQF67.js} +105 -105
- package/dist/cli/{chunk-7VOSQARZ.js → chunk-23LYXVI4.js} +6 -6
- package/dist/cli/{chunk-JQK42HZQ.js → chunk-2D5YISAL.js} +2 -2
- package/dist/cli/{chunk-RA3BWUTD.mjs → chunk-2QIVGZKS.mjs} +5 -5
- package/dist/cli/{chunk-WS5ZX4RB.mjs → chunk-43MKV6E4.mjs} +3 -3
- package/dist/cli/{chunk-5XVDZVCR.js → chunk-6GYGMWQV.js} +8 -8
- package/dist/cli/{chunk-KDITCSPN.mjs → chunk-6S3OAJCJ.mjs} +19 -0
- package/dist/cli/{chunk-EHTD65FE.mjs → chunk-72MEXMSH.mjs} +1 -1
- package/dist/cli/{chunk-CN4MXBZ3.js → chunk-73IZARR5.js} +13 -13
- package/dist/cli/{chunk-ULU4MEXN.mjs → chunk-7AFTLM74.mjs} +2 -2
- package/dist/cli/{chunk-VTPMBOHZ.mjs → chunk-ACS6BYE5.mjs} +2 -2
- package/dist/cli/{chunk-MSCYYFLY.js → chunk-AHQDUMDM.js} +20 -20
- package/dist/cli/{chunk-CDIMI54H.mjs → chunk-AXKFZIXC.mjs} +2 -2
- package/dist/cli/{chunk-2MIJMDGF.mjs → chunk-AXOQ2FMS.mjs} +1 -1
- package/dist/cli/{chunk-6U3THMRI.js → chunk-BUMCOVBP.js} +5 -5
- package/dist/cli/{chunk-ZTKLJADJ.mjs → chunk-C233ZRNX.mjs} +4 -4
- package/dist/cli/{chunk-INRXX4SX.js → chunk-C7UCDL2K.js} +41 -41
- package/dist/cli/{chunk-ZAKNDIK7.js → chunk-CCC3NIYB.js} +9 -9
- package/dist/cli/{chunk-N5VJVVVV.mjs → chunk-DNYFNOWG.mjs} +5 -5
- package/dist/cli/{chunk-VVENTTSA.mjs → chunk-EHV52KUV.mjs} +1 -1
- package/dist/cli/{chunk-WCNJSZHC.mjs → chunk-GFX6CDAB.mjs} +5 -5
- package/dist/cli/{chunk-J6ITN2X6.js → chunk-GQHZV7EQ.js} +7 -7
- package/dist/cli/{chunk-SNYH4QY2.js → chunk-H4BYWEV5.js} +4 -4
- package/dist/cli/{chunk-DZMQV5FL.mjs → chunk-H7F3ROT3.mjs} +2 -2
- package/dist/cli/{chunk-3FMGBMT3.mjs → chunk-HOGRT5X6.mjs} +1 -1
- package/dist/cli/{chunk-LJZESBNY.js → chunk-HYT5B2NL.js} +2 -2
- package/dist/cli/{chunk-INXRW5AF.mjs → chunk-J54DMFV5.mjs} +2 -2
- package/dist/cli/{chunk-OVJWDFIL.mjs → chunk-JQT3SHXL.mjs} +1 -1
- package/dist/cli/{chunk-46EBSUZF.mjs → chunk-K6GDSCFL.mjs} +3 -3
- package/dist/cli/{chunk-YTPXKG4C.mjs → chunk-KSXBLXLV.mjs} +1 -1
- package/dist/cli/{chunk-Y36SQMSN.js → chunk-LHD3HOYN.js} +19 -0
- package/dist/cli/{chunk-WVFDPC4K.mjs → chunk-LVJAHM2I.mjs} +3 -3
- package/dist/cli/{chunk-CNRPE3AE.js → chunk-MEAWK5G7.js} +53 -53
- package/dist/cli/{chunk-3LP7J63L.js → chunk-MFPHCUHK.js} +5 -5
- package/dist/cli/{chunk-ALXIC5U5.mjs → chunk-N5RCXI3M.mjs} +5 -5
- package/dist/cli/{chunk-E5ITZIWK.js → chunk-N5XRUZRS.js} +16 -16
- package/dist/cli/{chunk-BDNQDWGI.mjs → chunk-P2YNTAGL.mjs} +2 -2
- package/dist/cli/{chunk-E2EGQNOS.js → chunk-PGUK5VPC.js} +2 -2
- package/dist/cli/{chunk-VWPM4OIC.js → chunk-PULU5YGX.js} +20 -20
- package/dist/cli/{chunk-P5ZZY4RM.mjs → chunk-PVDP3AZY.mjs} +4 -4
- package/dist/cli/{chunk-PLGJG5FX.js → chunk-QGOHEJVJ.js} +5 -5
- package/dist/cli/{chunk-BQL34VOQ.js → chunk-QPN662ZP.js} +100 -100
- package/dist/cli/{chunk-KO6OLYSD.js → chunk-RO2LTLJA.js} +48 -48
- package/dist/cli/{chunk-VNW454PP.mjs → chunk-ROWROMXD.mjs} +1 -1
- package/dist/cli/{chunk-Z3MJX3PP.mjs → chunk-U6BTY4WS.mjs} +1 -1
- package/dist/cli/{chunk-FXSDDEAR.js → chunk-VH45GV3T.js} +1 -1
- package/dist/cli/{chunk-2RLMHWXW.js → chunk-VXDKL434.js} +3 -3
- package/dist/cli/{chunk-SZ76UE7C.mjs → chunk-VXEZKZU4.mjs} +11 -11
- package/dist/cli/{chunk-A4IOPFEJ.js → chunk-W3ECB7GC.js} +3 -3
- package/dist/cli/{chunk-E5O4CMHZ.mjs → chunk-W5WLWRKL.mjs} +2 -2
- package/dist/cli/{chunk-O5FIWG2O.js → chunk-WAZR72D5.js} +26 -26
- package/dist/cli/{chunk-VJR4CKYJ.js → chunk-WUVDJSZE.js} +23 -23
- package/dist/cli/{chunk-BULUFFST.js → chunk-YRNWA2IL.js} +15 -15
- package/dist/cli/{chunk-IT3F7P6O.js → chunk-ZFJNIZHI.js} +10 -10
- package/dist/cli/{chunk-3I6GA5QW.mjs → chunk-ZHIJA4MW.mjs} +1 -1
- package/dist/cli/command-docs.js +2 -2
- package/dist/cli/command-docs.mjs +1 -1
- package/dist/cli/concurrent-runs-help-6WUNDV77.js +22 -0
- package/dist/cli/{concurrent-runs-help-Z27MIIH3.mjs → concurrent-runs-help-A2Y33OQ5.mjs} +6 -6
- package/dist/cli/{csv-4YFTMVWQ.mjs → csv-PS74WVXE.mjs} +4 -4
- package/dist/cli/{csv-4TP36F5O.js → csv-TKSR2LFV.js} +13 -13
- package/dist/cli/{db-U5KR6SYI.mjs → db-EXLBRZ7K.mjs} +6 -6
- package/dist/cli/{db-L5EGGO72.js → db-R6GOM4VC.js} +27 -27
- package/dist/cli/describe-CA2FL2OS.js +50 -0
- package/dist/cli/{describe-LZXXSQ26.mjs → describe-JJBXFPVQ.mjs} +18 -18
- package/dist/cli/{executions-VZKRFDGM.js → executions-474U7R3Y.js} +8 -8
- package/dist/cli/{executions-ZWEC5DDR.mjs → executions-5PEODJQG.mjs} +6 -6
- package/dist/cli/{feedback-HXQTHXEZ.mjs → feedback-QUQVRDBD.mjs} +6 -6
- package/dist/cli/{feedback-BTJIJCQF.js → feedback-URTCAOXP.js} +14 -14
- package/dist/cli/{git-P6A45MMT.mjs → git-AQF23KKU.mjs} +5 -5
- package/dist/cli/git-WJ4V2B4T.js +26 -0
- package/dist/cli/index.js +148 -148
- package/dist/cli/index.mjs +47 -47
- package/dist/cli/{integrations-4POM2CJ3.mjs → integrations-5POBI72U.mjs} +7 -7
- package/dist/cli/{integrations-VSJQBRFS.js → integrations-NMFOOSS4.js} +29 -29
- package/dist/cli/{legacy-noops-I65MIKH2.mjs → legacy-noops-6YVCOSFO.mjs} +6 -6
- package/dist/cli/{legacy-noops-QOJGSGVO.js → legacy-noops-V75T5LHV.js} +9 -9
- package/dist/cli/{mcp-TGY6SRAC.mjs → mcp-7WEYQ5V7.mjs} +4 -4
- package/dist/cli/{mcp-WTKBSLSD.js → mcp-N6GYXCUQ.js} +24 -24
- package/dist/cli/{monitors-TLWVEXW6.js → monitors-HW4H4PE5.js} +100 -100
- package/dist/cli/{monitors-E2ENT4RY.mjs → monitors-TAK4M5Y4.mjs} +7 -7
- package/dist/cli/{org-J2LGW5ZR.mjs → org-3C2RN36N.mjs} +6 -6
- package/dist/cli/{org-PZPJJU7K.js → org-FULXOXNE.js} +121 -121
- package/dist/cli/{outcomes-TMJDASU5.mjs → outcomes-4KRZL6OL.mjs} +6 -6
- package/dist/cli/{outcomes-Z6ZNBJ3U.js → outcomes-O3HDQWGN.js} +14 -14
- package/dist/cli/{play-ZOOC57X4.js → play-HA4RGX7T.js} +336 -336
- package/dist/cli/{play-S3Z24HUS.mjs → play-ZTRWUODW.mjs} +19 -19
- package/dist/cli/{providers-O4Y2YBS7.js → providers-DXMKWBZN.js} +9 -9
- package/dist/cli/{providers-ETD6YLFL.mjs → providers-FAKWWJE2.mjs} +6 -6
- package/dist/cli/{quickstart-NZALIRBP.js → quickstart-MA74UPNI.js} +6 -6
- package/dist/cli/{quickstart-QZX32Y5T.mjs → quickstart-YWGBTW77.mjs} +4 -4
- package/dist/cli/{run-5UXSWJ7N.js → run-4DXSGXRB.js} +44 -44
- package/dist/cli/{run-HCVBRE2P.mjs → run-QHCYMSBP.mjs} +23 -23
- package/dist/cli/{search-Z247K76U.mjs → search-N4ZOK5XX.mjs} +7 -7
- package/dist/cli/search-V765JH2H.js +32 -0
- package/dist/cli/{search-output-XFKEGUJA.js → search-output-D5VAC52B.js} +6 -6
- package/dist/cli/{search-output-XCJI3XRA.mjs → search-output-F2OYLVK2.mjs} +4 -4
- package/dist/cli/{secrets-VUQLTUTM.js → secrets-3KETOTDS.js} +15 -15
- package/dist/cli/{secrets-7JZXHLRU.mjs → secrets-LD4FVAQI.mjs} +6 -6
- package/dist/cli/{sessions-UNGJ342N.mjs → sessions-LPLI4Z4O.mjs} +6 -6
- package/dist/cli/sessions-XC65OMDS.js +23 -0
- package/dist/cli/{settings-67TIT4MZ.mjs → settings-NCGPJG3Z.mjs} +12 -12
- package/dist/cli/{settings-WG5YNHC5.js → settings-NFBTCOMB.js} +85 -85
- package/dist/cli/{setup-IYUNW5ZP.js → setup-ATBSUSH4.js} +49 -49
- package/dist/cli/{setup-KMAAJOZM.mjs → setup-NH6MRYXZ.mjs} +9 -9
- package/dist/cli/skills-4NQBTGOL.js +37 -0
- package/dist/cli/{skills-UVS4DODN.mjs → skills-ITPBPIXD.mjs} +7 -7
- package/dist/cli/{tools-B42JY4BX.mjs → tools-2XZPR65V.mjs} +17 -17
- package/dist/cli/tools-ZVOFATX2.js +57 -0
- package/dist/cli/update-QME3KPOP.js +37 -0
- package/dist/cli/{update-EBYZZ7BW.mjs → update-VFB22FWO.mjs} +9 -9
- package/dist/cli/{views-QK3AFD2D.mjs → views-MRN3HWTG.mjs} +6 -6
- package/dist/cli/{views-DOUEKLEV.js → views-WJUZOQM2.js} +21 -21
- package/dist/cli/{workflow-UBJPGRKF.mjs → workflow-A6P7YV5W.mjs} +42 -18
- package/dist/cli/{workflow-TAKT2T7A.js → workflow-Q4JFBTVH.js} +53 -29
- package/dist/index.js +9 -9
- package/dist/index.mjs +6 -6
- package/dist/install-integrity.json +116 -116
- 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-UYQHRHYR.js +0 -44
- package/dist/cli/concurrent-runs-help-QWDTLZUX.js +0 -22
- package/dist/cli/describe-G3SUS76P.js +0 -50
- package/dist/cli/git-QU673DBV.js +0 -26
- package/dist/cli/search-T3SLR55O.js +0 -32
- package/dist/cli/sessions-GHW2H7N2.js +0 -23
- package/dist/cli/skills-JVLCEUBF.js +0 -37
- package/dist/cli/tools-ETA3BJNM.js +0 -57
- package/dist/cli/update-XZEBQCEY.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 _chunkPULU5YGXjs = require('./chunk-PULU5YGX.js');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
8
|
-
require('./chunk-
|
|
7
|
+
var _chunkVXDKL434js = require('./chunk-VXDKL434.js');
|
|
8
|
+
require('./chunk-H4BYWEV5.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-VH45GV3T.js');
|
|
16
16
|
require('./chunk-OG64RBAC.js');
|
|
17
17
|
require('./chunk-COGTRVWW.js');
|
|
18
18
|
|
|
@@ -42,6 +42,10 @@ function describeOwnedOutcome(owned) {
|
|
|
42
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
43
|
return `${owned.outcome} \u2014 as ${owned.agent}; ${watch}; ${last}; ${owned.turnsInWindow} of ${owned.turnLimit} turns this hour`;
|
|
44
44
|
}
|
|
45
|
+
function describeHomeWakes(home) {
|
|
46
|
+
const last = home.lastWake ? `last ring ${new Date(home.lastWake.at).toISOString()} ${WAKE_STATUS_WORDS[home.lastWake.status]}${home.lastWake.what.length > 0 ? ` (${home.lastWake.what.join(", ")})` : ""}` : "never rung";
|
|
47
|
+
return `#${home.conversationName} (${home.conversationId}) \u2014 ${home.agent} on ${home.outcome}; ${home.watching ? "woken there" : "not woken (no watch)"}; ${last}; ${home.turnsInWindow} of ${home.turnLimit} turns this hour`;
|
|
48
|
+
}
|
|
45
49
|
var REPLIES_MAX_LIMIT = 100;
|
|
46
50
|
var REPLIES_INVALID_CURSOR = "DEEPLINE_AGENT_REPLIES_INVALID_CURSOR";
|
|
47
51
|
var FEEDBACK_MAX_LIMIT = 100;
|
|
@@ -183,7 +187,7 @@ function describeOverview(overview) {
|
|
|
183
187
|
];
|
|
184
188
|
}
|
|
185
189
|
function print(payload, title, lines, options) {
|
|
186
|
-
|
|
190
|
+
_chunkPULU5YGXjs.printCommandEnvelope.call(void 0,
|
|
187
191
|
{ ...payload, render: { sections: [{ title, lines }] } },
|
|
188
192
|
{ json: options.json }
|
|
189
193
|
);
|
|
@@ -277,7 +281,7 @@ async function readModelKey() {
|
|
|
277
281
|
return Buffer.concat(chunks).toString("utf8").trim();
|
|
278
282
|
}
|
|
279
283
|
async function sendTestMessage(input2) {
|
|
280
|
-
const { http } =
|
|
284
|
+
const { http } = _chunkPULU5YGXjs.getAuthedHttpClient.call(void 0, );
|
|
281
285
|
return http.post(
|
|
282
286
|
`${AGENT_PATH}/test`,
|
|
283
287
|
{
|
|
@@ -368,7 +372,7 @@ async function handleChat(channelId, options) {
|
|
|
368
372
|
threadId = reply.threadId;
|
|
369
373
|
const text = describeReply(channelId, reply, true).map((line2) => `agent> ${line2}
|
|
370
374
|
`).join("");
|
|
371
|
-
|
|
375
|
+
_chunkPULU5YGXjs.printCommandEnvelope.call(void 0, reply, { json: false, text });
|
|
372
376
|
}
|
|
373
377
|
} finally {
|
|
374
378
|
rl.close();
|
|
@@ -378,7 +382,7 @@ function registerWorkspaceCommands(agents, readKey) {
|
|
|
378
382
|
agents.command("list").description(
|
|
379
383
|
"Show whether agents are on, their model billing, every agent with its channels, and the skill library."
|
|
380
384
|
).option("--json", "Emit JSON output").action(async (options) => {
|
|
381
|
-
const { http } =
|
|
385
|
+
const { http } = _chunkPULU5YGXjs.getAuthedHttpClient.call(void 0, );
|
|
382
386
|
const overview = await http.get(AGENT_PATH);
|
|
383
387
|
print(overview, "deepline agents", describeOverview(overview), options);
|
|
384
388
|
});
|
|
@@ -389,7 +393,7 @@ function registerWorkspaceCommands(agents, readKey) {
|
|
|
389
393
|
printDryRun("POST", `${AGENT_PATH}/enable`, {}, options);
|
|
390
394
|
return;
|
|
391
395
|
}
|
|
392
|
-
const { http } =
|
|
396
|
+
const { http } = _chunkPULU5YGXjs.getAuthedHttpClient.call(void 0, );
|
|
393
397
|
const result = await http.post(
|
|
394
398
|
`${AGENT_PATH}/enable`,
|
|
395
399
|
{}
|
|
@@ -411,7 +415,7 @@ function registerWorkspaceCommands(agents, readKey) {
|
|
|
411
415
|
printDryRun("POST", `${AGENT_PATH}/disable`, {}, options);
|
|
412
416
|
return;
|
|
413
417
|
}
|
|
414
|
-
const { http } =
|
|
418
|
+
const { http } = _chunkPULU5YGXjs.getAuthedHttpClient.call(void 0, );
|
|
415
419
|
const result = await http.post(
|
|
416
420
|
`${AGENT_PATH}/disable`,
|
|
417
421
|
{}
|
|
@@ -443,7 +447,7 @@ function registerWorkspaceCommands(agents, readKey) {
|
|
|
443
447
|
}
|
|
444
448
|
const apiKey = await readKey();
|
|
445
449
|
if (!apiKey) throw new AgentUsageError("No key was given.");
|
|
446
|
-
const { http } =
|
|
450
|
+
const { http } = _chunkPULU5YGXjs.getAuthedHttpClient.call(void 0, );
|
|
447
451
|
const overview = await http.put(`${AGENT_PATH}/billing`, {
|
|
448
452
|
mode: "own_key",
|
|
449
453
|
provider: _nullishCoalesce(options.provider, () => ( keyProvider(apiKey))),
|
|
@@ -455,7 +459,7 @@ function registerWorkspaceCommands(agents, readKey) {
|
|
|
455
459
|
agents.command("models").description(
|
|
456
460
|
"List the models an agent or one of its channels can run on, and which your workspace\u2019s key can run."
|
|
457
461
|
).option("--json", "Emit JSON output").action(async (options) => {
|
|
458
|
-
const { http } =
|
|
462
|
+
const { http } = _chunkPULU5YGXjs.getAuthedHttpClient.call(void 0, );
|
|
459
463
|
const result = await http.get(
|
|
460
464
|
`${AGENT_PATH}/models`
|
|
461
465
|
);
|
|
@@ -479,7 +483,7 @@ function registerWorkspaceCommands(agents, readKey) {
|
|
|
479
483
|
agents.command("outcomes").description(
|
|
480
484
|
"List the outcomes Bot by Deepline owns by default (those with no home channel), with what woke it last on each."
|
|
481
485
|
).option("--json", "Emit JSON output").action(async (options) => {
|
|
482
|
-
const { http } =
|
|
486
|
+
const { http } = _chunkPULU5YGXjs.getAuthedHttpClient.call(void 0, );
|
|
483
487
|
const result = await http.get(
|
|
484
488
|
`${AGENT_PATH}/outcomes`
|
|
485
489
|
);
|
|
@@ -496,10 +500,70 @@ function registerWorkspaceCommands(agents, readKey) {
|
|
|
496
500
|
options
|
|
497
501
|
);
|
|
498
502
|
});
|
|
503
|
+
agents.command("wakes").description(
|
|
504
|
+
"List outcome home channels with how their agent was last woken and its hourly turn budget."
|
|
505
|
+
).option("--json", "Emit JSON output").action(async (options) => {
|
|
506
|
+
const { http } = _chunkPULU5YGXjs.getAuthedHttpClient.call(void 0, );
|
|
507
|
+
const result = await http.get(
|
|
508
|
+
`${AGENT_PATH}/wakes`
|
|
509
|
+
);
|
|
510
|
+
print(
|
|
511
|
+
result,
|
|
512
|
+
"agent wakes",
|
|
513
|
+
result.homes.length === 0 ? [
|
|
514
|
+
"No channel is an outcome\u2019s home. Make one with: deepline agents channels set <channel-id> --outcome <outcome>"
|
|
515
|
+
] : result.homes.map(describeHomeWakes),
|
|
516
|
+
options
|
|
517
|
+
);
|
|
518
|
+
});
|
|
519
|
+
agents.command("memory").description(
|
|
520
|
+
"Show what the agent remembers about an outcome, in each channel that works toward it, and who said it; --clear forgets it all (both need member access)."
|
|
521
|
+
).argument("<outcome>", "Outcome name, as deepline outcomes list prints it").option(
|
|
522
|
+
"--clear",
|
|
523
|
+
"Forget everything the agent remembers about this outcome (member access)"
|
|
524
|
+
).option("--json", "Emit JSON output").action(
|
|
525
|
+
async (outcome, options) => {
|
|
526
|
+
const name = requireArgument(outcome, "an outcome name");
|
|
527
|
+
const path = `${AGENT_PATH}/memory?outcome=${encodeURIComponent(name)}`;
|
|
528
|
+
const { http } = _chunkPULU5YGXjs.getAuthedHttpClient.call(void 0, );
|
|
529
|
+
if (options.clear) {
|
|
530
|
+
const result2 = await http.delete(path);
|
|
531
|
+
print(
|
|
532
|
+
result2,
|
|
533
|
+
"agent memory",
|
|
534
|
+
[
|
|
535
|
+
result2.cleared === 0 ? `The agent remembered nothing about ${name}.` : `Forgot ${result2.cleared} ${result2.cleared === 1 ? "thing" : "things"} the agent remembered about ${name}.`
|
|
536
|
+
],
|
|
537
|
+
options
|
|
538
|
+
);
|
|
539
|
+
return;
|
|
540
|
+
}
|
|
541
|
+
const result = await http.get(path);
|
|
542
|
+
print(
|
|
543
|
+
result,
|
|
544
|
+
"agent memory",
|
|
545
|
+
result.memories.length === 0 ? [
|
|
546
|
+
`The agent remembers nothing about ${name} yet. It saves what people tell it that will matter later (decisions, deadlines, preferences, who owns what).`
|
|
547
|
+
] : [
|
|
548
|
+
...result.memories.flatMap(describeOutcomeMemory),
|
|
549
|
+
`Forget it all with: deepline agents memory ${name} --clear`
|
|
550
|
+
],
|
|
551
|
+
options
|
|
552
|
+
);
|
|
553
|
+
}
|
|
554
|
+
);
|
|
555
|
+
}
|
|
556
|
+
function describeOutcomeMemory(memory) {
|
|
557
|
+
return [
|
|
558
|
+
memory.owner ? "Bot by Deepline (no channel):" : `#${memory.conversationName}:`,
|
|
559
|
+
...memory.entries.map(
|
|
560
|
+
(entry) => ` ${entry.n}. ${entry.text} (${entry.source})`
|
|
561
|
+
)
|
|
562
|
+
];
|
|
499
563
|
}
|
|
500
564
|
function registerAgentCommands(agents) {
|
|
501
565
|
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) => {
|
|
502
|
-
const { http } =
|
|
566
|
+
const { http } = _chunkPULU5YGXjs.getAuthedHttpClient.call(void 0, );
|
|
503
567
|
const result = await http.get(
|
|
504
568
|
`${AGENT_PATH}/agents/${encodeURIComponent(requireArgument(name, "an agent name"))}`
|
|
505
569
|
);
|
|
@@ -529,7 +593,7 @@ function registerAgentCommands(agents) {
|
|
|
529
593
|
printDryRun("POST", `${AGENT_PATH}/agents`, body, options);
|
|
530
594
|
return;
|
|
531
595
|
}
|
|
532
|
-
const { http } =
|
|
596
|
+
const { http } = _chunkPULU5YGXjs.getAuthedHttpClient.call(void 0, );
|
|
533
597
|
const result = await http.post(
|
|
534
598
|
`${AGENT_PATH}/agents`,
|
|
535
599
|
body
|
|
@@ -573,7 +637,7 @@ function registerAgentCommands(agents) {
|
|
|
573
637
|
printDryRun("PATCH", path, body, options);
|
|
574
638
|
return;
|
|
575
639
|
}
|
|
576
|
-
const { http } =
|
|
640
|
+
const { http } = _chunkPULU5YGXjs.getAuthedHttpClient.call(void 0, );
|
|
577
641
|
const result = await http.patch(path, body);
|
|
578
642
|
print(result, "agent updated", describeAgent(result.agent), options);
|
|
579
643
|
}
|
|
@@ -586,7 +650,7 @@ function registerAgentCommands(agents) {
|
|
|
586
650
|
printDryRun("DELETE", path, null, options);
|
|
587
651
|
return;
|
|
588
652
|
}
|
|
589
|
-
const { http } =
|
|
653
|
+
const { http } = _chunkPULU5YGXjs.getAuthedHttpClient.call(void 0, );
|
|
590
654
|
const result = await http.delete(path);
|
|
591
655
|
print(
|
|
592
656
|
result,
|
|
@@ -629,7 +693,7 @@ function registerChannelCommands(agents) {
|
|
|
629
693
|
printDryRun("POST", `${AGENT_PATH}/channels`, body, options);
|
|
630
694
|
return;
|
|
631
695
|
}
|
|
632
|
-
const { http } =
|
|
696
|
+
const { http } = _chunkPULU5YGXjs.getAuthedHttpClient.call(void 0, );
|
|
633
697
|
const result = await http.post(`${AGENT_PATH}/channels`, body);
|
|
634
698
|
print(
|
|
635
699
|
result,
|
|
@@ -689,7 +753,7 @@ function registerChannelCommands(agents) {
|
|
|
689
753
|
printDryRun("PATCH", path, body, options);
|
|
690
754
|
return;
|
|
691
755
|
}
|
|
692
|
-
const { http } =
|
|
756
|
+
const { http } = _chunkPULU5YGXjs.getAuthedHttpClient.call(void 0, );
|
|
693
757
|
const result = await http.patch(path, body);
|
|
694
758
|
print(
|
|
695
759
|
result,
|
|
@@ -718,7 +782,7 @@ function registerChannelCommands(agents) {
|
|
|
718
782
|
printDryRun("DELETE", path, null, options);
|
|
719
783
|
return;
|
|
720
784
|
}
|
|
721
|
-
const { http } =
|
|
785
|
+
const { http } = _chunkPULU5YGXjs.getAuthedHttpClient.call(void 0, );
|
|
722
786
|
const result = await http.delete(path);
|
|
723
787
|
print(
|
|
724
788
|
result,
|
|
@@ -754,7 +818,7 @@ function registerSlackCommands(agents) {
|
|
|
754
818
|
slack.command("install").description(
|
|
755
819
|
"Print a link that adds the agent to a Slack workspace (owners and admins). Open it, pick the Slack workspace and approve."
|
|
756
820
|
).option("--json", "Emit JSON output").action(async (options) => {
|
|
757
|
-
const { http } =
|
|
821
|
+
const { http } = _chunkPULU5YGXjs.getAuthedHttpClient.call(void 0, );
|
|
758
822
|
const result = await http.post(
|
|
759
823
|
`${AGENT_PATH}/slack/install`,
|
|
760
824
|
{}
|
|
@@ -773,7 +837,7 @@ function registerSlackCommands(agents) {
|
|
|
773
837
|
slack.command("link").description(
|
|
774
838
|
"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."
|
|
775
839
|
).argument("<code>", "The code from the link, or the whole link").option("--json", "Emit JSON output").action(async (code, options) => {
|
|
776
|
-
const { http } =
|
|
840
|
+
const { http } = _chunkPULU5YGXjs.getAuthedHttpClient.call(void 0, );
|
|
777
841
|
const result = await http.post(`${AGENT_PATH}/slack/link`, { code: slackLinkCode(code) });
|
|
778
842
|
print(
|
|
779
843
|
result,
|
|
@@ -787,7 +851,7 @@ function registerSlackCommands(agents) {
|
|
|
787
851
|
slack.command("unlink").description(
|
|
788
852
|
"Forget which Slack user you are in this workspace. Your clicks in Slack decide nothing until you link again."
|
|
789
853
|
).option("--json", "Emit JSON output").action(async (options) => {
|
|
790
|
-
const { http } =
|
|
854
|
+
const { http } = _chunkPULU5YGXjs.getAuthedHttpClient.call(void 0, );
|
|
791
855
|
const result = await http.delete(
|
|
792
856
|
`${AGENT_PATH}/slack/link`
|
|
793
857
|
);
|
|
@@ -803,7 +867,7 @@ function registerSlackCommands(agents) {
|
|
|
803
867
|
slack.command("status").description(
|
|
804
868
|
"List the Slack workspaces this workspace installed the agent in."
|
|
805
869
|
).option("--json", "Emit JSON output").action(async (options) => {
|
|
806
|
-
const { http } =
|
|
870
|
+
const { http } = _chunkPULU5YGXjs.getAuthedHttpClient.call(void 0, );
|
|
807
871
|
const result = await http.get(
|
|
808
872
|
`${AGENT_PATH}/slack/installations`
|
|
809
873
|
);
|
|
@@ -822,7 +886,7 @@ function registerSkillCommands(agents) {
|
|
|
822
886
|
"The workspace\u2019s skill library: markdown an agent loads when its description matches the task."
|
|
823
887
|
);
|
|
824
888
|
skills.command("get").description("Show one library skill with its markdown.").argument("<name>", "Skill name").option("--json", "Emit JSON output").action(async (name, options) => {
|
|
825
|
-
const { http } =
|
|
889
|
+
const { http } = _chunkPULU5YGXjs.getAuthedHttpClient.call(void 0, );
|
|
826
890
|
const result = await http.get(
|
|
827
891
|
`${AGENT_PATH}/skills/${encodeURIComponent(requireArgument(name, "a skill name"))}`
|
|
828
892
|
);
|
|
@@ -860,7 +924,7 @@ function registerSkillCommands(agents) {
|
|
|
860
924
|
printDryRun("PUT", path, body, options);
|
|
861
925
|
return;
|
|
862
926
|
}
|
|
863
|
-
const { http } =
|
|
927
|
+
const { http } = _chunkPULU5YGXjs.getAuthedHttpClient.call(void 0, );
|
|
864
928
|
const result = await http.put(path, body);
|
|
865
929
|
print(
|
|
866
930
|
result,
|
|
@@ -883,7 +947,7 @@ function registerSkillCommands(agents) {
|
|
|
883
947
|
printDryRun("DELETE", path, null, options);
|
|
884
948
|
return;
|
|
885
949
|
}
|
|
886
|
-
const { http } =
|
|
950
|
+
const { http } = _chunkPULU5YGXjs.getAuthedHttpClient.call(void 0, );
|
|
887
951
|
const result = await http.delete(path);
|
|
888
952
|
print(
|
|
889
953
|
result,
|
|
@@ -937,7 +1001,7 @@ function registerFeedbackCommand(agents) {
|
|
|
937
1001
|
params.set("cursor", requireArgument(options.cursor, "--cursor"));
|
|
938
1002
|
}
|
|
939
1003
|
const query = params.toString();
|
|
940
|
-
const { http } =
|
|
1004
|
+
const { http } = _chunkPULU5YGXjs.getAuthedHttpClient.call(void 0, );
|
|
941
1005
|
const page = await http.get(
|
|
942
1006
|
`${AGENT_PATH}/feedback${query ? `?${query}` : ""}`
|
|
943
1007
|
).catch((error) => {
|
|
@@ -1000,7 +1064,7 @@ function registerRepliesCommand(agents) {
|
|
|
1000
1064
|
params.set("cursor", requireArgument(options.cursor, "--cursor"));
|
|
1001
1065
|
}
|
|
1002
1066
|
const query = params.toString();
|
|
1003
|
-
const { http } =
|
|
1067
|
+
const { http } = _chunkPULU5YGXjs.getAuthedHttpClient.call(void 0, );
|
|
1004
1068
|
const page = await http.get(`${AGENT_PATH}/replies${query ? `?${query}` : ""}`).catch((error) => {
|
|
1005
1069
|
if (error instanceof _chunkLFQJW4S2js.DeeplineError && error.code === REPLIES_INVALID_CURSOR) {
|
|
1006
1070
|
throw new AgentUsageError(`--cursor: ${error.message}`);
|
|
@@ -1026,13 +1090,13 @@ function registerActivityCommand(agents) {
|
|
|
1026
1090
|
agents.command("activity").description(
|
|
1027
1091
|
"Sum each agent's replies over the last 7 days: how many, how they ended, median time, tokens and the last reply."
|
|
1028
1092
|
).option("--json", "Emit JSON output").action(async (options) => {
|
|
1029
|
-
const { http } =
|
|
1093
|
+
const { http } = _chunkPULU5YGXjs.getAuthedHttpClient.call(void 0, );
|
|
1030
1094
|
const activity = await http.get(`${AGENT_PATH}/activity`);
|
|
1031
1095
|
print(activity, "agent activity", describeActivity(activity), options);
|
|
1032
1096
|
});
|
|
1033
1097
|
}
|
|
1034
1098
|
function registerAgentsCommands(program, readKey = readModelKey) {
|
|
1035
|
-
const agents = program.command("agents", { hidden: !
|
|
1099
|
+
const agents = program.command("agents", { hidden: !_chunkVXDKL434js.cliFeatureEnabled.call(void 0, AGENT_FEATURE) }).description(
|
|
1036
1100
|
"Deepline agents in Slack: create agents with instructions and skills, bind channels to them, and talk to them."
|
|
1037
1101
|
);
|
|
1038
1102
|
registerWorkspaceCommands(agents, readKey);
|
|
@@ -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-LVJAHM2I.mjs";
|
|
18
|
+
import "./chunk-7AFTLM74.mjs";
|
|
19
|
+
import "./chunk-U6BTY4WS.mjs";
|
|
20
|
+
import "./chunk-AXOQ2FMS.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-EHV52KUV.mjs";
|
|
26
26
|
import "./chunk-WZYKRD7T.mjs";
|
|
27
27
|
import "./chunk-KRD6H754.mjs";
|
|
28
28
|
export {
|
|
@@ -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 _chunkMEAWK5G7js = require('./chunk-MEAWK5G7.js');
|
|
18
|
+
require('./chunk-PULU5YGX.js');
|
|
19
|
+
require('./chunk-VXDKL434.js');
|
|
20
|
+
require('./chunk-H4BYWEV5.js');
|
|
21
|
+
require('./chunk-6VLFQZK6.js');
|
|
22
|
+
require('./chunk-XNYIZMNQ.js');
|
|
23
|
+
require('./chunk-LFQJW4S2.js');
|
|
24
|
+
require('./chunk-CFJFUVX2.js');
|
|
25
|
+
require('./chunk-VH45GV3T.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 = _chunkMEAWK5G7js.EXIT_WORKSPACE_MISMATCH; exports.authStatusLine = _chunkMEAWK5G7js.authStatusLine; exports.clearPendingClaim = _chunkMEAWK5G7js.clearPendingClaim; exports.clearSatisfiedPendingClaim = _chunkMEAWK5G7js.clearSatisfiedPendingClaim; exports.handleRegister = _chunkMEAWK5G7js.handleRegister; exports.handleStatus = _chunkMEAWK5G7js.handleStatus; exports.handleWait = _chunkMEAWK5G7js.handleWait; exports.httpJson = _chunkMEAWK5G7js.httpJson; exports.readPendingAuthClaim = _chunkMEAWK5G7js.readPendingAuthClaim; exports.readStatusBanner = _chunkMEAWK5G7js.readStatusBanner; exports.registerAuthCommands = _chunkMEAWK5G7js.registerAuthCommands; exports.reportApprovalLinkShown = _chunkMEAWK5G7js.reportApprovalLinkShown; exports.reportSetupCompleted = _chunkMEAWK5G7js.reportSetupCompleted; exports.resolvePendingAuthClaimForResume = _chunkMEAWK5G7js.resolvePendingAuthClaimForResume; exports.statusBannerLine = _chunkMEAWK5G7js.statusBannerLine;
|
|
@@ -1,26 +1,26 @@
|
|
|
1
1
|
import {
|
|
2
2
|
concurrentRunsLine
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-ACS6BYE5.mjs";
|
|
4
4
|
import {
|
|
5
5
|
buildDashboardUrl
|
|
6
6
|
} from "./chunk-SECFDB27.mjs";
|
|
7
7
|
import "./chunk-STXDSVQZ.mjs";
|
|
8
|
-
import "./chunk-
|
|
8
|
+
import "./chunk-LVJAHM2I.mjs";
|
|
9
9
|
import {
|
|
10
10
|
DeeplineClient
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-P2YNTAGL.mjs";
|
|
12
12
|
import {
|
|
13
13
|
PUBLIC_PLAN_SKUS,
|
|
14
14
|
iterateCursorPages,
|
|
15
15
|
requireBillingIdempotencyKey,
|
|
16
16
|
resolvePublicPlanSku
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-ZHIJA4MW.mjs";
|
|
18
18
|
import "./chunk-FZHMNK6F.mjs";
|
|
19
19
|
import "./chunk-5TYLSS4Q.mjs";
|
|
20
20
|
import "./chunk-PSX3WHIH.mjs";
|
|
21
21
|
import {
|
|
22
22
|
PLAY_RUNTIME_PRICING_NOTE
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-6S3OAJCJ.mjs";
|
|
24
24
|
import {
|
|
25
25
|
PRICING_PAGE_NOTE
|
|
26
26
|
} from "./chunk-HECXJBED.mjs";
|
|
@@ -37,12 +37,12 @@ import {
|
|
|
37
37
|
openInBrowser,
|
|
38
38
|
printCommandEnvelope,
|
|
39
39
|
shouldEmitJson
|
|
40
|
-
} from "./chunk-
|
|
40
|
+
} from "./chunk-7AFTLM74.mjs";
|
|
41
41
|
import {
|
|
42
42
|
resolveBaseUrlOnly,
|
|
43
43
|
resolveCliDashboardOrgId
|
|
44
|
-
} from "./chunk-
|
|
45
|
-
import "./chunk-
|
|
44
|
+
} from "./chunk-U6BTY4WS.mjs";
|
|
45
|
+
import "./chunk-AXOQ2FMS.mjs";
|
|
46
46
|
import {
|
|
47
47
|
AuthError,
|
|
48
48
|
ConfigError
|
|
@@ -52,7 +52,7 @@ import {
|
|
|
52
52
|
DeeplineError
|
|
53
53
|
} from "./chunk-Z3A2S3QM.mjs";
|
|
54
54
|
import "./chunk-2MGZAI54.mjs";
|
|
55
|
-
import "./chunk-
|
|
55
|
+
import "./chunk-EHV52KUV.mjs";
|
|
56
56
|
import "./chunk-WZYKRD7T.mjs";
|
|
57
57
|
import "./chunk-KRD6H754.mjs";
|
|
58
58
|
|