deepline 0.3.488 → 0.3.490
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/bundling-sources/shared_libs/play-runtime/direct-admission-deadline.ts +3 -1
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/postgres.ts +10 -0
- package/dist/cli/auth-AW34RGV5.js +43 -0
- package/dist/cli/{auth-3BTWD5NT.mjs → auth-RL6LOZGC.mjs} +5 -5
- package/dist/cli/{billing-QROEPF5K.mjs → billing-33THO76F.mjs} +6 -6
- package/dist/cli/{billing-CHCBRT2F.js → billing-LIDDSOSY.js} +79 -79
- package/dist/cli/{chunk-C5M43H4F.mjs → chunk-27IBWHR5.mjs} +4 -4
- package/dist/cli/{chunk-NSAI3D4H.mjs → chunk-2HYJU4LJ.mjs} +1 -1
- package/dist/cli/{chunk-TZSRQYKH.mjs → chunk-3M5VPIRL.mjs} +2 -2
- package/dist/cli/{chunk-IAYSWZDJ.js → chunk-4IP5MLWU.js} +1 -1
- package/dist/cli/{chunk-6V7KVRR5.js → chunk-4OLXMJ2L.js} +13 -2
- package/dist/cli/{chunk-XGQBBMSP.js → chunk-63TNO23X.js} +15 -15
- package/dist/cli/{chunk-SV2VOJF4.js → chunk-6TTPAGNX.js} +7 -7
- package/dist/cli/{chunk-HDUDLOGI.mjs → chunk-7W53Y4VH.mjs} +5 -5
- package/dist/cli/{chunk-KQKPDXIZ.mjs → chunk-A3D677RX.mjs} +1 -1
- package/dist/cli/{chunk-IL5AF6AR.mjs → chunk-A7ZMG2QZ.mjs} +24 -12
- package/dist/cli/{chunk-ZYJBIZLV.js → chunk-B7MPY7WH.js} +6 -6
- package/dist/cli/{chunk-XMBIESQ7.mjs → chunk-BL5Q5JY7.mjs} +5 -5
- package/dist/cli/{chunk-3T6HNVZN.mjs → chunk-CB7IFKXN.mjs} +2 -2
- package/dist/cli/{chunk-J7EENGKJ.mjs → chunk-CGDUFVNE.mjs} +2 -2
- package/dist/cli/{chunk-6RZ2UVFW.mjs → chunk-CSSOP7XG.mjs} +2 -2
- package/dist/cli/{chunk-JVHOS3K3.mjs → chunk-DEJIN4DF.mjs} +1 -1
- package/dist/cli/{chunk-4BQEGVNC.js → chunk-E26477MJ.js} +7 -7
- package/dist/cli/{chunk-WER5FPHI.js → chunk-EPQZ42PY.js} +6 -1
- package/dist/cli/{chunk-TMIWNHL4.js → chunk-FDYCUA7A.js} +16 -16
- package/dist/cli/{chunk-SE252VCN.js → chunk-FPYESYBO.js} +4 -4
- package/dist/cli/{chunk-INW22YP7.mjs → chunk-FTXIJTV2.mjs} +3 -5
- package/dist/cli/{chunk-MBHPAZEA.js → chunk-HHGAY2A4.js} +53 -53
- package/dist/cli/{chunk-CSBMKHTV.js → chunk-HHTVRICE.js} +17 -17
- package/dist/cli/{chunk-P2IEBDEG.js → chunk-IFGBL3US.js} +7 -7
- package/dist/cli/{chunk-GXZK35XL.mjs → chunk-J5HMAZ34.mjs} +2 -2
- package/dist/cli/{chunk-N7LKHN5C.mjs → chunk-JC2M6XG2.mjs} +1 -1
- package/dist/cli/{chunk-CVBMI2HY.mjs → chunk-JSYCPTG6.mjs} +3 -3
- package/dist/cli/{chunk-QT2SPITP.mjs → chunk-JTYKW3UL.mjs} +2 -2
- package/dist/cli/{chunk-73H5KG5T.js → chunk-L7QSZAF6.js} +9 -9
- package/dist/cli/{chunk-2LNTFODA.mjs → chunk-LQIKW55V.mjs} +2 -2
- package/dist/cli/{chunk-KI74RLCP.js → chunk-LZ37B62K.js} +7 -7
- package/dist/cli/{chunk-TJRGYEDA.mjs → chunk-MBQZMHE6.mjs} +18 -4
- package/dist/cli/{chunk-F4W4J6BT.mjs → chunk-MDKAPUN2.mjs} +2 -2
- package/dist/cli/{chunk-IS24BRFV.mjs → chunk-MEYQOZPF.mjs} +1 -1
- package/dist/cli/{chunk-EMPGZXFN.mjs → chunk-NRM5OWH2.mjs} +6 -6
- package/dist/cli/{chunk-OKAZHDYN.js → chunk-O3K22ZC7.js} +24 -12
- package/dist/cli/{chunk-UUKMZK23.mjs → chunk-OFCP66VS.mjs} +2 -2
- package/dist/cli/{chunk-QRBDW3X6.mjs → chunk-PIENQTDE.mjs} +6 -1
- package/dist/cli/{chunk-4BVJ6YSN.js → chunk-PVMN4OE2.js} +5 -5
- package/dist/cli/{chunk-ZJVQXD7M.js → chunk-QC6QUFKY.js} +5 -5
- package/dist/cli/{chunk-AYJVYXES.mjs → chunk-QWJZSPCV.mjs} +12 -12
- package/dist/cli/{chunk-LBFU3VRY.js → chunk-QZPJWFGD.js} +26 -26
- package/dist/cli/{chunk-6JTJWIXZ.js → chunk-SGG3TERP.js} +3 -3
- package/dist/cli/{chunk-KV5MCYQE.js → chunk-TCBYQX5N.js} +52 -38
- package/dist/cli/{chunk-Q2EIZKVX.mjs → chunk-TKLDKIJU.mjs} +12 -1
- package/dist/cli/{chunk-IXQQWEYK.mjs → chunk-TVZJ6XWM.mjs} +1 -1
- package/dist/cli/{chunk-G52LFTXC.js → chunk-UQXHBCHU.js} +2 -2
- package/dist/cli/{chunk-OWYXDSU5.js → chunk-UTKNSD6T.js} +21 -21
- package/dist/cli/{chunk-HO4PLJHS.mjs → chunk-V47SUOAE.mjs} +4 -4
- package/dist/cli/{chunk-GBQLNEB7.js → chunk-WNVZV6VK.js} +53 -53
- package/dist/cli/{chunk-2OHR2B5U.js → chunk-XSGJKXMP.js} +2 -2
- package/dist/cli/{chunk-QWEQV3R3.js → chunk-Y2KHSQEF.js} +8 -8
- package/dist/cli/{chunk-LOX3BISD.js → chunk-YNWET57Z.js} +9 -11
- package/dist/cli/{chunk-QHMEOHN4.js → chunk-YPUDIEZX.js} +261 -261
- package/dist/cli/{chunk-BU2MZXN6.js → chunk-YYN2O43C.js} +3 -3
- package/dist/cli/{chunk-TKK4TR7B.mjs → chunk-Z7W6VJFN.mjs} +1 -1
- package/dist/cli/command-docs.js +2 -2
- package/dist/cli/command-docs.mjs +1 -1
- package/dist/cli/{csv-WQ5IPBPJ.js → csv-PLJNQPLE.js} +13 -13
- package/dist/cli/{csv-74EFMI3L.mjs → csv-TELSH4ND.mjs} +4 -4
- package/dist/cli/{db-JMTHP7J2.mjs → db-GISAU665.mjs} +6 -6
- package/dist/cli/{db-LUU3EFBM.js → db-QDJ6GWF5.js} +27 -27
- package/dist/cli/{describe-PKBLERG6.mjs → describe-F4K54VXB.mjs} +21 -20
- package/dist/cli/describe-R6NVISAS.js +50 -0
- package/dist/cli/describe-core.js +4 -4
- package/dist/cli/describe-core.mjs +3 -3
- package/dist/cli/{executions-SM32REFN.mjs → executions-3QE7MRBG.mjs} +6 -6
- package/dist/cli/{executions-LVMXG5GY.js → executions-VKUTKQNN.js} +8 -8
- package/dist/cli/{feedback-AECGZDEG.js → feedback-HH5AUYLA.js} +8 -8
- package/dist/cli/{feedback-V7PEANAR.mjs → feedback-JU7PJGDL.mjs} +4 -4
- package/dist/cli/getting-started.d.mts +17 -2
- package/dist/cli/getting-started.d.ts +17 -2
- package/dist/cli/getting-started.js +8 -2
- package/dist/cli/getting-started.mjs +9 -3
- package/dist/cli/{git-BDX3U6NA.mjs → git-ACXH7K7D.mjs} +5 -5
- package/dist/cli/git-CXRU4CRW.js +25 -0
- package/dist/cli/index.js +142 -141
- package/dist/cli/index.mjs +42 -41
- package/dist/cli/{legacy-noops-W6E7TXE4.mjs → legacy-noops-IOAZ3YJ2.mjs} +5 -5
- package/dist/cli/{legacy-noops-JRGBSX4O.js → legacy-noops-NRPYJZOP.js} +8 -8
- package/dist/cli/{monitors-JT6QZITH.js → monitors-4SKMAAMR.js} +91 -91
- package/dist/cli/{monitors-RKWUYNER.mjs → monitors-PMQUOIOI.mjs} +7 -7
- package/dist/cli/{org-PALGDO5U.js → org-WJM7X6WB.js} +72 -72
- package/dist/cli/{org-5XOHJY6O.mjs → org-XNT3W6OU.mjs} +6 -6
- package/dist/cli/{pages-UKICE2RA.js → pages-WXY4GGZG.js} +17 -17
- package/dist/cli/{pages-Q5MG4J6F.mjs → pages-Y3JKBS4B.mjs} +6 -6
- package/dist/cli/{play-MR324ZTD.js → play-NKSRPIAV.js} +321 -321
- package/dist/cli/{play-PY5AT3JQ.mjs → play-NPWWAQYK.mjs} +18 -18
- package/dist/cli/{providers-V3YMXJFB.mjs → providers-CUIKFE6F.mjs} +6 -6
- package/dist/cli/{providers-MGBLIMRF.js → providers-VNPJHXK5.js} +9 -9
- package/dist/cli/{quickstart-LYQ5N6VI.js → quickstart-6OTS2HDR.js} +13 -13
- package/dist/cli/{quickstart-MMETU4RG.mjs → quickstart-PJYPKFZI.mjs} +5 -5
- package/dist/cli/{run-A5CNTDYQ.js → run-2DLJBYFC.js} +48 -152
- package/dist/cli/{run-PZ7CWOJJ.mjs → run-AGX3EUK4.mjs} +33 -137
- package/dist/cli/{search-IRDHHP7N.mjs → search-DVIEJ2UQ.mjs} +7 -7
- package/dist/cli/search-Y7VFEFJJ.js +32 -0
- package/dist/cli/{search-output-N7RQNWBW.js → search-output-PFLNDCA7.js} +6 -6
- package/dist/cli/{search-output-7UAKSD7H.mjs → search-output-TXSIPSPS.mjs} +4 -4
- package/dist/cli/{secrets-XJGQ3BLJ.js → secrets-O5OQTFVD.js} +15 -15
- package/dist/cli/{secrets-XN4UDYNN.mjs → secrets-OAGXFXEX.mjs} +6 -6
- package/dist/cli/{sessions-324MFEFP.mjs → sessions-GBR5PGB6.mjs} +5 -5
- package/dist/cli/{sessions-4UUVDBAO.js → sessions-WT7P3F73.js} +6 -6
- package/dist/cli/{settings-4EZEUQOS.mjs → settings-KGNBIFOU.mjs} +12 -11
- package/dist/cli/{settings-REBKKLBF.js → settings-U7UNDUDB.js} +79 -78
- package/dist/cli/{setup-ELPVMUCK.js → setup-4MZNDFKM.js} +60 -55
- package/dist/cli/{setup-G3VQ5NCJ.mjs → setup-PYWSU4YM.mjs} +17 -12
- package/dist/cli/{skills-RLUDQJWB.mjs → skills-7Y6OBM7Z.mjs} +10 -7
- package/dist/cli/skills-BQC2323O.js +36 -0
- package/dist/cli/tools-732SZ4KV.js +57 -0
- package/dist/cli/{tools-MRAFK3MJ.mjs → tools-O7L435CR.mjs} +19 -18
- package/dist/cli/update-PCYIUORM.js +34 -0
- package/dist/cli/{update-WRTYTP3Y.mjs → update-SPHIBY5L.mjs} +10 -9
- package/dist/cli/{workflow-LHS32WIT.js → workflow-GTDKPIEV.js} +17 -17
- package/dist/cli/{workflow-ALJ3HLW4.mjs → workflow-ZRYO5J3K.mjs} +7 -7
- package/dist/index.js +9 -9
- package/dist/index.mjs +6 -6
- package/dist/install-integrity.json +108 -108
- 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-F3OYGJ7T.js +0 -43
- package/dist/cli/describe-35UK3DNO.js +0 -49
- package/dist/cli/git-3KBELBUI.js +0 -25
- package/dist/cli/search-4SG3UMIQ.js +0 -32
- package/dist/cli/skills-X5FY5KJM.js +0 -33
- package/dist/cli/tools-PCRPD5XD.js +0 -56
- package/dist/cli/update-Q4ND4F7E.js +0 -33
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
parsePlayRunHeaderFlag,
|
|
6
6
|
parsePlayRunOptions,
|
|
7
7
|
resolvePlayRunCliOptions
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-MDKAPUN2.mjs";
|
|
9
9
|
import {
|
|
10
10
|
TABLE_EXPORT_ERROR_COLUMN,
|
|
11
11
|
addDescribeOptions,
|
|
@@ -17,18 +17,18 @@ import {
|
|
|
17
17
|
underscoreKeysLast,
|
|
18
18
|
writeExecutionOutput,
|
|
19
19
|
writeRunDatasetCsv
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-CSSOP7XG.mjs";
|
|
21
21
|
import {
|
|
22
22
|
registerDeprecatedSearchCommand
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-V47SUOAE.mjs";
|
|
24
24
|
import "./chunk-5AEDYVB6.mjs";
|
|
25
25
|
import {
|
|
26
26
|
handleDeploymentGet,
|
|
27
27
|
handleDeploymentsList
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-J5HMAZ34.mjs";
|
|
29
29
|
import {
|
|
30
30
|
buildPlayDashboardUrl
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-DEJIN4DF.mjs";
|
|
32
32
|
import {
|
|
33
33
|
shellQuote
|
|
34
34
|
} from "./chunk-OVDNJAJN.mjs";
|
|
@@ -57,10 +57,10 @@ import {
|
|
|
57
57
|
import {
|
|
58
58
|
pinLocalPlayImports,
|
|
59
59
|
planLocalPlayExecution
|
|
60
|
-
} from "./chunk-
|
|
60
|
+
} from "./chunk-JTYKW3UL.mjs";
|
|
61
61
|
import {
|
|
62
62
|
DeeplineClient
|
|
63
|
-
} from "./chunk-
|
|
63
|
+
} from "./chunk-3M5VPIRL.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-MEYQOZPF.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-CB7IFKXN.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-2HYJU4LJ.mjs";
|
|
105
|
+
import "./chunk-27IBWHR5.mjs";
|
|
106
106
|
import {
|
|
107
107
|
createCliProgress,
|
|
108
108
|
getActiveCliProgress
|
|
109
|
-
} from "./chunk-
|
|
109
|
+
} from "./chunk-Z7W6VJFN.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-OFCP66VS.mjs";
|
|
124
|
+
import "./chunk-JC2M6XG2.mjs";
|
|
125
125
|
import {
|
|
126
126
|
fetchWithDeploymentProtection
|
|
127
|
-
} from "./chunk-
|
|
127
|
+
} from "./chunk-A3D677RX.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-PIENQTDE.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-F4K54VXB.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-O7L435CR.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-3M5VPIRL.mjs";
|
|
4
|
+
import "./chunk-MEYQOZPF.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-OFCP66VS.mjs";
|
|
13
|
+
import "./chunk-JC2M6XG2.mjs";
|
|
14
|
+
import "./chunk-A3D677RX.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-PIENQTDE.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 _chunkPVMN4OE2js = require('./chunk-PVMN4OE2.js');
|
|
4
|
+
require('./chunk-6TTPAGNX.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 _chunkE26477MJjs = require('./chunk-E26477MJ.js');
|
|
13
|
+
require('./chunk-YYN2O43C.js');
|
|
14
|
+
require('./chunk-FPYESYBO.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-EPQZ42PY.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, _chunkPVMN4OE2js.DeeplineClient)();
|
|
25
25
|
const changed = options.changed === true;
|
|
26
|
-
const emitJson = options.json === true ||
|
|
26
|
+
const emitJson = options.json === true || _chunkE26477MJjs.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
|
+
_chunkE26477MJjs.printCommandEnvelope.call(void 0,
|
|
46
46
|
{
|
|
47
47
|
providers,
|
|
48
48
|
count: providers.length,
|
|
@@ -1,28 +1,28 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
5
|
-
require('./chunk-
|
|
6
|
-
require('./chunk-
|
|
4
|
+
var _chunkE26477MJjs = require('./chunk-E26477MJ.js');
|
|
5
|
+
require('./chunk-YYN2O43C.js');
|
|
6
|
+
require('./chunk-FPYESYBO.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-EPQZ42PY.js');
|
|
11
11
|
require('./chunk-OG64RBAC.js');
|
|
12
12
|
|
|
13
13
|
|
|
14
14
|
|
|
15
|
-
var
|
|
15
|
+
var _chunk4OLXMJ2Ljs = require('./chunk-4OLXMJ2L.js');
|
|
16
16
|
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 = _chunkE26477MJjs.shouldEmitJson.call(void 0, options.json === true);
|
|
21
21
|
const gettingStarted = {
|
|
22
|
-
skill:
|
|
23
|
-
examples:
|
|
22
|
+
skill: _chunk4OLXMJ2Ljs.DEEPLINE_GTM_SKILL,
|
|
23
|
+
examples: _chunk4OLXMJ2Ljs.DEEPLINE_GTM_STARTER_PROMPTS
|
|
24
24
|
};
|
|
25
|
-
|
|
25
|
+
_chunkE26477MJjs.printCommandEnvelope.call(void 0,
|
|
26
26
|
{
|
|
27
27
|
ok: true,
|
|
28
28
|
status: "deprecated",
|
|
@@ -30,16 +30,16 @@ async function handleQuickstart(options) {
|
|
|
30
30
|
exitCode: 0,
|
|
31
31
|
message: "`deepline quickstart` is deprecated. Start with the installed /deepline-gtm skill in your agent.",
|
|
32
32
|
deprecatedCommand: "deepline quickstart",
|
|
33
|
-
replacement:
|
|
33
|
+
replacement: _chunk4OLXMJ2Ljs.DEEPLINE_GTM_SKILL,
|
|
34
34
|
gettingStarted,
|
|
35
|
-
next:
|
|
35
|
+
next: _chunk4OLXMJ2Ljs.DEEPLINE_GTM_SKILL,
|
|
36
36
|
render: {
|
|
37
37
|
sections: [
|
|
38
38
|
{
|
|
39
39
|
title: "quickstart deprecated",
|
|
40
40
|
lines: [
|
|
41
|
-
`Use ${
|
|
42
|
-
...
|
|
41
|
+
`Use ${_chunk4OLXMJ2Ljs.DEEPLINE_GTM_SKILL} in your agent instead.`,
|
|
42
|
+
..._chunk4OLXMJ2Ljs.DEEPLINE_GTM_STARTER_PROMPTS.map(
|
|
43
43
|
(example, index) => `${index + 1}. ${example.title}: ${example.prompt}`
|
|
44
44
|
)
|
|
45
45
|
]
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import {
|
|
2
2
|
printCommandEnvelope,
|
|
3
3
|
shouldEmitJson
|
|
4
|
-
} from "./chunk-
|
|
5
|
-
import "./chunk-
|
|
6
|
-
import "./chunk-
|
|
4
|
+
} from "./chunk-OFCP66VS.mjs";
|
|
5
|
+
import "./chunk-JC2M6XG2.mjs";
|
|
6
|
+
import "./chunk-A3D677RX.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-PIENQTDE.mjs";
|
|
11
11
|
import "./chunk-WZYKRD7T.mjs";
|
|
12
12
|
import {
|
|
13
13
|
DEEPLINE_GTM_SKILL,
|
|
14
14
|
DEEPLINE_GTM_STARTER_PROMPTS
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-TKLDKIJU.mjs";
|
|
16
16
|
import "./chunk-KRD6H754.mjs";
|
|
17
17
|
|
|
18
18
|
// src/cli/commands/quickstart.ts
|
|
@@ -1,53 +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 _chunkL7QSZAF6js = require('./chunk-L7QSZAF6.js');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
var
|
|
9
|
-
require('./chunk-
|
|
8
|
+
var _chunk63TNO23Xjs = require('./chunk-63TNO23X.js');
|
|
9
|
+
require('./chunk-YPUDIEZX.js');
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
|
|
14
|
-
var
|
|
15
|
-
require('./chunk-
|
|
14
|
+
var _chunkLZ37B62Kjs = require('./chunk-LZ37B62K.js');
|
|
15
|
+
require('./chunk-IFGBL3US.js');
|
|
16
16
|
require('./chunk-D3BCSAN7.js');
|
|
17
17
|
|
|
18
18
|
|
|
19
|
-
var
|
|
20
|
-
require('./chunk-
|
|
21
|
-
require('./chunk-
|
|
19
|
+
var _chunkHHTVRICEjs = require('./chunk-HHTVRICE.js');
|
|
20
|
+
require('./chunk-YNWET57Z.js');
|
|
21
|
+
require('./chunk-4IP5MLWU.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-
|
|
27
|
+
require('./chunk-PVMN4OE2.js');
|
|
28
28
|
require('./chunk-NPZBE64X.js');
|
|
29
|
-
require('./chunk-
|
|
29
|
+
require('./chunk-6TTPAGNX.js');
|
|
30
30
|
require('./chunk-E4CABWXL.js');
|
|
31
31
|
require('./chunk-AUQQVDAB.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-UTKNSD6T.js');
|
|
35
|
+
require('./chunk-UQXHBCHU.js');
|
|
36
|
+
require('./chunk-FDYCUA7A.js');
|
|
37
|
+
require('./chunk-XSGJKXMP.js');
|
|
38
|
+
require('./chunk-TCBYQX5N.js');
|
|
39
|
+
require('./chunk-HHGAY2A4.js');
|
|
40
40
|
|
|
41
41
|
|
|
42
|
-
var
|
|
43
|
-
require('./chunk-
|
|
44
|
-
require('./chunk-
|
|
45
|
-
require('./chunk-
|
|
42
|
+
var _chunkSGG3TERPjs = require('./chunk-SGG3TERP.js');
|
|
43
|
+
require('./chunk-E26477MJ.js');
|
|
44
|
+
require('./chunk-YYN2O43C.js');
|
|
45
|
+
require('./chunk-FPYESYBO.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-EPQZ42PY.js');
|
|
50
50
|
require('./chunk-OG64RBAC.js');
|
|
51
|
+
require('./chunk-4OLXMJ2L.js');
|
|
51
52
|
require('./chunk-COGTRVWW.js');
|
|
52
53
|
|
|
53
54
|
// src/cli/commands/run.ts
|
|
@@ -81,7 +82,7 @@ function readInput(options) {
|
|
|
81
82
|
return input;
|
|
82
83
|
}
|
|
83
84
|
function refuse(message, output) {
|
|
84
|
-
|
|
85
|
+
_chunkLZ37B62Kjs.writeExecutionOutput.call(void 0,
|
|
85
86
|
{ id: null, status: "failed", error: { message }, ran: false },
|
|
86
87
|
output
|
|
87
88
|
);
|
|
@@ -97,7 +98,7 @@ async function runAnything(name, options) {
|
|
|
97
98
|
logsOut: options.logsOut,
|
|
98
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)])
|
|
99
100
|
};
|
|
100
|
-
if (!
|
|
101
|
+
if (!_chunkLZ37B62Kjs.preflightExecutionOutput.call(void 0, output)) return 2;
|
|
101
102
|
let input;
|
|
102
103
|
let timeoutMs;
|
|
103
104
|
try {
|
|
@@ -115,7 +116,7 @@ async function runAnything(name, options) {
|
|
|
115
116
|
throw new Error("--max-credits takes a number of credits above 0.");
|
|
116
117
|
}
|
|
117
118
|
if (options.timeout !== void 0 && options.timeout !== "0") {
|
|
118
|
-
const { parseToolExecuteTimeout } = await Promise.resolve().then(() => _interopRequireWildcard(require("./tools-
|
|
119
|
+
const { parseToolExecuteTimeout } = await Promise.resolve().then(() => _interopRequireWildcard(require("./tools-732SZ4KV.js")));
|
|
119
120
|
timeoutMs = parseToolExecuteTimeout(options.timeout);
|
|
120
121
|
}
|
|
121
122
|
} catch (error) {
|
|
@@ -136,7 +137,7 @@ async function runAnything(name, options) {
|
|
|
136
137
|
if (name !== void 0) {
|
|
137
138
|
return refuse("Use a name or -e, not both.", output);
|
|
138
139
|
}
|
|
139
|
-
const { writeInlinePlay } = await Promise.resolve().then(() => _interopRequireWildcard(require("./play-
|
|
140
|
+
const { writeInlinePlay } = await Promise.resolve().then(() => _interopRequireWildcard(require("./play-NKSRPIAV.js")));
|
|
140
141
|
let file;
|
|
141
142
|
try {
|
|
142
143
|
file = writeInlinePlay(options.eval);
|
|
@@ -159,23 +160,23 @@ async function runAnything(name, options) {
|
|
|
159
160
|
output
|
|
160
161
|
);
|
|
161
162
|
}
|
|
162
|
-
if (
|
|
163
|
+
if (_chunkL7QSZAF6js.looksLikeFilePath.call(void 0, name)) {
|
|
163
164
|
output.label = `${name} (play file)`;
|
|
164
165
|
return runPlay(name, play);
|
|
165
166
|
}
|
|
166
167
|
let { base, revision } = splitRevision(name);
|
|
167
|
-
let found = await
|
|
168
|
+
let found = await _chunk63TNO23Xjs.findNamed.call(void 0, base, {});
|
|
168
169
|
if (!found.chosen && revision) {
|
|
169
|
-
found = await
|
|
170
|
+
found = await _chunk63TNO23Xjs.findNamed.call(void 0, name, {});
|
|
170
171
|
if (found.chosen)
|
|
171
172
|
({ base, revision } = { base: name, revision: void 0 });
|
|
172
173
|
}
|
|
173
174
|
const { chosen, shadowed } = found;
|
|
174
|
-
if (!chosen) return refuse(
|
|
175
|
+
if (!chosen) return refuse(_chunk63TNO23Xjs.nothingNamed.call(void 0, base), output);
|
|
175
176
|
const { described } = chosen;
|
|
176
177
|
if (described.kind === "custom_play" && shadowed) {
|
|
177
178
|
console.error(
|
|
178
|
-
`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 ${_chunkHHTVRICEjs.DEEPLINE_NAMESPACE}${base}`
|
|
179
180
|
);
|
|
180
181
|
}
|
|
181
182
|
const { runner } = described;
|
|
@@ -196,7 +197,7 @@ async function runAnything(name, options) {
|
|
|
196
197
|
if (runner.via === "play") {
|
|
197
198
|
return runPlay(runner.reference, { ...play, revision });
|
|
198
199
|
}
|
|
199
|
-
const { executeToolForReceipt } = await Promise.resolve().then(() => _interopRequireWildcard(require("./tools-
|
|
200
|
+
const { executeToolForReceipt } = await Promise.resolve().then(() => _interopRequireWildcard(require("./tools-732SZ4KV.js")));
|
|
200
201
|
return executeToolForReceipt({
|
|
201
202
|
toolId: runner.toolId,
|
|
202
203
|
params: input,
|
|
@@ -210,7 +211,7 @@ function dryRun(described, input, output) {
|
|
|
210
211
|
const missing = described.inputs.filter((field) => field.required && !(field.name in input)).map((field) => field.name);
|
|
211
212
|
const known = new Set(described.inputs.map((field) => field.name));
|
|
212
213
|
const unknown = known.size ? Object.keys(input).filter((key) => !known.has(key)) : [];
|
|
213
|
-
|
|
214
|
+
_chunkLZ37B62Kjs.writeExecutionOutput.call(void 0,
|
|
214
215
|
{
|
|
215
216
|
id: null,
|
|
216
217
|
status: "dry_run",
|
|
@@ -227,11 +228,11 @@ function dryRun(described, input, output) {
|
|
|
227
228
|
return missing.length ? 2 : 0;
|
|
228
229
|
}
|
|
229
230
|
async function runPlay(reference, play) {
|
|
230
|
-
const { handlePlayRun, writePlayRunReceipt } = await Promise.resolve().then(() => _interopRequireWildcard(require("./play-
|
|
231
|
+
const { handlePlayRun, writePlayRunReceipt } = await Promise.resolve().then(() => _interopRequireWildcard(require("./play-NKSRPIAV.js")));
|
|
231
232
|
const { output, options, revision } = play;
|
|
232
233
|
if (options.dryRun) {
|
|
233
234
|
return handlePlayRun(
|
|
234
|
-
|
|
235
|
+
_chunkL7QSZAF6js.resolvePlayRunCliOptions.call(void 0, reference, {
|
|
235
236
|
input: JSON.stringify(play.input),
|
|
236
237
|
dryRun: true,
|
|
237
238
|
json: output.receiptJson === true
|
|
@@ -240,12 +241,12 @@ async function runPlay(reference, play) {
|
|
|
240
241
|
}
|
|
241
242
|
let id = null;
|
|
242
243
|
let written = false;
|
|
243
|
-
const progress =
|
|
244
|
-
if (!play.noWait) progress.setLogWriter(
|
|
244
|
+
const progress = _chunkSGG3TERPjs.createCliProgress.call(void 0, true);
|
|
245
|
+
if (!play.noWait) progress.setLogWriter(_chunkLZ37B62Kjs.openLogDestination.call(void 0, output));
|
|
245
246
|
progress.setQuiet(process.stderr.isTTY !== true);
|
|
246
247
|
try {
|
|
247
248
|
const code = await handlePlayRun(
|
|
248
|
-
|
|
249
|
+
_chunkL7QSZAF6js.resolvePlayRunCliOptions.call(void 0, reference, {
|
|
249
250
|
input: JSON.stringify(play.input),
|
|
250
251
|
// The receipt is the only thing on stdout.
|
|
251
252
|
json: true,
|
|
@@ -278,7 +279,7 @@ async function runPlay(reference, play) {
|
|
|
278
279
|
},
|
|
279
280
|
writeStarted: (runId, status) => {
|
|
280
281
|
written = true;
|
|
281
|
-
|
|
282
|
+
_chunkLZ37B62Kjs.writeExecutionOutput.call(void 0,
|
|
282
283
|
{
|
|
283
284
|
id: runId,
|
|
284
285
|
status,
|
|
@@ -293,7 +294,7 @@ async function runPlay(reference, play) {
|
|
|
293
294
|
}
|
|
294
295
|
);
|
|
295
296
|
if (!written) {
|
|
296
|
-
|
|
297
|
+
_chunkLZ37B62Kjs.writeExecutionOutput.call(void 0,
|
|
297
298
|
{
|
|
298
299
|
id,
|
|
299
300
|
status: "failed",
|
|
@@ -305,7 +306,7 @@ async function runPlay(reference, play) {
|
|
|
305
306
|
return code;
|
|
306
307
|
} catch (error) {
|
|
307
308
|
if (written) throw error;
|
|
308
|
-
|
|
309
|
+
_chunkLZ37B62Kjs.writeExecutionOutput.call(void 0,
|
|
309
310
|
{
|
|
310
311
|
id,
|
|
311
312
|
status: "failed",
|
|
@@ -320,122 +321,17 @@ async function runPlay(reference, play) {
|
|
|
320
321
|
}
|
|
321
322
|
}
|
|
322
323
|
function registerRunCommand(program) {
|
|
323
|
-
program.command("run [name]").description(
|
|
324
|
-
"Run anything search returns: a tool, a play, or a local play file."
|
|
325
|
-
).option(
|
|
324
|
+
program.command("run [name]").description("Run a tool, a play, a play file, or inline code.").option(
|
|
326
325
|
"-e, --eval <code>",
|
|
327
|
-
"
|
|
328
|
-
).option("--input <json>", "Input as a JSON object").option(
|
|
329
|
-
"--input-file <path>",
|
|
330
|
-
"Input as a JSON object read from a file; - reads stdin"
|
|
331
|
-
).option(
|
|
332
|
-
"--json-out <path>",
|
|
333
|
-
"Save the whole result as JSON to this new file; - writes it to stdout"
|
|
334
|
-
).option(
|
|
326
|
+
"Code to run as a play body, instead of a name"
|
|
327
|
+
).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(
|
|
335
328
|
"--csv-out <[list=]path>",
|
|
336
|
-
"Save
|
|
329
|
+
"Save rows as CSV to this new file; repeat for more lists",
|
|
337
330
|
(value, previous = []) => [...previous, value]
|
|
338
|
-
).option(
|
|
339
|
-
"--fields <paths>",
|
|
340
|
-
"Only these comma-separated dotted paths, in the receipt and the CSV"
|
|
341
|
-
).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(
|
|
342
|
-
"--receipt-out <path>",
|
|
343
|
-
"Also save the JSON receipt to this new file"
|
|
344
|
-
).option(
|
|
345
|
-
"--dry-run",
|
|
346
|
-
"Check the input against the contract and show the price; nothing is sent"
|
|
347
|
-
).option(
|
|
348
|
-
"--fresh",
|
|
349
|
-
"Call providers again instead of reusing results saved by earlier runs"
|
|
350
|
-
).option(
|
|
351
|
-
"--max-credits <credits>",
|
|
352
|
-
"Stop a play run that would spend more Deepline credits than this"
|
|
353
|
-
).option(
|
|
331
|
+
).option("--fields <paths>", "Only these dotted paths, comma-separated").option("--dry-run", "Check the input and show the price; runs nothing").option(
|
|
354
332
|
"--timeout <duration>",
|
|
355
|
-
"Stop waiting after
|
|
356
|
-
).option(
|
|
357
|
-
"--logs-out <path>",
|
|
358
|
-
"Write a play's live logs to this new file; - writes them to stdout"
|
|
359
|
-
).addHelpText(
|
|
360
|
-
"after",
|
|
361
|
-
`
|
|
362
|
-
Name:
|
|
363
|
-
Any id deepline search returns: a tool id, a play name or reference, or a
|
|
364
|
-
local play file. It resolves as deepline describe resolves it.
|
|
365
|
-
deepline/<name> the Deepline tool or play, when a play your workspace
|
|
366
|
-
created has the same name (that one runs by default)
|
|
367
|
-
<play>@latest the newest saved revision; <play>@<revision-id> one
|
|
368
|
-
revision. The live revision runs by default.
|
|
369
|
-
-e '<code>' in place of a name: the code is the body of a play
|
|
370
|
-
function, input holds --input, and deepline is the
|
|
371
|
-
runtime, as in a .play.ts file in this directory.
|
|
372
|
-
|
|
373
|
-
Input:
|
|
374
|
-
One JSON object whose fields are the inputs deepline describe lists.
|
|
375
|
-
A play that reads a CSV takes the path as a field: '{"csv":"leads.csv"}'.
|
|
376
|
-
|
|
377
|
-
Output:
|
|
378
|
-
The data is always saved to a file: a new temporary one unless --json-out
|
|
379
|
-
or --csv-out names one. Output paths must not exist yet. A tool's data is
|
|
380
|
-
the provider's response; a play's is its result, each dataset handle
|
|
381
|
-
replaced by that dataset's rows.
|
|
382
|
-
The receipt says what ran, how it ended and what it cost, where the data
|
|
383
|
-
is, and what came back, within 32 lines (--lines changes it):
|
|
384
|
-
default the tool's declared outputs, else the data itself, read
|
|
385
|
-
breadth-first: every top-level field before nested ones
|
|
386
|
-
--fields only the paths you name; a path through a list applies to
|
|
387
|
-
each item, so people.email is every person's email
|
|
388
|
-
--full every field's type and first value
|
|
389
|
-
--csv-out writes the row list it names, else the one --fields reaches
|
|
390
|
-
into, else the tool's declared row list, else the largest:
|
|
391
|
-
--csv-out people=people.csv. Repeat it for more lists. --fields under a
|
|
392
|
-
list's path choose its columns; company.domain becomes its own column.
|
|
393
|
-
The full JSON Schema goes to a file the receipt names. --json prints the
|
|
394
|
-
receipt as JSON; --receipt-out also saves it to a file.
|
|
395
|
-
|
|
396
|
-
Where things are printed:
|
|
397
|
-
stdout the receipt; or the data, under --json-out - or --csv-out -
|
|
398
|
-
stderr progress, the live logs' path, and the receipt when the data
|
|
399
|
-
is on stdout
|
|
400
|
-
Only one of --json-out, --csv-out and --logs-out may use -.
|
|
401
|
-
|
|
402
|
-
Waiting:
|
|
403
|
-
run waits for the result. --timeout stops waiting, not the work: a play
|
|
404
|
-
keeps running and the receipt says how to check on it. --timeout 0
|
|
405
|
-
returns a play's run id at once. A play's live logs go to a temporary
|
|
406
|
-
file named on stderr when it starts; --logs-out chooses the file.
|
|
407
|
-
|
|
408
|
-
Reuse:
|
|
409
|
-
A tool call is saved under a retry key before it is sent. Running the same
|
|
410
|
-
call again within the hour, after an interruption, replays it instead of
|
|
411
|
-
paying twice. Plays reuse the results of calls they made before.
|
|
412
|
-
--fresh calls the providers again.
|
|
413
|
-
|
|
414
|
-
Cost:
|
|
415
|
-
--dry-run shows the price first. --max-credits caps one play run, in
|
|
416
|
-
place of the play's own billing.maxCreditsPerRun: a run that reaches it
|
|
417
|
-
stops, and its receipt says so. A tool call has one price, so the cap
|
|
418
|
-
applies to plays.
|
|
419
|
-
|
|
420
|
-
Follow-up:
|
|
421
|
-
deepline runs get <id> reads a run, or a tool call for 24 hours, again
|
|
422
|
-
by the id its receipt gave.
|
|
423
|
-
|
|
424
|
-
Exit codes:
|
|
425
|
-
0 completed
|
|
426
|
-
1 the tool or play failed, or is still running after --timeout
|
|
427
|
-
2 nothing ran: bad input or flags, an existing output file, an unknown
|
|
428
|
-
name, a monitor type, or a --dry-run that found missing input
|
|
429
|
-
|
|
430
|
-
Examples:
|
|
431
|
-
deepline run hunter_email_verifier --input '{"email":"a@b.com"}'
|
|
432
|
-
deepline run person-linkedin-to-email --input-file input.json --dry-run
|
|
433
|
-
deepline run my.play.ts --input '{"csv":"leads.csv"}' --csv-out out.csv
|
|
434
|
-
deepline run company-search --input-file - --json-out - < input.json
|
|
435
|
-
deepline run my-play@latest --timeout 0
|
|
436
|
-
deepline run -e 'return { doubled: input.n * 2 };' --input '{"n":21}'
|
|
437
|
-
`
|
|
438
|
-
).action(async (name, options) => {
|
|
333
|
+
"Stop waiting after 90s, 10m, 1h; 0 returns at once"
|
|
334
|
+
).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) => {
|
|
439
335
|
process.exitCode = await runAnything(name, options);
|
|
440
336
|
});
|
|
441
337
|
}
|