deepline 0.3.487 → 0.3.489
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/release.ts +7 -1
- package/dist/bundling-sources/shared_libs/observability/scheduled-jobs.json +18 -0
- package/dist/cli/{auth-GIBZFTUJ.mjs → auth-5RIU6GT7.mjs} +5 -5
- package/dist/cli/auth-PSIS3XA6.js +43 -0
- package/dist/cli/{billing-T3SN2T4T.mjs → billing-T4TMPRFS.mjs} +6 -6
- package/dist/cli/{billing-TZINXSTI.js → billing-T5MAGF25.js} +79 -79
- package/dist/cli/{chunk-YVK3WEBE.mjs → chunk-2QUROYZU.mjs} +1 -1
- package/dist/cli/{chunk-76EUEG45.mjs → chunk-35N4S2E6.mjs} +1 -1
- package/dist/cli/{chunk-LE3BAE4T.mjs → chunk-3S5VBG6Z.mjs} +2 -2
- package/dist/cli/{chunk-TY7AFVAC.js → chunk-4EFD6R2V.js} +37 -37
- package/dist/cli/{chunk-IAK7OKDC.mjs → chunk-4GWEZPZR.mjs} +6 -1
- package/dist/cli/{chunk-XVSMWD6E.js → chunk-5DEJ3TLB.js} +7 -7
- package/dist/cli/{chunk-WZQSBYFU.js → chunk-6FMP5XRF.js} +6 -6
- package/dist/cli/{chunk-JH2XVGTM.mjs → chunk-6PHHQDM6.mjs} +1 -1
- package/dist/cli/{chunk-MQYUH3DR.mjs → chunk-7R243PYK.mjs} +15 -1
- package/dist/cli/{chunk-IL5AF6AR.mjs → chunk-A7ZMG2QZ.mjs} +24 -12
- package/dist/cli/{chunk-2EQPUMZG.mjs → chunk-C55LNEUF.mjs} +1 -1
- package/dist/cli/{chunk-6VW4YVWH.mjs → chunk-DHAJSTSH.mjs} +4 -4
- package/dist/cli/{chunk-TDUPHVI2.js → chunk-DY7T6VNT.js} +21 -21
- package/dist/cli/{chunk-BWXQIRPZ.js → chunk-F3TDT57M.js} +5 -5
- package/dist/cli/{chunk-ZJIFSEJS.js → chunk-FFDWL5N2.js} +16 -16
- package/dist/cli/{chunk-NR6ZSXYE.js → chunk-FH7ZABHW.js} +94 -94
- package/dist/cli/{chunk-WFMTJFGG.js → chunk-FL7NHJTS.js} +10 -10
- package/dist/cli/{chunk-O4LTC7S6.js → chunk-FNKSRKTA.js} +22 -8
- package/dist/cli/{chunk-ATEO2Y3W.mjs → chunk-G7POOFBJ.mjs} +2 -2
- package/dist/cli/{chunk-DAXLSR65.js → chunk-GW6HV7Z7.js} +3 -3
- package/dist/cli/{chunk-HK6RIWDN.mjs → chunk-H66YVVT7.mjs} +1 -1
- package/dist/cli/{chunk-JDFYXDDA.js → chunk-I4NWMPT3.js} +53 -53
- package/dist/cli/{chunk-BXOHHCXG.js → chunk-K2RUSHZ7.js} +4 -4
- package/dist/cli/{chunk-4AZFKKGK.mjs → chunk-L2GMFNAO.mjs} +3 -3
- package/dist/cli/{chunk-75LPU4AO.js → chunk-LM5UIDFA.js} +7 -7
- package/dist/cli/{chunk-VHXDX7WY.mjs → chunk-LMUOUIBV.mjs} +5 -5
- package/dist/cli/{chunk-WOG5SFF2.mjs → chunk-NBHCEVWY.mjs} +4 -4
- package/dist/cli/{chunk-OKAZHDYN.js → chunk-O3K22ZC7.js} +24 -12
- package/dist/cli/{chunk-6MRJ3SMS.mjs → chunk-OTQ2CO6M.mjs} +2 -2
- package/dist/cli/{chunk-CEJFXV7R.mjs → chunk-QJ4FWKUU.mjs} +2 -2
- package/dist/cli/{chunk-RXKFJTFH.mjs → chunk-QXWE6PHI.mjs} +2 -2
- package/dist/cli/{chunk-JZNSRGDL.js → chunk-R23HZ6AV.js} +2 -2
- package/dist/cli/{chunk-DJJ2UYSX.mjs → chunk-RACN23LT.mjs} +4 -4
- package/dist/cli/{chunk-WXEAAVBK.js → chunk-RI2PLVD4.js} +7 -7
- package/dist/cli/{chunk-QZ4DVKYU.js → chunk-S4F2R2LO.js} +9 -9
- package/dist/cli/{chunk-VPSK464I.mjs → chunk-S5PMBDY6.mjs} +10 -10
- package/dist/cli/{chunk-6YMPAQEI.js → chunk-SZHNIKTR.js} +26 -26
- package/dist/cli/{chunk-YWRMI4WC.mjs → chunk-TMQ3PCSY.mjs} +2 -2
- package/dist/cli/{chunk-FMN7S7KB.js → chunk-UI67QLIR.js} +53 -53
- package/dist/cli/{chunk-NDUZXNGV.js → chunk-UYZNRLDE.js} +6 -1
- package/dist/cli/{chunk-E2CSKE27.js → chunk-UZ7VPOTA.js} +3 -3
- package/dist/cli/{chunk-ZOENOU2W.js → chunk-VP65YKOA.js} +5 -5
- package/dist/cli/{chunk-YIVYI5XH.js → chunk-WIKIF67Q.js} +8 -8
- package/dist/cli/{chunk-JWTTCWZM.mjs → chunk-WRJ6MEY5.mjs} +1 -1
- package/dist/cli/{chunk-5BWN4XAO.mjs → chunk-Y3SG26KP.mjs} +4 -4
- package/dist/cli/{chunk-4LMPONJM.mjs → chunk-YEX3VNAY.mjs} +2 -2
- package/dist/cli/{chunk-HKK3NTTF.js → chunk-YSB44HZB.js} +2 -2
- package/dist/cli/{chunk-RFBM4KSE.mjs → chunk-ZICPJKMP.mjs} +5 -5
- package/dist/cli/command-docs.js +2 -2
- package/dist/cli/command-docs.mjs +1 -1
- package/dist/cli/{csv-42ZQOY2Y.mjs → csv-WAD54M7T.mjs} +4 -4
- package/dist/cli/{csv-IKHCVOV5.js → csv-XTKN255I.js} +13 -13
- package/dist/cli/{db-B3RLPXTA.mjs → db-2ELZMJFC.mjs} +6 -6
- package/dist/cli/{db-3AWAIV6O.js → db-TTS6Y4FI.js} +27 -27
- package/dist/cli/describe-2V7H5LJP.js +49 -0
- package/dist/cli/{describe-NEPMNE33.mjs → describe-Z7GWMGKU.mjs} +17 -17
- package/dist/cli/{executions-W53OBSB6.mjs → executions-2TQH54AB.mjs} +6 -6
- package/dist/cli/{executions-3KJXWIGK.js → executions-WUBVVJXN.js} +8 -8
- package/dist/cli/{feedback-3MSNFC6M.js → feedback-6KAY4LE6.js} +8 -8
- package/dist/cli/{feedback-GJNATGAP.mjs → feedback-QI75ZVF2.mjs} +4 -4
- package/dist/cli/{git-5BWKZFNE.mjs → git-3PI2SXVS.mjs} +5 -5
- package/dist/cli/git-DCADFTQ6.js +25 -0
- package/dist/cli/index.js +141 -141
- package/dist/cli/index.mjs +41 -41
- package/dist/cli/{legacy-noops-GSW6TMAJ.js → legacy-noops-BNEVRTQT.js} +8 -8
- package/dist/cli/{legacy-noops-A7YMA3NB.mjs → legacy-noops-SIDE3HLT.mjs} +5 -5
- package/dist/cli/{monitors-24QFIRCI.mjs → monitors-BYQ5V5MX.mjs} +7 -7
- package/dist/cli/{monitors-T5RMXFKT.js → monitors-WRWVVXUZ.js} +91 -91
- package/dist/cli/{org-3JJQOXLF.js → org-KWCSSJ3Y.js} +72 -72
- package/dist/cli/{org-ZZPKJOQY.mjs → org-OZNDX3G2.mjs} +6 -6
- package/dist/cli/{pages-ZFCV37XK.mjs → pages-DXU3TNND.mjs} +6 -6
- package/dist/cli/{pages-3GK3SKKB.js → pages-OQVOMVF5.js} +17 -17
- package/dist/cli/{play-4MINBQNW.js → play-6D7U66KO.js} +312 -312
- package/dist/cli/{play-DX36FVSU.mjs → play-ZFG4HDDX.mjs} +17 -17
- package/dist/cli/{providers-Z4EYMZJM.mjs → providers-4RRQIK3Q.mjs} +6 -6
- package/dist/cli/{providers-YDQHY35D.js → providers-H7R3Z5HS.js} +9 -9
- package/dist/cli/{quickstart-OTZVKVIE.js → quickstart-FQ5E5G6O.js} +6 -6
- package/dist/cli/{quickstart-YMI4OECS.mjs → quickstart-TFKRPMCH.mjs} +4 -4
- package/dist/cli/{run-OBU3YFOJ.mjs → run-GRCGGUUM.mjs} +30 -134
- package/dist/cli/{run-P345MQLC.js → run-QRDJTXKB.js} +44 -148
- package/dist/cli/search-2FB7WQUS.js +32 -0
- package/dist/cli/{search-5FBWOI2H.mjs → search-OEVSDE3U.mjs} +7 -7
- package/dist/cli/{search-output-WOTMZA55.js → search-output-F6KBWKT2.js} +6 -6
- package/dist/cli/{search-output-673LGTLF.mjs → search-output-VK5ZDVKL.mjs} +4 -4
- package/dist/cli/{secrets-QX45TZJK.mjs → secrets-DCRVVQV2.mjs} +6 -6
- package/dist/cli/{secrets-IWYY42YD.js → secrets-KKAAZENS.js} +15 -15
- package/dist/cli/{sessions-ZUK654NJ.js → sessions-FDHENJVG.js} +6 -6
- package/dist/cli/{sessions-Z2ZB3EZ7.mjs → sessions-XVBIXCXU.mjs} +5 -5
- package/dist/cli/{settings-ZXXP7DHM.js → settings-36HMWFAP.js} +78 -78
- package/dist/cli/{settings-6VY7HTEE.mjs → settings-OBVR52US.mjs} +11 -11
- package/dist/cli/{setup-SD66A4OE.mjs → setup-KFYQZYP3.mjs} +9 -9
- package/dist/cli/{setup-RE7T3PAE.js → setup-M6OWOPMB.js} +47 -47
- package/dist/cli/{skills-ARPNJ7MN.mjs → skills-AZDPA6IQ.mjs} +7 -7
- package/dist/cli/skills-URCPOKZZ.js +33 -0
- package/dist/cli/tools-4G5J5NQP.js +56 -0
- package/dist/cli/{tools-R3TUCRX3.mjs → tools-F6XEUK7H.mjs} +16 -16
- package/dist/cli/{update-2DPZJQK4.mjs → update-QMGJRICE.mjs} +9 -9
- package/dist/cli/update-UWVL2OYA.js +33 -0
- package/dist/cli/{workflow-2WPRQNRF.mjs → workflow-L5WNCAPB.mjs} +7 -7
- package/dist/cli/{workflow-GIWX7OZC.js → workflow-M4YPUASM.js} +17 -17
- package/dist/index.js +9 -9
- package/dist/index.mjs +6 -6
- package/dist/install-integrity.json +100 -100
- package/dist/release.d.mts +5 -1
- package/dist/release.d.ts +5 -1
- package/dist/release.js +2 -2
- package/dist/release.mjs +1 -1
- package/dist/server.js +5 -5
- package/dist/server.mjs +3 -3
- package/package.json +1 -1
- package/dist/cli/auth-Q4U7IFFV.js +0 -43
- package/dist/cli/describe-HLO35E5Y.js +0 -49
- package/dist/cli/git-WRFBKH6H.js +0 -25
- package/dist/cli/search-IV22OQLS.js +0 -32
- package/dist/cli/skills-ZDKFUVNP.js +0 -33
- package/dist/cli/tools-AUU42AVE.js +0 -56
- package/dist/cli/update-QLF3A6YY.js +0 -33
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
parsePlayRunHeaderFlag,
|
|
6
6
|
parsePlayRunOptions,
|
|
7
7
|
resolvePlayRunCliOptions
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-QJ4FWKUU.mjs";
|
|
9
9
|
import {
|
|
10
10
|
TABLE_EXPORT_ERROR_COLUMN,
|
|
11
11
|
addDescribeOptions,
|
|
@@ -17,15 +17,15 @@ import {
|
|
|
17
17
|
underscoreKeysLast,
|
|
18
18
|
writeExecutionOutput,
|
|
19
19
|
writeRunDatasetCsv
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-H66YVVT7.mjs";
|
|
21
21
|
import {
|
|
22
22
|
registerDeprecatedSearchCommand
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-NBHCEVWY.mjs";
|
|
24
24
|
import "./chunk-5AEDYVB6.mjs";
|
|
25
25
|
import {
|
|
26
26
|
handleDeploymentGet,
|
|
27
27
|
handleDeploymentsList
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-OTQ2CO6M.mjs";
|
|
29
29
|
import {
|
|
30
30
|
buildPlayDashboardUrl
|
|
31
31
|
} from "./chunk-JVHOS3K3.mjs";
|
|
@@ -57,10 +57,10 @@ import {
|
|
|
57
57
|
import {
|
|
58
58
|
pinLocalPlayImports,
|
|
59
59
|
planLocalPlayExecution
|
|
60
|
-
} from "./chunk-
|
|
60
|
+
} from "./chunk-G7POOFBJ.mjs";
|
|
61
61
|
import {
|
|
62
62
|
DeeplineClient
|
|
63
|
-
} from "./chunk-
|
|
63
|
+
} from "./chunk-QXWE6PHI.mjs";
|
|
64
64
|
import {
|
|
65
65
|
RUN_EVENT_SEARCH_KIND_VALUES,
|
|
66
66
|
RunEventQueryInputError,
|
|
@@ -73,7 +73,7 @@ import {
|
|
|
73
73
|
normalizePlayStatus,
|
|
74
74
|
normalizeRunEventOperationRequest,
|
|
75
75
|
parseLogLevel
|
|
76
|
-
} from "./chunk-
|
|
76
|
+
} from "./chunk-C55LNEUF.mjs";
|
|
77
77
|
import "./chunk-L2VKAASU.mjs";
|
|
78
78
|
import {
|
|
79
79
|
CSV_DATA_INPUT_KEY,
|
|
@@ -95,18 +95,18 @@ import "./chunk-UBKA33KY.mjs";
|
|
|
95
95
|
import {
|
|
96
96
|
checkPlayRunCompatibility,
|
|
97
97
|
usesCliPlayAdmission
|
|
98
|
-
} from "./chunk-
|
|
98
|
+
} from "./chunk-TMQ3PCSY.mjs";
|
|
99
99
|
import {
|
|
100
100
|
isCliTraceEnabled,
|
|
101
101
|
recordCliTrace,
|
|
102
102
|
resolveCliMaintenancePolicy,
|
|
103
103
|
traceCliSpan
|
|
104
|
-
} from "./chunk-
|
|
105
|
-
import "./chunk-
|
|
104
|
+
} from "./chunk-35N4S2E6.mjs";
|
|
105
|
+
import "./chunk-Y3SG26KP.mjs";
|
|
106
106
|
import {
|
|
107
107
|
createCliProgress,
|
|
108
108
|
getActiveCliProgress
|
|
109
|
-
} from "./chunk-
|
|
109
|
+
} from "./chunk-7R243PYK.mjs";
|
|
110
110
|
import {
|
|
111
111
|
argsWantJson,
|
|
112
112
|
describeArgs,
|
|
@@ -120,17 +120,17 @@ import {
|
|
|
120
120
|
printJsonError,
|
|
121
121
|
renderCommandEnvelopeText,
|
|
122
122
|
shouldEmitJson
|
|
123
|
-
} from "./chunk-
|
|
124
|
-
import "./chunk-
|
|
123
|
+
} from "./chunk-YEX3VNAY.mjs";
|
|
124
|
+
import "./chunk-2QUROYZU.mjs";
|
|
125
125
|
import {
|
|
126
126
|
fetchWithDeploymentProtection
|
|
127
|
-
} from "./chunk-
|
|
127
|
+
} from "./chunk-WRJ6MEY5.mjs";
|
|
128
128
|
import "./chunk-4QF2K7TM.mjs";
|
|
129
129
|
import "./chunk-DLIRSHV6.mjs";
|
|
130
130
|
import {
|
|
131
131
|
DeeplineError
|
|
132
132
|
} from "./chunk-HBL4PM5Q.mjs";
|
|
133
|
-
import "./chunk-
|
|
133
|
+
import "./chunk-4GWEZPZR.mjs";
|
|
134
134
|
import "./chunk-WZYKRD7T.mjs";
|
|
135
135
|
import {
|
|
136
136
|
__commonJS,
|
|
@@ -16577,7 +16577,7 @@ Examples:
|
|
|
16577
16577
|
process.exitCode = await ownView();
|
|
16578
16578
|
return;
|
|
16579
16579
|
}
|
|
16580
|
-
const { describeAnything } = await import("./describe-
|
|
16580
|
+
const { describeAnything } = await import("./describe-Z7GWMGKU.mjs");
|
|
16581
16581
|
process.exitCode = await describeAnything(
|
|
16582
16582
|
name,
|
|
16583
16583
|
{
|
|
@@ -16911,7 +16911,7 @@ Examples:
|
|
|
16911
16911
|
new Option2("--log-failed", "Attach terminal-failure logs").hideHelp()
|
|
16912
16912
|
).action(async (runId, options) => {
|
|
16913
16913
|
if (TOOL_EXECUTION_ID.test(runId)) {
|
|
16914
|
-
const { getToolExecutionReceipt } = await import("./tools-
|
|
16914
|
+
const { getToolExecutionReceipt } = await import("./tools-F6XEUK7H.mjs");
|
|
16915
16915
|
process.exitCode = await getToolExecutionReceipt(runId, {
|
|
16916
16916
|
receiptJson: options.json !== void 0
|
|
16917
16917
|
});
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
DeeplineClient
|
|
3
|
-
} from "./chunk-
|
|
4
|
-
import "./chunk-
|
|
3
|
+
} from "./chunk-QXWE6PHI.mjs";
|
|
4
|
+
import "./chunk-C55LNEUF.mjs";
|
|
5
5
|
import "./chunk-L2VKAASU.mjs";
|
|
6
6
|
import "./chunk-ONONSV2Q.mjs";
|
|
7
7
|
import "./chunk-S3A4IXBQ.mjs";
|
|
@@ -9,13 +9,13 @@ import "./chunk-UBKA33KY.mjs";
|
|
|
9
9
|
import {
|
|
10
10
|
printCommandEnvelope,
|
|
11
11
|
shouldEmitJson
|
|
12
|
-
} from "./chunk-
|
|
13
|
-
import "./chunk-
|
|
14
|
-
import "./chunk-
|
|
12
|
+
} from "./chunk-YEX3VNAY.mjs";
|
|
13
|
+
import "./chunk-2QUROYZU.mjs";
|
|
14
|
+
import "./chunk-WRJ6MEY5.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-4GWEZPZR.mjs";
|
|
19
19
|
import "./chunk-WZYKRD7T.mjs";
|
|
20
20
|
import "./chunk-KRD6H754.mjs";
|
|
21
21
|
|
|
@@ -1,7 +1,7 @@
|
|
|
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 _chunkF3TDT57Mjs = require('./chunk-F3TDT57M.js');
|
|
4
|
+
require('./chunk-5DEJ3TLB.js');
|
|
5
5
|
require('./chunk-E4CABWXL.js');
|
|
6
6
|
require('./chunk-AUQQVDAB.js');
|
|
7
7
|
require('./chunk-NMU3VR5U.js');
|
|
@@ -9,21 +9,21 @@ require('./chunk-XDVT3GOM.js');
|
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
|
|
12
|
-
var
|
|
13
|
-
require('./chunk-
|
|
14
|
-
require('./chunk-
|
|
12
|
+
var _chunkRI2PLVD4js = require('./chunk-RI2PLVD4.js');
|
|
13
|
+
require('./chunk-UZ7VPOTA.js');
|
|
14
|
+
require('./chunk-K2RUSHZ7.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-UYZNRLDE.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, _chunkF3TDT57Mjs.DeeplineClient)();
|
|
25
25
|
const changed = options.changed === true;
|
|
26
|
-
const emitJson = options.json === true ||
|
|
26
|
+
const emitJson = options.json === true || _chunkRI2PLVD4js.shouldEmitJson.call(void 0, );
|
|
27
27
|
const providers = await client.listProviders({ changed });
|
|
28
28
|
const render = {
|
|
29
29
|
sections: [
|
|
@@ -42,7 +42,7 @@ async function listProviders(options = {}) {
|
|
|
42
42
|
}
|
|
43
43
|
]
|
|
44
44
|
};
|
|
45
|
-
|
|
45
|
+
_chunkRI2PLVD4js.printCommandEnvelope.call(void 0,
|
|
46
46
|
{
|
|
47
47
|
providers,
|
|
48
48
|
count: providers.length,
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
5
|
-
require('./chunk-
|
|
6
|
-
require('./chunk-
|
|
4
|
+
var _chunkRI2PLVD4js = require('./chunk-RI2PLVD4.js');
|
|
5
|
+
require('./chunk-UZ7VPOTA.js');
|
|
6
|
+
require('./chunk-K2RUSHZ7.js');
|
|
7
7
|
require('./chunk-ALJJRZNJ.js');
|
|
8
8
|
require('./chunk-XNYIZMNQ.js');
|
|
9
9
|
require('./chunk-DIAWYWT5.js');
|
|
10
|
-
require('./chunk-
|
|
10
|
+
require('./chunk-UYZNRLDE.js');
|
|
11
11
|
require('./chunk-OG64RBAC.js');
|
|
12
12
|
|
|
13
13
|
|
|
@@ -17,12 +17,12 @@ require('./chunk-COGTRVWW.js');
|
|
|
17
17
|
|
|
18
18
|
// src/cli/commands/quickstart.ts
|
|
19
19
|
async function handleQuickstart(options) {
|
|
20
|
-
const jsonOutput =
|
|
20
|
+
const jsonOutput = _chunkRI2PLVD4js.shouldEmitJson.call(void 0, options.json === true);
|
|
21
21
|
const gettingStarted = {
|
|
22
22
|
skill: _chunk6V7KVRR5js.DEEPLINE_GTM_SKILL,
|
|
23
23
|
examples: _chunk6V7KVRR5js.DEEPLINE_GTM_STARTER_PROMPTS
|
|
24
24
|
};
|
|
25
|
-
|
|
25
|
+
_chunkRI2PLVD4js.printCommandEnvelope.call(void 0,
|
|
26
26
|
{
|
|
27
27
|
ok: true,
|
|
28
28
|
status: "deprecated",
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
printCommandEnvelope,
|
|
3
3
|
shouldEmitJson
|
|
4
|
-
} from "./chunk-
|
|
5
|
-
import "./chunk-
|
|
6
|
-
import "./chunk-
|
|
4
|
+
} from "./chunk-YEX3VNAY.mjs";
|
|
5
|
+
import "./chunk-2QUROYZU.mjs";
|
|
6
|
+
import "./chunk-WRJ6MEY5.mjs";
|
|
7
7
|
import "./chunk-4QF2K7TM.mjs";
|
|
8
8
|
import "./chunk-DLIRSHV6.mjs";
|
|
9
9
|
import "./chunk-HBL4PM5Q.mjs";
|
|
10
|
-
import "./chunk-
|
|
10
|
+
import "./chunk-4GWEZPZR.mjs";
|
|
11
11
|
import "./chunk-WZYKRD7T.mjs";
|
|
12
12
|
import {
|
|
13
13
|
DEEPLINE_GTM_SKILL,
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import {
|
|
2
2
|
looksLikeFilePath,
|
|
3
3
|
resolvePlayRunCliOptions
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-QJ4FWKUU.mjs";
|
|
5
5
|
import {
|
|
6
6
|
findNamed,
|
|
7
7
|
nothingNamed
|
|
8
|
-
} from "./chunk-
|
|
9
|
-
import "./chunk-
|
|
8
|
+
} from "./chunk-DHAJSTSH.mjs";
|
|
9
|
+
import "./chunk-S5PMBDY6.mjs";
|
|
10
10
|
import {
|
|
11
11
|
openLogDestination,
|
|
12
12
|
preflightExecutionOutput,
|
|
13
13
|
writeExecutionOutput
|
|
14
|
-
} from "./chunk-
|
|
15
|
-
import "./chunk-
|
|
14
|
+
} from "./chunk-H66YVVT7.mjs";
|
|
15
|
+
import "./chunk-NBHCEVWY.mjs";
|
|
16
16
|
import "./chunk-5AEDYVB6.mjs";
|
|
17
17
|
import {
|
|
18
18
|
DEEPLINE_NAMESPACE
|
|
@@ -24,29 +24,29 @@ 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-
|
|
27
|
+
import "./chunk-QXWE6PHI.mjs";
|
|
28
28
|
import "./chunk-3RGWTKK3.mjs";
|
|
29
|
-
import "./chunk-
|
|
29
|
+
import "./chunk-C55LNEUF.mjs";
|
|
30
30
|
import "./chunk-L2VKAASU.mjs";
|
|
31
31
|
import "./chunk-ONONSV2Q.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-LMUOUIBV.mjs";
|
|
35
|
+
import "./chunk-35N4S2E6.mjs";
|
|
36
|
+
import "./chunk-ZICPJKMP.mjs";
|
|
37
|
+
import "./chunk-6PHHQDM6.mjs";
|
|
38
|
+
import "./chunk-RACN23LT.mjs";
|
|
39
|
+
import "./chunk-Y3SG26KP.mjs";
|
|
40
40
|
import {
|
|
41
41
|
createCliProgress
|
|
42
|
-
} from "./chunk-
|
|
43
|
-
import "./chunk-
|
|
44
|
-
import "./chunk-
|
|
45
|
-
import "./chunk-
|
|
42
|
+
} from "./chunk-7R243PYK.mjs";
|
|
43
|
+
import "./chunk-YEX3VNAY.mjs";
|
|
44
|
+
import "./chunk-2QUROYZU.mjs";
|
|
45
|
+
import "./chunk-WRJ6MEY5.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-4GWEZPZR.mjs";
|
|
50
50
|
import "./chunk-WZYKRD7T.mjs";
|
|
51
51
|
import "./chunk-KRD6H754.mjs";
|
|
52
52
|
|
|
@@ -115,7 +115,7 @@ async function runAnything(name, options) {
|
|
|
115
115
|
throw new Error("--max-credits takes a number of credits above 0.");
|
|
116
116
|
}
|
|
117
117
|
if (options.timeout !== void 0 && options.timeout !== "0") {
|
|
118
|
-
const { parseToolExecuteTimeout } = await import("./tools-
|
|
118
|
+
const { parseToolExecuteTimeout } = await import("./tools-F6XEUK7H.mjs");
|
|
119
119
|
timeoutMs = parseToolExecuteTimeout(options.timeout);
|
|
120
120
|
}
|
|
121
121
|
} catch (error) {
|
|
@@ -136,7 +136,7 @@ async function runAnything(name, options) {
|
|
|
136
136
|
if (name !== void 0) {
|
|
137
137
|
return refuse("Use a name or -e, not both.", output);
|
|
138
138
|
}
|
|
139
|
-
const { writeInlinePlay } = await import("./play-
|
|
139
|
+
const { writeInlinePlay } = await import("./play-ZFG4HDDX.mjs");
|
|
140
140
|
let file;
|
|
141
141
|
try {
|
|
142
142
|
file = writeInlinePlay(options.eval);
|
|
@@ -196,7 +196,7 @@ async function runAnything(name, options) {
|
|
|
196
196
|
if (runner.via === "play") {
|
|
197
197
|
return runPlay(runner.reference, { ...play, revision });
|
|
198
198
|
}
|
|
199
|
-
const { executeToolForReceipt } = await import("./tools-
|
|
199
|
+
const { executeToolForReceipt } = await import("./tools-F6XEUK7H.mjs");
|
|
200
200
|
return executeToolForReceipt({
|
|
201
201
|
toolId: runner.toolId,
|
|
202
202
|
params: input,
|
|
@@ -227,7 +227,7 @@ function dryRun(described, input, output) {
|
|
|
227
227
|
return missing.length ? 2 : 0;
|
|
228
228
|
}
|
|
229
229
|
async function runPlay(reference, play) {
|
|
230
|
-
const { handlePlayRun, writePlayRunReceipt } = await import("./play-
|
|
230
|
+
const { handlePlayRun, writePlayRunReceipt } = await import("./play-ZFG4HDDX.mjs");
|
|
231
231
|
const { output, options, revision } = play;
|
|
232
232
|
if (options.dryRun) {
|
|
233
233
|
return handlePlayRun(
|
|
@@ -242,6 +242,7 @@ async function runPlay(reference, play) {
|
|
|
242
242
|
let written = false;
|
|
243
243
|
const progress = createCliProgress(true);
|
|
244
244
|
if (!play.noWait) progress.setLogWriter(openLogDestination(output));
|
|
245
|
+
progress.setQuiet(process.stderr.isTTY !== true);
|
|
245
246
|
try {
|
|
246
247
|
const code = await handlePlayRun(
|
|
247
248
|
resolvePlayRunCliOptions(reference, {
|
|
@@ -319,122 +320,17 @@ async function runPlay(reference, play) {
|
|
|
319
320
|
}
|
|
320
321
|
}
|
|
321
322
|
function registerRunCommand(program) {
|
|
322
|
-
program.command("run [name]").description(
|
|
323
|
-
"Run anything search returns: a tool, a play, or a local play file."
|
|
324
|
-
).option(
|
|
323
|
+
program.command("run [name]").description("Run a tool, a play, a play file, or inline code.").option(
|
|
325
324
|
"-e, --eval <code>",
|
|
326
|
-
"
|
|
327
|
-
).option("--input <json>", "Input as a JSON object").option(
|
|
328
|
-
"--input-file <path>",
|
|
329
|
-
"Input as a JSON object read from a file; - reads stdin"
|
|
330
|
-
).option(
|
|
331
|
-
"--json-out <path>",
|
|
332
|
-
"Save the whole result as JSON to this new file; - writes it to stdout"
|
|
333
|
-
).option(
|
|
325
|
+
"Code to run as a play body, instead of a name"
|
|
326
|
+
).option("--input <json>", "Input as a JSON object").option("--input-file <path>", "Input from a JSON file; - reads stdin").option("--json-out <path>", "Save the result as JSON to this new file").option(
|
|
334
327
|
"--csv-out <[list=]path>",
|
|
335
|
-
"Save
|
|
328
|
+
"Save rows as CSV to this new file; repeat for more lists",
|
|
336
329
|
(value, previous = []) => [...previous, value]
|
|
337
|
-
).option(
|
|
338
|
-
"--fields <paths>",
|
|
339
|
-
"Only these comma-separated dotted paths, in the receipt and the CSV"
|
|
340
|
-
).option("--full", "Show every field's type and first value").option("--lines <n>", "Show up to this many lines of values (default 32)").option("--json", "Print the receipt as JSON instead of text").option(
|
|
341
|
-
"--receipt-out <path>",
|
|
342
|
-
"Also save the JSON receipt to this new file"
|
|
343
|
-
).option(
|
|
344
|
-
"--dry-run",
|
|
345
|
-
"Check the input against the contract and show the price; nothing is sent"
|
|
346
|
-
).option(
|
|
347
|
-
"--fresh",
|
|
348
|
-
"Call providers again instead of reusing results saved by earlier runs"
|
|
349
|
-
).option(
|
|
350
|
-
"--max-credits <credits>",
|
|
351
|
-
"Stop a play run that would spend more Deepline credits than this"
|
|
352
|
-
).option(
|
|
330
|
+
).option("--fields <paths>", "Only these dotted paths, comma-separated").option("--dry-run", "Check the input and show the price; runs nothing").option(
|
|
353
331
|
"--timeout <duration>",
|
|
354
|
-
"Stop waiting after
|
|
355
|
-
).option(
|
|
356
|
-
"--logs-out <path>",
|
|
357
|
-
"Write a play's live logs to this new file; - writes them to stdout"
|
|
358
|
-
).addHelpText(
|
|
359
|
-
"after",
|
|
360
|
-
`
|
|
361
|
-
Name:
|
|
362
|
-
Any id deepline search returns: a tool id, a play name or reference, or a
|
|
363
|
-
local play file. It resolves as deepline describe resolves it.
|
|
364
|
-
deepline/<name> the Deepline tool or play, when a play your workspace
|
|
365
|
-
created has the same name (that one runs by default)
|
|
366
|
-
<play>@latest the newest saved revision; <play>@<revision-id> one
|
|
367
|
-
revision. The live revision runs by default.
|
|
368
|
-
-e '<code>' in place of a name: the code is the body of a play
|
|
369
|
-
function, input holds --input, and deepline is the
|
|
370
|
-
runtime, as in a .play.ts file in this directory.
|
|
371
|
-
|
|
372
|
-
Input:
|
|
373
|
-
One JSON object whose fields are the inputs deepline describe lists.
|
|
374
|
-
A play that reads a CSV takes the path as a field: '{"csv":"leads.csv"}'.
|
|
375
|
-
|
|
376
|
-
Output:
|
|
377
|
-
The data is always saved to a file: a new temporary one unless --json-out
|
|
378
|
-
or --csv-out names one. Output paths must not exist yet. A tool's data is
|
|
379
|
-
the provider's response; a play's is its result, each dataset handle
|
|
380
|
-
replaced by that dataset's rows.
|
|
381
|
-
The receipt says what ran, how it ended and what it cost, where the data
|
|
382
|
-
is, and what came back, within 32 lines (--lines changes it):
|
|
383
|
-
default the tool's declared outputs, else the data itself, read
|
|
384
|
-
breadth-first: every top-level field before nested ones
|
|
385
|
-
--fields only the paths you name; a path through a list applies to
|
|
386
|
-
each item, so people.email is every person's email
|
|
387
|
-
--full every field's type and first value
|
|
388
|
-
--csv-out writes the row list it names, else the one --fields reaches
|
|
389
|
-
into, else the tool's declared row list, else the largest:
|
|
390
|
-
--csv-out people=people.csv. Repeat it for more lists. --fields under a
|
|
391
|
-
list's path choose its columns; company.domain becomes its own column.
|
|
392
|
-
The full JSON Schema goes to a file the receipt names. --json prints the
|
|
393
|
-
receipt as JSON; --receipt-out also saves it to a file.
|
|
394
|
-
|
|
395
|
-
Where things are printed:
|
|
396
|
-
stdout the receipt; or the data, under --json-out - or --csv-out -
|
|
397
|
-
stderr progress, the live logs' path, and the receipt when the data
|
|
398
|
-
is on stdout
|
|
399
|
-
Only one of --json-out, --csv-out and --logs-out may use -.
|
|
400
|
-
|
|
401
|
-
Waiting:
|
|
402
|
-
run waits for the result. --timeout stops waiting, not the work: a play
|
|
403
|
-
keeps running and the receipt says how to check on it. --timeout 0
|
|
404
|
-
returns a play's run id at once. A play's live logs go to a temporary
|
|
405
|
-
file named on stderr when it starts; --logs-out chooses the file.
|
|
406
|
-
|
|
407
|
-
Reuse:
|
|
408
|
-
A tool call is saved under a retry key before it is sent. Running the same
|
|
409
|
-
call again within the hour, after an interruption, replays it instead of
|
|
410
|
-
paying twice. Plays reuse the results of calls they made before.
|
|
411
|
-
--fresh calls the providers again.
|
|
412
|
-
|
|
413
|
-
Cost:
|
|
414
|
-
--dry-run shows the price first. --max-credits caps one play run, in
|
|
415
|
-
place of the play's own billing.maxCreditsPerRun: a run that reaches it
|
|
416
|
-
stops, and its receipt says so. A tool call has one price, so the cap
|
|
417
|
-
applies to plays.
|
|
418
|
-
|
|
419
|
-
Follow-up:
|
|
420
|
-
deepline runs get <id> reads a run, or a tool call for 24 hours, again
|
|
421
|
-
by the id its receipt gave.
|
|
422
|
-
|
|
423
|
-
Exit codes:
|
|
424
|
-
0 completed
|
|
425
|
-
1 the tool or play failed, or is still running after --timeout
|
|
426
|
-
2 nothing ran: bad input or flags, an existing output file, an unknown
|
|
427
|
-
name, a monitor type, or a --dry-run that found missing input
|
|
428
|
-
|
|
429
|
-
Examples:
|
|
430
|
-
deepline run hunter_email_verifier --input '{"email":"a@b.com"}'
|
|
431
|
-
deepline run person-linkedin-to-email --input-file input.json --dry-run
|
|
432
|
-
deepline run my.play.ts --input '{"csv":"leads.csv"}' --csv-out out.csv
|
|
433
|
-
deepline run company-search --input-file - --json-out - < input.json
|
|
434
|
-
deepline run my-play@latest --timeout 0
|
|
435
|
-
deepline run -e 'return { doubled: input.n * 2 };' --input '{"n":21}'
|
|
436
|
-
`
|
|
437
|
-
).action(async (name, options) => {
|
|
332
|
+
"Stop waiting after 90s, 10m, 1h; 0 returns at once"
|
|
333
|
+
).option("--max-credits <credits>", "Stop a play run that would spend more").option("--fresh", "Call providers again instead of reusing saved results").option("--json", "Print the receipt as JSON").option("--full", "Show every field of the result").option("--lines <n>", "Lines of values in the receipt (default 32)").option("--receipt-out <path>", "Also save the receipt as JSON").option("--logs-out <path>", "Save a play's live logs here; - prints them").action(async (name, options) => {
|
|
438
334
|
process.exitCode = await runAnything(name, options);
|
|
439
335
|
});
|
|
440
336
|
}
|