deepline 0.3.502 → 0.3.504
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 +26 -0
- package/dist/bundling-sources/sdk/src/index.ts +1 -0
- package/dist/bundling-sources/sdk/src/release.ts +1 -1
- package/dist/bundling-sources/sdk/src/types.ts +9 -0
- package/dist/bundling-sources/shared_libs/monitors/http-error-response.ts +35 -0
- package/dist/bundling-sources/shared_libs/monitors/provider-monitor-batch-operation.ts +1 -1
- package/dist/bundling-sources/shared_libs/monitors/provider-monitor-public-aliases.ts +13 -0
- package/dist/bundling-sources/shared_libs/monitors/starter-templates.ts +0 -8
- package/dist/bundling-sources/shared_libs/observability/dlq.ts +174 -0
- package/dist/bundling-sources/shared_libs/observability/queue-health.ts +9 -0
- package/dist/bundling-sources/shared_libs/observability/queue-item-connectors.ts +1 -0
- package/dist/bundling-sources/shared_libs/observability/scheduled-jobs.json +18 -0
- package/dist/bundling-sources/shared_libs/play-runtime/activity-observation.ts +20 -0
- package/dist/bundling-sources/shared_libs/play-runtime/app-runtime-api.ts +62 -2
- package/dist/bundling-sources/shared_libs/play-runtime/context.ts +667 -62
- package/dist/bundling-sources/shared_libs/play-runtime/ctx-types.ts +55 -0
- package/dist/bundling-sources/shared_libs/play-runtime/durable-receipt-execution.ts +20 -2
- package/dist/bundling-sources/shared_libs/play-runtime/durable-runs-rollout.ts +46 -0
- package/dist/bundling-sources/shared_libs/play-runtime/execution-gateway-invocation-fence.ts +80 -4
- package/dist/bundling-sources/shared_libs/play-runtime/fixture-egress-fetch.ts +95 -0
- package/dist/bundling-sources/shared_libs/play-runtime/freshness-receipt-execution.ts +292 -45
- package/dist/bundling-sources/shared_libs/play-runtime/internal-bootstrap-token.ts +15 -0
- package/dist/bundling-sources/shared_libs/play-runtime/launch-identity.ts +3 -0
- package/dist/bundling-sources/shared_libs/play-runtime/play-http-request.ts +7 -3
- package/dist/bundling-sources/shared_libs/play-runtime/play-runtime-semantics.ts +31 -1
- package/dist/bundling-sources/shared_libs/play-runtime/post-code-recovery-policy.ts +231 -0
- package/dist/bundling-sources/shared_libs/play-runtime/protocol.ts +4 -0
- package/dist/bundling-sources/shared_libs/play-runtime/run-ending-event.ts +55 -0
- package/dist/bundling-sources/shared_libs/play-runtime/run-ledger.ts +126 -0
- package/dist/bundling-sources/shared_libs/play-runtime/runner-app/index.ts +38 -1
- package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/backends/daytona-launch-transport.ts +2 -9
- package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/backends/daytona-lifecycle.ts +51 -19
- package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/backends/local-process.ts +9 -4
- package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/backends/modal.ts +2 -0
- package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/runtime-sandbox-reconciliation.ts +2 -0
- package/dist/bundling-sources/shared_libs/play-runtime/runtime-actions.ts +12 -1
- package/dist/bundling-sources/shared_libs/play-runtime/runtime-authority.ts +3 -0
- package/dist/bundling-sources/shared_libs/play-runtime/runtime-incident-drills.ts +42 -0
- package/dist/bundling-sources/shared_libs/play-runtime/runtime-operation-contract.ts +7 -0
- package/dist/bundling-sources/shared_libs/play-runtime/runtime-receipt-store-adapter.ts +26 -1
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backend.ts +13 -0
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/absurd-deadline-reconciliation.ts +53 -0
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/absurd-runtime-worker.ts +631 -19
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/durable-run-inventory.ts +719 -0
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/durable-run-sql.ts +206 -0
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/latest-cache-result.ts +83 -0
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/postgres.ts +1432 -157
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/receipt-gateway.ts +61 -0
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/runtime-event-search.ts +29 -8
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/runtime-queue-health.ts +27 -2
- package/dist/bundling-sources/shared_libs/play-runtime/test-runtime-seams.ts +45 -0
- package/dist/bundling-sources/shared_libs/play-runtime/tool-cache-policy.ts +18 -0
- package/dist/bundling-sources/shared_libs/play-runtime/tool-execute-retry-policy.ts +129 -14
- package/dist/bundling-sources/shared_libs/play-runtime/workflow-executor-auth.ts +2 -0
- package/dist/bundling-sources/shared_libs/plays/authoring-contract.ts +10 -1
- package/dist/cli/{auth-EFHLOVG4.mjs → auth-3L5AA5AX.mjs} +5 -5
- package/dist/cli/auth-UPK4IIIN.js +43 -0
- package/dist/cli/{billing-Q5XKEYPP.mjs → billing-E7EASVPO.mjs} +19 -12
- package/dist/cli/{billing-SKT2VE34.js → billing-HOGXVE2V.js} +92 -85
- package/dist/cli/{chunk-L5CTJY74.mjs → chunk-22OCKCYS.mjs} +2 -2
- package/dist/cli/{chunk-YWOQYYYS.mjs → chunk-2ABRDH3B.mjs} +2 -2
- package/dist/cli/{chunk-IL666WJE.js → chunk-2W77YCKH.js} +5 -5
- package/dist/cli/{chunk-2MVIS2UI.mjs → chunk-3MLFFWDM.mjs} +2 -2
- package/dist/cli/{chunk-HMZF2CSP.mjs → chunk-4CC67XH5.mjs} +2 -2
- package/dist/cli/{chunk-NXVYLX3F.mjs → chunk-5CHBIJIM.mjs} +10 -6
- package/dist/cli/chunk-5LUF4LAR.mjs +209 -0
- package/dist/cli/{chunk-JL6H4H3G.js → chunk-5Z6EULD5.js} +6 -6
- package/dist/cli/{chunk-32YQBJON.js → chunk-67OI26OE.js} +7 -7
- package/dist/cli/{chunk-LA3UYRVZ.js → chunk-6JNBMTCZ.js} +1 -1
- package/dist/cli/{chunk-DYHTXGLX.js → chunk-6SMR7LU7.js} +2 -2
- package/dist/cli/{chunk-OFBLT2LQ.mjs → chunk-7F4OEHQK.mjs} +1 -1
- package/dist/cli/{chunk-DRBD4IYQ.mjs → chunk-7MJYZ33I.mjs} +2 -6
- package/dist/cli/{chunk-UOANF3DR.js → chunk-7P2QVMBP.js} +26 -7
- package/dist/cli/{chunk-GINKIZ7S.js → chunk-A6LA42JY.js} +16 -16
- package/dist/cli/{chunk-FVM4PS5Q.js → chunk-BN5VKY4X.js} +25 -12
- package/dist/cli/{chunk-Z2H7OQ6E.mjs → chunk-BTWUNKKX.mjs} +2 -2
- package/dist/cli/{chunk-R5F7JXT4.mjs → chunk-BX45XMXZ.mjs} +2 -2
- package/dist/cli/{chunk-NKLM4J4X.mjs → chunk-DEAJVQEG.mjs} +1 -1
- package/dist/cli/{chunk-JFBJLNBI.js → chunk-FISP4LCK.js} +53 -53
- package/dist/cli/{chunk-OEUMXKR5.js → chunk-FTRVCIGC.js} +26 -26
- package/dist/cli/{chunk-YL2CCF6T.mjs → chunk-GGBXNQCR.mjs} +4 -4
- package/dist/cli/{chunk-YPTZJ7LO.js → chunk-GJ2DA35C.js} +100 -17
- package/dist/cli/{chunk-2S2F6YSI.js → chunk-GRAGUYIE.js} +41 -41
- package/dist/cli/{chunk-2JS3H6H6.mjs → chunk-HUX5DZO6.mjs} +3 -3
- package/dist/cli/{chunk-4CCMD7QM.mjs → chunk-IGNQKOWT.mjs} +32 -15
- package/dist/cli/{chunk-WKFAX2K7.js → chunk-IPAMOMGP.js} +21 -21
- package/dist/cli/{chunk-SAW3FBCA.mjs → chunk-ITJ7NB2D.mjs} +6 -0
- package/dist/cli/{chunk-Q3NM6ZL3.js → chunk-JPR2546F.js} +23 -21
- package/dist/cli/{chunk-X5MGQ7UT.js → chunk-KCKAFTPY.js} +10 -10
- package/dist/cli/{chunk-TAK3MVXY.js → chunk-KGUGNEKL.js} +284 -267
- package/dist/cli/{chunk-OVZOMSH2.js → chunk-LHXYCZYO.js} +8 -8
- package/dist/cli/{chunk-QOJBRCAS.js → chunk-MJTK6Q3G.js} +3 -3
- package/dist/cli/{chunk-MYUISF3P.mjs → chunk-MLMWM5DV.mjs} +5 -5
- package/dist/cli/{chunk-JO5FFSR7.js → chunk-NTLBZUHD.js} +6 -0
- package/dist/cli/{chunk-MP5QY4A2.mjs → chunk-NZ7Z7WNM.mjs} +2 -2
- package/dist/cli/{chunk-HIVRCTDR.mjs → chunk-OX2D6BG4.mjs} +20 -1
- package/dist/cli/{chunk-YDXEXVBV.js → chunk-QKKU2FH4.js} +7 -7
- package/dist/cli/{chunk-3KEZVGGV.mjs → chunk-QOLX2O2S.mjs} +4 -4
- package/dist/cli/{chunk-JFUXUSKB.mjs → chunk-R2VZVHJP.mjs} +15 -2
- package/dist/cli/chunk-R7J7CJPZ.js +209 -0
- package/dist/cli/{chunk-XMKUJ44Z.js → chunk-SMSQVRHE.js} +5 -5
- package/dist/cli/{chunk-54QXWK3C.mjs → chunk-SVFTZTCI.mjs} +1 -1
- package/dist/cli/{chunk-FWDAEWCD.js → chunk-TMQUMILM.js} +19 -23
- package/dist/cli/{chunk-TFFJ2PRN.mjs → chunk-UFYJTRSF.mjs} +98 -15
- package/dist/cli/{chunk-EUWRKWT4.js → chunk-UJMBG5JU.js} +5 -4
- package/dist/cli/{chunk-DKAMCJIT.js → chunk-USTJEEND.js} +17 -13
- package/dist/cli/{chunk-AJL2Q6IQ.js → chunk-UXQQPMYO.js} +2 -2
- package/dist/cli/{chunk-7ZYSXSJJ.mjs → chunk-VJVJWZ6I.mjs} +5 -5
- package/dist/cli/{chunk-JLYDLK6X.js → chunk-WBIDPDKJ.js} +3 -3
- package/dist/cli/{chunk-QNELA7SX.js → chunk-WZSFIJMG.js} +53 -53
- package/dist/cli/{chunk-NZXB27TP.mjs → chunk-XHZSPMNC.mjs} +4 -4
- package/dist/cli/{chunk-W5CHE5Q2.mjs → chunk-Y6XKCEPK.mjs} +1 -1
- package/dist/cli/{chunk-4WTC5SSN.mjs → chunk-Y7VEHKID.mjs} +10 -8
- package/dist/cli/{chunk-3MJSWVQ2.mjs → chunk-YOQ2NNDO.mjs} +2 -1
- package/dist/cli/{chunk-ZNB6GR3P.mjs → chunk-Z6FXUDIL.mjs} +1 -1
- package/dist/cli/command-docs.d.mts +2 -1
- package/dist/cli/command-docs.d.ts +2 -1
- package/dist/cli/command-docs.js +6 -2
- package/dist/cli/command-docs.mjs +5 -1
- package/dist/cli/{csv-OXGSCV75.js → csv-2XWGPITO.js} +13 -13
- package/dist/cli/{csv-6AEPKKCO.mjs → csv-433JEHLQ.mjs} +4 -4
- package/dist/cli/{db-K3KRK4CZ.mjs → db-K747DH43.mjs} +6 -6
- package/dist/cli/{db-6NVHDUZY.js → db-PJJMD4VH.js} +27 -27
- package/dist/cli/describe-OYS7LZJD.js +49 -0
- package/dist/cli/{describe-P3ZJS7TQ.mjs → describe-VEDDYW4P.mjs} +20 -20
- package/dist/cli/describe-core.d.mts +8 -4
- package/dist/cli/describe-core.d.ts +8 -4
- package/dist/cli/describe-core.js +4 -4
- package/dist/cli/describe-core.mjs +3 -3
- package/dist/cli/{executions-2C2FFG52.js → executions-HM5T72H6.js} +8 -8
- package/dist/cli/{executions-I7XW6WWK.mjs → executions-JWRX3XCT.mjs} +6 -6
- package/dist/cli/{feedback-47B57A5Y.js → feedback-34UG4BO3.js} +8 -8
- package/dist/cli/{feedback-RSTNBJAI.mjs → feedback-MNSIA63Y.mjs} +4 -4
- package/dist/cli/git-5YQJSJFR.js +25 -0
- package/dist/cli/{git-3G5AFKBT.mjs → git-ZKEOXV3A.mjs} +5 -5
- package/dist/cli/index.js +144 -142
- package/dist/cli/index.mjs +44 -42
- package/dist/cli/{legacy-noops-NQ262TKL.mjs → legacy-noops-5M4T4ZVT.mjs} +5 -5
- package/dist/cli/{legacy-noops-P665PBG4.js → legacy-noops-YXSI4FVU.js} +8 -8
- package/dist/cli/{monitors-KUPZODZS.mjs → monitors-C65OC4AW.mjs} +7 -7
- package/dist/cli/{monitors-IPWAD7LS.js → monitors-O25GDOYE.js} +95 -95
- package/dist/cli/{org-WFC3N672.js → org-2GSPLY2A.js} +72 -72
- package/dist/cli/{org-ZCQGEM3L.mjs → org-ZRMG5NS2.mjs} +6 -6
- package/dist/cli/{pages-N5BNC67L.js → pages-45DPADK6.js} +18 -18
- package/dist/cli/{pages-VE66IU7B.mjs → pages-TZZUFBRO.mjs} +6 -6
- package/dist/cli/{play-EIMDIAJB.mjs → play-3D7HH273.mjs} +138 -226
- package/dist/cli/{play-NKIRJSKX.js → play-RCGMND6X.js} +454 -542
- package/dist/cli/{providers-XU3AGY2F.js → providers-3N3ECMTY.js} +9 -9
- package/dist/cli/{providers-KDTJ63ED.mjs → providers-PSAKV6CJ.mjs} +6 -6
- package/dist/cli/{quickstart-TXFXUODF.mjs → quickstart-2A35SMGC.mjs} +4 -4
- package/dist/cli/{quickstart-OSCHOSXU.js → quickstart-6R6AIXM6.js} +6 -6
- package/dist/cli/{run-ODGML35U.mjs → run-F3TLDGUO.mjs} +25 -25
- package/dist/cli/{run-ET2KVTPK.js → run-F6ZXTASZ.js} +44 -44
- package/dist/cli/{search-DK67K6PR.mjs → search-CZLCY3D2.mjs} +7 -7
- package/dist/cli/search-R5VEWJO2.js +32 -0
- package/dist/cli/{search-output-6SOKQTCW.mjs → search-output-MQTSTLN5.mjs} +5 -5
- package/dist/cli/{search-output-KXP4FA62.js → search-output-R5XDNILW.js} +7 -7
- package/dist/cli/{secrets-C6SYTMU7.mjs → secrets-D3GF4B2Z.mjs} +6 -6
- package/dist/cli/{secrets-WPS6NMNK.js → secrets-DCJYHDSY.js} +15 -15
- package/dist/cli/{sessions-PXVOH34X.mjs → sessions-QGEQ2UYZ.mjs} +5 -5
- package/dist/cli/{sessions-IP562J5Z.js → sessions-Z4JYJSDP.js} +6 -6
- package/dist/cli/{settings-FBUQGYVJ.mjs → settings-G7QEXA4N.mjs} +11 -11
- package/dist/cli/{settings-SUDUIVMY.js → settings-UVXXAT4A.js} +78 -78
- package/dist/cli/{setup-I5H6IOEY.js → setup-5I42W7D4.js} +49 -49
- package/dist/cli/{setup-JSIMTR73.mjs → setup-QHJU3DUI.mjs} +9 -9
- package/dist/cli/{skills-FJQ3LX6N.mjs → skills-5LRF4UKX.mjs} +7 -7
- package/dist/cli/skills-FB6TV52O.js +36 -0
- package/dist/cli/tools-L2364RPA.js +56 -0
- package/dist/cli/{tools-IGBK4BVE.mjs → tools-PUT6STVG.mjs} +18 -18
- package/dist/cli/{update-7MTT6F5K.mjs → update-CJ2GA64X.mjs} +9 -9
- package/dist/cli/update-ESYJGYVZ.js +34 -0
- package/dist/cli/{workflow-PM2J2OU3.mjs → workflow-HVEWRTXD.mjs} +7 -7
- package/dist/cli/{workflow-UX3ZX6BQ.js → workflow-O67MEBCP.js} +17 -17
- package/dist/{client-Bn8FwKGO.d.ts → client-CIwenMFS.d.ts} +1 -1
- package/dist/{client-CfNRmjLK.d.mts → client-DYAfJpaN.d.mts} +1 -1
- package/dist/{client-core-B91EV0WS.d.ts → client-core-CRjtyMAI.d.ts} +25 -2
- package/dist/{client-core-BG8Cgrmk.d.mts → client-core-DlzP8vEs.d.mts} +25 -2
- package/dist/{compiler-manifest-DlXDyndN.d.mts → compiler-manifest-DaJrA2KV.d.mts} +1 -1
- package/dist/{compiler-manifest-DlXDyndN.d.ts → compiler-manifest-DaJrA2KV.d.ts} +1 -1
- package/dist/{errors-BtriA2ld.d.mts → errors-BKnSYueU.d.mts} +1 -1
- package/dist/{errors-DmcLykM7.d.ts → errors-KLga4bLr.d.ts} +1 -1
- package/dist/{index-DI0sR_fX.d.mts → index-C-8AFpWy.d.mts} +1 -1
- package/dist/{index--Jw-slHY.d.ts → index-C5nAZ-VS.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 +125 -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 +12 -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/auth-VM3IKP5F.js +0 -43
- package/dist/cli/describe-JOUAXXPE.js +0 -49
- package/dist/cli/git-OPKIC6JQ.js +0 -25
- package/dist/cli/search-6U54Y3OK.js +0 -32
- package/dist/cli/skills-VHININXC.js +0 -36
- package/dist/cli/tools-XMBMHVKF.js +0 -56
- package/dist/cli/update-H7JVW43I.js +0 -34
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
var
|
|
8
|
+
var _chunkUSTJEENDjs = require('./chunk-USTJEEND.js');
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
|
|
@@ -18,19 +18,19 @@ var _chunkDKAMCJITjs = require('./chunk-DKAMCJIT.js');
|
|
|
18
18
|
|
|
19
19
|
|
|
20
20
|
|
|
21
|
-
var
|
|
21
|
+
var _chunkKCKAFTPYjs = require('./chunk-KCKAFTPY.js');
|
|
22
22
|
|
|
23
23
|
|
|
24
|
-
var
|
|
24
|
+
var _chunk67OI26OEjs = require('./chunk-67OI26OE.js');
|
|
25
25
|
require('./chunk-D3BCSAN7.js');
|
|
26
26
|
|
|
27
27
|
|
|
28
28
|
|
|
29
|
-
var
|
|
29
|
+
var _chunkFTRVCIGCjs = require('./chunk-FTRVCIGC.js');
|
|
30
30
|
|
|
31
31
|
|
|
32
32
|
|
|
33
|
-
var
|
|
33
|
+
var _chunkNTLBZUHDjs = require('./chunk-NTLBZUHD.js');
|
|
34
34
|
|
|
35
35
|
|
|
36
36
|
var _chunkAID3OYVJjs = require('./chunk-AID3OYVJ.js');
|
|
@@ -44,14 +44,6 @@ var _chunkAID3OYVJjs = require('./chunk-AID3OYVJ.js');
|
|
|
44
44
|
var _chunkKQSTV4MWjs = require('./chunk-KQSTV4MW.js');
|
|
45
45
|
|
|
46
46
|
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
var _chunkYGCKMI5Pjs = require('./chunk-YGCKMI5P.js');
|
|
53
|
-
|
|
54
|
-
|
|
55
47
|
var _chunkVLEVVDWGjs = require('./chunk-VLEVVDWG.js');
|
|
56
48
|
|
|
57
49
|
|
|
@@ -59,10 +51,10 @@ var _chunkA6QCMBGLjs = require('./chunk-A6QCMBGL.js');
|
|
|
59
51
|
|
|
60
52
|
|
|
61
53
|
|
|
62
|
-
var
|
|
54
|
+
var _chunk2W77YCKHjs = require('./chunk-2W77YCKH.js');
|
|
63
55
|
|
|
64
56
|
|
|
65
|
-
var
|
|
57
|
+
var _chunkSMSQVRHEjs = require('./chunk-SMSQVRHE.js');
|
|
66
58
|
|
|
67
59
|
|
|
68
60
|
|
|
@@ -75,7 +67,7 @@ var _chunkXMKUJ44Zjs = require('./chunk-XMKUJ44Z.js');
|
|
|
75
67
|
|
|
76
68
|
|
|
77
69
|
|
|
78
|
-
var
|
|
70
|
+
var _chunk7P2QVMBPjs = require('./chunk-7P2QVMBP.js');
|
|
79
71
|
require('./chunk-E4CABWXL.js');
|
|
80
72
|
|
|
81
73
|
|
|
@@ -98,21 +90,25 @@ require('./chunk-WSGXBROE.js');
|
|
|
98
90
|
|
|
99
91
|
|
|
100
92
|
|
|
101
|
-
var
|
|
93
|
+
var _chunk5Z6EULD5js = require('./chunk-5Z6EULD5.js');
|
|
94
|
+
|
|
102
95
|
|
|
103
96
|
|
|
104
97
|
|
|
105
98
|
|
|
99
|
+
var _chunkUXQQPMYOjs = require('./chunk-UXQQPMYO.js');
|
|
100
|
+
require('./chunk-WZSFIJMG.js');
|
|
106
101
|
|
|
107
|
-
var _chunkAJL2Q6IQjs = require('./chunk-AJL2Q6IQ.js');
|
|
108
|
-
require('./chunk-QNELA7SX.js');
|
|
109
102
|
|
|
110
103
|
|
|
104
|
+
var _chunkMJTK6Q3Gjs = require('./chunk-MJTK6Q3G.js');
|
|
111
105
|
|
|
112
|
-
var _chunkQOJBRCASjs = require('./chunk-QOJBRCAS.js');
|
|
113
106
|
|
|
107
|
+
var _chunkR7J7CJPZjs = require('./chunk-R7J7CJPZ.js');
|
|
114
108
|
|
|
115
109
|
|
|
110
|
+
var _chunkYGCKMI5Pjs = require('./chunk-YGCKMI5P.js');
|
|
111
|
+
|
|
116
112
|
|
|
117
113
|
|
|
118
114
|
|
|
@@ -123,17 +119,19 @@ var _chunkQOJBRCASjs = require('./chunk-QOJBRCAS.js');
|
|
|
123
119
|
|
|
124
120
|
|
|
125
121
|
|
|
126
|
-
var _chunkYDXEXVBVjs = require('./chunk-YDXEXVBV.js');
|
|
127
|
-
require('./chunk-JLYDLK6X.js');
|
|
128
122
|
|
|
129
123
|
|
|
130
|
-
var
|
|
124
|
+
var _chunkQKKU2FH4js = require('./chunk-QKKU2FH4.js');
|
|
125
|
+
require('./chunk-WBIDPDKJ.js');
|
|
126
|
+
|
|
127
|
+
|
|
128
|
+
var _chunkUJMBG5JUjs = require('./chunk-UJMBG5JU.js');
|
|
131
129
|
require('./chunk-ALJJRZNJ.js');
|
|
132
130
|
require('./chunk-XNYIZMNQ.js');
|
|
133
131
|
|
|
134
132
|
|
|
135
133
|
var _chunkDIAWYWT5js = require('./chunk-DIAWYWT5.js');
|
|
136
|
-
require('./chunk-
|
|
134
|
+
require('./chunk-6JNBMTCZ.js');
|
|
137
135
|
require('./chunk-OG64RBAC.js');
|
|
138
136
|
|
|
139
137
|
|
|
@@ -2115,7 +2113,7 @@ function resolveField(key, command) {
|
|
|
2115
2113
|
function printSettings(result, json, name) {
|
|
2116
2114
|
result = { ...result, settings: parsePlaySettings(result.settings) };
|
|
2117
2115
|
const selected = fields.filter(([key]) => !name || key === name);
|
|
2118
|
-
|
|
2116
|
+
_chunkQKKU2FH4js.printCommandEnvelope.call(void 0,
|
|
2119
2117
|
{
|
|
2120
2118
|
...result,
|
|
2121
2119
|
settings: Object.fromEntries(
|
|
@@ -2159,7 +2157,7 @@ function registerPlaySettingsCommands(plays) {
|
|
|
2159
2157
|
valueSyntax: field.cli.valueSyntax,
|
|
2160
2158
|
examples: field.cli.examples
|
|
2161
2159
|
}));
|
|
2162
|
-
|
|
2160
|
+
_chunkQKKU2FH4js.printCommandEnvelope.call(void 0,
|
|
2163
2161
|
{
|
|
2164
2162
|
fields: descriptions,
|
|
2165
2163
|
render: {
|
|
@@ -2184,7 +2182,7 @@ function registerPlaySettingsCommands(plays) {
|
|
|
2184
2182
|
async (options, command) => {
|
|
2185
2183
|
if (options.name !== void 0) resolveField(options.name, command);
|
|
2186
2184
|
printSettings(
|
|
2187
|
-
await new (0,
|
|
2185
|
+
await new (0, _chunkSMSQVRHEjs.DeeplineClient)().getPlaySettings(options.play),
|
|
2188
2186
|
options.json,
|
|
2189
2187
|
options.name
|
|
2190
2188
|
);
|
|
@@ -2215,7 +2213,7 @@ function registerPlaySettingsCommands(plays) {
|
|
|
2215
2213
|
);
|
|
2216
2214
|
}
|
|
2217
2215
|
if (options.dryRun) {
|
|
2218
|
-
|
|
2216
|
+
_chunkQKKU2FH4js.printCommandEnvelope.call(void 0,
|
|
2219
2217
|
{
|
|
2220
2218
|
dryRun: true,
|
|
2221
2219
|
play,
|
|
@@ -2236,7 +2234,7 @@ function registerPlaySettingsCommands(plays) {
|
|
|
2236
2234
|
return;
|
|
2237
2235
|
}
|
|
2238
2236
|
printSettings(
|
|
2239
|
-
await new (0,
|
|
2237
|
+
await new (0, _chunkSMSQVRHEjs.DeeplineClient)().updatePlaySettings(play, patch),
|
|
2240
2238
|
options.json
|
|
2241
2239
|
);
|
|
2242
2240
|
};
|
|
@@ -2262,13 +2260,13 @@ function registerPlaySettingsCommands(plays) {
|
|
|
2262
2260
|
"--root must be person or team; --limit must be 1\u2013100.",
|
|
2263
2261
|
{ exitCode: 2 }
|
|
2264
2262
|
);
|
|
2265
|
-
const page = await new (0,
|
|
2263
|
+
const page = await new (0, _chunkSMSQVRHEjs.DeeplineClient)().listPlaySettingsPaths({
|
|
2266
2264
|
root: options.root,
|
|
2267
2265
|
limit,
|
|
2268
2266
|
cursor: options.cursor
|
|
2269
2267
|
});
|
|
2270
2268
|
const nextCommand = page.hasMore ? `deepline plays settings paths --cursor '${page.cursor}'${options.root ? ` --root ${options.root}` : ""}` : null;
|
|
2271
|
-
|
|
2269
|
+
_chunkQKKU2FH4js.printCommandEnvelope.call(void 0,
|
|
2272
2270
|
{
|
|
2273
2271
|
...page,
|
|
2274
2272
|
nextCommand,
|
|
@@ -2319,7 +2317,7 @@ function registerPlaySettingsCommands(plays) {
|
|
|
2319
2317
|
root: _nullishCoalesce(_optionalChain([toPath, 'optionalAccess', _12 => _12.root]), () => ( "person")),
|
|
2320
2318
|
folders: _nullishCoalesce(_optionalChain([toPath, 'optionalAccess', _13 => _13.folders]), () => ( []))
|
|
2321
2319
|
};
|
|
2322
|
-
const client = new (0,
|
|
2320
|
+
const client = new (0, _chunkSMSQVRHEjs.DeeplineClient)();
|
|
2323
2321
|
const paths = [];
|
|
2324
2322
|
let cursor;
|
|
2325
2323
|
do {
|
|
@@ -2381,7 +2379,7 @@ function registerPlaySettingsCommands(plays) {
|
|
|
2381
2379
|
moved.push(move.playName);
|
|
2382
2380
|
}
|
|
2383
2381
|
}
|
|
2384
|
-
|
|
2382
|
+
_chunkQKKU2FH4js.printCommandEnvelope.call(void 0,
|
|
2385
2383
|
{
|
|
2386
2384
|
dryRun: Boolean(options.dryRun),
|
|
2387
2385
|
from: options.from,
|
|
@@ -2509,7 +2507,7 @@ function triggerLines(view) {
|
|
|
2509
2507
|
return lines;
|
|
2510
2508
|
}
|
|
2511
2509
|
function printView(view, json) {
|
|
2512
|
-
|
|
2510
|
+
_chunkQKKU2FH4js.printCommandEnvelope.call(void 0,
|
|
2513
2511
|
{
|
|
2514
2512
|
...view,
|
|
2515
2513
|
render: {
|
|
@@ -2522,7 +2520,7 @@ function printView(view, json) {
|
|
|
2522
2520
|
);
|
|
2523
2521
|
}
|
|
2524
2522
|
function printResult(result, json) {
|
|
2525
|
-
|
|
2523
|
+
_chunkQKKU2FH4js.printCommandEnvelope.call(void 0,
|
|
2526
2524
|
{
|
|
2527
2525
|
...result,
|
|
2528
2526
|
render: {
|
|
@@ -2552,7 +2550,7 @@ async function mutate(command, options, build) {
|
|
|
2552
2550
|
usage(command, `Invalid trigger: ${formatPlayTriggerConfigError(error)}`);
|
|
2553
2551
|
}
|
|
2554
2552
|
if (options.dryRun) {
|
|
2555
|
-
|
|
2553
|
+
_chunkQKKU2FH4js.printCommandEnvelope.call(void 0,
|
|
2556
2554
|
{
|
|
2557
2555
|
dryRun: true,
|
|
2558
2556
|
play: options.play,
|
|
@@ -2571,7 +2569,7 @@ async function mutate(command, options, build) {
|
|
|
2571
2569
|
return;
|
|
2572
2570
|
}
|
|
2573
2571
|
printResult(
|
|
2574
|
-
await new (0,
|
|
2572
|
+
await new (0, _chunkSMSQVRHEjs.DeeplineClient)().updatePlayTriggerConfig(options.play, update),
|
|
2575
2573
|
options.json
|
|
2576
2574
|
);
|
|
2577
2575
|
}
|
|
@@ -2604,7 +2602,7 @@ function registerPlayTriggerConfigCommands(plays) {
|
|
|
2604
2602
|
}).addHelpText("after", help2);
|
|
2605
2603
|
trigger.command("get").description("Show the cron and webhook triggers of a Play.").requiredOption("--play <play>", "Play to read").option("--json", "Emit JSON").addHelpText("after", help2).action(async (options) => {
|
|
2606
2604
|
printView(
|
|
2607
|
-
await new (0,
|
|
2605
|
+
await new (0, _chunkSMSQVRHEjs.DeeplineClient)().getPlayTriggerConfig(options.play),
|
|
2608
2606
|
options.json
|
|
2609
2607
|
);
|
|
2610
2608
|
});
|
|
@@ -2648,7 +2646,7 @@ function registerPlayTriggerConfigCommands(plays) {
|
|
|
2648
2646
|
if (options.auth === void 0) {
|
|
2649
2647
|
if (secrets.length || options.header || options.signaturePrefix)
|
|
2650
2648
|
usage(setWebhook, "--secret/--header need --auth.");
|
|
2651
|
-
const current = await new (0,
|
|
2649
|
+
const current = await new (0, _chunkSMSQVRHEjs.DeeplineClient)().getPlayTriggerConfig(
|
|
2652
2650
|
options.play
|
|
2653
2651
|
);
|
|
2654
2652
|
return {
|
|
@@ -2725,7 +2723,7 @@ var KIND_DESCRIPTIONS = {
|
|
|
2725
2723
|
"receipt.skipped": "Saved work result: skipped.",
|
|
2726
2724
|
"runtime.event": "Other event."
|
|
2727
2725
|
};
|
|
2728
|
-
var RUN_LOGS_KIND_HELP =
|
|
2726
|
+
var RUN_LOGS_KIND_HELP = _chunk7P2QVMBPjs.RUN_EVENT_SEARCH_KIND_VALUES.map((kind) => ({
|
|
2729
2727
|
kind,
|
|
2730
2728
|
description: KIND_DESCRIPTIONS[kind]
|
|
2731
2729
|
}));
|
|
@@ -2862,9 +2860,9 @@ function configureRunQueryCommandErrors(command, resource) {
|
|
|
2862
2860
|
const args = program.args;
|
|
2863
2861
|
if (error.exitCode !== 0 && (resource === "events" || requestsStructuredLogs(args))) {
|
|
2864
2862
|
error.exitCode = 2;
|
|
2865
|
-
if (
|
|
2866
|
-
|
|
2867
|
-
Object.assign(new (0,
|
|
2863
|
+
if (_chunkQKKU2FH4js.argsWantJson.call(void 0, args) || command.optsWithGlobals().json === true) {
|
|
2864
|
+
_chunkQKKU2FH4js.printJsonError.call(void 0,
|
|
2865
|
+
Object.assign(new (0, _chunk7P2QVMBPjs.RunEventQueryInputError)(error.message), {
|
|
2868
2866
|
exitCode: 2,
|
|
2869
2867
|
retryable: false
|
|
2870
2868
|
})
|
|
@@ -2908,14 +2906,14 @@ function parseQuery(args, resource) {
|
|
|
2908
2906
|
if (VALUE_FLAGS.has(flag)) {
|
|
2909
2907
|
const value = equals > 0 ? arg.slice(equals + 1) : args[++index];
|
|
2910
2908
|
if (!value || equals < 0 && value.startsWith("--") && flag !== "--query" && flag !== "--where") {
|
|
2911
|
-
throw new (0,
|
|
2909
|
+
throw new (0, _chunk7P2QVMBPjs.RunEventQueryInputError)(
|
|
2912
2910
|
`${flag} requires a value. Use ${flag} <value>.`
|
|
2913
2911
|
);
|
|
2914
2912
|
}
|
|
2915
2913
|
if (flag === "--sum") sums.push(value);
|
|
2916
2914
|
else {
|
|
2917
2915
|
if (values[flag] !== void 0) {
|
|
2918
|
-
throw new (0,
|
|
2916
|
+
throw new (0, _chunk7P2QVMBPjs.RunEventQueryInputError)(
|
|
2919
2917
|
`${flag} may only be supplied once.`
|
|
2920
2918
|
);
|
|
2921
2919
|
}
|
|
@@ -2929,12 +2927,12 @@ function parseQuery(args, resource) {
|
|
|
2929
2927
|
}
|
|
2930
2928
|
if (arg.startsWith("-")) {
|
|
2931
2929
|
const correction = flag === "--log-level" ? "Use --level for structured severity filtering." : flag === "--out" || flag === "--failed" || flag === "--all" ? "Use this flag with a plain runs logs <run-id> text read." : "Use --step, --level, --query, --where, --count, --group-by or --fields; see runs logs --help.";
|
|
2932
|
-
throw new (0,
|
|
2930
|
+
throw new (0, _chunk7P2QVMBPjs.RunEventQueryInputError)(
|
|
2933
2931
|
`Unsupported query flag ${flag}. ${correction}`
|
|
2934
2932
|
);
|
|
2935
2933
|
}
|
|
2936
2934
|
if (runId !== void 0) {
|
|
2937
|
-
throw new (0,
|
|
2935
|
+
throw new (0, _chunk7P2QVMBPjs.RunEventQueryInputError)(
|
|
2938
2936
|
`Unexpected argument ${JSON.stringify(arg)}. Supply one run ID.`
|
|
2939
2937
|
);
|
|
2940
2938
|
}
|
|
@@ -2942,7 +2940,7 @@ function parseQuery(args, resource) {
|
|
|
2942
2940
|
}
|
|
2943
2941
|
if (switches.has("--fields")) {
|
|
2944
2942
|
if (runId !== void 0) {
|
|
2945
|
-
throw new (0,
|
|
2943
|
+
throw new (0, _chunk7P2QVMBPjs.RunEventQueryInputError)(
|
|
2946
2944
|
"--fields does not use a run ID. Omit the positional run ID."
|
|
2947
2945
|
);
|
|
2948
2946
|
}
|
|
@@ -2955,18 +2953,18 @@ function parseQuery(args, resource) {
|
|
|
2955
2953
|
)
|
|
2956
2954
|
];
|
|
2957
2955
|
if (incompatible.length) {
|
|
2958
|
-
throw new (0,
|
|
2956
|
+
throw new (0, _chunk7P2QVMBPjs.RunEventQueryInputError)(
|
|
2959
2957
|
`--fields cannot be combined with ${incompatible.join(", ")}. Use --fields alone to discover the query contract.`
|
|
2960
2958
|
);
|
|
2961
2959
|
}
|
|
2962
2960
|
}
|
|
2963
2961
|
if (switches.has("--count") && values["--group-by"] !== void 0) {
|
|
2964
|
-
throw new (0,
|
|
2962
|
+
throw new (0, _chunk7P2QVMBPjs.RunEventQueryInputError)(
|
|
2965
2963
|
"--count cannot be combined with --group-by. Use --group-by for counts per group."
|
|
2966
2964
|
);
|
|
2967
2965
|
}
|
|
2968
2966
|
if (sums.length && switches.has("--count")) {
|
|
2969
|
-
throw new (0,
|
|
2967
|
+
throw new (0, _chunk7P2QVMBPjs.RunEventQueryInputError)(
|
|
2970
2968
|
"--sum cannot be combined with --count. Use --sum for the exact count and numeric total."
|
|
2971
2969
|
);
|
|
2972
2970
|
}
|
|
@@ -2974,7 +2972,7 @@ function parseQuery(args, resource) {
|
|
|
2974
2972
|
if (operation === "count") {
|
|
2975
2973
|
for (const flag of ["--limit", "--cursor", "--payloads"]) {
|
|
2976
2974
|
if (values[flag] !== void 0 || switches.has(flag)) {
|
|
2977
|
-
throw new (0,
|
|
2975
|
+
throw new (0, _chunk7P2QVMBPjs.RunEventQueryInputError)(
|
|
2978
2976
|
`--count cannot be combined with ${flag}. Remove ${flag} to count all matching retained records.`
|
|
2979
2977
|
);
|
|
2980
2978
|
}
|
|
@@ -3009,16 +3007,16 @@ function parseQuery(args, resource) {
|
|
|
3009
3007
|
];
|
|
3010
3008
|
}
|
|
3011
3009
|
}
|
|
3012
|
-
const request =
|
|
3010
|
+
const request = _chunk7P2QVMBPjs.normalizeRunEventOperationRequest.call(void 0, body);
|
|
3013
3011
|
const namespace = _nullishCoalesce(values["--runtime-namespace"], () => ( (process.env.DEEPLINE_RUNTIME_ENVIRONMENT === "preview" ? process.env.DEEPLINE_RUNTIME_NAMESPACE : void 0)));
|
|
3014
3012
|
const backend = values["--runtime-backend"];
|
|
3015
3013
|
if (backend && backend !== "daytona" && backend !== "modal") {
|
|
3016
|
-
throw new (0,
|
|
3014
|
+
throw new (0, _chunk7P2QVMBPjs.RunEventQueryInputError)(
|
|
3017
3015
|
"--runtime-backend must be daytona or modal."
|
|
3018
3016
|
);
|
|
3019
3017
|
}
|
|
3020
3018
|
if (backend && !namespace) {
|
|
3021
|
-
throw new (0,
|
|
3019
|
+
throw new (0, _chunk7P2QVMBPjs.RunEventQueryInputError)(
|
|
3022
3020
|
"--runtime-backend requires --runtime-namespace."
|
|
3023
3021
|
);
|
|
3024
3022
|
}
|
|
@@ -3065,12 +3063,12 @@ async function handleRunEventQuery(args, resource = "logs") {
|
|
|
3065
3063
|
const failure = error instanceof Error ? error : new Error(String(error));
|
|
3066
3064
|
const record3 = failure;
|
|
3067
3065
|
const status = record3.statusCode;
|
|
3068
|
-
const exitCode = error instanceof
|
|
3066
|
+
const exitCode = error instanceof _chunk7P2QVMBPjs.RunEventQueryInputError || status === 400 || status === 422 || record3.code === "INVALID_RUNTIME_SELECTION" ? 2 : status === 401 || status === 403 || record3.code === "CONFIG_ERROR" || record3.code === "RUNTIME_ENVIRONMENT_TOKEN_REQUIRED" ? 3 : status === 404 ? 4 : 5;
|
|
3069
3067
|
const diagnostic = Object.assign(failure, {
|
|
3070
3068
|
exitCode,
|
|
3071
3069
|
retryable: exitCode === 5
|
|
3072
3070
|
});
|
|
3073
|
-
if (
|
|
3071
|
+
if (_chunkQKKU2FH4js.argsWantJson.call(void 0, args)) _chunkQKKU2FH4js.printJsonError.call(void 0, diagnostic);
|
|
3074
3072
|
else console.error(`Error: ${diagnostic.message}`);
|
|
3075
3073
|
return exitCode;
|
|
3076
3074
|
}
|
|
@@ -3085,7 +3083,7 @@ async function executeRunEventQuery(args, resource) {
|
|
|
3085
3083
|
...criteria
|
|
3086
3084
|
} = request;
|
|
3087
3085
|
const options = { ...criteria, ...runtime ? { runtime } : {} };
|
|
3088
|
-
const client = new (0,
|
|
3086
|
+
const client = new (0, _chunkSMSQVRHEjs.DeeplineClient)();
|
|
3089
3087
|
let result;
|
|
3090
3088
|
if (request.operation === "fields") {
|
|
3091
3089
|
result = await client.runs[resource].fields(runtime ? { runtime } : {});
|
|
@@ -3151,13 +3149,13 @@ async function executeRunEventQuery(args, resource) {
|
|
|
3151
3149
|
lines.push(`Next page: ${nextPage}`);
|
|
3152
3150
|
}
|
|
3153
3151
|
}
|
|
3154
|
-
|
|
3152
|
+
_chunkQKKU2FH4js.printCommandEnvelope.call(void 0,
|
|
3155
3153
|
{
|
|
3156
3154
|
...result,
|
|
3157
3155
|
...nextPage ? { next: { page: nextPage } } : {},
|
|
3158
3156
|
render: { sections: [{ title: `run ${resource}`, lines }] }
|
|
3159
3157
|
},
|
|
3160
|
-
{ json:
|
|
3158
|
+
{ json: _chunkQKKU2FH4js.argsWantJson.call(void 0, args), text: `${lines.join("\n")}
|
|
3161
3159
|
` }
|
|
3162
3160
|
);
|
|
3163
3161
|
return 0;
|
|
@@ -4076,7 +4074,7 @@ Existing credential redactions and referenced-list previews remain as stored.
|
|
|
4076
4074
|
...text.split(/\r?\n/).map((key) => key.trim()).filter(Boolean)
|
|
4077
4075
|
);
|
|
4078
4076
|
}
|
|
4079
|
-
const response = await new (0,
|
|
4077
|
+
const response = await new (0, _chunkSMSQVRHEjs.DeeplineClient)().runs.getReceipts(runId, {
|
|
4080
4078
|
keys
|
|
4081
4079
|
});
|
|
4082
4080
|
const failed = response.receipts.filter(
|
|
@@ -4088,7 +4086,7 @@ Existing credential redactions and referenced-list previews remain as stored.
|
|
|
4088
4086
|
JSON.stringify(response, null, 2) + "\n",
|
|
4089
4087
|
{ flag: "wx", mode: 384 }
|
|
4090
4088
|
);
|
|
4091
|
-
|
|
4089
|
+
_chunkQKKU2FH4js.printCommandEnvelope.call(void 0,
|
|
4092
4090
|
{
|
|
4093
4091
|
runId,
|
|
4094
4092
|
out: options.out,
|
|
@@ -4098,7 +4096,7 @@ Existing credential redactions and referenced-list previews remain as stored.
|
|
|
4098
4096
|
{ json: true }
|
|
4099
4097
|
);
|
|
4100
4098
|
} else {
|
|
4101
|
-
|
|
4099
|
+
_chunkQKKU2FH4js.printCommandEnvelope.call(void 0, { ...response }, { json: true });
|
|
4102
4100
|
}
|
|
4103
4101
|
if (failed)
|
|
4104
4102
|
process.exitCode = response.receipts.some(
|
|
@@ -4137,7 +4135,7 @@ includes nextCommand when another page is available.
|
|
|
4137
4135
|
{ exitCode: 2 }
|
|
4138
4136
|
);
|
|
4139
4137
|
}
|
|
4140
|
-
const page = await new (0,
|
|
4138
|
+
const page = await new (0, _chunkSMSQVRHEjs.DeeplineClient)().runs.children(parentRunId, {
|
|
4141
4139
|
launchKey: options.launchKey,
|
|
4142
4140
|
...options.cursor !== void 0 ? { cursor: options.cursor } : {},
|
|
4143
4141
|
limit
|
|
@@ -4152,7 +4150,7 @@ includes nextCommand when another page is available.
|
|
|
4152
4150
|
"--limit",
|
|
4153
4151
|
String(limit)
|
|
4154
4152
|
].join(" ") : null;
|
|
4155
|
-
|
|
4153
|
+
_chunkQKKU2FH4js.printCommandEnvelope.call(void 0,
|
|
4156
4154
|
{
|
|
4157
4155
|
parentRunId,
|
|
4158
4156
|
launchKey: options.launchKey,
|
|
@@ -4188,7 +4186,7 @@ async function handleRunsHistory(options) {
|
|
|
4188
4186
|
throw new Error("--limit must be a positive integer.");
|
|
4189
4187
|
}
|
|
4190
4188
|
}
|
|
4191
|
-
const page = await new (0,
|
|
4189
|
+
const page = await new (0, _chunkSMSQVRHEjs.DeeplineClient)().runs.history({
|
|
4192
4190
|
cursor: options.cursor,
|
|
4193
4191
|
orgId: options.org,
|
|
4194
4192
|
search: options.search,
|
|
@@ -4204,7 +4202,7 @@ async function handleRunsHistory(options) {
|
|
|
4204
4202
|
);
|
|
4205
4203
|
}
|
|
4206
4204
|
if (page.hasMore) lines.push(`Next cursor: ${page.nextCursor}`);
|
|
4207
|
-
|
|
4205
|
+
_chunkQKKU2FH4js.printCommandEnvelope.call(void 0,
|
|
4208
4206
|
{ ...page, render: { sections: [{ title: "Run history", lines }] } },
|
|
4209
4207
|
options.json ? { json: true } : {}
|
|
4210
4208
|
);
|
|
@@ -4256,12 +4254,13 @@ async function runRunsRerunCommand(runId, options) {
|
|
|
4256
4254
|
return 1;
|
|
4257
4255
|
}
|
|
4258
4256
|
}
|
|
4259
|
-
|
|
4257
|
+
if (options.notice) console.error(options.notice);
|
|
4258
|
+
const result = await new (0, _chunkSMSQVRHEjs.DeeplineClient)().runs.rerun(runId, {
|
|
4260
4259
|
...idempotencyKey === void 0 ? {} : { idempotencyKey },
|
|
4261
4260
|
...inputOverrides === void 0 ? {} : { inputOverrides }
|
|
4262
4261
|
});
|
|
4263
|
-
if (
|
|
4264
|
-
|
|
4262
|
+
if (_chunkQKKU2FH4js.shouldEmitJson.call(void 0, options.json)) {
|
|
4263
|
+
_chunkQKKU2FH4js.printCommandEnvelope.call(void 0, result, { json: true });
|
|
4265
4264
|
} else if (result.rateLimited) {
|
|
4266
4265
|
console.log(`
|
|
4267
4266
|
${result.rateLimited.message}`);
|
|
@@ -4282,6 +4281,26 @@ Rerun started from ${runId}${inputOverrides ? " with input overrides" : ""}.`
|
|
|
4282
4281
|
return 0;
|
|
4283
4282
|
}
|
|
4284
4283
|
|
|
4284
|
+
// src/cli/operations/runs-resume.ts
|
|
4285
|
+
async function runRunsResumeCommand(runId) {
|
|
4286
|
+
try {
|
|
4287
|
+
const result = await new (0, _chunkSMSQVRHEjs.DeeplineClient)().runs.resume(runId);
|
|
4288
|
+
if (result.runId !== runId || result.resumed !== true || !Number.isSafeInteger(result.epoch) || result.epoch < 1)
|
|
4289
|
+
throw new Error(
|
|
4290
|
+
"Invalid resume receipt: expected the requested run and a new positive epoch."
|
|
4291
|
+
);
|
|
4292
|
+
console.log(
|
|
4293
|
+
`Resumed run ${result.runId} at epoch ${result.epoch}. Completed calls will be reused; only unfinished work runs.`
|
|
4294
|
+
);
|
|
4295
|
+
console.log(` inspect: deepline runs get ${result.runId}`);
|
|
4296
|
+
return 0;
|
|
4297
|
+
} catch (error) {
|
|
4298
|
+
if (error instanceof _chunkDIAWYWT5js.DeeplineError && error.code && !error.message.includes(error.code))
|
|
4299
|
+
error.message = `${error.code}: ${error.message}`;
|
|
4300
|
+
throw error;
|
|
4301
|
+
}
|
|
4302
|
+
}
|
|
4303
|
+
|
|
4285
4304
|
// ../plays/cascade-falloff.ts
|
|
4286
4305
|
function cascadeFalloff(input) {
|
|
4287
4306
|
const order = new Map(input.legs.map((leg, index) => [leg, index]));
|
|
@@ -5055,13 +5074,13 @@ var RunDataset = class _RunDataset {
|
|
|
5055
5074
|
const absolutePath = _path.resolve.call(void 0, outPath);
|
|
5056
5075
|
_fs.writeFileSync.call(void 0,
|
|
5057
5076
|
absolutePath,
|
|
5058
|
-
`${JSON.stringify(
|
|
5077
|
+
`${JSON.stringify(_chunkKCKAFTPYjs.orderRunExportJson.call(void 0, this.rows), null, 2)}
|
|
5059
5078
|
`,
|
|
5060
5079
|
"utf-8"
|
|
5061
5080
|
);
|
|
5062
5081
|
return absolutePath;
|
|
5063
5082
|
}
|
|
5064
|
-
return
|
|
5083
|
+
return _chunkKCKAFTPYjs.writeRunDatasetCsv.call(void 0, {
|
|
5065
5084
|
rows: this.rows,
|
|
5066
5085
|
columns: this.#info.columns,
|
|
5067
5086
|
outPath
|
|
@@ -5260,198 +5279,6 @@ ${hint}`;
|
|
|
5260
5279
|
});
|
|
5261
5280
|
}
|
|
5262
5281
|
|
|
5263
|
-
// ../play-runtime/worker-api-types.ts
|
|
5264
|
-
var DAYTONA_COMPUTE_PRICING_USD = {
|
|
5265
|
-
vcpuSecond: 14e-6,
|
|
5266
|
-
memoryGiBSecond: 45e-7,
|
|
5267
|
-
storageGiBSecond: 3e-8,
|
|
5268
|
-
includedStorageGiB: 5
|
|
5269
|
-
};
|
|
5270
|
-
var MODAL_SANDBOX_COMPUTE_PRICING_USD = {
|
|
5271
|
-
physicalCoreSecond: 3942e-8,
|
|
5272
|
-
memoryGiBSecond: 667e-8
|
|
5273
|
-
};
|
|
5274
|
-
var MODAL_SANDBOX_CPU_CORES = 0.5;
|
|
5275
|
-
function modalSandboxResourcesForPlay(input) {
|
|
5276
|
-
return {
|
|
5277
|
-
physicalCpuCores: MODAL_SANDBOX_CPU_CORES * input.cpu,
|
|
5278
|
-
memoryMiB: input.memoryGiB * 1024
|
|
5279
|
-
};
|
|
5280
|
-
}
|
|
5281
|
-
function roundUsd(amount) {
|
|
5282
|
-
return Number(Math.max(0, amount).toFixed(12));
|
|
5283
|
-
}
|
|
5284
|
-
function sandboxSizeMetadata(cpu, memoryGiB) {
|
|
5285
|
-
const entry = Object.entries(_chunkYGCKMI5Pjs.PLAY_SANDBOX_SIZE_LIMITS).find(
|
|
5286
|
-
([, limits]) => limits.cpu === cpu && limits.memoryGiB === memoryGiB
|
|
5287
|
-
);
|
|
5288
|
-
return entry ? { sandboxSize: entry[0] } : {};
|
|
5289
|
-
}
|
|
5290
|
-
function runtimeLimitMetadata(maxBillingDurationSeconds, observedWallTimeSeconds) {
|
|
5291
|
-
if (typeof maxBillingDurationSeconds !== "number" || !Number.isFinite(maxBillingDurationSeconds) || maxBillingDurationSeconds <= 0) {
|
|
5292
|
-
return {};
|
|
5293
|
-
}
|
|
5294
|
-
return {
|
|
5295
|
-
maxBillingDurationSeconds,
|
|
5296
|
-
...typeof observedWallTimeSeconds === "number" && Number.isFinite(observedWallTimeSeconds) ? { observedWallTimeSeconds: Math.max(0, observedWallTimeSeconds) } : {}
|
|
5297
|
-
};
|
|
5298
|
-
}
|
|
5299
|
-
function resolveDaytonaSandboxComputeItem(input) {
|
|
5300
|
-
const billableSeconds = Math.max(1, Math.ceil(input.wallTimeSeconds));
|
|
5301
|
-
const cpu = Math.max(0, input.cpu);
|
|
5302
|
-
const memoryGiB = Math.max(0, input.memoryGiB);
|
|
5303
|
-
const billableDiskGiB = Math.max(
|
|
5304
|
-
0,
|
|
5305
|
-
input.diskGiB - DAYTONA_COMPUTE_PRICING_USD.includedStorageGiB
|
|
5306
|
-
);
|
|
5307
|
-
const providerCostUsd = roundUsd(
|
|
5308
|
-
billableSeconds * (cpu * DAYTONA_COMPUTE_PRICING_USD.vcpuSecond + memoryGiB * DAYTONA_COMPUTE_PRICING_USD.memoryGiBSecond + billableDiskGiB * DAYTONA_COMPUTE_PRICING_USD.storageGiBSecond)
|
|
5309
|
-
);
|
|
5310
|
-
return {
|
|
5311
|
-
itemId: input.itemId,
|
|
5312
|
-
source: _nullishCoalesce(input.source, () => ( "daytona")),
|
|
5313
|
-
unit: "sandbox_second",
|
|
5314
|
-
units: billableSeconds,
|
|
5315
|
-
providerCostUsd,
|
|
5316
|
-
metadata: {
|
|
5317
|
-
...sandboxSizeMetadata(cpu, memoryGiB),
|
|
5318
|
-
sandboxId: _nullishCoalesce(input.sandboxId, () => ( null)),
|
|
5319
|
-
cpu,
|
|
5320
|
-
memoryGiB,
|
|
5321
|
-
diskGiB: Math.max(0, input.diskGiB),
|
|
5322
|
-
billableDiskGiB,
|
|
5323
|
-
startedAt: input.startedAt,
|
|
5324
|
-
endedAt: input.endedAt,
|
|
5325
|
-
...runtimeLimitMetadata(
|
|
5326
|
-
input.maxBillingDurationSeconds,
|
|
5327
|
-
input.observedWallTimeSeconds
|
|
5328
|
-
)
|
|
5329
|
-
}
|
|
5330
|
-
};
|
|
5331
|
-
}
|
|
5332
|
-
function resolveModalSandboxComputeItem(input) {
|
|
5333
|
-
const billableSeconds = Math.max(1, Math.ceil(input.wallTimeSeconds));
|
|
5334
|
-
const physicalCpuCores = Math.max(0, input.physicalCpuCores);
|
|
5335
|
-
const memoryGiB = Math.max(0, input.memoryGiB);
|
|
5336
|
-
const providerCostUsd = roundUsd(
|
|
5337
|
-
billableSeconds * (physicalCpuCores * MODAL_SANDBOX_COMPUTE_PRICING_USD.physicalCoreSecond + memoryGiB * MODAL_SANDBOX_COMPUTE_PRICING_USD.memoryGiBSecond)
|
|
5338
|
-
);
|
|
5339
|
-
return {
|
|
5340
|
-
itemId: input.itemId,
|
|
5341
|
-
source: "modal",
|
|
5342
|
-
unit: "sandbox_second",
|
|
5343
|
-
units: billableSeconds,
|
|
5344
|
-
providerCostUsd,
|
|
5345
|
-
metadata: {
|
|
5346
|
-
...sandboxSizeMetadata(
|
|
5347
|
-
physicalCpuCores / MODAL_SANDBOX_CPU_CORES,
|
|
5348
|
-
memoryGiB
|
|
5349
|
-
),
|
|
5350
|
-
sandboxId: _nullishCoalesce(input.sandboxId, () => ( null)),
|
|
5351
|
-
physicalCpuCores,
|
|
5352
|
-
memoryGiB,
|
|
5353
|
-
...input.memoryLimitGiB === void 0 ? {} : {
|
|
5354
|
-
memoryLimitGiB: input.memoryLimitGiB,
|
|
5355
|
-
// The Preview evaluation preserves the existing compute price.
|
|
5356
|
-
// Sampled burst cost is diagnostic until provider billing can be
|
|
5357
|
-
// reconciled; a hard ceiling is never presented as actual usage.
|
|
5358
|
-
costBasis: "reserved_resources"
|
|
5359
|
-
},
|
|
5360
|
-
startedAt: input.startedAt,
|
|
5361
|
-
endedAt: input.endedAt,
|
|
5362
|
-
...runtimeLimitMetadata(
|
|
5363
|
-
input.maxBillingDurationSeconds,
|
|
5364
|
-
input.observedWallTimeSeconds
|
|
5365
|
-
)
|
|
5366
|
-
}
|
|
5367
|
-
};
|
|
5368
|
-
}
|
|
5369
|
-
|
|
5370
|
-
// ../play-runtime/runtime-constants.ts
|
|
5371
|
-
var STANDARD_PLAY_RUNTIME_LIMIT_SECONDS = 30 * 60;
|
|
5372
|
-
var PLAY_RUNNER_TERMINAL_GRACE_SECONDS = 90;
|
|
5373
|
-
var PLAY_RUNNER_STARTUP_GRACE_SECONDS = 4 * 60;
|
|
5374
|
-
var SANDBOX_NETWORK_CUT_MAX_MS = 11 * 6e4;
|
|
5375
|
-
var RUNNER_GATEWAY_CONNECTION_RETRY_BUDGET_MS = SANDBOX_NETWORK_CUT_MAX_MS + 6e4;
|
|
5376
|
-
var PLAY_RUNNER_TIMEOUT_SECONDS = 40 * 60;
|
|
5377
|
-
var WORKFLOW_EXECUTOR_TOKEN_TTL_SECONDS = _chunkYGCKMI5Pjs.MAX_PLAY_SANDBOX_RUNTIME_LIMITS.timeoutSeconds + (PLAY_RUNNER_TIMEOUT_SECONDS - STANDARD_PLAY_RUNTIME_LIMIT_SECONDS);
|
|
5378
|
-
|
|
5379
|
-
// ../billing/compute-pricing-contract.ts
|
|
5380
|
-
var COMPUTE_BILLING_MARKUP_MULTIPLIER = 5;
|
|
5381
|
-
var DEFAULT_USD_PER_CUSTOMER_CREDIT = 0.1;
|
|
5382
|
-
var DEFAULT_PROVIDER_MARKUP_MULTIPLIER = 1.4;
|
|
5383
|
-
var MAX_SANDBOX_COMPUTE_BILLING_SECONDS = 60 * 60;
|
|
5384
|
-
var MAX_SANDBOX_COMPUTE_PROVIDER_COST_USD = Math.max(
|
|
5385
|
-
...Object.values(_chunkYGCKMI5Pjs.PLAY_SANDBOX_SIZE_LIMITS).flatMap((profile) => {
|
|
5386
|
-
const modalResources = modalSandboxResourcesForPlay(profile);
|
|
5387
|
-
return [
|
|
5388
|
-
resolveDaytonaSandboxComputeItem({
|
|
5389
|
-
itemId: "billing-cap",
|
|
5390
|
-
wallTimeSeconds: MAX_SANDBOX_COMPUTE_BILLING_SECONDS,
|
|
5391
|
-
cpu: profile.cpu,
|
|
5392
|
-
memoryGiB: profile.memoryGiB,
|
|
5393
|
-
diskGiB: profile.diskGiB
|
|
5394
|
-
}).providerCostUsd,
|
|
5395
|
-
resolveModalSandboxComputeItem({
|
|
5396
|
-
itemId: "billing-cap",
|
|
5397
|
-
wallTimeSeconds: MAX_SANDBOX_COMPUTE_BILLING_SECONDS,
|
|
5398
|
-
physicalCpuCores: modalResources.physicalCpuCores,
|
|
5399
|
-
memoryGiB: profile.memoryGiB
|
|
5400
|
-
}).providerCostUsd
|
|
5401
|
-
];
|
|
5402
|
-
})
|
|
5403
|
-
);
|
|
5404
|
-
function roundUpCredits(value) {
|
|
5405
|
-
if (!Number.isFinite(value) || value <= 0) return 0;
|
|
5406
|
-
return Math.ceil(value * 100) / 100;
|
|
5407
|
-
}
|
|
5408
|
-
function maximumPlaySandboxBillingSeconds(limits) {
|
|
5409
|
-
return Math.min(
|
|
5410
|
-
limits.timeoutSeconds + PLAY_RUNNER_TERMINAL_GRACE_SECONDS,
|
|
5411
|
-
MAX_SANDBOX_COMPUTE_BILLING_SECONDS
|
|
5412
|
-
);
|
|
5413
|
-
}
|
|
5414
|
-
function estimateDaytonaMaximumComputeCredits(limits) {
|
|
5415
|
-
const item = resolveDaytonaSandboxComputeItem({
|
|
5416
|
-
itemId: "estimate",
|
|
5417
|
-
wallTimeSeconds: maximumPlaySandboxBillingSeconds(limits),
|
|
5418
|
-
cpu: limits.cpu,
|
|
5419
|
-
memoryGiB: limits.memoryGiB,
|
|
5420
|
-
diskGiB: limits.diskGiB
|
|
5421
|
-
});
|
|
5422
|
-
return roundUpCredits(
|
|
5423
|
-
item.providerCostUsd * COMPUTE_BILLING_MARKUP_MULTIPLIER * DEFAULT_PROVIDER_MARKUP_MULTIPLIER / DEFAULT_USD_PER_CUSTOMER_CREDIT
|
|
5424
|
-
);
|
|
5425
|
-
}
|
|
5426
|
-
function estimateModalMaximumComputeCredits(limits, elasticMemory = false) {
|
|
5427
|
-
const resources = modalSandboxResourcesForPlay(limits);
|
|
5428
|
-
const item = resolveModalSandboxComputeItem({
|
|
5429
|
-
itemId: "estimate",
|
|
5430
|
-
wallTimeSeconds: maximumPlaySandboxBillingSeconds(limits),
|
|
5431
|
-
physicalCpuCores: resources.physicalCpuCores,
|
|
5432
|
-
memoryGiB: elasticMemory ? _chunkYGCKMI5Pjs.modalSandboxMemoryLimitGiBForPlay.call(void 0, limits) : limits.memoryGiB
|
|
5433
|
-
});
|
|
5434
|
-
return roundUpCredits(
|
|
5435
|
-
item.providerCostUsd * COMPUTE_BILLING_MARKUP_MULTIPLIER * DEFAULT_PROVIDER_MARKUP_MULTIPLIER / DEFAULT_USD_PER_CUSTOMER_CREDIT
|
|
5436
|
-
);
|
|
5437
|
-
}
|
|
5438
|
-
function estimateMaximumSandboxComputeCredits(limits, elasticMemory = false) {
|
|
5439
|
-
return Math.max(
|
|
5440
|
-
estimateDaytonaMaximumComputeCredits(limits),
|
|
5441
|
-
estimateModalMaximumComputeCredits(limits, elasticMemory)
|
|
5442
|
-
);
|
|
5443
|
-
}
|
|
5444
|
-
function formatNonStandardSandboxRuntimeWarning(limits) {
|
|
5445
|
-
const size = _chunkYGCKMI5Pjs.playSandboxSizeForLimits.call(void 0, limits);
|
|
5446
|
-
if (!size) return null;
|
|
5447
|
-
if (size === "standard" && limits.timeoutSeconds <= _chunkYGCKMI5Pjs.STANDARD_PLAY_SANDBOX_RUNTIME_LIMITS.timeoutSeconds) {
|
|
5448
|
-
return null;
|
|
5449
|
-
}
|
|
5450
|
-
const maximumComputeCredits = estimateMaximumSandboxComputeCredits(limits);
|
|
5451
|
-
const quotedTimeout = `${Math.ceil(limits.timeoutSeconds / 60)}m`;
|
|
5452
|
-
return `This Play requests the ${size} sandbox for up to ${limits.timeoutSeconds}s (${limits.memoryGiB}GiB memory, ${limits.cpu} CPU, ${limits.diskGiB}GiB disk). Resource-based pricing estimate: ${maximumComputeCredits.toFixed(2)} Deepline credits. Workspace plan pricing can differ. Run deepline billing quote --sandbox-timeout ${quotedTimeout} --sandbox-size ${size} for your workspace's session ceiling.`;
|
|
5453
|
-
}
|
|
5454
|
-
|
|
5455
5282
|
// ../play-runtime/internal-step-ids.ts
|
|
5456
5283
|
var INTERNAL_GLUE_NODE_ID_PREFIX = "run_javascript:";
|
|
5457
5284
|
function isInternalGlueStepId(stepId) {
|
|
@@ -6758,7 +6585,7 @@ function renderOutcome(outcome) {
|
|
|
6758
6585
|
function printResult2(input) {
|
|
6759
6586
|
const failed = input.status === "failed" || input.status === "cancelled";
|
|
6760
6587
|
if (failed) process.exitCode = 1;
|
|
6761
|
-
|
|
6588
|
+
_chunkQKKU2FH4js.printCommandEnvelope.call(void 0,
|
|
6762
6589
|
{
|
|
6763
6590
|
deployment: { ...input.deployment, status: input.status },
|
|
6764
6591
|
plays: input.outcomes,
|
|
@@ -6783,7 +6610,7 @@ async function handlePlaysDeploy(directory, options) {
|
|
|
6783
6610
|
const root = await _promises.realpath.call(void 0, _path.resolve.call(void 0, _nullishCoalesce(directory, () => ( ".")))).catch(() => {
|
|
6784
6611
|
throw new Error(`No such directory: ${_path.resolve.call(void 0, _nullishCoalesce(directory, () => ( ".")))}`);
|
|
6785
6612
|
});
|
|
6786
|
-
const { http, config } =
|
|
6613
|
+
const { http, config } = _chunkQKKU2FH4js.getAuthedHttpClient.call(void 0, );
|
|
6787
6614
|
const deliveryId = `local:${_crypto.randomUUID.call(void 0, )}`;
|
|
6788
6615
|
const startDeployment = () => http.post("/api/v2/deployments", {
|
|
6789
6616
|
deliveryId,
|
|
@@ -6810,7 +6637,7 @@ async function handlePlaysDeploy(directory, options) {
|
|
|
6810
6637
|
},
|
|
6811
6638
|
{
|
|
6812
6639
|
bundle: bundleDeployPlayFile,
|
|
6813
|
-
fetchImpl:
|
|
6640
|
+
fetchImpl: _chunkUJMBG5JUjs.fetchWithDeploymentProtection,
|
|
6814
6641
|
// The plays are already here: "opening" the source is naming it.
|
|
6815
6642
|
openSource: async () => ({
|
|
6816
6643
|
open: async () => ({ repoRoot: root })
|
|
@@ -6936,7 +6763,7 @@ async function checkLocalPlayGraph(input) {
|
|
|
6936
6763
|
// src/cli/renderers/local-play-execution.ts
|
|
6937
6764
|
function renderLocalPlayExecutionPlan(plan, options = {}) {
|
|
6938
6765
|
if (options.dryRun) {
|
|
6939
|
-
|
|
6766
|
+
_chunkQKKU2FH4js.printCommandEnvelope.call(void 0, { dryRun: true, ...plan }, { json: options.json });
|
|
6940
6767
|
return;
|
|
6941
6768
|
}
|
|
6942
6769
|
process.stderr.write(`Local Play execution plan: ${JSON.stringify(plan)}
|
|
@@ -7108,7 +6935,7 @@ function traceCliSync(phase, fields2, run) {
|
|
|
7108
6935
|
const startedAt = Date.now();
|
|
7109
6936
|
try {
|
|
7110
6937
|
const result = run();
|
|
7111
|
-
|
|
6938
|
+
_chunkUXQQPMYOjs.recordCliTrace.call(void 0, {
|
|
7112
6939
|
phase,
|
|
7113
6940
|
ms: Date.now() - startedAt,
|
|
7114
6941
|
ok: true,
|
|
@@ -7116,7 +6943,7 @@ function traceCliSync(phase, fields2, run) {
|
|
|
7116
6943
|
});
|
|
7117
6944
|
return result;
|
|
7118
6945
|
} catch (error) {
|
|
7119
|
-
|
|
6946
|
+
_chunkUXQQPMYOjs.recordCliTrace.call(void 0, {
|
|
7120
6947
|
phase,
|
|
7121
6948
|
ms: Date.now() - startedAt,
|
|
7122
6949
|
ok: false,
|
|
@@ -7922,7 +7749,7 @@ function playStatusErrorText(status) {
|
|
|
7922
7749
|
function isRetryablePendingStartFailure(status) {
|
|
7923
7750
|
if (status.status !== "failed") return false;
|
|
7924
7751
|
if (status.runId && status.runId !== "pending") return false;
|
|
7925
|
-
return
|
|
7752
|
+
return _chunk7P2QVMBPjs.isTransientPlayRunReadError.call(void 0, new Error(playStatusErrorText(status)));
|
|
7926
7753
|
}
|
|
7927
7754
|
function isAmbiguousPlayStartOutcomeError(error) {
|
|
7928
7755
|
if (error instanceof _chunkDIAWYWT5js.DeeplineError && typeof error.statusCode === "number") {
|
|
@@ -7972,13 +7799,13 @@ var PlayStartOutcomeUnknownError = (_class = class extends _chunkDIAWYWT5js.Deep
|
|
|
7972
7799
|
}, _class);
|
|
7973
7800
|
function watchSurfaceReaches(state, provenance, level) {
|
|
7974
7801
|
const minimumLevel = _nullishCoalesce(state.logLevel, () => ( (state.verbose ? "debug" : "info")));
|
|
7975
|
-
if (!
|
|
7802
|
+
if (!_chunk7P2QVMBPjs.logLevelReaches.call(void 0, level, minimumLevel)) {
|
|
7976
7803
|
return false;
|
|
7977
7804
|
}
|
|
7978
|
-
if (
|
|
7805
|
+
if (_chunk7P2QVMBPjs.logProvenanceReaches.call(void 0, provenance, "watch")) {
|
|
7979
7806
|
return true;
|
|
7980
7807
|
}
|
|
7981
|
-
return state.verbose === true &&
|
|
7808
|
+
return state.verbose === true && _chunk7P2QVMBPjs.logProvenanceReaches.call(void 0, provenance, "debug");
|
|
7982
7809
|
}
|
|
7983
7810
|
function getEventPayload(event) {
|
|
7984
7811
|
return event.payload && typeof event.payload === "object" ? event.payload : {};
|
|
@@ -8488,7 +8315,7 @@ function resolvePlayRunUrl(input) {
|
|
|
8488
8315
|
}
|
|
8489
8316
|
function openPlayDashboard(url, open2) {
|
|
8490
8317
|
if (open2 && url) {
|
|
8491
|
-
|
|
8318
|
+
_chunkQKKU2FH4js.openInBrowser.call(void 0, url);
|
|
8492
8319
|
}
|
|
8493
8320
|
}
|
|
8494
8321
|
function printPlayLogLines(input) {
|
|
@@ -8569,7 +8396,7 @@ async function waitForPlayCompletionByWatch(input) {
|
|
|
8569
8396
|
...input.fullJson === void 0 ? {} : { full: input.fullJson }
|
|
8570
8397
|
});
|
|
8571
8398
|
} catch (error) {
|
|
8572
|
-
if (
|
|
8399
|
+
if (_chunk7P2QVMBPjs.isTransientPlayRunReadError.call(void 0, error) || isAdmittedRunVisibilityDelay(error)) {
|
|
8573
8400
|
return null;
|
|
8574
8401
|
}
|
|
8575
8402
|
throw error;
|
|
@@ -8650,9 +8477,9 @@ async function waitForPlayCompletionByWatch(input) {
|
|
|
8650
8477
|
signal: controller.signal,
|
|
8651
8478
|
deferLogs: !input.emitLogs,
|
|
8652
8479
|
omitTerminalLogs: !input.emitLogs,
|
|
8653
|
-
...
|
|
8480
|
+
..._chunkUXQQPMYOjs.isCliTraceEnabled.call(void 0, ) ? {
|
|
8654
8481
|
onPoll: (observation) => {
|
|
8655
|
-
|
|
8482
|
+
_chunkUXQQPMYOjs.recordCliTrace.call(void 0, {
|
|
8656
8483
|
phase: "play_watch_poll",
|
|
8657
8484
|
workflowId: input.workflowId,
|
|
8658
8485
|
ms: observation.durationMs,
|
|
@@ -8666,7 +8493,7 @@ async function waitForPlayCompletionByWatch(input) {
|
|
|
8666
8493
|
full: input.fullJson,
|
|
8667
8494
|
billing: false,
|
|
8668
8495
|
onStatus: async (status) => {
|
|
8669
|
-
|
|
8496
|
+
_chunkUXQQPMYOjs.recordCliTrace.call(void 0, {
|
|
8670
8497
|
phase: "play_watch_terminal_status",
|
|
8671
8498
|
workflowId: input.workflowId,
|
|
8672
8499
|
full: input.fullJson === true
|
|
@@ -8755,7 +8582,7 @@ async function startAndWaitForPlayCompletion(input) {
|
|
|
8755
8582
|
signal: controller.signal,
|
|
8756
8583
|
cliAdmission: useCliAdmission
|
|
8757
8584
|
});
|
|
8758
|
-
|
|
8585
|
+
_chunkUXQQPMYOjs.recordCliTrace.call(void 0, {
|
|
8759
8586
|
phase: "cli.play_start_admission_attempt",
|
|
8760
8587
|
ms: Date.now() - postStartedAt,
|
|
8761
8588
|
ok: true,
|
|
@@ -8767,7 +8594,7 @@ async function startAndWaitForPlayCompletion(input) {
|
|
|
8767
8594
|
});
|
|
8768
8595
|
break;
|
|
8769
8596
|
} catch (error) {
|
|
8770
|
-
|
|
8597
|
+
_chunkUXQQPMYOjs.recordCliTrace.call(void 0, {
|
|
8771
8598
|
phase: "cli.play_start_admission_attempt",
|
|
8772
8599
|
ms: Date.now() - postStartedAt,
|
|
8773
8600
|
ok: false,
|
|
@@ -8818,7 +8645,7 @@ async function startAndWaitForPlayCompletion(input) {
|
|
|
8818
8645
|
prepared.workflowId
|
|
8819
8646
|
);
|
|
8820
8647
|
}
|
|
8821
|
-
await
|
|
8648
|
+
await _chunk5Z6EULD5js.checkPlayRunCompatibility.call(void 0,
|
|
8822
8649
|
input.client.baseUrl,
|
|
8823
8650
|
input.maintenancePolicy
|
|
8824
8651
|
);
|
|
@@ -8836,7 +8663,7 @@ async function startAndWaitForPlayCompletion(input) {
|
|
|
8836
8663
|
`[play start] response was ambiguous; retrying the same caller intent (${error instanceof Error ? error.message : String(error)})`
|
|
8837
8664
|
);
|
|
8838
8665
|
}
|
|
8839
|
-
|
|
8666
|
+
_chunkUXQQPMYOjs.recordCliTrace.call(void 0, {
|
|
8840
8667
|
phase: "cli.play_start_json_retry",
|
|
8841
8668
|
ms: 0,
|
|
8842
8669
|
ok: true,
|
|
@@ -8894,7 +8721,7 @@ async function startAndWaitForPlayCompletion(input) {
|
|
|
8894
8721
|
}
|
|
8895
8722
|
await _optionalChain([input, 'access', _299 => _299.onRunStarted, 'optionalCall', _300 => _300(workflowId)]);
|
|
8896
8723
|
await _optionalChain([input, 'access', _301 => _301.onRunAdmitted, 'optionalCall', _302 => _302(workflowId)]);
|
|
8897
|
-
const dashboardUrl = _nullishCoalesce(started.dashboardUrl, () => (
|
|
8724
|
+
const dashboardUrl = _nullishCoalesce(started.dashboardUrl, () => ( _chunkNTLBZUHDjs.buildPlayDashboardUrl.call(void 0, input.client.baseUrl, input.playName)));
|
|
8898
8725
|
const rateLimited = _nullishCoalesce(started.rateLimited, () => ( null));
|
|
8899
8726
|
if (!input.jsonOutput) {
|
|
8900
8727
|
writeStartedPlayRun({
|
|
@@ -8916,7 +8743,7 @@ async function startAndWaitForPlayCompletion(input) {
|
|
|
8916
8743
|
_nullishCoalesce(input.open, () => ( false))
|
|
8917
8744
|
);
|
|
8918
8745
|
input.progress.phase("running");
|
|
8919
|
-
|
|
8746
|
+
_chunkUXQQPMYOjs.recordCliTrace.call(void 0, {
|
|
8920
8747
|
phase: "cli.play_start_admitted",
|
|
8921
8748
|
ms: Date.now() - startedAt,
|
|
8922
8749
|
ok: true,
|
|
@@ -8934,7 +8761,7 @@ async function startAndWaitForPlayCompletion(input) {
|
|
|
8934
8761
|
startedAt,
|
|
8935
8762
|
waitTimeoutMs: input.waitTimeoutMs
|
|
8936
8763
|
});
|
|
8937
|
-
const initialStatus =
|
|
8764
|
+
const initialStatus = _chunk7P2QVMBPjs.normalizePlayStatus.call(void 0, initialTerminal);
|
|
8938
8765
|
const status2 = await resolvePlayRunOutputStatus({
|
|
8939
8766
|
client: input.client,
|
|
8940
8767
|
status: initialStatus,
|
|
@@ -8942,7 +8769,7 @@ async function startAndWaitForPlayCompletion(input) {
|
|
|
8942
8769
|
jsonOutput: input.jsonOutput,
|
|
8943
8770
|
fromDurableStatus: true
|
|
8944
8771
|
});
|
|
8945
|
-
|
|
8772
|
+
_chunkUXQQPMYOjs.recordCliTrace.call(void 0, {
|
|
8946
8773
|
phase: "play_watch_terminal_status",
|
|
8947
8774
|
workflowId,
|
|
8948
8775
|
full: true,
|
|
@@ -9047,7 +8874,7 @@ async function startAndWaitForPlayCompletionByStream(input) {
|
|
|
9047
8874
|
});
|
|
9048
8875
|
}
|
|
9049
8876
|
if (error instanceof _chunkRNSHCJMEjs.CliPlayAdmissionUnsupportedError && input.cliAdmission) {
|
|
9050
|
-
await
|
|
8877
|
+
await _chunk5Z6EULD5js.checkPlayRunCompatibility.call(void 0,
|
|
9051
8878
|
input.client.baseUrl,
|
|
9052
8879
|
input.maintenancePolicy,
|
|
9053
8880
|
admissionDeadline.signal
|
|
@@ -9088,7 +8915,7 @@ async function startAndWaitForPlayCompletionByStream(input) {
|
|
|
9088
8915
|
`[play watch] start response was ambiguous; retrying the same caller intent (${error.message})`
|
|
9089
8916
|
);
|
|
9090
8917
|
}
|
|
9091
|
-
|
|
8918
|
+
_chunkUXQQPMYOjs.recordCliTrace.call(void 0, {
|
|
9092
8919
|
phase: "cli.play_start_stream_retry",
|
|
9093
8920
|
ms: 0,
|
|
9094
8921
|
ok: true,
|
|
@@ -9109,7 +8936,7 @@ async function startAndWaitForPlayCompletionByStream(input) {
|
|
|
9109
8936
|
`[play watch] start failed before run id with a transient error; retrying (${playStatusErrorText(status)})`
|
|
9110
8937
|
);
|
|
9111
8938
|
}
|
|
9112
|
-
|
|
8939
|
+
_chunkUXQQPMYOjs.recordCliTrace.call(void 0, {
|
|
9113
8940
|
phase: "cli.play_start_stream_retry",
|
|
9114
8941
|
ms: 0,
|
|
9115
8942
|
ok: true,
|
|
@@ -9139,7 +8966,7 @@ async function startAndWaitForPlayCompletionByStream(input) {
|
|
|
9139
8966
|
}
|
|
9140
8967
|
async function startAndWaitForPlayCompletionByStreamOnce(input) {
|
|
9141
8968
|
const startedAt = Date.now();
|
|
9142
|
-
const dashboardUrl =
|
|
8969
|
+
const dashboardUrl = _chunkNTLBZUHDjs.buildPlayDashboardUrl.call(void 0,
|
|
9143
8970
|
input.client.baseUrl,
|
|
9144
8971
|
input.playName
|
|
9145
8972
|
);
|
|
@@ -9166,7 +8993,7 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
|
|
|
9166
8993
|
if (launchConfirmed || !runId || runId === "pending") return;
|
|
9167
8994
|
launchConfirmed = true;
|
|
9168
8995
|
await _optionalChain([input, 'access', _313 => _313.onRunAdmitted, 'optionalCall', _314 => _314(runId)]);
|
|
9169
|
-
|
|
8996
|
+
_chunkUXQQPMYOjs.recordCliTrace.call(void 0, {
|
|
9170
8997
|
phase: "cli.play_start_admitted",
|
|
9171
8998
|
ms: Date.now() - startedAt,
|
|
9172
8999
|
ok: true,
|
|
@@ -9200,7 +9027,7 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
|
|
|
9200
9027
|
full: input.fullJson
|
|
9201
9028
|
});
|
|
9202
9029
|
} catch (error) {
|
|
9203
|
-
if (
|
|
9030
|
+
if (_chunk7P2QVMBPjs.isTransientPlayRunReadError.call(void 0, error) || isAdmittedRunVisibilityDelay(error)) {
|
|
9204
9031
|
return null;
|
|
9205
9032
|
}
|
|
9206
9033
|
throw error;
|
|
@@ -9371,7 +9198,7 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
|
|
|
9371
9198
|
};
|
|
9372
9199
|
}
|
|
9373
9200
|
if (!canonicalTerminal) {
|
|
9374
|
-
|
|
9201
|
+
_chunkUXQQPMYOjs.recordCliTrace.call(void 0, {
|
|
9375
9202
|
phase: "cli.play_start_stream_stale_terminal_ignored",
|
|
9376
9203
|
ms: Date.now() - startedAt,
|
|
9377
9204
|
ok: true,
|
|
@@ -9392,14 +9219,14 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
|
|
|
9392
9219
|
fromDurableStatus
|
|
9393
9220
|
}) : canonicalTerminal;
|
|
9394
9221
|
if (input.fullJson === true) {
|
|
9395
|
-
|
|
9222
|
+
_chunkUXQQPMYOjs.recordCliTrace.call(void 0, {
|
|
9396
9223
|
phase: "play_watch_terminal_status",
|
|
9397
9224
|
workflowId: outputTerminal.runId || lastKnownWorkflowId || void 0,
|
|
9398
9225
|
full: true,
|
|
9399
9226
|
source: outputTerminal === canonicalTerminal ? fromDurableStatus ? "start_stream_durable" : "start_stream" : "durable_repair"
|
|
9400
9227
|
});
|
|
9401
9228
|
}
|
|
9402
|
-
|
|
9229
|
+
_chunkUXQQPMYOjs.recordCliTrace.call(void 0, {
|
|
9403
9230
|
phase: "cli.play_start_stream_terminal",
|
|
9404
9231
|
ms: Date.now() - startedAt,
|
|
9405
9232
|
ok: true,
|
|
@@ -9419,7 +9246,7 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
|
|
|
9419
9246
|
clearTimeout(timeout);
|
|
9420
9247
|
}
|
|
9421
9248
|
controller.abort();
|
|
9422
|
-
|
|
9249
|
+
_chunkUXQQPMYOjs.recordCliTrace.call(void 0, {
|
|
9423
9250
|
phase: "cli.play_start_stream_handoff_to_tail",
|
|
9424
9251
|
ms: Date.now() - startedAt,
|
|
9425
9252
|
ok: true,
|
|
@@ -9450,7 +9277,7 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
|
|
|
9450
9277
|
if (timedOut) {
|
|
9451
9278
|
const terminal = await fetchKnownTerminalStatus();
|
|
9452
9279
|
if (terminal) {
|
|
9453
|
-
|
|
9280
|
+
_chunkUXQQPMYOjs.recordCliTrace.call(void 0, {
|
|
9454
9281
|
phase: "cli.play_start_stream_timeout_status_reconcile",
|
|
9455
9282
|
ms: Date.now() - startedAt,
|
|
9456
9283
|
ok: true,
|
|
@@ -9470,7 +9297,7 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
|
|
|
9470
9297
|
lastPhase
|
|
9471
9298
|
});
|
|
9472
9299
|
}
|
|
9473
|
-
if (lastKnownWorkflowId && (terminalWindowExpired ||
|
|
9300
|
+
if (lastKnownWorkflowId && (terminalWindowExpired || _chunk7P2QVMBPjs.isTransientPlayRunReadError.call(void 0, error))) {
|
|
9474
9301
|
if (timeout) {
|
|
9475
9302
|
clearTimeout(timeout);
|
|
9476
9303
|
}
|
|
@@ -9481,7 +9308,7 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
|
|
|
9481
9308
|
`
|
|
9482
9309
|
);
|
|
9483
9310
|
}
|
|
9484
|
-
|
|
9311
|
+
_chunkUXQQPMYOjs.recordCliTrace.call(void 0, {
|
|
9485
9312
|
phase: "cli.play_start_stream_reconnect",
|
|
9486
9313
|
ms: Date.now() - startedAt,
|
|
9487
9314
|
ok: true,
|
|
@@ -9508,7 +9335,7 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
|
|
|
9508
9335
|
});
|
|
9509
9336
|
}
|
|
9510
9337
|
if (!lastKnownWorkflowId && isAmbiguousPlayStartOutcomeError(error)) {
|
|
9511
|
-
|
|
9338
|
+
_chunkUXQQPMYOjs.recordCliTrace.call(void 0, {
|
|
9512
9339
|
phase: "cli.play_start_stream_transient_failure",
|
|
9513
9340
|
ms: Date.now() - startedAt,
|
|
9514
9341
|
ok: false,
|
|
@@ -9536,7 +9363,7 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
|
|
|
9536
9363
|
`[play watch] start stream ended after run ${lastKnownWorkflowId}; reconnecting to canonical run stream`
|
|
9537
9364
|
);
|
|
9538
9365
|
}
|
|
9539
|
-
|
|
9366
|
+
_chunkUXQQPMYOjs.recordCliTrace.call(void 0, {
|
|
9540
9367
|
phase: "cli.play_start_stream_reconnect",
|
|
9541
9368
|
ms: Date.now() - startedAt,
|
|
9542
9369
|
ok: true,
|
|
@@ -9616,7 +9443,7 @@ var BULKY_RETURN_KEYS = /* @__PURE__ */ new Set([
|
|
|
9616
9443
|
"logs"
|
|
9617
9444
|
]);
|
|
9618
9445
|
function formatPlayLogLine(rawLine, state) {
|
|
9619
|
-
const classified =
|
|
9446
|
+
const classified = _chunk7P2QVMBPjs.classifyLogLine.call(void 0, rawLine);
|
|
9620
9447
|
const line = classified.line;
|
|
9621
9448
|
const timestampMatch = line.match(/^\[([^\]]+)\]\s*(.*)$/);
|
|
9622
9449
|
const parsedTimestamp = _optionalChain([timestampMatch, 'optionalAccess', _336 => _336[1]]) ? new Date(timestampMatch[1]) : null;
|
|
@@ -9631,14 +9458,14 @@ function formatPlayLogLine(rawLine, state) {
|
|
|
9631
9458
|
if (!state.verbose && isProviderRowWaitLogLine(line)) return null;
|
|
9632
9459
|
const providerWait = formatProviderCapacityWaitLogLine(line);
|
|
9633
9460
|
if (providerWait && !state.verbose) {
|
|
9634
|
-
return
|
|
9461
|
+
return _chunk7P2QVMBPjs.logLevelReaches.call(void 0, "warn", _nullishCoalesce(state.logLevel, () => ( "info"))) ? `${prefix}${providerWait}` : null;
|
|
9635
9462
|
}
|
|
9636
9463
|
const mapProgress = formatMapProgressDiagnosticLogLine(line);
|
|
9637
9464
|
if (mapProgress && !state.verbose) {
|
|
9638
|
-
return
|
|
9465
|
+
return _chunk7P2QVMBPjs.logLevelReaches.call(void 0, "info", _nullishCoalesce(state.logLevel, () => ( "info"))) ? `${prefix}${mapProgress}` : null;
|
|
9639
9466
|
}
|
|
9640
9467
|
if (/\[worker\] picked up run\b/.test(message)) {
|
|
9641
|
-
if (!
|
|
9468
|
+
if (!_chunk7P2QVMBPjs.logLevelReaches.call(void 0, "info", _nullishCoalesce(state.logLevel, () => ( "info")))) {
|
|
9642
9469
|
return null;
|
|
9643
9470
|
}
|
|
9644
9471
|
if (state.emittedRunnerStarted) {
|
|
@@ -9651,7 +9478,7 @@ function formatPlayLogLine(rawLine, state) {
|
|
|
9651
9478
|
/^Starting map over (\d+) items with (\d+) fields \(key: ([^;]+); (\d+) already satisfied; (\d+) pending\)$/
|
|
9652
9479
|
);
|
|
9653
9480
|
if (mapStart) {
|
|
9654
|
-
if (!
|
|
9481
|
+
if (!_chunk7P2QVMBPjs.logLevelReaches.call(void 0, "info", _nullishCoalesce(state.logLevel, () => ( "info")))) {
|
|
9655
9482
|
return null;
|
|
9656
9483
|
}
|
|
9657
9484
|
const [, rows, fields2, namespace, cached, pending] = mapStart;
|
|
@@ -9661,7 +9488,7 @@ function formatPlayLogLine(rawLine, state) {
|
|
|
9661
9488
|
/^Map completed: (\d+) results \((\d+) executed, (\d+) already satisfied\)$/
|
|
9662
9489
|
);
|
|
9663
9490
|
if (mapDone) {
|
|
9664
|
-
if (!
|
|
9491
|
+
if (!_chunk7P2QVMBPjs.logLevelReaches.call(void 0, "info", _nullishCoalesce(state.logLevel, () => ( "info")))) {
|
|
9665
9492
|
return null;
|
|
9666
9493
|
}
|
|
9667
9494
|
const [, results, executed, cached] = mapDone;
|
|
@@ -10961,7 +10788,7 @@ function formatRecentRunLogLines(value) {
|
|
|
10961
10788
|
(line) => typeof line === "string"
|
|
10962
10789
|
);
|
|
10963
10790
|
if (tail.length === 0) return [];
|
|
10964
|
-
const shown = tail.map((line) =>
|
|
10791
|
+
const shown = tail.map((line) => _chunk7P2QVMBPjs.classifyLogLine.call(void 0, line)).filter(
|
|
10965
10792
|
(entry) => entry.level !== "debug" && !isProviderRowWaitLogLine(entry.line)
|
|
10966
10793
|
).slice(-8);
|
|
10967
10794
|
const total = readNonNegativeInteger(logs.totalCount);
|
|
@@ -11259,11 +11086,11 @@ function buildPlayCompletionTextLines(status) {
|
|
|
11259
11086
|
}
|
|
11260
11087
|
function writePlayResult(status, jsonOutput, options) {
|
|
11261
11088
|
const packaged = getPlayRunPackage(status);
|
|
11262
|
-
if (status.package)
|
|
11089
|
+
if (status.package) _chunkKCKAFTPYjs.recordPlayTermination.call(void 0, buildRunOverview(status).run);
|
|
11263
11090
|
const hits = _nullishCoalesce(_optionalChain([options, 'optionalAccess', _424 => _424.hits]), () => ( null));
|
|
11264
11091
|
if (jsonOutput) {
|
|
11265
11092
|
const payload2 = _optionalChain([options, 'optionalAccess', _425 => _425.fullJson]) ? status.package ? buildRunOverview(status, status) : { ...buildRunLaunch(status), diagnostics: status } : buildRunLaunch(status);
|
|
11266
|
-
|
|
11093
|
+
_chunkQKKU2FH4js.printCommandEnvelope.call(void 0,
|
|
11267
11094
|
hits ? { ...payload2, hits } : payload2,
|
|
11268
11095
|
{ json: true, fields: _optionalChain([options, 'optionalAccess', _426 => _426.jsonFields]) }
|
|
11269
11096
|
);
|
|
@@ -11279,7 +11106,7 @@ function writePlayResult(status, jsonOutput, options) {
|
|
|
11279
11106
|
...buildPlayCompletionTextLines(status),
|
|
11280
11107
|
...formatRunHitsLines(hits)
|
|
11281
11108
|
];
|
|
11282
|
-
|
|
11109
|
+
_chunkQKKU2FH4js.printCommandEnvelope.call(void 0, displayPackage, {
|
|
11283
11110
|
json: false,
|
|
11284
11111
|
text: `${lines2.join("\n")}
|
|
11285
11112
|
`
|
|
@@ -11330,7 +11157,7 @@ function writePlayResult(status, jsonOutput, options) {
|
|
|
11330
11157
|
lines.push(...buildBillingRollupTextLines(status));
|
|
11331
11158
|
const compact = compactPlayStatus(status);
|
|
11332
11159
|
const payload = _optionalChain([options, 'optionalAccess', _428 => _428.fullJson]) ? status : compact;
|
|
11333
|
-
|
|
11160
|
+
_chunkQKKU2FH4js.printCommandEnvelope.call(void 0,
|
|
11334
11161
|
{
|
|
11335
11162
|
...payload,
|
|
11336
11163
|
render: {
|
|
@@ -11554,7 +11381,7 @@ async function fetchBackingDatasetRows(input) {
|
|
|
11554
11381
|
}
|
|
11555
11382
|
offset += page.rows.length;
|
|
11556
11383
|
}
|
|
11557
|
-
const withError =
|
|
11384
|
+
const withError = _chunkKCKAFTPYjs.tableExportHasFailedRows.call(void 0,
|
|
11558
11385
|
sheetRows.filter(
|
|
11559
11386
|
(row) => Boolean(row) && typeof row === "object" && !Array.isArray(row)
|
|
11560
11387
|
)
|
|
@@ -11570,7 +11397,7 @@ async function fetchBackingDatasetRows(input) {
|
|
|
11570
11397
|
return [
|
|
11571
11398
|
withError ? {
|
|
11572
11399
|
...exported,
|
|
11573
|
-
[
|
|
11400
|
+
[_chunkKCKAFTPYjs.TABLE_EXPORT_ERROR_COLUMN]: _chunkKCKAFTPYjs.tableExportErrorCell.call(void 0,
|
|
11574
11401
|
row
|
|
11575
11402
|
)
|
|
11576
11403
|
} : exported
|
|
@@ -12105,7 +11932,7 @@ function renderServerResultView(value) {
|
|
|
12105
11932
|
function writeStartedPlayRun(input) {
|
|
12106
11933
|
if (input.package && isPlayRunPackageValue(input.package)) {
|
|
12107
11934
|
const run = input.package.run;
|
|
12108
|
-
|
|
11935
|
+
_chunkKCKAFTPYjs.recordPlayTermination.call(void 0, {
|
|
12109
11936
|
id: run.id,
|
|
12110
11937
|
status: run.status,
|
|
12111
11938
|
finishedAt: run.finishedAt
|
|
@@ -12118,7 +11945,7 @@ function writeStartedPlayRun(input) {
|
|
|
12118
11945
|
dashboardUrl: input.dashboardUrl,
|
|
12119
11946
|
package: input.package
|
|
12120
11947
|
};
|
|
12121
|
-
|
|
11948
|
+
_chunkQKKU2FH4js.printCommandEnvelope.call(void 0, buildRunLaunch(status), {
|
|
12122
11949
|
json: true,
|
|
12123
11950
|
fields: input.jsonFields
|
|
12124
11951
|
});
|
|
@@ -12140,7 +11967,7 @@ function writeStartedPlayRun(input) {
|
|
|
12140
11967
|
input.progress.writeLine(output2, process.stdout);
|
|
12141
11968
|
return;
|
|
12142
11969
|
}
|
|
12143
|
-
|
|
11970
|
+
_chunkQKKU2FH4js.printCommandEnvelope.call(void 0, input.package, {
|
|
12144
11971
|
json: false,
|
|
12145
11972
|
text: `${output2}
|
|
12146
11973
|
`
|
|
@@ -12175,7 +12002,7 @@ function writeStartedPlayRun(input) {
|
|
|
12175
12002
|
) ? [`Stop: deepline runs stop ${_chunkAID3OYVJjs.shellQuote.call(void 0, input.runId)}`] : []
|
|
12176
12003
|
];
|
|
12177
12004
|
if (input.jsonOutput) {
|
|
12178
|
-
|
|
12005
|
+
_chunkQKKU2FH4js.printCommandEnvelope.call(void 0, payload, { json: true, fields: input.jsonFields });
|
|
12179
12006
|
return;
|
|
12180
12007
|
}
|
|
12181
12008
|
const output = lines.join("\n");
|
|
@@ -12183,7 +12010,7 @@ function writeStartedPlayRun(input) {
|
|
|
12183
12010
|
input.progress.writeLine(output, process.stdout);
|
|
12184
12011
|
return;
|
|
12185
12012
|
}
|
|
12186
|
-
|
|
12013
|
+
_chunkQKKU2FH4js.printCommandEnvelope.call(void 0,
|
|
12187
12014
|
{
|
|
12188
12015
|
...payload,
|
|
12189
12016
|
render: { sections: [{ title: "play run", lines }] }
|
|
@@ -12193,7 +12020,7 @@ function writeStartedPlayRun(input) {
|
|
|
12193
12020
|
);
|
|
12194
12021
|
}
|
|
12195
12022
|
function parsePlayCheckOptions(args) {
|
|
12196
|
-
const selection =
|
|
12023
|
+
const selection = _chunkQKKU2FH4js.parseJsonFields.call(void 0, args, "check");
|
|
12197
12024
|
args = selection.args;
|
|
12198
12025
|
const target = args[0];
|
|
12199
12026
|
if (!target || target.startsWith("-")) {
|
|
@@ -12205,7 +12032,7 @@ function parsePlayCheckOptions(args) {
|
|
|
12205
12032
|
if (arg !== "--json" && arg !== "--full")
|
|
12206
12033
|
throw new Error(`Unknown plays check option: ${arg}`);
|
|
12207
12034
|
}
|
|
12208
|
-
const jsonOutput =
|
|
12035
|
+
const jsonOutput = _chunkQKKU2FH4js.argsWantJson.call(void 0, args);
|
|
12209
12036
|
return {
|
|
12210
12037
|
target,
|
|
12211
12038
|
jsonOutput,
|
|
@@ -12281,7 +12108,7 @@ ${PLAY_PUBLISH_USAGE}`
|
|
|
12281
12108
|
useLatest,
|
|
12282
12109
|
expectedArtifactHash,
|
|
12283
12110
|
dryRun,
|
|
12284
|
-
jsonOutput:
|
|
12111
|
+
jsonOutput: _chunkQKKU2FH4js.argsWantJson.call(void 0, args)
|
|
12285
12112
|
};
|
|
12286
12113
|
}
|
|
12287
12114
|
var PLAY_SAVE_USAGE = "Usage: deepline plays save <play-file.ts> [--expected-artifact <hash>] [--dry-run] [--json]";
|
|
@@ -12322,7 +12149,7 @@ ${PLAY_SAVE_USAGE}`);
|
|
|
12322
12149
|
target,
|
|
12323
12150
|
expectedArtifactHash,
|
|
12324
12151
|
dryRun,
|
|
12325
|
-
jsonOutput:
|
|
12152
|
+
jsonOutput: _chunkQKKU2FH4js.argsWantJson.call(void 0, args)
|
|
12326
12153
|
};
|
|
12327
12154
|
}
|
|
12328
12155
|
function printScheduledPlayCapacity(capacity) {
|
|
@@ -12519,7 +12346,7 @@ function printPublishReceipt(input) {
|
|
|
12519
12346
|
}
|
|
12520
12347
|
function formatPlaySandboxRuntimeWarning(declaration) {
|
|
12521
12348
|
if (!declaration) return null;
|
|
12522
|
-
const warning = formatNonStandardSandboxRuntimeWarning(
|
|
12349
|
+
const warning = _chunkR7J7CJPZjs.formatNonStandardSandboxRuntimeWarning.call(void 0,
|
|
12523
12350
|
_chunkYGCKMI5Pjs.resolvePlaySandboxRuntimeLimits.call(void 0, declaration)
|
|
12524
12351
|
);
|
|
12525
12352
|
return warning ? `Warning: ${warning}` : null;
|
|
@@ -12533,7 +12360,7 @@ function printBundledRuntimeWarning(bundle) {
|
|
|
12533
12360
|
async function handlePlayCheck(args) {
|
|
12534
12361
|
const options = parsePlayCheckOptions(args);
|
|
12535
12362
|
if (!isFileTarget(options.target)) {
|
|
12536
|
-
const client = new (0,
|
|
12363
|
+
const client = new (0, _chunkSMSQVRHEjs.DeeplineClient)();
|
|
12537
12364
|
try {
|
|
12538
12365
|
await assertCanonicalNamedPlayReference(client, options.target, {
|
|
12539
12366
|
command: "check"
|
|
@@ -12562,7 +12389,7 @@ async function handlePlayCheck(args) {
|
|
|
12562
12389
|
},
|
|
12563
12390
|
...options.full ? { diagnostics: { staticPipeline: _nullishCoalesce(play.staticPipeline, () => ( null)) } } : {}
|
|
12564
12391
|
};
|
|
12565
|
-
|
|
12392
|
+
_chunkQKKU2FH4js.printCommandEnvelope.call(void 0, result, {
|
|
12566
12393
|
json: options.jsonOutput,
|
|
12567
12394
|
fields: options.jsonFields,
|
|
12568
12395
|
text: renderPlayCheckOutput(result) + "\n"
|
|
@@ -12572,7 +12399,7 @@ async function handlePlayCheck(args) {
|
|
|
12572
12399
|
const resolved = _path.resolve.call(void 0, options.target);
|
|
12573
12400
|
const message = error instanceof Error && error.message ? error.message : `File not found: ${resolved}`;
|
|
12574
12401
|
if (options.jsonOutput) {
|
|
12575
|
-
|
|
12402
|
+
_chunkQKKU2FH4js.printCommandEnvelope.call(void 0,
|
|
12576
12403
|
{
|
|
12577
12404
|
kind: "play_check",
|
|
12578
12405
|
checked: "named_contract",
|
|
@@ -12603,7 +12430,7 @@ async function handlePlayCheck(args) {
|
|
|
12603
12430
|
detailsCommand: `deepline plays check ${_chunkAID3OYVJjs.shellQuote.call(void 0, options.target)} --full`,
|
|
12604
12431
|
publishCommand: _optionalChain([primary, 'optionalAccess', _478 => _478.result, 'access', _479 => _479.artifactHash]) ? `deepline plays publish ${_chunkAID3OYVJjs.shellQuote.call(void 0, options.target)} --expected-artifact ${primary.result.artifactHash}` : void 0
|
|
12605
12432
|
});
|
|
12606
|
-
|
|
12433
|
+
_chunkQKKU2FH4js.printCommandEnvelope.call(void 0, output, {
|
|
12607
12434
|
json: options.jsonOutput,
|
|
12608
12435
|
fields: options.jsonFields,
|
|
12609
12436
|
text: renderPlayCheckOutput(output) + "\n"
|
|
@@ -12671,7 +12498,7 @@ async function checkOneExportedPlay(input) {
|
|
|
12671
12498
|
}
|
|
12672
12499
|
const playName = _nullishCoalesce(graph.root.playName, () => ( fallbackName));
|
|
12673
12500
|
const authoringErrors = collectPlayGraphAuthoringErrors(graph);
|
|
12674
|
-
const client = _nullishCoalesce(input.client, () => ( new (0,
|
|
12501
|
+
const client = _nullishCoalesce(input.client, () => ( new (0, _chunkSMSQVRHEjs.DeeplineClient)()));
|
|
12675
12502
|
const integrationMode = resolveEvalIntegrationMode();
|
|
12676
12503
|
const checked = await checkLocalPlayGraph({
|
|
12677
12504
|
client,
|
|
@@ -12727,8 +12554,8 @@ async function handleFileBackedRun(options, hooks) {
|
|
|
12727
12554
|
let prefetchClient;
|
|
12728
12555
|
let admissionCapability;
|
|
12729
12556
|
let cancelAdmissionCapability;
|
|
12730
|
-
let cliAdmission =
|
|
12731
|
-
const progress = _nullishCoalesce(
|
|
12557
|
+
let cliAdmission = _chunk5Z6EULD5js.usesCliPlayAdmission.call(void 0, "plays run", process.argv.slice(2));
|
|
12558
|
+
const progress = _nullishCoalesce(_chunkMJTK6Q3Gjs.getActiveCliProgress.call(void 0, ), () => ( _chunkMJTK6Q3Gjs.createCliProgress.call(void 0, !options.jsonOutput)));
|
|
12732
12559
|
const reportError = _nullishCoalesce(_optionalChain([hooks, 'optionalAccess', _488 => _488.writeDryRunError]), () => ( ((error) => console.error(error instanceof Error ? error.message : String(error)))));
|
|
12733
12560
|
const absolutePlayPath = _path.resolve.call(void 0, options.target.path);
|
|
12734
12561
|
progress.phase("compiling play");
|
|
@@ -12745,11 +12572,11 @@ async function handleFileBackedRun(options, hooks) {
|
|
|
12745
12572
|
return 1;
|
|
12746
12573
|
}
|
|
12747
12574
|
if (!options.dryRun && options.watch && cliAdmission && Boolean(options.runIdFile) && options.maxTotalCredits === null && !inputContainsLocalFilePath(runtimeInput)) {
|
|
12748
|
-
const clientForPrefetch = new (0,
|
|
12575
|
+
const clientForPrefetch = new (0, _chunkSMSQVRHEjs.DeeplineClient)(playRunClientOptions(options));
|
|
12749
12576
|
prefetchClient = clientForPrefetch;
|
|
12750
12577
|
const capabilityController = new AbortController();
|
|
12751
12578
|
cancelAdmissionCapability = () => capabilityController.abort();
|
|
12752
|
-
admissionCapability =
|
|
12579
|
+
admissionCapability = _chunkUXQQPMYOjs.traceCliSpan.call(void 0,
|
|
12753
12580
|
"cli.play_admission_capability_prefetch",
|
|
12754
12581
|
{ targetKind: "file" },
|
|
12755
12582
|
() => clientForPrefetch.prefetchPlayRunAdmissionCapability({
|
|
@@ -12760,7 +12587,7 @@ async function handleFileBackedRun(options, hooks) {
|
|
|
12760
12587
|
}
|
|
12761
12588
|
let graph;
|
|
12762
12589
|
try {
|
|
12763
|
-
graph = await
|
|
12590
|
+
graph = await _chunkUXQQPMYOjs.traceCliSpan.call(void 0,
|
|
12764
12591
|
"cli.play_file_bundle_graph",
|
|
12765
12592
|
{ targetKind: "file" },
|
|
12766
12593
|
() => collectBundledPlayGraph(
|
|
@@ -12773,7 +12600,7 @@ async function handleFileBackedRun(options, hooks) {
|
|
|
12773
12600
|
assertPlayGraphAuthoring(graph);
|
|
12774
12601
|
if (options.dryRun) {
|
|
12775
12602
|
progress.complete();
|
|
12776
|
-
const plan =
|
|
12603
|
+
const plan = _chunk2W77YCKHjs.planLocalPlayExecution.call(void 0, graph, {
|
|
12777
12604
|
runIdFile: options.runIdFile
|
|
12778
12605
|
});
|
|
12779
12606
|
if (_optionalChain([hooks, 'optionalAccess', _489 => _489.writeDryRunPlan])) hooks.writeDryRunPlan(plan);
|
|
@@ -12784,9 +12611,9 @@ async function handleFileBackedRun(options, hooks) {
|
|
|
12784
12611
|
});
|
|
12785
12612
|
return 0;
|
|
12786
12613
|
}
|
|
12787
|
-
client = _nullishCoalesce(prefetchClient, () => ( new (0,
|
|
12614
|
+
client = _nullishCoalesce(prefetchClient, () => ( new (0, _chunkSMSQVRHEjs.DeeplineClient)(playRunClientOptions(options))));
|
|
12788
12615
|
if (cliAdmission && (graph.root.importedPlayDependencies.length > 0 || inputContainsLocalFilePath(runtimeInput))) {
|
|
12789
|
-
await
|
|
12616
|
+
await _chunk5Z6EULD5js.checkPlayRunCompatibility.call(void 0,
|
|
12790
12617
|
client.baseUrl,
|
|
12791
12618
|
options.maintenancePolicy
|
|
12792
12619
|
);
|
|
@@ -12799,7 +12626,7 @@ async function handleFileBackedRun(options, hooks) {
|
|
|
12799
12626
|
});
|
|
12800
12627
|
const canDeferCompilerManifest = graph.root.importedPlayDependencies.length === 0 && !sourceGraphMentionsRunPlay(graph.root) && !inputContainsLocalFilePath(runtimeInput);
|
|
12801
12628
|
if (canDeferCompilerManifest) {
|
|
12802
|
-
|
|
12629
|
+
_chunkUXQQPMYOjs.recordCliTrace.call(void 0, {
|
|
12803
12630
|
phase: "cli.play_file_compile_manifests",
|
|
12804
12631
|
ms: 0,
|
|
12805
12632
|
ok: true,
|
|
@@ -12808,7 +12635,7 @@ async function handleFileBackedRun(options, hooks) {
|
|
|
12808
12635
|
reason: "validated_by_run_route"
|
|
12809
12636
|
});
|
|
12810
12637
|
} else {
|
|
12811
|
-
await
|
|
12638
|
+
await _chunkUXQQPMYOjs.traceCliSpan.call(void 0,
|
|
12812
12639
|
"cli.play_file_compile_manifests",
|
|
12813
12640
|
{ targetKind: "file", skipped: false },
|
|
12814
12641
|
() => compileBundledPlayGraphManifests(client, graph)
|
|
@@ -12816,7 +12643,7 @@ async function handleFileBackedRun(options, hooks) {
|
|
|
12816
12643
|
}
|
|
12817
12644
|
progress.phase("compiled play");
|
|
12818
12645
|
} catch (error) {
|
|
12819
|
-
if (error instanceof
|
|
12646
|
+
if (error instanceof _chunkKCKAFTPYjs.ExecutionOutputError) throw error;
|
|
12820
12647
|
progress.fail();
|
|
12821
12648
|
reportError(normalizePlayValidationError(error));
|
|
12822
12649
|
return 1;
|
|
@@ -12827,13 +12654,13 @@ async function handleFileBackedRun(options, hooks) {
|
|
|
12827
12654
|
if (bundleResult.importedPlayDependencies.length > 0) {
|
|
12828
12655
|
try {
|
|
12829
12656
|
renderLocalPlayExecutionPlan(
|
|
12830
|
-
|
|
12657
|
+
_chunk2W77YCKHjs.planLocalPlayExecution.call(void 0, graph, { runIdFile: options.runIdFile })
|
|
12831
12658
|
);
|
|
12832
12659
|
progress.phase("pinning imported plays");
|
|
12833
|
-
graph = await
|
|
12660
|
+
graph = await _chunkUXQQPMYOjs.traceCliSpan.call(void 0,
|
|
12834
12661
|
"cli.play_file_pin_imports",
|
|
12835
12662
|
{ targetKind: "file" },
|
|
12836
|
-
() =>
|
|
12663
|
+
() => _chunk2W77YCKHjs.pinLocalPlayImports.call(void 0, client, graph)
|
|
12837
12664
|
);
|
|
12838
12665
|
bundleResult = graph.root;
|
|
12839
12666
|
} catch (error) {
|
|
@@ -12849,7 +12676,7 @@ async function handleFileBackedRun(options, hooks) {
|
|
|
12849
12676
|
const fileInputBindings = _chunkRNSHCJMEjs.fileInputBindingsFromStaticPipeline.call(void 0,
|
|
12850
12677
|
_optionalChain([compilerManifest, 'optionalAccess', _490 => _490.staticPipeline])
|
|
12851
12678
|
);
|
|
12852
|
-
const stagedFileInputs = await
|
|
12679
|
+
const stagedFileInputs = await _chunkUXQQPMYOjs.traceCliSpan.call(void 0,
|
|
12853
12680
|
"cli.play_stage_inputs",
|
|
12854
12681
|
{
|
|
12855
12682
|
targetKind: "file",
|
|
@@ -12896,7 +12723,7 @@ async function handleFileBackedRun(options, hooks) {
|
|
|
12896
12723
|
};
|
|
12897
12724
|
if (options.watch) {
|
|
12898
12725
|
progress.phase("starting run");
|
|
12899
|
-
const finalStatus = await
|
|
12726
|
+
const finalStatus = await _chunkUXQQPMYOjs.traceCliSpan.call(void 0,
|
|
12900
12727
|
"cli.play_start_watch",
|
|
12901
12728
|
{ targetKind: "file", playName },
|
|
12902
12729
|
() => (options.runIdFile ? startAndWaitForPlayCompletionByStream : startAndWaitForPlayCompletion)({
|
|
@@ -12958,7 +12785,7 @@ async function handleFileBackedRun(options, hooks) {
|
|
|
12958
12785
|
return outputStatus.status === "completed" ? 0 : 1;
|
|
12959
12786
|
}
|
|
12960
12787
|
progress.phase("starting run");
|
|
12961
|
-
const started = await
|
|
12788
|
+
const started = await _chunkUXQQPMYOjs.traceCliSpan.call(void 0,
|
|
12962
12789
|
"cli.play_start_unwatched",
|
|
12963
12790
|
{ targetKind: "file", playName },
|
|
12964
12791
|
() => client.startPlayRun(startRequest, { onSubmission: _optionalChain([hooks, 'optionalAccess', _497 => _497.onSubmission]) }).catch(async (error) => {
|
|
@@ -12967,7 +12794,7 @@ async function handleFileBackedRun(options, hooks) {
|
|
|
12967
12794
|
);
|
|
12968
12795
|
await _optionalChain([hooks, 'optionalAccess', _498 => _498.onRunStarted, 'optionalCall', _499 => _499(started.workflowId)]);
|
|
12969
12796
|
await _optionalChain([hooks, 'optionalAccess', _500 => _500.onRunAdmitted, 'optionalCall', _501 => _501(started.workflowId)]);
|
|
12970
|
-
const resolvedDashboardUrl =
|
|
12797
|
+
const resolvedDashboardUrl = _chunkNTLBZUHDjs.buildPlayDashboardUrl.call(void 0, client.baseUrl, playName);
|
|
12971
12798
|
openPlayDashboard(
|
|
12972
12799
|
resolvePlayRunUrl({
|
|
12973
12800
|
runId: started.workflowId,
|
|
@@ -13024,9 +12851,9 @@ async function handleNamedRun(options, hooks) {
|
|
|
13024
12851
|
if (options.target.kind !== "name") {
|
|
13025
12852
|
throw new Error("Expected a named play run target.");
|
|
13026
12853
|
}
|
|
13027
|
-
const client = new (0,
|
|
13028
|
-
let cliAdmission =
|
|
13029
|
-
const progress = _nullishCoalesce(
|
|
12854
|
+
const client = new (0, _chunkSMSQVRHEjs.DeeplineClient)(playRunClientOptions(options));
|
|
12855
|
+
let cliAdmission = _chunk5Z6EULD5js.usesCliPlayAdmission.call(void 0, "plays run", process.argv.slice(2));
|
|
12856
|
+
const progress = _nullishCoalesce(_chunkMJTK6Q3Gjs.getActiveCliProgress.call(void 0, ), () => ( _chunkMJTK6Q3Gjs.createCliProgress.call(void 0, !options.jsonOutput)));
|
|
13030
12857
|
const playName = options.target.name;
|
|
13031
12858
|
const runtimeInput = options.input ? { ...options.input } : {};
|
|
13032
12859
|
try {
|
|
@@ -13044,7 +12871,7 @@ async function handleNamedRun(options, hooks) {
|
|
|
13044
12871
|
if (options.watch && cliAdmission && Boolean(options.runIdFile) && options.maxTotalCredits === null && !needsPlayDefinition && !inputContainsLocalFilePath(runtimeInput)) {
|
|
13045
12872
|
const capabilityController = new AbortController();
|
|
13046
12873
|
cancelAdmissionCapability = () => capabilityController.abort();
|
|
13047
|
-
admissionCapability =
|
|
12874
|
+
admissionCapability = _chunkUXQQPMYOjs.traceCliSpan.call(void 0,
|
|
13048
12875
|
"cli.play_admission_capability_prefetch",
|
|
13049
12876
|
{ targetKind: "name", playName },
|
|
13050
12877
|
() => client.prefetchPlayRunAdmissionCapability({
|
|
@@ -13055,14 +12882,14 @@ async function handleNamedRun(options, hooks) {
|
|
|
13055
12882
|
}
|
|
13056
12883
|
const playDetail = needsPlayDefinition ? await (async () => {
|
|
13057
12884
|
progress.phase("loading play definition");
|
|
13058
|
-
return
|
|
12885
|
+
return _chunkUXQQPMYOjs.traceCliSpan.call(void 0,
|
|
13059
12886
|
"cli.play_load_definition",
|
|
13060
12887
|
{ targetKind: "name", playName, skipped: false },
|
|
13061
12888
|
() => assertCanonicalNamedPlayReference(client, playName, {
|
|
13062
12889
|
command: "run"
|
|
13063
12890
|
})
|
|
13064
12891
|
);
|
|
13065
|
-
})() : (
|
|
12892
|
+
})() : (_chunkUXQQPMYOjs.recordCliTrace.call(void 0, {
|
|
13066
12893
|
phase: "cli.play_load_definition",
|
|
13067
12894
|
ms: 0,
|
|
13068
12895
|
ok: true,
|
|
@@ -13071,7 +12898,7 @@ async function handleNamedRun(options, hooks) {
|
|
|
13071
12898
|
skipped: true
|
|
13072
12899
|
}), null);
|
|
13073
12900
|
progress.phase("selecting revision");
|
|
13074
|
-
const selectedRevisionId = await
|
|
12901
|
+
const selectedRevisionId = await _chunkUXQQPMYOjs.traceCliSpan.call(void 0,
|
|
13075
12902
|
"cli.play_select_revision",
|
|
13076
12903
|
{
|
|
13077
12904
|
targetKind: "name",
|
|
@@ -13096,10 +12923,10 @@ async function handleNamedRun(options, hooks) {
|
|
|
13096
12923
|
..._chunkRNSHCJMEjs.fileInputBindingsFromStaticPipeline.call(void 0, playDetail.play.staticPipeline)
|
|
13097
12924
|
] : [];
|
|
13098
12925
|
if (cliAdmission && fileInputBindings.length > 0) {
|
|
13099
|
-
await
|
|
12926
|
+
await _chunk5Z6EULD5js.checkPlayRunCompatibility.call(void 0, client.baseUrl, options.maintenancePolicy);
|
|
13100
12927
|
cliAdmission = false;
|
|
13101
12928
|
}
|
|
13102
|
-
const stagedFileInputs = await
|
|
12929
|
+
const stagedFileInputs = await _chunkUXQQPMYOjs.traceCliSpan.call(void 0,
|
|
13103
12930
|
"cli.play_stage_inputs",
|
|
13104
12931
|
{
|
|
13105
12932
|
targetKind: "name",
|
|
@@ -13143,7 +12970,7 @@ async function handleNamedRun(options, hooks) {
|
|
|
13143
12970
|
});
|
|
13144
12971
|
if (options.watch) {
|
|
13145
12972
|
progress.phase("starting run");
|
|
13146
|
-
const finalStatus = await
|
|
12973
|
+
const finalStatus = await _chunkUXQQPMYOjs.traceCliSpan.call(void 0,
|
|
13147
12974
|
"cli.play_start_watch",
|
|
13148
12975
|
{ targetKind: "name", playName },
|
|
13149
12976
|
() => (options.runIdFile ? startAndWaitForPlayCompletionByStream : startAndWaitForPlayCompletion)({
|
|
@@ -13208,7 +13035,7 @@ async function handleNamedRun(options, hooks) {
|
|
|
13208
13035
|
return outputStatus.status === "completed" ? 0 : 1;
|
|
13209
13036
|
}
|
|
13210
13037
|
progress.phase("starting run");
|
|
13211
|
-
const started = await
|
|
13038
|
+
const started = await _chunkUXQQPMYOjs.traceCliSpan.call(void 0,
|
|
13212
13039
|
"cli.play_start_unwatched",
|
|
13213
13040
|
{ targetKind: "name", playName },
|
|
13214
13041
|
() => client.startPlayRun(startRequest, { onSubmission: _optionalChain([hooks, 'optionalAccess', _510 => _510.onSubmission]) }).catch(async (error) => {
|
|
@@ -13219,7 +13046,7 @@ async function handleNamedRun(options, hooks) {
|
|
|
13219
13046
|
);
|
|
13220
13047
|
await _optionalChain([hooks, 'optionalAccess', _511 => _511.onRunStarted, 'optionalCall', _512 => _512(started.workflowId)]);
|
|
13221
13048
|
await _optionalChain([hooks, 'optionalAccess', _513 => _513.onRunAdmitted, 'optionalCall', _514 => _514(started.workflowId)]);
|
|
13222
|
-
const resolvedDashboardUrl =
|
|
13049
|
+
const resolvedDashboardUrl = _chunkNTLBZUHDjs.buildPlayDashboardUrl.call(void 0, client.baseUrl, playName);
|
|
13223
13050
|
openPlayDashboard(
|
|
13224
13051
|
resolvePlayRunUrl({
|
|
13225
13052
|
runId: started.workflowId,
|
|
@@ -13268,11 +13095,11 @@ async function writePlayRunReceipt(client, status, output) {
|
|
|
13268
13095
|
const next = { status: `deepline runs get ${status.runId}` };
|
|
13269
13096
|
const playName = _nullishCoalesce(_nullishCoalesce(_optionalChain([/^play\/(.+)\/run\//, 'access', _518 => _518.exec, 'call', _519 => _519(status.runId), 'optionalAccess', _520 => _520[1]]), () => ( extractRunPlayName(status))), () => ( null));
|
|
13270
13097
|
if (!terminal) {
|
|
13271
|
-
|
|
13098
|
+
_chunkKCKAFTPYjs.writeExecutionOutput.call(void 0,
|
|
13272
13099
|
{
|
|
13273
13100
|
id: status.runId,
|
|
13274
13101
|
status: status.status,
|
|
13275
|
-
...playName ? { page:
|
|
13102
|
+
...playName ? { page: _chunkNTLBZUHDjs.buildPlayRunUrl.call(void 0, client.baseUrl, playName, status.runId) } : {},
|
|
13276
13103
|
next
|
|
13277
13104
|
},
|
|
13278
13105
|
output
|
|
@@ -13348,10 +13175,10 @@ async function writePlayRunReceipt(client, status, output) {
|
|
|
13348
13175
|
};
|
|
13349
13176
|
}
|
|
13350
13177
|
const byRows = new Map(collections.map((c) => [c.rows, c]));
|
|
13351
|
-
const allCollections =
|
|
13178
|
+
const allCollections = _chunkKCKAFTPYjs.outputCollections.call(void 0, data).map(
|
|
13352
13179
|
(collection) => _nullishCoalesce(byRows.get(collection.rows), () => ( collection))
|
|
13353
13180
|
);
|
|
13354
|
-
|
|
13181
|
+
_chunkKCKAFTPYjs.writeExecutionOutput.call(void 0,
|
|
13355
13182
|
{
|
|
13356
13183
|
id: status.runId,
|
|
13357
13184
|
status: status.status,
|
|
@@ -13360,7 +13187,7 @@ async function writePlayRunReceipt(client, status, output) {
|
|
|
13360
13187
|
complete: allCollections.every((c) => c.complete === true) ? true : allCollections.some((c) => c.complete === false) ? false : null,
|
|
13361
13188
|
error,
|
|
13362
13189
|
credits: _nullishCoalesce(_nullishCoalesce(status.billingTotalCreditsRollup, () => ( _optionalChain([status, 'access', _527 => _527.billing, 'optionalAccess', _528 => _528.totalCredits]))), () => ( null)),
|
|
13363
|
-
...playName ? { page:
|
|
13190
|
+
...playName ? { page: _chunkNTLBZUHDjs.buildPlayRunUrl.call(void 0, client.baseUrl, playName, status.runId) } : {},
|
|
13364
13191
|
warnings: [
|
|
13365
13192
|
...buildRunWarnings(status, null),
|
|
13366
13193
|
...status.status === "completed" && collections.length && collections.every((collection) => collection.rows.length === 0) ? ["Run completed with 0 output rows."] : []
|
|
@@ -13372,7 +13199,7 @@ async function writePlayRunReceipt(client, status, output) {
|
|
|
13372
13199
|
}
|
|
13373
13200
|
var TOOL_EXECUTION_ID = /^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i;
|
|
13374
13201
|
async function handlePlayRun(args, hooks) {
|
|
13375
|
-
const parsedOptions = Array.isArray(args) ?
|
|
13202
|
+
const parsedOptions = Array.isArray(args) ? _chunkUSTJEENDjs.parsePlayRunOptions.call(void 0, args) : args;
|
|
13376
13203
|
const options = parsedOptions.runIdFile ? {
|
|
13377
13204
|
...parsedOptions,
|
|
13378
13205
|
runIdFile: parsedOptions.dryRun ? _path.resolve.call(void 0, parsedOptions.runIdFile) : await preflightRunIdFile(parsedOptions.runIdFile)
|
|
@@ -13389,7 +13216,7 @@ async function handlePlayRun(args, hooks) {
|
|
|
13389
13216
|
JSON.stringify({
|
|
13390
13217
|
version: 1,
|
|
13391
13218
|
admissionState: "submitted_unknown",
|
|
13392
|
-
baseUrl: new (0,
|
|
13219
|
+
baseUrl: new (0, _chunkSMSQVRHEjs.DeeplineClient)().baseUrl,
|
|
13393
13220
|
...intent
|
|
13394
13221
|
})
|
|
13395
13222
|
);
|
|
@@ -13623,7 +13450,7 @@ function renderRunOverviewText(overview, extras = {}) {
|
|
|
13623
13450
|
);
|
|
13624
13451
|
return `${lines.join("\n")}
|
|
13625
13452
|
|
|
13626
|
-
${
|
|
13453
|
+
${_chunkQKKU2FH4js.renderCommandEnvelopeText.call(void 0, { render: { sections, actions: actions2 } })}`;
|
|
13627
13454
|
}
|
|
13628
13455
|
var RUN_READ_TIMING_PROGRESS_INTERVAL_MS = 15e3;
|
|
13629
13456
|
async function withRunReadTiming(command, stage, enabled, action) {
|
|
@@ -13647,7 +13474,7 @@ async function withRunReadTiming(command, stage, enabled, action) {
|
|
|
13647
13474
|
}
|
|
13648
13475
|
}
|
|
13649
13476
|
async function handleRunGet(args) {
|
|
13650
|
-
const selection =
|
|
13477
|
+
const selection = _chunkQKKU2FH4js.parseJsonFields.call(void 0,
|
|
13651
13478
|
args,
|
|
13652
13479
|
args.includes("--config") ? "config" : "get"
|
|
13653
13480
|
);
|
|
@@ -13660,7 +13487,7 @@ async function handleRunGet(args) {
|
|
|
13660
13487
|
console.error(error instanceof Error ? error.message : usage2);
|
|
13661
13488
|
return 1;
|
|
13662
13489
|
}
|
|
13663
|
-
const client = new (0,
|
|
13490
|
+
const client = new (0, _chunkSMSQVRHEjs.DeeplineClient)();
|
|
13664
13491
|
const timing = args.includes("--timing");
|
|
13665
13492
|
const web = args.includes("--web");
|
|
13666
13493
|
if (web || args.includes("--web-url")) {
|
|
@@ -13675,11 +13502,11 @@ async function handleRunGet(args) {
|
|
|
13675
13502
|
console.error(`Run ${runId} does not name its play; no run page URL.`);
|
|
13676
13503
|
return 1;
|
|
13677
13504
|
}
|
|
13678
|
-
const dashboardUrl2 =
|
|
13679
|
-
const runUrl2 =
|
|
13505
|
+
const dashboardUrl2 = _chunkNTLBZUHDjs.buildPlayDashboardUrl.call(void 0, client.baseUrl, playName2);
|
|
13506
|
+
const runUrl2 = _chunkNTLBZUHDjs.buildPlayRunUrl.call(void 0, client.baseUrl, playName2, runId);
|
|
13680
13507
|
if (web) {
|
|
13681
|
-
const opened =
|
|
13682
|
-
|
|
13508
|
+
const opened = _chunkQKKU2FH4js.openInBrowser.call(void 0, runUrl2);
|
|
13509
|
+
_chunkQKKU2FH4js.printCommandEnvelope.call(void 0,
|
|
13683
13510
|
{ dashboardUrl: dashboardUrl2, runUrl: runUrl2, opened: opened === "opened" },
|
|
13684
13511
|
{
|
|
13685
13512
|
json: args.includes("--json"),
|
|
@@ -13690,7 +13517,7 @@ async function handleRunGet(args) {
|
|
|
13690
13517
|
);
|
|
13691
13518
|
return 0;
|
|
13692
13519
|
}
|
|
13693
|
-
|
|
13520
|
+
_chunkQKKU2FH4js.printCommandEnvelope.call(void 0,
|
|
13694
13521
|
{ dashboardUrl: dashboardUrl2, runUrl: runUrl2 },
|
|
13695
13522
|
{ json: args.includes("--json"), text: `${runUrl2}
|
|
13696
13523
|
` }
|
|
@@ -13715,7 +13542,7 @@ async function handleRunGet(args) {
|
|
|
13715
13542
|
"This server does not support recorded configuration reads."
|
|
13716
13543
|
);
|
|
13717
13544
|
}
|
|
13718
|
-
|
|
13545
|
+
_chunkQKKU2FH4js.printCommandEnvelope.call(void 0,
|
|
13719
13546
|
{ runId, contract: _nullishCoalesce(status2.contract, () => ( null)) },
|
|
13720
13547
|
{ json: true, fields: selection.fields }
|
|
13721
13548
|
);
|
|
@@ -13728,7 +13555,7 @@ async function handleRunGet(args) {
|
|
|
13728
13555
|
timing,
|
|
13729
13556
|
() => client.getRunInput(runId)
|
|
13730
13557
|
);
|
|
13731
|
-
|
|
13558
|
+
_chunkQKKU2FH4js.printCommandEnvelope.call(void 0, input, { json: true });
|
|
13732
13559
|
return 0;
|
|
13733
13560
|
}
|
|
13734
13561
|
const full = args.includes("--full");
|
|
@@ -13741,7 +13568,7 @@ async function handleRunGet(args) {
|
|
|
13741
13568
|
failedLogs: args.includes("--log-failed")
|
|
13742
13569
|
})
|
|
13743
13570
|
);
|
|
13744
|
-
if (status.package)
|
|
13571
|
+
if (status.package) _chunkKCKAFTPYjs.recordPlayTermination.call(void 0, buildRunOverview(status).run);
|
|
13745
13572
|
if (!status.package) {
|
|
13746
13573
|
const legacyStatus = full ? await withRunReadTiming(
|
|
13747
13574
|
"runs get",
|
|
@@ -13753,10 +13580,10 @@ async function handleRunGet(args) {
|
|
|
13753
13580
|
})
|
|
13754
13581
|
) : status;
|
|
13755
13582
|
const legacyPlayName = resolveRunPlayName(legacyStatus, runId);
|
|
13756
|
-
const legacyDashboardUrl = legacyPlayName ?
|
|
13757
|
-
const legacyRunUrl = legacyPlayName ?
|
|
13758
|
-
if (
|
|
13759
|
-
|
|
13583
|
+
const legacyDashboardUrl = legacyPlayName ? _chunkNTLBZUHDjs.buildPlayDashboardUrl.call(void 0, client.baseUrl, legacyPlayName) : null;
|
|
13584
|
+
const legacyRunUrl = legacyPlayName ? _chunkNTLBZUHDjs.buildPlayRunUrl.call(void 0, client.baseUrl, legacyPlayName, runId) : null;
|
|
13585
|
+
if (_chunkQKKU2FH4js.argsWantJson.call(void 0, args)) {
|
|
13586
|
+
_chunkQKKU2FH4js.printCommandEnvelope.call(void 0,
|
|
13760
13587
|
{
|
|
13761
13588
|
...full ? legacyStatus : compactPlayStatus(legacyStatus),
|
|
13762
13589
|
...legacyDashboardUrl ? { dashboardUrl: legacyDashboardUrl } : {},
|
|
@@ -13767,7 +13594,7 @@ async function handleRunGet(args) {
|
|
|
13767
13594
|
} else {
|
|
13768
13595
|
writePlayResult(legacyStatus, false, { fullJson: full });
|
|
13769
13596
|
if (legacyRunUrl)
|
|
13770
|
-
|
|
13597
|
+
_chunkQKKU2FH4js.printCommandEnvelope.call(void 0,
|
|
13771
13598
|
{ dashboardUrl: legacyDashboardUrl, runUrl: legacyRunUrl },
|
|
13772
13599
|
{ json: false, text: `run page: ${legacyRunUrl}
|
|
13773
13600
|
` }
|
|
@@ -13797,11 +13624,11 @@ async function handleRunGet(args) {
|
|
|
13797
13624
|
)
|
|
13798
13625
|
]);
|
|
13799
13626
|
const hitLines = formatRunHitsLines(hits);
|
|
13800
|
-
const json =
|
|
13627
|
+
const json = _chunkQKKU2FH4js.argsWantJson.call(void 0, args);
|
|
13801
13628
|
const playName = resolveRunPlayName(status, runId);
|
|
13802
|
-
const dashboardUrl = playName ?
|
|
13803
|
-
const runUrl = playName ?
|
|
13804
|
-
|
|
13629
|
+
const dashboardUrl = playName ? _chunkNTLBZUHDjs.buildPlayDashboardUrl.call(void 0, client.baseUrl, playName) : void 0;
|
|
13630
|
+
const runUrl = playName ? _chunkNTLBZUHDjs.buildPlayRunUrl.call(void 0, client.baseUrl, playName, runId) : void 0;
|
|
13631
|
+
_chunkQKKU2FH4js.printCommandEnvelope.call(void 0,
|
|
13805
13632
|
{
|
|
13806
13633
|
...overview,
|
|
13807
13634
|
...dashboardUrl ? { dashboardUrl } : {},
|
|
@@ -13906,9 +13733,9 @@ async function handleRunLifecycleStatus(args) {
|
|
|
13906
13733
|
console.error(error instanceof Error ? error.message : usage2);
|
|
13907
13734
|
return 1;
|
|
13908
13735
|
}
|
|
13909
|
-
const status = await new (0,
|
|
13910
|
-
if (
|
|
13911
|
-
|
|
13736
|
+
const status = await new (0, _chunkSMSQVRHEjs.DeeplineClient)().runs.status(runId);
|
|
13737
|
+
if (_chunkQKKU2FH4js.argsWantJson.call(void 0, args)) {
|
|
13738
|
+
_chunkQKKU2FH4js.printCommandEnvelope.call(void 0, status, { json: true });
|
|
13912
13739
|
return 0;
|
|
13913
13740
|
}
|
|
13914
13741
|
if (!status.available) {
|
|
@@ -13939,6 +13766,9 @@ async function handleRunLifecycleStatus(args) {
|
|
|
13939
13766
|
}
|
|
13940
13767
|
return 0;
|
|
13941
13768
|
}
|
|
13769
|
+
function runsRerunRenameNotice(runId) {
|
|
13770
|
+
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}.`;
|
|
13771
|
+
}
|
|
13942
13772
|
async function handleRunsRerun(args) {
|
|
13943
13773
|
const usage2 = "Usage: deepline runs rerun <run-id> [--idempotency-key <key>] [--input-overrides <json>] [--json]";
|
|
13944
13774
|
let runId;
|
|
@@ -13948,7 +13778,7 @@ async function handleRunsRerun(args) {
|
|
|
13948
13778
|
console.error(error instanceof Error ? error.message : usage2);
|
|
13949
13779
|
return 1;
|
|
13950
13780
|
}
|
|
13951
|
-
const options = { json:
|
|
13781
|
+
const options = { json: _chunkQKKU2FH4js.argsWantJson.call(void 0, args) };
|
|
13952
13782
|
for (let index = 0; index < args.length; index += 1) {
|
|
13953
13783
|
if (args[index] === "--idempotency-key") {
|
|
13954
13784
|
options.idempotencyKey = _nullishCoalesce(args[++index], () => ( ""));
|
|
@@ -14014,8 +13844,8 @@ ${usage2}
|
|
|
14014
13844
|
Discover Plays: ${next.discover}
|
|
14015
13845
|
Active runs: ${next.running}`
|
|
14016
13846
|
);
|
|
14017
|
-
if (
|
|
14018
|
-
|
|
13847
|
+
if (_chunkQKKU2FH4js.argsWantJson.call(void 0, args)) {
|
|
13848
|
+
_chunkQKKU2FH4js.printCommandEnvelope.call(void 0,
|
|
14019
13849
|
{ ok: false, exitCode: 1, code: "RUN_FILTER_REQUIRED", message, next },
|
|
14020
13850
|
{ json: true }
|
|
14021
13851
|
);
|
|
@@ -14030,7 +13860,7 @@ Active runs: ${next.running}`
|
|
|
14030
13860
|
console.error("--offset requires --play.");
|
|
14031
13861
|
return 1;
|
|
14032
13862
|
}
|
|
14033
|
-
const client = new (0,
|
|
13863
|
+
const client = new (0, _chunkSMSQVRHEjs.DeeplineClient)();
|
|
14034
13864
|
const page = await withRunReadTiming(
|
|
14035
13865
|
"runs list",
|
|
14036
13866
|
"run inventory",
|
|
@@ -14097,14 +13927,14 @@ Active runs: ${next.running}`
|
|
|
14097
13927
|
return lines2.join("\n");
|
|
14098
13928
|
});
|
|
14099
13929
|
const nextOffset = (_nullishCoalesce(_nullishCoalesce(page.offset, () => ( offset)), () => ( 0))) + runs.length;
|
|
14100
|
-
const nextPage = page.hasMore && playName ? `deepline runs list --play ${_chunkAID3OYVJjs.shellQuote.call(void 0, playName)}${nodeId ? ` --node ${_chunkAID3OYVJjs.shellQuote.call(void 0, nodeId)}` : ""}${statusFilter ? ` --status ${_chunkAID3OYVJjs.shellQuote.call(void 0, statusFilter)}` : ""} --limit ${_nullishCoalesce(_nullishCoalesce(page.limit, () => ( limit)), () => ( 20))} --offset ${nextOffset}${
|
|
13930
|
+
const nextPage = page.hasMore && playName ? `deepline runs list --play ${_chunkAID3OYVJjs.shellQuote.call(void 0, playName)}${nodeId ? ` --node ${_chunkAID3OYVJjs.shellQuote.call(void 0, nodeId)}` : ""}${statusFilter ? ` --status ${_chunkAID3OYVJjs.shellQuote.call(void 0, statusFilter)}` : ""} --limit ${_nullishCoalesce(_nullishCoalesce(page.limit, () => ( limit)), () => ( 20))} --offset ${nextOffset}${_chunkQKKU2FH4js.argsWantJson.call(void 0, args) ? " --json" : ""}` : null;
|
|
14101
13931
|
if (page.hasMore) {
|
|
14102
13932
|
lines.push("List truncated \u2014 more runs match this filter.");
|
|
14103
13933
|
lines.push(
|
|
14104
13934
|
nextPage ? `Next page: ${nextPage}` : "Narrow with --play <play-name> to page through runs."
|
|
14105
13935
|
);
|
|
14106
13936
|
}
|
|
14107
|
-
|
|
13937
|
+
_chunkQKKU2FH4js.printCommandEnvelope.call(void 0,
|
|
14108
13938
|
{
|
|
14109
13939
|
runs,
|
|
14110
13940
|
count: runs.length,
|
|
@@ -14118,7 +13948,7 @@ Active runs: ${next.running}`
|
|
|
14118
13948
|
},
|
|
14119
13949
|
render: { sections: [{ title: "runs", lines }] }
|
|
14120
13950
|
},
|
|
14121
|
-
{ json:
|
|
13951
|
+
{ json: _chunkQKKU2FH4js.argsWantJson.call(void 0, args) }
|
|
14122
13952
|
);
|
|
14123
13953
|
return 0;
|
|
14124
13954
|
}
|
|
@@ -14148,7 +13978,7 @@ async function handleRunTail(args) {
|
|
|
14148
13978
|
console.error("--log-level requires one of: debug, info, warn, error.");
|
|
14149
13979
|
return 1;
|
|
14150
13980
|
}
|
|
14151
|
-
const parsed =
|
|
13981
|
+
const parsed = _chunk7P2QVMBPjs.parseLogLevel.call(void 0, value);
|
|
14152
13982
|
if (!parsed) {
|
|
14153
13983
|
console.error(
|
|
14154
13984
|
`Unsupported --log-level ${JSON.stringify(value)}. Use debug, info, warn, or error.`
|
|
@@ -14186,9 +14016,9 @@ async function handleRunTail(args) {
|
|
|
14186
14016
|
);
|
|
14187
14017
|
return 1;
|
|
14188
14018
|
}
|
|
14189
|
-
const client = new (0,
|
|
14019
|
+
const client = new (0, _chunkSMSQVRHEjs.DeeplineClient)();
|
|
14190
14020
|
const jsonLines = args.includes("--jsonl");
|
|
14191
|
-
const jsonOutput = !jsonLines &&
|
|
14021
|
+
const jsonOutput = !jsonLines && _chunkQKKU2FH4js.argsWantJson.call(void 0, args);
|
|
14192
14022
|
const compact = args.includes("--compact");
|
|
14193
14023
|
const showLiveLogs = debug || hasExplicitLogLevel || !jsonOutput && !compact;
|
|
14194
14024
|
const compactState = {
|
|
@@ -14269,7 +14099,7 @@ async function handleRunLogs(args) {
|
|
|
14269
14099
|
]);
|
|
14270
14100
|
const cursorIndex = args.indexOf("--cursor");
|
|
14271
14101
|
const cursorValue = cursorIndex >= 0 ? args[cursorIndex + 1] : void 0;
|
|
14272
|
-
const continuesEventSearch = cursorIndex >= 0 && !(cursorValue &&
|
|
14102
|
+
const continuesEventSearch = cursorIndex >= 0 && !(cursorValue && _chunk7P2QVMBPjs.isRunLogsCursor.call(void 0, cursorValue));
|
|
14273
14103
|
if (!args[0] || args[0].startsWith("--") || continuesEventSearch || args.some((arg) => searchFlags.has(arg))) {
|
|
14274
14104
|
return handleRunEventSearch(args);
|
|
14275
14105
|
}
|
|
@@ -14303,7 +14133,7 @@ async function handleRunLogs(args) {
|
|
|
14303
14133
|
console.error("--log-level requires one of: debug, info, warn, error.");
|
|
14304
14134
|
return 1;
|
|
14305
14135
|
}
|
|
14306
|
-
const parsed =
|
|
14136
|
+
const parsed = _chunk7P2QVMBPjs.parseLogLevel.call(void 0, value);
|
|
14307
14137
|
if (!parsed) {
|
|
14308
14138
|
console.error(
|
|
14309
14139
|
`Unsupported --log-level ${JSON.stringify(value)}. Use debug, info, warn, or error.`
|
|
@@ -14350,12 +14180,12 @@ async function handleRunLogs(args) {
|
|
|
14350
14180
|
);
|
|
14351
14181
|
return 1;
|
|
14352
14182
|
}
|
|
14353
|
-
const client = new (0,
|
|
14183
|
+
const client = new (0, _chunkSMSQVRHEjs.DeeplineClient)();
|
|
14354
14184
|
if (outPath) {
|
|
14355
14185
|
const result2 = await client.runs.logs(runId, { all: true });
|
|
14356
|
-
const logs = result2.entries.filter((line) =>
|
|
14186
|
+
const logs = result2.entries.filter((line) => _chunk7P2QVMBPjs.logLevelReaches.call(void 0, _chunk7P2QVMBPjs.classifyLogLine.call(void 0, line).level, logLevel)).map((line) => _chunk7P2QVMBPjs.classifyLogLine.call(void 0, line).line);
|
|
14357
14187
|
_fs.writeFileSync.call(void 0, outPath, `${logs.join("\n")}${logs.length > 0 ? "\n" : ""}`);
|
|
14358
|
-
|
|
14188
|
+
_chunkQKKU2FH4js.printCommandEnvelope.call(void 0,
|
|
14359
14189
|
{
|
|
14360
14190
|
runId: result2.runId,
|
|
14361
14191
|
log_path: outPath,
|
|
@@ -14378,7 +14208,7 @@ async function handleRunLogs(args) {
|
|
|
14378
14208
|
]
|
|
14379
14209
|
}
|
|
14380
14210
|
},
|
|
14381
|
-
{ json:
|
|
14211
|
+
{ json: _chunkQKKU2FH4js.argsWantJson.call(void 0, args) }
|
|
14382
14212
|
);
|
|
14383
14213
|
return 0;
|
|
14384
14214
|
}
|
|
@@ -14409,7 +14239,7 @@ async function handleRunLogs(args) {
|
|
|
14409
14239
|
}
|
|
14410
14240
|
};
|
|
14411
14241
|
const text = buildRunLogsText(filteredResult);
|
|
14412
|
-
|
|
14242
|
+
_chunkQKKU2FH4js.printCommandEnvelope.call(void 0,
|
|
14413
14243
|
{
|
|
14414
14244
|
runId: result.runId,
|
|
14415
14245
|
totalCount: result.totalCount,
|
|
@@ -14433,7 +14263,7 @@ async function handleRunLogs(args) {
|
|
|
14433
14263
|
render: { sections: [{ title: "run logs", lines: entries }] }
|
|
14434
14264
|
},
|
|
14435
14265
|
{
|
|
14436
|
-
json:
|
|
14266
|
+
json: _chunkQKKU2FH4js.argsWantJson.call(void 0, args),
|
|
14437
14267
|
text
|
|
14438
14268
|
}
|
|
14439
14269
|
);
|
|
@@ -14457,7 +14287,7 @@ function selectRunLogTailPage(result, logLevel, limit) {
|
|
|
14457
14287
|
);
|
|
14458
14288
|
}
|
|
14459
14289
|
const matching = result.entries.map((line, index) => ({ line, seq: first + index })).filter(
|
|
14460
|
-
(entry) =>
|
|
14290
|
+
(entry) => _chunk7P2QVMBPjs.logLevelReaches.call(void 0, _chunk7P2QVMBPjs.classifyLogLine.call(void 0, entry.line).level, logLevel)
|
|
14461
14291
|
);
|
|
14462
14292
|
const selected = matching.slice(-limit);
|
|
14463
14293
|
const olderMatchesExist = matching.length > selected.length;
|
|
@@ -14467,7 +14297,7 @@ function selectRunLogTailPage(result, logLevel, limit) {
|
|
|
14467
14297
|
lastSequence: _nullishCoalesce(_optionalChain([selected, 'access', _553 => _553.at, 'call', _554 => _554(-1), 'optionalAccess', _555 => _555.seq]), () => ( null)),
|
|
14468
14298
|
truncated: result.truncated || olderMatchesExist,
|
|
14469
14299
|
hasMore: olderMatchesExist,
|
|
14470
|
-
nextCursor: olderMatchesExist ?
|
|
14300
|
+
nextCursor: olderMatchesExist ? _chunk7P2QVMBPjs.encodeRunLogsCursor.call(void 0, selected[0].seq) : null
|
|
14471
14301
|
};
|
|
14472
14302
|
}
|
|
14473
14303
|
async function handleRunEventSearch(args) {
|
|
@@ -14534,7 +14364,7 @@ ${usage2}`);
|
|
|
14534
14364
|
namespace,
|
|
14535
14365
|
...backend ? { backend } : {}
|
|
14536
14366
|
} : void 0;
|
|
14537
|
-
const client = new (0,
|
|
14367
|
+
const client = new (0, _chunkSMSQVRHEjs.DeeplineClient)();
|
|
14538
14368
|
const result = await client.runs.searchEvents({
|
|
14539
14369
|
...runId ? { runId } : {},
|
|
14540
14370
|
...values["--since"] ? { since: values["--since"] } : {},
|
|
@@ -14606,7 +14436,7 @@ ${renderedDetails}` : ""}`;
|
|
|
14606
14436
|
"--limit",
|
|
14607
14437
|
String(limit)
|
|
14608
14438
|
].join(" ") : null;
|
|
14609
|
-
|
|
14439
|
+
_chunkQKKU2FH4js.printCommandEnvelope.call(void 0,
|
|
14610
14440
|
{
|
|
14611
14441
|
events,
|
|
14612
14442
|
nextCursor: result.nextCursor,
|
|
@@ -14617,14 +14447,14 @@ ${renderedDetails}` : ""}`;
|
|
|
14617
14447
|
render: { sections: [{ title: "runtime events", lines }] }
|
|
14618
14448
|
},
|
|
14619
14449
|
{
|
|
14620
|
-
json:
|
|
14450
|
+
json: _chunkQKKU2FH4js.argsWantJson.call(void 0, args),
|
|
14621
14451
|
text: `${lines.join("\n")}${lines.length ? "\n" : ""}`
|
|
14622
14452
|
}
|
|
14623
14453
|
);
|
|
14624
14454
|
return 0;
|
|
14625
14455
|
}
|
|
14626
14456
|
function buildRunLogsText(result) {
|
|
14627
|
-
const lines = result.entries.map((line) =>
|
|
14457
|
+
const lines = result.entries.map((line) => _chunk7P2QVMBPjs.classifyLogLine.call(void 0, line).line);
|
|
14628
14458
|
if (result.warning) {
|
|
14629
14459
|
if (lines.length > 0) lines.push("");
|
|
14630
14460
|
lines.push(`warning: ${result.warning}`);
|
|
@@ -14658,7 +14488,7 @@ async function handleRunStop(args) {
|
|
|
14658
14488
|
reason = args[++index];
|
|
14659
14489
|
}
|
|
14660
14490
|
}
|
|
14661
|
-
const client = new (0,
|
|
14491
|
+
const client = new (0, _chunkSMSQVRHEjs.DeeplineClient)();
|
|
14662
14492
|
const result = await client.runs.stop(runId, { reason });
|
|
14663
14493
|
const state = resolveRunStopState(result);
|
|
14664
14494
|
const hitlCleanupIncomplete = state === "cancelling" && result.hitlCancellationPending === true;
|
|
@@ -14673,7 +14503,7 @@ async function handleRunStop(args) {
|
|
|
14673
14503
|
...result.hitlCancelledCount > 0 ? [`cancelled HITL waits: ${result.hitlCancelledCount}`] : [],
|
|
14674
14504
|
`inspect: deepline runs get ${runId} --full`
|
|
14675
14505
|
];
|
|
14676
|
-
|
|
14506
|
+
_chunkQKKU2FH4js.printCommandEnvelope.call(void 0,
|
|
14677
14507
|
{
|
|
14678
14508
|
...cancelling,
|
|
14679
14509
|
state,
|
|
@@ -14688,7 +14518,7 @@ async function handleRunStop(args) {
|
|
|
14688
14518
|
]
|
|
14689
14519
|
}
|
|
14690
14520
|
},
|
|
14691
|
-
{ json:
|
|
14521
|
+
{ json: _chunkQKKU2FH4js.argsWantJson.call(void 0, args) }
|
|
14692
14522
|
);
|
|
14693
14523
|
return 0;
|
|
14694
14524
|
}
|
|
@@ -14705,7 +14535,7 @@ async function handleRunStop(args) {
|
|
|
14705
14535
|
];
|
|
14706
14536
|
process.stderr.write(`${lines2.join("\n")}
|
|
14707
14537
|
`);
|
|
14708
|
-
|
|
14538
|
+
_chunkQKKU2FH4js.printCommandEnvelope.call(void 0,
|
|
14709
14539
|
{
|
|
14710
14540
|
...result,
|
|
14711
14541
|
render: {
|
|
@@ -14720,7 +14550,7 @@ async function handleRunStop(args) {
|
|
|
14720
14550
|
]
|
|
14721
14551
|
}
|
|
14722
14552
|
},
|
|
14723
|
-
{ json:
|
|
14553
|
+
{ json: _chunkQKKU2FH4js.argsWantJson.call(void 0, args) }
|
|
14724
14554
|
);
|
|
14725
14555
|
return 1;
|
|
14726
14556
|
}
|
|
@@ -14731,12 +14561,12 @@ async function handleRunStop(args) {
|
|
|
14731
14561
|
`warning: HITL cancellation or Slack card refresh is still pending; retry 'deepline runs stop ${runId}'`
|
|
14732
14562
|
] : []
|
|
14733
14563
|
];
|
|
14734
|
-
|
|
14564
|
+
_chunkQKKU2FH4js.printCommandEnvelope.call(void 0,
|
|
14735
14565
|
{
|
|
14736
14566
|
...result,
|
|
14737
14567
|
render: { sections: [{ title: "run stop", lines }] }
|
|
14738
14568
|
},
|
|
14739
|
-
{ json:
|
|
14569
|
+
{ json: _chunkQKKU2FH4js.argsWantJson.call(void 0, args) }
|
|
14740
14570
|
);
|
|
14741
14571
|
return 0;
|
|
14742
14572
|
}
|
|
@@ -14786,18 +14616,18 @@ async function handleRunStopAll(args) {
|
|
|
14786
14616
|
reason = args[++index];
|
|
14787
14617
|
}
|
|
14788
14618
|
}
|
|
14789
|
-
const client = new (0,
|
|
14619
|
+
const client = new (0, _chunkSMSQVRHEjs.DeeplineClient)();
|
|
14790
14620
|
if (dryRun) {
|
|
14791
14621
|
const result2 = await client.runs.stopAll({ dryRun: true, reason });
|
|
14792
14622
|
const lines2 = buildStopAllDryRunTextLines(result2);
|
|
14793
|
-
|
|
14623
|
+
_chunkQKKU2FH4js.printCommandEnvelope.call(void 0,
|
|
14794
14624
|
{
|
|
14795
14625
|
...result2,
|
|
14796
14626
|
render: {
|
|
14797
14627
|
sections: [{ title: "workspace stop-all (dry run)", lines: lines2 }]
|
|
14798
14628
|
}
|
|
14799
14629
|
},
|
|
14800
|
-
{ json:
|
|
14630
|
+
{ json: _chunkQKKU2FH4js.argsWantJson.call(void 0, args), text: `${lines2.join("\n")}
|
|
14801
14631
|
` }
|
|
14802
14632
|
);
|
|
14803
14633
|
return 0;
|
|
@@ -14810,17 +14640,17 @@ async function handleRunStopAll(args) {
|
|
|
14810
14640
|
...result.failed > 0 ? [`failed stops: ${result.failed}`] : [],
|
|
14811
14641
|
...result.skipped > 0 ? [`skipped: ${result.skipped}`] : []
|
|
14812
14642
|
];
|
|
14813
|
-
|
|
14643
|
+
_chunkQKKU2FH4js.printCommandEnvelope.call(void 0,
|
|
14814
14644
|
{
|
|
14815
14645
|
...result,
|
|
14816
14646
|
render: { sections: [{ title: "workspace stop-all", lines }] }
|
|
14817
14647
|
},
|
|
14818
|
-
{ json:
|
|
14648
|
+
{ json: _chunkQKKU2FH4js.argsWantJson.call(void 0, args) }
|
|
14819
14649
|
);
|
|
14820
14650
|
return result.failed > 0 || result.partial ? 1 : 0;
|
|
14821
14651
|
}
|
|
14822
14652
|
async function handleRunExport(args) {
|
|
14823
|
-
const selection =
|
|
14653
|
+
const selection = _chunkQKKU2FH4js.parseJsonFields.call(void 0, args, "export");
|
|
14824
14654
|
args = selection.args;
|
|
14825
14655
|
const usage2 = "Usage: deepline runs export <run-id> [--dataset result.rows] --out <path> [--format csv|json] [--summary full|counts] [--wait] [--timeout-ms 300000] [--metadata-out export.json] [--allow-empty] [--json]";
|
|
14826
14656
|
let runId;
|
|
@@ -14891,17 +14721,17 @@ async function handleRunExport(args) {
|
|
|
14891
14721
|
"INVALID_ARGUMENT"
|
|
14892
14722
|
);
|
|
14893
14723
|
}
|
|
14894
|
-
const client = new (0,
|
|
14724
|
+
const client = new (0, _chunkSMSQVRHEjs.DeeplineClient)();
|
|
14895
14725
|
let status = await client.getPlayStatus(runId, { full: true });
|
|
14896
14726
|
assertRunExportStatusIdentity(status, runId);
|
|
14897
14727
|
if (wait && !TERMINAL_PLAY_STATUSES.has(status.status)) {
|
|
14898
|
-
const progress =
|
|
14728
|
+
const progress = _chunkMJTK6Q3Gjs.createCliProgress.call(void 0, !_chunkQKKU2FH4js.argsWantJson.call(void 0, args));
|
|
14899
14729
|
try {
|
|
14900
14730
|
await waitForPlayCompletionByWatch({
|
|
14901
14731
|
client,
|
|
14902
14732
|
playName: _nullishCoalesce(extractRunPlayName(status), () => ( runId)),
|
|
14903
14733
|
workflowId: runId,
|
|
14904
|
-
jsonOutput:
|
|
14734
|
+
jsonOutput: _chunkQKKU2FH4js.argsWantJson.call(void 0, args),
|
|
14905
14735
|
emitLogs: false,
|
|
14906
14736
|
waitTimeoutMs,
|
|
14907
14737
|
startedAt: Date.now(),
|
|
@@ -14969,7 +14799,7 @@ async function handleRunExport(args) {
|
|
|
14969
14799
|
rowCount: _nullishCoalesce(_optionalChain([exportResult, 'optionalAccess', _569 => _569.rowsInfo, 'access', _570 => _570.totalRows]), () => ( null)),
|
|
14970
14800
|
...exportedRowOutcomes ? { rowOutcomes: exportedRowOutcomes } : {},
|
|
14971
14801
|
...rowFailures ? { rowFailures } : {},
|
|
14972
|
-
columns:
|
|
14802
|
+
columns: _chunkKCKAFTPYjs.underscoreKeysLast.call(void 0, _nullishCoalesce(_optionalChain([exportResult, 'optionalAccess', _571 => _571.rowsInfo, 'access', _572 => _572.columns]), () => ( []))),
|
|
14973
14803
|
...currentTableNotice ? { notice: currentTableNotice } : {},
|
|
14974
14804
|
...metadataOutPath ? { metadata_path: metadataOutPath } : {},
|
|
14975
14805
|
...!TERMINAL_PLAY_STATUSES.has(status.status) ? { completionCommand: `${exportCommand} --wait` } : {}
|
|
@@ -15003,8 +14833,8 @@ async function handleRunExport(args) {
|
|
|
15003
14833
|
"utf-8"
|
|
15004
14834
|
);
|
|
15005
14835
|
}
|
|
15006
|
-
|
|
15007
|
-
json:
|
|
14836
|
+
_chunkQKKU2FH4js.printCommandEnvelope.call(void 0, payload, {
|
|
14837
|
+
json: _chunkQKKU2FH4js.argsWantJson.call(void 0, args),
|
|
15008
14838
|
fields: selection.fields,
|
|
15009
14839
|
text: `${lines.join("\n")}
|
|
15010
14840
|
`
|
|
@@ -15038,10 +14868,10 @@ async function handlePlayGet(args) {
|
|
|
15038
14868
|
);
|
|
15039
14869
|
return 2;
|
|
15040
14870
|
}
|
|
15041
|
-
const client = new (0,
|
|
14871
|
+
const client = new (0, _chunkSMSQVRHEjs.DeeplineClient)();
|
|
15042
14872
|
const explicitJson = args.includes("--json");
|
|
15043
14873
|
const sourceOutput = args.includes("--source");
|
|
15044
|
-
const jsonOutput = sourceOutput ? explicitJson :
|
|
14874
|
+
const jsonOutput = sourceOutput ? explicitJson : _chunkQKKU2FH4js.argsWantJson.call(void 0, args);
|
|
15045
14875
|
const requestedRevisionFlags = [
|
|
15046
14876
|
args.includes("--working"),
|
|
15047
14877
|
args.includes("--live"),
|
|
@@ -15104,7 +14934,7 @@ async function handlePlayGet(args) {
|
|
|
15104
14934
|
}
|
|
15105
14935
|
const loadedMessage = materializedFile ? formatLoadedPlayMessage(materializedFile) : null;
|
|
15106
14936
|
if (jsonOutput) {
|
|
15107
|
-
|
|
14937
|
+
_chunkQKKU2FH4js.printCompactJson.call(void 0, {
|
|
15108
14938
|
...detail,
|
|
15109
14939
|
...materializedFile ? {
|
|
15110
14940
|
message: loadedMessage,
|
|
@@ -15196,8 +15026,8 @@ async function handlePlayVersions(args) {
|
|
|
15196
15026
|
console.error("Usage: deepline plays versions --name <name> [--json]");
|
|
15197
15027
|
return 1;
|
|
15198
15028
|
}
|
|
15199
|
-
const client = new (0,
|
|
15200
|
-
const jsonOutput =
|
|
15029
|
+
const client = new (0, _chunkSMSQVRHEjs.DeeplineClient)();
|
|
15030
|
+
const jsonOutput = _chunkQKKU2FH4js.argsWantJson.call(void 0, args);
|
|
15201
15031
|
await assertCanonicalNamedPlayReference(client, playName, {
|
|
15202
15032
|
command: "versions"
|
|
15203
15033
|
});
|
|
@@ -15205,7 +15035,7 @@ async function handlePlayVersions(args) {
|
|
|
15205
15035
|
parseReferencedPlayTarget(playName).playName
|
|
15206
15036
|
);
|
|
15207
15037
|
if (jsonOutput) {
|
|
15208
|
-
|
|
15038
|
+
_chunkQKKU2FH4js.printCompactJson.call(void 0, { versions });
|
|
15209
15039
|
return 0;
|
|
15210
15040
|
}
|
|
15211
15041
|
if (versions.length === 0) {
|
|
@@ -15248,8 +15078,8 @@ async function handlePlayCost(args) {
|
|
|
15248
15078
|
console.error("Usage: deepline plays cost <play> [--json]");
|
|
15249
15079
|
return 2;
|
|
15250
15080
|
}
|
|
15251
|
-
const result = await new (0,
|
|
15252
|
-
if (
|
|
15081
|
+
const result = await new (0, _chunkSMSQVRHEjs.DeeplineClient)().getPlayCostEstimate(name);
|
|
15082
|
+
if (_chunkQKKU2FH4js.argsWantJson.call(void 0, args)) console.log(JSON.stringify(result, null, 2));
|
|
15253
15083
|
else
|
|
15254
15084
|
console.log(
|
|
15255
15085
|
`${result.reference}: ${formatPlayCostEstimate(result.costEstimate)}`
|
|
@@ -15257,9 +15087,9 @@ async function handlePlayCost(args) {
|
|
|
15257
15087
|
return 0;
|
|
15258
15088
|
}
|
|
15259
15089
|
async function handlePlayList(args) {
|
|
15260
|
-
const jsonOutput =
|
|
15090
|
+
const jsonOutput = _chunkQKKU2FH4js.argsWantJson.call(void 0, args);
|
|
15261
15091
|
const showCost = args.includes("--show-cost");
|
|
15262
|
-
const client = new (0,
|
|
15092
|
+
const client = new (0, _chunkSMSQVRHEjs.DeeplineClient)();
|
|
15263
15093
|
const categoriesIndex = args.indexOf("--categories");
|
|
15264
15094
|
const categories = categoriesIndex >= 0 ? _optionalChain([args, 'access', _592 => _592[categoriesIndex + 1], 'optionalAccess', _593 => _593.trim, 'call', _594 => _594()]) : void 0;
|
|
15265
15095
|
const tags = args.flatMap((arg, index) => arg === "--tag" ? [args[index + 1]] : []).flatMap((value) => (_nullishCoalesce(value, () => ( ""))).split(",")).map((value) => value.trim()).filter(Boolean);
|
|
@@ -15357,7 +15187,7 @@ async function handlePlayList(args) {
|
|
|
15357
15187
|
lines.push("List truncated \u2014 more plays are available.");
|
|
15358
15188
|
lines.push(`Next page: ${nextPage}`);
|
|
15359
15189
|
}
|
|
15360
|
-
|
|
15190
|
+
_chunkQKKU2FH4js.printCommandEnvelope.call(void 0,
|
|
15361
15191
|
{
|
|
15362
15192
|
plays,
|
|
15363
15193
|
count: plays.length,
|
|
@@ -15375,7 +15205,7 @@ async function handlePlayList(args) {
|
|
|
15375
15205
|
}
|
|
15376
15206
|
async function handlePlayPin(args, pinned) {
|
|
15377
15207
|
const target = _optionalChain([args, 'access', _603 => _603.find, 'call', _604 => _604((arg) => !arg.startsWith("-")), 'optionalAccess', _605 => _605.trim, 'call', _606 => _606()]);
|
|
15378
|
-
const jsonOutput =
|
|
15208
|
+
const jsonOutput = _chunkQKKU2FH4js.argsWantJson.call(void 0, args);
|
|
15379
15209
|
const dryRun = args.includes("--dry-run");
|
|
15380
15210
|
if (!target) {
|
|
15381
15211
|
console.error(
|
|
@@ -15393,11 +15223,11 @@ async function handlePlayPin(args, pinned) {
|
|
|
15393
15223
|
const name = parsedTarget.playName;
|
|
15394
15224
|
const plan = { name, pinned, dryRun };
|
|
15395
15225
|
if (dryRun) {
|
|
15396
|
-
|
|
15226
|
+
_chunkQKKU2FH4js.printCompactJson.call(void 0, plan);
|
|
15397
15227
|
return 0;
|
|
15398
15228
|
}
|
|
15399
|
-
const result = await new (0,
|
|
15400
|
-
if (jsonOutput)
|
|
15229
|
+
const result = await new (0, _chunkSMSQVRHEjs.DeeplineClient)().setPlayPinned(name, pinned);
|
|
15230
|
+
if (jsonOutput) _chunkQKKU2FH4js.printCompactJson.call(void 0, result);
|
|
15401
15231
|
else console.log(`${result.pinned ? "Pinned" : "Unpinned"} ${result.name}.`);
|
|
15402
15232
|
return 0;
|
|
15403
15233
|
}
|
|
@@ -15523,12 +15353,12 @@ async function handlePlayGrep(args) {
|
|
|
15523
15353
|
console.error("Usage: deepline plays grep <query> [--json]");
|
|
15524
15354
|
return 1;
|
|
15525
15355
|
}
|
|
15526
|
-
const client = new (0,
|
|
15356
|
+
const client = new (0, _chunkSMSQVRHEjs.DeeplineClient)();
|
|
15527
15357
|
const results = (await client.listPlays({ grep: query })).map(
|
|
15528
15358
|
summarizePlayGrepResult
|
|
15529
15359
|
);
|
|
15530
|
-
if (
|
|
15531
|
-
|
|
15360
|
+
if (_chunkQKKU2FH4js.argsWantJson.call(void 0, args)) {
|
|
15361
|
+
_chunkQKKU2FH4js.printCompactJson.call(void 0, {
|
|
15532
15362
|
plays: results,
|
|
15533
15363
|
count: results.length,
|
|
15534
15364
|
query,
|
|
@@ -15551,7 +15381,7 @@ async function handlePlayGrep(args) {
|
|
|
15551
15381
|
return 0;
|
|
15552
15382
|
}
|
|
15553
15383
|
async function handlePlayDescribe(args) {
|
|
15554
|
-
const selection =
|
|
15384
|
+
const selection = _chunkQKKU2FH4js.parseJsonFields.call(void 0, args, "describe");
|
|
15555
15385
|
args = selection.args;
|
|
15556
15386
|
const playName = args[0];
|
|
15557
15387
|
if (!playName) {
|
|
@@ -15585,8 +15415,8 @@ async function handlePlayDescribe(args) {
|
|
|
15585
15415
|
`deepline plays check ${playName}`,
|
|
15586
15416
|
...definedName ? [`deepline describe <workspace>/${definedName}`] : []
|
|
15587
15417
|
];
|
|
15588
|
-
if (
|
|
15589
|
-
|
|
15418
|
+
if (_chunkQKKU2FH4js.argsWantJson.call(void 0, args)) {
|
|
15419
|
+
_chunkQKKU2FH4js.printCompactJson.call(void 0, {
|
|
15590
15420
|
ok: false,
|
|
15591
15421
|
error: { message },
|
|
15592
15422
|
next
|
|
@@ -15600,7 +15430,7 @@ async function handlePlayDescribe(args) {
|
|
|
15600
15430
|
}
|
|
15601
15431
|
return 2;
|
|
15602
15432
|
}
|
|
15603
|
-
const client = new (0,
|
|
15433
|
+
const client = new (0, _chunkSMSQVRHEjs.DeeplineClient)();
|
|
15604
15434
|
await assertCanonicalNamedPlayReference(client, playName, {
|
|
15605
15435
|
command: "describe"
|
|
15606
15436
|
});
|
|
@@ -15610,9 +15440,9 @@ async function handlePlayDescribe(args) {
|
|
|
15610
15440
|
compact: args.includes("--compact")
|
|
15611
15441
|
}
|
|
15612
15442
|
);
|
|
15613
|
-
if (
|
|
15614
|
-
if (selection.fields)
|
|
15615
|
-
else
|
|
15443
|
+
if (_chunkQKKU2FH4js.argsWantJson.call(void 0, args)) {
|
|
15444
|
+
if (selection.fields) _chunkQKKU2FH4js.printJson.call(void 0, play, selection.fields);
|
|
15445
|
+
else _chunkQKKU2FH4js.printCompactJson.call(void 0, play);
|
|
15616
15446
|
return 0;
|
|
15617
15447
|
}
|
|
15618
15448
|
printPlayDescription(play);
|
|
@@ -15634,7 +15464,7 @@ async function handlePlaySave(args) {
|
|
|
15634
15464
|
}
|
|
15635
15465
|
let graph;
|
|
15636
15466
|
try {
|
|
15637
|
-
graph = await
|
|
15467
|
+
graph = await _chunkUXQQPMYOjs.traceCliSpan.call(void 0,
|
|
15638
15468
|
"cli.play_save_bundle_graph",
|
|
15639
15469
|
{ targetKind: "file" },
|
|
15640
15470
|
() => collectBundledPlayGraph(_path.resolve.call(void 0, options.target))
|
|
@@ -15656,7 +15486,7 @@ async function handlePlaySave(args) {
|
|
|
15656
15486
|
next: `deepline plays check ${_chunkAID3OYVJjs.shellQuote.call(void 0, options.target)}`
|
|
15657
15487
|
};
|
|
15658
15488
|
if (options.jsonOutput) {
|
|
15659
|
-
|
|
15489
|
+
_chunkQKKU2FH4js.printCompactJson.call(void 0, result);
|
|
15660
15490
|
} else {
|
|
15661
15491
|
console.error(result.message);
|
|
15662
15492
|
console.error(` checked artifact: ${result.expectedArtifactHash}`);
|
|
@@ -15678,7 +15508,7 @@ async function handlePlaySave(args) {
|
|
|
15678
15508
|
};
|
|
15679
15509
|
if (options.dryRun) {
|
|
15680
15510
|
if (options.jsonOutput) {
|
|
15681
|
-
|
|
15511
|
+
_chunkQKKU2FH4js.printCompactJson.call(void 0, dryRun);
|
|
15682
15512
|
} else {
|
|
15683
15513
|
console.log(`Dry run: ${playName}`);
|
|
15684
15514
|
console.log(` source: ${dryRun.sourceHash}`);
|
|
@@ -15687,14 +15517,14 @@ async function handlePlaySave(args) {
|
|
|
15687
15517
|
}
|
|
15688
15518
|
return 0;
|
|
15689
15519
|
}
|
|
15690
|
-
const client = new (0,
|
|
15520
|
+
const client = new (0, _chunkSMSQVRHEjs.DeeplineClient)();
|
|
15691
15521
|
try {
|
|
15692
|
-
await
|
|
15522
|
+
await _chunkUXQQPMYOjs.traceCliSpan.call(void 0,
|
|
15693
15523
|
"cli.play_save_compile_manifests",
|
|
15694
15524
|
{ targetKind: "file", nodeCount: graph.nodes.size },
|
|
15695
15525
|
() => compileBundledPlayGraphManifests(client, graph)
|
|
15696
15526
|
);
|
|
15697
|
-
const saved = await
|
|
15527
|
+
const saved = await _chunkUXQQPMYOjs.traceCliSpan.call(void 0,
|
|
15698
15528
|
"cli.play_save_register_draft",
|
|
15699
15529
|
{ targetKind: "file", playName, artifactHash },
|
|
15700
15530
|
() => client.registerPlayArtifact({
|
|
@@ -15723,7 +15553,7 @@ async function handlePlaySave(args) {
|
|
|
15723
15553
|
}
|
|
15724
15554
|
};
|
|
15725
15555
|
if (options.jsonOutput) {
|
|
15726
|
-
|
|
15556
|
+
_chunkQKKU2FH4js.printCompactJson.call(void 0, result);
|
|
15727
15557
|
} else {
|
|
15728
15558
|
console.log(
|
|
15729
15559
|
`\u2713 Saved ${playName} working draft as v${_nullishCoalesce(result.version, () => ( "?"))}`
|
|
@@ -15749,7 +15579,7 @@ async function handlePlayPublish(args) {
|
|
|
15749
15579
|
}
|
|
15750
15580
|
const { target: playName, useLatest } = options;
|
|
15751
15581
|
let revisionId = options.revisionId;
|
|
15752
|
-
const client = new (0,
|
|
15582
|
+
const client = new (0, _chunkSMSQVRHEjs.DeeplineClient)();
|
|
15753
15583
|
if (isFileTarget(playName)) {
|
|
15754
15584
|
if (revisionId || useLatest) {
|
|
15755
15585
|
console.error(
|
|
@@ -15759,7 +15589,7 @@ async function handlePlayPublish(args) {
|
|
|
15759
15589
|
}
|
|
15760
15590
|
let graph;
|
|
15761
15591
|
try {
|
|
15762
|
-
graph = await
|
|
15592
|
+
graph = await _chunkUXQQPMYOjs.traceCliSpan.call(void 0,
|
|
15763
15593
|
"cli.play_publish_bundle_graph",
|
|
15764
15594
|
{ targetKind: "file" },
|
|
15765
15595
|
() => collectBundledPlayGraph(_path.resolve.call(void 0, playName))
|
|
@@ -15781,7 +15611,7 @@ async function handlePlayPublish(args) {
|
|
|
15781
15611
|
next: `deepline plays check ${_chunkAID3OYVJjs.shellQuote.call(void 0, playName)}`
|
|
15782
15612
|
};
|
|
15783
15613
|
if (options.jsonOutput) {
|
|
15784
|
-
|
|
15614
|
+
_chunkQKKU2FH4js.printCompactJson.call(void 0, result3);
|
|
15785
15615
|
} else {
|
|
15786
15616
|
console.error(result3.message);
|
|
15787
15617
|
console.error(` checked artifact: ${result3.expectedArtifactHash}`);
|
|
@@ -15804,7 +15634,7 @@ async function handlePlayPublish(args) {
|
|
|
15804
15634
|
};
|
|
15805
15635
|
if (options.dryRun) {
|
|
15806
15636
|
if (options.jsonOutput) {
|
|
15807
|
-
|
|
15637
|
+
_chunkQKKU2FH4js.printCompactJson.call(void 0, dryRun);
|
|
15808
15638
|
} else {
|
|
15809
15639
|
console.log(`Dry run: ${rootPlayName}`);
|
|
15810
15640
|
console.log(` source: ${dryRun.sourceHash}`);
|
|
@@ -15823,12 +15653,12 @@ async function handlePlayPublish(args) {
|
|
|
15823
15653
|
}
|
|
15824
15654
|
}
|
|
15825
15655
|
try {
|
|
15826
|
-
await
|
|
15656
|
+
await _chunkUXQQPMYOjs.traceCliSpan.call(void 0,
|
|
15827
15657
|
"cli.play_publish_compile_manifests",
|
|
15828
15658
|
{ targetKind: "file", nodeCount: graph.nodes.size },
|
|
15829
15659
|
() => compileBundledPlayGraphManifests(client, graph)
|
|
15830
15660
|
);
|
|
15831
|
-
await
|
|
15661
|
+
await _chunkUXQQPMYOjs.traceCliSpan.call(void 0,
|
|
15832
15662
|
"cli.play_publish_imports",
|
|
15833
15663
|
{ targetKind: "file", nodeCount: graph.nodes.size },
|
|
15834
15664
|
() => publishImportedPlayDependencies(client, graph)
|
|
@@ -15837,7 +15667,7 @@ async function handlePlayPublish(args) {
|
|
|
15837
15667
|
console.error(error instanceof Error ? error.message : String(error));
|
|
15838
15668
|
return 1;
|
|
15839
15669
|
}
|
|
15840
|
-
const published = await
|
|
15670
|
+
const published = await _chunkUXQQPMYOjs.traceCliSpan.call(void 0,
|
|
15841
15671
|
"cli.play_publish_register_root",
|
|
15842
15672
|
{
|
|
15843
15673
|
targetKind: "file",
|
|
@@ -15872,7 +15702,7 @@ async function handlePlayPublish(args) {
|
|
|
15872
15702
|
triggerBindings: _nullishCoalesce(published.triggerBindings, () => ( []))
|
|
15873
15703
|
};
|
|
15874
15704
|
if (options.jsonOutput) {
|
|
15875
|
-
|
|
15705
|
+
_chunkQKKU2FH4js.printCompactJson.call(void 0, result2);
|
|
15876
15706
|
} else {
|
|
15877
15707
|
printPublishReceipt({
|
|
15878
15708
|
name: rootPlayName,
|
|
@@ -15903,7 +15733,7 @@ async function handlePlayPublish(args) {
|
|
|
15903
15733
|
revisionId: _nullishCoalesce(revisionId, () => ( null)),
|
|
15904
15734
|
latest: useLatest
|
|
15905
15735
|
};
|
|
15906
|
-
|
|
15736
|
+
_chunkQKKU2FH4js.printCompactJson.call(void 0, result2);
|
|
15907
15737
|
return 0;
|
|
15908
15738
|
}
|
|
15909
15739
|
const resolvedName = parseReferencedPlayTarget(playName).playName;
|
|
@@ -15927,7 +15757,7 @@ async function handlePlayPublish(args) {
|
|
|
15927
15757
|
revisionId ? { revisionId } : {}
|
|
15928
15758
|
);
|
|
15929
15759
|
if (options.jsonOutput) {
|
|
15930
|
-
|
|
15760
|
+
_chunkQKKU2FH4js.printCompactJson.call(void 0, result);
|
|
15931
15761
|
} else {
|
|
15932
15762
|
printPublishReceipt({
|
|
15933
15763
|
name: result.name,
|
|
@@ -15967,7 +15797,7 @@ async function handlePlayDelete(args) {
|
|
|
15967
15797
|
);
|
|
15968
15798
|
return 2;
|
|
15969
15799
|
}
|
|
15970
|
-
const client = new (0,
|
|
15800
|
+
const client = new (0, _chunkSMSQVRHEjs.DeeplineClient)();
|
|
15971
15801
|
let detail;
|
|
15972
15802
|
try {
|
|
15973
15803
|
detail = await client.getPlay(parseReferencedPlayTarget(playName).playName);
|
|
@@ -15991,8 +15821,8 @@ async function handlePlayDelete(args) {
|
|
|
15991
15821
|
name: resolvedName,
|
|
15992
15822
|
plannedMutation: "move saved org-owned play to Trash and stop triggers"
|
|
15993
15823
|
};
|
|
15994
|
-
if (
|
|
15995
|
-
|
|
15824
|
+
if (_chunkQKKU2FH4js.argsWantJson.call(void 0, args)) {
|
|
15825
|
+
_chunkQKKU2FH4js.printCompactJson.call(void 0, result2);
|
|
15996
15826
|
} else {
|
|
15997
15827
|
process.stdout.write(
|
|
15998
15828
|
`Dry run: would move ${result2.name} to Trash and stop its active triggers.
|
|
@@ -16002,8 +15832,8 @@ async function handlePlayDelete(args) {
|
|
|
16002
15832
|
return 0;
|
|
16003
15833
|
}
|
|
16004
15834
|
const result = await client.deletePlay(resolvedName);
|
|
16005
|
-
if (
|
|
16006
|
-
|
|
15835
|
+
if (_chunkQKKU2FH4js.argsWantJson.call(void 0, args)) {
|
|
15836
|
+
_chunkQKKU2FH4js.printCompactJson.call(void 0, result);
|
|
16007
15837
|
return result.archived || result.alreadyArchived ? 0 : 4;
|
|
16008
15838
|
}
|
|
16009
15839
|
if (result.alreadyArchived) {
|
|
@@ -16042,13 +15872,13 @@ async function handlePlayRestore(args) {
|
|
|
16042
15872
|
);
|
|
16043
15873
|
return 2;
|
|
16044
15874
|
}
|
|
16045
|
-
const client = new (0,
|
|
15875
|
+
const client = new (0, _chunkSMSQVRHEjs.DeeplineClient)();
|
|
16046
15876
|
try {
|
|
16047
15877
|
const result = await client.restorePlay(
|
|
16048
15878
|
parseReferencedPlayTarget(playName).playName
|
|
16049
15879
|
);
|
|
16050
|
-
if (
|
|
16051
|
-
|
|
15880
|
+
if (_chunkQKKU2FH4js.argsWantJson.call(void 0, args)) {
|
|
15881
|
+
_chunkQKKU2FH4js.printCompactJson.call(void 0, result);
|
|
16052
15882
|
return result.restored || result.alreadyActive ? 0 : 4;
|
|
16053
15883
|
}
|
|
16054
15884
|
if (result.alreadyActive) {
|
|
@@ -16175,21 +16005,21 @@ Common commands:
|
|
|
16175
16005
|
resume: `deepline plays resume-submission ${_chunkAID3OYVJjs.shellQuote.call(void 0, path)} --json`
|
|
16176
16006
|
}
|
|
16177
16007
|
};
|
|
16178
|
-
|
|
16008
|
+
_chunkQKKU2FH4js.printCommandEnvelope.call(void 0, result2, {
|
|
16179
16009
|
json: options.json,
|
|
16180
16010
|
text: `Submission ${saved.workflowId}: admission is unknown. ${result2.next.inspect}
|
|
16181
16011
|
`
|
|
16182
16012
|
});
|
|
16183
16013
|
return;
|
|
16184
16014
|
}
|
|
16185
|
-
const client = new (0,
|
|
16015
|
+
const client = new (0, _chunkSMSQVRHEjs.DeeplineClient)();
|
|
16186
16016
|
if (new URL(saved.baseUrl).origin !== new URL(client.baseUrl).origin) {
|
|
16187
16017
|
throw new Error(
|
|
16188
16018
|
"The submission belongs to a different API origin. Select its original host before recovery."
|
|
16189
16019
|
);
|
|
16190
16020
|
}
|
|
16191
16021
|
const result = await client.startPlayRun(saved.request);
|
|
16192
|
-
|
|
16022
|
+
_chunkQKKU2FH4js.printCommandEnvelope.call(void 0,
|
|
16193
16023
|
{ ...result },
|
|
16194
16024
|
{
|
|
16195
16025
|
json: options.json,
|
|
@@ -16225,7 +16055,7 @@ Examples:
|
|
|
16225
16055
|
).action(async (target, options) => {
|
|
16226
16056
|
process.exitCode = await handlePlayCheck([
|
|
16227
16057
|
target,
|
|
16228
|
-
...
|
|
16058
|
+
..._chunkQKKU2FH4js.jsonFieldArgs.call(void 0, options.json),
|
|
16229
16059
|
...options.full ? ["--full"] : []
|
|
16230
16060
|
]);
|
|
16231
16061
|
});
|
|
@@ -16259,15 +16089,19 @@ Notes:
|
|
|
16259
16089
|
the server accepts the run. The destination must not already exist.
|
|
16260
16090
|
The run page URL is printed when the run starts. Pass --open to open it in a browser.
|
|
16261
16091
|
Concurrent runs for the same play are allowed.
|
|
16262
|
-
--
|
|
16263
|
-
It does not cancel active sibling runs.
|
|
16264
|
-
--
|
|
16265
|
-
|
|
16092
|
+
--from-start starts a fresh run graph without refreshing completed provider calls.
|
|
16093
|
+
It does not cancel active sibling runs. (Formerly --force.)
|
|
16094
|
+
--refresh-cache skips cached reads, calls providers again, and updates the
|
|
16095
|
+
shared result other Plays reuse, billing those calls again. It is independent
|
|
16096
|
+
from --from-start. (Formerly --force-tool-refresh.)
|
|
16097
|
+
--from-run <run-id> starts a new run of the same Play with that run's
|
|
16098
|
+
retained input and pinned revision, and returns once it starts. It accepts
|
|
16099
|
+
only --json.
|
|
16266
16100
|
--max-concurrent-external-calls controls the per-run provider-tool/deepline.fetch
|
|
16267
|
-
resident-work ceiling. Default: ${
|
|
16101
|
+
resident-work ceiling. Default: ${_chunkUSTJEENDjs.DEFAULT_MAX_CONCURRENT_EXTERNAL_CALLS}; accepted range: 1-${_chunkUSTJEENDjs.MAX_CONFIGURABLE_CONCURRENT_EXTERNAL_CALLS}.
|
|
16268
16102
|
Provider pacing and sandbox memory limits still apply.
|
|
16269
16103
|
--max-concurrent-rows sets the run-wide default and ceiling for live map row
|
|
16270
|
-
resolvers. Accepted range: 1-${
|
|
16104
|
+
resolvers. Accepted range: 1-${_chunkUSTJEENDjs.MAX_CONFIGURABLE_CONCURRENT_ROWS}. The runtime
|
|
16271
16105
|
may lower it when source-row size exceeds the active-row memory budget.
|
|
16272
16106
|
--max-credits replaces the play's billing.maxCreditsPerRun for this run.
|
|
16273
16107
|
Tool calls that would exceed it are denied.
|
|
@@ -16321,6 +16155,7 @@ Examples:
|
|
|
16321
16155
|
deepline plays run my.play.ts --max-credits 50
|
|
16322
16156
|
deepline plays run my.play.ts --input @input.json
|
|
16323
16157
|
deepline plays run cto-search.play.ts --limit 5
|
|
16158
|
+
deepline plays run --from-run <run-id>
|
|
16324
16159
|
deepline runs export <run-id> --out output.csv
|
|
16325
16160
|
deepline runs get <run-id>
|
|
16326
16161
|
`
|
|
@@ -16376,15 +16211,25 @@ Examples:
|
|
|
16376
16211
|
).option(
|
|
16377
16212
|
"--tail-timeout-ms <ms>",
|
|
16378
16213
|
"Timeout while waiting for terminal run status"
|
|
16379
|
-
).option("--
|
|
16380
|
-
"--force-
|
|
16381
|
-
|
|
16214
|
+
).option("--from-start", "Start a fresh run graph").addOption(
|
|
16215
|
+
new (0, _commander.Option)("--force", "Compatibility alias for --from-start").hideHelp()
|
|
16216
|
+
).option(
|
|
16217
|
+
"--from-run <run-id>",
|
|
16218
|
+
"Start a new run from an earlier run's retained input and pinned revision"
|
|
16219
|
+
).option(
|
|
16220
|
+
"--refresh-cache",
|
|
16221
|
+
"Skip cached reads and call providers again (bills those calls again)"
|
|
16222
|
+
).addOption(
|
|
16223
|
+
new (0, _commander.Option)(
|
|
16224
|
+
"--force-tool-refresh",
|
|
16225
|
+
"Compatibility alias for --refresh-cache"
|
|
16226
|
+
).hideHelp()
|
|
16382
16227
|
).option(
|
|
16383
16228
|
"--max-concurrent-external-calls <count>",
|
|
16384
|
-
`Concurrent provider-tool and deepline.fetch executions (${
|
|
16229
|
+
`Concurrent provider-tool and deepline.fetch executions (${_chunkUSTJEENDjs.DEFAULT_MAX_CONCURRENT_EXTERNAL_CALLS} default, max ${_chunkUSTJEENDjs.MAX_CONFIGURABLE_CONCURRENT_EXTERNAL_CALLS})`
|
|
16385
16230
|
).option(
|
|
16386
16231
|
"--max-concurrent-rows <count>",
|
|
16387
|
-
`Run-wide dataset map row resolver ceiling (max ${
|
|
16232
|
+
`Run-wide dataset map row resolver ceiling (max ${_chunkUSTJEENDjs.MAX_CONFIGURABLE_CONCURRENT_ROWS})`
|
|
16388
16233
|
).option("--max-credits <credits>", "Deepline-credit cap for this run").option("--open", "Open the run page in a browser after the run starts").option(
|
|
16389
16234
|
"--debug-map-latency",
|
|
16390
16235
|
"Internal diagnostics: emit one aggregate latency profile per dataset map"
|
|
@@ -16405,6 +16250,11 @@ JSON field selection:
|
|
|
16405
16250
|
`
|
|
16406
16251
|
).action(
|
|
16407
16252
|
async (target, cliOptions, command) => {
|
|
16253
|
+
warnRenamedPlayRunFlags(cliOptions);
|
|
16254
|
+
if (cliOptions.fromRun !== void 0) {
|
|
16255
|
+
process.exitCode = await runPlayFromRun(target, cliOptions, command);
|
|
16256
|
+
return;
|
|
16257
|
+
}
|
|
16408
16258
|
const inlineFile = cliOptions.eval === void 0 ? null : writeInlinePlay(cliOptions.eval);
|
|
16409
16259
|
try {
|
|
16410
16260
|
process.exitCode = await runPlayCommand(
|
|
@@ -16417,6 +16267,42 @@ JSON field selection:
|
|
|
16417
16267
|
}
|
|
16418
16268
|
}
|
|
16419
16269
|
);
|
|
16270
|
+
function warnRenamedPlayRunFlags(options) {
|
|
16271
|
+
if (options.force) {
|
|
16272
|
+
console.error(
|
|
16273
|
+
"--force is now --from-start; the old name will be removed after a migration window."
|
|
16274
|
+
);
|
|
16275
|
+
}
|
|
16276
|
+
if (options.forceToolRefresh) {
|
|
16277
|
+
console.error(
|
|
16278
|
+
"--force-tool-refresh is now --refresh-cache; the old name will be removed after a migration window."
|
|
16279
|
+
);
|
|
16280
|
+
}
|
|
16281
|
+
}
|
|
16282
|
+
async function runPlayFromRun(target, options, command) {
|
|
16283
|
+
const runId = _optionalChain([options, 'access', _621 => _621.fromRun, 'optionalAccess', _622 => _622.trim, 'call', _623 => _623()]);
|
|
16284
|
+
if (!runId || runId.startsWith("--")) {
|
|
16285
|
+
console.error("--from-run requires a run id.");
|
|
16286
|
+
return 1;
|
|
16287
|
+
}
|
|
16288
|
+
const conflicting = Object.entries(options).filter(
|
|
16289
|
+
([key, value]) => value !== void 0 && key !== "fromRun" && key !== "json" && !(key === "wait" && value === true)
|
|
16290
|
+
).map(
|
|
16291
|
+
([key]) => `--${key.replace(/[A-Z]/g, (c) => `-${c.toLowerCase()}`)}`
|
|
16292
|
+
);
|
|
16293
|
+
if (target !== void 0 || command.args.length > 0) {
|
|
16294
|
+
conflicting.unshift("a play target or input");
|
|
16295
|
+
}
|
|
16296
|
+
if (conflicting.length > 0) {
|
|
16297
|
+
console.error(
|
|
16298
|
+
`--from-run reuses the earlier run's play, input and revision; it cannot be combined with ${conflicting.join(", ")}.`
|
|
16299
|
+
);
|
|
16300
|
+
return 1;
|
|
16301
|
+
}
|
|
16302
|
+
return runRunsRerunCommand(runId, {
|
|
16303
|
+
...options.json === void 0 ? {} : { json: Boolean(options.json) }
|
|
16304
|
+
});
|
|
16305
|
+
}
|
|
16420
16306
|
async function runPlayCommand(target, options, command) {
|
|
16421
16307
|
const passthroughArgs = [...command.args];
|
|
16422
16308
|
const explicitTarget = options.file || options.name;
|
|
@@ -16429,14 +16315,14 @@ JSON field selection:
|
|
|
16429
16315
|
passthroughArgs.shift();
|
|
16430
16316
|
}
|
|
16431
16317
|
const exitCode = await handlePlayRun(
|
|
16432
|
-
|
|
16318
|
+
_chunkUSTJEENDjs.resolvePlayRunCliOptions.call(void 0,
|
|
16433
16319
|
_nullishCoalesce(effectiveTarget, () => ( void 0)),
|
|
16434
16320
|
options,
|
|
16435
16321
|
passthroughArgs,
|
|
16436
|
-
|
|
16322
|
+
_chunkUXQQPMYOjs.resolveCliMaintenancePolicy.call(void 0, command.optsWithGlobals())
|
|
16437
16323
|
)
|
|
16438
16324
|
);
|
|
16439
|
-
|
|
16325
|
+
_chunkUXQQPMYOjs.recordCliTrace.call(void 0, {
|
|
16440
16326
|
phase: "cli.play_command_exit",
|
|
16441
16327
|
exitCode
|
|
16442
16328
|
});
|
|
@@ -16485,9 +16371,9 @@ Examples:
|
|
|
16485
16371
|
const limit = Number(options.historyLimit);
|
|
16486
16372
|
if (!Number.isInteger(limit) || limit < 1 || limit > 30)
|
|
16487
16373
|
throw new Error("--history-limit must be an integer from 1 to 30.");
|
|
16488
|
-
const client = new (0,
|
|
16374
|
+
const client = new (0, _chunkSMSQVRHEjs.DeeplineClient)();
|
|
16489
16375
|
if (options.binding) {
|
|
16490
|
-
|
|
16376
|
+
_chunkQKKU2FH4js.printCompactJson.call(void 0,
|
|
16491
16377
|
await client.getPlayTriggerHistory(options.binding, { limit })
|
|
16492
16378
|
);
|
|
16493
16379
|
return;
|
|
@@ -16495,7 +16381,7 @@ Examples:
|
|
|
16495
16381
|
const result = await client.listPlayTriggerInventory({
|
|
16496
16382
|
cursor: options.cursor
|
|
16497
16383
|
});
|
|
16498
|
-
|
|
16384
|
+
_chunkQKKU2FH4js.printCompactJson.call(void 0, {
|
|
16499
16385
|
...result,
|
|
16500
16386
|
next: result.isDone ? null : `deepline plays triggers --cursor ${JSON.stringify(result.continueCursor)}`
|
|
16501
16387
|
});
|
|
@@ -16554,7 +16440,7 @@ Examples:
|
|
|
16554
16440
|
if (options.groupBy !== "kind" && options.groupBy !== "trigger_source") {
|
|
16555
16441
|
throw new Error("--group-by must be kind or trigger_source.");
|
|
16556
16442
|
}
|
|
16557
|
-
const result = await new (0,
|
|
16443
|
+
const result = await new (0, _chunkSMSQVRHEjs.DeeplineClient)().getPlaysActivity({
|
|
16558
16444
|
timeZone: options.timeZone,
|
|
16559
16445
|
days,
|
|
16560
16446
|
...options.endDate ? { endDate: options.endDate } : {},
|
|
@@ -16568,7 +16454,7 @@ Examples:
|
|
|
16568
16454
|
`${bucket.key} ${groups} failed_play_runs=${bucket.failedPlayRuns} ${coverage}`
|
|
16569
16455
|
);
|
|
16570
16456
|
}
|
|
16571
|
-
|
|
16457
|
+
_chunkQKKU2FH4js.printCommandEnvelope.call(void 0,
|
|
16572
16458
|
{ ...result },
|
|
16573
16459
|
{
|
|
16574
16460
|
json: Boolean(options.json),
|
|
@@ -16597,7 +16483,7 @@ Examples:
|
|
|
16597
16483
|
false
|
|
16598
16484
|
);
|
|
16599
16485
|
});
|
|
16600
|
-
|
|
16486
|
+
_chunk67OI26OEjs.registerDeprecatedSearchCommand.call(void 0,
|
|
16601
16487
|
play,
|
|
16602
16488
|
(options) => options.all ? ["plays"] : ["prebuilts"]
|
|
16603
16489
|
);
|
|
@@ -16638,9 +16524,9 @@ Examples:
|
|
|
16638
16524
|
"--json [fields]",
|
|
16639
16525
|
"JSON output; optionally select comma-separated dotted paths"
|
|
16640
16526
|
);
|
|
16641
|
-
|
|
16527
|
+
_chunkKCKAFTPYjs.addDescribeOptions.call(void 0, describeCommand, { json: false }).action(
|
|
16642
16528
|
async (target, options) => {
|
|
16643
|
-
const ownView = () => handlePlayDescribe(
|
|
16529
|
+
const ownView = () => handlePlayDescribe(_chunkQKKU2FH4js.describeArgs.call(void 0, target, options));
|
|
16644
16530
|
const [flagText] = [options.json].filter(
|
|
16645
16531
|
(value) => typeof value === "string"
|
|
16646
16532
|
);
|
|
@@ -16651,7 +16537,7 @@ Examples:
|
|
|
16651
16537
|
process.exitCode = await ownView();
|
|
16652
16538
|
return;
|
|
16653
16539
|
}
|
|
16654
|
-
const { describeAnything } = await Promise.resolve().then(() => _interopRequireWildcard(require("./describe-
|
|
16540
|
+
const { describeAnything } = await Promise.resolve().then(() => _interopRequireWildcard(require("./describe-OYS7LZJD.js")));
|
|
16655
16541
|
process.exitCode = await describeAnything(
|
|
16656
16542
|
name,
|
|
16657
16543
|
{
|
|
@@ -16769,7 +16655,7 @@ Examples:
|
|
|
16769
16655
|
deepline plays deployments <deployment-id>
|
|
16770
16656
|
`
|
|
16771
16657
|
).option("--limit <n>", "Max rows (default 50)").option("--json", "Emit JSON output").action(
|
|
16772
|
-
async (id, options) => id ?
|
|
16658
|
+
async (id, options) => id ? _chunkFTRVCIGCjs.handleDeploymentGet.call(void 0, id, options) : _chunkFTRVCIGCjs.handleDeploymentsList.call(void 0, options)
|
|
16773
16659
|
);
|
|
16774
16660
|
addPublishHelp(
|
|
16775
16661
|
play.command("publish <target>").description(
|
|
@@ -16904,14 +16790,14 @@ Examples:
|
|
|
16904
16790
|
const limit = Number(options.limit);
|
|
16905
16791
|
if (!Number.isSafeInteger(limit) || limit < 1 || limit > 1e3)
|
|
16906
16792
|
throw new Error("--limit must be an integer from 1 to 1000.");
|
|
16907
|
-
const result = await new (0,
|
|
16793
|
+
const result = await new (0, _chunkSMSQVRHEjs.DeeplineClient)().runs.rowHistory({
|
|
16908
16794
|
playName: options.play,
|
|
16909
16795
|
runId,
|
|
16910
16796
|
tableNamespace: options.dataset,
|
|
16911
16797
|
limit,
|
|
16912
16798
|
cursor: options.cursor
|
|
16913
16799
|
});
|
|
16914
|
-
|
|
16800
|
+
_chunkQKKU2FH4js.printCompactJson.call(void 0, {
|
|
16915
16801
|
...result,
|
|
16916
16802
|
...result.nextCursor ? {
|
|
16917
16803
|
next: `deepline runs rows-history ${_chunkAID3OYVJjs.shellQuote.call(void 0, runId)} --play ${_chunkAID3OYVJjs.shellQuote.call(void 0, options.play)} --dataset ${_chunkAID3OYVJjs.shellQuote.call(void 0, options.dataset)} --limit ${limit} --cursor ${_chunkAID3OYVJjs.shellQuote.call(void 0, result.nextCursor)} --json`
|
|
@@ -16989,7 +16875,7 @@ Examples:
|
|
|
16989
16875
|
new (0, _commander.Option)("--log-failed", "Attach terminal-failure logs").hideHelp()
|
|
16990
16876
|
).action(async (runId, options) => {
|
|
16991
16877
|
if (TOOL_EXECUTION_ID.test(runId)) {
|
|
16992
|
-
const { getToolExecutionReceipt } = await Promise.resolve().then(() => _interopRequireWildcard(require("./tools-
|
|
16878
|
+
const { getToolExecutionReceipt } = await Promise.resolve().then(() => _interopRequireWildcard(require("./tools-L2364RPA.js")));
|
|
16993
16879
|
process.exitCode = await getToolExecutionReceipt(runId, {
|
|
16994
16880
|
receiptJson: options.json !== void 0
|
|
16995
16881
|
});
|
|
@@ -16997,7 +16883,7 @@ Examples:
|
|
|
16997
16883
|
}
|
|
16998
16884
|
process.exitCode = await handleRunGet([
|
|
16999
16885
|
runId,
|
|
17000
|
-
...
|
|
16886
|
+
..._chunkQKKU2FH4js.jsonFieldArgs.call(void 0, options.json),
|
|
17001
16887
|
...options.web ? ["--web"] : [],
|
|
17002
16888
|
...options.webUrl ? ["--web-url"] : [],
|
|
17003
16889
|
...options.full ? ["--full"] : [],
|
|
@@ -17014,6 +16900,9 @@ Examples:
|
|
|
17014
16900
|
`
|
|
17015
16901
|
Notes:
|
|
17016
16902
|
Creates a new run. It never mutates the original run.
|
|
16903
|
+
To continue a stopped run without repeating its completed work, use
|
|
16904
|
+
deepline runs resume <run-id>. To start over, use
|
|
16905
|
+
deepline plays run --from-run <run-id> (the same operation as this command).
|
|
17017
16906
|
The rerun uses the original input and exact saved revision. Normal completed
|
|
17018
16907
|
tool receipts may be reused; inspect the new run before forcing any external
|
|
17019
16908
|
side effect.
|
|
@@ -17035,7 +16924,30 @@ Examples:
|
|
|
17035
16924
|
"--input-overrides <json>",
|
|
17036
16925
|
"Override existing scalar fields in the retained input for this rerun"
|
|
17037
16926
|
).option("--json", "Emit JSON output").action(async (runId, options) => {
|
|
17038
|
-
process.exitCode = await runRunsRerunCommand(runId,
|
|
16927
|
+
process.exitCode = await runRunsRerunCommand(runId, {
|
|
16928
|
+
...options,
|
|
16929
|
+
notice: runsRerunRenameNotice(runId)
|
|
16930
|
+
});
|
|
16931
|
+
});
|
|
16932
|
+
runs.command("resume <runId>").description(
|
|
16933
|
+
"Continue a failed or cancelled run as the same run, reusing its completed work."
|
|
16934
|
+
).addHelpText(
|
|
16935
|
+
"after",
|
|
16936
|
+
`
|
|
16937
|
+
Notes:
|
|
16938
|
+
Continues the same run id with its original input and pinned revision.
|
|
16939
|
+
Completed calls are reused; only work the run had not finished runs.
|
|
16940
|
+
A run can be resumed for 14 days after it stops. To start over as a new
|
|
16941
|
+
run instead, use deepline plays run --from-run <run-id>.
|
|
16942
|
+
The server refuses while the run is still active, while its last attempt
|
|
16943
|
+
or sandbox cleanup is still finishing (try again in a minute), and after
|
|
16944
|
+
the 14-day window.
|
|
16945
|
+
|
|
16946
|
+
Examples:
|
|
16947
|
+
deepline runs resume play/my-play/run/20260501t000000-000
|
|
16948
|
+
`
|
|
16949
|
+
).action(async (runId) => {
|
|
16950
|
+
process.exitCode = await runRunsResumeCommand(runId);
|
|
17039
16951
|
});
|
|
17040
16952
|
runs.command("list").description("List play runs.").addHelpText(
|
|
17041
16953
|
"after",
|
|
@@ -17288,7 +17200,7 @@ Examples:
|
|
|
17288
17200
|
...options.allowEmpty ? ["--allow-empty"] : [],
|
|
17289
17201
|
...options.wait ? ["--wait"] : [],
|
|
17290
17202
|
...options.timeoutMs ? ["--timeout-ms", options.timeoutMs] : [],
|
|
17291
|
-
...
|
|
17203
|
+
..._chunkQKKU2FH4js.jsonFieldArgs.call(void 0, options.json)
|
|
17292
17204
|
]);
|
|
17293
17205
|
});
|
|
17294
17206
|
const share = play.command("share").description(
|
|
@@ -17429,8 +17341,8 @@ function absolutePublicPlayUrl(path) {
|
|
|
17429
17341
|
}
|
|
17430
17342
|
function shareUrlFields(status) {
|
|
17431
17343
|
return {
|
|
17432
|
-
publicUrl: absolutePublicPlayUrl(_optionalChain([status, 'access',
|
|
17433
|
-
canonicalUrl: absolutePublicPlayUrl(_optionalChain([status, 'access',
|
|
17344
|
+
publicUrl: absolutePublicPlayUrl(_optionalChain([status, 'access', _624 => _624.share, 'optionalAccess', _625 => _625.publicPath])),
|
|
17345
|
+
canonicalUrl: absolutePublicPlayUrl(_optionalChain([status, 'access', _626 => _626.share, 'optionalAccess', _627 => _627.canonicalPath]))
|
|
17434
17346
|
};
|
|
17435
17347
|
}
|
|
17436
17348
|
function shareStatusForOutput(status) {
|
|
@@ -17454,10 +17366,10 @@ async function handlePlayShareStatus(args) {
|
|
|
17454
17366
|
return 2;
|
|
17455
17367
|
}
|
|
17456
17368
|
const name = parseReferencedPlayTarget(target).playName;
|
|
17457
|
-
const status = await new (0,
|
|
17369
|
+
const status = await new (0, _chunkSMSQVRHEjs.DeeplineClient)().getSharePage(name);
|
|
17458
17370
|
const outputStatus = shareStatusForOutput(status);
|
|
17459
|
-
if (
|
|
17460
|
-
|
|
17371
|
+
if (_chunkQKKU2FH4js.argsWantJson.call(void 0, args)) {
|
|
17372
|
+
_chunkQKKU2FH4js.printCompactJson.call(void 0, outputStatus);
|
|
17461
17373
|
return 0;
|
|
17462
17374
|
}
|
|
17463
17375
|
if (!outputStatus.share) {
|
|
@@ -17496,7 +17408,7 @@ async function handlePlaySharePublish(args) {
|
|
|
17496
17408
|
return 2;
|
|
17497
17409
|
}
|
|
17498
17410
|
const name = parseReferencedPlayTarget(target).playName;
|
|
17499
|
-
const client = new (0,
|
|
17411
|
+
const client = new (0, _chunkSMSQVRHEjs.DeeplineClient)();
|
|
17500
17412
|
let revisionId = shareFlagValue(args, "--revision-id");
|
|
17501
17413
|
let resolvedVersion;
|
|
17502
17414
|
if (!revisionId) {
|
|
@@ -17527,8 +17439,8 @@ async function handlePlaySharePublish(args) {
|
|
|
17527
17439
|
);
|
|
17528
17440
|
if (!hasCompleted) {
|
|
17529
17441
|
const message = `No completed run for ${name}. Publish a play only after it has run successfully. (Override with --no-run-check.)`;
|
|
17530
|
-
if (
|
|
17531
|
-
|
|
17442
|
+
if (_chunkQKKU2FH4js.argsWantJson.call(void 0, args)) {
|
|
17443
|
+
_chunkQKKU2FH4js.printCompactJson.call(void 0, {
|
|
17532
17444
|
ok: false,
|
|
17533
17445
|
code: "NO_SUCCESSFUL_RUN",
|
|
17534
17446
|
message,
|
|
@@ -17552,8 +17464,8 @@ async function handlePlaySharePublish(args) {
|
|
|
17552
17464
|
};
|
|
17553
17465
|
if (args.includes("--dry-run")) {
|
|
17554
17466
|
const plan = { dryRun: true, name, version: resolvedVersion, ...request };
|
|
17555
|
-
if (
|
|
17556
|
-
|
|
17467
|
+
if (_chunkQKKU2FH4js.argsWantJson.call(void 0, args)) {
|
|
17468
|
+
_chunkQKKU2FH4js.printCompactJson.call(void 0, plan);
|
|
17557
17469
|
} else {
|
|
17558
17470
|
console.log(
|
|
17559
17471
|
`Would publish ${name}${resolvedVersion ? ` v${resolvedVersion}` : ""} (revision ${revisionId}).`
|
|
@@ -17563,13 +17475,13 @@ async function handlePlaySharePublish(args) {
|
|
|
17563
17475
|
}
|
|
17564
17476
|
const status = await client.publishSharePage(name, request);
|
|
17565
17477
|
const outputStatus = shareStatusForOutput(status);
|
|
17566
|
-
if (
|
|
17567
|
-
|
|
17478
|
+
if (_chunkQKKU2FH4js.argsWantJson.call(void 0, args)) {
|
|
17479
|
+
_chunkQKKU2FH4js.printCompactJson.call(void 0, outputStatus);
|
|
17568
17480
|
return 0;
|
|
17569
17481
|
}
|
|
17570
17482
|
const urls = shareUrlFields(outputStatus);
|
|
17571
17483
|
console.log(
|
|
17572
|
-
`Published ${name}${outputStatus.share ? ` v${outputStatus.share.publishedVersion}` : ""}: ${_nullishCoalesce(_nullishCoalesce(urls.publicUrl, () => ( _optionalChain([outputStatus, 'access',
|
|
17484
|
+
`Published ${name}${outputStatus.share ? ` v${outputStatus.share.publishedVersion}` : ""}: ${_nullishCoalesce(_nullishCoalesce(urls.publicUrl, () => ( _optionalChain([outputStatus, 'access', _628 => _628.share, 'optionalAccess', _629 => _629.publicPath]))), () => ( ""))}`
|
|
17573
17485
|
);
|
|
17574
17486
|
if (urls.canonicalUrl && urls.canonicalUrl !== urls.publicUrl) {
|
|
17575
17487
|
console.log(`Version URL: ${urls.canonicalUrl}`);
|
|
@@ -17595,9 +17507,9 @@ async function handlePlayShareUpdate(args) {
|
|
|
17595
17507
|
...args.includes("--show-latency") ? { showAverageLatency: true } : args.includes("--hide-latency") ? { showAverageLatency: false } : {},
|
|
17596
17508
|
...seoIndexing ? { seoIndexing } : {}
|
|
17597
17509
|
};
|
|
17598
|
-
const status = await new (0,
|
|
17599
|
-
if (
|
|
17600
|
-
|
|
17510
|
+
const status = await new (0, _chunkSMSQVRHEjs.DeeplineClient)().updateSharePage(name, request);
|
|
17511
|
+
if (_chunkQKKU2FH4js.argsWantJson.call(void 0, args)) {
|
|
17512
|
+
_chunkQKKU2FH4js.printCompactJson.call(void 0, status);
|
|
17601
17513
|
return 0;
|
|
17602
17514
|
}
|
|
17603
17515
|
console.log(`Updated ${name} share settings.`);
|
|
@@ -17612,13 +17524,13 @@ async function handlePlayShareRegenerate(args) {
|
|
|
17612
17524
|
return 2;
|
|
17613
17525
|
}
|
|
17614
17526
|
const name = parseReferencedPlayTarget(target).playName;
|
|
17615
|
-
const client = new (0,
|
|
17527
|
+
const client = new (0, _chunkSMSQVRHEjs.DeeplineClient)();
|
|
17616
17528
|
let revisionId = shareFlagValue(args, "--revision-id");
|
|
17617
17529
|
const versionFlag = shareFlagValue(args, "--version");
|
|
17618
17530
|
if (!revisionId && versionFlag) {
|
|
17619
17531
|
const versions = await client.listPlayVersions(name);
|
|
17620
17532
|
const chosen = versions.find((r) => r.version === Number(versionFlag));
|
|
17621
|
-
if (!_optionalChain([chosen, 'optionalAccess',
|
|
17533
|
+
if (!_optionalChain([chosen, 'optionalAccess', _630 => _630._id])) {
|
|
17622
17534
|
console.error(`Version ${versionFlag} not found for ${name}.`);
|
|
17623
17535
|
return 4;
|
|
17624
17536
|
}
|
|
@@ -17629,12 +17541,12 @@ async function handlePlayShareRegenerate(args) {
|
|
|
17629
17541
|
revisionId ? { revisionId } : {}
|
|
17630
17542
|
);
|
|
17631
17543
|
const outputStatus = shareStatusForOutput(status);
|
|
17632
|
-
if (
|
|
17633
|
-
|
|
17544
|
+
if (_chunkQKKU2FH4js.argsWantJson.call(void 0, args)) {
|
|
17545
|
+
_chunkQKKU2FH4js.printCompactJson.call(void 0, outputStatus);
|
|
17634
17546
|
return 0;
|
|
17635
17547
|
}
|
|
17636
17548
|
const urls = shareUrlFields(outputStatus);
|
|
17637
|
-
const regeneratedPublishedRevision = !revisionId || _optionalChain([outputStatus, 'access',
|
|
17549
|
+
const regeneratedPublishedRevision = !revisionId || _optionalChain([outputStatus, 'access', _631 => _631.share, 'optionalAccess', _632 => _632.publishedRevisionId]) === revisionId;
|
|
17638
17550
|
console.log(
|
|
17639
17551
|
`Regenerated public copy for ${name}${regeneratedPublishedRevision && urls.publicUrl ? `: ${urls.publicUrl}` : "."}`
|
|
17640
17552
|
);
|
|
@@ -17655,9 +17567,9 @@ async function handlePlayShareUnpublish(args) {
|
|
|
17655
17567
|
return 2;
|
|
17656
17568
|
}
|
|
17657
17569
|
const name = parseReferencedPlayTarget(target).playName;
|
|
17658
|
-
const status = await new (0,
|
|
17659
|
-
if (
|
|
17660
|
-
|
|
17570
|
+
const status = await new (0, _chunkSMSQVRHEjs.DeeplineClient)().unpublishSharePage(name);
|
|
17571
|
+
if (_chunkQKKU2FH4js.argsWantJson.call(void 0, args)) {
|
|
17572
|
+
_chunkQKKU2FH4js.printCompactJson.call(void 0, status);
|
|
17661
17573
|
return 0;
|
|
17662
17574
|
}
|
|
17663
17575
|
console.log(`Unpublished ${name}; the public page has been removed.`);
|
|
@@ -17734,4 +17646,4 @@ async function handlePlayShareUnpublish(args) {
|
|
|
17734
17646
|
|
|
17735
17647
|
|
|
17736
17648
|
|
|
17737
|
-
exports.PREBUILT_PLAY_TAG_KEYS = PREBUILT_PLAY_TAG_KEYS; exports.assertDatasetHasExportableRows = assertDatasetHasExportableRows; exports.buildPlayCompletionTextLines = buildPlayCompletionTextLines; exports.buildRunActivityTextLines = buildRunActivityTextLines; exports.buildRunLaunch = buildRunLaunch; exports.buildRunLogsText = buildRunLogsText; exports.buildRunPackageTextLines = buildRunPackageTextLines; exports.buildStopAllDryRunTextLines = buildStopAllDryRunTextLines; exports.checkPlayFileExports = checkPlayFileExports; exports.clampJsonPreviewText = clampJsonPreviewText; exports.compactPlayStatus = compactPlayStatus; exports.csvColumnLines = csvColumnLines; exports.describeSleepUntil = describeSleepUntil; exports.exportPlayStatusRows = exportPlayStatusRows; exports.formatPlaySandboxRuntimeWarning = formatPlaySandboxRuntimeWarning; exports.formatStepLabelFromNodeId = formatStepLabelFromNodeId; exports.getFinalStatusFromLiveEvent = getFinalStatusFromLiveEvent; exports.getProgressLinesFromLiveEvent = getProgressLinesFromLiveEvent; exports.getRunningHeartbeatLine = getRunningHeartbeatLine; exports.getStepTransitionLineFromLiveEvent = getStepTransitionLineFromLiveEvent; exports.handlePlayCheck = handlePlayCheck; exports.handlePlayCost = handlePlayCost; exports.handlePlayDelete = handlePlayDelete; exports.handlePlayDescribe = handlePlayDescribe; exports.handlePlayGet = handlePlayGet; exports.handlePlayGrep = handlePlayGrep; exports.handlePlayList = handlePlayList; exports.handlePlayPin = handlePlayPin; exports.handlePlayPublish = handlePlayPublish; exports.handlePlayRestore = handlePlayRestore; exports.handlePlayRun = handlePlayRun; exports.handlePlaySave = handlePlaySave; exports.handlePlaySharePublish = handlePlaySharePublish; exports.handlePlayShareRegenerate = handlePlayShareRegenerate; exports.handlePlayShareStatus = handlePlayShareStatus; exports.handlePlayShareUnpublish = handlePlayShareUnpublish; exports.handlePlayShareUpdate = handlePlayShareUpdate; exports.handlePlayVersions = handlePlayVersions; exports.handleRunEventSearch = handleRunEventSearch; exports.handleRunExport = handleRunExport; exports.handleRunGet = handleRunGet; exports.handleRunLifecycleStatus = handleRunLifecycleStatus; exports.handleRunLogs = handleRunLogs; exports.handleRunStop = handleRunStop; exports.handleRunStopAll = handleRunStopAll; exports.handleRunTail = handleRunTail; exports.handleRunsList = handleRunsList; exports.handleRunsRerun = handleRunsRerun; exports.liveMaxCreditsPerRun = liveMaxCreditsPerRun; exports.loadPlayBundler = loadPlayBundler; exports.parsePlayPublishOptions = parsePlayPublishOptions; exports.parsePlayRunHeaderFlag =
|
|
17649
|
+
exports.PREBUILT_PLAY_TAG_KEYS = PREBUILT_PLAY_TAG_KEYS; exports.assertDatasetHasExportableRows = assertDatasetHasExportableRows; exports.buildPlayCompletionTextLines = buildPlayCompletionTextLines; exports.buildRunActivityTextLines = buildRunActivityTextLines; exports.buildRunLaunch = buildRunLaunch; exports.buildRunLogsText = buildRunLogsText; exports.buildRunPackageTextLines = buildRunPackageTextLines; exports.buildStopAllDryRunTextLines = buildStopAllDryRunTextLines; exports.checkPlayFileExports = checkPlayFileExports; exports.clampJsonPreviewText = clampJsonPreviewText; exports.compactPlayStatus = compactPlayStatus; exports.csvColumnLines = csvColumnLines; exports.describeSleepUntil = describeSleepUntil; exports.exportPlayStatusRows = exportPlayStatusRows; exports.formatPlaySandboxRuntimeWarning = formatPlaySandboxRuntimeWarning; exports.formatStepLabelFromNodeId = formatStepLabelFromNodeId; exports.getFinalStatusFromLiveEvent = getFinalStatusFromLiveEvent; exports.getProgressLinesFromLiveEvent = getProgressLinesFromLiveEvent; exports.getRunningHeartbeatLine = getRunningHeartbeatLine; exports.getStepTransitionLineFromLiveEvent = getStepTransitionLineFromLiveEvent; exports.handlePlayCheck = handlePlayCheck; exports.handlePlayCost = handlePlayCost; exports.handlePlayDelete = handlePlayDelete; exports.handlePlayDescribe = handlePlayDescribe; exports.handlePlayGet = handlePlayGet; exports.handlePlayGrep = handlePlayGrep; exports.handlePlayList = handlePlayList; exports.handlePlayPin = handlePlayPin; exports.handlePlayPublish = handlePlayPublish; exports.handlePlayRestore = handlePlayRestore; exports.handlePlayRun = handlePlayRun; exports.handlePlaySave = handlePlaySave; exports.handlePlaySharePublish = handlePlaySharePublish; exports.handlePlayShareRegenerate = handlePlayShareRegenerate; exports.handlePlayShareStatus = handlePlayShareStatus; exports.handlePlayShareUnpublish = handlePlayShareUnpublish; exports.handlePlayShareUpdate = handlePlayShareUpdate; exports.handlePlayVersions = handlePlayVersions; exports.handleRunEventSearch = handleRunEventSearch; exports.handleRunExport = handleRunExport; exports.handleRunGet = handleRunGet; exports.handleRunLifecycleStatus = handleRunLifecycleStatus; exports.handleRunLogs = handleRunLogs; exports.handleRunStop = handleRunStop; exports.handleRunStopAll = handleRunStopAll; exports.handleRunTail = handleRunTail; exports.handleRunsList = handleRunsList; exports.handleRunsRerun = handleRunsRerun; exports.liveMaxCreditsPerRun = liveMaxCreditsPerRun; exports.loadPlayBundler = loadPlayBundler; exports.parsePlayPublishOptions = parsePlayPublishOptions; exports.parsePlayRunHeaderFlag = _chunkUSTJEENDjs.parsePlayRunHeaderFlag; exports.parsePlayRunOptions = _chunkUSTJEENDjs.parsePlayRunOptions; exports.preflightLocalFileInputs = preflightLocalFileInputs; exports.registerPlayCommands = registerPlayCommands; exports.renderRunOverviewText = renderRunOverviewText; exports.resolveDatasetByName = resolveDatasetByName; exports.resolvePlayRunOutputStatus = resolvePlayRunOutputStatus; exports.resolvePlayRunUrl = resolvePlayRunUrl; exports.resolveRunStopState = resolveRunStopState; exports.selectRunLogTailPage = selectRunLogTailPage; exports.shouldPrintPlayProgressLine = shouldPrintPlayProgressLine; exports.startAndWaitForPlayCompletion = startAndWaitForPlayCompletion; exports.startAndWaitForPlayCompletionByStream = startAndWaitForPlayCompletionByStream; exports.truncateErrorForDisplay = truncateErrorForDisplay; exports.waitForPlayCompletionByWatch = waitForPlayCompletionByWatch; exports.withTerminalPlayIdentity = withTerminalPlayIdentity; exports.writeInlinePlay = writeInlinePlay; exports.writePlayRunIdFile = writePlayRunIdFile; exports.writePlayRunReceipt = writePlayRunReceipt;
|