deepline 0.3.490 → 0.3.491
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 +6 -1
- package/dist/bundling-sources/sdk/src/release.ts +1 -1
- package/dist/bundling-sources/sdk/src/types.ts +4 -1
- package/dist/cli/{auth-RL6LOZGC.mjs → auth-FXAC472Y.mjs} +5 -5
- package/dist/cli/auth-QIDL3YCW.js +43 -0
- package/dist/cli/{billing-LIDDSOSY.js → billing-PDOA3KZ3.js} +79 -79
- package/dist/cli/{billing-33THO76F.mjs → billing-UM4LE33K.mjs} +6 -6
- package/dist/cli/{chunk-QZPJWFGD.js → chunk-27MRSV6O.js} +26 -26
- package/dist/cli/{chunk-V47SUOAE.mjs → chunk-2MW6TGNZ.mjs} +4 -4
- package/dist/cli/{chunk-63TNO23X.js → chunk-3FMU6F6E.js} +10 -10
- package/dist/cli/{chunk-CB7IFKXN.mjs → chunk-3K4IAV7I.mjs} +2 -2
- package/dist/cli/{chunk-7W53Y4VH.mjs → chunk-3WRWPNHE.mjs} +5 -5
- package/dist/cli/{chunk-Y2KHSQEF.js → chunk-5KMGKG4B.js} +8 -8
- package/dist/cli/{chunk-A3D677RX.mjs → chunk-6PMM7VJN.mjs} +1 -1
- package/dist/cli/{chunk-LZ37B62K.js → chunk-6UARNRXT.js} +3 -3
- package/dist/cli/{chunk-EPQZ42PY.js → chunk-74H5OTRM.js} +1 -1
- package/dist/cli/{chunk-FPYESYBO.js → chunk-AEKJZJ4R.js} +4 -4
- package/dist/cli/{chunk-PVMN4OE2.js → chunk-B2TXKEED.js} +5 -5
- package/dist/cli/{chunk-E26477MJ.js → chunk-BCKIBVEJ.js} +7 -7
- package/dist/cli/{chunk-QWJZSPCV.mjs → chunk-CFPFTS3A.mjs} +10 -10
- package/dist/cli/{chunk-L7QSZAF6.js → chunk-CRBBGKRH.js} +9 -9
- package/dist/cli/{chunk-YPUDIEZX.js → chunk-DUFRH43S.js} +94 -94
- package/dist/cli/{chunk-CSSOP7XG.mjs → chunk-EPD7NSDJ.mjs} +1 -1
- package/dist/cli/{chunk-JTYKW3UL.mjs → chunk-H6UIS36S.mjs} +2 -2
- package/dist/cli/{chunk-UQXHBCHU.js → chunk-HNG2U3IG.js} +2 -2
- package/dist/cli/{chunk-JSYCPTG6.mjs → chunk-HSJK6EMU.mjs} +3 -3
- package/dist/cli/{chunk-XSGJKXMP.js → chunk-I64PYCTB.js} +2 -2
- package/dist/cli/{chunk-6TTPAGNX.js → chunk-IG3GSBBE.js} +122 -119
- package/dist/cli/{chunk-MEYQOZPF.mjs → chunk-IIO7UOVW.mjs} +5 -2
- package/dist/cli/{chunk-MDKAPUN2.mjs → chunk-KGJVDR4Q.mjs} +2 -2
- package/dist/cli/{chunk-LQIKW55V.mjs → chunk-LMG7O6XJ.mjs} +2 -2
- package/dist/cli/{chunk-MBQZMHE6.mjs → chunk-MAM6ZOVS.mjs} +4 -4
- package/dist/cli/{chunk-QC6QUFKY.js → chunk-MN6DCV63.js} +5 -5
- package/dist/cli/{chunk-Z7W6VJFN.mjs → chunk-NUOKAKZW.mjs} +1 -1
- package/dist/cli/{chunk-BL5Q5JY7.mjs → chunk-OLHWZM4A.mjs} +5 -5
- package/dist/cli/{chunk-TVZJ6XWM.mjs → chunk-ORKLMANE.mjs} +1 -1
- package/dist/cli/{chunk-PIENQTDE.mjs → chunk-OYJTLEB4.mjs} +1 -1
- package/dist/cli/{chunk-JC2M6XG2.mjs → chunk-PIPEPCRL.mjs} +1 -1
- package/dist/cli/{chunk-SGG3TERP.js → chunk-Q7G7CU4W.js} +3 -3
- package/dist/cli/{chunk-2HYJU4LJ.mjs → chunk-QBOE5LEH.mjs} +1 -1
- package/dist/cli/{chunk-FDYCUA7A.js → chunk-RFSXXDH7.js} +16 -16
- package/dist/cli/{chunk-NRM5OWH2.mjs → chunk-S4CYM4EC.mjs} +4 -4
- package/dist/cli/{chunk-HHGAY2A4.js → chunk-SJOHQ2WW.js} +53 -53
- package/dist/cli/{chunk-WNVZV6VK.js → chunk-SUMKWA53.js} +53 -53
- package/dist/cli/{chunk-B7MPY7WH.js → chunk-TH7JLR5D.js} +6 -6
- package/dist/cli/{chunk-UTKNSD6T.js → chunk-TMAS3WH3.js} +21 -21
- package/dist/cli/{chunk-27IBWHR5.mjs → chunk-VC3SH4QW.mjs} +4 -4
- package/dist/cli/{chunk-J5HMAZ34.mjs → chunk-WCWVXN3R.mjs} +2 -2
- package/dist/cli/{chunk-OFCP66VS.mjs → chunk-X75ONMDJ.mjs} +2 -2
- package/dist/cli/{chunk-TCBYQX5N.js → chunk-X7YOVJBC.js} +37 -37
- package/dist/cli/{chunk-3M5VPIRL.mjs → chunk-YV4DP6KQ.mjs} +2 -2
- package/dist/cli/{chunk-YYN2O43C.js → chunk-ZEZ3CZ3X.js} +3 -3
- package/dist/cli/{chunk-IFGBL3US.js → chunk-ZX2FXZJN.js} +7 -7
- package/dist/cli/{csv-PLJNQPLE.js → csv-IGPAPAES.js} +13 -13
- package/dist/cli/{csv-TELSH4ND.mjs → csv-RNMQHECI.mjs} +4 -4
- package/dist/cli/{db-QDJ6GWF5.js → db-32OXM3TO.js} +27 -27
- package/dist/cli/{db-GISAU665.mjs → db-CKMVVGXJ.mjs} +6 -6
- package/dist/cli/describe-67GMIEIO.js +50 -0
- package/dist/cli/{describe-F4K54VXB.mjs → describe-QR7I3VOF.mjs} +17 -17
- package/dist/cli/describe-core.d.mts +2 -2
- package/dist/cli/describe-core.d.ts +2 -2
- package/dist/cli/{executions-VKUTKQNN.js → executions-PCZS7B2M.js} +8 -8
- package/dist/cli/{executions-3QE7MRBG.mjs → executions-S4M4JMCU.mjs} +6 -6
- package/dist/cli/{feedback-HH5AUYLA.js → feedback-6EGKPZ3U.js} +8 -8
- package/dist/cli/{feedback-JU7PJGDL.mjs → feedback-FGUJVCBS.mjs} +4 -4
- package/dist/cli/{git-ACXH7K7D.mjs → git-LR4ARG5H.mjs} +5 -5
- package/dist/cli/git-PIH5Z5LN.js +25 -0
- package/dist/cli/index.js +137 -137
- package/dist/cli/index.mjs +40 -40
- package/dist/cli/{legacy-noops-IOAZ3YJ2.mjs → legacy-noops-S37PJ7OJ.mjs} +5 -5
- package/dist/cli/{legacy-noops-NRPYJZOP.js → legacy-noops-VX4JEQR6.js} +8 -8
- package/dist/cli/{monitors-4SKMAAMR.js → monitors-ADASJI72.js} +91 -91
- package/dist/cli/{monitors-PMQUOIOI.mjs → monitors-H3AX6CZG.mjs} +7 -7
- package/dist/cli/{org-XNT3W6OU.mjs → org-D3F5LUDW.mjs} +6 -6
- package/dist/cli/{org-WJM7X6WB.js → org-ZRJ3C56J.js} +72 -72
- package/dist/cli/{pages-WXY4GGZG.js → pages-5TKO3644.js} +17 -17
- package/dist/cli/{pages-Y3JKBS4B.mjs → pages-PSHU366M.mjs} +6 -6
- package/dist/cli/{play-NPWWAQYK.mjs → play-AUDDK7XB.mjs} +19 -18
- package/dist/cli/{play-NKSRPIAV.js → play-VDAETQDI.js} +314 -313
- package/dist/cli/{providers-VNPJHXK5.js → providers-IURPWRWD.js} +9 -9
- package/dist/cli/{providers-CUIKFE6F.mjs → providers-X7YMZSKQ.mjs} +6 -6
- package/dist/cli/{quickstart-PJYPKFZI.mjs → quickstart-6AGWVFNX.mjs} +4 -4
- package/dist/cli/{quickstart-6OTS2HDR.js → quickstart-Y6GFXLDV.js} +6 -6
- package/dist/cli/{run-AGX3EUK4.mjs → run-TG7J45NS.mjs} +22 -22
- package/dist/cli/{run-2DLJBYFC.js → run-TQFGOXNT.js} +36 -36
- package/dist/cli/{search-DVIEJ2UQ.mjs → search-3G4J2GC6.mjs} +7 -7
- package/dist/cli/search-VC43NUY7.js +32 -0
- package/dist/cli/{search-output-PFLNDCA7.js → search-output-NPZICK5C.js} +6 -6
- package/dist/cli/{search-output-TXSIPSPS.mjs → search-output-ZGNHDCLL.mjs} +4 -4
- package/dist/cli/{secrets-OAGXFXEX.mjs → secrets-EAWJBRUD.mjs} +6 -6
- package/dist/cli/{secrets-O5OQTFVD.js → secrets-KTTHT4ZG.js} +15 -15
- package/dist/cli/{sessions-GBR5PGB6.mjs → sessions-D4Q3LCEQ.mjs} +5 -5
- package/dist/cli/{sessions-WT7P3F73.js → sessions-S4YVBPAW.js} +6 -6
- package/dist/cli/{settings-U7UNDUDB.js → settings-BAK3VOWW.js} +78 -78
- package/dist/cli/{settings-KGNBIFOU.mjs → settings-JUORW6NL.mjs} +11 -11
- package/dist/cli/{setup-PYWSU4YM.mjs → setup-AXFGCXJE.mjs} +9 -9
- package/dist/cli/{setup-4MZNDFKM.js → setup-NJPHTW32.js} +49 -49
- package/dist/cli/skills-4NQZISNK.js +36 -0
- package/dist/cli/{skills-7Y6OBM7Z.mjs → skills-SKJVDJEF.mjs} +7 -7
- package/dist/cli/{tools-O7L435CR.mjs → tools-63THJVJZ.mjs} +16 -16
- package/dist/cli/tools-BAHK33FQ.js +57 -0
- package/dist/cli/update-EMIGRGJ7.js +34 -0
- package/dist/cli/{update-SPHIBY5L.mjs → update-KSID5F74.mjs} +9 -9
- package/dist/cli/{workflow-GTDKPIEV.js → workflow-BLSMWBKW.js} +17 -17
- package/dist/cli/{workflow-ZRYO5J3K.mjs → workflow-C4B54X2Z.mjs} +7 -7
- package/dist/{client-BkbDHRIg.d.mts → client-B4R1scm2.d.mts} +1 -1
- package/dist/{client-D3hVHXjK.d.ts → client-CQgGFxAH.d.ts} +1 -1
- package/dist/{client-core-DUdVqO_m.d.ts → client-core-BUNjKBKq.d.ts} +6 -1
- package/dist/{client-core-BZoSMKcY.d.mts → client-core-DMvHWjub.d.mts} +6 -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 +102 -102
- 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-AW34RGV5.js +0 -43
- package/dist/cli/describe-R6NVISAS.js +0 -50
- package/dist/cli/git-CXRU4CRW.js +0 -25
- package/dist/cli/search-Y7VFEFJJ.js +0 -32
- package/dist/cli/skills-BQC2323O.js +0 -36
- package/dist/cli/tools-732SZ4KV.js +0 -57
- package/dist/cli/update-PCYIUORM.js +0 -34
|
@@ -31,7 +31,7 @@ import {
|
|
|
31
31
|
RETAINED_PIPELINE_RECEIVERS_HEADER,
|
|
32
32
|
RUNTIME_ENVIRONMENT_TOKEN_HEADER,
|
|
33
33
|
SDK_API_MAJOR
|
|
34
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-6PMM7VJN.mjs";
|
|
35
35
|
import {
|
|
36
36
|
CustomerDbQueryOutcomeUnknownError
|
|
37
37
|
} from "./chunk-4QF2K7TM.mjs";
|
|
@@ -4675,7 +4675,10 @@ var DeeplineClient = class _DeeplineClient {
|
|
|
4675
4675
|
params.set("full", "true");
|
|
4676
4676
|
}
|
|
4677
4677
|
if (options?.configuration === true) {
|
|
4678
|
-
params.
|
|
4678
|
+
params.append("include", "configuration");
|
|
4679
|
+
}
|
|
4680
|
+
if (options?.performance === true) {
|
|
4681
|
+
params.append("include", "performance");
|
|
4679
4682
|
}
|
|
4680
4683
|
const query = params.size > 0 ? `?${params.toString()}` : "";
|
|
4681
4684
|
const response = await this.http.get(
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
} from "./chunk-F6QV42MC.mjs";
|
|
4
4
|
import {
|
|
5
5
|
parseLogLevel
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-IIO7UOVW.mjs";
|
|
7
7
|
import {
|
|
8
8
|
setDottedInputValue
|
|
9
9
|
} from "./chunk-ONONSV2Q.mjs";
|
|
@@ -11,7 +11,7 @@ import {
|
|
|
11
11
|
argsWantJson,
|
|
12
12
|
jsonFieldArgs,
|
|
13
13
|
parseJsonFields
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-X75ONMDJ.mjs";
|
|
15
15
|
import {
|
|
16
16
|
DeeplineError
|
|
17
17
|
} from "./chunk-HBL4PM5Q.mjs";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
getAuthedHttpClient,
|
|
3
3
|
printCommandEnvelope
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-X75ONMDJ.mjs";
|
|
5
5
|
import {
|
|
6
6
|
agentSessionIdFromEnvironment
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-6PMM7VJN.mjs";
|
|
8
8
|
|
|
9
9
|
// src/cli/commands/sessions.ts
|
|
10
10
|
import {
|
|
@@ -11,20 +11,20 @@ import {
|
|
|
11
11
|
skillsInstallLeasePath,
|
|
12
12
|
skillsSourceUrl,
|
|
13
13
|
syncSdkSkillsIfNeeded
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-VC3SH4QW.mjs";
|
|
15
15
|
import {
|
|
16
16
|
printCommandEnvelope
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-X75ONMDJ.mjs";
|
|
18
18
|
import {
|
|
19
19
|
autoDetectBaseUrl,
|
|
20
20
|
ensureProjectPrivatePathsIgnored,
|
|
21
21
|
resolveProjectPinTarget,
|
|
22
22
|
sdkCliStateDirPath
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-PIPEPCRL.mjs";
|
|
24
24
|
import {
|
|
25
25
|
SDK_VERSION,
|
|
26
26
|
detectAgentRuntime
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-6PMM7VJN.mjs";
|
|
28
28
|
import {
|
|
29
29
|
DEEPLINE_GTM_GLOBAL_CODEX_SKILL_FILE
|
|
30
30
|
} from "./chunk-TKLDKIJU.mjs";
|
|
@@ -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 _chunkIG3GSBBEjs = require('./chunk-IG3GSBBE.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkZEZ3CZ3Xjs = require('./chunk-ZEZ3CZ3X.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 = _chunkZEZ3CZ3Xjs.resolveConfig.call(void 0, options);
|
|
141
|
+
return new (0, _chunkIG3GSBBEjs.PlayClient)(
|
|
142
|
+
new (0, _chunkZEZ3CZ3Xjs.HttpClient)(config),
|
|
143
143
|
_nullishCoalesce(config.environment, () => ( process.env))
|
|
144
144
|
);
|
|
145
145
|
}
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import {
|
|
2
2
|
npmSupportsAllowScripts,
|
|
3
3
|
readNpmVersion
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-ORKLMANE.mjs";
|
|
5
5
|
import {
|
|
6
6
|
runSkillsCommand
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-MAM6ZOVS.mjs";
|
|
8
8
|
import {
|
|
9
9
|
resolveShellSpawn
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-VC3SH4QW.mjs";
|
|
11
11
|
import {
|
|
12
12
|
printCommandEnvelope
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-X75ONMDJ.mjs";
|
|
14
14
|
import {
|
|
15
15
|
autoDetectBaseUrl
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-PIPEPCRL.mjs";
|
|
17
17
|
|
|
18
18
|
// src/cli/commands/update.ts
|
|
19
19
|
import { spawn, spawnSync } from "child_process";
|
|
@@ -49,7 +49,7 @@ var SDK_RELEASE = {
|
|
|
49
49
|
// getters keep their established compatibility behavior.
|
|
50
50
|
// 0.3.1 deprecated the legacy `deepline enrich` command in favor of Plays.
|
|
51
51
|
// 0.3.90 is the first deliberately versioned SDK release for API v3.
|
|
52
|
-
version: "0.3.
|
|
52
|
+
version: "0.3.491",
|
|
53
53
|
updateSummary: {
|
|
54
54
|
introducedIn: "0.3.90",
|
|
55
55
|
summary: "Play grep now returns concise results with the matched fields and terms. Automatic CLI updates are enabled by default; use `deepline settings autoupdate off` to opt out, `deepline settings autoupdate on` to re-enable updates, or `deepline settings autoupdate pin <version>` to hold an exact release."
|
|
@@ -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 _chunkBCKIBVEJjs = require('./chunk-BCKIBVEJ.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 && !_chunkBCKIBVEJjs.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 (_chunkBCKIBVEJjs.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 _chunkI64PYCTBjs = require('./chunk-I64PYCTB.js');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkX7YOVJBCjs = require('./chunk-X7YOVJBC.js');
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
var
|
|
10
|
+
var _chunkSJOHQ2WWjs = require('./chunk-SJOHQ2WW.js');
|
|
11
11
|
|
|
12
12
|
|
|
13
|
-
var
|
|
13
|
+
var _chunkBCKIBVEJjs = require('./chunk-BCKIBVEJ.js');
|
|
14
14
|
|
|
15
15
|
|
|
16
|
-
var
|
|
16
|
+
var _chunkZEZ3CZ3Xjs = require('./chunk-ZEZ3CZ3X.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 = _chunkSJOHQ2WWjs.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 ? _chunkI64PYCTBjs.readNpmVersion.call(void 0, env) : options.npmVersion;
|
|
560
|
+
const npmGlobalInstallFlags = _chunkI64PYCTBjs.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()]) || _chunkZEZ3CZ3Xjs.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 = _chunkSJOHQ2WWjs.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, () => ( _chunkZEZ3CZ3Xjs.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 _chunkX7YOVJBCjs.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
|
+
_chunkBCKIBVEJjs.printCommandEnvelope.call(void 0, { ...plan, render }, { json: true });
|
|
1281
1281
|
return 0;
|
|
1282
1282
|
}
|
|
1283
1283
|
if (options.printCommand) {
|
|
1284
|
-
|
|
1284
|
+
_chunkBCKIBVEJjs.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
|
+
_chunkBCKIBVEJjs.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
|
|
|
1324
1324
|
);
|
|
1325
1325
|
}
|
|
1326
1326
|
if (options.executeWithJson && options.json) {
|
|
1327
|
-
|
|
1327
|
+
_chunkBCKIBVEJjs.printCommandEnvelope.call(void 0,
|
|
1328
1328
|
{
|
|
1329
1329
|
ok: true,
|
|
1330
1330
|
pinnedVersion
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
seedToolListScript
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-CFPFTS3A.mjs";
|
|
4
4
|
import {
|
|
5
5
|
addDescribeOptions
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-EPD7NSDJ.mjs";
|
|
7
7
|
import {
|
|
8
8
|
describeLookupsFor,
|
|
9
9
|
describeName,
|
|
@@ -14,10 +14,10 @@ import {
|
|
|
14
14
|
} from "./chunk-DEJIN4DF.mjs";
|
|
15
15
|
import {
|
|
16
16
|
DeeplineClient
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-YV4DP6KQ.mjs";
|
|
18
18
|
import {
|
|
19
19
|
printCommandEnvelope
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-X75ONMDJ.mjs";
|
|
21
21
|
|
|
22
22
|
// src/cli/commands/describe.ts
|
|
23
23
|
import { writeFileSync } from "fs";
|