deepline 0.3.573 → 0.3.575
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/config.ts +19 -0
- package/dist/bundling-sources/sdk/src/play.ts +7 -4
- package/dist/bundling-sources/sdk/src/release.ts +1 -1
- package/dist/bundling-sources/sdk/src/types.ts +8 -0
- package/dist/bundling-sources/shared_libs/observability/scheduled-jobs.json +0 -18
- package/dist/bundling-sources/shared_libs/play-runtime/app-runtime-api.ts +8 -0
- package/dist/bundling-sources/shared_libs/play-runtime/builtin-pacing.ts +18 -0
- package/dist/bundling-sources/shared_libs/play-runtime/context.ts +4 -1
- package/dist/bundling-sources/shared_libs/play-runtime/deployment/commands/roll-receipt-gateway.ts +1 -1
- package/dist/bundling-sources/shared_libs/play-runtime/deployment/vercel-fly-rollback-alignment.ts +0 -14
- package/dist/bundling-sources/shared_libs/play-runtime/governor/governor.ts +4 -0
- package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/backends/daytona-launch-transport.ts +43 -7
- package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/backends/daytona-payload-transport.ts +56 -20
- package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/backends/modal.ts +45 -7
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/postgres.ts +6 -66
- package/dist/cli/agents-BCLO3KQJ.js +996 -0
- package/dist/cli/agents-ULGDKUTM.mjs +996 -0
- package/dist/cli/{auth-XX3HLRQ2.mjs → auth-4WCL7A6W.mjs} +5 -5
- package/dist/cli/auth-DXUHEL5I.js +44 -0
- package/dist/cli/{billing-QASEPOBL.mjs → billing-7JQ6EUQU.mjs} +10 -10
- package/dist/cli/{billing-6TY2HMC6.js → billing-BF5LVXOM.js} +106 -106
- package/dist/cli/{chunk-NUH56LTU.mjs → chunk-2T7XOKVL.mjs} +5 -5
- package/dist/cli/{chunk-KQZBN7TB.js → chunk-2UM3I2MY.js} +1 -1
- package/dist/cli/{chunk-MQOJ7SP4.mjs → chunk-3PVKXUSJ.mjs} +9 -1
- package/dist/cli/{chunk-6JTJP3WO.mjs → chunk-56N3XAT6.mjs} +5 -5
- package/dist/cli/{chunk-T2QI52F2.mjs → chunk-5D7OJY4W.mjs} +1 -1
- package/dist/cli/{chunk-JAW75RAO.js → chunk-5H6254MJ.js} +27 -20
- package/dist/cli/{chunk-N3VZTISZ.js → chunk-5VSHQG5E.js} +8 -8
- package/dist/cli/{chunk-KART6FR6.js → chunk-636GD4IR.js} +2 -2
- package/dist/cli/{chunk-XWO4J34B.js → chunk-6IKLITVH.js} +6 -6
- package/dist/cli/{chunk-Z6KWSBOX.js → chunk-737Y7QGT.js} +41 -41
- package/dist/cli/{chunk-XVFRNNL2.js → chunk-7DLAJ6JJ.js} +53 -53
- package/dist/cli/{chunk-GWPXWKQR.js → chunk-AO56MZ7D.js} +15 -7
- package/dist/cli/{chunk-DIZI5YGW.js → chunk-AS5XGOZY.js} +2 -2
- package/dist/cli/{chunk-ESKNCTFI.mjs → chunk-BM536WWR.mjs} +1 -1
- package/dist/cli/{chunk-LPYUGPTF.mjs → chunk-BONMEBWZ.mjs} +4 -4
- package/dist/cli/{chunk-4LWBURSS.mjs → chunk-BQUAE6LQ.mjs} +1 -1
- package/dist/cli/{chunk-QDQOXHXQ.mjs → chunk-CVY4MBXH.mjs} +5 -5
- package/dist/cli/{chunk-N6KF6X3D.js → chunk-DMPGJCNZ.js} +177 -6
- package/dist/cli/{chunk-ENHQBPR5.mjs → chunk-DWUESXDD.mjs} +4 -3
- package/dist/cli/{chunk-5NEJOCOK.mjs → chunk-E4RYSSXX.mjs} +2 -2
- package/dist/cli/{chunk-IZK2BLBW.js → chunk-EV3OPDHF.js} +20 -20
- package/dist/cli/{chunk-YKHXWO7N.js → chunk-EZIXKNKM.js} +3 -3
- package/dist/cli/{chunk-64MOX3SN.mjs → chunk-FDCU3VAJ.mjs} +174 -3
- package/dist/cli/{chunk-X3BGF6UU.js → chunk-FXXERR52.js} +10 -10
- package/dist/cli/{chunk-BM4GE67C.mjs → chunk-FYKHAT2F.mjs} +81 -7
- package/dist/cli/{chunk-UNTBQY64.js → chunk-G2H6SQQY.js} +11 -11
- package/dist/cli/{chunk-WQEGXOUT.js → chunk-G4WPDCXA.js} +48 -48
- package/dist/cli/{chunk-OG3YWDYA.js → chunk-GB4IZ5TV.js} +13 -13
- package/dist/cli/{chunk-N5VL6BHF.mjs → chunk-GQZFZG6R.mjs} +2 -2
- package/dist/cli/{chunk-JCVAVHDP.mjs → chunk-H3CG72RZ.mjs} +21 -16
- package/dist/cli/{chunk-FXLVMWWA.js → chunk-H6JMRLAZ.js} +280 -275
- package/dist/cli/{chunk-UBTEDSIK.js → chunk-HEOM3FAC.js} +20 -20
- package/dist/cli/{chunk-CY3BUFMG.js → chunk-HO76C7AE.js} +2 -2
- package/dist/cli/{chunk-XAIXTB74.mjs → chunk-IAJ65IDZ.mjs} +4 -4
- package/dist/cli/{chunk-ENLJ67CZ.mjs → chunk-IBYMGR5Y.mjs} +1 -1
- package/dist/cli/{chunk-4K6UVILG.mjs → chunk-IOWLFWWG.mjs} +2 -2
- package/dist/cli/{chunk-NJTTRJ32.mjs → chunk-JGLCK2XF.mjs} +2 -2
- package/dist/cli/{chunk-DLWVJ66I.js → chunk-KNCNFL76.js} +4 -4
- package/dist/cli/{chunk-XLN4Z654.mjs → chunk-MN7JLH2T.mjs} +2 -2
- package/dist/cli/{chunk-IXCGWJJZ.mjs → chunk-MWLOBURN.mjs} +2 -2
- package/dist/cli/{chunk-6ASDTHEN.js → chunk-MXK4M7HP.js} +21 -17
- package/dist/cli/{chunk-C52RRBYB.mjs → chunk-NF722E6C.mjs} +1 -1
- package/dist/cli/{chunk-TNCJ2J76.js → chunk-PQYDO72W.js} +26 -26
- package/dist/cli/{chunk-PW3PADXI.mjs → chunk-QEDRUURT.mjs} +1 -1
- package/dist/cli/{chunk-QFDT35HF.mjs → chunk-QKP3WYSZ.mjs} +3 -3
- package/dist/cli/{chunk-M2UJWUWX.mjs → chunk-RHRRY2BX.mjs} +3 -3
- package/dist/cli/{chunk-HUJMFETO.mjs → chunk-RW3URFZK.mjs} +7 -3
- package/dist/cli/{chunk-TBLP7HDL.js → chunk-SKHUWQZE.js} +10 -9
- package/dist/cli/{chunk-WSXRJ2RZ.mjs → chunk-SYQTBHRX.mjs} +3 -3
- package/dist/cli/{chunk-ANSHNREL.mjs → chunk-TMFR2B45.mjs} +3 -3
- package/dist/cli/{chunk-5MCC4D25.mjs → chunk-TTBZ7QXX.mjs} +1 -1
- package/dist/cli/{chunk-ROSPYLDN.mjs → chunk-UQZP7XBQ.mjs} +17 -10
- package/dist/cli/{chunk-TJSKDOXN.js → chunk-V5XLENWK.js} +7 -7
- package/dist/cli/{chunk-DSE45YP4.mjs → chunk-X47J55ZJ.mjs} +2 -2
- package/dist/cli/{chunk-FUVVTHXE.js → chunk-XFV353R2.js} +23 -23
- package/dist/cli/{chunk-OPD6XUIG.js → chunk-YNAXKA23.js} +5 -5
- package/dist/cli/{chunk-LHPYCJNL.js → chunk-ZO65VJRJ.js} +87 -13
- package/dist/cli/{chunk-2USXCXPZ.js → chunk-ZQXJYO5P.js} +5 -5
- package/dist/cli/{chunk-UZLTBBAG.js → chunk-ZS6DT4LD.js} +15 -15
- package/dist/cli/{chunk-KQLIG4YR.js → chunk-ZYSJND73.js} +9 -9
- package/dist/cli/command-docs.js +3 -3
- package/dist/cli/command-docs.mjs +2 -2
- package/dist/cli/{concurrent-runs-help-IILHMHBX.mjs → concurrent-runs-help-HITK6EOO.mjs} +7 -7
- package/dist/cli/concurrent-runs-help-JLWY54WL.js +22 -0
- package/dist/cli/{csv-OSJQVDAS.js → csv-RS7XHQ4P.js} +13 -13
- package/dist/cli/{csv-VGYW2PQZ.mjs → csv-V2T23MXT.mjs} +4 -4
- package/dist/cli/{db-3IQYT3WD.mjs → db-OQ4RNTGE.mjs} +6 -6
- package/dist/cli/{db-2IMS6K2F.js → db-WFIVRPKY.js} +27 -27
- package/dist/cli/describe-33PBWO5O.js +50 -0
- package/dist/cli/{describe-IGJ4CHUC.mjs → describe-AXV2EEX3.mjs} +21 -21
- package/dist/cli/describe-core.d.mts +13 -2
- package/dist/cli/describe-core.d.ts +13 -2
- package/dist/cli/describe-core.js +4 -4
- package/dist/cli/describe-core.mjs +3 -3
- package/dist/cli/{executions-VOJN4NPF.js → executions-5H2RIWZ3.js} +8 -8
- package/dist/cli/{executions-6F3PLVCR.mjs → executions-THP5ZDBQ.mjs} +6 -6
- package/dist/cli/{feedback-BP5G27DT.mjs → feedback-2EJPILGE.mjs} +6 -6
- package/dist/cli/{feedback-5N7GKSMC.js → feedback-UOI6UEGA.js} +14 -14
- package/dist/cli/git-2OPYEPYW.js +26 -0
- package/dist/cli/{git-FHNCP7QA.mjs → git-DI3LJIAT.mjs} +5 -5
- package/dist/cli/index.js +152 -148
- package/dist/cli/index.mjs +51 -47
- package/dist/cli/{integrations-KKCEEWDU.mjs → integrations-DJYS5VRK.mjs} +7 -7
- package/dist/cli/{integrations-JZV55BZT.js → integrations-TYN2BSQ6.js} +29 -29
- package/dist/cli/{legacy-noops-OVOHF47E.js → legacy-noops-GXQHNLGJ.js} +9 -9
- package/dist/cli/{legacy-noops-YOPWDLRG.mjs → legacy-noops-Z457BB6O.mjs} +6 -6
- package/dist/cli/{mcp-SJAXFYTI.mjs → mcp-NAW3GFNN.mjs} +4 -4
- package/dist/cli/{mcp-F2XGBA6W.js → mcp-WMBOOTQL.js} +24 -24
- package/dist/cli/{monitors-PFH3FQLD.mjs → monitors-A7NYAXSJ.mjs} +7 -7
- package/dist/cli/{monitors-RQRNQRYB.js → monitors-OOQVE7XR.js} +100 -100
- package/dist/cli/{org-PZC6SUZD.mjs → org-7YCDUSZE.mjs} +6 -6
- package/dist/cli/{org-WPOEKMTG.js → org-D2AMIVBS.js} +121 -121
- package/dist/cli/{outcomes-EXOCNHOC.js → outcomes-2FKZDJSQ.js} +17 -15
- package/dist/cli/{outcomes-ZS7XD3KQ.mjs → outcomes-TNTKCUEO.mjs} +9 -7
- package/dist/cli/{play-UKSRFVIU.mjs → play-L6CVHSN4.mjs} +88 -33
- package/dist/cli/{play-JS2TEEE7.js → play-NWKHCHVZ.js} +393 -338
- package/dist/cli/{providers-U6IODPMJ.mjs → providers-22LO747B.mjs} +6 -6
- package/dist/cli/{providers-3U4MWBLU.js → providers-PZGOI5CN.js} +9 -9
- package/dist/cli/{quickstart-G5QN5CUE.mjs → quickstart-3ZRVKGMH.mjs} +4 -4
- package/dist/cli/{quickstart-SHBAEDX6.js → quickstart-LLWOC2GR.js} +6 -6
- package/dist/cli/{run-3ZOJ6V7C.mjs → run-D46W2GUA.mjs} +48 -27
- package/dist/cli/{run-SZRKNLUT.js → run-SNF23STR.js} +70 -49
- package/dist/cli/search-H57MZPLF.js +32 -0
- package/dist/cli/{search-2VX5WNMJ.mjs → search-XWVCICIX.mjs} +7 -7
- package/dist/cli/{search-output-WGDHYYHX.js → search-output-36GHD67U.js} +12 -9
- package/dist/cli/{search-output-U5N2O6IA.mjs → search-output-YM5QXFQQ.mjs} +9 -6
- package/dist/cli/{secrets-SQKP5ILO.mjs → secrets-7PTZEFRC.mjs} +6 -6
- package/dist/cli/{secrets-UITJOGVQ.js → secrets-UXCIHG5I.js} +15 -15
- package/dist/cli/{sessions-LSXO2OKX.mjs → sessions-DTXJKRP4.mjs} +6 -6
- package/dist/cli/sessions-JJZMQSH4.js +23 -0
- package/dist/cli/{settings-YGYRDPOK.mjs → settings-74B6UOS4.mjs} +12 -12
- package/dist/cli/{settings-VZI675JG.js → settings-EYSDZE37.js} +85 -85
- package/dist/cli/{setup-GXGXRWKN.mjs → setup-2QRZ36CH.mjs} +9 -9
- package/dist/cli/{setup-OJ33NOWK.js → setup-E7PVXBPL.js} +49 -49
- package/dist/cli/{skills-3VDYIFAX.mjs → skills-2WZ7N3UW.mjs} +7 -7
- package/dist/cli/skills-RIF2DCZI.js +37 -0
- package/dist/cli/tools-7VRQ4GSI.js +57 -0
- package/dist/cli/{tools-3TKEGDBP.mjs → tools-YK5SCUZD.mjs} +19 -19
- package/dist/cli/{update-K6A4QXTC.mjs → update-563YQK53.mjs} +9 -9
- package/dist/cli/update-CMZAIAES.js +37 -0
- package/dist/cli/{views-2PPIVWDK.mjs → views-ISNCRZUP.mjs} +6 -6
- package/dist/cli/{views-SGGO77XS.js → views-OLPS6TPG.js} +21 -21
- package/dist/cli/{workflow-JTG6QEFO.mjs → workflow-B3ZKU3OR.mjs} +7 -7
- package/dist/cli/{workflow-YSFOOTPB.js → workflow-CUSCTYMW.js} +17 -17
- package/dist/{client-DCnExziW.d.ts → client-BrdMPFCM.d.ts} +1 -1
- package/dist/{client-ClJlqkKt.d.mts → client-CF-bsrtI.d.mts} +1 -1
- package/dist/{client-core-DAOPQnGD.d.mts → client-core-DM1ZedOG.d.mts} +8 -0
- package/dist/{client-core-BKq5ZNAl.d.ts → client-core-rMoUWSYM.d.ts} +8 -0
- package/dist/index.d.mts +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/index.js +9 -9
- package/dist/index.mjs +6 -6
- package/dist/install-integrity.json +128 -126
- package/dist/plays/play-description.d.mts +1 -1
- package/dist/plays/play-description.d.ts +1 -1
- package/dist/plays/run-request.d.mts +1 -1
- package/dist/plays/run-request.d.ts +1 -1
- package/dist/release.d.mts +1 -1
- package/dist/release.d.ts +1 -1
- package/dist/release.js +2 -2
- package/dist/release.mjs +1 -1
- package/dist/server.d.mts +2 -2
- package/dist/server.d.ts +2 -2
- package/dist/server.js +5 -5
- package/dist/server.mjs +3 -3
- package/package.json +1 -1
- package/dist/cli/auth-DGR7ZQJL.js +0 -44
- package/dist/cli/concurrent-runs-help-HEIDXAM2.js +0 -22
- package/dist/cli/describe-LBU4I6SU.js +0 -50
- package/dist/cli/git-JUSPUUOH.js +0 -26
- package/dist/cli/search-TAFMLK4K.js +0 -32
- package/dist/cli/sessions-RA6FBIHJ.js +0 -23
- package/dist/cli/skills-J5QVWKLQ.js +0 -37
- package/dist/cli/tools-3PQXQGXL.js +0 -57
- package/dist/cli/update-CA3DZ75E.js +0 -37
- /package/dist/cli/{chunk-2RIKOPIM.mjs → chunk-HECXJBED.mjs} +0 -0
- /package/dist/cli/{chunk-H4ALLC2X.js → chunk-TJCENACZ.js} +0 -0
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
import {
|
|
2
2
|
DeeplineClient
|
|
3
|
-
} from "./chunk-
|
|
4
|
-
import "./chunk-
|
|
3
|
+
} from "./chunk-IOWLFWWG.mjs";
|
|
4
|
+
import "./chunk-QEDRUURT.mjs";
|
|
5
5
|
import "./chunk-FZHMNK6F.mjs";
|
|
6
6
|
import "./chunk-5TYLSS4Q.mjs";
|
|
7
7
|
import "./chunk-PSX3WHIH.mjs";
|
|
8
8
|
import {
|
|
9
9
|
printCommandEnvelope,
|
|
10
10
|
shouldEmitJson
|
|
11
|
-
} from "./chunk-
|
|
12
|
-
import "./chunk-
|
|
13
|
-
import "./chunk-
|
|
11
|
+
} from "./chunk-X47J55ZJ.mjs";
|
|
12
|
+
import "./chunk-3PVKXUSJ.mjs";
|
|
13
|
+
import "./chunk-IBYMGR5Y.mjs";
|
|
14
14
|
import "./chunk-ASB47RXJ.mjs";
|
|
15
15
|
import "./chunk-DLIRSHV6.mjs";
|
|
16
16
|
import "./chunk-Z3A2S3QM.mjs";
|
|
17
17
|
import "./chunk-2MGZAI54.mjs";
|
|
18
|
-
import "./chunk-
|
|
18
|
+
import "./chunk-BM536WWR.mjs";
|
|
19
19
|
import "./chunk-WZYKRD7T.mjs";
|
|
20
20
|
import "./chunk-KRD6H754.mjs";
|
|
21
21
|
|
|
@@ -1,29 +1,29 @@
|
|
|
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
|
|
4
|
-
require('./chunk-
|
|
3
|
+
var _chunkYNAXKA23js = require('./chunk-YNAXKA23.js');
|
|
4
|
+
require('./chunk-5VSHQG5E.js');
|
|
5
5
|
require('./chunk-4WAM6TLD.js');
|
|
6
6
|
require('./chunk-MJTVX4QK.js');
|
|
7
7
|
require('./chunk-PMH4GLMD.js');
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
|
|
11
|
-
var
|
|
12
|
-
require('./chunk-
|
|
13
|
-
require('./chunk-
|
|
11
|
+
var _chunkEV3OPDHFjs = require('./chunk-EV3OPDHF.js');
|
|
12
|
+
require('./chunk-AO56MZ7D.js');
|
|
13
|
+
require('./chunk-KNCNFL76.js');
|
|
14
14
|
require('./chunk-6VLFQZK6.js');
|
|
15
15
|
require('./chunk-XNYIZMNQ.js');
|
|
16
16
|
require('./chunk-LFQJW4S2.js');
|
|
17
17
|
require('./chunk-CFJFUVX2.js');
|
|
18
|
-
require('./chunk-
|
|
18
|
+
require('./chunk-2UM3I2MY.js');
|
|
19
19
|
require('./chunk-OG64RBAC.js');
|
|
20
20
|
require('./chunk-COGTRVWW.js');
|
|
21
21
|
|
|
22
22
|
// src/cli/commands/providers.ts
|
|
23
23
|
async function listProviders(options = {}) {
|
|
24
|
-
const client = new (0,
|
|
24
|
+
const client = new (0, _chunkYNAXKA23js.DeeplineClient)();
|
|
25
25
|
const changed = options.changed === true;
|
|
26
|
-
const emitJson = options.json === true ||
|
|
26
|
+
const emitJson = options.json === true || _chunkEV3OPDHFjs.shouldEmitJson.call(void 0, );
|
|
27
27
|
const providers = await client.listProviders({ changed });
|
|
28
28
|
const render = {
|
|
29
29
|
sections: [
|
|
@@ -43,7 +43,7 @@ async function listProviders(options = {}) {
|
|
|
43
43
|
}
|
|
44
44
|
]
|
|
45
45
|
};
|
|
46
|
-
|
|
46
|
+
_chunkEV3OPDHFjs.printCommandEnvelope.call(void 0,
|
|
47
47
|
{
|
|
48
48
|
providers,
|
|
49
49
|
count: providers.length,
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import {
|
|
2
2
|
printCommandEnvelope,
|
|
3
3
|
shouldEmitJson
|
|
4
|
-
} from "./chunk-
|
|
5
|
-
import "./chunk-
|
|
6
|
-
import "./chunk-
|
|
4
|
+
} from "./chunk-X47J55ZJ.mjs";
|
|
5
|
+
import "./chunk-3PVKXUSJ.mjs";
|
|
6
|
+
import "./chunk-IBYMGR5Y.mjs";
|
|
7
7
|
import "./chunk-ASB47RXJ.mjs";
|
|
8
8
|
import "./chunk-DLIRSHV6.mjs";
|
|
9
9
|
import "./chunk-Z3A2S3QM.mjs";
|
|
10
10
|
import "./chunk-2MGZAI54.mjs";
|
|
11
|
-
import "./chunk-
|
|
11
|
+
import "./chunk-BM536WWR.mjs";
|
|
12
12
|
import "./chunk-WZYKRD7T.mjs";
|
|
13
13
|
import {
|
|
14
14
|
DEEPLINE_GTM_SKILL,
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
5
|
-
require('./chunk-
|
|
6
|
-
require('./chunk-
|
|
4
|
+
var _chunkEV3OPDHFjs = require('./chunk-EV3OPDHF.js');
|
|
5
|
+
require('./chunk-AO56MZ7D.js');
|
|
6
|
+
require('./chunk-KNCNFL76.js');
|
|
7
7
|
require('./chunk-6VLFQZK6.js');
|
|
8
8
|
require('./chunk-XNYIZMNQ.js');
|
|
9
9
|
require('./chunk-LFQJW4S2.js');
|
|
10
10
|
require('./chunk-CFJFUVX2.js');
|
|
11
|
-
require('./chunk-
|
|
11
|
+
require('./chunk-2UM3I2MY.js');
|
|
12
12
|
require('./chunk-OG64RBAC.js');
|
|
13
13
|
|
|
14
14
|
|
|
@@ -18,12 +18,12 @@ require('./chunk-COGTRVWW.js');
|
|
|
18
18
|
|
|
19
19
|
// src/cli/commands/quickstart.ts
|
|
20
20
|
async function handleQuickstart(options) {
|
|
21
|
-
const jsonOutput =
|
|
21
|
+
const jsonOutput = _chunkEV3OPDHFjs.shouldEmitJson.call(void 0, options.json === true);
|
|
22
22
|
const gettingStarted = {
|
|
23
23
|
skill: _chunkRLX5ZFNXjs.DEEPLINE_GTM_SKILL,
|
|
24
24
|
examples: _chunkRLX5ZFNXjs.DEEPLINE_GTM_STARTER_PROMPTS
|
|
25
25
|
};
|
|
26
|
-
|
|
26
|
+
_chunkEV3OPDHFjs.printCommandEnvelope.call(void 0,
|
|
27
27
|
{
|
|
28
28
|
ok: true,
|
|
29
29
|
status: "deprecated",
|
|
@@ -1,57 +1,57 @@
|
|
|
1
1
|
import {
|
|
2
2
|
looksLikeFilePath,
|
|
3
3
|
resolvePlayRunCliOptions
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-JGLCK2XF.mjs";
|
|
5
5
|
import {
|
|
6
6
|
findNamed,
|
|
7
7
|
nothingNamed
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-UQZP7XBQ.mjs";
|
|
9
9
|
import {
|
|
10
10
|
jsonFileText
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-H3CG72RZ.mjs";
|
|
12
12
|
import {
|
|
13
13
|
ExecutionOutputError,
|
|
14
14
|
openLogDestination,
|
|
15
15
|
preflightExecutionOutput,
|
|
16
16
|
writeExecutionOutput
|
|
17
|
-
} from "./chunk-
|
|
18
|
-
import "./chunk-
|
|
19
|
-
import "./chunk-
|
|
17
|
+
} from "./chunk-E4RYSSXX.mjs";
|
|
18
|
+
import "./chunk-RHRRY2BX.mjs";
|
|
19
|
+
import "./chunk-IAJ65IDZ.mjs";
|
|
20
20
|
import "./chunk-5AEDYVB6.mjs";
|
|
21
21
|
import {
|
|
22
22
|
DEEPLINE_NAMESPACE
|
|
23
|
-
} from "./chunk-
|
|
24
|
-
import "./chunk-
|
|
25
|
-
import "./chunk-
|
|
23
|
+
} from "./chunk-RW3URFZK.mjs";
|
|
24
|
+
import "./chunk-DWUESXDD.mjs";
|
|
25
|
+
import "./chunk-FYKHAT2F.mjs";
|
|
26
26
|
import "./chunk-STXDSVQZ.mjs";
|
|
27
27
|
import "./chunk-MF7PCM6C.mjs";
|
|
28
28
|
import "./chunk-FR2ILQ4G.mjs";
|
|
29
29
|
import "./chunk-FIVKWNMT.mjs";
|
|
30
|
-
import "./chunk-
|
|
30
|
+
import "./chunk-IOWLFWWG.mjs";
|
|
31
31
|
import "./chunk-2GEYN3H4.mjs";
|
|
32
|
-
import "./chunk-
|
|
32
|
+
import "./chunk-QEDRUURT.mjs";
|
|
33
33
|
import "./chunk-FZHMNK6F.mjs";
|
|
34
34
|
import "./chunk-5TYLSS4Q.mjs";
|
|
35
35
|
import "./chunk-PSX3WHIH.mjs";
|
|
36
|
-
import "./chunk-
|
|
37
|
-
import "./chunk-
|
|
38
|
-
import "./chunk-
|
|
39
|
-
import "./chunk-
|
|
40
|
-
import "./chunk-
|
|
41
|
-
import "./chunk-
|
|
36
|
+
import "./chunk-CVY4MBXH.mjs";
|
|
37
|
+
import "./chunk-BQUAE6LQ.mjs";
|
|
38
|
+
import "./chunk-56N3XAT6.mjs";
|
|
39
|
+
import "./chunk-NF722E6C.mjs";
|
|
40
|
+
import "./chunk-BONMEBWZ.mjs";
|
|
41
|
+
import "./chunk-2T7XOKVL.mjs";
|
|
42
42
|
import {
|
|
43
43
|
createCliProgress
|
|
44
|
-
} from "./chunk-
|
|
44
|
+
} from "./chunk-TTBZ7QXX.mjs";
|
|
45
45
|
import {
|
|
46
46
|
errorToJsonPayload
|
|
47
|
-
} from "./chunk-
|
|
48
|
-
import "./chunk-
|
|
49
|
-
import "./chunk-
|
|
47
|
+
} from "./chunk-X47J55ZJ.mjs";
|
|
48
|
+
import "./chunk-3PVKXUSJ.mjs";
|
|
49
|
+
import "./chunk-IBYMGR5Y.mjs";
|
|
50
50
|
import "./chunk-ASB47RXJ.mjs";
|
|
51
51
|
import "./chunk-DLIRSHV6.mjs";
|
|
52
52
|
import "./chunk-Z3A2S3QM.mjs";
|
|
53
53
|
import "./chunk-2MGZAI54.mjs";
|
|
54
|
-
import "./chunk-
|
|
54
|
+
import "./chunk-BM536WWR.mjs";
|
|
55
55
|
import "./chunk-WZYKRD7T.mjs";
|
|
56
56
|
import "./chunk-5JPKRDFC.mjs";
|
|
57
57
|
import "./chunk-KRD6H754.mjs";
|
|
@@ -121,7 +121,7 @@ async function runAnything(name, options) {
|
|
|
121
121
|
throw new Error("--max-credits takes a number of credits above 0.");
|
|
122
122
|
}
|
|
123
123
|
if (options.timeout !== void 0 && options.timeout !== "0") {
|
|
124
|
-
const { parseToolExecuteTimeout } = await import("./tools-
|
|
124
|
+
const { parseToolExecuteTimeout } = await import("./tools-YK5SCUZD.mjs");
|
|
125
125
|
timeoutMs = parseToolExecuteTimeout(options.timeout);
|
|
126
126
|
}
|
|
127
127
|
} catch (error) {
|
|
@@ -142,7 +142,7 @@ async function runAnything(name, options) {
|
|
|
142
142
|
if (name !== void 0) {
|
|
143
143
|
return refuse("Use a name or -e, not both.", output);
|
|
144
144
|
}
|
|
145
|
-
const { writeInlinePlay } = await import("./play-
|
|
145
|
+
const { writeInlinePlay } = await import("./play-L6CVHSN4.mjs");
|
|
146
146
|
let file;
|
|
147
147
|
try {
|
|
148
148
|
file = writeInlinePlay(options.eval);
|
|
@@ -166,6 +166,12 @@ async function runAnything(name, options) {
|
|
|
166
166
|
);
|
|
167
167
|
}
|
|
168
168
|
if (looksLikeFilePath(name)) {
|
|
169
|
+
if (options.example !== void 0) {
|
|
170
|
+
return refuse(
|
|
171
|
+
"--example takes a named example from a published play; give a play file its input with --input.",
|
|
172
|
+
output
|
|
173
|
+
);
|
|
174
|
+
}
|
|
169
175
|
output.label = `${name} (play file)`;
|
|
170
176
|
return runPlay(name, play);
|
|
171
177
|
}
|
|
@@ -197,12 +203,24 @@ async function runAnything(name, options) {
|
|
|
197
203
|
output
|
|
198
204
|
);
|
|
199
205
|
}
|
|
206
|
+
if (options.example !== void 0) {
|
|
207
|
+
const examples = described.namedExamples ?? [];
|
|
208
|
+
const example = examples.find((item) => item.name === options.example);
|
|
209
|
+
if (!example) {
|
|
210
|
+
return refuse(
|
|
211
|
+
examples.length ? `${described.id} has no example named "${options.example}". Its examples: ${examples.map((item) => item.name).join(", ")}.` : `${described.id} declares no named examples.`,
|
|
212
|
+
output
|
|
213
|
+
);
|
|
214
|
+
}
|
|
215
|
+
input = { ...example.input, ...input };
|
|
216
|
+
play.input = input;
|
|
217
|
+
}
|
|
200
218
|
output.label = runner.via === "play" ? `${runner.reference}${revision ? `@${revision}` : ""} (play)` : `${runner.toolId} (tool)`;
|
|
201
219
|
if (options.dryRun) return dryRun(described, input, output);
|
|
202
220
|
if (runner.via === "play") {
|
|
203
221
|
return runPlay(runner.reference, { ...play, revision });
|
|
204
222
|
}
|
|
205
|
-
const { executeToolForReceipt } = await import("./tools-
|
|
223
|
+
const { executeToolForReceipt } = await import("./tools-YK5SCUZD.mjs");
|
|
206
224
|
return executeToolForReceipt({
|
|
207
225
|
toolId: runner.toolId,
|
|
208
226
|
params: input,
|
|
@@ -233,7 +251,7 @@ function dryRun(described, input, output) {
|
|
|
233
251
|
return missing.length ? 2 : 0;
|
|
234
252
|
}
|
|
235
253
|
async function runPlay(reference, play) {
|
|
236
|
-
const { handlePlayRun, writePlayRunReceipt } = await import("./play-
|
|
254
|
+
const { handlePlayRun, writePlayRunReceipt } = await import("./play-L6CVHSN4.mjs");
|
|
237
255
|
const { output, options, revision } = play;
|
|
238
256
|
if (options.dryRun) {
|
|
239
257
|
const dryRunOptions = resolvePlayRunCliOptions(reference, {
|
|
@@ -348,7 +366,10 @@ function registerRunCommand(program) {
|
|
|
348
366
|
program.command("run [name]").description("Run a tool, a play, a play file, or inline code.").option(
|
|
349
367
|
"-e, --eval <code>",
|
|
350
368
|
"Code to run as a play body, instead of a name"
|
|
351
|
-
).option("--input <json>", "Input as a JSON object").option("--input-file <path>", "Input from a JSON file; - reads stdin").option(
|
|
369
|
+
).option("--input <json>", "Input as a JSON object").option("--input-file <path>", "Input from a JSON file; - reads stdin").option(
|
|
370
|
+
"--example <name>",
|
|
371
|
+
"Start from a named example input the play declares"
|
|
372
|
+
).option("--json-out <path>", "Save the result as JSON to this new file").option(
|
|
352
373
|
"--csv-out <[list=]path>",
|
|
353
374
|
"Save rows as CSV to this new file; repeat for more lists",
|
|
354
375
|
(value, previous = []) => [...previous, value]
|
|
@@ -1,57 +1,57 @@
|
|
|
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 _chunkZYSJND73js = require('./chunk-ZYSJND73.js');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
var
|
|
8
|
+
var _chunk5H6254MJjs = require('./chunk-5H6254MJ.js');
|
|
9
9
|
|
|
10
10
|
|
|
11
|
-
var
|
|
11
|
+
var _chunkH6JMRLAZjs = require('./chunk-H6JMRLAZ.js');
|
|
12
12
|
|
|
13
13
|
|
|
14
14
|
|
|
15
15
|
|
|
16
16
|
|
|
17
|
-
var
|
|
18
|
-
require('./chunk-
|
|
19
|
-
require('./chunk-
|
|
17
|
+
var _chunkG2H6SQQYjs = require('./chunk-G2H6SQQY.js');
|
|
18
|
+
require('./chunk-ZS6DT4LD.js');
|
|
19
|
+
require('./chunk-FXXERR52.js');
|
|
20
20
|
require('./chunk-D3BCSAN7.js');
|
|
21
21
|
|
|
22
22
|
|
|
23
|
-
var
|
|
24
|
-
require('./chunk-
|
|
25
|
-
require('./chunk-
|
|
23
|
+
var _chunkMXK4M7HPjs = require('./chunk-MXK4M7HP.js');
|
|
24
|
+
require('./chunk-SKHUWQZE.js');
|
|
25
|
+
require('./chunk-ZO65VJRJ.js');
|
|
26
26
|
require('./chunk-BVXIGOBZ.js');
|
|
27
27
|
require('./chunk-CSPHSNBW.js');
|
|
28
28
|
require('./chunk-J33TSWO5.js');
|
|
29
29
|
require('./chunk-HGFFYVXN.js');
|
|
30
|
-
require('./chunk-
|
|
30
|
+
require('./chunk-YNAXKA23.js');
|
|
31
31
|
require('./chunk-BLMB4N63.js');
|
|
32
|
-
require('./chunk-
|
|
32
|
+
require('./chunk-5VSHQG5E.js');
|
|
33
33
|
require('./chunk-4WAM6TLD.js');
|
|
34
34
|
require('./chunk-MJTVX4QK.js');
|
|
35
35
|
require('./chunk-PMH4GLMD.js');
|
|
36
|
-
require('./chunk-
|
|
37
|
-
require('./chunk-
|
|
38
|
-
require('./chunk-
|
|
39
|
-
require('./chunk-
|
|
40
|
-
require('./chunk-
|
|
41
|
-
require('./chunk-
|
|
36
|
+
require('./chunk-XFV353R2.js');
|
|
37
|
+
require('./chunk-636GD4IR.js');
|
|
38
|
+
require('./chunk-HEOM3FAC.js');
|
|
39
|
+
require('./chunk-HO76C7AE.js');
|
|
40
|
+
require('./chunk-737Y7QGT.js');
|
|
41
|
+
require('./chunk-G4WPDCXA.js');
|
|
42
42
|
|
|
43
43
|
|
|
44
|
-
var
|
|
44
|
+
var _chunkEZIXKNKMjs = require('./chunk-EZIXKNKM.js');
|
|
45
45
|
|
|
46
46
|
|
|
47
|
-
var
|
|
48
|
-
require('./chunk-
|
|
49
|
-
require('./chunk-
|
|
47
|
+
var _chunkEV3OPDHFjs = require('./chunk-EV3OPDHF.js');
|
|
48
|
+
require('./chunk-AO56MZ7D.js');
|
|
49
|
+
require('./chunk-KNCNFL76.js');
|
|
50
50
|
require('./chunk-6VLFQZK6.js');
|
|
51
51
|
require('./chunk-XNYIZMNQ.js');
|
|
52
52
|
require('./chunk-LFQJW4S2.js');
|
|
53
53
|
require('./chunk-CFJFUVX2.js');
|
|
54
|
-
require('./chunk-
|
|
54
|
+
require('./chunk-2UM3I2MY.js');
|
|
55
55
|
require('./chunk-OG64RBAC.js');
|
|
56
56
|
require('./chunk-RLX5ZFNX.js');
|
|
57
57
|
require('./chunk-COGTRVWW.js');
|
|
@@ -72,7 +72,7 @@ function readInput(options) {
|
|
|
72
72
|
}
|
|
73
73
|
const path = _nullishCoalesce(options.inputFile, () => ( (_optionalChain([options, 'access', _ => _.input, 'optionalAccess', _2 => _2.startsWith, 'call', _3 => _3("@")]) ? options.input.slice(1) : void 0)));
|
|
74
74
|
const flag = options.inputFile !== void 0 ? "--input-file" : "--input";
|
|
75
|
-
const text = path === void 0 ? _nullishCoalesce(options.input, () => ( "{}")) :
|
|
75
|
+
const text = path === void 0 ? _nullishCoalesce(options.input, () => ( "{}")) : _chunkH6JMRLAZjs.jsonFileText.call(void 0, _fs.readFileSync.call(void 0, path === "-" ? 0 : path));
|
|
76
76
|
let input;
|
|
77
77
|
try {
|
|
78
78
|
input = JSON.parse(text);
|
|
@@ -87,7 +87,7 @@ function readInput(options) {
|
|
|
87
87
|
return input;
|
|
88
88
|
}
|
|
89
89
|
function refuse(message, output) {
|
|
90
|
-
|
|
90
|
+
_chunkG2H6SQQYjs.writeExecutionOutput.call(void 0,
|
|
91
91
|
{ id: null, status: "failed", error: { message }, ran: false },
|
|
92
92
|
output
|
|
93
93
|
);
|
|
@@ -103,7 +103,7 @@ async function runAnything(name, options) {
|
|
|
103
103
|
logsOut: options.logsOut,
|
|
104
104
|
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)])
|
|
105
105
|
};
|
|
106
|
-
if (!
|
|
106
|
+
if (!_chunkG2H6SQQYjs.preflightExecutionOutput.call(void 0, output)) return 2;
|
|
107
107
|
let input;
|
|
108
108
|
let timeoutMs;
|
|
109
109
|
try {
|
|
@@ -121,7 +121,7 @@ async function runAnything(name, options) {
|
|
|
121
121
|
throw new Error("--max-credits takes a number of credits above 0.");
|
|
122
122
|
}
|
|
123
123
|
if (options.timeout !== void 0 && options.timeout !== "0") {
|
|
124
|
-
const { parseToolExecuteTimeout } = await Promise.resolve().then(() => _interopRequireWildcard(require("./tools-
|
|
124
|
+
const { parseToolExecuteTimeout } = await Promise.resolve().then(() => _interopRequireWildcard(require("./tools-7VRQ4GSI.js")));
|
|
125
125
|
timeoutMs = parseToolExecuteTimeout(options.timeout);
|
|
126
126
|
}
|
|
127
127
|
} catch (error) {
|
|
@@ -142,7 +142,7 @@ async function runAnything(name, options) {
|
|
|
142
142
|
if (name !== void 0) {
|
|
143
143
|
return refuse("Use a name or -e, not both.", output);
|
|
144
144
|
}
|
|
145
|
-
const { writeInlinePlay } = await Promise.resolve().then(() => _interopRequireWildcard(require("./play-
|
|
145
|
+
const { writeInlinePlay } = await Promise.resolve().then(() => _interopRequireWildcard(require("./play-NWKHCHVZ.js")));
|
|
146
146
|
let file;
|
|
147
147
|
try {
|
|
148
148
|
file = writeInlinePlay(options.eval);
|
|
@@ -165,23 +165,29 @@ async function runAnything(name, options) {
|
|
|
165
165
|
output
|
|
166
166
|
);
|
|
167
167
|
}
|
|
168
|
-
if (
|
|
168
|
+
if (_chunkZYSJND73js.looksLikeFilePath.call(void 0, name)) {
|
|
169
|
+
if (options.example !== void 0) {
|
|
170
|
+
return refuse(
|
|
171
|
+
"--example takes a named example from a published play; give a play file its input with --input.",
|
|
172
|
+
output
|
|
173
|
+
);
|
|
174
|
+
}
|
|
169
175
|
output.label = `${name} (play file)`;
|
|
170
176
|
return runPlay(name, play);
|
|
171
177
|
}
|
|
172
178
|
let { base, revision } = splitRevision(name);
|
|
173
|
-
let found = await
|
|
179
|
+
let found = await _chunk5H6254MJjs.findNamed.call(void 0, base, {});
|
|
174
180
|
if (!found.chosen && revision) {
|
|
175
|
-
found = await
|
|
181
|
+
found = await _chunk5H6254MJjs.findNamed.call(void 0, name, {});
|
|
176
182
|
if (found.chosen)
|
|
177
183
|
({ base, revision } = { base: name, revision: void 0 });
|
|
178
184
|
}
|
|
179
185
|
const { chosen, shadowed } = found;
|
|
180
|
-
if (!chosen) return refuse(
|
|
186
|
+
if (!chosen) return refuse(_chunk5H6254MJjs.nothingNamed.call(void 0, base), output);
|
|
181
187
|
const { described } = chosen;
|
|
182
188
|
if (described.kind === "custom_play" && shadowed) {
|
|
183
189
|
console.error(
|
|
184
|
-
`Running your org play "${base}". It has the same name as a Deepline ${shadowed.described.kind.replace("_", " ")}; run that one with: deepline run ${
|
|
190
|
+
`Running your org play "${base}". It has the same name as a Deepline ${shadowed.described.kind.replace("_", " ")}; run that one with: deepline run ${_chunkMXK4M7HPjs.DEEPLINE_NAMESPACE}${base}`
|
|
185
191
|
);
|
|
186
192
|
}
|
|
187
193
|
const { runner } = described;
|
|
@@ -197,12 +203,24 @@ async function runAnything(name, options) {
|
|
|
197
203
|
output
|
|
198
204
|
);
|
|
199
205
|
}
|
|
206
|
+
if (options.example !== void 0) {
|
|
207
|
+
const examples = _nullishCoalesce(described.namedExamples, () => ( []));
|
|
208
|
+
const example = examples.find((item) => item.name === options.example);
|
|
209
|
+
if (!example) {
|
|
210
|
+
return refuse(
|
|
211
|
+
examples.length ? `${described.id} has no example named "${options.example}". Its examples: ${examples.map((item) => item.name).join(", ")}.` : `${described.id} declares no named examples.`,
|
|
212
|
+
output
|
|
213
|
+
);
|
|
214
|
+
}
|
|
215
|
+
input = { ...example.input, ...input };
|
|
216
|
+
play.input = input;
|
|
217
|
+
}
|
|
200
218
|
output.label = runner.via === "play" ? `${runner.reference}${revision ? `@${revision}` : ""} (play)` : `${runner.toolId} (tool)`;
|
|
201
219
|
if (options.dryRun) return dryRun(described, input, output);
|
|
202
220
|
if (runner.via === "play") {
|
|
203
221
|
return runPlay(runner.reference, { ...play, revision });
|
|
204
222
|
}
|
|
205
|
-
const { executeToolForReceipt } = await Promise.resolve().then(() => _interopRequireWildcard(require("./tools-
|
|
223
|
+
const { executeToolForReceipt } = await Promise.resolve().then(() => _interopRequireWildcard(require("./tools-7VRQ4GSI.js")));
|
|
206
224
|
return executeToolForReceipt({
|
|
207
225
|
toolId: runner.toolId,
|
|
208
226
|
params: input,
|
|
@@ -216,7 +234,7 @@ function dryRun(described, input, output) {
|
|
|
216
234
|
const missing = described.inputs.filter((field) => field.required && !(field.name in input)).map((field) => field.name);
|
|
217
235
|
const known = new Set(described.inputs.map((field) => field.name));
|
|
218
236
|
const unknown = known.size ? Object.keys(input).filter((key) => !known.has(key)) : [];
|
|
219
|
-
|
|
237
|
+
_chunkG2H6SQQYjs.writeExecutionOutput.call(void 0,
|
|
220
238
|
{
|
|
221
239
|
id: null,
|
|
222
240
|
status: "dry_run",
|
|
@@ -233,20 +251,20 @@ function dryRun(described, input, output) {
|
|
|
233
251
|
return missing.length ? 2 : 0;
|
|
234
252
|
}
|
|
235
253
|
async function runPlay(reference, play) {
|
|
236
|
-
const { handlePlayRun, writePlayRunReceipt } = await Promise.resolve().then(() => _interopRequireWildcard(require("./play-
|
|
254
|
+
const { handlePlayRun, writePlayRunReceipt } = await Promise.resolve().then(() => _interopRequireWildcard(require("./play-NWKHCHVZ.js")));
|
|
237
255
|
const { output, options, revision } = play;
|
|
238
256
|
if (options.dryRun) {
|
|
239
|
-
const dryRunOptions =
|
|
257
|
+
const dryRunOptions = _chunkZYSJND73js.resolvePlayRunCliOptions.call(void 0, reference, {
|
|
240
258
|
input: JSON.stringify(play.input),
|
|
241
259
|
dryRun: true,
|
|
242
260
|
json: output.receiptJson === true
|
|
243
261
|
});
|
|
244
262
|
if (output.receiptOut === void 0) return handlePlayRun(dryRunOptions);
|
|
245
|
-
const writeDryRunError = (error) =>
|
|
263
|
+
const writeDryRunError = (error) => _chunkG2H6SQQYjs.writeExecutionOutput.call(void 0,
|
|
246
264
|
{
|
|
247
265
|
id: null,
|
|
248
266
|
status: "failed",
|
|
249
|
-
error:
|
|
267
|
+
error: _chunkEV3OPDHFjs.errorToJsonPayload.call(void 0, error).error,
|
|
250
268
|
ran: false
|
|
251
269
|
},
|
|
252
270
|
output
|
|
@@ -254,7 +272,7 @@ async function runPlay(reference, play) {
|
|
|
254
272
|
try {
|
|
255
273
|
return await handlePlayRun(dryRunOptions, {
|
|
256
274
|
writeDryRunError,
|
|
257
|
-
writeDryRunPlan: (plan) =>
|
|
275
|
+
writeDryRunPlan: (plan) => _chunkG2H6SQQYjs.writeExecutionOutput.call(void 0,
|
|
258
276
|
{
|
|
259
277
|
id: null,
|
|
260
278
|
status: "dry_run",
|
|
@@ -265,19 +283,19 @@ async function runPlay(reference, play) {
|
|
|
265
283
|
)
|
|
266
284
|
});
|
|
267
285
|
} catch (error) {
|
|
268
|
-
if (error instanceof
|
|
286
|
+
if (error instanceof _chunkG2H6SQQYjs.ExecutionOutputError) throw error;
|
|
269
287
|
writeDryRunError(error);
|
|
270
288
|
return 1;
|
|
271
289
|
}
|
|
272
290
|
}
|
|
273
291
|
let id = null;
|
|
274
292
|
let written = false;
|
|
275
|
-
const progress =
|
|
276
|
-
if (!play.noWait) progress.setLogWriter(
|
|
293
|
+
const progress = _chunkEZIXKNKMjs.createCliProgress.call(void 0, true);
|
|
294
|
+
if (!play.noWait) progress.setLogWriter(_chunkG2H6SQQYjs.openLogDestination.call(void 0, output));
|
|
277
295
|
progress.setQuiet(process.stderr.isTTY !== true);
|
|
278
296
|
try {
|
|
279
297
|
const code = await handlePlayRun(
|
|
280
|
-
|
|
298
|
+
_chunkZYSJND73js.resolvePlayRunCliOptions.call(void 0, reference, {
|
|
281
299
|
input: JSON.stringify(play.input),
|
|
282
300
|
// The receipt is the only thing on stdout.
|
|
283
301
|
json: true,
|
|
@@ -304,7 +322,7 @@ async function runPlay(reference, play) {
|
|
|
304
322
|
},
|
|
305
323
|
writeStarted: (runId, status, page) => {
|
|
306
324
|
written = true;
|
|
307
|
-
|
|
325
|
+
_chunkG2H6SQQYjs.writeExecutionOutput.call(void 0,
|
|
308
326
|
{
|
|
309
327
|
id: runId,
|
|
310
328
|
status,
|
|
@@ -320,7 +338,7 @@ async function runPlay(reference, play) {
|
|
|
320
338
|
}
|
|
321
339
|
);
|
|
322
340
|
if (!written) {
|
|
323
|
-
|
|
341
|
+
_chunkG2H6SQQYjs.writeExecutionOutput.call(void 0,
|
|
324
342
|
{
|
|
325
343
|
id,
|
|
326
344
|
status: "failed",
|
|
@@ -332,11 +350,11 @@ async function runPlay(reference, play) {
|
|
|
332
350
|
return code;
|
|
333
351
|
} catch (error) {
|
|
334
352
|
if (written) throw error;
|
|
335
|
-
|
|
353
|
+
_chunkG2H6SQQYjs.writeExecutionOutput.call(void 0,
|
|
336
354
|
{
|
|
337
355
|
id,
|
|
338
356
|
status: "failed",
|
|
339
|
-
error:
|
|
357
|
+
error: _chunkEV3OPDHFjs.errorToJsonPayload.call(void 0, error).error,
|
|
340
358
|
...id ? { next: { status: `deepline runs get ${id}` } } : {}
|
|
341
359
|
},
|
|
342
360
|
output
|
|
@@ -348,7 +366,10 @@ function registerRunCommand(program) {
|
|
|
348
366
|
program.command("run [name]").description("Run a tool, a play, a play file, or inline code.").option(
|
|
349
367
|
"-e, --eval <code>",
|
|
350
368
|
"Code to run as a play body, instead of a name"
|
|
351
|
-
).option("--input <json>", "Input as a JSON object").option("--input-file <path>", "Input from a JSON file; - reads stdin").option(
|
|
369
|
+
).option("--input <json>", "Input as a JSON object").option("--input-file <path>", "Input from a JSON file; - reads stdin").option(
|
|
370
|
+
"--example <name>",
|
|
371
|
+
"Start from a named example input the play declares"
|
|
372
|
+
).option("--json-out <path>", "Save the result as JSON to this new file").option(
|
|
352
373
|
"--csv-out <[list=]path>",
|
|
353
374
|
"Save rows as CSV to this new file; repeat for more lists",
|
|
354
375
|
(value, previous = []) => [...previous, value]
|
|
@@ -362,7 +383,7 @@ function registerRunCommand(program) {
|
|
|
362
383
|
try {
|
|
363
384
|
process.exitCode = await runAnything(name, options);
|
|
364
385
|
} catch (error) {
|
|
365
|
-
if (options.receiptOut === void 0 || !(error instanceof
|
|
386
|
+
if (options.receiptOut === void 0 || !(error instanceof _chunkG2H6SQQYjs.ExecutionOutputError)) {
|
|
366
387
|
throw error;
|
|
367
388
|
}
|
|
368
389
|
process.exitCode = 1;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
var _chunkFXXERR52js = require('./chunk-FXXERR52.js');
|
|
9
|
+
require('./chunk-D3BCSAN7.js');
|
|
10
|
+
require('./chunk-YNAXKA23.js');
|
|
11
|
+
require('./chunk-5VSHQG5E.js');
|
|
12
|
+
require('./chunk-4WAM6TLD.js');
|
|
13
|
+
require('./chunk-MJTVX4QK.js');
|
|
14
|
+
require('./chunk-PMH4GLMD.js');
|
|
15
|
+
require('./chunk-EV3OPDHF.js');
|
|
16
|
+
require('./chunk-AO56MZ7D.js');
|
|
17
|
+
require('./chunk-KNCNFL76.js');
|
|
18
|
+
require('./chunk-6VLFQZK6.js');
|
|
19
|
+
require('./chunk-XNYIZMNQ.js');
|
|
20
|
+
require('./chunk-LFQJW4S2.js');
|
|
21
|
+
require('./chunk-CFJFUVX2.js');
|
|
22
|
+
require('./chunk-2UM3I2MY.js');
|
|
23
|
+
require('./chunk-OG64RBAC.js');
|
|
24
|
+
require('./chunk-COGTRVWW.js');
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
exports.SEARCH_TYPES = _chunkFXXERR52js.SEARCH_TYPES; exports.appendCsv = _chunkFXXERR52js.appendCsv; exports.parseTypes = _chunkFXXERR52js.parseTypes; exports.pointAtDescribe = _chunkFXXERR52js.pointAtDescribe; exports.registerDeprecatedSearchCommand = _chunkFXXERR52js.registerDeprecatedSearchCommand; exports.registerSearchCommand = _chunkFXXERR52js.registerSearchCommand;
|
|
@@ -5,21 +5,21 @@ import {
|
|
|
5
5
|
pointAtDescribe,
|
|
6
6
|
registerDeprecatedSearchCommand,
|
|
7
7
|
registerSearchCommand
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-IAJ65IDZ.mjs";
|
|
9
9
|
import "./chunk-5AEDYVB6.mjs";
|
|
10
|
-
import "./chunk-
|
|
11
|
-
import "./chunk-
|
|
10
|
+
import "./chunk-IOWLFWWG.mjs";
|
|
11
|
+
import "./chunk-QEDRUURT.mjs";
|
|
12
12
|
import "./chunk-FZHMNK6F.mjs";
|
|
13
13
|
import "./chunk-5TYLSS4Q.mjs";
|
|
14
14
|
import "./chunk-PSX3WHIH.mjs";
|
|
15
|
-
import "./chunk-
|
|
16
|
-
import "./chunk-
|
|
17
|
-
import "./chunk-
|
|
15
|
+
import "./chunk-X47J55ZJ.mjs";
|
|
16
|
+
import "./chunk-3PVKXUSJ.mjs";
|
|
17
|
+
import "./chunk-IBYMGR5Y.mjs";
|
|
18
18
|
import "./chunk-ASB47RXJ.mjs";
|
|
19
19
|
import "./chunk-DLIRSHV6.mjs";
|
|
20
20
|
import "./chunk-Z3A2S3QM.mjs";
|
|
21
21
|
import "./chunk-2MGZAI54.mjs";
|
|
22
|
-
import "./chunk-
|
|
22
|
+
import "./chunk-BM536WWR.mjs";
|
|
23
23
|
import "./chunk-WZYKRD7T.mjs";
|
|
24
24
|
import "./chunk-KRD6H754.mjs";
|
|
25
25
|
export {
|