deepline 0.3.314 → 0.3.316
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.ts +12 -0
- package/dist/bundling-sources/sdk/src/release.ts +1 -1
- package/dist/bundling-sources/sdk/src/runs/overview.ts +17 -10
- package/dist/bundling-sources/sdk/src/types.ts +16 -5
- package/dist/bundling-sources/shared_libs/play-runtime/context.ts +217 -488
- package/dist/bundling-sources/shared_libs/play-runtime/ctx-types.ts +15 -0
- package/dist/bundling-sources/shared_libs/play-runtime/execution-capabilities.ts +4 -1
- package/dist/bundling-sources/shared_libs/play-runtime/internal-bootstrap-token.ts +13 -4
- package/dist/bundling-sources/shared_libs/play-runtime/launch-identity.ts +1 -0
- package/dist/bundling-sources/shared_libs/play-runtime/live-events.ts +31 -0
- package/dist/bundling-sources/shared_libs/play-runtime/map-execution-frame.ts +444 -51
- package/dist/bundling-sources/shared_libs/play-runtime/run-snapshot-stream.ts +22 -43
- package/dist/bundling-sources/shared_libs/play-runtime/runner-app/index.ts +4 -3
- package/dist/bundling-sources/shared_libs/play-runtime/runtime-api.ts +136 -87
- package/dist/bundling-sources/shared_libs/play-runtime/runtime-authority.ts +24 -6
- package/dist/bundling-sources/shared_libs/play-runtime/runtime-operation-contract.ts +56 -0
- package/dist/bundling-sources/shared_libs/play-runtime/runtime-sheet-errors.ts +94 -0
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backend.ts +2 -0
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/absurd-shared.ts +5 -2
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/absurd.ts +20 -11
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/postgres-progress.ts +18 -12
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/postgres.ts +140 -9
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/run-ledger-dispatch-authority.ts +2 -0
- package/dist/bundling-sources/shared_libs/play-runtime/work-receipt-storage-contract.ts +13 -0
- package/dist/bundling-sources/shared_libs/play-runtime/workflow-executor-auth.ts +2 -0
- package/dist/bundling-sources/shared_libs/plays/authoring-contract.ts +3 -2
- package/dist/bundling-sources/shared_libs/plays/docflow-binding-owner.ts +61 -11
- package/dist/cli/{auth-GWF55S3N.mjs → auth-JP7ZJ4OI.mjs} +4 -4
- package/dist/cli/auth-SPUJ4EXC.js +31 -0
- package/dist/cli/{billing-WWOJN7GV.mjs → billing-KG6MC2BC.mjs} +4 -4
- package/dist/cli/{billing-2YU6E2IF.js → billing-WZGS32ME.js} +70 -70
- package/dist/cli/{chunk-OJ243ZA5.js → chunk-2HKPAZVJ.js} +1 -1
- package/dist/cli/{chunk-YVMJTXEG.js → chunk-35YXDTOB.js} +26 -26
- package/dist/cli/{chunk-QB5MAFCU.mjs → chunk-46ZOD4PQ.mjs} +1 -1
- package/dist/cli/{chunk-CPN2N6EZ.mjs → chunk-6R5ACEWN.mjs} +43 -17
- package/dist/cli/{chunk-US4S3E4Y.mjs → chunk-7PZFGB7L.mjs} +1 -1
- package/dist/cli/{chunk-3CKNUJVZ.mjs → chunk-AXAPMVUC.mjs} +4 -4
- package/dist/cli/{chunk-ENQZV7NR.js → chunk-B6OOVO3A.js} +562 -536
- package/dist/cli/{chunk-WDPRE6DU.js → chunk-BOKHMPCZ.js} +48 -48
- package/dist/cli/{chunk-VFRZG4OW.js → chunk-C6QGM72M.js} +1 -1
- package/dist/cli/{chunk-IZTIBG7A.mjs → chunk-D3NMIACS.mjs} +29 -15
- package/dist/cli/{chunk-DR3S76BG.mjs → chunk-DAFGPNVW.mjs} +1 -1
- package/dist/cli/{chunk-3K6QD7Z3.mjs → chunk-F2T5UENG.mjs} +1 -1
- package/dist/cli/{chunk-VWW6VHQX.js → chunk-G2G67D3L.js} +60 -60
- package/dist/cli/{chunk-ODEWOXWW.js → chunk-GHLWDXUB.js} +6 -6
- package/dist/cli/{chunk-25SPKKF2.mjs → chunk-IDSDRGKF.mjs} +1 -1
- package/dist/cli/{chunk-OUHCJL5B.mjs → chunk-J3ZPMADG.mjs} +1 -1
- package/dist/cli/{chunk-MLEJ2FYH.js → chunk-K3BIRBT3.js} +248 -234
- package/dist/cli/{chunk-N5V2SBB2.mjs → chunk-KP7W5NO6.mjs} +1 -1
- package/dist/cli/{chunk-B5LUKLKH.js → chunk-MCPHK7AF.js} +4 -4
- package/dist/cli/{chunk-2Q2IKUL5.mjs → chunk-OB3SYJGU.mjs} +3 -3
- package/dist/cli/{chunk-UZTTPEG2.js → chunk-PJERS5VW.js} +6 -6
- package/dist/cli/{chunk-VBRO5QCI.js → chunk-RBBSRB56.js} +15 -15
- package/dist/cli/{chunk-NG4WDOGN.js → chunk-SRUWVQ66.js} +6 -6
- package/dist/cli/{chunk-WTO3ITBC.mjs → chunk-TYSAKSX7.mjs} +2 -2
- package/dist/cli/{chunk-HTXZLCSP.mjs → chunk-VC25WFXV.mjs} +2 -2
- package/dist/cli/{chunk-3A4LJUX6.mjs → chunk-VDPBQCRQ.mjs} +2 -2
- package/dist/cli/{chunk-IALPYID6.js → chunk-XSEMQ4II.js} +3 -3
- package/dist/cli/{chunk-JNUHGWB2.js → chunk-YEMOOWZI.js} +50 -50
- package/dist/cli/{chunk-JZZT4GAY.mjs → chunk-YNSAVFWL.mjs} +5 -5
- package/dist/cli/{chunk-GSRDZD7R.js → chunk-ZNHGAWYI.js} +2 -2
- package/dist/cli/client-GMMPQT7B.js +20 -0
- package/dist/cli/{client-EYGNDORT.mjs → client-MNPM4ME3.mjs} +3 -3
- package/dist/cli/{csv-YOW5JMOH.js → csv-G72FIQWI.js} +12 -12
- package/dist/cli/{csv-NZCN7SVV.mjs → csv-ZME7HAPR.mjs} +3 -3
- package/dist/cli/{db-HALJV3KY.mjs → db-K2DS4PEY.mjs} +4 -4
- package/dist/cli/{db-6BIYLZ6F.js → db-KRBWHSMA.js} +20 -20
- package/dist/cli/{describe-KY2ZYGBR.mjs → describe-LXBJP6OP.mjs} +10 -10
- package/dist/cli/{describe-WA6R2JSH.js → describe-UKFV376D.js} +17 -17
- package/dist/cli/{executions-CBOAN6KI.mjs → executions-2V3AROY6.mjs} +4 -4
- package/dist/cli/{executions-NMCTN7XM.js → executions-E66AM4JU.js} +6 -6
- package/dist/cli/{feedback-ZZFDSCWS.js → feedback-7C2N7M37.js} +6 -6
- package/dist/cli/{feedback-FOMPE3DJ.mjs → feedback-IEPZ2XKZ.mjs} +3 -3
- package/dist/cli/{git-YQR2NBCO.mjs → git-AR5KGN4O.mjs} +4 -4
- package/dist/cli/git-EXYB66IH.js +23 -0
- package/dist/cli/index.js +171 -98
- package/dist/cli/index.mjs +114 -41
- package/dist/cli/{legacy-noops-XH2TFFI6.js → legacy-noops-A2SH45P4.js} +7 -7
- package/dist/cli/{legacy-noops-KMU6P3K4.mjs → legacy-noops-LC2EGAZU.mjs} +4 -4
- package/dist/cli/{monitors-2ONK5L3I.mjs → monitors-5YPW3IZQ.mjs} +4 -4
- package/dist/cli/{monitors-5M3BZ5OR.js → monitors-IZBUPKPW.js} +85 -85
- package/dist/cli/{org-LR5BMCGL.mjs → org-2OMYI5KJ.mjs} +4 -4
- package/dist/cli/{org-6MKULUZI.js → org-L42SQ65U.js} +60 -60
- package/dist/cli/play-CQI3IDDN.js +152 -0
- package/dist/cli/{play-4NOSD7DW.mjs → play-UPCBLAOH.mjs} +9 -9
- package/dist/cli/{providers-UFJD3VKF.js → providers-GGNDWUKB.js} +7 -7
- package/dist/cli/{providers-UBGIKGCA.mjs → providers-VE2RM56M.mjs} +4 -4
- package/dist/cli/{quickstart-KQZHZE6C.js → quickstart-4CZHURUX.js} +5 -5
- package/dist/cli/{quickstart-KDUKQRUH.mjs → quickstart-HSJ7FU7Z.mjs} +3 -3
- package/dist/cli/{search-4BVOOS5Q.mjs → search-MWBM3I2L.mjs} +5 -5
- package/dist/cli/search-PD5FBCUN.js +26 -0
- package/dist/cli/{secrets-TVXZ3WJ3.js → secrets-CWBPGDZV.js} +13 -13
- package/dist/cli/{secrets-YGV23N3N.mjs → secrets-W5DQYKGU.mjs} +4 -4
- package/dist/cli/{sessions-RWIQWDFD.js → sessions-EDCFU6P2.js} +5 -5
- package/dist/cli/{sessions-G7ROUW35.mjs → sessions-Q42GUYTF.mjs} +4 -4
- package/dist/cli/{settings-TG3E2NR7.js → settings-OKRENZGX.js} +74 -74
- package/dist/cli/{settings-QZEVGCXE.mjs → settings-SO56AJPQ.mjs} +7 -7
- package/dist/cli/{setup-3KDUNEEE.js → setup-7PLHLNLS.js} +41 -41
- package/dist/cli/{setup-HUXINKOH.mjs → setup-OTYMF5CZ.mjs} +6 -6
- package/dist/cli/{skills-LHU3DB7J.mjs → skills-4UFS4FXP.mjs} +4 -4
- package/dist/cli/skills-IP7IW7EQ.js +28 -0
- package/dist/cli/{tools-J5WQ33BB.mjs → tools-6FV543YV.mjs} +6 -6
- package/dist/cli/tools-A2YNR6PI.js +38 -0
- package/dist/cli/{update-T6744RM7.mjs → update-6POGDXYW.mjs} +6 -6
- package/dist/cli/update-QXSGKLJG.js +28 -0
- package/dist/cli/{workflow-CG2B65HD.mjs → workflow-HVZSFWYR.mjs} +5 -5
- package/dist/cli/{workflow-YF5SQJLG.js → workflow-RB4POZP5.js} +15 -15
- package/dist/{client-OBwghxPC.d.ts → client-BV68GMPo.d.ts} +19 -6
- package/dist/{client-CtVdLZux.d.mts → client-D9ACjiRC.d.mts} +19 -6
- package/dist/{compiler-manifest-wOKNiXpa.d.mts → compiler-manifest-BXcZ4P4W.d.mts} +2 -2
- package/dist/{compiler-manifest-wOKNiXpa.d.ts → compiler-manifest-BXcZ4P4W.d.ts} +2 -2
- package/dist/index.d.mts +4 -4
- package/dist/index.d.ts +4 -4
- package/dist/index.js +7 -7
- package/dist/index.mjs +4 -4
- package/dist/install-integrity.json +82 -82
- package/dist/plays/bundle-play-file.d.mts +2 -2
- package/dist/plays/bundle-play-file.d.ts +2 -2
- package/dist/plays/bundle-play-file.mjs +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/package.json +1 -1
- package/dist/cli/auth-QX2L4LPM.js +0 -31
- package/dist/cli/client-Z4VFNTUB.js +0 -20
- package/dist/cli/git-AC2ATBDK.js +0 -23
- package/dist/cli/play-U3CZ4F2W.js +0 -152
- package/dist/cli/search-Y7OTFRCI.js +0 -26
- package/dist/cli/skills-CO5YUWBK.js +0 -28
- package/dist/cli/tools-MWPT5X47.js +0 -38
- package/dist/cli/update-VVIJW7ZJ.js +0 -28
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var _chunkGHLWDXUBjs = require('./chunk-GHLWDXUB.js');
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
var
|
|
8
|
+
var _chunkMCPHK7AFjs = require('./chunk-MCPHK7AF.js');
|
|
9
9
|
|
|
10
10
|
// src/cli/commands/git.ts
|
|
11
11
|
function shellQuote(value) {
|
|
@@ -32,11 +32,11 @@ function renderDeployment(deployment) {
|
|
|
32
32
|
return `${deployment.id} ${source} (${kind}) - ${deployment.status}${suffix}`;
|
|
33
33
|
}
|
|
34
34
|
async function handleList(options) {
|
|
35
|
-
const { http } =
|
|
35
|
+
const { http } = _chunkGHLWDXUBjs.getAuthedHttpClient.call(void 0, );
|
|
36
36
|
const payload = await http.get(
|
|
37
37
|
`/api/v2/play-projects${options.all ? "?includeDisabled=1" : ""}`
|
|
38
38
|
);
|
|
39
|
-
|
|
39
|
+
_chunkGHLWDXUBjs.printCommandEnvelope.call(void 0,
|
|
40
40
|
{
|
|
41
41
|
projects: payload.projects,
|
|
42
42
|
count: payload.projects.length,
|
|
@@ -73,7 +73,7 @@ function describeInstallationStatus(installation) {
|
|
|
73
73
|
}
|
|
74
74
|
}
|
|
75
75
|
async function handleStatus(options) {
|
|
76
|
-
const { http } =
|
|
76
|
+
const { http } = _chunkGHLWDXUBjs.getAuthedHttpClient.call(void 0, );
|
|
77
77
|
const payload = await http.get("/api/v2/github/installation");
|
|
78
78
|
const installation = payload.installation;
|
|
79
79
|
const others = (_nullishCoalesce(payload.installations, () => ( []))).filter(
|
|
@@ -136,7 +136,7 @@ async function handleStatus(options) {
|
|
|
136
136
|
)
|
|
137
137
|
);
|
|
138
138
|
}
|
|
139
|
-
|
|
139
|
+
_chunkGHLWDXUBjs.printCommandEnvelope.call(void 0,
|
|
140
140
|
{
|
|
141
141
|
installation,
|
|
142
142
|
installations: _nullishCoalesce(payload.installations, () => ( [])),
|
|
@@ -147,10 +147,10 @@ async function handleStatus(options) {
|
|
|
147
147
|
);
|
|
148
148
|
}
|
|
149
149
|
async function handleRepos(options) {
|
|
150
|
-
const { http } =
|
|
150
|
+
const { http } = _chunkGHLWDXUBjs.getAuthedHttpClient.call(void 0, );
|
|
151
151
|
const query = options.installation ? `?installationId=${encodeURIComponent(options.installation)}` : "";
|
|
152
152
|
const payload = await http.get(`/api/v2/github/repos${query}`);
|
|
153
|
-
|
|
153
|
+
_chunkGHLWDXUBjs.printCommandEnvelope.call(void 0,
|
|
154
154
|
{
|
|
155
155
|
installation: payload.installation,
|
|
156
156
|
repositories: payload.repositories,
|
|
@@ -171,7 +171,7 @@ async function handleRepos(options) {
|
|
|
171
171
|
}
|
|
172
172
|
async function resolveRepoId(repo, installation) {
|
|
173
173
|
if (/^\d+$/.test(repo)) return Number(repo);
|
|
174
|
-
const { http } =
|
|
174
|
+
const { http } = _chunkGHLWDXUBjs.getAuthedHttpClient.call(void 0, );
|
|
175
175
|
const query = installation ? `?installationId=${encodeURIComponent(installation)}` : "";
|
|
176
176
|
const payload = await http.get(
|
|
177
177
|
`/api/v2/github/repos${query}`
|
|
@@ -188,7 +188,7 @@ async function resolveRepoId(repo, installation) {
|
|
|
188
188
|
}
|
|
189
189
|
async function handleLink(repo, options) {
|
|
190
190
|
const repoId = await resolveRepoId(repo, options.installation);
|
|
191
|
-
const { http } =
|
|
191
|
+
const { http } = _chunkGHLWDXUBjs.getAuthedHttpClient.call(void 0, );
|
|
192
192
|
const payload = await http.post("/api/v2/play-projects", {
|
|
193
193
|
repoId,
|
|
194
194
|
...options.installation !== void 0 ? { installationId: options.installation } : {},
|
|
@@ -197,7 +197,7 @@ async function handleLink(repo, options) {
|
|
|
197
197
|
...options.branch !== void 0 ? { productionBranch: options.branch } : {},
|
|
198
198
|
...options.prChecks !== void 0 ? { checkOnPullRequest: options.prChecks } : {}
|
|
199
199
|
});
|
|
200
|
-
|
|
200
|
+
_chunkGHLWDXUBjs.printCommandEnvelope.call(void 0,
|
|
201
201
|
{
|
|
202
202
|
project: payload.project,
|
|
203
203
|
render: {
|
|
@@ -220,11 +220,11 @@ async function handleLink(repo, options) {
|
|
|
220
220
|
);
|
|
221
221
|
}
|
|
222
222
|
async function handleGet(id, options) {
|
|
223
|
-
const { http } =
|
|
223
|
+
const { http } = _chunkGHLWDXUBjs.getAuthedHttpClient.call(void 0, );
|
|
224
224
|
const payload = await http.get(
|
|
225
225
|
`/api/v2/play-projects/${encodeURIComponent(id)}`
|
|
226
226
|
);
|
|
227
|
-
|
|
227
|
+
_chunkGHLWDXUBjs.printCommandEnvelope.call(void 0,
|
|
228
228
|
{
|
|
229
229
|
project: payload.project,
|
|
230
230
|
render: {
|
|
@@ -240,7 +240,7 @@ async function handleGet(id, options) {
|
|
|
240
240
|
);
|
|
241
241
|
}
|
|
242
242
|
async function handleSet(id, options) {
|
|
243
|
-
const { http } =
|
|
243
|
+
const { http } = _chunkGHLWDXUBjs.getAuthedHttpClient.call(void 0, );
|
|
244
244
|
const payload = await http.patch(
|
|
245
245
|
`/api/v2/play-projects/${encodeURIComponent(id)}`,
|
|
246
246
|
{
|
|
@@ -251,7 +251,7 @@ async function handleSet(id, options) {
|
|
|
251
251
|
...options.disabled !== void 0 ? { disabled: options.disabled } : {}
|
|
252
252
|
}
|
|
253
253
|
);
|
|
254
|
-
|
|
254
|
+
_chunkGHLWDXUBjs.printCommandEnvelope.call(void 0,
|
|
255
255
|
{
|
|
256
256
|
project: payload.project,
|
|
257
257
|
render: {
|
|
@@ -264,9 +264,9 @@ async function handleSet(id, options) {
|
|
|
264
264
|
);
|
|
265
265
|
}
|
|
266
266
|
async function handleUnlink(id, options) {
|
|
267
|
-
const { http } =
|
|
267
|
+
const { http } = _chunkGHLWDXUBjs.getAuthedHttpClient.call(void 0, );
|
|
268
268
|
await http.delete(`/api/v2/play-projects/${encodeURIComponent(id)}`);
|
|
269
|
-
|
|
269
|
+
_chunkGHLWDXUBjs.printCommandEnvelope.call(void 0,
|
|
270
270
|
{
|
|
271
271
|
ok: true,
|
|
272
272
|
id,
|
|
@@ -286,10 +286,10 @@ async function handleUnlink(id, options) {
|
|
|
286
286
|
);
|
|
287
287
|
}
|
|
288
288
|
async function handleConnect(options) {
|
|
289
|
-
const baseUrl =
|
|
289
|
+
const baseUrl = _chunkMCPHK7AFjs.resolveBaseUrlOnly.call(void 0, );
|
|
290
290
|
const connectUrl = `${baseUrl.replace(/\/$/, "")}/api/v2/github/connect`;
|
|
291
|
-
const opened =
|
|
292
|
-
|
|
291
|
+
const opened = _chunkGHLWDXUBjs.openInBrowser.call(void 0, connectUrl);
|
|
292
|
+
_chunkGHLWDXUBjs.printCommandEnvelope.call(void 0,
|
|
293
293
|
{
|
|
294
294
|
connectUrl,
|
|
295
295
|
browser: opened,
|
|
@@ -311,7 +311,7 @@ async function handleConnect(options) {
|
|
|
311
311
|
);
|
|
312
312
|
}
|
|
313
313
|
async function handleDeploymentsList(options) {
|
|
314
|
-
const { http } =
|
|
314
|
+
const { http } = _chunkGHLWDXUBjs.getAuthedHttpClient.call(void 0, );
|
|
315
315
|
const query = new URLSearchParams();
|
|
316
316
|
if (options.repo) query.set("projectId", options.repo);
|
|
317
317
|
if (options.limit) query.set("limit", options.limit);
|
|
@@ -319,7 +319,7 @@ async function handleDeploymentsList(options) {
|
|
|
319
319
|
const payload = await http.get(
|
|
320
320
|
`/api/v2/deployments${suffix}`
|
|
321
321
|
);
|
|
322
|
-
|
|
322
|
+
_chunkGHLWDXUBjs.printCommandEnvelope.call(void 0,
|
|
323
323
|
{
|
|
324
324
|
deployments: payload.deployments,
|
|
325
325
|
count: payload.deployments.length,
|
|
@@ -363,12 +363,12 @@ function renderDeploymentMonitorLines(results) {
|
|
|
363
363
|
]);
|
|
364
364
|
}
|
|
365
365
|
async function handleDeploymentGet(id, options) {
|
|
366
|
-
const { http } =
|
|
366
|
+
const { http } = _chunkGHLWDXUBjs.getAuthedHttpClient.call(void 0, );
|
|
367
367
|
const payload = await http.get(`/api/v2/deployments/${encodeURIComponent(id)}`);
|
|
368
368
|
const playLines = renderDeploymentPlayLines(payload.deployment.results);
|
|
369
369
|
const monitorLines = renderDeploymentMonitorLines(payload.deployment.results);
|
|
370
370
|
const repository = _nullishCoalesce(_optionalChain([payload, 'access', _10 => _10.project, 'optionalAccess', _11 => _11.repoFullName]), () => ( payload.deployment.repoFullName));
|
|
371
|
-
|
|
371
|
+
_chunkGHLWDXUBjs.printCommandEnvelope.call(void 0,
|
|
372
372
|
{
|
|
373
373
|
deployment: payload.deployment,
|
|
374
374
|
project: payload.project,
|
|
@@ -387,9 +387,9 @@ async function handleDeploymentGet(id, options) {
|
|
|
387
387
|
);
|
|
388
388
|
}
|
|
389
389
|
async function handleDeploymentCancel(id, options) {
|
|
390
|
-
const { http } =
|
|
390
|
+
const { http } = _chunkGHLWDXUBjs.getAuthedHttpClient.call(void 0, );
|
|
391
391
|
const payload = await http.post(`/api/v2/deployments/${encodeURIComponent(id)}/cancel`, {});
|
|
392
|
-
|
|
392
|
+
_chunkGHLWDXUBjs.printCommandEnvelope.call(void 0,
|
|
393
393
|
{
|
|
394
394
|
cancelled: payload.cancelled,
|
|
395
395
|
deployment: payload.deployment,
|
|
@@ -7,11 +7,11 @@ import {
|
|
|
7
7
|
} from "./chunk-EDWJY6T4.mjs";
|
|
8
8
|
import {
|
|
9
9
|
registerDeprecatedSearchCommand
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-OB3SYJGU.mjs";
|
|
11
11
|
import {
|
|
12
12
|
handleDeploymentGet,
|
|
13
13
|
handleDeploymentsList
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-VDPBQCRQ.mjs";
|
|
15
15
|
import {
|
|
16
16
|
PLAY_BOOTSTRAP_COMPANY_PROVIDER_CATEGORY,
|
|
17
17
|
PLAY_BOOTSTRAP_OUTPUT_FIELD_BY_FINDER,
|
|
@@ -34,7 +34,7 @@ import {
|
|
|
34
34
|
normalizeRunEventOperationRequest,
|
|
35
35
|
parseLogLevel,
|
|
36
36
|
playInputExampleArgs
|
|
37
|
-
} from "./chunk-
|
|
37
|
+
} from "./chunk-D3NMIACS.mjs";
|
|
38
38
|
import {
|
|
39
39
|
CSV_DATA_INPUT_KEY,
|
|
40
40
|
buildNamedPlayRunRequest,
|
|
@@ -66,10 +66,10 @@ import {
|
|
|
66
66
|
printJson,
|
|
67
67
|
printJsonError,
|
|
68
68
|
renderCommandEnvelopeText
|
|
69
|
-
} from "./chunk-
|
|
69
|
+
} from "./chunk-46ZOD4PQ.mjs";
|
|
70
70
|
import {
|
|
71
71
|
fetchWithDeploymentProtection
|
|
72
|
-
} from "./chunk-
|
|
72
|
+
} from "./chunk-IDSDRGKF.mjs";
|
|
73
73
|
import {
|
|
74
74
|
PLAY_DEFAULT_EXPORT,
|
|
75
75
|
extractDefinedPlayName,
|
|
@@ -77,7 +77,7 @@ import {
|
|
|
77
77
|
listPlayFileExports,
|
|
78
78
|
parsePlaySourceForAnalysis,
|
|
79
79
|
resolveEnabledExecutionProfile
|
|
80
|
-
} from "./chunk-
|
|
80
|
+
} from "./chunk-7PZFGB7L.mjs";
|
|
81
81
|
import {
|
|
82
82
|
DeeplineError
|
|
83
83
|
} from "./chunk-NXGCO4JB.mjs";
|
|
@@ -3634,14 +3634,16 @@ function stepExecution(step, runStatus) {
|
|
|
3634
3634
|
});
|
|
3635
3635
|
}
|
|
3636
3636
|
function buildRunOverview(status, fullStatus) {
|
|
3637
|
-
const
|
|
3637
|
+
const inspectedStatus = fullStatus?.package ? fullStatus : status;
|
|
3638
|
+
const pkg = inspectedStatus.package;
|
|
3638
3639
|
if (!pkg) {
|
|
3639
3640
|
throw new Error(
|
|
3640
3641
|
"This server did not return a run package; use runs get --full --json."
|
|
3641
3642
|
);
|
|
3642
3643
|
}
|
|
3643
3644
|
const outputs = Object.entries(pkg.outputs);
|
|
3644
|
-
const resultPackage = fullStatus?.package?.resultState ? fullStatus.package : pkg;
|
|
3645
|
+
const resultPackage = fullStatus?.package?.resultState ? fullStatus.package : status.package ?? pkg;
|
|
3646
|
+
const failedLogs = inspectedStatus.failedLogs ?? status.failedLogs;
|
|
3645
3647
|
const warnings = [...pkg.warnings ?? []];
|
|
3646
3648
|
const { outcome: _outcome, ...run } = pkg.run;
|
|
3647
3649
|
const steps = pkg.steps.map((step) => {
|
|
@@ -3735,10 +3737,10 @@ function buildRunOverview(status, fullStatus) {
|
|
|
3735
3737
|
return {
|
|
3736
3738
|
schemaVersion: pkg.schemaVersion,
|
|
3737
3739
|
kind: "run_overview",
|
|
3738
|
-
...
|
|
3740
|
+
...inspectedStatus.runStatus ?? pkg.runStatus ? { runStatus: inspectedStatus.runStatus ?? pkg.runStatus } : {},
|
|
3739
3741
|
run: {
|
|
3740
3742
|
...run,
|
|
3741
|
-
...
|
|
3743
|
+
...inspectedStatus.revisionId && !run.revisionId ? { revisionId: inspectedStatus.revisionId } : {}
|
|
3742
3744
|
},
|
|
3743
3745
|
steps,
|
|
3744
3746
|
failures: {
|
|
@@ -3758,19 +3760,19 @@ function buildRunOverview(status, fullStatus) {
|
|
|
3758
3760
|
},
|
|
3759
3761
|
errorDetails: {
|
|
3760
3762
|
coverage: "unknown",
|
|
3761
|
-
reported: record(pkg)?.errors ?? record(
|
|
3763
|
+
reported: record(pkg)?.errors ?? record(inspectedStatus)?.errors ?? [],
|
|
3762
3764
|
...pkg.run.error ? { run: pkg.run.error } : {},
|
|
3763
3765
|
steps: steps.filter((step) => step.error).map((step) => ({ stepId: step.id, message: step.error })),
|
|
3764
3766
|
...pkg.next?.logs ? { getMore: "actions.getLogsCmd" } : {}
|
|
3765
3767
|
},
|
|
3766
|
-
rowOutcomes:
|
|
3768
|
+
rowOutcomes: inspectedStatus.rowOutcomes ?? pkg.rowOutcomes,
|
|
3767
3769
|
warnings,
|
|
3768
|
-
...
|
|
3770
|
+
...failedLogs ? { failedLogs } : {},
|
|
3769
3771
|
datasets,
|
|
3770
3772
|
...Object.hasOwn(resultPackage, "result") ? { result: resultPackage.result } : {},
|
|
3771
3773
|
resultState: resultPackage.resultState ?? "unavailable",
|
|
3772
3774
|
actions: {
|
|
3773
|
-
...lifecycleActions(
|
|
3775
|
+
...lifecycleActions(inspectedStatus, pkg.run.id, pkg.run.status),
|
|
3774
3776
|
...actions(pkg.next, {
|
|
3775
3777
|
inspect: "getRunCmd",
|
|
3776
3778
|
full: "getFullRunCmd",
|
|
@@ -15385,8 +15387,9 @@ Rerun started from ${runId}${inputOverrides ? " with input overrides" : ""}.`
|
|
|
15385
15387
|
return 0;
|
|
15386
15388
|
}
|
|
15387
15389
|
async function handleRunsList(args) {
|
|
15388
|
-
const usage2 = "Usage: deepline runs list [--play <play-name>] [--status <status>] [--limit <count>] [--offset <count>] [--json]";
|
|
15390
|
+
const usage2 = "Usage: deepline runs list [--play <play-name>] [--node <mermaid-node-id>] [--status <status>] [--limit <count>] [--offset <count>] [--json]";
|
|
15389
15391
|
let playName = null;
|
|
15392
|
+
let nodeId = null;
|
|
15390
15393
|
let statusFilter = null;
|
|
15391
15394
|
let limit;
|
|
15392
15395
|
let offset;
|
|
@@ -15396,6 +15399,10 @@ async function handleRunsList(args) {
|
|
|
15396
15399
|
playName = args[++index].trim();
|
|
15397
15400
|
continue;
|
|
15398
15401
|
}
|
|
15402
|
+
if (arg === "--node" && args[index + 1]) {
|
|
15403
|
+
nodeId = args[++index].trim();
|
|
15404
|
+
continue;
|
|
15405
|
+
}
|
|
15399
15406
|
if (arg === "--status" && args[index + 1]) {
|
|
15400
15407
|
statusFilter = args[++index].trim().toLowerCase();
|
|
15401
15408
|
continue;
|
|
@@ -15442,6 +15449,10 @@ Active runs: ${next.running}`
|
|
|
15442
15449
|
}
|
|
15443
15450
|
return 1;
|
|
15444
15451
|
}
|
|
15452
|
+
if (nodeId && !playName) {
|
|
15453
|
+
console.error("--node requires --play.");
|
|
15454
|
+
return 1;
|
|
15455
|
+
}
|
|
15445
15456
|
if ((offset ?? 0) > 0 && !playName) {
|
|
15446
15457
|
console.error("--offset requires --play.");
|
|
15447
15458
|
return 1;
|
|
@@ -15450,6 +15461,7 @@ Active runs: ${next.running}`
|
|
|
15450
15461
|
const page = await client.runs.listPage({
|
|
15451
15462
|
...playName ? { play: playName } : {},
|
|
15452
15463
|
...statusFilter ? { status: statusFilter } : {},
|
|
15464
|
+
...nodeId ? { node: nodeId } : {},
|
|
15453
15465
|
...limit !== void 0 ? { limit } : {},
|
|
15454
15466
|
...offset !== void 0 ? { offset } : {}
|
|
15455
15467
|
});
|
|
@@ -15474,7 +15486,8 @@ Active runs: ${next.running}`
|
|
|
15474
15486
|
executionTime: run.executionTime,
|
|
15475
15487
|
billingTotalCredits: run.billingTotalCredits,
|
|
15476
15488
|
billingMaxCreditsPerRun: run.billingMaxCreditsPerRun,
|
|
15477
|
-
playName: run.playName ?? run.memo?.playName ?? playName ?? null
|
|
15489
|
+
playName: run.playName ?? run.memo?.playName ?? playName ?? null,
|
|
15490
|
+
...nodeId ? { nodeObservation: run.nodeObservation ?? null } : {}
|
|
15478
15491
|
}));
|
|
15479
15492
|
const lines = runs.length === 0 ? [
|
|
15480
15493
|
playName ? `No runs found for ${playName}.` : `No runs found for status ${statusFilter}.`
|
|
@@ -15489,6 +15502,19 @@ Active runs: ${next.running}`
|
|
|
15489
15502
|
];
|
|
15490
15503
|
if (run.parentRunId) lines2.push(` parent: ${run.parentRunId}`);
|
|
15491
15504
|
if (run.rootRunId) lines2.push(` root: ${run.rootRunId}`);
|
|
15505
|
+
if (nodeId && run.nodeObservation) {
|
|
15506
|
+
lines2.push(
|
|
15507
|
+
` node ${nodeId} (${run.nodeObservation.status}, attempt ${run.nodeObservation.attempt})`
|
|
15508
|
+
);
|
|
15509
|
+
lines2.push(
|
|
15510
|
+
` input: ${JSON.stringify(run.nodeObservation.inputs ?? {})}`
|
|
15511
|
+
);
|
|
15512
|
+
lines2.push(
|
|
15513
|
+
` output: ${JSON.stringify(run.nodeObservation.outputs ?? {})}`
|
|
15514
|
+
);
|
|
15515
|
+
} else if (nodeId) {
|
|
15516
|
+
lines2.push(` node ${nodeId}: not recorded`);
|
|
15517
|
+
}
|
|
15492
15518
|
return lines2.join("\n");
|
|
15493
15519
|
});
|
|
15494
15520
|
const nextOffset = (page.offset ?? offset ?? 0) + runs.length;
|
|
@@ -17922,7 +17948,7 @@ Examples:
|
|
|
17922
17948
|
process.exitCode = await ownView();
|
|
17923
17949
|
return;
|
|
17924
17950
|
}
|
|
17925
|
-
const { describeAnything } = await import("./describe-
|
|
17951
|
+
const { describeAnything } = await import("./describe-LXBJP6OP.mjs");
|
|
17926
17952
|
process.exitCode = await describeAnything(
|
|
17927
17953
|
name,
|
|
17928
17954
|
{
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import {
|
|
2
2
|
npmSupportsAllowScripts,
|
|
3
3
|
readNpmVersion
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-J3ZPMADG.mjs";
|
|
5
5
|
import {
|
|
6
6
|
resolveShellSpawn,
|
|
7
7
|
runSkillsCommand
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-TYSAKSX7.mjs";
|
|
9
9
|
import {
|
|
10
10
|
printCommandEnvelope
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-46ZOD4PQ.mjs";
|
|
12
12
|
import {
|
|
13
13
|
autoDetectBaseUrl
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-IDSDRGKF.mjs";
|
|
15
15
|
|
|
16
16
|
// src/cli/commands/update.ts
|
|
17
17
|
import { spawn, spawnSync } from "child_process";
|