deepline 0.3.547 → 0.3.548
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/play-runtime/scheduler-backends/absurd-runtime-worker.ts +47 -0
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/runtime-sandbox-capacity.ts +89 -0
- package/dist/bundling-sources/shared_libs/security/email-blacklist.ts +3 -0
- package/dist/bundling-sources/shared_libs/security/email-domain.ts +24 -0
- package/dist/cli/auth-7UJFY5BY.js +43 -0
- package/dist/cli/{auth-WJEY4IDX.mjs → auth-YOOVLLUL.mjs} +5 -5
- package/dist/cli/{billing-PHJUDYF3.mjs → billing-2NCNX6L2.mjs} +8 -8
- package/dist/cli/{billing-IJITDDRQ.js → billing-HETIOUD6.js} +92 -92
- package/dist/cli/{chunk-FFBXLFKV.js → chunk-2OG2KBYJ.js} +1 -1
- package/dist/cli/{chunk-ECUD4QPD.mjs → chunk-3QRU6RY7.mjs} +3 -3
- package/dist/cli/{chunk-DJI5CLLW.mjs → chunk-53QLWPZK.mjs} +1 -1
- package/dist/cli/{chunk-IVFFCAV2.js → chunk-5OJOFUMO.js} +44 -44
- package/dist/cli/{chunk-MO7TGNXB.js → chunk-5XFJBIQT.js} +13 -13
- package/dist/cli/{chunk-E2OIYPB4.js → chunk-5XXPP3PR.js} +10 -10
- package/dist/cli/{chunk-Z2YGQZWV.mjs → chunk-64BFUBXX.mjs} +2 -2
- package/dist/cli/{chunk-QU3K3IY6.js → chunk-6GIZNOXQ.js} +12 -12
- package/dist/cli/{chunk-XNTDTAKC.mjs → chunk-7AJ5V3BK.mjs} +1 -1
- package/dist/cli/{chunk-HFIFKP3A.js → chunk-7H6TQ6W2.js} +5 -5
- package/dist/cli/{chunk-VNOQEDVC.js → chunk-7JIOJLTS.js} +7 -7
- package/dist/cli/{chunk-GIGAYLY6.js → chunk-7UJZWI5Z.js} +9 -9
- package/dist/cli/{chunk-L6QE2XVM.mjs → chunk-ATTURFOV.mjs} +1 -1
- package/dist/cli/{chunk-LMLSOHTU.js → chunk-AUYBBFPT.js} +53 -53
- package/dist/cli/{chunk-MBQELFL7.js → chunk-BDBEEV6X.js} +22 -22
- package/dist/cli/{chunk-L5J6UJ2X.js → chunk-BWJZ4NQJ.js} +15 -15
- package/dist/cli/{chunk-SAJWYN4B.js → chunk-CXZLHBNK.js} +4 -4
- package/dist/cli/{chunk-PBMO36BP.mjs → chunk-F4ON5COB.mjs} +2 -2
- package/dist/cli/{chunk-DIUNDLSX.mjs → chunk-FMQA7UZZ.mjs} +2 -2
- package/dist/cli/{chunk-ITLZBDSR.mjs → chunk-FUUYWEF4.mjs} +2 -2
- package/dist/cli/{chunk-G6KW764N.mjs → chunk-GCEGQ7TQ.mjs} +1 -1
- package/dist/cli/{chunk-2AHY47SI.js → chunk-GUIYFOG2.js} +3 -3
- package/dist/cli/{chunk-OVYXYTEP.js → chunk-HDLMX7SG.js} +16 -16
- package/dist/cli/{chunk-IKYN6PLO.mjs → chunk-HIMZ57QD.mjs} +5 -5
- package/dist/cli/{chunk-REAFIEV5.js → chunk-HTZIJORU.js} +99 -99
- package/dist/cli/{chunk-ESCVHDNY.mjs → chunk-HU3DDLGD.mjs} +5 -5
- package/dist/cli/{chunk-GJOGFWX3.js → chunk-I2JIWKCQ.js} +19 -19
- package/dist/cli/{chunk-2HPTLBNB.js → chunk-IIWXBRDK.js} +3 -3
- package/dist/cli/{chunk-CKIRKYW7.mjs → chunk-IQBXX54G.mjs} +3 -3
- package/dist/cli/{chunk-K3GMDSUX.js → chunk-JQWX377P.js} +5 -5
- package/dist/cli/{chunk-ABLTVG3J.js → chunk-LAVPP6WD.js} +41 -41
- package/dist/cli/{chunk-NBYFQZ6O.js → chunk-M2OZORIH.js} +2 -2
- package/dist/cli/{chunk-MOZEAGSR.mjs → chunk-MQSKSISW.mjs} +1 -1
- package/dist/cli/{chunk-56MEAGWA.mjs → chunk-MWQ4WWZF.mjs} +2 -2
- package/dist/cli/{chunk-G6XTCG3J.mjs → chunk-NFMX7BRF.mjs} +2 -2
- package/dist/cli/{chunk-TNJG4ZPN.mjs → chunk-OGDQFVCP.mjs} +2 -2
- package/dist/cli/{chunk-FMQXAOVE.mjs → chunk-OQCYSLML.mjs} +4 -4
- package/dist/cli/{chunk-GZFZZQL4.js → chunk-PVE3A2BO.js} +8 -8
- package/dist/cli/{chunk-5SFHPMBY.mjs → chunk-QQBRXMZM.mjs} +11 -11
- package/dist/cli/{chunk-GPAWLXW3.mjs → chunk-QZ74ZC55.mjs} +1 -1
- package/dist/cli/{chunk-YURGAKI3.js → chunk-T3RDWG5J.js} +2 -2
- package/dist/cli/{chunk-XMBVHJPR.mjs → chunk-TKGFHRHE.mjs} +1 -1
- package/dist/cli/{chunk-RXRC2COC.mjs → chunk-U35ZLVBA.mjs} +2 -2
- package/dist/cli/{chunk-YVKLF7RW.js → chunk-U7HJXE6Y.js} +2 -2
- package/dist/cli/{chunk-AEQ5VWZ5.mjs → chunk-UBQQR56I.mjs} +4 -4
- package/dist/cli/{chunk-N63U5CRG.js → chunk-VK2GSTRN.js} +26 -26
- package/dist/cli/{chunk-QLE3QKJ2.mjs → chunk-VSACOMIA.mjs} +5 -5
- package/dist/cli/{chunk-D6OIEH47.js → chunk-WI4MCR7M.js} +5 -5
- package/dist/cli/{chunk-DZC7LMYM.js → chunk-WIHQAZPV.js} +6 -6
- package/dist/cli/{chunk-IGAK22XO.mjs → chunk-WVZF4DU7.mjs} +1 -1
- package/dist/cli/{chunk-VPF54TXQ.mjs → chunk-XKEBQVCP.mjs} +5 -5
- package/dist/cli/{chunk-HARZ4AAX.mjs → chunk-XU3D2KFR.mjs} +1 -1
- package/dist/cli/concurrent-runs-help-A2IQVZRJ.js +21 -0
- package/dist/cli/{concurrent-runs-help-ZNGP563R.mjs → concurrent-runs-help-FDCCZ45D.mjs} +6 -6
- package/dist/cli/{csv-VAHQHYYV.mjs → csv-GJYLQ52D.mjs} +4 -4
- package/dist/cli/{csv-X6D4ZELE.js → csv-OCEQWZO3.js} +13 -13
- package/dist/cli/{db-4G4S2VOV.mjs → db-5MA2UUHQ.mjs} +6 -6
- package/dist/cli/{db-YA5ZGVEX.js → db-G5QGXFAX.js} +27 -27
- package/dist/cli/{describe-EVXEM2S6.mjs → describe-4DOJ4DHA.mjs} +18 -18
- package/dist/cli/describe-SD7DRTBW.js +50 -0
- package/dist/cli/{executions-HR6CTN5M.mjs → executions-C7SMBHHB.mjs} +6 -6
- package/dist/cli/{executions-5YC7ABF6.js → executions-IYEVUPJI.js} +8 -8
- package/dist/cli/{feedback-MJHSYLFF.js → feedback-GYAF46GA.js} +14 -14
- package/dist/cli/{feedback-GEU5SPLR.mjs → feedback-XUU2UKM6.mjs} +6 -6
- package/dist/cli/git-7YYVMY6L.js +25 -0
- package/dist/cli/{git-NPFF6QUS.mjs → git-WVCMK5AH.mjs} +5 -5
- package/dist/cli/index.js +142 -142
- package/dist/cli/index.mjs +44 -44
- package/dist/cli/{integrations-Z7EGVBHF.mjs → integrations-FXADGAX2.mjs} +7 -7
- package/dist/cli/{integrations-YPHFI77G.js → integrations-YYBJJFVX.js} +15 -15
- package/dist/cli/{legacy-noops-5IYCFWWX.mjs → legacy-noops-LJY7LDUE.mjs} +6 -6
- package/dist/cli/{legacy-noops-246E3KKG.js → legacy-noops-REZCYES2.js} +9 -9
- package/dist/cli/{mcp-YTYTW67G.js → mcp-L5PURE5S.js} +24 -24
- package/dist/cli/{mcp-WUYGZXPI.mjs → mcp-XSB3ZJFR.mjs} +4 -4
- package/dist/cli/{monitors-SA6ILD6Z.js → monitors-I5EIHSGV.js} +100 -100
- package/dist/cli/{monitors-73DQKCU7.mjs → monitors-UBPF2OLO.mjs} +7 -7
- package/dist/cli/{org-WVQRB2KX.mjs → org-PHHIN2ER.mjs} +6 -6
- package/dist/cli/{org-X7ELDV7B.js → org-SGSTGGUD.js} +88 -88
- package/dist/cli/{play-QI6V2EUQ.mjs → play-LEJNJLWY.mjs} +17 -17
- package/dist/cli/{play-QTYOAJPE.js → play-WQEKMANL.js} +317 -317
- package/dist/cli/{providers-DPVMVDS4.mjs → providers-3W26ZDAV.mjs} +6 -6
- package/dist/cli/{providers-XXFLVREV.js → providers-RSDXBXIS.js} +9 -9
- package/dist/cli/{quickstart-YWGNHULM.mjs → quickstart-LGJD2M36.mjs} +4 -4
- package/dist/cli/{quickstart-33ISXQJU.js → quickstart-U3QX4EMI.js} +6 -6
- package/dist/cli/{run-BWHZXLTD.js → run-F2UPZUJS.js} +43 -43
- package/dist/cli/{run-J6FCAKQC.mjs → run-YWZ3W5HK.mjs} +23 -23
- package/dist/cli/search-K6ANAXLF.js +32 -0
- package/dist/cli/{search-Z3UU3WBB.mjs → search-O2OJH3PY.mjs} +7 -7
- package/dist/cli/{search-output-OJYY4J7E.mjs → search-output-H5BF6SJ3.mjs} +4 -4
- package/dist/cli/{search-output-YIPV74ME.js → search-output-W7OCBYBU.js} +6 -6
- package/dist/cli/{secrets-YZZN2WST.mjs → secrets-65XCAA7U.mjs} +6 -6
- package/dist/cli/{secrets-UXRJCEN4.js → secrets-BN4GYVRI.js} +15 -15
- package/dist/cli/sessions-M52QWLA6.js +22 -0
- package/dist/cli/{sessions-ITCGPD7Z.mjs → sessions-SVEVESCQ.mjs} +6 -6
- package/dist/cli/{settings-LAFYMILP.js → settings-7YMDAFCN.js} +85 -85
- package/dist/cli/{settings-ZP2LSVNM.mjs → settings-HAU2NP2H.mjs} +12 -12
- package/dist/cli/{setup-WEQAQSYC.mjs → setup-5RXHZ6YI.mjs} +9 -9
- package/dist/cli/{setup-4AL3XYM5.js → setup-G37QXQGM.js} +49 -49
- package/dist/cli/{skills-NQH4HFW2.mjs → skills-Q7A3XFAU.mjs} +7 -7
- package/dist/cli/skills-ZK4D5BJW.js +36 -0
- package/dist/cli/tools-DBZTLYFM.js +57 -0
- package/dist/cli/{tools-CXK2GSI4.mjs → tools-ZG4NYRGB.mjs} +17 -17
- package/dist/cli/{update-3ROF3Z75.mjs → update-2CMZTZCL.mjs} +9 -9
- package/dist/cli/update-LC5HGEEH.js +34 -0
- package/dist/cli/{views-AOUHVGV2.mjs → views-A6IIY4OQ.mjs} +6 -6
- package/dist/cli/{views-XJFO5CEH.js → views-XUMDMDIE.js} +21 -21
- package/dist/cli/{workflow-GY3DBHXX.js → workflow-4EEW6MCD.js} +17 -17
- package/dist/cli/{workflow-KBS2QJK6.mjs → workflow-74MYISHU.mjs} +7 -7
- package/dist/index.js +9 -9
- package/dist/index.mjs +6 -6
- package/dist/install-integrity.json +110 -110
- 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-AC5277PI.js +0 -43
- package/dist/cli/concurrent-runs-help-ZYISYOQA.js +0 -21
- package/dist/cli/describe-GYYSLZLV.js +0 -50
- package/dist/cli/git-FZIQZNI4.js +0 -25
- package/dist/cli/search-JCWJX2XD.js +0 -32
- package/dist/cli/sessions-NA4SJH6Q.js +0 -22
- package/dist/cli/skills-XZ4Y6SZ7.js +0 -36
- package/dist/cli/tools-WJQ6Y7E4.js +0 -57
- package/dist/cli/update-ZLRLTBRD.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 _chunkHTZIJORUjs = require('./chunk-HTZIJORU.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunk7JIOJLTSjs = require('./chunk-7JIOJLTS.js');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
@@ -14,16 +14,16 @@ var _chunkRKF263LRjs = require('./chunk-RKF263LR.js');
|
|
|
14
14
|
var _chunkXYIECA7Mjs = require('./chunk-XYIECA7M.js');
|
|
15
15
|
|
|
16
16
|
|
|
17
|
-
var
|
|
17
|
+
var _chunkJQWX377Pjs = require('./chunk-JQWX377P.js');
|
|
18
18
|
|
|
19
19
|
|
|
20
20
|
|
|
21
21
|
|
|
22
|
-
var
|
|
22
|
+
var _chunkI2JIWKCQjs = require('./chunk-I2JIWKCQ.js');
|
|
23
23
|
|
|
24
24
|
|
|
25
25
|
|
|
26
|
-
var
|
|
26
|
+
var _chunkIIWXBRDKjs = require('./chunk-IIWXBRDK.js');
|
|
27
27
|
|
|
28
28
|
// src/cli/commands/describe.ts
|
|
29
29
|
var _fs = require('fs');
|
|
@@ -32,14 +32,14 @@ var _path = require('path');
|
|
|
32
32
|
// src/cli/doc-read-reporting.ts
|
|
33
33
|
var REPORT_TIMEOUT_MS = 1e3;
|
|
34
34
|
async function reportDocRead(docId) {
|
|
35
|
-
if (
|
|
35
|
+
if (_chunkI2JIWKCQjs.isFailureReportingDisabled.call(void 0, )) return;
|
|
36
36
|
try {
|
|
37
|
-
const baseUrl =
|
|
38
|
-
const apiKey =
|
|
37
|
+
const baseUrl = _chunkIIWXBRDKjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
|
|
38
|
+
const apiKey = _chunkIIWXBRDKjs.resolveApiKeyForBaseUrl.call(void 0, baseUrl);
|
|
39
39
|
if (!apiKey) return;
|
|
40
40
|
await fetch(new URL("/api/v2/telemetry/doc-read", baseUrl), {
|
|
41
41
|
method: "POST",
|
|
42
|
-
headers:
|
|
42
|
+
headers: _chunkI2JIWKCQjs.failureReportHeaders.call(void 0, apiKey),
|
|
43
43
|
body: JSON.stringify({ doc_id: docId }),
|
|
44
44
|
signal: AbortSignal.timeout(REPORT_TIMEOUT_MS)
|
|
45
45
|
});
|
|
@@ -52,16 +52,16 @@ function nothingNamed(name) {
|
|
|
52
52
|
return `Nothing named "${name}". Search for it: deepline search ${JSON.stringify(name.replace(/[-_./]+/g, " "))}`;
|
|
53
53
|
}
|
|
54
54
|
function findNamed2(name, options) {
|
|
55
|
-
return _chunkRKF263LRjs.findNamed.call(void 0, name, options, _chunkRKF263LRjs.describeLookupsFor.call(void 0, new (0,
|
|
55
|
+
return _chunkRKF263LRjs.findNamed.call(void 0, name, options, _chunkRKF263LRjs.describeLookupsFor.call(void 0, new (0, _chunkJQWX377Pjs.DeeplineClient)()));
|
|
56
56
|
}
|
|
57
57
|
async function describeAnything(name, options, onMissing) {
|
|
58
|
-
const client = new (0,
|
|
58
|
+
const client = new (0, _chunkJQWX377Pjs.DeeplineClient)();
|
|
59
59
|
const lookups = _chunkRKF263LRjs.describeLookupsFor.call(void 0, client);
|
|
60
60
|
const outcome = await _chunkRKF263LRjs.describeName.call(void 0, name, options, {
|
|
61
61
|
...lookups,
|
|
62
62
|
// `tools describe` has already fetched the tool for its compatibility check.
|
|
63
63
|
tool: async (toolName) => _nullishCoalesce(options.fetchedTool, () => ( lookups.tool(toolName))),
|
|
64
|
-
seedStarterScript:
|
|
64
|
+
seedStarterScript: _chunkHTZIJORUjs.seedToolListScript
|
|
65
65
|
});
|
|
66
66
|
if (outcome.status === "missing") {
|
|
67
67
|
if (onMissing) return onMissing();
|
|
@@ -87,18 +87,18 @@ function deliver(envelope, lines, { json, out }) {
|
|
|
87
87
|
` : text;
|
|
88
88
|
_fs.writeFileSync.call(void 0, path, content);
|
|
89
89
|
const bytes = Buffer.byteLength(content);
|
|
90
|
-
|
|
90
|
+
_chunkI2JIWKCQjs.printCommandEnvelope.call(void 0,
|
|
91
91
|
{ path, bytes },
|
|
92
92
|
{ json, text: `Wrote ${path} (${bytes} bytes)
|
|
93
93
|
` }
|
|
94
94
|
);
|
|
95
95
|
return 0;
|
|
96
96
|
}
|
|
97
|
-
|
|
97
|
+
_chunkI2JIWKCQjs.printCommandEnvelope.call(void 0, envelope, { json, text });
|
|
98
98
|
return 0;
|
|
99
99
|
}
|
|
100
100
|
function registerDescribeCommand(program) {
|
|
101
|
-
|
|
101
|
+
_chunk7JIOJLTSjs.addDescribeOptions.call(void 0, program.command("describe <name>")).option("--web-url", "Print only a play's play page URL").description(
|
|
102
102
|
"Describe anything search returns: a tool, monitor type, or play."
|
|
103
103
|
).addHelpText(
|
|
104
104
|
"after",
|
|
@@ -17,12 +17,12 @@ var _chunkXNYIZMNQjs = require('./chunk-XNYIZMNQ.js');
|
|
|
17
17
|
var _chunkBBTKAASQjs = require('./chunk-BBTKAASQ.js');
|
|
18
18
|
|
|
19
19
|
|
|
20
|
-
var
|
|
20
|
+
var _chunk2OG2KBYJjs = require('./chunk-2OG2KBYJ.js');
|
|
21
21
|
|
|
22
22
|
// src/version.ts
|
|
23
|
-
var SDK_VERSION =
|
|
24
|
-
var SDK_API_MAJOR =
|
|
25
|
-
var SDK_API_CONTRACT = _nullishCoalesce(
|
|
23
|
+
var SDK_VERSION = _chunk2OG2KBYJjs.SDK_RELEASE.version;
|
|
24
|
+
var SDK_API_MAJOR = _chunk2OG2KBYJjs.SDK_RELEASE.contracts.api.currentMajor;
|
|
25
|
+
var SDK_API_CONTRACT = _nullishCoalesce(_chunk2OG2KBYJjs.SDK_RELEASE.contracts.api.legacyWireIds[0], () => ( `api-v${SDK_API_MAJOR}`));
|
|
26
26
|
|
|
27
27
|
// src/agent-runtime.ts
|
|
28
28
|
var _fs = require('fs');
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
DeeplineClient
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-U35ZLVBA.mjs";
|
|
4
4
|
import {
|
|
5
5
|
printCommandEnvelope
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-OGDQFVCP.mjs";
|
|
7
7
|
|
|
8
8
|
// src/cli/commands/integration-commands.ts
|
|
9
9
|
import { Option } from "commander";
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
traceCliSpan
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-GCEGQ7TQ.mjs";
|
|
4
4
|
import {
|
|
5
5
|
checkSdkCompatibility,
|
|
6
6
|
enforceSdkCompatibilityResponse,
|
|
7
7
|
flushDeferredSkillsSyncNotices
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-XKEBQVCP.mjs";
|
|
9
9
|
|
|
10
10
|
// src/cli/play-run-admission.ts
|
|
11
11
|
function usesInlinePlayAdmission(command, args) {
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
} from "./chunk-MF7PCM6C.mjs";
|
|
4
4
|
import {
|
|
5
5
|
parseLogLevel
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-TKGFHRHE.mjs";
|
|
7
7
|
import {
|
|
8
8
|
setDottedInputValue
|
|
9
9
|
} from "./chunk-LX35AXTN.mjs";
|
|
@@ -11,7 +11,7 @@ import {
|
|
|
11
11
|
argsWantJson,
|
|
12
12
|
jsonFieldArgs,
|
|
13
13
|
parseJsonFields
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-OGDQFVCP.mjs";
|
|
15
15
|
import {
|
|
16
16
|
DeeplineError
|
|
17
17
|
} from "./chunk-JL2OTMSG.mjs";
|
|
@@ -1,6 +1,6 @@
|
|
|
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; } var _class;
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkI2JIWKCQjs = require('./chunk-I2JIWKCQ.js');
|
|
4
4
|
|
|
5
5
|
// src/cli/progress.ts
|
|
6
6
|
var _worker_threads = require('worker_threads');
|
|
@@ -19,7 +19,7 @@ var CliProgress = (_class = class {
|
|
|
19
19
|
__init9() {this.quiet = false}
|
|
20
20
|
// --json output is one JSON document: progress never renders under it.
|
|
21
21
|
constructor(enabled) {;_class.prototype.__init.call(this);_class.prototype.__init2.call(this);_class.prototype.__init3.call(this);_class.prototype.__init4.call(this);_class.prototype.__init5.call(this);_class.prototype.__init6.call(this);_class.prototype.__init7.call(this);_class.prototype.__init8.call(this);_class.prototype.__init9.call(this);
|
|
22
|
-
this.enabled = enabled && !
|
|
22
|
+
this.enabled = enabled && !_chunkI2JIWKCQjs.isJsonOutputMode.call(void 0, );
|
|
23
23
|
}
|
|
24
24
|
setLogWriter(writer) {
|
|
25
25
|
this.logWriter = writer;
|
|
@@ -59,7 +59,7 @@ var CliProgress = (_class = class {
|
|
|
59
59
|
this.logWriter(line);
|
|
60
60
|
return;
|
|
61
61
|
}
|
|
62
|
-
if (
|
|
62
|
+
if (_chunkI2JIWKCQjs.isJsonOutputMode.call(void 0, )) return;
|
|
63
63
|
if (!this.enabled) {
|
|
64
64
|
process.stderr.write(`${line}
|
|
65
65
|
`);
|
|
@@ -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 _chunkM2OZORIHjs = require('./chunk-M2OZORIH.js');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkLAVPP6WDjs = require('./chunk-LAVPP6WD.js');
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
var
|
|
10
|
+
var _chunk5OJOFUMOjs = require('./chunk-5OJOFUMO.js');
|
|
11
11
|
|
|
12
12
|
|
|
13
|
-
var
|
|
13
|
+
var _chunkI2JIWKCQjs = require('./chunk-I2JIWKCQ.js');
|
|
14
14
|
|
|
15
15
|
|
|
16
|
-
var
|
|
16
|
+
var _chunkIIWXBRDKjs = require('./chunk-IIWXBRDK.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 = _chunk5OJOFUMOjs.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 ? _chunkM2OZORIHjs.readNpmVersion.call(void 0, env) : options.npmVersion;
|
|
560
|
+
const npmGlobalInstallFlags = _chunkM2OZORIHjs.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()]) || _chunkIIWXBRDKjs.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 = _chunk5OJOFUMOjs.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, () => ( _chunkIIWXBRDKjs.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 _chunkLAVPP6WDjs.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
|
+
_chunkI2JIWKCQjs.printCommandEnvelope.call(void 0, { ...plan, render }, { json: true });
|
|
1281
1281
|
return 0;
|
|
1282
1282
|
}
|
|
1283
1283
|
if (options.printCommand) {
|
|
1284
|
-
|
|
1284
|
+
_chunkI2JIWKCQjs.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
|
+
_chunkI2JIWKCQjs.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
|
+
_chunkI2JIWKCQjs.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-XU3D2KFR.mjs";
|
|
5
5
|
import {
|
|
6
6
|
runSkillsCommand
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-OQCYSLML.mjs";
|
|
8
8
|
import {
|
|
9
9
|
resolveShellSpawn
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-XKEBQVCP.mjs";
|
|
11
11
|
import {
|
|
12
12
|
printCommandEnvelope
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-OGDQFVCP.mjs";
|
|
14
14
|
import {
|
|
15
15
|
autoDetectBaseUrl
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-QZ74ZC55.mjs";
|
|
17
17
|
|
|
18
18
|
// src/cli/commands/update.ts
|
|
19
19
|
import { spawn, spawnSync } from "child_process";
|