deepline 0.3.470 → 0.3.472
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bundling-sources/sdk/src/client-core.ts +14 -0
- package/dist/bundling-sources/sdk/src/index.ts +2 -0
- package/dist/bundling-sources/sdk/src/plays/run-request.ts +1 -0
- package/dist/bundling-sources/sdk/src/release.ts +1 -1
- package/dist/bundling-sources/sdk/src/types.ts +29 -0
- package/dist/bundling-sources/shared_libs/play-runtime/context.ts +3 -1
- package/dist/bundling-sources/shared_libs/play-runtime/play-admission-outcome.ts +34 -8
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/postgres.ts +131 -22
- package/dist/bundling-sources/shared_libs/plays/authoring-contract.ts +36 -1
- package/dist/cli/{auth-7J52UEWO.mjs → auth-35DAEPHC.mjs} +5 -5
- package/dist/cli/auth-Q5TM66UI.js +41 -0
- package/dist/cli/{billing-ASNWVDQG.js → billing-5ED5X2IO.js} +82 -81
- package/dist/cli/{billing-ORB3UZ73.mjs → billing-CXVBJEC4.mjs} +9 -8
- package/dist/cli/{chunk-4BQQ3Q3J.js → chunk-2DND7LLL.js} +8 -8
- package/dist/cli/{chunk-GDFO3ERN.js → chunk-2G4R4APL.js} +2 -2
- package/dist/cli/{chunk-RVQ333NB.mjs → chunk-2S36YV2K.mjs} +1 -1
- package/dist/cli/{chunk-EM2E7YIS.js → chunk-3L76SFGN.js} +53 -53
- package/dist/cli/{chunk-QG7UPPOK.mjs → chunk-4NFBYW7X.mjs} +3 -3
- package/dist/cli/{chunk-7WILY2XM.mjs → chunk-52VOORHM.mjs} +2 -2
- package/dist/cli/{chunk-CNQBCLQP.js → chunk-5FHU67AT.js} +3 -3
- package/dist/cli/{chunk-6B7XLHIE.mjs → chunk-6PKONIIP.mjs} +4 -4
- package/dist/cli/{chunk-HNP5V5BN.js → chunk-6ZTSHKJF.js} +25 -7
- package/dist/cli/{chunk-Y4OE46HH.js → chunk-7KAS4QOW.js} +112 -107
- package/dist/cli/{chunk-SHB7BUNQ.mjs → chunk-C5PY2PP6.mjs} +3 -3
- package/dist/cli/{chunk-CTDWQYBW.mjs → chunk-CFDQZQE2.mjs} +2 -2
- package/dist/cli/{chunk-262PYO4I.mjs → chunk-FHIO7WI2.mjs} +3 -3
- package/dist/cli/{chunk-6R5UKWRW.js → chunk-GJPRBELO.js} +16 -16
- package/dist/cli/{chunk-57F5VKHV.js → chunk-H7YFUC3J.js} +8 -8
- package/dist/cli/{chunk-F6OB5L74.js → chunk-HBVT4FW5.js} +6 -6
- package/dist/cli/{chunk-C7EA2VNR.js → chunk-IIQ6O5F3.js} +5 -5
- package/dist/cli/{chunk-3P4WOCRB.mjs → chunk-IPJ27SD2.mjs} +5 -5
- package/dist/cli/{chunk-JKVRBCZL.js → chunk-JDMR33HS.js} +1 -0
- package/dist/cli/{chunk-DSOTGAXS.mjs → chunk-JRZW4LWK.mjs} +1 -1
- package/dist/cli/{chunk-VL7OL7YR.mjs → chunk-KQJHIVCE.mjs} +1 -1
- package/dist/cli/{chunk-PWXHZPHK.js → chunk-L3AXQXNT.js} +10 -10
- package/dist/cli/{chunk-A7THVTRN.js → chunk-LQUOZGM6.js} +51 -51
- package/dist/cli/{chunk-YTFCKCII.js → chunk-M475BQ77.js} +3 -3
- package/dist/cli/{chunk-YBDQUVDE.mjs → chunk-MRZ7AO72.mjs} +10 -10
- package/dist/cli/{chunk-FAG4DFUC.mjs → chunk-NELMCOWK.mjs} +1 -0
- package/dist/cli/{chunk-SOME764Z.mjs → chunk-NZBZFEVA.mjs} +4 -4
- package/dist/cli/{chunk-ETTUFFBS.js → chunk-ODAARZSK.js} +36 -36
- package/dist/cli/{chunk-SETIOXN4.mjs → chunk-OMPW5ELS.mjs} +1 -1
- package/dist/cli/{chunk-NNCDHMCT.js → chunk-QLVYYDUI.js} +26 -26
- package/dist/cli/{chunk-SXQZYTUW.mjs → chunk-QSCLOPWR.mjs} +1 -1
- package/dist/cli/{chunk-PJX7BA7T.mjs → chunk-R6L6JRDR.mjs} +2 -2
- package/dist/cli/{chunk-3XLJPLXZ.mjs → chunk-R73LE2IM.mjs} +1 -1
- package/dist/cli/{chunk-F2XK4UN6.js → chunk-RDOPZK7A.js} +3 -3
- package/dist/cli/{chunk-44UR3BU2.js → chunk-RMQB72WW.js} +14 -14
- package/dist/cli/{chunk-D464JW3N.mjs → chunk-RZHUHL53.mjs} +19 -1
- package/dist/cli/{chunk-VBKN6ISP.js → chunk-SBPI7AEB.js} +93 -93
- package/dist/cli/{chunk-ORO2GFH4.js → chunk-SKVMC6K6.js} +5 -5
- package/dist/cli/{chunk-AGIEKE3L.js → chunk-SYWOSAW7.js} +4 -4
- package/dist/cli/{chunk-YFKOA4HW.mjs → chunk-T5H7ETIM.mjs} +4 -4
- package/dist/cli/{chunk-5ADROBCY.mjs → chunk-TMMODGPV.mjs} +2 -2
- package/dist/cli/{chunk-NSAKJQLX.js → chunk-UKKCS6Z4.js} +1 -1
- package/dist/cli/{chunk-KBNAI5BY.js → chunk-UPXGN62E.js} +21 -21
- package/dist/cli/{chunk-SV3B6KW4.mjs → chunk-UXFUD2MB.mjs} +5 -5
- package/dist/cli/{chunk-N72VIY7R.js → chunk-VDHDTXCK.js} +2 -2
- package/dist/cli/{chunk-MXAB4W6E.js → chunk-XSSIBO74.js} +8 -8
- package/dist/cli/{chunk-QW6HNDS7.mjs → chunk-YK64LQPQ.mjs} +7 -2
- package/dist/cli/{chunk-GLSFZYZB.mjs → chunk-YMB2CD55.mjs} +1 -1
- package/dist/cli/{chunk-F4L7WMLK.mjs → chunk-YNW47NOJ.mjs} +2 -2
- package/dist/cli/{chunk-FVYAEBGO.mjs → chunk-YUNPYX5T.mjs} +25 -7
- package/dist/cli/{chunk-WG3KGAII.js → chunk-Z52WEIBR.js} +19 -1
- package/dist/cli/{chunk-BWLXHUKH.mjs → chunk-ZZQIS3TH.mjs} +3 -3
- package/dist/cli/command-docs.js +2 -2
- package/dist/cli/command-docs.mjs +1 -1
- package/dist/cli/{csv-D3JPZVUN.mjs → csv-OSDYY3QW.mjs} +4 -4
- package/dist/cli/{csv-FSXDIWBP.js → csv-SQJQM3B2.js} +13 -13
- package/dist/cli/{db-3UWDQXLF.mjs → db-2M6BU6G5.mjs} +7 -7
- package/dist/cli/{db-DZQUPWI3.js → db-ATDYXAD5.js} +28 -28
- package/dist/cli/describe-37QXXDCF.js +48 -0
- package/dist/cli/{describe-APG2GVFG.mjs → describe-WIAJCWF3.mjs} +18 -18
- package/dist/cli/describe-core.d.mts +3 -3
- package/dist/cli/describe-core.d.ts +3 -3
- package/dist/cli/{executions-TDUX3575.mjs → executions-2J6CCJL2.mjs} +7 -7
- package/dist/cli/{executions-BFAPMPG2.js → executions-Y32LMYH6.js} +9 -9
- package/dist/cli/{feedback-BMV7PUDL.mjs → feedback-L4AVIMGI.mjs} +4 -4
- package/dist/cli/{feedback-2KNPCYTH.js → feedback-RXQLS6QU.js} +8 -8
- package/dist/cli/git-JGUR335T.js +25 -0
- package/dist/cli/{git-KBVONNE5.mjs → git-V3K77AWH.mjs} +5 -5
- package/dist/cli/index.js +139 -139
- package/dist/cli/index.mjs +41 -41
- package/dist/cli/{legacy-noops-LE6LJO7F.js → legacy-noops-B2KJT4CZ.js} +8 -8
- package/dist/cli/{legacy-noops-GZDRRUFE.mjs → legacy-noops-LOGMYOY5.mjs} +5 -5
- package/dist/cli/{monitors-CW22L3VL.mjs → monitors-5ETSB7S7.mjs} +8 -8
- package/dist/cli/{monitors-PGBHMKOU.js → monitors-A5WYUCGD.js} +92 -92
- package/dist/cli/{org-3V2VAH5D.js → org-7EZDWYKK.js} +73 -73
- package/dist/cli/{org-K5C23LAV.mjs → org-BJOAUSXL.mjs} +7 -7
- package/dist/cli/{pages-7V2C7GWU.mjs → pages-3BYGBTVK.mjs} +7 -7
- package/dist/cli/{pages-2F73VVWC.js → pages-45VNTEQU.js} +18 -18
- package/dist/cli/{play-62KSZGJQ.js → play-5KER3JFU.js} +586 -518
- package/dist/cli/{play-VT7TPJUH.mjs → play-R7JQV533.mjs} +93 -25
- package/dist/cli/{providers-3SI3QBT3.js → providers-OHMZ6QIF.js} +10 -10
- package/dist/cli/{providers-LX562YG7.mjs → providers-RMFCE6MM.mjs} +7 -7
- package/dist/cli/{quickstart-5HA5IFTB.js → quickstart-GNRE4SAT.js} +6 -6
- package/dist/cli/{quickstart-ADE7FV26.mjs → quickstart-IHR4VC5K.mjs} +4 -4
- package/dist/cli/{run-4ZV4UDKP.js → run-77QIMUUV.js} +37 -37
- package/dist/cli/{run-OITZJ6QZ.mjs → run-Y4MIRFJY.mjs} +23 -23
- package/dist/cli/{search-BI5VZQMD.mjs → search-24YKTHMK.mjs} +8 -8
- package/dist/cli/search-S3VO2UKV.js +32 -0
- package/dist/cli/{secrets-A2R36AZ6.mjs → secrets-KHX62AWC.mjs} +7 -7
- package/dist/cli/{secrets-UAKNTMYB.js → secrets-SSEBT3IS.js} +16 -16
- package/dist/cli/{sessions-3JM3OXME.js → sessions-E6KNWYEH.js} +6 -6
- package/dist/cli/{sessions-PPOFUFBW.mjs → sessions-H7T25HGE.mjs} +5 -5
- package/dist/cli/{settings-C4M5HOD4.js → settings-GXUYF5G7.js} +79 -79
- package/dist/cli/{settings-PZA6TBOL.mjs → settings-XSJG6M32.mjs} +12 -12
- package/dist/cli/{setup-245XVTBR.mjs → setup-GD7IOD4U.mjs} +9 -9
- package/dist/cli/{setup-TY2OSI6D.js → setup-JP5YPIA4.js} +44 -44
- package/dist/cli/skills-C4KTW3US.js +31 -0
- package/dist/cli/{skills-ZAN23KLR.mjs → skills-HLHE3ENN.mjs} +7 -7
- package/dist/cli/tools-KS7JMRK6.js +55 -0
- package/dist/cli/{tools-GG4KDQBM.mjs → tools-Q4XIQX7W.mjs} +17 -17
- package/dist/cli/{update-XKXIL6DU.mjs → update-3KRMR2QJ.mjs} +9 -9
- package/dist/cli/update-GYTQYK2W.js +33 -0
- package/dist/cli/{workflow-VN7M3D2U.js → workflow-NMUESL3O.js} +18 -18
- package/dist/cli/{workflow-LVQVTFUJ.mjs → workflow-NOZ7WFEY.mjs} +8 -8
- package/dist/{client-CdJR18SJ.d.mts → client-C9bJ0QXu.d.mts} +1 -1
- package/dist/{client-B3tlWsw7.d.ts → client-CuNH54w3.d.ts} +1 -1
- package/dist/{client-core-CxHBKfE5.d.ts → client-core-C8Q6DKga.d.ts} +38 -2
- package/dist/{client-core-ByJD7QXj.d.mts → client-core-CSiXbe2n.d.mts} +38 -2
- package/dist/{compiler-manifest-D5dARg3M.d.ts → compiler-manifest-Zwm9yqOA.d.mts} +39 -0
- package/dist/{compiler-manifest-D5dARg3M.d.mts → compiler-manifest-Zwm9yqOA.d.ts} +39 -0
- package/dist/{errors-BtHHzWL8.d.ts → errors-CsYwlpn4.d.ts} +1 -1
- package/dist/{errors-BveMVPwA.d.mts → errors-nEsqNLL8.d.mts} +1 -1
- package/dist/{index-C6sovoYP.d.ts → index-9pUZqkPH.d.ts} +1 -1
- package/dist/{index-BboApDGD.d.mts → index-CXF2jtza.d.mts} +1 -1
- package/dist/index.d.mts +7 -7
- package/dist/index.d.ts +7 -7
- package/dist/index.js +10 -10
- package/dist/index.mjs +7 -7
- package/dist/install-integrity.json +112 -112
- package/dist/plays/bundle-play-file.d.mts +3 -3
- package/dist/plays/bundle-play-file.d.ts +3 -3
- package/dist/plays/bundle-play-file.mjs +1 -1
- package/dist/plays/play-description.d.mts +2 -2
- package/dist/plays/play-description.d.ts +2 -2
- package/dist/plays/run-request.d.mts +2 -2
- package/dist/plays/run-request.d.ts +2 -2
- package/dist/plays/run-request.js +2 -2
- package/dist/plays/run-request.mjs +1 -1
- package/dist/release.d.mts +1 -1
- package/dist/release.d.ts +1 -1
- package/dist/release.js +2 -2
- package/dist/release.mjs +1 -1
- package/dist/server.d.mts +4 -4
- package/dist/server.d.ts +4 -4
- package/dist/server.js +6 -6
- package/dist/server.mjs +4 -4
- package/package.json +1 -1
- package/dist/cli/auth-4DBOZZDX.js +0 -41
- package/dist/cli/describe-2ENX4O3U.js +0 -48
- package/dist/cli/git-LUW3GBSD.js +0 -25
- package/dist/cli/search-PXFM3MGW.js +0 -32
- package/dist/cli/skills-UYNRYDDI.js +0 -31
- package/dist/cli/tools-OBESOBG7.js +0 -55
- package/dist/cli/update-2VMXTKBN.js +0 -33
|
@@ -3,15 +3,15 @@
|
|
|
3
3
|
var _chunkZM2YPJQJjs = require('./chunk-ZM2YPJQJ.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkSKVMC6K6js = require('./chunk-SKVMC6K6.js');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
var
|
|
10
|
+
var _chunkH7YFUC3Jjs = require('./chunk-H7YFUC3J.js');
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
|
|
14
|
-
var
|
|
14
|
+
var _chunk5FHU67ATjs = require('./chunk-5FHU67AT.js');
|
|
15
15
|
|
|
16
16
|
|
|
17
17
|
|
|
@@ -5713,7 +5713,7 @@ var _fs = require('fs');
|
|
|
5713
5713
|
var _path = require('path');
|
|
5714
5714
|
var SEARCH_REF_TTL_MS = 15 * 6e4;
|
|
5715
5715
|
function lastSearchPath() {
|
|
5716
|
-
return _path.join.call(void 0,
|
|
5716
|
+
return _path.join.call(void 0, _chunk5FHU67ATjs.sdkCliStateDirPath.call(void 0, _chunk5FHU67ATjs.resolveConfig.call(void 0, ).baseUrl), "last-search.json");
|
|
5717
5717
|
}
|
|
5718
5718
|
function rememberSearchRef(searchRef) {
|
|
5719
5719
|
try {
|
|
@@ -5877,7 +5877,7 @@ var OPTIONAL_COLUMNS = [
|
|
|
5877
5877
|
];
|
|
5878
5878
|
function renderSearchResults(result, summaryWidth = DEFAULT_SUMMARY_WIDTH) {
|
|
5879
5879
|
if (result.results.length === 0)
|
|
5880
|
-
return
|
|
5880
|
+
return _chunkH7YFUC3Jjs.renderCommandEnvelopeText.call(void 0, result);
|
|
5881
5881
|
const rows = result.results.map((item) => searchRow(item, summaryWidth));
|
|
5882
5882
|
const kinds = new Set(rows.map((row) => row.kind));
|
|
5883
5883
|
const onlyTools = kinds.size === 1 && kinds.has("tool");
|
|
@@ -5902,7 +5902,7 @@ function renderSearchResults(result, summaryWidth = DEFAULT_SUMMARY_WIDTH) {
|
|
|
5902
5902
|
actions: _optionalChain([render, 'optionalAccess', _12 => _12.actions])
|
|
5903
5903
|
};
|
|
5904
5904
|
const followUps = _optionalChain([remaining, 'access', _13 => _13.sections, 'optionalAccess', _14 => _14.length]) || _optionalChain([remaining, 'access', _15 => _15.actions, 'optionalAccess', _16 => _16.length]) ? `
|
|
5905
|
-
${
|
|
5905
|
+
${_chunkH7YFUC3Jjs.renderCommandEnvelopeText.call(void 0, { render: remaining })}` : "";
|
|
5906
5906
|
const notes = rows.flatMap(
|
|
5907
5907
|
(row) => row.notes.map((note) => ` ${row.id}: ${note}`)
|
|
5908
5908
|
);
|
|
@@ -5997,7 +5997,7 @@ async function runSearch(queryInput, options, types, exclude = []) {
|
|
|
5997
5997
|
console.error("--summary-width must be an integer of at least 2.");
|
|
5998
5998
|
return 1;
|
|
5999
5999
|
}
|
|
6000
|
-
const { search_ref: searchRef, ...result } = await new (0,
|
|
6000
|
+
const { search_ref: searchRef, ...result } = await new (0, _chunkSKVMC6K6js.DeeplineClient)().search({
|
|
6001
6001
|
query,
|
|
6002
6002
|
types,
|
|
6003
6003
|
exclude,
|
|
@@ -6011,7 +6011,7 @@ async function runSearch(queryInput, options, types, exclude = []) {
|
|
|
6011
6011
|
});
|
|
6012
6012
|
if (searchRef) rememberSearchRef(searchRef);
|
|
6013
6013
|
pointAtDescribe(result);
|
|
6014
|
-
|
|
6014
|
+
_chunkH7YFUC3Jjs.printCommandEnvelope.call(void 0, result, {
|
|
6015
6015
|
json: options.json === true,
|
|
6016
6016
|
text: renderSearchResults(result, summaryWidth)
|
|
6017
6017
|
});
|
|
@@ -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 _chunkH7YFUC3Jjs = require('./chunk-H7YFUC3J.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
|
+
_chunkH7YFUC3Jjs.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
|
"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 _chunkM475BQ77js = require('./chunk-M475BQ77.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
@@ -12,7 +12,7 @@ var _chunkYTFCKCIIjs = require('./chunk-YTFCKCII.js');
|
|
|
12
12
|
|
|
13
13
|
|
|
14
14
|
|
|
15
|
-
var
|
|
15
|
+
var _chunk5FHU67ATjs = require('./chunk-5FHU67AT.js');
|
|
16
16
|
|
|
17
17
|
|
|
18
18
|
|
|
@@ -20,13 +20,13 @@ var _chunkCNQBCLQPjs = require('./chunk-CNQBCLQP.js');
|
|
|
20
20
|
|
|
21
21
|
|
|
22
22
|
|
|
23
|
-
var
|
|
23
|
+
var _chunkSYWOSAW7js = require('./chunk-SYWOSAW7.js');
|
|
24
24
|
|
|
25
25
|
|
|
26
26
|
var _chunkDIAWYWT5js = require('./chunk-DIAWYWT5.js');
|
|
27
27
|
|
|
28
28
|
|
|
29
|
-
var
|
|
29
|
+
var _chunkUKKCS6Z4js = require('./chunk-UKKCS6Z4.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, _chunk5FHU67ATjs.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: _chunkSYWOSAW7js.SDK_VERSION,
|
|
73
|
+
apiContract: _chunkSYWOSAW7js.SDK_API_CONTRACT,
|
|
74
|
+
apiMajor: _chunkSYWOSAW7js.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: _chunkSYWOSAW7js.SDK_VERSION,
|
|
83
|
+
apiContract: _chunkSYWOSAW7js.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, _chunk5FHU67ATjs.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;
|
|
@@ -189,7 +189,7 @@ async function checkSdkCompatibility(baseUrl, options = {}) {
|
|
|
189
189
|
);
|
|
190
190
|
try {
|
|
191
191
|
const url = new URL("/api/v2/sdk/compat", baseUrl);
|
|
192
|
-
url.searchParams.set("version",
|
|
192
|
+
url.searchParams.set("version", _chunkSYWOSAW7js.SDK_VERSION);
|
|
193
193
|
if (_optionalChain([options, 'access', _27 => _27.command, 'optionalAccess', _28 => _28.trim, 'call', _29 => _29()])) {
|
|
194
194
|
url.searchParams.set("command", options.command.trim());
|
|
195
195
|
}
|
|
@@ -197,7 +197,7 @@ async function checkSdkCompatibility(baseUrl, options = {}) {
|
|
|
197
197
|
url.searchParams.set("skills_version", _nullishCoalesce(options.skillsVersion, () => ( "")));
|
|
198
198
|
url.searchParams.set(
|
|
199
199
|
"skills_cli_capability",
|
|
200
|
-
String(
|
|
200
|
+
String(_chunkUKKCS6Z4js.SDK_RELEASE.packageCapabilities.skillsGuidance)
|
|
201
201
|
);
|
|
202
202
|
}
|
|
203
203
|
if (options.catalog) {
|
|
@@ -209,14 +209,14 @@ async function checkSdkCompatibility(baseUrl, options = {}) {
|
|
|
209
209
|
const response = await fetch(url, {
|
|
210
210
|
method: "GET",
|
|
211
211
|
headers: {
|
|
212
|
-
...
|
|
213
|
-
"User-Agent": `deepline-ts-sdk/${
|
|
214
|
-
"X-Deepline-SDK-Version":
|
|
215
|
-
"X-Deepline-API-Major": String(
|
|
216
|
-
"X-Deepline-API-Contract":
|
|
212
|
+
..._chunkSYWOSAW7js.deploymentProtectionHeaders.call(void 0, ),
|
|
213
|
+
"User-Agent": `deepline-ts-sdk/${_chunkSYWOSAW7js.SDK_VERSION}`,
|
|
214
|
+
"X-Deepline-SDK-Version": _chunkSYWOSAW7js.SDK_VERSION,
|
|
215
|
+
"X-Deepline-API-Major": String(_chunkSYWOSAW7js.SDK_API_MAJOR),
|
|
216
|
+
"X-Deepline-API-Contract": _chunkSYWOSAW7js.SDK_API_CONTRACT,
|
|
217
217
|
"X-Deepline-CLI-Update-Preferences": "1",
|
|
218
218
|
"X-Deepline-CLI-Auto-Update-Capability": SDK_CLI_AUTO_UPDATE_CAPABILITY,
|
|
219
|
-
...options.catalog ? { Authorization: `Bearer ${
|
|
219
|
+
...options.catalog ? { Authorization: `Bearer ${_chunk5FHU67ATjs.resolveApiKeyForBaseUrl.call(void 0, baseUrl)}` } : {},
|
|
220
220
|
..._optionalChain([options, 'access', _30 => _30.catalog, 'optionalAccess', _31 => _31.cliInvocationId]) ? { "X-Deepline-CLI-Invocation-ID": options.catalog.cliInvocationId } : {}
|
|
221
221
|
},
|
|
222
222
|
signal: controller.signal
|
|
@@ -377,7 +377,7 @@ function skillsSourceUrl(baseUrl) {
|
|
|
377
377
|
function buildSkillsAddArgs(baseUrl, skillName, options = {}) {
|
|
378
378
|
const skillNames = Array.isArray(skillName) ? skillName : [skillName];
|
|
379
379
|
const [firstSkillName, ...extraSkillNames] = skillNames;
|
|
380
|
-
const agents = _nullishCoalesce(options.agents, () => (
|
|
380
|
+
const agents = _nullishCoalesce(options.agents, () => ( _chunk5FHU67ATjs.DEFAULT_SKILL_AGENTS));
|
|
381
381
|
const values = {
|
|
382
382
|
skills_index_url: skillsIndexUrl(baseUrl),
|
|
383
383
|
skills_source_url: skillsSourceUrl(baseUrl),
|
|
@@ -596,7 +596,7 @@ function buildEnvironmentContext() {
|
|
|
596
596
|
node_version: process.version,
|
|
597
597
|
runtime: "Node.js",
|
|
598
598
|
hostname: _os.hostname.call(void 0, ),
|
|
599
|
-
agent_runtime:
|
|
599
|
+
agent_runtime: _chunkSYWOSAW7js.detectAgentRuntime.call(void 0, )
|
|
600
600
|
};
|
|
601
601
|
for (const key of ["CLAUDE_CODE_REMOTE", "DEEPLINE_PLUGIN_MODE"]) {
|
|
602
602
|
const normalized = _optionalChain([process, 'access', _42 => _42.env, 'access', _43 => _43[key], 'optionalAccess', _44 => _44.trim, 'call', _45 => _45()]);
|
|
@@ -617,18 +617,18 @@ function buildEnvironmentContext() {
|
|
|
617
617
|
return context;
|
|
618
618
|
}
|
|
619
619
|
function failureReportHeaders(apiKey) {
|
|
620
|
-
const agentSessionId =
|
|
620
|
+
const agentSessionId = _chunkSYWOSAW7js.agentSessionIdFromEnvironment.call(void 0, );
|
|
621
621
|
return {
|
|
622
|
-
...
|
|
622
|
+
..._chunkSYWOSAW7js.deploymentProtectionHeaders.call(void 0, ),
|
|
623
623
|
...agentSessionId ? { "X-Deepline-Agent-Session-Id": agentSessionId } : {},
|
|
624
624
|
Authorization: `Bearer ${apiKey}`,
|
|
625
625
|
"Content-Type": "application/json",
|
|
626
|
-
"User-Agent": `deepline-ts-sdk/${
|
|
626
|
+
"User-Agent": `deepline-ts-sdk/${_chunkSYWOSAW7js.SDK_VERSION}`,
|
|
627
627
|
"X-Deepline-Client-Family": "sdk",
|
|
628
628
|
"X-Deepline-CLI-Family": "sdk",
|
|
629
|
-
"X-Deepline-Agent-Runtime":
|
|
630
|
-
"X-Deepline-CLI-Version":
|
|
631
|
-
"X-Deepline-SDK-Version":
|
|
629
|
+
"X-Deepline-Agent-Runtime": _chunkSYWOSAW7js.detectAgentRuntime.call(void 0, ),
|
|
630
|
+
"X-Deepline-CLI-Version": _chunkSYWOSAW7js.SDK_VERSION,
|
|
631
|
+
"X-Deepline-SDK-Version": _chunkSYWOSAW7js.SDK_VERSION
|
|
632
632
|
};
|
|
633
633
|
}
|
|
634
634
|
async function postFailureReport(input) {
|
|
@@ -656,7 +656,7 @@ async function maybeReportAutomaticSkillsSyncFailure(input) {
|
|
|
656
656
|
if (isFailureReportingDisabled()) return false;
|
|
657
657
|
let apiKey = "";
|
|
658
658
|
try {
|
|
659
|
-
apiKey =
|
|
659
|
+
apiKey = _chunk5FHU67ATjs.resolveApiKeyForBaseUrl.call(void 0, input.baseUrl);
|
|
660
660
|
} catch (e9) {
|
|
661
661
|
return false;
|
|
662
662
|
}
|
|
@@ -683,7 +683,7 @@ async function maybeReportAutomaticSkillsSyncFailure(input) {
|
|
|
683
683
|
failure_code: failureCode2,
|
|
684
684
|
failure_stage: failureStage,
|
|
685
685
|
error_body: "Automatic Deepline skills installation failed.",
|
|
686
|
-
cli_version:
|
|
686
|
+
cli_version: _chunkSYWOSAW7js.SDK_VERSION,
|
|
687
687
|
context: {
|
|
688
688
|
environment: buildEnvironmentContext(),
|
|
689
689
|
skills_sync: {
|
|
@@ -803,7 +803,7 @@ function buildFailureReport(input) {
|
|
|
803
803
|
failure_kind: failureKind,
|
|
804
804
|
failure_code: code,
|
|
805
805
|
failure_stage: input.error === void 0 ? "command_exit" : "cli_main",
|
|
806
|
-
cli_version:
|
|
806
|
+
cli_version: _chunkSYWOSAW7js.SDK_VERSION,
|
|
807
807
|
context: {
|
|
808
808
|
base_url: redactFailureText(input.baseUrl, 400),
|
|
809
809
|
command_summary: sanitizeCommand(input.argv),
|
|
@@ -823,8 +823,8 @@ async function maybeReportSdkCliFailure(input) {
|
|
|
823
823
|
if (isServerLoggedPlayRunStartFailure(input)) return false;
|
|
824
824
|
const exitCode = resolvedExitCode(input);
|
|
825
825
|
if (!shouldReport({ exitCode, error: input.error })) return false;
|
|
826
|
-
const baseUrl =
|
|
827
|
-
const apiKey =
|
|
826
|
+
const baseUrl = _chunk5FHU67ATjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
|
|
827
|
+
const apiKey = _chunk5FHU67ATjs.resolveApiKeyForBaseUrl.call(void 0, baseUrl);
|
|
828
828
|
if (!apiKey) return false;
|
|
829
829
|
return postFailureReport({
|
|
830
830
|
baseUrl,
|
|
@@ -861,25 +861,25 @@ var CHECK_TIMEOUT_MS2 = 3e3;
|
|
|
861
861
|
var INSTALLER_PROBE_TIMEOUT_MS = 1e3;
|
|
862
862
|
var PUBLISHED_VERIFICATION_RETRY_MS = 5 * 6e4;
|
|
863
863
|
function shouldSkipSkillsSync() {
|
|
864
|
-
if (
|
|
864
|
+
if (_chunkSYWOSAW7js.detectAgentRuntime.call(void 0, ) === "claude_cowork" || isCiEnvironment()) {
|
|
865
865
|
return true;
|
|
866
866
|
}
|
|
867
867
|
const value = _optionalChain([process, 'access', _66 => _66.env, 'access', _67 => _67.DEEPLINE_SKIP_SKILLS_SYNC, 'optionalAccess', _68 => _68.trim, 'call', _69 => _69(), 'access', _70 => _70.toLowerCase, 'call', _71 => _71()]);
|
|
868
868
|
return value === "1" || value === "true" || value === "yes" || value === "on";
|
|
869
869
|
}
|
|
870
870
|
function unavailableSkillsNoticePath(baseUrl) {
|
|
871
|
-
return _path.join.call(void 0,
|
|
871
|
+
return _path.join.call(void 0, _chunk5FHU67ATjs.sdkCliStateDirPath.call(void 0, baseUrl), "skills-sync-unavailable-version");
|
|
872
872
|
}
|
|
873
873
|
var SKILLS_SYNC_IN_PROGRESS_TTL_MS = 10 * 60 * 1e3;
|
|
874
874
|
var SKILLS_SYNC_IN_PROGRESS_PID_CAP_MS = 6 * 60 * 60 * 1e3;
|
|
875
|
-
var agentLeaseSegment =
|
|
875
|
+
var agentLeaseSegment = _chunk5FHU67ATjs.skillsAgentPathSegment;
|
|
876
876
|
function sortedLeaseAgents(agents) {
|
|
877
|
-
const expanded = agents.includes("*") ? [...agents, ...
|
|
877
|
+
const expanded = agents.includes("*") ? [...agents, ..._chunk5FHU67ATjs.KNOWN_SKILL_AGENTS] : agents;
|
|
878
878
|
return [...new Set(expanded)].sort((a, b) => a.localeCompare(b));
|
|
879
879
|
}
|
|
880
880
|
function inProgressSkillsSyncPath(baseUrl, agent) {
|
|
881
881
|
return _path.join.call(void 0,
|
|
882
|
-
|
|
882
|
+
_chunk5FHU67ATjs.sdkCliStateDirPath.call(void 0, baseUrl),
|
|
883
883
|
`skills-sync-in-progress-${agentLeaseSegment(agent)}`
|
|
884
884
|
);
|
|
885
885
|
}
|
|
@@ -1038,7 +1038,7 @@ var SkillsStateUnavailableError = class extends Error {
|
|
|
1038
1038
|
constructor(baseUrl, error) {
|
|
1039
1039
|
const detail = error instanceof Error ? error.message : String(error);
|
|
1040
1040
|
super(
|
|
1041
|
-
`Could not save skills state in ${
|
|
1041
|
+
`Could not save skills state in ${_chunk5FHU67ATjs.sdkCliStateDirPath.call(void 0, baseUrl)}: ${detail}`
|
|
1042
1042
|
);
|
|
1043
1043
|
this.name = "SkillsStateUnavailableError";
|
|
1044
1044
|
}
|
|
@@ -1123,7 +1123,7 @@ function skillsInstallLeasePath(baseUrl, agents) {
|
|
|
1123
1123
|
}
|
|
1124
1124
|
function deferredSkillsNoticePath(baseUrl, agents) {
|
|
1125
1125
|
return _path.join.call(void 0,
|
|
1126
|
-
|
|
1126
|
+
_chunk5FHU67ATjs.sdkCliStateDirPath.call(void 0, baseUrl),
|
|
1127
1127
|
`skills-sync-notice-${sortedLeaseAgents(agents).map(agentLeaseSegment).join("-")}`
|
|
1128
1128
|
);
|
|
1129
1129
|
}
|
|
@@ -1157,8 +1157,8 @@ function flushDeferredSkillsNotices(baseUrl, agents) {
|
|
|
1157
1157
|
if (text.trim()) writeSdkSkillsStatusLine(text.trimEnd());
|
|
1158
1158
|
}
|
|
1159
1159
|
function flushDeferredSkillsSyncNotices(baseUrl) {
|
|
1160
|
-
if (shouldSkipSkillsSync() ||
|
|
1161
|
-
const agents =
|
|
1160
|
+
if (shouldSkipSkillsSync() || _chunk5FHU67ATjs.hasActivePluginSkills.call(void 0, )) return;
|
|
1161
|
+
const agents = _chunk5FHU67ATjs.resolveAutoSyncSkillAgents.call(void 0, );
|
|
1162
1162
|
if (agents.length === 0) return;
|
|
1163
1163
|
flushDeferredSkillsNotices(baseUrl, agents);
|
|
1164
1164
|
}
|
|
@@ -1174,7 +1174,7 @@ function spawnDetachedSkillsSyncChild(argv, onSpawnError) {
|
|
|
1174
1174
|
}
|
|
1175
1175
|
function failedSkillsSyncPath(baseUrl, agents) {
|
|
1176
1176
|
return _path.join.call(void 0,
|
|
1177
|
-
|
|
1177
|
+
_chunk5FHU67ATjs.sdkCliStateDirPath.call(void 0, baseUrl),
|
|
1178
1178
|
`skills-sync-failed-${sortedLeaseAgents(agents).map(agentLeaseSegment).join("-")}-version`
|
|
1179
1179
|
);
|
|
1180
1180
|
}
|
|
@@ -1203,7 +1203,7 @@ function writeUnavailableSkillsNotice(baseUrl, remoteVersion, skillNames, reason
|
|
|
1203
1203
|
if (hasMarkedSkillsSyncVersion(path, remoteVersion)) return;
|
|
1204
1204
|
writeMarkedSkillsSyncVersion(path, remoteVersion);
|
|
1205
1205
|
const probes = reason === "no-installer" ? _nullishCoalesce(knownProbes, () => ( probeInstallers())) : null;
|
|
1206
|
-
const manualCommand = _optionalChain([probes, 'optionalAccess', _75 => _75.npx]) === "missing" && probes.bunx !== "missing" ? `bunx ${buildBunxSkillsInstallArgs(baseUrl, skillNames,
|
|
1206
|
+
const manualCommand = _optionalChain([probes, 'optionalAccess', _75 => _75.npx]) === "missing" && probes.bunx !== "missing" ? `bunx ${buildBunxSkillsInstallArgs(baseUrl, skillNames, _chunk5FHU67ATjs.DEFAULT_SKILL_AGENTS).map(shellQuote).join(" ")}` : `npx ${buildSkillsInstallArgs(baseUrl, skillNames).join(" ")}`;
|
|
1207
1207
|
const explanation = reason === "unsupported-agent" ? "the detected agent has no automatic skills sync target. Automatic sync was skipped." : _optionalChain([probes, 'optionalAccess', _76 => _76.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.`;
|
|
1208
1208
|
notice(
|
|
1209
1209
|
`Deepline agent skills are out of date, but ${explanation} To install manually, run:
|
|
@@ -1291,7 +1291,7 @@ function buildSdkSkillNames(v1SkillNames2) {
|
|
|
1291
1291
|
return sortedUniqueSkillNames(v1SkillNames2);
|
|
1292
1292
|
}
|
|
1293
1293
|
function isDefaultAgentSet(agents) {
|
|
1294
|
-
return agents.length ===
|
|
1294
|
+
return agents.length === _chunk5FHU67ATjs.DEFAULT_SKILL_AGENTS.length && agents.every((agent, index) => agent === _chunk5FHU67ATjs.DEFAULT_SKILL_AGENTS[index]);
|
|
1295
1295
|
}
|
|
1296
1296
|
function safeSkillFilePath(value) {
|
|
1297
1297
|
if (typeof value !== "string" || !value) return false;
|
|
@@ -1448,10 +1448,10 @@ async function fetchSkillsUpdate(baseUrl, localVersion) {
|
|
|
1448
1448
|
method: "POST",
|
|
1449
1449
|
headers: { "Content-Type": "application/json" },
|
|
1450
1450
|
body: JSON.stringify({
|
|
1451
|
-
sdk_cli: { version:
|
|
1451
|
+
sdk_cli: { version: _chunkSYWOSAW7js.SDK_VERSION },
|
|
1452
1452
|
skills: {
|
|
1453
1453
|
version: localVersion,
|
|
1454
|
-
capability:
|
|
1454
|
+
capability: _chunkUKKCS6Z4js.SDK_RELEASE.packageCapabilities.skillsGuidance
|
|
1455
1455
|
}
|
|
1456
1456
|
}),
|
|
1457
1457
|
signal: controller.signal
|
|
@@ -1490,7 +1490,7 @@ function probeInstallers(timeoutMs) {
|
|
|
1490
1490
|
}
|
|
1491
1491
|
function noInstallerProbePath(baseUrl) {
|
|
1492
1492
|
return _path.join.call(void 0,
|
|
1493
|
-
|
|
1493
|
+
_chunk5FHU67ATjs.sdkCliStateDirPath.call(void 0, baseUrl),
|
|
1494
1494
|
"skills-sync-no-installer-unknown.json"
|
|
1495
1495
|
);
|
|
1496
1496
|
}
|
|
@@ -1569,7 +1569,7 @@ function temporarySkillsSyncSkipCommand() {
|
|
|
1569
1569
|
function resolveSkillsInstallSpawn(install, platform2 = process.platform) {
|
|
1570
1570
|
return resolveShellSpawn(install.command, install.args, platform2);
|
|
1571
1571
|
}
|
|
1572
|
-
function resolveSkillsInstallCommands(baseUrl, skillNames = DEFAULT_SDK_SKILL_NAMES, agents =
|
|
1572
|
+
function resolveSkillsInstallCommands(baseUrl, skillNames = DEFAULT_SDK_SKILL_NAMES, agents = _chunk5FHU67ATjs.DEFAULT_SKILL_AGENTS, knownProbes) {
|
|
1573
1573
|
const commands = [];
|
|
1574
1574
|
const probes = _nullishCoalesce(knownProbes, () => ( probeInstallers()));
|
|
1575
1575
|
if (probes.bunx === "available") {
|
|
@@ -1711,7 +1711,7 @@ function runLegacySkillsCleanup(agents) {
|
|
|
1711
1711
|
}
|
|
1712
1712
|
}
|
|
1713
1713
|
function writeSdkSkillsStatusLine(line) {
|
|
1714
|
-
const progress =
|
|
1714
|
+
const progress = _chunkM475BQ77js.getActiveCliProgress.call(void 0, );
|
|
1715
1715
|
if (progress) {
|
|
1716
1716
|
progress.writeLine(line);
|
|
1717
1717
|
return;
|
|
@@ -1721,11 +1721,11 @@ function writeSdkSkillsStatusLine(line) {
|
|
|
1721
1721
|
}
|
|
1722
1722
|
async function syncSdkSkillsIfNeeded(baseUrl, options = {}) {
|
|
1723
1723
|
if (shouldSkipSkillsSync()) return;
|
|
1724
|
-
const usingPluginSkills =
|
|
1724
|
+
const usingPluginSkills = _chunk5FHU67ATjs.hasActivePluginSkills.call(void 0, );
|
|
1725
1725
|
if (usingPluginSkills) {
|
|
1726
1726
|
return;
|
|
1727
1727
|
}
|
|
1728
|
-
const agents =
|
|
1728
|
+
const agents = _chunk5FHU67ATjs.resolveAutoSyncSkillAgents.call(void 0, );
|
|
1729
1729
|
if (options.mode === "detached" && agents.length > 0) {
|
|
1730
1730
|
flushDeferredSkillsNotices(baseUrl, agents);
|
|
1731
1731
|
}
|
|
@@ -1753,7 +1753,7 @@ async function syncSdkSkillsIfNeeded(baseUrl, options = {}) {
|
|
|
1753
1753
|
return;
|
|
1754
1754
|
}
|
|
1755
1755
|
try {
|
|
1756
|
-
const localVersion =
|
|
1756
|
+
const localVersion = _chunk5FHU67ATjs.readSdkSkillsLocalVersion.call(void 0, baseUrl);
|
|
1757
1757
|
const update = options.update === void 0 ? claimedVersion ? { needsUpdate: true, remoteVersion: claimedVersion } : await fetchSkillsUpdate(baseUrl, localVersion) : options.update ? {
|
|
1758
1758
|
needsUpdate: options.update.needs_update,
|
|
1759
1759
|
remoteVersion: options.update.remote.version
|
|
@@ -1919,7 +1919,7 @@ async function runInlineSkillsSync(baseUrl, remoteVersion, agents, notices) {
|
|
|
1919
1919
|
}
|
|
1920
1920
|
}
|
|
1921
1921
|
runLegacySkillsCleanup(agents);
|
|
1922
|
-
if (!
|
|
1922
|
+
if (!_chunk5FHU67ATjs.writeSdkSkillsLocalVersion.call(void 0, baseUrl, update.remoteVersion, agents)) {
|
|
1923
1923
|
notice(
|
|
1924
1924
|
"Deepline agent skills installed, but the local skills version could not be recorded. A later command will retry the refresh."
|
|
1925
1925
|
);
|
|
@@ -2,10 +2,10 @@ import {
|
|
|
2
2
|
HttpClient,
|
|
3
3
|
resolveCliCommandContext,
|
|
4
4
|
resolveConfig
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-KQJHIVCE.mjs";
|
|
6
6
|
import {
|
|
7
7
|
detectAgentRuntime
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-OMPW5ELS.mjs";
|
|
9
9
|
import {
|
|
10
10
|
DeeplineError,
|
|
11
11
|
serializeToolExecutionFailure
|
|
@@ -20,7 +20,7 @@ var RUN_FIELDS = new Set(
|
|
|
20
20
|
var ROOTS = {
|
|
21
21
|
describe: "name playKey reference displayName description pinned toolCategories tags origin ownerType canEdit canClone aliases inputSchema outputSchema staticPipeline csvInput rowOutputSchema runCommand examples cloneEditStarter currentPublishedVersion liveVersion triggerStatus triggerMetadata isDraftDirty latestRunId runtimeLimit activeScheduledPlays dashboardUrl command_context",
|
|
22
22
|
check: "kind target checked scope name exportName valid stage issues inputSchema outputSchema recognized triggers runtimeLimit limits featureFlags sourceHash artifactHash graphHash toolGetterHints exports actions diagnostics reference origin ownerType activeScheduledPlays command_context",
|
|
23
|
-
run: "schemaVersion kind run datasets actions apiVersion dashboardUrl progress rowOutcomes steps errors error warnings result resultState execution command_context diagnostics",
|
|
23
|
+
run: "schemaVersion kind run datasets actions apiVersion rateLimited dashboardUrl progress rowOutcomes steps errors error warnings result resultState execution command_context diagnostics",
|
|
24
24
|
get: "schemaVersion kind run dashboardUrl runStatus steps failures errorDetails rowOutcomes warnings failedLogs datasets result resultState actions diagnostics command_context",
|
|
25
25
|
config: "runId contract command_context",
|
|
26
26
|
export: "runId datasets csv_path json_path format source rowCount columns notice metadata_path actions command_context"
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
traceCliSpan
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-2S36YV2K.mjs";
|
|
4
4
|
import {
|
|
5
5
|
checkSdkCompatibility,
|
|
6
6
|
enforceSdkCompatibilityResponse,
|
|
7
7
|
flushDeferredSkillsSyncNotices
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-T5H7ETIM.mjs";
|
|
9
9
|
|
|
10
10
|
// src/cli/play-run-admission.ts
|
|
11
11
|
function usesInlinePlayAdmission(command, args) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunkSYWOSAW7js = require('./chunk-SYWOSAW7.js');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
var _chunkALJJRZNJjs = require('./chunk-ALJJRZNJ.js');
|
|
@@ -711,7 +711,7 @@ function readSkillsVersionFile(path) {
|
|
|
711
711
|
}
|
|
712
712
|
}
|
|
713
713
|
function resolveAutoSyncSkillAgents() {
|
|
714
|
-
switch (
|
|
714
|
+
switch (_chunkSYWOSAW7js.detectAgentRuntime.call(void 0, )) {
|
|
715
715
|
case "codex":
|
|
716
716
|
return ["codex"];
|
|
717
717
|
case "claude_code":
|
|
@@ -781,7 +781,7 @@ function writeSdkSkillsLocalVersion(baseUrl, version, agents) {
|
|
|
781
781
|
}
|
|
782
782
|
|
|
783
783
|
// src/http.ts
|
|
784
|
-
var HttpClient2 = class extends
|
|
784
|
+
var HttpClient2 = class extends _chunkSYWOSAW7js.HttpClient {
|
|
785
785
|
constructor(config) {
|
|
786
786
|
super(config, readSdkSkillsLocalVersion);
|
|
787
787
|
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
seedToolListScript
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-MRZ7AO72.mjs";
|
|
4
4
|
import {
|
|
5
5
|
addDescribeOptions
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-QSCLOPWR.mjs";
|
|
7
7
|
import {
|
|
8
8
|
describeLookupsFor,
|
|
9
9
|
describeName,
|
|
@@ -14,10 +14,10 @@ import {
|
|
|
14
14
|
} from "./chunk-JVHOS3K3.mjs";
|
|
15
15
|
import {
|
|
16
16
|
DeeplineClient
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-CFDQZQE2.mjs";
|
|
18
18
|
import {
|
|
19
19
|
printCommandEnvelope
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-4NFBYW7X.mjs";
|
|
21
21
|
|
|
22
22
|
// src/cli/commands/describe.ts
|
|
23
23
|
import { writeFileSync } from "fs";
|
|
@@ -707,7 +707,7 @@ When:
|
|
|
707
707
|
The sequence:
|
|
708
708
|
search "<input you have -> result you need>" find the play
|
|
709
709
|
describe <ref> required input, CSV columns, output fields
|
|
710
|
-
plays
|
|
710
|
+
plays cost <ref> per-row or per-run credit estimate
|
|
711
711
|
run <ref> --input '{"csv":"file.csv"}' --csv-out out.csv run it, save rows
|
|
712
712
|
Writing a play:
|
|
713
713
|
Start from code that already works, not a blank file.
|
|
@@ -848,17 +848,30 @@ Output (JSON):
|
|
|
848
848
|
]]
|
|
849
849
|
Cost:
|
|
850
850
|
Free.
|
|
851
|
+
`
|
|
852
|
+
},
|
|
853
|
+
"plays cost": {
|
|
854
|
+
core: `
|
|
855
|
+
Purpose:
|
|
856
|
+
Read the advisory cost estimate for one saved or prebuilt Play.
|
|
857
|
+
Input:
|
|
858
|
+
<play> is a bare name or qualified reference.[[cli: --json prints the exact result.]]
|
|
859
|
+
Output:
|
|
860
|
+
reference, costEstimate, and for prebuilts observedCost. Estimates include
|
|
861
|
+
the output unit, observed or static range, sample size and compute ceiling.
|
|
862
|
+
Cost:
|
|
863
|
+
Read-only. Uses the current workspace's pricing; does not start a run.
|
|
851
864
|
`
|
|
852
865
|
},
|
|
853
866
|
"plays list": {
|
|
854
867
|
core: `
|
|
855
868
|
Purpose:
|
|
856
|
-
Inventory of saved and prebuilt plays, one bounded page at a time.[[cli:
|
|
857
|
-
|
|
869
|
+
Inventory of saved and prebuilt plays, one bounded page at a time.[[cli:
|
|
870
|
+
Add --show-cost for estimates across the page.]][[mcp: Search returns Play summaries;
|
|
858
871
|
deepline_describe_play returns input/output schemas and CSV contracts.]]
|
|
859
872
|
When:
|
|
860
873
|
[[cli:
|
|
861
|
-
To price a
|
|
874
|
+
To price a catalog page: plays list --show-cost, then read the
|
|
862
875
|
cost estimate line for the play, or in JSON observedCost (prebuilts) or
|
|
863
876
|
costEstimate.
|
|
864
877
|
]]
|
|
@@ -868,7 +881,8 @@ When:
|
|
|
868
881
|
]]
|
|
869
882
|
[[cli:
|
|
870
883
|
Input:
|
|
871
|
-
--show-cost adds estimates. --
|
|
884
|
+
--show-cost adds estimates. --summary loads metadata without source or
|
|
885
|
+
revision payloads. --limit and --cursor page. --categories
|
|
872
886
|
filters by tool category. --json prints JSON.
|
|
873
887
|
]]
|
|
874
888
|
[[cli:
|
|
@@ -1058,7 +1072,9 @@ Output (JSON, printed when the run ends):
|
|
|
1058
1072
|
datasets[] {datasetId, name, storage {schema, table}}, and actions holding
|
|
1059
1073
|
exact follow-up commands: getRunCmd, getFullRunCmd, getBillingCmd,
|
|
1060
1074
|
getLogsCmd, exportDatasetCmds[], queryTableSqlCmds[]. Rows are not in this
|
|
1061
|
-
payload.
|
|
1075
|
+
payload. When the play's rateLimit window is held, no run starts: the
|
|
1076
|
+
package is the latest run plus rateLimited {latestRunId, nextAllowedAt,
|
|
1077
|
+
message}. Progress lines are printed while it waits; the JSON is the last
|
|
1062
1078
|
thing printed. To parse it, add --json: progress is suppressed and stdout
|
|
1063
1079
|
is one JSON document.
|
|
1064
1080
|
]]
|
|
@@ -1069,7 +1085,9 @@ Output:
|
|
|
1069
1085
|
rowOutcomes, warnings, datasets[] {tableNamespace, sqlQualifiedTableName,
|
|
1070
1086
|
actions}, and next {inspect, full, billing, logs}, each naming the MCP call
|
|
1071
1087
|
for that follow-up. Pass a dataset's tableNamespace as table_namespace to
|
|
1072
|
-
deepline_read_play_output for its rows; rows are not in this payload.
|
|
1088
|
+
deepline_read_play_output for its rows; rows are not in this payload. A
|
|
1089
|
+
held rateLimit window starts no run and returns the latest run with
|
|
1090
|
+
rateLimited {latestRunId, nextAllowedAt, message}.
|
|
1073
1091
|
]]
|
|
1074
1092
|
Cost:
|
|
1075
1093
|
Spends Deepline credits through the play's tool calls. Validation errors
|