deepline 0.3.492 → 0.3.494
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 +2 -2
- package/dist/bundling-sources/sdk/src/types.ts +11 -4
- 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/tool-result.ts +15 -0
- package/dist/bundling-sources/shared_libs/play-runtime/work-receipt-state-machine.ts +358 -0
- package/dist/bundling-sources/shared_libs/plays/field-catalog.ts +101 -3
- package/dist/cli/{auth-4I6QY5WX.mjs → auth-6X5YXMFN.mjs} +5 -5
- package/dist/cli/auth-RWLCLMDY.js +43 -0
- package/dist/cli/{billing-2H4GOJZY.js → billing-5F5PZB77.js} +80 -80
- package/dist/cli/{billing-4F6L4JSI.mjs → billing-IN74SDSC.mjs} +7 -7
- package/dist/cli/{chunk-3RGWTKK3.mjs → chunk-2GEYN3H4.mjs} +89 -3
- package/dist/cli/{chunk-JJAHWKJ2.js → chunk-3KVFOKPR.js} +73 -59
- package/dist/cli/{chunk-NBL6JMIY.js → chunk-4A5WXQJK.js} +17 -17
- package/dist/cli/{chunk-YOCEY4EI.mjs → chunk-4RWH4LRQ.mjs} +5 -5
- package/dist/cli/{chunk-OGNIB64W.js → chunk-4ZKZS43N.js} +23 -15
- package/dist/cli/{chunk-TKLDKIJU.mjs → chunk-5JPKRDFC.mjs} +7 -5
- package/dist/cli/{chunk-3TISK5RQ.js → chunk-5WYH2LAP.js} +6 -6
- package/dist/cli/{chunk-MQ2LQOAM.mjs → chunk-65NMOP4T.mjs} +23 -9
- package/dist/cli/{chunk-O65HDVA7.mjs → chunk-6DMLWM7L.mjs} +5 -5
- package/dist/cli/{chunk-OTUT3XTX.mjs → chunk-6XZR2642.mjs} +8 -7
- package/dist/cli/{chunk-Q3CCCTRQ.js → chunk-7B7A36XZ.js} +14 -14
- package/dist/cli/{chunk-O3K22ZC7.js → chunk-AARXOBVD.js} +35 -11
- package/dist/cli/{chunk-DVGCPOEA.mjs → chunk-BLHQRETG.mjs} +187 -187
- package/dist/cli/{chunk-NPZBE64X.js → chunk-BLMB4N63.js} +89 -3
- package/dist/cli/{chunk-OTDX4A4W.js → chunk-BNI653WN.js} +21 -21
- package/dist/cli/{chunk-E47VAVAR.js → chunk-BU5Y7HOD.js} +5 -5
- package/dist/cli/{chunk-CGDUFVNE.mjs → chunk-C5R3UH5V.mjs} +29 -2
- package/dist/cli/{chunk-HFEJ7JJT.js → chunk-CAWOSHEC.js} +26 -26
- package/dist/cli/{chunk-TVUE4CPW.js → chunk-CK5MA6S6.js} +32 -32
- package/dist/cli/{chunk-Y7QCMOGZ.mjs → chunk-DKKAJ3U2.mjs} +6 -6
- package/dist/cli/{chunk-ONONSV2Q.mjs → chunk-DVQHG6AM.mjs} +1 -0
- package/dist/cli/{chunk-3BRDP4UP.mjs → chunk-EG3OSUBO.mjs} +1 -1
- package/dist/cli/{chunk-ZCKUNXXR.mjs → chunk-FAT6CUZK.mjs} +1 -1
- package/dist/cli/{chunk-YNWET57Z.js → chunk-GBICEYUA.js} +13 -13
- package/dist/cli/{chunk-42Z6VC2Q.js → chunk-GDNQXLBM.js} +2 -2
- package/dist/cli/{chunk-SE23YSBK.js → chunk-GLDBMKTV.js} +3 -3
- package/dist/cli/{chunk-OKHBAAJG.mjs → chunk-GNSGDIA4.mjs} +2 -2
- package/dist/cli/{chunk-W4FEX5ZF.js → chunk-GSCCDGGT.js} +261 -261
- package/dist/cli/{chunk-A7ZMG2QZ.mjs → chunk-H46X7YDU.mjs} +35 -11
- package/dist/cli/{chunk-3IBKEOL4.js → chunk-HINVMRGQ.js} +4 -4
- package/dist/cli/{chunk-HHTVRICE.js → chunk-I42EOZKQ.js} +44 -17
- package/dist/cli/{chunk-MPITIXW4.mjs → chunk-IPWYDANJ.mjs} +13 -5
- package/dist/cli/{chunk-YVOYZPMY.mjs → chunk-IZJSX3SZ.mjs} +2 -2
- package/dist/cli/{chunk-FFOJRD53.mjs → chunk-J2HOVZOE.mjs} +3 -3
- package/dist/cli/{chunk-EFFHRXKB.js → chunk-J3UHNUWI.js} +2 -2
- package/dist/cli/{chunk-4IP5MLWU.js → chunk-JO5FFSR7.js} +6 -1
- package/dist/cli/{chunk-PIC6M4X3.mjs → chunk-KR2XEI5T.mjs} +1 -1
- package/dist/cli/{chunk-FTXIJTV2.mjs → chunk-KSHAFYYG.mjs} +2 -2
- package/dist/cli/{chunk-6YO4OJPM.mjs → chunk-KVCQL6SP.mjs} +99 -24
- package/dist/cli/{chunk-RC366IJS.mjs → chunk-L2P2XRPO.mjs} +38 -6
- package/dist/cli/{chunk-R5MP3CIY.mjs → chunk-L4QPBQUX.mjs} +3 -3
- package/dist/cli/{chunk-4RB74KJX.js → chunk-L6KA4ENU.js} +47 -15
- package/dist/cli/{chunk-MJFVF5AW.mjs → chunk-L6L57RSG.mjs} +2 -2
- package/dist/cli/{chunk-F6EQWY4E.mjs → chunk-MWZNMWR2.mjs} +2 -2
- package/dist/cli/{chunk-LCCFGSV7.mjs → chunk-ODWTFVE4.mjs} +2 -2
- package/dist/cli/{chunk-AUQQVDAB.js → chunk-PKV5CD3W.js} +1 -0
- package/dist/cli/{chunk-UUH4GQRL.mjs → chunk-QOEI42IU.mjs} +2 -2
- package/dist/cli/{chunk-JHBRJDUC.js → chunk-QSRWBOPV.js} +11 -10
- package/dist/cli/{chunk-4OLXMJ2L.js → chunk-RLX5ZFNX.js} +8 -6
- package/dist/cli/{chunk-EANFUHRM.mjs → chunk-RPFNIMUO.mjs} +1 -1
- package/dist/cli/{chunk-DJOLMS2A.js → chunk-S3XQH7DW.js} +2 -2
- package/dist/cli/{chunk-DEJIN4DF.mjs → chunk-SAW3FBCA.mjs} +5 -0
- package/dist/cli/{chunk-GDSZWTJK.mjs → chunk-TLQXN4ZZ.mjs} +12 -12
- package/dist/cli/{chunk-O2FB42N2.js → chunk-USWLB4KV.js} +234 -234
- package/dist/cli/{chunk-BDUFZSUL.js → chunk-VMPM2FKT.js} +8 -8
- package/dist/cli/{chunk-4GJIJHRQ.mjs → chunk-WCZBIE5L.mjs} +1 -1
- package/dist/cli/{chunk-NF7NUKWF.js → chunk-WP45PUPW.js} +132 -57
- package/dist/cli/{chunk-FPLN7PHP.js → chunk-X6HIIHQO.js} +5 -5
- package/dist/cli/{chunk-B2JE3HD6.js → chunk-Y4GRL533.js} +3 -3
- package/dist/cli/{chunk-ZDTPSVGF.js → chunk-ZZD245Z2.js} +10 -10
- package/dist/cli/command-docs.js +2 -2
- package/dist/cli/command-docs.mjs +1 -1
- package/dist/cli/{csv-JGJNDRSA.js → csv-QD7JJGSP.js} +13 -13
- package/dist/cli/{csv-VGXGV7YM.mjs → csv-UBW4ID5D.mjs} +4 -4
- package/dist/cli/{db-W52WJ6E5.js → db-AARR3WYD.js} +28 -28
- package/dist/cli/{db-OYG27ZBM.mjs → db-QFDXKIVD.mjs} +7 -7
- package/dist/cli/describe-OBVIAC2H.mjs +50 -0
- package/dist/cli/describe-RYJ6HDYD.js +50 -0
- package/dist/cli/describe-core.d.mts +5 -11
- package/dist/cli/describe-core.d.ts +5 -11
- package/dist/cli/describe-core.js +5 -5
- package/dist/cli/describe-core.mjs +4 -4
- package/dist/cli/{executions-EVE4KUGL.mjs → executions-IZYUDYTZ.mjs} +7 -7
- package/dist/cli/{executions-LAJHZGPY.js → executions-KXY7KMZY.js} +9 -9
- package/dist/cli/{feedback-ZABCN7RT.js → feedback-3334HBPD.js} +8 -8
- package/dist/cli/{feedback-75QB7KVG.mjs → feedback-IVCVBERN.mjs} +4 -4
- 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-4VLYFHNU.js +25 -0
- package/dist/cli/{git-QIFEYQGY.mjs → git-JHNVET5A.mjs} +5 -5
- package/dist/cli/index.js +143 -143
- package/dist/cli/index.mjs +43 -43
- package/dist/cli/{legacy-noops-2TBIAMCM.js → legacy-noops-DBA32JCV.js} +8 -8
- package/dist/cli/{legacy-noops-PNTWBBGY.mjs → legacy-noops-WGVBUOCC.mjs} +5 -5
- package/dist/cli/{monitors-UKBOEGBS.js → monitors-GHWZ5AZS.js} +169 -129
- package/dist/cli/{monitors-LOHUYJEI.mjs → monitors-ZGANC7JY.mjs} +49 -9
- package/dist/cli/{org-JRUKUOUF.mjs → org-CUS42N2T.mjs} +7 -7
- package/dist/cli/{org-E7A6QLBW.js → org-S7JWP264.js} +73 -73
- package/dist/cli/{pages-K76HA473.mjs → pages-IH56T6L6.mjs} +7 -7
- package/dist/cli/{pages-EUDFFLLD.js → pages-QXRZDEJW.js} +18 -18
- package/dist/cli/{play-UWHNUJRA.js → play-4C5PYS62.js} +661 -566
- package/dist/cli/{play-DG2N66SV.mjs → play-Z65ZFOQH.mjs} +147 -52
- package/dist/cli/{providers-RUTTPUZD.mjs → providers-FSZSJX4Z.mjs} +7 -7
- package/dist/cli/{providers-DZX6TTC6.js → providers-XYQGYF3O.js} +10 -10
- package/dist/cli/{quickstart-RGZZN2YE.mjs → quickstart-DHWVE32I.mjs} +5 -5
- package/dist/cli/{quickstart-U4NMD7KX.js → quickstart-ZA25RJT3.js} +13 -13
- package/dist/cli/{run-5UNF4FHG.js → run-5MP6LEHM.js} +45 -44
- package/dist/cli/{run-MOJWQYFQ.mjs → run-WRPPEPLG.mjs} +30 -29
- package/dist/cli/search-4SQFVNTB.js +32 -0
- package/dist/cli/{search-5B3ZDU7H.mjs → search-A6NVJPKX.mjs} +8 -8
- package/dist/cli/{search-output-QS4IWWHA.mjs → search-output-PAOUMVXY.mjs} +7 -4
- package/dist/cli/{search-output-VQWJS3FN.js → search-output-YA6TXWGO.js} +9 -6
- package/dist/cli/{secrets-S3PJMEAC.js → secrets-AZYOGH3I.js} +16 -16
- package/dist/cli/{secrets-V5XVDBIS.mjs → secrets-ZGF7JOBI.mjs} +7 -7
- package/dist/cli/{sessions-Y5QMEZ3D.js → sessions-GCIN5VXT.js} +6 -6
- package/dist/cli/{sessions-5V3X24XI.mjs → sessions-RNEAXZPV.mjs} +5 -5
- package/dist/cli/{settings-3U6RRO5F.js → settings-LMEZNLBB.js} +80 -80
- package/dist/cli/{settings-LHZYY5PT.mjs → settings-NO5KXQJF.mjs} +13 -13
- package/dist/cli/{setup-AJLWXYAN.mjs → setup-GCYB4IFS.mjs} +13 -13
- package/dist/cli/{setup-MLLIGO2S.js → setup-XKTZPYYH.js} +57 -57
- package/dist/cli/{skills-5O2MUWKK.mjs → skills-TY4HHIKH.mjs} +10 -10
- package/dist/cli/skills-V4APQA2I.js +36 -0
- package/dist/cli/tools-HKQLQ7HT.js +57 -0
- package/dist/cli/{tools-PWNMI5CD.mjs → tools-RDTHHYJ3.mjs} +21 -21
- package/dist/cli/{update-SXT4QW7S.mjs → update-BRLLTTCS.mjs} +10 -10
- package/dist/cli/update-Z4MUAHWM.js +34 -0
- package/dist/cli/{workflow-KPRM6ARO.mjs → workflow-F72EVZWM.mjs} +8 -8
- package/dist/cli/{workflow-3WTF5IYT.js → workflow-YHA4WE3K.js} +18 -18
- package/dist/{client-Cb1ej1Vr.d.ts → client-97yTcdLl.d.ts} +1 -1
- package/dist/{client-vWpbLNCB.d.mts → client-CFo9qalW.d.mts} +1 -1
- package/dist/{client-core-BmVs6SP0.d.ts → client-core-BRZrY13B.d.ts} +15 -8
- package/dist/{client-core-CoBTvsXG.d.mts → client-core-Dl6xgfLq.d.mts} +15 -8
- package/dist/{compiler-manifest-BFTwq1HI.d.mts → compiler-manifest-CPEF48NM.d.mts} +91 -0
- package/dist/{compiler-manifest-BFTwq1HI.d.ts → compiler-manifest-CPEF48NM.d.ts} +91 -0
- package/dist/{errors-c3pMsylw.d.ts → errors-B-PJXveg.d.ts} +1 -1
- package/dist/{errors-w31ybrQM.d.mts → errors-BWbPzqwo.d.mts} +1 -1
- package/dist/{index-DvNtxucX.d.mts → index-BJ8AA1F9.d.mts} +1 -1
- package/dist/{index-CQ-15-QL.d.ts → index-CvVxPpE8.d.ts} +1 -1
- package/dist/index.d.mts +7 -7
- package/dist/index.d.ts +7 -7
- package/dist/index.js +27 -19
- package/dist/index.mjs +16 -8
- package/dist/install-integrity.json +123 -122
- package/dist/plays/bundle-play-file.d.mts +3 -3
- package/dist/plays/bundle-play-file.d.ts +3 -3
- 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 +2 -2
- package/dist/release.d.ts +2 -2
- 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-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
|
@@ -1,54 +1,54 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { newObj[key] = obj[key]; } } } newObj.default = obj; return newObj; } } function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunk7B7A36XZjs = require('./chunk-7B7A36XZ.js');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
var
|
|
9
|
-
require('./chunk-
|
|
8
|
+
var _chunkL6KA4ENUjs = require('./chunk-L6KA4ENU.js');
|
|
9
|
+
require('./chunk-GSCCDGGT.js');
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
|
|
14
|
-
var
|
|
15
|
-
require('./chunk-
|
|
14
|
+
var _chunk4ZKZS43Njs = require('./chunk-4ZKZS43N.js');
|
|
15
|
+
require('./chunk-QSRWBOPV.js');
|
|
16
16
|
require('./chunk-D3BCSAN7.js');
|
|
17
17
|
|
|
18
18
|
|
|
19
|
-
var
|
|
20
|
-
require('./chunk-
|
|
21
|
-
require('./chunk-
|
|
19
|
+
var _chunkI42EOZKQjs = require('./chunk-I42EOZKQ.js');
|
|
20
|
+
require('./chunk-GBICEYUA.js');
|
|
21
|
+
require('./chunk-JO5FFSR7.js');
|
|
22
22
|
require('./chunk-AID3OYVJ.js');
|
|
23
23
|
require('./chunk-XK5DMLZE.js');
|
|
24
24
|
require('./chunk-VLEVVDWG.js');
|
|
25
25
|
require('./chunk-J33TSWO5.js');
|
|
26
26
|
require('./chunk-HGFFYVXN.js');
|
|
27
|
-
require('./chunk-
|
|
28
|
-
require('./chunk-
|
|
29
|
-
require('./chunk-
|
|
27
|
+
require('./chunk-BU5Y7HOD.js');
|
|
28
|
+
require('./chunk-BLMB4N63.js');
|
|
29
|
+
require('./chunk-CK5MA6S6.js');
|
|
30
30
|
require('./chunk-E4CABWXL.js');
|
|
31
|
-
require('./chunk-
|
|
31
|
+
require('./chunk-PKV5CD3W.js');
|
|
32
32
|
require('./chunk-NMU3VR5U.js');
|
|
33
33
|
require('./chunk-XDVT3GOM.js');
|
|
34
|
-
require('./chunk-
|
|
35
|
-
require('./chunk-
|
|
36
|
-
require('./chunk-
|
|
37
|
-
require('./chunk-
|
|
38
|
-
require('./chunk-
|
|
39
|
-
require('./chunk-
|
|
34
|
+
require('./chunk-BNI653WN.js');
|
|
35
|
+
require('./chunk-J3UHNUWI.js');
|
|
36
|
+
require('./chunk-4A5WXQJK.js');
|
|
37
|
+
require('./chunk-GDNQXLBM.js');
|
|
38
|
+
require('./chunk-WP45PUPW.js');
|
|
39
|
+
require('./chunk-USWLB4KV.js');
|
|
40
40
|
|
|
41
41
|
|
|
42
|
-
var
|
|
43
|
-
require('./chunk-
|
|
44
|
-
require('./chunk-
|
|
45
|
-
require('./chunk-
|
|
42
|
+
var _chunkGLDBMKTVjs = require('./chunk-GLDBMKTV.js');
|
|
43
|
+
require('./chunk-ZZD245Z2.js');
|
|
44
|
+
require('./chunk-Y4GRL533.js');
|
|
45
|
+
require('./chunk-HINVMRGQ.js');
|
|
46
46
|
require('./chunk-ALJJRZNJ.js');
|
|
47
47
|
require('./chunk-XNYIZMNQ.js');
|
|
48
48
|
require('./chunk-DIAWYWT5.js');
|
|
49
|
-
require('./chunk-
|
|
49
|
+
require('./chunk-S3XQH7DW.js');
|
|
50
50
|
require('./chunk-OG64RBAC.js');
|
|
51
|
-
require('./chunk-
|
|
51
|
+
require('./chunk-RLX5ZFNX.js');
|
|
52
52
|
require('./chunk-COGTRVWW.js');
|
|
53
53
|
|
|
54
54
|
// src/cli/commands/run.ts
|
|
@@ -82,7 +82,7 @@ function readInput(options) {
|
|
|
82
82
|
return input;
|
|
83
83
|
}
|
|
84
84
|
function refuse(message, output) {
|
|
85
|
-
|
|
85
|
+
_chunk4ZKZS43Njs.writeExecutionOutput.call(void 0,
|
|
86
86
|
{ id: null, status: "failed", error: { message }, ran: false },
|
|
87
87
|
output
|
|
88
88
|
);
|
|
@@ -98,7 +98,7 @@ async function runAnything(name, options) {
|
|
|
98
98
|
logsOut: options.logsOut,
|
|
99
99
|
fields: _optionalChain([options, 'access', _7 => _7.fields, 'optionalAccess', _8 => _8.split, 'call', _9 => _9(","), 'access', _10 => _10.map, 'call', _11 => _11((path) => path.trim()), 'access', _12 => _12.filter, 'call', _13 => _13(Boolean)])
|
|
100
100
|
};
|
|
101
|
-
if (!
|
|
101
|
+
if (!_chunk4ZKZS43Njs.preflightExecutionOutput.call(void 0, output)) return 2;
|
|
102
102
|
let input;
|
|
103
103
|
let timeoutMs;
|
|
104
104
|
try {
|
|
@@ -116,7 +116,7 @@ async function runAnything(name, options) {
|
|
|
116
116
|
throw new Error("--max-credits takes a number of credits above 0.");
|
|
117
117
|
}
|
|
118
118
|
if (options.timeout !== void 0 && options.timeout !== "0") {
|
|
119
|
-
const { parseToolExecuteTimeout } = await Promise.resolve().then(() => _interopRequireWildcard(require("./tools-
|
|
119
|
+
const { parseToolExecuteTimeout } = await Promise.resolve().then(() => _interopRequireWildcard(require("./tools-HKQLQ7HT.js")));
|
|
120
120
|
timeoutMs = parseToolExecuteTimeout(options.timeout);
|
|
121
121
|
}
|
|
122
122
|
} catch (error) {
|
|
@@ -137,7 +137,7 @@ async function runAnything(name, options) {
|
|
|
137
137
|
if (name !== void 0) {
|
|
138
138
|
return refuse("Use a name or -e, not both.", output);
|
|
139
139
|
}
|
|
140
|
-
const { writeInlinePlay } = await Promise.resolve().then(() => _interopRequireWildcard(require("./play-
|
|
140
|
+
const { writeInlinePlay } = await Promise.resolve().then(() => _interopRequireWildcard(require("./play-4C5PYS62.js")));
|
|
141
141
|
let file;
|
|
142
142
|
try {
|
|
143
143
|
file = writeInlinePlay(options.eval);
|
|
@@ -160,23 +160,23 @@ async function runAnything(name, options) {
|
|
|
160
160
|
output
|
|
161
161
|
);
|
|
162
162
|
}
|
|
163
|
-
if (
|
|
163
|
+
if (_chunk7B7A36XZjs.looksLikeFilePath.call(void 0, name)) {
|
|
164
164
|
output.label = `${name} (play file)`;
|
|
165
165
|
return runPlay(name, play);
|
|
166
166
|
}
|
|
167
167
|
let { base, revision } = splitRevision(name);
|
|
168
|
-
let found = await
|
|
168
|
+
let found = await _chunkL6KA4ENUjs.findNamed.call(void 0, base, {});
|
|
169
169
|
if (!found.chosen && revision) {
|
|
170
|
-
found = await
|
|
170
|
+
found = await _chunkL6KA4ENUjs.findNamed.call(void 0, name, {});
|
|
171
171
|
if (found.chosen)
|
|
172
172
|
({ base, revision } = { base: name, revision: void 0 });
|
|
173
173
|
}
|
|
174
174
|
const { chosen, shadowed } = found;
|
|
175
|
-
if (!chosen) return refuse(
|
|
175
|
+
if (!chosen) return refuse(_chunkL6KA4ENUjs.nothingNamed.call(void 0, base), output);
|
|
176
176
|
const { described } = chosen;
|
|
177
177
|
if (described.kind === "custom_play" && shadowed) {
|
|
178
178
|
console.error(
|
|
179
|
-
`Running your workspace play "${base}". It has the same name as a Deepline ${shadowed.described.kind.replace("_", " ")}; run that one with: deepline run ${
|
|
179
|
+
`Running your workspace play "${base}". It has the same name as a Deepline ${shadowed.described.kind.replace("_", " ")}; run that one with: deepline run ${_chunkI42EOZKQjs.DEEPLINE_NAMESPACE}${base}`
|
|
180
180
|
);
|
|
181
181
|
}
|
|
182
182
|
const { runner } = described;
|
|
@@ -197,7 +197,7 @@ async function runAnything(name, options) {
|
|
|
197
197
|
if (runner.via === "play") {
|
|
198
198
|
return runPlay(runner.reference, { ...play, revision });
|
|
199
199
|
}
|
|
200
|
-
const { executeToolForReceipt } = await Promise.resolve().then(() => _interopRequireWildcard(require("./tools-
|
|
200
|
+
const { executeToolForReceipt } = await Promise.resolve().then(() => _interopRequireWildcard(require("./tools-HKQLQ7HT.js")));
|
|
201
201
|
return executeToolForReceipt({
|
|
202
202
|
toolId: runner.toolId,
|
|
203
203
|
params: input,
|
|
@@ -211,7 +211,7 @@ function dryRun(described, input, output) {
|
|
|
211
211
|
const missing = described.inputs.filter((field) => field.required && !(field.name in input)).map((field) => field.name);
|
|
212
212
|
const known = new Set(described.inputs.map((field) => field.name));
|
|
213
213
|
const unknown = known.size ? Object.keys(input).filter((key) => !known.has(key)) : [];
|
|
214
|
-
|
|
214
|
+
_chunk4ZKZS43Njs.writeExecutionOutput.call(void 0,
|
|
215
215
|
{
|
|
216
216
|
id: null,
|
|
217
217
|
status: "dry_run",
|
|
@@ -228,11 +228,11 @@ function dryRun(described, input, output) {
|
|
|
228
228
|
return missing.length ? 2 : 0;
|
|
229
229
|
}
|
|
230
230
|
async function runPlay(reference, play) {
|
|
231
|
-
const { handlePlayRun, writePlayRunReceipt } = await Promise.resolve().then(() => _interopRequireWildcard(require("./play-
|
|
231
|
+
const { handlePlayRun, writePlayRunReceipt } = await Promise.resolve().then(() => _interopRequireWildcard(require("./play-4C5PYS62.js")));
|
|
232
232
|
const { output, options, revision } = play;
|
|
233
233
|
if (options.dryRun) {
|
|
234
234
|
return handlePlayRun(
|
|
235
|
-
|
|
235
|
+
_chunk7B7A36XZjs.resolvePlayRunCliOptions.call(void 0, reference, {
|
|
236
236
|
input: JSON.stringify(play.input),
|
|
237
237
|
dryRun: true,
|
|
238
238
|
json: output.receiptJson === true
|
|
@@ -241,12 +241,12 @@ async function runPlay(reference, play) {
|
|
|
241
241
|
}
|
|
242
242
|
let id = null;
|
|
243
243
|
let written = false;
|
|
244
|
-
const progress =
|
|
245
|
-
if (!play.noWait) progress.setLogWriter(
|
|
244
|
+
const progress = _chunkGLDBMKTVjs.createCliProgress.call(void 0, true);
|
|
245
|
+
if (!play.noWait) progress.setLogWriter(_chunk4ZKZS43Njs.openLogDestination.call(void 0, output));
|
|
246
246
|
progress.setQuiet(process.stderr.isTTY !== true);
|
|
247
247
|
try {
|
|
248
248
|
const code = await handlePlayRun(
|
|
249
|
-
|
|
249
|
+
_chunk7B7A36XZjs.resolvePlayRunCliOptions.call(void 0, reference, {
|
|
250
250
|
input: JSON.stringify(play.input),
|
|
251
251
|
// The receipt is the only thing on stdout.
|
|
252
252
|
json: true,
|
|
@@ -277,12 +277,13 @@ async function runPlay(reference, play) {
|
|
|
277
277
|
output
|
|
278
278
|
);
|
|
279
279
|
},
|
|
280
|
-
writeStarted: (runId, status) => {
|
|
280
|
+
writeStarted: (runId, status, page) => {
|
|
281
281
|
written = true;
|
|
282
|
-
|
|
282
|
+
_chunk4ZKZS43Njs.writeExecutionOutput.call(void 0,
|
|
283
283
|
{
|
|
284
284
|
id: runId,
|
|
285
285
|
status,
|
|
286
|
+
...page ? { page } : {},
|
|
286
287
|
next: {
|
|
287
288
|
status: `deepline runs get ${runId}`,
|
|
288
289
|
export: `deepline runs export ${runId}`
|
|
@@ -294,7 +295,7 @@ async function runPlay(reference, play) {
|
|
|
294
295
|
}
|
|
295
296
|
);
|
|
296
297
|
if (!written) {
|
|
297
|
-
|
|
298
|
+
_chunk4ZKZS43Njs.writeExecutionOutput.call(void 0,
|
|
298
299
|
{
|
|
299
300
|
id,
|
|
300
301
|
status: "failed",
|
|
@@ -306,7 +307,7 @@ async function runPlay(reference, play) {
|
|
|
306
307
|
return code;
|
|
307
308
|
} catch (error) {
|
|
308
309
|
if (written) throw error;
|
|
309
|
-
|
|
310
|
+
_chunk4ZKZS43Njs.writeExecutionOutput.call(void 0,
|
|
310
311
|
{
|
|
311
312
|
id,
|
|
312
313
|
status: "failed",
|
|
@@ -1,54 +1,54 @@
|
|
|
1
1
|
import {
|
|
2
2
|
looksLikeFilePath,
|
|
3
3
|
resolvePlayRunCliOptions
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-L4QPBQUX.mjs";
|
|
5
5
|
import {
|
|
6
6
|
findNamed,
|
|
7
7
|
nothingNamed
|
|
8
|
-
} from "./chunk-
|
|
9
|
-
import "./chunk-
|
|
8
|
+
} from "./chunk-L2P2XRPO.mjs";
|
|
9
|
+
import "./chunk-TLQXN4ZZ.mjs";
|
|
10
10
|
import {
|
|
11
11
|
openLogDestination,
|
|
12
12
|
preflightExecutionOutput,
|
|
13
13
|
writeExecutionOutput
|
|
14
|
-
} from "./chunk-
|
|
15
|
-
import "./chunk-
|
|
14
|
+
} from "./chunk-IPWYDANJ.mjs";
|
|
15
|
+
import "./chunk-6XZR2642.mjs";
|
|
16
16
|
import "./chunk-5AEDYVB6.mjs";
|
|
17
17
|
import {
|
|
18
18
|
DEEPLINE_NAMESPACE
|
|
19
|
-
} from "./chunk-
|
|
20
|
-
import "./chunk-
|
|
21
|
-
import "./chunk-
|
|
19
|
+
} from "./chunk-C5R3UH5V.mjs";
|
|
20
|
+
import "./chunk-KSHAFYYG.mjs";
|
|
21
|
+
import "./chunk-SAW3FBCA.mjs";
|
|
22
22
|
import "./chunk-OVDNJAJN.mjs";
|
|
23
23
|
import "./chunk-XRDXNAAY.mjs";
|
|
24
24
|
import "./chunk-F6QV42MC.mjs";
|
|
25
25
|
import "./chunk-FR2ILQ4G.mjs";
|
|
26
26
|
import "./chunk-FIVKWNMT.mjs";
|
|
27
|
-
import "./chunk-
|
|
28
|
-
import "./chunk-
|
|
29
|
-
import "./chunk-
|
|
27
|
+
import "./chunk-GNSGDIA4.mjs";
|
|
28
|
+
import "./chunk-2GEYN3H4.mjs";
|
|
29
|
+
import "./chunk-J2HOVZOE.mjs";
|
|
30
30
|
import "./chunk-L2VKAASU.mjs";
|
|
31
|
-
import "./chunk-
|
|
31
|
+
import "./chunk-DVQHG6AM.mjs";
|
|
32
32
|
import "./chunk-S3A4IXBQ.mjs";
|
|
33
33
|
import "./chunk-UBKA33KY.mjs";
|
|
34
|
-
import "./chunk-
|
|
35
|
-
import "./chunk-
|
|
36
|
-
import "./chunk-
|
|
37
|
-
import "./chunk-
|
|
38
|
-
import "./chunk-
|
|
39
|
-
import "./chunk-
|
|
34
|
+
import "./chunk-4RWH4LRQ.mjs";
|
|
35
|
+
import "./chunk-WCZBIE5L.mjs";
|
|
36
|
+
import "./chunk-DKKAJ3U2.mjs";
|
|
37
|
+
import "./chunk-EG3OSUBO.mjs";
|
|
38
|
+
import "./chunk-KVCQL6SP.mjs";
|
|
39
|
+
import "./chunk-BLHQRETG.mjs";
|
|
40
40
|
import {
|
|
41
41
|
createCliProgress
|
|
42
|
-
} from "./chunk-
|
|
43
|
-
import "./chunk-
|
|
44
|
-
import "./chunk-
|
|
45
|
-
import "./chunk-
|
|
42
|
+
} from "./chunk-RPFNIMUO.mjs";
|
|
43
|
+
import "./chunk-6DMLWM7L.mjs";
|
|
44
|
+
import "./chunk-KR2XEI5T.mjs";
|
|
45
|
+
import "./chunk-FAT6CUZK.mjs";
|
|
46
46
|
import "./chunk-4QF2K7TM.mjs";
|
|
47
47
|
import "./chunk-DLIRSHV6.mjs";
|
|
48
48
|
import "./chunk-HBL4PM5Q.mjs";
|
|
49
|
-
import "./chunk-
|
|
49
|
+
import "./chunk-QOEI42IU.mjs";
|
|
50
50
|
import "./chunk-WZYKRD7T.mjs";
|
|
51
|
-
import "./chunk-
|
|
51
|
+
import "./chunk-5JPKRDFC.mjs";
|
|
52
52
|
import "./chunk-KRD6H754.mjs";
|
|
53
53
|
|
|
54
54
|
// src/cli/commands/run.ts
|
|
@@ -116,7 +116,7 @@ async function runAnything(name, options) {
|
|
|
116
116
|
throw new Error("--max-credits takes a number of credits above 0.");
|
|
117
117
|
}
|
|
118
118
|
if (options.timeout !== void 0 && options.timeout !== "0") {
|
|
119
|
-
const { parseToolExecuteTimeout } = await import("./tools-
|
|
119
|
+
const { parseToolExecuteTimeout } = await import("./tools-RDTHHYJ3.mjs");
|
|
120
120
|
timeoutMs = parseToolExecuteTimeout(options.timeout);
|
|
121
121
|
}
|
|
122
122
|
} catch (error) {
|
|
@@ -137,7 +137,7 @@ async function runAnything(name, options) {
|
|
|
137
137
|
if (name !== void 0) {
|
|
138
138
|
return refuse("Use a name or -e, not both.", output);
|
|
139
139
|
}
|
|
140
|
-
const { writeInlinePlay } = await import("./play-
|
|
140
|
+
const { writeInlinePlay } = await import("./play-Z65ZFOQH.mjs");
|
|
141
141
|
let file;
|
|
142
142
|
try {
|
|
143
143
|
file = writeInlinePlay(options.eval);
|
|
@@ -197,7 +197,7 @@ async function runAnything(name, options) {
|
|
|
197
197
|
if (runner.via === "play") {
|
|
198
198
|
return runPlay(runner.reference, { ...play, revision });
|
|
199
199
|
}
|
|
200
|
-
const { executeToolForReceipt } = await import("./tools-
|
|
200
|
+
const { executeToolForReceipt } = await import("./tools-RDTHHYJ3.mjs");
|
|
201
201
|
return executeToolForReceipt({
|
|
202
202
|
toolId: runner.toolId,
|
|
203
203
|
params: input,
|
|
@@ -228,7 +228,7 @@ function dryRun(described, input, output) {
|
|
|
228
228
|
return missing.length ? 2 : 0;
|
|
229
229
|
}
|
|
230
230
|
async function runPlay(reference, play) {
|
|
231
|
-
const { handlePlayRun, writePlayRunReceipt } = await import("./play-
|
|
231
|
+
const { handlePlayRun, writePlayRunReceipt } = await import("./play-Z65ZFOQH.mjs");
|
|
232
232
|
const { output, options, revision } = play;
|
|
233
233
|
if (options.dryRun) {
|
|
234
234
|
return handlePlayRun(
|
|
@@ -277,12 +277,13 @@ async function runPlay(reference, play) {
|
|
|
277
277
|
output
|
|
278
278
|
);
|
|
279
279
|
},
|
|
280
|
-
writeStarted: (runId, status) => {
|
|
280
|
+
writeStarted: (runId, status, page) => {
|
|
281
281
|
written = true;
|
|
282
282
|
writeExecutionOutput(
|
|
283
283
|
{
|
|
284
284
|
id: runId,
|
|
285
285
|
status,
|
|
286
|
+
...page ? { page } : {},
|
|
286
287
|
next: {
|
|
287
288
|
status: `deepline runs get ${runId}`,
|
|
288
289
|
export: `deepline runs export ${runId}`
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
var _chunkQSRWBOPVjs = require('./chunk-QSRWBOPV.js');
|
|
9
|
+
require('./chunk-D3BCSAN7.js');
|
|
10
|
+
require('./chunk-BU5Y7HOD.js');
|
|
11
|
+
require('./chunk-CK5MA6S6.js');
|
|
12
|
+
require('./chunk-E4CABWXL.js');
|
|
13
|
+
require('./chunk-PKV5CD3W.js');
|
|
14
|
+
require('./chunk-NMU3VR5U.js');
|
|
15
|
+
require('./chunk-XDVT3GOM.js');
|
|
16
|
+
require('./chunk-ZZD245Z2.js');
|
|
17
|
+
require('./chunk-Y4GRL533.js');
|
|
18
|
+
require('./chunk-HINVMRGQ.js');
|
|
19
|
+
require('./chunk-ALJJRZNJ.js');
|
|
20
|
+
require('./chunk-XNYIZMNQ.js');
|
|
21
|
+
require('./chunk-DIAWYWT5.js');
|
|
22
|
+
require('./chunk-S3XQH7DW.js');
|
|
23
|
+
require('./chunk-OG64RBAC.js');
|
|
24
|
+
require('./chunk-COGTRVWW.js');
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
exports.SEARCH_TYPES = _chunkQSRWBOPVjs.SEARCH_TYPES; exports.appendCsv = _chunkQSRWBOPVjs.appendCsv; exports.parseTypes = _chunkQSRWBOPVjs.parseTypes; exports.pointAtDescribe = _chunkQSRWBOPVjs.pointAtDescribe; exports.registerDeprecatedSearchCommand = _chunkQSRWBOPVjs.registerDeprecatedSearchCommand; exports.registerSearchCommand = _chunkQSRWBOPVjs.registerSearchCommand;
|
|
@@ -5,21 +5,21 @@ import {
|
|
|
5
5
|
pointAtDescribe,
|
|
6
6
|
registerDeprecatedSearchCommand,
|
|
7
7
|
registerSearchCommand
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-6XZR2642.mjs";
|
|
9
9
|
import "./chunk-5AEDYVB6.mjs";
|
|
10
|
-
import "./chunk-
|
|
11
|
-
import "./chunk-
|
|
10
|
+
import "./chunk-GNSGDIA4.mjs";
|
|
11
|
+
import "./chunk-J2HOVZOE.mjs";
|
|
12
12
|
import "./chunk-L2VKAASU.mjs";
|
|
13
|
-
import "./chunk-
|
|
13
|
+
import "./chunk-DVQHG6AM.mjs";
|
|
14
14
|
import "./chunk-S3A4IXBQ.mjs";
|
|
15
15
|
import "./chunk-UBKA33KY.mjs";
|
|
16
|
-
import "./chunk-
|
|
17
|
-
import "./chunk-
|
|
18
|
-
import "./chunk-
|
|
16
|
+
import "./chunk-6DMLWM7L.mjs";
|
|
17
|
+
import "./chunk-KR2XEI5T.mjs";
|
|
18
|
+
import "./chunk-FAT6CUZK.mjs";
|
|
19
19
|
import "./chunk-4QF2K7TM.mjs";
|
|
20
20
|
import "./chunk-DLIRSHV6.mjs";
|
|
21
21
|
import "./chunk-HBL4PM5Q.mjs";
|
|
22
|
-
import "./chunk-
|
|
22
|
+
import "./chunk-QOEI42IU.mjs";
|
|
23
23
|
import "./chunk-WZYKRD7T.mjs";
|
|
24
24
|
import "./chunk-KRD6H754.mjs";
|
|
25
25
|
export {
|
|
@@ -6,13 +6,13 @@ import {
|
|
|
6
6
|
} from "./chunk-XRDXNAAY.mjs";
|
|
7
7
|
import {
|
|
8
8
|
renderCommandEnvelopeText
|
|
9
|
-
} from "./chunk-
|
|
10
|
-
import "./chunk-
|
|
11
|
-
import "./chunk-
|
|
9
|
+
} from "./chunk-6DMLWM7L.mjs";
|
|
10
|
+
import "./chunk-KR2XEI5T.mjs";
|
|
11
|
+
import "./chunk-FAT6CUZK.mjs";
|
|
12
12
|
import "./chunk-4QF2K7TM.mjs";
|
|
13
13
|
import "./chunk-DLIRSHV6.mjs";
|
|
14
14
|
import "./chunk-HBL4PM5Q.mjs";
|
|
15
|
-
import "./chunk-
|
|
15
|
+
import "./chunk-QOEI42IU.mjs";
|
|
16
16
|
import "./chunk-WZYKRD7T.mjs";
|
|
17
17
|
import {
|
|
18
18
|
__commonJS,
|
|
@@ -5840,6 +5840,8 @@ function searchRow(item, summaryWidth) {
|
|
|
5840
5840
|
// Production share of errored or rate-limited calls; absent when too few
|
|
5841
5841
|
// calls or orgs used the tool to say.
|
|
5842
5842
|
failureRate: failureRateDisplay(item.failureRate),
|
|
5843
|
+
// Production share of calls that returned a result; same floor.
|
|
5844
|
+
hitRate: failureRateDisplay(item.hitRate),
|
|
5843
5845
|
// Production p95 latency of successful calls; absent for the same reason.
|
|
5844
5846
|
p95: latencyDisplay(item.latencyP95Ms),
|
|
5845
5847
|
summary: clipSummary(item.description ?? "", summaryWidth),
|
|
@@ -5850,6 +5852,7 @@ var SEARCH_KIND_COLUMN_ENABLED = false;
|
|
|
5850
5852
|
var OPTIONAL_COLUMNS = [
|
|
5851
5853
|
{ header: "RATE LIMIT", key: "rateLimit" },
|
|
5852
5854
|
{ header: "FAILURES", key: "failureRate" },
|
|
5855
|
+
{ header: "HIT RATE", key: "hitRate" },
|
|
5853
5856
|
{ header: "P95", key: "p95" }
|
|
5854
5857
|
];
|
|
5855
5858
|
function renderSearchResults(result, summaryWidth = DEFAULT_SUMMARY_WIDTH) {
|
|
@@ -6,13 +6,13 @@ var _chunkD3BCSAN7js = require('./chunk-D3BCSAN7.js');
|
|
|
6
6
|
var _chunkXK5DMLZEjs = require('./chunk-XK5DMLZE.js');
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
var
|
|
10
|
-
require('./chunk-
|
|
11
|
-
require('./chunk-
|
|
9
|
+
var _chunkZZD245Z2js = require('./chunk-ZZD245Z2.js');
|
|
10
|
+
require('./chunk-Y4GRL533.js');
|
|
11
|
+
require('./chunk-HINVMRGQ.js');
|
|
12
12
|
require('./chunk-ALJJRZNJ.js');
|
|
13
13
|
require('./chunk-XNYIZMNQ.js');
|
|
14
14
|
require('./chunk-DIAWYWT5.js');
|
|
15
|
-
require('./chunk-
|
|
15
|
+
require('./chunk-S3XQH7DW.js');
|
|
16
16
|
require('./chunk-OG64RBAC.js');
|
|
17
17
|
|
|
18
18
|
|
|
@@ -5840,6 +5840,8 @@ function searchRow(item, summaryWidth) {
|
|
|
5840
5840
|
// Production share of errored or rate-limited calls; absent when too few
|
|
5841
5841
|
// calls or orgs used the tool to say.
|
|
5842
5842
|
failureRate: failureRateDisplay(item.failureRate),
|
|
5843
|
+
// Production share of calls that returned a result; same floor.
|
|
5844
|
+
hitRate: failureRateDisplay(item.hitRate),
|
|
5843
5845
|
// Production p95 latency of successful calls; absent for the same reason.
|
|
5844
5846
|
p95: latencyDisplay(item.latencyP95Ms),
|
|
5845
5847
|
summary: clipSummary(_nullishCoalesce(item.description, () => ( "")), summaryWidth),
|
|
@@ -5850,11 +5852,12 @@ var SEARCH_KIND_COLUMN_ENABLED = false;
|
|
|
5850
5852
|
var OPTIONAL_COLUMNS = [
|
|
5851
5853
|
{ header: "RATE LIMIT", key: "rateLimit" },
|
|
5852
5854
|
{ header: "FAILURES", key: "failureRate" },
|
|
5855
|
+
{ header: "HIT RATE", key: "hitRate" },
|
|
5853
5856
|
{ header: "P95", key: "p95" }
|
|
5854
5857
|
];
|
|
5855
5858
|
function renderSearchResults(result, summaryWidth = _chunkD3BCSAN7js.DEFAULT_SUMMARY_WIDTH) {
|
|
5856
5859
|
if (result.results.length === 0)
|
|
5857
|
-
return
|
|
5860
|
+
return _chunkZZD245Z2js.renderCommandEnvelopeText.call(void 0, result);
|
|
5858
5861
|
const rows = result.results.map((item) => searchRow(item, summaryWidth));
|
|
5859
5862
|
const kinds = new Set(rows.map((row) => row.kind));
|
|
5860
5863
|
const onlyTools = kinds.size === 1 && kinds.has("tool");
|
|
@@ -5879,7 +5882,7 @@ function renderSearchResults(result, summaryWidth = _chunkD3BCSAN7js.DEFAULT_SUM
|
|
|
5879
5882
|
actions: _optionalChain([render, 'optionalAccess', _16 => _16.actions])
|
|
5880
5883
|
};
|
|
5881
5884
|
const followUps = _optionalChain([remaining, 'access', _17 => _17.sections, 'optionalAccess', _18 => _18.length]) || _optionalChain([remaining, 'access', _19 => _19.actions, 'optionalAccess', _20 => _20.length]) ? `
|
|
5882
|
-
${
|
|
5885
|
+
${_chunkZZD245Z2js.renderCommandEnvelopeText.call(void 0, { render: remaining })}` : "";
|
|
5883
5886
|
const notes = rows.flatMap(
|
|
5884
5887
|
(row) => row.notes.map((note) => ` ${row.id}: ${note}`)
|
|
5885
5888
|
);
|
|
@@ -1,21 +1,21 @@
|
|
|
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
|
|
4
|
-
require('./chunk-
|
|
3
|
+
var _chunkBU5Y7HODjs = require('./chunk-BU5Y7HOD.js');
|
|
4
|
+
require('./chunk-CK5MA6S6.js');
|
|
5
5
|
require('./chunk-E4CABWXL.js');
|
|
6
|
-
require('./chunk-
|
|
6
|
+
require('./chunk-PKV5CD3W.js');
|
|
7
7
|
require('./chunk-NMU3VR5U.js');
|
|
8
8
|
require('./chunk-XDVT3GOM.js');
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
|
|
12
|
-
var
|
|
13
|
-
require('./chunk-
|
|
14
|
-
require('./chunk-
|
|
12
|
+
var _chunkZZD245Z2js = require('./chunk-ZZD245Z2.js');
|
|
13
|
+
require('./chunk-Y4GRL533.js');
|
|
14
|
+
require('./chunk-HINVMRGQ.js');
|
|
15
15
|
require('./chunk-ALJJRZNJ.js');
|
|
16
16
|
require('./chunk-XNYIZMNQ.js');
|
|
17
17
|
require('./chunk-DIAWYWT5.js');
|
|
18
|
-
require('./chunk-
|
|
18
|
+
require('./chunk-S3XQH7DW.js');
|
|
19
19
|
require('./chunk-OG64RBAC.js');
|
|
20
20
|
require('./chunk-COGTRVWW.js');
|
|
21
21
|
|
|
@@ -207,9 +207,9 @@ function preventShellHistoryLeak(forbidden) {
|
|
|
207
207
|
}
|
|
208
208
|
}
|
|
209
209
|
async function handleList(options) {
|
|
210
|
-
const client = new (0,
|
|
210
|
+
const client = new (0, _chunkBU5Y7HODjs.DeeplineClient)();
|
|
211
211
|
const secrets = await client.listSecrets();
|
|
212
|
-
|
|
212
|
+
_chunkZZD245Z2js.printCommandEnvelope.call(void 0,
|
|
213
213
|
{
|
|
214
214
|
secrets,
|
|
215
215
|
count: secrets.length,
|
|
@@ -227,14 +227,14 @@ async function handleList(options) {
|
|
|
227
227
|
}
|
|
228
228
|
async function handleCheck(nameInput, options) {
|
|
229
229
|
const name = normalizeSecretName(nameInput);
|
|
230
|
-
const client = new (0,
|
|
230
|
+
const client = new (0, _chunkBU5Y7HODjs.DeeplineClient)();
|
|
231
231
|
const playName = options.play === void 0 ? void 0 : normalizePlaySelector(options.play);
|
|
232
232
|
const check = playName !== void 0 ? await client.inspectSecret(name, { playName }) : null;
|
|
233
233
|
const secret = check ? check.secret : await client.checkSecret(name);
|
|
234
234
|
const ok = check ? check.ok : Boolean(secret);
|
|
235
235
|
const quotedPlay = `'${(_nullishCoalesce(options.play, () => ( "PLAY"))).replace(/'/g, `'"'"'`)}'`;
|
|
236
236
|
const scopeHint = check ? _optionalChain([secret, 'optionalAccess', _3 => _3.scope]) === "play" ? check.reason === "disabled" ? `The Play-scoped secret is disabled and no active org fallback is available. Restore it with: deepline secrets set ${name} --scope play --play ${quotedPlay}` : `The active Play-scoped secret takes precedence over the org secret.${ok ? "" : ` Restore it with: deepline secrets set ${name} --scope play --play ${quotedPlay}`}` : `No Play override.${ok ? " The org secret is available." : ` Set or rotate the org secret with: deepline secrets set ${name}`}` : `Metadata only. Verify effective scope and active version with: deepline secrets check ${name} --play <play-name>`;
|
|
237
|
-
|
|
237
|
+
_chunkZZD245Z2js.printCommandEnvelope.call(void 0,
|
|
238
238
|
{
|
|
239
239
|
ok,
|
|
240
240
|
name,
|
|
@@ -262,7 +262,7 @@ async function handleSet(nameInput, forbidden, options) {
|
|
|
262
262
|
const name = normalizeSecretName(nameInput);
|
|
263
263
|
const { scope, playName } = resolveSecretWriteScope(options);
|
|
264
264
|
const value = await readSecretValueFromOptions(options);
|
|
265
|
-
const { http } =
|
|
265
|
+
const { http } = _chunkZZD245Z2js.getAuthedHttpClient.call(void 0, );
|
|
266
266
|
const response = await http.post(
|
|
267
267
|
"/api/v2/secrets",
|
|
268
268
|
{
|
|
@@ -274,7 +274,7 @@ async function handleSet(nameInput, forbidden, options) {
|
|
|
274
274
|
}
|
|
275
275
|
);
|
|
276
276
|
const secret = response.secret;
|
|
277
|
-
|
|
277
|
+
_chunkZZD245Z2js.printCommandEnvelope.call(void 0,
|
|
278
278
|
{
|
|
279
279
|
ok: true,
|
|
280
280
|
secret,
|
|
@@ -302,7 +302,7 @@ async function handleNote(secretId, noteInput, options) {
|
|
|
302
302
|
}
|
|
303
303
|
const note = options.clear ? "" : noteInput;
|
|
304
304
|
if (options.dryRun) {
|
|
305
|
-
|
|
305
|
+
_chunkZZD245Z2js.printCommandEnvelope.call(void 0,
|
|
306
306
|
{
|
|
307
307
|
ok: true,
|
|
308
308
|
dryRun: true,
|
|
@@ -323,9 +323,9 @@ async function handleNote(secretId, noteInput, options) {
|
|
|
323
323
|
);
|
|
324
324
|
return;
|
|
325
325
|
}
|
|
326
|
-
const client = new (0,
|
|
326
|
+
const client = new (0, _chunkBU5Y7HODjs.DeeplineClient)();
|
|
327
327
|
const secret = await client.updateSecretNote(secretId, note);
|
|
328
|
-
|
|
328
|
+
_chunkZZD245Z2js.printCommandEnvelope.call(void 0,
|
|
329
329
|
{
|
|
330
330
|
ok: true,
|
|
331
331
|
secret,
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
import {
|
|
2
2
|
DeeplineClient
|
|
3
|
-
} from "./chunk-
|
|
4
|
-
import "./chunk-
|
|
3
|
+
} from "./chunk-GNSGDIA4.mjs";
|
|
4
|
+
import "./chunk-J2HOVZOE.mjs";
|
|
5
5
|
import "./chunk-L2VKAASU.mjs";
|
|
6
|
-
import "./chunk-
|
|
6
|
+
import "./chunk-DVQHG6AM.mjs";
|
|
7
7
|
import "./chunk-S3A4IXBQ.mjs";
|
|
8
8
|
import "./chunk-UBKA33KY.mjs";
|
|
9
9
|
import {
|
|
10
10
|
getAuthedHttpClient,
|
|
11
11
|
printCommandEnvelope
|
|
12
|
-
} from "./chunk-
|
|
13
|
-
import "./chunk-
|
|
14
|
-
import "./chunk-
|
|
12
|
+
} from "./chunk-6DMLWM7L.mjs";
|
|
13
|
+
import "./chunk-KR2XEI5T.mjs";
|
|
14
|
+
import "./chunk-FAT6CUZK.mjs";
|
|
15
15
|
import "./chunk-4QF2K7TM.mjs";
|
|
16
16
|
import "./chunk-DLIRSHV6.mjs";
|
|
17
17
|
import "./chunk-HBL4PM5Q.mjs";
|
|
18
|
-
import "./chunk-
|
|
18
|
+
import "./chunk-QOEI42IU.mjs";
|
|
19
19
|
import "./chunk-WZYKRD7T.mjs";
|
|
20
20
|
import "./chunk-KRD6H754.mjs";
|
|
21
21
|
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
5
|
-
require('./chunk-
|
|
6
|
-
require('./chunk-
|
|
7
|
-
require('./chunk-
|
|
4
|
+
var _chunkVMPM2FKTjs = require('./chunk-VMPM2FKT.js');
|
|
5
|
+
require('./chunk-ZZD245Z2.js');
|
|
6
|
+
require('./chunk-Y4GRL533.js');
|
|
7
|
+
require('./chunk-HINVMRGQ.js');
|
|
8
8
|
require('./chunk-ALJJRZNJ.js');
|
|
9
9
|
require('./chunk-XNYIZMNQ.js');
|
|
10
10
|
require('./chunk-DIAWYWT5.js');
|
|
11
|
-
require('./chunk-
|
|
11
|
+
require('./chunk-S3XQH7DW.js');
|
|
12
12
|
require('./chunk-OG64RBAC.js');
|
|
13
13
|
require('./chunk-COGTRVWW.js');
|
|
14
14
|
|
|
15
15
|
|
|
16
16
|
|
|
17
|
-
exports.registerSessionSendRenderCommands =
|
|
17
|
+
exports.registerSessionSendRenderCommands = _chunkVMPM2FKTjs.registerSessionSendRenderCommands; exports.registerSessionsCommands = _chunkVMPM2FKTjs.registerSessionsCommands;
|