deepline 0.3.492 → 0.3.493
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 +11 -5
- 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 +6 -0
- package/dist/bundling-sources/shared_libs/monitors/fleets/verdict.ts +25 -9
- package/dist/bundling-sources/shared_libs/observability/scheduled-jobs.json +36 -0
- package/dist/bundling-sources/shared_libs/observability/scheduled-work-manual.ts +5 -4
- package/dist/bundling-sources/shared_libs/play-runtime/crustdata-company-identify-batching.ts +162 -0
- package/dist/bundling-sources/shared_libs/play-runtime/daytona-sandbox-reaper.ts +19 -3
- package/dist/bundling-sources/shared_libs/play-runtime/play-runtime-batching-registry.ts +2 -0
- package/dist/bundling-sources/shared_libs/play-runtime/receipt-sql.ts +17 -23
- package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/backends/daytona-modal-fallback.ts +28 -1
- package/dist/bundling-sources/shared_libs/play-runtime/runtime-sandbox-placement-policy.ts +75 -0
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/absurd-runtime-worker.ts +20 -0
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/postgres.ts +412 -59
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/runtime-sandbox-capacity.ts +38 -10
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/runtime-sandbox-ledger-reconciliation.ts +19 -11
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/runtime-sandbox-operation.ts +165 -12
- package/dist/bundling-sources/shared_libs/play-runtime/work-receipt-state-machine.ts +358 -0
- package/dist/cli/{auth-4I6QY5WX.mjs → auth-3NAY3AST.mjs} +5 -5
- package/dist/cli/auth-KYQLDI6V.js +43 -0
- package/dist/cli/{billing-2H4GOJZY.js → billing-FSB4BBBO.js} +80 -80
- package/dist/cli/{billing-4F6L4JSI.mjs → billing-SBWQCC7B.mjs} +7 -7
- package/dist/cli/{chunk-MQ2LQOAM.mjs → chunk-2BRTYIAH.mjs} +23 -9
- package/dist/cli/{chunk-E47VAVAR.js → chunk-2H4OFVR5.js} +5 -5
- package/dist/cli/{chunk-ZDTPSVGF.js → chunk-2I7VN65H.js} +10 -10
- package/dist/cli/{chunk-LCCFGSV7.mjs → chunk-2IHGVAGT.mjs} +2 -2
- package/dist/cli/{chunk-BDUFZSUL.js → chunk-2NGIBJM2.js} +8 -8
- package/dist/cli/{chunk-OTUT3XTX.mjs → chunk-3QGUWB6E.mjs} +4 -4
- package/dist/cli/{chunk-3BRDP4UP.mjs → chunk-4IJFQV3O.mjs} +1 -1
- package/dist/cli/{chunk-PIC6M4X3.mjs → chunk-4NIGNT7X.mjs} +1 -1
- package/dist/cli/{chunk-YVOYZPMY.mjs → chunk-5DIZ2G74.mjs} +2 -2
- package/dist/cli/{chunk-TKLDKIJU.mjs → chunk-5JPKRDFC.mjs} +7 -5
- package/dist/cli/{chunk-FTXIJTV2.mjs → chunk-5WOPBX3H.mjs} +1 -1
- package/dist/cli/{chunk-R5MP3CIY.mjs → chunk-67ZG7XZV.mjs} +3 -3
- package/dist/cli/{chunk-W4FEX5ZF.js → chunk-7HABWOMB.js} +261 -261
- package/dist/cli/{chunk-FPLN7PHP.js → chunk-AGTXL6LZ.js} +5 -5
- package/dist/cli/{chunk-SE23YSBK.js → chunk-AWMCZAUR.js} +3 -3
- package/dist/cli/{chunk-HHTVRICE.js → chunk-C2MRDPA5.js} +17 -17
- package/dist/cli/{chunk-ONONSV2Q.mjs → chunk-DVQHG6AM.mjs} +1 -0
- package/dist/cli/{chunk-O3K22ZC7.js → chunk-DWJ4RXSA.js} +34 -11
- package/dist/cli/{chunk-6YO4OJPM.mjs → chunk-DYP27IWC.mjs} +99 -24
- package/dist/cli/{chunk-EANFUHRM.mjs → chunk-E5ILCMKQ.mjs} +1 -1
- package/dist/cli/{chunk-Y7QCMOGZ.mjs → chunk-EBAS3UT2.mjs} +6 -6
- package/dist/cli/{chunk-DJOLMS2A.js → chunk-EFO5GVYS.js} +1 -1
- package/dist/cli/{chunk-NF7NUKWF.js → chunk-EYG336YV.js} +132 -57
- package/dist/cli/{chunk-OKHBAAJG.mjs → chunk-GSC35TPZ.mjs} +2 -2
- package/dist/cli/{chunk-MPITIXW4.mjs → chunk-HLM2UFQ5.mjs} +13 -5
- package/dist/cli/{chunk-TVUE4CPW.js → chunk-HTUSTPP4.js} +32 -32
- package/dist/cli/{chunk-GDSZWTJK.mjs → chunk-IJJ6D5WL.mjs} +12 -12
- package/dist/cli/{chunk-3TISK5RQ.js → chunk-IJOHWGPF.js} +6 -6
- package/dist/cli/{chunk-NBL6JMIY.js → chunk-IOBPR2VO.js} +17 -17
- package/dist/cli/{chunk-EFFHRXKB.js → chunk-IOMEJKGK.js} +2 -2
- package/dist/cli/{chunk-A7ZMG2QZ.mjs → chunk-IRDYBMA7.mjs} +34 -11
- package/dist/cli/{chunk-B2JE3HD6.js → chunk-JO2JZUBR.js} +3 -3
- package/dist/cli/{chunk-4IP5MLWU.js → chunk-JO5FFSR7.js} +6 -1
- package/dist/cli/{chunk-O2FB42N2.js → chunk-KCDZWS2B.js} +56 -56
- package/dist/cli/{chunk-CGDUFVNE.mjs → chunk-KGDDQMI7.mjs} +2 -2
- package/dist/cli/{chunk-UUH4GQRL.mjs → chunk-KKSKYZO4.mjs} +1 -1
- package/dist/cli/{chunk-OTDX4A4W.js → chunk-LGTZYI5B.js} +21 -21
- package/dist/cli/{chunk-JJAHWKJ2.js → chunk-MLEUOTEQ.js} +73 -59
- package/dist/cli/{chunk-YOCEY4EI.mjs → chunk-NALJJTPS.mjs} +5 -5
- package/dist/cli/{chunk-HFEJ7JJT.js → chunk-NPNAEPY4.js} +26 -26
- package/dist/cli/{chunk-3IBKEOL4.js → chunk-NWIDPT7H.js} +4 -4
- package/dist/cli/{chunk-AUQQVDAB.js → chunk-PKV5CD3W.js} +1 -0
- package/dist/cli/{chunk-4RB74KJX.js → chunk-QTPS5RLG.js} +15 -15
- package/dist/cli/{chunk-4OLXMJ2L.js → chunk-RLX5ZFNX.js} +8 -6
- package/dist/cli/{chunk-DEJIN4DF.mjs → chunk-SAW3FBCA.mjs} +5 -0
- package/dist/cli/{chunk-RC366IJS.mjs → chunk-SXD2EYAH.mjs} +6 -6
- package/dist/cli/{chunk-YNWET57Z.js → chunk-TIFRRLZT.js} +7 -7
- package/dist/cli/{chunk-ZCKUNXXR.mjs → chunk-TNQOR6XQ.mjs} +1 -1
- package/dist/cli/{chunk-OGNIB64W.js → chunk-UCMY2SO2.js} +23 -15
- package/dist/cli/{chunk-O65HDVA7.mjs → chunk-VFHIYWMC.mjs} +5 -5
- package/dist/cli/{chunk-JHBRJDUC.js → chunk-WCZFCOMZ.js} +7 -7
- package/dist/cli/{chunk-FFOJRD53.mjs → chunk-WTFI7BVH.mjs} +3 -3
- package/dist/cli/{chunk-42Z6VC2Q.js → chunk-XLE7KXE7.js} +2 -2
- package/dist/cli/{chunk-Q3CCCTRQ.js → chunk-XQX476QK.js} +14 -14
- package/dist/cli/{chunk-F6EQWY4E.mjs → chunk-Y3NN2UAF.mjs} +2 -2
- package/dist/cli/{chunk-MJFVF5AW.mjs → chunk-ZQH4TXM2.mjs} +2 -2
- package/dist/cli/{chunk-DVGCPOEA.mjs → chunk-ZVW7EWTC.mjs} +7 -7
- package/dist/cli/{chunk-4GJIJHRQ.mjs → chunk-ZVXB7OU7.mjs} +1 -1
- package/dist/cli/command-docs.js +2 -2
- package/dist/cli/command-docs.mjs +1 -1
- package/dist/cli/{csv-JGJNDRSA.js → csv-DKYZE2KM.js} +13 -13
- package/dist/cli/{csv-VGXGV7YM.mjs → csv-XR22YQXT.mjs} +4 -4
- package/dist/cli/{db-OYG27ZBM.mjs → db-EOKG36YN.mjs} +7 -7
- package/dist/cli/{db-W52WJ6E5.js → db-RNYRTCMV.js} +28 -28
- package/dist/cli/describe-ICFXOQBW.mjs +50 -0
- package/dist/cli/describe-RS75I33X.js +50 -0
- package/dist/cli/describe-core.d.mts +2 -2
- package/dist/cli/describe-core.d.ts +2 -2
- package/dist/cli/describe-core.js +4 -4
- package/dist/cli/describe-core.mjs +3 -3
- package/dist/cli/{executions-EVE4KUGL.mjs → executions-3RAOACNS.mjs} +7 -7
- package/dist/cli/{executions-LAJHZGPY.js → executions-OBWPSWH7.js} +9 -9
- package/dist/cli/{feedback-75QB7KVG.mjs → feedback-6EQRVBKF.mjs} +4 -4
- package/dist/cli/{feedback-ZABCN7RT.js → feedback-6GPEUBLF.js} +8 -8
- package/dist/cli/getting-started.d.mts +12 -10
- package/dist/cli/getting-started.d.ts +12 -10
- package/dist/cli/getting-started.js +4 -2
- package/dist/cli/getting-started.mjs +3 -1
- package/dist/cli/{git-QIFEYQGY.mjs → git-CVQ24DTR.mjs} +5 -5
- package/dist/cli/git-DEFE4SSB.js +25 -0
- package/dist/cli/index.js +143 -143
- package/dist/cli/index.mjs +43 -43
- package/dist/cli/{legacy-noops-PNTWBBGY.mjs → legacy-noops-QULJZYNH.mjs} +5 -5
- package/dist/cli/{legacy-noops-2TBIAMCM.js → legacy-noops-XPOATG5V.js} +8 -8
- package/dist/cli/{monitors-LOHUYJEI.mjs → monitors-AFT5YJPZ.mjs} +49 -9
- package/dist/cli/{monitors-UKBOEGBS.js → monitors-OJ4CMREE.js} +169 -129
- package/dist/cli/{org-E7A6QLBW.js → org-RKT52CSL.js} +73 -73
- package/dist/cli/{org-JRUKUOUF.mjs → org-WHKNXANG.mjs} +7 -7
- package/dist/cli/{pages-K76HA473.mjs → pages-EEAQFGVD.mjs} +7 -7
- package/dist/cli/{pages-EUDFFLLD.js → pages-SOE3R667.js} +18 -18
- package/dist/cli/{play-DG2N66SV.mjs → play-LXFWHUBP.mjs} +147 -52
- package/dist/cli/{play-UWHNUJRA.js → play-OTJJ4E4T.js} +661 -566
- package/dist/cli/{providers-DZX6TTC6.js → providers-RU4HIAT3.js} +10 -10
- package/dist/cli/{providers-RUTTPUZD.mjs → providers-U3CPKTMM.mjs} +7 -7
- package/dist/cli/{quickstart-RGZZN2YE.mjs → quickstart-75AO2AJC.mjs} +5 -5
- package/dist/cli/{quickstart-U4NMD7KX.js → quickstart-N72IVA2Y.js} +13 -13
- package/dist/cli/{run-MOJWQYFQ.mjs → run-IGWFL6WH.mjs} +29 -28
- package/dist/cli/{run-5UNF4FHG.js → run-MMYES3IW.js} +44 -43
- package/dist/cli/search-EQURI7SZ.js +32 -0
- package/dist/cli/{search-5B3ZDU7H.mjs → search-FIYESBLZ.mjs} +8 -8
- package/dist/cli/{search-output-VQWJS3FN.js → search-output-2FXN4ZWD.js} +9 -6
- package/dist/cli/{search-output-QS4IWWHA.mjs → search-output-3I5KSW36.mjs} +7 -4
- package/dist/cli/{secrets-S3PJMEAC.js → secrets-HCZQ6JNP.js} +16 -16
- package/dist/cli/{secrets-V5XVDBIS.mjs → secrets-O7IUQ3VT.mjs} +7 -7
- package/dist/cli/{sessions-Y5QMEZ3D.js → sessions-5AYTT4IW.js} +6 -6
- package/dist/cli/{sessions-5V3X24XI.mjs → sessions-KY7A3EZO.mjs} +5 -5
- package/dist/cli/{settings-3U6RRO5F.js → settings-P4VFYWJK.js} +80 -80
- package/dist/cli/{settings-LHZYY5PT.mjs → settings-WSMRR2GS.mjs} +13 -13
- package/dist/cli/{setup-MLLIGO2S.js → setup-J7CA3EJL.js} +57 -57
- package/dist/cli/{setup-AJLWXYAN.mjs → setup-YTVKVQC7.mjs} +13 -13
- package/dist/cli/skills-KKPEGLAR.js +36 -0
- package/dist/cli/{skills-5O2MUWKK.mjs → skills-W5WY764N.mjs} +10 -10
- package/dist/cli/tools-65Y4QTW6.js +57 -0
- package/dist/cli/{tools-PWNMI5CD.mjs → tools-YECI6N3N.mjs} +20 -20
- package/dist/cli/{update-SXT4QW7S.mjs → update-BIFBIEII.mjs} +10 -10
- package/dist/cli/update-WDG7VFOW.js +34 -0
- package/dist/cli/{workflow-3WTF5IYT.js → workflow-D2TUFFH6.js} +18 -18
- package/dist/cli/{workflow-KPRM6ARO.mjs → workflow-XZVDNARC.mjs} +8 -8
- package/dist/{client-Cb1ej1Vr.d.ts → client-BDB_VbE4.d.ts} +1 -1
- package/dist/{client-vWpbLNCB.d.mts → client-CNzJ1LTF.d.mts} +1 -1
- package/dist/{client-core-CoBTvsXG.d.mts → client-core-CSv3DlPD.d.mts} +10 -3
- package/dist/{client-core-BmVs6SP0.d.ts → client-core-xEa9x3pl.d.ts} +10 -3
- package/dist/index.d.mts +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/index.js +10 -10
- package/dist/index.mjs +7 -7
- package/dist/install-integrity.json +115 -114
- package/dist/plays/play-description.d.mts +1 -1
- package/dist/plays/play-description.d.ts +1 -1
- package/dist/plays/run-request.d.mts +1 -1
- package/dist/plays/run-request.d.ts +1 -1
- 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 +2 -2
- package/dist/server.d.ts +2 -2
- package/dist/server.js +6 -6
- package/dist/server.mjs +4 -4
- package/package.json +1 -1
- package/dist/cli/auth-7BCLZU6K.js +0 -43
- package/dist/cli/describe-FIXCRO5N.mjs +0 -50
- package/dist/cli/describe-G3O6OUBG.js +0 -50
- package/dist/cli/git-QBAR46NW.js +0 -25
- package/dist/cli/search-3DAEJL6S.js +0 -32
- package/dist/cli/skills-BBLIML5M.js +0 -36
- package/dist/cli/tools-X5SQXUMM.js +0 -57
- package/dist/cli/update-AEJ2ZSZQ.js +0 -34
|
@@ -795,6 +795,10 @@ function buildPlayDashboardUrl(baseUrl, playName) {
|
|
|
795
795
|
const encodedPlayName = encodeURIComponent(playName);
|
|
796
796
|
return `${trimmedBase}/dashboard/plays/${encodedPlayName}`;
|
|
797
797
|
}
|
|
798
|
+
function buildPlayRunUrl(baseUrl, playName, runId) {
|
|
799
|
+
const params = new URLSearchParams({ runId });
|
|
800
|
+
return `${buildPlayDashboardUrl(baseUrl, playName)}?${params.toString()}`;
|
|
801
|
+
}
|
|
798
802
|
function describedPlay(play) {
|
|
799
803
|
const reference = play.reference || play.name;
|
|
800
804
|
const starter = _nullishCoalesce(play.cloneEditStarter, () => ( _chunkNMU3VR5Ujs.cloneEditStarter.call(void 0, play)));
|
|
@@ -862,4 +866,5 @@ function describedPlay(play) {
|
|
|
862
866
|
|
|
863
867
|
|
|
864
868
|
|
|
865
|
-
|
|
869
|
+
|
|
870
|
+
exports.byokLines = byokLines; exports.SCHEMA_LINE_LIMIT = SCHEMA_LINE_LIMIT; exports.schemaField = schemaField; exports.schemaFields = schemaFields; exports.rateLimitSummary = rateLimitSummary; exports.rateLimitQualifier = rateLimitQualifier; exports.schemaLines = schemaLines; exports.fieldBlockLines = fieldBlockLines; exports.examples = examples; exports.describedLines = describedLines; exports.topLevelField = topLevelField; exports.describedJson = describedJson; exports.buildPlayDashboardUrl = buildPlayDashboardUrl; exports.buildPlayRunUrl = buildPlayRunUrl; exports.describedPlay = describedPlay;
|
|
@@ -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 _chunkAWMCZAURjs = require('./chunk-AWMCZAUR.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
@@ -12,7 +12,7 @@ var _chunkSE23YSBKjs = require('./chunk-SE23YSBK.js');
|
|
|
12
12
|
|
|
13
13
|
|
|
14
14
|
|
|
15
|
-
var
|
|
15
|
+
var _chunkJO2JZUBRjs = require('./chunk-JO2JZUBR.js');
|
|
16
16
|
|
|
17
17
|
|
|
18
18
|
|
|
@@ -20,13 +20,13 @@ var _chunkB2JE3HD6js = require('./chunk-B2JE3HD6.js');
|
|
|
20
20
|
|
|
21
21
|
|
|
22
22
|
|
|
23
|
-
var
|
|
23
|
+
var _chunkNWIDPT7Hjs = require('./chunk-NWIDPT7H.js');
|
|
24
24
|
|
|
25
25
|
|
|
26
26
|
var _chunkDIAWYWT5js = require('./chunk-DIAWYWT5.js');
|
|
27
27
|
|
|
28
28
|
|
|
29
|
-
var
|
|
29
|
+
var _chunkEFO5GVYSjs = require('./chunk-EFO5GVYS.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, _chunkJO2JZUBRjs.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: _chunkNWIDPT7Hjs.SDK_VERSION,
|
|
73
|
+
apiContract: _chunkNWIDPT7Hjs.SDK_API_CONTRACT,
|
|
74
|
+
apiMajor: _chunkNWIDPT7Hjs.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: _chunkNWIDPT7Hjs.SDK_VERSION,
|
|
83
|
+
apiContract: _chunkNWIDPT7Hjs.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, _chunkJO2JZUBRjs.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", _chunkNWIDPT7Hjs.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(_chunkEFO5GVYSjs.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
|
+
..._chunkNWIDPT7Hjs.deploymentProtectionHeaders.call(void 0, ),
|
|
216
|
+
"User-Agent": `deepline-ts-sdk/${_chunkNWIDPT7Hjs.SDK_VERSION}`,
|
|
217
|
+
"X-Deepline-SDK-Version": _chunkNWIDPT7Hjs.SDK_VERSION,
|
|
218
|
+
"X-Deepline-API-Major": String(_chunkNWIDPT7Hjs.SDK_API_MAJOR),
|
|
219
|
+
"X-Deepline-API-Contract": _chunkNWIDPT7Hjs.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 ${_chunkJO2JZUBRjs.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, () => ( _chunkJO2JZUBRjs.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: _chunkNWIDPT7Hjs.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 = _chunkNWIDPT7Hjs.agentSessionIdFromEnvironment.call(void 0, );
|
|
632
632
|
return {
|
|
633
|
-
...
|
|
633
|
+
..._chunkNWIDPT7Hjs.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/${_chunkNWIDPT7Hjs.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": _chunkNWIDPT7Hjs.detectAgentRuntime.call(void 0, ),
|
|
641
|
+
"X-Deepline-CLI-Version": _chunkNWIDPT7Hjs.SDK_VERSION,
|
|
642
|
+
"X-Deepline-SDK-Version": _chunkNWIDPT7Hjs.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 = _chunkJO2JZUBRjs.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: _chunkNWIDPT7Hjs.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: _chunkNWIDPT7Hjs.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 = _chunkJO2JZUBRjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
|
|
838
|
+
const apiKey = _chunkJO2JZUBRjs.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 (_chunkNWIDPT7Hjs.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, _chunkJO2JZUBRjs.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 = _chunkJO2JZUBRjs.skillsAgentPathSegment;
|
|
887
887
|
function sortedLeaseAgents(agents) {
|
|
888
|
-
const expanded = agents.includes("*") ? [...agents, ...
|
|
888
|
+
const expanded = agents.includes("*") ? [...agents, ..._chunkJO2JZUBRjs.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
|
+
_chunkJO2JZUBRjs.sdkCliStateDirPath.call(void 0, baseUrl),
|
|
894
894
|
`skills-sync-in-progress-${agentLeaseSegment(agent)}`
|
|
895
895
|
);
|
|
896
896
|
}
|
|
@@ -1040,7 +1040,7 @@ function claimAndSpawnDetachedSkillsSync(baseUrl, agents, remoteVersion, spawnDe
|
|
|
1040
1040
|
baseUrl,
|
|
1041
1041
|
agents
|
|
1042
1042
|
)(
|
|
1043
|
-
"Deepline skills refresh failed to start; run `deepline skills` to retry."
|
|
1043
|
+
"Deepline skills refresh failed to start; run `deepline skills install` to retry."
|
|
1044
1044
|
);
|
|
1045
1045
|
});
|
|
1046
1046
|
return { state: "claimed" };
|
|
@@ -1049,13 +1049,13 @@ 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 ${_chunkJO2JZUBRjs.sdkCliStateDirPath.call(void 0, baseUrl)}: ${detail}`
|
|
1053
1053
|
);
|
|
1054
1054
|
this.name = "SkillsStateUnavailableError";
|
|
1055
1055
|
}
|
|
1056
1056
|
};
|
|
1057
1057
|
function writeSkillsStateUnavailableNotice(baseUrl, agents, error) {
|
|
1058
|
-
const retry = agents.length === 1 ? `deepline skills --agent ${agents[0]}` : "deepline skills";
|
|
1058
|
+
const retry = agents.length === 1 ? `deepline skills install --agent ${agents[0]}` : "deepline skills install";
|
|
1059
1059
|
writeSdkSkillsStatusLine(
|
|
1060
1060
|
`Automatic skills update skipped. ${new SkillsStateUnavailableError(baseUrl, error).message}. Your command will continue. Resolve this filesystem error, then run: ${retry}`
|
|
1061
1061
|
);
|
|
@@ -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
|
+
_chunkJO2JZUBRjs.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() || _chunkJO2JZUBRjs.hasActivePluginSkills.call(void 0, )) return;
|
|
1172
|
+
const agents = _chunkJO2JZUBRjs.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
|
+
_chunkJO2JZUBRjs.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, _chunkJO2JZUBRjs.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 === _chunkJO2JZUBRjs.DEFAULT_SKILL_AGENTS.length && agents.every((agent, index) => agent === _chunkJO2JZUBRjs.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: _chunkNWIDPT7Hjs.SDK_VERSION },
|
|
1463
1463
|
skills: {
|
|
1464
1464
|
version: localVersion,
|
|
1465
|
-
capability:
|
|
1465
|
+
capability: _chunkEFO5GVYSjs.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
|
+
_chunkJO2JZUBRjs.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 = _chunkJO2JZUBRjs.DEFAULT_SKILL_AGENTS, knownProbes) {
|
|
1584
1584
|
const commands = [];
|
|
1585
1585
|
const probes = _nullishCoalesce(knownProbes, () => ( probeInstallers()));
|
|
1586
1586
|
if (probes.bunx === "available") {
|
|
@@ -1660,7 +1660,7 @@ async function runSkillsInstall(installs, agents, notice = writeSdkSkillsStatusL
|
|
|
1660
1660
|
${attemptedCommands}
|
|
1661
1661
|
` : "") + (details ? `Installer output:
|
|
1662
1662
|
${details}
|
|
1663
|
-
` : "") + (retryAgent ? `To retry with full installer output: deepline skills --agent ${retryAgent}
|
|
1663
|
+
` : "") + (retryAgent ? `To retry with full installer output: deepline skills install --agent ${retryAgent}
|
|
1664
1664
|
` : "") + `To temporarily suppress automatic skills sync: ${temporarySkillsSyncSkipCommand()}`
|
|
1665
1665
|
);
|
|
1666
1666
|
return {
|
|
@@ -1722,7 +1722,7 @@ function runLegacySkillsCleanup(agents) {
|
|
|
1722
1722
|
}
|
|
1723
1723
|
}
|
|
1724
1724
|
function writeSdkSkillsStatusLine(line) {
|
|
1725
|
-
const progress =
|
|
1725
|
+
const progress = _chunkAWMCZAURjs.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 = _chunkJO2JZUBRjs.hasActivePluginSkills.call(void 0, );
|
|
1736
1736
|
if (usingPluginSkills) {
|
|
1737
1737
|
return;
|
|
1738
1738
|
}
|
|
1739
|
-
const agents =
|
|
1739
|
+
const agents = _chunkJO2JZUBRjs.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 = _chunkJO2JZUBRjs.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 (!_chunkJO2JZUBRjs.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 @@ import {
|
|
|
3
3
|
formatModelDescription,
|
|
4
4
|
publicToolSchemas,
|
|
5
5
|
toolMetadataJsonForDescribe
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-5WOPBX3H.mjs";
|
|
7
7
|
import {
|
|
8
8
|
buildPlayDashboardUrl,
|
|
9
9
|
byokLines,
|
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
examples,
|
|
14
14
|
schemaLines,
|
|
15
15
|
topLevelField
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-SAW3FBCA.mjs";
|
|
17
17
|
import {
|
|
18
18
|
DeeplineError
|
|
19
19
|
} from "./chunk-HBL4PM5Q.mjs";
|
|
@@ -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.493",
|
|
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,20 +4,20 @@
|
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkIOBPR2VOjs = require('./chunk-IOBPR2VO.js');
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
var
|
|
10
|
+
var _chunkKCDZWS2Bjs = require('./chunk-KCDZWS2B.js');
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
|
|
14
|
-
var
|
|
14
|
+
var _chunk2I7VN65Hjs = require('./chunk-2I7VN65H.js');
|
|
15
15
|
|
|
16
16
|
|
|
17
|
-
var
|
|
17
|
+
var _chunkJO2JZUBRjs = require('./chunk-JO2JZUBR.js');
|
|
18
18
|
|
|
19
19
|
|
|
20
|
-
var
|
|
20
|
+
var _chunkNWIDPT7Hjs = require('./chunk-NWIDPT7H.js');
|
|
21
21
|
|
|
22
22
|
// src/cli/compatibility-catalog.ts
|
|
23
23
|
var readers = /* @__PURE__ */ new WeakMap();
|
|
@@ -44,7 +44,7 @@ function trustedAutoUpdateRegistryUrl(baseUrl) {
|
|
|
44
44
|
async function reportAutoUpdateEvent(input) {
|
|
45
45
|
let apiKey = "";
|
|
46
46
|
try {
|
|
47
|
-
apiKey =
|
|
47
|
+
apiKey = _chunkJO2JZUBRjs.resolveApiKeyForBaseUrl.call(void 0, input.baseUrl);
|
|
48
48
|
} catch (e2) {
|
|
49
49
|
return;
|
|
50
50
|
}
|
|
@@ -60,15 +60,15 @@ async function reportAutoUpdateEvent(input) {
|
|
|
60
60
|
headers: {
|
|
61
61
|
Authorization: `Bearer ${apiKey}`,
|
|
62
62
|
"Content-Type": "application/json",
|
|
63
|
-
"User-Agent": `deepline-ts-sdk/${
|
|
63
|
+
"User-Agent": `deepline-ts-sdk/${_chunkNWIDPT7Hjs.SDK_VERSION}`,
|
|
64
64
|
"X-Deepline-Client-Family": "sdk",
|
|
65
65
|
"X-Deepline-CLI-Family": "sdk",
|
|
66
|
-
"X-Deepline-CLI-Version":
|
|
67
|
-
"X-Deepline-SDK-Version":
|
|
66
|
+
"X-Deepline-CLI-Version": _chunkNWIDPT7Hjs.SDK_VERSION,
|
|
67
|
+
"X-Deepline-SDK-Version": _chunkNWIDPT7Hjs.SDK_VERSION
|
|
68
68
|
},
|
|
69
69
|
body: JSON.stringify({
|
|
70
70
|
event: input.event,
|
|
71
|
-
current_version: _optionalChain([input, 'access', _4 => _4.response, 'access', _5 => _5.current, 'optionalAccess', _6 => _6.trim, 'call', _7 => _7()]) ||
|
|
71
|
+
current_version: _optionalChain([input, 'access', _4 => _4.response, 'access', _5 => _5.current, 'optionalAccess', _6 => _6.trim, 'call', _7 => _7()]) || _chunkNWIDPT7Hjs.SDK_VERSION,
|
|
72
72
|
target_version: input.response.latest,
|
|
73
73
|
reason: _optionalChain([input, 'access', _8 => _8.response, 'access', _9 => _9.auto_update, 'optionalAccess', _10 => _10.reason]),
|
|
74
74
|
command: _nullishCoalesce(input.response.command, () => ( null)),
|
|
@@ -87,13 +87,13 @@ function envTruthy(name) {
|
|
|
87
87
|
return value === "1" || value === "true" || value === "yes";
|
|
88
88
|
}
|
|
89
89
|
function shouldSkipSelfUpdate(policy) {
|
|
90
|
-
return policy === "off" || envTruthy("DEEPLINE_SKIP_SELF_UPDATE") || envTruthy("DEEPLINE_NO_AUTO_UPDATE") || envTruthy("DEEPLINE_SKIP_SDK_AUTO_UPDATE") || envTruthy("DEEPLINE_DISABLE_AUTO_UPDATE") || !
|
|
90
|
+
return policy === "off" || envTruthy("DEEPLINE_SKIP_SELF_UPDATE") || envTruthy("DEEPLINE_NO_AUTO_UPDATE") || envTruthy("DEEPLINE_SKIP_SDK_AUTO_UPDATE") || envTruthy("DEEPLINE_DISABLE_AUTO_UPDATE") || !_chunkIOBPR2VOjs.shouldRunCliAutoUpdate.call(void 0, ) || _chunkKCDZWS2Bjs.isCiEnvironment.call(void 0, );
|
|
91
91
|
}
|
|
92
92
|
function isDowngradeAutoUpdateResponse(response) {
|
|
93
93
|
const target = _optionalChain([response, 'optionalAccess', _17 => _17.latest, 'optionalAccess', _18 => _18.trim, 'call', _19 => _19()]);
|
|
94
|
-
const current = _optionalChain([response, 'optionalAccess', _20 => _20.current, 'optionalAccess', _21 => _21.trim, 'call', _22 => _22()]) ||
|
|
94
|
+
const current = _optionalChain([response, 'optionalAccess', _20 => _20.current, 'optionalAccess', _21 => _21.trim, 'call', _22 => _22()]) || _chunkNWIDPT7Hjs.SDK_VERSION;
|
|
95
95
|
if (!target) return false;
|
|
96
|
-
return
|
|
96
|
+
return _chunkIOBPR2VOjs.compareUpdateVersions.call(void 0, target, current) < 0;
|
|
97
97
|
}
|
|
98
98
|
function relaunchCurrentCommand(plan, runtime = {}) {
|
|
99
99
|
return new Promise((resolve) => {
|
|
@@ -146,7 +146,7 @@ async function maybeAutoUpdateAndRelaunch(response, baseUrl, policy = "configure
|
|
|
146
146
|
}
|
|
147
147
|
if (isDowngradeAutoUpdateResponse(response)) {
|
|
148
148
|
const target = response.latest;
|
|
149
|
-
const current = _optionalChain([response, 'access', _26 => _26.current, 'optionalAccess', _27 => _27.trim, 'call', _28 => _28()]) ||
|
|
149
|
+
const current = _optionalChain([response, 'access', _26 => _26.current, 'optionalAccess', _27 => _27.trim, 'call', _28 => _28()]) || _chunkNWIDPT7Hjs.SDK_VERSION;
|
|
150
150
|
process.stderr.write(
|
|
151
151
|
`Deepline SDK/CLI auto-update refused: server advertised older ${target} than current ${current}. Continuing without mutating the CLI.
|
|
152
152
|
`
|
|
@@ -154,21 +154,21 @@ async function maybeAutoUpdateAndRelaunch(response, baseUrl, policy = "configure
|
|
|
154
154
|
return false;
|
|
155
155
|
}
|
|
156
156
|
const packageSpec = response.latest ? `deepline@${response.latest}` : void 0;
|
|
157
|
-
const plan =
|
|
157
|
+
const plan = _chunkIOBPR2VOjs.resolveUpdatePlan.call(void 0, {
|
|
158
158
|
packageSpec,
|
|
159
159
|
requireVerifiedNpmOwnership: true,
|
|
160
160
|
npmFallbackRegistryUrl: trustedAutoUpdateRegistryUrl(baseUrl)
|
|
161
161
|
});
|
|
162
|
-
if (!
|
|
162
|
+
if (!_chunkIOBPR2VOjs.canAutomaticallyApplyUpdatePlan.call(void 0, plan)) {
|
|
163
163
|
return false;
|
|
164
164
|
}
|
|
165
165
|
if (!autoUpdate.required && autoUpdate.reason !== "rollback_forced") {
|
|
166
166
|
deferredAutoUpdate = async () => {
|
|
167
167
|
await applyAutoUpdate(response, baseUrl, plan, "next_command");
|
|
168
168
|
};
|
|
169
|
-
if (
|
|
169
|
+
if (_chunk2I7VN65Hjs.isJsonOutputMode.call(void 0, )) {
|
|
170
170
|
const target = _optionalChain([response, 'access', _29 => _29.latest, 'optionalAccess', _30 => _30.trim, 'call', _31 => _31()]);
|
|
171
|
-
|
|
171
|
+
_chunk2I7VN65Hjs.addJsonNotice.call(void 0, {
|
|
172
172
|
code: "sdk_update_queued",
|
|
173
173
|
message: `Deepline SDK/CLI update${target ? ` to ${target}` : ""} is queued after this command; the next command will use it if installation succeeds.`
|
|
174
174
|
});
|
|
@@ -181,7 +181,7 @@ async function maybeAutoUpdateAndRelaunch(response, baseUrl, policy = "configure
|
|
|
181
181
|
return true;
|
|
182
182
|
}
|
|
183
183
|
async function applyAutoUpdate(response, baseUrl, plan, takesEffect) {
|
|
184
|
-
if (!
|
|
184
|
+
if (!_chunkIOBPR2VOjs.canAutomaticallyApplyUpdatePlan.call(void 0, plan)) return false;
|
|
185
185
|
const autoUpdate = response.auto_update;
|
|
186
186
|
const label = _optionalChain([autoUpdate, 'optionalAccess', _32 => _32.reason]) === "rollback_forced" ? "has a server rollback pending and needs the latest rollback-aware CLI" : _optionalChain([autoUpdate, 'optionalAccess', _33 => _33.reason]) === "deprecated" ? "is deprecated and will update automatically" : _optionalChain([autoUpdate, 'optionalAccess', _34 => _34.required]) ? "requires an update" : "has an update available and will update automatically";
|
|
187
187
|
process.stderr.write(
|
|
@@ -194,7 +194,7 @@ async function applyAutoUpdate(response, baseUrl, plan, takesEffect) {
|
|
|
194
194
|
event: "started",
|
|
195
195
|
installKind: plan.kind
|
|
196
196
|
});
|
|
197
|
-
const updateResult = await
|
|
197
|
+
const updateResult = await _chunkIOBPR2VOjs.runAutomaticUpdatePlan.call(void 0, plan);
|
|
198
198
|
if (updateResult.status === "skipped_previous_failure") {
|
|
199
199
|
void reportAutoUpdateEvent({
|
|
200
200
|
baseUrl,
|
|
@@ -245,7 +245,7 @@ var _crypto = require('crypto');
|
|
|
245
245
|
var TOOL_EXECUTE_PROGRESS_INTERVAL_MS = 15e3;
|
|
246
246
|
var activeToolExecuteCommand = null;
|
|
247
247
|
function progressLine(line) {
|
|
248
|
-
if (!
|
|
248
|
+
if (!_chunk2I7VN65Hjs.isJsonOutputMode.call(void 0, )) console.error(line);
|
|
249
249
|
}
|
|
250
250
|
function beginToolExecuteCommand() {
|
|
251
251
|
if (activeToolExecuteCommand) return activeToolExecuteCommand.invocationId;
|