deepline 0.3.413 → 0.3.414
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-5A3Z4LNL.js +40 -0
- package/dist/cli/{auth-3D4KKBVE.mjs → auth-5QG4TOA6.mjs} +4 -4
- package/dist/cli/{billing-2EOBIABD.mjs → billing-JV3HCOMG.mjs} +4 -4
- package/dist/cli/{billing-EJQFNJSI.js → billing-W7YO6VXH.js} +73 -73
- package/dist/cli/{chunk-4GEA7QZY.mjs → chunk-3PBK7PHE.mjs} +1 -1
- package/dist/cli/{chunk-ZDY367QD.js → chunk-4CPRZPRQ.js} +6 -6
- package/dist/cli/{chunk-YCPKC54Z.mjs → chunk-5S4QRLRC.mjs} +2 -2
- package/dist/cli/{chunk-ID4QO6ME.js → chunk-BXWLG55T.js} +52 -52
- package/dist/cli/{chunk-VHBCEFS7.mjs → chunk-EFD5CW26.mjs} +1 -1
- package/dist/cli/{chunk-NCWUFF6U.js → chunk-EWDWMTTD.js} +1 -1
- package/dist/cli/{chunk-WDQYMXDK.mjs → chunk-H5GTXEGI.mjs} +4 -4
- package/dist/cli/{chunk-Y3MHIAMV.mjs → chunk-HSYVA2JK.mjs} +2 -2
- package/dist/cli/{chunk-GNDHF3ZI.js → chunk-J2GD6PDT.js} +50 -50
- package/dist/cli/{chunk-EGZUJT3T.js → chunk-JR4FDOWR.js} +29 -22
- package/dist/cli/{chunk-V5L3WCSG.mjs → chunk-L3DLOICI.mjs} +3 -3
- package/dist/cli/{chunk-D65C5V3L.mjs → chunk-LI2LTEO4.mjs} +2 -2
- package/dist/cli/{chunk-OT5HUMKM.mjs → chunk-M2V34XOG.mjs} +5 -5
- package/dist/cli/{chunk-PDW33FLZ.mjs → chunk-MALNVMG6.mjs} +1 -1
- package/dist/cli/{chunk-5PE74ZQ4.js → chunk-MH6H63HF.js} +35 -35
- package/dist/cli/{chunk-QR4SD7RI.js → chunk-N3EF5WQV.js} +10 -10
- package/dist/cli/{chunk-HCBTS7KU.mjs → chunk-NOGPMTF5.mjs} +8 -8
- package/dist/cli/{chunk-2T2JTZT2.js → chunk-ODA4AZM3.js} +79 -79
- package/dist/cli/{chunk-7GGLDFIU.js → chunk-OEHMER3F.js} +16 -16
- package/dist/cli/{chunk-ZGVFEBX7.mjs → chunk-OKKLH4QY.mjs} +2 -2
- package/dist/cli/{chunk-HNL6FVEL.js → chunk-PK55NFM5.js} +2 -2
- package/dist/cli/{chunk-YAM52S2K.js → chunk-QVBVSC3M.js} +8 -8
- package/dist/cli/{chunk-VZ57YWB6.mjs → chunk-QWLGBYTB.mjs} +1 -1
- package/dist/cli/{chunk-JXNCP2M5.js → chunk-RHOY4RXI.js} +26 -26
- package/dist/cli/{chunk-GH4FIWEU.mjs → chunk-RYWFCSGX.mjs} +1 -1
- package/dist/cli/{chunk-OXUDZTF3.mjs → chunk-S6ZBXS7N.mjs} +1 -1
- package/dist/cli/{chunk-VTL3NDUG.mjs → chunk-UGQLBLSZ.mjs} +24 -17
- package/dist/cli/{chunk-KSJS5F57.js → chunk-URBOSCO6.js} +20 -20
- package/dist/cli/{chunk-X5FXFSHJ.js → chunk-VJRAFJ6H.js} +2 -2
- package/dist/cli/{chunk-CUY5U4QK.mjs → chunk-VOTKMPYY.mjs} +3 -3
- package/dist/cli/{chunk-REVPPQFK.js → chunk-XPOIHVTN.js} +6 -6
- package/dist/cli/{chunk-LF5WZGBG.js → chunk-ZEQ3N6SI.js} +4 -4
- package/dist/cli/{csv-FVLNH7XW.js → csv-EO2L4TEE.js} +12 -12
- package/dist/cli/{csv-3GKD6ODW.mjs → csv-HH5HBH2J.mjs} +3 -3
- package/dist/cli/{db-YBLULEQY.js → db-MUXVX2BC.js} +25 -25
- package/dist/cli/{db-TFECIZXA.mjs → db-Y7CREGF3.mjs} +4 -4
- package/dist/cli/{describe-4CGSYQ6N.mjs → describe-4P76LT4U.mjs} +12 -12
- package/dist/cli/{describe-Y4XESTCE.js → describe-66HDJGQI.js} +16 -16
- package/dist/cli/{executions-F7S72KOK.js → executions-HKGTLNX5.js} +6 -6
- package/dist/cli/{executions-GSXZKYBA.mjs → executions-SOEK54UR.mjs} +4 -4
- package/dist/cli/{feedback-PMCZCNOK.mjs → feedback-NX64K5CR.mjs} +3 -3
- package/dist/cli/{feedback-GCCC2YTL.js → feedback-TLABM3DG.js} +7 -7
- package/dist/cli/git-K55QWG6X.js +24 -0
- package/dist/cli/{git-RNPGVB5K.mjs → git-Y25E2ZJC.mjs} +4 -4
- package/dist/cli/index.js +131 -131
- package/dist/cli/index.mjs +36 -36
- package/dist/cli/{legacy-noops-J4CNOAAZ.js → legacy-noops-EXFCXCRK.js} +7 -7
- package/dist/cli/{legacy-noops-FNJK7BKV.mjs → legacy-noops-RRMXZZ4S.mjs} +4 -4
- package/dist/cli/{monitors-LZDR7Y5R.mjs → monitors-CCKCBND7.mjs} +4 -4
- package/dist/cli/{monitors-IRPUBNV3.js → monitors-FB75AVWA.js} +84 -84
- package/dist/cli/{org-CG5H5PYW.mjs → org-KDPXHQPC.mjs} +4 -4
- package/dist/cli/{org-GMQQV4B4.js → org-SQQG44XI.js} +64 -64
- package/dist/cli/{play-JGBMKAVZ.js → play-CSKSDDQS.js} +283 -283
- package/dist/cli/{play-AQJXC3UT.mjs → play-HPQEDJEP.mjs} +10 -10
- package/dist/cli/{providers-6W2LUEB2.js → providers-7FDWGH3C.js} +7 -7
- package/dist/cli/{providers-TU5QOBJL.mjs → providers-TFVCFP7J.mjs} +4 -4
- package/dist/cli/{quickstart-NIED5SQP.mjs → quickstart-2J67PING.mjs} +3 -3
- package/dist/cli/{quickstart-XO4LNJIB.js → quickstart-JQRTIIIZ.js} +5 -5
- package/dist/cli/{search-P322OCZS.mjs → search-7ZA7UIVM.mjs} +5 -5
- package/dist/cli/search-O3PYDXOZ.js +30 -0
- package/dist/cli/{secrets-5JX66PSU.js → secrets-J676GB6Q.js} +13 -13
- package/dist/cli/{secrets-36GD5ORQ.mjs → secrets-ZQY5GO4T.mjs} +4 -4
- package/dist/cli/{sessions-TRPCS2XC.js → sessions-AVICKLMK.js} +5 -5
- package/dist/cli/{sessions-EU5EGYQA.mjs → sessions-OP2352DC.mjs} +4 -4
- package/dist/cli/{settings-2GBXXYEC.js → settings-EWKNDCGF.js} +75 -75
- package/dist/cli/{settings-XZCFPMJK.mjs → settings-QNILCEH6.mjs} +8 -8
- package/dist/cli/{setup-62YVBUGJ.mjs → setup-4NDX6UAI.mjs} +7 -7
- package/dist/cli/{setup-3R62S2HC.js → setup-IHILOCOK.js} +42 -42
- package/dist/cli/{skills-GCRGKFZZ.mjs → skills-H73NL3VP.mjs} +5 -5
- package/dist/cli/skills-TDL7SEFT.js +29 -0
- package/dist/cli/tools-GPFPJWWA.js +44 -0
- package/dist/cli/{tools-PZ5BRPG4.mjs → tools-ZFPBY4Q2.mjs} +12 -12
- package/dist/cli/update-VR6EWUUT.js +31 -0
- package/dist/cli/{update-Y2VCL75Z.mjs → update-XULEC376.mjs} +7 -7
- package/dist/cli/{workflow-ZSV2DPQ3.js → workflow-JX4WSBYH.js} +15 -15
- package/dist/cli/{workflow-THUIMN33.mjs → workflow-OD5XZHCL.mjs} +5 -5
- 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-5NDVMF4F.js +0 -40
- package/dist/cli/git-NOKHD2LT.js +0 -24
- package/dist/cli/search-46BMUNKI.js +0 -30
- package/dist/cli/skills-GVWVI3WO.js +0 -29
- package/dist/cli/tools-VFSX2OY3.js +0 -44
- package/dist/cli/update-KHJC44FI.js +0 -31
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkZEQ3N6SIjs = require('./chunk-ZEQ3N6SI.js');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
@@ -288,8 +288,8 @@ var BROWSER_OPEN_COOLDOWN_MS = 3e4;
|
|
|
288
288
|
var SAME_URL_BROWSER_OPEN_COOLDOWN_MS = 5 * 6e4;
|
|
289
289
|
var defaultBrowserCommandRunner = childProcess;
|
|
290
290
|
function getAuthedHttpClient() {
|
|
291
|
-
const config =
|
|
292
|
-
return { config, http: new (0,
|
|
291
|
+
const config = _chunkZEQ3N6SIjs.resolveConfig.call(void 0, );
|
|
292
|
+
return { config, http: new (0, _chunkZEQ3N6SIjs.HttpClient)(config) };
|
|
293
293
|
}
|
|
294
294
|
function stableOsUserId() {
|
|
295
295
|
try {
|
|
@@ -629,7 +629,7 @@ function collectLocalEnvInfo() {
|
|
|
629
629
|
os: `${process.platform} ${process.arch}`,
|
|
630
630
|
node_version: process.version,
|
|
631
631
|
home_dir: homeDir,
|
|
632
|
-
agent_runtime:
|
|
632
|
+
agent_runtime: _chunkZEQ3N6SIjs.detectAgentRuntime.call(void 0, )
|
|
633
633
|
};
|
|
634
634
|
const env = process.env;
|
|
635
635
|
const optional = {
|
|
@@ -876,9 +876,9 @@ function markdownTableFromRows(rows, preferredColumns = []) {
|
|
|
876
876
|
}
|
|
877
877
|
function withAgentCommandContext(value) {
|
|
878
878
|
const valueRecord = value !== null && typeof value === "object" && !Array.isArray(value) ? value : null;
|
|
879
|
-
return
|
|
879
|
+
return _chunkZEQ3N6SIjs.detectAgentRuntime.call(void 0, ) !== "unknown" && valueRecord && !Object.prototype.hasOwnProperty.call(valueRecord, "command_context") ? {
|
|
880
880
|
...valueRecord,
|
|
881
|
-
command_context:
|
|
881
|
+
command_context: _chunkZEQ3N6SIjs.resolveCliCommandContext.call(void 0, )
|
|
882
882
|
} : value;
|
|
883
883
|
}
|
|
884
884
|
function printJson(value, fields) {
|
|
@@ -2,7 +2,7 @@ import {
|
|
|
2
2
|
argsWantJson,
|
|
3
3
|
openInBrowser,
|
|
4
4
|
printCommandEnvelope
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-3PBK7PHE.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-S6ZBXS7N.mjs";
|
|
29
29
|
|
|
30
30
|
// src/cli/commands/auth.ts
|
|
31
31
|
import {
|
|
@@ -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 _chunk4CPRZPRQjs = require('./chunk-4CPRZPRQ.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
@@ -17,13 +17,13 @@ var _chunkZDY367QDjs = require('./chunk-ZDY367QD.js');
|
|
|
17
17
|
|
|
18
18
|
|
|
19
19
|
|
|
20
|
-
var
|
|
20
|
+
var _chunkZEQ3N6SIjs = require('./chunk-ZEQ3N6SI.js');
|
|
21
21
|
|
|
22
22
|
|
|
23
23
|
var _chunkPPDBRJRWjs = require('./chunk-PPDBRJRW.js');
|
|
24
24
|
|
|
25
25
|
|
|
26
|
-
var
|
|
26
|
+
var _chunkEWDWMTTDjs = require('./chunk-EWDWMTTD.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, _chunkZEQ3N6SIjs.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: _chunkZEQ3N6SIjs.SDK_VERSION,
|
|
70
|
+
apiContract: _chunkZEQ3N6SIjs.SDK_API_CONTRACT,
|
|
71
|
+
apiMajor: _chunkZEQ3N6SIjs.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: _chunkZEQ3N6SIjs.SDK_VERSION,
|
|
80
|
+
apiContract: _chunkZEQ3N6SIjs.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, _chunkZEQ3N6SIjs.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", _chunkZEQ3N6SIjs.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(_chunkEWDWMTTDjs.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
|
+
..._chunkZEQ3N6SIjs.deploymentProtectionHeaders.call(void 0, ),
|
|
210
|
+
"User-Agent": `deepline-ts-sdk/${_chunkZEQ3N6SIjs.SDK_VERSION}`,
|
|
211
|
+
"X-Deepline-SDK-Version": _chunkZEQ3N6SIjs.SDK_VERSION,
|
|
212
|
+
"X-Deepline-API-Major": String(_chunkZEQ3N6SIjs.SDK_API_MAJOR),
|
|
213
|
+
"X-Deepline-API-Contract": _chunkZEQ3N6SIjs.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 ${_chunkZEQ3N6SIjs.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
|
|
@@ -370,7 +370,7 @@ function skillsSourceUrl(baseUrl) {
|
|
|
370
370
|
function buildSkillsAddArgs(baseUrl, skillName, options = {}) {
|
|
371
371
|
const skillNames = Array.isArray(skillName) ? skillName : [skillName];
|
|
372
372
|
const [firstSkillName, ...extraSkillNames] = skillNames;
|
|
373
|
-
const agents = _nullishCoalesce(options.agents, () => (
|
|
373
|
+
const agents = _nullishCoalesce(options.agents, () => ( _chunkZEQ3N6SIjs.DEFAULT_SKILL_AGENTS));
|
|
374
374
|
const values = {
|
|
375
375
|
skills_index_url: skillsIndexUrl(baseUrl),
|
|
376
376
|
skills_source_url: skillsSourceUrl(baseUrl),
|
|
@@ -409,7 +409,7 @@ var CliProgress = (_class = class {
|
|
|
409
409
|
|
|
410
410
|
// --json output is one JSON document: progress never renders under it.
|
|
411
411
|
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 && !
|
|
412
|
+
this.enabled = enabled && !_chunk4CPRZPRQjs.isJsonOutputMode.call(void 0, );
|
|
413
413
|
}
|
|
414
414
|
phase(message) {
|
|
415
415
|
if (!this.enabled || this.lastMessage === message) {
|
|
@@ -434,7 +434,7 @@ var CliProgress = (_class = class {
|
|
|
434
434
|
this.settle("\u2717");
|
|
435
435
|
}
|
|
436
436
|
writeLogLine(line) {
|
|
437
|
-
if (
|
|
437
|
+
if (_chunk4CPRZPRQjs.isJsonOutputMode.call(void 0, )) return;
|
|
438
438
|
if (!this.enabled) {
|
|
439
439
|
process.stderr.write(`${line}
|
|
440
440
|
`);
|
|
@@ -736,7 +736,7 @@ function buildEnvironmentContext() {
|
|
|
736
736
|
node_version: process.version,
|
|
737
737
|
runtime: "Node.js",
|
|
738
738
|
hostname: _os.hostname.call(void 0, ),
|
|
739
|
-
agent_runtime:
|
|
739
|
+
agent_runtime: _chunkZEQ3N6SIjs.detectAgentRuntime.call(void 0, )
|
|
740
740
|
};
|
|
741
741
|
for (const key of ["CLAUDE_CODE_REMOTE", "DEEPLINE_PLUGIN_MODE"]) {
|
|
742
742
|
const normalized = _optionalChain([process, 'access', _60 => _60.env, 'access', _61 => _61[key], 'optionalAccess', _62 => _62.trim, 'call', _63 => _63()]);
|
|
@@ -758,15 +758,15 @@ function buildEnvironmentContext() {
|
|
|
758
758
|
}
|
|
759
759
|
function failureReportHeaders(apiKey) {
|
|
760
760
|
return {
|
|
761
|
-
...
|
|
761
|
+
..._chunkZEQ3N6SIjs.deploymentProtectionHeaders.call(void 0, ),
|
|
762
762
|
Authorization: `Bearer ${apiKey}`,
|
|
763
763
|
"Content-Type": "application/json",
|
|
764
|
-
"User-Agent": `deepline-ts-sdk/${
|
|
764
|
+
"User-Agent": `deepline-ts-sdk/${_chunkZEQ3N6SIjs.SDK_VERSION}`,
|
|
765
765
|
"X-Deepline-Client-Family": "sdk",
|
|
766
766
|
"X-Deepline-CLI-Family": "sdk",
|
|
767
|
-
"X-Deepline-Agent-Runtime":
|
|
768
|
-
"X-Deepline-CLI-Version":
|
|
769
|
-
"X-Deepline-SDK-Version":
|
|
767
|
+
"X-Deepline-Agent-Runtime": _chunkZEQ3N6SIjs.detectAgentRuntime.call(void 0, ),
|
|
768
|
+
"X-Deepline-CLI-Version": _chunkZEQ3N6SIjs.SDK_VERSION,
|
|
769
|
+
"X-Deepline-SDK-Version": _chunkZEQ3N6SIjs.SDK_VERSION
|
|
770
770
|
};
|
|
771
771
|
}
|
|
772
772
|
async function postFailureReport(input) {
|
|
@@ -794,7 +794,7 @@ async function maybeReportAutomaticSkillsSyncFailure(input) {
|
|
|
794
794
|
if (isFailureReportingDisabled()) return false;
|
|
795
795
|
let apiKey = "";
|
|
796
796
|
try {
|
|
797
|
-
apiKey =
|
|
797
|
+
apiKey = _chunkZEQ3N6SIjs.resolveApiKeyForBaseUrl.call(void 0, input.baseUrl);
|
|
798
798
|
} catch (e9) {
|
|
799
799
|
return false;
|
|
800
800
|
}
|
|
@@ -821,7 +821,7 @@ async function maybeReportAutomaticSkillsSyncFailure(input) {
|
|
|
821
821
|
failure_code: failureCode2,
|
|
822
822
|
failure_stage: failureStage,
|
|
823
823
|
error_body: "Automatic Deepline skills installation failed.",
|
|
824
|
-
cli_version:
|
|
824
|
+
cli_version: _chunkZEQ3N6SIjs.SDK_VERSION,
|
|
825
825
|
context: {
|
|
826
826
|
environment: buildEnvironmentContext(),
|
|
827
827
|
skills_sync: {
|
|
@@ -941,7 +941,7 @@ function buildFailureReport(input) {
|
|
|
941
941
|
failure_kind: failureKind,
|
|
942
942
|
failure_code: code,
|
|
943
943
|
failure_stage: input.error === void 0 ? "command_exit" : "cli_main",
|
|
944
|
-
cli_version:
|
|
944
|
+
cli_version: _chunkZEQ3N6SIjs.SDK_VERSION,
|
|
945
945
|
context: {
|
|
946
946
|
base_url: redactFailureText(input.baseUrl, 400),
|
|
947
947
|
command_summary: sanitizeCommand(input.argv),
|
|
@@ -961,8 +961,8 @@ async function maybeReportSdkCliFailure(input) {
|
|
|
961
961
|
if (isServerLoggedPlayRunStartFailure(input)) return false;
|
|
962
962
|
const exitCode = resolvedExitCode(input);
|
|
963
963
|
if (!shouldReport({ exitCode, error: input.error })) return false;
|
|
964
|
-
const baseUrl =
|
|
965
|
-
const apiKey =
|
|
964
|
+
const baseUrl = _chunkZEQ3N6SIjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
|
|
965
|
+
const apiKey = _chunkZEQ3N6SIjs.resolveApiKeyForBaseUrl.call(void 0, baseUrl);
|
|
966
966
|
if (!apiKey) return false;
|
|
967
967
|
return postFailureReport({
|
|
968
968
|
baseUrl,
|
|
@@ -999,25 +999,25 @@ var CHECK_TIMEOUT_MS2 = 3e3;
|
|
|
999
999
|
var INSTALLER_PROBE_TIMEOUT_MS = 1e3;
|
|
1000
1000
|
var PUBLISHED_VERIFICATION_RETRY_MS = 5 * 6e4;
|
|
1001
1001
|
function shouldSkipSkillsSync() {
|
|
1002
|
-
if (
|
|
1002
|
+
if (_chunkZEQ3N6SIjs.detectAgentRuntime.call(void 0, ) === "claude_cowork" || isCiEnvironment()) {
|
|
1003
1003
|
return true;
|
|
1004
1004
|
}
|
|
1005
1005
|
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
1006
|
return value === "1" || value === "true" || value === "yes" || value === "on";
|
|
1007
1007
|
}
|
|
1008
1008
|
function unavailableSkillsNoticePath(baseUrl) {
|
|
1009
|
-
return _path.join.call(void 0,
|
|
1009
|
+
return _path.join.call(void 0, _chunkZEQ3N6SIjs.sdkCliStateDirPath.call(void 0, baseUrl), "skills-sync-unavailable-version");
|
|
1010
1010
|
}
|
|
1011
1011
|
var SKILLS_SYNC_IN_PROGRESS_TTL_MS = 10 * 60 * 1e3;
|
|
1012
1012
|
var SKILLS_SYNC_IN_PROGRESS_PID_CAP_MS = 6 * 60 * 60 * 1e3;
|
|
1013
|
-
var agentLeaseSegment =
|
|
1013
|
+
var agentLeaseSegment = _chunkZEQ3N6SIjs.skillsAgentPathSegment;
|
|
1014
1014
|
function sortedLeaseAgents(agents) {
|
|
1015
|
-
const expanded = agents.includes("*") ? [...agents, ...
|
|
1015
|
+
const expanded = agents.includes("*") ? [...agents, ..._chunkZEQ3N6SIjs.KNOWN_SKILL_AGENTS] : agents;
|
|
1016
1016
|
return [...new Set(expanded)].sort((a, b) => a.localeCompare(b));
|
|
1017
1017
|
}
|
|
1018
1018
|
function inProgressSkillsSyncPath(baseUrl, agent) {
|
|
1019
1019
|
return _path.join.call(void 0,
|
|
1020
|
-
|
|
1020
|
+
_chunkZEQ3N6SIjs.sdkCliStateDirPath.call(void 0, baseUrl),
|
|
1021
1021
|
`skills-sync-in-progress-${agentLeaseSegment(agent)}`
|
|
1022
1022
|
);
|
|
1023
1023
|
}
|
|
@@ -1176,7 +1176,7 @@ var SkillsStateUnavailableError = class extends Error {
|
|
|
1176
1176
|
constructor(baseUrl, error) {
|
|
1177
1177
|
const detail = error instanceof Error ? error.message : String(error);
|
|
1178
1178
|
super(
|
|
1179
|
-
`Could not save skills state in ${
|
|
1179
|
+
`Could not save skills state in ${_chunkZEQ3N6SIjs.sdkCliStateDirPath.call(void 0, baseUrl)}: ${detail}`
|
|
1180
1180
|
);
|
|
1181
1181
|
this.name = "SkillsStateUnavailableError";
|
|
1182
1182
|
}
|
|
@@ -1261,7 +1261,7 @@ function skillsInstallLeasePath(baseUrl, agents) {
|
|
|
1261
1261
|
}
|
|
1262
1262
|
function deferredSkillsNoticePath(baseUrl, agents) {
|
|
1263
1263
|
return _path.join.call(void 0,
|
|
1264
|
-
|
|
1264
|
+
_chunkZEQ3N6SIjs.sdkCliStateDirPath.call(void 0, baseUrl),
|
|
1265
1265
|
`skills-sync-notice-${sortedLeaseAgents(agents).map(agentLeaseSegment).join("-")}`
|
|
1266
1266
|
);
|
|
1267
1267
|
}
|
|
@@ -1295,8 +1295,8 @@ function flushDeferredSkillsNotices(baseUrl, agents) {
|
|
|
1295
1295
|
if (text.trim()) writeSdkSkillsStatusLine(text.trimEnd());
|
|
1296
1296
|
}
|
|
1297
1297
|
function flushDeferredSkillsSyncNotices(baseUrl) {
|
|
1298
|
-
if (shouldSkipSkillsSync() ||
|
|
1299
|
-
const agents =
|
|
1298
|
+
if (shouldSkipSkillsSync() || _chunkZEQ3N6SIjs.hasActivePluginSkills.call(void 0, )) return;
|
|
1299
|
+
const agents = _chunkZEQ3N6SIjs.resolveAutoSyncSkillAgents.call(void 0, );
|
|
1300
1300
|
if (agents.length === 0) return;
|
|
1301
1301
|
flushDeferredSkillsNotices(baseUrl, agents);
|
|
1302
1302
|
}
|
|
@@ -1312,7 +1312,7 @@ function spawnDetachedSkillsSyncChild(argv, onSpawnError) {
|
|
|
1312
1312
|
}
|
|
1313
1313
|
function failedSkillsSyncPath(baseUrl, agents) {
|
|
1314
1314
|
return _path.join.call(void 0,
|
|
1315
|
-
|
|
1315
|
+
_chunkZEQ3N6SIjs.sdkCliStateDirPath.call(void 0, baseUrl),
|
|
1316
1316
|
`skills-sync-failed-${sortedLeaseAgents(agents).map(agentLeaseSegment).join("-")}-version`
|
|
1317
1317
|
);
|
|
1318
1318
|
}
|
|
@@ -1341,7 +1341,7 @@ function writeUnavailableSkillsNotice(baseUrl, remoteVersion, skillNames, reason
|
|
|
1341
1341
|
if (hasMarkedSkillsSyncVersion(path, remoteVersion)) return;
|
|
1342
1342
|
writeMarkedSkillsSyncVersion(path, remoteVersion);
|
|
1343
1343
|
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,
|
|
1344
|
+
const manualCommand = _optionalChain([probes, 'optionalAccess', _93 => _93.npx]) === "missing" && probes.bunx !== "missing" ? `bunx ${buildBunxSkillsInstallArgs(baseUrl, skillNames, _chunkZEQ3N6SIjs.DEFAULT_SKILL_AGENTS).map(shellQuote).join(" ")}` : `npx ${buildSkillsInstallArgs(baseUrl, skillNames).join(" ")}`;
|
|
1345
1345
|
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
1346
|
notice(
|
|
1347
1347
|
`Deepline agent skills are out of date, but ${explanation} To install manually, run:
|
|
@@ -1429,7 +1429,7 @@ function buildSdkSkillNames(v1SkillNames2) {
|
|
|
1429
1429
|
return sortedUniqueSkillNames(v1SkillNames2);
|
|
1430
1430
|
}
|
|
1431
1431
|
function isDefaultAgentSet(agents) {
|
|
1432
|
-
return agents.length ===
|
|
1432
|
+
return agents.length === _chunkZEQ3N6SIjs.DEFAULT_SKILL_AGENTS.length && agents.every((agent, index) => agent === _chunkZEQ3N6SIjs.DEFAULT_SKILL_AGENTS[index]);
|
|
1433
1433
|
}
|
|
1434
1434
|
function safeSkillFilePath(value) {
|
|
1435
1435
|
if (typeof value !== "string" || !value) return false;
|
|
@@ -1586,10 +1586,10 @@ async function fetchSkillsUpdate(baseUrl, localVersion) {
|
|
|
1586
1586
|
method: "POST",
|
|
1587
1587
|
headers: { "Content-Type": "application/json" },
|
|
1588
1588
|
body: JSON.stringify({
|
|
1589
|
-
sdk_cli: { version:
|
|
1589
|
+
sdk_cli: { version: _chunkZEQ3N6SIjs.SDK_VERSION },
|
|
1590
1590
|
skills: {
|
|
1591
1591
|
version: localVersion,
|
|
1592
|
-
capability:
|
|
1592
|
+
capability: _chunkEWDWMTTDjs.SDK_RELEASE.packageCapabilities.skillsGuidance
|
|
1593
1593
|
}
|
|
1594
1594
|
}),
|
|
1595
1595
|
signal: controller.signal
|
|
@@ -1628,7 +1628,7 @@ function probeInstallers(timeoutMs) {
|
|
|
1628
1628
|
}
|
|
1629
1629
|
function noInstallerProbePath(baseUrl) {
|
|
1630
1630
|
return _path.join.call(void 0,
|
|
1631
|
-
|
|
1631
|
+
_chunkZEQ3N6SIjs.sdkCliStateDirPath.call(void 0, baseUrl),
|
|
1632
1632
|
"skills-sync-no-installer-unknown.json"
|
|
1633
1633
|
);
|
|
1634
1634
|
}
|
|
@@ -1707,7 +1707,7 @@ function temporarySkillsSyncSkipCommand() {
|
|
|
1707
1707
|
function resolveSkillsInstallSpawn(install, platform2 = process.platform) {
|
|
1708
1708
|
return resolveShellSpawn(install.command, install.args, platform2);
|
|
1709
1709
|
}
|
|
1710
|
-
function resolveSkillsInstallCommands(baseUrl, skillNames = DEFAULT_SDK_SKILL_NAMES, agents =
|
|
1710
|
+
function resolveSkillsInstallCommands(baseUrl, skillNames = DEFAULT_SDK_SKILL_NAMES, agents = _chunkZEQ3N6SIjs.DEFAULT_SKILL_AGENTS, knownProbes) {
|
|
1711
1711
|
const commands = [];
|
|
1712
1712
|
const probes = _nullishCoalesce(knownProbes, () => ( probeInstallers()));
|
|
1713
1713
|
if (probes.bunx === "available") {
|
|
@@ -1859,11 +1859,11 @@ function writeSdkSkillsStatusLine(line) {
|
|
|
1859
1859
|
}
|
|
1860
1860
|
async function syncSdkSkillsIfNeeded(baseUrl, options = {}) {
|
|
1861
1861
|
if (shouldSkipSkillsSync()) return;
|
|
1862
|
-
const usingPluginSkills =
|
|
1862
|
+
const usingPluginSkills = _chunkZEQ3N6SIjs.hasActivePluginSkills.call(void 0, );
|
|
1863
1863
|
if (usingPluginSkills) {
|
|
1864
1864
|
return;
|
|
1865
1865
|
}
|
|
1866
|
-
const agents =
|
|
1866
|
+
const agents = _chunkZEQ3N6SIjs.resolveAutoSyncSkillAgents.call(void 0, );
|
|
1867
1867
|
if (options.mode === "detached" && agents.length > 0) {
|
|
1868
1868
|
flushDeferredSkillsNotices(baseUrl, agents);
|
|
1869
1869
|
}
|
|
@@ -1891,7 +1891,7 @@ async function syncSdkSkillsIfNeeded(baseUrl, options = {}) {
|
|
|
1891
1891
|
return;
|
|
1892
1892
|
}
|
|
1893
1893
|
try {
|
|
1894
|
-
const localVersion =
|
|
1894
|
+
const localVersion = _chunkZEQ3N6SIjs.readSdkSkillsLocalVersion.call(void 0, baseUrl);
|
|
1895
1895
|
const update = options.update === void 0 ? claimedVersion ? { needsUpdate: true, remoteVersion: claimedVersion } : await fetchSkillsUpdate(baseUrl, localVersion) : options.update ? {
|
|
1896
1896
|
needsUpdate: options.update.needs_update,
|
|
1897
1897
|
remoteVersion: options.update.remote.version
|
|
@@ -2057,7 +2057,7 @@ async function runInlineSkillsSync(baseUrl, remoteVersion, agents, notices) {
|
|
|
2057
2057
|
}
|
|
2058
2058
|
}
|
|
2059
2059
|
runLegacySkillsCleanup(agents);
|
|
2060
|
-
if (!
|
|
2060
|
+
if (!_chunkZEQ3N6SIjs.writeSdkSkillsLocalVersion.call(void 0, baseUrl, update.remoteVersion, agents)) {
|
|
2061
2061
|
notice(
|
|
2062
2062
|
"Deepline agent skills installed, but the local skills version could not be recorded. A later command will retry the refresh."
|
|
2063
2063
|
);
|
|
@@ -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.414",
|
|
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."
|
|
@@ -4,18 +4,18 @@ import {
|
|
|
4
4
|
resolveUpdatePlan,
|
|
5
5
|
runAutomaticUpdatePlan,
|
|
6
6
|
shouldRunCliAutoUpdate
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-M2V34XOG.mjs";
|
|
8
8
|
import {
|
|
9
9
|
isCiEnvironment
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-VOTKMPYY.mjs";
|
|
11
11
|
import {
|
|
12
12
|
addJsonNotice,
|
|
13
13
|
isJsonOutputMode
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-3PBK7PHE.mjs";
|
|
15
15
|
import {
|
|
16
16
|
SDK_VERSION,
|
|
17
17
|
resolveApiKeyForBaseUrl
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-S6ZBXS7N.mjs";
|
|
19
19
|
|
|
20
20
|
// src/cli/compatibility-catalog.ts
|
|
21
21
|
var readers = /* @__PURE__ */ new WeakMap();
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
traceCliSpan
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-EFD5CW26.mjs";
|
|
4
4
|
import {
|
|
5
5
|
checkSdkCompatibility,
|
|
6
6
|
enforceSdkCompatibilityResponse,
|
|
7
7
|
flushDeferredSkillsSyncNotices
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-VOTKMPYY.mjs";
|
|
9
9
|
|
|
10
10
|
// src/cli/play-run-admission.ts
|
|
11
11
|
function usesInlinePlayAdmission(command, args) {
|