deepline 0.3.414 → 0.3.415
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/cli/{auth-5QG4TOA6.mjs → auth-3R7XJOU4.mjs} +4 -4
- package/dist/cli/auth-BPP3XUUK.js +40 -0
- package/dist/cli/{billing-W7YO6VXH.js → billing-63YR65DL.js} +73 -73
- package/dist/cli/{billing-JV3HCOMG.mjs → billing-CEQACJBE.mjs} +4 -4
- package/dist/cli/{chunk-BXWLG55T.js → chunk-44SXWCI5.js} +56 -52
- package/dist/cli/{chunk-UGQLBLSZ.mjs → chunk-5L3NL6HV.mjs} +3 -3
- package/dist/cli/{chunk-PK55NFM5.js → chunk-5MP7LBHF.js} +2 -2
- package/dist/cli/{chunk-VOTKMPYY.mjs → chunk-5RZZHZEJ.mjs} +7 -3
- package/dist/cli/{chunk-QWLGBYTB.mjs → chunk-6WQGIJSW.mjs} +1 -1
- package/dist/cli/{chunk-XPOIHVTN.js → chunk-BBQTQRDC.js} +6 -6
- package/dist/cli/{chunk-URBOSCO6.js → chunk-CKP2OAKZ.js} +20 -20
- package/dist/cli/{chunk-EFD5CW26.mjs → chunk-CQ5FHAX2.mjs} +1 -1
- package/dist/cli/{chunk-QVBVSC3M.js → chunk-D34G5I2G.js} +8 -8
- package/dist/cli/{chunk-JR4FDOWR.js → chunk-DI63MOEP.js} +8 -8
- package/dist/cli/{chunk-RYWFCSGX.mjs → chunk-EMWMLURG.mjs} +1 -1
- package/dist/cli/{chunk-M2V34XOG.mjs → chunk-EV6OLL4W.mjs} +5 -5
- package/dist/cli/{chunk-ODA4AZM3.js → chunk-F66SBZUA.js} +79 -79
- package/dist/cli/{chunk-ZEQ3N6SI.js → chunk-H3ZWEHLG.js} +4 -4
- package/dist/cli/{chunk-EWDWMTTD.js → chunk-IOULR7YA.js} +1 -1
- package/dist/cli/{chunk-LI2LTEO4.mjs → chunk-JM3BQNP2.mjs} +2 -2
- package/dist/cli/{chunk-OEHMER3F.js → chunk-KOQGG5WZ.js} +16 -16
- package/dist/cli/{chunk-OKKLH4QY.mjs → chunk-LEPECCA5.mjs} +2 -2
- package/dist/cli/{chunk-RHOY4RXI.js → chunk-M2I4TC2C.js} +26 -26
- package/dist/cli/{chunk-4CPRZPRQ.js → chunk-N4SYPFH4.js} +6 -6
- package/dist/cli/{chunk-MH6H63HF.js → chunk-OJ4N5XMI.js} +35 -35
- package/dist/cli/{chunk-3PBK7PHE.mjs → chunk-OJGQ7JE3.mjs} +1 -1
- package/dist/cli/{chunk-S6ZBXS7N.mjs → chunk-Q44253PX.mjs} +1 -1
- package/dist/cli/{chunk-5S4QRLRC.mjs → chunk-TOUMT7XB.mjs} +2 -2
- package/dist/cli/{chunk-H5GTXEGI.mjs → chunk-TQU3G7NC.mjs} +4 -4
- package/dist/cli/{chunk-L3DLOICI.mjs → chunk-U4RSPPD7.mjs} +3 -3
- package/dist/cli/{chunk-VJRAFJ6H.js → chunk-UCE2CYXP.js} +2 -2
- package/dist/cli/{chunk-NOGPMTF5.mjs → chunk-UK22LQKF.mjs} +8 -8
- package/dist/cli/{chunk-J2GD6PDT.js → chunk-UOGTM7NF.js} +50 -50
- package/dist/cli/{chunk-N3EF5WQV.js → chunk-WAPSY6F3.js} +10 -10
- package/dist/cli/{chunk-HSYVA2JK.mjs → chunk-WQXQDVHQ.mjs} +2 -2
- package/dist/cli/{chunk-MALNVMG6.mjs → chunk-Y2CT65YJ.mjs} +1 -1
- package/dist/cli/{csv-HH5HBH2J.mjs → csv-2KFJJLDT.mjs} +3 -3
- package/dist/cli/{csv-EO2L4TEE.js → csv-PKQX3TSA.js} +12 -12
- package/dist/cli/{db-Y7CREGF3.mjs → db-N26UHFY7.mjs} +4 -4
- package/dist/cli/{db-MUXVX2BC.js → db-PLBBJZSD.js} +25 -25
- package/dist/cli/{describe-4P76LT4U.mjs → describe-7RR4IO2K.mjs} +12 -12
- package/dist/cli/{describe-66HDJGQI.js → describe-QGZ33RCB.js} +16 -16
- package/dist/cli/{executions-HKGTLNX5.js → executions-A7JY32A5.js} +6 -6
- package/dist/cli/{executions-SOEK54UR.mjs → executions-XUFGT3SW.mjs} +4 -4
- package/dist/cli/{feedback-TLABM3DG.js → feedback-GU7HYQPX.js} +7 -7
- package/dist/cli/{feedback-NX64K5CR.mjs → feedback-PIDESS5I.mjs} +3 -3
- package/dist/cli/git-EGJIIULI.js +24 -0
- package/dist/cli/{git-Y25E2ZJC.mjs → git-ST2L7VCM.mjs} +4 -4
- package/dist/cli/index.js +131 -131
- package/dist/cli/index.mjs +36 -36
- package/dist/cli/{legacy-noops-EXFCXCRK.js → legacy-noops-Q4D3TT7J.js} +7 -7
- package/dist/cli/{legacy-noops-RRMXZZ4S.mjs → legacy-noops-WLZ3HD5L.mjs} +4 -4
- package/dist/cli/{monitors-CCKCBND7.mjs → monitors-4DRP7ABU.mjs} +4 -4
- package/dist/cli/{monitors-FB75AVWA.js → monitors-DQBYHBTI.js} +84 -84
- package/dist/cli/{org-SQQG44XI.js → org-JDFN2BMD.js} +64 -64
- package/dist/cli/{org-KDPXHQPC.mjs → org-XMP5FH4W.mjs} +4 -4
- package/dist/cli/{play-CSKSDDQS.js → play-AVX67TTR.js} +283 -283
- package/dist/cli/{play-HPQEDJEP.mjs → play-LSEV7CLQ.mjs} +10 -10
- package/dist/cli/{providers-TFVCFP7J.mjs → providers-3B7KUXCF.mjs} +4 -4
- package/dist/cli/{providers-7FDWGH3C.js → providers-QOUY73G2.js} +7 -7
- package/dist/cli/{quickstart-JQRTIIIZ.js → quickstart-BVKDXXBN.js} +5 -5
- package/dist/cli/{quickstart-2J67PING.mjs → quickstart-KFITIZGE.mjs} +3 -3
- package/dist/cli/{search-7ZA7UIVM.mjs → search-MXMDK6BE.mjs} +5 -5
- package/dist/cli/search-UWPN4TLM.js +30 -0
- package/dist/cli/{secrets-ZQY5GO4T.mjs → secrets-IX6ZHGMU.mjs} +4 -4
- package/dist/cli/{secrets-J676GB6Q.js → secrets-PHV2PC55.js} +13 -13
- package/dist/cli/{sessions-AVICKLMK.js → sessions-2YAIVSQY.js} +5 -5
- package/dist/cli/{sessions-OP2352DC.mjs → sessions-NHNLYXBA.mjs} +4 -4
- package/dist/cli/{settings-EWKNDCGF.js → settings-APUXXPOD.js} +75 -75
- package/dist/cli/{settings-QNILCEH6.mjs → settings-SAHN4OJN.mjs} +8 -8
- package/dist/cli/{setup-4NDX6UAI.mjs → setup-QOZSIUEX.mjs} +7 -7
- package/dist/cli/{setup-IHILOCOK.js → setup-URQ7BG5P.js} +42 -42
- package/dist/cli/{skills-H73NL3VP.mjs → skills-FLNMB5IF.mjs} +5 -5
- package/dist/cli/skills-ODG4WSUP.js +29 -0
- package/dist/cli/tools-R43QU6JL.js +44 -0
- package/dist/cli/{tools-ZFPBY4Q2.mjs → tools-USDETSBP.mjs} +12 -12
- package/dist/cli/update-AGI5HJUV.js +31 -0
- package/dist/cli/{update-XULEC376.mjs → update-ZPY45JN4.mjs} +7 -7
- package/dist/cli/{workflow-OD5XZHCL.mjs → workflow-GSEM32G7.mjs} +5 -5
- package/dist/cli/{workflow-JX4WSBYH.js → workflow-KYWMP2JG.js} +15 -15
- package/dist/index.js +6 -6
- package/dist/index.mjs +3 -3
- package/dist/install-integrity.json +78 -78
- 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/package.json +1 -1
- package/dist/cli/auth-5A3Z4LNL.js +0 -40
- package/dist/cli/git-K55QWG6X.js +0 -24
- package/dist/cli/search-O3PYDXOZ.js +0 -30
- package/dist/cli/skills-TDL7SEFT.js +0 -29
- package/dist/cli/tools-GPFPJWWA.js +0 -44
- package/dist/cli/update-VR6EWUUT.js +0 -31
|
@@ -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; } var _class;
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkN4SYPFH4js = require('./chunk-N4SYPFH4.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
@@ -17,13 +17,13 @@ var _chunk4CPRZPRQjs = require('./chunk-4CPRZPRQ.js');
|
|
|
17
17
|
|
|
18
18
|
|
|
19
19
|
|
|
20
|
-
var
|
|
20
|
+
var _chunkH3ZWEHLGjs = require('./chunk-H3ZWEHLG.js');
|
|
21
21
|
|
|
22
22
|
|
|
23
23
|
var _chunkPPDBRJRWjs = require('./chunk-PPDBRJRW.js');
|
|
24
24
|
|
|
25
25
|
|
|
26
|
-
var
|
|
26
|
+
var _chunkIOULR7YAjs = require('./chunk-IOULR7YA.js');
|
|
27
27
|
|
|
28
28
|
// src/compat.ts
|
|
29
29
|
var _crypto = require('crypto');
|
|
@@ -58,7 +58,7 @@ function shouldSkipCompatibilityCheck() {
|
|
|
58
58
|
return value === "1" || value === "true" || value === "yes";
|
|
59
59
|
}
|
|
60
60
|
function sdkCompatibilityCachePath(baseUrl, homeDir = _optionalChain([process, 'access', _7 => _7.env, 'access', _8 => _8.HOME, 'optionalAccess', _9 => _9.trim, 'call', _10 => _10()]) || _os.homedir.call(void 0, )) {
|
|
61
|
-
return _path.join.call(void 0,
|
|
61
|
+
return _path.join.call(void 0, _chunkH3ZWEHLGjs.sdkCliStateDirPath.call(void 0, baseUrl, homeDir), "compat-cache.json");
|
|
62
62
|
}
|
|
63
63
|
function legacySdkCompatibilityCachePath(homeDir = _optionalChain([process, 'access', _11 => _11.env, 'access', _12 => _12.HOME, 'optionalAccess', _13 => _13.trim, 'call', _14 => _14()]) || _os.homedir.call(void 0, )) {
|
|
64
64
|
return _path.join.call(void 0, homeDir, ".cache", "deepline", "sdk-compat-cache.json");
|
|
@@ -66,9 +66,9 @@ function legacySdkCompatibilityCachePath(homeDir = _optionalChain([process, 'acc
|
|
|
66
66
|
function compatibilityCacheKey(baseUrl, command, skillsVersion) {
|
|
67
67
|
return JSON.stringify({
|
|
68
68
|
baseUrl: baseUrl.replace(/\/$/, ""),
|
|
69
|
-
version:
|
|
70
|
-
apiContract:
|
|
71
|
-
apiMajor:
|
|
69
|
+
version: _chunkH3ZWEHLGjs.SDK_VERSION,
|
|
70
|
+
apiContract: _chunkH3ZWEHLGjs.SDK_API_CONTRACT,
|
|
71
|
+
apiMajor: _chunkH3ZWEHLGjs.SDK_API_MAJOR,
|
|
72
72
|
command: _optionalChain([command, 'optionalAccess', _15 => _15.trim, 'call', _16 => _16()]) || null,
|
|
73
73
|
skillsVersion: _nullishCoalesce(skillsVersion, () => ( null))
|
|
74
74
|
});
|
|
@@ -76,8 +76,8 @@ function compatibilityCacheKey(baseUrl, command, skillsVersion) {
|
|
|
76
76
|
function legacyCompatibilityCacheKey(baseUrl, command) {
|
|
77
77
|
return JSON.stringify({
|
|
78
78
|
baseUrl: baseUrl.replace(/\/$/, ""),
|
|
79
|
-
version:
|
|
80
|
-
apiContract:
|
|
79
|
+
version: _chunkH3ZWEHLGjs.SDK_VERSION,
|
|
80
|
+
apiContract: _chunkH3ZWEHLGjs.SDK_API_CONTRACT,
|
|
81
81
|
command: _optionalChain([command, 'optionalAccess', _17 => _17.trim, 'call', _18 => _18()]) || null
|
|
82
82
|
});
|
|
83
83
|
}
|
|
@@ -102,7 +102,7 @@ function isSavedWithin(savedAt, windowMs, now) {
|
|
|
102
102
|
}
|
|
103
103
|
var UPDATE_ADVISORY_INTERVAL_MS = 24 * 60 * 60 * 1e3;
|
|
104
104
|
function claimUpdateAdvisory(baseUrl, now = Date.now()) {
|
|
105
|
-
const path = _path.join.call(void 0,
|
|
105
|
+
const path = _path.join.call(void 0, _chunkH3ZWEHLGjs.sdkCliStateDirPath.call(void 0, baseUrl), "update-advisory.json");
|
|
106
106
|
try {
|
|
107
107
|
const { shownAt } = JSON.parse(_fs.readFileSync.call(void 0, path, "utf8"));
|
|
108
108
|
if (isSavedWithin(shownAt, UPDATE_ADVISORY_INTERVAL_MS, now)) return false;
|
|
@@ -186,7 +186,7 @@ async function checkSdkCompatibility(baseUrl, options = {}) {
|
|
|
186
186
|
);
|
|
187
187
|
try {
|
|
188
188
|
const url = new URL("/api/v2/sdk/compat", baseUrl);
|
|
189
|
-
url.searchParams.set("version",
|
|
189
|
+
url.searchParams.set("version", _chunkH3ZWEHLGjs.SDK_VERSION);
|
|
190
190
|
if (_optionalChain([options, 'access', _27 => _27.command, 'optionalAccess', _28 => _28.trim, 'call', _29 => _29()])) {
|
|
191
191
|
url.searchParams.set("command", options.command.trim());
|
|
192
192
|
}
|
|
@@ -194,7 +194,7 @@ async function checkSdkCompatibility(baseUrl, options = {}) {
|
|
|
194
194
|
url.searchParams.set("skills_version", _nullishCoalesce(options.skillsVersion, () => ( "")));
|
|
195
195
|
url.searchParams.set(
|
|
196
196
|
"skills_cli_capability",
|
|
197
|
-
String(
|
|
197
|
+
String(_chunkIOULR7YAjs.SDK_RELEASE.packageCapabilities.skillsGuidance)
|
|
198
198
|
);
|
|
199
199
|
}
|
|
200
200
|
if (options.catalog) {
|
|
@@ -206,14 +206,14 @@ async function checkSdkCompatibility(baseUrl, options = {}) {
|
|
|
206
206
|
const response = await fetch(url, {
|
|
207
207
|
method: "GET",
|
|
208
208
|
headers: {
|
|
209
|
-
...
|
|
210
|
-
"User-Agent": `deepline-ts-sdk/${
|
|
211
|
-
"X-Deepline-SDK-Version":
|
|
212
|
-
"X-Deepline-API-Major": String(
|
|
213
|
-
"X-Deepline-API-Contract":
|
|
209
|
+
..._chunkH3ZWEHLGjs.deploymentProtectionHeaders.call(void 0, ),
|
|
210
|
+
"User-Agent": `deepline-ts-sdk/${_chunkH3ZWEHLGjs.SDK_VERSION}`,
|
|
211
|
+
"X-Deepline-SDK-Version": _chunkH3ZWEHLGjs.SDK_VERSION,
|
|
212
|
+
"X-Deepline-API-Major": String(_chunkH3ZWEHLGjs.SDK_API_MAJOR),
|
|
213
|
+
"X-Deepline-API-Contract": _chunkH3ZWEHLGjs.SDK_API_CONTRACT,
|
|
214
214
|
"X-Deepline-CLI-Update-Preferences": "1",
|
|
215
215
|
"X-Deepline-CLI-Auto-Update-Capability": SDK_CLI_AUTO_UPDATE_CAPABILITY,
|
|
216
|
-
...options.catalog ? { Authorization: `Bearer ${
|
|
216
|
+
...options.catalog ? { Authorization: `Bearer ${_chunkH3ZWEHLGjs.resolveApiKeyForBaseUrl.call(void 0, baseUrl)}` } : {},
|
|
217
217
|
..._optionalChain([options, 'access', _30 => _30.catalog, 'optionalAccess', _31 => _31.cliInvocationId]) ? { "X-Deepline-CLI-Invocation-ID": options.catalog.cliInvocationId } : {}
|
|
218
218
|
},
|
|
219
219
|
signal: controller.signal
|
|
@@ -340,6 +340,10 @@ var DEFAULT_V1_SKILL_NAMES = [
|
|
|
340
340
|
"deepline-research",
|
|
341
341
|
"deepline-scoring",
|
|
342
342
|
"find-qualified-titles",
|
|
343
|
+
// Retired recipe shortcut: lookup guidance is now one rule in `deepline-gtm`.
|
|
344
|
+
// Kept as a stub because installed CLIs list it and refuse to sync any skill
|
|
345
|
+
// when the published index lacks a listed name. Move to
|
|
346
|
+
// LEGACY_SKILL_NAMES_TO_REMOVE once those CLIs are out of the field.
|
|
343
347
|
"linkedin-url-lookup",
|
|
344
348
|
// Deprecated alias for `deepline-scoring`, kept installable so saved prompts
|
|
345
349
|
// and scripts using `/niche-signal-discovery` keep routing to the renamed
|
|
@@ -370,7 +374,7 @@ function skillsSourceUrl(baseUrl) {
|
|
|
370
374
|
function buildSkillsAddArgs(baseUrl, skillName, options = {}) {
|
|
371
375
|
const skillNames = Array.isArray(skillName) ? skillName : [skillName];
|
|
372
376
|
const [firstSkillName, ...extraSkillNames] = skillNames;
|
|
373
|
-
const agents = _nullishCoalesce(options.agents, () => (
|
|
377
|
+
const agents = _nullishCoalesce(options.agents, () => ( _chunkH3ZWEHLGjs.DEFAULT_SKILL_AGENTS));
|
|
374
378
|
const values = {
|
|
375
379
|
skills_index_url: skillsIndexUrl(baseUrl),
|
|
376
380
|
skills_source_url: skillsSourceUrl(baseUrl),
|
|
@@ -409,7 +413,7 @@ var CliProgress = (_class = class {
|
|
|
409
413
|
|
|
410
414
|
// --json output is one JSON document: progress never renders under it.
|
|
411
415
|
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);
|
|
412
|
-
this.enabled = enabled && !
|
|
416
|
+
this.enabled = enabled && !_chunkN4SYPFH4js.isJsonOutputMode.call(void 0, );
|
|
413
417
|
}
|
|
414
418
|
phase(message) {
|
|
415
419
|
if (!this.enabled || this.lastMessage === message) {
|
|
@@ -434,7 +438,7 @@ var CliProgress = (_class = class {
|
|
|
434
438
|
this.settle("\u2717");
|
|
435
439
|
}
|
|
436
440
|
writeLogLine(line) {
|
|
437
|
-
if (
|
|
441
|
+
if (_chunkN4SYPFH4js.isJsonOutputMode.call(void 0, )) return;
|
|
438
442
|
if (!this.enabled) {
|
|
439
443
|
process.stderr.write(`${line}
|
|
440
444
|
`);
|
|
@@ -736,7 +740,7 @@ function buildEnvironmentContext() {
|
|
|
736
740
|
node_version: process.version,
|
|
737
741
|
runtime: "Node.js",
|
|
738
742
|
hostname: _os.hostname.call(void 0, ),
|
|
739
|
-
agent_runtime:
|
|
743
|
+
agent_runtime: _chunkH3ZWEHLGjs.detectAgentRuntime.call(void 0, )
|
|
740
744
|
};
|
|
741
745
|
for (const key of ["CLAUDE_CODE_REMOTE", "DEEPLINE_PLUGIN_MODE"]) {
|
|
742
746
|
const normalized = _optionalChain([process, 'access', _60 => _60.env, 'access', _61 => _61[key], 'optionalAccess', _62 => _62.trim, 'call', _63 => _63()]);
|
|
@@ -758,15 +762,15 @@ function buildEnvironmentContext() {
|
|
|
758
762
|
}
|
|
759
763
|
function failureReportHeaders(apiKey) {
|
|
760
764
|
return {
|
|
761
|
-
...
|
|
765
|
+
..._chunkH3ZWEHLGjs.deploymentProtectionHeaders.call(void 0, ),
|
|
762
766
|
Authorization: `Bearer ${apiKey}`,
|
|
763
767
|
"Content-Type": "application/json",
|
|
764
|
-
"User-Agent": `deepline-ts-sdk/${
|
|
768
|
+
"User-Agent": `deepline-ts-sdk/${_chunkH3ZWEHLGjs.SDK_VERSION}`,
|
|
765
769
|
"X-Deepline-Client-Family": "sdk",
|
|
766
770
|
"X-Deepline-CLI-Family": "sdk",
|
|
767
|
-
"X-Deepline-Agent-Runtime":
|
|
768
|
-
"X-Deepline-CLI-Version":
|
|
769
|
-
"X-Deepline-SDK-Version":
|
|
771
|
+
"X-Deepline-Agent-Runtime": _chunkH3ZWEHLGjs.detectAgentRuntime.call(void 0, ),
|
|
772
|
+
"X-Deepline-CLI-Version": _chunkH3ZWEHLGjs.SDK_VERSION,
|
|
773
|
+
"X-Deepline-SDK-Version": _chunkH3ZWEHLGjs.SDK_VERSION
|
|
770
774
|
};
|
|
771
775
|
}
|
|
772
776
|
async function postFailureReport(input) {
|
|
@@ -794,7 +798,7 @@ async function maybeReportAutomaticSkillsSyncFailure(input) {
|
|
|
794
798
|
if (isFailureReportingDisabled()) return false;
|
|
795
799
|
let apiKey = "";
|
|
796
800
|
try {
|
|
797
|
-
apiKey =
|
|
801
|
+
apiKey = _chunkH3ZWEHLGjs.resolveApiKeyForBaseUrl.call(void 0, input.baseUrl);
|
|
798
802
|
} catch (e9) {
|
|
799
803
|
return false;
|
|
800
804
|
}
|
|
@@ -821,7 +825,7 @@ async function maybeReportAutomaticSkillsSyncFailure(input) {
|
|
|
821
825
|
failure_code: failureCode2,
|
|
822
826
|
failure_stage: failureStage,
|
|
823
827
|
error_body: "Automatic Deepline skills installation failed.",
|
|
824
|
-
cli_version:
|
|
828
|
+
cli_version: _chunkH3ZWEHLGjs.SDK_VERSION,
|
|
825
829
|
context: {
|
|
826
830
|
environment: buildEnvironmentContext(),
|
|
827
831
|
skills_sync: {
|
|
@@ -941,7 +945,7 @@ function buildFailureReport(input) {
|
|
|
941
945
|
failure_kind: failureKind,
|
|
942
946
|
failure_code: code,
|
|
943
947
|
failure_stage: input.error === void 0 ? "command_exit" : "cli_main",
|
|
944
|
-
cli_version:
|
|
948
|
+
cli_version: _chunkH3ZWEHLGjs.SDK_VERSION,
|
|
945
949
|
context: {
|
|
946
950
|
base_url: redactFailureText(input.baseUrl, 400),
|
|
947
951
|
command_summary: sanitizeCommand(input.argv),
|
|
@@ -961,8 +965,8 @@ async function maybeReportSdkCliFailure(input) {
|
|
|
961
965
|
if (isServerLoggedPlayRunStartFailure(input)) return false;
|
|
962
966
|
const exitCode = resolvedExitCode(input);
|
|
963
967
|
if (!shouldReport({ exitCode, error: input.error })) return false;
|
|
964
|
-
const baseUrl =
|
|
965
|
-
const apiKey =
|
|
968
|
+
const baseUrl = _chunkH3ZWEHLGjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
|
|
969
|
+
const apiKey = _chunkH3ZWEHLGjs.resolveApiKeyForBaseUrl.call(void 0, baseUrl);
|
|
966
970
|
if (!apiKey) return false;
|
|
967
971
|
return postFailureReport({
|
|
968
972
|
baseUrl,
|
|
@@ -999,25 +1003,25 @@ var CHECK_TIMEOUT_MS2 = 3e3;
|
|
|
999
1003
|
var INSTALLER_PROBE_TIMEOUT_MS = 1e3;
|
|
1000
1004
|
var PUBLISHED_VERIFICATION_RETRY_MS = 5 * 6e4;
|
|
1001
1005
|
function shouldSkipSkillsSync() {
|
|
1002
|
-
if (
|
|
1006
|
+
if (_chunkH3ZWEHLGjs.detectAgentRuntime.call(void 0, ) === "claude_cowork" || isCiEnvironment()) {
|
|
1003
1007
|
return true;
|
|
1004
1008
|
}
|
|
1005
1009
|
const value = _optionalChain([process, 'access', _84 => _84.env, 'access', _85 => _85.DEEPLINE_SKIP_SKILLS_SYNC, 'optionalAccess', _86 => _86.trim, 'call', _87 => _87(), 'access', _88 => _88.toLowerCase, 'call', _89 => _89()]);
|
|
1006
1010
|
return value === "1" || value === "true" || value === "yes" || value === "on";
|
|
1007
1011
|
}
|
|
1008
1012
|
function unavailableSkillsNoticePath(baseUrl) {
|
|
1009
|
-
return _path.join.call(void 0,
|
|
1013
|
+
return _path.join.call(void 0, _chunkH3ZWEHLGjs.sdkCliStateDirPath.call(void 0, baseUrl), "skills-sync-unavailable-version");
|
|
1010
1014
|
}
|
|
1011
1015
|
var SKILLS_SYNC_IN_PROGRESS_TTL_MS = 10 * 60 * 1e3;
|
|
1012
1016
|
var SKILLS_SYNC_IN_PROGRESS_PID_CAP_MS = 6 * 60 * 60 * 1e3;
|
|
1013
|
-
var agentLeaseSegment =
|
|
1017
|
+
var agentLeaseSegment = _chunkH3ZWEHLGjs.skillsAgentPathSegment;
|
|
1014
1018
|
function sortedLeaseAgents(agents) {
|
|
1015
|
-
const expanded = agents.includes("*") ? [...agents, ...
|
|
1019
|
+
const expanded = agents.includes("*") ? [...agents, ..._chunkH3ZWEHLGjs.KNOWN_SKILL_AGENTS] : agents;
|
|
1016
1020
|
return [...new Set(expanded)].sort((a, b) => a.localeCompare(b));
|
|
1017
1021
|
}
|
|
1018
1022
|
function inProgressSkillsSyncPath(baseUrl, agent) {
|
|
1019
1023
|
return _path.join.call(void 0,
|
|
1020
|
-
|
|
1024
|
+
_chunkH3ZWEHLGjs.sdkCliStateDirPath.call(void 0, baseUrl),
|
|
1021
1025
|
`skills-sync-in-progress-${agentLeaseSegment(agent)}`
|
|
1022
1026
|
);
|
|
1023
1027
|
}
|
|
@@ -1176,7 +1180,7 @@ var SkillsStateUnavailableError = class extends Error {
|
|
|
1176
1180
|
constructor(baseUrl, error) {
|
|
1177
1181
|
const detail = error instanceof Error ? error.message : String(error);
|
|
1178
1182
|
super(
|
|
1179
|
-
`Could not save skills state in ${
|
|
1183
|
+
`Could not save skills state in ${_chunkH3ZWEHLGjs.sdkCliStateDirPath.call(void 0, baseUrl)}: ${detail}`
|
|
1180
1184
|
);
|
|
1181
1185
|
this.name = "SkillsStateUnavailableError";
|
|
1182
1186
|
}
|
|
@@ -1261,7 +1265,7 @@ function skillsInstallLeasePath(baseUrl, agents) {
|
|
|
1261
1265
|
}
|
|
1262
1266
|
function deferredSkillsNoticePath(baseUrl, agents) {
|
|
1263
1267
|
return _path.join.call(void 0,
|
|
1264
|
-
|
|
1268
|
+
_chunkH3ZWEHLGjs.sdkCliStateDirPath.call(void 0, baseUrl),
|
|
1265
1269
|
`skills-sync-notice-${sortedLeaseAgents(agents).map(agentLeaseSegment).join("-")}`
|
|
1266
1270
|
);
|
|
1267
1271
|
}
|
|
@@ -1295,8 +1299,8 @@ function flushDeferredSkillsNotices(baseUrl, agents) {
|
|
|
1295
1299
|
if (text.trim()) writeSdkSkillsStatusLine(text.trimEnd());
|
|
1296
1300
|
}
|
|
1297
1301
|
function flushDeferredSkillsSyncNotices(baseUrl) {
|
|
1298
|
-
if (shouldSkipSkillsSync() ||
|
|
1299
|
-
const agents =
|
|
1302
|
+
if (shouldSkipSkillsSync() || _chunkH3ZWEHLGjs.hasActivePluginSkills.call(void 0, )) return;
|
|
1303
|
+
const agents = _chunkH3ZWEHLGjs.resolveAutoSyncSkillAgents.call(void 0, );
|
|
1300
1304
|
if (agents.length === 0) return;
|
|
1301
1305
|
flushDeferredSkillsNotices(baseUrl, agents);
|
|
1302
1306
|
}
|
|
@@ -1312,7 +1316,7 @@ function spawnDetachedSkillsSyncChild(argv, onSpawnError) {
|
|
|
1312
1316
|
}
|
|
1313
1317
|
function failedSkillsSyncPath(baseUrl, agents) {
|
|
1314
1318
|
return _path.join.call(void 0,
|
|
1315
|
-
|
|
1319
|
+
_chunkH3ZWEHLGjs.sdkCliStateDirPath.call(void 0, baseUrl),
|
|
1316
1320
|
`skills-sync-failed-${sortedLeaseAgents(agents).map(agentLeaseSegment).join("-")}-version`
|
|
1317
1321
|
);
|
|
1318
1322
|
}
|
|
@@ -1341,7 +1345,7 @@ function writeUnavailableSkillsNotice(baseUrl, remoteVersion, skillNames, reason
|
|
|
1341
1345
|
if (hasMarkedSkillsSyncVersion(path, remoteVersion)) return;
|
|
1342
1346
|
writeMarkedSkillsSyncVersion(path, remoteVersion);
|
|
1343
1347
|
const probes = reason === "no-installer" ? _nullishCoalesce(knownProbes, () => ( probeInstallers())) : null;
|
|
1344
|
-
const manualCommand = _optionalChain([probes, 'optionalAccess', _93 => _93.npx]) === "missing" && probes.bunx !== "missing" ? `bunx ${buildBunxSkillsInstallArgs(baseUrl, skillNames,
|
|
1348
|
+
const manualCommand = _optionalChain([probes, 'optionalAccess', _93 => _93.npx]) === "missing" && probes.bunx !== "missing" ? `bunx ${buildBunxSkillsInstallArgs(baseUrl, skillNames, _chunkH3ZWEHLGjs.DEFAULT_SKILL_AGENTS).map(shellQuote).join(" ")}` : `npx ${buildSkillsInstallArgs(baseUrl, skillNames).join(" ")}`;
|
|
1345
1349
|
const explanation = reason === "unsupported-agent" ? "the detected agent has no automatic skills sync target. Automatic sync was skipped." : _optionalChain([probes, 'optionalAccess', _94 => _94.bunx]) === "missing" && probes.npx === "missing" ? "neither `bunx` nor `npx` was found on PATH. Make one available." : `installer version check failed for ${Object.entries(_nullishCoalesce(probes, () => ( {}))).filter(([, result]) => result === "failed").map(([command]) => `\`${command}\``).join(" and ")}. Check those commands with --version.`;
|
|
1346
1350
|
notice(
|
|
1347
1351
|
`Deepline agent skills are out of date, but ${explanation} To install manually, run:
|
|
@@ -1429,7 +1433,7 @@ function buildSdkSkillNames(v1SkillNames2) {
|
|
|
1429
1433
|
return sortedUniqueSkillNames(v1SkillNames2);
|
|
1430
1434
|
}
|
|
1431
1435
|
function isDefaultAgentSet(agents) {
|
|
1432
|
-
return agents.length ===
|
|
1436
|
+
return agents.length === _chunkH3ZWEHLGjs.DEFAULT_SKILL_AGENTS.length && agents.every((agent, index) => agent === _chunkH3ZWEHLGjs.DEFAULT_SKILL_AGENTS[index]);
|
|
1433
1437
|
}
|
|
1434
1438
|
function safeSkillFilePath(value) {
|
|
1435
1439
|
if (typeof value !== "string" || !value) return false;
|
|
@@ -1586,10 +1590,10 @@ async function fetchSkillsUpdate(baseUrl, localVersion) {
|
|
|
1586
1590
|
method: "POST",
|
|
1587
1591
|
headers: { "Content-Type": "application/json" },
|
|
1588
1592
|
body: JSON.stringify({
|
|
1589
|
-
sdk_cli: { version:
|
|
1593
|
+
sdk_cli: { version: _chunkH3ZWEHLGjs.SDK_VERSION },
|
|
1590
1594
|
skills: {
|
|
1591
1595
|
version: localVersion,
|
|
1592
|
-
capability:
|
|
1596
|
+
capability: _chunkIOULR7YAjs.SDK_RELEASE.packageCapabilities.skillsGuidance
|
|
1593
1597
|
}
|
|
1594
1598
|
}),
|
|
1595
1599
|
signal: controller.signal
|
|
@@ -1628,7 +1632,7 @@ function probeInstallers(timeoutMs) {
|
|
|
1628
1632
|
}
|
|
1629
1633
|
function noInstallerProbePath(baseUrl) {
|
|
1630
1634
|
return _path.join.call(void 0,
|
|
1631
|
-
|
|
1635
|
+
_chunkH3ZWEHLGjs.sdkCliStateDirPath.call(void 0, baseUrl),
|
|
1632
1636
|
"skills-sync-no-installer-unknown.json"
|
|
1633
1637
|
);
|
|
1634
1638
|
}
|
|
@@ -1707,7 +1711,7 @@ function temporarySkillsSyncSkipCommand() {
|
|
|
1707
1711
|
function resolveSkillsInstallSpawn(install, platform2 = process.platform) {
|
|
1708
1712
|
return resolveShellSpawn(install.command, install.args, platform2);
|
|
1709
1713
|
}
|
|
1710
|
-
function resolveSkillsInstallCommands(baseUrl, skillNames = DEFAULT_SDK_SKILL_NAMES, agents =
|
|
1714
|
+
function resolveSkillsInstallCommands(baseUrl, skillNames = DEFAULT_SDK_SKILL_NAMES, agents = _chunkH3ZWEHLGjs.DEFAULT_SKILL_AGENTS, knownProbes) {
|
|
1711
1715
|
const commands = [];
|
|
1712
1716
|
const probes = _nullishCoalesce(knownProbes, () => ( probeInstallers()));
|
|
1713
1717
|
if (probes.bunx === "available") {
|
|
@@ -1859,11 +1863,11 @@ function writeSdkSkillsStatusLine(line) {
|
|
|
1859
1863
|
}
|
|
1860
1864
|
async function syncSdkSkillsIfNeeded(baseUrl, options = {}) {
|
|
1861
1865
|
if (shouldSkipSkillsSync()) return;
|
|
1862
|
-
const usingPluginSkills =
|
|
1866
|
+
const usingPluginSkills = _chunkH3ZWEHLGjs.hasActivePluginSkills.call(void 0, );
|
|
1863
1867
|
if (usingPluginSkills) {
|
|
1864
1868
|
return;
|
|
1865
1869
|
}
|
|
1866
|
-
const agents =
|
|
1870
|
+
const agents = _chunkH3ZWEHLGjs.resolveAutoSyncSkillAgents.call(void 0, );
|
|
1867
1871
|
if (options.mode === "detached" && agents.length > 0) {
|
|
1868
1872
|
flushDeferredSkillsNotices(baseUrl, agents);
|
|
1869
1873
|
}
|
|
@@ -1891,7 +1895,7 @@ async function syncSdkSkillsIfNeeded(baseUrl, options = {}) {
|
|
|
1891
1895
|
return;
|
|
1892
1896
|
}
|
|
1893
1897
|
try {
|
|
1894
|
-
const localVersion =
|
|
1898
|
+
const localVersion = _chunkH3ZWEHLGjs.readSdkSkillsLocalVersion.call(void 0, baseUrl);
|
|
1895
1899
|
const update = options.update === void 0 ? claimedVersion ? { needsUpdate: true, remoteVersion: claimedVersion } : await fetchSkillsUpdate(baseUrl, localVersion) : options.update ? {
|
|
1896
1900
|
needsUpdate: options.update.needs_update,
|
|
1897
1901
|
remoteVersion: options.update.remote.version
|
|
@@ -2057,7 +2061,7 @@ async function runInlineSkillsSync(baseUrl, remoteVersion, agents, notices) {
|
|
|
2057
2061
|
}
|
|
2058
2062
|
}
|
|
2059
2063
|
runLegacySkillsCleanup(agents);
|
|
2060
|
-
if (!
|
|
2064
|
+
if (!_chunkH3ZWEHLGjs.writeSdkSkillsLocalVersion.call(void 0, baseUrl, update.remoteVersion, agents)) {
|
|
2061
2065
|
notice(
|
|
2062
2066
|
"Deepline agent skills installed, but the local skills version could not be recorded. A later command will retry the refresh."
|
|
2063
2067
|
);
|
|
@@ -3,15 +3,15 @@ import {
|
|
|
3
3
|
} from "./chunk-LJ5747UC.mjs";
|
|
4
4
|
import {
|
|
5
5
|
DeeplineClient
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-Y2CT65YJ.mjs";
|
|
7
7
|
import {
|
|
8
8
|
printCommandEnvelope,
|
|
9
9
|
renderCommandEnvelopeText
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-OJGQ7JE3.mjs";
|
|
11
11
|
import {
|
|
12
12
|
resolveConfig,
|
|
13
13
|
sdkCliStateDirPath
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-Q44253PX.mjs";
|
|
15
15
|
import {
|
|
16
16
|
__commonJS,
|
|
17
17
|
__toESM
|
|
@@ -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 _chunkN4SYPFH4js = require('./chunk-N4SYPFH4.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
|
+
_chunkN4SYPFH4js.writeRawStderr.call(void 0, `[cli-trace] ${JSON.stringify(payload)}
|
|
37
37
|
`);
|
|
38
38
|
}
|
|
39
39
|
async function traceCliSpan(phase, fields, run) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
isJsonOutputMode
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-OJGQ7JE3.mjs";
|
|
4
4
|
import {
|
|
5
5
|
DEFAULT_SKILL_AGENTS,
|
|
6
6
|
KNOWN_SKILL_AGENTS,
|
|
@@ -17,13 +17,13 @@ import {
|
|
|
17
17
|
sdkCliStateDirPath,
|
|
18
18
|
skillsAgentPathSegment,
|
|
19
19
|
writeSdkSkillsLocalVersion
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-Q44253PX.mjs";
|
|
21
21
|
import {
|
|
22
22
|
DeeplineError
|
|
23
23
|
} from "./chunk-E4IXDAZI.mjs";
|
|
24
24
|
import {
|
|
25
25
|
SDK_RELEASE
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-EMWMLURG.mjs";
|
|
27
27
|
|
|
28
28
|
// src/compat.ts
|
|
29
29
|
import { randomUUID } from "crypto";
|
|
@@ -340,6 +340,10 @@ var DEFAULT_V1_SKILL_NAMES = [
|
|
|
340
340
|
"deepline-research",
|
|
341
341
|
"deepline-scoring",
|
|
342
342
|
"find-qualified-titles",
|
|
343
|
+
// Retired recipe shortcut: lookup guidance is now one rule in `deepline-gtm`.
|
|
344
|
+
// Kept as a stub because installed CLIs list it and refuse to sync any skill
|
|
345
|
+
// when the published index lacks a listed name. Move to
|
|
346
|
+
// LEGACY_SKILL_NAMES_TO_REMOVE once those CLIs are out of the field.
|
|
343
347
|
"linkedin-url-lookup",
|
|
344
348
|
// Deprecated alias for `deepline-scoring`, kept installable so saved prompts
|
|
345
349
|
// and scripts using `/niche-signal-discovery` keep routing to the renamed
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunk5MP7LBHFjs = require('./chunk-5MP7LBHF.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
var
|
|
8
|
+
var _chunk44SXWCI5js = require('./chunk-44SXWCI5.js');
|
|
9
9
|
|
|
10
10
|
// src/cli/play-run-admission.ts
|
|
11
11
|
function usesInlinePlayAdmission(command, args) {
|
|
@@ -14,17 +14,17 @@ function usesInlinePlayAdmission(command, args) {
|
|
|
14
14
|
);
|
|
15
15
|
}
|
|
16
16
|
async function checkPlayRunCompatibility(baseUrl, maintenancePolicy = "configured") {
|
|
17
|
-
if (maintenancePolicy !== "off")
|
|
18
|
-
const compatibility = await
|
|
17
|
+
if (maintenancePolicy !== "off") _chunk44SXWCI5js.flushDeferredSkillsSyncNotices.call(void 0, baseUrl);
|
|
18
|
+
const compatibility = await _chunk5MP7LBHFjs.traceCliSpan.call(void 0,
|
|
19
19
|
"cli.sdk_compatibility",
|
|
20
20
|
{ baseUrl, command: "plays run" },
|
|
21
|
-
() =>
|
|
21
|
+
() => _chunk44SXWCI5js.checkSdkCompatibility.call(void 0, baseUrl, {
|
|
22
22
|
command: "plays run",
|
|
23
23
|
persistCache: maintenancePolicy !== "off"
|
|
24
24
|
})
|
|
25
25
|
);
|
|
26
26
|
if (compatibility.error) throw compatibility.error;
|
|
27
|
-
|
|
27
|
+
_chunk44SXWCI5js.enforceSdkCompatibilityResponse.call(void 0, compatibility.response, {
|
|
28
28
|
quietAdvisory: true
|
|
29
29
|
});
|
|
30
30
|
}
|
|
@@ -4,18 +4,18 @@
|
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkKOQGG5WZjs = require('./chunk-KOQGG5WZ.js');
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
var
|
|
10
|
+
var _chunk44SXWCI5js = require('./chunk-44SXWCI5.js');
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
|
|
14
|
-
var
|
|
14
|
+
var _chunkN4SYPFH4js = require('./chunk-N4SYPFH4.js');
|
|
15
15
|
|
|
16
16
|
|
|
17
17
|
|
|
18
|
-
var
|
|
18
|
+
var _chunkH3ZWEHLGjs = require('./chunk-H3ZWEHLG.js');
|
|
19
19
|
|
|
20
20
|
// src/cli/compatibility-catalog.ts
|
|
21
21
|
var readers = /* @__PURE__ */ new WeakMap();
|
|
@@ -42,7 +42,7 @@ function trustedAutoUpdateRegistryUrl(baseUrl) {
|
|
|
42
42
|
async function reportAutoUpdateEvent(input) {
|
|
43
43
|
let apiKey = "";
|
|
44
44
|
try {
|
|
45
|
-
apiKey =
|
|
45
|
+
apiKey = _chunkH3ZWEHLGjs.resolveApiKeyForBaseUrl.call(void 0, input.baseUrl);
|
|
46
46
|
} catch (e2) {
|
|
47
47
|
return;
|
|
48
48
|
}
|
|
@@ -58,15 +58,15 @@ async function reportAutoUpdateEvent(input) {
|
|
|
58
58
|
headers: {
|
|
59
59
|
Authorization: `Bearer ${apiKey}`,
|
|
60
60
|
"Content-Type": "application/json",
|
|
61
|
-
"User-Agent": `deepline-ts-sdk/${
|
|
61
|
+
"User-Agent": `deepline-ts-sdk/${_chunkH3ZWEHLGjs.SDK_VERSION}`,
|
|
62
62
|
"X-Deepline-Client-Family": "sdk",
|
|
63
63
|
"X-Deepline-CLI-Family": "sdk",
|
|
64
|
-
"X-Deepline-CLI-Version":
|
|
65
|
-
"X-Deepline-SDK-Version":
|
|
64
|
+
"X-Deepline-CLI-Version": _chunkH3ZWEHLGjs.SDK_VERSION,
|
|
65
|
+
"X-Deepline-SDK-Version": _chunkH3ZWEHLGjs.SDK_VERSION
|
|
66
66
|
},
|
|
67
67
|
body: JSON.stringify({
|
|
68
68
|
event: input.event,
|
|
69
|
-
current_version: _optionalChain([input, 'access', _4 => _4.response, 'access', _5 => _5.current, 'optionalAccess', _6 => _6.trim, 'call', _7 => _7()]) ||
|
|
69
|
+
current_version: _optionalChain([input, 'access', _4 => _4.response, 'access', _5 => _5.current, 'optionalAccess', _6 => _6.trim, 'call', _7 => _7()]) || _chunkH3ZWEHLGjs.SDK_VERSION,
|
|
70
70
|
target_version: input.response.latest,
|
|
71
71
|
reason: _optionalChain([input, 'access', _8 => _8.response, 'access', _9 => _9.auto_update, 'optionalAccess', _10 => _10.reason]),
|
|
72
72
|
command: _nullishCoalesce(input.response.command, () => ( null)),
|
|
@@ -85,13 +85,13 @@ function envTruthy(name) {
|
|
|
85
85
|
return value === "1" || value === "true" || value === "yes";
|
|
86
86
|
}
|
|
87
87
|
function shouldSkipSelfUpdate(policy) {
|
|
88
|
-
return policy === "off" || envTruthy("DEEPLINE_SKIP_SELF_UPDATE") || envTruthy("DEEPLINE_NO_AUTO_UPDATE") || envTruthy("DEEPLINE_SKIP_SDK_AUTO_UPDATE") || envTruthy("DEEPLINE_DISABLE_AUTO_UPDATE") || !
|
|
88
|
+
return policy === "off" || envTruthy("DEEPLINE_SKIP_SELF_UPDATE") || envTruthy("DEEPLINE_NO_AUTO_UPDATE") || envTruthy("DEEPLINE_SKIP_SDK_AUTO_UPDATE") || envTruthy("DEEPLINE_DISABLE_AUTO_UPDATE") || !_chunkKOQGG5WZjs.shouldRunCliAutoUpdate.call(void 0, ) || _chunk44SXWCI5js.isCiEnvironment.call(void 0, );
|
|
89
89
|
}
|
|
90
90
|
function isDowngradeAutoUpdateResponse(response) {
|
|
91
91
|
const target = _optionalChain([response, 'optionalAccess', _17 => _17.latest, 'optionalAccess', _18 => _18.trim, 'call', _19 => _19()]);
|
|
92
|
-
const current = _optionalChain([response, 'optionalAccess', _20 => _20.current, 'optionalAccess', _21 => _21.trim, 'call', _22 => _22()]) ||
|
|
92
|
+
const current = _optionalChain([response, 'optionalAccess', _20 => _20.current, 'optionalAccess', _21 => _21.trim, 'call', _22 => _22()]) || _chunkH3ZWEHLGjs.SDK_VERSION;
|
|
93
93
|
if (!target) return false;
|
|
94
|
-
return
|
|
94
|
+
return _chunkKOQGG5WZjs.compareUpdateVersions.call(void 0, target, current) < 0;
|
|
95
95
|
}
|
|
96
96
|
function relaunchCurrentCommand(plan, runtime = {}) {
|
|
97
97
|
return new Promise((resolve) => {
|
|
@@ -144,7 +144,7 @@ async function maybeAutoUpdateAndRelaunch(response, baseUrl, policy = "configure
|
|
|
144
144
|
}
|
|
145
145
|
if (isDowngradeAutoUpdateResponse(response)) {
|
|
146
146
|
const target = response.latest;
|
|
147
|
-
const current = _optionalChain([response, 'access', _26 => _26.current, 'optionalAccess', _27 => _27.trim, 'call', _28 => _28()]) ||
|
|
147
|
+
const current = _optionalChain([response, 'access', _26 => _26.current, 'optionalAccess', _27 => _27.trim, 'call', _28 => _28()]) || _chunkH3ZWEHLGjs.SDK_VERSION;
|
|
148
148
|
process.stderr.write(
|
|
149
149
|
`Deepline SDK/CLI auto-update refused: server advertised older ${target} than current ${current}. Continuing without mutating the CLI.
|
|
150
150
|
`
|
|
@@ -152,21 +152,21 @@ async function maybeAutoUpdateAndRelaunch(response, baseUrl, policy = "configure
|
|
|
152
152
|
return false;
|
|
153
153
|
}
|
|
154
154
|
const packageSpec = response.latest ? `deepline@${response.latest}` : void 0;
|
|
155
|
-
const plan =
|
|
155
|
+
const plan = _chunkKOQGG5WZjs.resolveUpdatePlan.call(void 0, {
|
|
156
156
|
packageSpec,
|
|
157
157
|
requireVerifiedNpmOwnership: true,
|
|
158
158
|
npmFallbackRegistryUrl: trustedAutoUpdateRegistryUrl(baseUrl)
|
|
159
159
|
});
|
|
160
|
-
if (!
|
|
160
|
+
if (!_chunkKOQGG5WZjs.canAutomaticallyApplyUpdatePlan.call(void 0, plan)) {
|
|
161
161
|
return false;
|
|
162
162
|
}
|
|
163
163
|
if (!autoUpdate.required && autoUpdate.reason !== "rollback_forced") {
|
|
164
164
|
deferredAutoUpdate = async () => {
|
|
165
165
|
await applyAutoUpdate(response, baseUrl, plan, "next_command");
|
|
166
166
|
};
|
|
167
|
-
if (
|
|
167
|
+
if (_chunkN4SYPFH4js.isJsonOutputMode.call(void 0, )) {
|
|
168
168
|
const target = _optionalChain([response, 'access', _29 => _29.latest, 'optionalAccess', _30 => _30.trim, 'call', _31 => _31()]);
|
|
169
|
-
|
|
169
|
+
_chunkN4SYPFH4js.addJsonNotice.call(void 0, {
|
|
170
170
|
code: "sdk_update_queued",
|
|
171
171
|
message: `Deepline SDK/CLI update${target ? ` to ${target}` : ""} is queued after this command; the next command will use it if installation succeeds.`
|
|
172
172
|
});
|
|
@@ -179,7 +179,7 @@ async function maybeAutoUpdateAndRelaunch(response, baseUrl, policy = "configure
|
|
|
179
179
|
return true;
|
|
180
180
|
}
|
|
181
181
|
async function applyAutoUpdate(response, baseUrl, plan, takesEffect) {
|
|
182
|
-
if (!
|
|
182
|
+
if (!_chunkKOQGG5WZjs.canAutomaticallyApplyUpdatePlan.call(void 0, plan)) return false;
|
|
183
183
|
const autoUpdate = response.auto_update;
|
|
184
184
|
const label = _optionalChain([autoUpdate, 'optionalAccess', _32 => _32.reason]) === "rollback_forced" ? "has a server rollback pending and needs the latest rollback-aware CLI" : _optionalChain([autoUpdate, 'optionalAccess', _33 => _33.reason]) === "deprecated" ? "is deprecated and will update automatically" : _optionalChain([autoUpdate, 'optionalAccess', _34 => _34.required]) ? "requires an update" : "has an update available and will update automatically";
|
|
185
185
|
process.stderr.write(
|
|
@@ -192,7 +192,7 @@ async function applyAutoUpdate(response, baseUrl, plan, takesEffect) {
|
|
|
192
192
|
event: "started",
|
|
193
193
|
installKind: plan.kind
|
|
194
194
|
});
|
|
195
|
-
const updateResult = await
|
|
195
|
+
const updateResult = await _chunkKOQGG5WZjs.runAutomaticUpdatePlan.call(void 0, plan);
|
|
196
196
|
if (updateResult.status === "skipped_previous_failure") {
|
|
197
197
|
void reportAutoUpdateEvent({
|
|
198
198
|
baseUrl,
|
|
@@ -243,7 +243,7 @@ var _crypto = require('crypto');
|
|
|
243
243
|
var TOOL_EXECUTE_PROGRESS_INTERVAL_MS = 15e3;
|
|
244
244
|
var activeToolExecuteCommand = null;
|
|
245
245
|
function progressLine(line) {
|
|
246
|
-
if (!
|
|
246
|
+
if (!_chunkN4SYPFH4js.isJsonOutputMode.call(void 0, )) console.error(line);
|
|
247
247
|
}
|
|
248
248
|
function beginToolExecuteCommand() {
|
|
249
249
|
if (activeToolExecuteCommand) return activeToolExecuteCommand.invocationId;
|