deepline 0.3.368 → 0.3.370
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 +7 -1
- package/dist/bundling-sources/shared_libs/monitors/fleets/limits.ts +4 -2
- package/dist/cli/auth-DD3PVIRQ.js +33 -0
- package/dist/cli/{auth-RUWM7VTH.mjs → auth-RIH4S7NC.mjs} +4 -4
- package/dist/cli/{billing-WSS57VQY.mjs → billing-ERNGN6WK.mjs} +4 -4
- package/dist/cli/{billing-PLBQKLDK.js → billing-Q65H5GJM.js} +73 -73
- package/dist/cli/{chunk-DZOEDNSU.js → chunk-4Y5UDYQK.js} +9 -9
- package/dist/cli/{chunk-ENGMDXHN.mjs → chunk-5DUTNG37.mjs} +2 -2
- package/dist/cli/{chunk-S4Y7B2O3.js → chunk-666HPUIZ.js} +6 -1
- package/dist/cli/{chunk-7AWSYT7H.js → chunk-A4OX52RV.js} +8 -8
- package/dist/cli/{chunk-ZS2YQ4YK.mjs → chunk-A5RFERJQ.mjs} +2 -2
- package/dist/cli/{chunk-GJO4H3NN.js → chunk-A6DJC2RC.js} +60 -60
- package/dist/cli/{chunk-7PQTQSJY.mjs → chunk-BGXG3GEI.mjs} +3 -3
- package/dist/cli/{chunk-IG7OYVS7.mjs → chunk-BKHNCIQD.mjs} +6 -6
- package/dist/cli/{chunk-QILHWZFP.js → chunk-CTMA3C3N.js} +7 -1
- package/dist/cli/{chunk-NZHVJB2W.js → chunk-DFJDVQMH.js} +2 -2
- package/dist/cli/{chunk-S3MDB6SI.mjs → chunk-GGRVNAOH.mjs} +1 -1
- package/dist/cli/{chunk-THO6F53F.mjs → chunk-H4IQJRFC.mjs} +1 -1
- package/dist/cli/{chunk-XUMWO4ST.mjs → chunk-HHH4MPFY.mjs} +4 -4
- package/dist/cli/{chunk-PU53IS6H.mjs → chunk-IDBLJSLL.mjs} +2 -2
- package/dist/cli/{chunk-EZUGGC5A.mjs → chunk-LJWOPNJJ.mjs} +1 -1
- package/dist/cli/{chunk-LEZWRLB3.mjs → chunk-LNEBKWXM.mjs} +1 -1
- package/dist/cli/{chunk-SNENR3BL.js → chunk-MKFHZDBO.js} +6 -6
- package/dist/cli/{chunk-GHZUH33K.mjs → chunk-NEY2M4EZ.mjs} +6 -1
- package/dist/cli/{chunk-HZT2Y7WB.js → chunk-NHB3UWTZ.js} +15 -15
- package/dist/cli/{chunk-AUWKAVXB.js → chunk-R7AAYFDQ.js} +95 -54
- package/dist/cli/{chunk-QFBHEQCQ.mjs → chunk-RLXMRC6P.mjs} +7 -1
- package/dist/cli/{chunk-GTC2KAZQ.js → chunk-SFI7U6CA.js} +4 -4
- package/dist/cli/{chunk-OTI7CDLE.mjs → chunk-T64NZ2A7.mjs} +49 -8
- package/dist/cli/{chunk-2YOKZW46.js → chunk-WQZ22EQU.js} +26 -26
- package/dist/cli/{chunk-YCJMDCTH.js → chunk-XTKVXHGD.js} +8 -8
- package/dist/cli/{chunk-BKEYQHJ2.js → chunk-Y2B56VN7.js} +50 -50
- package/dist/cli/{chunk-27QA6Q4G.js → chunk-YEEESF2T.js} +224 -224
- package/dist/cli/{chunk-A2OLR6DK.mjs → chunk-YQMUTC2H.mjs} +2 -2
- package/dist/cli/client-DNAFHKWV.js +20 -0
- package/dist/cli/{client-JJEEIOIL.mjs → client-QXOERIFI.mjs} +3 -3
- package/dist/cli/command-docs.js +2 -2
- package/dist/cli/command-docs.mjs +1 -1
- package/dist/cli/{csv-75D36YRA.mjs → csv-V7UKQ7AC.mjs} +3 -3
- package/dist/cli/{csv-EPNNU27J.js → csv-ZKIUSDIV.js} +12 -12
- package/dist/cli/{db-SWNKJUU5.js → db-GWKRVHKS.js} +29 -29
- package/dist/cli/{db-6HYSGMLN.mjs → db-QQ4BYMPY.mjs} +4 -4
- package/dist/cli/{describe-XMUHTICA.js → describe-3AJI2BOS.js} +15 -15
- package/dist/cli/{describe-N2KSBPOR.mjs → describe-XMWXEFMS.mjs} +8 -8
- package/dist/cli/{executions-3ESWUDHH.js → executions-2IMCCV34.js} +6 -6
- package/dist/cli/{executions-WHSG2JGN.mjs → executions-QV7UE5YG.mjs} +4 -4
- package/dist/cli/{feedback-CGZE7L7A.js → feedback-7SSJ7VPF.js} +7 -7
- package/dist/cli/{feedback-2VHTJXU7.mjs → feedback-K6WNXZDB.mjs} +3 -3
- package/dist/cli/git-EBSF3254.js +23 -0
- package/dist/cli/{git-IG4J5OUT.mjs → git-UOE2K2XQ.mjs} +4 -4
- package/dist/cli/index.js +86 -86
- package/dist/cli/index.mjs +33 -33
- package/dist/cli/{legacy-noops-QF7S6JJB.js → legacy-noops-GC43OSXL.js} +7 -7
- package/dist/cli/{legacy-noops-7WXL7PB3.mjs → legacy-noops-SOYPIA2X.mjs} +4 -4
- package/dist/cli/{monitors-6XYT53X6.js → monitors-AXANB6WK.js} +85 -85
- package/dist/cli/{monitors-QS4QFORU.mjs → monitors-FLCGMXVH.mjs} +4 -4
- package/dist/cli/{org-NLR3D3M7.js → org-MXD4BTQI.js} +64 -64
- package/dist/cli/{org-5IGU7FES.mjs → org-Q7EDNZMN.mjs} +4 -4
- package/dist/cli/{play-JVENSY4T.mjs → play-TZROCF7E.mjs} +7 -7
- package/dist/cli/play-YWQXVOBT.js +153 -0
- package/dist/cli/{providers-RSVO5U4E.mjs → providers-JEY4FTWG.mjs} +4 -4
- package/dist/cli/{providers-T4GCIOTW.js → providers-LOS4MHAG.js} +7 -7
- package/dist/cli/{quickstart-IHAG5QZ6.js → quickstart-27UQGHEH.js} +5 -5
- package/dist/cli/{quickstart-ZDFOKNYW.mjs → quickstart-WO5KVVER.mjs} +3 -3
- package/dist/cli/{search-ZGEYJSMF.mjs → search-LZHWXC2C.mjs} +5 -5
- package/dist/cli/search-OQ3OEFUA.js +26 -0
- package/dist/cli/{secrets-OQZRZBP6.mjs → secrets-AVJGZABR.mjs} +4 -4
- package/dist/cli/{secrets-DVTEZCPE.js → secrets-PE7P4L7N.js} +13 -13
- package/dist/cli/{sessions-XYEG53JJ.js → sessions-I6UDBN7M.js} +5 -5
- package/dist/cli/{sessions-XM7PFJL2.mjs → sessions-ZDSZTYZV.mjs} +4 -4
- package/dist/cli/{settings-NWEBQOX4.js → settings-3SLMJHJ2.js} +74 -74
- package/dist/cli/{settings-TKXYRYYH.mjs → settings-SPWH3FET.mjs} +7 -7
- package/dist/cli/{setup-3UD5TDRJ.mjs → setup-Q3CJ4T2Q.mjs} +6 -6
- package/dist/cli/{setup-JRU6VGFQ.js → setup-R4LUWQE4.js} +41 -41
- package/dist/cli/{skills-GLLMNOCY.mjs → skills-FGXH432G.mjs} +4 -4
- package/dist/cli/skills-IDXBBOUW.js +28 -0
- package/dist/cli/{tools-VXXAMH2X.mjs → tools-O7C6PFF2.mjs} +6 -6
- package/dist/cli/tools-WHLD4Y4O.js +40 -0
- package/dist/cli/update-K6HE3XKO.js +28 -0
- package/dist/cli/{update-UCGMUUDQ.mjs → update-PPCQV3CD.mjs} +6 -6
- package/dist/cli/{workflow-G2UU7WTU.js → workflow-ALKU4ZFD.js} +15 -15
- package/dist/cli/{workflow-BGGKNZTG.mjs → workflow-Z2KYQ2JE.mjs} +5 -5
- package/dist/index.js +6 -6
- package/dist/index.mjs +3 -3
- package/dist/install-integrity.json +76 -76
- package/dist/release.d.mts +5 -1
- package/dist/release.d.ts +5 -1
- package/dist/release.js +2 -2
- package/dist/release.mjs +1 -1
- package/package.json +1 -1
- package/dist/cli/auth-NJ6RE6XQ.js +0 -33
- package/dist/cli/client-UPKWYV32.js +0 -20
- package/dist/cli/git-WPEOAE72.js +0 -23
- package/dist/cli/play-3ECRZYD5.js +0 -153
- package/dist/cli/search-RYLADJUK.js +0 -26
- package/dist/cli/skills-PZQDJJWN.js +0 -28
- package/dist/cli/tools-WYXBAUMT.js +0 -40
- package/dist/cli/update-WM6SOME3.js +0 -28
|
@@ -19,11 +19,11 @@ import {
|
|
|
19
19
|
} from "./chunk-EDWJY6T4.mjs";
|
|
20
20
|
import {
|
|
21
21
|
registerDeprecatedSearchCommand
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-BGXG3GEI.mjs";
|
|
23
23
|
import {
|
|
24
24
|
handleDeploymentGet,
|
|
25
25
|
handleDeploymentsList
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-A5RFERJQ.mjs";
|
|
27
27
|
import {
|
|
28
28
|
pinLocalPlayImports,
|
|
29
29
|
planLocalPlayExecution
|
|
@@ -42,7 +42,7 @@ import {
|
|
|
42
42
|
normalizeRunEventOperationRequest,
|
|
43
43
|
parseLogLevel,
|
|
44
44
|
playInputExampleArgs
|
|
45
|
-
} from "./chunk-
|
|
45
|
+
} from "./chunk-H4IQJRFC.mjs";
|
|
46
46
|
import {
|
|
47
47
|
CSV_DATA_INPUT_KEY,
|
|
48
48
|
buildNamedPlayRunRequest,
|
|
@@ -75,10 +75,10 @@ import {
|
|
|
75
75
|
printJsonError,
|
|
76
76
|
renderCommandEnvelopeText,
|
|
77
77
|
shouldEmitJson
|
|
78
|
-
} from "./chunk-
|
|
78
|
+
} from "./chunk-GGRVNAOH.mjs";
|
|
79
79
|
import {
|
|
80
80
|
fetchWithDeploymentProtection
|
|
81
|
-
} from "./chunk-
|
|
81
|
+
} from "./chunk-LJWOPNJJ.mjs";
|
|
82
82
|
import {
|
|
83
83
|
DeeplineError
|
|
84
84
|
} from "./chunk-NXGCO4JB.mjs";
|
|
@@ -16476,7 +16476,7 @@ Examples:
|
|
|
16476
16476
|
process.exitCode = await ownView();
|
|
16477
16477
|
return;
|
|
16478
16478
|
}
|
|
16479
|
-
const { describeAnything } = await import("./describe-
|
|
16479
|
+
const { describeAnything } = await import("./describe-XMWXEFMS.mjs");
|
|
16480
16480
|
process.exitCode = await describeAnything(
|
|
16481
16481
|
name,
|
|
16482
16482
|
{
|
|
@@ -417,7 +417,8 @@ When:
|
|
|
417
417
|
Input:
|
|
418
418
|
The tool id. Prints readable text by default, also when piped; read that
|
|
419
419
|
form and pass --json only for a program. --pricing-only, --schema-only,
|
|
420
|
-
--examples-only, --getters-only print one section. --
|
|
420
|
+
--examples-only, --getters-only print one section. --byok prints only
|
|
421
|
+
whether you can use your own provider credentials and how to connect them. --out <path> saves the
|
|
421
422
|
output to a file. get is an alias of describe, and deepline describe <id>
|
|
422
423
|
is the same read for a tool, a play, or a monitor type.
|
|
423
424
|
Output (JSON):
|
|
@@ -456,6 +457,11 @@ Output fields:
|
|
|
456
457
|
connected false means the provider needs a connected account or
|
|
457
458
|
key in this workspace; execute will fail with 3.
|
|
458
459
|
credentialStatus detail for connected false.
|
|
460
|
+
byok only with --byok. supported: you can connect your
|
|
461
|
+
own provider credentials; required: the tool runs
|
|
462
|
+
only on them. setup and setupUrl say where to
|
|
463
|
+
connect them. With byok optional and nothing
|
|
464
|
+
connected, Deepline's managed credentials are used.
|
|
459
465
|
extractors / targetGetters JSON paths the CLI uses to turn the raw provider
|
|
460
466
|
response into rows; the same paths appear in tools
|
|
461
467
|
execute output as output_preview.listSourcePath.
|
|
@@ -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 _chunkA6DJC2RCjs = require('./chunk-A6DJC2RC.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 = _chunkA6DJC2RCjs.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,
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import {
|
|
2
2
|
npmSupportsAllowScripts,
|
|
3
3
|
readNpmVersion
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-LNEBKWXM.mjs";
|
|
5
5
|
import {
|
|
6
6
|
resolveShellSpawn,
|
|
7
7
|
runSkillsCommand
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-5DUTNG37.mjs";
|
|
9
9
|
import {
|
|
10
10
|
printCommandEnvelope
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-GGRVNAOH.mjs";
|
|
12
12
|
import {
|
|
13
13
|
autoDetectBaseUrl
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-LJWOPNJJ.mjs";
|
|
15
15
|
|
|
16
16
|
// src/cli/commands/update.ts
|
|
17
17
|
import { spawn, spawnSync } from "child_process";
|
|
@@ -2,7 +2,7 @@ import {
|
|
|
2
2
|
argsWantJson,
|
|
3
3
|
openInBrowser,
|
|
4
4
|
printCommandEnvelope
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-GGRVNAOH.mjs";
|
|
6
6
|
import {
|
|
7
7
|
ACTIVE_ORG_ID_ENV,
|
|
8
8
|
ACTIVE_ORG_NAME_ENV,
|
|
@@ -25,7 +25,7 @@ import {
|
|
|
25
25
|
saveHostEnvValues,
|
|
26
26
|
saveProjectDeeplineEnvValues,
|
|
27
27
|
storedHostApiKey
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-LJWOPNJJ.mjs";
|
|
29
29
|
|
|
30
30
|
// src/cli/commands/auth.ts
|
|
31
31
|
import {
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkSFI7U6CAjs = require('./chunk-SFI7U6CA.js');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
var _chunk7P5AA3SNjs = require('./chunk-7P5AA3SN.js');
|
|
@@ -225,8 +225,8 @@ var BROWSER_OPEN_COOLDOWN_MS = 3e4;
|
|
|
225
225
|
var SAME_URL_BROWSER_OPEN_COOLDOWN_MS = 5 * 6e4;
|
|
226
226
|
var defaultBrowserCommandRunner = childProcess;
|
|
227
227
|
function getAuthedHttpClient() {
|
|
228
|
-
const config =
|
|
229
|
-
return { config, http: new (0,
|
|
228
|
+
const config = _chunkSFI7U6CAjs.resolveConfig.call(void 0, );
|
|
229
|
+
return { config, http: new (0, _chunkSFI7U6CAjs.HttpClient)(config) };
|
|
230
230
|
}
|
|
231
231
|
function stableOsUserId() {
|
|
232
232
|
try {
|
|
@@ -566,7 +566,7 @@ function collectLocalEnvInfo() {
|
|
|
566
566
|
os: `${process.platform} ${process.arch}`,
|
|
567
567
|
node_version: process.version,
|
|
568
568
|
home_dir: homeDir,
|
|
569
|
-
agent_runtime:
|
|
569
|
+
agent_runtime: _chunkSFI7U6CAjs.detectAgentRuntime.call(void 0, )
|
|
570
570
|
};
|
|
571
571
|
const env = process.env;
|
|
572
572
|
const optional = {
|
|
@@ -813,9 +813,9 @@ function markdownTableFromRows(rows, preferredColumns = []) {
|
|
|
813
813
|
}
|
|
814
814
|
function withAgentCommandContext(value) {
|
|
815
815
|
const valueRecord = value !== null && typeof value === "object" && !Array.isArray(value) ? value : null;
|
|
816
|
-
return
|
|
816
|
+
return _chunkSFI7U6CAjs.detectAgentRuntime.call(void 0, ) !== "unknown" && valueRecord && !Object.prototype.hasOwnProperty.call(valueRecord, "command_context") ? {
|
|
817
817
|
...valueRecord,
|
|
818
|
-
command_context:
|
|
818
|
+
command_context: _chunkSFI7U6CAjs.resolveCliCommandContext.call(void 0, )
|
|
819
819
|
} : value;
|
|
820
820
|
}
|
|
821
821
|
function printJson(value, fields) {
|
|
@@ -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.370",
|
|
53
53
|
updateSummary: "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.",
|
|
54
54
|
packageCapabilities: {
|
|
55
55
|
updatePreferences: 1
|
|
@@ -93,6 +93,11 @@ var SDK_RELEASE = {
|
|
|
93
93
|
introducedIn: "0.3.91",
|
|
94
94
|
reason: "deepline search was added in SDK CLI 0.3.91 as the one search across tools, monitors, and plays. On an older version run deepline tools search or deepline plays search, or update."
|
|
95
95
|
},
|
|
96
|
+
{
|
|
97
|
+
command: "describe",
|
|
98
|
+
introducedIn: "0.3.312",
|
|
99
|
+
reason: "deepline describe was added in SDK CLI 0.3.312 as the one describe for tools, monitor types, and plays. On an older version run deepline tools describe or deepline plays describe, or update."
|
|
100
|
+
},
|
|
96
101
|
{
|
|
97
102
|
command: "notifications",
|
|
98
103
|
introducedIn: "0.2.40",
|
|
@@ -1,17 +1,17 @@
|
|
|
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 _chunkDFJDVQMHjs = require('./chunk-DFJDVQMH.js');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
var
|
|
8
|
+
var _chunkA6DJC2RCjs = require('./chunk-A6DJC2RC.js');
|
|
9
9
|
|
|
10
10
|
|
|
11
|
-
var
|
|
11
|
+
var _chunkMKFHZDBOjs = require('./chunk-MKFHZDBO.js');
|
|
12
12
|
|
|
13
13
|
|
|
14
|
-
var
|
|
14
|
+
var _chunkSFI7U6CAjs = require('./chunk-SFI7U6CA.js');
|
|
15
15
|
|
|
16
16
|
// src/cli/commands/update.ts
|
|
17
17
|
var _child_process = require('child_process');
|
|
@@ -489,7 +489,7 @@ function normalizedNpmPrefix(value) {
|
|
|
489
489
|
}
|
|
490
490
|
function resolveNpmGlobalPrefix(env) {
|
|
491
491
|
try {
|
|
492
|
-
const plan =
|
|
492
|
+
const plan = _chunkA6DJC2RCjs.resolveShellSpawn.call(void 0, "npm", ["prefix", "-g"], process.platform, env);
|
|
493
493
|
const result = _child_process.spawnSync.call(void 0, plan.command, plan.args, {
|
|
494
494
|
encoding: "utf8",
|
|
495
495
|
env,
|
|
@@ -545,8 +545,8 @@ function resolveUpdatePlan(options = {}) {
|
|
|
545
545
|
const npmGlobalPrefix = options.npmGlobalPrefix !== void 0 ? options.npmGlobalPrefix : resolveNpmGlobalPrefix(env);
|
|
546
546
|
const hasVerifiedNpmOwnership = inferredInstallPrefix !== null && normalizedNpmPrefix(inferredInstallPrefix) === normalizedNpmPrefix(npmGlobalPrefix);
|
|
547
547
|
const installPrefix = options.requireVerifiedNpmOwnership ? hasVerifiedNpmOwnership ? inferredInstallPrefix : null : inferredInstallPrefix;
|
|
548
|
-
const npmVersion = options.npmVersion === void 0 ?
|
|
549
|
-
const npmGlobalInstallFlags =
|
|
548
|
+
const npmVersion = options.npmVersion === void 0 ? _chunkDFJDVQMHjs.readNpmVersion.call(void 0, env) : options.npmVersion;
|
|
549
|
+
const npmGlobalInstallFlags = _chunkDFJDVQMHjs.npmSupportsAllowScripts.call(void 0, npmVersion) ? [...NPM_SDK_INSTALL_COMMON_FLAGS, "--allow-scripts=esbuild"] : NPM_SDK_INSTALL_COMMON_FLAGS;
|
|
550
550
|
const args = installPrefix ? [
|
|
551
551
|
"install",
|
|
552
552
|
"-g",
|
|
@@ -556,7 +556,7 @@ function resolveUpdatePlan(options = {}) {
|
|
|
556
556
|
packageSpec
|
|
557
557
|
] : ["install", "-g", ...npmGlobalInstallFlags, packageSpec];
|
|
558
558
|
const fallbackRegistryUrl = options.npmFallbackRegistryUrl !== void 0 ? options.npmFallbackRegistryUrl : publicNpmFallbackRegistryUrl(
|
|
559
|
-
_optionalChain([env, 'access', _18 => _18.DEEPLINE_HOST_URL, 'optionalAccess', _19 => _19.trim, 'call', _20 => _20()]) ||
|
|
559
|
+
_optionalChain([env, 'access', _18 => _18.DEEPLINE_HOST_URL, 'optionalAccess', _19 => _19.trim, 'call', _20 => _20()]) || _chunkSFI7U6CAjs.autoDetectBaseUrl.call(void 0, )
|
|
560
560
|
);
|
|
561
561
|
return {
|
|
562
562
|
kind: "npm-global",
|
|
@@ -703,7 +703,7 @@ function sidecarInstallFailure(versionDir) {
|
|
|
703
703
|
function runCommand(command, args, env = process.env) {
|
|
704
704
|
return new Promise((resolveResult) => {
|
|
705
705
|
let output = "";
|
|
706
|
-
const plan =
|
|
706
|
+
const plan = _chunkA6DJC2RCjs.resolveShellSpawn.call(void 0, command, args, process.platform, env);
|
|
707
707
|
const child = _child_process.spawn.call(void 0, plan.command, plan.args, {
|
|
708
708
|
stdio: ["inherit", "pipe", "pipe"],
|
|
709
709
|
shell: plan.shell,
|
|
@@ -1079,14 +1079,14 @@ async function publishedVersionSupportsPin(version, fallbackRegistryUrl) {
|
|
|
1079
1079
|
throw _nullishCoalesce(lastError, () => ( new Error("No npm registry was available")));
|
|
1080
1080
|
}
|
|
1081
1081
|
async function runUpdateCommand(options, dependencies = {}) {
|
|
1082
|
-
const detectBaseUrl = _nullishCoalesce(dependencies.detectBaseUrl, () => (
|
|
1082
|
+
const detectBaseUrl = _nullishCoalesce(dependencies.detectBaseUrl, () => ( _chunkSFI7U6CAjs.autoDetectBaseUrl));
|
|
1083
1083
|
const resolvePlan = _nullishCoalesce(dependencies.resolvePlan, () => ( resolveUpdatePlan));
|
|
1084
1084
|
const runPlan = _nullishCoalesce(dependencies.runPlan, () => ( runUpdatePlan));
|
|
1085
1085
|
const syncSkills = _nullishCoalesce(dependencies.syncSkillsIfNeeded, () => ( (async () => {
|
|
1086
1086
|
const originalWrite = process.stdout.write.bind(process.stdout);
|
|
1087
1087
|
process.stdout.write = (() => true);
|
|
1088
1088
|
try {
|
|
1089
|
-
const exitCode = await
|
|
1089
|
+
const exitCode = await _chunkA6DJC2RCjs.runSkillsCommand.call(void 0, { json: true });
|
|
1090
1090
|
if (exitCode !== 0) {
|
|
1091
1091
|
throw new Error(
|
|
1092
1092
|
`Deepline skills update failed with exit ${exitCode}.`
|
|
@@ -1157,11 +1157,11 @@ async function runUpdateCommand(options, dependencies = {}) {
|
|
|
1157
1157
|
]
|
|
1158
1158
|
};
|
|
1159
1159
|
if (options.json && !options.executeWithJson) {
|
|
1160
|
-
|
|
1160
|
+
_chunkMKFHZDBOjs.printCommandEnvelope.call(void 0, { ...plan, render }, { json: true });
|
|
1161
1161
|
return 0;
|
|
1162
1162
|
}
|
|
1163
1163
|
if (options.printCommand) {
|
|
1164
|
-
|
|
1164
|
+
_chunkMKFHZDBOjs.printCommandEnvelope.call(void 0,
|
|
1165
1165
|
{
|
|
1166
1166
|
...plan,
|
|
1167
1167
|
render: {
|
|
@@ -1174,7 +1174,7 @@ async function runUpdateCommand(options, dependencies = {}) {
|
|
|
1174
1174
|
return 0;
|
|
1175
1175
|
}
|
|
1176
1176
|
if (plan.kind === "source" || plan.kind === "homebrew") {
|
|
1177
|
-
|
|
1177
|
+
_chunkMKFHZDBOjs.printCommandEnvelope.call(void 0, { ...plan, render }, { json: false });
|
|
1178
1178
|
return 0;
|
|
1179
1179
|
}
|
|
1180
1180
|
stderr.write(`Updating Deepline SDK/CLI with: ${plan.manualCommand}
|
|
@@ -1204,7 +1204,7 @@ To retry with full installer output, run: deepline skills --json
|
|
|
1204
1204
|
);
|
|
1205
1205
|
}
|
|
1206
1206
|
if (options.executeWithJson && options.json) {
|
|
1207
|
-
|
|
1207
|
+
_chunkMKFHZDBOjs.printCommandEnvelope.call(void 0,
|
|
1208
1208
|
{
|
|
1209
1209
|
ok: true,
|
|
1210
1210
|
pinnedVersion
|