deepline 0.3.522 → 0.3.524
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bundling-sources/sdk/src/client-core.ts +178 -60
- package/dist/bundling-sources/sdk/src/index.ts +3 -0
- package/dist/bundling-sources/sdk/src/release.ts +1 -1
- package/dist/bundling-sources/shared_libs/monitors/signal-radars/inbound-dead-letter.ts +60 -14
- package/dist/bundling-sources/shared_libs/monitors/signal-radars/inbound-queue-delivery.ts +9 -3
- package/dist/bundling-sources/shared_libs/observability/scheduled-jobs.json +1 -1
- package/dist/bundling-sources/shared_libs/play-runtime/context.ts +406 -40
- package/dist/bundling-sources/shared_libs/play-runtime/ctx-types.ts +1 -0
- package/dist/bundling-sources/shared_libs/play-runtime/db-session-renewal.ts +209 -0
- package/dist/bundling-sources/shared_libs/play-runtime/durable-runs-rollout.ts +16 -6
- package/dist/bundling-sources/shared_libs/play-runtime/freshness-receipt-execution.ts +388 -13
- package/dist/bundling-sources/shared_libs/play-runtime/launch-identity.ts +28 -0
- package/dist/bundling-sources/shared_libs/play-runtime/runner-app/runtime-tool-hooks.ts +5 -0
- package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/backends/daytona-modal-fallback.ts +1 -0
- package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/backends/daytona.ts +38 -5
- package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/backends/modal.ts +92 -10
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/absurd-deadline-reconciliation.ts +96 -25
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/absurd-runtime-worker.ts +29 -0
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/absurd.ts +139 -17
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/durable-run-sql.ts +26 -3
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/postgres.ts +145 -5
- package/dist/bundling-sources/shared_libs/play-runtime/tool-cache-policy.ts +190 -10
- package/dist/bundling-sources/shared_libs/play-runtime/tool-execute-retry-policy.ts +85 -5
- package/dist/bundling-sources/shared_libs/plays/authoring-contract.ts +21 -11
- package/dist/cli/auth-OKPHHMMP.js +43 -0
- package/dist/cli/{auth-YIBY5IKT.mjs → auth-QXJMVLPN.mjs} +5 -5
- package/dist/cli/{billing-UDKL53GI.js → billing-N5R4HTHT.js} +82 -82
- package/dist/cli/{billing-G3IX3SNY.mjs → billing-SNSIFM4B.mjs} +7 -7
- package/dist/cli/{chunk-EJBW7Y6Z.js → chunk-2ZWNIS54.js} +108 -96
- package/dist/cli/{chunk-3KMGVOBM.mjs → chunk-2ZX7XSAQ.mjs} +4 -4
- package/dist/cli/{chunk-4TUMKJZX.mjs → chunk-3WWTBQHC.mjs} +2 -2
- package/dist/cli/{chunk-MD524MRB.mjs → chunk-536TGWR6.mjs} +1 -1
- package/dist/cli/{chunk-37SXIFIU.js → chunk-66N76YZG.js} +44 -44
- package/dist/cli/{chunk-BZY335JP.js → chunk-7E6B7VMS.js} +5 -5
- package/dist/cli/{chunk-HYR34KFA.js → chunk-7OQGZBDG.js} +109 -24
- package/dist/cli/{chunk-GVKW3LCA.js → chunk-7QM6DNR4.js} +11 -11
- package/dist/cli/{chunk-DNJJ3ULJ.js → chunk-ANKD3AIR.js} +2 -2
- package/dist/cli/{chunk-4DFWDA2Q.js → chunk-ATATJNJ6.js} +9 -9
- package/dist/cli/{chunk-ZZ7U4YJS.mjs → chunk-BXIQD2IY.mjs} +1 -1
- package/dist/cli/{chunk-XT25FX6T.js → chunk-BXVYVIMB.js} +3 -3
- package/dist/cli/{chunk-XR6TN5DT.mjs → chunk-CH7JVSA7.mjs} +6 -6
- package/dist/cli/{chunk-RKE5YTHY.mjs → chunk-EO55Y4QW.mjs} +5 -5
- package/dist/cli/{chunk-RI672VNY.js → chunk-EQNAQENZ.js} +2 -2
- package/dist/cli/{chunk-LFSOBW7E.mjs → chunk-FXTV5B3D.mjs} +22 -10
- package/dist/cli/{chunk-C6WGMODR.mjs → chunk-GMO3JDZA.mjs} +2 -2
- package/dist/cli/{chunk-DRDZBRXV.js → chunk-GTGJBZVH.js} +7 -7
- package/dist/cli/{chunk-SFMCKB57.mjs → chunk-HLAFGQPV.mjs} +76 -34
- package/dist/cli/{chunk-534YYHIF.js → chunk-HTYT2OHB.js} +6 -6
- package/dist/cli/{chunk-ZZLZCO6Y.js → chunk-I75VRGQG.js} +22 -22
- package/dist/cli/{chunk-Y3LDRCMB.mjs → chunk-II3BJKCH.mjs} +2 -2
- package/dist/cli/{chunk-5BQPEHEP.js → chunk-JDIQBZ6O.js} +14 -14
- package/dist/cli/{chunk-ENWJFUWK.mjs → chunk-KKPBCB6D.mjs} +2 -2
- package/dist/cli/{chunk-BONXEWYF.mjs → chunk-KSQXBLRW.mjs} +3 -3
- package/dist/cli/{chunk-7JEN3FX4.js → chunk-LRWDZDBS.js} +5 -5
- package/dist/cli/{chunk-5477PEHL.mjs → chunk-MW3YMPD2.mjs} +1 -1
- package/dist/cli/{chunk-VFCVH2LV.mjs → chunk-NUC7ZVDG.mjs} +5 -5
- package/dist/cli/{chunk-DLDWAPA5.js → chunk-OCT4SUJA.js} +4 -4
- package/dist/cli/{chunk-FQQAAR3Q.mjs → chunk-OQ5G7RFQ.mjs} +1 -1
- package/dist/cli/{chunk-VIM6I7RC.js → chunk-PFKKZVFK.js} +41 -41
- package/dist/cli/{chunk-OAQIVJFY.mjs → chunk-PFKWKWUJ.mjs} +2 -2
- package/dist/cli/{chunk-52MHE7B4.mjs → chunk-R457IMHJ.mjs} +1 -1
- package/dist/cli/{chunk-UV6XCHOZ.mjs → chunk-RIX26ZJD.mjs} +1 -1
- package/dist/cli/{chunk-RDJTCW3I.mjs → chunk-RTDX5NNN.mjs} +3 -3
- package/dist/cli/{chunk-FNHUDCJE.js → chunk-RUULUCBP.js} +10 -10
- package/dist/cli/{chunk-GMYDVW7Z.js → chunk-SF4QJVBE.js} +3 -3
- package/dist/cli/{chunk-DARD7TJ7.js → chunk-SMWFOGUT.js} +53 -53
- package/dist/cli/{chunk-XXY4E57R.mjs → chunk-T43FF5PF.mjs} +2 -2
- package/dist/cli/{chunk-ZUAKRBZB.js → chunk-TZTWH53O.js} +1 -1
- package/dist/cli/{chunk-7J5PLHII.mjs → chunk-V2YIBBVT.mjs} +1 -1
- package/dist/cli/{chunk-6SJPZV5E.js → chunk-V4RJ57MA.js} +2 -2
- package/dist/cli/{chunk-4MF44THR.js → chunk-V7KUBDEB.js} +82 -40
- package/dist/cli/{chunk-ISUUSSS4.js → chunk-VHTVXS5A.js} +16 -16
- package/dist/cli/{chunk-NDNG3MAT.mjs → chunk-WCVIPZWX.mjs} +5 -5
- package/dist/cli/{chunk-F5D623KO.js → chunk-WOEPDSO3.js} +26 -26
- package/dist/cli/{chunk-VE6FHVXZ.mjs → chunk-XURWFEXM.mjs} +109 -24
- package/dist/cli/{chunk-G65FJ5JX.mjs → chunk-YCIXY66B.mjs} +2 -2
- package/dist/cli/{chunk-CFXERH7F.mjs → chunk-YGOI5ZE5.mjs} +1 -1
- package/dist/cli/{chunk-PDLRUZ42.mjs → chunk-YKFW3NNA.mjs} +5 -5
- package/dist/cli/{chunk-5H22VJPE.js → chunk-YXVYPYIP.js} +6 -6
- package/dist/cli/{chunk-KMBF3N2Z.js → chunk-Z4MOEQSY.js} +16 -16
- package/dist/cli/command-docs.js +2 -2
- package/dist/cli/command-docs.mjs +1 -1
- package/dist/cli/{csv-PE35WGRO.mjs → csv-HT2JBCW2.mjs} +4 -4
- package/dist/cli/{csv-3HIE4VCO.js → csv-Q2LWKXAV.js} +13 -13
- package/dist/cli/{db-L7ZMMQKW.mjs → db-CS3XQ2LX.mjs} +6 -6
- package/dist/cli/{db-O2YRTTDO.js → db-XEV4WEE4.js} +27 -27
- package/dist/cli/describe-5G5NXO5E.js +50 -0
- package/dist/cli/{describe-NI324Y2M.mjs → describe-OUTXLDGZ.mjs} +18 -18
- package/dist/cli/describe-core.d.mts +3 -3
- package/dist/cli/describe-core.d.ts +3 -3
- package/dist/cli/{executions-VH4DKLFI.js → executions-JCC34WAD.js} +8 -8
- package/dist/cli/{executions-T6KU2OKK.mjs → executions-L6XFG5MP.mjs} +6 -6
- package/dist/cli/{feedback-SCSJC3FX.mjs → feedback-AWBDO5I6.mjs} +5 -5
- package/dist/cli/{feedback-ZLC6G5OK.js → feedback-HV2M2G7N.js} +10 -10
- package/dist/cli/git-GDPTG52F.js +25 -0
- package/dist/cli/{git-I4LVQCID.mjs → git-S4LRXTRX.mjs} +5 -5
- package/dist/cli/index.js +146 -146
- package/dist/cli/index.mjs +45 -45
- package/dist/cli/{legacy-noops-44FQ2256.mjs → legacy-noops-7MOKBL4O.mjs} +6 -6
- package/dist/cli/{legacy-noops-UPFWEHPG.js → legacy-noops-RGSZUD6V.js} +9 -9
- package/dist/cli/{monitors-JN6IQGK6.js → monitors-JEFM2C5W.js} +100 -100
- package/dist/cli/{monitors-LMSASWXE.mjs → monitors-XQNXDZPQ.mjs} +7 -7
- package/dist/cli/{org-F7O3ZU5O.js → org-GYLA5V32.js} +235 -72
- package/dist/cli/{org-QYLVEE7A.mjs → org-KTMJZGTN.mjs} +169 -6
- package/dist/cli/{pages-KEL3Y4L4.js → pages-RY4U7OCL.js} +18 -18
- package/dist/cli/{pages-5XE4LBZN.mjs → pages-WOMU2T2O.mjs} +6 -6
- package/dist/cli/{play-OURHH6KV.js → play-2Q6MWJ3D.js} +363 -323
- package/dist/cli/{play-MWQG3G32.mjs → play-KOYGGNYS.mjs} +64 -24
- package/dist/cli/{providers-IQY7LUBB.mjs → providers-7YKDITJC.mjs} +6 -6
- package/dist/cli/{providers-ZCBWPE3C.js → providers-HOIRHMN2.js} +9 -9
- package/dist/cli/{quickstart-O53OXTN6.js → quickstart-OWCJOSQA.js} +6 -6
- package/dist/cli/{quickstart-L45NGRMI.mjs → quickstart-RDXHSMVX.mjs} +4 -4
- package/dist/cli/{run-W745Z3Z5.js → run-MT2ABKO5.js} +41 -41
- package/dist/cli/{run-VCSIWLEU.mjs → run-RT73NDP5.mjs} +23 -23
- package/dist/cli/search-7VBA6IGS.js +33 -0
- package/dist/cli/{search-THELKULN.mjs → search-CJPKIGSA.mjs} +8 -8
- package/dist/cli/{search-output-N7MJLYYD.mjs → search-output-AREMA544.mjs} +4 -4
- package/dist/cli/{search-output-SJW7LEOM.js → search-output-OSBZ7WK6.js} +6 -6
- package/dist/cli/{secrets-44ST3FJH.mjs → secrets-BTIY2FEJ.mjs} +6 -6
- package/dist/cli/{secrets-GDXPX3KB.js → secrets-OV6KH633.js} +15 -15
- package/dist/cli/{sessions-LYCBI77S.mjs → sessions-3CO3ZFOD.mjs} +6 -6
- package/dist/cli/sessions-B3WNEWRW.js +18 -0
- package/dist/cli/{settings-GXPDMJFG.mjs → settings-7BQIC7QN.mjs} +13 -13
- package/dist/cli/{settings-3WOFF642.js → settings-LBIECYDB.js} +86 -86
- package/dist/cli/{setup-YHLMBJP4.js → setup-QZE7QR3F.js} +50 -50
- package/dist/cli/{setup-YM6JEB64.mjs → setup-XPTSNNES.mjs} +10 -10
- package/dist/cli/{skills-WX4XWEAT.mjs → skills-TGGKIQLT.mjs} +8 -8
- package/dist/cli/skills-TXBRTWEV.js +37 -0
- package/dist/cli/{tools-K24VSQ7S.mjs → tools-MKIFX2TQ.mjs} +17 -17
- package/dist/cli/tools-RZJV4X3J.js +57 -0
- package/dist/cli/{update-PSSCF5AT.mjs → update-5R3D3WNH.mjs} +10 -10
- package/dist/cli/update-YWGGPWUA.js +35 -0
- package/dist/cli/{artifacts-RY2MK74N.mjs → views-VHKDHHUP.mjs} +76 -76
- package/dist/cli/views-VPWEINIA.js +270 -0
- package/dist/cli/{workflow-FPVI3NIA.js → workflow-7K2VEQ4V.js} +17 -17
- package/dist/cli/{workflow-DGOPYATO.mjs → workflow-D5DF65N6.mjs} +7 -7
- package/dist/{client-DA71-2_u.d.mts → client-C5_6W8yd.d.mts} +1 -1
- package/dist/{client-core-C0IzDKMJ.d.ts → client-core-B-GPfmaC.d.ts} +121 -44
- package/dist/{client-core-BXbds1cb.d.mts → client-core-Dob428Z4.d.mts} +121 -44
- package/dist/{client-B-2Am2y6.d.ts → client-iXW4TOat.d.ts} +1 -1
- package/dist/{compiler-manifest-B4mIIbw7.d.mts → compiler-manifest-DsxsQP-T.d.mts} +14 -7
- package/dist/{compiler-manifest-B4mIIbw7.d.ts → compiler-manifest-DsxsQP-T.d.ts} +14 -7
- package/dist/{errors-Gj9i5Rkd.d.ts → errors-Bk5h1D-C.d.ts} +1 -1
- package/dist/{errors-C2F4qzAq.d.mts → errors-qdJUVQ3g.d.mts} +1 -1
- package/dist/{index-5JZBufdF.d.mts → index-PaupwX1B.d.mts} +1 -1
- package/dist/{index-BXtSj8bv.d.ts → index-bL66eHYz.d.ts} +1 -1
- package/dist/index.d.mts +7 -7
- package/dist/index.d.ts +7 -7
- package/dist/index.js +9 -9
- package/dist/index.mjs +6 -6
- package/dist/install-integrity.json +117 -116
- package/dist/plays/bundle-play-file.d.mts +3 -3
- package/dist/plays/bundle-play-file.d.ts +3 -3
- package/dist/plays/bundle-play-file.mjs +7 -5
- package/dist/plays/play-description.d.mts +2 -2
- package/dist/plays/play-description.d.ts +2 -2
- package/dist/plays/run-request.d.mts +2 -2
- package/dist/plays/run-request.d.ts +2 -2
- package/dist/release.d.mts +1 -1
- package/dist/release.d.ts +1 -1
- package/dist/release.js +2 -2
- package/dist/release.mjs +1 -1
- package/dist/server.d.mts +4 -4
- package/dist/server.d.ts +4 -4
- package/dist/server.js +5 -5
- package/dist/server.mjs +3 -3
- package/package.json +1 -1
- package/dist/cli/artifacts-GIZZH5VA.js +0 -270
- package/dist/cli/auth-JSES2JOQ.js +0 -43
- package/dist/cli/describe-EB336DAO.js +0 -50
- package/dist/cli/git-23T7TXAH.js +0 -25
- package/dist/cli/search-R6K7ZAMU.js +0 -33
- package/dist/cli/sessions-2V5ZFOWL.js +0 -18
- package/dist/cli/skills-XNGADDO6.js +0 -37
- package/dist/cli/tools-ROUMCB7B.js +0 -57
- package/dist/cli/update-RXURGIRW.js +0 -35
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
parsePlayRunHeaderFlag,
|
|
6
6
|
parsePlayRunOptions,
|
|
7
7
|
resolvePlayRunCliOptions
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-II3BJKCH.mjs";
|
|
9
9
|
import {
|
|
10
10
|
ExecutionOutputError,
|
|
11
11
|
TABLE_EXPORT_ERROR_COLUMN,
|
|
@@ -18,15 +18,15 @@ import {
|
|
|
18
18
|
underscoreKeysLast,
|
|
19
19
|
writeExecutionOutput,
|
|
20
20
|
writeRunDatasetCsv
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-536TGWR6.mjs";
|
|
22
22
|
import {
|
|
23
23
|
registerDeprecatedSearchCommand
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-NUC7ZVDG.mjs";
|
|
25
25
|
import "./chunk-5AEDYVB6.mjs";
|
|
26
26
|
import {
|
|
27
27
|
handleDeploymentGet,
|
|
28
28
|
handleDeploymentsList
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-GMO3JDZA.mjs";
|
|
30
30
|
import {
|
|
31
31
|
buildPlayDashboardUrl,
|
|
32
32
|
buildPlayRunUrl
|
|
@@ -51,10 +51,10 @@ import {
|
|
|
51
51
|
import {
|
|
52
52
|
pinLocalPlayImports,
|
|
53
53
|
planLocalPlayExecution
|
|
54
|
-
} from "./chunk-
|
|
54
|
+
} from "./chunk-KKPBCB6D.mjs";
|
|
55
55
|
import {
|
|
56
56
|
DeeplineClient
|
|
57
|
-
} from "./chunk-
|
|
57
|
+
} from "./chunk-YCIXY66B.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-HLAFGQPV.mjs";
|
|
71
71
|
import "./chunk-L2VKAASU.mjs";
|
|
72
72
|
import {
|
|
73
73
|
CSV_DATA_INPUT_KEY,
|
|
@@ -91,19 +91,19 @@ import "./chunk-UBKA33KY.mjs";
|
|
|
91
91
|
import {
|
|
92
92
|
checkPlayRunCompatibility,
|
|
93
93
|
usesCliPlayAdmission
|
|
94
|
-
} from "./chunk-
|
|
94
|
+
} from "./chunk-PFKWKWUJ.mjs";
|
|
95
95
|
import {
|
|
96
96
|
isCliTraceEnabled,
|
|
97
97
|
recordCliTrace,
|
|
98
98
|
resolveCliMaintenancePolicy,
|
|
99
99
|
traceCliSpan
|
|
100
|
-
} from "./chunk-
|
|
101
|
-
import "./chunk-
|
|
100
|
+
} from "./chunk-R457IMHJ.mjs";
|
|
101
|
+
import "./chunk-EO55Y4QW.mjs";
|
|
102
102
|
import {
|
|
103
103
|
createCliProgress,
|
|
104
104
|
getActiveCliProgress
|
|
105
|
-
} from "./chunk-
|
|
106
|
-
import "./chunk-
|
|
105
|
+
} from "./chunk-BXIQD2IY.mjs";
|
|
106
|
+
import "./chunk-T43FF5PF.mjs";
|
|
107
107
|
import {
|
|
108
108
|
formatNonStandardSandboxRuntimeWarning
|
|
109
109
|
} from "./chunk-5LUF4LAR.mjs";
|
|
@@ -123,17 +123,17 @@ import {
|
|
|
123
123
|
printJsonError,
|
|
124
124
|
renderCommandEnvelopeText,
|
|
125
125
|
shouldEmitJson
|
|
126
|
-
} from "./chunk-
|
|
127
|
-
import "./chunk-
|
|
126
|
+
} from "./chunk-3WWTBQHC.mjs";
|
|
127
|
+
import "./chunk-MW3YMPD2.mjs";
|
|
128
128
|
import {
|
|
129
129
|
fetchWithDeploymentProtection
|
|
130
|
-
} from "./chunk-
|
|
130
|
+
} from "./chunk-OQ5G7RFQ.mjs";
|
|
131
131
|
import "./chunk-QNHHZ63P.mjs";
|
|
132
132
|
import "./chunk-DLIRSHV6.mjs";
|
|
133
133
|
import {
|
|
134
134
|
DeeplineError
|
|
135
135
|
} from "./chunk-ZPGGW27Q.mjs";
|
|
136
|
-
import "./chunk-
|
|
136
|
+
import "./chunk-RIX26ZJD.mjs";
|
|
137
137
|
import "./chunk-WZYKRD7T.mjs";
|
|
138
138
|
import {
|
|
139
139
|
__commonJS,
|
|
@@ -13806,6 +13806,29 @@ async function handleRunLifecycleStatus(args) {
|
|
|
13806
13806
|
}
|
|
13807
13807
|
return 0;
|
|
13808
13808
|
}
|
|
13809
|
+
var FROM_RUN_RERUN_FLAGS = {
|
|
13810
|
+
"--idempotency-key": "idempotencyKey",
|
|
13811
|
+
"--input-overrides": "inputOverrides"
|
|
13812
|
+
};
|
|
13813
|
+
function takeFromRunRerunArgs(args) {
|
|
13814
|
+
const taken = {};
|
|
13815
|
+
const rest = [];
|
|
13816
|
+
for (let index = 0; index < args.length; index += 1) {
|
|
13817
|
+
const arg = args[index];
|
|
13818
|
+
const equals = arg.indexOf("=");
|
|
13819
|
+
const flag = equals > 0 ? arg.slice(0, equals) : arg;
|
|
13820
|
+
if (!Object.hasOwn(FROM_RUN_RERUN_FLAGS, flag)) {
|
|
13821
|
+
rest.push(arg);
|
|
13822
|
+
continue;
|
|
13823
|
+
}
|
|
13824
|
+
const field = FROM_RUN_RERUN_FLAGS[flag];
|
|
13825
|
+
if (taken[field] !== void 0) {
|
|
13826
|
+
return { ok: false, error: `${flag} may be given only once.` };
|
|
13827
|
+
}
|
|
13828
|
+
taken[field] = equals > 0 ? arg.slice(equals + 1) : args[++index] ?? "";
|
|
13829
|
+
}
|
|
13830
|
+
return { ok: true, ...taken, rest };
|
|
13831
|
+
}
|
|
13809
13832
|
function runsRerunRenameNotice(runId) {
|
|
13810
13833
|
return `runs rerun starts a new run. To continue a stopped run without repeating its completed work, use: deepline runs resume ${runId}. To start over, use: deepline plays run --from-run ${runId}.`;
|
|
13811
13834
|
}
|
|
@@ -16136,7 +16159,11 @@ Notes:
|
|
|
16136
16159
|
from --from-start. (Formerly --force-tool-refresh.)
|
|
16137
16160
|
--from-run <run-id> starts a new run of the same Play with that run's
|
|
16138
16161
|
retained input and pinned revision, and returns once it starts. It accepts
|
|
16139
|
-
only --json
|
|
16162
|
+
only --json, --idempotency-key <key> and --input-overrides <json>, which
|
|
16163
|
+
behave exactly as on runs rerun. A key deduplicates only the exact same
|
|
16164
|
+
rerun intent (source run, resulting input, pinned revision); the same key
|
|
16165
|
+
with a changed input is refused with a 409 conflict. Use one stable key per
|
|
16166
|
+
exact intent. Without a key, each invocation starts a new run.
|
|
16140
16167
|
--max-concurrent-external-calls controls the per-run provider-tool/deepline.fetch
|
|
16141
16168
|
resident-work ceiling. Default: ${DEFAULT_MAX_CONCURRENT_EXTERNAL_CALLS}; accepted range: 1-${MAX_CONFIGURABLE_CONCURRENT_EXTERNAL_CALLS}.
|
|
16142
16169
|
Provider pacing and sandbox memory limits still apply.
|
|
@@ -16330,7 +16357,14 @@ JSON field selection:
|
|
|
16330
16357
|
).map(
|
|
16331
16358
|
([key]) => `--${key.replace(/[A-Z]/g, (c) => `-${c.toLowerCase()}`)}`
|
|
16332
16359
|
);
|
|
16333
|
-
|
|
16360
|
+
const rerunArgs = takeFromRunRerunArgs(
|
|
16361
|
+
target !== void 0 && command.args[0] !== target ? [target, ...command.args] : [...command.args]
|
|
16362
|
+
);
|
|
16363
|
+
if (!rerunArgs.ok) {
|
|
16364
|
+
console.error(rerunArgs.error);
|
|
16365
|
+
return 1;
|
|
16366
|
+
}
|
|
16367
|
+
if (rerunArgs.rest.length > 0) {
|
|
16334
16368
|
conflicting.unshift("a play target or input");
|
|
16335
16369
|
}
|
|
16336
16370
|
if (conflicting.length > 0) {
|
|
@@ -16340,7 +16374,9 @@ JSON field selection:
|
|
|
16340
16374
|
return 1;
|
|
16341
16375
|
}
|
|
16342
16376
|
return runRunsRerunCommand(runId, {
|
|
16343
|
-
...options.json === void 0 ? {} : { json: Boolean(options.json) }
|
|
16377
|
+
...options.json === void 0 ? {} : { json: Boolean(options.json) },
|
|
16378
|
+
...rerunArgs.idempotencyKey === void 0 ? {} : { idempotencyKey: rerunArgs.idempotencyKey },
|
|
16379
|
+
...rerunArgs.inputOverrides === void 0 ? {} : { inputOverrides: rerunArgs.inputOverrides }
|
|
16344
16380
|
});
|
|
16345
16381
|
}
|
|
16346
16382
|
async function runPlayCommand(target, options, command) {
|
|
@@ -16577,7 +16613,7 @@ Examples:
|
|
|
16577
16613
|
process.exitCode = await ownView();
|
|
16578
16614
|
return;
|
|
16579
16615
|
}
|
|
16580
|
-
const { describeAnything } = await import("./describe-
|
|
16616
|
+
const { describeAnything } = await import("./describe-OUTXLDGZ.mjs");
|
|
16581
16617
|
process.exitCode = await describeAnything(
|
|
16582
16618
|
name,
|
|
16583
16619
|
{
|
|
@@ -16915,7 +16951,7 @@ Examples:
|
|
|
16915
16951
|
new Option2("--log-failed", "Attach terminal-failure logs").hideHelp()
|
|
16916
16952
|
).action(async (runId, options) => {
|
|
16917
16953
|
if (TOOL_EXECUTION_ID.test(runId)) {
|
|
16918
|
-
const { getToolExecutionReceipt } = await import("./tools-
|
|
16954
|
+
const { getToolExecutionReceipt } = await import("./tools-MKIFX2TQ.mjs");
|
|
16919
16955
|
process.exitCode = await getToolExecutionReceipt(runId, {
|
|
16920
16956
|
receiptJson: options.json !== void 0
|
|
16921
16957
|
});
|
|
@@ -16948,9 +16984,12 @@ Notes:
|
|
|
16948
16984
|
side effect.
|
|
16949
16985
|
Every call sends an Idempotency-Key. Pass --idempotency-key to reuse the
|
|
16950
16986
|
same key across separate invocations (for example after an ambiguous or
|
|
16951
|
-
lost response)
|
|
16952
|
-
|
|
16953
|
-
|
|
16987
|
+
lost response). A key deduplicates only the exact same rerun intent: the
|
|
16988
|
+
same source run, the same --input-overrides (the resulting input) and the
|
|
16989
|
+
same pinned revision return the one rerun that key started, and the JSON
|
|
16990
|
+
result reports deduplicated: true. The same key with a changed input is
|
|
16991
|
+
refused with a 409 conflict and starts nothing. Use one stable key per
|
|
16992
|
+
exact intent; a different key intentionally starts another rerun.
|
|
16954
16993
|
|
|
16955
16994
|
Examples:
|
|
16956
16995
|
deepline runs rerun play/my-play/webhook/abc
|
|
@@ -17680,6 +17719,7 @@ export {
|
|
|
17680
17719
|
shouldPrintPlayProgressLine,
|
|
17681
17720
|
startAndWaitForPlayCompletion,
|
|
17682
17721
|
startAndWaitForPlayCompletionByStream,
|
|
17722
|
+
takeFromRunRerunArgs,
|
|
17683
17723
|
truncateErrorForDisplay,
|
|
17684
17724
|
waitForPlayCompletionByWatch,
|
|
17685
17725
|
withTerminalPlayIdentity,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
DeeplineClient
|
|
3
|
-
} from "./chunk-
|
|
4
|
-
import "./chunk-
|
|
3
|
+
} from "./chunk-YCIXY66B.mjs";
|
|
4
|
+
import "./chunk-HLAFGQPV.mjs";
|
|
5
5
|
import "./chunk-L2VKAASU.mjs";
|
|
6
6
|
import "./chunk-FKD3KL5Q.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-3WWTBQHC.mjs";
|
|
13
|
+
import "./chunk-MW3YMPD2.mjs";
|
|
14
|
+
import "./chunk-OQ5G7RFQ.mjs";
|
|
15
15
|
import "./chunk-QNHHZ63P.mjs";
|
|
16
16
|
import "./chunk-DLIRSHV6.mjs";
|
|
17
17
|
import "./chunk-ZPGGW27Q.mjs";
|
|
18
|
-
import "./chunk-
|
|
18
|
+
import "./chunk-RIX26ZJD.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 _chunkLRWDZDBSjs = require('./chunk-LRWDZDBS.js');
|
|
4
|
+
require('./chunk-V7KUBDEB.js');
|
|
5
5
|
require('./chunk-E4CABWXL.js');
|
|
6
6
|
require('./chunk-2KHUFWTK.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 _chunkGTGJBZVHjs = require('./chunk-GTGJBZVH.js');
|
|
13
|
+
require('./chunk-SF4QJVBE.js');
|
|
14
|
+
require('./chunk-OCT4SUJA.js');
|
|
15
15
|
require('./chunk-T2N3B7IQ.js');
|
|
16
16
|
require('./chunk-XNYIZMNQ.js');
|
|
17
17
|
require('./chunk-SQWET4SL.js');
|
|
18
|
-
require('./chunk-
|
|
18
|
+
require('./chunk-TZTWH53O.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, _chunkLRWDZDBSjs.DeeplineClient)();
|
|
25
25
|
const changed = options.changed === true;
|
|
26
|
-
const emitJson = options.json === true ||
|
|
26
|
+
const emitJson = options.json === true || _chunkGTGJBZVHjs.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
|
+
_chunkGTGJBZVHjs.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 _chunkGTGJBZVHjs = require('./chunk-GTGJBZVH.js');
|
|
5
|
+
require('./chunk-SF4QJVBE.js');
|
|
6
|
+
require('./chunk-OCT4SUJA.js');
|
|
7
7
|
require('./chunk-T2N3B7IQ.js');
|
|
8
8
|
require('./chunk-XNYIZMNQ.js');
|
|
9
9
|
require('./chunk-SQWET4SL.js');
|
|
10
|
-
require('./chunk-
|
|
10
|
+
require('./chunk-TZTWH53O.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 = _chunkGTGJBZVHjs.shouldEmitJson.call(void 0, options.json === true);
|
|
21
21
|
const gettingStarted = {
|
|
22
22
|
skill: _chunkRLX5ZFNXjs.DEEPLINE_GTM_SKILL,
|
|
23
23
|
examples: _chunkRLX5ZFNXjs.DEEPLINE_GTM_STARTER_PROMPTS
|
|
24
24
|
};
|
|
25
|
-
|
|
25
|
+
_chunkGTGJBZVHjs.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-3WWTBQHC.mjs";
|
|
5
|
+
import "./chunk-MW3YMPD2.mjs";
|
|
6
|
+
import "./chunk-OQ5G7RFQ.mjs";
|
|
7
7
|
import "./chunk-QNHHZ63P.mjs";
|
|
8
8
|
import "./chunk-DLIRSHV6.mjs";
|
|
9
9
|
import "./chunk-ZPGGW27Q.mjs";
|
|
10
|
-
import "./chunk-
|
|
10
|
+
import "./chunk-RIX26ZJD.mjs";
|
|
11
11
|
import "./chunk-WZYKRD7T.mjs";
|
|
12
12
|
import {
|
|
13
13
|
DEEPLINE_GTM_SKILL,
|
|
@@ -1,19 +1,19 @@
|
|
|
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 _chunkATATJNJ6js = require('./chunk-ATATJNJ6.js');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
var
|
|
9
|
-
require('./chunk-
|
|
8
|
+
var _chunkZ4MOEQSYjs = require('./chunk-Z4MOEQSY.js');
|
|
9
|
+
require('./chunk-2ZWNIS54.js');
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
|
|
14
14
|
|
|
15
|
-
var
|
|
16
|
-
require('./chunk-
|
|
15
|
+
var _chunkYXVYPYIPjs = require('./chunk-YXVYPYIP.js');
|
|
16
|
+
require('./chunk-7QM6DNR4.js');
|
|
17
17
|
require('./chunk-D3BCSAN7.js');
|
|
18
18
|
|
|
19
19
|
|
|
@@ -24,30 +24,30 @@ require('./chunk-AID3OYVJ.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-LRWDZDBS.js');
|
|
28
28
|
require('./chunk-BLMB4N63.js');
|
|
29
|
-
require('./chunk-
|
|
29
|
+
require('./chunk-V7KUBDEB.js');
|
|
30
30
|
require('./chunk-E4CABWXL.js');
|
|
31
31
|
require('./chunk-2KHUFWTK.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-I75VRGQG.js');
|
|
35
|
+
require('./chunk-ANKD3AIR.js');
|
|
36
|
+
require('./chunk-VHTVXS5A.js');
|
|
37
|
+
require('./chunk-V4RJ57MA.js');
|
|
38
|
+
require('./chunk-PFKKZVFK.js');
|
|
39
|
+
require('./chunk-66N76YZG.js');
|
|
40
40
|
|
|
41
41
|
|
|
42
|
-
var
|
|
43
|
-
require('./chunk-
|
|
44
|
-
require('./chunk-
|
|
45
|
-
require('./chunk-
|
|
46
|
-
require('./chunk-
|
|
42
|
+
var _chunkBXVYVIMBjs = require('./chunk-BXVYVIMB.js');
|
|
43
|
+
require('./chunk-JDIQBZ6O.js');
|
|
44
|
+
require('./chunk-GTGJBZVH.js');
|
|
45
|
+
require('./chunk-SF4QJVBE.js');
|
|
46
|
+
require('./chunk-OCT4SUJA.js');
|
|
47
47
|
require('./chunk-T2N3B7IQ.js');
|
|
48
48
|
require('./chunk-XNYIZMNQ.js');
|
|
49
49
|
require('./chunk-SQWET4SL.js');
|
|
50
|
-
require('./chunk-
|
|
50
|
+
require('./chunk-TZTWH53O.js');
|
|
51
51
|
require('./chunk-OG64RBAC.js');
|
|
52
52
|
require('./chunk-RLX5ZFNX.js');
|
|
53
53
|
require('./chunk-COGTRVWW.js');
|
|
@@ -83,7 +83,7 @@ function readInput(options) {
|
|
|
83
83
|
return input;
|
|
84
84
|
}
|
|
85
85
|
function refuse(message, output) {
|
|
86
|
-
|
|
86
|
+
_chunkYXVYPYIPjs.writeExecutionOutput.call(void 0,
|
|
87
87
|
{ id: null, status: "failed", error: { message }, ran: false },
|
|
88
88
|
output
|
|
89
89
|
);
|
|
@@ -99,7 +99,7 @@ async function runAnything(name, options) {
|
|
|
99
99
|
logsOut: options.logsOut,
|
|
100
100
|
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)])
|
|
101
101
|
};
|
|
102
|
-
if (!
|
|
102
|
+
if (!_chunkYXVYPYIPjs.preflightExecutionOutput.call(void 0, output)) return 2;
|
|
103
103
|
let input;
|
|
104
104
|
let timeoutMs;
|
|
105
105
|
try {
|
|
@@ -117,7 +117,7 @@ async function runAnything(name, options) {
|
|
|
117
117
|
throw new Error("--max-credits takes a number of credits above 0.");
|
|
118
118
|
}
|
|
119
119
|
if (options.timeout !== void 0 && options.timeout !== "0") {
|
|
120
|
-
const { parseToolExecuteTimeout } = await Promise.resolve().then(() => _interopRequireWildcard(require("./tools-
|
|
120
|
+
const { parseToolExecuteTimeout } = await Promise.resolve().then(() => _interopRequireWildcard(require("./tools-RZJV4X3J.js")));
|
|
121
121
|
timeoutMs = parseToolExecuteTimeout(options.timeout);
|
|
122
122
|
}
|
|
123
123
|
} catch (error) {
|
|
@@ -138,7 +138,7 @@ async function runAnything(name, options) {
|
|
|
138
138
|
if (name !== void 0) {
|
|
139
139
|
return refuse("Use a name or -e, not both.", output);
|
|
140
140
|
}
|
|
141
|
-
const { writeInlinePlay } = await Promise.resolve().then(() => _interopRequireWildcard(require("./play-
|
|
141
|
+
const { writeInlinePlay } = await Promise.resolve().then(() => _interopRequireWildcard(require("./play-2Q6MWJ3D.js")));
|
|
142
142
|
let file;
|
|
143
143
|
try {
|
|
144
144
|
file = writeInlinePlay(options.eval);
|
|
@@ -161,19 +161,19 @@ async function runAnything(name, options) {
|
|
|
161
161
|
output
|
|
162
162
|
);
|
|
163
163
|
}
|
|
164
|
-
if (
|
|
164
|
+
if (_chunkATATJNJ6js.looksLikeFilePath.call(void 0, name)) {
|
|
165
165
|
output.label = `${name} (play file)`;
|
|
166
166
|
return runPlay(name, play);
|
|
167
167
|
}
|
|
168
168
|
let { base, revision } = splitRevision(name);
|
|
169
|
-
let found = await
|
|
169
|
+
let found = await _chunkZ4MOEQSYjs.findNamed.call(void 0, base, {});
|
|
170
170
|
if (!found.chosen && revision) {
|
|
171
|
-
found = await
|
|
171
|
+
found = await _chunkZ4MOEQSYjs.findNamed.call(void 0, name, {});
|
|
172
172
|
if (found.chosen)
|
|
173
173
|
({ base, revision } = { base: name, revision: void 0 });
|
|
174
174
|
}
|
|
175
175
|
const { chosen, shadowed } = found;
|
|
176
|
-
if (!chosen) return refuse(
|
|
176
|
+
if (!chosen) return refuse(_chunkZ4MOEQSYjs.nothingNamed.call(void 0, base), output);
|
|
177
177
|
const { described } = chosen;
|
|
178
178
|
if (described.kind === "custom_play" && shadowed) {
|
|
179
179
|
console.error(
|
|
@@ -198,7 +198,7 @@ async function runAnything(name, options) {
|
|
|
198
198
|
if (runner.via === "play") {
|
|
199
199
|
return runPlay(runner.reference, { ...play, revision });
|
|
200
200
|
}
|
|
201
|
-
const { executeToolForReceipt } = await Promise.resolve().then(() => _interopRequireWildcard(require("./tools-
|
|
201
|
+
const { executeToolForReceipt } = await Promise.resolve().then(() => _interopRequireWildcard(require("./tools-RZJV4X3J.js")));
|
|
202
202
|
return executeToolForReceipt({
|
|
203
203
|
toolId: runner.toolId,
|
|
204
204
|
params: input,
|
|
@@ -212,7 +212,7 @@ function dryRun(described, input, output) {
|
|
|
212
212
|
const missing = described.inputs.filter((field) => field.required && !(field.name in input)).map((field) => field.name);
|
|
213
213
|
const known = new Set(described.inputs.map((field) => field.name));
|
|
214
214
|
const unknown = known.size ? Object.keys(input).filter((key) => !known.has(key)) : [];
|
|
215
|
-
|
|
215
|
+
_chunkYXVYPYIPjs.writeExecutionOutput.call(void 0,
|
|
216
216
|
{
|
|
217
217
|
id: null,
|
|
218
218
|
status: "dry_run",
|
|
@@ -229,16 +229,16 @@ function dryRun(described, input, output) {
|
|
|
229
229
|
return missing.length ? 2 : 0;
|
|
230
230
|
}
|
|
231
231
|
async function runPlay(reference, play) {
|
|
232
|
-
const { handlePlayRun, writePlayRunReceipt } = await Promise.resolve().then(() => _interopRequireWildcard(require("./play-
|
|
232
|
+
const { handlePlayRun, writePlayRunReceipt } = await Promise.resolve().then(() => _interopRequireWildcard(require("./play-2Q6MWJ3D.js")));
|
|
233
233
|
const { output, options, revision } = play;
|
|
234
234
|
if (options.dryRun) {
|
|
235
|
-
const dryRunOptions =
|
|
235
|
+
const dryRunOptions = _chunkATATJNJ6js.resolvePlayRunCliOptions.call(void 0, reference, {
|
|
236
236
|
input: JSON.stringify(play.input),
|
|
237
237
|
dryRun: true,
|
|
238
238
|
json: output.receiptJson === true
|
|
239
239
|
});
|
|
240
240
|
if (output.receiptOut === void 0) return handlePlayRun(dryRunOptions);
|
|
241
|
-
const writeDryRunError = (error) =>
|
|
241
|
+
const writeDryRunError = (error) => _chunkYXVYPYIPjs.writeExecutionOutput.call(void 0,
|
|
242
242
|
{
|
|
243
243
|
id: null,
|
|
244
244
|
status: "failed",
|
|
@@ -252,7 +252,7 @@ async function runPlay(reference, play) {
|
|
|
252
252
|
try {
|
|
253
253
|
return await handlePlayRun(dryRunOptions, {
|
|
254
254
|
writeDryRunError,
|
|
255
|
-
writeDryRunPlan: (plan) =>
|
|
255
|
+
writeDryRunPlan: (plan) => _chunkYXVYPYIPjs.writeExecutionOutput.call(void 0,
|
|
256
256
|
{
|
|
257
257
|
id: null,
|
|
258
258
|
status: "dry_run",
|
|
@@ -263,19 +263,19 @@ async function runPlay(reference, play) {
|
|
|
263
263
|
)
|
|
264
264
|
});
|
|
265
265
|
} catch (error) {
|
|
266
|
-
if (error instanceof
|
|
266
|
+
if (error instanceof _chunkYXVYPYIPjs.ExecutionOutputError) throw error;
|
|
267
267
|
writeDryRunError(error);
|
|
268
268
|
return 1;
|
|
269
269
|
}
|
|
270
270
|
}
|
|
271
271
|
let id = null;
|
|
272
272
|
let written = false;
|
|
273
|
-
const progress =
|
|
274
|
-
if (!play.noWait) progress.setLogWriter(
|
|
273
|
+
const progress = _chunkBXVYVIMBjs.createCliProgress.call(void 0, true);
|
|
274
|
+
if (!play.noWait) progress.setLogWriter(_chunkYXVYPYIPjs.openLogDestination.call(void 0, output));
|
|
275
275
|
progress.setQuiet(process.stderr.isTTY !== true);
|
|
276
276
|
try {
|
|
277
277
|
const code = await handlePlayRun(
|
|
278
|
-
|
|
278
|
+
_chunkATATJNJ6js.resolvePlayRunCliOptions.call(void 0, reference, {
|
|
279
279
|
input: JSON.stringify(play.input),
|
|
280
280
|
// The receipt is the only thing on stdout.
|
|
281
281
|
json: true,
|
|
@@ -308,7 +308,7 @@ async function runPlay(reference, play) {
|
|
|
308
308
|
},
|
|
309
309
|
writeStarted: (runId, status, page) => {
|
|
310
310
|
written = true;
|
|
311
|
-
|
|
311
|
+
_chunkYXVYPYIPjs.writeExecutionOutput.call(void 0,
|
|
312
312
|
{
|
|
313
313
|
id: runId,
|
|
314
314
|
status,
|
|
@@ -324,7 +324,7 @@ async function runPlay(reference, play) {
|
|
|
324
324
|
}
|
|
325
325
|
);
|
|
326
326
|
if (!written) {
|
|
327
|
-
|
|
327
|
+
_chunkYXVYPYIPjs.writeExecutionOutput.call(void 0,
|
|
328
328
|
{
|
|
329
329
|
id,
|
|
330
330
|
status: "failed",
|
|
@@ -336,7 +336,7 @@ async function runPlay(reference, play) {
|
|
|
336
336
|
return code;
|
|
337
337
|
} catch (error) {
|
|
338
338
|
if (written) throw error;
|
|
339
|
-
|
|
339
|
+
_chunkYXVYPYIPjs.writeExecutionOutput.call(void 0,
|
|
340
340
|
{
|
|
341
341
|
id,
|
|
342
342
|
status: "failed",
|
|
@@ -368,7 +368,7 @@ function registerRunCommand(program) {
|
|
|
368
368
|
try {
|
|
369
369
|
process.exitCode = await runAnything(name, options);
|
|
370
370
|
} catch (error) {
|
|
371
|
-
if (options.receiptOut === void 0 || !(error instanceof
|
|
371
|
+
if (options.receiptOut === void 0 || !(error instanceof _chunkYXVYPYIPjs.ExecutionOutputError)) {
|
|
372
372
|
throw error;
|
|
373
373
|
}
|
|
374
374
|
process.exitCode = 1;
|