deepline 0.3.578 → 0.3.580
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/client-core.ts +20 -2
- package/dist/bundling-sources/sdk/src/release.ts +1 -1
- package/dist/bundling-sources/shared_libs/monitors/billing/public-pricing.ts +470 -15
- package/dist/bundling-sources/shared_libs/monitors/billing/tamradar.ts +12 -0
- package/dist/bundling-sources/shared_libs/monitors/billing/types.ts +59 -0
- package/dist/bundling-sources/shared_libs/monitors/provider-monitor-capability.ts +5 -3
- package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/backends/modal.ts +3 -1
- package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/early-sandbox.ts +18 -0
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/absurd-runtime-worker.ts +124 -57
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/early-sandbox-lane.ts +4 -0
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/postgres.ts +182 -80
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/run-ledger-outbox-recovery.ts +39 -2
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/runtime-worker-wake.ts +25 -0
- package/dist/bundling-sources/shared_libs/plays/sandbox-runtime-limits.ts +83 -0
- package/dist/cli/{agents-MCU3ITQZ.js → agents-BF5VX5ZB.js} +31 -31
- package/dist/cli/{agents-LRBANBZH.mjs → agents-JRFTZE7G.mjs} +4 -4
- package/dist/cli/auth-25MVD7TK.js +44 -0
- package/dist/cli/{auth-5BJKVYMQ.mjs → auth-XJXZ64R4.mjs} +5 -5
- package/dist/cli/{billing-EBBI4MVL.mjs → billing-TXJBGP2I.mjs} +69 -64
- package/dist/cli/{billing-NT57POHH.js → billing-VGMTJI7W.js} +158 -153
- package/dist/cli/{chunk-XBO4ERH6.js → chunk-2ZCFAUCV.js} +3 -3
- package/dist/cli/{chunk-P35YQAUC.js → chunk-3OSNEWGR.js} +281 -275
- package/dist/cli/{chunk-7J473OJ5.mjs → chunk-3P4QZIJ5.mjs} +1 -1
- package/dist/cli/{chunk-SKHUWQZE.js → chunk-3S5KFHQH.js} +17 -7
- package/dist/cli/{chunk-4LMTY4RQ.mjs → chunk-3ZBPXNSW.mjs} +2 -2
- package/dist/cli/{chunk-H7DY5NQ3.mjs → chunk-5BPJW6X5.mjs} +5 -5
- package/dist/cli/{chunk-A7NKOXBV.js → chunk-6VSUP4WN.js} +4 -4
- package/dist/cli/{chunk-4KNRCUKY.mjs → chunk-7HOG3JZE.mjs} +21 -15
- package/dist/cli/{chunk-OAQYLTUN.mjs → chunk-7ORX33JX.mjs} +5 -5
- package/dist/cli/{chunk-24FGR73C.js → chunk-ANX3PYLT.js} +13 -13
- package/dist/cli/{chunk-VVZ7JZMQ.js → chunk-APJ7IPRT.js} +15 -15
- package/dist/cli/{chunk-MXPCTF57.js → chunk-AZTQJJH7.js} +17 -2
- package/dist/cli/{chunk-3GF33QJJ.mjs → chunk-BAXLPQTM.mjs} +4 -4
- package/dist/cli/{chunk-DDJN4RR6.mjs → chunk-BK4Z62CF.mjs} +4 -4
- package/dist/cli/{chunk-IFWB4BYZ.mjs → chunk-C6YXUGX2.mjs} +3 -3
- package/dist/cli/{chunk-J7PCSLRY.js → chunk-COAAKSFX.js} +5 -5
- package/dist/cli/{chunk-Y2TK7OXN.js → chunk-D6I7QWOZ.js} +2 -2
- package/dist/cli/{chunk-W47SXEWQ.js → chunk-DQEHBAHL.js} +9 -9
- package/dist/cli/{chunk-ITYSPUKD.mjs → chunk-EI7KTESB.mjs} +2 -2
- package/dist/cli/{chunk-HZXF2HFF.mjs → chunk-FCJJPEKN.mjs} +5 -5
- package/dist/cli/{chunk-NEH7NZFT.js → chunk-GDBNH57Z.js} +10 -10
- package/dist/cli/{chunk-CFG3ZM7M.mjs → chunk-GE4ZEMMA.mjs} +2 -2
- package/dist/cli/{chunk-4YSJOSBG.mjs → chunk-GIZIWNL5.mjs} +1 -1
- package/dist/cli/{chunk-PJXPHUAR.mjs → chunk-H3B6QM6V.mjs} +3 -3
- package/dist/cli/{chunk-25SSGQJJ.js → chunk-HEZ24K5F.js} +2 -2
- package/dist/cli/{chunk-LYZPGP3P.mjs → chunk-HLMF53HZ.mjs} +1 -1
- package/dist/cli/{chunk-T2CCLYHV.mjs → chunk-IERWFFDB.mjs} +7 -7
- package/dist/cli/{chunk-CFLAGRWL.mjs → chunk-IG3CXIJY.mjs} +1 -1
- package/dist/cli/{chunk-ALXYCC4K.mjs → chunk-IM322G7M.mjs} +1 -1
- package/dist/cli/{chunk-RW3URFZK.mjs → chunk-KLBIHDZB.mjs} +2 -2
- package/dist/cli/{chunk-VMCJKGZS.mjs → chunk-LC4ETCOA.mjs} +2 -2
- package/dist/cli/{chunk-CS36W3RL.js → chunk-LHV3HPAY.js} +26 -26
- package/dist/cli/{chunk-CPNTDIJK.js → chunk-MBOPKQJF.js} +1 -1
- package/dist/cli/{chunk-BPMA4S3O.js → chunk-MCYZO3RB.js} +21 -21
- package/dist/cli/{chunk-JQPFICW3.mjs → chunk-MEDA3STC.mjs} +1 -1
- package/dist/cli/{chunk-ZO65VJRJ.js → chunk-MOZDEYQC.js} +11 -1
- package/dist/cli/{chunk-6UFTWNC5.mjs → chunk-MP6XUVAJ.mjs} +2 -2
- package/dist/cli/{chunk-HGQT6EGK.js → chunk-NNWEQDZR.js} +20 -20
- package/dist/cli/{chunk-AZFSCPYK.mjs → chunk-NV5IJ3NY.mjs} +17 -2
- package/dist/cli/{chunk-QPOJLAFT.mjs → chunk-O7AWGIDD.mjs} +2 -2
- package/dist/cli/{chunk-G7PH2QVM.js → chunk-PFNYLTCZ.js} +5 -5
- package/dist/cli/{chunk-DWUESXDD.mjs → chunk-QXQBTTRD.mjs} +11 -1
- package/dist/cli/{chunk-5IMWXYVB.js → chunk-R77IVVEZ.js} +53 -53
- package/dist/cli/{chunk-MXK4M7HP.js → chunk-S2YKIWCD.js} +17 -17
- package/dist/cli/{chunk-FYKHAT2F.mjs → chunk-SECFDB27.mjs} +10 -0
- package/dist/cli/{chunk-NTHN7ODR.mjs → chunk-SQBSK74D.mjs} +7 -3
- package/dist/cli/{chunk-M3ITWEGS.js → chunk-TSOXJZSW.js} +41 -41
- package/dist/cli/{chunk-CSPOWVWS.mjs → chunk-U4VCAECC.mjs} +8 -3
- package/dist/cli/{chunk-RLPPLS6A.js → chunk-URZPR54R.js} +6 -6
- package/dist/cli/{chunk-27HAQRGH.js → chunk-V5NDHTBB.js} +23 -23
- package/dist/cli/{chunk-HKZN33F2.mjs → chunk-VF3EGTHU.mjs} +3 -3
- package/dist/cli/{chunk-5LCV36BR.js → chunk-VOQWPUIF.js} +20 -20
- package/dist/cli/{chunk-3ZUKYLC6.js → chunk-WJUAVMQC.js} +217 -213
- package/dist/cli/{chunk-W66GXHYR.mjs → chunk-X5RXG6VS.mjs} +1 -1
- package/dist/cli/{chunk-UKSOIH2P.js → chunk-XFVJ3JNA.js} +5 -5
- package/dist/cli/{chunk-RWDYULX2.js → chunk-XQUVLYOL.js} +17 -12
- package/dist/cli/{chunk-XE66BGLB.js → chunk-YY6EB252.js} +2 -2
- package/dist/cli/{chunk-XX7TZM4N.js → chunk-Z6DERGHY.js} +48 -48
- package/dist/cli/{chunk-PXMCPEE2.js → chunk-ZADJC22U.js} +3 -3
- package/dist/cli/{chunk-4CNHOBUO.mjs → chunk-ZR7PDXIA.mjs} +2 -2
- package/dist/cli/command-docs.js +2 -2
- package/dist/cli/command-docs.mjs +1 -1
- package/dist/cli/concurrent-runs-help-DEN63DUM.js +22 -0
- package/dist/cli/{concurrent-runs-help-2MHLIUC6.mjs → concurrent-runs-help-DSUQRWZQ.mjs} +6 -6
- package/dist/cli/{csv-RYYDAC76.js → csv-HSHF6JYZ.js} +13 -13
- package/dist/cli/{csv-J6SRBMOT.mjs → csv-QNXJBT5T.mjs} +4 -4
- package/dist/cli/{db-WK226TM7.mjs → db-RAWY3SWS.mjs} +6 -6
- package/dist/cli/{db-5QLH6QK5.js → db-VHYWVLLU.js} +27 -27
- package/dist/cli/{describe-UBSCFPH5.mjs → describe-WZOVHWAM.mjs} +21 -21
- package/dist/cli/describe-YHZ2EGBQ.js +50 -0
- package/dist/cli/describe-core.d.mts +4 -2
- package/dist/cli/describe-core.d.ts +4 -2
- package/dist/cli/describe-core.js +4 -4
- package/dist/cli/describe-core.mjs +3 -3
- package/dist/cli/{executions-AGV5V7SD.js → executions-DQIFH4Z6.js} +8 -8
- package/dist/cli/{executions-XF5BNCFS.mjs → executions-QABOXV4K.mjs} +6 -6
- package/dist/cli/{feedback-3RDEZE2M.js → feedback-6IER2W4G.js} +14 -14
- package/dist/cli/{feedback-LT3PDK72.mjs → feedback-DW4O63DG.mjs} +6 -6
- package/dist/cli/{git-7VBTCCBV.mjs → git-3NAPGZGR.mjs} +5 -5
- package/dist/cli/git-SQ2MAKAH.js +26 -0
- package/dist/cli/index.js +148 -148
- package/dist/cli/index.mjs +47 -47
- package/dist/cli/{integrations-JP732FQB.js → integrations-5LHIBBXB.js} +29 -29
- package/dist/cli/{integrations-E7QRWMKZ.mjs → integrations-TSRUTENK.mjs} +7 -7
- package/dist/cli/{legacy-noops-UFNQBPIT.mjs → legacy-noops-4N63A6H7.mjs} +6 -6
- package/dist/cli/{legacy-noops-UTL4W5WE.js → legacy-noops-S22XGYGN.js} +9 -9
- package/dist/cli/{mcp-YHETA3AU.mjs → mcp-4EJHRRFV.mjs} +4 -4
- package/dist/cli/{mcp-5X4XFB4V.js → mcp-JERBGJYE.js} +24 -24
- package/dist/cli/{monitors-WFVZ42OQ.mjs → monitors-7BTLBD6S.mjs} +16 -11
- package/dist/cli/{monitors-AN6KH4XY.js → monitors-FF35CGC4.js} +109 -104
- package/dist/cli/{org-CN3XJZLA.js → org-ADCDO7KU.js} +121 -121
- package/dist/cli/{org-OMDV7WDF.mjs → org-QYIIBKA2.mjs} +6 -6
- package/dist/cli/{outcomes-7HCZ6K3Q.js → outcomes-2LW4GK2L.js} +14 -14
- package/dist/cli/{outcomes-I4ZTG5ND.mjs → outcomes-C5DIBG4Q.mjs} +6 -6
- package/dist/cli/{play-TSNBSHGA.mjs → play-DTTDTISL.mjs} +20 -20
- package/dist/cli/{play-45VXZ57A.js → play-S5MZ2GRA.js} +349 -349
- package/dist/cli/{providers-4TB56ZLK.mjs → providers-AXOEFQ6Q.mjs} +6 -6
- package/dist/cli/{providers-RB3TT7AE.js → providers-N2IWEJBW.js} +9 -9
- package/dist/cli/{quickstart-XHZ3PG5I.mjs → quickstart-ADWSZBV6.mjs} +4 -4
- package/dist/cli/{quickstart-ZNDM6VUD.js → quickstart-UC5AJZWU.js} +6 -6
- package/dist/cli/{run-XNEJGAKV.js → run-6TDYUL7L.js} +49 -48
- package/dist/cli/{run-7PY4G6GB.mjs → run-R2FVH3K6.mjs} +27 -26
- package/dist/cli/{search-BG7KCIOG.mjs → search-GRHUFSLY.mjs} +7 -7
- package/dist/cli/search-V7ANBX3J.js +32 -0
- package/dist/cli/{search-output-3ZBNTHGO.js → search-output-O7NY3VMD.js} +8 -8
- package/dist/cli/{search-output-TWKKP2BE.mjs → search-output-UPQNAFAF.mjs} +5 -5
- package/dist/cli/{secrets-FNR6MX6A.js → secrets-72GJHFER.js} +15 -15
- package/dist/cli/{secrets-AZZCE7E3.mjs → secrets-NKAEJLIQ.mjs} +6 -6
- package/dist/cli/sessions-EO6RTMUC.js +23 -0
- package/dist/cli/{sessions-ZAMKN3AF.mjs → sessions-VIMF3UF5.mjs} +6 -6
- package/dist/cli/{settings-QGASFWV3.js → settings-HFAW5HIF.js} +85 -85
- package/dist/cli/{settings-WKWOOOI2.mjs → settings-KCQHBFNZ.mjs} +12 -12
- package/dist/cli/{setup-KUZDCR3F.js → setup-2MHWGEAD.js} +49 -49
- package/dist/cli/{setup-U36W42LE.mjs → setup-2ZD5ZIUH.mjs} +9 -9
- package/dist/cli/skills-ID6KKDLH.js +37 -0
- package/dist/cli/{skills-25CSZQIK.mjs → skills-X2DZZG5P.mjs} +7 -7
- package/dist/cli/tools-7UY7GERW.js +57 -0
- package/dist/cli/{tools-4NZQ22AA.mjs → tools-KPTOWKD4.mjs} +19 -19
- package/dist/cli/{update-CJYP36TG.mjs → update-6PMQCEUP.mjs} +9 -9
- package/dist/cli/update-T2RDLLSY.js +37 -0
- package/dist/cli/{views-76UIPWJD.js → views-MNBHNO6C.js} +37 -24
- package/dist/cli/{views-GYGE7FSV.mjs → views-VRZ5CTFL.mjs} +21 -8
- package/dist/cli/{workflow-LZSWALZS.mjs → workflow-7JUJWA5S.mjs} +7 -7
- package/dist/cli/{workflow-NCVXBATM.js → workflow-SSMFO7YE.js} +17 -17
- package/dist/{client-CF-bsrtI.d.mts → client-CmG8MT0x.d.mts} +1 -1
- package/dist/{client-BrdMPFCM.d.ts → client-QznpkWrk.d.ts} +1 -1
- package/dist/{client-core-rMoUWSYM.d.ts → client-core-CXDqfeiB.d.ts} +12 -1
- package/dist/{client-core-DM1ZedOG.d.mts → client-core-CY0jNW0e.d.mts} +12 -1
- package/dist/index.d.mts +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/index.js +9 -9
- package/dist/index.mjs +6 -6
- package/dist/install-integrity.json +126 -126
- package/dist/plays/play-description.d.mts +1 -1
- package/dist/plays/play-description.d.ts +1 -1
- package/dist/plays/run-request.d.mts +1 -1
- package/dist/plays/run-request.d.ts +1 -1
- package/dist/release.d.mts +1 -1
- package/dist/release.d.ts +1 -1
- package/dist/release.js +2 -2
- package/dist/release.mjs +1 -1
- package/dist/server.d.mts +2 -2
- package/dist/server.d.ts +2 -2
- package/dist/server.js +5 -5
- package/dist/server.mjs +3 -3
- package/package.json +1 -1
- package/dist/cli/auth-VSW3MTFO.js +0 -44
- package/dist/cli/concurrent-runs-help-ATT2GVTQ.js +0 -22
- package/dist/cli/describe-Q27SRQWM.js +0 -50
- package/dist/cli/git-BBTP3H7J.js +0 -26
- package/dist/cli/search-ZBU5GW4W.js +0 -32
- package/dist/cli/sessions-GCY62GAW.js +0 -23
- package/dist/cli/skills-43DHMLRW.js +0 -37
- package/dist/cli/tools-5BGKNMFU.js +0 -57
- package/dist/cli/update-CUO2MTB6.js +0 -37
|
@@ -90,8 +90,9 @@ const RUN_LEDGER_OUTBOX_RECOVERY_PREVIEW_IN_FLIGHT = 16;
|
|
|
90
90
|
// it the same total bounded search-index capacity.
|
|
91
91
|
const RUN_LEDGER_OUTBOX_RECOVERY_PRODUCTION_INDEX_IN_FLIGHT = 4;
|
|
92
92
|
const RUN_LEDGER_OUTBOX_RECOVERY_PREVIEW_INDEX_IN_FLIGHT = 8;
|
|
93
|
-
// Admissions retain three of four claim opportunities. The fourth
|
|
94
|
-
// the oldest eligible causal head
|
|
93
|
+
// Admissions retain three of four claim opportunities. The fourth ignores
|
|
94
|
+
// admission class and selects the oldest eligible causal head of the
|
|
95
|
+
// workspace with the fewest in-flight deliveries, preventing terminal work
|
|
95
96
|
// from starving behind continuous new admissions. An empty class never costs
|
|
96
97
|
// another query: either order can select any eligible run.
|
|
97
98
|
const ADMISSION_TURNS_PER_OLDEST_READY_TURN = 3;
|
|
@@ -181,11 +182,23 @@ export type RunLedgerOutboxRecoveryController = {
|
|
|
181
182
|
close: () => Promise<void>;
|
|
182
183
|
};
|
|
183
184
|
|
|
185
|
+
export type RunLedgerOutboxDrainSlots = {
|
|
186
|
+
inFlight: number;
|
|
187
|
+
/** This replica's fixed delivery budget for the lane. */
|
|
188
|
+
parallelism: number;
|
|
189
|
+
};
|
|
190
|
+
|
|
184
191
|
export type RunLedgerOutboxDrainHealth = {
|
|
185
192
|
inFlightDispatches: number;
|
|
186
193
|
/** Start of the oldest dispatch still in flight, or null when idle. */
|
|
187
194
|
oldestInFlightStartedAt: number | null;
|
|
188
195
|
lastDispatchSettledAt: number | null;
|
|
196
|
+
/** In-flight deliveries against each lane's budget: a full lane is a
|
|
197
|
+
* saturated drain, distinguishing a capacity backlog from slow delivery. */
|
|
198
|
+
slots: {
|
|
199
|
+
lifecycle: RunLedgerOutboxDrainSlots;
|
|
200
|
+
observability: RunLedgerOutboxDrainSlots;
|
|
201
|
+
};
|
|
189
202
|
};
|
|
190
203
|
|
|
191
204
|
function boundedFailureDelayMs(failures: number): number {
|
|
@@ -309,6 +322,7 @@ export function startRunLedgerOutboxRecovery(
|
|
|
309
322
|
return runId;
|
|
310
323
|
};
|
|
311
324
|
const inFlightStartedAt = new Map<number, number>();
|
|
325
|
+
const inFlightByLane = { lifecycle: 0, observability: 0 };
|
|
312
326
|
let nextDispatchId = 0;
|
|
313
327
|
let lastDispatchSettledAt: number | null = null;
|
|
314
328
|
let admissionTurns = 0;
|
|
@@ -329,7 +343,9 @@ export function startRunLedgerOutboxRecovery(
|
|
|
329
343
|
if (!observability && origin !== 'producer_hint')
|
|
330
344
|
admissionTurns = oldestReady ? 0 : admissionTurns + 1;
|
|
331
345
|
const id = nextDispatchId++;
|
|
346
|
+
const lane = observability ? 'observability' : 'lifecycle';
|
|
332
347
|
inFlightStartedAt.set(id, now());
|
|
348
|
+
inFlightByLane[lane] += 1;
|
|
333
349
|
try {
|
|
334
350
|
if (observability)
|
|
335
351
|
return await (runId === undefined
|
|
@@ -341,6 +357,7 @@ export function startRunLedgerOutboxRecovery(
|
|
|
341
357
|
: deps.dispatchOnce(headPriority, runId));
|
|
342
358
|
} finally {
|
|
343
359
|
inFlightStartedAt.delete(id);
|
|
360
|
+
inFlightByLane[lane] -= 1;
|
|
344
361
|
lastDispatchSettledAt = now();
|
|
345
362
|
}
|
|
346
363
|
};
|
|
@@ -935,6 +952,16 @@ export function startRunLedgerOutboxRecovery(
|
|
|
935
952
|
inFlightDispatches: inFlightStartedAt.size,
|
|
936
953
|
oldestInFlightStartedAt: oldest,
|
|
937
954
|
lastDispatchSettledAt,
|
|
955
|
+
slots: {
|
|
956
|
+
lifecycle: {
|
|
957
|
+
inFlight: inFlightByLane.lifecycle,
|
|
958
|
+
parallelism: lifecycleParallelism,
|
|
959
|
+
},
|
|
960
|
+
observability: {
|
|
961
|
+
inFlight: inFlightByLane.observability,
|
|
962
|
+
parallelism: observabilityParallelism,
|
|
963
|
+
},
|
|
964
|
+
},
|
|
938
965
|
};
|
|
939
966
|
},
|
|
940
967
|
close: async () => {
|
|
@@ -1388,6 +1415,16 @@ export function startBoundedRunLedgerOutboxRecovery(
|
|
|
1388
1415
|
inFlightDispatches: inFlightStartedAt.size,
|
|
1389
1416
|
oldestInFlightStartedAt: oldest,
|
|
1390
1417
|
lastDispatchSettledAt,
|
|
1418
|
+
slots: {
|
|
1419
|
+
lifecycle: {
|
|
1420
|
+
inFlight: inFlight.lifecycle,
|
|
1421
|
+
parallelism: lifecycleParallelism,
|
|
1422
|
+
},
|
|
1423
|
+
observability: {
|
|
1424
|
+
inFlight: inFlight.observability,
|
|
1425
|
+
parallelism: observabilityParallelism,
|
|
1426
|
+
},
|
|
1427
|
+
},
|
|
1391
1428
|
};
|
|
1392
1429
|
},
|
|
1393
1430
|
close: async () => {
|
package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/runtime-worker-wake.ts
CHANGED
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
import {
|
|
2
|
+
readCarriedPlaySandboxRuntimeLimits,
|
|
3
|
+
type PlaySandboxRuntimeLimits,
|
|
4
|
+
} from '../sandbox-runtime-limits';
|
|
1
5
|
import { createHash, timingSafeEqual } from 'node:crypto';
|
|
2
6
|
import dns from 'node:dns';
|
|
3
7
|
import type { IncomingMessage, ServerResponse } from 'node:http';
|
|
@@ -238,6 +242,13 @@ export type RuntimeWorkerEarlySandboxHint = {
|
|
|
238
242
|
queue?: string;
|
|
239
243
|
/** LH: set by the gateway only, the chosen listener's generation. */
|
|
240
244
|
listenerGeneration?: string;
|
|
245
|
+
/**
|
|
246
|
+
* The run's validated sandbox runtime limits, the ones its launch will use,
|
|
247
|
+
* so the early create matches the launch's size and timeout. Absent (an
|
|
248
|
+
* older app or gateway): the standard profile, as before. Reader-first:
|
|
249
|
+
* an older worker drops it and takes the absent path.
|
|
250
|
+
*/
|
|
251
|
+
sandboxRuntimeLimits?: PlaySandboxRuntimeLimits;
|
|
241
252
|
};
|
|
242
253
|
|
|
243
254
|
/** Longest placement policy id a hint may carry (catalog ids are ~25). */
|
|
@@ -290,6 +301,19 @@ export function parseEarlySandboxHint(
|
|
|
290
301
|
if (!parsed) return null;
|
|
291
302
|
listenerGeneration = parsed;
|
|
292
303
|
}
|
|
304
|
+
// Present but not exactly a valid size and timeout is a malformed hint
|
|
305
|
+
// (refused, so the run launches without an early start).
|
|
306
|
+
let sandboxRuntimeLimits: PlaySandboxRuntimeLimits | undefined;
|
|
307
|
+
if (
|
|
308
|
+
value.sandboxRuntimeLimits !== undefined &&
|
|
309
|
+
value.sandboxRuntimeLimits !== null
|
|
310
|
+
) {
|
|
311
|
+
const parsed = readCarriedPlaySandboxRuntimeLimits(
|
|
312
|
+
value.sandboxRuntimeLimits,
|
|
313
|
+
);
|
|
314
|
+
if (!parsed) return null;
|
|
315
|
+
sandboxRuntimeLimits = parsed;
|
|
316
|
+
}
|
|
293
317
|
return {
|
|
294
318
|
workflowId,
|
|
295
319
|
orgId,
|
|
@@ -297,6 +321,7 @@ export function parseEarlySandboxHint(
|
|
|
297
321
|
...(sandboxPlacementPolicyId ? { sandboxPlacementPolicyId } : {}),
|
|
298
322
|
...(queue ? { queue } : {}),
|
|
299
323
|
...(listenerGeneration ? { listenerGeneration } : {}),
|
|
324
|
+
...(sandboxRuntimeLimits ? { sandboxRuntimeLimits } : {}),
|
|
300
325
|
};
|
|
301
326
|
} catch {
|
|
302
327
|
return null;
|
|
@@ -180,3 +180,86 @@ export function resolvePlaySandboxRuntimeLimits(
|
|
|
180
180
|
...PLAY_SANDBOX_SIZE_LIMITS[size],
|
|
181
181
|
});
|
|
182
182
|
}
|
|
183
|
+
|
|
184
|
+
/**
|
|
185
|
+
* The limits a launch runs with, read from its persisted contract snapshot
|
|
186
|
+
* (`contractSnapshot.runtimeLimit`). Absent: the standard profile. Present but
|
|
187
|
+
* malformed throws, exactly as the scheduler launch path does; start-run uses
|
|
188
|
+
* the same function so an early-start hint names the launch's own limits.
|
|
189
|
+
*/
|
|
190
|
+
export function sandboxRuntimeLimitsFromContractSnapshot(
|
|
191
|
+
contractSnapshot: unknown,
|
|
192
|
+
): PlaySandboxRuntimeLimits {
|
|
193
|
+
if (
|
|
194
|
+
!contractSnapshot ||
|
|
195
|
+
typeof contractSnapshot !== 'object' ||
|
|
196
|
+
Array.isArray(contractSnapshot)
|
|
197
|
+
) {
|
|
198
|
+
return resolvePlaySandboxRuntimeLimits(null);
|
|
199
|
+
}
|
|
200
|
+
const runtimeLimit = (contractSnapshot as Record<string, unknown>)
|
|
201
|
+
.runtimeLimit;
|
|
202
|
+
if (
|
|
203
|
+
!runtimeLimit ||
|
|
204
|
+
typeof runtimeLimit !== 'object' ||
|
|
205
|
+
Array.isArray(runtimeLimit)
|
|
206
|
+
) {
|
|
207
|
+
return resolvePlaySandboxRuntimeLimits(null);
|
|
208
|
+
}
|
|
209
|
+
const value = runtimeLimit as Record<string, unknown>;
|
|
210
|
+
const timeoutSeconds = value.timeoutSeconds;
|
|
211
|
+
const memoryGiB = value.memoryGiB;
|
|
212
|
+
const cpu = value.cpu;
|
|
213
|
+
const diskGiB = value.diskGiB;
|
|
214
|
+
if (
|
|
215
|
+
![timeoutSeconds, memoryGiB, cpu, diskGiB].every(
|
|
216
|
+
(entry) => typeof entry === 'number' && Number.isFinite(entry),
|
|
217
|
+
)
|
|
218
|
+
) {
|
|
219
|
+
throw new Error(
|
|
220
|
+
'Persisted Play runtime limit is invalid. Re-submit the run with the current runtime contract.',
|
|
221
|
+
);
|
|
222
|
+
}
|
|
223
|
+
return validatePlaySandboxRuntimeLimits({
|
|
224
|
+
timeoutSeconds: timeoutSeconds as number,
|
|
225
|
+
memoryGiB: memoryGiB as number,
|
|
226
|
+
cpu: cpu as number,
|
|
227
|
+
diskGiB: diskGiB as number,
|
|
228
|
+
});
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
/**
|
|
232
|
+
* Carried runtime limits (an early-start hint's), validated against the
|
|
233
|
+
* product sizes and ceilings. Null when absent or not exactly a valid
|
|
234
|
+
* `PlaySandboxRuntimeLimits`, so a carrier can never ask for a size or
|
|
235
|
+
* timeout a Play could not declare.
|
|
236
|
+
*/
|
|
237
|
+
export function readCarriedPlaySandboxRuntimeLimits(
|
|
238
|
+
value: unknown,
|
|
239
|
+
): PlaySandboxRuntimeLimits | null {
|
|
240
|
+
if (!value || typeof value !== 'object' || Array.isArray(value)) return null;
|
|
241
|
+
const record = value as Record<string, unknown>;
|
|
242
|
+
if (
|
|
243
|
+
Object.keys(record).some(
|
|
244
|
+
(key) => !['timeoutSeconds', 'memoryGiB', 'cpu', 'diskGiB'].includes(key),
|
|
245
|
+
)
|
|
246
|
+
)
|
|
247
|
+
return null;
|
|
248
|
+
const { timeoutSeconds, memoryGiB, cpu, diskGiB } = record;
|
|
249
|
+
if (
|
|
250
|
+
![timeoutSeconds, memoryGiB, cpu, diskGiB].every(
|
|
251
|
+
(entry) => typeof entry === 'number' && Number.isFinite(entry),
|
|
252
|
+
)
|
|
253
|
+
)
|
|
254
|
+
return null;
|
|
255
|
+
try {
|
|
256
|
+
return validatePlaySandboxRuntimeLimits({
|
|
257
|
+
timeoutSeconds: timeoutSeconds as number,
|
|
258
|
+
memoryGiB: memoryGiB as number,
|
|
259
|
+
cpu: cpu as number,
|
|
260
|
+
diskGiB: diskGiB as number,
|
|
261
|
+
});
|
|
262
|
+
} catch {
|
|
263
|
+
return null;
|
|
264
|
+
}
|
|
265
|
+
}
|
|
@@ -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 _chunkNNWEQDZRjs = require('./chunk-NNWEQDZR.js');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
8
|
-
require('./chunk-
|
|
7
|
+
var _chunk2ZCFAUCVjs = require('./chunk-2ZCFAUCV.js');
|
|
8
|
+
require('./chunk-6VSUP4WN.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-MBOPKQJF.js');
|
|
16
16
|
require('./chunk-OG64RBAC.js');
|
|
17
17
|
require('./chunk-COGTRVWW.js');
|
|
18
18
|
|
|
@@ -150,7 +150,7 @@ function describeOverview(overview) {
|
|
|
150
150
|
];
|
|
151
151
|
}
|
|
152
152
|
function print(payload, title, lines, options) {
|
|
153
|
-
|
|
153
|
+
_chunkNNWEQDZRjs.printCommandEnvelope.call(void 0,
|
|
154
154
|
{ ...payload, render: { sections: [{ title, lines }] } },
|
|
155
155
|
{ json: options.json }
|
|
156
156
|
);
|
|
@@ -244,7 +244,7 @@ async function readModelKey() {
|
|
|
244
244
|
return Buffer.concat(chunks).toString("utf8").trim();
|
|
245
245
|
}
|
|
246
246
|
async function sendTestMessage(input2) {
|
|
247
|
-
const { http } =
|
|
247
|
+
const { http } = _chunkNNWEQDZRjs.getAuthedHttpClient.call(void 0, );
|
|
248
248
|
return http.post(
|
|
249
249
|
`${AGENT_PATH}/test`,
|
|
250
250
|
{
|
|
@@ -335,7 +335,7 @@ async function handleChat(channelId, options) {
|
|
|
335
335
|
threadId = reply.threadId;
|
|
336
336
|
const text = describeReply(channelId, reply, true).map((line2) => `agent> ${line2}
|
|
337
337
|
`).join("");
|
|
338
|
-
|
|
338
|
+
_chunkNNWEQDZRjs.printCommandEnvelope.call(void 0, reply, { json: false, text });
|
|
339
339
|
}
|
|
340
340
|
} finally {
|
|
341
341
|
rl.close();
|
|
@@ -345,7 +345,7 @@ function registerWorkspaceCommands(agents, readKey) {
|
|
|
345
345
|
agents.command("list").description(
|
|
346
346
|
"Show whether agents are on, their model billing, every agent with its channels, and the skill library."
|
|
347
347
|
).option("--json", "Emit JSON output").action(async (options) => {
|
|
348
|
-
const { http } =
|
|
348
|
+
const { http } = _chunkNNWEQDZRjs.getAuthedHttpClient.call(void 0, );
|
|
349
349
|
const overview = await http.get(AGENT_PATH);
|
|
350
350
|
print(overview, "deepline agents", describeOverview(overview), options);
|
|
351
351
|
});
|
|
@@ -356,7 +356,7 @@ function registerWorkspaceCommands(agents, readKey) {
|
|
|
356
356
|
printDryRun("POST", `${AGENT_PATH}/enable`, {}, options);
|
|
357
357
|
return;
|
|
358
358
|
}
|
|
359
|
-
const { http } =
|
|
359
|
+
const { http } = _chunkNNWEQDZRjs.getAuthedHttpClient.call(void 0, );
|
|
360
360
|
const result = await http.post(
|
|
361
361
|
`${AGENT_PATH}/enable`,
|
|
362
362
|
{}
|
|
@@ -378,7 +378,7 @@ function registerWorkspaceCommands(agents, readKey) {
|
|
|
378
378
|
printDryRun("POST", `${AGENT_PATH}/disable`, {}, options);
|
|
379
379
|
return;
|
|
380
380
|
}
|
|
381
|
-
const { http } =
|
|
381
|
+
const { http } = _chunkNNWEQDZRjs.getAuthedHttpClient.call(void 0, );
|
|
382
382
|
const result = await http.post(
|
|
383
383
|
`${AGENT_PATH}/disable`,
|
|
384
384
|
{}
|
|
@@ -410,7 +410,7 @@ function registerWorkspaceCommands(agents, readKey) {
|
|
|
410
410
|
}
|
|
411
411
|
const apiKey = await readKey();
|
|
412
412
|
if (!apiKey) throw new AgentUsageError("No key was given.");
|
|
413
|
-
const { http } =
|
|
413
|
+
const { http } = _chunkNNWEQDZRjs.getAuthedHttpClient.call(void 0, );
|
|
414
414
|
const overview = await http.put(`${AGENT_PATH}/billing`, {
|
|
415
415
|
mode: "own_key",
|
|
416
416
|
provider: _nullishCoalesce(options.provider, () => ( keyProvider(apiKey))),
|
|
@@ -422,7 +422,7 @@ function registerWorkspaceCommands(agents, readKey) {
|
|
|
422
422
|
agents.command("models").description(
|
|
423
423
|
"List the models an agent or one of its channels can run on, and which your workspace\u2019s key can run."
|
|
424
424
|
).option("--json", "Emit JSON output").action(async (options) => {
|
|
425
|
-
const { http } =
|
|
425
|
+
const { http } = _chunkNNWEQDZRjs.getAuthedHttpClient.call(void 0, );
|
|
426
426
|
const result = await http.get(
|
|
427
427
|
`${AGENT_PATH}/models`
|
|
428
428
|
);
|
|
@@ -446,7 +446,7 @@ function registerWorkspaceCommands(agents, readKey) {
|
|
|
446
446
|
agents.command("outcomes").description(
|
|
447
447
|
"List the outcomes Bot by Deepline owns by default (those with no home channel), with what woke it last on each."
|
|
448
448
|
).option("--json", "Emit JSON output").action(async (options) => {
|
|
449
|
-
const { http } =
|
|
449
|
+
const { http } = _chunkNNWEQDZRjs.getAuthedHttpClient.call(void 0, );
|
|
450
450
|
const result = await http.get(
|
|
451
451
|
`${AGENT_PATH}/outcomes`
|
|
452
452
|
);
|
|
@@ -466,7 +466,7 @@ function registerWorkspaceCommands(agents, readKey) {
|
|
|
466
466
|
}
|
|
467
467
|
function registerAgentCommands(agents) {
|
|
468
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) => {
|
|
469
|
-
const { http } =
|
|
469
|
+
const { http } = _chunkNNWEQDZRjs.getAuthedHttpClient.call(void 0, );
|
|
470
470
|
const result = await http.get(
|
|
471
471
|
`${AGENT_PATH}/agents/${encodeURIComponent(requireArgument(name, "an agent name"))}`
|
|
472
472
|
);
|
|
@@ -496,7 +496,7 @@ function registerAgentCommands(agents) {
|
|
|
496
496
|
printDryRun("POST", `${AGENT_PATH}/agents`, body, options);
|
|
497
497
|
return;
|
|
498
498
|
}
|
|
499
|
-
const { http } =
|
|
499
|
+
const { http } = _chunkNNWEQDZRjs.getAuthedHttpClient.call(void 0, );
|
|
500
500
|
const result = await http.post(
|
|
501
501
|
`${AGENT_PATH}/agents`,
|
|
502
502
|
body
|
|
@@ -540,7 +540,7 @@ function registerAgentCommands(agents) {
|
|
|
540
540
|
printDryRun("PATCH", path, body, options);
|
|
541
541
|
return;
|
|
542
542
|
}
|
|
543
|
-
const { http } =
|
|
543
|
+
const { http } = _chunkNNWEQDZRjs.getAuthedHttpClient.call(void 0, );
|
|
544
544
|
const result = await http.patch(path, body);
|
|
545
545
|
print(result, "agent updated", describeAgent(result.agent), options);
|
|
546
546
|
}
|
|
@@ -553,7 +553,7 @@ function registerAgentCommands(agents) {
|
|
|
553
553
|
printDryRun("DELETE", path, null, options);
|
|
554
554
|
return;
|
|
555
555
|
}
|
|
556
|
-
const { http } =
|
|
556
|
+
const { http } = _chunkNNWEQDZRjs.getAuthedHttpClient.call(void 0, );
|
|
557
557
|
const result = await http.delete(path);
|
|
558
558
|
print(
|
|
559
559
|
result,
|
|
@@ -596,7 +596,7 @@ function registerChannelCommands(agents) {
|
|
|
596
596
|
printDryRun("POST", `${AGENT_PATH}/channels`, body, options);
|
|
597
597
|
return;
|
|
598
598
|
}
|
|
599
|
-
const { http } =
|
|
599
|
+
const { http } = _chunkNNWEQDZRjs.getAuthedHttpClient.call(void 0, );
|
|
600
600
|
const result = await http.post(`${AGENT_PATH}/channels`, body);
|
|
601
601
|
print(
|
|
602
602
|
result,
|
|
@@ -648,7 +648,7 @@ function registerChannelCommands(agents) {
|
|
|
648
648
|
printDryRun("PATCH", path, body, options);
|
|
649
649
|
return;
|
|
650
650
|
}
|
|
651
|
-
const { http } =
|
|
651
|
+
const { http } = _chunkNNWEQDZRjs.getAuthedHttpClient.call(void 0, );
|
|
652
652
|
const result = await http.patch(path, body);
|
|
653
653
|
print(
|
|
654
654
|
result,
|
|
@@ -676,7 +676,7 @@ function registerChannelCommands(agents) {
|
|
|
676
676
|
printDryRun("DELETE", path, null, options);
|
|
677
677
|
return;
|
|
678
678
|
}
|
|
679
|
-
const { http } =
|
|
679
|
+
const { http } = _chunkNNWEQDZRjs.getAuthedHttpClient.call(void 0, );
|
|
680
680
|
const result = await http.delete(path);
|
|
681
681
|
print(
|
|
682
682
|
result,
|
|
@@ -712,7 +712,7 @@ function registerSlackCommands(agents) {
|
|
|
712
712
|
slack.command("install").description(
|
|
713
713
|
"Print a link that adds the agent to a Slack workspace (owners and admins). Open it, pick the Slack workspace and approve."
|
|
714
714
|
).option("--json", "Emit JSON output").action(async (options) => {
|
|
715
|
-
const { http } =
|
|
715
|
+
const { http } = _chunkNNWEQDZRjs.getAuthedHttpClient.call(void 0, );
|
|
716
716
|
const result = await http.post(
|
|
717
717
|
`${AGENT_PATH}/slack/install`,
|
|
718
718
|
{}
|
|
@@ -731,7 +731,7 @@ function registerSlackCommands(agents) {
|
|
|
731
731
|
slack.command("link").description(
|
|
732
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."
|
|
733
733
|
).argument("<code>", "The code from the link, or the whole link").option("--json", "Emit JSON output").action(async (code, options) => {
|
|
734
|
-
const { http } =
|
|
734
|
+
const { http } = _chunkNNWEQDZRjs.getAuthedHttpClient.call(void 0, );
|
|
735
735
|
const result = await http.post(`${AGENT_PATH}/slack/link`, { code: slackLinkCode(code) });
|
|
736
736
|
print(
|
|
737
737
|
result,
|
|
@@ -745,7 +745,7 @@ function registerSlackCommands(agents) {
|
|
|
745
745
|
slack.command("unlink").description(
|
|
746
746
|
"Forget which Slack user you are in this workspace. Your clicks in Slack decide nothing until you link again."
|
|
747
747
|
).option("--json", "Emit JSON output").action(async (options) => {
|
|
748
|
-
const { http } =
|
|
748
|
+
const { http } = _chunkNNWEQDZRjs.getAuthedHttpClient.call(void 0, );
|
|
749
749
|
const result = await http.delete(
|
|
750
750
|
`${AGENT_PATH}/slack/link`
|
|
751
751
|
);
|
|
@@ -761,7 +761,7 @@ function registerSlackCommands(agents) {
|
|
|
761
761
|
slack.command("status").description(
|
|
762
762
|
"List the Slack workspaces this workspace installed the agent in."
|
|
763
763
|
).option("--json", "Emit JSON output").action(async (options) => {
|
|
764
|
-
const { http } =
|
|
764
|
+
const { http } = _chunkNNWEQDZRjs.getAuthedHttpClient.call(void 0, );
|
|
765
765
|
const result = await http.get(
|
|
766
766
|
`${AGENT_PATH}/slack/installations`
|
|
767
767
|
);
|
|
@@ -780,7 +780,7 @@ function registerSkillCommands(agents) {
|
|
|
780
780
|
"The workspace\u2019s skill library: markdown an agent loads when its description matches the task."
|
|
781
781
|
);
|
|
782
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) => {
|
|
783
|
-
const { http } =
|
|
783
|
+
const { http } = _chunkNNWEQDZRjs.getAuthedHttpClient.call(void 0, );
|
|
784
784
|
const result = await http.get(
|
|
785
785
|
`${AGENT_PATH}/skills/${encodeURIComponent(requireArgument(name, "a skill name"))}`
|
|
786
786
|
);
|
|
@@ -818,7 +818,7 @@ function registerSkillCommands(agents) {
|
|
|
818
818
|
printDryRun("PUT", path, body, options);
|
|
819
819
|
return;
|
|
820
820
|
}
|
|
821
|
-
const { http } =
|
|
821
|
+
const { http } = _chunkNNWEQDZRjs.getAuthedHttpClient.call(void 0, );
|
|
822
822
|
const result = await http.put(path, body);
|
|
823
823
|
print(
|
|
824
824
|
result,
|
|
@@ -841,7 +841,7 @@ function registerSkillCommands(agents) {
|
|
|
841
841
|
printDryRun("DELETE", path, null, options);
|
|
842
842
|
return;
|
|
843
843
|
}
|
|
844
|
-
const { http } =
|
|
844
|
+
const { http } = _chunkNNWEQDZRjs.getAuthedHttpClient.call(void 0, );
|
|
845
845
|
const result = await http.delete(path);
|
|
846
846
|
print(
|
|
847
847
|
result,
|
|
@@ -895,7 +895,7 @@ function registerFeedbackCommand(agents) {
|
|
|
895
895
|
params.set("cursor", requireArgument(options.cursor, "--cursor"));
|
|
896
896
|
}
|
|
897
897
|
const query = params.toString();
|
|
898
|
-
const { http } =
|
|
898
|
+
const { http } = _chunkNNWEQDZRjs.getAuthedHttpClient.call(void 0, );
|
|
899
899
|
const page = await http.get(
|
|
900
900
|
`${AGENT_PATH}/feedback${query ? `?${query}` : ""}`
|
|
901
901
|
).catch((error) => {
|
|
@@ -958,7 +958,7 @@ function registerRepliesCommand(agents) {
|
|
|
958
958
|
params.set("cursor", requireArgument(options.cursor, "--cursor"));
|
|
959
959
|
}
|
|
960
960
|
const query = params.toString();
|
|
961
|
-
const { http } =
|
|
961
|
+
const { http } = _chunkNNWEQDZRjs.getAuthedHttpClient.call(void 0, );
|
|
962
962
|
const page = await http.get(`${AGENT_PATH}/replies${query ? `?${query}` : ""}`).catch((error) => {
|
|
963
963
|
if (error instanceof _chunkLFQJW4S2js.DeeplineError && error.code === REPLIES_INVALID_CURSOR) {
|
|
964
964
|
throw new AgentUsageError(`--cursor: ${error.message}`);
|
|
@@ -984,13 +984,13 @@ function registerActivityCommand(agents) {
|
|
|
984
984
|
agents.command("activity").description(
|
|
985
985
|
"Sum each agent's replies over the last 7 days: how many, how they ended, median time, tokens and the last reply."
|
|
986
986
|
).option("--json", "Emit JSON output").action(async (options) => {
|
|
987
|
-
const { http } =
|
|
987
|
+
const { http } = _chunkNNWEQDZRjs.getAuthedHttpClient.call(void 0, );
|
|
988
988
|
const activity = await http.get(`${AGENT_PATH}/activity`);
|
|
989
989
|
print(activity, "agent activity", describeActivity(activity), options);
|
|
990
990
|
});
|
|
991
991
|
}
|
|
992
992
|
function registerAgentsCommands(program, readKey = readModelKey) {
|
|
993
|
-
const agents = program.command("agents", { hidden: !
|
|
993
|
+
const agents = program.command("agents", { hidden: !_chunk2ZCFAUCVjs.cliFeatureEnabled.call(void 0, AGENT_FEATURE) }).description(
|
|
994
994
|
"Deepline agents in Slack: create agents with instructions and skills, bind channels to them, and talk to them."
|
|
995
995
|
);
|
|
996
996
|
registerWorkspaceCommands(agents, readKey);
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import {
|
|
2
2
|
getAuthedHttpClient,
|
|
3
3
|
printCommandEnvelope
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-3ZBPXNSW.mjs";
|
|
5
5
|
import {
|
|
6
6
|
cliFeatureEnabled
|
|
7
|
-
} from "./chunk-
|
|
8
|
-
import "./chunk-
|
|
7
|
+
} from "./chunk-X5RXG6VS.mjs";
|
|
8
|
+
import "./chunk-IG3CXIJY.mjs";
|
|
9
9
|
import "./chunk-ASB47RXJ.mjs";
|
|
10
10
|
import "./chunk-DLIRSHV6.mjs";
|
|
11
11
|
import {
|
|
12
12
|
DeeplineError
|
|
13
13
|
} from "./chunk-Z3A2S3QM.mjs";
|
|
14
14
|
import "./chunk-2MGZAI54.mjs";
|
|
15
|
-
import "./chunk-
|
|
15
|
+
import "./chunk-GIZIWNL5.mjs";
|
|
16
16
|
import "./chunk-WZYKRD7T.mjs";
|
|
17
17
|
import "./chunk-KRD6H754.mjs";
|
|
18
18
|
|
|
@@ -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 _chunkR77IVVEZjs = require('./chunk-R77IVVEZ.js');
|
|
18
|
+
require('./chunk-NNWEQDZR.js');
|
|
19
|
+
require('./chunk-2ZCFAUCV.js');
|
|
20
|
+
require('./chunk-6VSUP4WN.js');
|
|
21
|
+
require('./chunk-6VLFQZK6.js');
|
|
22
|
+
require('./chunk-XNYIZMNQ.js');
|
|
23
|
+
require('./chunk-LFQJW4S2.js');
|
|
24
|
+
require('./chunk-CFJFUVX2.js');
|
|
25
|
+
require('./chunk-MBOPKQJF.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 = _chunkR77IVVEZjs.EXIT_WORKSPACE_MISMATCH; exports.authStatusLine = _chunkR77IVVEZjs.authStatusLine; exports.clearPendingClaim = _chunkR77IVVEZjs.clearPendingClaim; exports.clearSatisfiedPendingClaim = _chunkR77IVVEZjs.clearSatisfiedPendingClaim; exports.handleRegister = _chunkR77IVVEZjs.handleRegister; exports.handleStatus = _chunkR77IVVEZjs.handleStatus; exports.handleWait = _chunkR77IVVEZjs.handleWait; exports.httpJson = _chunkR77IVVEZjs.httpJson; exports.readPendingAuthClaim = _chunkR77IVVEZjs.readPendingAuthClaim; exports.readStatusBanner = _chunkR77IVVEZjs.readStatusBanner; exports.registerAuthCommands = _chunkR77IVVEZjs.registerAuthCommands; exports.reportApprovalLinkShown = _chunkR77IVVEZjs.reportApprovalLinkShown; exports.reportSetupCompleted = _chunkR77IVVEZjs.reportSetupCompleted; exports.resolvePendingAuthClaimForResume = _chunkR77IVVEZjs.resolvePendingAuthClaimForResume; exports.statusBannerLine = _chunkR77IVVEZjs.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-VF3EGTHU.mjs";
|
|
18
|
+
import "./chunk-3ZBPXNSW.mjs";
|
|
19
|
+
import "./chunk-X5RXG6VS.mjs";
|
|
20
|
+
import "./chunk-IG3CXIJY.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-GIZIWNL5.mjs";
|
|
26
26
|
import "./chunk-WZYKRD7T.mjs";
|
|
27
27
|
import "./chunk-KRD6H754.mjs";
|
|
28
28
|
export {
|