deepline 0.3.574 → 0.3.576
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 +13 -1
- 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 +149 -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/durable-runs-rollout.ts +17 -0
- package/dist/bundling-sources/shared_libs/play-runtime/experiment-switches.ts +8 -0
- package/dist/bundling-sources/shared_libs/play-runtime/governor/governor.ts +4 -0
- package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/backends/modal.ts +190 -9
- package/dist/bundling-sources/shared_libs/play-runtime/runtime-speed-profile.ts +41 -5
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/postgres.ts +6 -66
- package/dist/cli/{agents-6WN5LYUP.mjs → agents-BLJR2Y3X.mjs} +213 -19
- package/dist/cli/{agents-7ZZSF4FS.js → agents-CJQ7KBFT.js} +235 -41
- package/dist/cli/auth-GSDYP4ZN.js +44 -0
- package/dist/cli/{auth-I2QVO677.mjs → auth-SLZIRCPE.mjs} +5 -5
- package/dist/cli/{billing-YPH4GEWU.mjs → billing-6Q4SK5KF.mjs} +9 -9
- package/dist/cli/{billing-44QFBUWA.js → billing-IECMVARO.js} +102 -102
- package/dist/cli/{chunk-MGF3MK27.mjs → chunk-2UHEJPSS.mjs} +5 -5
- package/dist/cli/{chunk-2QYU57RG.js → chunk-36254433.js} +3 -3
- package/dist/cli/{chunk-ECLCRE5P.js → chunk-45POZK3F.js} +3 -3
- package/dist/cli/{chunk-5E2PAGF5.js → chunk-4KIIXV5Z.js} +21 -21
- package/dist/cli/{chunk-7334X74C.mjs → chunk-5VABOJ4M.mjs} +2 -2
- package/dist/cli/{chunk-YR4REP4D.mjs → chunk-66K7F7LR.mjs} +1 -1
- package/dist/cli/{chunk-6GZIT3TH.js → chunk-6JQZC6HX.js} +20 -20
- package/dist/cli/{chunk-ID3LGPOE.js → chunk-6RY5COUY.js} +23 -23
- package/dist/cli/{chunk-VGIDPJXM.mjs → chunk-7DI34I73.mjs} +3 -3
- package/dist/cli/{chunk-Z3XFXFRT.js → chunk-ANPHEXTT.js} +9 -9
- package/dist/cli/{chunk-NRVEVKXR.mjs → chunk-AUR24RQB.mjs} +2 -2
- package/dist/cli/{chunk-JCO226JM.mjs → chunk-AZFSCPYK.mjs} +89 -10
- package/dist/cli/{chunk-2RPRSTHD.js → chunk-BRPUB6UA.js} +5 -5
- package/dist/cli/{chunk-XVBEEGI4.mjs → chunk-CUIFDMNP.mjs} +11 -1
- package/dist/cli/{chunk-OIZUFRTE.mjs → chunk-D5LWYP2H.mjs} +3 -3
- package/dist/cli/{chunk-PP5RMEQQ.js → chunk-DGY4EYIX.js} +5 -5
- package/dist/cli/{chunk-Q3A53SWK.mjs → chunk-DWUESXDD.mjs} +1 -1
- package/dist/cli/{chunk-7UR57HPJ.js → chunk-E4M4QZBP.js} +11 -1
- package/dist/cli/{chunk-DOZIWA66.js → chunk-EQO77FQZ.js} +5 -5
- package/dist/cli/{chunk-N6I3BB2O.js → chunk-F4H26PP6.js} +274 -274
- package/dist/cli/{chunk-L2NXB4WG.mjs → chunk-FYKHAT2F.mjs} +64 -3
- package/dist/cli/{chunk-QPSBV4FD.mjs → chunk-GI57Q7JU.mjs} +2 -2
- package/dist/cli/{chunk-H7PVSG3L.js → chunk-GZ7KYGYE.js} +15 -15
- package/dist/cli/{chunk-PW6NKI2A.mjs → chunk-HE53AI2E.mjs} +3 -3
- package/dist/cli/{chunk-LJLM4BUL.js → chunk-HHMO3CON.js} +6 -6
- package/dist/cli/{chunk-2TMAKJBT.mjs → chunk-JPFAD6G6.mjs} +2 -2
- package/dist/cli/{chunk-VLUBEMWM.js → chunk-JSIOLCTK.js} +20 -20
- package/dist/cli/{chunk-B2XLIQPH.mjs → chunk-KQTZO6NT.mjs} +2 -2
- package/dist/cli/{chunk-SLXCVPN7.js → chunk-L6H72AIX.js} +2 -2
- package/dist/cli/{chunk-X7RKCAMX.mjs → chunk-LKC7PHDX.mjs} +4 -4
- package/dist/cli/{chunk-DG56RWI2.js → chunk-M23G33MH.js} +2 -2
- package/dist/cli/{chunk-IB225ZK4.js → chunk-MDJ4LPQ5.js} +4 -4
- package/dist/cli/{chunk-AFPGYZBH.js → chunk-MXK4M7HP.js} +17 -17
- package/dist/cli/{chunk-KSHZY52O.js → chunk-MXPCTF57.js} +89 -10
- package/dist/cli/{chunk-6B5EZOI3.js → chunk-NQFZ7FYN.js} +10 -10
- package/dist/cli/{chunk-OH6WOID2.mjs → chunk-OMVBBAQP.mjs} +2 -2
- package/dist/cli/{chunk-D6ZVRKJ2.js → chunk-OXRG325T.js} +41 -41
- package/dist/cli/{chunk-G7OR3GVD.mjs → chunk-PU5VCDCJ.mjs} +5 -5
- package/dist/cli/{chunk-VYSUJMB5.js → chunk-PYFMNPTA.js} +8 -8
- package/dist/cli/{chunk-LCAXLGAY.mjs → chunk-QCD7BQ5Z.mjs} +2 -2
- package/dist/cli/{chunk-4T2U72SP.mjs → chunk-R5NKLZL2.mjs} +1 -1
- package/dist/cli/{chunk-ZTCP5BHH.mjs → chunk-RW3URFZK.mjs} +2 -2
- package/dist/cli/{chunk-IA2LTIWO.mjs → chunk-S4IW4NAI.mjs} +2 -2
- package/dist/cli/{chunk-UXIUAIL2.js → chunk-SBZSJQEI.js} +53 -53
- package/dist/cli/{chunk-XMBTAPHR.js → chunk-SKHUWQZE.js} +7 -7
- package/dist/cli/{chunk-S22FSNNC.mjs → chunk-SY3OKOI5.mjs} +1 -1
- package/dist/cli/{chunk-MAMGREBW.mjs → chunk-TZHS2W5Z.mjs} +1 -1
- package/dist/cli/{chunk-BUBOZKH2.js → chunk-UD6M2ZTY.js} +2 -2
- package/dist/cli/{chunk-W6UCS3O6.mjs → chunk-UGIH4462.mjs} +5 -5
- package/dist/cli/{chunk-7GQU46SZ.js → chunk-V25CXBR2.js} +26 -26
- package/dist/cli/{chunk-G2HW2SAP.js → chunk-WDWV77SJ.js} +13 -13
- package/dist/cli/{chunk-I62ZBEKH.js → chunk-WPGZ6V36.js} +48 -48
- package/dist/cli/{chunk-GMQZFWQU.mjs → chunk-X5V6S5KI.mjs} +7 -7
- package/dist/cli/{chunk-ZFXDD7VM.mjs → chunk-XJNJ3BWU.mjs} +1 -1
- package/dist/cli/{chunk-NDDGFX4X.js → chunk-Y4A6Y5EY.js} +11 -11
- package/dist/cli/{chunk-LLSCFLFU.mjs → chunk-YHM64N5C.mjs} +1 -1
- package/dist/cli/{chunk-JY7RKJ65.mjs → chunk-ZIGMC2X4.mjs} +13 -13
- package/dist/cli/{chunk-IXYVHTRZ.js → chunk-ZO65VJRJ.js} +70 -9
- package/dist/cli/{chunk-SRUNYWQ2.mjs → chunk-ZRC52APB.mjs} +1 -1
- package/dist/cli/{chunk-DX646HO7.mjs → chunk-ZYN6S6G2.mjs} +4 -4
- package/dist/cli/command-docs.js +2 -2
- package/dist/cli/command-docs.mjs +1 -1
- package/dist/cli/{concurrent-runs-help-ROQM6UB3.mjs → concurrent-runs-help-H3SA7J6H.mjs} +6 -6
- package/dist/cli/concurrent-runs-help-PB7GT6F2.js +22 -0
- package/dist/cli/{csv-FWGSY4GE.js → csv-6DEKR3QQ.js} +13 -13
- package/dist/cli/{csv-R7GV33BC.mjs → csv-ICXI7JAS.mjs} +4 -4
- package/dist/cli/{db-OCH35YJG.js → db-AG7INMLP.js} +27 -27
- package/dist/cli/{db-UWXA4RRV.mjs → db-VI7T5E6O.mjs} +6 -6
- package/dist/cli/describe-LMHIG3DP.js +50 -0
- package/dist/cli/{describe-QI4HMUGE.mjs → describe-S6NFWWGK.mjs} +21 -21
- package/dist/cli/describe-core.d.mts +10 -1
- package/dist/cli/describe-core.d.ts +10 -1
- package/dist/cli/describe-core.js +4 -4
- package/dist/cli/describe-core.mjs +3 -3
- package/dist/cli/{executions-7CFGC24E.js → executions-M5R5QHIA.js} +8 -8
- package/dist/cli/{executions-YF3KMZZN.mjs → executions-MK7H4Q2H.mjs} +6 -6
- package/dist/cli/{feedback-YCZHHSBS.js → feedback-L3L4FEQL.js} +14 -14
- package/dist/cli/{feedback-DWIWBS7O.mjs → feedback-ZHATL2XF.mjs} +6 -6
- package/dist/cli/{git-XCGMQQOD.mjs → git-W5DHNH2Q.mjs} +5 -5
- package/dist/cli/git-WYNCLDHD.js +26 -0
- package/dist/cli/index.js +148 -148
- package/dist/cli/index.mjs +47 -47
- package/dist/cli/{integrations-5ABAJBSW.mjs → integrations-73YSN2LI.mjs} +7 -7
- package/dist/cli/{integrations-IEZA3TGK.js → integrations-IBWNO3YP.js} +29 -29
- package/dist/cli/{legacy-noops-OZMY73Y3.mjs → legacy-noops-4LFZJTDX.mjs} +6 -6
- package/dist/cli/{legacy-noops-KNFLJ5P2.js → legacy-noops-AE6DBYJM.js} +9 -9
- package/dist/cli/{mcp-NLQAO7KP.js → mcp-BKL6M6OI.js} +24 -24
- package/dist/cli/{mcp-WSPFKQPZ.mjs → mcp-E6PTSNDE.mjs} +4 -4
- package/dist/cli/{monitors-LPKFFTOX.mjs → monitors-MXJ27KQK.mjs} +7 -7
- package/dist/cli/{monitors-BJYOB4S3.js → monitors-SW7ZCPPT.js} +100 -100
- package/dist/cli/{org-RYPMUYUW.mjs → org-HYAJ2MIK.mjs} +6 -6
- package/dist/cli/{org-WIVHI4WT.js → org-XJ44KZ5I.js} +121 -121
- package/dist/cli/{outcomes-QKX7IE3O.js → outcomes-PTXGG4BZ.js} +14 -14
- package/dist/cli/{outcomes-FADJYC4I.mjs → outcomes-PUMAXRGD.mjs} +6 -6
- package/dist/cli/{play-ID73J3NP.js → play-EPDZ3GDV.js} +349 -349
- package/dist/cli/{play-4ZKK5Q7U.mjs → play-QN3X6IAE.mjs} +20 -20
- package/dist/cli/{providers-WCCGYGW6.js → providers-GNJFGNDH.js} +9 -9
- package/dist/cli/{providers-LURYBSNO.mjs → providers-JIN5UQ7Z.mjs} +6 -6
- package/dist/cli/{quickstart-KCCSEE5J.mjs → quickstart-4EBFHGB7.mjs} +4 -4
- package/dist/cli/{quickstart-LVPOU25V.js → quickstart-YH6NNC5I.js} +6 -6
- package/dist/cli/{run-2QMJRCVA.js → run-4DRF7KQJ.js} +70 -49
- package/dist/cli/{run-XXK7DDUF.mjs → run-5467KBCP.mjs} +48 -27
- package/dist/cli/search-B2KCWPUV.js +32 -0
- package/dist/cli/{search-ZYAWW3CK.mjs → search-ZERTOGH6.mjs} +7 -7
- package/dist/cli/{search-output-N45AIOB4.mjs → search-output-OAVJXRFO.mjs} +5 -5
- package/dist/cli/{search-output-YNXAZSKT.js → search-output-OMNZN2LP.js} +8 -8
- package/dist/cli/{secrets-MHT27L2M.js → secrets-7XK2BGYX.js} +15 -15
- package/dist/cli/{secrets-7Q3AOUAS.mjs → secrets-KAVDYB4P.mjs} +6 -6
- package/dist/cli/sessions-PUQURPPC.js +23 -0
- package/dist/cli/{sessions-6QKOM7M3.mjs → sessions-TNPI6XWB.mjs} +6 -6
- package/dist/cli/{settings-NPVIDENI.mjs → settings-KUABXRAJ.mjs} +12 -12
- package/dist/cli/{settings-OP7Q6YX6.js → settings-RQ3Z3JCM.js} +85 -85
- package/dist/cli/{setup-OOT3EIMF.mjs → setup-6IX6BSS7.mjs} +9 -9
- package/dist/cli/{setup-RT6GHL3W.js → setup-TDOWNKYN.js} +49 -49
- package/dist/cli/skills-AACRY2TV.js +37 -0
- package/dist/cli/{skills-TEXI4CLZ.mjs → skills-Z6NBJ4KP.mjs} +7 -7
- package/dist/cli/{tools-G5L36M3X.mjs → tools-LQKFWK7J.mjs} +19 -19
- package/dist/cli/tools-OTYA4722.js +57 -0
- package/dist/cli/update-JTGMI6OJ.js +37 -0
- package/dist/cli/{update-YNKQTE4D.mjs → update-RUB4EIKW.mjs} +9 -9
- package/dist/cli/{views-IQFMUMLU.mjs → views-D7WY5QPR.mjs} +6 -6
- package/dist/cli/{views-OVQ5AQAU.js → views-FFLXLAGC.js} +21 -21
- package/dist/cli/{workflow-Y5IFMI7N.mjs → workflow-BV2OTEQD.mjs} +7 -7
- package/dist/cli/{workflow-RCBYXIFZ.js → workflow-QW7QVODA.js} +17 -17
- package/dist/index.js +9 -9
- package/dist/index.mjs +6 -6
- package/dist/install-integrity.json +122 -122
- package/dist/release.d.mts +9 -1
- package/dist/release.d.ts +9 -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-UKPV5U2B.js +0 -44
- package/dist/cli/concurrent-runs-help-BFVCUJF4.js +0 -22
- package/dist/cli/describe-6OI5K2SH.js +0 -50
- package/dist/cli/git-TGLNZRS3.js +0 -26
- package/dist/cli/search-AQSAXA6D.js +0 -32
- package/dist/cli/sessions-RGD7L4LC.js +0 -23
- package/dist/cli/skills-ERAA734H.js +0 -37
- package/dist/cli/tools-D5SZSIIH.js +0 -57
- package/dist/cli/update-WZ6527EF.js +0 -37
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
handleDeploymentGet,
|
|
3
3
|
handleDeploymentsList
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-5VABOJ4M.mjs";
|
|
5
5
|
import {
|
|
6
6
|
DEFAULT_MAX_CONCURRENT_EXTERNAL_CALLS,
|
|
7
7
|
MAX_CONFIGURABLE_CONCURRENT_EXTERNAL_CALLS,
|
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
parsePlayRunHeaderFlag,
|
|
10
10
|
parsePlayRunOptions,
|
|
11
11
|
resolvePlayRunCliOptions
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-AUR24RQB.mjs";
|
|
13
13
|
import {
|
|
14
14
|
ExecutionOutputError,
|
|
15
15
|
TABLE_EXPORT_ERROR_COLUMN,
|
|
@@ -22,15 +22,15 @@ import {
|
|
|
22
22
|
underscoreKeysLast,
|
|
23
23
|
writeExecutionOutput,
|
|
24
24
|
writeRunDatasetCsv
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-S4IW4NAI.mjs";
|
|
26
26
|
import {
|
|
27
27
|
registerDeprecatedSearchCommand
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-LKC7PHDX.mjs";
|
|
29
29
|
import "./chunk-5AEDYVB6.mjs";
|
|
30
30
|
import {
|
|
31
31
|
buildPlayDashboardUrl,
|
|
32
32
|
buildPlayRunUrl
|
|
33
|
-
} from "./chunk-
|
|
33
|
+
} from "./chunk-FYKHAT2F.mjs";
|
|
34
34
|
import {
|
|
35
35
|
shellQuote
|
|
36
36
|
} from "./chunk-STXDSVQZ.mjs";
|
|
@@ -51,10 +51,10 @@ import {
|
|
|
51
51
|
import {
|
|
52
52
|
pinLocalPlayImports,
|
|
53
53
|
planLocalPlayExecution
|
|
54
|
-
} from "./chunk-
|
|
54
|
+
} from "./chunk-GI57Q7JU.mjs";
|
|
55
55
|
import {
|
|
56
56
|
DeeplineClient
|
|
57
|
-
} from "./chunk-
|
|
57
|
+
} from "./chunk-QCD7BQ5Z.mjs";
|
|
58
58
|
import {
|
|
59
59
|
RUN_EVENT_SEARCH_KIND_VALUES,
|
|
60
60
|
RunEventQueryInputError,
|
|
@@ -67,7 +67,7 @@ import {
|
|
|
67
67
|
normalizePlayStatus,
|
|
68
68
|
normalizeRunEventOperationRequest,
|
|
69
69
|
parseLogLevel
|
|
70
|
-
} from "./chunk-
|
|
70
|
+
} from "./chunk-R5NKLZL2.mjs";
|
|
71
71
|
import "./chunk-FZHMNK6F.mjs";
|
|
72
72
|
import {
|
|
73
73
|
CSV_DATA_INPUT_KEY,
|
|
@@ -90,18 +90,18 @@ import {
|
|
|
90
90
|
import {
|
|
91
91
|
checkPlayRunCompatibility,
|
|
92
92
|
usesCliPlayAdmission
|
|
93
|
-
} from "./chunk-
|
|
93
|
+
} from "./chunk-OMVBBAQP.mjs";
|
|
94
94
|
import {
|
|
95
95
|
isCliTraceEnabled,
|
|
96
96
|
recordCliTrace,
|
|
97
97
|
resolveCliMaintenancePolicy,
|
|
98
98
|
traceCliSpan
|
|
99
|
-
} from "./chunk-
|
|
100
|
-
import "./chunk-
|
|
99
|
+
} from "./chunk-SY3OKOI5.mjs";
|
|
100
|
+
import "./chunk-2UHEJPSS.mjs";
|
|
101
101
|
import {
|
|
102
102
|
createCliProgress,
|
|
103
103
|
getActiveCliProgress
|
|
104
|
-
} from "./chunk-
|
|
104
|
+
} from "./chunk-66K7F7LR.mjs";
|
|
105
105
|
import {
|
|
106
106
|
formatNonStandardSandboxRuntimeWarning
|
|
107
107
|
} from "./chunk-LRZGS6RZ.mjs";
|
|
@@ -122,14 +122,14 @@ import {
|
|
|
122
122
|
printJsonError,
|
|
123
123
|
renderCommandEnvelopeText,
|
|
124
124
|
shouldEmitJson
|
|
125
|
-
} from "./chunk-
|
|
125
|
+
} from "./chunk-JPFAD6G6.mjs";
|
|
126
126
|
import {
|
|
127
127
|
cliFeatureEnabled,
|
|
128
128
|
resolveCliDashboardOrgId
|
|
129
|
-
} from "./chunk-
|
|
129
|
+
} from "./chunk-ZRC52APB.mjs";
|
|
130
130
|
import {
|
|
131
131
|
fetchWithDeploymentProtection
|
|
132
|
-
} from "./chunk-
|
|
132
|
+
} from "./chunk-XJNJ3BWU.mjs";
|
|
133
133
|
import "./chunk-ASB47RXJ.mjs";
|
|
134
134
|
import "./chunk-DLIRSHV6.mjs";
|
|
135
135
|
import {
|
|
@@ -139,7 +139,7 @@ import {
|
|
|
139
139
|
playRunIdLookupPrefix,
|
|
140
140
|
shortPlayRunId
|
|
141
141
|
} from "./chunk-2MGZAI54.mjs";
|
|
142
|
-
import "./chunk-
|
|
142
|
+
import "./chunk-CUIFDMNP.mjs";
|
|
143
143
|
import "./chunk-WZYKRD7T.mjs";
|
|
144
144
|
import {
|
|
145
145
|
__commonJS,
|
|
@@ -16808,7 +16808,7 @@ async function handlePlaySave(args) {
|
|
|
16808
16808
|
}
|
|
16809
16809
|
}
|
|
16810
16810
|
async function enforceOutcomeGuardrail(input) {
|
|
16811
|
-
const { requireOutcomeGuardrail } = await import("./outcomes-
|
|
16811
|
+
const { requireOutcomeGuardrail } = await import("./outcomes-PUMAXRGD.mjs");
|
|
16812
16812
|
try {
|
|
16813
16813
|
const gate = await requireOutcomeGuardrail({ ...input, phase: "reserve" });
|
|
16814
16814
|
return {
|
|
@@ -16836,7 +16836,7 @@ async function enforceOutcomeGuardrail(input) {
|
|
|
16836
16836
|
}
|
|
16837
16837
|
}
|
|
16838
16838
|
async function settleOutcomeApproval(input) {
|
|
16839
|
-
const { requireOutcomeGuardrail } = await import("./outcomes-
|
|
16839
|
+
const { requireOutcomeGuardrail } = await import("./outcomes-PUMAXRGD.mjs");
|
|
16840
16840
|
const id = `${input.outcome}/${input.approval.seq}`;
|
|
16841
16841
|
try {
|
|
16842
16842
|
await requireOutcomeGuardrail({
|
|
@@ -17850,7 +17850,7 @@ Examples:
|
|
|
17850
17850
|
process.exitCode = await ownView();
|
|
17851
17851
|
return;
|
|
17852
17852
|
}
|
|
17853
|
-
const { describeAnything } = await import("./describe-
|
|
17853
|
+
const { describeAnything } = await import("./describe-S6NFWWGK.mjs");
|
|
17854
17854
|
process.exitCode = await describeAnything(
|
|
17855
17855
|
name,
|
|
17856
17856
|
{
|
|
@@ -18241,7 +18241,7 @@ Examples:
|
|
|
18241
18241
|
new Option2("--log-failed", "Attach terminal-failure logs").hideHelp()
|
|
18242
18242
|
).action(async (runId, options) => {
|
|
18243
18243
|
if (TOOL_EXECUTION_ID.test(runId)) {
|
|
18244
|
-
const { getToolExecutionReceipt } = await import("./tools-
|
|
18244
|
+
const { getToolExecutionReceipt } = await import("./tools-LQKFWK7J.mjs");
|
|
18245
18245
|
process.exitCode = await getToolExecutionReceipt(runId, {
|
|
18246
18246
|
receiptJson: options.json !== void 0
|
|
18247
18247
|
});
|
|
@@ -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 _chunkBRPUB6UAjs = require('./chunk-BRPUB6UA.js');
|
|
4
|
+
require('./chunk-PYFMNPTA.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 _chunkJSIOLCTKjs = require('./chunk-JSIOLCTK.js');
|
|
12
|
+
require('./chunk-36254433.js');
|
|
13
|
+
require('./chunk-MDJ4LPQ5.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-E4M4QZBP.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, _chunkBRPUB6UAjs.DeeplineClient)();
|
|
25
25
|
const changed = options.changed === true;
|
|
26
|
-
const emitJson = options.json === true ||
|
|
26
|
+
const emitJson = options.json === true || _chunkJSIOLCTKjs.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
|
+
_chunkJSIOLCTKjs.printCommandEnvelope.call(void 0,
|
|
47
47
|
{
|
|
48
48
|
providers,
|
|
49
49
|
count: providers.length,
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
import {
|
|
2
2
|
DeeplineClient
|
|
3
|
-
} from "./chunk-
|
|
4
|
-
import "./chunk-
|
|
3
|
+
} from "./chunk-QCD7BQ5Z.mjs";
|
|
4
|
+
import "./chunk-R5NKLZL2.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-JPFAD6G6.mjs";
|
|
12
|
+
import "./chunk-ZRC52APB.mjs";
|
|
13
|
+
import "./chunk-XJNJ3BWU.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-CUIFDMNP.mjs";
|
|
19
19
|
import "./chunk-WZYKRD7T.mjs";
|
|
20
20
|
import "./chunk-KRD6H754.mjs";
|
|
21
21
|
|
|
@@ -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-JPFAD6G6.mjs";
|
|
5
|
+
import "./chunk-ZRC52APB.mjs";
|
|
6
|
+
import "./chunk-XJNJ3BWU.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-CUIFDMNP.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 _chunkJSIOLCTKjs = require('./chunk-JSIOLCTK.js');
|
|
5
|
+
require('./chunk-36254433.js');
|
|
6
|
+
require('./chunk-MDJ4LPQ5.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-E4M4QZBP.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 = _chunkJSIOLCTKjs.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
|
+
_chunkJSIOLCTKjs.printCommandEnvelope.call(void 0,
|
|
27
27
|
{
|
|
28
28
|
ok: true,
|
|
29
29
|
status: "deprecated",
|
|
@@ -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 _chunkANPHEXTTjs = require('./chunk-ANPHEXTT.js');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
var
|
|
8
|
+
var _chunk4KIIXV5Zjs = require('./chunk-4KIIXV5Z.js');
|
|
9
9
|
|
|
10
10
|
|
|
11
|
-
var
|
|
11
|
+
var _chunkF4H26PP6js = require('./chunk-F4H26PP6.js');
|
|
12
12
|
|
|
13
13
|
|
|
14
14
|
|
|
15
15
|
|
|
16
16
|
|
|
17
|
-
var
|
|
18
|
-
require('./chunk-
|
|
19
|
-
require('./chunk-
|
|
17
|
+
var _chunkY4A6Y5EYjs = require('./chunk-Y4A6Y5EY.js');
|
|
18
|
+
require('./chunk-GZ7KYGYE.js');
|
|
19
|
+
require('./chunk-NQFZ7FYN.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-BRPUB6UA.js');
|
|
31
31
|
require('./chunk-BLMB4N63.js');
|
|
32
|
-
require('./chunk-
|
|
32
|
+
require('./chunk-PYFMNPTA.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-6RY5COUY.js');
|
|
37
|
+
require('./chunk-L6H72AIX.js');
|
|
38
|
+
require('./chunk-6JQZC6HX.js');
|
|
39
|
+
require('./chunk-M23G33MH.js');
|
|
40
|
+
require('./chunk-OXRG325T.js');
|
|
41
|
+
require('./chunk-WPGZ6V36.js');
|
|
42
42
|
|
|
43
43
|
|
|
44
|
-
var
|
|
44
|
+
var _chunk45POZK3Fjs = require('./chunk-45POZK3F.js');
|
|
45
45
|
|
|
46
46
|
|
|
47
|
-
var
|
|
48
|
-
require('./chunk-
|
|
49
|
-
require('./chunk-
|
|
47
|
+
var _chunkJSIOLCTKjs = require('./chunk-JSIOLCTK.js');
|
|
48
|
+
require('./chunk-36254433.js');
|
|
49
|
+
require('./chunk-MDJ4LPQ5.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-E4M4QZBP.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, () => ( "{}")) : _chunkF4H26PP6js.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
|
+
_chunkY4A6Y5EYjs.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 (!_chunkY4A6Y5EYjs.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-OTYA4722.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-EPDZ3GDV.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 (_chunkANPHEXTTjs.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 _chunk4KIIXV5Zjs.findNamed.call(void 0, base, {});
|
|
174
180
|
if (!found.chosen && revision) {
|
|
175
|
-
found = await
|
|
181
|
+
found = await _chunk4KIIXV5Zjs.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(_chunk4KIIXV5Zjs.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-OTYA4722.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
|
+
_chunkY4A6Y5EYjs.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-EPDZ3GDV.js")));
|
|
237
255
|
const { output, options, revision } = play;
|
|
238
256
|
if (options.dryRun) {
|
|
239
|
-
const dryRunOptions =
|
|
257
|
+
const dryRunOptions = _chunkANPHEXTTjs.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) => _chunkY4A6Y5EYjs.writeExecutionOutput.call(void 0,
|
|
246
264
|
{
|
|
247
265
|
id: null,
|
|
248
266
|
status: "failed",
|
|
249
|
-
error:
|
|
267
|
+
error: _chunkJSIOLCTKjs.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) => _chunkY4A6Y5EYjs.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 _chunkY4A6Y5EYjs.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 = _chunk45POZK3Fjs.createCliProgress.call(void 0, true);
|
|
294
|
+
if (!play.noWait) progress.setLogWriter(_chunkY4A6Y5EYjs.openLogDestination.call(void 0, output));
|
|
277
295
|
progress.setQuiet(process.stderr.isTTY !== true);
|
|
278
296
|
try {
|
|
279
297
|
const code = await handlePlayRun(
|
|
280
|
-
|
|
298
|
+
_chunkANPHEXTTjs.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
|
+
_chunkY4A6Y5EYjs.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
|
+
_chunkY4A6Y5EYjs.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
|
+
_chunkY4A6Y5EYjs.writeExecutionOutput.call(void 0,
|
|
336
354
|
{
|
|
337
355
|
id,
|
|
338
356
|
status: "failed",
|
|
339
|
-
error:
|
|
357
|
+
error: _chunkJSIOLCTKjs.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 _chunkY4A6Y5EYjs.ExecutionOutputError)) {
|
|
366
387
|
throw error;
|
|
367
388
|
}
|
|
368
389
|
process.exitCode = 1;
|