deepline 0.3.470 → 0.3.471
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 +5 -0
- package/dist/bundling-sources/sdk/src/index.ts +1 -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 +22 -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-2MMOFS3O.js +41 -0
- package/dist/cli/{auth-7J52UEWO.mjs → auth-MUCIXHJF.mjs} +5 -5
- package/dist/cli/{billing-ASNWVDQG.js → billing-BQQNTCTV.js} +82 -81
- package/dist/cli/{billing-ORB3UZ73.mjs → billing-QGCTDE2N.mjs} +9 -8
- package/dist/cli/{chunk-BWLXHUKH.mjs → chunk-2KBRY5CA.mjs} +3 -3
- package/dist/cli/{chunk-DSOTGAXS.mjs → chunk-3PT2HJKC.mjs} +1 -1
- package/dist/cli/{chunk-262PYO4I.mjs → chunk-4OAA43RX.mjs} +3 -3
- package/dist/cli/{chunk-NNCDHMCT.js → chunk-4PT2WZD2.js} +26 -26
- package/dist/cli/{chunk-VBKN6ISP.js → chunk-5QWGL2QO.js} +93 -93
- package/dist/cli/{chunk-HNP5V5BN.js → chunk-6DTW6JND.js} +6 -2
- package/dist/cli/{chunk-5ADROBCY.mjs → chunk-AMUSZHCE.mjs} +2 -2
- package/dist/cli/{chunk-3P4WOCRB.mjs → chunk-ATKFOOVD.mjs} +5 -5
- package/dist/cli/{chunk-A7THVTRN.js → chunk-CR2F3JZN.js} +51 -51
- package/dist/cli/{chunk-PWXHZPHK.js → chunk-DFMFYOML.js} +10 -10
- package/dist/cli/{chunk-AGIEKE3L.js → chunk-DK5Y5BD3.js} +4 -4
- package/dist/cli/{chunk-SV3B6KW4.mjs → chunk-DV4V5IWI.mjs} +5 -5
- package/dist/cli/{chunk-F4L7WMLK.mjs → chunk-E2SHDT7T.mjs} +2 -2
- package/dist/cli/{chunk-44UR3BU2.js → chunk-E3WTQ3JI.js} +14 -14
- package/dist/cli/{chunk-3XLJPLXZ.mjs → chunk-EHVVDHNU.mjs} +1 -1
- package/dist/cli/{chunk-YFKOA4HW.mjs → chunk-EYKMITTY.mjs} +4 -4
- package/dist/cli/{chunk-7WILY2XM.mjs → chunk-FJBGBPYY.mjs} +2 -2
- package/dist/cli/{chunk-VL7OL7YR.mjs → chunk-FVGT5EBA.mjs} +1 -1
- package/dist/cli/{chunk-F2XK4UN6.js → chunk-FX3QM6WN.js} +3 -3
- package/dist/cli/{chunk-NSAKJQLX.js → chunk-G6RQXAJ2.js} +1 -1
- package/dist/cli/{chunk-MXAB4W6E.js → chunk-GPSVXVDZ.js} +8 -8
- package/dist/cli/{chunk-SHB7BUNQ.mjs → chunk-IE5KAVTI.mjs} +3 -3
- package/dist/cli/{chunk-SOME764Z.mjs → chunk-IPFUDUSY.mjs} +4 -4
- package/dist/cli/{chunk-Y4OE46HH.js → chunk-J2NYCUTK.js} +24 -24
- package/dist/cli/{chunk-JKVRBCZL.js → chunk-JDMR33HS.js} +1 -0
- package/dist/cli/{chunk-YBDQUVDE.mjs → chunk-K5USD25Z.mjs} +10 -10
- package/dist/cli/{chunk-F6OB5L74.js → chunk-KSUGLTX3.js} +6 -6
- package/dist/cli/{chunk-CNQBCLQP.js → chunk-MLQJVAVS.js} +3 -3
- package/dist/cli/{chunk-QW6HNDS7.mjs → chunk-MV6HL67R.mjs} +2 -2
- package/dist/cli/{chunk-6R5UKWRW.js → chunk-NBPNYD54.js} +16 -16
- package/dist/cli/{chunk-FAG4DFUC.mjs → chunk-NELMCOWK.mjs} +1 -0
- package/dist/cli/{chunk-N72VIY7R.js → chunk-NLT3CFVJ.js} +2 -2
- package/dist/cli/{chunk-EM2E7YIS.js → chunk-NPJY5QRC.js} +53 -53
- package/dist/cli/{chunk-QG7UPPOK.mjs → chunk-OYHCMKZM.mjs} +3 -3
- package/dist/cli/{chunk-SXQZYTUW.mjs → chunk-PVEEGJFN.mjs} +1 -1
- package/dist/cli/{chunk-4BQQ3Q3J.js → chunk-RUWBAU6V.js} +8 -8
- package/dist/cli/{chunk-YTFCKCII.js → chunk-RWCTGSD7.js} +3 -3
- package/dist/cli/{chunk-GLSFZYZB.mjs → chunk-RYGJWMWL.mjs} +1 -1
- package/dist/cli/{chunk-D464JW3N.mjs → chunk-RZHUHL53.mjs} +19 -1
- package/dist/cli/{chunk-6B7XLHIE.mjs → chunk-SIQV6UYG.mjs} +4 -4
- package/dist/cli/{chunk-ETTUFFBS.js → chunk-TWRK4NOU.js} +36 -36
- package/dist/cli/{chunk-CTDWQYBW.mjs → chunk-U5RGCQWJ.mjs} +2 -2
- package/dist/cli/{chunk-FVYAEBGO.mjs → chunk-V2WMJXU6.mjs} +6 -2
- package/dist/cli/{chunk-ORO2GFH4.js → chunk-VDRGX2XL.js} +5 -5
- package/dist/cli/{chunk-C7EA2VNR.js → chunk-VGIAOWCD.js} +5 -5
- package/dist/cli/{chunk-PJX7BA7T.mjs → chunk-VVY3HGFM.mjs} +2 -2
- package/dist/cli/{chunk-GDFO3ERN.js → chunk-WDXJUZCY.js} +2 -2
- package/dist/cli/{chunk-57F5VKHV.js → chunk-YRM5TPXL.js} +8 -8
- package/dist/cli/{chunk-WG3KGAII.js → chunk-Z52WEIBR.js} +19 -1
- package/dist/cli/{chunk-RVQ333NB.mjs → chunk-ZAF54BQK.mjs} +1 -1
- package/dist/cli/{chunk-KBNAI5BY.js → chunk-ZHM7VCKH.js} +21 -21
- package/dist/cli/{chunk-SETIOXN4.mjs → chunk-ZMJOSD7R.mjs} +1 -1
- package/dist/cli/command-docs.js +2 -2
- package/dist/cli/command-docs.mjs +1 -1
- package/dist/cli/{csv-D3JPZVUN.mjs → csv-Q6BSRCBJ.mjs} +4 -4
- package/dist/cli/{csv-FSXDIWBP.js → csv-UE7RZDUV.js} +13 -13
- package/dist/cli/{db-3UWDQXLF.mjs → db-FI6XXB2H.mjs} +7 -7
- package/dist/cli/{db-DZQUPWI3.js → db-T7A7EE3D.js} +28 -28
- package/dist/cli/{describe-APG2GVFG.mjs → describe-4GGU6NU3.mjs} +18 -18
- package/dist/cli/describe-UM2VGRY7.js +48 -0
- package/dist/cli/describe-core.d.mts +3 -3
- package/dist/cli/describe-core.d.ts +3 -3
- package/dist/cli/{executions-BFAPMPG2.js → executions-4I6F5RMS.js} +9 -9
- package/dist/cli/{executions-TDUX3575.mjs → executions-S46XI7NX.mjs} +7 -7
- package/dist/cli/{feedback-BMV7PUDL.mjs → feedback-3LJ7NZE7.mjs} +4 -4
- package/dist/cli/{feedback-2KNPCYTH.js → feedback-VEGUNKSP.js} +8 -8
- package/dist/cli/git-EVWKNIUA.js +25 -0
- package/dist/cli/{git-KBVONNE5.mjs → git-W7SFD7AA.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-3EMB5SJH.js} +8 -8
- package/dist/cli/{legacy-noops-GZDRRUFE.mjs → legacy-noops-FIR5PSHG.mjs} +5 -5
- package/dist/cli/{monitors-CW22L3VL.mjs → monitors-4DKW25PV.mjs} +8 -8
- package/dist/cli/{monitors-PGBHMKOU.js → monitors-53LPJH6R.js} +92 -92
- package/dist/cli/{org-K5C23LAV.mjs → org-6ZV2DBGI.mjs} +7 -7
- package/dist/cli/{org-3V2VAH5D.js → org-CYLJFX4Q.js} +73 -73
- package/dist/cli/{pages-2F73VVWC.js → pages-42E3WIMH.js} +18 -18
- package/dist/cli/{pages-7V2C7GWU.mjs → pages-V3LEXCRL.mjs} +7 -7
- package/dist/cli/{play-62KSZGJQ.js → play-O3OY556F.js} +556 -516
- package/dist/cli/{play-VT7TPJUH.mjs → play-X7REMNNG.mjs} +63 -23
- package/dist/cli/{providers-LX562YG7.mjs → providers-L2DJVAXN.mjs} +7 -7
- package/dist/cli/{providers-3SI3QBT3.js → providers-NZ7TISS3.js} +10 -10
- package/dist/cli/{quickstart-5HA5IFTB.js → quickstart-IKNGAQRO.js} +6 -6
- package/dist/cli/{quickstart-ADE7FV26.mjs → quickstart-ROWMAUXQ.mjs} +4 -4
- package/dist/cli/{run-4ZV4UDKP.js → run-JG6DLOYR.js} +37 -37
- package/dist/cli/{run-OITZJ6QZ.mjs → run-PJI577J2.mjs} +23 -23
- package/dist/cli/{search-BI5VZQMD.mjs → search-DOVJ745X.mjs} +8 -8
- package/dist/cli/search-RHKW5GSR.js +32 -0
- package/dist/cli/{secrets-A2R36AZ6.mjs → secrets-OKDFNCRJ.mjs} +7 -7
- package/dist/cli/{secrets-UAKNTMYB.js → secrets-R5LWXIG6.js} +16 -16
- package/dist/cli/{sessions-PPOFUFBW.mjs → sessions-KX4C2CKS.mjs} +5 -5
- package/dist/cli/{sessions-3JM3OXME.js → sessions-L3DSAY2T.js} +6 -6
- package/dist/cli/{settings-C4M5HOD4.js → settings-NKTNNTAP.js} +79 -79
- package/dist/cli/{settings-PZA6TBOL.mjs → settings-W3SMDBYS.mjs} +12 -12
- package/dist/cli/{setup-TY2OSI6D.js → setup-5WZEXWQR.js} +44 -44
- package/dist/cli/{setup-245XVTBR.mjs → setup-7KFKKW2W.mjs} +9 -9
- package/dist/cli/skills-UFAABPCQ.js +31 -0
- package/dist/cli/{skills-ZAN23KLR.mjs → skills-X5TLATOL.mjs} +7 -7
- package/dist/cli/{tools-GG4KDQBM.mjs → tools-27J5EOKO.mjs} +17 -17
- package/dist/cli/tools-IVU3BCIY.js +55 -0
- package/dist/cli/{update-XKXIL6DU.mjs → update-EWL477FJ.mjs} +9 -9
- package/dist/cli/update-G7HFHKPG.js +33 -0
- package/dist/cli/{workflow-VN7M3D2U.js → workflow-GFNGGHJE.js} +18 -18
- package/dist/cli/{workflow-LVQVTFUJ.mjs → workflow-YXR6YMT2.mjs} +8 -8
- package/dist/{client-B3tlWsw7.d.ts → client-DIpVmXcj.d.ts} +1 -1
- package/dist/{client-CdJR18SJ.d.mts → client-DitOgp8N.d.mts} +1 -1
- package/dist/{client-core-ByJD7QXj.d.mts → client-core-COZteOww.d.mts} +28 -2
- package/dist/{client-core-CxHBKfE5.d.ts → client-core-k543Fg6D.d.ts} +28 -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
|
@@ -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 _chunkRWCTGSD7js = require('./chunk-RWCTGSD7.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 _chunkMLQJVAVSjs = require('./chunk-MLQJVAVS.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 _chunkDK5Y5BD3js = require('./chunk-DK5Y5BD3.js');
|
|
24
24
|
|
|
25
25
|
|
|
26
26
|
var _chunkDIAWYWT5js = require('./chunk-DIAWYWT5.js');
|
|
27
27
|
|
|
28
28
|
|
|
29
|
-
var
|
|
29
|
+
var _chunkG6RQXAJ2js = require('./chunk-G6RQXAJ2.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, _chunkMLQJVAVSjs.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: _chunkDK5Y5BD3js.SDK_VERSION,
|
|
73
|
+
apiContract: _chunkDK5Y5BD3js.SDK_API_CONTRACT,
|
|
74
|
+
apiMajor: _chunkDK5Y5BD3js.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: _chunkDK5Y5BD3js.SDK_VERSION,
|
|
83
|
+
apiContract: _chunkDK5Y5BD3js.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, _chunkMLQJVAVSjs.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", _chunkDK5Y5BD3js.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(_chunkG6RQXAJ2js.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
|
+
..._chunkDK5Y5BD3js.deploymentProtectionHeaders.call(void 0, ),
|
|
213
|
+
"User-Agent": `deepline-ts-sdk/${_chunkDK5Y5BD3js.SDK_VERSION}`,
|
|
214
|
+
"X-Deepline-SDK-Version": _chunkDK5Y5BD3js.SDK_VERSION,
|
|
215
|
+
"X-Deepline-API-Major": String(_chunkDK5Y5BD3js.SDK_API_MAJOR),
|
|
216
|
+
"X-Deepline-API-Contract": _chunkDK5Y5BD3js.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 ${_chunkMLQJVAVSjs.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, () => ( _chunkMLQJVAVSjs.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: _chunkDK5Y5BD3js.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 = _chunkDK5Y5BD3js.agentSessionIdFromEnvironment.call(void 0, );
|
|
621
621
|
return {
|
|
622
|
-
...
|
|
622
|
+
..._chunkDK5Y5BD3js.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/${_chunkDK5Y5BD3js.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": _chunkDK5Y5BD3js.detectAgentRuntime.call(void 0, ),
|
|
630
|
+
"X-Deepline-CLI-Version": _chunkDK5Y5BD3js.SDK_VERSION,
|
|
631
|
+
"X-Deepline-SDK-Version": _chunkDK5Y5BD3js.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 = _chunkMLQJVAVSjs.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: _chunkDK5Y5BD3js.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: _chunkDK5Y5BD3js.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 = _chunkMLQJVAVSjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
|
|
827
|
+
const apiKey = _chunkMLQJVAVSjs.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 (_chunkDK5Y5BD3js.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, _chunkMLQJVAVSjs.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 = _chunkMLQJVAVSjs.skillsAgentPathSegment;
|
|
876
876
|
function sortedLeaseAgents(agents) {
|
|
877
|
-
const expanded = agents.includes("*") ? [...agents, ...
|
|
877
|
+
const expanded = agents.includes("*") ? [...agents, ..._chunkMLQJVAVSjs.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
|
+
_chunkMLQJVAVSjs.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 ${_chunkMLQJVAVSjs.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
|
+
_chunkMLQJVAVSjs.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() || _chunkMLQJVAVSjs.hasActivePluginSkills.call(void 0, )) return;
|
|
1161
|
+
const agents = _chunkMLQJVAVSjs.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
|
+
_chunkMLQJVAVSjs.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, _chunkMLQJVAVSjs.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 === _chunkMLQJVAVSjs.DEFAULT_SKILL_AGENTS.length && agents.every((agent, index) => agent === _chunkMLQJVAVSjs.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: _chunkDK5Y5BD3js.SDK_VERSION },
|
|
1452
1452
|
skills: {
|
|
1453
1453
|
version: localVersion,
|
|
1454
|
-
capability:
|
|
1454
|
+
capability: _chunkG6RQXAJ2js.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
|
+
_chunkMLQJVAVSjs.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 = _chunkMLQJVAVSjs.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 = _chunkRWCTGSD7js.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 = _chunkMLQJVAVSjs.hasActivePluginSkills.call(void 0, );
|
|
1725
1725
|
if (usingPluginSkills) {
|
|
1726
1726
|
return;
|
|
1727
1727
|
}
|
|
1728
|
-
const agents =
|
|
1728
|
+
const agents = _chunkMLQJVAVSjs.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 = _chunkMLQJVAVSjs.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 (!_chunkMLQJVAVSjs.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-FVGT5EBA.mjs";
|
|
6
6
|
import {
|
|
7
7
|
detectAgentRuntime
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-ZMJOSD7R.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"
|
|
@@ -3,15 +3,15 @@
|
|
|
3
3
|
var _chunkZM2YPJQJjs = require('./chunk-ZM2YPJQJ.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkVDRGX2XLjs = require('./chunk-VDRGX2XL.js');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
var
|
|
10
|
+
var _chunkYRM5TPXLjs = require('./chunk-YRM5TPXL.js');
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
|
|
14
|
-
var
|
|
14
|
+
var _chunkMLQJVAVSjs = require('./chunk-MLQJVAVS.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, _chunkMLQJVAVSjs.sdkCliStateDirPath.call(void 0, _chunkMLQJVAVSjs.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 _chunkYRM5TPXLjs.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
|
+
${_chunkYRM5TPXLjs.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, _chunkVDRGX2XLjs.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
|
+
_chunkYRM5TPXLjs.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 _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 _chunkYRM5TPXLjs = require('./chunk-YRM5TPXL.js');
|
|
4
4
|
|
|
5
5
|
// src/cli/progress.ts
|
|
6
6
|
var _worker_threads = require('worker_threads');
|
|
@@ -17,7 +17,7 @@ var CliProgress = (_class = class {
|
|
|
17
17
|
|
|
18
18
|
// --json output is one JSON document: progress never renders under it.
|
|
19
19
|
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);
|
|
20
|
-
this.enabled = enabled && !
|
|
20
|
+
this.enabled = enabled && !_chunkYRM5TPXLjs.isJsonOutputMode.call(void 0, );
|
|
21
21
|
}
|
|
22
22
|
setLogWriter(writer) {
|
|
23
23
|
this.logWriter = writer;
|
|
@@ -49,7 +49,7 @@ var CliProgress = (_class = class {
|
|
|
49
49
|
this.logWriter(line);
|
|
50
50
|
return;
|
|
51
51
|
}
|
|
52
|
-
if (
|
|
52
|
+
if (_chunkYRM5TPXLjs.isJsonOutputMode.call(void 0, )) return;
|
|
53
53
|
if (!this.enabled) {
|
|
54
54
|
process.stderr.write(`${line}
|
|
55
55
|
`);
|
|
@@ -167,6 +167,7 @@ var PLAY_AUTHORING_BINDING_FIELDS = {
|
|
|
167
167
|
"compatibility",
|
|
168
168
|
"cron",
|
|
169
169
|
"inline",
|
|
170
|
+
"rateLimit",
|
|
170
171
|
"runtime",
|
|
171
172
|
"secrets",
|
|
172
173
|
"sqlListeners",
|
|
@@ -1371,6 +1372,22 @@ var PLAY_AUTHORING_FIELD_REGISTRY = {
|
|
|
1371
1372
|
description: "Play-level sandbox deadline. The default is 30m; use a static duration such as 90m or 2h, up to 4h.",
|
|
1372
1373
|
errorMessage: 'runtime.timeout must be a static duration such as "90m" or "2h".'
|
|
1373
1374
|
},
|
|
1375
|
+
"rateLimit.every": {
|
|
1376
|
+
schema: Type.String({ pattern: "^\\d+\\s*[smh]$" }),
|
|
1377
|
+
fixtures: {
|
|
1378
|
+
valid: "5m",
|
|
1379
|
+
invalid: "5 minutes",
|
|
1380
|
+
absent: void 0,
|
|
1381
|
+
unresolved: { expression: "every" },
|
|
1382
|
+
edition1: "5m"
|
|
1383
|
+
},
|
|
1384
|
+
referenceType: "string",
|
|
1385
|
+
required: false,
|
|
1386
|
+
resolution: "static-required",
|
|
1387
|
+
issueCode: "play_authoring_binding_invalid",
|
|
1388
|
+
description: "Start at most one run per window, such as 30s, 5m, or 1h (10s to 24h).",
|
|
1389
|
+
errorMessage: 'rateLimit.every must be a static duration from "10s" to "24h", such as "5m".'
|
|
1390
|
+
},
|
|
1374
1391
|
"runtime.size": {
|
|
1375
1392
|
schema: Type.Literal("standard"),
|
|
1376
1393
|
fixtures: {
|
|
@@ -1712,6 +1729,7 @@ var PLAY_AUTHORING_CLOUD_TYPE_DECLARATIONS = [
|
|
|
1712
1729
|
` inline?: ${cloudReferenceType("inline")};`,
|
|
1713
1730
|
` billing?: { maxCreditsPerRun?: ${cloudReferenceType("billing.maxCreditsPerRun")} };`,
|
|
1714
1731
|
` runtime?: { timeout?: ${cloudReferenceType("runtime.timeout")}; size?: ${cloudReferenceType("runtime.size")} };`,
|
|
1732
|
+
` rateLimit?: { every: ${cloudReferenceType("rateLimit.every")} };`,
|
|
1715
1733
|
` webhook?: { hmac?: { algorithm?: ${cloudReferenceType("bindings.webhook.hmac.algorithm")}; header?: ${cloudReferenceType("bindings.webhook.hmac.header")}; signaturePrefix?: ${cloudReferenceType("bindings.webhook.hmac.signaturePrefix")}; secretEnv: ${cloudReferenceType("bindings.webhook.hmac.secretEnv")} }; auth?: { type: ${cloudReferenceType("bindings.webhook.auth.type")}; headerFamily: ${cloudReferenceType("bindings.webhook.auth.headerFamily")}; signingSecrets: readonly ${cloudReferenceType("bindings.webhook.auth.signingSecrets[]")}[]; toleranceSeconds?: ${cloudReferenceType("bindings.webhook.auth.toleranceSeconds")} } };`,
|
|
1716
1734
|
` cron?: { schedule: ${cloudReferenceType("bindings.cron.schedule")}; timezone?: ${cloudReferenceType("bindings.cron.timezone")}; input?: PlayCronInput<TInput> };`,
|
|
1717
1735
|
" sqlListeners?: readonly SqlListenerDeclaration[];",
|
|
@@ -1736,7 +1754,7 @@ var PLAY_AUTHORING_CLOUD_TYPE_DECLARATIONS = [
|
|
|
1736
1754
|
`export type PlayAsyncCallOptions = { description: ${cloudReferenceType("ctx.runPlayAsync.options.description")} };`,
|
|
1737
1755
|
"declare const PLAY_RUN_ID_BRAND: unique symbol;",
|
|
1738
1756
|
"export type PlayRunId = string & { readonly [PLAY_RUN_ID_BRAND]: 'PlayRunId' };",
|
|
1739
|
-
"export type AsyncPlayRunRef = Readonly<{ runId: PlayRunId }>;",
|
|
1757
|
+
"export type AsyncPlayRunRef = Readonly<{ runId: PlayRunId; rateLimited?: { latestRunId: string; nextAllowedAt: string; message: string } }>;",
|
|
1740
1758
|
`export type RuntimeStepOptions = { semanticKey?: ${cloudReferenceType("ctx.step.semanticKey")}; staleAfterSeconds?: ${cloudReferenceType("ctx.step.staleAfterSeconds")} };`,
|
|
1741
1759
|
`export type FetchOptions = { staleAfterSeconds?: ${cloudReferenceType("ctx.fetch.staleAfterSeconds")}; transient?: boolean };`,
|
|
1742
1760
|
"export type CallFreshnessMetadata = { requestedStaleAfterSeconds: number | null; effectiveStaleAfterSeconds: number | null; source: 'executed' | 'operation_recovery' | 'reusable_result' | 'live_observation'; resultAgeMs: number; completedAt: number; operationReceiptKey?: string; unavailableReason?: string };",
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
seedToolListScript
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-K5USD25Z.mjs";
|
|
4
4
|
import {
|
|
5
5
|
addDescribeOptions
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-PVEEGJFN.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-U5RGCQWJ.mjs";
|
|
18
18
|
import {
|
|
19
19
|
printCommandEnvelope
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-OYHCMKZM.mjs";
|
|
21
21
|
|
|
22
22
|
// src/cli/commands/describe.ts
|
|
23
23
|
import { writeFileSync } from "fs";
|