deepline 0.3.514 → 0.3.516
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/errors.ts +1 -0
- package/dist/bundling-sources/sdk/src/http-core.ts +9 -4
- package/dist/bundling-sources/sdk/src/index.ts +1 -0
- package/dist/bundling-sources/sdk/src/release.ts +1 -1
- package/dist/bundling-sources/shared_libs/play-runtime/context.ts +30 -15
- package/dist/bundling-sources/shared_libs/play-runtime/durable-runs-rollout.ts +6 -1
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/postgres-pool.ts +71 -1
- package/dist/bundling-sources/shared_libs/play-runtime/secret-redaction.ts +20 -7
- package/dist/bundling-sources/shared_libs/play-runtime/tool-http-errors.ts +3 -1
- package/dist/bundling-sources/shared_libs/plays/tool-execution-error.ts +45 -0
- package/dist/bundling-sources/shared_libs/tool-execution-error.ts +45 -0
- package/dist/cli/{artifacts-GNFL5LY4.mjs → artifacts-G56FISIE.mjs} +9 -9
- package/dist/cli/{artifacts-OZRO4LHT.js → artifacts-KMWS32R5.js} +21 -21
- package/dist/cli/auth-6EIEZ3UE.js +43 -0
- package/dist/cli/{auth-53EDAX7Y.mjs → auth-RSS7MOBV.mjs} +7 -7
- package/dist/cli/{billing-ZMX2V5X3.mjs → billing-2ALO3XEG.mjs} +10 -10
- package/dist/cli/{billing-B6V3FELL.js → billing-RCC6WBIZ.js} +93 -93
- package/dist/cli/{chunk-753MZFDF.mjs → chunk-2YEFJHAF.mjs} +3 -3
- package/dist/cli/{chunk-BBDWIUJA.js → chunk-4IIK6GIY.js} +17 -17
- package/dist/cli/{chunk-DMBCJFGY.mjs → chunk-5NU37KME.mjs} +2 -2
- package/dist/cli/{chunk-Z5WO6IBV.mjs → chunk-6ADGVZRX.mjs} +21 -6
- package/dist/cli/{chunk-RNSHCJME.js → chunk-6Y3DDRRN.js} +30 -30
- package/dist/cli/{chunk-NXT52SIV.js → chunk-6ZLL5GDN.js} +2 -2
- package/dist/cli/{chunk-QSFAUGFK.js → chunk-72L5HQ3J.js} +5 -5
- package/dist/cli/{chunk-DLYWOHO4.mjs → chunk-72MFP7V4.mjs} +1 -1
- package/dist/cli/{chunk-MF7ZVWJK.js → chunk-7R2V5Z6O.js} +41 -41
- package/dist/cli/{chunk-W3TN352L.mjs → chunk-C2SR3X7Y.mjs} +4 -4
- package/dist/cli/{chunk-76M3DL5G.mjs → chunk-C72J6JE3.mjs} +1 -1
- package/dist/cli/{chunk-RMRZ4BC4.mjs → chunk-CA24C3XL.mjs} +4 -4
- package/dist/cli/{chunk-2RCZCWPO.js → chunk-CKEZXNMV.js} +6 -6
- package/dist/cli/{chunk-C24VEYSP.js → chunk-D4OZSC3C.js} +8 -4
- package/dist/cli/{chunk-EVTD3ELD.mjs → chunk-E7ZM2ZRD.mjs} +5 -5
- package/dist/cli/{chunk-MJIS4XAZ.mjs → chunk-EYWP5JPU.mjs} +4 -4
- package/dist/cli/{chunk-TG4IMWAL.js → chunk-FIIBDWAO.js} +55 -55
- package/dist/cli/{chunk-7MJYZ33I.mjs → chunk-GJYLC4JB.mjs} +1 -1
- package/dist/cli/{chunk-7MBI2OLW.mjs → chunk-H6BSB2YJ.mjs} +1 -1
- package/dist/cli/{chunk-N4TR6QRI.mjs → chunk-HT675XNR.mjs} +1 -1
- package/dist/cli/{chunk-IZJGOMCW.mjs → chunk-HY6KAW5H.mjs} +5 -5
- package/dist/cli/{chunk-ILITNKGM.mjs → chunk-J4VMWSQK.mjs} +7 -7
- package/dist/cli/{chunk-TZS4G7CS.js → chunk-JB6FEEDQ.js} +2 -2
- package/dist/cli/{chunk-6FYGFIXD.mjs → chunk-JPLEDOEW.mjs} +2 -2
- package/dist/cli/{chunk-7ZCXQDOQ.mjs → chunk-LCKAG5RL.mjs} +2 -2
- package/dist/cli/{chunk-RVMV4MXO.mjs → chunk-LWUFEX26.mjs} +3 -3
- package/dist/cli/{chunk-FPWOEK7G.js → chunk-LZROM6VQ.js} +2 -2
- package/dist/cli/{chunk-RLVSWAWB.js → chunk-N6Q5SDGA.js} +62 -51
- package/dist/cli/{chunk-A6QCMBGL.js → chunk-NRO3NTVO.js} +5 -5
- package/dist/cli/{chunk-VLIDBQYL.js → chunk-P6AADORO.js} +3 -3
- package/dist/cli/{chunk-55WBE4UK.js → chunk-PKKSXXZ5.js} +26 -26
- package/dist/cli/{chunk-G6PUQQJP.js → chunk-PMS3LQ6B.js} +5 -5
- package/dist/cli/{chunk-JC3ABOZP.js → chunk-PPYJXP4Z.js} +38 -23
- package/dist/cli/{chunk-6SSISVXD.mjs → chunk-PVVWKOEB.mjs} +8 -7
- package/dist/cli/{chunk-DBBLPDXK.mjs → chunk-Q47MAAHI.mjs} +1 -1
- package/dist/cli/{chunk-2CTTSNFE.js → chunk-QG3MRMU5.js} +58 -57
- package/dist/cli/{chunk-53F6JDQ3.mjs → chunk-QG4LIOGI.mjs} +2 -2
- package/dist/cli/{chunk-4QF2K7TM.mjs → chunk-QNHHZ63P.mjs} +1 -1
- package/dist/cli/{chunk-A253CMOI.js → chunk-QUSYG3VP.js} +8 -8
- package/dist/cli/{chunk-T4NQ2ZOH.js → chunk-QX7WDG4V.js} +11 -11
- package/dist/cli/{chunk-MQK5SY5N.js → chunk-RB3OR32I.js} +16 -16
- package/dist/cli/{chunk-RFN7OKT2.mjs → chunk-RB5EMAWD.mjs} +1 -1
- package/dist/cli/{chunk-WP3ULMRU.js → chunk-RLI6FDQM.js} +6 -6
- package/dist/cli/{chunk-TMQUMILM.js → chunk-RVHUW4TN.js} +2 -2
- package/dist/cli/{chunk-DIAWYWT5.js → chunk-SQWET4SL.js} +18 -1
- package/dist/cli/{chunk-OZDT2CZW.mjs → chunk-STR5LXK4.mjs} +1 -1
- package/dist/cli/{chunk-ALJJRZNJ.js → chunk-T2N3B7IQ.js} +8 -8
- package/dist/cli/{chunk-OQ4JV3IW.js → chunk-TZNQRKDF.js} +1 -1
- package/dist/cli/{chunk-CUMA6DE2.js → chunk-UW5QWTUG.js} +19 -19
- package/dist/cli/{chunk-G6A7CGFV.mjs → chunk-V46UBZBJ.mjs} +6 -3
- package/dist/cli/{chunk-R5PJ6XZI.js → chunk-VIZJIBI4.js} +10 -10
- package/dist/cli/{chunk-Y2RIMVEM.js → chunk-W5I53WQ4.js} +112 -112
- package/dist/cli/{chunk-H7L5MS5E.mjs → chunk-WCQ7JGDV.mjs} +4 -4
- package/dist/cli/{chunk-7KD4IYLA.js → chunk-WE223LFR.js} +19 -19
- package/dist/cli/{chunk-H53YG6QG.mjs → chunk-X2YP36YP.mjs} +1 -1
- package/dist/cli/{chunk-LV2DGEJ3.js → chunk-XEQBYK4B.js} +16 -13
- package/dist/cli/{chunk-5LBXLQRW.js → chunk-YS7AI7R6.js} +108 -108
- package/dist/cli/{chunk-HJ5B67S3.mjs → chunk-YXGTO5XA.mjs} +8 -4
- package/dist/cli/{chunk-54IH5U3I.mjs → chunk-Z3KLCDCB.mjs} +23 -12
- package/dist/cli/{chunk-6OIRN4PC.mjs → chunk-ZFRN3B2R.mjs} +2 -2
- package/dist/cli/{chunk-EO52BKGA.mjs → chunk-ZMCQP4EU.mjs} +11 -11
- package/dist/cli/{chunk-HBL4PM5Q.mjs → chunk-ZPGGW27Q.mjs} +17 -0
- package/dist/cli/command-docs.js +2 -2
- package/dist/cli/command-docs.mjs +1 -1
- package/dist/cli/{csv-2BLYUV2G.js → csv-RPR64UBS.js} +15 -15
- package/dist/cli/{csv-ONKAMLL4.mjs → csv-YXK5TB47.mjs} +6 -6
- package/dist/cli/{db-YKT6LEQ3.js → db-KO3JCGRG.js} +36 -36
- package/dist/cli/{db-4GVSGAXL.mjs → db-UQYILAMF.mjs} +9 -9
- package/dist/cli/describe-BPX3U2BF.js +50 -0
- package/dist/cli/describe-P2OK5X2S.mjs +50 -0
- package/dist/cli/describe-core.d.mts +3 -3
- package/dist/cli/describe-core.d.ts +3 -3
- package/dist/cli/describe-core.js +4 -4
- package/dist/cli/describe-core.mjs +3 -3
- package/dist/cli/{executions-VFCU5NGH.js → executions-5Z7H7HV3.js} +11 -11
- package/dist/cli/{executions-7OSL25KJ.mjs → executions-IQCRQXVA.mjs} +9 -9
- package/dist/cli/{feedback-ERTOLEC4.js → feedback-EDZJDARP.js} +12 -12
- package/dist/cli/{feedback-RPZELEA5.mjs → feedback-ZO6A4HTV.mjs} +7 -7
- package/dist/cli/{git-XKRQZ4A6.mjs → git-OBXSILWM.mjs} +7 -7
- package/dist/cli/git-Y34J73QC.js +25 -0
- package/dist/cli/index.js +150 -150
- package/dist/cli/index.mjs +46 -46
- package/dist/cli/{legacy-noops-MZCFS2FQ.mjs → legacy-noops-4UJM3FMN.mjs} +8 -8
- package/dist/cli/{legacy-noops-HG3M5HGZ.js → legacy-noops-HKXU2EU6.js} +11 -11
- package/dist/cli/{monitors-MESMMU5P.js → monitors-7EP3Q2DX.js} +110 -110
- package/dist/cli/{monitors-GBO5XAEZ.mjs → monitors-ZXF2KCW7.mjs} +10 -10
- package/dist/cli/{org-DJRNWIPO.mjs → org-EDHCUR6V.mjs} +9 -9
- package/dist/cli/{org-EZPREEWH.js → org-GFGOTUWP.js} +75 -75
- package/dist/cli/{pages-36BHVOFL.mjs → pages-EGEWMPJN.mjs} +9 -9
- package/dist/cli/{pages-ACI7VV6I.js → pages-TLFQQL5S.js} +21 -21
- package/dist/cli/{play-SUSVQHX5.mjs → play-NBO3MPDL.mjs} +22 -22
- package/dist/cli/{play-KCLLAGWR.js → play-XDHJY5R4.js} +392 -392
- package/dist/cli/{providers-MV2YW3J5.mjs → providers-NXJ7WPNH.mjs} +9 -9
- package/dist/cli/{providers-YFO3EFLK.js → providers-RU6BGEDM.js} +12 -12
- package/dist/cli/{quickstart-MATFTZVQ.js → quickstart-4ZZBMZPF.js} +8 -8
- package/dist/cli/{quickstart-KMXU2T3Z.mjs → quickstart-YBNDPNAR.mjs} +6 -6
- package/dist/cli/{run-UW5FM64G.js → run-374CTJBV.js} +46 -46
- package/dist/cli/{run-YRYVGUCJ.mjs → run-LX52KVZM.mjs} +27 -27
- package/dist/cli/{search-WF3Q3I5X.mjs → search-EH6JPV62.mjs} +11 -11
- package/dist/cli/search-YS4DHSQC.js +33 -0
- package/dist/cli/{search-output-BG743WAM.js → search-output-NATLJOWW.js} +9 -9
- package/dist/cli/{search-output-THOAHTCU.mjs → search-output-XIQERUHF.mjs} +7 -7
- package/dist/cli/{secrets-EOGBWN44.js → secrets-A3UXDE5V.js} +18 -18
- package/dist/cli/{secrets-LM7OTAUE.mjs → secrets-VRJQFUKF.mjs} +9 -9
- package/dist/cli/sessions-5TTH5FGZ.mjs +18 -0
- package/dist/cli/sessions-EXII5VOV.js +18 -0
- package/dist/cli/{settings-OWE3EEG7.js → settings-LX5EGLVT.js} +89 -89
- package/dist/cli/{settings-JXTFX5G2.mjs → settings-VRGFTOTJ.mjs} +16 -16
- package/dist/cli/{setup-FG37SKMB.mjs → setup-FXP5Y3Y6.mjs} +12 -12
- package/dist/cli/{setup-Z5BEQKA7.js → setup-QL4YWKOR.js} +52 -52
- package/dist/cli/skills-5L4CYX3V.js +37 -0
- package/dist/cli/{skills-UGNCBZTJ.mjs → skills-ET4PMBJE.mjs} +10 -10
- package/dist/cli/tools-5V77VIUA.js +57 -0
- package/dist/cli/{tools-J3PKLQSL.mjs → tools-WPL3NZAA.mjs} +20 -20
- package/dist/cli/update-G5RSSWM5.js +35 -0
- package/dist/cli/{update-GGZ2XTMZ.mjs → update-OCAHAKL2.mjs} +12 -12
- package/dist/cli/{workflow-AUZCSCZP.js → workflow-CWO3XL4O.js} +20 -20
- package/dist/cli/{workflow-C66BBXHH.mjs → workflow-NPZ2RLQG.mjs} +10 -10
- package/dist/{client-CmlKSBXd.d.ts → client-CQSPuqxh.d.ts} +1 -1
- package/dist/{client-By7bUS8h.d.mts → client-K1g4ab5Y.d.mts} +1 -1
- package/dist/{client-core-BZ3tpY_J.d.mts → client-core-BksGf5Gd.d.mts} +1 -1
- package/dist/{client-core-BM0mKhgp.d.ts → client-core-BlaqOlQ7.d.ts} +1 -1
- package/dist/{compiler-manifest-BeURaD5Y.d.mts → compiler-manifest-BliMS7ax.d.mts} +14 -1
- package/dist/{compiler-manifest-BeURaD5Y.d.ts → compiler-manifest-BliMS7ax.d.ts} +14 -1
- package/dist/{errors-kBuT4kGK.d.mts → errors-BZ6Zq1cz.d.mts} +1 -1
- package/dist/{errors-BoPXPrSy.d.ts → errors-xfNscfS1.d.ts} +1 -1
- package/dist/{index-DC7oRAAC.d.mts → index-DbvCg4zg.d.mts} +1 -1
- package/dist/{index-D0crdGM1.d.ts → index-FGdQv8J8.d.ts} +1 -1
- package/dist/index.d.mts +7 -7
- package/dist/index.d.ts +7 -7
- package/dist/index.js +13 -13
- package/dist/index.mjs +9 -9
- package/dist/install-integrity.json +126 -126
- 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/csv-data-input.js +3 -3
- package/dist/plays/csv-data-input.mjs +2 -2
- 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 +3 -3
- package/dist/plays/run-request.mjs +2 -2
- 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 +12 -12
- package/dist/server.mjs +6 -6
- package/package.json +1 -1
- package/dist/cli/auth-SM5GLO45.js +0 -43
- package/dist/cli/describe-KPGQP4LH.js +0 -50
- package/dist/cli/describe-PRT2WQMS.mjs +0 -50
- package/dist/cli/git-U353JURQ.js +0 -25
- package/dist/cli/search-4ZQOFG7G.js +0 -33
- package/dist/cli/sessions-GDSJ72XI.js +0 -18
- package/dist/cli/sessions-SP2JL27H.mjs +0 -18
- package/dist/cli/skills-SIX5OTNX.js +0 -37
- package/dist/cli/tools-EZOV37MQ.js +0 -57
- package/dist/cli/update-ISU7YN34.js +0 -35
|
@@ -1,9 +1,9 @@
|
|
|
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 _chunkP6AADOROjs = require('./chunk-P6AADORO.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkUW5QWTUGjs = require('./chunk-UW5QWTUG.js');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
@@ -14,17 +14,17 @@ var _chunkCUMA6DE2js = require('./chunk-CUMA6DE2.js');
|
|
|
14
14
|
|
|
15
15
|
|
|
16
16
|
|
|
17
|
-
var
|
|
17
|
+
var _chunkQUSYG3VPjs = require('./chunk-QUSYG3VP.js');
|
|
18
18
|
|
|
19
19
|
|
|
20
20
|
|
|
21
21
|
|
|
22
22
|
|
|
23
23
|
|
|
24
|
-
var
|
|
24
|
+
var _chunkQG3MRMU5js = require('./chunk-QG3MRMU5.js');
|
|
25
25
|
|
|
26
26
|
|
|
27
|
-
var
|
|
27
|
+
var _chunkTZNQRKDFjs = require('./chunk-TZNQRKDF.js');
|
|
28
28
|
|
|
29
29
|
// src/compat.ts
|
|
30
30
|
var _crypto = require('crypto');
|
|
@@ -59,7 +59,7 @@ function shouldSkipCompatibilityCheck() {
|
|
|
59
59
|
return value === "1" || value === "true" || value === "yes";
|
|
60
60
|
}
|
|
61
61
|
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, )) {
|
|
62
|
-
return _path.join.call(void 0,
|
|
62
|
+
return _path.join.call(void 0, _chunkQUSYG3VPjs.sdkCliStateDirPath.call(void 0, baseUrl, homeDir), "compat-cache.json");
|
|
63
63
|
}
|
|
64
64
|
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, )) {
|
|
65
65
|
return _path.join.call(void 0, homeDir, ".cache", "deepline", "sdk-compat-cache.json");
|
|
@@ -67,9 +67,9 @@ function legacySdkCompatibilityCachePath(homeDir = _optionalChain([process, 'acc
|
|
|
67
67
|
function compatibilityCacheKey(baseUrl, command, skillsVersion) {
|
|
68
68
|
return JSON.stringify({
|
|
69
69
|
baseUrl: baseUrl.replace(/\/$/, ""),
|
|
70
|
-
version:
|
|
71
|
-
apiContract:
|
|
72
|
-
apiMajor:
|
|
70
|
+
version: _chunkQG3MRMU5js.SDK_VERSION,
|
|
71
|
+
apiContract: _chunkQG3MRMU5js.SDK_API_CONTRACT,
|
|
72
|
+
apiMajor: _chunkQG3MRMU5js.SDK_API_MAJOR,
|
|
73
73
|
command: _optionalChain([command, 'optionalAccess', _15 => _15.trim, 'call', _16 => _16()]) || null,
|
|
74
74
|
skillsVersion: _nullishCoalesce(skillsVersion, () => ( null))
|
|
75
75
|
});
|
|
@@ -77,8 +77,8 @@ function compatibilityCacheKey(baseUrl, command, skillsVersion) {
|
|
|
77
77
|
function legacyCompatibilityCacheKey(baseUrl, command) {
|
|
78
78
|
return JSON.stringify({
|
|
79
79
|
baseUrl: baseUrl.replace(/\/$/, ""),
|
|
80
|
-
version:
|
|
81
|
-
apiContract:
|
|
80
|
+
version: _chunkQG3MRMU5js.SDK_VERSION,
|
|
81
|
+
apiContract: _chunkQG3MRMU5js.SDK_API_CONTRACT,
|
|
82
82
|
command: _optionalChain([command, 'optionalAccess', _17 => _17.trim, 'call', _18 => _18()]) || null
|
|
83
83
|
});
|
|
84
84
|
}
|
|
@@ -103,7 +103,7 @@ function isSavedWithin(savedAt, windowMs, now) {
|
|
|
103
103
|
}
|
|
104
104
|
var UPDATE_ADVISORY_INTERVAL_MS = 24 * 60 * 60 * 1e3;
|
|
105
105
|
function claimUpdateAdvisory(baseUrl, now = Date.now()) {
|
|
106
|
-
const path = _path.join.call(void 0,
|
|
106
|
+
const path = _path.join.call(void 0, _chunkQUSYG3VPjs.sdkCliStateDirPath.call(void 0, baseUrl), "update-advisory.json");
|
|
107
107
|
try {
|
|
108
108
|
const { shownAt } = JSON.parse(_fs.readFileSync.call(void 0, path, "utf8"));
|
|
109
109
|
if (isSavedWithin(shownAt, UPDATE_ADVISORY_INTERVAL_MS, now)) return false;
|
|
@@ -190,7 +190,7 @@ async function checkSdkCompatibility(baseUrl, options = {}) {
|
|
|
190
190
|
);
|
|
191
191
|
try {
|
|
192
192
|
const url = new URL("/api/v2/sdk/compat", baseUrl);
|
|
193
|
-
url.searchParams.set("version",
|
|
193
|
+
url.searchParams.set("version", _chunkQG3MRMU5js.SDK_VERSION);
|
|
194
194
|
if (_optionalChain([options, 'access', _34 => _34.command, 'optionalAccess', _35 => _35.trim, 'call', _36 => _36()])) {
|
|
195
195
|
url.searchParams.set("command", options.command.trim());
|
|
196
196
|
}
|
|
@@ -198,7 +198,7 @@ async function checkSdkCompatibility(baseUrl, options = {}) {
|
|
|
198
198
|
url.searchParams.set("skills_version", _nullishCoalesce(options.skillsVersion, () => ( "")));
|
|
199
199
|
url.searchParams.set(
|
|
200
200
|
"skills_cli_capability",
|
|
201
|
-
String(
|
|
201
|
+
String(_chunkTZNQRKDFjs.SDK_RELEASE.packageCapabilities.skillsGuidance)
|
|
202
202
|
);
|
|
203
203
|
}
|
|
204
204
|
if (options.catalog) {
|
|
@@ -210,14 +210,14 @@ async function checkSdkCompatibility(baseUrl, options = {}) {
|
|
|
210
210
|
const response = await fetch(url, {
|
|
211
211
|
method: "GET",
|
|
212
212
|
headers: {
|
|
213
|
-
...
|
|
214
|
-
"User-Agent": `deepline-ts-sdk/${
|
|
215
|
-
"X-Deepline-SDK-Version":
|
|
216
|
-
"X-Deepline-API-Major": String(
|
|
217
|
-
"X-Deepline-API-Contract":
|
|
213
|
+
..._chunkQG3MRMU5js.deploymentProtectionHeaders.call(void 0, ),
|
|
214
|
+
"User-Agent": `deepline-ts-sdk/${_chunkQG3MRMU5js.SDK_VERSION}`,
|
|
215
|
+
"X-Deepline-SDK-Version": _chunkQG3MRMU5js.SDK_VERSION,
|
|
216
|
+
"X-Deepline-API-Major": String(_chunkQG3MRMU5js.SDK_API_MAJOR),
|
|
217
|
+
"X-Deepline-API-Contract": _chunkQG3MRMU5js.SDK_API_CONTRACT,
|
|
218
218
|
"X-Deepline-CLI-Update-Preferences": "1",
|
|
219
219
|
"X-Deepline-CLI-Auto-Update-Capability": SDK_CLI_AUTO_UPDATE_CAPABILITY,
|
|
220
|
-
...options.catalog ? { Authorization: `Bearer ${
|
|
220
|
+
...options.catalog ? { Authorization: `Bearer ${_chunkQUSYG3VPjs.resolveApiKeyForBaseUrl.call(void 0, baseUrl)}` } : {},
|
|
221
221
|
..._optionalChain([options, 'access', _37 => _37.catalog, 'optionalAccess', _38 => _38.cliInvocationId]) ? { "X-Deepline-CLI-Invocation-ID": options.catalog.cliInvocationId } : {}
|
|
222
222
|
},
|
|
223
223
|
signal: controller.signal
|
|
@@ -386,7 +386,7 @@ function skillsSourceUrl(baseUrl) {
|
|
|
386
386
|
function buildSkillsAddArgs(baseUrl, skillName, options = {}) {
|
|
387
387
|
const skillNames = Array.isArray(skillName) ? skillName : [skillName];
|
|
388
388
|
const [firstSkillName, ...extraSkillNames] = skillNames;
|
|
389
|
-
const agents = _nullishCoalesce(options.agents, () => (
|
|
389
|
+
const agents = _nullishCoalesce(options.agents, () => ( _chunkQUSYG3VPjs.DEFAULT_SKILL_AGENTS));
|
|
390
390
|
const values = {
|
|
391
391
|
skills_index_url: skillsIndexUrl(baseUrl),
|
|
392
392
|
skills_source_url: skillsSourceUrl(baseUrl),
|
|
@@ -514,25 +514,25 @@ var CHECK_TIMEOUT_MS2 = 3e3;
|
|
|
514
514
|
var INSTALLER_PROBE_TIMEOUT_MS = 1e3;
|
|
515
515
|
var PUBLISHED_VERIFICATION_RETRY_MS = 5 * 6e4;
|
|
516
516
|
function shouldSkipSkillsSync() {
|
|
517
|
-
if (
|
|
517
|
+
if (_chunkQG3MRMU5js.detectAgentRuntime.call(void 0, ) === "claude_cowork" || isCiEnvironment()) {
|
|
518
518
|
return true;
|
|
519
519
|
}
|
|
520
520
|
const value = _optionalChain([process, 'access', _57 => _57.env, 'access', _58 => _58.DEEPLINE_SKIP_SKILLS_SYNC, 'optionalAccess', _59 => _59.trim, 'call', _60 => _60(), 'access', _61 => _61.toLowerCase, 'call', _62 => _62()]);
|
|
521
521
|
return value === "1" || value === "true" || value === "yes" || value === "on" || !isCliSkillsSyncEnabled();
|
|
522
522
|
}
|
|
523
523
|
function unavailableSkillsNoticePath(baseUrl) {
|
|
524
|
-
return _path.join.call(void 0,
|
|
524
|
+
return _path.join.call(void 0, _chunkQUSYG3VPjs.sdkCliStateDirPath.call(void 0, baseUrl), "skills-sync-unavailable-version");
|
|
525
525
|
}
|
|
526
526
|
var SKILLS_SYNC_IN_PROGRESS_TTL_MS = 10 * 60 * 1e3;
|
|
527
527
|
var SKILLS_SYNC_IN_PROGRESS_PID_CAP_MS = 6 * 60 * 60 * 1e3;
|
|
528
|
-
var agentLeaseSegment =
|
|
528
|
+
var agentLeaseSegment = _chunkQUSYG3VPjs.skillsAgentPathSegment;
|
|
529
529
|
function sortedLeaseAgents(agents) {
|
|
530
|
-
const expanded = agents.includes("*") ? [...agents, ...
|
|
530
|
+
const expanded = agents.includes("*") ? [...agents, ..._chunkQUSYG3VPjs.KNOWN_SKILL_AGENTS] : agents;
|
|
531
531
|
return [...new Set(expanded)].sort((a, b) => a.localeCompare(b));
|
|
532
532
|
}
|
|
533
533
|
function inProgressSkillsSyncPath(baseUrl, agent) {
|
|
534
534
|
return _path.join.call(void 0,
|
|
535
|
-
|
|
535
|
+
_chunkQUSYG3VPjs.sdkCliStateDirPath.call(void 0, baseUrl),
|
|
536
536
|
`skills-sync-in-progress-${agentLeaseSegment(agent)}`
|
|
537
537
|
);
|
|
538
538
|
}
|
|
@@ -691,7 +691,7 @@ var SkillsStateUnavailableError = class extends Error {
|
|
|
691
691
|
constructor(baseUrl, error) {
|
|
692
692
|
const detail = error instanceof Error ? error.message : String(error);
|
|
693
693
|
super(
|
|
694
|
-
`Could not save skills state in ${
|
|
694
|
+
`Could not save skills state in ${_chunkQUSYG3VPjs.sdkCliStateDirPath.call(void 0, baseUrl)}: ${detail}`
|
|
695
695
|
);
|
|
696
696
|
this.name = "SkillsStateUnavailableError";
|
|
697
697
|
}
|
|
@@ -776,7 +776,7 @@ function skillsInstallLeasePath(baseUrl, agents) {
|
|
|
776
776
|
}
|
|
777
777
|
function deferredSkillsNoticePath(baseUrl, agents) {
|
|
778
778
|
return _path.join.call(void 0,
|
|
779
|
-
|
|
779
|
+
_chunkQUSYG3VPjs.sdkCliStateDirPath.call(void 0, baseUrl),
|
|
780
780
|
`skills-sync-notice-${sortedLeaseAgents(agents).map(agentLeaseSegment).join("-")}`
|
|
781
781
|
);
|
|
782
782
|
}
|
|
@@ -810,24 +810,30 @@ function flushDeferredSkillsNotices(baseUrl, agents) {
|
|
|
810
810
|
if (text.trim()) writeSdkSkillsStatusLine(text.trimEnd());
|
|
811
811
|
}
|
|
812
812
|
function flushDeferredSkillsSyncNotices(baseUrl) {
|
|
813
|
-
if (shouldSkipSkillsSync() ||
|
|
814
|
-
const agents =
|
|
813
|
+
if (shouldSkipSkillsSync() || _chunkQUSYG3VPjs.hasActivePluginSkills.call(void 0, )) return;
|
|
814
|
+
const agents = _chunkQUSYG3VPjs.resolveAutoSyncSkillAgents.call(void 0, );
|
|
815
815
|
if (agents.length === 0) return;
|
|
816
816
|
flushDeferredSkillsNotices(baseUrl, agents);
|
|
817
817
|
}
|
|
818
818
|
var SKILLS_AUTO_SYNC_COMMAND = "skills-auto-sync";
|
|
819
|
-
function spawnDetachedSkillsSyncChild(argv, onSpawnError) {
|
|
820
|
-
const
|
|
819
|
+
function spawnDetachedSkillsSyncChild(argv, onSpawnError, sidecarPath) {
|
|
820
|
+
const launch = sidecarPath ? resolveShellSpawn(sidecarPath, argv) : {
|
|
821
|
+
command: process.execPath,
|
|
822
|
+
args: [_nullishCoalesce(process.argv[1], () => ( "")), ...argv],
|
|
823
|
+
shell: false
|
|
824
|
+
};
|
|
825
|
+
const child = _child_process.spawn.call(void 0, launch.command, launch.args, {
|
|
821
826
|
detached: true,
|
|
822
827
|
stdio: "ignore",
|
|
823
|
-
env: process.env
|
|
828
|
+
env: process.env,
|
|
829
|
+
shell: launch.shell
|
|
824
830
|
});
|
|
825
831
|
child.on("error", () => _optionalChain([onSpawnError, 'optionalCall', _65 => _65()]));
|
|
826
832
|
child.unref();
|
|
827
833
|
}
|
|
828
834
|
function failedSkillsSyncPath(baseUrl, agents) {
|
|
829
835
|
return _path.join.call(void 0,
|
|
830
|
-
|
|
836
|
+
_chunkQUSYG3VPjs.sdkCliStateDirPath.call(void 0, baseUrl),
|
|
831
837
|
`skills-sync-failed-${sortedLeaseAgents(agents).map(agentLeaseSegment).join("-")}-version`
|
|
832
838
|
);
|
|
833
839
|
}
|
|
@@ -856,7 +862,7 @@ function writeUnavailableSkillsNotice(baseUrl, remoteVersion, skillNames, reason
|
|
|
856
862
|
if (hasMarkedSkillsSyncVersion(path, remoteVersion)) return;
|
|
857
863
|
writeMarkedSkillsSyncVersion(path, remoteVersion);
|
|
858
864
|
const probes = reason === "no-installer" ? _nullishCoalesce(knownProbes, () => ( probeInstallers())) : null;
|
|
859
|
-
const manualCommand = _optionalChain([probes, 'optionalAccess', _66 => _66.npx]) === "missing" && probes.bunx !== "missing" ? `bunx ${buildBunxSkillsInstallArgs(baseUrl, skillNames,
|
|
865
|
+
const manualCommand = _optionalChain([probes, 'optionalAccess', _66 => _66.npx]) === "missing" && probes.bunx !== "missing" ? `bunx ${buildBunxSkillsInstallArgs(baseUrl, skillNames, _chunkQUSYG3VPjs.DEFAULT_SKILL_AGENTS).map(shellQuote).join(" ")}` : `npx ${buildSkillsInstallArgs(baseUrl, skillNames).join(" ")}`;
|
|
860
866
|
const explanation = reason === "unsupported-agent" ? "the detected agent has no automatic skills sync target. Automatic sync was skipped." : _optionalChain([probes, 'optionalAccess', _67 => _67.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.`;
|
|
861
867
|
notice(
|
|
862
868
|
`Deepline agent skills are out of date, but ${explanation} To install manually, run:
|
|
@@ -944,7 +950,7 @@ function buildSdkSkillNames(v1SkillNames2) {
|
|
|
944
950
|
return sortedUniqueSkillNames(v1SkillNames2);
|
|
945
951
|
}
|
|
946
952
|
function isDefaultAgentSet(agents) {
|
|
947
|
-
return agents.length ===
|
|
953
|
+
return agents.length === _chunkQUSYG3VPjs.DEFAULT_SKILL_AGENTS.length && agents.every((agent, index) => agent === _chunkQUSYG3VPjs.DEFAULT_SKILL_AGENTS[index]);
|
|
948
954
|
}
|
|
949
955
|
function safeSkillFilePath(value) {
|
|
950
956
|
if (typeof value !== "string" || !value) return false;
|
|
@@ -1101,10 +1107,10 @@ async function fetchSkillsUpdate(baseUrl, localVersion) {
|
|
|
1101
1107
|
method: "POST",
|
|
1102
1108
|
headers: { "Content-Type": "application/json" },
|
|
1103
1109
|
body: JSON.stringify({
|
|
1104
|
-
sdk_cli: { version:
|
|
1110
|
+
sdk_cli: { version: _chunkQG3MRMU5js.SDK_VERSION },
|
|
1105
1111
|
skills: {
|
|
1106
1112
|
version: localVersion,
|
|
1107
|
-
capability:
|
|
1113
|
+
capability: _chunkTZNQRKDFjs.SDK_RELEASE.packageCapabilities.skillsGuidance
|
|
1108
1114
|
}
|
|
1109
1115
|
}),
|
|
1110
1116
|
signal: controller.signal
|
|
@@ -1143,7 +1149,7 @@ function probeInstallers(timeoutMs) {
|
|
|
1143
1149
|
}
|
|
1144
1150
|
function noInstallerProbePath(baseUrl) {
|
|
1145
1151
|
return _path.join.call(void 0,
|
|
1146
|
-
|
|
1152
|
+
_chunkQUSYG3VPjs.sdkCliStateDirPath.call(void 0, baseUrl),
|
|
1147
1153
|
"skills-sync-no-installer-unknown.json"
|
|
1148
1154
|
);
|
|
1149
1155
|
}
|
|
@@ -1222,7 +1228,7 @@ function temporarySkillsSyncSkipCommand() {
|
|
|
1222
1228
|
function resolveSkillsInstallSpawn(install, platform = process.platform) {
|
|
1223
1229
|
return resolveShellSpawn(install.command, install.args, platform);
|
|
1224
1230
|
}
|
|
1225
|
-
function resolveSkillsInstallCommands(baseUrl, skillNames = DEFAULT_SDK_SKILL_NAMES, agents =
|
|
1231
|
+
function resolveSkillsInstallCommands(baseUrl, skillNames = DEFAULT_SDK_SKILL_NAMES, agents = _chunkQUSYG3VPjs.DEFAULT_SKILL_AGENTS, knownProbes) {
|
|
1226
1232
|
const commands = [];
|
|
1227
1233
|
const probes = _nullishCoalesce(knownProbes, () => ( probeInstallers()));
|
|
1228
1234
|
if (probes.bunx === "available") {
|
|
@@ -1364,7 +1370,7 @@ function runLegacySkillsCleanup(agents) {
|
|
|
1364
1370
|
}
|
|
1365
1371
|
}
|
|
1366
1372
|
function writeSdkSkillsStatusLine(line) {
|
|
1367
|
-
const progress =
|
|
1373
|
+
const progress = _chunkP6AADOROjs.getActiveCliProgress.call(void 0, );
|
|
1368
1374
|
if (progress) {
|
|
1369
1375
|
progress.writeLine(line);
|
|
1370
1376
|
return;
|
|
@@ -1375,15 +1381,15 @@ function writeSdkSkillsStatusLine(line) {
|
|
|
1375
1381
|
async function syncSdkSkillsIfNeeded(baseUrl, options = {}) {
|
|
1376
1382
|
const skip = shouldSkipSkillsSync();
|
|
1377
1383
|
if (skip && !options.claim) return;
|
|
1378
|
-
const usingPluginSkills =
|
|
1384
|
+
const usingPluginSkills = _chunkQUSYG3VPjs.hasActivePluginSkills.call(void 0, );
|
|
1379
1385
|
if (usingPluginSkills) {
|
|
1380
1386
|
return;
|
|
1381
1387
|
}
|
|
1382
|
-
const agents =
|
|
1388
|
+
const agents = _chunkQUSYG3VPjs.resolveAutoSyncSkillAgents.call(void 0, );
|
|
1383
1389
|
if (options.mode === "detached" && agents.length > 0) {
|
|
1384
1390
|
flushDeferredSkillsNotices(baseUrl, agents);
|
|
1385
1391
|
}
|
|
1386
|
-
if (options.mode === "detached" && options.update === void 0 && isDefaultAgentSet(agents)) {
|
|
1392
|
+
if (options.mode === "detached" && options.update === void 0 && (options.afterCliUpdate ? agents.length === 0 : isDefaultAgentSet(agents))) {
|
|
1387
1393
|
return;
|
|
1388
1394
|
}
|
|
1389
1395
|
const ownsInProgressMarker = options.mode !== "detached" && agents.length > 0 && Boolean(options.claim);
|
|
@@ -1397,13 +1403,18 @@ async function syncSdkSkillsIfNeeded(baseUrl, options = {}) {
|
|
|
1397
1403
|
}
|
|
1398
1404
|
if (leases) recordOwnPidOnInProgressSkillsSync(baseUrl, leases);
|
|
1399
1405
|
const claimedVersion = leases ? claimedSkillsVersion(leases) : "";
|
|
1406
|
+
const spawnDetached = _nullishCoalesce(options.spawnDetached, () => ( ((argv, onSpawnError) => spawnDetachedSkillsSyncChild(
|
|
1407
|
+
argv,
|
|
1408
|
+
onSpawnError,
|
|
1409
|
+
_optionalChain([options, 'access', _88 => _88.afterCliUpdate, 'optionalAccess', _89 => _89.sidecarPath])
|
|
1410
|
+
))));
|
|
1400
1411
|
if (options.mode === "detached" && agents.length > 0 && options.update === void 0 && !claimedVersion) {
|
|
1401
1412
|
if (cachedUnavailableInstallerProbes(baseUrl)) return;
|
|
1402
1413
|
const outcome = claimAndSpawnDetachedSkillsSync(
|
|
1403
1414
|
baseUrl,
|
|
1404
1415
|
agents,
|
|
1405
1416
|
UNRESOLVED_SKILLS_CLAIM_VERSION,
|
|
1406
|
-
|
|
1417
|
+
spawnDetached
|
|
1407
1418
|
);
|
|
1408
1419
|
if (outcome.state === "unavailable") {
|
|
1409
1420
|
writeSkillsStateUnavailableNotice(baseUrl, agents, outcome.error);
|
|
@@ -1411,12 +1422,12 @@ async function syncSdkSkillsIfNeeded(baseUrl, options = {}) {
|
|
|
1411
1422
|
return;
|
|
1412
1423
|
}
|
|
1413
1424
|
try {
|
|
1414
|
-
const localVersion =
|
|
1425
|
+
const localVersion = _chunkQUSYG3VPjs.readSdkSkillsLocalVersion.call(void 0, baseUrl);
|
|
1415
1426
|
const update = options.update === void 0 ? claimedVersion ? { needsUpdate: true, remoteVersion: claimedVersion } : await fetchSkillsUpdate(baseUrl, localVersion) : options.update ? {
|
|
1416
1427
|
needsUpdate: options.update.needs_update,
|
|
1417
1428
|
remoteVersion: options.update.remote.version
|
|
1418
1429
|
} : null;
|
|
1419
|
-
if (!_optionalChain([update, 'optionalAccess',
|
|
1430
|
+
if (!_optionalChain([update, 'optionalAccess', _90 => _90.needsUpdate]) || !update.remoteVersion || update.remoteVersion === localVersion) {
|
|
1420
1431
|
return;
|
|
1421
1432
|
}
|
|
1422
1433
|
if (agents.length > 0 && hasFailedSkillsSync(baseUrl, update.remoteVersion, agents)) {
|
|
@@ -1442,7 +1453,7 @@ async function syncSdkSkillsIfNeeded(baseUrl, options = {}) {
|
|
|
1442
1453
|
baseUrl,
|
|
1443
1454
|
agents,
|
|
1444
1455
|
update.remoteVersion,
|
|
1445
|
-
|
|
1456
|
+
spawnDetached,
|
|
1446
1457
|
isDefaultAgentSet(agents) ? () => {
|
|
1447
1458
|
const probes = dueUnknownInstallerProbes(
|
|
1448
1459
|
baseUrl,
|
|
@@ -1533,7 +1544,7 @@ async function runInlineSkillsSync(baseUrl, remoteVersion, agents, notices) {
|
|
|
1533
1544
|
update.remoteVersion,
|
|
1534
1545
|
agents
|
|
1535
1546
|
);
|
|
1536
|
-
void
|
|
1547
|
+
void _chunkUW5QWTUGjs.maybeReportAutomaticSkillsSyncFailure.call(void 0, {
|
|
1537
1548
|
baseUrl,
|
|
1538
1549
|
remoteSkillsVersion: update.remoteVersion,
|
|
1539
1550
|
agents,
|
|
@@ -1564,7 +1575,7 @@ async function runInlineSkillsSync(baseUrl, remoteVersion, agents, notices) {
|
|
|
1564
1575
|
notice(
|
|
1565
1576
|
publishedFailure ? `Deepline could not verify the published skills: ${detail}. The local version remains stale; it will retry automatically on a later command.` : `Deepline agent-skills refresh could not verify the five installed targets: ${detail}. The local version remains stale. After fixing the install, remove ${failedSkillsSyncPath(baseUrl, agents)} to retry this version automatically.`
|
|
1566
1577
|
);
|
|
1567
|
-
void
|
|
1578
|
+
void _chunkUW5QWTUGjs.maybeReportAutomaticSkillsSyncFailure.call(void 0, {
|
|
1568
1579
|
baseUrl,
|
|
1569
1580
|
remoteSkillsVersion: update.remoteVersion,
|
|
1570
1581
|
agents,
|
|
@@ -1577,7 +1588,7 @@ async function runInlineSkillsSync(baseUrl, remoteVersion, agents, notices) {
|
|
|
1577
1588
|
}
|
|
1578
1589
|
}
|
|
1579
1590
|
runLegacySkillsCleanup(agents);
|
|
1580
|
-
if (!
|
|
1591
|
+
if (!_chunkQUSYG3VPjs.writeSdkSkillsLocalVersion.call(void 0, baseUrl, update.remoteVersion, agents)) {
|
|
1581
1592
|
notice(
|
|
1582
1593
|
"Deepline agent skills installed, but the local skills version could not be recorded. A later command will retry the refresh."
|
|
1583
1594
|
);
|
|
@@ -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 _chunkSQWET4SLjs = require('./chunk-SQWET4SL.js');
|
|
4
4
|
|
|
5
5
|
// node_modules/csv-parse/dist/esm/sync.js
|
|
6
6
|
var global$1 = typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {};
|
|
@@ -3000,7 +3000,7 @@ function parseCsvDataInput(source, content, options = {}) {
|
|
|
3000
3000
|
} : {}
|
|
3001
3001
|
});
|
|
3002
3002
|
} catch (error) {
|
|
3003
|
-
throw new (0,
|
|
3003
|
+
throw new (0, _chunkSQWET4SLjs.DeeplineError)(
|
|
3004
3004
|
`Input ${source.inputPath} could not be parsed as CSV (${source.value}): ${error instanceof Error ? error.message : String(error)}. This usually means an unclosed quote or ragged quoting. No run was created.`,
|
|
3005
3005
|
void 0,
|
|
3006
3006
|
"PLAY_INPUT_FILE_PREFLIGHT",
|
|
@@ -3008,7 +3008,7 @@ function parseCsvDataInput(source, content, options = {}) {
|
|
|
3008
3008
|
);
|
|
3009
3009
|
}
|
|
3010
3010
|
if (records.length === 0) {
|
|
3011
|
-
throw new (0,
|
|
3011
|
+
throw new (0, _chunkSQWET4SLjs.DeeplineError)(
|
|
3012
3012
|
`${source.value} is empty: it has no header row and no data rows. No run was created.`,
|
|
3013
3013
|
void 0,
|
|
3014
3014
|
"PLAY_INPUT_FILE_PREFLIGHT",
|
|
@@ -3023,7 +3023,7 @@ function parseCsvDataInput(source, content, options = {}) {
|
|
|
3023
3023
|
if (name.length === 0) continue;
|
|
3024
3024
|
const prior = seen.get(name);
|
|
3025
3025
|
if (prior) {
|
|
3026
|
-
throw new (0,
|
|
3026
|
+
throw new (0, _chunkSQWET4SLjs.DeeplineError)(
|
|
3027
3027
|
`Input ${source.inputPath} (${source.value}) has a duplicate CSV header "${name}" (columns ${prior.index + 1} and ${i + 1}). The second column would silently overwrite the first. Rename one of them. No run was created.`,
|
|
3028
3028
|
void 0,
|
|
3029
3029
|
"PLAY_INPUT_FILE_PREFLIGHT",
|
|
@@ -3039,7 +3039,7 @@ function parseCsvDataInput(source, content, options = {}) {
|
|
|
3039
3039
|
seen.set(name, { index: i, raw });
|
|
3040
3040
|
}
|
|
3041
3041
|
if (records.length - 1 < 1) {
|
|
3042
|
-
throw new (0,
|
|
3042
|
+
throw new (0, _chunkSQWET4SLjs.DeeplineError)(
|
|
3043
3043
|
`${source.value} has a header row but no data rows. No run was created.`,
|
|
3044
3044
|
void 0,
|
|
3045
3045
|
"PLAY_INPUT_FILE_PREFLIGHT",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; } var _class;
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkXEQBYK4Bjs = require('./chunk-XEQBYK4B.js');
|
|
4
4
|
|
|
5
5
|
// src/cli/progress.ts
|
|
6
6
|
var _worker_threads = require('worker_threads');
|
|
@@ -19,7 +19,7 @@ var CliProgress = (_class = class {
|
|
|
19
19
|
__init9() {this.quiet = false}
|
|
20
20
|
// --json output is one JSON document: progress never renders under it.
|
|
21
21
|
constructor(enabled) {;_class.prototype.__init.call(this);_class.prototype.__init2.call(this);_class.prototype.__init3.call(this);_class.prototype.__init4.call(this);_class.prototype.__init5.call(this);_class.prototype.__init6.call(this);_class.prototype.__init7.call(this);_class.prototype.__init8.call(this);_class.prototype.__init9.call(this);
|
|
22
|
-
this.enabled = enabled && !
|
|
22
|
+
this.enabled = enabled && !_chunkXEQBYK4Bjs.isJsonOutputMode.call(void 0, );
|
|
23
23
|
}
|
|
24
24
|
setLogWriter(writer) {
|
|
25
25
|
this.logWriter = writer;
|
|
@@ -59,7 +59,7 @@ var CliProgress = (_class = class {
|
|
|
59
59
|
this.logWriter(line);
|
|
60
60
|
return;
|
|
61
61
|
}
|
|
62
|
-
if (
|
|
62
|
+
if (_chunkXEQBYK4Bjs.isJsonOutputMode.call(void 0, )) return;
|
|
63
63
|
if (!this.enabled) {
|
|
64
64
|
process.stderr.write(`${line}
|
|
65
65
|
`);
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var _chunkXEQBYK4Bjs = require('./chunk-XEQBYK4B.js');
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
var
|
|
8
|
+
var _chunkQUSYG3VPjs = require('./chunk-QUSYG3VP.js');
|
|
9
9
|
|
|
10
10
|
// src/cli/commands/git.ts
|
|
11
11
|
function shellQuote(value) {
|
|
@@ -32,11 +32,11 @@ function renderDeployment(deployment) {
|
|
|
32
32
|
return `${deployment.id} ${source} (${kind}) - ${deployment.status}${suffix}`;
|
|
33
33
|
}
|
|
34
34
|
async function handleList(options) {
|
|
35
|
-
const { http } =
|
|
35
|
+
const { http } = _chunkXEQBYK4Bjs.getAuthedHttpClient.call(void 0, );
|
|
36
36
|
const payload = await http.get(
|
|
37
37
|
`/api/v2/play-projects${options.all ? "?includeDisabled=1" : ""}`
|
|
38
38
|
);
|
|
39
|
-
|
|
39
|
+
_chunkXEQBYK4Bjs.printCommandEnvelope.call(void 0,
|
|
40
40
|
{
|
|
41
41
|
projects: payload.projects,
|
|
42
42
|
count: payload.projects.length,
|
|
@@ -73,7 +73,7 @@ function describeInstallationStatus(installation) {
|
|
|
73
73
|
}
|
|
74
74
|
}
|
|
75
75
|
async function handleStatus(options) {
|
|
76
|
-
const { http } =
|
|
76
|
+
const { http } = _chunkXEQBYK4Bjs.getAuthedHttpClient.call(void 0, );
|
|
77
77
|
const payload = await http.get("/api/v2/github/installation");
|
|
78
78
|
const installation = payload.installation;
|
|
79
79
|
const others = (_nullishCoalesce(payload.installations, () => ( []))).filter(
|
|
@@ -136,7 +136,7 @@ async function handleStatus(options) {
|
|
|
136
136
|
)
|
|
137
137
|
);
|
|
138
138
|
}
|
|
139
|
-
|
|
139
|
+
_chunkXEQBYK4Bjs.printCommandEnvelope.call(void 0,
|
|
140
140
|
{
|
|
141
141
|
installation,
|
|
142
142
|
installations: _nullishCoalesce(payload.installations, () => ( [])),
|
|
@@ -147,10 +147,10 @@ async function handleStatus(options) {
|
|
|
147
147
|
);
|
|
148
148
|
}
|
|
149
149
|
async function handleRepos(options) {
|
|
150
|
-
const { http } =
|
|
150
|
+
const { http } = _chunkXEQBYK4Bjs.getAuthedHttpClient.call(void 0, );
|
|
151
151
|
const query = options.installation ? `?installationId=${encodeURIComponent(options.installation)}` : "";
|
|
152
152
|
const payload = await http.get(`/api/v2/github/repos${query}`);
|
|
153
|
-
|
|
153
|
+
_chunkXEQBYK4Bjs.printCommandEnvelope.call(void 0,
|
|
154
154
|
{
|
|
155
155
|
installation: payload.installation,
|
|
156
156
|
repositories: payload.repositories,
|
|
@@ -171,7 +171,7 @@ async function handleRepos(options) {
|
|
|
171
171
|
}
|
|
172
172
|
async function resolveRepoId(repo, installation) {
|
|
173
173
|
if (/^\d+$/.test(repo)) return Number(repo);
|
|
174
|
-
const { http } =
|
|
174
|
+
const { http } = _chunkXEQBYK4Bjs.getAuthedHttpClient.call(void 0, );
|
|
175
175
|
const query = installation ? `?installationId=${encodeURIComponent(installation)}` : "";
|
|
176
176
|
const payload = await http.get(
|
|
177
177
|
`/api/v2/github/repos${query}`
|
|
@@ -188,7 +188,7 @@ async function resolveRepoId(repo, installation) {
|
|
|
188
188
|
}
|
|
189
189
|
async function handleLink(repo, options) {
|
|
190
190
|
const repoId = await resolveRepoId(repo, options.installation);
|
|
191
|
-
const { http } =
|
|
191
|
+
const { http } = _chunkXEQBYK4Bjs.getAuthedHttpClient.call(void 0, );
|
|
192
192
|
const payload = await http.post("/api/v2/play-projects", {
|
|
193
193
|
repoId,
|
|
194
194
|
...options.installation !== void 0 ? { installationId: options.installation } : {},
|
|
@@ -197,7 +197,7 @@ async function handleLink(repo, options) {
|
|
|
197
197
|
...options.branch !== void 0 ? { productionBranch: options.branch } : {},
|
|
198
198
|
...options.prChecks !== void 0 ? { checkOnPullRequest: options.prChecks } : {}
|
|
199
199
|
});
|
|
200
|
-
|
|
200
|
+
_chunkXEQBYK4Bjs.printCommandEnvelope.call(void 0,
|
|
201
201
|
{
|
|
202
202
|
project: payload.project,
|
|
203
203
|
render: {
|
|
@@ -220,11 +220,11 @@ async function handleLink(repo, options) {
|
|
|
220
220
|
);
|
|
221
221
|
}
|
|
222
222
|
async function handleGet(id, options) {
|
|
223
|
-
const { http } =
|
|
223
|
+
const { http } = _chunkXEQBYK4Bjs.getAuthedHttpClient.call(void 0, );
|
|
224
224
|
const payload = await http.get(
|
|
225
225
|
`/api/v2/play-projects/${encodeURIComponent(id)}`
|
|
226
226
|
);
|
|
227
|
-
|
|
227
|
+
_chunkXEQBYK4Bjs.printCommandEnvelope.call(void 0,
|
|
228
228
|
{
|
|
229
229
|
project: payload.project,
|
|
230
230
|
render: {
|
|
@@ -240,7 +240,7 @@ async function handleGet(id, options) {
|
|
|
240
240
|
);
|
|
241
241
|
}
|
|
242
242
|
async function handleSet(id, options) {
|
|
243
|
-
const { http } =
|
|
243
|
+
const { http } = _chunkXEQBYK4Bjs.getAuthedHttpClient.call(void 0, );
|
|
244
244
|
const payload = await http.patch(
|
|
245
245
|
`/api/v2/play-projects/${encodeURIComponent(id)}`,
|
|
246
246
|
{
|
|
@@ -251,7 +251,7 @@ async function handleSet(id, options) {
|
|
|
251
251
|
...options.disabled !== void 0 ? { disabled: options.disabled } : {}
|
|
252
252
|
}
|
|
253
253
|
);
|
|
254
|
-
|
|
254
|
+
_chunkXEQBYK4Bjs.printCommandEnvelope.call(void 0,
|
|
255
255
|
{
|
|
256
256
|
project: payload.project,
|
|
257
257
|
render: {
|
|
@@ -264,9 +264,9 @@ async function handleSet(id, options) {
|
|
|
264
264
|
);
|
|
265
265
|
}
|
|
266
266
|
async function handleUnlink(id, options) {
|
|
267
|
-
const { http } =
|
|
267
|
+
const { http } = _chunkXEQBYK4Bjs.getAuthedHttpClient.call(void 0, );
|
|
268
268
|
await http.delete(`/api/v2/play-projects/${encodeURIComponent(id)}`);
|
|
269
|
-
|
|
269
|
+
_chunkXEQBYK4Bjs.printCommandEnvelope.call(void 0,
|
|
270
270
|
{
|
|
271
271
|
ok: true,
|
|
272
272
|
id,
|
|
@@ -286,10 +286,10 @@ async function handleUnlink(id, options) {
|
|
|
286
286
|
);
|
|
287
287
|
}
|
|
288
288
|
async function handleConnect(options) {
|
|
289
|
-
const baseUrl =
|
|
289
|
+
const baseUrl = _chunkQUSYG3VPjs.resolveBaseUrlOnly.call(void 0, );
|
|
290
290
|
const connectUrl = `${baseUrl.replace(/\/$/, "")}/api/v2/github/connect`;
|
|
291
|
-
const opened =
|
|
292
|
-
|
|
291
|
+
const opened = _chunkXEQBYK4Bjs.openInBrowser.call(void 0, connectUrl);
|
|
292
|
+
_chunkXEQBYK4Bjs.printCommandEnvelope.call(void 0,
|
|
293
293
|
{
|
|
294
294
|
connectUrl,
|
|
295
295
|
browser: opened,
|
|
@@ -311,7 +311,7 @@ async function handleConnect(options) {
|
|
|
311
311
|
);
|
|
312
312
|
}
|
|
313
313
|
async function handleDeploymentsList(options) {
|
|
314
|
-
const { http } =
|
|
314
|
+
const { http } = _chunkXEQBYK4Bjs.getAuthedHttpClient.call(void 0, );
|
|
315
315
|
const query = new URLSearchParams();
|
|
316
316
|
if (options.repo) query.set("projectId", options.repo);
|
|
317
317
|
if (options.limit) query.set("limit", options.limit);
|
|
@@ -319,7 +319,7 @@ async function handleDeploymentsList(options) {
|
|
|
319
319
|
const payload = await http.get(
|
|
320
320
|
`/api/v2/deployments${suffix}`
|
|
321
321
|
);
|
|
322
|
-
|
|
322
|
+
_chunkXEQBYK4Bjs.printCommandEnvelope.call(void 0,
|
|
323
323
|
{
|
|
324
324
|
deployments: payload.deployments,
|
|
325
325
|
count: payload.deployments.length,
|
|
@@ -363,12 +363,12 @@ function renderDeploymentMonitorLines(results) {
|
|
|
363
363
|
]);
|
|
364
364
|
}
|
|
365
365
|
async function handleDeploymentGet(id, options) {
|
|
366
|
-
const { http } =
|
|
366
|
+
const { http } = _chunkXEQBYK4Bjs.getAuthedHttpClient.call(void 0, );
|
|
367
367
|
const payload = await http.get(`/api/v2/deployments/${encodeURIComponent(id)}`);
|
|
368
368
|
const playLines = renderDeploymentPlayLines(payload.deployment.results);
|
|
369
369
|
const monitorLines = renderDeploymentMonitorLines(payload.deployment.results);
|
|
370
370
|
const repository = _nullishCoalesce(_optionalChain([payload, 'access', _10 => _10.project, 'optionalAccess', _11 => _11.repoFullName]), () => ( payload.deployment.repoFullName));
|
|
371
|
-
|
|
371
|
+
_chunkXEQBYK4Bjs.printCommandEnvelope.call(void 0,
|
|
372
372
|
{
|
|
373
373
|
deployment: payload.deployment,
|
|
374
374
|
project: payload.project,
|
|
@@ -387,9 +387,9 @@ async function handleDeploymentGet(id, options) {
|
|
|
387
387
|
);
|
|
388
388
|
}
|
|
389
389
|
async function handleDeploymentCancel(id, options) {
|
|
390
|
-
const { http } =
|
|
390
|
+
const { http } = _chunkXEQBYK4Bjs.getAuthedHttpClient.call(void 0, );
|
|
391
391
|
const payload = await http.post(`/api/v2/deployments/${encodeURIComponent(id)}/cancel`, {});
|
|
392
|
-
|
|
392
|
+
_chunkXEQBYK4Bjs.printCommandEnvelope.call(void 0,
|
|
393
393
|
{
|
|
394
394
|
cancelled: payload.cancelled,
|
|
395
395
|
deployment: payload.deployment,
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); 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 _chunkYS7AI7R6js = require('./chunk-YS7AI7R6.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkQUSYG3VPjs = require('./chunk-QUSYG3VP.js');
|
|
8
8
|
|
|
9
9
|
// src/client.ts
|
|
10
|
-
var DeeplineClient2 = class extends
|
|
10
|
+
var DeeplineClient2 = class extends _chunkYS7AI7R6js.DeeplineClient {
|
|
11
11
|
constructor(options) {
|
|
12
|
-
const config =
|
|
13
|
-
super(config, new (0,
|
|
12
|
+
const config = _chunkQUSYG3VPjs.resolveConfig.call(void 0, options);
|
|
13
|
+
super(config, new (0, _chunkQUSYG3VPjs.HttpClient)(config), _optionalChain([options, 'optionalAccess', _ => _.timeout]));
|
|
14
14
|
}
|
|
15
15
|
};
|
|
16
16
|
|