deepline 0.3.496 → 0.3.497
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/plays/docflow.ts +9 -2
- package/dist/cli/auth-553ZBCPJ.js +43 -0
- package/dist/cli/{auth-EU4EFRDJ.mjs → auth-OAKBFUQD.mjs} +5 -5
- package/dist/cli/{billing-GMVH3RBX.mjs → billing-AM6D2KN5.mjs} +6 -6
- package/dist/cli/{billing-4JJLTVK4.js → billing-FUB6HQZ5.js} +79 -79
- package/dist/cli/{chunk-6QIAEXRH.mjs → chunk-3DHPKENA.mjs} +1 -1
- package/dist/cli/{chunk-O36ZPHJG.mjs → chunk-3IVAGF4P.mjs} +10 -10
- package/dist/cli/{chunk-AOBAVBSX.js → chunk-3KG2FUU4.js} +7 -7
- package/dist/cli/{chunk-4NKAM4GX.mjs → chunk-4MR7LZXF.mjs} +2 -2
- package/dist/cli/{chunk-3KA466RV.mjs → chunk-5GXYXU45.mjs} +1 -1
- package/dist/cli/{chunk-SH6HOR25.mjs → chunk-5IBHSACU.mjs} +2 -2
- package/dist/cli/{chunk-5YSIHOGV.js → chunk-6TA2H7CY.js} +26 -26
- package/dist/cli/{chunk-J55ZM5CK.js → chunk-77IAUCTB.js} +3 -3
- package/dist/cli/{chunk-PHVRS56F.js → chunk-7FFNSYMJ.js} +9 -9
- package/dist/cli/{chunk-W7DZ6UGP.js → chunk-7RBIOOCQ.js} +3 -3
- package/dist/cli/{chunk-QN6IULFT.js → chunk-A66Y2LCW.js} +53 -53
- package/dist/cli/{chunk-5GK6J7MH.js → chunk-B4Q3EBQX.js} +5 -5
- package/dist/cli/{chunk-73CBLBNP.js → chunk-BBHGJE73.js} +1 -1
- package/dist/cli/{chunk-MWQ3WQ4Q.js → chunk-BRUDMG56.js} +41 -41
- package/dist/cli/{chunk-WEGGJMNF.js → chunk-DKSTMQ3F.js} +21 -21
- package/dist/cli/{chunk-E3KXXJWR.mjs → chunk-EWQ3KY5U.mjs} +6 -6
- package/dist/cli/{chunk-WTZ7Y3IZ.mjs → chunk-FISH2MI2.mjs} +2 -2
- package/dist/cli/{chunk-UTG3STCR.js → chunk-FVS5MJQ5.js} +3 -3
- package/dist/cli/{chunk-5M4PLPTR.mjs → chunk-HRODQDTB.mjs} +1 -1
- package/dist/cli/{chunk-UT3ORL35.mjs → chunk-IURXJPGH.mjs} +3 -3
- package/dist/cli/{chunk-JEPNE4N5.js → chunk-JDFYCHNV.js} +5 -5
- package/dist/cli/{chunk-U6SE6757.mjs → chunk-KFJV3BZX.mjs} +1 -1
- package/dist/cli/{chunk-FXPICCUU.mjs → chunk-KUX3HYJI.mjs} +1 -1
- package/dist/cli/{chunk-CNMIYEB4.mjs → chunk-LPCK5KK5.mjs} +2 -2
- package/dist/cli/{chunk-YHFW7MBT.mjs → chunk-M2WIEW2E.mjs} +1 -1
- package/dist/cli/{chunk-7U6W3CKT.mjs → chunk-MBOAXLWC.mjs} +4 -4
- package/dist/cli/{chunk-EX4JEFYI.js → chunk-OEI6HXMK.js} +16 -16
- package/dist/cli/{chunk-HIAFBOYA.js → chunk-OWDK2PVH.js} +8 -8
- package/dist/cli/{chunk-R4H5MCG4.mjs → chunk-SJID5WMV.mjs} +4 -4
- package/dist/cli/{chunk-QEBQIGXP.js → chunk-SJM7MKOE.js} +2 -2
- package/dist/cli/{chunk-GRIHMNYM.js → chunk-SLS3HUVC.js} +4 -4
- package/dist/cli/{chunk-DFW6P6ZN.mjs → chunk-TGAYN34A.mjs} +2 -2
- package/dist/cli/{chunk-QYXUZX5N.mjs → chunk-THD6KA67.mjs} +4 -4
- package/dist/cli/{chunk-IXPZROZX.mjs → chunk-UETGYJYH.mjs} +2 -2
- package/dist/cli/{chunk-QZ7I4NZZ.js → chunk-UV7AT2D4.js} +2 -2
- package/dist/cli/{chunk-Z27R2BG7.js → chunk-V2EVSEUD.js} +16 -16
- package/dist/cli/{chunk-WCBZHSC4.mjs → chunk-VMOVB2FN.mjs} +5 -5
- package/dist/cli/{chunk-KKI5GWED.js → chunk-WKCMARFR.js} +94 -94
- package/dist/cli/{chunk-3HIPDJWJ.js → chunk-WXW7YJDO.js} +53 -53
- package/dist/cli/{chunk-IMWJRBV5.mjs → chunk-WZ3A35ZD.mjs} +1 -1
- package/dist/cli/{chunk-ZL4Q4T3G.js → chunk-XLYJ7MJX.js} +7 -7
- package/dist/cli/{chunk-6UUZM4FY.mjs → chunk-XNLXHU6L.mjs} +5 -5
- package/dist/cli/{chunk-7NBDLK3N.mjs → chunk-XX7WLKOQ.mjs} +1 -1
- package/dist/cli/{chunk-7Q7VPFPR.mjs → chunk-YQ66NC4J.mjs} +2 -2
- package/dist/cli/{chunk-GKZUGHDK.js → chunk-YUEFDOME.js} +6 -6
- package/dist/cli/{chunk-JU4LIA2T.js → chunk-ZLYKN4AJ.js} +7 -7
- package/dist/cli/{csv-JWBLNEPC.js → csv-PMBYKVUU.js} +13 -13
- package/dist/cli/{csv-ET7ESAPM.mjs → csv-U2GOFP3M.mjs} +4 -4
- package/dist/cli/{db-4PIWQPR6.mjs → db-DKFOTZGZ.mjs} +6 -6
- package/dist/cli/{db-3ZGQXWTQ.js → db-GREVTMIR.js} +27 -27
- package/dist/cli/describe-BL5NNHV5.js +50 -0
- package/dist/cli/{describe-OREUCFC2.mjs → describe-SWXA6L62.mjs} +17 -17
- package/dist/cli/{executions-YR545MRU.js → executions-2RRAESQK.js} +8 -8
- package/dist/cli/{executions-HW6PMZOF.mjs → executions-EBRFC5JR.mjs} +6 -6
- package/dist/cli/{feedback-B2FJ6HPA.mjs → feedback-4A57QLX2.mjs} +4 -4
- package/dist/cli/{feedback-FNVHJQEC.js → feedback-N6ML7IRH.js} +8 -8
- package/dist/cli/{git-CCNPW3CA.mjs → git-6D2WQPOS.mjs} +5 -5
- package/dist/cli/git-7TSX5V57.js +25 -0
- package/dist/cli/index.js +137 -137
- package/dist/cli/index.mjs +40 -40
- package/dist/cli/{legacy-noops-VJLCXTPB.mjs → legacy-noops-CL5QWXGH.mjs} +5 -5
- package/dist/cli/{legacy-noops-2EBZS45D.js → legacy-noops-DXRJARNC.js} +8 -8
- package/dist/cli/{monitors-4AMETRW7.mjs → monitors-SGMEGGJO.mjs} +7 -7
- package/dist/cli/{monitors-JNWKPCN5.js → monitors-XWKDVHYL.js} +95 -95
- package/dist/cli/{org-LO6GSCCG.mjs → org-55BI5RQF.mjs} +6 -6
- package/dist/cli/{org-7FUHVFYU.js → org-QKQ57PDN.js} +72 -72
- package/dist/cli/{pages-TT4TZOOV.js → pages-FOIR5UH4.js} +18 -18
- package/dist/cli/{pages-PJ32M2PU.mjs → pages-LM4QACOM.mjs} +6 -6
- package/dist/cli/{play-QJEZAIZB.mjs → play-7VA26O6E.mjs} +34 -30
- package/dist/cli/{play-VN7DFYDP.js → play-S44FXGD7.js} +330 -326
- package/dist/cli/{providers-24ER3SND.mjs → providers-QAVIR5E2.mjs} +6 -6
- package/dist/cli/{providers-IDFN2FCR.js → providers-RDSHID7C.js} +9 -9
- package/dist/cli/{quickstart-AQDCRVUQ.js → quickstart-EREQPM3G.js} +6 -6
- package/dist/cli/{quickstart-FKENQU34.mjs → quickstart-IL4HQYE4.mjs} +4 -4
- package/dist/cli/{run-KXMRE5ZD.mjs → run-4XZNJR7N.mjs} +22 -22
- package/dist/cli/{run-HCASJQZY.js → run-TBUUV5EG.js} +36 -36
- package/dist/cli/search-GCANFVVZ.js +32 -0
- package/dist/cli/{search-3F2T33OE.mjs → search-SYT5UT5G.mjs} +7 -7
- package/dist/cli/{search-output-GFCEGNCJ.js → search-output-5F3EEQ34.js} +6 -6
- package/dist/cli/{search-output-U6PM5KAH.mjs → search-output-Y3IKZ3TX.mjs} +4 -4
- package/dist/cli/{secrets-ZZSOVXOX.mjs → secrets-AKAU2N3K.mjs} +6 -6
- package/dist/cli/{secrets-KYVUP755.js → secrets-PZWJ2ES5.js} +15 -15
- package/dist/cli/{sessions-7JFKTUQS.js → sessions-UMHA7K23.js} +6 -6
- package/dist/cli/{sessions-4Z62CVHL.mjs → sessions-Z5C26IS7.mjs} +5 -5
- package/dist/cli/{settings-OXG7IRVC.mjs → settings-S5BM3SVI.mjs} +11 -11
- package/dist/cli/{settings-X4PSK4EW.js → settings-WGJYWTJZ.js} +78 -78
- package/dist/cli/{setup-NCJEDW4W.js → setup-6K6ERKOH.js} +49 -49
- package/dist/cli/{setup-RB7JE6KA.mjs → setup-E4HRXP2X.mjs} +9 -9
- package/dist/cli/{skills-D4BR2WU2.mjs → skills-HIZA7YAN.mjs} +7 -7
- package/dist/cli/skills-J3GQHHHL.js +36 -0
- package/dist/cli/{tools-CEOD7VD5.mjs → tools-FS5S6BT7.mjs} +16 -16
- package/dist/cli/tools-RZYKMOUX.js +57 -0
- package/dist/cli/{update-UKUMQ6FC.mjs → update-4CJPTG3L.mjs} +9 -9
- package/dist/cli/update-CATZW7GA.js +34 -0
- package/dist/cli/{workflow-LFWQWZKS.js → workflow-TYSZ5JWS.js} +17 -17
- package/dist/cli/{workflow-EKKTTSCJ.mjs → workflow-UMSXOIOS.mjs} +7 -7
- package/dist/index.js +9 -9
- package/dist/index.mjs +6 -6
- package/dist/install-integrity.json +98 -98
- 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-SHWC5FMY.js +0 -43
- package/dist/cli/describe-KO3OQBIR.js +0 -50
- package/dist/cli/git-X2QJ2B5O.js +0 -25
- package/dist/cli/search-OGY6SQDJ.js +0 -32
- package/dist/cli/skills-WWWFRDCA.js +0 -36
- package/dist/cli/tools-QMSAA3LC.js +0 -57
- package/dist/cli/update-HTDFPN7L.js +0 -34
|
@@ -1,9 +1,9 @@
|
|
|
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 _chunkWKCMARFRjs = require('./chunk-WKCMARFR.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkFVS5MJQ5js = require('./chunk-FVS5MJQ5.js');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
@@ -14,18 +14,18 @@ var _chunkI42EOZKQjs = require('./chunk-I42EOZKQ.js');
|
|
|
14
14
|
var _chunkJO5FFSR7js = require('./chunk-JO5FFSR7.js');
|
|
15
15
|
|
|
16
16
|
|
|
17
|
-
var
|
|
17
|
+
var _chunkB4Q3EBQXjs = require('./chunk-B4Q3EBQX.js');
|
|
18
18
|
|
|
19
19
|
|
|
20
20
|
|
|
21
|
-
var
|
|
21
|
+
var _chunkA66Y2LCWjs = require('./chunk-A66Y2LCW.js');
|
|
22
22
|
|
|
23
23
|
|
|
24
|
-
var
|
|
24
|
+
var _chunkXLYJ7MJXjs = require('./chunk-XLYJ7MJX.js');
|
|
25
25
|
|
|
26
26
|
|
|
27
27
|
|
|
28
|
-
var
|
|
28
|
+
var _chunk77IAUCTBjs = require('./chunk-77IAUCTB.js');
|
|
29
29
|
|
|
30
30
|
// src/cli/commands/describe.ts
|
|
31
31
|
var _fs = require('fs');
|
|
@@ -34,14 +34,14 @@ var _path = require('path');
|
|
|
34
34
|
// src/cli/doc-read-reporting.ts
|
|
35
35
|
var REPORT_TIMEOUT_MS = 1e3;
|
|
36
36
|
async function reportDocRead(docId) {
|
|
37
|
-
if (
|
|
37
|
+
if (_chunkA66Y2LCWjs.isFailureReportingDisabled.call(void 0, )) return;
|
|
38
38
|
try {
|
|
39
|
-
const baseUrl =
|
|
40
|
-
const apiKey =
|
|
39
|
+
const baseUrl = _chunk77IAUCTBjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
|
|
40
|
+
const apiKey = _chunk77IAUCTBjs.resolveApiKeyForBaseUrl.call(void 0, baseUrl);
|
|
41
41
|
if (!apiKey) return;
|
|
42
42
|
await fetch(new URL("/api/v2/telemetry/doc-read", baseUrl), {
|
|
43
43
|
method: "POST",
|
|
44
|
-
headers:
|
|
44
|
+
headers: _chunkA66Y2LCWjs.failureReportHeaders.call(void 0, apiKey),
|
|
45
45
|
body: JSON.stringify({ doc_id: docId }),
|
|
46
46
|
signal: AbortSignal.timeout(REPORT_TIMEOUT_MS)
|
|
47
47
|
});
|
|
@@ -54,16 +54,16 @@ function nothingNamed(name) {
|
|
|
54
54
|
return `Nothing named "${name}". Search for it: deepline search ${JSON.stringify(name.replace(/[-_./]+/g, " "))}`;
|
|
55
55
|
}
|
|
56
56
|
function findNamed2(name, options) {
|
|
57
|
-
return _chunkI42EOZKQjs.findNamed.call(void 0, name, options, _chunkI42EOZKQjs.describeLookupsFor.call(void 0, new (0,
|
|
57
|
+
return _chunkI42EOZKQjs.findNamed.call(void 0, name, options, _chunkI42EOZKQjs.describeLookupsFor.call(void 0, new (0, _chunkB4Q3EBQXjs.DeeplineClient)()));
|
|
58
58
|
}
|
|
59
59
|
async function describeAnything(name, options, onMissing) {
|
|
60
|
-
const client = new (0,
|
|
60
|
+
const client = new (0, _chunkB4Q3EBQXjs.DeeplineClient)();
|
|
61
61
|
const lookups = _chunkI42EOZKQjs.describeLookupsFor.call(void 0, client);
|
|
62
62
|
const outcome = await _chunkI42EOZKQjs.describeName.call(void 0, name, options, {
|
|
63
63
|
...lookups,
|
|
64
64
|
// `tools describe` has already fetched the tool for its compatibility check.
|
|
65
65
|
tool: async (toolName) => _nullishCoalesce(options.fetchedTool, () => ( lookups.tool(toolName))),
|
|
66
|
-
seedStarterScript:
|
|
66
|
+
seedStarterScript: _chunkWKCMARFRjs.seedToolListScript
|
|
67
67
|
});
|
|
68
68
|
if (outcome.status === "missing") {
|
|
69
69
|
if (onMissing) return onMissing();
|
|
@@ -89,18 +89,18 @@ function deliver(envelope, lines, { json, out }) {
|
|
|
89
89
|
` : text;
|
|
90
90
|
_fs.writeFileSync.call(void 0, path, content);
|
|
91
91
|
const bytes = Buffer.byteLength(content);
|
|
92
|
-
|
|
92
|
+
_chunkXLYJ7MJXjs.printCommandEnvelope.call(void 0,
|
|
93
93
|
{ path, bytes },
|
|
94
94
|
{ json, text: `Wrote ${path} (${bytes} bytes)
|
|
95
95
|
` }
|
|
96
96
|
);
|
|
97
97
|
return 0;
|
|
98
98
|
}
|
|
99
|
-
|
|
99
|
+
_chunkXLYJ7MJXjs.printCommandEnvelope.call(void 0, envelope, { json, text });
|
|
100
100
|
return 0;
|
|
101
101
|
}
|
|
102
102
|
function registerDescribeCommand(program) {
|
|
103
|
-
|
|
103
|
+
_chunkFVS5MJQ5js.addDescribeOptions.call(void 0, program.command("describe <name>")).option("--web-url", "Print only a play's play page URL").description(
|
|
104
104
|
"Describe anything search returns: a tool, monitor type, or play."
|
|
105
105
|
).addHelpText(
|
|
106
106
|
"after",
|
|
@@ -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 _chunkXLYJ7MJXjs = require('./chunk-XLYJ7MJX.js');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkSLS3HUVCjs = require('./chunk-SLS3HUVC.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 = _chunkSLS3HUVCjs.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 } = _chunkXLYJ7MJXjs.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
|
+
_chunkXLYJ7MJXjs.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
|
+
_chunkXLYJ7MJXjs.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
|
+
_chunkXLYJ7MJXjs.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
|
+
_chunkXLYJ7MJXjs.printCommandEnvelope.call(void 0,
|
|
678
678
|
{
|
|
679
679
|
ok: true,
|
|
680
680
|
file: outputPath,
|
|
@@ -11,20 +11,20 @@ import {
|
|
|
11
11
|
skillsInstallLeasePath,
|
|
12
12
|
skillsSourceUrl,
|
|
13
13
|
syncSdkSkillsIfNeeded
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-THD6KA67.mjs";
|
|
15
15
|
import {
|
|
16
16
|
printCommandEnvelope
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-FISH2MI2.mjs";
|
|
18
18
|
import {
|
|
19
19
|
autoDetectBaseUrl,
|
|
20
20
|
ensureProjectPrivatePathsIgnored,
|
|
21
21
|
resolveProjectPinTarget,
|
|
22
22
|
sdkCliStateDirPath
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-XX7WLKOQ.mjs";
|
|
24
24
|
import {
|
|
25
25
|
SDK_VERSION,
|
|
26
26
|
detectAgentRuntime
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-WZ3A35ZD.mjs";
|
|
28
28
|
import {
|
|
29
29
|
DEEPLINE_GTM_GLOBAL_SKILL_ROOTS
|
|
30
30
|
} from "./chunk-5JPKRDFC.mjs";
|
|
@@ -1,6 +1,6 @@
|
|
|
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
|
-
var
|
|
3
|
+
var _chunkA66Y2LCWjs = require('./chunk-A66Y2LCW.js');
|
|
4
4
|
|
|
5
5
|
// src/cli/npm-script-policy.ts
|
|
6
6
|
var _child_process = require('child_process');
|
|
@@ -13,7 +13,7 @@ function npmSupportsAllowScripts(version) {
|
|
|
13
13
|
}
|
|
14
14
|
function readNpmVersion(env) {
|
|
15
15
|
try {
|
|
16
|
-
const plan =
|
|
16
|
+
const plan = _chunkA66Y2LCWjs.resolveShellSpawn.call(void 0, "npm", ["--version"], process.platform, env);
|
|
17
17
|
const result = _child_process.spawnSync.call(void 0, plan.command, plan.args, {
|
|
18
18
|
encoding: "utf8",
|
|
19
19
|
env,
|
|
@@ -16,12 +16,12 @@ var _chunkXNYIZMNQjs = require('./chunk-XNYIZMNQ.js');
|
|
|
16
16
|
var _chunkDIAWYWT5js = require('./chunk-DIAWYWT5.js');
|
|
17
17
|
|
|
18
18
|
|
|
19
|
-
var
|
|
19
|
+
var _chunkBBHGJE73js = require('./chunk-BBHGJE73.js');
|
|
20
20
|
|
|
21
21
|
// src/version.ts
|
|
22
|
-
var SDK_VERSION =
|
|
23
|
-
var SDK_API_MAJOR =
|
|
24
|
-
var SDK_API_CONTRACT = _nullishCoalesce(
|
|
22
|
+
var SDK_VERSION = _chunkBBHGJE73js.SDK_RELEASE.version;
|
|
23
|
+
var SDK_API_MAJOR = _chunkBBHGJE73js.SDK_RELEASE.contracts.api.currentMajor;
|
|
24
|
+
var SDK_API_CONTRACT = _nullishCoalesce(_chunkBBHGJE73js.SDK_RELEASE.contracts.api.legacyWireIds[0], () => ( `api-v${SDK_API_MAJOR}`));
|
|
25
25
|
|
|
26
26
|
// src/agent-runtime.ts
|
|
27
27
|
var _os = require('os');
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
getAuthedHttpClient,
|
|
3
3
|
printCommandEnvelope
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-FISH2MI2.mjs";
|
|
5
5
|
import {
|
|
6
6
|
agentSessionIdFromEnvironment
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-WZ3A35ZD.mjs";
|
|
8
8
|
|
|
9
9
|
// src/cli/commands/sessions.ts
|
|
10
10
|
import {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
getActiveCliProgress
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-3DHPKENA.mjs";
|
|
4
4
|
import {
|
|
5
5
|
DEFAULT_SKILL_AGENTS,
|
|
6
6
|
KNOWN_SKILL_AGENTS,
|
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
sdkCliStateDirPath,
|
|
13
13
|
skillsAgentPathSegment,
|
|
14
14
|
writeSdkSkillsLocalVersion
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-XX7WLKOQ.mjs";
|
|
16
16
|
import {
|
|
17
17
|
SDK_API_CONTRACT,
|
|
18
18
|
SDK_API_MAJOR,
|
|
@@ -20,13 +20,13 @@ import {
|
|
|
20
20
|
agentSessionIdFromEnvironment,
|
|
21
21
|
deploymentProtectionHeaders,
|
|
22
22
|
detectAgentRuntime
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-WZ3A35ZD.mjs";
|
|
24
24
|
import {
|
|
25
25
|
DeeplineError
|
|
26
26
|
} from "./chunk-HBL4PM5Q.mjs";
|
|
27
27
|
import {
|
|
28
28
|
SDK_RELEASE
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-5GXYXU45.mjs";
|
|
30
30
|
|
|
31
31
|
// src/compat.ts
|
|
32
32
|
import { randomUUID } from "crypto";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
PlayClient
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-HRODQDTB.mjs";
|
|
4
4
|
import {
|
|
5
5
|
HttpClient,
|
|
6
6
|
resolveConfig
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-XX7WLKOQ.mjs";
|
|
8
8
|
|
|
9
9
|
// src/plays/local-play-execution.ts
|
|
10
10
|
function importedNodes(graph) {
|
|
@@ -1,6 +1,6 @@
|
|
|
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 _chunkXLYJ7MJXjs = require('./chunk-XLYJ7MJX.js');
|
|
4
4
|
|
|
5
5
|
// src/cli/maintenance-policy.ts
|
|
6
6
|
var _commander = require('commander');
|
|
@@ -33,7 +33,7 @@ function recordCliTrace(event) {
|
|
|
33
33
|
sinceStartMs: now - cliTraceStartedAt,
|
|
34
34
|
...event
|
|
35
35
|
};
|
|
36
|
-
|
|
36
|
+
_chunkXLYJ7MJXjs.writeRawStderr.call(void 0, `[cli-trace] ${JSON.stringify(payload)}
|
|
37
37
|
`);
|
|
38
38
|
}
|
|
39
39
|
async function traceCliSpan(phase, fields, run) {
|
|
@@ -1,19 +1,19 @@
|
|
|
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 _chunkSJM7MKOEjs = require('./chunk-SJM7MKOE.js');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkBRUDMG56js = require('./chunk-BRUDMG56.js');
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
var
|
|
10
|
+
var _chunkA66Y2LCWjs = require('./chunk-A66Y2LCW.js');
|
|
11
11
|
|
|
12
12
|
|
|
13
|
-
var
|
|
13
|
+
var _chunkXLYJ7MJXjs = require('./chunk-XLYJ7MJX.js');
|
|
14
14
|
|
|
15
15
|
|
|
16
|
-
var
|
|
16
|
+
var _chunk77IAUCTBjs = require('./chunk-77IAUCTB.js');
|
|
17
17
|
|
|
18
18
|
// src/cli/commands/update.ts
|
|
19
19
|
var _child_process = require('child_process');
|
|
@@ -495,7 +495,7 @@ function normalizedNpmPrefix(value) {
|
|
|
495
495
|
}
|
|
496
496
|
function resolveNpmGlobalPrefix(env) {
|
|
497
497
|
try {
|
|
498
|
-
const plan =
|
|
498
|
+
const plan = _chunkA66Y2LCWjs.resolveShellSpawn.call(void 0,
|
|
499
499
|
"npm",
|
|
500
500
|
["prefix", "-g"],
|
|
501
501
|
process.platform,
|
|
@@ -556,8 +556,8 @@ function resolveUpdatePlan(options = {}) {
|
|
|
556
556
|
const npmGlobalPrefix = options.npmGlobalPrefix !== void 0 ? options.npmGlobalPrefix : resolveNpmGlobalPrefix(env);
|
|
557
557
|
const hasVerifiedNpmOwnership = inferredInstallPrefix !== null && normalizedNpmPrefix(inferredInstallPrefix) === normalizedNpmPrefix(npmGlobalPrefix);
|
|
558
558
|
const installPrefix = options.requireVerifiedNpmOwnership ? hasVerifiedNpmOwnership ? inferredInstallPrefix : null : inferredInstallPrefix;
|
|
559
|
-
const npmVersion = options.npmVersion === void 0 ?
|
|
560
|
-
const npmGlobalInstallFlags =
|
|
559
|
+
const npmVersion = options.npmVersion === void 0 ? _chunkSJM7MKOEjs.readNpmVersion.call(void 0, env) : options.npmVersion;
|
|
560
|
+
const npmGlobalInstallFlags = _chunkSJM7MKOEjs.npmSupportsAllowScripts.call(void 0, npmVersion) ? [...NPM_SDK_INSTALL_COMMON_FLAGS, "--allow-scripts=esbuild"] : NPM_SDK_INSTALL_COMMON_FLAGS;
|
|
561
561
|
const args = installPrefix ? [
|
|
562
562
|
"install",
|
|
563
563
|
"-g",
|
|
@@ -567,7 +567,7 @@ function resolveUpdatePlan(options = {}) {
|
|
|
567
567
|
packageSpec
|
|
568
568
|
] : ["install", "-g", ...npmGlobalInstallFlags, packageSpec];
|
|
569
569
|
const fallbackRegistryUrl = options.npmFallbackRegistryUrl !== void 0 ? options.npmFallbackRegistryUrl : publicNpmFallbackRegistryUrl(
|
|
570
|
-
_optionalChain([env, 'access', _22 => _22.DEEPLINE_HOST_URL, 'optionalAccess', _23 => _23.trim, 'call', _24 => _24()]) ||
|
|
570
|
+
_optionalChain([env, 'access', _22 => _22.DEEPLINE_HOST_URL, 'optionalAccess', _23 => _23.trim, 'call', _24 => _24()]) || _chunk77IAUCTBjs.autoDetectBaseUrl.call(void 0, )
|
|
571
571
|
);
|
|
572
572
|
return {
|
|
573
573
|
kind: "npm-global",
|
|
@@ -816,7 +816,7 @@ function sidecarInstallFailure(versionDir) {
|
|
|
816
816
|
function runCommand(command, args, env = process.env) {
|
|
817
817
|
return new Promise((resolveResult) => {
|
|
818
818
|
let output = "";
|
|
819
|
-
const plan =
|
|
819
|
+
const plan = _chunkA66Y2LCWjs.resolveShellSpawn.call(void 0, command, args, process.platform, env);
|
|
820
820
|
const child = _child_process.spawn.call(void 0, plan.command, plan.args, {
|
|
821
821
|
stdio: ["inherit", "pipe", "pipe"],
|
|
822
822
|
shell: plan.shell,
|
|
@@ -1199,14 +1199,14 @@ async function publishedVersionSupportsPin(version, fallbackRegistryUrl) {
|
|
|
1199
1199
|
throw _nullishCoalesce(lastError, () => ( new Error("No npm registry was available")));
|
|
1200
1200
|
}
|
|
1201
1201
|
async function runUpdateCommand(options, dependencies = {}) {
|
|
1202
|
-
const detectBaseUrl = _nullishCoalesce(dependencies.detectBaseUrl, () => (
|
|
1202
|
+
const detectBaseUrl = _nullishCoalesce(dependencies.detectBaseUrl, () => ( _chunk77IAUCTBjs.autoDetectBaseUrl));
|
|
1203
1203
|
const resolvePlan = _nullishCoalesce(dependencies.resolvePlan, () => ( resolveUpdatePlan));
|
|
1204
1204
|
const runPlan = _nullishCoalesce(dependencies.runPlan, () => ( runUpdatePlan));
|
|
1205
1205
|
const syncSkills = _nullishCoalesce(dependencies.syncSkillsIfNeeded, () => ( (async () => {
|
|
1206
1206
|
const originalWrite = process.stdout.write.bind(process.stdout);
|
|
1207
1207
|
process.stdout.write = (() => true);
|
|
1208
1208
|
try {
|
|
1209
|
-
const exitCode = await
|
|
1209
|
+
const exitCode = await _chunkBRUDMG56js.runSkillsCommand.call(void 0, { json: true });
|
|
1210
1210
|
if (exitCode !== 0) {
|
|
1211
1211
|
throw new Error(
|
|
1212
1212
|
`Deepline skills update failed with exit ${exitCode}.`
|
|
@@ -1277,11 +1277,11 @@ async function runUpdateCommand(options, dependencies = {}) {
|
|
|
1277
1277
|
]
|
|
1278
1278
|
};
|
|
1279
1279
|
if (options.json && !options.executeWithJson) {
|
|
1280
|
-
|
|
1280
|
+
_chunkXLYJ7MJXjs.printCommandEnvelope.call(void 0, { ...plan, render }, { json: true });
|
|
1281
1281
|
return 0;
|
|
1282
1282
|
}
|
|
1283
1283
|
if (options.printCommand) {
|
|
1284
|
-
|
|
1284
|
+
_chunkXLYJ7MJXjs.printCommandEnvelope.call(void 0,
|
|
1285
1285
|
{
|
|
1286
1286
|
...plan,
|
|
1287
1287
|
render: {
|
|
@@ -1294,7 +1294,7 @@ async function runUpdateCommand(options, dependencies = {}) {
|
|
|
1294
1294
|
return 0;
|
|
1295
1295
|
}
|
|
1296
1296
|
if (plan.kind === "source" || plan.kind === "homebrew") {
|
|
1297
|
-
|
|
1297
|
+
_chunkXLYJ7MJXjs.printCommandEnvelope.call(void 0, { ...plan, render }, { json: false });
|
|
1298
1298
|
return 0;
|
|
1299
1299
|
}
|
|
1300
1300
|
stderr.write(`Updating Deepline SDK/CLI with: ${plan.manualCommand}
|
|
@@ -1324,7 +1324,7 @@ To retry with full installer output, run: deepline skills install
|
|
|
1324
1324
|
);
|
|
1325
1325
|
}
|
|
1326
1326
|
if (options.executeWithJson && options.json) {
|
|
1327
|
-
|
|
1327
|
+
_chunkXLYJ7MJXjs.printCommandEnvelope.call(void 0,
|
|
1328
1328
|
{
|
|
1329
1329
|
ok: true,
|
|
1330
1330
|
pinnedVersion
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import {
|
|
2
2
|
npmSupportsAllowScripts,
|
|
3
3
|
readNpmVersion
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-KFJV3BZX.mjs";
|
|
5
5
|
import {
|
|
6
6
|
runSkillsCommand
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-SJID5WMV.mjs";
|
|
8
8
|
import {
|
|
9
9
|
resolveShellSpawn
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-THD6KA67.mjs";
|
|
11
11
|
import {
|
|
12
12
|
printCommandEnvelope
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-FISH2MI2.mjs";
|
|
14
14
|
import {
|
|
15
15
|
autoDetectBaseUrl
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-XX7WLKOQ.mjs";
|
|
17
17
|
|
|
18
18
|
// src/cli/commands/update.ts
|
|
19
19
|
import { spawn, spawnSync } from "child_process";
|