deepline 0.3.477 → 0.3.478
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 +5 -4
- package/dist/bundling-sources/sdk/src/http-core.ts +84 -3
- package/dist/bundling-sources/sdk/src/http.ts +2 -0
- package/dist/bundling-sources/sdk/src/play.ts +8 -2
- package/dist/bundling-sources/sdk/src/release.ts +1 -1
- package/dist/bundling-sources/shared_libs/observability/scheduled-jobs.json +18 -0
- package/dist/bundling-sources/shared_libs/play-runtime/context.ts +10 -2
- package/dist/bundling-sources/shared_libs/play-runtime/governor/app-runtime-rate-state-backend.ts +11 -1
- package/dist/bundling-sources/shared_libs/play-runtime/protocol.ts +5 -0
- package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/backends/daytona-payload-transport.ts +77 -4
- package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/backends/daytona-session-execution.ts +83 -1
- package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/backends/daytona.ts +7 -0
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/postgres-rate-state.ts +60 -27
- package/dist/bundling-sources/shared_libs/plays/authoring-contract.ts +13 -12
- package/dist/bundling-sources/shared_libs/plays/bundling/index.ts +5 -2
- package/dist/bundling-sources/shared_libs/plays/sandbox-runtime-limits.ts +37 -12
- package/dist/bundling-sources/shared_libs/product-notifications/billing-sales.ts +1 -0
- package/dist/bundling-sources/shared_libs/product-notifications/catalog.ts +29 -0
- package/dist/bundling-sources/shared_libs/product-notifications/events.ts +15 -0
- package/dist/cli/{auth-XVXRRWIQ.mjs → auth-SA4DJCSO.mjs} +5 -5
- package/dist/cli/auth-U5SNVC5F.js +41 -0
- package/dist/cli/{billing-2H7GFJDT.js → billing-462SAHWX.js} +107 -87
- package/dist/cli/{billing-EOPUJ4JI.mjs → billing-Z4D35MV5.mjs} +34 -14
- package/dist/cli/{chunk-SG2SZQ4K.mjs → chunk-2FTUPGTN.mjs} +2 -2
- package/dist/cli/{chunk-NO7ZC2GV.mjs → chunk-2JS5DNVX.mjs} +5 -5
- package/dist/cli/{chunk-3UKKM6OS.js → chunk-2MSKG4ER.js} +7 -6
- package/dist/cli/{chunk-ISEUOYCB.mjs → chunk-3LTLQAU4.mjs} +4 -4
- package/dist/cli/{chunk-C2V2HQDW.mjs → chunk-3V7INABZ.mjs} +2 -2
- package/dist/cli/{chunk-C2AN2HTB.mjs → chunk-4C3TMIF3.mjs} +4 -4
- package/dist/cli/{chunk-2YNLW43I.mjs → chunk-4RJRGQ5Y.mjs} +2 -2
- package/dist/cli/{chunk-M2UL4ZS5.js → chunk-4RV7U3RP.js} +7 -7
- package/dist/cli/{chunk-PQQNMMWM.mjs → chunk-645RNF2Y.mjs} +1 -1
- package/dist/cli/{chunk-THMGJOR4.js → chunk-6EEMW7YP.js} +8 -8
- package/dist/cli/{chunk-YZA5UJXM.mjs → chunk-75DAGCEX.mjs} +1 -1
- package/dist/cli/{chunk-QODW5ILA.mjs → chunk-7HTWT3Z4.mjs} +2 -2
- package/dist/cli/chunk-7I4B6V2S.mjs +127 -0
- package/dist/cli/{chunk-MZSLFWOT.js → chunk-7UFFWPQ2.js} +13 -9
- package/dist/cli/{chunk-23EEVP5W.js → chunk-A5LPDB6N.js} +6 -6
- package/dist/cli/{chunk-NJMYX2TP.mjs → chunk-ABBP5ZCI.mjs} +3 -3
- package/dist/cli/{chunk-347EE4YE.js → chunk-AQYSZYNE.js} +8 -8
- package/dist/cli/{chunk-RGNMMDSJ.js → chunk-AYW242XF.js} +37 -37
- package/dist/cli/{chunk-6IJJCRE5.mjs → chunk-BLAZVZVD.mjs} +23 -5
- package/dist/cli/{chunk-ZDPL5AIK.js → chunk-D2LKEQKI.js} +5 -5
- package/dist/cli/{chunk-RLCAECZH.mjs → chunk-F2SJYUBW.mjs} +5 -5
- package/dist/cli/{chunk-XQLYPHYW.mjs → chunk-F44O4PEP.mjs} +1 -1
- package/dist/cli/{chunk-7CILZKLE.js → chunk-HMUBLAT4.js} +5 -5
- package/dist/cli/{chunk-UYA7LJGC.mjs → chunk-IL5AF6AR.mjs} +4 -2
- package/dist/cli/{chunk-4RAENEAX.js → chunk-IWYWZXCA.js} +53 -53
- package/dist/cli/{chunk-2QT6KN54.js → chunk-J3ZYRN5L.js} +10 -10
- package/dist/cli/{chunk-RHIFH3GD.mjs → chunk-JH775FF6.mjs} +1 -1
- package/dist/cli/{chunk-ACDXGOXE.js → chunk-KBBZXWXF.js} +63 -11
- package/dist/cli/{chunk-LJYTYNQZ.mjs → chunk-M5USVQ33.mjs} +55 -3
- package/dist/cli/{chunk-2GZFIWSA.mjs → chunk-N573OK4W.mjs} +4 -4
- package/dist/cli/{chunk-WFVEMDQL.js → chunk-OKAZHDYN.js} +4 -2
- package/dist/cli/{chunk-DFKHXZQ7.mjs → chunk-PHBOI24Y.mjs} +10 -10
- package/dist/cli/{chunk-WRHLAAGN.mjs → chunk-PLJV6SX4.mjs} +1 -1
- package/dist/cli/{chunk-C46DWB56.mjs → chunk-PPHHPAQV.mjs} +1 -1
- package/dist/cli/{chunk-UBNS6GSV.js → chunk-PZHRNSMU.js} +21 -21
- package/dist/cli/{chunk-KMXBZIKO.mjs → chunk-QB3Q73LP.mjs} +2 -2
- package/dist/cli/{chunk-255O6APS.js → chunk-QVZNUQAP.js} +2 -2
- package/dist/cli/{chunk-6KKDIISC.js → chunk-S3BKOCVB.js} +1 -1
- package/dist/cli/{chunk-JS4UO6G4.mjs → chunk-S7UEKKOX.mjs} +2 -1
- package/dist/cli/{chunk-KWQNNPMH.js → chunk-SCHE5QRN.js} +3 -3
- package/dist/cli/{chunk-E2CUSH56.js → chunk-SXY4DOVA.js} +16 -16
- package/dist/cli/{chunk-SVU2VR6Q.mjs → chunk-TLF3KGWG.mjs} +2 -2
- package/dist/cli/{chunk-LXKGZKTL.js → chunk-TQWI7LJX.js} +26 -26
- package/dist/cli/{chunk-NC52JG66.js → chunk-TW3TTKW5.js} +3 -3
- package/dist/cli/{chunk-R5FNCFEK.js → chunk-UXQVSDFP.js} +3 -3
- package/dist/cli/{chunk-DMWHEYZM.js → chunk-V7I65ME7.js} +2 -2
- package/dist/cli/{chunk-CH4VMDB5.js → chunk-VE25VUTE.js} +70 -52
- package/dist/cli/{chunk-3W6E3WVU.js → chunk-XFY3JOP2.js} +9 -9
- package/dist/cli/{chunk-75NLWBYQ.js → chunk-XOORR6P3.js} +93 -93
- package/dist/cli/chunk-YGCKMI5P.js +127 -0
- package/dist/cli/{chunk-3A7TDUZV.mjs → chunk-ZBSUXXZS.mjs} +13 -9
- package/dist/cli/{chunk-DS3DZUES.mjs → chunk-ZSU3C4ST.mjs} +2 -2
- package/dist/cli/command-docs.js +2 -2
- package/dist/cli/command-docs.mjs +1 -1
- package/dist/cli/{csv-IDRPTSSC.mjs → csv-3SNWBO5F.mjs} +4 -4
- package/dist/cli/{csv-ECB7TYR2.js → csv-LAYTDYIF.js} +13 -13
- package/dist/cli/{db-FOBZD44N.mjs → db-72JKGQSK.mjs} +6 -6
- package/dist/cli/{db-S74XZZ77.js → db-OOUOSURL.js} +27 -27
- package/dist/cli/describe-7HYV44MO.js +48 -0
- package/dist/cli/{describe-KMTPPI2J.mjs → describe-KDPNOEUJ.mjs} +17 -17
- package/dist/cli/describe-core.d.mts +3 -3
- package/dist/cli/describe-core.d.ts +3 -3
- package/dist/cli/{executions-4JAIVE2E.mjs → executions-O6JS3UKX.mjs} +6 -6
- package/dist/cli/{executions-ZE3JMNA4.js → executions-RJNMGJEE.js} +8 -8
- package/dist/cli/{feedback-W6VA47A3.js → feedback-FXB6NV3Y.js} +8 -8
- package/dist/cli/{feedback-EUX5PDBA.mjs → feedback-T3JH3CWC.mjs} +4 -4
- package/dist/cli/git-5LTKPXGN.js +25 -0
- package/dist/cli/{git-UOVG4PLH.mjs → git-6KAQSH5J.mjs} +5 -5
- package/dist/cli/index.js +161 -142
- package/dist/cli/index.mjs +65 -46
- package/dist/cli/{legacy-noops-ZBWUNFWV.mjs → legacy-noops-7HDGEGTK.mjs} +5 -5
- package/dist/cli/{legacy-noops-3H35EH5Y.js → legacy-noops-PAOGRKUK.js} +8 -8
- package/dist/cli/{monitors-PI3KPLR2.js → monitors-KQFI7TVJ.js} +91 -91
- package/dist/cli/{monitors-AYSGSUAK.mjs → monitors-LE2AYK3Z.mjs} +7 -7
- package/dist/cli/{org-MVS3Y6BK.js → org-J6XFHDJE.js} +72 -72
- package/dist/cli/{org-2BIG7U4V.mjs → org-Z4DMJ72I.mjs} +6 -6
- package/dist/cli/{pages-4TRRL24G.mjs → pages-5LYS6Y4I.mjs} +6 -6
- package/dist/cli/{pages-VB6FOVDE.js → pages-FIXBZQJG.js} +17 -17
- package/dist/cli/{play-BLT6IT2O.js → play-D7WPXADH.js} +585 -678
- package/dist/cli/{play-JR3VUOZM.mjs → play-GILXXIN7.mjs} +26 -119
- package/dist/cli/{providers-BBXIAGW4.js → providers-KN7YACT6.js} +9 -9
- package/dist/cli/{providers-547DPK4S.mjs → providers-OQWL4Q4W.mjs} +6 -6
- package/dist/cli/{quickstart-NTLXD7HS.mjs → quickstart-2LRIORFM.mjs} +4 -4
- package/dist/cli/{quickstart-RNPI5B6J.js → quickstart-M2OBP3W3.js} +6 -6
- package/dist/cli/{run-BCCEXBOG.js → run-6YZZO7VM.js} +36 -36
- package/dist/cli/{run-QZ4SFECD.mjs → run-GYRBKQZT.mjs} +22 -22
- package/dist/cli/search-OVKWA4AV.js +32 -0
- package/dist/cli/{search-PYNELH4C.mjs → search-VUPK6BNU.mjs} +7 -7
- package/dist/cli/{secrets-VD35LMYJ.js → secrets-RE3UMZB7.js} +15 -15
- package/dist/cli/{secrets-O5WGREQ7.mjs → secrets-ULRGU7NM.mjs} +6 -6
- package/dist/cli/{sessions-2TL6Z5J5.mjs → sessions-2ZZVJ3P2.mjs} +5 -5
- package/dist/cli/{sessions-NGGIBYXF.js → sessions-T4UMHNDW.js} +6 -6
- package/dist/cli/{settings-ERFNZRHO.js → settings-BRV6AYFM.js} +78 -78
- package/dist/cli/{settings-6KM74AJT.mjs → settings-PDY4TJU6.mjs} +11 -11
- package/dist/cli/{setup-Y3BN6XRS.mjs → setup-CXL6C5Z5.mjs} +9 -9
- package/dist/cli/{setup-6X7EJ6RG.js → setup-JONYJYBK.js} +44 -44
- package/dist/cli/{skills-OUBQASHI.mjs → skills-TOMVQD5O.mjs} +7 -7
- package/dist/cli/skills-UK5AK35I.js +33 -0
- package/dist/cli/{tools-EELZ5FF5.mjs → tools-B2LJK4MM.mjs} +16 -16
- package/dist/cli/tools-HH6E5G7J.js +55 -0
- package/dist/cli/{update-TX7SW32Y.mjs → update-CD6T2REC.mjs} +9 -9
- package/dist/cli/update-EGXT3EIJ.js +33 -0
- package/dist/cli/{workflow-5AI2BJA7.js → workflow-PZML43E2.js} +17 -17
- package/dist/cli/{workflow-PUNQG7LG.mjs → workflow-ZAOBP6I7.mjs} +7 -7
- package/dist/{client-AjmfA5nR.d.mts → client-B1s1yJdT.d.mts} +1 -1
- package/dist/{client-DMyY-QL8.d.ts → client-DqUseRzd.d.ts} +1 -1
- package/dist/{client-core-C705vFyV.d.ts → client-core-Bd7tP9Uz.d.ts} +45 -6
- package/dist/{client-core-CpBbvLEX.d.mts → client-core-BijQEQ70.d.mts} +45 -6
- package/dist/{compiler-manifest-hqIAukR0.d.mts → compiler-manifest-B1m5tRzz.d.mts} +23 -17
- package/dist/{compiler-manifest-hqIAukR0.d.ts → compiler-manifest-B1m5tRzz.d.ts} +23 -17
- package/dist/{errors-CRO2qQ6k.d.ts → errors-3g71OMXy.d.ts} +1 -1
- package/dist/{errors-DIHVetNY.d.mts → errors-QiC6am-q.d.mts} +1 -1
- package/dist/{index-DVZ_X4Gb.d.mts → index-Biz5toO4.d.mts} +1 -1
- package/dist/{index-B8DVoeYt.d.ts → index-CIBiwzhK.d.ts} +1 -1
- package/dist/index.d.mts +15 -9
- package/dist/index.d.ts +15 -9
- package/dist/index.js +9 -9
- package/dist/index.mjs +6 -6
- package/dist/install-integrity.json +112 -110
- package/dist/plays/bundle-play-file.d.mts +3 -3
- package/dist/plays/bundle-play-file.d.ts +3 -3
- package/dist/plays/bundle-play-file.mjs +2 -1
- package/dist/plays/play-description.d.mts +2 -2
- package/dist/plays/play-description.d.ts +2 -2
- package/dist/plays/run-request.d.mts +2 -2
- package/dist/plays/run-request.d.ts +2 -2
- 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 +4 -4
- package/dist/server.d.ts +4 -4
- package/dist/server.js +5 -5
- package/dist/server.mjs +3 -3
- package/package.json +1 -1
- package/dist/cli/auth-QITP34OX.js +0 -41
- package/dist/cli/describe-PI7HCT7K.js +0 -48
- package/dist/cli/git-NDOGCQZY.js +0 -25
- package/dist/cli/search-YHEICYQL.js +0 -32
- package/dist/cli/skills-F7MPYC4P.js +0 -33
- package/dist/cli/tools-MCWDAK53.js +0 -55
- package/dist/cli/update-G5BRJOVT.js +0 -33
|
@@ -3,15 +3,15 @@ import {
|
|
|
3
3
|
} from "./chunk-LJ5747UC.mjs";
|
|
4
4
|
import {
|
|
5
5
|
DeeplineClient
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-2FTUPGTN.mjs";
|
|
7
7
|
import {
|
|
8
8
|
printCommandEnvelope,
|
|
9
9
|
renderCommandEnvelopeText
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-7HTWT3Z4.mjs";
|
|
11
11
|
import {
|
|
12
12
|
resolveConfig,
|
|
13
13
|
sdkCliStateDirPath
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-75DAGCEX.mjs";
|
|
15
15
|
import {
|
|
16
16
|
__commonJS,
|
|
17
17
|
__toESM
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunk4RV7U3RPjs = require('./chunk-4RV7U3RP.js');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkKBBZXWXFjs = require('./chunk-KBBZXWXF.js');
|
|
8
8
|
|
|
9
9
|
// src/cli/commands/sessions.ts
|
|
10
10
|
|
|
@@ -139,7 +139,7 @@ function currentSessionFile(agent) {
|
|
|
139
139
|
const newestFirst = listSessionFiles(agent).sort(
|
|
140
140
|
(a, b) => b.mtimeMs - a.mtimeMs
|
|
141
141
|
);
|
|
142
|
-
const sessionId =
|
|
142
|
+
const sessionId = _chunkKBBZXWXFjs.agentSessionIdFromEnvironment.call(void 0,
|
|
143
143
|
process.env,
|
|
144
144
|
agent === "auto" ? void 0 : agent === "claude" ? "claude_code" : "codex"
|
|
145
145
|
);
|
|
@@ -451,7 +451,7 @@ function buildSessionUploadContent(raw) {
|
|
|
451
451
|
return { encodedContent: encoded, needsChunking: true };
|
|
452
452
|
}
|
|
453
453
|
async function uploadPayload(path, payload) {
|
|
454
|
-
const { http } =
|
|
454
|
+
const { http } = _chunk4RV7U3RPjs.getAuthedHttpClient.call(void 0, );
|
|
455
455
|
return await http.post(path, payload);
|
|
456
456
|
}
|
|
457
457
|
async function uploadChunkedSessions(sessions, options) {
|
|
@@ -484,7 +484,7 @@ async function uploadChunkedSessions(sessions, options) {
|
|
|
484
484
|
...options.rating ? { rating: options.rating } : {}
|
|
485
485
|
});
|
|
486
486
|
const sessionIds = sessions.map((session) => session.sessionId);
|
|
487
|
-
|
|
487
|
+
_chunk4RV7U3RPjs.printCommandEnvelope.call(void 0,
|
|
488
488
|
{
|
|
489
489
|
...response,
|
|
490
490
|
ok: true,
|
|
@@ -516,7 +516,7 @@ async function handleSessionsSend(options) {
|
|
|
516
516
|
filename: _path.basename.call(void 0, filePath),
|
|
517
517
|
...rating ? { rating } : {}
|
|
518
518
|
});
|
|
519
|
-
|
|
519
|
+
_chunk4RV7U3RPjs.printCommandEnvelope.call(void 0,
|
|
520
520
|
{
|
|
521
521
|
...response2,
|
|
522
522
|
ok: true,
|
|
@@ -566,7 +566,7 @@ async function handleSessionsSend(options) {
|
|
|
566
566
|
...rating ? { rating } : {}
|
|
567
567
|
});
|
|
568
568
|
const sessionIds = built.map((session) => session.sessionId);
|
|
569
|
-
|
|
569
|
+
_chunk4RV7U3RPjs.printCommandEnvelope.call(void 0,
|
|
570
570
|
{
|
|
571
571
|
...response,
|
|
572
572
|
ok: true,
|
|
@@ -674,7 +674,7 @@ ${refreshMeta}
|
|
|
674
674
|
</body>
|
|
675
675
|
</html>`;
|
|
676
676
|
_fs.writeFileSync.call(void 0, outputPath, html, "utf8");
|
|
677
|
-
|
|
677
|
+
_chunk4RV7U3RPjs.printCommandEnvelope.call(void 0,
|
|
678
678
|
{
|
|
679
679
|
ok: true,
|
|
680
680
|
file: outputPath,
|
|
@@ -11,20 +11,20 @@
|
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
|
|
14
|
-
var
|
|
14
|
+
var _chunkIWYWZXCAjs = require('./chunk-IWYWZXCA.js');
|
|
15
15
|
|
|
16
16
|
|
|
17
|
-
var
|
|
17
|
+
var _chunk4RV7U3RPjs = require('./chunk-4RV7U3RP.js');
|
|
18
18
|
|
|
19
19
|
|
|
20
20
|
|
|
21
21
|
|
|
22
22
|
|
|
23
|
-
var
|
|
23
|
+
var _chunkTW3TTKW5js = require('./chunk-TW3TTKW5.js');
|
|
24
24
|
|
|
25
25
|
|
|
26
26
|
|
|
27
|
-
var
|
|
27
|
+
var _chunkKBBZXWXFjs = require('./chunk-KBBZXWXF.js');
|
|
28
28
|
|
|
29
29
|
// src/cli/commands/skills.ts
|
|
30
30
|
var _child_process = require('child_process');
|
|
@@ -132,7 +132,7 @@ function inferActiveSkillsScope(entrypoint = _nullishCoalesce(process.argv[1], (
|
|
|
132
132
|
return /[\\/]\.deepline[\\/]runtime[\\/]/.test(entrypoint) ? "local" : "global";
|
|
133
133
|
}
|
|
134
134
|
function resolveLocalRoot() {
|
|
135
|
-
const target =
|
|
135
|
+
const target = _chunkTW3TTKW5js.resolveProjectPinTarget.call(void 0, );
|
|
136
136
|
if (!target.ok) {
|
|
137
137
|
throw new Error(
|
|
138
138
|
`Cowork project folder is ambiguous. Candidate folders: ${target.candidates.join(
|
|
@@ -143,7 +143,7 @@ function resolveLocalRoot() {
|
|
|
143
143
|
return target.dir;
|
|
144
144
|
}
|
|
145
145
|
function detectSkillsAgents(input) {
|
|
146
|
-
const runtime = _nullishCoalesce(input.runtime, () => (
|
|
146
|
+
const runtime = _nullishCoalesce(input.runtime, () => ( _chunkKBBZXWXFjs.detectAgentRuntime.call(void 0, )));
|
|
147
147
|
const knownAgent = RUNTIME_TO_SKILLS_AGENT[runtime];
|
|
148
148
|
if (knownAgent) return [knownAgent];
|
|
149
149
|
const roots = [
|
|
@@ -158,11 +158,11 @@ function detectSkillsAgents(input) {
|
|
|
158
158
|
return detected.length > 0 ? detected : ["*"];
|
|
159
159
|
}
|
|
160
160
|
function skillsStatePathForScope(baseUrl, scope, root) {
|
|
161
|
-
return scope === "local" && root ? _path.join.call(void 0, root, ".deepline", "setup", "skills.json") : _path.join.call(void 0,
|
|
161
|
+
return scope === "local" && root ? _path.join.call(void 0, root, ".deepline", "setup", "skills.json") : _path.join.call(void 0, _chunkTW3TTKW5js.sdkCliStateDirPath.call(void 0, baseUrl), "skills-install.json");
|
|
162
162
|
}
|
|
163
163
|
function buildSkillsPlan(input) {
|
|
164
164
|
const scopeArgs = input.scope === "global" ? ["--global"] : [];
|
|
165
|
-
const legacyNames = [...
|
|
165
|
+
const legacyNames = [..._chunkIWYWZXCAjs.LEGACY_SKILL_NAMES_TO_REMOVE].sort(
|
|
166
166
|
(a, b) => a.localeCompare(b)
|
|
167
167
|
);
|
|
168
168
|
return {
|
|
@@ -176,7 +176,7 @@ function buildSkillsPlan(input) {
|
|
|
176
176
|
args: [
|
|
177
177
|
"exec",
|
|
178
178
|
"--yes",
|
|
179
|
-
`--package=${
|
|
179
|
+
`--package=${_chunkIWYWZXCAjs.SKILLS_NPX_PACKAGE}`,
|
|
180
180
|
"--",
|
|
181
181
|
"skills",
|
|
182
182
|
"remove",
|
|
@@ -192,11 +192,11 @@ function buildSkillsPlan(input) {
|
|
|
192
192
|
args: [
|
|
193
193
|
"exec",
|
|
194
194
|
"--yes",
|
|
195
|
-
`--package=${
|
|
195
|
+
`--package=${_chunkIWYWZXCAjs.SKILLS_NPX_PACKAGE}`,
|
|
196
196
|
"--",
|
|
197
197
|
"skills",
|
|
198
198
|
"add",
|
|
199
|
-
|
|
199
|
+
_chunkIWYWZXCAjs.skillsSourceUrl.call(void 0, input.baseUrl),
|
|
200
200
|
"--agent",
|
|
201
201
|
...input.agents,
|
|
202
202
|
...scopeArgs,
|
|
@@ -233,7 +233,7 @@ function readSkillsInstallState(path) {
|
|
|
233
233
|
}
|
|
234
234
|
function runProcess(command, args, cwd) {
|
|
235
235
|
return new Promise((resolve, reject) => {
|
|
236
|
-
const plan =
|
|
236
|
+
const plan = _chunkIWYWZXCAjs.resolveShellSpawn.call(void 0,
|
|
237
237
|
command,
|
|
238
238
|
args,
|
|
239
239
|
process.platform,
|
|
@@ -255,7 +255,7 @@ function runProcess(command, args, cwd) {
|
|
|
255
255
|
child.kill("SIGTERM");
|
|
256
256
|
reject(
|
|
257
257
|
new Error(
|
|
258
|
-
`${
|
|
258
|
+
`${_chunkIWYWZXCAjs.SKILLS_NPX_PACKAGE} timed out after ${SKILLS_PROCESS_TIMEOUT_MS}ms.`
|
|
259
259
|
)
|
|
260
260
|
);
|
|
261
261
|
}, SKILLS_PROCESS_TIMEOUT_MS);
|
|
@@ -266,7 +266,7 @@ function runProcess(command, args, cwd) {
|
|
|
266
266
|
child.once("close", (code) => {
|
|
267
267
|
clearTimeout(timeout);
|
|
268
268
|
if (code && stderr.trim()) {
|
|
269
|
-
process.stderr.write(`${
|
|
269
|
+
process.stderr.write(`${_chunkIWYWZXCAjs.SKILLS_NPX_PACKAGE} exited ${code}.
|
|
270
270
|
`);
|
|
271
271
|
}
|
|
272
272
|
resolve(_nullishCoalesce(code, () => ( 1)));
|
|
@@ -280,7 +280,7 @@ async function runSkillsCommand(options, dependencies = {}) {
|
|
|
280
280
|
scope = normalizeScope(options.scope);
|
|
281
281
|
root = scope === "local" ? resolveLocalRoot() : null;
|
|
282
282
|
} catch (error) {
|
|
283
|
-
|
|
283
|
+
_chunk4RV7U3RPjs.printCommandEnvelope.call(void 0,
|
|
284
284
|
{
|
|
285
285
|
ok: false,
|
|
286
286
|
status: "failed",
|
|
@@ -292,22 +292,22 @@ async function runSkillsCommand(options, dependencies = {}) {
|
|
|
292
292
|
);
|
|
293
293
|
return 2;
|
|
294
294
|
}
|
|
295
|
-
const baseUrl =
|
|
295
|
+
const baseUrl = _chunkTW3TTKW5js.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
|
|
296
296
|
const catalog = {
|
|
297
|
-
skillNames: [...
|
|
298
|
-
version:
|
|
297
|
+
skillNames: [..._chunkIWYWZXCAjs.DEFAULT_SDK_SKILL_NAMES],
|
|
298
|
+
version: _chunkKBBZXWXFjs.SDK_VERSION
|
|
299
299
|
};
|
|
300
300
|
const agents = options.agent ? [options.agent] : detectSkillsAgents({ scope, root });
|
|
301
301
|
const plan = buildSkillsPlan({ baseUrl, scope, root, agents, ...catalog });
|
|
302
302
|
if (options.dryRun) {
|
|
303
|
-
|
|
303
|
+
_chunk4RV7U3RPjs.printCommandEnvelope.call(void 0,
|
|
304
304
|
{ ok: true, status: "planned", dryRun: true, ...plan },
|
|
305
305
|
{ json: options.json }
|
|
306
306
|
);
|
|
307
307
|
return 0;
|
|
308
308
|
}
|
|
309
|
-
if (isSkillsPlanCurrent(plan, readSkillsInstallState(plan.statePath)) && !
|
|
310
|
-
|
|
309
|
+
if (isSkillsPlanCurrent(plan, readSkillsInstallState(plan.statePath)) && !_chunkIWYWZXCAjs.hasFailedAutomaticSkillsSync.call(void 0, baseUrl, agents)) {
|
|
310
|
+
_chunk4RV7U3RPjs.printCommandEnvelope.call(void 0,
|
|
311
311
|
{
|
|
312
312
|
ok: true,
|
|
313
313
|
status: "current",
|
|
@@ -339,10 +339,10 @@ async function runSkillsCommand(options, dependencies = {}) {
|
|
|
339
339
|
}
|
|
340
340
|
if (scope === "local" && root) {
|
|
341
341
|
const managedNames = [
|
|
342
|
-
.../* @__PURE__ */ new Set([...plan.skillNames, ...
|
|
342
|
+
.../* @__PURE__ */ new Set([...plan.skillNames, ..._chunkIWYWZXCAjs.LEGACY_SKILL_NAMES_TO_REMOVE])
|
|
343
343
|
];
|
|
344
344
|
const agentRoots = workspaceSkillRootsForAgents(plan.agents);
|
|
345
|
-
|
|
345
|
+
_chunkTW3TTKW5js.ensureProjectPrivatePathsIgnored.call(void 0, root, [
|
|
346
346
|
".deepline/",
|
|
347
347
|
...agentRoots.flatMap(
|
|
348
348
|
(agentRoot) => managedNames.map((name) => `${agentRoot}/skills/${name}/`)
|
|
@@ -351,7 +351,7 @@ async function runSkillsCommand(options, dependencies = {}) {
|
|
|
351
351
|
}
|
|
352
352
|
let lease;
|
|
353
353
|
try {
|
|
354
|
-
lease = scope === "global" ? await
|
|
354
|
+
lease = scope === "global" ? await _chunkIWYWZXCAjs.acquireSkillsInstallLease.call(void 0, baseUrl, agents, plan.version, {
|
|
355
355
|
waitMs: _nullishCoalesce(dependencies.installLeaseWaitMs, () => ( SKILLS_INSTALL_LEASE_WAIT_MS)),
|
|
356
356
|
onWait: () => process.stderr.write(
|
|
357
357
|
"Waiting for a background Deepline skills refresh to finish...\n"
|
|
@@ -359,8 +359,8 @@ async function runSkillsCommand(options, dependencies = {}) {
|
|
|
359
359
|
}) : { release: () => {
|
|
360
360
|
} };
|
|
361
361
|
} catch (error) {
|
|
362
|
-
if (!(error instanceof
|
|
363
|
-
|
|
362
|
+
if (!(error instanceof _chunkIWYWZXCAjs.SkillsStateUnavailableError)) throw error;
|
|
363
|
+
_chunk4RV7U3RPjs.printCommandEnvelope.call(void 0,
|
|
364
364
|
{
|
|
365
365
|
ok: false,
|
|
366
366
|
status: "failed",
|
|
@@ -376,7 +376,7 @@ async function runSkillsCommand(options, dependencies = {}) {
|
|
|
376
376
|
return 5;
|
|
377
377
|
}
|
|
378
378
|
if (!lease) {
|
|
379
|
-
|
|
379
|
+
_chunk4RV7U3RPjs.printCommandEnvelope.call(void 0,
|
|
380
380
|
{
|
|
381
381
|
ok: false,
|
|
382
382
|
status: "failed",
|
|
@@ -385,7 +385,7 @@ async function runSkillsCommand(options, dependencies = {}) {
|
|
|
385
385
|
scope,
|
|
386
386
|
agents,
|
|
387
387
|
message: "A background Deepline skills refresh is still running for these agents.",
|
|
388
|
-
next: `Retry in a moment: deepline skills --scope ${scope}. If no refresh is running, remove ${
|
|
388
|
+
next: `Retry in a moment: deepline skills --scope ${scope}. If no refresh is running, remove ${_chunkIWYWZXCAjs.skillsInstallLeasePath.call(void 0, baseUrl, agents)}`
|
|
389
389
|
},
|
|
390
390
|
{ json: options.json }
|
|
391
391
|
);
|
|
@@ -434,7 +434,7 @@ async function runSkillsInstallWithLease(input) {
|
|
|
434
434
|
}
|
|
435
435
|
}
|
|
436
436
|
} catch (error) {
|
|
437
|
-
|
|
437
|
+
_chunk4RV7U3RPjs.printCommandEnvelope.call(void 0,
|
|
438
438
|
{
|
|
439
439
|
ok: false,
|
|
440
440
|
status: "failed",
|
|
@@ -450,7 +450,7 @@ async function runSkillsInstallWithLease(input) {
|
|
|
450
450
|
return 5;
|
|
451
451
|
}
|
|
452
452
|
if (missing.length > 0) {
|
|
453
|
-
|
|
453
|
+
_chunk4RV7U3RPjs.printCommandEnvelope.call(void 0,
|
|
454
454
|
{
|
|
455
455
|
ok: false,
|
|
456
456
|
status: "failed",
|
|
@@ -490,7 +490,7 @@ async function runSkillsInstallWithLease(input) {
|
|
|
490
490
|
{
|
|
491
491
|
schemaVersion: 1,
|
|
492
492
|
installedAt: (/* @__PURE__ */ new Date()).toISOString(),
|
|
493
|
-
cliVersion:
|
|
493
|
+
cliVersion: _chunkKBBZXWXFjs.SDK_VERSION,
|
|
494
494
|
scope,
|
|
495
495
|
agents,
|
|
496
496
|
skillsVersion: plan.version,
|
|
@@ -503,9 +503,9 @@ async function runSkillsInstallWithLease(input) {
|
|
|
503
503
|
"utf8"
|
|
504
504
|
);
|
|
505
505
|
if (scope === "global") {
|
|
506
|
-
|
|
506
|
+
_chunkIWYWZXCAjs.clearFailedAutomaticSkillsSync.call(void 0, baseUrl, agents);
|
|
507
507
|
}
|
|
508
|
-
|
|
508
|
+
_chunk4RV7U3RPjs.printCommandEnvelope.call(void 0,
|
|
509
509
|
{
|
|
510
510
|
ok: true,
|
|
511
511
|
status: "complete",
|
|
@@ -536,7 +536,7 @@ function registerSkillsCommand(program) {
|
|
|
536
536
|
"after",
|
|
537
537
|
`
|
|
538
538
|
Notes:
|
|
539
|
-
This command reinstalls current Deepline-managed skills using ${
|
|
539
|
+
This command reinstalls current Deepline-managed skills using ${_chunkIWYWZXCAjs.SKILLS_NPX_PACKAGE},
|
|
540
540
|
then removes legacy Deepline skill names. Local scope writes into the resolved
|
|
541
541
|
persistent project.
|
|
542
542
|
|
|
@@ -548,13 +548,13 @@ Examples:
|
|
|
548
548
|
).action(async (options) => {
|
|
549
549
|
process.exitCode = await runSkillsCommand(options);
|
|
550
550
|
});
|
|
551
|
-
program.command(
|
|
551
|
+
program.command(_chunkIWYWZXCAjs.SKILLS_AUTO_SYNC_COMMAND, { hidden: true }).description("Refresh Deepline agent skills in the background.").option(
|
|
552
552
|
"--claim <token>",
|
|
553
553
|
"Owner token of the leases this child was started for."
|
|
554
554
|
).action(async (options) => {
|
|
555
555
|
const claim = _optionalChain([options, 'access', _5 => _5.claim, 'optionalAccess', _6 => _6.trim, 'call', _7 => _7()]);
|
|
556
556
|
if (!claim) {
|
|
557
|
-
|
|
557
|
+
_chunk4RV7U3RPjs.printCommandEnvelope.call(void 0,
|
|
558
558
|
{
|
|
559
559
|
ok: false,
|
|
560
560
|
status: "failed",
|
|
@@ -567,7 +567,7 @@ Examples:
|
|
|
567
567
|
process.exitCode = 2;
|
|
568
568
|
return;
|
|
569
569
|
}
|
|
570
|
-
await
|
|
570
|
+
await _chunkIWYWZXCAjs.syncSdkSkillsIfNeeded.call(void 0, _chunkTW3TTKW5js.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, ""), {
|
|
571
571
|
mode: "inline",
|
|
572
572
|
notices: "defer",
|
|
573
573
|
claim
|
|
@@ -2,7 +2,7 @@ import {
|
|
|
2
2
|
argsWantJson,
|
|
3
3
|
openInBrowser,
|
|
4
4
|
printCommandEnvelope
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-7HTWT3Z4.mjs";
|
|
6
6
|
import {
|
|
7
7
|
ACTIVE_ORG_ID_ENV,
|
|
8
8
|
ACTIVE_ORG_NAME_ENV,
|
|
@@ -22,12 +22,17 @@ import {
|
|
|
22
22
|
saveHostEnvValues,
|
|
23
23
|
saveProjectDeeplineEnvValues,
|
|
24
24
|
storedHostApiKey
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-75DAGCEX.mjs";
|
|
26
26
|
import {
|
|
27
27
|
SDK_API_CONTRACT,
|
|
28
28
|
SDK_VERSION,
|
|
29
|
-
|
|
30
|
-
|
|
29
|
+
connectionFailureMessage,
|
|
30
|
+
detectAgentRuntime,
|
|
31
|
+
networkCauseCode
|
|
32
|
+
} from "./chunk-M5USVQ33.mjs";
|
|
33
|
+
import {
|
|
34
|
+
DeeplineError
|
|
35
|
+
} from "./chunk-HBL4PM5Q.mjs";
|
|
31
36
|
|
|
32
37
|
// src/cli/commands/auth.ts
|
|
33
38
|
import {
|
|
@@ -253,7 +258,20 @@ async function httpJson(method, url, apiKey, body, timeoutMs = AUTH_HTTP_TIMEOUT
|
|
|
253
258
|
clearTimeout(timeout);
|
|
254
259
|
}
|
|
255
260
|
}
|
|
256
|
-
|
|
261
|
+
const failure = lastError instanceof Error ? lastError : new Error(String(lastError));
|
|
262
|
+
if (failure.name === "AbortError" || failure.name === "TimeoutError") {
|
|
263
|
+
throw failure;
|
|
264
|
+
}
|
|
265
|
+
const causeCode = networkCauseCode(failure);
|
|
266
|
+
throw Object.assign(
|
|
267
|
+
new DeeplineError(
|
|
268
|
+
connectionFailureMessage(new URL(url).origin, failure),
|
|
269
|
+
void 0,
|
|
270
|
+
"NETWORK_ERROR",
|
|
271
|
+
causeCode ? { causeCode } : void 0
|
|
272
|
+
),
|
|
273
|
+
{ cause: failure }
|
|
274
|
+
);
|
|
257
275
|
}
|
|
258
276
|
async function readStatusBanner(baseUrl) {
|
|
259
277
|
const response = await httpJson(
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } }
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunk2MSKG4ERjs = require('./chunk-2MSKG4ER.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkTW3TTKW5js = require('./chunk-TW3TTKW5.js');
|
|
8
8
|
|
|
9
9
|
// src/plays/local-play-execution.ts
|
|
10
10
|
function importedNodes(graph) {
|
|
@@ -137,9 +137,9 @@ async function pinLocalPlayImports(client, graph) {
|
|
|
137
137
|
|
|
138
138
|
// src/plays/client.ts
|
|
139
139
|
function createPlayClient(options) {
|
|
140
|
-
const config =
|
|
141
|
-
return new (0,
|
|
142
|
-
new (0,
|
|
140
|
+
const config = _chunkTW3TTKW5js.resolveConfig.call(void 0, options);
|
|
141
|
+
return new (0, _chunk2MSKG4ERjs.PlayClient)(
|
|
142
|
+
new (0, _chunkTW3TTKW5js.HttpClient)(config),
|
|
143
143
|
_nullishCoalesce(config.environment, () => ( process.env))
|
|
144
144
|
);
|
|
145
145
|
}
|
|
@@ -4,20 +4,20 @@ import {
|
|
|
4
4
|
resolveUpdatePlan,
|
|
5
5
|
runAutomaticUpdatePlan,
|
|
6
6
|
shouldRunCliAutoUpdate
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-2JS5DNVX.mjs";
|
|
8
8
|
import {
|
|
9
9
|
isCiEnvironment
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-4C3TMIF3.mjs";
|
|
11
11
|
import {
|
|
12
12
|
addJsonNotice,
|
|
13
13
|
isJsonOutputMode
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-7HTWT3Z4.mjs";
|
|
15
15
|
import {
|
|
16
16
|
resolveApiKeyForBaseUrl
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-75DAGCEX.mjs";
|
|
18
18
|
import {
|
|
19
19
|
SDK_VERSION
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-M5USVQ33.mjs";
|
|
21
21
|
|
|
22
22
|
// src/cli/compatibility-catalog.ts
|
|
23
23
|
var readers = /* @__PURE__ */ new WeakMap();
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunk2MSKG4ERjs = require('./chunk-2MSKG4ER.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkTW3TTKW5js = require('./chunk-TW3TTKW5.js');
|
|
8
8
|
|
|
9
9
|
// src/client.ts
|
|
10
|
-
var DeeplineClient2 = class extends
|
|
10
|
+
var DeeplineClient2 = class extends _chunk2MSKG4ERjs.DeeplineClient {
|
|
11
11
|
constructor(options) {
|
|
12
|
-
const config =
|
|
13
|
-
super(config, new (0,
|
|
12
|
+
const config = _chunkTW3TTKW5js.resolveConfig.call(void 0, options);
|
|
13
|
+
super(config, new (0, _chunkTW3TTKW5js.HttpClient)(config), _optionalChain([options, 'optionalAccess', _ => _.timeout]));
|
|
14
14
|
}
|
|
15
15
|
};
|
|
16
16
|
|
|
@@ -325,6 +325,7 @@ When:
|
|
|
325
325
|
Input:
|
|
326
326
|
--run-id <run-id> scopes the spend to one play run. --limit and --cursor
|
|
327
327
|
page the recent-call list. --json prints JSON.
|
|
328
|
+
--recent-only returns just the recent billing activity page and workspace ID.
|
|
328
329
|
--events reads raw usage-event history instead of the spend summary. Combine
|
|
329
330
|
it with --run-id, --limit (1\u2013500), and --cursor; not --offset or --request-id.
|
|
330
331
|
Follow next_cursor until null, even when entries is empty.
|
|
@@ -819,8 +820,9 @@ Authoring rules:
|
|
|
819
820
|
or { webhook: {} }. A cron run receives {} unless cron.input is written
|
|
820
821
|
inline; it is pinned with the published revision.
|
|
821
822
|
Runtime: The default Play runtime is 30 minutes. Standard uses 1 GiB / 1 CPU.
|
|
822
|
-
|
|
823
|
-
|
|
823
|
+
Set runtime.size to 'standard' or '1gb' (1 GiB / 1 CPU), 'large' or '4gb'
|
|
824
|
+
(4 GiB / 2 CPU), or 'xlarge' or '8gb' (8 GiB / 4 CPU).
|
|
825
|
+
Each alias selects the same profile and price as its named size.
|
|
824
826
|
Compute pricing follows the workspace plan.
|
|
825
827
|
[[cli:Use deepline billing quote for the session ceiling.]]
|
|
826
828
|
Set runtime.timeout to extend a run up to 4h.
|