deepline 0.3.489 → 0.3.490
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bundling-sources/sdk/src/release.ts +1 -1
- package/dist/bundling-sources/shared_libs/observability/scheduled-jobs.json +18 -0
- package/dist/bundling-sources/shared_libs/play-runtime/direct-admission-deadline.ts +3 -1
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/postgres.ts +10 -0
- package/dist/cli/auth-AW34RGV5.js +43 -0
- package/dist/cli/{auth-5RIU6GT7.mjs → auth-RL6LOZGC.mjs} +5 -5
- package/dist/cli/{billing-T4TMPRFS.mjs → billing-33THO76F.mjs} +6 -6
- package/dist/cli/{billing-T5MAGF25.js → billing-LIDDSOSY.js} +79 -79
- package/dist/cli/{chunk-Y3SG26KP.mjs → chunk-27IBWHR5.mjs} +4 -4
- package/dist/cli/{chunk-35N4S2E6.mjs → chunk-2HYJU4LJ.mjs} +1 -1
- package/dist/cli/{chunk-QXWE6PHI.mjs → chunk-3M5VPIRL.mjs} +2 -2
- package/dist/cli/{chunk-IAYSWZDJ.js → chunk-4IP5MLWU.js} +1 -1
- package/dist/cli/{chunk-6V7KVRR5.js → chunk-4OLXMJ2L.js} +13 -2
- package/dist/cli/{chunk-FL7NHJTS.js → chunk-63TNO23X.js} +15 -15
- package/dist/cli/{chunk-5DEJ3TLB.js → chunk-6TTPAGNX.js} +7 -7
- package/dist/cli/{chunk-LMUOUIBV.mjs → chunk-7W53Y4VH.mjs} +5 -5
- package/dist/cli/{chunk-WRJ6MEY5.mjs → chunk-A3D677RX.mjs} +1 -1
- package/dist/cli/{chunk-6FMP5XRF.js → chunk-B7MPY7WH.js} +6 -6
- package/dist/cli/{chunk-ZICPJKMP.mjs → chunk-BL5Q5JY7.mjs} +5 -5
- package/dist/cli/{chunk-TMQ3PCSY.mjs → chunk-CB7IFKXN.mjs} +2 -2
- package/dist/cli/{chunk-J7EENGKJ.mjs → chunk-CGDUFVNE.mjs} +2 -2
- package/dist/cli/{chunk-H66YVVT7.mjs → chunk-CSSOP7XG.mjs} +2 -2
- package/dist/cli/{chunk-JVHOS3K3.mjs → chunk-DEJIN4DF.mjs} +1 -1
- package/dist/cli/{chunk-RI2PLVD4.js → chunk-E26477MJ.js} +7 -7
- package/dist/cli/{chunk-UYZNRLDE.js → chunk-EPQZ42PY.js} +1 -1
- package/dist/cli/{chunk-FFDWL5N2.js → chunk-FDYCUA7A.js} +16 -16
- package/dist/cli/{chunk-K2RUSHZ7.js → chunk-FPYESYBO.js} +4 -4
- package/dist/cli/{chunk-INW22YP7.mjs → chunk-FTXIJTV2.mjs} +3 -5
- package/dist/cli/{chunk-UI67QLIR.js → chunk-HHGAY2A4.js} +53 -53
- package/dist/cli/{chunk-CSBMKHTV.js → chunk-HHTVRICE.js} +17 -17
- package/dist/cli/{chunk-LM5UIDFA.js → chunk-IFGBL3US.js} +7 -7
- package/dist/cli/{chunk-OTQ2CO6M.mjs → chunk-J5HMAZ34.mjs} +2 -2
- package/dist/cli/{chunk-2QUROYZU.mjs → chunk-JC2M6XG2.mjs} +1 -1
- package/dist/cli/{chunk-L2GMFNAO.mjs → chunk-JSYCPTG6.mjs} +3 -3
- package/dist/cli/{chunk-G7POOFBJ.mjs → chunk-JTYKW3UL.mjs} +2 -2
- package/dist/cli/{chunk-S4F2R2LO.js → chunk-L7QSZAF6.js} +9 -9
- package/dist/cli/{chunk-3S5VBG6Z.mjs → chunk-LQIKW55V.mjs} +2 -2
- package/dist/cli/{chunk-GW6HV7Z7.js → chunk-LZ37B62K.js} +7 -7
- package/dist/cli/{chunk-RACN23LT.mjs → chunk-MBQZMHE6.mjs} +18 -4
- package/dist/cli/{chunk-QJ4FWKUU.mjs → chunk-MDKAPUN2.mjs} +2 -2
- package/dist/cli/{chunk-C55LNEUF.mjs → chunk-MEYQOZPF.mjs} +1 -1
- package/dist/cli/{chunk-DHAJSTSH.mjs → chunk-NRM5OWH2.mjs} +6 -6
- package/dist/cli/{chunk-YEX3VNAY.mjs → chunk-OFCP66VS.mjs} +2 -2
- package/dist/cli/{chunk-4GWEZPZR.mjs → chunk-PIENQTDE.mjs} +1 -1
- package/dist/cli/{chunk-F3TDT57M.js → chunk-PVMN4OE2.js} +5 -5
- package/dist/cli/{chunk-VP65YKOA.js → chunk-QC6QUFKY.js} +5 -5
- package/dist/cli/{chunk-S5PMBDY6.mjs → chunk-QWJZSPCV.mjs} +12 -12
- package/dist/cli/{chunk-SZHNIKTR.js → chunk-QZPJWFGD.js} +26 -26
- package/dist/cli/{chunk-FNKSRKTA.js → chunk-SGG3TERP.js} +3 -3
- package/dist/cli/{chunk-4EFD6R2V.js → chunk-TCBYQX5N.js} +52 -38
- package/dist/cli/{chunk-Q2EIZKVX.mjs → chunk-TKLDKIJU.mjs} +12 -1
- package/dist/cli/{chunk-6PHHQDM6.mjs → chunk-TVZJ6XWM.mjs} +1 -1
- package/dist/cli/{chunk-YSB44HZB.js → chunk-UQXHBCHU.js} +2 -2
- package/dist/cli/{chunk-DY7T6VNT.js → chunk-UTKNSD6T.js} +21 -21
- package/dist/cli/{chunk-NBHCEVWY.mjs → chunk-V47SUOAE.mjs} +4 -4
- package/dist/cli/{chunk-I4NWMPT3.js → chunk-WNVZV6VK.js} +53 -53
- package/dist/cli/{chunk-R23HZ6AV.js → chunk-XSGJKXMP.js} +2 -2
- package/dist/cli/{chunk-WIKIF67Q.js → chunk-Y2KHSQEF.js} +8 -8
- package/dist/cli/{chunk-LOX3BISD.js → chunk-YNWET57Z.js} +9 -11
- package/dist/cli/{chunk-FH7ZABHW.js → chunk-YPUDIEZX.js} +261 -261
- package/dist/cli/{chunk-UZ7VPOTA.js → chunk-YYN2O43C.js} +3 -3
- package/dist/cli/{chunk-7R243PYK.mjs → chunk-Z7W6VJFN.mjs} +1 -1
- package/dist/cli/{csv-XTKN255I.js → csv-PLJNQPLE.js} +13 -13
- package/dist/cli/{csv-WAD54M7T.mjs → csv-TELSH4ND.mjs} +4 -4
- package/dist/cli/{db-2ELZMJFC.mjs → db-GISAU665.mjs} +6 -6
- package/dist/cli/{db-TTS6Y4FI.js → db-QDJ6GWF5.js} +27 -27
- package/dist/cli/{describe-Z7GWMGKU.mjs → describe-F4K54VXB.mjs} +21 -20
- package/dist/cli/describe-R6NVISAS.js +50 -0
- package/dist/cli/describe-core.js +4 -4
- package/dist/cli/describe-core.mjs +3 -3
- package/dist/cli/{executions-2TQH54AB.mjs → executions-3QE7MRBG.mjs} +6 -6
- package/dist/cli/{executions-WUBVVJXN.js → executions-VKUTKQNN.js} +8 -8
- package/dist/cli/{feedback-6KAY4LE6.js → feedback-HH5AUYLA.js} +8 -8
- package/dist/cli/{feedback-QI75ZVF2.mjs → feedback-JU7PJGDL.mjs} +4 -4
- package/dist/cli/getting-started.d.mts +17 -2
- package/dist/cli/getting-started.d.ts +17 -2
- package/dist/cli/getting-started.js +8 -2
- package/dist/cli/getting-started.mjs +9 -3
- package/dist/cli/{git-3PI2SXVS.mjs → git-ACXH7K7D.mjs} +5 -5
- package/dist/cli/git-CXRU4CRW.js +25 -0
- package/dist/cli/index.js +138 -137
- package/dist/cli/index.mjs +41 -40
- package/dist/cli/{legacy-noops-SIDE3HLT.mjs → legacy-noops-IOAZ3YJ2.mjs} +5 -5
- package/dist/cli/{legacy-noops-BNEVRTQT.js → legacy-noops-NRPYJZOP.js} +8 -8
- package/dist/cli/{monitors-WRWVVXUZ.js → monitors-4SKMAAMR.js} +91 -91
- package/dist/cli/{monitors-BYQ5V5MX.mjs → monitors-PMQUOIOI.mjs} +7 -7
- package/dist/cli/{org-KWCSSJ3Y.js → org-WJM7X6WB.js} +72 -72
- package/dist/cli/{org-OZNDX3G2.mjs → org-XNT3W6OU.mjs} +6 -6
- package/dist/cli/{pages-OQVOMVF5.js → pages-WXY4GGZG.js} +17 -17
- package/dist/cli/{pages-DXU3TNND.mjs → pages-Y3JKBS4B.mjs} +6 -6
- package/dist/cli/{play-6D7U66KO.js → play-NKSRPIAV.js} +321 -321
- package/dist/cli/{play-ZFG4HDDX.mjs → play-NPWWAQYK.mjs} +18 -18
- package/dist/cli/{providers-4RRQIK3Q.mjs → providers-CUIKFE6F.mjs} +6 -6
- package/dist/cli/{providers-H7R3Z5HS.js → providers-VNPJHXK5.js} +9 -9
- package/dist/cli/{quickstart-FQ5E5G6O.js → quickstart-6OTS2HDR.js} +13 -13
- package/dist/cli/{quickstart-TFKRPMCH.mjs → quickstart-PJYPKFZI.mjs} +5 -5
- package/dist/cli/{run-QRDJTXKB.js → run-2DLJBYFC.js} +41 -40
- package/dist/cli/{run-GRCGGUUM.mjs → run-AGX3EUK4.mjs} +26 -25
- package/dist/cli/{search-OEVSDE3U.mjs → search-DVIEJ2UQ.mjs} +7 -7
- package/dist/cli/search-Y7VFEFJJ.js +32 -0
- package/dist/cli/{search-output-F6KBWKT2.js → search-output-PFLNDCA7.js} +6 -6
- package/dist/cli/{search-output-VK5ZDVKL.mjs → search-output-TXSIPSPS.mjs} +4 -4
- package/dist/cli/{secrets-KKAAZENS.js → secrets-O5OQTFVD.js} +15 -15
- package/dist/cli/{secrets-DCRVVQV2.mjs → secrets-OAGXFXEX.mjs} +6 -6
- package/dist/cli/{sessions-XVBIXCXU.mjs → sessions-GBR5PGB6.mjs} +5 -5
- package/dist/cli/{sessions-FDHENJVG.js → sessions-WT7P3F73.js} +6 -6
- package/dist/cli/{settings-OBVR52US.mjs → settings-KGNBIFOU.mjs} +12 -11
- package/dist/cli/{settings-36HMWFAP.js → settings-U7UNDUDB.js} +79 -78
- package/dist/cli/{setup-M6OWOPMB.js → setup-4MZNDFKM.js} +60 -55
- package/dist/cli/{setup-KFYQZYP3.mjs → setup-PYWSU4YM.mjs} +17 -12
- package/dist/cli/{skills-AZDPA6IQ.mjs → skills-7Y6OBM7Z.mjs} +10 -7
- package/dist/cli/skills-BQC2323O.js +36 -0
- package/dist/cli/tools-732SZ4KV.js +57 -0
- package/dist/cli/{tools-F6XEUK7H.mjs → tools-O7L435CR.mjs} +19 -18
- package/dist/cli/update-PCYIUORM.js +34 -0
- package/dist/cli/{update-QMGJRICE.mjs → update-SPHIBY5L.mjs} +10 -9
- package/dist/cli/{workflow-M4YPUASM.js → workflow-GTDKPIEV.js} +17 -17
- package/dist/cli/{workflow-L5WNCAPB.mjs → workflow-ZRYO5J3K.mjs} +7 -7
- package/dist/index.js +9 -9
- package/dist/index.mjs +6 -6
- package/dist/install-integrity.json +106 -106
- package/dist/release.d.mts +1 -1
- package/dist/release.d.ts +1 -1
- package/dist/release.js +2 -2
- package/dist/release.mjs +1 -1
- package/dist/server.js +5 -5
- package/dist/server.mjs +3 -3
- package/package.json +1 -1
- package/dist/cli/auth-PSIS3XA6.js +0 -43
- package/dist/cli/describe-2V7H5LJP.js +0 -49
- package/dist/cli/git-DCADFTQ6.js +0 -25
- package/dist/cli/search-2FB7WQUS.js +0 -32
- package/dist/cli/skills-URCPOKZZ.js +0 -33
- package/dist/cli/tools-4G5J5NQP.js +0 -56
- package/dist/cli/update-UWVL2OYA.js +0 -33
|
@@ -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 _chunkSGG3TERPjs = require('./chunk-SGG3TERP.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
@@ -12,7 +12,7 @@ var _chunkFNKSRKTAjs = require('./chunk-FNKSRKTA.js');
|
|
|
12
12
|
|
|
13
13
|
|
|
14
14
|
|
|
15
|
-
var
|
|
15
|
+
var _chunkYYN2O43Cjs = require('./chunk-YYN2O43C.js');
|
|
16
16
|
|
|
17
17
|
|
|
18
18
|
|
|
@@ -20,13 +20,13 @@ var _chunkUZ7VPOTAjs = require('./chunk-UZ7VPOTA.js');
|
|
|
20
20
|
|
|
21
21
|
|
|
22
22
|
|
|
23
|
-
var
|
|
23
|
+
var _chunkFPYESYBOjs = require('./chunk-FPYESYBO.js');
|
|
24
24
|
|
|
25
25
|
|
|
26
26
|
var _chunkDIAWYWT5js = require('./chunk-DIAWYWT5.js');
|
|
27
27
|
|
|
28
28
|
|
|
29
|
-
var
|
|
29
|
+
var _chunkEPQZ42PYjs = require('./chunk-EPQZ42PY.js');
|
|
30
30
|
|
|
31
31
|
// src/compat.ts
|
|
32
32
|
var _crypto = require('crypto');
|
|
@@ -61,7 +61,7 @@ function shouldSkipCompatibilityCheck() {
|
|
|
61
61
|
return value === "1" || value === "true" || value === "yes";
|
|
62
62
|
}
|
|
63
63
|
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, )) {
|
|
64
|
-
return _path.join.call(void 0,
|
|
64
|
+
return _path.join.call(void 0, _chunkYYN2O43Cjs.sdkCliStateDirPath.call(void 0, baseUrl, homeDir), "compat-cache.json");
|
|
65
65
|
}
|
|
66
66
|
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, )) {
|
|
67
67
|
return _path.join.call(void 0, homeDir, ".cache", "deepline", "sdk-compat-cache.json");
|
|
@@ -69,9 +69,9 @@ function legacySdkCompatibilityCachePath(homeDir = _optionalChain([process, 'acc
|
|
|
69
69
|
function compatibilityCacheKey(baseUrl, command, skillsVersion) {
|
|
70
70
|
return JSON.stringify({
|
|
71
71
|
baseUrl: baseUrl.replace(/\/$/, ""),
|
|
72
|
-
version:
|
|
73
|
-
apiContract:
|
|
74
|
-
apiMajor:
|
|
72
|
+
version: _chunkFPYESYBOjs.SDK_VERSION,
|
|
73
|
+
apiContract: _chunkFPYESYBOjs.SDK_API_CONTRACT,
|
|
74
|
+
apiMajor: _chunkFPYESYBOjs.SDK_API_MAJOR,
|
|
75
75
|
command: _optionalChain([command, 'optionalAccess', _15 => _15.trim, 'call', _16 => _16()]) || null,
|
|
76
76
|
skillsVersion: _nullishCoalesce(skillsVersion, () => ( null))
|
|
77
77
|
});
|
|
@@ -79,8 +79,8 @@ function compatibilityCacheKey(baseUrl, command, skillsVersion) {
|
|
|
79
79
|
function legacyCompatibilityCacheKey(baseUrl, command) {
|
|
80
80
|
return JSON.stringify({
|
|
81
81
|
baseUrl: baseUrl.replace(/\/$/, ""),
|
|
82
|
-
version:
|
|
83
|
-
apiContract:
|
|
82
|
+
version: _chunkFPYESYBOjs.SDK_VERSION,
|
|
83
|
+
apiContract: _chunkFPYESYBOjs.SDK_API_CONTRACT,
|
|
84
84
|
command: _optionalChain([command, 'optionalAccess', _17 => _17.trim, 'call', _18 => _18()]) || null
|
|
85
85
|
});
|
|
86
86
|
}
|
|
@@ -105,7 +105,7 @@ function isSavedWithin(savedAt, windowMs, now) {
|
|
|
105
105
|
}
|
|
106
106
|
var UPDATE_ADVISORY_INTERVAL_MS = 24 * 60 * 60 * 1e3;
|
|
107
107
|
function claimUpdateAdvisory(baseUrl, now = Date.now()) {
|
|
108
|
-
const path = _path.join.call(void 0,
|
|
108
|
+
const path = _path.join.call(void 0, _chunkYYN2O43Cjs.sdkCliStateDirPath.call(void 0, baseUrl), "update-advisory.json");
|
|
109
109
|
try {
|
|
110
110
|
const { shownAt } = JSON.parse(_fs.readFileSync.call(void 0, path, "utf8"));
|
|
111
111
|
if (isSavedWithin(shownAt, UPDATE_ADVISORY_INTERVAL_MS, now)) return false;
|
|
@@ -192,7 +192,7 @@ async function checkSdkCompatibility(baseUrl, options = {}) {
|
|
|
192
192
|
);
|
|
193
193
|
try {
|
|
194
194
|
const url = new URL("/api/v2/sdk/compat", baseUrl);
|
|
195
|
-
url.searchParams.set("version",
|
|
195
|
+
url.searchParams.set("version", _chunkFPYESYBOjs.SDK_VERSION);
|
|
196
196
|
if (_optionalChain([options, 'access', _34 => _34.command, 'optionalAccess', _35 => _35.trim, 'call', _36 => _36()])) {
|
|
197
197
|
url.searchParams.set("command", options.command.trim());
|
|
198
198
|
}
|
|
@@ -200,7 +200,7 @@ async function checkSdkCompatibility(baseUrl, options = {}) {
|
|
|
200
200
|
url.searchParams.set("skills_version", _nullishCoalesce(options.skillsVersion, () => ( "")));
|
|
201
201
|
url.searchParams.set(
|
|
202
202
|
"skills_cli_capability",
|
|
203
|
-
String(
|
|
203
|
+
String(_chunkEPQZ42PYjs.SDK_RELEASE.packageCapabilities.skillsGuidance)
|
|
204
204
|
);
|
|
205
205
|
}
|
|
206
206
|
if (options.catalog) {
|
|
@@ -212,14 +212,14 @@ async function checkSdkCompatibility(baseUrl, options = {}) {
|
|
|
212
212
|
const response = await fetch(url, {
|
|
213
213
|
method: "GET",
|
|
214
214
|
headers: {
|
|
215
|
-
...
|
|
216
|
-
"User-Agent": `deepline-ts-sdk/${
|
|
217
|
-
"X-Deepline-SDK-Version":
|
|
218
|
-
"X-Deepline-API-Major": String(
|
|
219
|
-
"X-Deepline-API-Contract":
|
|
215
|
+
..._chunkFPYESYBOjs.deploymentProtectionHeaders.call(void 0, ),
|
|
216
|
+
"User-Agent": `deepline-ts-sdk/${_chunkFPYESYBOjs.SDK_VERSION}`,
|
|
217
|
+
"X-Deepline-SDK-Version": _chunkFPYESYBOjs.SDK_VERSION,
|
|
218
|
+
"X-Deepline-API-Major": String(_chunkFPYESYBOjs.SDK_API_MAJOR),
|
|
219
|
+
"X-Deepline-API-Contract": _chunkFPYESYBOjs.SDK_API_CONTRACT,
|
|
220
220
|
"X-Deepline-CLI-Update-Preferences": "1",
|
|
221
221
|
"X-Deepline-CLI-Auto-Update-Capability": SDK_CLI_AUTO_UPDATE_CAPABILITY,
|
|
222
|
-
...options.catalog ? { Authorization: `Bearer ${
|
|
222
|
+
...options.catalog ? { Authorization: `Bearer ${_chunkYYN2O43Cjs.resolveApiKeyForBaseUrl.call(void 0, baseUrl)}` } : {},
|
|
223
223
|
..._optionalChain([options, 'access', _37 => _37.catalog, 'optionalAccess', _38 => _38.cliInvocationId]) ? { "X-Deepline-CLI-Invocation-ID": options.catalog.cliInvocationId } : {}
|
|
224
224
|
},
|
|
225
225
|
signal: controller.signal
|
|
@@ -388,7 +388,7 @@ function skillsSourceUrl(baseUrl) {
|
|
|
388
388
|
function buildSkillsAddArgs(baseUrl, skillName, options = {}) {
|
|
389
389
|
const skillNames = Array.isArray(skillName) ? skillName : [skillName];
|
|
390
390
|
const [firstSkillName, ...extraSkillNames] = skillNames;
|
|
391
|
-
const agents = _nullishCoalesce(options.agents, () => (
|
|
391
|
+
const agents = _nullishCoalesce(options.agents, () => ( _chunkYYN2O43Cjs.DEFAULT_SKILL_AGENTS));
|
|
392
392
|
const values = {
|
|
393
393
|
skills_index_url: skillsIndexUrl(baseUrl),
|
|
394
394
|
skills_source_url: skillsSourceUrl(baseUrl),
|
|
@@ -607,7 +607,7 @@ function buildEnvironmentContext() {
|
|
|
607
607
|
node_version: process.version,
|
|
608
608
|
runtime: "Node.js",
|
|
609
609
|
hostname: _os.hostname.call(void 0, ),
|
|
610
|
-
agent_runtime:
|
|
610
|
+
agent_runtime: _chunkFPYESYBOjs.detectAgentRuntime.call(void 0, )
|
|
611
611
|
};
|
|
612
612
|
for (const key of ["CLAUDE_CODE_REMOTE", "DEEPLINE_PLUGIN_MODE"]) {
|
|
613
613
|
const normalized = _optionalChain([process, 'access', _57 => _57.env, 'access', _58 => _58[key], 'optionalAccess', _59 => _59.trim, 'call', _60 => _60()]);
|
|
@@ -628,18 +628,18 @@ function buildEnvironmentContext() {
|
|
|
628
628
|
return context;
|
|
629
629
|
}
|
|
630
630
|
function failureReportHeaders(apiKey) {
|
|
631
|
-
const agentSessionId =
|
|
631
|
+
const agentSessionId = _chunkFPYESYBOjs.agentSessionIdFromEnvironment.call(void 0, );
|
|
632
632
|
return {
|
|
633
|
-
...
|
|
633
|
+
..._chunkFPYESYBOjs.deploymentProtectionHeaders.call(void 0, ),
|
|
634
634
|
...agentSessionId ? { "X-Deepline-Agent-Session-Id": agentSessionId } : {},
|
|
635
635
|
Authorization: `Bearer ${apiKey}`,
|
|
636
636
|
"Content-Type": "application/json",
|
|
637
|
-
"User-Agent": `deepline-ts-sdk/${
|
|
637
|
+
"User-Agent": `deepline-ts-sdk/${_chunkFPYESYBOjs.SDK_VERSION}`,
|
|
638
638
|
"X-Deepline-Client-Family": "sdk",
|
|
639
639
|
"X-Deepline-CLI-Family": "sdk",
|
|
640
|
-
"X-Deepline-Agent-Runtime":
|
|
641
|
-
"X-Deepline-CLI-Version":
|
|
642
|
-
"X-Deepline-SDK-Version":
|
|
640
|
+
"X-Deepline-Agent-Runtime": _chunkFPYESYBOjs.detectAgentRuntime.call(void 0, ),
|
|
641
|
+
"X-Deepline-CLI-Version": _chunkFPYESYBOjs.SDK_VERSION,
|
|
642
|
+
"X-Deepline-SDK-Version": _chunkFPYESYBOjs.SDK_VERSION
|
|
643
643
|
};
|
|
644
644
|
}
|
|
645
645
|
async function postFailureReport(input) {
|
|
@@ -667,7 +667,7 @@ async function maybeReportAutomaticSkillsSyncFailure(input) {
|
|
|
667
667
|
if (isFailureReportingDisabled()) return false;
|
|
668
668
|
let apiKey = "";
|
|
669
669
|
try {
|
|
670
|
-
apiKey =
|
|
670
|
+
apiKey = _chunkYYN2O43Cjs.resolveApiKeyForBaseUrl.call(void 0, input.baseUrl);
|
|
671
671
|
} catch (e9) {
|
|
672
672
|
return false;
|
|
673
673
|
}
|
|
@@ -694,7 +694,7 @@ async function maybeReportAutomaticSkillsSyncFailure(input) {
|
|
|
694
694
|
failure_code: failureCode2,
|
|
695
695
|
failure_stage: failureStage,
|
|
696
696
|
error_body: "Automatic Deepline skills installation failed.",
|
|
697
|
-
cli_version:
|
|
697
|
+
cli_version: _chunkFPYESYBOjs.SDK_VERSION,
|
|
698
698
|
context: {
|
|
699
699
|
environment: buildEnvironmentContext(),
|
|
700
700
|
skills_sync: {
|
|
@@ -814,7 +814,7 @@ function buildFailureReport(input) {
|
|
|
814
814
|
failure_kind: failureKind,
|
|
815
815
|
failure_code: code,
|
|
816
816
|
failure_stage: input.error === void 0 ? "command_exit" : "cli_main",
|
|
817
|
-
cli_version:
|
|
817
|
+
cli_version: _chunkFPYESYBOjs.SDK_VERSION,
|
|
818
818
|
context: {
|
|
819
819
|
base_url: redactFailureText(input.baseUrl, 400),
|
|
820
820
|
command_summary: sanitizeCommand(input.argv),
|
|
@@ -834,8 +834,8 @@ async function maybeReportSdkCliFailure(input) {
|
|
|
834
834
|
if (isServerLoggedPlayRunStartFailure(input)) return false;
|
|
835
835
|
const exitCode = resolvedExitCode(input);
|
|
836
836
|
if (!shouldReport({ exitCode, error: input.error })) return false;
|
|
837
|
-
const baseUrl =
|
|
838
|
-
const apiKey =
|
|
837
|
+
const baseUrl = _chunkYYN2O43Cjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
|
|
838
|
+
const apiKey = _chunkYYN2O43Cjs.resolveApiKeyForBaseUrl.call(void 0, baseUrl);
|
|
839
839
|
if (!apiKey) return false;
|
|
840
840
|
return postFailureReport({
|
|
841
841
|
baseUrl,
|
|
@@ -872,25 +872,25 @@ var CHECK_TIMEOUT_MS2 = 3e3;
|
|
|
872
872
|
var INSTALLER_PROBE_TIMEOUT_MS = 1e3;
|
|
873
873
|
var PUBLISHED_VERIFICATION_RETRY_MS = 5 * 6e4;
|
|
874
874
|
function shouldSkipSkillsSync() {
|
|
875
|
-
if (
|
|
875
|
+
if (_chunkFPYESYBOjs.detectAgentRuntime.call(void 0, ) === "claude_cowork" || isCiEnvironment()) {
|
|
876
876
|
return true;
|
|
877
877
|
}
|
|
878
878
|
const value = _optionalChain([process, 'access', _81 => _81.env, 'access', _82 => _82.DEEPLINE_SKIP_SKILLS_SYNC, 'optionalAccess', _83 => _83.trim, 'call', _84 => _84(), 'access', _85 => _85.toLowerCase, 'call', _86 => _86()]);
|
|
879
879
|
return value === "1" || value === "true" || value === "yes" || value === "on";
|
|
880
880
|
}
|
|
881
881
|
function unavailableSkillsNoticePath(baseUrl) {
|
|
882
|
-
return _path.join.call(void 0,
|
|
882
|
+
return _path.join.call(void 0, _chunkYYN2O43Cjs.sdkCliStateDirPath.call(void 0, baseUrl), "skills-sync-unavailable-version");
|
|
883
883
|
}
|
|
884
884
|
var SKILLS_SYNC_IN_PROGRESS_TTL_MS = 10 * 60 * 1e3;
|
|
885
885
|
var SKILLS_SYNC_IN_PROGRESS_PID_CAP_MS = 6 * 60 * 60 * 1e3;
|
|
886
|
-
var agentLeaseSegment =
|
|
886
|
+
var agentLeaseSegment = _chunkYYN2O43Cjs.skillsAgentPathSegment;
|
|
887
887
|
function sortedLeaseAgents(agents) {
|
|
888
|
-
const expanded = agents.includes("*") ? [...agents, ...
|
|
888
|
+
const expanded = agents.includes("*") ? [...agents, ..._chunkYYN2O43Cjs.KNOWN_SKILL_AGENTS] : agents;
|
|
889
889
|
return [...new Set(expanded)].sort((a, b) => a.localeCompare(b));
|
|
890
890
|
}
|
|
891
891
|
function inProgressSkillsSyncPath(baseUrl, agent) {
|
|
892
892
|
return _path.join.call(void 0,
|
|
893
|
-
|
|
893
|
+
_chunkYYN2O43Cjs.sdkCliStateDirPath.call(void 0, baseUrl),
|
|
894
894
|
`skills-sync-in-progress-${agentLeaseSegment(agent)}`
|
|
895
895
|
);
|
|
896
896
|
}
|
|
@@ -1049,7 +1049,7 @@ var SkillsStateUnavailableError = class extends Error {
|
|
|
1049
1049
|
constructor(baseUrl, error) {
|
|
1050
1050
|
const detail = error instanceof Error ? error.message : String(error);
|
|
1051
1051
|
super(
|
|
1052
|
-
`Could not save skills state in ${
|
|
1052
|
+
`Could not save skills state in ${_chunkYYN2O43Cjs.sdkCliStateDirPath.call(void 0, baseUrl)}: ${detail}`
|
|
1053
1053
|
);
|
|
1054
1054
|
this.name = "SkillsStateUnavailableError";
|
|
1055
1055
|
}
|
|
@@ -1134,7 +1134,7 @@ function skillsInstallLeasePath(baseUrl, agents) {
|
|
|
1134
1134
|
}
|
|
1135
1135
|
function deferredSkillsNoticePath(baseUrl, agents) {
|
|
1136
1136
|
return _path.join.call(void 0,
|
|
1137
|
-
|
|
1137
|
+
_chunkYYN2O43Cjs.sdkCliStateDirPath.call(void 0, baseUrl),
|
|
1138
1138
|
`skills-sync-notice-${sortedLeaseAgents(agents).map(agentLeaseSegment).join("-")}`
|
|
1139
1139
|
);
|
|
1140
1140
|
}
|
|
@@ -1168,8 +1168,8 @@ function flushDeferredSkillsNotices(baseUrl, agents) {
|
|
|
1168
1168
|
if (text.trim()) writeSdkSkillsStatusLine(text.trimEnd());
|
|
1169
1169
|
}
|
|
1170
1170
|
function flushDeferredSkillsSyncNotices(baseUrl) {
|
|
1171
|
-
if (shouldSkipSkillsSync() ||
|
|
1172
|
-
const agents =
|
|
1171
|
+
if (shouldSkipSkillsSync() || _chunkYYN2O43Cjs.hasActivePluginSkills.call(void 0, )) return;
|
|
1172
|
+
const agents = _chunkYYN2O43Cjs.resolveAutoSyncSkillAgents.call(void 0, );
|
|
1173
1173
|
if (agents.length === 0) return;
|
|
1174
1174
|
flushDeferredSkillsNotices(baseUrl, agents);
|
|
1175
1175
|
}
|
|
@@ -1185,7 +1185,7 @@ function spawnDetachedSkillsSyncChild(argv, onSpawnError) {
|
|
|
1185
1185
|
}
|
|
1186
1186
|
function failedSkillsSyncPath(baseUrl, agents) {
|
|
1187
1187
|
return _path.join.call(void 0,
|
|
1188
|
-
|
|
1188
|
+
_chunkYYN2O43Cjs.sdkCliStateDirPath.call(void 0, baseUrl),
|
|
1189
1189
|
`skills-sync-failed-${sortedLeaseAgents(agents).map(agentLeaseSegment).join("-")}-version`
|
|
1190
1190
|
);
|
|
1191
1191
|
}
|
|
@@ -1214,7 +1214,7 @@ function writeUnavailableSkillsNotice(baseUrl, remoteVersion, skillNames, reason
|
|
|
1214
1214
|
if (hasMarkedSkillsSyncVersion(path, remoteVersion)) return;
|
|
1215
1215
|
writeMarkedSkillsSyncVersion(path, remoteVersion);
|
|
1216
1216
|
const probes = reason === "no-installer" ? _nullishCoalesce(knownProbes, () => ( probeInstallers())) : null;
|
|
1217
|
-
const manualCommand = _optionalChain([probes, 'optionalAccess', _90 => _90.npx]) === "missing" && probes.bunx !== "missing" ? `bunx ${buildBunxSkillsInstallArgs(baseUrl, skillNames,
|
|
1217
|
+
const manualCommand = _optionalChain([probes, 'optionalAccess', _90 => _90.npx]) === "missing" && probes.bunx !== "missing" ? `bunx ${buildBunxSkillsInstallArgs(baseUrl, skillNames, _chunkYYN2O43Cjs.DEFAULT_SKILL_AGENTS).map(shellQuote).join(" ")}` : `npx ${buildSkillsInstallArgs(baseUrl, skillNames).join(" ")}`;
|
|
1218
1218
|
const explanation = reason === "unsupported-agent" ? "the detected agent has no automatic skills sync target. Automatic sync was skipped." : _optionalChain([probes, 'optionalAccess', _91 => _91.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.`;
|
|
1219
1219
|
notice(
|
|
1220
1220
|
`Deepline agent skills are out of date, but ${explanation} To install manually, run:
|
|
@@ -1302,7 +1302,7 @@ function buildSdkSkillNames(v1SkillNames2) {
|
|
|
1302
1302
|
return sortedUniqueSkillNames(v1SkillNames2);
|
|
1303
1303
|
}
|
|
1304
1304
|
function isDefaultAgentSet(agents) {
|
|
1305
|
-
return agents.length ===
|
|
1305
|
+
return agents.length === _chunkYYN2O43Cjs.DEFAULT_SKILL_AGENTS.length && agents.every((agent, index) => agent === _chunkYYN2O43Cjs.DEFAULT_SKILL_AGENTS[index]);
|
|
1306
1306
|
}
|
|
1307
1307
|
function safeSkillFilePath(value) {
|
|
1308
1308
|
if (typeof value !== "string" || !value) return false;
|
|
@@ -1459,10 +1459,10 @@ async function fetchSkillsUpdate(baseUrl, localVersion) {
|
|
|
1459
1459
|
method: "POST",
|
|
1460
1460
|
headers: { "Content-Type": "application/json" },
|
|
1461
1461
|
body: JSON.stringify({
|
|
1462
|
-
sdk_cli: { version:
|
|
1462
|
+
sdk_cli: { version: _chunkFPYESYBOjs.SDK_VERSION },
|
|
1463
1463
|
skills: {
|
|
1464
1464
|
version: localVersion,
|
|
1465
|
-
capability:
|
|
1465
|
+
capability: _chunkEPQZ42PYjs.SDK_RELEASE.packageCapabilities.skillsGuidance
|
|
1466
1466
|
}
|
|
1467
1467
|
}),
|
|
1468
1468
|
signal: controller.signal
|
|
@@ -1501,7 +1501,7 @@ function probeInstallers(timeoutMs) {
|
|
|
1501
1501
|
}
|
|
1502
1502
|
function noInstallerProbePath(baseUrl) {
|
|
1503
1503
|
return _path.join.call(void 0,
|
|
1504
|
-
|
|
1504
|
+
_chunkYYN2O43Cjs.sdkCliStateDirPath.call(void 0, baseUrl),
|
|
1505
1505
|
"skills-sync-no-installer-unknown.json"
|
|
1506
1506
|
);
|
|
1507
1507
|
}
|
|
@@ -1580,7 +1580,7 @@ function temporarySkillsSyncSkipCommand() {
|
|
|
1580
1580
|
function resolveSkillsInstallSpawn(install, platform2 = process.platform) {
|
|
1581
1581
|
return resolveShellSpawn(install.command, install.args, platform2);
|
|
1582
1582
|
}
|
|
1583
|
-
function resolveSkillsInstallCommands(baseUrl, skillNames = DEFAULT_SDK_SKILL_NAMES, agents =
|
|
1583
|
+
function resolveSkillsInstallCommands(baseUrl, skillNames = DEFAULT_SDK_SKILL_NAMES, agents = _chunkYYN2O43Cjs.DEFAULT_SKILL_AGENTS, knownProbes) {
|
|
1584
1584
|
const commands = [];
|
|
1585
1585
|
const probes = _nullishCoalesce(knownProbes, () => ( probeInstallers()));
|
|
1586
1586
|
if (probes.bunx === "available") {
|
|
@@ -1722,7 +1722,7 @@ function runLegacySkillsCleanup(agents) {
|
|
|
1722
1722
|
}
|
|
1723
1723
|
}
|
|
1724
1724
|
function writeSdkSkillsStatusLine(line) {
|
|
1725
|
-
const progress =
|
|
1725
|
+
const progress = _chunkSGG3TERPjs.getActiveCliProgress.call(void 0, );
|
|
1726
1726
|
if (progress) {
|
|
1727
1727
|
progress.writeLine(line);
|
|
1728
1728
|
return;
|
|
@@ -1732,11 +1732,11 @@ function writeSdkSkillsStatusLine(line) {
|
|
|
1732
1732
|
}
|
|
1733
1733
|
async function syncSdkSkillsIfNeeded(baseUrl, options = {}) {
|
|
1734
1734
|
if (shouldSkipSkillsSync()) return;
|
|
1735
|
-
const usingPluginSkills =
|
|
1735
|
+
const usingPluginSkills = _chunkYYN2O43Cjs.hasActivePluginSkills.call(void 0, );
|
|
1736
1736
|
if (usingPluginSkills) {
|
|
1737
1737
|
return;
|
|
1738
1738
|
}
|
|
1739
|
-
const agents =
|
|
1739
|
+
const agents = _chunkYYN2O43Cjs.resolveAutoSyncSkillAgents.call(void 0, );
|
|
1740
1740
|
if (options.mode === "detached" && agents.length > 0) {
|
|
1741
1741
|
flushDeferredSkillsNotices(baseUrl, agents);
|
|
1742
1742
|
}
|
|
@@ -1764,7 +1764,7 @@ async function syncSdkSkillsIfNeeded(baseUrl, options = {}) {
|
|
|
1764
1764
|
return;
|
|
1765
1765
|
}
|
|
1766
1766
|
try {
|
|
1767
|
-
const localVersion =
|
|
1767
|
+
const localVersion = _chunkYYN2O43Cjs.readSdkSkillsLocalVersion.call(void 0, baseUrl);
|
|
1768
1768
|
const update = options.update === void 0 ? claimedVersion ? { needsUpdate: true, remoteVersion: claimedVersion } : await fetchSkillsUpdate(baseUrl, localVersion) : options.update ? {
|
|
1769
1769
|
needsUpdate: options.update.needs_update,
|
|
1770
1770
|
remoteVersion: options.update.remote.version
|
|
@@ -1930,7 +1930,7 @@ async function runInlineSkillsSync(baseUrl, remoteVersion, agents, notices) {
|
|
|
1930
1930
|
}
|
|
1931
1931
|
}
|
|
1932
1932
|
runLegacySkillsCleanup(agents);
|
|
1933
|
-
if (!
|
|
1933
|
+
if (!_chunkYYN2O43Cjs.writeSdkSkillsLocalVersion.call(void 0, baseUrl, update.remoteVersion, agents)) {
|
|
1934
1934
|
notice(
|
|
1935
1935
|
"Deepline agent skills installed, but the local skills version could not be recorded. A later command will retry the refresh."
|
|
1936
1936
|
);
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkYNWET57Zjs = require('./chunk-YNWET57Z.js');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
@@ -13,7 +13,7 @@ var _chunkLOX3BISDjs = require('./chunk-LOX3BISD.js');
|
|
|
13
13
|
|
|
14
14
|
|
|
15
15
|
|
|
16
|
-
var
|
|
16
|
+
var _chunk4IP5MLWUjs = require('./chunk-4IP5MLWU.js');
|
|
17
17
|
|
|
18
18
|
|
|
19
19
|
var _chunkDIAWYWT5js = require('./chunk-DIAWYWT5.js');
|
|
@@ -31,13 +31,13 @@ var VIEWS = {
|
|
|
31
31
|
details: model,
|
|
32
32
|
lines: [
|
|
33
33
|
...unlisted,
|
|
34
|
-
...
|
|
34
|
+
..._chunkYNWET57Zjs.formatModelDescription.call(void 0, model).trimEnd().split("\n")
|
|
35
35
|
]
|
|
36
36
|
};
|
|
37
37
|
},
|
|
38
38
|
byok: async (_value, tool) => ({
|
|
39
39
|
details: _nullishCoalesce(tool.byok, () => ( {})),
|
|
40
|
-
lines:
|
|
40
|
+
lines: _chunk4IP5MLWUjs.byokLines.call(void 0, _nullishCoalesce(tool.byok, () => ( {})))
|
|
41
41
|
})
|
|
42
42
|
};
|
|
43
43
|
var isFeatureView = (value) => typeof value === "string" && Object.hasOwn(VIEWS, value);
|
|
@@ -116,7 +116,7 @@ async function findNamed(reference, options, lookups) {
|
|
|
116
116
|
const record = await lookups.play(reference2);
|
|
117
117
|
if (!record) return null;
|
|
118
118
|
return {
|
|
119
|
-
described:
|
|
119
|
+
described: _chunk4IP5MLWUjs.describedPlay.call(void 0, record),
|
|
120
120
|
record: { ...record },
|
|
121
121
|
schemas: {
|
|
122
122
|
inputSchema: _nullishCoalesce(record.inputSchema, () => ( null)),
|
|
@@ -131,18 +131,18 @@ async function findNamed(reference, options, lookups) {
|
|
|
131
131
|
const features = toolFeatures(record);
|
|
132
132
|
return {
|
|
133
133
|
described: {
|
|
134
|
-
...
|
|
134
|
+
..._chunkYNWET57Zjs.describedTool.call(void 0, record, name),
|
|
135
135
|
// Shown when the tool runs only on your own credentials; otherwise
|
|
136
136
|
// it is a feature, described with --feature byok.
|
|
137
137
|
..._optionalChain([byok, 'optionalAccess', _3 => _3.required]) === true ? { byok } : {},
|
|
138
138
|
...features.length ? { features: features.map(({ view: _view, ...feature }) => feature) } : {}
|
|
139
139
|
},
|
|
140
|
-
record:
|
|
140
|
+
record: _chunkYNWET57Zjs.toolMetadataJsonForDescribe.call(void 0,
|
|
141
141
|
record,
|
|
142
142
|
name,
|
|
143
143
|
lookups.seedStarterScript
|
|
144
144
|
),
|
|
145
|
-
schemas:
|
|
145
|
+
schemas: _chunkYNWET57Zjs.publicToolSchemas.call(void 0, record),
|
|
146
146
|
feature: (featureName, value) => {
|
|
147
147
|
const feature = features.find(({ name: name2 }) => name2 === featureName);
|
|
148
148
|
return feature ? describeFeature(record, feature, value, {
|
|
@@ -178,7 +178,7 @@ async function describeName(name, options, lookups) {
|
|
|
178
178
|
const note = shadows ? `Showing your workspace play "${name}". It has the same name as a Deepline ${shadows.kind.replace("_", " ")}; see that one with: ${shadows.describeCommand}` : null;
|
|
179
179
|
const verbose = options.verbose === true;
|
|
180
180
|
const isPlay = described.kind === "prebuilt_play" || described.kind === "custom_play";
|
|
181
|
-
const dashboardUrl = isPlay ?
|
|
181
|
+
const dashboardUrl = isPlay ? _chunk4IP5MLWUjs.buildPlayDashboardUrl.call(void 0, lookups.baseUrl, described.id) : null;
|
|
182
182
|
if (options.webUrl) {
|
|
183
183
|
if (!dashboardUrl) {
|
|
184
184
|
return {
|
|
@@ -242,7 +242,7 @@ async function describeName(name, options, lookups) {
|
|
|
242
242
|
},
|
|
243
243
|
lines: [
|
|
244
244
|
`${described.id} [${described.kind.replace("_", " ")}]`,
|
|
245
|
-
...
|
|
245
|
+
..._chunk4IP5MLWUjs.schemaLines.call(void 0, described, {
|
|
246
246
|
full: true,
|
|
247
247
|
secondary: true,
|
|
248
248
|
...fields.length ? { fields } : {}
|
|
@@ -251,17 +251,17 @@ async function describeName(name, options, lookups) {
|
|
|
251
251
|
} : {
|
|
252
252
|
envelope: {
|
|
253
253
|
...summary,
|
|
254
|
-
inputs: inputs.map(
|
|
255
|
-
outputs: outputs.map(
|
|
256
|
-
...described.rowInputs ? { rowInputs: described.rowInputs.map(
|
|
257
|
-
...described.rowOutputs ? { rowOutputs: described.rowOutputs.map(
|
|
258
|
-
runExamples:
|
|
254
|
+
inputs: inputs.map(_chunk4IP5MLWUjs.topLevelField),
|
|
255
|
+
outputs: outputs.map(_chunk4IP5MLWUjs.topLevelField),
|
|
256
|
+
...described.rowInputs ? { rowInputs: described.rowInputs.map(_chunk4IP5MLWUjs.topLevelField) } : {},
|
|
257
|
+
...described.rowOutputs ? { rowOutputs: described.rowOutputs.map(_chunk4IP5MLWUjs.topLevelField) } : {},
|
|
258
|
+
runExamples: _chunk4IP5MLWUjs.examples.call(void 0, described, { verbose }),
|
|
259
259
|
...dashboardUrl ? { dashboardUrl } : {},
|
|
260
260
|
...shadows ? { shadows, note } : {}
|
|
261
261
|
},
|
|
262
262
|
lines: [
|
|
263
263
|
...note ? [`Note: ${note}`, ""] : [],
|
|
264
|
-
...
|
|
264
|
+
..._chunk4IP5MLWUjs.describedLines.call(void 0, described, {
|
|
265
265
|
cli: shown && (!named || options.cliExample === true),
|
|
266
266
|
play: shown && (!named || options.playExample === true),
|
|
267
267
|
explain: named,
|
|
@@ -278,7 +278,7 @@ async function describeName(name, options, lookups) {
|
|
|
278
278
|
// its value stands, so callers of the older commands read what they did.
|
|
279
279
|
{ ...view.envelope, ...record }
|
|
280
280
|
) : {
|
|
281
|
-
...
|
|
281
|
+
..._chunk4IP5MLWUjs.describedJson.call(void 0, described, {
|
|
282
282
|
secondary: verbose || fields.length > 0,
|
|
283
283
|
verbose
|
|
284
284
|
}),
|
|
@@ -3,14 +3,14 @@
|
|
|
3
3
|
var _chunkD3BCSAN7js = require('./chunk-D3BCSAN7.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkPVMN4OE2js = require('./chunk-PVMN4OE2.js');
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
var
|
|
9
|
+
var _chunkE26477MJjs = require('./chunk-E26477MJ.js');
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
|
|
13
|
-
var
|
|
13
|
+
var _chunkYYN2O43Cjs = require('./chunk-YYN2O43C.js');
|
|
14
14
|
|
|
15
15
|
// src/cli/commands/search.ts
|
|
16
16
|
var _commander = require('commander');
|
|
@@ -20,7 +20,7 @@ var _fs = require('fs');
|
|
|
20
20
|
var _path = require('path');
|
|
21
21
|
var SEARCH_REF_TTL_MS = 15 * 6e4;
|
|
22
22
|
function lastSearchPath() {
|
|
23
|
-
return _path.join.call(void 0,
|
|
23
|
+
return _path.join.call(void 0, _chunkYYN2O43Cjs.sdkCliStateDirPath.call(void 0, _chunkYYN2O43Cjs.resolveConfig.call(void 0, ).baseUrl), "last-search.json");
|
|
24
24
|
}
|
|
25
25
|
function rememberSearchRef(searchRef) {
|
|
26
26
|
try {
|
|
@@ -118,7 +118,7 @@ async function runSearch(queryInput, options, types, exclude = []) {
|
|
|
118
118
|
console.error("--summary-width must be an integer of at least 2.");
|
|
119
119
|
return 1;
|
|
120
120
|
}
|
|
121
|
-
const { search_ref: searchRef, ...result } = await new (0,
|
|
121
|
+
const { search_ref: searchRef, ...result } = await new (0, _chunkPVMN4OE2js.DeeplineClient)().search({
|
|
122
122
|
query,
|
|
123
123
|
types,
|
|
124
124
|
exclude,
|
|
@@ -132,8 +132,8 @@ async function runSearch(queryInput, options, types, exclude = []) {
|
|
|
132
132
|
});
|
|
133
133
|
if (searchRef) rememberSearchRef(searchRef);
|
|
134
134
|
pointAtDescribe(result);
|
|
135
|
-
const { renderSearchResults } = await Promise.resolve().then(() => _interopRequireWildcard(require("./search-output-
|
|
136
|
-
|
|
135
|
+
const { renderSearchResults } = await Promise.resolve().then(() => _interopRequireWildcard(require("./search-output-PFLNDCA7.js")));
|
|
136
|
+
_chunkE26477MJjs.printCommandEnvelope.call(void 0, result, {
|
|
137
137
|
json: options.json === true,
|
|
138
138
|
text: renderSearchResults(result, summaryWidth)
|
|
139
139
|
});
|
|
@@ -2,10 +2,10 @@ import {
|
|
|
2
2
|
getAuthedHttpClient,
|
|
3
3
|
openInBrowser,
|
|
4
4
|
printCommandEnvelope
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-OFCP66VS.mjs";
|
|
6
6
|
import {
|
|
7
7
|
resolveBaseUrlOnly
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-JC2M6XG2.mjs";
|
|
9
9
|
|
|
10
10
|
// src/cli/commands/git.ts
|
|
11
11
|
function shellQuote(value) {
|
|
@@ -2,7 +2,7 @@ import {
|
|
|
2
2
|
argsWantJson,
|
|
3
3
|
openInBrowser,
|
|
4
4
|
printCommandEnvelope
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-OFCP66VS.mjs";
|
|
6
6
|
import {
|
|
7
7
|
ACTIVE_ORG_ID_ENV,
|
|
8
8
|
ACTIVE_ORG_NAME_ENV,
|
|
@@ -22,14 +22,14 @@ import {
|
|
|
22
22
|
saveHostEnvValues,
|
|
23
23
|
saveProjectDeeplineEnvValues,
|
|
24
24
|
storedHostApiKey
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-JC2M6XG2.mjs";
|
|
26
26
|
import {
|
|
27
27
|
SDK_API_CONTRACT,
|
|
28
28
|
SDK_VERSION,
|
|
29
29
|
connectionFailureMessage,
|
|
30
30
|
detectAgentRuntime,
|
|
31
31
|
networkCauseCode
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-A3D677RX.mjs";
|
|
33
33
|
import {
|
|
34
34
|
DeeplineError
|
|
35
35
|
} from "./chunk-HBL4PM5Q.mjs";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
PlayClient
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-MEYQOZPF.mjs";
|
|
4
4
|
import {
|
|
5
5
|
HttpClient,
|
|
6
6
|
resolveConfig
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-JC2M6XG2.mjs";
|
|
8
8
|
|
|
9
9
|
// src/plays/local-play-execution.ts
|
|
10
10
|
function importedNodes(graph) {
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
var _chunkVLEVVDWGjs = require('./chunk-VLEVVDWG.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunk6TTPAGNXjs = require('./chunk-6TTPAGNX.js');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
var _chunkAUQQVDABjs = require('./chunk-AUQQVDAB.js');
|
|
@@ -11,7 +11,7 @@ var _chunkAUQQVDABjs = require('./chunk-AUQQVDAB.js');
|
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
|
|
14
|
-
var
|
|
14
|
+
var _chunkE26477MJjs = require('./chunk-E26477MJ.js');
|
|
15
15
|
|
|
16
16
|
|
|
17
17
|
var _chunkDIAWYWT5js = require('./chunk-DIAWYWT5.js');
|
|
@@ -579,7 +579,7 @@ function parseInputFlagValue(raw) {
|
|
|
579
579
|
return raw;
|
|
580
580
|
}
|
|
581
581
|
function parsePlayRunOptions(args, initialInput = null) {
|
|
582
|
-
const selection =
|
|
582
|
+
const selection = _chunkE26477MJjs.parseJsonFields.call(void 0, args, "run");
|
|
583
583
|
args = selection.args;
|
|
584
584
|
const usage = "Usage: deepline plays run <play-name> [--input '{...}'] [--run-id-file <path>] [--no-wait] [--tail-timeout-ms 30000] [--force] [--open] [--full] [--<input> value]\n deepline plays run <play-file.ts> [--input '{...}'] [--run-id-file <path>] [--no-wait] [--tail-timeout-ms 30000] [--force] [--open] [--full] [--<input> value]\n deepline plays run --file <play-file.ts> [--input '{...}'] [--profile <id>] [--run-id-file <path>] [--no-wait] [--tail-timeout-ms 30000] [--force] [--open] [--full] [--<input> value]\n deepline plays run --name <name> [--input '{...}'] [--profile <id>] [--live|--latest|--revision-id <id>] [--run-id-file <path>] [--no-wait] [--tail-timeout-ms 30000] [--force] [--open] [--json] [--full] [--<input> value]\n Runs use the Absurd CJS runtime.\n --header '<name>: <value>' may repeat; each is sent on every request for this run.\n Unknown --<input> value flags, such as --limit 5, are passed into play input.\nRun `deepline plays run --help` for idempotent call caching and deepline.dataset guidance.";
|
|
585
585
|
let filePath = null;
|
|
@@ -591,7 +591,7 @@ function parsePlayRunOptions(args, initialInput = null) {
|
|
|
591
591
|
let revisionSelector = null;
|
|
592
592
|
const watch = !args.includes("--no-wait");
|
|
593
593
|
const dryRun = args.includes("--dry-run");
|
|
594
|
-
let jsonOutput = dryRun ?
|
|
594
|
+
let jsonOutput = dryRun ? _chunkE26477MJjs.argsWantJson.call(void 0, args) : watch ? args.includes("--json") : _chunkE26477MJjs.argsWantJson.call(void 0, args);
|
|
595
595
|
const fullJson = args.includes("--full");
|
|
596
596
|
const force = args.includes("--force");
|
|
597
597
|
const forceToolRefresh = args.includes("--force-tool-refresh");
|
|
@@ -654,7 +654,7 @@ function parsePlayRunOptions(args, initialInput = null) {
|
|
|
654
654
|
"--log-level requires one of: debug, info, warn, error."
|
|
655
655
|
);
|
|
656
656
|
}
|
|
657
|
-
const parsed =
|
|
657
|
+
const parsed = _chunk6TTPAGNXjs.parseLogLevel.call(void 0, value);
|
|
658
658
|
if (!parsed) {
|
|
659
659
|
throw new Error(
|
|
660
660
|
`Unsupported --log-level ${JSON.stringify(value)}. Use debug, info, warn, or error.`
|
|
@@ -972,7 +972,7 @@ function resolvePlayRunCliOptions(target, options, inputArgs = [], maintenancePo
|
|
|
972
972
|
const hasExplicitLogLevel = options.logLevel !== void 0 || inputArgs.some(
|
|
973
973
|
(arg) => arg === "--log-level" || arg.startsWith("--log-level=")
|
|
974
974
|
);
|
|
975
|
-
let logLevel = options.logLevel === void 0 ? base.logLevel :
|
|
975
|
+
let logLevel = options.logLevel === void 0 ? base.logLevel : _chunk6TTPAGNXjs.parseLogLevel.call(void 0, options.logLevel);
|
|
976
976
|
if (!logLevel)
|
|
977
977
|
throw new Error("--log-level requires one of: debug, info, warn, error.");
|
|
978
978
|
const debugAlias = options.logs || options.debug === true || inputArgs.some(
|
|
@@ -986,13 +986,13 @@ function resolvePlayRunCliOptions(target, options, inputArgs = [], maintenancePo
|
|
|
986
986
|
if (debugAlias || debugMapLatency && logLevel === "info")
|
|
987
987
|
logLevel = "debug";
|
|
988
988
|
const fullJson = _nullishCoalesce(options.full, () => ( base.fullJson));
|
|
989
|
-
const jsonFields = options.json === void 0 ? base.jsonFields :
|
|
990
|
-
[...fullJson ? ["--full"] : [], ...
|
|
989
|
+
const jsonFields = options.json === void 0 ? base.jsonFields : _chunkE26477MJjs.parseJsonFields.call(void 0,
|
|
990
|
+
[...fullJson ? ["--full"] : [], ..._chunkE26477MJjs.jsonFieldArgs.call(void 0, options.json)],
|
|
991
991
|
"run"
|
|
992
992
|
).fields;
|
|
993
993
|
const watch = options.wait === false ? false : base.watch;
|
|
994
994
|
const explicitJson = options.json !== void 0 ? options.json !== false : base.jsonOutput;
|
|
995
|
-
const jsonOutput = dryRun || !watch ? explicitJson ||
|
|
995
|
+
const jsonOutput = dryRun || !watch ? explicitJson || _chunkE26477MJjs.argsWantJson.call(void 0, []) : explicitJson;
|
|
996
996
|
const verboseLogs = Boolean(
|
|
997
997
|
debugAlias || logLevel === "debug" || debugMapLatency
|
|
998
998
|
);
|